From 22c7331d24bb97ea6d2991f6ac274b716043afde Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sun, 12 Nov 2017 12:32:49 -0500 Subject: [PATCH 001/191] add from __future__ import print_function --- vsts/vsts/vss_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index 687c7ef4..05fa6630 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -3,6 +3,8 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +from __future__ import print_function + import logging import os import re From 04d1a0b1502aba6d7eb08fad7c3e1603ecdacc5e Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sun, 12 Nov 2017 20:22:32 -0500 Subject: [PATCH 002/191] ensure classes are inheriting from object so they can be official types. --- vsts/vsts/exceptions.py | 8 ++------ vsts/vsts/git/v4_0/git_client.py | 2 +- vsts/vsts/vss_client.py | 2 +- vsts/vsts/vss_connection.py | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/vsts/vsts/exceptions.py b/vsts/vsts/exceptions.py index 90be8fc5..1ef98ccb 100644 --- a/vsts/vsts/exceptions.py +++ b/vsts/vsts/exceptions.py @@ -3,16 +3,11 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from .models.wrapped_exception import WrappedException from msrest.exceptions import ( ClientException, - SerializationError, - DeserializationError, TokenExpiredError, ClientRequestError, AuthenticationError, - HttpOperationError, - ValidationError, ) @@ -36,7 +31,8 @@ def __init__(self, wrapped_exception): self.inner_exception = None if wrapped_exception.inner_exception is not None: self.inner_exception = VstsServiceError(wrapped_exception.inner_exception) - super(VstsServiceError, self).__init__(message=wrapped_exception.message, inner_exception=self.inner_exception) + super(VstsServiceError, self).__init__(message=wrapped_exception.message, + inner_exception=self.inner_exception) self.message = wrapped_exception.message self.exception_id = wrapped_exception.exception_id self.type_name = wrapped_exception.type_name diff --git a/vsts/vsts/git/v4_0/git_client.py b/vsts/vsts/git/v4_0/git_client.py index 57d0e0a7..7297d096 100644 --- a/vsts/vsts/git/v4_0/git_client.py +++ b/vsts/vsts/git/v4_0/git_client.py @@ -18,7 +18,7 @@ class GitClient(GitClientBase): """ def __init__(self, base_url=None, creds=None): - GitClientBase.__init__(self, base_url, creds) + super(GitClient, self).__init__(base_url, creds) def get_vsts_info(self, relative_remote_url): request = ClientRequest() diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index 05fa6630..e53a6263 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -20,7 +20,7 @@ from ._file_cache import OPTIONS_CACHE as OPTIONS_FILE_CACHE -class VssClient: +class VssClient(object): """VssClient. :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/vss_connection.py b/vsts/vsts/vss_connection.py index 10361408..ca35766c 100644 --- a/vsts/vsts/vss_connection.py +++ b/vsts/vsts/vss_connection.py @@ -12,7 +12,7 @@ from .vss_client_configuration import VssClientConfiguration -class VssConnection: +class VssConnection(object): """VssConnection. """ From efe8d30894edf93403c941cf957ba8ad263d4cdc Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sun, 12 Nov 2017 20:46:05 -0500 Subject: [PATCH 003/191] revert unnecessary removal of super calls --- vsts/vsts/build/v4_0/build_client.py | 2 +- vsts/vsts/build/v4_1/build_client.py | 2 +- vsts/vsts/core/v4_0/core_client.py | 2 +- vsts/vsts/core/v4_1/core_client.py | 2 +- .../customer_intelligence/v4_0/customer_intelligence_client.py | 2 +- .../customer_intelligence/v4_1/customer_intelligence_client.py | 2 +- vsts/vsts/git/v4_0/git_client_base.py | 2 +- vsts/vsts/git/v4_1/git_client_base.py | 2 +- vsts/vsts/identity/v4_0/identity_client.py | 2 +- vsts/vsts/identity/v4_1/identity_client.py | 2 +- vsts/vsts/location/v4_0/location_client.py | 2 +- vsts/vsts/location/v4_1/location_client.py | 2 +- vsts/vsts/operations/v4_0/operations_client.py | 2 +- vsts/vsts/operations/v4_1/operations_client.py | 2 +- vsts/vsts/policy/v4_0/policy_client.py | 2 +- vsts/vsts/policy/v4_1/policy_client.py | 2 +- vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py | 2 +- vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/vsts/vsts/build/v4_0/build_client.py b/vsts/vsts/build/v4_0/build_client.py index bd62ce88..f2a25929 100644 --- a/vsts/vsts/build/v4_0/build_client.py +++ b/vsts/vsts/build/v4_0/build_client.py @@ -18,7 +18,7 @@ class BuildClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(BuildClient, 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) diff --git a/vsts/vsts/build/v4_1/build_client.py b/vsts/vsts/build/v4_1/build_client.py index a160e903..e12c8dfd 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/vsts/vsts/build/v4_1/build_client.py @@ -18,7 +18,7 @@ class BuildClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(BuildClient, 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) diff --git a/vsts/vsts/core/v4_0/core_client.py b/vsts/vsts/core/v4_0/core_client.py index 4a5b084b..ae75f9cd 100644 --- a/vsts/vsts/core/v4_0/core_client.py +++ b/vsts/vsts/core/v4_0/core_client.py @@ -18,7 +18,7 @@ class CoreClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(CoreClient, 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) diff --git a/vsts/vsts/core/v4_1/core_client.py b/vsts/vsts/core/v4_1/core_client.py index aec44172..50e4e81d 100644 --- a/vsts/vsts/core/v4_1/core_client.py +++ b/vsts/vsts/core/v4_1/core_client.py @@ -18,7 +18,7 @@ class CoreClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(CoreClient, 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) diff --git a/vsts/vsts/customer_intelligence/v4_0/customer_intelligence_client.py b/vsts/vsts/customer_intelligence/v4_0/customer_intelligence_client.py index 931ada1c..059bbbcd 100644 --- a/vsts/vsts/customer_intelligence/v4_0/customer_intelligence_client.py +++ b/vsts/vsts/customer_intelligence/v4_0/customer_intelligence_client.py @@ -18,7 +18,7 @@ class CustomerIntelligenceClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(CustomerIntelligenceClient, 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) diff --git a/vsts/vsts/customer_intelligence/v4_1/customer_intelligence_client.py b/vsts/vsts/customer_intelligence/v4_1/customer_intelligence_client.py index 22387c81..738f6ecb 100644 --- a/vsts/vsts/customer_intelligence/v4_1/customer_intelligence_client.py +++ b/vsts/vsts/customer_intelligence/v4_1/customer_intelligence_client.py @@ -18,7 +18,7 @@ class CustomerIntelligenceClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(CustomerIntelligenceClient, 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) diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/vsts/vsts/git/v4_0/git_client_base.py index ad4c3bad..13c1812c 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/vsts/vsts/git/v4_0/git_client_base.py @@ -18,7 +18,7 @@ class GitClientBase(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(GitClientBase, 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) diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index bdec765b..4c48b172 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -18,7 +18,7 @@ class GitClientBase(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(GitClientBase, 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) diff --git a/vsts/vsts/identity/v4_0/identity_client.py b/vsts/vsts/identity/v4_0/identity_client.py index 4e365fdf..89c30211 100644 --- a/vsts/vsts/identity/v4_0/identity_client.py +++ b/vsts/vsts/identity/v4_0/identity_client.py @@ -18,7 +18,7 @@ class IdentityClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(IdentityClient, 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) diff --git a/vsts/vsts/identity/v4_1/identity_client.py b/vsts/vsts/identity/v4_1/identity_client.py index 27513abb..bf86d156 100644 --- a/vsts/vsts/identity/v4_1/identity_client.py +++ b/vsts/vsts/identity/v4_1/identity_client.py @@ -18,7 +18,7 @@ class IdentityClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(IdentityClient, 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) diff --git a/vsts/vsts/location/v4_0/location_client.py b/vsts/vsts/location/v4_0/location_client.py index 97cb9f1f..43aef308 100644 --- a/vsts/vsts/location/v4_0/location_client.py +++ b/vsts/vsts/location/v4_0/location_client.py @@ -18,7 +18,7 @@ class LocationClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(LocationClient, 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) diff --git a/vsts/vsts/location/v4_1/location_client.py b/vsts/vsts/location/v4_1/location_client.py index 99c429d7..5b2f3011 100644 --- a/vsts/vsts/location/v4_1/location_client.py +++ b/vsts/vsts/location/v4_1/location_client.py @@ -18,7 +18,7 @@ class LocationClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(LocationClient, 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) diff --git a/vsts/vsts/operations/v4_0/operations_client.py b/vsts/vsts/operations/v4_0/operations_client.py index 70ba8f89..282a4cd9 100644 --- a/vsts/vsts/operations/v4_0/operations_client.py +++ b/vsts/vsts/operations/v4_0/operations_client.py @@ -18,7 +18,7 @@ class OperationsClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(OperationsClient, 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) diff --git a/vsts/vsts/operations/v4_1/operations_client.py b/vsts/vsts/operations/v4_1/operations_client.py index 181c1a81..5bedf682 100644 --- a/vsts/vsts/operations/v4_1/operations_client.py +++ b/vsts/vsts/operations/v4_1/operations_client.py @@ -18,7 +18,7 @@ class OperationsClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(OperationsClient, 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) diff --git a/vsts/vsts/policy/v4_0/policy_client.py b/vsts/vsts/policy/v4_0/policy_client.py index a0a1fc99..a18a7f24 100644 --- a/vsts/vsts/policy/v4_0/policy_client.py +++ b/vsts/vsts/policy/v4_0/policy_client.py @@ -18,7 +18,7 @@ class PolicyClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(PolicyClient, 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) diff --git a/vsts/vsts/policy/v4_1/policy_client.py b/vsts/vsts/policy/v4_1/policy_client.py index bdca231c..a317a76a 100644 --- a/vsts/vsts/policy/v4_1/policy_client.py +++ b/vsts/vsts/policy/v4_1/policy_client.py @@ -18,7 +18,7 @@ class PolicyClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(PolicyClient, 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) diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index 2aa104c0..0ed6cea2 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -18,7 +18,7 @@ class WorkItemTrackingClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(WorkItemTrackingClient, 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) diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index 1f6b8de9..8fef5be9 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -18,7 +18,7 @@ class WorkItemTrackingClient(VssClient): """ def __init__(self, base_url=None, creds=None): - VssClient.__init__(self, base_url, creds) + super(WorkItemTrackingClient, 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) From cc20122dc288320023ba85355614e440eedece30 Mon Sep 17 00:00:00 2001 From: Whitney Jenkins <27973111+wnjenkin@users.noreply.github.com> Date: Mon, 13 Nov 2017 10:44:39 -0500 Subject: [PATCH 004/191] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 72f1506a..5a31cf6c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# Microsoft Visual Studio Team Services Python API + +This repository contains Microsoft Visual Studio Team Services public python API. This API is used to build the Visual Studio Team Services CLI. To learn more about the VSTS Cli, check out our [github repo](https://github.com/Microsoft/vsts-cli). + # Contributing From bf198f4a3b30905c9b1415a311dc0b52590dadd8 Mon Sep 17 00:00:00 2001 From: Whitney Jenkins <27973111+wnjenkin@users.noreply.github.com> Date: Mon, 13 Nov 2017 18:14:15 -0500 Subject: [PATCH 005/191] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a31cf6c..dd085218 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ +[![Visual Studio Team services](https://mseng.visualstudio.com/_apis/public/build/definitions/698eacea-9ea2-4eb8-80a4-d06170edf6bc/5904/badge)]() +[![Python](https://img.shields.io/pypi/pyversions/vsts-cli.svg?maxAge=2592000)](https://pypi.python.org/pypi/vsts) + # Microsoft Visual Studio Team Services Python API -This repository contains Microsoft Visual Studio Team Services public python API. This API is used to build the Visual Studio Team Services CLI. To learn more about the VSTS Cli, check out our [github repo](https://github.com/Microsoft/vsts-cli). +This repository contains Microsoft Visual Studio Team Services Python API. This API is used to build the Visual Studio Team Services CLI. To learn more about the VSTS CLI, check out our [github repo](https://github.com/Microsoft/vsts-cli). # Contributing From c4ddf13eea583d3caaaa6e810a0389b610e10aff Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 14 Nov 2017 10:07:59 -0500 Subject: [PATCH 006/191] remove extra readme files. set license property in setup.py --- vsts/README.md | 20 -------------------- vsts/README.rst | 21 --------------------- vsts/setup.py | 3 ++- 3 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 vsts/README.md delete mode 100644 vsts/README.rst diff --git a/vsts/README.md b/vsts/README.md deleted file mode 100644 index 014e8167..00000000 --- a/vsts/README.md +++ /dev/null @@ -1,20 +0,0 @@ -#Introduction -TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project. - -#Getting Started -TODO: Guide users through getting your code up and running on their own system. In this section you can talk about: -1. Installation process -2. Software dependencies -3. Latest releases -4. API references - -#Build and Test -TODO: Describe and show how to build your code and run the tests. - -#Contribute -TODO: Explain how other users and developers can contribute to make your code better. - -If you want to learn more about creating good readme files then refer the following [guidelines](https://www.visualstudio.com/en-us/docs/git/create-a-readme). You can also seek inspiration from the below readme files: -- [ASP.NET Core](https://github.com/aspnet/Home) -- [Visual Studio Code](https://github.com/Microsoft/vscode) -- [Chakra Core](https://github.com/Microsoft/ChakraCore) \ No newline at end of file diff --git a/vsts/README.rst b/vsts/README.rst deleted file mode 100644 index 85d40bf3..00000000 --- a/vsts/README.rst +++ /dev/null @@ -1,21 +0,0 @@ -Visual Studio Team Services API -======================================================= - -This project provides access to Visual Studio Team Services APIs. - -Contribute Code -=============== - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. - -Packaging -========= - -The released packages for this code can be found here https://pypi.python.org/pypi/vsts-python-api. -Use the standard PYPI packaging flow to push a new release. Make sure to increment the version number appropriately. - -*Example* -:: - python setup.py sdist - python -m twine upload dist/* -:: diff --git a/vsts/setup.py b/vsts/setup.py index 322e750d..a93e3a40 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -34,10 +34,11 @@ setup( name=NAME, version=VERSION, + license='MIT', description="Python wrapper around the VSTS APIs", author="Microsoft Corporation", author_email="vstscli@microsoft.com", - url="https://github.com/Microsoft/vsts-python-api ", + url="https://github.com/Microsoft/vsts-python-api", keywords=["Microsoft", "VSTS", "Team Services", "SDK", "AzureTfs"], install_requires=REQUIRES, classifiers=CLASSIFIERS, From f95bb5ba3fa16f1af10a49a6a4b9b502757bf5ab Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 14 Nov 2017 10:34:34 -0500 Subject: [PATCH 007/191] minor pylint updates --- vsts/vsts/_file_cache.py | 14 +++++++------- vsts/vsts/vss_connection.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/vsts/vsts/_file_cache.py b/vsts/vsts/_file_cache.py index 4c208f4a..eff4e347 100644 --- a/vsts/vsts/_file_cache.py +++ b/vsts/vsts/_file_cache.py @@ -33,20 +33,20 @@ def load(self): try: if os.path.isfile(self.file_name): if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.clock(): - logging.info('Cache file expired: {file}'.format(file=self.file_name)) + logging.info('Cache file expired: %s', file=self.file_name) os.remove(self.file_name) else: - logging.info('Loading cache file: {file}'.format(file=self.file_name)) + logging.info('Loading cache file: %s', self.file_name) self.data = get_file_json(self.file_name, throw_on_empty=False) or {} else: - logging.info('Cache file does not exist: {file}'.format(file=self.file_name)) - except Exception as e: - logging.exception(e) + logging.info('Cache file does not exist: %s', self.file_name) + except Exception as ex: + logging.exception(ex) # file is missing or corrupt so attempt to delete it try: os.remove(self.file_name) - except Exception as e2: - logging.exception(e2) + except Exception as ex2: + logging.exception(ex2) self.initial_load_occurred = True def save(self): diff --git a/vsts/vsts/vss_connection.py b/vsts/vsts/vss_connection.py index ca35766c..b150b9a9 100644 --- a/vsts/vsts/vss_connection.py +++ b/vsts/vsts/vss_connection.py @@ -59,7 +59,7 @@ def _get_url_for_client_instance(self, client_class): if resource_areas is None: raise VstsClientRequestError(('Failed to retrieve resource areas ' + 'from server: {url}').format(url=self.base_url)) - if len(resource_areas) == 0: + if not resource_areas: # For OnPrem environments we get an empty list. return self.base_url for resource_area in resource_areas: From b852edc2800ac7003d7ba1f5d0c454530cdbc92f Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 14 Nov 2017 15:35:35 -0500 Subject: [PATCH 008/191] regen from m126 release branch --- vsts/vsts/build/v4_1/build_client.py | 14 +++++++------- .../models/git_pull_request_completion_options.py | 8 ++++++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/vsts/vsts/build/v4_1/build_client.py b/vsts/vsts/build/v4_1/build_client.py index e12c8dfd..624d66ca 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/vsts/vsts/build/v4_1/build_client.py @@ -225,15 +225,15 @@ def get_build(self, build_id, project=None, property_filters=None): query_parameters=query_parameters) return self._deserialize('Build', response) - def get_builds(self, project=None, definitions=None, queues=None, build_number=None, min_finish_time=None, max_finish_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): + def get_builds(self, project=None, definitions=None, queues=None, build_number=None, min_time=None, max_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): """GetBuilds. [Preview API] Gets a list of builds. :param str project: Project ID or project name :param [int] definitions: A comma-delimited list of definition IDs. If specified, filters to builds for these definitions. :param [int] queues: A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues. :param str build_number: If specified, filters to builds that match this build number. Append * to do a prefix search. - :param datetime min_finish_time: If specified, filters to builds that finished after this date. - :param datetime max_finish_time: If specified, filters to builds that finished before this date. + :param datetime min_time: If specified, filters to builds that finished/started/queued after this date based on the queryOrder specified. + :param datetime max_time: If specified, filters to builds that finished/started/queued before this date based on the queryOrder specified. :param str requested_for: If specified, filters to builds requested for the specified user. :param BuildReason reason_filter: If specified, filters to builds that match this reason. :param BuildStatus status_filter: If specified, filters to builds that match this status. @@ -263,10 +263,10 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N query_parameters['queues'] = self._serialize.query('queues', queues, 'str') if build_number is not None: query_parameters['buildNumber'] = self._serialize.query('build_number', build_number, 'str') - if min_finish_time is not None: - query_parameters['minFinishTime'] = self._serialize.query('min_finish_time', min_finish_time, 'iso-8601') - if max_finish_time is not None: - query_parameters['maxFinishTime'] = self._serialize.query('max_finish_time', max_finish_time, 'iso-8601') + if min_time is not None: + query_parameters['minTime'] = self._serialize.query('min_time', min_time, 'iso-8601') + if max_time is not None: + query_parameters['maxTime'] = self._serialize.query('max_time', max_time, 'iso-8601') if requested_for is not None: query_parameters['requestedFor'] = self._serialize.query('requested_for', requested_for, 'str') if reason_filter is not None: diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py b/vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py index d0439970..6c16e9d4 100644 --- a/vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py +++ b/vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py @@ -24,6 +24,8 @@ class GitPullRequestCompletionOptions(Model): :type squash_merge: bool :param transition_work_items: If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved) :type transition_work_items: bool + :param triggered_by_auto_complete: If true, the current completion attempt was triggered via auto-complete. Used internally. + :type triggered_by_auto_complete: bool """ _attribute_map = { @@ -32,10 +34,11 @@ class GitPullRequestCompletionOptions(Model): 'delete_source_branch': {'key': 'deleteSourceBranch', 'type': 'bool'}, 'merge_commit_message': {'key': 'mergeCommitMessage', 'type': 'str'}, 'squash_merge': {'key': 'squashMerge', 'type': 'bool'}, - 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'} + 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'}, + 'triggered_by_auto_complete': {'key': 'triggeredByAutoComplete', 'type': 'bool'} } - def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None): + def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None, triggered_by_auto_complete=None): super(GitPullRequestCompletionOptions, self).__init__() self.bypass_policy = bypass_policy self.bypass_reason = bypass_reason @@ -43,3 +46,4 @@ def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch= self.merge_commit_message = merge_commit_message self.squash_merge = squash_merge self.transition_work_items = transition_work_items + self.triggered_by_auto_complete = triggered_by_auto_complete From cb2a78675ed368806e7aa514d557a6ac45af404d Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 14 Nov 2017 15:54:18 -0500 Subject: [PATCH 009/191] update version number --- vsts/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsts/setup.py b/vsts/setup.py index a93e3a40..913fcee4 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.0b0" +VERSION = "0.1.0b1" # To install the library, run the following # From 2fe4f810a4775d26661c8fba043d575ab52c7c7f Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 15 Nov 2017 12:34:31 -0500 Subject: [PATCH 010/191] update version number --- vsts/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsts/setup.py b/vsts/setup.py index 913fcee4..dcb6f8f7 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.0b1" +VERSION = "0.1.0b2" # To install the library, run the following # From 8d3fb6cb83e2e9fe3c617c7009e661726ab58a07 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 15 Nov 2017 13:27:02 -0500 Subject: [PATCH 011/191] update badge link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd085218..acca67a5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Visual Studio Team services](https://mseng.visualstudio.com/_apis/public/build/definitions/698eacea-9ea2-4eb8-80a4-d06170edf6bc/5904/badge)]() -[![Python](https://img.shields.io/pypi/pyversions/vsts-cli.svg?maxAge=2592000)](https://pypi.python.org/pypi/vsts) +[![Python](https://img.shields.io/pypi/pyversions/vsts-cli.svg)](https://pypi.python.org/pypi/vsts) # Microsoft Visual Studio Team Services Python API From 40d4f5803a3f0552e628b8ac3e7f7c99d1953f01 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 21 Nov 2017 10:29:11 -0500 Subject: [PATCH 012/191] fix version number in version.py --- vsts/vsts/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index f8340f47..1056243c 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.0b0" +VERSION = "0.1.0b2" From a6d7f95448a694ba63f6dc38e820a070afe22393 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 21 Nov 2017 12:48:16 -0500 Subject: [PATCH 013/191] bump version to 0.1.1 --- vsts/setup.py | 4 ++-- vsts/vsts/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index dcb6f8f7..1d803b35 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.0b2" +VERSION = "0.1.1" # To install the library, run the following # @@ -16,7 +16,7 @@ # http://pypi.python.org/pypi/setuptools REQUIRES = [ - "msrest>=0.4.5" + "msrest~=0.4.19" ] CLASSIFIERS = [ diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 1056243c..8492465c 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.0b2" +VERSION = "0.1.1" From aed650eb6ba7e80709e72a102cbddac6047bc4de Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 7 Dec 2017 12:00:01 -0500 Subject: [PATCH 014/191] handle case were service sends back a system exception rather than the proper wrapped exception. --- vsts/vsts/models/__init__.py | 2 ++ vsts/vsts/models/system_exception.py | 31 +++++++++++++++++++++++++++ vsts/vsts/models/wrapped_exception.py | 2 +- vsts/vsts/vss_client.py | 9 ++++++-- 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 vsts/vsts/models/system_exception.py diff --git a/vsts/vsts/models/__init__.py b/vsts/vsts/models/__init__.py index 6ddbb023..1ac30840 100644 --- a/vsts/vsts/models/__init__.py +++ b/vsts/vsts/models/__init__.py @@ -9,6 +9,7 @@ from ..customer_intelligence.v4_0.models.customer_intelligence_event import CustomerIntelligenceEvent from .improper_exception import ImproperException from ..location.v4_0.models.resource_area_info import ResourceAreaInfo +from .system_exception import SystemException from .vss_json_collection_wrapper_base import VssJsonCollectionWrapperBase from .vss_json_collection_wrapper import VssJsonCollectionWrapper from .wrapped_exception import WrappedException @@ -18,6 +19,7 @@ 'CustomerIntelligenceEvent', 'ImproperException', 'ResourceAreaInfo', + 'SystemException', 'VssJsonCollectionWrapperBase', 'VssJsonCollectionWrapper', 'WrappedException' diff --git a/vsts/vsts/models/system_exception.py b/vsts/vsts/models/system_exception.py new file mode 100644 index 00000000..7659b93b --- /dev/null +++ b/vsts/vsts/models/system_exception.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Generated file, DO NOT EDIT +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SystemException(Model): + """SystemException. + :param class_name: + :type class_name: str + :param inner_exception: + :type inner_exception: :class:`SystemException ` + :param message: + :type message: str + """ + + _attribute_map = { + 'class_name': {'key': 'ClassName', 'type': 'str'}, + 'message': {'key': 'Message', 'type': 'str'}, + 'inner_exception': {'key': 'InnerException', 'type': 'SystemException'} + } + + def __init__(self, class_name=None, message=None, inner_exception=None): + super(SystemException, self).__init__() + self.class_name = class_name + self.message = message + self.inner_exception = inner_exception diff --git a/vsts/vsts/models/wrapped_exception.py b/vsts/vsts/models/wrapped_exception.py index 8f274d63..537deb0c 100644 --- a/vsts/vsts/models/wrapped_exception.py +++ b/vsts/vsts/models/wrapped_exception.py @@ -13,7 +13,7 @@ class WrappedException(Model): :param exception_id: :type exception_id: str :param inner_exception: - :type inner_exception: :class:`WrappedException ` + :type inner_exception: :class:`WrappedException ` :param message: :type message: str :param type_name: diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index e53a6263..197f5cc0 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -227,9 +227,14 @@ def _handle_error(self, request, response): # Following code is to handle this unusual exception json case. # TODO: dig into this. collection_wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) - if collection_wrapper is not None: + if collection_wrapper is not None and collection_wrapper.value is not None: wrapped_exception = self._base_deserialize('ImproperException', collection_wrapper.value) - raise VstsClientRequestError(wrapped_exception.message) + if wrapped_exception is not None and wrapped_exception.message is not None: + raise VstsClientRequestError(wrapped_exception.message) + # if we get here we still have not raised an exception, try to deserialize as a System Exception + system_exception = self._base_deserialize('SystemException', response) + if system_exception is not None and system_exception.message is not None: + raise VstsClientRequestError(system_exception.message) except DeserializationError: pass elif response.content is not None: From b044336c25f4e5356e68705745f6b22cedee16b6 Mon Sep 17 00:00:00 2001 From: Vladimir Ritz Bossicard Date: Thu, 4 Jan 2018 14:10:52 +0100 Subject: [PATCH 015/191] add short getting started example. Related to issue #30 --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index acca67a5..194fa859 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,27 @@ This repository contains Microsoft Visual Studio Team Services Python API. This API is used to build the Visual Studio Team Services CLI. To learn more about the VSTS CLI, check out our [github repo](https://github.com/Microsoft/vsts-cli). +# Getting Started + +Following is an example how to use the API directly: + +``` +from vsts.vss_connection import VssConnection +from msrest.authentication import BasicAuthentication +import pprint + +token='REDACTED' +team_instance='https://REDACTED.visualstudio.com' + +credentials = BasicAuthentication('', token) +connection = VssConnection(base_url=team_instance, creds=credentials) +core_client = connection.get_client('vsts.core.v4_0.core_client.CoreClient') + +team_projects = core_client.get_projects() + +for project in team_projects: + pprint.pprint(project.__dict__) +``` # Contributing From 3518bf67bfa7a048c4e7c6601f73602a09b6de48 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 10 Jan 2018 18:22:31 -0500 Subject: [PATCH 016/191] regen clients after fixing some issues in the generator. 4.1 apis generated from M127 --- vsts/vsts/build/v4_0/build_client.py | 28 +++--- vsts/vsts/build/v4_1/build_client.py | 95 ++++++++++++++++--- vsts/vsts/build/v4_1/models/__init__.py | 8 ++ .../build/v4_1/models/build_definition.py | 18 ++-- .../build/v4_1/models/build_definition3_2.py | 4 +- .../v4_1/models/build_definition_reference.py | 10 +- .../models/build_definition_reference3_2.py | 79 +++++++++++++++ .../v4_1/models/source_provider_attributes.py | 33 +++++++ .../build/v4_1/models/source_repository.py | 49 ++++++++++ .../build/v4_1/models/supported_trigger.py | 37 ++++++++ vsts/vsts/core/v4_0/core_client.py | 8 +- vsts/vsts/core/v4_1/core_client.py | 56 +---------- vsts/vsts/git/v4_0/git_client_base.py | 20 ++-- vsts/vsts/git/v4_0/models/__init__.py | 2 + vsts/vsts/git/v4_0/models/item_content.py | 29 ++++++ vsts/vsts/git/v4_1/git_client_base.py | 20 ++-- vsts/vsts/git/v4_1/models/__init__.py | 2 + vsts/vsts/git/v4_1/models/item_content.py | 29 ++++++ vsts/vsts/identity/v4_0/identity_client.py | 32 +++---- vsts/vsts/identity/v4_1/identity_client.py | 32 +++---- vsts/vsts/location/v4_0/location_client.py | 4 +- vsts/vsts/location/v4_1/location_client.py | 4 +- .../v4_0/work_item_tracking_client.py | 52 +++++----- .../v4_1/models/query_hierarchy_item.py | 54 ++++++----- .../models/query_hierarchy_items_result.py | 6 +- .../work_item_tracking/v4_1/models/wiql.py | 2 +- .../v4_1/models/work_item_link.py | 6 +- .../v4_1/models/work_item_query_clause.py | 14 +-- .../v4_1/models/work_item_query_result.py | 14 +-- .../models/work_item_query_sort_column.py | 4 +- .../v4_1/models/work_item_state_color.py | 6 +- .../v4_1/models/work_item_type.py | 6 +- .../v4_1/work_item_tracking_client.py | 54 +++++------ 33 files changed, 561 insertions(+), 256 deletions(-) create mode 100644 vsts/vsts/build/v4_1/models/build_definition_reference3_2.py create mode 100644 vsts/vsts/build/v4_1/models/source_provider_attributes.py create mode 100644 vsts/vsts/build/v4_1/models/source_repository.py create mode 100644 vsts/vsts/build/v4_1/models/supported_trigger.py create mode 100644 vsts/vsts/git/v4_0/models/item_content.py create mode 100644 vsts/vsts/git/v4_1/models/item_content.py diff --git a/vsts/vsts/build/v4_0/build_client.py b/vsts/vsts/build/v4_0/build_client.py index f2a25929..01d6abdb 100644 --- a/vsts/vsts/build/v4_0/build_client.py +++ b/vsts/vsts/build/v4_0/build_client.py @@ -234,16 +234,16 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N :param datetime min_finish_time: :param datetime max_finish_time: :param str requested_for: - :param BuildReason reason_filter: - :param BuildStatus status_filter: - :param BuildResult result_filter: + :param str reason_filter: + :param str status_filter: + :param str result_filter: :param [str] tag_filters: A comma-delimited list of tags :param [str] properties: A comma-delimited list of properties to include in the results :param int top: The maximum number of builds to retrieve :param str continuation_token: :param int max_builds_per_definition: - :param QueryDeletedOption deleted_filter: - :param BuildQueryOrder query_order: + :param str deleted_filter: + :param str query_order: :param str branch_name: :param [int] build_ids: :param str repository_id: @@ -269,11 +269,11 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N if requested_for is not None: query_parameters['requestedFor'] = self._serialize.query('requested_for', requested_for, 'str') if reason_filter is not None: - query_parameters['reasonFilter'] = self._serialize.query('reason_filter', reason_filter, 'BuildReason') + query_parameters['reasonFilter'] = self._serialize.query('reason_filter', reason_filter, 'str') if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'BuildStatus') + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') if result_filter is not None: - query_parameters['resultFilter'] = self._serialize.query('result_filter', result_filter, 'BuildResult') + query_parameters['resultFilter'] = self._serialize.query('result_filter', result_filter, 'str') if tag_filters is not None: tag_filters = ",".join(tag_filters) query_parameters['tagFilters'] = self._serialize.query('tag_filters', tag_filters, 'str') @@ -287,9 +287,9 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N if max_builds_per_definition is not None: query_parameters['maxBuildsPerDefinition'] = self._serialize.query('max_builds_per_definition', max_builds_per_definition, 'int') if deleted_filter is not None: - query_parameters['deletedFilter'] = self._serialize.query('deleted_filter', deleted_filter, 'QueryDeletedOption') + query_parameters['deletedFilter'] = self._serialize.query('deleted_filter', deleted_filter, 'str') if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'BuildQueryOrder') + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') if branch_name is not None: query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') if build_ids is not None: @@ -543,7 +543,7 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor :param str name: :param str repository_id: :param str repository_type: - :param DefinitionQueryOrder query_order: + :param str query_order: :param int top: :param str continuation_token: :param datetime min_metrics_time: @@ -567,7 +567,7 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor if repository_type is not None: query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'DefinitionQueryOrder') + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if continuation_token is not None: @@ -668,7 +668,7 @@ def get_folders(self, project, path=None, query_order=None): [Preview API] Gets folders :param str project: Project ID or project name :param str path: - :param FolderQueryOrder query_order: + :param str query_order: :rtype: [Folder] """ route_values = {} @@ -678,7 +678,7 @@ def get_folders(self, project, path=None, query_order=None): route_values['path'] = self._serialize.url('path', path, 'str') query_parameters = {} if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'FolderQueryOrder') + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', version='4.0-preview.1', diff --git a/vsts/vsts/build/v4_1/build_client.py b/vsts/vsts/build/v4_1/build_client.py index 624d66ca..4c360b27 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/vsts/vsts/build/v4_1/build_client.py @@ -134,6 +134,33 @@ def get_badge(self, project, definition_id, branch_name=None): query_parameters=query_parameters) return self._deserialize('str', response) + def list_branches(self, project, provider_name, service_endpoint_id=None, repository=None): + """ListBranches. + [Preview API] Gets a list of branches for the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + response = self._send(http_method='GET', + location_id='e05d4403-9b81-4244-8763-20fde28d1976', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[str]', response) + def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): """GetBuildBadge. [Preview API] Gets a badge that indicates the status of the most recent build for the specified branch. @@ -235,16 +262,16 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N :param datetime min_time: If specified, filters to builds that finished/started/queued after this date based on the queryOrder specified. :param datetime max_time: If specified, filters to builds that finished/started/queued before this date based on the queryOrder specified. :param str requested_for: If specified, filters to builds requested for the specified user. - :param BuildReason reason_filter: If specified, filters to builds that match this reason. - :param BuildStatus status_filter: If specified, filters to builds that match this status. - :param BuildResult result_filter: If specified, filters to builds that match this result. + :param str reason_filter: If specified, filters to builds that match this reason. + :param str status_filter: If specified, filters to builds that match this status. + :param str result_filter: If specified, filters to builds that match this result. :param [str] tag_filters: A comma-delimited list of tags. If specified, filters to builds that have the specified tags. :param [str] properties: A comma-delimited list of properties to retrieve. :param int top: The maximum number of builds to return. :param str continuation_token: A continuation token, returned by a previous call to this method, that can be used to return the next set of builds. :param int max_builds_per_definition: The maximum number of builds to return per definition. - :param QueryDeletedOption deleted_filter: Indicates whether to exclude, include, or only return deleted builds. - :param BuildQueryOrder query_order: The order in which builds should be returned. + :param str deleted_filter: Indicates whether to exclude, include, or only return deleted builds. + :param str query_order: The order in which builds should be returned. :param str branch_name: If specified, filters to builds that built branches that built this branch. :param [int] build_ids: A comma-delimited list that specifies the IDs of builds to retrieve. :param str repository_id: If specified, filters to builds that built from this repository. @@ -270,11 +297,11 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N if requested_for is not None: query_parameters['requestedFor'] = self._serialize.query('requested_for', requested_for, 'str') if reason_filter is not None: - query_parameters['reasonFilter'] = self._serialize.query('reason_filter', reason_filter, 'BuildReason') + query_parameters['reasonFilter'] = self._serialize.query('reason_filter', reason_filter, 'str') if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'BuildStatus') + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') if result_filter is not None: - query_parameters['resultFilter'] = self._serialize.query('result_filter', result_filter, 'BuildResult') + query_parameters['resultFilter'] = self._serialize.query('result_filter', result_filter, 'str') if tag_filters is not None: tag_filters = ",".join(tag_filters) query_parameters['tagFilters'] = self._serialize.query('tag_filters', tag_filters, 'str') @@ -288,9 +315,9 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N if max_builds_per_definition is not None: query_parameters['maxBuildsPerDefinition'] = self._serialize.query('max_builds_per_definition', max_builds_per_definition, 'int') if deleted_filter is not None: - query_parameters['deletedFilter'] = self._serialize.query('deleted_filter', deleted_filter, 'QueryDeletedOption') + query_parameters['deletedFilter'] = self._serialize.query('deleted_filter', deleted_filter, 'str') if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'BuildQueryOrder') + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') if branch_name is not None: query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') if build_ids is not None: @@ -544,7 +571,7 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor :param str name: If specified, filters to definitions whose names match this pattern. :param str repository_id: A repository ID. If specified, filters to definitions that use this repository. :param str repository_type: If specified, filters to definitions that have a repository of this type. - :param DefinitionQueryOrder query_order: Indicates the order in which definitions should be returned. + :param str query_order: Indicates the order in which definitions should be returned. :param int top: The maximum number of definitions to return. :param str continuation_token: A continuation token, returned by a previous call to this method, that can be used to return the next set of definitions. :param datetime min_metrics_time: If specified, indicates the date from which metrics should be included. @@ -568,7 +595,7 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor if repository_type is not None: query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'DefinitionQueryOrder') + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if continuation_token is not None: @@ -669,7 +696,7 @@ def get_folders(self, project, path=None, query_order=None): [Preview API] Gets a list of build definition folders. :param str project: Project ID or project name :param str path: The path to start with. - :param FolderQueryOrder query_order: The order in which folders should be returned. + :param str query_order: The order in which folders should be returned. :rtype: [Folder] """ route_values = {} @@ -679,7 +706,7 @@ def get_folders(self, project, path=None, query_order=None): route_values['path'] = self._serialize.url('path', path, 'str') query_parameters = {} if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'FolderQueryOrder') + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', version='4.1-preview.1', @@ -1007,6 +1034,30 @@ def get_build_report_html_content(self, project, build_id, type=None): query_parameters=query_parameters) return self._deserialize('object', response) + def list_repositories(self, project, provider_name, service_endpoint_id=None): + """ListRepositories. + [Preview API] Gets a list of source code repositories. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do use service endpoints, e.g. TFVC or TFGit. + :rtype: [SourceRepository] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + response = self._send(http_method='GET', + location_id='d44d1680-f978-4834-9b93-8c6e132329c9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SourceRepository]', response) + def get_resource_usage(self): """GetResourceUsage. [Preview API] Gets information about build resources in the system. @@ -1059,6 +1110,22 @@ def update_build_settings(self, settings): content=content) return self._deserialize('BuildSettings', response) + def list_source_providers(self, project): + """ListSourceProviders. + [Preview API] Get a list of source providers and their capabilities. + :param str project: Project ID or project name + :rtype: [SourceProviderAttributes] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='3ce81729-954f-423d-a581-9fea01d25186', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SourceProviderAttributes]', response) + def add_build_tag(self, project, build_id, tag): """AddBuildTag. [Preview API] Adds a tag to a build. diff --git a/vsts/vsts/build/v4_1/models/__init__.py b/vsts/vsts/build/v4_1/models/__init__.py index 990a3465..11182e19 100644 --- a/vsts/vsts/build/v4_1/models/__init__.py +++ b/vsts/vsts/build/v4_1/models/__init__.py @@ -16,6 +16,7 @@ from .build_definition import BuildDefinition from .build_definition3_2 import BuildDefinition3_2 from .build_definition_reference import BuildDefinitionReference +from .build_definition_reference3_2 import BuildDefinitionReference3_2 from .build_definition_revision import BuildDefinitionRevision from .build_definition_step import BuildDefinitionStep from .build_definition_template import BuildDefinitionTemplate @@ -48,6 +49,9 @@ from .reference_links import ReferenceLinks from .resource_ref import ResourceRef from .retention_policy import RetentionPolicy +from .source_provider_attributes import SourceProviderAttributes +from .source_repository import SourceRepository +from .supported_trigger import SupportedTrigger from .task_agent_pool_reference import TaskAgentPoolReference from .task_definition_reference import TaskDefinitionReference from .task_input_definition_base import TaskInputDefinitionBase @@ -75,6 +79,7 @@ 'BuildDefinition', 'BuildDefinition3_2', 'BuildDefinitionReference', + 'BuildDefinitionReference3_2', 'BuildDefinitionRevision', 'BuildDefinitionStep', 'BuildDefinitionTemplate', @@ -107,6 +112,9 @@ 'ReferenceLinks', 'ResourceRef', 'RetentionPolicy', + 'SourceProviderAttributes', + 'SourceRepository', + 'SupportedTrigger', 'TaskAgentPoolReference', 'TaskDefinitionReference', 'TaskInputDefinitionBase', diff --git a/vsts/vsts/build/v4_1/models/build_definition.py b/vsts/vsts/build/v4_1/models/build_definition.py index 5b5b89b1..2eb2d342 100644 --- a/vsts/vsts/build/v4_1/models/build_definition.py +++ b/vsts/vsts/build/v4_1/models/build_definition.py @@ -40,6 +40,10 @@ class BuildDefinition(BuildDefinitionReference): :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. :type drafts: list of :class:`DefinitionReference ` + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` :param metrics: :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) @@ -64,10 +68,6 @@ class BuildDefinition(BuildDefinitionReference): :type job_cancel_timeout_in_minutes: int :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. :type job_timeout_in_minutes: int - :param latest_build: - :type latest_build: :class:`Build ` - :param latest_completed_build: - :type latest_completed_build: :class:`Build ` :param options: :type options: list of :class:`BuildOption ` :param process: The build process. @@ -105,6 +105,8 @@ class BuildDefinition(BuildDefinitionReference): 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, 'quality': {'key': 'quality', 'type': 'object'}, 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, @@ -117,8 +119,6 @@ class BuildDefinition(BuildDefinitionReference): 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, - 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, 'options': {'key': 'options', 'type': '[BuildOption]'}, 'process': {'key': 'process', 'type': 'BuildProcess'}, 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, @@ -131,8 +131,8 @@ class BuildDefinition(BuildDefinitionReference): 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): - super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, metrics=metrics, quality=quality, queue=queue) + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): + super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, latest_build=latest_build, latest_completed_build=latest_completed_build, metrics=metrics, quality=quality, queue=queue) self.badge_enabled = badge_enabled self.build_number_format = build_number_format self.comment = comment @@ -142,8 +142,6 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non self.job_authorization_scope = job_authorization_scope self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes self.job_timeout_in_minutes = job_timeout_in_minutes - self.latest_build = latest_build - self.latest_completed_build = latest_completed_build self.options = options self.process = process self.process_parameters = process_parameters diff --git a/vsts/vsts/build/v4_1/models/build_definition3_2.py b/vsts/vsts/build/v4_1/models/build_definition3_2.py index e356d7c0..9aef37d5 100644 --- a/vsts/vsts/build/v4_1/models/build_definition3_2.py +++ b/vsts/vsts/build/v4_1/models/build_definition3_2.py @@ -6,10 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .build_definition_reference import BuildDefinitionReference +from .build_definition_reference3_2 import BuildDefinitionReference3_2 -class BuildDefinition3_2(BuildDefinitionReference): +class BuildDefinition3_2(BuildDefinitionReference3_2): """BuildDefinition3_2. :param created_date: The date the definition was created. diff --git a/vsts/vsts/build/v4_1/models/build_definition_reference.py b/vsts/vsts/build/v4_1/models/build_definition_reference.py index 64264ea2..828ef304 100644 --- a/vsts/vsts/build/v4_1/models/build_definition_reference.py +++ b/vsts/vsts/build/v4_1/models/build_definition_reference.py @@ -40,6 +40,10 @@ class BuildDefinitionReference(DefinitionReference): :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. :type drafts: list of :class:`DefinitionReference ` + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` :param metrics: :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) @@ -63,17 +67,21 @@ class BuildDefinitionReference(DefinitionReference): 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, 'quality': {'key': 'quality', 'type': 'object'}, 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} } - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None): + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None): super(BuildDefinitionReference, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) self._links = _links self.authored_by = authored_by self.draft_of = draft_of self.drafts = drafts + self.latest_build = latest_build + self.latest_completed_build = latest_completed_build self.metrics = metrics self.quality = quality self.queue = queue diff --git a/vsts/vsts/build/v4_1/models/build_definition_reference3_2.py b/vsts/vsts/build/v4_1/models/build_definition_reference3_2.py new file mode 100644 index 00000000..08361ab3 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/build_definition_reference3_2.py @@ -0,0 +1,79 @@ +# -------------------------------------------------------------------------------------------- +# 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 .definition_reference import DefinitionReference + + +class BuildDefinitionReference3_2(DefinitionReference): + """BuildDefinitionReference3_2. + + :param created_date: The date the definition was created. + :type created_date: datetime + :param id: The ID of the referenced definition. + :type id: int + :param name: The name of the referenced definition. + :type name: str + :param path: The folder path of the definition. + :type path: str + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The definition's URI. + :type uri: str + :param url: The REST URL of the definition. + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None): + super(BuildDefinitionReference3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) + self._links = _links + self.authored_by = authored_by + self.draft_of = draft_of + self.drafts = drafts + self.metrics = metrics + self.quality = quality + self.queue = queue diff --git a/vsts/vsts/build/v4_1/models/source_provider_attributes.py b/vsts/vsts/build/v4_1/models/source_provider_attributes.py new file mode 100644 index 00000000..e03a9198 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/source_provider_attributes.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SourceProviderAttributes(Model): + """SourceProviderAttributes. + + :param name: The name of the source provider. + :type name: str + :param supported_capabilities: The capabilities supported by this source provider. + :type supported_capabilities: dict + :param supported_triggers: The types of triggers supported by this source provider. + :type supported_triggers: list of :class:`SupportedTrigger ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{bool}'}, + 'supported_triggers': {'key': 'supportedTriggers', 'type': '[SupportedTrigger]'} + } + + def __init__(self, name=None, supported_capabilities=None, supported_triggers=None): + super(SourceProviderAttributes, self).__init__() + self.name = name + self.supported_capabilities = supported_capabilities + self.supported_triggers = supported_triggers diff --git a/vsts/vsts/build/v4_1/models/source_repository.py b/vsts/vsts/build/v4_1/models/source_repository.py new file mode 100644 index 00000000..3e2e39a1 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/source_repository.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SourceRepository(Model): + """SourceRepository. + + :param default_branch: The name of the default branch. + :type default_branch: str + :param full_name: The full name of the repository. + :type full_name: str + :param id: The ID of the repository. + :type id: str + :param name: The friendly name of the repository. + :type name: str + :param properties: + :type properties: dict + :param source_provider_name: The name of the source provider the repository is from. + :type source_provider_name: str + :param url: The URL of the repository. + :type url: str + """ + + _attribute_map = { + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'full_name': {'key': 'fullName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'source_provider_name': {'key': 'sourceProviderName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, default_branch=None, full_name=None, id=None, name=None, properties=None, source_provider_name=None, url=None): + super(SourceRepository, self).__init__() + self.default_branch = default_branch + self.full_name = full_name + self.id = id + self.name = name + self.properties = properties + self.source_provider_name = source_provider_name + self.url = url diff --git a/vsts/vsts/build/v4_1/models/supported_trigger.py b/vsts/vsts/build/v4_1/models/supported_trigger.py new file mode 100644 index 00000000..7e446749 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/supported_trigger.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SupportedTrigger(Model): + """SupportedTrigger. + + :param default_polling_interval: The default interval to wait between polls (only relevant when NotificationType is Polling). + :type default_polling_interval: int + :param notification_type: How the trigger is notified of changes. + :type notification_type: str + :param supported_capabilities: The capabilities supported by this trigger. + :type supported_capabilities: dict + :param type: The type of trigger. + :type type: object + """ + + _attribute_map = { + 'default_polling_interval': {'key': 'defaultPollingInterval', 'type': 'int'}, + 'notification_type': {'key': 'notificationType', 'type': 'str'}, + 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{SupportLevel}'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, default_polling_interval=None, notification_type=None, supported_capabilities=None, type=None): + super(SupportedTrigger, self).__init__() + self.default_polling_interval = default_polling_interval + self.notification_type = notification_type + self.supported_capabilities = supported_capabilities + self.type = type diff --git a/vsts/vsts/core/v4_0/core_client.py b/vsts/vsts/core/v4_0/core_client.py index ae75f9cd..647e683f 100644 --- a/vsts/vsts/core/v4_0/core_client.py +++ b/vsts/vsts/core/v4_0/core_client.py @@ -65,7 +65,7 @@ def get_connected_services(self, project_id, kind=None): """GetConnectedServices. [Preview API] :param str project_id: - :param ConnectedServiceKind kind: + :param str kind: :rtype: [WebApiConnectedService] """ route_values = {} @@ -73,7 +73,7 @@ def get_connected_services(self, project_id, kind=None): route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') query_parameters = {} if kind is not None: - query_parameters['kind'] = self._serialize.query('kind', kind, 'ConnectedServiceKind') + query_parameters['kind'] = self._serialize.query('kind', kind, 'str') response = self._send(http_method='GET', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', version='4.0-preview.1', @@ -258,7 +258,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None): """GetProjects. Get project references with the specified state - :param object state_filter: Filter on team projects in a specific team project state (default: WellFormed). + :param str state_filter: Filter on team projects in a specific team project state (default: WellFormed). :param int top: :param int skip: :param str continuation_token: @@ -266,7 +266,7 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke """ query_parameters = {} if state_filter is not None: - query_parameters['stateFilter'] = self._serialize.query('state_filter', state_filter, 'object') + query_parameters['stateFilter'] = self._serialize.query('state_filter', state_filter, 'str') if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if skip is not None: diff --git a/vsts/vsts/core/v4_1/core_client.py b/vsts/vsts/core/v4_1/core_client.py index 50e4e81d..2e69d16c 100644 --- a/vsts/vsts/core/v4_1/core_client.py +++ b/vsts/vsts/core/v4_1/core_client.py @@ -65,7 +65,7 @@ def get_connected_services(self, project_id, kind=None): """GetConnectedServices. [Preview API] :param str project_id: - :param ConnectedServiceKind kind: + :param str kind: :rtype: [WebApiConnectedService] """ route_values = {} @@ -73,7 +73,7 @@ def get_connected_services(self, project_id, kind=None): route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') query_parameters = {} if kind is not None: - query_parameters['kind'] = self._serialize.query('kind', kind, 'ConnectedServiceKind') + query_parameters['kind'] = self._serialize.query('kind', kind, 'str') response = self._send(http_method='GET', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', version='4.1-preview.1', @@ -82,54 +82,6 @@ def get_connected_services(self, project_id, kind=None): returns_collection=True) return self._deserialize('[WebApiConnectedService]', response) - def create_identity_mru(self, mru_data, mru_name): - """CreateIdentityMru. - [Preview API] - :param :class:` ` mru_data: - :param str mru_name: - """ - route_values = {} - if mru_name is not None: - route_values['mruName'] = self._serialize.url('mru_name', mru_name, 'str') - content = self._serialize.body(mru_data, 'IdentityData') - self._send(http_method='POST', - location_id='5ead0b70-2572-4697-97e9-f341069a783a', - version='4.1-preview.1', - route_values=route_values, - content=content) - - def get_identity_mru(self, mru_name): - """GetIdentityMru. - [Preview API] - :param str mru_name: - :rtype: [IdentityRef] - """ - route_values = {} - if mru_name is not None: - route_values['mruName'] = self._serialize.url('mru_name', mru_name, 'str') - response = self._send(http_method='GET', - location_id='5ead0b70-2572-4697-97e9-f341069a783a', - version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRef]', response) - - def update_identity_mru(self, mru_data, mru_name): - """UpdateIdentityMru. - [Preview API] - :param :class:` ` mru_data: - :param str mru_name: - """ - route_values = {} - if mru_name is not None: - route_values['mruName'] = self._serialize.url('mru_name', mru_name, 'str') - content = self._serialize.body(mru_data, 'IdentityData') - self._send(http_method='PATCH', - location_id='5ead0b70-2572-4697-97e9-f341069a783a', - version='4.1-preview.1', - route_values=route_values, - content=content) - def get_team_members_with_extended_properties(self, project_id, team_id, top=None, skip=None): """GetTeamMembersWithExtendedProperties. [Preview API] Get a list of members for a specific team. @@ -259,7 +211,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None): """GetProjects. [Preview API] Get project references with the specified state - :param object state_filter: Filter on team projects in a specific team project state (default: WellFormed). + :param str state_filter: Filter on team projects in a specific team project state (default: WellFormed). :param int top: :param int skip: :param str continuation_token: @@ -267,7 +219,7 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke """ query_parameters = {} if state_filter is not None: - query_parameters['stateFilter'] = self._serialize.query('state_filter', state_filter, 'object') + query_parameters['stateFilter'] = self._serialize.query('state_filter', state_filter, 'str') if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if skip is not None: diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/vsts/vsts/git/v4_0/git_client_base.py index 13c1812c..9a3e63ad 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/vsts/vsts/git/v4_0/git_client_base.py @@ -783,7 +783,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion :param str path: :param str project: Project ID or project name :param str scope_path: - :param VersionControlRecursionType recursion_level: + :param str recursion_level: :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: @@ -801,7 +801,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -829,7 +829,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r :param str path: :param str project: Project ID or project name :param str scope_path: - :param VersionControlRecursionType recursion_level: + :param str recursion_level: :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: @@ -847,7 +847,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -874,7 +874,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve :param str repository_id: :param str project: Project ID or project name :param str scope_path: - :param VersionControlRecursionType recursion_level: + :param str recursion_level: :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: @@ -891,7 +891,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -922,7 +922,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu :param str path: :param str project: Project ID or project name :param str scope_path: - :param VersionControlRecursionType recursion_level: + :param str recursion_level: :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: @@ -940,7 +940,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -968,7 +968,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur :param str path: :param str project: Project ID or project name :param str scope_path: - :param VersionControlRecursionType recursion_level: + :param str recursion_level: :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: @@ -986,7 +986,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: diff --git a/vsts/vsts/git/v4_0/models/__init__.py b/vsts/vsts/git/v4_0/models/__init__.py index 1c26a7c2..e1173eb2 100644 --- a/vsts/vsts/git/v4_0/models/__init__.py +++ b/vsts/vsts/git/v4_0/models/__init__.py @@ -90,6 +90,7 @@ from .identity_ref import IdentityRef from .identity_ref_with_vote import IdentityRefWithVote from .import_repository_validation import ImportRepositoryValidation +from .item_content import ItemContent from .item_model import ItemModel from .reference_links import ReferenceLinks from .resource_ref import ResourceRef @@ -186,6 +187,7 @@ 'IdentityRef', 'IdentityRefWithVote', 'ImportRepositoryValidation', + 'ItemContent', 'ItemModel', 'ReferenceLinks', 'ResourceRef', diff --git a/vsts/vsts/git/v4_0/models/item_content.py b/vsts/vsts/git/v4_0/models/item_content.py new file mode 100644 index 00000000..f5cfaef1 --- /dev/null +++ b/vsts/vsts/git/v4_0/models/item_content.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index 4c48b172..345923d9 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -761,7 +761,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. - :param VersionControlRecursionType recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. @@ -779,7 +779,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -807,7 +807,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. - :param VersionControlRecursionType recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. @@ -825,7 +825,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -852,7 +852,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve :param str repository_id: The Id of the repository. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. - :param VersionControlRecursionType recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. @@ -869,7 +869,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -900,7 +900,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. - :param VersionControlRecursionType recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. @@ -918,7 +918,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: @@ -946,7 +946,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. - :param VersionControlRecursionType recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. @@ -964,7 +964,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur if scope_path is not None: query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'VersionControlRecursionType') + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if include_content_metadata is not None: query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') if latest_processed_change is not None: diff --git a/vsts/vsts/git/v4_1/models/__init__.py b/vsts/vsts/git/v4_1/models/__init__.py index 4ec1fdab..3b8af05a 100644 --- a/vsts/vsts/git/v4_1/models/__init__.py +++ b/vsts/vsts/git/v4_1/models/__init__.py @@ -91,6 +91,7 @@ from .identity_ref import IdentityRef from .identity_ref_with_vote import IdentityRefWithVote from .import_repository_validation import ImportRepositoryValidation +from .item_content import ItemContent from .item_model import ItemModel from .json_patch_operation import JsonPatchOperation from .reference_links import ReferenceLinks @@ -189,6 +190,7 @@ 'IdentityRef', 'IdentityRefWithVote', 'ImportRepositoryValidation', + 'ItemContent', 'ItemModel', 'JsonPatchOperation', 'ReferenceLinks', diff --git a/vsts/vsts/git/v4_1/models/item_content.py b/vsts/vsts/git/v4_1/models/item_content.py new file mode 100644 index 00000000..f5cfaef1 --- /dev/null +++ b/vsts/vsts/git/v4_1/models/item_content.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type diff --git a/vsts/vsts/identity/v4_0/identity_client.py b/vsts/vsts/identity/v4_0/identity_client.py index 89c30211..08a564dc 100644 --- a/vsts/vsts/identity/v4_0/identity_client.py +++ b/vsts/vsts/identity/v4_0/identity_client.py @@ -148,10 +148,10 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non :param str identity_ids: :param str search_filter: :param str filter_value: - :param QueryMembership query_membership: + :param str query_membership: :param str properties: :param bool include_restricted_visibility: - :param ReadIdentitiesOptions options: + :param str options: :rtype: [Identity] """ query_parameters = {} @@ -164,13 +164,13 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non if filter_value is not None: query_parameters['filterValue'] = self._serialize.query('filter_value', filter_value, 'str') if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') if properties is not None: query_parameters['properties'] = self._serialize.query('properties', properties, 'str') if include_restricted_visibility is not None: query_parameters['includeRestrictedVisibility'] = self._serialize.query('include_restricted_visibility', include_restricted_visibility, 'bool') if options is not None: - query_parameters['options'] = self._serialize.query('options', options, 'ReadIdentitiesOptions') + query_parameters['options'] = self._serialize.query('options', options, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.0', @@ -181,7 +181,7 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non def read_identities_by_scope(self, scope_id, query_membership=None, properties=None): """ReadIdentitiesByScope. :param str scope_id: - :param QueryMembership query_membership: + :param str query_membership: :param str properties: :rtype: [Identity] """ @@ -189,7 +189,7 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N if scope_id is not None: query_parameters['scopeId'] = self._serialize.query('scope_id', scope_id, 'str') if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') if properties is not None: query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', @@ -202,7 +202,7 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N def read_identity(self, identity_id, query_membership=None, properties=None): """ReadIdentity. :param str identity_id: - :param QueryMembership query_membership: + :param str query_membership: :param str properties: :rtype: :class:` ` """ @@ -211,7 +211,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): route_values['identityId'] = self._serialize.url('identity_id', identity_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') if properties is not None: query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', @@ -333,7 +333,7 @@ def read_member(self, container_id, member_id, query_membership=None): [Preview API] :param str container_id: :param str member_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: :class:` ` """ route_values = {} @@ -343,7 +343,7 @@ def read_member(self, container_id, member_id, query_membership=None): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', version='4.0-preview.1', @@ -355,7 +355,7 @@ def read_members(self, container_id, query_membership=None): """ReadMembers. [Preview API] :param str container_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: [str] """ route_values = {} @@ -363,7 +363,7 @@ def read_members(self, container_id, query_membership=None): route_values['containerId'] = self._serialize.url('container_id', container_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', version='4.0-preview.1', @@ -395,7 +395,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): [Preview API] :param str member_id: :param str container_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: :class:` ` """ route_values = {} @@ -405,7 +405,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): route_values['containerId'] = self._serialize.url('container_id', container_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', version='4.0-preview.1', @@ -417,7 +417,7 @@ def read_members_of(self, member_id, query_membership=None): """ReadMembersOf. [Preview API] :param str member_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: [str] """ route_values = {} @@ -425,7 +425,7 @@ def read_members_of(self, member_id, query_membership=None): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', version='4.0-preview.1', diff --git a/vsts/vsts/identity/v4_1/identity_client.py b/vsts/vsts/identity/v4_1/identity_client.py index bf86d156..224d47cc 100644 --- a/vsts/vsts/identity/v4_1/identity_client.py +++ b/vsts/vsts/identity/v4_1/identity_client.py @@ -154,10 +154,10 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non :param str identity_ids: :param str search_filter: :param str filter_value: - :param QueryMembership query_membership: + :param str query_membership: :param str properties: :param bool include_restricted_visibility: - :param ReadIdentitiesOptions options: + :param str options: :rtype: [Identity] """ query_parameters = {} @@ -170,13 +170,13 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non if filter_value is not None: query_parameters['filterValue'] = self._serialize.query('filter_value', filter_value, 'str') if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') if properties is not None: query_parameters['properties'] = self._serialize.query('properties', properties, 'str') if include_restricted_visibility is not None: query_parameters['includeRestrictedVisibility'] = self._serialize.query('include_restricted_visibility', include_restricted_visibility, 'bool') if options is not None: - query_parameters['options'] = self._serialize.query('options', options, 'ReadIdentitiesOptions') + query_parameters['options'] = self._serialize.query('options', options, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.1-preview.1', @@ -188,7 +188,7 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N """ReadIdentitiesByScope. [Preview API] :param str scope_id: - :param QueryMembership query_membership: + :param str query_membership: :param str properties: :rtype: [Identity] """ @@ -196,7 +196,7 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N if scope_id is not None: query_parameters['scopeId'] = self._serialize.query('scope_id', scope_id, 'str') if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') if properties is not None: query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', @@ -210,7 +210,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): """ReadIdentity. [Preview API] :param str identity_id: - :param QueryMembership query_membership: + :param str query_membership: :param str properties: :rtype: :class:` ` """ @@ -219,7 +219,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): route_values['identityId'] = self._serialize.url('identity_id', identity_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') if properties is not None: query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', @@ -344,7 +344,7 @@ def read_member(self, container_id, member_id, query_membership=None): [Preview API] :param str container_id: :param str member_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: :class:` ` """ route_values = {} @@ -354,7 +354,7 @@ def read_member(self, container_id, member_id, query_membership=None): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', version='4.1-preview.1', @@ -366,7 +366,7 @@ def read_members(self, container_id, query_membership=None): """ReadMembers. [Preview API] :param str container_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: [str] """ route_values = {} @@ -374,7 +374,7 @@ def read_members(self, container_id, query_membership=None): route_values['containerId'] = self._serialize.url('container_id', container_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', version='4.1-preview.1', @@ -406,7 +406,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): [Preview API] :param str member_id: :param str container_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: :class:` ` """ route_values = {} @@ -416,7 +416,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): route_values['containerId'] = self._serialize.url('container_id', container_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', version='4.1-preview.1', @@ -428,7 +428,7 @@ def read_members_of(self, member_id, query_membership=None): """ReadMembersOf. [Preview API] :param str member_id: - :param QueryMembership query_membership: + :param str query_membership: :rtype: [str] """ route_values = {} @@ -436,7 +436,7 @@ def read_members_of(self, member_id, query_membership=None): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') query_parameters = {} if query_membership is not None: - query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'QueryMembership') + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', version='4.1-preview.1', diff --git a/vsts/vsts/location/v4_0/location_client.py b/vsts/vsts/location/v4_0/location_client.py index 43aef308..f9ab6d62 100644 --- a/vsts/vsts/location/v4_0/location_client.py +++ b/vsts/vsts/location/v4_0/location_client.py @@ -28,14 +28,14 @@ def __init__(self, base_url=None, creds=None): def get_connection_data(self, connect_options=None, last_change_id=None, last_change_id64=None): """GetConnectionData. [Preview API] This was copied and adapted from TeamFoundationConnectionService.Connect() - :param ConnectOptions connect_options: + :param str connect_options: :param int last_change_id: Obsolete 32-bit LastChangeId :param long last_change_id64: Non-truncated 64-bit LastChangeId :rtype: :class:` ` """ query_parameters = {} if connect_options is not None: - query_parameters['connectOptions'] = self._serialize.query('connect_options', connect_options, 'ConnectOptions') + query_parameters['connectOptions'] = self._serialize.query('connect_options', connect_options, 'str') if last_change_id is not None: query_parameters['lastChangeId'] = self._serialize.query('last_change_id', last_change_id, 'int') if last_change_id64 is not None: diff --git a/vsts/vsts/location/v4_1/location_client.py b/vsts/vsts/location/v4_1/location_client.py index 5b2f3011..a284b28f 100644 --- a/vsts/vsts/location/v4_1/location_client.py +++ b/vsts/vsts/location/v4_1/location_client.py @@ -28,14 +28,14 @@ def __init__(self, base_url=None, creds=None): def get_connection_data(self, connect_options=None, last_change_id=None, last_change_id64=None): """GetConnectionData. [Preview API] This was copied and adapted from TeamFoundationConnectionService.Connect() - :param ConnectOptions connect_options: + :param str connect_options: :param int last_change_id: Obsolete 32-bit LastChangeId :param long last_change_id64: Non-truncated 64-bit LastChangeId :rtype: :class:` ` """ query_parameters = {} if connect_options is not None: - query_parameters['connectOptions'] = self._serialize.query('connect_options', connect_options, 'ConnectOptions') + query_parameters['connectOptions'] = self._serialize.query('connect_options', connect_options, 'str') if last_change_id is not None: query_parameters['lastChangeId'] = self._serialize.query('last_change_id', last_change_id, 'int') if last_change_id64 is not None: diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index 0ed6cea2..19b512b2 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -252,7 +252,7 @@ def get_comments(self, id, from_revision=None, top=None, order=None): :param int id: Work item id :param int from_revision: Revision from which comments are to be fetched :param int top: The number of comments to return - :param CommentSortOrder order: Ascending or descending by revision id + :param str order: Ascending or descending by revision id :rtype: :class:` ` """ route_values = {} @@ -264,7 +264,7 @@ def get_comments(self, id, from_revision=None, top=None, order=None): if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if order is not None: - query_parameters['order'] = self._serialize.query('order', order, 'CommentSortOrder') + query_parameters['order'] = self._serialize.query('order', order, 'str') response = self._send(http_method='GET', location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', version='4.0-preview.1', @@ -309,7 +309,7 @@ def get_fields(self, project=None, expand=None): """GetFields. Returns information for all fields. :param str project: Project ID or project name - :param GetFieldsExpand expand: Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. + :param str expand: Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. :rtype: [WorkItemField] """ route_values = {} @@ -317,7 +317,7 @@ def get_fields(self, project=None, expand=None): route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'GetFieldsExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', version='4.0', @@ -384,7 +384,7 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): """GetQueries. Retrieves all queries the user has access to in the current project :param str project: Project ID or project name - :param QueryExpand expand: + :param str expand: :param int depth: :param bool include_deleted: :rtype: [QueryHierarchyItem] @@ -394,7 +394,7 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'QueryExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if depth is not None: query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') if include_deleted is not None: @@ -412,7 +412,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non Retrieves a single query by project and either id or path :param str project: Project ID or project name :param str query: - :param QueryExpand expand: + :param str expand: :param int depth: :param bool include_deleted: :rtype: :class:` ` @@ -424,7 +424,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non route_values['query'] = self._serialize.url('query', query, 'str') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'QueryExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if depth is not None: query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') if include_deleted is not None: @@ -442,7 +442,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted :param str project: Project ID or project name :param str filter: :param int top: - :param QueryExpand expand: + :param str expand: :param bool include_deleted: :rtype: :class:` ` """ @@ -455,7 +455,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'QueryExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if include_deleted is not None: query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', @@ -588,7 +588,7 @@ def get_revision(self, id, revision_number, expand=None): Returns a fully hydrated work item for the requested revision :param int id: :param int revision_number: - :param WorkItemExpand expand: + :param str expand: :rtype: :class:` ` """ route_values = {} @@ -598,7 +598,7 @@ def get_revision(self, id, revision_number, expand=None): route_values['revisionNumber'] = self._serialize.url('revision_number', revision_number, 'int') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', version='4.0', @@ -612,7 +612,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): :param int id: :param int top: :param int skip: - :param WorkItemExpand expand: + :param str expand: :rtype: [WorkItem] """ route_values = {} @@ -624,7 +624,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): if skip is not None: query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', version='4.0', @@ -1086,7 +1086,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co :param bool include_deleted: Specify if the deleted item should be returned. :param bool include_tag_ref: Specify if the tag objects should be returned for System.Tags field. :param bool include_latest_only: Return only the latest revisions of work items, skipping all historical revisions - :param ReportingRevisionsExpand expand: Return all the fields in work item revisions, including long text fields which are not returned by default + :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed :rtype: :class:` ` """ @@ -1113,7 +1113,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co if include_latest_only is not None: query_parameters['includeLatestOnly'] = self._serialize.query('include_latest_only', include_latest_only, 'bool') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'ReportingRevisionsExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if include_discussion_changes_only is not None: query_parameters['includeDiscussionChangesOnly'] = self._serialize.query('include_discussion_changes_only', include_discussion_changes_only, 'bool') response = self._send(http_method='GET', @@ -1130,7 +1130,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. - :param ReportingRevisionsExpand expand: + :param str expand: :rtype: :class:` ` """ route_values = {} @@ -1142,7 +1142,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token if start_date_time is not None: query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'ReportingRevisionsExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') content = self._serialize.body(filter, 'ReportingWorkItemRevisionsFilter') response = self._send(http_method='POST', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', @@ -1177,7 +1177,7 @@ def get_work_item(self, id, fields=None, as_of=None, expand=None): :param int id: :param [str] fields: :param datetime as_of: - :param WorkItemExpand expand: + :param str expand: :rtype: :class:` ` """ route_values = {} @@ -1190,7 +1190,7 @@ def get_work_item(self, id, fields=None, as_of=None, expand=None): if as_of is not None: query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', version='4.0', @@ -1204,8 +1204,8 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy :param [int] ids: :param [str] fields: :param datetime as_of: - :param WorkItemExpand expand: - :param WorkItemErrorPolicy error_policy: + :param str expand: + :param str error_policy: :rtype: [WorkItem] """ query_parameters = {} @@ -1218,9 +1218,9 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy if as_of is not None: query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if error_policy is not None: - query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'WorkItemErrorPolicy') + query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', version='4.0', @@ -1298,7 +1298,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= :param str type: :param str fields: :param datetime as_of: - :param WorkItemExpand expand: + :param str expand: :rtype: :class:` ` """ route_values = {} @@ -1312,7 +1312,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= if as_of is not None: query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', version='4.0', diff --git a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py index fe37d45c..7774563f 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py @@ -16,53 +16,55 @@ class QueryHierarchyItem(WorkItemTrackingResource): :type url: str :param _links: Link references to related REST resources. :type _links: :class:`ReferenceLinks ` - :param children: + :param children: The child query items inside a query folder. :type children: list of :class:`QueryHierarchyItem ` - :param clauses: + :param clauses: The clauses for a flat query. :type clauses: :class:`WorkItemQueryClause ` - :param columns: + :param columns: The columns of the query. :type columns: list of :class:`WorkItemFieldReference ` - :param created_by: + :param created_by: The identity who created the query item. :type created_by: :class:`IdentityReference ` - :param created_date: + :param created_date: When the query item was created. :type created_date: datetime - :param filter_options: + :param filter_options: The link query mode. :type filter_options: object - :param has_children: + :param has_children: If this is a query folder, indicates if it contains any children. :type has_children: bool - :param id: + :param id: The id of the query item. :type id: str - :param is_deleted: + :param is_deleted: Indicates if this query item is deleted. :type is_deleted: bool - :param is_folder: + :param is_folder: Indicates if this is a query folder or a query. :type is_folder: bool - :param is_invalid_syntax: + :param is_invalid_syntax: Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path. :type is_invalid_syntax: bool - :param is_public: + :param is_public: Indicates if this query item is public or private. :type is_public: bool - :param last_executed_by: + :param last_executed_by: The identity who last ran the query. :type last_executed_by: :class:`IdentityReference ` - :param last_executed_date: + :param last_executed_date: When the query was last run. :type last_executed_date: datetime - :param last_modified_by: + :param last_modified_by: The identity who last modified the query item. :type last_modified_by: :class:`IdentityReference ` - :param last_modified_date: + :param last_modified_date: When the query item was last modified. :type last_modified_date: datetime - :param link_clauses: + :param link_clauses: The link query clause. :type link_clauses: :class:`WorkItemQueryClause ` - :param name: + :param name: The name of the query item. :type name: str - :param path: + :param path: The path of the query item. :type path: str - :param query_type: + :param query_recursion_option: The recursion option for use in a tree query. + :type query_recursion_option: object + :param query_type: The type of query. :type query_type: object - :param sort_columns: + :param sort_columns: The sort columns of the query. :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param source_clauses: + :param source_clauses: The source clauses in a tree or one-hop link query. :type source_clauses: :class:`WorkItemQueryClause ` - :param target_clauses: + :param target_clauses: The target clauses in a tree or one-hop link query. :type target_clauses: :class:`WorkItemQueryClause ` - :param wiql: + :param wiql: The WIQL text of the query :type wiql: str """ @@ -88,6 +90,7 @@ class QueryHierarchyItem(WorkItemTrackingResource): 'link_clauses': {'key': 'linkClauses', 'type': 'WorkItemQueryClause'}, 'name': {'key': 'name', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, + 'query_recursion_option': {'key': 'queryRecursionOption', 'type': 'object'}, 'query_type': {'key': 'queryType', 'type': 'object'}, 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, 'source_clauses': {'key': 'sourceClauses', 'type': 'WorkItemQueryClause'}, @@ -95,7 +98,7 @@ class QueryHierarchyItem(WorkItemTrackingResource): 'wiql': {'key': 'wiql', 'type': 'str'} } - def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_executed_by=None, last_executed_date=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): + def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_executed_by=None, last_executed_date=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_recursion_option=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): super(QueryHierarchyItem, self).__init__(url=url, _links=_links) self.children = children self.clauses = clauses @@ -116,6 +119,7 @@ def __init__(self, url=None, _links=None, children=None, clauses=None, columns=N self.link_clauses = link_clauses self.name = name self.path = path + self.query_recursion_option = query_recursion_option self.query_type = query_type self.sort_columns = sort_columns self.source_clauses = source_clauses diff --git a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py index ff5a4898..c1c8e0a8 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py @@ -12,11 +12,11 @@ class QueryHierarchyItemsResult(Model): """QueryHierarchyItemsResult. - :param count: + :param count: The count of items. :type count: int - :param has_more: + :param has_more: Indicates if the max return limit was hit but there are still more items :type has_more: bool - :param value: + :param value: The list of items :type value: list of :class:`QueryHierarchyItem ` """ diff --git a/vsts/vsts/work_item_tracking/v4_1/models/wiql.py b/vsts/vsts/work_item_tracking/v4_1/models/wiql.py index 963d17e3..9cf1b515 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/wiql.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/wiql.py @@ -12,7 +12,7 @@ class Wiql(Model): """Wiql. - :param query: + :param query: The text of the WIQL query :type query: str """ diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py index 190f060c..fa4794a9 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py @@ -12,11 +12,11 @@ class WorkItemLink(Model): """WorkItemLink. - :param rel: + :param rel: The type of link. :type rel: str - :param source: + :param source: The source work item. :type source: :class:`WorkItemReference ` - :param target: + :param target: The target work item. :type target: :class:`WorkItemReference ` """ diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py index 4a260268..6e298ecb 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py @@ -12,19 +12,19 @@ class WorkItemQueryClause(Model): """WorkItemQueryClause. - :param clauses: + :param clauses: Child clauses if the current clause is a logical operator :type clauses: list of :class:`WorkItemQueryClause ` - :param field: + :param field: Field associated with condition :type field: :class:`WorkItemFieldReference ` - :param field_value: + :param field_value: Right side of the condition when a field to field comparison :type field_value: :class:`WorkItemFieldReference ` - :param is_field_value: + :param is_field_value: Determines if this is a field to field comparison :type is_field_value: bool - :param logical_operator: + :param logical_operator: Logical operator separating the condition clause :type logical_operator: object - :param operator: + :param operator: The field operator :type operator: :class:`WorkItemFieldOperation ` - :param value: + :param value: Right side of the condition when a field to value comparison :type value: str """ diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py index 3c342d4c..d51e21c4 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py @@ -12,19 +12,19 @@ class WorkItemQueryResult(Model): """WorkItemQueryResult. - :param as_of: + :param as_of: The date the query was run in the context of. :type as_of: datetime - :param columns: + :param columns: The columns of the query. :type columns: list of :class:`WorkItemFieldReference ` - :param query_result_type: + :param query_result_type: The result type :type query_result_type: object - :param query_type: + :param query_type: The type of the query :type query_type: object - :param sort_columns: + :param sort_columns: The sort columns of the query. :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param work_item_relations: + :param work_item_relations: The work item links returned by the query. :type work_item_relations: list of :class:`WorkItemLink ` - :param work_items: + :param work_items: The work items returned by the query. :type work_items: list of :class:`WorkItemReference ` """ diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py index 7517ac9a..1811b845 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py @@ -12,9 +12,9 @@ class WorkItemQuerySortColumn(Model): """WorkItemQuerySortColumn. - :param descending: + :param descending: The direction to sort by. :type descending: bool - :param field: + :param field: A work item field. :type field: :class:`WorkItemFieldReference ` """ diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py index 360fe743..239ebb0b 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py @@ -12,6 +12,8 @@ class WorkItemStateColor(Model): """WorkItemStateColor. + :param category: Category of state + :type category: str :param color: Color value :type color: str :param name: Work item type state name @@ -19,11 +21,13 @@ class WorkItemStateColor(Model): """ _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, 'color': {'key': 'color', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, color=None, name=None): + def __init__(self, category=None, color=None, name=None): super(WorkItemStateColor, self).__init__() + self.category = category self.color = color self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py index 26647eeb..2dbb8e69 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py @@ -26,6 +26,8 @@ class WorkItemType(WorkItemTrackingResource): :type fields: list of :class:`WorkItemTypeFieldInstance ` :param icon: The icon of the work item type. :type icon: :class:`WorkItemIcon ` + :param is_disabled: True if work item type is disabled + :type is_disabled: bool :param name: Gets the name of the work item type. :type name: str :param reference_name: The reference name of the work item type. @@ -44,19 +46,21 @@ class WorkItemType(WorkItemTrackingResource): 'field_instances': {'key': 'fieldInstances', 'type': '[WorkItemTypeFieldInstance]'}, 'fields': {'key': 'fields', 'type': '[WorkItemTypeFieldInstance]'}, 'icon': {'key': 'icon', 'type': 'WorkItemIcon'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'reference_name': {'key': 'referenceName', 'type': 'str'}, 'transitions': {'key': 'transitions', 'type': '{[WorkItemStateTransition]}'}, 'xml_form': {'key': 'xmlForm', 'type': 'str'} } - def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, name=None, reference_name=None, transitions=None, xml_form=None): + def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, is_disabled=None, name=None, reference_name=None, transitions=None, xml_form=None): super(WorkItemType, self).__init__(url=url, _links=_links) self.color = color self.description = description self.field_instances = field_instances self.fields = fields self.icon = icon + self.is_disabled = is_disabled self.name = name self.reference_name = reference_name self.transitions = transitions diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index 8fef5be9..e96ffe4f 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -257,7 +257,7 @@ def get_comments(self, id, from_revision=None, top=None, order=None): :param int id: Work item id :param int from_revision: Revision from which comments are to be fetched :param int top: The number of comments to return - :param CommentSortOrder order: Ascending or descending by revision id + :param str order: Ascending or descending by revision id :rtype: :class:` ` """ route_values = {} @@ -269,7 +269,7 @@ def get_comments(self, id, from_revision=None, top=None, order=None): if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if order is not None: - query_parameters['order'] = self._serialize.query('order', order, 'CommentSortOrder') + query_parameters['order'] = self._serialize.query('order', order, 'str') response = self._send(http_method='GET', location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', version='4.1-preview.1', @@ -315,7 +315,7 @@ def get_fields(self, project=None, expand=None): """GetFields. [Preview API] Returns information for all fields. :param str project: Project ID or project name - :param GetFieldsExpand expand: Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. + :param str expand: Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. :rtype: [WorkItemField] """ route_values = {} @@ -323,7 +323,7 @@ def get_fields(self, project=None, expand=None): route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'GetFieldsExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', version='4.1-preview.2', @@ -392,7 +392,7 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): """GetQueries. [Preview API] Gets the root queries and their children :param str project: Project ID or project name - :param QueryExpand expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. + :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. :param int depth: In the folder of queries, return child queries and folders to this depth. :param bool include_deleted: Include deleted queries and folders :rtype: [QueryHierarchyItem] @@ -402,7 +402,7 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'QueryExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if depth is not None: query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') if include_deleted is not None: @@ -420,7 +420,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non [Preview API] Retrieves an individual query and its children :param str project: Project ID or project name :param str query: - :param QueryExpand expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. + :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. :param int depth: In the folder of queries, return child queries and folders to this depth. :param bool include_deleted: Include deleted queries and folders :rtype: :class:` ` @@ -432,7 +432,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non route_values['query'] = self._serialize.url('query', query, 'str') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'QueryExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if depth is not None: query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') if include_deleted is not None: @@ -450,7 +450,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted :param str project: Project ID or project name :param str filter: The text to filter the queries with. :param int top: The number of queries to return (Default is 50 and maximum is 200). - :param QueryExpand expand: + :param str expand: :param bool include_deleted: Include deleted queries and folders :rtype: :class:` ` """ @@ -463,7 +463,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'QueryExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if include_deleted is not None: query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', @@ -597,7 +597,7 @@ def get_revision(self, id, revision_number, expand=None): [Preview API] Returns a fully hydrated work item for the requested revision :param int id: :param int revision_number: - :param WorkItemExpand expand: + :param str expand: :rtype: :class:` ` """ route_values = {} @@ -607,7 +607,7 @@ def get_revision(self, id, revision_number, expand=None): route_values['revisionNumber'] = self._serialize.url('revision_number', revision_number, 'int') query_parameters = {} if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', version='4.1-preview.2', @@ -621,7 +621,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): :param int id: :param int top: :param int skip: - :param WorkItemExpand expand: + :param str expand: :rtype: [WorkItem] """ route_values = {} @@ -633,7 +633,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): if skip is not None: query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', version='4.1-preview.2', @@ -1084,7 +1084,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co :param bool include_deleted: Specify if the deleted item should be returned. :param bool include_tag_ref: Specify if the tag objects should be returned for System.Tags field. :param bool include_latest_only: Return only the latest revisions of work items, skipping all historical revisions - :param ReportingRevisionsExpand expand: Return all the fields in work item revisions, including long text fields which are not returned by default + :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed :param int max_page_size: The maximum number of results to return in this batch :rtype: :class:` ` @@ -1112,7 +1112,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co if include_latest_only is not None: query_parameters['includeLatestOnly'] = self._serialize.query('include_latest_only', include_latest_only, 'bool') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'ReportingRevisionsExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if include_discussion_changes_only is not None: query_parameters['includeDiscussionChangesOnly'] = self._serialize.query('include_discussion_changes_only', include_discussion_changes_only, 'bool') if max_page_size is not None: @@ -1131,7 +1131,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. - :param ReportingRevisionsExpand expand: + :param str expand: :rtype: :class:` ` """ route_values = {} @@ -1143,7 +1143,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token if start_date_time is not None: query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'ReportingRevisionsExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') content = self._serialize.body(filter, 'ReportingWorkItemRevisionsFilter') response = self._send(http_method='POST', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', @@ -1179,7 +1179,7 @@ def get_work_item(self, id, fields=None, as_of=None, expand=None): :param int id: The work item id :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string - :param WorkItemExpand expand: The expand parameters for work item attributes + :param str expand: The expand parameters for work item attributes :rtype: :class:` ` """ route_values = {} @@ -1192,7 +1192,7 @@ def get_work_item(self, id, fields=None, as_of=None, expand=None): if as_of is not None: query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', version='4.1-preview.2', @@ -1206,8 +1206,8 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy :param [int] ids: The comma-separated list of requested work item ids :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string - :param WorkItemExpand expand: The expand parameters for work item attributes - :param WorkItemErrorPolicy error_policy: The flag to control error policy in a bulk get work items request + :param str expand: The expand parameters for work item attributes + :param str error_policy: The flag to control error policy in a bulk get work items request :rtype: [WorkItem] """ query_parameters = {} @@ -1220,9 +1220,9 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy if as_of is not None: query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if error_policy is not None: - query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'WorkItemErrorPolicy') + query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', version='4.1-preview.2', @@ -1300,7 +1300,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= :param str type: The work item type name :param str fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string - :param WorkItemExpand expand: The expand parameters for work item attributes + :param str expand: The expand parameters for work item attributes :rtype: :class:` ` """ route_values = {} @@ -1314,7 +1314,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= if as_of is not None: query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'WorkItemExpand') + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', version='4.1-preview.2', @@ -1427,7 +1427,7 @@ def get_dependent_fields(self, project, type, field): route_values['field'] = self._serialize.url('field', field, 'str') response = self._send(http_method='GET', location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', - version='4.1-preview.1', + version='4.1-preview.2', route_values=route_values) return self._deserialize('FieldDependentRule', response) From 0db07ae3f2def399fa5d5ffb30937d11459eac3b Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 10 Jan 2018 18:41:29 -0500 Subject: [PATCH 017/191] generate M127 release management client --- .gitignore | 5 + vsts/vsts/release/__init__.py | 7 + vsts/vsts/release/v4_1/__init__.py | 7 + vsts/vsts/release/v4_1/models/__init__.py | 187 +++++ .../v4_1/models/agent_artifact_definition.py | 41 ++ .../release/v4_1/models/approval_options.py | 45 ++ vsts/vsts/release/v4_1/models/artifact.py | 41 ++ .../release/v4_1/models/artifact_metadata.py | 29 + .../v4_1/models/artifact_source_reference.py | 29 + .../v4_1/models/artifact_type_definition.py | 37 + .../release/v4_1/models/artifact_version.py | 41 ++ .../models/artifact_version_query_result.py | 25 + .../v4_1/models/authorization_header.py | 29 + .../release/v4_1/models/auto_trigger_issue.py | 41 ++ .../vsts/release/v4_1/models/build_version.py | 45 ++ vsts/vsts/release/v4_1/models/change.py | 53 ++ vsts/vsts/release/v4_1/models/condition.py | 33 + .../models/configuration_variable_value.py | 29 + .../v4_1/models/data_source_binding_base.py | 53 ++ .../definition_environment_reference.py | 37 + vsts/vsts/release/v4_1/models/deploy_phase.py | 37 + vsts/vsts/release/v4_1/models/deployment.py | 101 +++ .../release/v4_1/models/deployment_attempt.py | 97 +++ .../release/v4_1/models/deployment_job.py | 29 + .../models/deployment_query_parameters.py | 85 +++ .../release/v4_1/models/email_recipients.py | 29 + .../models/environment_execution_policy.py | 29 + .../v4_1/models/environment_options.py | 45 ++ .../models/environment_retention_policy.py | 33 + .../vsts/release/v4_1/models/favorite_item.py | 37 + vsts/vsts/release/v4_1/models/folder.py | 45 ++ vsts/vsts/release/v4_1/models/identity_ref.py | 61 ++ .../release/v4_1/models/input_descriptor.py | 77 ++ .../release/v4_1/models/input_validation.py | 53 ++ vsts/vsts/release/v4_1/models/input_value.py | 33 + vsts/vsts/release/v4_1/models/input_values.py | 49 ++ .../release/v4_1/models/input_values_error.py | 25 + .../release/v4_1/models/input_values_query.py | 33 + vsts/vsts/release/v4_1/models/issue.py | 29 + vsts/vsts/release/v4_1/models/mail_message.py | 61 ++ .../v4_1/models/manual_intervention.py | 73 ++ .../manual_intervention_update_metadata.py | 29 + vsts/vsts/release/v4_1/models/metric.py | 29 + .../release/v4_1/models/process_parameters.py | 33 + .../release/v4_1/models/project_reference.py | 29 + .../v4_1/models/queued_release_data.py | 33 + .../release/v4_1/models/reference_links.py | 25 + vsts/vsts/release/v4_1/models/release.py | 125 ++++ .../release/v4_1/models/release_approval.py | 97 +++ .../v4_1/models/release_approval_history.py | 45 ++ .../release/v4_1/models/release_condition.py | 34 + .../release/v4_1/models/release_definition.py | 117 +++ .../release_definition_approval_step.py | 40 + .../models/release_definition_approvals.py | 29 + .../models/release_definition_deploy_step.py | 28 + .../models/release_definition_environment.py | 109 +++ .../release_definition_environment_step.py | 25 + .../release_definition_environment_summary.py | 33 + ...release_definition_environment_template.py | 57 ++ .../v4_1/models/release_definition_gate.py | 25 + .../release_definition_gates_options.py | 37 + .../models/release_definition_gates_step.py | 33 + .../models/release_definition_revision.py | 53 ++ .../release_definition_shallow_reference.py | 37 + .../v4_1/models/release_definition_summary.py | 33 + .../release_definition_undelete_parameter.py | 25 + .../v4_1/models/release_deploy_phase.py | 53 ++ .../v4_1/models/release_environment.py | 157 ++++ .../release_environment_shallow_reference.py | 37 + .../release_environment_update_metadata.py | 33 + .../vsts/release/v4_1/models/release_gates.py | 49 ++ .../release/v4_1/models/release_reference.py | 69 ++ .../release/v4_1/models/release_revision.py | 49 ++ .../release/v4_1/models/release_schedule.py | 41 ++ .../release/v4_1/models/release_settings.py | 25 + .../v4_1/models/release_shallow_reference.py | 37 + .../v4_1/models/release_start_metadata.py | 49 ++ vsts/vsts/release/v4_1/models/release_task.py | 81 +++ .../v4_1/models/release_trigger_base.py | 25 + .../v4_1/models/release_update_metadata.py | 37 + .../v4_1/models/release_work_item_ref.py | 45 ++ .../release/v4_1/models/retention_policy.py | 25 + .../release/v4_1/models/retention_settings.py | 33 + .../v4_1/models/summary_mail_section.py | 37 + .../v4_1/models/task_input_definition_base.py | 69 ++ .../v4_1/models/task_input_validation.py | 29 + .../models/task_source_definition_base.py | 41 ++ .../release/v4_1/models/variable_group.py | 61 ++ .../models/variable_group_provider_data.py | 21 + .../release/v4_1/models/variable_value.py | 29 + .../vsts/release/v4_1/models/workflow_task.py | 69 ++ .../v4_1/models/workflow_task_reference.py | 33 + vsts/vsts/release/v4_1/release_client.py | 683 ++++++++++++++++++ 93 files changed, 4952 insertions(+) create mode 100644 vsts/vsts/release/__init__.py create mode 100644 vsts/vsts/release/v4_1/__init__.py create mode 100644 vsts/vsts/release/v4_1/models/__init__.py create mode 100644 vsts/vsts/release/v4_1/models/agent_artifact_definition.py create mode 100644 vsts/vsts/release/v4_1/models/approval_options.py create mode 100644 vsts/vsts/release/v4_1/models/artifact.py create mode 100644 vsts/vsts/release/v4_1/models/artifact_metadata.py create mode 100644 vsts/vsts/release/v4_1/models/artifact_source_reference.py create mode 100644 vsts/vsts/release/v4_1/models/artifact_type_definition.py create mode 100644 vsts/vsts/release/v4_1/models/artifact_version.py create mode 100644 vsts/vsts/release/v4_1/models/artifact_version_query_result.py create mode 100644 vsts/vsts/release/v4_1/models/authorization_header.py create mode 100644 vsts/vsts/release/v4_1/models/auto_trigger_issue.py create mode 100644 vsts/vsts/release/v4_1/models/build_version.py create mode 100644 vsts/vsts/release/v4_1/models/change.py create mode 100644 vsts/vsts/release/v4_1/models/condition.py create mode 100644 vsts/vsts/release/v4_1/models/configuration_variable_value.py create mode 100644 vsts/vsts/release/v4_1/models/data_source_binding_base.py create mode 100644 vsts/vsts/release/v4_1/models/definition_environment_reference.py create mode 100644 vsts/vsts/release/v4_1/models/deploy_phase.py create mode 100644 vsts/vsts/release/v4_1/models/deployment.py create mode 100644 vsts/vsts/release/v4_1/models/deployment_attempt.py create mode 100644 vsts/vsts/release/v4_1/models/deployment_job.py create mode 100644 vsts/vsts/release/v4_1/models/deployment_query_parameters.py create mode 100644 vsts/vsts/release/v4_1/models/email_recipients.py create mode 100644 vsts/vsts/release/v4_1/models/environment_execution_policy.py create mode 100644 vsts/vsts/release/v4_1/models/environment_options.py create mode 100644 vsts/vsts/release/v4_1/models/environment_retention_policy.py create mode 100644 vsts/vsts/release/v4_1/models/favorite_item.py create mode 100644 vsts/vsts/release/v4_1/models/folder.py create mode 100644 vsts/vsts/release/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/release/v4_1/models/input_descriptor.py create mode 100644 vsts/vsts/release/v4_1/models/input_validation.py create mode 100644 vsts/vsts/release/v4_1/models/input_value.py create mode 100644 vsts/vsts/release/v4_1/models/input_values.py create mode 100644 vsts/vsts/release/v4_1/models/input_values_error.py create mode 100644 vsts/vsts/release/v4_1/models/input_values_query.py create mode 100644 vsts/vsts/release/v4_1/models/issue.py create mode 100644 vsts/vsts/release/v4_1/models/mail_message.py create mode 100644 vsts/vsts/release/v4_1/models/manual_intervention.py create mode 100644 vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py create mode 100644 vsts/vsts/release/v4_1/models/metric.py create mode 100644 vsts/vsts/release/v4_1/models/process_parameters.py create mode 100644 vsts/vsts/release/v4_1/models/project_reference.py create mode 100644 vsts/vsts/release/v4_1/models/queued_release_data.py create mode 100644 vsts/vsts/release/v4_1/models/reference_links.py create mode 100644 vsts/vsts/release/v4_1/models/release.py create mode 100644 vsts/vsts/release/v4_1/models/release_approval.py create mode 100644 vsts/vsts/release/v4_1/models/release_approval_history.py create mode 100644 vsts/vsts/release/v4_1/models/release_condition.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_approval_step.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_approvals.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_deploy_step.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment_step.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment_summary.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment_template.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_gate.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_gates_options.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_gates_step.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_revision.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_summary.py create mode 100644 vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py create mode 100644 vsts/vsts/release/v4_1/models/release_deploy_phase.py create mode 100644 vsts/vsts/release/v4_1/models/release_environment.py create mode 100644 vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py create mode 100644 vsts/vsts/release/v4_1/models/release_environment_update_metadata.py create mode 100644 vsts/vsts/release/v4_1/models/release_gates.py create mode 100644 vsts/vsts/release/v4_1/models/release_reference.py create mode 100644 vsts/vsts/release/v4_1/models/release_revision.py create mode 100644 vsts/vsts/release/v4_1/models/release_schedule.py create mode 100644 vsts/vsts/release/v4_1/models/release_settings.py create mode 100644 vsts/vsts/release/v4_1/models/release_shallow_reference.py create mode 100644 vsts/vsts/release/v4_1/models/release_start_metadata.py create mode 100644 vsts/vsts/release/v4_1/models/release_task.py create mode 100644 vsts/vsts/release/v4_1/models/release_trigger_base.py create mode 100644 vsts/vsts/release/v4_1/models/release_update_metadata.py create mode 100644 vsts/vsts/release/v4_1/models/release_work_item_ref.py create mode 100644 vsts/vsts/release/v4_1/models/retention_policy.py create mode 100644 vsts/vsts/release/v4_1/models/retention_settings.py create mode 100644 vsts/vsts/release/v4_1/models/summary_mail_section.py create mode 100644 vsts/vsts/release/v4_1/models/task_input_definition_base.py create mode 100644 vsts/vsts/release/v4_1/models/task_input_validation.py create mode 100644 vsts/vsts/release/v4_1/models/task_source_definition_base.py create mode 100644 vsts/vsts/release/v4_1/models/variable_group.py create mode 100644 vsts/vsts/release/v4_1/models/variable_group_provider_data.py create mode 100644 vsts/vsts/release/v4_1/models/variable_value.py create mode 100644 vsts/vsts/release/v4_1/models/workflow_task.py create mode 100644 vsts/vsts/release/v4_1/models/workflow_task_reference.py create mode 100644 vsts/vsts/release/v4_1/release_client.py diff --git a/.gitignore b/.gitignore index 1b5d5e6d..e74518b7 100644 --- a/.gitignore +++ b/.gitignore @@ -293,3 +293,8 @@ __pycache__/ *.btm.cs *.odx.cs *.xsd.cs +.vscode/ +vsts/build/bdist.win32/ + +# don't ignore release managment client +!vsts/vsts/release diff --git a/vsts/vsts/release/__init__.py b/vsts/vsts/release/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/release/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/release/v4_1/__init__.py b/vsts/vsts/release/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/release/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/release/v4_1/models/__init__.py b/vsts/vsts/release/v4_1/models/__init__.py new file mode 100644 index 00000000..5bcb7df2 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/__init__.py @@ -0,0 +1,187 @@ +# -------------------------------------------------------------------------------------------- +# 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 .agent_artifact_definition import AgentArtifactDefinition +from .approval_options import ApprovalOptions +from .artifact import Artifact +from .artifact_metadata import ArtifactMetadata +from .artifact_source_reference import ArtifactSourceReference +from .artifact_type_definition import ArtifactTypeDefinition +from .artifact_version import ArtifactVersion +from .artifact_version_query_result import ArtifactVersionQueryResult +from .authorization_header import AuthorizationHeader +from .auto_trigger_issue import AutoTriggerIssue +from .build_version import BuildVersion +from .change import Change +from .condition import Condition +from .configuration_variable_value import ConfigurationVariableValue +from .data_source_binding_base import DataSourceBindingBase +from .definition_environment_reference import DefinitionEnvironmentReference +from .deployment import Deployment +from .deployment_attempt import DeploymentAttempt +from .deployment_job import DeploymentJob +from .deployment_query_parameters import DeploymentQueryParameters +from .deploy_phase import DeployPhase +from .email_recipients import EmailRecipients +from .environment_execution_policy import EnvironmentExecutionPolicy +from .environment_options import EnvironmentOptions +from .environment_retention_policy import EnvironmentRetentionPolicy +from .favorite_item import FavoriteItem +from .folder import Folder +from .identity_ref import IdentityRef +from .input_descriptor import InputDescriptor +from .input_validation import InputValidation +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .input_values_query import InputValuesQuery +from .issue import Issue +from .mail_message import MailMessage +from .manual_intervention import ManualIntervention +from .manual_intervention_update_metadata import ManualInterventionUpdateMetadata +from .metric import Metric +from .process_parameters import ProcessParameters +from .project_reference import ProjectReference +from .queued_release_data import QueuedReleaseData +from .reference_links import ReferenceLinks +from .release import Release +from .release_approval import ReleaseApproval +from .release_approval_history import ReleaseApprovalHistory +from .release_condition import ReleaseCondition +from .release_definition import ReleaseDefinition +from .release_definition_approvals import ReleaseDefinitionApprovals +from .release_definition_approval_step import ReleaseDefinitionApprovalStep +from .release_definition_deploy_step import ReleaseDefinitionDeployStep +from .release_definition_environment import ReleaseDefinitionEnvironment +from .release_definition_environment_step import ReleaseDefinitionEnvironmentStep +from .release_definition_environment_summary import ReleaseDefinitionEnvironmentSummary +from .release_definition_environment_template import ReleaseDefinitionEnvironmentTemplate +from .release_definition_gate import ReleaseDefinitionGate +from .release_definition_gates_options import ReleaseDefinitionGatesOptions +from .release_definition_gates_step import ReleaseDefinitionGatesStep +from .release_definition_revision import ReleaseDefinitionRevision +from .release_definition_shallow_reference import ReleaseDefinitionShallowReference +from .release_definition_summary import ReleaseDefinitionSummary +from .release_definition_undelete_parameter import ReleaseDefinitionUndeleteParameter +from .release_deploy_phase import ReleaseDeployPhase +from .release_environment import ReleaseEnvironment +from .release_environment_shallow_reference import ReleaseEnvironmentShallowReference +from .release_environment_update_metadata import ReleaseEnvironmentUpdateMetadata +from .release_gates import ReleaseGates +from .release_reference import ReleaseReference +from .release_revision import ReleaseRevision +from .release_schedule import ReleaseSchedule +from .release_settings import ReleaseSettings +from .release_shallow_reference import ReleaseShallowReference +from .release_start_metadata import ReleaseStartMetadata +from .release_task import ReleaseTask +from .release_trigger_base import ReleaseTriggerBase +from .release_update_metadata import ReleaseUpdateMetadata +from .release_work_item_ref import ReleaseWorkItemRef +from .retention_policy import RetentionPolicy +from .retention_settings import RetentionSettings +from .summary_mail_section import SummaryMailSection +from .task_input_definition_base import TaskInputDefinitionBase +from .task_input_validation import TaskInputValidation +from .task_source_definition_base import TaskSourceDefinitionBase +from .variable_group import VariableGroup +from .variable_group_provider_data import VariableGroupProviderData +from .variable_value import VariableValue +from .workflow_task import WorkflowTask +from .workflow_task_reference import WorkflowTaskReference + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'DeployPhase', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'FavoriteItem', + 'Folder', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTriggerBase', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', +] diff --git a/vsts/vsts/release/v4_1/models/agent_artifact_definition.py b/vsts/vsts/release/v4_1/models/agent_artifact_definition.py new file mode 100644 index 00000000..8e2ec362 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/agent_artifact_definition.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentArtifactDefinition(Model): + """AgentArtifactDefinition. + + :param alias: + :type alias: str + :param artifact_type: + :type artifact_type: object + :param details: + :type details: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'object'}, + 'details': {'key': 'details', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): + super(AgentArtifactDefinition, self).__init__() + self.alias = alias + self.artifact_type = artifact_type + self.details = details + self.name = name + self.version = version diff --git a/vsts/vsts/release/v4_1/models/approval_options.py b/vsts/vsts/release/v4_1/models/approval_options.py new file mode 100644 index 00000000..4a0ad1b8 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/approval_options.py @@ -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.serialization import Model + + +class ApprovalOptions(Model): + """ApprovalOptions. + + :param auto_triggered_and_previous_environment_approved_can_be_skipped: + :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool + :param enforce_identity_revalidation: + :type enforce_identity_revalidation: bool + :param execution_order: + :type execution_order: object + :param release_creator_can_be_approver: + :type release_creator_can_be_approver: bool + :param required_approver_count: + :type required_approver_count: int + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, + 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, + 'execution_order': {'key': 'executionOrder', 'type': 'object'}, + 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, + 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, execution_order=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): + super(ApprovalOptions, self).__init__() + self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped + self.enforce_identity_revalidation = enforce_identity_revalidation + self.execution_order = execution_order + self.release_creator_can_be_approver = release_creator_can_be_approver + self.required_approver_count = required_approver_count + self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_1/models/artifact.py b/vsts/vsts/release/v4_1/models/artifact.py new file mode 100644 index 00000000..4bdf46a5 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/artifact.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Artifact(Model): + """Artifact. + + :param alias: Gets or sets alias. + :type alias: str + :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} + :type definition_reference: dict + :param is_primary: Gets or sets as artifact is primary or not. + :type is_primary: bool + :param source_id: + :type source_id: str + :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. + :type type: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): + super(Artifact, self).__init__() + self.alias = alias + self.definition_reference = definition_reference + self.is_primary = is_primary + self.source_id = source_id + self.type = type diff --git a/vsts/vsts/release/v4_1/models/artifact_metadata.py b/vsts/vsts/release/v4_1/models/artifact_metadata.py new file mode 100644 index 00000000..1acf2b3e --- /dev/null +++ b/vsts/vsts/release/v4_1/models/artifact_metadata.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactMetadata(Model): + """ArtifactMetadata. + + :param alias: Sets alias of artifact. + :type alias: str + :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. + :type instance_reference: :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} + } + + def __init__(self, alias=None, instance_reference=None): + super(ArtifactMetadata, self).__init__() + self.alias = alias + self.instance_reference = instance_reference diff --git a/vsts/vsts/release/v4_1/models/artifact_source_reference.py b/vsts/vsts/release/v4_1/models/artifact_source_reference.py new file mode 100644 index 00000000..7f1fefd8 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/artifact_source_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactSourceReference(Model): + """ArtifactSourceReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ArtifactSourceReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/release/v4_1/models/artifact_type_definition.py b/vsts/vsts/release/v4_1/models/artifact_type_definition.py new file mode 100644 index 00000000..0c34624f --- /dev/null +++ b/vsts/vsts/release/v4_1/models/artifact_type_definition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactTypeDefinition(Model): + """ArtifactTypeDefinition. + + :param display_name: + :type display_name: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + :param unique_source_identifier: + :type unique_source_identifier: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} + } + + def __init__(self, display_name=None, input_descriptors=None, name=None, unique_source_identifier=None): + super(ArtifactTypeDefinition, self).__init__() + self.display_name = display_name + self.input_descriptors = input_descriptors + self.name = name + self.unique_source_identifier = unique_source_identifier diff --git a/vsts/vsts/release/v4_1/models/artifact_version.py b/vsts/vsts/release/v4_1/models/artifact_version.py new file mode 100644 index 00000000..463e08b4 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/artifact_version.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactVersion(Model): + """ArtifactVersion. + + :param alias: + :type alias: str + :param default_version: + :type default_version: :class:`BuildVersion ` + :param error_message: + :type error_message: str + :param source_id: + :type source_id: str + :param versions: + :type versions: list of :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[BuildVersion]'} + } + + def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): + super(ArtifactVersion, self).__init__() + self.alias = alias + self.default_version = default_version + self.error_message = error_message + self.source_id = source_id + self.versions = versions diff --git a/vsts/vsts/release/v4_1/models/artifact_version_query_result.py b/vsts/vsts/release/v4_1/models/artifact_version_query_result.py new file mode 100644 index 00000000..8be98135 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/artifact_version_query_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactVersionQueryResult(Model): + """ArtifactVersionQueryResult. + + :param artifact_versions: + :type artifact_versions: list of :class:`ArtifactVersion ` + """ + + _attribute_map = { + 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} + } + + def __init__(self, artifact_versions=None): + super(ArtifactVersionQueryResult, self).__init__() + self.artifact_versions = artifact_versions diff --git a/vsts/vsts/release/v4_1/models/authorization_header.py b/vsts/vsts/release/v4_1/models/authorization_header.py new file mode 100644 index 00000000..015e6775 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/authorization_header.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/release/v4_1/models/auto_trigger_issue.py b/vsts/vsts/release/v4_1/models/auto_trigger_issue.py new file mode 100644 index 00000000..d564858d --- /dev/null +++ b/vsts/vsts/release/v4_1/models/auto_trigger_issue.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AutoTriggerIssue(Model): + """AutoTriggerIssue. + + :param issue: + :type issue: :class:`Issue ` + :param issue_source: + :type issue_source: object + :param project: + :type project: :class:`ProjectReference ` + :param release_definition_reference: + :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` + :param release_trigger_type: + :type release_trigger_type: object + """ + + _attribute_map = { + 'issue': {'key': 'issue', 'type': 'Issue'}, + 'issue_source': {'key': 'issueSource', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} + } + + def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): + super(AutoTriggerIssue, self).__init__() + self.issue = issue + self.issue_source = issue_source + self.project = project + self.release_definition_reference = release_definition_reference + self.release_trigger_type = release_trigger_type diff --git a/vsts/vsts/release/v4_1/models/build_version.py b/vsts/vsts/release/v4_1/models/build_version.py new file mode 100644 index 00000000..519cef9b --- /dev/null +++ b/vsts/vsts/release/v4_1/models/build_version.py @@ -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.serialization import Model + + +class BuildVersion(Model): + """BuildVersion. + + :param id: + :type id: str + :param name: + :type name: str + :param source_branch: + :type source_branch: str + :param source_repository_id: + :type source_repository_id: str + :param source_repository_type: + :type source_repository_type: str + :param source_version: + :type source_version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'} + } + + def __init__(self, id=None, name=None, source_branch=None, source_repository_id=None, source_repository_type=None, source_version=None): + super(BuildVersion, self).__init__() + self.id = id + self.name = name + self.source_branch = source_branch + self.source_repository_id = source_repository_id + self.source_repository_type = source_repository_type + self.source_version = source_version diff --git a/vsts/vsts/release/v4_1/models/change.py b/vsts/vsts/release/v4_1/models/change.py new file mode 100644 index 00000000..fbe01e1b --- /dev/null +++ b/vsts/vsts/release/v4_1/models/change.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param change_type: The type of change. "commit", "changeset", etc. + :type change_type: str + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: A description of the change. This might be a commit message or changeset description. + :type message: str + :param pusher: The person or process that pushed the change. + :type pusher: str + :param timestamp: A timestamp for the change. + :type timestamp: datetime + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pusher': {'key': 'pusher', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} + } + + def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, pusher=None, timestamp=None): + super(Change, self).__init__() + self.author = author + self.change_type = change_type + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.pusher = pusher + self.timestamp = timestamp diff --git a/vsts/vsts/release/v4_1/models/condition.py b/vsts/vsts/release/v4_1/models/condition.py new file mode 100644 index 00000000..93cc3057 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/condition.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Condition(Model): + """Condition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, name=None, value=None): + super(Condition, self).__init__() + self.condition_type = condition_type + self.name = name + self.value = value diff --git a/vsts/vsts/release/v4_1/models/configuration_variable_value.py b/vsts/vsts/release/v4_1/models/configuration_variable_value.py new file mode 100644 index 00000000..4db7217a --- /dev/null +++ b/vsts/vsts/release/v4_1/models/configuration_variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ConfigurationVariableValue(Model): + """ConfigurationVariableValue. + + :param is_secret: Gets or sets as variable is secret or not. + :type is_secret: bool + :param value: Gets or sets value of the configuration variable. + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(ConfigurationVariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/release/v4_1/models/data_source_binding_base.py b/vsts/vsts/release/v4_1/models/data_source_binding_base.py new file mode 100644 index 00000000..fe92a446 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/data_source_binding_base.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target diff --git a/vsts/vsts/release/v4_1/models/definition_environment_reference.py b/vsts/vsts/release/v4_1/models/definition_environment_reference.py new file mode 100644 index 00000000..06c56140 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/definition_environment_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DefinitionEnvironmentReference(Model): + """DefinitionEnvironmentReference. + + :param definition_environment_id: + :type definition_environment_id: int + :param definition_environment_name: + :type definition_environment_name: str + :param release_definition_id: + :type release_definition_id: int + :param release_definition_name: + :type release_definition_name: str + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} + } + + def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): + super(DefinitionEnvironmentReference, self).__init__() + self.definition_environment_id = definition_environment_id + self.definition_environment_name = definition_environment_name + self.release_definition_id = release_definition_id + self.release_definition_name = release_definition_name diff --git a/vsts/vsts/release/v4_1/models/deploy_phase.py b/vsts/vsts/release/v4_1/models/deploy_phase.py new file mode 100644 index 00000000..6f902806 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/deploy_phase.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeployPhase(Model): + """DeployPhase. + + :param name: + :type name: str + :param phase_type: + :type phase_type: object + :param rank: + :type rank: int + :param workflow_tasks: + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, name=None, phase_type=None, rank=None, workflow_tasks=None): + super(DeployPhase, self).__init__() + self.name = name + self.phase_type = phase_type + self.rank = rank + self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_1/models/deployment.py b/vsts/vsts/release/v4_1/models/deployment.py new file mode 100644 index 00000000..834806a2 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/deployment.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Deployment(Model): + """Deployment. + + :param _links: Gets links to access the deployment. + :type _links: :class:`ReferenceLinks ` + :param attempt: Gets attempt number. + :type attempt: int + :param conditions: Gets the list of condition associated with deployment. + :type conditions: list of :class:`Condition ` + :param definition_environment_id: Gets release definition environment id. + :type definition_environment_id: int + :param deployment_status: Gets status of the deployment. + :type deployment_status: object + :param id: Gets the unique identifier for deployment. + :type id: int + :param last_modified_by: Gets the identity who last modified the deployment. + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: Gets the date on which deployment is last modified. + :type last_modified_on: datetime + :param operation_status: Gets operation status of deployment. + :type operation_status: object + :param post_deploy_approvals: Gets list of PostDeployApprovals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deploy_approvals: Gets list of PreDeployApprovals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param queued_on: Gets the date on which deployment is queued. + :type queued_on: datetime + :param reason: Gets reason of deployment. + :type reason: object + :param release: Gets the reference of release. + :type release: :class:`ReleaseReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which the deployment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which the deployment is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param requested_by: Gets the identity who requested. + :type requested_by: :class:`IdentityRef ` + :param requested_for: Gets the identity for whom deployment is requested. + :type requested_for: :class:`IdentityRef ` + :param scheduled_deployment_time: Gets the date on which deployment is scheduled. + :type scheduled_deployment_time: datetime + :param started_on: Gets the date on which deployment is started. + :type started_on: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, attempt=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): + super(Deployment, self).__init__() + self._links = _links + self.attempt = attempt + self.conditions = conditions + self.definition_environment_id = definition_environment_id + self.deployment_status = deployment_status + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.queued_on = queued_on + self.reason = reason + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.requested_by = requested_by + self.requested_for = requested_for + self.scheduled_deployment_time = scheduled_deployment_time + self.started_on = started_on diff --git a/vsts/vsts/release/v4_1/models/deployment_attempt.py b/vsts/vsts/release/v4_1/models/deployment_attempt.py new file mode 100644 index 00000000..0fc1fd35 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/deployment_attempt.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentAttempt(Model): + """DeploymentAttempt. + + :param attempt: + :type attempt: int + :param deployment_id: + :type deployment_id: int + :param error_log: Error log to show any unexpected error that occurred during executing deploy step + :type error_log: str + :param has_started: Specifies whether deployment has started or not + :type has_started: bool + :param id: + :type id: int + :param job: + :type job: :class:`ReleaseTask ` + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param operation_status: + :type operation_status: object + :param post_deployment_gates: + :type post_deployment_gates: :class:`ReleaseGates ` + :param pre_deployment_gates: + :type pre_deployment_gates: :class:`ReleaseGates ` + :param queued_on: + :type queued_on: datetime + :param reason: + :type reason: object + :param release_deploy_phases: + :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` + :param requested_by: + :type requested_by: :class:`IdentityRef ` + :param requested_for: + :type requested_for: :class:`IdentityRef ` + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'has_started': {'key': 'hasStarted', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseGates'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseGates'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): + super(DeploymentAttempt, self).__init__() + self.attempt = attempt + self.deployment_id = deployment_id + self.error_log = error_log + self.has_started = has_started + self.id = id + self.job = job + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deployment_gates = post_deployment_gates + self.pre_deployment_gates = pre_deployment_gates + self.queued_on = queued_on + self.reason = reason + self.release_deploy_phases = release_deploy_phases + self.requested_by = requested_by + self.requested_for = requested_for + self.run_plan_id = run_plan_id + self.status = status + self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/deployment_job.py b/vsts/vsts/release/v4_1/models/deployment_job.py new file mode 100644 index 00000000..8bd40749 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/deployment_job.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentJob(Model): + """DeploymentJob. + + :param job: + :type job: :class:`ReleaseTask ` + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, job=None, tasks=None): + super(DeploymentJob, self).__init__() + self.job = job + self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/deployment_query_parameters.py b/vsts/vsts/release/v4_1/models/deployment_query_parameters.py new file mode 100644 index 00000000..bc54c0ec --- /dev/null +++ b/vsts/vsts/release/v4_1/models/deployment_query_parameters.py @@ -0,0 +1,85 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentQueryParameters(Model): + """DeploymentQueryParameters. + + :param artifact_source_id: + :type artifact_source_id: str + :param artifact_type_id: + :type artifact_type_id: str + :param artifact_versions: + :type artifact_versions: list of str + :param deployments_per_environment: + :type deployments_per_environment: int + :param deployment_status: + :type deployment_status: object + :param environments: + :type environments: list of :class:`DefinitionEnvironmentReference ` + :param expands: + :type expands: object + :param is_deleted: + :type is_deleted: bool + :param latest_deployments_only: + :type latest_deployments_only: bool + :param max_deployments_per_environment: + :type max_deployments_per_environment: int + :param max_modified_time: + :type max_modified_time: datetime + :param min_modified_time: + :type min_modified_time: datetime + :param operation_status: + :type operation_status: object + :param query_order: + :type query_order: object + :param query_type: + :type query_type: object + :param source_branch: + :type source_branch: str + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, + 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, + 'deployments_per_environment': {'key': 'deploymentsPerEnvironment', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, + 'expands': {'key': 'expands', 'type': 'object'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, + 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, + 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, + 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'query_order': {'key': 'queryOrder', 'type': 'object'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'} + } + + def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployments_per_environment=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None, query_type=None, source_branch=None): + super(DeploymentQueryParameters, self).__init__() + self.artifact_source_id = artifact_source_id + self.artifact_type_id = artifact_type_id + self.artifact_versions = artifact_versions + self.deployments_per_environment = deployments_per_environment + self.deployment_status = deployment_status + self.environments = environments + self.expands = expands + self.is_deleted = is_deleted + self.latest_deployments_only = latest_deployments_only + self.max_deployments_per_environment = max_deployments_per_environment + self.max_modified_time = max_modified_time + self.min_modified_time = min_modified_time + self.operation_status = operation_status + self.query_order = query_order + self.query_type = query_type + self.source_branch = source_branch diff --git a/vsts/vsts/release/v4_1/models/email_recipients.py b/vsts/vsts/release/v4_1/models/email_recipients.py new file mode 100644 index 00000000..349b8915 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/email_recipients.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EmailRecipients(Model): + """EmailRecipients. + + :param email_addresses: + :type email_addresses: list of str + :param tfs_ids: + :type tfs_ids: list of str + """ + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} + } + + def __init__(self, email_addresses=None, tfs_ids=None): + super(EmailRecipients, self).__init__() + self.email_addresses = email_addresses + self.tfs_ids = tfs_ids diff --git a/vsts/vsts/release/v4_1/models/environment_execution_policy.py b/vsts/vsts/release/v4_1/models/environment_execution_policy.py new file mode 100644 index 00000000..5085c836 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/environment_execution_policy.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EnvironmentExecutionPolicy(Model): + """EnvironmentExecutionPolicy. + + :param concurrency_count: This policy decides, how many environments would be with Environment Runner. + :type concurrency_count: int + :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. + :type queue_depth_count: int + """ + + _attribute_map = { + 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, + 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} + } + + def __init__(self, concurrency_count=None, queue_depth_count=None): + super(EnvironmentExecutionPolicy, self).__init__() + self.concurrency_count = concurrency_count + self.queue_depth_count = queue_depth_count diff --git a/vsts/vsts/release/v4_1/models/environment_options.py b/vsts/vsts/release/v4_1/models/environment_options.py new file mode 100644 index 00000000..e4afe484 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/environment_options.py @@ -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.serialization import Model + + +class EnvironmentOptions(Model): + """EnvironmentOptions. + + :param email_notification_type: + :type email_notification_type: str + :param email_recipients: + :type email_recipients: str + :param enable_access_token: + :type enable_access_token: bool + :param publish_deployment_status: + :type publish_deployment_status: bool + :param skip_artifacts_download: + :type skip_artifacts_download: bool + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, + 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, + 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, + 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, + 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): + super(EnvironmentOptions, self).__init__() + self.email_notification_type = email_notification_type + self.email_recipients = email_recipients + self.enable_access_token = enable_access_token + self.publish_deployment_status = publish_deployment_status + self.skip_artifacts_download = skip_artifacts_download + self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_1/models/environment_retention_policy.py b/vsts/vsts/release/v4_1/models/environment_retention_policy.py new file mode 100644 index 00000000..a391f806 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/environment_retention_policy.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EnvironmentRetentionPolicy(Model): + """EnvironmentRetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + :param releases_to_keep: + :type releases_to_keep: int + :param retain_build: + :type retain_build: bool + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, + 'retain_build': {'key': 'retainBuild', 'type': 'bool'} + } + + def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): + super(EnvironmentRetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + self.releases_to_keep = releases_to_keep + self.retain_build = retain_build diff --git a/vsts/vsts/release/v4_1/models/favorite_item.py b/vsts/vsts/release/v4_1/models/favorite_item.py new file mode 100644 index 00000000..94bdd0be --- /dev/null +++ b/vsts/vsts/release/v4_1/models/favorite_item.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FavoriteItem(Model): + """FavoriteItem. + + :param data: Application specific data for the entry + :type data: str + :param id: Unique Id of the the entry + :type id: str + :param name: Display text for favorite entry + :type name: str + :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder + :type type: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, data=None, id=None, name=None, type=None): + super(FavoriteItem, self).__init__() + self.data = data + self.id = id + self.name = name + self.type = type diff --git a/vsts/vsts/release/v4_1/models/folder.py b/vsts/vsts/release/v4_1/models/folder.py new file mode 100644 index 00000000..46d77b5f --- /dev/null +++ b/vsts/vsts/release/v4_1/models/folder.py @@ -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.serialization import Model + + +class Folder(Model): + """Folder. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param last_changed_by: + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: + :type last_changed_date: datetime + :param path: + :type path: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path diff --git a/vsts/vsts/release/v4_1/models/identity_ref.py b/vsts/vsts/release/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/release/v4_1/models/input_descriptor.py b/vsts/vsts/release/v4_1/models/input_descriptor.py new file mode 100644 index 00000000..da334836 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/input_descriptor.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values diff --git a/vsts/vsts/release/v4_1/models/input_validation.py b/vsts/vsts/release/v4_1/models/input_validation.py new file mode 100644 index 00000000..f2f1a434 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/input_validation.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/release/v4_1/models/input_value.py b/vsts/vsts/release/v4_1/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/release/v4_1/models/input_values.py b/vsts/vsts/release/v4_1/models/input_values.py new file mode 100644 index 00000000..69472f8d --- /dev/null +++ b/vsts/vsts/release/v4_1/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/release/v4_1/models/input_values_error.py b/vsts/vsts/release/v4_1/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/release/v4_1/models/input_values_query.py b/vsts/vsts/release/v4_1/models/input_values_query.py new file mode 100644 index 00000000..97687a61 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/input_values_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource diff --git a/vsts/vsts/release/v4_1/models/issue.py b/vsts/vsts/release/v4_1/models/issue.py new file mode 100644 index 00000000..0e31522e --- /dev/null +++ b/vsts/vsts/release/v4_1/models/issue.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Issue(Model): + """Issue. + + :param issue_type: + :type issue_type: str + :param message: + :type message: str + """ + + _attribute_map = { + 'issue_type': {'key': 'issueType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, issue_type=None, message=None): + super(Issue, self).__init__() + self.issue_type = issue_type + self.message = message diff --git a/vsts/vsts/release/v4_1/models/mail_message.py b/vsts/vsts/release/v4_1/models/mail_message.py new file mode 100644 index 00000000..ada7b400 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/mail_message.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MailMessage(Model): + """MailMessage. + + :param body: + :type body: str + :param cC: + :type cC: :class:`EmailRecipients ` + :param in_reply_to: + :type in_reply_to: str + :param message_id: + :type message_id: str + :param reply_by: + :type reply_by: datetime + :param reply_to: + :type reply_to: :class:`EmailRecipients ` + :param sections: + :type sections: list of MailSectionType + :param sender_type: + :type sender_type: object + :param subject: + :type subject: str + :param to: + :type to: :class:`EmailRecipients ` + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, + 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, + 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, + 'sections': {'key': 'sections', 'type': '[MailSectionType]'}, + 'sender_type': {'key': 'senderType', 'type': 'object'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'to': {'key': 'to', 'type': 'EmailRecipients'} + } + + def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): + super(MailMessage, self).__init__() + self.body = body + self.cC = cC + self.in_reply_to = in_reply_to + self.message_id = message_id + self.reply_by = reply_by + self.reply_to = reply_to + self.sections = sections + self.sender_type = sender_type + self.subject = subject + self.to = to diff --git a/vsts/vsts/release/v4_1/models/manual_intervention.py b/vsts/vsts/release/v4_1/models/manual_intervention.py new file mode 100644 index 00000000..baaf0124 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/manual_intervention.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ManualIntervention(Model): + """ManualIntervention. + + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param id: Gets the unique identifier for manual intervention. + :type id: int + :param instructions: Gets or sets instructions for approval. + :type instructions: str + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param release: Gets releaseReference for manual intervention. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference for manual intervention. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference for manual intervention. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param status: Gets or sets the status of the manual intervention. + :type status: object + :param task_instance_id: Get task instance identifier. + :type task_instance_id: str + :param url: Gets url to access the manual intervention. + :type url: str + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'instructions': {'key': 'instructions', 'type': 'str'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): + super(ManualIntervention, self).__init__() + self.approver = approver + self.comments = comments + self.created_on = created_on + self.id = id + self.instructions = instructions + self.modified_on = modified_on + self.name = name + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.status = status + self.task_instance_id = task_instance_id + self.url = url diff --git a/vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py b/vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py new file mode 100644 index 00000000..7e5f445f --- /dev/null +++ b/vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ManualInterventionUpdateMetadata(Model): + """ManualInterventionUpdateMetadata. + + :param comment: Sets the comment for manual intervention update. + :type comment: str + :param status: Sets the status of the manual intervention. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, status=None): + super(ManualInterventionUpdateMetadata, self).__init__() + self.comment = comment + self.status = status diff --git a/vsts/vsts/release/v4_1/models/metric.py b/vsts/vsts/release/v4_1/models/metric.py new file mode 100644 index 00000000..bb95c93e --- /dev/null +++ b/vsts/vsts/release/v4_1/models/metric.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Metric(Model): + """Metric. + + :param name: + :type name: str + :param value: + :type value: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, name=None, value=None): + super(Metric, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/release/v4_1/models/process_parameters.py b/vsts/vsts/release/v4_1/models/process_parameters.py new file mode 100644 index 00000000..657d9485 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/process_parameters.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions diff --git a/vsts/vsts/release/v4_1/models/project_reference.py b/vsts/vsts/release/v4_1/models/project_reference.py new file mode 100644 index 00000000..fee185de --- /dev/null +++ b/vsts/vsts/release/v4_1/models/project_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param id: Gets the unique identifier of this field. + :type id: str + :param name: Gets name of project. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/release/v4_1/models/queued_release_data.py b/vsts/vsts/release/v4_1/models/queued_release_data.py new file mode 100644 index 00000000..892670ff --- /dev/null +++ b/vsts/vsts/release/v4_1/models/queued_release_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QueuedReleaseData(Model): + """QueuedReleaseData. + + :param project_id: + :type project_id: str + :param queue_position: + :type queue_position: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, project_id=None, queue_position=None, release_id=None): + super(QueuedReleaseData, self).__init__() + self.project_id = project_id + self.queue_position = queue_position + self.release_id = release_id diff --git a/vsts/vsts/release/v4_1/models/reference_links.py b/vsts/vsts/release/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/release/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/release/v4_1/models/release.py b/vsts/vsts/release/v4_1/models/release.py new file mode 100644 index 00000000..2776ad93 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release.py @@ -0,0 +1,125 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Release(Model): + """Release. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_snapshot_revision: Gets revision number of definition snapshot. + :type definition_snapshot_revision: int + :param description: Gets or sets description of release. + :type description: str + :param environments: Gets list of environments. + :type environments: list of :class:`ReleaseEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param keep_forever: Whether to exclude the release from retention policies. + :type keep_forever: bool + :param logs_container_url: Gets logs container url. + :type logs_container_url: str + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param pool_name: Gets pool name. + :type pool_name: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param properties: + :type properties: :class:`object ` + :param reason: Gets reason of release. + :type reason: object + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_name_format: Gets release name format. + :type release_name_format: str + :param status: Gets status. + :type status: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggering_artifact_alias: + :type triggering_artifact_alias: str + :param url: + :type url: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_name': {'key': 'poolName', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggering_artifact_alias': {'key': 'triggeringArtifactAlias', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, triggering_artifact_alias=None, url=None, variable_groups=None, variables=None): + super(Release, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.definition_snapshot_revision = definition_snapshot_revision + self.description = description + self.environments = environments + self.id = id + self.keep_forever = keep_forever + self.logs_container_url = logs_container_url + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.pool_name = pool_name + self.project_reference = project_reference + self.properties = properties + self.reason = reason + self.release_definition = release_definition + self.release_name_format = release_name_format + self.status = status + self.tags = tags + self.triggering_artifact_alias = triggering_artifact_alias + self.url = url + self.variable_groups = variable_groups + self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/release_approval.py b/vsts/vsts/release/v4_1/models/release_approval.py new file mode 100644 index 00000000..b560b210 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_approval.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseApproval(Model): + """ReleaseApproval. + + :param approval_type: Gets or sets the type of approval. + :type approval_type: object + :param approved_by: Gets the identity who approved. + :type approved_by: :class:`IdentityRef ` + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. + :type attempt: int + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param history: Gets history which specifies all approvals associated with this approval. + :type history: list of :class:`ReleaseApprovalHistory ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_automated: Gets or sets as approval is automated or not. + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. + :type rank: int + :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param revision: Gets the revision number. + :type revision: int + :param status: Gets or sets the status of the approval. + :type status: object + :param trial_number: + :type trial_number: int + :param url: Gets url to access the approval. + :type url: str + """ + + _attribute_map = { + 'approval_type': {'key': 'approvalType', 'type': 'object'}, + 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'}, + 'trial_number': {'key': 'trialNumber', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): + super(ReleaseApproval, self).__init__() + self.approval_type = approval_type + self.approved_by = approved_by + self.approver = approver + self.attempt = attempt + self.comments = comments + self.created_on = created_on + self.history = history + self.id = id + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.modified_on = modified_on + self.rank = rank + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.revision = revision + self.status = status + self.trial_number = trial_number + self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_approval_history.py b/vsts/vsts/release/v4_1/models/release_approval_history.py new file mode 100644 index 00000000..80e2b748 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_approval_history.py @@ -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.serialization import Model + + +class ReleaseApprovalHistory(Model): + """ReleaseApprovalHistory. + + :param approver: + :type approver: :class:`IdentityRef ` + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param comments: + :type comments: str + :param created_on: + :type created_on: datetime + :param modified_on: + :type modified_on: datetime + :param revision: + :type revision: int + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): + super(ReleaseApprovalHistory, self).__init__() + self.approver = approver + self.changed_by = changed_by + self.comments = comments + self.created_on = created_on + self.modified_on = modified_on + self.revision = revision diff --git a/vsts/vsts/release/v4_1/models/release_condition.py b/vsts/vsts/release/v4_1/models/release_condition.py new file mode 100644 index 00000000..899e6493 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_condition.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .condition import Condition + + +class ReleaseCondition(Condition): + """ReleaseCondition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + :param result: + :type result: bool + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'bool'} + } + + def __init__(self, condition_type=None, name=None, value=None, result=None): + super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) + self.result = result diff --git a/vsts/vsts/release/v4_1/models/release_definition.py b/vsts/vsts/release/v4_1/models/release_definition.py new file mode 100644 index 00000000..58a8fe5f --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinition(Model): + """ReleaseDefinition. + + :param _links: Gets links to access the release definition. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets the description. + :type description: str + :param environments: Gets or sets the list of environments. + :type environments: list of :class:`ReleaseDefinitionEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_deleted: Whether release definition is deleted. + :type is_deleted: bool + :param last_release: Gets the reference of last release. + :type last_release: :class:`ReleaseReference ` + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param path: Gets or sets the path. + :type path: str + :param properties: Gets or sets properties. + :type properties: :class:`object ` + :param release_name_format: Gets or sets the release name format. + :type release_name_format: str + :param retention_policy: + :type retention_policy: :class:`RetentionPolicy ` + :param revision: Gets the revision number. + :type revision: int + :param source: Gets or sets source of release definition. + :type source: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggers: Gets or sets the list of triggers. + :type triggers: list of :class:`ReleaseTriggerBase ` + :param url: Gets url to access the release definition. + :type url: str + :param variable_groups: Gets or sets the list of variable groups. + :type variable_groups: list of int + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[ReleaseTriggerBase]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): + super(ReleaseDefinition, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.description = description + self.environments = environments + self.id = id + self.is_deleted = is_deleted + self.last_release = last_release + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.path = path + self.properties = properties + self.release_name_format = release_name_format + self.retention_policy = retention_policy + self.revision = revision + self.source = source + self.tags = tags + self.triggers = triggers + self.url = url + self.variable_groups = variable_groups + self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/release_definition_approval_step.py b/vsts/vsts/release/v4_1/models/release_definition_approval_step.py new file mode 100644 index 00000000..11401a39 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_approval_step.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep + + +class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionApprovalStep. + + :param id: + :type id: int + :param approver: + :type approver: :class:`IdentityRef ` + :param is_automated: + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param rank: + :type rank: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): + super(ReleaseDefinitionApprovalStep, self).__init__(id=id) + self.approver = approver + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.rank = rank diff --git a/vsts/vsts/release/v4_1/models/release_definition_approvals.py b/vsts/vsts/release/v4_1/models/release_definition_approvals.py new file mode 100644 index 00000000..507ae5d0 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_approvals.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionApprovals(Model): + """ReleaseDefinitionApprovals. + + :param approval_options: + :type approval_options: :class:`ApprovalOptions ` + :param approvals: + :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` + """ + + _attribute_map = { + 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, + 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} + } + + def __init__(self, approval_options=None, approvals=None): + super(ReleaseDefinitionApprovals, self).__init__() + self.approval_options = approval_options + self.approvals = approvals diff --git a/vsts/vsts/release/v4_1/models/release_definition_deploy_step.py b/vsts/vsts/release/v4_1/models/release_definition_deploy_step.py new file mode 100644 index 00000000..90beaa78 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_deploy_step.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep + + +class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionDeployStep. + + :param id: + :type id: int + :param tasks: The list of steps for this definition. + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, id=None, tasks=None): + super(ReleaseDefinitionDeployStep, self).__init__(id=id) + self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment.py b/vsts/vsts/release/v4_1/models/release_definition_environment.py new file mode 100644 index 00000000..d621b288 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_environment.py @@ -0,0 +1,109 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironment(Model): + """ReleaseDefinitionEnvironment. + + :param conditions: + :type conditions: list of :class:`Condition ` + :param demands: + :type demands: list of :class:`object ` + :param deploy_phases: + :type deploy_phases: list of :class:`DeployPhase ` + :param deploy_step: + :type deploy_step: :class:`ReleaseDefinitionDeployStep ` + :param environment_options: + :type environment_options: :class:`EnvironmentOptions ` + :param execution_policy: + :type execution_policy: :class:`EnvironmentExecutionPolicy ` + :param id: + :type id: int + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param post_deploy_approvals: + :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param post_deployment_gates: + :type post_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param pre_deploy_approvals: + :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param pre_deployment_gates: + :type pre_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param queue_id: + :type queue_id: int + :param rank: + :type rank: int + :param retention_policy: + :type retention_policy: :class:`EnvironmentRetentionPolicy ` + :param run_options: + :type run_options: dict + :param schedules: + :type schedules: list of :class:`ReleaseSchedule ` + :param variable_groups: + :type variable_groups: list of int + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[DeployPhase]'}, + 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'run_options': {'key': 'runOptions', 'type': '{str}'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): + super(ReleaseDefinitionEnvironment, self).__init__() + self.conditions = conditions + self.demands = demands + self.deploy_phases = deploy_phases + self.deploy_step = deploy_step + self.environment_options = environment_options + self.execution_policy = execution_policy + self.id = id + self.name = name + self.owner = owner + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates = post_deployment_gates + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates = pre_deployment_gates + self.process_parameters = process_parameters + self.properties = properties + self.queue_id = queue_id + self.rank = rank + self.retention_policy = retention_policy + self.run_options = run_options + self.schedules = schedules + self.variable_groups = variable_groups + self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment_step.py b/vsts/vsts/release/v4_1/models/release_definition_environment_step.py new file mode 100644 index 00000000..f013f154 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_environment_step.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironmentStep(Model): + """ReleaseDefinitionEnvironmentStep. + + :param id: + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(ReleaseDefinitionEnvironmentStep, self).__init__() + self.id = id diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment_summary.py b/vsts/vsts/release/v4_1/models/release_definition_environment_summary.py new file mode 100644 index 00000000..9d54e386 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_environment_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironmentSummary(Model): + """ReleaseDefinitionEnvironmentSummary. + + :param id: + :type id: int + :param last_releases: + :type last_releases: list of :class:`ReleaseShallowReference ` + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, last_releases=None, name=None): + super(ReleaseDefinitionEnvironmentSummary, self).__init__() + self.id = id + self.last_releases = last_releases + self.name = name diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment_template.py b/vsts/vsts/release/v4_1/models/release_definition_environment_template.py new file mode 100644 index 00000000..2ed07976 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_environment_template.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironmentTemplate(Model): + """ReleaseDefinitionEnvironmentTemplate. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param description: + :type description: str + :param environment: + :type environment: :class:`ReleaseDefinitionEnvironment ` + :param icon_task_id: + :type icon_task_id: str + :param icon_uri: + :type icon_uri: str + :param id: + :type id: str + :param is_deleted: + :type is_deleted: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, is_deleted=None, name=None): + super(ReleaseDefinitionEnvironmentTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.environment = environment + self.icon_task_id = icon_task_id + self.icon_uri = icon_uri + self.id = id + self.is_deleted = is_deleted + self.name = name diff --git a/vsts/vsts/release/v4_1/models/release_definition_gate.py b/vsts/vsts/release/v4_1/models/release_definition_gate.py new file mode 100644 index 00000000..7e8e44c7 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_gate.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionGate(Model): + """ReleaseDefinitionGate. + + :param tasks: + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, tasks=None): + super(ReleaseDefinitionGate, self).__init__() + self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/release_definition_gates_options.py b/vsts/vsts/release/v4_1/models/release_definition_gates_options.py new file mode 100644 index 00000000..eb309367 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_gates_options.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionGatesOptions(Model): + """ReleaseDefinitionGatesOptions. + + :param is_enabled: + :type is_enabled: bool + :param sampling_interval: + :type sampling_interval: int + :param stabilization_time: + :type stabilization_time: int + :param timeout: + :type timeout: int + """ + + _attribute_map = { + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'stabilization_time': {'key': 'stabilizationTime', 'type': 'int'}, + 'timeout': {'key': 'timeout', 'type': 'int'} + } + + def __init__(self, is_enabled=None, sampling_interval=None, stabilization_time=None, timeout=None): + super(ReleaseDefinitionGatesOptions, self).__init__() + self.is_enabled = is_enabled + self.sampling_interval = sampling_interval + self.stabilization_time = stabilization_time + self.timeout = timeout diff --git a/vsts/vsts/release/v4_1/models/release_definition_gates_step.py b/vsts/vsts/release/v4_1/models/release_definition_gates_step.py new file mode 100644 index 00000000..cc3526e4 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_gates_step.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionGatesStep(Model): + """ReleaseDefinitionGatesStep. + + :param gates: + :type gates: list of :class:`ReleaseDefinitionGate ` + :param gates_options: + :type gates_options: :class:`ReleaseDefinitionGatesOptions ` + :param id: + :type id: int + """ + + _attribute_map = { + 'gates': {'key': 'gates', 'type': '[ReleaseDefinitionGate]'}, + 'gates_options': {'key': 'gatesOptions', 'type': 'ReleaseDefinitionGatesOptions'}, + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, gates=None, gates_options=None, id=None): + super(ReleaseDefinitionGatesStep, self).__init__() + self.gates = gates + self.gates_options = gates_options + self.id = id diff --git a/vsts/vsts/release/v4_1/models/release_definition_revision.py b/vsts/vsts/release/v4_1/models/release_definition_revision.py new file mode 100644 index 00000000..4434da86 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_revision.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionRevision(Model): + """ReleaseDefinitionRevision. + + :param api_version: Gets api-version for revision object. + :type api_version: str + :param changed_by: Gets the identity who did change. + :type changed_by: :class:`IdentityRef ` + :param changed_date: Gets date on which it got changed. + :type changed_date: datetime + :param change_type: Gets type of change. + :type change_type: object + :param comment: Gets comments for revision. + :type comment: str + :param definition_id: Get id of the definition. + :type definition_id: int + :param definition_url: Gets definition url. + :type definition_url: str + :param revision: Get revision number of the definition. + :type revision: int + """ + + _attribute_map = { + 'api_version': {'key': 'apiVersion', 'type': 'str'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): + super(ReleaseDefinitionRevision, self).__init__() + self.api_version = api_version + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_id = definition_id + self.definition_url = definition_url + self.revision = revision diff --git a/vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py b/vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py new file mode 100644 index 00000000..7670d370 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionShallowReference(Model): + """ReleaseDefinitionShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param url: Gets the REST API url to access the release definition. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseDefinitionShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_definition_summary.py b/vsts/vsts/release/v4_1/models/release_definition_summary.py new file mode 100644 index 00000000..9139d942 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionSummary(Model): + """ReleaseDefinitionSummary. + + :param environments: + :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param releases: + :type releases: list of :class:`Release ` + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'releases': {'key': 'releases', 'type': '[Release]'} + } + + def __init__(self, environments=None, release_definition=None, releases=None): + super(ReleaseDefinitionSummary, self).__init__() + self.environments = environments + self.release_definition = release_definition + self.releases = releases diff --git a/vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py b/vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py new file mode 100644 index 00000000..24dca3de --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionUndeleteParameter(Model): + """ReleaseDefinitionUndeleteParameter. + + :param comment: Gets or sets comment. + :type comment: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'} + } + + def __init__(self, comment=None): + super(ReleaseDefinitionUndeleteParameter, self).__init__() + self.comment = comment diff --git a/vsts/vsts/release/v4_1/models/release_deploy_phase.py b/vsts/vsts/release/v4_1/models/release_deploy_phase.py new file mode 100644 index 00000000..00e70278 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_deploy_phase.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDeployPhase(Model): + """ReleaseDeployPhase. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param error_log: + :type error_log: str + :param id: + :type id: int + :param manual_interventions: + :type manual_interventions: list of :class:`ManualIntervention ` + :param phase_type: + :type phase_type: object + :param rank: + :type rank: int + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, phase_type=None, rank=None, run_plan_id=None, status=None): + super(ReleaseDeployPhase, self).__init__() + self.deployment_jobs = deployment_jobs + self.error_log = error_log + self.id = id + self.manual_interventions = manual_interventions + self.phase_type = phase_type + self.rank = rank + self.run_plan_id = run_plan_id + self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_environment.py b/vsts/vsts/release/v4_1/models/release_environment.py new file mode 100644 index 00000000..339ccefb --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_environment.py @@ -0,0 +1,157 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironment(Model): + """ReleaseEnvironment. + + :param conditions: Gets list of conditions. + :type conditions: list of :class:`ReleaseCondition ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_environment_id: Gets definition environment id. + :type definition_environment_id: int + :param demands: Gets demands. + :type demands: list of :class:`object ` + :param deploy_phases_snapshot: Gets list of deploy phases snapshot. + :type deploy_phases_snapshot: list of :class:`DeployPhase ` + :param deploy_steps: Gets deploy steps. + :type deploy_steps: list of :class:`DeploymentAttempt ` + :param environment_options: Gets environment options. + :type environment_options: :class:`EnvironmentOptions ` + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param next_scheduled_utc_time: Gets next scheduled UTC time. + :type next_scheduled_utc_time: datetime + :param owner: Gets the identity who is owner for release environment. + :type owner: :class:`IdentityRef ` + :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. + :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param post_deploy_approvals: Gets list of post deploy approvals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param post_deployment_gates_snapshot: + :type post_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. + :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: Gets list of pre deploy approvals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deployment_gates_snapshot: + :type pre_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: Gets process parameters. + :type process_parameters: :class:`ProcessParameters ` + :param queue_id: Gets queue id. + :type queue_id: int + :param rank: Gets rank. + :type rank: int + :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_created_by: Gets the identity who created release. + :type release_created_by: :class:`IdentityRef ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_description: Gets release description. + :type release_description: str + :param release_id: Gets release id. + :type release_id: int + :param scheduled_deployment_time: Gets schedule deployment time of release environment. + :type scheduled_deployment_time: datetime + :param schedules: Gets list of schedules. + :type schedules: list of :class:`ReleaseSchedule ` + :param status: Gets environment status. + :type status: object + :param time_to_deploy: Gets time to deploy. + :type time_to_deploy: number + :param trigger_reason: Gets trigger reason. + :type trigger_reason: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets the dictionary of variables. + :type variables: dict + :param workflow_tasks: Gets list of workflow tasks. + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[DeployPhase]'}, + 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'post_deployment_gates_snapshot': {'key': 'postDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deployment_gates_snapshot': {'key': 'preDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_description': {'key': 'releaseDescription', 'type': 'str'}, + 'release_id': {'key': 'releaseId', 'type': 'int'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'status': {'key': 'status', 'type': 'object'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'number'}, + 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, post_deployment_gates_snapshot=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, pre_deployment_gates_snapshot=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variable_groups=None, variables=None, workflow_tasks=None): + super(ReleaseEnvironment, self).__init__() + self.conditions = conditions + self.created_on = created_on + self.definition_environment_id = definition_environment_id + self.demands = demands + self.deploy_phases_snapshot = deploy_phases_snapshot + self.deploy_steps = deploy_steps + self.environment_options = environment_options + self.id = id + self.modified_on = modified_on + self.name = name + self.next_scheduled_utc_time = next_scheduled_utc_time + self.owner = owner + self.post_approvals_snapshot = post_approvals_snapshot + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates_snapshot = post_deployment_gates_snapshot + self.pre_approvals_snapshot = pre_approvals_snapshot + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates_snapshot = pre_deployment_gates_snapshot + self.process_parameters = process_parameters + self.queue_id = queue_id + self.rank = rank + self.release = release + self.release_created_by = release_created_by + self.release_definition = release_definition + self.release_description = release_description + self.release_id = release_id + self.scheduled_deployment_time = scheduled_deployment_time + self.schedules = schedules + self.status = status + self.time_to_deploy = time_to_deploy + self.trigger_reason = trigger_reason + self.variable_groups = variable_groups + self.variables = variables + self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py b/vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py new file mode 100644 index 00000000..fb04defc --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironmentShallowReference(Model): + """ReleaseEnvironmentShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release environment. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release environment. + :type id: int + :param name: Gets or sets the name of the release environment. + :type name: str + :param url: Gets the REST API url to access the release environment. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseEnvironmentShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_environment_update_metadata.py b/vsts/vsts/release/v4_1/models/release_environment_update_metadata.py new file mode 100644 index 00000000..df5c0fed --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_environment_update_metadata.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironmentUpdateMetadata(Model): + """ReleaseEnvironmentUpdateMetadata. + + :param comment: Gets or sets comment. + :type comment: str + :param scheduled_deployment_time: Gets or sets scheduled deployment time. + :type scheduled_deployment_time: datetime + :param status: Gets or sets status of environment. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, scheduled_deployment_time=None, status=None): + super(ReleaseEnvironmentUpdateMetadata, self).__init__() + self.comment = comment + self.scheduled_deployment_time = scheduled_deployment_time + self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_gates.py b/vsts/vsts/release/v4_1/models/release_gates.py new file mode 100644 index 00000000..91d493fe --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_gates.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseGates(Model): + """ReleaseGates. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param id: + :type id: int + :param last_modified_on: + :type last_modified_on: datetime + :param run_plan_id: + :type run_plan_id: str + :param stabilization_completed_on: + :type stabilization_completed_on: datetime + :param started_on: + :type started_on: datetime + :param status: + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'stabilization_completed_on': {'key': 'stabilizationCompletedOn', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, id=None, last_modified_on=None, run_plan_id=None, stabilization_completed_on=None, started_on=None, status=None): + super(ReleaseGates, self).__init__() + self.deployment_jobs = deployment_jobs + self.id = id + self.last_modified_on = last_modified_on + self.run_plan_id = run_plan_id + self.stabilization_completed_on = stabilization_completed_on + self.started_on = started_on + self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_reference.py b/vsts/vsts/release/v4_1/models/release_reference.py new file mode 100644 index 00000000..9f014153 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_reference.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseReference(Model): + """ReleaseReference. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param created_by: Gets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param name: Gets name of release. + :type name: str + :param reason: Gets reason for release. + :type reason: object + :param release_definition: Gets release definition shallow reference. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param url: + :type url: str + :param web_access_uri: + :type web_access_uri: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} + } + + def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): + super(ReleaseReference, self).__init__() + self._links = _links + self.artifacts = artifacts + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.name = name + self.reason = reason + self.release_definition = release_definition + self.url = url + self.web_access_uri = web_access_uri diff --git a/vsts/vsts/release/v4_1/models/release_revision.py b/vsts/vsts/release/v4_1/models/release_revision.py new file mode 100644 index 00000000..970a85ae --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_revision.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseRevision(Model): + """ReleaseRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_details: + :type change_details: str + :param change_type: + :type change_type: str + :param comment: + :type comment: str + :param definition_snapshot_revision: + :type definition_snapshot_revision: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_details': {'key': 'changeDetails', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): + super(ReleaseRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_details = change_details + self.change_type = change_type + self.comment = comment + self.definition_snapshot_revision = definition_snapshot_revision + self.release_id = release_id diff --git a/vsts/vsts/release/v4_1/models/release_schedule.py b/vsts/vsts/release/v4_1/models/release_schedule.py new file mode 100644 index 00000000..ac0b3f86 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_schedule.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseSchedule(Model): + """ReleaseSchedule. + + :param days_to_release: Days of the week to release + :type days_to_release: object + :param job_id: Team Foundation Job Definition Job Id + :type job_id: str + :param start_hours: Local time zone hour to start + :type start_hours: int + :param start_minutes: Local time zone minute to start + :type start_minutes: int + :param time_zone_id: Time zone Id of release schedule, such as 'UTC' + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(ReleaseSchedule, self).__init__() + self.days_to_release = days_to_release + self.job_id = job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id diff --git a/vsts/vsts/release/v4_1/models/release_settings.py b/vsts/vsts/release/v4_1/models/release_settings.py new file mode 100644 index 00000000..d653e694 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseSettings(Model): + """ReleaseSettings. + + :param retention_settings: + :type retention_settings: :class:`RetentionSettings ` + """ + + _attribute_map = { + 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} + } + + def __init__(self, retention_settings=None): + super(ReleaseSettings, self).__init__() + self.retention_settings = retention_settings diff --git a/vsts/vsts/release/v4_1/models/release_shallow_reference.py b/vsts/vsts/release/v4_1/models/release_shallow_reference.py new file mode 100644 index 00000000..beb09a38 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_shallow_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseShallowReference(Model): + """ReleaseShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release. + :type id: int + :param name: Gets or sets the name of the release. + :type name: str + :param url: Gets the REST API url to access the release. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_start_metadata.py b/vsts/vsts/release/v4_1/models/release_start_metadata.py new file mode 100644 index 00000000..0cf25dc4 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_start_metadata.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseStartMetadata(Model): + """ReleaseStartMetadata. + + :param artifacts: Sets list of artifact to create a release. + :type artifacts: list of :class:`ArtifactMetadata ` + :param definition_id: Sets definition Id to create a release. + :type definition_id: int + :param description: Sets description to create a release. + :type description: str + :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. + :type is_draft: bool + :param manual_environments: Sets list of environments to manual as condition. + :type manual_environments: list of str + :param properties: + :type properties: :class:`object ` + :param reason: Sets reason to create a release. + :type reason: object + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'} + } + + def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): + super(ReleaseStartMetadata, self).__init__() + self.artifacts = artifacts + self.definition_id = definition_id + self.description = description + self.is_draft = is_draft + self.manual_environments = manual_environments + self.properties = properties + self.reason = reason diff --git a/vsts/vsts/release/v4_1/models/release_task.py b/vsts/vsts/release/v4_1/models/release_task.py new file mode 100644 index 00000000..62213335 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_task.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseTask(Model): + """ReleaseTask. + + :param agent_name: + :type agent_name: str + :param date_ended: + :type date_ended: datetime + :param date_started: + :type date_started: datetime + :param finish_time: + :type finish_time: datetime + :param id: + :type id: int + :param issues: + :type issues: list of :class:`Issue ` + :param line_count: + :type line_count: long + :param log_url: + :type log_url: str + :param name: + :type name: str + :param percent_complete: + :type percent_complete: int + :param rank: + :type rank: int + :param start_time: + :type start_time: datetime + :param status: + :type status: object + :param task: + :type task: :class:`WorkflowTaskReference ` + :param timeline_record_id: + :type timeline_record_id: str + """ + + _attribute_map = { + 'agent_name': {'key': 'agentName', 'type': 'str'}, + 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, + 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'log_url': {'key': 'logUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, + 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} + } + + def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): + super(ReleaseTask, self).__init__() + self.agent_name = agent_name + self.date_ended = date_ended + self.date_started = date_started + self.finish_time = finish_time + self.id = id + self.issues = issues + self.line_count = line_count + self.log_url = log_url + self.name = name + self.percent_complete = percent_complete + self.rank = rank + self.start_time = start_time + self.status = status + self.task = task + self.timeline_record_id = timeline_record_id diff --git a/vsts/vsts/release/v4_1/models/release_trigger_base.py b/vsts/vsts/release/v4_1/models/release_trigger_base.py new file mode 100644 index 00000000..30c36fb3 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_trigger_base.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseTriggerBase(Model): + """ReleaseTriggerBase. + + :param trigger_type: + :type trigger_type: object + """ + + _attribute_map = { + 'trigger_type': {'key': 'triggerType', 'type': 'object'} + } + + def __init__(self, trigger_type=None): + super(ReleaseTriggerBase, self).__init__() + self.trigger_type = trigger_type diff --git a/vsts/vsts/release/v4_1/models/release_update_metadata.py b/vsts/vsts/release/v4_1/models/release_update_metadata.py new file mode 100644 index 00000000..24cad449 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_update_metadata.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseUpdateMetadata(Model): + """ReleaseUpdateMetadata. + + :param comment: Sets comment for release. + :type comment: str + :param keep_forever: Set 'true' to exclude the release from retention policies. + :type keep_forever: bool + :param manual_environments: Sets list of manual environments. + :type manual_environments: list of str + :param status: Sets status of the release. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): + super(ReleaseUpdateMetadata, self).__init__() + self.comment = comment + self.keep_forever = keep_forever + self.manual_environments = manual_environments + self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_work_item_ref.py b/vsts/vsts/release/v4_1/models/release_work_item_ref.py new file mode 100644 index 00000000..9891d5a0 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_work_item_ref.py @@ -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.serialization import Model + + +class ReleaseWorkItemRef(Model): + """ReleaseWorkItemRef. + + :param assignee: + :type assignee: str + :param id: + :type id: str + :param state: + :type state: str + :param title: + :type title: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'assignee': {'key': 'assignee', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): + super(ReleaseWorkItemRef, self).__init__() + self.assignee = assignee + self.id = id + self.state = state + self.title = title + self.type = type + self.url = url diff --git a/vsts/vsts/release/v4_1/models/retention_policy.py b/vsts/vsts/release/v4_1/models/retention_policy.py new file mode 100644 index 00000000..e070b170 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/retention_policy.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} + } + + def __init__(self, days_to_keep=None): + super(RetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep diff --git a/vsts/vsts/release/v4_1/models/retention_settings.py b/vsts/vsts/release/v4_1/models/retention_settings.py new file mode 100644 index 00000000..ceb96feb --- /dev/null +++ b/vsts/vsts/release/v4_1/models/retention_settings.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RetentionSettings(Model): + """RetentionSettings. + + :param days_to_keep_deleted_releases: + :type days_to_keep_deleted_releases: int + :param default_environment_retention_policy: + :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + :param maximum_environment_retention_policy: + :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, + 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): + super(RetentionSettings, self).__init__() + self.days_to_keep_deleted_releases = days_to_keep_deleted_releases + self.default_environment_retention_policy = default_environment_retention_policy + self.maximum_environment_retention_policy = maximum_environment_retention_policy diff --git a/vsts/vsts/release/v4_1/models/summary_mail_section.py b/vsts/vsts/release/v4_1/models/summary_mail_section.py new file mode 100644 index 00000000..b8f6a8ea --- /dev/null +++ b/vsts/vsts/release/v4_1/models/summary_mail_section.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SummaryMailSection(Model): + """SummaryMailSection. + + :param html_content: + :type html_content: str + :param rank: + :type rank: int + :param section_type: + :type section_type: object + :param title: + :type title: str + """ + + _attribute_map = { + 'html_content': {'key': 'htmlContent', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'section_type': {'key': 'sectionType', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, html_content=None, rank=None, section_type=None, title=None): + super(SummaryMailSection, self).__init__() + self.html_content = html_content + self.rank = rank + self.section_type = section_type + self.title = title diff --git a/vsts/vsts/release/v4_1/models/task_input_definition_base.py b/vsts/vsts/release/v4_1/models/task_input_definition_base.py new file mode 100644 index 00000000..1b4e68ff --- /dev/null +++ b/vsts/vsts/release/v4_1/models/task_input_definition_base.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule diff --git a/vsts/vsts/release/v4_1/models/task_input_validation.py b/vsts/vsts/release/v4_1/models/task_input_validation.py new file mode 100644 index 00000000..42524013 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/task_input_validation.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message diff --git a/vsts/vsts/release/v4_1/models/task_source_definition_base.py b/vsts/vsts/release/v4_1/models/task_source_definition_base.py new file mode 100644 index 00000000..c8a6b6d6 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/task_source_definition_base.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target diff --git a/vsts/vsts/release/v4_1/models/variable_group.py b/vsts/vsts/release/v4_1/models/variable_group.py new file mode 100644 index 00000000..64db6038 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/variable_group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets name. + :type name: str + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type. + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/variable_group_provider_data.py b/vsts/vsts/release/v4_1/models/variable_group_provider_data.py new file mode 100644 index 00000000..b86942f1 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/variable_group_provider_data.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/release/v4_1/models/variable_value.py b/vsts/vsts/release/v4_1/models/variable_value.py new file mode 100644 index 00000000..035049c0 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/release/v4_1/models/workflow_task.py b/vsts/vsts/release/v4_1/models/workflow_task.py new file mode 100644 index 00000000..14ef134c --- /dev/null +++ b/vsts/vsts/release/v4_1/models/workflow_task.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkflowTask(Model): + """WorkflowTask. + + :param always_run: + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: + :type continue_on_error: bool + :param definition_type: + :type definition_type: str + :param enabled: + :type enabled: bool + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param override_inputs: + :type override_inputs: dict + :param ref_name: + :type ref_name: str + :param task_id: + :type task_id: str + :param timeout_in_minutes: + :type timeout_in_minutes: int + :param version: + :type version: str + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): + super(WorkflowTask, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.definition_type = definition_type + self.enabled = enabled + self.inputs = inputs + self.name = name + self.override_inputs = override_inputs + self.ref_name = ref_name + self.task_id = task_id + self.timeout_in_minutes = timeout_in_minutes + self.version = version diff --git a/vsts/vsts/release/v4_1/models/workflow_task_reference.py b/vsts/vsts/release/v4_1/models/workflow_task_reference.py new file mode 100644 index 00000000..0a99eab3 --- /dev/null +++ b/vsts/vsts/release/v4_1/models/workflow_task_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkflowTaskReference(Model): + """WorkflowTaskReference. + + :param id: + :type id: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(WorkflowTaskReference, self).__init__() + self.id = id + self.name = name + self.version = version diff --git a/vsts/vsts/release/v4_1/release_client.py b/vsts/vsts/release/v4_1/release_client.py new file mode 100644 index 00000000..5cb55862 --- /dev/null +++ b/vsts/vsts/release/v4_1/release_client.py @@ -0,0 +1,683 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ReleaseClient(VssClient): + """Release + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ReleaseClient, 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_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): + """GetApprovals. + [Preview API] Get a list of approvals + :param str project: Project ID or project name + :param str assigned_to_filter: Approvals assigned to this user. + :param str status_filter: Approvals with this status. Default is 'pending'. + :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. + :param str type_filter: Approval with this type. + :param int top: Number of approvals to get. Default is 50. + :param int continuation_token: Gets the approvals after the continuation token provided. + :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. + :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if assigned_to_filter is not None: + query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if release_ids_filter is not None: + release_ids_filter = ",".join(map(str, release_ids_filter)) + query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') + if type_filter is not None: + query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if include_my_group_approvals is not None: + query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') + response = self._send(http_method='GET', + location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ReleaseApproval]', response) + + def update_release_approval(self, approval, project, approval_id): + """UpdateReleaseApproval. + [Preview API] Update status of an approval + :param :class:` ` approval: ReleaseApproval object having status, approver and comments. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + content = self._serialize.body(approval, 'ReleaseApproval') + response = self._send(http_method='PATCH', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReleaseApproval', response) + + def create_release_definition(self, release_definition, project): + """CreateReleaseDefinition. + [Preview API] Create a release definition + :param :class:` ` release_definition: release definition object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='POST', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def delete_release_definition(self, project, definition_id, comment=None, force_delete=None): + """DeleteReleaseDefinition. + [Preview API] Delete a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param str comment: Comment for deleting a release definition. + :param bool force_delete: 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + if force_delete is not None: + query_parameters['forceDelete'] = self._serialize.query('force_delete', force_delete, 'bool') + self._send(http_method='DELETE', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + + def get_release_definition(self, project, definition_id, property_filters=None): + """GetReleaseDefinition. + [Preview API] Get a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinition', response) + + def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None, is_deleted=None): + """GetReleaseDefinitions. + [Preview API] Get a list of release definitions. + :param str project: Project ID or project name + :param str search_text: Get release definitions with names starting with searchText. + :param str expand: The properties that should be expanded in the list of Release definitions. + :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param int top: Number of release definitions to get. + :param str continuation_token: Gets the release definitions after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. + :param str path: Gets the release definitions under the specified path. + :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. + :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. + :param bool is_deleted: 'true' to get release definitions that has been deleted. Default is 'false' + :rtype: [ReleaseDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if is_exact_name_match is not None: + query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if definition_id_filter is not None: + definition_id_filter = ",".join(definition_id_filter) + query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ReleaseDefinition]', response) + + def update_release_definition(self, release_definition, project): + """UpdateReleaseDefinition. + [Preview API] Update a release definition. + :param :class:` ` release_definition: Release definition object to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='PUT', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None): + """GetDeployments. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :param int definition_environment_id: + :param str created_by: + :param datetime min_modified_time: + :param datetime max_modified_time: + :param str deployment_status: + :param str operation_status: + :param bool latest_attempts_only: + :param str query_order: + :param int top: + :param int continuation_token: + :param str created_for: + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if min_modified_time is not None: + query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') + if max_modified_time is not None: + query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') + if deployment_status is not None: + query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') + if operation_status is not None: + query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') + if latest_attempts_only is not None: + query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if created_for is not None: + query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + response = self._send(http_method='GET', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Deployment]', response) + + def update_release_environment(self, environment_update_data, project, release_id, environment_id): + """UpdateReleaseEnvironment. + [Preview API] Update the status of a release environment + :param :class:` ` environment_update_data: Environment update meta data. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='4.1-preview.5', + route_values=route_values, + content=content) + return self._deserialize('ReleaseEnvironment', response) + + def get_logs(self, project, release_id): + """GetLogs. + [Preview API] Get logs for a release Id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('object', response) + + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id): + """GetTaskLog. + [Preview API] Gets the task log of a release as a plain text file. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int release_deploy_phase_id: Release deploy phase Id. + :param int task_id: ReleaseTask Id for the log. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + response = self._send(http_method='GET', + location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('object', response) + + def get_manual_intervention(self, project, release_id, manual_intervention_id): + """GetManualIntervention. + [Preview API] Get manual intervention for a given release and manual intervention id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ManualIntervention', response) + + def get_manual_interventions(self, project, release_id): + """GetManualInterventions. + [Preview API] List all manual interventions for a given release. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: [ManualIntervention] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ManualIntervention]', response) + + def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): + """UpdateManualIntervention. + [Preview API] Update manual intervention. + :param :class:` ` manual_intervention_update_metadata: Meta data to update manual intervention. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ManualIntervention', response) + + def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None, release_id_filter=None): + """GetReleases. + [Preview API] Get a list of releases + :param str project: Project ID or project name + :param int definition_id: Releases from this release definition Id. + :param int definition_environment_id: + :param str search_text: Releases with names starting with searchText. + :param str created_by: Releases created by this user. + :param str status_filter: Releases that have this status. + :param int environment_status_filter: + :param datetime min_created_time: Releases that were created after this time. + :param datetime max_created_time: Releases that were created before this time. + :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. + :param int top: Number of releases to get. Default is 50. + :param int continuation_token: Gets the releases after the continuation token provided. + :param str expand: The property that should be expanded in the list of releases. + :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. + :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. + :param bool is_deleted: Gets the soft deleted releases, if true. + :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :param [int] release_id_filter: A comma-delimited list of releases Ids. Only releases with these Ids will be returned. + :rtype: [Release] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if environment_status_filter is not None: + query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') + if min_created_time is not None: + query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') + if max_created_time is not None: + query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type_id is not None: + query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + if source_branch_filter is not None: + query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if release_id_filter is not None: + release_id_filter = ",".join(map(str, release_id_filter)) + query_parameters['releaseIdFilter'] = self._serialize.query('release_id_filter', release_id_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Release]', response) + + def create_release(self, release_start_metadata, project): + """CreateRelease. + [Preview API] Create a release. + :param :class:` ` release_start_metadata: Metadata to create a release. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') + response = self._send(http_method='POST', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_release(self, project, release_id, include_all_approvals=None, property_filters=None): + """GetRelease. + [Preview API] Get a Release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param bool include_all_approvals: Include all approvals in the result. Default is 'true'. + :param [str] property_filters: A comma-delimited list of properties to include in the results. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if include_all_approvals is not None: + query_parameters['includeAllApprovals'] = self._serialize.query('include_all_approvals', include_all_approvals, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Release', response) + + def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): + """GetReleaseDefinitionSummary. + [Preview API] Get release summary of a given definition Id. + :param str project: Project ID or project name + :param int definition_id: Id of the definition to get release summary. + :param int release_count: Count of releases to be included in summary. + :param bool include_artifact: Include artifact details.Default is 'false'. + :param [int] definition_environment_ids_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if release_count is not None: + query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') + if include_artifact is not None: + query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') + if definition_environment_ids_filter is not None: + definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) + query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinitionSummary', response) + + def get_release_revision(self, project, release_id, definition_snapshot_revision): + """GetReleaseRevision. + [Preview API] Get release for a given revision number. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int definition_snapshot_revision: Definition snapshot revision number. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if definition_snapshot_revision is not None: + query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_release(self, release, project, release_id): + """UpdateRelease. + [Preview API] Update a complete release object. + :param :class:` ` release: Release object for update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release, 'Release') + response = self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def update_release_resource(self, release_update_metadata, project, release_id): + """UpdateReleaseResource. + [Preview API] Update few properties of a release. + :param :class:` ` release_update_metadata: Properties of release to update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_definition_revision(self, project, definition_id, revision): + """GetDefinitionRevision. + [Preview API] Get release definition for a given definitionId and revision + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :param int revision: Id of the revision. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + if revision is not None: + route_values['revision'] = self._serialize.url('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_release_definition_history(self, project, definition_id): + """GetReleaseDefinitionHistory. + [Preview API] Get revision history for a release definition + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :rtype: [ReleaseDefinitionRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ReleaseDefinitionRevision]', response) + From 8205f408064d4f4d219250252883280d0a1e080d Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 10 Jan 2018 19:43:15 -0500 Subject: [PATCH 018/191] generate 4.0 release management client --- vsts/vsts/release/v4_0/__init__.py | 7 + vsts/vsts/release/v4_0/models/__init__.py | 175 ++ .../v4_0/models/agent_artifact_definition.py | 41 + .../release/v4_0/models/approval_options.py | 41 + vsts/vsts/release/v4_0/models/artifact.py | 41 + .../release/v4_0/models/artifact_metadata.py | 29 + .../v4_0/models/artifact_source_reference.py | 29 + .../v4_0/models/artifact_type_definition.py | 37 + .../release/v4_0/models/artifact_version.py | 41 + .../models/artifact_version_query_result.py | 25 + .../release/v4_0/models/auto_trigger_issue.py | 41 + .../vsts/release/v4_0/models/build_version.py | 45 + vsts/vsts/release/v4_0/models/change.py | 49 + vsts/vsts/release/v4_0/models/condition.py | 33 + .../models/configuration_variable_value.py | 29 + .../v4_0/models/data_source_binding_base.py | 49 + .../definition_environment_reference.py | 37 + vsts/vsts/release/v4_0/models/deploy_phase.py | 37 + vsts/vsts/release/v4_0/models/deployment.py | 101 + .../release/v4_0/models/deployment_attempt.py | 89 + .../release/v4_0/models/deployment_job.py | 29 + .../models/deployment_query_parameters.py | 73 + .../release/v4_0/models/email_recipients.py | 29 + .../models/environment_execution_policy.py | 29 + .../v4_0/models/environment_options.py | 45 + .../models/environment_retention_policy.py | 33 + .../vsts/release/v4_0/models/favorite_item.py | 37 + vsts/vsts/release/v4_0/models/folder.py | 45 + vsts/vsts/release/v4_0/models/identity_ref.py | 61 + .../release/v4_0/models/input_descriptor.py | 77 + .../release/v4_0/models/input_validation.py | 53 + vsts/vsts/release/v4_0/models/input_value.py | 33 + vsts/vsts/release/v4_0/models/input_values.py | 49 + .../release/v4_0/models/input_values_error.py | 25 + .../release/v4_0/models/input_values_query.py | 33 + vsts/vsts/release/v4_0/models/issue.py | 29 + vsts/vsts/release/v4_0/models/mail_message.py | 61 + .../v4_0/models/manual_intervention.py | 73 + .../manual_intervention_update_metadata.py | 29 + vsts/vsts/release/v4_0/models/metric.py | 29 + .../release/v4_0/models/process_parameters.py | 33 + .../release/v4_0/models/project_reference.py | 29 + .../v4_0/models/queued_release_data.py | 33 + .../release/v4_0/models/reference_links.py | 25 + vsts/vsts/release/v4_0/models/release.py | 121 ++ .../release/v4_0/models/release_approval.py | 97 + .../v4_0/models/release_approval_history.py | 45 + .../release/v4_0/models/release_condition.py | 34 + .../release/v4_0/models/release_definition.py | 113 ++ .../release_definition_approval_step.py | 40 + .../models/release_definition_approvals.py | 29 + .../models/release_definition_deploy_step.py | 28 + .../models/release_definition_environment.py | 97 + .../release_definition_environment_step.py | 25 + .../release_definition_environment_summary.py | 33 + ...release_definition_environment_template.py | 53 + .../models/release_definition_revision.py | 53 + .../release_definition_shallow_reference.py | 37 + .../v4_0/models/release_definition_summary.py | 33 + .../v4_0/models/release_deploy_phase.py | 53 + .../v4_0/models/release_environment.py | 145 ++ .../release_environment_shallow_reference.py | 37 + .../release_environment_update_metadata.py | 33 + .../release/v4_0/models/release_reference.py | 69 + .../release/v4_0/models/release_revision.py | 49 + .../release/v4_0/models/release_schedule.py | 41 + .../release/v4_0/models/release_settings.py | 25 + .../v4_0/models/release_shallow_reference.py | 37 + .../v4_0/models/release_start_metadata.py | 49 + vsts/vsts/release/v4_0/models/release_task.py | 81 + .../v4_0/models/release_trigger_base.py | 25 + .../v4_0/models/release_update_metadata.py | 37 + .../v4_0/models/release_work_item_ref.py | 45 + .../release/v4_0/models/retention_policy.py | 25 + .../release/v4_0/models/retention_settings.py | 33 + .../v4_0/models/summary_mail_section.py | 37 + .../v4_0/models/task_input_definition_base.py | 65 + .../v4_0/models/task_input_validation.py | 29 + .../models/task_source_definition_base.py | 41 + .../release/v4_0/models/variable_group.py | 61 + .../models/variable_group_provider_data.py | 21 + .../release/v4_0/models/variable_value.py | 29 + .../vsts/release/v4_0/models/workflow_task.py | 69 + .../v4_0/models/workflow_task_reference.py | 33 + vsts/vsts/release/v4_0/release_client.py | 1694 +++++++++++++++++ 85 files changed, 5669 insertions(+) create mode 100644 vsts/vsts/release/v4_0/__init__.py create mode 100644 vsts/vsts/release/v4_0/models/__init__.py create mode 100644 vsts/vsts/release/v4_0/models/agent_artifact_definition.py create mode 100644 vsts/vsts/release/v4_0/models/approval_options.py create mode 100644 vsts/vsts/release/v4_0/models/artifact.py create mode 100644 vsts/vsts/release/v4_0/models/artifact_metadata.py create mode 100644 vsts/vsts/release/v4_0/models/artifact_source_reference.py create mode 100644 vsts/vsts/release/v4_0/models/artifact_type_definition.py create mode 100644 vsts/vsts/release/v4_0/models/artifact_version.py create mode 100644 vsts/vsts/release/v4_0/models/artifact_version_query_result.py create mode 100644 vsts/vsts/release/v4_0/models/auto_trigger_issue.py create mode 100644 vsts/vsts/release/v4_0/models/build_version.py create mode 100644 vsts/vsts/release/v4_0/models/change.py create mode 100644 vsts/vsts/release/v4_0/models/condition.py create mode 100644 vsts/vsts/release/v4_0/models/configuration_variable_value.py create mode 100644 vsts/vsts/release/v4_0/models/data_source_binding_base.py create mode 100644 vsts/vsts/release/v4_0/models/definition_environment_reference.py create mode 100644 vsts/vsts/release/v4_0/models/deploy_phase.py create mode 100644 vsts/vsts/release/v4_0/models/deployment.py create mode 100644 vsts/vsts/release/v4_0/models/deployment_attempt.py create mode 100644 vsts/vsts/release/v4_0/models/deployment_job.py create mode 100644 vsts/vsts/release/v4_0/models/deployment_query_parameters.py create mode 100644 vsts/vsts/release/v4_0/models/email_recipients.py create mode 100644 vsts/vsts/release/v4_0/models/environment_execution_policy.py create mode 100644 vsts/vsts/release/v4_0/models/environment_options.py create mode 100644 vsts/vsts/release/v4_0/models/environment_retention_policy.py create mode 100644 vsts/vsts/release/v4_0/models/favorite_item.py create mode 100644 vsts/vsts/release/v4_0/models/folder.py create mode 100644 vsts/vsts/release/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/release/v4_0/models/input_descriptor.py create mode 100644 vsts/vsts/release/v4_0/models/input_validation.py create mode 100644 vsts/vsts/release/v4_0/models/input_value.py create mode 100644 vsts/vsts/release/v4_0/models/input_values.py create mode 100644 vsts/vsts/release/v4_0/models/input_values_error.py create mode 100644 vsts/vsts/release/v4_0/models/input_values_query.py create mode 100644 vsts/vsts/release/v4_0/models/issue.py create mode 100644 vsts/vsts/release/v4_0/models/mail_message.py create mode 100644 vsts/vsts/release/v4_0/models/manual_intervention.py create mode 100644 vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py create mode 100644 vsts/vsts/release/v4_0/models/metric.py create mode 100644 vsts/vsts/release/v4_0/models/process_parameters.py create mode 100644 vsts/vsts/release/v4_0/models/project_reference.py create mode 100644 vsts/vsts/release/v4_0/models/queued_release_data.py create mode 100644 vsts/vsts/release/v4_0/models/reference_links.py create mode 100644 vsts/vsts/release/v4_0/models/release.py create mode 100644 vsts/vsts/release/v4_0/models/release_approval.py create mode 100644 vsts/vsts/release/v4_0/models/release_approval_history.py create mode 100644 vsts/vsts/release/v4_0/models/release_condition.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_approval_step.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_approvals.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_deploy_step.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment_step.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment_summary.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment_template.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_revision.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py create mode 100644 vsts/vsts/release/v4_0/models/release_definition_summary.py create mode 100644 vsts/vsts/release/v4_0/models/release_deploy_phase.py create mode 100644 vsts/vsts/release/v4_0/models/release_environment.py create mode 100644 vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py create mode 100644 vsts/vsts/release/v4_0/models/release_environment_update_metadata.py create mode 100644 vsts/vsts/release/v4_0/models/release_reference.py create mode 100644 vsts/vsts/release/v4_0/models/release_revision.py create mode 100644 vsts/vsts/release/v4_0/models/release_schedule.py create mode 100644 vsts/vsts/release/v4_0/models/release_settings.py create mode 100644 vsts/vsts/release/v4_0/models/release_shallow_reference.py create mode 100644 vsts/vsts/release/v4_0/models/release_start_metadata.py create mode 100644 vsts/vsts/release/v4_0/models/release_task.py create mode 100644 vsts/vsts/release/v4_0/models/release_trigger_base.py create mode 100644 vsts/vsts/release/v4_0/models/release_update_metadata.py create mode 100644 vsts/vsts/release/v4_0/models/release_work_item_ref.py create mode 100644 vsts/vsts/release/v4_0/models/retention_policy.py create mode 100644 vsts/vsts/release/v4_0/models/retention_settings.py create mode 100644 vsts/vsts/release/v4_0/models/summary_mail_section.py create mode 100644 vsts/vsts/release/v4_0/models/task_input_definition_base.py create mode 100644 vsts/vsts/release/v4_0/models/task_input_validation.py create mode 100644 vsts/vsts/release/v4_0/models/task_source_definition_base.py create mode 100644 vsts/vsts/release/v4_0/models/variable_group.py create mode 100644 vsts/vsts/release/v4_0/models/variable_group_provider_data.py create mode 100644 vsts/vsts/release/v4_0/models/variable_value.py create mode 100644 vsts/vsts/release/v4_0/models/workflow_task.py create mode 100644 vsts/vsts/release/v4_0/models/workflow_task_reference.py create mode 100644 vsts/vsts/release/v4_0/release_client.py diff --git a/vsts/vsts/release/v4_0/__init__.py b/vsts/vsts/release/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/release/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/release/v4_0/models/__init__.py b/vsts/vsts/release/v4_0/models/__init__.py new file mode 100644 index 00000000..03b6a70c --- /dev/null +++ b/vsts/vsts/release/v4_0/models/__init__.py @@ -0,0 +1,175 @@ +# -------------------------------------------------------------------------------------------- +# 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 .agent_artifact_definition import AgentArtifactDefinition +from .approval_options import ApprovalOptions +from .artifact import Artifact +from .artifact_metadata import ArtifactMetadata +from .artifact_source_reference import ArtifactSourceReference +from .artifact_type_definition import ArtifactTypeDefinition +from .artifact_version import ArtifactVersion +from .artifact_version_query_result import ArtifactVersionQueryResult +from .auto_trigger_issue import AutoTriggerIssue +from .build_version import BuildVersion +from .change import Change +from .condition import Condition +from .configuration_variable_value import ConfigurationVariableValue +from .data_source_binding_base import DataSourceBindingBase +from .definition_environment_reference import DefinitionEnvironmentReference +from .deployment import Deployment +from .deployment_attempt import DeploymentAttempt +from .deployment_job import DeploymentJob +from .deployment_query_parameters import DeploymentQueryParameters +from .deploy_phase import DeployPhase +from .email_recipients import EmailRecipients +from .environment_execution_policy import EnvironmentExecutionPolicy +from .environment_options import EnvironmentOptions +from .environment_retention_policy import EnvironmentRetentionPolicy +from .favorite_item import FavoriteItem +from .folder import Folder +from .identity_ref import IdentityRef +from .input_descriptor import InputDescriptor +from .input_validation import InputValidation +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .input_values_query import InputValuesQuery +from .issue import Issue +from .mail_message import MailMessage +from .manual_intervention import ManualIntervention +from .manual_intervention_update_metadata import ManualInterventionUpdateMetadata +from .metric import Metric +from .process_parameters import ProcessParameters +from .project_reference import ProjectReference +from .queued_release_data import QueuedReleaseData +from .reference_links import ReferenceLinks +from .release import Release +from .release_approval import ReleaseApproval +from .release_approval_history import ReleaseApprovalHistory +from .release_condition import ReleaseCondition +from .release_definition import ReleaseDefinition +from .release_definition_approvals import ReleaseDefinitionApprovals +from .release_definition_approval_step import ReleaseDefinitionApprovalStep +from .release_definition_deploy_step import ReleaseDefinitionDeployStep +from .release_definition_environment import ReleaseDefinitionEnvironment +from .release_definition_environment_step import ReleaseDefinitionEnvironmentStep +from .release_definition_environment_summary import ReleaseDefinitionEnvironmentSummary +from .release_definition_environment_template import ReleaseDefinitionEnvironmentTemplate +from .release_definition_revision import ReleaseDefinitionRevision +from .release_definition_shallow_reference import ReleaseDefinitionShallowReference +from .release_definition_summary import ReleaseDefinitionSummary +from .release_deploy_phase import ReleaseDeployPhase +from .release_environment import ReleaseEnvironment +from .release_environment_shallow_reference import ReleaseEnvironmentShallowReference +from .release_environment_update_metadata import ReleaseEnvironmentUpdateMetadata +from .release_reference import ReleaseReference +from .release_revision import ReleaseRevision +from .release_schedule import ReleaseSchedule +from .release_settings import ReleaseSettings +from .release_shallow_reference import ReleaseShallowReference +from .release_start_metadata import ReleaseStartMetadata +from .release_task import ReleaseTask +from .release_trigger_base import ReleaseTriggerBase +from .release_update_metadata import ReleaseUpdateMetadata +from .release_work_item_ref import ReleaseWorkItemRef +from .retention_policy import RetentionPolicy +from .retention_settings import RetentionSettings +from .summary_mail_section import SummaryMailSection +from .task_input_definition_base import TaskInputDefinitionBase +from .task_input_validation import TaskInputValidation +from .task_source_definition_base import TaskSourceDefinitionBase +from .variable_group import VariableGroup +from .variable_group_provider_data import VariableGroupProviderData +from .variable_value import VariableValue +from .workflow_task import WorkflowTask +from .workflow_task_reference import WorkflowTaskReference + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'DeployPhase', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'FavoriteItem', + 'Folder', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTriggerBase', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', +] diff --git a/vsts/vsts/release/v4_0/models/agent_artifact_definition.py b/vsts/vsts/release/v4_0/models/agent_artifact_definition.py new file mode 100644 index 00000000..8e2ec362 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/agent_artifact_definition.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentArtifactDefinition(Model): + """AgentArtifactDefinition. + + :param alias: + :type alias: str + :param artifact_type: + :type artifact_type: object + :param details: + :type details: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'object'}, + 'details': {'key': 'details', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): + super(AgentArtifactDefinition, self).__init__() + self.alias = alias + self.artifact_type = artifact_type + self.details = details + self.name = name + self.version = version diff --git a/vsts/vsts/release/v4_0/models/approval_options.py b/vsts/vsts/release/v4_0/models/approval_options.py new file mode 100644 index 00000000..088817f9 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/approval_options.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ApprovalOptions(Model): + """ApprovalOptions. + + :param auto_triggered_and_previous_environment_approved_can_be_skipped: + :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool + :param enforce_identity_revalidation: + :type enforce_identity_revalidation: bool + :param release_creator_can_be_approver: + :type release_creator_can_be_approver: bool + :param required_approver_count: + :type required_approver_count: int + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, + 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, + 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, + 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): + super(ApprovalOptions, self).__init__() + self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped + self.enforce_identity_revalidation = enforce_identity_revalidation + self.release_creator_can_be_approver = release_creator_can_be_approver + self.required_approver_count = required_approver_count + self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_0/models/artifact.py b/vsts/vsts/release/v4_0/models/artifact.py new file mode 100644 index 00000000..4bdf46a5 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/artifact.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Artifact(Model): + """Artifact. + + :param alias: Gets or sets alias. + :type alias: str + :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} + :type definition_reference: dict + :param is_primary: Gets or sets as artifact is primary or not. + :type is_primary: bool + :param source_id: + :type source_id: str + :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. + :type type: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): + super(Artifact, self).__init__() + self.alias = alias + self.definition_reference = definition_reference + self.is_primary = is_primary + self.source_id = source_id + self.type = type diff --git a/vsts/vsts/release/v4_0/models/artifact_metadata.py b/vsts/vsts/release/v4_0/models/artifact_metadata.py new file mode 100644 index 00000000..0e27dc22 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/artifact_metadata.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactMetadata(Model): + """ArtifactMetadata. + + :param alias: Sets alias of artifact. + :type alias: str + :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. + :type instance_reference: :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} + } + + def __init__(self, alias=None, instance_reference=None): + super(ArtifactMetadata, self).__init__() + self.alias = alias + self.instance_reference = instance_reference diff --git a/vsts/vsts/release/v4_0/models/artifact_source_reference.py b/vsts/vsts/release/v4_0/models/artifact_source_reference.py new file mode 100644 index 00000000..7f1fefd8 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/artifact_source_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactSourceReference(Model): + """ArtifactSourceReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ArtifactSourceReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/release/v4_0/models/artifact_type_definition.py b/vsts/vsts/release/v4_0/models/artifact_type_definition.py new file mode 100644 index 00000000..9abc5029 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/artifact_type_definition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactTypeDefinition(Model): + """ArtifactTypeDefinition. + + :param display_name: + :type display_name: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + :param unique_source_identifier: + :type unique_source_identifier: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} + } + + def __init__(self, display_name=None, input_descriptors=None, name=None, unique_source_identifier=None): + super(ArtifactTypeDefinition, self).__init__() + self.display_name = display_name + self.input_descriptors = input_descriptors + self.name = name + self.unique_source_identifier = unique_source_identifier diff --git a/vsts/vsts/release/v4_0/models/artifact_version.py b/vsts/vsts/release/v4_0/models/artifact_version.py new file mode 100644 index 00000000..4ed1d574 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/artifact_version.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactVersion(Model): + """ArtifactVersion. + + :param alias: + :type alias: str + :param default_version: + :type default_version: :class:`BuildVersion ` + :param error_message: + :type error_message: str + :param source_id: + :type source_id: str + :param versions: + :type versions: list of :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[BuildVersion]'} + } + + def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): + super(ArtifactVersion, self).__init__() + self.alias = alias + self.default_version = default_version + self.error_message = error_message + self.source_id = source_id + self.versions = versions diff --git a/vsts/vsts/release/v4_0/models/artifact_version_query_result.py b/vsts/vsts/release/v4_0/models/artifact_version_query_result.py new file mode 100644 index 00000000..4201e360 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/artifact_version_query_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ArtifactVersionQueryResult(Model): + """ArtifactVersionQueryResult. + + :param artifact_versions: + :type artifact_versions: list of :class:`ArtifactVersion ` + """ + + _attribute_map = { + 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} + } + + def __init__(self, artifact_versions=None): + super(ArtifactVersionQueryResult, self).__init__() + self.artifact_versions = artifact_versions diff --git a/vsts/vsts/release/v4_0/models/auto_trigger_issue.py b/vsts/vsts/release/v4_0/models/auto_trigger_issue.py new file mode 100644 index 00000000..bd1c7f65 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/auto_trigger_issue.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AutoTriggerIssue(Model): + """AutoTriggerIssue. + + :param issue: + :type issue: :class:`Issue ` + :param issue_source: + :type issue_source: object + :param project: + :type project: :class:`ProjectReference ` + :param release_definition_reference: + :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` + :param release_trigger_type: + :type release_trigger_type: object + """ + + _attribute_map = { + 'issue': {'key': 'issue', 'type': 'Issue'}, + 'issue_source': {'key': 'issueSource', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} + } + + def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): + super(AutoTriggerIssue, self).__init__() + self.issue = issue + self.issue_source = issue_source + self.project = project + self.release_definition_reference = release_definition_reference + self.release_trigger_type = release_trigger_type diff --git a/vsts/vsts/release/v4_0/models/build_version.py b/vsts/vsts/release/v4_0/models/build_version.py new file mode 100644 index 00000000..519cef9b --- /dev/null +++ b/vsts/vsts/release/v4_0/models/build_version.py @@ -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.serialization import Model + + +class BuildVersion(Model): + """BuildVersion. + + :param id: + :type id: str + :param name: + :type name: str + :param source_branch: + :type source_branch: str + :param source_repository_id: + :type source_repository_id: str + :param source_repository_type: + :type source_repository_type: str + :param source_version: + :type source_version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'} + } + + def __init__(self, id=None, name=None, source_branch=None, source_repository_id=None, source_repository_type=None, source_version=None): + super(BuildVersion, self).__init__() + self.id = id + self.name = name + self.source_branch = source_branch + self.source_repository_id = source_repository_id + self.source_repository_type = source_repository_type + self.source_version = source_version diff --git a/vsts/vsts/release/v4_0/models/change.py b/vsts/vsts/release/v4_0/models/change.py new file mode 100644 index 00000000..0e46a7ee --- /dev/null +++ b/vsts/vsts/release/v4_0/models/change.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param change_type: The type of change. "commit", "changeset", etc. + :type change_type: str + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: A description of the change. This might be a commit message or changeset description. + :type message: str + :param timestamp: A timestamp for the change. + :type timestamp: datetime + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} + } + + def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, timestamp=None): + super(Change, self).__init__() + self.author = author + self.change_type = change_type + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.timestamp = timestamp diff --git a/vsts/vsts/release/v4_0/models/condition.py b/vsts/vsts/release/v4_0/models/condition.py new file mode 100644 index 00000000..6cbd8186 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/condition.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Condition(Model): + """Condition. + + :param condition_type: + :type condition_type: object + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, name=None, value=None): + super(Condition, self).__init__() + self.condition_type = condition_type + self.name = name + self.value = value diff --git a/vsts/vsts/release/v4_0/models/configuration_variable_value.py b/vsts/vsts/release/v4_0/models/configuration_variable_value.py new file mode 100644 index 00000000..4db7217a --- /dev/null +++ b/vsts/vsts/release/v4_0/models/configuration_variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ConfigurationVariableValue(Model): + """ConfigurationVariableValue. + + :param is_secret: Gets or sets as variable is secret or not. + :type is_secret: bool + :param value: Gets or sets value of the configuration variable. + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(ConfigurationVariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/release/v4_0/models/data_source_binding_base.py b/vsts/vsts/release/v4_0/models/data_source_binding_base.py new file mode 100644 index 00000000..e2c6e8d5 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/data_source_binding_base.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target diff --git a/vsts/vsts/release/v4_0/models/definition_environment_reference.py b/vsts/vsts/release/v4_0/models/definition_environment_reference.py new file mode 100644 index 00000000..06c56140 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/definition_environment_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DefinitionEnvironmentReference(Model): + """DefinitionEnvironmentReference. + + :param definition_environment_id: + :type definition_environment_id: int + :param definition_environment_name: + :type definition_environment_name: str + :param release_definition_id: + :type release_definition_id: int + :param release_definition_name: + :type release_definition_name: str + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} + } + + def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): + super(DefinitionEnvironmentReference, self).__init__() + self.definition_environment_id = definition_environment_id + self.definition_environment_name = definition_environment_name + self.release_definition_id = release_definition_id + self.release_definition_name = release_definition_name diff --git a/vsts/vsts/release/v4_0/models/deploy_phase.py b/vsts/vsts/release/v4_0/models/deploy_phase.py new file mode 100644 index 00000000..3aad99e6 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/deploy_phase.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeployPhase(Model): + """DeployPhase. + + :param name: + :type name: str + :param phase_type: + :type phase_type: object + :param rank: + :type rank: int + :param workflow_tasks: + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, name=None, phase_type=None, rank=None, workflow_tasks=None): + super(DeployPhase, self).__init__() + self.name = name + self.phase_type = phase_type + self.rank = rank + self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_0/models/deployment.py b/vsts/vsts/release/v4_0/models/deployment.py new file mode 100644 index 00000000..71018e34 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/deployment.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Deployment(Model): + """Deployment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param attempt: + :type attempt: int + :param conditions: + :type conditions: list of :class:`Condition ` + :param definition_environment_id: + :type definition_environment_id: int + :param deployment_status: + :type deployment_status: object + :param id: + :type id: int + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param operation_status: + :type operation_status: object + :param post_deploy_approvals: + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deploy_approvals: + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param queued_on: + :type queued_on: datetime + :param reason: + :type reason: object + :param release: + :type release: :class:`ReleaseReference ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param requested_by: + :type requested_by: :class:`IdentityRef ` + :param requested_for: + :type requested_for: :class:`IdentityRef ` + :param scheduled_deployment_time: + :type scheduled_deployment_time: datetime + :param started_on: + :type started_on: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, attempt=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): + super(Deployment, self).__init__() + self._links = _links + self.attempt = attempt + self.conditions = conditions + self.definition_environment_id = definition_environment_id + self.deployment_status = deployment_status + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.queued_on = queued_on + self.reason = reason + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.requested_by = requested_by + self.requested_for = requested_for + self.scheduled_deployment_time = scheduled_deployment_time + self.started_on = started_on diff --git a/vsts/vsts/release/v4_0/models/deployment_attempt.py b/vsts/vsts/release/v4_0/models/deployment_attempt.py new file mode 100644 index 00000000..106b3e43 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/deployment_attempt.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentAttempt(Model): + """DeploymentAttempt. + + :param attempt: + :type attempt: int + :param deployment_id: + :type deployment_id: int + :param error_log: Error log to show any unexpected error that occurred during executing deploy step + :type error_log: str + :param has_started: Specifies whether deployment has started or not + :type has_started: bool + :param id: + :type id: int + :param job: + :type job: :class:`ReleaseTask ` + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param operation_status: + :type operation_status: object + :param queued_on: + :type queued_on: datetime + :param reason: + :type reason: object + :param release_deploy_phases: + :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` + :param requested_by: + :type requested_by: :class:`IdentityRef ` + :param requested_for: + :type requested_for: :class:`IdentityRef ` + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'has_started': {'key': 'hasStarted', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): + super(DeploymentAttempt, self).__init__() + self.attempt = attempt + self.deployment_id = deployment_id + self.error_log = error_log + self.has_started = has_started + self.id = id + self.job = job + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.queued_on = queued_on + self.reason = reason + self.release_deploy_phases = release_deploy_phases + self.requested_by = requested_by + self.requested_for = requested_for + self.run_plan_id = run_plan_id + self.status = status + self.tasks = tasks diff --git a/vsts/vsts/release/v4_0/models/deployment_job.py b/vsts/vsts/release/v4_0/models/deployment_job.py new file mode 100644 index 00000000..562ebaba --- /dev/null +++ b/vsts/vsts/release/v4_0/models/deployment_job.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentJob(Model): + """DeploymentJob. + + :param job: + :type job: :class:`ReleaseTask ` + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, job=None, tasks=None): + super(DeploymentJob, self).__init__() + self.job = job + self.tasks = tasks diff --git a/vsts/vsts/release/v4_0/models/deployment_query_parameters.py b/vsts/vsts/release/v4_0/models/deployment_query_parameters.py new file mode 100644 index 00000000..b257efe0 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/deployment_query_parameters.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentQueryParameters(Model): + """DeploymentQueryParameters. + + :param artifact_source_id: + :type artifact_source_id: str + :param artifact_type_id: + :type artifact_type_id: str + :param artifact_versions: + :type artifact_versions: list of str + :param deployment_status: + :type deployment_status: object + :param environments: + :type environments: list of :class:`DefinitionEnvironmentReference ` + :param expands: + :type expands: object + :param is_deleted: + :type is_deleted: bool + :param latest_deployments_only: + :type latest_deployments_only: bool + :param max_deployments_per_environment: + :type max_deployments_per_environment: int + :param max_modified_time: + :type max_modified_time: datetime + :param min_modified_time: + :type min_modified_time: datetime + :param operation_status: + :type operation_status: object + :param query_order: + :type query_order: object + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, + 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, + 'expands': {'key': 'expands', 'type': 'object'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, + 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, + 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, + 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'query_order': {'key': 'queryOrder', 'type': 'object'} + } + + def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None): + super(DeploymentQueryParameters, self).__init__() + self.artifact_source_id = artifact_source_id + self.artifact_type_id = artifact_type_id + self.artifact_versions = artifact_versions + self.deployment_status = deployment_status + self.environments = environments + self.expands = expands + self.is_deleted = is_deleted + self.latest_deployments_only = latest_deployments_only + self.max_deployments_per_environment = max_deployments_per_environment + self.max_modified_time = max_modified_time + self.min_modified_time = min_modified_time + self.operation_status = operation_status + self.query_order = query_order diff --git a/vsts/vsts/release/v4_0/models/email_recipients.py b/vsts/vsts/release/v4_0/models/email_recipients.py new file mode 100644 index 00000000..349b8915 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/email_recipients.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EmailRecipients(Model): + """EmailRecipients. + + :param email_addresses: + :type email_addresses: list of str + :param tfs_ids: + :type tfs_ids: list of str + """ + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} + } + + def __init__(self, email_addresses=None, tfs_ids=None): + super(EmailRecipients, self).__init__() + self.email_addresses = email_addresses + self.tfs_ids = tfs_ids diff --git a/vsts/vsts/release/v4_0/models/environment_execution_policy.py b/vsts/vsts/release/v4_0/models/environment_execution_policy.py new file mode 100644 index 00000000..5085c836 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/environment_execution_policy.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EnvironmentExecutionPolicy(Model): + """EnvironmentExecutionPolicy. + + :param concurrency_count: This policy decides, how many environments would be with Environment Runner. + :type concurrency_count: int + :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. + :type queue_depth_count: int + """ + + _attribute_map = { + 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, + 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} + } + + def __init__(self, concurrency_count=None, queue_depth_count=None): + super(EnvironmentExecutionPolicy, self).__init__() + self.concurrency_count = concurrency_count + self.queue_depth_count = queue_depth_count diff --git a/vsts/vsts/release/v4_0/models/environment_options.py b/vsts/vsts/release/v4_0/models/environment_options.py new file mode 100644 index 00000000..e4afe484 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/environment_options.py @@ -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.serialization import Model + + +class EnvironmentOptions(Model): + """EnvironmentOptions. + + :param email_notification_type: + :type email_notification_type: str + :param email_recipients: + :type email_recipients: str + :param enable_access_token: + :type enable_access_token: bool + :param publish_deployment_status: + :type publish_deployment_status: bool + :param skip_artifacts_download: + :type skip_artifacts_download: bool + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, + 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, + 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, + 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, + 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): + super(EnvironmentOptions, self).__init__() + self.email_notification_type = email_notification_type + self.email_recipients = email_recipients + self.enable_access_token = enable_access_token + self.publish_deployment_status = publish_deployment_status + self.skip_artifacts_download = skip_artifacts_download + self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_0/models/environment_retention_policy.py b/vsts/vsts/release/v4_0/models/environment_retention_policy.py new file mode 100644 index 00000000..a391f806 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/environment_retention_policy.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EnvironmentRetentionPolicy(Model): + """EnvironmentRetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + :param releases_to_keep: + :type releases_to_keep: int + :param retain_build: + :type retain_build: bool + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, + 'retain_build': {'key': 'retainBuild', 'type': 'bool'} + } + + def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): + super(EnvironmentRetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + self.releases_to_keep = releases_to_keep + self.retain_build = retain_build diff --git a/vsts/vsts/release/v4_0/models/favorite_item.py b/vsts/vsts/release/v4_0/models/favorite_item.py new file mode 100644 index 00000000..94bdd0be --- /dev/null +++ b/vsts/vsts/release/v4_0/models/favorite_item.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FavoriteItem(Model): + """FavoriteItem. + + :param data: Application specific data for the entry + :type data: str + :param id: Unique Id of the the entry + :type id: str + :param name: Display text for favorite entry + :type name: str + :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder + :type type: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, data=None, id=None, name=None, type=None): + super(FavoriteItem, self).__init__() + self.data = data + self.id = id + self.name = name + self.type = type diff --git a/vsts/vsts/release/v4_0/models/folder.py b/vsts/vsts/release/v4_0/models/folder.py new file mode 100644 index 00000000..5d60e06d --- /dev/null +++ b/vsts/vsts/release/v4_0/models/folder.py @@ -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.serialization import Model + + +class Folder(Model): + """Folder. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param last_changed_by: + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: + :type last_changed_date: datetime + :param path: + :type path: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path diff --git a/vsts/vsts/release/v4_0/models/identity_ref.py b/vsts/vsts/release/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/release/v4_0/models/input_descriptor.py b/vsts/vsts/release/v4_0/models/input_descriptor.py new file mode 100644 index 00000000..860efdcc --- /dev/null +++ b/vsts/vsts/release/v4_0/models/input_descriptor.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values diff --git a/vsts/vsts/release/v4_0/models/input_validation.py b/vsts/vsts/release/v4_0/models/input_validation.py new file mode 100644 index 00000000..f2f1a434 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/input_validation.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/release/v4_0/models/input_value.py b/vsts/vsts/release/v4_0/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/release/v4_0/models/input_values.py b/vsts/vsts/release/v4_0/models/input_values.py new file mode 100644 index 00000000..15d047fe --- /dev/null +++ b/vsts/vsts/release/v4_0/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/release/v4_0/models/input_values_error.py b/vsts/vsts/release/v4_0/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/release/v4_0/models/input_values_query.py b/vsts/vsts/release/v4_0/models/input_values_query.py new file mode 100644 index 00000000..26e4c954 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/input_values_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource diff --git a/vsts/vsts/release/v4_0/models/issue.py b/vsts/vsts/release/v4_0/models/issue.py new file mode 100644 index 00000000..0e31522e --- /dev/null +++ b/vsts/vsts/release/v4_0/models/issue.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Issue(Model): + """Issue. + + :param issue_type: + :type issue_type: str + :param message: + :type message: str + """ + + _attribute_map = { + 'issue_type': {'key': 'issueType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, issue_type=None, message=None): + super(Issue, self).__init__() + self.issue_type = issue_type + self.message = message diff --git a/vsts/vsts/release/v4_0/models/mail_message.py b/vsts/vsts/release/v4_0/models/mail_message.py new file mode 100644 index 00000000..abaaf812 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/mail_message.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MailMessage(Model): + """MailMessage. + + :param body: + :type body: str + :param cC: + :type cC: :class:`EmailRecipients ` + :param in_reply_to: + :type in_reply_to: str + :param message_id: + :type message_id: str + :param reply_by: + :type reply_by: datetime + :param reply_to: + :type reply_to: :class:`EmailRecipients ` + :param sections: + :type sections: list of MailSectionType + :param sender_type: + :type sender_type: object + :param subject: + :type subject: str + :param to: + :type to: :class:`EmailRecipients ` + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, + 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, + 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, + 'sections': {'key': 'sections', 'type': '[MailSectionType]'}, + 'sender_type': {'key': 'senderType', 'type': 'object'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'to': {'key': 'to', 'type': 'EmailRecipients'} + } + + def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): + super(MailMessage, self).__init__() + self.body = body + self.cC = cC + self.in_reply_to = in_reply_to + self.message_id = message_id + self.reply_by = reply_by + self.reply_to = reply_to + self.sections = sections + self.sender_type = sender_type + self.subject = subject + self.to = to diff --git a/vsts/vsts/release/v4_0/models/manual_intervention.py b/vsts/vsts/release/v4_0/models/manual_intervention.py new file mode 100644 index 00000000..86d5efb2 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/manual_intervention.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ManualIntervention(Model): + """ManualIntervention. + + :param approver: + :type approver: :class:`IdentityRef ` + :param comments: + :type comments: str + :param created_on: + :type created_on: datetime + :param id: + :type id: int + :param instructions: + :type instructions: str + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param release: + :type release: :class:`ReleaseShallowReference ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param status: + :type status: object + :param task_instance_id: + :type task_instance_id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'instructions': {'key': 'instructions', 'type': 'str'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): + super(ManualIntervention, self).__init__() + self.approver = approver + self.comments = comments + self.created_on = created_on + self.id = id + self.instructions = instructions + self.modified_on = modified_on + self.name = name + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.status = status + self.task_instance_id = task_instance_id + self.url = url diff --git a/vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py b/vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py new file mode 100644 index 00000000..1358617e --- /dev/null +++ b/vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ManualInterventionUpdateMetadata(Model): + """ManualInterventionUpdateMetadata. + + :param comment: + :type comment: str + :param status: + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, status=None): + super(ManualInterventionUpdateMetadata, self).__init__() + self.comment = comment + self.status = status diff --git a/vsts/vsts/release/v4_0/models/metric.py b/vsts/vsts/release/v4_0/models/metric.py new file mode 100644 index 00000000..bb95c93e --- /dev/null +++ b/vsts/vsts/release/v4_0/models/metric.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Metric(Model): + """Metric. + + :param name: + :type name: str + :param value: + :type value: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, name=None, value=None): + super(Metric, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/release/v4_0/models/process_parameters.py b/vsts/vsts/release/v4_0/models/process_parameters.py new file mode 100644 index 00000000..f6903143 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/process_parameters.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions diff --git a/vsts/vsts/release/v4_0/models/project_reference.py b/vsts/vsts/release/v4_0/models/project_reference.py new file mode 100644 index 00000000..fee185de --- /dev/null +++ b/vsts/vsts/release/v4_0/models/project_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param id: Gets the unique identifier of this field. + :type id: str + :param name: Gets name of project. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/release/v4_0/models/queued_release_data.py b/vsts/vsts/release/v4_0/models/queued_release_data.py new file mode 100644 index 00000000..892670ff --- /dev/null +++ b/vsts/vsts/release/v4_0/models/queued_release_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QueuedReleaseData(Model): + """QueuedReleaseData. + + :param project_id: + :type project_id: str + :param queue_position: + :type queue_position: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, project_id=None, queue_position=None, release_id=None): + super(QueuedReleaseData, self).__init__() + self.project_id = project_id + self.queue_position = queue_position + self.release_id = release_id diff --git a/vsts/vsts/release/v4_0/models/reference_links.py b/vsts/vsts/release/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/release/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/release/v4_0/models/release.py b/vsts/vsts/release/v4_0/models/release.py new file mode 100644 index 00000000..e5741a08 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release.py @@ -0,0 +1,121 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Release(Model): + """Release. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_snapshot_revision: Gets revision number of definition snapshot. + :type definition_snapshot_revision: int + :param description: Gets or sets description of release. + :type description: str + :param environments: Gets list of environments. + :type environments: list of :class:`ReleaseEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param keep_forever: Whether to exclude the release from retention policies. + :type keep_forever: bool + :param logs_container_url: Gets logs container url. + :type logs_container_url: str + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param pool_name: Gets pool name. + :type pool_name: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param properties: + :type properties: :class:`object ` + :param reason: Gets reason of release. + :type reason: object + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_name_format: Gets release name format. + :type release_name_format: str + :param status: Gets status. + :type status: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param url: + :type url: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_name': {'key': 'poolName', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, url=None, variable_groups=None, variables=None): + super(Release, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.definition_snapshot_revision = definition_snapshot_revision + self.description = description + self.environments = environments + self.id = id + self.keep_forever = keep_forever + self.logs_container_url = logs_container_url + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.pool_name = pool_name + self.project_reference = project_reference + self.properties = properties + self.reason = reason + self.release_definition = release_definition + self.release_name_format = release_name_format + self.status = status + self.tags = tags + self.url = url + self.variable_groups = variable_groups + self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/release_approval.py b/vsts/vsts/release/v4_0/models/release_approval.py new file mode 100644 index 00000000..f08fdff8 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_approval.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseApproval(Model): + """ReleaseApproval. + + :param approval_type: Gets or sets the type of approval. + :type approval_type: object + :param approved_by: Gets the identity who approved. + :type approved_by: :class:`IdentityRef ` + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. + :type attempt: int + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param history: Gets history which specifies all approvals associated with this approval. + :type history: list of :class:`ReleaseApprovalHistory ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_automated: Gets or sets as approval is automated or not. + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. + :type rank: int + :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param revision: Gets the revision number. + :type revision: int + :param status: Gets or sets the status of the approval. + :type status: object + :param trial_number: + :type trial_number: int + :param url: Gets url to access the approval. + :type url: str + """ + + _attribute_map = { + 'approval_type': {'key': 'approvalType', 'type': 'object'}, + 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'}, + 'trial_number': {'key': 'trialNumber', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): + super(ReleaseApproval, self).__init__() + self.approval_type = approval_type + self.approved_by = approved_by + self.approver = approver + self.attempt = attempt + self.comments = comments + self.created_on = created_on + self.history = history + self.id = id + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.modified_on = modified_on + self.rank = rank + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.revision = revision + self.status = status + self.trial_number = trial_number + self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_approval_history.py b/vsts/vsts/release/v4_0/models/release_approval_history.py new file mode 100644 index 00000000..d0af43e9 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_approval_history.py @@ -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.serialization import Model + + +class ReleaseApprovalHistory(Model): + """ReleaseApprovalHistory. + + :param approver: + :type approver: :class:`IdentityRef ` + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param comments: + :type comments: str + :param created_on: + :type created_on: datetime + :param modified_on: + :type modified_on: datetime + :param revision: + :type revision: int + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): + super(ReleaseApprovalHistory, self).__init__() + self.approver = approver + self.changed_by = changed_by + self.comments = comments + self.created_on = created_on + self.modified_on = modified_on + self.revision = revision diff --git a/vsts/vsts/release/v4_0/models/release_condition.py b/vsts/vsts/release/v4_0/models/release_condition.py new file mode 100644 index 00000000..b5bd67cd --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_condition.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .condition import Condition + + +class ReleaseCondition(Condition): + """ReleaseCondition. + + :param condition_type: + :type condition_type: object + :param name: + :type name: str + :param value: + :type value: str + :param result: + :type result: bool + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'bool'} + } + + def __init__(self, condition_type=None, name=None, value=None, result=None): + super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) + self.result = result diff --git a/vsts/vsts/release/v4_0/models/release_definition.py b/vsts/vsts/release/v4_0/models/release_definition.py new file mode 100644 index 00000000..7b0d4930 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition.py @@ -0,0 +1,113 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinition(Model): + """ReleaseDefinition. + + :param _links: Gets links to access the release definition. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets the description. + :type description: str + :param environments: Gets or sets the list of environments. + :type environments: list of :class:`ReleaseDefinitionEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param last_release: Gets the reference of last release. + :type last_release: :class:`ReleaseReference ` + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param path: Gets or sets the path. + :type path: str + :param properties: Gets or sets properties. + :type properties: :class:`object ` + :param release_name_format: Gets or sets the release name format. + :type release_name_format: str + :param retention_policy: + :type retention_policy: :class:`RetentionPolicy ` + :param revision: Gets the revision number. + :type revision: int + :param source: Gets or sets source of release definition. + :type source: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggers: Gets or sets the list of triggers. + :type triggers: list of :class:`ReleaseTriggerBase ` + :param url: Gets url to access the release definition. + :type url: str + :param variable_groups: Gets or sets the list of variable groups. + :type variable_groups: list of int + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[ReleaseTriggerBase]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): + super(ReleaseDefinition, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.description = description + self.environments = environments + self.id = id + self.last_release = last_release + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.path = path + self.properties = properties + self.release_name_format = release_name_format + self.retention_policy = retention_policy + self.revision = revision + self.source = source + self.tags = tags + self.triggers = triggers + self.url = url + self.variable_groups = variable_groups + self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/release_definition_approval_step.py b/vsts/vsts/release/v4_0/models/release_definition_approval_step.py new file mode 100644 index 00000000..bd56c822 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_approval_step.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep + + +class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionApprovalStep. + + :param id: + :type id: int + :param approver: + :type approver: :class:`IdentityRef ` + :param is_automated: + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param rank: + :type rank: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): + super(ReleaseDefinitionApprovalStep, self).__init__(id=id) + self.approver = approver + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.rank = rank diff --git a/vsts/vsts/release/v4_0/models/release_definition_approvals.py b/vsts/vsts/release/v4_0/models/release_definition_approvals.py new file mode 100644 index 00000000..765f7708 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_approvals.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionApprovals(Model): + """ReleaseDefinitionApprovals. + + :param approval_options: + :type approval_options: :class:`ApprovalOptions ` + :param approvals: + :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` + """ + + _attribute_map = { + 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, + 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} + } + + def __init__(self, approval_options=None, approvals=None): + super(ReleaseDefinitionApprovals, self).__init__() + self.approval_options = approval_options + self.approvals = approvals diff --git a/vsts/vsts/release/v4_0/models/release_definition_deploy_step.py b/vsts/vsts/release/v4_0/models/release_definition_deploy_step.py new file mode 100644 index 00000000..ecad0f43 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_deploy_step.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep + + +class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionDeployStep. + + :param id: + :type id: int + :param tasks: The list of steps for this definition. + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, id=None, tasks=None): + super(ReleaseDefinitionDeployStep, self).__init__(id=id) + self.tasks = tasks diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment.py b/vsts/vsts/release/v4_0/models/release_definition_environment.py new file mode 100644 index 00000000..6238a3e7 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_environment.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironment(Model): + """ReleaseDefinitionEnvironment. + + :param conditions: + :type conditions: list of :class:`Condition ` + :param demands: + :type demands: list of :class:`object ` + :param deploy_phases: + :type deploy_phases: list of :class:`DeployPhase ` + :param deploy_step: + :type deploy_step: :class:`ReleaseDefinitionDeployStep ` + :param environment_options: + :type environment_options: :class:`EnvironmentOptions ` + :param execution_policy: + :type execution_policy: :class:`EnvironmentExecutionPolicy ` + :param id: + :type id: int + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param post_deploy_approvals: + :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: + :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param process_parameters: + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param queue_id: + :type queue_id: int + :param rank: + :type rank: int + :param retention_policy: + :type retention_policy: :class:`EnvironmentRetentionPolicy ` + :param run_options: + :type run_options: dict + :param schedules: + :type schedules: list of :class:`ReleaseSchedule ` + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[DeployPhase]'}, + 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'run_options': {'key': 'runOptions', 'type': '{str}'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, pre_deploy_approvals=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variables=None): + super(ReleaseDefinitionEnvironment, self).__init__() + self.conditions = conditions + self.demands = demands + self.deploy_phases = deploy_phases + self.deploy_step = deploy_step + self.environment_options = environment_options + self.execution_policy = execution_policy + self.id = id + self.name = name + self.owner = owner + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.process_parameters = process_parameters + self.properties = properties + self.queue_id = queue_id + self.rank = rank + self.retention_policy = retention_policy + self.run_options = run_options + self.schedules = schedules + self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment_step.py b/vsts/vsts/release/v4_0/models/release_definition_environment_step.py new file mode 100644 index 00000000..f013f154 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_environment_step.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironmentStep(Model): + """ReleaseDefinitionEnvironmentStep. + + :param id: + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(ReleaseDefinitionEnvironmentStep, self).__init__() + self.id = id diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment_summary.py b/vsts/vsts/release/v4_0/models/release_definition_environment_summary.py new file mode 100644 index 00000000..337ca819 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_environment_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironmentSummary(Model): + """ReleaseDefinitionEnvironmentSummary. + + :param id: + :type id: int + :param last_releases: + :type last_releases: list of :class:`ReleaseShallowReference ` + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, last_releases=None, name=None): + super(ReleaseDefinitionEnvironmentSummary, self).__init__() + self.id = id + self.last_releases = last_releases + self.name = name diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment_template.py b/vsts/vsts/release/v4_0/models/release_definition_environment_template.py new file mode 100644 index 00000000..203f2634 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_environment_template.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionEnvironmentTemplate(Model): + """ReleaseDefinitionEnvironmentTemplate. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param description: + :type description: str + :param environment: + :type environment: :class:`ReleaseDefinitionEnvironment ` + :param icon_task_id: + :type icon_task_id: str + :param icon_uri: + :type icon_uri: str + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, name=None): + super(ReleaseDefinitionEnvironmentTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.environment = environment + self.icon_task_id = icon_task_id + self.icon_uri = icon_uri + self.id = id + self.name = name diff --git a/vsts/vsts/release/v4_0/models/release_definition_revision.py b/vsts/vsts/release/v4_0/models/release_definition_revision.py new file mode 100644 index 00000000..1235a505 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_revision.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionRevision(Model): + """ReleaseDefinitionRevision. + + :param api_version: Gets api-version for revision object. + :type api_version: str + :param changed_by: Gets the identity who did change. + :type changed_by: :class:`IdentityRef ` + :param changed_date: Gets date on which it got changed. + :type changed_date: datetime + :param change_type: Gets type of change. + :type change_type: object + :param comment: Gets comments for revision. + :type comment: str + :param definition_id: Get id of the definition. + :type definition_id: int + :param definition_url: Gets definition url. + :type definition_url: str + :param revision: Get revision number of the definition. + :type revision: int + """ + + _attribute_map = { + 'api_version': {'key': 'apiVersion', 'type': 'str'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): + super(ReleaseDefinitionRevision, self).__init__() + self.api_version = api_version + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_id = definition_id + self.definition_url = definition_url + self.revision = revision diff --git a/vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py b/vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py new file mode 100644 index 00000000..cab430f1 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionShallowReference(Model): + """ReleaseDefinitionShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param url: Gets the REST API url to access the release definition. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseDefinitionShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_definition_summary.py b/vsts/vsts/release/v4_0/models/release_definition_summary.py new file mode 100644 index 00000000..49c53def --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_definition_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDefinitionSummary(Model): + """ReleaseDefinitionSummary. + + :param environments: + :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param releases: + :type releases: list of :class:`Release ` + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'releases': {'key': 'releases', 'type': '[Release]'} + } + + def __init__(self, environments=None, release_definition=None, releases=None): + super(ReleaseDefinitionSummary, self).__init__() + self.environments = environments + self.release_definition = release_definition + self.releases = releases diff --git a/vsts/vsts/release/v4_0/models/release_deploy_phase.py b/vsts/vsts/release/v4_0/models/release_deploy_phase.py new file mode 100644 index 00000000..cda1082e --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_deploy_phase.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseDeployPhase(Model): + """ReleaseDeployPhase. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param error_log: + :type error_log: str + :param id: + :type id: int + :param manual_interventions: + :type manual_interventions: list of :class:`ManualIntervention ` + :param phase_type: + :type phase_type: object + :param rank: + :type rank: int + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, phase_type=None, rank=None, run_plan_id=None, status=None): + super(ReleaseDeployPhase, self).__init__() + self.deployment_jobs = deployment_jobs + self.error_log = error_log + self.id = id + self.manual_interventions = manual_interventions + self.phase_type = phase_type + self.rank = rank + self.run_plan_id = run_plan_id + self.status = status diff --git a/vsts/vsts/release/v4_0/models/release_environment.py b/vsts/vsts/release/v4_0/models/release_environment.py new file mode 100644 index 00000000..252252e5 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_environment.py @@ -0,0 +1,145 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironment(Model): + """ReleaseEnvironment. + + :param conditions: Gets list of conditions. + :type conditions: list of :class:`ReleaseCondition ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_environment_id: Gets definition environment id. + :type definition_environment_id: int + :param demands: Gets demands. + :type demands: list of :class:`object ` + :param deploy_phases_snapshot: Gets list of deploy phases snapshot. + :type deploy_phases_snapshot: list of :class:`DeployPhase ` + :param deploy_steps: Gets deploy steps. + :type deploy_steps: list of :class:`DeploymentAttempt ` + :param environment_options: Gets environment options. + :type environment_options: :class:`EnvironmentOptions ` + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param next_scheduled_utc_time: Gets next scheduled UTC time. + :type next_scheduled_utc_time: datetime + :param owner: Gets the identity who is owner for release environment. + :type owner: :class:`IdentityRef ` + :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. + :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param post_deploy_approvals: Gets list of post deploy approvals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. + :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: Gets list of pre deploy approvals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param process_parameters: Gets process parameters. + :type process_parameters: :class:`ProcessParameters ` + :param queue_id: Gets queue id. + :type queue_id: int + :param rank: Gets rank. + :type rank: int + :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_created_by: Gets the identity who created release. + :type release_created_by: :class:`IdentityRef ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_description: Gets release description. + :type release_description: str + :param release_id: Gets release id. + :type release_id: int + :param scheduled_deployment_time: Gets schedule deployment time of release environment. + :type scheduled_deployment_time: datetime + :param schedules: Gets list of schedules. + :type schedules: list of :class:`ReleaseSchedule ` + :param status: Gets environment status. + :type status: object + :param time_to_deploy: Gets time to deploy. + :type time_to_deploy: number + :param trigger_reason: Gets trigger reason. + :type trigger_reason: str + :param variables: Gets the dictionary of variables. + :type variables: dict + :param workflow_tasks: Gets list of workflow tasks. + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[DeployPhase]'}, + 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_description': {'key': 'releaseDescription', 'type': 'str'}, + 'release_id': {'key': 'releaseId', 'type': 'int'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'status': {'key': 'status', 'type': 'object'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'number'}, + 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variables=None, workflow_tasks=None): + super(ReleaseEnvironment, self).__init__() + self.conditions = conditions + self.created_on = created_on + self.definition_environment_id = definition_environment_id + self.demands = demands + self.deploy_phases_snapshot = deploy_phases_snapshot + self.deploy_steps = deploy_steps + self.environment_options = environment_options + self.id = id + self.modified_on = modified_on + self.name = name + self.next_scheduled_utc_time = next_scheduled_utc_time + self.owner = owner + self.post_approvals_snapshot = post_approvals_snapshot + self.post_deploy_approvals = post_deploy_approvals + self.pre_approvals_snapshot = pre_approvals_snapshot + self.pre_deploy_approvals = pre_deploy_approvals + self.process_parameters = process_parameters + self.queue_id = queue_id + self.rank = rank + self.release = release + self.release_created_by = release_created_by + self.release_definition = release_definition + self.release_description = release_description + self.release_id = release_id + self.scheduled_deployment_time = scheduled_deployment_time + self.schedules = schedules + self.status = status + self.time_to_deploy = time_to_deploy + self.trigger_reason = trigger_reason + self.variables = variables + self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py b/vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py new file mode 100644 index 00000000..e1f0ca55 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironmentShallowReference(Model): + """ReleaseEnvironmentShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release environment. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release environment. + :type id: int + :param name: Gets or sets the name of the release environment. + :type name: str + :param url: Gets the REST API url to access the release environment. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseEnvironmentShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_environment_update_metadata.py b/vsts/vsts/release/v4_0/models/release_environment_update_metadata.py new file mode 100644 index 00000000..df5c0fed --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_environment_update_metadata.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironmentUpdateMetadata(Model): + """ReleaseEnvironmentUpdateMetadata. + + :param comment: Gets or sets comment. + :type comment: str + :param scheduled_deployment_time: Gets or sets scheduled deployment time. + :type scheduled_deployment_time: datetime + :param status: Gets or sets status of environment. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, scheduled_deployment_time=None, status=None): + super(ReleaseEnvironmentUpdateMetadata, self).__init__() + self.comment = comment + self.scheduled_deployment_time = scheduled_deployment_time + self.status = status diff --git a/vsts/vsts/release/v4_0/models/release_reference.py b/vsts/vsts/release/v4_0/models/release_reference.py new file mode 100644 index 00000000..7dc00b17 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_reference.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseReference(Model): + """ReleaseReference. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param created_by: Gets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param name: Gets name of release. + :type name: str + :param reason: Gets reason for release. + :type reason: object + :param release_definition: Gets release definition shallow reference. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param url: + :type url: str + :param web_access_uri: + :type web_access_uri: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} + } + + def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): + super(ReleaseReference, self).__init__() + self._links = _links + self.artifacts = artifacts + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.name = name + self.reason = reason + self.release_definition = release_definition + self.url = url + self.web_access_uri = web_access_uri diff --git a/vsts/vsts/release/v4_0/models/release_revision.py b/vsts/vsts/release/v4_0/models/release_revision.py new file mode 100644 index 00000000..437dc373 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_revision.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseRevision(Model): + """ReleaseRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_details: + :type change_details: str + :param change_type: + :type change_type: str + :param comment: + :type comment: str + :param definition_snapshot_revision: + :type definition_snapshot_revision: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_details': {'key': 'changeDetails', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): + super(ReleaseRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_details = change_details + self.change_type = change_type + self.comment = comment + self.definition_snapshot_revision = definition_snapshot_revision + self.release_id = release_id diff --git a/vsts/vsts/release/v4_0/models/release_schedule.py b/vsts/vsts/release/v4_0/models/release_schedule.py new file mode 100644 index 00000000..ac0b3f86 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_schedule.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseSchedule(Model): + """ReleaseSchedule. + + :param days_to_release: Days of the week to release + :type days_to_release: object + :param job_id: Team Foundation Job Definition Job Id + :type job_id: str + :param start_hours: Local time zone hour to start + :type start_hours: int + :param start_minutes: Local time zone minute to start + :type start_minutes: int + :param time_zone_id: Time zone Id of release schedule, such as 'UTC' + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(ReleaseSchedule, self).__init__() + self.days_to_release = days_to_release + self.job_id = job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id diff --git a/vsts/vsts/release/v4_0/models/release_settings.py b/vsts/vsts/release/v4_0/models/release_settings.py new file mode 100644 index 00000000..b139d649 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseSettings(Model): + """ReleaseSettings. + + :param retention_settings: + :type retention_settings: :class:`RetentionSettings ` + """ + + _attribute_map = { + 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} + } + + def __init__(self, retention_settings=None): + super(ReleaseSettings, self).__init__() + self.retention_settings = retention_settings diff --git a/vsts/vsts/release/v4_0/models/release_shallow_reference.py b/vsts/vsts/release/v4_0/models/release_shallow_reference.py new file mode 100644 index 00000000..172de396 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_shallow_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseShallowReference(Model): + """ReleaseShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release. + :type id: int + :param name: Gets or sets the name of the release. + :type name: str + :param url: Gets the REST API url to access the release. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_start_metadata.py b/vsts/vsts/release/v4_0/models/release_start_metadata.py new file mode 100644 index 00000000..626534c8 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_start_metadata.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseStartMetadata(Model): + """ReleaseStartMetadata. + + :param artifacts: Sets list of artifact to create a release. + :type artifacts: list of :class:`ArtifactMetadata ` + :param definition_id: Sets definition Id to create a release. + :type definition_id: int + :param description: Sets description to create a release. + :type description: str + :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. + :type is_draft: bool + :param manual_environments: Sets list of environments to manual as condition. + :type manual_environments: list of str + :param properties: + :type properties: :class:`object ` + :param reason: Sets reason to create a release. + :type reason: object + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'} + } + + def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): + super(ReleaseStartMetadata, self).__init__() + self.artifacts = artifacts + self.definition_id = definition_id + self.description = description + self.is_draft = is_draft + self.manual_environments = manual_environments + self.properties = properties + self.reason = reason diff --git a/vsts/vsts/release/v4_0/models/release_task.py b/vsts/vsts/release/v4_0/models/release_task.py new file mode 100644 index 00000000..153b051a --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_task.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseTask(Model): + """ReleaseTask. + + :param agent_name: + :type agent_name: str + :param date_ended: + :type date_ended: datetime + :param date_started: + :type date_started: datetime + :param finish_time: + :type finish_time: datetime + :param id: + :type id: int + :param issues: + :type issues: list of :class:`Issue ` + :param line_count: + :type line_count: long + :param log_url: + :type log_url: str + :param name: + :type name: str + :param percent_complete: + :type percent_complete: int + :param rank: + :type rank: int + :param start_time: + :type start_time: datetime + :param status: + :type status: object + :param task: + :type task: :class:`WorkflowTaskReference ` + :param timeline_record_id: + :type timeline_record_id: str + """ + + _attribute_map = { + 'agent_name': {'key': 'agentName', 'type': 'str'}, + 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, + 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'log_url': {'key': 'logUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, + 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} + } + + def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): + super(ReleaseTask, self).__init__() + self.agent_name = agent_name + self.date_ended = date_ended + self.date_started = date_started + self.finish_time = finish_time + self.id = id + self.issues = issues + self.line_count = line_count + self.log_url = log_url + self.name = name + self.percent_complete = percent_complete + self.rank = rank + self.start_time = start_time + self.status = status + self.task = task + self.timeline_record_id = timeline_record_id diff --git a/vsts/vsts/release/v4_0/models/release_trigger_base.py b/vsts/vsts/release/v4_0/models/release_trigger_base.py new file mode 100644 index 00000000..30c36fb3 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_trigger_base.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseTriggerBase(Model): + """ReleaseTriggerBase. + + :param trigger_type: + :type trigger_type: object + """ + + _attribute_map = { + 'trigger_type': {'key': 'triggerType', 'type': 'object'} + } + + def __init__(self, trigger_type=None): + super(ReleaseTriggerBase, self).__init__() + self.trigger_type = trigger_type diff --git a/vsts/vsts/release/v4_0/models/release_update_metadata.py b/vsts/vsts/release/v4_0/models/release_update_metadata.py new file mode 100644 index 00000000..24cad449 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_update_metadata.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseUpdateMetadata(Model): + """ReleaseUpdateMetadata. + + :param comment: Sets comment for release. + :type comment: str + :param keep_forever: Set 'true' to exclude the release from retention policies. + :type keep_forever: bool + :param manual_environments: Sets list of manual environments. + :type manual_environments: list of str + :param status: Sets status of the release. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): + super(ReleaseUpdateMetadata, self).__init__() + self.comment = comment + self.keep_forever = keep_forever + self.manual_environments = manual_environments + self.status = status diff --git a/vsts/vsts/release/v4_0/models/release_work_item_ref.py b/vsts/vsts/release/v4_0/models/release_work_item_ref.py new file mode 100644 index 00000000..9891d5a0 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/release_work_item_ref.py @@ -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.serialization import Model + + +class ReleaseWorkItemRef(Model): + """ReleaseWorkItemRef. + + :param assignee: + :type assignee: str + :param id: + :type id: str + :param state: + :type state: str + :param title: + :type title: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'assignee': {'key': 'assignee', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): + super(ReleaseWorkItemRef, self).__init__() + self.assignee = assignee + self.id = id + self.state = state + self.title = title + self.type = type + self.url = url diff --git a/vsts/vsts/release/v4_0/models/retention_policy.py b/vsts/vsts/release/v4_0/models/retention_policy.py new file mode 100644 index 00000000..e070b170 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/retention_policy.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} + } + + def __init__(self, days_to_keep=None): + super(RetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep diff --git a/vsts/vsts/release/v4_0/models/retention_settings.py b/vsts/vsts/release/v4_0/models/retention_settings.py new file mode 100644 index 00000000..a2a23aa1 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/retention_settings.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RetentionSettings(Model): + """RetentionSettings. + + :param days_to_keep_deleted_releases: + :type days_to_keep_deleted_releases: int + :param default_environment_retention_policy: + :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + :param maximum_environment_retention_policy: + :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, + 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): + super(RetentionSettings, self).__init__() + self.days_to_keep_deleted_releases = days_to_keep_deleted_releases + self.default_environment_retention_policy = default_environment_retention_policy + self.maximum_environment_retention_policy = maximum_environment_retention_policy diff --git a/vsts/vsts/release/v4_0/models/summary_mail_section.py b/vsts/vsts/release/v4_0/models/summary_mail_section.py new file mode 100644 index 00000000..b8f6a8ea --- /dev/null +++ b/vsts/vsts/release/v4_0/models/summary_mail_section.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SummaryMailSection(Model): + """SummaryMailSection. + + :param html_content: + :type html_content: str + :param rank: + :type rank: int + :param section_type: + :type section_type: object + :param title: + :type title: str + """ + + _attribute_map = { + 'html_content': {'key': 'htmlContent', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'section_type': {'key': 'sectionType', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, html_content=None, rank=None, section_type=None, title=None): + super(SummaryMailSection, self).__init__() + self.html_content = html_content + self.rank = rank + self.section_type = section_type + self.title = title diff --git a/vsts/vsts/release/v4_0/models/task_input_definition_base.py b/vsts/vsts/release/v4_0/models/task_input_definition_base.py new file mode 100644 index 00000000..1f33183e --- /dev/null +++ b/vsts/vsts/release/v4_0/models/task_input_definition_base.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule diff --git a/vsts/vsts/release/v4_0/models/task_input_validation.py b/vsts/vsts/release/v4_0/models/task_input_validation.py new file mode 100644 index 00000000..42524013 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/task_input_validation.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message diff --git a/vsts/vsts/release/v4_0/models/task_source_definition_base.py b/vsts/vsts/release/v4_0/models/task_source_definition_base.py new file mode 100644 index 00000000..c8a6b6d6 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/task_source_definition_base.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target diff --git a/vsts/vsts/release/v4_0/models/variable_group.py b/vsts/vsts/release/v4_0/models/variable_group.py new file mode 100644 index 00000000..827408a1 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/variable_group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets name. + :type name: str + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type. + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/variable_group_provider_data.py b/vsts/vsts/release/v4_0/models/variable_group_provider_data.py new file mode 100644 index 00000000..b86942f1 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/variable_group_provider_data.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/release/v4_0/models/variable_value.py b/vsts/vsts/release/v4_0/models/variable_value.py new file mode 100644 index 00000000..035049c0 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/release/v4_0/models/workflow_task.py b/vsts/vsts/release/v4_0/models/workflow_task.py new file mode 100644 index 00000000..14ef134c --- /dev/null +++ b/vsts/vsts/release/v4_0/models/workflow_task.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkflowTask(Model): + """WorkflowTask. + + :param always_run: + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: + :type continue_on_error: bool + :param definition_type: + :type definition_type: str + :param enabled: + :type enabled: bool + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param override_inputs: + :type override_inputs: dict + :param ref_name: + :type ref_name: str + :param task_id: + :type task_id: str + :param timeout_in_minutes: + :type timeout_in_minutes: int + :param version: + :type version: str + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): + super(WorkflowTask, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.definition_type = definition_type + self.enabled = enabled + self.inputs = inputs + self.name = name + self.override_inputs = override_inputs + self.ref_name = ref_name + self.task_id = task_id + self.timeout_in_minutes = timeout_in_minutes + self.version = version diff --git a/vsts/vsts/release/v4_0/models/workflow_task_reference.py b/vsts/vsts/release/v4_0/models/workflow_task_reference.py new file mode 100644 index 00000000..0a99eab3 --- /dev/null +++ b/vsts/vsts/release/v4_0/models/workflow_task_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkflowTaskReference(Model): + """WorkflowTaskReference. + + :param id: + :type id: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(WorkflowTaskReference, self).__init__() + self.id = id + self.name = name + self.version = version diff --git a/vsts/vsts/release/v4_0/release_client.py b/vsts/vsts/release/v4_0/release_client.py new file mode 100644 index 00000000..b467a542 --- /dev/null +++ b/vsts/vsts/release/v4_0/release_client.py @@ -0,0 +1,1694 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ReleaseClient(VssClient): + """Release + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ReleaseClient, 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_agent_artifact_definitions(self, project, release_id): + """GetAgentArtifactDefinitions. + [Preview API] Returns the artifact details that automation agent requires + :param str project: Project ID or project name + :param int release_id: + :rtype: [AgentArtifactDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='f2571c27-bf50-4938-b396-32d109ddef26', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[AgentArtifactDefinition]', response) + + def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): + """GetApprovals. + [Preview API] Get a list of approvals + :param str project: Project ID or project name + :param str assigned_to_filter: Approvals assigned to this user. + :param str status_filter: Approvals with this status. Default is 'pending'. + :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. + :param str type_filter: Approval with this type. + :param int top: Number of approvals to get. Default is 50. + :param int continuation_token: Gets the approvals after the continuation token provided. + :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. + :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if assigned_to_filter is not None: + query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if release_ids_filter is not None: + release_ids_filter = ",".join(map(str, release_ids_filter)) + query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') + if type_filter is not None: + query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if include_my_group_approvals is not None: + query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') + response = self._send(http_method='GET', + location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ReleaseApproval]', response) + + def get_approval_history(self, project, approval_step_id): + """GetApprovalHistory. + [Preview API] Get approval history. + :param str project: Project ID or project name + :param int approval_step_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_step_id is not None: + route_values['approvalStepId'] = self._serialize.url('approval_step_id', approval_step_id, 'int') + response = self._send(http_method='GET', + location_id='250c7158-852e-4130-a00f-a0cce9b72d05', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ReleaseApproval', response) + + def get_approval(self, project, approval_id, include_history=None): + """GetApproval. + [Preview API] Get an approval. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :param bool include_history: 'true' to include history of the approval. Default is 'false'. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + query_parameters = {} + if include_history is not None: + query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') + response = self._send(http_method='GET', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseApproval', response) + + def update_release_approval(self, approval, project, approval_id): + """UpdateReleaseApproval. + [Preview API] Update status of an approval + :param :class:` ` approval: ReleaseApproval object having status, approver and comments. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + content = self._serialize.body(approval, 'ReleaseApproval') + response = self._send(http_method='PATCH', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReleaseApproval', response) + + def update_release_approvals(self, approvals, project): + """UpdateReleaseApprovals. + [Preview API] + :param [ReleaseApproval] approvals: + :param str project: Project ID or project name + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(approvals, '[ReleaseApproval]') + response = self._send(http_method='PATCH', + location_id='c957584a-82aa-4131-8222-6d47f78bfa7a', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[ReleaseApproval]', response) + + def get_auto_trigger_issues(self, artifact_type, source_id, artifact_version_id): + """GetAutoTriggerIssues. + [Preview API] + :param str artifact_type: + :param str source_id: + :param str artifact_version_id: + :rtype: [AutoTriggerIssue] + """ + query_parameters = {} + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + response = self._send(http_method='GET', + location_id='c1a68497-69da-40fb-9423-cab19cfeeca9', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[AutoTriggerIssue]', response) + + def get_release_changes(self, project, release_id, base_release_id=None, top=None): + """GetReleaseChanges. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int base_release_id: + :param int top: + :rtype: [Change] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if base_release_id is not None: + query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='8dcf9fe9-ca37-4113-8ee1-37928e98407c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Change]', response) + + def get_definition_environments(self, project, task_group_id=None, property_filters=None): + """GetDefinitionEnvironments. + [Preview API] + :param str project: Project ID or project name + :param str task_group_id: + :param [str] property_filters: + :rtype: [DefinitionEnvironmentReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if task_group_id is not None: + query_parameters['taskGroupId'] = self._serialize.query('task_group_id', task_group_id, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='12b5d21a-f54c-430e-a8c1-7515d196890e', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DefinitionEnvironmentReference]', response) + + def create_release_definition(self, release_definition, project): + """CreateReleaseDefinition. + [Preview API] Create a release definition + :param :class:` ` release_definition: release definition object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='POST', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def delete_release_definition(self, project, definition_id): + """DeleteReleaseDefinition. + [Preview API] Delete a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + self._send(http_method='DELETE', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values) + + def get_release_definition(self, project, definition_id, property_filters=None): + """GetReleaseDefinition. + [Preview API] Get a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinition', response) + + def get_release_definition_revision(self, project, definition_id, revision): + """GetReleaseDefinitionRevision. + [Preview API] Get release definition of a given revision. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param int revision: Revision number of the release definition. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if revision is not None: + query_parameters['revision'] = self._serialize.query('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None): + """GetReleaseDefinitions. + [Preview API] Get a list of release definitions. + :param str project: Project ID or project name + :param str search_text: Get release definitions with names starting with searchText. + :param str expand: The properties that should be expanded in the list of Release definitions. + :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param int top: Number of release definitions to get. + :param str continuation_token: Gets the release definitions after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. + :param str path: Gets the release definitions under the specified path. + :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. + :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. + :rtype: [ReleaseDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if is_exact_name_match is not None: + query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if definition_id_filter is not None: + definition_id_filter = ",".join(definition_id_filter) + query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ReleaseDefinition]', response) + + def update_release_definition(self, release_definition, project): + """UpdateReleaseDefinition. + [Preview API] Update a release definition. + :param :class:` ` release_definition: Release definition object to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='PUT', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None): + """GetDeployments. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :param int definition_environment_id: + :param str created_by: + :param datetime min_modified_time: + :param datetime max_modified_time: + :param str deployment_status: + :param str operation_status: + :param bool latest_attempts_only: + :param str query_order: + :param int top: + :param int continuation_token: + :param str created_for: + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if min_modified_time is not None: + query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') + if max_modified_time is not None: + query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') + if deployment_status is not None: + query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') + if operation_status is not None: + query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') + if latest_attempts_only is not None: + query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if created_for is not None: + query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + response = self._send(http_method='GET', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Deployment]', response) + + def get_deployments_for_multiple_environments(self, query_parameters, project): + """GetDeploymentsForMultipleEnvironments. + [Preview API] + :param :class:` ` query_parameters: + :param str project: Project ID or project name + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query_parameters, 'DeploymentQueryParameters') + response = self._send(http_method='POST', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[Deployment]', response) + + def get_release_environment(self, project, release_id, environment_id): + """GetReleaseEnvironment. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + response = self._send(http_method='GET', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='4.0-preview.4', + route_values=route_values) + return self._deserialize('ReleaseEnvironment', response) + + def update_release_environment(self, environment_update_data, project, release_id, environment_id): + """UpdateReleaseEnvironment. + [Preview API] Update the status of a release environment + :param :class:` ` environment_update_data: Environment update meta data. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('ReleaseEnvironment', response) + + def create_definition_environment_template(self, template, project): + """CreateDefinitionEnvironmentTemplate. + [Preview API] + :param :class:` ` template: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(template, 'ReleaseDefinitionEnvironmentTemplate') + response = self._send(http_method='POST', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) + + def delete_definition_environment_template(self, project, template_id): + """DeleteDefinitionEnvironmentTemplate. + [Preview API] + :param str project: Project ID or project name + :param str template_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if template_id is not None: + query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') + self._send(http_method='DELETE', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + + def get_definition_environment_template(self, project, template_id): + """GetDefinitionEnvironmentTemplate. + [Preview API] + :param str project: Project ID or project name + :param str template_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if template_id is not None: + query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') + response = self._send(http_method='GET', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) + + def list_definition_environment_templates(self, project): + """ListDefinitionEnvironmentTemplates. + [Preview API] + :param str project: Project ID or project name + :rtype: [ReleaseDefinitionEnvironmentTemplate] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ReleaseDefinitionEnvironmentTemplate]', response) + + def create_favorites(self, favorite_items, project, scope, identity_id=None): + """CreateFavorites. + [Preview API] + :param [FavoriteItem] favorite_items: + :param str project: Project ID or project name + :param str scope: + :param str identity_id: + :rtype: [FavoriteItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if scope is not None: + route_values['scope'] = self._serialize.url('scope', scope, 'str') + query_parameters = {} + if identity_id is not None: + query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') + content = self._serialize.body(favorite_items, '[FavoriteItem]') + response = self._send(http_method='POST', + location_id='938f7222-9acb-48fe-b8a3-4eda04597171', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[FavoriteItem]', response) + + def delete_favorites(self, project, scope, identity_id=None, favorite_item_ids=None): + """DeleteFavorites. + [Preview API] + :param str project: Project ID or project name + :param str scope: + :param str identity_id: + :param str favorite_item_ids: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if scope is not None: + route_values['scope'] = self._serialize.url('scope', scope, 'str') + query_parameters = {} + if identity_id is not None: + query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') + if favorite_item_ids is not None: + query_parameters['favoriteItemIds'] = self._serialize.query('favorite_item_ids', favorite_item_ids, 'str') + self._send(http_method='DELETE', + location_id='938f7222-9acb-48fe-b8a3-4eda04597171', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_favorites(self, project, scope, identity_id=None): + """GetFavorites. + [Preview API] + :param str project: Project ID or project name + :param str scope: + :param str identity_id: + :rtype: [FavoriteItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if scope is not None: + route_values['scope'] = self._serialize.url('scope', scope, 'str') + query_parameters = {} + if identity_id is not None: + query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') + response = self._send(http_method='GET', + location_id='938f7222-9acb-48fe-b8a3-4eda04597171', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FavoriteItem]', response) + + def create_folder(self, folder, project, path): + """CreateFolder. + [Preview API] Creates a new folder + :param :class:` ` folder: + :param str project: Project ID or project name + :param str path: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + content = self._serialize.body(folder, 'Folder') + response = self._send(http_method='POST', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Folder', response) + + def delete_folder(self, project, path): + """DeleteFolder. + [Preview API] Deletes a definition folder for given folder name and path and all it's existing definitions + :param str project: Project ID or project name + :param str path: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + self._send(http_method='DELETE', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values) + + def get_folders(self, project, path=None, query_order=None): + """GetFolders. + [Preview API] Gets folders + :param str project: Project ID or project name + :param str path: + :param str query_order: + :rtype: [Folder] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + query_parameters = {} + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + response = self._send(http_method='GET', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Folder]', response) + + def update_folder(self, folder, project, path): + """UpdateFolder. + [Preview API] Updates an existing folder at given existing path + :param :class:` ` folder: + :param str project: Project ID or project name + :param str path: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + content = self._serialize.body(folder, 'Folder') + response = self._send(http_method='PATCH', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Folder', response) + + def get_release_history(self, project, release_id): + """GetReleaseHistory. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :rtype: [ReleaseRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='23f461c8-629a-4144-a076-3054fa5f268a', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ReleaseRevision]', response) + + def get_input_values(self, query, project): + """GetInputValues. + [Preview API] + :param :class:` ` query: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query, 'InputValuesQuery') + response = self._send(http_method='POST', + location_id='71dd499b-317d-45ea-9134-140ea1932b5e', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('InputValuesQuery', response) + + def get_issues(self, project, build_id, source_id=None): + """GetIssues. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param str source_id: + :rtype: [AutoTriggerIssue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + response = self._send(http_method='GET', + location_id='cd42261a-f5c6-41c8-9259-f078989b9f25', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[AutoTriggerIssue]', response) + + def get_log(self, project, release_id, environment_id, task_id, attempt_id=None): + """GetLog. + [Preview API] Gets logs + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int task_id: ReleaseTask Id for the log. + :param int attempt_id: Id of the attempt. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + query_parameters = {} + if attempt_id is not None: + query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') + response = self._send(http_method='GET', + location_id='e71ba1ed-c0a4-4a28-a61f-2dd5f68cf3fd', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_logs(self, project, release_id): + """GetLogs. + [Preview API] Get logs for a release Id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('object', response) + + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id): + """GetTaskLog. + [Preview API] Gets the task log of a release as a plain text file. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int release_deploy_phase_id: Release deploy phase Id. + :param int task_id: ReleaseTask Id for the log. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + response = self._send(http_method='GET', + location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('object', response) + + def get_manual_intervention(self, project, release_id, manual_intervention_id): + """GetManualIntervention. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int manual_intervention_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ManualIntervention', response) + + def get_manual_interventions(self, project, release_id): + """GetManualInterventions. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :rtype: [ManualIntervention] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ManualIntervention]', response) + + def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): + """UpdateManualIntervention. + [Preview API] + :param :class:` ` manual_intervention_update_metadata: + :param str project: Project ID or project name + :param int release_id: + :param int manual_intervention_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ManualIntervention', response) + + def get_metrics(self, project, min_metrics_time=None): + """GetMetrics. + [Preview API] + :param str project: Project ID or project name + :param datetime min_metrics_time: + :rtype: [Metric] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if min_metrics_time is not None: + query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') + response = self._send(http_method='GET', + location_id='cd1502bb-3c73-4e11-80a6-d11308dceae5', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Metric]', response) + + def get_release_projects(self, artifact_type, artifact_source_id): + """GetReleaseProjects. + [Preview API] + :param str artifact_type: + :param str artifact_source_id: + :rtype: [ProjectReference] + """ + query_parameters = {} + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + response = self._send(http_method='GET', + location_id='917ace4a-79d1-45a7-987c-7be4db4268fa', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ProjectReference]', response) + + def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None): + """GetReleases. + [Preview API] Get a list of releases + :param str project: Project ID or project name + :param int definition_id: Releases from this release definition Id. + :param int definition_environment_id: + :param str search_text: Releases with names starting with searchText. + :param str created_by: Releases created by this user. + :param str status_filter: Releases that have this status. + :param int environment_status_filter: + :param datetime min_created_time: Releases that were created after this time. + :param datetime max_created_time: Releases that were created before this time. + :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. + :param int top: Number of releases to get. Default is 50. + :param int continuation_token: Gets the releases after the continuation token provided. + :param str expand: The property that should be expanded in the list of releases. + :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. + :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. + :param bool is_deleted: Gets the soft deleted releases, if true. + :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :rtype: [Release] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if environment_status_filter is not None: + query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') + if min_created_time is not None: + query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') + if max_created_time is not None: + query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type_id is not None: + query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + if source_branch_filter is not None: + query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Release]', response) + + def create_release(self, release_start_metadata, project): + """CreateRelease. + [Preview API] Create a release. + :param :class:` ` release_start_metadata: Metadata to create a release. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') + response = self._send(http_method='POST', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def delete_release(self, project, release_id, comment=None): + """DeleteRelease. + [Preview API] Soft delete a release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param str comment: Comment for deleting a release. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + self._send(http_method='DELETE', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + + def get_release(self, project, release_id, include_all_approvals=None, property_filters=None): + """GetRelease. + [Preview API] Get a Release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param bool include_all_approvals: Include all approvals in the result. Default is 'true'. + :param [str] property_filters: A comma-delimited list of properties to include in the results. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if include_all_approvals is not None: + query_parameters['includeAllApprovals'] = self._serialize.query('include_all_approvals', include_all_approvals, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Release', response) + + def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): + """GetReleaseDefinitionSummary. + [Preview API] Get release summary of a given definition Id. + :param str project: Project ID or project name + :param int definition_id: Id of the definition to get release summary. + :param int release_count: Count of releases to be included in summary. + :param bool include_artifact: Include artifact details.Default is 'false'. + :param [int] definition_environment_ids_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if release_count is not None: + query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') + if include_artifact is not None: + query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') + if definition_environment_ids_filter is not None: + definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) + query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinitionSummary', response) + + def get_release_revision(self, project, release_id, definition_snapshot_revision): + """GetReleaseRevision. + [Preview API] Get release for a given revision number. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int definition_snapshot_revision: Definition snapshot revision number. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if definition_snapshot_revision is not None: + query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def undelete_release(self, project, release_id, comment): + """UndeleteRelease. + [Preview API] Undelete a soft deleted release. + :param str project: Project ID or project name + :param int release_id: Id of release to be undeleted. + :param str comment: Any comment for undeleting. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + + def update_release(self, release, project, release_id): + """UpdateRelease. + [Preview API] Update a complete release object. + :param :class:` ` release: Release object for update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release, 'Release') + response = self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def update_release_resource(self, release_update_metadata, project, release_id): + """UpdateReleaseResource. + [Preview API] Update few properties of a release. + :param :class:` ` release_update_metadata: Properties of release to update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_release_settings(self, project): + """GetReleaseSettings. + [Preview API] Gets the release settings + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ReleaseSettings', response) + + def update_release_settings(self, release_settings, project): + """UpdateReleaseSettings. + [Preview API] Updates the release settings + :param :class:` ` release_settings: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_settings, 'ReleaseSettings') + response = self._send(http_method='PUT', + location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReleaseSettings', response) + + def get_definition_revision(self, project, definition_id, revision): + """GetDefinitionRevision. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :param int revision: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + if revision is not None: + route_values['revision'] = self._serialize.url('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_release_definition_history(self, project, definition_id): + """GetReleaseDefinitionHistory. + [Preview API] Get revision history for a release definition + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :rtype: [ReleaseDefinitionRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ReleaseDefinitionRevision]', response) + + def get_summary_mail_sections(self, project, release_id): + """GetSummaryMailSections. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :rtype: [SummaryMailSection] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='224e92b2-8d13-4c14-b120-13d877c516f8', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SummaryMailSection]', response) + + def send_summary_mail(self, mail_message, project, release_id): + """SendSummaryMail. + [Preview API] + :param :class:` ` mail_message: + :param str project: Project ID or project name + :param int release_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(mail_message, 'MailMessage') + self._send(http_method='POST', + location_id='224e92b2-8d13-4c14-b120-13d877c516f8', + version='4.0-preview.1', + route_values=route_values, + content=content) + + def get_source_branches(self, project, definition_id): + """GetSourceBranches. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='0e5def23-78b3-461f-8198-1558f25041c8', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def add_definition_tag(self, project, release_definition_id, tag): + """AddDefinitionTag. + [Preview API] Adds a tag to a definition + :param str project: Project ID or project name + :param int release_definition_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='PATCH', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def add_definition_tags(self, tags, project, release_definition_id): + """AddDefinitionTags. + [Preview API] Adds multiple tags to a definition + :param [str] tags: + :param str project: Project ID or project name + :param int release_definition_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + content = self._serialize.body(tags, '[str]') + response = self._send(http_method='POST', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[str]', response) + + def delete_definition_tag(self, project, release_definition_id, tag): + """DeleteDefinitionTag. + [Preview API] Deletes a tag from a definition + :param str project: Project ID or project name + :param int release_definition_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='DELETE', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_definition_tags(self, project, release_definition_id): + """GetDefinitionTags. + [Preview API] Gets the tags for a definition + :param str project: Project ID or project name + :param int release_definition_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + response = self._send(http_method='GET', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def add_release_tag(self, project, release_id, tag): + """AddReleaseTag. + [Preview API] Adds a tag to a releaseId + :param str project: Project ID or project name + :param int release_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='PATCH', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def add_release_tags(self, tags, project, release_id): + """AddReleaseTags. + [Preview API] Adds tag to a release + :param [str] tags: + :param str project: Project ID or project name + :param int release_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(tags, '[str]') + response = self._send(http_method='POST', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[str]', response) + + def delete_release_tag(self, project, release_id, tag): + """DeleteReleaseTag. + [Preview API] Deletes a tag from a release + :param str project: Project ID or project name + :param int release_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='DELETE', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_release_tags(self, project, release_id): + """GetReleaseTags. + [Preview API] Gets the tags for a release + :param str project: Project ID or project name + :param int release_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_tags(self, project): + """GetTags. + [Preview API] + :param str project: Project ID or project name + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='86cee25a-68ba-4ba3-9171-8ad6ffc6df93', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_tasks(self, project, release_id, environment_id, attempt_id=None): + """GetTasks. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :rtype: [ReleaseTask] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + query_parameters = {} + if attempt_id is not None: + query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') + response = self._send(http_method='GET', + location_id='36b276e0-3c70-4320-a63c-1a2e1466a0d1', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ReleaseTask]', response) + + def get_tasks_for_task_group(self, project, release_id, environment_id, release_deploy_phase_id): + """GetTasksForTaskGroup. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int release_deploy_phase_id: + :rtype: [ReleaseTask] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + response = self._send(http_method='GET', + location_id='4259191d-4b0a-4409-9fb3-09f22ab9bc47', + version='4.0-preview.2', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ReleaseTask]', response) + + def get_artifact_type_definitions(self, project): + """GetArtifactTypeDefinitions. + [Preview API] + :param str project: Project ID or project name + :rtype: [ArtifactTypeDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='8efc2a3c-1fc8-4f6d-9822-75e98cecb48f', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ArtifactTypeDefinition]', response) + + def get_artifact_versions(self, project, release_definition_id): + """GetArtifactVersions. + [Preview API] + :param str project: Project ID or project name + :param int release_definition_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if release_definition_id is not None: + query_parameters['releaseDefinitionId'] = self._serialize.query('release_definition_id', release_definition_id, 'int') + response = self._send(http_method='GET', + location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ArtifactVersionQueryResult', response) + + def get_artifact_versions_for_sources(self, artifacts, project): + """GetArtifactVersionsForSources. + [Preview API] + :param [Artifact] artifacts: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(artifacts, '[Artifact]') + response = self._send(http_method='POST', + location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ArtifactVersionQueryResult', response) + + def get_release_work_items_refs(self, project, release_id, base_release_id=None, top=None): + """GetReleaseWorkItemsRefs. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int base_release_id: + :param int top: + :rtype: [ReleaseWorkItemRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if base_release_id is not None: + query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='4f165cc0-875c-4768-b148-f12f78769fab', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ReleaseWorkItemRef]', response) + From 7199c5f98dca763a6bdd1124b67801aef6a446fd Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 19 Jan 2018 11:07:16 -0500 Subject: [PATCH 019/191] Add link to VSTS REST API Documentation --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 194fa859..bed389f9 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,12 @@ for project in team_projects: pprint.pprint(project.__dict__) ``` +# VSTS REST API Documentation + +The python SDK is a thin wrapper around the VSTS REST APIs. Please consult our REST API documentation for API specific details while working with this python SDK. + +[VSTS REST API Documentation](https://docs.microsoft.com/en-us/rest/api/vsts) + # Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a From 4f4039d803e7573af7da134739ace213d8e98a9f Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 19 Jan 2018 11:41:02 -0500 Subject: [PATCH 020/191] generate new 4.0 REST Areas --- vsts/vsts/accounts/__init__.py | 7 + vsts/vsts/accounts/v4_0/__init__.py | 7 + vsts/vsts/accounts/v4_0/accounts_client.py | 91 + vsts/vsts/accounts/v4_0/models/__init__.py | 17 + vsts/vsts/accounts/v4_0/models/account.py | 85 + .../models/account_create_info_internal.py | 45 + .../models/account_preferences_internal.py | 33 + vsts/vsts/contributions/__init__.py | 7 + vsts/vsts/contributions/v4_0/__init__.py | 7 + .../v4_0/contributions_client.py | 101 + .../contributions/v4_0/models/__init__.py | 59 + .../v4_0/models/client_data_provider_query.py | 31 + .../contributions/v4_0/models/contribution.py | 50 + .../v4_0/models/contribution_base.py | 33 + .../v4_0/models/contribution_constraint.py | 41 + .../v4_0/models/contribution_node_query.py | 33 + .../models/contribution_node_query_result.py | 29 + .../contribution_property_description.py | 37 + .../models/contribution_provider_details.py | 37 + .../v4_0/models/contribution_type.py | 42 + .../v4_0/models/data_provider_context.py | 25 + .../models/data_provider_exception_details.py | 33 + .../v4_0/models/data_provider_query.py | 29 + .../v4_0/models/data_provider_result.py | 41 + .../v4_0/models/extension_event_callback.py | 25 + .../extension_event_callback_collection.py | 49 + .../v4_0/models/extension_file.py | 57 + .../v4_0/models/extension_licensing.py | 25 + .../v4_0/models/extension_manifest.py | 65 + .../v4_0/models/installed_extension.py | 94 + .../v4_0/models/installed_extension_state.py | 33 + .../models/installed_extension_state_issue.py | 33 + .../v4_0/models/licensing_override.py | 29 + .../v4_0/models/resolved_data_provider.py | 33 + .../models/serialized_contribution_node.py | 33 + vsts/vsts/dashboard/__init__.py | 7 + vsts/vsts/dashboard/v4_0/__init__.py | 7 + vsts/vsts/dashboard/v4_0/dashboard_client.py | 428 +++ vsts/vsts/dashboard/v4_0/models/__init__.py | 45 + vsts/vsts/dashboard/v4_0/models/dashboard.py | 61 + .../dashboard/v4_0/models/dashboard_group.py | 37 + .../v4_0/models/dashboard_group_entry.py | 51 + .../models/dashboard_group_entry_response.py | 51 + .../v4_0/models/dashboard_response.py | 51 + .../dashboard/v4_0/models/lightbox_options.py | 33 + .../dashboard/v4_0/models/reference_links.py | 25 + .../dashboard/v4_0/models/semantic_version.py | 33 + .../dashboard/v4_0/models/team_context.py | 37 + vsts/vsts/dashboard/v4_0/models/widget.py | 105 + .../dashboard/v4_0/models/widget_metadata.py | 105 + .../v4_0/models/widget_metadata_response.py | 29 + .../dashboard/v4_0/models/widget_position.py | 29 + .../dashboard/v4_0/models/widget_response.py | 84 + .../vsts/dashboard/v4_0/models/widget_size.py | 29 + .../v4_0/models/widget_types_response.py | 33 + .../v4_0/models/widgets_versioned_list.py | 29 + vsts/vsts/extension_management/__init__.py | 7 + .../extension_management/v4_0/__init__.py | 7 + .../v4_0/extension_management_client.py | 552 ++++ .../v4_0/models/__init__.py | 83 + .../v4_0/models/acquisition_operation.py | 37 + .../acquisition_operation_disallow_reason.py | 29 + .../v4_0/models/acquisition_options.py | 37 + .../v4_0/models/contribution.py | 50 + .../v4_0/models/contribution_base.py | 33 + .../v4_0/models/contribution_constraint.py | 41 + .../contribution_property_description.py | 37 + .../v4_0/models/contribution_type.py | 42 + .../models/extension_acquisition_request.py | 45 + .../v4_0/models/extension_authorization.py | 29 + .../v4_0/models/extension_badge.py | 33 + .../v4_0/models/extension_data_collection.py | 37 + .../models/extension_data_collection_query.py | 25 + .../v4_0/models/extension_event_callback.py | 25 + .../extension_event_callback_collection.py | 49 + .../v4_0/models/extension_file.py | 57 + .../v4_0/models/extension_identifier.py | 29 + .../v4_0/models/extension_licensing.py | 25 + .../v4_0/models/extension_manifest.py | 65 + .../v4_0/models/extension_policy.py | 29 + .../v4_0/models/extension_request.py | 49 + .../v4_0/models/extension_share.py | 33 + .../v4_0/models/extension_state.py | 46 + .../v4_0/models/extension_statistic.py | 29 + .../v4_0/models/extension_version.py | 61 + .../v4_0/models/identity_ref.py | 61 + .../v4_0/models/installation_target.py | 45 + .../v4_0/models/installed_extension.py | 94 + .../v4_0/models/installed_extension_query.py | 29 + .../v4_0/models/installed_extension_state.py | 33 + .../models/installed_extension_state_issue.py | 33 + .../v4_0/models/licensing_override.py | 29 + .../v4_0/models/published_extension.py | 89 + .../v4_0/models/publisher_facts.py | 37 + .../v4_0/models/requested_extension.py | 41 + .../v4_0/models/user_extension_policy.py | 33 + vsts/vsts/file_container/__init__.py | 7 + vsts/vsts/file_container/v4_0/__init__.py | 7 + .../v4_0/file_container_client.py | 130 + .../file_container/v4_0/models/__init__.py | 15 + .../v4_0/models/file_container.py | 77 + .../v4_0/models/file_container_item.py | 93 + vsts/vsts/gallery/__init__.py | 7 + vsts/vsts/gallery/v4_0/__init__.py | 7 + vsts/vsts/gallery/v4_0/gallery_client.py | 1332 +++++++++ vsts/vsts/gallery/v4_0/models/__init__.py | 115 + .../v4_0/models/acquisition_operation.py | 33 + .../v4_0/models/acquisition_options.py | 37 + vsts/vsts/gallery/v4_0/models/answers.py | 29 + .../vsts/gallery/v4_0/models/asset_details.py | 29 + .../gallery/v4_0/models/azure_publisher.py | 29 + .../models/azure_rest_api_request_model.py | 57 + .../gallery/v4_0/models/categories_result.py | 25 + .../v4_0/models/category_language_title.py | 33 + vsts/vsts/gallery/v4_0/models/concern.py | 43 + vsts/vsts/gallery/v4_0/models/event_counts.py | 57 + .../models/extension_acquisition_request.py | 49 + .../gallery/v4_0/models/extension_badge.py | 33 + .../gallery/v4_0/models/extension_category.py | 45 + .../v4_0/models/extension_daily_stat.py | 37 + .../v4_0/models/extension_daily_stats.py | 41 + .../gallery/v4_0/models/extension_event.py | 37 + .../gallery/v4_0/models/extension_events.py | 37 + .../gallery/v4_0/models/extension_file.py | 57 + .../v4_0/models/extension_filter_result.py | 33 + .../extension_filter_result_metadata.py | 29 + .../gallery/v4_0/models/extension_package.py | 25 + .../gallery/v4_0/models/extension_query.py | 33 + .../v4_0/models/extension_query_result.py | 25 + .../gallery/v4_0/models/extension_share.py | 33 + .../v4_0/models/extension_statistic.py | 29 + .../v4_0/models/extension_statistic_update.py | 37 + .../gallery/v4_0/models/extension_version.py | 61 + .../gallery/v4_0/models/filter_criteria.py | 29 + .../v4_0/models/installation_target.py | 45 + .../vsts/gallery/v4_0/models/metadata_item.py | 29 + .../gallery/v4_0/models/notifications_data.py | 33 + .../v4_0/models/product_categories_result.py | 25 + .../gallery/v4_0/models/product_category.py | 37 + .../v4_0/models/published_extension.py | 89 + vsts/vsts/gallery/v4_0/models/publisher.py | 57 + .../gallery/v4_0/models/publisher_facts.py | 37 + .../v4_0/models/publisher_filter_result.py | 25 + .../gallery/v4_0/models/publisher_query.py | 29 + .../v4_0/models/publisher_query_result.py | 25 + vsts/vsts/gallery/v4_0/models/qn_aItem.py | 45 + vsts/vsts/gallery/v4_0/models/query_filter.py | 49 + vsts/vsts/gallery/v4_0/models/question.py | 43 + .../gallery/v4_0/models/questions_result.py | 29 + .../v4_0/models/rating_count_per_rating.py | 29 + vsts/vsts/gallery/v4_0/models/response.py | 39 + vsts/vsts/gallery/v4_0/models/review.py | 69 + vsts/vsts/gallery/v4_0/models/review_patch.py | 33 + vsts/vsts/gallery/v4_0/models/review_reply.py | 53 + .../gallery/v4_0/models/review_summary.py | 33 + .../gallery/v4_0/models/reviews_result.py | 33 + .../gallery/v4_0/models/user_identity_ref.py | 29 + .../v4_0/models/user_reported_concern.py | 41 + vsts/vsts/git/v4_0/models/git_repository.py | 14 +- .../models/git_repository_create_options.py | 6 +- vsts/vsts/licensing/__init__.py | 7 + vsts/vsts/licensing/v4_0/__init__.py | 7 + vsts/vsts/licensing/v4_0/licensing_client.py | 370 +++ vsts/vsts/licensing/v4_0/models/__init__.py | 45 + .../v4_0/models/account_entitlement.py | 57 + .../account_entitlement_update_model.py | 25 + .../models/account_license_extension_usage.py | 61 + .../v4_0/models/account_license_usage.py | 33 + .../licensing/v4_0/models/account_rights.py | 29 + .../v4_0/models/account_user_license.py | 29 + .../v4_0/models/client_rights_container.py | 29 + .../v4_0/models/extension_assignment.py | 37 + .../models/extension_assignment_details.py | 29 + .../v4_0/models/extension_license_data.py | 41 + .../v4_0/models/extension_operation_result.py | 45 + .../v4_0/models/extension_rights_result.py | 41 + .../licensing/v4_0/models/extension_source.py | 33 + .../licensing/v4_0/models/iUsage_right.py | 37 + .../licensing/v4_0/models/identity_ref.py | 61 + vsts/vsts/licensing/v4_0/models/license.py | 25 + .../licensing/v4_0/models/msdn_entitlement.py | 65 + vsts/vsts/notification/__init__.py | 7 + vsts/vsts/notification/v4_0/__init__.py | 7 + .../vsts/notification/v4_0/models/__init__.py | 113 + .../v4_0/models/artifact_filter.py | 40 + .../v4_0/models/base_subscription_filter.py | 29 + .../models/batch_notification_operation.py | 29 + .../notification/v4_0/models/event_actor.py | 29 + .../notification/v4_0/models/event_scope.py | 29 + .../v4_0/models/events_evaluation_result.py | 29 + .../v4_0/models/expression_filter_clause.py | 41 + .../v4_0/models/expression_filter_group.py | 33 + .../v4_0/models/expression_filter_model.py | 33 + .../v4_0/models/field_input_values.py | 46 + .../v4_0/models/field_values_query.py | 35 + .../v4_0/models/iSubscription_channel.py | 25 + .../v4_0/models/iSubscription_filter.py | 29 + .../notification/v4_0/models/identity_ref.py | 61 + .../notification/v4_0/models/input_value.py | 33 + .../notification/v4_0/models/input_values.py | 49 + .../v4_0/models/input_values_error.py | 25 + .../v4_0/models/input_values_query.py | 33 + .../v4_0/models/notification_event_field.py | 41 + .../notification_event_field_operator.py | 29 + .../models/notification_event_field_type.py | 41 + .../models/notification_event_publisher.py | 33 + .../v4_0/models/notification_event_role.py | 33 + .../v4_0/models/notification_event_type.py | 69 + .../notification_event_type_category.py | 29 + .../models/notification_query_condition.py | 37 + .../v4_0/models/notification_reason.py | 29 + .../v4_0/models/notification_statistic.py | 41 + .../models/notification_statistics_query.py | 25 + ...otification_statistics_query_conditions.py | 45 + .../v4_0/models/notification_subscriber.py | 37 + ...tification_subscriber_update_parameters.py | 29 + .../v4_0/models/notification_subscription.py | 89 + ...fication_subscription_create_parameters.py | 41 + .../notification_subscription_template.py | 41 + ...fication_subscription_update_parameters.py | 53 + .../models/notifications_evaluation_result.py | 25 + .../v4_0/models/operator_constraint.py | 29 + .../v4_0/models/reference_links.py | 25 + .../models/subscription_admin_settings.py | 25 + .../subscription_channel_with_address.py | 33 + .../models/subscription_evaluation_request.py | 29 + .../models/subscription_evaluation_result.py | 37 + .../subscription_evaluation_settings.py | 37 + .../v4_0/models/subscription_management.py | 29 + .../v4_0/models/subscription_query.py | 29 + .../models/subscription_query_condition.py | 41 + .../v4_0/models/subscription_scope.py | 31 + .../v4_0/models/subscription_user_settings.py | 25 + .../v4_0/models/value_definition.py | 33 + .../v4_0/models/vss_notification_event.py | 41 + .../notification/v4_0/notification_client.py | 244 ++ vsts/vsts/policy/v4_1/models/__init__.py | 2 + vsts/vsts/policy/v4_1/models/identity_ref.py | 30 +- vsts/vsts/project_analysis/__init__.py | 7 + vsts/vsts/project_analysis/v4_0/__init__.py | 7 + .../project_analysis/v4_0/models/__init__.py | 21 + .../v4_0/models/code_change_trend_item.py | 29 + .../v4_0/models/language_statistics.py | 45 + .../v4_0/models/project_activity_metrics.py | 45 + .../v4_0/models/project_language_analytics.py | 41 + .../models/repository_language_analytics.py | 41 + .../v4_0/project_analysis_client.py | 65 + vsts/vsts/service_hooks/__init__.py | 7 + vsts/vsts/service_hooks/v4_0/__init__.py | 7 + .../service_hooks/v4_0/models/__init__.py | 69 + .../service_hooks/v4_0/models/consumer.py | 65 + .../v4_0/models/consumer_action.py | 61 + vsts/vsts/service_hooks/v4_0/models/event.py | 61 + .../v4_0/models/event_type_descriptor.py | 49 + .../external_configuration_descriptor.py | 33 + .../v4_0/models/formatted_event_message.py | 33 + .../service_hooks/v4_0/models/identity_ref.py | 61 + .../v4_0/models/input_descriptor.py | 77 + .../service_hooks/v4_0/models/input_filter.py | 25 + .../v4_0/models/input_filter_condition.py | 37 + .../v4_0/models/input_validation.py | 53 + .../service_hooks/v4_0/models/input_value.py | 33 + .../service_hooks/v4_0/models/input_values.py | 49 + .../v4_0/models/input_values_error.py | 25 + .../v4_0/models/input_values_query.py | 33 + .../service_hooks/v4_0/models/notification.py | 57 + .../v4_0/models/notification_details.py | 89 + .../notification_results_summary_detail.py | 29 + .../v4_0/models/notification_summary.py | 29 + .../v4_0/models/notifications_query.py | 69 + .../service_hooks/v4_0/models/publisher.py | 53 + .../v4_0/models/publisher_event.py | 45 + .../v4_0/models/publishers_query.py | 33 + .../v4_0/models/reference_links.py | 25 + .../v4_0/models/resource_container.py | 37 + .../v4_0/models/session_token.py | 33 + .../service_hooks/v4_0/models/subscription.py | 97 + .../v4_0/models/subscriptions_query.py | 53 + .../v4_0/models/versioned_resource.py | 33 + .../v4_0/service_hooks_client.py | 369 +++ vsts/vsts/task/__init__.py | 7 + vsts/vsts/task/v4_0/__init__.py | 7 + vsts/vsts/task/v4_0/models/__init__.py | 55 + vsts/vsts/task/v4_0/models/issue.py | 37 + vsts/vsts/task/v4_0/models/job_option.py | 29 + vsts/vsts/task/v4_0/models/mask_hint.py | 29 + .../vsts/task/v4_0/models/plan_environment.py | 33 + .../task/v4_0/models/project_reference.py | 29 + vsts/vsts/task/v4_0/models/reference_links.py | 25 + vsts/vsts/task/v4_0/models/task_attachment.py | 53 + vsts/vsts/task/v4_0/models/task_log.py | 47 + .../task/v4_0/models/task_log_reference.py | 29 + .../models/task_orchestration_container.py | 48 + .../v4_0/models/task_orchestration_item.py | 25 + .../v4_0/models/task_orchestration_owner.py | 33 + .../v4_0/models/task_orchestration_plan.py | 89 + ...orchestration_plan_groups_queue_metrics.py | 29 + .../task_orchestration_plan_reference.py | 53 + .../models/task_orchestration_queued_plan.py | 57 + .../task_orchestration_queued_plan_group.py | 45 + vsts/vsts/task/v4_0/models/task_reference.py | 37 + vsts/vsts/task/v4_0/models/timeline.py | 42 + vsts/vsts/task/v4_0/models/timeline_record.py | 117 + .../task/v4_0/models/timeline_reference.py | 33 + vsts/vsts/task/v4_0/models/variable_value.py | 29 + vsts/vsts/task/v4_0/task_client.py | 555 ++++ vsts/vsts/task_agent/__init__.py | 7 + vsts/vsts/task_agent/v4_0/__init__.py | 7 + vsts/vsts/task_agent/v4_0/models/__init__.py | 189 ++ .../v4_0/models/aad_oauth_token_request.py | 37 + .../v4_0/models/aad_oauth_token_result.py | 29 + .../v4_0/models/authorization_header.py | 29 + .../v4_0/models/azure_subscription.py | 37 + .../models/azure_subscription_query_result.py | 29 + .../task_agent/v4_0/models/data_source.py | 37 + .../v4_0/models/data_source_binding.py | 42 + .../v4_0/models/data_source_binding_base.py | 49 + .../v4_0/models/data_source_details.py | 41 + .../v4_0/models/dependency_binding.py | 29 + .../task_agent/v4_0/models/dependency_data.py | 29 + .../vsts/task_agent/v4_0/models/depends_on.py | 29 + .../v4_0/models/deployment_group.py | 49 + .../v4_0/models/deployment_group_metrics.py | 33 + .../v4_0/models/deployment_group_reference.py | 37 + .../v4_0/models/deployment_machine.py | 33 + .../v4_0/models/deployment_machine_group.py | 41 + .../deployment_machine_group_reference.py | 37 + .../v4_0/models/endpoint_authorization.py | 29 + .../task_agent/v4_0/models/endpoint_url.py | 41 + vsts/vsts/task_agent/v4_0/models/help_link.py | 29 + .../task_agent/v4_0/models/identity_ref.py | 61 + .../v4_0/models/input_descriptor.py | 77 + .../v4_0/models/input_validation.py | 53 + .../v4_0/models/input_validation_request.py | 25 + .../task_agent/v4_0/models/input_value.py | 33 + .../task_agent/v4_0/models/input_values.py | 49 + .../v4_0/models/input_values_error.py | 25 + .../v4_0/models/metrics_column_meta_data.py | 29 + .../v4_0/models/metrics_columns_header.py | 29 + .../task_agent/v4_0/models/metrics_row.py | 29 + .../v4_0/models/package_metadata.py | 53 + .../task_agent/v4_0/models/package_version.py | 33 + .../v4_0/models/project_reference.py | 29 + .../models/publish_task_group_metadata.py | 41 + .../task_agent/v4_0/models/reference_links.py | 25 + .../models/result_transformation_details.py | 25 + .../task_agent/v4_0/models/secure_file.py | 53 + .../v4_0/models/service_endpoint.py | 73 + .../service_endpoint_authentication_scheme.py | 37 + .../v4_0/models/service_endpoint_details.py | 37 + .../models/service_endpoint_execution_data.py | 49 + .../service_endpoint_execution_record.py | 29 + ...ervice_endpoint_execution_records_input.py | 29 + .../v4_0/models/service_endpoint_request.py | 33 + .../models/service_endpoint_request_result.py | 33 + .../v4_0/models/service_endpoint_type.py | 65 + .../vsts/task_agent/v4_0/models/task_agent.py | 75 + .../v4_0/models/task_agent_authorization.py | 33 + .../v4_0/models/task_agent_job_request.py | 101 + .../v4_0/models/task_agent_message.py | 37 + .../task_agent/v4_0/models/task_agent_pool.py | 56 + .../task_agent_pool_maintenance_definition.py | 53 + .../models/task_agent_pool_maintenance_job.py | 77 + ...agent_pool_maintenance_job_target_agent.py | 37 + .../task_agent_pool_maintenance_options.py | 25 + ...agent_pool_maintenance_retention_policy.py | 25 + .../task_agent_pool_maintenance_schedule.py | 41 + .../v4_0/models/task_agent_pool_reference.py | 41 + .../v4_0/models/task_agent_public_key.py | 29 + .../v4_0/models/task_agent_queue.py | 37 + .../v4_0/models/task_agent_reference.py | 45 + .../v4_0/models/task_agent_session.py | 41 + .../v4_0/models/task_agent_session_key.py | 29 + .../v4_0/models/task_agent_update.py | 45 + .../v4_0/models/task_agent_update_reason.py | 25 + .../task_agent/v4_0/models/task_definition.py | 161 ++ .../v4_0/models/task_definition_endpoint.py | 45 + .../v4_0/models/task_definition_reference.py | 33 + .../task_agent/v4_0/models/task_execution.py | 29 + .../vsts/task_agent/v4_0/models/task_group.py | 166 ++ .../v4_0/models/task_group_definition.py | 41 + .../v4_0/models/task_group_revision.py | 49 + .../task_agent/v4_0/models/task_group_step.py | 53 + .../v4_0/models/task_hub_license_details.py | 61 + .../v4_0/models/task_input_definition.py | 54 + .../v4_0/models/task_input_definition_base.py | 65 + .../v4_0/models/task_input_validation.py | 29 + .../v4_0/models/task_orchestration_owner.py | 33 + .../v4_0/models/task_output_variable.py | 29 + .../v4_0/models/task_package_metadata.py | 33 + .../task_agent/v4_0/models/task_reference.py | 37 + .../v4_0/models/task_source_definition.py | 36 + .../models/task_source_definition_base.py | 41 + .../task_agent/v4_0/models/task_version.py | 37 + .../task_agent/v4_0/models/validation_item.py | 37 + .../task_agent/v4_0/models/variable_group.py | 61 + .../models/variable_group_provider_data.py | 21 + .../task_agent/v4_0/models/variable_value.py | 29 + .../vsts/task_agent/v4_0/task_agent_client.py | 2480 +++++++++++++++++ vsts/vsts/test/__init__.py | 7 + vsts/vsts/test/v4_0/__init__.py | 7 + vsts/vsts/test/v4_0/models/__init__.py | 197 ++ .../aggregated_data_for_result_trend.py | 37 + .../models/aggregated_results_analysis.py | 45 + .../models/aggregated_results_by_outcome.py | 41 + .../models/aggregated_results_difference.py | 41 + .../test/v4_0/models/build_configuration.py | 61 + vsts/vsts/test/v4_0/models/build_coverage.py | 41 + vsts/vsts/test/v4_0/models/build_reference.py | 49 + .../models/clone_operation_information.py | 77 + vsts/vsts/test/v4_0/models/clone_options.py | 45 + .../vsts/test/v4_0/models/clone_statistics.py | 41 + .../test/v4_0/models/code_coverage_data.py | 33 + .../v4_0/models/code_coverage_statistics.py | 45 + .../test/v4_0/models/code_coverage_summary.py | 33 + .../test/v4_0/models/coverage_statistics.py | 41 + .../test/v4_0/models/custom_test_field.py | 29 + .../models/custom_test_field_definition.py | 37 + .../v4_0/models/dtl_environment_details.py | 33 + vsts/vsts/test/v4_0/models/failing_since.py | 33 + .../test/v4_0/models/function_coverage.py | 41 + vsts/vsts/test/v4_0/models/identity_ref.py | 61 + .../test/v4_0/models/last_result_details.py | 33 + .../v4_0/models/linked_work_items_query.py | 45 + .../models/linked_work_items_query_result.py | 45 + vsts/vsts/test/v4_0/models/module_coverage.py | 49 + vsts/vsts/test/v4_0/models/name_value_pair.py | 29 + .../test/v4_0/models/plan_update_model.py | 89 + .../vsts/test/v4_0/models/point_assignment.py | 29 + .../test/v4_0/models/point_update_model.py | 33 + vsts/vsts/test/v4_0/models/points_filter.py | 33 + vsts/vsts/test/v4_0/models/property_bag.py | 25 + vsts/vsts/test/v4_0/models/query_model.py | 25 + ...elease_environment_definition_reference.py | 29 + .../test/v4_0/models/release_reference.py | 49 + .../v4_0/models/result_retention_settings.py | 37 + vsts/vsts/test/v4_0/models/results_filter.py | 49 + .../vsts/test/v4_0/models/run_create_model.py | 145 + vsts/vsts/test/v4_0/models/run_filter.py | 29 + vsts/vsts/test/v4_0/models/run_statistic.py | 37 + .../vsts/test/v4_0/models/run_update_model.py | 117 + .../test/v4_0/models/shallow_reference.py | 33 + .../test/v4_0/models/shared_step_model.py | 29 + .../test/v4_0/models/suite_create_model.py | 37 + vsts/vsts/test/v4_0/models/suite_entry.py | 37 + .../v4_0/models/suite_entry_update_model.py | 33 + vsts/vsts/test/v4_0/models/suite_test_case.py | 29 + vsts/vsts/test/v4_0/models/team_context.py | 37 + .../v4_0/models/team_project_reference.py | 53 + .../v4_0/models/test_action_result_model.py | 59 + vsts/vsts/test/v4_0/models/test_attachment.py | 45 + .../v4_0/models/test_attachment_reference.py | 29 + .../models/test_attachment_request_model.py | 37 + .../vsts/test/v4_0/models/test_case_result.py | 205 ++ .../test_case_result_attachment_model.py | 41 + .../models/test_case_result_identifier.py | 29 + .../models/test_case_result_update_model.py | 93 + .../test/v4_0/models/test_configuration.py | 69 + .../vsts/test/v4_0/models/test_environment.py | 29 + .../test/v4_0/models/test_failure_details.py | 29 + .../v4_0/models/test_failures_analysis.py | 37 + .../models/test_iteration_details_model.py | 65 + .../v4_0/models/test_message_log_details.py | 33 + vsts/vsts/test/v4_0/models/test_method.py | 29 + .../v4_0/models/test_operation_reference.py | 33 + vsts/vsts/test/v4_0/models/test_plan.py | 117 + .../v4_0/models/test_plan_clone_request.py | 33 + vsts/vsts/test/v4_0/models/test_point.py | 109 + .../test/v4_0/models/test_points_query.py | 37 + .../test/v4_0/models/test_resolution_state.py | 33 + .../v4_0/models/test_result_create_model.py | 125 + .../test/v4_0/models/test_result_document.py | 29 + .../test/v4_0/models/test_result_history.py | 29 + .../test_result_history_details_for_group.py | 29 + .../v4_0/models/test_result_model_base.py | 45 + .../models/test_result_parameter_model.py | 45 + .../test/v4_0/models/test_result_payload.py | 33 + .../test/v4_0/models/test_result_summary.py | 37 + .../v4_0/models/test_result_trend_filter.py | 53 + .../test/v4_0/models/test_results_context.py | 33 + .../test/v4_0/models/test_results_details.py | 29 + .../models/test_results_details_for_group.py | 33 + .../test/v4_0/models/test_results_query.py | 33 + vsts/vsts/test/v4_0/models/test_run.py | 193 ++ .../test/v4_0/models/test_run_coverage.py | 37 + .../test/v4_0/models/test_run_statistic.py | 29 + vsts/vsts/test/v4_0/models/test_session.py | 81 + vsts/vsts/test/v4_0/models/test_settings.py | 49 + vsts/vsts/test/v4_0/models/test_suite.py | 113 + .../v4_0/models/test_suite_clone_request.py | 33 + .../v4_0/models/test_summary_for_work_item.py | 29 + .../v4_0/models/test_to_work_item_links.py | 29 + vsts/vsts/test/v4_0/models/test_variable.py | 49 + .../test/v4_0/models/work_item_reference.py | 41 + .../v4_0/models/work_item_to_test_links.py | 29 + vsts/vsts/test/v4_0/test_client.py | 2217 +++++++++++++++ vsts/vsts/tfvc/__init__.py | 7 + vsts/vsts/tfvc/v4_0/__init__.py | 7 + vsts/vsts/tfvc/v4_0/models/__init__.py | 83 + .../tfvc/v4_0/models/associated_work_item.py | 49 + vsts/vsts/tfvc/v4_0/models/change.py | 41 + vsts/vsts/tfvc/v4_0/models/checkin_note.py | 29 + .../tfvc/v4_0/models/file_content_metadata.py | 49 + vsts/vsts/tfvc/v4_0/models/git_repository.py | 61 + .../tfvc/v4_0/models/git_repository_ref.py | 45 + vsts/vsts/tfvc/v4_0/models/identity_ref.py | 61 + vsts/vsts/tfvc/v4_0/models/item_content.py | 29 + vsts/vsts/tfvc/v4_0/models/item_model.py | 45 + vsts/vsts/tfvc/v4_0/models/reference_links.py | 25 + .../team_project_collection_reference.py | 33 + .../v4_0/models/team_project_reference.py | 53 + vsts/vsts/tfvc/v4_0/models/tfvc_branch.py | 58 + .../tfvc/v4_0/models/tfvc_branch_mapping.py | 33 + vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py | 48 + vsts/vsts/tfvc/v4_0/models/tfvc_change.py | 29 + vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py | 77 + .../tfvc/v4_0/models/tfvc_changeset_ref.py | 53 + .../models/tfvc_changeset_search_criteria.py | 53 + .../models/tfvc_changesets_request_data.py | 33 + vsts/vsts/tfvc/v4_0/models/tfvc_item.py | 67 + .../tfvc/v4_0/models/tfvc_item_descriptor.py | 41 + .../v4_0/models/tfvc_item_request_data.py | 33 + vsts/vsts/tfvc/v4_0/models/tfvc_label.py | 49 + vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py | 53 + .../v4_0/models/tfvc_label_request_data.py | 45 + .../tfvc/v4_0/models/tfvc_merge_source.py | 37 + .../v4_0/models/tfvc_policy_failure_info.py | 29 + .../v4_0/models/tfvc_policy_override_info.py | 29 + .../v4_0/models/tfvc_shallow_branch_ref.py | 25 + vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py | 61 + .../tfvc/v4_0/models/tfvc_shelveset_ref.py | 53 + .../models/tfvc_shelveset_request_data.py | 49 + .../v4_0/models/tfvc_version_descriptor.py | 33 + .../models/version_control_project_info.py | 37 + vsts/vsts/tfvc/v4_0/models/vsts_info.py | 33 + vsts/vsts/tfvc/v4_0/tfvc_client.py | 722 +++++ vsts/vsts/work/__init__.py | 7 + vsts/vsts/work/v4_0/__init__.py | 7 + vsts/vsts/work/v4_0/models/__init__.py | 131 + vsts/vsts/work/v4_0/models/activity.py | 29 + vsts/vsts/work/v4_0/models/attribute.py | 20 + vsts/vsts/work/v4_0/models/backlog_column.py | 29 + .../work/v4_0/models/backlog_configuration.py | 53 + vsts/vsts/work/v4_0/models/backlog_fields.py | 25 + vsts/vsts/work/v4_0/models/backlog_level.py | 37 + .../models/backlog_level_configuration.py | 57 + vsts/vsts/work/v4_0/models/board.py | 62 + .../v4_0/models/board_card_rule_settings.py | 33 + .../work/v4_0/models/board_card_settings.py | 25 + vsts/vsts/work/v4_0/models/board_chart.py | 35 + .../work/v4_0/models/board_chart_reference.py | 29 + vsts/vsts/work/v4_0/models/board_column.py | 49 + vsts/vsts/work/v4_0/models/board_fields.py | 33 + .../work/v4_0/models/board_filter_settings.py | 33 + vsts/vsts/work/v4_0/models/board_reference.py | 33 + vsts/vsts/work/v4_0/models/board_row.py | 29 + .../work/v4_0/models/board_suggested_value.py | 25 + .../work/v4_0/models/board_user_settings.py | 25 + vsts/vsts/work/v4_0/models/capacity_patch.py | 29 + .../v4_0/models/category_configuration.py | 33 + vsts/vsts/work/v4_0/models/create_plan.py | 37 + vsts/vsts/work/v4_0/models/date_range.py | 29 + .../work/v4_0/models/delivery_view_data.py | 47 + vsts/vsts/work/v4_0/models/field_reference.py | 29 + vsts/vsts/work/v4_0/models/field_setting.py | 20 + vsts/vsts/work/v4_0/models/filter_clause.py | 41 + vsts/vsts/work/v4_0/models/filter_group.py | 33 + vsts/vsts/work/v4_0/models/filter_model.py | 33 + vsts/vsts/work/v4_0/models/identity_ref.py | 61 + vsts/vsts/work/v4_0/models/member.py | 41 + .../work/v4_0/models/parent_child_wIMap.py | 33 + vsts/vsts/work/v4_0/models/plan.py | 69 + vsts/vsts/work/v4_0/models/plan_view_data.py | 29 + .../work/v4_0/models/process_configuration.py | 45 + vsts/vsts/work/v4_0/models/reference_links.py | 25 + vsts/vsts/work/v4_0/models/rule.py | 41 + vsts/vsts/work/v4_0/models/team_context.py | 37 + .../vsts/work/v4_0/models/team_field_value.py | 29 + .../work/v4_0/models/team_field_values.py | 39 + .../v4_0/models/team_field_values_patch.py | 29 + .../v4_0/models/team_iteration_attributes.py | 29 + .../work/v4_0/models/team_member_capacity.py | 39 + vsts/vsts/work/v4_0/models/team_setting.py | 51 + .../team_settings_data_contract_base.py | 29 + .../v4_0/models/team_settings_days_off.py | 31 + .../models/team_settings_days_off_patch.py | 25 + .../v4_0/models/team_settings_iteration.py | 43 + .../work/v4_0/models/team_settings_patch.py | 45 + .../v4_0/models/timeline_criteria_status.py | 29 + .../v4_0/models/timeline_iteration_status.py | 29 + .../work/v4_0/models/timeline_team_data.py | 77 + .../v4_0/models/timeline_team_iteration.py | 49 + .../work/v4_0/models/timeline_team_status.py | 29 + vsts/vsts/work/v4_0/models/update_plan.py | 41 + vsts/vsts/work/v4_0/models/work_item_color.py | 33 + .../v4_0/models/work_item_field_reference.py | 33 + .../work_item_tracking_resource_reference.py | 25 + .../v4_0/models/work_item_type_reference.py | 28 + .../v4_0/models/work_item_type_state_info.py | 29 + vsts/vsts/work/v4_0/work_client.py | 1243 +++++++++ 600 files changed, 35104 insertions(+), 31 deletions(-) create mode 100644 vsts/vsts/accounts/__init__.py create mode 100644 vsts/vsts/accounts/v4_0/__init__.py create mode 100644 vsts/vsts/accounts/v4_0/accounts_client.py create mode 100644 vsts/vsts/accounts/v4_0/models/__init__.py create mode 100644 vsts/vsts/accounts/v4_0/models/account.py create mode 100644 vsts/vsts/accounts/v4_0/models/account_create_info_internal.py create mode 100644 vsts/vsts/accounts/v4_0/models/account_preferences_internal.py create mode 100644 vsts/vsts/contributions/__init__.py create mode 100644 vsts/vsts/contributions/v4_0/__init__.py create mode 100644 vsts/vsts/contributions/v4_0/contributions_client.py create mode 100644 vsts/vsts/contributions/v4_0/models/__init__.py create mode 100644 vsts/vsts/contributions/v4_0/models/client_data_provider_query.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution_base.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution_constraint.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution_node_query.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution_property_description.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution_provider_details.py create mode 100644 vsts/vsts/contributions/v4_0/models/contribution_type.py create mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_context.py create mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py create mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_query.py create mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_result.py create mode 100644 vsts/vsts/contributions/v4_0/models/extension_event_callback.py create mode 100644 vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py create mode 100644 vsts/vsts/contributions/v4_0/models/extension_file.py create mode 100644 vsts/vsts/contributions/v4_0/models/extension_licensing.py create mode 100644 vsts/vsts/contributions/v4_0/models/extension_manifest.py create mode 100644 vsts/vsts/contributions/v4_0/models/installed_extension.py create mode 100644 vsts/vsts/contributions/v4_0/models/installed_extension_state.py create mode 100644 vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py create mode 100644 vsts/vsts/contributions/v4_0/models/licensing_override.py create mode 100644 vsts/vsts/contributions/v4_0/models/resolved_data_provider.py create mode 100644 vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py create mode 100644 vsts/vsts/dashboard/__init__.py create mode 100644 vsts/vsts/dashboard/v4_0/__init__.py create mode 100644 vsts/vsts/dashboard/v4_0/dashboard_client.py create mode 100644 vsts/vsts/dashboard/v4_0/models/__init__.py create mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard.py create mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_group.py create mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py create mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py create mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_response.py create mode 100644 vsts/vsts/dashboard/v4_0/models/lightbox_options.py create mode 100644 vsts/vsts/dashboard/v4_0/models/reference_links.py create mode 100644 vsts/vsts/dashboard/v4_0/models/semantic_version.py create mode 100644 vsts/vsts/dashboard/v4_0/models/team_context.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widget.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widget_metadata.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widget_position.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widget_response.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widget_size.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widget_types_response.py create mode 100644 vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py create mode 100644 vsts/vsts/extension_management/__init__.py create mode 100644 vsts/vsts/extension_management/v4_0/__init__.py create mode 100644 vsts/vsts/extension_management/v4_0/extension_management_client.py create mode 100644 vsts/vsts/extension_management/v4_0/models/__init__.py create mode 100644 vsts/vsts/extension_management/v4_0/models/acquisition_operation.py create mode 100644 vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py create mode 100644 vsts/vsts/extension_management/v4_0/models/acquisition_options.py create mode 100644 vsts/vsts/extension_management/v4_0/models/contribution.py create mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_base.py create mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_constraint.py create mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_property_description.py create mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_type.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_authorization.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_badge.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_data_collection.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_event_callback.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_file.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_identifier.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_licensing.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_manifest.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_policy.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_request.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_share.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_state.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_statistic.py create mode 100644 vsts/vsts/extension_management/v4_0/models/extension_version.py create mode 100644 vsts/vsts/extension_management/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/extension_management/v4_0/models/installation_target.py create mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension.py create mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension_query.py create mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension_state.py create mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py create mode 100644 vsts/vsts/extension_management/v4_0/models/licensing_override.py create mode 100644 vsts/vsts/extension_management/v4_0/models/published_extension.py create mode 100644 vsts/vsts/extension_management/v4_0/models/publisher_facts.py create mode 100644 vsts/vsts/extension_management/v4_0/models/requested_extension.py create mode 100644 vsts/vsts/extension_management/v4_0/models/user_extension_policy.py create mode 100644 vsts/vsts/file_container/__init__.py create mode 100644 vsts/vsts/file_container/v4_0/__init__.py create mode 100644 vsts/vsts/file_container/v4_0/file_container_client.py create mode 100644 vsts/vsts/file_container/v4_0/models/__init__.py create mode 100644 vsts/vsts/file_container/v4_0/models/file_container.py create mode 100644 vsts/vsts/file_container/v4_0/models/file_container_item.py create mode 100644 vsts/vsts/gallery/__init__.py create mode 100644 vsts/vsts/gallery/v4_0/__init__.py create mode 100644 vsts/vsts/gallery/v4_0/gallery_client.py create mode 100644 vsts/vsts/gallery/v4_0/models/__init__.py create mode 100644 vsts/vsts/gallery/v4_0/models/acquisition_operation.py create mode 100644 vsts/vsts/gallery/v4_0/models/acquisition_options.py create mode 100644 vsts/vsts/gallery/v4_0/models/answers.py create mode 100644 vsts/vsts/gallery/v4_0/models/asset_details.py create mode 100644 vsts/vsts/gallery/v4_0/models/azure_publisher.py create mode 100644 vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py create mode 100644 vsts/vsts/gallery/v4_0/models/categories_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/category_language_title.py create mode 100644 vsts/vsts/gallery/v4_0/models/concern.py create mode 100644 vsts/vsts/gallery/v4_0/models/event_counts.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_badge.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_category.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_daily_stat.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_daily_stats.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_event.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_events.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_file.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_filter_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_package.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_query.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_query_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_share.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_statistic.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_statistic_update.py create mode 100644 vsts/vsts/gallery/v4_0/models/extension_version.py create mode 100644 vsts/vsts/gallery/v4_0/models/filter_criteria.py create mode 100644 vsts/vsts/gallery/v4_0/models/installation_target.py create mode 100644 vsts/vsts/gallery/v4_0/models/metadata_item.py create mode 100644 vsts/vsts/gallery/v4_0/models/notifications_data.py create mode 100644 vsts/vsts/gallery/v4_0/models/product_categories_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/product_category.py create mode 100644 vsts/vsts/gallery/v4_0/models/published_extension.py create mode 100644 vsts/vsts/gallery/v4_0/models/publisher.py create mode 100644 vsts/vsts/gallery/v4_0/models/publisher_facts.py create mode 100644 vsts/vsts/gallery/v4_0/models/publisher_filter_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/publisher_query.py create mode 100644 vsts/vsts/gallery/v4_0/models/publisher_query_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/qn_aItem.py create mode 100644 vsts/vsts/gallery/v4_0/models/query_filter.py create mode 100644 vsts/vsts/gallery/v4_0/models/question.py create mode 100644 vsts/vsts/gallery/v4_0/models/questions_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py create mode 100644 vsts/vsts/gallery/v4_0/models/response.py create mode 100644 vsts/vsts/gallery/v4_0/models/review.py create mode 100644 vsts/vsts/gallery/v4_0/models/review_patch.py create mode 100644 vsts/vsts/gallery/v4_0/models/review_reply.py create mode 100644 vsts/vsts/gallery/v4_0/models/review_summary.py create mode 100644 vsts/vsts/gallery/v4_0/models/reviews_result.py create mode 100644 vsts/vsts/gallery/v4_0/models/user_identity_ref.py create mode 100644 vsts/vsts/gallery/v4_0/models/user_reported_concern.py create mode 100644 vsts/vsts/licensing/__init__.py create mode 100644 vsts/vsts/licensing/v4_0/__init__.py create mode 100644 vsts/vsts/licensing/v4_0/licensing_client.py create mode 100644 vsts/vsts/licensing/v4_0/models/__init__.py create mode 100644 vsts/vsts/licensing/v4_0/models/account_entitlement.py create mode 100644 vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py create mode 100644 vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py create mode 100644 vsts/vsts/licensing/v4_0/models/account_license_usage.py create mode 100644 vsts/vsts/licensing/v4_0/models/account_rights.py create mode 100644 vsts/vsts/licensing/v4_0/models/account_user_license.py create mode 100644 vsts/vsts/licensing/v4_0/models/client_rights_container.py create mode 100644 vsts/vsts/licensing/v4_0/models/extension_assignment.py create mode 100644 vsts/vsts/licensing/v4_0/models/extension_assignment_details.py create mode 100644 vsts/vsts/licensing/v4_0/models/extension_license_data.py create mode 100644 vsts/vsts/licensing/v4_0/models/extension_operation_result.py create mode 100644 vsts/vsts/licensing/v4_0/models/extension_rights_result.py create mode 100644 vsts/vsts/licensing/v4_0/models/extension_source.py create mode 100644 vsts/vsts/licensing/v4_0/models/iUsage_right.py create mode 100644 vsts/vsts/licensing/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/licensing/v4_0/models/license.py create mode 100644 vsts/vsts/licensing/v4_0/models/msdn_entitlement.py create mode 100644 vsts/vsts/notification/__init__.py create mode 100644 vsts/vsts/notification/v4_0/__init__.py create mode 100644 vsts/vsts/notification/v4_0/models/__init__.py create mode 100644 vsts/vsts/notification/v4_0/models/artifact_filter.py create mode 100644 vsts/vsts/notification/v4_0/models/base_subscription_filter.py create mode 100644 vsts/vsts/notification/v4_0/models/batch_notification_operation.py create mode 100644 vsts/vsts/notification/v4_0/models/event_actor.py create mode 100644 vsts/vsts/notification/v4_0/models/event_scope.py create mode 100644 vsts/vsts/notification/v4_0/models/events_evaluation_result.py create mode 100644 vsts/vsts/notification/v4_0/models/expression_filter_clause.py create mode 100644 vsts/vsts/notification/v4_0/models/expression_filter_group.py create mode 100644 vsts/vsts/notification/v4_0/models/expression_filter_model.py create mode 100644 vsts/vsts/notification/v4_0/models/field_input_values.py create mode 100644 vsts/vsts/notification/v4_0/models/field_values_query.py create mode 100644 vsts/vsts/notification/v4_0/models/iSubscription_channel.py create mode 100644 vsts/vsts/notification/v4_0/models/iSubscription_filter.py create mode 100644 vsts/vsts/notification/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/notification/v4_0/models/input_value.py create mode 100644 vsts/vsts/notification/v4_0/models/input_values.py create mode 100644 vsts/vsts/notification/v4_0/models/input_values_error.py create mode 100644 vsts/vsts/notification/v4_0/models/input_values_query.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_event_field.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_event_field_operator.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_event_field_type.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_event_publisher.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_event_role.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_event_type.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_event_type_category.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_query_condition.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_reason.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_statistic.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_statistics_query.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_subscriber.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription_template.py create mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py create mode 100644 vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py create mode 100644 vsts/vsts/notification/v4_0/models/operator_constraint.py create mode 100644 vsts/vsts/notification/v4_0/models/reference_links.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_admin_settings.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_management.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_query.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_query_condition.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_scope.py create mode 100644 vsts/vsts/notification/v4_0/models/subscription_user_settings.py create mode 100644 vsts/vsts/notification/v4_0/models/value_definition.py create mode 100644 vsts/vsts/notification/v4_0/models/vss_notification_event.py create mode 100644 vsts/vsts/notification/v4_0/notification_client.py create mode 100644 vsts/vsts/project_analysis/__init__.py create mode 100644 vsts/vsts/project_analysis/v4_0/__init__.py create mode 100644 vsts/vsts/project_analysis/v4_0/models/__init__.py create mode 100644 vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py create mode 100644 vsts/vsts/project_analysis/v4_0/models/language_statistics.py create mode 100644 vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py create mode 100644 vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py create mode 100644 vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py create mode 100644 vsts/vsts/project_analysis/v4_0/project_analysis_client.py create mode 100644 vsts/vsts/service_hooks/__init__.py create mode 100644 vsts/vsts/service_hooks/v4_0/__init__.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/__init__.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/consumer.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/consumer_action.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/event.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_descriptor.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_filter.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_validation.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_value.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_values.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_values_error.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/input_values_query.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/notification.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/notification_details.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/notification_summary.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/notifications_query.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/publisher.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/publisher_event.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/publishers_query.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/reference_links.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/resource_container.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/session_token.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/subscription.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py create mode 100644 vsts/vsts/service_hooks/v4_0/models/versioned_resource.py create mode 100644 vsts/vsts/service_hooks/v4_0/service_hooks_client.py create mode 100644 vsts/vsts/task/__init__.py create mode 100644 vsts/vsts/task/v4_0/__init__.py create mode 100644 vsts/vsts/task/v4_0/models/__init__.py create mode 100644 vsts/vsts/task/v4_0/models/issue.py create mode 100644 vsts/vsts/task/v4_0/models/job_option.py create mode 100644 vsts/vsts/task/v4_0/models/mask_hint.py create mode 100644 vsts/vsts/task/v4_0/models/plan_environment.py create mode 100644 vsts/vsts/task/v4_0/models/project_reference.py create mode 100644 vsts/vsts/task/v4_0/models/reference_links.py create mode 100644 vsts/vsts/task/v4_0/models/task_attachment.py create mode 100644 vsts/vsts/task/v4_0/models/task_log.py create mode 100644 vsts/vsts/task/v4_0/models/task_log_reference.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_container.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_item.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_owner.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_plan.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py create mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py create mode 100644 vsts/vsts/task/v4_0/models/task_reference.py create mode 100644 vsts/vsts/task/v4_0/models/timeline.py create mode 100644 vsts/vsts/task/v4_0/models/timeline_record.py create mode 100644 vsts/vsts/task/v4_0/models/timeline_reference.py create mode 100644 vsts/vsts/task/v4_0/models/variable_value.py create mode 100644 vsts/vsts/task/v4_0/task_client.py create mode 100644 vsts/vsts/task_agent/__init__.py create mode 100644 vsts/vsts/task_agent/v4_0/__init__.py create mode 100644 vsts/vsts/task_agent/v4_0/models/__init__.py create mode 100644 vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py create mode 100644 vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py create mode 100644 vsts/vsts/task_agent/v4_0/models/authorization_header.py create mode 100644 vsts/vsts/task_agent/v4_0/models/azure_subscription.py create mode 100644 vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py create mode 100644 vsts/vsts/task_agent/v4_0/models/data_source.py create mode 100644 vsts/vsts/task_agent/v4_0/models/data_source_binding.py create mode 100644 vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py create mode 100644 vsts/vsts/task_agent/v4_0/models/data_source_details.py create mode 100644 vsts/vsts/task_agent/v4_0/models/dependency_binding.py create mode 100644 vsts/vsts/task_agent/v4_0/models/dependency_data.py create mode 100644 vsts/vsts/task_agent/v4_0/models/depends_on.py create mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_group.py create mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py create mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py create mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_machine.py create mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py create mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py create mode 100644 vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py create mode 100644 vsts/vsts/task_agent/v4_0/models/endpoint_url.py create mode 100644 vsts/vsts/task_agent/v4_0/models/help_link.py create mode 100644 vsts/vsts/task_agent/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/task_agent/v4_0/models/input_descriptor.py create mode 100644 vsts/vsts/task_agent/v4_0/models/input_validation.py create mode 100644 vsts/vsts/task_agent/v4_0/models/input_validation_request.py create mode 100644 vsts/vsts/task_agent/v4_0/models/input_value.py create mode 100644 vsts/vsts/task_agent/v4_0/models/input_values.py create mode 100644 vsts/vsts/task_agent/v4_0/models/input_values_error.py create mode 100644 vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py create mode 100644 vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py create mode 100644 vsts/vsts/task_agent/v4_0/models/metrics_row.py create mode 100644 vsts/vsts/task_agent/v4_0/models/package_metadata.py create mode 100644 vsts/vsts/task_agent/v4_0/models/package_version.py create mode 100644 vsts/vsts/task_agent/v4_0/models/project_reference.py create mode 100644 vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py create mode 100644 vsts/vsts/task_agent/v4_0/models/reference_links.py create mode 100644 vsts/vsts/task_agent/v4_0/models/result_transformation_details.py create mode 100644 vsts/vsts/task_agent/v4_0/models/secure_file.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py create mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_message.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_queue.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_reference.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_session.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_update.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_definition.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_definition_reference.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_execution.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_group.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_group_definition.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_group_revision.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_group_step.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_input_definition.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_input_validation.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_output_variable.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_package_metadata.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_reference.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_source_definition.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py create mode 100644 vsts/vsts/task_agent/v4_0/models/task_version.py create mode 100644 vsts/vsts/task_agent/v4_0/models/validation_item.py create mode 100644 vsts/vsts/task_agent/v4_0/models/variable_group.py create mode 100644 vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py create mode 100644 vsts/vsts/task_agent/v4_0/models/variable_value.py create mode 100644 vsts/vsts/task_agent/v4_0/task_agent_client.py create mode 100644 vsts/vsts/test/__init__.py create mode 100644 vsts/vsts/test/v4_0/__init__.py create mode 100644 vsts/vsts/test/v4_0/models/__init__.py create mode 100644 vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py create mode 100644 vsts/vsts/test/v4_0/models/aggregated_results_analysis.py create mode 100644 vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py create mode 100644 vsts/vsts/test/v4_0/models/aggregated_results_difference.py create mode 100644 vsts/vsts/test/v4_0/models/build_configuration.py create mode 100644 vsts/vsts/test/v4_0/models/build_coverage.py create mode 100644 vsts/vsts/test/v4_0/models/build_reference.py create mode 100644 vsts/vsts/test/v4_0/models/clone_operation_information.py create mode 100644 vsts/vsts/test/v4_0/models/clone_options.py create mode 100644 vsts/vsts/test/v4_0/models/clone_statistics.py create mode 100644 vsts/vsts/test/v4_0/models/code_coverage_data.py create mode 100644 vsts/vsts/test/v4_0/models/code_coverage_statistics.py create mode 100644 vsts/vsts/test/v4_0/models/code_coverage_summary.py create mode 100644 vsts/vsts/test/v4_0/models/coverage_statistics.py create mode 100644 vsts/vsts/test/v4_0/models/custom_test_field.py create mode 100644 vsts/vsts/test/v4_0/models/custom_test_field_definition.py create mode 100644 vsts/vsts/test/v4_0/models/dtl_environment_details.py create mode 100644 vsts/vsts/test/v4_0/models/failing_since.py create mode 100644 vsts/vsts/test/v4_0/models/function_coverage.py create mode 100644 vsts/vsts/test/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/test/v4_0/models/last_result_details.py create mode 100644 vsts/vsts/test/v4_0/models/linked_work_items_query.py create mode 100644 vsts/vsts/test/v4_0/models/linked_work_items_query_result.py create mode 100644 vsts/vsts/test/v4_0/models/module_coverage.py create mode 100644 vsts/vsts/test/v4_0/models/name_value_pair.py create mode 100644 vsts/vsts/test/v4_0/models/plan_update_model.py create mode 100644 vsts/vsts/test/v4_0/models/point_assignment.py create mode 100644 vsts/vsts/test/v4_0/models/point_update_model.py create mode 100644 vsts/vsts/test/v4_0/models/points_filter.py create mode 100644 vsts/vsts/test/v4_0/models/property_bag.py create mode 100644 vsts/vsts/test/v4_0/models/query_model.py create mode 100644 vsts/vsts/test/v4_0/models/release_environment_definition_reference.py create mode 100644 vsts/vsts/test/v4_0/models/release_reference.py create mode 100644 vsts/vsts/test/v4_0/models/result_retention_settings.py create mode 100644 vsts/vsts/test/v4_0/models/results_filter.py create mode 100644 vsts/vsts/test/v4_0/models/run_create_model.py create mode 100644 vsts/vsts/test/v4_0/models/run_filter.py create mode 100644 vsts/vsts/test/v4_0/models/run_statistic.py create mode 100644 vsts/vsts/test/v4_0/models/run_update_model.py create mode 100644 vsts/vsts/test/v4_0/models/shallow_reference.py create mode 100644 vsts/vsts/test/v4_0/models/shared_step_model.py create mode 100644 vsts/vsts/test/v4_0/models/suite_create_model.py create mode 100644 vsts/vsts/test/v4_0/models/suite_entry.py create mode 100644 vsts/vsts/test/v4_0/models/suite_entry_update_model.py create mode 100644 vsts/vsts/test/v4_0/models/suite_test_case.py create mode 100644 vsts/vsts/test/v4_0/models/team_context.py create mode 100644 vsts/vsts/test/v4_0/models/team_project_reference.py create mode 100644 vsts/vsts/test/v4_0/models/test_action_result_model.py create mode 100644 vsts/vsts/test/v4_0/models/test_attachment.py create mode 100644 vsts/vsts/test/v4_0/models/test_attachment_reference.py create mode 100644 vsts/vsts/test/v4_0/models/test_attachment_request_model.py create mode 100644 vsts/vsts/test/v4_0/models/test_case_result.py create mode 100644 vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py create mode 100644 vsts/vsts/test/v4_0/models/test_case_result_identifier.py create mode 100644 vsts/vsts/test/v4_0/models/test_case_result_update_model.py create mode 100644 vsts/vsts/test/v4_0/models/test_configuration.py create mode 100644 vsts/vsts/test/v4_0/models/test_environment.py create mode 100644 vsts/vsts/test/v4_0/models/test_failure_details.py create mode 100644 vsts/vsts/test/v4_0/models/test_failures_analysis.py create mode 100644 vsts/vsts/test/v4_0/models/test_iteration_details_model.py create mode 100644 vsts/vsts/test/v4_0/models/test_message_log_details.py create mode 100644 vsts/vsts/test/v4_0/models/test_method.py create mode 100644 vsts/vsts/test/v4_0/models/test_operation_reference.py create mode 100644 vsts/vsts/test/v4_0/models/test_plan.py create mode 100644 vsts/vsts/test/v4_0/models/test_plan_clone_request.py create mode 100644 vsts/vsts/test/v4_0/models/test_point.py create mode 100644 vsts/vsts/test/v4_0/models/test_points_query.py create mode 100644 vsts/vsts/test/v4_0/models/test_resolution_state.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_create_model.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_document.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_history.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_model_base.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_parameter_model.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_payload.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_summary.py create mode 100644 vsts/vsts/test/v4_0/models/test_result_trend_filter.py create mode 100644 vsts/vsts/test/v4_0/models/test_results_context.py create mode 100644 vsts/vsts/test/v4_0/models/test_results_details.py create mode 100644 vsts/vsts/test/v4_0/models/test_results_details_for_group.py create mode 100644 vsts/vsts/test/v4_0/models/test_results_query.py create mode 100644 vsts/vsts/test/v4_0/models/test_run.py create mode 100644 vsts/vsts/test/v4_0/models/test_run_coverage.py create mode 100644 vsts/vsts/test/v4_0/models/test_run_statistic.py create mode 100644 vsts/vsts/test/v4_0/models/test_session.py create mode 100644 vsts/vsts/test/v4_0/models/test_settings.py create mode 100644 vsts/vsts/test/v4_0/models/test_suite.py create mode 100644 vsts/vsts/test/v4_0/models/test_suite_clone_request.py create mode 100644 vsts/vsts/test/v4_0/models/test_summary_for_work_item.py create mode 100644 vsts/vsts/test/v4_0/models/test_to_work_item_links.py create mode 100644 vsts/vsts/test/v4_0/models/test_variable.py create mode 100644 vsts/vsts/test/v4_0/models/work_item_reference.py create mode 100644 vsts/vsts/test/v4_0/models/work_item_to_test_links.py create mode 100644 vsts/vsts/test/v4_0/test_client.py create mode 100644 vsts/vsts/tfvc/__init__.py create mode 100644 vsts/vsts/tfvc/v4_0/__init__.py create mode 100644 vsts/vsts/tfvc/v4_0/models/__init__.py create mode 100644 vsts/vsts/tfvc/v4_0/models/associated_work_item.py create mode 100644 vsts/vsts/tfvc/v4_0/models/change.py create mode 100644 vsts/vsts/tfvc/v4_0/models/checkin_note.py create mode 100644 vsts/vsts/tfvc/v4_0/models/file_content_metadata.py create mode 100644 vsts/vsts/tfvc/v4_0/models/git_repository.py create mode 100644 vsts/vsts/tfvc/v4_0/models/git_repository_ref.py create mode 100644 vsts/vsts/tfvc/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/tfvc/v4_0/models/item_content.py create mode 100644 vsts/vsts/tfvc/v4_0/models/item_model.py create mode 100644 vsts/vsts/tfvc/v4_0/models/reference_links.py create mode 100644 vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py create mode 100644 vsts/vsts/tfvc/v4_0/models/team_project_reference.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_branch.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_change.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_item.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_label.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py create mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py create mode 100644 vsts/vsts/tfvc/v4_0/models/version_control_project_info.py create mode 100644 vsts/vsts/tfvc/v4_0/models/vsts_info.py create mode 100644 vsts/vsts/tfvc/v4_0/tfvc_client.py create mode 100644 vsts/vsts/work/__init__.py create mode 100644 vsts/vsts/work/v4_0/__init__.py create mode 100644 vsts/vsts/work/v4_0/models/__init__.py create mode 100644 vsts/vsts/work/v4_0/models/activity.py create mode 100644 vsts/vsts/work/v4_0/models/attribute.py create mode 100644 vsts/vsts/work/v4_0/models/backlog_column.py create mode 100644 vsts/vsts/work/v4_0/models/backlog_configuration.py create mode 100644 vsts/vsts/work/v4_0/models/backlog_fields.py create mode 100644 vsts/vsts/work/v4_0/models/backlog_level.py create mode 100644 vsts/vsts/work/v4_0/models/backlog_level_configuration.py create mode 100644 vsts/vsts/work/v4_0/models/board.py create mode 100644 vsts/vsts/work/v4_0/models/board_card_rule_settings.py create mode 100644 vsts/vsts/work/v4_0/models/board_card_settings.py create mode 100644 vsts/vsts/work/v4_0/models/board_chart.py create mode 100644 vsts/vsts/work/v4_0/models/board_chart_reference.py create mode 100644 vsts/vsts/work/v4_0/models/board_column.py create mode 100644 vsts/vsts/work/v4_0/models/board_fields.py create mode 100644 vsts/vsts/work/v4_0/models/board_filter_settings.py create mode 100644 vsts/vsts/work/v4_0/models/board_reference.py create mode 100644 vsts/vsts/work/v4_0/models/board_row.py create mode 100644 vsts/vsts/work/v4_0/models/board_suggested_value.py create mode 100644 vsts/vsts/work/v4_0/models/board_user_settings.py create mode 100644 vsts/vsts/work/v4_0/models/capacity_patch.py create mode 100644 vsts/vsts/work/v4_0/models/category_configuration.py create mode 100644 vsts/vsts/work/v4_0/models/create_plan.py create mode 100644 vsts/vsts/work/v4_0/models/date_range.py create mode 100644 vsts/vsts/work/v4_0/models/delivery_view_data.py create mode 100644 vsts/vsts/work/v4_0/models/field_reference.py create mode 100644 vsts/vsts/work/v4_0/models/field_setting.py create mode 100644 vsts/vsts/work/v4_0/models/filter_clause.py create mode 100644 vsts/vsts/work/v4_0/models/filter_group.py create mode 100644 vsts/vsts/work/v4_0/models/filter_model.py create mode 100644 vsts/vsts/work/v4_0/models/identity_ref.py create mode 100644 vsts/vsts/work/v4_0/models/member.py create mode 100644 vsts/vsts/work/v4_0/models/parent_child_wIMap.py create mode 100644 vsts/vsts/work/v4_0/models/plan.py create mode 100644 vsts/vsts/work/v4_0/models/plan_view_data.py create mode 100644 vsts/vsts/work/v4_0/models/process_configuration.py create mode 100644 vsts/vsts/work/v4_0/models/reference_links.py create mode 100644 vsts/vsts/work/v4_0/models/rule.py create mode 100644 vsts/vsts/work/v4_0/models/team_context.py create mode 100644 vsts/vsts/work/v4_0/models/team_field_value.py create mode 100644 vsts/vsts/work/v4_0/models/team_field_values.py create mode 100644 vsts/vsts/work/v4_0/models/team_field_values_patch.py create mode 100644 vsts/vsts/work/v4_0/models/team_iteration_attributes.py create mode 100644 vsts/vsts/work/v4_0/models/team_member_capacity.py create mode 100644 vsts/vsts/work/v4_0/models/team_setting.py create mode 100644 vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py create mode 100644 vsts/vsts/work/v4_0/models/team_settings_days_off.py create mode 100644 vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py create mode 100644 vsts/vsts/work/v4_0/models/team_settings_iteration.py create mode 100644 vsts/vsts/work/v4_0/models/team_settings_patch.py create mode 100644 vsts/vsts/work/v4_0/models/timeline_criteria_status.py create mode 100644 vsts/vsts/work/v4_0/models/timeline_iteration_status.py create mode 100644 vsts/vsts/work/v4_0/models/timeline_team_data.py create mode 100644 vsts/vsts/work/v4_0/models/timeline_team_iteration.py create mode 100644 vsts/vsts/work/v4_0/models/timeline_team_status.py create mode 100644 vsts/vsts/work/v4_0/models/update_plan.py create mode 100644 vsts/vsts/work/v4_0/models/work_item_color.py create mode 100644 vsts/vsts/work/v4_0/models/work_item_field_reference.py create mode 100644 vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py create mode 100644 vsts/vsts/work/v4_0/models/work_item_type_reference.py create mode 100644 vsts/vsts/work/v4_0/models/work_item_type_state_info.py create mode 100644 vsts/vsts/work/v4_0/work_client.py diff --git a/vsts/vsts/accounts/__init__.py b/vsts/vsts/accounts/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/accounts/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/accounts/v4_0/__init__.py b/vsts/vsts/accounts/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/accounts/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/accounts/v4_0/accounts_client.py b/vsts/vsts/accounts/v4_0/accounts_client.py new file mode 100644 index 00000000..b622946c --- /dev/null +++ b/vsts/vsts/accounts/v4_0/accounts_client.py @@ -0,0 +1,91 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class AccountsClient(VssClient): + """Accounts + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(AccountsClient, 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 create_account(self, info, use_precreated=None): + """CreateAccount. + :param :class:` ` info: + :param bool use_precreated: + :rtype: :class:` ` + """ + query_parameters = {} + if use_precreated is not None: + query_parameters['usePrecreated'] = self._serialize.query('use_precreated', use_precreated, 'bool') + content = self._serialize.body(info, 'AccountCreateInfoInternal') + response = self._send(http_method='POST', + location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', + version='4.0', + query_parameters=query_parameters, + content=content) + return self._deserialize('Account', response) + + def get_account(self, account_id): + """GetAccount. + :param str account_id: + :rtype: :class:` ` + """ + route_values = {} + if account_id is not None: + route_values['accountId'] = self._serialize.url('account_id', account_id, 'str') + response = self._send(http_method='GET', + location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', + version='4.0', + route_values=route_values) + return self._deserialize('Account', response) + + def get_accounts(self, owner_id=None, member_id=None, properties=None): + """GetAccounts. + A new version GetAccounts API. Only supports limited set of parameters, returns a list of account ref objects that only contains AccountUrl, AccountName and AccountId information, will use collection host Id as the AccountId. + :param str owner_id: Owner Id to query for + :param str member_id: Member Id to query for + :param str properties: Only support service URL properties + :rtype: [Account] + """ + query_parameters = {} + if owner_id is not None: + query_parameters['ownerId'] = self._serialize.query('owner_id', owner_id, 'str') + if member_id is not None: + query_parameters['memberId'] = self._serialize.query('member_id', member_id, 'str') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + response = self._send(http_method='GET', + location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Account]', response) + + def get_account_settings(self): + """GetAccountSettings. + [Preview API] + :rtype: {str} + """ + response = self._send(http_method='GET', + location_id='4e012dd4-f8e1-485d-9bb3-c50d83c5b71b', + version='4.0-preview.1', + returns_collection=True) + return self._deserialize('{str}', response) + diff --git a/vsts/vsts/accounts/v4_0/models/__init__.py b/vsts/vsts/accounts/v4_0/models/__init__.py new file mode 100644 index 00000000..2c3eee0b --- /dev/null +++ b/vsts/vsts/accounts/v4_0/models/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 .account import Account +from .account_create_info_internal import AccountCreateInfoInternal +from .account_preferences_internal import AccountPreferencesInternal + +__all__ = [ + 'Account', + 'AccountCreateInfoInternal', + 'AccountPreferencesInternal', +] diff --git a/vsts/vsts/accounts/v4_0/models/account.py b/vsts/vsts/accounts/v4_0/models/account.py new file mode 100644 index 00000000..ff00f955 --- /dev/null +++ b/vsts/vsts/accounts/v4_0/models/account.py @@ -0,0 +1,85 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Account(Model): + """Account. + + :param account_id: Identifier for an Account + :type account_id: str + :param account_name: Name for an account + :type account_name: str + :param account_owner: Owner of account + :type account_owner: str + :param account_status: Current account status + :type account_status: object + :param account_type: Type of account: Personal, Organization + :type account_type: object + :param account_uri: Uri for an account + :type account_uri: str + :param created_by: Who created the account + :type created_by: str + :param created_date: Date account was created + :type created_date: datetime + :param has_moved: + :type has_moved: bool + :param last_updated_by: Identity of last person to update the account + :type last_updated_by: str + :param last_updated_date: Date account was last updated + :type last_updated_date: datetime + :param namespace_id: Namespace for an account + :type namespace_id: str + :param new_collection_id: + :type new_collection_id: str + :param organization_name: Organization that created the account + :type organization_name: str + :param properties: Extended properties + :type properties: :class:`object ` + :param status_reason: Reason for current status + :type status_reason: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'account_owner': {'key': 'accountOwner', 'type': 'str'}, + 'account_status': {'key': 'accountStatus', 'type': 'object'}, + 'account_type': {'key': 'accountType', 'type': 'object'}, + 'account_uri': {'key': 'accountUri', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'has_moved': {'key': 'hasMoved', 'type': 'bool'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'str'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'new_collection_id': {'key': 'newCollectionId', 'type': 'str'}, + 'organization_name': {'key': 'organizationName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'status_reason': {'key': 'statusReason', 'type': 'str'} + } + + def __init__(self, account_id=None, account_name=None, account_owner=None, account_status=None, account_type=None, account_uri=None, created_by=None, created_date=None, has_moved=None, last_updated_by=None, last_updated_date=None, namespace_id=None, new_collection_id=None, organization_name=None, properties=None, status_reason=None): + super(Account, self).__init__() + self.account_id = account_id + self.account_name = account_name + self.account_owner = account_owner + self.account_status = account_status + self.account_type = account_type + self.account_uri = account_uri + self.created_by = created_by + self.created_date = created_date + self.has_moved = has_moved + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.namespace_id = namespace_id + self.new_collection_id = new_collection_id + self.organization_name = organization_name + self.properties = properties + self.status_reason = status_reason diff --git a/vsts/vsts/accounts/v4_0/models/account_create_info_internal.py b/vsts/vsts/accounts/v4_0/models/account_create_info_internal.py new file mode 100644 index 00000000..00510434 --- /dev/null +++ b/vsts/vsts/accounts/v4_0/models/account_create_info_internal.py @@ -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.serialization import Model + + +class AccountCreateInfoInternal(Model): + """AccountCreateInfoInternal. + + :param account_name: + :type account_name: str + :param creator: + :type creator: str + :param organization: + :type organization: str + :param preferences: + :type preferences: :class:`AccountPreferencesInternal ` + :param properties: + :type properties: :class:`object ` + :param service_definitions: + :type service_definitions: list of { key: str; value: str } + """ + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'creator': {'key': 'creator', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'str'}, + 'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'} + } + + def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None): + super(AccountCreateInfoInternal, self).__init__() + self.account_name = account_name + self.creator = creator + self.organization = organization + self.preferences = preferences + self.properties = properties + self.service_definitions = service_definitions diff --git a/vsts/vsts/accounts/v4_0/models/account_preferences_internal.py b/vsts/vsts/accounts/v4_0/models/account_preferences_internal.py new file mode 100644 index 00000000..506c60aa --- /dev/null +++ b/vsts/vsts/accounts/v4_0/models/account_preferences_internal.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountPreferencesInternal(Model): + """AccountPreferencesInternal. + + :param culture: + :type culture: object + :param language: + :type language: object + :param time_zone: + :type time_zone: object + """ + + _attribute_map = { + 'culture': {'key': 'culture', 'type': 'object'}, + 'language': {'key': 'language', 'type': 'object'}, + 'time_zone': {'key': 'timeZone', 'type': 'object'} + } + + def __init__(self, culture=None, language=None, time_zone=None): + super(AccountPreferencesInternal, self).__init__() + self.culture = culture + self.language = language + self.time_zone = time_zone diff --git a/vsts/vsts/contributions/__init__.py b/vsts/vsts/contributions/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/contributions/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/contributions/v4_0/__init__.py b/vsts/vsts/contributions/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/contributions/v4_0/contributions_client.py b/vsts/vsts/contributions/v4_0/contributions_client.py new file mode 100644 index 00000000..74b28db3 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/contributions_client.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ContributionsClient(VssClient): + """Contributions + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ContributionsClient, 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 query_contribution_nodes(self, query): + """QueryContributionNodes. + [Preview API] Query for contribution nodes and provider details according the parameters in the passed in query object. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'ContributionNodeQuery') + response = self._send(http_method='POST', + location_id='db7f2146-2309-4cee-b39c-c767777a1c55', + version='4.0-preview.1', + content=content) + return self._deserialize('ContributionNodeQueryResult', response) + + def query_data_providers(self, query): + """QueryDataProviders. + [Preview API] + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'DataProviderQuery') + response = self._send(http_method='POST', + location_id='738368db-35ee-4b85-9f94-77ed34af2b0d', + version='4.0-preview.1', + content=content) + return self._deserialize('DataProviderResult', response) + + def get_installed_extensions(self, contribution_ids=None, include_disabled_apps=None, asset_types=None): + """GetInstalledExtensions. + [Preview API] + :param [str] contribution_ids: + :param bool include_disabled_apps: + :param [str] asset_types: + :rtype: [InstalledExtension] + """ + query_parameters = {} + if contribution_ids is not None: + contribution_ids = ";".join(contribution_ids) + query_parameters['contributionIds'] = self._serialize.query('contribution_ids', contribution_ids, 'str') + if include_disabled_apps is not None: + query_parameters['includeDisabledApps'] = self._serialize.query('include_disabled_apps', include_disabled_apps, 'bool') + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + response = self._send(http_method='GET', + location_id='2648442b-fd63-4b9a-902f-0c913510f139', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[InstalledExtension]', response) + + def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): + """GetInstalledExtensionByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param [str] asset_types: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + response = self._send(http_method='GET', + location_id='3e2f6668-0798-4dcb-b592-bfe2fa57fde2', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('InstalledExtension', response) + diff --git a/vsts/vsts/contributions/v4_0/models/__init__.py b/vsts/vsts/contributions/v4_0/models/__init__.py new file mode 100644 index 00000000..a2b2f347 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/__init__.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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 .client_data_provider_query import ClientDataProviderQuery +from .contribution import Contribution +from .contribution_base import ContributionBase +from .contribution_constraint import ContributionConstraint +from .contribution_node_query import ContributionNodeQuery +from .contribution_node_query_result import ContributionNodeQueryResult +from .contribution_property_description import ContributionPropertyDescription +from .contribution_provider_details import ContributionProviderDetails +from .contribution_type import ContributionType +from .data_provider_context import DataProviderContext +from .data_provider_exception_details import DataProviderExceptionDetails +from .data_provider_query import DataProviderQuery +from .data_provider_result import DataProviderResult +from .extension_event_callback import ExtensionEventCallback +from .extension_event_callback_collection import ExtensionEventCallbackCollection +from .extension_file import ExtensionFile +from .extension_licensing import ExtensionLicensing +from .extension_manifest import ExtensionManifest +from .installed_extension import InstalledExtension +from .installed_extension_state import InstalledExtensionState +from .installed_extension_state_issue import InstalledExtensionStateIssue +from .licensing_override import LicensingOverride +from .resolved_data_provider import ResolvedDataProvider +from .serialized_contribution_node import SerializedContributionNode + +__all__ = [ + 'ClientDataProviderQuery', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionNodeQuery', + 'ContributionNodeQueryResult', + 'ContributionPropertyDescription', + 'ContributionProviderDetails', + 'ContributionType', + 'DataProviderContext', + 'DataProviderExceptionDetails', + 'DataProviderQuery', + 'DataProviderResult', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionLicensing', + 'ExtensionManifest', + 'InstalledExtension', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'ResolvedDataProvider', + 'SerializedContributionNode', +] diff --git a/vsts/vsts/contributions/v4_0/models/client_data_provider_query.py b/vsts/vsts/contributions/v4_0/models/client_data_provider_query.py new file mode 100644 index 00000000..f6f8d2cf --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/client_data_provider_query.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .data_provider_query import DataProviderQuery + + +class ClientDataProviderQuery(DataProviderQuery): + """ClientDataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. + :type query_service_instance_type: str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'query_service_instance_type': {'key': 'queryServiceInstanceType', 'type': 'str'} + } + + def __init__(self, context=None, contribution_ids=None, query_service_instance_type=None): + super(ClientDataProviderQuery, self).__init__(context=context, contribution_ids=contribution_ids) + self.query_service_instance_type = query_service_instance_type diff --git a/vsts/vsts/contributions/v4_0/models/contribution.py b/vsts/vsts/contributions/v4_0/models/contribution.py new file mode 100644 index 00000000..41f648f5 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution.py @@ -0,0 +1,50 @@ +# -------------------------------------------------------------------------------------------- +# 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 .contribution_base import ContributionBase + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type diff --git a/vsts/vsts/contributions/v4_0/models/contribution_base.py b/vsts/vsts/contributions/v4_0/models/contribution_base.py new file mode 100644 index 00000000..4a2402c0 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution_base.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to diff --git a/vsts/vsts/contributions/v4_0/models/contribution_constraint.py b/vsts/vsts/contributions/v4_0/models/contribution_constraint.py new file mode 100644 index 00000000..bf82e72b --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution_constraint.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter class + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships diff --git a/vsts/vsts/contributions/v4_0/models/contribution_node_query.py b/vsts/vsts/contributions/v4_0/models/contribution_node_query.py new file mode 100644 index 00000000..39d2c5ad --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution_node_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionNodeQuery(Model): + """ContributionNodeQuery. + + :param contribution_ids: The contribution ids of the nodes to find. + :type contribution_ids: list of str + :param include_provider_details: Indicator if contribution provider details should be included in the result. + :type include_provider_details: bool + :param query_options: Query options tpo be used when fetching ContributionNodes + :type query_options: object + """ + + _attribute_map = { + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, + 'query_options': {'key': 'queryOptions', 'type': 'object'} + } + + def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): + super(ContributionNodeQuery, self).__init__() + self.contribution_ids = contribution_ids + self.include_provider_details = include_provider_details + self.query_options = query_options diff --git a/vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py b/vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py new file mode 100644 index 00000000..902bac31 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionNodeQueryResult(Model): + """ContributionNodeQueryResult. + + :param nodes: Map of contribution ids to corresponding node. + :type nodes: dict + :param provider_details: Map of provder ids to the corresponding provider details object. + :type provider_details: dict + """ + + _attribute_map = { + 'nodes': {'key': 'nodes', 'type': '{SerializedContributionNode}'}, + 'provider_details': {'key': 'providerDetails', 'type': '{ContributionProviderDetails}'} + } + + def __init__(self, nodes=None, provider_details=None): + super(ContributionNodeQueryResult, self).__init__() + self.nodes = nodes + self.provider_details = provider_details diff --git a/vsts/vsts/contributions/v4_0/models/contribution_property_description.py b/vsts/vsts/contributions/v4_0/models/contribution_property_description.py new file mode 100644 index 00000000..d4684adf --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution_property_description.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type diff --git a/vsts/vsts/contributions/v4_0/models/contribution_provider_details.py b/vsts/vsts/contributions/v4_0/models/contribution_provider_details.py new file mode 100644 index 00000000..0cdda303 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution_provider_details.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionProviderDetails(Model): + """ContributionProviderDetails. + + :param display_name: Friendly name for the provider. + :type display_name: str + :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes + :type name: str + :param properties: Properties associated with the provider + :type properties: dict + :param version: Version of contributions assoicated with this contribution provider. + :type version: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, display_name=None, name=None, properties=None, version=None): + super(ContributionProviderDetails, self).__init__() + self.display_name = display_name + self.name = name + self.properties = properties + self.version = version diff --git a/vsts/vsts/contributions/v4_0/models/contribution_type.py b/vsts/vsts/contributions/v4_0/models/contribution_type.py new file mode 100644 index 00000000..4eda81f4 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/contribution_type.py @@ -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 .contribution_base import ContributionBase + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_context.py b/vsts/vsts/contributions/v4_0/models/data_provider_context.py new file mode 100644 index 00000000..c57c845d --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/data_provider_context.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderContext(Model): + """DataProviderContext. + + :param properties: Generic property bag that contains context-specific properties that data providers can use when populating their data dictionary + :type properties: dict + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, properties=None): + super(DataProviderContext, self).__init__() + self.properties = properties diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py b/vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py new file mode 100644 index 00000000..96c3b8c7 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderExceptionDetails(Model): + """DataProviderExceptionDetails. + + :param exception_type: The type of the exception that was thrown. + :type exception_type: str + :param message: Message that is associated with the exception. + :type message: str + :param stack_trace: The StackTrace from the exception turned into a string. + :type stack_trace: str + """ + + _attribute_map = { + 'exception_type': {'key': 'exceptionType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'} + } + + def __init__(self, exception_type=None, message=None, stack_trace=None): + super(DataProviderExceptionDetails, self).__init__() + self.exception_type = exception_type + self.message = message + self.stack_trace = stack_trace diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_query.py b/vsts/vsts/contributions/v4_0/models/data_provider_query.py new file mode 100644 index 00000000..221d4cb3 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/data_provider_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderQuery(Model): + """DataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'} + } + + def __init__(self, context=None, contribution_ids=None): + super(DataProviderQuery, self).__init__() + self.context = context + self.contribution_ids = contribution_ids diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_result.py b/vsts/vsts/contributions/v4_0/models/data_provider_result.py new file mode 100644 index 00000000..e7b519fc --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/data_provider_result.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderResult(Model): + """DataProviderResult. + + :param client_providers: This is the set of data providers that were requested, but either they were defined as client providers, or as remote providers that failed and may be retried by the client. + :type client_providers: dict + :param data: Property bag of data keyed off of the data provider contribution id + :type data: dict + :param exceptions: Set of exceptions that occurred resolving the data providers. + :type exceptions: dict + :param resolved_providers: List of data providers resolved in the data-provider query + :type resolved_providers: list of :class:`ResolvedDataProvider ` + :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers + :type shared_data: dict + """ + + _attribute_map = { + 'client_providers': {'key': 'clientProviders', 'type': '{ClientDataProviderQuery}'}, + 'data': {'key': 'data', 'type': '{object}'}, + 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, + 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, + 'shared_data': {'key': 'sharedData', 'type': '{object}'} + } + + def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, shared_data=None): + super(DataProviderResult, self).__init__() + self.client_providers = client_providers + self.data = data + self.exceptions = exceptions + self.resolved_providers = resolved_providers + self.shared_data = shared_data diff --git a/vsts/vsts/contributions/v4_0/models/extension_event_callback.py b/vsts/vsts/contributions/v4_0/models/extension_event_callback.py new file mode 100644 index 00000000..59ab677a --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/extension_event_callback.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri diff --git a/vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py b/vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py new file mode 100644 index 00000000..d455ef88 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check diff --git a/vsts/vsts/contributions/v4_0/models/extension_file.py b/vsts/vsts/contributions/v4_0/models/extension_file.py new file mode 100644 index 00000000..ba792fd5 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/extension_file.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param content_type: + :type content_type: str + :param file_id: + :type file_id: int + :param is_default: + :type is_default: bool + :param is_public: + :type is_public: bool + :param language: + :type language: str + :param short_description: + :type short_description: str + :param source: + :type source: str + :param version: + :type version: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.content_type = content_type + self.file_id = file_id + self.is_default = is_default + self.is_public = is_public + self.language = language + self.short_description = short_description + self.source = source + self.version = version diff --git a/vsts/vsts/contributions/v4_0/models/extension_licensing.py b/vsts/vsts/contributions/v4_0/models/extension_licensing.py new file mode 100644 index 00000000..286cbcdc --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/extension_licensing.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides diff --git a/vsts/vsts/contributions/v4_0/models/extension_manifest.py b/vsts/vsts/contributions/v4_0/models/extension_manifest.py new file mode 100644 index 00000000..dff371a9 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/extension_manifest.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.scopes = scopes + self.service_instance_type = service_instance_type diff --git a/vsts/vsts/contributions/v4_0/models/installed_extension.py b/vsts/vsts/contributions/v4_0/models/installed_extension.py new file mode 100644 index 00000000..e8f24964 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/installed_extension.py @@ -0,0 +1,94 @@ +# -------------------------------------------------------------------------------------------- +# 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 .extension_manifest import ExtensionManifest + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version diff --git a/vsts/vsts/contributions/v4_0/models/installed_extension_state.py b/vsts/vsts/contributions/v4_0/models/installed_extension_state.py new file mode 100644 index 00000000..e612084b --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/installed_extension_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated diff --git a/vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py b/vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py new file mode 100644 index 00000000..e66bb556 --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type diff --git a/vsts/vsts/contributions/v4_0/models/licensing_override.py b/vsts/vsts/contributions/v4_0/models/licensing_override.py new file mode 100644 index 00000000..7812d57f --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/licensing_override.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id diff --git a/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py b/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py new file mode 100644 index 00000000..75845c8e --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResolvedDataProvider(Model): + """ResolvedDataProvider. + + :param duration: The total time the data provider took to resolve its data (in milliseconds) + :type duration: number + :param error: + :type error: str + :param id: + :type id: str + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'number'}, + 'error': {'key': 'error', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, duration=None, error=None, id=None): + super(ResolvedDataProvider, self).__init__() + self.duration = duration + self.error = error + self.id = id diff --git a/vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py b/vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py new file mode 100644 index 00000000..e89e08ae --- /dev/null +++ b/vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SerializedContributionNode(Model): + """SerializedContributionNode. + + :param children: List of ids for contributions which are children to the current contribution. + :type children: list of str + :param contribution: Contribution associated with this node. + :type contribution: :class:`Contribution ` + :param parents: List of ids for contributions which are parents to the current contribution. + :type parents: list of str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[str]'}, + 'contribution': {'key': 'contribution', 'type': 'Contribution'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, children=None, contribution=None, parents=None): + super(SerializedContributionNode, self).__init__() + self.children = children + self.contribution = contribution + self.parents = parents diff --git a/vsts/vsts/dashboard/__init__.py b/vsts/vsts/dashboard/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/dashboard/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/v4_0/__init__.py b/vsts/vsts/dashboard/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/v4_0/dashboard_client.py b/vsts/vsts/dashboard/v4_0/dashboard_client.py new file mode 100644 index 00000000..a1ec1733 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/dashboard_client.py @@ -0,0 +1,428 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class DashboardClient(VssClient): + """Dashboard + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(DashboardClient, 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 create_dashboard(self, dashboard, team_context): + """CreateDashboard. + [Preview API] + :param :class:` ` dashboard: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(dashboard, 'Dashboard') + response = self._send(http_method='POST', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Dashboard', response) + + def delete_dashboard(self, team_context, dashboard_id): + """DeleteDashboard. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + self._send(http_method='DELETE', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.0-preview.2', + route_values=route_values) + + def get_dashboard(self, team_context, dashboard_id): + """GetDashboard. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + response = self._send(http_method='GET', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('Dashboard', response) + + def get_dashboards(self, team_context): + """GetDashboards. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('DashboardGroup', response) + + def replace_dashboard(self, dashboard, team_context, dashboard_id): + """ReplaceDashboard. + [Preview API] + :param :class:` ` dashboard: + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(dashboard, 'Dashboard') + response = self._send(http_method='PUT', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Dashboard', response) + + def replace_dashboards(self, group, team_context): + """ReplaceDashboards. + [Preview API] + :param :class:` ` group: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(group, 'DashboardGroup') + response = self._send(http_method='PUT', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('DashboardGroup', response) + + def create_widget(self, widget, team_context, dashboard_id): + """CreateWidget. + [Preview API] + :param :class:` ` widget: + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(widget, 'Widget') + response = self._send(http_method='POST', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Widget', response) + + def delete_widget(self, team_context, dashboard_id, widget_id): + """DeleteWidget. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :param str widget_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + response = self._send(http_method='DELETE', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('Dashboard', response) + + def get_widget(self, team_context, dashboard_id, widget_id): + """GetWidget. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :param str widget_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + response = self._send(http_method='GET', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('Widget', response) + + def replace_widget(self, widget, team_context, dashboard_id, widget_id): + """ReplaceWidget. + [Preview API] + :param :class:` ` widget: + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :param str widget_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + content = self._serialize.body(widget, 'Widget') + response = self._send(http_method='PUT', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Widget', response) + + def update_widget(self, widget, team_context, dashboard_id, widget_id): + """UpdateWidget. + [Preview API] + :param :class:` ` widget: + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :param str widget_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + content = self._serialize.body(widget, 'Widget') + response = self._send(http_method='PATCH', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Widget', response) + + def get_widget_metadata(self, contribution_id): + """GetWidgetMetadata. + [Preview API] + :param str contribution_id: + :rtype: :class:` ` + """ + route_values = {} + if contribution_id is not None: + route_values['contributionId'] = self._serialize.url('contribution_id', contribution_id, 'str') + response = self._send(http_method='GET', + location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('WidgetMetadataResponse', response) + + def get_widget_types(self, scope): + """GetWidgetTypes. + [Preview API] Returns available widgets in alphabetical order. + :param str scope: + :rtype: :class:` ` + """ + query_parameters = {} + if scope is not None: + query_parameters['$scope'] = self._serialize.query('scope', scope, 'str') + response = self._send(http_method='GET', + location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', + version='4.0-preview.1', + query_parameters=query_parameters) + return self._deserialize('WidgetTypesResponse', response) + diff --git a/vsts/vsts/dashboard/v4_0/models/__init__.py b/vsts/vsts/dashboard/v4_0/models/__init__.py new file mode 100644 index 00000000..3673bd63 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/__init__.py @@ -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 .dashboard import Dashboard +from .dashboard_group import DashboardGroup +from .dashboard_group_entry import DashboardGroupEntry +from .dashboard_group_entry_response import DashboardGroupEntryResponse +from .dashboard_response import DashboardResponse +from .lightbox_options import LightboxOptions +from .reference_links import ReferenceLinks +from .semantic_version import SemanticVersion +from .team_context import TeamContext +from .widget import Widget +from .widget_metadata import WidgetMetadata +from .widget_metadata_response import WidgetMetadataResponse +from .widget_position import WidgetPosition +from .widget_response import WidgetResponse +from .widget_size import WidgetSize +from .widgets_versioned_list import WidgetsVersionedList +from .widget_types_response import WidgetTypesResponse + +__all__ = [ + 'Dashboard', + 'DashboardGroup', + 'DashboardGroupEntry', + 'DashboardGroupEntryResponse', + 'DashboardResponse', + 'LightboxOptions', + 'ReferenceLinks', + 'SemanticVersion', + 'TeamContext', + 'Widget', + 'WidgetMetadata', + 'WidgetMetadataResponse', + 'WidgetPosition', + 'WidgetResponse', + 'WidgetSize', + 'WidgetsVersionedList', + 'WidgetTypesResponse', +] diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard.py b/vsts/vsts/dashboard/v4_0/models/dashboard.py new file mode 100644 index 00000000..455b13df --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/dashboard.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Dashboard(Model): + """Dashboard. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(Dashboard, self).__init__() + self._links = _links + self.description = description + self.eTag = eTag + self.id = id + self.name = name + self.owner_id = owner_id + self.position = position + self.refresh_interval = refresh_interval + self.url = url + self.widgets = widgets diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_group.py b/vsts/vsts/dashboard/v4_0/models/dashboard_group.py new file mode 100644 index 00000000..2b90ece1 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/dashboard_group.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DashboardGroup(Model): + """DashboardGroup. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param dashboard_entries: + :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :param permission: + :type permission: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'dashboard_entries': {'key': 'dashboardEntries', 'type': '[DashboardGroupEntry]'}, + 'permission': {'key': 'permission', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, dashboard_entries=None, permission=None, url=None): + super(DashboardGroup, self).__init__() + self._links = _links + self.dashboard_entries = dashboard_entries + self.permission = permission + self.url = url diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py b/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py new file mode 100644 index 00000000..ec496571 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .dashboard import Dashboard + + +class DashboardGroupEntry(Dashboard): + """DashboardGroupEntry. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntry, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py b/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py new file mode 100644 index 00000000..1f65d586 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .dashboard_group_entry import DashboardGroupEntry + + +class DashboardGroupEntryResponse(DashboardGroupEntry): + """DashboardGroupEntryResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntryResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_response.py b/vsts/vsts/dashboard/v4_0/models/dashboard_response.py new file mode 100644 index 00000000..f5ba6431 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/dashboard_response.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .dashboard_group_entry import DashboardGroupEntry + + +class DashboardResponse(DashboardGroupEntry): + """DashboardResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_0/models/lightbox_options.py b/vsts/vsts/dashboard/v4_0/models/lightbox_options.py new file mode 100644 index 00000000..af876067 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/lightbox_options.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LightboxOptions(Model): + """LightboxOptions. + + :param height: Height of desired lightbox, in pixels + :type height: int + :param resizable: True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false. + :type resizable: bool + :param width: Width of desired lightbox, in pixels + :type width: int + """ + + _attribute_map = { + 'height': {'key': 'height', 'type': 'int'}, + 'resizable': {'key': 'resizable', 'type': 'bool'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, height=None, resizable=None, width=None): + super(LightboxOptions, self).__init__() + self.height = height + self.resizable = resizable + self.width = width diff --git a/vsts/vsts/dashboard/v4_0/models/reference_links.py b/vsts/vsts/dashboard/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/dashboard/v4_0/models/semantic_version.py b/vsts/vsts/dashboard/v4_0/models/semantic_version.py new file mode 100644 index 00000000..a966f509 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/semantic_version.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SemanticVersion(Model): + """SemanticVersion. + + :param major: Major version when you make incompatible API changes + :type major: int + :param minor: Minor version when you add functionality in a backwards-compatible manner + :type minor: int + :param patch: Patch version when you make backwards-compatible bug fixes + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(SemanticVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch diff --git a/vsts/vsts/dashboard/v4_0/models/team_context.py b/vsts/vsts/dashboard/v4_0/models/team_context.py new file mode 100644 index 00000000..18418ce7 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/team_context.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id diff --git a/vsts/vsts/dashboard/v4_0/models/widget.py b/vsts/vsts/dashboard/v4_0/models/widget.py new file mode 100644 index 00000000..6416565d --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widget.py @@ -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 msrest.serialization import Model + + +class Widget(Model): + """Widget. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(Widget, self).__init__() + self._links = _links + self.allowed_sizes = allowed_sizes + self.artifact_id = artifact_id + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.content_uri = content_uri + self.contribution_id = contribution_id + self.dashboard = dashboard + self.eTag = eTag + self.id = id + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.position = position + self.settings = settings + self.settings_version = settings_version + self.size = size + self.type_id = type_id + self.url = url diff --git a/vsts/vsts/dashboard/v4_0/models/widget_metadata.py b/vsts/vsts/dashboard/v4_0/models/widget_metadata.py new file mode 100644 index 00000000..d6dd1f50 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widget_metadata.py @@ -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 msrest.serialization import Model + + +class WidgetMetadata(Model): + """WidgetMetadata. + + :param allowed_sizes: Sizes supported by the Widget. + :type allowed_sizes: list of :class:`WidgetSize ` + :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. + :type analytics_service_required: bool + :param catalog_icon_url: Resource for an icon in the widget catalog. + :type catalog_icon_url: str + :param catalog_info_url: Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted + :type catalog_info_url: str + :param configuration_contribution_id: The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_relative_id: str + :param configuration_required: Indicates if the widget requires configuration before being added to dashboard. + :type configuration_required: bool + :param content_uri: Uri for the WidgetFactory to get the widget + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget. + :type contribution_id: str + :param default_settings: Optional default settings to be copied into widget settings + :type default_settings: str + :param description: Summary information describing the widget. + :type description: str + :param is_enabled: Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context) + :type is_enabled: bool + :param is_name_configurable: Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest. + :type is_name_configurable: bool + :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. For V1, only "pull" model widgets can be provided from the catalog. + :type is_visible_from_catalog: bool + :param lightbox_options: Opt-in lightbox properties + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: Resource for a loading placeholder image on dashboard + :type loading_image_url: str + :param name: User facing name of the widget type. Each widget must use a unique value here. + :type name: str + :param publisher_name: Publisher Name of this kind of widget. + :type publisher_name: str + :param supported_scopes: Data contract required for the widget to function and to work in its container. + :type supported_scopes: list of WidgetScope + :param targets: Contribution target IDs + :type targets: list of str + :param type_id: Dev-facing id of this kind of widget. + :type type_id: str + """ + + _attribute_map = { + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'analytics_service_required': {'key': 'analyticsServiceRequired', 'type': 'bool'}, + 'catalog_icon_url': {'key': 'catalogIconUrl', 'type': 'str'}, + 'catalog_info_url': {'key': 'catalogInfoUrl', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'configuration_required': {'key': 'configurationRequired', 'type': 'bool'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'default_settings': {'key': 'defaultSettings', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'is_visible_from_catalog': {'key': 'isVisibleFromCatalog', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[WidgetScope]'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, allowed_sizes=None, analytics_service_required=None, catalog_icon_url=None, catalog_info_url=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, configuration_required=None, content_uri=None, contribution_id=None, default_settings=None, description=None, is_enabled=None, is_name_configurable=None, is_visible_from_catalog=None, lightbox_options=None, loading_image_url=None, name=None, publisher_name=None, supported_scopes=None, targets=None, type_id=None): + super(WidgetMetadata, self).__init__() + self.allowed_sizes = allowed_sizes + self.analytics_service_required = analytics_service_required + self.catalog_icon_url = catalog_icon_url + self.catalog_info_url = catalog_info_url + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.configuration_required = configuration_required + self.content_uri = content_uri + self.contribution_id = contribution_id + self.default_settings = default_settings + self.description = description + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.is_visible_from_catalog = is_visible_from_catalog + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.publisher_name = publisher_name + self.supported_scopes = supported_scopes + self.targets = targets + self.type_id = type_id diff --git a/vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py b/vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py new file mode 100644 index 00000000..e8b4b718 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetMetadataResponse(Model): + """WidgetMetadataResponse. + + :param uri: + :type uri: str + :param widget_metadata: + :type widget_metadata: :class:`WidgetMetadata ` + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_metadata': {'key': 'widgetMetadata', 'type': 'WidgetMetadata'} + } + + def __init__(self, uri=None, widget_metadata=None): + super(WidgetMetadataResponse, self).__init__() + self.uri = uri + self.widget_metadata = widget_metadata diff --git a/vsts/vsts/dashboard/v4_0/models/widget_position.py b/vsts/vsts/dashboard/v4_0/models/widget_position.py new file mode 100644 index 00000000..fffa861f --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widget_position.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetPosition(Model): + """WidgetPosition. + + :param column: + :type column: int + :param row: + :type row: int + """ + + _attribute_map = { + 'column': {'key': 'column', 'type': 'int'}, + 'row': {'key': 'row', 'type': 'int'} + } + + def __init__(self, column=None, row=None): + super(WidgetPosition, self).__init__() + self.column = column + self.row = row diff --git a/vsts/vsts/dashboard/v4_0/models/widget_response.py b/vsts/vsts/dashboard/v4_0/models/widget_response.py new file mode 100644 index 00000000..8f7ca28c --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widget_response.py @@ -0,0 +1,84 @@ +# -------------------------------------------------------------------------------------------- +# 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 .widget import Widget + + +class WidgetResponse(Widget): + """WidgetResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) diff --git a/vsts/vsts/dashboard/v4_0/models/widget_size.py b/vsts/vsts/dashboard/v4_0/models/widget_size.py new file mode 100644 index 00000000..36587e24 --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widget_size.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetSize(Model): + """WidgetSize. + + :param column_span: + :type column_span: int + :param row_span: + :type row_span: int + """ + + _attribute_map = { + 'column_span': {'key': 'columnSpan', 'type': 'int'}, + 'row_span': {'key': 'rowSpan', 'type': 'int'} + } + + def __init__(self, column_span=None, row_span=None): + super(WidgetSize, self).__init__() + self.column_span = column_span + self.row_span = row_span diff --git a/vsts/vsts/dashboard/v4_0/models/widget_types_response.py b/vsts/vsts/dashboard/v4_0/models/widget_types_response.py new file mode 100644 index 00000000..b703f37e --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widget_types_response.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetTypesResponse(Model): + """WidgetTypesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param uri: + :type uri: str + :param widget_types: + :type widget_types: list of :class:`WidgetMetadata ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_types': {'key': 'widgetTypes', 'type': '[WidgetMetadata]'} + } + + def __init__(self, _links=None, uri=None, widget_types=None): + super(WidgetTypesResponse, self).__init__() + self._links = _links + self.uri = uri + self.widget_types = widget_types diff --git a/vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py b/vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py new file mode 100644 index 00000000..db67a3aa --- /dev/null +++ b/vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetsVersionedList(Model): + """WidgetsVersionedList. + + :param eTag: + :type eTag: list of str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, eTag=None, widgets=None): + super(WidgetsVersionedList, self).__init__() + self.eTag = eTag + self.widgets = widgets diff --git a/vsts/vsts/extension_management/__init__.py b/vsts/vsts/extension_management/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/extension_management/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/extension_management/v4_0/__init__.py b/vsts/vsts/extension_management/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/extension_management/v4_0/extension_management_client.py b/vsts/vsts/extension_management/v4_0/extension_management_client.py new file mode 100644 index 00000000..a5c4f2c0 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/extension_management_client.py @@ -0,0 +1,552 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ExtensionManagementClient(VssClient): + """ExtensionManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ExtensionManagementClient, 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_acquisition_options(self, item_id, test_commerce=None, is_free_or_trial_install=None): + """GetAcquisitionOptions. + [Preview API] + :param str item_id: + :param bool test_commerce: + :param bool is_free_or_trial_install: + :rtype: :class:` ` + """ + query_parameters = {} + if item_id is not None: + query_parameters['itemId'] = self._serialize.query('item_id', item_id, 'str') + if test_commerce is not None: + query_parameters['testCommerce'] = self._serialize.query('test_commerce', test_commerce, 'bool') + if is_free_or_trial_install is not None: + query_parameters['isFreeOrTrialInstall'] = self._serialize.query('is_free_or_trial_install', is_free_or_trial_install, 'bool') + response = self._send(http_method='GET', + location_id='288dff58-d13b-468e-9671-0fb754e9398c', + version='4.0-preview.1', + query_parameters=query_parameters) + return self._deserialize('AcquisitionOptions', response) + + def request_acquisition(self, acquisition_request): + """RequestAcquisition. + [Preview API] + :param :class:` ` acquisition_request: + :rtype: :class:` ` + """ + content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') + response = self._send(http_method='POST', + location_id='da616457-eed3-4672-92d7-18d21f5c1658', + version='4.0-preview.1', + content=content) + return self._deserialize('ExtensionAcquisitionRequest', response) + + def register_authorization(self, publisher_name, extension_name, registration_id): + """RegisterAuthorization. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str registration_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if registration_id is not None: + route_values['registrationId'] = self._serialize.url('registration_id', registration_id, 'str') + response = self._send(http_method='PUT', + location_id='f21cfc80-d2d2-4248-98bb-7820c74c4606', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ExtensionAuthorization', response) + + def create_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): + """CreateDocumentByName. + [Preview API] + :param :class:` ` doc: + :param str publisher_name: + :param str extension_name: + :param str scope_type: + :param str scope_value: + :param str collection_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if scope_type is not None: + route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if collection_name is not None: + route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') + content = self._serialize.body(doc, 'object') + response = self._send(http_method='POST', + location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('object', response) + + def delete_document_by_name(self, publisher_name, extension_name, scope_type, scope_value, collection_name, document_id): + """DeleteDocumentByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str scope_type: + :param str scope_value: + :param str collection_name: + :param str document_id: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if scope_type is not None: + route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if collection_name is not None: + route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') + if document_id is not None: + route_values['documentId'] = self._serialize.url('document_id', document_id, 'str') + self._send(http_method='DELETE', + location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', + version='4.0-preview.1', + route_values=route_values) + + def get_document_by_name(self, publisher_name, extension_name, scope_type, scope_value, collection_name, document_id): + """GetDocumentByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str scope_type: + :param str scope_value: + :param str collection_name: + :param str document_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if scope_type is not None: + route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if collection_name is not None: + route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') + if document_id is not None: + route_values['documentId'] = self._serialize.url('document_id', document_id, 'str') + response = self._send(http_method='GET', + location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_documents_by_name(self, publisher_name, extension_name, scope_type, scope_value, collection_name): + """GetDocumentsByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str scope_type: + :param str scope_value: + :param str collection_name: + :rtype: [object] + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if scope_type is not None: + route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if collection_name is not None: + route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') + response = self._send(http_method='GET', + location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[object]', response) + + def set_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): + """SetDocumentByName. + [Preview API] + :param :class:` ` doc: + :param str publisher_name: + :param str extension_name: + :param str scope_type: + :param str scope_value: + :param str collection_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if scope_type is not None: + route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if collection_name is not None: + route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') + content = self._serialize.body(doc, 'object') + response = self._send(http_method='PUT', + location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('object', response) + + def update_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): + """UpdateDocumentByName. + [Preview API] + :param :class:` ` doc: + :param str publisher_name: + :param str extension_name: + :param str scope_type: + :param str scope_value: + :param str collection_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if scope_type is not None: + route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if collection_name is not None: + route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') + content = self._serialize.body(doc, 'object') + response = self._send(http_method='PATCH', + location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('object', response) + + def query_collections_by_name(self, collection_query, publisher_name, extension_name): + """QueryCollectionsByName. + [Preview API] + :param :class:` ` collection_query: + :param str publisher_name: + :param str extension_name: + :rtype: [ExtensionDataCollection] + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(collection_query, 'ExtensionDataCollectionQuery') + response = self._send(http_method='POST', + location_id='56c331f1-ce53-4318-adfd-4db5c52a7a2e', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[ExtensionDataCollection]', response) + + def get_states(self, include_disabled=None, include_errors=None, include_installation_issues=None): + """GetStates. + [Preview API] + :param bool include_disabled: + :param bool include_errors: + :param bool include_installation_issues: + :rtype: [ExtensionState] + """ + query_parameters = {} + if include_disabled is not None: + query_parameters['includeDisabled'] = self._serialize.query('include_disabled', include_disabled, 'bool') + if include_errors is not None: + query_parameters['includeErrors'] = self._serialize.query('include_errors', include_errors, 'bool') + if include_installation_issues is not None: + query_parameters['includeInstallationIssues'] = self._serialize.query('include_installation_issues', include_installation_issues, 'bool') + response = self._send(http_method='GET', + location_id='92755d3d-9a8a-42b3-8a4d-87359fe5aa93', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ExtensionState]', response) + + def query_extensions(self, query): + """QueryExtensions. + [Preview API] + :param :class:` ` query: + :rtype: [InstalledExtension] + """ + content = self._serialize.body(query, 'InstalledExtensionQuery') + response = self._send(http_method='POST', + location_id='046c980f-1345-4ce2-bf85-b46d10ff4cfd', + version='4.0-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[InstalledExtension]', response) + + def get_installed_extensions(self, include_disabled_extensions=None, include_errors=None, asset_types=None, include_installation_issues=None): + """GetInstalledExtensions. + [Preview API] + :param bool include_disabled_extensions: + :param bool include_errors: + :param [str] asset_types: + :param bool include_installation_issues: + :rtype: [InstalledExtension] + """ + query_parameters = {} + if include_disabled_extensions is not None: + query_parameters['includeDisabledExtensions'] = self._serialize.query('include_disabled_extensions', include_disabled_extensions, 'bool') + if include_errors is not None: + query_parameters['includeErrors'] = self._serialize.query('include_errors', include_errors, 'bool') + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + if include_installation_issues is not None: + query_parameters['includeInstallationIssues'] = self._serialize.query('include_installation_issues', include_installation_issues, 'bool') + response = self._send(http_method='GET', + location_id='275424d0-c844-4fe2-bda6-04933a1357d8', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[InstalledExtension]', response) + + def update_installed_extension(self, extension): + """UpdateInstalledExtension. + [Preview API] + :param :class:` ` extension: + :rtype: :class:` ` + """ + content = self._serialize.body(extension, 'InstalledExtension') + response = self._send(http_method='PATCH', + location_id='275424d0-c844-4fe2-bda6-04933a1357d8', + version='4.0-preview.1', + content=content) + return self._deserialize('InstalledExtension', response) + + def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): + """GetInstalledExtensionByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param [str] asset_types: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + response = self._send(http_method='GET', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('InstalledExtension', response) + + def install_extension_by_name(self, publisher_name, extension_name, version=None): + """InstallExtensionByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='POST', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('InstalledExtension', response) + + def uninstall_extension_by_name(self, publisher_name, extension_name, reason=None, reason_code=None): + """UninstallExtensionByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str reason: + :param str reason_code: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if reason is not None: + query_parameters['reason'] = self._serialize.query('reason', reason, 'str') + if reason_code is not None: + query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') + self._send(http_method='DELETE', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_policies(self, user_id): + """GetPolicies. + [Preview API] + :param str user_id: + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + response = self._send(http_method='GET', + location_id='e5cc8c09-407b-4867-8319-2ae3338cbf6f', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('UserExtensionPolicy', response) + + def resolve_request(self, reject_message, publisher_name, extension_name, requester_id, state): + """ResolveRequest. + [Preview API] + :param str reject_message: + :param str publisher_name: + :param str extension_name: + :param str requester_id: + :param str state: + :rtype: int + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if requester_id is not None: + route_values['requesterId'] = self._serialize.url('requester_id', requester_id, 'str') + query_parameters = {} + if state is not None: + query_parameters['state'] = self._serialize.query('state', state, 'str') + content = self._serialize.body(reject_message, 'str') + response = self._send(http_method='PATCH', + location_id='aa93e1f3-511c-4364-8b9c-eb98818f2e0b', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('int', response) + + def get_requests(self): + """GetRequests. + [Preview API] + :rtype: [RequestedExtension] + """ + response = self._send(http_method='GET', + location_id='216b978f-b164-424e-ada2-b77561e842b7', + version='4.0-preview.1', + returns_collection=True) + return self._deserialize('[RequestedExtension]', response) + + def resolve_all_requests(self, reject_message, publisher_name, extension_name, state): + """ResolveAllRequests. + [Preview API] + :param str reject_message: + :param str publisher_name: + :param str extension_name: + :param str state: + :rtype: int + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if state is not None: + query_parameters['state'] = self._serialize.query('state', state, 'str') + content = self._serialize.body(reject_message, 'str') + response = self._send(http_method='PATCH', + location_id='ba93e1f3-511c-4364-8b9c-eb98818f2e0b', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('int', response) + + def delete_request(self, publisher_name, extension_name): + """DeleteRequest. + [Preview API] + :param str publisher_name: + :param str extension_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + self._send(http_method='DELETE', + location_id='f5afca1e-a728-4294-aa2d-4af0173431b5', + version='4.0-preview.1', + route_values=route_values) + + def request_extension(self, publisher_name, extension_name, request_message): + """RequestExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str request_message: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(request_message, 'str') + response = self._send(http_method='POST', + location_id='f5afca1e-a728-4294-aa2d-4af0173431b5', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('RequestedExtension', response) + + def get_token(self): + """GetToken. + [Preview API] + :rtype: str + """ + response = self._send(http_method='GET', + location_id='3a2e24ed-1d6f-4cb2-9f3b-45a96bbfaf50', + version='4.0-preview.1') + return self._deserialize('str', response) + diff --git a/vsts/vsts/extension_management/v4_0/models/__init__.py b/vsts/vsts/extension_management/v4_0/models/__init__.py new file mode 100644 index 00000000..b6ac34af --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/__init__.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------------------------- +# 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 .acquisition_operation import AcquisitionOperation +from .acquisition_operation_disallow_reason import AcquisitionOperationDisallowReason +from .acquisition_options import AcquisitionOptions +from .contribution import Contribution +from .contribution_base import ContributionBase +from .contribution_constraint import ContributionConstraint +from .contribution_property_description import ContributionPropertyDescription +from .contribution_type import ContributionType +from .extension_acquisition_request import ExtensionAcquisitionRequest +from .extension_authorization import ExtensionAuthorization +from .extension_badge import ExtensionBadge +from .extension_data_collection import ExtensionDataCollection +from .extension_data_collection_query import ExtensionDataCollectionQuery +from .extension_event_callback import ExtensionEventCallback +from .extension_event_callback_collection import ExtensionEventCallbackCollection +from .extension_file import ExtensionFile +from .extension_identifier import ExtensionIdentifier +from .extension_licensing import ExtensionLicensing +from .extension_manifest import ExtensionManifest +from .extension_policy import ExtensionPolicy +from .extension_request import ExtensionRequest +from .extension_share import ExtensionShare +from .extension_state import ExtensionState +from .extension_statistic import ExtensionStatistic +from .extension_version import ExtensionVersion +from .identity_ref import IdentityRef +from .installation_target import InstallationTarget +from .installed_extension import InstalledExtension +from .installed_extension_query import InstalledExtensionQuery +from .installed_extension_state import InstalledExtensionState +from .installed_extension_state_issue import InstalledExtensionStateIssue +from .licensing_override import LicensingOverride +from .published_extension import PublishedExtension +from .publisher_facts import PublisherFacts +from .requested_extension import RequestedExtension +from .user_extension_policy import UserExtensionPolicy + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOperationDisallowReason', + 'AcquisitionOptions', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionPropertyDescription', + 'ContributionType', + 'ExtensionAcquisitionRequest', + 'ExtensionAuthorization', + 'ExtensionBadge', + 'ExtensionDataCollection', + 'ExtensionDataCollectionQuery', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionIdentifier', + 'ExtensionLicensing', + 'ExtensionManifest', + 'ExtensionPolicy', + 'ExtensionRequest', + 'ExtensionShare', + 'ExtensionState', + 'ExtensionStatistic', + 'ExtensionVersion', + 'IdentityRef', + 'InstallationTarget', + 'InstalledExtension', + 'InstalledExtensionQuery', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'PublishedExtension', + 'PublisherFacts', + 'RequestedExtension', + 'UserExtensionPolicy', +] diff --git a/vsts/vsts/extension_management/v4_0/models/acquisition_operation.py b/vsts/vsts/extension_management/v4_0/models/acquisition_operation.py new file mode 100644 index 00000000..2d9308c9 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/acquisition_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + :param reasons: List of reasons indicating why the operation is not allowed. + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reasons': {'key': 'reasons', 'type': '[AcquisitionOperationDisallowReason]'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None, reasons=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason + self.reasons = reasons diff --git a/vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py b/vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py new file mode 100644 index 00000000..565a65a8 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperationDisallowReason(Model): + """AcquisitionOperationDisallowReason. + + :param message: User-friendly message clarifying the reason for disallowance + :type message: str + :param type: Type of reason for disallowance - AlreadyInstalled, UnresolvedDemand, etc. + :type type: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, message=None, type=None): + super(AcquisitionOperationDisallowReason, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/acquisition_options.py b/vsts/vsts/extension_management/v4_0/models/acquisition_options.py new file mode 100644 index 00000000..a232498d --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/acquisition_options.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.target = target diff --git a/vsts/vsts/extension_management/v4_0/models/contribution.py b/vsts/vsts/extension_management/v4_0/models/contribution.py new file mode 100644 index 00000000..c003d5cc --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/contribution.py @@ -0,0 +1,50 @@ +# -------------------------------------------------------------------------------------------- +# 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 .contribution_base import ContributionBase + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_base.py b/vsts/vsts/extension_management/v4_0/models/contribution_base.py new file mode 100644 index 00000000..4a2402c0 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/contribution_base.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_constraint.py b/vsts/vsts/extension_management/v4_0/models/contribution_constraint.py new file mode 100644 index 00000000..8c1d903e --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/contribution_constraint.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter class + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_property_description.py b/vsts/vsts/extension_management/v4_0/models/contribution_property_description.py new file mode 100644 index 00000000..d4684adf --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/contribution_property_description.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_type.py b/vsts/vsts/extension_management/v4_0/models/contribution_type.py new file mode 100644 index 00000000..4eda81f4 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/contribution_type.py @@ -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 .contribution_base import ContributionBase + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties diff --git a/vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py b/vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py new file mode 100644 index 00000000..49bfc8e4 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py @@ -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.serialization import Model + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity diff --git a/vsts/vsts/extension_management/v4_0/models/extension_authorization.py b/vsts/vsts/extension_management/v4_0/models/extension_authorization.py new file mode 100644 index 00000000..d82dac11 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_authorization.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAuthorization(Model): + """ExtensionAuthorization. + + :param id: + :type id: str + :param scopes: + :type scopes: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[str]'} + } + + def __init__(self, id=None, scopes=None): + super(ExtensionAuthorization, self).__init__() + self.id = id + self.scopes = scopes diff --git a/vsts/vsts/extension_management/v4_0/models/extension_badge.py b/vsts/vsts/extension_management/v4_0/models/extension_badge.py new file mode 100644 index 00000000..bcb0fa1c --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_badge.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link diff --git a/vsts/vsts/extension_management/v4_0/models/extension_data_collection.py b/vsts/vsts/extension_management/v4_0/models/extension_data_collection.py new file mode 100644 index 00000000..c3edc78d --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_data_collection.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDataCollection(Model): + """ExtensionDataCollection. + + :param collection_name: The name of the collection + :type collection_name: str + :param documents: A list of documents belonging to the collection + :type documents: list of :class:`object ` + :param scope_type: The type of the collection's scope, such as Default or User + :type scope_type: str + :param scope_value: The value of the collection's scope, such as Current or Me + :type scope_value: str + """ + + _attribute_map = { + 'collection_name': {'key': 'collectionName', 'type': 'str'}, + 'documents': {'key': 'documents', 'type': '[object]'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'scope_value': {'key': 'scopeValue', 'type': 'str'} + } + + def __init__(self, collection_name=None, documents=None, scope_type=None, scope_value=None): + super(ExtensionDataCollection, self).__init__() + self.collection_name = collection_name + self.documents = documents + self.scope_type = scope_type + self.scope_value = scope_value diff --git a/vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py b/vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py new file mode 100644 index 00000000..e558f79d --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDataCollectionQuery(Model): + """ExtensionDataCollectionQuery. + + :param collections: A list of collections to query + :type collections: list of :class:`ExtensionDataCollection ` + """ + + _attribute_map = { + 'collections': {'key': 'collections', 'type': '[ExtensionDataCollection]'} + } + + def __init__(self, collections=None): + super(ExtensionDataCollectionQuery, self).__init__() + self.collections = collections diff --git a/vsts/vsts/extension_management/v4_0/models/extension_event_callback.py b/vsts/vsts/extension_management/v4_0/models/extension_event_callback.py new file mode 100644 index 00000000..59ab677a --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_event_callback.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri diff --git a/vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py b/vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py new file mode 100644 index 00000000..7529b2fc --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check diff --git a/vsts/vsts/extension_management/v4_0/models/extension_file.py b/vsts/vsts/extension_management/v4_0/models/extension_file.py new file mode 100644 index 00000000..ba792fd5 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_file.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param content_type: + :type content_type: str + :param file_id: + :type file_id: int + :param is_default: + :type is_default: bool + :param is_public: + :type is_public: bool + :param language: + :type language: str + :param short_description: + :type short_description: str + :param source: + :type source: str + :param version: + :type version: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.content_type = content_type + self.file_id = file_id + self.is_default = is_default + self.is_public = is_public + self.language = language + self.short_description = short_description + self.source = source + self.version = version diff --git a/vsts/vsts/extension_management/v4_0/models/extension_identifier.py b/vsts/vsts/extension_management/v4_0/models/extension_identifier.py new file mode 100644 index 00000000..ea02ec21 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_identifier.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionIdentifier(Model): + """ExtensionIdentifier. + + :param extension_name: The ExtensionName component part of the fully qualified ExtensionIdentifier + :type extension_name: str + :param publisher_name: The PublisherName component part of the fully qualified ExtensionIdentifier + :type publisher_name: str + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, extension_name=None, publisher_name=None): + super(ExtensionIdentifier, self).__init__() + self.extension_name = extension_name + self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_0/models/extension_licensing.py b/vsts/vsts/extension_management/v4_0/models/extension_licensing.py new file mode 100644 index 00000000..9e562c82 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_licensing.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides diff --git a/vsts/vsts/extension_management/v4_0/models/extension_manifest.py b/vsts/vsts/extension_management/v4_0/models/extension_manifest.py new file mode 100644 index 00000000..9d0670dd --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_manifest.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.scopes = scopes + self.service_instance_type = service_instance_type diff --git a/vsts/vsts/extension_management/v4_0/models/extension_policy.py b/vsts/vsts/extension_management/v4_0/models/extension_policy.py new file mode 100644 index 00000000..ad20f559 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_policy.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionPolicy(Model): + """ExtensionPolicy. + + :param install: Permissions on 'Install' operation + :type install: object + :param request: Permission on 'Request' operation + :type request: object + """ + + _attribute_map = { + 'install': {'key': 'install', 'type': 'object'}, + 'request': {'key': 'request', 'type': 'object'} + } + + def __init__(self, install=None, request=None): + super(ExtensionPolicy, self).__init__() + self.install = install + self.request = request diff --git a/vsts/vsts/extension_management/v4_0/models/extension_request.py b/vsts/vsts/extension_management/v4_0/models/extension_request.py new file mode 100644 index 00000000..9591f2ab --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_request.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionRequest(Model): + """ExtensionRequest. + + :param reject_message: Required message supplied if the request is rejected + :type reject_message: str + :param request_date: Date at which the request was made + :type request_date: datetime + :param requested_by: Represents the user who made the request + :type requested_by: :class:`IdentityRef ` + :param request_message: Optional message supplied by the requester justifying the request + :type request_message: str + :param request_state: Represents the state of the request + :type request_state: object + :param resolve_date: Date at which the request was resolved + :type resolve_date: datetime + :param resolved_by: Represents the user who resolved the request + :type resolved_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'reject_message': {'key': 'rejectMessage', 'type': 'str'}, + 'request_date': {'key': 'requestDate', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_message': {'key': 'requestMessage', 'type': 'str'}, + 'request_state': {'key': 'requestState', 'type': 'object'}, + 'resolve_date': {'key': 'resolveDate', 'type': 'iso-8601'}, + 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'} + } + + def __init__(self, reject_message=None, request_date=None, requested_by=None, request_message=None, request_state=None, resolve_date=None, resolved_by=None): + super(ExtensionRequest, self).__init__() + self.reject_message = reject_message + self.request_date = request_date + self.requested_by = requested_by + self.request_message = request_message + self.request_state = request_state + self.resolve_date = resolve_date + self.resolved_by = resolved_by diff --git a/vsts/vsts/extension_management/v4_0/models/extension_share.py b/vsts/vsts/extension_management/v4_0/models/extension_share.py new file mode 100644 index 00000000..acc81ef0 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_share.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/extension_state.py b/vsts/vsts/extension_management/v4_0/models/extension_state.py new file mode 100644 index 00000000..9118bdb8 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_state.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# 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 .installed_extension_state import InstalledExtensionState + + +class ExtensionState(InstalledExtensionState): + """ExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + :param extension_name: + :type extension_name: str + :param last_version_check: The time at which the version was last checked + :type last_version_check: datetime + :param publisher_name: + :type publisher_name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'last_version_check': {'key': 'lastVersionCheck', 'type': 'iso-8601'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None, extension_name=None, last_version_check=None, publisher_name=None, version=None): + super(ExtensionState, self).__init__(flags=flags, installation_issues=installation_issues, last_updated=last_updated) + self.extension_name = extension_name + self.last_version_check = last_version_check + self.publisher_name = publisher_name + self.version = version diff --git a/vsts/vsts/extension_management/v4_0/models/extension_statistic.py b/vsts/vsts/extension_management/v4_0/models/extension_statistic.py new file mode 100644 index 00000000..11fc6704 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_statistic.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: number + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'number'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value diff --git a/vsts/vsts/extension_management/v4_0/models/extension_version.py b/vsts/vsts/extension_management/v4_0/models/extension_version.py new file mode 100644 index 00000000..b2cf8be7 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/extension_version.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description diff --git a/vsts/vsts/extension_management/v4_0/models/identity_ref.py b/vsts/vsts/extension_management/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/extension_management/v4_0/models/installation_target.py b/vsts/vsts/extension_management/v4_0/models/installation_target.py new file mode 100644 index 00000000..572aaae0 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/installation_target.py @@ -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.serialization import Model + + +class InstallationTarget(Model): + """InstallationTarget. + + :param max_inclusive: + :type max_inclusive: bool + :param max_version: + :type max_version: str + :param min_inclusive: + :type min_inclusive: bool + :param min_version: + :type min_version: str + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, + 'max_version': {'key': 'maxVersion', 'type': 'str'}, + 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, + 'min_version': {'key': 'minVersion', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.max_inclusive = max_inclusive + self.max_version = max_version + self.min_inclusive = min_inclusive + self.min_version = min_version + self.target = target + self.target_version = target_version diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension.py b/vsts/vsts/extension_management/v4_0/models/installed_extension.py new file mode 100644 index 00000000..08230147 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/installed_extension.py @@ -0,0 +1,94 @@ +# -------------------------------------------------------------------------------------------- +# 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 .extension_manifest import ExtensionManifest + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension_query.py b/vsts/vsts/extension_management/v4_0/models/installed_extension_query.py new file mode 100644 index 00000000..9f039b7d --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/installed_extension_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionQuery(Model): + """InstalledExtensionQuery. + + :param asset_types: + :type asset_types: list of str + :param monikers: + :type monikers: list of :class:`ExtensionIdentifier ` + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'monikers': {'key': 'monikers', 'type': '[ExtensionIdentifier]'} + } + + def __init__(self, asset_types=None, monikers=None): + super(InstalledExtensionQuery, self).__init__() + self.asset_types = asset_types + self.monikers = monikers diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension_state.py b/vsts/vsts/extension_management/v4_0/models/installed_extension_state.py new file mode 100644 index 00000000..25f06af7 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/installed_extension_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py b/vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py new file mode 100644 index 00000000..e66bb556 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/licensing_override.py b/vsts/vsts/extension_management/v4_0/models/licensing_override.py new file mode 100644 index 00000000..7812d57f --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/licensing_override.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id diff --git a/vsts/vsts/extension_management/v4_0/models/published_extension.py b/vsts/vsts/extension_management/v4_0/models/published_extension.py new file mode 100644 index 00000000..b3b93814 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/published_extension.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions diff --git a/vsts/vsts/extension_management/v4_0/models/publisher_facts.py b/vsts/vsts/extension_management/v4_0/models/publisher_facts.py new file mode 100644 index 00000000..979b6d8d --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/publisher_facts.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_0/models/requested_extension.py b/vsts/vsts/extension_management/v4_0/models/requested_extension.py new file mode 100644 index 00000000..00759b10 --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/requested_extension.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RequestedExtension(Model): + """RequestedExtension. + + :param extension_name: The unique name of the extension + :type extension_name: str + :param extension_requests: A list of each request for the extension + :type extension_requests: list of :class:`ExtensionRequest ` + :param publisher_display_name: DisplayName of the publisher that owns the extension being published. + :type publisher_display_name: str + :param publisher_name: Represents the Publisher of the requested extension + :type publisher_name: str + :param request_count: The total number of requests for an extension + :type request_count: int + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'extension_requests': {'key': 'extensionRequests', 'type': '[ExtensionRequest]'}, + 'publisher_display_name': {'key': 'publisherDisplayName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'request_count': {'key': 'requestCount', 'type': 'int'} + } + + def __init__(self, extension_name=None, extension_requests=None, publisher_display_name=None, publisher_name=None, request_count=None): + super(RequestedExtension, self).__init__() + self.extension_name = extension_name + self.extension_requests = extension_requests + self.publisher_display_name = publisher_display_name + self.publisher_name = publisher_name + self.request_count = request_count diff --git a/vsts/vsts/extension_management/v4_0/models/user_extension_policy.py b/vsts/vsts/extension_management/v4_0/models/user_extension_policy.py new file mode 100644 index 00000000..363caa7d --- /dev/null +++ b/vsts/vsts/extension_management/v4_0/models/user_extension_policy.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserExtensionPolicy(Model): + """UserExtensionPolicy. + + :param display_name: User display name that this policy refers to + :type display_name: str + :param permissions: The extension policy applied to the user + :type permissions: :class:`ExtensionPolicy ` + :param user_id: User id that this policy refers to + :type user_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'permissions': {'key': 'permissions', 'type': 'ExtensionPolicy'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, display_name=None, permissions=None, user_id=None): + super(UserExtensionPolicy, self).__init__() + self.display_name = display_name + self.permissions = permissions + self.user_id = user_id diff --git a/vsts/vsts/file_container/__init__.py b/vsts/vsts/file_container/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/file_container/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/v4_0/__init__.py b/vsts/vsts/file_container/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/file_container/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/v4_0/file_container_client.py b/vsts/vsts/file_container/v4_0/file_container_client.py new file mode 100644 index 00000000..8b98c374 --- /dev/null +++ b/vsts/vsts/file_container/v4_0/file_container_client.py @@ -0,0 +1,130 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class FileContainerClient(VssClient): + """FileContainer + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FileContainerClient, 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 create_items(self, items, container_id, scope=None): + """CreateItems. + [Preview API] Creates the specified items in in the referenced container. + :param :class:` ` items: + :param int container_id: + :param str scope: A guid representing the scope of the container. This is often the project id. + :rtype: [FileContainerItem] + """ + route_values = {} + if container_id is not None: + route_values['containerId'] = self._serialize.url('container_id', container_id, 'int') + query_parameters = {} + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + content = self._serialize.body(items, 'VssJsonCollectionWrapper') + response = self._send(http_method='POST', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[FileContainerItem]', response) + + def delete_item(self, container_id, item_path, scope=None): + """DeleteItem. + [Preview API] Deletes the specified items in a container. + :param long container_id: Container Id. + :param str item_path: Path to delete. + :param str scope: A guid representing the scope of the container. This is often the project id. + """ + route_values = {} + if container_id is not None: + route_values['containerId'] = self._serialize.url('container_id', container_id, 'long') + query_parameters = {} + if item_path is not None: + query_parameters['itemPath'] = self._serialize.query('item_path', item_path, 'str') + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + self._send(http_method='DELETE', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + + def get_containers(self, scope=None, artifact_uris=None): + """GetContainers. + [Preview API] Gets containers filtered by a comma separated list of artifact uris within the same scope, if not specified returns all containers + :param str scope: A guid representing the scope of the container. This is often the project id. + :param str artifact_uris: + :rtype: [FileContainer] + """ + query_parameters = {} + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + if artifact_uris is not None: + query_parameters['artifactUris'] = self._serialize.query('artifact_uris', artifact_uris, 'str') + response = self._send(http_method='GET', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.0-preview.4', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FileContainer]', response) + + def get_items(self, container_id, scope=None, item_path=None, metadata=None, format=None, download_file_name=None, include_download_tickets=None, is_shallow=None): + """GetItems. + [Preview API] + :param long container_id: + :param str scope: + :param str item_path: + :param bool metadata: + :param str format: + :param str download_file_name: + :param bool include_download_tickets: + :param bool is_shallow: + :rtype: [FileContainerItem] + """ + route_values = {} + if container_id is not None: + route_values['containerId'] = self._serialize.url('container_id', container_id, 'long') + query_parameters = {} + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + if item_path is not None: + query_parameters['itemPath'] = self._serialize.query('item_path', item_path, 'str') + if metadata is not None: + query_parameters['metadata'] = self._serialize.query('metadata', metadata, 'bool') + if format is not None: + query_parameters['$format'] = self._serialize.query('format', format, 'str') + if download_file_name is not None: + query_parameters['downloadFileName'] = self._serialize.query('download_file_name', download_file_name, 'str') + if include_download_tickets is not None: + query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') + if is_shallow is not None: + query_parameters['isShallow'] = self._serialize.query('is_shallow', is_shallow, 'bool') + response = self._send(http_method='GET', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FileContainerItem]', response) + diff --git a/vsts/vsts/file_container/v4_0/models/__init__.py b/vsts/vsts/file_container/v4_0/models/__init__.py new file mode 100644 index 00000000..09bce04e --- /dev/null +++ b/vsts/vsts/file_container/v4_0/models/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 .file_container import FileContainer +from .file_container_item import FileContainerItem + +__all__ = [ + 'FileContainer', + 'FileContainerItem', +] diff --git a/vsts/vsts/file_container/v4_0/models/file_container.py b/vsts/vsts/file_container/v4_0/models/file_container.py new file mode 100644 index 00000000..977d427e --- /dev/null +++ b/vsts/vsts/file_container/v4_0/models/file_container.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FileContainer(Model): + """FileContainer. + + :param artifact_uri: Uri of the artifact associated with the container. + :type artifact_uri: str + :param content_location: Download Url for the content of this item. + :type content_location: str + :param created_by: Owner. + :type created_by: str + :param date_created: Creation date. + :type date_created: datetime + :param description: Description. + :type description: str + :param id: Id. + :type id: long + :param item_location: Location of the item resource. + :type item_location: str + :param locator_path: ItemStore Locator for this container. + :type locator_path: str + :param name: Name. + :type name: str + :param options: Options the container can have. + :type options: object + :param scope_identifier: Project Id. + :type scope_identifier: str + :param security_token: Security token of the artifact associated with the container. + :type security_token: str + :param signing_key_id: Identifier of the optional encryption key. + :type signing_key_id: str + :param size: Total size of the files in bytes. + :type size: long + """ + + _attribute_map = { + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'long'}, + 'item_location': {'key': 'itemLocation', 'type': 'str'}, + 'locator_path': {'key': 'locatorPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': 'object'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'security_token': {'key': 'securityToken', 'type': 'str'}, + 'signing_key_id': {'key': 'signingKeyId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'} + } + + def __init__(self, artifact_uri=None, content_location=None, created_by=None, date_created=None, description=None, id=None, item_location=None, locator_path=None, name=None, options=None, scope_identifier=None, security_token=None, signing_key_id=None, size=None): + super(FileContainer, self).__init__() + self.artifact_uri = artifact_uri + self.content_location = content_location + self.created_by = created_by + self.date_created = date_created + self.description = description + self.id = id + self.item_location = item_location + self.locator_path = locator_path + self.name = name + self.options = options + self.scope_identifier = scope_identifier + self.security_token = security_token + self.signing_key_id = signing_key_id + self.size = size diff --git a/vsts/vsts/file_container/v4_0/models/file_container_item.py b/vsts/vsts/file_container/v4_0/models/file_container_item.py new file mode 100644 index 00000000..e53626c5 --- /dev/null +++ b/vsts/vsts/file_container/v4_0/models/file_container_item.py @@ -0,0 +1,93 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FileContainerItem(Model): + """FileContainerItem. + + :param container_id: Container Id. + :type container_id: long + :param content_id: + :type content_id: list of number + :param content_location: Download Url for the content of this item. + :type content_location: str + :param created_by: Creator. + :type created_by: str + :param date_created: Creation date. + :type date_created: datetime + :param date_last_modified: Last modified date. + :type date_last_modified: datetime + :param file_encoding: Encoding of the file. Zero if not a file. + :type file_encoding: int + :param file_hash: Hash value of the file. Null if not a file. + :type file_hash: list of number + :param file_id: Id of the file content. + :type file_id: int + :param file_length: Length of the file. Zero if not of a file. + :type file_length: long + :param file_type: Type of the file. Zero if not a file. + :type file_type: int + :param item_location: Location of the item resource. + :type item_location: str + :param item_type: Type of the item: Folder, File or String. + :type item_type: object + :param last_modified_by: Modifier. + :type last_modified_by: str + :param path: Unique path that identifies the item. + :type path: str + :param scope_identifier: Project Id. + :type scope_identifier: str + :param status: Status of the item: Created or Pending Upload. + :type status: object + :param ticket: + :type ticket: str + """ + + _attribute_map = { + 'container_id': {'key': 'containerId', 'type': 'long'}, + 'content_id': {'key': 'contentId', 'type': '[number]'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'}, + 'file_encoding': {'key': 'fileEncoding', 'type': 'int'}, + 'file_hash': {'key': 'fileHash', 'type': '[number]'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'file_length': {'key': 'fileLength', 'type': 'long'}, + 'file_type': {'key': 'fileType', 'type': 'int'}, + 'item_location': {'key': 'itemLocation', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'object'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'ticket': {'key': 'ticket', 'type': 'str'} + } + + def __init__(self, container_id=None, content_id=None, content_location=None, created_by=None, date_created=None, date_last_modified=None, file_encoding=None, file_hash=None, file_id=None, file_length=None, file_type=None, item_location=None, item_type=None, last_modified_by=None, path=None, scope_identifier=None, status=None, ticket=None): + super(FileContainerItem, self).__init__() + self.container_id = container_id + self.content_id = content_id + self.content_location = content_location + self.created_by = created_by + self.date_created = date_created + self.date_last_modified = date_last_modified + self.file_encoding = file_encoding + self.file_hash = file_hash + self.file_id = file_id + self.file_length = file_length + self.file_type = file_type + self.item_location = item_location + self.item_type = item_type + self.last_modified_by = last_modified_by + self.path = path + self.scope_identifier = scope_identifier + self.status = status + self.ticket = ticket diff --git a/vsts/vsts/gallery/__init__.py b/vsts/vsts/gallery/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/gallery/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/gallery/v4_0/__init__.py b/vsts/vsts/gallery/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/gallery/v4_0/gallery_client.py b/vsts/vsts/gallery/v4_0/gallery_client.py new file mode 100644 index 00000000..9525b344 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/gallery_client.py @@ -0,0 +1,1332 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class GalleryClient(VssClient): + """Gallery + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GalleryClient, 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 share_extension_by_id(self, extension_id, account_name): + """ShareExtensionById. + [Preview API] + :param str extension_id: + :param str account_name: + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='POST', + location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', + version='4.0-preview.1', + route_values=route_values) + + def unshare_extension_by_id(self, extension_id, account_name): + """UnshareExtensionById. + [Preview API] + :param str extension_id: + :param str account_name: + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='DELETE', + location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', + version='4.0-preview.1', + route_values=route_values) + + def share_extension(self, publisher_name, extension_name, account_name): + """ShareExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str account_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='POST', + location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', + version='4.0-preview.1', + route_values=route_values) + + def unshare_extension(self, publisher_name, extension_name, account_name): + """UnshareExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str account_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='DELETE', + location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', + version='4.0-preview.1', + route_values=route_values) + + def get_acquisition_options(self, item_id, installation_target, test_commerce=None, is_free_or_trial_install=None): + """GetAcquisitionOptions. + [Preview API] + :param str item_id: + :param str installation_target: + :param bool test_commerce: + :param bool is_free_or_trial_install: + :rtype: :class:` ` + """ + route_values = {} + if item_id is not None: + route_values['itemId'] = self._serialize.url('item_id', item_id, 'str') + query_parameters = {} + if installation_target is not None: + query_parameters['installationTarget'] = self._serialize.query('installation_target', installation_target, 'str') + if test_commerce is not None: + query_parameters['testCommerce'] = self._serialize.query('test_commerce', test_commerce, 'bool') + if is_free_or_trial_install is not None: + query_parameters['isFreeOrTrialInstall'] = self._serialize.query('is_free_or_trial_install', is_free_or_trial_install, 'bool') + response = self._send(http_method='GET', + location_id='9d0a0105-075e-4760-aa15-8bcf54d1bd7d', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AcquisitionOptions', response) + + def request_acquisition(self, acquisition_request): + """RequestAcquisition. + [Preview API] + :param :class:` ` acquisition_request: + :rtype: :class:` ` + """ + content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') + response = self._send(http_method='POST', + location_id='3adb1f2d-e328-446e-be73-9f6d98071c45', + version='4.0-preview.1', + content=content) + return self._deserialize('ExtensionAcquisitionRequest', response) + + def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None): + """GetAssetByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str asset_type: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='7529171f-a002-4180-93ba-685f358a0482', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None): + """GetAsset. + [Preview API] + :param str extension_id: + :param str version: + :param str asset_type: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None): + """GetAssetAuthenticated. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str asset_type: + :param str account_token: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + response = self._send(http_method='GET', + location_id='506aff36-2622-4f70-8063-77cce6366d20', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def associate_azure_publisher(self, publisher_name, azure_publisher_id): + """AssociateAzurePublisher. + [Preview API] + :param str publisher_name: + :param str azure_publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if azure_publisher_id is not None: + query_parameters['azurePublisherId'] = self._serialize.query('azure_publisher_id', azure_publisher_id, 'str') + response = self._send(http_method='PUT', + location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AzurePublisher', response) + + def query_associated_azure_publisher(self, publisher_name): + """QueryAssociatedAzurePublisher. + [Preview API] + :param str publisher_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + response = self._send(http_method='GET', + location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('AzurePublisher', response) + + def get_categories(self, languages=None): + """GetCategories. + [Preview API] + :param str languages: + :rtype: [str] + """ + query_parameters = {} + if languages is not None: + query_parameters['languages'] = self._serialize.query('languages', languages, 'str') + response = self._send(http_method='GET', + location_id='e0a5a71e-3ac3-43a0-ae7d-0bb5c3046a2a', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_category_details(self, category_name, languages=None, product=None): + """GetCategoryDetails. + [Preview API] + :param str category_name: + :param str languages: + :param str product: + :rtype: :class:` ` + """ + route_values = {} + if category_name is not None: + route_values['categoryName'] = self._serialize.url('category_name', category_name, 'str') + query_parameters = {} + if languages is not None: + query_parameters['languages'] = self._serialize.query('languages', languages, 'str') + if product is not None: + query_parameters['product'] = self._serialize.query('product', product, 'str') + response = self._send(http_method='GET', + location_id='75d3c04d-84d2-4973-acd2-22627587dabc', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('CategoriesResult', response) + + def get_category_tree(self, product, category_id, lcid=None, source=None, product_version=None, skus=None, sub_skus=None): + """GetCategoryTree. + [Preview API] + :param str product: + :param str category_id: + :param int lcid: + :param str source: + :param str product_version: + :param str skus: + :param str sub_skus: + :rtype: :class:` ` + """ + route_values = {} + if product is not None: + route_values['product'] = self._serialize.url('product', product, 'str') + if category_id is not None: + route_values['categoryId'] = self._serialize.url('category_id', category_id, 'str') + query_parameters = {} + if lcid is not None: + query_parameters['lcid'] = self._serialize.query('lcid', lcid, 'int') + if source is not None: + query_parameters['source'] = self._serialize.query('source', source, 'str') + if product_version is not None: + query_parameters['productVersion'] = self._serialize.query('product_version', product_version, 'str') + if skus is not None: + query_parameters['skus'] = self._serialize.query('skus', skus, 'str') + if sub_skus is not None: + query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') + response = self._send(http_method='GET', + location_id='1102bb42-82b0-4955-8d8a-435d6b4cedd3', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProductCategory', response) + + def get_root_categories(self, product, lcid=None, source=None, product_version=None, skus=None, sub_skus=None): + """GetRootCategories. + [Preview API] + :param str product: + :param int lcid: + :param str source: + :param str product_version: + :param str skus: + :param str sub_skus: + :rtype: :class:` ` + """ + route_values = {} + if product is not None: + route_values['product'] = self._serialize.url('product', product, 'str') + query_parameters = {} + if lcid is not None: + query_parameters['lcid'] = self._serialize.query('lcid', lcid, 'int') + if source is not None: + query_parameters['source'] = self._serialize.query('source', source, 'str') + if product_version is not None: + query_parameters['productVersion'] = self._serialize.query('product_version', product_version, 'str') + if skus is not None: + query_parameters['skus'] = self._serialize.query('skus', skus, 'str') + if sub_skus is not None: + query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') + response = self._send(http_method='GET', + location_id='31fba831-35b2-46f6-a641-d05de5a877d8', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProductCategoriesResult', response) + + def get_certificate(self, publisher_name, extension_name, version=None): + """GetCertificate. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='e905ad6a-3f1f-4d08-9f6d-7d357ff8b7d0', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_extension_events(self, publisher_name, extension_name, count=None, after_date=None, include=None, include_property=None): + """GetExtensionEvents. + [Preview API] Get install/uninstall events of an extension. If both count and afterDate parameters are specified, count takes precedence. + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param int count: Count of events to fetch, applies to each event type. + :param datetime after_date: Fetch events that occurred on or after this date + :param str include: Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events + :param str include_property: Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + if include is not None: + query_parameters['include'] = self._serialize.query('include', include, 'str') + if include_property is not None: + query_parameters['includeProperty'] = self._serialize.query('include_property', include_property, 'str') + response = self._send(http_method='GET', + location_id='3d13c499-2168-4d06-bef4-14aba185dcd5', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ExtensionEvents', response) + + def publish_extension_events(self, extension_events): + """PublishExtensionEvents. + [Preview API] API endpoint to publish extension install/uninstall events. This is meant to be invoked by EMS only for sending us data related to install/uninstall of an extension. + :param [ExtensionEvents] extension_events: + """ + content = self._serialize.body(extension_events, '[ExtensionEvents]') + self._send(http_method='POST', + location_id='0bf2bd3a-70e0-4d5d-8bf7-bd4a9c2ab6e7', + version='4.0-preview.1', + content=content) + + def query_extensions(self, extension_query, account_token=None): + """QueryExtensions. + [Preview API] + :param :class:` ` extension_query: + :param str account_token: + :rtype: :class:` ` + """ + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + content = self._serialize.body(extension_query, 'ExtensionQuery') + response = self._send(http_method='POST', + location_id='eb9d5ee1-6d43-456b-b80e-8a96fbc014b6', + version='4.0-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('ExtensionQueryResult', response) + + def create_extension(self, upload_stream): + """CreateExtension. + [Preview API] + :param object upload_stream: Stream to upload + :rtype: :class:` ` + """ + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.0-preview.2', + content=content, + media_type='application/octet-stream') + return self._deserialize('PublishedExtension', response) + + def delete_extension_by_id(self, extension_id, version=None): + """DeleteExtensionById. + [Preview API] + :param str extension_id: + :param str version: + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + self._send(http_method='DELETE', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + + def get_extension_by_id(self, extension_id, version=None, flags=None): + """GetExtensionById. + [Preview API] + :param str extension_id: + :param str version: + :param str flags: + :rtype: :class:` ` + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'str') + response = self._send(http_method='GET', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PublishedExtension', response) + + def update_extension_by_id(self, extension_id): + """UpdateExtensionById. + [Preview API] + :param str extension_id: + :rtype: :class:` ` + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='PUT', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('PublishedExtension', response) + + def create_extension_with_publisher(self, upload_stream, publisher_name): + """CreateExtensionWithPublisher. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.0-preview.2', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('PublishedExtension', response) + + def delete_extension(self, publisher_name, extension_name, version=None): + """DeleteExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + self._send(http_method='DELETE', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + + def get_extension(self, publisher_name, extension_name, version=None, flags=None, account_token=None): + """GetExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str flags: + :param str account_token: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'str') + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + response = self._send(http_method='GET', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PublishedExtension', response) + + def update_extension(self, upload_stream, publisher_name, extension_name): + """UpdateExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str extension_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.0-preview.2', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('PublishedExtension', response) + + def update_extension_properties(self, publisher_name, extension_name, flags): + """UpdateExtensionProperties. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str flags: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'str') + response = self._send(http_method='PATCH', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PublishedExtension', response) + + def extension_validator(self, azure_rest_api_request_model): + """ExtensionValidator. + [Preview API] + :param :class:` ` azure_rest_api_request_model: + """ + content = self._serialize.body(azure_rest_api_request_model, 'AzureRestApiRequestModel') + self._send(http_method='POST', + location_id='05e8a5e1-8c59-4c2c-8856-0ff087d1a844', + version='4.0-preview.1', + content=content) + + def send_notifications(self, notification_data): + """SendNotifications. + [Preview API] Send Notification + :param :class:` ` notification_data: Denoting the data needed to send notification + """ + content = self._serialize.body(notification_data, 'NotificationsData') + self._send(http_method='POST', + location_id='eab39817-413c-4602-a49f-07ad00844980', + version='4.0-preview.1', + content=content) + + def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None): + """GetPackage. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None): + """GetAssetWithToken. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str asset_type: + :param str asset_token: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + if asset_token is not None: + route_values['assetToken'] = self._serialize.url('asset_token', asset_token, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='364415a1-0077-4a41-a7a0-06edd4497492', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def query_publishers(self, publisher_query): + """QueryPublishers. + [Preview API] + :param :class:` ` publisher_query: + :rtype: :class:` ` + """ + content = self._serialize.body(publisher_query, 'PublisherQuery') + response = self._send(http_method='POST', + location_id='2ad6ee0a-b53f-4034-9d1d-d009fda1212e', + version='4.0-preview.1', + content=content) + return self._deserialize('PublisherQueryResult', response) + + def create_publisher(self, publisher): + """CreatePublisher. + [Preview API] + :param :class:` ` publisher: + :rtype: :class:` ` + """ + content = self._serialize.body(publisher, 'Publisher') + response = self._send(http_method='POST', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.0-preview.1', + content=content) + return self._deserialize('Publisher', response) + + def delete_publisher(self, publisher_name): + """DeletePublisher. + [Preview API] + :param str publisher_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + self._send(http_method='DELETE', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.0-preview.1', + route_values=route_values) + + def get_publisher(self, publisher_name, flags=None): + """GetPublisher. + [Preview API] + :param str publisher_name: + :param int flags: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Publisher', response) + + def update_publisher(self, publisher, publisher_name): + """UpdatePublisher. + [Preview API] + :param :class:` ` publisher: + :param str publisher_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + content = self._serialize.body(publisher, 'Publisher') + response = self._send(http_method='PUT', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Publisher', response) + + def get_questions(self, publisher_name, extension_name, count=None, page=None, after_date=None): + """GetQuestions. + [Preview API] Returns a list of questions with their responses associated with an extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param int count: Number of questions to retrieve (defaults to 10). + :param int page: Page number from which set of questions are to be retrieved. + :param datetime after_date: If provided, results questions are returned which were posted after this date + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if page is not None: + query_parameters['page'] = self._serialize.query('page', page, 'int') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='c010d03d-812c-4ade-ae07-c1862475eda5', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('QuestionsResult', response) + + def report_question(self, concern, pub_name, ext_name, question_id): + """ReportQuestion. + [Preview API] Flags a concern with an existing question for an extension. + :param :class:` ` concern: User reported concern with a question for the extension. + :param str pub_name: Name of the publisher who published the extension. + :param str ext_name: Name of the extension. + :param long question_id: Identifier of the question to be updated for the extension. + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + content = self._serialize.body(concern, 'Concern') + response = self._send(http_method='POST', + location_id='784910cd-254a-494d-898b-0728549b2f10', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Concern', response) + + def create_question(self, question, publisher_name, extension_name): + """CreateQuestion. + [Preview API] Creates a new question for an extension. + :param :class:` ` question: Question to be created for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(question, 'Question') + response = self._send(http_method='POST', + location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Question', response) + + def delete_question(self, publisher_name, extension_name, question_id): + """DeleteQuestion. + [Preview API] Deletes an existing question and all its associated responses for an extension. (soft delete) + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question to be deleted for the extension. + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + self._send(http_method='DELETE', + location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', + version='4.0-preview.1', + route_values=route_values) + + def update_question(self, question, publisher_name, extension_name, question_id): + """UpdateQuestion. + [Preview API] Updates an existing question for an extension. + :param :class:` ` question: Updated question to be set for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question to be updated for the extension. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + content = self._serialize.body(question, 'Question') + response = self._send(http_method='PATCH', + location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Question', response) + + def create_response(self, response, publisher_name, extension_name, question_id): + """CreateResponse. + [Preview API] Creates a new response for a given question for an extension. + :param :class:` ` response: Response to be created for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question for which response is to be created for the extension. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + content = self._serialize.body(response, 'Response') + response = self._send(http_method='POST', + location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Response', response) + + def delete_response(self, publisher_name, extension_name, question_id, response_id): + """DeleteResponse. + [Preview API] Deletes a response for an extension. (soft delete) + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifies the question whose response is to be deleted. + :param long response_id: Identifies the response to be deleted. + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + if response_id is not None: + route_values['responseId'] = self._serialize.url('response_id', response_id, 'long') + self._send(http_method='DELETE', + location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', + version='4.0-preview.1', + route_values=route_values) + + def update_response(self, response, publisher_name, extension_name, question_id, response_id): + """UpdateResponse. + [Preview API] Updates an existing response for a given question for an extension. + :param :class:` ` response: Updated response to be set for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question for which response is to be updated for the extension. + :param long response_id: Identifier of the response which has to be updated. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + if response_id is not None: + route_values['responseId'] = self._serialize.url('response_id', response_id, 'long') + content = self._serialize.body(response, 'Response') + response = self._send(http_method='PATCH', + location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Response', response) + + def get_extension_reports(self, publisher_name, extension_name, days=None, count=None, after_date=None): + """GetExtensionReports. + [Preview API] Returns extension reports + :param str publisher_name: Name of the publisher who published the extension + :param str extension_name: Name of the extension + :param int days: Last n days report. If afterDate and days are specified, days will take priority + :param int count: Number of events to be returned + :param datetime after_date: Use if you want to fetch events newer than the specified date + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if days is not None: + query_parameters['days'] = self._serialize.query('days', days, 'int') + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='79e0c74f-157f-437e-845f-74fbb4121d4c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_reviews(self, publisher_name, extension_name, count=None, filter_options=None, before_date=None, after_date=None): + """GetReviews. + [Preview API] Returns a list of reviews associated with an extension + :param str publisher_name: Name of the publisher who published the extension + :param str extension_name: Name of the extension + :param int count: Number of reviews to retrieve (defaults to 5) + :param str filter_options: FilterOptions to filter out empty reviews etcetera, defaults to none + :param datetime before_date: Use if you want to fetch reviews older than the specified date, defaults to null + :param datetime after_date: Use if you want to fetch reviews newer than the specified date, defaults to null + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if filter_options is not None: + query_parameters['filterOptions'] = self._serialize.query('filter_options', filter_options, 'str') + if before_date is not None: + query_parameters['beforeDate'] = self._serialize.query('before_date', before_date, 'iso-8601') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='5b3f819f-f247-42ad-8c00-dd9ab9ab246d', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReviewsResult', response) + + def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=None): + """GetReviewsSummary. + [Preview API] Returns a summary of the reviews + :param str pub_name: Name of the publisher who published the extension + :param str ext_name: Name of the extension + :param datetime before_date: Use if you want to fetch summary of reviews older than the specified date, defaults to null + :param datetime after_date: Use if you want to fetch summary of reviews newer than the specified date, defaults to null + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + query_parameters = {} + if before_date is not None: + query_parameters['beforeDate'] = self._serialize.query('before_date', before_date, 'iso-8601') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='b7b44e21-209e-48f0-ae78-04727fc37d77', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReviewSummary', response) + + def create_review(self, review, pub_name, ext_name): + """CreateReview. + [Preview API] Creates a new review for an extension + :param :class:` ` review: Review to be created for the extension + :param str pub_name: Name of the publisher who published the extension + :param str ext_name: Name of the extension + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + content = self._serialize.body(review, 'Review') + response = self._send(http_method='POST', + location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Review', response) + + def delete_review(self, pub_name, ext_name, review_id): + """DeleteReview. + [Preview API] Deletes a review + :param str pub_name: Name of the pubilsher who published the extension + :param str ext_name: Name of the extension + :param long review_id: Id of the review which needs to be updated + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + if review_id is not None: + route_values['reviewId'] = self._serialize.url('review_id', review_id, 'long') + self._send(http_method='DELETE', + location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', + version='4.0-preview.1', + route_values=route_values) + + def update_review(self, review_patch, pub_name, ext_name, review_id): + """UpdateReview. + [Preview API] Updates or Flags a review + :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review + :param str pub_name: Name of the pubilsher who published the extension + :param str ext_name: Name of the extension + :param long review_id: Id of the review which needs to be updated + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + if review_id is not None: + route_values['reviewId'] = self._serialize.url('review_id', review_id, 'long') + content = self._serialize.body(review_patch, 'ReviewPatch') + response = self._send(http_method='PATCH', + location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReviewPatch', response) + + def create_category(self, category): + """CreateCategory. + [Preview API] + :param :class:` ` category: + :rtype: :class:` ` + """ + content = self._serialize.body(category, 'ExtensionCategory') + response = self._send(http_method='POST', + location_id='476531a3-7024-4516-a76a-ed64d3008ad6', + version='4.0-preview.1', + content=content) + return self._deserialize('ExtensionCategory', response) + + def get_gallery_user_settings(self, user_scope, key=None): + """GetGalleryUserSettings. + [Preview API] Get all setting entries for the given user/all-users scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='9b75ece3-7960-401c-848b-148ac01ca350', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{object}', response) + + def set_gallery_user_settings(self, entries, user_scope): + """SetGalleryUserSettings. + [Preview API] Set all setting entries for the given user/all-users scope + :param {object} entries: A key-value pair of all settings that need to be set + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='9b75ece3-7960-401c-848b-148ac01ca350', + version='4.0-preview.1', + route_values=route_values, + content=content) + + def generate_key(self, key_type, expire_current_seconds=None): + """GenerateKey. + [Preview API] + :param str key_type: + :param int expire_current_seconds: + """ + route_values = {} + if key_type is not None: + route_values['keyType'] = self._serialize.url('key_type', key_type, 'str') + query_parameters = {} + if expire_current_seconds is not None: + query_parameters['expireCurrentSeconds'] = self._serialize.query('expire_current_seconds', expire_current_seconds, 'int') + self._send(http_method='POST', + location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_signing_key(self, key_type): + """GetSigningKey. + [Preview API] + :param str key_type: + :rtype: str + """ + route_values = {} + if key_type is not None: + route_values['keyType'] = self._serialize.url('key_type', key_type, 'str') + response = self._send(http_method='GET', + location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def update_extension_statistics(self, extension_statistics_update, publisher_name, extension_name): + """UpdateExtensionStatistics. + [Preview API] + :param :class:` ` extension_statistics_update: + :param str publisher_name: + :param str extension_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(extension_statistics_update, 'ExtensionStatisticUpdate') + self._send(http_method='PATCH', + location_id='a0ea3204-11e9-422d-a9ca-45851cc41400', + version='4.0-preview.1', + route_values=route_values, + content=content) + + def get_extension_daily_stats(self, publisher_name, extension_name, days=None, aggregate=None, after_date=None): + """GetExtensionDailyStats. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param int days: + :param str aggregate: + :param datetime after_date: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if days is not None: + query_parameters['days'] = self._serialize.query('days', days, 'int') + if aggregate is not None: + query_parameters['aggregate'] = self._serialize.query('aggregate', aggregate, 'str') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='ae06047e-51c5-4fb4-ab65-7be488544416', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ExtensionDailyStats', response) + + def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, version): + """GetExtensionDailyStatsAnonymous. + [Preview API] This route/location id only supports HTTP POST anonymously, so that the page view daily stat can be incremented from Marketplace client. Trying to call GET on this route should result in an exception. Without this explicit implementation, calling GET on this public route invokes the above GET implementation GetExtensionDailyStats. + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param str version: Version of the extension + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ExtensionDailyStats', response) + + def increment_extension_daily_stat(self, publisher_name, extension_name, version, stat_type): + """IncrementExtensionDailyStat. + [Preview API] Increments a daily statistic associated with the extension + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param str version: Version of the extension + :param str stat_type: Type of stat to increment + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + query_parameters = {} + if stat_type is not None: + query_parameters['statType'] = self._serialize.query('stat_type', stat_type, 'str') + self._send(http_method='POST', + location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_verification_log(self, publisher_name, extension_name, version): + """GetVerificationLog. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='c5523abe-b843-437f-875b-5833064efe4d', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + diff --git a/vsts/vsts/gallery/v4_0/models/__init__.py b/vsts/vsts/gallery/v4_0/models/__init__.py new file mode 100644 index 00000000..129f227d --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/__init__.py @@ -0,0 +1,115 @@ +# -------------------------------------------------------------------------------------------- +# 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 .acquisition_operation import AcquisitionOperation +from .acquisition_options import AcquisitionOptions +from .answers import Answers +from .asset_details import AssetDetails +from .azure_publisher import AzurePublisher +from .azure_rest_api_request_model import AzureRestApiRequestModel +from .categories_result import CategoriesResult +from .category_language_title import CategoryLanguageTitle +from .concern import Concern +from .event_counts import EventCounts +from .extension_acquisition_request import ExtensionAcquisitionRequest +from .extension_badge import ExtensionBadge +from .extension_category import ExtensionCategory +from .extension_daily_stat import ExtensionDailyStat +from .extension_daily_stats import ExtensionDailyStats +from .extension_event import ExtensionEvent +from .extension_events import ExtensionEvents +from .extension_file import ExtensionFile +from .extension_filter_result import ExtensionFilterResult +from .extension_filter_result_metadata import ExtensionFilterResultMetadata +from .extension_package import ExtensionPackage +from .extension_query import ExtensionQuery +from .extension_query_result import ExtensionQueryResult +from .extension_share import ExtensionShare +from .extension_statistic import ExtensionStatistic +from .extension_statistic_update import ExtensionStatisticUpdate +from .extension_version import ExtensionVersion +from .filter_criteria import FilterCriteria +from .installation_target import InstallationTarget +from .metadata_item import MetadataItem +from .notifications_data import NotificationsData +from .product_categories_result import ProductCategoriesResult +from .product_category import ProductCategory +from .published_extension import PublishedExtension +from .publisher import Publisher +from .publisher_facts import PublisherFacts +from .publisher_filter_result import PublisherFilterResult +from .publisher_query import PublisherQuery +from .publisher_query_result import PublisherQueryResult +from .qn_aItem import QnAItem +from .query_filter import QueryFilter +from .question import Question +from .questions_result import QuestionsResult +from .rating_count_per_rating import RatingCountPerRating +from .response import Response +from .review import Review +from .review_patch import ReviewPatch +from .review_reply import ReviewReply +from .reviews_result import ReviewsResult +from .review_summary import ReviewSummary +from .user_identity_ref import UserIdentityRef +from .user_reported_concern import UserReportedConcern + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOptions', + 'Answers', + 'AssetDetails', + 'AzurePublisher', + 'AzureRestApiRequestModel', + 'CategoriesResult', + 'CategoryLanguageTitle', + 'Concern', + 'EventCounts', + 'ExtensionAcquisitionRequest', + 'ExtensionBadge', + 'ExtensionCategory', + 'ExtensionDailyStat', + 'ExtensionDailyStats', + 'ExtensionEvent', + 'ExtensionEvents', + 'ExtensionFile', + 'ExtensionFilterResult', + 'ExtensionFilterResultMetadata', + 'ExtensionPackage', + 'ExtensionQuery', + 'ExtensionQueryResult', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionStatisticUpdate', + 'ExtensionVersion', + 'FilterCriteria', + 'InstallationTarget', + 'MetadataItem', + 'NotificationsData', + 'ProductCategoriesResult', + 'ProductCategory', + 'PublishedExtension', + 'Publisher', + 'PublisherFacts', + 'PublisherFilterResult', + 'PublisherQuery', + 'PublisherQueryResult', + 'QnAItem', + 'QueryFilter', + 'Question', + 'QuestionsResult', + 'RatingCountPerRating', + 'Response', + 'Review', + 'ReviewPatch', + 'ReviewReply', + 'ReviewsResult', + 'ReviewSummary', + 'UserIdentityRef', + 'UserReportedConcern', +] diff --git a/vsts/vsts/gallery/v4_0/models/acquisition_operation.py b/vsts/vsts/gallery/v4_0/models/acquisition_operation.py new file mode 100644 index 00000000..bd2e4ef2 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/acquisition_operation.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason diff --git a/vsts/vsts/gallery/v4_0/models/acquisition_options.py b/vsts/vsts/gallery/v4_0/models/acquisition_options.py new file mode 100644 index 00000000..e3af2e91 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/acquisition_options.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.target = target diff --git a/vsts/vsts/gallery/v4_0/models/answers.py b/vsts/vsts/gallery/v4_0/models/answers.py new file mode 100644 index 00000000..0f9a70e0 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/answers.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Answers(Model): + """Answers. + + :param vSMarketplace_extension_name: Gets or sets the vs marketplace extension name + :type vSMarketplace_extension_name: str + :param vSMarketplace_publisher_name: Gets or sets the vs marketplace publsiher name + :type vSMarketplace_publisher_name: str + """ + + _attribute_map = { + 'vSMarketplace_extension_name': {'key': 'vSMarketplaceExtensionName', 'type': 'str'}, + 'vSMarketplace_publisher_name': {'key': 'vSMarketplacePublisherName', 'type': 'str'} + } + + def __init__(self, vSMarketplace_extension_name=None, vSMarketplace_publisher_name=None): + super(Answers, self).__init__() + self.vSMarketplace_extension_name = vSMarketplace_extension_name + self.vSMarketplace_publisher_name = vSMarketplace_publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/asset_details.py b/vsts/vsts/gallery/v4_0/models/asset_details.py new file mode 100644 index 00000000..7117e138 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/asset_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssetDetails(Model): + """AssetDetails. + + :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name + :type answers: :class:`Answers ` + :param publisher_natural_identifier: Gets or sets the VS publisher Id + :type publisher_natural_identifier: str + """ + + _attribute_map = { + 'answers': {'key': 'answers', 'type': 'Answers'}, + 'publisher_natural_identifier': {'key': 'publisherNaturalIdentifier', 'type': 'str'} + } + + def __init__(self, answers=None, publisher_natural_identifier=None): + super(AssetDetails, self).__init__() + self.answers = answers + self.publisher_natural_identifier = publisher_natural_identifier diff --git a/vsts/vsts/gallery/v4_0/models/azure_publisher.py b/vsts/vsts/gallery/v4_0/models/azure_publisher.py new file mode 100644 index 00000000..26b6240c --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/azure_publisher.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzurePublisher(Model): + """AzurePublisher. + + :param azure_publisher_id: + :type azure_publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'azure_publisher_id': {'key': 'azurePublisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, azure_publisher_id=None, publisher_name=None): + super(AzurePublisher, self).__init__() + self.azure_publisher_id = azure_publisher_id + self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py b/vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py new file mode 100644 index 00000000..f0b8a542 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzureRestApiRequestModel(Model): + """AzureRestApiRequestModel. + + :param asset_details: Gets or sets the Asset details + :type asset_details: :class:`AssetDetails ` + :param asset_id: Gets or sets the asset id + :type asset_id: str + :param asset_version: Gets or sets the asset version + :type asset_version: long + :param customer_support_email: Gets or sets the customer support email + :type customer_support_email: str + :param integration_contact_email: Gets or sets the integration contact email + :type integration_contact_email: str + :param operation: Gets or sets the asset version + :type operation: str + :param plan_id: Gets or sets the plan identifier if any. + :type plan_id: str + :param publisher_id: Gets or sets the publisher id + :type publisher_id: str + :param type: Gets or sets the resource type + :type type: str + """ + + _attribute_map = { + 'asset_details': {'key': 'assetDetails', 'type': 'AssetDetails'}, + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'asset_version': {'key': 'assetVersion', 'type': 'long'}, + 'customer_support_email': {'key': 'customerSupportEmail', 'type': 'str'}, + 'integration_contact_email': {'key': 'integrationContactEmail', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, asset_details=None, asset_id=None, asset_version=None, customer_support_email=None, integration_contact_email=None, operation=None, plan_id=None, publisher_id=None, type=None): + super(AzureRestApiRequestModel, self).__init__() + self.asset_details = asset_details + self.asset_id = asset_id + self.asset_version = asset_version + self.customer_support_email = customer_support_email + self.integration_contact_email = integration_contact_email + self.operation = operation + self.plan_id = plan_id + self.publisher_id = publisher_id + self.type = type diff --git a/vsts/vsts/gallery/v4_0/models/categories_result.py b/vsts/vsts/gallery/v4_0/models/categories_result.py new file mode 100644 index 00000000..0d861115 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/categories_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CategoriesResult(Model): + """CategoriesResult. + + :param categories: + :type categories: list of :class:`ExtensionCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ExtensionCategory]'} + } + + def __init__(self, categories=None): + super(CategoriesResult, self).__init__() + self.categories = categories diff --git a/vsts/vsts/gallery/v4_0/models/category_language_title.py b/vsts/vsts/gallery/v4_0/models/category_language_title.py new file mode 100644 index 00000000..af873077 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/category_language_title.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CategoryLanguageTitle(Model): + """CategoryLanguageTitle. + + :param lang: The language for which the title is applicable + :type lang: str + :param lcid: The language culture id of the lang parameter + :type lcid: int + :param title: Actual title to be shown on the UI + :type title: str + """ + + _attribute_map = { + 'lang': {'key': 'lang', 'type': 'str'}, + 'lcid': {'key': 'lcid', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, lang=None, lcid=None, title=None): + super(CategoryLanguageTitle, self).__init__() + self.lang = lang + self.lcid = lcid + self.title = title diff --git a/vsts/vsts/gallery/v4_0/models/concern.py b/vsts/vsts/gallery/v4_0/models/concern.py new file mode 100644 index 00000000..ebab8a2a --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/concern.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# 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 .qn_aItem import QnAItem + + +class Concern(QnAItem): + """Concern. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param category: Category of the concern + :type category: object + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'category': {'key': 'category', 'type': 'object'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, category=None): + super(Concern, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.category = category diff --git a/vsts/vsts/gallery/v4_0/models/event_counts.py b/vsts/vsts/gallery/v4_0/models/event_counts.py new file mode 100644 index 00000000..dc65473e --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/event_counts.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventCounts(Model): + """EventCounts. + + :param average_rating: Average rating on the day for extension + :type average_rating: number + :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) + :type buy_count: int + :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) + :type connected_buy_count: int + :param connected_install_count: Number of times the extension was installed in connected scenario (applies only to VSTS extensions) + :type connected_install_count: int + :param install_count: Number of times the extension was installed + :type install_count: long + :param try_count: Number of times the extension was installed as a trial (applies only to VSTS extensions) + :type try_count: int + :param uninstall_count: Number of times the extension was uninstalled (applies only to VSTS extensions) + :type uninstall_count: int + :param web_download_count: Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs) + :type web_download_count: long + :param web_page_views: Number of detail page views + :type web_page_views: long + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'buy_count': {'key': 'buyCount', 'type': 'int'}, + 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, + 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, + 'install_count': {'key': 'installCount', 'type': 'long'}, + 'try_count': {'key': 'tryCount', 'type': 'int'}, + 'uninstall_count': {'key': 'uninstallCount', 'type': 'int'}, + 'web_download_count': {'key': 'webDownloadCount', 'type': 'long'}, + 'web_page_views': {'key': 'webPageViews', 'type': 'long'} + } + + def __init__(self, average_rating=None, buy_count=None, connected_buy_count=None, connected_install_count=None, install_count=None, try_count=None, uninstall_count=None, web_download_count=None, web_page_views=None): + super(EventCounts, self).__init__() + self.average_rating = average_rating + self.buy_count = buy_count + self.connected_buy_count = connected_buy_count + self.connected_install_count = connected_install_count + self.install_count = install_count + self.try_count = try_count + self.uninstall_count = uninstall_count + self.web_download_count = web_download_count + self.web_page_views = web_page_views diff --git a/vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py b/vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py new file mode 100644 index 00000000..593b33e0 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id + :type targets: list of str + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'}, + 'targets': {'key': 'targets', 'type': '[str]'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None, targets=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity + self.targets = targets diff --git a/vsts/vsts/gallery/v4_0/models/extension_badge.py b/vsts/vsts/gallery/v4_0/models/extension_badge.py new file mode 100644 index 00000000..bcb0fa1c --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_badge.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link diff --git a/vsts/vsts/gallery/v4_0/models/extension_category.py b/vsts/vsts/gallery/v4_0/models/extension_category.py new file mode 100644 index 00000000..6fda47d4 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_category.py @@ -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.serialization import Model + + +class ExtensionCategory(Model): + """ExtensionCategory. + + :param associated_products: The name of the products with which this category is associated to. + :type associated_products: list of str + :param category_id: + :type category_id: int + :param category_name: This is the internal name for a category + :type category_name: str + :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles + :type language: str + :param language_titles: The list of all the titles of this category in various languages + :type language_titles: list of :class:`CategoryLanguageTitle ` + :param parent_category_name: This is the internal name of the parent if this is associated with a parent + :type parent_category_name: str + """ + + _attribute_map = { + 'associated_products': {'key': 'associatedProducts', 'type': '[str]'}, + 'category_id': {'key': 'categoryId', 'type': 'int'}, + 'category_name': {'key': 'categoryName', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'language_titles': {'key': 'languageTitles', 'type': '[CategoryLanguageTitle]'}, + 'parent_category_name': {'key': 'parentCategoryName', 'type': 'str'} + } + + def __init__(self, associated_products=None, category_id=None, category_name=None, language=None, language_titles=None, parent_category_name=None): + super(ExtensionCategory, self).__init__() + self.associated_products = associated_products + self.category_id = category_id + self.category_name = category_name + self.language = language + self.language_titles = language_titles + self.parent_category_name = parent_category_name diff --git a/vsts/vsts/gallery/v4_0/models/extension_daily_stat.py b/vsts/vsts/gallery/v4_0/models/extension_daily_stat.py new file mode 100644 index 00000000..cda19c87 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_daily_stat.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDailyStat(Model): + """ExtensionDailyStat. + + :param counts: Stores the event counts + :type counts: :class:`EventCounts ` + :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. + :type extended_stats: dict + :param statistic_date: Timestamp of this data point + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'counts': {'key': 'counts', 'type': 'EventCounts'}, + 'extended_stats': {'key': 'extendedStats', 'type': '{object}'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, counts=None, extended_stats=None, statistic_date=None, version=None): + super(ExtensionDailyStat, self).__init__() + self.counts = counts + self.extended_stats = extended_stats + self.statistic_date = statistic_date + self.version = version diff --git a/vsts/vsts/gallery/v4_0/models/extension_daily_stats.py b/vsts/vsts/gallery/v4_0/models/extension_daily_stats.py new file mode 100644 index 00000000..4d654b65 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_daily_stats.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDailyStats(Model): + """ExtensionDailyStats. + + :param daily_stats: List of extension statistics data points + :type daily_stats: list of :class:`ExtensionDailyStat ` + :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + :param stat_count: Count of stats + :type stat_count: int + """ + + _attribute_map = { + 'daily_stats': {'key': 'dailyStats', 'type': '[ExtensionDailyStat]'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'stat_count': {'key': 'statCount', 'type': 'int'} + } + + def __init__(self, daily_stats=None, extension_id=None, extension_name=None, publisher_name=None, stat_count=None): + super(ExtensionDailyStats, self).__init__() + self.daily_stats = daily_stats + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name + self.stat_count = stat_count diff --git a/vsts/vsts/gallery/v4_0/models/extension_event.py b/vsts/vsts/gallery/v4_0/models/extension_event.py new file mode 100644 index 00000000..be955bb4 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_event.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEvent(Model): + """ExtensionEvent. + + :param id: Id which identifies each data point uniquely + :type id: long + :param properties: + :type properties: :class:`object ` + :param statistic_date: Timestamp of when the event occurred + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, properties=None, statistic_date=None, version=None): + super(ExtensionEvent, self).__init__() + self.id = id + self.properties = properties + self.statistic_date = statistic_date + self.version = version diff --git a/vsts/vsts/gallery/v4_0/models/extension_events.py b/vsts/vsts/gallery/v4_0/models/extension_events.py new file mode 100644 index 00000000..e63f0c32 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_events.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEvents(Model): + """ExtensionEvents. + + :param events: Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event + :type events: dict + :param extension_id: Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + """ + + _attribute_map = { + 'events': {'key': 'events', 'type': '{[ExtensionEvent]}'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, events=None, extension_id=None, extension_name=None, publisher_name=None): + super(ExtensionEvents, self).__init__() + self.events = events + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/extension_file.py b/vsts/vsts/gallery/v4_0/models/extension_file.py new file mode 100644 index 00000000..ba792fd5 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_file.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param content_type: + :type content_type: str + :param file_id: + :type file_id: int + :param is_default: + :type is_default: bool + :param is_public: + :type is_public: bool + :param language: + :type language: str + :param short_description: + :type short_description: str + :param source: + :type source: str + :param version: + :type version: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.content_type = content_type + self.file_id = file_id + self.is_default = is_default + self.is_public = is_public + self.language = language + self.short_description = short_description + self.source = source + self.version = version diff --git a/vsts/vsts/gallery/v4_0/models/extension_filter_result.py b/vsts/vsts/gallery/v4_0/models/extension_filter_result.py new file mode 100644 index 00000000..02bbaea8 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_filter_result.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFilterResult(Model): + """ExtensionFilterResult. + + :param extensions: This is the set of appplications that matched the query filter supplied. + :type extensions: list of :class:`PublishedExtension ` + :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. + :type paging_token: str + :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'result_metadata': {'key': 'resultMetadata', 'type': '[ExtensionFilterResultMetadata]'} + } + + def __init__(self, extensions=None, paging_token=None, result_metadata=None): + super(ExtensionFilterResult, self).__init__() + self.extensions = extensions + self.paging_token = paging_token + self.result_metadata = result_metadata diff --git a/vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py b/vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py new file mode 100644 index 00000000..9ef9cfa9 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFilterResultMetadata(Model): + """ExtensionFilterResultMetadata. + + :param metadata_items: The metadata items for the category + :type metadata_items: list of :class:`MetadataItem ` + :param metadata_type: Defines the category of metadata items + :type metadata_type: str + """ + + _attribute_map = { + 'metadata_items': {'key': 'metadataItems', 'type': '[MetadataItem]'}, + 'metadata_type': {'key': 'metadataType', 'type': 'str'} + } + + def __init__(self, metadata_items=None, metadata_type=None): + super(ExtensionFilterResultMetadata, self).__init__() + self.metadata_items = metadata_items + self.metadata_type = metadata_type diff --git a/vsts/vsts/gallery/v4_0/models/extension_package.py b/vsts/vsts/gallery/v4_0/models/extension_package.py new file mode 100644 index 00000000..384cdb0a --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_package.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionPackage(Model): + """ExtensionPackage. + + :param extension_manifest: Base 64 encoded extension package + :type extension_manifest: str + """ + + _attribute_map = { + 'extension_manifest': {'key': 'extensionManifest', 'type': 'str'} + } + + def __init__(self, extension_manifest=None): + super(ExtensionPackage, self).__init__() + self.extension_manifest = extension_manifest diff --git a/vsts/vsts/gallery/v4_0/models/extension_query.py b/vsts/vsts/gallery/v4_0/models/extension_query.py new file mode 100644 index 00000000..cb319743 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionQuery(Model): + """ExtensionQuery. + + :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. + :type asset_types: list of str + :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. + :type flags: object + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, asset_types=None, filters=None, flags=None): + super(ExtensionQuery, self).__init__() + self.asset_types = asset_types + self.filters = filters + self.flags = flags diff --git a/vsts/vsts/gallery/v4_0/models/extension_query_result.py b/vsts/vsts/gallery/v4_0/models/extension_query_result.py new file mode 100644 index 00000000..424cec9c --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_query_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionQueryResult(Model): + """ExtensionQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`ExtensionFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[ExtensionFilterResult]'} + } + + def __init__(self, results=None): + super(ExtensionQueryResult, self).__init__() + self.results = results diff --git a/vsts/vsts/gallery/v4_0/models/extension_share.py b/vsts/vsts/gallery/v4_0/models/extension_share.py new file mode 100644 index 00000000..acc81ef0 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_share.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type diff --git a/vsts/vsts/gallery/v4_0/models/extension_statistic.py b/vsts/vsts/gallery/v4_0/models/extension_statistic.py new file mode 100644 index 00000000..11fc6704 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_statistic.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: number + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'number'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value diff --git a/vsts/vsts/gallery/v4_0/models/extension_statistic_update.py b/vsts/vsts/gallery/v4_0/models/extension_statistic_update.py new file mode 100644 index 00000000..3152877e --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_statistic_update.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionStatisticUpdate(Model): + """ExtensionStatisticUpdate. + + :param extension_name: + :type extension_name: str + :param operation: + :type operation: object + :param publisher_name: + :type publisher_name: str + :param statistic: + :type statistic: :class:`ExtensionStatistic ` + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'statistic': {'key': 'statistic', 'type': 'ExtensionStatistic'} + } + + def __init__(self, extension_name=None, operation=None, publisher_name=None, statistic=None): + super(ExtensionStatisticUpdate, self).__init__() + self.extension_name = extension_name + self.operation = operation + self.publisher_name = publisher_name + self.statistic = statistic diff --git a/vsts/vsts/gallery/v4_0/models/extension_version.py b/vsts/vsts/gallery/v4_0/models/extension_version.py new file mode 100644 index 00000000..aa660e03 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/extension_version.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description diff --git a/vsts/vsts/gallery/v4_0/models/filter_criteria.py b/vsts/vsts/gallery/v4_0/models/filter_criteria.py new file mode 100644 index 00000000..7002c78e --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/filter_criteria.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FilterCriteria(Model): + """FilterCriteria. + + :param filter_type: + :type filter_type: int + :param value: The value used in the match based on the filter type. + :type value: str + """ + + _attribute_map = { + 'filter_type': {'key': 'filterType', 'type': 'int'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, filter_type=None, value=None): + super(FilterCriteria, self).__init__() + self.filter_type = filter_type + self.value = value diff --git a/vsts/vsts/gallery/v4_0/models/installation_target.py b/vsts/vsts/gallery/v4_0/models/installation_target.py new file mode 100644 index 00000000..572aaae0 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/installation_target.py @@ -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.serialization import Model + + +class InstallationTarget(Model): + """InstallationTarget. + + :param max_inclusive: + :type max_inclusive: bool + :param max_version: + :type max_version: str + :param min_inclusive: + :type min_inclusive: bool + :param min_version: + :type min_version: str + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, + 'max_version': {'key': 'maxVersion', 'type': 'str'}, + 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, + 'min_version': {'key': 'minVersion', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.max_inclusive = max_inclusive + self.max_version = max_version + self.min_inclusive = min_inclusive + self.min_version = min_version + self.target = target + self.target_version = target_version diff --git a/vsts/vsts/gallery/v4_0/models/metadata_item.py b/vsts/vsts/gallery/v4_0/models/metadata_item.py new file mode 100644 index 00000000..c2a8bd96 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/metadata_item.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetadataItem(Model): + """MetadataItem. + + :param count: The count of the metadata item + :type count: int + :param name: The name of the metadata item + :type name: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, count=None, name=None): + super(MetadataItem, self).__init__() + self.count = count + self.name = name diff --git a/vsts/vsts/gallery/v4_0/models/notifications_data.py b/vsts/vsts/gallery/v4_0/models/notifications_data.py new file mode 100644 index 00000000..6decf547 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/notifications_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationsData(Model): + """NotificationsData. + + :param data: Notification data needed + :type data: dict + :param identities: List of users who should get the notification + :type identities: dict + :param type: Type of Mail Notification.Can be Qna , review or CustomerContact + :type type: object + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'identities': {'key': 'identities', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, data=None, identities=None, type=None): + super(NotificationsData, self).__init__() + self.data = data + self.identities = identities + self.type = type diff --git a/vsts/vsts/gallery/v4_0/models/product_categories_result.py b/vsts/vsts/gallery/v4_0/models/product_categories_result.py new file mode 100644 index 00000000..2ea2955b --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/product_categories_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProductCategoriesResult(Model): + """ProductCategoriesResult. + + :param categories: + :type categories: list of :class:`ProductCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ProductCategory]'} + } + + def __init__(self, categories=None): + super(ProductCategoriesResult, self).__init__() + self.categories = categories diff --git a/vsts/vsts/gallery/v4_0/models/product_category.py b/vsts/vsts/gallery/v4_0/models/product_category.py new file mode 100644 index 00000000..20083775 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/product_category.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProductCategory(Model): + """ProductCategory. + + :param children: + :type children: list of :class:`ProductCategory ` + :param has_children: Indicator whether this is a leaf or there are children under this category + :type has_children: bool + :param id: Individual Guid of the Category + :type id: str + :param title: Category Title in the requested language + :type title: str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[ProductCategory]'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, children=None, has_children=None, id=None, title=None): + super(ProductCategory, self).__init__() + self.children = children + self.has_children = has_children + self.id = id + self.title = title diff --git a/vsts/vsts/gallery/v4_0/models/published_extension.py b/vsts/vsts/gallery/v4_0/models/published_extension.py new file mode 100644 index 00000000..19e6caf1 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/published_extension.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions diff --git a/vsts/vsts/gallery/v4_0/models/publisher.py b/vsts/vsts/gallery/v4_0/models/publisher.py new file mode 100644 index 00000000..6850a11a --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/publisher.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Publisher(Model): + """Publisher. + + :param display_name: + :type display_name: str + :param email_address: + :type email_address: list of str + :param extensions: + :type extensions: list of :class:`PublishedExtension ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + :param short_description: + :type short_description: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': '[str]'}, + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'} + } + + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): + super(Publisher, self).__init__() + self.display_name = display_name + self.email_address = email_address + self.extensions = extensions + self.flags = flags + self.last_updated = last_updated + self.long_description = long_description + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.short_description = short_description diff --git a/vsts/vsts/gallery/v4_0/models/publisher_facts.py b/vsts/vsts/gallery/v4_0/models/publisher_facts.py new file mode 100644 index 00000000..979b6d8d --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/publisher_facts.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/publisher_filter_result.py b/vsts/vsts/gallery/v4_0/models/publisher_filter_result.py new file mode 100644 index 00000000..3637cdff --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/publisher_filter_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherFilterResult(Model): + """PublisherFilterResult. + + :param publishers: This is the set of appplications that matched the query filter supplied. + :type publishers: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publishers': {'key': 'publishers', 'type': '[Publisher]'} + } + + def __init__(self, publishers=None): + super(PublisherFilterResult, self).__init__() + self.publishers = publishers diff --git a/vsts/vsts/gallery/v4_0/models/publisher_query.py b/vsts/vsts/gallery/v4_0/models/publisher_query.py new file mode 100644 index 00000000..06b16a75 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/publisher_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherQuery(Model): + """PublisherQuery. + + :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. + :type flags: object + """ + + _attribute_map = { + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, filters=None, flags=None): + super(PublisherQuery, self).__init__() + self.filters = filters + self.flags = flags diff --git a/vsts/vsts/gallery/v4_0/models/publisher_query_result.py b/vsts/vsts/gallery/v4_0/models/publisher_query_result.py new file mode 100644 index 00000000..345da4e3 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/publisher_query_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherQueryResult(Model): + """PublisherQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`PublisherFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[PublisherFilterResult]'} + } + + def __init__(self, results=None): + super(PublisherQueryResult, self).__init__() + self.results = results diff --git a/vsts/vsts/gallery/v4_0/models/qn_aItem.py b/vsts/vsts/gallery/v4_0/models/qn_aItem.py new file mode 100644 index 00000000..4b081f4b --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/qn_aItem.py @@ -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.serialization import Model + + +class QnAItem(Model): + """QnAItem. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(QnAItem, self).__init__() + self.created_date = created_date + self.id = id + self.status = status + self.text = text + self.updated_date = updated_date + self.user = user diff --git a/vsts/vsts/gallery/v4_0/models/query_filter.py b/vsts/vsts/gallery/v4_0/models/query_filter.py new file mode 100644 index 00000000..df36e671 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/query_filter.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QueryFilter(Model): + """QueryFilter. + + :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. + :type criteria: list of :class:`FilterCriteria ` + :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. + :type direction: object + :param page_number: The page number requested by the user. If not provided 1 is assumed by default. + :type page_number: int + :param page_size: The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits. + :type page_size: int + :param paging_token: The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embeded in the token. + :type paging_token: str + :param sort_by: Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only. + :type sort_by: int + :param sort_order: Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value + :type sort_order: int + """ + + _attribute_map = { + 'criteria': {'key': 'criteria', 'type': '[FilterCriteria]'}, + 'direction': {'key': 'direction', 'type': 'object'}, + 'page_number': {'key': 'pageNumber', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'sort_by': {'key': 'sortBy', 'type': 'int'}, + 'sort_order': {'key': 'sortOrder', 'type': 'int'} + } + + def __init__(self, criteria=None, direction=None, page_number=None, page_size=None, paging_token=None, sort_by=None, sort_order=None): + super(QueryFilter, self).__init__() + self.criteria = criteria + self.direction = direction + self.page_number = page_number + self.page_size = page_size + self.paging_token = paging_token + self.sort_by = sort_by + self.sort_order = sort_order diff --git a/vsts/vsts/gallery/v4_0/models/question.py b/vsts/vsts/gallery/v4_0/models/question.py new file mode 100644 index 00000000..e81fbbb9 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/question.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# 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 .qn_aItem import QnAItem + + +class Question(QnAItem): + """Question. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param responses: List of answers in for the question / thread + :type responses: list of :class:`Response ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'responses': {'key': 'responses', 'type': '[Response]'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, responses=None): + super(Question, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.responses = responses diff --git a/vsts/vsts/gallery/v4_0/models/questions_result.py b/vsts/vsts/gallery/v4_0/models/questions_result.py new file mode 100644 index 00000000..fb12ed60 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/questions_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QuestionsResult(Model): + """QuestionsResult. + + :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) + :type has_more_questions: bool + :param questions: List of the QnA threads + :type questions: list of :class:`Question ` + """ + + _attribute_map = { + 'has_more_questions': {'key': 'hasMoreQuestions', 'type': 'bool'}, + 'questions': {'key': 'questions', 'type': '[Question]'} + } + + def __init__(self, has_more_questions=None, questions=None): + super(QuestionsResult, self).__init__() + self.has_more_questions = has_more_questions + self.questions = questions diff --git a/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py new file mode 100644 index 00000000..4c6b6461 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RatingCountPerRating(Model): + """RatingCountPerRating. + + :param rating: Rating value + :type rating: number + :param rating_count: Count of total ratings + :type rating_count: long + """ + + _attribute_map = { + 'rating': {'key': 'rating', 'type': 'number'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'} + } + + def __init__(self, rating=None, rating_count=None): + super(RatingCountPerRating, self).__init__() + self.rating = rating + self.rating_count = rating_count diff --git a/vsts/vsts/gallery/v4_0/models/response.py b/vsts/vsts/gallery/v4_0/models/response.py new file mode 100644 index 00000000..627fba8d --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/response.py @@ -0,0 +1,39 @@ +# -------------------------------------------------------------------------------------------- +# 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 .qn_aItem import QnAItem + + +class Response(QnAItem): + """Response. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(Response, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) diff --git a/vsts/vsts/gallery/v4_0/models/review.py b/vsts/vsts/gallery/v4_0/models/review.py new file mode 100644 index 00000000..2b521429 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/review.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Review(Model): + """Review. + + :param admin_reply: Admin Reply, if any, for this review + :type admin_reply: :class:`ReviewReply ` + :param id: Unique identifier of a review item + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param is_ignored: + :type is_ignored: bool + :param product_version: Version of the product for which review was submitted + :type product_version: str + :param rating: Rating procided by the user + :type rating: number + :param reply: Reply, if any, for this review + :type reply: :class:`ReviewReply ` + :param text: Text description of the review + :type text: str + :param title: Title of the review + :type title: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user_display_name: Name of the user + :type user_display_name: str + :param user_id: Id of the user who submitted the review + :type user_id: str + """ + + _attribute_map = { + 'admin_reply': {'key': 'adminReply', 'type': 'ReviewReply'}, + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'rating': {'key': 'rating', 'type': 'number'}, + 'reply': {'key': 'reply', 'type': 'ReviewReply'}, + 'text': {'key': 'text', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_display_name': {'key': 'userDisplayName', 'type': 'str'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, admin_reply=None, id=None, is_deleted=None, is_ignored=None, product_version=None, rating=None, reply=None, text=None, title=None, updated_date=None, user_display_name=None, user_id=None): + super(Review, self).__init__() + self.admin_reply = admin_reply + self.id = id + self.is_deleted = is_deleted + self.is_ignored = is_ignored + self.product_version = product_version + self.rating = rating + self.reply = reply + self.text = text + self.title = title + self.updated_date = updated_date + self.user_display_name = user_display_name + self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_0/models/review_patch.py b/vsts/vsts/gallery/v4_0/models/review_patch.py new file mode 100644 index 00000000..52e988fd --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/review_patch.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewPatch(Model): + """ReviewPatch. + + :param operation: Denotes the patch operation type + :type operation: object + :param reported_concern: Use when patch operation is FlagReview + :type reported_concern: :class:`UserReportedConcern ` + :param review_item: Use when patch operation is EditReview + :type review_item: :class:`Review ` + """ + + _attribute_map = { + 'operation': {'key': 'operation', 'type': 'object'}, + 'reported_concern': {'key': 'reportedConcern', 'type': 'UserReportedConcern'}, + 'review_item': {'key': 'reviewItem', 'type': 'Review'} + } + + def __init__(self, operation=None, reported_concern=None, review_item=None): + super(ReviewPatch, self).__init__() + self.operation = operation + self.reported_concern = reported_concern + self.review_item = review_item diff --git a/vsts/vsts/gallery/v4_0/models/review_reply.py b/vsts/vsts/gallery/v4_0/models/review_reply.py new file mode 100644 index 00000000..bcf4f5a7 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/review_reply.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewReply(Model): + """ReviewReply. + + :param id: Id of the reply + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param product_version: Version of the product when the reply was submitted or updated + :type product_version: str + :param reply_text: Content of the reply + :type reply_text: str + :param review_id: Id of the review, to which this reply belongs + :type review_id: long + :param title: Title of the reply + :type title: str + :param updated_date: Date the reply was submitted or updated + :type updated_date: datetime + :param user_id: Id of the user who left the reply + :type user_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'reply_text': {'key': 'replyText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, id=None, is_deleted=None, product_version=None, reply_text=None, review_id=None, title=None, updated_date=None, user_id=None): + super(ReviewReply, self).__init__() + self.id = id + self.is_deleted = is_deleted + self.product_version = product_version + self.reply_text = reply_text + self.review_id = review_id + self.title = title + self.updated_date = updated_date + self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_0/models/review_summary.py b/vsts/vsts/gallery/v4_0/models/review_summary.py new file mode 100644 index 00000000..4b32e329 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/review_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewSummary(Model): + """ReviewSummary. + + :param average_rating: Average Rating + :type average_rating: number + :param rating_count: Count of total ratings + :type rating_count: long + :param rating_split: Split of count accross rating + :type rating_split: list of :class:`RatingCountPerRating ` + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'}, + 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} + } + + def __init__(self, average_rating=None, rating_count=None, rating_split=None): + super(ReviewSummary, self).__init__() + self.average_rating = average_rating + self.rating_count = rating_count + self.rating_split = rating_split diff --git a/vsts/vsts/gallery/v4_0/models/reviews_result.py b/vsts/vsts/gallery/v4_0/models/reviews_result.py new file mode 100644 index 00000000..3d579678 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/reviews_result.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewsResult(Model): + """ReviewsResult. + + :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) + :type has_more_reviews: bool + :param reviews: List of reviews + :type reviews: list of :class:`Review ` + :param total_review_count: Count of total review items + :type total_review_count: long + """ + + _attribute_map = { + 'has_more_reviews': {'key': 'hasMoreReviews', 'type': 'bool'}, + 'reviews': {'key': 'reviews', 'type': '[Review]'}, + 'total_review_count': {'key': 'totalReviewCount', 'type': 'long'} + } + + def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None): + super(ReviewsResult, self).__init__() + self.has_more_reviews = has_more_reviews + self.reviews = reviews + self.total_review_count = total_review_count diff --git a/vsts/vsts/gallery/v4_0/models/user_identity_ref.py b/vsts/vsts/gallery/v4_0/models/user_identity_ref.py new file mode 100644 index 00000000..d70a734d --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/user_identity_ref.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserIdentityRef(Model): + """UserIdentityRef. + + :param display_name: User display name + :type display_name: str + :param id: User VSID + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(UserIdentityRef, self).__init__() + self.display_name = display_name + self.id = id diff --git a/vsts/vsts/gallery/v4_0/models/user_reported_concern.py b/vsts/vsts/gallery/v4_0/models/user_reported_concern.py new file mode 100644 index 00000000..739c0b76 --- /dev/null +++ b/vsts/vsts/gallery/v4_0/models/user_reported_concern.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserReportedConcern(Model): + """UserReportedConcern. + + :param category: Category of the concern + :type category: object + :param concern_text: User comment associated with the report + :type concern_text: str + :param review_id: Id of the review which was reported + :type review_id: long + :param submitted_date: Date the report was submitted + :type submitted_date: datetime + :param user_id: Id of the user who reported a review + :type user_id: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'object'}, + 'concern_text': {'key': 'concernText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'submitted_date': {'key': 'submittedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, category=None, concern_text=None, review_id=None, submitted_date=None, user_id=None): + super(UserReportedConcern, self).__init__() + self.category = category + self.concern_text = concern_text + self.review_id = review_id + self.submitted_date = submitted_date + self.user_id = user_id diff --git a/vsts/vsts/git/v4_0/models/git_repository.py b/vsts/vsts/git/v4_0/models/git_repository.py index ba0da3b5..8c2ce70c 100644 --- a/vsts/vsts/git/v4_0/models/git_repository.py +++ b/vsts/vsts/git/v4_0/models/git_repository.py @@ -14,14 +14,8 @@ class GitRepository(Model): :param _links: :type _links: :class:`ReferenceLinks ` - :param created_by_forking: True if the repository was created as a fork - :type created_by_forking: bool :param default_branch: :type default_branch: str - :param fork_options: If set, options for creating this repo as a fork of another one. If unset, this repo is unrelated to any existing forks. - :type fork_options: :class:`GitForkSyncRequestParameters ` - :param fork_parent: Only set when querying repositories. If set, the "parent" fork of this repository. - :type fork_parent: :class:`GlobalGitRepositoryKey ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -42,10 +36,7 @@ class GitRepository(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_by_forking': {'key': 'createdByForking', 'type': 'bool'}, 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'fork_options': {'key': 'forkOptions', 'type': 'GitForkSyncRequestParameters'}, - 'fork_parent': {'key': 'forkParent', 'type': 'GlobalGitRepositoryKey'}, 'id': {'key': 'id', 'type': 'str'}, 'is_fork': {'key': 'isFork', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, @@ -56,13 +47,10 @@ class GitRepository(Model): 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} } - def __init__(self, _links=None, created_by_forking=None, default_branch=None, fork_options=None, fork_parent=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): super(GitRepository, self).__init__() self._links = _links - self.created_by_forking = created_by_forking self.default_branch = default_branch - self.fork_options = fork_options - self.fork_parent = fork_parent self.id = id self.is_fork = is_fork self.name = name diff --git a/vsts/vsts/git/v4_0/models/git_repository_create_options.py b/vsts/vsts/git/v4_0/models/git_repository_create_options.py index d27f3971..13db6bdf 100644 --- a/vsts/vsts/git/v4_0/models/git_repository_create_options.py +++ b/vsts/vsts/git/v4_0/models/git_repository_create_options.py @@ -12,8 +12,6 @@ class GitRepositoryCreateOptions(Model): """GitRepositoryCreateOptions. - :param fork_options: If set, options for creating this repo as a fork of another one. If unset, this repo is unrelated to any existing forks. - :type fork_options: :class:`GitForkSyncRequestParameters ` :param name: :type name: str :param parent_repository: @@ -23,15 +21,13 @@ class GitRepositoryCreateOptions(Model): """ _attribute_map = { - 'fork_options': {'key': 'forkOptions', 'type': 'GitForkSyncRequestParameters'}, 'name': {'key': 'name', 'type': 'str'}, 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'} } - def __init__(self, fork_options=None, name=None, parent_repository=None, project=None): + def __init__(self, name=None, parent_repository=None, project=None): super(GitRepositoryCreateOptions, self).__init__() - self.fork_options = fork_options self.name = name self.parent_repository = parent_repository self.project = project diff --git a/vsts/vsts/licensing/__init__.py b/vsts/vsts/licensing/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/licensing/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/licensing/v4_0/__init__.py b/vsts/vsts/licensing/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/vsts/vsts/licensing/v4_0/licensing_client.py new file mode 100644 index 00000000..c47d4492 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/licensing_client.py @@ -0,0 +1,370 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class LicensingClient(VssClient): + """Licensing + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(LicensingClient, 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_extension_license_usage(self): + """GetExtensionLicenseUsage. + [Preview API] Returns Licensing info about paid extensions assigned to user passed into GetExtensionsAssignedToAccount + :rtype: [AccountLicenseExtensionUsage] + """ + response = self._send(http_method='GET', + location_id='01bce8d3-c130-480f-a332-474ae3f6662e', + version='4.0-preview.1', + returns_collection=True) + return self._deserialize('[AccountLicenseExtensionUsage]', response) + + def get_certificate(self): + """GetCertificate. + [Preview API] + :rtype: object + """ + response = self._send(http_method='GET', + location_id='2e0dbce7-a327-4bc0-a291-056139393f6d', + version='4.0-preview.1') + return self._deserialize('object', response) + + def get_client_rights(self, right_name=None, product_version=None, edition=None, rel_type=None, include_certificate=None, canary=None, machine_id=None): + """GetClientRights. + [Preview API] + :param str right_name: + :param str product_version: + :param str edition: + :param str rel_type: + :param bool include_certificate: + :param str canary: + :param str machine_id: + :rtype: :class:` ` + """ + route_values = {} + if right_name is not None: + route_values['rightName'] = self._serialize.url('right_name', right_name, 'str') + query_parameters = {} + if product_version is not None: + query_parameters['productVersion'] = self._serialize.query('product_version', product_version, 'str') + if edition is not None: + query_parameters['edition'] = self._serialize.query('edition', edition, 'str') + if rel_type is not None: + query_parameters['relType'] = self._serialize.query('rel_type', rel_type, 'str') + if include_certificate is not None: + query_parameters['includeCertificate'] = self._serialize.query('include_certificate', include_certificate, 'bool') + if canary is not None: + query_parameters['canary'] = self._serialize.query('canary', canary, 'str') + if machine_id is not None: + query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'str') + response = self._send(http_method='GET', + location_id='643c72da-eaee-4163-9f07-d748ef5c2a0c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ClientRightsContainer', response) + + def assign_available_account_entitlement(self, user_id): + """AssignAvailableAccountEntitlement. + [Preview API] Assign an available entitilement to a user + :param str user_id: The user to which to assign the entitilement + :rtype: :class:` ` + """ + query_parameters = {} + if user_id is not None: + query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') + response = self._send(http_method='POST', + location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', + version='4.0-preview.1', + query_parameters=query_parameters) + return self._deserialize('AccountEntitlement', response) + + def get_account_entitlement(self): + """GetAccountEntitlement. + [Preview API] Gets the account entitlement of the current user it is mapped to _apis/licensing/entitlements/me so specifically is looking for the user of the request + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', + version='4.0-preview.1') + return self._deserialize('AccountEntitlement', response) + + def assign_account_entitlement_for_user(self, body, user_id): + """AssignAccountEntitlementForUser. + [Preview API] Assign an explicit account entitlement + :param :class:` ` body: The update model for the entitlement + :param str user_id: The id of the user + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + content = self._serialize.body(body, 'AccountEntitlementUpdateModel') + response = self._send(http_method='PUT', + location_id='6490e566-b299-49a7-a4e4-28749752581f', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('AccountEntitlement', response) + + def delete_user_entitlements(self, user_id): + """DeleteUserEntitlements. + [Preview API] + :param str user_id: + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + self._send(http_method='DELETE', + location_id='6490e566-b299-49a7-a4e4-28749752581f', + version='4.0-preview.1', + route_values=route_values) + + def get_account_entitlement_for_user(self, user_id, determine_rights=None): + """GetAccountEntitlementForUser. + [Preview API] Get the entitlements for a user + :param str user_id: The id of the user + :param bool determine_rights: + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + query_parameters = {} + if determine_rights is not None: + query_parameters['determineRights'] = self._serialize.query('determine_rights', determine_rights, 'bool') + response = self._send(http_method='GET', + location_id='6490e566-b299-49a7-a4e4-28749752581f', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AccountEntitlement', response) + + def obtain_available_account_entitlements(self, user_ids): + """ObtainAvailableAccountEntitlements. + [Preview API] Returns AccountEntitlements that are currently assigned to the given list of users in the account + :param [str] user_ids: List of user Ids. + :rtype: [AccountEntitlement] + """ + route_values = {} + content = self._serialize.body(user_ids, '[str]') + response = self._send(http_method='POST', + location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AccountEntitlement]', response) + + def assign_extension_to_all_eligible_users(self, extension_id): + """AssignExtensionToAllEligibleUsers. + [Preview API] Assigns the access to the given extension for all eligible users in the account that do not already have access to the extension though bundle or account assignment + :param str extension_id: The extension id to assign the access to. + :rtype: [ExtensionOperationResult] + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='PUT', + location_id='5434f182-7f32-4135-8326-9340d887c08a', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ExtensionOperationResult]', response) + + def get_eligible_users_for_extension(self, extension_id, options): + """GetEligibleUsersForExtension. + [Preview API] Returns users that are currently eligible to assign the extension to. the list is filtered based on the value of ExtensionFilterOptions + :param str extension_id: The extension to check the eligibility of the users for. + :param str options: The options to filter the list. + :rtype: [str] + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + query_parameters = {} + if options is not None: + query_parameters['options'] = self._serialize.query('options', options, 'str') + response = self._send(http_method='GET', + location_id='5434f182-7f32-4135-8326-9340d887c08a', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_extension_status_for_users(self, extension_id): + """GetExtensionStatusForUsers. + [Preview API] Returns extension assignment status of all account users for the given extension + :param str extension_id: The extension to check the status of the users for. + :rtype: {ExtensionAssignmentDetails} + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='GET', + location_id='5434f182-7f32-4135-8326-9340d887c08a', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{ExtensionAssignmentDetails}', response) + + def assign_extension_to_users(self, body): + """AssignExtensionToUsers. + [Preview API] Assigns the access to the given extension for a given list of users + :param :class:` ` body: The extension assignment details. + :rtype: [ExtensionOperationResult] + """ + content = self._serialize.body(body, 'ExtensionAssignment') + response = self._send(http_method='PUT', + location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', + version='4.0-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[ExtensionOperationResult]', response) + + def get_extensions_assigned_to_user(self, user_id): + """GetExtensionsAssignedToUser. + [Preview API] Returns extensions that are currently assigned to the user in the account + :param str user_id: The user's identity id. + :rtype: {LicensingSource} + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + response = self._send(http_method='GET', + location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{LicensingSource}', response) + + def bulk_get_extensions_assigned_to_users(self, user_ids): + """BulkGetExtensionsAssignedToUsers. + [Preview API] Returns extensions that are currrently assigned to the users that are in the account + :param [str] user_ids: + :rtype: {[ExtensionSource]} + """ + content = self._serialize.body(user_ids, '[str]') + response = self._send(http_method='PUT', + location_id='1d42ddc2-3e7d-4daa-a0eb-e12c1dbd7c72', + version='4.0-preview.2', + content=content, + returns_collection=True) + return self._deserialize('{[ExtensionSource]}', response) + + def get_extension_license_data(self, extension_id): + """GetExtensionLicenseData. + [Preview API] + :param str extension_id: + :rtype: :class:` ` + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='GET', + location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ExtensionLicenseData', response) + + def register_extension_license(self, extension_license_data): + """RegisterExtensionLicense. + [Preview API] + :param :class:` ` extension_license_data: + :rtype: bool + """ + content = self._serialize.body(extension_license_data, 'ExtensionLicenseData') + response = self._send(http_method='POST', + location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', + version='4.0-preview.1', + content=content) + return self._deserialize('bool', response) + + def compute_extension_rights(self, ids): + """ComputeExtensionRights. + [Preview API] + :param [str] ids: + :rtype: {bool} + """ + content = self._serialize.body(ids, '[str]') + response = self._send(http_method='POST', + location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', + version='4.0-preview.1', + content=content, + returns_collection=True) + return self._deserialize('{bool}', response) + + def get_extension_rights(self): + """GetExtensionRights. + [Preview API] + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', + version='4.0-preview.1') + return self._deserialize('ExtensionRightsResult', response) + + def get_msdn_presence(self): + """GetMsdnPresence. + [Preview API] + """ + self._send(http_method='GET', + location_id='69522c3f-eecc-48d0-b333-f69ffb8fa6cc', + version='4.0-preview.1') + + def get_entitlements(self): + """GetEntitlements. + [Preview API] + :rtype: [MsdnEntitlement] + """ + response = self._send(http_method='GET', + location_id='1cc6137e-12d5-4d44-a4f2-765006c9e85d', + version='4.0-preview.1', + returns_collection=True) + return self._deserialize('[MsdnEntitlement]', response) + + def get_account_licenses_usage(self): + """GetAccountLicensesUsage. + [Preview API] + :rtype: [AccountLicenseUsage] + """ + response = self._send(http_method='GET', + location_id='d3266b87-d395-4e91-97a5-0215b81a0b7d', + version='4.0-preview.1', + returns_collection=True) + return self._deserialize('[AccountLicenseUsage]', response) + + def get_usage_rights(self, right_name=None): + """GetUsageRights. + [Preview API] + :param str right_name: + :rtype: [IUsageRight] + """ + route_values = {} + if right_name is not None: + route_values['rightName'] = self._serialize.url('right_name', right_name, 'str') + response = self._send(http_method='GET', + location_id='d09ac573-58fe-4948-af97-793db40a7e16', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[IUsageRight]', response) + diff --git a/vsts/vsts/licensing/v4_0/models/__init__.py b/vsts/vsts/licensing/v4_0/models/__init__.py new file mode 100644 index 00000000..f915040d --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/__init__.py @@ -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 .account_entitlement import AccountEntitlement +from .account_entitlement_update_model import AccountEntitlementUpdateModel +from .account_license_extension_usage import AccountLicenseExtensionUsage +from .account_license_usage import AccountLicenseUsage +from .account_rights import AccountRights +from .account_user_license import AccountUserLicense +from .client_rights_container import ClientRightsContainer +from .extension_assignment import ExtensionAssignment +from .extension_assignment_details import ExtensionAssignmentDetails +from .extension_license_data import ExtensionLicenseData +from .extension_operation_result import ExtensionOperationResult +from .extension_rights_result import ExtensionRightsResult +from .extension_source import ExtensionSource +from .identity_ref import IdentityRef +from .iUsage_right import IUsageRight +from .license import License +from .msdn_entitlement import MsdnEntitlement + +__all__ = [ + 'AccountEntitlement', + 'AccountEntitlementUpdateModel', + 'AccountLicenseExtensionUsage', + 'AccountLicenseUsage', + 'AccountRights', + 'AccountUserLicense', + 'ClientRightsContainer', + 'ExtensionAssignment', + 'ExtensionAssignmentDetails', + 'ExtensionLicenseData', + 'ExtensionOperationResult', + 'ExtensionRightsResult', + 'ExtensionSource', + 'IdentityRef', + 'IUsageRight', + 'License', + 'MsdnEntitlement', +] diff --git a/vsts/vsts/licensing/v4_0/models/account_entitlement.py b/vsts/vsts/licensing/v4_0/models/account_entitlement.py new file mode 100644 index 00000000..b79c1218 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/account_entitlement.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountEntitlement(Model): + """AccountEntitlement. + + :param account_id: Gets or sets the id of the account to which the license belongs + :type account_id: str + :param assignment_date: Gets or sets the date the license was assigned + :type assignment_date: datetime + :param assignment_source: Assignment Source + :type assignment_source: object + :param last_accessed_date: Gets or sets the date of the user last sign-in to this account + :type last_accessed_date: datetime + :param license: + :type license: :class:`License ` + :param rights: The computed rights of this user in the account. + :type rights: :class:`AccountRights ` + :param status: The status of the user in the account + :type status: object + :param user: Identity information of the user to which the license belongs + :type user: :class:`IdentityRef ` + :param user_id: Gets the id of the user to which the license belongs + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'license': {'key': 'license', 'type': 'License'}, + 'rights': {'key': 'rights', 'type': 'AccountRights'}, + 'status': {'key': 'status', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, rights=None, status=None, user=None, user_id=None): + super(AccountEntitlement, self).__init__() + self.account_id = account_id + self.assignment_date = assignment_date + self.assignment_source = assignment_source + self.last_accessed_date = last_accessed_date + self.license = license + self.rights = rights + self.status = status + self.user = user + self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py b/vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py new file mode 100644 index 00000000..e2708836 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountEntitlementUpdateModel(Model): + """AccountEntitlementUpdateModel. + + :param license: Gets or sets the license for the entitlement + :type license: :class:`License ` + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'License'} + } + + def __init__(self, license=None): + super(AccountEntitlementUpdateModel, self).__init__() + self.license = license diff --git a/vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py b/vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py new file mode 100644 index 00000000..2f33edca --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountLicenseExtensionUsage(Model): + """AccountLicenseExtensionUsage. + + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param included_quantity: + :type included_quantity: int + :param is_trial: + :type is_trial: bool + :param minimum_license_required: + :type minimum_license_required: object + :param msdn_used_count: + :type msdn_used_count: int + :param provisioned_count: + :type provisioned_count: int + :param remaining_trial_days: + :type remaining_trial_days: int + :param trial_expiry_date: + :type trial_expiry_date: datetime + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'is_trial': {'key': 'isTrial', 'type': 'bool'}, + 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, + 'msdn_used_count': {'key': 'msdnUsedCount', 'type': 'int'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, + 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, extension_id=None, extension_name=None, included_quantity=None, is_trial=None, minimum_license_required=None, msdn_used_count=None, provisioned_count=None, remaining_trial_days=None, trial_expiry_date=None, used_count=None): + super(AccountLicenseExtensionUsage, self).__init__() + self.extension_id = extension_id + self.extension_name = extension_name + self.included_quantity = included_quantity + self.is_trial = is_trial + self.minimum_license_required = minimum_license_required + self.msdn_used_count = msdn_used_count + self.provisioned_count = provisioned_count + self.remaining_trial_days = remaining_trial_days + self.trial_expiry_date = trial_expiry_date + self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_0/models/account_license_usage.py b/vsts/vsts/licensing/v4_0/models/account_license_usage.py new file mode 100644 index 00000000..4fa792ae --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/account_license_usage.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountLicenseUsage(Model): + """AccountLicenseUsage. + + :param license: + :type license: :class:`AccountUserLicense ` + :param provisioned_count: + :type provisioned_count: int + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'AccountUserLicense'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, license=None, provisioned_count=None, used_count=None): + super(AccountLicenseUsage, self).__init__() + self.license = license + self.provisioned_count = provisioned_count + self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_0/models/account_rights.py b/vsts/vsts/licensing/v4_0/models/account_rights.py new file mode 100644 index 00000000..2906e32b --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/account_rights.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountRights(Model): + """AccountRights. + + :param level: + :type level: object + :param reason: + :type reason: str + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, level=None, reason=None): + super(AccountRights, self).__init__() + self.level = level + self.reason = reason diff --git a/vsts/vsts/licensing/v4_0/models/account_user_license.py b/vsts/vsts/licensing/v4_0/models/account_user_license.py new file mode 100644 index 00000000..d633f698 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/account_user_license.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountUserLicense(Model): + """AccountUserLicense. + + :param license: + :type license: int + :param source: + :type source: object + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, license=None, source=None): + super(AccountUserLicense, self).__init__() + self.license = license + self.source = source diff --git a/vsts/vsts/licensing/v4_0/models/client_rights_container.py b/vsts/vsts/licensing/v4_0/models/client_rights_container.py new file mode 100644 index 00000000..299142d4 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/client_rights_container.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientRightsContainer(Model): + """ClientRightsContainer. + + :param certificate_bytes: + :type certificate_bytes: list of number + :param token: + :type token: str + """ + + _attribute_map = { + 'certificate_bytes': {'key': 'certificateBytes', 'type': '[number]'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, certificate_bytes=None, token=None): + super(ClientRightsContainer, self).__init__() + self.certificate_bytes = certificate_bytes + self.token = token diff --git a/vsts/vsts/licensing/v4_0/models/extension_assignment.py b/vsts/vsts/licensing/v4_0/models/extension_assignment.py new file mode 100644 index 00000000..708b77bb --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/extension_assignment.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAssignment(Model): + """ExtensionAssignment. + + :param extension_gallery_id: Gets or sets the extension ID to assign. + :type extension_gallery_id: str + :param is_auto_assignment: Set to true if this a auto assignment scenario. + :type is_auto_assignment: bool + :param licensing_source: Gets or sets the licensing source. + :type licensing_source: object + :param user_ids: Gets or sets the user IDs to assign the extension to. + :type user_ids: list of str + """ + + _attribute_map = { + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'is_auto_assignment': {'key': 'isAutoAssignment', 'type': 'bool'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'user_ids': {'key': 'userIds', 'type': '[str]'} + } + + def __init__(self, extension_gallery_id=None, is_auto_assignment=None, licensing_source=None, user_ids=None): + super(ExtensionAssignment, self).__init__() + self.extension_gallery_id = extension_gallery_id + self.is_auto_assignment = is_auto_assignment + self.licensing_source = licensing_source + self.user_ids = user_ids diff --git a/vsts/vsts/licensing/v4_0/models/extension_assignment_details.py b/vsts/vsts/licensing/v4_0/models/extension_assignment_details.py new file mode 100644 index 00000000..2ce0a970 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/extension_assignment_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAssignmentDetails(Model): + """ExtensionAssignmentDetails. + + :param assignment_status: + :type assignment_status: object + :param source_collection_name: + :type source_collection_name: str + """ + + _attribute_map = { + 'assignment_status': {'key': 'assignmentStatus', 'type': 'object'}, + 'source_collection_name': {'key': 'sourceCollectionName', 'type': 'str'} + } + + def __init__(self, assignment_status=None, source_collection_name=None): + super(ExtensionAssignmentDetails, self).__init__() + self.assignment_status = assignment_status + self.source_collection_name = source_collection_name diff --git a/vsts/vsts/licensing/v4_0/models/extension_license_data.py b/vsts/vsts/licensing/v4_0/models/extension_license_data.py new file mode 100644 index 00000000..0e088a4f --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/extension_license_data.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionLicenseData(Model): + """ExtensionLicenseData. + + :param created_date: + :type created_date: datetime + :param extension_id: + :type extension_id: str + :param is_free: + :type is_free: bool + :param minimum_required_access_level: + :type minimum_required_access_level: object + :param updated_date: + :type updated_date: datetime + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'is_free': {'key': 'isFree', 'type': 'bool'}, + 'minimum_required_access_level': {'key': 'minimumRequiredAccessLevel', 'type': 'object'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, created_date=None, extension_id=None, is_free=None, minimum_required_access_level=None, updated_date=None): + super(ExtensionLicenseData, self).__init__() + self.created_date = created_date + self.extension_id = extension_id + self.is_free = is_free + self.minimum_required_access_level = minimum_required_access_level + self.updated_date = updated_date diff --git a/vsts/vsts/licensing/v4_0/models/extension_operation_result.py b/vsts/vsts/licensing/v4_0/models/extension_operation_result.py new file mode 100644 index 00000000..e04aa817 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/extension_operation_result.py @@ -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.serialization import Model + + +class ExtensionOperationResult(Model): + """ExtensionOperationResult. + + :param account_id: + :type account_id: str + :param extension_id: + :type extension_id: str + :param message: + :type message: str + :param operation: + :type operation: object + :param result: + :type result: object + :param user_id: + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'result': {'key': 'result', 'type': 'object'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, extension_id=None, message=None, operation=None, result=None, user_id=None): + super(ExtensionOperationResult, self).__init__() + self.account_id = account_id + self.extension_id = extension_id + self.message = message + self.operation = operation + self.result = result + self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_0/models/extension_rights_result.py b/vsts/vsts/licensing/v4_0/models/extension_rights_result.py new file mode 100644 index 00000000..185249fe --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/extension_rights_result.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionRightsResult(Model): + """ExtensionRightsResult. + + :param entitled_extensions: + :type entitled_extensions: list of str + :param host_id: + :type host_id: str + :param reason: + :type reason: str + :param reason_code: + :type reason_code: object + :param result_code: + :type result_code: object + """ + + _attribute_map = { + 'entitled_extensions': {'key': 'entitledExtensions', 'type': '[str]'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reason_code': {'key': 'reasonCode', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'object'} + } + + def __init__(self, entitled_extensions=None, host_id=None, reason=None, reason_code=None, result_code=None): + super(ExtensionRightsResult, self).__init__() + self.entitled_extensions = entitled_extensions + self.host_id = host_id + self.reason = reason + self.reason_code = reason_code + self.result_code = result_code diff --git a/vsts/vsts/licensing/v4_0/models/extension_source.py b/vsts/vsts/licensing/v4_0/models/extension_source.py new file mode 100644 index 00000000..6a1409e5 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/extension_source.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionSource(Model): + """ExtensionSource. + + :param assignment_source: Assignment Source + :type assignment_source: object + :param extension_gallery_id: extension Identifier + :type extension_gallery_id: str + :param licensing_source: The licensing source of the extension. Account, Msdn, ect. + :type licensing_source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'} + } + + def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_source=None): + super(ExtensionSource, self).__init__() + self.assignment_source = assignment_source + self.extension_gallery_id = extension_gallery_id + self.licensing_source = licensing_source diff --git a/vsts/vsts/licensing/v4_0/models/iUsage_right.py b/vsts/vsts/licensing/v4_0/models/iUsage_right.py new file mode 100644 index 00000000..d35c93c7 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/iUsage_right.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IUsageRight(Model): + """IUsageRight. + + :param attributes: Rights data + :type attributes: dict + :param expiration_date: Rights expiration + :type expiration_date: datetime + :param name: Name, uniquely identifying a usage right + :type name: str + :param version: Version + :type version: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, attributes=None, expiration_date=None, name=None, version=None): + super(IUsageRight, self).__init__() + self.attributes = attributes + self.expiration_date = expiration_date + self.name = name + self.version = version diff --git a/vsts/vsts/licensing/v4_0/models/identity_ref.py b/vsts/vsts/licensing/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/licensing/v4_0/models/license.py b/vsts/vsts/licensing/v4_0/models/license.py new file mode 100644 index 00000000..6e381f36 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/license.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class License(Model): + """License. + + :param source: Gets the source of the license + :type source: object + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, source=None): + super(License, self).__init__() + self.source = source diff --git a/vsts/vsts/licensing/v4_0/models/msdn_entitlement.py b/vsts/vsts/licensing/v4_0/models/msdn_entitlement.py new file mode 100644 index 00000000..3fee52a8 --- /dev/null +++ b/vsts/vsts/licensing/v4_0/models/msdn_entitlement.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MsdnEntitlement(Model): + """MsdnEntitlement. + + :param entitlement_code: Entilement id assigned to Entitlement in Benefits Database. + :type entitlement_code: str + :param entitlement_name: Entitlement Name e.g. Downloads, Chat. + :type entitlement_name: str + :param entitlement_type: Type of Entitlement e.g. Downloads, Chat. + :type entitlement_type: str + :param is_activated: Entitlement activation status + :type is_activated: bool + :param is_entitlement_available: Entitlement availability + :type is_entitlement_available: bool + :param subscription_channel: Write MSDN Channel into CRCT (Retail,MPN,VL,BizSpark,DreamSpark,MCT,FTE,Technet,WebsiteSpark,Other) + :type subscription_channel: str + :param subscription_expiration_date: Subscription Expiration Date. + :type subscription_expiration_date: datetime + :param subscription_id: Subscription id which identifies the subscription itself. This is the Benefit Detail Guid from BMS. + :type subscription_id: str + :param subscription_level_code: Identifier of the subscription or benefit level. + :type subscription_level_code: str + :param subscription_level_name: Name of subscription level. + :type subscription_level_name: str + :param subscription_status: Subscription Status Code (ACT, PND, INA ...). + :type subscription_status: str + """ + + _attribute_map = { + 'entitlement_code': {'key': 'entitlementCode', 'type': 'str'}, + 'entitlement_name': {'key': 'entitlementName', 'type': 'str'}, + 'entitlement_type': {'key': 'entitlementType', 'type': 'str'}, + 'is_activated': {'key': 'isActivated', 'type': 'bool'}, + 'is_entitlement_available': {'key': 'isEntitlementAvailable', 'type': 'bool'}, + 'subscription_channel': {'key': 'subscriptionChannel', 'type': 'str'}, + 'subscription_expiration_date': {'key': 'subscriptionExpirationDate', 'type': 'iso-8601'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_level_code': {'key': 'subscriptionLevelCode', 'type': 'str'}, + 'subscription_level_name': {'key': 'subscriptionLevelName', 'type': 'str'}, + 'subscription_status': {'key': 'subscriptionStatus', 'type': 'str'} + } + + def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_type=None, is_activated=None, is_entitlement_available=None, subscription_channel=None, subscription_expiration_date=None, subscription_id=None, subscription_level_code=None, subscription_level_name=None, subscription_status=None): + super(MsdnEntitlement, self).__init__() + self.entitlement_code = entitlement_code + self.entitlement_name = entitlement_name + self.entitlement_type = entitlement_type + self.is_activated = is_activated + self.is_entitlement_available = is_entitlement_available + self.subscription_channel = subscription_channel + self.subscription_expiration_date = subscription_expiration_date + self.subscription_id = subscription_id + self.subscription_level_code = subscription_level_code + self.subscription_level_name = subscription_level_name + self.subscription_status = subscription_status diff --git a/vsts/vsts/notification/__init__.py b/vsts/vsts/notification/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/notification/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/notification/v4_0/__init__.py b/vsts/vsts/notification/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/notification/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/notification/v4_0/models/__init__.py b/vsts/vsts/notification/v4_0/models/__init__.py new file mode 100644 index 00000000..56c91337 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/__init__.py @@ -0,0 +1,113 @@ +# -------------------------------------------------------------------------------------------- +# 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 .artifact_filter import ArtifactFilter +from .base_subscription_filter import BaseSubscriptionFilter +from .batch_notification_operation import BatchNotificationOperation +from .event_actor import EventActor +from .event_scope import EventScope +from .events_evaluation_result import EventsEvaluationResult +from .expression_filter_clause import ExpressionFilterClause +from .expression_filter_group import ExpressionFilterGroup +from .expression_filter_model import ExpressionFilterModel +from .field_input_values import FieldInputValues +from .field_values_query import FieldValuesQuery +from .identity_ref import IdentityRef +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .input_values_query import InputValuesQuery +from .iSubscription_channel import ISubscriptionChannel +from .iSubscription_filter import ISubscriptionFilter +from .notification_event_field import NotificationEventField +from .notification_event_field_operator import NotificationEventFieldOperator +from .notification_event_field_type import NotificationEventFieldType +from .notification_event_publisher import NotificationEventPublisher +from .notification_event_role import NotificationEventRole +from .notification_event_type import NotificationEventType +from .notification_event_type_category import NotificationEventTypeCategory +from .notification_query_condition import NotificationQueryCondition +from .notification_reason import NotificationReason +from .notifications_evaluation_result import NotificationsEvaluationResult +from .notification_statistic import NotificationStatistic +from .notification_statistics_query import NotificationStatisticsQuery +from .notification_statistics_query_conditions import NotificationStatisticsQueryConditions +from .notification_subscriber import NotificationSubscriber +from .notification_subscriber_update_parameters import NotificationSubscriberUpdateParameters +from .notification_subscription import NotificationSubscription +from .notification_subscription_create_parameters import NotificationSubscriptionCreateParameters +from .notification_subscription_template import NotificationSubscriptionTemplate +from .notification_subscription_update_parameters import NotificationSubscriptionUpdateParameters +from .operator_constraint import OperatorConstraint +from .reference_links import ReferenceLinks +from .subscription_admin_settings import SubscriptionAdminSettings +from .subscription_channel_with_address import SubscriptionChannelWithAddress +from .subscription_evaluation_request import SubscriptionEvaluationRequest +from .subscription_evaluation_result import SubscriptionEvaluationResult +from .subscription_evaluation_settings import SubscriptionEvaluationSettings +from .subscription_management import SubscriptionManagement +from .subscription_query import SubscriptionQuery +from .subscription_query_condition import SubscriptionQueryCondition +from .subscription_scope import SubscriptionScope +from .subscription_user_settings import SubscriptionUserSettings +from .value_definition import ValueDefinition +from .vss_notification_event import VssNotificationEvent + +__all__ = [ + 'ArtifactFilter', + 'BaseSubscriptionFilter', + 'BatchNotificationOperation', + 'EventActor', + 'EventScope', + 'EventsEvaluationResult', + 'ExpressionFilterClause', + 'ExpressionFilterGroup', + 'ExpressionFilterModel', + 'FieldInputValues', + 'FieldValuesQuery', + 'IdentityRef', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'ISubscriptionChannel', + 'ISubscriptionFilter', + 'NotificationEventField', + 'NotificationEventFieldOperator', + 'NotificationEventFieldType', + 'NotificationEventPublisher', + 'NotificationEventRole', + 'NotificationEventType', + 'NotificationEventTypeCategory', + 'NotificationQueryCondition', + 'NotificationReason', + 'NotificationsEvaluationResult', + 'NotificationStatistic', + 'NotificationStatisticsQuery', + 'NotificationStatisticsQueryConditions', + 'NotificationSubscriber', + 'NotificationSubscriberUpdateParameters', + 'NotificationSubscription', + 'NotificationSubscriptionCreateParameters', + 'NotificationSubscriptionTemplate', + 'NotificationSubscriptionUpdateParameters', + 'OperatorConstraint', + 'ReferenceLinks', + 'SubscriptionAdminSettings', + 'SubscriptionChannelWithAddress', + 'SubscriptionEvaluationRequest', + 'SubscriptionEvaluationResult', + 'SubscriptionEvaluationSettings', + 'SubscriptionManagement', + 'SubscriptionQuery', + 'SubscriptionQueryCondition', + 'SubscriptionScope', + 'SubscriptionUserSettings', + 'ValueDefinition', + 'VssNotificationEvent', +] diff --git a/vsts/vsts/notification/v4_0/models/artifact_filter.py b/vsts/vsts/notification/v4_0/models/artifact_filter.py new file mode 100644 index 00000000..633c1aff --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/artifact_filter.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .base_subscription_filter import BaseSubscriptionFilter + + +class ArtifactFilter(BaseSubscriptionFilter): + """ArtifactFilter. + + :param event_type: + :type event_type: str + :param artifact_id: + :type artifact_id: str + :param artifact_type: + :type artifact_type: str + :param artifact_uri: + :type artifact_uri: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, artifact_id=None, artifact_type=None, artifact_uri=None, type=None): + super(ArtifactFilter, self).__init__(event_type=event_type) + self.artifact_id = artifact_id + self.artifact_type = artifact_type + self.artifact_uri = artifact_uri + self.type = type diff --git a/vsts/vsts/notification/v4_0/models/base_subscription_filter.py b/vsts/vsts/notification/v4_0/models/base_subscription_filter.py new file mode 100644 index 00000000..64cfbeca --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/base_subscription_filter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BaseSubscriptionFilter(Model): + """BaseSubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(BaseSubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type diff --git a/vsts/vsts/notification/v4_0/models/batch_notification_operation.py b/vsts/vsts/notification/v4_0/models/batch_notification_operation.py new file mode 100644 index 00000000..e8040157 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/batch_notification_operation.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchNotificationOperation(Model): + """BatchNotificationOperation. + + :param notification_operation: + :type notification_operation: object + :param notification_query_conditions: + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + """ + + _attribute_map = { + 'notification_operation': {'key': 'notificationOperation', 'type': 'object'}, + 'notification_query_conditions': {'key': 'notificationQueryConditions', 'type': '[NotificationQueryCondition]'} + } + + def __init__(self, notification_operation=None, notification_query_conditions=None): + super(BatchNotificationOperation, self).__init__() + self.notification_operation = notification_operation + self.notification_query_conditions = notification_query_conditions diff --git a/vsts/vsts/notification/v4_0/models/event_actor.py b/vsts/vsts/notification/v4_0/models/event_actor.py new file mode 100644 index 00000000..00258294 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/event_actor.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventActor(Model): + """EventActor. + + :param id: Required: This is the identity of the user for the specified role. + :type id: str + :param role: Required: The event specific name of a role. + :type role: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'} + } + + def __init__(self, id=None, role=None): + super(EventActor, self).__init__() + self.id = id + self.role = role diff --git a/vsts/vsts/notification/v4_0/models/event_scope.py b/vsts/vsts/notification/v4_0/models/event_scope.py new file mode 100644 index 00000000..e15c58fd --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/event_scope.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventScope(Model): + """EventScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param type: Required: The event specific type of a scope. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, type=None): + super(EventScope, self).__init__() + self.id = id + self.type = type diff --git a/vsts/vsts/notification/v4_0/models/events_evaluation_result.py b/vsts/vsts/notification/v4_0/models/events_evaluation_result.py new file mode 100644 index 00000000..cf73a07d --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/events_evaluation_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventsEvaluationResult(Model): + """EventsEvaluationResult. + + :param count: Count of events evaluated. + :type count: int + :param matched_count: Count of matched events. + :type matched_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'matched_count': {'key': 'matchedCount', 'type': 'int'} + } + + def __init__(self, count=None, matched_count=None): + super(EventsEvaluationResult, self).__init__() + self.count = count + self.matched_count = matched_count diff --git a/vsts/vsts/notification/v4_0/models/expression_filter_clause.py b/vsts/vsts/notification/v4_0/models/expression_filter_clause.py new file mode 100644 index 00000000..908ba993 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/expression_filter_clause.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExpressionFilterClause(Model): + """ExpressionFilterClause. + + :param field_name: + :type field_name: str + :param index: The order in which this clause appeared in the filter query + :type index: int + :param logical_operator: Logical Operator 'AND', 'OR' or NULL (only for the first clause in the filter) + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(ExpressionFilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value diff --git a/vsts/vsts/notification/v4_0/models/expression_filter_group.py b/vsts/vsts/notification/v4_0/models/expression_filter_group.py new file mode 100644 index 00000000..d7c493bf --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/expression_filter_group.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExpressionFilterGroup(Model): + """ExpressionFilterGroup. + + :param end: The index of the last FilterClause in this group + :type end: int + :param level: Level of the group, since groups can be nested for each nested group the level will increase by 1 + :type level: int + :param start: The index of the first FilterClause in this group + :type start: int + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'int'}, + 'level': {'key': 'level', 'type': 'int'}, + 'start': {'key': 'start', 'type': 'int'} + } + + def __init__(self, end=None, level=None, start=None): + super(ExpressionFilterGroup, self).__init__() + self.end = end + self.level = level + self.start = start diff --git a/vsts/vsts/notification/v4_0/models/expression_filter_model.py b/vsts/vsts/notification/v4_0/models/expression_filter_model.py new file mode 100644 index 00000000..9e483cb0 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/expression_filter_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExpressionFilterModel(Model): + """ExpressionFilterModel. + + :param clauses: Flat list of clauses in this subscription + :type clauses: list of :class:`ExpressionFilterClause ` + :param groups: Grouping of clauses in the subscription + :type groups: list of :class:`ExpressionFilterGroup ` + :param max_group_level: Max depth of the Subscription tree + :type max_group_level: int + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[ExpressionFilterClause]'}, + 'groups': {'key': 'groups', 'type': '[ExpressionFilterGroup]'}, + 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} + } + + def __init__(self, clauses=None, groups=None, max_group_level=None): + super(ExpressionFilterModel, self).__init__() + self.clauses = clauses + self.groups = groups + self.max_group_level = max_group_level diff --git a/vsts/vsts/notification/v4_0/models/field_input_values.py b/vsts/vsts/notification/v4_0/models/field_input_values.py new file mode 100644 index 00000000..4024af7e --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/field_input_values.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# 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 .input_values import InputValues + + +class FieldInputValues(InputValues): + """FieldInputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + :param operators: + :type operators: list of number + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, + 'operators': {'key': 'operators', 'type': '[number]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): + super(FieldInputValues, self).__init__(default_value=default_value, error=error, input_id=input_id, is_disabled=is_disabled, is_limited_to_possible_values=is_limited_to_possible_values, is_read_only=is_read_only, possible_values=possible_values) + self.operators = operators diff --git a/vsts/vsts/notification/v4_0/models/field_values_query.py b/vsts/vsts/notification/v4_0/models/field_values_query.py new file mode 100644 index 00000000..f878970a --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/field_values_query.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .input_values_query import InputValuesQuery + + +class FieldValuesQuery(InputValuesQuery): + """FieldValuesQuery. + + :param current_values: + :type current_values: dict + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + :param input_values: + :type input_values: list of :class:`FieldInputValues ` + :param scope: + :type scope: str + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'input_values': {'key': 'inputValues', 'type': '[FieldInputValues]'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, current_values=None, resource=None, input_values=None, scope=None): + super(FieldValuesQuery, self).__init__(current_values=current_values, resource=resource) + self.input_values = input_values + self.scope = scope diff --git a/vsts/vsts/notification/v4_0/models/iSubscription_channel.py b/vsts/vsts/notification/v4_0/models/iSubscription_channel.py new file mode 100644 index 00000000..9f8ed3c5 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/iSubscription_channel.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ISubscriptionChannel(Model): + """ISubscriptionChannel. + + :param type: + :type type: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, type=None): + super(ISubscriptionChannel, self).__init__() + self.type = type diff --git a/vsts/vsts/notification/v4_0/models/iSubscription_filter.py b/vsts/vsts/notification/v4_0/models/iSubscription_filter.py new file mode 100644 index 00000000..c90034ca --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/iSubscription_filter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ISubscriptionFilter(Model): + """ISubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(ISubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type diff --git a/vsts/vsts/notification/v4_0/models/identity_ref.py b/vsts/vsts/notification/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/notification/v4_0/models/input_value.py b/vsts/vsts/notification/v4_0/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/notification/v4_0/models/input_values.py b/vsts/vsts/notification/v4_0/models/input_values.py new file mode 100644 index 00000000..15d047fe --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/notification/v4_0/models/input_values_error.py b/vsts/vsts/notification/v4_0/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/notification/v4_0/models/input_values_query.py b/vsts/vsts/notification/v4_0/models/input_values_query.py new file mode 100644 index 00000000..26e4c954 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/input_values_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource diff --git a/vsts/vsts/notification/v4_0/models/notification_event_field.py b/vsts/vsts/notification/v4_0/models/notification_event_field.py new file mode 100644 index 00000000..f0154e29 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_event_field.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventField(Model): + """NotificationEventField. + + :param field_type: Gets or sets the type of this field. + :type field_type: :class:`NotificationEventFieldType ` + :param id: Gets or sets the unique identifier of this field. + :type id: str + :param name: Gets or sets the name of this field. + :type name: str + :param path: Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML + :type path: str + :param supported_scopes: Gets or sets the scopes that this field supports. If not specified then the event type scopes apply. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'field_type': {'key': 'fieldType', 'type': 'NotificationEventFieldType'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, field_type=None, id=None, name=None, path=None, supported_scopes=None): + super(NotificationEventField, self).__init__() + self.field_type = field_type + self.id = id + self.name = name + self.path = path + self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_0/models/notification_event_field_operator.py b/vsts/vsts/notification/v4_0/models/notification_event_field_operator.py new file mode 100644 index 00000000..20593c7d --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_event_field_operator.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventFieldOperator(Model): + """NotificationEventFieldOperator. + + :param display_name: Gets or sets the display name of an operator + :type display_name: str + :param id: Gets or sets the id of an operator + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(NotificationEventFieldOperator, self).__init__() + self.display_name = display_name + self.id = id diff --git a/vsts/vsts/notification/v4_0/models/notification_event_field_type.py b/vsts/vsts/notification/v4_0/models/notification_event_field_type.py new file mode 100644 index 00000000..d92b825d --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_event_field_type.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventFieldType(Model): + """NotificationEventFieldType. + + :param id: Gets or sets the unique identifier of this field type. + :type id: str + :param operator_constraints: + :type operator_constraints: list of :class:`OperatorConstraint ` + :param operators: Gets or sets the list of operators that this type supports. + :type operators: list of :class:`NotificationEventFieldOperator ` + :param subscription_field_type: + :type subscription_field_type: object + :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI + :type value: :class:`ValueDefinition ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operator_constraints': {'key': 'operatorConstraints', 'type': '[OperatorConstraint]'}, + 'operators': {'key': 'operators', 'type': '[NotificationEventFieldOperator]'}, + 'subscription_field_type': {'key': 'subscriptionFieldType', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'ValueDefinition'} + } + + def __init__(self, id=None, operator_constraints=None, operators=None, subscription_field_type=None, value=None): + super(NotificationEventFieldType, self).__init__() + self.id = id + self.operator_constraints = operator_constraints + self.operators = operators + self.subscription_field_type = subscription_field_type + self.value = value diff --git a/vsts/vsts/notification/v4_0/models/notification_event_publisher.py b/vsts/vsts/notification/v4_0/models/notification_event_publisher.py new file mode 100644 index 00000000..1d9da751 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_event_publisher.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventPublisher(Model): + """NotificationEventPublisher. + + :param id: + :type id: str + :param subscription_management_info: + :type subscription_management_info: :class:`SubscriptionManagement ` + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_management_info': {'key': 'subscriptionManagementInfo', 'type': 'SubscriptionManagement'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, subscription_management_info=None, url=None): + super(NotificationEventPublisher, self).__init__() + self.id = id + self.subscription_management_info = subscription_management_info + self.url = url diff --git a/vsts/vsts/notification/v4_0/models/notification_event_role.py b/vsts/vsts/notification/v4_0/models/notification_event_role.py new file mode 100644 index 00000000..51f4c866 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_event_role.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventRole(Model): + """NotificationEventRole. + + :param id: Gets or sets an Id for that role, this id is used by the event. + :type id: str + :param name: Gets or sets the Name for that role, this name is used for UI display. + :type name: str + :param supports_groups: Gets or sets whether this role can be a group or just an individual user + :type supports_groups: bool + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supports_groups': {'key': 'supportsGroups', 'type': 'bool'} + } + + def __init__(self, id=None, name=None, supports_groups=None): + super(NotificationEventRole, self).__init__() + self.id = id + self.name = name + self.supports_groups = supports_groups diff --git a/vsts/vsts/notification/v4_0/models/notification_event_type.py b/vsts/vsts/notification/v4_0/models/notification_event_type.py new file mode 100644 index 00000000..17edad39 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_event_type.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventType(Model): + """NotificationEventType. + + :param category: + :type category: :class:`NotificationEventTypeCategory ` + :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa + :type color: str + :param custom_subscriptions_allowed: + :type custom_subscriptions_allowed: bool + :param event_publisher: + :type event_publisher: :class:`NotificationEventPublisher ` + :param fields: + :type fields: dict + :param has_initiator: + :type has_initiator: bool + :param icon: Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class + :type icon: str + :param id: Gets or sets the unique identifier of this event definition. + :type id: str + :param name: Gets or sets the name of this event definition. + :type name: str + :param roles: + :type roles: list of :class:`NotificationEventRole ` + :param supported_scopes: Gets or sets the scopes that this event type supports + :type supported_scopes: list of str + :param url: Gets or sets the rest end point to get this event type details (fields, fields types) + :type url: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'NotificationEventTypeCategory'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom_subscriptions_allowed': {'key': 'customSubscriptionsAllowed', 'type': 'bool'}, + 'event_publisher': {'key': 'eventPublisher', 'type': 'NotificationEventPublisher'}, + 'fields': {'key': 'fields', 'type': '{NotificationEventField}'}, + 'has_initiator': {'key': 'hasInitiator', 'type': 'bool'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[NotificationEventRole]'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, category=None, color=None, custom_subscriptions_allowed=None, event_publisher=None, fields=None, has_initiator=None, icon=None, id=None, name=None, roles=None, supported_scopes=None, url=None): + super(NotificationEventType, self).__init__() + self.category = category + self.color = color + self.custom_subscriptions_allowed = custom_subscriptions_allowed + self.event_publisher = event_publisher + self.fields = fields + self.has_initiator = has_initiator + self.icon = icon + self.id = id + self.name = name + self.roles = roles + self.supported_scopes = supported_scopes + self.url = url diff --git a/vsts/vsts/notification/v4_0/models/notification_event_type_category.py b/vsts/vsts/notification/v4_0/models/notification_event_type_category.py new file mode 100644 index 00000000..0d3040b6 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_event_type_category.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventTypeCategory(Model): + """NotificationEventTypeCategory. + + :param id: Gets or sets the unique identifier of this category. + :type id: str + :param name: Gets or sets the friendly name of this category. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(NotificationEventTypeCategory, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/notification/v4_0/models/notification_query_condition.py b/vsts/vsts/notification/v4_0/models/notification_query_condition.py new file mode 100644 index 00000000..1c1b3aaf --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_query_condition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationQueryCondition(Model): + """NotificationQueryCondition. + + :param event_initiator: + :type event_initiator: str + :param event_type: + :type event_type: str + :param subscriber: + :type subscriber: str + :param subscription_id: + :type subscription_id: str + """ + + _attribute_map = { + 'event_initiator': {'key': 'eventInitiator', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, event_initiator=None, event_type=None, subscriber=None, subscription_id=None): + super(NotificationQueryCondition, self).__init__() + self.event_initiator = event_initiator + self.event_type = event_type + self.subscriber = subscriber + self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_0/models/notification_reason.py b/vsts/vsts/notification/v4_0/models/notification_reason.py new file mode 100644 index 00000000..17bc7357 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_reason.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationReason(Model): + """NotificationReason. + + :param notification_reason_type: + :type notification_reason_type: object + :param target_identities: + :type target_identities: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'notification_reason_type': {'key': 'notificationReasonType', 'type': 'object'}, + 'target_identities': {'key': 'targetIdentities', 'type': '[IdentityRef]'} + } + + def __init__(self, notification_reason_type=None, target_identities=None): + super(NotificationReason, self).__init__() + self.notification_reason_type = notification_reason_type + self.target_identities = target_identities diff --git a/vsts/vsts/notification/v4_0/models/notification_statistic.py b/vsts/vsts/notification/v4_0/models/notification_statistic.py new file mode 100644 index 00000000..b045ca40 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_statistic.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationStatistic(Model): + """NotificationStatistic. + + :param date: + :type date: datetime + :param hit_count: + :type hit_count: int + :param path: + :type path: str + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'hit_count': {'key': 'hitCount', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, date=None, hit_count=None, path=None, type=None, user=None): + super(NotificationStatistic, self).__init__() + self.date = date + self.hit_count = hit_count + self.path = path + self.type = type + self.user = user diff --git a/vsts/vsts/notification/v4_0/models/notification_statistics_query.py b/vsts/vsts/notification/v4_0/models/notification_statistics_query.py new file mode 100644 index 00000000..1b81a70d --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_statistics_query.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationStatisticsQuery(Model): + """NotificationStatisticsQuery. + + :param conditions: + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[NotificationStatisticsQueryConditions]'} + } + + def __init__(self, conditions=None): + super(NotificationStatisticsQuery, self).__init__() + self.conditions = conditions diff --git a/vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py b/vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py new file mode 100644 index 00000000..075c4233 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py @@ -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.serialization import Model + + +class NotificationStatisticsQueryConditions(Model): + """NotificationStatisticsQueryConditions. + + :param end_date: + :type end_date: datetime + :param hit_count_minimum: + :type hit_count_minimum: int + :param path: + :type path: str + :param start_date: + :type start_date: datetime + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'hit_count_minimum': {'key': 'hitCountMinimum', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, end_date=None, hit_count_minimum=None, path=None, start_date=None, type=None, user=None): + super(NotificationStatisticsQueryConditions, self).__init__() + self.end_date = end_date + self.hit_count_minimum = hit_count_minimum + self.path = path + self.start_date = start_date + self.type = type + self.user = user diff --git a/vsts/vsts/notification/v4_0/models/notification_subscriber.py b/vsts/vsts/notification/v4_0/models/notification_subscriber.py new file mode 100644 index 00000000..fa488c80 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_subscriber.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriber(Model): + """NotificationSubscriber. + + :param delivery_preference: Indicates how the subscriber should be notified by default. + :type delivery_preference: object + :param flags: + :type flags: object + :param id: Identifier of the subscriber. + :type id: str + :param preferred_email_address: Preferred email address of the subscriber. A null or empty value indicates no preferred email address has been set. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, flags=None, id=None, preferred_email_address=None): + super(NotificationSubscriber, self).__init__() + self.delivery_preference = delivery_preference + self.flags = flags + self.id = id + self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py b/vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py new file mode 100644 index 00000000..68ca80ff --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriberUpdateParameters(Model): + """NotificationSubscriberUpdateParameters. + + :param delivery_preference: New delivery preference for the subscriber (indicates how the subscriber should be notified). + :type delivery_preference: object + :param preferred_email_address: New preferred email address for the subscriber. Specify an empty string to clear the current address. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, preferred_email_address=None): + super(NotificationSubscriberUpdateParameters, self).__init__() + self.delivery_preference = delivery_preference + self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription.py b/vsts/vsts/notification/v4_0/models/notification_subscription.py new file mode 100644 index 00000000..818f7dd9 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_subscription.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscription(Model): + """NotificationSubscription. + + :param _links: Links to related resources, APIs, and views for the subscription. + :type _links: :class:`ReferenceLinks ` + :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts + :type extended_properties: dict + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param flags: Read-only indicators that further describe the subscription. + :type flags: object + :param id: Subscription identifier. + :type id: str + :param last_modified_by: User that last modified (or created) the subscription. + :type last_modified_by: :class:`IdentityRef ` + :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. + :type modified_date: datetime + :param permissions: The permissions the user have for this subscriptions. + :type permissions: object + :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. + :type status: object + :param status_message: Message that provides more details about the status of the subscription. + :type status_message: str + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. + :type subscriber: :class:`IdentityRef ` + :param url: REST API URL of the subscriotion. + :type url: str + :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'permissions': {'key': 'permissions', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, _links=None, admin_settings=None, channel=None, description=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): + super(NotificationSubscription, self).__init__() + self._links = _links + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.extended_properties = extended_properties + self.filter = filter + self.flags = flags + self.id = id + self.last_modified_by = last_modified_by + self.modified_date = modified_date + self.permissions = permissions + self.scope = scope + self.status = status + self.status_message = status_message + self.subscriber = subscriber + self.url = url + self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py b/vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py new file mode 100644 index 00000000..1d8f01d7 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriptionCreateParameters(Model): + """NotificationSubscriptionCreateParameters. + + :param channel: Channel for delivering notifications triggered by the new subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the new subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscriber: :class:`IdentityRef ` + """ + + _attribute_map = { + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'} + } + + def __init__(self, channel=None, description=None, filter=None, scope=None, subscriber=None): + super(NotificationSubscriptionCreateParameters, self).__init__() + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.subscriber = subscriber diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription_template.py b/vsts/vsts/notification/v4_0/models/notification_subscription_template.py new file mode 100644 index 00000000..a7db31fd --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_subscription_template.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriptionTemplate(Model): + """NotificationSubscriptionTemplate. + + :param description: + :type description: str + :param filter: + :type filter: :class:`ISubscriptionFilter ` + :param id: + :type id: str + :param notification_event_information: + :type notification_event_information: :class:`NotificationEventType ` + :param type: + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notification_event_information': {'key': 'notificationEventInformation', 'type': 'NotificationEventType'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, filter=None, id=None, notification_event_information=None, type=None): + super(NotificationSubscriptionTemplate, self).__init__() + self.description = description + self.filter = filter + self.id = id + self.notification_event_information = notification_event_information + self.type = type diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py b/vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py new file mode 100644 index 00000000..d2ecee78 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriptionUpdateParameters(Model): + """NotificationSubscriptionUpdateParameters. + + :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Updated status for the subscription. Typically used to enable or disable a subscription. + :type status: object + :param status_message: Optional message that provides more details about the updated status. + :type status_message: str + :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, admin_settings=None, channel=None, description=None, filter=None, scope=None, status=None, status_message=None, user_settings=None): + super(NotificationSubscriptionUpdateParameters, self).__init__() + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.status = status + self.status_message = status_message + self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py b/vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py new file mode 100644 index 00000000..3fe8febc --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationsEvaluationResult(Model): + """NotificationsEvaluationResult. + + :param count: Count of generated notifications + :type count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'} + } + + def __init__(self, count=None): + super(NotificationsEvaluationResult, self).__init__() + self.count = count diff --git a/vsts/vsts/notification/v4_0/models/operator_constraint.py b/vsts/vsts/notification/v4_0/models/operator_constraint.py new file mode 100644 index 00000000..f5041e41 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/operator_constraint.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OperatorConstraint(Model): + """OperatorConstraint. + + :param operator: + :type operator: str + :param supported_scopes: Gets or sets the list of scopes that this type supports. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'operator': {'key': 'operator', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, operator=None, supported_scopes=None): + super(OperatorConstraint, self).__init__() + self.operator = operator + self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_0/models/reference_links.py b/vsts/vsts/notification/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/notification/v4_0/models/subscription_admin_settings.py b/vsts/vsts/notification/v4_0/models/subscription_admin_settings.py new file mode 100644 index 00000000..bb257d6a --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_admin_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionAdminSettings(Model): + """SubscriptionAdminSettings. + + :param block_user_opt_out: If true, members of the group subscribed to the associated subscription cannot opt (choose not to get notified) + :type block_user_opt_out: bool + """ + + _attribute_map = { + 'block_user_opt_out': {'key': 'blockUserOptOut', 'type': 'bool'} + } + + def __init__(self, block_user_opt_out=None): + super(SubscriptionAdminSettings, self).__init__() + self.block_user_opt_out = block_user_opt_out diff --git a/vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py b/vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py new file mode 100644 index 00000000..c5d7f620 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionChannelWithAddress(Model): + """SubscriptionChannelWithAddress. + + :param address: + :type address: str + :param type: + :type type: str + :param use_custom_address: + :type use_custom_address: bool + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_custom_address': {'key': 'useCustomAddress', 'type': 'bool'} + } + + def __init__(self, address=None, type=None, use_custom_address=None): + super(SubscriptionChannelWithAddress, self).__init__() + self.address = address + self.type = type + self.use_custom_address = use_custom_address diff --git a/vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py b/vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py new file mode 100644 index 00000000..1de14b6f --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionEvaluationRequest(Model): + """SubscriptionEvaluationRequest. + + :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date + :type min_events_created_date: datetime + :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + """ + + _attribute_map = { + 'min_events_created_date': {'key': 'minEventsCreatedDate', 'type': 'iso-8601'}, + 'subscription_create_parameters': {'key': 'subscriptionCreateParameters', 'type': 'NotificationSubscriptionCreateParameters'} + } + + def __init__(self, min_events_created_date=None, subscription_create_parameters=None): + super(SubscriptionEvaluationRequest, self).__init__() + self.min_events_created_date = min_events_created_date + self.subscription_create_parameters = subscription_create_parameters diff --git a/vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py b/vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py new file mode 100644 index 00000000..4a278a9c --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionEvaluationResult(Model): + """SubscriptionEvaluationResult. + + :param evaluation_job_status: Subscription evaluation job status + :type evaluation_job_status: object + :param events: Subscription evaluation events results. + :type events: :class:`EventsEvaluationResult ` + :param id: The requestId which is the subscription evaluation jobId + :type id: str + :param notifications: Subscription evaluation notification results. + :type notifications: :class:`NotificationsEvaluationResult ` + """ + + _attribute_map = { + 'evaluation_job_status': {'key': 'evaluationJobStatus', 'type': 'object'}, + 'events': {'key': 'events', 'type': 'EventsEvaluationResult'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notifications': {'key': 'notifications', 'type': 'NotificationsEvaluationResult'} + } + + def __init__(self, evaluation_job_status=None, events=None, id=None, notifications=None): + super(SubscriptionEvaluationResult, self).__init__() + self.evaluation_job_status = evaluation_job_status + self.events = events + self.id = id + self.notifications = notifications diff --git a/vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py b/vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py new file mode 100644 index 00000000..2afc0946 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionEvaluationSettings(Model): + """SubscriptionEvaluationSettings. + + :param enabled: Indicates whether subscription evaluation before saving is enabled or not + :type enabled: bool + :param interval: Time interval to check on subscription evaluation job in seconds + :type interval: int + :param threshold: Threshold on the number of notifications for considering a subscription too noisy + :type threshold: int + :param time_out: Time out for the subscription evaluation check in seconds + :type time_out: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'interval': {'key': 'interval', 'type': 'int'}, + 'threshold': {'key': 'threshold', 'type': 'int'}, + 'time_out': {'key': 'timeOut', 'type': 'int'} + } + + def __init__(self, enabled=None, interval=None, threshold=None, time_out=None): + super(SubscriptionEvaluationSettings, self).__init__() + self.enabled = enabled + self.interval = interval + self.threshold = threshold + self.time_out = time_out diff --git a/vsts/vsts/notification/v4_0/models/subscription_management.py b/vsts/vsts/notification/v4_0/models/subscription_management.py new file mode 100644 index 00000000..92f047de --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_management.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionManagement(Model): + """SubscriptionManagement. + + :param service_instance_type: + :type service_instance_type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, service_instance_type=None, url=None): + super(SubscriptionManagement, self).__init__() + self.service_instance_type = service_instance_type + self.url = url diff --git a/vsts/vsts/notification/v4_0/models/subscription_query.py b/vsts/vsts/notification/v4_0/models/subscription_query.py new file mode 100644 index 00000000..898b8ae3 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionQuery(Model): + """SubscriptionQuery. + + :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). + :type conditions: list of :class:`SubscriptionQueryCondition ` + :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. + :type query_flags: object + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[SubscriptionQueryCondition]'}, + 'query_flags': {'key': 'queryFlags', 'type': 'object'} + } + + def __init__(self, conditions=None, query_flags=None): + super(SubscriptionQuery, self).__init__() + self.conditions = conditions + self.query_flags = query_flags diff --git a/vsts/vsts/notification/v4_0/models/subscription_query_condition.py b/vsts/vsts/notification/v4_0/models/subscription_query_condition.py new file mode 100644 index 00000000..29679811 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_query_condition.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionQueryCondition(Model): + """SubscriptionQueryCondition. + + :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. + :type filter: :class:`ISubscriptionFilter ` + :param flags: Flags to specify the the type subscriptions to query for. + :type flags: object + :param scope: Scope that matching subscriptions must have. + :type scope: str + :param subscriber_id: ID of the subscriber (user or group) that matching subscriptions must be subscribed to. + :type subscriber_id: str + :param subscription_id: ID of the subscription to query for. + :type subscription_id: str + """ + + _attribute_map = { + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, filter=None, flags=None, scope=None, subscriber_id=None, subscription_id=None): + super(SubscriptionQueryCondition, self).__init__() + self.filter = filter + self.flags = flags + self.scope = scope + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_0/models/subscription_scope.py b/vsts/vsts/notification/v4_0/models/subscription_scope.py new file mode 100644 index 00000000..50575042 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_scope.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .event_scope import EventScope + + +class SubscriptionScope(EventScope): + """SubscriptionScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param type: Required: The event specific type of a scope. + :type type: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, type=None, name=None): + super(SubscriptionScope, self).__init__(id=id, type=type) + self.name = name diff --git a/vsts/vsts/notification/v4_0/models/subscription_user_settings.py b/vsts/vsts/notification/v4_0/models/subscription_user_settings.py new file mode 100644 index 00000000..ae1d2e4b --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/subscription_user_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionUserSettings(Model): + """SubscriptionUserSettings. + + :param opted_out: Indicates whether the user will receive notifications for the associated group subscription. + :type opted_out: bool + """ + + _attribute_map = { + 'opted_out': {'key': 'optedOut', 'type': 'bool'} + } + + def __init__(self, opted_out=None): + super(SubscriptionUserSettings, self).__init__() + self.opted_out = opted_out diff --git a/vsts/vsts/notification/v4_0/models/value_definition.py b/vsts/vsts/notification/v4_0/models/value_definition.py new file mode 100644 index 00000000..0a03fdf0 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/value_definition.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ValueDefinition(Model): + """ValueDefinition. + + :param data_source: Gets or sets the data source. + :type data_source: list of :class:`InputValue ` + :param end_point: Gets or sets the rest end point. + :type end_point: str + :param result_template: Gets or sets the result template. + :type result_template: str + """ + + _attribute_map = { + 'data_source': {'key': 'dataSource', 'type': '[InputValue]'}, + 'end_point': {'key': 'endPoint', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, data_source=None, end_point=None, result_template=None): + super(ValueDefinition, self).__init__() + self.data_source = data_source + self.end_point = end_point + self.result_template = result_template diff --git a/vsts/vsts/notification/v4_0/models/vss_notification_event.py b/vsts/vsts/notification/v4_0/models/vss_notification_event.py new file mode 100644 index 00000000..3c71d927 --- /dev/null +++ b/vsts/vsts/notification/v4_0/models/vss_notification_event.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VssNotificationEvent(Model): + """VssNotificationEvent. + + :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. + :type actors: list of :class:`EventActor ` + :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. + :type artifact_uris: list of str + :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. + :type data: object + :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. + :type event_type: str + :param scopes: Optional: A list of scopes which are are relevant to the event. + :type scopes: list of :class:`EventScope ` + """ + + _attribute_map = { + 'actors': {'key': 'actors', 'type': '[EventActor]'}, + 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, + 'data': {'key': 'data', 'type': 'object'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[EventScope]'} + } + + def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): + super(VssNotificationEvent, self).__init__() + self.actors = actors + self.artifact_uris = artifact_uris + self.data = data + self.event_type = event_type + self.scopes = scopes diff --git a/vsts/vsts/notification/v4_0/notification_client.py b/vsts/vsts/notification/v4_0/notification_client.py new file mode 100644 index 00000000..b77e4c4a --- /dev/null +++ b/vsts/vsts/notification/v4_0/notification_client.py @@ -0,0 +1,244 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class NotificationClient(VssClient): + """Notification + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(NotificationClient, 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_event_type(self, event_type): + """GetEventType. + [Preview API] Get a specific event type. + :param str event_type: + :rtype: :class:` ` + """ + route_values = {} + if event_type is not None: + route_values['eventType'] = self._serialize.url('event_type', event_type, 'str') + response = self._send(http_method='GET', + location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('NotificationEventType', response) + + def list_event_types(self, publisher_id=None): + """ListEventTypes. + [Preview API] List available event types for this service. Optionally filter by only event types for the specified publisher. + :param str publisher_id: Limit to event types for this publisher + :rtype: [NotificationEventType] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[NotificationEventType]', response) + + def get_notification_reasons(self, notification_id): + """GetNotificationReasons. + [Preview API] + :param int notification_id: + :rtype: :class:` ` + """ + route_values = {} + if notification_id is not None: + route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') + response = self._send(http_method='GET', + location_id='19824fa9-1c76-40e6-9cce-cf0b9ca1cb60', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('NotificationReason', response) + + def list_notification_reasons(self, notification_ids=None): + """ListNotificationReasons. + [Preview API] + :param int notification_ids: + :rtype: [NotificationReason] + """ + query_parameters = {} + if notification_ids is not None: + query_parameters['notificationIds'] = self._serialize.query('notification_ids', notification_ids, 'int') + response = self._send(http_method='GET', + location_id='19824fa9-1c76-40e6-9cce-cf0b9ca1cb60', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[NotificationReason]', response) + + def get_subscriber(self, subscriber_id): + """GetSubscriber. + [Preview API] + :param str subscriber_id: + :rtype: :class:` ` + """ + route_values = {} + if subscriber_id is not None: + route_values['subscriberId'] = self._serialize.url('subscriber_id', subscriber_id, 'str') + response = self._send(http_method='GET', + location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('NotificationSubscriber', response) + + def update_subscriber(self, update_parameters, subscriber_id): + """UpdateSubscriber. + [Preview API] + :param :class:` ` update_parameters: + :param str subscriber_id: + :rtype: :class:` ` + """ + route_values = {} + if subscriber_id is not None: + route_values['subscriberId'] = self._serialize.url('subscriber_id', subscriber_id, 'str') + content = self._serialize.body(update_parameters, 'NotificationSubscriberUpdateParameters') + response = self._send(http_method='PATCH', + location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('NotificationSubscriber', response) + + def query_subscriptions(self, subscription_query): + """QuerySubscriptions. + [Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions. + :param :class:` ` subscription_query: + :rtype: [NotificationSubscription] + """ + content = self._serialize.body(subscription_query, 'SubscriptionQuery') + response = self._send(http_method='POST', + location_id='6864db85-08c0-4006-8e8e-cc1bebe31675', + version='4.0-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[NotificationSubscription]', response) + + def create_subscription(self, create_parameters): + """CreateSubscription. + [Preview API] Create a new subscription. + :param :class:` ` create_parameters: + :rtype: :class:` ` + """ + content = self._serialize.body(create_parameters, 'NotificationSubscriptionCreateParameters') + response = self._send(http_method='POST', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.0-preview.1', + content=content) + return self._deserialize('NotificationSubscription', response) + + def delete_subscription(self, subscription_id): + """DeleteSubscription. + [Preview API] Delete a subscription. + :param str subscription_id: + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + self._send(http_method='DELETE', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.0-preview.1', + route_values=route_values) + + def get_subscription(self, subscription_id, query_flags=None): + """GetSubscription. + [Preview API] Get a notification subscription by its ID. + :param str subscription_id: + :param str query_flags: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + query_parameters = {} + if query_flags is not None: + query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') + response = self._send(http_method='GET', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('NotificationSubscription', response) + + def list_subscriptions(self, target_id=None, ids=None, query_flags=None): + """ListSubscriptions. + [Preview API] + :param str target_id: + :param [str] ids: + :param str query_flags: + :rtype: [NotificationSubscription] + """ + query_parameters = {} + if target_id is not None: + query_parameters['targetId'] = self._serialize.query('target_id', target_id, 'str') + if ids is not None: + ids = ",".join(ids) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if query_flags is not None: + query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') + response = self._send(http_method='GET', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[NotificationSubscription]', response) + + def update_subscription(self, update_parameters, subscription_id): + """UpdateSubscription. + [Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more. + :param :class:` ` update_parameters: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(update_parameters, 'NotificationSubscriptionUpdateParameters') + response = self._send(http_method='PATCH', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('NotificationSubscription', response) + + def update_subscription_user_settings(self, user_settings, subscription_id, user_id=None): + """UpdateSubscriptionUserSettings. + [Preview API] Update the specified users' settings for the specified subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. This API is typically used to opt in or out of a shared subscription. + :param :class:` ` user_settings: + :param str subscription_id: + :param str user_id: ID of the user or "me" to indicate the calling user + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + content = self._serialize.body(user_settings, 'SubscriptionUserSettings') + response = self._send(http_method='PUT', + location_id='ed5a3dff-aeb5-41b1-b4f7-89e66e58b62e', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SubscriptionUserSettings', response) + diff --git a/vsts/vsts/policy/v4_1/models/__init__.py b/vsts/vsts/policy/v4_1/models/__init__.py index 15df3183..a1e4a4bc 100644 --- a/vsts/vsts/policy/v4_1/models/__init__.py +++ b/vsts/vsts/policy/v4_1/models/__init__.py @@ -6,6 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .policy_configuration import PolicyConfiguration from .policy_configuration_ref import PolicyConfigurationRef @@ -16,6 +17,7 @@ from .versioned_policy_configuration_ref import VersionedPolicyConfigurationRef __all__ = [ + 'GraphSubjectBase', 'IdentityRef', 'PolicyConfiguration', 'PolicyConfigurationRef', diff --git a/vsts/vsts/policy/v4_1/models/identity_ref.py b/vsts/vsts/policy/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/policy/v4_1/models/identity_ref.py +++ b/vsts/vsts/policy/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/project_analysis/__init__.py b/vsts/vsts/project_analysis/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/project_analysis/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/project_analysis/v4_0/__init__.py b/vsts/vsts/project_analysis/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/project_analysis/v4_0/models/__init__.py b/vsts/vsts/project_analysis/v4_0/models/__init__.py new file mode 100644 index 00000000..dc7da909 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/models/__init__.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .code_change_trend_item import CodeChangeTrendItem +from .language_statistics import LanguageStatistics +from .project_activity_metrics import ProjectActivityMetrics +from .project_language_analytics import ProjectLanguageAnalytics +from .repository_language_analytics import RepositoryLanguageAnalytics + +__all__ = [ + 'CodeChangeTrendItem', + 'LanguageStatistics', + 'ProjectActivityMetrics', + 'ProjectLanguageAnalytics', + 'RepositoryLanguageAnalytics', +] diff --git a/vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py b/vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py new file mode 100644 index 00000000..805629d0 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeChangeTrendItem(Model): + """CodeChangeTrendItem. + + :param time: + :type time: datetime + :param value: + :type value: int + """ + + _attribute_map = { + 'time': {'key': 'time', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, time=None, value=None): + super(CodeChangeTrendItem, self).__init__() + self.time = time + self.value = value diff --git a/vsts/vsts/project_analysis/v4_0/models/language_statistics.py b/vsts/vsts/project_analysis/v4_0/models/language_statistics.py new file mode 100644 index 00000000..998b34e1 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/models/language_statistics.py @@ -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.serialization import Model + + +class LanguageStatistics(Model): + """LanguageStatistics. + + :param bytes: + :type bytes: long + :param bytes_percentage: + :type bytes_percentage: number + :param files: + :type files: int + :param files_percentage: + :type files_percentage: number + :param name: + :type name: str + :param weighted_bytes_percentage: + :type weighted_bytes_percentage: number + """ + + _attribute_map = { + 'bytes': {'key': 'bytes', 'type': 'long'}, + 'bytes_percentage': {'key': 'bytesPercentage', 'type': 'number'}, + 'files': {'key': 'files', 'type': 'int'}, + 'files_percentage': {'key': 'filesPercentage', 'type': 'number'}, + 'name': {'key': 'name', 'type': 'str'}, + 'weighted_bytes_percentage': {'key': 'weightedBytesPercentage', 'type': 'number'} + } + + def __init__(self, bytes=None, bytes_percentage=None, files=None, files_percentage=None, name=None, weighted_bytes_percentage=None): + super(LanguageStatistics, self).__init__() + self.bytes = bytes + self.bytes_percentage = bytes_percentage + self.files = files + self.files_percentage = files_percentage + self.name = name + self.weighted_bytes_percentage = weighted_bytes_percentage diff --git a/vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py b/vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py new file mode 100644 index 00000000..c0aeb27b --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py @@ -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.serialization import Model + + +class ProjectActivityMetrics(Model): + """ProjectActivityMetrics. + + :param authors_count: + :type authors_count: int + :param code_changes_count: + :type code_changes_count: int + :param code_changes_trend: + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :param project_id: + :type project_id: str + :param pull_requests_completed_count: + :type pull_requests_completed_count: int + :param pull_requests_created_count: + :type pull_requests_created_count: int + """ + + _attribute_map = { + 'authors_count': {'key': 'authorsCount', 'type': 'int'}, + 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, + 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'pull_requests_completed_count': {'key': 'pullRequestsCompletedCount', 'type': 'int'}, + 'pull_requests_created_count': {'key': 'pullRequestsCreatedCount', 'type': 'int'} + } + + def __init__(self, authors_count=None, code_changes_count=None, code_changes_trend=None, project_id=None, pull_requests_completed_count=None, pull_requests_created_count=None): + super(ProjectActivityMetrics, self).__init__() + self.authors_count = authors_count + self.code_changes_count = code_changes_count + self.code_changes_trend = code_changes_trend + self.project_id = project_id + self.pull_requests_completed_count = pull_requests_completed_count + self.pull_requests_created_count = pull_requests_created_count diff --git a/vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py b/vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py new file mode 100644 index 00000000..b1870566 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectLanguageAnalytics(Model): + """ProjectLanguageAnalytics. + + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param repository_language_analytics: + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :param result_phase: + :type result_phase: object + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): + super(ProjectLanguageAnalytics, self).__init__() + self.id = id + self.language_breakdown = language_breakdown + self.repository_language_analytics = repository_language_analytics + self.result_phase = result_phase + self.url = url diff --git a/vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py b/vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py new file mode 100644 index 00000000..dd797c46 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RepositoryLanguageAnalytics(Model): + """RepositoryLanguageAnalytics. + + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param name: + :type name: str + :param result_phase: + :type result_phase: object + :param updated_time: + :type updated_time: datetime + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} + } + + def __init__(self, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): + super(RepositoryLanguageAnalytics, self).__init__() + self.id = id + self.language_breakdown = language_breakdown + self.name = name + self.result_phase = result_phase + self.updated_time = updated_time diff --git a/vsts/vsts/project_analysis/v4_0/project_analysis_client.py b/vsts/vsts/project_analysis/v4_0/project_analysis_client.py new file mode 100644 index 00000000..968bfbb9 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_0/project_analysis_client.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ProjectAnalysisClient(VssClient): + """ProjectAnalysis + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProjectAnalysisClient, 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_project_language_analytics(self, project): + """GetProjectLanguageAnalytics. + [Preview API] + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='5b02a779-1867-433f-90b7-d23ed5e33e57', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ProjectLanguageAnalytics', response) + + def get_project_activity_metrics(self, project, from_date, aggregation_type): + """GetProjectActivityMetrics. + [Preview API] + :param str project: Project ID or project name + :param datetime from_date: + :param str aggregation_type: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') + if aggregation_type is not None: + query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') + response = self._send(http_method='GET', + location_id='e40ae584-9ea6-4f06-a7c7-6284651b466b', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProjectActivityMetrics', response) + diff --git a/vsts/vsts/service_hooks/__init__.py b/vsts/vsts/service_hooks/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/service_hooks/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_hooks/v4_0/__init__.py b/vsts/vsts/service_hooks/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_hooks/v4_0/models/__init__.py b/vsts/vsts/service_hooks/v4_0/models/__init__.py new file mode 100644 index 00000000..30e3e5ee --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/__init__.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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 .consumer import Consumer +from .consumer_action import ConsumerAction +from .event import Event +from .event_type_descriptor import EventTypeDescriptor +from .external_configuration_descriptor import ExternalConfigurationDescriptor +from .formatted_event_message import FormattedEventMessage +from .identity_ref import IdentityRef +from .input_descriptor import InputDescriptor +from .input_filter import InputFilter +from .input_filter_condition import InputFilterCondition +from .input_validation import InputValidation +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .input_values_query import InputValuesQuery +from .notification import Notification +from .notification_details import NotificationDetails +from .notification_results_summary_detail import NotificationResultsSummaryDetail +from .notifications_query import NotificationsQuery +from .notification_summary import NotificationSummary +from .publisher import Publisher +from .publisher_event import PublisherEvent +from .publishers_query import PublishersQuery +from .reference_links import ReferenceLinks +from .resource_container import ResourceContainer +from .session_token import SessionToken +from .subscription import Subscription +from .subscriptions_query import SubscriptionsQuery +from .versioned_resource import VersionedResource + +__all__ = [ + 'Consumer', + 'ConsumerAction', + 'Event', + 'EventTypeDescriptor', + 'ExternalConfigurationDescriptor', + 'FormattedEventMessage', + 'IdentityRef', + 'InputDescriptor', + 'InputFilter', + 'InputFilterCondition', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Notification', + 'NotificationDetails', + 'NotificationResultsSummaryDetail', + 'NotificationsQuery', + 'NotificationSummary', + 'Publisher', + 'PublisherEvent', + 'PublishersQuery', + 'ReferenceLinks', + 'ResourceContainer', + 'SessionToken', + 'Subscription', + 'SubscriptionsQuery', + 'VersionedResource', +] diff --git a/vsts/vsts/service_hooks/v4_0/models/consumer.py b/vsts/vsts/service_hooks/v4_0/models/consumer.py new file mode 100644 index 00000000..39ccb20f --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/consumer.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Consumer(Model): + """Consumer. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param actions: Gets this consumer's actions. + :type actions: list of :class:`ConsumerAction ` + :param authentication_type: Gets or sets this consumer's authentication type. + :type authentication_type: object + :param description: Gets or sets this consumer's localized description. + :type description: str + :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. + :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :param id: Gets or sets this consumer's identifier. + :type id: str + :param image_url: Gets or sets this consumer's image URL, if any. + :type image_url: str + :param information_url: Gets or sets this consumer's information URL, if any. + :type information_url: str + :param input_descriptors: Gets or sets this consumer's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this consumer's localized name. + :type name: str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'actions': {'key': 'actions', 'type': '[ConsumerAction]'}, + 'authentication_type': {'key': 'authenticationType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'external_configuration': {'key': 'externalConfiguration', 'type': 'ExternalConfigurationDescriptor'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'information_url': {'key': 'informationUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, actions=None, authentication_type=None, description=None, external_configuration=None, id=None, image_url=None, information_url=None, input_descriptors=None, name=None, url=None): + super(Consumer, self).__init__() + self._links = _links + self.actions = actions + self.authentication_type = authentication_type + self.description = description + self.external_configuration = external_configuration + self.id = id + self.image_url = image_url + self.information_url = information_url + self.input_descriptors = input_descriptors + self.name = name + self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/consumer_action.py b/vsts/vsts/service_hooks/v4_0/models/consumer_action.py new file mode 100644 index 00000000..34960000 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/consumer_action.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ConsumerAction(Model): + """ConsumerAction. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. + :type allow_resource_version_override: bool + :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. + :type consumer_id: str + :param description: Gets or sets this action's localized description. + :type description: str + :param id: Gets or sets this action's identifier. + :type id: str + :param input_descriptors: Gets or sets this action's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this action's localized name. + :type name: str + :param supported_event_types: Gets or sets this action's supported event identifiers. + :type supported_event_types: list of str + :param supported_resource_versions: Gets or sets this action's supported resource versions. + :type supported_resource_versions: dict + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allow_resource_version_override': {'key': 'allowResourceVersionOverride', 'type': 'bool'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supported_event_types': {'key': 'supportedEventTypes', 'type': '[str]'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '{[str]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allow_resource_version_override=None, consumer_id=None, description=None, id=None, input_descriptors=None, name=None, supported_event_types=None, supported_resource_versions=None, url=None): + super(ConsumerAction, self).__init__() + self._links = _links + self.allow_resource_version_override = allow_resource_version_override + self.consumer_id = consumer_id + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.supported_event_types = supported_event_types + self.supported_resource_versions = supported_resource_versions + self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/event.py b/vsts/vsts/service_hooks/v4_0/models/event.py new file mode 100644 index 00000000..a4e448f9 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/event.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Event(Model): + """Event. + + :param created_date: Gets or sets the UTC-based date and time that this event was created. + :type created_date: datetime + :param detailed_message: Gets or sets the detailed message associated with this event. + :type detailed_message: :class:`FormattedEventMessage ` + :param event_type: Gets or sets the type of this event. + :type event_type: str + :param id: Gets or sets the unique identifier of this event. + :type id: str + :param message: Gets or sets the (brief) message associated with this event. + :type message: :class:`FormattedEventMessage ` + :param publisher_id: Gets or sets the identifier of the publisher that raised this event. + :type publisher_id: str + :param resource: Gets or sets the data associated with this event. + :type resource: object + :param resource_containers: Gets or sets the resource containers. + :type resource_containers: dict + :param resource_version: Gets or sets the version of the data associated with this event. + :type resource_version: str + :param session_token: Gets or sets the Session Token that can be used in further interactions + :type session_token: :class:`SessionToken ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'detailed_message': {'key': 'detailedMessage', 'type': 'FormattedEventMessage'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'FormattedEventMessage'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_containers': {'key': 'resourceContainers', 'type': '{ResourceContainer}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'session_token': {'key': 'sessionToken', 'type': 'SessionToken'} + } + + def __init__(self, created_date=None, detailed_message=None, event_type=None, id=None, message=None, publisher_id=None, resource=None, resource_containers=None, resource_version=None, session_token=None): + super(Event, self).__init__() + self.created_date = created_date + self.detailed_message = detailed_message + self.event_type = event_type + self.id = id + self.message = message + self.publisher_id = publisher_id + self.resource = resource + self.resource_containers = resource_containers + self.resource_version = resource_version + self.session_token = session_token diff --git a/vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py b/vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py new file mode 100644 index 00000000..18e95e09 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventTypeDescriptor(Model): + """EventTypeDescriptor. + + :param description: A localized description of the event type + :type description: str + :param id: A unique id for the event type + :type id: str + :param input_descriptors: Event-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: A localized friendly name for the event type + :type name: str + :param publisher_id: A unique id for the publisher of this event type + :type publisher_id: str + :param supported_resource_versions: Supported versions for the event's resource payloads. + :type supported_resource_versions: list of str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, input_descriptors=None, name=None, publisher_id=None, supported_resource_versions=None, url=None): + super(EventTypeDescriptor, self).__init__() + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.publisher_id = publisher_id + self.supported_resource_versions = supported_resource_versions + self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py b/vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py new file mode 100644 index 00000000..c2ab4f98 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExternalConfigurationDescriptor(Model): + """ExternalConfigurationDescriptor. + + :param create_subscription_url: Url of the site to create this type of subscription. + :type create_subscription_url: str + :param edit_subscription_property_name: The name of an input property that contains the URL to edit a subscription. + :type edit_subscription_property_name: str + :param hosted_only: True if the external configuration applies only to hosted. + :type hosted_only: bool + """ + + _attribute_map = { + 'create_subscription_url': {'key': 'createSubscriptionUrl', 'type': 'str'}, + 'edit_subscription_property_name': {'key': 'editSubscriptionPropertyName', 'type': 'str'}, + 'hosted_only': {'key': 'hostedOnly', 'type': 'bool'} + } + + def __init__(self, create_subscription_url=None, edit_subscription_property_name=None, hosted_only=None): + super(ExternalConfigurationDescriptor, self).__init__() + self.create_subscription_url = create_subscription_url + self.edit_subscription_property_name = edit_subscription_property_name + self.hosted_only = hosted_only diff --git a/vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py b/vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py new file mode 100644 index 00000000..7d513262 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FormattedEventMessage(Model): + """FormattedEventMessage. + + :param html: Gets or sets the html format of the message + :type html: str + :param markdown: Gets or sets the markdown format of the message + :type markdown: str + :param text: Gets or sets the raw text of the message + :type text: str + """ + + _attribute_map = { + 'html': {'key': 'html', 'type': 'str'}, + 'markdown': {'key': 'markdown', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, html=None, markdown=None, text=None): + super(FormattedEventMessage, self).__init__() + self.html = html + self.markdown = markdown + self.text = text diff --git a/vsts/vsts/service_hooks/v4_0/models/identity_ref.py b/vsts/vsts/service_hooks/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/input_descriptor.py b/vsts/vsts/service_hooks/v4_0/models/input_descriptor.py new file mode 100644 index 00000000..860efdcc --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_descriptor.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values diff --git a/vsts/vsts/service_hooks/v4_0/models/input_filter.py b/vsts/vsts/service_hooks/v4_0/models/input_filter.py new file mode 100644 index 00000000..e13adab6 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_filter.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputFilter(Model): + """InputFilter. + + :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. + :type conditions: list of :class:`InputFilterCondition ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[InputFilterCondition]'} + } + + def __init__(self, conditions=None): + super(InputFilter, self).__init__() + self.conditions = conditions diff --git a/vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py b/vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py new file mode 100644 index 00000000..1a514738 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputFilterCondition(Model): + """InputFilterCondition. + + :param case_sensitive: Whether or not to do a case sensitive match + :type case_sensitive: bool + :param input_id: The Id of the input to filter on + :type input_id: str + :param input_value: The "expected" input value to compare with the actual input value + :type input_value: str + :param operator: The operator applied between the expected and actual input value + :type operator: object + """ + + _attribute_map = { + 'case_sensitive': {'key': 'caseSensitive', 'type': 'bool'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'input_value': {'key': 'inputValue', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'object'} + } + + def __init__(self, case_sensitive=None, input_id=None, input_value=None, operator=None): + super(InputFilterCondition, self).__init__() + self.case_sensitive = case_sensitive + self.input_id = input_id + self.input_value = input_value + self.operator = operator diff --git a/vsts/vsts/service_hooks/v4_0/models/input_validation.py b/vsts/vsts/service_hooks/v4_0/models/input_validation.py new file mode 100644 index 00000000..f2f1a434 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_validation.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/service_hooks/v4_0/models/input_value.py b/vsts/vsts/service_hooks/v4_0/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/service_hooks/v4_0/models/input_values.py b/vsts/vsts/service_hooks/v4_0/models/input_values.py new file mode 100644 index 00000000..15d047fe --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/service_hooks/v4_0/models/input_values_error.py b/vsts/vsts/service_hooks/v4_0/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/service_hooks/v4_0/models/input_values_query.py b/vsts/vsts/service_hooks/v4_0/models/input_values_query.py new file mode 100644 index 00000000..26e4c954 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/input_values_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource diff --git a/vsts/vsts/service_hooks/v4_0/models/notification.py b/vsts/vsts/service_hooks/v4_0/models/notification.py new file mode 100644 index 00000000..6e6c71af --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/notification.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Notification(Model): + """Notification. + + :param created_date: Gets or sets date and time that this result was created. + :type created_date: datetime + :param details: Details about this notification (if available) + :type details: :class:`NotificationDetails ` + :param event_id: The event id associated with this notification + :type event_id: str + :param id: The notification id + :type id: int + :param modified_date: Gets or sets date and time that this result was last modified. + :type modified_date: datetime + :param result: Result of the notification + :type result: object + :param status: Status of the notification + :type status: object + :param subscriber_id: The subscriber Id associated with this notification. This is the last identity who touched in the subscription. In case of test notifications it can be the tester if the subscription is not created yet. + :type subscriber_id: str + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'details': {'key': 'details', 'type': 'NotificationDetails'}, + 'event_id': {'key': 'eventId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, created_date=None, details=None, event_id=None, id=None, modified_date=None, result=None, status=None, subscriber_id=None, subscription_id=None): + super(Notification, self).__init__() + self.created_date = created_date + self.details = details + self.event_id = event_id + self.id = id + self.modified_date = modified_date + self.result = result + self.status = status + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_0/models/notification_details.py b/vsts/vsts/service_hooks/v4_0/models/notification_details.py new file mode 100644 index 00000000..f71beb0a --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/notification_details.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationDetails(Model): + """NotificationDetails. + + :param completed_date: Gets or sets the time that this notification was completed (response received from the consumer) + :type completed_date: datetime + :param consumer_action_id: Gets or sets this notification detail's consumer action identifier. + :type consumer_action_id: str + :param consumer_id: Gets or sets this notification detail's consumer identifier. + :type consumer_id: str + :param consumer_inputs: Gets or sets this notification detail's consumer inputs. + :type consumer_inputs: dict + :param dequeued_date: Gets or sets the time that this notification was dequeued for processing + :type dequeued_date: datetime + :param error_detail: Gets or sets this notification detail's error detail. + :type error_detail: str + :param error_message: Gets or sets this notification detail's error message. + :type error_message: str + :param event: Gets or sets this notification detail's event content. + :type event: :class:`Event ` + :param event_type: Gets or sets this notification detail's event type. + :type event_type: str + :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) + :type processed_date: datetime + :param publisher_id: Gets or sets this notification detail's publisher identifier. + :type publisher_id: str + :param publisher_inputs: Gets or sets this notification detail's publisher inputs. + :type publisher_inputs: dict + :param queued_date: Gets or sets the time that this notification was queued (created) + :type queued_date: datetime + :param request: Gets or sets this notification detail's request. + :type request: str + :param request_attempts: Number of requests attempted to be sent to the consumer + :type request_attempts: int + :param request_duration: Duration of the request to the consumer in seconds + :type request_duration: number + :param response: Gets or sets this notification detail's reponse. + :type response: str + """ + + _attribute_map = { + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'dequeued_date': {'key': 'dequeuedDate', 'type': 'iso-8601'}, + 'error_detail': {'key': 'errorDetail', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'processed_date': {'key': 'processedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'str'}, + 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, + 'request_duration': {'key': 'requestDuration', 'type': 'number'}, + 'response': {'key': 'response', 'type': 'str'} + } + + def __init__(self, completed_date=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, dequeued_date=None, error_detail=None, error_message=None, event=None, event_type=None, processed_date=None, publisher_id=None, publisher_inputs=None, queued_date=None, request=None, request_attempts=None, request_duration=None, response=None): + super(NotificationDetails, self).__init__() + self.completed_date = completed_date + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.dequeued_date = dequeued_date + self.error_detail = error_detail + self.error_message = error_message + self.event = event + self.event_type = event_type + self.processed_date = processed_date + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.queued_date = queued_date + self.request = request + self.request_attempts = request_attempts + self.request_duration = request_duration + self.response = response diff --git a/vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py b/vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py new file mode 100644 index 00000000..eb8819fa --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationResultsSummaryDetail(Model): + """NotificationResultsSummaryDetail. + + :param notification_count: Count of notification sent out with a matching result. + :type notification_count: int + :param result: Result of the notification + :type result: object + """ + + _attribute_map = { + 'notification_count': {'key': 'notificationCount', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'} + } + + def __init__(self, notification_count=None, result=None): + super(NotificationResultsSummaryDetail, self).__init__() + self.notification_count = notification_count + self.result = result diff --git a/vsts/vsts/service_hooks/v4_0/models/notification_summary.py b/vsts/vsts/service_hooks/v4_0/models/notification_summary.py new file mode 100644 index 00000000..b212ac0a --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/notification_summary.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSummary(Model): + """NotificationSummary. + + :param results: The notification results for this particular subscription. + :type results: list of :class:`NotificationResultsSummaryDetail ` + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[NotificationResultsSummaryDetail]'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, results=None, subscription_id=None): + super(NotificationSummary, self).__init__() + self.results = results + self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_0/models/notifications_query.py b/vsts/vsts/service_hooks/v4_0/models/notifications_query.py new file mode 100644 index 00000000..5c70f4a7 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/notifications_query.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationsQuery(Model): + """NotificationsQuery. + + :param associated_subscriptions: The subscriptions associated with the notifications returned from the query + :type associated_subscriptions: list of :class:`Subscription ` + :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. + :type include_details: bool + :param max_created_date: Optional maximum date at which the notification was created + :type max_created_date: datetime + :param max_results: Optional maximum number of overall results to include + :type max_results: int + :param max_results_per_subscription: Optional maximum number of results for each subscription. Only takes effect when a list of subscription ids is supplied in the query. + :type max_results_per_subscription: int + :param min_created_date: Optional minimum date at which the notification was created + :type min_created_date: datetime + :param publisher_id: Optional publisher id to restrict the results to + :type publisher_id: str + :param results: Results from the query + :type results: list of :class:`Notification ` + :param result_type: Optional notification result type to filter results to + :type result_type: object + :param status: Optional notification status to filter results to + :type status: object + :param subscription_ids: Optional list of subscription ids to restrict the results to + :type subscription_ids: list of str + :param summary: Summary of notifications - the count of each result type (success, fail, ..). + :type summary: list of :class:`NotificationSummary ` + """ + + _attribute_map = { + 'associated_subscriptions': {'key': 'associatedSubscriptions', 'type': '[Subscription]'}, + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'max_created_date': {'key': 'maxCreatedDate', 'type': 'iso-8601'}, + 'max_results': {'key': 'maxResults', 'type': 'int'}, + 'max_results_per_subscription': {'key': 'maxResultsPerSubscription', 'type': 'int'}, + 'min_created_date': {'key': 'minCreatedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[Notification]'}, + 'result_type': {'key': 'resultType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscription_ids': {'key': 'subscriptionIds', 'type': '[str]'}, + 'summary': {'key': 'summary', 'type': '[NotificationSummary]'} + } + + def __init__(self, associated_subscriptions=None, include_details=None, max_created_date=None, max_results=None, max_results_per_subscription=None, min_created_date=None, publisher_id=None, results=None, result_type=None, status=None, subscription_ids=None, summary=None): + super(NotificationsQuery, self).__init__() + self.associated_subscriptions = associated_subscriptions + self.include_details = include_details + self.max_created_date = max_created_date + self.max_results = max_results + self.max_results_per_subscription = max_results_per_subscription + self.min_created_date = min_created_date + self.publisher_id = publisher_id + self.results = results + self.result_type = result_type + self.status = status + self.subscription_ids = subscription_ids + self.summary = summary diff --git a/vsts/vsts/service_hooks/v4_0/models/publisher.py b/vsts/vsts/service_hooks/v4_0/models/publisher.py new file mode 100644 index 00000000..7ebd4d78 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/publisher.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Publisher(Model): + """Publisher. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param description: Gets this publisher's localized description. + :type description: str + :param id: Gets this publisher's identifier. + :type id: str + :param input_descriptors: Publisher-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets this publisher's localized name. + :type name: str + :param service_instance_type: The service instance type of the first party publisher. + :type service_instance_type: str + :param supported_events: Gets this publisher's supported event types. + :type supported_events: list of :class:`EventTypeDescriptor ` + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'supported_events': {'key': 'supportedEvents', 'type': '[EventTypeDescriptor]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, input_descriptors=None, name=None, service_instance_type=None, supported_events=None, url=None): + super(Publisher, self).__init__() + self._links = _links + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.service_instance_type = service_instance_type + self.supported_events = supported_events + self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/publisher_event.py b/vsts/vsts/service_hooks/v4_0/models/publisher_event.py new file mode 100644 index 00000000..91e4c2e0 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/publisher_event.py @@ -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.serialization import Model + + +class PublisherEvent(Model): + """PublisherEvent. + + :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. + :type diagnostics: dict + :param event: The event being published + :type event: :class:`Event ` + :param notification_id: Gets or sets the id of the notification. + :type notification_id: int + :param other_resource_versions: Gets or sets the array of older supported resource versions. + :type other_resource_versions: list of :class:`VersionedResource ` + :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event + :type publisher_input_filters: list of :class:`InputFilter ` + :param subscription: Gets or sets matchd hooks subscription which caused this event. + :type subscription: :class:`Subscription ` + """ + + _attribute_map = { + 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'notification_id': {'key': 'notificationId', 'type': 'int'}, + 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'subscription': {'key': 'subscription', 'type': 'Subscription'} + } + + def __init__(self, diagnostics=None, event=None, notification_id=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): + super(PublisherEvent, self).__init__() + self.diagnostics = diagnostics + self.event = event + self.notification_id = notification_id + self.other_resource_versions = other_resource_versions + self.publisher_input_filters = publisher_input_filters + self.subscription = subscription diff --git a/vsts/vsts/service_hooks/v4_0/models/publishers_query.py b/vsts/vsts/service_hooks/v4_0/models/publishers_query.py new file mode 100644 index 00000000..e75169b9 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/publishers_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishersQuery(Model): + """PublishersQuery. + + :param publisher_ids: Optional list of publisher ids to restrict the results to + :type publisher_ids: list of str + :param publisher_inputs: Filter for publisher inputs + :type publisher_inputs: dict + :param results: Results from the query + :type results: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publisher_ids': {'key': 'publisherIds', 'type': '[str]'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'results': {'key': 'results', 'type': '[Publisher]'} + } + + def __init__(self, publisher_ids=None, publisher_inputs=None, results=None): + super(PublishersQuery, self).__init__() + self.publisher_ids = publisher_ids + self.publisher_inputs = publisher_inputs + self.results = results diff --git a/vsts/vsts/service_hooks/v4_0/models/reference_links.py b/vsts/vsts/service_hooks/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/service_hooks/v4_0/models/resource_container.py b/vsts/vsts/service_hooks/v4_0/models/resource_container.py new file mode 100644 index 00000000..593a8f5d --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/resource_container.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResourceContainer(Model): + """ResourceContainer. + + :param base_url: Gets or sets the container's base URL, i.e. the URL of the host (collection, application, or deploument) containing the container resource. + :type base_url: str + :param id: Gets or sets the container's specific Id. + :type id: str + :param name: Gets or sets the container's name. + :type name: str + :param url: Gets or sets the container's REST API URL. + :type url: str + """ + + _attribute_map = { + 'base_url': {'key': 'baseUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, base_url=None, id=None, name=None, url=None): + super(ResourceContainer, self).__init__() + self.base_url = base_url + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/session_token.py b/vsts/vsts/service_hooks/v4_0/models/session_token.py new file mode 100644 index 00000000..4f2df67f --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/session_token.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SessionToken(Model): + """SessionToken. + + :param error: The error message in case of error + :type error: str + :param token: The access token + :type token: str + :param valid_to: The expiration date in UTC + :type valid_to: datetime + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} + } + + def __init__(self, error=None, token=None, valid_to=None): + super(SessionToken, self).__init__() + self.error = error + self.token = token + self.valid_to = valid_to diff --git a/vsts/vsts/service_hooks/v4_0/models/subscription.py b/vsts/vsts/service_hooks/v4_0/models/subscription.py new file mode 100644 index 00000000..853db6ce --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/subscription.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Subscription(Model): + """Subscription. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param action_description: + :type action_description: str + :param consumer_action_id: + :type consumer_action_id: str + :param consumer_id: + :type consumer_id: str + :param consumer_inputs: Consumer input values + :type consumer_inputs: dict + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_date: + :type created_date: datetime + :param event_description: + :type event_description: str + :param event_type: + :type event_type: str + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_date: + :type modified_date: datetime + :param probation_retries: + :type probation_retries: number + :param publisher_id: + :type publisher_id: str + :param publisher_inputs: Publisher input values + :type publisher_inputs: dict + :param resource_version: + :type resource_version: str + :param status: + :type status: object + :param subscriber: + :type subscriber: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'action_description': {'key': 'actionDescription', 'type': 'str'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'event_description': {'key': 'eventDescription', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'number'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, action_description=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, created_by=None, created_date=None, event_description=None, event_type=None, id=None, modified_by=None, modified_date=None, probation_retries=None, publisher_id=None, publisher_inputs=None, resource_version=None, status=None, subscriber=None, url=None): + super(Subscription, self).__init__() + self._links = _links + self.action_description = action_description + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.created_by = created_by + self.created_date = created_date + self.event_description = event_description + self.event_type = event_type + self.id = id + self.modified_by = modified_by + self.modified_date = modified_date + self.probation_retries = probation_retries + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.resource_version = resource_version + self.status = status + self.subscriber = subscriber + self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py b/vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py new file mode 100644 index 00000000..6287a494 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionsQuery(Model): + """SubscriptionsQuery. + + :param consumer_action_id: Optional consumer action id to restrict the results to (null for any) + :type consumer_action_id: str + :param consumer_id: Optional consumer id to restrict the results to (null for any) + :type consumer_id: str + :param consumer_input_filters: Filter for subscription consumer inputs + :type consumer_input_filters: list of :class:`InputFilter ` + :param event_type: Optional event type id to restrict the results to (null for any) + :type event_type: str + :param publisher_id: Optional publisher id to restrict the results to (null for any) + :type publisher_id: str + :param publisher_input_filters: Filter for subscription publisher inputs + :type publisher_input_filters: list of :class:`InputFilter ` + :param results: Results from the query + :type results: list of :class:`Subscription ` + :param subscriber_id: Optional subscriber filter. + :type subscriber_id: str + """ + + _attribute_map = { + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_input_filters': {'key': 'consumerInputFilters', 'type': '[InputFilter]'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'results': {'key': 'results', 'type': '[Subscription]'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'} + } + + def __init__(self, consumer_action_id=None, consumer_id=None, consumer_input_filters=None, event_type=None, publisher_id=None, publisher_input_filters=None, results=None, subscriber_id=None): + super(SubscriptionsQuery, self).__init__() + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_input_filters = consumer_input_filters + self.event_type = event_type + self.publisher_id = publisher_id + self.publisher_input_filters = publisher_input_filters + self.results = results + self.subscriber_id = subscriber_id diff --git a/vsts/vsts/service_hooks/v4_0/models/versioned_resource.py b/vsts/vsts/service_hooks/v4_0/models/versioned_resource.py new file mode 100644 index 00000000..c55dbd04 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/models/versioned_resource.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VersionedResource(Model): + """VersionedResource. + + :param compatible_with: Gets or sets the reference to the compatible version. + :type compatible_with: str + :param resource: Gets or sets the resource data. + :type resource: object + :param resource_version: Gets or sets the version of the resource data. + :type resource_version: str + """ + + _attribute_map = { + 'compatible_with': {'key': 'compatibleWith', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'} + } + + def __init__(self, compatible_with=None, resource=None, resource_version=None): + super(VersionedResource, self).__init__() + self.compatible_with = compatible_with + self.resource = resource + self.resource_version = resource_version diff --git a/vsts/vsts/service_hooks/v4_0/service_hooks_client.py b/vsts/vsts/service_hooks/v4_0/service_hooks_client.py new file mode 100644 index 00000000..54d93785 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_0/service_hooks_client.py @@ -0,0 +1,369 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ServiceHooksClient(VssClient): + """ServiceHooks + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ServiceHooksClient, 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_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None): + """GetConsumerAction. + :param str consumer_id: + :param str consumer_action_id: + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + if consumer_action_id is not None: + route_values['consumerActionId'] = self._serialize.url('consumer_action_id', consumer_action_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ConsumerAction', response) + + def list_consumer_actions(self, consumer_id, publisher_id=None): + """ListConsumerActions. + :param str consumer_id: + :param str publisher_id: + :rtype: [ConsumerAction] + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ConsumerAction]', response) + + def get_consumer(self, consumer_id, publisher_id=None): + """GetConsumer. + :param str consumer_id: + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Consumer', response) + + def list_consumers(self, publisher_id=None): + """ListConsumers. + :param str publisher_id: + :rtype: [Consumer] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Consumer]', response) + + def get_event_type(self, publisher_id, event_type_id): + """GetEventType. + :param str publisher_id: + :param str event_type_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + if event_type_id is not None: + route_values['eventTypeId'] = self._serialize.url('event_type_id', event_type_id, 'str') + response = self._send(http_method='GET', + location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', + version='4.0', + route_values=route_values) + return self._deserialize('EventTypeDescriptor', response) + + def list_event_types(self, publisher_id): + """ListEventTypes. + :param str publisher_id: + :rtype: [EventTypeDescriptor] + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[EventTypeDescriptor]', response) + + def publish_external_event(self, publisher_id, channel_id=None): + """PublishExternalEvent. + :param str publisher_id: + :param str channel_id: + :rtype: [PublisherEvent] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + if channel_id is not None: + query_parameters['channelId'] = self._serialize.query('channel_id', channel_id, 'str') + response = self._send(http_method='POST', + location_id='e0e0a1c9-beeb-4fb7-a8c8-b18e3161a50e', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[PublisherEvent]', response) + + def get_notification(self, subscription_id, notification_id): + """GetNotification. + :param str subscription_id: + :param int notification_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + if notification_id is not None: + route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') + response = self._send(http_method='GET', + location_id='0c62d343-21b0-4732-997b-017fde84dc28', + version='4.0', + route_values=route_values) + return self._deserialize('Notification', response) + + def get_notifications(self, subscription_id, max_results=None, status=None, result=None): + """GetNotifications. + :param str subscription_id: + :param int max_results: + :param str status: + :param str result: + :rtype: [Notification] + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + query_parameters = {} + if max_results is not None: + query_parameters['maxResults'] = self._serialize.query('max_results', max_results, 'int') + if status is not None: + query_parameters['status'] = self._serialize.query('status', status, 'str') + if result is not None: + query_parameters['result'] = self._serialize.query('result', result, 'str') + response = self._send(http_method='GET', + location_id='0c62d343-21b0-4732-997b-017fde84dc28', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Notification]', response) + + def query_notifications(self, query): + """QueryNotifications. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'NotificationsQuery') + response = self._send(http_method='POST', + location_id='1a57562f-160a-4b5c-9185-905e95b39d36', + version='4.0', + content=content) + return self._deserialize('NotificationsQuery', response) + + def query_input_values(self, input_values_query, publisher_id): + """QueryInputValues. + :param :class:` ` input_values_query: + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + content = self._serialize.body(input_values_query, 'InputValuesQuery') + response = self._send(http_method='POST', + location_id='d815d352-a566-4dc1-a3e3-fd245acf688c', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('InputValuesQuery', response) + + def get_publisher(self, publisher_id): + """GetPublisher. + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', + version='4.0', + route_values=route_values) + return self._deserialize('Publisher', response) + + def list_publishers(self): + """ListPublishers. + :rtype: [Publisher] + """ + response = self._send(http_method='GET', + location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', + version='4.0', + returns_collection=True) + return self._deserialize('[Publisher]', response) + + def query_publishers(self, query): + """QueryPublishers. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'PublishersQuery') + response = self._send(http_method='POST', + location_id='99b44a8a-65a8-4670-8f3e-e7f7842cce64', + version='4.0', + content=content) + return self._deserialize('PublishersQuery', response) + + def create_subscription(self, subscription): + """CreateSubscription. + :param :class:` ` subscription: + :rtype: :class:` ` + """ + content = self._serialize.body(subscription, 'Subscription') + response = self._send(http_method='POST', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.0', + content=content) + return self._deserialize('Subscription', response) + + def delete_subscription(self, subscription_id): + """DeleteSubscription. + :param str subscription_id: + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + self._send(http_method='DELETE', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.0', + route_values=route_values) + + def get_subscription(self, subscription_id): + """GetSubscription. + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + response = self._send(http_method='GET', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.0', + route_values=route_values) + return self._deserialize('Subscription', response) + + def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=None, consumer_action_id=None): + """ListSubscriptions. + :param str publisher_id: + :param str event_type: + :param str consumer_id: + :param str consumer_action_id: + :rtype: [Subscription] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + if event_type is not None: + query_parameters['eventType'] = self._serialize.query('event_type', event_type, 'str') + if consumer_id is not None: + query_parameters['consumerId'] = self._serialize.query('consumer_id', consumer_id, 'str') + if consumer_action_id is not None: + query_parameters['consumerActionId'] = self._serialize.query('consumer_action_id', consumer_action_id, 'str') + response = self._send(http_method='GET', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Subscription]', response) + + def replace_subscription(self, subscription, subscription_id=None): + """ReplaceSubscription. + :param :class:` ` subscription: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(subscription, 'Subscription') + response = self._send(http_method='PUT', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('Subscription', response) + + def create_subscriptions_query(self, query): + """CreateSubscriptionsQuery. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'SubscriptionsQuery') + response = self._send(http_method='POST', + location_id='c7c3c1cf-9e05-4c0d-a425-a0f922c2c6ed', + version='4.0', + content=content) + return self._deserialize('SubscriptionsQuery', response) + + def create_test_notification(self, test_notification, use_real_data=None): + """CreateTestNotification. + :param :class:` ` test_notification: + :param bool use_real_data: + :rtype: :class:` ` + """ + query_parameters = {} + if use_real_data is not None: + query_parameters['useRealData'] = self._serialize.query('use_real_data', use_real_data, 'bool') + content = self._serialize.body(test_notification, 'Notification') + response = self._send(http_method='POST', + location_id='1139462c-7e27-4524-a997-31b9b73551fe', + version='4.0', + query_parameters=query_parameters, + content=content) + return self._deserialize('Notification', response) + diff --git a/vsts/vsts/task/__init__.py b/vsts/vsts/task/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/task/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task/v4_0/__init__.py b/vsts/vsts/task/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/task/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task/v4_0/models/__init__.py b/vsts/vsts/task/v4_0/models/__init__.py new file mode 100644 index 00000000..f21600b9 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/__init__.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .issue import Issue +from .job_option import JobOption +from .mask_hint import MaskHint +from .plan_environment import PlanEnvironment +from .project_reference import ProjectReference +from .reference_links import ReferenceLinks +from .task_attachment import TaskAttachment +from .task_log import TaskLog +from .task_log_reference import TaskLogReference +from .task_orchestration_container import TaskOrchestrationContainer +from .task_orchestration_item import TaskOrchestrationItem +from .task_orchestration_owner import TaskOrchestrationOwner +from .task_orchestration_plan import TaskOrchestrationPlan +from .task_orchestration_plan_groups_queue_metrics import TaskOrchestrationPlanGroupsQueueMetrics +from .task_orchestration_plan_reference import TaskOrchestrationPlanReference +from .task_orchestration_queued_plan import TaskOrchestrationQueuedPlan +from .task_orchestration_queued_plan_group import TaskOrchestrationQueuedPlanGroup +from .task_reference import TaskReference +from .timeline import Timeline +from .timeline_record import TimelineRecord +from .timeline_reference import TimelineReference +from .variable_value import VariableValue + +__all__ = [ + 'Issue', + 'JobOption', + 'MaskHint', + 'PlanEnvironment', + 'ProjectReference', + 'ReferenceLinks', + 'TaskAttachment', + 'TaskLog', + 'TaskLogReference', + 'TaskOrchestrationContainer', + 'TaskOrchestrationItem', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlan', + 'TaskOrchestrationPlanGroupsQueueMetrics', + 'TaskOrchestrationPlanReference', + 'TaskOrchestrationQueuedPlan', + 'TaskOrchestrationQueuedPlanGroup', + 'TaskReference', + 'Timeline', + 'TimelineRecord', + 'TimelineReference', + 'VariableValue', +] diff --git a/vsts/vsts/task/v4_0/models/issue.py b/vsts/vsts/task/v4_0/models/issue.py new file mode 100644 index 00000000..02b96b6e --- /dev/null +++ b/vsts/vsts/task/v4_0/models/issue.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Issue(Model): + """Issue. + + :param category: + :type category: str + :param data: + :type data: dict + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, category=None, data=None, message=None, type=None): + super(Issue, self).__init__() + self.category = category + self.data = data + self.message = message + self.type = type diff --git a/vsts/vsts/task/v4_0/models/job_option.py b/vsts/vsts/task/v4_0/models/job_option.py new file mode 100644 index 00000000..223a3167 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/job_option.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JobOption(Model): + """JobOption. + + :param data: + :type data: dict + :param id: Gets the id of the option. + :type id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, data=None, id=None): + super(JobOption, self).__init__() + self.data = data + self.id = id diff --git a/vsts/vsts/task/v4_0/models/mask_hint.py b/vsts/vsts/task/v4_0/models/mask_hint.py new file mode 100644 index 00000000..9fa07965 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/mask_hint.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MaskHint(Model): + """MaskHint. + + :param type: + :type type: object + :param value: + :type value: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, type=None, value=None): + super(MaskHint, self).__init__() + self.type = type + self.value = value diff --git a/vsts/vsts/task/v4_0/models/plan_environment.py b/vsts/vsts/task/v4_0/models/plan_environment.py new file mode 100644 index 00000000..a0b58aaa --- /dev/null +++ b/vsts/vsts/task/v4_0/models/plan_environment.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PlanEnvironment(Model): + """PlanEnvironment. + + :param mask: + :type mask: list of :class:`MaskHint ` + :param options: + :type options: dict + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'mask': {'key': 'mask', 'type': '[MaskHint]'}, + 'options': {'key': 'options', 'type': '{JobOption}'}, + 'variables': {'key': 'variables', 'type': '{str}'} + } + + def __init__(self, mask=None, options=None, variables=None): + super(PlanEnvironment, self).__init__() + self.mask = mask + self.options = options + self.variables = variables diff --git a/vsts/vsts/task/v4_0/models/project_reference.py b/vsts/vsts/task/v4_0/models/project_reference.py new file mode 100644 index 00000000..8fd6ad8e --- /dev/null +++ b/vsts/vsts/task/v4_0/models/project_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/task/v4_0/models/reference_links.py b/vsts/vsts/task/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/task/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/task/v4_0/models/task_attachment.py b/vsts/vsts/task/v4_0/models/task_attachment.py new file mode 100644 index 00000000..28b013b2 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_attachment.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAttachment(Model): + """TaskAttachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_on: + :type created_on: datetime + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param name: + :type name: str + :param record_id: + :type record_id: str + :param timeline_id: + :type timeline_id: str + :param type: + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, last_changed_by=None, last_changed_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(TaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type diff --git a/vsts/vsts/task/v4_0/models/task_log.py b/vsts/vsts/task/v4_0/models/task_log.py new file mode 100644 index 00000000..491146e9 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_log.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_log_reference import TaskLogReference + + +class TaskLog(TaskLogReference): + """TaskLog. + + :param id: + :type id: int + :param location: + :type location: str + :param created_on: + :type created_on: datetime + :param index_location: + :type index_location: str + :param last_changed_on: + :type last_changed_on: datetime + :param line_count: + :type line_count: long + :param path: + :type path: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'index_location': {'key': 'indexLocation', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, id=None, location=None, created_on=None, index_location=None, last_changed_on=None, line_count=None, path=None): + super(TaskLog, self).__init__(id=id, location=location) + self.created_on = created_on + self.index_location = index_location + self.last_changed_on = last_changed_on + self.line_count = line_count + self.path = path diff --git a/vsts/vsts/task/v4_0/models/task_log_reference.py b/vsts/vsts/task/v4_0/models/task_log_reference.py new file mode 100644 index 00000000..f544e25e --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_log_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskLogReference(Model): + """TaskLogReference. + + :param id: + :type id: int + :param location: + :type location: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, id=None, location=None): + super(TaskLogReference, self).__init__() + self.id = id + self.location = location diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_container.py b/vsts/vsts/task/v4_0/models/task_orchestration_container.py new file mode 100644 index 00000000..88ab4fcc --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_container.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_orchestration_item import TaskOrchestrationItem + + +class TaskOrchestrationContainer(TaskOrchestrationItem): + """TaskOrchestrationContainer. + + :param item_type: + :type item_type: object + :param children: + :type children: list of :class:`TaskOrchestrationItem ` + :param continue_on_error: + :type continue_on_error: bool + :param data: + :type data: dict + :param max_concurrency: + :type max_concurrency: int + :param parallel: + :type parallel: bool + :param rollback: + :type rollback: :class:`TaskOrchestrationContainer ` + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'}, + 'children': {'key': 'children', 'type': '[TaskOrchestrationItem]'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'max_concurrency': {'key': 'maxConcurrency', 'type': 'int'}, + 'parallel': {'key': 'parallel', 'type': 'bool'}, + 'rollback': {'key': 'rollback', 'type': 'TaskOrchestrationContainer'} + } + + def __init__(self, item_type=None, children=None, continue_on_error=None, data=None, max_concurrency=None, parallel=None, rollback=None): + super(TaskOrchestrationContainer, self).__init__(item_type=item_type) + self.children = children + self.continue_on_error = continue_on_error + self.data = data + self.max_concurrency = max_concurrency + self.parallel = parallel + self.rollback = rollback diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_item.py b/vsts/vsts/task/v4_0/models/task_orchestration_item.py new file mode 100644 index 00000000..e65ab5e6 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_item.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationItem(Model): + """TaskOrchestrationItem. + + :param item_type: + :type item_type: object + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'} + } + + def __init__(self, item_type=None): + super(TaskOrchestrationItem, self).__init__() + self.item_type = item_type diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_owner.py b/vsts/vsts/task/v4_0/models/task_orchestration_owner.py new file mode 100644 index 00000000..fe2ec448 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_owner.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_plan.py b/vsts/vsts/task/v4_0/models/task_orchestration_plan.py new file mode 100644 index 00000000..4a812d3f --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_plan.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_orchestration_plan_reference import TaskOrchestrationPlanReference + + +class TaskOrchestrationPlan(TaskOrchestrationPlanReference): + """TaskOrchestrationPlan. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + :param environment: + :type environment: :class:`PlanEnvironment ` + :param finish_time: + :type finish_time: datetime + :param implementation: + :type implementation: :class:`TaskOrchestrationContainer ` + :param plan_group: + :type plan_group: str + :param requested_by_id: + :type requested_by_id: str + :param requested_for_id: + :type requested_for_id: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param timeline: + :type timeline: :class:`TimelineReference ` + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, + 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, plan_group=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): + super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) + self.environment = environment + self.finish_time = finish_time + self.implementation = implementation + self.plan_group = plan_group + self.requested_by_id = requested_by_id + self.requested_for_id = requested_for_id + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.timeline = timeline diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py b/vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py new file mode 100644 index 00000000..90bcfd29 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationPlanGroupsQueueMetrics(Model): + """TaskOrchestrationPlanGroupsQueueMetrics. + + :param count: + :type count: int + :param status: + :type status: object + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, count=None, status=None): + super(TaskOrchestrationPlanGroupsQueueMetrics, self).__init__() + self.count = count + self.status = status diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py b/vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py new file mode 100644 index 00000000..b5ec0b09 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationPlanReference(Model): + """TaskOrchestrationPlanReference. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): + super(TaskOrchestrationPlanReference, self).__init__() + self.artifact_location = artifact_location + self.artifact_uri = artifact_uri + self.definition = definition + self.owner = owner + self.plan_id = plan_id + self.plan_type = plan_type + self.scope_identifier = scope_identifier + self.version = version diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py b/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py new file mode 100644 index 00000000..c06421b3 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationQueuedPlan(Model): + """TaskOrchestrationQueuedPlan. + + :param assign_time: + :type assign_time: datetime + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param pool_id: + :type pool_id: int + :param queue_position: + :type queue_position: int + :param queue_time: + :type queue_time: datetime + :param scope_identifier: + :type scope_identifier: str + """ + + _attribute_map = { + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'pool_id': {'key': 'poolId', 'type': 'int'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'} + } + + def __init__(self, assign_time=None, definition=None, owner=None, plan_group=None, plan_id=None, pool_id=None, queue_position=None, queue_time=None, scope_identifier=None): + super(TaskOrchestrationQueuedPlan, self).__init__() + self.assign_time = assign_time + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.pool_id = pool_id + self.queue_position = queue_position + self.queue_time = queue_time + self.scope_identifier = scope_identifier diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py b/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py new file mode 100644 index 00000000..60069a93 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py @@ -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.serialization import Model + + +class TaskOrchestrationQueuedPlanGroup(Model): + """TaskOrchestrationQueuedPlanGroup. + + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plans: + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :param project: + :type project: :class:`ProjectReference ` + :param queue_position: + :type queue_position: int + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plans': {'key': 'plans', 'type': '[TaskOrchestrationQueuedPlan]'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'} + } + + def __init__(self, definition=None, owner=None, plan_group=None, plans=None, project=None, queue_position=None): + super(TaskOrchestrationQueuedPlanGroup, self).__init__() + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plans = plans + self.project = project + self.queue_position = queue_position diff --git a/vsts/vsts/task/v4_0/models/task_reference.py b/vsts/vsts/task/v4_0/models/task_reference.py new file mode 100644 index 00000000..3ff1dd7b --- /dev/null +++ b/vsts/vsts/task/v4_0/models/task_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version diff --git a/vsts/vsts/task/v4_0/models/timeline.py b/vsts/vsts/task/v4_0/models/timeline.py new file mode 100644 index 00000000..95dc6c3e --- /dev/null +++ b/vsts/vsts/task/v4_0/models/timeline.py @@ -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 .timeline_reference import TimelineReference + + +class Timeline(TimelineReference): + """Timeline. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param records: + :type records: list of :class:`TimelineRecord ` + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'records': {'key': 'records', 'type': '[TimelineRecord]'} + } + + def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, last_changed_on=None, records=None): + super(Timeline, self).__init__(change_id=change_id, id=id, location=location) + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.records = records diff --git a/vsts/vsts/task/v4_0/models/timeline_record.py b/vsts/vsts/task/v4_0/models/timeline_record.py new file mode 100644 index 00000000..d1297125 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/timeline_record.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineRecord(Model): + """TimelineRecord. + + :param change_id: + :type change_id: int + :param current_operation: + :type current_operation: str + :param details: + :type details: :class:`TimelineReference ` + :param error_count: + :type error_count: int + :param finish_time: + :type finish_time: datetime + :param id: + :type id: str + :param issues: + :type issues: list of :class:`Issue ` + :param last_modified: + :type last_modified: datetime + :param location: + :type location: str + :param log: + :type log: :class:`TaskLogReference ` + :param name: + :type name: str + :param order: + :type order: int + :param parent_id: + :type parent_id: str + :param percent_complete: + :type percent_complete: int + :param ref_name: + :type ref_name: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param task: + :type task: :class:`TaskReference ` + :param type: + :type type: str + :param variables: + :type variables: dict + :param warning_count: + :type warning_count: int + :param worker_name: + :type worker_name: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'current_operation': {'key': 'currentOperation', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'TimelineReference'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'location': {'key': 'location', 'type': 'str'}, + 'log': {'key': 'log', 'type': 'TaskLogReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'TaskReference'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'}, + 'worker_name': {'key': 'workerName', 'type': 'str'} + } + + def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): + super(TimelineRecord, self).__init__() + self.change_id = change_id + self.current_operation = current_operation + self.details = details + self.error_count = error_count + self.finish_time = finish_time + self.id = id + self.issues = issues + self.last_modified = last_modified + self.location = location + self.log = log + self.name = name + self.order = order + self.parent_id = parent_id + self.percent_complete = percent_complete + self.ref_name = ref_name + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.task = task + self.type = type + self.variables = variables + self.warning_count = warning_count + self.worker_name = worker_name diff --git a/vsts/vsts/task/v4_0/models/timeline_reference.py b/vsts/vsts/task/v4_0/models/timeline_reference.py new file mode 100644 index 00000000..8755a8c4 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/timeline_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineReference(Model): + """TimelineReference. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, change_id=None, id=None, location=None): + super(TimelineReference, self).__init__() + self.change_id = change_id + self.id = id + self.location = location diff --git a/vsts/vsts/task/v4_0/models/variable_value.py b/vsts/vsts/task/v4_0/models/variable_value.py new file mode 100644 index 00000000..035049c0 --- /dev/null +++ b/vsts/vsts/task/v4_0/models/variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/task/v4_0/task_client.py b/vsts/vsts/task/v4_0/task_client.py new file mode 100644 index 00000000..4cfdcdfd --- /dev/null +++ b/vsts/vsts/task/v4_0/task_client.py @@ -0,0 +1,555 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TaskClient(VssClient): + """Task + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TaskClient, 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_plan_attachments(self, scope_identifier, hub_name, plan_id, type): + """GetPlanAttachments. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str type: + :rtype: [TaskAttachment] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='eb55e5d6-2f30-4295-b5ed-38da50b1fc52', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskAttachment]', response) + + def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + """CreateAttachment. + [Preview API] + :param object upload_stream: Stream to upload + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.0-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('TaskAttachment', response) + + def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + """GetAttachment. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('TaskAttachment', response) + + def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + """GetAttachmentContent. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: object + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type): + """GetAttachments. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :rtype: [TaskAttachment] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskAttachment]', response) + + def append_timeline_record_feed(self, lines, scope_identifier, hub_name, plan_id, timeline_id, record_id): + """AppendTimelineRecordFeed. + :param :class:` ` lines: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + content = self._serialize.body(lines, 'VssJsonCollectionWrapper') + self._send(http_method='POST', + location_id='858983e4-19bd-4c5e-864c-507b59b58b12', + version='4.0', + route_values=route_values, + content=content) + + def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id): + """AppendLogContent. + :param object upload_stream: Stream to upload + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param int log_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.0', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('TaskLog', response) + + def create_log(self, log, scope_identifier, hub_name, plan_id): + """CreateLog. + :param :class:` ` log: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + content = self._serialize.body(log, 'TaskLog') + response = self._send(http_method='POST', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskLog', response) + + def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, end_line=None): + """GetLog. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param int log_id: + :param long start_line: + :param long end_line: + :rtype: [str] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_logs(self, scope_identifier, hub_name, plan_id): + """GetLogs. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: [TaskLog] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskLog]', response) + + def get_plan_groups_queue_metrics(self, scope_identifier, hub_name): + """GetPlanGroupsQueueMetrics. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :rtype: [TaskOrchestrationPlanGroupsQueueMetrics] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + response = self._send(http_method='GET', + location_id='038fd4d5-cda7-44ca-92c0-935843fee1a7', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskOrchestrationPlanGroupsQueueMetrics]', response) + + def get_queued_plan_groups(self, scope_identifier, hub_name, status_filter=None, count=None): + """GetQueuedPlanGroups. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str status_filter: + :param int count: + :rtype: [TaskOrchestrationQueuedPlanGroup] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + query_parameters = {} + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + response = self._send(http_method='GET', + location_id='0dd73091-3e36-4f43-b443-1b76dd426d84', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskOrchestrationQueuedPlanGroup]', response) + + def get_queued_plan_group(self, scope_identifier, hub_name, plan_group): + """GetQueuedPlanGroup. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_group: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_group is not None: + route_values['planGroup'] = self._serialize.url('plan_group', plan_group, 'str') + response = self._send(http_method='GET', + location_id='65fd0708-bc1e-447b-a731-0587c5464e5b', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('TaskOrchestrationQueuedPlanGroup', response) + + def get_plan(self, scope_identifier, hub_name, plan_id): + """GetPlan. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='5cecd946-d704-471e-a45f-3b4064fcfaba', + version='4.0', + route_values=route_values) + return self._deserialize('TaskOrchestrationPlan', response) + + def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None): + """GetRecords. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param int change_id: + :rtype: [TimelineRecord] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + query_parameters = {} + if change_id is not None: + query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') + response = self._send(http_method='GET', + location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TimelineRecord]', response) + + def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): + """UpdateRecords. + :param :class:` ` records: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :rtype: [TimelineRecord] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + content = self._serialize.body(records, 'VssJsonCollectionWrapper') + response = self._send(http_method='PATCH', + location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TimelineRecord]', response) + + def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): + """CreateTimeline. + :param :class:` ` timeline: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + content = self._serialize.body(timeline, 'Timeline') + response = self._send(http_method='POST', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('Timeline', response) + + def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): + """DeleteTimeline. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + self._send(http_method='DELETE', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.0', + route_values=route_values) + + def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None, include_records=None): + """GetTimeline. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param int change_id: + :param bool include_records: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + query_parameters = {} + if change_id is not None: + query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') + if include_records is not None: + query_parameters['includeRecords'] = self._serialize.query('include_records', include_records, 'bool') + response = self._send(http_method='GET', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Timeline', response) + + def get_timelines(self, scope_identifier, hub_name, plan_id): + """GetTimelines. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: [Timeline] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[Timeline]', response) + diff --git a/vsts/vsts/task_agent/__init__.py b/vsts/vsts/task_agent/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/task_agent/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task_agent/v4_0/__init__.py b/vsts/vsts/task_agent/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task_agent/v4_0/models/__init__.py b/vsts/vsts/task_agent/v4_0/models/__init__.py new file mode 100644 index 00000000..fa9ad95d --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/__init__.py @@ -0,0 +1,189 @@ +# -------------------------------------------------------------------------------------------- +# 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 .aad_oauth_token_request import AadOauthTokenRequest +from .aad_oauth_token_result import AadOauthTokenResult +from .authorization_header import AuthorizationHeader +from .azure_subscription import AzureSubscription +from .azure_subscription_query_result import AzureSubscriptionQueryResult +from .data_source import DataSource +from .data_source_binding import DataSourceBinding +from .data_source_binding_base import DataSourceBindingBase +from .data_source_details import DataSourceDetails +from .dependency_binding import DependencyBinding +from .dependency_data import DependencyData +from .depends_on import DependsOn +from .deployment_group import DeploymentGroup +from .deployment_group_metrics import DeploymentGroupMetrics +from .deployment_group_reference import DeploymentGroupReference +from .deployment_machine import DeploymentMachine +from .deployment_machine_group import DeploymentMachineGroup +from .deployment_machine_group_reference import DeploymentMachineGroupReference +from .endpoint_authorization import EndpointAuthorization +from .endpoint_url import EndpointUrl +from .help_link import HelpLink +from .identity_ref import IdentityRef +from .input_descriptor import InputDescriptor +from .input_validation import InputValidation +from .input_validation_request import InputValidationRequest +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .metrics_column_meta_data import MetricsColumnMetaData +from .metrics_columns_header import MetricsColumnsHeader +from .metrics_row import MetricsRow +from .package_metadata import PackageMetadata +from .package_version import PackageVersion +from .project_reference import ProjectReference +from .publish_task_group_metadata import PublishTaskGroupMetadata +from .reference_links import ReferenceLinks +from .result_transformation_details import ResultTransformationDetails +from .secure_file import SecureFile +from .service_endpoint import ServiceEndpoint +from .service_endpoint_authentication_scheme import ServiceEndpointAuthenticationScheme +from .service_endpoint_details import ServiceEndpointDetails +from .service_endpoint_execution_data import ServiceEndpointExecutionData +from .service_endpoint_execution_record import ServiceEndpointExecutionRecord +from .service_endpoint_execution_records_input import ServiceEndpointExecutionRecordsInput +from .service_endpoint_request import ServiceEndpointRequest +from .service_endpoint_request_result import ServiceEndpointRequestResult +from .service_endpoint_type import ServiceEndpointType +from .task_agent import TaskAgent +from .task_agent_authorization import TaskAgentAuthorization +from .task_agent_job_request import TaskAgentJobRequest +from .task_agent_message import TaskAgentMessage +from .task_agent_pool import TaskAgentPool +from .task_agent_pool_maintenance_definition import TaskAgentPoolMaintenanceDefinition +from .task_agent_pool_maintenance_job import TaskAgentPoolMaintenanceJob +from .task_agent_pool_maintenance_job_target_agent import TaskAgentPoolMaintenanceJobTargetAgent +from .task_agent_pool_maintenance_options import TaskAgentPoolMaintenanceOptions +from .task_agent_pool_maintenance_retention_policy import TaskAgentPoolMaintenanceRetentionPolicy +from .task_agent_pool_maintenance_schedule import TaskAgentPoolMaintenanceSchedule +from .task_agent_pool_reference import TaskAgentPoolReference +from .task_agent_public_key import TaskAgentPublicKey +from .task_agent_queue import TaskAgentQueue +from .task_agent_reference import TaskAgentReference +from .task_agent_session import TaskAgentSession +from .task_agent_session_key import TaskAgentSessionKey +from .task_agent_update import TaskAgentUpdate +from .task_agent_update_reason import TaskAgentUpdateReason +from .task_definition import TaskDefinition +from .task_definition_endpoint import TaskDefinitionEndpoint +from .task_definition_reference import TaskDefinitionReference +from .task_execution import TaskExecution +from .task_group import TaskGroup +from .task_group_definition import TaskGroupDefinition +from .task_group_revision import TaskGroupRevision +from .task_group_step import TaskGroupStep +from .task_hub_license_details import TaskHubLicenseDetails +from .task_input_definition import TaskInputDefinition +from .task_input_definition_base import TaskInputDefinitionBase +from .task_input_validation import TaskInputValidation +from .task_orchestration_owner import TaskOrchestrationOwner +from .task_output_variable import TaskOutputVariable +from .task_package_metadata import TaskPackageMetadata +from .task_reference import TaskReference +from .task_source_definition import TaskSourceDefinition +from .task_source_definition_base import TaskSourceDefinitionBase +from .task_version import TaskVersion +from .validation_item import ValidationItem +from .variable_group import VariableGroup +from .variable_group_provider_data import VariableGroupProviderData +from .variable_value import VariableValue + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthorizationHeader', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'DeploymentGroup', + 'DeploymentGroupMetrics', + 'DeploymentGroupReference', + 'DeploymentMachine', + 'DeploymentMachineGroup', + 'DeploymentMachineGroupReference', + 'EndpointAuthorization', + 'EndpointUrl', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValidationRequest', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'MetricsColumnMetaData', + 'MetricsColumnsHeader', + 'MetricsRow', + 'PackageMetadata', + 'PackageVersion', + 'ProjectReference', + 'PublishTaskGroupMetadata', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'SecureFile', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'TaskAgent', + 'TaskAgentAuthorization', + 'TaskAgentJobRequest', + 'TaskAgentMessage', + 'TaskAgentPool', + 'TaskAgentPoolMaintenanceDefinition', + 'TaskAgentPoolMaintenanceJob', + 'TaskAgentPoolMaintenanceJobTargetAgent', + 'TaskAgentPoolMaintenanceOptions', + 'TaskAgentPoolMaintenanceRetentionPolicy', + 'TaskAgentPoolMaintenanceSchedule', + 'TaskAgentPoolReference', + 'TaskAgentPublicKey', + 'TaskAgentQueue', + 'TaskAgentReference', + 'TaskAgentSession', + 'TaskAgentSessionKey', + 'TaskAgentUpdate', + 'TaskAgentUpdateReason', + 'TaskDefinition', + 'TaskDefinitionEndpoint', + 'TaskDefinitionReference', + 'TaskExecution', + 'TaskGroup', + 'TaskGroupDefinition', + 'TaskGroupRevision', + 'TaskGroupStep', + 'TaskHubLicenseDetails', + 'TaskInputDefinition', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationOwner', + 'TaskOutputVariable', + 'TaskPackageMetadata', + 'TaskReference', + 'TaskSourceDefinition', + 'TaskSourceDefinitionBase', + 'TaskVersion', + 'ValidationItem', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', +] diff --git a/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py b/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py new file mode 100644 index 00000000..e5ad3183 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AadOauthTokenRequest(Model): + """AadOauthTokenRequest. + + :param refresh: + :type refresh: bool + :param resource: + :type resource: str + :param tenant_id: + :type tenant_id: str + :param token: + :type token: str + """ + + _attribute_map = { + 'refresh': {'key': 'refresh', 'type': 'bool'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, refresh=None, resource=None, tenant_id=None, token=None): + super(AadOauthTokenRequest, self).__init__() + self.refresh = refresh + self.resource = resource + self.tenant_id = tenant_id + self.token = token diff --git a/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py b/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py new file mode 100644 index 00000000..b3cd8c2e --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AadOauthTokenResult(Model): + """AadOauthTokenResult. + + :param access_token: + :type access_token: str + :param refresh_token_cache: + :type refresh_token_cache: str + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'} + } + + def __init__(self, access_token=None, refresh_token_cache=None): + super(AadOauthTokenResult, self).__init__() + self.access_token = access_token + self.refresh_token_cache = refresh_token_cache diff --git a/vsts/vsts/task_agent/v4_0/models/authorization_header.py b/vsts/vsts/task_agent/v4_0/models/authorization_header.py new file mode 100644 index 00000000..015e6775 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/authorization_header.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/azure_subscription.py b/vsts/vsts/task_agent/v4_0/models/azure_subscription.py new file mode 100644 index 00000000..ffd4994d --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/azure_subscription.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzureSubscription(Model): + """AzureSubscription. + + :param display_name: + :type display_name: str + :param subscription_id: + :type subscription_id: str + :param subscription_tenant_id: + :type subscription_tenant_id: str + :param subscription_tenant_name: + :type subscription_tenant_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, + 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} + } + + def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): + super(AzureSubscription, self).__init__() + self.display_name = display_name + self.subscription_id = subscription_id + self.subscription_tenant_id = subscription_tenant_id + self.subscription_tenant_name = subscription_tenant_name diff --git a/vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py b/vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py new file mode 100644 index 00000000..97759cfc --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzureSubscriptionQueryResult(Model): + """AzureSubscriptionQueryResult. + + :param error_message: + :type error_message: str + :param value: + :type value: list of :class:`AzureSubscription ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureSubscription]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureSubscriptionQueryResult, self).__init__() + self.error_message = error_message + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/data_source.py b/vsts/vsts/task_agent/v4_0/models/data_source.py new file mode 100644 index 00000000..0c24d5c3 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/data_source.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataSource(Model): + """DataSource. + + :param endpoint_url: + :type endpoint_url: str + :param name: + :type name: str + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, endpoint_url=None, name=None, resource_url=None, result_selector=None): + super(DataSource, self).__init__() + self.endpoint_url = endpoint_url + self.name = name + self.resource_url = resource_url + self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_0/models/data_source_binding.py b/vsts/vsts/task_agent/v4_0/models/data_source_binding.py new file mode 100644 index 00000000..c71d590d --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/data_source_binding.py @@ -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 .data_source_binding_base import DataSourceBindingBase + + +class DataSourceBinding(DataSourceBindingBase): + """DataSourceBinding. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) diff --git a/vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py b/vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py new file mode 100644 index 00000000..e2c6e8d5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target diff --git a/vsts/vsts/task_agent/v4_0/models/data_source_details.py b/vsts/vsts/task_agent/v4_0/models/data_source_details.py new file mode 100644 index 00000000..11123d04 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/data_source_details.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataSourceDetails(Model): + """DataSourceDetails. + + :param data_source_name: + :type data_source_name: str + :param data_source_url: + :type data_source_url: str + :param parameters: + :type parameters: dict + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, data_source_name=None, data_source_url=None, parameters=None, resource_url=None, result_selector=None): + super(DataSourceDetails, self).__init__() + self.data_source_name = data_source_name + self.data_source_url = data_source_url + self.parameters = parameters + self.resource_url = resource_url + self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_0/models/dependency_binding.py b/vsts/vsts/task_agent/v4_0/models/dependency_binding.py new file mode 100644 index 00000000..e8eb3ac1 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/dependency_binding.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependencyBinding(Model): + """DependencyBinding. + + :param key: + :type key: str + :param value: + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, key=None, value=None): + super(DependencyBinding, self).__init__() + self.key = key + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/dependency_data.py b/vsts/vsts/task_agent/v4_0/models/dependency_data.py new file mode 100644 index 00000000..3faa1790 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/dependency_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependencyData(Model): + """DependencyData. + + :param input: + :type input: str + :param map: + :type map: list of { key: str; value: [{ key: str; value: str }] } + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} + } + + def __init__(self, input=None, map=None): + super(DependencyData, self).__init__() + self.input = input + self.map = map diff --git a/vsts/vsts/task_agent/v4_0/models/depends_on.py b/vsts/vsts/task_agent/v4_0/models/depends_on.py new file mode 100644 index 00000000..df3eb111 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/depends_on.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependsOn(Model): + """DependsOn. + + :param input: + :type input: str + :param map: + :type map: list of :class:`DependencyBinding ` + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[DependencyBinding]'} + } + + def __init__(self, input=None, map=None): + super(DependsOn, self).__init__() + self.input = input + self.map = map diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_group.py b/vsts/vsts/task_agent/v4_0/models/deployment_group.py new file mode 100644 index 00000000..dc4a1432 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/deployment_group.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .deployment_group_reference import DeploymentGroupReference + + +class DeploymentGroup(DeploymentGroupReference): + """DeploymentGroup. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + :param description: + :type description: str + :param machine_count: + :type machine_count: int + :param machines: + :type machines: list of :class:`DeploymentMachine ` + :param machine_tags: + :type machine_tags: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'machine_count': {'key': 'machineCount', 'type': 'int'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'machine_tags': {'key': 'machineTags', 'type': '[str]'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, description=None, machine_count=None, machines=None, machine_tags=None): + super(DeploymentGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.description = description + self.machine_count = machine_count + self.machines = machines + self.machine_tags = machine_tags diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py b/vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py new file mode 100644 index 00000000..b4081350 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentGroupMetrics(Model): + """DeploymentGroupMetrics. + + :param columns_header: + :type columns_header: :class:`MetricsColumnsHeader ` + :param deployment_group: + :type deployment_group: :class:`DeploymentGroupReference ` + :param rows: + :type rows: list of :class:`MetricsRow ` + """ + + _attribute_map = { + 'columns_header': {'key': 'columnsHeader', 'type': 'MetricsColumnsHeader'}, + 'deployment_group': {'key': 'deploymentGroup', 'type': 'DeploymentGroupReference'}, + 'rows': {'key': 'rows', 'type': '[MetricsRow]'} + } + + def __init__(self, columns_header=None, deployment_group=None, rows=None): + super(DeploymentGroupMetrics, self).__init__() + self.columns_header = columns_header + self.deployment_group = deployment_group + self.rows = rows diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py b/vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py new file mode 100644 index 00000000..5baac38f --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentGroupReference(Model): + """DeploymentGroupReference. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_machine.py b/vsts/vsts/task_agent/v4_0/models/deployment_machine.py new file mode 100644 index 00000000..243eea37 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/deployment_machine.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentMachine(Model): + """DeploymentMachine. + + :param agent: + :type agent: :class:`TaskAgent ` + :param id: + :type id: int + :param tags: + :type tags: list of str + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgent'}, + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, agent=None, id=None, tags=None): + super(DeploymentMachine, self).__init__() + self.agent = agent + self.id = id + self.tags = tags diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py b/vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py new file mode 100644 index 00000000..045bb631 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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 .deployment_machine_group_reference import DeploymentMachineGroupReference + + +class DeploymentMachineGroup(DeploymentMachineGroupReference): + """DeploymentMachineGroup. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + :param machines: + :type machines: list of :class:`DeploymentMachine ` + :param size: + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, machines=None, size=None): + super(DeploymentMachineGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.machines = machines + self.size = size diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py b/vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py new file mode 100644 index 00000000..f5ae9bbd --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentMachineGroupReference(Model): + """DeploymentMachineGroupReference. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentMachineGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project diff --git a/vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py b/vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py new file mode 100644 index 00000000..5a8f642c --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EndpointAuthorization(Model): + """EndpointAuthorization. + + :param parameters: + :type parameters: dict + :param scheme: + :type scheme: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, parameters=None, scheme=None): + super(EndpointAuthorization, self).__init__() + self.parameters = parameters + self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_0/models/endpoint_url.py b/vsts/vsts/task_agent/v4_0/models/endpoint_url.py new file mode 100644 index 00000000..9eddf9c3 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/endpoint_url.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EndpointUrl(Model): + """EndpointUrl. + + :param depends_on: + :type depends_on: :class:`DependsOn ` + :param display_name: + :type display_name: str + :param help_text: + :type help_text: str + :param is_visible: + :type is_visible: str + :param value: + :type value: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'is_visible': {'key': 'isVisible', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): + super(EndpointUrl, self).__init__() + self.depends_on = depends_on + self.display_name = display_name + self.help_text = help_text + self.is_visible = is_visible + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/help_link.py b/vsts/vsts/task_agent/v4_0/models/help_link.py new file mode 100644 index 00000000..b48e4910 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/help_link.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class HelpLink(Model): + """HelpLink. + + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, text=None, url=None): + super(HelpLink, self).__init__() + self.text = text + self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/identity_ref.py b/vsts/vsts/task_agent/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/input_descriptor.py b/vsts/vsts/task_agent/v4_0/models/input_descriptor.py new file mode 100644 index 00000000..860efdcc --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/input_descriptor.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values diff --git a/vsts/vsts/task_agent/v4_0/models/input_validation.py b/vsts/vsts/task_agent/v4_0/models/input_validation.py new file mode 100644 index 00000000..f2f1a434 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/input_validation.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/task_agent/v4_0/models/input_validation_request.py b/vsts/vsts/task_agent/v4_0/models/input_validation_request.py new file mode 100644 index 00000000..74fb2e1f --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/input_validation_request.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidationRequest(Model): + """InputValidationRequest. + + :param inputs: + :type inputs: dict + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{ValidationItem}'} + } + + def __init__(self, inputs=None): + super(InputValidationRequest, self).__init__() + self.inputs = inputs diff --git a/vsts/vsts/task_agent/v4_0/models/input_value.py b/vsts/vsts/task_agent/v4_0/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/input_values.py b/vsts/vsts/task_agent/v4_0/models/input_values.py new file mode 100644 index 00000000..15d047fe --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/task_agent/v4_0/models/input_values_error.py b/vsts/vsts/task_agent/v4_0/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py b/vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py new file mode 100644 index 00000000..8fde3da2 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetricsColumnMetaData(Model): + """MetricsColumnMetaData. + + :param column_name: + :type column_name: str + :param column_value_type: + :type column_value_type: str + """ + + _attribute_map = { + 'column_name': {'key': 'columnName', 'type': 'str'}, + 'column_value_type': {'key': 'columnValueType', 'type': 'str'} + } + + def __init__(self, column_name=None, column_value_type=None): + super(MetricsColumnMetaData, self).__init__() + self.column_name = column_name + self.column_value_type = column_value_type diff --git a/vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py b/vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py new file mode 100644 index 00000000..420f235f --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetricsColumnsHeader(Model): + """MetricsColumnsHeader. + + :param dimensions: + :type dimensions: list of :class:`MetricsColumnMetaData ` + :param metrics: + :type metrics: list of :class:`MetricsColumnMetaData ` + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[MetricsColumnMetaData]'}, + 'metrics': {'key': 'metrics', 'type': '[MetricsColumnMetaData]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsColumnsHeader, self).__init__() + self.dimensions = dimensions + self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_0/models/metrics_row.py b/vsts/vsts/task_agent/v4_0/models/metrics_row.py new file mode 100644 index 00000000..225673ad --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/metrics_row.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetricsRow(Model): + """MetricsRow. + + :param dimensions: + :type dimensions: list of str + :param metrics: + :type metrics: list of str + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[str]'}, + 'metrics': {'key': 'metrics', 'type': '[str]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsRow, self).__init__() + self.dimensions = dimensions + self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_0/models/package_metadata.py b/vsts/vsts/task_agent/v4_0/models/package_metadata.py new file mode 100644 index 00000000..8c5124bf --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/package_metadata.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageMetadata(Model): + """PackageMetadata. + + :param created_on: The date the package was created + :type created_on: datetime + :param download_url: A direct link to download the package. + :type download_url: str + :param filename: The UI uses this to display instructions, i.e. "unzip MyAgent.zip" + :type filename: str + :param hash_value: MD5 hash as a base64 string + :type hash_value: str + :param info_url: A link to documentation + :type info_url: str + :param platform: The platform (win7, linux, etc.) + :type platform: str + :param type: The type of package (e.g. "agent") + :type type: str + :param version: The package version. + :type version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'download_url': {'key': 'downloadUrl', 'type': 'str'}, + 'filename': {'key': 'filename', 'type': 'str'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'info_url': {'key': 'infoUrl', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'PackageVersion'} + } + + def __init__(self, created_on=None, download_url=None, filename=None, hash_value=None, info_url=None, platform=None, type=None, version=None): + super(PackageMetadata, self).__init__() + self.created_on = created_on + self.download_url = download_url + self.filename = filename + self.hash_value = hash_value + self.info_url = info_url + self.platform = platform + self.type = type + self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/package_version.py b/vsts/vsts/task_agent/v4_0/models/package_version.py new file mode 100644 index 00000000..3742cdc0 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/package_version.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageVersion(Model): + """PackageVersion. + + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(PackageVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch diff --git a/vsts/vsts/task_agent/v4_0/models/project_reference.py b/vsts/vsts/task_agent/v4_0/models/project_reference.py new file mode 100644 index 00000000..8fd6ad8e --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/project_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py b/vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py new file mode 100644 index 00000000..527821b5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishTaskGroupMetadata(Model): + """PublishTaskGroupMetadata. + + :param comment: + :type comment: str + :param parent_definition_revision: + :type parent_definition_revision: int + :param preview: + :type preview: bool + :param task_group_id: + :type task_group_id: str + :param task_group_revision: + :type task_group_revision: int + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parent_definition_revision': {'key': 'parentDefinitionRevision', 'type': 'int'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'}, + 'task_group_revision': {'key': 'taskGroupRevision', 'type': 'int'} + } + + def __init__(self, comment=None, parent_definition_revision=None, preview=None, task_group_id=None, task_group_revision=None): + super(PublishTaskGroupMetadata, self).__init__() + self.comment = comment + self.parent_definition_revision = parent_definition_revision + self.preview = preview + self.task_group_id = task_group_id + self.task_group_revision = task_group_revision diff --git a/vsts/vsts/task_agent/v4_0/models/reference_links.py b/vsts/vsts/task_agent/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/task_agent/v4_0/models/result_transformation_details.py b/vsts/vsts/task_agent/v4_0/models/result_transformation_details.py new file mode 100644 index 00000000..eff9b132 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/result_transformation_details.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResultTransformationDetails(Model): + """ResultTransformationDetails. + + :param result_template: + :type result_template: str + """ + + _attribute_map = { + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, result_template=None): + super(ResultTransformationDetails, self).__init__() + self.result_template = result_template diff --git a/vsts/vsts/task_agent/v4_0/models/secure_file.py b/vsts/vsts/task_agent/v4_0/models/secure_file.py new file mode 100644 index 00000000..b570efc5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/secure_file.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SecureFile(Model): + """SecureFile. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param properties: + :type properties: dict + :param ticket: + :type ticket: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'ticket': {'key': 'ticket', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, modified_on=None, name=None, properties=None, ticket=None): + super(SecureFile, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.properties = properties + self.ticket = ticket diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint.py new file mode 100644 index 00000000..6e1d91cf --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpoint(Model): + """ServiceEndpoint. + + :param administrators_group: + :type administrators_group: :class:`IdentityRef ` + :param authorization: Gets or sets the authorization data for talking to the endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param created_by: The Gets or sets Identity reference for the user who created the Service endpoint + :type created_by: :class:`IdentityRef ` + :param data: + :type data: dict + :param description: Gets or Sets description of endpoint + :type description: str + :param group_scope_id: + :type group_scope_id: str + :param id: Gets or sets the identifier of this endpoint. + :type id: str + :param is_ready: EndPoint state indictor + :type is_ready: bool + :param name: Gets or sets the friendly name of the endpoint. + :type name: str + :param operation_status: Error message during creation/deletion of endpoint + :type operation_status: :class:`object ` + :param readers_group: + :type readers_group: :class:`IdentityRef ` + :param type: Gets or sets the type of the endpoint. + :type type: str + :param url: Gets or sets the url of the endpoint. + :type url: str + """ + + _attribute_map = { + 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + super(ServiceEndpoint, self).__init__() + self.administrators_group = administrators_group + self.authorization = authorization + self.created_by = created_by + self.data = data + self.description = description + self.group_scope_id = group_scope_id + self.id = id + self.is_ready = is_ready + self.name = name + self.operation_status = operation_status + self.readers_group = readers_group + self.type = type + self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py new file mode 100644 index 00000000..0eb2ccc0 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointAuthenticationScheme(Model): + """ServiceEndpointAuthenticationScheme. + + :param authorization_headers: + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param display_name: + :type display_name: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: + :type scheme: str + """ + + _attribute_map = { + 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, authorization_headers=None, display_name=None, input_descriptors=None, scheme=None): + super(ServiceEndpointAuthenticationScheme, self).__init__() + self.authorization_headers = authorization_headers + self.display_name = display_name + self.input_descriptors = input_descriptors + self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py new file mode 100644 index 00000000..7f45faac --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointDetails(Model): + """ServiceEndpointDetails. + + :param authorization: + :type authorization: :class:`EndpointAuthorization ` + :param data: + :type data: dict + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, data=None, type=None, url=None): + super(ServiceEndpointDetails, self).__init__() + self.authorization = authorization + self.data = data + self.type = type + self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py new file mode 100644 index 00000000..bb835c35 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionData(Model): + """ServiceEndpointExecutionData. + + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param finish_time: + :type finish_time: datetime + :param id: + :type id: long + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_type: + :type plan_type: str + :param result: + :type result: object + :param start_time: + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): + super(ServiceEndpointExecutionData, self).__init__() + self.definition = definition + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_type = plan_type + self.result = result + self.start_time = start_time diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py new file mode 100644 index 00000000..1bbbffe6 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionRecord(Model): + """ServiceEndpointExecutionRecord. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: + :type endpoint_id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'} + } + + def __init__(self, data=None, endpoint_id=None): + super(ServiceEndpointExecutionRecord, self).__init__() + self.data = data + self.endpoint_id = endpoint_id diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py new file mode 100644 index 00000000..0329e350 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionRecordsInput(Model): + """ServiceEndpointExecutionRecordsInput. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_ids: + :type endpoint_ids: list of str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} + } + + def __init__(self, data=None, endpoint_ids=None): + super(ServiceEndpointExecutionRecordsInput, self).__init__() + self.data = data + self.endpoint_ids = endpoint_ids diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py new file mode 100644 index 00000000..20f7b6ef --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointRequest(Model): + """ServiceEndpointRequest. + + :param data_source_details: + :type data_source_details: :class:`DataSourceDetails ` + :param result_transformation_details: + :type result_transformation_details: :class:`ResultTransformationDetails ` + :param service_endpoint_details: + :type service_endpoint_details: :class:`ServiceEndpointDetails ` + """ + + _attribute_map = { + 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, + 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, + 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} + } + + def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): + super(ServiceEndpointRequest, self).__init__() + self.data_source_details = data_source_details + self.result_transformation_details = result_transformation_details + self.service_endpoint_details = service_endpoint_details diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py new file mode 100644 index 00000000..28d4d094 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointRequestResult(Model): + """ServiceEndpointRequestResult. + + :param error_message: + :type error_message: str + :param result: + :type result: :class:`object ` + :param status_code: + :type status_code: object + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'object'} + } + + def __init__(self, error_message=None, result=None, status_code=None): + super(ServiceEndpointRequestResult, self).__init__() + self.error_message = error_message + self.result = result + self.status_code = status_code diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py new file mode 100644 index 00000000..b03c1f24 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointType(Model): + """ServiceEndpointType. + + :param authentication_schemes: + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: + :type data_sources: list of :class:`DataSource ` + :param dependency_data: + :type dependency_data: list of :class:`DependencyData ` + :param description: + :type description: str + :param display_name: + :type display_name: str + :param endpoint_url: + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: + :type help_link: :class:`HelpLink ` + :param help_mark_down: + :type help_mark_down: str + :param icon_url: + :type icon_url: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent.py b/vsts/vsts/task_agent/v4_0/models/task_agent.py new file mode 100644 index 00000000..231787dc --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent.py @@ -0,0 +1,75 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_agent_reference import TaskAgentReference + + +class TaskAgent(TaskAgentReference): + """TaskAgent. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + :param assigned_request: Gets the request which is currently assigned to this agent. + :type assigned_request: :class:`TaskAgentJobRequest ` + :param authorization: Gets or sets the authorization information for this agent. + :type authorization: :class:`TaskAgentAuthorization ` + :param created_on: Gets the date on which this agent was created. + :type created_on: datetime + :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. + :type max_parallelism: int + :param pending_update: Gets the pending update for this agent. + :type pending_update: :class:`TaskAgentUpdate ` + :param properties: + :type properties: :class:`object ` + :param status_changed_on: Gets the date on which the last connectivity status change occurred. + :type status_changed_on: datetime + :param system_capabilities: + :type system_capabilities: dict + :param user_capabilities: + :type user_capabilities: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, + 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, + 'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'status_changed_on': {'key': 'statusChangedOn', 'type': 'iso-8601'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'}, + 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): + super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, status=status, version=version) + self.assigned_request = assigned_request + self.authorization = authorization + self.created_on = created_on + self.max_parallelism = max_parallelism + self.pending_update = pending_update + self.properties = properties + self.status_changed_on = status_changed_on + self.system_capabilities = system_capabilities + self.user_capabilities = user_capabilities diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py b/vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py new file mode 100644 index 00000000..b30ced21 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentAuthorization(Model): + """TaskAgentAuthorization. + + :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. + :type authorization_url: str + :param client_id: Gets or sets the client identifier for this agent. + :type client_id: str + :param public_key: Gets or sets the public key used to verify the identity of this agent. + :type public_key: :class:`TaskAgentPublicKey ` + """ + + _attribute_map = { + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} + } + + def __init__(self, authorization_url=None, client_id=None, public_key=None): + super(TaskAgentAuthorization, self).__init__() + self.authorization_url = authorization_url + self.client_id = client_id + self.public_key = public_key diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py b/vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py new file mode 100644 index 00000000..51343a5f --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentJobRequest(Model): + """TaskAgentJobRequest. + + :param assign_time: + :type assign_time: datetime + :param data: + :type data: dict + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param demands: + :type demands: list of :class:`object ` + :param finish_time: + :type finish_time: datetime + :param host_id: + :type host_id: str + :param job_id: + :type job_id: str + :param job_name: + :type job_name: str + :param locked_until: + :type locked_until: datetime + :param matched_agents: + :type matched_agents: list of :class:`TaskAgentReference ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param queue_time: + :type queue_time: datetime + :param receive_time: + :type receive_time: datetime + :param request_id: + :type request_id: long + :param reserved_agent: + :type reserved_agent: :class:`TaskAgentReference ` + :param result: + :type result: object + :param scope_id: + :type scope_id: str + :param service_owner: + :type service_owner: str + """ + + _attribute_map = { + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'job_name': {'key': 'jobName', 'type': 'str'}, + 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, + 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'}, + 'request_id': {'key': 'requestId', 'type': 'long'}, + 'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'}, + 'result': {'key': 'result', 'type': 'object'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'} + } + + def __init__(self, assign_time=None, data=None, definition=None, demands=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_id=None, plan_type=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): + super(TaskAgentJobRequest, self).__init__() + self.assign_time = assign_time + self.data = data + self.definition = definition + self.demands = demands + self.finish_time = finish_time + self.host_id = host_id + self.job_id = job_id + self.job_name = job_name + self.locked_until = locked_until + self.matched_agents = matched_agents + self.owner = owner + self.plan_id = plan_id + self.plan_type = plan_type + self.queue_time = queue_time + self.receive_time = receive_time + self.request_id = request_id + self.reserved_agent = reserved_agent + self.result = result + self.scope_id = scope_id + self.service_owner = service_owner diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_message.py b/vsts/vsts/task_agent/v4_0/models/task_agent_message.py new file mode 100644 index 00000000..5b4e7a78 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_message.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentMessage(Model): + """TaskAgentMessage. + + :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. + :type body: str + :param iV: Gets or sets the intialization vector used to encrypt this message. + :type iV: list of number + :param message_id: Gets or sets the message identifier. + :type message_id: long + :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. + :type message_type: str + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'iV': {'key': 'iV', 'type': '[number]'}, + 'message_id': {'key': 'messageId', 'type': 'long'}, + 'message_type': {'key': 'messageType', 'type': 'str'} + } + + def __init__(self, body=None, iV=None, message_id=None, message_type=None): + super(TaskAgentMessage, self).__init__() + self.body = body + self.iV = iV + self.message_id = message_id + self.message_type = message_type diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool.py new file mode 100644 index 00000000..f74bd876 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool.py @@ -0,0 +1,56 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_agent_pool_reference import TaskAgentPoolReference + + +class TaskAgentPool(TaskAgentPoolReference): + """TaskAgentPool. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. + :type auto_provision: bool + :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets the date/time of the pool creation. + :type created_on: datetime + :param properties: + :type properties: :class:`object ` + :param size: Gets the current size of the pool. + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, auto_provision=None, created_by=None, created_on=None, properties=None, size=None): + super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope) + self.auto_provision = auto_provision + self.created_by = created_by + self.created_on = created_on + self.properties = properties + self.size = size diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py new file mode 100644 index 00000000..be8c1134 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceDefinition(Model): + """TaskAgentPoolMaintenanceDefinition. + + :param enabled: Enable maintenance + :type enabled: bool + :param id: Id + :type id: int + :param job_timeout_in_minutes: Maintenance job timeout per agent + :type job_timeout_in_minutes: int + :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time + :type max_concurrent_agents_percentage: int + :param options: + :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :param pool: Pool reference for the maintenance definition + :type pool: :class:`TaskAgentPoolReference ` + :param retention_policy: + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :param schedule_setting: + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'max_concurrent_agents_percentage': {'key': 'maxConcurrentAgentsPercentage', 'type': 'int'}, + 'options': {'key': 'options', 'type': 'TaskAgentPoolMaintenanceOptions'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'TaskAgentPoolMaintenanceRetentionPolicy'}, + 'schedule_setting': {'key': 'scheduleSetting', 'type': 'TaskAgentPoolMaintenanceSchedule'} + } + + def __init__(self, enabled=None, id=None, job_timeout_in_minutes=None, max_concurrent_agents_percentage=None, options=None, pool=None, retention_policy=None, schedule_setting=None): + super(TaskAgentPoolMaintenanceDefinition, self).__init__() + self.enabled = enabled + self.id = id + self.job_timeout_in_minutes = job_timeout_in_minutes + self.max_concurrent_agents_percentage = max_concurrent_agents_percentage + self.options = options + self.pool = pool + self.retention_policy = retention_policy + self.schedule_setting = schedule_setting diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py new file mode 100644 index 00000000..ecc14bac --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceJob(Model): + """TaskAgentPoolMaintenanceJob. + + :param definition_id: The maintenance definition for the maintenance job + :type definition_id: int + :param error_count: The total error counts during the maintenance job + :type error_count: int + :param finish_time: Time that the maintenance job was completed + :type finish_time: datetime + :param job_id: Id of the maintenance job + :type job_id: int + :param logs_download_url: The log download url for the maintenance job + :type logs_download_url: str + :param orchestration_id: Orchestration/Plan Id for the maintenance job + :type orchestration_id: str + :param pool: Pool reference for the maintenance job + :type pool: :class:`TaskAgentPoolReference ` + :param queue_time: Time that the maintenance job was queued + :type queue_time: datetime + :param requested_by: The identity that queued the maintenance job + :type requested_by: :class:`IdentityRef ` + :param result: The maintenance job result + :type result: object + :param start_time: Time that the maintenance job was started + :type start_time: datetime + :param status: Status of the maintenance job + :type status: object + :param target_agents: + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :param warning_count: The total warning counts during the maintenance job + :type warning_count: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'}, + 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'} + } + + def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None): + super(TaskAgentPoolMaintenanceJob, self).__init__() + self.definition_id = definition_id + self.error_count = error_count + self.finish_time = finish_time + self.job_id = job_id + self.logs_download_url = logs_download_url + self.orchestration_id = orchestration_id + self.pool = pool + self.queue_time = queue_time + self.requested_by = requested_by + self.result = result + self.start_time = start_time + self.status = status + self.target_agents = target_agents + self.warning_count = warning_count diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py new file mode 100644 index 00000000..f55a5246 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceJobTargetAgent(Model): + """TaskAgentPoolMaintenanceJobTargetAgent. + + :param agent: + :type agent: :class:`TaskAgentReference ` + :param job_id: + :type job_id: int + :param result: + :type result: object + :param status: + :type status: object + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, agent=None, job_id=None, result=None, status=None): + super(TaskAgentPoolMaintenanceJobTargetAgent, self).__init__() + self.agent = agent + self.job_id = job_id + self.result = result + self.status = status diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py new file mode 100644 index 00000000..7c6690dd --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceOptions(Model): + """TaskAgentPoolMaintenanceOptions. + + :param working_directory_expiration_in_days: time to consider a System.DefaultWorkingDirectory is stale + :type working_directory_expiration_in_days: int + """ + + _attribute_map = { + 'working_directory_expiration_in_days': {'key': 'workingDirectoryExpirationInDays', 'type': 'int'} + } + + def __init__(self, working_directory_expiration_in_days=None): + super(TaskAgentPoolMaintenanceOptions, self).__init__() + self.working_directory_expiration_in_days = working_directory_expiration_in_days diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py new file mode 100644 index 00000000..4f9c1434 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceRetentionPolicy(Model): + """TaskAgentPoolMaintenanceRetentionPolicy. + + :param number_of_history_records_to_keep: Number of records to keep for maintenance job executed with this definition. + :type number_of_history_records_to_keep: int + """ + + _attribute_map = { + 'number_of_history_records_to_keep': {'key': 'numberOfHistoryRecordsToKeep', 'type': 'int'} + } + + def __init__(self, number_of_history_records_to_keep=None): + super(TaskAgentPoolMaintenanceRetentionPolicy, self).__init__() + self.number_of_history_records_to_keep = number_of_history_records_to_keep diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py new file mode 100644 index 00000000..4395a005 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceSchedule(Model): + """TaskAgentPoolMaintenanceSchedule. + + :param days_to_build: Days for a build (flags enum for days of the week) + :type days_to_build: object + :param schedule_job_id: The Job Id of the Scheduled job that will queue the pool maintenance job. + :type schedule_job_id: str + :param start_hours: Local timezone hour to start + :type start_hours: int + :param start_minutes: Local timezone minute to start + :type start_minutes: int + :param time_zone_id: Time zone of the build schedule (string representation of the time zone id) + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_build': {'key': 'daysToBuild', 'type': 'object'}, + 'schedule_job_id': {'key': 'scheduleJobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_build=None, schedule_job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(TaskAgentPoolMaintenanceSchedule, self).__init__() + self.days_to_build = days_to_build + self.schedule_job_id = schedule_job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py new file mode 100644 index 00000000..d553c3af --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolReference(Model): + """TaskAgentPoolReference. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None): + super(TaskAgentPoolReference, self).__init__() + self.id = id + self.is_hosted = is_hosted + self.name = name + self.pool_type = pool_type + self.scope = scope diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py new file mode 100644 index 00000000..32ad5940 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPublicKey(Model): + """TaskAgentPublicKey. + + :param exponent: Gets or sets the exponent for the public key. + :type exponent: list of number + :param modulus: Gets or sets the modulus for the public key. + :type modulus: list of number + """ + + _attribute_map = { + 'exponent': {'key': 'exponent', 'type': '[number]'}, + 'modulus': {'key': 'modulus', 'type': '[number]'} + } + + def __init__(self, exponent=None, modulus=None): + super(TaskAgentPublicKey, self).__init__() + self.exponent = exponent + self.modulus = modulus diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_queue.py b/vsts/vsts/task_agent/v4_0/models/task_agent_queue.py new file mode 100644 index 00000000..ec4e341b --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_queue.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentQueue(Model): + """TaskAgentQueue. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project_id: + :type project_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project_id': {'key': 'projectId', 'type': 'str'} + } + + def __init__(self, id=None, name=None, pool=None, project_id=None): + super(TaskAgentQueue, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project_id = project_id diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_reference.py b/vsts/vsts/task_agent/v4_0/models/task_agent_reference.py new file mode 100644 index 00000000..b608b2f1 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_reference.py @@ -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.serialization import Model + + +class TaskAgentReference(Model): + """TaskAgentReference. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None): + super(TaskAgentReference, self).__init__() + self._links = _links + self.enabled = enabled + self.id = id + self.name = name + self.status = status + self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_session.py b/vsts/vsts/task_agent/v4_0/models/task_agent_session.py new file mode 100644 index 00000000..64e9410c --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_session.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentSession(Model): + """TaskAgentSession. + + :param agent: Gets or sets the agent which is the target of the session. + :type agent: :class:`TaskAgentReference ` + :param encryption_key: Gets the key used to encrypt message traffic for this session. + :type encryption_key: :class:`TaskAgentSessionKey ` + :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. + :type owner_name: str + :param session_id: Gets the unique identifier for this session. + :type session_id: str + :param system_capabilities: + :type system_capabilities: dict + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'encryption_key': {'key': 'encryptionKey', 'type': 'TaskAgentSessionKey'}, + 'owner_name': {'key': 'ownerName', 'type': 'str'}, + 'session_id': {'key': 'sessionId', 'type': 'str'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'} + } + + def __init__(self, agent=None, encryption_key=None, owner_name=None, session_id=None, system_capabilities=None): + super(TaskAgentSession, self).__init__() + self.agent = agent + self.encryption_key = encryption_key + self.owner_name = owner_name + self.session_id = session_id + self.system_capabilities = system_capabilities diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py new file mode 100644 index 00000000..6015a042 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentSessionKey(Model): + """TaskAgentSessionKey. + + :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. + :type encrypted: bool + :param value: Gets or sets the symmetric key value. + :type value: list of number + """ + + _attribute_map = { + 'encrypted': {'key': 'encrypted', 'type': 'bool'}, + 'value': {'key': 'value', 'type': '[number]'} + } + + def __init__(self, encrypted=None, value=None): + super(TaskAgentSessionKey, self).__init__() + self.encrypted = encrypted + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_update.py b/vsts/vsts/task_agent/v4_0/models/task_agent_update.py new file mode 100644 index 00000000..45eb7da6 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_update.py @@ -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.serialization import Model + + +class TaskAgentUpdate(Model): + """TaskAgentUpdate. + + :param current_state: The current state of this agent update + :type current_state: str + :param reason: The reason of this agent update + :type reason: :class:`TaskAgentUpdateReason ` + :param requested_by: The identity that request the agent update + :type requested_by: :class:`IdentityRef ` + :param request_time: Gets the date on which this agent update was requested. + :type request_time: datetime + :param source_version: Gets or sets the source agent version of the agent update + :type source_version: :class:`PackageVersion ` + :param target_version: Gets or sets the target agent version of the agent update + :type target_version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'current_state': {'key': 'currentState', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'TaskAgentUpdateReason'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_time': {'key': 'requestTime', 'type': 'iso-8601'}, + 'source_version': {'key': 'sourceVersion', 'type': 'PackageVersion'}, + 'target_version': {'key': 'targetVersion', 'type': 'PackageVersion'} + } + + def __init__(self, current_state=None, reason=None, requested_by=None, request_time=None, source_version=None, target_version=None): + super(TaskAgentUpdate, self).__init__() + self.current_state = current_state + self.reason = reason + self.requested_by = requested_by + self.request_time = request_time + self.source_version = source_version + self.target_version = target_version diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py b/vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py new file mode 100644 index 00000000..7d04a89f --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentUpdateReason(Model): + """TaskAgentUpdateReason. + + :param code: + :type code: object + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'object'} + } + + def __init__(self, code=None): + super(TaskAgentUpdateReason, self).__init__() + self.code = code diff --git a/vsts/vsts/task_agent/v4_0/models/task_definition.py b/vsts/vsts/task_agent/v4_0/models/task_definition.py new file mode 100644 index 00000000..4a3294f8 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_definition.py @@ -0,0 +1,161 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskDefinition(Model): + """TaskDefinition. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): + super(TaskDefinition, self).__init__() + self.agent_execution = agent_execution + self.author = author + self.category = category + self.contents_uploaded = contents_uploaded + self.contribution_identifier = contribution_identifier + self.contribution_version = contribution_version + self.data_source_bindings = data_source_bindings + self.definition_type = definition_type + self.demands = demands + self.deprecated = deprecated + self.description = description + self.disabled = disabled + self.execution = execution + self.friendly_name = friendly_name + self.groups = groups + self.help_mark_down = help_mark_down + self.host_type = host_type + self.icon_url = icon_url + self.id = id + self.inputs = inputs + self.instance_name_format = instance_name_format + self.minimum_agent_version = minimum_agent_version + self.name = name + self.output_variables = output_variables + self.package_location = package_location + self.package_type = package_type + self.preview = preview + self.release_notes = release_notes + self.runs_on = runs_on + self.satisfies = satisfies + self.server_owned = server_owned + self.source_definitions = source_definitions + self.source_location = source_location + self.version = version + self.visibility = visibility diff --git a/vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py b/vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py new file mode 100644 index 00000000..ee2aea05 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py @@ -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.serialization import Model + + +class TaskDefinitionEndpoint(Model): + """TaskDefinitionEndpoint. + + :param connection_id: An ID that identifies a service connection to be used for authenticating endpoint requests. + :type connection_id: str + :param key_selector: An Json based keyselector to filter response returned by fetching the endpoint Url.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. The following keyselector defines an Json for extracting nodes named 'ServiceName'. endpoint.KeySelector = "jsonpath://ServiceName"; + :type key_selector: str + :param scope: The scope as understood by Connected Services. Essentialy, a project-id for now. + :type scope: str + :param selector: An XPath/Json based selector to filter response returned by fetching the endpoint Url. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". The following selector defines an XPath for extracting nodes named 'ServiceName'. endpoint.Selector = "xpath://ServiceName"; + :type selector: str + :param task_id: TaskId that this endpoint belongs to. + :type task_id: str + :param url: URL to GET. + :type url: str + """ + + _attribute_map = { + 'connection_id': {'key': 'connectionId', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, connection_id=None, key_selector=None, scope=None, selector=None, task_id=None, url=None): + super(TaskDefinitionEndpoint, self).__init__() + self.connection_id = connection_id + self.key_selector = key_selector + self.scope = scope + self.selector = selector + self.task_id = task_id + self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/task_definition_reference.py b/vsts/vsts/task_agent/v4_0/models/task_definition_reference.py new file mode 100644 index 00000000..ffc8dc2d --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_definition_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskDefinitionReference(Model): + """TaskDefinitionReference. + + :param definition_type: Gets or sets the definition type. Values can be 'task' or 'metaTask'. + :type definition_type: str + :param id: Gets or sets the unique identifier of task. + :type id: str + :param version_spec: Gets or sets the version specification of task. + :type version_spec: str + """ + + _attribute_map = { + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'version_spec': {'key': 'versionSpec', 'type': 'str'} + } + + def __init__(self, definition_type=None, id=None, version_spec=None): + super(TaskDefinitionReference, self).__init__() + self.definition_type = definition_type + self.id = id + self.version_spec = version_spec diff --git a/vsts/vsts/task_agent/v4_0/models/task_execution.py b/vsts/vsts/task_agent/v4_0/models/task_execution.py new file mode 100644 index 00000000..16428d39 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_execution.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskExecution(Model): + """TaskExecution. + + :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline + :type exec_task: :class:`TaskReference ` + :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } + :type platform_instructions: dict + """ + + _attribute_map = { + 'exec_task': {'key': 'execTask', 'type': 'TaskReference'}, + 'platform_instructions': {'key': 'platformInstructions', 'type': '{{str}}'} + } + + def __init__(self, exec_task=None, platform_instructions=None): + super(TaskExecution, self).__init__() + self.exec_task = exec_task + self.platform_instructions = platform_instructions diff --git a/vsts/vsts/task_agent/v4_0/models/task_group.py b/vsts/vsts/task_agent/v4_0/models/task_group.py new file mode 100644 index 00000000..6bb5cc70 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_group.py @@ -0,0 +1,166 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_definition import TaskDefinition + + +class TaskGroup(TaskDefinition): + """TaskGroup. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets date on which it got created. + :type created_on: datetime + :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. + :type deleted: bool + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets date on which it got modified. + :type modified_on: datetime + :param owner: Gets or sets the owner. + :type owner: str + :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param revision: Gets or sets revision. + :type revision: int + :param tasks: + :type tasks: list of :class:`TaskGroupStep ` + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'deleted': {'key': 'deleted', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): + super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.deleted = deleted + self.modified_by = modified_by + self.modified_on = modified_on + self.owner = owner + self.parent_definition_id = parent_definition_id + self.revision = revision + self.tasks = tasks diff --git a/vsts/vsts/task_agent/v4_0/models/task_group_definition.py b/vsts/vsts/task_agent/v4_0/models/task_group_definition.py new file mode 100644 index 00000000..603bf5d7 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_group_definition.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupDefinition(Model): + """TaskGroupDefinition. + + :param display_name: + :type display_name: str + :param is_expanded: + :type is_expanded: bool + :param name: + :type name: str + :param tags: + :type tags: list of str + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, display_name=None, is_expanded=None, name=None, tags=None, visible_rule=None): + super(TaskGroupDefinition, self).__init__() + self.display_name = display_name + self.is_expanded = is_expanded + self.name = name + self.tags = tags + self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_0/models/task_group_revision.py b/vsts/vsts/task_agent/v4_0/models/task_group_revision.py new file mode 100644 index 00000000..b732c9de --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_group_revision.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupRevision(Model): + """TaskGroupRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_type: + :type change_type: object + :param comment: + :type comment: str + :param file_id: + :type file_id: int + :param revision: + :type revision: int + :param task_group_id: + :type task_group_id: str + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'} + } + + def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, file_id=None, revision=None, task_group_id=None): + super(TaskGroupRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.file_id = file_id + self.revision = revision + self.task_group_id = task_group_id diff --git a/vsts/vsts/task_agent/v4_0/models/task_group_step.py b/vsts/vsts/task_agent/v4_0/models/task_group_step.py new file mode 100644 index 00000000..bbb6d51e --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_group_step.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupStep(Model): + """TaskGroupStep. + + :param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise. + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise. + :type continue_on_error: bool + :param display_name: Gets or sets the display name. + :type display_name: str + :param enabled: Gets or sets as task is enabled or not. + :type enabled: bool + :param inputs: Gets or sets dictionary of inputs. + :type inputs: dict + :param task: Gets or sets the reference of the task. + :type task: :class:`TaskDefinitionReference ` + :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): + super(TaskGroupStep, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.display_name = display_name + self.enabled = enabled + self.inputs = inputs + self.task = task + self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py b/vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py new file mode 100644 index 00000000..7632a7ec --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskHubLicenseDetails(Model): + """TaskHubLicenseDetails. + + :param enterprise_users_count: + :type enterprise_users_count: int + :param free_hosted_license_count: + :type free_hosted_license_count: int + :param free_license_count: + :type free_license_count: int + :param has_license_count_ever_updated: + :type has_license_count_ever_updated: bool + :param hosted_agent_minutes_free_count: + :type hosted_agent_minutes_free_count: int + :param hosted_agent_minutes_used_count: + :type hosted_agent_minutes_used_count: int + :param msdn_users_count: + :type msdn_users_count: int + :param purchased_hosted_license_count: + :type purchased_hosted_license_count: int + :param purchased_license_count: + :type purchased_license_count: int + :param total_license_count: + :type total_license_count: int + """ + + _attribute_map = { + 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, + 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, + 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, + 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, + 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, + 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, + 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, + 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, + 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, + 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} + } + + def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): + super(TaskHubLicenseDetails, self).__init__() + self.enterprise_users_count = enterprise_users_count + self.free_hosted_license_count = free_hosted_license_count + self.free_license_count = free_license_count + self.has_license_count_ever_updated = has_license_count_ever_updated + self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count + self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count + self.msdn_users_count = msdn_users_count + self.purchased_hosted_license_count = purchased_hosted_license_count + self.purchased_license_count = purchased_license_count + self.total_license_count = total_license_count diff --git a/vsts/vsts/task_agent/v4_0/models/task_input_definition.py b/vsts/vsts/task_agent/v4_0/models/task_input_definition.py new file mode 100644 index 00000000..f3c31fb8 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_input_definition.py @@ -0,0 +1,54 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_input_definition_base import TaskInputDefinitionBase + + +class TaskInputDefinition(TaskInputDefinitionBase): + """TaskInputDefinition. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'}, + } + + def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinition, self).__init__(default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) diff --git a/vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py b/vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py new file mode 100644 index 00000000..1f33183e --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_0/models/task_input_validation.py b/vsts/vsts/task_agent/v4_0/models/task_input_validation.py new file mode 100644 index 00000000..42524013 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_input_validation.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message diff --git a/vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py b/vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py new file mode 100644 index 00000000..8f16499e --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/task_output_variable.py b/vsts/vsts/task_agent/v4_0/models/task_output_variable.py new file mode 100644 index 00000000..6bd50c8d --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_output_variable.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOutputVariable(Model): + """TaskOutputVariable. + + :param description: + :type description: str + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(TaskOutputVariable, self).__init__() + self.description = description + self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/task_package_metadata.py b/vsts/vsts/task_agent/v4_0/models/task_package_metadata.py new file mode 100644 index 00000000..635fda1b --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_package_metadata.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskPackageMetadata(Model): + """TaskPackageMetadata. + + :param type: Gets the name of the package. + :type type: str + :param url: Gets the url of the package. + :type url: str + :param version: Gets the version of the package. + :type version: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, type=None, url=None, version=None): + super(TaskPackageMetadata, self).__init__() + self.type = type + self.url = url + self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/task_reference.py b/vsts/vsts/task_agent/v4_0/models/task_reference.py new file mode 100644 index 00000000..3ff1dd7b --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/task_source_definition.py b/vsts/vsts/task_agent/v4_0/models/task_source_definition.py new file mode 100644 index 00000000..96f5576b --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_source_definition.py @@ -0,0 +1,36 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_source_definition_base import TaskSourceDefinitionBase + + +class TaskSourceDefinition(TaskSourceDefinitionBase): + """TaskSourceDefinition. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinition, self).__init__(auth_key=auth_key, endpoint=endpoint, key_selector=key_selector, selector=selector, target=target) diff --git a/vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py b/vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py new file mode 100644 index 00000000..c8a6b6d6 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target diff --git a/vsts/vsts/task_agent/v4_0/models/task_version.py b/vsts/vsts/task_agent/v4_0/models/task_version.py new file mode 100644 index 00000000..3d4c89ee --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/task_version.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskVersion(Model): + """TaskVersion. + + :param is_test: + :type is_test: bool + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'is_test': {'key': 'isTest', 'type': 'bool'}, + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, is_test=None, major=None, minor=None, patch=None): + super(TaskVersion, self).__init__() + self.is_test = is_test + self.major = major + self.minor = minor + self.patch = patch diff --git a/vsts/vsts/task_agent/v4_0/models/validation_item.py b/vsts/vsts/task_agent/v4_0/models/validation_item.py new file mode 100644 index 00000000..c7ba5083 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/validation_item.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ValidationItem(Model): + """ValidationItem. + + :param is_valid: Tells whether the current input is valid or not + :type is_valid: bool + :param reason: Reason for input validation failure + :type reason: str + :param type: Type of validation item + :type type: str + :param value: Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master') + :type value: str + """ + + _attribute_map = { + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_valid=None, reason=None, type=None, value=None): + super(ValidationItem, self).__init__() + self.is_valid = is_valid + self.reason = reason + self.type = type + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/variable_group.py b/vsts/vsts/task_agent/v4_0/models/variable_group.py new file mode 100644 index 00000000..ddda80d7 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/variable_group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param id: + :type id: int + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param provider_data: + :type provider_data: :class:`VariableGroupProviderData ` + :param type: + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables diff --git a/vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py b/vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py new file mode 100644 index 00000000..b86942f1 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/task_agent/v4_0/models/variable_value.py b/vsts/vsts/task_agent/v4_0/models/variable_value.py new file mode 100644 index 00000000..035049c0 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/models/variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/task_agent/v4_0/task_agent_client.py b/vsts/vsts/task_agent/v4_0/task_agent_client.py new file mode 100644 index 00000000..42e39ca2 --- /dev/null +++ b/vsts/vsts/task_agent/v4_0/task_agent_client.py @@ -0,0 +1,2480 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TaskAgentClient(VssClient): + """TaskAgent + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TaskAgentClient, 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 add_agent(self, agent, pool_id): + """AddAgent. + :param :class:` ` agent: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(agent, 'TaskAgent') + response = self._send(http_method='POST', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def delete_agent(self, pool_id, agent_id): + """DeleteAgent. + :param int pool_id: + :param int agent_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + self._send(http_method='DELETE', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.0', + route_values=route_values) + + def get_agent(self, pool_id, agent_id, include_capabilities=None, include_assigned_request=None, property_filters=None): + """GetAgent. + :param int pool_id: + :param int agent_id: + :param bool include_capabilities: + :param bool include_assigned_request: + :param [str] property_filters: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + query_parameters = {} + if include_capabilities is not None: + query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') + if include_assigned_request is not None: + query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgent', response) + + def get_agents(self, pool_id, agent_name=None, include_capabilities=None, include_assigned_request=None, property_filters=None, demands=None): + """GetAgents. + :param int pool_id: + :param str agent_name: + :param bool include_capabilities: + :param bool include_assigned_request: + :param [str] property_filters: + :param [str] demands: + :rtype: [TaskAgent] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + if include_capabilities is not None: + query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') + if include_assigned_request is not None: + query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if demands is not None: + demands = ",".join(demands) + query_parameters['demands'] = self._serialize.query('demands', demands, 'str') + response = self._send(http_method='GET', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgent]', response) + + def replace_agent(self, agent, pool_id, agent_id): + """ReplaceAgent. + :param :class:` ` agent: + :param int pool_id: + :param int agent_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + content = self._serialize.body(agent, 'TaskAgent') + response = self._send(http_method='PUT', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def update_agent(self, agent, pool_id, agent_id): + """UpdateAgent. + :param :class:` ` agent: + :param int pool_id: + :param int agent_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + content = self._serialize.body(agent, 'TaskAgent') + response = self._send(http_method='PATCH', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def get_azure_subscriptions(self): + """GetAzureSubscriptions. + [Preview API] Returns list of azure subscriptions + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='bcd6189c-0303-471f-a8e1-acb22b74d700', + version='4.0-preview.1') + return self._deserialize('AzureSubscriptionQueryResult', response) + + def generate_deployment_group_access_token(self, project, deployment_group_id): + """GenerateDeploymentGroupAccessToken. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: str + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + response = self._send(http_method='POST', + location_id='3d197ba2-c3e9-4253-882f-0ee2440f8174', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def add_deployment_group(self, deployment_group, project): + """AddDeploymentGroup. + [Preview API] + :param :class:` ` deployment_group: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(deployment_group, 'DeploymentGroup') + response = self._send(http_method='POST', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentGroup', response) + + def delete_deployment_group(self, project, deployment_group_id): + """DeleteDeploymentGroup. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + self._send(http_method='DELETE', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.0-preview.1', + route_values=route_values) + + def get_deployment_group(self, project, deployment_group_id, action_filter=None, expand=None): + """GetDeploymentGroup. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param str action_filter: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentGroup', response) + + def get_deployment_groups(self, project, name=None, action_filter=None, expand=None, continuation_token=None, top=None, ids=None): + """GetDeploymentGroups. + [Preview API] + :param str project: Project ID or project name + :param str name: + :param str action_filter: + :param str expand: + :param str continuation_token: + :param int top: + :param [int] ids: + :rtype: [DeploymentGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + response = self._send(http_method='GET', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentGroup]', response) + + def update_deployment_group(self, deployment_group, project, deployment_group_id): + """UpdateDeploymentGroup. + [Preview API] + :param :class:` ` deployment_group: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(deployment_group, 'DeploymentGroup') + response = self._send(http_method='PATCH', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentGroup', response) + + def get_deployment_groups_metrics(self, project, deployment_group_name=None, continuation_token=None, top=None): + """GetDeploymentGroupsMetrics. + [Preview API] + :param str project: Project ID or project name + :param str deployment_group_name: + :param str continuation_token: + :param int top: + :rtype: [DeploymentGroupMetrics] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if deployment_group_name is not None: + query_parameters['deploymentGroupName'] = self._serialize.query('deployment_group_name', deployment_group_name, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='281c6308-427a-49e1-b83a-dac0f4862189', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentGroupMetrics]', response) + + def get_agent_requests_for_deployment_machine(self, project, deployment_group_id, machine_id, completed_request_count=None): + """GetAgentRequestsForDeploymentMachine. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :param int completed_request_count: + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if machine_id is not None: + query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'int') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='a3540e5b-f0dc-4668-963b-b752459be545', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def get_agent_requests_for_deployment_machines(self, project, deployment_group_id, machine_ids=None, completed_request_count=None): + """GetAgentRequestsForDeploymentMachines. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param [int] machine_ids: + :param int completed_request_count: + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if machine_ids is not None: + machine_ids = ",".join(map(str, machine_ids)) + query_parameters['machineIds'] = self._serialize.query('machine_ids', machine_ids, 'str') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='a3540e5b-f0dc-4668-963b-b752459be545', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def refresh_deployment_machines(self, project, deployment_group_id): + """RefreshDeploymentMachines. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + self._send(http_method='POST', + location_id='91006ac4-0f68-4d82-a2bc-540676bd73ce', + version='4.0-preview.1', + route_values=route_values) + + def query_endpoint(self, endpoint): + """QueryEndpoint. + Proxy for a GET request defined by an 'endpoint'. The request is authorized using a service connection. The response is filtered using an XPath/Json based selector. + :param :class:` ` endpoint: Describes the URL to fetch. + :rtype: [str] + """ + content = self._serialize.body(endpoint, 'TaskDefinitionEndpoint') + response = self._send(http_method='POST', + location_id='f223b809-8c33-4b7d-b53f-07232569b5d6', + version='4.0', + content=content, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): + """GetServiceEndpointExecutionRecords. + [Preview API] + :param str project: Project ID or project name + :param str endpoint_id: + :param int top: + :rtype: [ServiceEndpointExecutionRecord] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='3ad71e20-7586-45f9-a6c8-0342e00835ac', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpointExecutionRecord]', response) + + def add_service_endpoint_execution_records(self, input, project): + """AddServiceEndpointExecutionRecords. + [Preview API] + :param :class:` ` input: + :param str project: Project ID or project name + :rtype: [ServiceEndpointExecutionRecord] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(input, 'ServiceEndpointExecutionRecordsInput') + response = self._send(http_method='POST', + location_id='11a45c69-2cce-4ade-a361-c9f5a37239ee', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[ServiceEndpointExecutionRecord]', response) + + def get_task_hub_license_details(self, hub_name, include_enterprise_users_count=None, include_hosted_agent_minutes_count=None): + """GetTaskHubLicenseDetails. + [Preview API] + :param str hub_name: + :param bool include_enterprise_users_count: + :param bool include_hosted_agent_minutes_count: + :rtype: :class:` ` + """ + route_values = {} + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + query_parameters = {} + if include_enterprise_users_count is not None: + query_parameters['includeEnterpriseUsersCount'] = self._serialize.query('include_enterprise_users_count', include_enterprise_users_count, 'bool') + if include_hosted_agent_minutes_count is not None: + query_parameters['includeHostedAgentMinutesCount'] = self._serialize.query('include_hosted_agent_minutes_count', include_hosted_agent_minutes_count, 'bool') + response = self._send(http_method='GET', + location_id='f9f0f436-b8a1-4475-9041-1ccdbf8f0128', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskHubLicenseDetails', response) + + def update_task_hub_license_details(self, task_hub_license_details, hub_name): + """UpdateTaskHubLicenseDetails. + [Preview API] + :param :class:` ` task_hub_license_details: + :param str hub_name: + :rtype: :class:` ` + """ + route_values = {} + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + content = self._serialize.body(task_hub_license_details, 'TaskHubLicenseDetails') + response = self._send(http_method='PUT', + location_id='f9f0f436-b8a1-4475-9041-1ccdbf8f0128', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskHubLicenseDetails', response) + + def validate_inputs(self, input_validation_request): + """ValidateInputs. + [Preview API] + :param :class:` ` input_validation_request: + :rtype: :class:` ` + """ + content = self._serialize.body(input_validation_request, 'InputValidationRequest') + response = self._send(http_method='POST', + location_id='58475b1e-adaf-4155-9bc1-e04bf1fff4c2', + version='4.0-preview.1', + content=content) + return self._deserialize('InputValidationRequest', response) + + def delete_agent_request(self, pool_id, request_id, lock_token, result=None): + """DeleteAgentRequest. + :param int pool_id: + :param long request_id: + :param str lock_token: + :param str result: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'long') + query_parameters = {} + if lock_token is not None: + query_parameters['lockToken'] = self._serialize.query('lock_token', lock_token, 'str') + if result is not None: + query_parameters['result'] = self._serialize.query('result', result, 'str') + self._send(http_method='DELETE', + location_id='fc825784-c92a-4299-9221-998a02d1b54f', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + + def get_agent_request(self, pool_id, request_id): + """GetAgentRequest. + :param int pool_id: + :param long request_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'long') + response = self._send(http_method='GET', + location_id='fc825784-c92a-4299-9221-998a02d1b54f', + version='4.0', + route_values=route_values) + return self._deserialize('TaskAgentJobRequest', response) + + def get_agent_requests_for_agent(self, pool_id, agent_id, completed_request_count=None): + """GetAgentRequestsForAgent. + :param int pool_id: + :param int agent_id: + :param int completed_request_count: + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if agent_id is not None: + query_parameters['agentId'] = self._serialize.query('agent_id', agent_id, 'int') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='fc825784-c92a-4299-9221-998a02d1b54f', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def get_agent_requests_for_agents(self, pool_id, agent_ids=None, completed_request_count=None): + """GetAgentRequestsForAgents. + :param int pool_id: + :param [int] agent_ids: + :param int completed_request_count: + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if agent_ids is not None: + agent_ids = ",".join(map(str, agent_ids)) + query_parameters['agentIds'] = self._serialize.query('agent_ids', agent_ids, 'str') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='fc825784-c92a-4299-9221-998a02d1b54f', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def get_agent_requests_for_plan(self, pool_id, plan_id, job_id=None): + """GetAgentRequestsForPlan. + :param int pool_id: + :param str plan_id: + :param str job_id: + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if plan_id is not None: + query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'str') + if job_id is not None: + query_parameters['jobId'] = self._serialize.query('job_id', job_id, 'str') + response = self._send(http_method='GET', + location_id='fc825784-c92a-4299-9221-998a02d1b54f', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def queue_agent_request(self, request, pool_id): + """QueueAgentRequest. + :param :class:` ` request: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(request, 'TaskAgentJobRequest') + response = self._send(http_method='POST', + location_id='fc825784-c92a-4299-9221-998a02d1b54f', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentJobRequest', response) + + def update_agent_request(self, request, pool_id, request_id, lock_token): + """UpdateAgentRequest. + :param :class:` ` request: + :param int pool_id: + :param long request_id: + :param str lock_token: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'long') + query_parameters = {} + if lock_token is not None: + query_parameters['lockToken'] = self._serialize.query('lock_token', lock_token, 'str') + content = self._serialize.body(request, 'TaskAgentJobRequest') + response = self._send(http_method='PATCH', + location_id='fc825784-c92a-4299-9221-998a02d1b54f', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('TaskAgentJobRequest', response) + + def generate_deployment_machine_group_access_token(self, project, machine_group_id): + """GenerateDeploymentMachineGroupAccessToken. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + :rtype: str + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + response = self._send(http_method='POST', + location_id='f8c7c0de-ac0d-469b-9cb1-c21f72d67693', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def add_deployment_machine_group(self, machine_group, project): + """AddDeploymentMachineGroup. + [Preview API] + :param :class:` ` machine_group: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(machine_group, 'DeploymentMachineGroup') + response = self._send(http_method='POST', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachineGroup', response) + + def delete_deployment_machine_group(self, project, machine_group_id): + """DeleteDeploymentMachineGroup. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + self._send(http_method='DELETE', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.0-preview.1', + route_values=route_values) + + def get_deployment_machine_group(self, project, machine_group_id, action_filter=None): + """GetDeploymentMachineGroup. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + :param str action_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + query_parameters = {} + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentMachineGroup', response) + + def get_deployment_machine_groups(self, project, machine_group_name=None, action_filter=None): + """GetDeploymentMachineGroups. + [Preview API] + :param str project: Project ID or project name + :param str machine_group_name: + :param str action_filter: + :rtype: [DeploymentMachineGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if machine_group_name is not None: + query_parameters['machineGroupName'] = self._serialize.query('machine_group_name', machine_group_name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentMachineGroup]', response) + + def update_deployment_machine_group(self, machine_group, project, machine_group_id): + """UpdateDeploymentMachineGroup. + [Preview API] + :param :class:` ` machine_group: + :param str project: Project ID or project name + :param int machine_group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + content = self._serialize.body(machine_group, 'DeploymentMachineGroup') + response = self._send(http_method='PATCH', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachineGroup', response) + + def get_deployment_machine_group_machines(self, project, machine_group_id, tag_filters=None): + """GetDeploymentMachineGroupMachines. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + :param [str] tag_filters: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + query_parameters = {} + if tag_filters is not None: + tag_filters = ",".join(tag_filters) + query_parameters['tagFilters'] = self._serialize.query('tag_filters', tag_filters, 'str') + response = self._send(http_method='GET', + location_id='966c3874-c347-4b18-a90c-d509116717fd', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def update_deployment_machine_group_machines(self, deployment_machines, project, machine_group_id): + """UpdateDeploymentMachineGroupMachines. + [Preview API] + :param [DeploymentMachine] deployment_machines: + :param str project: Project ID or project name + :param int machine_group_id: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + content = self._serialize.body(deployment_machines, '[DeploymentMachine]') + response = self._send(http_method='PATCH', + location_id='966c3874-c347-4b18-a90c-d509116717fd', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def add_deployment_machine(self, machine, project, deployment_group_id): + """AddDeploymentMachine. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='POST', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def delete_deployment_machine(self, project, deployment_group_id, machine_id): + """DeleteDeploymentMachine. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + self._send(http_method='DELETE', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.0-preview.1', + route_values=route_values) + + def get_deployment_machine(self, project, deployment_group_id, machine_id, expand=None): + """GetDeploymentMachine. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentMachine', response) + + def get_deployment_machines(self, project, deployment_group_id, tags=None, name=None, expand=None): + """GetDeploymentMachines. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param [str] tags: + :param str name: + :param str expand: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if tags is not None: + tags = ",".join(tags) + query_parameters['tags'] = self._serialize.query('tags', tags, 'str') + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def replace_deployment_machine(self, machine, project, deployment_group_id, machine_id): + """ReplaceDeploymentMachine. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='PUT', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def update_deployment_machine(self, machine, project, deployment_group_id, machine_id): + """UpdateDeploymentMachine. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='PATCH', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def update_deployment_machines(self, machines, project, deployment_group_id): + """UpdateDeploymentMachines. + [Preview API] + :param [DeploymentMachine] machines: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(machines, '[DeploymentMachine]') + response = self._send(http_method='PATCH', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def create_agent_pool_maintenance_definition(self, definition, pool_id): + """CreateAgentPoolMaintenanceDefinition. + [Preview API] + :param :class:` ` definition: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') + response = self._send(http_method='POST', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) + + def delete_agent_pool_maintenance_definition(self, pool_id, definition_id): + """DeleteAgentPoolMaintenanceDefinition. + [Preview API] + :param int pool_id: + :param int definition_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + self._send(http_method='DELETE', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.0-preview.1', + route_values=route_values) + + def get_agent_pool_maintenance_definition(self, pool_id, definition_id): + """GetAgentPoolMaintenanceDefinition. + [Preview API] + :param int pool_id: + :param int definition_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) + + def get_agent_pool_maintenance_definitions(self, pool_id): + """GetAgentPoolMaintenanceDefinitions. + [Preview API] + :param int pool_id: + :rtype: [TaskAgentPoolMaintenanceDefinition] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + response = self._send(http_method='GET', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskAgentPoolMaintenanceDefinition]', response) + + def update_agent_pool_maintenance_definition(self, definition, pool_id, definition_id): + """UpdateAgentPoolMaintenanceDefinition. + [Preview API] + :param :class:` ` definition: + :param int pool_id: + :param int definition_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') + response = self._send(http_method='PUT', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) + + def delete_agent_pool_maintenance_job(self, pool_id, job_id): + """DeleteAgentPoolMaintenanceJob. + [Preview API] + :param int pool_id: + :param int job_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + self._send(http_method='DELETE', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.0-preview.1', + route_values=route_values) + + def get_agent_pool_maintenance_job(self, pool_id, job_id): + """GetAgentPoolMaintenanceJob. + [Preview API] + :param int pool_id: + :param int job_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + response = self._send(http_method='GET', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentPoolMaintenanceJob', response) + + def get_agent_pool_maintenance_job_logs(self, pool_id, job_id): + """GetAgentPoolMaintenanceJobLogs. + [Preview API] + :param int pool_id: + :param int job_id: + :rtype: object + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + response = self._send(http_method='GET', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_agent_pool_maintenance_jobs(self, pool_id, definition_id=None): + """GetAgentPoolMaintenanceJobs. + [Preview API] + :param int pool_id: + :param int definition_id: + :rtype: [TaskAgentPoolMaintenanceJob] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentPoolMaintenanceJob]', response) + + def queue_agent_pool_maintenance_job(self, job, pool_id): + """QueueAgentPoolMaintenanceJob. + [Preview API] + :param :class:` ` job: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') + response = self._send(http_method='POST', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceJob', response) + + def update_agent_pool_maintenance_job(self, job, pool_id, job_id): + """UpdateAgentPoolMaintenanceJob. + [Preview API] + :param :class:` ` job: + :param int pool_id: + :param int job_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') + response = self._send(http_method='PATCH', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceJob', response) + + def delete_message(self, pool_id, message_id, session_id): + """DeleteMessage. + :param int pool_id: + :param long message_id: + :param str session_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if message_id is not None: + route_values['messageId'] = self._serialize.url('message_id', message_id, 'long') + query_parameters = {} + if session_id is not None: + query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') + self._send(http_method='DELETE', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + + def get_message(self, pool_id, session_id, last_message_id=None): + """GetMessage. + :param int pool_id: + :param str session_id: + :param long last_message_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if session_id is not None: + query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') + if last_message_id is not None: + query_parameters['lastMessageId'] = self._serialize.query('last_message_id', last_message_id, 'long') + response = self._send(http_method='GET', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgentMessage', response) + + def refresh_agent(self, pool_id, agent_id): + """RefreshAgent. + :param int pool_id: + :param int agent_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if agent_id is not None: + query_parameters['agentId'] = self._serialize.query('agent_id', agent_id, 'int') + self._send(http_method='POST', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + + def refresh_agents(self, pool_id): + """RefreshAgents. + :param int pool_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + self._send(http_method='POST', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.0', + route_values=route_values) + + def send_message(self, message, pool_id, request_id): + """SendMessage. + :param :class:` ` message: + :param int pool_id: + :param long request_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if request_id is not None: + query_parameters['requestId'] = self._serialize.query('request_id', request_id, 'long') + content = self._serialize.body(message, 'TaskAgentMessage') + self._send(http_method='POST', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + + def get_package(self, package_type, platform, version): + """GetPackage. + :param str package_type: + :param str platform: + :param str version: + :rtype: :class:` ` + """ + route_values = {} + if package_type is not None: + route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') + if platform is not None: + route_values['platform'] = self._serialize.url('platform', platform, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='8ffcd551-079c-493a-9c02-54346299d144', + version='4.0', + route_values=route_values) + return self._deserialize('PackageMetadata', response) + + def get_packages(self, package_type=None, platform=None, top=None): + """GetPackages. + :param str package_type: + :param str platform: + :param int top: + :rtype: [PackageMetadata] + """ + route_values = {} + if package_type is not None: + route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') + if platform is not None: + route_values['platform'] = self._serialize.url('platform', platform, 'str') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='8ffcd551-079c-493a-9c02-54346299d144', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[PackageMetadata]', response) + + def get_agent_pool_roles(self, pool_id=None): + """GetAgentPoolRoles. + [Preview API] + :param int pool_id: + :rtype: [IdentityRef] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + response = self._send(http_method='GET', + location_id='381dd2bb-35cf-4103-ae8c-3c815b25763c', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[IdentityRef]', response) + + def add_agent_pool(self, pool): + """AddAgentPool. + :param :class:` ` pool: + :rtype: :class:` ` + """ + content = self._serialize.body(pool, 'TaskAgentPool') + response = self._send(http_method='POST', + location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', + version='4.0', + content=content) + return self._deserialize('TaskAgentPool', response) + + def delete_agent_pool(self, pool_id): + """DeleteAgentPool. + :param int pool_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + self._send(http_method='DELETE', + location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', + version='4.0', + route_values=route_values) + + def get_agent_pool(self, pool_id, properties=None, action_filter=None): + """GetAgentPool. + :param int pool_id: + :param [str] properties: + :param str action_filter: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if properties is not None: + properties = ",".join(properties) + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgentPool', response) + + def get_agent_pools(self, pool_name=None, properties=None, pool_type=None, action_filter=None): + """GetAgentPools. + :param str pool_name: + :param [str] properties: + :param str pool_type: + :param str action_filter: + :rtype: [TaskAgentPool] + """ + query_parameters = {} + if pool_name is not None: + query_parameters['poolName'] = self._serialize.query('pool_name', pool_name, 'str') + if properties is not None: + properties = ",".join(properties) + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + if pool_type is not None: + query_parameters['poolType'] = self._serialize.query('pool_type', pool_type, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentPool]', response) + + def update_agent_pool(self, pool, pool_id): + """UpdateAgentPool. + :param :class:` ` pool: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(pool, 'TaskAgentPool') + response = self._send(http_method='PATCH', + location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPool', response) + + def get_agent_queue_roles(self, queue_id=None): + """GetAgentQueueRoles. + [Preview API] + :param int queue_id: + :rtype: [IdentityRef] + """ + route_values = {} + if queue_id is not None: + route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') + response = self._send(http_method='GET', + location_id='b0c6d64d-c9fa-4946-b8de-77de623ee585', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[IdentityRef]', response) + + def add_agent_queue(self, queue, project=None): + """AddAgentQueue. + [Preview API] + :param :class:` ` queue: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(queue, 'TaskAgentQueue') + response = self._send(http_method='POST', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentQueue', response) + + def create_team_project(self, project=None): + """CreateTeamProject. + [Preview API] + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + self._send(http_method='PUT', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.0-preview.1', + route_values=route_values) + + def delete_agent_queue(self, queue_id, project=None): + """DeleteAgentQueue. + [Preview API] + :param int queue_id: + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if queue_id is not None: + route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') + self._send(http_method='DELETE', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.0-preview.1', + route_values=route_values) + + def get_agent_queue(self, queue_id, project=None, action_filter=None): + """GetAgentQueue. + [Preview API] + :param int queue_id: + :param str project: Project ID or project name + :param str action_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if queue_id is not None: + route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') + query_parameters = {} + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgentQueue', response) + + def get_agent_queues(self, project=None, queue_name=None, action_filter=None): + """GetAgentQueues. + [Preview API] + :param str project: Project ID or project name + :param str queue_name: + :param str action_filter: + :rtype: [TaskAgentQueue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if queue_name is not None: + query_parameters['queueName'] = self._serialize.query('queue_name', queue_name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentQueue]', response) + + def get_task_group_history(self, project, task_group_id): + """GetTaskGroupHistory. + [Preview API] + :param str project: Project ID or project name + :param str task_group_id: + :rtype: [TaskGroupRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + response = self._send(http_method='GET', + location_id='100cc92a-b255-47fa-9ab3-e44a2985a3ac', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskGroupRevision]', response) + + def delete_secure_file(self, project, secure_file_id): + """DeleteSecureFile. + [Preview API] Delete a secure file + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + self._send(http_method='DELETE', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values) + + def download_secure_file(self, project, secure_file_id, ticket, download=None): + """DownloadSecureFile. + [Preview API] Download a secure file by Id + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + :param str ticket: A valid download ticket + :param bool download: If download is true, the file is sent as attachement in the response body. If download is false, the response body contains the file stream. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + query_parameters = {} + if ticket is not None: + query_parameters['ticket'] = self._serialize.query('ticket', ticket, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_secure_file(self, project, secure_file_id, include_download_ticket=None): + """GetSecureFile. + [Preview API] Get a secure file + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + :param bool include_download_ticket: If includeDownloadTicket is true and the caller has permissions, a download ticket is included in the response. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + query_parameters = {} + if include_download_ticket is not None: + query_parameters['includeDownloadTicket'] = self._serialize.query('include_download_ticket', include_download_ticket, 'bool') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('SecureFile', response) + + def get_secure_files(self, project, name_pattern=None, include_download_tickets=None, action_filter=None): + """GetSecureFiles. + [Preview API] Get secure files + :param str project: Project ID or project name + :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. + :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. + :param str action_filter: Filter by secure file permissions for View, Manage or Use action. Defaults to View. + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name_pattern is not None: + query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') + if include_download_tickets is not None: + query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def get_secure_files_by_ids(self, project, secure_file_ids, include_download_tickets=None): + """GetSecureFilesByIds. + [Preview API] Get secure files + :param str project: Project ID or project name + :param [str] secure_file_ids: A list of secure file Ids + :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if secure_file_ids is not None: + secure_file_ids = ",".join(secure_file_ids) + query_parameters['secureFileIds'] = self._serialize.query('secure_file_ids', secure_file_ids, 'str') + if include_download_tickets is not None: + query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def query_secure_files_by_properties(self, condition, project, name_pattern=None): + """QuerySecureFilesByProperties. + [Preview API] Query secure files using a name pattern and a condition on file properties. + :param str condition: The main condition syntax is described [here](https://go.microsoft.com/fwlink/?linkid=842996). Use the *property('property-name')* function to access the value of the specified property of a secure file. It returns null if the property is not set. E.g. ``` and( eq( property('devices'), '2' ), in( property('provisioning profile type'), 'ad hoc', 'development' ) ) ``` + :param str project: Project ID or project name + :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name_pattern is not None: + query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') + content = self._serialize.body(condition, 'str') + response = self._send(http_method='POST', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def update_secure_file(self, secure_file, project, secure_file_id): + """UpdateSecureFile. + [Preview API] Update the name or properties of an existing secure file + :param :class:` ` secure_file: The secure file with updated name and/or properties + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + content = self._serialize.body(secure_file, 'SecureFile') + response = self._send(http_method='PATCH', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SecureFile', response) + + def update_secure_files(self, secure_files, project): + """UpdateSecureFiles. + [Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge. + :param [SecureFile] secure_files: A list of secure file objects. Only three field must be populated Id, Name, and Properties. The rest of fields in the object are ignored. + :param str project: Project ID or project name + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(secure_files, '[SecureFile]') + response = self._send(http_method='PATCH', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def upload_secure_file(self, upload_stream, project, name): + """UploadSecureFile. + [Preview API] Upload a secure file, include the file stream in the request body + :param object upload_stream: Stream to upload + :param str project: Project ID or project name + :param str name: Name of the file to upload + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + return self._deserialize('SecureFile', response) + + def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): + """ExecuteServiceEndpointRequest. + [Preview API] + :param :class:` ` service_endpoint_request: + :param str project: Project ID or project name + :param str endpoint_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if endpoint_id is not None: + query_parameters['endpointId'] = self._serialize.query('endpoint_id', endpoint_id, 'str') + content = self._serialize.body(service_endpoint_request, 'ServiceEndpointRequest') + response = self._send(http_method='POST', + location_id='f956a7de-d766-43af-81b1-e9e349245634', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpointRequestResult', response) + + def create_service_endpoint(self, endpoint, project): + """CreateServiceEndpoint. + [Preview API] + :param :class:` ` endpoint: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='POST', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def delete_service_endpoint(self, project, endpoint_id): + """DeleteServiceEndpoint. + [Preview API] + :param str project: Project ID or project name + :param str endpoint_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + self._send(http_method='DELETE', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.0-preview.2', + route_values=route_values) + + def get_service_endpoint_details(self, project, endpoint_id): + """GetServiceEndpointDetails. + [Preview API] + :param str project: Project ID or project name + :param str endpoint_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + response = self._send(http_method='GET', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('ServiceEndpoint', response) + + def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, include_failed=None): + """GetServiceEndpoints. + [Preview API] + :param str project: Project ID or project name + :param str type: + :param [str] auth_schemes: + :param [str] endpoint_ids: + :param bool include_failed: + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if auth_schemes is not None: + auth_schemes = ",".join(auth_schemes) + query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') + if endpoint_ids is not None: + endpoint_ids = ",".join(endpoint_ids) + query_parameters['endpointIds'] = self._serialize.query('endpoint_ids', endpoint_ids, 'str') + if include_failed is not None: + query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + response = self._send(http_method='GET', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): + """UpdateServiceEndpoint. + [Preview API] + :param :class:` ` endpoint: + :param str project: Project ID or project name + :param str endpoint_id: + :param str operation: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if operation is not None: + query_parameters['operation'] = self._serialize.query('operation', operation, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='PUT', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def update_service_endpoints(self, endpoints, project): + """UpdateServiceEndpoints. + [Preview API] + :param [ServiceEndpoint] endpoints: + :param str project: Project ID or project name + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoints, '[ServiceEndpoint]') + response = self._send(http_method='PUT', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.0-preview.2', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def get_service_endpoint_types(self, type=None, scheme=None): + """GetServiceEndpointTypes. + [Preview API] + :param str type: + :param str scheme: + :rtype: [ServiceEndpointType] + """ + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if scheme is not None: + query_parameters['scheme'] = self._serialize.query('scheme', scheme, 'str') + response = self._send(http_method='GET', + location_id='7c74af83-8605-45c1-a30b-7a05d5d7f8c1', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpointType]', response) + + def create_agent_session(self, session, pool_id): + """CreateAgentSession. + :param :class:` ` session: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(session, 'TaskAgentSession') + response = self._send(http_method='POST', + location_id='134e239e-2df3-4794-a6f6-24f1f19ec8dc', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentSession', response) + + def delete_agent_session(self, pool_id, session_id): + """DeleteAgentSession. + :param int pool_id: + :param str session_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if session_id is not None: + route_values['sessionId'] = self._serialize.url('session_id', session_id, 'str') + self._send(http_method='DELETE', + location_id='134e239e-2df3-4794-a6f6-24f1f19ec8dc', + version='4.0', + route_values=route_values) + + def add_task_group(self, task_group, project): + """AddTaskGroup. + [Preview API] Create a task group. + :param :class:` ` task_group: Task group object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(task_group, 'TaskGroup') + response = self._send(http_method='POST', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskGroup', response) + + def delete_task_group(self, project, task_group_id, comment=None): + """DeleteTaskGroup. + [Preview API] Delete a task group. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group to be deleted. + :param str comment: Comments to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + self._send(http_method='DELETE', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_task_group(self, project, task_group_id, version_spec, expanded=None): + """GetTaskGroup. + [Preview API] + :param str project: Project ID or project name + :param str task_group_id: + :param str version_spec: + :param bool expanded: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if version_spec is not None: + query_parameters['versionSpec'] = self._serialize.query('version_spec', version_spec, 'str') + if expanded is not None: + query_parameters['expanded'] = self._serialize.query('expanded', expanded, 'bool') + response = self._send(http_method='GET', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskGroup', response) + + def get_task_group_revision(self, project, task_group_id, revision): + """GetTaskGroupRevision. + [Preview API] + :param str project: Project ID or project name + :param str task_group_id: + :param int revision: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if revision is not None: + query_parameters['revision'] = self._serialize.query('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_filter=None, deleted=None): + """GetTaskGroups. + [Preview API] Get a list of task groups. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group. + :param bool expanded: 'true' to recursively expand task groups. Default is 'false'. + :param str task_id_filter: Guid of the taskId to filter. + :param bool deleted: 'true'to include deleted task groups. Default is 'false'. + :rtype: [TaskGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if expanded is not None: + query_parameters['expanded'] = self._serialize.query('expanded', expanded, 'bool') + if task_id_filter is not None: + query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') + if deleted is not None: + query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + response = self._send(http_method='GET', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskGroup]', response) + + def publish_preview_task_group(self, task_group, project, task_group_id, disable_prior_versions=None): + """PublishPreviewTaskGroup. + [Preview API] + :param :class:` ` task_group: + :param str project: Project ID or project name + :param str task_group_id: + :param bool disable_prior_versions: + :rtype: [TaskGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if disable_prior_versions is not None: + query_parameters['disablePriorVersions'] = self._serialize.query('disable_prior_versions', disable_prior_versions, 'bool') + content = self._serialize.body(task_group, 'TaskGroup') + response = self._send(http_method='PATCH', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[TaskGroup]', response) + + def publish_task_group(self, task_group_metadata, project, parent_task_group_id): + """PublishTaskGroup. + [Preview API] + :param :class:` ` task_group_metadata: + :param str project: Project ID or project name + :param str parent_task_group_id: + :rtype: [TaskGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if parent_task_group_id is not None: + query_parameters['parentTaskGroupId'] = self._serialize.query('parent_task_group_id', parent_task_group_id, 'str') + content = self._serialize.body(task_group_metadata, 'PublishTaskGroupMetadata') + response = self._send(http_method='PUT', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[TaskGroup]', response) + + def undelete_task_group(self, task_group, project): + """UndeleteTaskGroup. + [Preview API] + :param :class:` ` task_group: + :param str project: Project ID or project name + :rtype: [TaskGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(task_group, 'TaskGroup') + response = self._send(http_method='PATCH', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TaskGroup]', response) + + def update_task_group(self, task_group, project): + """UpdateTaskGroup. + [Preview API] Update a task group. + :param :class:` ` task_group: Task group to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(task_group, 'TaskGroup') + response = self._send(http_method='PUT', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskGroup', response) + + def delete_task_definition(self, task_id): + """DeleteTaskDefinition. + :param str task_id: + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + self._send(http_method='DELETE', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.0', + route_values=route_values) + + def get_task_content_zip(self, task_id, version_string, visibility=None, scope_local=None): + """GetTaskContentZip. + :param str task_id: + :param str version_string: + :param [str] visibility: + :param bool scope_local: + :rtype: object + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + if version_string is not None: + route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') + query_parameters = {} + if visibility is not None: + query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') + if scope_local is not None: + query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') + response = self._send(http_method='GET', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_task_definition(self, task_id, version_string, visibility=None, scope_local=None): + """GetTaskDefinition. + :param str task_id: + :param str version_string: + :param [str] visibility: + :param bool scope_local: + :rtype: :class:` ` + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + if version_string is not None: + route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') + query_parameters = {} + if visibility is not None: + query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') + if scope_local is not None: + query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') + response = self._send(http_method='GET', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskDefinition', response) + + def get_task_definitions(self, task_id=None, visibility=None, scope_local=None): + """GetTaskDefinitions. + :param str task_id: + :param [str] visibility: + :param bool scope_local: + :rtype: [TaskDefinition] + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + query_parameters = {} + if visibility is not None: + query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') + if scope_local is not None: + query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') + response = self._send(http_method='GET', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskDefinition]', response) + + def update_agent_update_state(self, pool_id, agent_id, current_state): + """UpdateAgentUpdateState. + [Preview API] + :param int pool_id: + :param int agent_id: + :param str current_state: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + query_parameters = {} + if current_state is not None: + query_parameters['currentState'] = self._serialize.query('current_state', current_state, 'str') + response = self._send(http_method='PUT', + location_id='8cc1b02b-ae49-4516-b5ad-4f9b29967c30', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgent', response) + + def update_agent_user_capabilities(self, user_capabilities, pool_id, agent_id): + """UpdateAgentUserCapabilities. + :param {str} user_capabilities: + :param int pool_id: + :param int agent_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + content = self._serialize.body(user_capabilities, '{str}') + response = self._send(http_method='PUT', + location_id='30ba3ada-fedf-4da8-bbb5-dacf2f82e176', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def add_variable_group(self, group, project): + """AddVariableGroup. + [Preview API] + :param :class:` ` group: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(group, 'VariableGroup') + response = self._send(http_method='POST', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('VariableGroup', response) + + def delete_variable_group(self, project, group_id): + """DeleteVariableGroup. + [Preview API] + :param str project: Project ID or project name + :param int group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + self._send(http_method='DELETE', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.0-preview.1', + route_values=route_values) + + def get_variable_group(self, project, group_id): + """GetVariableGroup. + [Preview API] + :param str project: Project ID or project name + :param int group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('VariableGroup', response) + + def get_variable_groups(self, project, group_name=None, action_filter=None): + """GetVariableGroups. + [Preview API] + :param str project: Project ID or project name + :param str group_name: + :param str action_filter: + :rtype: [VariableGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if group_name is not None: + query_parameters['groupName'] = self._serialize.query('group_name', group_name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[VariableGroup]', response) + + def get_variable_groups_by_id(self, project, group_ids): + """GetVariableGroupsById. + [Preview API] + :param str project: Project ID or project name + :param [int] group_ids: + :rtype: [VariableGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if group_ids is not None: + group_ids = ",".join(map(str, group_ids)) + query_parameters['groupIds'] = self._serialize.query('group_ids', group_ids, 'str') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[VariableGroup]', response) + + def update_variable_group(self, group, project, group_id): + """UpdateVariableGroup. + [Preview API] + :param :class:` ` group: + :param str project: Project ID or project name + :param int group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + content = self._serialize.body(group, 'VariableGroup') + response = self._send(http_method='PUT', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('VariableGroup', response) + + def acquire_access_token(self, authentication_request): + """AcquireAccessToken. + [Preview API] + :param :class:` ` authentication_request: + :rtype: :class:` ` + """ + content = self._serialize.body(authentication_request, 'AadOauthTokenRequest') + response = self._send(http_method='POST', + location_id='9c63205e-3a0f-42a0-ad88-095200f13607', + version='4.0-preview.1', + content=content) + return self._deserialize('AadOauthTokenResult', response) + + def create_aad_oAuth_request(self, tenant_id, redirect_uri, prompt_option=None, complete_callback_payload=None): + """CreateAadOAuthRequest. + [Preview API] + :param str tenant_id: + :param str redirect_uri: + :param str prompt_option: + :param str complete_callback_payload: + :rtype: str + """ + query_parameters = {} + if tenant_id is not None: + query_parameters['tenantId'] = self._serialize.query('tenant_id', tenant_id, 'str') + if redirect_uri is not None: + query_parameters['redirectUri'] = self._serialize.query('redirect_uri', redirect_uri, 'str') + if prompt_option is not None: + query_parameters['promptOption'] = self._serialize.query('prompt_option', prompt_option, 'str') + if complete_callback_payload is not None: + query_parameters['completeCallbackPayload'] = self._serialize.query('complete_callback_payload', complete_callback_payload, 'str') + response = self._send(http_method='POST', + location_id='9c63205e-3a0f-42a0-ad88-095200f13607', + version='4.0-preview.1', + query_parameters=query_parameters) + return self._deserialize('str', response) + + def get_vsts_aad_tenant_id(self): + """GetVstsAadTenantId. + [Preview API] + :rtype: str + """ + response = self._send(http_method='GET', + location_id='9c63205e-3a0f-42a0-ad88-095200f13607', + version='4.0-preview.1') + return self._deserialize('str', response) + diff --git a/vsts/vsts/test/__init__.py b/vsts/vsts/test/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/test/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/test/v4_0/__init__.py b/vsts/vsts/test/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/test/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/test/v4_0/models/__init__.py b/vsts/vsts/test/v4_0/models/__init__.py new file mode 100644 index 00000000..2dacf2e7 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/__init__.py @@ -0,0 +1,197 @@ +# -------------------------------------------------------------------------------------------- +# 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 .aggregated_data_for_result_trend import AggregatedDataForResultTrend +from .aggregated_results_analysis import AggregatedResultsAnalysis +from .aggregated_results_by_outcome import AggregatedResultsByOutcome +from .aggregated_results_difference import AggregatedResultsDifference +from .build_configuration import BuildConfiguration +from .build_coverage import BuildCoverage +from .build_reference import BuildReference +from .clone_operation_information import CloneOperationInformation +from .clone_options import CloneOptions +from .clone_statistics import CloneStatistics +from .code_coverage_data import CodeCoverageData +from .code_coverage_statistics import CodeCoverageStatistics +from .code_coverage_summary import CodeCoverageSummary +from .coverage_statistics import CoverageStatistics +from .custom_test_field import CustomTestField +from .custom_test_field_definition import CustomTestFieldDefinition +from .dtl_environment_details import DtlEnvironmentDetails +from .failing_since import FailingSince +from .function_coverage import FunctionCoverage +from .identity_ref import IdentityRef +from .last_result_details import LastResultDetails +from .linked_work_items_query import LinkedWorkItemsQuery +from .linked_work_items_query_result import LinkedWorkItemsQueryResult +from .module_coverage import ModuleCoverage +from .name_value_pair import NameValuePair +from .plan_update_model import PlanUpdateModel +from .point_assignment import PointAssignment +from .points_filter import PointsFilter +from .point_update_model import PointUpdateModel +from .property_bag import PropertyBag +from .query_model import QueryModel +from .release_environment_definition_reference import ReleaseEnvironmentDefinitionReference +from .release_reference import ReleaseReference +from .result_retention_settings import ResultRetentionSettings +from .results_filter import ResultsFilter +from .run_create_model import RunCreateModel +from .run_filter import RunFilter +from .run_statistic import RunStatistic +from .run_update_model import RunUpdateModel +from .shallow_reference import ShallowReference +from .shared_step_model import SharedStepModel +from .suite_create_model import SuiteCreateModel +from .suite_entry import SuiteEntry +from .suite_entry_update_model import SuiteEntryUpdateModel +from .suite_test_case import SuiteTestCase +from .team_context import TeamContext +from .team_project_reference import TeamProjectReference +from .test_action_result_model import TestActionResultModel +from .test_attachment import TestAttachment +from .test_attachment_reference import TestAttachmentReference +from .test_attachment_request_model import TestAttachmentRequestModel +from .test_case_result import TestCaseResult +from .test_case_result_attachment_model import TestCaseResultAttachmentModel +from .test_case_result_identifier import TestCaseResultIdentifier +from .test_case_result_update_model import TestCaseResultUpdateModel +from .test_configuration import TestConfiguration +from .test_environment import TestEnvironment +from .test_failure_details import TestFailureDetails +from .test_failures_analysis import TestFailuresAnalysis +from .test_iteration_details_model import TestIterationDetailsModel +from .test_message_log_details import TestMessageLogDetails +from .test_method import TestMethod +from .test_operation_reference import TestOperationReference +from .test_plan import TestPlan +from .test_plan_clone_request import TestPlanCloneRequest +from .test_point import TestPoint +from .test_points_query import TestPointsQuery +from .test_resolution_state import TestResolutionState +from .test_result_create_model import TestResultCreateModel +from .test_result_document import TestResultDocument +from .test_result_history import TestResultHistory +from .test_result_history_details_for_group import TestResultHistoryDetailsForGroup +from .test_result_model_base import TestResultModelBase +from .test_result_parameter_model import TestResultParameterModel +from .test_result_payload import TestResultPayload +from .test_results_context import TestResultsContext +from .test_results_details import TestResultsDetails +from .test_results_details_for_group import TestResultsDetailsForGroup +from .test_results_query import TestResultsQuery +from .test_result_summary import TestResultSummary +from .test_result_trend_filter import TestResultTrendFilter +from .test_run import TestRun +from .test_run_coverage import TestRunCoverage +from .test_run_statistic import TestRunStatistic +from .test_session import TestSession +from .test_settings import TestSettings +from .test_suite import TestSuite +from .test_suite_clone_request import TestSuiteCloneRequest +from .test_summary_for_work_item import TestSummaryForWorkItem +from .test_to_work_item_links import TestToWorkItemLinks +from .test_variable import TestVariable +from .work_item_reference import WorkItemReference +from .work_item_to_test_links import WorkItemToTestLinks + +__all__ = [ + 'AggregatedDataForResultTrend', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'BuildConfiguration', + 'BuildCoverage', + 'BuildReference', + 'CloneOperationInformation', + 'CloneOptions', + 'CloneStatistics', + 'CodeCoverageData', + 'CodeCoverageStatistics', + 'CodeCoverageSummary', + 'CoverageStatistics', + 'CustomTestField', + 'CustomTestFieldDefinition', + 'DtlEnvironmentDetails', + 'FailingSince', + 'FunctionCoverage', + 'IdentityRef', + 'LastResultDetails', + 'LinkedWorkItemsQuery', + 'LinkedWorkItemsQueryResult', + 'ModuleCoverage', + 'NameValuePair', + 'PlanUpdateModel', + 'PointAssignment', + 'PointsFilter', + 'PointUpdateModel', + 'PropertyBag', + 'QueryModel', + 'ReleaseEnvironmentDefinitionReference', + 'ReleaseReference', + 'ResultRetentionSettings', + 'ResultsFilter', + 'RunCreateModel', + 'RunFilter', + 'RunStatistic', + 'RunUpdateModel', + 'ShallowReference', + 'SharedStepModel', + 'SuiteCreateModel', + 'SuiteEntry', + 'SuiteEntryUpdateModel', + 'SuiteTestCase', + 'TeamContext', + 'TeamProjectReference', + 'TestActionResultModel', + 'TestAttachment', + 'TestAttachmentReference', + 'TestAttachmentRequestModel', + 'TestCaseResult', + 'TestCaseResultAttachmentModel', + 'TestCaseResultIdentifier', + 'TestCaseResultUpdateModel', + 'TestConfiguration', + 'TestEnvironment', + 'TestFailureDetails', + 'TestFailuresAnalysis', + 'TestIterationDetailsModel', + 'TestMessageLogDetails', + 'TestMethod', + 'TestOperationReference', + 'TestPlan', + 'TestPlanCloneRequest', + 'TestPoint', + 'TestPointsQuery', + 'TestResolutionState', + 'TestResultCreateModel', + 'TestResultDocument', + 'TestResultHistory', + 'TestResultHistoryDetailsForGroup', + 'TestResultModelBase', + 'TestResultParameterModel', + 'TestResultPayload', + 'TestResultsContext', + 'TestResultsDetails', + 'TestResultsDetailsForGroup', + 'TestResultsQuery', + 'TestResultSummary', + 'TestResultTrendFilter', + 'TestRun', + 'TestRunCoverage', + 'TestRunStatistic', + 'TestSession', + 'TestSettings', + 'TestSuite', + 'TestSuiteCloneRequest', + 'TestSummaryForWorkItem', + 'TestToWorkItemLinks', + 'TestVariable', + 'WorkItemReference', + 'WorkItemToTestLinks', +] diff --git a/vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py b/vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py new file mode 100644 index 00000000..00c3e706 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedDataForResultTrend(Model): + """AggregatedDataForResultTrend. + + :param duration: This is tests execution duration. + :type duration: object + :param results_by_outcome: + :type results_by_outcome: dict + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, results_by_outcome=None, test_results_context=None, total_tests=None): + super(AggregatedDataForResultTrend, self).__init__() + self.duration = duration + self.results_by_outcome = results_by_outcome + self.test_results_context = test_results_context + self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_0/models/aggregated_results_analysis.py b/vsts/vsts/test/v4_0/models/aggregated_results_analysis.py new file mode 100644 index 00000000..c1dfdb1c --- /dev/null +++ b/vsts/vsts/test/v4_0/models/aggregated_results_analysis.py @@ -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.serialization import Model + + +class AggregatedResultsAnalysis(Model): + """AggregatedResultsAnalysis. + + :param duration: + :type duration: object + :param not_reported_results_by_outcome: + :type not_reported_results_by_outcome: dict + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + :param results_by_outcome: + :type results_by_outcome: dict + :param results_difference: + :type results_difference: :class:`AggregatedResultsDifference ` + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, total_tests=None): + super(AggregatedResultsAnalysis, self).__init__() + self.duration = duration + self.not_reported_results_by_outcome = not_reported_results_by_outcome + self.previous_context = previous_context + self.results_by_outcome = results_by_outcome + self.results_difference = results_difference + self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py b/vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py new file mode 100644 index 00000000..609f8dc2 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedResultsByOutcome(Model): + """AggregatedResultsByOutcome. + + :param count: + :type count: int + :param duration: + :type duration: object + :param group_by_field: + :type group_by_field: str + :param group_by_value: + :type group_by_value: object + :param outcome: + :type outcome: object + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'object'}, + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'outcome': {'key': 'outcome', 'type': 'object'} + } + + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None): + super(AggregatedResultsByOutcome, self).__init__() + self.count = count + self.duration = duration + self.group_by_field = group_by_field + self.group_by_value = group_by_value + self.outcome = outcome diff --git a/vsts/vsts/test/v4_0/models/aggregated_results_difference.py b/vsts/vsts/test/v4_0/models/aggregated_results_difference.py new file mode 100644 index 00000000..5bc4af42 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/aggregated_results_difference.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedResultsDifference(Model): + """AggregatedResultsDifference. + + :param increase_in_duration: + :type increase_in_duration: object + :param increase_in_failures: + :type increase_in_failures: int + :param increase_in_other_tests: + :type increase_in_other_tests: int + :param increase_in_passed_tests: + :type increase_in_passed_tests: int + :param increase_in_total_tests: + :type increase_in_total_tests: int + """ + + _attribute_map = { + 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, + 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, + 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, + 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, + 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} + } + + def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): + super(AggregatedResultsDifference, self).__init__() + self.increase_in_duration = increase_in_duration + self.increase_in_failures = increase_in_failures + self.increase_in_other_tests = increase_in_other_tests + self.increase_in_passed_tests = increase_in_passed_tests + self.increase_in_total_tests = increase_in_total_tests diff --git a/vsts/vsts/test/v4_0/models/build_configuration.py b/vsts/vsts/test/v4_0/models/build_configuration.py new file mode 100644 index 00000000..59498af4 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/build_configuration.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BuildConfiguration(Model): + """BuildConfiguration. + + :param branch_name: + :type branch_name: str + :param build_definition_id: + :type build_definition_id: int + :param flavor: + :type flavor: str + :param id: + :type id: int + :param number: + :type number: str + :param platform: + :type platform: str + :param project: + :type project: :class:`ShallowReference ` + :param repository_id: + :type repository_id: int + :param source_version: + :type source_version: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'flavor': {'key': 'flavor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'repository_id': {'key': 'repositoryId', 'type': 'int'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): + super(BuildConfiguration, self).__init__() + self.branch_name = branch_name + self.build_definition_id = build_definition_id + self.flavor = flavor + self.id = id + self.number = number + self.platform = platform + self.project = project + self.repository_id = repository_id + self.source_version = source_version + self.uri = uri diff --git a/vsts/vsts/test/v4_0/models/build_coverage.py b/vsts/vsts/test/v4_0/models/build_coverage.py new file mode 100644 index 00000000..350643c8 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/build_coverage.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BuildCoverage(Model): + """BuildCoverage. + + :param code_coverage_file_url: + :type code_coverage_file_url: str + :param configuration: + :type configuration: :class:`BuildConfiguration ` + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + """ + + _attribute_map = { + 'code_coverage_file_url': {'key': 'codeCoverageFileUrl', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'BuildConfiguration'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, code_coverage_file_url=None, configuration=None, last_error=None, modules=None, state=None): + super(BuildCoverage, self).__init__() + self.code_coverage_file_url = code_coverage_file_url + self.configuration = configuration + self.last_error = last_error + self.modules = modules + self.state = state diff --git a/vsts/vsts/test/v4_0/models/build_reference.py b/vsts/vsts/test/v4_0/models/build_reference.py new file mode 100644 index 00000000..0abda1e9 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/build_reference.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BuildReference(Model): + """BuildReference. + + :param branch_name: + :type branch_name: str + :param build_system: + :type build_system: str + :param definition_id: + :type definition_id: int + :param id: + :type id: int + :param number: + :type number: str + :param repository_id: + :type repository_id: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_system': {'key': 'buildSystem', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_system=None, definition_id=None, id=None, number=None, repository_id=None, uri=None): + super(BuildReference, self).__init__() + self.branch_name = branch_name + self.build_system = build_system + self.definition_id = definition_id + self.id = id + self.number = number + self.repository_id = repository_id + self.uri = uri diff --git a/vsts/vsts/test/v4_0/models/clone_operation_information.py b/vsts/vsts/test/v4_0/models/clone_operation_information.py new file mode 100644 index 00000000..5852d43f --- /dev/null +++ b/vsts/vsts/test/v4_0/models/clone_operation_information.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CloneOperationInformation(Model): + """CloneOperationInformation. + + :param clone_statistics: + :type clone_statistics: :class:`CloneStatistics ` + :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue + :type completion_date: datetime + :param creation_date: DateTime when the operation was started + :type creation_date: datetime + :param destination_object: Shallow reference of the destination + :type destination_object: :class:`ShallowReference ` + :param destination_plan: Shallow reference of the destination + :type destination_plan: :class:`ShallowReference ` + :param destination_project: Shallow reference of the destination + :type destination_project: :class:`ShallowReference ` + :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. + :type message: str + :param op_id: The ID of the operation + :type op_id: int + :param result_object_type: The type of the object generated as a result of the Clone operation + :type result_object_type: object + :param source_object: Shallow reference of the source + :type source_object: :class:`ShallowReference ` + :param source_plan: Shallow reference of the source + :type source_plan: :class:`ShallowReference ` + :param source_project: Shallow reference of the source + :type source_project: :class:`ShallowReference ` + :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete + :type state: object + :param url: Url for geting the clone information + :type url: str + """ + + _attribute_map = { + 'clone_statistics': {'key': 'cloneStatistics', 'type': 'CloneStatistics'}, + 'completion_date': {'key': 'completionDate', 'type': 'iso-8601'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'destination_object': {'key': 'destinationObject', 'type': 'ShallowReference'}, + 'destination_plan': {'key': 'destinationPlan', 'type': 'ShallowReference'}, + 'destination_project': {'key': 'destinationProject', 'type': 'ShallowReference'}, + 'message': {'key': 'message', 'type': 'str'}, + 'op_id': {'key': 'opId', 'type': 'int'}, + 'result_object_type': {'key': 'resultObjectType', 'type': 'object'}, + 'source_object': {'key': 'sourceObject', 'type': 'ShallowReference'}, + 'source_plan': {'key': 'sourcePlan', 'type': 'ShallowReference'}, + 'source_project': {'key': 'sourceProject', 'type': 'ShallowReference'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, clone_statistics=None, completion_date=None, creation_date=None, destination_object=None, destination_plan=None, destination_project=None, message=None, op_id=None, result_object_type=None, source_object=None, source_plan=None, source_project=None, state=None, url=None): + super(CloneOperationInformation, self).__init__() + self.clone_statistics = clone_statistics + self.completion_date = completion_date + self.creation_date = creation_date + self.destination_object = destination_object + self.destination_plan = destination_plan + self.destination_project = destination_project + self.message = message + self.op_id = op_id + self.result_object_type = result_object_type + self.source_object = source_object + self.source_plan = source_plan + self.source_project = source_project + self.state = state + self.url = url diff --git a/vsts/vsts/test/v4_0/models/clone_options.py b/vsts/vsts/test/v4_0/models/clone_options.py new file mode 100644 index 00000000..f048c1c9 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/clone_options.py @@ -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.serialization import Model + + +class CloneOptions(Model): + """CloneOptions. + + :param clone_requirements: If set to true requirements will be cloned + :type clone_requirements: bool + :param copy_all_suites: copy all suites from a source plan + :type copy_all_suites: bool + :param copy_ancestor_hierarchy: copy ancestor hieracrchy + :type copy_ancestor_hierarchy: bool + :param destination_work_item_type: Name of the workitem type of the clone + :type destination_work_item_type: str + :param override_parameters: Key value pairs where the key value is overridden by the value. + :type override_parameters: dict + :param related_link_comment: Comment on the link that will link the new clone test case to the original Set null for no comment + :type related_link_comment: str + """ + + _attribute_map = { + 'clone_requirements': {'key': 'cloneRequirements', 'type': 'bool'}, + 'copy_all_suites': {'key': 'copyAllSuites', 'type': 'bool'}, + 'copy_ancestor_hierarchy': {'key': 'copyAncestorHierarchy', 'type': 'bool'}, + 'destination_work_item_type': {'key': 'destinationWorkItemType', 'type': 'str'}, + 'override_parameters': {'key': 'overrideParameters', 'type': '{str}'}, + 'related_link_comment': {'key': 'relatedLinkComment', 'type': 'str'} + } + + def __init__(self, clone_requirements=None, copy_all_suites=None, copy_ancestor_hierarchy=None, destination_work_item_type=None, override_parameters=None, related_link_comment=None): + super(CloneOptions, self).__init__() + self.clone_requirements = clone_requirements + self.copy_all_suites = copy_all_suites + self.copy_ancestor_hierarchy = copy_ancestor_hierarchy + self.destination_work_item_type = destination_work_item_type + self.override_parameters = override_parameters + self.related_link_comment = related_link_comment diff --git a/vsts/vsts/test/v4_0/models/clone_statistics.py b/vsts/vsts/test/v4_0/models/clone_statistics.py new file mode 100644 index 00000000..f3ba75a3 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/clone_statistics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CloneStatistics(Model): + """CloneStatistics. + + :param cloned_requirements_count: Number of Requirments cloned so far. + :type cloned_requirements_count: int + :param cloned_shared_steps_count: Number of shared steps cloned so far. + :type cloned_shared_steps_count: int + :param cloned_test_cases_count: Number of test cases cloned so far + :type cloned_test_cases_count: int + :param total_requirements_count: Total number of requirements to be cloned + :type total_requirements_count: int + :param total_test_cases_count: Total number of test cases to be cloned + :type total_test_cases_count: int + """ + + _attribute_map = { + 'cloned_requirements_count': {'key': 'clonedRequirementsCount', 'type': 'int'}, + 'cloned_shared_steps_count': {'key': 'clonedSharedStepsCount', 'type': 'int'}, + 'cloned_test_cases_count': {'key': 'clonedTestCasesCount', 'type': 'int'}, + 'total_requirements_count': {'key': 'totalRequirementsCount', 'type': 'int'}, + 'total_test_cases_count': {'key': 'totalTestCasesCount', 'type': 'int'} + } + + def __init__(self, cloned_requirements_count=None, cloned_shared_steps_count=None, cloned_test_cases_count=None, total_requirements_count=None, total_test_cases_count=None): + super(CloneStatistics, self).__init__() + self.cloned_requirements_count = cloned_requirements_count + self.cloned_shared_steps_count = cloned_shared_steps_count + self.cloned_test_cases_count = cloned_test_cases_count + self.total_requirements_count = total_requirements_count + self.total_test_cases_count = total_test_cases_count diff --git a/vsts/vsts/test/v4_0/models/code_coverage_data.py b/vsts/vsts/test/v4_0/models/code_coverage_data.py new file mode 100644 index 00000000..9bd2578b --- /dev/null +++ b/vsts/vsts/test/v4_0/models/code_coverage_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeCoverageData(Model): + """CodeCoverageData. + + :param build_flavor: Flavor of build for which data is retrieved/published + :type build_flavor: str + :param build_platform: Platform of build for which data is retrieved/published + :type build_platform: str + :param coverage_stats: List of coverage data for the build + :type coverage_stats: list of :class:`CodeCoverageStatistics ` + """ + + _attribute_map = { + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'coverage_stats': {'key': 'coverageStats', 'type': '[CodeCoverageStatistics]'} + } + + def __init__(self, build_flavor=None, build_platform=None, coverage_stats=None): + super(CodeCoverageData, self).__init__() + self.build_flavor = build_flavor + self.build_platform = build_platform + self.coverage_stats = coverage_stats diff --git a/vsts/vsts/test/v4_0/models/code_coverage_statistics.py b/vsts/vsts/test/v4_0/models/code_coverage_statistics.py new file mode 100644 index 00000000..aebd12a1 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/code_coverage_statistics.py @@ -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.serialization import Model + + +class CodeCoverageStatistics(Model): + """CodeCoverageStatistics. + + :param covered: Covered units + :type covered: int + :param delta: Delta of coverage + :type delta: number + :param is_delta_available: Is delta valid + :type is_delta_available: bool + :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) + :type label: str + :param position: Position of label + :type position: int + :param total: Total units + :type total: int + """ + + _attribute_map = { + 'covered': {'key': 'covered', 'type': 'int'}, + 'delta': {'key': 'delta', 'type': 'number'}, + 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'} + } + + def __init__(self, covered=None, delta=None, is_delta_available=None, label=None, position=None, total=None): + super(CodeCoverageStatistics, self).__init__() + self.covered = covered + self.delta = delta + self.is_delta_available = is_delta_available + self.label = label + self.position = position + self.total = total diff --git a/vsts/vsts/test/v4_0/models/code_coverage_summary.py b/vsts/vsts/test/v4_0/models/code_coverage_summary.py new file mode 100644 index 00000000..4e4a1cf4 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/code_coverage_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeCoverageSummary(Model): + """CodeCoverageSummary. + + :param build: Uri of build for which data is retrieved/published + :type build: :class:`ShallowReference ` + :param coverage_data: List of coverage data and details for the build + :type coverage_data: list of :class:`CodeCoverageData ` + :param delta_build: Uri of build against which difference in coverage is computed + :type delta_build: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'coverage_data': {'key': 'coverageData', 'type': '[CodeCoverageData]'}, + 'delta_build': {'key': 'deltaBuild', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, coverage_data=None, delta_build=None): + super(CodeCoverageSummary, self).__init__() + self.build = build + self.coverage_data = coverage_data + self.delta_build = delta_build diff --git a/vsts/vsts/test/v4_0/models/coverage_statistics.py b/vsts/vsts/test/v4_0/models/coverage_statistics.py new file mode 100644 index 00000000..7b7704db --- /dev/null +++ b/vsts/vsts/test/v4_0/models/coverage_statistics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CoverageStatistics(Model): + """CoverageStatistics. + + :param blocks_covered: + :type blocks_covered: int + :param blocks_not_covered: + :type blocks_not_covered: int + :param lines_covered: + :type lines_covered: int + :param lines_not_covered: + :type lines_not_covered: int + :param lines_partially_covered: + :type lines_partially_covered: int + """ + + _attribute_map = { + 'blocks_covered': {'key': 'blocksCovered', 'type': 'int'}, + 'blocks_not_covered': {'key': 'blocksNotCovered', 'type': 'int'}, + 'lines_covered': {'key': 'linesCovered', 'type': 'int'}, + 'lines_not_covered': {'key': 'linesNotCovered', 'type': 'int'}, + 'lines_partially_covered': {'key': 'linesPartiallyCovered', 'type': 'int'} + } + + def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=None, lines_not_covered=None, lines_partially_covered=None): + super(CoverageStatistics, self).__init__() + self.blocks_covered = blocks_covered + self.blocks_not_covered = blocks_not_covered + self.lines_covered = lines_covered + self.lines_not_covered = lines_not_covered + self.lines_partially_covered = lines_partially_covered diff --git a/vsts/vsts/test/v4_0/models/custom_test_field.py b/vsts/vsts/test/v4_0/models/custom_test_field.py new file mode 100644 index 00000000..80ba7cf1 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/custom_test_field.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CustomTestField(Model): + """CustomTestField. + + :param field_name: + :type field_name: str + :param value: + :type value: object + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, field_name=None, value=None): + super(CustomTestField, self).__init__() + self.field_name = field_name + self.value = value diff --git a/vsts/vsts/test/v4_0/models/custom_test_field_definition.py b/vsts/vsts/test/v4_0/models/custom_test_field_definition.py new file mode 100644 index 00000000..bbb7e2a4 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/custom_test_field_definition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CustomTestFieldDefinition(Model): + """CustomTestFieldDefinition. + + :param field_id: + :type field_id: int + :param field_name: + :type field_name: str + :param field_type: + :type field_type: object + :param scope: + :type scope: object + """ + + _attribute_map = { + 'field_id': {'key': 'fieldId', 'type': 'int'}, + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'field_type': {'key': 'fieldType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'object'} + } + + def __init__(self, field_id=None, field_name=None, field_type=None, scope=None): + super(CustomTestFieldDefinition, self).__init__() + self.field_id = field_id + self.field_name = field_name + self.field_type = field_type + self.scope = scope diff --git a/vsts/vsts/test/v4_0/models/dtl_environment_details.py b/vsts/vsts/test/v4_0/models/dtl_environment_details.py new file mode 100644 index 00000000..25bebb48 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/dtl_environment_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DtlEnvironmentDetails(Model): + """DtlEnvironmentDetails. + + :param csm_content: + :type csm_content: str + :param csm_parameters: + :type csm_parameters: str + :param subscription_name: + :type subscription_name: str + """ + + _attribute_map = { + 'csm_content': {'key': 'csmContent', 'type': 'str'}, + 'csm_parameters': {'key': 'csmParameters', 'type': 'str'}, + 'subscription_name': {'key': 'subscriptionName', 'type': 'str'} + } + + def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None): + super(DtlEnvironmentDetails, self).__init__() + self.csm_content = csm_content + self.csm_parameters = csm_parameters + self.subscription_name = subscription_name diff --git a/vsts/vsts/test/v4_0/models/failing_since.py b/vsts/vsts/test/v4_0/models/failing_since.py new file mode 100644 index 00000000..5c5a348f --- /dev/null +++ b/vsts/vsts/test/v4_0/models/failing_since.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FailingSince(Model): + """FailingSince. + + :param build: + :type build: :class:`BuildReference ` + :param date: + :type date: datetime + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, date=None, release=None): + super(FailingSince, self).__init__() + self.build = build + self.date = date + self.release = release diff --git a/vsts/vsts/test/v4_0/models/function_coverage.py b/vsts/vsts/test/v4_0/models/function_coverage.py new file mode 100644 index 00000000..6fcc8d0a --- /dev/null +++ b/vsts/vsts/test/v4_0/models/function_coverage.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FunctionCoverage(Model): + """FunctionCoverage. + + :param class_: + :type class_: str + :param name: + :type name: str + :param namespace: + :type namespace: str + :param source_file: + :type source_file: str + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'source_file': {'key': 'sourceFile', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, class_=None, name=None, namespace=None, source_file=None, statistics=None): + super(FunctionCoverage, self).__init__() + self.class_ = class_ + self.name = name + self.namespace = namespace + self.source_file = source_file + self.statistics = statistics diff --git a/vsts/vsts/test/v4_0/models/identity_ref.py b/vsts/vsts/test/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/test/v4_0/models/last_result_details.py b/vsts/vsts/test/v4_0/models/last_result_details.py new file mode 100644 index 00000000..688561f1 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/last_result_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LastResultDetails(Model): + """LastResultDetails. + + :param date_completed: + :type date_completed: datetime + :param duration: + :type duration: long + :param run_by: + :type run_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date_completed': {'key': 'dateCompleted', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'long'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'} + } + + def __init__(self, date_completed=None, duration=None, run_by=None): + super(LastResultDetails, self).__init__() + self.date_completed = date_completed + self.duration = duration + self.run_by = run_by diff --git a/vsts/vsts/test/v4_0/models/linked_work_items_query.py b/vsts/vsts/test/v4_0/models/linked_work_items_query.py new file mode 100644 index 00000000..a9d0c50e --- /dev/null +++ b/vsts/vsts/test/v4_0/models/linked_work_items_query.py @@ -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.serialization import Model + + +class LinkedWorkItemsQuery(Model): + """LinkedWorkItemsQuery. + + :param automated_test_names: + :type automated_test_names: list of str + :param plan_id: + :type plan_id: int + :param point_ids: + :type point_ids: list of int + :param suite_ids: + :type suite_ids: list of int + :param test_case_ids: + :type test_case_ids: list of int + :param work_item_category: + :type work_item_category: str + """ + + _attribute_map = { + 'automated_test_names': {'key': 'automatedTestNames', 'type': '[str]'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'}, + 'test_case_ids': {'key': 'testCaseIds', 'type': '[int]'}, + 'work_item_category': {'key': 'workItemCategory', 'type': 'str'} + } + + def __init__(self, automated_test_names=None, plan_id=None, point_ids=None, suite_ids=None, test_case_ids=None, work_item_category=None): + super(LinkedWorkItemsQuery, self).__init__() + self.automated_test_names = automated_test_names + self.plan_id = plan_id + self.point_ids = point_ids + self.suite_ids = suite_ids + self.test_case_ids = test_case_ids + self.work_item_category = work_item_category diff --git a/vsts/vsts/test/v4_0/models/linked_work_items_query_result.py b/vsts/vsts/test/v4_0/models/linked_work_items_query_result.py new file mode 100644 index 00000000..77e64896 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/linked_work_items_query_result.py @@ -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.serialization import Model + + +class LinkedWorkItemsQueryResult(Model): + """LinkedWorkItemsQueryResult. + + :param automated_test_name: + :type automated_test_name: str + :param plan_id: + :type plan_id: int + :param point_id: + :type point_id: int + :param suite_id: + :type suite_id: int + :param test_case_id: + :type test_case_id: int + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_id': {'key': 'pointId', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, automated_test_name=None, plan_id=None, point_id=None, suite_id=None, test_case_id=None, work_items=None): + super(LinkedWorkItemsQueryResult, self).__init__() + self.automated_test_name = automated_test_name + self.plan_id = plan_id + self.point_id = point_id + self.suite_id = suite_id + self.test_case_id = test_case_id + self.work_items = work_items diff --git a/vsts/vsts/test/v4_0/models/module_coverage.py b/vsts/vsts/test/v4_0/models/module_coverage.py new file mode 100644 index 00000000..7ec9ed21 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/module_coverage.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ModuleCoverage(Model): + """ModuleCoverage. + + :param block_count: + :type block_count: int + :param block_data: + :type block_data: list of number + :param functions: + :type functions: list of :class:`FunctionCoverage ` + :param name: + :type name: str + :param signature: + :type signature: str + :param signature_age: + :type signature_age: int + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'block_count': {'key': 'blockCount', 'type': 'int'}, + 'block_data': {'key': 'blockData', 'type': '[number]'}, + 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'signature_age': {'key': 'signatureAge', 'type': 'int'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): + super(ModuleCoverage, self).__init__() + self.block_count = block_count + self.block_data = block_data + self.functions = functions + self.name = name + self.signature = signature + self.signature_age = signature_age + self.statistics = statistics diff --git a/vsts/vsts/test/v4_0/models/name_value_pair.py b/vsts/vsts/test/v4_0/models/name_value_pair.py new file mode 100644 index 00000000..0c71209a --- /dev/null +++ b/vsts/vsts/test/v4_0/models/name_value_pair.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NameValuePair(Model): + """NameValuePair. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(NameValuePair, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/test/v4_0/models/plan_update_model.py b/vsts/vsts/test/v4_0/models/plan_update_model.py new file mode 100644 index 00000000..ce3f6232 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/plan_update_model.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PlanUpdateModel(Model): + """PlanUpdateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param configuration_ids: + :type configuration_ids: list of int + :param description: + :type description: str + :param end_date: + :type end_date: str + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param start_date: + :type start_date: str + :param state: + :type state: str + :param status: + :type status: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): + super(PlanUpdateModel, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.configuration_ids = configuration_ids + self.description = description + self.end_date = end_date + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.release_environment_definition = release_environment_definition + self.start_date = start_date + self.state = state + self.status = status diff --git a/vsts/vsts/test/v4_0/models/point_assignment.py b/vsts/vsts/test/v4_0/models/point_assignment.py new file mode 100644 index 00000000..ca5da1bd --- /dev/null +++ b/vsts/vsts/test/v4_0/models/point_assignment.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PointAssignment(Model): + """PointAssignment. + + :param configuration: + :type configuration: :class:`ShallowReference ` + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, configuration=None, tester=None): + super(PointAssignment, self).__init__() + self.configuration = configuration + self.tester = tester diff --git a/vsts/vsts/test/v4_0/models/point_update_model.py b/vsts/vsts/test/v4_0/models/point_update_model.py new file mode 100644 index 00000000..d2960aaf --- /dev/null +++ b/vsts/vsts/test/v4_0/models/point_update_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PointUpdateModel(Model): + """PointUpdateModel. + + :param outcome: + :type outcome: str + :param reset_to_active: + :type reset_to_active: bool + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'reset_to_active': {'key': 'resetToActive', 'type': 'bool'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, outcome=None, reset_to_active=None, tester=None): + super(PointUpdateModel, self).__init__() + self.outcome = outcome + self.reset_to_active = reset_to_active + self.tester = tester diff --git a/vsts/vsts/test/v4_0/models/points_filter.py b/vsts/vsts/test/v4_0/models/points_filter.py new file mode 100644 index 00000000..5e6d156e --- /dev/null +++ b/vsts/vsts/test/v4_0/models/points_filter.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PointsFilter(Model): + """PointsFilter. + + :param configuration_names: + :type configuration_names: list of str + :param testcase_ids: + :type testcase_ids: list of int + :param testers: + :type testers: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration_names': {'key': 'configurationNames', 'type': '[str]'}, + 'testcase_ids': {'key': 'testcaseIds', 'type': '[int]'}, + 'testers': {'key': 'testers', 'type': '[IdentityRef]'} + } + + def __init__(self, configuration_names=None, testcase_ids=None, testers=None): + super(PointsFilter, self).__init__() + self.configuration_names = configuration_names + self.testcase_ids = testcase_ids + self.testers = testers diff --git a/vsts/vsts/test/v4_0/models/property_bag.py b/vsts/vsts/test/v4_0/models/property_bag.py new file mode 100644 index 00000000..40505531 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/property_bag.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PropertyBag(Model): + """PropertyBag. + + :param bag: Generic store for test session data + :type bag: dict + """ + + _attribute_map = { + 'bag': {'key': 'bag', 'type': '{str}'} + } + + def __init__(self, bag=None): + super(PropertyBag, self).__init__() + self.bag = bag diff --git a/vsts/vsts/test/v4_0/models/query_model.py b/vsts/vsts/test/v4_0/models/query_model.py new file mode 100644 index 00000000..31f521ca --- /dev/null +++ b/vsts/vsts/test/v4_0/models/query_model.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QueryModel(Model): + """QueryModel. + + :param query: + :type query: str + """ + + _attribute_map = { + 'query': {'key': 'query', 'type': 'str'} + } + + def __init__(self, query=None): + super(QueryModel, self).__init__() + self.query = query diff --git a/vsts/vsts/test/v4_0/models/release_environment_definition_reference.py b/vsts/vsts/test/v4_0/models/release_environment_definition_reference.py new file mode 100644 index 00000000..8cc15033 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/release_environment_definition_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironmentDefinitionReference(Model): + """ReleaseEnvironmentDefinitionReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'} + } + + def __init__(self, definition_id=None, environment_definition_id=None): + super(ReleaseEnvironmentDefinitionReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id diff --git a/vsts/vsts/test/v4_0/models/release_reference.py b/vsts/vsts/test/v4_0/models/release_reference.py new file mode 100644 index 00000000..370c7131 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/release_reference.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseReference(Model): + """ReleaseReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + :param environment_definition_name: + :type environment_definition_name: str + :param environment_id: + :type environment_id: int + :param environment_name: + :type environment_name: str + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, + 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + super(ReleaseReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + self.environment_definition_name = environment_definition_name + self.environment_id = environment_id + self.environment_name = environment_name + self.id = id + self.name = name diff --git a/vsts/vsts/test/v4_0/models/result_retention_settings.py b/vsts/vsts/test/v4_0/models/result_retention_settings.py new file mode 100644 index 00000000..3ab844d0 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/result_retention_settings.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResultRetentionSettings(Model): + """ResultRetentionSettings. + + :param automated_results_retention_duration: + :type automated_results_retention_duration: int + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param manual_results_retention_duration: + :type manual_results_retention_duration: int + """ + + _attribute_map = { + 'automated_results_retention_duration': {'key': 'automatedResultsRetentionDuration', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'manual_results_retention_duration': {'key': 'manualResultsRetentionDuration', 'type': 'int'} + } + + def __init__(self, automated_results_retention_duration=None, last_updated_by=None, last_updated_date=None, manual_results_retention_duration=None): + super(ResultRetentionSettings, self).__init__() + self.automated_results_retention_duration = automated_results_retention_duration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.manual_results_retention_duration = manual_results_retention_duration diff --git a/vsts/vsts/test/v4_0/models/results_filter.py b/vsts/vsts/test/v4_0/models/results_filter.py new file mode 100644 index 00000000..66d0fccc --- /dev/null +++ b/vsts/vsts/test/v4_0/models/results_filter.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResultsFilter(Model): + """ResultsFilter. + + :param automated_test_name: + :type automated_test_name: str + :param branch: + :type branch: str + :param group_by: + :type group_by: str + :param max_complete_date: + :type max_complete_date: datetime + :param results_count: + :type results_count: int + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'branch': {'key': 'branch', 'type': 'str'}, + 'group_by': {'key': 'groupBy', 'type': 'str'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'results_count': {'key': 'resultsCount', 'type': 'int'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_results_context=None, trend_days=None): + super(ResultsFilter, self).__init__() + self.automated_test_name = automated_test_name + self.branch = branch + self.group_by = group_by + self.max_complete_date = max_complete_date + self.results_count = results_count + self.test_results_context = test_results_context + self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_0/models/run_create_model.py b/vsts/vsts/test/v4_0/models/run_create_model.py new file mode 100644 index 00000000..75621ba7 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/run_create_model.py @@ -0,0 +1,145 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunCreateModel(Model): + """RunCreateModel. + + :param automated: + :type automated: bool + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param complete_date: + :type complete_date: str + :param configuration_ids: + :type configuration_ids: list of int + :param controller: + :type controller: str + :param custom_test_fields: + :type custom_test_fields: list of :class:`CustomTestField ` + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_test_environment: + :type dtl_test_environment: :class:`ShallowReference ` + :param due_date: + :type due_date: str + :param environment_details: + :type environment_details: :class:`DtlEnvironmentDetails ` + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param iteration: + :type iteration: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param plan: + :type plan: :class:`ShallowReference ` + :param point_ids: + :type point_ids: list of int + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param run_timeout: + :type run_timeout: object + :param source_workflow: + :type source_workflow: str + :param start_date: + :type start_date: str + :param state: + :type state: str + :param test_configurations_mapping: + :type test_configurations_mapping: str + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param type: + :type type: str + """ + + _attribute_map = { + 'automated': {'key': 'automated', 'type': 'bool'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'complete_date': {'key': 'completeDate', 'type': 'str'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'custom_test_fields': {'key': 'customTestFields', 'type': '[CustomTestField]'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_test_environment': {'key': 'dtlTestEnvironment', 'type': 'ShallowReference'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'environment_details': {'key': 'environmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_configurations_mapping': {'key': 'testConfigurationsMapping', 'type': 'str'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): + super(RunCreateModel, self).__init__() + self.automated = automated + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.complete_date = complete_date + self.configuration_ids = configuration_ids + self.controller = controller + self.custom_test_fields = custom_test_fields + self.dtl_aut_environment = dtl_aut_environment + self.dtl_test_environment = dtl_test_environment + self.due_date = due_date + self.environment_details = environment_details + self.error_message = error_message + self.filter = filter + self.iteration = iteration + self.name = name + self.owner = owner + self.plan = plan + self.point_ids = point_ids + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.run_timeout = run_timeout + self.source_workflow = source_workflow + self.start_date = start_date + self.state = state + self.test_configurations_mapping = test_configurations_mapping + self.test_environment_id = test_environment_id + self.test_settings = test_settings + self.type = type diff --git a/vsts/vsts/test/v4_0/models/run_filter.py b/vsts/vsts/test/v4_0/models/run_filter.py new file mode 100644 index 00000000..55ba8921 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/run_filter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunFilter(Model): + """RunFilter. + + :param source_filter: filter for the test case sources (test containers) + :type source_filter: str + :param test_case_filter: filter for the test cases + :type test_case_filter: str + """ + + _attribute_map = { + 'source_filter': {'key': 'sourceFilter', 'type': 'str'}, + 'test_case_filter': {'key': 'testCaseFilter', 'type': 'str'} + } + + def __init__(self, source_filter=None, test_case_filter=None): + super(RunFilter, self).__init__() + self.source_filter = source_filter + self.test_case_filter = test_case_filter diff --git a/vsts/vsts/test/v4_0/models/run_statistic.py b/vsts/vsts/test/v4_0/models/run_statistic.py new file mode 100644 index 00000000..358d5699 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/run_statistic.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunStatistic(Model): + """RunStatistic. + + :param count: + :type count: int + :param outcome: + :type outcome: str + :param resolution_state: + :type resolution_state: :class:`TestResolutionState ` + :param state: + :type state: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'TestResolutionState'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, count=None, outcome=None, resolution_state=None, state=None): + super(RunStatistic, self).__init__() + self.count = count + self.outcome = outcome + self.resolution_state = resolution_state + self.state = state diff --git a/vsts/vsts/test/v4_0/models/run_update_model.py b/vsts/vsts/test/v4_0/models/run_update_model.py new file mode 100644 index 00000000..655d1966 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/run_update_model.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunUpdateModel(Model): + """RunUpdateModel. + + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param controller: + :type controller: str + :param delete_in_progress_results: + :type delete_in_progress_results: bool + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_details: + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: str + :param error_message: + :type error_message: str + :param iteration: + :type iteration: str + :param log_entries: + :type log_entries: list of :class:`TestMessageLogDetails ` + :param name: + :type name: str + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param source_workflow: + :type source_workflow: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'delete_in_progress_results': {'key': 'deleteInProgressResults', 'type': 'bool'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_details': {'key': 'dtlEnvironmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'log_entries': {'key': 'logEntries', 'type': '[TestMessageLogDetails]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): + super(RunUpdateModel, self).__init__() + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.delete_in_progress_results = delete_in_progress_results + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_details = dtl_environment_details + self.due_date = due_date + self.error_message = error_message + self.iteration = iteration + self.log_entries = log_entries + self.name = name + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.source_workflow = source_workflow + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment_id = test_environment_id + self.test_settings = test_settings diff --git a/vsts/vsts/test/v4_0/models/shallow_reference.py b/vsts/vsts/test/v4_0/models/shallow_reference.py new file mode 100644 index 00000000..d4cffc81 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/shallow_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ShallowReference(Model): + """ShallowReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(ShallowReference, self).__init__() + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/test/v4_0/models/shared_step_model.py b/vsts/vsts/test/v4_0/models/shared_step_model.py new file mode 100644 index 00000000..07333033 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/shared_step_model.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SharedStepModel(Model): + """SharedStepModel. + + :param id: + :type id: int + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(SharedStepModel, self).__init__() + self.id = id + self.revision = revision diff --git a/vsts/vsts/test/v4_0/models/suite_create_model.py b/vsts/vsts/test/v4_0/models/suite_create_model.py new file mode 100644 index 00000000..cbcd78dd --- /dev/null +++ b/vsts/vsts/test/v4_0/models/suite_create_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteCreateModel(Model): + """SuiteCreateModel. + + :param name: + :type name: str + :param query_string: + :type query_string: str + :param requirement_ids: + :type requirement_ids: list of int + :param suite_type: + :type suite_type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_ids': {'key': 'requirementIds', 'type': '[int]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'} + } + + def __init__(self, name=None, query_string=None, requirement_ids=None, suite_type=None): + super(SuiteCreateModel, self).__init__() + self.name = name + self.query_string = query_string + self.requirement_ids = requirement_ids + self.suite_type = suite_type diff --git a/vsts/vsts/test/v4_0/models/suite_entry.py b/vsts/vsts/test/v4_0/models/suite_entry.py new file mode 100644 index 00000000..2f6dade3 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/suite_entry.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteEntry(Model): + """SuiteEntry. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Sequence number for the test case or child suite in the suite + :type sequence_number: int + :param suite_id: Id for the suite + :type suite_id: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, test_case_id=None): + super(SuiteEntry, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.suite_id = suite_id + self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_0/models/suite_entry_update_model.py b/vsts/vsts/test/v4_0/models/suite_entry_update_model.py new file mode 100644 index 00000000..afcb6f04 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/suite_entry_update_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteEntryUpdateModel(Model): + """SuiteEntryUpdateModel. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Updated sequence number for the test case or child suite in the suite + :type sequence_number: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None): + super(SuiteEntryUpdateModel, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_0/models/suite_test_case.py b/vsts/vsts/test/v4_0/models/suite_test_case.py new file mode 100644 index 00000000..a4cf3f09 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/suite_test_case.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteTestCase(Model): + """SuiteTestCase. + + :param point_assignments: + :type point_assignments: list of :class:`PointAssignment ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'point_assignments': {'key': 'pointAssignments', 'type': '[PointAssignment]'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'} + } + + def __init__(self, point_assignments=None, test_case=None): + super(SuiteTestCase, self).__init__() + self.point_assignments = point_assignments + self.test_case = test_case diff --git a/vsts/vsts/test/v4_0/models/team_context.py b/vsts/vsts/test/v4_0/models/team_context.py new file mode 100644 index 00000000..18418ce7 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/team_context.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id diff --git a/vsts/vsts/test/v4_0/models/team_project_reference.py b/vsts/vsts/test/v4_0/models/team_project_reference.py new file mode 100644 index 00000000..fa79d465 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/team_project_reference.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility diff --git a/vsts/vsts/test/v4_0/models/test_action_result_model.py b/vsts/vsts/test/v4_0/models/test_action_result_model.py new file mode 100644 index 00000000..edb7f5e3 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_action_result_model.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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 .test_result_model_base import TestResultModelBase + + +class TestActionResultModel(TestResultModelBase): + """TestActionResultModel. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param shared_step_model: + :type shared_step_model: :class:`SharedStepModel ` + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'shared_step_model': {'key': 'sharedStepModel', 'type': 'SharedStepModel'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None, action_path=None, iteration_id=None, shared_step_model=None, step_identifier=None, url=None): + super(TestActionResultModel, self).__init__(comment=comment, completed_date=completed_date, duration_in_ms=duration_in_ms, error_message=error_message, outcome=outcome, started_date=started_date) + self.action_path = action_path + self.iteration_id = iteration_id + self.shared_step_model = shared_step_model + self.step_identifier = step_identifier + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_attachment.py b/vsts/vsts/test/v4_0/models/test_attachment.py new file mode 100644 index 00000000..fa2cc043 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_attachment.py @@ -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.serialization import Model + + +class TestAttachment(Model): + """TestAttachment. + + :param attachment_type: + :type attachment_type: object + :param comment: + :type comment: str + :param created_date: + :type created_date: datetime + :param file_name: + :type file_name: str + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, url=None): + super(TestAttachment, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.created_date = created_date + self.file_name = file_name + self.id = id + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_attachment_reference.py b/vsts/vsts/test/v4_0/models/test_attachment_reference.py new file mode 100644 index 00000000..c5fbe1c7 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_attachment_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestAttachmentReference(Model): + """TestAttachmentReference. + + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(TestAttachmentReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_attachment_request_model.py b/vsts/vsts/test/v4_0/models/test_attachment_request_model.py new file mode 100644 index 00000000..bfe9d645 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_attachment_request_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestAttachmentRequestModel(Model): + """TestAttachmentRequestModel. + + :param attachment_type: + :type attachment_type: str + :param comment: + :type comment: str + :param file_name: + :type file_name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, file_name=None, stream=None): + super(TestAttachmentRequestModel, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.file_name = file_name + self.stream = stream diff --git a/vsts/vsts/test/v4_0/models/test_case_result.py b/vsts/vsts/test/v4_0/models/test_case_result.py new file mode 100644 index 00000000..0917b90a --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_case_result.py @@ -0,0 +1,205 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResult(Model): + """TestCaseResult. + + :param afn_strip_id: + :type afn_strip_id: int + :param area: + :type area: :class:`ShallowReference ` + :param associated_bugs: + :type associated_bugs: list of :class:`ShallowReference ` + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param build: + :type build: :class:`ShallowReference ` + :param build_reference: + :type build_reference: :class:`BuildReference ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param failing_since: + :type failing_since: :class:`FailingSince ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param iteration_details: + :type iteration_details: list of :class:`TestIterationDetailsModel ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param priority: + :type priority: int + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ShallowReference ` + :param release_reference: + :type release_reference: :class:`ReleaseReference ` + :param reset_count: + :type reset_count: int + :param resolution_state: + :type resolution_state: str + :param resolution_state_id: + :type resolution_state_id: int + :param revision: + :type revision: int + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_reference_id: + :type test_case_reference_id: int + :param test_case_title: + :type test_case_title: str + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param test_point: + :type test_point: :class:`ShallowReference ` + :param test_run: + :type test_run: :class:`ShallowReference ` + :param test_suite: + :type test_suite: :class:`ShallowReference ` + :param url: + :type url: str + """ + + _attribute_map = { + 'afn_strip_id': {'key': 'afnStripId', 'type': 'int'}, + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_bugs': {'key': 'associatedBugs', 'type': '[ShallowReference]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_reference': {'key': 'buildReference', 'type': 'BuildReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_details': {'key': 'iterationDetails', 'type': '[TestIterationDetailsModel]'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ShallowReference'}, + 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, + 'reset_count': {'key': 'resetCount', 'type': 'int'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'}, + 'test_suite': {'key': 'testSuite', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): + super(TestCaseResult, self).__init__() + self.afn_strip_id = afn_strip_id + self.area = area + self.associated_bugs = associated_bugs + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.build = build + self.build_reference = build_reference + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.created_date = created_date + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failing_since = failing_since + self.failure_type = failure_type + self.id = id + self.iteration_details = iteration_details + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.owner = owner + self.priority = priority + self.project = project + self.release = release + self.release_reference = release_reference + self.reset_count = reset_count + self.resolution_state = resolution_state + self.resolution_state_id = resolution_state_id + self.revision = revision + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_reference_id = test_case_reference_id + self.test_case_title = test_case_title + self.test_plan = test_plan + self.test_point = test_point + self.test_run = test_run + self.test_suite = test_suite + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py b/vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py new file mode 100644 index 00000000..7a7412e9 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResultAttachmentModel(Model): + """TestCaseResultAttachmentModel. + + :param id: + :type id: int + :param iteration_id: + :type iteration_id: int + :param name: + :type name: str + :param size: + :type size: long + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): + super(TestCaseResultAttachmentModel, self).__init__() + self.id = id + self.iteration_id = iteration_id + self.name = name + self.size = size + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_case_result_identifier.py b/vsts/vsts/test/v4_0/models/test_case_result_identifier.py new file mode 100644 index 00000000..b88a489d --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_case_result_identifier.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResultIdentifier(Model): + """TestCaseResultIdentifier. + + :param test_result_id: + :type test_result_id: int + :param test_run_id: + :type test_run_id: int + """ + + _attribute_map = { + 'test_result_id': {'key': 'testResultId', 'type': 'int'}, + 'test_run_id': {'key': 'testRunId', 'type': 'int'} + } + + def __init__(self, test_result_id=None, test_run_id=None): + super(TestCaseResultIdentifier, self).__init__() + self.test_result_id = test_result_id + self.test_run_id = test_run_id diff --git a/vsts/vsts/test/v4_0/models/test_case_result_update_model.py b/vsts/vsts/test/v4_0/models/test_case_result_update_model.py new file mode 100644 index 00000000..df2fc186 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_case_result_update_model.py @@ -0,0 +1,93 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResultUpdateModel(Model): + """TestCaseResultUpdateModel. + + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case_priority: + :type test_case_priority: str + :param test_result: + :type test_result: :class:`ShallowReference ` + """ + + _attribute_map = { + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_result': {'key': 'testResult', 'type': 'ShallowReference'} + } + + def __init__(self, associated_work_items=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case_priority=None, test_result=None): + super(TestCaseResultUpdateModel, self).__init__() + self.associated_work_items = associated_work_items + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case_priority = test_case_priority + self.test_result = test_result diff --git a/vsts/vsts/test/v4_0/models/test_configuration.py b/vsts/vsts/test/v4_0/models/test_configuration.py new file mode 100644 index 00000000..b2b5aba6 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_configuration.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestConfiguration(Model): + """TestConfiguration. + + :param area: Area of the configuration + :type area: :class:`ShallowReference ` + :param description: Description of the configuration + :type description: str + :param id: Id of the configuration + :type id: int + :param is_default: Is the configuration a default for the test plans + :type is_default: bool + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last Updated Data + :type last_updated_date: datetime + :param name: Name of the configuration + :type name: str + :param project: Project to which the configuration belongs + :type project: :class:`ShallowReference ` + :param revision: Revision of the the configuration + :type revision: int + :param state: State of the configuration + :type state: object + :param url: Url of Configuration Resource + :type url: str + :param values: Dictionary of Test Variable, Selected Value + :type values: list of :class:`NameValuePair ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[NameValuePair]'} + } + + def __init__(self, area=None, description=None, id=None, is_default=None, last_updated_by=None, last_updated_date=None, name=None, project=None, revision=None, state=None, url=None, values=None): + super(TestConfiguration, self).__init__() + self.area = area + self.description = description + self.id = id + self.is_default = is_default + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.project = project + self.revision = revision + self.state = state + self.url = url + self.values = values diff --git a/vsts/vsts/test/v4_0/models/test_environment.py b/vsts/vsts/test/v4_0/models/test_environment.py new file mode 100644 index 00000000..f8876fd0 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_environment.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestEnvironment(Model): + """TestEnvironment. + + :param environment_id: + :type environment_id: str + :param environment_name: + :type environment_name: str + """ + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'} + } + + def __init__(self, environment_id=None, environment_name=None): + super(TestEnvironment, self).__init__() + self.environment_id = environment_id + self.environment_name = environment_name diff --git a/vsts/vsts/test/v4_0/models/test_failure_details.py b/vsts/vsts/test/v4_0/models/test_failure_details.py new file mode 100644 index 00000000..1f2fef0f --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_failure_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestFailureDetails(Model): + """TestFailureDetails. + + :param count: + :type count: int + :param test_results: + :type test_results: list of :class:`TestCaseResultIdentifier ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'test_results': {'key': 'testResults', 'type': '[TestCaseResultIdentifier]'} + } + + def __init__(self, count=None, test_results=None): + super(TestFailureDetails, self).__init__() + self.count = count + self.test_results = test_results diff --git a/vsts/vsts/test/v4_0/models/test_failures_analysis.py b/vsts/vsts/test/v4_0/models/test_failures_analysis.py new file mode 100644 index 00000000..7ac08ac6 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_failures_analysis.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestFailuresAnalysis(Model): + """TestFailuresAnalysis. + + :param existing_failures: + :type existing_failures: :class:`TestFailureDetails ` + :param fixed_tests: + :type fixed_tests: :class:`TestFailureDetails ` + :param new_failures: + :type new_failures: :class:`TestFailureDetails ` + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'existing_failures': {'key': 'existingFailures', 'type': 'TestFailureDetails'}, + 'fixed_tests': {'key': 'fixedTests', 'type': 'TestFailureDetails'}, + 'new_failures': {'key': 'newFailures', 'type': 'TestFailureDetails'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'} + } + + def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, previous_context=None): + super(TestFailuresAnalysis, self).__init__() + self.existing_failures = existing_failures + self.fixed_tests = fixed_tests + self.new_failures = new_failures + self.previous_context = previous_context diff --git a/vsts/vsts/test/v4_0/models/test_iteration_details_model.py b/vsts/vsts/test/v4_0/models/test_iteration_details_model.py new file mode 100644 index 00000000..53d84591 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_iteration_details_model.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestIterationDetailsModel(Model): + """TestIterationDetailsModel. + + :param action_results: + :type action_results: list of :class:`TestActionResultModel ` + :param attachments: + :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param id: + :type id: int + :param outcome: + :type outcome: str + :param parameters: + :type parameters: list of :class:`TestResultParameterModel ` + :param started_date: + :type started_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'action_results': {'key': 'actionResults', 'type': '[TestActionResultModel]'}, + 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[TestResultParameterModel]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, action_results=None, attachments=None, comment=None, completed_date=None, duration_in_ms=None, error_message=None, id=None, outcome=None, parameters=None, started_date=None, url=None): + super(TestIterationDetailsModel, self).__init__() + self.action_results = action_results + self.attachments = attachments + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.id = id + self.outcome = outcome + self.parameters = parameters + self.started_date = started_date + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_message_log_details.py b/vsts/vsts/test/v4_0/models/test_message_log_details.py new file mode 100644 index 00000000..75553733 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_message_log_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestMessageLogDetails(Model): + """TestMessageLogDetails. + + :param date_created: Date when the resource is created + :type date_created: datetime + :param entry_id: Id of the resource + :type entry_id: int + :param message: Message of the resource + :type message: str + """ + + _attribute_map = { + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'entry_id': {'key': 'entryId', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, date_created=None, entry_id=None, message=None): + super(TestMessageLogDetails, self).__init__() + self.date_created = date_created + self.entry_id = entry_id + self.message = message diff --git a/vsts/vsts/test/v4_0/models/test_method.py b/vsts/vsts/test/v4_0/models/test_method.py new file mode 100644 index 00000000..ee92559b --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_method.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestMethod(Model): + """TestMethod. + + :param container: + :type container: str + :param name: + :type name: str + """ + + _attribute_map = { + 'container': {'key': 'container', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, container=None, name=None): + super(TestMethod, self).__init__() + self.container = container + self.name = name diff --git a/vsts/vsts/test/v4_0/models/test_operation_reference.py b/vsts/vsts/test/v4_0/models/test_operation_reference.py new file mode 100644 index 00000000..47e57808 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_operation_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestOperationReference(Model): + """TestOperationReference. + + :param id: + :type id: str + :param status: + :type status: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(TestOperationReference, self).__init__() + self.id = id + self.status = status + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_plan.py b/vsts/vsts/test/v4_0/models/test_plan.py new file mode 100644 index 00000000..718f0e44 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_plan.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPlan(Model): + """TestPlan. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param client_url: + :type client_url: str + :param description: + :type description: str + :param end_date: + :type end_date: datetime + :param id: + :type id: int + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param previous_build: + :type previous_build: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param revision: + :type revision: int + :param root_suite: + :type root_suite: :class:`ShallowReference ` + :param start_date: + :type start_date: datetime + :param state: + :type state: str + :param updated_by: + :type updated_by: :class:`IdentityRef ` + :param updated_date: + :type updated_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'client_url': {'key': 'clientUrl', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'previous_build': {'key': 'previousBuild', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): + super(TestPlan, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.client_url = client_url + self.description = description + self.end_date = end_date + self.id = id + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.previous_build = previous_build + self.project = project + self.release_environment_definition = release_environment_definition + self.revision = revision + self.root_suite = root_suite + self.start_date = start_date + self.state = state + self.updated_by = updated_by + self.updated_date = updated_date + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_plan_clone_request.py b/vsts/vsts/test/v4_0/models/test_plan_clone_request.py new file mode 100644 index 00000000..549c2b89 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_plan_clone_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPlanCloneRequest(Model): + """TestPlanCloneRequest. + + :param destination_test_plan: + :type destination_test_plan: :class:`TestPlan ` + :param options: + :type options: :class:`CloneOptions ` + :param suite_ids: + :type suite_ids: list of int + """ + + _attribute_map = { + 'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'TestPlan'}, + 'options': {'key': 'options', 'type': 'CloneOptions'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'} + } + + def __init__(self, destination_test_plan=None, options=None, suite_ids=None): + super(TestPlanCloneRequest, self).__init__() + self.destination_test_plan = destination_test_plan + self.options = options + self.suite_ids = suite_ids diff --git a/vsts/vsts/test/v4_0/models/test_point.py b/vsts/vsts/test/v4_0/models/test_point.py new file mode 100644 index 00000000..efb3c5d9 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_point.py @@ -0,0 +1,109 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPoint(Model): + """TestPoint. + + :param assigned_to: + :type assigned_to: :class:`IdentityRef ` + :param automated: + :type automated: bool + :param comment: + :type comment: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param last_resolution_state_id: + :type last_resolution_state_id: int + :param last_result: + :type last_result: :class:`ShallowReference ` + :param last_result_details: + :type last_result_details: :class:`LastResultDetails ` + :param last_result_state: + :type last_result_state: str + :param last_run_build_number: + :type last_run_build_number: str + :param last_test_run: + :type last_test_run: :class:`ShallowReference ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param revision: + :type revision: int + :param state: + :type state: str + :param suite: + :type suite: :class:`ShallowReference ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param url: + :type url: str + :param work_item_properties: + :type work_item_properties: list of object + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'}, + 'automated': {'key': 'automated', 'type': 'bool'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, + 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, + 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, + 'last_result_state': {'key': 'lastResultState', 'type': 'str'}, + 'last_run_build_number': {'key': 'lastRunBuildNumber', 'type': 'str'}, + 'last_test_run': {'key': 'lastTestRun', 'type': 'ShallowReference'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suite': {'key': 'suite', 'type': 'ShallowReference'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} + } + + def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): + super(TestPoint, self).__init__() + self.assigned_to = assigned_to + self.automated = automated + self.comment = comment + self.configuration = configuration + self.failure_type = failure_type + self.id = id + self.last_resolution_state_id = last_resolution_state_id + self.last_result = last_result + self.last_result_details = last_result_details + self.last_result_state = last_result_state + self.last_run_build_number = last_run_build_number + self.last_test_run = last_test_run + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.revision = revision + self.state = state + self.suite = suite + self.test_case = test_case + self.test_plan = test_plan + self.url = url + self.work_item_properties = work_item_properties diff --git a/vsts/vsts/test/v4_0/models/test_points_query.py b/vsts/vsts/test/v4_0/models/test_points_query.py new file mode 100644 index 00000000..a4736aa3 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_points_query.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPointsQuery(Model): + """TestPointsQuery. + + :param order_by: + :type order_by: str + :param points: + :type points: list of :class:`TestPoint ` + :param points_filter: + :type points_filter: :class:`PointsFilter ` + :param wit_fields: + :type wit_fields: list of str + """ + + _attribute_map = { + 'order_by': {'key': 'orderBy', 'type': 'str'}, + 'points': {'key': 'points', 'type': '[TestPoint]'}, + 'points_filter': {'key': 'pointsFilter', 'type': 'PointsFilter'}, + 'wit_fields': {'key': 'witFields', 'type': '[str]'} + } + + def __init__(self, order_by=None, points=None, points_filter=None, wit_fields=None): + super(TestPointsQuery, self).__init__() + self.order_by = order_by + self.points = points + self.points_filter = points_filter + self.wit_fields = wit_fields diff --git a/vsts/vsts/test/v4_0/models/test_resolution_state.py b/vsts/vsts/test/v4_0/models/test_resolution_state.py new file mode 100644 index 00000000..ad49929e --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_resolution_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResolutionState(Model): + """TestResolutionState. + + :param id: + :type id: int + :param name: + :type name: str + :param project: + :type project: :class:`ShallowReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'} + } + + def __init__(self, id=None, name=None, project=None): + super(TestResolutionState, self).__init__() + self.id = id + self.name = name + self.project = project diff --git a/vsts/vsts/test/v4_0/models/test_result_create_model.py b/vsts/vsts/test/v4_0/models/test_result_create_model.py new file mode 100644 index 00000000..f5d41d85 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_create_model.py @@ -0,0 +1,125 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultCreateModel(Model): + """TestResultCreateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_priority: + :type test_case_priority: str + :param test_case_title: + :type test_case_title: str + :param test_point: + :type test_point: :class:`ShallowReference ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'} + } + + def __init__(self, area=None, associated_work_items=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_priority=None, test_case_title=None, test_point=None): + super(TestResultCreateModel, self).__init__() + self.area = area + self.associated_work_items = associated_work_items + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_priority = test_case_priority + self.test_case_title = test_case_title + self.test_point = test_point diff --git a/vsts/vsts/test/v4_0/models/test_result_document.py b/vsts/vsts/test/v4_0/models/test_result_document.py new file mode 100644 index 00000000..c84140f2 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_document.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultDocument(Model): + """TestResultDocument. + + :param operation_reference: + :type operation_reference: :class:`TestOperationReference ` + :param payload: + :type payload: :class:`TestResultPayload ` + """ + + _attribute_map = { + 'operation_reference': {'key': 'operationReference', 'type': 'TestOperationReference'}, + 'payload': {'key': 'payload', 'type': 'TestResultPayload'} + } + + def __init__(self, operation_reference=None, payload=None): + super(TestResultDocument, self).__init__() + self.operation_reference = operation_reference + self.payload = payload diff --git a/vsts/vsts/test/v4_0/models/test_result_history.py b/vsts/vsts/test/v4_0/models/test_result_history.py new file mode 100644 index 00000000..a2352617 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_history.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultHistory(Model): + """TestResultHistory. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultHistory, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py b/vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py new file mode 100644 index 00000000..fa696fe9 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultHistoryDetailsForGroup(Model): + """TestResultHistoryDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param latest_result: + :type latest_result: :class:`TestCaseResult ` + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'latest_result': {'key': 'latestResult', 'type': 'TestCaseResult'} + } + + def __init__(self, group_by_value=None, latest_result=None): + super(TestResultHistoryDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.latest_result = latest_result diff --git a/vsts/vsts/test/v4_0/models/test_result_model_base.py b/vsts/vsts/test/v4_0/models/test_result_model_base.py new file mode 100644 index 00000000..ad003905 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_model_base.py @@ -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.serialization import Model + + +class TestResultModelBase(Model): + """TestResultModelBase. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None): + super(TestResultModelBase, self).__init__() + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.outcome = outcome + self.started_date = started_date diff --git a/vsts/vsts/test/v4_0/models/test_result_parameter_model.py b/vsts/vsts/test/v4_0/models/test_result_parameter_model.py new file mode 100644 index 00000000..39efe2cd --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_parameter_model.py @@ -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.serialization import Model + + +class TestResultParameterModel(Model): + """TestResultParameterModel. + + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param parameter_name: + :type parameter_name: str + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'parameter_name': {'key': 'parameterName', 'type': 'str'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_path=None, iteration_id=None, parameter_name=None, step_identifier=None, url=None, value=None): + super(TestResultParameterModel, self).__init__() + self.action_path = action_path + self.iteration_id = iteration_id + self.parameter_name = parameter_name + self.step_identifier = step_identifier + self.url = url + self.value = value diff --git a/vsts/vsts/test/v4_0/models/test_result_payload.py b/vsts/vsts/test/v4_0/models/test_result_payload.py new file mode 100644 index 00000000..22f3d447 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_payload.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultPayload(Model): + """TestResultPayload. + + :param comment: + :type comment: str + :param name: + :type name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, comment=None, name=None, stream=None): + super(TestResultPayload, self).__init__() + self.comment = comment + self.name = name + self.stream = stream diff --git a/vsts/vsts/test/v4_0/models/test_result_summary.py b/vsts/vsts/test/v4_0/models/test_result_summary.py new file mode 100644 index 00000000..b9ae4391 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_summary.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultSummary(Model): + """TestResultSummary. + + :param aggregated_results_analysis: + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :param team_project: + :type team_project: :class:`TeamProjectReference ` + :param test_failures: + :type test_failures: :class:`TestFailuresAnalysis ` + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'aggregated_results_analysis': {'key': 'aggregatedResultsAnalysis', 'type': 'AggregatedResultsAnalysis'}, + 'team_project': {'key': 'teamProject', 'type': 'TeamProjectReference'}, + 'test_failures': {'key': 'testFailures', 'type': 'TestFailuresAnalysis'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'} + } + + def __init__(self, aggregated_results_analysis=None, team_project=None, test_failures=None, test_results_context=None): + super(TestResultSummary, self).__init__() + self.aggregated_results_analysis = aggregated_results_analysis + self.team_project = team_project + self.test_failures = test_failures + self.test_results_context = test_results_context diff --git a/vsts/vsts/test/v4_0/models/test_result_trend_filter.py b/vsts/vsts/test/v4_0/models/test_result_trend_filter.py new file mode 100644 index 00000000..8cb60290 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_result_trend_filter.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultTrendFilter(Model): + """TestResultTrendFilter. + + :param branch_names: + :type branch_names: list of str + :param build_count: + :type build_count: int + :param definition_ids: + :type definition_ids: list of int + :param env_definition_ids: + :type env_definition_ids: list of int + :param max_complete_date: + :type max_complete_date: datetime + :param publish_context: + :type publish_context: str + :param test_run_titles: + :type test_run_titles: list of str + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'branch_names': {'key': 'branchNames', 'type': '[str]'}, + 'build_count': {'key': 'buildCount', 'type': 'int'}, + 'definition_ids': {'key': 'definitionIds', 'type': '[int]'}, + 'env_definition_ids': {'key': 'envDefinitionIds', 'type': '[int]'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'publish_context': {'key': 'publishContext', 'type': 'str'}, + 'test_run_titles': {'key': 'testRunTitles', 'type': '[str]'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, branch_names=None, build_count=None, definition_ids=None, env_definition_ids=None, max_complete_date=None, publish_context=None, test_run_titles=None, trend_days=None): + super(TestResultTrendFilter, self).__init__() + self.branch_names = branch_names + self.build_count = build_count + self.definition_ids = definition_ids + self.env_definition_ids = env_definition_ids + self.max_complete_date = max_complete_date + self.publish_context = publish_context + self.test_run_titles = test_run_titles + self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_0/models/test_results_context.py b/vsts/vsts/test/v4_0/models/test_results_context.py new file mode 100644 index 00000000..2c5ed74f --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_results_context.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsContext(Model): + """TestResultsContext. + + :param build: + :type build: :class:`BuildReference ` + :param context_type: + :type context_type: object + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'context_type': {'key': 'contextType', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, context_type=None, release=None): + super(TestResultsContext, self).__init__() + self.build = build + self.context_type = context_type + self.release = release diff --git a/vsts/vsts/test/v4_0/models/test_results_details.py b/vsts/vsts/test/v4_0/models/test_results_details.py new file mode 100644 index 00000000..fe8f16aa --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_results_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsDetails(Model): + """TestResultsDetails. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultsDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultsDetails, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_0/models/test_results_details_for_group.py b/vsts/vsts/test/v4_0/models/test_results_details_for_group.py new file mode 100644 index 00000000..e5858e91 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_results_details_for_group.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsDetailsForGroup(Model): + """TestResultsDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_count_by_outcome: + :type results_count_by_outcome: dict + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'} + } + + def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None): + super(TestResultsDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.results = results + self.results_count_by_outcome = results_count_by_outcome diff --git a/vsts/vsts/test/v4_0/models/test_results_query.py b/vsts/vsts/test/v4_0/models/test_results_query.py new file mode 100644 index 00000000..c366a404 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_results_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsQuery(Model): + """TestResultsQuery. + + :param fields: + :type fields: list of str + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_filter: + :type results_filter: :class:`ResultsFilter ` + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_filter': {'key': 'resultsFilter', 'type': 'ResultsFilter'} + } + + def __init__(self, fields=None, results=None, results_filter=None): + super(TestResultsQuery, self).__init__() + self.fields = fields + self.results = results + self.results_filter = results_filter diff --git a/vsts/vsts/test/v4_0/models/test_run.py b/vsts/vsts/test/v4_0/models/test_run.py new file mode 100644 index 00000000..3a2a742f --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_run.py @@ -0,0 +1,193 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRun(Model): + """TestRun. + + :param build: + :type build: :class:`ShallowReference ` + :param build_configuration: + :type build_configuration: :class:`BuildConfiguration ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param controller: + :type controller: str + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param drop_location: + :type drop_location: str + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_creation_details: + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: datetime + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param id: + :type id: int + :param incomplete_tests: + :type incomplete_tests: int + :param is_automated: + :type is_automated: bool + :param iteration: + :type iteration: str + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param not_applicable_tests: + :type not_applicable_tests: int + :param owner: + :type owner: :class:`IdentityRef ` + :param passed_tests: + :type passed_tests: int + :param phase: + :type phase: str + :param plan: + :type plan: :class:`ShallowReference ` + :param post_process_state: + :type post_process_state: str + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ReleaseReference ` + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param revision: + :type revision: int + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment: + :type test_environment: :class:`TestEnvironment ` + :param test_message_log_id: + :type test_message_log_id: int + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param total_tests: + :type total_tests: int + :param unanalyzed_tests: + :type unanalyzed_tests: int + :param url: + :type url: str + :param web_access_url: + :type web_access_url: str + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_configuration': {'key': 'buildConfiguration', 'type': 'BuildConfiguration'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_creation_details': {'key': 'dtlEnvironmentCreationDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'iso-8601'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'id': {'key': 'id', 'type': 'int'}, + 'incomplete_tests': {'key': 'incompleteTests', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'not_applicable_tests': {'key': 'notApplicableTests', 'type': 'int'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'passed_tests': {'key': 'passedTests', 'type': 'int'}, + 'phase': {'key': 'phase', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'post_process_state': {'key': 'postProcessState', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment': {'key': 'testEnvironment', 'type': 'TestEnvironment'}, + 'test_message_log_id': {'key': 'testMessageLogId', 'type': 'int'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'}, + 'unanalyzed_tests': {'key': 'unanalyzedTests', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_url': {'key': 'webAccessUrl', 'type': 'str'} + } + + def __init__(self, build=None, build_configuration=None, comment=None, completed_date=None, controller=None, created_date=None, custom_fields=None, drop_location=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_creation_details=None, due_date=None, error_message=None, filter=None, id=None, incomplete_tests=None, is_automated=None, iteration=None, last_updated_by=None, last_updated_date=None, name=None, not_applicable_tests=None, owner=None, passed_tests=None, phase=None, plan=None, post_process_state=None, project=None, release=None, release_environment_uri=None, release_uri=None, revision=None, run_statistics=None, started_date=None, state=None, substate=None, test_environment=None, test_message_log_id=None, test_settings=None, total_tests=None, unanalyzed_tests=None, url=None, web_access_url=None): + super(TestRun, self).__init__() + self.build = build + self.build_configuration = build_configuration + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.created_date = created_date + self.custom_fields = custom_fields + self.drop_location = drop_location + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_creation_details = dtl_environment_creation_details + self.due_date = due_date + self.error_message = error_message + self.filter = filter + self.id = id + self.incomplete_tests = incomplete_tests + self.is_automated = is_automated + self.iteration = iteration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.not_applicable_tests = not_applicable_tests + self.owner = owner + self.passed_tests = passed_tests + self.phase = phase + self.plan = plan + self.post_process_state = post_process_state + self.project = project + self.release = release + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.revision = revision + self.run_statistics = run_statistics + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment = test_environment + self.test_message_log_id = test_message_log_id + self.test_settings = test_settings + self.total_tests = total_tests + self.unanalyzed_tests = unanalyzed_tests + self.url = url + self.web_access_url = web_access_url diff --git a/vsts/vsts/test/v4_0/models/test_run_coverage.py b/vsts/vsts/test/v4_0/models/test_run_coverage.py new file mode 100644 index 00000000..f4914e74 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_run_coverage.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunCoverage(Model): + """TestRunCoverage. + + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + :param test_run: + :type test_run: :class:`ShallowReference ` + """ + + _attribute_map = { + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'} + } + + def __init__(self, last_error=None, modules=None, state=None, test_run=None): + super(TestRunCoverage, self).__init__() + self.last_error = last_error + self.modules = modules + self.state = state + self.test_run = test_run diff --git a/vsts/vsts/test/v4_0/models/test_run_statistic.py b/vsts/vsts/test/v4_0/models/test_run_statistic.py new file mode 100644 index 00000000..8684e151 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_run_statistic.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunStatistic(Model): + """TestRunStatistic. + + :param run: + :type run: :class:`ShallowReference ` + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + """ + + _attribute_map = { + 'run': {'key': 'run', 'type': 'ShallowReference'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'} + } + + def __init__(self, run=None, run_statistics=None): + super(TestRunStatistic, self).__init__() + self.run = run + self.run_statistics = run_statistics diff --git a/vsts/vsts/test/v4_0/models/test_session.py b/vsts/vsts/test/v4_0/models/test_session.py new file mode 100644 index 00000000..45ffabea --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_session.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSession(Model): + """TestSession. + + :param area: Area path of the test session + :type area: :class:`ShallowReference ` + :param comment: Comments in the test session + :type comment: str + :param end_date: Duration of the session + :type end_date: datetime + :param id: Id of the test session + :type id: int + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date + :type last_updated_date: datetime + :param owner: Owner of the test session + :type owner: :class:`IdentityRef ` + :param project: Project to which the test session belongs + :type project: :class:`ShallowReference ` + :param property_bag: Generic store for test session data + :type property_bag: :class:`PropertyBag ` + :param revision: Revision of the test session + :type revision: int + :param source: Source of the test session + :type source: object + :param start_date: Start date + :type start_date: datetime + :param state: State of the test session + :type state: object + :param title: Title of the test session + :type title: str + :param url: Url of Test Session Resource + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'property_bag': {'key': 'propertyBag', 'type': 'PropertyBag'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, comment=None, end_date=None, id=None, last_updated_by=None, last_updated_date=None, owner=None, project=None, property_bag=None, revision=None, source=None, start_date=None, state=None, title=None, url=None): + super(TestSession, self).__init__() + self.area = area + self.comment = comment + self.end_date = end_date + self.id = id + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.owner = owner + self.project = project + self.property_bag = property_bag + self.revision = revision + self.source = source + self.start_date = start_date + self.state = state + self.title = title + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_settings.py b/vsts/vsts/test/v4_0/models/test_settings.py new file mode 100644 index 00000000..4cf25582 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_settings.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSettings(Model): + """TestSettings. + + :param area_path: Area path required to create test settings + :type area_path: str + :param description: Description of the test settings. Used in create test settings. + :type description: str + :param is_public: Indicates if the tests settings is public or private.Used in create test settings. + :type is_public: bool + :param machine_roles: Xml string of machine roles. Used in create test settings. + :type machine_roles: str + :param test_settings_content: Test settings content. + :type test_settings_content: str + :param test_settings_id: Test settings id. + :type test_settings_id: int + :param test_settings_name: Test settings name. + :type test_settings_name: str + """ + + _attribute_map = { + 'area_path': {'key': 'areaPath', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'machine_roles': {'key': 'machineRoles', 'type': 'str'}, + 'test_settings_content': {'key': 'testSettingsContent', 'type': 'str'}, + 'test_settings_id': {'key': 'testSettingsId', 'type': 'int'}, + 'test_settings_name': {'key': 'testSettingsName', 'type': 'str'} + } + + def __init__(self, area_path=None, description=None, is_public=None, machine_roles=None, test_settings_content=None, test_settings_id=None, test_settings_name=None): + super(TestSettings, self).__init__() + self.area_path = area_path + self.description = description + self.is_public = is_public + self.machine_roles = machine_roles + self.test_settings_content = test_settings_content + self.test_settings_id = test_settings_id + self.test_settings_name = test_settings_name diff --git a/vsts/vsts/test/v4_0/models/test_suite.py b/vsts/vsts/test/v4_0/models/test_suite.py new file mode 100644 index 00000000..2e10d73b --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_suite.py @@ -0,0 +1,113 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSuite(Model): + """TestSuite. + + :param area_uri: + :type area_uri: str + :param children: + :type children: list of :class:`TestSuite ` + :param default_configurations: + :type default_configurations: list of :class:`ShallowReference ` + :param id: + :type id: int + :param inherit_default_configurations: + :type inherit_default_configurations: bool + :param last_error: + :type last_error: str + :param last_populated_date: + :type last_populated_date: datetime + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param parent: + :type parent: :class:`ShallowReference ` + :param plan: + :type plan: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param query_string: + :type query_string: str + :param requirement_id: + :type requirement_id: int + :param revision: + :type revision: int + :param state: + :type state: str + :param suites: + :type suites: list of :class:`ShallowReference ` + :param suite_type: + :type suite_type: str + :param test_case_count: + :type test_case_count: int + :param test_cases_url: + :type test_cases_url: str + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'area_uri': {'key': 'areaUri', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TestSuite]'}, + 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'last_populated_date': {'key': 'lastPopulatedDate', 'type': 'iso-8601'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'ShallowReference'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_id': {'key': 'requirementId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suites': {'key': 'suites', 'type': '[ShallowReference]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'}, + 'test_case_count': {'key': 'testCaseCount', 'type': 'int'}, + 'test_cases_url': {'key': 'testCasesUrl', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area_uri=None, children=None, default_configurations=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): + super(TestSuite, self).__init__() + self.area_uri = area_uri + self.children = children + self.default_configurations = default_configurations + self.id = id + self.inherit_default_configurations = inherit_default_configurations + self.last_error = last_error + self.last_populated_date = last_populated_date + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.parent = parent + self.plan = plan + self.project = project + self.query_string = query_string + self.requirement_id = requirement_id + self.revision = revision + self.state = state + self.suites = suites + self.suite_type = suite_type + self.test_case_count = test_case_count + self.test_cases_url = test_cases_url + self.text = text + self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_suite_clone_request.py b/vsts/vsts/test/v4_0/models/test_suite_clone_request.py new file mode 100644 index 00000000..29d26111 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_suite_clone_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSuiteCloneRequest(Model): + """TestSuiteCloneRequest. + + :param clone_options: + :type clone_options: :class:`CloneOptions ` + :param destination_suite_id: + :type destination_suite_id: int + :param destination_suite_project_name: + :type destination_suite_project_name: str + """ + + _attribute_map = { + 'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'}, + 'destination_suite_id': {'key': 'destinationSuiteId', 'type': 'int'}, + 'destination_suite_project_name': {'key': 'destinationSuiteProjectName', 'type': 'str'} + } + + def __init__(self, clone_options=None, destination_suite_id=None, destination_suite_project_name=None): + super(TestSuiteCloneRequest, self).__init__() + self.clone_options = clone_options + self.destination_suite_id = destination_suite_id + self.destination_suite_project_name = destination_suite_project_name diff --git a/vsts/vsts/test/v4_0/models/test_summary_for_work_item.py b/vsts/vsts/test/v4_0/models/test_summary_for_work_item.py new file mode 100644 index 00000000..c2d4d664 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_summary_for_work_item.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSummaryForWorkItem(Model): + """TestSummaryForWorkItem. + + :param summary: + :type summary: :class:`AggregatedDataForResultTrend ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'AggregatedDataForResultTrend'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, summary=None, work_item=None): + super(TestSummaryForWorkItem, self).__init__() + self.summary = summary + self.work_item = work_item diff --git a/vsts/vsts/test/v4_0/models/test_to_work_item_links.py b/vsts/vsts/test/v4_0/models/test_to_work_item_links.py new file mode 100644 index 00000000..80eb6f10 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_to_work_item_links.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestToWorkItemLinks(Model): + """TestToWorkItemLinks. + + :param test: + :type test: :class:`TestMethod ` + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'test': {'key': 'test', 'type': 'TestMethod'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, test=None, work_items=None): + super(TestToWorkItemLinks, self).__init__() + self.test = test + self.work_items = work_items diff --git a/vsts/vsts/test/v4_0/models/test_variable.py b/vsts/vsts/test/v4_0/models/test_variable.py new file mode 100644 index 00000000..c6fbcb04 --- /dev/null +++ b/vsts/vsts/test/v4_0/models/test_variable.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestVariable(Model): + """TestVariable. + + :param description: Description of the test variable + :type description: str + :param id: Id of the test variable + :type id: int + :param name: Name of the test variable + :type name: str + :param project: Project to which the test variable belongs + :type project: :class:`ShallowReference ` + :param revision: Revision + :type revision: int + :param url: Url of the test variable + :type url: str + :param values: List of allowed values + :type values: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, name=None, project=None, revision=None, url=None, values=None): + super(TestVariable, self).__init__() + self.description = description + self.id = id + self.name = name + self.project = project + self.revision = revision + self.url = url + self.values = values diff --git a/vsts/vsts/test/v4_0/models/work_item_reference.py b/vsts/vsts/test/v4_0/models/work_item_reference.py new file mode 100644 index 00000000..1bff259b --- /dev/null +++ b/vsts/vsts/test/v4_0/models/work_item_reference.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + :param web_url: + :type web_url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None, url=None, web_url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.name = name + self.type = type + self.url = url + self.web_url = web_url diff --git a/vsts/vsts/test/v4_0/models/work_item_to_test_links.py b/vsts/vsts/test/v4_0/models/work_item_to_test_links.py new file mode 100644 index 00000000..aa4aedca --- /dev/null +++ b/vsts/vsts/test/v4_0/models/work_item_to_test_links.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemToTestLinks(Model): + """WorkItemToTestLinks. + + :param tests: + :type tests: list of :class:`TestMethod ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'tests': {'key': 'tests', 'type': '[TestMethod]'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, tests=None, work_item=None): + super(WorkItemToTestLinks, self).__init__() + self.tests = tests + self.work_item = work_item diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py new file mode 100644 index 00000000..07874572 --- /dev/null +++ b/vsts/vsts/test/v4_0/test_client.py @@ -0,0 +1,2217 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TestClient(VssClient): + """Test + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TestClient, 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_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): + """GetActionResults. + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param str action_path: + :rtype: [TestActionResultModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + if action_path is not None: + route_values['actionPath'] = self._serialize.url('action_path', action_path, 'str') + response = self._send(http_method='GET', + location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestActionResultModel]', response) + + def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): + """CreateTestIterationResultAttachment. + [Preview API] + :param :class:` ` attachment_request_model: + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param str action_path: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if iteration_id is not None: + query_parameters['iterationId'] = self._serialize.query('iteration_id', iteration_id, 'int') + if action_path is not None: + query_parameters['actionPath'] = self._serialize.query('action_path', action_path, 'str') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): + """CreateTestResultAttachment. + [Preview API] + :param :class:` ` attachment_request_model: + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id): + """GetTestResultAttachmentContent. + [Preview API] Returns a test result attachment + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int attachment_id: + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_test_result_attachments(self, project, run_id, test_case_result_id): + """GetTestResultAttachments. + [Preview API] Returns attachment references for test result. + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :rtype: [TestAttachment] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestAttachment]', response) + + def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id): + """GetTestResultAttachmentZip. + [Preview API] Returns a test result attachment + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int attachment_id: + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def create_test_run_attachment(self, attachment_request_model, project, run_id): + """CreateTestRunAttachment. + [Preview API] + :param :class:` ` attachment_request_model: + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def get_test_run_attachment_content(self, project, run_id, attachment_id): + """GetTestRunAttachmentContent. + [Preview API] Returns a test run attachment + :param str project: Project ID or project name + :param int run_id: + :param int attachment_id: + :rtype: object + """ + 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') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_test_run_attachments(self, project, run_id): + """GetTestRunAttachments. + [Preview API] Returns attachment references for test run. + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestAttachment] + """ + 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='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestAttachment]', response) + + def get_test_run_attachment_zip(self, project, run_id, attachment_id): + """GetTestRunAttachmentZip. + [Preview API] Returns a test run attachment + :param str project: Project ID or project name + :param int run_id: + :param int attachment_id: + :rtype: object + """ + 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') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): + """GetBugsLinkedToTestResult. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :rtype: [WorkItemReference] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + response = self._send(http_method='GET', + location_id='6de20ca2-67de-4faf-97fa-38c5d585eb00', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemReference]', response) + + def get_clone_information(self, project, clone_operation_id, include_details=None): + """GetCloneInformation. + [Preview API] + :param str project: Project ID or project name + :param int clone_operation_id: + :param bool include_details: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if clone_operation_id is not None: + route_values['cloneOperationId'] = self._serialize.url('clone_operation_id', clone_operation_id, 'int') + query_parameters = {} + if include_details is not None: + query_parameters['$includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + response = self._send(http_method='GET', + location_id='5b9d6320-abed-47a5-a151-cd6dc3798be6', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('CloneOperationInformation', response) + + def clone_test_plan(self, clone_request_body, project, plan_id): + """CloneTestPlan. + [Preview API] + :param :class:` ` clone_request_body: + :param str project: Project ID or project name + :param int plan_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + content = self._serialize.body(clone_request_body, 'TestPlanCloneRequest') + response = self._send(http_method='POST', + location_id='edc3ef4b-8460-4e86-86fa-8e4f5e9be831', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('CloneOperationInformation', response) + + def clone_test_suite(self, clone_request_body, project, plan_id, source_suite_id): + """CloneTestSuite. + [Preview API] + :param :class:` ` clone_request_body: + :param str project: Project ID or project name + :param int plan_id: + :param int source_suite_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if source_suite_id is not None: + route_values['sourceSuiteId'] = self._serialize.url('source_suite_id', source_suite_id, 'int') + content = self._serialize.body(clone_request_body, 'TestSuiteCloneRequest') + response = self._send(http_method='POST', + location_id='751e4ab5-5bf6-4fb5-9d5d-19ef347662dd', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('CloneOperationInformation', response) + + def get_build_code_coverage(self, project, build_id, flags): + """GetBuildCodeCoverage. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param int flags: + :rtype: [BuildCoverage] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[BuildCoverage]', response) + + def get_code_coverage_summary(self, project, build_id, delta_build_id=None): + """GetCodeCoverageSummary. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param int delta_build_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if delta_build_id is not None: + query_parameters['deltaBuildId'] = self._serialize.query('delta_build_id', delta_build_id, 'int') + response = self._send(http_method='GET', + location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('CodeCoverageSummary', response) + + def update_code_coverage_summary(self, coverage_data, project, build_id): + """UpdateCodeCoverageSummary. + [Preview API] http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary + :param :class:` ` coverage_data: + :param str project: Project ID or project name + :param int build_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + content = self._serialize.body(coverage_data, 'CodeCoverageData') + self._send(http_method='POST', + location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + + def get_test_run_code_coverage(self, project, run_id, flags): + """GetTestRunCodeCoverage. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int flags: + :rtype: [TestRunCoverage] + """ + 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') + query_parameters = {} + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='9629116f-3b89-4ed8-b358-d4694efda160', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestRunCoverage]', response) + + def create_test_configuration(self, test_configuration, project): + """CreateTestConfiguration. + [Preview API] + :param :class:` ` test_configuration: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_configuration, 'TestConfiguration') + response = self._send(http_method='POST', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestConfiguration', response) + + def delete_test_configuration(self, project, test_configuration_id): + """DeleteTestConfiguration. + [Preview API] + :param str project: Project ID or project name + :param int test_configuration_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_configuration_id is not None: + route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') + self._send(http_method='DELETE', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.0-preview.2', + route_values=route_values) + + def get_test_configuration_by_id(self, project, test_configuration_id): + """GetTestConfigurationById. + [Preview API] + :param str project: Project ID or project name + :param int test_configuration_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_configuration_id is not None: + route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') + response = self._send(http_method='GET', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('TestConfiguration', response) + + def get_test_configurations(self, project, skip=None, top=None, continuation_token=None, include_all_properties=None): + """GetTestConfigurations. + [Preview API] + :param str project: Project ID or project name + :param int skip: + :param int top: + :param str continuation_token: + :param bool include_all_properties: + :rtype: [TestConfiguration] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if include_all_properties is not None: + query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') + response = self._send(http_method='GET', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestConfiguration]', response) + + def update_test_configuration(self, test_configuration, project, test_configuration_id): + """UpdateTestConfiguration. + [Preview API] + :param :class:` ` test_configuration: + :param str project: Project ID or project name + :param int test_configuration_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_configuration_id is not None: + route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') + content = self._serialize.body(test_configuration, 'TestConfiguration') + response = self._send(http_method='PATCH', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestConfiguration', response) + + def add_custom_fields(self, new_fields, project): + """AddCustomFields. + [Preview API] + :param [CustomTestFieldDefinition] new_fields: + :param str project: Project ID or project name + :rtype: [CustomTestFieldDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(new_fields, '[CustomTestFieldDefinition]') + response = self._send(http_method='POST', + location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[CustomTestFieldDefinition]', response) + + def query_custom_fields(self, project, scope_filter): + """QueryCustomFields. + [Preview API] + :param str project: Project ID or project name + :param str scope_filter: + :rtype: [CustomTestFieldDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_filter is not None: + query_parameters['scopeFilter'] = self._serialize.query('scope_filter', scope_filter, 'str') + response = self._send(http_method='GET', + location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[CustomTestFieldDefinition]', response) + + def query_test_result_history(self, filter, project): + """QueryTestResultHistory. + [Preview API] + :param :class:` ` filter: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(filter, 'ResultsFilter') + response = self._send(http_method='POST', + location_id='234616f5-429c-4e7b-9192-affd76731dfd', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestResultHistory', response) + + def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, include_action_results=None): + """GetTestIteration. + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param bool include_action_results: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestIterationDetailsModel', response) + + def get_test_iterations(self, project, run_id, test_case_result_id, include_action_results=None): + """GetTestIterations. + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param bool include_action_results: + :rtype: [TestIterationDetailsModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestIterationDetailsModel]', response) + + def get_linked_work_items_by_query(self, work_item_query, project): + """GetLinkedWorkItemsByQuery. + [Preview API] + :param :class:` ` work_item_query: + :param str project: Project ID or project name + :rtype: [LinkedWorkItemsQueryResult] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_query, 'LinkedWorkItemsQuery') + response = self._send(http_method='POST', + location_id='a4dcb25b-9878-49ea-abfd-e440bd9b1dcd', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[LinkedWorkItemsQueryResult]', response) + + def get_test_run_logs(self, project, run_id): + """GetTestRunLogs. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestMessageLogDetails] + """ + 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='a1e55200-637e-42e9-a7c0-7e5bfdedb1b3', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestMessageLogDetails]', response) + + def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): + """GetResultParameters. + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param str param_name: + :rtype: [TestResultParameterModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if param_name is not None: + query_parameters['paramName'] = self._serialize.query('param_name', param_name, 'str') + response = self._send(http_method='GET', + location_id='7c69810d-3354-4af3-844a-180bd25db08a', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestResultParameterModel]', response) + + def create_test_plan(self, test_plan, project): + """CreateTestPlan. + :param :class:` ` test_plan: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_plan, 'PlanUpdateModel') + response = self._send(http_method='POST', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TestPlan', response) + + def delete_test_plan(self, project, plan_id): + """DeleteTestPlan. + :param str project: Project ID or project name + :param int plan_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + self._send(http_method='DELETE', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.0', + route_values=route_values) + + def get_plan_by_id(self, project, plan_id): + """GetPlanById. + :param str project: Project ID or project name + :param int plan_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + response = self._send(http_method='GET', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.0', + route_values=route_values) + return self._deserialize('TestPlan', response) + + def get_plans(self, project, owner=None, skip=None, top=None, include_plan_details=None, filter_active_plans=None): + """GetPlans. + :param str project: Project ID or project name + :param str owner: + :param int skip: + :param int top: + :param bool include_plan_details: + :param bool filter_active_plans: + :rtype: [TestPlan] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if include_plan_details is not None: + query_parameters['includePlanDetails'] = self._serialize.query('include_plan_details', include_plan_details, 'bool') + if filter_active_plans is not None: + query_parameters['filterActivePlans'] = self._serialize.query('filter_active_plans', filter_active_plans, 'bool') + response = self._send(http_method='GET', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestPlan]', response) + + def update_test_plan(self, plan_update_model, project, plan_id): + """UpdateTestPlan. + :param :class:` ` plan_update_model: + :param str project: Project ID or project name + :param int plan_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + content = self._serialize.body(plan_update_model, 'PlanUpdateModel') + response = self._send(http_method='PATCH', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TestPlan', response) + + def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): + """GetPoint. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param int point_ids: + :param str wit_fields: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestPoint', response) + + def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_id=None, test_case_id=None, test_point_ids=None, include_point_details=None, skip=None, top=None): + """GetPoints. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str wit_fields: + :param str configuration_id: + :param str test_case_id: + :param str test_point_ids: + :param bool include_point_details: + :param int skip: + :param int top: + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + if configuration_id is not None: + query_parameters['configurationId'] = self._serialize.query('configuration_id', configuration_id, 'str') + if test_case_id is not None: + query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'str') + if test_point_ids is not None: + query_parameters['testPointIds'] = self._serialize.query('test_point_ids', test_point_ids, 'str') + if include_point_details is not None: + query_parameters['includePointDetails'] = self._serialize.query('include_point_details', include_point_details, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestPoint]', response) + + def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): + """UpdateTestPoints. + :param :class:` ` point_update_model: + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str point_ids: + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'str') + content = self._serialize.body(point_update_model, 'PointUpdateModel') + response = self._send(http_method='PATCH', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestPoint]', response) + + def get_points_by_query(self, query, project, skip=None, top=None): + """GetPointsByQuery. + [Preview API] + :param :class:` ` query: + :param str project: Project ID or project name + :param int skip: + :param int top: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + content = self._serialize.body(query, 'TestPointsQuery') + response = self._send(http_method='POST', + location_id='b4264fd0-a5d1-43e2-82a5-b9c46b7da9ce', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('TestPointsQuery', response) + + def get_test_result_details_for_build(self, project, build_id, publish_context=None, group_by=None, filter=None, orderby=None): + """GetTestResultDetailsForBuild. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param str publish_context: + :param str group_by: + :param str filter: + :param str orderby: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if group_by is not None: + query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + response = self._send(http_method='GET', + location_id='efb387b0-10d5-42e7-be40-95e06ee9430f', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultsDetails', response) + + def get_test_result_details_for_release(self, project, release_id, release_env_id, publish_context=None, group_by=None, filter=None, orderby=None): + """GetTestResultDetailsForRelease. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int release_env_id: + :param str publish_context: + :param str group_by: + :param str filter: + :param str orderby: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if release_id is not None: + query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') + if release_env_id is not None: + query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if group_by is not None: + query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + response = self._send(http_method='GET', + location_id='b834ec7e-35bb-450f-a3c8-802e70ca40dd', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultsDetails', response) + + def publish_test_result_document(self, document, project, run_id): + """PublishTestResultDocument. + [Preview API] + :param :class:` ` document: + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(document, 'TestResultDocument') + response = self._send(http_method='POST', + location_id='370ca04b-8eec-4ca8-8ba3-d24dca228791', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestResultDocument', response) + + def get_result_retention_settings(self, project): + """GetResultRetentionSettings. + [Preview API] + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ResultRetentionSettings', response) + + def update_result_retention_settings(self, retention_settings, project): + """UpdateResultRetentionSettings. + [Preview API] + :param :class:` ` retention_settings: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(retention_settings, 'ResultRetentionSettings') + response = self._send(http_method='PATCH', + location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ResultRetentionSettings', response) + + def add_test_results_to_test_run(self, results, project, run_id): + """AddTestResultsToTestRun. + :param [TestCaseResult] results: + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='POST', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestCaseResult]', response) + + def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): + """GetTestResultById. + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param str details_to_include: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestCaseResult', response) + + def get_test_results(self, project, run_id, details_to_include=None, skip=None, top=None): + """GetTestResults. + :param str project: Project ID or project name + :param int run_id: + :param str details_to_include: + :param int skip: + :param int top: + :rtype: [TestCaseResult] + """ + 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') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestCaseResult]', response) + + def update_test_results(self, results, project, run_id): + """UpdateTestResults. + :param [TestCaseResult] results: + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='PATCH', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestCaseResult]', response) + + def get_test_results_by_query(self, query, project): + """GetTestResultsByQuery. + [Preview API] + :param :class:` ` query: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query, 'TestResultsQuery') + response = self._send(http_method='POST', + location_id='6711da49-8e6f-4d35-9f73-cef7a3c81a5b', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('TestResultsQuery', response) + + def query_test_results_report_for_build(self, project, build_id, publish_context=None, include_failure_details=None, build_to_compare=None): + """QueryTestResultsReportForBuild. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param str publish_context: + :param bool include_failure_details: + :param :class:` ` build_to_compare: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if include_failure_details is not None: + query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') + if build_to_compare is not None: + if build_to_compare.id is not None: + query_parameters['buildToCompare.Id'] = build_to_compare.id + if build_to_compare.definition_id is not None: + query_parameters['buildToCompare.DefinitionId'] = build_to_compare.definition_id + if build_to_compare.number is not None: + query_parameters['buildToCompare.Number'] = build_to_compare.number + if build_to_compare.uri is not None: + query_parameters['buildToCompare.Uri'] = build_to_compare.uri + if build_to_compare.build_system is not None: + query_parameters['buildToCompare.BuildSystem'] = build_to_compare.build_system + if build_to_compare.branch_name is not None: + query_parameters['buildToCompare.BranchName'] = build_to_compare.branch_name + if build_to_compare.repository_id is not None: + query_parameters['buildToCompare.RepositoryId'] = build_to_compare.repository_id + response = self._send(http_method='GET', + location_id='000ef77b-fea2-498d-a10d-ad1a037f559f', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultSummary', response) + + def query_test_results_report_for_release(self, project, release_id, release_env_id, publish_context=None, include_failure_details=None, release_to_compare=None): + """QueryTestResultsReportForRelease. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int release_env_id: + :param str publish_context: + :param bool include_failure_details: + :param :class:` ` release_to_compare: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if release_id is not None: + query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') + if release_env_id is not None: + query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if include_failure_details is not None: + query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') + if release_to_compare is not None: + if release_to_compare.id is not None: + query_parameters['releaseToCompare.Id'] = release_to_compare.id + if release_to_compare.name is not None: + query_parameters['releaseToCompare.Name'] = release_to_compare.name + if release_to_compare.environment_id is not None: + query_parameters['releaseToCompare.EnvironmentId'] = release_to_compare.environment_id + if release_to_compare.environment_name is not None: + query_parameters['releaseToCompare.EnvironmentName'] = release_to_compare.environment_name + if release_to_compare.definition_id is not None: + query_parameters['releaseToCompare.DefinitionId'] = release_to_compare.definition_id + if release_to_compare.environment_definition_id is not None: + query_parameters['releaseToCompare.EnvironmentDefinitionId'] = release_to_compare.environment_definition_id + if release_to_compare.environment_definition_name is not None: + query_parameters['releaseToCompare.EnvironmentDefinitionName'] = release_to_compare.environment_definition_name + response = self._send(http_method='GET', + location_id='85765790-ac68-494e-b268-af36c3929744', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultSummary', response) + + def query_test_results_summary_for_releases(self, releases, project): + """QueryTestResultsSummaryForReleases. + [Preview API] + :param [ReleaseReference] releases: + :param str project: Project ID or project name + :rtype: [TestResultSummary] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(releases, '[ReleaseReference]') + response = self._send(http_method='POST', + location_id='85765790-ac68-494e-b268-af36c3929744', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestResultSummary]', response) + + def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): + """QueryTestSummaryByRequirement. + [Preview API] + :param :class:` ` results_context: + :param str project: Project ID or project name + :param [int] work_item_ids: + :rtype: [TestSummaryForWorkItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if work_item_ids is not None: + work_item_ids = ",".join(map(str, work_item_ids)) + query_parameters['workItemIds'] = self._serialize.query('work_item_ids', work_item_ids, 'str') + content = self._serialize.body(results_context, 'TestResultsContext') + response = self._send(http_method='POST', + location_id='cd08294e-308d-4460-a46e-4cfdefba0b4b', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[TestSummaryForWorkItem]', response) + + def query_result_trend_for_build(self, filter, project): + """QueryResultTrendForBuild. + [Preview API] + :param :class:` ` filter: + :param str project: Project ID or project name + :rtype: [AggregatedDataForResultTrend] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(filter, 'TestResultTrendFilter') + response = self._send(http_method='POST', + location_id='fbc82a85-0786-4442-88bb-eb0fda6b01b0', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AggregatedDataForResultTrend]', response) + + def query_result_trend_for_release(self, filter, project): + """QueryResultTrendForRelease. + [Preview API] + :param :class:` ` filter: + :param str project: Project ID or project name + :rtype: [AggregatedDataForResultTrend] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(filter, 'TestResultTrendFilter') + response = self._send(http_method='POST', + location_id='dd178e93-d8dd-4887-9635-d6b9560b7b6e', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AggregatedDataForResultTrend]', response) + + def get_test_run_statistics(self, project, run_id): + """GetTestRunStatistics. + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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='0a42c424-d764-4a16-a2d5-5c85f87d0ae8', + version='4.0', + route_values=route_values) + return self._deserialize('TestRunStatistic', response) + + def create_test_run(self, test_run, project): + """CreateTestRun. + :param :class:` ` test_run: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_run, 'RunCreateModel') + response = self._send(http_method='POST', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def delete_test_run(self, project, run_id): + """DeleteTestRun. + :param str project: Project ID or project name + :param int run_id: + """ + 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') + self._send(http_method='DELETE', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.0', + route_values=route_values) + + def get_test_run_by_id(self, project, run_id): + """GetTestRunById. + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.0', + route_values=route_values) + return self._deserialize('TestRun', response) + + def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, plan_id=None, include_run_details=None, automated=None, skip=None, top=None): + """GetTestRuns. + :param str project: Project ID or project name + :param str build_uri: + :param str owner: + :param str tmi_run_id: + :param int plan_id: + :param bool include_run_details: + :param bool automated: + :param int skip: + :param int top: + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_uri is not None: + query_parameters['buildUri'] = self._serialize.query('build_uri', build_uri, 'str') + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if tmi_run_id is not None: + query_parameters['tmiRunId'] = self._serialize.query('tmi_run_id', tmi_run_id, 'str') + if plan_id is not None: + query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'int') + if include_run_details is not None: + query_parameters['includeRunDetails'] = self._serialize.query('include_run_details', include_run_details, 'bool') + if automated is not None: + query_parameters['automated'] = self._serialize.query('automated', automated, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestRun]', response) + + def query_test_runs(self, project, state, min_completed_date=None, max_completed_date=None, plan_id=None, is_automated=None, publish_context=None, build_id=None, build_def_id=None, branch_name=None, release_id=None, release_def_id=None, release_env_id=None, release_env_def_id=None, run_title=None, skip=None, top=None): + """QueryTestRuns. + :param str project: Project ID or project name + :param str state: + :param datetime min_completed_date: + :param datetime max_completed_date: + :param int plan_id: + :param bool is_automated: + :param str publish_context: + :param int build_id: + :param int build_def_id: + :param str branch_name: + :param int release_id: + :param int release_def_id: + :param int release_env_id: + :param int release_env_def_id: + :param str run_title: + :param int skip: + :param int top: + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if state is not None: + query_parameters['state'] = self._serialize.query('state', state, 'str') + if min_completed_date is not None: + query_parameters['minCompletedDate'] = self._serialize.query('min_completed_date', min_completed_date, 'iso-8601') + if max_completed_date is not None: + query_parameters['maxCompletedDate'] = self._serialize.query('max_completed_date', max_completed_date, 'iso-8601') + if plan_id is not None: + query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'int') + if is_automated is not None: + query_parameters['IsAutomated'] = self._serialize.query('is_automated', is_automated, 'bool') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if build_def_id is not None: + query_parameters['buildDefId'] = self._serialize.query('build_def_id', build_def_id, 'int') + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if release_id is not None: + query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') + if release_def_id is not None: + query_parameters['releaseDefId'] = self._serialize.query('release_def_id', release_def_id, 'int') + if release_env_id is not None: + query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') + if release_env_def_id is not None: + query_parameters['releaseEnvDefId'] = self._serialize.query('release_env_def_id', release_env_def_id, 'int') + if run_title is not None: + query_parameters['runTitle'] = self._serialize.query('run_title', run_title, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestRun]', response) + + def update_test_run(self, run_update_model, project, run_id): + """UpdateTestRun. + :param :class:` ` run_update_model: + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(run_update_model, 'RunUpdateModel') + response = self._send(http_method='PATCH', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def create_test_session(self, test_session, team_context): + """CreateTestSession. + [Preview API] + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(test_session, 'TestSession') + response = self._send(http_method='POST', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestSession', response) + + def get_test_sessions(self, team_context, period=None, all_sessions=None, include_all_properties=None, source=None, include_only_completed_sessions=None): + """GetTestSessions. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param int period: + :param bool all_sessions: + :param bool include_all_properties: + :param str source: + :param bool include_only_completed_sessions: + :rtype: [TestSession] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if period is not None: + query_parameters['period'] = self._serialize.query('period', period, 'int') + if all_sessions is not None: + query_parameters['allSessions'] = self._serialize.query('all_sessions', all_sessions, 'bool') + if include_all_properties is not None: + query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') + if source is not None: + query_parameters['source'] = self._serialize.query('source', source, 'str') + if include_only_completed_sessions is not None: + query_parameters['includeOnlyCompletedSessions'] = self._serialize.query('include_only_completed_sessions', include_only_completed_sessions, 'bool') + response = self._send(http_method='GET', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestSession]', response) + + def update_test_session(self, test_session, team_context): + """UpdateTestSession. + [Preview API] + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(test_session, 'TestSession') + response = self._send(http_method='PATCH', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestSession', response) + + def delete_shared_parameter(self, project, shared_parameter_id): + """DeleteSharedParameter. + [Preview API] + :param str project: Project ID or project name + :param int shared_parameter_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if shared_parameter_id is not None: + route_values['sharedParameterId'] = self._serialize.url('shared_parameter_id', shared_parameter_id, 'int') + self._send(http_method='DELETE', + location_id='8300eeca-0f8c-4eff-a089-d2dda409c41f', + version='4.0-preview.1', + route_values=route_values) + + def delete_shared_step(self, project, shared_step_id): + """DeleteSharedStep. + [Preview API] + :param str project: Project ID or project name + :param int shared_step_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if shared_step_id is not None: + route_values['sharedStepId'] = self._serialize.url('shared_step_id', shared_step_id, 'int') + self._send(http_method='DELETE', + location_id='fabb3cc9-e3f8-40b7-8b62-24cc4b73fccf', + version='4.0-preview.1', + route_values=route_values) + + def get_suite_entries(self, project, suite_id): + """GetSuiteEntries. + [Preview API] + :param str project: Project ID or project name + :param int suite_id: + :rtype: [SuiteEntry] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + response = self._send(http_method='GET', + location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SuiteEntry]', response) + + def reorder_suite_entries(self, suite_entries, project, suite_id): + """ReorderSuiteEntries. + [Preview API] + :param [SuiteEntryUpdateModel] suite_entries: + :param str project: Project ID or project name + :param int suite_id: + :rtype: [SuiteEntry] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(suite_entries, '[SuiteEntryUpdateModel]') + response = self._send(http_method='PATCH', + location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', + version='4.0-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[SuiteEntry]', response) + + def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): + """AddTestCasesToSuite. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str test_case_ids: + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + response = self._send(http_method='POST', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SuiteTestCase]', response) + + def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): + """GetTestCaseById. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param int test_case_ids: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.0', + route_values=route_values) + return self._deserialize('SuiteTestCase', response) + + def get_test_cases(self, project, plan_id, suite_id): + """GetTestCases. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SuiteTestCase]', response) + + def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): + """RemoveTestCasesFromSuiteUrl. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str test_case_ids: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + self._send(http_method='DELETE', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.0', + route_values=route_values) + + def create_test_suite(self, test_suite, project, plan_id, suite_id): + """CreateTestSuite. + :param :class:` ` test_suite: + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :rtype: [TestSuite] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(test_suite, 'SuiteCreateModel') + response = self._send(http_method='POST', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestSuite]', response) + + def delete_test_suite(self, project, plan_id, suite_id): + """DeleteTestSuite. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + self._send(http_method='DELETE', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.0', + route_values=route_values) + + def get_test_suite_by_id(self, project, plan_id, suite_id, include_child_suites=None): + """GetTestSuiteById. + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param bool include_child_suites: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + query_parameters = {} + if include_child_suites is not None: + query_parameters['includeChildSuites'] = self._serialize.query('include_child_suites', include_child_suites, 'bool') + response = self._send(http_method='GET', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestSuite', response) + + def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=None, top=None, as_tree_view=None): + """GetTestSuitesForPlan. + :param str project: Project ID or project name + :param int plan_id: + :param bool include_suites: + :param int skip: + :param int top: + :param bool as_tree_view: + :rtype: [TestSuite] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + query_parameters = {} + if include_suites is not None: + query_parameters['includeSuites'] = self._serialize.query('include_suites', include_suites, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if as_tree_view is not None: + query_parameters['$asTreeView'] = self._serialize.query('as_tree_view', as_tree_view, 'bool') + response = self._send(http_method='GET', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestSuite]', response) + + def update_test_suite(self, suite_update_model, project, plan_id, suite_id): + """UpdateTestSuite. + :param :class:` ` suite_update_model: + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(suite_update_model, 'SuiteUpdateModel') + response = self._send(http_method='PATCH', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TestSuite', response) + + def get_suites_by_test_case_id(self, test_case_id): + """GetSuitesByTestCaseId. + :param int test_case_id: + :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='09a6167b-e969-4775-9247-b94cf3819caf', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestSuite]', response) + + def delete_test_case(self, project, test_case_id): + """DeleteTestCase. + [Preview API] + :param str project: Project ID or project name + :param int test_case_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_case_id is not None: + route_values['testCaseId'] = self._serialize.url('test_case_id', test_case_id, 'int') + self._send(http_method='DELETE', + location_id='4d472e0f-e32c-4ef8-adf4-a4078772889c', + version='4.0-preview.1', + route_values=route_values) + + def create_test_settings(self, test_settings, project): + """CreateTestSettings. + :param :class:` ` test_settings: + :param str project: Project ID or project name + :rtype: int + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_settings, 'TestSettings') + response = self._send(http_method='POST', + location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('int', response) + + def delete_test_settings(self, project, test_settings_id): + """DeleteTestSettings. + :param str project: Project ID or project name + :param int test_settings_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_settings_id is not None: + route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') + self._send(http_method='DELETE', + location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', + version='4.0', + route_values=route_values) + + def get_test_settings_by_id(self, project, test_settings_id): + """GetTestSettingsById. + :param str project: Project ID or project name + :param int test_settings_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_settings_id is not None: + route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') + response = self._send(http_method='GET', + location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', + version='4.0', + route_values=route_values) + return self._deserialize('TestSettings', response) + + def create_test_variable(self, test_variable, project): + """CreateTestVariable. + [Preview API] + :param :class:` ` test_variable: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_variable, 'TestVariable') + response = self._send(http_method='POST', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestVariable', response) + + def delete_test_variable(self, project, test_variable_id): + """DeleteTestVariable. + [Preview API] + :param str project: Project ID or project name + :param int test_variable_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_variable_id is not None: + route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') + self._send(http_method='DELETE', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.0-preview.1', + route_values=route_values) + + def get_test_variable_by_id(self, project, test_variable_id): + """GetTestVariableById. + [Preview API] + :param str project: Project ID or project name + :param int test_variable_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_variable_id is not None: + route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') + response = self._send(http_method='GET', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('TestVariable', response) + + def get_test_variables(self, project, skip=None, top=None): + """GetTestVariables. + [Preview API] + :param str project: Project ID or project name + :param int skip: + :param int top: + :rtype: [TestVariable] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestVariable]', response) + + def update_test_variable(self, test_variable, project, test_variable_id): + """UpdateTestVariable. + [Preview API] + :param :class:` ` test_variable: + :param str project: Project ID or project name + :param int test_variable_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_variable_id is not None: + route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') + content = self._serialize.body(test_variable, 'TestVariable') + response = self._send(http_method='PATCH', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestVariable', response) + + def add_work_item_to_test_links(self, work_item_to_test_links, project): + """AddWorkItemToTestLinks. + [Preview API] + :param :class:` ` work_item_to_test_links: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_to_test_links, 'WorkItemToTestLinks') + response = self._send(http_method='POST', + location_id='371b1655-ce05-412e-a113-64cc77bb78d2', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemToTestLinks', response) + + def delete_test_method_to_work_item_link(self, project, test_name, work_item_id): + """DeleteTestMethodToWorkItemLink. + [Preview API] + :param str project: Project ID or project name + :param str test_name: + :param int work_item_id: + :rtype: bool + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if test_name is not None: + query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') + if work_item_id is not None: + query_parameters['workItemId'] = self._serialize.query('work_item_id', work_item_id, 'int') + response = self._send(http_method='DELETE', + location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def query_test_method_linked_work_items(self, project, test_name): + """QueryTestMethodLinkedWorkItems. + [Preview API] + :param str project: Project ID or project name + :param str test_name: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if test_name is not None: + query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') + response = self._send(http_method='POST', + location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestToWorkItemLinks', response) + + def query_test_result_work_items(self, project, work_item_category, automated_test_name=None, test_case_id=None, max_complete_date=None, days=None, work_item_count=None): + """QueryTestResultWorkItems. + [Preview API] + :param str project: Project ID or project name + :param str work_item_category: + :param str automated_test_name: + :param int test_case_id: + :param datetime max_complete_date: + :param int days: + :param int work_item_count: + :rtype: [WorkItemReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if work_item_category is not None: + query_parameters['workItemCategory'] = self._serialize.query('work_item_category', work_item_category, 'str') + if automated_test_name is not None: + query_parameters['automatedTestName'] = self._serialize.query('automated_test_name', automated_test_name, 'str') + if test_case_id is not None: + query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int') + if max_complete_date is not None: + query_parameters['maxCompleteDate'] = self._serialize.query('max_complete_date', max_complete_date, 'iso-8601') + if days is not None: + query_parameters['days'] = self._serialize.query('days', days, 'int') + if work_item_count is not None: + query_parameters['$workItemCount'] = self._serialize.query('work_item_count', work_item_count, 'int') + response = self._send(http_method='GET', + location_id='926ff5dc-137f-45f0-bd51-9412fa9810ce', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemReference]', response) + diff --git a/vsts/vsts/tfvc/__init__.py b/vsts/vsts/tfvc/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/tfvc/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/tfvc/v4_0/__init__.py b/vsts/vsts/tfvc/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/tfvc/v4_0/models/__init__.py b/vsts/vsts/tfvc/v4_0/models/__init__.py new file mode 100644 index 00000000..d49eca21 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/__init__.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------------------------- +# 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 .associated_work_item import AssociatedWorkItem +from .change import Change +from .checkin_note import CheckinNote +from .file_content_metadata import FileContentMetadata +from .git_repository import GitRepository +from .git_repository_ref import GitRepositoryRef +from .identity_ref import IdentityRef +from .item_content import ItemContent +from .item_model import ItemModel +from .reference_links import ReferenceLinks +from .team_project_collection_reference import TeamProjectCollectionReference +from .team_project_reference import TeamProjectReference +from .tfvc_branch import TfvcBranch +from .tfvc_branch_mapping import TfvcBranchMapping +from .tfvc_branch_ref import TfvcBranchRef +from .tfvc_change import TfvcChange +from .tfvc_changeset import TfvcChangeset +from .tfvc_changeset_ref import TfvcChangesetRef +from .tfvc_changeset_search_criteria import TfvcChangesetSearchCriteria +from .tfvc_changesets_request_data import TfvcChangesetsRequestData +from .tfvc_item import TfvcItem +from .tfvc_item_descriptor import TfvcItemDescriptor +from .tfvc_item_request_data import TfvcItemRequestData +from .tfvc_label import TfvcLabel +from .tfvc_label_ref import TfvcLabelRef +from .tfvc_label_request_data import TfvcLabelRequestData +from .tfvc_merge_source import TfvcMergeSource +from .tfvc_policy_failure_info import TfvcPolicyFailureInfo +from .tfvc_policy_override_info import TfvcPolicyOverrideInfo +from .tfvc_shallow_branch_ref import TfvcShallowBranchRef +from .tfvc_shelveset import TfvcShelveset +from .tfvc_shelveset_ref import TfvcShelvesetRef +from .tfvc_shelveset_request_data import TfvcShelvesetRequestData +from .tfvc_version_descriptor import TfvcVersionDescriptor +from .version_control_project_info import VersionControlProjectInfo +from .vsts_info import VstsInfo + +__all__ = [ + 'AssociatedWorkItem', + 'Change', + 'CheckinNote', + 'FileContentMetadata', + 'GitRepository', + 'GitRepositoryRef', + 'IdentityRef', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'TfvcBranch', + 'TfvcBranchMapping', + 'TfvcBranchRef', + 'TfvcChange', + 'TfvcChangeset', + 'TfvcChangesetRef', + 'TfvcChangesetSearchCriteria', + 'TfvcChangesetsRequestData', + 'TfvcItem', + 'TfvcItemDescriptor', + 'TfvcItemRequestData', + 'TfvcLabel', + 'TfvcLabelRef', + 'TfvcLabelRequestData', + 'TfvcMergeSource', + 'TfvcPolicyFailureInfo', + 'TfvcPolicyOverrideInfo', + 'TfvcShallowBranchRef', + 'TfvcShelveset', + 'TfvcShelvesetRef', + 'TfvcShelvesetRequestData', + 'TfvcVersionDescriptor', + 'VersionControlProjectInfo', + 'VstsInfo', +] diff --git a/vsts/vsts/tfvc/v4_0/models/associated_work_item.py b/vsts/vsts/tfvc/v4_0/models/associated_work_item.py new file mode 100644 index 00000000..c34ac428 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/associated_work_item.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST url + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type diff --git a/vsts/vsts/tfvc/v4_0/models/change.py b/vsts/vsts/tfvc/v4_0/models/change.py new file mode 100644 index 00000000..08955451 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/change.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Change(Model): + """Change. + + :param change_type: + :type change_type: object + :param item: + :type item: object + :param new_content: + :type new_content: :class:`ItemContent ` + :param source_server_item: + :type source_server_item: str + :param url: + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'object'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/checkin_note.py b/vsts/vsts/tfvc/v4_0/models/checkin_note.py new file mode 100644 index 00000000..d92f9bae --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/checkin_note.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CheckinNote(Model): + """CheckinNote. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(CheckinNote, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/tfvc/v4_0/models/file_content_metadata.py b/vsts/vsts/tfvc/v4_0/models/file_content_metadata.py new file mode 100644 index 00000000..d2d6667d --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/file_content_metadata.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link diff --git a/vsts/vsts/tfvc/v4_0/models/git_repository.py b/vsts/vsts/tfvc/v4_0/models/git_repository.py new file mode 100644 index 00000000..261c6cfd --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/git_repository.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.url = url + self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/tfvc/v4_0/models/git_repository_ref.py b/vsts/vsts/tfvc/v4_0/models/git_repository_ref.py new file mode 100644 index 00000000..6aa28bf9 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/git_repository_ref.py @@ -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.serialization import Model + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: :class:`TeamProjectCollectionReference ` + :param id: + :type id: str + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.name = name + self.project = project + self.remote_url = remote_url + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/identity_ref.py b/vsts/vsts/tfvc/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/item_content.py b/vsts/vsts/tfvc/v4_0/models/item_content.py new file mode 100644 index 00000000..f5cfaef1 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/item_content.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type diff --git a/vsts/vsts/tfvc/v4_0/models/item_model.py b/vsts/vsts/tfvc/v4_0/models/item_model.py new file mode 100644 index 00000000..162cef06 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/item_model.py @@ -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.serialization import Model + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/reference_links.py b/vsts/vsts/tfvc/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py b/vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py new file mode 100644 index 00000000..6f4a596a --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/team_project_reference.py b/vsts/vsts/tfvc/v4_0/models/team_project_reference.py new file mode 100644 index 00000000..fa79d465 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/team_project_reference.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_branch.py b/vsts/vsts/tfvc/v4_0/models/tfvc_branch.py new file mode 100644 index 00000000..5c697345 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_branch.py @@ -0,0 +1,58 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_branch_ref import TfvcBranchRef + + +class TfvcBranch(TfvcBranchRef): + """TfvcBranch. + + :param path: + :type path: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_date: + :type created_date: datetime + :param description: + :type description: str + :param is_deleted: + :type is_deleted: bool + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param children: + :type children: list of :class:`TfvcBranch ` + :param mappings: + :type mappings: list of :class:`TfvcBranchMapping ` + :param parent: + :type parent: :class:`TfvcShallowBranchRef ` + :param related_branches: + :type related_branches: list of :class:`TfvcShallowBranchRef ` + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TfvcBranch]'}, + 'mappings': {'key': 'mappings', 'type': '[TfvcBranchMapping]'}, + 'parent': {'key': 'parent', 'type': 'TfvcShallowBranchRef'}, + 'related_branches': {'key': 'relatedBranches', 'type': '[TfvcShallowBranchRef]'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None, children=None, mappings=None, parent=None, related_branches=None): + super(TfvcBranch, self).__init__(path=path, _links=_links, created_date=created_date, description=description, is_deleted=is_deleted, owner=owner, url=url) + self.children = children + self.mappings = mappings + self.parent = parent + self.related_branches = related_branches diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py b/vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py new file mode 100644 index 00000000..b6972b37 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcBranchMapping(Model): + """TfvcBranchMapping. + + :param depth: + :type depth: str + :param server_item: + :type server_item: str + :param type: + :type type: str + """ + + _attribute_map = { + 'depth': {'key': 'depth', 'type': 'str'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, depth=None, server_item=None, type=None): + super(TfvcBranchMapping, self).__init__() + self.depth = depth + self.server_item = server_item + self.type = type diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py new file mode 100644 index 00000000..a7aeccec --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_shallow_branch_ref import TfvcShallowBranchRef + + +class TfvcBranchRef(TfvcShallowBranchRef): + """TfvcBranchRef. + + :param path: + :type path: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_date: + :type created_date: datetime + :param description: + :type description: str + :param is_deleted: + :type is_deleted: bool + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None): + super(TfvcBranchRef, self).__init__(path=path) + self._links = _links + self.created_date = created_date + self.description = description + self.is_deleted = is_deleted + self.owner = owner + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_change.py b/vsts/vsts/tfvc/v4_0/models/tfvc_change.py new file mode 100644 index 00000000..ecb43a6d --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_change.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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 .change import Change + + +class TfvcChange(Change): + """TfvcChange. + + :param merge_sources: List of merge sources in case of rename or branch creation. + :type merge_sources: list of :class:`TfvcMergeSource ` + :param pending_version: Version at which a (shelved) change was pended against + :type pending_version: int + """ + + _attribute_map = { + 'merge_sources': {'key': 'mergeSources', 'type': '[TfvcMergeSource]'}, + 'pending_version': {'key': 'pendingVersion', 'type': 'int'} + } + + def __init__(self, merge_sources=None, pending_version=None): + super(TfvcChange, self).__init__() + self.merge_sources = merge_sources + self.pending_version = pending_version diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py new file mode 100644 index 00000000..f06bc078 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_changeset_ref import TfvcChangesetRef + + +class TfvcChangeset(TfvcChangesetRef): + """TfvcChangeset. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: :class:`IdentityRef ` + :param changeset_id: + :type changeset_id: int + :param checked_in_by: + :type checked_in_by: :class:`IdentityRef ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param url: + :type url: str + :param account_id: + :type account_id: str + :param changes: + :type changes: list of :class:`TfvcChange ` + :param checkin_notes: + :type checkin_notes: list of :class:`CheckinNote ` + :param collection_id: + :type collection_id: str + :param has_more_changes: + :type has_more_changes: bool + :param policy_override: + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param team_project_ids: + :type team_project_ids: list of str + :param work_items: + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'}, + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'checkin_notes': {'key': 'checkinNotes', 'type': '[CheckinNote]'}, + 'collection_id': {'key': 'collectionId', 'type': 'str'}, + 'has_more_changes': {'key': 'hasMoreChanges', 'type': 'bool'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'team_project_ids': {'key': 'teamProjectIds', 'type': '[str]'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None, account_id=None, changes=None, checkin_notes=None, collection_id=None, has_more_changes=None, policy_override=None, team_project_ids=None, work_items=None): + super(TfvcChangeset, self).__init__(_links=_links, author=author, changeset_id=changeset_id, checked_in_by=checked_in_by, comment=comment, comment_truncated=comment_truncated, created_date=created_date, url=url) + self.account_id = account_id + self.changes = changes + self.checkin_notes = checkin_notes + self.collection_id = collection_id + self.has_more_changes = has_more_changes + self.policy_override = policy_override + self.team_project_ids = team_project_ids + self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py new file mode 100644 index 00000000..4bfb9e4b --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcChangesetRef(Model): + """TfvcChangesetRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: :class:`IdentityRef ` + :param changeset_id: + :type changeset_id: int + :param checked_in_by: + :type checked_in_by: :class:`IdentityRef ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None): + super(TfvcChangesetRef, self).__init__() + self._links = _links + self.author = author + self.changeset_id = changeset_id + self.checked_in_by = checked_in_by + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py new file mode 100644 index 00000000..41d556ef --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcChangesetSearchCriteria(Model): + """TfvcChangesetSearchCriteria. + + :param author: Alias or display name of user who made the changes + :type author: str + :param follow_renames: Whether or not to follow renames for the given item being queried + :type follow_renames: bool + :param from_date: If provided, only include changesets created after this date (string) Think of a better name for this. + :type from_date: str + :param from_id: If provided, only include changesets after this changesetID + :type from_id: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_path: Path of item to search under + :type item_path: str + :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. + :type to_date: str + :param to_id: If provided, a version descriptor for the latest change list to include + :type to_id: int + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'follow_renames': {'key': 'followRenames', 'type': 'bool'}, + 'from_date': {'key': 'fromDate', 'type': 'str'}, + 'from_id': {'key': 'fromId', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'str'}, + 'to_id': {'key': 'toId', 'type': 'int'} + } + + def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): + super(TfvcChangesetSearchCriteria, self).__init__() + self.author = author + self.follow_renames = follow_renames + self.from_date = from_date + self.from_id = from_id + self.include_links = include_links + self.item_path = item_path + self.to_date = to_date + self.to_id = to_id diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py new file mode 100644 index 00000000..de3973ec --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcChangesetsRequestData(Model): + """TfvcChangesetsRequestData. + + :param changeset_ids: + :type changeset_ids: list of int + :param comment_length: + :type comment_length: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + """ + + _attribute_map = { + 'changeset_ids': {'key': 'changesetIds', 'type': '[int]'}, + 'comment_length': {'key': 'commentLength', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'} + } + + def __init__(self, changeset_ids=None, comment_length=None, include_links=None): + super(TfvcChangesetsRequestData, self).__init__() + self.changeset_ids = changeset_ids + self.comment_length = comment_length + self.include_links = include_links diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_item.py b/vsts/vsts/tfvc/v4_0/models/tfvc_item.py new file mode 100644 index 00000000..1d56665a --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_item.py @@ -0,0 +1,67 @@ +# -------------------------------------------------------------------------------------------- +# 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 .item_model import ItemModel + + +class TfvcItem(ItemModel): + """TfvcItem. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param change_date: + :type change_date: datetime + :param deletion_id: + :type deletion_id: int + :param hash_value: MD5 hash as a base 64 string, applies to files only. + :type hash_value: str + :param is_branch: + :type is_branch: bool + :param is_pending_change: + :type is_pending_change: bool + :param size: The size of the file, if applicable. + :type size: long + :param version: + :type version: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, + 'deletion_id': {'key': 'deletionId', 'type': 'int'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'is_branch': {'key': 'isBranch', 'type': 'bool'}, + 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, + 'size': {'key': 'size', 'type': 'long'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): + super(TfvcItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.change_date = change_date + self.deletion_id = deletion_id + self.hash_value = hash_value + self.is_branch = is_branch + self.is_pending_change = is_pending_change + self.size = size + self.version = version diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py b/vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py new file mode 100644 index 00000000..47a3306c --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcItemDescriptor(Model): + """TfvcItemDescriptor. + + :param path: + :type path: str + :param recursion_level: + :type recursion_level: object + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, path=None, recursion_level=None, version=None, version_option=None, version_type=None): + super(TfvcItemDescriptor, self).__init__() + self.path = path + self.recursion_level = recursion_level + self.version = version + self.version_option = version_option + self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py new file mode 100644 index 00000000..da451a19 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcItemRequestData(Model): + """TfvcItemRequestData. + + :param include_content_metadata: If true, include metadata about the file type + :type include_content_metadata: bool + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_descriptors: + :type item_descriptors: list of :class:`TfvcItemDescriptor ` + """ + + _attribute_map = { + 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_descriptors': {'key': 'itemDescriptors', 'type': '[TfvcItemDescriptor]'} + } + + def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None): + super(TfvcItemRequestData, self).__init__() + self.include_content_metadata = include_content_metadata + self.include_links = include_links + self.item_descriptors = item_descriptors diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_label.py b/vsts/vsts/tfvc/v4_0/models/tfvc_label.py new file mode 100644 index 00000000..eda6f281 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_label.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_label_ref import TfvcLabelRef + + +class TfvcLabel(TfvcLabelRef): + """TfvcLabel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param items: + :type items: list of :class:`TfvcItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[TfvcItem]'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None, items=None): + super(TfvcLabel, self).__init__(_links=_links, description=description, id=id, label_scope=label_scope, modified_date=modified_date, name=name, owner=owner, url=url) + self.items = items diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py new file mode 100644 index 00000000..be3d4e3f --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcLabelRef(Model): + """TfvcLabelRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None): + super(TfvcLabelRef, self).__init__() + self._links = _links + self.description = description + self.id = id + self.label_scope = label_scope + self.modified_date = modified_date + self.name = name + self.owner = owner + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py new file mode 100644 index 00000000..bd8d12cc --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py @@ -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.serialization import Model + + +class TfvcLabelRequestData(Model): + """TfvcLabelRequestData. + + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_label_filter: + :type item_label_filter: str + :param label_scope: + :type label_scope: str + :param max_item_count: + :type max_item_count: int + :param name: + :type name: str + :param owner: + :type owner: str + """ + + _attribute_map = { + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_label_filter': {'key': 'itemLabelFilter', 'type': 'str'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'max_item_count': {'key': 'maxItemCount', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_links=None, item_label_filter=None, label_scope=None, max_item_count=None, name=None, owner=None): + super(TfvcLabelRequestData, self).__init__() + self.include_links = include_links + self.item_label_filter = item_label_filter + self.label_scope = label_scope + self.max_item_count = max_item_count + self.name = name + self.owner = owner diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py b/vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py new file mode 100644 index 00000000..8516dbd5 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcMergeSource(Model): + """TfvcMergeSource. + + :param is_rename: Indicates if this a rename source. If false, it is a merge source. + :type is_rename: bool + :param server_item: The server item of the merge source + :type server_item: str + :param version_from: Start of the version range + :type version_from: int + :param version_to: End of the version range + :type version_to: int + """ + + _attribute_map = { + 'is_rename': {'key': 'isRename', 'type': 'bool'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'version_from': {'key': 'versionFrom', 'type': 'int'}, + 'version_to': {'key': 'versionTo', 'type': 'int'} + } + + def __init__(self, is_rename=None, server_item=None, version_from=None, version_to=None): + super(TfvcMergeSource, self).__init__() + self.is_rename = is_rename + self.server_item = server_item + self.version_from = version_from + self.version_to = version_to diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py b/vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py new file mode 100644 index 00000000..72ab75d8 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcPolicyFailureInfo(Model): + """TfvcPolicyFailureInfo. + + :param message: + :type message: str + :param policy_name: + :type policy_name: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'} + } + + def __init__(self, message=None, policy_name=None): + super(TfvcPolicyFailureInfo, self).__init__() + self.message = message + self.policy_name = policy_name diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py b/vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py new file mode 100644 index 00000000..d009cb8c --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcPolicyOverrideInfo(Model): + """TfvcPolicyOverrideInfo. + + :param comment: + :type comment: str + :param policy_failures: + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'policy_failures': {'key': 'policyFailures', 'type': '[TfvcPolicyFailureInfo]'} + } + + def __init__(self, comment=None, policy_failures=None): + super(TfvcPolicyOverrideInfo, self).__init__() + self.comment = comment + self.policy_failures = policy_failures diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py new file mode 100644 index 00000000..66fc8e75 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcShallowBranchRef(Model): + """TfvcShallowBranchRef. + + :param path: + :type path: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, path=None): + super(TfvcShallowBranchRef, self).__init__() + self.path = path diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py new file mode 100644 index 00000000..42f245b7 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_shelveset_ref import TfvcShelvesetRef + + +class TfvcShelveset(TfvcShelvesetRef): + """TfvcShelveset. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param changes: + :type changes: list of :class:`TfvcChange ` + :param notes: + :type notes: list of :class:`CheckinNote ` + :param policy_override: + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param work_items: + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'notes': {'key': 'notes', 'type': '[CheckinNote]'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None, changes=None, notes=None, policy_override=None, work_items=None): + super(TfvcShelveset, self).__init__(_links=_links, comment=comment, comment_truncated=comment_truncated, created_date=created_date, id=id, name=name, owner=owner, url=url) + self.changes = changes + self.notes = notes + self.policy_override = policy_override + self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py new file mode 100644 index 00000000..40d39c85 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcShelvesetRef(Model): + """TfvcShelvesetRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None): + super(TfvcShelvesetRef, self).__init__() + self._links = _links + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.id = id + self.name = name + self.owner = owner + self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py new file mode 100644 index 00000000..4d9c1442 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcShelvesetRequestData(Model): + """TfvcShelvesetRequestData. + + :param include_details: Whether to include policyOverride and notes Only applies when requesting a single deep shelveset + :type include_details: bool + :param include_links: Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset. + :type include_links: bool + :param include_work_items: Whether to include workItems + :type include_work_items: bool + :param max_change_count: Max number of changes to include + :type max_change_count: int + :param max_comment_length: Max length of comment + :type max_comment_length: int + :param name: Shelveset's name + :type name: str + :param owner: Owner's ID. Could be a name or a guid. + :type owner: str + """ + + _attribute_map = { + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, + 'max_change_count': {'key': 'maxChangeCount', 'type': 'int'}, + 'max_comment_length': {'key': 'maxCommentLength', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_details=None, include_links=None, include_work_items=None, max_change_count=None, max_comment_length=None, name=None, owner=None): + super(TfvcShelvesetRequestData, self).__init__() + self.include_details = include_details + self.include_links = include_links + self.include_work_items = include_work_items + self.max_change_count = max_change_count + self.max_comment_length = max_comment_length + self.name = name + self.owner = owner diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py b/vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py new file mode 100644 index 00000000..13187560 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcVersionDescriptor(Model): + """TfvcVersionDescriptor. + + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_option=None, version_type=None): + super(TfvcVersionDescriptor, self).__init__() + self.version = version + self.version_option = version_option + self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_0/models/version_control_project_info.py b/vsts/vsts/tfvc/v4_0/models/version_control_project_info.py new file mode 100644 index 00000000..28ec52e6 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/version_control_project_info.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VersionControlProjectInfo(Model): + """VersionControlProjectInfo. + + :param default_source_control_type: + :type default_source_control_type: object + :param project: + :type project: :class:`TeamProjectReference ` + :param supports_git: + :type supports_git: bool + :param supports_tFVC: + :type supports_tFVC: bool + """ + + _attribute_map = { + 'default_source_control_type': {'key': 'defaultSourceControlType', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'supports_git': {'key': 'supportsGit', 'type': 'bool'}, + 'supports_tFVC': {'key': 'supportsTFVC', 'type': 'bool'} + } + + def __init__(self, default_source_control_type=None, project=None, supports_git=None, supports_tFVC=None): + super(VersionControlProjectInfo, self).__init__() + self.default_source_control_type = default_source_control_type + self.project = project + self.supports_git = supports_git + self.supports_tFVC = supports_tFVC diff --git a/vsts/vsts/tfvc/v4_0/models/vsts_info.py b/vsts/vsts/tfvc/v4_0/models/vsts_info.py new file mode 100644 index 00000000..abeb98e8 --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/models/vsts_info.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VstsInfo(Model): + """VstsInfo. + + :param collection: + :type collection: :class:`TeamProjectCollectionReference ` + :param repository: + :type repository: :class:`GitRepository ` + :param server_url: + :type server_url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'server_url': {'key': 'serverUrl', 'type': 'str'} + } + + def __init__(self, collection=None, repository=None, server_url=None): + super(VstsInfo, self).__init__() + self.collection = collection + self.repository = repository + self.server_url = server_url diff --git a/vsts/vsts/tfvc/v4_0/tfvc_client.py b/vsts/vsts/tfvc/v4_0/tfvc_client.py new file mode 100644 index 00000000..4c2f2dce --- /dev/null +++ b/vsts/vsts/tfvc/v4_0/tfvc_client.py @@ -0,0 +1,722 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TfvcClient(VssClient): + """Tfvc + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TfvcClient, 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_branch(self, path, project=None, include_parent=None, include_children=None): + """GetBranch. + Get a single branch hierarchy at the given path with parents or children (if specified) + :param str path: + :param str project: Project ID or project name + :param bool include_parent: + :param bool include_children: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if include_parent is not None: + query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') + if include_children is not None: + query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcBranch', response) + + def get_branches(self, project=None, include_parent=None, include_children=None, include_deleted=None, include_links=None): + """GetBranches. + Get a collection of branch roots -- first-level children, branches with no parents + :param str project: Project ID or project name + :param bool include_parent: + :param bool include_children: + :param bool include_deleted: + :param bool include_links: + :rtype: [TfvcBranch] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if include_parent is not None: + query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') + if include_children is not None: + query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcBranch]', response) + + def get_branch_refs(self, scope_path, project=None, include_deleted=None, include_links=None): + """GetBranchRefs. + Get branch hierarchies below the specified scopePath + :param str scope_path: + :param str project: Project ID or project name + :param bool include_deleted: + :param bool include_links: + :rtype: [TfvcBranchRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcBranchRef]', response) + + def get_changeset_changes(self, id=None, skip=None, top=None): + """GetChangesetChanges. + Retrieve Tfvc changes for a given changeset + :param int id: + :param int skip: + :param int top: + :rtype: [TfvcChange] + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcChange]', response) + + def create_changeset(self, changeset, project=None): + """CreateChangeset. + Create a new changeset. + :param :class:` ` changeset: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(changeset, 'TfvcChangeset') + response = self._send(http_method='POST', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TfvcChangesetRef', response) + + def get_changeset(self, id, project=None, max_change_count=None, include_details=None, include_work_items=None, max_comment_length=None, include_source_rename=None, skip=None, top=None, orderby=None, search_criteria=None): + """GetChangeset. + Retrieve a Tfvc Changeset + :param int id: + :param str project: Project ID or project name + :param int max_change_count: + :param bool include_details: + :param bool include_work_items: + :param int max_comment_length: + :param bool include_source_rename: + :param int skip: + :param int top: + :param str orderby: + :param :class:` ` search_criteria: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if max_change_count is not None: + query_parameters['maxChangeCount'] = self._serialize.query('max_change_count', max_change_count, 'int') + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + if include_work_items is not None: + query_parameters['includeWorkItems'] = self._serialize.query('include_work_items', include_work_items, 'bool') + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if include_source_rename is not None: + query_parameters['includeSourceRename'] = self._serialize.query('include_source_rename', include_source_rename, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if search_criteria is not None: + if search_criteria.item_path is not None: + query_parameters['searchCriteria.itemPath'] = search_criteria.item_path + if search_criteria.author is not None: + query_parameters['searchCriteria.author'] = search_criteria.author + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.from_id is not None: + query_parameters['searchCriteria.fromId'] = search_criteria.from_id + if search_criteria.to_id is not None: + query_parameters['searchCriteria.toId'] = search_criteria.to_id + if search_criteria.follow_renames is not None: + query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + response = self._send(http_method='GET', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcChangeset', response) + + def get_changesets(self, project=None, max_comment_length=None, skip=None, top=None, orderby=None, search_criteria=None): + """GetChangesets. + Retrieve Tfvc changesets Note: This is a new version of the GetChangesets API that doesn't expose the unneeded queryParams present in the 1.0 version of the API. + :param str project: Project ID or project name + :param int max_comment_length: + :param int skip: + :param int top: + :param str orderby: + :param :class:` ` search_criteria: + :rtype: [TfvcChangesetRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if search_criteria is not None: + if search_criteria.item_path is not None: + query_parameters['searchCriteria.itemPath'] = search_criteria.item_path + if search_criteria.author is not None: + query_parameters['searchCriteria.author'] = search_criteria.author + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.from_id is not None: + query_parameters['searchCriteria.fromId'] = search_criteria.from_id + if search_criteria.to_id is not None: + query_parameters['searchCriteria.toId'] = search_criteria.to_id + if search_criteria.follow_renames is not None: + query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + response = self._send(http_method='GET', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcChangesetRef]', response) + + def get_batched_changesets(self, changesets_request_data): + """GetBatchedChangesets. + :param :class:` ` changesets_request_data: + :rtype: [TfvcChangesetRef] + """ + content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') + response = self._send(http_method='POST', + location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', + version='4.0', + content=content, + returns_collection=True) + return self._deserialize('[TfvcChangesetRef]', response) + + def get_changeset_work_items(self, id=None): + """GetChangesetWorkItems. + :param int id: + :rtype: [AssociatedWorkItem] + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + response = self._send(http_method='GET', + location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[AssociatedWorkItem]', response) + + def get_items_batch(self, item_request_data, project=None): + """GetItemsBatch. + Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: + :param str project: Project ID or project name + :rtype: [[TfvcItem]] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(item_request_data, 'TfvcItemRequestData') + response = self._send(http_method='POST', + location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[[TfvcItem]]', response) + + def get_items_batch_zip(self, item_request_data, project=None): + """GetItemsBatchZip. + Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: + :param str project: Project ID or project name + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(item_request_data, 'TfvcItemRequestData') + response = self._send(http_method='POST', + location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('object', response) + + def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItem. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: + :param str project: Project ID or project name + :param str file_name: + :param bool download: + :param str scope_path: + :param str recursion_level: + :param :class:` ` version_descriptor: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcItem', response) + + def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItemContent. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: + :param str project: Project ID or project name + :param str file_name: + :param bool download: + :param str scope_path: + :param str recursion_level: + :param :class:` ` version_descriptor: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_items(self, project=None, scope_path=None, recursion_level=None, include_links=None, version_descriptor=None): + """GetItems. + Get a list of Tfvc items + :param str project: Project ID or project name + :param str scope_path: + :param str recursion_level: + :param bool include_links: + :param :class:` ` version_descriptor: + :rtype: [TfvcItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcItem]', response) + + def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItemText. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: + :param str project: Project ID or project name + :param str file_name: + :param bool download: + :param str scope_path: + :param str recursion_level: + :param :class:` ` version_descriptor: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItemZip. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: + :param str project: Project ID or project name + :param str file_name: + :param bool download: + :param str scope_path: + :param str recursion_level: + :param :class:` ` version_descriptor: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_label_items(self, label_id, top=None, skip=None): + """GetLabelItems. + Get items under a label. + :param str label_id: Unique identifier of label + :param int top: Max number of items to return + :param int skip: Number of items to skip + :rtype: [TfvcItem] + """ + route_values = {} + if label_id is not None: + route_values['labelId'] = self._serialize.url('label_id', label_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='06166e34-de17-4b60-8cd1-23182a346fda', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcItem]', response) + + def get_label(self, label_id, request_data, project=None): + """GetLabel. + Get a single deep label. + :param str label_id: Unique identifier of label + :param :class:` ` request_data: maxItemCount + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if label_id is not None: + route_values['labelId'] = self._serialize.url('label_id', label_id, 'str') + query_parameters = {} + if request_data is not None: + if request_data.label_scope is not None: + query_parameters['requestData.LabelScope'] = request_data.label_scope + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.item_label_filter is not None: + query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + if request_data.max_item_count is not None: + query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + response = self._send(http_method='GET', + location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcLabel', response) + + def get_labels(self, request_data, project=None, top=None, skip=None): + """GetLabels. + Get a collection of shallow label references. + :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter + :param str project: Project ID or project name + :param int top: Max number of labels to return + :param int skip: Number of labels to skip + :rtype: [TfvcLabelRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if request_data is not None: + if request_data.label_scope is not None: + query_parameters['requestData.LabelScope'] = request_data.label_scope + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.item_label_filter is not None: + query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + if request_data.max_item_count is not None: + query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcLabelRef]', response) + + def get_shelveset_changes(self, shelveset_id, top=None, skip=None): + """GetShelvesetChanges. + Get changes included in a shelveset. + :param str shelveset_id: Shelveset's unique ID + :param int top: Max number of changes to return + :param int skip: Number of changes to skip + :rtype: [TfvcChange] + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='dbaf075b-0445-4c34-9e5b-82292f856522', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcChange]', response) + + def get_shelveset(self, shelveset_id, request_data=None): + """GetShelveset. + Get a single deep shelveset. + :param str shelveset_id: Shelveset's unique ID + :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength + :rtype: :class:` ` + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + if request_data is not None: + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.max_comment_length is not None: + query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + if request_data.max_change_count is not None: + query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + if request_data.include_details is not None: + query_parameters['requestData.IncludeDetails'] = request_data.include_details + if request_data.include_work_items is not None: + query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + response = self._send(http_method='GET', + location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', + version='4.0', + query_parameters=query_parameters) + return self._deserialize('TfvcShelveset', response) + + def get_shelvesets(self, request_data=None, top=None, skip=None): + """GetShelvesets. + Return a collection of shallow shelveset references. + :param :class:` ` request_data: name, owner, and maxCommentLength + :param int top: Max number of shelvesets to return + :param int skip: Number of shelvesets to skip + :rtype: [TfvcShelvesetRef] + """ + query_parameters = {} + if request_data is not None: + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.max_comment_length is not None: + query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + if request_data.max_change_count is not None: + query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + if request_data.include_details is not None: + query_parameters['requestData.IncludeDetails'] = request_data.include_details + if request_data.include_work_items is not None: + query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcShelvesetRef]', response) + + def get_shelveset_work_items(self, shelveset_id): + """GetShelvesetWorkItems. + Get work items associated with a shelveset. + :param str shelveset_id: Shelveset's unique ID + :rtype: [AssociatedWorkItem] + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + response = self._send(http_method='GET', + location_id='a7a0c1c1-373e-425a-b031-a519474d743d', + version='4.0', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[AssociatedWorkItem]', response) + diff --git a/vsts/vsts/work/__init__.py b/vsts/vsts/work/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work/v4_0/__init__.py b/vsts/vsts/work/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work/v4_0/models/__init__.py b/vsts/vsts/work/v4_0/models/__init__.py new file mode 100644 index 00000000..3d4a641c --- /dev/null +++ b/vsts/vsts/work/v4_0/models/__init__.py @@ -0,0 +1,131 @@ +# -------------------------------------------------------------------------------------------- +# 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 .activity import Activity +from .attribute import attribute +from .backlog_column import BacklogColumn +from .backlog_configuration import BacklogConfiguration +from .backlog_fields import BacklogFields +from .backlog_level import BacklogLevel +from .backlog_level_configuration import BacklogLevelConfiguration +from .board import Board +from .board_card_rule_settings import BoardCardRuleSettings +from .board_card_settings import BoardCardSettings +from .board_chart import BoardChart +from .board_chart_reference import BoardChartReference +from .board_column import BoardColumn +from .board_fields import BoardFields +from .board_filter_settings import BoardFilterSettings +from .board_reference import BoardReference +from .board_row import BoardRow +from .board_suggested_value import BoardSuggestedValue +from .board_user_settings import BoardUserSettings +from .capacity_patch import CapacityPatch +from .category_configuration import CategoryConfiguration +from .create_plan import CreatePlan +from .date_range import DateRange +from .delivery_view_data import DeliveryViewData +from .field_reference import FieldReference +from .field_setting import FieldSetting +from .filter_clause import FilterClause +from .filter_group import FilterGroup +from .filter_model import FilterModel +from .identity_ref import IdentityRef +from .member import Member +from .parent_child_wIMap import ParentChildWIMap +from .plan import Plan +from .plan_view_data import PlanViewData +from .process_configuration import ProcessConfiguration +from .reference_links import ReferenceLinks +from .rule import Rule +from .team_context import TeamContext +from .team_field_value import TeamFieldValue +from .team_field_values import TeamFieldValues +from .team_field_values_patch import TeamFieldValuesPatch +from .team_iteration_attributes import TeamIterationAttributes +from .team_member_capacity import TeamMemberCapacity +from .team_setting import TeamSetting +from .team_settings_data_contract_base import TeamSettingsDataContractBase +from .team_settings_days_off import TeamSettingsDaysOff +from .team_settings_days_off_patch import TeamSettingsDaysOffPatch +from .team_settings_iteration import TeamSettingsIteration +from .team_settings_patch import TeamSettingsPatch +from .timeline_criteria_status import TimelineCriteriaStatus +from .timeline_iteration_status import TimelineIterationStatus +from .timeline_team_data import TimelineTeamData +from .timeline_team_iteration import TimelineTeamIteration +from .timeline_team_status import TimelineTeamStatus +from .update_plan import UpdatePlan +from .work_item_color import WorkItemColor +from .work_item_field_reference import WorkItemFieldReference +from .work_item_tracking_resource_reference import WorkItemTrackingResourceReference +from .work_item_type_reference import WorkItemTypeReference +from .work_item_type_state_info import WorkItemTypeStateInfo + +__all__ = [ + 'Activity', + 'attribute', + 'BacklogColumn', + 'BacklogConfiguration', + 'BacklogFields', + 'BacklogLevel', + 'BacklogLevelConfiguration', + 'Board', + 'BoardCardRuleSettings', + 'BoardCardSettings', + 'BoardChart', + 'BoardChartReference', + 'BoardColumn', + 'BoardFields', + 'BoardFilterSettings', + 'BoardReference', + 'BoardRow', + 'BoardSuggestedValue', + 'BoardUserSettings', + 'CapacityPatch', + 'CategoryConfiguration', + 'CreatePlan', + 'DateRange', + 'DeliveryViewData', + 'FieldReference', + 'FieldSetting', + 'FilterClause', + 'FilterGroup', + 'FilterModel', + 'IdentityRef', + 'Member', + 'ParentChildWIMap', + 'Plan', + 'PlanViewData', + 'ProcessConfiguration', + 'ReferenceLinks', + 'Rule', + 'TeamContext', + 'TeamFieldValue', + 'TeamFieldValues', + 'TeamFieldValuesPatch', + 'TeamIterationAttributes', + 'TeamMemberCapacity', + 'TeamSetting', + 'TeamSettingsDataContractBase', + 'TeamSettingsDaysOff', + 'TeamSettingsDaysOffPatch', + 'TeamSettingsIteration', + 'TeamSettingsPatch', + 'TimelineCriteriaStatus', + 'TimelineIterationStatus', + 'TimelineTeamData', + 'TimelineTeamIteration', + 'TimelineTeamStatus', + 'UpdatePlan', + 'WorkItemColor', + 'WorkItemFieldReference', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeReference', + 'WorkItemTypeStateInfo', +] diff --git a/vsts/vsts/work/v4_0/models/activity.py b/vsts/vsts/work/v4_0/models/activity.py new file mode 100644 index 00000000..2b9c616f --- /dev/null +++ b/vsts/vsts/work/v4_0/models/activity.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Activity(Model): + """Activity. + + :param capacity_per_day: + :type capacity_per_day: number + :param name: + :type name: str + """ + + _attribute_map = { + 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'number'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, capacity_per_day=None, name=None): + super(Activity, self).__init__() + self.capacity_per_day = capacity_per_day + self.name = name diff --git a/vsts/vsts/work/v4_0/models/attribute.py b/vsts/vsts/work/v4_0/models/attribute.py new file mode 100644 index 00000000..6f113cc3 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/attribute.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + + +class attribute(dict): + """attribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(attribute, self).__init__() diff --git a/vsts/vsts/work/v4_0/models/backlog_column.py b/vsts/vsts/work/v4_0/models/backlog_column.py new file mode 100644 index 00000000..c8858fae --- /dev/null +++ b/vsts/vsts/work/v4_0/models/backlog_column.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogColumn(Model): + """BacklogColumn. + + :param column_field_reference: + :type column_field_reference: :class:`WorkItemFieldReference ` + :param width: + :type width: int + """ + + _attribute_map = { + 'column_field_reference': {'key': 'columnFieldReference', 'type': 'WorkItemFieldReference'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, column_field_reference=None, width=None): + super(BacklogColumn, self).__init__() + self.column_field_reference = column_field_reference + self.width = width diff --git a/vsts/vsts/work/v4_0/models/backlog_configuration.py b/vsts/vsts/work/v4_0/models/backlog_configuration.py new file mode 100644 index 00000000..be40efb5 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/backlog_configuration.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogConfiguration(Model): + """BacklogConfiguration. + + :param backlog_fields: Behavior/type field mapping + :type backlog_fields: :class:`BacklogFields ` + :param bugs_behavior: Bugs behavior + :type bugs_behavior: object + :param hidden_backlogs: Hidden Backlog + :type hidden_backlogs: list of str + :param portfolio_backlogs: Portfolio backlog descriptors + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :param requirement_backlog: Requirement backlog + :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :param task_backlog: Task backlog + :type task_backlog: :class:`BacklogLevelConfiguration ` + :param url: + :type url: str + :param work_item_type_mapped_states: Mapped states for work item types + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + """ + + _attribute_map = { + 'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'} + } + + def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): + super(BacklogConfiguration, self).__init__() + self.backlog_fields = backlog_fields + self.bugs_behavior = bugs_behavior + self.hidden_backlogs = hidden_backlogs + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.url = url + self.work_item_type_mapped_states = work_item_type_mapped_states diff --git a/vsts/vsts/work/v4_0/models/backlog_fields.py b/vsts/vsts/work/v4_0/models/backlog_fields.py new file mode 100644 index 00000000..0aa2c795 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/backlog_fields.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogFields(Model): + """BacklogFields. + + :param type_fields: Field Type (e.g. Order, Activity) to Field Reference Name map + :type type_fields: dict + """ + + _attribute_map = { + 'type_fields': {'key': 'typeFields', 'type': '{str}'} + } + + def __init__(self, type_fields=None): + super(BacklogFields, self).__init__() + self.type_fields = type_fields diff --git a/vsts/vsts/work/v4_0/models/backlog_level.py b/vsts/vsts/work/v4_0/models/backlog_level.py new file mode 100644 index 00000000..aaad0af8 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/backlog_level.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogLevel(Model): + """BacklogLevel. + + :param category_reference_name: Reference name of the corresponding WIT category + :type category_reference_name: str + :param plural_name: Plural name for the backlog level + :type plural_name: str + :param work_item_states: Collection of work item states that are included in the plan. The server will filter to only these work item types. + :type work_item_states: list of str + :param work_item_types: Collection of valid workitem type names for the given backlog level + :type work_item_types: list of str + """ + + _attribute_map = { + 'category_reference_name': {'key': 'categoryReferenceName', 'type': 'str'}, + 'plural_name': {'key': 'pluralName', 'type': 'str'}, + 'work_item_states': {'key': 'workItemStates', 'type': '[str]'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[str]'} + } + + def __init__(self, category_reference_name=None, plural_name=None, work_item_states=None, work_item_types=None): + super(BacklogLevel, self).__init__() + self.category_reference_name = category_reference_name + self.plural_name = plural_name + self.work_item_states = work_item_states + self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_0/models/backlog_level_configuration.py b/vsts/vsts/work/v4_0/models/backlog_level_configuration.py new file mode 100644 index 00000000..62a2328d --- /dev/null +++ b/vsts/vsts/work/v4_0/models/backlog_level_configuration.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogLevelConfiguration(Model): + """BacklogLevelConfiguration. + + :param add_panel_fields: List of fields to include in Add Panel + :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :param color: Color for the backlog level + :type color: str + :param column_fields: Default list of columns for the backlog + :type column_fields: list of :class:`BacklogColumn ` + :param default_work_item_type: Defaulst Work Item Type for the backlog + :type default_work_item_type: :class:`WorkItemTypeReference ` + :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) + :type id: str + :param name: Backlog Name + :type name: str + :param rank: Backlog Rank (Taskbacklog is 0) + :type rank: int + :param work_item_count_limit: Max number of work items to show in the given backlog + :type work_item_count_limit: int + :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'add_panel_fields': {'key': 'addPanelFields', 'type': '[WorkItemFieldReference]'}, + 'color': {'key': 'color', 'type': 'str'}, + 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, + 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, name=None, rank=None, work_item_count_limit=None, work_item_types=None): + super(BacklogLevelConfiguration, self).__init__() + self.add_panel_fields = add_panel_fields + self.color = color + self.column_fields = column_fields + self.default_work_item_type = default_work_item_type + self.id = id + self.name = name + self.rank = rank + self.work_item_count_limit = work_item_count_limit + self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_0/models/board.py b/vsts/vsts/work/v4_0/models/board.py new file mode 100644 index 00000000..4ffae814 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board.py @@ -0,0 +1,62 @@ +# -------------------------------------------------------------------------------------------- +# 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 .board_reference import BoardReference + + +class Board(BoardReference): + """Board. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_mappings: + :type allowed_mappings: dict + :param can_edit: + :type can_edit: bool + :param columns: + :type columns: list of :class:`BoardColumn ` + :param fields: + :type fields: :class:`BoardFields ` + :param is_valid: + :type is_valid: bool + :param revision: + :type revision: int + :param rows: + :type rows: list of :class:`BoardRow ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_mappings': {'key': 'allowedMappings', 'type': '{{[str]}}'}, + 'can_edit': {'key': 'canEdit', 'type': 'bool'}, + 'columns': {'key': 'columns', 'type': '[BoardColumn]'}, + 'fields': {'key': 'fields', 'type': 'BoardFields'}, + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'rows': {'key': 'rows', 'type': '[BoardRow]'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, allowed_mappings=None, can_edit=None, columns=None, fields=None, is_valid=None, revision=None, rows=None): + super(Board, self).__init__(id=id, name=name, url=url) + self._links = _links + self.allowed_mappings = allowed_mappings + self.can_edit = can_edit + self.columns = columns + self.fields = fields + self.is_valid = is_valid + self.revision = revision + self.rows = rows diff --git a/vsts/vsts/work/v4_0/models/board_card_rule_settings.py b/vsts/vsts/work/v4_0/models/board_card_rule_settings.py new file mode 100644 index 00000000..c5848fb5 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_card_rule_settings.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardCardRuleSettings(Model): + """BoardCardRuleSettings. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param rules: + :type rules: dict + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'rules': {'key': 'rules', 'type': '{[Rule]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, rules=None, url=None): + super(BoardCardRuleSettings, self).__init__() + self._links = _links + self.rules = rules + self.url = url diff --git a/vsts/vsts/work/v4_0/models/board_card_settings.py b/vsts/vsts/work/v4_0/models/board_card_settings.py new file mode 100644 index 00000000..77861a9d --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_card_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardCardSettings(Model): + """BoardCardSettings. + + :param cards: + :type cards: dict + """ + + _attribute_map = { + 'cards': {'key': 'cards', 'type': '{[FieldSetting]}'} + } + + def __init__(self, cards=None): + super(BoardCardSettings, self).__init__() + self.cards = cards diff --git a/vsts/vsts/work/v4_0/models/board_chart.py b/vsts/vsts/work/v4_0/models/board_chart.py new file mode 100644 index 00000000..64275056 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_chart.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .board_chart_reference import BoardChartReference + + +class BoardChart(BoardChartReference): + """BoardChart. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: The links for the resource + :type _links: :class:`ReferenceLinks ` + :param settings: The settings for the resource + :type settings: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'settings': {'key': 'settings', 'type': '{object}'} + } + + def __init__(self, name=None, url=None, _links=None, settings=None): + super(BoardChart, self).__init__(name=name, url=url) + self._links = _links + self.settings = settings diff --git a/vsts/vsts/work/v4_0/models/board_chart_reference.py b/vsts/vsts/work/v4_0/models/board_chart_reference.py new file mode 100644 index 00000000..382d9bfc --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_chart_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardChartReference(Model): + """BoardChartReference. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(BoardChartReference, self).__init__() + self.name = name + self.url = url diff --git a/vsts/vsts/work/v4_0/models/board_column.py b/vsts/vsts/work/v4_0/models/board_column.py new file mode 100644 index 00000000..e994435b --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_column.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardColumn(Model): + """BoardColumn. + + :param column_type: + :type column_type: object + :param description: + :type description: str + :param id: + :type id: str + :param is_split: + :type is_split: bool + :param item_limit: + :type item_limit: int + :param name: + :type name: str + :param state_mappings: + :type state_mappings: dict + """ + + _attribute_map = { + 'column_type': {'key': 'columnType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_split': {'key': 'isSplit', 'type': 'bool'}, + 'item_limit': {'key': 'itemLimit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'state_mappings': {'key': 'stateMappings', 'type': '{str}'} + } + + def __init__(self, column_type=None, description=None, id=None, is_split=None, item_limit=None, name=None, state_mappings=None): + super(BoardColumn, self).__init__() + self.column_type = column_type + self.description = description + self.id = id + self.is_split = is_split + self.item_limit = item_limit + self.name = name + self.state_mappings = state_mappings diff --git a/vsts/vsts/work/v4_0/models/board_fields.py b/vsts/vsts/work/v4_0/models/board_fields.py new file mode 100644 index 00000000..988ebe21 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_fields.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardFields(Model): + """BoardFields. + + :param column_field: + :type column_field: :class:`FieldReference ` + :param done_field: + :type done_field: :class:`FieldReference ` + :param row_field: + :type row_field: :class:`FieldReference ` + """ + + _attribute_map = { + 'column_field': {'key': 'columnField', 'type': 'FieldReference'}, + 'done_field': {'key': 'doneField', 'type': 'FieldReference'}, + 'row_field': {'key': 'rowField', 'type': 'FieldReference'} + } + + def __init__(self, column_field=None, done_field=None, row_field=None): + super(BoardFields, self).__init__() + self.column_field = column_field + self.done_field = done_field + self.row_field = row_field diff --git a/vsts/vsts/work/v4_0/models/board_filter_settings.py b/vsts/vsts/work/v4_0/models/board_filter_settings.py new file mode 100644 index 00000000..500883d4 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_filter_settings.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardFilterSettings(Model): + """BoardFilterSettings. + + :param criteria: + :type criteria: :class:`FilterModel ` + :param parent_work_item_ids: + :type parent_work_item_ids: list of int + :param query_text: + :type query_text: str + """ + + _attribute_map = { + 'criteria': {'key': 'criteria', 'type': 'FilterModel'}, + 'parent_work_item_ids': {'key': 'parentWorkItemIds', 'type': '[int]'}, + 'query_text': {'key': 'queryText', 'type': 'str'} + } + + def __init__(self, criteria=None, parent_work_item_ids=None, query_text=None): + super(BoardFilterSettings, self).__init__() + self.criteria = criteria + self.parent_work_item_ids = parent_work_item_ids + self.query_text = query_text diff --git a/vsts/vsts/work/v4_0/models/board_reference.py b/vsts/vsts/work/v4_0/models/board_reference.py new file mode 100644 index 00000000..6380e11e --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardReference(Model): + """BoardReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(BoardReference, self).__init__() + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/work/v4_0/models/board_row.py b/vsts/vsts/work/v4_0/models/board_row.py new file mode 100644 index 00000000..313e4810 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_row.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardRow(Model): + """BoardRow. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(BoardRow, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/work/v4_0/models/board_suggested_value.py b/vsts/vsts/work/v4_0/models/board_suggested_value.py new file mode 100644 index 00000000..058045af --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_suggested_value.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardSuggestedValue(Model): + """BoardSuggestedValue. + + :param name: + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(BoardSuggestedValue, self).__init__() + self.name = name diff --git a/vsts/vsts/work/v4_0/models/board_user_settings.py b/vsts/vsts/work/v4_0/models/board_user_settings.py new file mode 100644 index 00000000..d20fbc57 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/board_user_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardUserSettings(Model): + """BoardUserSettings. + + :param auto_refresh_state: + :type auto_refresh_state: bool + """ + + _attribute_map = { + 'auto_refresh_state': {'key': 'autoRefreshState', 'type': 'bool'} + } + + def __init__(self, auto_refresh_state=None): + super(BoardUserSettings, self).__init__() + self.auto_refresh_state = auto_refresh_state diff --git a/vsts/vsts/work/v4_0/models/capacity_patch.py b/vsts/vsts/work/v4_0/models/capacity_patch.py new file mode 100644 index 00000000..dbd8c31d --- /dev/null +++ b/vsts/vsts/work/v4_0/models/capacity_patch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CapacityPatch(Model): + """CapacityPatch. + + :param activities: + :type activities: list of :class:`Activity ` + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, activities=None, days_off=None): + super(CapacityPatch, self).__init__() + self.activities = activities + self.days_off = days_off diff --git a/vsts/vsts/work/v4_0/models/category_configuration.py b/vsts/vsts/work/v4_0/models/category_configuration.py new file mode 100644 index 00000000..2a986338 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/category_configuration.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CategoryConfiguration(Model): + """CategoryConfiguration. + + :param name: Name + :type name: str + :param reference_name: Category Reference Name + :type reference_name: str + :param work_item_types: Work item types for the backlog category + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, name=None, reference_name=None, work_item_types=None): + super(CategoryConfiguration, self).__init__() + self.name = name + self.reference_name = reference_name + self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_0/models/create_plan.py b/vsts/vsts/work/v4_0/models/create_plan.py new file mode 100644 index 00000000..e0fe8aa2 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/create_plan.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CreatePlan(Model): + """CreatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param type: Type of plan to create. + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, type=None): + super(CreatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.type = type diff --git a/vsts/vsts/work/v4_0/models/date_range.py b/vsts/vsts/work/v4_0/models/date_range.py new file mode 100644 index 00000000..94694335 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/date_range.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DateRange(Model): + """DateRange. + + :param end: End of the date range. + :type end: datetime + :param start: Start of the date range. + :type start: datetime + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'iso-8601'}, + 'start': {'key': 'start', 'type': 'iso-8601'} + } + + def __init__(self, end=None, start=None): + super(DateRange, self).__init__() + self.end = end + self.start = start diff --git a/vsts/vsts/work/v4_0/models/delivery_view_data.py b/vsts/vsts/work/v4_0/models/delivery_view_data.py new file mode 100644 index 00000000..459e1fb2 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/delivery_view_data.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------------------------- +# 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 .plan_view_data import PlanViewData + + +class DeliveryViewData(PlanViewData): + """DeliveryViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + :param child_id_to_parent_id_map: Work item child id to parenet id map + :type child_id_to_parent_id_map: dict + :param criteria_status: Filter criteria status of the timeline + :type criteria_status: :class:`TimelineCriteriaStatus ` + :param end_date: The end date of the delivery view data + :type end_date: datetime + :param start_date: The start date for the delivery view data + :type start_date: datetime + :param teams: All the team data + :type teams: list of :class:`TimelineTeamData ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'}, + 'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'teams': {'key': 'teams', 'type': '[TimelineTeamData]'} + } + + def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None): + super(DeliveryViewData, self).__init__(id=id, revision=revision) + self.child_id_to_parent_id_map = child_id_to_parent_id_map + self.criteria_status = criteria_status + self.end_date = end_date + self.start_date = start_date + self.teams = teams diff --git a/vsts/vsts/work/v4_0/models/field_reference.py b/vsts/vsts/work/v4_0/models/field_reference.py new file mode 100644 index 00000000..6741b93e --- /dev/null +++ b/vsts/vsts/work/v4_0/models/field_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FieldReference(Model): + """FieldReference. + + :param reference_name: fieldRefName for the field + :type reference_name: str + :param url: Full http link to more information about the field + :type url: str + """ + + _attribute_map = { + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, reference_name=None, url=None): + super(FieldReference, self).__init__() + self.reference_name = reference_name + self.url = url diff --git a/vsts/vsts/work/v4_0/models/field_setting.py b/vsts/vsts/work/v4_0/models/field_setting.py new file mode 100644 index 00000000..28a2b6a6 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/field_setting.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + + +class FieldSetting(dict): + """FieldSetting. + + """ + + _attribute_map = { + } + + def __init__(self): + super(FieldSetting, self).__init__() diff --git a/vsts/vsts/work/v4_0/models/filter_clause.py b/vsts/vsts/work/v4_0/models/filter_clause.py new file mode 100644 index 00000000..1bb06642 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/filter_clause.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FilterClause(Model): + """FilterClause. + + :param field_name: + :type field_name: str + :param index: + :type index: int + :param logical_operator: + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(FilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value diff --git a/vsts/vsts/work/v4_0/models/filter_group.py b/vsts/vsts/work/v4_0/models/filter_group.py new file mode 100644 index 00000000..b7f7142e --- /dev/null +++ b/vsts/vsts/work/v4_0/models/filter_group.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FilterGroup(Model): + """FilterGroup. + + :param end: + :type end: int + :param level: + :type level: int + :param start: + :type start: int + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'int'}, + 'level': {'key': 'level', 'type': 'int'}, + 'start': {'key': 'start', 'type': 'int'} + } + + def __init__(self, end=None, level=None, start=None): + super(FilterGroup, self).__init__() + self.end = end + self.level = level + self.start = start diff --git a/vsts/vsts/work/v4_0/models/filter_model.py b/vsts/vsts/work/v4_0/models/filter_model.py new file mode 100644 index 00000000..bb6acce6 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/filter_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FilterModel(Model): + """FilterModel. + + :param clauses: + :type clauses: list of :class:`FilterClause ` + :param groups: + :type groups: list of :class:`FilterGroup ` + :param max_group_level: + :type max_group_level: int + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, + 'groups': {'key': 'groups', 'type': '[FilterGroup]'}, + 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} + } + + def __init__(self, clauses=None, groups=None, max_group_level=None): + super(FilterModel, self).__init__() + self.clauses = clauses + self.groups = groups + self.max_group_level = max_group_level diff --git a/vsts/vsts/work/v4_0/models/identity_ref.py b/vsts/vsts/work/v4_0/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/work/v4_0/models/member.py b/vsts/vsts/work/v4_0/models/member.py new file mode 100644 index 00000000..27ca2b67 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/member.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Member(Model): + """Member. + + :param display_name: + :type display_name: str + :param id: + :type id: str + :param image_url: + :type image_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, image_url=None, unique_name=None, url=None): + super(Member, self).__init__() + self.display_name = display_name + self.id = id + self.image_url = image_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/work/v4_0/models/parent_child_wIMap.py b/vsts/vsts/work/v4_0/models/parent_child_wIMap.py new file mode 100644 index 00000000..87678f18 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/parent_child_wIMap.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ParentChildWIMap(Model): + """ParentChildWIMap. + + :param child_work_item_ids: + :type child_work_item_ids: list of int + :param id: + :type id: int + :param title: + :type title: str + """ + + _attribute_map = { + 'child_work_item_ids': {'key': 'childWorkItemIds', 'type': '[int]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, child_work_item_ids=None, id=None, title=None): + super(ParentChildWIMap, self).__init__() + self.child_work_item_ids = child_work_item_ids + self.id = id + self.title = title diff --git a/vsts/vsts/work/v4_0/models/plan.py b/vsts/vsts/work/v4_0/models/plan.py new file mode 100644 index 00000000..05e3b2fd --- /dev/null +++ b/vsts/vsts/work/v4_0/models/plan.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Plan(Model): + """Plan. + + :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type created_by_identity: :class:`IdentityRef ` + :param created_date: Date when the plan was created + :type created_date: datetime + :param description: Description of the plan + :type description: str + :param id: Id of the plan + :type id: str + :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type modified_by_identity: :class:`IdentityRef ` + :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. + :type modified_date: datetime + :param name: Name of the plan + :type name: str + :param properties: The PlanPropertyCollection instance associated with the plan. These are dependent on the type of the plan. For example, DeliveryTimelineView, it would be of type DeliveryViewPropertyCollection. + :type properties: object + :param revision: Revision of the plan. Used to safeguard users from overwriting each other's changes. + :type revision: int + :param type: Type of the plan + :type type: object + :param url: The resource url to locate the plan via rest api + :type url: str + :param user_permissions: Bit flag indicating set of permissions a user has to the plan. + :type user_permissions: object + """ + + _attribute_map = { + 'created_by_identity': {'key': 'createdByIdentity', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by_identity': {'key': 'modifiedByIdentity', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_permissions': {'key': 'userPermissions', 'type': 'object'} + } + + def __init__(self, created_by_identity=None, created_date=None, description=None, id=None, modified_by_identity=None, modified_date=None, name=None, properties=None, revision=None, type=None, url=None, user_permissions=None): + super(Plan, self).__init__() + self.created_by_identity = created_by_identity + self.created_date = created_date + self.description = description + self.id = id + self.modified_by_identity = modified_by_identity + self.modified_date = modified_date + self.name = name + self.properties = properties + self.revision = revision + self.type = type + self.url = url + self.user_permissions = user_permissions diff --git a/vsts/vsts/work/v4_0/models/plan_view_data.py b/vsts/vsts/work/v4_0/models/plan_view_data.py new file mode 100644 index 00000000..fb99dc33 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/plan_view_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PlanViewData(Model): + """PlanViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(PlanViewData, self).__init__() + self.id = id + self.revision = revision diff --git a/vsts/vsts/work/v4_0/models/process_configuration.py b/vsts/vsts/work/v4_0/models/process_configuration.py new file mode 100644 index 00000000..d6aad164 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/process_configuration.py @@ -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.serialization import Model + + +class ProcessConfiguration(Model): + """ProcessConfiguration. + + :param bug_work_items: Details about bug work items + :type bug_work_items: :class:`CategoryConfiguration ` + :param portfolio_backlogs: Details about portfolio backlogs + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :param requirement_backlog: Details of requirement backlog + :type requirement_backlog: :class:`CategoryConfiguration ` + :param task_backlog: Details of task backlog + :type task_backlog: :class:`CategoryConfiguration ` + :param type_fields: Type fields for the process configuration + :type type_fields: dict + :param url: + :type url: str + """ + + _attribute_map = { + 'bug_work_items': {'key': 'bugWorkItems', 'type': 'CategoryConfiguration'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[CategoryConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'CategoryConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'CategoryConfiguration'}, + 'type_fields': {'key': 'typeFields', 'type': '{WorkItemFieldReference}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, bug_work_items=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, type_fields=None, url=None): + super(ProcessConfiguration, self).__init__() + self.bug_work_items = bug_work_items + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.type_fields = type_fields + self.url = url diff --git a/vsts/vsts/work/v4_0/models/reference_links.py b/vsts/vsts/work/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/work/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/work/v4_0/models/rule.py b/vsts/vsts/work/v4_0/models/rule.py new file mode 100644 index 00000000..faf0f574 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/rule.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Rule(Model): + """Rule. + + :param clauses: + :type clauses: list of :class:`FilterClause ` + :param filter: + :type filter: str + :param is_enabled: + :type is_enabled: str + :param name: + :type name: str + :param settings: + :type settings: :class:`attribute ` + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, + 'filter': {'key': 'filter', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'settings': {'key': 'settings', 'type': 'attribute'} + } + + def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): + super(Rule, self).__init__() + self.clauses = clauses + self.filter = filter + self.is_enabled = is_enabled + self.name = name + self.settings = settings diff --git a/vsts/vsts/work/v4_0/models/team_context.py b/vsts/vsts/work/v4_0/models/team_context.py new file mode 100644 index 00000000..18418ce7 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_context.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id diff --git a/vsts/vsts/work/v4_0/models/team_field_value.py b/vsts/vsts/work/v4_0/models/team_field_value.py new file mode 100644 index 00000000..08d7ad84 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_field_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamFieldValue(Model): + """TeamFieldValue. + + :param include_children: + :type include_children: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'include_children': {'key': 'includeChildren', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, include_children=None, value=None): + super(TeamFieldValue, self).__init__() + self.include_children = include_children + self.value = value diff --git a/vsts/vsts/work/v4_0/models/team_field_values.py b/vsts/vsts/work/v4_0/models/team_field_values.py new file mode 100644 index 00000000..52254b57 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_field_values.py @@ -0,0 +1,39 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamFieldValues(TeamSettingsDataContractBase): + """TeamFieldValues. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param default_value: The default team field value + :type default_value: str + :param field: Shallow ref to the field being used as a team field + :type field: :class:`FieldReference ` + :param values: Collection of all valid team field values + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'FieldReference'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, _links=None, url=None, default_value=None, field=None, values=None): + super(TeamFieldValues, self).__init__(_links=_links, url=url) + self.default_value = default_value + self.field = field + self.values = values diff --git a/vsts/vsts/work/v4_0/models/team_field_values_patch.py b/vsts/vsts/work/v4_0/models/team_field_values_patch.py new file mode 100644 index 00000000..acc13dbb --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_field_values_patch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamFieldValuesPatch(Model): + """TeamFieldValuesPatch. + + :param default_value: + :type default_value: str + :param values: + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, default_value=None, values=None): + super(TeamFieldValuesPatch, self).__init__() + self.default_value = default_value + self.values = values diff --git a/vsts/vsts/work/v4_0/models/team_iteration_attributes.py b/vsts/vsts/work/v4_0/models/team_iteration_attributes.py new file mode 100644 index 00000000..1529ee88 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_iteration_attributes.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamIterationAttributes(Model): + """TeamIterationAttributes. + + :param finish_date: + :type finish_date: datetime + :param start_date: + :type start_date: datetime + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'} + } + + def __init__(self, finish_date=None, start_date=None): + super(TeamIterationAttributes, self).__init__() + self.finish_date = finish_date + self.start_date = start_date diff --git a/vsts/vsts/work/v4_0/models/team_member_capacity.py b/vsts/vsts/work/v4_0/models/team_member_capacity.py new file mode 100644 index 00000000..eed15795 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_member_capacity.py @@ -0,0 +1,39 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamMemberCapacity(TeamSettingsDataContractBase): + """TeamMemberCapacity. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param activities: Collection of capacities associated with the team member + :type activities: list of :class:`Activity ` + :param days_off: The days off associated with the team member + :type days_off: list of :class:`DateRange ` + :param team_member: Shallow Ref to the associated team member + :type team_member: :class:`Member ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'}, + 'team_member': {'key': 'teamMember', 'type': 'Member'} + } + + def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None): + super(TeamMemberCapacity, self).__init__(_links=_links, url=url) + self.activities = activities + self.days_off = days_off + self.team_member = team_member diff --git a/vsts/vsts/work/v4_0/models/team_setting.py b/vsts/vsts/work/v4_0/models/team_setting.py new file mode 100644 index 00000000..3a35cfa7 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_setting.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamSetting(TeamSettingsDataContractBase): + """TeamSetting. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param backlog_iteration: Backlog Iteration + :type backlog_iteration: :class:`TeamSettingsIteration ` + :param backlog_visibilities: Information about categories that are visible on the backlog. + :type backlog_visibilities: dict + :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) + :type bugs_behavior: object + :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. + :type default_iteration: :class:`TeamSettingsIteration ` + :param default_iteration_macro: Default Iteration macro (if any) + :type default_iteration_macro: str + :param working_days: Days that the team is working + :type working_days: list of DayOfWeek + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'TeamSettingsIteration'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + } + + def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSetting, self).__init__(_links=_links, url=url) + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days diff --git a/vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py b/vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py new file mode 100644 index 00000000..c490b84d --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamSettingsDataContractBase(Model): + """TeamSettingsDataContractBase. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, url=None): + super(TeamSettingsDataContractBase, self).__init__() + self._links = _links + self.url = url diff --git a/vsts/vsts/work/v4_0/models/team_settings_days_off.py b/vsts/vsts/work/v4_0/models/team_settings_days_off.py new file mode 100644 index 00000000..7bc53a90 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_settings_days_off.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamSettingsDaysOff(TeamSettingsDataContractBase): + """TeamSettingsDaysOff. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, _links=None, url=None, days_off=None): + super(TeamSettingsDaysOff, self).__init__(_links=_links, url=url) + self.days_off = days_off diff --git a/vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py b/vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py new file mode 100644 index 00000000..1a40dd34 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamSettingsDaysOffPatch(Model): + """TeamSettingsDaysOffPatch. + + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, days_off=None): + super(TeamSettingsDaysOffPatch, self).__init__() + self.days_off = days_off diff --git a/vsts/vsts/work/v4_0/models/team_settings_iteration.py b/vsts/vsts/work/v4_0/models/team_settings_iteration.py new file mode 100644 index 00000000..633f536c --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_settings_iteration.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamSettingsIteration(TeamSettingsDataContractBase): + """TeamSettingsIteration. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param attributes: Attributes such as start and end date + :type attributes: :class:`TeamIterationAttributes ` + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param path: Relative path of the iteration + :type path: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'TeamIterationAttributes'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, _links=None, url=None, attributes=None, id=None, name=None, path=None): + super(TeamSettingsIteration, self).__init__(_links=_links, url=url) + self.attributes = attributes + self.id = id + self.name = name + self.path = path diff --git a/vsts/vsts/work/v4_0/models/team_settings_patch.py b/vsts/vsts/work/v4_0/models/team_settings_patch.py new file mode 100644 index 00000000..3942385c --- /dev/null +++ b/vsts/vsts/work/v4_0/models/team_settings_patch.py @@ -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.serialization import Model + + +class TeamSettingsPatch(Model): + """TeamSettingsPatch. + + :param backlog_iteration: + :type backlog_iteration: str + :param backlog_visibilities: + :type backlog_visibilities: dict + :param bugs_behavior: + :type bugs_behavior: object + :param default_iteration: + :type default_iteration: str + :param default_iteration_macro: + :type default_iteration_macro: str + :param working_days: + :type working_days: list of DayOfWeek + """ + + _attribute_map = { + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'str'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + } + + def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSettingsPatch, self).__init__() + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days diff --git a/vsts/vsts/work/v4_0/models/timeline_criteria_status.py b/vsts/vsts/work/v4_0/models/timeline_criteria_status.py new file mode 100644 index 00000000..d34fc208 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/timeline_criteria_status.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineCriteriaStatus(Model): + """TimelineCriteriaStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineCriteriaStatus, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/work/v4_0/models/timeline_iteration_status.py b/vsts/vsts/work/v4_0/models/timeline_iteration_status.py new file mode 100644 index 00000000..56ad40fb --- /dev/null +++ b/vsts/vsts/work/v4_0/models/timeline_iteration_status.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineIterationStatus(Model): + """TimelineIterationStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineIterationStatus, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/work/v4_0/models/timeline_team_data.py b/vsts/vsts/work/v4_0/models/timeline_team_data.py new file mode 100644 index 00000000..6d29a511 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/timeline_team_data.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineTeamData(Model): + """TimelineTeamData. + + :param backlog: Backlog matching the mapped backlog associated with this team. + :type backlog: :class:`BacklogLevel ` + :param field_reference_names: The field reference names of the work item data + :type field_reference_names: list of str + :param id: The id of the team + :type id: str + :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. + :type is_expanded: bool + :param iterations: The iteration data, including the work items, in the queried date range. + :type iterations: list of :class:`TimelineTeamIteration ` + :param name: The name of the team + :type name: str + :param order_by_field: The order by field name of this team + :type order_by_field: str + :param partially_paged_field_reference_names: The field reference names of the partially paged work items, such as ID, WorkItemType + :type partially_paged_field_reference_names: list of str + :param project_id: The project id the team belongs team + :type project_id: str + :param status: Status for this team. + :type status: :class:`TimelineTeamStatus ` + :param team_field_default_value: The team field default value + :type team_field_default_value: str + :param team_field_name: The team field name of this team + :type team_field_name: str + :param team_field_values: The team field values + :type team_field_values: list of :class:`TeamFieldValue ` + :param work_item_type_colors: Colors for the work item types. + :type work_item_type_colors: list of :class:`WorkItemColor ` + """ + + _attribute_map = { + 'backlog': {'key': 'backlog', 'type': 'BacklogLevel'}, + 'field_reference_names': {'key': 'fieldReferenceNames', 'type': '[str]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'iterations': {'key': 'iterations', 'type': '[TimelineTeamIteration]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order_by_field': {'key': 'orderByField', 'type': 'str'}, + 'partially_paged_field_reference_names': {'key': 'partiallyPagedFieldReferenceNames', 'type': '[str]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'TimelineTeamStatus'}, + 'team_field_default_value': {'key': 'teamFieldDefaultValue', 'type': 'str'}, + 'team_field_name': {'key': 'teamFieldName', 'type': 'str'}, + 'team_field_values': {'key': 'teamFieldValues', 'type': '[TeamFieldValue]'}, + 'work_item_type_colors': {'key': 'workItemTypeColors', 'type': '[WorkItemColor]'} + } + + def __init__(self, backlog=None, field_reference_names=None, id=None, is_expanded=None, iterations=None, name=None, order_by_field=None, partially_paged_field_reference_names=None, project_id=None, status=None, team_field_default_value=None, team_field_name=None, team_field_values=None, work_item_type_colors=None): + super(TimelineTeamData, self).__init__() + self.backlog = backlog + self.field_reference_names = field_reference_names + self.id = id + self.is_expanded = is_expanded + self.iterations = iterations + self.name = name + self.order_by_field = order_by_field + self.partially_paged_field_reference_names = partially_paged_field_reference_names + self.project_id = project_id + self.status = status + self.team_field_default_value = team_field_default_value + self.team_field_name = team_field_name + self.team_field_values = team_field_values + self.work_item_type_colors = work_item_type_colors diff --git a/vsts/vsts/work/v4_0/models/timeline_team_iteration.py b/vsts/vsts/work/v4_0/models/timeline_team_iteration.py new file mode 100644 index 00000000..36b8eaaf --- /dev/null +++ b/vsts/vsts/work/v4_0/models/timeline_team_iteration.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineTeamIteration(Model): + """TimelineTeamIteration. + + :param finish_date: The end date of the iteration + :type finish_date: datetime + :param name: The iteration name + :type name: str + :param partially_paged_work_items: All the partially paged workitems in this iteration. + :type partially_paged_work_items: list of [object] + :param path: The iteration path + :type path: str + :param start_date: The start date of the iteration + :type start_date: datetime + :param status: The status of this iteration + :type status: :class:`TimelineIterationStatus ` + :param work_items: The work items that have been paged in this iteration + :type work_items: list of [object] + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'partially_paged_work_items': {'key': 'partiallyPagedWorkItems', 'type': '[[object]]'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'TimelineIterationStatus'}, + 'work_items': {'key': 'workItems', 'type': '[[object]]'} + } + + def __init__(self, finish_date=None, name=None, partially_paged_work_items=None, path=None, start_date=None, status=None, work_items=None): + super(TimelineTeamIteration, self).__init__() + self.finish_date = finish_date + self.name = name + self.partially_paged_work_items = partially_paged_work_items + self.path = path + self.start_date = start_date + self.status = status + self.work_items = work_items diff --git a/vsts/vsts/work/v4_0/models/timeline_team_status.py b/vsts/vsts/work/v4_0/models/timeline_team_status.py new file mode 100644 index 00000000..ba0e89d1 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/timeline_team_status.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineTeamStatus(Model): + """TimelineTeamStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineTeamStatus, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/work/v4_0/models/update_plan.py b/vsts/vsts/work/v4_0/models/update_plan.py new file mode 100644 index 00000000..901ad0ed --- /dev/null +++ b/vsts/vsts/work/v4_0/models/update_plan.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdatePlan(Model): + """UpdatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param revision: Revision of the plan that was updated - the value used here should match the one the server gave the client in the Plan. + :type revision: int + :param type: Type of the plan + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, revision=None, type=None): + super(UpdatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.revision = revision + self.type = type diff --git a/vsts/vsts/work/v4_0/models/work_item_color.py b/vsts/vsts/work/v4_0/models/work_item_color.py new file mode 100644 index 00000000..7d2c9de7 --- /dev/null +++ b/vsts/vsts/work/v4_0/models/work_item_color.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemColor(Model): + """WorkItemColor. + + :param icon: + :type icon: str + :param primary_color: + :type primary_color: str + :param work_item_type_name: + :type work_item_type_name: str + """ + + _attribute_map = { + 'icon': {'key': 'icon', 'type': 'str'}, + 'primary_color': {'key': 'primaryColor', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, icon=None, primary_color=None, work_item_type_name=None): + super(WorkItemColor, self).__init__() + self.icon = icon + self.primary_color = primary_color + self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work/v4_0/models/work_item_field_reference.py b/vsts/vsts/work/v4_0/models/work_item_field_reference.py new file mode 100644 index 00000000..625dbfdf --- /dev/null +++ b/vsts/vsts/work/v4_0/models/work_item_field_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemFieldReference(Model): + """WorkItemFieldReference. + + :param name: + :type name: str + :param reference_name: + :type reference_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(WorkItemFieldReference, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url diff --git a/vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py b/vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py new file mode 100644 index 00000000..de9a728b --- /dev/null +++ b/vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTrackingResourceReference(Model): + """WorkItemTrackingResourceReference. + + :param url: + :type url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, url=None): + super(WorkItemTrackingResourceReference, self).__init__() + self.url = url diff --git a/vsts/vsts/work/v4_0/models/work_item_type_reference.py b/vsts/vsts/work/v4_0/models/work_item_type_reference.py new file mode 100644 index 00000000..29f8ec5b --- /dev/null +++ b/vsts/vsts/work/v4_0/models/work_item_type_reference.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference + + +class WorkItemTypeReference(WorkItemTrackingResourceReference): + """WorkItemTypeReference. + + :param url: + :type url: str + :param name: + :type name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, url=None, name=None): + super(WorkItemTypeReference, self).__init__(url=url) + self.name = name diff --git a/vsts/vsts/work/v4_0/models/work_item_type_state_info.py b/vsts/vsts/work/v4_0/models/work_item_type_state_info.py new file mode 100644 index 00000000..7ff5045e --- /dev/null +++ b/vsts/vsts/work/v4_0/models/work_item_type_state_info.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeStateInfo(Model): + """WorkItemTypeStateInfo. + + :param states: State name to state category map + :type states: dict + :param work_item_type_name: Work Item type name + :type work_item_type_name: str + """ + + _attribute_map = { + 'states': {'key': 'states', 'type': '{str}'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, states=None, work_item_type_name=None): + super(WorkItemTypeStateInfo, self).__init__() + self.states = states + self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work/v4_0/work_client.py b/vsts/vsts/work/v4_0/work_client.py new file mode 100644 index 00000000..a259b58b --- /dev/null +++ b/vsts/vsts/work/v4_0/work_client.py @@ -0,0 +1,1243 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkClient(VssClient): + """Work + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkClient, 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 = '1D4F49F9-02B9-4E26-B826-2CDB6195F2A9' + + def get_backlog_configurations(self, team_context): + """GetBacklogConfigurations. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='7799f497-3cb5-4f16-ad4f-5cd06012db64', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('BacklogConfiguration', response) + + def get_column_suggested_values(self, project=None): + """GetColumnSuggestedValues. + :param str project: Project ID or project name + :rtype: [BoardSuggestedValue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardSuggestedValue]', response) + + def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): + """GetBoardMappingParentItems. + [Preview API] Returns the list of parent field filter model for the given list of workitem ids + :param :class:` ` team_context: The team context for the operation + :param str child_backlog_context_category_ref_name: + :param [int] workitem_ids: + :rtype: [ParentChildWIMap] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if child_backlog_context_category_ref_name is not None: + query_parameters['childBacklogContextCategoryRefName'] = self._serialize.query('child_backlog_context_category_ref_name', child_backlog_context_category_ref_name, 'str') + if workitem_ids is not None: + workitem_ids = ",".join(map(str, workitem_ids)) + query_parameters['workitemIds'] = self._serialize.query('workitem_ids', workitem_ids, 'str') + response = self._send(http_method='GET', + location_id='186abea3-5c35-432f-9e28-7a15b4312a0e', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ParentChildWIMap]', response) + + def get_row_suggested_values(self, project=None): + """GetRowSuggestedValues. + :param str project: Project ID or project name + :rtype: [BoardSuggestedValue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardSuggestedValue]', response) + + def get_board(self, team_context, id): + """GetBoard. + Get board + :param :class:` ` team_context: The team context for the operation + :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='4.0', + route_values=route_values) + return self._deserialize('Board', response) + + def get_boards(self, team_context): + """GetBoards. + Get boards + :param :class:` ` team_context: The team context for the operation + :rtype: [BoardReference] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardReference]', response) + + def set_board_options(self, options, team_context, id): + """SetBoardOptions. + Update board options + :param {str} options: options to updated + :param :class:` ` team_context: The team context for the operation + :param str id: identifier for board, either category plural name (Eg:"Stories") or guid + :rtype: {str} + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + content = self._serialize.body(options, '{str}') + response = self._send(http_method='PUT', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('{str}', response) + + def get_board_user_settings(self, team_context, board): + """GetBoardUserSettings. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('BoardUserSettings', response) + + def update_board_user_settings(self, board_user_settings, team_context, board): + """UpdateBoardUserSettings. + [Preview API] Update board user settings for the board id + :param {str} board_user_settings: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_user_settings, '{str}') + response = self._send(http_method='PATCH', + location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BoardUserSettings', response) + + def get_capacities(self, team_context, iteration_id): + """GetCapacities. + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: + :rtype: [TeamMemberCapacity] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TeamMemberCapacity]', response) + + def get_capacity(self, team_context, iteration_id, team_member_id): + """GetCapacity. + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: + :param str team_member_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + if team_member_id is not None: + route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') + response = self._send(http_method='GET', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.0', + route_values=route_values) + return self._deserialize('TeamMemberCapacity', response) + + def replace_capacities(self, capacities, team_context, iteration_id): + """ReplaceCapacities. + :param [TeamMemberCapacity] capacities: + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: + :rtype: [TeamMemberCapacity] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + content = self._serialize.body(capacities, '[TeamMemberCapacity]') + response = self._send(http_method='PUT', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TeamMemberCapacity]', response) + + def update_capacity(self, patch, team_context, iteration_id, team_member_id): + """UpdateCapacity. + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: + :param str team_member_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + if team_member_id is not None: + route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') + content = self._serialize.body(patch, 'CapacityPatch') + response = self._send(http_method='PATCH', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TeamMemberCapacity', response) + + def get_board_card_rule_settings(self, team_context, board): + """GetBoardCardRuleSettings. + [Preview API] Get board card Rule settings for the board id or board by name + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('BoardCardRuleSettings', response) + + def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): + """UpdateBoardCardRuleSettings. + [Preview API] Update board card Rule settings for the board id or board by name + :param :class:` ` board_card_rule_settings: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_card_rule_settings, 'BoardCardRuleSettings') + response = self._send(http_method='PATCH', + location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BoardCardRuleSettings', response) + + def get_board_card_settings(self, team_context, board): + """GetBoardCardSettings. + Get board card settings for the board id or board by name + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', + version='4.0', + route_values=route_values) + return self._deserialize('BoardCardSettings', response) + + def update_board_card_settings(self, board_card_settings_to_save, team_context, board): + """UpdateBoardCardSettings. + Update board card settings for the board id or board by name + :param :class:` ` board_card_settings_to_save: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_card_settings_to_save, 'BoardCardSettings') + response = self._send(http_method='PUT', + location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('BoardCardSettings', response) + + def get_board_chart(self, team_context, board, name): + """GetBoardChart. + Get a board chart + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :param str name: The chart name + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='4.0', + route_values=route_values) + return self._deserialize('BoardChart', response) + + def get_board_charts(self, team_context, board): + """GetBoardCharts. + Get board charts + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :rtype: [BoardChartReference] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardChartReference]', response) + + def update_board_chart(self, chart, team_context, board, name): + """UpdateBoardChart. + Update a board chart + :param :class:` ` chart: + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :param str name: The chart name + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + content = self._serialize.body(chart, 'BoardChart') + response = self._send(http_method='PATCH', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('BoardChart', response) + + def get_board_columns(self, team_context, board): + """GetBoardColumns. + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: [BoardColumn] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardColumn]', response) + + def update_board_columns(self, board_columns, team_context, board): + """UpdateBoardColumns. + :param [BoardColumn] board_columns: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: [BoardColumn] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_columns, '[BoardColumn]') + response = self._send(http_method='PUT', + location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[BoardColumn]', response) + + def get_delivery_timeline_data(self, project, id, revision=None, start_date=None, end_date=None): + """GetDeliveryTimelineData. + [Preview API] Get Delivery View Data + :param str project: Project ID or project name + :param str id: Identifier for delivery view + :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. + :param datetime start_date: The start date of timeline + :param datetime end_date: The end date of timeline + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if revision is not None: + query_parameters['revision'] = self._serialize.query('revision', revision, 'int') + if start_date is not None: + query_parameters['startDate'] = self._serialize.query('start_date', start_date, 'iso-8601') + if end_date is not None: + query_parameters['endDate'] = self._serialize.query('end_date', end_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='bdd0834e-101f-49f0-a6ae-509f384a12b4', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeliveryViewData', response) + + def delete_team_iteration(self, team_context, id): + """DeleteTeamIteration. + :param :class:` ` team_context: The team context for the operation + :param str id: + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + self._send(http_method='DELETE', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.0', + route_values=route_values) + + def get_team_iteration(self, team_context, id): + """GetTeamIteration. + :param :class:` ` team_context: The team context for the operation + :param str id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.0', + route_values=route_values) + return self._deserialize('TeamSettingsIteration', response) + + def get_team_iterations(self, team_context, timeframe=None): + """GetTeamIterations. + :param :class:` ` team_context: The team context for the operation + :param str timeframe: + :rtype: [TeamSettingsIteration] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if timeframe is not None: + query_parameters['$timeframe'] = self._serialize.query('timeframe', timeframe, 'str') + response = self._send(http_method='GET', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TeamSettingsIteration]', response) + + def post_team_iteration(self, iteration, team_context): + """PostTeamIteration. + :param :class:` ` iteration: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(iteration, 'TeamSettingsIteration') + response = self._send(http_method='POST', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TeamSettingsIteration', response) + + def create_plan(self, posted_plan, project): + """CreatePlan. + [Preview API] Add a new plan for the team + :param :class:` ` posted_plan: Plan definition + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(posted_plan, 'CreatePlan') + response = self._send(http_method='POST', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Plan', response) + + def delete_plan(self, project, id): + """DeletePlan. + [Preview API] Delete the specified plan + :param str project: Project ID or project name + :param str id: Identifier of the plan + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + self._send(http_method='DELETE', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.0-preview.1', + route_values=route_values) + + def get_plan(self, project, id): + """GetPlan. + [Preview API] Get the information for the specified plan + :param str project: Project ID or project name + :param str id: Identifier of the plan + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('Plan', response) + + def get_plans(self, project): + """GetPlans. + [Preview API] Get the information for all the plans configured for the given team + :param str project: Project ID or project name + :rtype: [Plan] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[Plan]', response) + + def update_plan(self, updated_plan, project, id): + """UpdatePlan. + [Preview API] Update the information for the specified plan + :param :class:` ` updated_plan: Plan definition to be updated + :param str project: Project ID or project name + :param str id: Identifier of the plan + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + content = self._serialize.body(updated_plan, 'UpdatePlan') + response = self._send(http_method='PUT', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Plan', response) + + def get_process_configuration(self, project): + """GetProcessConfiguration. + [Preview API] + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='f901ba42-86d2-4b0c-89c1-3f86d06daa84', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ProcessConfiguration', response) + + def get_board_rows(self, team_context, board): + """GetBoardRows. + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: [BoardRow] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', + version='4.0', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardRow]', response) + + def update_board_rows(self, board_rows, team_context, board): + """UpdateBoardRows. + :param [BoardRow] board_rows: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: [BoardRow] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_rows, '[BoardRow]') + response = self._send(http_method='PUT', + location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[BoardRow]', response) + + def get_team_days_off(self, team_context, iteration_id): + """GetTeamDaysOff. + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', + version='4.0', + route_values=route_values) + return self._deserialize('TeamSettingsDaysOff', response) + + def update_team_days_off(self, days_off_patch, team_context, iteration_id): + """UpdateTeamDaysOff. + :param :class:` ` days_off_patch: + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + content = self._serialize.body(days_off_patch, 'TeamSettingsDaysOffPatch') + response = self._send(http_method='PATCH', + location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TeamSettingsDaysOff', response) + + def get_team_field_values(self, team_context): + """GetTeamFieldValues. + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', + version='4.0', + route_values=route_values) + return self._deserialize('TeamFieldValues', response) + + def update_team_field_values(self, patch, team_context): + """UpdateTeamFieldValues. + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(patch, 'TeamFieldValuesPatch') + response = self._send(http_method='PATCH', + location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TeamFieldValues', response) + + def get_team_settings(self, team_context): + """GetTeamSettings. + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', + version='4.0', + route_values=route_values) + return self._deserialize('TeamSetting', response) + + def update_team_settings(self, team_settings_patch, team_context): + """UpdateTeamSettings. + :param :class:` ` team_settings_patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(team_settings_patch, 'TeamSettingsPatch') + response = self._send(http_method='PATCH', + location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', + version='4.0', + route_values=route_values, + content=content) + return self._deserialize('TeamSetting', response) + From 286110f994a6ebc8738ed599a07064f03b08b78d Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 19 Jan 2018 13:00:03 -0500 Subject: [PATCH 021/191] generate new 4.1 REST Areas at M127 --- vsts/vsts/accounts/v4_1/__init__.py | 7 + vsts/vsts/accounts/v4_1/accounts_client.py | 49 + vsts/vsts/accounts/v4_1/models/__init__.py | 17 + vsts/vsts/accounts/v4_1/models/account.py | 85 + .../models/account_create_info_internal.py | 45 + .../models/account_preferences_internal.py | 33 + vsts/vsts/contributions/v4_1/__init__.py | 7 + .../v4_1/contributions_client.py | 109 + .../contributions/v4_1/models/__init__.py | 59 + .../v4_1/models/client_data_provider_query.py | 31 + .../contributions/v4_1/models/contribution.py | 50 + .../v4_1/models/contribution_base.py | 33 + .../v4_1/models/contribution_constraint.py | 41 + .../v4_1/models/contribution_node_query.py | 33 + .../models/contribution_node_query_result.py | 29 + .../contribution_property_description.py | 37 + .../models/contribution_provider_details.py | 37 + .../v4_1/models/contribution_type.py | 42 + .../v4_1/models/data_provider_context.py | 25 + .../models/data_provider_exception_details.py | 33 + .../v4_1/models/data_provider_query.py | 29 + .../v4_1/models/data_provider_result.py | 41 + .../v4_1/models/extension_event_callback.py | 25 + .../extension_event_callback_collection.py | 49 + .../v4_1/models/extension_file.py | 57 + .../v4_1/models/extension_licensing.py | 25 + .../v4_1/models/extension_manifest.py | 65 + .../v4_1/models/installed_extension.py | 94 + .../v4_1/models/installed_extension_state.py | 33 + .../models/installed_extension_state_issue.py | 33 + .../v4_1/models/licensing_override.py | 29 + .../v4_1/models/resolved_data_provider.py | 33 + .../models/serialized_contribution_node.py | 33 + vsts/vsts/dashboard/v4_1/__init__.py | 7 + vsts/vsts/dashboard/v4_1/dashboard_client.py | 428 +++ vsts/vsts/dashboard/v4_1/models/__init__.py | 45 + vsts/vsts/dashboard/v4_1/models/dashboard.py | 61 + .../dashboard/v4_1/models/dashboard_group.py | 41 + .../v4_1/models/dashboard_group_entry.py | 51 + .../models/dashboard_group_entry_response.py | 51 + .../v4_1/models/dashboard_response.py | 51 + .../dashboard/v4_1/models/lightbox_options.py | 33 + .../dashboard/v4_1/models/reference_links.py | 25 + .../dashboard/v4_1/models/semantic_version.py | 33 + .../dashboard/v4_1/models/team_context.py | 37 + vsts/vsts/dashboard/v4_1/models/widget.py | 105 + .../dashboard/v4_1/models/widget_metadata.py | 105 + .../v4_1/models/widget_metadata_response.py | 29 + .../dashboard/v4_1/models/widget_position.py | 29 + .../dashboard/v4_1/models/widget_response.py | 84 + .../vsts/dashboard/v4_1/models/widget_size.py | 29 + .../v4_1/models/widget_types_response.py | 33 + .../v4_1/models/widgets_versioned_list.py | 29 + .../extension_management/v4_1/__init__.py | 7 + .../v4_1/extension_management_client.py | 135 + .../v4_1/models/__init__.py | 83 + .../v4_1/models/acquisition_operation.py | 37 + .../acquisition_operation_disallow_reason.py | 29 + .../v4_1/models/acquisition_options.py | 41 + .../v4_1/models/contribution.py | 50 + .../v4_1/models/contribution_base.py | 33 + .../v4_1/models/contribution_constraint.py | 41 + .../contribution_property_description.py | 37 + .../v4_1/models/contribution_type.py | 42 + .../models/extension_acquisition_request.py | 45 + .../v4_1/models/extension_authorization.py | 29 + .../v4_1/models/extension_badge.py | 33 + .../v4_1/models/extension_data_collection.py | 37 + .../models/extension_data_collection_query.py | 25 + .../v4_1/models/extension_event_callback.py | 25 + .../extension_event_callback_collection.py | 49 + .../v4_1/models/extension_file.py | 57 + .../v4_1/models/extension_identifier.py | 29 + .../v4_1/models/extension_licensing.py | 25 + .../v4_1/models/extension_manifest.py | 65 + .../v4_1/models/extension_policy.py | 29 + .../v4_1/models/extension_request.py | 49 + .../v4_1/models/extension_share.py | 33 + .../v4_1/models/extension_state.py | 46 + .../v4_1/models/extension_statistic.py | 29 + .../v4_1/models/extension_version.py | 61 + .../v4_1/models/identity_ref.py | 61 + .../v4_1/models/installation_target.py | 45 + .../v4_1/models/installed_extension.py | 94 + .../v4_1/models/installed_extension_query.py | 29 + .../v4_1/models/installed_extension_state.py | 33 + .../models/installed_extension_state_issue.py | 33 + .../v4_1/models/licensing_override.py | 29 + .../v4_1/models/published_extension.py | 89 + .../v4_1/models/publisher_facts.py | 37 + .../v4_1/models/requested_extension.py | 41 + .../v4_1/models/user_extension_policy.py | 33 + vsts/vsts/file_container/v4_1/__init__.py | 7 + .../v4_1/file_container_client.py | 130 + .../file_container/v4_1/models/__init__.py | 15 + .../v4_1/models/file_container.py | 77 + .../v4_1/models/file_container_item.py | 93 + vsts/vsts/gallery/v4_1/__init__.py | 7 + vsts/vsts/gallery/v4_1/gallery_client.py | 1565 +++++++++++ vsts/vsts/gallery/v4_1/models/__init__.py | 125 + .../v4_1/models/acquisition_operation.py | 33 + .../v4_1/models/acquisition_options.py | 37 + vsts/vsts/gallery/v4_1/models/answers.py | 29 + .../vsts/gallery/v4_1/models/asset_details.py | 29 + .../gallery/v4_1/models/azure_publisher.py | 29 + .../models/azure_rest_api_request_model.py | 57 + .../gallery/v4_1/models/categories_result.py | 25 + .../v4_1/models/category_language_title.py | 33 + vsts/vsts/gallery/v4_1/models/concern.py | 43 + vsts/vsts/gallery/v4_1/models/event_counts.py | 57 + .../models/extension_acquisition_request.py | 49 + .../gallery/v4_1/models/extension_badge.py | 33 + .../gallery/v4_1/models/extension_category.py | 45 + .../v4_1/models/extension_daily_stat.py | 37 + .../v4_1/models/extension_daily_stats.py | 41 + .../gallery/v4_1/models/extension_draft.py | 65 + .../v4_1/models/extension_draft_asset.py | 48 + .../v4_1/models/extension_draft_patch.py | 29 + .../gallery/v4_1/models/extension_event.py | 37 + .../gallery/v4_1/models/extension_events.py | 37 + .../gallery/v4_1/models/extension_file.py | 57 + .../v4_1/models/extension_filter_result.py | 33 + .../extension_filter_result_metadata.py | 29 + .../gallery/v4_1/models/extension_package.py | 25 + .../gallery/v4_1/models/extension_payload.py | 53 + .../gallery/v4_1/models/extension_query.py | 33 + .../v4_1/models/extension_query_result.py | 25 + .../gallery/v4_1/models/extension_share.py | 33 + .../v4_1/models/extension_statistic.py | 29 + .../v4_1/models/extension_statistic_update.py | 37 + .../gallery/v4_1/models/extension_version.py | 61 + .../gallery/v4_1/models/filter_criteria.py | 29 + .../v4_1/models/installation_target.py | 45 + .../vsts/gallery/v4_1/models/metadata_item.py | 29 + .../gallery/v4_1/models/notifications_data.py | 33 + .../v4_1/models/product_categories_result.py | 25 + .../gallery/v4_1/models/product_category.py | 37 + .../v4_1/models/published_extension.py | 89 + vsts/vsts/gallery/v4_1/models/publisher.py | 57 + .../gallery/v4_1/models/publisher_facts.py | 37 + .../v4_1/models/publisher_filter_result.py | 25 + .../gallery/v4_1/models/publisher_query.py | 29 + .../v4_1/models/publisher_query_result.py | 25 + vsts/vsts/gallery/v4_1/models/qn_aItem.py | 45 + vsts/vsts/gallery/v4_1/models/query_filter.py | 49 + vsts/vsts/gallery/v4_1/models/question.py | 43 + .../gallery/v4_1/models/questions_result.py | 29 + .../v4_1/models/rating_count_per_rating.py | 29 + vsts/vsts/gallery/v4_1/models/response.py | 39 + vsts/vsts/gallery/v4_1/models/review.py | 69 + vsts/vsts/gallery/v4_1/models/review_patch.py | 33 + vsts/vsts/gallery/v4_1/models/review_reply.py | 53 + .../gallery/v4_1/models/review_summary.py | 33 + .../gallery/v4_1/models/reviews_result.py | 33 + .../v4_1/models/unpackaged_extension_data.py | 85 + .../gallery/v4_1/models/user_identity_ref.py | 29 + .../v4_1/models/user_reported_concern.py | 41 + vsts/vsts/licensing/v4_1/__init__.py | 7 + vsts/vsts/licensing/v4_1/licensing_client.py | 413 +++ vsts/vsts/licensing/v4_1/models/__init__.py | 45 + .../v4_1/models/account_entitlement.py | 57 + .../account_entitlement_update_model.py | 25 + .../models/account_license_extension_usage.py | 61 + .../v4_1/models/account_license_usage.py | 41 + .../licensing/v4_1/models/account_rights.py | 29 + .../v4_1/models/account_user_license.py | 29 + .../v4_1/models/client_rights_container.py | 29 + .../v4_1/models/extension_assignment.py | 37 + .../models/extension_assignment_details.py | 29 + .../v4_1/models/extension_license_data.py | 41 + .../v4_1/models/extension_operation_result.py | 45 + .../v4_1/models/extension_rights_result.py | 41 + .../licensing/v4_1/models/extension_source.py | 33 + .../licensing/v4_1/models/iUsage_right.py | 37 + .../licensing/v4_1/models/identity_ref.py | 61 + vsts/vsts/licensing/v4_1/models/license.py | 25 + .../licensing/v4_1/models/msdn_entitlement.py | 65 + vsts/vsts/notification/v4_1/__init__.py | 7 + .../vsts/notification/v4_1/models/__init__.py | 113 + .../v4_1/models/artifact_filter.py | 40 + .../v4_1/models/base_subscription_filter.py | 29 + .../models/batch_notification_operation.py | 29 + .../notification/v4_1/models/event_actor.py | 29 + .../notification/v4_1/models/event_scope.py | 33 + .../v4_1/models/events_evaluation_result.py | 29 + .../v4_1/models/expression_filter_clause.py | 41 + .../v4_1/models/expression_filter_group.py | 33 + .../v4_1/models/expression_filter_model.py | 33 + .../v4_1/models/field_input_values.py | 46 + .../v4_1/models/field_values_query.py | 35 + .../v4_1/models/iSubscription_channel.py | 25 + .../v4_1/models/iSubscription_filter.py | 29 + .../notification/v4_1/models/identity_ref.py | 61 + .../notification/v4_1/models/input_value.py | 33 + .../notification/v4_1/models/input_values.py | 49 + .../v4_1/models/input_values_error.py | 25 + .../v4_1/models/input_values_query.py | 33 + .../v4_1/models/notification_event_field.py | 41 + .../notification_event_field_operator.py | 29 + .../models/notification_event_field_type.py | 41 + .../models/notification_event_publisher.py | 33 + .../v4_1/models/notification_event_role.py | 33 + .../v4_1/models/notification_event_type.py | 69 + .../notification_event_type_category.py | 29 + .../models/notification_query_condition.py | 37 + .../v4_1/models/notification_reason.py | 29 + .../v4_1/models/notification_statistic.py | 41 + .../models/notification_statistics_query.py | 25 + ...otification_statistics_query_conditions.py | 45 + .../v4_1/models/notification_subscriber.py | 37 + ...tification_subscriber_update_parameters.py | 29 + .../v4_1/models/notification_subscription.py | 89 + ...fication_subscription_create_parameters.py | 41 + .../notification_subscription_template.py | 41 + ...fication_subscription_update_parameters.py | 53 + .../models/notifications_evaluation_result.py | 25 + .../v4_1/models/operator_constraint.py | 29 + .../v4_1/models/reference_links.py | 25 + .../models/subscription_admin_settings.py | 25 + .../subscription_channel_with_address.py | 33 + .../models/subscription_evaluation_request.py | 29 + .../models/subscription_evaluation_result.py | 37 + .../subscription_evaluation_settings.py | 37 + .../v4_1/models/subscription_management.py | 29 + .../v4_1/models/subscription_query.py | 29 + .../models/subscription_query_condition.py | 41 + .../v4_1/models/subscription_scope.py | 30 + .../v4_1/models/subscription_user_settings.py | 25 + .../v4_1/models/value_definition.py | 33 + .../v4_1/models/vss_notification_event.py | 41 + .../notification/v4_1/notification_client.py | 224 ++ vsts/vsts/policy/v4_1/models/__init__.py | 2 - vsts/vsts/policy/v4_1/models/identity_ref.py | 30 +- vsts/vsts/project_analysis/v4_1/__init__.py | 7 + .../project_analysis/v4_1/models/__init__.py | 23 + .../v4_1/models/code_change_trend_item.py | 29 + .../v4_1/models/language_statistics.py | 41 + .../v4_1/models/project_activity_metrics.py | 45 + .../v4_1/models/project_language_analytics.py | 41 + .../models/repository_activity_metrics.py | 33 + .../models/repository_language_analytics.py | 41 + .../v4_1/project_analysis_client.py | 121 + vsts/vsts/service_hooks/v4_1/__init__.py | 7 + .../service_hooks/v4_1/models/__init__.py | 69 + .../service_hooks/v4_1/models/consumer.py | 65 + .../v4_1/models/consumer_action.py | 61 + vsts/vsts/service_hooks/v4_1/models/event.py | 61 + .../v4_1/models/event_type_descriptor.py | 49 + .../external_configuration_descriptor.py | 33 + .../v4_1/models/formatted_event_message.py | 33 + .../service_hooks/v4_1/models/identity_ref.py | 61 + .../v4_1/models/input_descriptor.py | 77 + .../service_hooks/v4_1/models/input_filter.py | 25 + .../v4_1/models/input_filter_condition.py | 37 + .../v4_1/models/input_validation.py | 53 + .../service_hooks/v4_1/models/input_value.py | 33 + .../service_hooks/v4_1/models/input_values.py | 49 + .../v4_1/models/input_values_error.py | 25 + .../v4_1/models/input_values_query.py | 33 + .../service_hooks/v4_1/models/notification.py | 57 + .../v4_1/models/notification_details.py | 89 + .../notification_results_summary_detail.py | 29 + .../v4_1/models/notification_summary.py | 29 + .../v4_1/models/notifications_query.py | 69 + .../service_hooks/v4_1/models/publisher.py | 53 + .../v4_1/models/publisher_event.py | 41 + .../v4_1/models/publishers_query.py | 33 + .../v4_1/models/reference_links.py | 25 + .../v4_1/models/resource_container.py | 37 + .../v4_1/models/session_token.py | 33 + .../service_hooks/v4_1/models/subscription.py | 97 + .../v4_1/models/subscriptions_query.py | 53 + .../v4_1/models/versioned_resource.py | 33 + .../v4_1/service_hooks_client.py | 371 +++ vsts/vsts/task/v4_1/__init__.py | 7 + vsts/vsts/task/v4_1/models/__init__.py | 55 + vsts/vsts/task/v4_1/models/issue.py | 37 + vsts/vsts/task/v4_1/models/job_option.py | 29 + vsts/vsts/task/v4_1/models/mask_hint.py | 29 + .../vsts/task/v4_1/models/plan_environment.py | 33 + .../task/v4_1/models/project_reference.py | 29 + vsts/vsts/task/v4_1/models/reference_links.py | 25 + vsts/vsts/task/v4_1/models/task_attachment.py | 53 + vsts/vsts/task/v4_1/models/task_log.py | 47 + .../task/v4_1/models/task_log_reference.py | 29 + .../models/task_orchestration_container.py | 48 + .../v4_1/models/task_orchestration_item.py | 25 + .../v4_1/models/task_orchestration_owner.py | 33 + .../v4_1/models/task_orchestration_plan.py | 88 + ...orchestration_plan_groups_queue_metrics.py | 29 + .../task_orchestration_plan_reference.py | 57 + .../models/task_orchestration_queued_plan.py | 57 + .../task_orchestration_queued_plan_group.py | 45 + vsts/vsts/task/v4_1/models/task_reference.py | 37 + vsts/vsts/task/v4_1/models/timeline.py | 42 + vsts/vsts/task/v4_1/models/timeline_record.py | 117 + .../task/v4_1/models/timeline_reference.py | 33 + vsts/vsts/task/v4_1/models/variable_value.py | 29 + vsts/vsts/task/v4_1/task_client.py | 451 +++ vsts/vsts/task_agent/v4_1/__init__.py | 7 + vsts/vsts/task_agent/v4_1/models/__init__.py | 203 ++ .../v4_1/models/aad_oauth_token_request.py | 37 + .../v4_1/models/aad_oauth_token_result.py | 29 + .../models/authentication_scheme_reference.py | 29 + .../v4_1/models/authorization_header.py | 29 + .../v4_1/models/azure_subscription.py | 37 + .../models/azure_subscription_query_result.py | 29 + .../task_agent/v4_1/models/data_source.py | 45 + .../v4_1/models/data_source_binding.py | 45 + .../v4_1/models/data_source_binding_base.py | 53 + .../v4_1/models/data_source_details.py | 45 + .../v4_1/models/dependency_binding.py | 29 + .../task_agent/v4_1/models/dependency_data.py | 29 + .../vsts/task_agent/v4_1/models/depends_on.py | 29 + .../v4_1/models/deployment_group.py | 49 + .../v4_1/models/deployment_group_metrics.py | 33 + .../v4_1/models/deployment_group_reference.py | 37 + .../v4_1/models/deployment_machine.py | 33 + .../v4_1/models/deployment_machine_group.py | 41 + .../deployment_machine_group_reference.py | 37 + .../v4_1/models/deployment_pool_summary.py | 37 + .../v4_1/models/endpoint_authorization.py | 29 + .../task_agent/v4_1/models/endpoint_url.py | 41 + vsts/vsts/task_agent/v4_1/models/help_link.py | 29 + .../task_agent/v4_1/models/identity_ref.py | 61 + .../v4_1/models/input_descriptor.py | 77 + .../v4_1/models/input_validation.py | 53 + .../v4_1/models/input_validation_request.py | 25 + .../task_agent/v4_1/models/input_value.py | 33 + .../task_agent/v4_1/models/input_values.py | 49 + .../v4_1/models/input_values_error.py | 25 + .../v4_1/models/metrics_column_meta_data.py | 29 + .../v4_1/models/metrics_columns_header.py | 29 + .../task_agent/v4_1/models/metrics_row.py | 29 + .../v4_1/models/package_metadata.py | 53 + .../task_agent/v4_1/models/package_version.py | 33 + .../v4_1/models/project_reference.py | 29 + .../models/publish_task_group_metadata.py | 41 + .../task_agent/v4_1/models/reference_links.py | 25 + .../task_agent/v4_1/models/resource_usage.py | 33 + .../models/result_transformation_details.py | 25 + .../task_agent/v4_1/models/secure_file.py | 53 + .../v4_1/models/service_endpoint.py | 73 + .../service_endpoint_authentication_scheme.py | 37 + .../v4_1/models/service_endpoint_details.py | 37 + .../models/service_endpoint_execution_data.py | 49 + .../service_endpoint_execution_record.py | 29 + ...ervice_endpoint_execution_records_input.py | 29 + .../v4_1/models/service_endpoint_request.py | 33 + .../models/service_endpoint_request_result.py | 33 + .../v4_1/models/service_endpoint_type.py | 73 + .../vsts/task_agent/v4_1/models/task_agent.py | 82 + .../v4_1/models/task_agent_authorization.py | 33 + .../v4_1/models/task_agent_delay_source.py | 29 + .../v4_1/models/task_agent_job_request.py | 121 + .../v4_1/models/task_agent_message.py | 37 + .../task_agent/v4_1/models/task_agent_pool.py | 55 + .../task_agent_pool_maintenance_definition.py | 53 + .../models/task_agent_pool_maintenance_job.py | 77 + ...agent_pool_maintenance_job_target_agent.py | 37 + .../task_agent_pool_maintenance_options.py | 25 + ...agent_pool_maintenance_retention_policy.py | 25 + .../task_agent_pool_maintenance_schedule.py | 41 + .../v4_1/models/task_agent_pool_reference.py | 45 + .../v4_1/models/task_agent_public_key.py | 29 + .../v4_1/models/task_agent_queue.py | 37 + .../v4_1/models/task_agent_reference.py | 49 + .../v4_1/models/task_agent_session.py | 41 + .../v4_1/models/task_agent_session_key.py | 29 + .../v4_1/models/task_agent_update.py | 45 + .../v4_1/models/task_agent_update_reason.py | 25 + .../task_agent/v4_1/models/task_definition.py | 161 ++ .../v4_1/models/task_definition_endpoint.py | 45 + .../v4_1/models/task_definition_reference.py | 33 + .../task_agent/v4_1/models/task_execution.py | 29 + .../vsts/task_agent/v4_1/models/task_group.py | 166 ++ .../models/task_group_create_parameter.py | 69 + .../v4_1/models/task_group_definition.py | 41 + .../v4_1/models/task_group_revision.py | 49 + .../task_agent/v4_1/models/task_group_step.py | 53 + .../models/task_group_update_parameter.py | 81 + .../v4_1/models/task_hub_license_details.py | 61 + .../v4_1/models/task_input_definition.py | 57 + .../v4_1/models/task_input_definition_base.py | 69 + .../v4_1/models/task_input_validation.py | 29 + .../v4_1/models/task_orchestration_owner.py | 33 + .../models/task_orchestration_plan_group.py | 33 + .../v4_1/models/task_output_variable.py | 29 + .../v4_1/models/task_package_metadata.py | 33 + .../task_agent/v4_1/models/task_reference.py | 37 + .../v4_1/models/task_source_definition.py | 36 + .../models/task_source_definition_base.py | 41 + .../task_agent/v4_1/models/task_version.py | 37 + .../task_agent/v4_1/models/validation_item.py | 37 + .../task_agent/v4_1/models/variable_group.py | 61 + .../models/variable_group_provider_data.py | 21 + .../task_agent/v4_1/models/variable_value.py | 29 + .../vsts/task_agent/v4_1/task_agent_client.py | 2423 +++++++++++++++++ vsts/vsts/test/v4_1/__init__.py | 7 + vsts/vsts/test/v4_1/models/__init__.py | 205 ++ .../aggregated_data_for_result_trend.py | 37 + .../models/aggregated_results_analysis.py | 45 + .../models/aggregated_results_by_outcome.py | 45 + .../models/aggregated_results_difference.py | 41 + .../test/v4_1/models/build_configuration.py | 61 + vsts/vsts/test/v4_1/models/build_coverage.py | 41 + vsts/vsts/test/v4_1/models/build_reference.py | 49 + .../models/clone_operation_information.py | 77 + vsts/vsts/test/v4_1/models/clone_options.py | 45 + .../vsts/test/v4_1/models/clone_statistics.py | 41 + .../test/v4_1/models/code_coverage_data.py | 33 + .../v4_1/models/code_coverage_statistics.py | 45 + .../test/v4_1/models/code_coverage_summary.py | 33 + .../test/v4_1/models/coverage_statistics.py | 41 + .../test/v4_1/models/custom_test_field.py | 29 + .../models/custom_test_field_definition.py | 37 + .../v4_1/models/dtl_environment_details.py | 33 + vsts/vsts/test/v4_1/models/failing_since.py | 33 + .../models/field_details_for_test_results.py | 29 + .../test/v4_1/models/function_coverage.py | 41 + vsts/vsts/test/v4_1/models/identity_ref.py | 61 + .../test/v4_1/models/last_result_details.py | 33 + .../v4_1/models/linked_work_items_query.py | 45 + .../models/linked_work_items_query_result.py | 45 + vsts/vsts/test/v4_1/models/module_coverage.py | 49 + vsts/vsts/test/v4_1/models/name_value_pair.py | 29 + .../test/v4_1/models/plan_update_model.py | 89 + .../vsts/test/v4_1/models/point_assignment.py | 29 + .../test/v4_1/models/point_update_model.py | 33 + vsts/vsts/test/v4_1/models/points_filter.py | 33 + vsts/vsts/test/v4_1/models/property_bag.py | 25 + vsts/vsts/test/v4_1/models/query_model.py | 25 + ...elease_environment_definition_reference.py | 29 + .../test/v4_1/models/release_reference.py | 49 + .../v4_1/models/result_retention_settings.py | 37 + vsts/vsts/test/v4_1/models/results_filter.py | 53 + .../vsts/test/v4_1/models/run_create_model.py | 145 + vsts/vsts/test/v4_1/models/run_filter.py | 29 + vsts/vsts/test/v4_1/models/run_statistic.py | 37 + .../vsts/test/v4_1/models/run_update_model.py | 117 + .../test/v4_1/models/shallow_reference.py | 33 + .../test/v4_1/models/shared_step_model.py | 29 + .../test/v4_1/models/suite_create_model.py | 37 + vsts/vsts/test/v4_1/models/suite_entry.py | 37 + .../v4_1/models/suite_entry_update_model.py | 33 + vsts/vsts/test/v4_1/models/suite_test_case.py | 29 + .../test/v4_1/models/suite_update_model.py | 45 + vsts/vsts/test/v4_1/models/team_context.py | 37 + .../v4_1/models/team_project_reference.py | 53 + .../v4_1/models/test_action_result_model.py | 59 + vsts/vsts/test/v4_1/models/test_attachment.py | 45 + .../v4_1/models/test_attachment_reference.py | 29 + .../models/test_attachment_request_model.py | 37 + .../vsts/test/v4_1/models/test_case_result.py | 205 ++ .../test_case_result_attachment_model.py | 41 + .../models/test_case_result_identifier.py | 29 + .../models/test_case_result_update_model.py | 93 + .../test/v4_1/models/test_configuration.py | 69 + .../vsts/test/v4_1/models/test_environment.py | 29 + .../test/v4_1/models/test_failure_details.py | 29 + .../v4_1/models/test_failures_analysis.py | 37 + .../models/test_iteration_details_model.py | 65 + .../v4_1/models/test_message_log_details.py | 33 + vsts/vsts/test/v4_1/models/test_method.py | 29 + .../v4_1/models/test_operation_reference.py | 33 + vsts/vsts/test/v4_1/models/test_plan.py | 117 + .../v4_1/models/test_plan_clone_request.py | 33 + vsts/vsts/test/v4_1/models/test_point.py | 109 + .../test/v4_1/models/test_points_query.py | 37 + .../test/v4_1/models/test_resolution_state.py | 33 + .../v4_1/models/test_result_create_model.py | 125 + .../test/v4_1/models/test_result_document.py | 29 + .../test/v4_1/models/test_result_history.py | 29 + .../test_result_history_details_for_group.py | 29 + .../v4_1/models/test_result_model_base.py | 45 + .../models/test_result_parameter_model.py | 45 + .../test/v4_1/models/test_result_payload.py | 33 + .../test/v4_1/models/test_result_summary.py | 37 + .../v4_1/models/test_result_trend_filter.py | 53 + .../test/v4_1/models/test_results_context.py | 33 + .../test/v4_1/models/test_results_details.py | 29 + .../models/test_results_details_for_group.py | 33 + .../models/test_results_groups_for_build.py | 29 + .../models/test_results_groups_for_release.py | 33 + .../test/v4_1/models/test_results_query.py | 33 + vsts/vsts/test/v4_1/models/test_run.py | 193 ++ .../test/v4_1/models/test_run_coverage.py | 37 + .../test/v4_1/models/test_run_statistic.py | 29 + vsts/vsts/test/v4_1/models/test_session.py | 81 + vsts/vsts/test/v4_1/models/test_settings.py | 49 + vsts/vsts/test/v4_1/models/test_suite.py | 117 + .../v4_1/models/test_suite_clone_request.py | 33 + .../v4_1/models/test_summary_for_work_item.py | 29 + .../v4_1/models/test_to_work_item_links.py | 29 + vsts/vsts/test/v4_1/models/test_variable.py | 49 + .../test/v4_1/models/work_item_reference.py | 41 + .../v4_1/models/work_item_to_test_links.py | 29 + vsts/vsts/test/v4_1/test_client.py | 2321 ++++++++++++++++ vsts/vsts/tfvc/v4_1/__init__.py | 7 + vsts/vsts/tfvc/v4_1/models/__init__.py | 83 + .../tfvc/v4_1/models/associated_work_item.py | 49 + vsts/vsts/tfvc/v4_1/models/change.py | 41 + vsts/vsts/tfvc/v4_1/models/checkin_note.py | 29 + .../tfvc/v4_1/models/file_content_metadata.py | 49 + vsts/vsts/tfvc/v4_1/models/git_repository.py | 65 + .../tfvc/v4_1/models/git_repository_ref.py | 53 + vsts/vsts/tfvc/v4_1/models/identity_ref.py | 61 + vsts/vsts/tfvc/v4_1/models/item_content.py | 29 + vsts/vsts/tfvc/v4_1/models/item_model.py | 45 + vsts/vsts/tfvc/v4_1/models/reference_links.py | 25 + .../team_project_collection_reference.py | 33 + .../v4_1/models/team_project_reference.py | 53 + vsts/vsts/tfvc/v4_1/models/tfvc_branch.py | 58 + .../tfvc/v4_1/models/tfvc_branch_mapping.py | 33 + vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py | 48 + vsts/vsts/tfvc/v4_1/models/tfvc_change.py | 29 + vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py | 77 + .../tfvc/v4_1/models/tfvc_changeset_ref.py | 53 + .../models/tfvc_changeset_search_criteria.py | 53 + .../models/tfvc_changesets_request_data.py | 33 + vsts/vsts/tfvc/v4_1/models/tfvc_item.py | 67 + .../tfvc/v4_1/models/tfvc_item_descriptor.py | 41 + .../v4_1/models/tfvc_item_request_data.py | 33 + vsts/vsts/tfvc/v4_1/models/tfvc_label.py | 49 + vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py | 53 + .../v4_1/models/tfvc_label_request_data.py | 45 + .../tfvc/v4_1/models/tfvc_merge_source.py | 37 + .../v4_1/models/tfvc_policy_failure_info.py | 29 + .../v4_1/models/tfvc_policy_override_info.py | 29 + .../v4_1/models/tfvc_shallow_branch_ref.py | 25 + vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py | 61 + .../tfvc/v4_1/models/tfvc_shelveset_ref.py | 53 + .../models/tfvc_shelveset_request_data.py | 49 + .../v4_1/models/tfvc_version_descriptor.py | 33 + .../models/version_control_project_info.py | 37 + vsts/vsts/tfvc/v4_1/models/vsts_info.py | 33 + vsts/vsts/tfvc/v4_1/tfvc_client.py | 724 +++++ vsts/vsts/work/v4_1/__init__.py | 7 + vsts/vsts/work/v4_1/models/__init__.py | 125 + vsts/vsts/work/v4_1/models/activity.py | 29 + vsts/vsts/work/v4_1/models/attribute.py | 20 + vsts/vsts/work/v4_1/models/backlog_column.py | 29 + .../work/v4_1/models/backlog_configuration.py | 53 + vsts/vsts/work/v4_1/models/backlog_fields.py | 25 + vsts/vsts/work/v4_1/models/backlog_level.py | 37 + .../models/backlog_level_configuration.py | 57 + vsts/vsts/work/v4_1/models/board.py | 62 + .../v4_1/models/board_card_rule_settings.py | 33 + .../work/v4_1/models/board_card_settings.py | 25 + vsts/vsts/work/v4_1/models/board_chart.py | 35 + .../work/v4_1/models/board_chart_reference.py | 29 + vsts/vsts/work/v4_1/models/board_column.py | 49 + vsts/vsts/work/v4_1/models/board_fields.py | 33 + vsts/vsts/work/v4_1/models/board_reference.py | 33 + vsts/vsts/work/v4_1/models/board_row.py | 29 + .../work/v4_1/models/board_suggested_value.py | 25 + .../work/v4_1/models/board_user_settings.py | 25 + vsts/vsts/work/v4_1/models/capacity_patch.py | 29 + .../v4_1/models/category_configuration.py | 33 + vsts/vsts/work/v4_1/models/create_plan.py | 37 + vsts/vsts/work/v4_1/models/date_range.py | 29 + .../work/v4_1/models/delivery_view_data.py | 47 + vsts/vsts/work/v4_1/models/field_reference.py | 29 + vsts/vsts/work/v4_1/models/field_setting.py | 20 + vsts/vsts/work/v4_1/models/filter_clause.py | 41 + vsts/vsts/work/v4_1/models/identity_ref.py | 61 + vsts/vsts/work/v4_1/models/member.py | 41 + .../work/v4_1/models/parent_child_wIMap.py | 33 + vsts/vsts/work/v4_1/models/plan.py | 69 + vsts/vsts/work/v4_1/models/plan_view_data.py | 29 + .../work/v4_1/models/process_configuration.py | 45 + vsts/vsts/work/v4_1/models/reference_links.py | 25 + vsts/vsts/work/v4_1/models/rule.py | 41 + vsts/vsts/work/v4_1/models/team_context.py | 37 + .../vsts/work/v4_1/models/team_field_value.py | 29 + .../work/v4_1/models/team_field_values.py | 39 + .../v4_1/models/team_field_values_patch.py | 29 + .../v4_1/models/team_iteration_attributes.py | 33 + .../work/v4_1/models/team_member_capacity.py | 39 + vsts/vsts/work/v4_1/models/team_setting.py | 51 + .../team_settings_data_contract_base.py | 29 + .../v4_1/models/team_settings_days_off.py | 31 + .../models/team_settings_days_off_patch.py | 25 + .../v4_1/models/team_settings_iteration.py | 43 + .../work/v4_1/models/team_settings_patch.py | 45 + .../v4_1/models/timeline_criteria_status.py | 29 + .../v4_1/models/timeline_iteration_status.py | 29 + .../work/v4_1/models/timeline_team_data.py | 77 + .../v4_1/models/timeline_team_iteration.py | 49 + .../work/v4_1/models/timeline_team_status.py | 29 + vsts/vsts/work/v4_1/models/update_plan.py | 41 + vsts/vsts/work/v4_1/models/work_item_color.py | 33 + .../v4_1/models/work_item_field_reference.py | 33 + .../work_item_tracking_resource_reference.py | 25 + .../v4_1/models/work_item_type_reference.py | 28 + .../v4_1/models/work_item_type_state_info.py | 29 + vsts/vsts/work/v4_1/work_client.py | 1263 +++++++++ 597 files changed, 35618 insertions(+), 19 deletions(-) create mode 100644 vsts/vsts/accounts/v4_1/__init__.py create mode 100644 vsts/vsts/accounts/v4_1/accounts_client.py create mode 100644 vsts/vsts/accounts/v4_1/models/__init__.py create mode 100644 vsts/vsts/accounts/v4_1/models/account.py create mode 100644 vsts/vsts/accounts/v4_1/models/account_create_info_internal.py create mode 100644 vsts/vsts/accounts/v4_1/models/account_preferences_internal.py create mode 100644 vsts/vsts/contributions/v4_1/__init__.py create mode 100644 vsts/vsts/contributions/v4_1/contributions_client.py create mode 100644 vsts/vsts/contributions/v4_1/models/__init__.py create mode 100644 vsts/vsts/contributions/v4_1/models/client_data_provider_query.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution_base.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution_constraint.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution_node_query.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution_property_description.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution_provider_details.py create mode 100644 vsts/vsts/contributions/v4_1/models/contribution_type.py create mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_context.py create mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py create mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_query.py create mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_result.py create mode 100644 vsts/vsts/contributions/v4_1/models/extension_event_callback.py create mode 100644 vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py create mode 100644 vsts/vsts/contributions/v4_1/models/extension_file.py create mode 100644 vsts/vsts/contributions/v4_1/models/extension_licensing.py create mode 100644 vsts/vsts/contributions/v4_1/models/extension_manifest.py create mode 100644 vsts/vsts/contributions/v4_1/models/installed_extension.py create mode 100644 vsts/vsts/contributions/v4_1/models/installed_extension_state.py create mode 100644 vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py create mode 100644 vsts/vsts/contributions/v4_1/models/licensing_override.py create mode 100644 vsts/vsts/contributions/v4_1/models/resolved_data_provider.py create mode 100644 vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py create mode 100644 vsts/vsts/dashboard/v4_1/__init__.py create mode 100644 vsts/vsts/dashboard/v4_1/dashboard_client.py create mode 100644 vsts/vsts/dashboard/v4_1/models/__init__.py create mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard.py create mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_group.py create mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py create mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py create mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_response.py create mode 100644 vsts/vsts/dashboard/v4_1/models/lightbox_options.py create mode 100644 vsts/vsts/dashboard/v4_1/models/reference_links.py create mode 100644 vsts/vsts/dashboard/v4_1/models/semantic_version.py create mode 100644 vsts/vsts/dashboard/v4_1/models/team_context.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widget.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widget_metadata.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widget_position.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widget_response.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widget_size.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widget_types_response.py create mode 100644 vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py create mode 100644 vsts/vsts/extension_management/v4_1/__init__.py create mode 100644 vsts/vsts/extension_management/v4_1/extension_management_client.py create mode 100644 vsts/vsts/extension_management/v4_1/models/__init__.py create mode 100644 vsts/vsts/extension_management/v4_1/models/acquisition_operation.py create mode 100644 vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py create mode 100644 vsts/vsts/extension_management/v4_1/models/acquisition_options.py create mode 100644 vsts/vsts/extension_management/v4_1/models/contribution.py create mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_base.py create mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_constraint.py create mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_property_description.py create mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_type.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_authorization.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_badge.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_data_collection.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_event_callback.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_file.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_identifier.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_licensing.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_manifest.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_policy.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_request.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_share.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_state.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_statistic.py create mode 100644 vsts/vsts/extension_management/v4_1/models/extension_version.py create mode 100644 vsts/vsts/extension_management/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/extension_management/v4_1/models/installation_target.py create mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension.py create mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension_query.py create mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension_state.py create mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py create mode 100644 vsts/vsts/extension_management/v4_1/models/licensing_override.py create mode 100644 vsts/vsts/extension_management/v4_1/models/published_extension.py create mode 100644 vsts/vsts/extension_management/v4_1/models/publisher_facts.py create mode 100644 vsts/vsts/extension_management/v4_1/models/requested_extension.py create mode 100644 vsts/vsts/extension_management/v4_1/models/user_extension_policy.py create mode 100644 vsts/vsts/file_container/v4_1/__init__.py create mode 100644 vsts/vsts/file_container/v4_1/file_container_client.py create mode 100644 vsts/vsts/file_container/v4_1/models/__init__.py create mode 100644 vsts/vsts/file_container/v4_1/models/file_container.py create mode 100644 vsts/vsts/file_container/v4_1/models/file_container_item.py create mode 100644 vsts/vsts/gallery/v4_1/__init__.py create mode 100644 vsts/vsts/gallery/v4_1/gallery_client.py create mode 100644 vsts/vsts/gallery/v4_1/models/__init__.py create mode 100644 vsts/vsts/gallery/v4_1/models/acquisition_operation.py create mode 100644 vsts/vsts/gallery/v4_1/models/acquisition_options.py create mode 100644 vsts/vsts/gallery/v4_1/models/answers.py create mode 100644 vsts/vsts/gallery/v4_1/models/asset_details.py create mode 100644 vsts/vsts/gallery/v4_1/models/azure_publisher.py create mode 100644 vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py create mode 100644 vsts/vsts/gallery/v4_1/models/categories_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/category_language_title.py create mode 100644 vsts/vsts/gallery/v4_1/models/concern.py create mode 100644 vsts/vsts/gallery/v4_1/models/event_counts.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_badge.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_category.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_daily_stat.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_daily_stats.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_draft.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_draft_asset.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_draft_patch.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_event.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_events.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_file.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_filter_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_package.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_payload.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_query.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_query_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_share.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_statistic.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_statistic_update.py create mode 100644 vsts/vsts/gallery/v4_1/models/extension_version.py create mode 100644 vsts/vsts/gallery/v4_1/models/filter_criteria.py create mode 100644 vsts/vsts/gallery/v4_1/models/installation_target.py create mode 100644 vsts/vsts/gallery/v4_1/models/metadata_item.py create mode 100644 vsts/vsts/gallery/v4_1/models/notifications_data.py create mode 100644 vsts/vsts/gallery/v4_1/models/product_categories_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/product_category.py create mode 100644 vsts/vsts/gallery/v4_1/models/published_extension.py create mode 100644 vsts/vsts/gallery/v4_1/models/publisher.py create mode 100644 vsts/vsts/gallery/v4_1/models/publisher_facts.py create mode 100644 vsts/vsts/gallery/v4_1/models/publisher_filter_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/publisher_query.py create mode 100644 vsts/vsts/gallery/v4_1/models/publisher_query_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/qn_aItem.py create mode 100644 vsts/vsts/gallery/v4_1/models/query_filter.py create mode 100644 vsts/vsts/gallery/v4_1/models/question.py create mode 100644 vsts/vsts/gallery/v4_1/models/questions_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py create mode 100644 vsts/vsts/gallery/v4_1/models/response.py create mode 100644 vsts/vsts/gallery/v4_1/models/review.py create mode 100644 vsts/vsts/gallery/v4_1/models/review_patch.py create mode 100644 vsts/vsts/gallery/v4_1/models/review_reply.py create mode 100644 vsts/vsts/gallery/v4_1/models/review_summary.py create mode 100644 vsts/vsts/gallery/v4_1/models/reviews_result.py create mode 100644 vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py create mode 100644 vsts/vsts/gallery/v4_1/models/user_identity_ref.py create mode 100644 vsts/vsts/gallery/v4_1/models/user_reported_concern.py create mode 100644 vsts/vsts/licensing/v4_1/__init__.py create mode 100644 vsts/vsts/licensing/v4_1/licensing_client.py create mode 100644 vsts/vsts/licensing/v4_1/models/__init__.py create mode 100644 vsts/vsts/licensing/v4_1/models/account_entitlement.py create mode 100644 vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py create mode 100644 vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py create mode 100644 vsts/vsts/licensing/v4_1/models/account_license_usage.py create mode 100644 vsts/vsts/licensing/v4_1/models/account_rights.py create mode 100644 vsts/vsts/licensing/v4_1/models/account_user_license.py create mode 100644 vsts/vsts/licensing/v4_1/models/client_rights_container.py create mode 100644 vsts/vsts/licensing/v4_1/models/extension_assignment.py create mode 100644 vsts/vsts/licensing/v4_1/models/extension_assignment_details.py create mode 100644 vsts/vsts/licensing/v4_1/models/extension_license_data.py create mode 100644 vsts/vsts/licensing/v4_1/models/extension_operation_result.py create mode 100644 vsts/vsts/licensing/v4_1/models/extension_rights_result.py create mode 100644 vsts/vsts/licensing/v4_1/models/extension_source.py create mode 100644 vsts/vsts/licensing/v4_1/models/iUsage_right.py create mode 100644 vsts/vsts/licensing/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/licensing/v4_1/models/license.py create mode 100644 vsts/vsts/licensing/v4_1/models/msdn_entitlement.py create mode 100644 vsts/vsts/notification/v4_1/__init__.py create mode 100644 vsts/vsts/notification/v4_1/models/__init__.py create mode 100644 vsts/vsts/notification/v4_1/models/artifact_filter.py create mode 100644 vsts/vsts/notification/v4_1/models/base_subscription_filter.py create mode 100644 vsts/vsts/notification/v4_1/models/batch_notification_operation.py create mode 100644 vsts/vsts/notification/v4_1/models/event_actor.py create mode 100644 vsts/vsts/notification/v4_1/models/event_scope.py create mode 100644 vsts/vsts/notification/v4_1/models/events_evaluation_result.py create mode 100644 vsts/vsts/notification/v4_1/models/expression_filter_clause.py create mode 100644 vsts/vsts/notification/v4_1/models/expression_filter_group.py create mode 100644 vsts/vsts/notification/v4_1/models/expression_filter_model.py create mode 100644 vsts/vsts/notification/v4_1/models/field_input_values.py create mode 100644 vsts/vsts/notification/v4_1/models/field_values_query.py create mode 100644 vsts/vsts/notification/v4_1/models/iSubscription_channel.py create mode 100644 vsts/vsts/notification/v4_1/models/iSubscription_filter.py create mode 100644 vsts/vsts/notification/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/notification/v4_1/models/input_value.py create mode 100644 vsts/vsts/notification/v4_1/models/input_values.py create mode 100644 vsts/vsts/notification/v4_1/models/input_values_error.py create mode 100644 vsts/vsts/notification/v4_1/models/input_values_query.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_event_field.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_event_field_operator.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_event_field_type.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_event_publisher.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_event_role.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_event_type.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_event_type_category.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_query_condition.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_reason.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_statistic.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_statistics_query.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_subscriber.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription_template.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py create mode 100644 vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py create mode 100644 vsts/vsts/notification/v4_1/models/operator_constraint.py create mode 100644 vsts/vsts/notification/v4_1/models/reference_links.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_admin_settings.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_management.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_query.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_query_condition.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_scope.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_user_settings.py create mode 100644 vsts/vsts/notification/v4_1/models/value_definition.py create mode 100644 vsts/vsts/notification/v4_1/models/vss_notification_event.py create mode 100644 vsts/vsts/notification/v4_1/notification_client.py create mode 100644 vsts/vsts/project_analysis/v4_1/__init__.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/__init__.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/language_statistics.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py create mode 100644 vsts/vsts/project_analysis/v4_1/project_analysis_client.py create mode 100644 vsts/vsts/service_hooks/v4_1/__init__.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/__init__.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/consumer.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/consumer_action.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/event.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_descriptor.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_filter.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_validation.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_value.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_values.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_values_error.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/input_values_query.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/notification.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/notification_details.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/notification_summary.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/notifications_query.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/publisher.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/publisher_event.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/publishers_query.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/reference_links.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/resource_container.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/session_token.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/subscription.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/versioned_resource.py create mode 100644 vsts/vsts/service_hooks/v4_1/service_hooks_client.py create mode 100644 vsts/vsts/task/v4_1/__init__.py create mode 100644 vsts/vsts/task/v4_1/models/__init__.py create mode 100644 vsts/vsts/task/v4_1/models/issue.py create mode 100644 vsts/vsts/task/v4_1/models/job_option.py create mode 100644 vsts/vsts/task/v4_1/models/mask_hint.py create mode 100644 vsts/vsts/task/v4_1/models/plan_environment.py create mode 100644 vsts/vsts/task/v4_1/models/project_reference.py create mode 100644 vsts/vsts/task/v4_1/models/reference_links.py create mode 100644 vsts/vsts/task/v4_1/models/task_attachment.py create mode 100644 vsts/vsts/task/v4_1/models/task_log.py create mode 100644 vsts/vsts/task/v4_1/models/task_log_reference.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_container.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_item.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_owner.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_plan.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py create mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py create mode 100644 vsts/vsts/task/v4_1/models/task_reference.py create mode 100644 vsts/vsts/task/v4_1/models/timeline.py create mode 100644 vsts/vsts/task/v4_1/models/timeline_record.py create mode 100644 vsts/vsts/task/v4_1/models/timeline_reference.py create mode 100644 vsts/vsts/task/v4_1/models/variable_value.py create mode 100644 vsts/vsts/task/v4_1/task_client.py create mode 100644 vsts/vsts/task_agent/v4_1/__init__.py create mode 100644 vsts/vsts/task_agent/v4_1/models/__init__.py create mode 100644 vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py create mode 100644 vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py create mode 100644 vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/authorization_header.py create mode 100644 vsts/vsts/task_agent/v4_1/models/azure_subscription.py create mode 100644 vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py create mode 100644 vsts/vsts/task_agent/v4_1/models/data_source.py create mode 100644 vsts/vsts/task_agent/v4_1/models/data_source_binding.py create mode 100644 vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py create mode 100644 vsts/vsts/task_agent/v4_1/models/data_source_details.py create mode 100644 vsts/vsts/task_agent/v4_1/models/dependency_binding.py create mode 100644 vsts/vsts/task_agent/v4_1/models/dependency_data.py create mode 100644 vsts/vsts/task_agent/v4_1/models/depends_on.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_machine.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py create mode 100644 vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py create mode 100644 vsts/vsts/task_agent/v4_1/models/endpoint_url.py create mode 100644 vsts/vsts/task_agent/v4_1/models/help_link.py create mode 100644 vsts/vsts/task_agent/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/task_agent/v4_1/models/input_descriptor.py create mode 100644 vsts/vsts/task_agent/v4_1/models/input_validation.py create mode 100644 vsts/vsts/task_agent/v4_1/models/input_validation_request.py create mode 100644 vsts/vsts/task_agent/v4_1/models/input_value.py create mode 100644 vsts/vsts/task_agent/v4_1/models/input_values.py create mode 100644 vsts/vsts/task_agent/v4_1/models/input_values_error.py create mode 100644 vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py create mode 100644 vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py create mode 100644 vsts/vsts/task_agent/v4_1/models/metrics_row.py create mode 100644 vsts/vsts/task_agent/v4_1/models/package_metadata.py create mode 100644 vsts/vsts/task_agent/v4_1/models/package_version.py create mode 100644 vsts/vsts/task_agent/v4_1/models/project_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py create mode 100644 vsts/vsts/task_agent/v4_1/models/reference_links.py create mode 100644 vsts/vsts/task_agent/v4_1/models/resource_usage.py create mode 100644 vsts/vsts/task_agent/v4_1/models/result_transformation_details.py create mode 100644 vsts/vsts/task_agent/v4_1/models/secure_file.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py create mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_message.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_queue.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_session.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_update.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_definition.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_definition_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_execution.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_group.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_definition.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_revision.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_step.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_input_definition.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_input_validation.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_output_variable.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_package_metadata.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_reference.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_source_definition.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py create mode 100644 vsts/vsts/task_agent/v4_1/models/task_version.py create mode 100644 vsts/vsts/task_agent/v4_1/models/validation_item.py create mode 100644 vsts/vsts/task_agent/v4_1/models/variable_group.py create mode 100644 vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py create mode 100644 vsts/vsts/task_agent/v4_1/models/variable_value.py create mode 100644 vsts/vsts/task_agent/v4_1/task_agent_client.py create mode 100644 vsts/vsts/test/v4_1/__init__.py create mode 100644 vsts/vsts/test/v4_1/models/__init__.py create mode 100644 vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py create mode 100644 vsts/vsts/test/v4_1/models/aggregated_results_analysis.py create mode 100644 vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py create mode 100644 vsts/vsts/test/v4_1/models/aggregated_results_difference.py create mode 100644 vsts/vsts/test/v4_1/models/build_configuration.py create mode 100644 vsts/vsts/test/v4_1/models/build_coverage.py create mode 100644 vsts/vsts/test/v4_1/models/build_reference.py create mode 100644 vsts/vsts/test/v4_1/models/clone_operation_information.py create mode 100644 vsts/vsts/test/v4_1/models/clone_options.py create mode 100644 vsts/vsts/test/v4_1/models/clone_statistics.py create mode 100644 vsts/vsts/test/v4_1/models/code_coverage_data.py create mode 100644 vsts/vsts/test/v4_1/models/code_coverage_statistics.py create mode 100644 vsts/vsts/test/v4_1/models/code_coverage_summary.py create mode 100644 vsts/vsts/test/v4_1/models/coverage_statistics.py create mode 100644 vsts/vsts/test/v4_1/models/custom_test_field.py create mode 100644 vsts/vsts/test/v4_1/models/custom_test_field_definition.py create mode 100644 vsts/vsts/test/v4_1/models/dtl_environment_details.py create mode 100644 vsts/vsts/test/v4_1/models/failing_since.py create mode 100644 vsts/vsts/test/v4_1/models/field_details_for_test_results.py create mode 100644 vsts/vsts/test/v4_1/models/function_coverage.py create mode 100644 vsts/vsts/test/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/test/v4_1/models/last_result_details.py create mode 100644 vsts/vsts/test/v4_1/models/linked_work_items_query.py create mode 100644 vsts/vsts/test/v4_1/models/linked_work_items_query_result.py create mode 100644 vsts/vsts/test/v4_1/models/module_coverage.py create mode 100644 vsts/vsts/test/v4_1/models/name_value_pair.py create mode 100644 vsts/vsts/test/v4_1/models/plan_update_model.py create mode 100644 vsts/vsts/test/v4_1/models/point_assignment.py create mode 100644 vsts/vsts/test/v4_1/models/point_update_model.py create mode 100644 vsts/vsts/test/v4_1/models/points_filter.py create mode 100644 vsts/vsts/test/v4_1/models/property_bag.py create mode 100644 vsts/vsts/test/v4_1/models/query_model.py create mode 100644 vsts/vsts/test/v4_1/models/release_environment_definition_reference.py create mode 100644 vsts/vsts/test/v4_1/models/release_reference.py create mode 100644 vsts/vsts/test/v4_1/models/result_retention_settings.py create mode 100644 vsts/vsts/test/v4_1/models/results_filter.py create mode 100644 vsts/vsts/test/v4_1/models/run_create_model.py create mode 100644 vsts/vsts/test/v4_1/models/run_filter.py create mode 100644 vsts/vsts/test/v4_1/models/run_statistic.py create mode 100644 vsts/vsts/test/v4_1/models/run_update_model.py create mode 100644 vsts/vsts/test/v4_1/models/shallow_reference.py create mode 100644 vsts/vsts/test/v4_1/models/shared_step_model.py create mode 100644 vsts/vsts/test/v4_1/models/suite_create_model.py create mode 100644 vsts/vsts/test/v4_1/models/suite_entry.py create mode 100644 vsts/vsts/test/v4_1/models/suite_entry_update_model.py create mode 100644 vsts/vsts/test/v4_1/models/suite_test_case.py create mode 100644 vsts/vsts/test/v4_1/models/suite_update_model.py create mode 100644 vsts/vsts/test/v4_1/models/team_context.py create mode 100644 vsts/vsts/test/v4_1/models/team_project_reference.py create mode 100644 vsts/vsts/test/v4_1/models/test_action_result_model.py create mode 100644 vsts/vsts/test/v4_1/models/test_attachment.py create mode 100644 vsts/vsts/test/v4_1/models/test_attachment_reference.py create mode 100644 vsts/vsts/test/v4_1/models/test_attachment_request_model.py create mode 100644 vsts/vsts/test/v4_1/models/test_case_result.py create mode 100644 vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py create mode 100644 vsts/vsts/test/v4_1/models/test_case_result_identifier.py create mode 100644 vsts/vsts/test/v4_1/models/test_case_result_update_model.py create mode 100644 vsts/vsts/test/v4_1/models/test_configuration.py create mode 100644 vsts/vsts/test/v4_1/models/test_environment.py create mode 100644 vsts/vsts/test/v4_1/models/test_failure_details.py create mode 100644 vsts/vsts/test/v4_1/models/test_failures_analysis.py create mode 100644 vsts/vsts/test/v4_1/models/test_iteration_details_model.py create mode 100644 vsts/vsts/test/v4_1/models/test_message_log_details.py create mode 100644 vsts/vsts/test/v4_1/models/test_method.py create mode 100644 vsts/vsts/test/v4_1/models/test_operation_reference.py create mode 100644 vsts/vsts/test/v4_1/models/test_plan.py create mode 100644 vsts/vsts/test/v4_1/models/test_plan_clone_request.py create mode 100644 vsts/vsts/test/v4_1/models/test_point.py create mode 100644 vsts/vsts/test/v4_1/models/test_points_query.py create mode 100644 vsts/vsts/test/v4_1/models/test_resolution_state.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_create_model.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_document.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_history.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_model_base.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_parameter_model.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_payload.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_summary.py create mode 100644 vsts/vsts/test/v4_1/models/test_result_trend_filter.py create mode 100644 vsts/vsts/test/v4_1/models/test_results_context.py create mode 100644 vsts/vsts/test/v4_1/models/test_results_details.py create mode 100644 vsts/vsts/test/v4_1/models/test_results_details_for_group.py create mode 100644 vsts/vsts/test/v4_1/models/test_results_groups_for_build.py create mode 100644 vsts/vsts/test/v4_1/models/test_results_groups_for_release.py create mode 100644 vsts/vsts/test/v4_1/models/test_results_query.py create mode 100644 vsts/vsts/test/v4_1/models/test_run.py create mode 100644 vsts/vsts/test/v4_1/models/test_run_coverage.py create mode 100644 vsts/vsts/test/v4_1/models/test_run_statistic.py create mode 100644 vsts/vsts/test/v4_1/models/test_session.py create mode 100644 vsts/vsts/test/v4_1/models/test_settings.py create mode 100644 vsts/vsts/test/v4_1/models/test_suite.py create mode 100644 vsts/vsts/test/v4_1/models/test_suite_clone_request.py create mode 100644 vsts/vsts/test/v4_1/models/test_summary_for_work_item.py create mode 100644 vsts/vsts/test/v4_1/models/test_to_work_item_links.py create mode 100644 vsts/vsts/test/v4_1/models/test_variable.py create mode 100644 vsts/vsts/test/v4_1/models/work_item_reference.py create mode 100644 vsts/vsts/test/v4_1/models/work_item_to_test_links.py create mode 100644 vsts/vsts/test/v4_1/test_client.py create mode 100644 vsts/vsts/tfvc/v4_1/__init__.py create mode 100644 vsts/vsts/tfvc/v4_1/models/__init__.py create mode 100644 vsts/vsts/tfvc/v4_1/models/associated_work_item.py create mode 100644 vsts/vsts/tfvc/v4_1/models/change.py create mode 100644 vsts/vsts/tfvc/v4_1/models/checkin_note.py create mode 100644 vsts/vsts/tfvc/v4_1/models/file_content_metadata.py create mode 100644 vsts/vsts/tfvc/v4_1/models/git_repository.py create mode 100644 vsts/vsts/tfvc/v4_1/models/git_repository_ref.py create mode 100644 vsts/vsts/tfvc/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/tfvc/v4_1/models/item_content.py create mode 100644 vsts/vsts/tfvc/v4_1/models/item_model.py create mode 100644 vsts/vsts/tfvc/v4_1/models/reference_links.py create mode 100644 vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py create mode 100644 vsts/vsts/tfvc/v4_1/models/team_project_reference.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_branch.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_change.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_item.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_label.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py create mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py create mode 100644 vsts/vsts/tfvc/v4_1/models/version_control_project_info.py create mode 100644 vsts/vsts/tfvc/v4_1/models/vsts_info.py create mode 100644 vsts/vsts/tfvc/v4_1/tfvc_client.py create mode 100644 vsts/vsts/work/v4_1/__init__.py create mode 100644 vsts/vsts/work/v4_1/models/__init__.py create mode 100644 vsts/vsts/work/v4_1/models/activity.py create mode 100644 vsts/vsts/work/v4_1/models/attribute.py create mode 100644 vsts/vsts/work/v4_1/models/backlog_column.py create mode 100644 vsts/vsts/work/v4_1/models/backlog_configuration.py create mode 100644 vsts/vsts/work/v4_1/models/backlog_fields.py create mode 100644 vsts/vsts/work/v4_1/models/backlog_level.py create mode 100644 vsts/vsts/work/v4_1/models/backlog_level_configuration.py create mode 100644 vsts/vsts/work/v4_1/models/board.py create mode 100644 vsts/vsts/work/v4_1/models/board_card_rule_settings.py create mode 100644 vsts/vsts/work/v4_1/models/board_card_settings.py create mode 100644 vsts/vsts/work/v4_1/models/board_chart.py create mode 100644 vsts/vsts/work/v4_1/models/board_chart_reference.py create mode 100644 vsts/vsts/work/v4_1/models/board_column.py create mode 100644 vsts/vsts/work/v4_1/models/board_fields.py create mode 100644 vsts/vsts/work/v4_1/models/board_reference.py create mode 100644 vsts/vsts/work/v4_1/models/board_row.py create mode 100644 vsts/vsts/work/v4_1/models/board_suggested_value.py create mode 100644 vsts/vsts/work/v4_1/models/board_user_settings.py create mode 100644 vsts/vsts/work/v4_1/models/capacity_patch.py create mode 100644 vsts/vsts/work/v4_1/models/category_configuration.py create mode 100644 vsts/vsts/work/v4_1/models/create_plan.py create mode 100644 vsts/vsts/work/v4_1/models/date_range.py create mode 100644 vsts/vsts/work/v4_1/models/delivery_view_data.py create mode 100644 vsts/vsts/work/v4_1/models/field_reference.py create mode 100644 vsts/vsts/work/v4_1/models/field_setting.py create mode 100644 vsts/vsts/work/v4_1/models/filter_clause.py create mode 100644 vsts/vsts/work/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/work/v4_1/models/member.py create mode 100644 vsts/vsts/work/v4_1/models/parent_child_wIMap.py create mode 100644 vsts/vsts/work/v4_1/models/plan.py create mode 100644 vsts/vsts/work/v4_1/models/plan_view_data.py create mode 100644 vsts/vsts/work/v4_1/models/process_configuration.py create mode 100644 vsts/vsts/work/v4_1/models/reference_links.py create mode 100644 vsts/vsts/work/v4_1/models/rule.py create mode 100644 vsts/vsts/work/v4_1/models/team_context.py create mode 100644 vsts/vsts/work/v4_1/models/team_field_value.py create mode 100644 vsts/vsts/work/v4_1/models/team_field_values.py create mode 100644 vsts/vsts/work/v4_1/models/team_field_values_patch.py create mode 100644 vsts/vsts/work/v4_1/models/team_iteration_attributes.py create mode 100644 vsts/vsts/work/v4_1/models/team_member_capacity.py create mode 100644 vsts/vsts/work/v4_1/models/team_setting.py create mode 100644 vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py create mode 100644 vsts/vsts/work/v4_1/models/team_settings_days_off.py create mode 100644 vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py create mode 100644 vsts/vsts/work/v4_1/models/team_settings_iteration.py create mode 100644 vsts/vsts/work/v4_1/models/team_settings_patch.py create mode 100644 vsts/vsts/work/v4_1/models/timeline_criteria_status.py create mode 100644 vsts/vsts/work/v4_1/models/timeline_iteration_status.py create mode 100644 vsts/vsts/work/v4_1/models/timeline_team_data.py create mode 100644 vsts/vsts/work/v4_1/models/timeline_team_iteration.py create mode 100644 vsts/vsts/work/v4_1/models/timeline_team_status.py create mode 100644 vsts/vsts/work/v4_1/models/update_plan.py create mode 100644 vsts/vsts/work/v4_1/models/work_item_color.py create mode 100644 vsts/vsts/work/v4_1/models/work_item_field_reference.py create mode 100644 vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py create mode 100644 vsts/vsts/work/v4_1/models/work_item_type_reference.py create mode 100644 vsts/vsts/work/v4_1/models/work_item_type_state_info.py create mode 100644 vsts/vsts/work/v4_1/work_client.py diff --git a/vsts/vsts/accounts/v4_1/__init__.py b/vsts/vsts/accounts/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/accounts/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/accounts/v4_1/accounts_client.py b/vsts/vsts/accounts/v4_1/accounts_client.py new file mode 100644 index 00000000..2460fb0f --- /dev/null +++ b/vsts/vsts/accounts/v4_1/accounts_client.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class AccountsClient(VssClient): + """Accounts + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(AccountsClient, 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_accounts(self, owner_id=None, member_id=None, properties=None): + """GetAccounts. + [Preview API] Get a list of accounts for a specific owner or a specific member. + :param str owner_id: ID for the owner of the accounts. + :param str member_id: ID for a member of the accounts. + :param str properties: + :rtype: [Account] + """ + query_parameters = {} + if owner_id is not None: + query_parameters['ownerId'] = self._serialize.query('owner_id', owner_id, 'str') + if member_id is not None: + query_parameters['memberId'] = self._serialize.query('member_id', member_id, 'str') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + response = self._send(http_method='GET', + location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Account]', response) + diff --git a/vsts/vsts/accounts/v4_1/models/__init__.py b/vsts/vsts/accounts/v4_1/models/__init__.py new file mode 100644 index 00000000..2c3eee0b --- /dev/null +++ b/vsts/vsts/accounts/v4_1/models/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 .account import Account +from .account_create_info_internal import AccountCreateInfoInternal +from .account_preferences_internal import AccountPreferencesInternal + +__all__ = [ + 'Account', + 'AccountCreateInfoInternal', + 'AccountPreferencesInternal', +] diff --git a/vsts/vsts/accounts/v4_1/models/account.py b/vsts/vsts/accounts/v4_1/models/account.py new file mode 100644 index 00000000..a34732cb --- /dev/null +++ b/vsts/vsts/accounts/v4_1/models/account.py @@ -0,0 +1,85 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Account(Model): + """Account. + + :param account_id: Identifier for an Account + :type account_id: str + :param account_name: Name for an account + :type account_name: str + :param account_owner: Owner of account + :type account_owner: str + :param account_status: Current account status + :type account_status: object + :param account_type: Type of account: Personal, Organization + :type account_type: object + :param account_uri: Uri for an account + :type account_uri: str + :param created_by: Who created the account + :type created_by: str + :param created_date: Date account was created + :type created_date: datetime + :param has_moved: + :type has_moved: bool + :param last_updated_by: Identity of last person to update the account + :type last_updated_by: str + :param last_updated_date: Date account was last updated + :type last_updated_date: datetime + :param namespace_id: Namespace for an account + :type namespace_id: str + :param new_collection_id: + :type new_collection_id: str + :param organization_name: Organization that created the account + :type organization_name: str + :param properties: Extended properties + :type properties: :class:`object ` + :param status_reason: Reason for current status + :type status_reason: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'account_owner': {'key': 'accountOwner', 'type': 'str'}, + 'account_status': {'key': 'accountStatus', 'type': 'object'}, + 'account_type': {'key': 'accountType', 'type': 'object'}, + 'account_uri': {'key': 'accountUri', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'has_moved': {'key': 'hasMoved', 'type': 'bool'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'str'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'new_collection_id': {'key': 'newCollectionId', 'type': 'str'}, + 'organization_name': {'key': 'organizationName', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'status_reason': {'key': 'statusReason', 'type': 'str'} + } + + def __init__(self, account_id=None, account_name=None, account_owner=None, account_status=None, account_type=None, account_uri=None, created_by=None, created_date=None, has_moved=None, last_updated_by=None, last_updated_date=None, namespace_id=None, new_collection_id=None, organization_name=None, properties=None, status_reason=None): + super(Account, self).__init__() + self.account_id = account_id + self.account_name = account_name + self.account_owner = account_owner + self.account_status = account_status + self.account_type = account_type + self.account_uri = account_uri + self.created_by = created_by + self.created_date = created_date + self.has_moved = has_moved + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.namespace_id = namespace_id + self.new_collection_id = new_collection_id + self.organization_name = organization_name + self.properties = properties + self.status_reason = status_reason diff --git a/vsts/vsts/accounts/v4_1/models/account_create_info_internal.py b/vsts/vsts/accounts/v4_1/models/account_create_info_internal.py new file mode 100644 index 00000000..f3f0e219 --- /dev/null +++ b/vsts/vsts/accounts/v4_1/models/account_create_info_internal.py @@ -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.serialization import Model + + +class AccountCreateInfoInternal(Model): + """AccountCreateInfoInternal. + + :param account_name: + :type account_name: str + :param creator: + :type creator: str + :param organization: + :type organization: str + :param preferences: + :type preferences: :class:`AccountPreferencesInternal ` + :param properties: + :type properties: :class:`object ` + :param service_definitions: + :type service_definitions: list of { key: str; value: str } + """ + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'creator': {'key': 'creator', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'str'}, + 'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'} + } + + def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None): + super(AccountCreateInfoInternal, self).__init__() + self.account_name = account_name + self.creator = creator + self.organization = organization + self.preferences = preferences + self.properties = properties + self.service_definitions = service_definitions diff --git a/vsts/vsts/accounts/v4_1/models/account_preferences_internal.py b/vsts/vsts/accounts/v4_1/models/account_preferences_internal.py new file mode 100644 index 00000000..506c60aa --- /dev/null +++ b/vsts/vsts/accounts/v4_1/models/account_preferences_internal.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountPreferencesInternal(Model): + """AccountPreferencesInternal. + + :param culture: + :type culture: object + :param language: + :type language: object + :param time_zone: + :type time_zone: object + """ + + _attribute_map = { + 'culture': {'key': 'culture', 'type': 'object'}, + 'language': {'key': 'language', 'type': 'object'}, + 'time_zone': {'key': 'timeZone', 'type': 'object'} + } + + def __init__(self, culture=None, language=None, time_zone=None): + super(AccountPreferencesInternal, self).__init__() + self.culture = culture + self.language = language + self.time_zone = time_zone diff --git a/vsts/vsts/contributions/v4_1/__init__.py b/vsts/vsts/contributions/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/contributions/v4_1/contributions_client.py b/vsts/vsts/contributions/v4_1/contributions_client.py new file mode 100644 index 00000000..520125e9 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/contributions_client.py @@ -0,0 +1,109 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ContributionsClient(VssClient): + """Contributions + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ContributionsClient, 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 query_contribution_nodes(self, query): + """QueryContributionNodes. + [Preview API] Query for contribution nodes and provider details according the parameters in the passed in query object. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'ContributionNodeQuery') + response = self._send(http_method='POST', + location_id='db7f2146-2309-4cee-b39c-c767777a1c55', + version='4.1-preview.1', + content=content) + return self._deserialize('ContributionNodeQueryResult', response) + + def query_data_providers(self, query, scope_name=None, scope_value=None): + """QueryDataProviders. + [Preview API] + :param :class:` ` query: + :param str scope_name: + :param str scope_value: + :rtype: :class:` ` + """ + route_values = {} + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + content = self._serialize.body(query, 'DataProviderQuery') + response = self._send(http_method='POST', + location_id='738368db-35ee-4b85-9f94-77ed34af2b0d', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DataProviderResult', response) + + def get_installed_extensions(self, contribution_ids=None, include_disabled_apps=None, asset_types=None): + """GetInstalledExtensions. + [Preview API] + :param [str] contribution_ids: + :param bool include_disabled_apps: + :param [str] asset_types: + :rtype: [InstalledExtension] + """ + query_parameters = {} + if contribution_ids is not None: + contribution_ids = ";".join(contribution_ids) + query_parameters['contributionIds'] = self._serialize.query('contribution_ids', contribution_ids, 'str') + if include_disabled_apps is not None: + query_parameters['includeDisabledApps'] = self._serialize.query('include_disabled_apps', include_disabled_apps, 'bool') + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + response = self._send(http_method='GET', + location_id='2648442b-fd63-4b9a-902f-0c913510f139', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[InstalledExtension]', response) + + def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): + """GetInstalledExtensionByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param [str] asset_types: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + response = self._send(http_method='GET', + location_id='3e2f6668-0798-4dcb-b592-bfe2fa57fde2', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('InstalledExtension', response) + diff --git a/vsts/vsts/contributions/v4_1/models/__init__.py b/vsts/vsts/contributions/v4_1/models/__init__.py new file mode 100644 index 00000000..a2b2f347 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/__init__.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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 .client_data_provider_query import ClientDataProviderQuery +from .contribution import Contribution +from .contribution_base import ContributionBase +from .contribution_constraint import ContributionConstraint +from .contribution_node_query import ContributionNodeQuery +from .contribution_node_query_result import ContributionNodeQueryResult +from .contribution_property_description import ContributionPropertyDescription +from .contribution_provider_details import ContributionProviderDetails +from .contribution_type import ContributionType +from .data_provider_context import DataProviderContext +from .data_provider_exception_details import DataProviderExceptionDetails +from .data_provider_query import DataProviderQuery +from .data_provider_result import DataProviderResult +from .extension_event_callback import ExtensionEventCallback +from .extension_event_callback_collection import ExtensionEventCallbackCollection +from .extension_file import ExtensionFile +from .extension_licensing import ExtensionLicensing +from .extension_manifest import ExtensionManifest +from .installed_extension import InstalledExtension +from .installed_extension_state import InstalledExtensionState +from .installed_extension_state_issue import InstalledExtensionStateIssue +from .licensing_override import LicensingOverride +from .resolved_data_provider import ResolvedDataProvider +from .serialized_contribution_node import SerializedContributionNode + +__all__ = [ + 'ClientDataProviderQuery', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionNodeQuery', + 'ContributionNodeQueryResult', + 'ContributionPropertyDescription', + 'ContributionProviderDetails', + 'ContributionType', + 'DataProviderContext', + 'DataProviderExceptionDetails', + 'DataProviderQuery', + 'DataProviderResult', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionLicensing', + 'ExtensionManifest', + 'InstalledExtension', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'ResolvedDataProvider', + 'SerializedContributionNode', +] diff --git a/vsts/vsts/contributions/v4_1/models/client_data_provider_query.py b/vsts/vsts/contributions/v4_1/models/client_data_provider_query.py new file mode 100644 index 00000000..0c7ebb73 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/client_data_provider_query.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .data_provider_query import DataProviderQuery + + +class ClientDataProviderQuery(DataProviderQuery): + """ClientDataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. + :type query_service_instance_type: str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'query_service_instance_type': {'key': 'queryServiceInstanceType', 'type': 'str'} + } + + def __init__(self, context=None, contribution_ids=None, query_service_instance_type=None): + super(ClientDataProviderQuery, self).__init__(context=context, contribution_ids=contribution_ids) + self.query_service_instance_type = query_service_instance_type diff --git a/vsts/vsts/contributions/v4_1/models/contribution.py b/vsts/vsts/contributions/v4_1/models/contribution.py new file mode 100644 index 00000000..4debccec --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution.py @@ -0,0 +1,50 @@ +# -------------------------------------------------------------------------------------------- +# 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 .contribution_base import ContributionBase + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/contribution_base.py b/vsts/vsts/contributions/v4_1/models/contribution_base.py new file mode 100644 index 00000000..4a2402c0 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution_base.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to diff --git a/vsts/vsts/contributions/v4_1/models/contribution_constraint.py b/vsts/vsts/contributions/v4_1/models/contribution_constraint.py new file mode 100644 index 00000000..44869a8e --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution_constraint.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter class + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships diff --git a/vsts/vsts/contributions/v4_1/models/contribution_node_query.py b/vsts/vsts/contributions/v4_1/models/contribution_node_query.py new file mode 100644 index 00000000..39d2c5ad --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution_node_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionNodeQuery(Model): + """ContributionNodeQuery. + + :param contribution_ids: The contribution ids of the nodes to find. + :type contribution_ids: list of str + :param include_provider_details: Indicator if contribution provider details should be included in the result. + :type include_provider_details: bool + :param query_options: Query options tpo be used when fetching ContributionNodes + :type query_options: object + """ + + _attribute_map = { + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, + 'query_options': {'key': 'queryOptions', 'type': 'object'} + } + + def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): + super(ContributionNodeQuery, self).__init__() + self.contribution_ids = contribution_ids + self.include_provider_details = include_provider_details + self.query_options = query_options diff --git a/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py b/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py new file mode 100644 index 00000000..902bac31 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionNodeQueryResult(Model): + """ContributionNodeQueryResult. + + :param nodes: Map of contribution ids to corresponding node. + :type nodes: dict + :param provider_details: Map of provder ids to the corresponding provider details object. + :type provider_details: dict + """ + + _attribute_map = { + 'nodes': {'key': 'nodes', 'type': '{SerializedContributionNode}'}, + 'provider_details': {'key': 'providerDetails', 'type': '{ContributionProviderDetails}'} + } + + def __init__(self, nodes=None, provider_details=None): + super(ContributionNodeQueryResult, self).__init__() + self.nodes = nodes + self.provider_details = provider_details diff --git a/vsts/vsts/contributions/v4_1/models/contribution_property_description.py b/vsts/vsts/contributions/v4_1/models/contribution_property_description.py new file mode 100644 index 00000000..d4684adf --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution_property_description.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/contribution_provider_details.py b/vsts/vsts/contributions/v4_1/models/contribution_provider_details.py new file mode 100644 index 00000000..0cdda303 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution_provider_details.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionProviderDetails(Model): + """ContributionProviderDetails. + + :param display_name: Friendly name for the provider. + :type display_name: str + :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes + :type name: str + :param properties: Properties associated with the provider + :type properties: dict + :param version: Version of contributions assoicated with this contribution provider. + :type version: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, display_name=None, name=None, properties=None, version=None): + super(ContributionProviderDetails, self).__init__() + self.display_name = display_name + self.name = name + self.properties = properties + self.version = version diff --git a/vsts/vsts/contributions/v4_1/models/contribution_type.py b/vsts/vsts/contributions/v4_1/models/contribution_type.py new file mode 100644 index 00000000..4eda81f4 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/contribution_type.py @@ -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 .contribution_base import ContributionBase + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_context.py b/vsts/vsts/contributions/v4_1/models/data_provider_context.py new file mode 100644 index 00000000..c57c845d --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/data_provider_context.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderContext(Model): + """DataProviderContext. + + :param properties: Generic property bag that contains context-specific properties that data providers can use when populating their data dictionary + :type properties: dict + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, properties=None): + super(DataProviderContext, self).__init__() + self.properties = properties diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py b/vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py new file mode 100644 index 00000000..96c3b8c7 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderExceptionDetails(Model): + """DataProviderExceptionDetails. + + :param exception_type: The type of the exception that was thrown. + :type exception_type: str + :param message: Message that is associated with the exception. + :type message: str + :param stack_trace: The StackTrace from the exception turned into a string. + :type stack_trace: str + """ + + _attribute_map = { + 'exception_type': {'key': 'exceptionType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'} + } + + def __init__(self, exception_type=None, message=None, stack_trace=None): + super(DataProviderExceptionDetails, self).__init__() + self.exception_type = exception_type + self.message = message + self.stack_trace = stack_trace diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_query.py b/vsts/vsts/contributions/v4_1/models/data_provider_query.py new file mode 100644 index 00000000..2ca45e9c --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/data_provider_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderQuery(Model): + """DataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'} + } + + def __init__(self, context=None, contribution_ids=None): + super(DataProviderQuery, self).__init__() + self.context = context + self.contribution_ids = contribution_ids diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_result.py b/vsts/vsts/contributions/v4_1/models/data_provider_result.py new file mode 100644 index 00000000..8b3ec9ec --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/data_provider_result.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataProviderResult(Model): + """DataProviderResult. + + :param client_providers: This is the set of data providers that were requested, but either they were defined as client providers, or as remote providers that failed and may be retried by the client. + :type client_providers: dict + :param data: Property bag of data keyed off of the data provider contribution id + :type data: dict + :param exceptions: Set of exceptions that occurred resolving the data providers. + :type exceptions: dict + :param resolved_providers: List of data providers resolved in the data-provider query + :type resolved_providers: list of :class:`ResolvedDataProvider ` + :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers + :type shared_data: dict + """ + + _attribute_map = { + 'client_providers': {'key': 'clientProviders', 'type': '{ClientDataProviderQuery}'}, + 'data': {'key': 'data', 'type': '{object}'}, + 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, + 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, + 'shared_data': {'key': 'sharedData', 'type': '{object}'} + } + + def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, shared_data=None): + super(DataProviderResult, self).__init__() + self.client_providers = client_providers + self.data = data + self.exceptions = exceptions + self.resolved_providers = resolved_providers + self.shared_data = shared_data diff --git a/vsts/vsts/contributions/v4_1/models/extension_event_callback.py b/vsts/vsts/contributions/v4_1/models/extension_event_callback.py new file mode 100644 index 00000000..59ab677a --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/extension_event_callback.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri diff --git a/vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py b/vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py new file mode 100644 index 00000000..66f88d72 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check diff --git a/vsts/vsts/contributions/v4_1/models/extension_file.py b/vsts/vsts/contributions/v4_1/models/extension_file.py new file mode 100644 index 00000000..ba792fd5 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/extension_file.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param content_type: + :type content_type: str + :param file_id: + :type file_id: int + :param is_default: + :type is_default: bool + :param is_public: + :type is_public: bool + :param language: + :type language: str + :param short_description: + :type short_description: str + :param source: + :type source: str + :param version: + :type version: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.content_type = content_type + self.file_id = file_id + self.is_default = is_default + self.is_public = is_public + self.language = language + self.short_description = short_description + self.source = source + self.version = version diff --git a/vsts/vsts/contributions/v4_1/models/extension_licensing.py b/vsts/vsts/contributions/v4_1/models/extension_licensing.py new file mode 100644 index 00000000..e3e28265 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/extension_licensing.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides diff --git a/vsts/vsts/contributions/v4_1/models/extension_manifest.py b/vsts/vsts/contributions/v4_1/models/extension_manifest.py new file mode 100644 index 00000000..322974cb --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/extension_manifest.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.scopes = scopes + self.service_instance_type = service_instance_type diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension.py b/vsts/vsts/contributions/v4_1/models/installed_extension.py new file mode 100644 index 00000000..6fca7357 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/installed_extension.py @@ -0,0 +1,94 @@ +# -------------------------------------------------------------------------------------------- +# 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 .extension_manifest import ExtensionManifest + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension_state.py b/vsts/vsts/contributions/v4_1/models/installed_extension_state.py new file mode 100644 index 00000000..30f3c06d --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/installed_extension_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py b/vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py new file mode 100644 index 00000000..e66bb556 --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/licensing_override.py b/vsts/vsts/contributions/v4_1/models/licensing_override.py new file mode 100644 index 00000000..7812d57f --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/licensing_override.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id diff --git a/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py b/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py new file mode 100644 index 00000000..75845c8e --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResolvedDataProvider(Model): + """ResolvedDataProvider. + + :param duration: The total time the data provider took to resolve its data (in milliseconds) + :type duration: number + :param error: + :type error: str + :param id: + :type id: str + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'number'}, + 'error': {'key': 'error', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, duration=None, error=None, id=None): + super(ResolvedDataProvider, self).__init__() + self.duration = duration + self.error = error + self.id = id diff --git a/vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py b/vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py new file mode 100644 index 00000000..7fa2214d --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SerializedContributionNode(Model): + """SerializedContributionNode. + + :param children: List of ids for contributions which are children to the current contribution. + :type children: list of str + :param contribution: Contribution associated with this node. + :type contribution: :class:`Contribution ` + :param parents: List of ids for contributions which are parents to the current contribution. + :type parents: list of str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[str]'}, + 'contribution': {'key': 'contribution', 'type': 'Contribution'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, children=None, contribution=None, parents=None): + super(SerializedContributionNode, self).__init__() + self.children = children + self.contribution = contribution + self.parents = parents diff --git a/vsts/vsts/dashboard/v4_1/__init__.py b/vsts/vsts/dashboard/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/v4_1/dashboard_client.py b/vsts/vsts/dashboard/v4_1/dashboard_client.py new file mode 100644 index 00000000..7b99a742 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/dashboard_client.py @@ -0,0 +1,428 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class DashboardClient(VssClient): + """Dashboard + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(DashboardClient, 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 create_dashboard(self, dashboard, team_context): + """CreateDashboard. + [Preview API] Create the supplied dashboard. + :param :class:` ` dashboard: The initial state of the dashboard + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(dashboard, 'Dashboard') + response = self._send(http_method='POST', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Dashboard', response) + + def delete_dashboard(self, team_context, dashboard_id): + """DeleteDashboard. + [Preview API] Delete a dashboard given its ID. This also deletes the widgets associated with this dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard to delete. + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + self._send(http_method='DELETE', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.1-preview.2', + route_values=route_values) + + def get_dashboard(self, team_context, dashboard_id): + """GetDashboard. + [Preview API] Get a dashboard by its ID. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + response = self._send(http_method='GET', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('Dashboard', response) + + def get_dashboards(self, team_context): + """GetDashboards. + [Preview API] Get a list of dashboards. + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('DashboardGroup', response) + + def replace_dashboard(self, dashboard, team_context, dashboard_id): + """ReplaceDashboard. + [Preview API] Replace configuration for the specified dashboard. + :param :class:` ` dashboard: The Configuration of the dashboard to replace. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard to replace. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(dashboard, 'Dashboard') + response = self._send(http_method='PUT', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Dashboard', response) + + def replace_dashboards(self, group, team_context): + """ReplaceDashboards. + [Preview API] Update the name and position of dashboards in the supplied group, and remove omitted dashboards. Does not modify dashboard content. + :param :class:` ` group: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(group, 'DashboardGroup') + response = self._send(http_method='PUT', + location_id='454b3e51-2e6e-48d4-ad81-978154089351', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('DashboardGroup', response) + + def create_widget(self, widget, team_context, dashboard_id): + """CreateWidget. + [Preview API] Create a widget on the specified dashboard. + :param :class:` ` widget: State of the widget to add + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of dashboard the widget will be added to. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(widget, 'Widget') + response = self._send(http_method='POST', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Widget', response) + + def delete_widget(self, team_context, dashboard_id, widget_id): + """DeleteWidget. + [Preview API] Delete the specified widget. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to update. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + response = self._send(http_method='DELETE', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('Dashboard', response) + + def get_widget(self, team_context, dashboard_id, widget_id): + """GetWidget. + [Preview API] Get the current state of the specified widget. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to read. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + response = self._send(http_method='GET', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('Widget', response) + + def replace_widget(self, widget, team_context, dashboard_id, widget_id): + """ReplaceWidget. + [Preview API] Override the state of the specified widget. + :param :class:` ` widget: State to be written for the widget. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to update. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + content = self._serialize.body(widget, 'Widget') + response = self._send(http_method='PUT', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Widget', response) + + def update_widget(self, widget, team_context, dashboard_id, widget_id): + """UpdateWidget. + [Preview API] Perform a partial update of the specified widget. + :param :class:` ` widget: Description of the widget changes to apply. All non-null fields will be replaced. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to update. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + if widget_id is not None: + route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') + content = self._serialize.body(widget, 'Widget') + response = self._send(http_method='PATCH', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('Widget', response) + + def get_widget_metadata(self, contribution_id): + """GetWidgetMetadata. + [Preview API] Get the widget metadata satisfying the specified contribution ID. + :param str contribution_id: The ID of Contribution for the Widget + :rtype: :class:` ` + """ + route_values = {} + if contribution_id is not None: + route_values['contributionId'] = self._serialize.url('contribution_id', contribution_id, 'str') + response = self._send(http_method='GET', + location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('WidgetMetadataResponse', response) + + def get_widget_types(self, scope): + """GetWidgetTypes. + [Preview API] Get all available widget metadata in alphabetical order. + :param str scope: + :rtype: :class:` ` + """ + query_parameters = {} + if scope is not None: + query_parameters['$scope'] = self._serialize.query('scope', scope, 'str') + response = self._send(http_method='GET', + location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', + version='4.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('WidgetTypesResponse', response) + diff --git a/vsts/vsts/dashboard/v4_1/models/__init__.py b/vsts/vsts/dashboard/v4_1/models/__init__.py new file mode 100644 index 00000000..3673bd63 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/__init__.py @@ -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 .dashboard import Dashboard +from .dashboard_group import DashboardGroup +from .dashboard_group_entry import DashboardGroupEntry +from .dashboard_group_entry_response import DashboardGroupEntryResponse +from .dashboard_response import DashboardResponse +from .lightbox_options import LightboxOptions +from .reference_links import ReferenceLinks +from .semantic_version import SemanticVersion +from .team_context import TeamContext +from .widget import Widget +from .widget_metadata import WidgetMetadata +from .widget_metadata_response import WidgetMetadataResponse +from .widget_position import WidgetPosition +from .widget_response import WidgetResponse +from .widget_size import WidgetSize +from .widgets_versioned_list import WidgetsVersionedList +from .widget_types_response import WidgetTypesResponse + +__all__ = [ + 'Dashboard', + 'DashboardGroup', + 'DashboardGroupEntry', + 'DashboardGroupEntryResponse', + 'DashboardResponse', + 'LightboxOptions', + 'ReferenceLinks', + 'SemanticVersion', + 'TeamContext', + 'Widget', + 'WidgetMetadata', + 'WidgetMetadataResponse', + 'WidgetPosition', + 'WidgetResponse', + 'WidgetSize', + 'WidgetsVersionedList', + 'WidgetTypesResponse', +] diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard.py b/vsts/vsts/dashboard/v4_1/models/dashboard.py new file mode 100644 index 00000000..305faaec --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/dashboard.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Dashboard(Model): + """Dashboard. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(Dashboard, self).__init__() + self._links = _links + self.description = description + self.eTag = eTag + self.id = id + self.name = name + self.owner_id = owner_id + self.position = position + self.refresh_interval = refresh_interval + self.url = url + self.widgets = widgets diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_group.py b/vsts/vsts/dashboard/v4_1/models/dashboard_group.py new file mode 100644 index 00000000..0e05d0da --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/dashboard_group.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DashboardGroup(Model): + """DashboardGroup. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param dashboard_entries: A list of Dashboards held by the Dashboard Group + :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. + :type permission: object + :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. + :type team_dashboard_permission: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'dashboard_entries': {'key': 'dashboardEntries', 'type': '[DashboardGroupEntry]'}, + 'permission': {'key': 'permission', 'type': 'object'}, + 'team_dashboard_permission': {'key': 'teamDashboardPermission', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, dashboard_entries=None, permission=None, team_dashboard_permission=None, url=None): + super(DashboardGroup, self).__init__() + self._links = _links + self.dashboard_entries = dashboard_entries + self.permission = permission + self.team_dashboard_permission = team_dashboard_permission + self.url = url diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py b/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py new file mode 100644 index 00000000..5c3c9540 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .dashboard import Dashboard + + +class DashboardGroupEntry(Dashboard): + """DashboardGroupEntry. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntry, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py b/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py new file mode 100644 index 00000000..7c64a4d4 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .dashboard_group_entry import DashboardGroupEntry + + +class DashboardGroupEntryResponse(DashboardGroupEntry): + """DashboardGroupEntryResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntryResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_response.py b/vsts/vsts/dashboard/v4_1/models/dashboard_response.py new file mode 100644 index 00000000..42aefba0 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/dashboard_response.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .dashboard_group_entry import DashboardGroupEntry + + +class DashboardResponse(DashboardGroupEntry): + """DashboardResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_1/models/lightbox_options.py b/vsts/vsts/dashboard/v4_1/models/lightbox_options.py new file mode 100644 index 00000000..af876067 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/lightbox_options.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LightboxOptions(Model): + """LightboxOptions. + + :param height: Height of desired lightbox, in pixels + :type height: int + :param resizable: True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false. + :type resizable: bool + :param width: Width of desired lightbox, in pixels + :type width: int + """ + + _attribute_map = { + 'height': {'key': 'height', 'type': 'int'}, + 'resizable': {'key': 'resizable', 'type': 'bool'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, height=None, resizable=None, width=None): + super(LightboxOptions, self).__init__() + self.height = height + self.resizable = resizable + self.width = width diff --git a/vsts/vsts/dashboard/v4_1/models/reference_links.py b/vsts/vsts/dashboard/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/dashboard/v4_1/models/semantic_version.py b/vsts/vsts/dashboard/v4_1/models/semantic_version.py new file mode 100644 index 00000000..a966f509 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/semantic_version.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SemanticVersion(Model): + """SemanticVersion. + + :param major: Major version when you make incompatible API changes + :type major: int + :param minor: Minor version when you add functionality in a backwards-compatible manner + :type minor: int + :param patch: Patch version when you make backwards-compatible bug fixes + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(SemanticVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch diff --git a/vsts/vsts/dashboard/v4_1/models/team_context.py b/vsts/vsts/dashboard/v4_1/models/team_context.py new file mode 100644 index 00000000..18418ce7 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/team_context.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id diff --git a/vsts/vsts/dashboard/v4_1/models/widget.py b/vsts/vsts/dashboard/v4_1/models/widget.py new file mode 100644 index 00000000..cac98ab6 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widget.py @@ -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 msrest.serialization import Model + + +class Widget(Model): + """Widget. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(Widget, self).__init__() + self._links = _links + self.allowed_sizes = allowed_sizes + self.artifact_id = artifact_id + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.content_uri = content_uri + self.contribution_id = contribution_id + self.dashboard = dashboard + self.eTag = eTag + self.id = id + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.position = position + self.settings = settings + self.settings_version = settings_version + self.size = size + self.type_id = type_id + self.url = url diff --git a/vsts/vsts/dashboard/v4_1/models/widget_metadata.py b/vsts/vsts/dashboard/v4_1/models/widget_metadata.py new file mode 100644 index 00000000..0d9076eb --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widget_metadata.py @@ -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 msrest.serialization import Model + + +class WidgetMetadata(Model): + """WidgetMetadata. + + :param allowed_sizes: Sizes supported by the Widget. + :type allowed_sizes: list of :class:`WidgetSize ` + :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. + :type analytics_service_required: bool + :param catalog_icon_url: Resource for an icon in the widget catalog. + :type catalog_icon_url: str + :param catalog_info_url: Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted + :type catalog_info_url: str + :param configuration_contribution_id: The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_relative_id: str + :param configuration_required: Indicates if the widget requires configuration before being added to dashboard. + :type configuration_required: bool + :param content_uri: Uri for the widget content to be loaded from . + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget. + :type contribution_id: str + :param default_settings: Optional default settings to be copied into widget settings. + :type default_settings: str + :param description: Summary information describing the widget. + :type description: str + :param is_enabled: Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context) + :type is_enabled: bool + :param is_name_configurable: Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest. + :type is_name_configurable: bool + :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. + :type is_visible_from_catalog: bool + :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: Resource for a loading placeholder image on dashboard + :type loading_image_url: str + :param name: User facing name of the widget type. Each widget must use a unique value here. + :type name: str + :param publisher_name: Publisher Name of this kind of widget. + :type publisher_name: str + :param supported_scopes: Data contract required for the widget to function and to work in its container. + :type supported_scopes: list of WidgetScope + :param targets: Contribution target IDs + :type targets: list of str + :param type_id: Deprecated: locally unique developer-facing id of this kind of widget. ContributionId provides a globally unique identifier for widget types. + :type type_id: str + """ + + _attribute_map = { + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'analytics_service_required': {'key': 'analyticsServiceRequired', 'type': 'bool'}, + 'catalog_icon_url': {'key': 'catalogIconUrl', 'type': 'str'}, + 'catalog_info_url': {'key': 'catalogInfoUrl', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'configuration_required': {'key': 'configurationRequired', 'type': 'bool'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'default_settings': {'key': 'defaultSettings', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'is_visible_from_catalog': {'key': 'isVisibleFromCatalog', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[WidgetScope]'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, allowed_sizes=None, analytics_service_required=None, catalog_icon_url=None, catalog_info_url=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, configuration_required=None, content_uri=None, contribution_id=None, default_settings=None, description=None, is_enabled=None, is_name_configurable=None, is_visible_from_catalog=None, lightbox_options=None, loading_image_url=None, name=None, publisher_name=None, supported_scopes=None, targets=None, type_id=None): + super(WidgetMetadata, self).__init__() + self.allowed_sizes = allowed_sizes + self.analytics_service_required = analytics_service_required + self.catalog_icon_url = catalog_icon_url + self.catalog_info_url = catalog_info_url + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.configuration_required = configuration_required + self.content_uri = content_uri + self.contribution_id = contribution_id + self.default_settings = default_settings + self.description = description + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.is_visible_from_catalog = is_visible_from_catalog + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.publisher_name = publisher_name + self.supported_scopes = supported_scopes + self.targets = targets + self.type_id = type_id diff --git a/vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py b/vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py new file mode 100644 index 00000000..1456e9c1 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetMetadataResponse(Model): + """WidgetMetadataResponse. + + :param uri: + :type uri: str + :param widget_metadata: + :type widget_metadata: :class:`WidgetMetadata ` + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_metadata': {'key': 'widgetMetadata', 'type': 'WidgetMetadata'} + } + + def __init__(self, uri=None, widget_metadata=None): + super(WidgetMetadataResponse, self).__init__() + self.uri = uri + self.widget_metadata = widget_metadata diff --git a/vsts/vsts/dashboard/v4_1/models/widget_position.py b/vsts/vsts/dashboard/v4_1/models/widget_position.py new file mode 100644 index 00000000..fffa861f --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widget_position.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetPosition(Model): + """WidgetPosition. + + :param column: + :type column: int + :param row: + :type row: int + """ + + _attribute_map = { + 'column': {'key': 'column', 'type': 'int'}, + 'row': {'key': 'row', 'type': 'int'} + } + + def __init__(self, column=None, row=None): + super(WidgetPosition, self).__init__() + self.column = column + self.row = row diff --git a/vsts/vsts/dashboard/v4_1/models/widget_response.py b/vsts/vsts/dashboard/v4_1/models/widget_response.py new file mode 100644 index 00000000..6e9f37e6 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widget_response.py @@ -0,0 +1,84 @@ +# -------------------------------------------------------------------------------------------- +# 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 .widget import Widget + + +class WidgetResponse(Widget): + """WidgetResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) diff --git a/vsts/vsts/dashboard/v4_1/models/widget_size.py b/vsts/vsts/dashboard/v4_1/models/widget_size.py new file mode 100644 index 00000000..20d49831 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widget_size.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetSize(Model): + """WidgetSize. + + :param column_span: The Width of the widget, expressed in dashboard grid columns. + :type column_span: int + :param row_span: The height of the widget, expressed in dashboard grid rows. + :type row_span: int + """ + + _attribute_map = { + 'column_span': {'key': 'columnSpan', 'type': 'int'}, + 'row_span': {'key': 'rowSpan', 'type': 'int'} + } + + def __init__(self, column_span=None, row_span=None): + super(WidgetSize, self).__init__() + self.column_span = column_span + self.row_span = row_span diff --git a/vsts/vsts/dashboard/v4_1/models/widget_types_response.py b/vsts/vsts/dashboard/v4_1/models/widget_types_response.py new file mode 100644 index 00000000..14a08342 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widget_types_response.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetTypesResponse(Model): + """WidgetTypesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param uri: + :type uri: str + :param widget_types: + :type widget_types: list of :class:`WidgetMetadata ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_types': {'key': 'widgetTypes', 'type': '[WidgetMetadata]'} + } + + def __init__(self, _links=None, uri=None, widget_types=None): + super(WidgetTypesResponse, self).__init__() + self._links = _links + self.uri = uri + self.widget_types = widget_types diff --git a/vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py b/vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py new file mode 100644 index 00000000..915252e2 --- /dev/null +++ b/vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WidgetsVersionedList(Model): + """WidgetsVersionedList. + + :param eTag: + :type eTag: list of str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, eTag=None, widgets=None): + super(WidgetsVersionedList, self).__init__() + self.eTag = eTag + self.widgets = widgets diff --git a/vsts/vsts/extension_management/v4_1/__init__.py b/vsts/vsts/extension_management/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/extension_management/v4_1/extension_management_client.py b/vsts/vsts/extension_management/v4_1/extension_management_client.py new file mode 100644 index 00000000..e6bee7cd --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/extension_management_client.py @@ -0,0 +1,135 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ExtensionManagementClient(VssClient): + """ExtensionManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ExtensionManagementClient, 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_installed_extensions(self, include_disabled_extensions=None, include_errors=None, asset_types=None, include_installation_issues=None): + """GetInstalledExtensions. + [Preview API] List the installed extensions in the account / project collection. + :param bool include_disabled_extensions: If true (the default), include disabled extensions in the results. + :param bool include_errors: If true, include installed extensions with errors. + :param [str] asset_types: + :param bool include_installation_issues: + :rtype: [InstalledExtension] + """ + query_parameters = {} + if include_disabled_extensions is not None: + query_parameters['includeDisabledExtensions'] = self._serialize.query('include_disabled_extensions', include_disabled_extensions, 'bool') + if include_errors is not None: + query_parameters['includeErrors'] = self._serialize.query('include_errors', include_errors, 'bool') + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + if include_installation_issues is not None: + query_parameters['includeInstallationIssues'] = self._serialize.query('include_installation_issues', include_installation_issues, 'bool') + response = self._send(http_method='GET', + location_id='275424d0-c844-4fe2-bda6-04933a1357d8', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[InstalledExtension]', response) + + def update_installed_extension(self, extension): + """UpdateInstalledExtension. + [Preview API] Update an installed extension. Typically this API is used to enable or disable an extension. + :param :class:` ` extension: + :rtype: :class:` ` + """ + content = self._serialize.body(extension, 'InstalledExtension') + response = self._send(http_method='PATCH', + location_id='275424d0-c844-4fe2-bda6-04933a1357d8', + version='4.1-preview.1', + content=content) + return self._deserialize('InstalledExtension', response) + + def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): + """GetInstalledExtensionByName. + [Preview API] Get an installed extension by its publisher and extension name. + :param str publisher_name: Name of the publisher. Example: "fabrikam". + :param str extension_name: Name of the extension. Example: "ops-tools". + :param [str] asset_types: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + response = self._send(http_method='GET', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('InstalledExtension', response) + + def install_extension_by_name(self, publisher_name, extension_name, version=None): + """InstallExtensionByName. + [Preview API] Install the specified extension into the account / project collection. + :param str publisher_name: Name of the publisher. Example: "fabrikam". + :param str extension_name: Name of the extension. Example: "ops-tools". + :param str version: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='POST', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('InstalledExtension', response) + + def uninstall_extension_by_name(self, publisher_name, extension_name, reason=None, reason_code=None): + """UninstallExtensionByName. + [Preview API] Uninstall the specified extension from the account / project collection. + :param str publisher_name: Name of the publisher. Example: "fabrikam". + :param str extension_name: Name of the extension. Example: "ops-tools". + :param str reason: + :param str reason_code: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if reason is not None: + query_parameters['reason'] = self._serialize.query('reason', reason, 'str') + if reason_code is not None: + query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') + self._send(http_method='DELETE', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + diff --git a/vsts/vsts/extension_management/v4_1/models/__init__.py b/vsts/vsts/extension_management/v4_1/models/__init__.py new file mode 100644 index 00000000..b6ac34af --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/__init__.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------------------------- +# 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 .acquisition_operation import AcquisitionOperation +from .acquisition_operation_disallow_reason import AcquisitionOperationDisallowReason +from .acquisition_options import AcquisitionOptions +from .contribution import Contribution +from .contribution_base import ContributionBase +from .contribution_constraint import ContributionConstraint +from .contribution_property_description import ContributionPropertyDescription +from .contribution_type import ContributionType +from .extension_acquisition_request import ExtensionAcquisitionRequest +from .extension_authorization import ExtensionAuthorization +from .extension_badge import ExtensionBadge +from .extension_data_collection import ExtensionDataCollection +from .extension_data_collection_query import ExtensionDataCollectionQuery +from .extension_event_callback import ExtensionEventCallback +from .extension_event_callback_collection import ExtensionEventCallbackCollection +from .extension_file import ExtensionFile +from .extension_identifier import ExtensionIdentifier +from .extension_licensing import ExtensionLicensing +from .extension_manifest import ExtensionManifest +from .extension_policy import ExtensionPolicy +from .extension_request import ExtensionRequest +from .extension_share import ExtensionShare +from .extension_state import ExtensionState +from .extension_statistic import ExtensionStatistic +from .extension_version import ExtensionVersion +from .identity_ref import IdentityRef +from .installation_target import InstallationTarget +from .installed_extension import InstalledExtension +from .installed_extension_query import InstalledExtensionQuery +from .installed_extension_state import InstalledExtensionState +from .installed_extension_state_issue import InstalledExtensionStateIssue +from .licensing_override import LicensingOverride +from .published_extension import PublishedExtension +from .publisher_facts import PublisherFacts +from .requested_extension import RequestedExtension +from .user_extension_policy import UserExtensionPolicy + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOperationDisallowReason', + 'AcquisitionOptions', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionPropertyDescription', + 'ContributionType', + 'ExtensionAcquisitionRequest', + 'ExtensionAuthorization', + 'ExtensionBadge', + 'ExtensionDataCollection', + 'ExtensionDataCollectionQuery', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionIdentifier', + 'ExtensionLicensing', + 'ExtensionManifest', + 'ExtensionPolicy', + 'ExtensionRequest', + 'ExtensionShare', + 'ExtensionState', + 'ExtensionStatistic', + 'ExtensionVersion', + 'IdentityRef', + 'InstallationTarget', + 'InstalledExtension', + 'InstalledExtensionQuery', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'PublishedExtension', + 'PublisherFacts', + 'RequestedExtension', + 'UserExtensionPolicy', +] diff --git a/vsts/vsts/extension_management/v4_1/models/acquisition_operation.py b/vsts/vsts/extension_management/v4_1/models/acquisition_operation.py new file mode 100644 index 00000000..ecaf3f13 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/acquisition_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + :param reasons: List of reasons indicating why the operation is not allowed. + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reasons': {'key': 'reasons', 'type': '[AcquisitionOperationDisallowReason]'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None, reasons=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason + self.reasons = reasons diff --git a/vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py b/vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py new file mode 100644 index 00000000..565a65a8 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperationDisallowReason(Model): + """AcquisitionOperationDisallowReason. + + :param message: User-friendly message clarifying the reason for disallowance + :type message: str + :param type: Type of reason for disallowance - AlreadyInstalled, UnresolvedDemand, etc. + :type type: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, message=None, type=None): + super(AcquisitionOperationDisallowReason, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/acquisition_options.py b/vsts/vsts/extension_management/v4_1/models/acquisition_options.py new file mode 100644 index 00000000..715ddc83 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/acquisition_options.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, properties=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.properties = properties + self.target = target diff --git a/vsts/vsts/extension_management/v4_1/models/contribution.py b/vsts/vsts/extension_management/v4_1/models/contribution.py new file mode 100644 index 00000000..e9c1b950 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/contribution.py @@ -0,0 +1,50 @@ +# -------------------------------------------------------------------------------------------- +# 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 .contribution_base import ContributionBase + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_base.py b/vsts/vsts/extension_management/v4_1/models/contribution_base.py new file mode 100644 index 00000000..4a2402c0 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/contribution_base.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py b/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py new file mode 100644 index 00000000..a16f994d --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter class + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_property_description.py b/vsts/vsts/extension_management/v4_1/models/contribution_property_description.py new file mode 100644 index 00000000..d4684adf --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/contribution_property_description.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_type.py b/vsts/vsts/extension_management/v4_1/models/contribution_type.py new file mode 100644 index 00000000..4eda81f4 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/contribution_type.py @@ -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 .contribution_base import ContributionBase + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties diff --git a/vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py b/vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py new file mode 100644 index 00000000..f0cc015d --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py @@ -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.serialization import Model + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity diff --git a/vsts/vsts/extension_management/v4_1/models/extension_authorization.py b/vsts/vsts/extension_management/v4_1/models/extension_authorization.py new file mode 100644 index 00000000..d82dac11 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_authorization.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAuthorization(Model): + """ExtensionAuthorization. + + :param id: + :type id: str + :param scopes: + :type scopes: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[str]'} + } + + def __init__(self, id=None, scopes=None): + super(ExtensionAuthorization, self).__init__() + self.id = id + self.scopes = scopes diff --git a/vsts/vsts/extension_management/v4_1/models/extension_badge.py b/vsts/vsts/extension_management/v4_1/models/extension_badge.py new file mode 100644 index 00000000..bcb0fa1c --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_badge.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link diff --git a/vsts/vsts/extension_management/v4_1/models/extension_data_collection.py b/vsts/vsts/extension_management/v4_1/models/extension_data_collection.py new file mode 100644 index 00000000..353af0e8 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_data_collection.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDataCollection(Model): + """ExtensionDataCollection. + + :param collection_name: The name of the collection + :type collection_name: str + :param documents: A list of documents belonging to the collection + :type documents: list of :class:`object ` + :param scope_type: The type of the collection's scope, such as Default or User + :type scope_type: str + :param scope_value: The value of the collection's scope, such as Current or Me + :type scope_value: str + """ + + _attribute_map = { + 'collection_name': {'key': 'collectionName', 'type': 'str'}, + 'documents': {'key': 'documents', 'type': '[object]'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'scope_value': {'key': 'scopeValue', 'type': 'str'} + } + + def __init__(self, collection_name=None, documents=None, scope_type=None, scope_value=None): + super(ExtensionDataCollection, self).__init__() + self.collection_name = collection_name + self.documents = documents + self.scope_type = scope_type + self.scope_value = scope_value diff --git a/vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py b/vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py new file mode 100644 index 00000000..b22d0358 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDataCollectionQuery(Model): + """ExtensionDataCollectionQuery. + + :param collections: A list of collections to query + :type collections: list of :class:`ExtensionDataCollection ` + """ + + _attribute_map = { + 'collections': {'key': 'collections', 'type': '[ExtensionDataCollection]'} + } + + def __init__(self, collections=None): + super(ExtensionDataCollectionQuery, self).__init__() + self.collections = collections diff --git a/vsts/vsts/extension_management/v4_1/models/extension_event_callback.py b/vsts/vsts/extension_management/v4_1/models/extension_event_callback.py new file mode 100644 index 00000000..59ab677a --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_event_callback.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri diff --git a/vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py b/vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py new file mode 100644 index 00000000..2f9be062 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check diff --git a/vsts/vsts/extension_management/v4_1/models/extension_file.py b/vsts/vsts/extension_management/v4_1/models/extension_file.py new file mode 100644 index 00000000..ba792fd5 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_file.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param content_type: + :type content_type: str + :param file_id: + :type file_id: int + :param is_default: + :type is_default: bool + :param is_public: + :type is_public: bool + :param language: + :type language: str + :param short_description: + :type short_description: str + :param source: + :type source: str + :param version: + :type version: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.content_type = content_type + self.file_id = file_id + self.is_default = is_default + self.is_public = is_public + self.language = language + self.short_description = short_description + self.source = source + self.version = version diff --git a/vsts/vsts/extension_management/v4_1/models/extension_identifier.py b/vsts/vsts/extension_management/v4_1/models/extension_identifier.py new file mode 100644 index 00000000..ea02ec21 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_identifier.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionIdentifier(Model): + """ExtensionIdentifier. + + :param extension_name: The ExtensionName component part of the fully qualified ExtensionIdentifier + :type extension_name: str + :param publisher_name: The PublisherName component part of the fully qualified ExtensionIdentifier + :type publisher_name: str + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, extension_name=None, publisher_name=None): + super(ExtensionIdentifier, self).__init__() + self.extension_name = extension_name + self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_1/models/extension_licensing.py b/vsts/vsts/extension_management/v4_1/models/extension_licensing.py new file mode 100644 index 00000000..59422d20 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_licensing.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides diff --git a/vsts/vsts/extension_management/v4_1/models/extension_manifest.py b/vsts/vsts/extension_management/v4_1/models/extension_manifest.py new file mode 100644 index 00000000..2a25d2d8 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_manifest.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.scopes = scopes + self.service_instance_type = service_instance_type diff --git a/vsts/vsts/extension_management/v4_1/models/extension_policy.py b/vsts/vsts/extension_management/v4_1/models/extension_policy.py new file mode 100644 index 00000000..ad20f559 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_policy.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionPolicy(Model): + """ExtensionPolicy. + + :param install: Permissions on 'Install' operation + :type install: object + :param request: Permission on 'Request' operation + :type request: object + """ + + _attribute_map = { + 'install': {'key': 'install', 'type': 'object'}, + 'request': {'key': 'request', 'type': 'object'} + } + + def __init__(self, install=None, request=None): + super(ExtensionPolicy, self).__init__() + self.install = install + self.request = request diff --git a/vsts/vsts/extension_management/v4_1/models/extension_request.py b/vsts/vsts/extension_management/v4_1/models/extension_request.py new file mode 100644 index 00000000..472c4312 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_request.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionRequest(Model): + """ExtensionRequest. + + :param reject_message: Required message supplied if the request is rejected + :type reject_message: str + :param request_date: Date at which the request was made + :type request_date: datetime + :param requested_by: Represents the user who made the request + :type requested_by: :class:`IdentityRef ` + :param request_message: Optional message supplied by the requester justifying the request + :type request_message: str + :param request_state: Represents the state of the request + :type request_state: object + :param resolve_date: Date at which the request was resolved + :type resolve_date: datetime + :param resolved_by: Represents the user who resolved the request + :type resolved_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'reject_message': {'key': 'rejectMessage', 'type': 'str'}, + 'request_date': {'key': 'requestDate', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_message': {'key': 'requestMessage', 'type': 'str'}, + 'request_state': {'key': 'requestState', 'type': 'object'}, + 'resolve_date': {'key': 'resolveDate', 'type': 'iso-8601'}, + 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'} + } + + def __init__(self, reject_message=None, request_date=None, requested_by=None, request_message=None, request_state=None, resolve_date=None, resolved_by=None): + super(ExtensionRequest, self).__init__() + self.reject_message = reject_message + self.request_date = request_date + self.requested_by = requested_by + self.request_message = request_message + self.request_state = request_state + self.resolve_date = resolve_date + self.resolved_by = resolved_by diff --git a/vsts/vsts/extension_management/v4_1/models/extension_share.py b/vsts/vsts/extension_management/v4_1/models/extension_share.py new file mode 100644 index 00000000..acc81ef0 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_share.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/extension_state.py b/vsts/vsts/extension_management/v4_1/models/extension_state.py new file mode 100644 index 00000000..b7e288b9 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_state.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# 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 .installed_extension_state import InstalledExtensionState + + +class ExtensionState(InstalledExtensionState): + """ExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + :param extension_name: + :type extension_name: str + :param last_version_check: The time at which the version was last checked + :type last_version_check: datetime + :param publisher_name: + :type publisher_name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'last_version_check': {'key': 'lastVersionCheck', 'type': 'iso-8601'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None, extension_name=None, last_version_check=None, publisher_name=None, version=None): + super(ExtensionState, self).__init__(flags=flags, installation_issues=installation_issues, last_updated=last_updated) + self.extension_name = extension_name + self.last_version_check = last_version_check + self.publisher_name = publisher_name + self.version = version diff --git a/vsts/vsts/extension_management/v4_1/models/extension_statistic.py b/vsts/vsts/extension_management/v4_1/models/extension_statistic.py new file mode 100644 index 00000000..11fc6704 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_statistic.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: number + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'number'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value diff --git a/vsts/vsts/extension_management/v4_1/models/extension_version.py b/vsts/vsts/extension_management/v4_1/models/extension_version.py new file mode 100644 index 00000000..56b83e88 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/extension_version.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description diff --git a/vsts/vsts/extension_management/v4_1/models/identity_ref.py b/vsts/vsts/extension_management/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/extension_management/v4_1/models/installation_target.py b/vsts/vsts/extension_management/v4_1/models/installation_target.py new file mode 100644 index 00000000..572aaae0 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/installation_target.py @@ -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.serialization import Model + + +class InstallationTarget(Model): + """InstallationTarget. + + :param max_inclusive: + :type max_inclusive: bool + :param max_version: + :type max_version: str + :param min_inclusive: + :type min_inclusive: bool + :param min_version: + :type min_version: str + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, + 'max_version': {'key': 'maxVersion', 'type': 'str'}, + 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, + 'min_version': {'key': 'minVersion', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.max_inclusive = max_inclusive + self.max_version = max_version + self.min_inclusive = min_inclusive + self.min_version = min_version + self.target = target + self.target_version = target_version diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension.py b/vsts/vsts/extension_management/v4_1/models/installed_extension.py new file mode 100644 index 00000000..c7c69c21 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/installed_extension.py @@ -0,0 +1,94 @@ +# -------------------------------------------------------------------------------------------- +# 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 .extension_manifest import ExtensionManifest + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: number + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension_query.py b/vsts/vsts/extension_management/v4_1/models/installed_extension_query.py new file mode 100644 index 00000000..8b1bafdb --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/installed_extension_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionQuery(Model): + """InstalledExtensionQuery. + + :param asset_types: + :type asset_types: list of str + :param monikers: + :type monikers: list of :class:`ExtensionIdentifier ` + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'monikers': {'key': 'monikers', 'type': '[ExtensionIdentifier]'} + } + + def __init__(self, asset_types=None, monikers=None): + super(InstalledExtensionQuery, self).__init__() + self.asset_types = asset_types + self.monikers = monikers diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension_state.py b/vsts/vsts/extension_management/v4_1/models/installed_extension_state.py new file mode 100644 index 00000000..fe748304 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/installed_extension_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py b/vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py new file mode 100644 index 00000000..e66bb556 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/licensing_override.py b/vsts/vsts/extension_management/v4_1/models/licensing_override.py new file mode 100644 index 00000000..7812d57f --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/licensing_override.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id diff --git a/vsts/vsts/extension_management/v4_1/models/published_extension.py b/vsts/vsts/extension_management/v4_1/models/published_extension.py new file mode 100644 index 00000000..c31aa66a --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/published_extension.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions diff --git a/vsts/vsts/extension_management/v4_1/models/publisher_facts.py b/vsts/vsts/extension_management/v4_1/models/publisher_facts.py new file mode 100644 index 00000000..979b6d8d --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/publisher_facts.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_1/models/requested_extension.py b/vsts/vsts/extension_management/v4_1/models/requested_extension.py new file mode 100644 index 00000000..6b951240 --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/requested_extension.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RequestedExtension(Model): + """RequestedExtension. + + :param extension_name: The unique name of the extension + :type extension_name: str + :param extension_requests: A list of each request for the extension + :type extension_requests: list of :class:`ExtensionRequest ` + :param publisher_display_name: DisplayName of the publisher that owns the extension being published. + :type publisher_display_name: str + :param publisher_name: Represents the Publisher of the requested extension + :type publisher_name: str + :param request_count: The total number of requests for an extension + :type request_count: int + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'extension_requests': {'key': 'extensionRequests', 'type': '[ExtensionRequest]'}, + 'publisher_display_name': {'key': 'publisherDisplayName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'request_count': {'key': 'requestCount', 'type': 'int'} + } + + def __init__(self, extension_name=None, extension_requests=None, publisher_display_name=None, publisher_name=None, request_count=None): + super(RequestedExtension, self).__init__() + self.extension_name = extension_name + self.extension_requests = extension_requests + self.publisher_display_name = publisher_display_name + self.publisher_name = publisher_name + self.request_count = request_count diff --git a/vsts/vsts/extension_management/v4_1/models/user_extension_policy.py b/vsts/vsts/extension_management/v4_1/models/user_extension_policy.py new file mode 100644 index 00000000..cf4b9e5d --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/user_extension_policy.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserExtensionPolicy(Model): + """UserExtensionPolicy. + + :param display_name: User display name that this policy refers to + :type display_name: str + :param permissions: The extension policy applied to the user + :type permissions: :class:`ExtensionPolicy ` + :param user_id: User id that this policy refers to + :type user_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'permissions': {'key': 'permissions', 'type': 'ExtensionPolicy'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, display_name=None, permissions=None, user_id=None): + super(UserExtensionPolicy, self).__init__() + self.display_name = display_name + self.permissions = permissions + self.user_id = user_id diff --git a/vsts/vsts/file_container/v4_1/__init__.py b/vsts/vsts/file_container/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/file_container/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/v4_1/file_container_client.py b/vsts/vsts/file_container/v4_1/file_container_client.py new file mode 100644 index 00000000..e145b81b --- /dev/null +++ b/vsts/vsts/file_container/v4_1/file_container_client.py @@ -0,0 +1,130 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class FileContainerClient(VssClient): + """FileContainer + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FileContainerClient, 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 create_items(self, items, container_id, scope=None): + """CreateItems. + [Preview API] Creates the specified items in in the referenced container. + :param :class:` ` items: + :param int container_id: + :param str scope: A guid representing the scope of the container. This is often the project id. + :rtype: [FileContainerItem] + """ + route_values = {} + if container_id is not None: + route_values['containerId'] = self._serialize.url('container_id', container_id, 'int') + query_parameters = {} + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + content = self._serialize.body(items, 'VssJsonCollectionWrapper') + response = self._send(http_method='POST', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.1-preview.4', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[FileContainerItem]', response) + + def delete_item(self, container_id, item_path, scope=None): + """DeleteItem. + [Preview API] Deletes the specified items in a container. + :param long container_id: Container Id. + :param str item_path: Path to delete. + :param str scope: A guid representing the scope of the container. This is often the project id. + """ + route_values = {} + if container_id is not None: + route_values['containerId'] = self._serialize.url('container_id', container_id, 'long') + query_parameters = {} + if item_path is not None: + query_parameters['itemPath'] = self._serialize.query('item_path', item_path, 'str') + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + self._send(http_method='DELETE', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.1-preview.4', + route_values=route_values, + query_parameters=query_parameters) + + def get_containers(self, scope=None, artifact_uris=None): + """GetContainers. + [Preview API] Gets containers filtered by a comma separated list of artifact uris within the same scope, if not specified returns all containers + :param str scope: A guid representing the scope of the container. This is often the project id. + :param str artifact_uris: + :rtype: [FileContainer] + """ + query_parameters = {} + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + if artifact_uris is not None: + query_parameters['artifactUris'] = self._serialize.query('artifact_uris', artifact_uris, 'str') + response = self._send(http_method='GET', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.1-preview.4', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FileContainer]', response) + + def get_items(self, container_id, scope=None, item_path=None, metadata=None, format=None, download_file_name=None, include_download_tickets=None, is_shallow=None): + """GetItems. + [Preview API] + :param long container_id: + :param str scope: + :param str item_path: + :param bool metadata: + :param str format: + :param str download_file_name: + :param bool include_download_tickets: + :param bool is_shallow: + :rtype: [FileContainerItem] + """ + route_values = {} + if container_id is not None: + route_values['containerId'] = self._serialize.url('container_id', container_id, 'long') + query_parameters = {} + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + if item_path is not None: + query_parameters['itemPath'] = self._serialize.query('item_path', item_path, 'str') + if metadata is not None: + query_parameters['metadata'] = self._serialize.query('metadata', metadata, 'bool') + if format is not None: + query_parameters['$format'] = self._serialize.query('format', format, 'str') + if download_file_name is not None: + query_parameters['downloadFileName'] = self._serialize.query('download_file_name', download_file_name, 'str') + if include_download_tickets is not None: + query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') + if is_shallow is not None: + query_parameters['isShallow'] = self._serialize.query('is_shallow', is_shallow, 'bool') + response = self._send(http_method='GET', + location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', + version='4.1-preview.4', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FileContainerItem]', response) + diff --git a/vsts/vsts/file_container/v4_1/models/__init__.py b/vsts/vsts/file_container/v4_1/models/__init__.py new file mode 100644 index 00000000..09bce04e --- /dev/null +++ b/vsts/vsts/file_container/v4_1/models/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 .file_container import FileContainer +from .file_container_item import FileContainerItem + +__all__ = [ + 'FileContainer', + 'FileContainerItem', +] diff --git a/vsts/vsts/file_container/v4_1/models/file_container.py b/vsts/vsts/file_container/v4_1/models/file_container.py new file mode 100644 index 00000000..977d427e --- /dev/null +++ b/vsts/vsts/file_container/v4_1/models/file_container.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FileContainer(Model): + """FileContainer. + + :param artifact_uri: Uri of the artifact associated with the container. + :type artifact_uri: str + :param content_location: Download Url for the content of this item. + :type content_location: str + :param created_by: Owner. + :type created_by: str + :param date_created: Creation date. + :type date_created: datetime + :param description: Description. + :type description: str + :param id: Id. + :type id: long + :param item_location: Location of the item resource. + :type item_location: str + :param locator_path: ItemStore Locator for this container. + :type locator_path: str + :param name: Name. + :type name: str + :param options: Options the container can have. + :type options: object + :param scope_identifier: Project Id. + :type scope_identifier: str + :param security_token: Security token of the artifact associated with the container. + :type security_token: str + :param signing_key_id: Identifier of the optional encryption key. + :type signing_key_id: str + :param size: Total size of the files in bytes. + :type size: long + """ + + _attribute_map = { + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'long'}, + 'item_location': {'key': 'itemLocation', 'type': 'str'}, + 'locator_path': {'key': 'locatorPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': 'object'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'security_token': {'key': 'securityToken', 'type': 'str'}, + 'signing_key_id': {'key': 'signingKeyId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'} + } + + def __init__(self, artifact_uri=None, content_location=None, created_by=None, date_created=None, description=None, id=None, item_location=None, locator_path=None, name=None, options=None, scope_identifier=None, security_token=None, signing_key_id=None, size=None): + super(FileContainer, self).__init__() + self.artifact_uri = artifact_uri + self.content_location = content_location + self.created_by = created_by + self.date_created = date_created + self.description = description + self.id = id + self.item_location = item_location + self.locator_path = locator_path + self.name = name + self.options = options + self.scope_identifier = scope_identifier + self.security_token = security_token + self.signing_key_id = signing_key_id + self.size = size diff --git a/vsts/vsts/file_container/v4_1/models/file_container_item.py b/vsts/vsts/file_container/v4_1/models/file_container_item.py new file mode 100644 index 00000000..e53626c5 --- /dev/null +++ b/vsts/vsts/file_container/v4_1/models/file_container_item.py @@ -0,0 +1,93 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FileContainerItem(Model): + """FileContainerItem. + + :param container_id: Container Id. + :type container_id: long + :param content_id: + :type content_id: list of number + :param content_location: Download Url for the content of this item. + :type content_location: str + :param created_by: Creator. + :type created_by: str + :param date_created: Creation date. + :type date_created: datetime + :param date_last_modified: Last modified date. + :type date_last_modified: datetime + :param file_encoding: Encoding of the file. Zero if not a file. + :type file_encoding: int + :param file_hash: Hash value of the file. Null if not a file. + :type file_hash: list of number + :param file_id: Id of the file content. + :type file_id: int + :param file_length: Length of the file. Zero if not of a file. + :type file_length: long + :param file_type: Type of the file. Zero if not a file. + :type file_type: int + :param item_location: Location of the item resource. + :type item_location: str + :param item_type: Type of the item: Folder, File or String. + :type item_type: object + :param last_modified_by: Modifier. + :type last_modified_by: str + :param path: Unique path that identifies the item. + :type path: str + :param scope_identifier: Project Id. + :type scope_identifier: str + :param status: Status of the item: Created or Pending Upload. + :type status: object + :param ticket: + :type ticket: str + """ + + _attribute_map = { + 'container_id': {'key': 'containerId', 'type': 'long'}, + 'content_id': {'key': 'contentId', 'type': '[number]'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'}, + 'file_encoding': {'key': 'fileEncoding', 'type': 'int'}, + 'file_hash': {'key': 'fileHash', 'type': '[number]'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'file_length': {'key': 'fileLength', 'type': 'long'}, + 'file_type': {'key': 'fileType', 'type': 'int'}, + 'item_location': {'key': 'itemLocation', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'object'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'ticket': {'key': 'ticket', 'type': 'str'} + } + + def __init__(self, container_id=None, content_id=None, content_location=None, created_by=None, date_created=None, date_last_modified=None, file_encoding=None, file_hash=None, file_id=None, file_length=None, file_type=None, item_location=None, item_type=None, last_modified_by=None, path=None, scope_identifier=None, status=None, ticket=None): + super(FileContainerItem, self).__init__() + self.container_id = container_id + self.content_id = content_id + self.content_location = content_location + self.created_by = created_by + self.date_created = date_created + self.date_last_modified = date_last_modified + self.file_encoding = file_encoding + self.file_hash = file_hash + self.file_id = file_id + self.file_length = file_length + self.file_type = file_type + self.item_location = item_location + self.item_type = item_type + self.last_modified_by = last_modified_by + self.path = path + self.scope_identifier = scope_identifier + self.status = status + self.ticket = ticket diff --git a/vsts/vsts/gallery/v4_1/__init__.py b/vsts/vsts/gallery/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/gallery/v4_1/gallery_client.py b/vsts/vsts/gallery/v4_1/gallery_client.py new file mode 100644 index 00000000..d5026906 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/gallery_client.py @@ -0,0 +1,1565 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class GalleryClient(VssClient): + """Gallery + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GalleryClient, 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 share_extension_by_id(self, extension_id, account_name): + """ShareExtensionById. + [Preview API] + :param str extension_id: + :param str account_name: + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='POST', + location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', + version='4.1-preview.1', + route_values=route_values) + + def unshare_extension_by_id(self, extension_id, account_name): + """UnshareExtensionById. + [Preview API] + :param str extension_id: + :param str account_name: + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='DELETE', + location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', + version='4.1-preview.1', + route_values=route_values) + + def share_extension(self, publisher_name, extension_name, account_name): + """ShareExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str account_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='POST', + location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', + version='4.1-preview.1', + route_values=route_values) + + def unshare_extension(self, publisher_name, extension_name, account_name): + """UnshareExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str account_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if account_name is not None: + route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') + self._send(http_method='DELETE', + location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', + version='4.1-preview.1', + route_values=route_values) + + def get_acquisition_options(self, item_id, installation_target, test_commerce=None, is_free_or_trial_install=None): + """GetAcquisitionOptions. + [Preview API] + :param str item_id: + :param str installation_target: + :param bool test_commerce: + :param bool is_free_or_trial_install: + :rtype: :class:` ` + """ + route_values = {} + if item_id is not None: + route_values['itemId'] = self._serialize.url('item_id', item_id, 'str') + query_parameters = {} + if installation_target is not None: + query_parameters['installationTarget'] = self._serialize.query('installation_target', installation_target, 'str') + if test_commerce is not None: + query_parameters['testCommerce'] = self._serialize.query('test_commerce', test_commerce, 'bool') + if is_free_or_trial_install is not None: + query_parameters['isFreeOrTrialInstall'] = self._serialize.query('is_free_or_trial_install', is_free_or_trial_install, 'bool') + response = self._send(http_method='GET', + location_id='9d0a0105-075e-4760-aa15-8bcf54d1bd7d', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AcquisitionOptions', response) + + def request_acquisition(self, acquisition_request): + """RequestAcquisition. + [Preview API] + :param :class:` ` acquisition_request: + :rtype: :class:` ` + """ + content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') + response = self._send(http_method='POST', + location_id='3adb1f2d-e328-446e-be73-9f6d98071c45', + version='4.1-preview.1', + content=content) + return self._deserialize('ExtensionAcquisitionRequest', response) + + def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None): + """GetAssetByName. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str asset_type: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='7529171f-a002-4180-93ba-685f358a0482', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None): + """GetAsset. + [Preview API] + :param str extension_id: + :param str version: + :param str asset_type: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None): + """GetAssetAuthenticated. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str asset_type: + :param str account_token: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + response = self._send(http_method='GET', + location_id='506aff36-2622-4f70-8063-77cce6366d20', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def associate_azure_publisher(self, publisher_name, azure_publisher_id): + """AssociateAzurePublisher. + [Preview API] + :param str publisher_name: + :param str azure_publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if azure_publisher_id is not None: + query_parameters['azurePublisherId'] = self._serialize.query('azure_publisher_id', azure_publisher_id, 'str') + response = self._send(http_method='PUT', + location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AzurePublisher', response) + + def query_associated_azure_publisher(self, publisher_name): + """QueryAssociatedAzurePublisher. + [Preview API] + :param str publisher_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + response = self._send(http_method='GET', + location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('AzurePublisher', response) + + def get_categories(self, languages=None): + """GetCategories. + [Preview API] + :param str languages: + :rtype: [str] + """ + query_parameters = {} + if languages is not None: + query_parameters['languages'] = self._serialize.query('languages', languages, 'str') + response = self._send(http_method='GET', + location_id='e0a5a71e-3ac3-43a0-ae7d-0bb5c3046a2a', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_category_details(self, category_name, languages=None, product=None): + """GetCategoryDetails. + [Preview API] + :param str category_name: + :param str languages: + :param str product: + :rtype: :class:` ` + """ + route_values = {} + if category_name is not None: + route_values['categoryName'] = self._serialize.url('category_name', category_name, 'str') + query_parameters = {} + if languages is not None: + query_parameters['languages'] = self._serialize.query('languages', languages, 'str') + if product is not None: + query_parameters['product'] = self._serialize.query('product', product, 'str') + response = self._send(http_method='GET', + location_id='75d3c04d-84d2-4973-acd2-22627587dabc', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('CategoriesResult', response) + + def get_category_tree(self, product, category_id, lcid=None, source=None, product_version=None, skus=None, sub_skus=None): + """GetCategoryTree. + [Preview API] + :param str product: + :param str category_id: + :param int lcid: + :param str source: + :param str product_version: + :param str skus: + :param str sub_skus: + :rtype: :class:` ` + """ + route_values = {} + if product is not None: + route_values['product'] = self._serialize.url('product', product, 'str') + if category_id is not None: + route_values['categoryId'] = self._serialize.url('category_id', category_id, 'str') + query_parameters = {} + if lcid is not None: + query_parameters['lcid'] = self._serialize.query('lcid', lcid, 'int') + if source is not None: + query_parameters['source'] = self._serialize.query('source', source, 'str') + if product_version is not None: + query_parameters['productVersion'] = self._serialize.query('product_version', product_version, 'str') + if skus is not None: + query_parameters['skus'] = self._serialize.query('skus', skus, 'str') + if sub_skus is not None: + query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') + response = self._send(http_method='GET', + location_id='1102bb42-82b0-4955-8d8a-435d6b4cedd3', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProductCategory', response) + + def get_root_categories(self, product, lcid=None, source=None, product_version=None, skus=None, sub_skus=None): + """GetRootCategories. + [Preview API] + :param str product: + :param int lcid: + :param str source: + :param str product_version: + :param str skus: + :param str sub_skus: + :rtype: :class:` ` + """ + route_values = {} + if product is not None: + route_values['product'] = self._serialize.url('product', product, 'str') + query_parameters = {} + if lcid is not None: + query_parameters['lcid'] = self._serialize.query('lcid', lcid, 'int') + if source is not None: + query_parameters['source'] = self._serialize.query('source', source, 'str') + if product_version is not None: + query_parameters['productVersion'] = self._serialize.query('product_version', product_version, 'str') + if skus is not None: + query_parameters['skus'] = self._serialize.query('skus', skus, 'str') + if sub_skus is not None: + query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') + response = self._send(http_method='GET', + location_id='31fba831-35b2-46f6-a641-d05de5a877d8', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProductCategoriesResult', response) + + def get_certificate(self, publisher_name, extension_name, version=None): + """GetCertificate. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='e905ad6a-3f1f-4d08-9f6d-7d357ff8b7d0', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def create_draft_for_edit_extension(self, publisher_name, extension_name): + """CreateDraftForEditExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + response = self._send(http_method='POST', + location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ExtensionDraft', response) + + def perform_edit_extension_draft_operation(self, draft_patch, publisher_name, extension_name, draft_id): + """PerformEditExtensionDraftOperation. + [Preview API] + :param :class:` ` draft_patch: + :param str publisher_name: + :param str extension_name: + :param str draft_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + content = self._serialize.body(draft_patch, 'ExtensionDraftPatch') + response = self._send(http_method='PATCH', + location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ExtensionDraft', response) + + def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_name, extension_name, draft_id, file_name=None): + """UpdatePayloadInDraftForEditExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str extension_name: + :param str draft_id: + :param String file_name: Header to pass the filename of the uploaded data + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraft', response) + + def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, extension_name, draft_id, asset_type): + """AddAssetForEditExtensionDraft. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str extension_name: + :param str draft_id: + :param str asset_type: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='f1db9c47-6619-4998-a7e5-d7f9f41a4617', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraftAsset', response) + + def create_draft_for_new_extension(self, upload_stream, publisher_name, product, file_name=None): + """CreateDraftForNewExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param String product: Header to pass the product type of the payload file + :param String file_name: Header to pass the filename of the uploaded data + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraft', response) + + def perform_new_extension_draft_operation(self, draft_patch, publisher_name, draft_id): + """PerformNewExtensionDraftOperation. + [Preview API] + :param :class:` ` draft_patch: + :param str publisher_name: + :param str draft_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + content = self._serialize.body(draft_patch, 'ExtensionDraftPatch') + response = self._send(http_method='PATCH', + location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ExtensionDraft', response) + + def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_name, draft_id, file_name=None): + """UpdatePayloadInDraftForNewExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str draft_id: + :param String file_name: Header to pass the filename of the uploaded data + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraft', response) + + def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft_id, asset_type): + """AddAssetForNewExtensionDraft. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str draft_id: + :param str asset_type: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraftAsset', response) + + def get_asset_from_edit_extension_draft(self, publisher_name, draft_id, asset_type, extension_name): + """GetAssetFromEditExtensionDraft. + [Preview API] + :param str publisher_name: + :param str draft_id: + :param str asset_type: + :param str extension_name: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if extension_name is not None: + query_parameters['extensionName'] = self._serialize.query('extension_name', extension_name, 'str') + response = self._send(http_method='GET', + location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_asset_from_new_extension_draft(self, publisher_name, draft_id, asset_type): + """GetAssetFromNewExtensionDraft. + [Preview API] + :param str publisher_name: + :param str draft_id: + :param str asset_type: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + response = self._send(http_method='GET', + location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_extension_events(self, publisher_name, extension_name, count=None, after_date=None, include=None, include_property=None): + """GetExtensionEvents. + [Preview API] Get install/uninstall events of an extension. If both count and afterDate parameters are specified, count takes precedence. + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param int count: Count of events to fetch, applies to each event type. + :param datetime after_date: Fetch events that occurred on or after this date + :param str include: Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events + :param str include_property: Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + if include is not None: + query_parameters['include'] = self._serialize.query('include', include, 'str') + if include_property is not None: + query_parameters['includeProperty'] = self._serialize.query('include_property', include_property, 'str') + response = self._send(http_method='GET', + location_id='3d13c499-2168-4d06-bef4-14aba185dcd5', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ExtensionEvents', response) + + def publish_extension_events(self, extension_events): + """PublishExtensionEvents. + [Preview API] API endpoint to publish extension install/uninstall events. This is meant to be invoked by EMS only for sending us data related to install/uninstall of an extension. + :param [ExtensionEvents] extension_events: + """ + content = self._serialize.body(extension_events, '[ExtensionEvents]') + self._send(http_method='POST', + location_id='0bf2bd3a-70e0-4d5d-8bf7-bd4a9c2ab6e7', + version='4.1-preview.1', + content=content) + + def query_extensions(self, extension_query, account_token=None): + """QueryExtensions. + [Preview API] + :param :class:` ` extension_query: + :param str account_token: + :rtype: :class:` ` + """ + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + content = self._serialize.body(extension_query, 'ExtensionQuery') + response = self._send(http_method='POST', + location_id='eb9d5ee1-6d43-456b-b80e-8a96fbc014b6', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('ExtensionQueryResult', response) + + def create_extension(self, upload_stream): + """CreateExtension. + [Preview API] + :param object upload_stream: Stream to upload + :rtype: :class:` ` + """ + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.1-preview.2', + content=content, + media_type='application/octet-stream') + return self._deserialize('PublishedExtension', response) + + def delete_extension_by_id(self, extension_id, version=None): + """DeleteExtensionById. + [Preview API] + :param str extension_id: + :param str version: + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + self._send(http_method='DELETE', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + + def get_extension_by_id(self, extension_id, version=None, flags=None): + """GetExtensionById. + [Preview API] + :param str extension_id: + :param str version: + :param str flags: + :rtype: :class:` ` + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'str') + response = self._send(http_method='GET', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PublishedExtension', response) + + def update_extension_by_id(self, extension_id): + """UpdateExtensionById. + [Preview API] + :param str extension_id: + :rtype: :class:` ` + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='PUT', + location_id='a41192c8-9525-4b58-bc86-179fa549d80d', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('PublishedExtension', response) + + def create_extension_with_publisher(self, upload_stream, publisher_name): + """CreateExtensionWithPublisher. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.1-preview.2', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('PublishedExtension', response) + + def delete_extension(self, publisher_name, extension_name, version=None): + """DeleteExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + self._send(http_method='DELETE', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + + def get_extension(self, publisher_name, extension_name, version=None, flags=None, account_token=None): + """GetExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str flags: + :param str account_token: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if version is not None: + query_parameters['version'] = self._serialize.query('version', version, 'str') + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'str') + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + response = self._send(http_method='GET', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PublishedExtension', response) + + def update_extension(self, upload_stream, publisher_name, extension_name): + """UpdateExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str extension_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.1-preview.2', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('PublishedExtension', response) + + def update_extension_properties(self, publisher_name, extension_name, flags): + """UpdateExtensionProperties. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str flags: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'str') + response = self._send(http_method='PATCH', + location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PublishedExtension', response) + + def extension_validator(self, azure_rest_api_request_model): + """ExtensionValidator. + [Preview API] + :param :class:` ` azure_rest_api_request_model: + """ + content = self._serialize.body(azure_rest_api_request_model, 'AzureRestApiRequestModel') + self._send(http_method='POST', + location_id='05e8a5e1-8c59-4c2c-8856-0ff087d1a844', + version='4.1-preview.1', + content=content) + + def send_notifications(self, notification_data): + """SendNotifications. + [Preview API] Send Notification + :param :class:` ` notification_data: Denoting the data needed to send notification + """ + content = self._serialize.body(notification_data, 'NotificationsData') + self._send(http_method='POST', + location_id='eab39817-413c-4602-a49f-07ad00844980', + version='4.1-preview.1', + content=content) + + def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None): + """GetPackage. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None): + """GetAssetWithToken. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :param str asset_type: + :param str asset_token: + :param str account_token: + :param bool accept_default: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + if asset_token is not None: + route_values['assetToken'] = self._serialize.url('asset_token', asset_token, 'str') + query_parameters = {} + if account_token is not None: + query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') + if accept_default is not None: + query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') + response = self._send(http_method='GET', + location_id='364415a1-0077-4a41-a7a0-06edd4497492', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def query_publishers(self, publisher_query): + """QueryPublishers. + [Preview API] + :param :class:` ` publisher_query: + :rtype: :class:` ` + """ + content = self._serialize.body(publisher_query, 'PublisherQuery') + response = self._send(http_method='POST', + location_id='2ad6ee0a-b53f-4034-9d1d-d009fda1212e', + version='4.1-preview.1', + content=content) + return self._deserialize('PublisherQueryResult', response) + + def create_publisher(self, publisher): + """CreatePublisher. + [Preview API] + :param :class:` ` publisher: + :rtype: :class:` ` + """ + content = self._serialize.body(publisher, 'Publisher') + response = self._send(http_method='POST', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.1-preview.1', + content=content) + return self._deserialize('Publisher', response) + + def delete_publisher(self, publisher_name): + """DeletePublisher. + [Preview API] + :param str publisher_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + self._send(http_method='DELETE', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.1-preview.1', + route_values=route_values) + + def get_publisher(self, publisher_name, flags=None): + """GetPublisher. + [Preview API] + :param str publisher_name: + :param int flags: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Publisher', response) + + def update_publisher(self, publisher, publisher_name): + """UpdatePublisher. + [Preview API] + :param :class:` ` publisher: + :param str publisher_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + content = self._serialize.body(publisher, 'Publisher') + response = self._send(http_method='PUT', + location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Publisher', response) + + def get_questions(self, publisher_name, extension_name, count=None, page=None, after_date=None): + """GetQuestions. + [Preview API] Returns a list of questions with their responses associated with an extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param int count: Number of questions to retrieve (defaults to 10). + :param int page: Page number from which set of questions are to be retrieved. + :param datetime after_date: If provided, results questions are returned which were posted after this date + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if page is not None: + query_parameters['page'] = self._serialize.query('page', page, 'int') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='c010d03d-812c-4ade-ae07-c1862475eda5', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('QuestionsResult', response) + + def report_question(self, concern, pub_name, ext_name, question_id): + """ReportQuestion. + [Preview API] Flags a concern with an existing question for an extension. + :param :class:` ` concern: User reported concern with a question for the extension. + :param str pub_name: Name of the publisher who published the extension. + :param str ext_name: Name of the extension. + :param long question_id: Identifier of the question to be updated for the extension. + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + content = self._serialize.body(concern, 'Concern') + response = self._send(http_method='POST', + location_id='784910cd-254a-494d-898b-0728549b2f10', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Concern', response) + + def create_question(self, question, publisher_name, extension_name): + """CreateQuestion. + [Preview API] Creates a new question for an extension. + :param :class:` ` question: Question to be created for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(question, 'Question') + response = self._send(http_method='POST', + location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Question', response) + + def delete_question(self, publisher_name, extension_name, question_id): + """DeleteQuestion. + [Preview API] Deletes an existing question and all its associated responses for an extension. (soft delete) + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question to be deleted for the extension. + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + self._send(http_method='DELETE', + location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', + version='4.1-preview.1', + route_values=route_values) + + def update_question(self, question, publisher_name, extension_name, question_id): + """UpdateQuestion. + [Preview API] Updates an existing question for an extension. + :param :class:` ` question: Updated question to be set for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question to be updated for the extension. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + content = self._serialize.body(question, 'Question') + response = self._send(http_method='PATCH', + location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Question', response) + + def create_response(self, response, publisher_name, extension_name, question_id): + """CreateResponse. + [Preview API] Creates a new response for a given question for an extension. + :param :class:` ` response: Response to be created for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question for which response is to be created for the extension. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + content = self._serialize.body(response, 'Response') + response = self._send(http_method='POST', + location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Response', response) + + def delete_response(self, publisher_name, extension_name, question_id, response_id): + """DeleteResponse. + [Preview API] Deletes a response for an extension. (soft delete) + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifies the question whose response is to be deleted. + :param long response_id: Identifies the response to be deleted. + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + if response_id is not None: + route_values['responseId'] = self._serialize.url('response_id', response_id, 'long') + self._send(http_method='DELETE', + location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', + version='4.1-preview.1', + route_values=route_values) + + def update_response(self, response, publisher_name, extension_name, question_id, response_id): + """UpdateResponse. + [Preview API] Updates an existing response for a given question for an extension. + :param :class:` ` response: Updated response to be set for the extension. + :param str publisher_name: Name of the publisher who published the extension. + :param str extension_name: Name of the extension. + :param long question_id: Identifier of the question for which response is to be updated for the extension. + :param long response_id: Identifier of the response which has to be updated. + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if question_id is not None: + route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') + if response_id is not None: + route_values['responseId'] = self._serialize.url('response_id', response_id, 'long') + content = self._serialize.body(response, 'Response') + response = self._send(http_method='PATCH', + location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Response', response) + + def get_extension_reports(self, publisher_name, extension_name, days=None, count=None, after_date=None): + """GetExtensionReports. + [Preview API] Returns extension reports + :param str publisher_name: Name of the publisher who published the extension + :param str extension_name: Name of the extension + :param int days: Last n days report. If afterDate and days are specified, days will take priority + :param int count: Number of events to be returned + :param datetime after_date: Use if you want to fetch events newer than the specified date + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if days is not None: + query_parameters['days'] = self._serialize.query('days', days, 'int') + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='79e0c74f-157f-437e-845f-74fbb4121d4c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_reviews(self, publisher_name, extension_name, count=None, filter_options=None, before_date=None, after_date=None): + """GetReviews. + [Preview API] Returns a list of reviews associated with an extension + :param str publisher_name: Name of the publisher who published the extension + :param str extension_name: Name of the extension + :param int count: Number of reviews to retrieve (defaults to 5) + :param str filter_options: FilterOptions to filter out empty reviews etcetera, defaults to none + :param datetime before_date: Use if you want to fetch reviews older than the specified date, defaults to null + :param datetime after_date: Use if you want to fetch reviews newer than the specified date, defaults to null + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if count is not None: + query_parameters['count'] = self._serialize.query('count', count, 'int') + if filter_options is not None: + query_parameters['filterOptions'] = self._serialize.query('filter_options', filter_options, 'str') + if before_date is not None: + query_parameters['beforeDate'] = self._serialize.query('before_date', before_date, 'iso-8601') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='5b3f819f-f247-42ad-8c00-dd9ab9ab246d', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReviewsResult', response) + + def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=None): + """GetReviewsSummary. + [Preview API] Returns a summary of the reviews + :param str pub_name: Name of the publisher who published the extension + :param str ext_name: Name of the extension + :param datetime before_date: Use if you want to fetch summary of reviews older than the specified date, defaults to null + :param datetime after_date: Use if you want to fetch summary of reviews newer than the specified date, defaults to null + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + query_parameters = {} + if before_date is not None: + query_parameters['beforeDate'] = self._serialize.query('before_date', before_date, 'iso-8601') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='b7b44e21-209e-48f0-ae78-04727fc37d77', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReviewSummary', response) + + def create_review(self, review, pub_name, ext_name): + """CreateReview. + [Preview API] Creates a new review for an extension + :param :class:` ` review: Review to be created for the extension + :param str pub_name: Name of the publisher who published the extension + :param str ext_name: Name of the extension + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + content = self._serialize.body(review, 'Review') + response = self._send(http_method='POST', + location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Review', response) + + def delete_review(self, pub_name, ext_name, review_id): + """DeleteReview. + [Preview API] Deletes a review + :param str pub_name: Name of the pubilsher who published the extension + :param str ext_name: Name of the extension + :param long review_id: Id of the review which needs to be updated + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + if review_id is not None: + route_values['reviewId'] = self._serialize.url('review_id', review_id, 'long') + self._send(http_method='DELETE', + location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', + version='4.1-preview.1', + route_values=route_values) + + def update_review(self, review_patch, pub_name, ext_name, review_id): + """UpdateReview. + [Preview API] Updates or Flags a review + :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review + :param str pub_name: Name of the pubilsher who published the extension + :param str ext_name: Name of the extension + :param long review_id: Id of the review which needs to be updated + :rtype: :class:` ` + """ + route_values = {} + if pub_name is not None: + route_values['pubName'] = self._serialize.url('pub_name', pub_name, 'str') + if ext_name is not None: + route_values['extName'] = self._serialize.url('ext_name', ext_name, 'str') + if review_id is not None: + route_values['reviewId'] = self._serialize.url('review_id', review_id, 'long') + content = self._serialize.body(review_patch, 'ReviewPatch') + response = self._send(http_method='PATCH', + location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReviewPatch', response) + + def create_category(self, category): + """CreateCategory. + [Preview API] + :param :class:` ` category: + :rtype: :class:` ` + """ + content = self._serialize.body(category, 'ExtensionCategory') + response = self._send(http_method='POST', + location_id='476531a3-7024-4516-a76a-ed64d3008ad6', + version='4.1-preview.1', + content=content) + return self._deserialize('ExtensionCategory', response) + + def get_gallery_user_settings(self, user_scope, key=None): + """GetGalleryUserSettings. + [Preview API] Get all setting entries for the given user/all-users scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='9b75ece3-7960-401c-848b-148ac01ca350', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{object}', response) + + def set_gallery_user_settings(self, entries, user_scope): + """SetGalleryUserSettings. + [Preview API] Set all setting entries for the given user/all-users scope + :param {object} entries: A key-value pair of all settings that need to be set + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='9b75ece3-7960-401c-848b-148ac01ca350', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def generate_key(self, key_type, expire_current_seconds=None): + """GenerateKey. + [Preview API] + :param str key_type: + :param int expire_current_seconds: + """ + route_values = {} + if key_type is not None: + route_values['keyType'] = self._serialize.url('key_type', key_type, 'str') + query_parameters = {} + if expire_current_seconds is not None: + query_parameters['expireCurrentSeconds'] = self._serialize.query('expire_current_seconds', expire_current_seconds, 'int') + self._send(http_method='POST', + location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_signing_key(self, key_type): + """GetSigningKey. + [Preview API] + :param str key_type: + :rtype: str + """ + route_values = {} + if key_type is not None: + route_values['keyType'] = self._serialize.url('key_type', key_type, 'str') + response = self._send(http_method='GET', + location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def update_extension_statistics(self, extension_statistics_update, publisher_name, extension_name): + """UpdateExtensionStatistics. + [Preview API] + :param :class:` ` extension_statistics_update: + :param str publisher_name: + :param str extension_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + content = self._serialize.body(extension_statistics_update, 'ExtensionStatisticUpdate') + self._send(http_method='PATCH', + location_id='a0ea3204-11e9-422d-a9ca-45851cc41400', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def get_extension_daily_stats(self, publisher_name, extension_name, days=None, aggregate=None, after_date=None): + """GetExtensionDailyStats. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param int days: + :param str aggregate: + :param datetime after_date: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if days is not None: + query_parameters['days'] = self._serialize.query('days', days, 'int') + if aggregate is not None: + query_parameters['aggregate'] = self._serialize.query('aggregate', aggregate, 'str') + if after_date is not None: + query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='ae06047e-51c5-4fb4-ab65-7be488544416', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ExtensionDailyStats', response) + + def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, version): + """GetExtensionDailyStatsAnonymous. + [Preview API] This route/location id only supports HTTP POST anonymously, so that the page view daily stat can be incremented from Marketplace client. Trying to call GET on this route should result in an exception. Without this explicit implementation, calling GET on this public route invokes the above GET implementation GetExtensionDailyStats. + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param str version: Version of the extension + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ExtensionDailyStats', response) + + def increment_extension_daily_stat(self, publisher_name, extension_name, version, stat_type): + """IncrementExtensionDailyStat. + [Preview API] Increments a daily statistic associated with the extension + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param str version: Version of the extension + :param str stat_type: Type of stat to increment + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + query_parameters = {} + if stat_type is not None: + query_parameters['statType'] = self._serialize.query('stat_type', stat_type, 'str') + self._send(http_method='POST', + location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_verification_log(self, publisher_name, extension_name, version): + """GetVerificationLog. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str version: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='c5523abe-b843-437f-875b-5833064efe4d', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + diff --git a/vsts/vsts/gallery/v4_1/models/__init__.py b/vsts/vsts/gallery/v4_1/models/__init__.py new file mode 100644 index 00000000..d4025196 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/__init__.py @@ -0,0 +1,125 @@ +# -------------------------------------------------------------------------------------------- +# 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 .acquisition_operation import AcquisitionOperation +from .acquisition_options import AcquisitionOptions +from .answers import Answers +from .asset_details import AssetDetails +from .azure_publisher import AzurePublisher +from .azure_rest_api_request_model import AzureRestApiRequestModel +from .categories_result import CategoriesResult +from .category_language_title import CategoryLanguageTitle +from .concern import Concern +from .event_counts import EventCounts +from .extension_acquisition_request import ExtensionAcquisitionRequest +from .extension_badge import ExtensionBadge +from .extension_category import ExtensionCategory +from .extension_daily_stat import ExtensionDailyStat +from .extension_daily_stats import ExtensionDailyStats +from .extension_draft import ExtensionDraft +from .extension_draft_asset import ExtensionDraftAsset +from .extension_draft_patch import ExtensionDraftPatch +from .extension_event import ExtensionEvent +from .extension_events import ExtensionEvents +from .extension_file import ExtensionFile +from .extension_filter_result import ExtensionFilterResult +from .extension_filter_result_metadata import ExtensionFilterResultMetadata +from .extension_package import ExtensionPackage +from .extension_payload import ExtensionPayload +from .extension_query import ExtensionQuery +from .extension_query_result import ExtensionQueryResult +from .extension_share import ExtensionShare +from .extension_statistic import ExtensionStatistic +from .extension_statistic_update import ExtensionStatisticUpdate +from .extension_version import ExtensionVersion +from .filter_criteria import FilterCriteria +from .installation_target import InstallationTarget +from .metadata_item import MetadataItem +from .notifications_data import NotificationsData +from .product_categories_result import ProductCategoriesResult +from .product_category import ProductCategory +from .published_extension import PublishedExtension +from .publisher import Publisher +from .publisher_facts import PublisherFacts +from .publisher_filter_result import PublisherFilterResult +from .publisher_query import PublisherQuery +from .publisher_query_result import PublisherQueryResult +from .qn_aItem import QnAItem +from .query_filter import QueryFilter +from .question import Question +from .questions_result import QuestionsResult +from .rating_count_per_rating import RatingCountPerRating +from .response import Response +from .review import Review +from .review_patch import ReviewPatch +from .review_reply import ReviewReply +from .reviews_result import ReviewsResult +from .review_summary import ReviewSummary +from .unpackaged_extension_data import UnpackagedExtensionData +from .user_identity_ref import UserIdentityRef +from .user_reported_concern import UserReportedConcern + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOptions', + 'Answers', + 'AssetDetails', + 'AzurePublisher', + 'AzureRestApiRequestModel', + 'CategoriesResult', + 'CategoryLanguageTitle', + 'Concern', + 'EventCounts', + 'ExtensionAcquisitionRequest', + 'ExtensionBadge', + 'ExtensionCategory', + 'ExtensionDailyStat', + 'ExtensionDailyStats', + 'ExtensionDraft', + 'ExtensionDraftAsset', + 'ExtensionDraftPatch', + 'ExtensionEvent', + 'ExtensionEvents', + 'ExtensionFile', + 'ExtensionFilterResult', + 'ExtensionFilterResultMetadata', + 'ExtensionPackage', + 'ExtensionPayload', + 'ExtensionQuery', + 'ExtensionQueryResult', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionStatisticUpdate', + 'ExtensionVersion', + 'FilterCriteria', + 'InstallationTarget', + 'MetadataItem', + 'NotificationsData', + 'ProductCategoriesResult', + 'ProductCategory', + 'PublishedExtension', + 'Publisher', + 'PublisherFacts', + 'PublisherFilterResult', + 'PublisherQuery', + 'PublisherQueryResult', + 'QnAItem', + 'QueryFilter', + 'Question', + 'QuestionsResult', + 'RatingCountPerRating', + 'Response', + 'Review', + 'ReviewPatch', + 'ReviewReply', + 'ReviewsResult', + 'ReviewSummary', + 'UnpackagedExtensionData', + 'UserIdentityRef', + 'UserReportedConcern', +] diff --git a/vsts/vsts/gallery/v4_1/models/acquisition_operation.py b/vsts/vsts/gallery/v4_1/models/acquisition_operation.py new file mode 100644 index 00000000..bd2e4ef2 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/acquisition_operation.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason diff --git a/vsts/vsts/gallery/v4_1/models/acquisition_options.py b/vsts/vsts/gallery/v4_1/models/acquisition_options.py new file mode 100644 index 00000000..4010a168 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/acquisition_options.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.target = target diff --git a/vsts/vsts/gallery/v4_1/models/answers.py b/vsts/vsts/gallery/v4_1/models/answers.py new file mode 100644 index 00000000..0f9a70e0 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/answers.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Answers(Model): + """Answers. + + :param vSMarketplace_extension_name: Gets or sets the vs marketplace extension name + :type vSMarketplace_extension_name: str + :param vSMarketplace_publisher_name: Gets or sets the vs marketplace publsiher name + :type vSMarketplace_publisher_name: str + """ + + _attribute_map = { + 'vSMarketplace_extension_name': {'key': 'vSMarketplaceExtensionName', 'type': 'str'}, + 'vSMarketplace_publisher_name': {'key': 'vSMarketplacePublisherName', 'type': 'str'} + } + + def __init__(self, vSMarketplace_extension_name=None, vSMarketplace_publisher_name=None): + super(Answers, self).__init__() + self.vSMarketplace_extension_name = vSMarketplace_extension_name + self.vSMarketplace_publisher_name = vSMarketplace_publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/asset_details.py b/vsts/vsts/gallery/v4_1/models/asset_details.py new file mode 100644 index 00000000..a6b0c8a9 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/asset_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssetDetails(Model): + """AssetDetails. + + :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name + :type answers: :class:`Answers ` + :param publisher_natural_identifier: Gets or sets the VS publisher Id + :type publisher_natural_identifier: str + """ + + _attribute_map = { + 'answers': {'key': 'answers', 'type': 'Answers'}, + 'publisher_natural_identifier': {'key': 'publisherNaturalIdentifier', 'type': 'str'} + } + + def __init__(self, answers=None, publisher_natural_identifier=None): + super(AssetDetails, self).__init__() + self.answers = answers + self.publisher_natural_identifier = publisher_natural_identifier diff --git a/vsts/vsts/gallery/v4_1/models/azure_publisher.py b/vsts/vsts/gallery/v4_1/models/azure_publisher.py new file mode 100644 index 00000000..26b6240c --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/azure_publisher.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzurePublisher(Model): + """AzurePublisher. + + :param azure_publisher_id: + :type azure_publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'azure_publisher_id': {'key': 'azurePublisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, azure_publisher_id=None, publisher_name=None): + super(AzurePublisher, self).__init__() + self.azure_publisher_id = azure_publisher_id + self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py b/vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py new file mode 100644 index 00000000..cde6c199 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzureRestApiRequestModel(Model): + """AzureRestApiRequestModel. + + :param asset_details: Gets or sets the Asset details + :type asset_details: :class:`AssetDetails ` + :param asset_id: Gets or sets the asset id + :type asset_id: str + :param asset_version: Gets or sets the asset version + :type asset_version: long + :param customer_support_email: Gets or sets the customer support email + :type customer_support_email: str + :param integration_contact_email: Gets or sets the integration contact email + :type integration_contact_email: str + :param operation: Gets or sets the asset version + :type operation: str + :param plan_id: Gets or sets the plan identifier if any. + :type plan_id: str + :param publisher_id: Gets or sets the publisher id + :type publisher_id: str + :param type: Gets or sets the resource type + :type type: str + """ + + _attribute_map = { + 'asset_details': {'key': 'assetDetails', 'type': 'AssetDetails'}, + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'asset_version': {'key': 'assetVersion', 'type': 'long'}, + 'customer_support_email': {'key': 'customerSupportEmail', 'type': 'str'}, + 'integration_contact_email': {'key': 'integrationContactEmail', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, asset_details=None, asset_id=None, asset_version=None, customer_support_email=None, integration_contact_email=None, operation=None, plan_id=None, publisher_id=None, type=None): + super(AzureRestApiRequestModel, self).__init__() + self.asset_details = asset_details + self.asset_id = asset_id + self.asset_version = asset_version + self.customer_support_email = customer_support_email + self.integration_contact_email = integration_contact_email + self.operation = operation + self.plan_id = plan_id + self.publisher_id = publisher_id + self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/categories_result.py b/vsts/vsts/gallery/v4_1/models/categories_result.py new file mode 100644 index 00000000..35d47965 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/categories_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CategoriesResult(Model): + """CategoriesResult. + + :param categories: + :type categories: list of :class:`ExtensionCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ExtensionCategory]'} + } + + def __init__(self, categories=None): + super(CategoriesResult, self).__init__() + self.categories = categories diff --git a/vsts/vsts/gallery/v4_1/models/category_language_title.py b/vsts/vsts/gallery/v4_1/models/category_language_title.py new file mode 100644 index 00000000..af873077 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/category_language_title.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CategoryLanguageTitle(Model): + """CategoryLanguageTitle. + + :param lang: The language for which the title is applicable + :type lang: str + :param lcid: The language culture id of the lang parameter + :type lcid: int + :param title: Actual title to be shown on the UI + :type title: str + """ + + _attribute_map = { + 'lang': {'key': 'lang', 'type': 'str'}, + 'lcid': {'key': 'lcid', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, lang=None, lcid=None, title=None): + super(CategoryLanguageTitle, self).__init__() + self.lang = lang + self.lcid = lcid + self.title = title diff --git a/vsts/vsts/gallery/v4_1/models/concern.py b/vsts/vsts/gallery/v4_1/models/concern.py new file mode 100644 index 00000000..e57c4a17 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/concern.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# 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 .qn_aItem import QnAItem + + +class Concern(QnAItem): + """Concern. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param category: Category of the concern + :type category: object + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'category': {'key': 'category', 'type': 'object'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, category=None): + super(Concern, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.category = category diff --git a/vsts/vsts/gallery/v4_1/models/event_counts.py b/vsts/vsts/gallery/v4_1/models/event_counts.py new file mode 100644 index 00000000..dc65473e --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/event_counts.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventCounts(Model): + """EventCounts. + + :param average_rating: Average rating on the day for extension + :type average_rating: number + :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) + :type buy_count: int + :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) + :type connected_buy_count: int + :param connected_install_count: Number of times the extension was installed in connected scenario (applies only to VSTS extensions) + :type connected_install_count: int + :param install_count: Number of times the extension was installed + :type install_count: long + :param try_count: Number of times the extension was installed as a trial (applies only to VSTS extensions) + :type try_count: int + :param uninstall_count: Number of times the extension was uninstalled (applies only to VSTS extensions) + :type uninstall_count: int + :param web_download_count: Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs) + :type web_download_count: long + :param web_page_views: Number of detail page views + :type web_page_views: long + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'buy_count': {'key': 'buyCount', 'type': 'int'}, + 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, + 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, + 'install_count': {'key': 'installCount', 'type': 'long'}, + 'try_count': {'key': 'tryCount', 'type': 'int'}, + 'uninstall_count': {'key': 'uninstallCount', 'type': 'int'}, + 'web_download_count': {'key': 'webDownloadCount', 'type': 'long'}, + 'web_page_views': {'key': 'webPageViews', 'type': 'long'} + } + + def __init__(self, average_rating=None, buy_count=None, connected_buy_count=None, connected_install_count=None, install_count=None, try_count=None, uninstall_count=None, web_download_count=None, web_page_views=None): + super(EventCounts, self).__init__() + self.average_rating = average_rating + self.buy_count = buy_count + self.connected_buy_count = connected_buy_count + self.connected_install_count = connected_install_count + self.install_count = install_count + self.try_count = try_count + self.uninstall_count = uninstall_count + self.web_download_count = web_download_count + self.web_page_views = web_page_views diff --git a/vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py b/vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py new file mode 100644 index 00000000..f5faa45c --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id + :type targets: list of str + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'}, + 'targets': {'key': 'targets', 'type': '[str]'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None, targets=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity + self.targets = targets diff --git a/vsts/vsts/gallery/v4_1/models/extension_badge.py b/vsts/vsts/gallery/v4_1/models/extension_badge.py new file mode 100644 index 00000000..bcb0fa1c --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_badge.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link diff --git a/vsts/vsts/gallery/v4_1/models/extension_category.py b/vsts/vsts/gallery/v4_1/models/extension_category.py new file mode 100644 index 00000000..f95a77e2 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_category.py @@ -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.serialization import Model + + +class ExtensionCategory(Model): + """ExtensionCategory. + + :param associated_products: The name of the products with which this category is associated to. + :type associated_products: list of str + :param category_id: + :type category_id: int + :param category_name: This is the internal name for a category + :type category_name: str + :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles + :type language: str + :param language_titles: The list of all the titles of this category in various languages + :type language_titles: list of :class:`CategoryLanguageTitle ` + :param parent_category_name: This is the internal name of the parent if this is associated with a parent + :type parent_category_name: str + """ + + _attribute_map = { + 'associated_products': {'key': 'associatedProducts', 'type': '[str]'}, + 'category_id': {'key': 'categoryId', 'type': 'int'}, + 'category_name': {'key': 'categoryName', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'language_titles': {'key': 'languageTitles', 'type': '[CategoryLanguageTitle]'}, + 'parent_category_name': {'key': 'parentCategoryName', 'type': 'str'} + } + + def __init__(self, associated_products=None, category_id=None, category_name=None, language=None, language_titles=None, parent_category_name=None): + super(ExtensionCategory, self).__init__() + self.associated_products = associated_products + self.category_id = category_id + self.category_name = category_name + self.language = language + self.language_titles = language_titles + self.parent_category_name = parent_category_name diff --git a/vsts/vsts/gallery/v4_1/models/extension_daily_stat.py b/vsts/vsts/gallery/v4_1/models/extension_daily_stat.py new file mode 100644 index 00000000..97d2d15e --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_daily_stat.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDailyStat(Model): + """ExtensionDailyStat. + + :param counts: Stores the event counts + :type counts: :class:`EventCounts ` + :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. + :type extended_stats: dict + :param statistic_date: Timestamp of this data point + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'counts': {'key': 'counts', 'type': 'EventCounts'}, + 'extended_stats': {'key': 'extendedStats', 'type': '{object}'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, counts=None, extended_stats=None, statistic_date=None, version=None): + super(ExtensionDailyStat, self).__init__() + self.counts = counts + self.extended_stats = extended_stats + self.statistic_date = statistic_date + self.version = version diff --git a/vsts/vsts/gallery/v4_1/models/extension_daily_stats.py b/vsts/vsts/gallery/v4_1/models/extension_daily_stats.py new file mode 100644 index 00000000..068a7efa --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_daily_stats.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDailyStats(Model): + """ExtensionDailyStats. + + :param daily_stats: List of extension statistics data points + :type daily_stats: list of :class:`ExtensionDailyStat ` + :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + :param stat_count: Count of stats + :type stat_count: int + """ + + _attribute_map = { + 'daily_stats': {'key': 'dailyStats', 'type': '[ExtensionDailyStat]'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'stat_count': {'key': 'statCount', 'type': 'int'} + } + + def __init__(self, daily_stats=None, extension_id=None, extension_name=None, publisher_name=None, stat_count=None): + super(ExtensionDailyStats, self).__init__() + self.daily_stats = daily_stats + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name + self.stat_count = stat_count diff --git a/vsts/vsts/gallery/v4_1/models/extension_draft.py b/vsts/vsts/gallery/v4_1/models/extension_draft.py new file mode 100644 index 00000000..b7618003 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_draft.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDraft(Model): + """ExtensionDraft. + + :param assets: + :type assets: list of :class:`ExtensionDraftAsset ` + :param created_date: + :type created_date: datetime + :param draft_state: + :type draft_state: object + :param extension_name: + :type extension_name: str + :param id: + :type id: str + :param last_updated: + :type last_updated: datetime + :param payload: + :type payload: :class:`ExtensionPayload ` + :param product: + :type product: str + :param publisher_name: + :type publisher_name: str + :param validation_errors: + :type validation_errors: list of { key: str; value: str } + :param validation_warnings: + :type validation_warnings: list of { key: str; value: str } + """ + + _attribute_map = { + 'assets': {'key': 'assets', 'type': '[ExtensionDraftAsset]'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'draft_state': {'key': 'draftState', 'type': 'object'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'payload': {'key': 'payload', 'type': 'ExtensionPayload'}, + 'product': {'key': 'product', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[{ key: str; value: str }]'}, + 'validation_warnings': {'key': 'validationWarnings', 'type': '[{ key: str; value: str }]'} + } + + def __init__(self, assets=None, created_date=None, draft_state=None, extension_name=None, id=None, last_updated=None, payload=None, product=None, publisher_name=None, validation_errors=None, validation_warnings=None): + super(ExtensionDraft, self).__init__() + self.assets = assets + self.created_date = created_date + self.draft_state = draft_state + self.extension_name = extension_name + self.id = id + self.last_updated = last_updated + self.payload = payload + self.product = product + self.publisher_name = publisher_name + self.validation_errors = validation_errors + self.validation_warnings = validation_warnings diff --git a/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py b/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py new file mode 100644 index 00000000..7aa65f81 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .extension_file import ExtensionFile + + +class ExtensionDraftAsset(ExtensionFile): + """ExtensionDraftAsset. + + :param asset_type: + :type asset_type: str + :param content_type: + :type content_type: str + :param file_id: + :type file_id: int + :param is_default: + :type is_default: bool + :param is_public: + :type is_public: bool + :param language: + :type language: str + :param short_description: + :type short_description: str + :param source: + :type source: str + :param version: + :type version: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + super(ExtensionDraftAsset, self).__init__(asset_type=asset_type, content_type=content_type, file_id=file_id, is_default=is_default, is_public=is_public, language=language, short_description=short_description, source=source, version=version) diff --git a/vsts/vsts/gallery/v4_1/models/extension_draft_patch.py b/vsts/vsts/gallery/v4_1/models/extension_draft_patch.py new file mode 100644 index 00000000..ccccb24d --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_draft_patch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionDraftPatch(Model): + """ExtensionDraftPatch. + + :param extension_data: + :type extension_data: :class:`UnpackagedExtensionData ` + :param operation: + :type operation: object + """ + + _attribute_map = { + 'extension_data': {'key': 'extensionData', 'type': 'UnpackagedExtensionData'}, + 'operation': {'key': 'operation', 'type': 'object'} + } + + def __init__(self, extension_data=None, operation=None): + super(ExtensionDraftPatch, self).__init__() + self.extension_data = extension_data + self.operation = operation diff --git a/vsts/vsts/gallery/v4_1/models/extension_event.py b/vsts/vsts/gallery/v4_1/models/extension_event.py new file mode 100644 index 00000000..64ad2b04 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_event.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEvent(Model): + """ExtensionEvent. + + :param id: Id which identifies each data point uniquely + :type id: long + :param properties: + :type properties: :class:`object ` + :param statistic_date: Timestamp of when the event occurred + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, properties=None, statistic_date=None, version=None): + super(ExtensionEvent, self).__init__() + self.id = id + self.properties = properties + self.statistic_date = statistic_date + self.version = version diff --git a/vsts/vsts/gallery/v4_1/models/extension_events.py b/vsts/vsts/gallery/v4_1/models/extension_events.py new file mode 100644 index 00000000..e63f0c32 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_events.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionEvents(Model): + """ExtensionEvents. + + :param events: Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event + :type events: dict + :param extension_id: Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + """ + + _attribute_map = { + 'events': {'key': 'events', 'type': '{[ExtensionEvent]}'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, events=None, extension_id=None, extension_name=None, publisher_name=None): + super(ExtensionEvents, self).__init__() + self.events = events + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/extension_file.py b/vsts/vsts/gallery/v4_1/models/extension_file.py new file mode 100644 index 00000000..ba792fd5 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_file.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param content_type: + :type content_type: str + :param file_id: + :type file_id: int + :param is_default: + :type is_default: bool + :param is_public: + :type is_public: bool + :param language: + :type language: str + :param short_description: + :type short_description: str + :param source: + :type source: str + :param version: + :type version: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.content_type = content_type + self.file_id = file_id + self.is_default = is_default + self.is_public = is_public + self.language = language + self.short_description = short_description + self.source = source + self.version = version diff --git a/vsts/vsts/gallery/v4_1/models/extension_filter_result.py b/vsts/vsts/gallery/v4_1/models/extension_filter_result.py new file mode 100644 index 00000000..80fe7546 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_filter_result.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFilterResult(Model): + """ExtensionFilterResult. + + :param extensions: This is the set of appplications that matched the query filter supplied. + :type extensions: list of :class:`PublishedExtension ` + :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. + :type paging_token: str + :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'result_metadata': {'key': 'resultMetadata', 'type': '[ExtensionFilterResultMetadata]'} + } + + def __init__(self, extensions=None, paging_token=None, result_metadata=None): + super(ExtensionFilterResult, self).__init__() + self.extensions = extensions + self.paging_token = paging_token + self.result_metadata = result_metadata diff --git a/vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py b/vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py new file mode 100644 index 00000000..cf43173b --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionFilterResultMetadata(Model): + """ExtensionFilterResultMetadata. + + :param metadata_items: The metadata items for the category + :type metadata_items: list of :class:`MetadataItem ` + :param metadata_type: Defines the category of metadata items + :type metadata_type: str + """ + + _attribute_map = { + 'metadata_items': {'key': 'metadataItems', 'type': '[MetadataItem]'}, + 'metadata_type': {'key': 'metadataType', 'type': 'str'} + } + + def __init__(self, metadata_items=None, metadata_type=None): + super(ExtensionFilterResultMetadata, self).__init__() + self.metadata_items = metadata_items + self.metadata_type = metadata_type diff --git a/vsts/vsts/gallery/v4_1/models/extension_package.py b/vsts/vsts/gallery/v4_1/models/extension_package.py new file mode 100644 index 00000000..384cdb0a --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_package.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionPackage(Model): + """ExtensionPackage. + + :param extension_manifest: Base 64 encoded extension package + :type extension_manifest: str + """ + + _attribute_map = { + 'extension_manifest': {'key': 'extensionManifest', 'type': 'str'} + } + + def __init__(self, extension_manifest=None): + super(ExtensionPackage, self).__init__() + self.extension_manifest = extension_manifest diff --git a/vsts/vsts/gallery/v4_1/models/extension_payload.py b/vsts/vsts/gallery/v4_1/models/extension_payload.py new file mode 100644 index 00000000..e742a825 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_payload.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionPayload(Model): + """ExtensionPayload. + + :param description: + :type description: str + :param display_name: + :type display_name: str + :param file_name: + :type file_name: str + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param is_signed_by_microsoft: + :type is_signed_by_microsoft: bool + :param is_valid: + :type is_valid: bool + :param metadata: + :type metadata: list of { key: str; value: str } + :param type: + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'is_signed_by_microsoft': {'key': 'isSignedByMicrosoft', 'type': 'bool'}, + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'metadata': {'key': 'metadata', 'type': '[{ key: str; value: str }]'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, display_name=None, file_name=None, installation_targets=None, is_signed_by_microsoft=None, is_valid=None, metadata=None, type=None): + super(ExtensionPayload, self).__init__() + self.description = description + self.display_name = display_name + self.file_name = file_name + self.installation_targets = installation_targets + self.is_signed_by_microsoft = is_signed_by_microsoft + self.is_valid = is_valid + self.metadata = metadata + self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/extension_query.py b/vsts/vsts/gallery/v4_1/models/extension_query.py new file mode 100644 index 00000000..f50ffb23 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionQuery(Model): + """ExtensionQuery. + + :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. + :type asset_types: list of str + :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. + :type flags: object + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, asset_types=None, filters=None, flags=None): + super(ExtensionQuery, self).__init__() + self.asset_types = asset_types + self.filters = filters + self.flags = flags diff --git a/vsts/vsts/gallery/v4_1/models/extension_query_result.py b/vsts/vsts/gallery/v4_1/models/extension_query_result.py new file mode 100644 index 00000000..4daa1a57 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_query_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionQueryResult(Model): + """ExtensionQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`ExtensionFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[ExtensionFilterResult]'} + } + + def __init__(self, results=None): + super(ExtensionQueryResult, self).__init__() + self.results = results diff --git a/vsts/vsts/gallery/v4_1/models/extension_share.py b/vsts/vsts/gallery/v4_1/models/extension_share.py new file mode 100644 index 00000000..acc81ef0 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_share.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/extension_statistic.py b/vsts/vsts/gallery/v4_1/models/extension_statistic.py new file mode 100644 index 00000000..11fc6704 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_statistic.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: number + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'number'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value diff --git a/vsts/vsts/gallery/v4_1/models/extension_statistic_update.py b/vsts/vsts/gallery/v4_1/models/extension_statistic_update.py new file mode 100644 index 00000000..82adba31 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_statistic_update.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionStatisticUpdate(Model): + """ExtensionStatisticUpdate. + + :param extension_name: + :type extension_name: str + :param operation: + :type operation: object + :param publisher_name: + :type publisher_name: str + :param statistic: + :type statistic: :class:`ExtensionStatistic ` + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'statistic': {'key': 'statistic', 'type': 'ExtensionStatistic'} + } + + def __init__(self, extension_name=None, operation=None, publisher_name=None, statistic=None): + super(ExtensionStatisticUpdate, self).__init__() + self.extension_name = extension_name + self.operation = operation + self.publisher_name = publisher_name + self.statistic = statistic diff --git a/vsts/vsts/gallery/v4_1/models/extension_version.py b/vsts/vsts/gallery/v4_1/models/extension_version.py new file mode 100644 index 00000000..256768eb --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/extension_version.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description diff --git a/vsts/vsts/gallery/v4_1/models/filter_criteria.py b/vsts/vsts/gallery/v4_1/models/filter_criteria.py new file mode 100644 index 00000000..7002c78e --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/filter_criteria.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FilterCriteria(Model): + """FilterCriteria. + + :param filter_type: + :type filter_type: int + :param value: The value used in the match based on the filter type. + :type value: str + """ + + _attribute_map = { + 'filter_type': {'key': 'filterType', 'type': 'int'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, filter_type=None, value=None): + super(FilterCriteria, self).__init__() + self.filter_type = filter_type + self.value = value diff --git a/vsts/vsts/gallery/v4_1/models/installation_target.py b/vsts/vsts/gallery/v4_1/models/installation_target.py new file mode 100644 index 00000000..572aaae0 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/installation_target.py @@ -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.serialization import Model + + +class InstallationTarget(Model): + """InstallationTarget. + + :param max_inclusive: + :type max_inclusive: bool + :param max_version: + :type max_version: str + :param min_inclusive: + :type min_inclusive: bool + :param min_version: + :type min_version: str + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, + 'max_version': {'key': 'maxVersion', 'type': 'str'}, + 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, + 'min_version': {'key': 'minVersion', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.max_inclusive = max_inclusive + self.max_version = max_version + self.min_inclusive = min_inclusive + self.min_version = min_version + self.target = target + self.target_version = target_version diff --git a/vsts/vsts/gallery/v4_1/models/metadata_item.py b/vsts/vsts/gallery/v4_1/models/metadata_item.py new file mode 100644 index 00000000..c2a8bd96 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/metadata_item.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetadataItem(Model): + """MetadataItem. + + :param count: The count of the metadata item + :type count: int + :param name: The name of the metadata item + :type name: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, count=None, name=None): + super(MetadataItem, self).__init__() + self.count = count + self.name = name diff --git a/vsts/vsts/gallery/v4_1/models/notifications_data.py b/vsts/vsts/gallery/v4_1/models/notifications_data.py new file mode 100644 index 00000000..6decf547 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/notifications_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationsData(Model): + """NotificationsData. + + :param data: Notification data needed + :type data: dict + :param identities: List of users who should get the notification + :type identities: dict + :param type: Type of Mail Notification.Can be Qna , review or CustomerContact + :type type: object + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'identities': {'key': 'identities', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, data=None, identities=None, type=None): + super(NotificationsData, self).__init__() + self.data = data + self.identities = identities + self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/product_categories_result.py b/vsts/vsts/gallery/v4_1/models/product_categories_result.py new file mode 100644 index 00000000..3c2b7201 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/product_categories_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProductCategoriesResult(Model): + """ProductCategoriesResult. + + :param categories: + :type categories: list of :class:`ProductCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ProductCategory]'} + } + + def __init__(self, categories=None): + super(ProductCategoriesResult, self).__init__() + self.categories = categories diff --git a/vsts/vsts/gallery/v4_1/models/product_category.py b/vsts/vsts/gallery/v4_1/models/product_category.py new file mode 100644 index 00000000..b157ca81 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/product_category.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProductCategory(Model): + """ProductCategory. + + :param children: + :type children: list of :class:`ProductCategory ` + :param has_children: Indicator whether this is a leaf or there are children under this category + :type has_children: bool + :param id: Individual Guid of the Category + :type id: str + :param title: Category Title in the requested language + :type title: str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[ProductCategory]'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, children=None, has_children=None, id=None, title=None): + super(ProductCategory, self).__init__() + self.children = children + self.has_children = has_children + self.id = id + self.title = title diff --git a/vsts/vsts/gallery/v4_1/models/published_extension.py b/vsts/vsts/gallery/v4_1/models/published_extension.py new file mode 100644 index 00000000..00dd659e --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/published_extension.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions diff --git a/vsts/vsts/gallery/v4_1/models/publisher.py b/vsts/vsts/gallery/v4_1/models/publisher.py new file mode 100644 index 00000000..9359bba0 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/publisher.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Publisher(Model): + """Publisher. + + :param display_name: + :type display_name: str + :param email_address: + :type email_address: list of str + :param extensions: + :type extensions: list of :class:`PublishedExtension ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + :param short_description: + :type short_description: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': '[str]'}, + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'} + } + + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): + super(Publisher, self).__init__() + self.display_name = display_name + self.email_address = email_address + self.extensions = extensions + self.flags = flags + self.last_updated = last_updated + self.long_description = long_description + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.short_description = short_description diff --git a/vsts/vsts/gallery/v4_1/models/publisher_facts.py b/vsts/vsts/gallery/v4_1/models/publisher_facts.py new file mode 100644 index 00000000..979b6d8d --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/publisher_facts.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/publisher_filter_result.py b/vsts/vsts/gallery/v4_1/models/publisher_filter_result.py new file mode 100644 index 00000000..734b014a --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/publisher_filter_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherFilterResult(Model): + """PublisherFilterResult. + + :param publishers: This is the set of appplications that matched the query filter supplied. + :type publishers: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publishers': {'key': 'publishers', 'type': '[Publisher]'} + } + + def __init__(self, publishers=None): + super(PublisherFilterResult, self).__init__() + self.publishers = publishers diff --git a/vsts/vsts/gallery/v4_1/models/publisher_query.py b/vsts/vsts/gallery/v4_1/models/publisher_query.py new file mode 100644 index 00000000..5cef13f1 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/publisher_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherQuery(Model): + """PublisherQuery. + + :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. + :type flags: object + """ + + _attribute_map = { + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, filters=None, flags=None): + super(PublisherQuery, self).__init__() + self.filters = filters + self.flags = flags diff --git a/vsts/vsts/gallery/v4_1/models/publisher_query_result.py b/vsts/vsts/gallery/v4_1/models/publisher_query_result.py new file mode 100644 index 00000000..34f74a80 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/publisher_query_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherQueryResult(Model): + """PublisherQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`PublisherFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[PublisherFilterResult]'} + } + + def __init__(self, results=None): + super(PublisherQueryResult, self).__init__() + self.results = results diff --git a/vsts/vsts/gallery/v4_1/models/qn_aItem.py b/vsts/vsts/gallery/v4_1/models/qn_aItem.py new file mode 100644 index 00000000..f7f5981c --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/qn_aItem.py @@ -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.serialization import Model + + +class QnAItem(Model): + """QnAItem. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(QnAItem, self).__init__() + self.created_date = created_date + self.id = id + self.status = status + self.text = text + self.updated_date = updated_date + self.user = user diff --git a/vsts/vsts/gallery/v4_1/models/query_filter.py b/vsts/vsts/gallery/v4_1/models/query_filter.py new file mode 100644 index 00000000..3d560edf --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/query_filter.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QueryFilter(Model): + """QueryFilter. + + :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. + :type criteria: list of :class:`FilterCriteria ` + :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. + :type direction: object + :param page_number: The page number requested by the user. If not provided 1 is assumed by default. + :type page_number: int + :param page_size: The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits. + :type page_size: int + :param paging_token: The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embeded in the token. + :type paging_token: str + :param sort_by: Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only. + :type sort_by: int + :param sort_order: Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value + :type sort_order: int + """ + + _attribute_map = { + 'criteria': {'key': 'criteria', 'type': '[FilterCriteria]'}, + 'direction': {'key': 'direction', 'type': 'object'}, + 'page_number': {'key': 'pageNumber', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'sort_by': {'key': 'sortBy', 'type': 'int'}, + 'sort_order': {'key': 'sortOrder', 'type': 'int'} + } + + def __init__(self, criteria=None, direction=None, page_number=None, page_size=None, paging_token=None, sort_by=None, sort_order=None): + super(QueryFilter, self).__init__() + self.criteria = criteria + self.direction = direction + self.page_number = page_number + self.page_size = page_size + self.paging_token = paging_token + self.sort_by = sort_by + self.sort_order = sort_order diff --git a/vsts/vsts/gallery/v4_1/models/question.py b/vsts/vsts/gallery/v4_1/models/question.py new file mode 100644 index 00000000..d7a43ea5 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/question.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# 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 .qn_aItem import QnAItem + + +class Question(QnAItem): + """Question. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param responses: List of answers in for the question / thread + :type responses: list of :class:`Response ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'responses': {'key': 'responses', 'type': '[Response]'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, responses=None): + super(Question, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.responses = responses diff --git a/vsts/vsts/gallery/v4_1/models/questions_result.py b/vsts/vsts/gallery/v4_1/models/questions_result.py new file mode 100644 index 00000000..edb5fb37 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/questions_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QuestionsResult(Model): + """QuestionsResult. + + :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) + :type has_more_questions: bool + :param questions: List of the QnA threads + :type questions: list of :class:`Question ` + """ + + _attribute_map = { + 'has_more_questions': {'key': 'hasMoreQuestions', 'type': 'bool'}, + 'questions': {'key': 'questions', 'type': '[Question]'} + } + + def __init__(self, has_more_questions=None, questions=None): + super(QuestionsResult, self).__init__() + self.has_more_questions = has_more_questions + self.questions = questions diff --git a/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py new file mode 100644 index 00000000..4c6b6461 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RatingCountPerRating(Model): + """RatingCountPerRating. + + :param rating: Rating value + :type rating: number + :param rating_count: Count of total ratings + :type rating_count: long + """ + + _attribute_map = { + 'rating': {'key': 'rating', 'type': 'number'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'} + } + + def __init__(self, rating=None, rating_count=None): + super(RatingCountPerRating, self).__init__() + self.rating = rating + self.rating_count = rating_count diff --git a/vsts/vsts/gallery/v4_1/models/response.py b/vsts/vsts/gallery/v4_1/models/response.py new file mode 100644 index 00000000..d5535dc1 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/response.py @@ -0,0 +1,39 @@ +# -------------------------------------------------------------------------------------------- +# 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 .qn_aItem import QnAItem + + +class Response(QnAItem): + """Response. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(Response, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) diff --git a/vsts/vsts/gallery/v4_1/models/review.py b/vsts/vsts/gallery/v4_1/models/review.py new file mode 100644 index 00000000..b044c784 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/review.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Review(Model): + """Review. + + :param admin_reply: Admin Reply, if any, for this review + :type admin_reply: :class:`ReviewReply ` + :param id: Unique identifier of a review item + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param is_ignored: + :type is_ignored: bool + :param product_version: Version of the product for which review was submitted + :type product_version: str + :param rating: Rating procided by the user + :type rating: number + :param reply: Reply, if any, for this review + :type reply: :class:`ReviewReply ` + :param text: Text description of the review + :type text: str + :param title: Title of the review + :type title: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user_display_name: Name of the user + :type user_display_name: str + :param user_id: Id of the user who submitted the review + :type user_id: str + """ + + _attribute_map = { + 'admin_reply': {'key': 'adminReply', 'type': 'ReviewReply'}, + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'rating': {'key': 'rating', 'type': 'number'}, + 'reply': {'key': 'reply', 'type': 'ReviewReply'}, + 'text': {'key': 'text', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_display_name': {'key': 'userDisplayName', 'type': 'str'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, admin_reply=None, id=None, is_deleted=None, is_ignored=None, product_version=None, rating=None, reply=None, text=None, title=None, updated_date=None, user_display_name=None, user_id=None): + super(Review, self).__init__() + self.admin_reply = admin_reply + self.id = id + self.is_deleted = is_deleted + self.is_ignored = is_ignored + self.product_version = product_version + self.rating = rating + self.reply = reply + self.text = text + self.title = title + self.updated_date = updated_date + self.user_display_name = user_display_name + self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_1/models/review_patch.py b/vsts/vsts/gallery/v4_1/models/review_patch.py new file mode 100644 index 00000000..3540826e --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/review_patch.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewPatch(Model): + """ReviewPatch. + + :param operation: Denotes the patch operation type + :type operation: object + :param reported_concern: Use when patch operation is FlagReview + :type reported_concern: :class:`UserReportedConcern ` + :param review_item: Use when patch operation is EditReview + :type review_item: :class:`Review ` + """ + + _attribute_map = { + 'operation': {'key': 'operation', 'type': 'object'}, + 'reported_concern': {'key': 'reportedConcern', 'type': 'UserReportedConcern'}, + 'review_item': {'key': 'reviewItem', 'type': 'Review'} + } + + def __init__(self, operation=None, reported_concern=None, review_item=None): + super(ReviewPatch, self).__init__() + self.operation = operation + self.reported_concern = reported_concern + self.review_item = review_item diff --git a/vsts/vsts/gallery/v4_1/models/review_reply.py b/vsts/vsts/gallery/v4_1/models/review_reply.py new file mode 100644 index 00000000..bcf4f5a7 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/review_reply.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewReply(Model): + """ReviewReply. + + :param id: Id of the reply + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param product_version: Version of the product when the reply was submitted or updated + :type product_version: str + :param reply_text: Content of the reply + :type reply_text: str + :param review_id: Id of the review, to which this reply belongs + :type review_id: long + :param title: Title of the reply + :type title: str + :param updated_date: Date the reply was submitted or updated + :type updated_date: datetime + :param user_id: Id of the user who left the reply + :type user_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'reply_text': {'key': 'replyText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, id=None, is_deleted=None, product_version=None, reply_text=None, review_id=None, title=None, updated_date=None, user_id=None): + super(ReviewReply, self).__init__() + self.id = id + self.is_deleted = is_deleted + self.product_version = product_version + self.reply_text = reply_text + self.review_id = review_id + self.title = title + self.updated_date = updated_date + self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_1/models/review_summary.py b/vsts/vsts/gallery/v4_1/models/review_summary.py new file mode 100644 index 00000000..971d7479 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/review_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewSummary(Model): + """ReviewSummary. + + :param average_rating: Average Rating + :type average_rating: number + :param rating_count: Count of total ratings + :type rating_count: long + :param rating_split: Split of count accross rating + :type rating_split: list of :class:`RatingCountPerRating ` + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'}, + 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} + } + + def __init__(self, average_rating=None, rating_count=None, rating_split=None): + super(ReviewSummary, self).__init__() + self.average_rating = average_rating + self.rating_count = rating_count + self.rating_split = rating_split diff --git a/vsts/vsts/gallery/v4_1/models/reviews_result.py b/vsts/vsts/gallery/v4_1/models/reviews_result.py new file mode 100644 index 00000000..b10b0f76 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/reviews_result.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReviewsResult(Model): + """ReviewsResult. + + :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) + :type has_more_reviews: bool + :param reviews: List of reviews + :type reviews: list of :class:`Review ` + :param total_review_count: Count of total review items + :type total_review_count: long + """ + + _attribute_map = { + 'has_more_reviews': {'key': 'hasMoreReviews', 'type': 'bool'}, + 'reviews': {'key': 'reviews', 'type': '[Review]'}, + 'total_review_count': {'key': 'totalReviewCount', 'type': 'long'} + } + + def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None): + super(ReviewsResult, self).__init__() + self.has_more_reviews = has_more_reviews + self.reviews = reviews + self.total_review_count = total_review_count diff --git a/vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py b/vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py new file mode 100644 index 00000000..df42d073 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py @@ -0,0 +1,85 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UnpackagedExtensionData(Model): + """UnpackagedExtensionData. + + :param categories: + :type categories: list of str + :param description: + :type description: str + :param display_name: + :type display_name: str + :param draft_id: + :type draft_id: str + :param extension_name: + :type extension_name: str + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param is_converted_to_markdown: + :type is_converted_to_markdown: bool + :param pricing_category: + :type pricing_category: str + :param product: + :type product: str + :param publisher_name: + :type publisher_name: str + :param qn_aEnabled: + :type qn_aEnabled: bool + :param referral_url: + :type referral_url: str + :param repository_url: + :type repository_url: str + :param tags: + :type tags: list of str + :param version: + :type version: str + :param vsix_id: + :type vsix_id: str + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'draft_id': {'key': 'draftId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'is_converted_to_markdown': {'key': 'isConvertedToMarkdown', 'type': 'bool'}, + 'pricing_category': {'key': 'pricingCategory', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'qn_aEnabled': {'key': 'qnAEnabled', 'type': 'bool'}, + 'referral_url': {'key': 'referralUrl', 'type': 'str'}, + 'repository_url': {'key': 'repositoryUrl', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'version': {'key': 'version', 'type': 'str'}, + 'vsix_id': {'key': 'vsixId', 'type': 'str'} + } + + def __init__(self, categories=None, description=None, display_name=None, draft_id=None, extension_name=None, installation_targets=None, is_converted_to_markdown=None, pricing_category=None, product=None, publisher_name=None, qn_aEnabled=None, referral_url=None, repository_url=None, tags=None, version=None, vsix_id=None): + super(UnpackagedExtensionData, self).__init__() + self.categories = categories + self.description = description + self.display_name = display_name + self.draft_id = draft_id + self.extension_name = extension_name + self.installation_targets = installation_targets + self.is_converted_to_markdown = is_converted_to_markdown + self.pricing_category = pricing_category + self.product = product + self.publisher_name = publisher_name + self.qn_aEnabled = qn_aEnabled + self.referral_url = referral_url + self.repository_url = repository_url + self.tags = tags + self.version = version + self.vsix_id = vsix_id diff --git a/vsts/vsts/gallery/v4_1/models/user_identity_ref.py b/vsts/vsts/gallery/v4_1/models/user_identity_ref.py new file mode 100644 index 00000000..d70a734d --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/user_identity_ref.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserIdentityRef(Model): + """UserIdentityRef. + + :param display_name: User display name + :type display_name: str + :param id: User VSID + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(UserIdentityRef, self).__init__() + self.display_name = display_name + self.id = id diff --git a/vsts/vsts/gallery/v4_1/models/user_reported_concern.py b/vsts/vsts/gallery/v4_1/models/user_reported_concern.py new file mode 100644 index 00000000..739c0b76 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/user_reported_concern.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserReportedConcern(Model): + """UserReportedConcern. + + :param category: Category of the concern + :type category: object + :param concern_text: User comment associated with the report + :type concern_text: str + :param review_id: Id of the review which was reported + :type review_id: long + :param submitted_date: Date the report was submitted + :type submitted_date: datetime + :param user_id: Id of the user who reported a review + :type user_id: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'object'}, + 'concern_text': {'key': 'concernText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'submitted_date': {'key': 'submittedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, category=None, concern_text=None, review_id=None, submitted_date=None, user_id=None): + super(UserReportedConcern, self).__init__() + self.category = category + self.concern_text = concern_text + self.review_id = review_id + self.submitted_date = submitted_date + self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_1/__init__.py b/vsts/vsts/licensing/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py new file mode 100644 index 00000000..5bb21c44 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -0,0 +1,413 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class LicensingClient(VssClient): + """Licensing + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(LicensingClient, 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_extension_license_usage(self): + """GetExtensionLicenseUsage. + [Preview API] Returns Licensing info about paid extensions assigned to user passed into GetExtensionsAssignedToAccount + :rtype: [AccountLicenseExtensionUsage] + """ + response = self._send(http_method='GET', + location_id='01bce8d3-c130-480f-a332-474ae3f6662e', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[AccountLicenseExtensionUsage]', response) + + def get_certificate(self): + """GetCertificate. + [Preview API] + :rtype: object + """ + response = self._send(http_method='GET', + location_id='2e0dbce7-a327-4bc0-a291-056139393f6d', + version='4.1-preview.1') + return self._deserialize('object', response) + + def get_client_rights(self, right_name=None, product_version=None, edition=None, rel_type=None, include_certificate=None, canary=None, machine_id=None): + """GetClientRights. + [Preview API] + :param str right_name: + :param str product_version: + :param str edition: + :param str rel_type: + :param bool include_certificate: + :param str canary: + :param str machine_id: + :rtype: :class:` ` + """ + route_values = {} + if right_name is not None: + route_values['rightName'] = self._serialize.url('right_name', right_name, 'str') + query_parameters = {} + if product_version is not None: + query_parameters['productVersion'] = self._serialize.query('product_version', product_version, 'str') + if edition is not None: + query_parameters['edition'] = self._serialize.query('edition', edition, 'str') + if rel_type is not None: + query_parameters['relType'] = self._serialize.query('rel_type', rel_type, 'str') + if include_certificate is not None: + query_parameters['includeCertificate'] = self._serialize.query('include_certificate', include_certificate, 'bool') + if canary is not None: + query_parameters['canary'] = self._serialize.query('canary', canary, 'str') + if machine_id is not None: + query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'str') + response = self._send(http_method='GET', + location_id='643c72da-eaee-4163-9f07-d748ef5c2a0c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ClientRightsContainer', response) + + def assign_available_account_entitlement(self, user_id, dont_notify_user=None): + """AssignAvailableAccountEntitlement. + [Preview API] Assign an available entitilement to a user + :param str user_id: The user to which to assign the entitilement + :param bool dont_notify_user: + :rtype: :class:` ` + """ + query_parameters = {} + if user_id is not None: + query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') + if dont_notify_user is not None: + query_parameters['dontNotifyUser'] = self._serialize.query('dont_notify_user', dont_notify_user, 'bool') + response = self._send(http_method='POST', + location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', + version='4.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('AccountEntitlement', response) + + def get_account_entitlement(self): + """GetAccountEntitlement. + [Preview API] Gets the account entitlement of the current user it is mapped to _apis/licensing/entitlements/me so specifically is looking for the user of the request + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', + version='4.1-preview.1') + return self._deserialize('AccountEntitlement', response) + + def get_account_entitlements(self, top=None, skip=None): + """GetAccountEntitlements. + [Preview API] Gets top (top) entitlements for users in the account from offset (skip) order by DateCreated ASC + :param int top: number of accounts to return + :param int skip: records to skip, null is interpreted as 0 + :rtype: [AccountEntitlement] + """ + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='ea37be6f-8cd7-48dd-983d-2b72d6e3da0f', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[AccountEntitlement]', response) + + def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=None): + """AssignAccountEntitlementForUser. + [Preview API] Assign an explicit account entitlement + :param :class:` ` body: The update model for the entitlement + :param str user_id: The id of the user + :param bool dont_notify_user: + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + query_parameters = {} + if dont_notify_user is not None: + query_parameters['dontNotifyUser'] = self._serialize.query('dont_notify_user', dont_notify_user, 'bool') + content = self._serialize.body(body, 'AccountEntitlementUpdateModel') + response = self._send(http_method='PUT', + location_id='6490e566-b299-49a7-a4e4-28749752581f', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('AccountEntitlement', response) + + def delete_user_entitlements(self, user_id): + """DeleteUserEntitlements. + [Preview API] + :param str user_id: + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + self._send(http_method='DELETE', + location_id='6490e566-b299-49a7-a4e4-28749752581f', + version='4.1-preview.1', + route_values=route_values) + + def get_account_entitlement_for_user(self, user_id, determine_rights=None): + """GetAccountEntitlementForUser. + [Preview API] Get the entitlements for a user + :param str user_id: The id of the user + :param bool determine_rights: + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + query_parameters = {} + if determine_rights is not None: + query_parameters['determineRights'] = self._serialize.query('determine_rights', determine_rights, 'bool') + response = self._send(http_method='GET', + location_id='6490e566-b299-49a7-a4e4-28749752581f', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AccountEntitlement', response) + + def get_account_entitlements_batch(self, user_ids): + """GetAccountEntitlementsBatch. + [Preview API] Returns AccountEntitlements that are currently assigned to the given list of users in the account + :param [str] user_ids: List of user Ids. + :rtype: [AccountEntitlement] + """ + route_values = {} + content = self._serialize.body(user_ids, '[str]') + response = self._send(http_method='POST', + location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AccountEntitlement]', response) + + def obtain_available_account_entitlements(self, user_ids): + """ObtainAvailableAccountEntitlements. + [Preview API] Returns AccountEntitlements that are currently assigned to the given list of users in the account + :param [str] user_ids: List of user Ids. + :rtype: [AccountEntitlement] + """ + route_values = {} + content = self._serialize.body(user_ids, '[str]') + response = self._send(http_method='POST', + location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AccountEntitlement]', response) + + def assign_extension_to_all_eligible_users(self, extension_id): + """AssignExtensionToAllEligibleUsers. + [Preview API] Assigns the access to the given extension for all eligible users in the account that do not already have access to the extension though bundle or account assignment + :param str extension_id: The extension id to assign the access to. + :rtype: [ExtensionOperationResult] + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='PUT', + location_id='5434f182-7f32-4135-8326-9340d887c08a', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ExtensionOperationResult]', response) + + def get_eligible_users_for_extension(self, extension_id, options): + """GetEligibleUsersForExtension. + [Preview API] Returns users that are currently eligible to assign the extension to. the list is filtered based on the value of ExtensionFilterOptions + :param str extension_id: The extension to check the eligibility of the users for. + :param str options: The options to filter the list. + :rtype: [str] + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + query_parameters = {} + if options is not None: + query_parameters['options'] = self._serialize.query('options', options, 'str') + response = self._send(http_method='GET', + location_id='5434f182-7f32-4135-8326-9340d887c08a', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_extension_status_for_users(self, extension_id): + """GetExtensionStatusForUsers. + [Preview API] Returns extension assignment status of all account users for the given extension + :param str extension_id: The extension to check the status of the users for. + :rtype: {ExtensionAssignmentDetails} + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='GET', + location_id='5434f182-7f32-4135-8326-9340d887c08a', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{ExtensionAssignmentDetails}', response) + + def assign_extension_to_users(self, body): + """AssignExtensionToUsers. + [Preview API] Assigns the access to the given extension for a given list of users + :param :class:` ` body: The extension assignment details. + :rtype: [ExtensionOperationResult] + """ + content = self._serialize.body(body, 'ExtensionAssignment') + response = self._send(http_method='PUT', + location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', + version='4.1-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[ExtensionOperationResult]', response) + + def get_extensions_assigned_to_user(self, user_id): + """GetExtensionsAssignedToUser. + [Preview API] Returns extensions that are currently assigned to the user in the account + :param str user_id: The user's identity id. + :rtype: {LicensingSource} + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + response = self._send(http_method='GET', + location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{LicensingSource}', response) + + def bulk_get_extensions_assigned_to_users(self, user_ids): + """BulkGetExtensionsAssignedToUsers. + [Preview API] Returns extensions that are currrently assigned to the users that are in the account + :param [str] user_ids: + :rtype: {[ExtensionSource]} + """ + content = self._serialize.body(user_ids, '[str]') + response = self._send(http_method='PUT', + location_id='1d42ddc2-3e7d-4daa-a0eb-e12c1dbd7c72', + version='4.1-preview.2', + content=content, + returns_collection=True) + return self._deserialize('{[ExtensionSource]}', response) + + def get_extension_license_data(self, extension_id): + """GetExtensionLicenseData. + [Preview API] + :param str extension_id: + :rtype: :class:` ` + """ + route_values = {} + if extension_id is not None: + route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') + response = self._send(http_method='GET', + location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ExtensionLicenseData', response) + + def register_extension_license(self, extension_license_data): + """RegisterExtensionLicense. + [Preview API] + :param :class:` ` extension_license_data: + :rtype: bool + """ + content = self._serialize.body(extension_license_data, 'ExtensionLicenseData') + response = self._send(http_method='POST', + location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', + version='4.1-preview.1', + content=content) + return self._deserialize('bool', response) + + def compute_extension_rights(self, ids): + """ComputeExtensionRights. + [Preview API] + :param [str] ids: + :rtype: {bool} + """ + content = self._serialize.body(ids, '[str]') + response = self._send(http_method='POST', + location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', + version='4.1-preview.1', + content=content, + returns_collection=True) + return self._deserialize('{bool}', response) + + def get_extension_rights(self): + """GetExtensionRights. + [Preview API] + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', + version='4.1-preview.1') + return self._deserialize('ExtensionRightsResult', response) + + def get_msdn_presence(self): + """GetMsdnPresence. + [Preview API] + """ + self._send(http_method='GET', + location_id='69522c3f-eecc-48d0-b333-f69ffb8fa6cc', + version='4.1-preview.1') + + def get_entitlements(self): + """GetEntitlements. + [Preview API] + :rtype: [MsdnEntitlement] + """ + response = self._send(http_method='GET', + location_id='1cc6137e-12d5-4d44-a4f2-765006c9e85d', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[MsdnEntitlement]', response) + + def get_account_licenses_usage(self): + """GetAccountLicensesUsage. + [Preview API] + :rtype: [AccountLicenseUsage] + """ + response = self._send(http_method='GET', + location_id='d3266b87-d395-4e91-97a5-0215b81a0b7d', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[AccountLicenseUsage]', response) + + def get_usage_rights(self, right_name=None): + """GetUsageRights. + [Preview API] + :param str right_name: + :rtype: [IUsageRight] + """ + route_values = {} + if right_name is not None: + route_values['rightName'] = self._serialize.url('right_name', right_name, 'str') + response = self._send(http_method='GET', + location_id='d09ac573-58fe-4948-af97-793db40a7e16', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[IUsageRight]', response) + diff --git a/vsts/vsts/licensing/v4_1/models/__init__.py b/vsts/vsts/licensing/v4_1/models/__init__.py new file mode 100644 index 00000000..f915040d --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/__init__.py @@ -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 .account_entitlement import AccountEntitlement +from .account_entitlement_update_model import AccountEntitlementUpdateModel +from .account_license_extension_usage import AccountLicenseExtensionUsage +from .account_license_usage import AccountLicenseUsage +from .account_rights import AccountRights +from .account_user_license import AccountUserLicense +from .client_rights_container import ClientRightsContainer +from .extension_assignment import ExtensionAssignment +from .extension_assignment_details import ExtensionAssignmentDetails +from .extension_license_data import ExtensionLicenseData +from .extension_operation_result import ExtensionOperationResult +from .extension_rights_result import ExtensionRightsResult +from .extension_source import ExtensionSource +from .identity_ref import IdentityRef +from .iUsage_right import IUsageRight +from .license import License +from .msdn_entitlement import MsdnEntitlement + +__all__ = [ + 'AccountEntitlement', + 'AccountEntitlementUpdateModel', + 'AccountLicenseExtensionUsage', + 'AccountLicenseUsage', + 'AccountRights', + 'AccountUserLicense', + 'ClientRightsContainer', + 'ExtensionAssignment', + 'ExtensionAssignmentDetails', + 'ExtensionLicenseData', + 'ExtensionOperationResult', + 'ExtensionRightsResult', + 'ExtensionSource', + 'IdentityRef', + 'IUsageRight', + 'License', + 'MsdnEntitlement', +] diff --git a/vsts/vsts/licensing/v4_1/models/account_entitlement.py b/vsts/vsts/licensing/v4_1/models/account_entitlement.py new file mode 100644 index 00000000..907ffad1 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/account_entitlement.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountEntitlement(Model): + """AccountEntitlement. + + :param account_id: Gets or sets the id of the account to which the license belongs + :type account_id: str + :param assignment_date: Gets or sets the date the license was assigned + :type assignment_date: datetime + :param assignment_source: Assignment Source + :type assignment_source: object + :param last_accessed_date: Gets or sets the date of the user last sign-in to this account + :type last_accessed_date: datetime + :param license: + :type license: :class:`License ` + :param rights: The computed rights of this user in the account. + :type rights: :class:`AccountRights ` + :param status: The status of the user in the account + :type status: object + :param user: Identity information of the user to which the license belongs + :type user: :class:`IdentityRef ` + :param user_id: Gets the id of the user to which the license belongs + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'license': {'key': 'license', 'type': 'License'}, + 'rights': {'key': 'rights', 'type': 'AccountRights'}, + 'status': {'key': 'status', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, rights=None, status=None, user=None, user_id=None): + super(AccountEntitlement, self).__init__() + self.account_id = account_id + self.assignment_date = assignment_date + self.assignment_source = assignment_source + self.last_accessed_date = last_accessed_date + self.license = license + self.rights = rights + self.status = status + self.user = user + self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py b/vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py new file mode 100644 index 00000000..f3848f5a --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountEntitlementUpdateModel(Model): + """AccountEntitlementUpdateModel. + + :param license: Gets or sets the license for the entitlement + :type license: :class:`License ` + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'License'} + } + + def __init__(self, license=None): + super(AccountEntitlementUpdateModel, self).__init__() + self.license = license diff --git a/vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py b/vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py new file mode 100644 index 00000000..2f33edca --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountLicenseExtensionUsage(Model): + """AccountLicenseExtensionUsage. + + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param included_quantity: + :type included_quantity: int + :param is_trial: + :type is_trial: bool + :param minimum_license_required: + :type minimum_license_required: object + :param msdn_used_count: + :type msdn_used_count: int + :param provisioned_count: + :type provisioned_count: int + :param remaining_trial_days: + :type remaining_trial_days: int + :param trial_expiry_date: + :type trial_expiry_date: datetime + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'is_trial': {'key': 'isTrial', 'type': 'bool'}, + 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, + 'msdn_used_count': {'key': 'msdnUsedCount', 'type': 'int'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, + 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, extension_id=None, extension_name=None, included_quantity=None, is_trial=None, minimum_license_required=None, msdn_used_count=None, provisioned_count=None, remaining_trial_days=None, trial_expiry_date=None, used_count=None): + super(AccountLicenseExtensionUsage, self).__init__() + self.extension_id = extension_id + self.extension_name = extension_name + self.included_quantity = included_quantity + self.is_trial = is_trial + self.minimum_license_required = minimum_license_required + self.msdn_used_count = msdn_used_count + self.provisioned_count = provisioned_count + self.remaining_trial_days = remaining_trial_days + self.trial_expiry_date = trial_expiry_date + self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_1/models/account_license_usage.py b/vsts/vsts/licensing/v4_1/models/account_license_usage.py new file mode 100644 index 00000000..ec797e7e --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/account_license_usage.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountLicenseUsage(Model): + """AccountLicenseUsage. + + :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) + :type disabled_count: int + :param license: + :type license: :class:`AccountUserLicense ` + :param pending_provisioned_count: Amount that will be purchased in the next billing cycle + :type pending_provisioned_count: int + :param provisioned_count: Amount that has been purchased + :type provisioned_count: int + :param used_count: Amount currently being used. + :type used_count: int + """ + + _attribute_map = { + 'disabled_count': {'key': 'disabledCount', 'type': 'int'}, + 'license': {'key': 'license', 'type': 'AccountUserLicense'}, + 'pending_provisioned_count': {'key': 'pendingProvisionedCount', 'type': 'int'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, disabled_count=None, license=None, pending_provisioned_count=None, provisioned_count=None, used_count=None): + super(AccountLicenseUsage, self).__init__() + self.disabled_count = disabled_count + self.license = license + self.pending_provisioned_count = pending_provisioned_count + self.provisioned_count = provisioned_count + self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_1/models/account_rights.py b/vsts/vsts/licensing/v4_1/models/account_rights.py new file mode 100644 index 00000000..2906e32b --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/account_rights.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountRights(Model): + """AccountRights. + + :param level: + :type level: object + :param reason: + :type reason: str + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, level=None, reason=None): + super(AccountRights, self).__init__() + self.level = level + self.reason = reason diff --git a/vsts/vsts/licensing/v4_1/models/account_user_license.py b/vsts/vsts/licensing/v4_1/models/account_user_license.py new file mode 100644 index 00000000..d633f698 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/account_user_license.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountUserLicense(Model): + """AccountUserLicense. + + :param license: + :type license: int + :param source: + :type source: object + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, license=None, source=None): + super(AccountUserLicense, self).__init__() + self.license = license + self.source = source diff --git a/vsts/vsts/licensing/v4_1/models/client_rights_container.py b/vsts/vsts/licensing/v4_1/models/client_rights_container.py new file mode 100644 index 00000000..299142d4 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/client_rights_container.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientRightsContainer(Model): + """ClientRightsContainer. + + :param certificate_bytes: + :type certificate_bytes: list of number + :param token: + :type token: str + """ + + _attribute_map = { + 'certificate_bytes': {'key': 'certificateBytes', 'type': '[number]'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, certificate_bytes=None, token=None): + super(ClientRightsContainer, self).__init__() + self.certificate_bytes = certificate_bytes + self.token = token diff --git a/vsts/vsts/licensing/v4_1/models/extension_assignment.py b/vsts/vsts/licensing/v4_1/models/extension_assignment.py new file mode 100644 index 00000000..708b77bb --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/extension_assignment.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAssignment(Model): + """ExtensionAssignment. + + :param extension_gallery_id: Gets or sets the extension ID to assign. + :type extension_gallery_id: str + :param is_auto_assignment: Set to true if this a auto assignment scenario. + :type is_auto_assignment: bool + :param licensing_source: Gets or sets the licensing source. + :type licensing_source: object + :param user_ids: Gets or sets the user IDs to assign the extension to. + :type user_ids: list of str + """ + + _attribute_map = { + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'is_auto_assignment': {'key': 'isAutoAssignment', 'type': 'bool'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'user_ids': {'key': 'userIds', 'type': '[str]'} + } + + def __init__(self, extension_gallery_id=None, is_auto_assignment=None, licensing_source=None, user_ids=None): + super(ExtensionAssignment, self).__init__() + self.extension_gallery_id = extension_gallery_id + self.is_auto_assignment = is_auto_assignment + self.licensing_source = licensing_source + self.user_ids = user_ids diff --git a/vsts/vsts/licensing/v4_1/models/extension_assignment_details.py b/vsts/vsts/licensing/v4_1/models/extension_assignment_details.py new file mode 100644 index 00000000..2ce0a970 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/extension_assignment_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionAssignmentDetails(Model): + """ExtensionAssignmentDetails. + + :param assignment_status: + :type assignment_status: object + :param source_collection_name: + :type source_collection_name: str + """ + + _attribute_map = { + 'assignment_status': {'key': 'assignmentStatus', 'type': 'object'}, + 'source_collection_name': {'key': 'sourceCollectionName', 'type': 'str'} + } + + def __init__(self, assignment_status=None, source_collection_name=None): + super(ExtensionAssignmentDetails, self).__init__() + self.assignment_status = assignment_status + self.source_collection_name = source_collection_name diff --git a/vsts/vsts/licensing/v4_1/models/extension_license_data.py b/vsts/vsts/licensing/v4_1/models/extension_license_data.py new file mode 100644 index 00000000..0e088a4f --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/extension_license_data.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionLicenseData(Model): + """ExtensionLicenseData. + + :param created_date: + :type created_date: datetime + :param extension_id: + :type extension_id: str + :param is_free: + :type is_free: bool + :param minimum_required_access_level: + :type minimum_required_access_level: object + :param updated_date: + :type updated_date: datetime + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'is_free': {'key': 'isFree', 'type': 'bool'}, + 'minimum_required_access_level': {'key': 'minimumRequiredAccessLevel', 'type': 'object'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, created_date=None, extension_id=None, is_free=None, minimum_required_access_level=None, updated_date=None): + super(ExtensionLicenseData, self).__init__() + self.created_date = created_date + self.extension_id = extension_id + self.is_free = is_free + self.minimum_required_access_level = minimum_required_access_level + self.updated_date = updated_date diff --git a/vsts/vsts/licensing/v4_1/models/extension_operation_result.py b/vsts/vsts/licensing/v4_1/models/extension_operation_result.py new file mode 100644 index 00000000..e04aa817 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/extension_operation_result.py @@ -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.serialization import Model + + +class ExtensionOperationResult(Model): + """ExtensionOperationResult. + + :param account_id: + :type account_id: str + :param extension_id: + :type extension_id: str + :param message: + :type message: str + :param operation: + :type operation: object + :param result: + :type result: object + :param user_id: + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'result': {'key': 'result', 'type': 'object'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, extension_id=None, message=None, operation=None, result=None, user_id=None): + super(ExtensionOperationResult, self).__init__() + self.account_id = account_id + self.extension_id = extension_id + self.message = message + self.operation = operation + self.result = result + self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_1/models/extension_rights_result.py b/vsts/vsts/licensing/v4_1/models/extension_rights_result.py new file mode 100644 index 00000000..185249fe --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/extension_rights_result.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionRightsResult(Model): + """ExtensionRightsResult. + + :param entitled_extensions: + :type entitled_extensions: list of str + :param host_id: + :type host_id: str + :param reason: + :type reason: str + :param reason_code: + :type reason_code: object + :param result_code: + :type result_code: object + """ + + _attribute_map = { + 'entitled_extensions': {'key': 'entitledExtensions', 'type': '[str]'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reason_code': {'key': 'reasonCode', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'object'} + } + + def __init__(self, entitled_extensions=None, host_id=None, reason=None, reason_code=None, result_code=None): + super(ExtensionRightsResult, self).__init__() + self.entitled_extensions = entitled_extensions + self.host_id = host_id + self.reason = reason + self.reason_code = reason_code + self.result_code = result_code diff --git a/vsts/vsts/licensing/v4_1/models/extension_source.py b/vsts/vsts/licensing/v4_1/models/extension_source.py new file mode 100644 index 00000000..6a1409e5 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/extension_source.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExtensionSource(Model): + """ExtensionSource. + + :param assignment_source: Assignment Source + :type assignment_source: object + :param extension_gallery_id: extension Identifier + :type extension_gallery_id: str + :param licensing_source: The licensing source of the extension. Account, Msdn, ect. + :type licensing_source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'} + } + + def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_source=None): + super(ExtensionSource, self).__init__() + self.assignment_source = assignment_source + self.extension_gallery_id = extension_gallery_id + self.licensing_source = licensing_source diff --git a/vsts/vsts/licensing/v4_1/models/iUsage_right.py b/vsts/vsts/licensing/v4_1/models/iUsage_right.py new file mode 100644 index 00000000..d35c93c7 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/iUsage_right.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IUsageRight(Model): + """IUsageRight. + + :param attributes: Rights data + :type attributes: dict + :param expiration_date: Rights expiration + :type expiration_date: datetime + :param name: Name, uniquely identifying a usage right + :type name: str + :param version: Version + :type version: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, attributes=None, expiration_date=None, name=None, version=None): + super(IUsageRight, self).__init__() + self.attributes = attributes + self.expiration_date = expiration_date + self.name = name + self.version = version diff --git a/vsts/vsts/licensing/v4_1/models/identity_ref.py b/vsts/vsts/licensing/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/licensing/v4_1/models/license.py b/vsts/vsts/licensing/v4_1/models/license.py new file mode 100644 index 00000000..6e381f36 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/license.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class License(Model): + """License. + + :param source: Gets the source of the license + :type source: object + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, source=None): + super(License, self).__init__() + self.source = source diff --git a/vsts/vsts/licensing/v4_1/models/msdn_entitlement.py b/vsts/vsts/licensing/v4_1/models/msdn_entitlement.py new file mode 100644 index 00000000..3fee52a8 --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/msdn_entitlement.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MsdnEntitlement(Model): + """MsdnEntitlement. + + :param entitlement_code: Entilement id assigned to Entitlement in Benefits Database. + :type entitlement_code: str + :param entitlement_name: Entitlement Name e.g. Downloads, Chat. + :type entitlement_name: str + :param entitlement_type: Type of Entitlement e.g. Downloads, Chat. + :type entitlement_type: str + :param is_activated: Entitlement activation status + :type is_activated: bool + :param is_entitlement_available: Entitlement availability + :type is_entitlement_available: bool + :param subscription_channel: Write MSDN Channel into CRCT (Retail,MPN,VL,BizSpark,DreamSpark,MCT,FTE,Technet,WebsiteSpark,Other) + :type subscription_channel: str + :param subscription_expiration_date: Subscription Expiration Date. + :type subscription_expiration_date: datetime + :param subscription_id: Subscription id which identifies the subscription itself. This is the Benefit Detail Guid from BMS. + :type subscription_id: str + :param subscription_level_code: Identifier of the subscription or benefit level. + :type subscription_level_code: str + :param subscription_level_name: Name of subscription level. + :type subscription_level_name: str + :param subscription_status: Subscription Status Code (ACT, PND, INA ...). + :type subscription_status: str + """ + + _attribute_map = { + 'entitlement_code': {'key': 'entitlementCode', 'type': 'str'}, + 'entitlement_name': {'key': 'entitlementName', 'type': 'str'}, + 'entitlement_type': {'key': 'entitlementType', 'type': 'str'}, + 'is_activated': {'key': 'isActivated', 'type': 'bool'}, + 'is_entitlement_available': {'key': 'isEntitlementAvailable', 'type': 'bool'}, + 'subscription_channel': {'key': 'subscriptionChannel', 'type': 'str'}, + 'subscription_expiration_date': {'key': 'subscriptionExpirationDate', 'type': 'iso-8601'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_level_code': {'key': 'subscriptionLevelCode', 'type': 'str'}, + 'subscription_level_name': {'key': 'subscriptionLevelName', 'type': 'str'}, + 'subscription_status': {'key': 'subscriptionStatus', 'type': 'str'} + } + + def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_type=None, is_activated=None, is_entitlement_available=None, subscription_channel=None, subscription_expiration_date=None, subscription_id=None, subscription_level_code=None, subscription_level_name=None, subscription_status=None): + super(MsdnEntitlement, self).__init__() + self.entitlement_code = entitlement_code + self.entitlement_name = entitlement_name + self.entitlement_type = entitlement_type + self.is_activated = is_activated + self.is_entitlement_available = is_entitlement_available + self.subscription_channel = subscription_channel + self.subscription_expiration_date = subscription_expiration_date + self.subscription_id = subscription_id + self.subscription_level_code = subscription_level_code + self.subscription_level_name = subscription_level_name + self.subscription_status = subscription_status diff --git a/vsts/vsts/notification/v4_1/__init__.py b/vsts/vsts/notification/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/notification/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/notification/v4_1/models/__init__.py b/vsts/vsts/notification/v4_1/models/__init__.py new file mode 100644 index 00000000..56c91337 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/__init__.py @@ -0,0 +1,113 @@ +# -------------------------------------------------------------------------------------------- +# 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 .artifact_filter import ArtifactFilter +from .base_subscription_filter import BaseSubscriptionFilter +from .batch_notification_operation import BatchNotificationOperation +from .event_actor import EventActor +from .event_scope import EventScope +from .events_evaluation_result import EventsEvaluationResult +from .expression_filter_clause import ExpressionFilterClause +from .expression_filter_group import ExpressionFilterGroup +from .expression_filter_model import ExpressionFilterModel +from .field_input_values import FieldInputValues +from .field_values_query import FieldValuesQuery +from .identity_ref import IdentityRef +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .input_values_query import InputValuesQuery +from .iSubscription_channel import ISubscriptionChannel +from .iSubscription_filter import ISubscriptionFilter +from .notification_event_field import NotificationEventField +from .notification_event_field_operator import NotificationEventFieldOperator +from .notification_event_field_type import NotificationEventFieldType +from .notification_event_publisher import NotificationEventPublisher +from .notification_event_role import NotificationEventRole +from .notification_event_type import NotificationEventType +from .notification_event_type_category import NotificationEventTypeCategory +from .notification_query_condition import NotificationQueryCondition +from .notification_reason import NotificationReason +from .notifications_evaluation_result import NotificationsEvaluationResult +from .notification_statistic import NotificationStatistic +from .notification_statistics_query import NotificationStatisticsQuery +from .notification_statistics_query_conditions import NotificationStatisticsQueryConditions +from .notification_subscriber import NotificationSubscriber +from .notification_subscriber_update_parameters import NotificationSubscriberUpdateParameters +from .notification_subscription import NotificationSubscription +from .notification_subscription_create_parameters import NotificationSubscriptionCreateParameters +from .notification_subscription_template import NotificationSubscriptionTemplate +from .notification_subscription_update_parameters import NotificationSubscriptionUpdateParameters +from .operator_constraint import OperatorConstraint +from .reference_links import ReferenceLinks +from .subscription_admin_settings import SubscriptionAdminSettings +from .subscription_channel_with_address import SubscriptionChannelWithAddress +from .subscription_evaluation_request import SubscriptionEvaluationRequest +from .subscription_evaluation_result import SubscriptionEvaluationResult +from .subscription_evaluation_settings import SubscriptionEvaluationSettings +from .subscription_management import SubscriptionManagement +from .subscription_query import SubscriptionQuery +from .subscription_query_condition import SubscriptionQueryCondition +from .subscription_scope import SubscriptionScope +from .subscription_user_settings import SubscriptionUserSettings +from .value_definition import ValueDefinition +from .vss_notification_event import VssNotificationEvent + +__all__ = [ + 'ArtifactFilter', + 'BaseSubscriptionFilter', + 'BatchNotificationOperation', + 'EventActor', + 'EventScope', + 'EventsEvaluationResult', + 'ExpressionFilterClause', + 'ExpressionFilterGroup', + 'ExpressionFilterModel', + 'FieldInputValues', + 'FieldValuesQuery', + 'IdentityRef', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'ISubscriptionChannel', + 'ISubscriptionFilter', + 'NotificationEventField', + 'NotificationEventFieldOperator', + 'NotificationEventFieldType', + 'NotificationEventPublisher', + 'NotificationEventRole', + 'NotificationEventType', + 'NotificationEventTypeCategory', + 'NotificationQueryCondition', + 'NotificationReason', + 'NotificationsEvaluationResult', + 'NotificationStatistic', + 'NotificationStatisticsQuery', + 'NotificationStatisticsQueryConditions', + 'NotificationSubscriber', + 'NotificationSubscriberUpdateParameters', + 'NotificationSubscription', + 'NotificationSubscriptionCreateParameters', + 'NotificationSubscriptionTemplate', + 'NotificationSubscriptionUpdateParameters', + 'OperatorConstraint', + 'ReferenceLinks', + 'SubscriptionAdminSettings', + 'SubscriptionChannelWithAddress', + 'SubscriptionEvaluationRequest', + 'SubscriptionEvaluationResult', + 'SubscriptionEvaluationSettings', + 'SubscriptionManagement', + 'SubscriptionQuery', + 'SubscriptionQueryCondition', + 'SubscriptionScope', + 'SubscriptionUserSettings', + 'ValueDefinition', + 'VssNotificationEvent', +] diff --git a/vsts/vsts/notification/v4_1/models/artifact_filter.py b/vsts/vsts/notification/v4_1/models/artifact_filter.py new file mode 100644 index 00000000..633c1aff --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/artifact_filter.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .base_subscription_filter import BaseSubscriptionFilter + + +class ArtifactFilter(BaseSubscriptionFilter): + """ArtifactFilter. + + :param event_type: + :type event_type: str + :param artifact_id: + :type artifact_id: str + :param artifact_type: + :type artifact_type: str + :param artifact_uri: + :type artifact_uri: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, artifact_id=None, artifact_type=None, artifact_uri=None, type=None): + super(ArtifactFilter, self).__init__(event_type=event_type) + self.artifact_id = artifact_id + self.artifact_type = artifact_type + self.artifact_uri = artifact_uri + self.type = type diff --git a/vsts/vsts/notification/v4_1/models/base_subscription_filter.py b/vsts/vsts/notification/v4_1/models/base_subscription_filter.py new file mode 100644 index 00000000..64cfbeca --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/base_subscription_filter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BaseSubscriptionFilter(Model): + """BaseSubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(BaseSubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type diff --git a/vsts/vsts/notification/v4_1/models/batch_notification_operation.py b/vsts/vsts/notification/v4_1/models/batch_notification_operation.py new file mode 100644 index 00000000..70185702 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/batch_notification_operation.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchNotificationOperation(Model): + """BatchNotificationOperation. + + :param notification_operation: + :type notification_operation: object + :param notification_query_conditions: + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + """ + + _attribute_map = { + 'notification_operation': {'key': 'notificationOperation', 'type': 'object'}, + 'notification_query_conditions': {'key': 'notificationQueryConditions', 'type': '[NotificationQueryCondition]'} + } + + def __init__(self, notification_operation=None, notification_query_conditions=None): + super(BatchNotificationOperation, self).__init__() + self.notification_operation = notification_operation + self.notification_query_conditions = notification_query_conditions diff --git a/vsts/vsts/notification/v4_1/models/event_actor.py b/vsts/vsts/notification/v4_1/models/event_actor.py new file mode 100644 index 00000000..00258294 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/event_actor.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventActor(Model): + """EventActor. + + :param id: Required: This is the identity of the user for the specified role. + :type id: str + :param role: Required: The event specific name of a role. + :type role: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'} + } + + def __init__(self, id=None, role=None): + super(EventActor, self).__init__() + self.id = id + self.role = role diff --git a/vsts/vsts/notification/v4_1/models/event_scope.py b/vsts/vsts/notification/v4_1/models/event_scope.py new file mode 100644 index 00000000..9a5d7bc4 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/event_scope.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventScope(Model): + """EventScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param name: Optional: The display name of the scope + :type name: str + :param type: Required: The event specific type of a scope. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(EventScope, self).__init__() + self.id = id + self.name = name + self.type = type diff --git a/vsts/vsts/notification/v4_1/models/events_evaluation_result.py b/vsts/vsts/notification/v4_1/models/events_evaluation_result.py new file mode 100644 index 00000000..cf73a07d --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/events_evaluation_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventsEvaluationResult(Model): + """EventsEvaluationResult. + + :param count: Count of events evaluated. + :type count: int + :param matched_count: Count of matched events. + :type matched_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'matched_count': {'key': 'matchedCount', 'type': 'int'} + } + + def __init__(self, count=None, matched_count=None): + super(EventsEvaluationResult, self).__init__() + self.count = count + self.matched_count = matched_count diff --git a/vsts/vsts/notification/v4_1/models/expression_filter_clause.py b/vsts/vsts/notification/v4_1/models/expression_filter_clause.py new file mode 100644 index 00000000..908ba993 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/expression_filter_clause.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExpressionFilterClause(Model): + """ExpressionFilterClause. + + :param field_name: + :type field_name: str + :param index: The order in which this clause appeared in the filter query + :type index: int + :param logical_operator: Logical Operator 'AND', 'OR' or NULL (only for the first clause in the filter) + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(ExpressionFilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value diff --git a/vsts/vsts/notification/v4_1/models/expression_filter_group.py b/vsts/vsts/notification/v4_1/models/expression_filter_group.py new file mode 100644 index 00000000..d7c493bf --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/expression_filter_group.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExpressionFilterGroup(Model): + """ExpressionFilterGroup. + + :param end: The index of the last FilterClause in this group + :type end: int + :param level: Level of the group, since groups can be nested for each nested group the level will increase by 1 + :type level: int + :param start: The index of the first FilterClause in this group + :type start: int + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'int'}, + 'level': {'key': 'level', 'type': 'int'}, + 'start': {'key': 'start', 'type': 'int'} + } + + def __init__(self, end=None, level=None, start=None): + super(ExpressionFilterGroup, self).__init__() + self.end = end + self.level = level + self.start = start diff --git a/vsts/vsts/notification/v4_1/models/expression_filter_model.py b/vsts/vsts/notification/v4_1/models/expression_filter_model.py new file mode 100644 index 00000000..00302d55 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/expression_filter_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExpressionFilterModel(Model): + """ExpressionFilterModel. + + :param clauses: Flat list of clauses in this subscription + :type clauses: list of :class:`ExpressionFilterClause ` + :param groups: Grouping of clauses in the subscription + :type groups: list of :class:`ExpressionFilterGroup ` + :param max_group_level: Max depth of the Subscription tree + :type max_group_level: int + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[ExpressionFilterClause]'}, + 'groups': {'key': 'groups', 'type': '[ExpressionFilterGroup]'}, + 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} + } + + def __init__(self, clauses=None, groups=None, max_group_level=None): + super(ExpressionFilterModel, self).__init__() + self.clauses = clauses + self.groups = groups + self.max_group_level = max_group_level diff --git a/vsts/vsts/notification/v4_1/models/field_input_values.py b/vsts/vsts/notification/v4_1/models/field_input_values.py new file mode 100644 index 00000000..d8bfe127 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/field_input_values.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# 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 .input_values import InputValues + + +class FieldInputValues(InputValues): + """FieldInputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + :param operators: + :type operators: list of number + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, + 'operators': {'key': 'operators', 'type': '[number]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): + super(FieldInputValues, self).__init__(default_value=default_value, error=error, input_id=input_id, is_disabled=is_disabled, is_limited_to_possible_values=is_limited_to_possible_values, is_read_only=is_read_only, possible_values=possible_values) + self.operators = operators diff --git a/vsts/vsts/notification/v4_1/models/field_values_query.py b/vsts/vsts/notification/v4_1/models/field_values_query.py new file mode 100644 index 00000000..0c09e828 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/field_values_query.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .input_values_query import InputValuesQuery + + +class FieldValuesQuery(InputValuesQuery): + """FieldValuesQuery. + + :param current_values: + :type current_values: dict + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + :param input_values: + :type input_values: list of :class:`FieldInputValues ` + :param scope: + :type scope: str + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'input_values': {'key': 'inputValues', 'type': '[FieldInputValues]'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, current_values=None, resource=None, input_values=None, scope=None): + super(FieldValuesQuery, self).__init__(current_values=current_values, resource=resource) + self.input_values = input_values + self.scope = scope diff --git a/vsts/vsts/notification/v4_1/models/iSubscription_channel.py b/vsts/vsts/notification/v4_1/models/iSubscription_channel.py new file mode 100644 index 00000000..9f8ed3c5 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/iSubscription_channel.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ISubscriptionChannel(Model): + """ISubscriptionChannel. + + :param type: + :type type: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, type=None): + super(ISubscriptionChannel, self).__init__() + self.type = type diff --git a/vsts/vsts/notification/v4_1/models/iSubscription_filter.py b/vsts/vsts/notification/v4_1/models/iSubscription_filter.py new file mode 100644 index 00000000..c90034ca --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/iSubscription_filter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ISubscriptionFilter(Model): + """ISubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(ISubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type diff --git a/vsts/vsts/notification/v4_1/models/identity_ref.py b/vsts/vsts/notification/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/notification/v4_1/models/input_value.py b/vsts/vsts/notification/v4_1/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/notification/v4_1/models/input_values.py b/vsts/vsts/notification/v4_1/models/input_values.py new file mode 100644 index 00000000..69472f8d --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/notification/v4_1/models/input_values_error.py b/vsts/vsts/notification/v4_1/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/notification/v4_1/models/input_values_query.py b/vsts/vsts/notification/v4_1/models/input_values_query.py new file mode 100644 index 00000000..97687a61 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/input_values_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource diff --git a/vsts/vsts/notification/v4_1/models/notification_event_field.py b/vsts/vsts/notification/v4_1/models/notification_event_field.py new file mode 100644 index 00000000..84ef1e97 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_event_field.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventField(Model): + """NotificationEventField. + + :param field_type: Gets or sets the type of this field. + :type field_type: :class:`NotificationEventFieldType ` + :param id: Gets or sets the unique identifier of this field. + :type id: str + :param name: Gets or sets the name of this field. + :type name: str + :param path: Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML + :type path: str + :param supported_scopes: Gets or sets the scopes that this field supports. If not specified then the event type scopes apply. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'field_type': {'key': 'fieldType', 'type': 'NotificationEventFieldType'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, field_type=None, id=None, name=None, path=None, supported_scopes=None): + super(NotificationEventField, self).__init__() + self.field_type = field_type + self.id = id + self.name = name + self.path = path + self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_1/models/notification_event_field_operator.py b/vsts/vsts/notification/v4_1/models/notification_event_field_operator.py new file mode 100644 index 00000000..20593c7d --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_event_field_operator.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventFieldOperator(Model): + """NotificationEventFieldOperator. + + :param display_name: Gets or sets the display name of an operator + :type display_name: str + :param id: Gets or sets the id of an operator + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(NotificationEventFieldOperator, self).__init__() + self.display_name = display_name + self.id = id diff --git a/vsts/vsts/notification/v4_1/models/notification_event_field_type.py b/vsts/vsts/notification/v4_1/models/notification_event_field_type.py new file mode 100644 index 00000000..e0877416 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_event_field_type.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventFieldType(Model): + """NotificationEventFieldType. + + :param id: Gets or sets the unique identifier of this field type. + :type id: str + :param operator_constraints: + :type operator_constraints: list of :class:`OperatorConstraint ` + :param operators: Gets or sets the list of operators that this type supports. + :type operators: list of :class:`NotificationEventFieldOperator ` + :param subscription_field_type: + :type subscription_field_type: object + :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI + :type value: :class:`ValueDefinition ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operator_constraints': {'key': 'operatorConstraints', 'type': '[OperatorConstraint]'}, + 'operators': {'key': 'operators', 'type': '[NotificationEventFieldOperator]'}, + 'subscription_field_type': {'key': 'subscriptionFieldType', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'ValueDefinition'} + } + + def __init__(self, id=None, operator_constraints=None, operators=None, subscription_field_type=None, value=None): + super(NotificationEventFieldType, self).__init__() + self.id = id + self.operator_constraints = operator_constraints + self.operators = operators + self.subscription_field_type = subscription_field_type + self.value = value diff --git a/vsts/vsts/notification/v4_1/models/notification_event_publisher.py b/vsts/vsts/notification/v4_1/models/notification_event_publisher.py new file mode 100644 index 00000000..de394a80 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_event_publisher.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventPublisher(Model): + """NotificationEventPublisher. + + :param id: + :type id: str + :param subscription_management_info: + :type subscription_management_info: :class:`SubscriptionManagement ` + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_management_info': {'key': 'subscriptionManagementInfo', 'type': 'SubscriptionManagement'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, subscription_management_info=None, url=None): + super(NotificationEventPublisher, self).__init__() + self.id = id + self.subscription_management_info = subscription_management_info + self.url = url diff --git a/vsts/vsts/notification/v4_1/models/notification_event_role.py b/vsts/vsts/notification/v4_1/models/notification_event_role.py new file mode 100644 index 00000000..51f4c866 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_event_role.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventRole(Model): + """NotificationEventRole. + + :param id: Gets or sets an Id for that role, this id is used by the event. + :type id: str + :param name: Gets or sets the Name for that role, this name is used for UI display. + :type name: str + :param supports_groups: Gets or sets whether this role can be a group or just an individual user + :type supports_groups: bool + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supports_groups': {'key': 'supportsGroups', 'type': 'bool'} + } + + def __init__(self, id=None, name=None, supports_groups=None): + super(NotificationEventRole, self).__init__() + self.id = id + self.name = name + self.supports_groups = supports_groups diff --git a/vsts/vsts/notification/v4_1/models/notification_event_type.py b/vsts/vsts/notification/v4_1/models/notification_event_type.py new file mode 100644 index 00000000..339375f2 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_event_type.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventType(Model): + """NotificationEventType. + + :param category: + :type category: :class:`NotificationEventTypeCategory ` + :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa + :type color: str + :param custom_subscriptions_allowed: + :type custom_subscriptions_allowed: bool + :param event_publisher: + :type event_publisher: :class:`NotificationEventPublisher ` + :param fields: + :type fields: dict + :param has_initiator: + :type has_initiator: bool + :param icon: Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class + :type icon: str + :param id: Gets or sets the unique identifier of this event definition. + :type id: str + :param name: Gets or sets the name of this event definition. + :type name: str + :param roles: + :type roles: list of :class:`NotificationEventRole ` + :param supported_scopes: Gets or sets the scopes that this event type supports + :type supported_scopes: list of str + :param url: Gets or sets the rest end point to get this event type details (fields, fields types) + :type url: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'NotificationEventTypeCategory'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom_subscriptions_allowed': {'key': 'customSubscriptionsAllowed', 'type': 'bool'}, + 'event_publisher': {'key': 'eventPublisher', 'type': 'NotificationEventPublisher'}, + 'fields': {'key': 'fields', 'type': '{NotificationEventField}'}, + 'has_initiator': {'key': 'hasInitiator', 'type': 'bool'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[NotificationEventRole]'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, category=None, color=None, custom_subscriptions_allowed=None, event_publisher=None, fields=None, has_initiator=None, icon=None, id=None, name=None, roles=None, supported_scopes=None, url=None): + super(NotificationEventType, self).__init__() + self.category = category + self.color = color + self.custom_subscriptions_allowed = custom_subscriptions_allowed + self.event_publisher = event_publisher + self.fields = fields + self.has_initiator = has_initiator + self.icon = icon + self.id = id + self.name = name + self.roles = roles + self.supported_scopes = supported_scopes + self.url = url diff --git a/vsts/vsts/notification/v4_1/models/notification_event_type_category.py b/vsts/vsts/notification/v4_1/models/notification_event_type_category.py new file mode 100644 index 00000000..0d3040b6 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_event_type_category.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationEventTypeCategory(Model): + """NotificationEventTypeCategory. + + :param id: Gets or sets the unique identifier of this category. + :type id: str + :param name: Gets or sets the friendly name of this category. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(NotificationEventTypeCategory, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/notification/v4_1/models/notification_query_condition.py b/vsts/vsts/notification/v4_1/models/notification_query_condition.py new file mode 100644 index 00000000..1c1b3aaf --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_query_condition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationQueryCondition(Model): + """NotificationQueryCondition. + + :param event_initiator: + :type event_initiator: str + :param event_type: + :type event_type: str + :param subscriber: + :type subscriber: str + :param subscription_id: + :type subscription_id: str + """ + + _attribute_map = { + 'event_initiator': {'key': 'eventInitiator', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, event_initiator=None, event_type=None, subscriber=None, subscription_id=None): + super(NotificationQueryCondition, self).__init__() + self.event_initiator = event_initiator + self.event_type = event_type + self.subscriber = subscriber + self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_1/models/notification_reason.py b/vsts/vsts/notification/v4_1/models/notification_reason.py new file mode 100644 index 00000000..5769f688 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_reason.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationReason(Model): + """NotificationReason. + + :param notification_reason_type: + :type notification_reason_type: object + :param target_identities: + :type target_identities: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'notification_reason_type': {'key': 'notificationReasonType', 'type': 'object'}, + 'target_identities': {'key': 'targetIdentities', 'type': '[IdentityRef]'} + } + + def __init__(self, notification_reason_type=None, target_identities=None): + super(NotificationReason, self).__init__() + self.notification_reason_type = notification_reason_type + self.target_identities = target_identities diff --git a/vsts/vsts/notification/v4_1/models/notification_statistic.py b/vsts/vsts/notification/v4_1/models/notification_statistic.py new file mode 100644 index 00000000..17e6ba89 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_statistic.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationStatistic(Model): + """NotificationStatistic. + + :param date: + :type date: datetime + :param hit_count: + :type hit_count: int + :param path: + :type path: str + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'hit_count': {'key': 'hitCount', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, date=None, hit_count=None, path=None, type=None, user=None): + super(NotificationStatistic, self).__init__() + self.date = date + self.hit_count = hit_count + self.path = path + self.type = type + self.user = user diff --git a/vsts/vsts/notification/v4_1/models/notification_statistics_query.py b/vsts/vsts/notification/v4_1/models/notification_statistics_query.py new file mode 100644 index 00000000..9a7b9310 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_statistics_query.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationStatisticsQuery(Model): + """NotificationStatisticsQuery. + + :param conditions: + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[NotificationStatisticsQueryConditions]'} + } + + def __init__(self, conditions=None): + super(NotificationStatisticsQuery, self).__init__() + self.conditions = conditions diff --git a/vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py b/vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py new file mode 100644 index 00000000..663c00e8 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py @@ -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.serialization import Model + + +class NotificationStatisticsQueryConditions(Model): + """NotificationStatisticsQueryConditions. + + :param end_date: + :type end_date: datetime + :param hit_count_minimum: + :type hit_count_minimum: int + :param path: + :type path: str + :param start_date: + :type start_date: datetime + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'hit_count_minimum': {'key': 'hitCountMinimum', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, end_date=None, hit_count_minimum=None, path=None, start_date=None, type=None, user=None): + super(NotificationStatisticsQueryConditions, self).__init__() + self.end_date = end_date + self.hit_count_minimum = hit_count_minimum + self.path = path + self.start_date = start_date + self.type = type + self.user = user diff --git a/vsts/vsts/notification/v4_1/models/notification_subscriber.py b/vsts/vsts/notification/v4_1/models/notification_subscriber.py new file mode 100644 index 00000000..fa488c80 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_subscriber.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriber(Model): + """NotificationSubscriber. + + :param delivery_preference: Indicates how the subscriber should be notified by default. + :type delivery_preference: object + :param flags: + :type flags: object + :param id: Identifier of the subscriber. + :type id: str + :param preferred_email_address: Preferred email address of the subscriber. A null or empty value indicates no preferred email address has been set. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, flags=None, id=None, preferred_email_address=None): + super(NotificationSubscriber, self).__init__() + self.delivery_preference = delivery_preference + self.flags = flags + self.id = id + self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py b/vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py new file mode 100644 index 00000000..68ca80ff --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriberUpdateParameters(Model): + """NotificationSubscriberUpdateParameters. + + :param delivery_preference: New delivery preference for the subscriber (indicates how the subscriber should be notified). + :type delivery_preference: object + :param preferred_email_address: New preferred email address for the subscriber. Specify an empty string to clear the current address. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, preferred_email_address=None): + super(NotificationSubscriberUpdateParameters, self).__init__() + self.delivery_preference = delivery_preference + self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription.py b/vsts/vsts/notification/v4_1/models/notification_subscription.py new file mode 100644 index 00000000..6ef3c8be --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_subscription.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscription(Model): + """NotificationSubscription. + + :param _links: Links to related resources, APIs, and views for the subscription. + :type _links: :class:`ReferenceLinks ` + :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts + :type extended_properties: dict + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param flags: Read-only indicators that further describe the subscription. + :type flags: object + :param id: Subscription identifier. + :type id: str + :param last_modified_by: User that last modified (or created) the subscription. + :type last_modified_by: :class:`IdentityRef ` + :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. + :type modified_date: datetime + :param permissions: The permissions the user have for this subscriptions. + :type permissions: object + :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. + :type status: object + :param status_message: Message that provides more details about the status of the subscription. + :type status_message: str + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. + :type subscriber: :class:`IdentityRef ` + :param url: REST API URL of the subscriotion. + :type url: str + :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'permissions': {'key': 'permissions', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, _links=None, admin_settings=None, channel=None, description=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): + super(NotificationSubscription, self).__init__() + self._links = _links + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.extended_properties = extended_properties + self.filter = filter + self.flags = flags + self.id = id + self.last_modified_by = last_modified_by + self.modified_date = modified_date + self.permissions = permissions + self.scope = scope + self.status = status + self.status_message = status_message + self.subscriber = subscriber + self.url = url + self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py b/vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py new file mode 100644 index 00000000..4b894a18 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriptionCreateParameters(Model): + """NotificationSubscriptionCreateParameters. + + :param channel: Channel for delivering notifications triggered by the new subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the new subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscriber: :class:`IdentityRef ` + """ + + _attribute_map = { + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'} + } + + def __init__(self, channel=None, description=None, filter=None, scope=None, subscriber=None): + super(NotificationSubscriptionCreateParameters, self).__init__() + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.subscriber = subscriber diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription_template.py b/vsts/vsts/notification/v4_1/models/notification_subscription_template.py new file mode 100644 index 00000000..d6cc39e5 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_subscription_template.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriptionTemplate(Model): + """NotificationSubscriptionTemplate. + + :param description: + :type description: str + :param filter: + :type filter: :class:`ISubscriptionFilter ` + :param id: + :type id: str + :param notification_event_information: + :type notification_event_information: :class:`NotificationEventType ` + :param type: + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notification_event_information': {'key': 'notificationEventInformation', 'type': 'NotificationEventType'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, filter=None, id=None, notification_event_information=None, type=None): + super(NotificationSubscriptionTemplate, self).__init__() + self.description = description + self.filter = filter + self.id = id + self.notification_event_information = notification_event_information + self.type = type diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py b/vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py new file mode 100644 index 00000000..7d9a60aa --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSubscriptionUpdateParameters(Model): + """NotificationSubscriptionUpdateParameters. + + :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Updated status for the subscription. Typically used to enable or disable a subscription. + :type status: object + :param status_message: Optional message that provides more details about the updated status. + :type status_message: str + :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, admin_settings=None, channel=None, description=None, filter=None, scope=None, status=None, status_message=None, user_settings=None): + super(NotificationSubscriptionUpdateParameters, self).__init__() + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.status = status + self.status_message = status_message + self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py b/vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py new file mode 100644 index 00000000..3fe8febc --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationsEvaluationResult(Model): + """NotificationsEvaluationResult. + + :param count: Count of generated notifications + :type count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'} + } + + def __init__(self, count=None): + super(NotificationsEvaluationResult, self).__init__() + self.count = count diff --git a/vsts/vsts/notification/v4_1/models/operator_constraint.py b/vsts/vsts/notification/v4_1/models/operator_constraint.py new file mode 100644 index 00000000..f5041e41 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/operator_constraint.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OperatorConstraint(Model): + """OperatorConstraint. + + :param operator: + :type operator: str + :param supported_scopes: Gets or sets the list of scopes that this type supports. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'operator': {'key': 'operator', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, operator=None, supported_scopes=None): + super(OperatorConstraint, self).__init__() + self.operator = operator + self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_1/models/reference_links.py b/vsts/vsts/notification/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/notification/v4_1/models/subscription_admin_settings.py b/vsts/vsts/notification/v4_1/models/subscription_admin_settings.py new file mode 100644 index 00000000..bb257d6a --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_admin_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionAdminSettings(Model): + """SubscriptionAdminSettings. + + :param block_user_opt_out: If true, members of the group subscribed to the associated subscription cannot opt (choose not to get notified) + :type block_user_opt_out: bool + """ + + _attribute_map = { + 'block_user_opt_out': {'key': 'blockUserOptOut', 'type': 'bool'} + } + + def __init__(self, block_user_opt_out=None): + super(SubscriptionAdminSettings, self).__init__() + self.block_user_opt_out = block_user_opt_out diff --git a/vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py b/vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py new file mode 100644 index 00000000..c5d7f620 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionChannelWithAddress(Model): + """SubscriptionChannelWithAddress. + + :param address: + :type address: str + :param type: + :type type: str + :param use_custom_address: + :type use_custom_address: bool + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_custom_address': {'key': 'useCustomAddress', 'type': 'bool'} + } + + def __init__(self, address=None, type=None, use_custom_address=None): + super(SubscriptionChannelWithAddress, self).__init__() + self.address = address + self.type = type + self.use_custom_address = use_custom_address diff --git a/vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py b/vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py new file mode 100644 index 00000000..7735679c --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionEvaluationRequest(Model): + """SubscriptionEvaluationRequest. + + :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date + :type min_events_created_date: datetime + :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + """ + + _attribute_map = { + 'min_events_created_date': {'key': 'minEventsCreatedDate', 'type': 'iso-8601'}, + 'subscription_create_parameters': {'key': 'subscriptionCreateParameters', 'type': 'NotificationSubscriptionCreateParameters'} + } + + def __init__(self, min_events_created_date=None, subscription_create_parameters=None): + super(SubscriptionEvaluationRequest, self).__init__() + self.min_events_created_date = min_events_created_date + self.subscription_create_parameters = subscription_create_parameters diff --git a/vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py b/vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py new file mode 100644 index 00000000..0896d2c3 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionEvaluationResult(Model): + """SubscriptionEvaluationResult. + + :param evaluation_job_status: Subscription evaluation job status + :type evaluation_job_status: object + :param events: Subscription evaluation events results. + :type events: :class:`EventsEvaluationResult ` + :param id: The requestId which is the subscription evaluation jobId + :type id: str + :param notifications: Subscription evaluation notification results. + :type notifications: :class:`NotificationsEvaluationResult ` + """ + + _attribute_map = { + 'evaluation_job_status': {'key': 'evaluationJobStatus', 'type': 'object'}, + 'events': {'key': 'events', 'type': 'EventsEvaluationResult'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notifications': {'key': 'notifications', 'type': 'NotificationsEvaluationResult'} + } + + def __init__(self, evaluation_job_status=None, events=None, id=None, notifications=None): + super(SubscriptionEvaluationResult, self).__init__() + self.evaluation_job_status = evaluation_job_status + self.events = events + self.id = id + self.notifications = notifications diff --git a/vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py b/vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py new file mode 100644 index 00000000..2afc0946 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionEvaluationSettings(Model): + """SubscriptionEvaluationSettings. + + :param enabled: Indicates whether subscription evaluation before saving is enabled or not + :type enabled: bool + :param interval: Time interval to check on subscription evaluation job in seconds + :type interval: int + :param threshold: Threshold on the number of notifications for considering a subscription too noisy + :type threshold: int + :param time_out: Time out for the subscription evaluation check in seconds + :type time_out: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'interval': {'key': 'interval', 'type': 'int'}, + 'threshold': {'key': 'threshold', 'type': 'int'}, + 'time_out': {'key': 'timeOut', 'type': 'int'} + } + + def __init__(self, enabled=None, interval=None, threshold=None, time_out=None): + super(SubscriptionEvaluationSettings, self).__init__() + self.enabled = enabled + self.interval = interval + self.threshold = threshold + self.time_out = time_out diff --git a/vsts/vsts/notification/v4_1/models/subscription_management.py b/vsts/vsts/notification/v4_1/models/subscription_management.py new file mode 100644 index 00000000..92f047de --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_management.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionManagement(Model): + """SubscriptionManagement. + + :param service_instance_type: + :type service_instance_type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, service_instance_type=None, url=None): + super(SubscriptionManagement, self).__init__() + self.service_instance_type = service_instance_type + self.url = url diff --git a/vsts/vsts/notification/v4_1/models/subscription_query.py b/vsts/vsts/notification/v4_1/models/subscription_query.py new file mode 100644 index 00000000..10ee7b00 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_query.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionQuery(Model): + """SubscriptionQuery. + + :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). + :type conditions: list of :class:`SubscriptionQueryCondition ` + :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. + :type query_flags: object + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[SubscriptionQueryCondition]'}, + 'query_flags': {'key': 'queryFlags', 'type': 'object'} + } + + def __init__(self, conditions=None, query_flags=None): + super(SubscriptionQuery, self).__init__() + self.conditions = conditions + self.query_flags = query_flags diff --git a/vsts/vsts/notification/v4_1/models/subscription_query_condition.py b/vsts/vsts/notification/v4_1/models/subscription_query_condition.py new file mode 100644 index 00000000..90080ee2 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_query_condition.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionQueryCondition(Model): + """SubscriptionQueryCondition. + + :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. + :type filter: :class:`ISubscriptionFilter ` + :param flags: Flags to specify the the type subscriptions to query for. + :type flags: object + :param scope: Scope that matching subscriptions must have. + :type scope: str + :param subscriber_id: ID of the subscriber (user or group) that matching subscriptions must be subscribed to. + :type subscriber_id: str + :param subscription_id: ID of the subscription to query for. + :type subscription_id: str + """ + + _attribute_map = { + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, filter=None, flags=None, scope=None, subscriber_id=None, subscription_id=None): + super(SubscriptionQueryCondition, self).__init__() + self.filter = filter + self.flags = flags + self.scope = scope + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_1/models/subscription_scope.py b/vsts/vsts/notification/v4_1/models/subscription_scope.py new file mode 100644 index 00000000..63d16770 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_scope.py @@ -0,0 +1,30 @@ +# -------------------------------------------------------------------------------------------- +# 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 .event_scope import EventScope + + +class SubscriptionScope(EventScope): + """SubscriptionScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param name: Optional: The display name of the scope + :type name: str + :param type: Required: The event specific type of a scope. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, name=None, type=None): + super(SubscriptionScope, self).__init__(id=id, name=name, type=type) diff --git a/vsts/vsts/notification/v4_1/models/subscription_user_settings.py b/vsts/vsts/notification/v4_1/models/subscription_user_settings.py new file mode 100644 index 00000000..ae1d2e4b --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_user_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionUserSettings(Model): + """SubscriptionUserSettings. + + :param opted_out: Indicates whether the user will receive notifications for the associated group subscription. + :type opted_out: bool + """ + + _attribute_map = { + 'opted_out': {'key': 'optedOut', 'type': 'bool'} + } + + def __init__(self, opted_out=None): + super(SubscriptionUserSettings, self).__init__() + self.opted_out = opted_out diff --git a/vsts/vsts/notification/v4_1/models/value_definition.py b/vsts/vsts/notification/v4_1/models/value_definition.py new file mode 100644 index 00000000..5ea1d0f0 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/value_definition.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ValueDefinition(Model): + """ValueDefinition. + + :param data_source: Gets or sets the data source. + :type data_source: list of :class:`InputValue ` + :param end_point: Gets or sets the rest end point. + :type end_point: str + :param result_template: Gets or sets the result template. + :type result_template: str + """ + + _attribute_map = { + 'data_source': {'key': 'dataSource', 'type': '[InputValue]'}, + 'end_point': {'key': 'endPoint', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, data_source=None, end_point=None, result_template=None): + super(ValueDefinition, self).__init__() + self.data_source = data_source + self.end_point = end_point + self.result_template = result_template diff --git a/vsts/vsts/notification/v4_1/models/vss_notification_event.py b/vsts/vsts/notification/v4_1/models/vss_notification_event.py new file mode 100644 index 00000000..fcc6ea1b --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/vss_notification_event.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VssNotificationEvent(Model): + """VssNotificationEvent. + + :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. + :type actors: list of :class:`EventActor ` + :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. + :type artifact_uris: list of str + :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. + :type data: object + :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. + :type event_type: str + :param scopes: Optional: A list of scopes which are are relevant to the event. + :type scopes: list of :class:`EventScope ` + """ + + _attribute_map = { + 'actors': {'key': 'actors', 'type': '[EventActor]'}, + 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, + 'data': {'key': 'data', 'type': 'object'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[EventScope]'} + } + + def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): + super(VssNotificationEvent, self).__init__() + self.actors = actors + self.artifact_uris = artifact_uris + self.data = data + self.event_type = event_type + self.scopes = scopes diff --git a/vsts/vsts/notification/v4_1/notification_client.py b/vsts/vsts/notification/v4_1/notification_client.py new file mode 100644 index 00000000..b5eae874 --- /dev/null +++ b/vsts/vsts/notification/v4_1/notification_client.py @@ -0,0 +1,224 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class NotificationClient(VssClient): + """Notification + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(NotificationClient, 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_event_type(self, event_type): + """GetEventType. + [Preview API] Get a specific event type. + :param str event_type: + :rtype: :class:` ` + """ + route_values = {} + if event_type is not None: + route_values['eventType'] = self._serialize.url('event_type', event_type, 'str') + response = self._send(http_method='GET', + location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('NotificationEventType', response) + + def list_event_types(self, publisher_id=None): + """ListEventTypes. + [Preview API] List available event types for this service. Optionally filter by only event types for the specified publisher. + :param str publisher_id: Limit to event types for this publisher + :rtype: [NotificationEventType] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[NotificationEventType]', response) + + def get_subscriber(self, subscriber_id): + """GetSubscriber. + [Preview API] + :param str subscriber_id: + :rtype: :class:` ` + """ + route_values = {} + if subscriber_id is not None: + route_values['subscriberId'] = self._serialize.url('subscriber_id', subscriber_id, 'str') + response = self._send(http_method='GET', + location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('NotificationSubscriber', response) + + def update_subscriber(self, update_parameters, subscriber_id): + """UpdateSubscriber. + [Preview API] + :param :class:` ` update_parameters: + :param str subscriber_id: + :rtype: :class:` ` + """ + route_values = {} + if subscriber_id is not None: + route_values['subscriberId'] = self._serialize.url('subscriber_id', subscriber_id, 'str') + content = self._serialize.body(update_parameters, 'NotificationSubscriberUpdateParameters') + response = self._send(http_method='PATCH', + location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('NotificationSubscriber', response) + + def query_subscriptions(self, subscription_query): + """QuerySubscriptions. + [Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions. + :param :class:` ` subscription_query: + :rtype: [NotificationSubscription] + """ + content = self._serialize.body(subscription_query, 'SubscriptionQuery') + response = self._send(http_method='POST', + location_id='6864db85-08c0-4006-8e8e-cc1bebe31675', + version='4.1-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[NotificationSubscription]', response) + + def create_subscription(self, create_parameters): + """CreateSubscription. + [Preview API] Create a new subscription. + :param :class:` ` create_parameters: + :rtype: :class:` ` + """ + content = self._serialize.body(create_parameters, 'NotificationSubscriptionCreateParameters') + response = self._send(http_method='POST', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.1-preview.1', + content=content) + return self._deserialize('NotificationSubscription', response) + + def delete_subscription(self, subscription_id): + """DeleteSubscription. + [Preview API] Delete a subscription. + :param str subscription_id: + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + self._send(http_method='DELETE', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.1-preview.1', + route_values=route_values) + + def get_subscription(self, subscription_id, query_flags=None): + """GetSubscription. + [Preview API] Get a notification subscription by its ID. + :param str subscription_id: + :param str query_flags: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + query_parameters = {} + if query_flags is not None: + query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') + response = self._send(http_method='GET', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('NotificationSubscription', response) + + def list_subscriptions(self, target_id=None, ids=None, query_flags=None): + """ListSubscriptions. + [Preview API] + :param str target_id: + :param [str] ids: + :param str query_flags: + :rtype: [NotificationSubscription] + """ + query_parameters = {} + if target_id is not None: + query_parameters['targetId'] = self._serialize.query('target_id', target_id, 'str') + if ids is not None: + ids = ",".join(ids) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if query_flags is not None: + query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') + response = self._send(http_method='GET', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[NotificationSubscription]', response) + + def update_subscription(self, update_parameters, subscription_id): + """UpdateSubscription. + [Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more. + :param :class:` ` update_parameters: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(update_parameters, 'NotificationSubscriptionUpdateParameters') + response = self._send(http_method='PATCH', + location_id='70f911d6-abac-488c-85b3-a206bf57e165', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('NotificationSubscription', response) + + def get_subscription_templates(self): + """GetSubscriptionTemplates. + [Preview API] Get available subscription templates. + :rtype: [NotificationSubscriptionTemplate] + """ + response = self._send(http_method='GET', + location_id='fa5d24ba-7484-4f3d-888d-4ec6b1974082', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[NotificationSubscriptionTemplate]', response) + + def update_subscription_user_settings(self, user_settings, subscription_id, user_id): + """UpdateSubscriptionUserSettings. + [Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. + :param :class:` ` user_settings: + :param str subscription_id: + :param str user_id: ID of the user + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + content = self._serialize.body(user_settings, 'SubscriptionUserSettings') + response = self._send(http_method='PUT', + location_id='ed5a3dff-aeb5-41b1-b4f7-89e66e58b62e', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SubscriptionUserSettings', response) + diff --git a/vsts/vsts/policy/v4_1/models/__init__.py b/vsts/vsts/policy/v4_1/models/__init__.py index a1e4a4bc..15df3183 100644 --- a/vsts/vsts/policy/v4_1/models/__init__.py +++ b/vsts/vsts/policy/v4_1/models/__init__.py @@ -6,7 +6,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .policy_configuration import PolicyConfiguration from .policy_configuration_ref import PolicyConfigurationRef @@ -17,7 +16,6 @@ from .versioned_policy_configuration_ref import VersionedPolicyConfigurationRef __all__ = [ - 'GraphSubjectBase', 'IdentityRef', 'PolicyConfiguration', 'PolicyConfigurationRef', diff --git a/vsts/vsts/policy/v4_1/models/identity_ref.py b/vsts/vsts/policy/v4_1/models/identity_ref.py index c4c35ad5..40c776c5 100644 --- a/vsts/vsts/policy/v4_1/models/identity_ref.py +++ b/vsts/vsts/policy/v4_1/models/identity_ref.py @@ -6,22 +6,16 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .graph_subject_base import GraphSubjectBase +from msrest.serialization import Model -class IdentityRef(GraphSubjectBase): +class IdentityRef(Model): """IdentityRef. - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str :param directory_alias: :type directory_alias: str + :param display_name: + :type display_name: str :param id: :type id: str :param image_url: @@ -36,26 +30,27 @@ class IdentityRef(GraphSubjectBase): :type profile_url: str :param unique_name: :type unique_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'}, 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', '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, profile_url=None, unique_name=None): - super(IdentityRef, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() self.directory_alias = directory_alias + self.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -63,3 +58,4 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/project_analysis/v4_1/__init__.py b/vsts/vsts/project_analysis/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/project_analysis/v4_1/models/__init__.py b/vsts/vsts/project_analysis/v4_1/models/__init__.py new file mode 100644 index 00000000..58847dd7 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .code_change_trend_item import CodeChangeTrendItem +from .language_statistics import LanguageStatistics +from .project_activity_metrics import ProjectActivityMetrics +from .project_language_analytics import ProjectLanguageAnalytics +from .repository_activity_metrics import RepositoryActivityMetrics +from .repository_language_analytics import RepositoryLanguageAnalytics + +__all__ = [ + 'CodeChangeTrendItem', + 'LanguageStatistics', + 'ProjectActivityMetrics', + 'ProjectLanguageAnalytics', + 'RepositoryActivityMetrics', + 'RepositoryLanguageAnalytics', +] diff --git a/vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py b/vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py new file mode 100644 index 00000000..805629d0 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeChangeTrendItem(Model): + """CodeChangeTrendItem. + + :param time: + :type time: datetime + :param value: + :type value: int + """ + + _attribute_map = { + 'time': {'key': 'time', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, time=None, value=None): + super(CodeChangeTrendItem, self).__init__() + self.time = time + self.value = value diff --git a/vsts/vsts/project_analysis/v4_1/models/language_statistics.py b/vsts/vsts/project_analysis/v4_1/models/language_statistics.py new file mode 100644 index 00000000..517f0038 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/language_statistics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LanguageStatistics(Model): + """LanguageStatistics. + + :param bytes: + :type bytes: long + :param files: + :type files: int + :param files_percentage: + :type files_percentage: number + :param language_percentage: + :type language_percentage: number + :param name: + :type name: str + """ + + _attribute_map = { + 'bytes': {'key': 'bytes', 'type': 'long'}, + 'files': {'key': 'files', 'type': 'int'}, + 'files_percentage': {'key': 'filesPercentage', 'type': 'number'}, + 'language_percentage': {'key': 'languagePercentage', 'type': 'number'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, bytes=None, files=None, files_percentage=None, language_percentage=None, name=None): + super(LanguageStatistics, self).__init__() + self.bytes = bytes + self.files = files + self.files_percentage = files_percentage + self.language_percentage = language_percentage + self.name = name diff --git a/vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py b/vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py new file mode 100644 index 00000000..2b0ce812 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py @@ -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.serialization import Model + + +class ProjectActivityMetrics(Model): + """ProjectActivityMetrics. + + :param authors_count: + :type authors_count: int + :param code_changes_count: + :type code_changes_count: int + :param code_changes_trend: + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :param project_id: + :type project_id: str + :param pull_requests_completed_count: + :type pull_requests_completed_count: int + :param pull_requests_created_count: + :type pull_requests_created_count: int + """ + + _attribute_map = { + 'authors_count': {'key': 'authorsCount', 'type': 'int'}, + 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, + 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'pull_requests_completed_count': {'key': 'pullRequestsCompletedCount', 'type': 'int'}, + 'pull_requests_created_count': {'key': 'pullRequestsCreatedCount', 'type': 'int'} + } + + def __init__(self, authors_count=None, code_changes_count=None, code_changes_trend=None, project_id=None, pull_requests_completed_count=None, pull_requests_created_count=None): + super(ProjectActivityMetrics, self).__init__() + self.authors_count = authors_count + self.code_changes_count = code_changes_count + self.code_changes_trend = code_changes_trend + self.project_id = project_id + self.pull_requests_completed_count = pull_requests_completed_count + self.pull_requests_created_count = pull_requests_created_count diff --git a/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py b/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py new file mode 100644 index 00000000..bf08c8de --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectLanguageAnalytics(Model): + """ProjectLanguageAnalytics. + + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param repository_language_analytics: + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :param result_phase: + :type result_phase: object + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): + super(ProjectLanguageAnalytics, self).__init__() + self.id = id + self.language_breakdown = language_breakdown + self.repository_language_analytics = repository_language_analytics + self.result_phase = result_phase + self.url = url diff --git a/vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py b/vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py new file mode 100644 index 00000000..0d3d9381 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RepositoryActivityMetrics(Model): + """RepositoryActivityMetrics. + + :param code_changes_count: + :type code_changes_count: int + :param code_changes_trend: + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, + 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, code_changes_count=None, code_changes_trend=None, repository_id=None): + super(RepositoryActivityMetrics, self).__init__() + self.code_changes_count = code_changes_count + self.code_changes_trend = code_changes_trend + self.repository_id = repository_id diff --git a/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py b/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py new file mode 100644 index 00000000..6d3cecbe --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RepositoryLanguageAnalytics(Model): + """RepositoryLanguageAnalytics. + + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param name: + :type name: str + :param result_phase: + :type result_phase: object + :param updated_time: + :type updated_time: datetime + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} + } + + def __init__(self, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): + super(RepositoryLanguageAnalytics, self).__init__() + self.id = id + self.language_breakdown = language_breakdown + self.name = name + self.result_phase = result_phase + self.updated_time = updated_time diff --git a/vsts/vsts/project_analysis/v4_1/project_analysis_client.py b/vsts/vsts/project_analysis/v4_1/project_analysis_client.py new file mode 100644 index 00000000..6e7de43b --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/project_analysis_client.py @@ -0,0 +1,121 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ProjectAnalysisClient(VssClient): + """ProjectAnalysis + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProjectAnalysisClient, 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_project_language_analytics(self, project): + """GetProjectLanguageAnalytics. + [Preview API] + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='5b02a779-1867-433f-90b7-d23ed5e33e57', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ProjectLanguageAnalytics', response) + + def get_project_activity_metrics(self, project, from_date, aggregation_type): + """GetProjectActivityMetrics. + [Preview API] + :param str project: Project ID or project name + :param datetime from_date: + :param str aggregation_type: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') + if aggregation_type is not None: + query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') + response = self._send(http_method='GET', + location_id='e40ae584-9ea6-4f06-a7c7-6284651b466b', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProjectActivityMetrics', response) + + def get_git_repositories_activity_metrics(self, project, from_date, aggregation_type, skip, top): + """GetGitRepositoriesActivityMetrics. + [Preview API] Retrieves git activity metrics for repositories matching a specified criteria. + :param str project: Project ID or project name + :param datetime from_date: Date from which, the trends are to be fetched. + :param str aggregation_type: Bucket size on which, trends are to be aggregated. + :param int skip: The number of repositories to ignore. + :param int top: The number of repositories for which activity metrics are to be retrieved. + :rtype: [RepositoryActivityMetrics] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') + if aggregation_type is not None: + query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='df7fbbca-630a-40e3-8aa3-7a3faf66947e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[RepositoryActivityMetrics]', response) + + def get_repository_activity_metrics(self, project, repository_id, from_date, aggregation_type): + """GetRepositoryActivityMetrics. + [Preview API] + :param str project: Project ID or project name + :param str repository_id: + :param datetime from_date: + :param str aggregation_type: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') + if aggregation_type is not None: + query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') + response = self._send(http_method='GET', + location_id='df7fbbca-630a-40e3-8aa3-7a3faf66947e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('RepositoryActivityMetrics', response) + diff --git a/vsts/vsts/service_hooks/v4_1/__init__.py b/vsts/vsts/service_hooks/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_hooks/v4_1/models/__init__.py b/vsts/vsts/service_hooks/v4_1/models/__init__.py new file mode 100644 index 00000000..30e3e5ee --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/__init__.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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 .consumer import Consumer +from .consumer_action import ConsumerAction +from .event import Event +from .event_type_descriptor import EventTypeDescriptor +from .external_configuration_descriptor import ExternalConfigurationDescriptor +from .formatted_event_message import FormattedEventMessage +from .identity_ref import IdentityRef +from .input_descriptor import InputDescriptor +from .input_filter import InputFilter +from .input_filter_condition import InputFilterCondition +from .input_validation import InputValidation +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .input_values_query import InputValuesQuery +from .notification import Notification +from .notification_details import NotificationDetails +from .notification_results_summary_detail import NotificationResultsSummaryDetail +from .notifications_query import NotificationsQuery +from .notification_summary import NotificationSummary +from .publisher import Publisher +from .publisher_event import PublisherEvent +from .publishers_query import PublishersQuery +from .reference_links import ReferenceLinks +from .resource_container import ResourceContainer +from .session_token import SessionToken +from .subscription import Subscription +from .subscriptions_query import SubscriptionsQuery +from .versioned_resource import VersionedResource + +__all__ = [ + 'Consumer', + 'ConsumerAction', + 'Event', + 'EventTypeDescriptor', + 'ExternalConfigurationDescriptor', + 'FormattedEventMessage', + 'IdentityRef', + 'InputDescriptor', + 'InputFilter', + 'InputFilterCondition', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Notification', + 'NotificationDetails', + 'NotificationResultsSummaryDetail', + 'NotificationsQuery', + 'NotificationSummary', + 'Publisher', + 'PublisherEvent', + 'PublishersQuery', + 'ReferenceLinks', + 'ResourceContainer', + 'SessionToken', + 'Subscription', + 'SubscriptionsQuery', + 'VersionedResource', +] diff --git a/vsts/vsts/service_hooks/v4_1/models/consumer.py b/vsts/vsts/service_hooks/v4_1/models/consumer.py new file mode 100644 index 00000000..93077591 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/consumer.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Consumer(Model): + """Consumer. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param actions: Gets this consumer's actions. + :type actions: list of :class:`ConsumerAction ` + :param authentication_type: Gets or sets this consumer's authentication type. + :type authentication_type: object + :param description: Gets or sets this consumer's localized description. + :type description: str + :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. + :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :param id: Gets or sets this consumer's identifier. + :type id: str + :param image_url: Gets or sets this consumer's image URL, if any. + :type image_url: str + :param information_url: Gets or sets this consumer's information URL, if any. + :type information_url: str + :param input_descriptors: Gets or sets this consumer's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this consumer's localized name. + :type name: str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'actions': {'key': 'actions', 'type': '[ConsumerAction]'}, + 'authentication_type': {'key': 'authenticationType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'external_configuration': {'key': 'externalConfiguration', 'type': 'ExternalConfigurationDescriptor'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'information_url': {'key': 'informationUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, actions=None, authentication_type=None, description=None, external_configuration=None, id=None, image_url=None, information_url=None, input_descriptors=None, name=None, url=None): + super(Consumer, self).__init__() + self._links = _links + self.actions = actions + self.authentication_type = authentication_type + self.description = description + self.external_configuration = external_configuration + self.id = id + self.image_url = image_url + self.information_url = information_url + self.input_descriptors = input_descriptors + self.name = name + self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/consumer_action.py b/vsts/vsts/service_hooks/v4_1/models/consumer_action.py new file mode 100644 index 00000000..c1e08907 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/consumer_action.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ConsumerAction(Model): + """ConsumerAction. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. + :type allow_resource_version_override: bool + :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. + :type consumer_id: str + :param description: Gets or sets this action's localized description. + :type description: str + :param id: Gets or sets this action's identifier. + :type id: str + :param input_descriptors: Gets or sets this action's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this action's localized name. + :type name: str + :param supported_event_types: Gets or sets this action's supported event identifiers. + :type supported_event_types: list of str + :param supported_resource_versions: Gets or sets this action's supported resource versions. + :type supported_resource_versions: dict + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allow_resource_version_override': {'key': 'allowResourceVersionOverride', 'type': 'bool'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supported_event_types': {'key': 'supportedEventTypes', 'type': '[str]'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '{[str]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allow_resource_version_override=None, consumer_id=None, description=None, id=None, input_descriptors=None, name=None, supported_event_types=None, supported_resource_versions=None, url=None): + super(ConsumerAction, self).__init__() + self._links = _links + self.allow_resource_version_override = allow_resource_version_override + self.consumer_id = consumer_id + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.supported_event_types = supported_event_types + self.supported_resource_versions = supported_resource_versions + self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/event.py b/vsts/vsts/service_hooks/v4_1/models/event.py new file mode 100644 index 00000000..36d8845b --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/event.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Event(Model): + """Event. + + :param created_date: Gets or sets the UTC-based date and time that this event was created. + :type created_date: datetime + :param detailed_message: Gets or sets the detailed message associated with this event. + :type detailed_message: :class:`FormattedEventMessage ` + :param event_type: Gets or sets the type of this event. + :type event_type: str + :param id: Gets or sets the unique identifier of this event. + :type id: str + :param message: Gets or sets the (brief) message associated with this event. + :type message: :class:`FormattedEventMessage ` + :param publisher_id: Gets or sets the identifier of the publisher that raised this event. + :type publisher_id: str + :param resource: Gets or sets the data associated with this event. + :type resource: object + :param resource_containers: Gets or sets the resource containers. + :type resource_containers: dict + :param resource_version: Gets or sets the version of the data associated with this event. + :type resource_version: str + :param session_token: Gets or sets the Session Token that can be used in further interactions + :type session_token: :class:`SessionToken ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'detailed_message': {'key': 'detailedMessage', 'type': 'FormattedEventMessage'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'FormattedEventMessage'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_containers': {'key': 'resourceContainers', 'type': '{ResourceContainer}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'session_token': {'key': 'sessionToken', 'type': 'SessionToken'} + } + + def __init__(self, created_date=None, detailed_message=None, event_type=None, id=None, message=None, publisher_id=None, resource=None, resource_containers=None, resource_version=None, session_token=None): + super(Event, self).__init__() + self.created_date = created_date + self.detailed_message = detailed_message + self.event_type = event_type + self.id = id + self.message = message + self.publisher_id = publisher_id + self.resource = resource + self.resource_containers = resource_containers + self.resource_version = resource_version + self.session_token = session_token diff --git a/vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py b/vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py new file mode 100644 index 00000000..a6dac171 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EventTypeDescriptor(Model): + """EventTypeDescriptor. + + :param description: A localized description of the event type + :type description: str + :param id: A unique id for the event type + :type id: str + :param input_descriptors: Event-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: A localized friendly name for the event type + :type name: str + :param publisher_id: A unique id for the publisher of this event type + :type publisher_id: str + :param supported_resource_versions: Supported versions for the event's resource payloads. + :type supported_resource_versions: list of str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, input_descriptors=None, name=None, publisher_id=None, supported_resource_versions=None, url=None): + super(EventTypeDescriptor, self).__init__() + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.publisher_id = publisher_id + self.supported_resource_versions = supported_resource_versions + self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py b/vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py new file mode 100644 index 00000000..c2ab4f98 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ExternalConfigurationDescriptor(Model): + """ExternalConfigurationDescriptor. + + :param create_subscription_url: Url of the site to create this type of subscription. + :type create_subscription_url: str + :param edit_subscription_property_name: The name of an input property that contains the URL to edit a subscription. + :type edit_subscription_property_name: str + :param hosted_only: True if the external configuration applies only to hosted. + :type hosted_only: bool + """ + + _attribute_map = { + 'create_subscription_url': {'key': 'createSubscriptionUrl', 'type': 'str'}, + 'edit_subscription_property_name': {'key': 'editSubscriptionPropertyName', 'type': 'str'}, + 'hosted_only': {'key': 'hostedOnly', 'type': 'bool'} + } + + def __init__(self, create_subscription_url=None, edit_subscription_property_name=None, hosted_only=None): + super(ExternalConfigurationDescriptor, self).__init__() + self.create_subscription_url = create_subscription_url + self.edit_subscription_property_name = edit_subscription_property_name + self.hosted_only = hosted_only diff --git a/vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py b/vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py new file mode 100644 index 00000000..7d513262 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FormattedEventMessage(Model): + """FormattedEventMessage. + + :param html: Gets or sets the html format of the message + :type html: str + :param markdown: Gets or sets the markdown format of the message + :type markdown: str + :param text: Gets or sets the raw text of the message + :type text: str + """ + + _attribute_map = { + 'html': {'key': 'html', 'type': 'str'}, + 'markdown': {'key': 'markdown', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, html=None, markdown=None, text=None): + super(FormattedEventMessage, self).__init__() + self.html = html + self.markdown = markdown + self.text = text diff --git a/vsts/vsts/service_hooks/v4_1/models/identity_ref.py b/vsts/vsts/service_hooks/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/input_descriptor.py b/vsts/vsts/service_hooks/v4_1/models/input_descriptor.py new file mode 100644 index 00000000..da334836 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_descriptor.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values diff --git a/vsts/vsts/service_hooks/v4_1/models/input_filter.py b/vsts/vsts/service_hooks/v4_1/models/input_filter.py new file mode 100644 index 00000000..91d219dc --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_filter.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputFilter(Model): + """InputFilter. + + :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. + :type conditions: list of :class:`InputFilterCondition ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[InputFilterCondition]'} + } + + def __init__(self, conditions=None): + super(InputFilter, self).__init__() + self.conditions = conditions diff --git a/vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py b/vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py new file mode 100644 index 00000000..1a514738 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputFilterCondition(Model): + """InputFilterCondition. + + :param case_sensitive: Whether or not to do a case sensitive match + :type case_sensitive: bool + :param input_id: The Id of the input to filter on + :type input_id: str + :param input_value: The "expected" input value to compare with the actual input value + :type input_value: str + :param operator: The operator applied between the expected and actual input value + :type operator: object + """ + + _attribute_map = { + 'case_sensitive': {'key': 'caseSensitive', 'type': 'bool'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'input_value': {'key': 'inputValue', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'object'} + } + + def __init__(self, case_sensitive=None, input_id=None, input_value=None, operator=None): + super(InputFilterCondition, self).__init__() + self.case_sensitive = case_sensitive + self.input_id = input_id + self.input_value = input_value + self.operator = operator diff --git a/vsts/vsts/service_hooks/v4_1/models/input_validation.py b/vsts/vsts/service_hooks/v4_1/models/input_validation.py new file mode 100644 index 00000000..f2f1a434 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_validation.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/service_hooks/v4_1/models/input_value.py b/vsts/vsts/service_hooks/v4_1/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/service_hooks/v4_1/models/input_values.py b/vsts/vsts/service_hooks/v4_1/models/input_values.py new file mode 100644 index 00000000..69472f8d --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/service_hooks/v4_1/models/input_values_error.py b/vsts/vsts/service_hooks/v4_1/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/service_hooks/v4_1/models/input_values_query.py b/vsts/vsts/service_hooks/v4_1/models/input_values_query.py new file mode 100644 index 00000000..97687a61 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/input_values_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource diff --git a/vsts/vsts/service_hooks/v4_1/models/notification.py b/vsts/vsts/service_hooks/v4_1/models/notification.py new file mode 100644 index 00000000..0bcbd8b5 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/notification.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Notification(Model): + """Notification. + + :param created_date: Gets or sets date and time that this result was created. + :type created_date: datetime + :param details: Details about this notification (if available) + :type details: :class:`NotificationDetails ` + :param event_id: The event id associated with this notification + :type event_id: str + :param id: The notification id + :type id: int + :param modified_date: Gets or sets date and time that this result was last modified. + :type modified_date: datetime + :param result: Result of the notification + :type result: object + :param status: Status of the notification + :type status: object + :param subscriber_id: The subscriber Id associated with this notification. This is the last identity who touched in the subscription. In case of test notifications it can be the tester if the subscription is not created yet. + :type subscriber_id: str + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'details': {'key': 'details', 'type': 'NotificationDetails'}, + 'event_id': {'key': 'eventId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, created_date=None, details=None, event_id=None, id=None, modified_date=None, result=None, status=None, subscriber_id=None, subscription_id=None): + super(Notification, self).__init__() + self.created_date = created_date + self.details = details + self.event_id = event_id + self.id = id + self.modified_date = modified_date + self.result = result + self.status = status + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_1/models/notification_details.py b/vsts/vsts/service_hooks/v4_1/models/notification_details.py new file mode 100644 index 00000000..ba1d96ab --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/notification_details.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationDetails(Model): + """NotificationDetails. + + :param completed_date: Gets or sets the time that this notification was completed (response received from the consumer) + :type completed_date: datetime + :param consumer_action_id: Gets or sets this notification detail's consumer action identifier. + :type consumer_action_id: str + :param consumer_id: Gets or sets this notification detail's consumer identifier. + :type consumer_id: str + :param consumer_inputs: Gets or sets this notification detail's consumer inputs. + :type consumer_inputs: dict + :param dequeued_date: Gets or sets the time that this notification was dequeued for processing + :type dequeued_date: datetime + :param error_detail: Gets or sets this notification detail's error detail. + :type error_detail: str + :param error_message: Gets or sets this notification detail's error message. + :type error_message: str + :param event: Gets or sets this notification detail's event content. + :type event: :class:`Event ` + :param event_type: Gets or sets this notification detail's event type. + :type event_type: str + :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) + :type processed_date: datetime + :param publisher_id: Gets or sets this notification detail's publisher identifier. + :type publisher_id: str + :param publisher_inputs: Gets or sets this notification detail's publisher inputs. + :type publisher_inputs: dict + :param queued_date: Gets or sets the time that this notification was queued (created) + :type queued_date: datetime + :param request: Gets or sets this notification detail's request. + :type request: str + :param request_attempts: Number of requests attempted to be sent to the consumer + :type request_attempts: int + :param request_duration: Duration of the request to the consumer in seconds + :type request_duration: number + :param response: Gets or sets this notification detail's reponse. + :type response: str + """ + + _attribute_map = { + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'dequeued_date': {'key': 'dequeuedDate', 'type': 'iso-8601'}, + 'error_detail': {'key': 'errorDetail', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'processed_date': {'key': 'processedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'str'}, + 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, + 'request_duration': {'key': 'requestDuration', 'type': 'number'}, + 'response': {'key': 'response', 'type': 'str'} + } + + def __init__(self, completed_date=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, dequeued_date=None, error_detail=None, error_message=None, event=None, event_type=None, processed_date=None, publisher_id=None, publisher_inputs=None, queued_date=None, request=None, request_attempts=None, request_duration=None, response=None): + super(NotificationDetails, self).__init__() + self.completed_date = completed_date + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.dequeued_date = dequeued_date + self.error_detail = error_detail + self.error_message = error_message + self.event = event + self.event_type = event_type + self.processed_date = processed_date + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.queued_date = queued_date + self.request = request + self.request_attempts = request_attempts + self.request_duration = request_duration + self.response = response diff --git a/vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py b/vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py new file mode 100644 index 00000000..eb8819fa --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationResultsSummaryDetail(Model): + """NotificationResultsSummaryDetail. + + :param notification_count: Count of notification sent out with a matching result. + :type notification_count: int + :param result: Result of the notification + :type result: object + """ + + _attribute_map = { + 'notification_count': {'key': 'notificationCount', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'} + } + + def __init__(self, notification_count=None, result=None): + super(NotificationResultsSummaryDetail, self).__init__() + self.notification_count = notification_count + self.result = result diff --git a/vsts/vsts/service_hooks/v4_1/models/notification_summary.py b/vsts/vsts/service_hooks/v4_1/models/notification_summary.py new file mode 100644 index 00000000..30ad4809 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/notification_summary.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationSummary(Model): + """NotificationSummary. + + :param results: The notification results for this particular subscription. + :type results: list of :class:`NotificationResultsSummaryDetail ` + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[NotificationResultsSummaryDetail]'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, results=None, subscription_id=None): + super(NotificationSummary, self).__init__() + self.results = results + self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_1/models/notifications_query.py b/vsts/vsts/service_hooks/v4_1/models/notifications_query.py new file mode 100644 index 00000000..6f7cd92a --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/notifications_query.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationsQuery(Model): + """NotificationsQuery. + + :param associated_subscriptions: The subscriptions associated with the notifications returned from the query + :type associated_subscriptions: list of :class:`Subscription ` + :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. + :type include_details: bool + :param max_created_date: Optional maximum date at which the notification was created + :type max_created_date: datetime + :param max_results: Optional maximum number of overall results to include + :type max_results: int + :param max_results_per_subscription: Optional maximum number of results for each subscription. Only takes effect when a list of subscription ids is supplied in the query. + :type max_results_per_subscription: int + :param min_created_date: Optional minimum date at which the notification was created + :type min_created_date: datetime + :param publisher_id: Optional publisher id to restrict the results to + :type publisher_id: str + :param results: Results from the query + :type results: list of :class:`Notification ` + :param result_type: Optional notification result type to filter results to + :type result_type: object + :param status: Optional notification status to filter results to + :type status: object + :param subscription_ids: Optional list of subscription ids to restrict the results to + :type subscription_ids: list of str + :param summary: Summary of notifications - the count of each result type (success, fail, ..). + :type summary: list of :class:`NotificationSummary ` + """ + + _attribute_map = { + 'associated_subscriptions': {'key': 'associatedSubscriptions', 'type': '[Subscription]'}, + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'max_created_date': {'key': 'maxCreatedDate', 'type': 'iso-8601'}, + 'max_results': {'key': 'maxResults', 'type': 'int'}, + 'max_results_per_subscription': {'key': 'maxResultsPerSubscription', 'type': 'int'}, + 'min_created_date': {'key': 'minCreatedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[Notification]'}, + 'result_type': {'key': 'resultType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscription_ids': {'key': 'subscriptionIds', 'type': '[str]'}, + 'summary': {'key': 'summary', 'type': '[NotificationSummary]'} + } + + def __init__(self, associated_subscriptions=None, include_details=None, max_created_date=None, max_results=None, max_results_per_subscription=None, min_created_date=None, publisher_id=None, results=None, result_type=None, status=None, subscription_ids=None, summary=None): + super(NotificationsQuery, self).__init__() + self.associated_subscriptions = associated_subscriptions + self.include_details = include_details + self.max_created_date = max_created_date + self.max_results = max_results + self.max_results_per_subscription = max_results_per_subscription + self.min_created_date = min_created_date + self.publisher_id = publisher_id + self.results = results + self.result_type = result_type + self.status = status + self.subscription_ids = subscription_ids + self.summary = summary diff --git a/vsts/vsts/service_hooks/v4_1/models/publisher.py b/vsts/vsts/service_hooks/v4_1/models/publisher.py new file mode 100644 index 00000000..065981f8 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/publisher.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Publisher(Model): + """Publisher. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param description: Gets this publisher's localized description. + :type description: str + :param id: Gets this publisher's identifier. + :type id: str + :param input_descriptors: Publisher-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets this publisher's localized name. + :type name: str + :param service_instance_type: The service instance type of the first party publisher. + :type service_instance_type: str + :param supported_events: Gets this publisher's supported event types. + :type supported_events: list of :class:`EventTypeDescriptor ` + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'supported_events': {'key': 'supportedEvents', 'type': '[EventTypeDescriptor]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, input_descriptors=None, name=None, service_instance_type=None, supported_events=None, url=None): + super(Publisher, self).__init__() + self._links = _links + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.service_instance_type = service_instance_type + self.supported_events = supported_events + self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/publisher_event.py b/vsts/vsts/service_hooks/v4_1/models/publisher_event.py new file mode 100644 index 00000000..56ceb122 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/publisher_event.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherEvent(Model): + """PublisherEvent. + + :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. + :type diagnostics: dict + :param event: The event being published + :type event: :class:`Event ` + :param other_resource_versions: Gets or sets the array of older supported resource versions. + :type other_resource_versions: list of :class:`VersionedResource ` + :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event + :type publisher_input_filters: list of :class:`InputFilter ` + :param subscription: Gets or sets matchd hooks subscription which caused this event. + :type subscription: :class:`Subscription ` + """ + + _attribute_map = { + 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'subscription': {'key': 'subscription', 'type': 'Subscription'} + } + + def __init__(self, diagnostics=None, event=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): + super(PublisherEvent, self).__init__() + self.diagnostics = diagnostics + self.event = event + self.other_resource_versions = other_resource_versions + self.publisher_input_filters = publisher_input_filters + self.subscription = subscription diff --git a/vsts/vsts/service_hooks/v4_1/models/publishers_query.py b/vsts/vsts/service_hooks/v4_1/models/publishers_query.py new file mode 100644 index 00000000..27ace09c --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/publishers_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishersQuery(Model): + """PublishersQuery. + + :param publisher_ids: Optional list of publisher ids to restrict the results to + :type publisher_ids: list of str + :param publisher_inputs: Filter for publisher inputs + :type publisher_inputs: dict + :param results: Results from the query + :type results: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publisher_ids': {'key': 'publisherIds', 'type': '[str]'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'results': {'key': 'results', 'type': '[Publisher]'} + } + + def __init__(self, publisher_ids=None, publisher_inputs=None, results=None): + super(PublishersQuery, self).__init__() + self.publisher_ids = publisher_ids + self.publisher_inputs = publisher_inputs + self.results = results diff --git a/vsts/vsts/service_hooks/v4_1/models/reference_links.py b/vsts/vsts/service_hooks/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/service_hooks/v4_1/models/resource_container.py b/vsts/vsts/service_hooks/v4_1/models/resource_container.py new file mode 100644 index 00000000..593a8f5d --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/resource_container.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResourceContainer(Model): + """ResourceContainer. + + :param base_url: Gets or sets the container's base URL, i.e. the URL of the host (collection, application, or deploument) containing the container resource. + :type base_url: str + :param id: Gets or sets the container's specific Id. + :type id: str + :param name: Gets or sets the container's name. + :type name: str + :param url: Gets or sets the container's REST API URL. + :type url: str + """ + + _attribute_map = { + 'base_url': {'key': 'baseUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, base_url=None, id=None, name=None, url=None): + super(ResourceContainer, self).__init__() + self.base_url = base_url + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/session_token.py b/vsts/vsts/service_hooks/v4_1/models/session_token.py new file mode 100644 index 00000000..4f2df67f --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/session_token.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SessionToken(Model): + """SessionToken. + + :param error: The error message in case of error + :type error: str + :param token: The access token + :type token: str + :param valid_to: The expiration date in UTC + :type valid_to: datetime + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} + } + + def __init__(self, error=None, token=None, valid_to=None): + super(SessionToken, self).__init__() + self.error = error + self.token = token + self.valid_to = valid_to diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription.py b/vsts/vsts/service_hooks/v4_1/models/subscription.py new file mode 100644 index 00000000..1991f641 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/subscription.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Subscription(Model): + """Subscription. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param action_description: + :type action_description: str + :param consumer_action_id: + :type consumer_action_id: str + :param consumer_id: + :type consumer_id: str + :param consumer_inputs: Consumer input values + :type consumer_inputs: dict + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_date: + :type created_date: datetime + :param event_description: + :type event_description: str + :param event_type: + :type event_type: str + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_date: + :type modified_date: datetime + :param probation_retries: + :type probation_retries: number + :param publisher_id: + :type publisher_id: str + :param publisher_inputs: Publisher input values + :type publisher_inputs: dict + :param resource_version: + :type resource_version: str + :param status: + :type status: object + :param subscriber: + :type subscriber: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'action_description': {'key': 'actionDescription', 'type': 'str'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'event_description': {'key': 'eventDescription', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'number'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, action_description=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, created_by=None, created_date=None, event_description=None, event_type=None, id=None, modified_by=None, modified_date=None, probation_retries=None, publisher_id=None, publisher_inputs=None, resource_version=None, status=None, subscriber=None, url=None): + super(Subscription, self).__init__() + self._links = _links + self.action_description = action_description + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.created_by = created_by + self.created_date = created_date + self.event_description = event_description + self.event_type = event_type + self.id = id + self.modified_by = modified_by + self.modified_date = modified_date + self.probation_retries = probation_retries + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.resource_version = resource_version + self.status = status + self.subscriber = subscriber + self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py b/vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py new file mode 100644 index 00000000..262e8bec --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionsQuery(Model): + """SubscriptionsQuery. + + :param consumer_action_id: Optional consumer action id to restrict the results to (null for any) + :type consumer_action_id: str + :param consumer_id: Optional consumer id to restrict the results to (null for any) + :type consumer_id: str + :param consumer_input_filters: Filter for subscription consumer inputs + :type consumer_input_filters: list of :class:`InputFilter ` + :param event_type: Optional event type id to restrict the results to (null for any) + :type event_type: str + :param publisher_id: Optional publisher id to restrict the results to (null for any) + :type publisher_id: str + :param publisher_input_filters: Filter for subscription publisher inputs + :type publisher_input_filters: list of :class:`InputFilter ` + :param results: Results from the query + :type results: list of :class:`Subscription ` + :param subscriber_id: Optional subscriber filter. + :type subscriber_id: str + """ + + _attribute_map = { + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_input_filters': {'key': 'consumerInputFilters', 'type': '[InputFilter]'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'results': {'key': 'results', 'type': '[Subscription]'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'} + } + + def __init__(self, consumer_action_id=None, consumer_id=None, consumer_input_filters=None, event_type=None, publisher_id=None, publisher_input_filters=None, results=None, subscriber_id=None): + super(SubscriptionsQuery, self).__init__() + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_input_filters = consumer_input_filters + self.event_type = event_type + self.publisher_id = publisher_id + self.publisher_input_filters = publisher_input_filters + self.results = results + self.subscriber_id = subscriber_id diff --git a/vsts/vsts/service_hooks/v4_1/models/versioned_resource.py b/vsts/vsts/service_hooks/v4_1/models/versioned_resource.py new file mode 100644 index 00000000..c55dbd04 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/versioned_resource.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VersionedResource(Model): + """VersionedResource. + + :param compatible_with: Gets or sets the reference to the compatible version. + :type compatible_with: str + :param resource: Gets or sets the resource data. + :type resource: object + :param resource_version: Gets or sets the version of the resource data. + :type resource_version: str + """ + + _attribute_map = { + 'compatible_with': {'key': 'compatibleWith', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'} + } + + def __init__(self, compatible_with=None, resource=None, resource_version=None): + super(VersionedResource, self).__init__() + self.compatible_with = compatible_with + self.resource = resource + self.resource_version = resource_version diff --git a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py new file mode 100644 index 00000000..cd0e3349 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py @@ -0,0 +1,371 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ServiceHooksClient(VssClient): + """ServiceHooks + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ServiceHooksClient, 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_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None): + """GetConsumerAction. + [Preview API] Get details about a specific consumer action. + :param str consumer_id: ID for a consumer. + :param str consumer_action_id: ID for a consumerActionId. + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + if consumer_action_id is not None: + route_values['consumerActionId'] = self._serialize.url('consumer_action_id', consumer_action_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ConsumerAction', response) + + def list_consumer_actions(self, consumer_id, publisher_id=None): + """ListConsumerActions. + [Preview API] Get a list of consumer actions for a specific consumer. + :param str consumer_id: ID for a consumer. + :param str publisher_id: + :rtype: [ConsumerAction] + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ConsumerAction]', response) + + def get_consumer(self, consumer_id, publisher_id=None): + """GetConsumer. + [Preview API] Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. + :param str consumer_id: ID for a consumer. + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Consumer', response) + + def list_consumers(self, publisher_id=None): + """ListConsumers. + [Preview API] Get a list of available service hook consumer services. Optionally filter by consumers that support at least one event type from the specific publisher. + :param str publisher_id: + :rtype: [Consumer] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Consumer]', response) + + def get_event_type(self, publisher_id, event_type_id): + """GetEventType. + [Preview API] Get a specific event type. + :param str publisher_id: ID for a publisher. + :param str event_type_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + if event_type_id is not None: + route_values['eventTypeId'] = self._serialize.url('event_type_id', event_type_id, 'str') + response = self._send(http_method='GET', + location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('EventTypeDescriptor', response) + + def list_event_types(self, publisher_id): + """ListEventTypes. + [Preview API] Get the event types for a specific publisher. + :param str publisher_id: ID for a publisher. + :rtype: [EventTypeDescriptor] + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[EventTypeDescriptor]', response) + + def get_notification(self, subscription_id, notification_id): + """GetNotification. + [Preview API] Get a specific notification for a subscription. + :param str subscription_id: ID for a subscription. + :param int notification_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + if notification_id is not None: + route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') + response = self._send(http_method='GET', + location_id='0c62d343-21b0-4732-997b-017fde84dc28', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Notification', response) + + def get_notifications(self, subscription_id, max_results=None, status=None, result=None): + """GetNotifications. + [Preview API] Get a list of notifications for a specific subscription. A notification includes details about the event, the request to and the response from the consumer service. + :param str subscription_id: ID for a subscription. + :param int max_results: Maximum number of notifications to return. Default is **100**. + :param str status: Get only notifications with this status. + :param str result: Get only notifications with this result type. + :rtype: [Notification] + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + query_parameters = {} + if max_results is not None: + query_parameters['maxResults'] = self._serialize.query('max_results', max_results, 'int') + if status is not None: + query_parameters['status'] = self._serialize.query('status', status, 'str') + if result is not None: + query_parameters['result'] = self._serialize.query('result', result, 'str') + response = self._send(http_method='GET', + location_id='0c62d343-21b0-4732-997b-017fde84dc28', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Notification]', response) + + def query_notifications(self, query): + """QueryNotifications. + [Preview API] Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'NotificationsQuery') + response = self._send(http_method='POST', + location_id='1a57562f-160a-4b5c-9185-905e95b39d36', + version='4.1-preview.1', + content=content) + return self._deserialize('NotificationsQuery', response) + + def query_input_values(self, input_values_query, publisher_id): + """QueryInputValues. + [Preview API] + :param :class:` ` input_values_query: + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + content = self._serialize.body(input_values_query, 'InputValuesQuery') + response = self._send(http_method='POST', + location_id='d815d352-a566-4dc1-a3e3-fd245acf688c', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('InputValuesQuery', response) + + def get_publisher(self, publisher_id): + """GetPublisher. + [Preview API] Get a specific service hooks publisher. + :param str publisher_id: ID for a publisher. + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Publisher', response) + + def list_publishers(self): + """ListPublishers. + [Preview API] Get a list of publishers. + :rtype: [Publisher] + """ + response = self._send(http_method='GET', + location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[Publisher]', response) + + def query_publishers(self, query): + """QueryPublishers. + [Preview API] Query for service hook publishers. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'PublishersQuery') + response = self._send(http_method='POST', + location_id='99b44a8a-65a8-4670-8f3e-e7f7842cce64', + version='4.1-preview.1', + content=content) + return self._deserialize('PublishersQuery', response) + + def create_subscription(self, subscription): + """CreateSubscription. + [Preview API] Create a subscription. + :param :class:` ` subscription: Subscription to be created. + :rtype: :class:` ` + """ + content = self._serialize.body(subscription, 'Subscription') + response = self._send(http_method='POST', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.1-preview.1', + content=content) + return self._deserialize('Subscription', response) + + def delete_subscription(self, subscription_id): + """DeleteSubscription. + [Preview API] Delete a specific service hooks subscription. + :param str subscription_id: ID for a subscription. + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + self._send(http_method='DELETE', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.1-preview.1', + route_values=route_values) + + def get_subscription(self, subscription_id): + """GetSubscription. + [Preview API] Get a specific service hooks subscription. + :param str subscription_id: ID for a subscription. + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + response = self._send(http_method='GET', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Subscription', response) + + def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=None, consumer_action_id=None): + """ListSubscriptions. + [Preview API] Get a list of subscriptions. + :param str publisher_id: ID for a subscription. + :param str event_type: Maximum number of notifications to return. Default is 100. + :param str consumer_id: ID for a consumer. + :param str consumer_action_id: ID for a consumerActionId. + :rtype: [Subscription] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + if event_type is not None: + query_parameters['eventType'] = self._serialize.query('event_type', event_type, 'str') + if consumer_id is not None: + query_parameters['consumerId'] = self._serialize.query('consumer_id', consumer_id, 'str') + if consumer_action_id is not None: + query_parameters['consumerActionId'] = self._serialize.query('consumer_action_id', consumer_action_id, 'str') + response = self._send(http_method='GET', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Subscription]', response) + + def replace_subscription(self, subscription, subscription_id=None): + """ReplaceSubscription. + [Preview API] Update a subscription. ID for a subscription that you wish to update. + :param :class:` ` subscription: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(subscription, 'Subscription') + response = self._send(http_method='PUT', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Subscription', response) + + def create_subscriptions_query(self, query): + """CreateSubscriptionsQuery. + [Preview API] Query for service hook subscriptions. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'SubscriptionsQuery') + response = self._send(http_method='POST', + location_id='c7c3c1cf-9e05-4c0d-a425-a0f922c2c6ed', + version='4.1-preview.1', + content=content) + return self._deserialize('SubscriptionsQuery', response) + + def create_test_notification(self, test_notification, use_real_data=None): + """CreateTestNotification. + [Preview API] Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. + :param :class:` ` test_notification: + :param bool use_real_data: Only allow testing with real data in existing subscriptions. + :rtype: :class:` ` + """ + query_parameters = {} + if use_real_data is not None: + query_parameters['useRealData'] = self._serialize.query('use_real_data', use_real_data, 'bool') + content = self._serialize.body(test_notification, 'Notification') + response = self._send(http_method='POST', + location_id='1139462c-7e27-4524-a997-31b9b73551fe', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('Notification', response) + diff --git a/vsts/vsts/task/v4_1/__init__.py b/vsts/vsts/task/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/task/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task/v4_1/models/__init__.py b/vsts/vsts/task/v4_1/models/__init__.py new file mode 100644 index 00000000..f21600b9 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/__init__.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .issue import Issue +from .job_option import JobOption +from .mask_hint import MaskHint +from .plan_environment import PlanEnvironment +from .project_reference import ProjectReference +from .reference_links import ReferenceLinks +from .task_attachment import TaskAttachment +from .task_log import TaskLog +from .task_log_reference import TaskLogReference +from .task_orchestration_container import TaskOrchestrationContainer +from .task_orchestration_item import TaskOrchestrationItem +from .task_orchestration_owner import TaskOrchestrationOwner +from .task_orchestration_plan import TaskOrchestrationPlan +from .task_orchestration_plan_groups_queue_metrics import TaskOrchestrationPlanGroupsQueueMetrics +from .task_orchestration_plan_reference import TaskOrchestrationPlanReference +from .task_orchestration_queued_plan import TaskOrchestrationQueuedPlan +from .task_orchestration_queued_plan_group import TaskOrchestrationQueuedPlanGroup +from .task_reference import TaskReference +from .timeline import Timeline +from .timeline_record import TimelineRecord +from .timeline_reference import TimelineReference +from .variable_value import VariableValue + +__all__ = [ + 'Issue', + 'JobOption', + 'MaskHint', + 'PlanEnvironment', + 'ProjectReference', + 'ReferenceLinks', + 'TaskAttachment', + 'TaskLog', + 'TaskLogReference', + 'TaskOrchestrationContainer', + 'TaskOrchestrationItem', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlan', + 'TaskOrchestrationPlanGroupsQueueMetrics', + 'TaskOrchestrationPlanReference', + 'TaskOrchestrationQueuedPlan', + 'TaskOrchestrationQueuedPlanGroup', + 'TaskReference', + 'Timeline', + 'TimelineRecord', + 'TimelineReference', + 'VariableValue', +] diff --git a/vsts/vsts/task/v4_1/models/issue.py b/vsts/vsts/task/v4_1/models/issue.py new file mode 100644 index 00000000..02b96b6e --- /dev/null +++ b/vsts/vsts/task/v4_1/models/issue.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Issue(Model): + """Issue. + + :param category: + :type category: str + :param data: + :type data: dict + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, category=None, data=None, message=None, type=None): + super(Issue, self).__init__() + self.category = category + self.data = data + self.message = message + self.type = type diff --git a/vsts/vsts/task/v4_1/models/job_option.py b/vsts/vsts/task/v4_1/models/job_option.py new file mode 100644 index 00000000..223a3167 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/job_option.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JobOption(Model): + """JobOption. + + :param data: + :type data: dict + :param id: Gets the id of the option. + :type id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, data=None, id=None): + super(JobOption, self).__init__() + self.data = data + self.id = id diff --git a/vsts/vsts/task/v4_1/models/mask_hint.py b/vsts/vsts/task/v4_1/models/mask_hint.py new file mode 100644 index 00000000..9fa07965 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/mask_hint.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MaskHint(Model): + """MaskHint. + + :param type: + :type type: object + :param value: + :type value: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, type=None, value=None): + super(MaskHint, self).__init__() + self.type = type + self.value = value diff --git a/vsts/vsts/task/v4_1/models/plan_environment.py b/vsts/vsts/task/v4_1/models/plan_environment.py new file mode 100644 index 00000000..c39fc3a5 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/plan_environment.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PlanEnvironment(Model): + """PlanEnvironment. + + :param mask: + :type mask: list of :class:`MaskHint ` + :param options: + :type options: dict + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'mask': {'key': 'mask', 'type': '[MaskHint]'}, + 'options': {'key': 'options', 'type': '{JobOption}'}, + 'variables': {'key': 'variables', 'type': '{str}'} + } + + def __init__(self, mask=None, options=None, variables=None): + super(PlanEnvironment, self).__init__() + self.mask = mask + self.options = options + self.variables = variables diff --git a/vsts/vsts/task/v4_1/models/project_reference.py b/vsts/vsts/task/v4_1/models/project_reference.py new file mode 100644 index 00000000..8fd6ad8e --- /dev/null +++ b/vsts/vsts/task/v4_1/models/project_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/task/v4_1/models/reference_links.py b/vsts/vsts/task/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/task/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/task/v4_1/models/task_attachment.py b/vsts/vsts/task/v4_1/models/task_attachment.py new file mode 100644 index 00000000..8ac213bc --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_attachment.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAttachment(Model): + """TaskAttachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_on: + :type created_on: datetime + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param name: + :type name: str + :param record_id: + :type record_id: str + :param timeline_id: + :type timeline_id: str + :param type: + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, last_changed_by=None, last_changed_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(TaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type diff --git a/vsts/vsts/task/v4_1/models/task_log.py b/vsts/vsts/task/v4_1/models/task_log.py new file mode 100644 index 00000000..491146e9 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_log.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_log_reference import TaskLogReference + + +class TaskLog(TaskLogReference): + """TaskLog. + + :param id: + :type id: int + :param location: + :type location: str + :param created_on: + :type created_on: datetime + :param index_location: + :type index_location: str + :param last_changed_on: + :type last_changed_on: datetime + :param line_count: + :type line_count: long + :param path: + :type path: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'index_location': {'key': 'indexLocation', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, id=None, location=None, created_on=None, index_location=None, last_changed_on=None, line_count=None, path=None): + super(TaskLog, self).__init__(id=id, location=location) + self.created_on = created_on + self.index_location = index_location + self.last_changed_on = last_changed_on + self.line_count = line_count + self.path = path diff --git a/vsts/vsts/task/v4_1/models/task_log_reference.py b/vsts/vsts/task/v4_1/models/task_log_reference.py new file mode 100644 index 00000000..f544e25e --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_log_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskLogReference(Model): + """TaskLogReference. + + :param id: + :type id: int + :param location: + :type location: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, id=None, location=None): + super(TaskLogReference, self).__init__() + self.id = id + self.location = location diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_container.py b/vsts/vsts/task/v4_1/models/task_orchestration_container.py new file mode 100644 index 00000000..6e091970 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_container.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_orchestration_item import TaskOrchestrationItem + + +class TaskOrchestrationContainer(TaskOrchestrationItem): + """TaskOrchestrationContainer. + + :param item_type: + :type item_type: object + :param children: + :type children: list of :class:`TaskOrchestrationItem ` + :param continue_on_error: + :type continue_on_error: bool + :param data: + :type data: dict + :param max_concurrency: + :type max_concurrency: int + :param parallel: + :type parallel: bool + :param rollback: + :type rollback: :class:`TaskOrchestrationContainer ` + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'}, + 'children': {'key': 'children', 'type': '[TaskOrchestrationItem]'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'max_concurrency': {'key': 'maxConcurrency', 'type': 'int'}, + 'parallel': {'key': 'parallel', 'type': 'bool'}, + 'rollback': {'key': 'rollback', 'type': 'TaskOrchestrationContainer'} + } + + def __init__(self, item_type=None, children=None, continue_on_error=None, data=None, max_concurrency=None, parallel=None, rollback=None): + super(TaskOrchestrationContainer, self).__init__(item_type=item_type) + self.children = children + self.continue_on_error = continue_on_error + self.data = data + self.max_concurrency = max_concurrency + self.parallel = parallel + self.rollback = rollback diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_item.py b/vsts/vsts/task/v4_1/models/task_orchestration_item.py new file mode 100644 index 00000000..e65ab5e6 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_item.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationItem(Model): + """TaskOrchestrationItem. + + :param item_type: + :type item_type: object + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'} + } + + def __init__(self, item_type=None): + super(TaskOrchestrationItem, self).__init__() + self.item_type = item_type diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_owner.py b/vsts/vsts/task/v4_1/models/task_orchestration_owner.py new file mode 100644 index 00000000..c7831775 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_owner.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_plan.py b/vsts/vsts/task/v4_1/models/task_orchestration_plan.py new file mode 100644 index 00000000..0f888ae5 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_plan.py @@ -0,0 +1,88 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_orchestration_plan_reference import TaskOrchestrationPlanReference + + +class TaskOrchestrationPlan(TaskOrchestrationPlanReference): + """TaskOrchestrationPlan. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + :param environment: + :type environment: :class:`PlanEnvironment ` + :param finish_time: + :type finish_time: datetime + :param implementation: + :type implementation: :class:`TaskOrchestrationContainer ` + :param requested_by_id: + :type requested_by_id: str + :param requested_for_id: + :type requested_for_id: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param timeline: + :type timeline: :class:`TimelineReference ` + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, + 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, + 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): + super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_group=plan_group, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) + self.environment = environment + self.finish_time = finish_time + self.implementation = implementation + self.requested_by_id = requested_by_id + self.requested_for_id = requested_for_id + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.timeline = timeline diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py b/vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py new file mode 100644 index 00000000..90bcfd29 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationPlanGroupsQueueMetrics(Model): + """TaskOrchestrationPlanGroupsQueueMetrics. + + :param count: + :type count: int + :param status: + :type status: object + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, count=None, status=None): + super(TaskOrchestrationPlanGroupsQueueMetrics, self).__init__() + self.count = count + self.status = status diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py b/vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py new file mode 100644 index 00000000..9dd58580 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationPlanReference(Model): + """TaskOrchestrationPlanReference. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): + super(TaskOrchestrationPlanReference, self).__init__() + self.artifact_location = artifact_location + self.artifact_uri = artifact_uri + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.plan_type = plan_type + self.scope_identifier = scope_identifier + self.version = version diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py b/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py new file mode 100644 index 00000000..e6d8ee60 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationQueuedPlan(Model): + """TaskOrchestrationQueuedPlan. + + :param assign_time: + :type assign_time: datetime + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param pool_id: + :type pool_id: int + :param queue_position: + :type queue_position: int + :param queue_time: + :type queue_time: datetime + :param scope_identifier: + :type scope_identifier: str + """ + + _attribute_map = { + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'pool_id': {'key': 'poolId', 'type': 'int'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'} + } + + def __init__(self, assign_time=None, definition=None, owner=None, plan_group=None, plan_id=None, pool_id=None, queue_position=None, queue_time=None, scope_identifier=None): + super(TaskOrchestrationQueuedPlan, self).__init__() + self.assign_time = assign_time + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.pool_id = pool_id + self.queue_position = queue_position + self.queue_time = queue_time + self.scope_identifier = scope_identifier diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py b/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py new file mode 100644 index 00000000..1c0219a5 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py @@ -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.serialization import Model + + +class TaskOrchestrationQueuedPlanGroup(Model): + """TaskOrchestrationQueuedPlanGroup. + + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plans: + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :param project: + :type project: :class:`ProjectReference ` + :param queue_position: + :type queue_position: int + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plans': {'key': 'plans', 'type': '[TaskOrchestrationQueuedPlan]'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'} + } + + def __init__(self, definition=None, owner=None, plan_group=None, plans=None, project=None, queue_position=None): + super(TaskOrchestrationQueuedPlanGroup, self).__init__() + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plans = plans + self.project = project + self.queue_position = queue_position diff --git a/vsts/vsts/task/v4_1/models/task_reference.py b/vsts/vsts/task/v4_1/models/task_reference.py new file mode 100644 index 00000000..3ff1dd7b --- /dev/null +++ b/vsts/vsts/task/v4_1/models/task_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version diff --git a/vsts/vsts/task/v4_1/models/timeline.py b/vsts/vsts/task/v4_1/models/timeline.py new file mode 100644 index 00000000..c4f9f1b3 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/timeline.py @@ -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 .timeline_reference import TimelineReference + + +class Timeline(TimelineReference): + """Timeline. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param records: + :type records: list of :class:`TimelineRecord ` + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'records': {'key': 'records', 'type': '[TimelineRecord]'} + } + + def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, last_changed_on=None, records=None): + super(Timeline, self).__init__(change_id=change_id, id=id, location=location) + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.records = records diff --git a/vsts/vsts/task/v4_1/models/timeline_record.py b/vsts/vsts/task/v4_1/models/timeline_record.py new file mode 100644 index 00000000..455e8bf0 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/timeline_record.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineRecord(Model): + """TimelineRecord. + + :param change_id: + :type change_id: int + :param current_operation: + :type current_operation: str + :param details: + :type details: :class:`TimelineReference ` + :param error_count: + :type error_count: int + :param finish_time: + :type finish_time: datetime + :param id: + :type id: str + :param issues: + :type issues: list of :class:`Issue ` + :param last_modified: + :type last_modified: datetime + :param location: + :type location: str + :param log: + :type log: :class:`TaskLogReference ` + :param name: + :type name: str + :param order: + :type order: int + :param parent_id: + :type parent_id: str + :param percent_complete: + :type percent_complete: int + :param ref_name: + :type ref_name: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param task: + :type task: :class:`TaskReference ` + :param type: + :type type: str + :param variables: + :type variables: dict + :param warning_count: + :type warning_count: int + :param worker_name: + :type worker_name: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'current_operation': {'key': 'currentOperation', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'TimelineReference'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'location': {'key': 'location', 'type': 'str'}, + 'log': {'key': 'log', 'type': 'TaskLogReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'TaskReference'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'}, + 'worker_name': {'key': 'workerName', 'type': 'str'} + } + + def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): + super(TimelineRecord, self).__init__() + self.change_id = change_id + self.current_operation = current_operation + self.details = details + self.error_count = error_count + self.finish_time = finish_time + self.id = id + self.issues = issues + self.last_modified = last_modified + self.location = location + self.log = log + self.name = name + self.order = order + self.parent_id = parent_id + self.percent_complete = percent_complete + self.ref_name = ref_name + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.task = task + self.type = type + self.variables = variables + self.warning_count = warning_count + self.worker_name = worker_name diff --git a/vsts/vsts/task/v4_1/models/timeline_reference.py b/vsts/vsts/task/v4_1/models/timeline_reference.py new file mode 100644 index 00000000..8755a8c4 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/timeline_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineReference(Model): + """TimelineReference. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, change_id=None, id=None, location=None): + super(TimelineReference, self).__init__() + self.change_id = change_id + self.id = id + self.location = location diff --git a/vsts/vsts/task/v4_1/models/variable_value.py b/vsts/vsts/task/v4_1/models/variable_value.py new file mode 100644 index 00000000..035049c0 --- /dev/null +++ b/vsts/vsts/task/v4_1/models/variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/task/v4_1/task_client.py b/vsts/vsts/task/v4_1/task_client.py new file mode 100644 index 00000000..c15c8639 --- /dev/null +++ b/vsts/vsts/task/v4_1/task_client.py @@ -0,0 +1,451 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TaskClient(VssClient): + """Task + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TaskClient, 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_plan_attachments(self, scope_identifier, hub_name, plan_id, type): + """GetPlanAttachments. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str type: + :rtype: [TaskAttachment] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='eb55e5d6-2f30-4295-b5ed-38da50b1fc52', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskAttachment]', response) + + def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + """CreateAttachment. + [Preview API] + :param object upload_stream: Stream to upload + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('TaskAttachment', response) + + def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + """GetAttachment. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TaskAttachment', response) + + def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + """GetAttachmentContent. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: object + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type): + """GetAttachments. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :rtype: [TaskAttachment] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='7898f959-9cdf-4096-b29e-7f293031629e', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskAttachment]', response) + + def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id): + """AppendLogContent. + [Preview API] + :param object upload_stream: Stream to upload + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param int log_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('TaskLog', response) + + def create_log(self, log, scope_identifier, hub_name, plan_id): + """CreateLog. + [Preview API] + :param :class:` ` log: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + content = self._serialize.body(log, 'TaskLog') + response = self._send(http_method='POST', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskLog', response) + + def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, end_line=None): + """GetLog. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param int log_id: + :param long start_line: + :param long end_line: + :rtype: [str] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_logs(self, scope_identifier, hub_name, plan_id): + """GetLogs. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: [TaskLog] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskLog]', response) + + def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None): + """GetRecords. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param int change_id: + :rtype: [TimelineRecord] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + query_parameters = {} + if change_id is not None: + query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') + response = self._send(http_method='GET', + location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TimelineRecord]', response) + + def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): + """UpdateRecords. + [Preview API] + :param :class:` ` records: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :rtype: [TimelineRecord] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + content = self._serialize.body(records, 'VssJsonCollectionWrapper') + response = self._send(http_method='PATCH', + location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TimelineRecord]', response) + + def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): + """CreateTimeline. + [Preview API] + :param :class:` ` timeline: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + content = self._serialize.body(timeline, 'Timeline') + response = self._send(http_method='POST', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Timeline', response) + + def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): + """DeleteTimeline. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + self._send(http_method='DELETE', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.1-preview.1', + route_values=route_values) + + def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None, include_records=None): + """GetTimeline. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param int change_id: + :param bool include_records: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + query_parameters = {} + if change_id is not None: + query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') + if include_records is not None: + query_parameters['includeRecords'] = self._serialize.query('include_records', include_records, 'bool') + response = self._send(http_method='GET', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Timeline', response) + + def get_timelines(self, scope_identifier, hub_name, plan_id): + """GetTimelines. + [Preview API] + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: [Timeline] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[Timeline]', response) + diff --git a/vsts/vsts/task_agent/v4_1/__init__.py b/vsts/vsts/task_agent/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task_agent/v4_1/models/__init__.py b/vsts/vsts/task_agent/v4_1/models/__init__.py new file mode 100644 index 00000000..0d39ec76 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/__init__.py @@ -0,0 +1,203 @@ +# -------------------------------------------------------------------------------------------- +# 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 .aad_oauth_token_request import AadOauthTokenRequest +from .aad_oauth_token_result import AadOauthTokenResult +from .authentication_scheme_reference import AuthenticationSchemeReference +from .authorization_header import AuthorizationHeader +from .azure_subscription import AzureSubscription +from .azure_subscription_query_result import AzureSubscriptionQueryResult +from .data_source import DataSource +from .data_source_binding import DataSourceBinding +from .data_source_binding_base import DataSourceBindingBase +from .data_source_details import DataSourceDetails +from .dependency_binding import DependencyBinding +from .dependency_data import DependencyData +from .depends_on import DependsOn +from .deployment_group import DeploymentGroup +from .deployment_group_metrics import DeploymentGroupMetrics +from .deployment_group_reference import DeploymentGroupReference +from .deployment_machine import DeploymentMachine +from .deployment_machine_group import DeploymentMachineGroup +from .deployment_machine_group_reference import DeploymentMachineGroupReference +from .deployment_pool_summary import DeploymentPoolSummary +from .endpoint_authorization import EndpointAuthorization +from .endpoint_url import EndpointUrl +from .help_link import HelpLink +from .identity_ref import IdentityRef +from .input_descriptor import InputDescriptor +from .input_validation import InputValidation +from .input_validation_request import InputValidationRequest +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .metrics_column_meta_data import MetricsColumnMetaData +from .metrics_columns_header import MetricsColumnsHeader +from .metrics_row import MetricsRow +from .package_metadata import PackageMetadata +from .package_version import PackageVersion +from .project_reference import ProjectReference +from .publish_task_group_metadata import PublishTaskGroupMetadata +from .reference_links import ReferenceLinks +from .resource_usage import ResourceUsage +from .result_transformation_details import ResultTransformationDetails +from .secure_file import SecureFile +from .service_endpoint import ServiceEndpoint +from .service_endpoint_authentication_scheme import ServiceEndpointAuthenticationScheme +from .service_endpoint_details import ServiceEndpointDetails +from .service_endpoint_execution_data import ServiceEndpointExecutionData +from .service_endpoint_execution_record import ServiceEndpointExecutionRecord +from .service_endpoint_execution_records_input import ServiceEndpointExecutionRecordsInput +from .service_endpoint_request import ServiceEndpointRequest +from .service_endpoint_request_result import ServiceEndpointRequestResult +from .service_endpoint_type import ServiceEndpointType +from .task_agent import TaskAgent +from .task_agent_authorization import TaskAgentAuthorization +from .task_agent_delay_source import TaskAgentDelaySource +from .task_agent_job_request import TaskAgentJobRequest +from .task_agent_message import TaskAgentMessage +from .task_agent_pool import TaskAgentPool +from .task_agent_pool_maintenance_definition import TaskAgentPoolMaintenanceDefinition +from .task_agent_pool_maintenance_job import TaskAgentPoolMaintenanceJob +from .task_agent_pool_maintenance_job_target_agent import TaskAgentPoolMaintenanceJobTargetAgent +from .task_agent_pool_maintenance_options import TaskAgentPoolMaintenanceOptions +from .task_agent_pool_maintenance_retention_policy import TaskAgentPoolMaintenanceRetentionPolicy +from .task_agent_pool_maintenance_schedule import TaskAgentPoolMaintenanceSchedule +from .task_agent_pool_reference import TaskAgentPoolReference +from .task_agent_public_key import TaskAgentPublicKey +from .task_agent_queue import TaskAgentQueue +from .task_agent_reference import TaskAgentReference +from .task_agent_session import TaskAgentSession +from .task_agent_session_key import TaskAgentSessionKey +from .task_agent_update import TaskAgentUpdate +from .task_agent_update_reason import TaskAgentUpdateReason +from .task_definition import TaskDefinition +from .task_definition_endpoint import TaskDefinitionEndpoint +from .task_definition_reference import TaskDefinitionReference +from .task_execution import TaskExecution +from .task_group import TaskGroup +from .task_group_create_parameter import TaskGroupCreateParameter +from .task_group_definition import TaskGroupDefinition +from .task_group_revision import TaskGroupRevision +from .task_group_step import TaskGroupStep +from .task_group_update_parameter import TaskGroupUpdateParameter +from .task_hub_license_details import TaskHubLicenseDetails +from .task_input_definition import TaskInputDefinition +from .task_input_definition_base import TaskInputDefinitionBase +from .task_input_validation import TaskInputValidation +from .task_orchestration_owner import TaskOrchestrationOwner +from .task_orchestration_plan_group import TaskOrchestrationPlanGroup +from .task_output_variable import TaskOutputVariable +from .task_package_metadata import TaskPackageMetadata +from .task_reference import TaskReference +from .task_source_definition import TaskSourceDefinition +from .task_source_definition_base import TaskSourceDefinitionBase +from .task_version import TaskVersion +from .validation_item import ValidationItem +from .variable_group import VariableGroup +from .variable_group_provider_data import VariableGroupProviderData +from .variable_value import VariableValue + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'DeploymentGroup', + 'DeploymentGroupMetrics', + 'DeploymentGroupReference', + 'DeploymentMachine', + 'DeploymentMachineGroup', + 'DeploymentMachineGroupReference', + 'DeploymentPoolSummary', + 'EndpointAuthorization', + 'EndpointUrl', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValidationRequest', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'MetricsColumnMetaData', + 'MetricsColumnsHeader', + 'MetricsRow', + 'PackageMetadata', + 'PackageVersion', + 'ProjectReference', + 'PublishTaskGroupMetadata', + 'ReferenceLinks', + 'ResourceUsage', + 'ResultTransformationDetails', + 'SecureFile', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'TaskAgent', + 'TaskAgentAuthorization', + 'TaskAgentDelaySource', + 'TaskAgentJobRequest', + 'TaskAgentMessage', + 'TaskAgentPool', + 'TaskAgentPoolMaintenanceDefinition', + 'TaskAgentPoolMaintenanceJob', + 'TaskAgentPoolMaintenanceJobTargetAgent', + 'TaskAgentPoolMaintenanceOptions', + 'TaskAgentPoolMaintenanceRetentionPolicy', + 'TaskAgentPoolMaintenanceSchedule', + 'TaskAgentPoolReference', + 'TaskAgentPublicKey', + 'TaskAgentQueue', + 'TaskAgentReference', + 'TaskAgentSession', + 'TaskAgentSessionKey', + 'TaskAgentUpdate', + 'TaskAgentUpdateReason', + 'TaskDefinition', + 'TaskDefinitionEndpoint', + 'TaskDefinitionReference', + 'TaskExecution', + 'TaskGroup', + 'TaskGroupCreateParameter', + 'TaskGroupDefinition', + 'TaskGroupRevision', + 'TaskGroupStep', + 'TaskGroupUpdateParameter', + 'TaskHubLicenseDetails', + 'TaskInputDefinition', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlanGroup', + 'TaskOutputVariable', + 'TaskPackageMetadata', + 'TaskReference', + 'TaskSourceDefinition', + 'TaskSourceDefinitionBase', + 'TaskVersion', + 'ValidationItem', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', +] diff --git a/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py b/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py new file mode 100644 index 00000000..e5ad3183 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AadOauthTokenRequest(Model): + """AadOauthTokenRequest. + + :param refresh: + :type refresh: bool + :param resource: + :type resource: str + :param tenant_id: + :type tenant_id: str + :param token: + :type token: str + """ + + _attribute_map = { + 'refresh': {'key': 'refresh', 'type': 'bool'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, refresh=None, resource=None, tenant_id=None, token=None): + super(AadOauthTokenRequest, self).__init__() + self.refresh = refresh + self.resource = resource + self.tenant_id = tenant_id + self.token = token diff --git a/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py b/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py new file mode 100644 index 00000000..b3cd8c2e --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AadOauthTokenResult(Model): + """AadOauthTokenResult. + + :param access_token: + :type access_token: str + :param refresh_token_cache: + :type refresh_token_cache: str + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'} + } + + def __init__(self, access_token=None, refresh_token_cache=None): + super(AadOauthTokenResult, self).__init__() + self.access_token = access_token + self.refresh_token_cache = refresh_token_cache diff --git a/vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py b/vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py new file mode 100644 index 00000000..8dbe5a63 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AuthenticationSchemeReference(Model): + """AuthenticationSchemeReference. + + :param inputs: + :type inputs: dict + :param type: + :type type: str + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, inputs=None, type=None): + super(AuthenticationSchemeReference, self).__init__() + self.inputs = inputs + self.type = type diff --git a/vsts/vsts/task_agent/v4_1/models/authorization_header.py b/vsts/vsts/task_agent/v4_1/models/authorization_header.py new file mode 100644 index 00000000..015e6775 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/authorization_header.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/azure_subscription.py b/vsts/vsts/task_agent/v4_1/models/azure_subscription.py new file mode 100644 index 00000000..ffd4994d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/azure_subscription.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzureSubscription(Model): + """AzureSubscription. + + :param display_name: + :type display_name: str + :param subscription_id: + :type subscription_id: str + :param subscription_tenant_id: + :type subscription_tenant_id: str + :param subscription_tenant_name: + :type subscription_tenant_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, + 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} + } + + def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): + super(AzureSubscription, self).__init__() + self.display_name = display_name + self.subscription_id = subscription_id + self.subscription_tenant_id = subscription_tenant_id + self.subscription_tenant_name = subscription_tenant_name diff --git a/vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py b/vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py new file mode 100644 index 00000000..9af8f64a --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AzureSubscriptionQueryResult(Model): + """AzureSubscriptionQueryResult. + + :param error_message: + :type error_message: str + :param value: + :type value: list of :class:`AzureSubscription ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureSubscription]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureSubscriptionQueryResult, self).__init__() + self.error_message = error_message + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/data_source.py b/vsts/vsts/task_agent/v4_1/models/data_source.py new file mode 100644 index 00000000..c4a22dda --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/data_source.py @@ -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.serialization import Model + + +class DataSource(Model): + """DataSource. + + :param authentication_scheme: + :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param name: + :type name: str + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): + super(DataSource, self).__init__() + self.authentication_scheme = authentication_scheme + self.endpoint_url = endpoint_url + self.headers = headers + self.name = name + self.resource_url = resource_url + self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_binding.py b/vsts/vsts/task_agent/v4_1/models/data_source_binding.py new file mode 100644 index 00000000..65023c0d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/data_source_binding.py @@ -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 .data_source_binding_base import DataSourceBindingBase + + +class DataSourceBinding(DataSourceBindingBase): + """DataSourceBinding. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py b/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py new file mode 100644 index 00000000..fe92a446 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_details.py b/vsts/vsts/task_agent/v4_1/models/data_source_details.py new file mode 100644 index 00000000..268e2a09 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/data_source_details.py @@ -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.serialization import Model + + +class DataSourceDetails(Model): + """DataSourceDetails. + + :param data_source_name: + :type data_source_name: str + :param data_source_url: + :type data_source_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: + :type parameters: dict + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): + super(DataSourceDetails, self).__init__() + self.data_source_name = data_source_name + self.data_source_url = data_source_url + self.headers = headers + self.parameters = parameters + self.resource_url = resource_url + self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_1/models/dependency_binding.py b/vsts/vsts/task_agent/v4_1/models/dependency_binding.py new file mode 100644 index 00000000..e8eb3ac1 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/dependency_binding.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependencyBinding(Model): + """DependencyBinding. + + :param key: + :type key: str + :param value: + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, key=None, value=None): + super(DependencyBinding, self).__init__() + self.key = key + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/dependency_data.py b/vsts/vsts/task_agent/v4_1/models/dependency_data.py new file mode 100644 index 00000000..3faa1790 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/dependency_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependencyData(Model): + """DependencyData. + + :param input: + :type input: str + :param map: + :type map: list of { key: str; value: [{ key: str; value: str }] } + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} + } + + def __init__(self, input=None, map=None): + super(DependencyData, self).__init__() + self.input = input + self.map = map diff --git a/vsts/vsts/task_agent/v4_1/models/depends_on.py b/vsts/vsts/task_agent/v4_1/models/depends_on.py new file mode 100644 index 00000000..6528c212 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/depends_on.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependsOn(Model): + """DependsOn. + + :param input: + :type input: str + :param map: + :type map: list of :class:`DependencyBinding ` + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[DependencyBinding]'} + } + + def __init__(self, input=None, map=None): + super(DependsOn, self).__init__() + self.input = input + self.map = map diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group.py b/vsts/vsts/task_agent/v4_1/models/deployment_group.py new file mode 100644 index 00000000..9bcf9a9d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .deployment_group_reference import DeploymentGroupReference + + +class DeploymentGroup(DeploymentGroupReference): + """DeploymentGroup. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + :param description: + :type description: str + :param machine_count: + :type machine_count: int + :param machines: + :type machines: list of :class:`DeploymentMachine ` + :param machine_tags: + :type machine_tags: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'machine_count': {'key': 'machineCount', 'type': 'int'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'machine_tags': {'key': 'machineTags', 'type': '[str]'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, description=None, machine_count=None, machines=None, machine_tags=None): + super(DeploymentGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.description = description + self.machine_count = machine_count + self.machines = machines + self.machine_tags = machine_tags diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py new file mode 100644 index 00000000..6bdbfb74 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentGroupMetrics(Model): + """DeploymentGroupMetrics. + + :param columns_header: + :type columns_header: :class:`MetricsColumnsHeader ` + :param deployment_group: + :type deployment_group: :class:`DeploymentGroupReference ` + :param rows: + :type rows: list of :class:`MetricsRow ` + """ + + _attribute_map = { + 'columns_header': {'key': 'columnsHeader', 'type': 'MetricsColumnsHeader'}, + 'deployment_group': {'key': 'deploymentGroup', 'type': 'DeploymentGroupReference'}, + 'rows': {'key': 'rows', 'type': '[MetricsRow]'} + } + + def __init__(self, columns_header=None, deployment_group=None, rows=None): + super(DeploymentGroupMetrics, self).__init__() + self.columns_header = columns_header + self.deployment_group = deployment_group + self.rows = rows diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py new file mode 100644 index 00000000..ca94099d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentGroupReference(Model): + """DeploymentGroupReference. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_machine.py b/vsts/vsts/task_agent/v4_1/models/deployment_machine.py new file mode 100644 index 00000000..71af8f16 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_machine.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentMachine(Model): + """DeploymentMachine. + + :param agent: + :type agent: :class:`TaskAgent ` + :param id: + :type id: int + :param tags: + :type tags: list of str + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgent'}, + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, agent=None, id=None, tags=None): + super(DeploymentMachine, self).__init__() + self.agent = agent + self.id = id + self.tags = tags diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py b/vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py new file mode 100644 index 00000000..56c2c9aa --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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 .deployment_machine_group_reference import DeploymentMachineGroupReference + + +class DeploymentMachineGroup(DeploymentMachineGroupReference): + """DeploymentMachineGroup. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + :param machines: + :type machines: list of :class:`DeploymentMachine ` + :param size: + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, machines=None, size=None): + super(DeploymentMachineGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.machines = machines + self.size = size diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py b/vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py new file mode 100644 index 00000000..9af86b4f --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentMachineGroupReference(Model): + """DeploymentMachineGroupReference. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentMachineGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py b/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py new file mode 100644 index 00000000..7401d3b9 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentPoolSummary(Model): + """DeploymentPoolSummary. + + :param deployment_groups: + :type deployment_groups: list of :class:`DeploymentGroupReference ` + :param offline_agents_count: + :type offline_agents_count: int + :param online_agents_count: + :type online_agents_count: int + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + """ + + _attribute_map = { + 'deployment_groups': {'key': 'deploymentGroups', 'type': '[DeploymentGroupReference]'}, + 'offline_agents_count': {'key': 'offlineAgentsCount', 'type': 'int'}, + 'online_agents_count': {'key': 'onlineAgentsCount', 'type': 'int'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'} + } + + def __init__(self, deployment_groups=None, offline_agents_count=None, online_agents_count=None, pool=None): + super(DeploymentPoolSummary, self).__init__() + self.deployment_groups = deployment_groups + self.offline_agents_count = offline_agents_count + self.online_agents_count = online_agents_count + self.pool = pool diff --git a/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py b/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py new file mode 100644 index 00000000..5a8f642c --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EndpointAuthorization(Model): + """EndpointAuthorization. + + :param parameters: + :type parameters: dict + :param scheme: + :type scheme: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, parameters=None, scheme=None): + super(EndpointAuthorization, self).__init__() + self.parameters = parameters + self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_1/models/endpoint_url.py b/vsts/vsts/task_agent/v4_1/models/endpoint_url.py new file mode 100644 index 00000000..62161498 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/endpoint_url.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EndpointUrl(Model): + """EndpointUrl. + + :param depends_on: + :type depends_on: :class:`DependsOn ` + :param display_name: + :type display_name: str + :param help_text: + :type help_text: str + :param is_visible: + :type is_visible: str + :param value: + :type value: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'is_visible': {'key': 'isVisible', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): + super(EndpointUrl, self).__init__() + self.depends_on = depends_on + self.display_name = display_name + self.help_text = help_text + self.is_visible = is_visible + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/help_link.py b/vsts/vsts/task_agent/v4_1/models/help_link.py new file mode 100644 index 00000000..b48e4910 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/help_link.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class HelpLink(Model): + """HelpLink. + + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, text=None, url=None): + super(HelpLink, self).__init__() + self.text = text + self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/identity_ref.py b/vsts/vsts/task_agent/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/input_descriptor.py b/vsts/vsts/task_agent/v4_1/models/input_descriptor.py new file mode 100644 index 00000000..da334836 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/input_descriptor.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values diff --git a/vsts/vsts/task_agent/v4_1/models/input_validation.py b/vsts/vsts/task_agent/v4_1/models/input_validation.py new file mode 100644 index 00000000..f2f1a434 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/input_validation.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/task_agent/v4_1/models/input_validation_request.py b/vsts/vsts/task_agent/v4_1/models/input_validation_request.py new file mode 100644 index 00000000..74fb2e1f --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/input_validation_request.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidationRequest(Model): + """InputValidationRequest. + + :param inputs: + :type inputs: dict + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{ValidationItem}'} + } + + def __init__(self, inputs=None): + super(InputValidationRequest, self).__init__() + self.inputs = inputs diff --git a/vsts/vsts/task_agent/v4_1/models/input_value.py b/vsts/vsts/task_agent/v4_1/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/input_values.py b/vsts/vsts/task_agent/v4_1/models/input_values.py new file mode 100644 index 00000000..69472f8d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/task_agent/v4_1/models/input_values_error.py b/vsts/vsts/task_agent/v4_1/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py b/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py new file mode 100644 index 00000000..8fde3da2 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetricsColumnMetaData(Model): + """MetricsColumnMetaData. + + :param column_name: + :type column_name: str + :param column_value_type: + :type column_value_type: str + """ + + _attribute_map = { + 'column_name': {'key': 'columnName', 'type': 'str'}, + 'column_value_type': {'key': 'columnValueType', 'type': 'str'} + } + + def __init__(self, column_name=None, column_value_type=None): + super(MetricsColumnMetaData, self).__init__() + self.column_name = column_name + self.column_value_type = column_value_type diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py b/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py new file mode 100644 index 00000000..12b391ac --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetricsColumnsHeader(Model): + """MetricsColumnsHeader. + + :param dimensions: + :type dimensions: list of :class:`MetricsColumnMetaData ` + :param metrics: + :type metrics: list of :class:`MetricsColumnMetaData ` + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[MetricsColumnMetaData]'}, + 'metrics': {'key': 'metrics', 'type': '[MetricsColumnMetaData]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsColumnsHeader, self).__init__() + self.dimensions = dimensions + self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_row.py b/vsts/vsts/task_agent/v4_1/models/metrics_row.py new file mode 100644 index 00000000..225673ad --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/metrics_row.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MetricsRow(Model): + """MetricsRow. + + :param dimensions: + :type dimensions: list of str + :param metrics: + :type metrics: list of str + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[str]'}, + 'metrics': {'key': 'metrics', 'type': '[str]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsRow, self).__init__() + self.dimensions = dimensions + self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_1/models/package_metadata.py b/vsts/vsts/task_agent/v4_1/models/package_metadata.py new file mode 100644 index 00000000..b0053f54 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/package_metadata.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageMetadata(Model): + """PackageMetadata. + + :param created_on: The date the package was created + :type created_on: datetime + :param download_url: A direct link to download the package. + :type download_url: str + :param filename: The UI uses this to display instructions, i.e. "unzip MyAgent.zip" + :type filename: str + :param hash_value: MD5 hash as a base64 string + :type hash_value: str + :param info_url: A link to documentation + :type info_url: str + :param platform: The platform (win7, linux, etc.) + :type platform: str + :param type: The type of package (e.g. "agent") + :type type: str + :param version: The package version. + :type version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'download_url': {'key': 'downloadUrl', 'type': 'str'}, + 'filename': {'key': 'filename', 'type': 'str'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'info_url': {'key': 'infoUrl', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'PackageVersion'} + } + + def __init__(self, created_on=None, download_url=None, filename=None, hash_value=None, info_url=None, platform=None, type=None, version=None): + super(PackageMetadata, self).__init__() + self.created_on = created_on + self.download_url = download_url + self.filename = filename + self.hash_value = hash_value + self.info_url = info_url + self.platform = platform + self.type = type + self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/package_version.py b/vsts/vsts/task_agent/v4_1/models/package_version.py new file mode 100644 index 00000000..3742cdc0 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/package_version.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageVersion(Model): + """PackageVersion. + + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(PackageVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch diff --git a/vsts/vsts/task_agent/v4_1/models/project_reference.py b/vsts/vsts/task_agent/v4_1/models/project_reference.py new file mode 100644 index 00000000..8fd6ad8e --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/project_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py b/vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py new file mode 100644 index 00000000..527821b5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublishTaskGroupMetadata(Model): + """PublishTaskGroupMetadata. + + :param comment: + :type comment: str + :param parent_definition_revision: + :type parent_definition_revision: int + :param preview: + :type preview: bool + :param task_group_id: + :type task_group_id: str + :param task_group_revision: + :type task_group_revision: int + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parent_definition_revision': {'key': 'parentDefinitionRevision', 'type': 'int'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'}, + 'task_group_revision': {'key': 'taskGroupRevision', 'type': 'int'} + } + + def __init__(self, comment=None, parent_definition_revision=None, preview=None, task_group_id=None, task_group_revision=None): + super(PublishTaskGroupMetadata, self).__init__() + self.comment = comment + self.parent_definition_revision = parent_definition_revision + self.preview = preview + self.task_group_id = task_group_id + self.task_group_revision = task_group_revision diff --git a/vsts/vsts/task_agent/v4_1/models/reference_links.py b/vsts/vsts/task_agent/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/task_agent/v4_1/models/resource_usage.py b/vsts/vsts/task_agent/v4_1/models/resource_usage.py new file mode 100644 index 00000000..3f00cf3a --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/resource_usage.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResourceUsage(Model): + """ResourceUsage. + + :param running_plan_groups: + :type running_plan_groups: list of :class:`TaskOrchestrationPlanGroup ` + :param total_count: + :type total_count: int + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'running_plan_groups': {'key': 'runningPlanGroups', 'type': '[TaskOrchestrationPlanGroup]'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, running_plan_groups=None, total_count=None, used_count=None): + super(ResourceUsage, self).__init__() + self.running_plan_groups = running_plan_groups + self.total_count = total_count + self.used_count = used_count diff --git a/vsts/vsts/task_agent/v4_1/models/result_transformation_details.py b/vsts/vsts/task_agent/v4_1/models/result_transformation_details.py new file mode 100644 index 00000000..eff9b132 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/result_transformation_details.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResultTransformationDetails(Model): + """ResultTransformationDetails. + + :param result_template: + :type result_template: str + """ + + _attribute_map = { + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, result_template=None): + super(ResultTransformationDetails, self).__init__() + self.result_template = result_template diff --git a/vsts/vsts/task_agent/v4_1/models/secure_file.py b/vsts/vsts/task_agent/v4_1/models/secure_file.py new file mode 100644 index 00000000..a1826cf8 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/secure_file.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SecureFile(Model): + """SecureFile. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param properties: + :type properties: dict + :param ticket: + :type ticket: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'ticket': {'key': 'ticket', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, modified_on=None, name=None, properties=None, ticket=None): + super(SecureFile, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.properties = properties + self.ticket = ticket diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint.py new file mode 100644 index 00000000..3d33ba8f --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpoint(Model): + """ServiceEndpoint. + + :param administrators_group: + :type administrators_group: :class:`IdentityRef ` + :param authorization: Gets or sets the authorization data for talking to the endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param created_by: The Gets or sets Identity reference for the user who created the Service endpoint + :type created_by: :class:`IdentityRef ` + :param data: + :type data: dict + :param description: Gets or Sets description of endpoint + :type description: str + :param group_scope_id: + :type group_scope_id: str + :param id: Gets or sets the identifier of this endpoint. + :type id: str + :param is_ready: EndPoint state indictor + :type is_ready: bool + :param name: Gets or sets the friendly name of the endpoint. + :type name: str + :param operation_status: Error message during creation/deletion of endpoint + :type operation_status: :class:`object ` + :param readers_group: + :type readers_group: :class:`IdentityRef ` + :param type: Gets or sets the type of the endpoint. + :type type: str + :param url: Gets or sets the url of the endpoint. + :type url: str + """ + + _attribute_map = { + 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + super(ServiceEndpoint, self).__init__() + self.administrators_group = administrators_group + self.authorization = authorization + self.created_by = created_by + self.data = data + self.description = description + self.group_scope_id = group_scope_id + self.id = id + self.is_ready = is_ready + self.name = name + self.operation_status = operation_status + self.readers_group = readers_group + self.type = type + self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py new file mode 100644 index 00000000..f8cfe08d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointAuthenticationScheme(Model): + """ServiceEndpointAuthenticationScheme. + + :param authorization_headers: + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param display_name: + :type display_name: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: + :type scheme: str + """ + + _attribute_map = { + 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, authorization_headers=None, display_name=None, input_descriptors=None, scheme=None): + super(ServiceEndpointAuthenticationScheme, self).__init__() + self.authorization_headers = authorization_headers + self.display_name = display_name + self.input_descriptors = input_descriptors + self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py new file mode 100644 index 00000000..ea14503a --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointDetails(Model): + """ServiceEndpointDetails. + + :param authorization: + :type authorization: :class:`EndpointAuthorization ` + :param data: + :type data: dict + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, data=None, type=None, url=None): + super(ServiceEndpointDetails, self).__init__() + self.authorization = authorization + self.data = data + self.type = type + self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py new file mode 100644 index 00000000..c887acf3 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionData(Model): + """ServiceEndpointExecutionData. + + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param finish_time: + :type finish_time: datetime + :param id: + :type id: long + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_type: + :type plan_type: str + :param result: + :type result: object + :param start_time: + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): + super(ServiceEndpointExecutionData, self).__init__() + self.definition = definition + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_type = plan_type + self.result = result + self.start_time = start_time diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py new file mode 100644 index 00000000..8d32d8c4 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionRecord(Model): + """ServiceEndpointExecutionRecord. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: + :type endpoint_id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'} + } + + def __init__(self, data=None, endpoint_id=None): + super(ServiceEndpointExecutionRecord, self).__init__() + self.data = data + self.endpoint_id = endpoint_id diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py new file mode 100644 index 00000000..50ddbf4a --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionRecordsInput(Model): + """ServiceEndpointExecutionRecordsInput. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_ids: + :type endpoint_ids: list of str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} + } + + def __init__(self, data=None, endpoint_ids=None): + super(ServiceEndpointExecutionRecordsInput, self).__init__() + self.data = data + self.endpoint_ids = endpoint_ids diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py new file mode 100644 index 00000000..e1ff2b36 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointRequest(Model): + """ServiceEndpointRequest. + + :param data_source_details: + :type data_source_details: :class:`DataSourceDetails ` + :param result_transformation_details: + :type result_transformation_details: :class:`ResultTransformationDetails ` + :param service_endpoint_details: + :type service_endpoint_details: :class:`ServiceEndpointDetails ` + """ + + _attribute_map = { + 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, + 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, + 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} + } + + def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): + super(ServiceEndpointRequest, self).__init__() + self.data_source_details = data_source_details + self.result_transformation_details = result_transformation_details + self.service_endpoint_details = service_endpoint_details diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py new file mode 100644 index 00000000..b8b3b2a5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointRequestResult(Model): + """ServiceEndpointRequestResult. + + :param error_message: + :type error_message: str + :param result: + :type result: :class:`object ` + :param status_code: + :type status_code: object + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'object'} + } + + def __init__(self, error_message=None, result=None, status_code=None): + super(ServiceEndpointRequestResult, self).__init__() + self.error_message = error_message + self.result = result + self.status_code = status_code diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py new file mode 100644 index 00000000..bcc7648a --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointType(Model): + """ServiceEndpointType. + + :param authentication_schemes: + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: + :type data_sources: list of :class:`DataSource ` + :param dependency_data: + :type dependency_data: list of :class:`DependencyData ` + :param description: + :type description: str + :param display_name: + :type display_name: str + :param endpoint_url: + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: + :type help_link: :class:`HelpLink ` + :param help_mark_down: + :type help_mark_down: str + :param icon_url: + :type icon_url: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + :param trusted_hosts: + :type trusted_hosts: list of str + :param ui_contribution_id: + :type ui_contribution_id: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, + 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name + self.trusted_hosts = trusted_hosts + self.ui_contribution_id = ui_contribution_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent.py b/vsts/vsts/task_agent/v4_1/models/task_agent.py new file mode 100644 index 00000000..8596aaba --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent.py @@ -0,0 +1,82 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_agent_reference import TaskAgentReference + + +class TaskAgent(TaskAgentReference): + """TaskAgent. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param oSDescription: Gets the OS of the agent. + :type oSDescription: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + :param assigned_request: Gets the request which is currently assigned to this agent. + :type assigned_request: :class:`TaskAgentJobRequest ` + :param authorization: Gets or sets the authorization information for this agent. + :type authorization: :class:`TaskAgentAuthorization ` + :param created_on: Gets the date on which this agent was created. + :type created_on: datetime + :param last_completed_request: Gets the last request which was completed by this agent. + :type last_completed_request: :class:`TaskAgentJobRequest ` + :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. + :type max_parallelism: int + :param pending_update: Gets the pending update for this agent. + :type pending_update: :class:`TaskAgentUpdate ` + :param properties: + :type properties: :class:`object ` + :param status_changed_on: Gets the date on which the last connectivity status change occurred. + :type status_changed_on: datetime + :param system_capabilities: + :type system_capabilities: dict + :param user_capabilities: + :type user_capabilities: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, + 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_completed_request': {'key': 'lastCompletedRequest', 'type': 'TaskAgentJobRequest'}, + 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, + 'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'status_changed_on': {'key': 'statusChangedOn', 'type': 'iso-8601'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'}, + 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): + super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, oSDescription=oSDescription, status=status, version=version) + self.assigned_request = assigned_request + self.authorization = authorization + self.created_on = created_on + self.last_completed_request = last_completed_request + self.max_parallelism = max_parallelism + self.pending_update = pending_update + self.properties = properties + self.status_changed_on = status_changed_on + self.system_capabilities = system_capabilities + self.user_capabilities = user_capabilities diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py b/vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py new file mode 100644 index 00000000..5c2f5418 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentAuthorization(Model): + """TaskAgentAuthorization. + + :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. + :type authorization_url: str + :param client_id: Gets or sets the client identifier for this agent. + :type client_id: str + :param public_key: Gets or sets the public key used to verify the identity of this agent. + :type public_key: :class:`TaskAgentPublicKey ` + """ + + _attribute_map = { + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} + } + + def __init__(self, authorization_url=None, client_id=None, public_key=None): + super(TaskAgentAuthorization, self).__init__() + self.authorization_url = authorization_url + self.client_id = client_id + self.public_key = public_key diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py b/vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py new file mode 100644 index 00000000..44b09997 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentDelaySource(Model): + """TaskAgentDelaySource. + + :param delays: + :type delays: list of object + :param task_agent: + :type task_agent: :class:`TaskAgentReference ` + """ + + _attribute_map = { + 'delays': {'key': 'delays', 'type': '[object]'}, + 'task_agent': {'key': 'taskAgent', 'type': 'TaskAgentReference'} + } + + def __init__(self, delays=None, task_agent=None): + super(TaskAgentDelaySource, self).__init__() + self.delays = delays + self.task_agent = task_agent diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py b/vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py new file mode 100644 index 00000000..69cf1e71 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py @@ -0,0 +1,121 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentJobRequest(Model): + """TaskAgentJobRequest. + + :param agent_delays: + :type agent_delays: list of :class:`TaskAgentDelaySource ` + :param assign_time: + :type assign_time: datetime + :param data: + :type data: dict + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param demands: + :type demands: list of :class:`object ` + :param expected_duration: + :type expected_duration: object + :param finish_time: + :type finish_time: datetime + :param host_id: + :type host_id: str + :param job_id: + :type job_id: str + :param job_name: + :type job_name: str + :param locked_until: + :type locked_until: datetime + :param matched_agents: + :type matched_agents: list of :class:`TaskAgentReference ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param pool_id: + :type pool_id: int + :param queue_id: + :type queue_id: int + :param queue_time: + :type queue_time: datetime + :param receive_time: + :type receive_time: datetime + :param request_id: + :type request_id: long + :param reserved_agent: + :type reserved_agent: :class:`TaskAgentReference ` + :param result: + :type result: object + :param scope_id: + :type scope_id: str + :param service_owner: + :type service_owner: str + """ + + _attribute_map = { + 'agent_delays': {'key': 'agentDelays', 'type': '[TaskAgentDelaySource]'}, + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'expected_duration': {'key': 'expectedDuration', 'type': 'object'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'job_name': {'key': 'jobName', 'type': 'str'}, + 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, + 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'pool_id': {'key': 'poolId', 'type': 'int'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'}, + 'request_id': {'key': 'requestId', 'type': 'long'}, + 'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'}, + 'result': {'key': 'result', 'type': 'object'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'} + } + + def __init__(self, agent_delays=None, assign_time=None, data=None, definition=None, demands=None, expected_duration=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_group=None, plan_id=None, plan_type=None, pool_id=None, queue_id=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): + super(TaskAgentJobRequest, self).__init__() + self.agent_delays = agent_delays + self.assign_time = assign_time + self.data = data + self.definition = definition + self.demands = demands + self.expected_duration = expected_duration + self.finish_time = finish_time + self.host_id = host_id + self.job_id = job_id + self.job_name = job_name + self.locked_until = locked_until + self.matched_agents = matched_agents + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.plan_type = plan_type + self.pool_id = pool_id + self.queue_id = queue_id + self.queue_time = queue_time + self.receive_time = receive_time + self.request_id = request_id + self.reserved_agent = reserved_agent + self.result = result + self.scope_id = scope_id + self.service_owner = service_owner diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_message.py b/vsts/vsts/task_agent/v4_1/models/task_agent_message.py new file mode 100644 index 00000000..5b4e7a78 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_message.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentMessage(Model): + """TaskAgentMessage. + + :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. + :type body: str + :param iV: Gets or sets the intialization vector used to encrypt this message. + :type iV: list of number + :param message_id: Gets or sets the message identifier. + :type message_id: long + :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. + :type message_type: str + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'iV': {'key': 'iV', 'type': '[number]'}, + 'message_id': {'key': 'messageId', 'type': 'long'}, + 'message_type': {'key': 'messageType', 'type': 'str'} + } + + def __init__(self, body=None, iV=None, message_id=None, message_type=None): + super(TaskAgentMessage, self).__init__() + self.body = body + self.iV = iV + self.message_id = message_id + self.message_type = message_type diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py new file mode 100644 index 00000000..7eb55422 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_agent_pool_reference import TaskAgentPoolReference + + +class TaskAgentPool(TaskAgentPoolReference): + """TaskAgentPool. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + :param size: Gets the current size of the pool. + :type size: int + :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. + :type auto_provision: bool + :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets the date/time of the pool creation. + :type created_on: datetime + :param properties: + :type properties: :class:`object ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'int'}, + 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': 'object'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, auto_provision=None, created_by=None, created_on=None, properties=None): + super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope, size=size) + self.auto_provision = auto_provision + self.created_by = created_by + self.created_on = created_on + self.properties = properties diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py new file mode 100644 index 00000000..39aef023 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceDefinition(Model): + """TaskAgentPoolMaintenanceDefinition. + + :param enabled: Enable maintenance + :type enabled: bool + :param id: Id + :type id: int + :param job_timeout_in_minutes: Maintenance job timeout per agent + :type job_timeout_in_minutes: int + :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time + :type max_concurrent_agents_percentage: int + :param options: + :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :param pool: Pool reference for the maintenance definition + :type pool: :class:`TaskAgentPoolReference ` + :param retention_policy: + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :param schedule_setting: + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'max_concurrent_agents_percentage': {'key': 'maxConcurrentAgentsPercentage', 'type': 'int'}, + 'options': {'key': 'options', 'type': 'TaskAgentPoolMaintenanceOptions'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'TaskAgentPoolMaintenanceRetentionPolicy'}, + 'schedule_setting': {'key': 'scheduleSetting', 'type': 'TaskAgentPoolMaintenanceSchedule'} + } + + def __init__(self, enabled=None, id=None, job_timeout_in_minutes=None, max_concurrent_agents_percentage=None, options=None, pool=None, retention_policy=None, schedule_setting=None): + super(TaskAgentPoolMaintenanceDefinition, self).__init__() + self.enabled = enabled + self.id = id + self.job_timeout_in_minutes = job_timeout_in_minutes + self.max_concurrent_agents_percentage = max_concurrent_agents_percentage + self.options = options + self.pool = pool + self.retention_policy = retention_policy + self.schedule_setting = schedule_setting diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py new file mode 100644 index 00000000..b7545248 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceJob(Model): + """TaskAgentPoolMaintenanceJob. + + :param definition_id: The maintenance definition for the maintenance job + :type definition_id: int + :param error_count: The total error counts during the maintenance job + :type error_count: int + :param finish_time: Time that the maintenance job was completed + :type finish_time: datetime + :param job_id: Id of the maintenance job + :type job_id: int + :param logs_download_url: The log download url for the maintenance job + :type logs_download_url: str + :param orchestration_id: Orchestration/Plan Id for the maintenance job + :type orchestration_id: str + :param pool: Pool reference for the maintenance job + :type pool: :class:`TaskAgentPoolReference ` + :param queue_time: Time that the maintenance job was queued + :type queue_time: datetime + :param requested_by: The identity that queued the maintenance job + :type requested_by: :class:`IdentityRef ` + :param result: The maintenance job result + :type result: object + :param start_time: Time that the maintenance job was started + :type start_time: datetime + :param status: Status of the maintenance job + :type status: object + :param target_agents: + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :param warning_count: The total warning counts during the maintenance job + :type warning_count: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'}, + 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'} + } + + def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None): + super(TaskAgentPoolMaintenanceJob, self).__init__() + self.definition_id = definition_id + self.error_count = error_count + self.finish_time = finish_time + self.job_id = job_id + self.logs_download_url = logs_download_url + self.orchestration_id = orchestration_id + self.pool = pool + self.queue_time = queue_time + self.requested_by = requested_by + self.result = result + self.start_time = start_time + self.status = status + self.target_agents = target_agents + self.warning_count = warning_count diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py new file mode 100644 index 00000000..eb8f80e5 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceJobTargetAgent(Model): + """TaskAgentPoolMaintenanceJobTargetAgent. + + :param agent: + :type agent: :class:`TaskAgentReference ` + :param job_id: + :type job_id: int + :param result: + :type result: object + :param status: + :type status: object + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, agent=None, job_id=None, result=None, status=None): + super(TaskAgentPoolMaintenanceJobTargetAgent, self).__init__() + self.agent = agent + self.job_id = job_id + self.result = result + self.status = status diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py new file mode 100644 index 00000000..7c6690dd --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceOptions(Model): + """TaskAgentPoolMaintenanceOptions. + + :param working_directory_expiration_in_days: time to consider a System.DefaultWorkingDirectory is stale + :type working_directory_expiration_in_days: int + """ + + _attribute_map = { + 'working_directory_expiration_in_days': {'key': 'workingDirectoryExpirationInDays', 'type': 'int'} + } + + def __init__(self, working_directory_expiration_in_days=None): + super(TaskAgentPoolMaintenanceOptions, self).__init__() + self.working_directory_expiration_in_days = working_directory_expiration_in_days diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py new file mode 100644 index 00000000..4f9c1434 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceRetentionPolicy(Model): + """TaskAgentPoolMaintenanceRetentionPolicy. + + :param number_of_history_records_to_keep: Number of records to keep for maintenance job executed with this definition. + :type number_of_history_records_to_keep: int + """ + + _attribute_map = { + 'number_of_history_records_to_keep': {'key': 'numberOfHistoryRecordsToKeep', 'type': 'int'} + } + + def __init__(self, number_of_history_records_to_keep=None): + super(TaskAgentPoolMaintenanceRetentionPolicy, self).__init__() + self.number_of_history_records_to_keep = number_of_history_records_to_keep diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py new file mode 100644 index 00000000..4395a005 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPoolMaintenanceSchedule(Model): + """TaskAgentPoolMaintenanceSchedule. + + :param days_to_build: Days for a build (flags enum for days of the week) + :type days_to_build: object + :param schedule_job_id: The Job Id of the Scheduled job that will queue the pool maintenance job. + :type schedule_job_id: str + :param start_hours: Local timezone hour to start + :type start_hours: int + :param start_minutes: Local timezone minute to start + :type start_minutes: int + :param time_zone_id: Time zone of the build schedule (string representation of the time zone id) + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_build': {'key': 'daysToBuild', 'type': 'object'}, + 'schedule_job_id': {'key': 'scheduleJobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_build=None, schedule_job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(TaskAgentPoolMaintenanceSchedule, self).__init__() + self.days_to_build = days_to_build + self.schedule_job_id = schedule_job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py new file mode 100644 index 00000000..4857a3f1 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py @@ -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.serialization import Model + + +class TaskAgentPoolReference(Model): + """TaskAgentPoolReference. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + :param size: Gets the current size of the pool. + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None): + super(TaskAgentPoolReference, self).__init__() + self.id = id + self.is_hosted = is_hosted + self.name = name + self.pool_type = pool_type + self.scope = scope + self.size = size diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py new file mode 100644 index 00000000..32ad5940 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentPublicKey(Model): + """TaskAgentPublicKey. + + :param exponent: Gets or sets the exponent for the public key. + :type exponent: list of number + :param modulus: Gets or sets the modulus for the public key. + :type modulus: list of number + """ + + _attribute_map = { + 'exponent': {'key': 'exponent', 'type': '[number]'}, + 'modulus': {'key': 'modulus', 'type': '[number]'} + } + + def __init__(self, exponent=None, modulus=None): + super(TaskAgentPublicKey, self).__init__() + self.exponent = exponent + self.modulus = modulus diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_queue.py b/vsts/vsts/task_agent/v4_1/models/task_agent_queue.py new file mode 100644 index 00000000..9e0e0891 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_queue.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentQueue(Model): + """TaskAgentQueue. + + :param id: Id of the queue + :type id: int + :param name: Name of the queue + :type name: str + :param pool: Pool reference for this queue + :type pool: :class:`TaskAgentPoolReference ` + :param project_id: Project Id + :type project_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project_id': {'key': 'projectId', 'type': 'str'} + } + + def __init__(self, id=None, name=None, pool=None, project_id=None): + super(TaskAgentQueue, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project_id = project_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_reference.py b/vsts/vsts/task_agent/v4_1/models/task_agent_reference.py new file mode 100644 index 00000000..a58ba2b1 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_reference.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentReference(Model): + """TaskAgentReference. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param oSDescription: Gets the OS of the agent. + :type oSDescription: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None): + super(TaskAgentReference, self).__init__() + self._links = _links + self.enabled = enabled + self.id = id + self.name = name + self.oSDescription = oSDescription + self.status = status + self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_session.py b/vsts/vsts/task_agent/v4_1/models/task_agent_session.py new file mode 100644 index 00000000..6baeb102 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_session.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentSession(Model): + """TaskAgentSession. + + :param agent: Gets or sets the agent which is the target of the session. + :type agent: :class:`TaskAgentReference ` + :param encryption_key: Gets the key used to encrypt message traffic for this session. + :type encryption_key: :class:`TaskAgentSessionKey ` + :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. + :type owner_name: str + :param session_id: Gets the unique identifier for this session. + :type session_id: str + :param system_capabilities: + :type system_capabilities: dict + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'encryption_key': {'key': 'encryptionKey', 'type': 'TaskAgentSessionKey'}, + 'owner_name': {'key': 'ownerName', 'type': 'str'}, + 'session_id': {'key': 'sessionId', 'type': 'str'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'} + } + + def __init__(self, agent=None, encryption_key=None, owner_name=None, session_id=None, system_capabilities=None): + super(TaskAgentSession, self).__init__() + self.agent = agent + self.encryption_key = encryption_key + self.owner_name = owner_name + self.session_id = session_id + self.system_capabilities = system_capabilities diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py new file mode 100644 index 00000000..6015a042 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentSessionKey(Model): + """TaskAgentSessionKey. + + :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. + :type encrypted: bool + :param value: Gets or sets the symmetric key value. + :type value: list of number + """ + + _attribute_map = { + 'encrypted': {'key': 'encrypted', 'type': 'bool'}, + 'value': {'key': 'value', 'type': '[number]'} + } + + def __init__(self, encrypted=None, value=None): + super(TaskAgentSessionKey, self).__init__() + self.encrypted = encrypted + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_update.py b/vsts/vsts/task_agent/v4_1/models/task_agent_update.py new file mode 100644 index 00000000..ac377f67 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_update.py @@ -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.serialization import Model + + +class TaskAgentUpdate(Model): + """TaskAgentUpdate. + + :param current_state: The current state of this agent update + :type current_state: str + :param reason: The reason of this agent update + :type reason: :class:`TaskAgentUpdateReason ` + :param requested_by: The identity that request the agent update + :type requested_by: :class:`IdentityRef ` + :param request_time: Gets the date on which this agent update was requested. + :type request_time: datetime + :param source_version: Gets or sets the source agent version of the agent update + :type source_version: :class:`PackageVersion ` + :param target_version: Gets or sets the target agent version of the agent update + :type target_version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'current_state': {'key': 'currentState', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'TaskAgentUpdateReason'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_time': {'key': 'requestTime', 'type': 'iso-8601'}, + 'source_version': {'key': 'sourceVersion', 'type': 'PackageVersion'}, + 'target_version': {'key': 'targetVersion', 'type': 'PackageVersion'} + } + + def __init__(self, current_state=None, reason=None, requested_by=None, request_time=None, source_version=None, target_version=None): + super(TaskAgentUpdate, self).__init__() + self.current_state = current_state + self.reason = reason + self.requested_by = requested_by + self.request_time = request_time + self.source_version = source_version + self.target_version = target_version diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py b/vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py new file mode 100644 index 00000000..7d04a89f --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskAgentUpdateReason(Model): + """TaskAgentUpdateReason. + + :param code: + :type code: object + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'object'} + } + + def __init__(self, code=None): + super(TaskAgentUpdateReason, self).__init__() + self.code = code diff --git a/vsts/vsts/task_agent/v4_1/models/task_definition.py b/vsts/vsts/task_agent/v4_1/models/task_definition.py new file mode 100644 index 00000000..43791c03 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_definition.py @@ -0,0 +1,161 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskDefinition(Model): + """TaskDefinition. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): + super(TaskDefinition, self).__init__() + self.agent_execution = agent_execution + self.author = author + self.category = category + self.contents_uploaded = contents_uploaded + self.contribution_identifier = contribution_identifier + self.contribution_version = contribution_version + self.data_source_bindings = data_source_bindings + self.definition_type = definition_type + self.demands = demands + self.deprecated = deprecated + self.description = description + self.disabled = disabled + self.execution = execution + self.friendly_name = friendly_name + self.groups = groups + self.help_mark_down = help_mark_down + self.host_type = host_type + self.icon_url = icon_url + self.id = id + self.inputs = inputs + self.instance_name_format = instance_name_format + self.minimum_agent_version = minimum_agent_version + self.name = name + self.output_variables = output_variables + self.package_location = package_location + self.package_type = package_type + self.preview = preview + self.release_notes = release_notes + self.runs_on = runs_on + self.satisfies = satisfies + self.server_owned = server_owned + self.source_definitions = source_definitions + self.source_location = source_location + self.version = version + self.visibility = visibility diff --git a/vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py b/vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py new file mode 100644 index 00000000..ee2aea05 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py @@ -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.serialization import Model + + +class TaskDefinitionEndpoint(Model): + """TaskDefinitionEndpoint. + + :param connection_id: An ID that identifies a service connection to be used for authenticating endpoint requests. + :type connection_id: str + :param key_selector: An Json based keyselector to filter response returned by fetching the endpoint Url.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. The following keyselector defines an Json for extracting nodes named 'ServiceName'. endpoint.KeySelector = "jsonpath://ServiceName"; + :type key_selector: str + :param scope: The scope as understood by Connected Services. Essentialy, a project-id for now. + :type scope: str + :param selector: An XPath/Json based selector to filter response returned by fetching the endpoint Url. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". The following selector defines an XPath for extracting nodes named 'ServiceName'. endpoint.Selector = "xpath://ServiceName"; + :type selector: str + :param task_id: TaskId that this endpoint belongs to. + :type task_id: str + :param url: URL to GET. + :type url: str + """ + + _attribute_map = { + 'connection_id': {'key': 'connectionId', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, connection_id=None, key_selector=None, scope=None, selector=None, task_id=None, url=None): + super(TaskDefinitionEndpoint, self).__init__() + self.connection_id = connection_id + self.key_selector = key_selector + self.scope = scope + self.selector = selector + self.task_id = task_id + self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/task_definition_reference.py b/vsts/vsts/task_agent/v4_1/models/task_definition_reference.py new file mode 100644 index 00000000..ffc8dc2d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_definition_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskDefinitionReference(Model): + """TaskDefinitionReference. + + :param definition_type: Gets or sets the definition type. Values can be 'task' or 'metaTask'. + :type definition_type: str + :param id: Gets or sets the unique identifier of task. + :type id: str + :param version_spec: Gets or sets the version specification of task. + :type version_spec: str + """ + + _attribute_map = { + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'version_spec': {'key': 'versionSpec', 'type': 'str'} + } + + def __init__(self, definition_type=None, id=None, version_spec=None): + super(TaskDefinitionReference, self).__init__() + self.definition_type = definition_type + self.id = id + self.version_spec = version_spec diff --git a/vsts/vsts/task_agent/v4_1/models/task_execution.py b/vsts/vsts/task_agent/v4_1/models/task_execution.py new file mode 100644 index 00000000..d23d780d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_execution.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskExecution(Model): + """TaskExecution. + + :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline + :type exec_task: :class:`TaskReference ` + :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } + :type platform_instructions: dict + """ + + _attribute_map = { + 'exec_task': {'key': 'execTask', 'type': 'TaskReference'}, + 'platform_instructions': {'key': 'platformInstructions', 'type': '{{str}}'} + } + + def __init__(self, exec_task=None, platform_instructions=None): + super(TaskExecution, self).__init__() + self.exec_task = exec_task + self.platform_instructions = platform_instructions diff --git a/vsts/vsts/task_agent/v4_1/models/task_group.py b/vsts/vsts/task_agent/v4_1/models/task_group.py new file mode 100644 index 00000000..0a71354c --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_group.py @@ -0,0 +1,166 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_definition import TaskDefinition + + +class TaskGroup(TaskDefinition): + """TaskGroup. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets date on which it got created. + :type created_on: datetime + :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. + :type deleted: bool + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets date on which it got modified. + :type modified_on: datetime + :param owner: Gets or sets the owner. + :type owner: str + :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param revision: Gets or sets revision. + :type revision: int + :param tasks: Gets or sets the tasks. + :type tasks: list of :class:`TaskGroupStep ` + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'deleted': {'key': 'deleted', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): + super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.deleted = deleted + self.modified_by = modified_by + self.modified_on = modified_on + self.owner = owner + self.parent_definition_id = parent_definition_id + self.revision = revision + self.tasks = tasks diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py b/vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py new file mode 100644 index 00000000..ecc20c8a --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupCreateParameter(Model): + """TaskGroupCreateParameter. + + :param author: Sets author name of the task group. + :type author: str + :param category: Sets category of the task group. + :type category: str + :param description: Sets description of the task group. + :type description: str + :param friendly_name: Sets friendly name of the task group. + :type friendly_name: str + :param icon_url: Sets url icon of the task group. + :type icon_url: str + :param inputs: Sets input for the task group. + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: Sets display name of the task group. + :type instance_name_format: str + :param name: Sets name of the task group. + :type name: str + :param parent_definition_id: Sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. + :type runs_on: list of str + :param tasks: Sets tasks for the task group. + :type tasks: list of :class:`TaskGroupStep ` + :param version: Sets version of the task group. + :type version: :class:`TaskVersion ` + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, + 'version': {'key': 'version', 'type': 'TaskVersion'} + } + + def __init__(self, author=None, category=None, description=None, friendly_name=None, icon_url=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, runs_on=None, tasks=None, version=None): + super(TaskGroupCreateParameter, self).__init__() + self.author = author + self.category = category + self.description = description + self.friendly_name = friendly_name + self.icon_url = icon_url + self.inputs = inputs + self.instance_name_format = instance_name_format + self.name = name + self.parent_definition_id = parent_definition_id + self.runs_on = runs_on + self.tasks = tasks + self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_definition.py b/vsts/vsts/task_agent/v4_1/models/task_group_definition.py new file mode 100644 index 00000000..603bf5d7 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_group_definition.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupDefinition(Model): + """TaskGroupDefinition. + + :param display_name: + :type display_name: str + :param is_expanded: + :type is_expanded: bool + :param name: + :type name: str + :param tags: + :type tags: list of str + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, display_name=None, is_expanded=None, name=None, tags=None, visible_rule=None): + super(TaskGroupDefinition, self).__init__() + self.display_name = display_name + self.is_expanded = is_expanded + self.name = name + self.tags = tags + self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_revision.py b/vsts/vsts/task_agent/v4_1/models/task_group_revision.py new file mode 100644 index 00000000..fff39c34 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_group_revision.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupRevision(Model): + """TaskGroupRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_type: + :type change_type: object + :param comment: + :type comment: str + :param file_id: + :type file_id: int + :param revision: + :type revision: int + :param task_group_id: + :type task_group_id: str + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'} + } + + def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, file_id=None, revision=None, task_group_id=None): + super(TaskGroupRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.file_id = file_id + self.revision = revision + self.task_group_id = task_group_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_step.py b/vsts/vsts/task_agent/v4_1/models/task_group_step.py new file mode 100644 index 00000000..78d907ff --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_group_step.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupStep(Model): + """TaskGroupStep. + + :param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise. + :type always_run: bool + :param condition: Gets or sets condition for the task. + :type condition: str + :param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise. + :type continue_on_error: bool + :param display_name: Gets or sets the display name. + :type display_name: str + :param enabled: Gets or sets as task is enabled or not. + :type enabled: bool + :param inputs: Gets or sets dictionary of inputs. + :type inputs: dict + :param task: Gets or sets the reference of the task. + :type task: :class:`TaskDefinitionReference ` + :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): + super(TaskGroupStep, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.display_name = display_name + self.enabled = enabled + self.inputs = inputs + self.task = task + self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py b/vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py new file mode 100644 index 00000000..140f25d9 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskGroupUpdateParameter(Model): + """TaskGroupUpdateParameter. + + :param author: Sets author name of the task group. + :type author: str + :param category: Sets category of the task group. + :type category: str + :param comment: Sets comment of the task group. + :type comment: str + :param description: Sets description of the task group. + :type description: str + :param friendly_name: Sets friendly name of the task group. + :type friendly_name: str + :param icon_url: Sets url icon of the task group. + :type icon_url: str + :param id: Sets the unique identifier of this field. + :type id: str + :param inputs: Sets input for the task group. + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: Sets display name of the task group. + :type instance_name_format: str + :param name: Sets name of the task group. + :type name: str + :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param revision: Sets revision of the task group. + :type revision: int + :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. + :type runs_on: list of str + :param tasks: Sets tasks for the task group. + :type tasks: list of :class:`TaskGroupStep ` + :param version: Sets version of the task group. + :type version: :class:`TaskVersion ` + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, + 'version': {'key': 'version', 'type': 'TaskVersion'} + } + + def __init__(self, author=None, category=None, comment=None, description=None, friendly_name=None, icon_url=None, id=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, revision=None, runs_on=None, tasks=None, version=None): + super(TaskGroupUpdateParameter, self).__init__() + self.author = author + self.category = category + self.comment = comment + self.description = description + self.friendly_name = friendly_name + self.icon_url = icon_url + self.id = id + self.inputs = inputs + self.instance_name_format = instance_name_format + self.name = name + self.parent_definition_id = parent_definition_id + self.revision = revision + self.runs_on = runs_on + self.tasks = tasks + self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py b/vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py new file mode 100644 index 00000000..7632a7ec --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskHubLicenseDetails(Model): + """TaskHubLicenseDetails. + + :param enterprise_users_count: + :type enterprise_users_count: int + :param free_hosted_license_count: + :type free_hosted_license_count: int + :param free_license_count: + :type free_license_count: int + :param has_license_count_ever_updated: + :type has_license_count_ever_updated: bool + :param hosted_agent_minutes_free_count: + :type hosted_agent_minutes_free_count: int + :param hosted_agent_minutes_used_count: + :type hosted_agent_minutes_used_count: int + :param msdn_users_count: + :type msdn_users_count: int + :param purchased_hosted_license_count: + :type purchased_hosted_license_count: int + :param purchased_license_count: + :type purchased_license_count: int + :param total_license_count: + :type total_license_count: int + """ + + _attribute_map = { + 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, + 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, + 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, + 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, + 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, + 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, + 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, + 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, + 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, + 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} + } + + def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): + super(TaskHubLicenseDetails, self).__init__() + self.enterprise_users_count = enterprise_users_count + self.free_hosted_license_count = free_hosted_license_count + self.free_license_count = free_license_count + self.has_license_count_ever_updated = has_license_count_ever_updated + self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count + self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count + self.msdn_users_count = msdn_users_count + self.purchased_hosted_license_count = purchased_hosted_license_count + self.purchased_license_count = purchased_license_count + self.total_license_count = total_license_count diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_definition.py b/vsts/vsts/task_agent/v4_1/models/task_input_definition.py new file mode 100644 index 00000000..3bc463ce --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_input_definition.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_input_definition_base import TaskInputDefinitionBase + + +class TaskInputDefinition(TaskInputDefinitionBase): + """TaskInputDefinition. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'}, + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinition, self).__init__(aliases=aliases, default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py new file mode 100644 index 00000000..1b4e68ff --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_validation.py b/vsts/vsts/task_agent/v4_1/models/task_input_validation.py new file mode 100644 index 00000000..42524013 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_input_validation.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message diff --git a/vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py b/vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py new file mode 100644 index 00000000..ffba19a6 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py b/vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py new file mode 100644 index 00000000..2109cc96 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOrchestrationPlanGroup(Model): + """TaskOrchestrationPlanGroup. + + :param plan_group: + :type plan_group: str + :param project: + :type project: :class:`ProjectReference ` + :param running_requests: + :type running_requests: list of :class:`TaskAgentJobRequest ` + """ + + _attribute_map = { + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'running_requests': {'key': 'runningRequests', 'type': '[TaskAgentJobRequest]'} + } + + def __init__(self, plan_group=None, project=None, running_requests=None): + super(TaskOrchestrationPlanGroup, self).__init__() + self.plan_group = plan_group + self.project = project + self.running_requests = running_requests diff --git a/vsts/vsts/task_agent/v4_1/models/task_output_variable.py b/vsts/vsts/task_agent/v4_1/models/task_output_variable.py new file mode 100644 index 00000000..6bd50c8d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_output_variable.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskOutputVariable(Model): + """TaskOutputVariable. + + :param description: + :type description: str + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(TaskOutputVariable, self).__init__() + self.description = description + self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/task_package_metadata.py b/vsts/vsts/task_agent/v4_1/models/task_package_metadata.py new file mode 100644 index 00000000..635fda1b --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_package_metadata.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskPackageMetadata(Model): + """TaskPackageMetadata. + + :param type: Gets the name of the package. + :type type: str + :param url: Gets the url of the package. + :type url: str + :param version: Gets the version of the package. + :type version: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, type=None, url=None, version=None): + super(TaskPackageMetadata, self).__init__() + self.type = type + self.url = url + self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_reference.py b/vsts/vsts/task_agent/v4_1/models/task_reference.py new file mode 100644 index 00000000..3ff1dd7b --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_source_definition.py b/vsts/vsts/task_agent/v4_1/models/task_source_definition.py new file mode 100644 index 00000000..96f5576b --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_source_definition.py @@ -0,0 +1,36 @@ +# -------------------------------------------------------------------------------------------- +# 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 .task_source_definition_base import TaskSourceDefinitionBase + + +class TaskSourceDefinition(TaskSourceDefinitionBase): + """TaskSourceDefinition. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinition, self).__init__(auth_key=auth_key, endpoint=endpoint, key_selector=key_selector, selector=selector, target=target) diff --git a/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py new file mode 100644 index 00000000..c8a6b6d6 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target diff --git a/vsts/vsts/task_agent/v4_1/models/task_version.py b/vsts/vsts/task_agent/v4_1/models/task_version.py new file mode 100644 index 00000000..3d4c89ee --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/task_version.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TaskVersion(Model): + """TaskVersion. + + :param is_test: + :type is_test: bool + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'is_test': {'key': 'isTest', 'type': 'bool'}, + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, is_test=None, major=None, minor=None, patch=None): + super(TaskVersion, self).__init__() + self.is_test = is_test + self.major = major + self.minor = minor + self.patch = patch diff --git a/vsts/vsts/task_agent/v4_1/models/validation_item.py b/vsts/vsts/task_agent/v4_1/models/validation_item.py new file mode 100644 index 00000000..c7ba5083 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/validation_item.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ValidationItem(Model): + """ValidationItem. + + :param is_valid: Tells whether the current input is valid or not + :type is_valid: bool + :param reason: Reason for input validation failure + :type reason: str + :param type: Type of validation item + :type type: str + :param value: Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master') + :type value: str + """ + + _attribute_map = { + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_valid=None, reason=None, type=None, value=None): + super(ValidationItem, self).__init__() + self.is_valid = is_valid + self.reason = reason + self.type = type + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/variable_group.py b/vsts/vsts/task_agent/v4_1/models/variable_group.py new file mode 100644 index 00000000..322bb040 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/variable_group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param id: + :type id: int + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param provider_data: + :type provider_data: :class:`VariableGroupProviderData ` + :param type: + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables diff --git a/vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py b/vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py new file mode 100644 index 00000000..b86942f1 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/task_agent/v4_1/models/variable_value.py b/vsts/vsts/task_agent/v4_1/models/variable_value.py new file mode 100644 index 00000000..035049c0 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/variable_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/task_agent_client.py b/vsts/vsts/task_agent/v4_1/task_agent_client.py new file mode 100644 index 00000000..da5ace0f --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/task_agent_client.py @@ -0,0 +1,2423 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TaskAgentClient(VssClient): + """TaskAgent + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TaskAgentClient, 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 add_agent(self, agent, pool_id): + """AddAgent. + [Preview API] + :param :class:` ` agent: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(agent, 'TaskAgent') + response = self._send(http_method='POST', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def delete_agent(self, pool_id, agent_id): + """DeleteAgent. + [Preview API] + :param int pool_id: + :param int agent_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + self._send(http_method='DELETE', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.1-preview.1', + route_values=route_values) + + def get_agent(self, pool_id, agent_id, include_capabilities=None, include_assigned_request=None, property_filters=None): + """GetAgent. + [Preview API] + :param int pool_id: + :param int agent_id: + :param bool include_capabilities: + :param bool include_assigned_request: + :param [str] property_filters: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + query_parameters = {} + if include_capabilities is not None: + query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') + if include_assigned_request is not None: + query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgent', response) + + def get_agents(self, pool_id, agent_name=None, include_capabilities=None, include_assigned_request=None, property_filters=None, demands=None): + """GetAgents. + [Preview API] + :param int pool_id: + :param str agent_name: + :param bool include_capabilities: + :param bool include_assigned_request: + :param [str] property_filters: + :param [str] demands: + :rtype: [TaskAgent] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + if include_capabilities is not None: + query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') + if include_assigned_request is not None: + query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if demands is not None: + demands = ",".join(demands) + query_parameters['demands'] = self._serialize.query('demands', demands, 'str') + response = self._send(http_method='GET', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgent]', response) + + def replace_agent(self, agent, pool_id, agent_id): + """ReplaceAgent. + [Preview API] + :param :class:` ` agent: + :param int pool_id: + :param int agent_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + content = self._serialize.body(agent, 'TaskAgent') + response = self._send(http_method='PUT', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def update_agent(self, agent, pool_id, agent_id): + """UpdateAgent. + [Preview API] + :param :class:` ` agent: + :param int pool_id: + :param int agent_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + content = self._serialize.body(agent, 'TaskAgent') + response = self._send(http_method='PATCH', + location_id='e298ef32-5878-4cab-993c-043836571f42', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def get_azure_subscriptions(self): + """GetAzureSubscriptions. + [Preview API] Returns list of azure subscriptions + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='bcd6189c-0303-471f-a8e1-acb22b74d700', + version='4.1-preview.1') + return self._deserialize('AzureSubscriptionQueryResult', response) + + def generate_deployment_group_access_token(self, project, deployment_group_id): + """GenerateDeploymentGroupAccessToken. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: str + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + response = self._send(http_method='POST', + location_id='3d197ba2-c3e9-4253-882f-0ee2440f8174', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def add_deployment_group(self, deployment_group, project): + """AddDeploymentGroup. + [Preview API] + :param :class:` ` deployment_group: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(deployment_group, 'DeploymentGroup') + response = self._send(http_method='POST', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentGroup', response) + + def delete_deployment_group(self, project, deployment_group_id): + """DeleteDeploymentGroup. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + self._send(http_method='DELETE', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.1-preview.1', + route_values=route_values) + + def get_deployment_group(self, project, deployment_group_id, action_filter=None, expand=None): + """GetDeploymentGroup. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param str action_filter: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentGroup', response) + + def get_deployment_groups(self, project, name=None, action_filter=None, expand=None, continuation_token=None, top=None, ids=None): + """GetDeploymentGroups. + [Preview API] + :param str project: Project ID or project name + :param str name: + :param str action_filter: + :param str expand: + :param str continuation_token: + :param int top: + :param [int] ids: + :rtype: [DeploymentGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + response = self._send(http_method='GET', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentGroup]', response) + + def update_deployment_group(self, deployment_group, project, deployment_group_id): + """UpdateDeploymentGroup. + [Preview API] + :param :class:` ` deployment_group: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(deployment_group, 'DeploymentGroup') + response = self._send(http_method='PATCH', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentGroup', response) + + def get_deployment_groups_metrics(self, project, deployment_group_name=None, continuation_token=None, top=None): + """GetDeploymentGroupsMetrics. + [Preview API] + :param str project: Project ID or project name + :param str deployment_group_name: + :param str continuation_token: + :param int top: + :rtype: [DeploymentGroupMetrics] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if deployment_group_name is not None: + query_parameters['deploymentGroupName'] = self._serialize.query('deployment_group_name', deployment_group_name, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='281c6308-427a-49e1-b83a-dac0f4862189', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentGroupMetrics]', response) + + def get_agent_requests_for_deployment_machine(self, project, deployment_group_id, machine_id, completed_request_count=None): + """GetAgentRequestsForDeploymentMachine. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :param int completed_request_count: + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if machine_id is not None: + query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'int') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='a3540e5b-f0dc-4668-963b-b752459be545', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def get_agent_requests_for_deployment_machines(self, project, deployment_group_id, machine_ids=None, completed_request_count=None): + """GetAgentRequestsForDeploymentMachines. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param [int] machine_ids: + :param int completed_request_count: + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if machine_ids is not None: + machine_ids = ",".join(map(str, machine_ids)) + query_parameters['machineIds'] = self._serialize.query('machine_ids', machine_ids, 'str') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='a3540e5b-f0dc-4668-963b-b752459be545', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def refresh_deployment_machines(self, project, deployment_group_id): + """RefreshDeploymentMachines. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + self._send(http_method='POST', + location_id='91006ac4-0f68-4d82-a2bc-540676bd73ce', + version='4.1-preview.1', + route_values=route_values) + + def generate_deployment_pool_access_token(self, pool_id): + """GenerateDeploymentPoolAccessToken. + [Preview API] + :param int pool_id: + :rtype: str + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + response = self._send(http_method='POST', + location_id='e077ee4a-399b-420b-841f-c43fbc058e0b', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def get_deployment_pools_summary(self, pool_name=None, expands=None): + """GetDeploymentPoolsSummary. + [Preview API] Get the deployment pools summary. + :param str pool_name: Get summary of deployment pools with name containing poolName. + :param str expands: Populate Deployment groups references if set to DeploymentGroups. Default is **None** + :rtype: [DeploymentPoolSummary] + """ + query_parameters = {} + if pool_name is not None: + query_parameters['poolName'] = self._serialize.query('pool_name', pool_name, 'str') + if expands is not None: + query_parameters['expands'] = self._serialize.query('expands', expands, 'str') + response = self._send(http_method='GET', + location_id='6525d6c6-258f-40e0-a1a9-8a24a3957625', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentPoolSummary]', response) + + def get_agent_requests_for_deployment_target(self, project, deployment_group_id, target_id, completed_request_count=None): + """GetAgentRequestsForDeploymentTarget. + [Preview API] Get agent requests for a deployment target. + :param str project: Project ID or project name + :param int deployment_group_id: Id of the deployment group to which target belongs. + :param int target_id: Id of the deployment target to get. + :param int completed_request_count: Maximum count of completed requests to get. + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if target_id is not None: + query_parameters['targetId'] = self._serialize.query('target_id', target_id, 'int') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='2fac0be3-8c8f-4473-ab93-c1389b08a2c9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def get_agent_requests_for_deployment_targets(self, project, deployment_group_id, target_ids=None, completed_request_count=None): + """GetAgentRequestsForDeploymentTargets. + [Preview API] Get agent requests for deployment targets. + :param str project: Project ID or project name + :param int deployment_group_id: Id of the deployment group to which targets belongs. + :param [int] target_ids: Ids of the deployment target to get. + :param int completed_request_count: Maximum count of completed requests to get. + :rtype: [TaskAgentJobRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if target_ids is not None: + target_ids = ",".join(map(str, target_ids)) + query_parameters['targetIds'] = self._serialize.query('target_ids', target_ids, 'str') + if completed_request_count is not None: + query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') + response = self._send(http_method='GET', + location_id='2fac0be3-8c8f-4473-ab93-c1389b08a2c9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentJobRequest]', response) + + def query_endpoint(self, endpoint): + """QueryEndpoint. + [Preview API] Proxy for a GET request defined by an 'endpoint'. The request is authorized using a service connection. The response is filtered using an XPath/Json based selector. + :param :class:` ` endpoint: Describes the URL to fetch. + :rtype: [str] + """ + content = self._serialize.body(endpoint, 'TaskDefinitionEndpoint') + response = self._send(http_method='POST', + location_id='f223b809-8c33-4b7d-b53f-07232569b5d6', + version='4.1-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): + """GetServiceEndpointExecutionRecords. + [Preview API] + :param str project: Project ID or project name + :param str endpoint_id: + :param int top: + :rtype: [ServiceEndpointExecutionRecord] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='3ad71e20-7586-45f9-a6c8-0342e00835ac', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpointExecutionRecord]', response) + + def add_service_endpoint_execution_records(self, input, project): + """AddServiceEndpointExecutionRecords. + [Preview API] + :param :class:` ` input: + :param str project: Project ID or project name + :rtype: [ServiceEndpointExecutionRecord] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(input, 'ServiceEndpointExecutionRecordsInput') + response = self._send(http_method='POST', + location_id='11a45c69-2cce-4ade-a361-c9f5a37239ee', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[ServiceEndpointExecutionRecord]', response) + + def validate_inputs(self, input_validation_request): + """ValidateInputs. + [Preview API] + :param :class:` ` input_validation_request: + :rtype: :class:` ` + """ + content = self._serialize.body(input_validation_request, 'InputValidationRequest') + response = self._send(http_method='POST', + location_id='58475b1e-adaf-4155-9bc1-e04bf1fff4c2', + version='4.1-preview.1', + content=content) + return self._deserialize('InputValidationRequest', response) + + def generate_deployment_machine_group_access_token(self, project, machine_group_id): + """GenerateDeploymentMachineGroupAccessToken. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + :rtype: str + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + response = self._send(http_method='POST', + location_id='f8c7c0de-ac0d-469b-9cb1-c21f72d67693', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def add_deployment_machine_group(self, machine_group, project): + """AddDeploymentMachineGroup. + [Preview API] + :param :class:` ` machine_group: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(machine_group, 'DeploymentMachineGroup') + response = self._send(http_method='POST', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachineGroup', response) + + def delete_deployment_machine_group(self, project, machine_group_id): + """DeleteDeploymentMachineGroup. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + self._send(http_method='DELETE', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.1-preview.1', + route_values=route_values) + + def get_deployment_machine_group(self, project, machine_group_id, action_filter=None): + """GetDeploymentMachineGroup. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + :param str action_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + query_parameters = {} + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentMachineGroup', response) + + def get_deployment_machine_groups(self, project, machine_group_name=None, action_filter=None): + """GetDeploymentMachineGroups. + [Preview API] + :param str project: Project ID or project name + :param str machine_group_name: + :param str action_filter: + :rtype: [DeploymentMachineGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if machine_group_name is not None: + query_parameters['machineGroupName'] = self._serialize.query('machine_group_name', machine_group_name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentMachineGroup]', response) + + def update_deployment_machine_group(self, machine_group, project, machine_group_id): + """UpdateDeploymentMachineGroup. + [Preview API] + :param :class:` ` machine_group: + :param str project: Project ID or project name + :param int machine_group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + content = self._serialize.body(machine_group, 'DeploymentMachineGroup') + response = self._send(http_method='PATCH', + location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachineGroup', response) + + def get_deployment_machine_group_machines(self, project, machine_group_id, tag_filters=None): + """GetDeploymentMachineGroupMachines. + [Preview API] + :param str project: Project ID or project name + :param int machine_group_id: + :param [str] tag_filters: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + query_parameters = {} + if tag_filters is not None: + tag_filters = ",".join(tag_filters) + query_parameters['tagFilters'] = self._serialize.query('tag_filters', tag_filters, 'str') + response = self._send(http_method='GET', + location_id='966c3874-c347-4b18-a90c-d509116717fd', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def update_deployment_machine_group_machines(self, deployment_machines, project, machine_group_id): + """UpdateDeploymentMachineGroupMachines. + [Preview API] + :param [DeploymentMachine] deployment_machines: + :param str project: Project ID or project name + :param int machine_group_id: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if machine_group_id is not None: + route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') + content = self._serialize.body(deployment_machines, '[DeploymentMachine]') + response = self._send(http_method='PATCH', + location_id='966c3874-c347-4b18-a90c-d509116717fd', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def add_deployment_machine(self, machine, project, deployment_group_id): + """AddDeploymentMachine. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='POST', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def delete_deployment_machine(self, project, deployment_group_id, machine_id): + """DeleteDeploymentMachine. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + self._send(http_method='DELETE', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.1-preview.1', + route_values=route_values) + + def get_deployment_machine(self, project, deployment_group_id, machine_id, expand=None): + """GetDeploymentMachine. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentMachine', response) + + def get_deployment_machines(self, project, deployment_group_id, tags=None, name=None, expand=None): + """GetDeploymentMachines. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param [str] tags: + :param str name: + :param str expand: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if tags is not None: + tags = ",".join(tags) + query_parameters['tags'] = self._serialize.query('tags', tags, 'str') + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def replace_deployment_machine(self, machine, project, deployment_group_id, machine_id): + """ReplaceDeploymentMachine. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='PUT', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def update_deployment_machine(self, machine, project, deployment_group_id, machine_id): + """UpdateDeploymentMachine. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :param int machine_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if machine_id is not None: + route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='PATCH', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def update_deployment_machines(self, machines, project, deployment_group_id): + """UpdateDeploymentMachines. + [Preview API] + :param [DeploymentMachine] machines: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(machines, '[DeploymentMachine]') + response = self._send(http_method='PATCH', + location_id='6f6d406f-cfe6-409c-9327-7009928077e7', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def create_agent_pool_maintenance_definition(self, definition, pool_id): + """CreateAgentPoolMaintenanceDefinition. + [Preview API] + :param :class:` ` definition: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') + response = self._send(http_method='POST', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) + + def delete_agent_pool_maintenance_definition(self, pool_id, definition_id): + """DeleteAgentPoolMaintenanceDefinition. + [Preview API] + :param int pool_id: + :param int definition_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + self._send(http_method='DELETE', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.1-preview.1', + route_values=route_values) + + def get_agent_pool_maintenance_definition(self, pool_id, definition_id): + """GetAgentPoolMaintenanceDefinition. + [Preview API] + :param int pool_id: + :param int definition_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) + + def get_agent_pool_maintenance_definitions(self, pool_id): + """GetAgentPoolMaintenanceDefinitions. + [Preview API] + :param int pool_id: + :rtype: [TaskAgentPoolMaintenanceDefinition] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + response = self._send(http_method='GET', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskAgentPoolMaintenanceDefinition]', response) + + def update_agent_pool_maintenance_definition(self, definition, pool_id, definition_id): + """UpdateAgentPoolMaintenanceDefinition. + [Preview API] + :param :class:` ` definition: + :param int pool_id: + :param int definition_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') + response = self._send(http_method='PUT', + location_id='80572e16-58f0-4419-ac07-d19fde32195c', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) + + def delete_agent_pool_maintenance_job(self, pool_id, job_id): + """DeleteAgentPoolMaintenanceJob. + [Preview API] + :param int pool_id: + :param int job_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + self._send(http_method='DELETE', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.1-preview.1', + route_values=route_values) + + def get_agent_pool_maintenance_job(self, pool_id, job_id): + """GetAgentPoolMaintenanceJob. + [Preview API] + :param int pool_id: + :param int job_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + response = self._send(http_method='GET', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentPoolMaintenanceJob', response) + + def get_agent_pool_maintenance_job_logs(self, pool_id, job_id): + """GetAgentPoolMaintenanceJobLogs. + [Preview API] + :param int pool_id: + :param int job_id: + :rtype: object + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + response = self._send(http_method='GET', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_agent_pool_maintenance_jobs(self, pool_id, definition_id=None): + """GetAgentPoolMaintenanceJobs. + [Preview API] + :param int pool_id: + :param int definition_id: + :rtype: [TaskAgentPoolMaintenanceJob] + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentPoolMaintenanceJob]', response) + + def queue_agent_pool_maintenance_job(self, job, pool_id): + """QueueAgentPoolMaintenanceJob. + [Preview API] + :param :class:` ` job: + :param int pool_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') + response = self._send(http_method='POST', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceJob', response) + + def update_agent_pool_maintenance_job(self, job, pool_id, job_id): + """UpdateAgentPoolMaintenanceJob. + [Preview API] + :param :class:` ` job: + :param int pool_id: + :param int job_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if job_id is not None: + route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') + content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') + response = self._send(http_method='PATCH', + location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentPoolMaintenanceJob', response) + + def delete_message(self, pool_id, message_id, session_id): + """DeleteMessage. + [Preview API] + :param int pool_id: + :param long message_id: + :param str session_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if message_id is not None: + route_values['messageId'] = self._serialize.url('message_id', message_id, 'long') + query_parameters = {} + if session_id is not None: + query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') + self._send(http_method='DELETE', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_message(self, pool_id, session_id, last_message_id=None): + """GetMessage. + [Preview API] + :param int pool_id: + :param str session_id: + :param long last_message_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if session_id is not None: + query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') + if last_message_id is not None: + query_parameters['lastMessageId'] = self._serialize.query('last_message_id', last_message_id, 'long') + response = self._send(http_method='GET', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgentMessage', response) + + def refresh_agent(self, pool_id, agent_id): + """RefreshAgent. + [Preview API] + :param int pool_id: + :param int agent_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if agent_id is not None: + query_parameters['agentId'] = self._serialize.query('agent_id', agent_id, 'int') + self._send(http_method='POST', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def refresh_agents(self, pool_id): + """RefreshAgents. + [Preview API] + :param int pool_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + self._send(http_method='POST', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.1-preview.1', + route_values=route_values) + + def send_message(self, message, pool_id, request_id): + """SendMessage. + [Preview API] + :param :class:` ` message: + :param int pool_id: + :param long request_id: + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + query_parameters = {} + if request_id is not None: + query_parameters['requestId'] = self._serialize.query('request_id', request_id, 'long') + content = self._serialize.body(message, 'TaskAgentMessage') + self._send(http_method='POST', + location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + + def get_package(self, package_type, platform, version): + """GetPackage. + [Preview API] + :param str package_type: + :param str platform: + :param str version: + :rtype: :class:` ` + """ + route_values = {} + if package_type is not None: + route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') + if platform is not None: + route_values['platform'] = self._serialize.url('platform', platform, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='8ffcd551-079c-493a-9c02-54346299d144', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('PackageMetadata', response) + + def get_packages(self, package_type, platform=None, top=None): + """GetPackages. + [Preview API] + :param str package_type: + :param str platform: + :param int top: + :rtype: [PackageMetadata] + """ + route_values = {} + if package_type is not None: + route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') + if platform is not None: + route_values['platform'] = self._serialize.url('platform', platform, 'str') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='8ffcd551-079c-493a-9c02-54346299d144', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[PackageMetadata]', response) + + def add_agent_queue(self, queue, project=None): + """AddAgentQueue. + [Preview API] + :param :class:` ` queue: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(queue, 'TaskAgentQueue') + response = self._send(http_method='POST', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgentQueue', response) + + def create_team_project(self, project=None): + """CreateTeamProject. + [Preview API] + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + self._send(http_method='PUT', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.1-preview.1', + route_values=route_values) + + def delete_agent_queue(self, queue_id, project=None): + """DeleteAgentQueue. + [Preview API] + :param int queue_id: + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if queue_id is not None: + route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') + self._send(http_method='DELETE', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.1-preview.1', + route_values=route_values) + + def get_agent_queue(self, queue_id, project=None, action_filter=None): + """GetAgentQueue. + [Preview API] + :param int queue_id: + :param str project: Project ID or project name + :param str action_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if queue_id is not None: + route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') + query_parameters = {} + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgentQueue', response) + + def get_agent_queues(self, project=None, queue_name=None, action_filter=None): + """GetAgentQueues. + [Preview API] + :param str project: Project ID or project name + :param str queue_name: + :param str action_filter: + :rtype: [TaskAgentQueue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if queue_name is not None: + query_parameters['queueName'] = self._serialize.query('queue_name', queue_name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentQueue]', response) + + def get_agent_queues_by_ids(self, queue_ids, project=None, action_filter=None): + """GetAgentQueuesByIds. + [Preview API] + :param [int] queue_ids: + :param str project: Project ID or project name + :param str action_filter: + :rtype: [TaskAgentQueue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if queue_ids is not None: + queue_ids = ",".join(map(str, queue_ids)) + query_parameters['queueIds'] = self._serialize.query('queue_ids', queue_ids, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentQueue]', response) + + def get_agent_queues_by_names(self, queue_names, project=None, action_filter=None): + """GetAgentQueuesByNames. + [Preview API] + :param [str] queue_names: + :param str project: Project ID or project name + :param str action_filter: + :rtype: [TaskAgentQueue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if queue_names is not None: + queue_names = ",".join(queue_names) + query_parameters['queueNames'] = self._serialize.query('queue_names', queue_names, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='900fa995-c559-4923-aae7-f8424fe4fbea', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskAgentQueue]', response) + + def get_task_group_history(self, project, task_group_id): + """GetTaskGroupHistory. + [Preview API] + :param str project: Project ID or project name + :param str task_group_id: + :rtype: [TaskGroupRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + response = self._send(http_method='GET', + location_id='100cc92a-b255-47fa-9ab3-e44a2985a3ac', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TaskGroupRevision]', response) + + def delete_secure_file(self, project, secure_file_id): + """DeleteSecureFile. + [Preview API] Delete a secure file + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + self._send(http_method='DELETE', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values) + + def download_secure_file(self, project, secure_file_id, ticket, download=None): + """DownloadSecureFile. + [Preview API] Download a secure file by Id + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + :param str ticket: A valid download ticket + :param bool download: If download is true, the file is sent as attachement in the response body. If download is false, the response body contains the file stream. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + query_parameters = {} + if ticket is not None: + query_parameters['ticket'] = self._serialize.query('ticket', ticket, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_secure_file(self, project, secure_file_id, include_download_ticket=None, action_filter=None): + """GetSecureFile. + [Preview API] Get a secure file + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + :param bool include_download_ticket: If includeDownloadTicket is true and the caller has permissions, a download ticket is included in the response. + :param str action_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + query_parameters = {} + if include_download_ticket is not None: + query_parameters['includeDownloadTicket'] = self._serialize.query('include_download_ticket', include_download_ticket, 'bool') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('SecureFile', response) + + def get_secure_files(self, project, name_pattern=None, include_download_tickets=None, action_filter=None): + """GetSecureFiles. + [Preview API] Get secure files + :param str project: Project ID or project name + :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. + :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. + :param str action_filter: Filter by secure file permissions for View, Manage or Use action. Defaults to View. + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name_pattern is not None: + query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') + if include_download_tickets is not None: + query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def get_secure_files_by_ids(self, project, secure_file_ids, include_download_tickets=None, action_filter=None): + """GetSecureFilesByIds. + [Preview API] Get secure files + :param str project: Project ID or project name + :param [str] secure_file_ids: A list of secure file Ids + :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. + :param str action_filter: + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if secure_file_ids is not None: + secure_file_ids = ",".join(secure_file_ids) + query_parameters['secureFileIds'] = self._serialize.query('secure_file_ids', secure_file_ids, 'str') + if include_download_tickets is not None: + query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def get_secure_files_by_names(self, project, secure_file_names, include_download_tickets=None, action_filter=None): + """GetSecureFilesByNames. + [Preview API] Get secure files + :param str project: Project ID or project name + :param [str] secure_file_names: A list of secure file Ids + :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. + :param str action_filter: + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if secure_file_names is not None: + secure_file_names = ",".join(secure_file_names) + query_parameters['secureFileNames'] = self._serialize.query('secure_file_names', secure_file_names, 'str') + if include_download_tickets is not None: + query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def query_secure_files_by_properties(self, condition, project, name_pattern=None): + """QuerySecureFilesByProperties. + [Preview API] Query secure files using a name pattern and a condition on file properties. + :param str condition: The main condition syntax is described [here](https://go.microsoft.com/fwlink/?linkid=842996). Use the *property('property-name')* function to access the value of the specified property of a secure file. It returns null if the property is not set. E.g. ``` and( eq( property('devices'), '2' ), in( property('provisioning profile type'), 'ad hoc', 'development' ) ) ``` + :param str project: Project ID or project name + :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name_pattern is not None: + query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') + content = self._serialize.body(condition, 'str') + response = self._send(http_method='POST', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def update_secure_file(self, secure_file, project, secure_file_id): + """UpdateSecureFile. + [Preview API] Update the name or properties of an existing secure file + :param :class:` ` secure_file: The secure file with updated name and/or properties + :param str project: Project ID or project name + :param str secure_file_id: The unique secure file Id + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if secure_file_id is not None: + route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') + content = self._serialize.body(secure_file, 'SecureFile') + response = self._send(http_method='PATCH', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SecureFile', response) + + def update_secure_files(self, secure_files, project): + """UpdateSecureFiles. + [Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge. + :param [SecureFile] secure_files: A list of secure file objects. Only three field must be populated Id, Name, and Properties. The rest of fields in the object are ignored. + :param str project: Project ID or project name + :rtype: [SecureFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(secure_files, '[SecureFile]') + response = self._send(http_method='PATCH', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[SecureFile]', response) + + def upload_secure_file(self, upload_stream, project, name): + """UploadSecureFile. + [Preview API] Upload a secure file, include the file stream in the request body + :param object upload_stream: Stream to upload + :param str project: Project ID or project name + :param str name: Name of the file to upload + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + return self._deserialize('SecureFile', response) + + def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): + """ExecuteServiceEndpointRequest. + [Preview API] + :param :class:` ` service_endpoint_request: + :param str project: Project ID or project name + :param str endpoint_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if endpoint_id is not None: + query_parameters['endpointId'] = self._serialize.query('endpoint_id', endpoint_id, 'str') + content = self._serialize.body(service_endpoint_request, 'ServiceEndpointRequest') + response = self._send(http_method='POST', + location_id='f956a7de-d766-43af-81b1-e9e349245634', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpointRequestResult', response) + + def create_service_endpoint(self, endpoint, project): + """CreateServiceEndpoint. + [Preview API] + :param :class:` ` endpoint: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='POST', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def delete_service_endpoint(self, project, endpoint_id): + """DeleteServiceEndpoint. + [Preview API] + :param str project: Project ID or project name + :param str endpoint_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + self._send(http_method='DELETE', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.1-preview.2', + route_values=route_values) + + def get_service_endpoint_details(self, project, endpoint_id): + """GetServiceEndpointDetails. + [Preview API] + :param str project: Project ID or project name + :param str endpoint_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + response = self._send(http_method='GET', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('ServiceEndpoint', response) + + def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, include_failed=None): + """GetServiceEndpoints. + [Preview API] + :param str project: Project ID or project name + :param str type: + :param [str] auth_schemes: + :param [str] endpoint_ids: + :param bool include_failed: + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if auth_schemes is not None: + auth_schemes = ",".join(auth_schemes) + query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') + if endpoint_ids is not None: + endpoint_ids = ",".join(endpoint_ids) + query_parameters['endpointIds'] = self._serialize.query('endpoint_ids', endpoint_ids, 'str') + if include_failed is not None: + query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + response = self._send(http_method='GET', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def get_service_endpoints_by_names(self, project, endpoint_names, type=None, auth_schemes=None, include_failed=None): + """GetServiceEndpointsByNames. + [Preview API] + :param str project: Project ID or project name + :param [str] endpoint_names: + :param str type: + :param [str] auth_schemes: + :param bool include_failed: + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if endpoint_names is not None: + endpoint_names = ",".join(endpoint_names) + query_parameters['endpointNames'] = self._serialize.query('endpoint_names', endpoint_names, 'str') + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if auth_schemes is not None: + auth_schemes = ",".join(auth_schemes) + query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') + if include_failed is not None: + query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + response = self._send(http_method='GET', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): + """UpdateServiceEndpoint. + [Preview API] + :param :class:` ` endpoint: + :param str project: Project ID or project name + :param str endpoint_id: + :param str operation: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if operation is not None: + query_parameters['operation'] = self._serialize.query('operation', operation, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='PUT', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def update_service_endpoints(self, endpoints, project): + """UpdateServiceEndpoints. + [Preview API] + :param [ServiceEndpoint] endpoints: + :param str project: Project ID or project name + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoints, '[ServiceEndpoint]') + response = self._send(http_method='PUT', + location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', + version='4.1-preview.2', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def get_service_endpoint_types(self, type=None, scheme=None): + """GetServiceEndpointTypes. + [Preview API] + :param str type: + :param str scheme: + :rtype: [ServiceEndpointType] + """ + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if scheme is not None: + query_parameters['scheme'] = self._serialize.query('scheme', scheme, 'str') + response = self._send(http_method='GET', + location_id='7c74af83-8605-45c1-a30b-7a05d5d7f8c1', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpointType]', response) + + def add_deployment_target(self, machine, project, deployment_group_id): + """AddDeploymentTarget. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='POST', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def delete_deployment_target(self, project, deployment_group_id, target_id): + """DeleteDeploymentTarget. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int target_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if target_id is not None: + route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') + self._send(http_method='DELETE', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='4.1-preview.1', + route_values=route_values) + + def get_deployment_target(self, project, deployment_group_id, target_id, expand=None): + """GetDeploymentTarget. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param int target_id: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if target_id is not None: + route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentMachine', response) + + def get_deployment_targets(self, project, deployment_group_id, tags=None, name=None, partial_name_match=None, expand=None, agent_status=None, agent_job_result=None, continuation_token=None, top=None): + """GetDeploymentTargets. + [Preview API] + :param str project: Project ID or project name + :param int deployment_group_id: + :param [str] tags: + :param str name: + :param bool partial_name_match: + :param str expand: + :param str agent_status: + :param str agent_job_result: + :param str continuation_token: + :param int top: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if tags is not None: + tags = ",".join(tags) + query_parameters['tags'] = self._serialize.query('tags', tags, 'str') + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if partial_name_match is not None: + query_parameters['partialNameMatch'] = self._serialize.query('partial_name_match', partial_name_match, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if agent_status is not None: + query_parameters['agentStatus'] = self._serialize.query('agent_status', agent_status, 'str') + if agent_job_result is not None: + query_parameters['agentJobResult'] = self._serialize.query('agent_job_result', agent_job_result, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def replace_deployment_target(self, machine, project, deployment_group_id, target_id): + """ReplaceDeploymentTarget. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :param int target_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if target_id is not None: + route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='PUT', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def update_deployment_target(self, machine, project, deployment_group_id, target_id): + """UpdateDeploymentTarget. + [Preview API] + :param :class:` ` machine: + :param str project: Project ID or project name + :param int deployment_group_id: + :param int target_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if target_id is not None: + route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') + content = self._serialize.body(machine, 'DeploymentMachine') + response = self._send(http_method='PATCH', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentMachine', response) + + def update_deployment_targets(self, machines, project, deployment_group_id): + """UpdateDeploymentTargets. + [Preview API] + :param [DeploymentMachine] machines: + :param str project: Project ID or project name + :param int deployment_group_id: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(machines, '[DeploymentMachine]') + response = self._send(http_method='PATCH', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[DeploymentMachine]', response) + + def add_task_group(self, task_group, project): + """AddTaskGroup. + [Preview API] Create a task group. + :param :class:` ` task_group: Task group object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(task_group, 'TaskGroupCreateParameter') + response = self._send(http_method='POST', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskGroup', response) + + def delete_task_group(self, project, task_group_id, comment=None): + """DeleteTaskGroup. + [Preview API] Delete a task group. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group to be deleted. + :param str comment: Comments to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + self._send(http_method='DELETE', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_filter=None, deleted=None): + """GetTaskGroups. + [Preview API] Get a list of task groups. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group. + :param bool expanded: 'true' to recursively expand task groups. Default is 'false'. + :param str task_id_filter: Guid of the taskId to filter. + :param bool deleted: 'true'to include deleted task groups. Default is 'false'. + :rtype: [TaskGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if expanded is not None: + query_parameters['expanded'] = self._serialize.query('expanded', expanded, 'bool') + if task_id_filter is not None: + query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') + if deleted is not None: + query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + response = self._send(http_method='GET', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskGroup]', response) + + def update_task_group(self, task_group, project, task_group_id=None): + """UpdateTaskGroup. + [Preview API] Update a task group. + :param :class:` ` task_group: Task group to update. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + content = self._serialize.body(task_group, 'TaskGroupUpdateParameter') + response = self._send(http_method='PUT', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskGroup', response) + + def delete_task_definition(self, task_id): + """DeleteTaskDefinition. + [Preview API] + :param str task_id: + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + self._send(http_method='DELETE', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.1-preview.1', + route_values=route_values) + + def get_task_content_zip(self, task_id, version_string, visibility=None, scope_local=None): + """GetTaskContentZip. + [Preview API] + :param str task_id: + :param str version_string: + :param [str] visibility: + :param bool scope_local: + :rtype: object + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + if version_string is not None: + route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') + query_parameters = {} + if visibility is not None: + query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') + if scope_local is not None: + query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') + response = self._send(http_method='GET', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_task_definition(self, task_id, version_string, visibility=None, scope_local=None): + """GetTaskDefinition. + [Preview API] + :param str task_id: + :param str version_string: + :param [str] visibility: + :param bool scope_local: + :rtype: :class:` ` + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + if version_string is not None: + route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') + query_parameters = {} + if visibility is not None: + query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') + if scope_local is not None: + query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') + response = self._send(http_method='GET', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskDefinition', response) + + def get_task_definitions(self, task_id=None, visibility=None, scope_local=None): + """GetTaskDefinitions. + [Preview API] + :param str task_id: + :param [str] visibility: + :param bool scope_local: + :rtype: [TaskDefinition] + """ + route_values = {} + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') + query_parameters = {} + if visibility is not None: + query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') + if scope_local is not None: + query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') + response = self._send(http_method='GET', + location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TaskDefinition]', response) + + def update_agent_update_state(self, pool_id, agent_id, current_state): + """UpdateAgentUpdateState. + [Preview API] + :param int pool_id: + :param int agent_id: + :param str current_state: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + query_parameters = {} + if current_state is not None: + query_parameters['currentState'] = self._serialize.query('current_state', current_state, 'str') + response = self._send(http_method='PUT', + location_id='8cc1b02b-ae49-4516-b5ad-4f9b29967c30', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TaskAgent', response) + + def update_agent_user_capabilities(self, user_capabilities, pool_id, agent_id): + """UpdateAgentUserCapabilities. + [Preview API] + :param {str} user_capabilities: + :param int pool_id: + :param int agent_id: + :rtype: :class:` ` + """ + route_values = {} + if pool_id is not None: + route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') + if agent_id is not None: + route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') + content = self._serialize.body(user_capabilities, '{str}') + response = self._send(http_method='PUT', + location_id='30ba3ada-fedf-4da8-bbb5-dacf2f82e176', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskAgent', response) + + def add_variable_group(self, group, project): + """AddVariableGroup. + [Preview API] + :param :class:` ` group: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(group, 'VariableGroup') + response = self._send(http_method='POST', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('VariableGroup', response) + + def delete_variable_group(self, project, group_id): + """DeleteVariableGroup. + [Preview API] + :param str project: Project ID or project name + :param int group_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + self._send(http_method='DELETE', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.1-preview.1', + route_values=route_values) + + def get_variable_group(self, project, group_id): + """GetVariableGroup. + [Preview API] + :param str project: Project ID or project name + :param int group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('VariableGroup', response) + + def get_variable_groups(self, project, group_name=None, action_filter=None): + """GetVariableGroups. + [Preview API] + :param str project: Project ID or project name + :param str group_name: + :param str action_filter: + :rtype: [VariableGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if group_name is not None: + query_parameters['groupName'] = self._serialize.query('group_name', group_name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[VariableGroup]', response) + + def get_variable_groups_by_id(self, project, group_ids): + """GetVariableGroupsById. + [Preview API] + :param str project: Project ID or project name + :param [int] group_ids: + :rtype: [VariableGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if group_ids is not None: + group_ids = ",".join(map(str, group_ids)) + query_parameters['groupIds'] = self._serialize.query('group_ids', group_ids, 'str') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[VariableGroup]', response) + + def update_variable_group(self, group, project, group_id): + """UpdateVariableGroup. + [Preview API] + :param :class:` ` group: + :param str project: Project ID or project name + :param int group_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + content = self._serialize.body(group, 'VariableGroup') + response = self._send(http_method='PUT', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('VariableGroup', response) + + def acquire_access_token(self, authentication_request): + """AcquireAccessToken. + [Preview API] + :param :class:` ` authentication_request: + :rtype: :class:` ` + """ + content = self._serialize.body(authentication_request, 'AadOauthTokenRequest') + response = self._send(http_method='POST', + location_id='9c63205e-3a0f-42a0-ad88-095200f13607', + version='4.1-preview.1', + content=content) + return self._deserialize('AadOauthTokenResult', response) + + def create_aad_oAuth_request(self, tenant_id, redirect_uri, prompt_option=None, complete_callback_payload=None): + """CreateAadOAuthRequest. + [Preview API] + :param str tenant_id: + :param str redirect_uri: + :param str prompt_option: + :param str complete_callback_payload: + :rtype: str + """ + query_parameters = {} + if tenant_id is not None: + query_parameters['tenantId'] = self._serialize.query('tenant_id', tenant_id, 'str') + if redirect_uri is not None: + query_parameters['redirectUri'] = self._serialize.query('redirect_uri', redirect_uri, 'str') + if prompt_option is not None: + query_parameters['promptOption'] = self._serialize.query('prompt_option', prompt_option, 'str') + if complete_callback_payload is not None: + query_parameters['completeCallbackPayload'] = self._serialize.query('complete_callback_payload', complete_callback_payload, 'str') + response = self._send(http_method='POST', + location_id='9c63205e-3a0f-42a0-ad88-095200f13607', + version='4.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('str', response) + + def get_vsts_aad_tenant_id(self): + """GetVstsAadTenantId. + [Preview API] + :rtype: str + """ + response = self._send(http_method='GET', + location_id='9c63205e-3a0f-42a0-ad88-095200f13607', + version='4.1-preview.1') + return self._deserialize('str', response) + diff --git a/vsts/vsts/test/v4_1/__init__.py b/vsts/vsts/test/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/test/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/test/v4_1/models/__init__.py b/vsts/vsts/test/v4_1/models/__init__.py new file mode 100644 index 00000000..36dcb63f --- /dev/null +++ b/vsts/vsts/test/v4_1/models/__init__.py @@ -0,0 +1,205 @@ +# -------------------------------------------------------------------------------------------- +# 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 .aggregated_data_for_result_trend import AggregatedDataForResultTrend +from .aggregated_results_analysis import AggregatedResultsAnalysis +from .aggregated_results_by_outcome import AggregatedResultsByOutcome +from .aggregated_results_difference import AggregatedResultsDifference +from .build_configuration import BuildConfiguration +from .build_coverage import BuildCoverage +from .build_reference import BuildReference +from .clone_operation_information import CloneOperationInformation +from .clone_options import CloneOptions +from .clone_statistics import CloneStatistics +from .code_coverage_data import CodeCoverageData +from .code_coverage_statistics import CodeCoverageStatistics +from .code_coverage_summary import CodeCoverageSummary +from .coverage_statistics import CoverageStatistics +from .custom_test_field import CustomTestField +from .custom_test_field_definition import CustomTestFieldDefinition +from .dtl_environment_details import DtlEnvironmentDetails +from .failing_since import FailingSince +from .field_details_for_test_results import FieldDetailsForTestResults +from .function_coverage import FunctionCoverage +from .identity_ref import IdentityRef +from .last_result_details import LastResultDetails +from .linked_work_items_query import LinkedWorkItemsQuery +from .linked_work_items_query_result import LinkedWorkItemsQueryResult +from .module_coverage import ModuleCoverage +from .name_value_pair import NameValuePair +from .plan_update_model import PlanUpdateModel +from .point_assignment import PointAssignment +from .points_filter import PointsFilter +from .point_update_model import PointUpdateModel +from .property_bag import PropertyBag +from .query_model import QueryModel +from .release_environment_definition_reference import ReleaseEnvironmentDefinitionReference +from .release_reference import ReleaseReference +from .result_retention_settings import ResultRetentionSettings +from .results_filter import ResultsFilter +from .run_create_model import RunCreateModel +from .run_filter import RunFilter +from .run_statistic import RunStatistic +from .run_update_model import RunUpdateModel +from .shallow_reference import ShallowReference +from .shared_step_model import SharedStepModel +from .suite_create_model import SuiteCreateModel +from .suite_entry import SuiteEntry +from .suite_entry_update_model import SuiteEntryUpdateModel +from .suite_test_case import SuiteTestCase +from .suite_update_model import SuiteUpdateModel +from .team_context import TeamContext +from .team_project_reference import TeamProjectReference +from .test_action_result_model import TestActionResultModel +from .test_attachment import TestAttachment +from .test_attachment_reference import TestAttachmentReference +from .test_attachment_request_model import TestAttachmentRequestModel +from .test_case_result import TestCaseResult +from .test_case_result_attachment_model import TestCaseResultAttachmentModel +from .test_case_result_identifier import TestCaseResultIdentifier +from .test_case_result_update_model import TestCaseResultUpdateModel +from .test_configuration import TestConfiguration +from .test_environment import TestEnvironment +from .test_failure_details import TestFailureDetails +from .test_failures_analysis import TestFailuresAnalysis +from .test_iteration_details_model import TestIterationDetailsModel +from .test_message_log_details import TestMessageLogDetails +from .test_method import TestMethod +from .test_operation_reference import TestOperationReference +from .test_plan import TestPlan +from .test_plan_clone_request import TestPlanCloneRequest +from .test_point import TestPoint +from .test_points_query import TestPointsQuery +from .test_resolution_state import TestResolutionState +from .test_result_create_model import TestResultCreateModel +from .test_result_document import TestResultDocument +from .test_result_history import TestResultHistory +from .test_result_history_details_for_group import TestResultHistoryDetailsForGroup +from .test_result_model_base import TestResultModelBase +from .test_result_parameter_model import TestResultParameterModel +from .test_result_payload import TestResultPayload +from .test_results_context import TestResultsContext +from .test_results_details import TestResultsDetails +from .test_results_details_for_group import TestResultsDetailsForGroup +from .test_results_groups_for_build import TestResultsGroupsForBuild +from .test_results_groups_for_release import TestResultsGroupsForRelease +from .test_results_query import TestResultsQuery +from .test_result_summary import TestResultSummary +from .test_result_trend_filter import TestResultTrendFilter +from .test_run import TestRun +from .test_run_coverage import TestRunCoverage +from .test_run_statistic import TestRunStatistic +from .test_session import TestSession +from .test_settings import TestSettings +from .test_suite import TestSuite +from .test_suite_clone_request import TestSuiteCloneRequest +from .test_summary_for_work_item import TestSummaryForWorkItem +from .test_to_work_item_links import TestToWorkItemLinks +from .test_variable import TestVariable +from .work_item_reference import WorkItemReference +from .work_item_to_test_links import WorkItemToTestLinks + +__all__ = [ + 'AggregatedDataForResultTrend', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'BuildConfiguration', + 'BuildCoverage', + 'BuildReference', + 'CloneOperationInformation', + 'CloneOptions', + 'CloneStatistics', + 'CodeCoverageData', + 'CodeCoverageStatistics', + 'CodeCoverageSummary', + 'CoverageStatistics', + 'CustomTestField', + 'CustomTestFieldDefinition', + 'DtlEnvironmentDetails', + 'FailingSince', + 'FieldDetailsForTestResults', + 'FunctionCoverage', + 'IdentityRef', + 'LastResultDetails', + 'LinkedWorkItemsQuery', + 'LinkedWorkItemsQueryResult', + 'ModuleCoverage', + 'NameValuePair', + 'PlanUpdateModel', + 'PointAssignment', + 'PointsFilter', + 'PointUpdateModel', + 'PropertyBag', + 'QueryModel', + 'ReleaseEnvironmentDefinitionReference', + 'ReleaseReference', + 'ResultRetentionSettings', + 'ResultsFilter', + 'RunCreateModel', + 'RunFilter', + 'RunStatistic', + 'RunUpdateModel', + 'ShallowReference', + 'SharedStepModel', + 'SuiteCreateModel', + 'SuiteEntry', + 'SuiteEntryUpdateModel', + 'SuiteTestCase', + 'SuiteUpdateModel', + 'TeamContext', + 'TeamProjectReference', + 'TestActionResultModel', + 'TestAttachment', + 'TestAttachmentReference', + 'TestAttachmentRequestModel', + 'TestCaseResult', + 'TestCaseResultAttachmentModel', + 'TestCaseResultIdentifier', + 'TestCaseResultUpdateModel', + 'TestConfiguration', + 'TestEnvironment', + 'TestFailureDetails', + 'TestFailuresAnalysis', + 'TestIterationDetailsModel', + 'TestMessageLogDetails', + 'TestMethod', + 'TestOperationReference', + 'TestPlan', + 'TestPlanCloneRequest', + 'TestPoint', + 'TestPointsQuery', + 'TestResolutionState', + 'TestResultCreateModel', + 'TestResultDocument', + 'TestResultHistory', + 'TestResultHistoryDetailsForGroup', + 'TestResultModelBase', + 'TestResultParameterModel', + 'TestResultPayload', + 'TestResultsContext', + 'TestResultsDetails', + 'TestResultsDetailsForGroup', + 'TestResultsGroupsForBuild', + 'TestResultsGroupsForRelease', + 'TestResultsQuery', + 'TestResultSummary', + 'TestResultTrendFilter', + 'TestRun', + 'TestRunCoverage', + 'TestRunStatistic', + 'TestSession', + 'TestSettings', + 'TestSuite', + 'TestSuiteCloneRequest', + 'TestSummaryForWorkItem', + 'TestToWorkItemLinks', + 'TestVariable', + 'WorkItemReference', + 'WorkItemToTestLinks', +] diff --git a/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py b/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py new file mode 100644 index 00000000..fc5b6be0 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedDataForResultTrend(Model): + """AggregatedDataForResultTrend. + + :param duration: This is tests execution duration. + :type duration: object + :param results_by_outcome: + :type results_by_outcome: dict + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, results_by_outcome=None, test_results_context=None, total_tests=None): + super(AggregatedDataForResultTrend, self).__init__() + self.duration = duration + self.results_by_outcome = results_by_outcome + self.test_results_context = test_results_context + self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py b/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py new file mode 100644 index 00000000..ec00e302 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py @@ -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.serialization import Model + + +class AggregatedResultsAnalysis(Model): + """AggregatedResultsAnalysis. + + :param duration: + :type duration: object + :param not_reported_results_by_outcome: + :type not_reported_results_by_outcome: dict + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + :param results_by_outcome: + :type results_by_outcome: dict + :param results_difference: + :type results_difference: :class:`AggregatedResultsDifference ` + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, total_tests=None): + super(AggregatedResultsAnalysis, self).__init__() + self.duration = duration + self.not_reported_results_by_outcome = not_reported_results_by_outcome + self.previous_context = previous_context + self.results_by_outcome = results_by_outcome + self.results_difference = results_difference + self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py b/vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py new file mode 100644 index 00000000..e31fbdde --- /dev/null +++ b/vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py @@ -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.serialization import Model + + +class AggregatedResultsByOutcome(Model): + """AggregatedResultsByOutcome. + + :param count: + :type count: int + :param duration: + :type duration: object + :param group_by_field: + :type group_by_field: str + :param group_by_value: + :type group_by_value: object + :param outcome: + :type outcome: object + :param rerun_result_count: + :type rerun_result_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'object'}, + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} + } + + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): + super(AggregatedResultsByOutcome, self).__init__() + self.count = count + self.duration = duration + self.group_by_field = group_by_field + self.group_by_value = group_by_value + self.outcome = outcome + self.rerun_result_count = rerun_result_count diff --git a/vsts/vsts/test/v4_1/models/aggregated_results_difference.py b/vsts/vsts/test/v4_1/models/aggregated_results_difference.py new file mode 100644 index 00000000..5bc4af42 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/aggregated_results_difference.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedResultsDifference(Model): + """AggregatedResultsDifference. + + :param increase_in_duration: + :type increase_in_duration: object + :param increase_in_failures: + :type increase_in_failures: int + :param increase_in_other_tests: + :type increase_in_other_tests: int + :param increase_in_passed_tests: + :type increase_in_passed_tests: int + :param increase_in_total_tests: + :type increase_in_total_tests: int + """ + + _attribute_map = { + 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, + 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, + 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, + 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, + 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} + } + + def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): + super(AggregatedResultsDifference, self).__init__() + self.increase_in_duration = increase_in_duration + self.increase_in_failures = increase_in_failures + self.increase_in_other_tests = increase_in_other_tests + self.increase_in_passed_tests = increase_in_passed_tests + self.increase_in_total_tests = increase_in_total_tests diff --git a/vsts/vsts/test/v4_1/models/build_configuration.py b/vsts/vsts/test/v4_1/models/build_configuration.py new file mode 100644 index 00000000..970b738b --- /dev/null +++ b/vsts/vsts/test/v4_1/models/build_configuration.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BuildConfiguration(Model): + """BuildConfiguration. + + :param branch_name: + :type branch_name: str + :param build_definition_id: + :type build_definition_id: int + :param flavor: + :type flavor: str + :param id: + :type id: int + :param number: + :type number: str + :param platform: + :type platform: str + :param project: + :type project: :class:`ShallowReference ` + :param repository_id: + :type repository_id: int + :param source_version: + :type source_version: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'flavor': {'key': 'flavor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'repository_id': {'key': 'repositoryId', 'type': 'int'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): + super(BuildConfiguration, self).__init__() + self.branch_name = branch_name + self.build_definition_id = build_definition_id + self.flavor = flavor + self.id = id + self.number = number + self.platform = platform + self.project = project + self.repository_id = repository_id + self.source_version = source_version + self.uri = uri diff --git a/vsts/vsts/test/v4_1/models/build_coverage.py b/vsts/vsts/test/v4_1/models/build_coverage.py new file mode 100644 index 00000000..a1dc8ed2 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/build_coverage.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BuildCoverage(Model): + """BuildCoverage. + + :param code_coverage_file_url: + :type code_coverage_file_url: str + :param configuration: + :type configuration: :class:`BuildConfiguration ` + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + """ + + _attribute_map = { + 'code_coverage_file_url': {'key': 'codeCoverageFileUrl', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'BuildConfiguration'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, code_coverage_file_url=None, configuration=None, last_error=None, modules=None, state=None): + super(BuildCoverage, self).__init__() + self.code_coverage_file_url = code_coverage_file_url + self.configuration = configuration + self.last_error = last_error + self.modules = modules + self.state = state diff --git a/vsts/vsts/test/v4_1/models/build_reference.py b/vsts/vsts/test/v4_1/models/build_reference.py new file mode 100644 index 00000000..0abda1e9 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/build_reference.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BuildReference(Model): + """BuildReference. + + :param branch_name: + :type branch_name: str + :param build_system: + :type build_system: str + :param definition_id: + :type definition_id: int + :param id: + :type id: int + :param number: + :type number: str + :param repository_id: + :type repository_id: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_system': {'key': 'buildSystem', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_system=None, definition_id=None, id=None, number=None, repository_id=None, uri=None): + super(BuildReference, self).__init__() + self.branch_name = branch_name + self.build_system = build_system + self.definition_id = definition_id + self.id = id + self.number = number + self.repository_id = repository_id + self.uri = uri diff --git a/vsts/vsts/test/v4_1/models/clone_operation_information.py b/vsts/vsts/test/v4_1/models/clone_operation_information.py new file mode 100644 index 00000000..a80a88e0 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/clone_operation_information.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CloneOperationInformation(Model): + """CloneOperationInformation. + + :param clone_statistics: + :type clone_statistics: :class:`CloneStatistics ` + :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue + :type completion_date: datetime + :param creation_date: DateTime when the operation was started + :type creation_date: datetime + :param destination_object: Shallow reference of the destination + :type destination_object: :class:`ShallowReference ` + :param destination_plan: Shallow reference of the destination + :type destination_plan: :class:`ShallowReference ` + :param destination_project: Shallow reference of the destination + :type destination_project: :class:`ShallowReference ` + :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. + :type message: str + :param op_id: The ID of the operation + :type op_id: int + :param result_object_type: The type of the object generated as a result of the Clone operation + :type result_object_type: object + :param source_object: Shallow reference of the source + :type source_object: :class:`ShallowReference ` + :param source_plan: Shallow reference of the source + :type source_plan: :class:`ShallowReference ` + :param source_project: Shallow reference of the source + :type source_project: :class:`ShallowReference ` + :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete + :type state: object + :param url: Url for geting the clone information + :type url: str + """ + + _attribute_map = { + 'clone_statistics': {'key': 'cloneStatistics', 'type': 'CloneStatistics'}, + 'completion_date': {'key': 'completionDate', 'type': 'iso-8601'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'destination_object': {'key': 'destinationObject', 'type': 'ShallowReference'}, + 'destination_plan': {'key': 'destinationPlan', 'type': 'ShallowReference'}, + 'destination_project': {'key': 'destinationProject', 'type': 'ShallowReference'}, + 'message': {'key': 'message', 'type': 'str'}, + 'op_id': {'key': 'opId', 'type': 'int'}, + 'result_object_type': {'key': 'resultObjectType', 'type': 'object'}, + 'source_object': {'key': 'sourceObject', 'type': 'ShallowReference'}, + 'source_plan': {'key': 'sourcePlan', 'type': 'ShallowReference'}, + 'source_project': {'key': 'sourceProject', 'type': 'ShallowReference'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, clone_statistics=None, completion_date=None, creation_date=None, destination_object=None, destination_plan=None, destination_project=None, message=None, op_id=None, result_object_type=None, source_object=None, source_plan=None, source_project=None, state=None, url=None): + super(CloneOperationInformation, self).__init__() + self.clone_statistics = clone_statistics + self.completion_date = completion_date + self.creation_date = creation_date + self.destination_object = destination_object + self.destination_plan = destination_plan + self.destination_project = destination_project + self.message = message + self.op_id = op_id + self.result_object_type = result_object_type + self.source_object = source_object + self.source_plan = source_plan + self.source_project = source_project + self.state = state + self.url = url diff --git a/vsts/vsts/test/v4_1/models/clone_options.py b/vsts/vsts/test/v4_1/models/clone_options.py new file mode 100644 index 00000000..f048c1c9 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/clone_options.py @@ -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.serialization import Model + + +class CloneOptions(Model): + """CloneOptions. + + :param clone_requirements: If set to true requirements will be cloned + :type clone_requirements: bool + :param copy_all_suites: copy all suites from a source plan + :type copy_all_suites: bool + :param copy_ancestor_hierarchy: copy ancestor hieracrchy + :type copy_ancestor_hierarchy: bool + :param destination_work_item_type: Name of the workitem type of the clone + :type destination_work_item_type: str + :param override_parameters: Key value pairs where the key value is overridden by the value. + :type override_parameters: dict + :param related_link_comment: Comment on the link that will link the new clone test case to the original Set null for no comment + :type related_link_comment: str + """ + + _attribute_map = { + 'clone_requirements': {'key': 'cloneRequirements', 'type': 'bool'}, + 'copy_all_suites': {'key': 'copyAllSuites', 'type': 'bool'}, + 'copy_ancestor_hierarchy': {'key': 'copyAncestorHierarchy', 'type': 'bool'}, + 'destination_work_item_type': {'key': 'destinationWorkItemType', 'type': 'str'}, + 'override_parameters': {'key': 'overrideParameters', 'type': '{str}'}, + 'related_link_comment': {'key': 'relatedLinkComment', 'type': 'str'} + } + + def __init__(self, clone_requirements=None, copy_all_suites=None, copy_ancestor_hierarchy=None, destination_work_item_type=None, override_parameters=None, related_link_comment=None): + super(CloneOptions, self).__init__() + self.clone_requirements = clone_requirements + self.copy_all_suites = copy_all_suites + self.copy_ancestor_hierarchy = copy_ancestor_hierarchy + self.destination_work_item_type = destination_work_item_type + self.override_parameters = override_parameters + self.related_link_comment = related_link_comment diff --git a/vsts/vsts/test/v4_1/models/clone_statistics.py b/vsts/vsts/test/v4_1/models/clone_statistics.py new file mode 100644 index 00000000..f3ba75a3 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/clone_statistics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CloneStatistics(Model): + """CloneStatistics. + + :param cloned_requirements_count: Number of Requirments cloned so far. + :type cloned_requirements_count: int + :param cloned_shared_steps_count: Number of shared steps cloned so far. + :type cloned_shared_steps_count: int + :param cloned_test_cases_count: Number of test cases cloned so far + :type cloned_test_cases_count: int + :param total_requirements_count: Total number of requirements to be cloned + :type total_requirements_count: int + :param total_test_cases_count: Total number of test cases to be cloned + :type total_test_cases_count: int + """ + + _attribute_map = { + 'cloned_requirements_count': {'key': 'clonedRequirementsCount', 'type': 'int'}, + 'cloned_shared_steps_count': {'key': 'clonedSharedStepsCount', 'type': 'int'}, + 'cloned_test_cases_count': {'key': 'clonedTestCasesCount', 'type': 'int'}, + 'total_requirements_count': {'key': 'totalRequirementsCount', 'type': 'int'}, + 'total_test_cases_count': {'key': 'totalTestCasesCount', 'type': 'int'} + } + + def __init__(self, cloned_requirements_count=None, cloned_shared_steps_count=None, cloned_test_cases_count=None, total_requirements_count=None, total_test_cases_count=None): + super(CloneStatistics, self).__init__() + self.cloned_requirements_count = cloned_requirements_count + self.cloned_shared_steps_count = cloned_shared_steps_count + self.cloned_test_cases_count = cloned_test_cases_count + self.total_requirements_count = total_requirements_count + self.total_test_cases_count = total_test_cases_count diff --git a/vsts/vsts/test/v4_1/models/code_coverage_data.py b/vsts/vsts/test/v4_1/models/code_coverage_data.py new file mode 100644 index 00000000..0c88e782 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/code_coverage_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeCoverageData(Model): + """CodeCoverageData. + + :param build_flavor: Flavor of build for which data is retrieved/published + :type build_flavor: str + :param build_platform: Platform of build for which data is retrieved/published + :type build_platform: str + :param coverage_stats: List of coverage data for the build + :type coverage_stats: list of :class:`CodeCoverageStatistics ` + """ + + _attribute_map = { + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'coverage_stats': {'key': 'coverageStats', 'type': '[CodeCoverageStatistics]'} + } + + def __init__(self, build_flavor=None, build_platform=None, coverage_stats=None): + super(CodeCoverageData, self).__init__() + self.build_flavor = build_flavor + self.build_platform = build_platform + self.coverage_stats = coverage_stats diff --git a/vsts/vsts/test/v4_1/models/code_coverage_statistics.py b/vsts/vsts/test/v4_1/models/code_coverage_statistics.py new file mode 100644 index 00000000..aebd12a1 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/code_coverage_statistics.py @@ -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.serialization import Model + + +class CodeCoverageStatistics(Model): + """CodeCoverageStatistics. + + :param covered: Covered units + :type covered: int + :param delta: Delta of coverage + :type delta: number + :param is_delta_available: Is delta valid + :type is_delta_available: bool + :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) + :type label: str + :param position: Position of label + :type position: int + :param total: Total units + :type total: int + """ + + _attribute_map = { + 'covered': {'key': 'covered', 'type': 'int'}, + 'delta': {'key': 'delta', 'type': 'number'}, + 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'} + } + + def __init__(self, covered=None, delta=None, is_delta_available=None, label=None, position=None, total=None): + super(CodeCoverageStatistics, self).__init__() + self.covered = covered + self.delta = delta + self.is_delta_available = is_delta_available + self.label = label + self.position = position + self.total = total diff --git a/vsts/vsts/test/v4_1/models/code_coverage_summary.py b/vsts/vsts/test/v4_1/models/code_coverage_summary.py new file mode 100644 index 00000000..0938ea34 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/code_coverage_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeCoverageSummary(Model): + """CodeCoverageSummary. + + :param build: Uri of build for which data is retrieved/published + :type build: :class:`ShallowReference ` + :param coverage_data: List of coverage data and details for the build + :type coverage_data: list of :class:`CodeCoverageData ` + :param delta_build: Uri of build against which difference in coverage is computed + :type delta_build: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'coverage_data': {'key': 'coverageData', 'type': '[CodeCoverageData]'}, + 'delta_build': {'key': 'deltaBuild', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, coverage_data=None, delta_build=None): + super(CodeCoverageSummary, self).__init__() + self.build = build + self.coverage_data = coverage_data + self.delta_build = delta_build diff --git a/vsts/vsts/test/v4_1/models/coverage_statistics.py b/vsts/vsts/test/v4_1/models/coverage_statistics.py new file mode 100644 index 00000000..7b7704db --- /dev/null +++ b/vsts/vsts/test/v4_1/models/coverage_statistics.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CoverageStatistics(Model): + """CoverageStatistics. + + :param blocks_covered: + :type blocks_covered: int + :param blocks_not_covered: + :type blocks_not_covered: int + :param lines_covered: + :type lines_covered: int + :param lines_not_covered: + :type lines_not_covered: int + :param lines_partially_covered: + :type lines_partially_covered: int + """ + + _attribute_map = { + 'blocks_covered': {'key': 'blocksCovered', 'type': 'int'}, + 'blocks_not_covered': {'key': 'blocksNotCovered', 'type': 'int'}, + 'lines_covered': {'key': 'linesCovered', 'type': 'int'}, + 'lines_not_covered': {'key': 'linesNotCovered', 'type': 'int'}, + 'lines_partially_covered': {'key': 'linesPartiallyCovered', 'type': 'int'} + } + + def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=None, lines_not_covered=None, lines_partially_covered=None): + super(CoverageStatistics, self).__init__() + self.blocks_covered = blocks_covered + self.blocks_not_covered = blocks_not_covered + self.lines_covered = lines_covered + self.lines_not_covered = lines_not_covered + self.lines_partially_covered = lines_partially_covered diff --git a/vsts/vsts/test/v4_1/models/custom_test_field.py b/vsts/vsts/test/v4_1/models/custom_test_field.py new file mode 100644 index 00000000..80ba7cf1 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/custom_test_field.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CustomTestField(Model): + """CustomTestField. + + :param field_name: + :type field_name: str + :param value: + :type value: object + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, field_name=None, value=None): + super(CustomTestField, self).__init__() + self.field_name = field_name + self.value = value diff --git a/vsts/vsts/test/v4_1/models/custom_test_field_definition.py b/vsts/vsts/test/v4_1/models/custom_test_field_definition.py new file mode 100644 index 00000000..bbb7e2a4 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/custom_test_field_definition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CustomTestFieldDefinition(Model): + """CustomTestFieldDefinition. + + :param field_id: + :type field_id: int + :param field_name: + :type field_name: str + :param field_type: + :type field_type: object + :param scope: + :type scope: object + """ + + _attribute_map = { + 'field_id': {'key': 'fieldId', 'type': 'int'}, + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'field_type': {'key': 'fieldType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'object'} + } + + def __init__(self, field_id=None, field_name=None, field_type=None, scope=None): + super(CustomTestFieldDefinition, self).__init__() + self.field_id = field_id + self.field_name = field_name + self.field_type = field_type + self.scope = scope diff --git a/vsts/vsts/test/v4_1/models/dtl_environment_details.py b/vsts/vsts/test/v4_1/models/dtl_environment_details.py new file mode 100644 index 00000000..25bebb48 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/dtl_environment_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DtlEnvironmentDetails(Model): + """DtlEnvironmentDetails. + + :param csm_content: + :type csm_content: str + :param csm_parameters: + :type csm_parameters: str + :param subscription_name: + :type subscription_name: str + """ + + _attribute_map = { + 'csm_content': {'key': 'csmContent', 'type': 'str'}, + 'csm_parameters': {'key': 'csmParameters', 'type': 'str'}, + 'subscription_name': {'key': 'subscriptionName', 'type': 'str'} + } + + def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None): + super(DtlEnvironmentDetails, self).__init__() + self.csm_content = csm_content + self.csm_parameters = csm_parameters + self.subscription_name = subscription_name diff --git a/vsts/vsts/test/v4_1/models/failing_since.py b/vsts/vsts/test/v4_1/models/failing_since.py new file mode 100644 index 00000000..e7e9bb1c --- /dev/null +++ b/vsts/vsts/test/v4_1/models/failing_since.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FailingSince(Model): + """FailingSince. + + :param build: + :type build: :class:`BuildReference ` + :param date: + :type date: datetime + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, date=None, release=None): + super(FailingSince, self).__init__() + self.build = build + self.date = date + self.release = release diff --git a/vsts/vsts/test/v4_1/models/field_details_for_test_results.py b/vsts/vsts/test/v4_1/models/field_details_for_test_results.py new file mode 100644 index 00000000..1f466b74 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/field_details_for_test_results.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FieldDetailsForTestResults(Model): + """FieldDetailsForTestResults. + + :param field_name: Group by field name + :type field_name: str + :param groups_for_field: Group by field values + :type groups_for_field: list of object + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'groups_for_field': {'key': 'groupsForField', 'type': '[object]'} + } + + def __init__(self, field_name=None, groups_for_field=None): + super(FieldDetailsForTestResults, self).__init__() + self.field_name = field_name + self.groups_for_field = groups_for_field diff --git a/vsts/vsts/test/v4_1/models/function_coverage.py b/vsts/vsts/test/v4_1/models/function_coverage.py new file mode 100644 index 00000000..166f947f --- /dev/null +++ b/vsts/vsts/test/v4_1/models/function_coverage.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FunctionCoverage(Model): + """FunctionCoverage. + + :param class_: + :type class_: str + :param name: + :type name: str + :param namespace: + :type namespace: str + :param source_file: + :type source_file: str + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'source_file': {'key': 'sourceFile', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, class_=None, name=None, namespace=None, source_file=None, statistics=None): + super(FunctionCoverage, self).__init__() + self.class_ = class_ + self.name = name + self.namespace = namespace + self.source_file = source_file + self.statistics = statistics diff --git a/vsts/vsts/test/v4_1/models/identity_ref.py b/vsts/vsts/test/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/test/v4_1/models/last_result_details.py b/vsts/vsts/test/v4_1/models/last_result_details.py new file mode 100644 index 00000000..32968581 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/last_result_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LastResultDetails(Model): + """LastResultDetails. + + :param date_completed: + :type date_completed: datetime + :param duration: + :type duration: long + :param run_by: + :type run_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date_completed': {'key': 'dateCompleted', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'long'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'} + } + + def __init__(self, date_completed=None, duration=None, run_by=None): + super(LastResultDetails, self).__init__() + self.date_completed = date_completed + self.duration = duration + self.run_by = run_by diff --git a/vsts/vsts/test/v4_1/models/linked_work_items_query.py b/vsts/vsts/test/v4_1/models/linked_work_items_query.py new file mode 100644 index 00000000..a9d0c50e --- /dev/null +++ b/vsts/vsts/test/v4_1/models/linked_work_items_query.py @@ -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.serialization import Model + + +class LinkedWorkItemsQuery(Model): + """LinkedWorkItemsQuery. + + :param automated_test_names: + :type automated_test_names: list of str + :param plan_id: + :type plan_id: int + :param point_ids: + :type point_ids: list of int + :param suite_ids: + :type suite_ids: list of int + :param test_case_ids: + :type test_case_ids: list of int + :param work_item_category: + :type work_item_category: str + """ + + _attribute_map = { + 'automated_test_names': {'key': 'automatedTestNames', 'type': '[str]'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'}, + 'test_case_ids': {'key': 'testCaseIds', 'type': '[int]'}, + 'work_item_category': {'key': 'workItemCategory', 'type': 'str'} + } + + def __init__(self, automated_test_names=None, plan_id=None, point_ids=None, suite_ids=None, test_case_ids=None, work_item_category=None): + super(LinkedWorkItemsQuery, self).__init__() + self.automated_test_names = automated_test_names + self.plan_id = plan_id + self.point_ids = point_ids + self.suite_ids = suite_ids + self.test_case_ids = test_case_ids + self.work_item_category = work_item_category diff --git a/vsts/vsts/test/v4_1/models/linked_work_items_query_result.py b/vsts/vsts/test/v4_1/models/linked_work_items_query_result.py new file mode 100644 index 00000000..0b82bfc6 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/linked_work_items_query_result.py @@ -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.serialization import Model + + +class LinkedWorkItemsQueryResult(Model): + """LinkedWorkItemsQueryResult. + + :param automated_test_name: + :type automated_test_name: str + :param plan_id: + :type plan_id: int + :param point_id: + :type point_id: int + :param suite_id: + :type suite_id: int + :param test_case_id: + :type test_case_id: int + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_id': {'key': 'pointId', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, automated_test_name=None, plan_id=None, point_id=None, suite_id=None, test_case_id=None, work_items=None): + super(LinkedWorkItemsQueryResult, self).__init__() + self.automated_test_name = automated_test_name + self.plan_id = plan_id + self.point_id = point_id + self.suite_id = suite_id + self.test_case_id = test_case_id + self.work_items = work_items diff --git a/vsts/vsts/test/v4_1/models/module_coverage.py b/vsts/vsts/test/v4_1/models/module_coverage.py new file mode 100644 index 00000000..4b384440 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/module_coverage.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ModuleCoverage(Model): + """ModuleCoverage. + + :param block_count: + :type block_count: int + :param block_data: + :type block_data: list of number + :param functions: + :type functions: list of :class:`FunctionCoverage ` + :param name: + :type name: str + :param signature: + :type signature: str + :param signature_age: + :type signature_age: int + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'block_count': {'key': 'blockCount', 'type': 'int'}, + 'block_data': {'key': 'blockData', 'type': '[number]'}, + 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'signature_age': {'key': 'signatureAge', 'type': 'int'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): + super(ModuleCoverage, self).__init__() + self.block_count = block_count + self.block_data = block_data + self.functions = functions + self.name = name + self.signature = signature + self.signature_age = signature_age + self.statistics = statistics diff --git a/vsts/vsts/test/v4_1/models/name_value_pair.py b/vsts/vsts/test/v4_1/models/name_value_pair.py new file mode 100644 index 00000000..0c71209a --- /dev/null +++ b/vsts/vsts/test/v4_1/models/name_value_pair.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NameValuePair(Model): + """NameValuePair. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(NameValuePair, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/test/v4_1/models/plan_update_model.py b/vsts/vsts/test/v4_1/models/plan_update_model.py new file mode 100644 index 00000000..871d9971 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/plan_update_model.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PlanUpdateModel(Model): + """PlanUpdateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param configuration_ids: + :type configuration_ids: list of int + :param description: + :type description: str + :param end_date: + :type end_date: str + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param start_date: + :type start_date: str + :param state: + :type state: str + :param status: + :type status: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): + super(PlanUpdateModel, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.configuration_ids = configuration_ids + self.description = description + self.end_date = end_date + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.release_environment_definition = release_environment_definition + self.start_date = start_date + self.state = state + self.status = status diff --git a/vsts/vsts/test/v4_1/models/point_assignment.py b/vsts/vsts/test/v4_1/models/point_assignment.py new file mode 100644 index 00000000..c8018a1c --- /dev/null +++ b/vsts/vsts/test/v4_1/models/point_assignment.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PointAssignment(Model): + """PointAssignment. + + :param configuration: + :type configuration: :class:`ShallowReference ` + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, configuration=None, tester=None): + super(PointAssignment, self).__init__() + self.configuration = configuration + self.tester = tester diff --git a/vsts/vsts/test/v4_1/models/point_update_model.py b/vsts/vsts/test/v4_1/models/point_update_model.py new file mode 100644 index 00000000..537ea684 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/point_update_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PointUpdateModel(Model): + """PointUpdateModel. + + :param outcome: + :type outcome: str + :param reset_to_active: + :type reset_to_active: bool + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'reset_to_active': {'key': 'resetToActive', 'type': 'bool'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, outcome=None, reset_to_active=None, tester=None): + super(PointUpdateModel, self).__init__() + self.outcome = outcome + self.reset_to_active = reset_to_active + self.tester = tester diff --git a/vsts/vsts/test/v4_1/models/points_filter.py b/vsts/vsts/test/v4_1/models/points_filter.py new file mode 100644 index 00000000..10c32746 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/points_filter.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PointsFilter(Model): + """PointsFilter. + + :param configuration_names: + :type configuration_names: list of str + :param testcase_ids: + :type testcase_ids: list of int + :param testers: + :type testers: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration_names': {'key': 'configurationNames', 'type': '[str]'}, + 'testcase_ids': {'key': 'testcaseIds', 'type': '[int]'}, + 'testers': {'key': 'testers', 'type': '[IdentityRef]'} + } + + def __init__(self, configuration_names=None, testcase_ids=None, testers=None): + super(PointsFilter, self).__init__() + self.configuration_names = configuration_names + self.testcase_ids = testcase_ids + self.testers = testers diff --git a/vsts/vsts/test/v4_1/models/property_bag.py b/vsts/vsts/test/v4_1/models/property_bag.py new file mode 100644 index 00000000..40505531 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/property_bag.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PropertyBag(Model): + """PropertyBag. + + :param bag: Generic store for test session data + :type bag: dict + """ + + _attribute_map = { + 'bag': {'key': 'bag', 'type': '{str}'} + } + + def __init__(self, bag=None): + super(PropertyBag, self).__init__() + self.bag = bag diff --git a/vsts/vsts/test/v4_1/models/query_model.py b/vsts/vsts/test/v4_1/models/query_model.py new file mode 100644 index 00000000..31f521ca --- /dev/null +++ b/vsts/vsts/test/v4_1/models/query_model.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class QueryModel(Model): + """QueryModel. + + :param query: + :type query: str + """ + + _attribute_map = { + 'query': {'key': 'query', 'type': 'str'} + } + + def __init__(self, query=None): + super(QueryModel, self).__init__() + self.query = query diff --git a/vsts/vsts/test/v4_1/models/release_environment_definition_reference.py b/vsts/vsts/test/v4_1/models/release_environment_definition_reference.py new file mode 100644 index 00000000..8cc15033 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/release_environment_definition_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseEnvironmentDefinitionReference(Model): + """ReleaseEnvironmentDefinitionReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'} + } + + def __init__(self, definition_id=None, environment_definition_id=None): + super(ReleaseEnvironmentDefinitionReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id diff --git a/vsts/vsts/test/v4_1/models/release_reference.py b/vsts/vsts/test/v4_1/models/release_reference.py new file mode 100644 index 00000000..370c7131 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/release_reference.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseReference(Model): + """ReleaseReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + :param environment_definition_name: + :type environment_definition_name: str + :param environment_id: + :type environment_id: int + :param environment_name: + :type environment_name: str + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, + 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + super(ReleaseReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + self.environment_definition_name = environment_definition_name + self.environment_id = environment_id + self.environment_name = environment_name + self.id = id + self.name = name diff --git a/vsts/vsts/test/v4_1/models/result_retention_settings.py b/vsts/vsts/test/v4_1/models/result_retention_settings.py new file mode 100644 index 00000000..acd8852c --- /dev/null +++ b/vsts/vsts/test/v4_1/models/result_retention_settings.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResultRetentionSettings(Model): + """ResultRetentionSettings. + + :param automated_results_retention_duration: + :type automated_results_retention_duration: int + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param manual_results_retention_duration: + :type manual_results_retention_duration: int + """ + + _attribute_map = { + 'automated_results_retention_duration': {'key': 'automatedResultsRetentionDuration', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'manual_results_retention_duration': {'key': 'manualResultsRetentionDuration', 'type': 'int'} + } + + def __init__(self, automated_results_retention_duration=None, last_updated_by=None, last_updated_date=None, manual_results_retention_duration=None): + super(ResultRetentionSettings, self).__init__() + self.automated_results_retention_duration = automated_results_retention_duration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.manual_results_retention_duration = manual_results_retention_duration diff --git a/vsts/vsts/test/v4_1/models/results_filter.py b/vsts/vsts/test/v4_1/models/results_filter.py new file mode 100644 index 00000000..139a5be1 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/results_filter.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResultsFilter(Model): + """ResultsFilter. + + :param automated_test_name: + :type automated_test_name: str + :param branch: + :type branch: str + :param group_by: + :type group_by: str + :param max_complete_date: + :type max_complete_date: datetime + :param results_count: + :type results_count: int + :param test_case_reference_ids: + :type test_case_reference_ids: list of int + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'branch': {'key': 'branch', 'type': 'str'}, + 'group_by': {'key': 'groupBy', 'type': 'str'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'results_count': {'key': 'resultsCount', 'type': 'int'}, + 'test_case_reference_ids': {'key': 'testCaseReferenceIds', 'type': '[int]'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_case_reference_ids=None, test_results_context=None, trend_days=None): + super(ResultsFilter, self).__init__() + self.automated_test_name = automated_test_name + self.branch = branch + self.group_by = group_by + self.max_complete_date = max_complete_date + self.results_count = results_count + self.test_case_reference_ids = test_case_reference_ids + self.test_results_context = test_results_context + self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_1/models/run_create_model.py b/vsts/vsts/test/v4_1/models/run_create_model.py new file mode 100644 index 00000000..61f71c0d --- /dev/null +++ b/vsts/vsts/test/v4_1/models/run_create_model.py @@ -0,0 +1,145 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunCreateModel(Model): + """RunCreateModel. + + :param automated: + :type automated: bool + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param complete_date: + :type complete_date: str + :param configuration_ids: + :type configuration_ids: list of int + :param controller: + :type controller: str + :param custom_test_fields: + :type custom_test_fields: list of :class:`CustomTestField ` + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_test_environment: + :type dtl_test_environment: :class:`ShallowReference ` + :param due_date: + :type due_date: str + :param environment_details: + :type environment_details: :class:`DtlEnvironmentDetails ` + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param iteration: + :type iteration: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param plan: + :type plan: :class:`ShallowReference ` + :param point_ids: + :type point_ids: list of int + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param run_timeout: + :type run_timeout: object + :param source_workflow: + :type source_workflow: str + :param start_date: + :type start_date: str + :param state: + :type state: str + :param test_configurations_mapping: + :type test_configurations_mapping: str + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param type: + :type type: str + """ + + _attribute_map = { + 'automated': {'key': 'automated', 'type': 'bool'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'complete_date': {'key': 'completeDate', 'type': 'str'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'custom_test_fields': {'key': 'customTestFields', 'type': '[CustomTestField]'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_test_environment': {'key': 'dtlTestEnvironment', 'type': 'ShallowReference'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'environment_details': {'key': 'environmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_configurations_mapping': {'key': 'testConfigurationsMapping', 'type': 'str'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): + super(RunCreateModel, self).__init__() + self.automated = automated + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.complete_date = complete_date + self.configuration_ids = configuration_ids + self.controller = controller + self.custom_test_fields = custom_test_fields + self.dtl_aut_environment = dtl_aut_environment + self.dtl_test_environment = dtl_test_environment + self.due_date = due_date + self.environment_details = environment_details + self.error_message = error_message + self.filter = filter + self.iteration = iteration + self.name = name + self.owner = owner + self.plan = plan + self.point_ids = point_ids + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.run_timeout = run_timeout + self.source_workflow = source_workflow + self.start_date = start_date + self.state = state + self.test_configurations_mapping = test_configurations_mapping + self.test_environment_id = test_environment_id + self.test_settings = test_settings + self.type = type diff --git a/vsts/vsts/test/v4_1/models/run_filter.py b/vsts/vsts/test/v4_1/models/run_filter.py new file mode 100644 index 00000000..55ba8921 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/run_filter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunFilter(Model): + """RunFilter. + + :param source_filter: filter for the test case sources (test containers) + :type source_filter: str + :param test_case_filter: filter for the test cases + :type test_case_filter: str + """ + + _attribute_map = { + 'source_filter': {'key': 'sourceFilter', 'type': 'str'}, + 'test_case_filter': {'key': 'testCaseFilter', 'type': 'str'} + } + + def __init__(self, source_filter=None, test_case_filter=None): + super(RunFilter, self).__init__() + self.source_filter = source_filter + self.test_case_filter = test_case_filter diff --git a/vsts/vsts/test/v4_1/models/run_statistic.py b/vsts/vsts/test/v4_1/models/run_statistic.py new file mode 100644 index 00000000..45601aec --- /dev/null +++ b/vsts/vsts/test/v4_1/models/run_statistic.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunStatistic(Model): + """RunStatistic. + + :param count: + :type count: int + :param outcome: + :type outcome: str + :param resolution_state: + :type resolution_state: :class:`TestResolutionState ` + :param state: + :type state: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'TestResolutionState'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, count=None, outcome=None, resolution_state=None, state=None): + super(RunStatistic, self).__init__() + self.count = count + self.outcome = outcome + self.resolution_state = resolution_state + self.state = state diff --git a/vsts/vsts/test/v4_1/models/run_update_model.py b/vsts/vsts/test/v4_1/models/run_update_model.py new file mode 100644 index 00000000..589291c4 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/run_update_model.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RunUpdateModel(Model): + """RunUpdateModel. + + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param controller: + :type controller: str + :param delete_in_progress_results: + :type delete_in_progress_results: bool + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_details: + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: str + :param error_message: + :type error_message: str + :param iteration: + :type iteration: str + :param log_entries: + :type log_entries: list of :class:`TestMessageLogDetails ` + :param name: + :type name: str + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param source_workflow: + :type source_workflow: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'delete_in_progress_results': {'key': 'deleteInProgressResults', 'type': 'bool'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_details': {'key': 'dtlEnvironmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'log_entries': {'key': 'logEntries', 'type': '[TestMessageLogDetails]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): + super(RunUpdateModel, self).__init__() + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.delete_in_progress_results = delete_in_progress_results + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_details = dtl_environment_details + self.due_date = due_date + self.error_message = error_message + self.iteration = iteration + self.log_entries = log_entries + self.name = name + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.source_workflow = source_workflow + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment_id = test_environment_id + self.test_settings = test_settings diff --git a/vsts/vsts/test/v4_1/models/shallow_reference.py b/vsts/vsts/test/v4_1/models/shallow_reference.py new file mode 100644 index 00000000..d4cffc81 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/shallow_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ShallowReference(Model): + """ShallowReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(ShallowReference, self).__init__() + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/test/v4_1/models/shared_step_model.py b/vsts/vsts/test/v4_1/models/shared_step_model.py new file mode 100644 index 00000000..07333033 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/shared_step_model.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SharedStepModel(Model): + """SharedStepModel. + + :param id: + :type id: int + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(SharedStepModel, self).__init__() + self.id = id + self.revision = revision diff --git a/vsts/vsts/test/v4_1/models/suite_create_model.py b/vsts/vsts/test/v4_1/models/suite_create_model.py new file mode 100644 index 00000000..cbcd78dd --- /dev/null +++ b/vsts/vsts/test/v4_1/models/suite_create_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteCreateModel(Model): + """SuiteCreateModel. + + :param name: + :type name: str + :param query_string: + :type query_string: str + :param requirement_ids: + :type requirement_ids: list of int + :param suite_type: + :type suite_type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_ids': {'key': 'requirementIds', 'type': '[int]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'} + } + + def __init__(self, name=None, query_string=None, requirement_ids=None, suite_type=None): + super(SuiteCreateModel, self).__init__() + self.name = name + self.query_string = query_string + self.requirement_ids = requirement_ids + self.suite_type = suite_type diff --git a/vsts/vsts/test/v4_1/models/suite_entry.py b/vsts/vsts/test/v4_1/models/suite_entry.py new file mode 100644 index 00000000..2f6dade3 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/suite_entry.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteEntry(Model): + """SuiteEntry. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Sequence number for the test case or child suite in the suite + :type sequence_number: int + :param suite_id: Id for the suite + :type suite_id: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, test_case_id=None): + super(SuiteEntry, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.suite_id = suite_id + self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_1/models/suite_entry_update_model.py b/vsts/vsts/test/v4_1/models/suite_entry_update_model.py new file mode 100644 index 00000000..afcb6f04 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/suite_entry_update_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteEntryUpdateModel(Model): + """SuiteEntryUpdateModel. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Updated sequence number for the test case or child suite in the suite + :type sequence_number: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None): + super(SuiteEntryUpdateModel, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_1/models/suite_test_case.py b/vsts/vsts/test/v4_1/models/suite_test_case.py new file mode 100644 index 00000000..33004848 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/suite_test_case.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SuiteTestCase(Model): + """SuiteTestCase. + + :param point_assignments: + :type point_assignments: list of :class:`PointAssignment ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'point_assignments': {'key': 'pointAssignments', 'type': '[PointAssignment]'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'} + } + + def __init__(self, point_assignments=None, test_case=None): + super(SuiteTestCase, self).__init__() + self.point_assignments = point_assignments + self.test_case = test_case diff --git a/vsts/vsts/test/v4_1/models/suite_update_model.py b/vsts/vsts/test/v4_1/models/suite_update_model.py new file mode 100644 index 00000000..ae660eee --- /dev/null +++ b/vsts/vsts/test/v4_1/models/suite_update_model.py @@ -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.serialization import Model + + +class SuiteUpdateModel(Model): + """SuiteUpdateModel. + + :param default_configurations: + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: + :type default_testers: list of :class:`ShallowReference ` + :param inherit_default_configurations: + :type inherit_default_configurations: bool + :param name: + :type name: str + :param parent: + :type parent: :class:`ShallowReference ` + :param query_string: + :type query_string: str + """ + + _attribute_map = { + 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, + 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'ShallowReference'}, + 'query_string': {'key': 'queryString', 'type': 'str'} + } + + def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent=None, query_string=None): + super(SuiteUpdateModel, self).__init__() + self.default_configurations = default_configurations + self.default_testers = default_testers + self.inherit_default_configurations = inherit_default_configurations + self.name = name + self.parent = parent + self.query_string = query_string diff --git a/vsts/vsts/test/v4_1/models/team_context.py b/vsts/vsts/test/v4_1/models/team_context.py new file mode 100644 index 00000000..18418ce7 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/team_context.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id diff --git a/vsts/vsts/test/v4_1/models/team_project_reference.py b/vsts/vsts/test/v4_1/models/team_project_reference.py new file mode 100644 index 00000000..fa79d465 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/team_project_reference.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility diff --git a/vsts/vsts/test/v4_1/models/test_action_result_model.py b/vsts/vsts/test/v4_1/models/test_action_result_model.py new file mode 100644 index 00000000..219e442f --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_action_result_model.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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 .test_result_model_base import TestResultModelBase + + +class TestActionResultModel(TestResultModelBase): + """TestActionResultModel. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param shared_step_model: + :type shared_step_model: :class:`SharedStepModel ` + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'shared_step_model': {'key': 'sharedStepModel', 'type': 'SharedStepModel'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None, action_path=None, iteration_id=None, shared_step_model=None, step_identifier=None, url=None): + super(TestActionResultModel, self).__init__(comment=comment, completed_date=completed_date, duration_in_ms=duration_in_ms, error_message=error_message, outcome=outcome, started_date=started_date) + self.action_path = action_path + self.iteration_id = iteration_id + self.shared_step_model = shared_step_model + self.step_identifier = step_identifier + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_attachment.py b/vsts/vsts/test/v4_1/models/test_attachment.py new file mode 100644 index 00000000..fa2cc043 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_attachment.py @@ -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.serialization import Model + + +class TestAttachment(Model): + """TestAttachment. + + :param attachment_type: + :type attachment_type: object + :param comment: + :type comment: str + :param created_date: + :type created_date: datetime + :param file_name: + :type file_name: str + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, url=None): + super(TestAttachment, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.created_date = created_date + self.file_name = file_name + self.id = id + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_attachment_reference.py b/vsts/vsts/test/v4_1/models/test_attachment_reference.py new file mode 100644 index 00000000..c5fbe1c7 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_attachment_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestAttachmentReference(Model): + """TestAttachmentReference. + + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(TestAttachmentReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_attachment_request_model.py b/vsts/vsts/test/v4_1/models/test_attachment_request_model.py new file mode 100644 index 00000000..bfe9d645 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_attachment_request_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestAttachmentRequestModel(Model): + """TestAttachmentRequestModel. + + :param attachment_type: + :type attachment_type: str + :param comment: + :type comment: str + :param file_name: + :type file_name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, file_name=None, stream=None): + super(TestAttachmentRequestModel, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.file_name = file_name + self.stream = stream diff --git a/vsts/vsts/test/v4_1/models/test_case_result.py b/vsts/vsts/test/v4_1/models/test_case_result.py new file mode 100644 index 00000000..d8515465 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_case_result.py @@ -0,0 +1,205 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResult(Model): + """TestCaseResult. + + :param afn_strip_id: + :type afn_strip_id: int + :param area: + :type area: :class:`ShallowReference ` + :param associated_bugs: + :type associated_bugs: list of :class:`ShallowReference ` + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param build: + :type build: :class:`ShallowReference ` + :param build_reference: + :type build_reference: :class:`BuildReference ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param failing_since: + :type failing_since: :class:`FailingSince ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param iteration_details: + :type iteration_details: list of :class:`TestIterationDetailsModel ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param priority: + :type priority: int + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ShallowReference ` + :param release_reference: + :type release_reference: :class:`ReleaseReference ` + :param reset_count: + :type reset_count: int + :param resolution_state: + :type resolution_state: str + :param resolution_state_id: + :type resolution_state_id: int + :param revision: + :type revision: int + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_reference_id: + :type test_case_reference_id: int + :param test_case_title: + :type test_case_title: str + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param test_point: + :type test_point: :class:`ShallowReference ` + :param test_run: + :type test_run: :class:`ShallowReference ` + :param test_suite: + :type test_suite: :class:`ShallowReference ` + :param url: + :type url: str + """ + + _attribute_map = { + 'afn_strip_id': {'key': 'afnStripId', 'type': 'int'}, + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_bugs': {'key': 'associatedBugs', 'type': '[ShallowReference]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_reference': {'key': 'buildReference', 'type': 'BuildReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_details': {'key': 'iterationDetails', 'type': '[TestIterationDetailsModel]'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ShallowReference'}, + 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, + 'reset_count': {'key': 'resetCount', 'type': 'int'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'}, + 'test_suite': {'key': 'testSuite', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): + super(TestCaseResult, self).__init__() + self.afn_strip_id = afn_strip_id + self.area = area + self.associated_bugs = associated_bugs + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.build = build + self.build_reference = build_reference + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.created_date = created_date + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failing_since = failing_since + self.failure_type = failure_type + self.id = id + self.iteration_details = iteration_details + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.owner = owner + self.priority = priority + self.project = project + self.release = release + self.release_reference = release_reference + self.reset_count = reset_count + self.resolution_state = resolution_state + self.resolution_state_id = resolution_state_id + self.revision = revision + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_reference_id = test_case_reference_id + self.test_case_title = test_case_title + self.test_plan = test_plan + self.test_point = test_point + self.test_run = test_run + self.test_suite = test_suite + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py b/vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py new file mode 100644 index 00000000..7a7412e9 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResultAttachmentModel(Model): + """TestCaseResultAttachmentModel. + + :param id: + :type id: int + :param iteration_id: + :type iteration_id: int + :param name: + :type name: str + :param size: + :type size: long + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): + super(TestCaseResultAttachmentModel, self).__init__() + self.id = id + self.iteration_id = iteration_id + self.name = name + self.size = size + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_case_result_identifier.py b/vsts/vsts/test/v4_1/models/test_case_result_identifier.py new file mode 100644 index 00000000..b88a489d --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_case_result_identifier.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResultIdentifier(Model): + """TestCaseResultIdentifier. + + :param test_result_id: + :type test_result_id: int + :param test_run_id: + :type test_run_id: int + """ + + _attribute_map = { + 'test_result_id': {'key': 'testResultId', 'type': 'int'}, + 'test_run_id': {'key': 'testRunId', 'type': 'int'} + } + + def __init__(self, test_result_id=None, test_run_id=None): + super(TestCaseResultIdentifier, self).__init__() + self.test_result_id = test_result_id + self.test_run_id = test_run_id diff --git a/vsts/vsts/test/v4_1/models/test_case_result_update_model.py b/vsts/vsts/test/v4_1/models/test_case_result_update_model.py new file mode 100644 index 00000000..af1ecc54 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_case_result_update_model.py @@ -0,0 +1,93 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestCaseResultUpdateModel(Model): + """TestCaseResultUpdateModel. + + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case_priority: + :type test_case_priority: str + :param test_result: + :type test_result: :class:`ShallowReference ` + """ + + _attribute_map = { + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_result': {'key': 'testResult', 'type': 'ShallowReference'} + } + + def __init__(self, associated_work_items=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case_priority=None, test_result=None): + super(TestCaseResultUpdateModel, self).__init__() + self.associated_work_items = associated_work_items + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case_priority = test_case_priority + self.test_result = test_result diff --git a/vsts/vsts/test/v4_1/models/test_configuration.py b/vsts/vsts/test/v4_1/models/test_configuration.py new file mode 100644 index 00000000..5b4d53eb --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_configuration.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestConfiguration(Model): + """TestConfiguration. + + :param area: Area of the configuration + :type area: :class:`ShallowReference ` + :param description: Description of the configuration + :type description: str + :param id: Id of the configuration + :type id: int + :param is_default: Is the configuration a default for the test plans + :type is_default: bool + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last Updated Data + :type last_updated_date: datetime + :param name: Name of the configuration + :type name: str + :param project: Project to which the configuration belongs + :type project: :class:`ShallowReference ` + :param revision: Revision of the the configuration + :type revision: int + :param state: State of the configuration + :type state: object + :param url: Url of Configuration Resource + :type url: str + :param values: Dictionary of Test Variable, Selected Value + :type values: list of :class:`NameValuePair ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[NameValuePair]'} + } + + def __init__(self, area=None, description=None, id=None, is_default=None, last_updated_by=None, last_updated_date=None, name=None, project=None, revision=None, state=None, url=None, values=None): + super(TestConfiguration, self).__init__() + self.area = area + self.description = description + self.id = id + self.is_default = is_default + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.project = project + self.revision = revision + self.state = state + self.url = url + self.values = values diff --git a/vsts/vsts/test/v4_1/models/test_environment.py b/vsts/vsts/test/v4_1/models/test_environment.py new file mode 100644 index 00000000..f8876fd0 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_environment.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestEnvironment(Model): + """TestEnvironment. + + :param environment_id: + :type environment_id: str + :param environment_name: + :type environment_name: str + """ + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'} + } + + def __init__(self, environment_id=None, environment_name=None): + super(TestEnvironment, self).__init__() + self.environment_id = environment_id + self.environment_name = environment_name diff --git a/vsts/vsts/test/v4_1/models/test_failure_details.py b/vsts/vsts/test/v4_1/models/test_failure_details.py new file mode 100644 index 00000000..c44af0ec --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_failure_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestFailureDetails(Model): + """TestFailureDetails. + + :param count: + :type count: int + :param test_results: + :type test_results: list of :class:`TestCaseResultIdentifier ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'test_results': {'key': 'testResults', 'type': '[TestCaseResultIdentifier]'} + } + + def __init__(self, count=None, test_results=None): + super(TestFailureDetails, self).__init__() + self.count = count + self.test_results = test_results diff --git a/vsts/vsts/test/v4_1/models/test_failures_analysis.py b/vsts/vsts/test/v4_1/models/test_failures_analysis.py new file mode 100644 index 00000000..459ffb7b --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_failures_analysis.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestFailuresAnalysis(Model): + """TestFailuresAnalysis. + + :param existing_failures: + :type existing_failures: :class:`TestFailureDetails ` + :param fixed_tests: + :type fixed_tests: :class:`TestFailureDetails ` + :param new_failures: + :type new_failures: :class:`TestFailureDetails ` + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'existing_failures': {'key': 'existingFailures', 'type': 'TestFailureDetails'}, + 'fixed_tests': {'key': 'fixedTests', 'type': 'TestFailureDetails'}, + 'new_failures': {'key': 'newFailures', 'type': 'TestFailureDetails'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'} + } + + def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, previous_context=None): + super(TestFailuresAnalysis, self).__init__() + self.existing_failures = existing_failures + self.fixed_tests = fixed_tests + self.new_failures = new_failures + self.previous_context = previous_context diff --git a/vsts/vsts/test/v4_1/models/test_iteration_details_model.py b/vsts/vsts/test/v4_1/models/test_iteration_details_model.py new file mode 100644 index 00000000..53599377 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_iteration_details_model.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestIterationDetailsModel(Model): + """TestIterationDetailsModel. + + :param action_results: + :type action_results: list of :class:`TestActionResultModel ` + :param attachments: + :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param id: + :type id: int + :param outcome: + :type outcome: str + :param parameters: + :type parameters: list of :class:`TestResultParameterModel ` + :param started_date: + :type started_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'action_results': {'key': 'actionResults', 'type': '[TestActionResultModel]'}, + 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[TestResultParameterModel]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, action_results=None, attachments=None, comment=None, completed_date=None, duration_in_ms=None, error_message=None, id=None, outcome=None, parameters=None, started_date=None, url=None): + super(TestIterationDetailsModel, self).__init__() + self.action_results = action_results + self.attachments = attachments + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.id = id + self.outcome = outcome + self.parameters = parameters + self.started_date = started_date + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_message_log_details.py b/vsts/vsts/test/v4_1/models/test_message_log_details.py new file mode 100644 index 00000000..75553733 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_message_log_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestMessageLogDetails(Model): + """TestMessageLogDetails. + + :param date_created: Date when the resource is created + :type date_created: datetime + :param entry_id: Id of the resource + :type entry_id: int + :param message: Message of the resource + :type message: str + """ + + _attribute_map = { + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'entry_id': {'key': 'entryId', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, date_created=None, entry_id=None, message=None): + super(TestMessageLogDetails, self).__init__() + self.date_created = date_created + self.entry_id = entry_id + self.message = message diff --git a/vsts/vsts/test/v4_1/models/test_method.py b/vsts/vsts/test/v4_1/models/test_method.py new file mode 100644 index 00000000..ee92559b --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_method.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestMethod(Model): + """TestMethod. + + :param container: + :type container: str + :param name: + :type name: str + """ + + _attribute_map = { + 'container': {'key': 'container', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, container=None, name=None): + super(TestMethod, self).__init__() + self.container = container + self.name = name diff --git a/vsts/vsts/test/v4_1/models/test_operation_reference.py b/vsts/vsts/test/v4_1/models/test_operation_reference.py new file mode 100644 index 00000000..47e57808 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_operation_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestOperationReference(Model): + """TestOperationReference. + + :param id: + :type id: str + :param status: + :type status: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(TestOperationReference, self).__init__() + self.id = id + self.status = status + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_plan.py b/vsts/vsts/test/v4_1/models/test_plan.py new file mode 100644 index 00000000..a6f7c665 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_plan.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPlan(Model): + """TestPlan. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param client_url: + :type client_url: str + :param description: + :type description: str + :param end_date: + :type end_date: datetime + :param id: + :type id: int + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param previous_build: + :type previous_build: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param revision: + :type revision: int + :param root_suite: + :type root_suite: :class:`ShallowReference ` + :param start_date: + :type start_date: datetime + :param state: + :type state: str + :param updated_by: + :type updated_by: :class:`IdentityRef ` + :param updated_date: + :type updated_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'client_url': {'key': 'clientUrl', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'previous_build': {'key': 'previousBuild', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): + super(TestPlan, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.client_url = client_url + self.description = description + self.end_date = end_date + self.id = id + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.previous_build = previous_build + self.project = project + self.release_environment_definition = release_environment_definition + self.revision = revision + self.root_suite = root_suite + self.start_date = start_date + self.state = state + self.updated_by = updated_by + self.updated_date = updated_date + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_plan_clone_request.py b/vsts/vsts/test/v4_1/models/test_plan_clone_request.py new file mode 100644 index 00000000..e4a2542a --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_plan_clone_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPlanCloneRequest(Model): + """TestPlanCloneRequest. + + :param destination_test_plan: + :type destination_test_plan: :class:`TestPlan ` + :param options: + :type options: :class:`CloneOptions ` + :param suite_ids: + :type suite_ids: list of int + """ + + _attribute_map = { + 'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'TestPlan'}, + 'options': {'key': 'options', 'type': 'CloneOptions'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'} + } + + def __init__(self, destination_test_plan=None, options=None, suite_ids=None): + super(TestPlanCloneRequest, self).__init__() + self.destination_test_plan = destination_test_plan + self.options = options + self.suite_ids = suite_ids diff --git a/vsts/vsts/test/v4_1/models/test_point.py b/vsts/vsts/test/v4_1/models/test_point.py new file mode 100644 index 00000000..2e3445a1 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_point.py @@ -0,0 +1,109 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPoint(Model): + """TestPoint. + + :param assigned_to: + :type assigned_to: :class:`IdentityRef ` + :param automated: + :type automated: bool + :param comment: + :type comment: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param last_resolution_state_id: + :type last_resolution_state_id: int + :param last_result: + :type last_result: :class:`ShallowReference ` + :param last_result_details: + :type last_result_details: :class:`LastResultDetails ` + :param last_result_state: + :type last_result_state: str + :param last_run_build_number: + :type last_run_build_number: str + :param last_test_run: + :type last_test_run: :class:`ShallowReference ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param revision: + :type revision: int + :param state: + :type state: str + :param suite: + :type suite: :class:`ShallowReference ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param url: + :type url: str + :param work_item_properties: + :type work_item_properties: list of object + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'}, + 'automated': {'key': 'automated', 'type': 'bool'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, + 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, + 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, + 'last_result_state': {'key': 'lastResultState', 'type': 'str'}, + 'last_run_build_number': {'key': 'lastRunBuildNumber', 'type': 'str'}, + 'last_test_run': {'key': 'lastTestRun', 'type': 'ShallowReference'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suite': {'key': 'suite', 'type': 'ShallowReference'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} + } + + def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): + super(TestPoint, self).__init__() + self.assigned_to = assigned_to + self.automated = automated + self.comment = comment + self.configuration = configuration + self.failure_type = failure_type + self.id = id + self.last_resolution_state_id = last_resolution_state_id + self.last_result = last_result + self.last_result_details = last_result_details + self.last_result_state = last_result_state + self.last_run_build_number = last_run_build_number + self.last_test_run = last_test_run + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.revision = revision + self.state = state + self.suite = suite + self.test_case = test_case + self.test_plan = test_plan + self.url = url + self.work_item_properties = work_item_properties diff --git a/vsts/vsts/test/v4_1/models/test_points_query.py b/vsts/vsts/test/v4_1/models/test_points_query.py new file mode 100644 index 00000000..6e6d5cfd --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_points_query.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestPointsQuery(Model): + """TestPointsQuery. + + :param order_by: + :type order_by: str + :param points: + :type points: list of :class:`TestPoint ` + :param points_filter: + :type points_filter: :class:`PointsFilter ` + :param wit_fields: + :type wit_fields: list of str + """ + + _attribute_map = { + 'order_by': {'key': 'orderBy', 'type': 'str'}, + 'points': {'key': 'points', 'type': '[TestPoint]'}, + 'points_filter': {'key': 'pointsFilter', 'type': 'PointsFilter'}, + 'wit_fields': {'key': 'witFields', 'type': '[str]'} + } + + def __init__(self, order_by=None, points=None, points_filter=None, wit_fields=None): + super(TestPointsQuery, self).__init__() + self.order_by = order_by + self.points = points + self.points_filter = points_filter + self.wit_fields = wit_fields diff --git a/vsts/vsts/test/v4_1/models/test_resolution_state.py b/vsts/vsts/test/v4_1/models/test_resolution_state.py new file mode 100644 index 00000000..2404771f --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_resolution_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResolutionState(Model): + """TestResolutionState. + + :param id: + :type id: int + :param name: + :type name: str + :param project: + :type project: :class:`ShallowReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'} + } + + def __init__(self, id=None, name=None, project=None): + super(TestResolutionState, self).__init__() + self.id = id + self.name = name + self.project = project diff --git a/vsts/vsts/test/v4_1/models/test_result_create_model.py b/vsts/vsts/test/v4_1/models/test_result_create_model.py new file mode 100644 index 00000000..ba77983a --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_create_model.py @@ -0,0 +1,125 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultCreateModel(Model): + """TestResultCreateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_priority: + :type test_case_priority: str + :param test_case_title: + :type test_case_title: str + :param test_point: + :type test_point: :class:`ShallowReference ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'} + } + + def __init__(self, area=None, associated_work_items=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_priority=None, test_case_title=None, test_point=None): + super(TestResultCreateModel, self).__init__() + self.area = area + self.associated_work_items = associated_work_items + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_priority = test_case_priority + self.test_case_title = test_case_title + self.test_point = test_point diff --git a/vsts/vsts/test/v4_1/models/test_result_document.py b/vsts/vsts/test/v4_1/models/test_result_document.py new file mode 100644 index 00000000..d57f0422 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_document.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultDocument(Model): + """TestResultDocument. + + :param operation_reference: + :type operation_reference: :class:`TestOperationReference ` + :param payload: + :type payload: :class:`TestResultPayload ` + """ + + _attribute_map = { + 'operation_reference': {'key': 'operationReference', 'type': 'TestOperationReference'}, + 'payload': {'key': 'payload', 'type': 'TestResultPayload'} + } + + def __init__(self, operation_reference=None, payload=None): + super(TestResultDocument, self).__init__() + self.operation_reference = operation_reference + self.payload = payload diff --git a/vsts/vsts/test/v4_1/models/test_result_history.py b/vsts/vsts/test/v4_1/models/test_result_history.py new file mode 100644 index 00000000..dee0f0b4 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_history.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultHistory(Model): + """TestResultHistory. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultHistory, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py b/vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py new file mode 100644 index 00000000..701513b1 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultHistoryDetailsForGroup(Model): + """TestResultHistoryDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param latest_result: + :type latest_result: :class:`TestCaseResult ` + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'latest_result': {'key': 'latestResult', 'type': 'TestCaseResult'} + } + + def __init__(self, group_by_value=None, latest_result=None): + super(TestResultHistoryDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.latest_result = latest_result diff --git a/vsts/vsts/test/v4_1/models/test_result_model_base.py b/vsts/vsts/test/v4_1/models/test_result_model_base.py new file mode 100644 index 00000000..ad003905 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_model_base.py @@ -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.serialization import Model + + +class TestResultModelBase(Model): + """TestResultModelBase. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: number + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None): + super(TestResultModelBase, self).__init__() + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.outcome = outcome + self.started_date = started_date diff --git a/vsts/vsts/test/v4_1/models/test_result_parameter_model.py b/vsts/vsts/test/v4_1/models/test_result_parameter_model.py new file mode 100644 index 00000000..39efe2cd --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_parameter_model.py @@ -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.serialization import Model + + +class TestResultParameterModel(Model): + """TestResultParameterModel. + + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param parameter_name: + :type parameter_name: str + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'parameter_name': {'key': 'parameterName', 'type': 'str'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_path=None, iteration_id=None, parameter_name=None, step_identifier=None, url=None, value=None): + super(TestResultParameterModel, self).__init__() + self.action_path = action_path + self.iteration_id = iteration_id + self.parameter_name = parameter_name + self.step_identifier = step_identifier + self.url = url + self.value = value diff --git a/vsts/vsts/test/v4_1/models/test_result_payload.py b/vsts/vsts/test/v4_1/models/test_result_payload.py new file mode 100644 index 00000000..22f3d447 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_payload.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultPayload(Model): + """TestResultPayload. + + :param comment: + :type comment: str + :param name: + :type name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, comment=None, name=None, stream=None): + super(TestResultPayload, self).__init__() + self.comment = comment + self.name = name + self.stream = stream diff --git a/vsts/vsts/test/v4_1/models/test_result_summary.py b/vsts/vsts/test/v4_1/models/test_result_summary.py new file mode 100644 index 00000000..417b5920 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_summary.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultSummary(Model): + """TestResultSummary. + + :param aggregated_results_analysis: + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :param team_project: + :type team_project: :class:`TeamProjectReference ` + :param test_failures: + :type test_failures: :class:`TestFailuresAnalysis ` + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'aggregated_results_analysis': {'key': 'aggregatedResultsAnalysis', 'type': 'AggregatedResultsAnalysis'}, + 'team_project': {'key': 'teamProject', 'type': 'TeamProjectReference'}, + 'test_failures': {'key': 'testFailures', 'type': 'TestFailuresAnalysis'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'} + } + + def __init__(self, aggregated_results_analysis=None, team_project=None, test_failures=None, test_results_context=None): + super(TestResultSummary, self).__init__() + self.aggregated_results_analysis = aggregated_results_analysis + self.team_project = team_project + self.test_failures = test_failures + self.test_results_context = test_results_context diff --git a/vsts/vsts/test/v4_1/models/test_result_trend_filter.py b/vsts/vsts/test/v4_1/models/test_result_trend_filter.py new file mode 100644 index 00000000..8cb60290 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_result_trend_filter.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultTrendFilter(Model): + """TestResultTrendFilter. + + :param branch_names: + :type branch_names: list of str + :param build_count: + :type build_count: int + :param definition_ids: + :type definition_ids: list of int + :param env_definition_ids: + :type env_definition_ids: list of int + :param max_complete_date: + :type max_complete_date: datetime + :param publish_context: + :type publish_context: str + :param test_run_titles: + :type test_run_titles: list of str + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'branch_names': {'key': 'branchNames', 'type': '[str]'}, + 'build_count': {'key': 'buildCount', 'type': 'int'}, + 'definition_ids': {'key': 'definitionIds', 'type': '[int]'}, + 'env_definition_ids': {'key': 'envDefinitionIds', 'type': '[int]'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'publish_context': {'key': 'publishContext', 'type': 'str'}, + 'test_run_titles': {'key': 'testRunTitles', 'type': '[str]'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, branch_names=None, build_count=None, definition_ids=None, env_definition_ids=None, max_complete_date=None, publish_context=None, test_run_titles=None, trend_days=None): + super(TestResultTrendFilter, self).__init__() + self.branch_names = branch_names + self.build_count = build_count + self.definition_ids = definition_ids + self.env_definition_ids = env_definition_ids + self.max_complete_date = max_complete_date + self.publish_context = publish_context + self.test_run_titles = test_run_titles + self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_1/models/test_results_context.py b/vsts/vsts/test/v4_1/models/test_results_context.py new file mode 100644 index 00000000..18dce445 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_results_context.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsContext(Model): + """TestResultsContext. + + :param build: + :type build: :class:`BuildReference ` + :param context_type: + :type context_type: object + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'context_type': {'key': 'contextType', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, context_type=None, release=None): + super(TestResultsContext, self).__init__() + self.build = build + self.context_type = context_type + self.release = release diff --git a/vsts/vsts/test/v4_1/models/test_results_details.py b/vsts/vsts/test/v4_1/models/test_results_details.py new file mode 100644 index 00000000..ce736c99 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_results_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsDetails(Model): + """TestResultsDetails. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultsDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultsDetails, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_1/models/test_results_details_for_group.py b/vsts/vsts/test/v4_1/models/test_results_details_for_group.py new file mode 100644 index 00000000..0fb54cd5 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_results_details_for_group.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsDetailsForGroup(Model): + """TestResultsDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_count_by_outcome: + :type results_count_by_outcome: dict + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'} + } + + def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None): + super(TestResultsDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.results = results + self.results_count_by_outcome = results_count_by_outcome diff --git a/vsts/vsts/test/v4_1/models/test_results_groups_for_build.py b/vsts/vsts/test/v4_1/models/test_results_groups_for_build.py new file mode 100644 index 00000000..39f95d9d --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_results_groups_for_build.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsGroupsForBuild(Model): + """TestResultsGroupsForBuild. + + :param build_id: BuildId for which groupby result is fetched. + :type build_id: int + :param fields: The group by results + :type fields: list of :class:`FieldDetailsForTestResults ` + """ + + _attribute_map = { + 'build_id': {'key': 'buildId', 'type': 'int'}, + 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'} + } + + def __init__(self, build_id=None, fields=None): + super(TestResultsGroupsForBuild, self).__init__() + self.build_id = build_id + self.fields = fields diff --git a/vsts/vsts/test/v4_1/models/test_results_groups_for_release.py b/vsts/vsts/test/v4_1/models/test_results_groups_for_release.py new file mode 100644 index 00000000..e5170efc --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_results_groups_for_release.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsGroupsForRelease(Model): + """TestResultsGroupsForRelease. + + :param fields: The group by results + :type fields: list of :class:`FieldDetailsForTestResults ` + :param release_env_id: Release Environment Id for which groupby result is fetched. + :type release_env_id: int + :param release_id: ReleaseId for which groupby result is fetched. + :type release_id: int + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'}, + 'release_env_id': {'key': 'releaseEnvId', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, fields=None, release_env_id=None, release_id=None): + super(TestResultsGroupsForRelease, self).__init__() + self.fields = fields + self.release_env_id = release_env_id + self.release_id = release_id diff --git a/vsts/vsts/test/v4_1/models/test_results_query.py b/vsts/vsts/test/v4_1/models/test_results_query.py new file mode 100644 index 00000000..4c77d384 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_results_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsQuery(Model): + """TestResultsQuery. + + :param fields: + :type fields: list of str + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_filter: + :type results_filter: :class:`ResultsFilter ` + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_filter': {'key': 'resultsFilter', 'type': 'ResultsFilter'} + } + + def __init__(self, fields=None, results=None, results_filter=None): + super(TestResultsQuery, self).__init__() + self.fields = fields + self.results = results + self.results_filter = results_filter diff --git a/vsts/vsts/test/v4_1/models/test_run.py b/vsts/vsts/test/v4_1/models/test_run.py new file mode 100644 index 00000000..18a9d654 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_run.py @@ -0,0 +1,193 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRun(Model): + """TestRun. + + :param build: + :type build: :class:`ShallowReference ` + :param build_configuration: + :type build_configuration: :class:`BuildConfiguration ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param controller: + :type controller: str + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param drop_location: + :type drop_location: str + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_creation_details: + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: datetime + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param id: + :type id: int + :param incomplete_tests: + :type incomplete_tests: int + :param is_automated: + :type is_automated: bool + :param iteration: + :type iteration: str + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param not_applicable_tests: + :type not_applicable_tests: int + :param owner: + :type owner: :class:`IdentityRef ` + :param passed_tests: + :type passed_tests: int + :param phase: + :type phase: str + :param plan: + :type plan: :class:`ShallowReference ` + :param post_process_state: + :type post_process_state: str + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ReleaseReference ` + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param revision: + :type revision: int + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment: + :type test_environment: :class:`TestEnvironment ` + :param test_message_log_id: + :type test_message_log_id: int + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param total_tests: + :type total_tests: int + :param unanalyzed_tests: + :type unanalyzed_tests: int + :param url: + :type url: str + :param web_access_url: + :type web_access_url: str + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_configuration': {'key': 'buildConfiguration', 'type': 'BuildConfiguration'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_creation_details': {'key': 'dtlEnvironmentCreationDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'iso-8601'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'id': {'key': 'id', 'type': 'int'}, + 'incomplete_tests': {'key': 'incompleteTests', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'not_applicable_tests': {'key': 'notApplicableTests', 'type': 'int'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'passed_tests': {'key': 'passedTests', 'type': 'int'}, + 'phase': {'key': 'phase', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'post_process_state': {'key': 'postProcessState', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment': {'key': 'testEnvironment', 'type': 'TestEnvironment'}, + 'test_message_log_id': {'key': 'testMessageLogId', 'type': 'int'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'}, + 'unanalyzed_tests': {'key': 'unanalyzedTests', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_url': {'key': 'webAccessUrl', 'type': 'str'} + } + + def __init__(self, build=None, build_configuration=None, comment=None, completed_date=None, controller=None, created_date=None, custom_fields=None, drop_location=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_creation_details=None, due_date=None, error_message=None, filter=None, id=None, incomplete_tests=None, is_automated=None, iteration=None, last_updated_by=None, last_updated_date=None, name=None, not_applicable_tests=None, owner=None, passed_tests=None, phase=None, plan=None, post_process_state=None, project=None, release=None, release_environment_uri=None, release_uri=None, revision=None, run_statistics=None, started_date=None, state=None, substate=None, test_environment=None, test_message_log_id=None, test_settings=None, total_tests=None, unanalyzed_tests=None, url=None, web_access_url=None): + super(TestRun, self).__init__() + self.build = build + self.build_configuration = build_configuration + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.created_date = created_date + self.custom_fields = custom_fields + self.drop_location = drop_location + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_creation_details = dtl_environment_creation_details + self.due_date = due_date + self.error_message = error_message + self.filter = filter + self.id = id + self.incomplete_tests = incomplete_tests + self.is_automated = is_automated + self.iteration = iteration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.not_applicable_tests = not_applicable_tests + self.owner = owner + self.passed_tests = passed_tests + self.phase = phase + self.plan = plan + self.post_process_state = post_process_state + self.project = project + self.release = release + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.revision = revision + self.run_statistics = run_statistics + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment = test_environment + self.test_message_log_id = test_message_log_id + self.test_settings = test_settings + self.total_tests = total_tests + self.unanalyzed_tests = unanalyzed_tests + self.url = url + self.web_access_url = web_access_url diff --git a/vsts/vsts/test/v4_1/models/test_run_coverage.py b/vsts/vsts/test/v4_1/models/test_run_coverage.py new file mode 100644 index 00000000..bc4dd047 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_run_coverage.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunCoverage(Model): + """TestRunCoverage. + + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + :param test_run: + :type test_run: :class:`ShallowReference ` + """ + + _attribute_map = { + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'} + } + + def __init__(self, last_error=None, modules=None, state=None, test_run=None): + super(TestRunCoverage, self).__init__() + self.last_error = last_error + self.modules = modules + self.state = state + self.test_run = test_run diff --git a/vsts/vsts/test/v4_1/models/test_run_statistic.py b/vsts/vsts/test/v4_1/models/test_run_statistic.py new file mode 100644 index 00000000..b5885316 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_run_statistic.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunStatistic(Model): + """TestRunStatistic. + + :param run: + :type run: :class:`ShallowReference ` + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + """ + + _attribute_map = { + 'run': {'key': 'run', 'type': 'ShallowReference'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'} + } + + def __init__(self, run=None, run_statistics=None): + super(TestRunStatistic, self).__init__() + self.run = run + self.run_statistics = run_statistics diff --git a/vsts/vsts/test/v4_1/models/test_session.py b/vsts/vsts/test/v4_1/models/test_session.py new file mode 100644 index 00000000..8b06b612 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_session.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSession(Model): + """TestSession. + + :param area: Area path of the test session + :type area: :class:`ShallowReference ` + :param comment: Comments in the test session + :type comment: str + :param end_date: Duration of the session + :type end_date: datetime + :param id: Id of the test session + :type id: int + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date + :type last_updated_date: datetime + :param owner: Owner of the test session + :type owner: :class:`IdentityRef ` + :param project: Project to which the test session belongs + :type project: :class:`ShallowReference ` + :param property_bag: Generic store for test session data + :type property_bag: :class:`PropertyBag ` + :param revision: Revision of the test session + :type revision: int + :param source: Source of the test session + :type source: object + :param start_date: Start date + :type start_date: datetime + :param state: State of the test session + :type state: object + :param title: Title of the test session + :type title: str + :param url: Url of Test Session Resource + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'property_bag': {'key': 'propertyBag', 'type': 'PropertyBag'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, comment=None, end_date=None, id=None, last_updated_by=None, last_updated_date=None, owner=None, project=None, property_bag=None, revision=None, source=None, start_date=None, state=None, title=None, url=None): + super(TestSession, self).__init__() + self.area = area + self.comment = comment + self.end_date = end_date + self.id = id + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.owner = owner + self.project = project + self.property_bag = property_bag + self.revision = revision + self.source = source + self.start_date = start_date + self.state = state + self.title = title + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_settings.py b/vsts/vsts/test/v4_1/models/test_settings.py new file mode 100644 index 00000000..4cf25582 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_settings.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSettings(Model): + """TestSettings. + + :param area_path: Area path required to create test settings + :type area_path: str + :param description: Description of the test settings. Used in create test settings. + :type description: str + :param is_public: Indicates if the tests settings is public or private.Used in create test settings. + :type is_public: bool + :param machine_roles: Xml string of machine roles. Used in create test settings. + :type machine_roles: str + :param test_settings_content: Test settings content. + :type test_settings_content: str + :param test_settings_id: Test settings id. + :type test_settings_id: int + :param test_settings_name: Test settings name. + :type test_settings_name: str + """ + + _attribute_map = { + 'area_path': {'key': 'areaPath', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'machine_roles': {'key': 'machineRoles', 'type': 'str'}, + 'test_settings_content': {'key': 'testSettingsContent', 'type': 'str'}, + 'test_settings_id': {'key': 'testSettingsId', 'type': 'int'}, + 'test_settings_name': {'key': 'testSettingsName', 'type': 'str'} + } + + def __init__(self, area_path=None, description=None, is_public=None, machine_roles=None, test_settings_content=None, test_settings_id=None, test_settings_name=None): + super(TestSettings, self).__init__() + self.area_path = area_path + self.description = description + self.is_public = is_public + self.machine_roles = machine_roles + self.test_settings_content = test_settings_content + self.test_settings_id = test_settings_id + self.test_settings_name = test_settings_name diff --git a/vsts/vsts/test/v4_1/models/test_suite.py b/vsts/vsts/test/v4_1/models/test_suite.py new file mode 100644 index 00000000..be0ef32e --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_suite.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSuite(Model): + """TestSuite. + + :param area_uri: + :type area_uri: str + :param children: + :type children: list of :class:`TestSuite ` + :param default_configurations: + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: + :type default_testers: list of :class:`ShallowReference ` + :param id: + :type id: int + :param inherit_default_configurations: + :type inherit_default_configurations: bool + :param last_error: + :type last_error: str + :param last_populated_date: + :type last_populated_date: datetime + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param parent: + :type parent: :class:`ShallowReference ` + :param plan: + :type plan: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param query_string: + :type query_string: str + :param requirement_id: + :type requirement_id: int + :param revision: + :type revision: int + :param state: + :type state: str + :param suites: + :type suites: list of :class:`ShallowReference ` + :param suite_type: + :type suite_type: str + :param test_case_count: + :type test_case_count: int + :param test_cases_url: + :type test_cases_url: str + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'area_uri': {'key': 'areaUri', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TestSuite]'}, + 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'last_populated_date': {'key': 'lastPopulatedDate', 'type': 'iso-8601'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'ShallowReference'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_id': {'key': 'requirementId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suites': {'key': 'suites', 'type': '[ShallowReference]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'}, + 'test_case_count': {'key': 'testCaseCount', 'type': 'int'}, + 'test_cases_url': {'key': 'testCasesUrl', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area_uri=None, children=None, default_configurations=None, default_testers=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): + super(TestSuite, self).__init__() + self.area_uri = area_uri + self.children = children + self.default_configurations = default_configurations + self.default_testers = default_testers + self.id = id + self.inherit_default_configurations = inherit_default_configurations + self.last_error = last_error + self.last_populated_date = last_populated_date + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.parent = parent + self.plan = plan + self.project = project + self.query_string = query_string + self.requirement_id = requirement_id + self.revision = revision + self.state = state + self.suites = suites + self.suite_type = suite_type + self.test_case_count = test_case_count + self.test_cases_url = test_cases_url + self.text = text + self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_suite_clone_request.py b/vsts/vsts/test/v4_1/models/test_suite_clone_request.py new file mode 100644 index 00000000..b17afed5 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_suite_clone_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSuiteCloneRequest(Model): + """TestSuiteCloneRequest. + + :param clone_options: + :type clone_options: :class:`CloneOptions ` + :param destination_suite_id: + :type destination_suite_id: int + :param destination_suite_project_name: + :type destination_suite_project_name: str + """ + + _attribute_map = { + 'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'}, + 'destination_suite_id': {'key': 'destinationSuiteId', 'type': 'int'}, + 'destination_suite_project_name': {'key': 'destinationSuiteProjectName', 'type': 'str'} + } + + def __init__(self, clone_options=None, destination_suite_id=None, destination_suite_project_name=None): + super(TestSuiteCloneRequest, self).__init__() + self.clone_options = clone_options + self.destination_suite_id = destination_suite_id + self.destination_suite_project_name = destination_suite_project_name diff --git a/vsts/vsts/test/v4_1/models/test_summary_for_work_item.py b/vsts/vsts/test/v4_1/models/test_summary_for_work_item.py new file mode 100644 index 00000000..701ef130 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_summary_for_work_item.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSummaryForWorkItem(Model): + """TestSummaryForWorkItem. + + :param summary: + :type summary: :class:`AggregatedDataForResultTrend ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'AggregatedDataForResultTrend'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, summary=None, work_item=None): + super(TestSummaryForWorkItem, self).__init__() + self.summary = summary + self.work_item = work_item diff --git a/vsts/vsts/test/v4_1/models/test_to_work_item_links.py b/vsts/vsts/test/v4_1/models/test_to_work_item_links.py new file mode 100644 index 00000000..402a5bb4 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_to_work_item_links.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestToWorkItemLinks(Model): + """TestToWorkItemLinks. + + :param test: + :type test: :class:`TestMethod ` + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'test': {'key': 'test', 'type': 'TestMethod'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, test=None, work_items=None): + super(TestToWorkItemLinks, self).__init__() + self.test = test + self.work_items = work_items diff --git a/vsts/vsts/test/v4_1/models/test_variable.py b/vsts/vsts/test/v4_1/models/test_variable.py new file mode 100644 index 00000000..9f27a0b1 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/test_variable.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestVariable(Model): + """TestVariable. + + :param description: Description of the test variable + :type description: str + :param id: Id of the test variable + :type id: int + :param name: Name of the test variable + :type name: str + :param project: Project to which the test variable belongs + :type project: :class:`ShallowReference ` + :param revision: Revision + :type revision: int + :param url: Url of the test variable + :type url: str + :param values: List of allowed values + :type values: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, name=None, project=None, revision=None, url=None, values=None): + super(TestVariable, self).__init__() + self.description = description + self.id = id + self.name = name + self.project = project + self.revision = revision + self.url = url + self.values = values diff --git a/vsts/vsts/test/v4_1/models/work_item_reference.py b/vsts/vsts/test/v4_1/models/work_item_reference.py new file mode 100644 index 00000000..1bff259b --- /dev/null +++ b/vsts/vsts/test/v4_1/models/work_item_reference.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + :param web_url: + :type web_url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None, url=None, web_url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.name = name + self.type = type + self.url = url + self.web_url = web_url diff --git a/vsts/vsts/test/v4_1/models/work_item_to_test_links.py b/vsts/vsts/test/v4_1/models/work_item_to_test_links.py new file mode 100644 index 00000000..a76898ec --- /dev/null +++ b/vsts/vsts/test/v4_1/models/work_item_to_test_links.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemToTestLinks(Model): + """WorkItemToTestLinks. + + :param tests: + :type tests: list of :class:`TestMethod ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'tests': {'key': 'tests', 'type': '[TestMethod]'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, tests=None, work_item=None): + super(WorkItemToTestLinks, self).__init__() + self.tests = tests + self.work_item = work_item diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py new file mode 100644 index 00000000..d2cdf3d3 --- /dev/null +++ b/vsts/vsts/test/v4_1/test_client.py @@ -0,0 +1,2321 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TestClient(VssClient): + """Test + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TestClient, 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_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): + """GetActionResults. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param str action_path: + :rtype: [TestActionResultModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + if action_path is not None: + route_values['actionPath'] = self._serialize.url('action_path', action_path, 'str') + response = self._send(http_method='GET', + location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', + version='4.1-preview.3', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestActionResultModel]', response) + + def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): + """CreateTestIterationResultAttachment. + [Preview API] + :param :class:` ` attachment_request_model: + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param str action_path: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if iteration_id is not None: + query_parameters['iterationId'] = self._serialize.query('iteration_id', iteration_id, 'int') + if action_path is not None: + query_parameters['actionPath'] = self._serialize.query('action_path', action_path, 'str') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): + """CreateTestResultAttachment. + [Preview API] + :param :class:` ` attachment_request_model: + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id): + """GetTestResultAttachmentContent. + [Preview API] Returns a test result attachment + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int attachment_id: + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_test_result_attachments(self, project, run_id, test_case_result_id): + """GetTestResultAttachments. + [Preview API] Returns attachment references for test result. + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :rtype: [TestAttachment] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestAttachment]', response) + + def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id): + """GetTestResultAttachmentZip. + [Preview API] Returns a test result attachment + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int attachment_id: + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def create_test_run_attachment(self, attachment_request_model, project, run_id): + """CreateTestRunAttachment. + [Preview API] + :param :class:` ` attachment_request_model: + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def get_test_run_attachment_content(self, project, run_id, attachment_id): + """GetTestRunAttachmentContent. + [Preview API] Returns a test run attachment + :param str project: Project ID or project name + :param int run_id: + :param int attachment_id: + :rtype: object + """ + 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') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_test_run_attachments(self, project, run_id): + """GetTestRunAttachments. + [Preview API] Returns attachment references for test run. + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestAttachment] + """ + 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='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestAttachment]', response) + + def get_test_run_attachment_zip(self, project, run_id, attachment_id): + """GetTestRunAttachmentZip. + [Preview API] Returns a test run attachment + :param str project: Project ID or project name + :param int run_id: + :param int attachment_id: + :rtype: object + """ + 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') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): + """GetBugsLinkedToTestResult. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :rtype: [WorkItemReference] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + response = self._send(http_method='GET', + location_id='6de20ca2-67de-4faf-97fa-38c5d585eb00', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemReference]', response) + + def get_clone_information(self, project, clone_operation_id, include_details=None): + """GetCloneInformation. + [Preview API] + :param str project: Project ID or project name + :param int clone_operation_id: + :param bool include_details: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if clone_operation_id is not None: + route_values['cloneOperationId'] = self._serialize.url('clone_operation_id', clone_operation_id, 'int') + query_parameters = {} + if include_details is not None: + query_parameters['$includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + response = self._send(http_method='GET', + location_id='5b9d6320-abed-47a5-a151-cd6dc3798be6', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('CloneOperationInformation', response) + + def clone_test_plan(self, clone_request_body, project, plan_id): + """CloneTestPlan. + [Preview API] + :param :class:` ` clone_request_body: + :param str project: Project ID or project name + :param int plan_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + content = self._serialize.body(clone_request_body, 'TestPlanCloneRequest') + response = self._send(http_method='POST', + location_id='edc3ef4b-8460-4e86-86fa-8e4f5e9be831', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('CloneOperationInformation', response) + + def clone_test_suite(self, clone_request_body, project, plan_id, source_suite_id): + """CloneTestSuite. + [Preview API] + :param :class:` ` clone_request_body: + :param str project: Project ID or project name + :param int plan_id: + :param int source_suite_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if source_suite_id is not None: + route_values['sourceSuiteId'] = self._serialize.url('source_suite_id', source_suite_id, 'int') + content = self._serialize.body(clone_request_body, 'TestSuiteCloneRequest') + response = self._send(http_method='POST', + location_id='751e4ab5-5bf6-4fb5-9d5d-19ef347662dd', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('CloneOperationInformation', response) + + def get_build_code_coverage(self, project, build_id, flags): + """GetBuildCodeCoverage. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param int flags: + :rtype: [BuildCoverage] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[BuildCoverage]', response) + + def get_code_coverage_summary(self, project, build_id, delta_build_id=None): + """GetCodeCoverageSummary. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param int delta_build_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if delta_build_id is not None: + query_parameters['deltaBuildId'] = self._serialize.query('delta_build_id', delta_build_id, 'int') + response = self._send(http_method='GET', + location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('CodeCoverageSummary', response) + + def update_code_coverage_summary(self, coverage_data, project, build_id): + """UpdateCodeCoverageSummary. + [Preview API] http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary + :param :class:` ` coverage_data: + :param str project: Project ID or project name + :param int build_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + content = self._serialize.body(coverage_data, 'CodeCoverageData') + self._send(http_method='POST', + location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + + def get_test_run_code_coverage(self, project, run_id, flags): + """GetTestRunCodeCoverage. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int flags: + :rtype: [TestRunCoverage] + """ + 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') + query_parameters = {} + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='9629116f-3b89-4ed8-b358-d4694efda160', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestRunCoverage]', response) + + def create_test_configuration(self, test_configuration, project): + """CreateTestConfiguration. + [Preview API] + :param :class:` ` test_configuration: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_configuration, 'TestConfiguration') + response = self._send(http_method='POST', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestConfiguration', response) + + def delete_test_configuration(self, project, test_configuration_id): + """DeleteTestConfiguration. + [Preview API] + :param str project: Project ID or project name + :param int test_configuration_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_configuration_id is not None: + route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') + self._send(http_method='DELETE', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.1-preview.2', + route_values=route_values) + + def get_test_configuration_by_id(self, project, test_configuration_id): + """GetTestConfigurationById. + [Preview API] + :param str project: Project ID or project name + :param int test_configuration_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_configuration_id is not None: + route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') + response = self._send(http_method='GET', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('TestConfiguration', response) + + def get_test_configurations(self, project, skip=None, top=None, continuation_token=None, include_all_properties=None): + """GetTestConfigurations. + [Preview API] + :param str project: Project ID or project name + :param int skip: + :param int top: + :param str continuation_token: + :param bool include_all_properties: + :rtype: [TestConfiguration] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if include_all_properties is not None: + query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') + response = self._send(http_method='GET', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestConfiguration]', response) + + def update_test_configuration(self, test_configuration, project, test_configuration_id): + """UpdateTestConfiguration. + [Preview API] + :param :class:` ` test_configuration: + :param str project: Project ID or project name + :param int test_configuration_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_configuration_id is not None: + route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') + content = self._serialize.body(test_configuration, 'TestConfiguration') + response = self._send(http_method='PATCH', + location_id='d667591b-b9fd-4263-997a-9a084cca848f', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestConfiguration', response) + + def add_custom_fields(self, new_fields, project): + """AddCustomFields. + [Preview API] + :param [CustomTestFieldDefinition] new_fields: + :param str project: Project ID or project name + :rtype: [CustomTestFieldDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(new_fields, '[CustomTestFieldDefinition]') + response = self._send(http_method='POST', + location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[CustomTestFieldDefinition]', response) + + def query_custom_fields(self, project, scope_filter): + """QueryCustomFields. + [Preview API] + :param str project: Project ID or project name + :param str scope_filter: + :rtype: [CustomTestFieldDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_filter is not None: + query_parameters['scopeFilter'] = self._serialize.query('scope_filter', scope_filter, 'str') + response = self._send(http_method='GET', + location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[CustomTestFieldDefinition]', response) + + def query_test_result_history(self, filter, project): + """QueryTestResultHistory. + [Preview API] + :param :class:` ` filter: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(filter, 'ResultsFilter') + response = self._send(http_method='POST', + location_id='234616f5-429c-4e7b-9192-affd76731dfd', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestResultHistory', response) + + def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, include_action_results=None): + """GetTestIteration. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param bool include_action_results: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestIterationDetailsModel', response) + + def get_test_iterations(self, project, run_id, test_case_result_id, include_action_results=None): + """GetTestIterations. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param bool include_action_results: + :rtype: [TestIterationDetailsModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestIterationDetailsModel]', response) + + def get_linked_work_items_by_query(self, work_item_query, project): + """GetLinkedWorkItemsByQuery. + [Preview API] + :param :class:` ` work_item_query: + :param str project: Project ID or project name + :rtype: [LinkedWorkItemsQueryResult] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_query, 'LinkedWorkItemsQuery') + response = self._send(http_method='POST', + location_id='a4dcb25b-9878-49ea-abfd-e440bd9b1dcd', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[LinkedWorkItemsQueryResult]', response) + + def get_test_run_logs(self, project, run_id): + """GetTestRunLogs. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestMessageLogDetails] + """ + 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='a1e55200-637e-42e9-a7c0-7e5bfdedb1b3', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TestMessageLogDetails]', response) + + def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): + """GetResultParameters. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param int iteration_id: + :param str param_name: + :rtype: [TestResultParameterModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if param_name is not None: + query_parameters['paramName'] = self._serialize.query('param_name', param_name, 'str') + response = self._send(http_method='GET', + location_id='7c69810d-3354-4af3-844a-180bd25db08a', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestResultParameterModel]', response) + + def create_test_plan(self, test_plan, project): + """CreateTestPlan. + [Preview API] + :param :class:` ` test_plan: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_plan, 'PlanUpdateModel') + response = self._send(http_method='POST', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestPlan', response) + + def delete_test_plan(self, project, plan_id): + """DeleteTestPlan. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + self._send(http_method='DELETE', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.1-preview.2', + route_values=route_values) + + def get_plan_by_id(self, project, plan_id): + """GetPlanById. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + response = self._send(http_method='GET', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('TestPlan', response) + + def get_plans(self, project, owner=None, skip=None, top=None, include_plan_details=None, filter_active_plans=None): + """GetPlans. + [Preview API] + :param str project: Project ID or project name + :param str owner: + :param int skip: + :param int top: + :param bool include_plan_details: + :param bool filter_active_plans: + :rtype: [TestPlan] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if include_plan_details is not None: + query_parameters['includePlanDetails'] = self._serialize.query('include_plan_details', include_plan_details, 'bool') + if filter_active_plans is not None: + query_parameters['filterActivePlans'] = self._serialize.query('filter_active_plans', filter_active_plans, 'bool') + response = self._send(http_method='GET', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestPlan]', response) + + def update_test_plan(self, plan_update_model, project, plan_id): + """UpdateTestPlan. + [Preview API] + :param :class:` ` plan_update_model: + :param str project: Project ID or project name + :param int plan_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + content = self._serialize.body(plan_update_model, 'PlanUpdateModel') + response = self._send(http_method='PATCH', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestPlan', response) + + def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): + """GetPoint. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param int point_ids: + :param str wit_fields: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestPoint', response) + + def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_id=None, test_case_id=None, test_point_ids=None, include_point_details=None, skip=None, top=None): + """GetPoints. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str wit_fields: + :param str configuration_id: + :param str test_case_id: + :param str test_point_ids: + :param bool include_point_details: + :param int skip: + :param int top: + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + if configuration_id is not None: + query_parameters['configurationId'] = self._serialize.query('configuration_id', configuration_id, 'str') + if test_case_id is not None: + query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'str') + if test_point_ids is not None: + query_parameters['testPointIds'] = self._serialize.query('test_point_ids', test_point_ids, 'str') + if include_point_details is not None: + query_parameters['includePointDetails'] = self._serialize.query('include_point_details', include_point_details, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestPoint]', response) + + def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): + """UpdateTestPoints. + [Preview API] + :param :class:` ` point_update_model: + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str point_ids: + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'str') + content = self._serialize.body(point_update_model, 'PointUpdateModel') + response = self._send(http_method='PATCH', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='4.1-preview.2', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestPoint]', response) + + def get_points_by_query(self, query, project, skip=None, top=None): + """GetPointsByQuery. + [Preview API] + :param :class:` ` query: + :param str project: Project ID or project name + :param int skip: + :param int top: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + content = self._serialize.body(query, 'TestPointsQuery') + response = self._send(http_method='POST', + location_id='b4264fd0-a5d1-43e2-82a5-b9c46b7da9ce', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('TestPointsQuery', response) + + def get_test_result_details_for_build(self, project, build_id, publish_context=None, group_by=None, filter=None, orderby=None): + """GetTestResultDetailsForBuild. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param str publish_context: + :param str group_by: + :param str filter: + :param str orderby: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if group_by is not None: + query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + response = self._send(http_method='GET', + location_id='efb387b0-10d5-42e7-be40-95e06ee9430f', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultsDetails', response) + + def get_test_result_details_for_release(self, project, release_id, release_env_id, publish_context=None, group_by=None, filter=None, orderby=None): + """GetTestResultDetailsForRelease. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int release_env_id: + :param str publish_context: + :param str group_by: + :param str filter: + :param str orderby: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if release_id is not None: + query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') + if release_env_id is not None: + query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if group_by is not None: + query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + response = self._send(http_method='GET', + location_id='b834ec7e-35bb-450f-a3c8-802e70ca40dd', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultsDetails', response) + + def publish_test_result_document(self, document, project, run_id): + """PublishTestResultDocument. + [Preview API] + :param :class:` ` document: + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(document, 'TestResultDocument') + response = self._send(http_method='POST', + location_id='370ca04b-8eec-4ca8-8ba3-d24dca228791', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestResultDocument', response) + + def get_result_groups_by_build(self, project, build_id, publish_context, fields=None): + """GetResultGroupsByBuild. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param str publish_context: + :param [str] fields: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if fields is not None: + fields = ",".join(fields) + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + response = self._send(http_method='GET', + location_id='d279d052-c55a-4204-b913-42f733b52958', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultsGroupsForBuild', response) + + def get_result_groups_by_release(self, project, release_id, publish_context, release_env_id=None, fields=None): + """GetResultGroupsByRelease. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param str publish_context: + :param int release_env_id: + :param [str] fields: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if release_id is not None: + query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if release_env_id is not None: + query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') + if fields is not None: + fields = ",".join(fields) + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + response = self._send(http_method='GET', + location_id='ef5ce5d4-a4e5-47ee-804c-354518f8d03f', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultsGroupsForRelease', response) + + def get_result_retention_settings(self, project): + """GetResultRetentionSettings. + [Preview API] + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ResultRetentionSettings', response) + + def update_result_retention_settings(self, retention_settings, project): + """UpdateResultRetentionSettings. + [Preview API] + :param :class:` ` retention_settings: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(retention_settings, 'ResultRetentionSettings') + response = self._send(http_method='PATCH', + location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ResultRetentionSettings', response) + + def add_test_results_to_test_run(self, results, project, run_id): + """AddTestResultsToTestRun. + [Preview API] + :param [TestCaseResult] results: + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='POST', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.1-preview.4', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestCaseResult]', response) + + def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): + """GetTestResultById. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :param int test_case_result_id: + :param str details_to_include: + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.1-preview.4', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestCaseResult', response) + + def get_test_results(self, project, run_id, details_to_include=None, skip=None, top=None, outcomes=None): + """GetTestResults. + [Preview API] Get Test Results for a run based on filters. + :param str project: Project ID or project name + :param int run_id: Test Run Id for which results need to be fetched. + :param str details_to_include: enum indicates details need to be fetched. + :param int skip: Number of results to skip from beginning. + :param int top: Number of results to return. Max is 1000 when detailsToInclude is None and 100 otherwise. + :param [TestOutcome] outcomes: List of Testoutcome to filter results, comma seperated list of Testoutcome. + :rtype: [TestCaseResult] + """ + 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') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if outcomes is not None: + outcomes = ",".join(map(str, outcomes)) + query_parameters['outcomes'] = self._serialize.query('outcomes', outcomes, 'str') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.1-preview.4', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestCaseResult]', response) + + def update_test_results(self, results, project, run_id): + """UpdateTestResults. + [Preview API] + :param [TestCaseResult] results: + :param str project: Project ID or project name + :param int run_id: + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='PATCH', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='4.1-preview.4', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestCaseResult]', response) + + def get_test_results_by_query(self, query, project): + """GetTestResultsByQuery. + [Preview API] + :param :class:` ` query: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query, 'TestResultsQuery') + response = self._send(http_method='POST', + location_id='6711da49-8e6f-4d35-9f73-cef7a3c81a5b', + version='4.1-preview.4', + route_values=route_values, + content=content) + return self._deserialize('TestResultsQuery', response) + + def query_test_results_report_for_build(self, project, build_id, publish_context=None, include_failure_details=None, build_to_compare=None): + """QueryTestResultsReportForBuild. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param str publish_context: + :param bool include_failure_details: + :param :class:` ` build_to_compare: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if include_failure_details is not None: + query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') + if build_to_compare is not None: + if build_to_compare.id is not None: + query_parameters['buildToCompare.Id'] = build_to_compare.id + if build_to_compare.definition_id is not None: + query_parameters['buildToCompare.DefinitionId'] = build_to_compare.definition_id + if build_to_compare.number is not None: + query_parameters['buildToCompare.Number'] = build_to_compare.number + if build_to_compare.uri is not None: + query_parameters['buildToCompare.Uri'] = build_to_compare.uri + if build_to_compare.build_system is not None: + query_parameters['buildToCompare.BuildSystem'] = build_to_compare.build_system + if build_to_compare.branch_name is not None: + query_parameters['buildToCompare.BranchName'] = build_to_compare.branch_name + if build_to_compare.repository_id is not None: + query_parameters['buildToCompare.RepositoryId'] = build_to_compare.repository_id + response = self._send(http_method='GET', + location_id='000ef77b-fea2-498d-a10d-ad1a037f559f', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultSummary', response) + + def query_test_results_report_for_release(self, project, release_id, release_env_id, publish_context=None, include_failure_details=None, release_to_compare=None): + """QueryTestResultsReportForRelease. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int release_env_id: + :param str publish_context: + :param bool include_failure_details: + :param :class:` ` release_to_compare: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if release_id is not None: + query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') + if release_env_id is not None: + query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if include_failure_details is not None: + query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') + if release_to_compare is not None: + if release_to_compare.id is not None: + query_parameters['releaseToCompare.Id'] = release_to_compare.id + if release_to_compare.name is not None: + query_parameters['releaseToCompare.Name'] = release_to_compare.name + if release_to_compare.environment_id is not None: + query_parameters['releaseToCompare.EnvironmentId'] = release_to_compare.environment_id + if release_to_compare.environment_name is not None: + query_parameters['releaseToCompare.EnvironmentName'] = release_to_compare.environment_name + if release_to_compare.definition_id is not None: + query_parameters['releaseToCompare.DefinitionId'] = release_to_compare.definition_id + if release_to_compare.environment_definition_id is not None: + query_parameters['releaseToCompare.EnvironmentDefinitionId'] = release_to_compare.environment_definition_id + if release_to_compare.environment_definition_name is not None: + query_parameters['releaseToCompare.EnvironmentDefinitionName'] = release_to_compare.environment_definition_name + response = self._send(http_method='GET', + location_id='85765790-ac68-494e-b268-af36c3929744', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestResultSummary', response) + + def query_test_results_summary_for_releases(self, releases, project): + """QueryTestResultsSummaryForReleases. + [Preview API] + :param [ReleaseReference] releases: + :param str project: Project ID or project name + :rtype: [TestResultSummary] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(releases, '[ReleaseReference]') + response = self._send(http_method='POST', + location_id='85765790-ac68-494e-b268-af36c3929744', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestResultSummary]', response) + + def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): + """QueryTestSummaryByRequirement. + [Preview API] + :param :class:` ` results_context: + :param str project: Project ID or project name + :param [int] work_item_ids: + :rtype: [TestSummaryForWorkItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if work_item_ids is not None: + work_item_ids = ",".join(map(str, work_item_ids)) + query_parameters['workItemIds'] = self._serialize.query('work_item_ids', work_item_ids, 'str') + content = self._serialize.body(results_context, 'TestResultsContext') + response = self._send(http_method='POST', + location_id='cd08294e-308d-4460-a46e-4cfdefba0b4b', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[TestSummaryForWorkItem]', response) + + def query_result_trend_for_build(self, filter, project): + """QueryResultTrendForBuild. + [Preview API] + :param :class:` ` filter: + :param str project: Project ID or project name + :rtype: [AggregatedDataForResultTrend] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(filter, 'TestResultTrendFilter') + response = self._send(http_method='POST', + location_id='fbc82a85-0786-4442-88bb-eb0fda6b01b0', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AggregatedDataForResultTrend]', response) + + def query_result_trend_for_release(self, filter, project): + """QueryResultTrendForRelease. + [Preview API] + :param :class:` ` filter: + :param str project: Project ID or project name + :rtype: [AggregatedDataForResultTrend] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(filter, 'TestResultTrendFilter') + response = self._send(http_method='POST', + location_id='dd178e93-d8dd-4887-9635-d6b9560b7b6e', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AggregatedDataForResultTrend]', response) + + def get_test_run_statistics(self, project, run_id): + """GetTestRunStatistics. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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='0a42c424-d764-4a16-a2d5-5c85f87d0ae8', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('TestRunStatistic', response) + + def create_test_run(self, test_run, project): + """CreateTestRun. + [Preview API] + :param :class:` ` test_run: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_run, 'RunCreateModel') + response = self._send(http_method='POST', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def delete_test_run(self, project, run_id): + """DeleteTestRun. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + """ + 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') + self._send(http_method='DELETE', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.1-preview.2', + route_values=route_values) + + def get_test_run_by_id(self, project, run_id): + """GetTestRunById. + [Preview API] + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('TestRun', response) + + def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, plan_id=None, include_run_details=None, automated=None, skip=None, top=None): + """GetTestRuns. + [Preview API] + :param str project: Project ID or project name + :param str build_uri: + :param str owner: + :param str tmi_run_id: + :param int plan_id: + :param bool include_run_details: + :param bool automated: + :param int skip: + :param int top: + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_uri is not None: + query_parameters['buildUri'] = self._serialize.query('build_uri', build_uri, 'str') + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if tmi_run_id is not None: + query_parameters['tmiRunId'] = self._serialize.query('tmi_run_id', tmi_run_id, 'str') + if plan_id is not None: + query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'int') + if include_run_details is not None: + query_parameters['includeRunDetails'] = self._serialize.query('include_run_details', include_run_details, 'bool') + if automated is not None: + query_parameters['automated'] = self._serialize.query('automated', automated, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestRun]', response) + + def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, state=None, plan_ids=None, is_automated=None, publish_context=None, build_ids=None, build_def_ids=None, branch_name=None, release_ids=None, release_def_ids=None, release_env_ids=None, release_env_def_ids=None, run_title=None, top=None, continuation_token=None): + """QueryTestRuns. + [Preview API] Query Test Runs based on filters. + :param str project: Project ID or project name + :param datetime min_last_updated_date: Minimum Last Modified Date of run to be queried (Mandatory). + :param datetime max_last_updated_date: Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days). + :param str state: Current state of the Runs to be queried. + :param [int] plan_ids: Plan Ids of the Runs to be queried, comma seperated list of valid ids. + :param bool is_automated: Automation type of the Runs to be queried. + :param str publish_context: PublishContext of the Runs to be queried. + :param [int] build_ids: Build Ids of the Runs to be queried, comma seperated list of valid ids. + :param [int] build_def_ids: Build Definition Ids of the Runs to be queried, comma seperated list of valid ids. + :param str branch_name: Source Branch name of the Runs to be queried. + :param [int] release_ids: Release Ids of the Runs to be queried, comma seperated list of valid ids. + :param [int] release_def_ids: Release Definition Ids of the Runs to be queried, comma seperated list of valid ids. + :param [int] release_env_ids: Release Environment Ids of the Runs to be queried, comma seperated list of valid ids. + :param [int] release_env_def_ids: Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids. + :param str run_title: Run Title of the Runs to be queried. + :param int top: Number of runs to be queried. Limit is 100 + :param str continuation_token: continuationToken received from previous batch or null for first batch. + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if min_last_updated_date is not None: + query_parameters['minLastUpdatedDate'] = self._serialize.query('min_last_updated_date', min_last_updated_date, 'iso-8601') + if max_last_updated_date is not None: + query_parameters['maxLastUpdatedDate'] = self._serialize.query('max_last_updated_date', max_last_updated_date, 'iso-8601') + if state is not None: + query_parameters['state'] = self._serialize.query('state', state, 'str') + if plan_ids is not None: + plan_ids = ",".join(map(str, plan_ids)) + query_parameters['planIds'] = self._serialize.query('plan_ids', plan_ids, 'str') + if is_automated is not None: + query_parameters['isAutomated'] = self._serialize.query('is_automated', is_automated, 'bool') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if build_ids is not None: + build_ids = ",".join(map(str, build_ids)) + query_parameters['buildIds'] = self._serialize.query('build_ids', build_ids, 'str') + if build_def_ids is not None: + build_def_ids = ",".join(map(str, build_def_ids)) + query_parameters['buildDefIds'] = self._serialize.query('build_def_ids', build_def_ids, 'str') + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if release_ids is not None: + release_ids = ",".join(map(str, release_ids)) + query_parameters['releaseIds'] = self._serialize.query('release_ids', release_ids, 'str') + if release_def_ids is not None: + release_def_ids = ",".join(map(str, release_def_ids)) + query_parameters['releaseDefIds'] = self._serialize.query('release_def_ids', release_def_ids, 'str') + if release_env_ids is not None: + release_env_ids = ",".join(map(str, release_env_ids)) + query_parameters['releaseEnvIds'] = self._serialize.query('release_env_ids', release_env_ids, 'str') + if release_env_def_ids is not None: + release_env_def_ids = ",".join(map(str, release_env_def_ids)) + query_parameters['releaseEnvDefIds'] = self._serialize.query('release_env_def_ids', release_env_def_ids, 'str') + if run_title is not None: + query_parameters['runTitle'] = self._serialize.query('run_title', run_title, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestRun]', response) + + def update_test_run(self, run_update_model, project, run_id): + """UpdateTestRun. + [Preview API] + :param :class:` ` run_update_model: + :param str project: Project ID or project name + :param int run_id: + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(run_update_model, 'RunUpdateModel') + response = self._send(http_method='PATCH', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def create_test_session(self, test_session, team_context): + """CreateTestSession. + [Preview API] + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(test_session, 'TestSession') + response = self._send(http_method='POST', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestSession', response) + + def get_test_sessions(self, team_context, period=None, all_sessions=None, include_all_properties=None, source=None, include_only_completed_sessions=None): + """GetTestSessions. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param int period: + :param bool all_sessions: + :param bool include_all_properties: + :param str source: + :param bool include_only_completed_sessions: + :rtype: [TestSession] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if period is not None: + query_parameters['period'] = self._serialize.query('period', period, 'int') + if all_sessions is not None: + query_parameters['allSessions'] = self._serialize.query('all_sessions', all_sessions, 'bool') + if include_all_properties is not None: + query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') + if source is not None: + query_parameters['source'] = self._serialize.query('source', source, 'str') + if include_only_completed_sessions is not None: + query_parameters['includeOnlyCompletedSessions'] = self._serialize.query('include_only_completed_sessions', include_only_completed_sessions, 'bool') + response = self._send(http_method='GET', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestSession]', response) + + def update_test_session(self, test_session, team_context): + """UpdateTestSession. + [Preview API] + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(test_session, 'TestSession') + response = self._send(http_method='PATCH', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestSession', response) + + def delete_shared_parameter(self, project, shared_parameter_id): + """DeleteSharedParameter. + [Preview API] + :param str project: Project ID or project name + :param int shared_parameter_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if shared_parameter_id is not None: + route_values['sharedParameterId'] = self._serialize.url('shared_parameter_id', shared_parameter_id, 'int') + self._send(http_method='DELETE', + location_id='8300eeca-0f8c-4eff-a089-d2dda409c41f', + version='4.1-preview.1', + route_values=route_values) + + def delete_shared_step(self, project, shared_step_id): + """DeleteSharedStep. + [Preview API] + :param str project: Project ID or project name + :param int shared_step_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if shared_step_id is not None: + route_values['sharedStepId'] = self._serialize.url('shared_step_id', shared_step_id, 'int') + self._send(http_method='DELETE', + location_id='fabb3cc9-e3f8-40b7-8b62-24cc4b73fccf', + version='4.1-preview.1', + route_values=route_values) + + def get_suite_entries(self, project, suite_id): + """GetSuiteEntries. + [Preview API] + :param str project: Project ID or project name + :param int suite_id: + :rtype: [SuiteEntry] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + response = self._send(http_method='GET', + location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SuiteEntry]', response) + + def reorder_suite_entries(self, suite_entries, project, suite_id): + """ReorderSuiteEntries. + [Preview API] + :param [SuiteEntryUpdateModel] suite_entries: + :param str project: Project ID or project name + :param int suite_id: + :rtype: [SuiteEntry] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(suite_entries, '[SuiteEntryUpdateModel]') + response = self._send(http_method='PATCH', + location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[SuiteEntry]', response) + + def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): + """AddTestCasesToSuite. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str test_case_ids: + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + response = self._send(http_method='POST', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.1-preview.2', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SuiteTestCase]', response) + + def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): + """GetTestCaseById. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param int test_case_ids: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('SuiteTestCase', response) + + def get_test_cases(self, project, plan_id, suite_id): + """GetTestCases. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.1-preview.2', + route_values=route_values, + returns_collection=True) + return self._deserialize('[SuiteTestCase]', response) + + def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): + """RemoveTestCasesFromSuiteUrl. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param str test_case_ids: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + self._send(http_method='DELETE', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='4.1-preview.2', + route_values=route_values) + + def create_test_suite(self, test_suite, project, plan_id, suite_id): + """CreateTestSuite. + [Preview API] + :param :class:` ` test_suite: + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :rtype: [TestSuite] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(test_suite, 'SuiteCreateModel') + response = self._send(http_method='POST', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.1-preview.2', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TestSuite]', response) + + def delete_test_suite(self, project, plan_id, suite_id): + """DeleteTestSuite. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + self._send(http_method='DELETE', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.1-preview.2', + route_values=route_values) + + def get_test_suite_by_id(self, project, plan_id, suite_id, include_child_suites=None): + """GetTestSuiteById. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :param bool include_child_suites: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + query_parameters = {} + if include_child_suites is not None: + query_parameters['includeChildSuites'] = self._serialize.query('include_child_suites', include_child_suites, 'bool') + response = self._send(http_method='GET', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestSuite', response) + + def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=None, top=None, as_tree_view=None): + """GetTestSuitesForPlan. + [Preview API] + :param str project: Project ID or project name + :param int plan_id: + :param bool include_suites: + :param int skip: + :param int top: + :param bool as_tree_view: + :rtype: [TestSuite] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + query_parameters = {} + if include_suites is not None: + query_parameters['includeSuites'] = self._serialize.query('include_suites', include_suites, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if as_tree_view is not None: + query_parameters['$asTreeView'] = self._serialize.query('as_tree_view', as_tree_view, 'bool') + response = self._send(http_method='GET', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestSuite]', response) + + def update_test_suite(self, suite_update_model, project, plan_id, suite_id): + """UpdateTestSuite. + [Preview API] + :param :class:` ` suite_update_model: + :param str project: Project ID or project name + :param int plan_id: + :param int suite_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(suite_update_model, 'SuiteUpdateModel') + response = self._send(http_method='PATCH', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestSuite', response) + + def get_suites_by_test_case_id(self, test_case_id): + """GetSuitesByTestCaseId. + [Preview API] + :param int test_case_id: + :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='09a6167b-e969-4775-9247-b94cf3819caf', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestSuite]', response) + + def delete_test_case(self, project, test_case_id): + """DeleteTestCase. + [Preview API] + :param str project: Project ID or project name + :param int test_case_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_case_id is not None: + route_values['testCaseId'] = self._serialize.url('test_case_id', test_case_id, 'int') + self._send(http_method='DELETE', + location_id='4d472e0f-e32c-4ef8-adf4-a4078772889c', + version='4.1-preview.1', + route_values=route_values) + + def create_test_settings(self, test_settings, project): + """CreateTestSettings. + [Preview API] + :param :class:` ` test_settings: + :param str project: Project ID or project name + :rtype: int + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_settings, 'TestSettings') + response = self._send(http_method='POST', + location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('int', response) + + def delete_test_settings(self, project, test_settings_id): + """DeleteTestSettings. + [Preview API] + :param str project: Project ID or project name + :param int test_settings_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_settings_id is not None: + route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') + self._send(http_method='DELETE', + location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', + version='4.1-preview.1', + route_values=route_values) + + def get_test_settings_by_id(self, project, test_settings_id): + """GetTestSettingsById. + [Preview API] + :param str project: Project ID or project name + :param int test_settings_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_settings_id is not None: + route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') + response = self._send(http_method='GET', + location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TestSettings', response) + + def create_test_variable(self, test_variable, project): + """CreateTestVariable. + [Preview API] + :param :class:` ` test_variable: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_variable, 'TestVariable') + response = self._send(http_method='POST', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestVariable', response) + + def delete_test_variable(self, project, test_variable_id): + """DeleteTestVariable. + [Preview API] + :param str project: Project ID or project name + :param int test_variable_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_variable_id is not None: + route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') + self._send(http_method='DELETE', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.1-preview.1', + route_values=route_values) + + def get_test_variable_by_id(self, project, test_variable_id): + """GetTestVariableById. + [Preview API] + :param str project: Project ID or project name + :param int test_variable_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_variable_id is not None: + route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') + response = self._send(http_method='GET', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TestVariable', response) + + def get_test_variables(self, project, skip=None, top=None): + """GetTestVariables. + [Preview API] + :param str project: Project ID or project name + :param int skip: + :param int top: + :rtype: [TestVariable] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestVariable]', response) + + def update_test_variable(self, test_variable, project, test_variable_id): + """UpdateTestVariable. + [Preview API] + :param :class:` ` test_variable: + :param str project: Project ID or project name + :param int test_variable_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_variable_id is not None: + route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') + content = self._serialize.body(test_variable, 'TestVariable') + response = self._send(http_method='PATCH', + location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestVariable', response) + + def add_work_item_to_test_links(self, work_item_to_test_links, project): + """AddWorkItemToTestLinks. + [Preview API] + :param :class:` ` work_item_to_test_links: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_to_test_links, 'WorkItemToTestLinks') + response = self._send(http_method='POST', + location_id='371b1655-ce05-412e-a113-64cc77bb78d2', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemToTestLinks', response) + + def delete_test_method_to_work_item_link(self, project, test_name, work_item_id): + """DeleteTestMethodToWorkItemLink. + [Preview API] + :param str project: Project ID or project name + :param str test_name: + :param int work_item_id: + :rtype: bool + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if test_name is not None: + query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') + if work_item_id is not None: + query_parameters['workItemId'] = self._serialize.query('work_item_id', work_item_id, 'int') + response = self._send(http_method='DELETE', + location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def query_test_method_linked_work_items(self, project, test_name): + """QueryTestMethodLinkedWorkItems. + [Preview API] + :param str project: Project ID or project name + :param str test_name: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if test_name is not None: + query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') + response = self._send(http_method='POST', + location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestToWorkItemLinks', response) + + def query_test_result_work_items(self, project, work_item_category, automated_test_name=None, test_case_id=None, max_complete_date=None, days=None, work_item_count=None): + """QueryTestResultWorkItems. + [Preview API] + :param str project: Project ID or project name + :param str work_item_category: + :param str automated_test_name: + :param int test_case_id: + :param datetime max_complete_date: + :param int days: + :param int work_item_count: + :rtype: [WorkItemReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if work_item_category is not None: + query_parameters['workItemCategory'] = self._serialize.query('work_item_category', work_item_category, 'str') + if automated_test_name is not None: + query_parameters['automatedTestName'] = self._serialize.query('automated_test_name', automated_test_name, 'str') + if test_case_id is not None: + query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int') + if max_complete_date is not None: + query_parameters['maxCompleteDate'] = self._serialize.query('max_complete_date', max_complete_date, 'iso-8601') + if days is not None: + query_parameters['days'] = self._serialize.query('days', days, 'int') + if work_item_count is not None: + query_parameters['$workItemCount'] = self._serialize.query('work_item_count', work_item_count, 'int') + response = self._send(http_method='GET', + location_id='926ff5dc-137f-45f0-bd51-9412fa9810ce', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemReference]', response) + diff --git a/vsts/vsts/tfvc/v4_1/__init__.py b/vsts/vsts/tfvc/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/tfvc/v4_1/models/__init__.py b/vsts/vsts/tfvc/v4_1/models/__init__.py new file mode 100644 index 00000000..d49eca21 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/__init__.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------------------------- +# 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 .associated_work_item import AssociatedWorkItem +from .change import Change +from .checkin_note import CheckinNote +from .file_content_metadata import FileContentMetadata +from .git_repository import GitRepository +from .git_repository_ref import GitRepositoryRef +from .identity_ref import IdentityRef +from .item_content import ItemContent +from .item_model import ItemModel +from .reference_links import ReferenceLinks +from .team_project_collection_reference import TeamProjectCollectionReference +from .team_project_reference import TeamProjectReference +from .tfvc_branch import TfvcBranch +from .tfvc_branch_mapping import TfvcBranchMapping +from .tfvc_branch_ref import TfvcBranchRef +from .tfvc_change import TfvcChange +from .tfvc_changeset import TfvcChangeset +from .tfvc_changeset_ref import TfvcChangesetRef +from .tfvc_changeset_search_criteria import TfvcChangesetSearchCriteria +from .tfvc_changesets_request_data import TfvcChangesetsRequestData +from .tfvc_item import TfvcItem +from .tfvc_item_descriptor import TfvcItemDescriptor +from .tfvc_item_request_data import TfvcItemRequestData +from .tfvc_label import TfvcLabel +from .tfvc_label_ref import TfvcLabelRef +from .tfvc_label_request_data import TfvcLabelRequestData +from .tfvc_merge_source import TfvcMergeSource +from .tfvc_policy_failure_info import TfvcPolicyFailureInfo +from .tfvc_policy_override_info import TfvcPolicyOverrideInfo +from .tfvc_shallow_branch_ref import TfvcShallowBranchRef +from .tfvc_shelveset import TfvcShelveset +from .tfvc_shelveset_ref import TfvcShelvesetRef +from .tfvc_shelveset_request_data import TfvcShelvesetRequestData +from .tfvc_version_descriptor import TfvcVersionDescriptor +from .version_control_project_info import VersionControlProjectInfo +from .vsts_info import VstsInfo + +__all__ = [ + 'AssociatedWorkItem', + 'Change', + 'CheckinNote', + 'FileContentMetadata', + 'GitRepository', + 'GitRepositoryRef', + 'IdentityRef', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'TfvcBranch', + 'TfvcBranchMapping', + 'TfvcBranchRef', + 'TfvcChange', + 'TfvcChangeset', + 'TfvcChangesetRef', + 'TfvcChangesetSearchCriteria', + 'TfvcChangesetsRequestData', + 'TfvcItem', + 'TfvcItemDescriptor', + 'TfvcItemRequestData', + 'TfvcLabel', + 'TfvcLabelRef', + 'TfvcLabelRequestData', + 'TfvcMergeSource', + 'TfvcPolicyFailureInfo', + 'TfvcPolicyOverrideInfo', + 'TfvcShallowBranchRef', + 'TfvcShelveset', + 'TfvcShelvesetRef', + 'TfvcShelvesetRequestData', + 'TfvcVersionDescriptor', + 'VersionControlProjectInfo', + 'VstsInfo', +] diff --git a/vsts/vsts/tfvc/v4_1/models/associated_work_item.py b/vsts/vsts/tfvc/v4_1/models/associated_work_item.py new file mode 100644 index 00000000..1f491dad --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/associated_work_item.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: Id of associated the work item. + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST Url of the work item. + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type diff --git a/vsts/vsts/tfvc/v4_1/models/change.py b/vsts/vsts/tfvc/v4_1/models/change.py new file mode 100644 index 00000000..833f8744 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/change.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Change(Model): + """Change. + + :param change_type: The type of change that was made to the item. + :type change_type: object + :param item: Current version. + :type item: object + :param new_content: Content of the item after the change. + :type new_content: :class:`ItemContent ` + :param source_server_item: Path of the item on the server. + :type source_server_item: str + :param url: URL to retrieve the item. + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'object'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/checkin_note.py b/vsts/vsts/tfvc/v4_1/models/checkin_note.py new file mode 100644 index 00000000..d92f9bae --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/checkin_note.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CheckinNote(Model): + """CheckinNote. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(CheckinNote, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/tfvc/v4_1/models/file_content_metadata.py b/vsts/vsts/tfvc/v4_1/models/file_content_metadata.py new file mode 100644 index 00000000..d2d6667d --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/file_content_metadata.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link diff --git a/vsts/vsts/tfvc/v4_1/models/git_repository.py b/vsts/vsts/tfvc/v4_1/models/git_repository.py new file mode 100644 index 00000000..cbc542ed --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/git_repository.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/tfvc/v4_1/models/git_repository_ref.py b/vsts/vsts/tfvc/v4_1/models/git_repository_ref.py new file mode 100644 index 00000000..caa8c101 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/git_repository_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: :class:`TeamProjectCollectionReference ` + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.is_fork = is_fork + self.name = name + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/identity_ref.py b/vsts/vsts/tfvc/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/item_content.py b/vsts/vsts/tfvc/v4_1/models/item_content.py new file mode 100644 index 00000000..f5cfaef1 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/item_content.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type diff --git a/vsts/vsts/tfvc/v4_1/models/item_model.py b/vsts/vsts/tfvc/v4_1/models/item_model.py new file mode 100644 index 00000000..362fed29 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/item_model.py @@ -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.serialization import Model + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/reference_links.py b/vsts/vsts/tfvc/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py b/vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py new file mode 100644 index 00000000..6f4a596a --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/team_project_reference.py b/vsts/vsts/tfvc/v4_1/models/team_project_reference.py new file mode 100644 index 00000000..fa79d465 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/team_project_reference.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_branch.py b/vsts/vsts/tfvc/v4_1/models/tfvc_branch.py new file mode 100644 index 00000000..d8e7a214 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_branch.py @@ -0,0 +1,58 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_branch_ref import TfvcBranchRef + + +class TfvcBranch(TfvcBranchRef): + """TfvcBranch. + + :param path: Path for the branch. + :type path: str + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param created_date: Creation date of the branch. + :type created_date: datetime + :param description: Description of the branch. + :type description: str + :param is_deleted: Is the branch deleted? + :type is_deleted: bool + :param owner: Alias or display name of user + :type owner: :class:`IdentityRef ` + :param url: URL to retrieve the item. + :type url: str + :param children: List of children for the branch. + :type children: list of :class:`TfvcBranch ` + :param mappings: List of branch mappings. + :type mappings: list of :class:`TfvcBranchMapping ` + :param parent: Path of the branch's parent. + :type parent: :class:`TfvcShallowBranchRef ` + :param related_branches: List of paths of the related branches. + :type related_branches: list of :class:`TfvcShallowBranchRef ` + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TfvcBranch]'}, + 'mappings': {'key': 'mappings', 'type': '[TfvcBranchMapping]'}, + 'parent': {'key': 'parent', 'type': 'TfvcShallowBranchRef'}, + 'related_branches': {'key': 'relatedBranches', 'type': '[TfvcShallowBranchRef]'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None, children=None, mappings=None, parent=None, related_branches=None): + super(TfvcBranch, self).__init__(path=path, _links=_links, created_date=created_date, description=description, is_deleted=is_deleted, owner=owner, url=url) + self.children = children + self.mappings = mappings + self.parent = parent + self.related_branches = related_branches diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py b/vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py new file mode 100644 index 00000000..0e0bf579 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcBranchMapping(Model): + """TfvcBranchMapping. + + :param depth: Depth of the branch. + :type depth: str + :param server_item: Server item for the branch. + :type server_item: str + :param type: Type of the branch. + :type type: str + """ + + _attribute_map = { + 'depth': {'key': 'depth', 'type': 'str'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, depth=None, server_item=None, type=None): + super(TfvcBranchMapping, self).__init__() + self.depth = depth + self.server_item = server_item + self.type = type diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py new file mode 100644 index 00000000..cf094f99 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_shallow_branch_ref import TfvcShallowBranchRef + + +class TfvcBranchRef(TfvcShallowBranchRef): + """TfvcBranchRef. + + :param path: Path for the branch. + :type path: str + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param created_date: Creation date of the branch. + :type created_date: datetime + :param description: Description of the branch. + :type description: str + :param is_deleted: Is the branch deleted? + :type is_deleted: bool + :param owner: Alias or display name of user + :type owner: :class:`IdentityRef ` + :param url: URL to retrieve the item. + :type url: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None): + super(TfvcBranchRef, self).__init__(path=path) + self._links = _links + self.created_date = created_date + self.description = description + self.is_deleted = is_deleted + self.owner = owner + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_change.py b/vsts/vsts/tfvc/v4_1/models/tfvc_change.py new file mode 100644 index 00000000..9880c769 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_change.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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 .change import Change + + +class TfvcChange(Change): + """TfvcChange. + + :param merge_sources: List of merge sources in case of rename or branch creation. + :type merge_sources: list of :class:`TfvcMergeSource ` + :param pending_version: Version at which a (shelved) change was pended against + :type pending_version: int + """ + + _attribute_map = { + 'merge_sources': {'key': 'mergeSources', 'type': '[TfvcMergeSource]'}, + 'pending_version': {'key': 'pendingVersion', 'type': 'int'} + } + + def __init__(self, merge_sources=None, pending_version=None): + super(TfvcChange, self).__init__() + self.merge_sources = merge_sources + self.pending_version = pending_version diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py new file mode 100644 index 00000000..76850429 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_changeset_ref import TfvcChangesetRef + + +class TfvcChangeset(TfvcChangesetRef): + """TfvcChangeset. + + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Alias or display name of user + :type author: :class:`IdentityRef ` + :param changeset_id: Id of the changeset. + :type changeset_id: int + :param checked_in_by: Alias or display name of user + :type checked_in_by: :class:`IdentityRef ` + :param comment: Comment for the changeset. + :type comment: str + :param comment_truncated: Was the Comment result truncated? + :type comment_truncated: bool + :param created_date: Creation date of the changeset. + :type created_date: datetime + :param url: URL to retrieve the item. + :type url: str + :param account_id: Account Id of the changeset. + :type account_id: str + :param changes: List of associated changes. + :type changes: list of :class:`TfvcChange ` + :param checkin_notes: Checkin Notes for the changeset. + :type checkin_notes: list of :class:`CheckinNote ` + :param collection_id: Collection Id of the changeset. + :type collection_id: str + :param has_more_changes: Are more changes available. + :type has_more_changes: bool + :param policy_override: Policy Override for the changeset. + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param team_project_ids: Team Project Ids for the changeset. + :type team_project_ids: list of str + :param work_items: List of work items associated with the changeset. + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'}, + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'checkin_notes': {'key': 'checkinNotes', 'type': '[CheckinNote]'}, + 'collection_id': {'key': 'collectionId', 'type': 'str'}, + 'has_more_changes': {'key': 'hasMoreChanges', 'type': 'bool'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'team_project_ids': {'key': 'teamProjectIds', 'type': '[str]'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None, account_id=None, changes=None, checkin_notes=None, collection_id=None, has_more_changes=None, policy_override=None, team_project_ids=None, work_items=None): + super(TfvcChangeset, self).__init__(_links=_links, author=author, changeset_id=changeset_id, checked_in_by=checked_in_by, comment=comment, comment_truncated=comment_truncated, created_date=created_date, url=url) + self.account_id = account_id + self.changes = changes + self.checkin_notes = checkin_notes + self.collection_id = collection_id + self.has_more_changes = has_more_changes + self.policy_override = policy_override + self.team_project_ids = team_project_ids + self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py new file mode 100644 index 00000000..ae48f998 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcChangesetRef(Model): + """TfvcChangesetRef. + + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Alias or display name of user + :type author: :class:`IdentityRef ` + :param changeset_id: Id of the changeset. + :type changeset_id: int + :param checked_in_by: Alias or display name of user + :type checked_in_by: :class:`IdentityRef ` + :param comment: Comment for the changeset. + :type comment: str + :param comment_truncated: Was the Comment result truncated? + :type comment_truncated: bool + :param created_date: Creation date of the changeset. + :type created_date: datetime + :param url: URL to retrieve the item. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None): + super(TfvcChangesetRef, self).__init__() + self._links = _links + self.author = author + self.changeset_id = changeset_id + self.checked_in_by = checked_in_by + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py new file mode 100644 index 00000000..41d556ef --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcChangesetSearchCriteria(Model): + """TfvcChangesetSearchCriteria. + + :param author: Alias or display name of user who made the changes + :type author: str + :param follow_renames: Whether or not to follow renames for the given item being queried + :type follow_renames: bool + :param from_date: If provided, only include changesets created after this date (string) Think of a better name for this. + :type from_date: str + :param from_id: If provided, only include changesets after this changesetID + :type from_id: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_path: Path of item to search under + :type item_path: str + :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. + :type to_date: str + :param to_id: If provided, a version descriptor for the latest change list to include + :type to_id: int + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'follow_renames': {'key': 'followRenames', 'type': 'bool'}, + 'from_date': {'key': 'fromDate', 'type': 'str'}, + 'from_id': {'key': 'fromId', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'str'}, + 'to_id': {'key': 'toId', 'type': 'int'} + } + + def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): + super(TfvcChangesetSearchCriteria, self).__init__() + self.author = author + self.follow_renames = follow_renames + self.from_date = from_date + self.from_id = from_id + self.include_links = include_links + self.item_path = item_path + self.to_date = to_date + self.to_id = to_id diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py new file mode 100644 index 00000000..2f22a642 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcChangesetsRequestData(Model): + """TfvcChangesetsRequestData. + + :param changeset_ids: List of changeset Ids. + :type changeset_ids: list of int + :param comment_length: Length of the comment. + :type comment_length: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + """ + + _attribute_map = { + 'changeset_ids': {'key': 'changesetIds', 'type': '[int]'}, + 'comment_length': {'key': 'commentLength', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'} + } + + def __init__(self, changeset_ids=None, comment_length=None, include_links=None): + super(TfvcChangesetsRequestData, self).__init__() + self.changeset_ids = changeset_ids + self.comment_length = comment_length + self.include_links = include_links diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_item.py b/vsts/vsts/tfvc/v4_1/models/tfvc_item.py new file mode 100644 index 00000000..fd0ceaf9 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_item.py @@ -0,0 +1,67 @@ +# -------------------------------------------------------------------------------------------- +# 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 .item_model import ItemModel + + +class TfvcItem(ItemModel): + """TfvcItem. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param change_date: + :type change_date: datetime + :param deletion_id: + :type deletion_id: int + :param hash_value: MD5 hash as a base 64 string, applies to files only. + :type hash_value: str + :param is_branch: + :type is_branch: bool + :param is_pending_change: + :type is_pending_change: bool + :param size: The size of the file, if applicable. + :type size: long + :param version: + :type version: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, + 'deletion_id': {'key': 'deletionId', 'type': 'int'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'is_branch': {'key': 'isBranch', 'type': 'bool'}, + 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, + 'size': {'key': 'size', 'type': 'long'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): + super(TfvcItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.change_date = change_date + self.deletion_id = deletion_id + self.hash_value = hash_value + self.is_branch = is_branch + self.is_pending_change = is_pending_change + self.size = size + self.version = version diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py b/vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py new file mode 100644 index 00000000..47a3306c --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcItemDescriptor(Model): + """TfvcItemDescriptor. + + :param path: + :type path: str + :param recursion_level: + :type recursion_level: object + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, path=None, recursion_level=None, version=None, version_option=None, version_type=None): + super(TfvcItemDescriptor, self).__init__() + self.path = path + self.recursion_level = recursion_level + self.version = version + self.version_option = version_option + self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py new file mode 100644 index 00000000..981cd2bb --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcItemRequestData(Model): + """TfvcItemRequestData. + + :param include_content_metadata: If true, include metadata about the file type + :type include_content_metadata: bool + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_descriptors: + :type item_descriptors: list of :class:`TfvcItemDescriptor ` + """ + + _attribute_map = { + 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_descriptors': {'key': 'itemDescriptors', 'type': '[TfvcItemDescriptor]'} + } + + def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None): + super(TfvcItemRequestData, self).__init__() + self.include_content_metadata = include_content_metadata + self.include_links = include_links + self.item_descriptors = item_descriptors diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_label.py b/vsts/vsts/tfvc/v4_1/models/tfvc_label.py new file mode 100644 index 00000000..c4c6c477 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_label.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_label_ref import TfvcLabelRef + + +class TfvcLabel(TfvcLabelRef): + """TfvcLabel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param items: + :type items: list of :class:`TfvcItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[TfvcItem]'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None, items=None): + super(TfvcLabel, self).__init__(_links=_links, description=description, id=id, label_scope=label_scope, modified_date=modified_date, name=name, owner=owner, url=url) + self.items = items diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py new file mode 100644 index 00000000..d614f0fb --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcLabelRef(Model): + """TfvcLabelRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None): + super(TfvcLabelRef, self).__init__() + self._links = _links + self.description = description + self.id = id + self.label_scope = label_scope + self.modified_date = modified_date + self.name = name + self.owner = owner + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py new file mode 100644 index 00000000..bd8d12cc --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py @@ -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.serialization import Model + + +class TfvcLabelRequestData(Model): + """TfvcLabelRequestData. + + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_label_filter: + :type item_label_filter: str + :param label_scope: + :type label_scope: str + :param max_item_count: + :type max_item_count: int + :param name: + :type name: str + :param owner: + :type owner: str + """ + + _attribute_map = { + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_label_filter': {'key': 'itemLabelFilter', 'type': 'str'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'max_item_count': {'key': 'maxItemCount', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_links=None, item_label_filter=None, label_scope=None, max_item_count=None, name=None, owner=None): + super(TfvcLabelRequestData, self).__init__() + self.include_links = include_links + self.item_label_filter = item_label_filter + self.label_scope = label_scope + self.max_item_count = max_item_count + self.name = name + self.owner = owner diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py b/vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py new file mode 100644 index 00000000..8516dbd5 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcMergeSource(Model): + """TfvcMergeSource. + + :param is_rename: Indicates if this a rename source. If false, it is a merge source. + :type is_rename: bool + :param server_item: The server item of the merge source + :type server_item: str + :param version_from: Start of the version range + :type version_from: int + :param version_to: End of the version range + :type version_to: int + """ + + _attribute_map = { + 'is_rename': {'key': 'isRename', 'type': 'bool'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'version_from': {'key': 'versionFrom', 'type': 'int'}, + 'version_to': {'key': 'versionTo', 'type': 'int'} + } + + def __init__(self, is_rename=None, server_item=None, version_from=None, version_to=None): + super(TfvcMergeSource, self).__init__() + self.is_rename = is_rename + self.server_item = server_item + self.version_from = version_from + self.version_to = version_to diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py b/vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py new file mode 100644 index 00000000..72ab75d8 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcPolicyFailureInfo(Model): + """TfvcPolicyFailureInfo. + + :param message: + :type message: str + :param policy_name: + :type policy_name: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'} + } + + def __init__(self, message=None, policy_name=None): + super(TfvcPolicyFailureInfo, self).__init__() + self.message = message + self.policy_name = policy_name diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py b/vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py new file mode 100644 index 00000000..9477c03a --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcPolicyOverrideInfo(Model): + """TfvcPolicyOverrideInfo. + + :param comment: + :type comment: str + :param policy_failures: + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'policy_failures': {'key': 'policyFailures', 'type': '[TfvcPolicyFailureInfo]'} + } + + def __init__(self, comment=None, policy_failures=None): + super(TfvcPolicyOverrideInfo, self).__init__() + self.comment = comment + self.policy_failures = policy_failures diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py new file mode 100644 index 00000000..3c863aa0 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcShallowBranchRef(Model): + """TfvcShallowBranchRef. + + :param path: Path for the branch. + :type path: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, path=None): + super(TfvcShallowBranchRef, self).__init__() + self.path = path diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py new file mode 100644 index 00000000..9562f3f6 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .tfvc_shelveset_ref import TfvcShelvesetRef + + +class TfvcShelveset(TfvcShelvesetRef): + """TfvcShelveset. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param changes: + :type changes: list of :class:`TfvcChange ` + :param notes: + :type notes: list of :class:`CheckinNote ` + :param policy_override: + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param work_items: + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'notes': {'key': 'notes', 'type': '[CheckinNote]'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None, changes=None, notes=None, policy_override=None, work_items=None): + super(TfvcShelveset, self).__init__(_links=_links, comment=comment, comment_truncated=comment_truncated, created_date=created_date, id=id, name=name, owner=owner, url=url) + self.changes = changes + self.notes = notes + self.policy_override = policy_override + self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py new file mode 100644 index 00000000..10a96a20 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcShelvesetRef(Model): + """TfvcShelvesetRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None): + super(TfvcShelvesetRef, self).__init__() + self._links = _links + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.id = id + self.name = name + self.owner = owner + self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py new file mode 100644 index 00000000..4d9c1442 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcShelvesetRequestData(Model): + """TfvcShelvesetRequestData. + + :param include_details: Whether to include policyOverride and notes Only applies when requesting a single deep shelveset + :type include_details: bool + :param include_links: Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset. + :type include_links: bool + :param include_work_items: Whether to include workItems + :type include_work_items: bool + :param max_change_count: Max number of changes to include + :type max_change_count: int + :param max_comment_length: Max length of comment + :type max_comment_length: int + :param name: Shelveset's name + :type name: str + :param owner: Owner's ID. Could be a name or a guid. + :type owner: str + """ + + _attribute_map = { + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, + 'max_change_count': {'key': 'maxChangeCount', 'type': 'int'}, + 'max_comment_length': {'key': 'maxCommentLength', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_details=None, include_links=None, include_work_items=None, max_change_count=None, max_comment_length=None, name=None, owner=None): + super(TfvcShelvesetRequestData, self).__init__() + self.include_details = include_details + self.include_links = include_links + self.include_work_items = include_work_items + self.max_change_count = max_change_count + self.max_comment_length = max_comment_length + self.name = name + self.owner = owner diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py b/vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py new file mode 100644 index 00000000..13187560 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TfvcVersionDescriptor(Model): + """TfvcVersionDescriptor. + + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_option=None, version_type=None): + super(TfvcVersionDescriptor, self).__init__() + self.version = version + self.version_option = version_option + self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_1/models/version_control_project_info.py b/vsts/vsts/tfvc/v4_1/models/version_control_project_info.py new file mode 100644 index 00000000..3ec9fc3d --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/version_control_project_info.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VersionControlProjectInfo(Model): + """VersionControlProjectInfo. + + :param default_source_control_type: + :type default_source_control_type: object + :param project: + :type project: :class:`TeamProjectReference ` + :param supports_git: + :type supports_git: bool + :param supports_tFVC: + :type supports_tFVC: bool + """ + + _attribute_map = { + 'default_source_control_type': {'key': 'defaultSourceControlType', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'supports_git': {'key': 'supportsGit', 'type': 'bool'}, + 'supports_tFVC': {'key': 'supportsTFVC', 'type': 'bool'} + } + + def __init__(self, default_source_control_type=None, project=None, supports_git=None, supports_tFVC=None): + super(VersionControlProjectInfo, self).__init__() + self.default_source_control_type = default_source_control_type + self.project = project + self.supports_git = supports_git + self.supports_tFVC = supports_tFVC diff --git a/vsts/vsts/tfvc/v4_1/models/vsts_info.py b/vsts/vsts/tfvc/v4_1/models/vsts_info.py new file mode 100644 index 00000000..294db212 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/vsts_info.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VstsInfo(Model): + """VstsInfo. + + :param collection: + :type collection: :class:`TeamProjectCollectionReference ` + :param repository: + :type repository: :class:`GitRepository ` + :param server_url: + :type server_url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'server_url': {'key': 'serverUrl', 'type': 'str'} + } + + def __init__(self, collection=None, repository=None, server_url=None): + super(VstsInfo, self).__init__() + self.collection = collection + self.repository = repository + self.server_url = server_url diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/vsts/vsts/tfvc/v4_1/tfvc_client.py new file mode 100644 index 00000000..c933c6b0 --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/tfvc_client.py @@ -0,0 +1,724 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class TfvcClient(VssClient): + """Tfvc + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TfvcClient, 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_branch(self, path, project=None, include_parent=None, include_children=None): + """GetBranch. + [Preview API] Get a single branch hierarchy at the given path with parents or children as specified. + :param str path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. + :param str project: Project ID or project name + :param bool include_parent: Return the parent branch, if there is one. Default: False + :param bool include_children: Return child branches, if there are any. Default: False + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if include_parent is not None: + query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') + if include_children is not None: + query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcBranch', response) + + def get_branches(self, project=None, include_parent=None, include_children=None, include_deleted=None, include_links=None): + """GetBranches. + [Preview API] Get a collection of branch roots -- first-level children, branches with no parents. + :param str project: Project ID or project name + :param bool include_parent: Return the parent branch, if there is one. Default: False + :param bool include_children: Return the child branches for each root branch. Default: False + :param bool include_deleted: Return deleted branches. Default: False + :param bool include_links: Return links. Default: False + :rtype: [TfvcBranch] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if include_parent is not None: + query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') + if include_children is not None: + query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcBranch]', response) + + def get_branch_refs(self, scope_path, project=None, include_deleted=None, include_links=None): + """GetBranchRefs. + [Preview API] Get branch hierarchies below the specified scopePath + :param str scope_path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. + :param str project: Project ID or project name + :param bool include_deleted: Return deleted branches. Default: False + :param bool include_links: Return links. Default: False + :rtype: [TfvcBranchRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcBranchRef]', response) + + def get_changeset_changes(self, id=None, skip=None, top=None): + """GetChangesetChanges. + [Preview API] Retrieve Tfvc changes for a given changeset. + :param int id: ID of the changeset. Default: null + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :rtype: [TfvcChange] + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcChange]', response) + + def create_changeset(self, changeset, project=None): + """CreateChangeset. + [Preview API] Create a new changeset. + :param :class:` ` changeset: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(changeset, 'TfvcChangeset') + response = self._send(http_method='POST', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='4.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('TfvcChangesetRef', response) + + def get_changeset(self, id, project=None, max_change_count=None, include_details=None, include_work_items=None, max_comment_length=None, include_source_rename=None, skip=None, top=None, orderby=None, search_criteria=None): + """GetChangeset. + [Preview API] Retrieve a Tfvc Changeset + :param int id: Changeset Id to retrieve. + :param str project: Project ID or project name + :param int max_change_count: Number of changes to return (maximum 100 changes) Default: 0 + :param bool include_details: Include policy details and check-in notes in the response. Default: false + :param bool include_work_items: Include workitems. Default: false + :param int max_comment_length: Include details about associated work items in the response. Default: null + :param bool include_source_rename: Include renames. Default: false + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if max_change_count is not None: + query_parameters['maxChangeCount'] = self._serialize.query('max_change_count', max_change_count, 'int') + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + if include_work_items is not None: + query_parameters['includeWorkItems'] = self._serialize.query('include_work_items', include_work_items, 'bool') + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if include_source_rename is not None: + query_parameters['includeSourceRename'] = self._serialize.query('include_source_rename', include_source_rename, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if search_criteria is not None: + if search_criteria.item_path is not None: + query_parameters['searchCriteria.itemPath'] = search_criteria.item_path + if search_criteria.author is not None: + query_parameters['searchCriteria.author'] = search_criteria.author + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.from_id is not None: + query_parameters['searchCriteria.fromId'] = search_criteria.from_id + if search_criteria.to_id is not None: + query_parameters['searchCriteria.toId'] = search_criteria.to_id + if search_criteria.follow_renames is not None: + query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + response = self._send(http_method='GET', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcChangeset', response) + + def get_changesets(self, project=None, max_comment_length=None, skip=None, top=None, orderby=None, search_criteria=None): + """GetChangesets. + [Preview API] Retrieve Tfvc Changesets + :param str project: Project ID or project name + :param int max_comment_length: Include details about associated work items in the response. Default: null + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :rtype: [TfvcChangesetRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if search_criteria is not None: + if search_criteria.item_path is not None: + query_parameters['searchCriteria.itemPath'] = search_criteria.item_path + if search_criteria.author is not None: + query_parameters['searchCriteria.author'] = search_criteria.author + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.from_id is not None: + query_parameters['searchCriteria.fromId'] = search_criteria.from_id + if search_criteria.to_id is not None: + query_parameters['searchCriteria.toId'] = search_criteria.to_id + if search_criteria.follow_renames is not None: + query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + response = self._send(http_method='GET', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcChangesetRef]', response) + + def get_batched_changesets(self, changesets_request_data): + """GetBatchedChangesets. + [Preview API] Returns changesets for a given list of changeset Ids. + :param :class:` ` changesets_request_data: List of changeset IDs. + :rtype: [TfvcChangesetRef] + """ + content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') + response = self._send(http_method='POST', + location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', + version='4.1-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[TfvcChangesetRef]', response) + + def get_changeset_work_items(self, id=None): + """GetChangesetWorkItems. + [Preview API] Retrieves the work items associated with a particular changeset. + :param int id: ID of the changeset. Default: null + :rtype: [AssociatedWorkItem] + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + response = self._send(http_method='GET', + location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[AssociatedWorkItem]', response) + + def get_items_batch(self, item_request_data, project=None): + """GetItemsBatch. + [Preview API] Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: + :param str project: Project ID or project name + :rtype: [[TfvcItem]] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(item_request_data, 'TfvcItemRequestData') + response = self._send(http_method='POST', + location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[[TfvcItem]]', response) + + def get_items_batch_zip(self, item_request_data, project=None): + """GetItemsBatchZip. + [Preview API] Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: + :param str project: Project ID or project name + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(item_request_data, 'TfvcItemRequestData') + response = self._send(http_method='POST', + location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('object', response) + + def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItem. + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcItem', response) + + def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItemContent. + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_items(self, project=None, scope_path=None, recursion_level=None, include_links=None, version_descriptor=None): + """GetItems. + [Preview API] Get a list of Tfvc items + :param str project: Project ID or project name + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param bool include_links: True to include links. + :param :class:` ` version_descriptor: + :rtype: [TfvcItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcItem]', response) + + def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItemText. + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + """GetItemZip. + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_label_items(self, label_id, top=None, skip=None): + """GetLabelItems. + [Preview API] Get items under a label. + :param str label_id: Unique identifier of label + :param int top: Max number of items to return + :param int skip: Number of items to skip + :rtype: [TfvcItem] + """ + route_values = {} + if label_id is not None: + route_values['labelId'] = self._serialize.url('label_id', label_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='06166e34-de17-4b60-8cd1-23182a346fda', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcItem]', response) + + def get_label(self, label_id, request_data, project=None): + """GetLabel. + [Preview API] Get a single deep label. + :param str label_id: Unique identifier of label + :param :class:` ` request_data: maxItemCount + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if label_id is not None: + route_values['labelId'] = self._serialize.url('label_id', label_id, 'str') + query_parameters = {} + if request_data is not None: + if request_data.label_scope is not None: + query_parameters['requestData.LabelScope'] = request_data.label_scope + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.item_label_filter is not None: + query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + if request_data.max_item_count is not None: + query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + response = self._send(http_method='GET', + location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcLabel', response) + + def get_labels(self, request_data, project=None, top=None, skip=None): + """GetLabels. + [Preview API] Get a collection of shallow label references. + :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter + :param str project: Project ID or project name + :param int top: Max number of labels to return + :param int skip: Number of labels to skip + :rtype: [TfvcLabelRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if request_data is not None: + if request_data.label_scope is not None: + query_parameters['requestData.LabelScope'] = request_data.label_scope + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.item_label_filter is not None: + query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + if request_data.max_item_count is not None: + query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcLabelRef]', response) + + def get_shelveset_changes(self, shelveset_id, top=None, skip=None): + """GetShelvesetChanges. + [Preview API] Get changes included in a shelveset. + :param str shelveset_id: Shelveset's unique ID + :param int top: Max number of changes to return + :param int skip: Number of changes to skip + :rtype: [TfvcChange] + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='dbaf075b-0445-4c34-9e5b-82292f856522', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcChange]', response) + + def get_shelveset(self, shelveset_id, request_data=None): + """GetShelveset. + [Preview API] Get a single deep shelveset. + :param str shelveset_id: Shelveset's unique ID + :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength + :rtype: :class:` ` + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + if request_data is not None: + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.max_comment_length is not None: + query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + if request_data.max_change_count is not None: + query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + if request_data.include_details is not None: + query_parameters['requestData.IncludeDetails'] = request_data.include_details + if request_data.include_work_items is not None: + query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + response = self._send(http_method='GET', + location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', + version='4.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('TfvcShelveset', response) + + def get_shelvesets(self, request_data=None, top=None, skip=None): + """GetShelvesets. + [Preview API] Return a collection of shallow shelveset references. + :param :class:` ` request_data: name, owner, and maxCommentLength + :param int top: Max number of shelvesets to return + :param int skip: Number of shelvesets to skip + :rtype: [TfvcShelvesetRef] + """ + query_parameters = {} + if request_data is not None: + if request_data.name is not None: + query_parameters['requestData.Name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.Owner'] = request_data.owner + if request_data.max_comment_length is not None: + query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + if request_data.max_change_count is not None: + query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + if request_data.include_details is not None: + query_parameters['requestData.IncludeDetails'] = request_data.include_details + if request_data.include_work_items is not None: + query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TfvcShelvesetRef]', response) + + def get_shelveset_work_items(self, shelveset_id): + """GetShelvesetWorkItems. + [Preview API] Get work items associated with a shelveset. + :param str shelveset_id: Shelveset's unique ID + :rtype: [AssociatedWorkItem] + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + response = self._send(http_method='GET', + location_id='a7a0c1c1-373e-425a-b031-a519474d743d', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[AssociatedWorkItem]', response) + diff --git a/vsts/vsts/work/v4_1/__init__.py b/vsts/vsts/work/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work/v4_1/models/__init__.py b/vsts/vsts/work/v4_1/models/__init__.py new file mode 100644 index 00000000..964adda3 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/__init__.py @@ -0,0 +1,125 @@ +# -------------------------------------------------------------------------------------------- +# 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 .activity import Activity +from .attribute import attribute +from .backlog_column import BacklogColumn +from .backlog_configuration import BacklogConfiguration +from .backlog_fields import BacklogFields +from .backlog_level import BacklogLevel +from .backlog_level_configuration import BacklogLevelConfiguration +from .board import Board +from .board_card_rule_settings import BoardCardRuleSettings +from .board_card_settings import BoardCardSettings +from .board_chart import BoardChart +from .board_chart_reference import BoardChartReference +from .board_column import BoardColumn +from .board_fields import BoardFields +from .board_reference import BoardReference +from .board_row import BoardRow +from .board_suggested_value import BoardSuggestedValue +from .board_user_settings import BoardUserSettings +from .capacity_patch import CapacityPatch +from .category_configuration import CategoryConfiguration +from .create_plan import CreatePlan +from .date_range import DateRange +from .delivery_view_data import DeliveryViewData +from .field_reference import FieldReference +from .field_setting import FieldSetting +from .filter_clause import FilterClause +from .identity_ref import IdentityRef +from .member import Member +from .parent_child_wIMap import ParentChildWIMap +from .plan import Plan +from .plan_view_data import PlanViewData +from .process_configuration import ProcessConfiguration +from .reference_links import ReferenceLinks +from .rule import Rule +from .team_context import TeamContext +from .team_field_value import TeamFieldValue +from .team_field_values import TeamFieldValues +from .team_field_values_patch import TeamFieldValuesPatch +from .team_iteration_attributes import TeamIterationAttributes +from .team_member_capacity import TeamMemberCapacity +from .team_setting import TeamSetting +from .team_settings_data_contract_base import TeamSettingsDataContractBase +from .team_settings_days_off import TeamSettingsDaysOff +from .team_settings_days_off_patch import TeamSettingsDaysOffPatch +from .team_settings_iteration import TeamSettingsIteration +from .team_settings_patch import TeamSettingsPatch +from .timeline_criteria_status import TimelineCriteriaStatus +from .timeline_iteration_status import TimelineIterationStatus +from .timeline_team_data import TimelineTeamData +from .timeline_team_iteration import TimelineTeamIteration +from .timeline_team_status import TimelineTeamStatus +from .update_plan import UpdatePlan +from .work_item_color import WorkItemColor +from .work_item_field_reference import WorkItemFieldReference +from .work_item_tracking_resource_reference import WorkItemTrackingResourceReference +from .work_item_type_reference import WorkItemTypeReference +from .work_item_type_state_info import WorkItemTypeStateInfo + +__all__ = [ + 'Activity', + 'attribute', + 'BacklogColumn', + 'BacklogConfiguration', + 'BacklogFields', + 'BacklogLevel', + 'BacklogLevelConfiguration', + 'Board', + 'BoardCardRuleSettings', + 'BoardCardSettings', + 'BoardChart', + 'BoardChartReference', + 'BoardColumn', + 'BoardFields', + 'BoardReference', + 'BoardRow', + 'BoardSuggestedValue', + 'BoardUserSettings', + 'CapacityPatch', + 'CategoryConfiguration', + 'CreatePlan', + 'DateRange', + 'DeliveryViewData', + 'FieldReference', + 'FieldSetting', + 'FilterClause', + 'IdentityRef', + 'Member', + 'ParentChildWIMap', + 'Plan', + 'PlanViewData', + 'ProcessConfiguration', + 'ReferenceLinks', + 'Rule', + 'TeamContext', + 'TeamFieldValue', + 'TeamFieldValues', + 'TeamFieldValuesPatch', + 'TeamIterationAttributes', + 'TeamMemberCapacity', + 'TeamSetting', + 'TeamSettingsDataContractBase', + 'TeamSettingsDaysOff', + 'TeamSettingsDaysOffPatch', + 'TeamSettingsIteration', + 'TeamSettingsPatch', + 'TimelineCriteriaStatus', + 'TimelineIterationStatus', + 'TimelineTeamData', + 'TimelineTeamIteration', + 'TimelineTeamStatus', + 'UpdatePlan', + 'WorkItemColor', + 'WorkItemFieldReference', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeReference', + 'WorkItemTypeStateInfo', +] diff --git a/vsts/vsts/work/v4_1/models/activity.py b/vsts/vsts/work/v4_1/models/activity.py new file mode 100644 index 00000000..2b9c616f --- /dev/null +++ b/vsts/vsts/work/v4_1/models/activity.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Activity(Model): + """Activity. + + :param capacity_per_day: + :type capacity_per_day: number + :param name: + :type name: str + """ + + _attribute_map = { + 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'number'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, capacity_per_day=None, name=None): + super(Activity, self).__init__() + self.capacity_per_day = capacity_per_day + self.name = name diff --git a/vsts/vsts/work/v4_1/models/attribute.py b/vsts/vsts/work/v4_1/models/attribute.py new file mode 100644 index 00000000..6f113cc3 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/attribute.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + + +class attribute(dict): + """attribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(attribute, self).__init__() diff --git a/vsts/vsts/work/v4_1/models/backlog_column.py b/vsts/vsts/work/v4_1/models/backlog_column.py new file mode 100644 index 00000000..e66106f7 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/backlog_column.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogColumn(Model): + """BacklogColumn. + + :param column_field_reference: + :type column_field_reference: :class:`WorkItemFieldReference ` + :param width: + :type width: int + """ + + _attribute_map = { + 'column_field_reference': {'key': 'columnFieldReference', 'type': 'WorkItemFieldReference'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, column_field_reference=None, width=None): + super(BacklogColumn, self).__init__() + self.column_field_reference = column_field_reference + self.width = width diff --git a/vsts/vsts/work/v4_1/models/backlog_configuration.py b/vsts/vsts/work/v4_1/models/backlog_configuration.py new file mode 100644 index 00000000..f579fae2 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/backlog_configuration.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogConfiguration(Model): + """BacklogConfiguration. + + :param backlog_fields: Behavior/type field mapping + :type backlog_fields: :class:`BacklogFields ` + :param bugs_behavior: Bugs behavior + :type bugs_behavior: object + :param hidden_backlogs: Hidden Backlog + :type hidden_backlogs: list of str + :param portfolio_backlogs: Portfolio backlog descriptors + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :param requirement_backlog: Requirement backlog + :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :param task_backlog: Task backlog + :type task_backlog: :class:`BacklogLevelConfiguration ` + :param url: + :type url: str + :param work_item_type_mapped_states: Mapped states for work item types + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + """ + + _attribute_map = { + 'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'} + } + + def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): + super(BacklogConfiguration, self).__init__() + self.backlog_fields = backlog_fields + self.bugs_behavior = bugs_behavior + self.hidden_backlogs = hidden_backlogs + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.url = url + self.work_item_type_mapped_states = work_item_type_mapped_states diff --git a/vsts/vsts/work/v4_1/models/backlog_fields.py b/vsts/vsts/work/v4_1/models/backlog_fields.py new file mode 100644 index 00000000..0aa2c795 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/backlog_fields.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogFields(Model): + """BacklogFields. + + :param type_fields: Field Type (e.g. Order, Activity) to Field Reference Name map + :type type_fields: dict + """ + + _attribute_map = { + 'type_fields': {'key': 'typeFields', 'type': '{str}'} + } + + def __init__(self, type_fields=None): + super(BacklogFields, self).__init__() + self.type_fields = type_fields diff --git a/vsts/vsts/work/v4_1/models/backlog_level.py b/vsts/vsts/work/v4_1/models/backlog_level.py new file mode 100644 index 00000000..aaad0af8 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/backlog_level.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogLevel(Model): + """BacklogLevel. + + :param category_reference_name: Reference name of the corresponding WIT category + :type category_reference_name: str + :param plural_name: Plural name for the backlog level + :type plural_name: str + :param work_item_states: Collection of work item states that are included in the plan. The server will filter to only these work item types. + :type work_item_states: list of str + :param work_item_types: Collection of valid workitem type names for the given backlog level + :type work_item_types: list of str + """ + + _attribute_map = { + 'category_reference_name': {'key': 'categoryReferenceName', 'type': 'str'}, + 'plural_name': {'key': 'pluralName', 'type': 'str'}, + 'work_item_states': {'key': 'workItemStates', 'type': '[str]'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[str]'} + } + + def __init__(self, category_reference_name=None, plural_name=None, work_item_states=None, work_item_types=None): + super(BacklogLevel, self).__init__() + self.category_reference_name = category_reference_name + self.plural_name = plural_name + self.work_item_states = work_item_states + self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_1/models/backlog_level_configuration.py b/vsts/vsts/work/v4_1/models/backlog_level_configuration.py new file mode 100644 index 00000000..74de2696 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/backlog_level_configuration.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogLevelConfiguration(Model): + """BacklogLevelConfiguration. + + :param add_panel_fields: List of fields to include in Add Panel + :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :param color: Color for the backlog level + :type color: str + :param column_fields: Default list of columns for the backlog + :type column_fields: list of :class:`BacklogColumn ` + :param default_work_item_type: Defaulst Work Item Type for the backlog + :type default_work_item_type: :class:`WorkItemTypeReference ` + :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) + :type id: str + :param name: Backlog Name + :type name: str + :param rank: Backlog Rank (Taskbacklog is 0) + :type rank: int + :param work_item_count_limit: Max number of work items to show in the given backlog + :type work_item_count_limit: int + :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'add_panel_fields': {'key': 'addPanelFields', 'type': '[WorkItemFieldReference]'}, + 'color': {'key': 'color', 'type': 'str'}, + 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, + 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, name=None, rank=None, work_item_count_limit=None, work_item_types=None): + super(BacklogLevelConfiguration, self).__init__() + self.add_panel_fields = add_panel_fields + self.color = color + self.column_fields = column_fields + self.default_work_item_type = default_work_item_type + self.id = id + self.name = name + self.rank = rank + self.work_item_count_limit = work_item_count_limit + self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_1/models/board.py b/vsts/vsts/work/v4_1/models/board.py new file mode 100644 index 00000000..04b9107e --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board.py @@ -0,0 +1,62 @@ +# -------------------------------------------------------------------------------------------- +# 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 .board_reference import BoardReference + + +class Board(BoardReference): + """Board. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_mappings: + :type allowed_mappings: dict + :param can_edit: + :type can_edit: bool + :param columns: + :type columns: list of :class:`BoardColumn ` + :param fields: + :type fields: :class:`BoardFields ` + :param is_valid: + :type is_valid: bool + :param revision: + :type revision: int + :param rows: + :type rows: list of :class:`BoardRow ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_mappings': {'key': 'allowedMappings', 'type': '{{[str]}}'}, + 'can_edit': {'key': 'canEdit', 'type': 'bool'}, + 'columns': {'key': 'columns', 'type': '[BoardColumn]'}, + 'fields': {'key': 'fields', 'type': 'BoardFields'}, + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'rows': {'key': 'rows', 'type': '[BoardRow]'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, allowed_mappings=None, can_edit=None, columns=None, fields=None, is_valid=None, revision=None, rows=None): + super(Board, self).__init__(id=id, name=name, url=url) + self._links = _links + self.allowed_mappings = allowed_mappings + self.can_edit = can_edit + self.columns = columns + self.fields = fields + self.is_valid = is_valid + self.revision = revision + self.rows = rows diff --git a/vsts/vsts/work/v4_1/models/board_card_rule_settings.py b/vsts/vsts/work/v4_1/models/board_card_rule_settings.py new file mode 100644 index 00000000..dcd66935 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_card_rule_settings.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardCardRuleSettings(Model): + """BoardCardRuleSettings. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param rules: + :type rules: dict + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'rules': {'key': 'rules', 'type': '{[Rule]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, rules=None, url=None): + super(BoardCardRuleSettings, self).__init__() + self._links = _links + self.rules = rules + self.url = url diff --git a/vsts/vsts/work/v4_1/models/board_card_settings.py b/vsts/vsts/work/v4_1/models/board_card_settings.py new file mode 100644 index 00000000..77861a9d --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_card_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardCardSettings(Model): + """BoardCardSettings. + + :param cards: + :type cards: dict + """ + + _attribute_map = { + 'cards': {'key': 'cards', 'type': '{[FieldSetting]}'} + } + + def __init__(self, cards=None): + super(BoardCardSettings, self).__init__() + self.cards = cards diff --git a/vsts/vsts/work/v4_1/models/board_chart.py b/vsts/vsts/work/v4_1/models/board_chart.py new file mode 100644 index 00000000..05294f0f --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_chart.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .board_chart_reference import BoardChartReference + + +class BoardChart(BoardChartReference): + """BoardChart. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: The links for the resource + :type _links: :class:`ReferenceLinks ` + :param settings: The settings for the resource + :type settings: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'settings': {'key': 'settings', 'type': '{object}'} + } + + def __init__(self, name=None, url=None, _links=None, settings=None): + super(BoardChart, self).__init__(name=name, url=url) + self._links = _links + self.settings = settings diff --git a/vsts/vsts/work/v4_1/models/board_chart_reference.py b/vsts/vsts/work/v4_1/models/board_chart_reference.py new file mode 100644 index 00000000..382d9bfc --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_chart_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardChartReference(Model): + """BoardChartReference. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(BoardChartReference, self).__init__() + self.name = name + self.url = url diff --git a/vsts/vsts/work/v4_1/models/board_column.py b/vsts/vsts/work/v4_1/models/board_column.py new file mode 100644 index 00000000..e994435b --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_column.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardColumn(Model): + """BoardColumn. + + :param column_type: + :type column_type: object + :param description: + :type description: str + :param id: + :type id: str + :param is_split: + :type is_split: bool + :param item_limit: + :type item_limit: int + :param name: + :type name: str + :param state_mappings: + :type state_mappings: dict + """ + + _attribute_map = { + 'column_type': {'key': 'columnType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_split': {'key': 'isSplit', 'type': 'bool'}, + 'item_limit': {'key': 'itemLimit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'state_mappings': {'key': 'stateMappings', 'type': '{str}'} + } + + def __init__(self, column_type=None, description=None, id=None, is_split=None, item_limit=None, name=None, state_mappings=None): + super(BoardColumn, self).__init__() + self.column_type = column_type + self.description = description + self.id = id + self.is_split = is_split + self.item_limit = item_limit + self.name = name + self.state_mappings = state_mappings diff --git a/vsts/vsts/work/v4_1/models/board_fields.py b/vsts/vsts/work/v4_1/models/board_fields.py new file mode 100644 index 00000000..97888618 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_fields.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardFields(Model): + """BoardFields. + + :param column_field: + :type column_field: :class:`FieldReference ` + :param done_field: + :type done_field: :class:`FieldReference ` + :param row_field: + :type row_field: :class:`FieldReference ` + """ + + _attribute_map = { + 'column_field': {'key': 'columnField', 'type': 'FieldReference'}, + 'done_field': {'key': 'doneField', 'type': 'FieldReference'}, + 'row_field': {'key': 'rowField', 'type': 'FieldReference'} + } + + def __init__(self, column_field=None, done_field=None, row_field=None): + super(BoardFields, self).__init__() + self.column_field = column_field + self.done_field = done_field + self.row_field = row_field diff --git a/vsts/vsts/work/v4_1/models/board_reference.py b/vsts/vsts/work/v4_1/models/board_reference.py new file mode 100644 index 00000000..6380e11e --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardReference(Model): + """BoardReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(BoardReference, self).__init__() + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/work/v4_1/models/board_row.py b/vsts/vsts/work/v4_1/models/board_row.py new file mode 100644 index 00000000..313e4810 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_row.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardRow(Model): + """BoardRow. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(BoardRow, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/work/v4_1/models/board_suggested_value.py b/vsts/vsts/work/v4_1/models/board_suggested_value.py new file mode 100644 index 00000000..058045af --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_suggested_value.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardSuggestedValue(Model): + """BoardSuggestedValue. + + :param name: + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(BoardSuggestedValue, self).__init__() + self.name = name diff --git a/vsts/vsts/work/v4_1/models/board_user_settings.py b/vsts/vsts/work/v4_1/models/board_user_settings.py new file mode 100644 index 00000000..d20fbc57 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/board_user_settings.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardUserSettings(Model): + """BoardUserSettings. + + :param auto_refresh_state: + :type auto_refresh_state: bool + """ + + _attribute_map = { + 'auto_refresh_state': {'key': 'autoRefreshState', 'type': 'bool'} + } + + def __init__(self, auto_refresh_state=None): + super(BoardUserSettings, self).__init__() + self.auto_refresh_state = auto_refresh_state diff --git a/vsts/vsts/work/v4_1/models/capacity_patch.py b/vsts/vsts/work/v4_1/models/capacity_patch.py new file mode 100644 index 00000000..1f27eb84 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/capacity_patch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CapacityPatch(Model): + """CapacityPatch. + + :param activities: + :type activities: list of :class:`Activity ` + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, activities=None, days_off=None): + super(CapacityPatch, self).__init__() + self.activities = activities + self.days_off = days_off diff --git a/vsts/vsts/work/v4_1/models/category_configuration.py b/vsts/vsts/work/v4_1/models/category_configuration.py new file mode 100644 index 00000000..ffab97a3 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/category_configuration.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CategoryConfiguration(Model): + """CategoryConfiguration. + + :param name: Name + :type name: str + :param reference_name: Category Reference Name + :type reference_name: str + :param work_item_types: Work item types for the backlog category + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, name=None, reference_name=None, work_item_types=None): + super(CategoryConfiguration, self).__init__() + self.name = name + self.reference_name = reference_name + self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_1/models/create_plan.py b/vsts/vsts/work/v4_1/models/create_plan.py new file mode 100644 index 00000000..e0fe8aa2 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/create_plan.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CreatePlan(Model): + """CreatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param type: Type of plan to create. + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, type=None): + super(CreatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.type = type diff --git a/vsts/vsts/work/v4_1/models/date_range.py b/vsts/vsts/work/v4_1/models/date_range.py new file mode 100644 index 00000000..94694335 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/date_range.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DateRange(Model): + """DateRange. + + :param end: End of the date range. + :type end: datetime + :param start: Start of the date range. + :type start: datetime + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'iso-8601'}, + 'start': {'key': 'start', 'type': 'iso-8601'} + } + + def __init__(self, end=None, start=None): + super(DateRange, self).__init__() + self.end = end + self.start = start diff --git a/vsts/vsts/work/v4_1/models/delivery_view_data.py b/vsts/vsts/work/v4_1/models/delivery_view_data.py new file mode 100644 index 00000000..24424d5f --- /dev/null +++ b/vsts/vsts/work/v4_1/models/delivery_view_data.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------------------------- +# 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 .plan_view_data import PlanViewData + + +class DeliveryViewData(PlanViewData): + """DeliveryViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + :param child_id_to_parent_id_map: Work item child id to parenet id map + :type child_id_to_parent_id_map: dict + :param criteria_status: Filter criteria status of the timeline + :type criteria_status: :class:`TimelineCriteriaStatus ` + :param end_date: The end date of the delivery view data + :type end_date: datetime + :param start_date: The start date for the delivery view data + :type start_date: datetime + :param teams: All the team data + :type teams: list of :class:`TimelineTeamData ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'}, + 'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'teams': {'key': 'teams', 'type': '[TimelineTeamData]'} + } + + def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None): + super(DeliveryViewData, self).__init__(id=id, revision=revision) + self.child_id_to_parent_id_map = child_id_to_parent_id_map + self.criteria_status = criteria_status + self.end_date = end_date + self.start_date = start_date + self.teams = teams diff --git a/vsts/vsts/work/v4_1/models/field_reference.py b/vsts/vsts/work/v4_1/models/field_reference.py new file mode 100644 index 00000000..6741b93e --- /dev/null +++ b/vsts/vsts/work/v4_1/models/field_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FieldReference(Model): + """FieldReference. + + :param reference_name: fieldRefName for the field + :type reference_name: str + :param url: Full http link to more information about the field + :type url: str + """ + + _attribute_map = { + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, reference_name=None, url=None): + super(FieldReference, self).__init__() + self.reference_name = reference_name + self.url = url diff --git a/vsts/vsts/work/v4_1/models/field_setting.py b/vsts/vsts/work/v4_1/models/field_setting.py new file mode 100644 index 00000000..28a2b6a6 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/field_setting.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + + +class FieldSetting(dict): + """FieldSetting. + + """ + + _attribute_map = { + } + + def __init__(self): + super(FieldSetting, self).__init__() diff --git a/vsts/vsts/work/v4_1/models/filter_clause.py b/vsts/vsts/work/v4_1/models/filter_clause.py new file mode 100644 index 00000000..1bb06642 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/filter_clause.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FilterClause(Model): + """FilterClause. + + :param field_name: + :type field_name: str + :param index: + :type index: int + :param logical_operator: + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(FilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value diff --git a/vsts/vsts/work/v4_1/models/identity_ref.py b/vsts/vsts/work/v4_1/models/identity_ref.py new file mode 100644 index 00000000..40c776c5 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/identity_ref.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/work/v4_1/models/member.py b/vsts/vsts/work/v4_1/models/member.py new file mode 100644 index 00000000..27ca2b67 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/member.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Member(Model): + """Member. + + :param display_name: + :type display_name: str + :param id: + :type id: str + :param image_url: + :type image_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, image_url=None, unique_name=None, url=None): + super(Member, self).__init__() + self.display_name = display_name + self.id = id + self.image_url = image_url + self.unique_name = unique_name + self.url = url diff --git a/vsts/vsts/work/v4_1/models/parent_child_wIMap.py b/vsts/vsts/work/v4_1/models/parent_child_wIMap.py new file mode 100644 index 00000000..87678f18 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/parent_child_wIMap.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ParentChildWIMap(Model): + """ParentChildWIMap. + + :param child_work_item_ids: + :type child_work_item_ids: list of int + :param id: + :type id: int + :param title: + :type title: str + """ + + _attribute_map = { + 'child_work_item_ids': {'key': 'childWorkItemIds', 'type': '[int]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, child_work_item_ids=None, id=None, title=None): + super(ParentChildWIMap, self).__init__() + self.child_work_item_ids = child_work_item_ids + self.id = id + self.title = title diff --git a/vsts/vsts/work/v4_1/models/plan.py b/vsts/vsts/work/v4_1/models/plan.py new file mode 100644 index 00000000..f86b5833 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/plan.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Plan(Model): + """Plan. + + :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type created_by_identity: :class:`IdentityRef ` + :param created_date: Date when the plan was created + :type created_date: datetime + :param description: Description of the plan + :type description: str + :param id: Id of the plan + :type id: str + :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type modified_by_identity: :class:`IdentityRef ` + :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. + :type modified_date: datetime + :param name: Name of the plan + :type name: str + :param properties: The PlanPropertyCollection instance associated with the plan. These are dependent on the type of the plan. For example, DeliveryTimelineView, it would be of type DeliveryViewPropertyCollection. + :type properties: object + :param revision: Revision of the plan. Used to safeguard users from overwriting each other's changes. + :type revision: int + :param type: Type of the plan + :type type: object + :param url: The resource url to locate the plan via rest api + :type url: str + :param user_permissions: Bit flag indicating set of permissions a user has to the plan. + :type user_permissions: object + """ + + _attribute_map = { + 'created_by_identity': {'key': 'createdByIdentity', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by_identity': {'key': 'modifiedByIdentity', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_permissions': {'key': 'userPermissions', 'type': 'object'} + } + + def __init__(self, created_by_identity=None, created_date=None, description=None, id=None, modified_by_identity=None, modified_date=None, name=None, properties=None, revision=None, type=None, url=None, user_permissions=None): + super(Plan, self).__init__() + self.created_by_identity = created_by_identity + self.created_date = created_date + self.description = description + self.id = id + self.modified_by_identity = modified_by_identity + self.modified_date = modified_date + self.name = name + self.properties = properties + self.revision = revision + self.type = type + self.url = url + self.user_permissions = user_permissions diff --git a/vsts/vsts/work/v4_1/models/plan_view_data.py b/vsts/vsts/work/v4_1/models/plan_view_data.py new file mode 100644 index 00000000..fb99dc33 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/plan_view_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PlanViewData(Model): + """PlanViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(PlanViewData, self).__init__() + self.id = id + self.revision = revision diff --git a/vsts/vsts/work/v4_1/models/process_configuration.py b/vsts/vsts/work/v4_1/models/process_configuration.py new file mode 100644 index 00000000..5ca2d3e1 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/process_configuration.py @@ -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.serialization import Model + + +class ProcessConfiguration(Model): + """ProcessConfiguration. + + :param bug_work_items: Details about bug work items + :type bug_work_items: :class:`CategoryConfiguration ` + :param portfolio_backlogs: Details about portfolio backlogs + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :param requirement_backlog: Details of requirement backlog + :type requirement_backlog: :class:`CategoryConfiguration ` + :param task_backlog: Details of task backlog + :type task_backlog: :class:`CategoryConfiguration ` + :param type_fields: Type fields for the process configuration + :type type_fields: dict + :param url: + :type url: str + """ + + _attribute_map = { + 'bug_work_items': {'key': 'bugWorkItems', 'type': 'CategoryConfiguration'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[CategoryConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'CategoryConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'CategoryConfiguration'}, + 'type_fields': {'key': 'typeFields', 'type': '{WorkItemFieldReference}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, bug_work_items=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, type_fields=None, url=None): + super(ProcessConfiguration, self).__init__() + self.bug_work_items = bug_work_items + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.type_fields = type_fields + self.url = url diff --git a/vsts/vsts/work/v4_1/models/reference_links.py b/vsts/vsts/work/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/work/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/work/v4_1/models/rule.py b/vsts/vsts/work/v4_1/models/rule.py new file mode 100644 index 00000000..d431c108 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/rule.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Rule(Model): + """Rule. + + :param clauses: + :type clauses: list of :class:`FilterClause ` + :param filter: + :type filter: str + :param is_enabled: + :type is_enabled: str + :param name: + :type name: str + :param settings: + :type settings: :class:`attribute ` + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, + 'filter': {'key': 'filter', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'settings': {'key': 'settings', 'type': 'attribute'} + } + + def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): + super(Rule, self).__init__() + self.clauses = clauses + self.filter = filter + self.is_enabled = is_enabled + self.name = name + self.settings = settings diff --git a/vsts/vsts/work/v4_1/models/team_context.py b/vsts/vsts/work/v4_1/models/team_context.py new file mode 100644 index 00000000..18418ce7 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_context.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id diff --git a/vsts/vsts/work/v4_1/models/team_field_value.py b/vsts/vsts/work/v4_1/models/team_field_value.py new file mode 100644 index 00000000..08d7ad84 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_field_value.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamFieldValue(Model): + """TeamFieldValue. + + :param include_children: + :type include_children: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'include_children': {'key': 'includeChildren', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, include_children=None, value=None): + super(TeamFieldValue, self).__init__() + self.include_children = include_children + self.value = value diff --git a/vsts/vsts/work/v4_1/models/team_field_values.py b/vsts/vsts/work/v4_1/models/team_field_values.py new file mode 100644 index 00000000..12e5bec7 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_field_values.py @@ -0,0 +1,39 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamFieldValues(TeamSettingsDataContractBase): + """TeamFieldValues. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param default_value: The default team field value + :type default_value: str + :param field: Shallow ref to the field being used as a team field + :type field: :class:`FieldReference ` + :param values: Collection of all valid team field values + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'FieldReference'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, _links=None, url=None, default_value=None, field=None, values=None): + super(TeamFieldValues, self).__init__(_links=_links, url=url) + self.default_value = default_value + self.field = field + self.values = values diff --git a/vsts/vsts/work/v4_1/models/team_field_values_patch.py b/vsts/vsts/work/v4_1/models/team_field_values_patch.py new file mode 100644 index 00000000..68c735e9 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_field_values_patch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamFieldValuesPatch(Model): + """TeamFieldValuesPatch. + + :param default_value: + :type default_value: str + :param values: + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, default_value=None, values=None): + super(TeamFieldValuesPatch, self).__init__() + self.default_value = default_value + self.values = values diff --git a/vsts/vsts/work/v4_1/models/team_iteration_attributes.py b/vsts/vsts/work/v4_1/models/team_iteration_attributes.py new file mode 100644 index 00000000..10427d6b --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_iteration_attributes.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamIterationAttributes(Model): + """TeamIterationAttributes. + + :param finish_date: + :type finish_date: datetime + :param start_date: + :type start_date: datetime + :param time_frame: + :type time_frame: object + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'time_frame': {'key': 'timeFrame', 'type': 'object'} + } + + def __init__(self, finish_date=None, start_date=None, time_frame=None): + super(TeamIterationAttributes, self).__init__() + self.finish_date = finish_date + self.start_date = start_date + self.time_frame = time_frame diff --git a/vsts/vsts/work/v4_1/models/team_member_capacity.py b/vsts/vsts/work/v4_1/models/team_member_capacity.py new file mode 100644 index 00000000..fd391fb8 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_member_capacity.py @@ -0,0 +1,39 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamMemberCapacity(TeamSettingsDataContractBase): + """TeamMemberCapacity. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param activities: Collection of capacities associated with the team member + :type activities: list of :class:`Activity ` + :param days_off: The days off associated with the team member + :type days_off: list of :class:`DateRange ` + :param team_member: Shallow Ref to the associated team member + :type team_member: :class:`Member ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'}, + 'team_member': {'key': 'teamMember', 'type': 'Member'} + } + + def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None): + super(TeamMemberCapacity, self).__init__(_links=_links, url=url) + self.activities = activities + self.days_off = days_off + self.team_member = team_member diff --git a/vsts/vsts/work/v4_1/models/team_setting.py b/vsts/vsts/work/v4_1/models/team_setting.py new file mode 100644 index 00000000..d26a8565 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_setting.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamSetting(TeamSettingsDataContractBase): + """TeamSetting. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param backlog_iteration: Backlog Iteration + :type backlog_iteration: :class:`TeamSettingsIteration ` + :param backlog_visibilities: Information about categories that are visible on the backlog. + :type backlog_visibilities: dict + :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) + :type bugs_behavior: object + :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. + :type default_iteration: :class:`TeamSettingsIteration ` + :param default_iteration_macro: Default Iteration macro (if any) + :type default_iteration_macro: str + :param working_days: Days that the team is working + :type working_days: list of DayOfWeek + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'TeamSettingsIteration'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + } + + def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSetting, self).__init__(_links=_links, url=url) + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days diff --git a/vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py b/vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py new file mode 100644 index 00000000..a8a5e6f1 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamSettingsDataContractBase(Model): + """TeamSettingsDataContractBase. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, url=None): + super(TeamSettingsDataContractBase, self).__init__() + self._links = _links + self.url = url diff --git a/vsts/vsts/work/v4_1/models/team_settings_days_off.py b/vsts/vsts/work/v4_1/models/team_settings_days_off.py new file mode 100644 index 00000000..947095d0 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_settings_days_off.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamSettingsDaysOff(TeamSettingsDataContractBase): + """TeamSettingsDaysOff. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, _links=None, url=None, days_off=None): + super(TeamSettingsDaysOff, self).__init__(_links=_links, url=url) + self.days_off = days_off diff --git a/vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py b/vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py new file mode 100644 index 00000000..4e669e6d --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamSettingsDaysOffPatch(Model): + """TeamSettingsDaysOffPatch. + + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, days_off=None): + super(TeamSettingsDaysOffPatch, self).__init__() + self.days_off = days_off diff --git a/vsts/vsts/work/v4_1/models/team_settings_iteration.py b/vsts/vsts/work/v4_1/models/team_settings_iteration.py new file mode 100644 index 00000000..6fa928c6 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_settings_iteration.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class TeamSettingsIteration(TeamSettingsDataContractBase): + """TeamSettingsIteration. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param attributes: Attributes such as start and end date + :type attributes: :class:`TeamIterationAttributes ` + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param path: Relative path of the iteration + :type path: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'TeamIterationAttributes'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, _links=None, url=None, attributes=None, id=None, name=None, path=None): + super(TeamSettingsIteration, self).__init__(_links=_links, url=url) + self.attributes = attributes + self.id = id + self.name = name + self.path = path diff --git a/vsts/vsts/work/v4_1/models/team_settings_patch.py b/vsts/vsts/work/v4_1/models/team_settings_patch.py new file mode 100644 index 00000000..3942385c --- /dev/null +++ b/vsts/vsts/work/v4_1/models/team_settings_patch.py @@ -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.serialization import Model + + +class TeamSettingsPatch(Model): + """TeamSettingsPatch. + + :param backlog_iteration: + :type backlog_iteration: str + :param backlog_visibilities: + :type backlog_visibilities: dict + :param bugs_behavior: + :type bugs_behavior: object + :param default_iteration: + :type default_iteration: str + :param default_iteration_macro: + :type default_iteration_macro: str + :param working_days: + :type working_days: list of DayOfWeek + """ + + _attribute_map = { + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'str'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + } + + def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSettingsPatch, self).__init__() + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days diff --git a/vsts/vsts/work/v4_1/models/timeline_criteria_status.py b/vsts/vsts/work/v4_1/models/timeline_criteria_status.py new file mode 100644 index 00000000..d34fc208 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/timeline_criteria_status.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineCriteriaStatus(Model): + """TimelineCriteriaStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineCriteriaStatus, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/work/v4_1/models/timeline_iteration_status.py b/vsts/vsts/work/v4_1/models/timeline_iteration_status.py new file mode 100644 index 00000000..56ad40fb --- /dev/null +++ b/vsts/vsts/work/v4_1/models/timeline_iteration_status.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineIterationStatus(Model): + """TimelineIterationStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineIterationStatus, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/work/v4_1/models/timeline_team_data.py b/vsts/vsts/work/v4_1/models/timeline_team_data.py new file mode 100644 index 00000000..c05a77f5 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/timeline_team_data.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineTeamData(Model): + """TimelineTeamData. + + :param backlog: Backlog matching the mapped backlog associated with this team. + :type backlog: :class:`BacklogLevel ` + :param field_reference_names: The field reference names of the work item data + :type field_reference_names: list of str + :param id: The id of the team + :type id: str + :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. + :type is_expanded: bool + :param iterations: The iteration data, including the work items, in the queried date range. + :type iterations: list of :class:`TimelineTeamIteration ` + :param name: The name of the team + :type name: str + :param order_by_field: The order by field name of this team + :type order_by_field: str + :param partially_paged_field_reference_names: The field reference names of the partially paged work items, such as ID, WorkItemType + :type partially_paged_field_reference_names: list of str + :param project_id: The project id the team belongs team + :type project_id: str + :param status: Status for this team. + :type status: :class:`TimelineTeamStatus ` + :param team_field_default_value: The team field default value + :type team_field_default_value: str + :param team_field_name: The team field name of this team + :type team_field_name: str + :param team_field_values: The team field values + :type team_field_values: list of :class:`TeamFieldValue ` + :param work_item_type_colors: Colors for the work item types. + :type work_item_type_colors: list of :class:`WorkItemColor ` + """ + + _attribute_map = { + 'backlog': {'key': 'backlog', 'type': 'BacklogLevel'}, + 'field_reference_names': {'key': 'fieldReferenceNames', 'type': '[str]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'iterations': {'key': 'iterations', 'type': '[TimelineTeamIteration]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order_by_field': {'key': 'orderByField', 'type': 'str'}, + 'partially_paged_field_reference_names': {'key': 'partiallyPagedFieldReferenceNames', 'type': '[str]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'TimelineTeamStatus'}, + 'team_field_default_value': {'key': 'teamFieldDefaultValue', 'type': 'str'}, + 'team_field_name': {'key': 'teamFieldName', 'type': 'str'}, + 'team_field_values': {'key': 'teamFieldValues', 'type': '[TeamFieldValue]'}, + 'work_item_type_colors': {'key': 'workItemTypeColors', 'type': '[WorkItemColor]'} + } + + def __init__(self, backlog=None, field_reference_names=None, id=None, is_expanded=None, iterations=None, name=None, order_by_field=None, partially_paged_field_reference_names=None, project_id=None, status=None, team_field_default_value=None, team_field_name=None, team_field_values=None, work_item_type_colors=None): + super(TimelineTeamData, self).__init__() + self.backlog = backlog + self.field_reference_names = field_reference_names + self.id = id + self.is_expanded = is_expanded + self.iterations = iterations + self.name = name + self.order_by_field = order_by_field + self.partially_paged_field_reference_names = partially_paged_field_reference_names + self.project_id = project_id + self.status = status + self.team_field_default_value = team_field_default_value + self.team_field_name = team_field_name + self.team_field_values = team_field_values + self.work_item_type_colors = work_item_type_colors diff --git a/vsts/vsts/work/v4_1/models/timeline_team_iteration.py b/vsts/vsts/work/v4_1/models/timeline_team_iteration.py new file mode 100644 index 00000000..bd289370 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/timeline_team_iteration.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineTeamIteration(Model): + """TimelineTeamIteration. + + :param finish_date: The end date of the iteration + :type finish_date: datetime + :param name: The iteration name + :type name: str + :param partially_paged_work_items: All the partially paged workitems in this iteration. + :type partially_paged_work_items: list of [object] + :param path: The iteration path + :type path: str + :param start_date: The start date of the iteration + :type start_date: datetime + :param status: The status of this iteration + :type status: :class:`TimelineIterationStatus ` + :param work_items: The work items that have been paged in this iteration + :type work_items: list of [object] + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'partially_paged_work_items': {'key': 'partiallyPagedWorkItems', 'type': '[[object]]'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'TimelineIterationStatus'}, + 'work_items': {'key': 'workItems', 'type': '[[object]]'} + } + + def __init__(self, finish_date=None, name=None, partially_paged_work_items=None, path=None, start_date=None, status=None, work_items=None): + super(TimelineTeamIteration, self).__init__() + self.finish_date = finish_date + self.name = name + self.partially_paged_work_items = partially_paged_work_items + self.path = path + self.start_date = start_date + self.status = status + self.work_items = work_items diff --git a/vsts/vsts/work/v4_1/models/timeline_team_status.py b/vsts/vsts/work/v4_1/models/timeline_team_status.py new file mode 100644 index 00000000..ba0e89d1 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/timeline_team_status.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TimelineTeamStatus(Model): + """TimelineTeamStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineTeamStatus, self).__init__() + self.message = message + self.type = type diff --git a/vsts/vsts/work/v4_1/models/update_plan.py b/vsts/vsts/work/v4_1/models/update_plan.py new file mode 100644 index 00000000..901ad0ed --- /dev/null +++ b/vsts/vsts/work/v4_1/models/update_plan.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdatePlan(Model): + """UpdatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param revision: Revision of the plan that was updated - the value used here should match the one the server gave the client in the Plan. + :type revision: int + :param type: Type of the plan + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, revision=None, type=None): + super(UpdatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.revision = revision + self.type = type diff --git a/vsts/vsts/work/v4_1/models/work_item_color.py b/vsts/vsts/work/v4_1/models/work_item_color.py new file mode 100644 index 00000000..7d2c9de7 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/work_item_color.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemColor(Model): + """WorkItemColor. + + :param icon: + :type icon: str + :param primary_color: + :type primary_color: str + :param work_item_type_name: + :type work_item_type_name: str + """ + + _attribute_map = { + 'icon': {'key': 'icon', 'type': 'str'}, + 'primary_color': {'key': 'primaryColor', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, icon=None, primary_color=None, work_item_type_name=None): + super(WorkItemColor, self).__init__() + self.icon = icon + self.primary_color = primary_color + self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work/v4_1/models/work_item_field_reference.py b/vsts/vsts/work/v4_1/models/work_item_field_reference.py new file mode 100644 index 00000000..29ebbbf2 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/work_item_field_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemFieldReference(Model): + """WorkItemFieldReference. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(WorkItemFieldReference, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url diff --git a/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py b/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py new file mode 100644 index 00000000..de9a728b --- /dev/null +++ b/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTrackingResourceReference(Model): + """WorkItemTrackingResourceReference. + + :param url: + :type url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, url=None): + super(WorkItemTrackingResourceReference, self).__init__() + self.url = url diff --git a/vsts/vsts/work/v4_1/models/work_item_type_reference.py b/vsts/vsts/work/v4_1/models/work_item_type_reference.py new file mode 100644 index 00000000..8757dc1d --- /dev/null +++ b/vsts/vsts/work/v4_1/models/work_item_type_reference.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference + + +class WorkItemTypeReference(WorkItemTrackingResourceReference): + """WorkItemTypeReference. + + :param url: + :type url: str + :param name: Name of the work item type. + :type name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, url=None, name=None): + super(WorkItemTypeReference, self).__init__(url=url) + self.name = name diff --git a/vsts/vsts/work/v4_1/models/work_item_type_state_info.py b/vsts/vsts/work/v4_1/models/work_item_type_state_info.py new file mode 100644 index 00000000..7ff5045e --- /dev/null +++ b/vsts/vsts/work/v4_1/models/work_item_type_state_info.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeStateInfo(Model): + """WorkItemTypeStateInfo. + + :param states: State name to state category map + :type states: dict + :param work_item_type_name: Work Item type name + :type work_item_type_name: str + """ + + _attribute_map = { + 'states': {'key': 'states', 'type': '{str}'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, states=None, work_item_type_name=None): + super(WorkItemTypeStateInfo, self).__init__() + self.states = states + self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py new file mode 100644 index 00000000..39b036c9 --- /dev/null +++ b/vsts/vsts/work/v4_1/work_client.py @@ -0,0 +1,1263 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkClient(VssClient): + """Work + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkClient, 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 = '1D4F49F9-02B9-4E26-B826-2CDB6195F2A9' + + def get_backlog_configurations(self, team_context): + """GetBacklogConfigurations. + [Preview API] Gets backlog configuration for a team + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='7799f497-3cb5-4f16-ad4f-5cd06012db64', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BacklogConfiguration', response) + + def get_column_suggested_values(self, project=None): + """GetColumnSuggestedValues. + [Preview API] Get available board columns in a project + :param str project: Project ID or project name + :rtype: [BoardSuggestedValue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardSuggestedValue]', response) + + def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): + """GetBoardMappingParentItems. + [Preview API] Returns the list of parent field filter model for the given list of workitem ids + :param :class:` ` team_context: The team context for the operation + :param str child_backlog_context_category_ref_name: + :param [int] workitem_ids: + :rtype: [ParentChildWIMap] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if child_backlog_context_category_ref_name is not None: + query_parameters['childBacklogContextCategoryRefName'] = self._serialize.query('child_backlog_context_category_ref_name', child_backlog_context_category_ref_name, 'str') + if workitem_ids is not None: + workitem_ids = ",".join(map(str, workitem_ids)) + query_parameters['workitemIds'] = self._serialize.query('workitem_ids', workitem_ids, 'str') + response = self._send(http_method='GET', + location_id='186abea3-5c35-432f-9e28-7a15b4312a0e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ParentChildWIMap]', response) + + def get_row_suggested_values(self, project=None): + """GetRowSuggestedValues. + [Preview API] Get available board rows in a project + :param str project: Project ID or project name + :rtype: [BoardSuggestedValue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardSuggestedValue]', response) + + def get_board(self, team_context, id): + """GetBoard. + [Preview API] Get board + :param :class:` ` team_context: The team context for the operation + :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Board', response) + + def get_boards(self, team_context): + """GetBoards. + [Preview API] Get boards + :param :class:` ` team_context: The team context for the operation + :rtype: [BoardReference] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardReference]', response) + + def set_board_options(self, options, team_context, id): + """SetBoardOptions. + [Preview API] Update board options + :param {str} options: options to updated + :param :class:` ` team_context: The team context for the operation + :param str id: identifier for board, either category plural name (Eg:"Stories") or guid + :rtype: {str} + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + content = self._serialize.body(options, '{str}') + response = self._send(http_method='PUT', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('{str}', response) + + def get_board_user_settings(self, team_context, board): + """GetBoardUserSettings. + [Preview API] Get board user settings for a board id + :param :class:` ` team_context: The team context for the operation + :param str board: Board ID or Name + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BoardUserSettings', response) + + def update_board_user_settings(self, board_user_settings, team_context, board): + """UpdateBoardUserSettings. + [Preview API] Update board user settings for the board id + :param {str} board_user_settings: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_user_settings, '{str}') + response = self._send(http_method='PATCH', + location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BoardUserSettings', response) + + def get_capacities(self, team_context, iteration_id): + """GetCapacities. + [Preview API] Get a team's capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: [TeamMemberCapacity] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[TeamMemberCapacity]', response) + + def get_capacity(self, team_context, iteration_id, team_member_id): + """GetCapacity. + [Preview API] Get a team member's capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :param str team_member_id: ID of the team member + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + if team_member_id is not None: + route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') + response = self._send(http_method='GET', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TeamMemberCapacity', response) + + def replace_capacities(self, capacities, team_context, iteration_id): + """ReplaceCapacities. + [Preview API] Replace a team's capacity + :param [TeamMemberCapacity] capacities: Team capacity to replace + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: [TeamMemberCapacity] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + content = self._serialize.body(capacities, '[TeamMemberCapacity]') + response = self._send(http_method='PUT', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[TeamMemberCapacity]', response) + + def update_capacity(self, patch, team_context, iteration_id, team_member_id): + """UpdateCapacity. + [Preview API] Update a team member's capacity + :param :class:` ` patch: Updated capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :param str team_member_id: ID of the team member + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + if team_member_id is not None: + route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') + content = self._serialize.body(patch, 'CapacityPatch') + response = self._send(http_method='PATCH', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TeamMemberCapacity', response) + + def get_board_card_rule_settings(self, team_context, board): + """GetBoardCardRuleSettings. + [Preview API] Get board card Rule settings for the board id or board by name + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BoardCardRuleSettings', response) + + def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): + """UpdateBoardCardRuleSettings. + [Preview API] Update board card Rule settings for the board id or board by name + :param :class:` ` board_card_rule_settings: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_card_rule_settings, 'BoardCardRuleSettings') + response = self._send(http_method='PATCH', + location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BoardCardRuleSettings', response) + + def get_board_card_settings(self, team_context, board): + """GetBoardCardSettings. + [Preview API] Get board card settings for the board id or board by name + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BoardCardSettings', response) + + def update_board_card_settings(self, board_card_settings_to_save, team_context, board): + """UpdateBoardCardSettings. + [Preview API] Update board card settings for the board id or board by name + :param :class:` ` board_card_settings_to_save: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_card_settings_to_save, 'BoardCardSettings') + response = self._send(http_method='PUT', + location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BoardCardSettings', response) + + def get_board_chart(self, team_context, board, name): + """GetBoardChart. + [Preview API] Get a board chart + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :param str name: The chart name + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BoardChart', response) + + def get_board_charts(self, team_context, board): + """GetBoardCharts. + [Preview API] Get board charts + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :rtype: [BoardChartReference] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardChartReference]', response) + + def update_board_chart(self, chart, team_context, board, name): + """UpdateBoardChart. + [Preview API] Update a board chart + :param :class:` ` chart: + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :param str name: The chart name + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + content = self._serialize.body(chart, 'BoardChart') + response = self._send(http_method='PATCH', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BoardChart', response) + + def get_board_columns(self, team_context, board): + """GetBoardColumns. + [Preview API] Get columns on a board + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardColumn] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardColumn]', response) + + def update_board_columns(self, board_columns, team_context, board): + """UpdateBoardColumns. + [Preview API] Update columns on a board + :param [BoardColumn] board_columns: List of board columns to update + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardColumn] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_columns, '[BoardColumn]') + response = self._send(http_method='PUT', + location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[BoardColumn]', response) + + def get_delivery_timeline_data(self, project, id, revision=None, start_date=None, end_date=None): + """GetDeliveryTimelineData. + [Preview API] Get Delivery View Data + :param str project: Project ID or project name + :param str id: Identifier for delivery view + :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. + :param datetime start_date: The start date of timeline + :param datetime end_date: The end date of timeline + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if revision is not None: + query_parameters['revision'] = self._serialize.query('revision', revision, 'int') + if start_date is not None: + query_parameters['startDate'] = self._serialize.query('start_date', start_date, 'iso-8601') + if end_date is not None: + query_parameters['endDate'] = self._serialize.query('end_date', end_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='bdd0834e-101f-49f0-a6ae-509f384a12b4', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeliveryViewData', response) + + def delete_team_iteration(self, team_context, id): + """DeleteTeamIteration. + [Preview API] Delete a team's iteration by iterationId + :param :class:` ` team_context: The team context for the operation + :param str id: ID of the iteration + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + self._send(http_method='DELETE', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.1-preview.1', + route_values=route_values) + + def get_team_iteration(self, team_context, id): + """GetTeamIteration. + [Preview API] Get team's iteration by iterationId + :param :class:` ` team_context: The team context for the operation + :param str id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TeamSettingsIteration', response) + + def get_team_iterations(self, team_context, timeframe=None): + """GetTeamIterations. + [Preview API] Get a team's iterations using timeframe filter + :param :class:` ` team_context: The team context for the operation + :param str timeframe: A filter for which iterations are returned based on relative time + :rtype: [TeamSettingsIteration] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if timeframe is not None: + query_parameters['$timeframe'] = self._serialize.query('timeframe', timeframe, 'str') + response = self._send(http_method='GET', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TeamSettingsIteration]', response) + + def post_team_iteration(self, iteration, team_context): + """PostTeamIteration. + [Preview API] Add an iteration to the team + :param :class:` ` iteration: Iteration to add + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(iteration, 'TeamSettingsIteration') + response = self._send(http_method='POST', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TeamSettingsIteration', response) + + def create_plan(self, posted_plan, project): + """CreatePlan. + [Preview API] Add a new plan for the team + :param :class:` ` posted_plan: Plan definition + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(posted_plan, 'CreatePlan') + response = self._send(http_method='POST', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Plan', response) + + def delete_plan(self, project, id): + """DeletePlan. + [Preview API] Delete the specified plan + :param str project: Project ID or project name + :param str id: Identifier of the plan + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + self._send(http_method='DELETE', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.1-preview.1', + route_values=route_values) + + def get_plan(self, project, id): + """GetPlan. + [Preview API] Get the information for the specified plan + :param str project: Project ID or project name + :param str id: Identifier of the plan + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Plan', response) + + def get_plans(self, project): + """GetPlans. + [Preview API] Get the information for all the plans configured for the given team + :param str project: Project ID or project name + :rtype: [Plan] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[Plan]', response) + + def update_plan(self, updated_plan, project, id): + """UpdatePlan. + [Preview API] Update the information for the specified plan + :param :class:` ` updated_plan: Plan definition to be updated + :param str project: Project ID or project name + :param str id: Identifier of the plan + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + content = self._serialize.body(updated_plan, 'UpdatePlan') + response = self._send(http_method='PUT', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Plan', response) + + def get_process_configuration(self, project): + """GetProcessConfiguration. + [Preview API] Get process configuration + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='f901ba42-86d2-4b0c-89c1-3f86d06daa84', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ProcessConfiguration', response) + + def get_board_rows(self, team_context, board): + """GetBoardRows. + [Preview API] Get rows on a board + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardRow] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BoardRow]', response) + + def update_board_rows(self, board_rows, team_context, board): + """UpdateBoardRows. + [Preview API] Update rows on a board + :param [BoardRow] board_rows: List of board rows to update + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardRow] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_rows, '[BoardRow]') + response = self._send(http_method='PUT', + location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[BoardRow]', response) + + def get_team_days_off(self, team_context, iteration_id): + """GetTeamDaysOff. + [Preview API] Get team's days off for an iteration + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TeamSettingsDaysOff', response) + + def update_team_days_off(self, days_off_patch, team_context, iteration_id): + """UpdateTeamDaysOff. + [Preview API] Set a team's days off for an iteration + :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + content = self._serialize.body(days_off_patch, 'TeamSettingsDaysOffPatch') + response = self._send(http_method='PATCH', + location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TeamSettingsDaysOff', response) + + def get_team_field_values(self, team_context): + """GetTeamFieldValues. + [Preview API] Get a collection of team field values + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TeamFieldValues', response) + + def update_team_field_values(self, patch, team_context): + """UpdateTeamFieldValues. + [Preview API] Update team field values + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(patch, 'TeamFieldValuesPatch') + response = self._send(http_method='PATCH', + location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TeamFieldValues', response) + + def get_team_settings(self, team_context): + """GetTeamSettings. + [Preview API] Get a team's settings + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('TeamSetting', response) + + def update_team_settings(self, team_settings_patch, team_context): + """UpdateTeamSettings. + [Preview API] Update a team's settings + :param :class:` ` team_settings_patch: TeamSettings changes + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.projectId + else: + project = team_context.project + if team_context.teamId: + team = team_context.teamId + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(team_settings_patch, 'TeamSettingsPatch') + response = self._send(http_method='PATCH', + location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TeamSetting', response) + From 54b863e6ca35d57cd42d047414c6c5fe23aef291 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sat, 20 Jan 2018 10:01:15 -0500 Subject: [PATCH 022/191] add pip install command --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index bed389f9..0e4ef35f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ This repository contains Microsoft Visual Studio Team Services Python API. This API is used to build the Visual Studio Team Services CLI. To learn more about the VSTS CLI, check out our [github repo](https://github.com/Microsoft/vsts-cli). +# Installation + +```pip install vsts``` + # Getting Started Following is an example how to use the API directly: From 43c507c5506fde5714432cd8e6ebe00c307b186b Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sat, 20 Jan 2018 12:51:29 -0500 Subject: [PATCH 023/191] generate new 4.1 REST Areas at M127, and update resource ids --- vsts/vsts/accounts/v4_1/accounts_client.py | 2 +- .../v4_1/contributions_client.py | 2 +- vsts/vsts/dashboard/v4_1/dashboard_client.py | 2 +- .../v4_1/extension_management_client.py | 2 +- vsts/vsts/feature_availability/__init__.py | 7 + .../feature_availability/v4_1/__init__.py | 7 + .../v4_1/feature_availability_client.py | 127 ++++++++++ .../v4_1/models/__init__.py | 15 ++ .../v4_1/models/feature_flag.py | 41 ++++ .../v4_1/models/feature_flag_patch.py | 25 ++ vsts/vsts/feature_management/__init__.py | 7 + vsts/vsts/feature_management/v4_1/__init__.py | 7 + .../v4_1/feature_management_client.py | 219 +++++++++++++++++ .../v4_1/models/__init__.py | 23 ++ .../v4_1/models/contributed_feature.py | 57 +++++ .../contributed_feature_setting_scope.py | 29 +++ .../v4_1/models/contributed_feature_state.py | 41 ++++ .../models/contributed_feature_state_query.py | 33 +++ .../models/contributed_feature_value_rule.py | 29 +++ .../v4_1/models/reference_links.py | 25 ++ vsts/vsts/gallery/v4_1/gallery_client.py | 2 +- vsts/vsts/identity/v4_1/identity_client.py | 2 +- vsts/vsts/licensing/v4_1/licensing_client.py | 2 +- .../v4_1/project_analysis_client.py | 2 +- vsts/vsts/release/v4_1/release_client.py | 2 +- vsts/vsts/security/__init__.py | 7 + vsts/vsts/security/v4_1/__init__.py | 7 + vsts/vsts/security/v4_1/models/__init__.py | 27 +++ .../v4_1/models/access_control_entry.py | 37 +++ .../v4_1/models/access_control_list.py | 37 +++ .../models/access_control_lists_collection.py | 21 ++ .../v4_1/models/ace_extended_information.py | 37 +++ .../security/v4_1/models/action_definition.py | 37 +++ .../v4_1/models/permission_evaluation.py | 37 +++ .../models/permission_evaluation_batch.py | 29 +++ .../models/security_namespace_description.py | 77 ++++++ vsts/vsts/security/v4_1/security_client.py | 228 ++++++++++++++++++ .../vsts/task_agent/v4_1/task_agent_client.py | 2 +- vsts/vsts/test/v4_1/test_client.py | 2 +- vsts/vsts/tfvc/v4_1/tfvc_client.py | 2 +- vsts/vsts/work/v4_1/work_client.py | 2 +- 41 files changed, 1286 insertions(+), 13 deletions(-) create mode 100644 vsts/vsts/feature_availability/__init__.py create mode 100644 vsts/vsts/feature_availability/v4_1/__init__.py create mode 100644 vsts/vsts/feature_availability/v4_1/feature_availability_client.py create mode 100644 vsts/vsts/feature_availability/v4_1/models/__init__.py create mode 100644 vsts/vsts/feature_availability/v4_1/models/feature_flag.py create mode 100644 vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py create mode 100644 vsts/vsts/feature_management/__init__.py create mode 100644 vsts/vsts/feature_management/v4_1/__init__.py create mode 100644 vsts/vsts/feature_management/v4_1/feature_management_client.py create mode 100644 vsts/vsts/feature_management/v4_1/models/__init__.py create mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature.py create mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py create mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py create mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py create mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py create mode 100644 vsts/vsts/feature_management/v4_1/models/reference_links.py create mode 100644 vsts/vsts/security/__init__.py create mode 100644 vsts/vsts/security/v4_1/__init__.py create mode 100644 vsts/vsts/security/v4_1/models/__init__.py create mode 100644 vsts/vsts/security/v4_1/models/access_control_entry.py create mode 100644 vsts/vsts/security/v4_1/models/access_control_list.py create mode 100644 vsts/vsts/security/v4_1/models/access_control_lists_collection.py create mode 100644 vsts/vsts/security/v4_1/models/ace_extended_information.py create mode 100644 vsts/vsts/security/v4_1/models/action_definition.py create mode 100644 vsts/vsts/security/v4_1/models/permission_evaluation.py create mode 100644 vsts/vsts/security/v4_1/models/permission_evaluation_batch.py create mode 100644 vsts/vsts/security/v4_1/models/security_namespace_description.py create mode 100644 vsts/vsts/security/v4_1/security_client.py diff --git a/vsts/vsts/accounts/v4_1/accounts_client.py b/vsts/vsts/accounts/v4_1/accounts_client.py index 2460fb0f..31bfa14d 100644 --- a/vsts/vsts/accounts/v4_1/accounts_client.py +++ b/vsts/vsts/accounts/v4_1/accounts_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '0d55247a-1c47-4462-9b1f-5e2125590ee6' def get_accounts(self, owner_id=None, member_id=None, properties=None): """GetAccounts. diff --git a/vsts/vsts/contributions/v4_1/contributions_client.py b/vsts/vsts/contributions/v4_1/contributions_client.py index 520125e9..be4e8395 100644 --- a/vsts/vsts/contributions/v4_1/contributions_client.py +++ b/vsts/vsts/contributions/v4_1/contributions_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '8477aec9-a4c7-4bd4-a456-ba4c53c989cb' def query_contribution_nodes(self, query): """QueryContributionNodes. diff --git a/vsts/vsts/dashboard/v4_1/dashboard_client.py b/vsts/vsts/dashboard/v4_1/dashboard_client.py index 7b99a742..60365655 100644 --- a/vsts/vsts/dashboard/v4_1/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_1/dashboard_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '31c84e0a-3ece-48fd-a29d-100849af99ba' def create_dashboard(self, dashboard, team_context): """CreateDashboard. diff --git a/vsts/vsts/extension_management/v4_1/extension_management_client.py b/vsts/vsts/extension_management/v4_1/extension_management_client.py index e6bee7cd..e65c29f5 100644 --- a/vsts/vsts/extension_management/v4_1/extension_management_client.py +++ b/vsts/vsts/extension_management/v4_1/extension_management_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '6c2b0933-3600-42ae-bf8b-93d4f7e83594' def get_installed_extensions(self, include_disabled_extensions=None, include_errors=None, asset_types=None, include_installation_issues=None): """GetInstalledExtensions. diff --git a/vsts/vsts/feature_availability/__init__.py b/vsts/vsts/feature_availability/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feature_availability/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_availability/v4_1/__init__.py b/vsts/vsts/feature_availability/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feature_availability/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_availability/v4_1/feature_availability_client.py b/vsts/vsts/feature_availability/v4_1/feature_availability_client.py new file mode 100644 index 00000000..49298b5f --- /dev/null +++ b/vsts/vsts/feature_availability/v4_1/feature_availability_client.py @@ -0,0 +1,127 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class FeatureAvailabilityClient(VssClient): + """FeatureAvailability + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeatureAvailabilityClient, 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_all_feature_flags(self, user_email=None): + """GetAllFeatureFlags. + [Preview API] Retrieve a listing of all feature flags and their current states for a user + :param str user_email: The email of the user to check + :rtype: [FeatureFlag] + """ + query_parameters = {} + if user_email is not None: + query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FeatureFlag]', response) + + def get_feature_flag_by_name(self, name): + """GetFeatureFlagByName. + [Preview API] Retrieve information on a single feature flag and its current states + :param str name: The name of the feature to retrieve + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('FeatureFlag', response) + + def get_feature_flag_by_name_and_user_email(self, name, user_email): + """GetFeatureFlagByNameAndUserEmail. + [Preview API] Retrieve information on a single feature flag and its current states for a user + :param str name: The name of the feature to retrieve + :param str user_email: The email of the user to check + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if user_email is not None: + query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('FeatureFlag', response) + + def get_feature_flag_by_name_and_user_id(self, name, user_id): + """GetFeatureFlagByNameAndUserId. + [Preview API] Retrieve information on a single feature flag and its current states for a user + :param str name: The name of the feature to retrieve + :param str user_id: The id of the user to check + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if user_id is not None: + query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('FeatureFlag', response) + + def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): + """UpdateFeatureFlag. + [Preview API] Change the state of an individual feature flag for a name + :param :class:` ` state: State that should be set + :param str name: The name of the feature to change + :param str user_email: + :param bool check_feature_exists: Checks if the feature exists before setting the state + :param bool set_at_application_level_also: + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if user_email is not None: + query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') + if set_at_application_level_also is not None: + query_parameters['setAtApplicationLevelAlso'] = self._serialize.query('set_at_application_level_also', set_at_application_level_also, 'bool') + content = self._serialize.body(state, 'FeatureFlagPatch') + response = self._send(http_method='PATCH', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('FeatureFlag', response) + diff --git a/vsts/vsts/feature_availability/v4_1/models/__init__.py b/vsts/vsts/feature_availability/v4_1/models/__init__.py new file mode 100644 index 00000000..926dca8c --- /dev/null +++ b/vsts/vsts/feature_availability/v4_1/models/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 .feature_flag import FeatureFlag +from .feature_flag_patch import FeatureFlagPatch + +__all__ = [ + 'FeatureFlag', + 'FeatureFlagPatch', +] diff --git a/vsts/vsts/feature_availability/v4_1/models/feature_flag.py b/vsts/vsts/feature_availability/v4_1/models/feature_flag.py new file mode 100644 index 00000000..96a70eab --- /dev/null +++ b/vsts/vsts/feature_availability/v4_1/models/feature_flag.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeatureFlag(Model): + """FeatureFlag. + + :param description: + :type description: str + :param effective_state: + :type effective_state: str + :param explicit_state: + :type explicit_state: str + :param name: + :type name: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'effective_state': {'key': 'effectiveState', 'type': 'str'}, + 'explicit_state': {'key': 'explicitState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, description=None, effective_state=None, explicit_state=None, name=None, uri=None): + super(FeatureFlag, self).__init__() + self.description = description + self.effective_state = effective_state + self.explicit_state = explicit_state + self.name = name + self.uri = uri diff --git a/vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py b/vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py new file mode 100644 index 00000000..3eb826e6 --- /dev/null +++ b/vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeatureFlagPatch(Model): + """FeatureFlagPatch. + + :param state: + :type state: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, state=None): + super(FeatureFlagPatch, self).__init__() + self.state = state diff --git a/vsts/vsts/feature_management/__init__.py b/vsts/vsts/feature_management/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feature_management/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_management/v4_1/__init__.py b/vsts/vsts/feature_management/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_management/v4_1/feature_management_client.py b/vsts/vsts/feature_management/v4_1/feature_management_client.py new file mode 100644 index 00000000..8da2eebd --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/feature_management_client.py @@ -0,0 +1,219 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class FeatureManagementClient(VssClient): + """FeatureManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeatureManagementClient, 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_feature(self, feature_id): + """GetFeature. + [Preview API] Get a specific feature by its id + :param str feature_id: The contribution id of the feature + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + response = self._send(http_method='GET', + location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ContributedFeature', response) + + def get_features(self, target_contribution_id=None): + """GetFeatures. + [Preview API] Get a list of all defined features + :param str target_contribution_id: Optional target contribution. If null/empty, return all features. If specified include the features that target the specified contribution. + :rtype: [ContributedFeature] + """ + query_parameters = {} + if target_contribution_id is not None: + query_parameters['targetContributionId'] = self._serialize.query('target_contribution_id', target_contribution_id, 'str') + response = self._send(http_method='GET', + location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ContributedFeature]', response) + + def get_feature_state(self, feature_id, user_scope): + """GetFeatureState. + [Preview API] Get the state of the specified feature for the given user/all-users scope + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + response = self._send(http_method='GET', + location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ContributedFeatureState', response) + + def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): + """SetFeatureState. + [Preview API] Set the state of a feature + :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. + :param str reason: Reason for changing the state + :param str reason_code: Short reason code + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + query_parameters = {} + if reason is not None: + query_parameters['reason'] = self._serialize.query('reason', reason, 'str') + if reason_code is not None: + query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') + content = self._serialize.body(feature, 'ContributedFeatureState') + response = self._send(http_method='PATCH', + location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ContributedFeatureState', response) + + def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_value): + """GetFeatureStateForScope. + [Preview API] Get the state of the specified feature for the given named scope + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + response = self._send(http_method='GET', + location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ContributedFeatureState', response) + + def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): + """SetFeatureStateForScope. + [Preview API] Set the state of a feature at a specific scope + :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str reason: Reason for changing the state + :param str reason_code: Short reason code + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + query_parameters = {} + if reason is not None: + query_parameters['reason'] = self._serialize.query('reason', reason, 'str') + if reason_code is not None: + query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') + content = self._serialize.body(feature, 'ContributedFeatureState') + response = self._send(http_method='PATCH', + location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ContributedFeatureState', response) + + def query_feature_states(self, query): + """QueryFeatureStates. + [Preview API] Get the effective state for a list of feature ids + :param :class:` ` query: Features to query along with current scope values + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'ContributedFeatureStateQuery') + response = self._send(http_method='POST', + location_id='2b4486ad-122b-400c-ae65-17b6672c1f9d', + version='4.1-preview.1', + content=content) + return self._deserialize('ContributedFeatureStateQuery', response) + + def query_feature_states_for_default_scope(self, query, user_scope): + """QueryFeatureStatesForDefaultScope. + [Preview API] Get the states of the specified features for the default scope + :param :class:` ` query: Query describing the features to query. + :param str user_scope: + :rtype: :class:` ` + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + content = self._serialize.body(query, 'ContributedFeatureStateQuery') + response = self._send(http_method='POST', + location_id='3f810f28-03e2-4239-b0bc-788add3005e5', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ContributedFeatureStateQuery', response) + + def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): + """QueryFeatureStatesForNamedScope. + [Preview API] Get the states of the specified features for the specific named scope + :param :class:` ` query: Query describing the features to query. + :param str user_scope: + :param str scope_name: + :param str scope_value: + :rtype: :class:` ` + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + content = self._serialize.body(query, 'ContributedFeatureStateQuery') + response = self._send(http_method='POST', + location_id='f29e997b-c2da-4d15-8380-765788a1a74c', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ContributedFeatureStateQuery', response) + diff --git a/vsts/vsts/feature_management/v4_1/models/__init__.py b/vsts/vsts/feature_management/v4_1/models/__init__.py new file mode 100644 index 00000000..a5e7f615 --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/models/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .contributed_feature import ContributedFeature +from .contributed_feature_setting_scope import ContributedFeatureSettingScope +from .contributed_feature_state import ContributedFeatureState +from .contributed_feature_state_query import ContributedFeatureStateQuery +from .contributed_feature_value_rule import ContributedFeatureValueRule +from .reference_links import ReferenceLinks + +__all__ = [ + 'ContributedFeature', + 'ContributedFeatureSettingScope', + 'ContributedFeatureState', + 'ContributedFeatureStateQuery', + 'ContributedFeatureValueRule', + 'ReferenceLinks', +] diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature.py new file mode 100644 index 00000000..9bd35b24 --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/models/contributed_feature.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeature(Model): + """ContributedFeature. + + :param _links: Named links describing the feature + :type _links: :class:`ReferenceLinks ` + :param default_state: If true, the feature is enabled unless overridden at some scope + :type default_state: bool + :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :param description: The description of the feature + :type description: str + :param id: The full contribution id of the feature + :type id: str + :param name: The friendly name of the feature + :type name: str + :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type override_rules: list of :class:`ContributedFeatureValueRule ` + :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature + :type scopes: list of :class:`ContributedFeatureSettingScope ` + :param service_instance_type: The service instance id of the service that owns this feature + :type service_instance_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_state': {'key': 'defaultState', 'type': 'bool'}, + 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, + 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): + super(ContributedFeature, self).__init__() + self._links = _links + self.default_state = default_state + self.default_value_rules = default_value_rules + self.description = description + self.id = id + self.name = name + self.override_rules = override_rules + self.scopes = scopes + self.service_instance_type = service_instance_type diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py new file mode 100644 index 00000000..9366312e --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureSettingScope(Model): + """ContributedFeatureSettingScope. + + :param setting_scope: The name of the settings scope to use when reading/writing the setting + :type setting_scope: str + :param user_scoped: Whether this is a user-scope or this is a host-wide (all users) setting + :type user_scoped: bool + """ + + _attribute_map = { + 'setting_scope': {'key': 'settingScope', 'type': 'str'}, + 'user_scoped': {'key': 'userScoped', 'type': 'bool'} + } + + def __init__(self, setting_scope=None, user_scoped=None): + super(ContributedFeatureSettingScope, self).__init__() + self.setting_scope = setting_scope + self.user_scoped = user_scoped diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py new file mode 100644 index 00000000..2e4f7e09 --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureState(Model): + """ContributedFeatureState. + + :param feature_id: The full contribution id of the feature + :type feature_id: str + :param overridden: True if the effective state was set by an override rule (indicating that the state cannot be managed by the end user) + :type overridden: bool + :param reason: Reason that the state was set (by a plugin/rule). + :type reason: str + :param scope: The scope at which this state applies + :type scope: :class:`ContributedFeatureSettingScope ` + :param state: The current state of this feature + :type state: object + """ + + _attribute_map = { + 'feature_id': {'key': 'featureId', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'ContributedFeatureSettingScope'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, feature_id=None, overridden=None, reason=None, scope=None, state=None): + super(ContributedFeatureState, self).__init__() + self.feature_id = feature_id + self.overridden = overridden + self.reason = reason + self.scope = scope + self.state = state diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py new file mode 100644 index 00000000..97191e09 --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureStateQuery(Model): + """ContributedFeatureStateQuery. + + :param feature_ids: The list of feature ids to query + :type feature_ids: list of str + :param feature_states: The query result containing the current feature states for each of the queried feature ids + :type feature_states: dict + :param scope_values: A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes) + :type scope_values: dict + """ + + _attribute_map = { + 'feature_ids': {'key': 'featureIds', 'type': '[str]'}, + 'feature_states': {'key': 'featureStates', 'type': '{ContributedFeatureState}'}, + 'scope_values': {'key': 'scopeValues', 'type': '{str}'} + } + + def __init__(self, feature_ids=None, feature_states=None, scope_values=None): + super(ContributedFeatureStateQuery, self).__init__() + self.feature_ids = feature_ids + self.feature_states = feature_states + self.scope_values = scope_values diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py new file mode 100644 index 00000000..ea654f08 --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureValueRule(Model): + """ContributedFeatureValueRule. + + :param name: Name of the IContributedFeatureValuePlugin to run + :type name: str + :param properties: Properties to feed to the IContributedFeatureValuePlugin + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureValueRule, self).__init__() + self.name = name + self.properties = properties diff --git a/vsts/vsts/feature_management/v4_1/models/reference_links.py b/vsts/vsts/feature_management/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/feature_management/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/gallery/v4_1/gallery_client.py b/vsts/vsts/gallery/v4_1/gallery_client.py index d5026906..0053d060 100644 --- a/vsts/vsts/gallery/v4_1/gallery_client.py +++ b/vsts/vsts/gallery/v4_1/gallery_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '69d21c00-f135-441b-b5ce-3626378e0819' def share_extension_by_id(self, extension_id, account_name): """ShareExtensionById. diff --git a/vsts/vsts/identity/v4_1/identity_client.py b/vsts/vsts/identity/v4_1/identity_client.py index 224d47cc..95ae9f06 100644 --- a/vsts/vsts/identity/v4_1/identity_client.py +++ b/vsts/vsts/identity/v4_1/identity_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = '8A3D49B8-91F0-46EF-B33D-DDA338C25DB3' + resource_area_identifier = '8a3d49b8-91f0-46ef-b33d-dda338c25db3' def create_or_bind_with_claims(self, source_identity): """CreateOrBindWithClaims. diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py index 5bb21c44..a844d977 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'c73a23a1-59bb-458c-8ce3-02c83215e015' def get_extension_license_usage(self): """GetExtensionLicenseUsage. diff --git a/vsts/vsts/project_analysis/v4_1/project_analysis_client.py b/vsts/vsts/project_analysis/v4_1/project_analysis_client.py index 6e7de43b..e2ba8e83 100644 --- a/vsts/vsts/project_analysis/v4_1/project_analysis_client.py +++ b/vsts/vsts/project_analysis/v4_1/project_analysis_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '7658fa33-b1bf-4580-990f-fac5896773d3' def get_project_language_analytics(self, project): """GetProjectLanguageAnalytics. diff --git a/vsts/vsts/release/v4_1/release_client.py b/vsts/vsts/release/v4_1/release_client.py index 5cb55862..e5ad6e7b 100644 --- a/vsts/vsts/release/v4_1/release_client.py +++ b/vsts/vsts/release/v4_1/release_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): """GetApprovals. diff --git a/vsts/vsts/security/__init__.py b/vsts/vsts/security/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/security/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/security/v4_1/__init__.py b/vsts/vsts/security/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/security/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/security/v4_1/models/__init__.py b/vsts/vsts/security/v4_1/models/__init__.py new file mode 100644 index 00000000..fe4c0453 --- /dev/null +++ b/vsts/vsts/security/v4_1/models/__init__.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------------------------- +# 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 .access_control_entry import AccessControlEntry +from .access_control_list import AccessControlList +from .access_control_lists_collection import AccessControlListsCollection +from .ace_extended_information import AceExtendedInformation +from .action_definition import ActionDefinition +from .permission_evaluation import PermissionEvaluation +from .permission_evaluation_batch import PermissionEvaluationBatch +from .security_namespace_description import SecurityNamespaceDescription + +__all__ = [ + 'AccessControlEntry', + 'AccessControlList', + 'AccessControlListsCollection', + 'AceExtendedInformation', + 'ActionDefinition', + 'PermissionEvaluation', + 'PermissionEvaluationBatch', + 'SecurityNamespaceDescription', +] diff --git a/vsts/vsts/security/v4_1/models/access_control_entry.py b/vsts/vsts/security/v4_1/models/access_control_entry.py new file mode 100644 index 00000000..f7b4921f --- /dev/null +++ b/vsts/vsts/security/v4_1/models/access_control_entry.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlEntry(Model): + """AccessControlEntry. + + :param allow: The set of permission bits that represent the actions that the associated descriptor is allowed to perform. + :type allow: int + :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. + :type deny: int + :param descriptor: The descriptor for the user this AccessControlEntry applies to. + :type descriptor: :class:`str ` + :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. + :type extended_info: :class:`AceExtendedInformation ` + """ + + _attribute_map = { + 'allow': {'key': 'allow', 'type': 'int'}, + 'deny': {'key': 'deny', 'type': 'int'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AceExtendedInformation'} + } + + def __init__(self, allow=None, deny=None, descriptor=None, extended_info=None): + super(AccessControlEntry, self).__init__() + self.allow = allow + self.deny = deny + self.descriptor = descriptor + self.extended_info = extended_info diff --git a/vsts/vsts/security/v4_1/models/access_control_list.py b/vsts/vsts/security/v4_1/models/access_control_list.py new file mode 100644 index 00000000..24bf1bc1 --- /dev/null +++ b/vsts/vsts/security/v4_1/models/access_control_list.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlList(Model): + """AccessControlList. + + :param aces_dictionary: Storage of permissions keyed on the identity the permission is for. + :type aces_dictionary: dict + :param include_extended_info: True if this ACL holds ACEs that have extended information. + :type include_extended_info: bool + :param inherit_permissions: True if the given token inherits permissions from parents. + :type inherit_permissions: bool + :param token: The token that this AccessControlList is for. + :type token: str + """ + + _attribute_map = { + 'aces_dictionary': {'key': 'acesDictionary', 'type': '{AccessControlEntry}'}, + 'include_extended_info': {'key': 'includeExtendedInfo', 'type': 'bool'}, + 'inherit_permissions': {'key': 'inheritPermissions', 'type': 'bool'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_permissions=None, token=None): + super(AccessControlList, self).__init__() + self.aces_dictionary = aces_dictionary + self.include_extended_info = include_extended_info + self.inherit_permissions = inherit_permissions + self.token = token diff --git a/vsts/vsts/security/v4_1/models/access_control_lists_collection.py b/vsts/vsts/security/v4_1/models/access_control_lists_collection.py new file mode 100644 index 00000000..c6ecd6d0 --- /dev/null +++ b/vsts/vsts/security/v4_1/models/access_control_lists_collection.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlListsCollection(Model): + """AccessControlListsCollection. + + """ + + _attribute_map = { + } + + def __init__(self): + super(AccessControlListsCollection, self).__init__() diff --git a/vsts/vsts/security/v4_1/models/ace_extended_information.py b/vsts/vsts/security/v4_1/models/ace_extended_information.py new file mode 100644 index 00000000..9c639473 --- /dev/null +++ b/vsts/vsts/security/v4_1/models/ace_extended_information.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AceExtendedInformation(Model): + """AceExtendedInformation. + + :param effective_allow: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_allow: int + :param effective_deny: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_deny: int + :param inherited_allow: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_allow: int + :param inherited_deny: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_deny: int + """ + + _attribute_map = { + 'effective_allow': {'key': 'effectiveAllow', 'type': 'int'}, + 'effective_deny': {'key': 'effectiveDeny', 'type': 'int'}, + 'inherited_allow': {'key': 'inheritedAllow', 'type': 'int'}, + 'inherited_deny': {'key': 'inheritedDeny', 'type': 'int'} + } + + def __init__(self, effective_allow=None, effective_deny=None, inherited_allow=None, inherited_deny=None): + super(AceExtendedInformation, self).__init__() + self.effective_allow = effective_allow + self.effective_deny = effective_deny + self.inherited_allow = inherited_allow + self.inherited_deny = inherited_deny diff --git a/vsts/vsts/security/v4_1/models/action_definition.py b/vsts/vsts/security/v4_1/models/action_definition.py new file mode 100644 index 00000000..87b96fd9 --- /dev/null +++ b/vsts/vsts/security/v4_1/models/action_definition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ActionDefinition(Model): + """ActionDefinition. + + :param bit: The bit mask integer for this action. Must be a power of 2. + :type bit: int + :param display_name: The localized display name for this action. + :type display_name: str + :param name: The non-localized name for this action. + :type name: str + :param namespace_id: The namespace that this action belongs to. This will only be used for reading from the database. + :type namespace_id: str + """ + + _attribute_map = { + 'bit': {'key': 'bit', 'type': 'int'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'} + } + + def __init__(self, bit=None, display_name=None, name=None, namespace_id=None): + super(ActionDefinition, self).__init__() + self.bit = bit + self.display_name = display_name + self.name = name + self.namespace_id = namespace_id diff --git a/vsts/vsts/security/v4_1/models/permission_evaluation.py b/vsts/vsts/security/v4_1/models/permission_evaluation.py new file mode 100644 index 00000000..85764cf6 --- /dev/null +++ b/vsts/vsts/security/v4_1/models/permission_evaluation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PermissionEvaluation(Model): + """PermissionEvaluation. + + :param permissions: Permission bit for this evaluated permission. + :type permissions: int + :param security_namespace_id: Security namespace identifier for this evaluated permission. + :type security_namespace_id: str + :param token: Security namespace-specific token for this evaluated permission. + :type token: str + :param value: Permission evaluation value. + :type value: bool + """ + + _attribute_map = { + 'permissions': {'key': 'permissions', 'type': 'int'}, + 'security_namespace_id': {'key': 'securityNamespaceId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bool'} + } + + def __init__(self, permissions=None, security_namespace_id=None, token=None, value=None): + super(PermissionEvaluation, self).__init__() + self.permissions = permissions + self.security_namespace_id = security_namespace_id + self.token = token + self.value = value diff --git a/vsts/vsts/security/v4_1/models/permission_evaluation_batch.py b/vsts/vsts/security/v4_1/models/permission_evaluation_batch.py new file mode 100644 index 00000000..ae6b6dc5 --- /dev/null +++ b/vsts/vsts/security/v4_1/models/permission_evaluation_batch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PermissionEvaluationBatch(Model): + """PermissionEvaluationBatch. + + :param always_allow_administrators: + :type always_allow_administrators: bool + :param evaluations: Array of permission evaluations to evaluate. + :type evaluations: list of :class:`PermissionEvaluation ` + """ + + _attribute_map = { + 'always_allow_administrators': {'key': 'alwaysAllowAdministrators', 'type': 'bool'}, + 'evaluations': {'key': 'evaluations', 'type': '[PermissionEvaluation]'} + } + + def __init__(self, always_allow_administrators=None, evaluations=None): + super(PermissionEvaluationBatch, self).__init__() + self.always_allow_administrators = always_allow_administrators + self.evaluations = evaluations diff --git a/vsts/vsts/security/v4_1/models/security_namespace_description.py b/vsts/vsts/security/v4_1/models/security_namespace_description.py new file mode 100644 index 00000000..40faea8e --- /dev/null +++ b/vsts/vsts/security/v4_1/models/security_namespace_description.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SecurityNamespaceDescription(Model): + """SecurityNamespaceDescription. + + :param actions: The list of actions that this Security Namespace is responsible for securing. + :type actions: list of :class:`ActionDefinition ` + :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. + :type dataspace_category: str + :param display_name: This localized name for this namespace. + :type display_name: str + :param element_length: If the security tokens this namespace will be operating on need to be split on certain character lengths to determine its elements, that length should be specified here. If not, this value will be -1. + :type element_length: int + :param extension_type: This is the type of the extension that should be loaded from the plugins directory for extending this security namespace. + :type extension_type: str + :param is_remotable: If true, the security namespace is remotable, allowing another service to proxy the namespace. + :type is_remotable: bool + :param name: This non-localized for this namespace. + :type name: str + :param namespace_id: The unique identifier for this namespace. + :type namespace_id: str + :param read_permission: The permission bits needed by a user in order to read security data on the Security Namespace. + :type read_permission: int + :param separator_value: If the security tokens this namespace will be operating on need to be split on certain characters to determine its elements that character should be specified here. If not, this value will be the null character. + :type separator_value: str + :param structure_value: Used to send information about the structure of the security namespace over the web service. + :type structure_value: int + :param system_bit_mask: The bits reserved by system store + :type system_bit_mask: int + :param use_token_translator: If true, the security service will expect an ISecurityDataspaceTokenTranslator plugin to exist for this namespace + :type use_token_translator: bool + :param write_permission: The permission bits needed by a user in order to modify security data on the Security Namespace. + :type write_permission: int + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[ActionDefinition]'}, + 'dataspace_category': {'key': 'dataspaceCategory', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'element_length': {'key': 'elementLength', 'type': 'int'}, + 'extension_type': {'key': 'extensionType', 'type': 'str'}, + 'is_remotable': {'key': 'isRemotable', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'read_permission': {'key': 'readPermission', 'type': 'int'}, + 'separator_value': {'key': 'separatorValue', 'type': 'str'}, + 'structure_value': {'key': 'structureValue', 'type': 'int'}, + 'system_bit_mask': {'key': 'systemBitMask', 'type': 'int'}, + 'use_token_translator': {'key': 'useTokenTranslator', 'type': 'bool'}, + 'write_permission': {'key': 'writePermission', 'type': 'int'} + } + + def __init__(self, actions=None, dataspace_category=None, display_name=None, element_length=None, extension_type=None, is_remotable=None, name=None, namespace_id=None, read_permission=None, separator_value=None, structure_value=None, system_bit_mask=None, use_token_translator=None, write_permission=None): + super(SecurityNamespaceDescription, self).__init__() + self.actions = actions + self.dataspace_category = dataspace_category + self.display_name = display_name + self.element_length = element_length + self.extension_type = extension_type + self.is_remotable = is_remotable + self.name = name + self.namespace_id = namespace_id + self.read_permission = read_permission + self.separator_value = separator_value + self.structure_value = structure_value + self.system_bit_mask = system_bit_mask + self.use_token_translator = use_token_translator + self.write_permission = write_permission diff --git a/vsts/vsts/security/v4_1/security_client.py b/vsts/vsts/security/v4_1/security_client.py new file mode 100644 index 00000000..1e051591 --- /dev/null +++ b/vsts/vsts/security/v4_1/security_client.py @@ -0,0 +1,228 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class SecurityClient(VssClient): + """Security + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SecurityClient, 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 remove_access_control_entries(self, security_namespace_id, token=None, descriptors=None): + """RemoveAccessControlEntries. + [Preview API] Remove the specified ACEs from the ACL belonging to the specified token. + :param str security_namespace_id: + :param str token: + :param str descriptors: + :rtype: bool + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptors is not None: + query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') + response = self._send(http_method='DELETE', + location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def set_access_control_entries(self, container, security_namespace_id): + """SetAccessControlEntries. + [Preview API] Add or update ACEs in the ACL for the provided token. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. + :param :class:` ` container: + :param str security_namespace_id: + :rtype: [AccessControlEntry] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + content = self._serialize.body(container, 'object') + response = self._send(http_method='POST', + location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AccessControlEntry]', response) + + def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): + """QueryAccessControlLists. + [Preview API] Return a list of access control lists for the specified security namespace and token. + :param str security_namespace_id: Security namespace identifier. + :param str token: Security token + :param str descriptors: + :param bool include_extended_info: If true, populate the extended information properties for the access control entries contained in the returned lists. + :param bool recurse: If true and this is a hierarchical namespace, return child ACLs of the specified token. + :rtype: [AccessControlList] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptors is not None: + query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') + if include_extended_info is not None: + query_parameters['includeExtendedInfo'] = self._serialize.query('include_extended_info', include_extended_info, 'bool') + if recurse is not None: + query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') + response = self._send(http_method='GET', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[AccessControlList]', response) + + def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None): + """RemoveAccessControlLists. + [Preview API] Remove access control lists under the specfied security namespace. + :param str security_namespace_id: Security namespace identifier. + :param str tokens: One or more comma-separated security tokens + :param bool recurse: If true and this is a hierarchical namespace, also remove child ACLs of the specified tokens. + :rtype: bool + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if tokens is not None: + query_parameters['tokens'] = self._serialize.query('tokens', tokens, 'str') + if recurse is not None: + query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') + response = self._send(http_method='DELETE', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def set_access_control_lists(self, access_control_lists, security_namespace_id): + """SetAccessControlLists. + [Preview API] Create one or more access control lists. + :param :class:` ` access_control_lists: + :param str security_namespace_id: Security namespace identifier. + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + content = self._serialize.body(access_control_lists, 'VssJsonCollectionWrapper') + self._send(http_method='POST', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def has_permissions_batch(self, eval_batch): + """HasPermissionsBatch. + [Preview API] Evaluates multiple permissions for the callign user. Note: This methods does not aggregate the results nor does it short-circut if one of the permissions evaluates to false. + :param :class:` ` eval_batch: The set of permissions to check. + :rtype: :class:` ` + """ + content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') + response = self._send(http_method='POST', + location_id='cf1faa59-1b63-4448-bf04-13d981a46f5d', + version='4.1-preview.1', + content=content) + return self._deserialize('PermissionEvaluationBatch', response) + + def has_permissions(self, security_namespace_id, permissions=None, tokens=None, always_allow_administrators=None, delimiter=None): + """HasPermissions. + [Preview API] Evaluates whether the caller has the specified permissions on the specified set of security tokens. + :param str security_namespace_id: Security namespace identifier. + :param int permissions: Permissions to evaluate. + :param str tokens: One or more security tokens to evaluate. + :param bool always_allow_administrators: If true and if the caller is an administrator, always return true. + :param str delimiter: Optional security token separator. Defaults to ",". + :rtype: [bool] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + if permissions is not None: + route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') + query_parameters = {} + if tokens is not None: + query_parameters['tokens'] = self._serialize.query('tokens', tokens, 'str') + if always_allow_administrators is not None: + query_parameters['alwaysAllowAdministrators'] = self._serialize.query('always_allow_administrators', always_allow_administrators, 'bool') + if delimiter is not None: + query_parameters['delimiter'] = self._serialize.query('delimiter', delimiter, 'str') + response = self._send(http_method='GET', + location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[bool]', response) + + def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None): + """RemovePermission. + [Preview API] Removes the specified permissions from the caller or specified user or group. + :param str security_namespace_id: Security namespace identifier. + :param int permissions: Permissions to remove. + :param str token: Security token to remove permissions for. + :param str descriptor: Identity descriptor of the user to remove permissions for. Defaults to the caller. + :rtype: :class:` ` + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + if permissions is not None: + route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptor is not None: + query_parameters['descriptor'] = self._serialize.query('descriptor', descriptor, 'str') + response = self._send(http_method='DELETE', + location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AccessControlEntry', response) + + def query_security_namespaces(self, security_namespace_id, local_only=None): + """QuerySecurityNamespaces. + [Preview API] + :param str security_namespace_id: + :param bool local_only: + :rtype: [SecurityNamespaceDescription] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if local_only is not None: + query_parameters['localOnly'] = self._serialize.query('local_only', local_only, 'bool') + response = self._send(http_method='GET', + location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SecurityNamespaceDescription]', response) + diff --git a/vsts/vsts/task_agent/v4_1/task_agent_client.py b/vsts/vsts/task_agent/v4_1/task_agent_client.py index da5ace0f..a072a629 100644 --- a/vsts/vsts/task_agent/v4_1/task_agent_client.py +++ b/vsts/vsts/task_agent/v4_1/task_agent_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd' def add_agent(self, agent, pool_id): """AddAgent. diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index d2cdf3d3..d70d5b28 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e' def get_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): """GetActionResults. diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/vsts/vsts/tfvc/v4_1/tfvc_client.py index c933c6b0..c29ad5df 100644 --- a/vsts/vsts/tfvc/v4_1/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_1/tfvc_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '8aa40520-446d-40e6-89f6-9c9f9ce44c48' def get_branch(self, path, project=None, include_parent=None, include_children=None): """GetBranch. diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py index 39b036c9..e982dbbc 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/vsts/vsts/work/v4_1/work_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = '1D4F49F9-02B9-4E26-B826-2CDB6195F2A9' + resource_area_identifier = '1d4f49f9-02b9-4e26-b826-2cdb6195f2a9' def get_backlog_configurations(self, team_context): """GetBacklogConfigurations. From ac0509ada56140cca0ccefecf55af2db2726e45c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sat, 20 Jan 2018 13:41:07 -0500 Subject: [PATCH 024/191] generate 3 new 4.0 REST Areas, and update resource ids --- vsts/vsts/accounts/v4_0/accounts_client.py | 2 +- .../v4_0/contributions_client.py | 2 +- vsts/vsts/dashboard/v4_0/dashboard_client.py | 2 +- .../v4_0/extension_management_client.py | 2 +- .../feature_availability/v4_0/__init__.py | 7 + .../v4_0/feature_availability_client.py | 127 ++++++++++ .../v4_0/models/__init__.py | 15 ++ .../v4_0/models/feature_flag.py | 41 +++ .../v4_0/models/feature_flag_patch.py | 25 ++ vsts/vsts/feature_management/v4_0/__init__.py | 7 + .../v4_0/feature_management_client.py | 219 ++++++++++++++++ .../v4_0/models/__init__.py | 23 ++ .../v4_0/models/contributed_feature.py | 57 +++++ .../contributed_feature_setting_scope.py | 29 +++ .../v4_0/models/contributed_feature_state.py | 33 +++ .../models/contributed_feature_state_query.py | 33 +++ .../models/contributed_feature_value_rule.py | 29 +++ .../v4_0/models/reference_links.py | 25 ++ vsts/vsts/gallery/v4_0/gallery_client.py | 2 +- vsts/vsts/identity/v4_0/identity_client.py | 2 +- vsts/vsts/licensing/v4_0/licensing_client.py | 2 +- .../v4_0/project_analysis_client.py | 2 +- vsts/vsts/release/v4_0/release_client.py | 2 +- vsts/vsts/security/v4_0/__init__.py | 7 + vsts/vsts/security/v4_0/models/__init__.py | 27 ++ .../v4_0/models/access_control_entry.py | 37 +++ .../v4_0/models/access_control_list.py | 37 +++ .../models/access_control_lists_collection.py | 21 ++ .../v4_0/models/ace_extended_information.py | 37 +++ .../security/v4_0/models/action_definition.py | 37 +++ .../v4_0/models/permission_evaluation.py | 37 +++ .../models/permission_evaluation_batch.py | 29 +++ .../models/security_namespace_description.py | 77 ++++++ vsts/vsts/security/v4_0/security_client.py | 235 ++++++++++++++++++ .../vsts/task_agent/v4_0/task_agent_client.py | 2 +- vsts/vsts/test/v4_0/test_client.py | 2 +- vsts/vsts/tfvc/v4_0/tfvc_client.py | 2 +- vsts/vsts/work/v4_0/work_client.py | 2 +- 38 files changed, 1264 insertions(+), 13 deletions(-) create mode 100644 vsts/vsts/feature_availability/v4_0/__init__.py create mode 100644 vsts/vsts/feature_availability/v4_0/feature_availability_client.py create mode 100644 vsts/vsts/feature_availability/v4_0/models/__init__.py create mode 100644 vsts/vsts/feature_availability/v4_0/models/feature_flag.py create mode 100644 vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py create mode 100644 vsts/vsts/feature_management/v4_0/__init__.py create mode 100644 vsts/vsts/feature_management/v4_0/feature_management_client.py create mode 100644 vsts/vsts/feature_management/v4_0/models/__init__.py create mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature.py create mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py create mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py create mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py create mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py create mode 100644 vsts/vsts/feature_management/v4_0/models/reference_links.py create mode 100644 vsts/vsts/security/v4_0/__init__.py create mode 100644 vsts/vsts/security/v4_0/models/__init__.py create mode 100644 vsts/vsts/security/v4_0/models/access_control_entry.py create mode 100644 vsts/vsts/security/v4_0/models/access_control_list.py create mode 100644 vsts/vsts/security/v4_0/models/access_control_lists_collection.py create mode 100644 vsts/vsts/security/v4_0/models/ace_extended_information.py create mode 100644 vsts/vsts/security/v4_0/models/action_definition.py create mode 100644 vsts/vsts/security/v4_0/models/permission_evaluation.py create mode 100644 vsts/vsts/security/v4_0/models/permission_evaluation_batch.py create mode 100644 vsts/vsts/security/v4_0/models/security_namespace_description.py create mode 100644 vsts/vsts/security/v4_0/security_client.py diff --git a/vsts/vsts/accounts/v4_0/accounts_client.py b/vsts/vsts/accounts/v4_0/accounts_client.py index b622946c..861e2660 100644 --- a/vsts/vsts/accounts/v4_0/accounts_client.py +++ b/vsts/vsts/accounts/v4_0/accounts_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '0d55247a-1c47-4462-9b1f-5e2125590ee6' def create_account(self, info, use_precreated=None): """CreateAccount. diff --git a/vsts/vsts/contributions/v4_0/contributions_client.py b/vsts/vsts/contributions/v4_0/contributions_client.py index 74b28db3..417ba8ae 100644 --- a/vsts/vsts/contributions/v4_0/contributions_client.py +++ b/vsts/vsts/contributions/v4_0/contributions_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '8477aec9-a4c7-4bd4-a456-ba4c53c989cb' def query_contribution_nodes(self, query): """QueryContributionNodes. diff --git a/vsts/vsts/dashboard/v4_0/dashboard_client.py b/vsts/vsts/dashboard/v4_0/dashboard_client.py index a1ec1733..89d9acfe 100644 --- a/vsts/vsts/dashboard/v4_0/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_0/dashboard_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '31c84e0a-3ece-48fd-a29d-100849af99ba' def create_dashboard(self, dashboard, team_context): """CreateDashboard. diff --git a/vsts/vsts/extension_management/v4_0/extension_management_client.py b/vsts/vsts/extension_management/v4_0/extension_management_client.py index a5c4f2c0..f7e75820 100644 --- a/vsts/vsts/extension_management/v4_0/extension_management_client.py +++ b/vsts/vsts/extension_management/v4_0/extension_management_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '6c2b0933-3600-42ae-bf8b-93d4f7e83594' def get_acquisition_options(self, item_id, test_commerce=None, is_free_or_trial_install=None): """GetAcquisitionOptions. diff --git a/vsts/vsts/feature_availability/v4_0/__init__.py b/vsts/vsts/feature_availability/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feature_availability/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_availability/v4_0/feature_availability_client.py b/vsts/vsts/feature_availability/v4_0/feature_availability_client.py new file mode 100644 index 00000000..8c8087d6 --- /dev/null +++ b/vsts/vsts/feature_availability/v4_0/feature_availability_client.py @@ -0,0 +1,127 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class FeatureAvailabilityClient(VssClient): + """FeatureAvailability + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeatureAvailabilityClient, 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_all_feature_flags(self, user_email=None): + """GetAllFeatureFlags. + [Preview API] Retrieve a listing of all feature flags and their current states for a user + :param str user_email: The email of the user to check + :rtype: [FeatureFlag] + """ + query_parameters = {} + if user_email is not None: + query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FeatureFlag]', response) + + def get_feature_flag_by_name(self, name): + """GetFeatureFlagByName. + [Preview API] Retrieve information on a single feature flag and its current states + :param str name: The name of the feature to retrieve + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('FeatureFlag', response) + + def get_feature_flag_by_name_and_user_email(self, name, user_email): + """GetFeatureFlagByNameAndUserEmail. + [Preview API] Retrieve information on a single feature flag and its current states for a user + :param str name: The name of the feature to retrieve + :param str user_email: The email of the user to check + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if user_email is not None: + query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('FeatureFlag', response) + + def get_feature_flag_by_name_and_user_id(self, name, user_id): + """GetFeatureFlagByNameAndUserId. + [Preview API] Retrieve information on a single feature flag and its current states for a user + :param str name: The name of the feature to retrieve + :param str user_id: The id of the user to check + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if user_id is not None: + query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') + response = self._send(http_method='GET', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('FeatureFlag', response) + + def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): + """UpdateFeatureFlag. + [Preview API] Change the state of an individual feature flag for a name + :param :class:` ` state: State that should be set + :param str name: The name of the feature to change + :param str user_email: + :param bool check_feature_exists: Checks if the feature exists before setting the state + :param bool set_at_application_level_also: + :rtype: :class:` ` + """ + route_values = {} + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if user_email is not None: + query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') + if set_at_application_level_also is not None: + query_parameters['setAtApplicationLevelAlso'] = self._serialize.query('set_at_application_level_also', set_at_application_level_also, 'bool') + content = self._serialize.body(state, 'FeatureFlagPatch') + response = self._send(http_method='PATCH', + location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('FeatureFlag', response) + diff --git a/vsts/vsts/feature_availability/v4_0/models/__init__.py b/vsts/vsts/feature_availability/v4_0/models/__init__.py new file mode 100644 index 00000000..926dca8c --- /dev/null +++ b/vsts/vsts/feature_availability/v4_0/models/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 .feature_flag import FeatureFlag +from .feature_flag_patch import FeatureFlagPatch + +__all__ = [ + 'FeatureFlag', + 'FeatureFlagPatch', +] diff --git a/vsts/vsts/feature_availability/v4_0/models/feature_flag.py b/vsts/vsts/feature_availability/v4_0/models/feature_flag.py new file mode 100644 index 00000000..96a70eab --- /dev/null +++ b/vsts/vsts/feature_availability/v4_0/models/feature_flag.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeatureFlag(Model): + """FeatureFlag. + + :param description: + :type description: str + :param effective_state: + :type effective_state: str + :param explicit_state: + :type explicit_state: str + :param name: + :type name: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'effective_state': {'key': 'effectiveState', 'type': 'str'}, + 'explicit_state': {'key': 'explicitState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, description=None, effective_state=None, explicit_state=None, name=None, uri=None): + super(FeatureFlag, self).__init__() + self.description = description + self.effective_state = effective_state + self.explicit_state = explicit_state + self.name = name + self.uri = uri diff --git a/vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py b/vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py new file mode 100644 index 00000000..3eb826e6 --- /dev/null +++ b/vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeatureFlagPatch(Model): + """FeatureFlagPatch. + + :param state: + :type state: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, state=None): + super(FeatureFlagPatch, self).__init__() + self.state = state diff --git a/vsts/vsts/feature_management/v4_0/__init__.py b/vsts/vsts/feature_management/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_management/v4_0/feature_management_client.py b/vsts/vsts/feature_management/v4_0/feature_management_client.py new file mode 100644 index 00000000..0cf79e1b --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/feature_management_client.py @@ -0,0 +1,219 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class FeatureManagementClient(VssClient): + """FeatureManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeatureManagementClient, 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_feature(self, feature_id): + """GetFeature. + [Preview API] Get a specific feature by its id + :param str feature_id: The contribution id of the feature + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + response = self._send(http_method='GET', + location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ContributedFeature', response) + + def get_features(self, target_contribution_id=None): + """GetFeatures. + [Preview API] Get a list of all defined features + :param str target_contribution_id: Optional target contribution. If null/empty, return all features. If specified include the features that target the specified contribution. + :rtype: [ContributedFeature] + """ + query_parameters = {} + if target_contribution_id is not None: + query_parameters['targetContributionId'] = self._serialize.query('target_contribution_id', target_contribution_id, 'str') + response = self._send(http_method='GET', + location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ContributedFeature]', response) + + def get_feature_state(self, feature_id, user_scope): + """GetFeatureState. + [Preview API] Get the state of the specified feature for the given user/all-users scope + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + response = self._send(http_method='GET', + location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ContributedFeatureState', response) + + def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): + """SetFeatureState. + [Preview API] Set the state of a feature + :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. + :param str reason: Reason for changing the state + :param str reason_code: Short reason code + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + query_parameters = {} + if reason is not None: + query_parameters['reason'] = self._serialize.query('reason', reason, 'str') + if reason_code is not None: + query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') + content = self._serialize.body(feature, 'ContributedFeatureState') + response = self._send(http_method='PATCH', + location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ContributedFeatureState', response) + + def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_value): + """GetFeatureStateForScope. + [Preview API] Get the state of the specified feature for the given named scope + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + response = self._send(http_method='GET', + location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ContributedFeatureState', response) + + def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): + """SetFeatureStateForScope. + [Preview API] Set the state of a feature at a specific scope + :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param str feature_id: Contribution id of the feature + :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str reason: Reason for changing the state + :param str reason_code: Short reason code + :rtype: :class:` ` + """ + route_values = {} + if feature_id is not None: + route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + query_parameters = {} + if reason is not None: + query_parameters['reason'] = self._serialize.query('reason', reason, 'str') + if reason_code is not None: + query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') + content = self._serialize.body(feature, 'ContributedFeatureState') + response = self._send(http_method='PATCH', + location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ContributedFeatureState', response) + + def query_feature_states(self, query): + """QueryFeatureStates. + [Preview API] Get the effective state for a list of feature ids + :param :class:` ` query: Features to query along with current scope values + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'ContributedFeatureStateQuery') + response = self._send(http_method='POST', + location_id='2b4486ad-122b-400c-ae65-17b6672c1f9d', + version='4.0-preview.1', + content=content) + return self._deserialize('ContributedFeatureStateQuery', response) + + def query_feature_states_for_default_scope(self, query, user_scope): + """QueryFeatureStatesForDefaultScope. + [Preview API] Get the states of the specified features for the default scope + :param :class:` ` query: Query describing the features to query. + :param str user_scope: + :rtype: :class:` ` + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + content = self._serialize.body(query, 'ContributedFeatureStateQuery') + response = self._send(http_method='POST', + location_id='3f810f28-03e2-4239-b0bc-788add3005e5', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ContributedFeatureStateQuery', response) + + def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): + """QueryFeatureStatesForNamedScope. + [Preview API] Get the states of the specified features for the specific named scope + :param :class:` ` query: Query describing the features to query. + :param str user_scope: + :param str scope_name: + :param str scope_value: + :rtype: :class:` ` + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + content = self._serialize.body(query, 'ContributedFeatureStateQuery') + response = self._send(http_method='POST', + location_id='f29e997b-c2da-4d15-8380-765788a1a74c', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ContributedFeatureStateQuery', response) + diff --git a/vsts/vsts/feature_management/v4_0/models/__init__.py b/vsts/vsts/feature_management/v4_0/models/__init__.py new file mode 100644 index 00000000..a5e7f615 --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/models/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .contributed_feature import ContributedFeature +from .contributed_feature_setting_scope import ContributedFeatureSettingScope +from .contributed_feature_state import ContributedFeatureState +from .contributed_feature_state_query import ContributedFeatureStateQuery +from .contributed_feature_value_rule import ContributedFeatureValueRule +from .reference_links import ReferenceLinks + +__all__ = [ + 'ContributedFeature', + 'ContributedFeatureSettingScope', + 'ContributedFeatureState', + 'ContributedFeatureStateQuery', + 'ContributedFeatureValueRule', + 'ReferenceLinks', +] diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature.py new file mode 100644 index 00000000..f709a16a --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/models/contributed_feature.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeature(Model): + """ContributedFeature. + + :param _links: Named links describing the feature + :type _links: :class:`ReferenceLinks ` + :param default_state: If true, the feature is enabled unless overridden at some scope + :type default_state: bool + :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :param description: The description of the feature + :type description: str + :param id: The full contribution id of the feature + :type id: str + :param name: The friendly name of the feature + :type name: str + :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type override_rules: list of :class:`ContributedFeatureValueRule ` + :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature + :type scopes: list of :class:`ContributedFeatureSettingScope ` + :param service_instance_type: The service instance id of the service that owns this feature + :type service_instance_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_state': {'key': 'defaultState', 'type': 'bool'}, + 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, + 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): + super(ContributedFeature, self).__init__() + self._links = _links + self.default_state = default_state + self.default_value_rules = default_value_rules + self.description = description + self.id = id + self.name = name + self.override_rules = override_rules + self.scopes = scopes + self.service_instance_type = service_instance_type diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py new file mode 100644 index 00000000..9366312e --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureSettingScope(Model): + """ContributedFeatureSettingScope. + + :param setting_scope: The name of the settings scope to use when reading/writing the setting + :type setting_scope: str + :param user_scoped: Whether this is a user-scope or this is a host-wide (all users) setting + :type user_scoped: bool + """ + + _attribute_map = { + 'setting_scope': {'key': 'settingScope', 'type': 'str'}, + 'user_scoped': {'key': 'userScoped', 'type': 'bool'} + } + + def __init__(self, setting_scope=None, user_scoped=None): + super(ContributedFeatureSettingScope, self).__init__() + self.setting_scope = setting_scope + self.user_scoped = user_scoped diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py new file mode 100644 index 00000000..aeeee1e8 --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureState(Model): + """ContributedFeatureState. + + :param feature_id: The full contribution id of the feature + :type feature_id: str + :param scope: The scope at which this state applies + :type scope: :class:`ContributedFeatureSettingScope ` + :param state: The current state of this feature + :type state: object + """ + + _attribute_map = { + 'feature_id': {'key': 'featureId', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'ContributedFeatureSettingScope'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, feature_id=None, scope=None, state=None): + super(ContributedFeatureState, self).__init__() + self.feature_id = feature_id + self.scope = scope + self.state = state diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py new file mode 100644 index 00000000..97191e09 --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureStateQuery(Model): + """ContributedFeatureStateQuery. + + :param feature_ids: The list of feature ids to query + :type feature_ids: list of str + :param feature_states: The query result containing the current feature states for each of the queried feature ids + :type feature_states: dict + :param scope_values: A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes) + :type scope_values: dict + """ + + _attribute_map = { + 'feature_ids': {'key': 'featureIds', 'type': '[str]'}, + 'feature_states': {'key': 'featureStates', 'type': '{ContributedFeatureState}'}, + 'scope_values': {'key': 'scopeValues', 'type': '{str}'} + } + + def __init__(self, feature_ids=None, feature_states=None, scope_values=None): + super(ContributedFeatureStateQuery, self).__init__() + self.feature_ids = feature_ids + self.feature_states = feature_states + self.scope_values = scope_values diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py new file mode 100644 index 00000000..ea654f08 --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeatureValueRule(Model): + """ContributedFeatureValueRule. + + :param name: Name of the IContributedFeatureValuePlugin to run + :type name: str + :param properties: Properties to feed to the IContributedFeatureValuePlugin + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureValueRule, self).__init__() + self.name = name + self.properties = properties diff --git a/vsts/vsts/feature_management/v4_0/models/reference_links.py b/vsts/vsts/feature_management/v4_0/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/feature_management/v4_0/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/gallery/v4_0/gallery_client.py b/vsts/vsts/gallery/v4_0/gallery_client.py index 9525b344..3b63fa6e 100644 --- a/vsts/vsts/gallery/v4_0/gallery_client.py +++ b/vsts/vsts/gallery/v4_0/gallery_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '69d21c00-f135-441b-b5ce-3626378e0819' def share_extension_by_id(self, extension_id, account_name): """ShareExtensionById. diff --git a/vsts/vsts/identity/v4_0/identity_client.py b/vsts/vsts/identity/v4_0/identity_client.py index 08a564dc..1a4ff65a 100644 --- a/vsts/vsts/identity/v4_0/identity_client.py +++ b/vsts/vsts/identity/v4_0/identity_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = '8A3D49B8-91F0-46EF-B33D-DDA338C25DB3' + resource_area_identifier = '8a3d49b8-91f0-46ef-b33d-dda338c25db3' def create_or_bind_with_claims(self, source_identity): """CreateOrBindWithClaims. diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/vsts/vsts/licensing/v4_0/licensing_client.py index c47d4492..e35642b0 100644 --- a/vsts/vsts/licensing/v4_0/licensing_client.py +++ b/vsts/vsts/licensing/v4_0/licensing_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'c73a23a1-59bb-458c-8ce3-02c83215e015' def get_extension_license_usage(self): """GetExtensionLicenseUsage. diff --git a/vsts/vsts/project_analysis/v4_0/project_analysis_client.py b/vsts/vsts/project_analysis/v4_0/project_analysis_client.py index 968bfbb9..2de2e041 100644 --- a/vsts/vsts/project_analysis/v4_0/project_analysis_client.py +++ b/vsts/vsts/project_analysis/v4_0/project_analysis_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '7658fa33-b1bf-4580-990f-fac5896773d3' def get_project_language_analytics(self, project): """GetProjectLanguageAnalytics. diff --git a/vsts/vsts/release/v4_0/release_client.py b/vsts/vsts/release/v4_0/release_client.py index b467a542..bd6b4825 100644 --- a/vsts/vsts/release/v4_0/release_client.py +++ b/vsts/vsts/release/v4_0/release_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' def get_agent_artifact_definitions(self, project, release_id): """GetAgentArtifactDefinitions. diff --git a/vsts/vsts/security/v4_0/__init__.py b/vsts/vsts/security/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/security/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/security/v4_0/models/__init__.py b/vsts/vsts/security/v4_0/models/__init__.py new file mode 100644 index 00000000..fe4c0453 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/__init__.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------------------------- +# 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 .access_control_entry import AccessControlEntry +from .access_control_list import AccessControlList +from .access_control_lists_collection import AccessControlListsCollection +from .ace_extended_information import AceExtendedInformation +from .action_definition import ActionDefinition +from .permission_evaluation import PermissionEvaluation +from .permission_evaluation_batch import PermissionEvaluationBatch +from .security_namespace_description import SecurityNamespaceDescription + +__all__ = [ + 'AccessControlEntry', + 'AccessControlList', + 'AccessControlListsCollection', + 'AceExtendedInformation', + 'ActionDefinition', + 'PermissionEvaluation', + 'PermissionEvaluationBatch', + 'SecurityNamespaceDescription', +] diff --git a/vsts/vsts/security/v4_0/models/access_control_entry.py b/vsts/vsts/security/v4_0/models/access_control_entry.py new file mode 100644 index 00000000..f524a101 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/access_control_entry.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlEntry(Model): + """AccessControlEntry. + + :param allow: The set of permission bits that represent the actions that the associated descriptor is allowed to perform. + :type allow: int + :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. + :type deny: int + :param descriptor: The descriptor for the user this AccessControlEntry applies to. + :type descriptor: :class:`str ` + :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. + :type extended_info: :class:`AceExtendedInformation ` + """ + + _attribute_map = { + 'allow': {'key': 'allow', 'type': 'int'}, + 'deny': {'key': 'deny', 'type': 'int'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AceExtendedInformation'} + } + + def __init__(self, allow=None, deny=None, descriptor=None, extended_info=None): + super(AccessControlEntry, self).__init__() + self.allow = allow + self.deny = deny + self.descriptor = descriptor + self.extended_info = extended_info diff --git a/vsts/vsts/security/v4_0/models/access_control_list.py b/vsts/vsts/security/v4_0/models/access_control_list.py new file mode 100644 index 00000000..24bf1bc1 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/access_control_list.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlList(Model): + """AccessControlList. + + :param aces_dictionary: Storage of permissions keyed on the identity the permission is for. + :type aces_dictionary: dict + :param include_extended_info: True if this ACL holds ACEs that have extended information. + :type include_extended_info: bool + :param inherit_permissions: True if the given token inherits permissions from parents. + :type inherit_permissions: bool + :param token: The token that this AccessControlList is for. + :type token: str + """ + + _attribute_map = { + 'aces_dictionary': {'key': 'acesDictionary', 'type': '{AccessControlEntry}'}, + 'include_extended_info': {'key': 'includeExtendedInfo', 'type': 'bool'}, + 'inherit_permissions': {'key': 'inheritPermissions', 'type': 'bool'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_permissions=None, token=None): + super(AccessControlList, self).__init__() + self.aces_dictionary = aces_dictionary + self.include_extended_info = include_extended_info + self.inherit_permissions = inherit_permissions + self.token = token diff --git a/vsts/vsts/security/v4_0/models/access_control_lists_collection.py b/vsts/vsts/security/v4_0/models/access_control_lists_collection.py new file mode 100644 index 00000000..c6ecd6d0 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/access_control_lists_collection.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlListsCollection(Model): + """AccessControlListsCollection. + + """ + + _attribute_map = { + } + + def __init__(self): + super(AccessControlListsCollection, self).__init__() diff --git a/vsts/vsts/security/v4_0/models/ace_extended_information.py b/vsts/vsts/security/v4_0/models/ace_extended_information.py new file mode 100644 index 00000000..9c639473 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/ace_extended_information.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AceExtendedInformation(Model): + """AceExtendedInformation. + + :param effective_allow: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_allow: int + :param effective_deny: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_deny: int + :param inherited_allow: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_allow: int + :param inherited_deny: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_deny: int + """ + + _attribute_map = { + 'effective_allow': {'key': 'effectiveAllow', 'type': 'int'}, + 'effective_deny': {'key': 'effectiveDeny', 'type': 'int'}, + 'inherited_allow': {'key': 'inheritedAllow', 'type': 'int'}, + 'inherited_deny': {'key': 'inheritedDeny', 'type': 'int'} + } + + def __init__(self, effective_allow=None, effective_deny=None, inherited_allow=None, inherited_deny=None): + super(AceExtendedInformation, self).__init__() + self.effective_allow = effective_allow + self.effective_deny = effective_deny + self.inherited_allow = inherited_allow + self.inherited_deny = inherited_deny diff --git a/vsts/vsts/security/v4_0/models/action_definition.py b/vsts/vsts/security/v4_0/models/action_definition.py new file mode 100644 index 00000000..87b96fd9 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/action_definition.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ActionDefinition(Model): + """ActionDefinition. + + :param bit: The bit mask integer for this action. Must be a power of 2. + :type bit: int + :param display_name: The localized display name for this action. + :type display_name: str + :param name: The non-localized name for this action. + :type name: str + :param namespace_id: The namespace that this action belongs to. This will only be used for reading from the database. + :type namespace_id: str + """ + + _attribute_map = { + 'bit': {'key': 'bit', 'type': 'int'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'} + } + + def __init__(self, bit=None, display_name=None, name=None, namespace_id=None): + super(ActionDefinition, self).__init__() + self.bit = bit + self.display_name = display_name + self.name = name + self.namespace_id = namespace_id diff --git a/vsts/vsts/security/v4_0/models/permission_evaluation.py b/vsts/vsts/security/v4_0/models/permission_evaluation.py new file mode 100644 index 00000000..85764cf6 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/permission_evaluation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PermissionEvaluation(Model): + """PermissionEvaluation. + + :param permissions: Permission bit for this evaluated permission. + :type permissions: int + :param security_namespace_id: Security namespace identifier for this evaluated permission. + :type security_namespace_id: str + :param token: Security namespace-specific token for this evaluated permission. + :type token: str + :param value: Permission evaluation value. + :type value: bool + """ + + _attribute_map = { + 'permissions': {'key': 'permissions', 'type': 'int'}, + 'security_namespace_id': {'key': 'securityNamespaceId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bool'} + } + + def __init__(self, permissions=None, security_namespace_id=None, token=None, value=None): + super(PermissionEvaluation, self).__init__() + self.permissions = permissions + self.security_namespace_id = security_namespace_id + self.token = token + self.value = value diff --git a/vsts/vsts/security/v4_0/models/permission_evaluation_batch.py b/vsts/vsts/security/v4_0/models/permission_evaluation_batch.py new file mode 100644 index 00000000..b43422f9 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/permission_evaluation_batch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PermissionEvaluationBatch(Model): + """PermissionEvaluationBatch. + + :param always_allow_administrators: + :type always_allow_administrators: bool + :param evaluations: Array of permission evaluations to evaluate. + :type evaluations: list of :class:`PermissionEvaluation ` + """ + + _attribute_map = { + 'always_allow_administrators': {'key': 'alwaysAllowAdministrators', 'type': 'bool'}, + 'evaluations': {'key': 'evaluations', 'type': '[PermissionEvaluation]'} + } + + def __init__(self, always_allow_administrators=None, evaluations=None): + super(PermissionEvaluationBatch, self).__init__() + self.always_allow_administrators = always_allow_administrators + self.evaluations = evaluations diff --git a/vsts/vsts/security/v4_0/models/security_namespace_description.py b/vsts/vsts/security/v4_0/models/security_namespace_description.py new file mode 100644 index 00000000..afe85130 --- /dev/null +++ b/vsts/vsts/security/v4_0/models/security_namespace_description.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SecurityNamespaceDescription(Model): + """SecurityNamespaceDescription. + + :param actions: The list of actions that this Security Namespace is responsible for securing. + :type actions: list of :class:`ActionDefinition ` + :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. + :type dataspace_category: str + :param display_name: This localized name for this namespace. + :type display_name: str + :param element_length: If the security tokens this namespace will be operating on need to be split on certain character lengths to determine its elements, that length should be specified here. If not, this value will be -1. + :type element_length: int + :param extension_type: This is the type of the extension that should be loaded from the plugins directory for extending this security namespace. + :type extension_type: str + :param is_remotable: If true, the security namespace is remotable, allowing another service to proxy the namespace. + :type is_remotable: bool + :param name: This non-localized for this namespace. + :type name: str + :param namespace_id: The unique identifier for this namespace. + :type namespace_id: str + :param read_permission: The permission bits needed by a user in order to read security data on the Security Namespace. + :type read_permission: int + :param separator_value: If the security tokens this namespace will be operating on need to be split on certain characters to determine its elements that character should be specified here. If not, this value will be the null character. + :type separator_value: str + :param structure_value: Used to send information about the structure of the security namespace over the web service. + :type structure_value: int + :param system_bit_mask: The bits reserved by system store + :type system_bit_mask: int + :param use_token_translator: If true, the security service will expect an ISecurityDataspaceTokenTranslator plugin to exist for this namespace + :type use_token_translator: bool + :param write_permission: The permission bits needed by a user in order to modify security data on the Security Namespace. + :type write_permission: int + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[ActionDefinition]'}, + 'dataspace_category': {'key': 'dataspaceCategory', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'element_length': {'key': 'elementLength', 'type': 'int'}, + 'extension_type': {'key': 'extensionType', 'type': 'str'}, + 'is_remotable': {'key': 'isRemotable', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'read_permission': {'key': 'readPermission', 'type': 'int'}, + 'separator_value': {'key': 'separatorValue', 'type': 'str'}, + 'structure_value': {'key': 'structureValue', 'type': 'int'}, + 'system_bit_mask': {'key': 'systemBitMask', 'type': 'int'}, + 'use_token_translator': {'key': 'useTokenTranslator', 'type': 'bool'}, + 'write_permission': {'key': 'writePermission', 'type': 'int'} + } + + def __init__(self, actions=None, dataspace_category=None, display_name=None, element_length=None, extension_type=None, is_remotable=None, name=None, namespace_id=None, read_permission=None, separator_value=None, structure_value=None, system_bit_mask=None, use_token_translator=None, write_permission=None): + super(SecurityNamespaceDescription, self).__init__() + self.actions = actions + self.dataspace_category = dataspace_category + self.display_name = display_name + self.element_length = element_length + self.extension_type = extension_type + self.is_remotable = is_remotable + self.name = name + self.namespace_id = namespace_id + self.read_permission = read_permission + self.separator_value = separator_value + self.structure_value = structure_value + self.system_bit_mask = system_bit_mask + self.use_token_translator = use_token_translator + self.write_permission = write_permission diff --git a/vsts/vsts/security/v4_0/security_client.py b/vsts/vsts/security/v4_0/security_client.py new file mode 100644 index 00000000..7aceba1a --- /dev/null +++ b/vsts/vsts/security/v4_0/security_client.py @@ -0,0 +1,235 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class SecurityClient(VssClient): + """Security + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SecurityClient, 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 remove_access_control_entries(self, security_namespace_id, token=None, descriptors=None): + """RemoveAccessControlEntries. + :param str security_namespace_id: + :param str token: + :param str descriptors: + :rtype: bool + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptors is not None: + query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') + response = self._send(http_method='DELETE', + location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def set_access_control_entries(self, container, security_namespace_id): + """SetAccessControlEntries. + :param :class:` ` container: + :param str security_namespace_id: + :rtype: [AccessControlEntry] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + content = self._serialize.body(container, 'object') + response = self._send(http_method='POST', + location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', + version='4.0', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[AccessControlEntry]', response) + + def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): + """QueryAccessControlLists. + :param str security_namespace_id: + :param str token: + :param str descriptors: + :param bool include_extended_info: + :param bool recurse: + :rtype: [AccessControlList] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptors is not None: + query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') + if include_extended_info is not None: + query_parameters['includeExtendedInfo'] = self._serialize.query('include_extended_info', include_extended_info, 'bool') + if recurse is not None: + query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') + response = self._send(http_method='GET', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[AccessControlList]', response) + + def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None): + """RemoveAccessControlLists. + :param str security_namespace_id: + :param str tokens: + :param bool recurse: + :rtype: bool + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if tokens is not None: + query_parameters['tokens'] = self._serialize.query('tokens', tokens, 'str') + if recurse is not None: + query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') + response = self._send(http_method='DELETE', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def set_access_control_lists(self, access_control_lists, security_namespace_id): + """SetAccessControlLists. + :param :class:` ` access_control_lists: + :param str security_namespace_id: + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + content = self._serialize.body(access_control_lists, 'VssJsonCollectionWrapper') + self._send(http_method='POST', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='4.0', + route_values=route_values, + content=content) + + def has_permissions_batch(self, eval_batch): + """HasPermissionsBatch. + Perform a batch of "has permission" checks. This methods does not aggregate the results nor does it shortcircut if one of the permissions evaluates to false. + :param :class:` ` eval_batch: + :rtype: :class:` ` + """ + content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') + response = self._send(http_method='POST', + location_id='cf1faa59-1b63-4448-bf04-13d981a46f5d', + version='4.0', + content=content) + return self._deserialize('PermissionEvaluationBatch', response) + + def has_permissions(self, security_namespace_id, permissions=None, tokens=None, always_allow_administrators=None, delimiter=None): + """HasPermissions. + :param str security_namespace_id: + :param int permissions: + :param str tokens: + :param bool always_allow_administrators: + :param str delimiter: + :rtype: [bool] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + if permissions is not None: + route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') + query_parameters = {} + if tokens is not None: + query_parameters['tokens'] = self._serialize.query('tokens', tokens, 'str') + if always_allow_administrators is not None: + query_parameters['alwaysAllowAdministrators'] = self._serialize.query('always_allow_administrators', always_allow_administrators, 'bool') + if delimiter is not None: + query_parameters['delimiter'] = self._serialize.query('delimiter', delimiter, 'str') + response = self._send(http_method='GET', + location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[bool]', response) + + def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None): + """RemovePermission. + :param str security_namespace_id: + :param int permissions: + :param str token: + :param str descriptor: + :rtype: :class:` ` + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + if permissions is not None: + route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptor is not None: + query_parameters['descriptor'] = self._serialize.query('descriptor', descriptor, 'str') + response = self._send(http_method='DELETE', + location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', + version='4.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AccessControlEntry', response) + + def query_security_namespaces(self, security_namespace_id, local_only=None): + """QuerySecurityNamespaces. + :param str security_namespace_id: + :param bool local_only: + :rtype: [SecurityNamespaceDescription] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if local_only is not None: + query_parameters['localOnly'] = self._serialize.query('local_only', local_only, 'bool') + response = self._send(http_method='GET', + location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', + version='4.0', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SecurityNamespaceDescription]', response) + + def set_inherit_flag(self, container, security_namespace_id): + """SetInheritFlag. + :param :class:` ` container: + :param str security_namespace_id: + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + content = self._serialize.body(container, 'object') + self._send(http_method='POST', + location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', + version='4.0', + route_values=route_values, + content=content) + diff --git a/vsts/vsts/task_agent/v4_0/task_agent_client.py b/vsts/vsts/task_agent/v4_0/task_agent_client.py index 42e39ca2..530d461c 100644 --- a/vsts/vsts/task_agent/v4_0/task_agent_client.py +++ b/vsts/vsts/task_agent/v4_0/task_agent_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd' def add_agent(self, agent, pool_id): """AddAgent. diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index 07874572..38f1783d 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e' def get_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): """GetActionResults. diff --git a/vsts/vsts/tfvc/v4_0/tfvc_client.py b/vsts/vsts/tfvc/v4_0/tfvc_client.py index 4c2f2dce..54e9ce02 100644 --- a/vsts/vsts/tfvc/v4_0/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_0/tfvc_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '8aa40520-446d-40e6-89f6-9c9f9ce44c48' def get_branch(self, path, project=None, include_parent=None, include_children=None): """GetBranch. diff --git a/vsts/vsts/work/v4_0/work_client.py b/vsts/vsts/work/v4_0/work_client.py index a259b58b..8364608d 100644 --- a/vsts/vsts/work/v4_0/work_client.py +++ b/vsts/vsts/work/v4_0/work_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = '1D4F49F9-02B9-4E26-B826-2CDB6195F2A9' + resource_area_identifier = '1d4f49f9-02b9-4e26-b826-2cdb6195f2a9' def get_backlog_configurations(self, team_context): """GetBacklogConfigurations. From b7989924dac2d8c152aab6f2822512d8763a8921 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 20 Mar 2018 12:09:25 -0400 Subject: [PATCH 025/191] fix TeamContext issue in clients. regen 4.0 and 4.1 with fix. --- vsts/vsts/build/v4_1/build_client.py | 316 ++- vsts/vsts/build/v4_1/models/__init__.py | 26 + .../build/v4_1/models/artifact_resource.py | 6 +- vsts/vsts/build/v4_1/models/build.py | 6 +- .../build/v4_1/models/build_definition.py | 6 +- .../v4_1/models/build_definition_template.py | 6 +- .../models/build_definition_template3_2.py | 6 +- .../v4_1/models/data_source_binding_base.py | 16 +- vsts/vsts/build/v4_1/models/identity_ref.py | 30 +- .../contributions/v4_1/models/__init__.py | 10 +- .../contributions/v4_1/models/contribution.py | 6 +- .../v4_1/models/contribution_constraint.py | 8 +- .../models/contribution_node_query_result.py | 4 +- .../models/contribution_provider_details.py | 37 - .../v4_1/models/data_provider_result.py | 10 +- .../v4_1/models/extension_file.py | 28 +- .../v4_1/models/extension_manifest.py | 10 +- .../v4_1/models/installed_extension.py | 10 +- .../models/serialized_contribution_node.py | 33 - vsts/vsts/core/v4_1/models/__init__.py | 2 + vsts/vsts/core/v4_1/models/identity_ref.py | 30 +- vsts/vsts/core/v4_1/models/web_api_team.py | 12 +- vsts/vsts/dashboard/v4_0/dashboard_client.py | 44 +- vsts/vsts/dashboard/v4_1/dashboard_client.py | 44 +- vsts/vsts/dashboard/v4_1/models/widget.py | 6 +- .../dashboard/v4_1/models/widget_response.py | 7 +- .../v4_1/models/__init__.py | 4 + .../v4_1/models/contribution.py | 6 +- .../v4_1/models/contribution_constraint.py | 8 +- .../v4_1/models/extension_file.py | 28 +- .../v4_1/models/extension_manifest.py | 10 +- .../v4_1/models/identity_ref.py | 30 +- .../v4_1/models/installation_target.py | 18 +- .../v4_1/models/installed_extension.py | 10 +- vsts/vsts/gallery/v4_1/gallery_client.py | 66 +- vsts/vsts/gallery/v4_1/models/__init__.py | 4 + .../v4_1/models/extension_draft_asset.py | 22 +- .../gallery/v4_1/models/extension_file.py | 28 +- .../v4_1/models/installation_target.py | 18 +- vsts/vsts/gallery/v4_1/models/publisher.py | 23 +- vsts/vsts/git/v4_1/git_client_base.py | 87 +- vsts/vsts/git/v4_1/models/__init__.py | 6 +- .../git/v4_1/models/associated_work_item.py | 49 - vsts/vsts/git/v4_1/models/git_fork_ref.py | 7 +- vsts/vsts/git/v4_1/models/git_item.py | 7 +- .../models/git_pull_request_merge_options.py | 6 +- vsts/vsts/git/v4_1/models/git_ref.py | 6 +- vsts/vsts/git/v4_1/models/identity_ref.py | 30 +- .../git/v4_1/models/identity_ref_with_vote.py | 22 +- vsts/vsts/git/v4_1/models/item_model.py | 6 +- vsts/vsts/identity/v4_1/models/__init__.py | 2 + vsts/vsts/identity/v4_1/models/identity.py | 23 +- vsts/vsts/licensing/v4_1/licensing_client.py | 26 +- vsts/vsts/licensing/v4_1/models/__init__.py | 6 +- .../v4_1/models/account_entitlement.py | 6 +- .../licensing/v4_1/models/iUsage_right.py | 37 - .../licensing/v4_1/models/identity_ref.py | 30 +- vsts/vsts/location/v4_1/location_client.py | 58 +- vsts/vsts/location/v4_1/models/__init__.py | 2 + vsts/vsts/location/v4_1/models/identity.py | 23 +- .../vsts/notification/v4_1/models/__init__.py | 14 + .../notification/v4_1/models/identity_ref.py | 30 +- .../v4_1/models/notification_subscription.py | 6 +- .../notification/v4_1/notification_client.py | 73 + vsts/vsts/policy/v4_1/models/__init__.py | 2 + vsts/vsts/policy/v4_1/models/identity_ref.py | 30 +- vsts/vsts/policy/v4_1/policy_client.py | 5 +- .../project_analysis/v4_1/models/__init__.py | 2 + .../v4_1/models/language_statistics.py | 17 +- .../v4_1/models/project_language_analytics.py | 17 +- .../models/repository_language_analytics.py | 17 +- vsts/vsts/release/v4_1/models/__init__.py | 6 + .../v4_1/models/artifact_type_definition.py | 6 +- .../v4_1/models/authorization_header.py | 3 +- .../vsts/release/v4_1/models/build_version.py | 10 +- .../v4_1/models/data_source_binding_base.py | 19 +- vsts/vsts/release/v4_1/models/deployment.py | 6 +- .../release/v4_1/models/deployment_attempt.py | 6 +- .../v4_1/models/environment_options.py | 10 +- vsts/vsts/release/v4_1/models/identity_ref.py | 30 +- .../release/v4_1/models/process_parameters.py | 3 +- .../release/v4_1/models/release_definition.py | 6 +- .../models/release_definition_environment.py | 6 +- .../v4_1/models/release_deploy_phase.py | 10 +- .../v4_1/models/task_input_definition_base.py | 3 +- .../v4_1/models/task_input_validation.py | 3 +- .../models/task_source_definition_base.py | 3 +- vsts/vsts/release/v4_1/release_client.py | 99 +- .../service_hooks/v4_1/models/__init__.py | 10 + .../service_hooks/v4_1/models/identity_ref.py | 30 +- .../v4_1/service_hooks_client.py | 33 + vsts/vsts/task_agent/v4_1/models/__init__.py | 18 + .../v4_1/models/authorization_header.py | 4 +- .../v4_1/models/data_source_binding.py | 16 +- .../v4_1/models/data_source_binding_base.py | 19 +- .../v4_1/models/deployment_group.py | 16 +- .../v4_1/models/deployment_group_metrics.py | 6 +- .../v4_1/models/deployment_group_reference.py | 8 +- .../v4_1/models/deployment_machine.py | 6 +- .../v4_1/models/deployment_pool_summary.py | 8 +- .../v4_1/models/endpoint_authorization.py | 4 +- .../task_agent/v4_1/models/endpoint_url.py | 10 +- .../task_agent/v4_1/models/identity_ref.py | 30 +- .../v4_1/models/metrics_column_meta_data.py | 4 +- .../v4_1/models/metrics_columns_header.py | 4 +- .../task_agent/v4_1/models/metrics_row.py | 4 +- .../v4_1/models/service_endpoint.py | 8 +- .../service_endpoint_authentication_scheme.py | 14 +- .../models/service_endpoint_execution_data.py | 14 +- .../service_endpoint_execution_record.py | 4 +- .../v4_1/models/service_endpoint_type.py | 24 +- .../task_agent/v4_1/models/task_agent_pool.py | 6 +- .../v4_1/models/task_input_definition_base.py | 3 +- .../v4_1/models/task_input_validation.py | 3 +- .../models/task_source_definition_base.py | 3 +- .../task_agent/v4_1/models/variable_group.py | 20 +- .../vsts/task_agent/v4_1/task_agent_client.py | 2196 +---------------- vsts/vsts/test/v4_0/test_client.py | 12 +- vsts/vsts/test/v4_1/models/__init__.py | 8 + .../aggregated_data_for_result_trend.py | 6 +- .../models/aggregated_results_analysis.py | 6 +- vsts/vsts/test/v4_1/models/identity_ref.py | 30 +- vsts/vsts/test/v4_1/models/test_attachment.py | 6 +- vsts/vsts/test/v4_1/test_client.py | 64 +- vsts/vsts/tfvc/v4_1/models/__init__.py | 2 + vsts/vsts/tfvc/v4_1/models/identity_ref.py | 30 +- vsts/vsts/tfvc/v4_1/models/item_model.py | 6 +- vsts/vsts/tfvc/v4_1/models/tfvc_item.py | 7 +- vsts/vsts/tfvc/v4_1/tfvc_client.py | 28 +- vsts/vsts/work/v4_0/work_client.py | 128 +- vsts/vsts/work/v4_1/models/__init__.py | 10 + .../models/backlog_level_configuration.py | 10 +- vsts/vsts/work/v4_1/models/identity_ref.py | 30 +- .../v4_1/models/work_item_field_reference.py | 3 +- .../work_item_tracking_resource_reference.py | 3 +- vsts/vsts/work/v4_1/work_client.py | 254 +- .../v4_0/work_item_tracking_client.py | 32 +- .../v4_1/models/__init__.py | 8 + .../v4_1/models/identity_ref.py | 30 +- .../v4_1/models/identity_reference.py | 22 +- .../v4_1/models/query_hierarchy_item.py | 2 +- .../v4_1/models/work_item_comment.py | 8 +- .../v4_1/models/work_item_comments.py | 14 +- .../models/work_item_type_field_instance.py | 23 +- .../v4_1/work_item_tracking_client.py | 385 +-- 145 files changed, 2308 insertions(+), 3259 deletions(-) delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution_provider_details.py delete mode 100644 vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py delete mode 100644 vsts/vsts/git/v4_1/models/associated_work_item.py delete mode 100644 vsts/vsts/licensing/v4_1/models/iUsage_right.py diff --git a/vsts/vsts/build/v4_1/build_client.py b/vsts/vsts/build/v4_1/build_client.py index 4c360b27..50a718ce 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/vsts/vsts/build/v4_1/build_client.py @@ -111,6 +111,58 @@ def get_artifacts(self, build_id, project=None): returns_collection=True) return self._deserialize('[BuildArtifact]', response) + def get_attachments(self, project, build_id, type): + """GetAttachments. + [Preview API] Gets the list of attachments of a specific type that are associated with a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str type: The type of attachment. + :rtype: [Attachment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='f2192269-89fa-4f94-baf6-8fb128c55159', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[Attachment]', response) + + def get_attachment(self, project, build_id, timeline_id, record_id, type, name): + """GetAttachment. + [Preview API] Gets a specific attachment. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str timeline_id: The ID of the timeline. + :param str record_id: The ID of the timeline record. + :param str type: The type of the attachment. + :param str name: The name of the attachment. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='af5122d3-3438-485e-a25a-2dbbfde84ee6', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + def get_badge(self, project, definition_id, branch_name=None): """GetBadge. [Preview API] Gets a badge that indicates the status of the most recent build for a definition. @@ -139,7 +191,7 @@ def list_branches(self, project, provider_name, service_endpoint_id=None, reposi [Preview API] Gets a list of branches for the given source code repository. :param str project: Project ID or project name :param str provider_name: The name of the source provider. - :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do use service endpoints, e.g. TFVC or TFGit. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. :param str repository: If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. :rtype: [str] """ @@ -226,15 +278,15 @@ def delete_build(self, build_id, project=None): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') self._send(http_method='DELETE', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.3', + version='4.1-preview.4', route_values=route_values) def get_build(self, build_id, project=None, property_filters=None): """GetBuild. - [Preview API] Gets a build. - :param int build_id: The ID of the build. + [Preview API] Gets a build + :param int build_id: :param str project: Project ID or project name - :param str property_filters: A comma-delimited list of properties to include in the results. + :param str property_filters: :rtype: :class:` ` """ route_values = {} @@ -247,7 +299,7 @@ def get_build(self, build_id, project=None, property_filters=None): query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.3', + version='4.1-preview.4', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Build', response) @@ -329,7 +381,7 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.3', + version='4.1-preview.4', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -355,7 +407,7 @@ def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket content = self._serialize.body(build, 'Build') response = self._send(http_method='POST', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.3', + version='4.1-preview.4', route_values=route_values, query_parameters=query_parameters, content=content) @@ -377,7 +429,7 @@ def update_build(self, build, build_id, project=None): content = self._serialize.body(build, 'Build') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.3', + version='4.1-preview.4', route_values=route_values, content=content) return self._deserialize('Build', response) @@ -395,7 +447,7 @@ def update_builds(self, builds, project=None): content = self._serialize.body(builds, '[Build]') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.3', + version='4.1-preview.4', route_values=route_values, content=content, returns_collection=True) @@ -403,11 +455,11 @@ def update_builds(self, builds, project=None): def get_build_changes(self, project, build_id, continuation_token=None, top=None, include_source_change=None): """GetBuildChanges. - [Preview API] Gets the changes associated with a build. + [Preview API] Gets the changes associated with a build :param str project: Project ID or project name - :param int build_id: The build ID. + :param int build_id: :param str continuation_token: - :param int top: The maximum number of changes to return. + :param int top: The maximum number of changes to return :param bool include_source_change: :rtype: [Change] """ @@ -625,6 +677,54 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor returns_collection=True) return self._deserialize('[BuildDefinitionReference]', response) + def reset_counter(self, definition_id, counter_id, project=None): + """ResetCounter. + [Preview API] Resets the counter variable Value back to the Seed. + :param int definition_id: The ID of the definition. + :param int counter_id: The ID of the counter. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if counter_id is not None: + query_parameters['counterId'] = self._serialize.query('counter_id', counter_id, 'int') + self._send(http_method='POST', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + + def update_counter_seed(self, definition_id, counter_id, new_seed, reset_value, project=None): + """UpdateCounterSeed. + [Preview API] Changes the counter variable Seed, and optionally resets the Value to this new Seed. Note that if Seed is being set above Value, then Value will be updated regardless. + :param int definition_id: The ID of the definition. + :param int counter_id: The ID of the counter. + :param long new_seed: The new Seed value. + :param bool reset_value: Flag indicating if Value should also be reset. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if counter_id is not None: + query_parameters['counterId'] = self._serialize.query('counter_id', counter_id, 'int') + if new_seed is not None: + query_parameters['newSeed'] = self._serialize.query('new_seed', new_seed, 'long') + if reset_value is not None: + query_parameters['resetValue'] = self._serialize.query('reset_value', reset_value, 'bool') + self._send(http_method='POST', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. [Preview API] Updates an existing definition. @@ -654,6 +754,38 @@ def update_definition(self, definition, definition_id, project=None, secrets_sou content=content) return self._deserialize('BuildDefinition', response) + def get_file_contents(self, project, provider_name, service_endpoint_id=None, repository=None, commit_or_branch=None, path=None): + """GetFileContents. + [Preview API] Gets the contents of a file in the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. + :param str commit_or_branch: The identifier of the commit or branch from which a file's contents are retrieved. + :param str path: The path to the file to retrieve, relative to the root of the repository. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + if commit_or_branch is not None: + query_parameters['commitOrBranch'] = self._serialize.query('commit_or_branch', commit_or_branch, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + response = self._send(http_method='GET', + location_id='29d12225-b1d9-425f-b668-6c594a981313', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + def create_folder(self, folder, project, path): """CreateFolder. [Preview API] Creates a new folder. @@ -896,6 +1028,39 @@ def get_build_option_definitions(self, project=None): returns_collection=True) return self._deserialize('[BuildOptionDefinition]', response) + def get_path_contents(self, project, provider_name, service_endpoint_id=None, repository=None, commit_or_branch=None, path=None): + """GetPathContents. + [Preview API] Gets the contents of a directory in the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. + :param str commit_or_branch: The identifier of the commit or branch from which a file's contents are retrieved. + :param str path: The path contents to list, relative to the root of the repository. + :rtype: [SourceRepositoryItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + if commit_or_branch is not None: + query_parameters['commitOrBranch'] = self._serialize.query('commit_or_branch', commit_or_branch, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + response = self._send(http_method='GET', + location_id='7944d6fb-df01-4709-920a-7a189aa34037', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[SourceRepositoryItem]', response) + def get_build_properties(self, project, build_id, filter=None): """GetBuildProperties. [Preview API] Gets properties for a build. @@ -1034,13 +1199,17 @@ def get_build_report_html_content(self, project, build_id, type=None): query_parameters=query_parameters) return self._deserialize('object', response) - def list_repositories(self, project, provider_name, service_endpoint_id=None): + def list_repositories(self, project, provider_name, service_endpoint_id=None, repository=None, result_set=None, page_results=None, continuation_token=None): """ListRepositories. [Preview API] Gets a list of source code repositories. :param str project: Project ID or project name :param str provider_name: The name of the source provider. - :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do use service endpoints, e.g. TFVC or TFGit. - :rtype: [SourceRepository] + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of a single repository to get. + :param str result_set: 'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set. + :param bool page_results: If set to true, this will limit the set of results and will return a continuation token to continue the query. + :param str continuation_token: When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1050,13 +1219,20 @@ def list_repositories(self, project, provider_name, service_endpoint_id=None): query_parameters = {} if service_endpoint_id is not None: query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + if result_set is not None: + query_parameters['resultSet'] = self._serialize.query('result_set', result_set, 'str') + if page_results is not None: + query_parameters['pageResults'] = self._serialize.query('page_results', page_results, 'bool') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') response = self._send(http_method='GET', location_id='d44d1680-f978-4834-9b93-8c6e132329c9', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SourceRepository]', response) + query_parameters=query_parameters) + return self._deserialize('SourceRepositories', response) def get_resource_usage(self): """GetResourceUsage. @@ -1388,14 +1564,54 @@ def save_template(self, template, project, template_id): content=content) return self._deserialize('BuildDefinitionTemplate', response) + def get_ticketed_artifact_content_zip(self, build_id, project_id, artifact_name, download_ticket): + """GetTicketedArtifactContentZip. + [Preview API] Gets a Zip file of the artifact with the given name for a build. + :param int build_id: The ID of the build. + :param str project_id: The project ID. + :param str artifact_name: The name of the artifact. + :param String download_ticket: A valid ticket that gives permission to download artifacts + :rtype: object + """ + route_values = {} + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if project_id is not None: + query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') + if artifact_name is not None: + query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') + response = self._send(http_method='GET', + location_id='731b7e7a-0b6c-4912-af75-de04fe4899db', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_ticketed_logs_content_zip(self, build_id, download_ticket): + """GetTicketedLogsContentZip. + [Preview API] Gets a Zip file of the logs for a given build. + :param int build_id: The ID of the build. + :param String download_ticket: A valid ticket that gives permission to download the logs. + :rtype: object + """ + route_values = {} + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + response = self._send(http_method='GET', + location_id='917890d1-a6b5-432d-832a-6afcf6bb0734', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None, plan_id=None): """GetBuildTimeline. - [Preview API] Gets a timeline for a build. + [Preview API] Gets details for a build :param str project: Project ID or project name - :param int build_id: The ID of the build. - :param str timeline_id: The ID of the timeline. If not specified, uses the main timeline for the plan. + :param int build_id: + :param str timeline_id: :param int change_id: - :param str plan_id: The ID of the plan. If not specified, uses the primary plan for the build. + :param str plan_id: :rtype: :class:` ` """ route_values = {} @@ -1417,6 +1633,60 @@ def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None query_parameters=query_parameters) return self._deserialize('Timeline', response) + def restore_webhooks(self, trigger_types, project, provider_name, service_endpoint_id=None, repository=None): + """RestoreWebhooks. + [Preview API] Recreates the webhooks for the specified triggers in the given source code repository. + :param [DefinitionTriggerType] trigger_types: The types of triggers to restore webhooks for. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + content = self._serialize.body(trigger_types, '[DefinitionTriggerType]') + self._send(http_method='POST', + location_id='793bceb8-9736-4030-bd2f-fb3ce6d6b478', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + + def list_webhooks(self, project, provider_name, service_endpoint_id=None, repository=None): + """ListWebhooks. + [Preview API] Gets a list of webhooks installed in the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories. + :rtype: [RepositoryWebhook] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + response = self._send(http_method='GET', + location_id='8f20ff82-9498-4812-9f6e-9c01bdc50e99', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[RepositoryWebhook]', response) + def get_build_work_items_refs(self, project, build_id, top=None): """GetBuildWorkItemsRefs. [Preview API] Gets the work items associated with a build. diff --git a/vsts/vsts/build/v4_1/models/__init__.py b/vsts/vsts/build/v4_1/models/__init__.py index 11182e19..ed1d399e 100644 --- a/vsts/vsts/build/v4_1/models/__init__.py +++ b/vsts/vsts/build/v4_1/models/__init__.py @@ -7,7 +7,13 @@ # -------------------------------------------------------------------------------------------- from .agent_pool_queue import AgentPoolQueue +from .aggregated_results_analysis import AggregatedResultsAnalysis +from .aggregated_results_by_outcome import AggregatedResultsByOutcome +from .aggregated_results_difference import AggregatedResultsDifference +from .aggregated_runs_by_state import AggregatedRunsByState from .artifact_resource import ArtifactResource +from .associated_work_item import AssociatedWorkItem +from .attachment import Attachment from .authorization_header import AuthorizationHeader from .build import Build from .build_artifact import BuildArtifact @@ -15,6 +21,7 @@ from .build_controller import BuildController from .build_definition import BuildDefinition from .build_definition3_2 import BuildDefinition3_2 +from .build_definition_counter import BuildDefinitionCounter from .build_definition_reference import BuildDefinitionReference from .build_definition_reference3_2 import BuildDefinitionReference3_2 from .build_definition_revision import BuildDefinitionRevision @@ -42,15 +49,20 @@ from .definition_reference import DefinitionReference from .deployment import Deployment from .folder import Folder +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .issue import Issue from .json_patch_operation import JsonPatchOperation from .process_parameters import ProcessParameters from .reference_links import ReferenceLinks +from .release_reference import ReleaseReference +from .repository_webhook import RepositoryWebhook from .resource_ref import ResourceRef from .retention_policy import RetentionPolicy from .source_provider_attributes import SourceProviderAttributes +from .source_repositories import SourceRepositories from .source_repository import SourceRepository +from .source_repository_item import SourceRepositoryItem from .supported_trigger import SupportedTrigger from .task_agent_pool_reference import TaskAgentPoolReference from .task_definition_reference import TaskDefinitionReference @@ -60,6 +72,7 @@ from .task_reference import TaskReference from .task_source_definition_base import TaskSourceDefinitionBase from .team_project_reference import TeamProjectReference +from .test_results_context import TestResultsContext from .timeline import Timeline from .timeline_record import TimelineRecord from .timeline_reference import TimelineReference @@ -70,7 +83,13 @@ __all__ = [ 'AgentPoolQueue', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByState', 'ArtifactResource', + 'AssociatedWorkItem', + 'Attachment', 'AuthorizationHeader', 'Build', 'BuildArtifact', @@ -78,6 +97,7 @@ 'BuildController', 'BuildDefinition', 'BuildDefinition3_2', + 'BuildDefinitionCounter', 'BuildDefinitionReference', 'BuildDefinitionReference3_2', 'BuildDefinitionRevision', @@ -105,15 +125,20 @@ 'DefinitionReference', 'Deployment', 'Folder', + 'GraphSubjectBase', 'IdentityRef', 'Issue', 'JsonPatchOperation', 'ProcessParameters', 'ReferenceLinks', + 'ReleaseReference', + 'RepositoryWebhook', 'ResourceRef', 'RetentionPolicy', 'SourceProviderAttributes', + 'SourceRepositories', 'SourceRepository', + 'SourceRepositoryItem', 'SupportedTrigger', 'TaskAgentPoolReference', 'TaskDefinitionReference', @@ -123,6 +148,7 @@ 'TaskReference', 'TaskSourceDefinitionBase', 'TeamProjectReference', + 'TestResultsContext', 'Timeline', 'TimelineRecord', 'TimelineReference', diff --git a/vsts/vsts/build/v4_1/models/artifact_resource.py b/vsts/vsts/build/v4_1/models/artifact_resource.py index 49e52950..5d9174e3 100644 --- a/vsts/vsts/build/v4_1/models/artifact_resource.py +++ b/vsts/vsts/build/v4_1/models/artifact_resource.py @@ -16,6 +16,8 @@ class ArtifactResource(Model): :type _links: :class:`ReferenceLinks ` :param data: Type-specific data about the artifact. :type data: str + :param download_ticket: A secret that can be sent in a request header to retrieve an artifact anonymously. Valid for a limited amount of time. Optional. + :type download_ticket: str :param download_url: A link to download the resource. :type download_url: str :param properties: Type-specific properties of the artifact. @@ -29,16 +31,18 @@ class ArtifactResource(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'data': {'key': 'data', 'type': 'str'}, + 'download_ticket': {'key': 'downloadTicket', 'type': 'str'}, 'download_url': {'key': 'downloadUrl', 'type': 'str'}, 'properties': {'key': 'properties', 'type': '{str}'}, 'type': {'key': 'type', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, data=None, download_url=None, properties=None, type=None, url=None): + def __init__(self, _links=None, data=None, download_ticket=None, download_url=None, properties=None, type=None, url=None): super(ArtifactResource, self).__init__() self._links = _links self.data = data + self.download_ticket = download_ticket self.download_url = download_url self.properties = properties self.type = type diff --git a/vsts/vsts/build/v4_1/models/build.py b/vsts/vsts/build/v4_1/models/build.py index f7eada17..4a8f2566 100644 --- a/vsts/vsts/build/v4_1/models/build.py +++ b/vsts/vsts/build/v4_1/models/build.py @@ -88,6 +88,8 @@ class Build(Model): :type status: object :param tags: :type tags: list of str + :param triggered_by_build: The build that triggered this build via a Build completion trigger. + :type triggered_by_build: :class:`Build ` :param trigger_info: Sourceprovider-specific information about what triggered the build :type trigger_info: dict :param uri: The URI of the build. @@ -137,13 +139,14 @@ class Build(Model): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'object'}, 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggered_by_build': {'key': 'triggeredByBuild', 'type': 'Build'}, 'trigger_info': {'key': 'triggerInfo', 'type': '{str}'}, 'uri': {'key': 'uri', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'} } - def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, trigger_info=None, uri=None, url=None, validation_results=None): + def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, triggered_by_build=None, trigger_info=None, uri=None, url=None, validation_results=None): super(Build, self).__init__() self._links = _links self.build_number = build_number @@ -183,6 +186,7 @@ def __init__(self, _links=None, build_number=None, build_number_revision=None, c self.start_time = start_time self.status = status self.tags = tags + self.triggered_by_build = triggered_by_build self.trigger_info = trigger_info self.uri = uri self.url = url diff --git a/vsts/vsts/build/v4_1/models/build_definition.py b/vsts/vsts/build/v4_1/models/build_definition.py index 2eb2d342..d443d215 100644 --- a/vsts/vsts/build/v4_1/models/build_definition.py +++ b/vsts/vsts/build/v4_1/models/build_definition.py @@ -56,6 +56,8 @@ class BuildDefinition(BuildDefinitionReference): :type build_number_format: str :param comment: A save-time comment for the definition. :type comment: str + :param counters: + :type counters: dict :param demands: :type demands: list of :class:`object ` :param description: The description. @@ -113,6 +115,7 @@ class BuildDefinition(BuildDefinitionReference): 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, 'comment': {'key': 'comment', 'type': 'str'}, + 'counters': {'key': 'counters', 'type': '{BuildDefinitionCounter}'}, 'demands': {'key': 'demands', 'type': '[object]'}, 'description': {'key': 'description', 'type': 'str'}, 'drop_location': {'key': 'dropLocation', 'type': 'str'}, @@ -131,11 +134,12 @@ class BuildDefinition(BuildDefinitionReference): 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, counters=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, latest_build=latest_build, latest_completed_build=latest_completed_build, metrics=metrics, quality=quality, queue=queue) self.badge_enabled = badge_enabled self.build_number_format = build_number_format self.comment = comment + self.counters = counters self.demands = demands self.description = description self.drop_location = drop_location diff --git a/vsts/vsts/build/v4_1/models/build_definition_template.py b/vsts/vsts/build/v4_1/models/build_definition_template.py index bcd59370..50efc44c 100644 --- a/vsts/vsts/build/v4_1/models/build_definition_template.py +++ b/vsts/vsts/build/v4_1/models/build_definition_template.py @@ -16,6 +16,8 @@ class BuildDefinitionTemplate(Model): :type can_delete: bool :param category: The template category. :type category: str + :param default_hosted_queue: An optional hosted agent queue for the template to use by default. + :type default_hosted_queue: str :param description: A description of the template. :type description: str :param icons: @@ -33,6 +35,7 @@ class BuildDefinitionTemplate(Model): _attribute_map = { 'can_delete': {'key': 'canDelete', 'type': 'bool'}, 'category': {'key': 'category', 'type': 'str'}, + 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'icons': {'key': 'icons', 'type': '{str}'}, 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, @@ -41,10 +44,11 @@ class BuildDefinitionTemplate(Model): 'template': {'key': 'template', 'type': 'BuildDefinition'} } - def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): super(BuildDefinitionTemplate, self).__init__() self.can_delete = can_delete self.category = category + self.default_hosted_queue = default_hosted_queue self.description = description self.icons = icons self.icon_task_id = icon_task_id diff --git a/vsts/vsts/build/v4_1/models/build_definition_template3_2.py b/vsts/vsts/build/v4_1/models/build_definition_template3_2.py index 8bd0c687..e497668d 100644 --- a/vsts/vsts/build/v4_1/models/build_definition_template3_2.py +++ b/vsts/vsts/build/v4_1/models/build_definition_template3_2.py @@ -16,6 +16,8 @@ class BuildDefinitionTemplate3_2(Model): :type can_delete: bool :param category: :type category: str + :param default_hosted_queue: + :type default_hosted_queue: str :param description: :type description: str :param icons: @@ -33,6 +35,7 @@ class BuildDefinitionTemplate3_2(Model): _attribute_map = { 'can_delete': {'key': 'canDelete', 'type': 'bool'}, 'category': {'key': 'category', 'type': 'str'}, + 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'icons': {'key': 'icons', 'type': '{str}'}, 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, @@ -41,10 +44,11 @@ class BuildDefinitionTemplate3_2(Model): 'template': {'key': 'template', 'type': 'BuildDefinition3_2'} } - def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): super(BuildDefinitionTemplate3_2, self).__init__() self.can_delete = can_delete self.category = category + self.default_hosted_queue = default_hosted_queue self.description = description self.icons = icons self.icon_task_id = icon_task_id diff --git a/vsts/vsts/build/v4_1/models/data_source_binding_base.py b/vsts/vsts/build/v4_1/models/data_source_binding_base.py index fe92a446..04638445 100644 --- a/vsts/vsts/build/v4_1/models/data_source_binding_base.py +++ b/vsts/vsts/build/v4_1/models/data_source_binding_base.py @@ -12,21 +12,21 @@ class DataSourceBindingBase(Model): """DataSourceBindingBase. - :param data_source_name: + :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str - :param endpoint_id: + :param endpoint_id: Gets or sets the endpoint Id. :type endpoint_id: str - :param endpoint_url: + :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str - :param headers: + :param headers: Gets or sets the authorization headers. :type headers: list of :class:`AuthorizationHeader ` - :param parameters: + :param parameters: Gets or sets the parameters for the data source. :type parameters: dict - :param result_selector: + :param result_selector: Gets or sets the result selector. :type result_selector: str - :param result_template: + :param result_template: Gets or sets the result template. :type result_template: str - :param target: + :param target: Gets or sets the target of the data source. :type target: str """ diff --git a/vsts/vsts/build/v4_1/models/identity_ref.py b/vsts/vsts/build/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/build/v4_1/models/identity_ref.py +++ b/vsts/vsts/build/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/contributions/v4_1/models/__init__.py b/vsts/vsts/contributions/v4_1/models/__init__.py index a2b2f347..475ee422 100644 --- a/vsts/vsts/contributions/v4_1/models/__init__.py +++ b/vsts/vsts/contributions/v4_1/models/__init__.py @@ -6,6 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .client_contribution import ClientContribution +from .client_contribution_node import ClientContributionNode +from .client_contribution_provider_details import ClientContributionProviderDetails from .client_data_provider_query import ClientDataProviderQuery from .contribution import Contribution from .contribution_base import ContributionBase @@ -13,7 +16,6 @@ from .contribution_node_query import ContributionNodeQuery from .contribution_node_query_result import ContributionNodeQueryResult from .contribution_property_description import ContributionPropertyDescription -from .contribution_provider_details import ContributionProviderDetails from .contribution_type import ContributionType from .data_provider_context import DataProviderContext from .data_provider_exception_details import DataProviderExceptionDetails @@ -29,9 +31,11 @@ from .installed_extension_state_issue import InstalledExtensionStateIssue from .licensing_override import LicensingOverride from .resolved_data_provider import ResolvedDataProvider -from .serialized_contribution_node import SerializedContributionNode __all__ = [ + 'ClientContribution', + 'ClientContributionNode', + 'ClientContributionProviderDetails', 'ClientDataProviderQuery', 'Contribution', 'ContributionBase', @@ -39,7 +43,6 @@ 'ContributionNodeQuery', 'ContributionNodeQueryResult', 'ContributionPropertyDescription', - 'ContributionProviderDetails', 'ContributionType', 'DataProviderContext', 'DataProviderExceptionDetails', @@ -55,5 +58,4 @@ 'InstalledExtensionStateIssue', 'LicensingOverride', 'ResolvedDataProvider', - 'SerializedContributionNode', ] diff --git a/vsts/vsts/contributions/v4_1/models/contribution.py b/vsts/vsts/contributions/v4_1/models/contribution.py index 4debccec..5a48a8b7 100644 --- a/vsts/vsts/contributions/v4_1/models/contribution.py +++ b/vsts/vsts/contributions/v4_1/models/contribution.py @@ -24,6 +24,8 @@ class Contribution(ContributionBase): :type includes: list of str :param properties: Properties/attributes of this contribution :type properties: :class:`object ` + :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). + :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -37,14 +39,16 @@ class Contribution(ContributionBase): 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'includes': {'key': 'includes', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'object'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'targets': {'key': 'targets', 'type': '[str]'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) self.constraints = constraints self.includes = includes self.properties = properties + self.restricted_to = restricted_to self.targets = targets self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/contribution_constraint.py b/vsts/vsts/contributions/v4_1/models/contribution_constraint.py index 44869a8e..a26d702e 100644 --- a/vsts/vsts/contributions/v4_1/models/contribution_constraint.py +++ b/vsts/vsts/contributions/v4_1/models/contribution_constraint.py @@ -14,9 +14,11 @@ class ContributionConstraint(Model): :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). :type group: int + :param id: Fully qualified identifier of a shared constraint + :type id: str :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) :type inverse: bool - :param name: Name of the IContributionFilter class + :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class :type properties: :class:`object ` @@ -26,15 +28,17 @@ class ContributionConstraint(Model): _attribute_map = { 'group': {'key': 'group', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, 'inverse': {'key': 'inverse', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'object'}, 'relationships': {'key': 'relationships', 'type': '[str]'} } - def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): super(ContributionConstraint, self).__init__() self.group = group + self.id = id self.inverse = inverse self.name = name self.properties = properties diff --git a/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py b/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py index 902bac31..4fc173df 100644 --- a/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py +++ b/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py @@ -19,8 +19,8 @@ class ContributionNodeQueryResult(Model): """ _attribute_map = { - 'nodes': {'key': 'nodes', 'type': '{SerializedContributionNode}'}, - 'provider_details': {'key': 'providerDetails', 'type': '{ContributionProviderDetails}'} + 'nodes': {'key': 'nodes', 'type': '{ClientContributionNode}'}, + 'provider_details': {'key': 'providerDetails', 'type': '{ClientContributionProviderDetails}'} } def __init__(self, nodes=None, provider_details=None): diff --git a/vsts/vsts/contributions/v4_1/models/contribution_provider_details.py b/vsts/vsts/contributions/v4_1/models/contribution_provider_details.py deleted file mode 100644 index 0cdda303..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution_provider_details.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionProviderDetails(Model): - """ContributionProviderDetails. - - :param display_name: Friendly name for the provider. - :type display_name: str - :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes - :type name: str - :param properties: Properties associated with the provider - :type properties: dict - :param version: Version of contributions assoicated with this contribution provider. - :type version: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, display_name=None, name=None, properties=None, version=None): - super(ContributionProviderDetails, self).__init__() - self.display_name = display_name - self.name = name - self.properties = properties - self.version = version diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_result.py b/vsts/vsts/contributions/v4_1/models/data_provider_result.py index 8b3ec9ec..0d9783d5 100644 --- a/vsts/vsts/contributions/v4_1/models/data_provider_result.py +++ b/vsts/vsts/contributions/v4_1/models/data_provider_result.py @@ -20,6 +20,10 @@ class DataProviderResult(Model): :type exceptions: dict :param resolved_providers: List of data providers resolved in the data-provider query :type resolved_providers: list of :class:`ResolvedDataProvider ` + :param scope_name: Scope name applied to this data provider result. + :type scope_name: str + :param scope_value: Scope value applied to this data provider result. + :type scope_value: str :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers :type shared_data: dict """ @@ -29,13 +33,17 @@ class DataProviderResult(Model): 'data': {'key': 'data', 'type': '{object}'}, 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_value': {'key': 'scopeValue', 'type': 'str'}, 'shared_data': {'key': 'sharedData', 'type': '{object}'} } - def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, shared_data=None): + def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, scope_name=None, scope_value=None, shared_data=None): super(DataProviderResult, self).__init__() self.client_providers = client_providers self.data = data self.exceptions = exceptions self.resolved_providers = resolved_providers + self.scope_name = scope_name + self.scope_value = scope_value self.shared_data = shared_data diff --git a/vsts/vsts/contributions/v4_1/models/extension_file.py b/vsts/vsts/contributions/v4_1/models/extension_file.py index ba792fd5..1b505e97 100644 --- a/vsts/vsts/contributions/v4_1/models/extension_file.py +++ b/vsts/vsts/contributions/v4_1/models/extension_file.py @@ -14,44 +14,20 @@ class ExtensionFile(Model): :param asset_type: :type asset_type: str - :param content_type: - :type content_type: str - :param file_id: - :type file_id: int - :param is_default: - :type is_default: bool - :param is_public: - :type is_public: bool :param language: :type language: str - :param short_description: - :type short_description: str :param source: :type source: str - :param version: - :type version: str """ _attribute_map = { 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, 'language': {'key': 'language', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} + 'source': {'key': 'source', 'type': 'str'} } - def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + def __init__(self, asset_type=None, language=None, source=None): super(ExtensionFile, self).__init__() self.asset_type = asset_type - self.content_type = content_type - self.file_id = file_id - self.is_default = is_default - self.is_public = is_public self.language = language - self.short_description = short_description self.source = source - self.version = version diff --git a/vsts/vsts/contributions/v4_1/models/extension_manifest.py b/vsts/vsts/contributions/v4_1/models/extension_manifest.py index 322974cb..2b8a5c1e 100644 --- a/vsts/vsts/contributions/v4_1/models/extension_manifest.py +++ b/vsts/vsts/contributions/v4_1/models/extension_manifest.py @@ -14,6 +14,8 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension @@ -30,6 +32,8 @@ class ExtensionManifest(Model): :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: number + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -38,6 +42,7 @@ class ExtensionManifest(Model): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -46,13 +51,15 @@ class ExtensionManifest(Model): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): super(ExtensionManifest, self).__init__() self.base_uri = base_uri + self.constraints = constraints self.contributions = contributions self.contribution_types = contribution_types self.demands = demands @@ -61,5 +68,6 @@ def __init__(self, base_uri=None, contributions=None, contribution_types=None, d self.language = language self.licensing = licensing self.manifest_version = manifest_version + self.restricted_to = restricted_to self.scopes = scopes self.service_instance_type = service_instance_type diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension.py b/vsts/vsts/contributions/v4_1/models/installed_extension.py index 6fca7357..af0c7ff1 100644 --- a/vsts/vsts/contributions/v4_1/models/installed_extension.py +++ b/vsts/vsts/contributions/v4_1/models/installed_extension.py @@ -14,6 +14,8 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension @@ -30,6 +32,8 @@ class InstalledExtension(ExtensionManifest): :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: number + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -58,6 +62,7 @@ class InstalledExtension(ExtensionManifest): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -66,6 +71,7 @@ class InstalledExtension(ExtensionManifest): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, 'extension_id': {'key': 'extensionId', 'type': 'str'}, @@ -80,8 +86,8 @@ class InstalledExtension(ExtensionManifest): 'version': {'key': 'version', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) self.extension_id = extension_id self.extension_name = extension_name self.files = files diff --git a/vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py b/vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py deleted file mode 100644 index 7fa2214d..00000000 --- a/vsts/vsts/contributions/v4_1/models/serialized_contribution_node.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SerializedContributionNode(Model): - """SerializedContributionNode. - - :param children: List of ids for contributions which are children to the current contribution. - :type children: list of str - :param contribution: Contribution associated with this node. - :type contribution: :class:`Contribution ` - :param parents: List of ids for contributions which are parents to the current contribution. - :type parents: list of str - """ - - _attribute_map = { - 'children': {'key': 'children', 'type': '[str]'}, - 'contribution': {'key': 'contribution', 'type': 'Contribution'}, - 'parents': {'key': 'parents', 'type': '[str]'} - } - - def __init__(self, children=None, contribution=None, parents=None): - super(SerializedContributionNode, self).__init__() - self.children = children - self.contribution = contribution - self.parents = parents diff --git a/vsts/vsts/core/v4_1/models/__init__.py b/vsts/vsts/core/v4_1/models/__init__.py index a6c2908e..9291542a 100644 --- a/vsts/vsts/core/v4_1/models/__init__.py +++ b/vsts/vsts/core/v4_1/models/__init__.py @@ -6,6 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .graph_subject_base import GraphSubjectBase from .identity_data import IdentityData from .identity_ref import IdentityRef from .json_patch_operation import JsonPatchOperation @@ -30,6 +31,7 @@ from .web_api_team_ref import WebApiTeamRef __all__ = [ + 'GraphSubjectBase', 'IdentityData', 'IdentityRef', 'JsonPatchOperation', diff --git a/vsts/vsts/core/v4_1/models/identity_ref.py b/vsts/vsts/core/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/core/v4_1/models/identity_ref.py +++ b/vsts/vsts/core/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/core/v4_1/models/web_api_team.py b/vsts/vsts/core/v4_1/models/web_api_team.py index 872de4a1..43906199 100644 --- a/vsts/vsts/core/v4_1/models/web_api_team.py +++ b/vsts/vsts/core/v4_1/models/web_api_team.py @@ -22,6 +22,10 @@ class WebApiTeam(WebApiTeamRef): :type description: str :param identity_url: Identity REST API Url to this team :type identity_url: str + :param project_id: + :type project_id: str + :param project_name: + :type project_name: str """ _attribute_map = { @@ -29,10 +33,14 @@ class WebApiTeam(WebApiTeamRef): 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, - 'identity_url': {'key': 'identityUrl', 'type': 'str'} + 'identity_url': {'key': 'identityUrl', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'project_name': {'key': 'projectName', 'type': 'str'} } - def __init__(self, id=None, name=None, url=None, description=None, identity_url=None): + def __init__(self, id=None, name=None, url=None, description=None, identity_url=None, project_id=None, project_name=None): super(WebApiTeam, self).__init__(id=id, name=name, url=url) self.description = description self.identity_url = identity_url + self.project_id = project_id + self.project_name = project_name diff --git a/vsts/vsts/dashboard/v4_0/dashboard_client.py b/vsts/vsts/dashboard/v4_0/dashboard_client.py index 89d9acfe..c7de62b2 100644 --- a/vsts/vsts/dashboard/v4_0/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_0/dashboard_client.py @@ -36,11 +36,11 @@ def create_dashboard(self, dashboard, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -67,11 +67,11 @@ def delete_dashboard(self, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -98,11 +98,11 @@ def get_dashboard(self, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -129,11 +129,11 @@ def get_dashboards(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -160,11 +160,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -194,11 +194,11 @@ def replace_dashboards(self, group, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -227,11 +227,11 @@ def create_widget(self, widget, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -262,11 +262,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -297,11 +297,11 @@ def get_widget(self, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -333,11 +333,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -371,11 +371,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/dashboard/v4_1/dashboard_client.py b/vsts/vsts/dashboard/v4_1/dashboard_client.py index 60365655..945244ed 100644 --- a/vsts/vsts/dashboard/v4_1/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_1/dashboard_client.py @@ -36,11 +36,11 @@ def create_dashboard(self, dashboard, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -67,11 +67,11 @@ def delete_dashboard(self, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -98,11 +98,11 @@ def get_dashboard(self, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -129,11 +129,11 @@ def get_dashboards(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -160,11 +160,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -194,11 +194,11 @@ def replace_dashboards(self, group, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -227,11 +227,11 @@ def create_widget(self, widget, team_context, dashboard_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -262,11 +262,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -297,11 +297,11 @@ def get_widget(self, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -333,11 +333,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -371,11 +371,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/dashboard/v4_1/models/widget.py b/vsts/vsts/dashboard/v4_1/models/widget.py index cac98ab6..3b4d3450 100644 --- a/vsts/vsts/dashboard/v4_1/models/widget.py +++ b/vsts/vsts/dashboard/v4_1/models/widget.py @@ -16,6 +16,8 @@ class Widget(Model): :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget :type allowed_sizes: list of :class:`WidgetSize ` + :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. + :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. :type artifact_id: str :param configuration_contribution_id: @@ -59,6 +61,7 @@ class Widget(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, 'artifact_id': {'key': 'artifactId', 'type': 'str'}, 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, @@ -80,10 +83,11 @@ class Widget(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): super(Widget, self).__init__() self._links = _links self.allowed_sizes = allowed_sizes + self.are_settings_blocked_for_user = are_settings_blocked_for_user self.artifact_id = artifact_id self.configuration_contribution_id = configuration_contribution_id self.configuration_contribution_relative_id = configuration_contribution_relative_id diff --git a/vsts/vsts/dashboard/v4_1/models/widget_response.py b/vsts/vsts/dashboard/v4_1/models/widget_response.py index 6e9f37e6..7a955db6 100644 --- a/vsts/vsts/dashboard/v4_1/models/widget_response.py +++ b/vsts/vsts/dashboard/v4_1/models/widget_response.py @@ -16,6 +16,8 @@ class WidgetResponse(Widget): :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget :type allowed_sizes: list of :class:`WidgetSize ` + :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. + :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. :type artifact_id: str :param configuration_contribution_id: @@ -59,6 +61,7 @@ class WidgetResponse(Widget): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, 'artifact_id': {'key': 'artifactId', 'type': 'str'}, 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, @@ -80,5 +83,5 @@ class WidgetResponse(Widget): 'url': {'key': 'url', 'type': 'str'}, } - def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): - super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) + def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, are_settings_blocked_for_user=are_settings_blocked_for_user, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) diff --git a/vsts/vsts/extension_management/v4_1/models/__init__.py b/vsts/vsts/extension_management/v4_1/models/__init__.py index b6ac34af..a7e852a0 100644 --- a/vsts/vsts/extension_management/v4_1/models/__init__.py +++ b/vsts/vsts/extension_management/v4_1/models/__init__.py @@ -31,6 +31,7 @@ from .extension_state import ExtensionState from .extension_statistic import ExtensionStatistic from .extension_version import ExtensionVersion +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .installation_target import InstallationTarget from .installed_extension import InstalledExtension @@ -40,6 +41,7 @@ from .licensing_override import LicensingOverride from .published_extension import PublishedExtension from .publisher_facts import PublisherFacts +from .reference_links import ReferenceLinks from .requested_extension import RequestedExtension from .user_extension_policy import UserExtensionPolicy @@ -69,6 +71,7 @@ 'ExtensionState', 'ExtensionStatistic', 'ExtensionVersion', + 'GraphSubjectBase', 'IdentityRef', 'InstallationTarget', 'InstalledExtension', @@ -78,6 +81,7 @@ 'LicensingOverride', 'PublishedExtension', 'PublisherFacts', + 'ReferenceLinks', 'RequestedExtension', 'UserExtensionPolicy', ] diff --git a/vsts/vsts/extension_management/v4_1/models/contribution.py b/vsts/vsts/extension_management/v4_1/models/contribution.py index e9c1b950..ff967faf 100644 --- a/vsts/vsts/extension_management/v4_1/models/contribution.py +++ b/vsts/vsts/extension_management/v4_1/models/contribution.py @@ -24,6 +24,8 @@ class Contribution(ContributionBase): :type includes: list of str :param properties: Properties/attributes of this contribution :type properties: :class:`object ` + :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). + :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -37,14 +39,16 @@ class Contribution(ContributionBase): 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'includes': {'key': 'includes', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'object'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'targets': {'key': 'targets', 'type': '[str]'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) self.constraints = constraints self.includes = includes self.properties = properties + self.restricted_to = restricted_to self.targets = targets self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py b/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py index a16f994d..0791c5dd 100644 --- a/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py +++ b/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py @@ -14,9 +14,11 @@ class ContributionConstraint(Model): :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). :type group: int + :param id: Fully qualified identifier of a shared constraint + :type id: str :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) :type inverse: bool - :param name: Name of the IContributionFilter class + :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class :type properties: :class:`object ` @@ -26,15 +28,17 @@ class ContributionConstraint(Model): _attribute_map = { 'group': {'key': 'group', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, 'inverse': {'key': 'inverse', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'object'}, 'relationships': {'key': 'relationships', 'type': '[str]'} } - def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): super(ContributionConstraint, self).__init__() self.group = group + self.id = id self.inverse = inverse self.name = name self.properties = properties diff --git a/vsts/vsts/extension_management/v4_1/models/extension_file.py b/vsts/vsts/extension_management/v4_1/models/extension_file.py index ba792fd5..1b505e97 100644 --- a/vsts/vsts/extension_management/v4_1/models/extension_file.py +++ b/vsts/vsts/extension_management/v4_1/models/extension_file.py @@ -14,44 +14,20 @@ class ExtensionFile(Model): :param asset_type: :type asset_type: str - :param content_type: - :type content_type: str - :param file_id: - :type file_id: int - :param is_default: - :type is_default: bool - :param is_public: - :type is_public: bool :param language: :type language: str - :param short_description: - :type short_description: str :param source: :type source: str - :param version: - :type version: str """ _attribute_map = { 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, 'language': {'key': 'language', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} + 'source': {'key': 'source', 'type': 'str'} } - def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + def __init__(self, asset_type=None, language=None, source=None): super(ExtensionFile, self).__init__() self.asset_type = asset_type - self.content_type = content_type - self.file_id = file_id - self.is_default = is_default - self.is_public = is_public self.language = language - self.short_description = short_description self.source = source - self.version = version diff --git a/vsts/vsts/extension_management/v4_1/models/extension_manifest.py b/vsts/vsts/extension_management/v4_1/models/extension_manifest.py index 2a25d2d8..46be29c9 100644 --- a/vsts/vsts/extension_management/v4_1/models/extension_manifest.py +++ b/vsts/vsts/extension_management/v4_1/models/extension_manifest.py @@ -14,6 +14,8 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension @@ -30,6 +32,8 @@ class ExtensionManifest(Model): :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: number + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -38,6 +42,7 @@ class ExtensionManifest(Model): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -46,13 +51,15 @@ class ExtensionManifest(Model): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): super(ExtensionManifest, self).__init__() self.base_uri = base_uri + self.constraints = constraints self.contributions = contributions self.contribution_types = contribution_types self.demands = demands @@ -61,5 +68,6 @@ def __init__(self, base_uri=None, contributions=None, contribution_types=None, d self.language = language self.licensing = licensing self.manifest_version = manifest_version + self.restricted_to = restricted_to self.scopes = scopes self.service_instance_type = service_instance_type diff --git a/vsts/vsts/extension_management/v4_1/models/identity_ref.py b/vsts/vsts/extension_management/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/extension_management/v4_1/models/identity_ref.py +++ b/vsts/vsts/extension_management/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/extension_management/v4_1/models/installation_target.py b/vsts/vsts/extension_management/v4_1/models/installation_target.py index 572aaae0..4d622d4a 100644 --- a/vsts/vsts/extension_management/v4_1/models/installation_target.py +++ b/vsts/vsts/extension_management/v4_1/models/installation_target.py @@ -12,14 +12,6 @@ class InstallationTarget(Model): """InstallationTarget. - :param max_inclusive: - :type max_inclusive: bool - :param max_version: - :type max_version: str - :param min_inclusive: - :type min_inclusive: bool - :param min_version: - :type min_version: str :param target: :type target: str :param target_version: @@ -27,19 +19,11 @@ class InstallationTarget(Model): """ _attribute_map = { - 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, - 'max_version': {'key': 'maxVersion', 'type': 'str'}, - 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, - 'min_version': {'key': 'minVersion', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'target_version': {'key': 'targetVersion', 'type': 'str'} } - def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + def __init__(self, target=None, target_version=None): super(InstallationTarget, self).__init__() - self.max_inclusive = max_inclusive - self.max_version = max_version - self.min_inclusive = min_inclusive - self.min_version = min_version self.target = target self.target_version = target_version diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension.py b/vsts/vsts/extension_management/v4_1/models/installed_extension.py index c7c69c21..27297904 100644 --- a/vsts/vsts/extension_management/v4_1/models/installed_extension.py +++ b/vsts/vsts/extension_management/v4_1/models/installed_extension.py @@ -14,6 +14,8 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension @@ -30,6 +32,8 @@ class InstalledExtension(ExtensionManifest): :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: number + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -58,6 +62,7 @@ class InstalledExtension(ExtensionManifest): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -66,6 +71,7 @@ class InstalledExtension(ExtensionManifest): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, 'extension_id': {'key': 'extensionId', 'type': 'str'}, @@ -80,8 +86,8 @@ class InstalledExtension(ExtensionManifest): 'version': {'key': 'version', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) self.extension_id = extension_id self.extension_name = extension_name self.files = files diff --git a/vsts/vsts/gallery/v4_1/gallery_client.py b/vsts/vsts/gallery/v4_1/gallery_client.py index 0053d060..42e3abb9 100644 --- a/vsts/vsts/gallery/v4_1/gallery_client.py +++ b/vsts/vsts/gallery/v4_1/gallery_client.py @@ -888,7 +888,7 @@ def send_notifications(self, notification_data): def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None): """GetPackage. - [Preview API] + [Preview API] This endpoint gets hit when you download a VSTS extension from the Web UI :param str publisher_name: :param str extension_name: :param str version: @@ -950,6 +950,70 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty query_parameters=query_parameters) return self._deserialize('object', response) + def delete_publisher_asset(self, publisher_name, asset_type=None): + """DeletePublisherAsset. + [Preview API] Delete publisher asset like logo + :param str publisher_name: Internal name of the publisher + :param str asset_type: Type of asset. Default value is 'logo'. + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if asset_type is not None: + query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') + self._send(http_method='DELETE', + location_id='21143299-34f9-4c62-8ca8-53da691192f9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_publisher_asset(self, publisher_name, asset_type=None): + """GetPublisherAsset. + [Preview API] Get publisher asset like logo as a stream + :param str publisher_name: Internal name of the publisher + :param str asset_type: Type of asset. Default value is 'logo'. + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if asset_type is not None: + query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') + response = self._send(http_method='GET', + location_id='21143299-34f9-4c62-8ca8-53da691192f9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, file_name=None): + """UpdatePublisherAsset. + [Preview API] Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values. + :param object upload_stream: Stream to upload + :param str publisher_name: Internal name of the publisher + :param str asset_type: Type of asset. Default value is 'logo'. + :param String file_name: Header to pass the filename of the uploaded data + :rtype: {str} + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if asset_type is not None: + query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='21143299-34f9-4c62-8ca8-53da691192f9', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream', + returns_collection=True) + return self._deserialize('{str}', response) + def query_publishers(self, publisher_query): """QueryPublishers. [Preview API] diff --git a/vsts/vsts/gallery/v4_1/models/__init__.py b/vsts/vsts/gallery/v4_1/models/__init__.py index d4025196..39d656a4 100644 --- a/vsts/vsts/gallery/v4_1/models/__init__.py +++ b/vsts/vsts/gallery/v4_1/models/__init__.py @@ -45,6 +45,7 @@ from .product_category import ProductCategory from .published_extension import PublishedExtension from .publisher import Publisher +from .publisher_base import PublisherBase from .publisher_facts import PublisherFacts from .publisher_filter_result import PublisherFilterResult from .publisher_query import PublisherQuery @@ -54,6 +55,7 @@ from .question import Question from .questions_result import QuestionsResult from .rating_count_per_rating import RatingCountPerRating +from .reference_links import ReferenceLinks from .response import Response from .review import Review from .review_patch import ReviewPatch @@ -104,6 +106,7 @@ 'ProductCategory', 'PublishedExtension', 'Publisher', + 'PublisherBase', 'PublisherFacts', 'PublisherFilterResult', 'PublisherQuery', @@ -113,6 +116,7 @@ 'Question', 'QuestionsResult', 'RatingCountPerRating', + 'ReferenceLinks', 'Response', 'Review', 'ReviewPatch', diff --git a/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py b/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py index 7aa65f81..695659a0 100644 --- a/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py +++ b/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py @@ -14,35 +14,17 @@ class ExtensionDraftAsset(ExtensionFile): :param asset_type: :type asset_type: str - :param content_type: - :type content_type: str - :param file_id: - :type file_id: int - :param is_default: - :type is_default: bool - :param is_public: - :type is_public: bool :param language: :type language: str - :param short_description: - :type short_description: str :param source: :type source: str - :param version: - :type version: str """ _attribute_map = { 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, 'language': {'key': 'language', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, 'source': {'key': 'source', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, } - def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): - super(ExtensionDraftAsset, self).__init__(asset_type=asset_type, content_type=content_type, file_id=file_id, is_default=is_default, is_public=is_public, language=language, short_description=short_description, source=source, version=version) + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionDraftAsset, self).__init__(asset_type=asset_type, language=language, source=source) diff --git a/vsts/vsts/gallery/v4_1/models/extension_file.py b/vsts/vsts/gallery/v4_1/models/extension_file.py index ba792fd5..1b505e97 100644 --- a/vsts/vsts/gallery/v4_1/models/extension_file.py +++ b/vsts/vsts/gallery/v4_1/models/extension_file.py @@ -14,44 +14,20 @@ class ExtensionFile(Model): :param asset_type: :type asset_type: str - :param content_type: - :type content_type: str - :param file_id: - :type file_id: int - :param is_default: - :type is_default: bool - :param is_public: - :type is_public: bool :param language: :type language: str - :param short_description: - :type short_description: str :param source: :type source: str - :param version: - :type version: str """ _attribute_map = { 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, 'language': {'key': 'language', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} + 'source': {'key': 'source', 'type': 'str'} } - def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + def __init__(self, asset_type=None, language=None, source=None): super(ExtensionFile, self).__init__() self.asset_type = asset_type - self.content_type = content_type - self.file_id = file_id - self.is_default = is_default - self.is_public = is_public self.language = language - self.short_description = short_description self.source = source - self.version = version diff --git a/vsts/vsts/gallery/v4_1/models/installation_target.py b/vsts/vsts/gallery/v4_1/models/installation_target.py index 572aaae0..4d622d4a 100644 --- a/vsts/vsts/gallery/v4_1/models/installation_target.py +++ b/vsts/vsts/gallery/v4_1/models/installation_target.py @@ -12,14 +12,6 @@ class InstallationTarget(Model): """InstallationTarget. - :param max_inclusive: - :type max_inclusive: bool - :param max_version: - :type max_version: str - :param min_inclusive: - :type min_inclusive: bool - :param min_version: - :type min_version: str :param target: :type target: str :param target_version: @@ -27,19 +19,11 @@ class InstallationTarget(Model): """ _attribute_map = { - 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, - 'max_version': {'key': 'maxVersion', 'type': 'str'}, - 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, - 'min_version': {'key': 'minVersion', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'target_version': {'key': 'targetVersion', 'type': 'str'} } - def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + def __init__(self, target=None, target_version=None): super(InstallationTarget, self).__init__() - self.max_inclusive = max_inclusive - self.max_version = max_version - self.min_inclusive = min_inclusive - self.min_version = min_version self.target = target self.target_version = target_version diff --git a/vsts/vsts/gallery/v4_1/models/publisher.py b/vsts/vsts/gallery/v4_1/models/publisher.py index 9359bba0..e9bdf8cc 100644 --- a/vsts/vsts/gallery/v4_1/models/publisher.py +++ b/vsts/vsts/gallery/v4_1/models/publisher.py @@ -6,10 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .publisher_base import PublisherBase -class Publisher(Model): +class Publisher(PublisherBase): """Publisher. :param display_name: @@ -30,6 +30,8 @@ class Publisher(Model): :type publisher_name: str :param short_description: :type short_description: str + :param _links: + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -41,17 +43,10 @@ class Publisher(Model): 'long_description': {'key': 'longDescription', 'type': 'str'}, 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'} + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} } - def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): - super(Publisher, self).__init__() - self.display_name = display_name - self.email_address = email_address - self.extensions = extensions - self.flags = flags - self.last_updated = last_updated - self.long_description = long_description - self.publisher_id = publisher_id - self.publisher_name = publisher_name - self.short_description = short_description + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, _links=None): + super(Publisher, self).__init__(display_name=display_name, email_address=email_address, extensions=extensions, flags=flags, last_updated=last_updated, long_description=long_description, publisher_id=publisher_id, publisher_name=publisher_name, short_description=short_description) + self._links = _links diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index 345923d9..ab401152 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -71,7 +71,7 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N """GetBlob. [Preview API] Get a single blob. :param str repository_id: The name or ID of the repository. - :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the “Git/Items/Get Item” endpoint. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip :param str file_name: Provide a fileName to use for a download. @@ -100,7 +100,7 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil """GetBlobContent. [Preview API] Get a single blob. :param str repository_id: The name or ID of the repository. - :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the “Git/Items/Get Item” endpoint. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip :param str file_name: Provide a fileName to use for a download. @@ -155,7 +155,7 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na """GetBlobZip. [Preview API] Get a single blob. :param str repository_id: The name or ID of the repository. - :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the “Git/Items/Get Item” endpoint. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip :param str file_name: Provide a fileName to use for a download. @@ -754,7 +754,7 @@ def update_import_request(self, import_request_to_update, project, repository_id content=content) return self._deserialize('GitImportRequest', response) - def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItem. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. @@ -766,6 +766,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: :class:` ` """ route_values = {} @@ -793,6 +794,8 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters['versionDescriptor.Version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1-preview.1', @@ -800,7 +803,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters=query_parameters) return self._deserialize('GitItem', response) - def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItemContent. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. @@ -812,6 +815,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -839,6 +843,8 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r query_parameters['versionDescriptor.Version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1-preview.1', @@ -893,7 +899,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve returns_collection=True) return self._deserialize('[GitItem]', response) - def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItemText. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. @@ -905,6 +911,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -932,6 +939,8 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu query_parameters['versionDescriptor.Version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1-preview.1', @@ -939,7 +948,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu query_parameters=query_parameters) return self._deserialize('object', response) - def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItemZip. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. @@ -951,6 +960,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -978,6 +988,8 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur query_parameters['versionDescriptor.Version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1-preview.1', @@ -2402,13 +2414,13 @@ def update_thread(self, comment_thread, repository_id, pull_request_id, thread_i content=content) return self._deserialize('GitPullRequestCommentThread', response) - def get_pull_request_work_items(self, repository_id, pull_request_id, project=None): - """GetPullRequestWorkItems. + def get_pull_request_work_item_refs(self, repository_id, pull_request_id, project=None): + """GetPullRequestWorkItemRefs. [Preview API] Retrieve a list of work items associated with a pull request. :param str repository_id: ID or name of the repository. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: [AssociatedWorkItem] + :rtype: [ResourceRef] """ route_values = {} if project is not None: @@ -2422,7 +2434,7 @@ def get_pull_request_work_items(self, repository_id, pull_request_id, project=No version='4.1-preview.1', route_values=route_values, returns_collection=True) - return self._deserialize('[AssociatedWorkItem]', response) + return self._deserialize('[ResourceRef]', response) def create_push(self, push, repository_id, project=None): """CreatePush. @@ -2515,6 +2527,59 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr returns_collection=True) return self._deserialize('[GitPush]', response) + def delete_repository_from_recycle_bin(self, project, repository_id): + """DeleteRepositoryFromRecycleBin. + [Preview API] Destroy (hard delete) a soft-deleted Git repository. + :param str project: Project ID or project name + :param str repository_id: The ID of the repository. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + self._send(http_method='DELETE', + location_id='a663da97-81db-4eb3-8b83-287670f63073', + version='4.1-preview.1', + route_values=route_values) + + def get_recycle_bin_repositories(self, project): + """GetRecycleBinRepositories. + [Preview API] Retrieve soft-deleted git repositories from the recycle bin. + :param str project: Project ID or project name + :rtype: [GitDeletedRepository] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='a663da97-81db-4eb3-8b83-287670f63073', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[GitDeletedRepository]', response) + + def restore_repository_from_recycle_bin(self, repository_details, project, repository_id): + """RestoreRepositoryFromRecycleBin. + [Preview API] Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable. + :param :class:` ` repository_details: + :param str project: Project ID or project name + :param str repository_id: The ID of the repository. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + content = self._serialize.body(repository_details, 'GitRecycleBinRepositoryDetails') + response = self._send(http_method='PATCH', + location_id='a663da97-81db-4eb3-8b83-287670f63073', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('GitRepository', response) + def get_refs(self, repository_id, project=None, filter=None, include_links=None, latest_statuses_only=None): """GetRefs. [Preview API] Queries the provided repository for its refs and returns them. diff --git a/vsts/vsts/git/v4_1/models/__init__.py b/vsts/vsts/git/v4_1/models/__init__.py index 3b8af05a..8bfc5b18 100644 --- a/vsts/vsts/git/v4_1/models/__init__.py +++ b/vsts/vsts/git/v4_1/models/__init__.py @@ -6,7 +6,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .associated_work_item import AssociatedWorkItem from .attachment import Attachment from .change import Change from .change_count_dictionary import ChangeCountDictionary @@ -66,6 +65,7 @@ from .git_push_search_criteria import GitPushSearchCriteria from .git_query_branch_stats_criteria import GitQueryBranchStatsCriteria from .git_query_commits_criteria import GitQueryCommitsCriteria +from .git_recycle_bin_repository_details import GitRecycleBinRepositoryDetails from .git_ref import GitRef from .git_ref_favorite import GitRefFavorite from .git_ref_update import GitRefUpdate @@ -88,6 +88,7 @@ from .git_user_date import GitUserDate from .git_version_descriptor import GitVersionDescriptor from .global_git_repository_key import GlobalGitRepositoryKey +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .identity_ref_with_vote import IdentityRefWithVote from .import_repository_validation import ImportRepositoryValidation @@ -105,7 +106,6 @@ from .web_api_tag_definition import WebApiTagDefinition __all__ = [ - 'AssociatedWorkItem', 'Attachment', 'Change', 'ChangeCountDictionary', @@ -165,6 +165,7 @@ 'GitPushSearchCriteria', 'GitQueryBranchStatsCriteria', 'GitQueryCommitsCriteria', + 'GitRecycleBinRepositoryDetails', 'GitRef', 'GitRefFavorite', 'GitRefUpdate', @@ -187,6 +188,7 @@ 'GitUserDate', 'GitVersionDescriptor', 'GlobalGitRepositoryKey', + 'GraphSubjectBase', 'IdentityRef', 'IdentityRefWithVote', 'ImportRepositoryValidation', diff --git a/vsts/vsts/git/v4_1/models/associated_work_item.py b/vsts/vsts/git/v4_1/models/associated_work_item.py deleted file mode 100644 index 1f491dad..00000000 --- a/vsts/vsts/git/v4_1/models/associated_work_item.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AssociatedWorkItem(Model): - """AssociatedWorkItem. - - :param assigned_to: - :type assigned_to: str - :param id: Id of associated the work item. - :type id: int - :param state: - :type state: str - :param title: - :type title: str - :param url: REST Url of the work item. - :type url: str - :param web_url: - :type web_url: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): - super(AssociatedWorkItem, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.state = state - self.title = title - self.url = url - self.web_url = web_url - self.work_item_type = work_item_type diff --git a/vsts/vsts/git/v4_1/models/git_fork_ref.py b/vsts/vsts/git/v4_1/models/git_fork_ref.py index 46f8ab5f..b5f8b9f0 100644 --- a/vsts/vsts/git/v4_1/models/git_fork_ref.py +++ b/vsts/vsts/git/v4_1/models/git_fork_ref.py @@ -14,6 +14,8 @@ class GitForkRef(GitRef): :param _links: :type _links: :class:`ReferenceLinks ` + :param creator: + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: @@ -34,6 +36,7 @@ class GitForkRef(GitRef): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'creator': {'key': 'creator', 'type': 'IdentityRef'}, 'is_locked': {'key': 'isLocked', 'type': 'bool'}, 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, 'name': {'key': 'name', 'type': 'str'}, @@ -44,6 +47,6 @@ class GitForkRef(GitRef): 'repository': {'key': 'repository', 'type': 'GitRepository'} } - def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): - super(GitForkRef, self).__init__(_links=_links, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) + def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): + super(GitForkRef, self).__init__(_links=_links, creator=creator, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) self.repository = repository diff --git a/vsts/vsts/git/v4_1/models/git_item.py b/vsts/vsts/git/v4_1/models/git_item.py index 0980208b..8b5dd309 100644 --- a/vsts/vsts/git/v4_1/models/git_item.py +++ b/vsts/vsts/git/v4_1/models/git_item.py @@ -14,6 +14,8 @@ class GitItem(ItemModel): :param _links: :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: :type content_metadata: :class:`FileContentMetadata ` :param is_folder: @@ -38,6 +40,7 @@ class GitItem(ItemModel): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -50,8 +53,8 @@ class GitItem(ItemModel): 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): - super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): + super(GitItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) self.commit_id = commit_id self.git_object_type = git_object_type self.latest_processed_change = latest_processed_change diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py b/vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py index 0dff7101..f2a86044 100644 --- a/vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py +++ b/vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py @@ -12,14 +12,18 @@ class GitPullRequestMergeOptions(Model): """GitPullRequestMergeOptions. + :param detect_rename_false_positives: + :type detect_rename_false_positives: bool :param disable_renames: If true, rename detection will not be performed during the merge. :type disable_renames: bool """ _attribute_map = { + 'detect_rename_false_positives': {'key': 'detectRenameFalsePositives', 'type': 'bool'}, 'disable_renames': {'key': 'disableRenames', 'type': 'bool'} } - def __init__(self, disable_renames=None): + def __init__(self, detect_rename_false_positives=None, disable_renames=None): super(GitPullRequestMergeOptions, self).__init__() + self.detect_rename_false_positives = detect_rename_false_positives self.disable_renames = disable_renames diff --git a/vsts/vsts/git/v4_1/models/git_ref.py b/vsts/vsts/git/v4_1/models/git_ref.py index b549bebc..3da3c2ec 100644 --- a/vsts/vsts/git/v4_1/models/git_ref.py +++ b/vsts/vsts/git/v4_1/models/git_ref.py @@ -14,6 +14,8 @@ class GitRef(Model): :param _links: :type _links: :class:`ReferenceLinks ` + :param creator: + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: @@ -32,6 +34,7 @@ class GitRef(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'creator': {'key': 'creator', 'type': 'IdentityRef'}, 'is_locked': {'key': 'isLocked', 'type': 'bool'}, 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, 'name': {'key': 'name', 'type': 'str'}, @@ -41,9 +44,10 @@ class GitRef(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): + def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): super(GitRef, self).__init__() self._links = _links + self.creator = creator self.is_locked = is_locked self.is_locked_by = is_locked_by self.name = name diff --git a/vsts/vsts/git/v4_1/models/identity_ref.py b/vsts/vsts/git/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/git/v4_1/models/identity_ref.py +++ b/vsts/vsts/git/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/git/v4_1/models/identity_ref_with_vote.py b/vsts/vsts/git/v4_1/models/identity_ref_with_vote.py index 2830b26b..30be999e 100644 --- a/vsts/vsts/git/v4_1/models/identity_ref_with_vote.py +++ b/vsts/vsts/git/v4_1/models/identity_ref_with_vote.py @@ -12,10 +12,16 @@ class IdentityRefWithVote(IdentityRef): """IdentityRefWithVote. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,8 +36,6 @@ class IdentityRefWithVote(IdentityRef): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str :param is_required: Indicates if this is a required reviewer for this pull request.
Branches can have policies that require particular reviewers are required for pull requests. :type is_required: bool :param reviewer_url: URL to retrieve information about this identity @@ -43,8 +47,11 @@ class IdentityRefWithVote(IdentityRef): """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, @@ -52,15 +59,14 @@ class IdentityRefWithVote(IdentityRef): 'is_container': {'key': 'isContainer', 'type': 'bool'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, 'is_required': {'key': 'isRequired', 'type': 'bool'}, 'reviewer_url': {'key': 'reviewerUrl', 'type': 'str'}, 'vote': {'key': 'vote', 'type': 'int'}, 'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): - super(IdentityRefWithVote, self).__init__(directory_alias=directory_alias, display_name=display_name, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) + 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, profile_url=None, unique_name=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): + super(IdentityRefWithVote, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) self.is_required = is_required self.reviewer_url = reviewer_url self.vote = vote diff --git a/vsts/vsts/git/v4_1/models/item_model.py b/vsts/vsts/git/v4_1/models/item_model.py index 2bc23b37..f77a2638 100644 --- a/vsts/vsts/git/v4_1/models/item_model.py +++ b/vsts/vsts/git/v4_1/models/item_model.py @@ -14,6 +14,8 @@ class ItemModel(Model): :param _links: :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: :type content_metadata: :class:`FileContentMetadata ` :param is_folder: @@ -28,6 +30,7 @@ class ItemModel(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -35,9 +38,10 @@ class ItemModel(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): super(ItemModel, self).__init__() self._links = _links + self.content = content self.content_metadata = content_metadata self.is_folder = is_folder self.is_sym_link = is_sym_link diff --git a/vsts/vsts/identity/v4_1/models/__init__.py b/vsts/vsts/identity/v4_1/models/__init__.py index 1580aa8a..08a68e1a 100644 --- a/vsts/vsts/identity/v4_1/models/__init__.py +++ b/vsts/vsts/identity/v4_1/models/__init__.py @@ -14,6 +14,7 @@ from .framework_identity_info import FrameworkIdentityInfo from .group_membership import GroupMembership from .identity import Identity +from .identity_base import IdentityBase from .identity_batch_info import IdentityBatchInfo from .identity_scope import IdentityScope from .identity_self import IdentitySelf @@ -32,6 +33,7 @@ 'FrameworkIdentityInfo', 'GroupMembership', 'Identity', + 'IdentityBase', 'IdentityBatchInfo', 'IdentityScope', 'IdentitySelf', diff --git a/vsts/vsts/identity/v4_1/models/identity.py b/vsts/vsts/identity/v4_1/models/identity.py index 2622bc22..018ffb12 100644 --- a/vsts/vsts/identity/v4_1/models/identity.py +++ b/vsts/vsts/identity/v4_1/models/identity.py @@ -6,10 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .identity_base import IdentityBase -class Identity(Model): +class Identity(IdentityBase): """Identity. :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) @@ -59,23 +59,8 @@ class Identity(Model): 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, } def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__() - self.custom_display_name = custom_display_name - self.descriptor = descriptor - self.id = id - self.is_active = is_active - self.is_container = is_container - self.master_id = master_id - self.member_ids = member_ids - self.member_of = member_of - self.members = members - self.meta_type_id = meta_type_id - self.properties = properties - self.provider_display_name = provider_display_name - self.resource_version = resource_version - self.subject_descriptor = subject_descriptor - self.unique_user_id = unique_user_id + super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py index a844d977..82b513ad 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -81,11 +81,12 @@ def get_client_rights(self, right_name=None, product_version=None, edition=None, query_parameters=query_parameters) return self._deserialize('ClientRightsContainer', response) - def assign_available_account_entitlement(self, user_id, dont_notify_user=None): + def assign_available_account_entitlement(self, user_id, dont_notify_user=None, origin=None): """AssignAvailableAccountEntitlement. [Preview API] Assign an available entitilement to a user :param str user_id: The user to which to assign the entitilement :param bool dont_notify_user: + :param str origin: :rtype: :class:` ` """ query_parameters = {} @@ -93,6 +94,8 @@ def assign_available_account_entitlement(self, user_id, dont_notify_user=None): query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') if dont_notify_user is not None: query_parameters['dontNotifyUser'] = self._serialize.query('dont_notify_user', dont_notify_user, 'bool') + if origin is not None: + query_parameters['origin'] = self._serialize.query('origin', origin, 'str') response = self._send(http_method='POST', location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', version='4.1-preview.1', @@ -128,12 +131,13 @@ def get_account_entitlements(self, top=None, skip=None): returns_collection=True) return self._deserialize('[AccountEntitlement]', response) - def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=None): + def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=None, origin=None): """AssignAccountEntitlementForUser. [Preview API] Assign an explicit account entitlement :param :class:` ` body: The update model for the entitlement :param str user_id: The id of the user :param bool dont_notify_user: + :param str origin: :rtype: :class:` ` """ route_values = {} @@ -142,6 +146,8 @@ def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=No query_parameters = {} if dont_notify_user is not None: query_parameters['dontNotifyUser'] = self._serialize.query('dont_notify_user', dont_notify_user, 'bool') + if origin is not None: + query_parameters['origin'] = self._serialize.query('origin', origin, 'str') content = self._serialize.body(body, 'AccountEntitlementUpdateModel') response = self._send(http_method='PUT', location_id='6490e566-b299-49a7-a4e4-28749752581f', @@ -395,19 +401,3 @@ def get_account_licenses_usage(self): returns_collection=True) return self._deserialize('[AccountLicenseUsage]', response) - def get_usage_rights(self, right_name=None): - """GetUsageRights. - [Preview API] - :param str right_name: - :rtype: [IUsageRight] - """ - route_values = {} - if right_name is not None: - route_values['rightName'] = self._serialize.url('right_name', right_name, 'str') - response = self._send(http_method='GET', - location_id='d09ac573-58fe-4948-af97-793db40a7e16', - version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IUsageRight]', response) - diff --git a/vsts/vsts/licensing/v4_1/models/__init__.py b/vsts/vsts/licensing/v4_1/models/__init__.py index f915040d..fcbb5647 100644 --- a/vsts/vsts/licensing/v4_1/models/__init__.py +++ b/vsts/vsts/licensing/v4_1/models/__init__.py @@ -19,10 +19,11 @@ from .extension_operation_result import ExtensionOperationResult from .extension_rights_result import ExtensionRightsResult from .extension_source import ExtensionSource +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef -from .iUsage_right import IUsageRight from .license import License from .msdn_entitlement import MsdnEntitlement +from .reference_links import ReferenceLinks __all__ = [ 'AccountEntitlement', @@ -38,8 +39,9 @@ 'ExtensionOperationResult', 'ExtensionRightsResult', 'ExtensionSource', + 'GraphSubjectBase', 'IdentityRef', - 'IUsageRight', 'License', 'MsdnEntitlement', + 'ReferenceLinks', ] diff --git a/vsts/vsts/licensing/v4_1/models/account_entitlement.py b/vsts/vsts/licensing/v4_1/models/account_entitlement.py index 907ffad1..f66f89da 100644 --- a/vsts/vsts/licensing/v4_1/models/account_entitlement.py +++ b/vsts/vsts/licensing/v4_1/models/account_entitlement.py @@ -22,6 +22,8 @@ class AccountEntitlement(Model): :type last_accessed_date: datetime :param license: :type license: :class:`License ` + :param origin: Licensing origin + :type origin: object :param rights: The computed rights of this user in the account. :type rights: :class:`AccountRights ` :param status: The status of the user in the account @@ -38,19 +40,21 @@ class AccountEntitlement(Model): 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, 'license': {'key': 'license', 'type': 'License'}, + 'origin': {'key': 'origin', 'type': 'object'}, 'rights': {'key': 'rights', 'type': 'AccountRights'}, 'status': {'key': 'status', 'type': 'object'}, 'user': {'key': 'user', 'type': 'IdentityRef'}, 'user_id': {'key': 'userId', 'type': 'str'} } - def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, rights=None, status=None, user=None, user_id=None): + def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, origin=None, rights=None, status=None, user=None, user_id=None): super(AccountEntitlement, self).__init__() self.account_id = account_id self.assignment_date = assignment_date self.assignment_source = assignment_source self.last_accessed_date = last_accessed_date self.license = license + self.origin = origin self.rights = rights self.status = status self.user = user diff --git a/vsts/vsts/licensing/v4_1/models/iUsage_right.py b/vsts/vsts/licensing/v4_1/models/iUsage_right.py deleted file mode 100644 index d35c93c7..00000000 --- a/vsts/vsts/licensing/v4_1/models/iUsage_right.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IUsageRight(Model): - """IUsageRight. - - :param attributes: Rights data - :type attributes: dict - :param expiration_date: Rights expiration - :type expiration_date: datetime - :param name: Name, uniquely identifying a usage right - :type name: str - :param version: Version - :type version: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, attributes=None, expiration_date=None, name=None, version=None): - super(IUsageRight, self).__init__() - self.attributes = attributes - self.expiration_date = expiration_date - self.name = name - self.version = version diff --git a/vsts/vsts/licensing/v4_1/models/identity_ref.py b/vsts/vsts/licensing/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/licensing/v4_1/models/identity_ref.py +++ b/vsts/vsts/licensing/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/location/v4_1/location_client.py b/vsts/vsts/location/v4_1/location_client.py index a284b28f..bef06422 100644 --- a/vsts/vsts/location/v4_1/location_client.py +++ b/vsts/vsts/location/v4_1/location_client.py @@ -46,29 +46,81 @@ def get_connection_data(self, connect_options=None, last_change_id=None, last_ch query_parameters=query_parameters) return self._deserialize('ConnectionData', response) - def get_resource_area(self, area_id): + def get_resource_area(self, area_id, organization_name=None, account_name=None): """GetResourceArea. [Preview API] :param str area_id: + :param str organization_name: + :param str account_name: :rtype: :class:` ` """ route_values = {} if area_id is not None: route_values['areaId'] = self._serialize.url('area_id', area_id, 'str') + query_parameters = {} + if organization_name is not None: + query_parameters['organizationName'] = self._serialize.query('organization_name', organization_name, 'str') + if account_name is not None: + query_parameters['accountName'] = self._serialize.query('account_name', account_name, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', version='4.1-preview.1', - route_values=route_values) + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('ResourceAreaInfo', response) - def get_resource_areas(self): + def get_resource_area_by_host(self, area_id, host_id): + """GetResourceAreaByHost. + [Preview API] + :param str area_id: + :param str host_id: + :rtype: :class:` ` + """ + route_values = {} + if area_id is not None: + route_values['areaId'] = self._serialize.url('area_id', area_id, 'str') + query_parameters = {} + if host_id is not None: + query_parameters['hostId'] = self._serialize.query('host_id', host_id, 'str') + response = self._send(http_method='GET', + location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ResourceAreaInfo', response) + + def get_resource_areas(self, organization_name=None, account_name=None): """GetResourceAreas. [Preview API] + :param str organization_name: + :param str account_name: + :rtype: [ResourceAreaInfo] + """ + query_parameters = {} + if organization_name is not None: + query_parameters['organizationName'] = self._serialize.query('organization_name', organization_name, 'str') + if account_name is not None: + query_parameters['accountName'] = self._serialize.query('account_name', account_name, 'str') + response = self._send(http_method='GET', + location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ResourceAreaInfo]', response) + + def get_resource_areas_by_host(self, host_id): + """GetResourceAreasByHost. + [Preview API] + :param str host_id: :rtype: [ResourceAreaInfo] """ + query_parameters = {} + if host_id is not None: + query_parameters['hostId'] = self._serialize.query('host_id', host_id, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', version='4.1-preview.1', + query_parameters=query_parameters, returns_collection=True) return self._deserialize('[ResourceAreaInfo]', response) diff --git a/vsts/vsts/location/v4_1/models/__init__.py b/vsts/vsts/location/v4_1/models/__init__.py index dbde91d7..61ed73d1 100644 --- a/vsts/vsts/location/v4_1/models/__init__.py +++ b/vsts/vsts/location/v4_1/models/__init__.py @@ -9,6 +9,7 @@ from .access_mapping import AccessMapping from .connection_data import ConnectionData from .identity import Identity +from .identity_base import IdentityBase from .location_mapping import LocationMapping from .location_service_data import LocationServiceData from .resource_area_info import ResourceAreaInfo @@ -18,6 +19,7 @@ 'AccessMapping', 'ConnectionData', 'Identity', + 'IdentityBase', 'LocationMapping', 'LocationServiceData', 'ResourceAreaInfo', diff --git a/vsts/vsts/location/v4_1/models/identity.py b/vsts/vsts/location/v4_1/models/identity.py index 65172c4a..96628e6c 100644 --- a/vsts/vsts/location/v4_1/models/identity.py +++ b/vsts/vsts/location/v4_1/models/identity.py @@ -6,10 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .identity_base import IdentityBase -class Identity(Model): +class Identity(IdentityBase): """Identity. :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) @@ -59,23 +59,8 @@ class Identity(Model): 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, } def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__() - self.custom_display_name = custom_display_name - self.descriptor = descriptor - self.id = id - self.is_active = is_active - self.is_container = is_container - self.master_id = master_id - self.member_ids = member_ids - self.member_of = member_of - self.members = members - self.meta_type_id = meta_type_id - self.properties = properties - self.provider_display_name = provider_display_name - self.resource_version = resource_version - self.subject_descriptor = subject_descriptor - self.unique_user_id = unique_user_id + super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) diff --git a/vsts/vsts/notification/v4_1/models/__init__.py b/vsts/vsts/notification/v4_1/models/__init__.py index 56c91337..f51b3477 100644 --- a/vsts/vsts/notification/v4_1/models/__init__.py +++ b/vsts/vsts/notification/v4_1/models/__init__.py @@ -17,13 +17,16 @@ from .expression_filter_model import ExpressionFilterModel from .field_input_values import FieldInputValues from .field_values_query import FieldValuesQuery +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef +from .iNotification_diagnostic_log import INotificationDiagnosticLog from .input_value import InputValue from .input_values import InputValues from .input_values_error import InputValuesError from .input_values_query import InputValuesQuery from .iSubscription_channel import ISubscriptionChannel from .iSubscription_filter import ISubscriptionFilter +from .notification_diagnostic_log_message import NotificationDiagnosticLogMessage from .notification_event_field import NotificationEventField from .notification_event_field_operator import NotificationEventFieldOperator from .notification_event_field_type import NotificationEventFieldType @@ -47,6 +50,7 @@ from .reference_links import ReferenceLinks from .subscription_admin_settings import SubscriptionAdminSettings from .subscription_channel_with_address import SubscriptionChannelWithAddress +from .subscription_diagnostics import SubscriptionDiagnostics from .subscription_evaluation_request import SubscriptionEvaluationRequest from .subscription_evaluation_result import SubscriptionEvaluationResult from .subscription_evaluation_settings import SubscriptionEvaluationSettings @@ -54,7 +58,10 @@ from .subscription_query import SubscriptionQuery from .subscription_query_condition import SubscriptionQueryCondition from .subscription_scope import SubscriptionScope +from .subscription_tracing import SubscriptionTracing from .subscription_user_settings import SubscriptionUserSettings +from .update_subscripiton_diagnostics_parameters import UpdateSubscripitonDiagnosticsParameters +from .update_subscripiton_tracing_parameters import UpdateSubscripitonTracingParameters from .value_definition import ValueDefinition from .vss_notification_event import VssNotificationEvent @@ -70,13 +77,16 @@ 'ExpressionFilterModel', 'FieldInputValues', 'FieldValuesQuery', + 'GraphSubjectBase', 'IdentityRef', + 'INotificationDiagnosticLog', 'InputValue', 'InputValues', 'InputValuesError', 'InputValuesQuery', 'ISubscriptionChannel', 'ISubscriptionFilter', + 'NotificationDiagnosticLogMessage', 'NotificationEventField', 'NotificationEventFieldOperator', 'NotificationEventFieldType', @@ -100,6 +110,7 @@ 'ReferenceLinks', 'SubscriptionAdminSettings', 'SubscriptionChannelWithAddress', + 'SubscriptionDiagnostics', 'SubscriptionEvaluationRequest', 'SubscriptionEvaluationResult', 'SubscriptionEvaluationSettings', @@ -107,7 +118,10 @@ 'SubscriptionQuery', 'SubscriptionQueryCondition', 'SubscriptionScope', + 'SubscriptionTracing', 'SubscriptionUserSettings', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', 'ValueDefinition', 'VssNotificationEvent', ] diff --git a/vsts/vsts/notification/v4_1/models/identity_ref.py b/vsts/vsts/notification/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/notification/v4_1/models/identity_ref.py +++ b/vsts/vsts/notification/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription.py b/vsts/vsts/notification/v4_1/models/notification_subscription.py index 6ef3c8be..46030af2 100644 --- a/vsts/vsts/notification/v4_1/models/notification_subscription.py +++ b/vsts/vsts/notification/v4_1/models/notification_subscription.py @@ -20,6 +20,8 @@ class NotificationSubscription(Model): :type channel: :class:`ISubscriptionChannel ` :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str + :param diagnostics: Diagnostics for this subscription. + :type diagnostics: :class:`SubscriptionDiagnostics ` :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts :type extended_properties: dict :param filter: Matching criteria for the subscription. ExpressionFilter @@ -53,6 +55,7 @@ class NotificationSubscription(Model): 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, 'description': {'key': 'description', 'type': 'str'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'SubscriptionDiagnostics'}, 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, 'flags': {'key': 'flags', 'type': 'object'}, @@ -68,12 +71,13 @@ class NotificationSubscription(Model): 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} } - def __init__(self, _links=None, admin_settings=None, channel=None, description=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): + def __init__(self, _links=None, admin_settings=None, channel=None, description=None, diagnostics=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): super(NotificationSubscription, self).__init__() self._links = _links self.admin_settings = admin_settings self.channel = channel self.description = description + self.diagnostics = diagnostics self.extended_properties = extended_properties self.filter = filter self.flags = flags diff --git a/vsts/vsts/notification/v4_1/notification_client.py b/vsts/vsts/notification/v4_1/notification_client.py index b5eae874..64f104c0 100644 --- a/vsts/vsts/notification/v4_1/notification_client.py +++ b/vsts/vsts/notification/v4_1/notification_client.py @@ -25,6 +25,79 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = None + def list_logs(self, source, entry_id=None, start_time=None, end_time=None): + """ListLogs. + [Preview API] List diagnostic logs this service. + :param str source: + :param str entry_id: + :param datetime start_time: + :param datetime end_time: + :rtype: [INotificationDiagnosticLog] + """ + route_values = {} + if source is not None: + route_values['source'] = self._serialize.url('source', source, 'str') + if entry_id is not None: + route_values['entryId'] = self._serialize.url('entry_id', entry_id, 'str') + query_parameters = {} + if start_time is not None: + query_parameters['startTime'] = self._serialize.query('start_time', start_time, 'iso-8601') + if end_time is not None: + query_parameters['endTime'] = self._serialize.query('end_time', end_time, 'iso-8601') + response = self._send(http_method='GET', + location_id='991842f3-eb16-4aea-ac81-81353ef2b75c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[INotificationDiagnosticLog]', response) + + def get_subscription_diagnostics(self, subscription_id): + """GetSubscriptionDiagnostics. + [Preview API] + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + response = self._send(http_method='GET', + location_id='20f1929d-4be7-4c2e-a74e-d47640ff3418', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('SubscriptionDiagnostics', response) + + def update_subscription_diagnostics(self, update_parameters, subscription_id): + """UpdateSubscriptionDiagnostics. + [Preview API] + :param :class:` ` update_parameters: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(update_parameters, 'UpdateSubscripitonDiagnosticsParameters') + response = self._send(http_method='PUT', + location_id='20f1929d-4be7-4c2e-a74e-d47640ff3418', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SubscriptionDiagnostics', response) + + def publish_event(self, notification_event): + """PublishEvent. + [Preview API] Publish an event. + :param :class:` ` notification_event: + :rtype: :class:` ` + """ + content = self._serialize.body(notification_event, 'VssNotificationEvent') + response = self._send(http_method='POST', + location_id='14c57b7a-c0e6-4555-9f51-e067188fdd8e', + version='4.1-preview.1', + content=content) + return self._deserialize('VssNotificationEvent', response) + def get_event_type(self, event_type): """GetEventType. [Preview API] Get a specific event type. diff --git a/vsts/vsts/policy/v4_1/models/__init__.py b/vsts/vsts/policy/v4_1/models/__init__.py index 15df3183..a1e4a4bc 100644 --- a/vsts/vsts/policy/v4_1/models/__init__.py +++ b/vsts/vsts/policy/v4_1/models/__init__.py @@ -6,6 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .policy_configuration import PolicyConfiguration from .policy_configuration_ref import PolicyConfigurationRef @@ -16,6 +17,7 @@ from .versioned_policy_configuration_ref import VersionedPolicyConfigurationRef __all__ = [ + 'GraphSubjectBase', 'IdentityRef', 'PolicyConfiguration', 'PolicyConfigurationRef', diff --git a/vsts/vsts/policy/v4_1/models/identity_ref.py b/vsts/vsts/policy/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/policy/v4_1/models/identity_ref.py +++ b/vsts/vsts/policy/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/policy/v4_1/policy_client.py b/vsts/vsts/policy/v4_1/policy_client.py index a317a76a..ad21d1b6 100644 --- a/vsts/vsts/policy/v4_1/policy_client.py +++ b/vsts/vsts/policy/v4_1/policy_client.py @@ -80,11 +80,12 @@ def get_policy_configuration(self, project, configuration_id): route_values=route_values) return self._deserialize('PolicyConfiguration', response) - def get_policy_configurations(self, project, scope=None): + def get_policy_configurations(self, project, scope=None, policy_type=None): """GetPolicyConfigurations. [Preview API] Get a list of policy configurations in a project. :param str project: Project ID or project name :param str scope: The scope on which a subset of policies is applied. + :param str policy_type: Filter returned policies to only this type :rtype: [PolicyConfiguration] """ route_values = {} @@ -93,6 +94,8 @@ def get_policy_configurations(self, project, scope=None): query_parameters = {} if scope is not None: query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + if policy_type is not None: + query_parameters['policyType'] = self._serialize.query('policy_type', policy_type, 'str') response = self._send(http_method='GET', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', version='4.1-preview.1', diff --git a/vsts/vsts/project_analysis/v4_1/models/__init__.py b/vsts/vsts/project_analysis/v4_1/models/__init__.py index 58847dd7..34df4d66 100644 --- a/vsts/vsts/project_analysis/v4_1/models/__init__.py +++ b/vsts/vsts/project_analysis/v4_1/models/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .code_change_trend_item import CodeChangeTrendItem +from .language_metrics_secured_object import LanguageMetricsSecuredObject from .language_statistics import LanguageStatistics from .project_activity_metrics import ProjectActivityMetrics from .project_language_analytics import ProjectLanguageAnalytics @@ -15,6 +16,7 @@ __all__ = [ 'CodeChangeTrendItem', + 'LanguageMetricsSecuredObject', 'LanguageStatistics', 'ProjectActivityMetrics', 'ProjectLanguageAnalytics', diff --git a/vsts/vsts/project_analysis/v4_1/models/language_statistics.py b/vsts/vsts/project_analysis/v4_1/models/language_statistics.py index 517f0038..2f777576 100644 --- a/vsts/vsts/project_analysis/v4_1/models/language_statistics.py +++ b/vsts/vsts/project_analysis/v4_1/models/language_statistics.py @@ -6,12 +6,18 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .language_metrics_secured_object import LanguageMetricsSecuredObject -class LanguageStatistics(Model): +class LanguageStatistics(LanguageMetricsSecuredObject): """LanguageStatistics. + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int :param bytes: :type bytes: long :param files: @@ -25,6 +31,9 @@ class LanguageStatistics(Model): """ _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, 'bytes': {'key': 'bytes', 'type': 'long'}, 'files': {'key': 'files', 'type': 'int'}, 'files_percentage': {'key': 'filesPercentage', 'type': 'number'}, @@ -32,8 +41,8 @@ class LanguageStatistics(Model): 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, bytes=None, files=None, files_percentage=None, language_percentage=None, name=None): - super(LanguageStatistics, self).__init__() + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, bytes=None, files=None, files_percentage=None, language_percentage=None, name=None): + super(LanguageStatistics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) self.bytes = bytes self.files = files self.files_percentage = files_percentage diff --git a/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py b/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py index bf08c8de..284e8f99 100644 --- a/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py +++ b/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py @@ -6,12 +6,18 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .language_metrics_secured_object import LanguageMetricsSecuredObject -class ProjectLanguageAnalytics(Model): +class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): """ProjectLanguageAnalytics. + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int :param id: :type id: str :param language_breakdown: @@ -25,6 +31,9 @@ class ProjectLanguageAnalytics(Model): """ _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, 'id': {'key': 'id', 'type': 'str'}, 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, @@ -32,8 +41,8 @@ class ProjectLanguageAnalytics(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): - super(ProjectLanguageAnalytics, self).__init__() + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): + super(ProjectLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) self.id = id self.language_breakdown = language_breakdown self.repository_language_analytics = repository_language_analytics diff --git a/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py b/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py index 6d3cecbe..52799cc6 100644 --- a/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py +++ b/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py @@ -6,12 +6,18 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .language_metrics_secured_object import LanguageMetricsSecuredObject -class RepositoryLanguageAnalytics(Model): +class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): """RepositoryLanguageAnalytics. + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int :param id: :type id: str :param language_breakdown: @@ -25,6 +31,9 @@ class RepositoryLanguageAnalytics(Model): """ _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, 'id': {'key': 'id', 'type': 'str'}, 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, 'name': {'key': 'name', 'type': 'str'}, @@ -32,8 +41,8 @@ class RepositoryLanguageAnalytics(Model): 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} } - def __init__(self, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): - super(RepositoryLanguageAnalytics, self).__init__() + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): + super(RepositoryLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) self.id = id self.language_breakdown = language_breakdown self.name = name diff --git a/vsts/vsts/release/v4_1/models/__init__.py b/vsts/vsts/release/v4_1/models/__init__.py index 5bcb7df2..252e58aa 100644 --- a/vsts/vsts/release/v4_1/models/__init__.py +++ b/vsts/vsts/release/v4_1/models/__init__.py @@ -33,6 +33,7 @@ from .environment_retention_policy import EnvironmentRetentionPolicy from .favorite_item import FavoriteItem from .folder import Folder +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .input_descriptor import InputDescriptor from .input_validation import InputValidation @@ -45,6 +46,7 @@ from .manual_intervention import ManualIntervention from .manual_intervention_update_metadata import ManualInterventionUpdateMetadata from .metric import Metric +from .pipeline_process import PipelineProcess from .process_parameters import ProcessParameters from .project_reference import ProjectReference from .queued_release_data import QueuedReleaseData @@ -80,6 +82,7 @@ from .release_shallow_reference import ReleaseShallowReference from .release_start_metadata import ReleaseStartMetadata from .release_task import ReleaseTask +from .release_task_attachment import ReleaseTaskAttachment from .release_trigger_base import ReleaseTriggerBase from .release_update_metadata import ReleaseUpdateMetadata from .release_work_item_ref import ReleaseWorkItemRef @@ -123,6 +126,7 @@ 'EnvironmentRetentionPolicy', 'FavoriteItem', 'Folder', + 'GraphSubjectBase', 'IdentityRef', 'InputDescriptor', 'InputValidation', @@ -135,6 +139,7 @@ 'ManualIntervention', 'ManualInterventionUpdateMetadata', 'Metric', + 'PipelineProcess', 'ProcessParameters', 'ProjectReference', 'QueuedReleaseData', @@ -170,6 +175,7 @@ 'ReleaseShallowReference', 'ReleaseStartMetadata', 'ReleaseTask', + 'ReleaseTaskAttachment', 'ReleaseTriggerBase', 'ReleaseUpdateMetadata', 'ReleaseWorkItemRef', diff --git a/vsts/vsts/release/v4_1/models/artifact_type_definition.py b/vsts/vsts/release/v4_1/models/artifact_type_definition.py index 0c34624f..c5afc1c1 100644 --- a/vsts/vsts/release/v4_1/models/artifact_type_definition.py +++ b/vsts/vsts/release/v4_1/models/artifact_type_definition.py @@ -14,6 +14,8 @@ class ArtifactTypeDefinition(Model): :param display_name: :type display_name: str + :param endpoint_type_id: + :type endpoint_type_id: str :param input_descriptors: :type input_descriptors: list of :class:`InputDescriptor ` :param name: @@ -24,14 +26,16 @@ class ArtifactTypeDefinition(Model): _attribute_map = { 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_type_id': {'key': 'endpointTypeId', 'type': 'str'}, 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, 'name': {'key': 'name', 'type': 'str'}, 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} } - def __init__(self, display_name=None, input_descriptors=None, name=None, unique_source_identifier=None): + def __init__(self, display_name=None, endpoint_type_id=None, input_descriptors=None, name=None, unique_source_identifier=None): super(ArtifactTypeDefinition, self).__init__() self.display_name = display_name + self.endpoint_type_id = endpoint_type_id self.input_descriptors = input_descriptors self.name = name self.unique_source_identifier = unique_source_identifier diff --git a/vsts/vsts/release/v4_1/models/authorization_header.py b/vsts/vsts/release/v4_1/models/authorization_header.py index 015e6775..337b6013 100644 --- a/vsts/vsts/release/v4_1/models/authorization_header.py +++ b/vsts/vsts/release/v4_1/models/authorization_header.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class AuthorizationHeader(Model): +class AuthorizationHeader(BaseSecuredObject): """AuthorizationHeader. :param name: diff --git a/vsts/vsts/release/v4_1/models/build_version.py b/vsts/vsts/release/v4_1/models/build_version.py index 519cef9b..945389d1 100644 --- a/vsts/vsts/release/v4_1/models/build_version.py +++ b/vsts/vsts/release/v4_1/models/build_version.py @@ -12,12 +12,16 @@ class BuildVersion(Model): """BuildVersion. + :param commit_message: + :type commit_message: str :param id: :type id: str :param name: :type name: str :param source_branch: :type source_branch: str + :param source_pull_request_id: PullRequestId or Commit Id for the Pull Request for which the release will publish status + :type source_pull_request_id: str :param source_repository_id: :type source_repository_id: str :param source_repository_type: @@ -27,19 +31,23 @@ class BuildVersion(Model): """ _attribute_map = { + 'commit_message': {'key': 'commitMessage', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_pull_request_id': {'key': 'sourcePullRequestId', 'type': 'str'}, 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, 'source_version': {'key': 'sourceVersion', 'type': 'str'} } - def __init__(self, id=None, name=None, source_branch=None, source_repository_id=None, source_repository_type=None, source_version=None): + def __init__(self, commit_message=None, id=None, name=None, source_branch=None, source_pull_request_id=None, source_repository_id=None, source_repository_type=None, source_version=None): super(BuildVersion, self).__init__() + self.commit_message = commit_message self.id = id self.name = name self.source_branch = source_branch + self.source_pull_request_id = source_pull_request_id self.source_repository_id = source_repository_id self.source_repository_type = source_repository_type self.source_version = source_version diff --git a/vsts/vsts/release/v4_1/models/data_source_binding_base.py b/vsts/vsts/release/v4_1/models/data_source_binding_base.py index fe92a446..8d11fcdf 100644 --- a/vsts/vsts/release/v4_1/models/data_source_binding_base.py +++ b/vsts/vsts/release/v4_1/models/data_source_binding_base.py @@ -6,27 +6,26 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class DataSourceBindingBase(Model): +class DataSourceBindingBase(BaseSecuredObject): """DataSourceBindingBase. - :param data_source_name: + :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str - :param endpoint_id: + :param endpoint_id: Gets or sets the endpoint Id. :type endpoint_id: str - :param endpoint_url: + :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str - :param headers: + :param headers: Gets or sets the authorization headers. :type headers: list of :class:`AuthorizationHeader ` - :param parameters: + :param parameters: Gets or sets the parameters for the data source. :type parameters: dict - :param result_selector: + :param result_selector: Gets or sets the result selector. :type result_selector: str - :param result_template: + :param result_template: Gets or sets the result template. :type result_template: str - :param target: + :param target: Gets or sets the target of the data source. :type target: str """ diff --git a/vsts/vsts/release/v4_1/models/deployment.py b/vsts/vsts/release/v4_1/models/deployment.py index 834806a2..8cb4a228 100644 --- a/vsts/vsts/release/v4_1/models/deployment.py +++ b/vsts/vsts/release/v4_1/models/deployment.py @@ -16,6 +16,8 @@ class Deployment(Model): :type _links: :class:`ReferenceLinks ` :param attempt: Gets attempt number. :type attempt: int + :param completed_on: Gets the date on which deployment is complete. + :type completed_on: datetime :param conditions: Gets the list of condition associated with deployment. :type conditions: list of :class:`Condition ` :param definition_environment_id: Gets release definition environment id. @@ -57,6 +59,7 @@ class Deployment(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'attempt': {'key': 'attempt', 'type': 'int'}, + 'completed_on': {'key': 'completedOn', 'type': 'iso-8601'}, 'conditions': {'key': 'conditions', 'type': '[Condition]'}, 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, @@ -77,10 +80,11 @@ class Deployment(Model): 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} } - def __init__(self, _links=None, attempt=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): + def __init__(self, _links=None, attempt=None, completed_on=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): super(Deployment, self).__init__() self._links = _links self.attempt = attempt + self.completed_on = completed_on self.conditions = conditions self.definition_environment_id = definition_environment_id self.deployment_status = deployment_status diff --git a/vsts/vsts/release/v4_1/models/deployment_attempt.py b/vsts/vsts/release/v4_1/models/deployment_attempt.py index 0fc1fd35..9f2bf5e1 100644 --- a/vsts/vsts/release/v4_1/models/deployment_attempt.py +++ b/vsts/vsts/release/v4_1/models/deployment_attempt.py @@ -22,6 +22,8 @@ class DeploymentAttempt(Model): :type has_started: bool :param id: :type id: int + :param issues: All the issues related to the deployment + :type issues: list of :class:`Issue ` :param job: :type job: :class:`ReleaseTask ` :param last_modified_by: @@ -58,6 +60,7 @@ class DeploymentAttempt(Model): 'error_log': {'key': 'errorLog', 'type': 'str'}, 'has_started': {'key': 'hasStarted', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, 'job': {'key': 'job', 'type': 'ReleaseTask'}, 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, @@ -74,13 +77,14 @@ class DeploymentAttempt(Model): 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} } - def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): + def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, issues=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): super(DeploymentAttempt, self).__init__() self.attempt = attempt self.deployment_id = deployment_id self.error_log = error_log self.has_started = has_started self.id = id + self.issues = issues self.job = job self.last_modified_by = last_modified_by self.last_modified_on = last_modified_on diff --git a/vsts/vsts/release/v4_1/models/environment_options.py b/vsts/vsts/release/v4_1/models/environment_options.py index e4afe484..497bf25d 100644 --- a/vsts/vsts/release/v4_1/models/environment_options.py +++ b/vsts/vsts/release/v4_1/models/environment_options.py @@ -12,6 +12,10 @@ class EnvironmentOptions(Model): """EnvironmentOptions. + :param auto_link_work_items: + :type auto_link_work_items: bool + :param badge_enabled: + :type badge_enabled: bool :param email_notification_type: :type email_notification_type: str :param email_recipients: @@ -27,6 +31,8 @@ class EnvironmentOptions(Model): """ _attribute_map = { + 'auto_link_work_items': {'key': 'autoLinkWorkItems', 'type': 'bool'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, @@ -35,8 +41,10 @@ class EnvironmentOptions(Model): 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} } - def __init__(self, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): + def __init__(self, auto_link_work_items=None, badge_enabled=None, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): super(EnvironmentOptions, self).__init__() + self.auto_link_work_items = auto_link_work_items + self.badge_enabled = badge_enabled self.email_notification_type = email_notification_type self.email_recipients = email_recipients self.enable_access_token = enable_access_token diff --git a/vsts/vsts/release/v4_1/models/identity_ref.py b/vsts/vsts/release/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/release/v4_1/models/identity_ref.py +++ b/vsts/vsts/release/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/release/v4_1/models/process_parameters.py b/vsts/vsts/release/v4_1/models/process_parameters.py index 657d9485..d87b7635 100644 --- a/vsts/vsts/release/v4_1/models/process_parameters.py +++ b/vsts/vsts/release/v4_1/models/process_parameters.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class ProcessParameters(Model): +class ProcessParameters(BaseSecuredObject): """ProcessParameters. :param data_source_bindings: diff --git a/vsts/vsts/release/v4_1/models/release_definition.py b/vsts/vsts/release/v4_1/models/release_definition.py index 58a8fe5f..47346209 100644 --- a/vsts/vsts/release/v4_1/models/release_definition.py +++ b/vsts/vsts/release/v4_1/models/release_definition.py @@ -40,6 +40,8 @@ class ReleaseDefinition(Model): :type name: str :param path: Gets or sets the path. :type path: str + :param pipeline_process: Gets or sets pipeline process. + :type pipeline_process: :class:`PipelineProcess ` :param properties: Gets or sets properties. :type properties: :class:`object ` :param release_name_format: Gets or sets the release name format. @@ -77,6 +79,7 @@ class ReleaseDefinition(Model): 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, + 'pipeline_process': {'key': 'pipelineProcess', 'type': 'PipelineProcess'}, 'properties': {'key': 'properties', 'type': 'object'}, 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, @@ -89,7 +92,7 @@ class ReleaseDefinition(Model): 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} } - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, pipeline_process=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): super(ReleaseDefinition, self).__init__() self._links = _links self.artifacts = artifacts @@ -105,6 +108,7 @@ def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, c self.modified_on = modified_on self.name = name self.path = path + self.pipeline_process = pipeline_process self.properties = properties self.release_name_format = release_name_format self.retention_policy = retention_policy diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment.py b/vsts/vsts/release/v4_1/models/release_definition_environment.py index d621b288..1fe164f6 100644 --- a/vsts/vsts/release/v4_1/models/release_definition_environment.py +++ b/vsts/vsts/release/v4_1/models/release_definition_environment.py @@ -12,6 +12,8 @@ class ReleaseDefinitionEnvironment(Model): """ReleaseDefinitionEnvironment. + :param badge_url: + :type badge_url: str :param conditions: :type conditions: list of :class:`Condition ` :param demands: @@ -59,6 +61,7 @@ class ReleaseDefinitionEnvironment(Model): """ _attribute_map = { + 'badge_url': {'key': 'badgeUrl', 'type': 'str'}, 'conditions': {'key': 'conditions', 'type': '[Condition]'}, 'demands': {'key': 'demands', 'type': '[object]'}, 'deploy_phases': {'key': 'deployPhases', 'type': '[DeployPhase]'}, @@ -83,8 +86,9 @@ class ReleaseDefinitionEnvironment(Model): 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} } - def __init__(self, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): + def __init__(self, badge_url=None, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): super(ReleaseDefinitionEnvironment, self).__init__() + self.badge_url = badge_url self.conditions = conditions self.demands = demands self.deploy_phases = deploy_phases diff --git a/vsts/vsts/release/v4_1/models/release_deploy_phase.py b/vsts/vsts/release/v4_1/models/release_deploy_phase.py index 00e70278..9c56f011 100644 --- a/vsts/vsts/release/v4_1/models/release_deploy_phase.py +++ b/vsts/vsts/release/v4_1/models/release_deploy_phase.py @@ -20,6 +20,10 @@ class ReleaseDeployPhase(Model): :type id: int :param manual_interventions: :type manual_interventions: list of :class:`ManualIntervention ` + :param name: + :type name: str + :param phase_id: + :type phase_id: str :param phase_type: :type phase_type: object :param rank: @@ -35,18 +39,22 @@ class ReleaseDeployPhase(Model): 'error_log': {'key': 'errorLog', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'phase_id': {'key': 'phaseId', 'type': 'str'}, 'phase_type': {'key': 'phaseType', 'type': 'object'}, 'rank': {'key': 'rank', 'type': 'int'}, 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'} } - def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, phase_type=None, rank=None, run_plan_id=None, status=None): + def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, name=None, phase_id=None, phase_type=None, rank=None, run_plan_id=None, status=None): super(ReleaseDeployPhase, self).__init__() self.deployment_jobs = deployment_jobs self.error_log = error_log self.id = id self.manual_interventions = manual_interventions + self.name = name + self.phase_id = phase_id self.phase_type = phase_type self.rank = rank self.run_plan_id = run_plan_id diff --git a/vsts/vsts/release/v4_1/models/task_input_definition_base.py b/vsts/vsts/release/v4_1/models/task_input_definition_base.py index 1b4e68ff..0d84190d 100644 --- a/vsts/vsts/release/v4_1/models/task_input_definition_base.py +++ b/vsts/vsts/release/v4_1/models/task_input_definition_base.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class TaskInputDefinitionBase(Model): +class TaskInputDefinitionBase(BaseSecuredObject): """TaskInputDefinitionBase. :param aliases: diff --git a/vsts/vsts/release/v4_1/models/task_input_validation.py b/vsts/vsts/release/v4_1/models/task_input_validation.py index 42524013..cc51abdd 100644 --- a/vsts/vsts/release/v4_1/models/task_input_validation.py +++ b/vsts/vsts/release/v4_1/models/task_input_validation.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class TaskInputValidation(Model): +class TaskInputValidation(BaseSecuredObject): """TaskInputValidation. :param expression: Conditional expression diff --git a/vsts/vsts/release/v4_1/models/task_source_definition_base.py b/vsts/vsts/release/v4_1/models/task_source_definition_base.py index c8a6b6d6..79ba6579 100644 --- a/vsts/vsts/release/v4_1/models/task_source_definition_base.py +++ b/vsts/vsts/release/v4_1/models/task_source_definition_base.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class TaskSourceDefinitionBase(Model): +class TaskSourceDefinitionBase(BaseSecuredObject): """TaskSourceDefinitionBase. :param auth_key: diff --git a/vsts/vsts/release/v4_1/release_client.py b/vsts/vsts/release/v4_1/release_client.py index e5ad6e7b..06ecf5cc 100644 --- a/vsts/vsts/release/v4_1/release_client.py +++ b/vsts/vsts/release/v4_1/release_client.py @@ -62,7 +62,7 @@ def get_approvals(self, project, assigned_to_filter=None, status_filter=None, re query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') response = self._send(http_method='GET', location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', - version='4.1-preview.1', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -84,11 +84,78 @@ def update_release_approval(self, approval, project, approval_id): content = self._serialize.body(approval, 'ReleaseApproval') response = self._send(http_method='PATCH', location_id='9328e074-59fb-465a-89d9-b09c82ee5109', - version='4.1-preview.1', + version='4.1-preview.3', route_values=route_values, content=content) return self._deserialize('ReleaseApproval', response) + def get_task_attachment_content(self, project, release_id, environment_id, attempt_id, timeline_id, record_id, type, name): + """GetTaskAttachmentContent. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='c4071f6d-3697-46ca-858e-8b10ff09e52f', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_task_attachments(self, project, release_id, environment_id, attempt_id, timeline_id, type): + """GetTaskAttachments. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :param str timeline_id: + :param str type: + :rtype: [ReleaseTaskAttachment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='214111ee-2415-4df2-8ed2-74417f7d61f9', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[ReleaseTaskAttachment]', response) + def create_release_definition(self, release_definition, project): """CreateReleaseDefinition. [Preview API] Create a release definition @@ -233,7 +300,7 @@ def update_release_definition(self, release_definition, project): content=content) return self._deserialize('ReleaseDefinition', response) - def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None): + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None, min_started_time=None, max_started_time=None): """GetDeployments. [Preview API] :param str project: Project ID or project name @@ -249,6 +316,8 @@ def get_deployments(self, project, definition_id=None, definition_environment_id :param int top: :param int continuation_token: :param str created_for: + :param datetime min_started_time: + :param datetime max_started_time: :rtype: [Deployment] """ route_values = {} @@ -279,6 +348,10 @@ def get_deployments(self, project, definition_id=None, definition_environment_id query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') if created_for is not None: query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + if min_started_time is not None: + query_parameters['minStartedTime'] = self._serialize.query('min_started_time', min_started_time, 'iso-8601') + if max_started_time is not None: + query_parameters['maxStartedTime'] = self._serialize.query('max_started_time', max_started_time, 'iso-8601') response = self._send(http_method='GET', location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', version='4.1-preview.2', @@ -329,7 +402,7 @@ def get_logs(self, project, release_id): route_values=route_values) return self._deserialize('object', response) - def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id): + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None): """GetTaskLog. [Preview API] Gets the task log of a release as a plain text file. :param str project: Project ID or project name @@ -337,6 +410,8 @@ def get_task_log(self, project, release_id, environment_id, release_deploy_phase :param int environment_id: Id of release environment. :param int release_deploy_phase_id: Release deploy phase Id. :param int task_id: ReleaseTask Id for the log. + :param long start_line: Starting line number for logs + :param long end_line: Ending line number for logs :rtype: object """ route_values = {} @@ -350,10 +425,16 @@ def get_task_log(self, project, release_id, environment_id, release_deploy_phase route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') if task_id is not None: route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', version='4.1-preview.2', - route_values=route_values) + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('object', response) def get_manual_intervention(self, project, release_id, manual_intervention_id): @@ -519,12 +600,12 @@ def create_release(self, release_start_metadata, project): content=content) return self._deserialize('Release', response) - def get_release(self, project, release_id, include_all_approvals=None, property_filters=None): + def get_release(self, project, release_id, approval_filters=None, property_filters=None): """GetRelease. [Preview API] Get a Release :param str project: Project ID or project name :param int release_id: Id of the release. - :param bool include_all_approvals: Include all approvals in the result. Default is 'true'. + :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default :param [str] property_filters: A comma-delimited list of properties to include in the results. :rtype: :class:` ` """ @@ -534,8 +615,8 @@ def get_release(self, project, release_id, include_all_approvals=None, property_ if release_id is not None: route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') query_parameters = {} - if include_all_approvals is not None: - query_parameters['includeAllApprovals'] = self._serialize.query('include_all_approvals', include_all_approvals, 'bool') + if approval_filters is not None: + query_parameters['approvalFilters'] = self._serialize.query('approval_filters', approval_filters, 'str') if property_filters is not None: property_filters = ",".join(property_filters) query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') diff --git a/vsts/vsts/service_hooks/v4_1/models/__init__.py b/vsts/vsts/service_hooks/v4_1/models/__init__.py index 30e3e5ee..5548104e 100644 --- a/vsts/vsts/service_hooks/v4_1/models/__init__.py +++ b/vsts/vsts/service_hooks/v4_1/models/__init__.py @@ -12,6 +12,7 @@ from .event_type_descriptor import EventTypeDescriptor from .external_configuration_descriptor import ExternalConfigurationDescriptor from .formatted_event_message import FormattedEventMessage +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .input_descriptor import InputDescriptor from .input_filter import InputFilter @@ -33,7 +34,11 @@ from .resource_container import ResourceContainer from .session_token import SessionToken from .subscription import Subscription +from .subscription_diagnostics import SubscriptionDiagnostics from .subscriptions_query import SubscriptionsQuery +from .subscription_tracing import SubscriptionTracing +from .update_subscripiton_diagnostics_parameters import UpdateSubscripitonDiagnosticsParameters +from .update_subscripiton_tracing_parameters import UpdateSubscripitonTracingParameters from .versioned_resource import VersionedResource __all__ = [ @@ -43,6 +48,7 @@ 'EventTypeDescriptor', 'ExternalConfigurationDescriptor', 'FormattedEventMessage', + 'GraphSubjectBase', 'IdentityRef', 'InputDescriptor', 'InputFilter', @@ -64,6 +70,10 @@ 'ResourceContainer', 'SessionToken', 'Subscription', + 'SubscriptionDiagnostics', 'SubscriptionsQuery', + 'SubscriptionTracing', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', 'VersionedResource', ] diff --git a/vsts/vsts/service_hooks/v4_1/models/identity_ref.py b/vsts/vsts/service_hooks/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/service_hooks/v4_1/models/identity_ref.py +++ b/vsts/vsts/service_hooks/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py index cd0e3349..5f873e8d 100644 --- a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py +++ b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py @@ -105,6 +105,39 @@ def list_consumers(self, publisher_id=None): returns_collection=True) return self._deserialize('[Consumer]', response) + def get_subscription_diagnostics(self, subscription_id): + """GetSubscriptionDiagnostics. + [Preview API] + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + response = self._send(http_method='GET', + location_id='3b36bcb5-02ad-43c6-bbfa-6dfc6f8e9d68', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('SubscriptionDiagnostics', response) + + def update_subscription_diagnostics(self, update_parameters, subscription_id): + """UpdateSubscriptionDiagnostics. + [Preview API] + :param :class:` ` update_parameters: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(update_parameters, 'UpdateSubscripitonDiagnosticsParameters') + response = self._send(http_method='PUT', + location_id='3b36bcb5-02ad-43c6-bbfa-6dfc6f8e9d68', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SubscriptionDiagnostics', response) + def get_event_type(self, publisher_id, event_type_id): """GetEventType. [Preview API] Get a specific event type. diff --git a/vsts/vsts/task_agent/v4_1/models/__init__.py b/vsts/vsts/task_agent/v4_1/models/__init__.py index 0d39ec76..93b24edf 100644 --- a/vsts/vsts/task_agent/v4_1/models/__init__.py +++ b/vsts/vsts/task_agent/v4_1/models/__init__.py @@ -12,6 +12,7 @@ from .authorization_header import AuthorizationHeader from .azure_subscription import AzureSubscription from .azure_subscription_query_result import AzureSubscriptionQueryResult +from .client_certificate import ClientCertificate from .data_source import DataSource from .data_source_binding import DataSourceBinding from .data_source_binding_base import DataSourceBindingBase @@ -20,14 +21,19 @@ from .dependency_data import DependencyData from .depends_on import DependsOn from .deployment_group import DeploymentGroup +from .deployment_group_create_parameter import DeploymentGroupCreateParameter +from .deployment_group_create_parameter_pool_property import DeploymentGroupCreateParameterPoolProperty from .deployment_group_metrics import DeploymentGroupMetrics from .deployment_group_reference import DeploymentGroupReference +from .deployment_group_update_parameter import DeploymentGroupUpdateParameter from .deployment_machine import DeploymentMachine from .deployment_machine_group import DeploymentMachineGroup from .deployment_machine_group_reference import DeploymentMachineGroupReference from .deployment_pool_summary import DeploymentPoolSummary +from .deployment_target_update_parameter import DeploymentTargetUpdateParameter from .endpoint_authorization import EndpointAuthorization from .endpoint_url import EndpointUrl +from .graph_subject_base import GraphSubjectBase from .help_link import HelpLink from .identity_ref import IdentityRef from .input_descriptor import InputDescriptor @@ -39,6 +45,8 @@ from .metrics_column_meta_data import MetricsColumnMetaData from .metrics_columns_header import MetricsColumnsHeader from .metrics_row import MetricsRow +from .oAuth_configuration import OAuthConfiguration +from .oAuth_configuration_params import OAuthConfigurationParams from .package_metadata import PackageMetadata from .package_version import PackageVersion from .project_reference import ProjectReference @@ -100,6 +108,7 @@ from .task_version import TaskVersion from .validation_item import ValidationItem from .variable_group import VariableGroup +from .variable_group_parameters import VariableGroupParameters from .variable_group_provider_data import VariableGroupProviderData from .variable_value import VariableValue @@ -110,6 +119,7 @@ 'AuthorizationHeader', 'AzureSubscription', 'AzureSubscriptionQueryResult', + 'ClientCertificate', 'DataSource', 'DataSourceBinding', 'DataSourceBindingBase', @@ -118,14 +128,19 @@ 'DependencyData', 'DependsOn', 'DeploymentGroup', + 'DeploymentGroupCreateParameter', + 'DeploymentGroupCreateParameterPoolProperty', 'DeploymentGroupMetrics', 'DeploymentGroupReference', + 'DeploymentGroupUpdateParameter', 'DeploymentMachine', 'DeploymentMachineGroup', 'DeploymentMachineGroupReference', 'DeploymentPoolSummary', + 'DeploymentTargetUpdateParameter', 'EndpointAuthorization', 'EndpointUrl', + 'GraphSubjectBase', 'HelpLink', 'IdentityRef', 'InputDescriptor', @@ -137,6 +152,8 @@ 'MetricsColumnMetaData', 'MetricsColumnsHeader', 'MetricsRow', + 'OAuthConfiguration', + 'OAuthConfigurationParams', 'PackageMetadata', 'PackageVersion', 'ProjectReference', @@ -198,6 +215,7 @@ 'TaskVersion', 'ValidationItem', 'VariableGroup', + 'VariableGroupParameters', 'VariableGroupProviderData', 'VariableValue', ] diff --git a/vsts/vsts/task_agent/v4_1/models/authorization_header.py b/vsts/vsts/task_agent/v4_1/models/authorization_header.py index 015e6775..3657c7a3 100644 --- a/vsts/vsts/task_agent/v4_1/models/authorization_header.py +++ b/vsts/vsts/task_agent/v4_1/models/authorization_header.py @@ -12,9 +12,9 @@ class AuthorizationHeader(Model): """AuthorizationHeader. - :param name: + :param name: Gets or sets the name of authorization header. :type name: str - :param value: + :param value: Gets or sets the value of authorization header. :type value: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_binding.py b/vsts/vsts/task_agent/v4_1/models/data_source_binding.py index 65023c0d..c4867160 100644 --- a/vsts/vsts/task_agent/v4_1/models/data_source_binding.py +++ b/vsts/vsts/task_agent/v4_1/models/data_source_binding.py @@ -12,21 +12,21 @@ class DataSourceBinding(DataSourceBindingBase): """DataSourceBinding. - :param data_source_name: + :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str - :param endpoint_id: + :param endpoint_id: Gets or sets the endpoint Id. :type endpoint_id: str - :param endpoint_url: + :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str - :param headers: + :param headers: Gets or sets the authorization headers. :type headers: list of :class:`AuthorizationHeader ` - :param parameters: + :param parameters: Gets or sets the parameters for the data source. :type parameters: dict - :param result_selector: + :param result_selector: Gets or sets the result selector. :type result_selector: str - :param result_template: + :param result_template: Gets or sets the result template. :type result_template: str - :param target: + :param target: Gets or sets the target of the data source. :type target: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py b/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py index fe92a446..8d11fcdf 100644 --- a/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py +++ b/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py @@ -6,27 +6,26 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class DataSourceBindingBase(Model): +class DataSourceBindingBase(BaseSecuredObject): """DataSourceBindingBase. - :param data_source_name: + :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str - :param endpoint_id: + :param endpoint_id: Gets or sets the endpoint Id. :type endpoint_id: str - :param endpoint_url: + :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str - :param headers: + :param headers: Gets or sets the authorization headers. :type headers: list of :class:`AuthorizationHeader ` - :param parameters: + :param parameters: Gets or sets the parameters for the data source. :type parameters: dict - :param result_selector: + :param result_selector: Gets or sets the result selector. :type result_selector: str - :param result_template: + :param result_template: Gets or sets the result template. :type result_template: str - :param target: + :param target: Gets or sets the target of the data source. :type target: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group.py b/vsts/vsts/task_agent/v4_1/models/deployment_group.py index 9bcf9a9d..54f7c88b 100644 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group.py +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group.py @@ -12,21 +12,21 @@ class DeploymentGroup(DeploymentGroupReference): """DeploymentGroup. - :param id: + :param id: Deployment group identifier. :type id: int - :param name: + :param name: Name of the deployment group. :type name: str - :param pool: + :param pool: Deployment pool in which deployment agents are registered. :type pool: :class:`TaskAgentPoolReference ` - :param project: + :param project: Project to which the deployment group belongs. :type project: :class:`ProjectReference ` - :param description: + :param description: Description of the deployment group. :type description: str - :param machine_count: + :param machine_count: Number of deployment targets in the deployment group. :type machine_count: int - :param machines: + :param machines: List of deployment targets in the deployment group. :type machines: list of :class:`DeploymentMachine ` - :param machine_tags: + :param machine_tags: List of unique tags across all deployment targets in the deployment group. :type machine_tags: list of str """ diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py index 6bdbfb74..d6edc350 100644 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py @@ -12,11 +12,11 @@ class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. - :param columns_header: + :param columns_header: List of deployment group properties. And types of metrics provided for those properties. :type columns_header: :class:`MetricsColumnsHeader ` - :param deployment_group: + :param deployment_group: Deployment group. :type deployment_group: :class:`DeploymentGroupReference ` - :param rows: + :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. :type rows: list of :class:`MetricsRow ` """ diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py index ca94099d..2e9bc655 100644 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py @@ -12,13 +12,13 @@ class DeploymentGroupReference(Model): """DeploymentGroupReference. - :param id: + :param id: Deployment group identifier. :type id: int - :param name: + :param name: Name of the deployment group. :type name: str - :param pool: + :param pool: Deployment pool in which deployment agents are registered. :type pool: :class:`TaskAgentPoolReference ` - :param project: + :param project: Project to which the deployment group belongs. :type project: :class:`ProjectReference ` """ diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_machine.py b/vsts/vsts/task_agent/v4_1/models/deployment_machine.py index 71af8f16..b13fcafa 100644 --- a/vsts/vsts/task_agent/v4_1/models/deployment_machine.py +++ b/vsts/vsts/task_agent/v4_1/models/deployment_machine.py @@ -12,11 +12,11 @@ class DeploymentMachine(Model): """DeploymentMachine. - :param agent: + :param agent: Deployment agent. :type agent: :class:`TaskAgent ` - :param id: + :param id: Deployment target Identifier. :type id: int - :param tags: + :param tags: Tags of the deployment target. :type tags: list of str """ diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py b/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py index 7401d3b9..50a96b60 100644 --- a/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py +++ b/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py @@ -12,13 +12,13 @@ class DeploymentPoolSummary(Model): """DeploymentPoolSummary. - :param deployment_groups: + :param deployment_groups: List of deployment groups referring to the deployment pool. :type deployment_groups: list of :class:`DeploymentGroupReference ` - :param offline_agents_count: + :param offline_agents_count: Number of deployment agents that are offline. :type offline_agents_count: int - :param online_agents_count: + :param online_agents_count: Number of deployment agents that are online. :type online_agents_count: int - :param pool: + :param pool: Deployment pool. :type pool: :class:`TaskAgentPoolReference ` """ diff --git a/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py b/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py index 5a8f642c..6fc33ab8 100644 --- a/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py +++ b/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py @@ -12,9 +12,9 @@ class EndpointAuthorization(Model): """EndpointAuthorization. - :param parameters: + :param parameters: Gets or sets the parameters for the selected authorization scheme. :type parameters: dict - :param scheme: + :param scheme: Gets or sets the scheme used for service endpoint authentication. :type scheme: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/endpoint_url.py b/vsts/vsts/task_agent/v4_1/models/endpoint_url.py index 62161498..c1bc7ceb 100644 --- a/vsts/vsts/task_agent/v4_1/models/endpoint_url.py +++ b/vsts/vsts/task_agent/v4_1/models/endpoint_url.py @@ -12,15 +12,15 @@ class EndpointUrl(Model): """EndpointUrl. - :param depends_on: + :param depends_on: Gets or sets the dependency bindings. :type depends_on: :class:`DependsOn ` - :param display_name: + :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str - :param help_text: + :param help_text: Gets or sets the help text of service endpoint url. :type help_text: str - :param is_visible: + :param is_visible: Gets or sets the visibility of service endpoint url. :type is_visible: str - :param value: + :param value: Gets or sets the value of service endpoint url. :type value: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/identity_ref.py b/vsts/vsts/task_agent/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/task_agent/v4_1/models/identity_ref.py +++ b/vsts/vsts/task_agent/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py b/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py index 8fde3da2..242e669c 100644 --- a/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py +++ b/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py @@ -12,9 +12,9 @@ class MetricsColumnMetaData(Model): """MetricsColumnMetaData. - :param column_name: + :param column_name: Name. :type column_name: str - :param column_value_type: + :param column_value_type: Data type. :type column_value_type: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py b/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py index 12b391ac..70cda63d 100644 --- a/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py +++ b/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py @@ -12,9 +12,9 @@ class MetricsColumnsHeader(Model): """MetricsColumnsHeader. - :param dimensions: + :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState :type dimensions: list of :class:`MetricsColumnMetaData ` - :param metrics: + :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. :type metrics: list of :class:`MetricsColumnMetaData ` """ diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_row.py b/vsts/vsts/task_agent/v4_1/models/metrics_row.py index 225673ad..4aabc669 100644 --- a/vsts/vsts/task_agent/v4_1/models/metrics_row.py +++ b/vsts/vsts/task_agent/v4_1/models/metrics_row.py @@ -12,9 +12,9 @@ class MetricsRow(Model): """MetricsRow. - :param dimensions: + :param dimensions: The values of the properties mentioned as 'Dimensions' in column header. E.g. 1: For a property 'LastJobStatus' - metrics will be provided for 'passed', 'failed', etc. E.g. 2: For a property 'TargetState' - metrics will be provided for 'online', 'offline' targets. :type dimensions: list of str - :param metrics: + :param metrics: Metrics in serialized format. Should be deserialized based on the data type provided in header. :type metrics: list of str """ diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint.py index 3d33ba8f..67b32233 100644 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint.py +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint.py @@ -12,15 +12,15 @@ class ServiceEndpoint(Model): """ServiceEndpoint. - :param administrators_group: + :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. :type authorization: :class:`EndpointAuthorization ` - :param created_by: The Gets or sets Identity reference for the user who created the Service endpoint + :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. :type created_by: :class:`IdentityRef ` :param data: :type data: dict - :param description: Gets or Sets description of endpoint + :param description: Gets or sets the description of endpoint. :type description: str :param group_scope_id: :type group_scope_id: str @@ -32,7 +32,7 @@ class ServiceEndpoint(Model): :type name: str :param operation_status: Error message during creation/deletion of endpoint :type operation_status: :class:`object ` - :param readers_group: + :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py index f8cfe08d..580b49bc 100644 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py @@ -12,26 +12,30 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. - :param authorization_headers: + :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. :type authorization_headers: list of :class:`AuthorizationHeader ` - :param display_name: + :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. + :type client_certificates: list of :class:`ClientCertificate ` + :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str - :param input_descriptors: + :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. :type input_descriptors: list of :class:`InputDescriptor ` - :param scheme: + :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ _attribute_map = { 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, 'scheme': {'key': 'scheme', 'type': 'str'} } - def __init__(self, authorization_headers=None, display_name=None, input_descriptors=None, scheme=None): + def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): super(ServiceEndpointAuthenticationScheme, self).__init__() self.authorization_headers = authorization_headers + self.client_certificates = client_certificates self.display_name = display_name self.input_descriptors = input_descriptors self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py index c887acf3..0d4063ff 100644 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py @@ -12,19 +12,19 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. - :param definition: + :param definition: Gets the definition of service endpoint execution owner. :type definition: :class:`TaskOrchestrationOwner ` - :param finish_time: + :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime - :param id: + :param id: Gets the Id of service endpoint execution data. :type id: long - :param owner: + :param owner: Gets the owner of service endpoint execution data. :type owner: :class:`TaskOrchestrationOwner ` - :param plan_type: + :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str - :param result: + :param result: Gets the result of service endpoint execution. :type result: object - :param start_time: + :param start_time: Gets the start time of service endpoint execution. :type start_time: datetime """ diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py index 8d32d8c4..8bd39125 100644 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py @@ -12,9 +12,9 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. - :param data: + :param data: Gets the execution data of service endpoint execution. :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_id: + :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py index bcc7648a..8b0f011c 100644 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py +++ b/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py @@ -12,31 +12,31 @@ class ServiceEndpointType(Model): """ServiceEndpointType. - :param authentication_schemes: + :param authentication_schemes: Authentication scheme of service endpoint type. :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` - :param data_sources: + :param data_sources: Data sources of service endpoint type. :type data_sources: list of :class:`DataSource ` - :param dependency_data: + :param dependency_data: Dependency data of service endpoint type. :type dependency_data: list of :class:`DependencyData ` - :param description: + :param description: Gets or sets the description of service endpoint type. :type description: str - :param display_name: + :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str - :param endpoint_url: + :param endpoint_url: Gets or sets the endpoint url of service endpoint type. :type endpoint_url: :class:`EndpointUrl ` - :param help_link: + :param help_link: Gets or sets the help link of service endpoint type. :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str - :param icon_url: + :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str - :param input_descriptors: + :param input_descriptors: Input descriptor of service endpoint type. :type input_descriptors: list of :class:`InputDescriptor ` - :param name: + :param name: Gets or sets the name of service endpoint type. :type name: str - :param trusted_hosts: + :param trusted_hosts: Trusted hosts of a service endpoint type. :type trusted_hosts: list of str - :param ui_contribution_id: + :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. :type ui_contribution_id: str """ diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py index 7eb55422..137808dc 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py @@ -30,6 +30,8 @@ class TaskAgentPool(TaskAgentPoolReference): :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime + :param owner: Gets the identity who owns or administrates this pool. + :type owner: :class:`IdentityRef ` :param properties: :type properties: :class:`object ` """ @@ -44,12 +46,14 @@ class TaskAgentPool(TaskAgentPoolReference): 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, 'properties': {'key': 'properties', 'type': 'object'} } - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, auto_provision=None, created_by=None, created_on=None, properties=None): + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, auto_provision=None, created_by=None, created_on=None, owner=None, properties=None): super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope, size=size) self.auto_provision = auto_provision self.created_by = created_by self.created_on = created_on + self.owner = owner self.properties = properties diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py index 1b4e68ff..0d84190d 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py +++ b/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class TaskInputDefinitionBase(Model): +class TaskInputDefinitionBase(BaseSecuredObject): """TaskInputDefinitionBase. :param aliases: diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_validation.py b/vsts/vsts/task_agent/v4_1/models/task_input_validation.py index 42524013..cc51abdd 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_input_validation.py +++ b/vsts/vsts/task_agent/v4_1/models/task_input_validation.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class TaskInputValidation(Model): +class TaskInputValidation(BaseSecuredObject): """TaskInputValidation. :param expression: Conditional expression diff --git a/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py index c8a6b6d6..79ba6579 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py +++ b/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class TaskSourceDefinitionBase(Model): +class TaskSourceDefinitionBase(BaseSecuredObject): """TaskSourceDefinitionBase. :param auth_key: diff --git a/vsts/vsts/task_agent/v4_1/models/variable_group.py b/vsts/vsts/task_agent/v4_1/models/variable_group.py index 322bb040..fa38154c 100644 --- a/vsts/vsts/task_agent/v4_1/models/variable_group.py +++ b/vsts/vsts/task_agent/v4_1/models/variable_group.py @@ -12,25 +12,25 @@ class VariableGroup(Model): """VariableGroup. - :param created_by: + :param created_by: Gets or sets the identity who created the variable group. :type created_by: :class:`IdentityRef ` - :param created_on: + :param created_on: Gets or sets the time when variable group was created. :type created_on: datetime - :param description: + :param description: Gets or sets description of the variable group. :type description: str - :param id: + :param id: Gets or sets id of the variable group. :type id: int - :param modified_by: + :param modified_by: Gets or sets the identity who modified the variable group. :type modified_by: :class:`IdentityRef ` - :param modified_on: + :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime - :param name: + :param name: Gets or sets name of the variable group. :type name: str - :param provider_data: + :param provider_data: Gets or sets provider data. :type provider_data: :class:`VariableGroupProviderData ` - :param type: + :param type: Gets or sets type of the variable group. :type type: str - :param variables: + :param variables: Gets or sets variables contained in the variable group. :type variables: dict """ diff --git a/vsts/vsts/task_agent/v4_1/task_agent_client.py b/vsts/vsts/task_agent/v4_1/task_agent_client.py index a072a629..f58d1bbf 100644 --- a/vsts/vsts/task_agent/v4_1/task_agent_client.py +++ b/vsts/vsts/task_agent/v4_1/task_agent_client.py @@ -25,1858 +25,130 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = 'a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd' - def add_agent(self, agent, pool_id): - """AddAgent. - [Preview API] - :param :class:` ` agent: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(agent, 'TaskAgent') - response = self._send(http_method='POST', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - - def delete_agent(self, pool_id, agent_id): - """DeleteAgent. - [Preview API] - :param int pool_id: - :param int agent_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - self._send(http_method='DELETE', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.1-preview.1', - route_values=route_values) - - def get_agent(self, pool_id, agent_id, include_capabilities=None, include_assigned_request=None, property_filters=None): - """GetAgent. - [Preview API] - :param int pool_id: - :param int agent_id: - :param bool include_capabilities: - :param bool include_assigned_request: - :param [str] property_filters: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - query_parameters = {} - if include_capabilities is not None: - query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') - if include_assigned_request is not None: - query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgent', response) - - def get_agents(self, pool_id, agent_name=None, include_capabilities=None, include_assigned_request=None, property_filters=None, demands=None): - """GetAgents. - [Preview API] - :param int pool_id: - :param str agent_name: - :param bool include_capabilities: - :param bool include_assigned_request: - :param [str] property_filters: - :param [str] demands: - :rtype: [TaskAgent] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if agent_name is not None: - query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') - if include_capabilities is not None: - query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') - if include_assigned_request is not None: - query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if demands is not None: - demands = ",".join(demands) - query_parameters['demands'] = self._serialize.query('demands', demands, 'str') - response = self._send(http_method='GET', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgent]', response) - - def replace_agent(self, agent, pool_id, agent_id): - """ReplaceAgent. - [Preview API] - :param :class:` ` agent: - :param int pool_id: - :param int agent_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - content = self._serialize.body(agent, 'TaskAgent') - response = self._send(http_method='PUT', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - - def update_agent(self, agent, pool_id, agent_id): - """UpdateAgent. - [Preview API] - :param :class:` ` agent: - :param int pool_id: - :param int agent_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - content = self._serialize.body(agent, 'TaskAgent') - response = self._send(http_method='PATCH', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - - def get_azure_subscriptions(self): - """GetAzureSubscriptions. - [Preview API] Returns list of azure subscriptions - :rtype: :class:` ` - """ - response = self._send(http_method='GET', - location_id='bcd6189c-0303-471f-a8e1-acb22b74d700', - version='4.1-preview.1') - return self._deserialize('AzureSubscriptionQueryResult', response) - - def generate_deployment_group_access_token(self, project, deployment_group_id): - """GenerateDeploymentGroupAccessToken. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: str - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - response = self._send(http_method='POST', - location_id='3d197ba2-c3e9-4253-882f-0ee2440f8174', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('str', response) - - def add_deployment_group(self, deployment_group, project): - """AddDeploymentGroup. - [Preview API] - :param :class:` ` deployment_group: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(deployment_group, 'DeploymentGroup') - response = self._send(http_method='POST', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentGroup', response) - - def delete_deployment_group(self, project, deployment_group_id): - """DeleteDeploymentGroup. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - self._send(http_method='DELETE', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', - route_values=route_values) - - def get_deployment_group(self, project, deployment_group_id, action_filter=None, expand=None): - """GetDeploymentGroup. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param str action_filter: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('DeploymentGroup', response) - - def get_deployment_groups(self, project, name=None, action_filter=None, expand=None, continuation_token=None, top=None, ids=None): - """GetDeploymentGroups. - [Preview API] - :param str project: Project ID or project name - :param str name: - :param str action_filter: - :param str expand: - :param str continuation_token: - :param int top: - :param [int] ids: - :rtype: [DeploymentGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if ids is not None: - ids = ",".join(map(str, ids)) - query_parameters['ids'] = self._serialize.query('ids', ids, 'str') - response = self._send(http_method='GET', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentGroup]', response) - - def update_deployment_group(self, deployment_group, project, deployment_group_id): - """UpdateDeploymentGroup. - [Preview API] - :param :class:` ` deployment_group: - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(deployment_group, 'DeploymentGroup') - response = self._send(http_method='PATCH', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentGroup', response) - - def get_deployment_groups_metrics(self, project, deployment_group_name=None, continuation_token=None, top=None): - """GetDeploymentGroupsMetrics. - [Preview API] - :param str project: Project ID or project name - :param str deployment_group_name: - :param str continuation_token: - :param int top: - :rtype: [DeploymentGroupMetrics] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if deployment_group_name is not None: - query_parameters['deploymentGroupName'] = self._serialize.query('deployment_group_name', deployment_group_name, 'str') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='281c6308-427a-49e1-b83a-dac0f4862189', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentGroupMetrics]', response) - - def get_agent_requests_for_deployment_machine(self, project, deployment_group_id, machine_id, completed_request_count=None): - """GetAgentRequestsForDeploymentMachine. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :param int completed_request_count: - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if machine_id is not None: - query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'int') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='a3540e5b-f0dc-4668-963b-b752459be545', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) - - def get_agent_requests_for_deployment_machines(self, project, deployment_group_id, machine_ids=None, completed_request_count=None): - """GetAgentRequestsForDeploymentMachines. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param [int] machine_ids: - :param int completed_request_count: - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if machine_ids is not None: - machine_ids = ",".join(map(str, machine_ids)) - query_parameters['machineIds'] = self._serialize.query('machine_ids', machine_ids, 'str') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='a3540e5b-f0dc-4668-963b-b752459be545', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) - - def refresh_deployment_machines(self, project, deployment_group_id): - """RefreshDeploymentMachines. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - self._send(http_method='POST', - location_id='91006ac4-0f68-4d82-a2bc-540676bd73ce', - version='4.1-preview.1', - route_values=route_values) - - def generate_deployment_pool_access_token(self, pool_id): - """GenerateDeploymentPoolAccessToken. - [Preview API] - :param int pool_id: - :rtype: str - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - response = self._send(http_method='POST', - location_id='e077ee4a-399b-420b-841f-c43fbc058e0b', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('str', response) - - def get_deployment_pools_summary(self, pool_name=None, expands=None): - """GetDeploymentPoolsSummary. - [Preview API] Get the deployment pools summary. - :param str pool_name: Get summary of deployment pools with name containing poolName. - :param str expands: Populate Deployment groups references if set to DeploymentGroups. Default is **None** - :rtype: [DeploymentPoolSummary] - """ - query_parameters = {} - if pool_name is not None: - query_parameters['poolName'] = self._serialize.query('pool_name', pool_name, 'str') - if expands is not None: - query_parameters['expands'] = self._serialize.query('expands', expands, 'str') - response = self._send(http_method='GET', - location_id='6525d6c6-258f-40e0-a1a9-8a24a3957625', - version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentPoolSummary]', response) - - def get_agent_requests_for_deployment_target(self, project, deployment_group_id, target_id, completed_request_count=None): - """GetAgentRequestsForDeploymentTarget. - [Preview API] Get agent requests for a deployment target. - :param str project: Project ID or project name - :param int deployment_group_id: Id of the deployment group to which target belongs. - :param int target_id: Id of the deployment target to get. - :param int completed_request_count: Maximum count of completed requests to get. - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if target_id is not None: - query_parameters['targetId'] = self._serialize.query('target_id', target_id, 'int') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='2fac0be3-8c8f-4473-ab93-c1389b08a2c9', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) - - def get_agent_requests_for_deployment_targets(self, project, deployment_group_id, target_ids=None, completed_request_count=None): - """GetAgentRequestsForDeploymentTargets. - [Preview API] Get agent requests for deployment targets. - :param str project: Project ID or project name - :param int deployment_group_id: Id of the deployment group to which targets belongs. - :param [int] target_ids: Ids of the deployment target to get. - :param int completed_request_count: Maximum count of completed requests to get. - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if target_ids is not None: - target_ids = ",".join(map(str, target_ids)) - query_parameters['targetIds'] = self._serialize.query('target_ids', target_ids, 'str') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='2fac0be3-8c8f-4473-ab93-c1389b08a2c9', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) - - def query_endpoint(self, endpoint): - """QueryEndpoint. - [Preview API] Proxy for a GET request defined by an 'endpoint'. The request is authorized using a service connection. The response is filtered using an XPath/Json based selector. - :param :class:` ` endpoint: Describes the URL to fetch. - :rtype: [str] - """ - content = self._serialize.body(endpoint, 'TaskDefinitionEndpoint') - response = self._send(http_method='POST', - location_id='f223b809-8c33-4b7d-b53f-07232569b5d6', - version='4.1-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[str]', response) - - def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): - """GetServiceEndpointExecutionRecords. - [Preview API] - :param str project: Project ID or project name - :param str endpoint_id: - :param int top: - :rtype: [ServiceEndpointExecutionRecord] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') - query_parameters = {} - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='3ad71e20-7586-45f9-a6c8-0342e00835ac', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpointExecutionRecord]', response) - - def add_service_endpoint_execution_records(self, input, project): - """AddServiceEndpointExecutionRecords. - [Preview API] - :param :class:` ` input: - :param str project: Project ID or project name - :rtype: [ServiceEndpointExecutionRecord] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(input, 'ServiceEndpointExecutionRecordsInput') - response = self._send(http_method='POST', - location_id='11a45c69-2cce-4ade-a361-c9f5a37239ee', - version='4.1-preview.1', - route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[ServiceEndpointExecutionRecord]', response) - - def validate_inputs(self, input_validation_request): - """ValidateInputs. - [Preview API] - :param :class:` ` input_validation_request: - :rtype: :class:` ` - """ - content = self._serialize.body(input_validation_request, 'InputValidationRequest') - response = self._send(http_method='POST', - location_id='58475b1e-adaf-4155-9bc1-e04bf1fff4c2', - version='4.1-preview.1', - content=content) - return self._deserialize('InputValidationRequest', response) - - def generate_deployment_machine_group_access_token(self, project, machine_group_id): - """GenerateDeploymentMachineGroupAccessToken. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - :rtype: str - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - response = self._send(http_method='POST', - location_id='f8c7c0de-ac0d-469b-9cb1-c21f72d67693', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('str', response) - - def add_deployment_machine_group(self, machine_group, project): - """AddDeploymentMachineGroup. - [Preview API] - :param :class:` ` machine_group: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(machine_group, 'DeploymentMachineGroup') - response = self._send(http_method='POST', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachineGroup', response) - - def delete_deployment_machine_group(self, project, machine_group_id): - """DeleteDeploymentMachineGroup. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - self._send(http_method='DELETE', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.1-preview.1', - route_values=route_values) - - def get_deployment_machine_group(self, project, machine_group_id, action_filter=None): - """GetDeploymentMachineGroup. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - :param str action_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - query_parameters = {} - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('DeploymentMachineGroup', response) - - def get_deployment_machine_groups(self, project, machine_group_name=None, action_filter=None): - """GetDeploymentMachineGroups. - [Preview API] - :param str project: Project ID or project name - :param str machine_group_name: - :param str action_filter: - :rtype: [DeploymentMachineGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if machine_group_name is not None: - query_parameters['machineGroupName'] = self._serialize.query('machine_group_name', machine_group_name, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentMachineGroup]', response) - - def update_deployment_machine_group(self, machine_group, project, machine_group_id): - """UpdateDeploymentMachineGroup. - [Preview API] - :param :class:` ` machine_group: - :param str project: Project ID or project name - :param int machine_group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - content = self._serialize.body(machine_group, 'DeploymentMachineGroup') - response = self._send(http_method='PATCH', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachineGroup', response) - - def get_deployment_machine_group_machines(self, project, machine_group_id, tag_filters=None): - """GetDeploymentMachineGroupMachines. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - :param [str] tag_filters: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - query_parameters = {} - if tag_filters is not None: - tag_filters = ",".join(tag_filters) - query_parameters['tagFilters'] = self._serialize.query('tag_filters', tag_filters, 'str') - response = self._send(http_method='GET', - location_id='966c3874-c347-4b18-a90c-d509116717fd', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) - - def update_deployment_machine_group_machines(self, deployment_machines, project, machine_group_id): - """UpdateDeploymentMachineGroupMachines. - [Preview API] - :param [DeploymentMachine] deployment_machines: - :param str project: Project ID or project name - :param int machine_group_id: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - content = self._serialize.body(deployment_machines, '[DeploymentMachine]') - response = self._send(http_method='PATCH', - location_id='966c3874-c347-4b18-a90c-d509116717fd', - version='4.1-preview.1', - route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) - - def add_deployment_machine(self, machine, project, deployment_group_id): - """AddDeploymentMachine. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='POST', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - - def delete_deployment_machine(self, project, deployment_group_id, machine_id): - """DeleteDeploymentMachine. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - self._send(http_method='DELETE', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.1-preview.1', - route_values=route_values) - - def get_deployment_machine(self, project, deployment_group_id, machine_id, expand=None): - """GetDeploymentMachine. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('DeploymentMachine', response) - - def get_deployment_machines(self, project, deployment_group_id, tags=None, name=None, expand=None): - """GetDeploymentMachines. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param [str] tags: - :param str name: - :param str expand: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if tags is not None: - tags = ",".join(tags) - query_parameters['tags'] = self._serialize.query('tags', tags, 'str') - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) - - def replace_deployment_machine(self, machine, project, deployment_group_id, machine_id): - """ReplaceDeploymentMachine. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='PUT', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - - def update_deployment_machine(self, machine, project, deployment_group_id, machine_id): - """UpdateDeploymentMachine. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='PATCH', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - - def update_deployment_machines(self, machines, project, deployment_group_id): - """UpdateDeploymentMachines. - [Preview API] - :param [DeploymentMachine] machines: - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(machines, '[DeploymentMachine]') - response = self._send(http_method='PATCH', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.1-preview.1', - route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) - - def create_agent_pool_maintenance_definition(self, definition, pool_id): - """CreateAgentPoolMaintenanceDefinition. - [Preview API] - :param :class:` ` definition: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') - response = self._send(http_method='POST', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) - - def delete_agent_pool_maintenance_definition(self, pool_id, definition_id): - """DeleteAgentPoolMaintenanceDefinition. - [Preview API] - :param int pool_id: - :param int definition_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - self._send(http_method='DELETE', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.1-preview.1', - route_values=route_values) - - def get_agent_pool_maintenance_definition(self, pool_id, definition_id): - """GetAgentPoolMaintenanceDefinition. - [Preview API] - :param int pool_id: - :param int definition_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) - - def get_agent_pool_maintenance_definitions(self, pool_id): - """GetAgentPoolMaintenanceDefinitions. - [Preview API] - :param int pool_id: - :rtype: [TaskAgentPoolMaintenanceDefinition] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - response = self._send(http_method='GET', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskAgentPoolMaintenanceDefinition]', response) - - def update_agent_pool_maintenance_definition(self, definition, pool_id, definition_id): - """UpdateAgentPoolMaintenanceDefinition. - [Preview API] - :param :class:` ` definition: - :param int pool_id: - :param int definition_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') - response = self._send(http_method='PUT', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) - - def delete_agent_pool_maintenance_job(self, pool_id, job_id): - """DeleteAgentPoolMaintenanceJob. - [Preview API] - :param int pool_id: - :param int job_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - self._send(http_method='DELETE', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.1-preview.1', - route_values=route_values) - - def get_agent_pool_maintenance_job(self, pool_id, job_id): - """GetAgentPoolMaintenanceJob. - [Preview API] - :param int pool_id: - :param int job_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - response = self._send(http_method='GET', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('TaskAgentPoolMaintenanceJob', response) - - def get_agent_pool_maintenance_job_logs(self, pool_id, job_id): - """GetAgentPoolMaintenanceJobLogs. - [Preview API] - :param int pool_id: - :param int job_id: - :rtype: object - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - response = self._send(http_method='GET', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) - - def get_agent_pool_maintenance_jobs(self, pool_id, definition_id=None): - """GetAgentPoolMaintenanceJobs. - [Preview API] - :param int pool_id: - :param int definition_id: - :rtype: [TaskAgentPoolMaintenanceJob] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentPoolMaintenanceJob]', response) - - def queue_agent_pool_maintenance_job(self, job, pool_id): - """QueueAgentPoolMaintenanceJob. - [Preview API] - :param :class:` ` job: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') - response = self._send(http_method='POST', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceJob', response) - - def update_agent_pool_maintenance_job(self, job, pool_id, job_id): - """UpdateAgentPoolMaintenanceJob. - [Preview API] - :param :class:` ` job: - :param int pool_id: - :param int job_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') - response = self._send(http_method='PATCH', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceJob', response) - - def delete_message(self, pool_id, message_id, session_id): - """DeleteMessage. - [Preview API] - :param int pool_id: - :param long message_id: - :param str session_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if message_id is not None: - route_values['messageId'] = self._serialize.url('message_id', message_id, 'long') - query_parameters = {} - if session_id is not None: - query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') - self._send(http_method='DELETE', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - - def get_message(self, pool_id, session_id, last_message_id=None): - """GetMessage. - [Preview API] - :param int pool_id: - :param str session_id: - :param long last_message_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if session_id is not None: - query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') - if last_message_id is not None: - query_parameters['lastMessageId'] = self._serialize.query('last_message_id', last_message_id, 'long') - response = self._send(http_method='GET', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgentMessage', response) - - def refresh_agent(self, pool_id, agent_id): - """RefreshAgent. - [Preview API] - :param int pool_id: - :param int agent_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if agent_id is not None: - query_parameters['agentId'] = self._serialize.query('agent_id', agent_id, 'int') - self._send(http_method='POST', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - - def refresh_agents(self, pool_id): - """RefreshAgents. - [Preview API] - :param int pool_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - self._send(http_method='POST', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.1-preview.1', - route_values=route_values) - - def send_message(self, message, pool_id, request_id): - """SendMessage. - [Preview API] - :param :class:` ` message: - :param int pool_id: - :param long request_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if request_id is not None: - query_parameters['requestId'] = self._serialize.query('request_id', request_id, 'long') - content = self._serialize.body(message, 'TaskAgentMessage') - self._send(http_method='POST', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - - def get_package(self, package_type, platform, version): - """GetPackage. - [Preview API] - :param str package_type: - :param str platform: - :param str version: - :rtype: :class:` ` - """ - route_values = {} - if package_type is not None: - route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') - if platform is not None: - route_values['platform'] = self._serialize.url('platform', platform, 'str') - if version is not None: - route_values['version'] = self._serialize.url('version', version, 'str') - response = self._send(http_method='GET', - location_id='8ffcd551-079c-493a-9c02-54346299d144', - version='4.1-preview.2', - route_values=route_values) - return self._deserialize('PackageMetadata', response) - - def get_packages(self, package_type, platform=None, top=None): - """GetPackages. - [Preview API] - :param str package_type: - :param str platform: - :param int top: - :rtype: [PackageMetadata] - """ - route_values = {} - if package_type is not None: - route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') - if platform is not None: - route_values['platform'] = self._serialize.url('platform', platform, 'str') - query_parameters = {} - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='8ffcd551-079c-493a-9c02-54346299d144', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PackageMetadata]', response) - - def add_agent_queue(self, queue, project=None): - """AddAgentQueue. - [Preview API] - :param :class:` ` queue: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(queue, 'TaskAgentQueue') - response = self._send(http_method='POST', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentQueue', response) - - def create_team_project(self, project=None): - """CreateTeamProject. - [Preview API] - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - self._send(http_method='PUT', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.1-preview.1', - route_values=route_values) - - def delete_agent_queue(self, queue_id, project=None): - """DeleteAgentQueue. - [Preview API] - :param int queue_id: - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if queue_id is not None: - route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') - self._send(http_method='DELETE', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.1-preview.1', - route_values=route_values) - - def get_agent_queue(self, queue_id, project=None, action_filter=None): - """GetAgentQueue. - [Preview API] - :param int queue_id: - :param str project: Project ID or project name - :param str action_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if queue_id is not None: - route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') - query_parameters = {} - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgentQueue', response) - - def get_agent_queues(self, project=None, queue_name=None, action_filter=None): - """GetAgentQueues. - [Preview API] - :param str project: Project ID or project name - :param str queue_name: - :param str action_filter: - :rtype: [TaskAgentQueue] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if queue_name is not None: - query_parameters['queueName'] = self._serialize.query('queue_name', queue_name, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentQueue]', response) - - def get_agent_queues_by_ids(self, queue_ids, project=None, action_filter=None): - """GetAgentQueuesByIds. - [Preview API] - :param [int] queue_ids: - :param str project: Project ID or project name - :param str action_filter: - :rtype: [TaskAgentQueue] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if queue_ids is not None: - queue_ids = ",".join(map(str, queue_ids)) - query_parameters['queueIds'] = self._serialize.query('queue_ids', queue_ids, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentQueue]', response) - - def get_agent_queues_by_names(self, queue_names, project=None, action_filter=None): - """GetAgentQueuesByNames. - [Preview API] - :param [str] queue_names: - :param str project: Project ID or project name - :param str action_filter: - :rtype: [TaskAgentQueue] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if queue_names is not None: - queue_names = ",".join(queue_names) - query_parameters['queueNames'] = self._serialize.query('queue_names', queue_names, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentQueue]', response) - - def get_task_group_history(self, project, task_group_id): - """GetTaskGroupHistory. - [Preview API] - :param str project: Project ID or project name - :param str task_group_id: - :rtype: [TaskGroupRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if task_group_id is not None: - route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') - response = self._send(http_method='GET', - location_id='100cc92a-b255-47fa-9ab3-e44a2985a3ac', - version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskGroupRevision]', response) - - def delete_secure_file(self, project, secure_file_id): - """DeleteSecureFile. - [Preview API] Delete a secure file - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - self._send(http_method='DELETE', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values) - - def download_secure_file(self, project, secure_file_id, ticket, download=None): - """DownloadSecureFile. - [Preview API] Download a secure file by Id - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - :param str ticket: A valid download ticket - :param bool download: If download is true, the file is sent as attachement in the response body. If download is false, the response body contains the file stream. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - query_parameters = {} - if ticket is not None: - query_parameters['ticket'] = self._serialize.query('ticket', ticket, 'str') - if download is not None: - query_parameters['download'] = self._serialize.query('download', download, 'bool') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_secure_file(self, project, secure_file_id, include_download_ticket=None, action_filter=None): - """GetSecureFile. - [Preview API] Get a secure file - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - :param bool include_download_ticket: If includeDownloadTicket is true and the caller has permissions, a download ticket is included in the response. - :param str action_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - query_parameters = {} - if include_download_ticket is not None: - query_parameters['includeDownloadTicket'] = self._serialize.query('include_download_ticket', include_download_ticket, 'bool') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('SecureFile', response) - - def get_secure_files(self, project, name_pattern=None, include_download_tickets=None, action_filter=None): - """GetSecureFiles. - [Preview API] Get secure files - :param str project: Project ID or project name - :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. - :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. - :param str action_filter: Filter by secure file permissions for View, Manage or Use action. Defaults to View. - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name_pattern is not None: - query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') - if include_download_tickets is not None: - query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SecureFile]', response) - - def get_secure_files_by_ids(self, project, secure_file_ids, include_download_tickets=None, action_filter=None): - """GetSecureFilesByIds. - [Preview API] Get secure files - :param str project: Project ID or project name - :param [str] secure_file_ids: A list of secure file Ids - :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. - :param str action_filter: - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if secure_file_ids is not None: - secure_file_ids = ",".join(secure_file_ids) - query_parameters['secureFileIds'] = self._serialize.query('secure_file_ids', secure_file_ids, 'str') - if include_download_tickets is not None: - query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SecureFile]', response) - - def get_secure_files_by_names(self, project, secure_file_names, include_download_tickets=None, action_filter=None): - """GetSecureFilesByNames. - [Preview API] Get secure files - :param str project: Project ID or project name - :param [str] secure_file_names: A list of secure file Ids - :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. - :param str action_filter: - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if secure_file_names is not None: - secure_file_names = ",".join(secure_file_names) - query_parameters['secureFileNames'] = self._serialize.query('secure_file_names', secure_file_names, 'str') - if include_download_tickets is not None: - query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SecureFile]', response) - - def query_secure_files_by_properties(self, condition, project, name_pattern=None): - """QuerySecureFilesByProperties. - [Preview API] Query secure files using a name pattern and a condition on file properties. - :param str condition: The main condition syntax is described [here](https://go.microsoft.com/fwlink/?linkid=842996). Use the *property('property-name')* function to access the value of the specified property of a secure file. It returns null if the property is not set. E.g. ``` and( eq( property('devices'), '2' ), in( property('provisioning profile type'), 'ad hoc', 'development' ) ) ``` - :param str project: Project ID or project name - :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name_pattern is not None: - query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') - content = self._serialize.body(condition, 'str') - response = self._send(http_method='POST', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[SecureFile]', response) - - def update_secure_file(self, secure_file, project, secure_file_id): - """UpdateSecureFile. - [Preview API] Update the name or properties of an existing secure file - :param :class:` ` secure_file: The secure file with updated name and/or properties - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - content = self._serialize.body(secure_file, 'SecureFile') - response = self._send(http_method='PATCH', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('SecureFile', response) - - def update_secure_files(self, secure_files, project): - """UpdateSecureFiles. - [Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge. - :param [SecureFile] secure_files: A list of secure file objects. Only three field must be populated Id, Name, and Properties. The rest of fields in the object are ignored. - :param str project: Project ID or project name - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(secure_files, '[SecureFile]') - response = self._send(http_method='PATCH', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.1-preview.1', - route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[SecureFile]', response) - - def upload_secure_file(self, upload_stream, project, name): - """UploadSecureFile. - [Preview API] Upload a secure file, include the file stream in the request body - :param object upload_stream: Stream to upload + def add_deployment_group(self, deployment_group, project): + """AddDeploymentGroup. + [Preview API] Create a deployment group. + :param :class:` ` deployment_group: Deployment group to create. :param str project: Project ID or project name - :param str name: Name of the file to upload - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - content = self._serialize.body(upload_stream, 'object') + content = self._serialize.body(deployment_group, 'DeploymentGroupCreateParameter') response = self._send(http_method='POST', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - content=content, - media_type='application/octet-stream') - return self._deserialize('SecureFile', response) - - def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): - """ExecuteServiceEndpointRequest. - [Preview API] - :param :class:` ` service_endpoint_request: - :param str project: Project ID or project name - :param str endpoint_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if endpoint_id is not None: - query_parameters['endpointId'] = self._serialize.query('endpoint_id', endpoint_id, 'str') - content = self._serialize.body(service_endpoint_request, 'ServiceEndpointRequest') - response = self._send(http_method='POST', - location_id='f956a7de-d766-43af-81b1-e9e349245634', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('ServiceEndpointRequestResult', response) - - def create_service_endpoint(self, endpoint, project): - """CreateServiceEndpoint. - [Preview API] - :param :class:` ` endpoint: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(endpoint, 'ServiceEndpoint') - response = self._send(http_method='POST', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.1-preview.2', - route_values=route_values, content=content) - return self._deserialize('ServiceEndpoint', response) + return self._deserialize('DeploymentGroup', response) - def delete_service_endpoint(self, project, endpoint_id): - """DeleteServiceEndpoint. - [Preview API] + def delete_deployment_group(self, project, deployment_group_id): + """DeleteDeploymentGroup. + [Preview API] Delete a deployment group. :param str project: Project ID or project name - :param str endpoint_id: + :param int deployment_group_id: ID of the deployment group to be deleted. """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') self._send(http_method='DELETE', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.1-preview.2', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.1-preview.1', route_values=route_values) - def get_service_endpoint_details(self, project, endpoint_id): - """GetServiceEndpointDetails. - [Preview API] - :param str project: Project ID or project name - :param str endpoint_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') - response = self._send(http_method='GET', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.1-preview.2', - route_values=route_values) - return self._deserialize('ServiceEndpoint', response) - - def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, include_failed=None): - """GetServiceEndpoints. - [Preview API] - :param str project: Project ID or project name - :param str type: - :param [str] auth_schemes: - :param [str] endpoint_ids: - :param bool include_failed: - :rtype: [ServiceEndpoint] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if type is not None: - query_parameters['type'] = self._serialize.query('type', type, 'str') - if auth_schemes is not None: - auth_schemes = ",".join(auth_schemes) - query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') - if endpoint_ids is not None: - endpoint_ids = ",".join(endpoint_ids) - query_parameters['endpointIds'] = self._serialize.query('endpoint_ids', endpoint_ids, 'str') - if include_failed is not None: - query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') - response = self._send(http_method='GET', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) - - def get_service_endpoints_by_names(self, project, endpoint_names, type=None, auth_schemes=None, include_failed=None): - """GetServiceEndpointsByNames. - [Preview API] + def get_deployment_group(self, project, deployment_group_id, action_filter=None, expand=None): + """GetDeploymentGroup. + [Preview API] Get a deployment group by its ID. :param str project: Project ID or project name - :param [str] endpoint_names: - :param str type: - :param [str] auth_schemes: - :param bool include_failed: - :rtype: [ServiceEndpoint] + :param int deployment_group_id: ID of the deployment group. + :param str action_filter: Get the deployment group only if this action can be performed on it. + :param str expand: Include these additional details in the returned object. + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') query_parameters = {} - if endpoint_names is not None: - endpoint_names = ",".join(endpoint_names) - query_parameters['endpointNames'] = self._serialize.query('endpoint_names', endpoint_names, 'str') - if type is not None: - query_parameters['type'] = self._serialize.query('type', type, 'str') - if auth_schemes is not None: - auth_schemes = ",".join(auth_schemes) - query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') - if include_failed is not None: - query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) - - def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): - """UpdateServiceEndpoint. - [Preview API] - :param :class:` ` endpoint: - :param str project: Project ID or project name - :param str endpoint_id: - :param str operation: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') - query_parameters = {} - if operation is not None: - query_parameters['operation'] = self._serialize.query('operation', operation, 'str') - content = self._serialize.body(endpoint, 'ServiceEndpoint') - response = self._send(http_method='PUT', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.1-preview.2', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('ServiceEndpoint', response) + query_parameters=query_parameters) + return self._deserialize('DeploymentGroup', response) - def update_service_endpoints(self, endpoints, project): - """UpdateServiceEndpoints. - [Preview API] - :param [ServiceEndpoint] endpoints: - :param str project: Project ID or project name - :rtype: [ServiceEndpoint] + def get_deployment_groups(self, project, name=None, action_filter=None, expand=None, continuation_token=None, top=None, ids=None): + """GetDeploymentGroups. + [Preview API] Get a list of deployment groups by name or IDs. + :param str project: Project ID or project name + :param str name: Name of the deployment group. + :param str action_filter: Get only deployment groups on which this action can be performed. + :param str expand: Include these additional details in the returned objects. + :param str continuation_token: Get deployment groups with names greater than this continuationToken lexicographically. + :param int top: Maximum number of deployment groups to return. Default is **1000**. + :param [int] ids: Comma separated list of IDs of the deployment groups. + :rtype: [DeploymentGroup] """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(endpoints, '[ServiceEndpoint]') - response = self._send(http_method='PUT', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.1-preview.2', - route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) - - def get_service_endpoint_types(self, type=None, scheme=None): - """GetServiceEndpointTypes. - [Preview API] - :param str type: - :param str scheme: - :rtype: [ServiceEndpointType] - """ query_parameters = {} - if type is not None: - query_parameters['type'] = self._serialize.query('type', type, 'str') - if scheme is not None: - query_parameters['scheme'] = self._serialize.query('scheme', scheme, 'str') + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') response = self._send(http_method='GET', - location_id='7c74af83-8605-45c1-a30b-7a05d5d7f8c1', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', version='4.1-preview.1', + route_values=route_values, query_parameters=query_parameters, returns_collection=True) - return self._deserialize('[ServiceEndpointType]', response) + return self._deserialize('[DeploymentGroup]', response) - def add_deployment_target(self, machine, project, deployment_group_id): - """AddDeploymentTarget. - [Preview API] - :param :class:` ` machine: + def update_deployment_group(self, deployment_group, project, deployment_group_id): + """UpdateDeploymentGroup. + [Preview API] Update a deployment group. + :param :class:` ` deployment_group: Deployment group to update. :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: :class:` ` + :param int deployment_group_id: ID of the deployment group. + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') if deployment_group_id is not None: route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='POST', - location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + content = self._serialize.body(deployment_group, 'DeploymentGroupUpdateParameter') + response = self._send(http_method='PATCH', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', version='4.1-preview.1', route_values=route_values, content=content) - return self._deserialize('DeploymentMachine', response) + return self._deserialize('DeploymentGroup', response) def delete_deployment_target(self, project, deployment_group_id, target_id): """DeleteDeploymentTarget. - [Preview API] + [Preview API] Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too. :param str project: Project ID or project name - :param int deployment_group_id: - :param int target_id: + :param int deployment_group_id: ID of the deployment group in which deployment target is deleted. + :param int target_id: ID of the deployment target to delete. """ route_values = {} if project is not None: @@ -1892,11 +164,11 @@ def delete_deployment_target(self, project, deployment_group_id, target_id): def get_deployment_target(self, project, deployment_group_id, target_id, expand=None): """GetDeploymentTarget. - [Preview API] + [Preview API] Get a deployment target by its ID in a deployment group :param str project: Project ID or project name - :param int deployment_group_id: - :param int target_id: - :param str expand: + :param int deployment_group_id: ID of the deployment group to which deployment target belongs. + :param int target_id: ID of the deployment target to return. + :param str expand: Include these additional details in the returned objects. :rtype: :class:` ` """ route_values = {} @@ -1918,17 +190,17 @@ def get_deployment_target(self, project, deployment_group_id, target_id, expand= def get_deployment_targets(self, project, deployment_group_id, tags=None, name=None, partial_name_match=None, expand=None, agent_status=None, agent_job_result=None, continuation_token=None, top=None): """GetDeploymentTargets. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param [str] tags: - :param str name: - :param bool partial_name_match: - :param str expand: - :param str agent_status: - :param str agent_job_result: - :param str continuation_token: - :param int top: + [Preview API] Get a list of deployment targets in a deployment group. + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group. + :param [str] tags: Get only the deployment targets that contain all these comma separted list of tags. + :param str name: Name pattern of the deployment targets to return. + :param bool partial_name_match: When set to true, treats **name** as pattern. Else treats it as absolute match. Default is **false**. + :param str expand: Include these additional details in the returned objects. + :param str agent_status: Get only deployment targets that have this status. + :param str agent_job_result: Get only deployment targets that have this last job result. + :param str continuation_token: Get deployment targets with names greater than this continuationToken lexicographically. + :param int top: Maximum number of deployment targets to return. Default is **1000**. :rtype: [DeploymentMachine] """ route_values = {} @@ -1962,60 +234,12 @@ def get_deployment_targets(self, project, deployment_group_id, tags=None, name=N returns_collection=True) return self._deserialize('[DeploymentMachine]', response) - def replace_deployment_target(self, machine, project, deployment_group_id, target_id): - """ReplaceDeploymentTarget. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :param int target_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if target_id is not None: - route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='PUT', - location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - - def update_deployment_target(self, machine, project, deployment_group_id, target_id): - """UpdateDeploymentTarget. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :param int target_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if target_id is not None: - route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='PATCH', - location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - def update_deployment_targets(self, machines, project, deployment_group_id): """UpdateDeploymentTargets. - [Preview API] - :param [DeploymentMachine] machines: + [Preview API] Update tags of a list of deployment targets in a deployment group. + :param [DeploymentTargetUpdateParameter] machines: Deployment targets with tags to udpdate. :param str project: Project ID or project name - :param int deployment_group_id: + :param int deployment_group_id: ID of the deployment group in which deployment targets are updated. :rtype: [DeploymentMachine] """ route_values = {} @@ -2023,7 +247,7 @@ def update_deployment_targets(self, machines, project, deployment_group_id): route_values['project'] = self._serialize.url('project', project, 'str') if deployment_group_id is not None: route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(machines, '[DeploymentMachine]') + content = self._serialize.body(machines, '[DeploymentTargetUpdateParameter]') response = self._send(http_method='PATCH', location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', version='4.1-preview.1', @@ -2071,14 +295,17 @@ def delete_task_group(self, project, task_group_id, comment=None): route_values=route_values, query_parameters=query_parameters) - def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_filter=None, deleted=None): + def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_filter=None, deleted=None, top=None, continuation_token=None, query_order=None): """GetTaskGroups. - [Preview API] Get a list of task groups. + [Preview API] List task groups. :param str project: Project ID or project name :param str task_group_id: Id of the task group. :param bool expanded: 'true' to recursively expand task groups. Default is 'false'. :param str task_id_filter: Guid of the taskId to filter. :param bool deleted: 'true'to include deleted task groups. Default is 'false'. + :param int top: Number of task groups to get. + :param datetime continuation_token: Gets the task groups after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'CreatedOnDescending'. :rtype: [TaskGroup] """ route_values = {} @@ -2093,6 +320,12 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') if deleted is not None: query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', version='4.1-preview.1', @@ -2122,150 +355,17 @@ def update_task_group(self, task_group, project, task_group_id=None): content=content) return self._deserialize('TaskGroup', response) - def delete_task_definition(self, task_id): - """DeleteTaskDefinition. - [Preview API] - :param str task_id: - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - self._send(http_method='DELETE', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.1-preview.1', - route_values=route_values) - - def get_task_content_zip(self, task_id, version_string, visibility=None, scope_local=None): - """GetTaskContentZip. - [Preview API] - :param str task_id: - :param str version_string: - :param [str] visibility: - :param bool scope_local: - :rtype: object - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - if version_string is not None: - route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') - query_parameters = {} - if visibility is not None: - query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') - if scope_local is not None: - query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') - response = self._send(http_method='GET', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_task_definition(self, task_id, version_string, visibility=None, scope_local=None): - """GetTaskDefinition. - [Preview API] - :param str task_id: - :param str version_string: - :param [str] visibility: - :param bool scope_local: - :rtype: :class:` ` - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - if version_string is not None: - route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') - query_parameters = {} - if visibility is not None: - query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') - if scope_local is not None: - query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') - response = self._send(http_method='GET', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskDefinition', response) - - def get_task_definitions(self, task_id=None, visibility=None, scope_local=None): - """GetTaskDefinitions. - [Preview API] - :param str task_id: - :param [str] visibility: - :param bool scope_local: - :rtype: [TaskDefinition] - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - query_parameters = {} - if visibility is not None: - query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') - if scope_local is not None: - query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') - response = self._send(http_method='GET', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskDefinition]', response) - - def update_agent_update_state(self, pool_id, agent_id, current_state): - """UpdateAgentUpdateState. - [Preview API] - :param int pool_id: - :param int agent_id: - :param str current_state: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - query_parameters = {} - if current_state is not None: - query_parameters['currentState'] = self._serialize.query('current_state', current_state, 'str') - response = self._send(http_method='PUT', - location_id='8cc1b02b-ae49-4516-b5ad-4f9b29967c30', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgent', response) - - def update_agent_user_capabilities(self, user_capabilities, pool_id, agent_id): - """UpdateAgentUserCapabilities. - [Preview API] - :param {str} user_capabilities: - :param int pool_id: - :param int agent_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - content = self._serialize.body(user_capabilities, '{str}') - response = self._send(http_method='PUT', - location_id='30ba3ada-fedf-4da8-bbb5-dacf2f82e176', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - def add_variable_group(self, group, project): """AddVariableGroup. - [Preview API] - :param :class:` ` group: + [Preview API] Add a variable group. + :param :class:` ` group: Variable group to add. :param str project: Project ID or project name :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(group, 'VariableGroup') + content = self._serialize.body(group, 'VariableGroupParameters') response = self._send(http_method='POST', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', version='4.1-preview.1', @@ -2275,9 +375,9 @@ def add_variable_group(self, group, project): def delete_variable_group(self, project, group_id): """DeleteVariableGroup. - [Preview API] + [Preview API] Delete a variable group :param str project: Project ID or project name - :param int group_id: + :param int group_id: Id of the variable group. """ route_values = {} if project is not None: @@ -2291,9 +391,9 @@ def delete_variable_group(self, project, group_id): def get_variable_group(self, project, group_id): """GetVariableGroup. - [Preview API] + [Preview API] Get a variable group. :param str project: Project ID or project name - :param int group_id: + :param int group_id: Id of the variable group. :rtype: :class:` ` """ route_values = {} @@ -2307,12 +407,15 @@ def get_variable_group(self, project, group_id): route_values=route_values) return self._deserialize('VariableGroup', response) - def get_variable_groups(self, project, group_name=None, action_filter=None): + def get_variable_groups(self, project, group_name=None, action_filter=None, top=None, continuation_token=None, query_order=None): """GetVariableGroups. - [Preview API] + [Preview API] Get variable groups. :param str project: Project ID or project name - :param str group_name: - :param str action_filter: + :param str group_name: Name of variable group. + :param str action_filter: Action filter for the variable group. It specifies the action which can be performed on the variable groups. + :param int top: Number of variable groups to get. + :param int continuation_token: Gets the variable groups after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdDescending'. :rtype: [VariableGroup] """ route_values = {} @@ -2323,6 +426,12 @@ def get_variable_groups(self, project, group_name=None, action_filter=None): query_parameters['groupName'] = self._serialize.query('group_name', group_name, 'str') if action_filter is not None: query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', version='4.1-preview.1', @@ -2333,9 +442,9 @@ def get_variable_groups(self, project, group_name=None, action_filter=None): def get_variable_groups_by_id(self, project, group_ids): """GetVariableGroupsById. - [Preview API] + [Preview API] Get variable groups by ids. :param str project: Project ID or project name - :param [int] group_ids: + :param [int] group_ids: Comma separated list of Ids of variable groups. :rtype: [VariableGroup] """ route_values = {} @@ -2355,10 +464,10 @@ def get_variable_groups_by_id(self, project, group_ids): def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. - [Preview API] - :param :class:` ` group: + [Preview API] Update a variable group. + :param :class:` ` group: Variable group to update. :param str project: Project ID or project name - :param int group_id: + :param int group_id: Id of the variable group to update. :rtype: :class:` ` """ route_values = {} @@ -2366,7 +475,7 @@ def update_variable_group(self, group, project, group_id): route_values['project'] = self._serialize.url('project', project, 'str') if group_id is not None: route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') - content = self._serialize.body(group, 'VariableGroup') + content = self._serialize.body(group, 'VariableGroupParameters') response = self._send(http_method='PUT', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', version='4.1-preview.1', @@ -2374,50 +483,3 @@ def update_variable_group(self, group, project, group_id): content=content) return self._deserialize('VariableGroup', response) - def acquire_access_token(self, authentication_request): - """AcquireAccessToken. - [Preview API] - :param :class:` ` authentication_request: - :rtype: :class:` ` - """ - content = self._serialize.body(authentication_request, 'AadOauthTokenRequest') - response = self._send(http_method='POST', - location_id='9c63205e-3a0f-42a0-ad88-095200f13607', - version='4.1-preview.1', - content=content) - return self._deserialize('AadOauthTokenResult', response) - - def create_aad_oAuth_request(self, tenant_id, redirect_uri, prompt_option=None, complete_callback_payload=None): - """CreateAadOAuthRequest. - [Preview API] - :param str tenant_id: - :param str redirect_uri: - :param str prompt_option: - :param str complete_callback_payload: - :rtype: str - """ - query_parameters = {} - if tenant_id is not None: - query_parameters['tenantId'] = self._serialize.query('tenant_id', tenant_id, 'str') - if redirect_uri is not None: - query_parameters['redirectUri'] = self._serialize.query('redirect_uri', redirect_uri, 'str') - if prompt_option is not None: - query_parameters['promptOption'] = self._serialize.query('prompt_option', prompt_option, 'str') - if complete_callback_payload is not None: - query_parameters['completeCallbackPayload'] = self._serialize.query('complete_callback_payload', complete_callback_payload, 'str') - response = self._send(http_method='POST', - location_id='9c63205e-3a0f-42a0-ad88-095200f13607', - version='4.1-preview.1', - query_parameters=query_parameters) - return self._deserialize('str', response) - - def get_vsts_aad_tenant_id(self): - """GetVstsAadTenantId. - [Preview API] - :rtype: str - """ - response = self._send(http_method='GET', - location_id='9c63205e-3a0f-42a0-ad88-095200f13607', - version='4.1-preview.1') - return self._deserialize('str', response) - diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index 38f1783d..bb1a27bf 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -1557,11 +1557,11 @@ def create_test_session(self, test_session, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1593,11 +1593,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1636,11 +1636,11 @@ def update_test_session(self, test_session, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/test/v4_1/models/__init__.py b/vsts/vsts/test/v4_1/models/__init__.py index 36dcb63f..edc3f32d 100644 --- a/vsts/vsts/test/v4_1/models/__init__.py +++ b/vsts/vsts/test/v4_1/models/__init__.py @@ -10,6 +10,7 @@ from .aggregated_results_analysis import AggregatedResultsAnalysis from .aggregated_results_by_outcome import AggregatedResultsByOutcome from .aggregated_results_difference import AggregatedResultsDifference +from .aggregated_runs_by_state import AggregatedRunsByState from .build_configuration import BuildConfiguration from .build_coverage import BuildCoverage from .build_reference import BuildReference @@ -26,6 +27,7 @@ from .failing_since import FailingSince from .field_details_for_test_results import FieldDetailsForTestResults from .function_coverage import FunctionCoverage +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .last_result_details import LastResultDetails from .linked_work_items_query import LinkedWorkItemsQuery @@ -38,6 +40,7 @@ from .point_update_model import PointUpdateModel from .property_bag import PropertyBag from .query_model import QueryModel +from .reference_links import ReferenceLinks from .release_environment_definition_reference import ReleaseEnvironmentDefinitionReference from .release_reference import ReleaseReference from .result_retention_settings import ResultRetentionSettings @@ -47,6 +50,7 @@ from .run_statistic import RunStatistic from .run_update_model import RunUpdateModel from .shallow_reference import ShallowReference +from .shallow_test_case_result import ShallowTestCaseResult from .shared_step_model import SharedStepModel from .suite_create_model import SuiteCreateModel from .suite_entry import SuiteEntry @@ -109,6 +113,7 @@ 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', + 'AggregatedRunsByState', 'BuildConfiguration', 'BuildCoverage', 'BuildReference', @@ -125,6 +130,7 @@ 'FailingSince', 'FieldDetailsForTestResults', 'FunctionCoverage', + 'GraphSubjectBase', 'IdentityRef', 'LastResultDetails', 'LinkedWorkItemsQuery', @@ -137,6 +143,7 @@ 'PointUpdateModel', 'PropertyBag', 'QueryModel', + 'ReferenceLinks', 'ReleaseEnvironmentDefinitionReference', 'ReleaseReference', 'ResultRetentionSettings', @@ -146,6 +153,7 @@ 'RunStatistic', 'RunUpdateModel', 'ShallowReference', + 'ShallowTestCaseResult', 'SharedStepModel', 'SuiteCreateModel', 'SuiteEntry', diff --git a/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py b/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py index fc5b6be0..2328b2ae 100644 --- a/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py +++ b/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py @@ -16,6 +16,8 @@ class AggregatedDataForResultTrend(Model): :type duration: object :param results_by_outcome: :type results_by_outcome: dict + :param run_summary_by_state: + :type run_summary_by_state: dict :param test_results_context: :type test_results_context: :class:`TestResultsContext ` :param total_tests: @@ -25,13 +27,15 @@ class AggregatedDataForResultTrend(Model): _attribute_map = { 'duration': {'key': 'duration', 'type': 'object'}, 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, 'total_tests': {'key': 'totalTests', 'type': 'int'} } - def __init__(self, duration=None, results_by_outcome=None, test_results_context=None, total_tests=None): + def __init__(self, duration=None, results_by_outcome=None, run_summary_by_state=None, test_results_context=None, total_tests=None): super(AggregatedDataForResultTrend, self).__init__() self.duration = duration self.results_by_outcome = results_by_outcome + self.run_summary_by_state = run_summary_by_state self.test_results_context = test_results_context self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py b/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py index ec00e302..d0e2fb82 100644 --- a/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py +++ b/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py @@ -22,6 +22,8 @@ class AggregatedResultsAnalysis(Model): :type results_by_outcome: dict :param results_difference: :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_state: + :type run_summary_by_state: dict :param total_tests: :type total_tests: int """ @@ -32,14 +34,16 @@ class AggregatedResultsAnalysis(Model): 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, 'total_tests': {'key': 'totalTests', 'type': 'int'} } - def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, total_tests=None): + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): super(AggregatedResultsAnalysis, self).__init__() self.duration = duration self.not_reported_results_by_outcome = not_reported_results_by_outcome self.previous_context = previous_context self.results_by_outcome = results_by_outcome self.results_difference = results_difference + self.run_summary_by_state = run_summary_by_state self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_1/models/identity_ref.py b/vsts/vsts/test/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/test/v4_1/models/identity_ref.py +++ b/vsts/vsts/test/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_attachment.py b/vsts/vsts/test/v4_1/models/test_attachment.py index fa2cc043..908c2d12 100644 --- a/vsts/vsts/test/v4_1/models/test_attachment.py +++ b/vsts/vsts/test/v4_1/models/test_attachment.py @@ -22,6 +22,8 @@ class TestAttachment(Model): :type file_name: str :param id: :type id: int + :param size: + :type size: long :param url: :type url: str """ @@ -32,14 +34,16 @@ class TestAttachment(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'file_name': {'key': 'fileName', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, + 'size': {'key': 'size', 'type': 'long'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, url=None): + def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, size=None, url=None): super(TestAttachment, self).__init__() self.attachment_type = attachment_type self.comment = comment self.created_date = created_date self.file_name = file_name self.id = id + self.size = size self.url = url diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index d70d5b28..f44c59b3 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -962,7 +962,7 @@ def get_points_by_query(self, query, project, skip=None, top=None): content=content) return self._deserialize('TestPointsQuery', response) - def get_test_result_details_for_build(self, project, build_id, publish_context=None, group_by=None, filter=None, orderby=None): + def get_test_result_details_for_build(self, project, build_id, publish_context=None, group_by=None, filter=None, orderby=None, should_include_results=None, query_run_summary_for_in_progress=None): """GetTestResultDetailsForBuild. [Preview API] :param str project: Project ID or project name @@ -971,6 +971,8 @@ def get_test_result_details_for_build(self, project, build_id, publish_context=N :param str group_by: :param str filter: :param str orderby: + :param bool should_include_results: + :param bool query_run_summary_for_in_progress: :rtype: :class:` ` """ route_values = {} @@ -987,6 +989,10 @@ def get_test_result_details_for_build(self, project, build_id, publish_context=N query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') if orderby is not None: query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if should_include_results is not None: + query_parameters['shouldIncludeResults'] = self._serialize.query('should_include_results', should_include_results, 'bool') + if query_run_summary_for_in_progress is not None: + query_parameters['queryRunSummaryForInProgress'] = self._serialize.query('query_run_summary_for_in_progress', query_run_summary_for_in_progress, 'bool') response = self._send(http_method='GET', location_id='efb387b0-10d5-42e7-be40-95e06ee9430f', version='4.1-preview.1', @@ -994,7 +1000,7 @@ def get_test_result_details_for_build(self, project, build_id, publish_context=N query_parameters=query_parameters) return self._deserialize('TestResultsDetails', response) - def get_test_result_details_for_release(self, project, release_id, release_env_id, publish_context=None, group_by=None, filter=None, orderby=None): + def get_test_result_details_for_release(self, project, release_id, release_env_id, publish_context=None, group_by=None, filter=None, orderby=None, should_include_results=None, query_run_summary_for_in_progress=None): """GetTestResultDetailsForRelease. [Preview API] :param str project: Project ID or project name @@ -1004,6 +1010,8 @@ def get_test_result_details_for_release(self, project, release_id, release_env_i :param str group_by: :param str filter: :param str orderby: + :param bool should_include_results: + :param bool query_run_summary_for_in_progress: :rtype: :class:` ` """ route_values = {} @@ -1022,6 +1030,10 @@ def get_test_result_details_for_release(self, project, release_id, release_env_i query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') if orderby is not None: query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if should_include_results is not None: + query_parameters['shouldIncludeResults'] = self._serialize.query('should_include_results', should_include_results, 'bool') + if query_run_summary_for_in_progress is not None: + query_parameters['queryRunSummaryForInProgress'] = self._serialize.query('query_run_summary_for_in_progress', query_run_summary_for_in_progress, 'bool') response = self._send(http_method='GET', location_id='b834ec7e-35bb-450f-a3c8-802e70ca40dd', version='4.1-preview.1', @@ -1648,11 +1660,11 @@ def create_test_session(self, test_session, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1684,11 +1696,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1727,11 +1739,11 @@ def update_test_session(self, test_session, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1841,7 +1853,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, returns_collection=True) return self._deserialize('[SuiteTestCase]', response) @@ -1866,7 +1878,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values) return self._deserialize('SuiteTestCase', response) @@ -1887,7 +1899,7 @@ def get_test_cases(self, project, plan_id, suite_id): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, returns_collection=True) return self._deserialize('[SuiteTestCase]', response) @@ -1911,7 +1923,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') self._send(http_method='DELETE', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values) def create_test_suite(self, test_suite, project, plan_id, suite_id): @@ -1933,7 +1945,7 @@ def create_test_suite(self, test_suite, project, plan_id, suite_id): content = self._serialize.body(test_suite, 'SuiteCreateModel') response = self._send(http_method='POST', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, content=content, returns_collection=True) @@ -1955,16 +1967,16 @@ def delete_test_suite(self, project, plan_id, suite_id): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') self._send(http_method='DELETE', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values) - def get_test_suite_by_id(self, project, plan_id, suite_id, include_child_suites=None): + def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): """GetTestSuiteById. [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: - :param bool include_child_suites: + :param int expand: :rtype: :class:` ` """ route_values = {} @@ -1975,21 +1987,21 @@ def get_test_suite_by_id(self, project, plan_id, suite_id, include_child_suites= if suite_id is not None: route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') query_parameters = {} - if include_child_suites is not None: - query_parameters['includeChildSuites'] = self._serialize.query('include_child_suites', include_child_suites, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'int') response = self._send(http_method='GET', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestSuite', response) - def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=None, top=None, as_tree_view=None): + def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top=None, as_tree_view=None): """GetTestSuitesForPlan. [Preview API] :param str project: Project ID or project name :param int plan_id: - :param bool include_suites: + :param int expand: :param int skip: :param int top: :param bool as_tree_view: @@ -2001,8 +2013,8 @@ def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=N if plan_id is not None: route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') query_parameters = {} - if include_suites is not None: - query_parameters['includeSuites'] = self._serialize.query('include_suites', include_suites, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'int') if skip is not None: query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') if top is not None: @@ -2011,7 +2023,7 @@ def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=N query_parameters['$asTreeView'] = self._serialize.query('as_tree_view', as_tree_view, 'bool') response = self._send(http_method='GET', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2036,7 +2048,7 @@ def update_test_suite(self, suite_update_model, project, plan_id, suite_id): content = self._serialize.body(suite_update_model, 'SuiteUpdateModel') response = self._send(http_method='PATCH', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, content=content) return self._deserialize('TestSuite', response) @@ -2052,7 +2064,7 @@ def get_suites_by_test_case_id(self, test_case_id): query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int') response = self._send(http_method='GET', location_id='09a6167b-e969-4775-9247-b94cf3819caf', - version='4.1-preview.1', + version='4.1-preview.3', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[TestSuite]', response) diff --git a/vsts/vsts/tfvc/v4_1/models/__init__.py b/vsts/vsts/tfvc/v4_1/models/__init__.py index d49eca21..54666a57 100644 --- a/vsts/vsts/tfvc/v4_1/models/__init__.py +++ b/vsts/vsts/tfvc/v4_1/models/__init__.py @@ -12,6 +12,7 @@ from .file_content_metadata import FileContentMetadata from .git_repository import GitRepository from .git_repository_ref import GitRepositoryRef +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .item_content import ItemContent from .item_model import ItemModel @@ -50,6 +51,7 @@ 'FileContentMetadata', 'GitRepository', 'GitRepositoryRef', + 'GraphSubjectBase', 'IdentityRef', 'ItemContent', 'ItemModel', diff --git a/vsts/vsts/tfvc/v4_1/models/identity_ref.py b/vsts/vsts/tfvc/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/tfvc/v4_1/models/identity_ref.py +++ b/vsts/vsts/tfvc/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/item_model.py b/vsts/vsts/tfvc/v4_1/models/item_model.py index 362fed29..e346b148 100644 --- a/vsts/vsts/tfvc/v4_1/models/item_model.py +++ b/vsts/vsts/tfvc/v4_1/models/item_model.py @@ -14,6 +14,8 @@ class ItemModel(Model): :param _links: :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: :type content_metadata: :class:`FileContentMetadata ` :param is_folder: @@ -28,6 +30,7 @@ class ItemModel(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -35,9 +38,10 @@ class ItemModel(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): super(ItemModel, self).__init__() self._links = _links + self.content = content self.content_metadata = content_metadata self.is_folder = is_folder self.is_sym_link = is_sym_link diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_item.py b/vsts/vsts/tfvc/v4_1/models/tfvc_item.py index fd0ceaf9..7d30e4fd 100644 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_item.py +++ b/vsts/vsts/tfvc/v4_1/models/tfvc_item.py @@ -14,6 +14,8 @@ class TfvcItem(ItemModel): :param _links: :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: :type content_metadata: :class:`FileContentMetadata ` :param is_folder: @@ -42,6 +44,7 @@ class TfvcItem(ItemModel): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -56,8 +59,8 @@ class TfvcItem(ItemModel): 'version': {'key': 'version', 'type': 'int'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): - super(TfvcItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): + super(TfvcItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) self.change_date = change_date self.deletion_id = deletion_id self.hash_value = hash_value diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/vsts/vsts/tfvc/v4_1/tfvc_client.py index c29ad5df..3a6e87f5 100644 --- a/vsts/vsts/tfvc/v4_1/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_1/tfvc_client.py @@ -327,7 +327,7 @@ def get_items_batch_zip(self, item_request_data, project=None): content=content) return self._deserialize('object', response) - def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItem. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. @@ -336,7 +336,8 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: :class:` ` """ route_values = {} @@ -360,6 +361,8 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.Version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1-preview.1', @@ -367,7 +370,7 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters=query_parameters) return self._deserialize('TfvcItem', response) - def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItemContent. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. @@ -376,7 +379,8 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -400,6 +404,8 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.Version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1-preview.1', @@ -442,7 +448,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include returns_collection=True) return self._deserialize('[TfvcItem]', response) - def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItemText. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. @@ -451,7 +457,8 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -475,6 +482,8 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.Version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1-preview.1', @@ -482,7 +491,7 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope query_parameters=query_parameters) return self._deserialize('object', response) - def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItemZip. [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. @@ -491,7 +500,8 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -515,6 +525,8 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.Version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1-preview.1', diff --git a/vsts/vsts/work/v4_0/work_client.py b/vsts/vsts/work/v4_0/work_client.py index 8364608d..ea88bda2 100644 --- a/vsts/vsts/work/v4_0/work_client.py +++ b/vsts/vsts/work/v4_0/work_client.py @@ -35,11 +35,11 @@ def get_backlog_configurations(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -81,11 +81,11 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -134,11 +134,11 @@ def get_board(self, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -165,11 +165,11 @@ def get_boards(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -197,11 +197,11 @@ def set_board_options(self, options, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -232,11 +232,11 @@ def get_board_user_settings(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -265,11 +265,11 @@ def update_board_user_settings(self, board_user_settings, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -298,11 +298,11 @@ def get_capacities(self, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -331,11 +331,11 @@ def get_capacity(self, team_context, iteration_id, team_member_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -365,11 +365,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -401,11 +401,11 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -437,11 +437,11 @@ def get_board_card_rule_settings(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -470,11 +470,11 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -504,11 +504,11 @@ def get_board_card_settings(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -537,11 +537,11 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -572,11 +572,11 @@ def get_board_chart(self, team_context, board, name): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -606,11 +606,11 @@ def get_board_charts(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -641,11 +641,11 @@ def update_board_chart(self, chart, team_context, board, name): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -676,11 +676,11 @@ def get_board_columns(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -709,11 +709,11 @@ def update_board_columns(self, board_columns, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -771,11 +771,11 @@ def delete_team_iteration(self, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -801,11 +801,11 @@ def get_team_iteration(self, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -832,11 +832,11 @@ def get_team_iterations(self, team_context, timeframe=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -866,11 +866,11 @@ def post_team_iteration(self, iteration, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1001,11 +1001,11 @@ def get_board_rows(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1034,11 +1034,11 @@ def update_board_rows(self, board_rows, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1068,11 +1068,11 @@ def get_team_days_off(self, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1100,11 +1100,11 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1132,11 +1132,11 @@ def get_team_field_values(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1161,11 +1161,11 @@ def update_team_field_values(self, patch, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1191,11 +1191,11 @@ def get_team_settings(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1220,11 +1220,11 @@ def update_team_settings(self, team_settings_patch, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work/v4_1/models/__init__.py b/vsts/vsts/work/v4_1/models/__init__.py index 964adda3..9414a1cb 100644 --- a/vsts/vsts/work/v4_1/models/__init__.py +++ b/vsts/vsts/work/v4_1/models/__init__.py @@ -13,6 +13,7 @@ from .backlog_fields import BacklogFields from .backlog_level import BacklogLevel from .backlog_level_configuration import BacklogLevelConfiguration +from .backlog_level_work_items import BacklogLevelWorkItems from .board import Board from .board_card_rule_settings import BoardCardRuleSettings from .board_card_settings import BoardCardSettings @@ -32,7 +33,9 @@ from .field_reference import FieldReference from .field_setting import FieldSetting from .filter_clause import FilterClause +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef +from .iteration_work_items import IterationWorkItems from .member import Member from .parent_child_wIMap import ParentChildWIMap from .plan import Plan @@ -60,6 +63,8 @@ from .update_plan import UpdatePlan from .work_item_color import WorkItemColor from .work_item_field_reference import WorkItemFieldReference +from .work_item_link import WorkItemLink +from .work_item_reference import WorkItemReference from .work_item_tracking_resource_reference import WorkItemTrackingResourceReference from .work_item_type_reference import WorkItemTypeReference from .work_item_type_state_info import WorkItemTypeStateInfo @@ -72,6 +77,7 @@ 'BacklogFields', 'BacklogLevel', 'BacklogLevelConfiguration', + 'BacklogLevelWorkItems', 'Board', 'BoardCardRuleSettings', 'BoardCardSettings', @@ -91,7 +97,9 @@ 'FieldReference', 'FieldSetting', 'FilterClause', + 'GraphSubjectBase', 'IdentityRef', + 'IterationWorkItems', 'Member', 'ParentChildWIMap', 'Plan', @@ -119,6 +127,8 @@ 'UpdatePlan', 'WorkItemColor', 'WorkItemFieldReference', + 'WorkItemLink', + 'WorkItemReference', 'WorkItemTrackingResourceReference', 'WorkItemTypeReference', 'WorkItemTypeStateInfo', diff --git a/vsts/vsts/work/v4_1/models/backlog_level_configuration.py b/vsts/vsts/work/v4_1/models/backlog_level_configuration.py index 74de2696..970bf259 100644 --- a/vsts/vsts/work/v4_1/models/backlog_level_configuration.py +++ b/vsts/vsts/work/v4_1/models/backlog_level_configuration.py @@ -22,10 +22,14 @@ class BacklogLevelConfiguration(Model): :type default_work_item_type: :class:`WorkItemTypeReference ` :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) :type id: str + :param is_hidden: Indicates whether the backlog level is hidden + :type is_hidden: bool :param name: Backlog Name :type name: str :param rank: Backlog Rank (Taskbacklog is 0) :type rank: int + :param type: The type of this backlog level + :type type: object :param work_item_count_limit: Max number of work items to show in the given backlog :type work_item_count_limit: int :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs @@ -38,20 +42,24 @@ class BacklogLevelConfiguration(Model): 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, 'id': {'key': 'id', 'type': 'str'}, + 'is_hidden': {'key': 'isHidden', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'rank': {'key': 'rank', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} } - def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, name=None, rank=None, work_item_count_limit=None, work_item_types=None): + def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, is_hidden=None, name=None, rank=None, type=None, work_item_count_limit=None, work_item_types=None): super(BacklogLevelConfiguration, self).__init__() self.add_panel_fields = add_panel_fields self.color = color self.column_fields = column_fields self.default_work_item_type = default_work_item_type self.id = id + self.is_hidden = is_hidden self.name = name self.rank = rank + self.type = type self.work_item_count_limit = work_item_count_limit self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_1/models/identity_ref.py b/vsts/vsts/work/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/work/v4_1/models/identity_ref.py +++ b/vsts/vsts/work/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/work/v4_1/models/work_item_field_reference.py b/vsts/vsts/work/v4_1/models/work_item_field_reference.py index 29ebbbf2..943b036d 100644 --- a/vsts/vsts/work/v4_1/models/work_item_field_reference.py +++ b/vsts/vsts/work/v4_1/models/work_item_field_reference.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class WorkItemFieldReference(Model): +class WorkItemFieldReference(BaseSecuredObject): """WorkItemFieldReference. :param name: The name of the field. diff --git a/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py b/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py index de9a728b..75c0959e 100644 --- a/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py +++ b/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py @@ -6,10 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model -class WorkItemTrackingResourceReference(Model): +class WorkItemTrackingResourceReference(BaseSecuredObject): """WorkItemTrackingResourceReference. :param url: diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py index e982dbbc..1b560078 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/vsts/vsts/work/v4_1/work_client.py @@ -35,11 +35,11 @@ def get_backlog_configurations(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -54,6 +54,100 @@ def get_backlog_configurations(self, team_context): route_values=route_values) return self._deserialize('BacklogConfiguration', response) + def get_backlog_level_work_items(self, team_context, backlog_id): + """GetBacklogLevelWorkItems. + [Preview API] Get a list of work items within a backlog level + :param :class:` ` team_context: The team context for the operation + :param str backlog_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.project_id + else: + project = team_context.project + if team_context.teamId: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if backlog_id is not None: + route_values['backlogId'] = self._serialize.url('backlog_id', backlog_id, 'str') + response = self._send(http_method='GET', + location_id='7c468d96-ab1d-4294-a360-92f07e9ccd98', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BacklogLevelWorkItems', response) + + def get_backlog(self, team_context, id): + """GetBacklog. + [Preview API] Get a backlog level + :param :class:` ` team_context: The team context for the operation + :param str id: The id of the backlog level + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.project_id + else: + project = team_context.project + if team_context.teamId: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='a93726f9-7867-4e38-b4f2-0bfafc2f6a94', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BacklogLevelConfiguration', response) + + def get_backlogs(self, team_context): + """GetBacklogs. + [Preview API] List all backlog levels + :param :class:` ` team_context: The team context for the operation + :rtype: [BacklogLevelConfiguration] + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.project_id + else: + project = team_context.project + if team_context.teamId: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='a93726f9-7867-4e38-b4f2-0bfafc2f6a94', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BacklogLevelConfiguration]', response) + def get_column_suggested_values(self, project=None): """GetColumnSuggestedValues. [Preview API] Get available board columns in a project @@ -82,11 +176,11 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -136,11 +230,11 @@ def get_board(self, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -167,11 +261,11 @@ def get_boards(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -199,11 +293,11 @@ def set_board_options(self, options, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -234,11 +328,11 @@ def get_board_user_settings(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -267,11 +361,11 @@ def update_board_user_settings(self, board_user_settings, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -301,11 +395,11 @@ def get_capacities(self, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -335,11 +429,11 @@ def get_capacity(self, team_context, iteration_id, team_member_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -370,11 +464,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -407,11 +501,11 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -443,11 +537,11 @@ def get_board_card_rule_settings(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -476,11 +570,11 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -510,11 +604,11 @@ def get_board_card_settings(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -543,11 +637,11 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -578,11 +672,11 @@ def get_board_chart(self, team_context, board, name): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -612,11 +706,11 @@ def get_board_charts(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -647,11 +741,11 @@ def update_board_chart(self, chart, team_context, board, name): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -683,11 +777,11 @@ def get_board_columns(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -717,11 +811,11 @@ def update_board_columns(self, board_columns, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -780,11 +874,11 @@ def delete_team_iteration(self, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -811,11 +905,11 @@ def get_team_iteration(self, team_context, id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -843,11 +937,11 @@ def get_team_iterations(self, team_context, timeframe=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -878,11 +972,11 @@ def post_team_iteration(self, iteration, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1014,11 +1108,11 @@ def get_board_rows(self, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1048,11 +1142,11 @@ def update_board_rows(self, board_rows, team_context, board): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1083,11 +1177,11 @@ def get_team_days_off(self, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1116,11 +1210,11 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1149,11 +1243,11 @@ def get_team_field_values(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1179,11 +1273,11 @@ def update_team_field_values(self, patch, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1210,11 +1304,11 @@ def get_team_settings(self, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1240,11 +1334,11 @@ def update_team_settings(self, team_settings_patch, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1261,3 +1355,35 @@ def update_team_settings(self, team_settings_patch, team_context): content=content) return self._deserialize('TeamSetting', response) + def get_iteration_work_items(self, team_context, iteration_id): + """GetIterationWorkItems. + [Preview API] Get work items for iteration + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.projectId: + project = team_context.project_id + else: + project = team_context.project + if team_context.teamId: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='5b3ef1a6-d3ab-44cd-bafd-c7f45db850fa', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('IterationWorkItems', response) + diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index 19b512b2..45aef248 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -655,11 +655,11 @@ def create_template(self, template, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -687,11 +687,11 @@ def get_templates(self, team_context, workitemtypename=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -721,11 +721,11 @@ def delete_template(self, team_context, template_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -752,11 +752,11 @@ def get_template(self, team_context, template_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -785,11 +785,11 @@ def replace_template(self, template_content, team_context, template_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -863,11 +863,11 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -902,11 +902,11 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -939,11 +939,11 @@ def query_by_id(self, id, team_context=None, time_precision=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work_item_tracking/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking/v4_1/models/__init__.py index 996ebf8d..6e41be02 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/__init__.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/__init__.py @@ -15,6 +15,7 @@ from .attachment_reference import AttachmentReference from .field_dependent_rule import FieldDependentRule from .fields_to_evaluate import FieldsToEvaluate +from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef from .identity_reference import IdentityReference from .json_patch_operation import JsonPatchOperation @@ -38,6 +39,7 @@ from .work_item_comments import WorkItemComments from .work_item_delete import WorkItemDelete from .work_item_delete_reference import WorkItemDeleteReference +from .work_item_delete_shallow_reference import WorkItemDeleteShallowReference from .work_item_delete_update import WorkItemDeleteUpdate from .work_item_field import WorkItemField from .work_item_field_operation import WorkItemFieldOperation @@ -66,6 +68,8 @@ from .work_item_type_color import WorkItemTypeColor from .work_item_type_color_and_icon import WorkItemTypeColorAndIcon from .work_item_type_field_instance import WorkItemTypeFieldInstance +from .work_item_type_field_instance_base import WorkItemTypeFieldInstanceBase +from .work_item_type_field_with_references import WorkItemTypeFieldWithReferences from .work_item_type_reference import WorkItemTypeReference from .work_item_type_state_colors import WorkItemTypeStateColors from .work_item_type_template import WorkItemTypeTemplate @@ -82,6 +86,7 @@ 'AttachmentReference', 'FieldDependentRule', 'FieldsToEvaluate', + 'GraphSubjectBase', 'IdentityRef', 'IdentityReference', 'JsonPatchOperation', @@ -105,6 +110,7 @@ 'WorkItemComments', 'WorkItemDelete', 'WorkItemDeleteReference', + 'WorkItemDeleteShallowReference', 'WorkItemDeleteUpdate', 'WorkItemField', 'WorkItemFieldOperation', @@ -133,6 +139,8 @@ 'WorkItemTypeColor', 'WorkItemTypeColorAndIcon', 'WorkItemTypeFieldInstance', + 'WorkItemTypeFieldInstanceBase', + 'WorkItemTypeFieldWithReferences', 'WorkItemTypeReference', 'WorkItemTypeStateColors', 'WorkItemTypeTemplate', diff --git a/vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py b/vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py index 40c776c5..c4c35ad5 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py @@ -6,16 +6,22 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .graph_subject_base import GraphSubjectBase -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param id: :type id: str :param image_url: @@ -30,27 +36,26 @@ class IdentityRef(Model): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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, 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.display_name = display_name self.id = id self.image_url = image_url self.inactive = inactive @@ -58,4 +63,3 @@ def __init__(self, directory_alias=None, display_name=None, id=None, image_url=N self.is_container = is_container self.profile_url = profile_url self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py index 29c2e6ee..35d909ef 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py @@ -12,10 +12,16 @@ class IdentityReference(IdentityRef): """IdentityReference. + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str :param directory_alias: :type directory_alias: str - :param display_name: - :type display_name: str :param image_url: :type image_url: str :param inactive: @@ -28,8 +34,6 @@ class IdentityReference(IdentityRef): :type profile_url: str :param unique_name: :type unique_name: str - :param url: - :type url: str :param id: :type id: str :param name: Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version @@ -37,20 +41,22 @@ class IdentityReference(IdentityRef): """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, 'image_url': {'key': 'imageUrl', 'type': 'str'}, 'inactive': {'key': 'inactive', 'type': 'bool'}, 'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'}, 'is_container': {'key': 'isContainer', 'type': 'bool'}, 'profile_url': {'key': 'profileUrl', 'type': 'str'}, 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, id=None, name=None): - super(IdentityReference, self).__init__(directory_alias=directory_alias, display_name=display_name, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, id=None, name=None): + super(IdentityReference, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) self.id = id self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py index 7774563f..d6bc200b 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py @@ -32,7 +32,7 @@ class QueryHierarchyItem(WorkItemTrackingResource): :type has_children: bool :param id: The id of the query item. :type id: str - :param is_deleted: Indicates if this query item is deleted. + :param is_deleted: Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it. :type is_deleted: bool :param is_folder: Indicates if this is a query folder or a query. :type is_folder: bool diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py index 3298de29..662c9838 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py @@ -16,13 +16,13 @@ class WorkItemComment(WorkItemTrackingResource): :type url: str :param _links: Link references to related REST resources. :type _links: :class:`ReferenceLinks ` - :param revised_by: + :param revised_by: Identity of user who added the comment. :type revised_by: :class:`IdentityReference ` - :param revised_date: + :param revised_date: The date of comment. :type revised_date: datetime - :param revision: + :param revision: The work item revision number. :type revision: int - :param text: + :param text: The text of the comment. :type text: str """ diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py index 549ad7bf..6463b857 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py @@ -6,12 +6,16 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .work_item_tracking_resource import WorkItemTrackingResource -class WorkItemComments(Model): +class WorkItemComments(WorkItemTrackingResource): """WorkItemComments. + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` :param comments: Comments collection. :type comments: list of :class:`WorkItemComment ` :param count: The count of comments. @@ -23,14 +27,16 @@ class WorkItemComments(Model): """ _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'comments': {'key': 'comments', 'type': '[WorkItemComment]'}, 'count': {'key': 'count', 'type': 'int'}, 'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'}, 'total_count': {'key': 'totalCount', 'type': 'int'} } - def __init__(self, comments=None, count=None, from_revision_count=None, total_count=None): - super(WorkItemComments, self).__init__() + def __init__(self, url=None, _links=None, comments=None, count=None, from_revision_count=None, total_count=None): + super(WorkItemComments, self).__init__(url=url, _links=_links) self.comments = comments self.count = count self.from_revision_count = from_revision_count diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py index 20f833b7..f7547d21 100644 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py @@ -6,10 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .work_item_field_reference import WorkItemFieldReference +from .work_item_type_field_instance_base import WorkItemTypeFieldInstanceBase -class WorkItemTypeFieldInstance(WorkItemFieldReference): +class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): """WorkItemTypeFieldInstance. :param name: The name of the field. @@ -20,8 +20,14 @@ class WorkItemTypeFieldInstance(WorkItemFieldReference): :type url: str :param always_required: Indicates whether field value is always required. :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str + :param allowed_values: The list of field allowed values. + :type allowed_values: list of str + :param default_value: Represents the default value of the field. + :type default_value: str """ _attribute_map = { @@ -29,10 +35,13 @@ class WorkItemTypeFieldInstance(WorkItemFieldReference): 'reference_name': {'key': 'referenceName', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, - 'help_text': {'key': 'helpText', 'type': 'str'} + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'} } - def __init__(self, name=None, reference_name=None, url=None, always_required=None, help_text=None): - super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url) - self.always_required = always_required - self.help_text = help_text + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): + super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) + self.allowed_values = allowed_values + self.default_value = default_value diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index e96ffe4f..05e720d1 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -36,28 +36,37 @@ def get_work_artifact_link_types(self): returns_collection=True) return self._deserialize('[WorkArtifactLink]', response) - def query_work_items_for_artifact_uris(self, artifact_uri_query): + def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): """QueryWorkItemsForArtifactUris. [Preview API] Queries work items linked to a given list of artifact URI. :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. + :param str project: Project ID or project name :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') content = self._serialize.body(artifact_uri_query, 'ArtifactUriQuery') response = self._send(http_method='POST', location_id='a9a9aa7a-8c09-44d3-ad1b-46e855c1e3d3', version='4.1-preview.1', + route_values=route_values, content=content) return self._deserialize('ArtifactUriQueryResult', response) - def create_attachment(self, upload_stream, file_name=None, upload_type=None, area_path=None): + def create_attachment(self, upload_stream, project=None, file_name=None, upload_type=None, area_path=None): """CreateAttachment. [Preview API] Uploads an attachment. :param object upload_stream: Stream to upload + :param str project: Project ID or project name :param str file_name: The name of the file :param str upload_type: Attachment upload type: Simple or Chunked :param str area_path: Target project Area Path :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') @@ -68,52 +77,93 @@ def create_attachment(self, upload_stream, file_name=None, upload_type=None, are content = self._serialize.body(upload_stream, 'object') response = self._send(http_method='POST', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1-preview.2', + version='4.1-preview.3', + route_values=route_values, query_parameters=query_parameters, content=content, media_type='application/octet-stream') return self._deserialize('AttachmentReference', response) - def get_attachment_content(self, id, file_name=None): + def get_attachment_content(self, id, project=None, file_name=None, download=None): """GetAttachmentContent. [Preview API] Downloads an attachment. :param str id: Attachment ID + :param str project: Project ID or project name :param str file_name: Name of the file + :param bool download: If set to true always download attachment :rtype: object """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'str') query_parameters = {} if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) - def get_attachment_zip(self, id, file_name=None): + def get_attachment_zip(self, id, project=None, file_name=None, download=None): """GetAttachmentZip. [Preview API] Downloads an attachment. :param str id: Attachment ID + :param str project: Project ID or project name :param str file_name: Name of the file + :param bool download: If set to true always download attachment :rtype: object """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'str') query_parameters = {} if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) + def get_classification_nodes(self, project, ids, depth=None, error_policy=None): + """GetClassificationNodes. + [Preview API] Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project. + :param str project: Project ID or project name + :param [int] ids: Comma seperated integer classification nodes ids. It's not required, if you want root nodes. + :param int depth: Depth of children to fetch. + :param str error_policy: Flag to handle errors in getting some nodes. Possible options are Fail and Omit. + :rtype: [WorkItemClassificationNode] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if depth is not None: + query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') + if error_policy is not None: + query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') + response = self._send(http_method='GET', + location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemClassificationNode]', response) + def get_root_nodes(self, project, depth=None): """GetRootNodes. [Preview API] Gets root classification nodes under the project. @@ -233,34 +283,40 @@ def update_classification_node(self, posted_node, project, structure_group, path content=content) return self._deserialize('WorkItemClassificationNode', response) - def get_comment(self, id, revision): + def get_comment(self, id, revision, project=None): """GetComment. [Preview API] Gets a comment for a work item at the specified revision. :param int id: Work item id :param int revision: Revision for which the comment need to be fetched + :param str project: Project ID or project name :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') if revision is not None: route_values['revision'] = self._serialize.url('revision', revision, 'int') response = self._send(http_method='GET', location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', - version='4.1-preview.1', + version='4.1-preview.2', route_values=route_values) return self._deserialize('WorkItemComment', response) - def get_comments(self, id, from_revision=None, top=None, order=None): + def get_comments(self, id, project=None, from_revision=None, top=None, order=None): """GetComments. [Preview API] Gets the specified number of comments for a work item from the specified revision. :param int id: Work item id - :param int from_revision: Revision from which comments are to be fetched - :param int top: The number of comments to return - :param str order: Ascending or descending by revision id + :param str project: Project ID or project name + :param int from_revision: Revision from which comments are to be fetched (default is 1) + :param int top: The number of comments to return (default is 200) + :param str order: Ascending or descending by revision id (default is ascending) :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -272,7 +328,7 @@ def get_comments(self, id, from_revision=None, top=None, order=None): query_parameters['order'] = self._serialize.query('order', order, 'str') response = self._send(http_method='GET', location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', - version='4.1-preview.1', + version='4.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemComments', response) @@ -374,7 +430,7 @@ def create_query(self, posted_query, project, query): def delete_query(self, project, query): """DeleteQuery. - [Preview API] Delete a query or a folder + [Preview API] Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder. :param str project: Project ID or project name :param str query: ID or path of the query or folder to delete. """ @@ -479,7 +535,7 @@ def update_query(self, query_update, project, query, undelete_descendants=None): :param :class:` ` query_update: The query to update. :param str project: Project ID or project name :param str query: The path for the query to update. - :param bool undelete_descendants: Undelete the children of this folder. + :param bool undelete_descendants: Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. :rtype: :class:` ` """ route_values = {} @@ -512,7 +568,7 @@ def destroy_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') self._send(http_method='DELETE', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.1', + version='4.1-preview.2', route_values=route_values) def get_deleted_work_item(self, id, project=None): @@ -529,26 +585,10 @@ def get_deleted_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.1', + version='4.1-preview.2', route_values=route_values) return self._deserialize('WorkItemDelete', response) - def get_deleted_work_item_references(self, project=None): - """GetDeletedWorkItemReferences. - [Preview API] Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. - :param str project: Project ID or project name - :rtype: [WorkItemReference] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemReference]', response) - def get_deleted_work_items(self, ids, project=None): """GetDeletedWorkItems. [Preview API] Gets the work items from the recycle bin, whose IDs have been specified in the parameters @@ -565,12 +605,28 @@ def get_deleted_work_items(self, ids, project=None): query_parameters['ids'] = self._serialize.query('ids', ids, 'str') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.1', + version='4.1-preview.2', route_values=route_values, query_parameters=query_parameters, returns_collection=True) return self._deserialize('[WorkItemDeleteReference]', response) + def get_deleted_work_item_shallow_references(self, project=None): + """GetDeletedWorkItemShallowReferences. + [Preview API] Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. + :param str project: Project ID or project name + :rtype: [WorkItemDeleteShallowReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', + version='4.1-preview.2', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemDeleteShallowReference]', response) + def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. [Preview API] Restores the deleted work item from Recycle Bin. @@ -587,7 +643,7 @@ def restore_work_item(self, payload, id, project=None): content = self._serialize.body(payload, 'WorkItemDeleteUpdate') response = self._send(http_method='PATCH', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.1', + version='4.1-preview.2', route_values=route_values, content=content) return self._deserialize('WorkItemDelete', response) @@ -610,7 +666,7 @@ def get_revision(self, id, revision_number, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) @@ -636,7 +692,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -653,11 +709,11 @@ def create_template(self, template, team_context): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -685,11 +741,11 @@ def get_templates(self, team_context, workitemtypename=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -719,11 +775,11 @@ def delete_template(self, team_context, template_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -750,11 +806,11 @@ def get_template(self, team_context, template_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -783,11 +839,11 @@ def replace_template(self, template_content, team_context, template_id): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -820,7 +876,7 @@ def get_update(self, id, update_number): route_values['updateNumber'] = self._serialize.url('update_number', update_number, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values) return self._deserialize('WorkItemUpdate', response) @@ -842,7 +898,7 @@ def get_updates(self, id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -861,11 +917,11 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -900,11 +956,11 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -937,11 +993,11 @@ def query_by_id(self, id, team_context=None, time_precision=None): team = None if team_context is not None: if team_context.projectId: - project = team_context.projectId + project = team_context.project_id else: project = team_context.project if team_context.teamId: - team = team_context.teamId + team = team_context.team_id else: team = team_context.team @@ -1019,10 +1075,11 @@ def get_work_item_icon_svg(self, icon, color=None, v=None): query_parameters=query_parameters) return self._deserialize('object', response) - def get_reporting_links(self, project=None, types=None, continuation_token=None, start_date_time=None): - """GetReportingLinks. + def get_reporting_links_by_link_type(self, project=None, link_types=None, types=None, continuation_token=None, start_date_time=None): + """GetReportingLinksByLinkType. [Preview API] Get a batch of work item links :param str project: Project ID or project name + :param [str] link_types: A list of types to filter the results to specific link types. Omit this parameter to get work item links of all link types. :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. :param str continuation_token: Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. :param datetime start_date_time: Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. @@ -1032,6 +1089,9 @@ def get_reporting_links(self, project=None, types=None, continuation_token=None, if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} + if link_types is not None: + link_types = ",".join(link_types) + query_parameters['linkTypes'] = self._serialize.query('link_types', link_types, 'str') if types is not None: types = ",".join(types) query_parameters['types'] = self._serialize.query('types', types, 'str') @@ -1153,14 +1213,79 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token content=content) return self._deserialize('ReportingWorkItemRevisionsBatch', response) - def delete_work_item(self, id, destroy=None): + def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): + """CreateWorkItem. + [Preview API] Creates a single work item. + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param str project: Project ID or project name + :param str type: The work item type of the work item to create + :param bool validate_only: Indicate if you only want to validate the changes without saving the work item + :param bool bypass_rules: Do not enforce the work item type rules on this update + :param bool suppress_notifications: Do not fire any notifications for this change + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if validate_only is not None: + query_parameters['validateOnly'] = self._serialize.query('validate_only', validate_only, 'bool') + if bypass_rules is not None: + query_parameters['bypassRules'] = self._serialize.query('bypass_rules', bypass_rules, 'bool') + if suppress_notifications is not None: + query_parameters['suppressNotifications'] = self._serialize.query('suppress_notifications', suppress_notifications, 'bool') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='POST', + location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('WorkItem', response) + + def get_work_item_template(self, project, type, fields=None, as_of=None, expand=None): + """GetWorkItemTemplate. + [Preview API] Returns a single work item from a template. + :param str project: Project ID or project name + :param str type: The work item type name + :param str fields: Comma-separated list of requested fields + :param datetime as_of: AsOf UTC date time string + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if fields is not None: + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + if as_of is not None: + query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItem', response) + + def delete_work_item(self, id, project=None, destroy=None): """DeleteWorkItem. [Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. :param int id: ID of the work item to be deleted + :param str project: Project ID or project name :param bool destroy: Optional parameter, if set to true, the work item is deleted permanently :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -1168,21 +1293,24 @@ def delete_work_item(self, id, destroy=None): query_parameters['destroy'] = self._serialize.query('destroy', destroy, 'bool') response = self._send(http_method='DELETE', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemDelete', response) - def get_work_item(self, id, fields=None, as_of=None, expand=None): + def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): """GetWorkItem. [Preview API] Returns a single work item. :param int id: The work item id + :param str project: Project ID or project name :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string - :param str expand: The expand parameters for work item attributes + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -1195,21 +1323,25 @@ def get_work_item(self, id, fields=None, as_of=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) - def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy=None): + def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None, error_policy=None): """GetWorkItems. [Preview API] Returns a list of work items. :param [int] ids: The comma-separated list of requested work item ids + :param str project: Project ID or project name :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string - :param str expand: The expand parameters for work item attributes - :param str error_policy: The flag to control error policy in a bulk get work items request + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :param str error_policy: The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}. :rtype: [WorkItem] """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if ids is not None: ids = ",".join(map(str, ids)) @@ -1225,22 +1357,26 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.2', + version='4.1-preview.3', + route_values=route_values, query_parameters=query_parameters, returns_collection=True) return self._deserialize('[WorkItem]', response) - def update_work_item(self, document, id, validate_only=None, bypass_rules=None, suppress_notifications=None): + def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. [Preview API] Updates a single work item. :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update + :param str project: Project ID or project name :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -1253,75 +1389,13 @@ def update_work_item(self, document, id, validate_only=None, bypass_rules=None, content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.2', + version='4.1-preview.3', route_values=route_values, query_parameters=query_parameters, content=content, media_type='application/json-patch+json') return self._deserialize('WorkItem', response) - def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): - """CreateWorkItem. - [Preview API] Creates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item - :param str project: Project ID or project name - :param str type: The work item type of the work item to create - :param bool validate_only: Indicate if you only want to validate the changes without saving the work item - :param bool bypass_rules: Do not enforce the work item type rules on this update - :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - query_parameters = {} - if validate_only is not None: - query_parameters['validateOnly'] = self._serialize.query('validate_only', validate_only, 'bool') - if bypass_rules is not None: - query_parameters['bypassRules'] = self._serialize.query('bypass_rules', bypass_rules, 'bool') - if suppress_notifications is not None: - query_parameters['suppressNotifications'] = self._serialize.query('suppress_notifications', suppress_notifications, 'bool') - content = self._serialize.body(document, '[JsonPatchOperation]') - response = self._send(http_method='POST', - location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters, - content=content, - media_type='application/json-patch+json') - return self._deserialize('WorkItem', response) - - def get_work_item_template(self, project, type, fields=None, as_of=None, expand=None): - """GetWorkItemTemplate. - [Preview API] Returns a single work item from a template. - :param str project: Project ID or project name - :param str type: The work item type name - :param str fields: Comma-separated list of requested fields - :param datetime as_of: AsOf UTC date time string - :param str expand: The expand parameters for work item attributes - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - query_parameters = {} - if fields is not None: - query_parameters['fields'] = self._serialize.query('fields', fields, 'str') - if as_of is not None: - query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItem', response) - def get_work_item_next_states_on_checkin_action(self, ids, action=None): """GetWorkItemNextStatesOnCheckinAction. [Preview API] Returns the next state on the given work item IDs. @@ -1344,7 +1418,7 @@ def get_work_item_next_states_on_checkin_action(self, ids, action=None): def get_work_item_type_categories(self, project): """GetWorkItemTypeCategories. - [Preview API] Returns a the deltas between work item revisions. + [Preview API] Get all work item type categories. :param str project: Project ID or project name :rtype: [WorkItemTypeCategory] """ @@ -1360,7 +1434,7 @@ def get_work_item_type_categories(self, project): def get_work_item_type_category(self, project, category): """GetWorkItemTypeCategory. - [Preview API] Returns a the deltas between work item revisions. + [Preview API] Get specific work item type category by name. :param str project: Project ID or project name :param str category: The category name :rtype: :class:` ` @@ -1410,13 +1484,38 @@ def get_work_item_types(self, project): returns_collection=True) return self._deserialize('[WorkItemType]', response) - def get_dependent_fields(self, project, type, field): - """GetDependentFields. - [Preview API] Returns the dependent fields for the corresponding workitem type and fieldname. + def get_work_item_type_fields_with_references(self, project, type, expand=None): + """GetWorkItemTypeFieldsWithReferences. + [Preview API] Get a list of fields for a work item type with detailed references. :param str project: Project ID or project name - :param str type: The work item type name + :param str type: Work item type. + :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. + :rtype: [WorkItemTypeFieldWithReferences] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemTypeFieldWithReferences]', response) + + def get_work_item_type_field_with_references(self, project, type, field, expand=None): + """GetWorkItemTypeFieldWithReferences. + [Preview API] Get a field for a work item type with detailed references. + :param str project: Project ID or project name + :param str type: Work item type. :param str field: - :rtype: :class:` ` + :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1425,11 +1524,15 @@ def get_dependent_fields(self, project, type, field): route_values['type'] = self._serialize.url('type', type, 'str') if field is not None: route_values['field'] = self._serialize.url('field', field, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', - version='4.1-preview.2', - route_values=route_values) - return self._deserialize('FieldDependentRule', response) + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeFieldWithReferences', response) def get_work_item_type_states(self, project, type): """GetWorkItemTypeStates. From 63974d300d3a4b2118306130ee7ad2a8dd0f8ab1 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 17 Apr 2018 20:12:52 -0400 Subject: [PATCH 026/191] fix TeamContext issue in clients. regen 4.0 and 4.1 with fix. --- vsts/vsts/accounts/v4_1/accounts_client.py | 4 +- vsts/vsts/build/v4_1/build_client.py | 201 +++--- .../models/aggregated_results_analysis.py | 49 ++ .../models/aggregated_results_by_outcome.py | 45 ++ .../models/aggregated_results_difference.py | 41 ++ .../v4_1/models/aggregated_runs_by_state.py | 29 + .../build/v4_1/models/associated_work_item.py | 49 ++ vsts/vsts/build/v4_1/models/attachment.py | 29 + .../v4_1/models/build_definition_counter.py | 33 + .../build/v4_1/models/graph_subject_base.py | 37 + .../build/v4_1/models/release_reference.py | 49 ++ .../build/v4_1/models/repository_webhook.py | 33 + .../build/v4_1/models/source_repositories.py | 37 + .../v4_1/models/source_repository_item.py | 37 + .../build/v4_1/models/test_results_context.py | 33 + vsts/vsts/client_trace/__init__.py | 7 + vsts/vsts/client_trace/v4_1/__init__.py | 7 + .../client_trace/v4_1/client_trace_client.py | 38 + .../vsts/client_trace/v4_1/models/__init__.py | 13 + .../v4_1/models/client_trace_event.py | 53 ++ .../v4_1/models/client_contribution.py | 45 ++ .../v4_1/models/client_contribution_node.py | 33 + .../client_contribution_provider_details.py | 37 + vsts/vsts/core/v4_1/core_client.py | 104 +-- .../core/v4_1/models/graph_subject_base.py | 37 + .../v4_1/models/graph_subject_base.py | 37 + .../v4_1/models/reference_links.py | 25 + vsts/vsts/feed/__init__.py | 7 + vsts/vsts/feed/v4_1/__init__.py | 7 + vsts/vsts/feed/v4_1/feed_client.py | 659 ++++++++++++++++++ vsts/vsts/feed/v4_1/models/__init__.py | 55 ++ vsts/vsts/feed/v4_1/models/feed.py | 93 +++ vsts/vsts/feed/v4_1/models/feed_change.py | 37 + .../feed/v4_1/models/feed_changes_response.py | 37 + vsts/vsts/feed/v4_1/models/feed_core.py | 69 ++ vsts/vsts/feed/v4_1/models/feed_permission.py | 37 + .../feed/v4_1/models/feed_retention_policy.py | 29 + vsts/vsts/feed/v4_1/models/feed_update.py | 57 ++ vsts/vsts/feed/v4_1/models/feed_view.py | 45 ++ .../feed/v4_1/models/global_permission.py | 29 + .../feed/v4_1/models/json_patch_operation.py | 37 + .../v4_1/models/minimal_package_version.py | 69 ++ vsts/vsts/feed/v4_1/models/package.py | 57 ++ vsts/vsts/feed/v4_1/models/package_change.py | 29 + .../v4_1/models/package_changes_response.py | 37 + .../feed/v4_1/models/package_dependency.py | 33 + vsts/vsts/feed/v4_1/models/package_file.py | 33 + vsts/vsts/feed/v4_1/models/package_version.py | 105 +++ .../v4_1/models/package_version_change.py | 33 + .../feed/v4_1/models/protocol_metadata.py | 29 + .../models/recycle_bin_package_version.py | 97 +++ vsts/vsts/feed/v4_1/models/reference_links.py | 25 + vsts/vsts/feed/v4_1/models/upstream_source.py | 57 ++ vsts/vsts/feed_token/__init__.py | 7 + vsts/vsts/feed_token/v4_1/__init__.py | 7 + .../vsts/feed_token/v4_1/feed_token_client.py | 42 ++ .../gallery/v4_1/models/publisher_base.py | 57 ++ .../gallery/v4_1/models/reference_links.py | 25 + vsts/vsts/git/v4_1/git_client.py | 32 - vsts/vsts/git/v4_1/git_client_base.py | 244 +++---- .../git_recycle_bin_repository_details.py | 25 + .../git/v4_1/models/graph_subject_base.py | 37 + vsts/vsts/identity/v4_1/identity_client.py | 41 +- .../identity/v4_1/models/identity_base.py | 81 +++ .../v4_1/models/graph_subject_base.py | 37 + .../licensing/v4_1/models/reference_links.py | 25 + .../location/v4_1/models/identity_base.py | 81 +++ vsts/vsts/maven/__init__.py | 7 + vsts/vsts/maven/v4_1/__init__.py | 7 + vsts/vsts/maven/v4_1/maven_client.py | 149 ++++ vsts/vsts/maven/v4_1/models/__init__.py | 61 ++ .../maven/v4_1/models/batch_operation_data.py | 21 + .../models/maven_minimal_package_details.py | 33 + vsts/vsts/maven/v4_1/models/maven_package.py | 69 ++ .../maven_package_version_deletion_state.py | 37 + .../models/maven_packages_batch_request.py | 33 + .../vsts/maven/v4_1/models/maven_pom_build.py | 25 + vsts/vsts/maven/v4_1/models/maven_pom_ci.py | 33 + .../v4_1/models/maven_pom_ci_notifier.py | 45 ++ .../maven/v4_1/models/maven_pom_dependency.py | 42 ++ .../models/maven_pom_dependency_management.py | 25 + vsts/vsts/maven/v4_1/models/maven_pom_gav.py | 33 + .../v4_1/models/maven_pom_issue_management.py | 29 + .../maven/v4_1/models/maven_pom_license.py | 31 + .../v4_1/models/maven_pom_mailing_list.py | 45 ++ .../maven/v4_1/models/maven_pom_metadata.py | 114 +++ .../v4_1/models/maven_pom_organization.py | 29 + .../maven/v4_1/models/maven_pom_parent.py | 34 + .../maven/v4_1/models/maven_pom_person.py | 53 ++ vsts/vsts/maven/v4_1/models/maven_pom_scm.py | 37 + ...ven_recycle_bin_package_version_details.py | 25 + vsts/vsts/maven/v4_1/models/package.py | 45 ++ vsts/vsts/maven/v4_1/models/plugin.py | 34 + .../maven/v4_1/models/plugin_configuration.py | 25 + vsts/vsts/maven/v4_1/models/reference_link.py | 25 + .../vsts/maven/v4_1/models/reference_links.py | 25 + .../v4_1/models/graph_subject_base.py | 37 + .../models/iNotification_diagnostic_log.py | 57 ++ .../notification_diagnostic_log_message.py | 33 + .../v4_1/models/subscription_diagnostics.py | 33 + .../v4_1/models/subscription_tracing.py | 41 ++ ...ate_subscripiton_diagnostics_parameters.py | 33 + .../update_subscripiton_tracing_parameters.py | 25 + vsts/vsts/npm/__init__.py | 7 + vsts/vsts/npm/v4_1/__init__.py | 7 + vsts/vsts/npm/v4_1/models/__init__.py | 33 + .../npm/v4_1/models/batch_deprecate_data.py | 25 + .../npm/v4_1/models/batch_operation_data.py | 21 + .../npm/v4_1/models/json_patch_operation.py | 37 + .../v4_1/models/minimal_package_details.py | 29 + .../npm_package_version_deletion_state.py | 33 + .../v4_1/models/npm_packages_batch_request.py | 33 + ...npm_recycle_bin_package_version_details.py | 25 + vsts/vsts/npm/v4_1/models/package.py | 53 ++ .../v4_1/models/package_version_details.py | 29 + vsts/vsts/npm/v4_1/models/reference_links.py | 25 + .../npm/v4_1/models/upstream_source_info.py | 37 + vsts/vsts/npm/v4_1/npm_client.py | 407 +++++++++++ vsts/vsts/nuget/__init__.py | 7 + vsts/vsts/nuget/v4_1/__init__.py | 7 + vsts/vsts/nuget/v4_1/models/__init__.py | 31 + .../vsts/nuget/v4_1/models/batch_list_data.py | 25 + .../nuget/v4_1/models/batch_operation_data.py | 21 + .../nuget/v4_1/models/json_patch_operation.py | 37 + .../v4_1/models/minimal_package_details.py | 29 + .../nuGet_package_version_deletion_state.py | 33 + .../models/nuGet_packages_batch_request.py | 33 + ...Get_recycle_bin_package_version_details.py | 25 + vsts/vsts/nuget/v4_1/models/package.py | 45 ++ .../v4_1/models/package_version_details.py | 29 + .../vsts/nuget/v4_1/models/reference_links.py | 25 + vsts/vsts/nuget/v4_1/nuGet_client.py | 200 ++++++ .../vsts/operations/v4_1/operations_client.py | 4 +- .../policy/v4_1/models/graph_subject_base.py | 37 + vsts/vsts/policy/v4_1/policy_client.py | 36 +- .../models/language_metrics_secured_object.py | 33 + .../release/v4_1/models/graph_subject_base.py | 37 + .../release/v4_1/models/pipeline_process.py | 25 + .../v4_1/models/release_task_attachment.py | 53 ++ .../v4_1/models/graph_subject_base.py | 37 + .../v4_1/models/subscription_diagnostics.py | 33 + .../v4_1/models/subscription_tracing.py | 41 ++ ...ate_subscripiton_diagnostics_parameters.py | 33 + .../update_subscripiton_tracing_parameters.py | 25 + .../v4_1/service_hooks_client.py | 79 ++- vsts/vsts/task/v4_1/task_client.py | 30 +- .../v4_1/models/client_certificate.py | 25 + .../deployment_group_create_parameter.py | 37 + ...nt_group_create_parameter_pool_property.py | 25 + .../deployment_group_update_parameter.py | 29 + .../deployment_target_update_parameter.py | 29 + .../v4_1/models/graph_subject_base.py | 37 + .../v4_1/models/oAuth_configuration.py | 61 ++ .../v4_1/models/oAuth_configuration_params.py | 41 ++ .../v4_1/models/variable_group_parameters.py | 41 ++ .../v4_1/models/aggregated_runs_by_state.py | 29 + .../test/v4_1/models/graph_subject_base.py | 37 + vsts/vsts/test/v4_1/models/reference_links.py | 25 + .../v4_1/models/shallow_test_case_result.py | 57 ++ vsts/vsts/test/v4_1/test_client.py | 110 +-- .../tfvc/v4_1/models/graph_subject_base.py | 37 + vsts/vsts/tfvc/v4_1/tfvc_client.py | 92 +-- .../v4_1/models/backlog_level_work_items.py | 25 + .../work/v4_1/models/graph_subject_base.py | 37 + .../work/v4_1/models/iteration_work_items.py | 31 + vsts/vsts/work/v4_1/models/work_item_link.py | 33 + .../work/v4_1/models/work_item_reference.py | 29 + vsts/vsts/work/v4_1/work_client.py | 148 ++-- .../v4_1/models/graph_subject_base.py | 37 + .../work_item_delete_shallow_reference.py | 29 + .../work_item_type_field_instance_base.py | 42 ++ .../work_item_type_field_with_references.py | 47 ++ .../v4_1/work_item_tracking_client.py | 192 ++--- 173 files changed, 7628 insertions(+), 700 deletions(-) create mode 100644 vsts/vsts/build/v4_1/models/aggregated_results_analysis.py create mode 100644 vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py create mode 100644 vsts/vsts/build/v4_1/models/aggregated_results_difference.py create mode 100644 vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py create mode 100644 vsts/vsts/build/v4_1/models/associated_work_item.py create mode 100644 vsts/vsts/build/v4_1/models/attachment.py create mode 100644 vsts/vsts/build/v4_1/models/build_definition_counter.py create mode 100644 vsts/vsts/build/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/build/v4_1/models/release_reference.py create mode 100644 vsts/vsts/build/v4_1/models/repository_webhook.py create mode 100644 vsts/vsts/build/v4_1/models/source_repositories.py create mode 100644 vsts/vsts/build/v4_1/models/source_repository_item.py create mode 100644 vsts/vsts/build/v4_1/models/test_results_context.py create mode 100644 vsts/vsts/client_trace/__init__.py create mode 100644 vsts/vsts/client_trace/v4_1/__init__.py create mode 100644 vsts/vsts/client_trace/v4_1/client_trace_client.py create mode 100644 vsts/vsts/client_trace/v4_1/models/__init__.py create mode 100644 vsts/vsts/client_trace/v4_1/models/client_trace_event.py create mode 100644 vsts/vsts/contributions/v4_1/models/client_contribution.py create mode 100644 vsts/vsts/contributions/v4_1/models/client_contribution_node.py create mode 100644 vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py create mode 100644 vsts/vsts/core/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/extension_management/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/extension_management/v4_1/models/reference_links.py create mode 100644 vsts/vsts/feed/__init__.py create mode 100644 vsts/vsts/feed/v4_1/__init__.py create mode 100644 vsts/vsts/feed/v4_1/feed_client.py create mode 100644 vsts/vsts/feed/v4_1/models/__init__.py create mode 100644 vsts/vsts/feed/v4_1/models/feed.py create mode 100644 vsts/vsts/feed/v4_1/models/feed_change.py create mode 100644 vsts/vsts/feed/v4_1/models/feed_changes_response.py create mode 100644 vsts/vsts/feed/v4_1/models/feed_core.py create mode 100644 vsts/vsts/feed/v4_1/models/feed_permission.py create mode 100644 vsts/vsts/feed/v4_1/models/feed_retention_policy.py create mode 100644 vsts/vsts/feed/v4_1/models/feed_update.py create mode 100644 vsts/vsts/feed/v4_1/models/feed_view.py create mode 100644 vsts/vsts/feed/v4_1/models/global_permission.py create mode 100644 vsts/vsts/feed/v4_1/models/json_patch_operation.py create mode 100644 vsts/vsts/feed/v4_1/models/minimal_package_version.py create mode 100644 vsts/vsts/feed/v4_1/models/package.py create mode 100644 vsts/vsts/feed/v4_1/models/package_change.py create mode 100644 vsts/vsts/feed/v4_1/models/package_changes_response.py create mode 100644 vsts/vsts/feed/v4_1/models/package_dependency.py create mode 100644 vsts/vsts/feed/v4_1/models/package_file.py create mode 100644 vsts/vsts/feed/v4_1/models/package_version.py create mode 100644 vsts/vsts/feed/v4_1/models/package_version_change.py create mode 100644 vsts/vsts/feed/v4_1/models/protocol_metadata.py create mode 100644 vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py create mode 100644 vsts/vsts/feed/v4_1/models/reference_links.py create mode 100644 vsts/vsts/feed/v4_1/models/upstream_source.py create mode 100644 vsts/vsts/feed_token/__init__.py create mode 100644 vsts/vsts/feed_token/v4_1/__init__.py create mode 100644 vsts/vsts/feed_token/v4_1/feed_token_client.py create mode 100644 vsts/vsts/gallery/v4_1/models/publisher_base.py create mode 100644 vsts/vsts/gallery/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/git/v4_1/git_client.py create mode 100644 vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py create mode 100644 vsts/vsts/git/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/identity/v4_1/models/identity_base.py create mode 100644 vsts/vsts/licensing/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/licensing/v4_1/models/reference_links.py create mode 100644 vsts/vsts/location/v4_1/models/identity_base.py create mode 100644 vsts/vsts/maven/__init__.py create mode 100644 vsts/vsts/maven/v4_1/__init__.py create mode 100644 vsts/vsts/maven/v4_1/maven_client.py create mode 100644 vsts/vsts/maven/v4_1/models/__init__.py create mode 100644 vsts/vsts/maven/v4_1/models/batch_operation_data.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_package.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_build.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_ci.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_dependency.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_gav.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_license.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_metadata.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_organization.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_parent.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_person.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_scm.py create mode 100644 vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py create mode 100644 vsts/vsts/maven/v4_1/models/package.py create mode 100644 vsts/vsts/maven/v4_1/models/plugin.py create mode 100644 vsts/vsts/maven/v4_1/models/plugin_configuration.py create mode 100644 vsts/vsts/maven/v4_1/models/reference_link.py create mode 100644 vsts/vsts/maven/v4_1/models/reference_links.py create mode 100644 vsts/vsts/notification/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py create mode 100644 vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_diagnostics.py create mode 100644 vsts/vsts/notification/v4_1/models/subscription_tracing.py create mode 100644 vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py create mode 100644 vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py create mode 100644 vsts/vsts/npm/__init__.py create mode 100644 vsts/vsts/npm/v4_1/__init__.py create mode 100644 vsts/vsts/npm/v4_1/models/__init__.py create mode 100644 vsts/vsts/npm/v4_1/models/batch_deprecate_data.py create mode 100644 vsts/vsts/npm/v4_1/models/batch_operation_data.py create mode 100644 vsts/vsts/npm/v4_1/models/json_patch_operation.py create mode 100644 vsts/vsts/npm/v4_1/models/minimal_package_details.py create mode 100644 vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py create mode 100644 vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py create mode 100644 vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py create mode 100644 vsts/vsts/npm/v4_1/models/package.py create mode 100644 vsts/vsts/npm/v4_1/models/package_version_details.py create mode 100644 vsts/vsts/npm/v4_1/models/reference_links.py create mode 100644 vsts/vsts/npm/v4_1/models/upstream_source_info.py create mode 100644 vsts/vsts/npm/v4_1/npm_client.py create mode 100644 vsts/vsts/nuget/__init__.py create mode 100644 vsts/vsts/nuget/v4_1/__init__.py create mode 100644 vsts/vsts/nuget/v4_1/models/__init__.py create mode 100644 vsts/vsts/nuget/v4_1/models/batch_list_data.py create mode 100644 vsts/vsts/nuget/v4_1/models/batch_operation_data.py create mode 100644 vsts/vsts/nuget/v4_1/models/json_patch_operation.py create mode 100644 vsts/vsts/nuget/v4_1/models/minimal_package_details.py create mode 100644 vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py create mode 100644 vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py create mode 100644 vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py create mode 100644 vsts/vsts/nuget/v4_1/models/package.py create mode 100644 vsts/vsts/nuget/v4_1/models/package_version_details.py create mode 100644 vsts/vsts/nuget/v4_1/models/reference_links.py create mode 100644 vsts/vsts/nuget/v4_1/nuGet_client.py create mode 100644 vsts/vsts/policy/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py create mode 100644 vsts/vsts/release/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/release/v4_1/models/pipeline_process.py create mode 100644 vsts/vsts/release/v4_1/models/release_task_attachment.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py create mode 100644 vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py create mode 100644 vsts/vsts/task_agent/v4_1/models/client_certificate.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py create mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py create mode 100644 vsts/vsts/task_agent/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py create mode 100644 vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py create mode 100644 vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py create mode 100644 vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py create mode 100644 vsts/vsts/test/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/test/v4_1/models/reference_links.py create mode 100644 vsts/vsts/test/v4_1/models/shallow_test_case_result.py create mode 100644 vsts/vsts/tfvc/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/work/v4_1/models/backlog_level_work_items.py create mode 100644 vsts/vsts/work/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/work/v4_1/models/iteration_work_items.py create mode 100644 vsts/vsts/work/v4_1/models/work_item_link.py create mode 100644 vsts/vsts/work/v4_1/models/work_item_reference.py create mode 100644 vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py create mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py create mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py diff --git a/vsts/vsts/accounts/v4_1/accounts_client.py b/vsts/vsts/accounts/v4_1/accounts_client.py index 31bfa14d..68fb7829 100644 --- a/vsts/vsts/accounts/v4_1/accounts_client.py +++ b/vsts/vsts/accounts/v4_1/accounts_client.py @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def get_accounts(self, owner_id=None, member_id=None, properties=None): """GetAccounts. - [Preview API] Get a list of accounts for a specific owner or a specific member. + Get a list of accounts for a specific owner or a specific member. :param str owner_id: ID for the owner of the accounts. :param str member_id: ID for a member of the accounts. :param str properties: @@ -42,7 +42,7 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None): query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[Account]', response) diff --git a/vsts/vsts/build/v4_1/build_client.py b/vsts/vsts/build/v4_1/build_client.py index 50a718ce..b5cde85d 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/vsts/vsts/build/v4_1/build_client.py @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def create_artifact(self, artifact, build_id, project=None): """CreateArtifact. - [Preview API] Associates an artifact with a build. + Associates an artifact with a build. :param :class:` ` artifact: The artifact. :param int build_id: The ID of the build. :param str project: Project ID or project name @@ -41,14 +41,14 @@ def create_artifact(self, artifact, build_id, project=None): content = self._serialize.body(artifact, 'BuildArtifact') response = self._send(http_method='POST', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1-preview.3', + version='4.1', route_values=route_values, content=content) return self._deserialize('BuildArtifact', response) def get_artifact(self, build_id, artifact_name, project=None): """GetArtifact. - [Preview API] Gets a specific artifact for a build. + Gets a specific artifact for a build. :param int build_id: The ID of the build. :param str artifact_name: The name of the artifact. :param str project: Project ID or project name @@ -64,14 +64,14 @@ def get_artifact(self, build_id, artifact_name, project=None): query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildArtifact', response) def get_artifact_content_zip(self, build_id, artifact_name, project=None): """GetArtifactContentZip. - [Preview API] Gets a specific artifact for a build. + Gets a specific artifact for a build. :param int build_id: The ID of the build. :param str artifact_name: The name of the artifact. :param str project: Project ID or project name @@ -87,14 +87,14 @@ def get_artifact_content_zip(self, build_id, artifact_name, project=None): query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_artifacts(self, build_id, project=None): """GetArtifacts. - [Preview API] Gets all artifacts for a build. + Gets all artifacts for a build. :param int build_id: The ID of the build. :param str project: Project ID or project name :rtype: [BuildArtifact] @@ -106,7 +106,7 @@ def get_artifacts(self, build_id, project=None): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1-preview.3', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BuildArtifact]', response) @@ -165,7 +165,7 @@ def get_attachment(self, project, build_id, timeline_id, record_id, type, name): def get_badge(self, project, definition_id, branch_name=None): """GetBadge. - [Preview API] Gets a badge that indicates the status of the most recent build for a definition. + Gets a badge that indicates the status of the most recent build for a definition. :param str project: The project ID or name. :param int definition_id: The ID of the definition. :param str branch_name: The name of the branch. @@ -181,7 +181,7 @@ def get_badge(self, project, definition_id, branch_name=None): query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') response = self._send(http_method='GET', location_id='de6a4df8-22cd-44ee-af2d-39f6aa7a4261', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) @@ -267,7 +267,7 @@ def get_build_badge_data(self, project, repo_type, repo_id=None, branch_name=Non def delete_build(self, build_id, project=None): """DeleteBuild. - [Preview API] Deletes a build. + Deletes a build. :param int build_id: The ID of the build. :param str project: Project ID or project name """ @@ -278,12 +278,12 @@ def delete_build(self, build_id, project=None): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') self._send(http_method='DELETE', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.4', + version='4.1', route_values=route_values) def get_build(self, build_id, project=None, property_filters=None): """GetBuild. - [Preview API] Gets a build + Gets a build :param int build_id: :param str project: Project ID or project name :param str property_filters: @@ -299,14 +299,14 @@ def get_build(self, build_id, project=None, property_filters=None): query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.4', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Build', response) def get_builds(self, project=None, definitions=None, queues=None, build_number=None, min_time=None, max_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): """GetBuilds. - [Preview API] Gets a list of builds. + Gets a list of builds. :param str project: Project ID or project name :param [int] definitions: A comma-delimited list of definition IDs. If specified, filters to builds for these definitions. :param [int] queues: A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues. @@ -381,7 +381,7 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.4', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -389,7 +389,7 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket=None): """QueueBuild. - [Preview API] Queues a build + Queues a build :param :class:` ` build: :param str project: Project ID or project name :param bool ignore_warnings: @@ -407,7 +407,7 @@ def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket content = self._serialize.body(build, 'Build') response = self._send(http_method='POST', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.4', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -415,7 +415,7 @@ def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket def update_build(self, build, build_id, project=None): """UpdateBuild. - [Preview API] Updates a build. + Updates a build. :param :class:` ` build: The build. :param int build_id: The ID of the build. :param str project: Project ID or project name @@ -429,14 +429,14 @@ def update_build(self, build, build_id, project=None): content = self._serialize.body(build, 'Build') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.4', + version='4.1', route_values=route_values, content=content) return self._deserialize('Build', response) def update_builds(self, builds, project=None): """UpdateBuilds. - [Preview API] Updates multiple builds. + Updates multiple builds. :param [Build] builds: The builds to update. :param str project: Project ID or project name :rtype: [Build] @@ -447,7 +447,7 @@ def update_builds(self, builds, project=None): content = self._serialize.body(builds, '[Build]') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1-preview.4', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -455,7 +455,7 @@ def update_builds(self, builds, project=None): def get_build_changes(self, project, build_id, continuation_token=None, top=None, include_source_change=None): """GetBuildChanges. - [Preview API] Gets the changes associated with a build + Gets the changes associated with a build :param str project: Project ID or project name :param int build_id: :param str continuation_token: @@ -477,7 +477,7 @@ def get_build_changes(self, project, build_id, continuation_token=None, top=None query_parameters['includeSourceChange'] = self._serialize.query('include_source_change', include_source_change, 'bool') response = self._send(http_method='GET', location_id='54572c7b-bbd3-45d4-80dc-28be08941620', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -512,7 +512,7 @@ def get_changes_between_builds(self, project, from_build_id=None, to_build_id=No def get_build_controller(self, controller_id): """GetBuildController. - [Preview API] Gets a controller + Gets a controller :param int controller_id: :rtype: :class:` ` """ @@ -521,13 +521,13 @@ def get_build_controller(self, controller_id): route_values['controllerId'] = self._serialize.url('controller_id', controller_id, 'int') response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('BuildController', response) def get_build_controllers(self, name=None): """GetBuildControllers. - [Preview API] Gets controller, optionally filtered by name + Gets controller, optionally filtered by name :param str name: :rtype: [BuildController] """ @@ -536,14 +536,14 @@ def get_build_controllers(self, name=None): query_parameters['name'] = self._serialize.query('name', name, 'str') response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', - version='4.1-preview.2', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[BuildController]', response) def create_definition(self, definition, project=None, definition_to_clone_id=None, definition_to_clone_revision=None): """CreateDefinition. - [Preview API] Creates a new definition. + Creates a new definition. :param :class:` ` definition: The definition. :param str project: Project ID or project name :param int definition_to_clone_id: @@ -561,7 +561,7 @@ def create_definition(self, definition, project=None, definition_to_clone_id=Non content = self._serialize.body(definition, 'BuildDefinition') response = self._send(http_method='POST', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1-preview.6', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -569,7 +569,7 @@ def create_definition(self, definition, project=None, definition_to_clone_id=Non def delete_definition(self, definition_id, project=None): """DeleteDefinition. - [Preview API] Deletes a definition and all associated builds. + Deletes a definition and all associated builds. :param int definition_id: The ID of the definition. :param str project: Project ID or project name """ @@ -580,12 +580,12 @@ def delete_definition(self, definition_id, project=None): route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') self._send(http_method='DELETE', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1-preview.6', + version='4.1', route_values=route_values) def get_definition(self, definition_id, project=None, revision=None, min_metrics_time=None, property_filters=None, include_latest_builds=None): """GetDefinition. - [Preview API] Gets a definition, optionally at a specific revision. + Gets a definition, optionally at a specific revision. :param int definition_id: The ID of the definition. :param str project: Project ID or project name :param int revision: The revision number to retrieve. If this is not specified, the latest version will be returned. @@ -611,14 +611,14 @@ def get_definition(self, definition_id, project=None, revision=None, min_metrics query_parameters['includeLatestBuilds'] = self._serialize.query('include_latest_builds', include_latest_builds, 'bool') response = self._send(http_method='GET', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1-preview.6', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildDefinition', response) def get_definitions(self, project=None, name=None, repository_id=None, repository_type=None, query_order=None, top=None, continuation_token=None, min_metrics_time=None, definition_ids=None, path=None, built_after=None, not_built_after=None, include_all_properties=None, include_latest_builds=None, task_id_filter=None): """GetDefinitions. - [Preview API] Gets a list of definitions. + Gets a list of definitions. :param str project: Project ID or project name :param str name: If specified, filters to definitions whose names match this pattern. :param str repository_id: A repository ID. If specified, filters to definitions that use this repository. @@ -671,7 +671,7 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') response = self._send(http_method='GET', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1-preview.6', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -679,7 +679,7 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor def reset_counter(self, definition_id, counter_id, project=None): """ResetCounter. - [Preview API] Resets the counter variable Value back to the Seed. + Resets the counter variable Value back to the Seed. :param int definition_id: The ID of the definition. :param int counter_id: The ID of the counter. :param str project: Project ID or project name @@ -694,13 +694,13 @@ def reset_counter(self, definition_id, counter_id, project=None): query_parameters['counterId'] = self._serialize.query('counter_id', counter_id, 'int') self._send(http_method='POST', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1-preview.6', + version='4.1', route_values=route_values, query_parameters=query_parameters) def update_counter_seed(self, definition_id, counter_id, new_seed, reset_value, project=None): """UpdateCounterSeed. - [Preview API] Changes the counter variable Seed, and optionally resets the Value to this new Seed. Note that if Seed is being set above Value, then Value will be updated regardless. + Changes the counter variable Seed, and optionally resets the Value to this new Seed. Note that if Seed is being set above Value, then Value will be updated regardless. :param int definition_id: The ID of the definition. :param int counter_id: The ID of the counter. :param long new_seed: The new Seed value. @@ -721,13 +721,13 @@ def update_counter_seed(self, definition_id, counter_id, new_seed, reset_value, query_parameters['resetValue'] = self._serialize.query('reset_value', reset_value, 'bool') self._send(http_method='POST', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1-preview.6', + version='4.1', route_values=route_values, query_parameters=query_parameters) def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. - [Preview API] Updates an existing definition. + Updates an existing definition. :param :class:` ` definition: The new version of the defintion. :param int definition_id: The ID of the definition. :param str project: Project ID or project name @@ -748,7 +748,7 @@ def update_definition(self, definition, definition_id, project=None, secrets_sou content = self._serialize.body(definition, 'BuildDefinition') response = self._send(http_method='PUT', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1-preview.6', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -870,7 +870,7 @@ def update_folder(self, folder, project, path): def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None): """GetBuildLog. - [Preview API] Gets an individual log file for a build. + Gets an individual log file for a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :param int log_id: The ID of the log file. @@ -892,14 +892,14 @@ def get_build_log(self, project, build_id, log_id, start_line=None, end_line=Non query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_line=None): """GetBuildLogLines. - [Preview API] Gets an individual log file for a build. + Gets an individual log file for a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :param int log_id: The ID of the log file. @@ -921,7 +921,7 @@ def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_li query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -929,7 +929,7 @@ def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_li def get_build_logs(self, project, build_id): """GetBuildLogs. - [Preview API] Gets the logs for a build. + Gets the logs for a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :rtype: [BuildLog] @@ -941,14 +941,14 @@ def get_build_logs(self, project, build_id): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BuildLog]', response) def get_build_logs_zip(self, project, build_id): """GetBuildLogsZip. - [Preview API] Gets the logs for a build. + Gets the logs for a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :rtype: object @@ -960,7 +960,7 @@ def get_build_logs_zip(self, project, build_id): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('object', response) @@ -1014,7 +1014,7 @@ def get_definition_metrics(self, project, definition_id, min_metrics_time=None): def get_build_option_definitions(self, project=None): """GetBuildOptionDefinitions. - [Preview API] Gets all build definition options supported by the system. + Gets all build definition options supported by the system. :param str project: Project ID or project name :rtype: [BuildOptionDefinition] """ @@ -1023,7 +1023,7 @@ def get_build_option_definitions(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='591cb5a4-2d46-4f3a-a697-5cd42b6bd332', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BuildOptionDefinition]', response) @@ -1246,7 +1246,7 @@ def get_resource_usage(self): def get_definition_revisions(self, project, definition_id): """GetDefinitionRevisions. - [Preview API] Gets all revisions of a definition. + Gets all revisions of a definition. :param str project: Project ID or project name :param int definition_id: The ID of the definition. :rtype: [BuildDefinitionRevision] @@ -1258,31 +1258,31 @@ def get_definition_revisions(self, project, definition_id): route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') response = self._send(http_method='GET', location_id='7c116775-52e5-453e-8c5d-914d9762d8c4', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BuildDefinitionRevision]', response) def get_build_settings(self): """GetBuildSettings. - [Preview API] Gets the build settings. + Gets the build settings. :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', - version='4.1-preview.1') + version='4.1') return self._deserialize('BuildSettings', response) def update_build_settings(self, settings): """UpdateBuildSettings. - [Preview API] Updates the build settings. + Updates the build settings. :param :class:` ` settings: The new settings. :rtype: :class:` ` """ content = self._serialize.body(settings, 'BuildSettings') response = self._send(http_method='PATCH', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', - version='4.1-preview.1', + version='4.1', content=content) return self._deserialize('BuildSettings', response) @@ -1304,7 +1304,7 @@ def list_source_providers(self, project): def add_build_tag(self, project, build_id, tag): """AddBuildTag. - [Preview API] Adds a tag to a build. + Adds a tag to a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :param str tag: The tag to add. @@ -1319,14 +1319,14 @@ def add_build_tag(self, project, build_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='PUT', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[str]', response) def add_build_tags(self, tags, project, build_id): """AddBuildTags. - [Preview API] Adds tags to a build. + Adds tags to a build. :param [str] tags: The tags to add. :param str project: Project ID or project name :param int build_id: The ID of the build. @@ -1340,7 +1340,7 @@ def add_build_tags(self, tags, project, build_id): content = self._serialize.body(tags, '[str]') response = self._send(http_method='POST', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1348,7 +1348,7 @@ def add_build_tags(self, tags, project, build_id): def delete_build_tag(self, project, build_id, tag): """DeleteBuildTag. - [Preview API] Removes a tag from a build. + Removes a tag from a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :param str tag: The tag to remove. @@ -1363,14 +1363,14 @@ def delete_build_tag(self, project, build_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='DELETE', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[str]', response) def get_build_tags(self, project, build_id): """GetBuildTags. - [Preview API] Gets the tags for a build. + Gets the tags for a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :rtype: [str] @@ -1382,7 +1382,23 @@ def get_build_tags(self, project, build_id): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1-preview.2', + version='4.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[str]', response) + + def get_tags(self, project): + """GetTags. + Gets a list of all build and definition tags in the project. + :param str project: Project ID or project name + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[str]', response) @@ -1477,25 +1493,9 @@ def get_definition_tags(self, project, definition_id, revision=None): returns_collection=True) return self._deserialize('[str]', response) - def get_tags(self, project): - """GetTags. - [Preview API] Gets a list of all build and definition tags in the project. - :param str project: Project ID or project name - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', - version='4.1-preview.2', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) - def delete_template(self, project, template_id): """DeleteTemplate. - [Preview API] Deletes a build definition template. + Deletes a build definition template. :param str project: Project ID or project name :param str template_id: The ID of the template. """ @@ -1506,12 +1506,12 @@ def delete_template(self, project, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') self._send(http_method='DELETE', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1-preview.3', + version='4.1', route_values=route_values) def get_template(self, project, template_id): """GetTemplate. - [Preview API] Gets a specific build definition template. + Gets a specific build definition template. :param str project: Project ID or project name :param str template_id: The ID of the requested template. :rtype: :class:` ` @@ -1523,13 +1523,13 @@ def get_template(self, project, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1-preview.3', + version='4.1', route_values=route_values) return self._deserialize('BuildDefinitionTemplate', response) def get_templates(self, project): """GetTemplates. - [Preview API] Gets all definition templates. + Gets all definition templates. :param str project: Project ID or project name :rtype: [BuildDefinitionTemplate] """ @@ -1538,14 +1538,14 @@ def get_templates(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1-preview.3', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BuildDefinitionTemplate]', response) def save_template(self, template, project, template_id): """SaveTemplate. - [Preview API] Updates an existing build definition template. + Updates an existing build definition template. :param :class:` ` template: The new version of the template. :param str project: Project ID or project name :param str template_id: The ID of the template. @@ -1559,7 +1559,7 @@ def save_template(self, template, project, template_id): content = self._serialize.body(template, 'BuildDefinitionTemplate') response = self._send(http_method='PUT', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1-preview.3', + version='4.1', route_values=route_values, content=content) return self._deserialize('BuildDefinitionTemplate', response) @@ -1588,25 +1588,30 @@ def get_ticketed_artifact_content_zip(self, build_id, project_id, artifact_name, query_parameters=query_parameters) return self._deserialize('object', response) - def get_ticketed_logs_content_zip(self, build_id, download_ticket): + def get_ticketed_logs_content_zip(self, build_id, project_id, download_ticket): """GetTicketedLogsContentZip. [Preview API] Gets a Zip file of the logs for a given build. :param int build_id: The ID of the build. + :param str project_id: The project ID. :param String download_ticket: A valid ticket that gives permission to download the logs. :rtype: object """ route_values = {} if build_id is not None: route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if project_id is not None: + query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') response = self._send(http_method='GET', location_id='917890d1-a6b5-432d-832a-6afcf6bb0734', version='4.1-preview.1', - route_values=route_values) + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('object', response) def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None, plan_id=None): """GetBuildTimeline. - [Preview API] Gets details for a build + Gets details for a build :param str project: Project ID or project name :param int build_id: :param str timeline_id: @@ -1628,7 +1633,7 @@ def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='8baac422-4c6e-4de5-8532-db96d92acffa', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Timeline', response) @@ -1689,7 +1694,7 @@ def list_webhooks(self, project, provider_name, service_endpoint_id=None, reposi def get_build_work_items_refs(self, project, build_id, top=None): """GetBuildWorkItemsRefs. - [Preview API] Gets the work items associated with a build. + Gets the work items associated with a build. :param str project: Project ID or project name :param int build_id: The ID of the build. :param int top: The maximum number of work items to return. @@ -1705,7 +1710,7 @@ def get_build_work_items_refs(self, project, build_id, top=None): query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1713,7 +1718,7 @@ def get_build_work_items_refs(self, project, build_id, top=None): def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, top=None): """GetBuildWorkItemsRefsFromCommits. - [Preview API] Gets the work items associated with a build, filtered to specific commits. + Gets the work items associated with a build, filtered to specific commits. :param [str] commit_ids: A comma-delimited list of commit IDs. :param str project: Project ID or project name :param int build_id: The ID of the build. @@ -1731,7 +1736,7 @@ def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, content = self._serialize.body(commit_ids, '[str]') response = self._send(http_method='POST', location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content, diff --git a/vsts/vsts/build/v4_1/models/aggregated_results_analysis.py b/vsts/vsts/build/v4_1/models/aggregated_results_analysis.py new file mode 100644 index 00000000..e8781211 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/aggregated_results_analysis.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedResultsAnalysis(Model): + """AggregatedResultsAnalysis. + + :param duration: + :type duration: object + :param not_reported_results_by_outcome: + :type not_reported_results_by_outcome: dict + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + :param results_by_outcome: + :type results_by_outcome: dict + :param results_difference: + :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_state: + :type run_summary_by_state: dict + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): + super(AggregatedResultsAnalysis, self).__init__() + self.duration = duration + self.not_reported_results_by_outcome = not_reported_results_by_outcome + self.previous_context = previous_context + self.results_by_outcome = results_by_outcome + self.results_difference = results_difference + self.run_summary_by_state = run_summary_by_state + self.total_tests = total_tests diff --git a/vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py b/vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py new file mode 100644 index 00000000..e31fbdde --- /dev/null +++ b/vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py @@ -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.serialization import Model + + +class AggregatedResultsByOutcome(Model): + """AggregatedResultsByOutcome. + + :param count: + :type count: int + :param duration: + :type duration: object + :param group_by_field: + :type group_by_field: str + :param group_by_value: + :type group_by_value: object + :param outcome: + :type outcome: object + :param rerun_result_count: + :type rerun_result_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'object'}, + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} + } + + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): + super(AggregatedResultsByOutcome, self).__init__() + self.count = count + self.duration = duration + self.group_by_field = group_by_field + self.group_by_value = group_by_value + self.outcome = outcome + self.rerun_result_count = rerun_result_count diff --git a/vsts/vsts/build/v4_1/models/aggregated_results_difference.py b/vsts/vsts/build/v4_1/models/aggregated_results_difference.py new file mode 100644 index 00000000..5bc4af42 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/aggregated_results_difference.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedResultsDifference(Model): + """AggregatedResultsDifference. + + :param increase_in_duration: + :type increase_in_duration: object + :param increase_in_failures: + :type increase_in_failures: int + :param increase_in_other_tests: + :type increase_in_other_tests: int + :param increase_in_passed_tests: + :type increase_in_passed_tests: int + :param increase_in_total_tests: + :type increase_in_total_tests: int + """ + + _attribute_map = { + 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, + 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, + 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, + 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, + 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} + } + + def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): + super(AggregatedResultsDifference, self).__init__() + self.increase_in_duration = increase_in_duration + self.increase_in_failures = increase_in_failures + self.increase_in_other_tests = increase_in_other_tests + self.increase_in_passed_tests = increase_in_passed_tests + self.increase_in_total_tests = increase_in_total_tests diff --git a/vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py b/vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py new file mode 100644 index 00000000..04398b82 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedRunsByState(Model): + """AggregatedRunsByState. + + :param runs_count: + :type runs_count: int + :param state: + :type state: object + """ + + _attribute_map = { + 'runs_count': {'key': 'runsCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, runs_count=None, state=None): + super(AggregatedRunsByState, self).__init__() + self.runs_count = runs_count + self.state = state diff --git a/vsts/vsts/build/v4_1/models/associated_work_item.py b/vsts/vsts/build/v4_1/models/associated_work_item.py new file mode 100644 index 00000000..1f491dad --- /dev/null +++ b/vsts/vsts/build/v4_1/models/associated_work_item.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: Id of associated the work item. + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST Url of the work item. + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type diff --git a/vsts/vsts/build/v4_1/models/attachment.py b/vsts/vsts/build/v4_1/models/attachment.py new file mode 100644 index 00000000..b322dcf3 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/attachment.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Attachment(Model): + """Attachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param name: The name of the attachment. + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, name=None): + super(Attachment, self).__init__() + self._links = _links + self.name = name diff --git a/vsts/vsts/build/v4_1/models/build_definition_counter.py b/vsts/vsts/build/v4_1/models/build_definition_counter.py new file mode 100644 index 00000000..1056104f --- /dev/null +++ b/vsts/vsts/build/v4_1/models/build_definition_counter.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BuildDefinitionCounter(Model): + """BuildDefinitionCounter. + + :param id: The unique Id of the Counter. + :type id: int + :param seed: This is the original counter value. + :type seed: long + :param value: This is the current counter value. + :type value: long + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'seed': {'key': 'seed', 'type': 'long'}, + 'value': {'key': 'value', 'type': 'long'} + } + + def __init__(self, id=None, seed=None, value=None): + super(BuildDefinitionCounter, self).__init__() + self.id = id + self.seed = seed + self.value = value diff --git a/vsts/vsts/build/v4_1/models/graph_subject_base.py b/vsts/vsts/build/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/build/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/build/v4_1/models/release_reference.py b/vsts/vsts/build/v4_1/models/release_reference.py new file mode 100644 index 00000000..370c7131 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/release_reference.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseReference(Model): + """ReleaseReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + :param environment_definition_name: + :type environment_definition_name: str + :param environment_id: + :type environment_id: int + :param environment_name: + :type environment_name: str + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, + 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + super(ReleaseReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + self.environment_definition_name = environment_definition_name + self.environment_id = environment_id + self.environment_name = environment_name + self.id = id + self.name = name diff --git a/vsts/vsts/build/v4_1/models/repository_webhook.py b/vsts/vsts/build/v4_1/models/repository_webhook.py new file mode 100644 index 00000000..31487a63 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/repository_webhook.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RepositoryWebhook(Model): + """RepositoryWebhook. + + :param name: The friendly name of the repository. + :type name: str + :param types: + :type types: list of DefinitionTriggerType + :param url: The URL of the repository. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'types': {'key': 'types', 'type': '[DefinitionTriggerType]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, types=None, url=None): + super(RepositoryWebhook, self).__init__() + self.name = name + self.types = types + self.url = url diff --git a/vsts/vsts/build/v4_1/models/source_repositories.py b/vsts/vsts/build/v4_1/models/source_repositories.py new file mode 100644 index 00000000..0d1f9400 --- /dev/null +++ b/vsts/vsts/build/v4_1/models/source_repositories.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SourceRepositories(Model): + """SourceRepositories. + + :param continuation_token: A token used to continue this paged request; 'null' if the request is complete + :type continuation_token: str + :param page_length: The number of repositories requested for each page + :type page_length: int + :param repositories: A list of repositories + :type repositories: list of :class:`SourceRepository ` + :param total_page_count: The total number of pages, or '-1' if unknown + :type total_page_count: int + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'page_length': {'key': 'pageLength', 'type': 'int'}, + 'repositories': {'key': 'repositories', 'type': '[SourceRepository]'}, + 'total_page_count': {'key': 'totalPageCount', 'type': 'int'} + } + + def __init__(self, continuation_token=None, page_length=None, repositories=None, total_page_count=None): + super(SourceRepositories, self).__init__() + self.continuation_token = continuation_token + self.page_length = page_length + self.repositories = repositories + self.total_page_count = total_page_count diff --git a/vsts/vsts/build/v4_1/models/source_repository_item.py b/vsts/vsts/build/v4_1/models/source_repository_item.py new file mode 100644 index 00000000..14faf73f --- /dev/null +++ b/vsts/vsts/build/v4_1/models/source_repository_item.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SourceRepositoryItem(Model): + """SourceRepositoryItem. + + :param is_container: Whether the item is able to have sub-items (e.g., is a folder). + :type is_container: bool + :param path: The full path of the item, relative to the root of the repository. + :type path: str + :param type: The type of the item (folder, file, etc). + :type type: str + :param url: The URL of the item. + :type url: str + """ + + _attribute_map = { + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, is_container=None, path=None, type=None, url=None): + super(SourceRepositoryItem, self).__init__() + self.is_container = is_container + self.path = path + self.type = type + self.url = url diff --git a/vsts/vsts/build/v4_1/models/test_results_context.py b/vsts/vsts/build/v4_1/models/test_results_context.py new file mode 100644 index 00000000..0d9c2adc --- /dev/null +++ b/vsts/vsts/build/v4_1/models/test_results_context.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsContext(Model): + """TestResultsContext. + + :param build: + :type build: :class:`BuildReference ` + :param context_type: + :type context_type: object + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'context_type': {'key': 'contextType', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, context_type=None, release=None): + super(TestResultsContext, self).__init__() + self.build = build + self.context_type = context_type + self.release = release diff --git a/vsts/vsts/client_trace/__init__.py b/vsts/vsts/client_trace/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/client_trace/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/client_trace/v4_1/__init__.py b/vsts/vsts/client_trace/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/client_trace/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/client_trace/v4_1/client_trace_client.py b/vsts/vsts/client_trace/v4_1/client_trace_client.py new file mode 100644 index 00000000..02ef3d2d --- /dev/null +++ b/vsts/vsts/client_trace/v4_1/client_trace_client.py @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ClientTraceClient(VssClient): + """ClientTrace + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ClientTraceClient, 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 publish_events(self, events): + """PublishEvents. + [Preview API] + :param [ClientTraceEvent] events: + """ + content = self._serialize.body(events, '[ClientTraceEvent]') + self._send(http_method='POST', + location_id='06bcc74a-1491-4eb8-a0eb-704778f9d041', + version='4.1-preview.1', + content=content) + diff --git a/vsts/vsts/client_trace/v4_1/models/__init__.py b/vsts/vsts/client_trace/v4_1/models/__init__.py new file mode 100644 index 00000000..45a494e7 --- /dev/null +++ b/vsts/vsts/client_trace/v4_1/models/__init__.py @@ -0,0 +1,13 @@ +# -------------------------------------------------------------------------------------------- +# 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 .client_trace_event import ClientTraceEvent + +__all__ = [ + 'ClientTraceEvent', +] diff --git a/vsts/vsts/client_trace/v4_1/models/client_trace_event.py b/vsts/vsts/client_trace/v4_1/models/client_trace_event.py new file mode 100644 index 00000000..20264c89 --- /dev/null +++ b/vsts/vsts/client_trace/v4_1/models/client_trace_event.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientTraceEvent(Model): + """ClientTraceEvent. + + :param area: + :type area: str + :param component: + :type component: str + :param exception_type: + :type exception_type: str + :param feature: + :type feature: str + :param level: + :type level: object + :param message: + :type message: str + :param method: + :type method: str + :param properties: + :type properties: dict + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'str'}, + 'component': {'key': 'component', 'type': 'str'}, + 'exception_type': {'key': 'exceptionType', 'type': 'str'}, + 'feature': {'key': 'feature', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'object'}, + 'message': {'key': 'message', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, area=None, component=None, exception_type=None, feature=None, level=None, message=None, method=None, properties=None): + super(ClientTraceEvent, self).__init__() + self.area = area + self.component = component + self.exception_type = exception_type + self.feature = feature + self.level = level + self.message = message + self.method = method + self.properties = properties diff --git a/vsts/vsts/contributions/v4_1/models/client_contribution.py b/vsts/vsts/contributions/v4_1/models/client_contribution.py new file mode 100644 index 00000000..4d74fe8f --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/client_contribution.py @@ -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.serialization import Model + + +class ClientContribution(Model): + """ClientContribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, includes=None, properties=None, targets=None, type=None): + super(ClientContribution, self).__init__() + self.description = description + self.id = id + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/client_contribution_node.py b/vsts/vsts/contributions/v4_1/models/client_contribution_node.py new file mode 100644 index 00000000..dfb64bec --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/client_contribution_node.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientContributionNode(Model): + """ClientContributionNode. + + :param children: List of ids for contributions which are children to the current contribution. + :type children: list of str + :param contribution: Contribution associated with this node. + :type contribution: :class:`ClientContribution ` + :param parents: List of ids for contributions which are parents to the current contribution. + :type parents: list of str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[str]'}, + 'contribution': {'key': 'contribution', 'type': 'ClientContribution'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, children=None, contribution=None, parents=None): + super(ClientContributionNode, self).__init__() + self.children = children + self.contribution = contribution + self.parents = parents diff --git a/vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py b/vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py new file mode 100644 index 00000000..1e2b744e --- /dev/null +++ b/vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientContributionProviderDetails(Model): + """ClientContributionProviderDetails. + + :param display_name: Friendly name for the provider. + :type display_name: str + :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes + :type name: str + :param properties: Properties associated with the provider + :type properties: dict + :param version: Version of contributions assoicated with this contribution provider. + :type version: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, display_name=None, name=None, properties=None, version=None): + super(ClientContributionProviderDetails, self).__init__() + self.display_name = display_name + self.name = name + self.properties = properties + self.version = version diff --git a/vsts/vsts/core/v4_1/core_client.py b/vsts/vsts/core/v4_1/core_client.py index 2e69d16c..b4be6f20 100644 --- a/vsts/vsts/core/v4_1/core_client.py +++ b/vsts/vsts/core/v4_1/core_client.py @@ -84,7 +84,7 @@ def get_connected_services(self, project_id, kind=None): def get_team_members_with_extended_properties(self, project_id, team_id, top=None, skip=None): """GetTeamMembersWithExtendedProperties. - [Preview API] Get a list of members for a specific team. + Get a list of members for a specific team. :param str project_id: The name or ID (GUID) of the team project the team belongs to. :param str team_id: The name or ID (GUID) of the team . :param int top: @@ -103,7 +103,7 @@ def get_team_members_with_extended_properties(self, project_id, team_id, top=Non query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -111,7 +111,7 @@ def get_team_members_with_extended_properties(self, project_id, team_id, top=Non def get_process_by_id(self, process_id): """GetProcessById. - [Preview API] Get a process by ID. + Get a process by ID. :param str process_id: ID for a process. :rtype: :class:` ` """ @@ -120,24 +120,24 @@ def get_process_by_id(self, process_id): route_values['processId'] = self._serialize.url('process_id', process_id, 'str') response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('Process', response) def get_processes(self): """GetProcesses. - [Preview API] Get a list of processes. + Get a list of processes. :rtype: [Process] """ response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.1-preview.1', + version='4.1', returns_collection=True) return self._deserialize('[Process]', response) def get_project_collection(self, collection_id): """GetProjectCollection. - [Preview API] Get project collection with the specified id or name. + Get project collection with the specified id or name. :param str collection_id: :rtype: :class:` ` """ @@ -146,13 +146,13 @@ def get_project_collection(self, collection_id): route_values['collectionId'] = self._serialize.url('collection_id', collection_id, 'str') response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('TeamProjectCollection', response) def get_project_collections(self, top=None, skip=None): """GetProjectCollections. - [Preview API] Get project collection references for this application. + Get project collection references for this application. :param int top: :param int skip: :rtype: [TeamProjectCollectionReference] @@ -164,7 +164,7 @@ def get_project_collections(self, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', - version='4.1-preview.2', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[TeamProjectCollectionReference]', response) @@ -187,7 +187,7 @@ def get_project_history_entries(self, min_revision=None): def get_project(self, project_id, include_capabilities=None, include_history=None): """GetProject. - [Preview API] Get project with the specified id or name, optionally including capabilities. + Get project with the specified id or name, optionally including capabilities. :param str project_id: :param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false). :param bool include_history: Search within renamed projects (that had such name in the past). @@ -203,14 +203,14 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TeamProject', response) def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None): """GetProjects. - [Preview API] Get project references with the specified state + Get project references with the specified state :param str state_filter: Filter on team projects in a specific team project state (default: WellFormed). :param int top: :param int skip: @@ -228,27 +228,27 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1-preview.3', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[TeamProjectReference]', response) def queue_create_project(self, project_to_create): """QueueCreateProject. - [Preview API] Queue a project creation. + Queue a project creation. :param :class:` ` project_to_create: The project to create. :rtype: :class:` ` """ content = self._serialize.body(project_to_create, 'TeamProject') response = self._send(http_method='POST', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1-preview.3', + version='4.1', content=content) return self._deserialize('OperationReference', response) def queue_delete_project(self, project_id): """QueueDeleteProject. - [Preview API] Queue a project deletion. + Queue a project deletion. :param str project_id: The project id of the project to delete. :rtype: :class:` ` """ @@ -257,13 +257,13 @@ def queue_delete_project(self, project_id): route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') response = self._send(http_method='DELETE', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1-preview.3', + version='4.1', route_values=route_values) return self._deserialize('OperationReference', response) def update_project(self, project_update, project_id): """UpdateProject. - [Preview API] Update an existing project's name, abbreviation, or description. + Update an existing project's name, abbreviation, or description. :param :class:` ` project_update: The updates for the project. :param str project_id: The project id of the project to update. :rtype: :class:` ` @@ -274,7 +274,7 @@ def update_project(self, project_update, project_id): content = self._serialize.body(project_update, 'TeamProject') response = self._send(http_method='PATCH', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1-preview.3', + version='4.1', route_values=route_values, content=content) return self._deserialize('OperationReference', response) @@ -363,31 +363,9 @@ def get_proxies(self, proxy_url=None): returns_collection=True) return self._deserialize('[Proxy]', response) - def get_all_teams(self, mine=None, top=None, skip=None): - """GetAllTeams. - [Preview API] Get a list of all teams. - :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access - :param int top: Maximum number of teams to return. - :param int skip: Number of teams to skip. - :rtype: [WebApiTeam] - """ - query_parameters = {} - if mine is not None: - query_parameters['$mine'] = self._serialize.query('mine', mine, 'bool') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - response = self._send(http_method='GET', - location_id='7a4d9ee9-3433-4347-b47a-7a80f1cf307e', - version='4.1-preview.2', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiTeam]', response) - def create_team(self, team, project_id): """CreateTeam. - [Preview API] Create a team in a team project. + Create a team in a team project. :param :class:` ` team: The team data used to create the team. :param str project_id: The name or ID (GUID) of the team project in which to create the team. :rtype: :class:` ` @@ -398,14 +376,14 @@ def create_team(self, team, project_id): content = self._serialize.body(team, 'WebApiTeam') response = self._send(http_method='POST', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('WebApiTeam', response) def delete_team(self, project_id, team_id): """DeleteTeam. - [Preview API] Delete a team. + Delete a team. :param str project_id: The name or ID (GUID) of the team project containing the team to delete. :param str team_id: The name of ID of the team to delete. """ @@ -416,12 +394,12 @@ def delete_team(self, project_id, team_id): route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') self._send(http_method='DELETE', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1-preview.2', + version='4.1', route_values=route_values) def get_team(self, project_id, team_id): """GetTeam. - [Preview API] Get a specific team. + Get a specific team. :param str project_id: The name or ID (GUID) of the team project containing the team. :param str team_id: The name or ID (GUID) of the team. :rtype: :class:` ` @@ -433,13 +411,13 @@ def get_team(self, project_id, team_id): route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') response = self._send(http_method='GET', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('WebApiTeam', response) def get_teams(self, project_id, mine=None, top=None, skip=None): """GetTeams. - [Preview API] Get a list of teams. + Get a list of teams. :param str project_id: :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access :param int top: Maximum number of teams to return. @@ -458,7 +436,7 @@ def get_teams(self, project_id, mine=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -466,7 +444,7 @@ def get_teams(self, project_id, mine=None, top=None, skip=None): def update_team(self, team_data, project_id, team_id): """UpdateTeam. - [Preview API] Update a team's name and/or description. + Update a team's name and/or description. :param :class:` ` team_data: :param str project_id: The name or ID (GUID) of the team project containing the team to update. :param str team_id: The name of ID of the team to update. @@ -480,8 +458,30 @@ def update_team(self, team_data, project_id, team_id): content = self._serialize.body(team_data, 'WebApiTeam') response = self._send(http_method='PATCH', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('WebApiTeam', response) + def get_all_teams(self, mine=None, top=None, skip=None): + """GetAllTeams. + [Preview API] Get a list of all teams. + :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access + :param int top: Maximum number of teams to return. + :param int skip: Number of teams to skip. + :rtype: [WebApiTeam] + """ + query_parameters = {} + if mine is not None: + query_parameters['$mine'] = self._serialize.query('mine', mine, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='7a4d9ee9-3433-4347-b47a-7a80f1cf307e', + version='4.1-preview.2', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WebApiTeam]', response) + diff --git a/vsts/vsts/core/v4_1/models/graph_subject_base.py b/vsts/vsts/core/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/core/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/extension_management/v4_1/models/graph_subject_base.py b/vsts/vsts/extension_management/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/extension_management/v4_1/models/reference_links.py b/vsts/vsts/extension_management/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/extension_management/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/feed/__init__.py b/vsts/vsts/feed/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feed/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed/v4_1/__init__.py b/vsts/vsts/feed/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feed/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed/v4_1/feed_client.py b/vsts/vsts/feed/v4_1/feed_client.py new file mode 100644 index 00000000..4ed7d654 --- /dev/null +++ b/vsts/vsts/feed/v4_1/feed_client.py @@ -0,0 +1,659 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class FeedClient(VssClient): + """Feed + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeedClient, 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 = '7ab4e64e-c4d8-4f50-ae73-5ef2e21642a5' + + def get_badge(self, feed_id, package_id): + """GetBadge. + [Preview API] + :param str feed_id: + :param str package_id: + :rtype: str + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + response = self._send(http_method='GET', + location_id='61d885fd-10f3-4a55-82b6-476d866b673f', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def get_feed_change(self, feed_id): + """GetFeedChange. + [Preview API] + :param str feed_id: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + response = self._send(http_method='GET', + location_id='29ba2dad-389a-4661-b5d3-de76397ca05b', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('FeedChange', response) + + def get_feed_changes(self, include_deleted=None, continuation_token=None, batch_size=None): + """GetFeedChanges. + [Preview API] + :param bool include_deleted: + :param long continuation_token: + :param int batch_size: + :rtype: :class:` ` + """ + query_parameters = {} + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'long') + if batch_size is not None: + query_parameters['batchSize'] = self._serialize.query('batch_size', batch_size, 'int') + response = self._send(http_method='GET', + location_id='29ba2dad-389a-4661-b5d3-de76397ca05b', + version='4.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('FeedChangesResponse', response) + + def create_feed(self, feed): + """CreateFeed. + [Preview API] + :param :class:` ` feed: + :rtype: :class:` ` + """ + content = self._serialize.body(feed, 'Feed') + response = self._send(http_method='POST', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='4.1-preview.1', + content=content) + return self._deserialize('Feed', response) + + def delete_feed(self, feed_id): + """DeleteFeed. + [Preview API] + :param str feed_id: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + self._send(http_method='DELETE', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='4.1-preview.1', + route_values=route_values) + + def get_feed(self, feed_id, include_deleted_upstreams=None): + """GetFeed. + [Preview API] + :param str feed_id: + :param bool include_deleted_upstreams: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if include_deleted_upstreams is not None: + query_parameters['includeDeletedUpstreams'] = self._serialize.query('include_deleted_upstreams', include_deleted_upstreams, 'bool') + response = self._send(http_method='GET', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Feed', response) + + def get_feeds(self, feed_role=None, include_deleted_upstreams=None): + """GetFeeds. + [Preview API] + :param str feed_role: + :param bool include_deleted_upstreams: + :rtype: [Feed] + """ + query_parameters = {} + if feed_role is not None: + query_parameters['feedRole'] = self._serialize.query('feed_role', feed_role, 'str') + if include_deleted_upstreams is not None: + query_parameters['includeDeletedUpstreams'] = self._serialize.query('include_deleted_upstreams', include_deleted_upstreams, 'bool') + response = self._send(http_method='GET', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Feed]', response) + + def update_feed(self, feed, feed_id): + """UpdateFeed. + [Preview API] + :param :class:` ` feed: + :param str feed_id: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(feed, 'FeedUpdate') + response = self._send(http_method='PATCH', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Feed', response) + + def get_global_permissions(self): + """GetGlobalPermissions. + [Preview API] + :rtype: [GlobalPermission] + """ + response = self._send(http_method='GET', + location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[GlobalPermission]', response) + + def set_global_permissions(self, global_permissions): + """SetGlobalPermissions. + [Preview API] + :param [GlobalPermission] global_permissions: + :rtype: [GlobalPermission] + """ + content = self._serialize.body(global_permissions, '[GlobalPermission]') + response = self._send(http_method='PATCH', + location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', + version='4.1-preview.1', + content=content, + returns_collection=True) + return self._deserialize('[GlobalPermission]', response) + + def get_package_changes(self, feed_id, continuation_token=None, batch_size=None): + """GetPackageChanges. + [Preview API] + :param str feed_id: + :param long continuation_token: + :param int batch_size: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'long') + if batch_size is not None: + query_parameters['batchSize'] = self._serialize.query('batch_size', batch_size, 'int') + response = self._send(http_method='GET', + location_id='323a0631-d083-4005-85ae-035114dfb681', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PackageChangesResponse', response) + + def get_package(self, feed_id, package_id, include_all_versions=None, include_urls=None, is_listed=None, is_release=None, include_deleted=None, include_description=None): + """GetPackage. + [Preview API] + :param str feed_id: + :param str package_id: + :param bool include_all_versions: + :param bool include_urls: + :param bool is_listed: + :param bool is_release: + :param bool include_deleted: + :param bool include_description: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_all_versions is not None: + query_parameters['includeAllVersions'] = self._serialize.query('include_all_versions', include_all_versions, 'bool') + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if is_release is not None: + query_parameters['isRelease'] = self._serialize.query('is_release', is_release, 'bool') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_description is not None: + query_parameters['includeDescription'] = self._serialize.query('include_description', include_description, 'bool') + response = self._send(http_method='GET', + location_id='7a20d846-c929-4acc-9ea2-0d5a7df1b197', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def get_packages(self, feed_id, protocol_type=None, package_name_query=None, normalized_package_name=None, include_urls=None, include_all_versions=None, is_listed=None, get_top_package_versions=None, is_release=None, include_description=None, top=None, skip=None, include_deleted=None, is_cached=None, direct_upstream_id=None): + """GetPackages. + [Preview API] + :param str feed_id: + :param str protocol_type: + :param str package_name_query: + :param str normalized_package_name: + :param bool include_urls: + :param bool include_all_versions: + :param bool is_listed: + :param bool get_top_package_versions: + :param bool is_release: + :param bool include_description: + :param int top: + :param int skip: + :param bool include_deleted: + :param bool is_cached: + :param str direct_upstream_id: + :rtype: [Package] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if protocol_type is not None: + query_parameters['protocolType'] = self._serialize.query('protocol_type', protocol_type, 'str') + if package_name_query is not None: + query_parameters['packageNameQuery'] = self._serialize.query('package_name_query', package_name_query, 'str') + if normalized_package_name is not None: + query_parameters['normalizedPackageName'] = self._serialize.query('normalized_package_name', normalized_package_name, 'str') + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if include_all_versions is not None: + query_parameters['includeAllVersions'] = self._serialize.query('include_all_versions', include_all_versions, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if get_top_package_versions is not None: + query_parameters['getTopPackageVersions'] = self._serialize.query('get_top_package_versions', get_top_package_versions, 'bool') + if is_release is not None: + query_parameters['isRelease'] = self._serialize.query('is_release', is_release, 'bool') + if include_description is not None: + query_parameters['includeDescription'] = self._serialize.query('include_description', include_description, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if is_cached is not None: + query_parameters['isCached'] = self._serialize.query('is_cached', is_cached, 'bool') + if direct_upstream_id is not None: + query_parameters['directUpstreamId'] = self._serialize.query('direct_upstream_id', direct_upstream_id, 'str') + response = self._send(http_method='GET', + location_id='7a20d846-c929-4acc-9ea2-0d5a7df1b197', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Package]', response) + + def get_feed_permissions(self, feed_id, include_ids=None, exclude_inherited_permissions=None): + """GetFeedPermissions. + [Preview API] + :param str feed_id: + :param bool include_ids: + :param bool exclude_inherited_permissions: + :rtype: [FeedPermission] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if include_ids is not None: + query_parameters['includeIds'] = self._serialize.query('include_ids', include_ids, 'bool') + if exclude_inherited_permissions is not None: + query_parameters['excludeInheritedPermissions'] = self._serialize.query('exclude_inherited_permissions', exclude_inherited_permissions, 'bool') + response = self._send(http_method='GET', + location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[FeedPermission]', response) + + def set_feed_permissions(self, feed_permission, feed_id): + """SetFeedPermissions. + [Preview API] + :param [FeedPermission] feed_permission: + :param str feed_id: + :rtype: [FeedPermission] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(feed_permission, '[FeedPermission]') + response = self._send(http_method='PATCH', + location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[FeedPermission]', response) + + def get_recycle_bin_package(self, feed_id, package_id, include_urls=None): + """GetRecycleBinPackage. + [Preview API] + :param str feed_id: + :param str package_id: + :param bool include_urls: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + response = self._send(http_method='GET', + location_id='2704e72c-f541-4141-99be-2004b50b05fa', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def get_recycle_bin_packages(self, feed_id, protocol_type=None, package_name_query=None, include_urls=None, top=None, skip=None, include_all_versions=None): + """GetRecycleBinPackages. + [Preview API] + :param str feed_id: + :param str protocol_type: + :param str package_name_query: + :param bool include_urls: + :param int top: + :param int skip: + :param bool include_all_versions: + :rtype: [Package] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if protocol_type is not None: + query_parameters['protocolType'] = self._serialize.query('protocol_type', protocol_type, 'str') + if package_name_query is not None: + query_parameters['packageNameQuery'] = self._serialize.query('package_name_query', package_name_query, 'str') + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if include_all_versions is not None: + query_parameters['includeAllVersions'] = self._serialize.query('include_all_versions', include_all_versions, 'bool') + response = self._send(http_method='GET', + location_id='2704e72c-f541-4141-99be-2004b50b05fa', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Package]', response) + + def get_recycle_bin_package_version(self, feed_id, package_id, package_version_id, include_urls=None): + """GetRecycleBinPackageVersion. + [Preview API] + :param str feed_id: + :param str package_id: + :param str package_version_id: + :param bool include_urls: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + if package_version_id is not None: + route_values['packageVersionId'] = self._serialize.url('package_version_id', package_version_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + response = self._send(http_method='GET', + location_id='aceb4be7-8737-4820-834c-4c549e10fdc7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('RecycleBinPackageVersion', response) + + def get_recycle_bin_package_versions(self, feed_id, package_id, include_urls=None): + """GetRecycleBinPackageVersions. + [Preview API] + :param str feed_id: + :param str package_id: + :param bool include_urls: + :rtype: [RecycleBinPackageVersion] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + response = self._send(http_method='GET', + location_id='aceb4be7-8737-4820-834c-4c549e10fdc7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[RecycleBinPackageVersion]', response) + + def delete_feed_retention_policies(self, feed_id): + """DeleteFeedRetentionPolicies. + [Preview API] + :param str feed_id: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + self._send(http_method='DELETE', + location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', + version='4.1-preview.1', + route_values=route_values) + + def get_feed_retention_policies(self, feed_id): + """GetFeedRetentionPolicies. + [Preview API] + :param str feed_id: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + response = self._send(http_method='GET', + location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('FeedRetentionPolicy', response) + + def set_feed_retention_policies(self, policy, feed_id): + """SetFeedRetentionPolicies. + [Preview API] + :param :class:` ` policy: + :param str feed_id: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(policy, 'FeedRetentionPolicy') + response = self._send(http_method='PUT', + location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FeedRetentionPolicy', response) + + def get_package_version(self, feed_id, package_id, package_version_id, include_urls=None, is_listed=None, is_deleted=None): + """GetPackageVersion. + [Preview API] + :param str feed_id: + :param str package_id: + :param str package_version_id: + :param bool include_urls: + :param bool is_listed: + :param bool is_deleted: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + if package_version_id is not None: + route_values['packageVersionId'] = self._serialize.url('package_version_id', package_version_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='3b331909-6a86-44cc-b9ec-c1834c35498f', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PackageVersion', response) + + def get_package_versions(self, feed_id, package_id, include_urls=None, is_listed=None, is_deleted=None): + """GetPackageVersions. + [Preview API] + :param str feed_id: + :param str package_id: + :param bool include_urls: + :param bool is_listed: + :param bool is_deleted: + :rtype: [PackageVersion] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='3b331909-6a86-44cc-b9ec-c1834c35498f', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[PackageVersion]', response) + + def create_feed_view(self, view, feed_id): + """CreateFeedView. + [Preview API] + :param :class:` ` view: + :param str feed_id: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(view, 'FeedView') + response = self._send(http_method='POST', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FeedView', response) + + def delete_feed_view(self, feed_id, view_id): + """DeleteFeedView. + [Preview API] + :param str feed_id: + :param str view_id: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if view_id is not None: + route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') + self._send(http_method='DELETE', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='4.1-preview.1', + route_values=route_values) + + def get_feed_view(self, feed_id, view_id): + """GetFeedView. + [Preview API] + :param str feed_id: + :param str view_id: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if view_id is not None: + route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') + response = self._send(http_method='GET', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('FeedView', response) + + def get_feed_views(self, feed_id): + """GetFeedViews. + [Preview API] + :param str feed_id: + :rtype: [FeedView] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + response = self._send(http_method='GET', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[FeedView]', response) + + def update_feed_view(self, view, feed_id, view_id): + """UpdateFeedView. + [Preview API] + :param :class:` ` view: + :param str feed_id: + :param str view_id: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if view_id is not None: + route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') + content = self._serialize.body(view, 'FeedView') + response = self._send(http_method='PATCH', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FeedView', response) + diff --git a/vsts/vsts/feed/v4_1/models/__init__.py b/vsts/vsts/feed/v4_1/models/__init__.py new file mode 100644 index 00000000..d1013d41 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/__init__.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .feed import Feed +from .feed_change import FeedChange +from .feed_changes_response import FeedChangesResponse +from .feed_core import FeedCore +from .feed_permission import FeedPermission +from .feed_retention_policy import FeedRetentionPolicy +from .feed_update import FeedUpdate +from .feed_view import FeedView +from .global_permission import GlobalPermission +from .json_patch_operation import JsonPatchOperation +from .minimal_package_version import MinimalPackageVersion +from .package import Package +from .package_change import PackageChange +from .package_changes_response import PackageChangesResponse +from .package_dependency import PackageDependency +from .package_file import PackageFile +from .package_version import PackageVersion +from .package_version_change import PackageVersionChange +from .protocol_metadata import ProtocolMetadata +from .recycle_bin_package_version import RecycleBinPackageVersion +from .reference_links import ReferenceLinks +from .upstream_source import UpstreamSource + +__all__ = [ + 'Feed', + 'FeedChange', + 'FeedChangesResponse', + 'FeedCore', + 'FeedPermission', + 'FeedRetentionPolicy', + 'FeedUpdate', + 'FeedView', + 'GlobalPermission', + 'JsonPatchOperation', + 'MinimalPackageVersion', + 'Package', + 'PackageChange', + 'PackageChangesResponse', + 'PackageDependency', + 'PackageFile', + 'PackageVersion', + 'PackageVersionChange', + 'ProtocolMetadata', + 'RecycleBinPackageVersion', + 'ReferenceLinks', + 'UpstreamSource', +] diff --git a/vsts/vsts/feed/v4_1/models/feed.py b/vsts/vsts/feed/v4_1/models/feed.py new file mode 100644 index 00000000..9e2cd8e1 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed.py @@ -0,0 +1,93 @@ +# -------------------------------------------------------------------------------------------- +# 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 .feed_core import FeedCore + + +class Feed(FeedCore): + """Feed. + + :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param capabilities: + :type capabilities: object + :param fully_qualified_id: + :type fully_qualified_id: str + :param fully_qualified_name: + :type fully_qualified_name: str + :param id: + :type id: str + :param is_read_only: + :type is_read_only: bool + :param name: + :type name: str + :param upstream_enabled: If set, the feed can proxy packages from an upstream feed + :type upstream_enabled: bool + :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: + :type view: :class:`FeedView ` + :param view_id: + :type view_id: str + :param view_name: + :type view_name: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param badges_enabled: + :type badges_enabled: bool + :param default_view_id: + :type default_view_id: str + :param deleted_date: + :type deleted_date: datetime + :param description: + :type description: str + :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions + :type hide_deleted_package_versions: bool + :param permissions: + :type permissions: list of :class:`FeedPermission ` + :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. + :type upstream_enabled_changed_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'capabilities': {'key': 'capabilities', 'type': 'object'}, + 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, + 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, + 'view': {'key': 'view', 'type': 'FeedView'}, + 'view_id': {'key': 'viewId', 'type': 'str'}, + 'view_name': {'key': 'viewName', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, + 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, + 'permissions': {'key': 'permissions', 'type': '[FeedPermission]'}, + 'upstream_enabled_changed_date': {'key': 'upstreamEnabledChangedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None, _links=None, badges_enabled=None, default_view_id=None, deleted_date=None, description=None, hide_deleted_package_versions=None, permissions=None, upstream_enabled_changed_date=None, url=None): + super(Feed, self).__init__(allow_upstream_name_conflict=allow_upstream_name_conflict, capabilities=capabilities, fully_qualified_id=fully_qualified_id, fully_qualified_name=fully_qualified_name, id=id, is_read_only=is_read_only, name=name, upstream_enabled=upstream_enabled, upstream_sources=upstream_sources, view=view, view_id=view_id, view_name=view_name) + self._links = _links + self.badges_enabled = badges_enabled + self.default_view_id = default_view_id + self.deleted_date = deleted_date + self.description = description + self.hide_deleted_package_versions = hide_deleted_package_versions + self.permissions = permissions + self.upstream_enabled_changed_date = upstream_enabled_changed_date + self.url = url diff --git a/vsts/vsts/feed/v4_1/models/feed_change.py b/vsts/vsts/feed/v4_1/models/feed_change.py new file mode 100644 index 00000000..d492f13d --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed_change.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedChange(Model): + """FeedChange. + + :param change_type: + :type change_type: object + :param feed: + :type feed: :class:`Feed ` + :param feed_continuation_token: + :type feed_continuation_token: long + :param latest_package_continuation_token: + :type latest_package_continuation_token: long + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'feed': {'key': 'feed', 'type': 'Feed'}, + 'feed_continuation_token': {'key': 'feedContinuationToken', 'type': 'long'}, + 'latest_package_continuation_token': {'key': 'latestPackageContinuationToken', 'type': 'long'} + } + + def __init__(self, change_type=None, feed=None, feed_continuation_token=None, latest_package_continuation_token=None): + super(FeedChange, self).__init__() + self.change_type = change_type + self.feed = feed + self.feed_continuation_token = feed_continuation_token + self.latest_package_continuation_token = latest_package_continuation_token diff --git a/vsts/vsts/feed/v4_1/models/feed_changes_response.py b/vsts/vsts/feed/v4_1/models/feed_changes_response.py new file mode 100644 index 00000000..7ff57cf2 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed_changes_response.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedChangesResponse(Model): + """FeedChangesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param count: + :type count: int + :param feed_changes: + :type feed_changes: list of :class:`FeedChange ` + :param next_feed_continuation_token: + :type next_feed_continuation_token: long + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'count': {'key': 'count', 'type': 'int'}, + 'feed_changes': {'key': 'feedChanges', 'type': '[FeedChange]'}, + 'next_feed_continuation_token': {'key': 'nextFeedContinuationToken', 'type': 'long'} + } + + def __init__(self, _links=None, count=None, feed_changes=None, next_feed_continuation_token=None): + super(FeedChangesResponse, self).__init__() + self._links = _links + self.count = count + self.feed_changes = feed_changes + self.next_feed_continuation_token = next_feed_continuation_token diff --git a/vsts/vsts/feed/v4_1/models/feed_core.py b/vsts/vsts/feed/v4_1/models/feed_core.py new file mode 100644 index 00000000..a0c9a4c2 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed_core.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedCore(Model): + """FeedCore. + + :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param capabilities: + :type capabilities: object + :param fully_qualified_id: + :type fully_qualified_id: str + :param fully_qualified_name: + :type fully_qualified_name: str + :param id: + :type id: str + :param is_read_only: + :type is_read_only: bool + :param name: + :type name: str + :param upstream_enabled: If set, the feed can proxy packages from an upstream feed + :type upstream_enabled: bool + :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: + :type view: :class:`FeedView ` + :param view_id: + :type view_id: str + :param view_name: + :type view_name: str + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'capabilities': {'key': 'capabilities', 'type': 'object'}, + 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, + 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, + 'view': {'key': 'view', 'type': 'FeedView'}, + 'view_id': {'key': 'viewId', 'type': 'str'}, + 'view_name': {'key': 'viewName', 'type': 'str'} + } + + def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None): + super(FeedCore, self).__init__() + self.allow_upstream_name_conflict = allow_upstream_name_conflict + self.capabilities = capabilities + self.fully_qualified_id = fully_qualified_id + self.fully_qualified_name = fully_qualified_name + self.id = id + self.is_read_only = is_read_only + self.name = name + self.upstream_enabled = upstream_enabled + self.upstream_sources = upstream_sources + self.view = view + self.view_id = view_id + self.view_name = view_name diff --git a/vsts/vsts/feed/v4_1/models/feed_permission.py b/vsts/vsts/feed/v4_1/models/feed_permission.py new file mode 100644 index 00000000..b3823a07 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed_permission.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedPermission(Model): + """FeedPermission. + + :param display_name: Display name for the identity + :type display_name: str + :param identity_descriptor: + :type identity_descriptor: :class:`str ` + :param identity_id: + :type identity_id: str + :param role: + :type role: object + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'object'} + } + + def __init__(self, display_name=None, identity_descriptor=None, identity_id=None, role=None): + super(FeedPermission, self).__init__() + self.display_name = display_name + self.identity_descriptor = identity_descriptor + self.identity_id = identity_id + self.role = role diff --git a/vsts/vsts/feed/v4_1/models/feed_retention_policy.py b/vsts/vsts/feed/v4_1/models/feed_retention_policy.py new file mode 100644 index 00000000..fa30d342 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed_retention_policy.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedRetentionPolicy(Model): + """FeedRetentionPolicy. + + :param age_limit_in_days: + :type age_limit_in_days: int + :param count_limit: + :type count_limit: int + """ + + _attribute_map = { + 'age_limit_in_days': {'key': 'ageLimitInDays', 'type': 'int'}, + 'count_limit': {'key': 'countLimit', 'type': 'int'} + } + + def __init__(self, age_limit_in_days=None, count_limit=None): + super(FeedRetentionPolicy, self).__init__() + self.age_limit_in_days = age_limit_in_days + self.count_limit = count_limit diff --git a/vsts/vsts/feed/v4_1/models/feed_update.py b/vsts/vsts/feed/v4_1/models/feed_update.py new file mode 100644 index 00000000..d656de18 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed_update.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedUpdate(Model): + """FeedUpdate. + + :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param badges_enabled: + :type badges_enabled: bool + :param default_view_id: + :type default_view_id: str + :param description: + :type description: str + :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions + :type hide_deleted_package_versions: bool + :param id: + :type id: str + :param name: + :type name: str + :param upstream_enabled: + :type upstream_enabled: bool + :param upstream_sources: + :type upstream_sources: list of :class:`UpstreamSource ` + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, + 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'} + } + + def __init__(self, allow_upstream_name_conflict=None, badges_enabled=None, default_view_id=None, description=None, hide_deleted_package_versions=None, id=None, name=None, upstream_enabled=None, upstream_sources=None): + super(FeedUpdate, self).__init__() + self.allow_upstream_name_conflict = allow_upstream_name_conflict + self.badges_enabled = badges_enabled + self.default_view_id = default_view_id + self.description = description + self.hide_deleted_package_versions = hide_deleted_package_versions + self.id = id + self.name = name + self.upstream_enabled = upstream_enabled + self.upstream_sources = upstream_sources diff --git a/vsts/vsts/feed/v4_1/models/feed_view.py b/vsts/vsts/feed/v4_1/models/feed_view.py new file mode 100644 index 00000000..bad05dd2 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/feed_view.py @@ -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.serialization import Model + + +class FeedView(Model): + """FeedView. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + :param visibility: + :type visibility: object + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, _links=None, id=None, name=None, type=None, url=None, visibility=None): + super(FeedView, self).__init__() + self._links = _links + self.id = id + self.name = name + self.type = type + self.url = url + self.visibility = visibility diff --git a/vsts/vsts/feed/v4_1/models/global_permission.py b/vsts/vsts/feed/v4_1/models/global_permission.py new file mode 100644 index 00000000..e2e179fe --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/global_permission.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GlobalPermission(Model): + """GlobalPermission. + + :param identity_descriptor: + :type identity_descriptor: :class:`str ` + :param role: + :type role: object + """ + + _attribute_map = { + 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'object'} + } + + def __init__(self, identity_descriptor=None, role=None): + super(GlobalPermission, self).__init__() + self.identity_descriptor = identity_descriptor + self.role = role diff --git a/vsts/vsts/feed/v4_1/models/json_patch_operation.py b/vsts/vsts/feed/v4_1/models/json_patch_operation.py new file mode 100644 index 00000000..7d45b0f6 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/json_patch_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value diff --git a/vsts/vsts/feed/v4_1/models/minimal_package_version.py b/vsts/vsts/feed/v4_1/models/minimal_package_version.py new file mode 100644 index 00000000..4f1fd3e2 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/minimal_package_version.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MinimalPackageVersion(Model): + """MinimalPackageVersion. + + :param direct_upstream_source_id: + :type direct_upstream_source_id: str + :param id: + :type id: str + :param is_cached_version: + :type is_cached_version: bool + :param is_deleted: + :type is_deleted: bool + :param is_latest: + :type is_latest: bool + :param is_listed: + :type is_listed: bool + :param normalized_version: The normalized version representing the identity of a package version + :type normalized_version: str + :param package_description: + :type package_description: str + :param publish_date: + :type publish_date: datetime + :param storage_id: + :type storage_id: str + :param version: The display version of the package version + :type version: str + :param views: + :type views: list of :class:`FeedView ` + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None): + super(MinimalPackageVersion, self).__init__() + self.direct_upstream_source_id = direct_upstream_source_id + self.id = id + self.is_cached_version = is_cached_version + self.is_deleted = is_deleted + self.is_latest = is_latest + self.is_listed = is_listed + self.normalized_version = normalized_version + self.package_description = package_description + self.publish_date = publish_date + self.storage_id = storage_id + self.version = version + self.views = views diff --git a/vsts/vsts/feed/v4_1/models/package.py b/vsts/vsts/feed/v4_1/models/package.py new file mode 100644 index 00000000..bbbde325 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/package.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: str + :param is_cached: + :type is_cached: bool + :param name: The display name of the package + :type name: str + :param normalized_name: The normalized name representing the identity of this package for this protocol type + :type normalized_name: str + :param protocol_type: + :type protocol_type: str + :param star_count: + :type star_count: int + :param url: + :type url: str + :param versions: + :type versions: list of :class:`MinimalPackageVersion ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached': {'key': 'isCached', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'normalized_name': {'key': 'normalizedName', 'type': 'str'}, + 'protocol_type': {'key': 'protocolType', 'type': 'str'}, + 'star_count': {'key': 'starCount', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[MinimalPackageVersion]'} + } + + def __init__(self, _links=None, id=None, is_cached=None, name=None, normalized_name=None, protocol_type=None, star_count=None, url=None, versions=None): + super(Package, self).__init__() + self._links = _links + self.id = id + self.is_cached = is_cached + self.name = name + self.normalized_name = normalized_name + self.protocol_type = protocol_type + self.star_count = star_count + self.url = url + self.versions = versions diff --git a/vsts/vsts/feed/v4_1/models/package_change.py b/vsts/vsts/feed/v4_1/models/package_change.py new file mode 100644 index 00000000..4c4641d6 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/package_change.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageChange(Model): + """PackageChange. + + :param package: + :type package: :class:`Package ` + :param package_version_change: + :type package_version_change: :class:`PackageVersionChange ` + """ + + _attribute_map = { + 'package': {'key': 'package', 'type': 'Package'}, + 'package_version_change': {'key': 'packageVersionChange', 'type': 'PackageVersionChange'} + } + + def __init__(self, package=None, package_version_change=None): + super(PackageChange, self).__init__() + self.package = package + self.package_version_change = package_version_change diff --git a/vsts/vsts/feed/v4_1/models/package_changes_response.py b/vsts/vsts/feed/v4_1/models/package_changes_response.py new file mode 100644 index 00000000..a16cdce0 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/package_changes_response.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageChangesResponse(Model): + """PackageChangesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param count: + :type count: int + :param next_package_continuation_token: + :type next_package_continuation_token: long + :param package_changes: + :type package_changes: list of :class:`PackageChange ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'count': {'key': 'count', 'type': 'int'}, + 'next_package_continuation_token': {'key': 'nextPackageContinuationToken', 'type': 'long'}, + 'package_changes': {'key': 'packageChanges', 'type': '[PackageChange]'} + } + + def __init__(self, _links=None, count=None, next_package_continuation_token=None, package_changes=None): + super(PackageChangesResponse, self).__init__() + self._links = _links + self.count = count + self.next_package_continuation_token = next_package_continuation_token + self.package_changes = package_changes diff --git a/vsts/vsts/feed/v4_1/models/package_dependency.py b/vsts/vsts/feed/v4_1/models/package_dependency.py new file mode 100644 index 00000000..4e143549 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/package_dependency.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageDependency(Model): + """PackageDependency. + + :param group: + :type group: str + :param package_name: + :type package_name: str + :param version_range: + :type version_range: str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'str'}, + 'package_name': {'key': 'packageName', 'type': 'str'}, + 'version_range': {'key': 'versionRange', 'type': 'str'} + } + + def __init__(self, group=None, package_name=None, version_range=None): + super(PackageDependency, self).__init__() + self.group = group + self.package_name = package_name + self.version_range = version_range diff --git a/vsts/vsts/feed/v4_1/models/package_file.py b/vsts/vsts/feed/v4_1/models/package_file.py new file mode 100644 index 00000000..e7972056 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/package_file.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageFile(Model): + """PackageFile. + + :param children: + :type children: list of :class:`PackageFile ` + :param name: + :type name: str + :param protocol_metadata: + :type protocol_metadata: :class:`ProtocolMetadata ` + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[PackageFile]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'} + } + + def __init__(self, children=None, name=None, protocol_metadata=None): + super(PackageFile, self).__init__() + self.children = children + self.name = name + self.protocol_metadata = protocol_metadata diff --git a/vsts/vsts/feed/v4_1/models/package_version.py b/vsts/vsts/feed/v4_1/models/package_version.py new file mode 100644 index 00000000..e02ac581 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/package_version.py @@ -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 .minimal_package_version import MinimalPackageVersion + + +class PackageVersion(MinimalPackageVersion): + """PackageVersion. + + :param direct_upstream_source_id: + :type direct_upstream_source_id: str + :param id: + :type id: str + :param is_cached_version: + :type is_cached_version: bool + :param is_deleted: + :type is_deleted: bool + :param is_latest: + :type is_latest: bool + :param is_listed: + :type is_listed: bool + :param normalized_version: The normalized version representing the identity of a package version + :type normalized_version: str + :param package_description: + :type package_description: str + :param publish_date: + :type publish_date: datetime + :param storage_id: + :type storage_id: str + :param version: The display version of the package version + :type version: str + :param views: + :type views: list of :class:`FeedView ` + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: str + :param deleted_date: + :type deleted_date: datetime + :param dependencies: + :type dependencies: list of :class:`PackageDependency ` + :param description: + :type description: str + :param files: + :type files: list of :class:`PackageFile ` + :param other_versions: + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: + :type source_chain: list of :class:`UpstreamSource ` + :param summary: + :type summary: str + :param tags: + :type tags: list of str + :param url: + :type url: str + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[PackageFile]'}, + 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None): + super(PackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views) + self._links = _links + self.author = author + self.deleted_date = deleted_date + self.dependencies = dependencies + self.description = description + self.files = files + self.other_versions = other_versions + self.protocol_metadata = protocol_metadata + self.source_chain = source_chain + self.summary = summary + self.tags = tags + self.url = url diff --git a/vsts/vsts/feed/v4_1/models/package_version_change.py b/vsts/vsts/feed/v4_1/models/package_version_change.py new file mode 100644 index 00000000..871d7a0a --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/package_version_change.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageVersionChange(Model): + """PackageVersionChange. + + :param change_type: + :type change_type: object + :param continuation_token: + :type continuation_token: long + :param package_version: + :type package_version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'long'}, + 'package_version': {'key': 'packageVersion', 'type': 'PackageVersion'} + } + + def __init__(self, change_type=None, continuation_token=None, package_version=None): + super(PackageVersionChange, self).__init__() + self.change_type = change_type + self.continuation_token = continuation_token + self.package_version = package_version diff --git a/vsts/vsts/feed/v4_1/models/protocol_metadata.py b/vsts/vsts/feed/v4_1/models/protocol_metadata.py new file mode 100644 index 00000000..8034342c --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/protocol_metadata.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProtocolMetadata(Model): + """ProtocolMetadata. + + :param data: + :type data: object + :param schema_version: + :type schema_version: int + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'object'}, + 'schema_version': {'key': 'schemaVersion', 'type': 'int'} + } + + def __init__(self, data=None, schema_version=None): + super(ProtocolMetadata, self).__init__() + self.data = data + self.schema_version = schema_version diff --git a/vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py b/vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py new file mode 100644 index 00000000..52f7eb19 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py @@ -0,0 +1,97 @@ +# -------------------------------------------------------------------------------------------- +# 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 .package_version import PackageVersion + + +class RecycleBinPackageVersion(PackageVersion): + """RecycleBinPackageVersion. + + :param direct_upstream_source_id: + :type direct_upstream_source_id: str + :param id: + :type id: str + :param is_cached_version: + :type is_cached_version: bool + :param is_deleted: + :type is_deleted: bool + :param is_latest: + :type is_latest: bool + :param is_listed: + :type is_listed: bool + :param normalized_version: The normalized version representing the identity of a package version + :type normalized_version: str + :param package_description: + :type package_description: str + :param publish_date: + :type publish_date: datetime + :param storage_id: + :type storage_id: str + :param version: The display version of the package version + :type version: str + :param views: + :type views: list of :class:`FeedView ` + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: str + :param deleted_date: + :type deleted_date: datetime + :param dependencies: + :type dependencies: list of :class:`PackageDependency ` + :param description: + :type description: str + :param files: + :type files: list of :class:`PackageFile ` + :param other_versions: + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: + :type source_chain: list of :class:`UpstreamSource ` + :param summary: + :type summary: str + :param tags: + :type tags: list of str + :param url: + :type url: str + :param scheduled_permanent_delete_date: + :type scheduled_permanent_delete_date: datetime + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[PackageFile]'}, + 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'scheduled_permanent_delete_date': {'key': 'scheduledPermanentDeleteDate', 'type': 'iso-8601'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None, scheduled_permanent_delete_date=None): + super(RecycleBinPackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views, _links=_links, author=author, deleted_date=deleted_date, dependencies=dependencies, description=description, files=files, other_versions=other_versions, protocol_metadata=protocol_metadata, source_chain=source_chain, summary=summary, tags=tags, url=url) + self.scheduled_permanent_delete_date = scheduled_permanent_delete_date diff --git a/vsts/vsts/feed/v4_1/models/reference_links.py b/vsts/vsts/feed/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/feed/v4_1/models/upstream_source.py b/vsts/vsts/feed/v4_1/models/upstream_source.py new file mode 100644 index 00000000..18e619c8 --- /dev/null +++ b/vsts/vsts/feed/v4_1/models/upstream_source.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpstreamSource(Model): + """UpstreamSource. + + :param deleted_date: + :type deleted_date: datetime + :param id: + :type id: str + :param internal_upstream_collection_id: + :type internal_upstream_collection_id: str + :param internal_upstream_feed_id: + :type internal_upstream_feed_id: str + :param internal_upstream_view_id: + :type internal_upstream_view_id: str + :param location: + :type location: str + :param name: + :type name: str + :param protocol: + :type protocol: str + :param upstream_source_type: + :type upstream_source_type: object + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'internal_upstream_collection_id': {'key': 'internalUpstreamCollectionId', 'type': 'str'}, + 'internal_upstream_feed_id': {'key': 'internalUpstreamFeedId', 'type': 'str'}, + 'internal_upstream_view_id': {'key': 'internalUpstreamViewId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'upstream_source_type': {'key': 'upstreamSourceType', 'type': 'object'} + } + + def __init__(self, deleted_date=None, id=None, internal_upstream_collection_id=None, internal_upstream_feed_id=None, internal_upstream_view_id=None, location=None, name=None, protocol=None, upstream_source_type=None): + super(UpstreamSource, self).__init__() + self.deleted_date = deleted_date + self.id = id + self.internal_upstream_collection_id = internal_upstream_collection_id + self.internal_upstream_feed_id = internal_upstream_feed_id + self.internal_upstream_view_id = internal_upstream_view_id + self.location = location + self.name = name + self.protocol = protocol + self.upstream_source_type = upstream_source_type diff --git a/vsts/vsts/feed_token/__init__.py b/vsts/vsts/feed_token/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feed_token/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed_token/v4_1/__init__.py b/vsts/vsts/feed_token/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/feed_token/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed_token/v4_1/feed_token_client.py b/vsts/vsts/feed_token/v4_1/feed_token_client.py new file mode 100644 index 00000000..899c615d --- /dev/null +++ b/vsts/vsts/feed_token/v4_1/feed_token_client.py @@ -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 ...vss_client import VssClient +from . import models + + +class FeedTokenClient(VssClient): + """FeedToken + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeedTokenClient, 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 = 'cdeb6c7d-6b25-4d6f-b664-c2e3ede202e8' + + def get_personal_access_token(self, feed_name=None): + """GetPersonalAccessToken. + [Preview API] + :param str feed_name: + :rtype: object + """ + route_values = {} + if feed_name is not None: + route_values['feedName'] = self._serialize.url('feed_name', feed_name, 'str') + response = self._send(http_method='GET', + location_id='dfdb7ad7-3d8e-4907-911e-19b4a8330550', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + diff --git a/vsts/vsts/gallery/v4_1/models/publisher_base.py b/vsts/vsts/gallery/v4_1/models/publisher_base.py new file mode 100644 index 00000000..8e740801 --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/publisher_base.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PublisherBase(Model): + """PublisherBase. + + :param display_name: + :type display_name: str + :param email_address: + :type email_address: list of str + :param extensions: + :type extensions: list of :class:`PublishedExtension ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + :param short_description: + :type short_description: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': '[str]'}, + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'} + } + + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): + super(PublisherBase, self).__init__() + self.display_name = display_name + self.email_address = email_address + self.extensions = extensions + self.flags = flags + self.last_updated = last_updated + self.long_description = long_description + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.short_description = short_description diff --git a/vsts/vsts/gallery/v4_1/models/reference_links.py b/vsts/vsts/gallery/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/gallery/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/git/v4_1/git_client.py b/vsts/vsts/git/v4_1/git_client.py deleted file mode 100644 index 7b739675..00000000 --- a/vsts/vsts/git/v4_1/git_client.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - - -from msrest.pipeline import ClientRequest -from .git_client_base import GitClientBase - - -class GitClient(GitClientBase): - """Git - - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(GitClient, self).__init__(base_url, creds) - - def get_vsts_info(self, relative_remote_url): - request = ClientRequest() - request.url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') - request.method = 'GET' - headers = {'Accept': 'application/json'} - if self._suppress_fedauth_redirect: - headers['X-TFS-FedAuthRedirect'] = 'Suppress' - response = self._send_request(request, headers) - return self._deserialize('VstsInfo', response) - diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index ab401152..e243131f 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -69,7 +69,7 @@ def get_annotated_tag(self, project, repository_id, object_id): def get_blob(self, repository_id, sha1, project=None, download=None, file_name=None): """GetBlob. - [Preview API] Get a single blob. + Get a single blob. :param str repository_id: The name or ID of the repository. :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name @@ -91,14 +91,14 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitBlobRef', response) def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None): """GetBlobContent. - [Preview API] Get a single blob. + Get a single blob. :param str repository_id: The name or ID of the repository. :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name @@ -120,14 +120,14 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None): """GetBlobsZip. - [Preview API] Gets one or more blobs in a zip file download. + Gets one or more blobs in a zip file download. :param [str] blob_ids: Blob IDs (SHA1 hashes) to be returned in the zip file. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name @@ -145,7 +145,7 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None): content = self._serialize.body(blob_ids, '[str]') response = self._send(http_method='POST', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -153,7 +153,7 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None): def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None): """GetBlobZip. - [Preview API] Get a single blob. + Get a single blob. :param str repository_id: The name or ID of the repository. :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name @@ -175,14 +175,14 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_branch(self, repository_id, name, project=None, base_version_descriptor=None): """GetBranch. - [Preview API] Retrieve statistics about a single branch. + Retrieve statistics about a single branch. :param str repository_id: The name or ID of the repository. :param str name: Name of the branch. :param str project: Project ID or project name @@ -206,14 +206,14 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitBranchStats', response) def get_branches(self, repository_id, project=None, base_version_descriptor=None): """GetBranches. - [Preview API] Retrieve statistics about all branches within a repository. + Retrieve statistics about all branches within a repository. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. @@ -234,7 +234,7 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -242,7 +242,7 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None def get_changes(self, commit_id, repository_id, project=None, top=None, skip=None): """GetChanges. - [Preview API] Retrieve changes for a particular commit. + Retrieve changes for a particular commit. :param str commit_id: The id of the commit. :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name @@ -264,7 +264,7 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non query_parameters['skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='5bf884f5-3e07-42e9-afb8-1b872267bf16', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommitChanges', response) @@ -336,7 +336,7 @@ def get_cherry_pick_for_ref_name(self, project, repository_id, ref_name): def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, top=None, skip=None, base_version_descriptor=None, target_version_descriptor=None): """GetCommitDiffs. - [Preview API] Get a list of differences between two commits. + Get a list of differences between two commits. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param bool diff_common_commit: @@ -374,14 +374,14 @@ def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, query_parameters['targetVersionDescriptor.targetVersionOptions'] = target_version_descriptor.target_version_options response = self._send(http_method='GET', location_id='615588d5-c0c7-4b88-88f8-e625306446e8', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommitDiffs', response) def get_commit(self, commit_id, repository_id, project=None, change_count=None): """GetCommit. - [Preview API] Retrieve a particular commit. + Retrieve a particular commit. :param str commit_id: The id of the commit. :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name @@ -400,14 +400,14 @@ def get_commit(self, commit_id, repository_id, project=None, change_count=None): query_parameters['changeCount'] = self._serialize.query('change_count', change_count, 'int') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommit', response) def get_commits(self, repository_id, search_criteria, project=None, skip=None, top=None): """GetCommits. - [Preview API] Retrieve git commits for a project + Retrieve git commits for a project :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param :class:` ` search_criteria: :param str project: Project ID or project name @@ -470,7 +470,7 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -478,7 +478,7 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t def get_push_commits(self, repository_id, push_id, project=None, top=None, skip=None, include_links=None): """GetPushCommits. - [Preview API] Retrieve a list of commits associated with a particular push. + Retrieve a list of commits associated with a particular push. :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param int push_id: The id of the push. :param str project: Project ID or project name @@ -503,7 +503,7 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -511,7 +511,7 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): """GetCommitsBatch. - [Preview API] Retrieve git commits for a project matching the search criteria + Retrieve git commits for a project matching the search criteria :param :class:` ` search_criteria: Search options :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name @@ -535,7 +535,7 @@ def get_commits_batch(self, search_criteria, repository_id, project=None, skip=N content = self._serialize.body(search_criteria, 'GitQueryCommitsCriteria') response = self._send(http_method='POST', location_id='6400dfb2-0bcb-462b-b992-5a57f8f1416c', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -756,7 +756,7 @@ def update_import_request(self, import_request_to_update, project, repository_id def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItem. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. :param str path: The item path. :param str project: Project ID or project name @@ -798,14 +798,14 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitItem', response) def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItemContent. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. :param str path: The item path. :param str project: Project ID or project name @@ -847,14 +847,14 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_items(self, repository_id, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, include_links=None, version_descriptor=None): """GetItems. - [Preview API] Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str repository_id: The Id of the repository. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. @@ -893,7 +893,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -901,7 +901,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItemText. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. :param str path: The item path. :param str project: Project ID or project name @@ -943,14 +943,14 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItemZip. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. :param str path: The item path. :param str project: Project ID or project name @@ -992,14 +992,14 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_items_batch(self, request_data, repository_id, project=None): """GetItemsBatch. - [Preview API] Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path + Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path :param :class:` ` request_data: Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references. :param str repository_id: The name or ID of the repository :param str project: Project ID or project name @@ -1013,7 +1013,7 @@ def get_items_batch(self, request_data, repository_id, project=None): content = self._serialize.body(request_data, 'GitItemRequestData') response = self._send(http_method='POST', location_id='630fd2e4-fb88-4f85-ad21-13f3fd1fbca9', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1252,7 +1252,7 @@ def get_likes(self, repository_id, pull_request_id, thread_id, comment_id, proje def get_pull_request_iteration_commits(self, repository_id, pull_request_id, iteration_id, project=None): """GetPullRequestIterationCommits. - [Preview API] Get the commits for the specified iteration of a pull request. + Get the commits for the specified iteration of a pull request. :param str repository_id: ID or name of the repository. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the iteration from which to get the commits. @@ -1270,14 +1270,14 @@ def get_pull_request_iteration_commits(self, repository_id, pull_request_id, ite route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') response = self._send(http_method='GET', location_id='e7ea0883-095f-4926-b5fb-f24691c26fb9', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[GitCommitRef]', response) def get_pull_request_commits(self, repository_id, pull_request_id, project=None): """GetPullRequestCommits. - [Preview API] Get the commits for the specified pull request. + Get the commits for the specified pull request. :param str repository_id: ID or name of the repository. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -1292,14 +1292,14 @@ def get_pull_request_commits(self, repository_id, pull_request_id, project=None) route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='52823034-34a8-4576-922c-8d8b77e9e4c4', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[GitCommitRef]', response) def get_pull_request_iteration_changes(self, repository_id, pull_request_id, iteration_id, project=None, top=None, skip=None, compare_to=None): """GetPullRequestIterationChanges. - [Preview API] Retrieve the changes made in a pull request between two iterations. + Retrieve the changes made in a pull request between two iterations. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration.
Iteration IDs are zero-based with zero indicating the common commit between the source and target branches. Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. @@ -1327,14 +1327,14 @@ def get_pull_request_iteration_changes(self, repository_id, pull_request_id, ite query_parameters['$compareTo'] = self._serialize.query('compare_to', compare_to, 'int') response = self._send(http_method='GET', location_id='4216bdcf-b6b1-4d59-8b82-c34cc183fc8b', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequestIterationChanges', response) def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_id, project=None): """GetPullRequestIteration. - [Preview API] Get the specified iteration for a pull request. + Get the specified iteration for a pull request. :param str repository_id: ID or name of the repository. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration to return. @@ -1352,13 +1352,13 @@ def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_i route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') response = self._send(http_method='GET', location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('GitPullRequestIteration', response) def get_pull_request_iterations(self, repository_id, pull_request_id, project=None, include_commits=None): """GetPullRequestIterations. - [Preview API] Get the list of iterations for the specified pull request. + Get the list of iterations for the specified pull request. :param str repository_id: ID or name of the repository. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -1377,7 +1377,7 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No query_parameters['includeCommits'] = self._serialize.query('include_commits', include_commits, 'bool') response = self._send(http_method='GET', location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1673,7 +1673,7 @@ def update_pull_request_properties(self, patch_document, repository_id, pull_req def get_pull_request_query(self, queries, repository_id, project=None): """GetPullRequestQuery. - [Preview API] This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests. + This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests. :param :class:` ` queries: The list of queries to perform. :param str repository_id: ID of the repository. :param str project: Project ID or project name @@ -1687,14 +1687,14 @@ def get_pull_request_query(self, queries, repository_id, project=None): content = self._serialize.body(queries, 'GitPullRequestQuery') response = self._send(http_method='POST', location_id='b3a6eebe-9cf0-49ea-b6cb-1a4c5f5007b0', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestQuery', response) def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, reviewer_id, project=None): """CreatePullRequestReviewer. - [Preview API] Add a reviewer to a pull request or cast a vote. + Add a reviewer to a pull request or cast a vote. :param :class:` ` reviewer: Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. @@ -1714,14 +1714,14 @@ def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, content = self._serialize.body(reviewer, 'IdentityRefWithVote') response = self._send(http_method='PUT', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('IdentityRefWithVote', response) def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_id, project=None): """CreatePullRequestReviewers. - [Preview API] Add reviewers to a pull request. + Add reviewers to a pull request. :param [IdentityRef] reviewers: Reviewers to add to the pull request. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. @@ -1738,7 +1738,7 @@ def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_i content = self._serialize.body(reviewers, '[IdentityRef]') response = self._send(http_method='POST', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1746,7 +1746,7 @@ def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_i def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): """DeletePullRequestReviewer. - [Preview API] Remove a reviewer from a pull request. + Remove a reviewer from a pull request. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str reviewer_id: ID of the reviewer to remove. @@ -1763,12 +1763,12 @@ def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_ route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') self._send(http_method='DELETE', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): """GetPullRequestReviewer. - [Preview API] Retrieve information about a particular reviewer on a pull request + Retrieve information about a particular reviewer on a pull request :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str reviewer_id: ID of the reviewer. @@ -1786,13 +1786,13 @@ def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('IdentityRefWithVote', response) def get_pull_request_reviewers(self, repository_id, pull_request_id, project=None): """GetPullRequestReviewers. - [Preview API] Retrieve the reviewers for a pull request + Retrieve the reviewers for a pull request :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -1807,14 +1807,14 @@ def get_pull_request_reviewers(self, repository_id, pull_request_id, project=Non route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[IdentityRefWithVote]', response) def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request_id, project=None): """UpdatePullRequestReviewers. - [Preview API] Reset the votes of multiple reviewers on a pull request. + Reset the votes of multiple reviewers on a pull request. :param [IdentityRefWithVote] patch_votes: IDs of the reviewers whose votes will be reset to zero :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request @@ -1830,13 +1830,13 @@ def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request content = self._serialize.body(patch_votes, '[IdentityRefWithVote]') self._send(http_method='PATCH', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) def get_pull_request_by_id(self, pull_request_id): """GetPullRequestById. - [Preview API] Retrieve a pull request. + Retrieve a pull request. :param int pull_request_id: The ID of the pull request to retrieve. :rtype: :class:` ` """ @@ -1845,13 +1845,13 @@ def get_pull_request_by_id(self, pull_request_id): route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='01a46dea-7d46-4d40-bc84-319e7c260d99', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('GitPullRequest', response) def get_pull_requests_by_project(self, project, search_criteria, max_comment_length=None, skip=None, top=None): """GetPullRequestsByProject. - [Preview API] Retrieve all pull requests matching a specified criteria. + Retrieve all pull requests matching a specified criteria. :param str project: Project ID or project name :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. :param int max_comment_length: Not used. @@ -1888,7 +1888,7 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='a5d28130-9cd2-40fa-9f08-902e7daa9efb', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1896,7 +1896,7 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): """CreatePullRequest. - [Preview API] Create a pull request. + Create a pull request. :param :class:` ` git_pull_request_to_create: The pull request to create. :param str repository_id: The repository ID of the pull request's target branch. :param str project: Project ID or project name @@ -1914,7 +1914,7 @@ def create_pull_request(self, git_pull_request_to_create, repository_id, project content = self._serialize.body(git_pull_request_to_create, 'GitPullRequest') response = self._send(http_method='POST', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1922,7 +1922,7 @@ def create_pull_request(self, git_pull_request_to_create, repository_id, project def get_pull_request(self, repository_id, pull_request_id, project=None, max_comment_length=None, skip=None, top=None, include_commits=None, include_work_item_refs=None): """GetPullRequest. - [Preview API] Retrieve a pull request. + Retrieve a pull request. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: The ID of the pull request to retrieve. :param str project: Project ID or project name @@ -1953,14 +1953,14 @@ def get_pull_request(self, repository_id, pull_request_id, project=None, max_com query_parameters['includeWorkItemRefs'] = self._serialize.query('include_work_item_refs', include_work_item_refs, 'bool') response = self._send(http_method='GET', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequest', response) def get_pull_requests(self, repository_id, search_criteria, project=None, max_comment_length=None, skip=None, top=None): """GetPullRequests. - [Preview API] Retrieve all pull requests matching a specified criteria. + Retrieve all pull requests matching a specified criteria. :param str repository_id: The repository ID of the pull request's target branch. :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. :param str project: Project ID or project name @@ -2000,7 +2000,7 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2008,7 +2008,7 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): """UpdatePullRequest. - [Preview API] Update a pull request. + Update a pull request. :param :class:` ` git_pull_request_to_update: The pull request content to update. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: The ID of the pull request to retrieve. @@ -2025,7 +2025,7 @@ def update_pull_request(self, git_pull_request_to_update, repository_id, pull_re content = self._serialize.body(git_pull_request_to_update, 'GitPullRequest') response = self._send(http_method='PATCH', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('GitPullRequest', response) @@ -2169,7 +2169,7 @@ def update_pull_request_statuses(self, patch_document, repository_id, pull_reque def create_comment(self, comment, repository_id, pull_request_id, thread_id, project=None): """CreateComment. - [Preview API] Create a comment on a specific thread in a pull request. + Create a comment on a specific thread in a pull request. :param :class:` ` comment: The comment to create. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. @@ -2189,14 +2189,14 @@ def create_comment(self, comment, repository_id, pull_request_id, thread_id, pro content = self._serialize.body(comment, 'Comment') response = self._send(http_method='POST', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('Comment', response) def delete_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """DeleteComment. - [Preview API] Delete a comment associated with a specific thread in a pull request. + Delete a comment associated with a specific thread in a pull request. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. @@ -2216,12 +2216,12 @@ def delete_comment(self, repository_id, pull_request_id, thread_id, comment_id, route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') self._send(http_method='DELETE', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """GetComment. - [Preview API] Retrieve a comment associated with a specific thread in a pull request. + Retrieve a comment associated with a specific thread in a pull request. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. @@ -2242,13 +2242,13 @@ def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, pro route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('Comment', response) def get_comments(self, repository_id, pull_request_id, thread_id, project=None): """GetComments. - [Preview API] Retrieve all comments associated with a specific thread in a pull request. + Retrieve all comments associated with a specific thread in a pull request. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread. @@ -2266,14 +2266,14 @@ def get_comments(self, repository_id, pull_request_id, thread_id, project=None): route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[Comment]', response) def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): """UpdateComment. - [Preview API] Update a comment associated with a specific thread in a pull request. + Update a comment associated with a specific thread in a pull request. :param :class:` ` comment: The comment content that should be updated. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. @@ -2296,14 +2296,14 @@ def update_comment(self, comment, repository_id, pull_request_id, thread_id, com content = self._serialize.body(comment, 'Comment') response = self._send(http_method='PATCH', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('Comment', response) def create_thread(self, comment_thread, repository_id, pull_request_id, project=None): """CreateThread. - [Preview API] Create a thread in a pull request. + Create a thread in a pull request. :param :class:` ` comment_thread: The thread to create. Thread must contain at least one comment. :param str repository_id: Repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. @@ -2320,14 +2320,14 @@ def create_thread(self, comment_thread, repository_id, pull_request_id, project= content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') response = self._send(http_method='POST', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestCommentThread', response) def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, project=None, iteration=None, base_iteration=None): """GetPullRequestThread. - [Preview API] Retrieve a thread in a pull request. + Retrieve a thread in a pull request. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread. @@ -2352,14 +2352,14 @@ def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, pro query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') response = self._send(http_method='GET', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequestCommentThread', response) def get_threads(self, repository_id, pull_request_id, project=None, iteration=None, base_iteration=None): """GetThreads. - [Preview API] Retrieve all threads in a pull request. + Retrieve all threads in a pull request. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -2381,7 +2381,7 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') response = self._send(http_method='GET', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2389,7 +2389,7 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): """UpdateThread. - [Preview API] Update a thread in a pull request. + Update a thread in a pull request. :param :class:` ` comment_thread: The thread content that should be updated. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. @@ -2409,14 +2409,14 @@ def update_thread(self, comment_thread, repository_id, pull_request_id, thread_i content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') response = self._send(http_method='PATCH', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestCommentThread', response) def get_pull_request_work_item_refs(self, repository_id, pull_request_id, project=None): """GetPullRequestWorkItemRefs. - [Preview API] Retrieve a list of work items associated with a pull request. + Retrieve a list of work items associated with a pull request. :param str repository_id: ID or name of the repository. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -2431,14 +2431,14 @@ def get_pull_request_work_item_refs(self, repository_id, pull_request_id, projec route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='0a637fcc-5370-4ce8-b0e8-98091f5f9482', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[ResourceRef]', response) def create_push(self, push, repository_id, project=None): """CreatePush. - [Preview API] Push changes to the repository. + Push changes to the repository. :param :class:` ` push: :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name @@ -2452,14 +2452,14 @@ def create_push(self, push, repository_id, project=None): content = self._serialize.body(push, 'GitPush') response = self._send(http_method='POST', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('GitPush', response) def get_push(self, repository_id, push_id, project=None, include_commits=None, include_ref_updates=None): """GetPush. - [Preview API] Retrieves a particular push. + Retrieves a particular push. :param str repository_id: The name or ID of the repository. :param int push_id: ID of the push. :param str project: Project ID or project name @@ -2481,14 +2481,14 @@ def get_push(self, repository_id, push_id, project=None, include_commits=None, i query_parameters['includeRefUpdates'] = self._serialize.query('include_ref_updates', include_ref_updates, 'bool') response = self._send(http_method='GET', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPush', response) def get_pushes(self, repository_id, project=None, skip=None, top=None, search_criteria=None): """GetPushes. - [Preview API] Retrieves pushes associated with the specified repository. + Retrieves pushes associated with the specified repository. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param int skip: Number of pushes to skip. @@ -2521,7 +2521,7 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links response = self._send(http_method='GET', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2582,7 +2582,7 @@ def restore_repository_from_recycle_bin(self, repository_details, project, repos def get_refs(self, repository_id, project=None, filter=None, include_links=None, latest_statuses_only=None): """GetRefs. - [Preview API] Queries the provided repository for its refs and returns them. + Queries the provided repository for its refs and returns them. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param str filter: [optional] A filter to apply to the refs. @@ -2604,7 +2604,7 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, query_parameters['latestStatusesOnly'] = self._serialize.query('latest_statuses_only', latest_statuses_only, 'bool') response = self._send(http_method='GET', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2612,7 +2612,7 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): """UpdateRef. - [Preview API] Lock or Unlock a branch. + Lock or Unlock a branch. :param :class:` ` new_ref_info: The ref update action (lock/unlock) to perform :param str repository_id: The name or ID of the repository. :param str filter: The name of the branch to lock/unlock @@ -2633,7 +2633,7 @@ def update_ref(self, new_ref_info, repository_id, filter, project=None, project_ content = self._serialize.body(new_ref_info, 'GitRefUpdate') response = self._send(http_method='PATCH', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2641,7 +2641,7 @@ def update_ref(self, new_ref_info, repository_id, filter, project=None, project_ def update_refs(self, ref_updates, repository_id, project=None, project_id=None): """UpdateRefs. - [Preview API] Creating, updating, or deleting refs(branches). + Creating, updating, or deleting refs(branches). :param [GitRefUpdate] ref_updates: List of ref updates to attempt to perform :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name @@ -2659,7 +2659,7 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) content = self._serialize.body(ref_updates, '[GitRefUpdate]') response = self._send(http_method='POST', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -2744,7 +2744,7 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): def create_repository(self, git_repository_to_create, project=None, source_ref=None): """CreateRepository. - [Preview API] Create a git repository in a team project. + Create a git repository in a team project. :param :class:` ` git_repository_to_create: Specify the repo name, team project and/or parent repository :param str project: Project ID or project name :param str source_ref: [optional] Specify the source refs to use while creating a fork repo @@ -2759,7 +2759,7 @@ def create_repository(self, git_repository_to_create, project=None, source_ref=N content = self._serialize.body(git_repository_to_create, 'GitRepositoryCreateOptions') response = self._send(http_method='POST', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2767,7 +2767,7 @@ def create_repository(self, git_repository_to_create, project=None, source_ref=N def delete_repository(self, repository_id, project=None): """DeleteRepository. - [Preview API] Delete a git repository + Delete a git repository :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name """ @@ -2778,12 +2778,12 @@ def delete_repository(self, repository_id, project=None): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') self._send(http_method='DELETE', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_repositories(self, project=None, include_links=None, include_all_urls=None, include_hidden=None): """GetRepositories. - [Preview API] Retrieve git repositories. + Retrieve git repositories. :param str project: Project ID or project name :param bool include_links: [optional] True to include reference links. The default value is false. :param bool include_all_urls: [optional] True to include all remote URLs. The default value is false. @@ -2802,7 +2802,7 @@ def get_repositories(self, project=None, include_links=None, include_all_urls=No query_parameters['includeHidden'] = self._serialize.query('include_hidden', include_hidden, 'bool') response = self._send(http_method='GET', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2810,7 +2810,7 @@ def get_repositories(self, project=None, include_links=None, include_all_urls=No def get_repository(self, repository_id, project=None, include_parent=None): """GetRepository. - [Preview API] Retrieve a git repository. + Retrieve a git repository. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param bool include_parent: [optional] True to include parent repository. The default value is false. @@ -2826,14 +2826,14 @@ def get_repository(self, repository_id, project=None, include_parent=None): query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') response = self._send(http_method='GET', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitRepository', response) def update_repository(self, new_repository_info, repository_id, project=None): """UpdateRepository. - [Preview API] Updates the Git repository with either a new repo name or a new default branch. + Updates the Git repository with either a new repo name or a new default branch. :param :class:` ` new_repository_info: Specify a new repo name or a new default branch of the repository :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name @@ -2847,7 +2847,7 @@ def update_repository(self, new_repository_info, repository_id, project=None): content = self._serialize.body(new_repository_info, 'GitRepository') response = self._send(http_method='PATCH', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('GitRepository', response) @@ -2919,7 +2919,7 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): def create_commit_status(self, git_commit_status_to_create, commit_id, repository_id, project=None): """CreateCommitStatus. - [Preview API] Create Git commit status. + Create Git commit status. :param :class:` ` git_commit_status_to_create: Git commit status object to create. :param str commit_id: ID of the Git commit. :param str repository_id: ID of the repository. @@ -2936,14 +2936,14 @@ def create_commit_status(self, git_commit_status_to_create, commit_id, repositor content = self._serialize.body(git_commit_status_to_create, 'GitStatus') response = self._send(http_method='POST', location_id='428dd4fb-fda5-4722-af02-9313b80305da', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('GitStatus', response) def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=None, latest_only=None): """GetStatuses. - [Preview API] Get statuses associated with the Git commit. + Get statuses associated with the Git commit. :param str commit_id: ID of the Git commit. :param str repository_id: ID of the repository. :param str project: Project ID or project name @@ -2968,7 +2968,7 @@ def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=No query_parameters['latestOnly'] = self._serialize.query('latest_only', latest_only, 'bool') response = self._send(http_method='GET', location_id='428dd4fb-fda5-4722-af02-9313b80305da', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2995,7 +2995,7 @@ def get_suggestions(self, repository_id, project=None): def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): """GetTree. - [Preview API] The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. + The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. :param str repository_id: Repository Id. :param str sha1: SHA1 hash of the tree object. :param str project: Project ID or project name @@ -3020,14 +3020,14 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='729f6437-6f92-44ec-8bee-273a7111063c', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitTreeRef', response) def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): """GetTreeZip. - [Preview API] The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. + The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. :param str repository_id: Repository Id. :param str sha1: SHA1 hash of the tree object. :param str project: Project ID or project name @@ -3052,7 +3052,7 @@ def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recur query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='729f6437-6f92-44ec-8bee-273a7111063c', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) diff --git a/vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py b/vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py new file mode 100644 index 00000000..25c5516e --- /dev/null +++ b/vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRecycleBinRepositoryDetails(Model): + """GitRecycleBinRepositoryDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the repository. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(GitRecycleBinRepositoryDetails, self).__init__() + self.deleted = deleted diff --git a/vsts/vsts/git/v4_1/models/graph_subject_base.py b/vsts/vsts/git/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/git/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/identity/v4_1/identity_client.py b/vsts/vsts/identity/v4_1/identity_client.py index 95ae9f06..5b84ba68 100644 --- a/vsts/vsts/identity/v4_1/identity_client.py +++ b/vsts/vsts/identity/v4_1/identity_client.py @@ -60,21 +60,19 @@ def get_descriptor_by_id(self, id, is_master_id=None): def create_groups(self, container): """CreateGroups. - [Preview API] :param :class:` ` container: :rtype: [Identity] """ content = self._serialize.body(container, 'object') response = self._send(http_method='POST', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.1-preview.1', + version='4.1', content=content, returns_collection=True) return self._deserialize('[Identity]', response) def delete_group(self, group_id): """DeleteGroup. - [Preview API] :param str group_id: """ route_values = {} @@ -82,12 +80,11 @@ def delete_group(self, group_id): route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') self._send(http_method='DELETE', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.1-preview.1', + version='4.1', route_values=route_values) def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=None): """ListGroups. - [Preview API] :param str scope_ids: :param bool recurse: :param bool deleted: @@ -105,14 +102,13 @@ def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=Non query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[Identity]', response) def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id=None): """GetIdentityChanges. - [Preview API] :param int identity_sequence_id: :param int group_sequence_id: :param str scope_id: @@ -127,13 +123,12 @@ def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id query_parameters['scopeId'] = self._serialize.query('scope_id', scope_id, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters) return self._deserialize('ChangedIdentities', response) def get_user_identity_ids_by_domain_id(self, domain_id): """GetUserIdentityIdsByDomainId. - [Preview API] :param str domain_id: :rtype: [str] """ @@ -142,14 +137,13 @@ def get_user_identity_ids_by_domain_id(self, domain_id): query_parameters['domainId'] = self._serialize.query('domain_id', domain_id, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[str]', response) def read_identities(self, descriptors=None, identity_ids=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): """ReadIdentities. - [Preview API] :param str descriptors: :param str identity_ids: :param str search_filter: @@ -179,14 +173,13 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non query_parameters['options'] = self._serialize.query('options', options, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[Identity]', response) def read_identities_by_scope(self, scope_id, query_membership=None, properties=None): """ReadIdentitiesByScope. - [Preview API] :param str scope_id: :param str query_membership: :param str properties: @@ -201,14 +194,13 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[Identity]', response) def read_identity(self, identity_id, query_membership=None, properties=None): """ReadIdentity. - [Preview API] :param str identity_id: :param str query_membership: :param str properties: @@ -224,28 +216,26 @@ def read_identity(self, identity_id, query_membership=None, properties=None): query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Identity', response) def update_identities(self, identities): """UpdateIdentities. - [Preview API] :param :class:` ` identities: :rtype: [IdentityUpdateData] """ content = self._serialize.body(identities, 'VssJsonCollectionWrapper') response = self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1-preview.1', + version='4.1', content=content, returns_collection=True) return self._deserialize('[IdentityUpdateData]', response) def update_identity(self, identity, identity_id): """UpdateIdentity. - [Preview API] :param :class:` ` identity: :param str identity_id: """ @@ -255,20 +245,19 @@ def update_identity(self, identity, identity_id): content = self._serialize.body(identity, 'Identity') self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) def create_identity(self, framework_identity_info): """CreateIdentity. - [Preview API] :param :class:` ` framework_identity_info: :rtype: :class:` ` """ content = self._serialize.body(framework_identity_info, 'FrameworkIdentityInfo') response = self._send(http_method='PUT', location_id='dd55f0eb-6ea2-4fe4-9ebe-919e7dd1dfb4', - version='4.1-preview.1', + version='4.1', content=content) return self._deserialize('Identity', response) @@ -303,22 +292,22 @@ def get_identity_snapshot(self, scope_id): def get_max_sequence_id(self): """GetMaxSequenceId. - [Preview API] Read the max sequence id of all the identities. + Read the max sequence id of all the identities. :rtype: long """ response = self._send(http_method='GET', location_id='e4a70778-cb2c-4e85-b7cc-3f3c7ae2d408', - version='4.1-preview.1') + version='4.1') return self._deserialize('long', response) def get_self(self): """GetSelf. - [Preview API] Read identity of the home tenant request user. + Read identity of the home tenant request user. :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='4bb02b5b-c120-4be2-b68e-21f7c50a4b82', - version='4.1-preview.1') + version='4.1') return self._deserialize('IdentitySelf', response) def add_member(self, container_id, member_id): diff --git a/vsts/vsts/identity/v4_1/models/identity_base.py b/vsts/vsts/identity/v4_1/models/identity_base.py new file mode 100644 index 00000000..8b0b49f8 --- /dev/null +++ b/vsts/vsts/identity/v4_1/models/identity_base.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityBase(Model): + """IdentityBase. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(IdentityBase, self).__init__() + self.custom_display_name = custom_display_name + self.descriptor = descriptor + self.id = id + self.is_active = is_active + self.is_container = is_container + self.master_id = master_id + self.member_ids = member_ids + self.member_of = member_of + self.members = members + self.meta_type_id = meta_type_id + self.properties = properties + self.provider_display_name = provider_display_name + self.resource_version = resource_version + self.subject_descriptor = subject_descriptor + self.unique_user_id = unique_user_id diff --git a/vsts/vsts/licensing/v4_1/models/graph_subject_base.py b/vsts/vsts/licensing/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/licensing/v4_1/models/reference_links.py b/vsts/vsts/licensing/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/licensing/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/location/v4_1/models/identity_base.py b/vsts/vsts/location/v4_1/models/identity_base.py new file mode 100644 index 00000000..1e601308 --- /dev/null +++ b/vsts/vsts/location/v4_1/models/identity_base.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityBase(Model): + """IdentityBase. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(IdentityBase, self).__init__() + self.custom_display_name = custom_display_name + self.descriptor = descriptor + self.id = id + self.is_active = is_active + self.is_container = is_container + self.master_id = master_id + self.member_ids = member_ids + self.member_of = member_of + self.members = members + self.meta_type_id = meta_type_id + self.properties = properties + self.provider_display_name = provider_display_name + self.resource_version = resource_version + self.subject_descriptor = subject_descriptor + self.unique_user_id = unique_user_id diff --git a/vsts/vsts/maven/__init__.py b/vsts/vsts/maven/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/maven/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/maven/v4_1/__init__.py b/vsts/vsts/maven/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/maven/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/maven/v4_1/maven_client.py b/vsts/vsts/maven/v4_1/maven_client.py new file mode 100644 index 00000000..7e92a6a6 --- /dev/null +++ b/vsts/vsts/maven/v4_1/maven_client.py @@ -0,0 +1,149 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class MavenClient(VssClient): + """Maven + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(MavenClient, 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 = '6f7f8c07-ff36-473c-bcf3-bd6cc9b6c066' + + def delete_package_version_from_recycle_bin(self, feed, group_id, artifact_id, version): + """DeletePackageVersionFromRecycleBin. + [Preview API] + :param str feed: + :param str group_id: + :param str artifact_id: + :param str version: + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + self._send(http_method='DELETE', + location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', + version='4.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed, group_id, artifact_id, version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] + :param str feed: + :param str group_id: + :param str artifact_id: + :param str version: + :rtype: :class:` ` + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('MavenPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed, group_id, artifact_id, version): + """RestorePackageVersionFromRecycleBin. + [Preview API] + :param :class:` ` package_version_details: + :param str feed: + :param str group_id: + :param str artifact_id: + :param str version: + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + content = self._serialize.body(package_version_details, 'MavenRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def get_package_version(self, feed, group_id, artifact_id, version, show_deleted=None): + """GetPackageVersion. + [Preview API] + :param str feed: + :param str group_id: + :param str artifact_id: + :param str version: + :param bool show_deleted: + :rtype: :class:` ` + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='180ed967-377a-4112-986b-607adb14ded4', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def package_delete(self, feed, group_id, artifact_id, version): + """PackageDelete. + [Preview API] Fulfills delete package requests. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + self._send(http_method='DELETE', + location_id='180ed967-377a-4112-986b-607adb14ded4', + version='4.1-preview.1', + route_values=route_values) + diff --git a/vsts/vsts/maven/v4_1/models/__init__.py b/vsts/vsts/maven/v4_1/models/__init__.py new file mode 100644 index 00000000..4bbced57 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/__init__.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .batch_operation_data import BatchOperationData +from .maven_minimal_package_details import MavenMinimalPackageDetails +from .maven_package import MavenPackage +from .maven_packages_batch_request import MavenPackagesBatchRequest +from .maven_package_version_deletion_state import MavenPackageVersionDeletionState +from .maven_pom_build import MavenPomBuild +from .maven_pom_ci import MavenPomCi +from .maven_pom_ci_notifier import MavenPomCiNotifier +from .maven_pom_dependency import MavenPomDependency +from .maven_pom_dependency_management import MavenPomDependencyManagement +from .maven_pom_gav import MavenPomGav +from .maven_pom_issue_management import MavenPomIssueManagement +from .maven_pom_license import MavenPomLicense +from .maven_pom_mailing_list import MavenPomMailingList +from .maven_pom_metadata import MavenPomMetadata +from .maven_pom_organization import MavenPomOrganization +from .maven_pom_parent import MavenPomParent +from .maven_pom_person import MavenPomPerson +from .maven_pom_scm import MavenPomScm +from .maven_recycle_bin_package_version_details import MavenRecycleBinPackageVersionDetails +from .package import Package +from .plugin import Plugin +from .plugin_configuration import PluginConfiguration +from .reference_link import ReferenceLink +from .reference_links import ReferenceLinks + +__all__ = [ + 'BatchOperationData', + 'MavenMinimalPackageDetails', + 'MavenPackage', + 'MavenPackagesBatchRequest', + 'MavenPackageVersionDeletionState', + 'MavenPomBuild', + 'MavenPomCi', + 'MavenPomCiNotifier', + 'MavenPomDependency', + 'MavenPomDependencyManagement', + 'MavenPomGav', + 'MavenPomIssueManagement', + 'MavenPomLicense', + 'MavenPomMailingList', + 'MavenPomMetadata', + 'MavenPomOrganization', + 'MavenPomParent', + 'MavenPomPerson', + 'MavenPomScm', + 'MavenRecycleBinPackageVersionDetails', + 'Package', + 'Plugin', + 'PluginConfiguration', + 'ReferenceLink', + 'ReferenceLinks', +] diff --git a/vsts/vsts/maven/v4_1/models/batch_operation_data.py b/vsts/vsts/maven/v4_1/models/batch_operation_data.py new file mode 100644 index 00000000..a084ef44 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/batch_operation_data.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() diff --git a/vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py b/vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py new file mode 100644 index 00000000..2533d9ac --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenMinimalPackageDetails(Model): + """MavenMinimalPackageDetails. + + :param artifact: Package artifact ID + :type artifact: str + :param group: Package group ID + :type group: str + :param version: Package version + :type version: str + """ + + _attribute_map = { + 'artifact': {'key': 'artifact', 'type': 'str'}, + 'group': {'key': 'group', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact=None, group=None, version=None): + super(MavenMinimalPackageDetails, self).__init__() + self.artifact = artifact + self.group = group + self.version = version diff --git a/vsts/vsts/maven/v4_1/models/maven_package.py b/vsts/vsts/maven/v4_1/models/maven_package.py new file mode 100644 index 00000000..b83b6b7b --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_package.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPackage(Model): + """MavenPackage. + + :param artifact_id: + :type artifact_id: str + :param artifact_index: + :type artifact_index: :class:`ReferenceLink ` + :param artifact_metadata: + :type artifact_metadata: :class:`ReferenceLink ` + :param deleted_date: + :type deleted_date: datetime + :param files: + :type files: :class:`ReferenceLinks ` + :param group_id: + :type group_id: str + :param pom: + :type pom: :class:`MavenPomMetadata ` + :param requested_file: + :type requested_file: :class:`ReferenceLink ` + :param snapshot_metadata: + :type snapshot_metadata: :class:`ReferenceLink ` + :param version: + :type version: str + :param versions: + :type versions: :class:`ReferenceLinks ` + :param versions_index: + :type versions_index: :class:`ReferenceLink ` + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'artifact_index': {'key': 'artifactIndex', 'type': 'ReferenceLink'}, + 'artifact_metadata': {'key': 'artifactMetadata', 'type': 'ReferenceLink'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'files': {'key': 'files', 'type': 'ReferenceLinks'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'pom': {'key': 'pom', 'type': 'MavenPomMetadata'}, + 'requested_file': {'key': 'requestedFile', 'type': 'ReferenceLink'}, + 'snapshot_metadata': {'key': 'snapshotMetadata', 'type': 'ReferenceLink'}, + 'version': {'key': 'version', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': 'ReferenceLinks'}, + 'versions_index': {'key': 'versionsIndex', 'type': 'ReferenceLink'} + } + + def __init__(self, artifact_id=None, artifact_index=None, artifact_metadata=None, deleted_date=None, files=None, group_id=None, pom=None, requested_file=None, snapshot_metadata=None, version=None, versions=None, versions_index=None): + super(MavenPackage, self).__init__() + self.artifact_id = artifact_id + self.artifact_index = artifact_index + self.artifact_metadata = artifact_metadata + self.deleted_date = deleted_date + self.files = files + self.group_id = group_id + self.pom = pom + self.requested_file = requested_file + self.snapshot_metadata = snapshot_metadata + self.version = version + self.versions = versions + self.versions_index = versions_index diff --git a/vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py b/vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py new file mode 100644 index 00000000..805d4594 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPackageVersionDeletionState(Model): + """MavenPackageVersionDeletionState. + + :param artifact_id: + :type artifact_id: str + :param deleted_date: + :type deleted_date: datetime + :param group_id: + :type group_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact_id=None, deleted_date=None, group_id=None, version=None): + super(MavenPackageVersionDeletionState, self).__init__() + self.artifact_id = artifact_id + self.deleted_date = deleted_date + self.group_id = group_id + self.version = version diff --git a/vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py b/vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py new file mode 100644 index 00000000..c43e4bf8 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPackagesBatchRequest(Model): + """MavenPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MavenMinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MavenMinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(MavenPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_build.py b/vsts/vsts/maven/v4_1/models/maven_pom_build.py new file mode 100644 index 00000000..d27b8032 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_build.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomBuild(Model): + """MavenPomBuild. + + :param plugins: + :type plugins: list of :class:`Plugin ` + """ + + _attribute_map = { + 'plugins': {'key': 'plugins', 'type': '[Plugin]'} + } + + def __init__(self, plugins=None): + super(MavenPomBuild, self).__init__() + self.plugins = plugins diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_ci.py b/vsts/vsts/maven/v4_1/models/maven_pom_ci.py new file mode 100644 index 00000000..7d121636 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_ci.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomCi(Model): + """MavenPomCi. + + :param notifiers: + :type notifiers: list of :class:`MavenPomCiNotifier ` + :param system: + :type system: str + :param url: + :type url: str + """ + + _attribute_map = { + 'notifiers': {'key': 'notifiers', 'type': '[MavenPomCiNotifier]'}, + 'system': {'key': 'system', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, notifiers=None, system=None, url=None): + super(MavenPomCi, self).__init__() + self.notifiers = notifiers + self.system = system + self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py b/vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py new file mode 100644 index 00000000..f840c1ef --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py @@ -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.serialization import Model + + +class MavenPomCiNotifier(Model): + """MavenPomCiNotifier. + + :param configuration: + :type configuration: list of str + :param send_on_error: + :type send_on_error: str + :param send_on_failure: + :type send_on_failure: str + :param send_on_success: + :type send_on_success: str + :param send_on_warning: + :type send_on_warning: str + :param type: + :type type: str + """ + + _attribute_map = { + 'configuration': {'key': 'configuration', 'type': '[str]'}, + 'send_on_error': {'key': 'sendOnError', 'type': 'str'}, + 'send_on_failure': {'key': 'sendOnFailure', 'type': 'str'}, + 'send_on_success': {'key': 'sendOnSuccess', 'type': 'str'}, + 'send_on_warning': {'key': 'sendOnWarning', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, configuration=None, send_on_error=None, send_on_failure=None, send_on_success=None, send_on_warning=None, type=None): + super(MavenPomCiNotifier, self).__init__() + self.configuration = configuration + self.send_on_error = send_on_error + self.send_on_failure = send_on_failure + self.send_on_success = send_on_success + self.send_on_warning = send_on_warning + self.type = type diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_dependency.py b/vsts/vsts/maven/v4_1/models/maven_pom_dependency.py new file mode 100644 index 00000000..ce1e088a --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_dependency.py @@ -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 .maven_pom_gav import MavenPomGav + + +class MavenPomDependency(MavenPomGav): + """MavenPomDependency. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param optional: + :type optional: bool + :param scope: + :type scope: str + :param type: + :type type: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'optional': {'key': 'optional', 'type': 'bool'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, optional=None, scope=None, type=None): + super(MavenPomDependency, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.optional = optional + self.scope = scope + self.type = type diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py b/vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py new file mode 100644 index 00000000..7e470feb --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomDependencyManagement(Model): + """MavenPomDependencyManagement. + + :param dependencies: + :type dependencies: list of :class:`MavenPomDependency ` + """ + + _attribute_map = { + 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'} + } + + def __init__(self, dependencies=None): + super(MavenPomDependencyManagement, self).__init__() + self.dependencies = dependencies diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_gav.py b/vsts/vsts/maven/v4_1/models/maven_pom_gav.py new file mode 100644 index 00000000..e1b80925 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_gav.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomGav(Model): + """MavenPomGav. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None): + super(MavenPomGav, self).__init__() + self.artifact_id = artifact_id + self.group_id = group_id + self.version = version diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py b/vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py new file mode 100644 index 00000000..10d7e624 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomIssueManagement(Model): + """MavenPomIssueManagement. + + :param system: + :type system: str + :param url: + :type url: str + """ + + _attribute_map = { + 'system': {'key': 'system', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, system=None, url=None): + super(MavenPomIssueManagement, self).__init__() + self.system = system + self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_license.py b/vsts/vsts/maven/v4_1/models/maven_pom_license.py new file mode 100644 index 00000000..db989647 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_license.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .maven_pom_organization import MavenPomOrganization + + +class MavenPomLicense(MavenPomOrganization): + """MavenPomLicense. + + :param name: + :type name: str + :param url: + :type url: str + :param distribution: + :type distribution: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'distribution': {'key': 'distribution', 'type': 'str'} + } + + def __init__(self, name=None, url=None, distribution=None): + super(MavenPomLicense, self).__init__(name=name, url=url) + self.distribution = distribution diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py b/vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py new file mode 100644 index 00000000..58a7db92 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py @@ -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.serialization import Model + + +class MavenPomMailingList(Model): + """MavenPomMailingList. + + :param archive: + :type archive: str + :param name: + :type name: str + :param other_archives: + :type other_archives: list of str + :param post: + :type post: str + :param subscribe: + :type subscribe: str + :param unsubscribe: + :type unsubscribe: str + """ + + _attribute_map = { + 'archive': {'key': 'archive', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'other_archives': {'key': 'otherArchives', 'type': '[str]'}, + 'post': {'key': 'post', 'type': 'str'}, + 'subscribe': {'key': 'subscribe', 'type': 'str'}, + 'unsubscribe': {'key': 'unsubscribe', 'type': 'str'} + } + + def __init__(self, archive=None, name=None, other_archives=None, post=None, subscribe=None, unsubscribe=None): + super(MavenPomMailingList, self).__init__() + self.archive = archive + self.name = name + self.other_archives = other_archives + self.post = post + self.subscribe = subscribe + self.unsubscribe = unsubscribe diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_metadata.py b/vsts/vsts/maven/v4_1/models/maven_pom_metadata.py new file mode 100644 index 00000000..0e8a7a47 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_metadata.py @@ -0,0 +1,114 @@ +# -------------------------------------------------------------------------------------------- +# 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 .maven_pom_gav import MavenPomGav + + +class MavenPomMetadata(MavenPomGav): + """MavenPomMetadata. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param build: + :type build: :class:`MavenPomBuild ` + :param ci_management: + :type ci_management: :class:`MavenPomCi ` + :param contributors: + :type contributors: list of :class:`MavenPomPerson ` + :param dependencies: + :type dependencies: list of :class:`MavenPomDependency ` + :param dependency_management: + :type dependency_management: :class:`MavenPomDependencyManagement ` + :param description: + :type description: str + :param developers: + :type developers: list of :class:`MavenPomPerson ` + :param inception_year: + :type inception_year: str + :param issue_management: + :type issue_management: :class:`MavenPomIssueManagement ` + :param licenses: + :type licenses: list of :class:`MavenPomLicense ` + :param mailing_lists: + :type mailing_lists: list of :class:`MavenPomMailingList ` + :param model_version: + :type model_version: str + :param modules: + :type modules: list of str + :param name: + :type name: str + :param organization: + :type organization: :class:`MavenPomOrganization ` + :param packaging: + :type packaging: str + :param parent: + :type parent: :class:`MavenPomParent ` + :param prerequisites: + :type prerequisites: dict + :param properties: + :type properties: dict + :param scm: + :type scm: :class:`MavenPomScm ` + :param url: + :type url: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'build': {'key': 'build', 'type': 'MavenPomBuild'}, + 'ci_management': {'key': 'ciManagement', 'type': 'MavenPomCi'}, + 'contributors': {'key': 'contributors', 'type': '[MavenPomPerson]'}, + 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'}, + 'dependency_management': {'key': 'dependencyManagement', 'type': 'MavenPomDependencyManagement'}, + 'description': {'key': 'description', 'type': 'str'}, + 'developers': {'key': 'developers', 'type': '[MavenPomPerson]'}, + 'inception_year': {'key': 'inceptionYear', 'type': 'str'}, + 'issue_management': {'key': 'issueManagement', 'type': 'MavenPomIssueManagement'}, + 'licenses': {'key': 'licenses', 'type': '[MavenPomLicense]'}, + 'mailing_lists': {'key': 'mailingLists', 'type': '[MavenPomMailingList]'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[str]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'MavenPomOrganization'}, + 'packaging': {'key': 'packaging', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'MavenPomParent'}, + 'prerequisites': {'key': 'prerequisites', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'scm': {'key': 'scm', 'type': 'MavenPomScm'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, build=None, ci_management=None, contributors=None, dependencies=None, dependency_management=None, description=None, developers=None, inception_year=None, issue_management=None, licenses=None, mailing_lists=None, model_version=None, modules=None, name=None, organization=None, packaging=None, parent=None, prerequisites=None, properties=None, scm=None, url=None): + super(MavenPomMetadata, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.build = build + self.ci_management = ci_management + self.contributors = contributors + self.dependencies = dependencies + self.dependency_management = dependency_management + self.description = description + self.developers = developers + self.inception_year = inception_year + self.issue_management = issue_management + self.licenses = licenses + self.mailing_lists = mailing_lists + self.model_version = model_version + self.modules = modules + self.name = name + self.organization = organization + self.packaging = packaging + self.parent = parent + self.prerequisites = prerequisites + self.properties = properties + self.scm = scm + self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_organization.py b/vsts/vsts/maven/v4_1/models/maven_pom_organization.py new file mode 100644 index 00000000..27d47322 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_organization.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomOrganization(Model): + """MavenPomOrganization. + + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(MavenPomOrganization, self).__init__() + self.name = name + self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_parent.py b/vsts/vsts/maven/v4_1/models/maven_pom_parent.py new file mode 100644 index 00000000..794b7032 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_parent.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .maven_pom_gav import MavenPomGav + + +class MavenPomParent(MavenPomGav): + """MavenPomParent. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param relative_path: + :type relative_path: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, relative_path=None): + super(MavenPomParent, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.relative_path = relative_path diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_person.py b/vsts/vsts/maven/v4_1/models/maven_pom_person.py new file mode 100644 index 00000000..36defcf9 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_person.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomPerson(Model): + """MavenPomPerson. + + :param email: + :type email: str + :param id: + :type id: str + :param name: + :type name: str + :param organization: + :type organization: str + :param organization_url: + :type organization_url: str + :param roles: + :type roles: list of str + :param timezone: + :type timezone: str + :param url: + :type url: str + """ + + _attribute_map = { + 'email': {'key': 'email', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'str'}, + 'organization_url': {'key': 'organizationUrl', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'timezone': {'key': 'timezone', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, email=None, id=None, name=None, organization=None, organization_url=None, roles=None, timezone=None, url=None): + super(MavenPomPerson, self).__init__() + self.email = email + self.id = id + self.name = name + self.organization = organization + self.organization_url = organization_url + self.roles = roles + self.timezone = timezone + self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_scm.py b/vsts/vsts/maven/v4_1/models/maven_pom_scm.py new file mode 100644 index 00000000..4efb7580 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_pom_scm.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenPomScm(Model): + """MavenPomScm. + + :param connection: + :type connection: str + :param developer_connection: + :type developer_connection: str + :param tag: + :type tag: str + :param url: + :type url: str + """ + + _attribute_map = { + 'connection': {'key': 'connection', 'type': 'str'}, + 'developer_connection': {'key': 'developerConnection', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, connection=None, developer_connection=None, tag=None, url=None): + super(MavenPomScm, self).__init__() + self.connection = connection + self.developer_connection = developer_connection + self.tag = tag + self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py b/vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py new file mode 100644 index 00000000..6c1213f2 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MavenRecycleBinPackageVersionDetails(Model): + """MavenRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(MavenRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted diff --git a/vsts/vsts/maven/v4_1/models/package.py b/vsts/vsts/maven/v4_1/models/package.py new file mode 100644 index 00000000..ce16c013 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/package.py @@ -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.serialization import Model + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted + :type deleted_date: datetime + :param id: + :type id: str + :param name: The display name of the package + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version diff --git a/vsts/vsts/maven/v4_1/models/plugin.py b/vsts/vsts/maven/v4_1/models/plugin.py new file mode 100644 index 00000000..08d67f5d --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/plugin.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .maven_pom_gav import MavenPomGav + + +class Plugin(MavenPomGav): + """Plugin. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param configuration: + :type configuration: :class:`PluginConfiguration ` + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'PluginConfiguration'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, configuration=None): + super(Plugin, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.configuration = configuration diff --git a/vsts/vsts/maven/v4_1/models/plugin_configuration.py b/vsts/vsts/maven/v4_1/models/plugin_configuration.py new file mode 100644 index 00000000..8e95ead8 --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/plugin_configuration.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PluginConfiguration(Model): + """PluginConfiguration. + + :param goal_prefix: + :type goal_prefix: str + """ + + _attribute_map = { + 'goal_prefix': {'key': 'goalPrefix', 'type': 'str'} + } + + def __init__(self, goal_prefix=None): + super(PluginConfiguration, self).__init__() + self.goal_prefix = goal_prefix diff --git a/vsts/vsts/maven/v4_1/models/reference_link.py b/vsts/vsts/maven/v4_1/models/reference_link.py new file mode 100644 index 00000000..6f7c82bc --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/reference_link.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLink(Model): + """ReferenceLink. + + :param href: + :type href: str + """ + + _attribute_map = { + 'href': {'key': 'href', 'type': 'str'} + } + + def __init__(self, href=None): + super(ReferenceLink, self).__init__() + self.href = href diff --git a/vsts/vsts/maven/v4_1/models/reference_links.py b/vsts/vsts/maven/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/maven/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/notification/v4_1/models/graph_subject_base.py b/vsts/vsts/notification/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py b/vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py new file mode 100644 index 00000000..818cbf45 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class INotificationDiagnosticLog(Model): + """INotificationDiagnosticLog. + + :param activity_id: + :type activity_id: str + :param description: + :type description: str + :param end_time: + :type end_time: datetime + :param id: + :type id: str + :param log_type: + :type log_type: str + :param messages: + :type messages: list of :class:`NotificationDiagnosticLogMessage ` + :param properties: + :type properties: dict + :param source: + :type source: str + :param start_time: + :type start_time: datetime + """ + + _attribute_map = { + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'log_type': {'key': 'logType', 'type': 'str'}, + 'messages': {'key': 'messages', 'type': '[NotificationDiagnosticLogMessage]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'source': {'key': 'source', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, activity_id=None, description=None, end_time=None, id=None, log_type=None, messages=None, properties=None, source=None, start_time=None): + super(INotificationDiagnosticLog, self).__init__() + self.activity_id = activity_id + self.description = description + self.end_time = end_time + self.id = id + self.log_type = log_type + self.messages = messages + self.properties = properties + self.source = source + self.start_time = start_time diff --git a/vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py b/vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py new file mode 100644 index 00000000..07be349a --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NotificationDiagnosticLogMessage(Model): + """NotificationDiagnosticLogMessage. + + :param level: Corresponds to .Net TraceLevel enumeration + :type level: int + :param message: + :type message: str + :param time: + :type time: object + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'object'} + } + + def __init__(self, level=None, message=None, time=None): + super(NotificationDiagnosticLogMessage, self).__init__() + self.level = level + self.message = message + self.time = time diff --git a/vsts/vsts/notification/v4_1/models/subscription_diagnostics.py b/vsts/vsts/notification/v4_1/models/subscription_diagnostics.py new file mode 100644 index 00000000..78792b01 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_diagnostics.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionDiagnostics(Model): + """SubscriptionDiagnostics. + + :param delivery_results: + :type delivery_results: :class:`SubscriptionTracing ` + :param delivery_tracing: + :type delivery_tracing: :class:`SubscriptionTracing ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`SubscriptionTracing ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(SubscriptionDiagnostics, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/notification/v4_1/models/subscription_tracing.py b/vsts/vsts/notification/v4_1/models/subscription_tracing.py new file mode 100644 index 00000000..3f0ac917 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/subscription_tracing.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionTracing(Model): + """SubscriptionTracing. + + :param enabled: + :type enabled: bool + :param end_date: Trace until the specified end date. + :type end_date: datetime + :param max_traced_entries: The maximum number of result details to trace. + :type max_traced_entries: int + :param start_date: The date and time tracing started. + :type start_date: datetime + :param traced_entries: Trace until remaining count reaches 0. + :type traced_entries: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} + } + + def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): + super(SubscriptionTracing, self).__init__() + self.enabled = enabled + self.end_date = end_date + self.max_traced_entries = max_traced_entries + self.start_date = start_date + self.traced_entries = traced_entries diff --git a/vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py b/vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py new file mode 100644 index 00000000..da3e2dbd --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdateSubscripitonDiagnosticsParameters(Model): + """UpdateSubscripitonDiagnosticsParameters. + + :param delivery_results: + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :param delivery_tracing: + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(UpdateSubscripitonDiagnosticsParameters, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py b/vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py new file mode 100644 index 00000000..13f3ef64 --- /dev/null +++ b/vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdateSubscripitonTracingParameters(Model): + """UpdateSubscripitonTracingParameters. + + :param enabled: + :type enabled: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'} + } + + def __init__(self, enabled=None): + super(UpdateSubscripitonTracingParameters, self).__init__() + self.enabled = enabled diff --git a/vsts/vsts/npm/__init__.py b/vsts/vsts/npm/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/npm/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/npm/v4_1/__init__.py b/vsts/vsts/npm/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/npm/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/npm/v4_1/models/__init__.py b/vsts/vsts/npm/v4_1/models/__init__.py new file mode 100644 index 00000000..2d041972 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/__init__.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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 .batch_deprecate_data import BatchDeprecateData +from .batch_operation_data import BatchOperationData +from .json_patch_operation import JsonPatchOperation +from .minimal_package_details import MinimalPackageDetails +from .npm_packages_batch_request import NpmPackagesBatchRequest +from .npm_package_version_deletion_state import NpmPackageVersionDeletionState +from .npm_recycle_bin_package_version_details import NpmRecycleBinPackageVersionDetails +from .package import Package +from .package_version_details import PackageVersionDetails +from .reference_links import ReferenceLinks +from .upstream_source_info import UpstreamSourceInfo + +__all__ = [ + 'BatchDeprecateData', + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NpmPackagesBatchRequest', + 'NpmPackageVersionDeletionState', + 'NpmRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', +] diff --git a/vsts/vsts/npm/v4_1/models/batch_deprecate_data.py b/vsts/vsts/npm/v4_1/models/batch_deprecate_data.py new file mode 100644 index 00000000..a5a9c582 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/batch_deprecate_data.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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 .batch_operation_data import BatchOperationData + + +class BatchDeprecateData(BatchOperationData): + """BatchDeprecateData. + + :param message: Deprecate message that will be added to packages + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(BatchDeprecateData, self).__init__() + self.message = message diff --git a/vsts/vsts/npm/v4_1/models/batch_operation_data.py b/vsts/vsts/npm/v4_1/models/batch_operation_data.py new file mode 100644 index 00000000..a084ef44 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/batch_operation_data.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() diff --git a/vsts/vsts/npm/v4_1/models/json_patch_operation.py b/vsts/vsts/npm/v4_1/models/json_patch_operation.py new file mode 100644 index 00000000..7d45b0f6 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/json_patch_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value diff --git a/vsts/vsts/npm/v4_1/models/minimal_package_details.py b/vsts/vsts/npm/v4_1/models/minimal_package_details.py new file mode 100644 index 00000000..11c55e98 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/minimal_package_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version diff --git a/vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py b/vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py new file mode 100644 index 00000000..542768ce --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NpmPackageVersionDeletionState(Model): + """NpmPackageVersionDeletionState. + + :param name: + :type name: str + :param unpublished_date: + :type unpublished_date: datetime + :param version: + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, name=None, unpublished_date=None, version=None): + super(NpmPackageVersionDeletionState, self).__init__() + self.name = name + self.unpublished_date = unpublished_date + self.version = version diff --git a/vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py b/vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py new file mode 100644 index 00000000..5fd8e453 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NpmPackagesBatchRequest(Model): + """NpmPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(NpmPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages diff --git a/vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py b/vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py new file mode 100644 index 00000000..26177326 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NpmRecycleBinPackageVersionDetails(Model): + """NpmRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(NpmRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted diff --git a/vsts/vsts/npm/v4_1/models/package.py b/vsts/vsts/npm/v4_1/models/package.py new file mode 100644 index 00000000..94b3d6fc --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/package.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param deprecate_message: Deprecated message, if any, for the package + :type deprecate_message: str + :param id: + :type id: str + :param name: The display name of the package + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. + :type source_chain: list of :class:`UpstreamSourceInfo ` + :param unpublished_date: If and when the package was deleted + :type unpublished_date: datetime + :param version: The version of the package + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, + 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deprecate_message=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, unpublished_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deprecate_message = deprecate_message + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.source_chain = source_chain + self.unpublished_date = unpublished_date + self.version = version diff --git a/vsts/vsts/npm/v4_1/models/package_version_details.py b/vsts/vsts/npm/v4_1/models/package_version_details.py new file mode 100644 index 00000000..a249cb23 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/package_version_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param deprecate_message: Indicates the deprecate message of a package version + :type deprecate_message: str + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, deprecate_message=None, views=None): + super(PackageVersionDetails, self).__init__() + self.deprecate_message = deprecate_message + self.views = views diff --git a/vsts/vsts/npm/v4_1/models/reference_links.py b/vsts/vsts/npm/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/npm/v4_1/models/upstream_source_info.py b/vsts/vsts/npm/v4_1/models/upstream_source_info.py new file mode 100644 index 00000000..a49464e6 --- /dev/null +++ b/vsts/vsts/npm/v4_1/models/upstream_source_info.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpstreamSourceInfo(Model): + """UpstreamSourceInfo. + + :param id: + :type id: str + :param location: + :type location: str + :param name: + :type name: str + :param source_type: + :type source_type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_type': {'key': 'sourceType', 'type': 'object'} + } + + def __init__(self, id=None, location=None, name=None, source_type=None): + super(UpstreamSourceInfo, self).__init__() + self.id = id + self.location = location + self.name = name + self.source_type = source_type diff --git a/vsts/vsts/npm/v4_1/npm_client.py b/vsts/vsts/npm/v4_1/npm_client.py new file mode 100644 index 00000000..141118c2 --- /dev/null +++ b/vsts/vsts/npm/v4_1/npm_client.py @@ -0,0 +1,407 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class NpmClient(VssClient): + """Npm + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(NpmClient, 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 = '4c83cfc1-f33a-477e-a789-29d38ffca52e' + + def get_content_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version): + """GetContentScopedPackage. + [Preview API] + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='09a4eafd-123a-495c-979c-0eda7bdb9a14', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_content_unscoped_package(self, feed_id, package_name, package_version): + """GetContentUnscopedPackage. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='75caa482-cb1e-47cd-9f2c-c048a4b7a43e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def update_packages(self, batch_request, feed_id): + """UpdatePackages. + [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param str feed_id: Feed which contains the packages to update. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(batch_request, 'NpmPackagesBatchRequest') + self._send(http_method='POST', + location_id='06f34005-bbb2-41f4-88f5-23e03a99bb12', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version): + """GetReadmeScopedPackage. + [Preview API] + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='6d4db777-7e4a-43b2-afad-779a1d197301', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def get_readme_unscoped_package(self, feed_id, package_name, package_version): + """GetReadmeUnscopedPackage. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='1099a396-b310-41d4-a4b6-33d134ce3fcf', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def delete_scoped_package_version_from_recycle_bin(self, feed_id, package_scope, unscoped_package_name, package_version): + """DeleteScopedPackageVersionFromRecycleBin. + [Preview API] + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='220f45eb-94a5-432c-902a-5b8c6372e415', + version='4.1-preview.1', + route_values=route_values) + + def get_scoped_package_version_metadata_from_recycle_bin(self, feed_id, package_scope, unscoped_package_name, package_version): + """GetScopedPackageVersionMetadataFromRecycleBin. + [Preview API] + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='220f45eb-94a5-432c-902a-5b8c6372e415', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('NpmPackageVersionDeletionState', response) + + def restore_scoped_package_version_from_recycle_bin(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): + """RestoreScopedPackageVersionFromRecycleBin. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'NpmRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='220f45eb-94a5-432c-902a-5b8c6372e415', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', + version='4.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('NpmPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'NpmRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def get_scoped_package_info(self, feed_id, package_scope, unscoped_package_name, package_version): + """GetScopedPackageInfo. + [Preview API] + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def unpublish_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version): + """UnpublishScopedPackage. + [Preview API] + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def update_scoped_package(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): + """UpdateScopedPackage. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + response = self._send(http_method='PATCH', + location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Package', response) + + def get_package_info(self, feed_id, package_name, package_version): + """GetPackageInfo. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def unpublish_package(self, feed_id, package_name, package_version): + """UnpublishPackage. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def update_package(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackage. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + response = self._send(http_method='PATCH', + location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Package', response) + diff --git a/vsts/vsts/nuget/__init__.py b/vsts/vsts/nuget/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/nuget/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/nuget/v4_1/__init__.py b/vsts/vsts/nuget/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/nuget/v4_1/models/__init__.py b/vsts/vsts/nuget/v4_1/models/__init__.py new file mode 100644 index 00000000..e468377f --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/__init__.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .batch_list_data import BatchListData +from .batch_operation_data import BatchOperationData +from .json_patch_operation import JsonPatchOperation +from .minimal_package_details import MinimalPackageDetails +from .nuGet_packages_batch_request import NuGetPackagesBatchRequest +from .nuGet_package_version_deletion_state import NuGetPackageVersionDeletionState +from .nuGet_recycle_bin_package_version_details import NuGetRecycleBinPackageVersionDetails +from .package import Package +from .package_version_details import PackageVersionDetails +from .reference_links import ReferenceLinks + +__all__ = [ + 'BatchListData', + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NuGetPackagesBatchRequest', + 'NuGetPackageVersionDeletionState', + 'NuGetRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', +] diff --git a/vsts/vsts/nuget/v4_1/models/batch_list_data.py b/vsts/vsts/nuget/v4_1/models/batch_list_data.py new file mode 100644 index 00000000..713ee62a --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/batch_list_data.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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 .batch_operation_data import BatchOperationData + + +class BatchListData(BatchOperationData): + """BatchListData. + + :param listed: The desired listed status for the package versions. + :type listed: bool + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'} + } + + def __init__(self, listed=None): + super(BatchListData, self).__init__() + self.listed = listed diff --git a/vsts/vsts/nuget/v4_1/models/batch_operation_data.py b/vsts/vsts/nuget/v4_1/models/batch_operation_data.py new file mode 100644 index 00000000..a084ef44 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/batch_operation_data.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() diff --git a/vsts/vsts/nuget/v4_1/models/json_patch_operation.py b/vsts/vsts/nuget/v4_1/models/json_patch_operation.py new file mode 100644 index 00000000..7d45b0f6 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/json_patch_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value diff --git a/vsts/vsts/nuget/v4_1/models/minimal_package_details.py b/vsts/vsts/nuget/v4_1/models/minimal_package_details.py new file mode 100644 index 00000000..11c55e98 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/minimal_package_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version diff --git a/vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py b/vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py new file mode 100644 index 00000000..3b06a248 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NuGetPackageVersionDeletionState(Model): + """NuGetPackageVersionDeletionState. + + :param deleted_date: + :type deleted_date: datetime + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(NuGetPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version diff --git a/vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py b/vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py new file mode 100644 index 00000000..7885fbd7 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NuGetPackagesBatchRequest(Model): + """NuGetPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(NuGetPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages diff --git a/vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py b/vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py new file mode 100644 index 00000000..f55a4bfa --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class NuGetRecycleBinPackageVersionDetails(Model): + """NuGetRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(NuGetRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted diff --git a/vsts/vsts/nuget/v4_1/models/package.py b/vsts/vsts/nuget/v4_1/models/package.py new file mode 100644 index 00000000..d69b1ffb --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/package.py @@ -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.serialization import Model + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted + :type deleted_date: datetime + :param id: + :type id: str + :param name: The display name of the package + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version diff --git a/vsts/vsts/nuget/v4_1/models/package_version_details.py b/vsts/vsts/nuget/v4_1/models/package_version_details.py new file mode 100644 index 00000000..0d3ca486 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/package_version_details.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param listed: Indicates the listing state of a package + :type listed: bool + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'}, + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, listed=None, views=None): + super(PackageVersionDetails, self).__init__() + self.listed = listed + self.views = views diff --git a/vsts/vsts/nuget/v4_1/models/reference_links.py b/vsts/vsts/nuget/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/nuget/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/nuget/v4_1/nuGet_client.py b/vsts/vsts/nuget/v4_1/nuGet_client.py new file mode 100644 index 00000000..0d372ca6 --- /dev/null +++ b/vsts/vsts/nuget/v4_1/nuGet_client.py @@ -0,0 +1,200 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class NuGetClient(VssClient): + """NuGet + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(NuGetClient, 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 = 'b3be7473-68ea-4a81-bfc7-9530baaa19ad' + + def download_package(self, feed_id, package_name, package_version, source_protocol_version=None): + """DownloadPackage. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :param str source_protocol_version: + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if source_protocol_version is not None: + query_parameters['sourceProtocolVersion'] = self._serialize.query('source_protocol_version', source_protocol_version, 'str') + response = self._send(http_method='GET', + location_id='6ea81b8c-7386-490b-a71f-6cf23c80b388', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_package_versions(self, batch_request, feed_id): + """UpdatePackageVersions. + [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param str feed_id: Feed which contains the packages to update. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(batch_request, 'NuGetPackagesBatchRequest') + self._send(http_method='POST', + location_id='00c58ea7-d55f-49de-b59f-983533ae11dc', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='4.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('NuGetPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'NuGetRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version(self, feed_id, package_name, package_version): + """DeletePackageVersion. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): + """GetPackageVersion. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :param bool show_deleted: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def update_package_version(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackageVersion. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + self._send(http_method='PATCH', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='4.1-preview.1', + route_values=route_values, + content=content) + diff --git a/vsts/vsts/operations/v4_1/operations_client.py b/vsts/vsts/operations/v4_1/operations_client.py index 5bedf682..2d88d954 100644 --- a/vsts/vsts/operations/v4_1/operations_client.py +++ b/vsts/vsts/operations/v4_1/operations_client.py @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def get_operation(self, operation_id, plugin_id=None): """GetOperation. - [Preview API] Gets an operation from the the operationId using the given pluginId. + Gets an operation from the the operationId using the given pluginId. :param str operation_id: The ID for the operation. :param str plugin_id: The ID for the plugin. :rtype: :class:` ` @@ -40,7 +40,7 @@ def get_operation(self, operation_id, plugin_id=None): query_parameters['pluginId'] = self._serialize.query('plugin_id', plugin_id, 'str') response = self._send(http_method='GET', location_id='9a1b74b4-2ca8-4a9f-8470-c2f2e6fdc949', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Operation', response) diff --git a/vsts/vsts/policy/v4_1/models/graph_subject_base.py b/vsts/vsts/policy/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/policy/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/policy/v4_1/policy_client.py b/vsts/vsts/policy/v4_1/policy_client.py index ad21d1b6..ec25ec1b 100644 --- a/vsts/vsts/policy/v4_1/policy_client.py +++ b/vsts/vsts/policy/v4_1/policy_client.py @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def create_policy_configuration(self, configuration, project, configuration_id=None): """CreatePolicyConfiguration. - [Preview API] Create a policy configuration of a given policy type. + Create a policy configuration of a given policy type. :param :class:` ` configuration: The policy configuration to create. :param str project: Project ID or project name :param int configuration_id: @@ -41,14 +41,14 @@ def create_policy_configuration(self, configuration, project, configuration_id=N content = self._serialize.body(configuration, 'PolicyConfiguration') response = self._send(http_method='POST', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('PolicyConfiguration', response) def delete_policy_configuration(self, project, configuration_id): """DeletePolicyConfiguration. - [Preview API] Delete a policy configuration by its ID. + Delete a policy configuration by its ID. :param str project: Project ID or project name :param int configuration_id: ID of the policy configuration to delete. """ @@ -59,12 +59,12 @@ def delete_policy_configuration(self, project, configuration_id): route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') self._send(http_method='DELETE', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_policy_configuration(self, project, configuration_id): """GetPolicyConfiguration. - [Preview API] Get a policy configuration by its ID. + Get a policy configuration by its ID. :param str project: Project ID or project name :param int configuration_id: ID of the policy configuration :rtype: :class:` ` @@ -76,13 +76,13 @@ def get_policy_configuration(self, project, configuration_id): route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') response = self._send(http_method='GET', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('PolicyConfiguration', response) def get_policy_configurations(self, project, scope=None, policy_type=None): """GetPolicyConfigurations. - [Preview API] Get a list of policy configurations in a project. + Get a list of policy configurations in a project. :param str project: Project ID or project name :param str scope: The scope on which a subset of policies is applied. :param str policy_type: Filter returned policies to only this type @@ -98,7 +98,7 @@ def get_policy_configurations(self, project, scope=None, policy_type=None): query_parameters['policyType'] = self._serialize.query('policy_type', policy_type, 'str') response = self._send(http_method='GET', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -106,7 +106,7 @@ def get_policy_configurations(self, project, scope=None, policy_type=None): def update_policy_configuration(self, configuration, project, configuration_id): """UpdatePolicyConfiguration. - [Preview API] Update a policy configuration by its ID. + Update a policy configuration by its ID. :param :class:` ` configuration: The policy configuration to update. :param str project: Project ID or project name :param int configuration_id: ID of the existing policy configuration to be updated. @@ -120,7 +120,7 @@ def update_policy_configuration(self, configuration, project, configuration_id): content = self._serialize.body(configuration, 'PolicyConfiguration') response = self._send(http_method='PUT', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('PolicyConfiguration', response) @@ -193,7 +193,7 @@ def get_policy_evaluations(self, project, artifact_id, include_not_applicable=No def get_policy_configuration_revision(self, project, configuration_id, revision_id): """GetPolicyConfigurationRevision. - [Preview API] Retrieve a specific revision of a given policy by ID. + Retrieve a specific revision of a given policy by ID. :param str project: Project ID or project name :param int configuration_id: The policy configuration ID. :param int revision_id: The revision ID. @@ -208,13 +208,13 @@ def get_policy_configuration_revision(self, project, configuration_id, revision_ route_values['revisionId'] = self._serialize.url('revision_id', revision_id, 'int') response = self._send(http_method='GET', location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('PolicyConfiguration', response) def get_policy_configuration_revisions(self, project, configuration_id, top=None, skip=None): """GetPolicyConfigurationRevisions. - [Preview API] Retrieve all revisions for a given policy. + Retrieve all revisions for a given policy. :param str project: Project ID or project name :param int configuration_id: The policy configuration ID. :param int top: The number of revisions to retrieve. @@ -233,7 +233,7 @@ def get_policy_configuration_revisions(self, project, configuration_id, top=None query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -241,7 +241,7 @@ def get_policy_configuration_revisions(self, project, configuration_id, top=None def get_policy_type(self, project, type_id): """GetPolicyType. - [Preview API] Retrieve a specific policy type by ID. + Retrieve a specific policy type by ID. :param str project: Project ID or project name :param str type_id: The policy ID. :rtype: :class:` ` @@ -253,13 +253,13 @@ def get_policy_type(self, project, type_id): route_values['typeId'] = self._serialize.url('type_id', type_id, 'str') response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('PolicyType', response) def get_policy_types(self, project): """GetPolicyTypes. - [Preview API] Retrieve all available policy types. + Retrieve all available policy types. :param str project: Project ID or project name :rtype: [PolicyType] """ @@ -268,7 +268,7 @@ def get_policy_types(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[PolicyType]', response) diff --git a/vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py b/vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py new file mode 100644 index 00000000..5b919b79 --- /dev/null +++ b/vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LanguageMetricsSecuredObject(Model): + """LanguageMetricsSecuredObject. + + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int + """ + + _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'} + } + + def __init__(self, namespace_id=None, project_id=None, required_permissions=None): + super(LanguageMetricsSecuredObject, self).__init__() + self.namespace_id = namespace_id + self.project_id = project_id + self.required_permissions = required_permissions diff --git a/vsts/vsts/release/v4_1/models/graph_subject_base.py b/vsts/vsts/release/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/release/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/release/v4_1/models/pipeline_process.py b/vsts/vsts/release/v4_1/models/pipeline_process.py new file mode 100644 index 00000000..5614dbad --- /dev/null +++ b/vsts/vsts/release/v4_1/models/pipeline_process.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PipelineProcess(Model): + """PipelineProcess. + + :param type: + :type type: object + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, type=None): + super(PipelineProcess, self).__init__() + self.type = type diff --git a/vsts/vsts/release/v4_1/models/release_task_attachment.py b/vsts/vsts/release/v4_1/models/release_task_attachment.py new file mode 100644 index 00000000..58a8b52d --- /dev/null +++ b/vsts/vsts/release/v4_1/models/release_task_attachment.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReleaseTaskAttachment(Model): + """ReleaseTaskAttachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_on: + :type created_on: datetime + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param record_id: + :type record_id: str + :param timeline_id: + :type timeline_id: str + :param type: + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, modified_by=None, modified_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(ReleaseTaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type diff --git a/vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py b/vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py b/vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py new file mode 100644 index 00000000..77fb0ca6 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionDiagnostics(Model): + """SubscriptionDiagnostics. + + :param delivery_results: + :type delivery_results: :class:`SubscriptionTracing ` + :param delivery_tracing: + :type delivery_tracing: :class:`SubscriptionTracing ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`SubscriptionTracing ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(SubscriptionDiagnostics, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py b/vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py new file mode 100644 index 00000000..3f0ac917 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubscriptionTracing(Model): + """SubscriptionTracing. + + :param enabled: + :type enabled: bool + :param end_date: Trace until the specified end date. + :type end_date: datetime + :param max_traced_entries: The maximum number of result details to trace. + :type max_traced_entries: int + :param start_date: The date and time tracing started. + :type start_date: datetime + :param traced_entries: Trace until remaining count reaches 0. + :type traced_entries: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} + } + + def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): + super(SubscriptionTracing, self).__init__() + self.enabled = enabled + self.end_date = end_date + self.max_traced_entries = max_traced_entries + self.start_date = start_date + self.traced_entries = traced_entries diff --git a/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py b/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py new file mode 100644 index 00000000..814661a3 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdateSubscripitonDiagnosticsParameters(Model): + """UpdateSubscripitonDiagnosticsParameters. + + :param delivery_results: + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :param delivery_tracing: + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(UpdateSubscripitonDiagnosticsParameters, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py b/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py new file mode 100644 index 00000000..13f3ef64 --- /dev/null +++ b/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdateSubscripitonTracingParameters(Model): + """UpdateSubscripitonTracingParameters. + + :param enabled: + :type enabled: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'} + } + + def __init__(self, enabled=None): + super(UpdateSubscripitonTracingParameters, self).__init__() + self.enabled = enabled diff --git a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py index 5f873e8d..8546f038 100644 --- a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py +++ b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None): """GetConsumerAction. - [Preview API] Get details about a specific consumer action. + Get details about a specific consumer action. :param str consumer_id: ID for a consumer. :param str consumer_action_id: ID for a consumerActionId. :param str publisher_id: @@ -43,14 +43,14 @@ def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ConsumerAction', response) def list_consumer_actions(self, consumer_id, publisher_id=None): """ListConsumerActions. - [Preview API] Get a list of consumer actions for a specific consumer. + Get a list of consumer actions for a specific consumer. :param str consumer_id: ID for a consumer. :param str publisher_id: :rtype: [ConsumerAction] @@ -63,7 +63,7 @@ def list_consumer_actions(self, consumer_id, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -71,7 +71,7 @@ def list_consumer_actions(self, consumer_id, publisher_id=None): def get_consumer(self, consumer_id, publisher_id=None): """GetConsumer. - [Preview API] Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. + Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. :param str consumer_id: ID for a consumer. :param str publisher_id: :rtype: :class:` ` @@ -84,14 +84,14 @@ def get_consumer(self, consumer_id, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Consumer', response) def list_consumers(self, publisher_id=None): """ListConsumers. - [Preview API] Get a list of available service hook consumer services. Optionally filter by consumers that support at least one event type from the specific publisher. + Get a list of available service hook consumer services. Optionally filter by consumers that support at least one event type from the specific publisher. :param str publisher_id: :rtype: [Consumer] """ @@ -100,7 +100,7 @@ def list_consumers(self, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[Consumer]', response) @@ -140,7 +140,7 @@ def update_subscription_diagnostics(self, update_parameters, subscription_id): def get_event_type(self, publisher_id, event_type_id): """GetEventType. - [Preview API] Get a specific event type. + Get a specific event type. :param str publisher_id: ID for a publisher. :param str event_type_id: :rtype: :class:` ` @@ -152,13 +152,13 @@ def get_event_type(self, publisher_id, event_type_id): route_values['eventTypeId'] = self._serialize.url('event_type_id', event_type_id, 'str') response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('EventTypeDescriptor', response) def list_event_types(self, publisher_id): """ListEventTypes. - [Preview API] Get the event types for a specific publisher. + Get the event types for a specific publisher. :param str publisher_id: ID for a publisher. :rtype: [EventTypeDescriptor] """ @@ -167,14 +167,14 @@ def list_event_types(self, publisher_id): route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[EventTypeDescriptor]', response) def get_notification(self, subscription_id, notification_id): """GetNotification. - [Preview API] Get a specific notification for a subscription. + Get a specific notification for a subscription. :param str subscription_id: ID for a subscription. :param int notification_id: :rtype: :class:` ` @@ -186,13 +186,13 @@ def get_notification(self, subscription_id, notification_id): route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') response = self._send(http_method='GET', location_id='0c62d343-21b0-4732-997b-017fde84dc28', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('Notification', response) def get_notifications(self, subscription_id, max_results=None, status=None, result=None): """GetNotifications. - [Preview API] Get a list of notifications for a specific subscription. A notification includes details about the event, the request to and the response from the consumer service. + Get a list of notifications for a specific subscription. A notification includes details about the event, the request to and the response from the consumer service. :param str subscription_id: ID for a subscription. :param int max_results: Maximum number of notifications to return. Default is **100**. :param str status: Get only notifications with this status. @@ -211,7 +211,7 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu query_parameters['result'] = self._serialize.query('result', result, 'str') response = self._send(http_method='GET', location_id='0c62d343-21b0-4732-997b-017fde84dc28', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -219,20 +219,19 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu def query_notifications(self, query): """QueryNotifications. - [Preview API] Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. + Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. :param :class:` ` query: :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') response = self._send(http_method='POST', location_id='1a57562f-160a-4b5c-9185-905e95b39d36', - version='4.1-preview.1', + version='4.1', content=content) return self._deserialize('NotificationsQuery', response) def query_input_values(self, input_values_query, publisher_id): """QueryInputValues. - [Preview API] :param :class:` ` input_values_query: :param str publisher_id: :rtype: :class:` ` @@ -243,14 +242,14 @@ def query_input_values(self, input_values_query, publisher_id): content = self._serialize.body(input_values_query, 'InputValuesQuery') response = self._send(http_method='POST', location_id='d815d352-a566-4dc1-a3e3-fd245acf688c', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('InputValuesQuery', response) def get_publisher(self, publisher_id): """GetPublisher. - [Preview API] Get a specific service hooks publisher. + Get a specific service hooks publisher. :param str publisher_id: ID for a publisher. :rtype: :class:` ` """ @@ -259,50 +258,50 @@ def get_publisher(self, publisher_id): route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('Publisher', response) def list_publishers(self): """ListPublishers. - [Preview API] Get a list of publishers. + Get a list of publishers. :rtype: [Publisher] """ response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.1-preview.1', + version='4.1', returns_collection=True) return self._deserialize('[Publisher]', response) def query_publishers(self, query): """QueryPublishers. - [Preview API] Query for service hook publishers. + Query for service hook publishers. :param :class:` ` query: :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') response = self._send(http_method='POST', location_id='99b44a8a-65a8-4670-8f3e-e7f7842cce64', - version='4.1-preview.1', + version='4.1', content=content) return self._deserialize('PublishersQuery', response) def create_subscription(self, subscription): """CreateSubscription. - [Preview API] Create a subscription. + Create a subscription. :param :class:` ` subscription: Subscription to be created. :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='POST', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1-preview.1', + version='4.1', content=content) return self._deserialize('Subscription', response) def delete_subscription(self, subscription_id): """DeleteSubscription. - [Preview API] Delete a specific service hooks subscription. + Delete a specific service hooks subscription. :param str subscription_id: ID for a subscription. """ route_values = {} @@ -310,12 +309,12 @@ def delete_subscription(self, subscription_id): route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') self._send(http_method='DELETE', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_subscription(self, subscription_id): """GetSubscription. - [Preview API] Get a specific service hooks subscription. + Get a specific service hooks subscription. :param str subscription_id: ID for a subscription. :rtype: :class:` ` """ @@ -324,13 +323,13 @@ def get_subscription(self, subscription_id): route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('Subscription', response) def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=None, consumer_action_id=None): """ListSubscriptions. - [Preview API] Get a list of subscriptions. + Get a list of subscriptions. :param str publisher_id: ID for a subscription. :param str event_type: Maximum number of notifications to return. Default is 100. :param str consumer_id: ID for a consumer. @@ -348,14 +347,14 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non query_parameters['consumerActionId'] = self._serialize.query('consumer_action_id', consumer_action_id, 'str') response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[Subscription]', response) def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. - [Preview API] Update a subscription. ID for a subscription that you wish to update. + Update a subscription. ID for a subscription that you wish to update. :param :class:` ` subscription: :param str subscription_id: :rtype: :class:` ` @@ -366,27 +365,27 @@ def replace_subscription(self, subscription, subscription_id=None): content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='PUT', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('Subscription', response) def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. - [Preview API] Query for service hook subscriptions. + Query for service hook subscriptions. :param :class:` ` query: :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') response = self._send(http_method='POST', location_id='c7c3c1cf-9e05-4c0d-a425-a0f922c2c6ed', - version='4.1-preview.1', + version='4.1', content=content) return self._deserialize('SubscriptionsQuery', response) def create_test_notification(self, test_notification, use_real_data=None): """CreateTestNotification. - [Preview API] Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. + Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. :param :class:` ` test_notification: :param bool use_real_data: Only allow testing with real data in existing subscriptions. :rtype: :class:` ` @@ -397,7 +396,7 @@ def create_test_notification(self, test_notification, use_real_data=None): content = self._serialize.body(test_notification, 'Notification') response = self._send(http_method='POST', location_id='1139462c-7e27-4524-a997-31b9b73551fe', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, content=content) return self._deserialize('Notification', response) diff --git a/vsts/vsts/task/v4_1/task_client.py b/vsts/vsts/task/v4_1/task_client.py index c15c8639..81148d15 100644 --- a/vsts/vsts/task/v4_1/task_client.py +++ b/vsts/vsts/task/v4_1/task_client.py @@ -186,7 +186,6 @@ def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, reco def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id): """AppendLogContent. - [Preview API] :param object upload_stream: Stream to upload :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server @@ -206,7 +205,7 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, content = self._serialize.body(upload_stream, 'object') response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -214,7 +213,6 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, def create_log(self, log, scope_identifier, hub_name, plan_id): """CreateLog. - [Preview API] :param :class:` ` log: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server @@ -231,14 +229,13 @@ def create_log(self, log, scope_identifier, hub_name, plan_id): content = self._serialize.body(log, 'TaskLog') response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('TaskLog', response) def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, end_line=None): """GetLog. - [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -263,7 +260,7 @@ def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -271,7 +268,6 @@ def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, def get_logs(self, scope_identifier, hub_name, plan_id): """GetLogs. - [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -286,14 +282,13 @@ def get_logs(self, scope_identifier, hub_name, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[TaskLog]', response) def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None): """GetRecords. - [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -315,7 +310,7 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') response = self._send(http_method='GET', location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -323,7 +318,6 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): """UpdateRecords. - [Preview API] :param :class:` ` records: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server @@ -343,7 +337,7 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ content = self._serialize.body(records, 'VssJsonCollectionWrapper') response = self._send(http_method='PATCH', location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -351,7 +345,6 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): """CreateTimeline. - [Preview API] :param :class:` ` timeline: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server @@ -368,14 +361,13 @@ def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): content = self._serialize.body(timeline, 'Timeline') response = self._send(http_method='POST', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('Timeline', response) def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): """DeleteTimeline. - [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -392,12 +384,11 @@ def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') self._send(http_method='DELETE', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None, include_records=None): """GetTimeline. - [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -422,14 +413,13 @@ def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_ query_parameters['includeRecords'] = self._serialize.query('include_records', include_records, 'bool') response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Timeline', response) def get_timelines(self, scope_identifier, hub_name, plan_id): """GetTimelines. - [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -444,7 +434,7 @@ def get_timelines(self, scope_identifier, hub_name, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[Timeline]', response) diff --git a/vsts/vsts/task_agent/v4_1/models/client_certificate.py b/vsts/vsts/task_agent/v4_1/models/client_certificate.py new file mode 100644 index 00000000..2eebb4c2 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/client_certificate.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientCertificate(Model): + """ClientCertificate. + + :param value: Gets or sets the value of client certificate. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, value=None): + super(ClientCertificate, self).__init__() + self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py new file mode 100644 index 00000000..940d316b --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentGroupCreateParameter(Model): + """DeploymentGroupCreateParameter. + + :param description: Description of the deployment group. + :type description: str + :param name: Name of the deployment group. + :type name: str + :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :param pool_id: Identifier of the deployment pool in which deployment agents are registered. + :type pool_id: int + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'DeploymentGroupCreateParameterPoolProperty'}, + 'pool_id': {'key': 'poolId', 'type': 'int'} + } + + def __init__(self, description=None, name=None, pool=None, pool_id=None): + super(DeploymentGroupCreateParameter, self).__init__() + self.description = description + self.name = name + self.pool = pool + self.pool_id = pool_id diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py new file mode 100644 index 00000000..8d907622 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentGroupCreateParameterPoolProperty(Model): + """DeploymentGroupCreateParameterPoolProperty. + + :param id: Deployment pool identifier. + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(DeploymentGroupCreateParameterPoolProperty, self).__init__() + self.id = id diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py new file mode 100644 index 00000000..9d2737e9 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentGroupUpdateParameter(Model): + """DeploymentGroupUpdateParameter. + + :param description: Description of the deployment group. + :type description: str + :param name: Name of the deployment group. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(DeploymentGroupUpdateParameter, self).__init__() + self.description = description + self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py b/vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py new file mode 100644 index 00000000..76de415b --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DeploymentTargetUpdateParameter(Model): + """DeploymentTargetUpdateParameter. + + :param id: Identifier of the deployment target. + :type id: int + :param tags: + :type tags: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, id=None, tags=None): + super(DeploymentTargetUpdateParameter, self).__init__() + self.id = id + self.tags = tags diff --git a/vsts/vsts/task_agent/v4_1/models/graph_subject_base.py b/vsts/vsts/task_agent/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py b/vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py new file mode 100644 index 00000000..97faf738 --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OAuthConfiguration(Model): + """OAuthConfiguration. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param created_by: Gets or sets the identity who created the config. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets the time when config was created. + :type created_on: datetime + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param id: Gets or sets the unique identifier of this field + :type id: int + :param modified_by: Gets or sets the identity who modified the config. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets the time when variable group was modified + :type modified_on: datetime + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, created_by=None, created_on=None, endpoint_type=None, id=None, modified_by=None, modified_on=None, name=None, url=None): + super(OAuthConfiguration, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.created_by = created_by + self.created_on = created_on + self.endpoint_type = endpoint_type + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py b/vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py new file mode 100644 index 00000000..96a20eae --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OAuthConfigurationParams(Model): + """OAuthConfigurationParams. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, endpoint_type=None, name=None, url=None): + super(OAuthConfigurationParams, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.endpoint_type = endpoint_type + self.name = name + self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py b/vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py new file mode 100644 index 00000000..0628f80d --- /dev/null +++ b/vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class VariableGroupParameters(Model): + """VariableGroupParameters. + + :param description: Sets description of the variable group. + :type description: str + :param name: Sets name of the variable group. + :type name: str + :param provider_data: Sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Sets type of the variable group. + :type type: str + :param variables: Sets variables contained in the variable group. + :type variables: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, description=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroupParameters, self).__init__() + self.description = description + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables diff --git a/vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py b/vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py new file mode 100644 index 00000000..04398b82 --- /dev/null +++ b/vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedRunsByState(Model): + """AggregatedRunsByState. + + :param runs_count: + :type runs_count: int + :param state: + :type state: object + """ + + _attribute_map = { + 'runs_count': {'key': 'runsCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, runs_count=None, state=None): + super(AggregatedRunsByState, self).__init__() + self.runs_count = runs_count + self.state = state diff --git a/vsts/vsts/test/v4_1/models/graph_subject_base.py b/vsts/vsts/test/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/test/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/test/v4_1/models/reference_links.py b/vsts/vsts/test/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/test/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/test/v4_1/models/shallow_test_case_result.py b/vsts/vsts/test/v4_1/models/shallow_test_case_result.py new file mode 100644 index 00000000..fec1156f --- /dev/null +++ b/vsts/vsts/test/v4_1/models/shallow_test_case_result.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ShallowTestCaseResult(Model): + """ShallowTestCaseResult. + + :param automated_test_storage: + :type automated_test_storage: str + :param id: + :type id: int + :param is_re_run: + :type is_re_run: bool + :param outcome: + :type outcome: str + :param owner: + :type owner: str + :param priority: + :type priority: int + :param ref_id: + :type ref_id: int + :param run_id: + :type run_id: int + :param test_case_title: + :type test_case_title: str + """ + + _attribute_map = { + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_re_run': {'key': 'isReRun', 'type': 'bool'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'ref_id': {'key': 'refId', 'type': 'int'}, + 'run_id': {'key': 'runId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'} + } + + def __init__(self, automated_test_storage=None, id=None, is_re_run=None, outcome=None, owner=None, priority=None, ref_id=None, run_id=None, test_case_title=None): + super(ShallowTestCaseResult, self).__init__() + self.automated_test_storage = automated_test_storage + self.id = id + self.is_re_run = is_re_run + self.outcome = outcome + self.owner = owner + self.priority = priority + self.ref_id = ref_id + self.run_id = run_id + self.test_case_title = test_case_title diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index f44c59b3..ec6999a8 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -27,7 +27,6 @@ def __init__(self, base_url=None, creds=None): def get_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): """GetActionResults. - [Preview API] :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: @@ -48,7 +47,7 @@ def get_action_results(self, project, run_id, test_case_result_id, iteration_id, route_values['actionPath'] = self._serialize.url('action_path', action_path, 'str') response = self._send(http_method='GET', location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', - version='4.1-preview.3', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[TestActionResultModel]', response) @@ -606,7 +605,6 @@ def query_test_result_history(self, filter, project): def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, include_action_results=None): """GetTestIteration. - [Preview API] :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: @@ -628,14 +626,13 @@ def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') response = self._send(http_method='GET', location_id='73eb9074-3446-4c44-8296-2f811950ff8d', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestIterationDetailsModel', response) def get_test_iterations(self, project, run_id, test_case_result_id, include_action_results=None): """GetTestIterations. - [Preview API] :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: @@ -654,7 +651,7 @@ def get_test_iterations(self, project, run_id, test_case_result_id, include_acti query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') response = self._send(http_method='GET', location_id='73eb9074-3446-4c44-8296-2f811950ff8d', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -700,7 +697,6 @@ def get_test_run_logs(self, project, run_id): def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): """GetResultParameters. - [Preview API] :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: @@ -722,7 +718,7 @@ def get_result_parameters(self, project, run_id, test_case_result_id, iteration_ query_parameters['paramName'] = self._serialize.query('param_name', param_name, 'str') response = self._send(http_method='GET', location_id='7c69810d-3354-4af3-844a-180bd25db08a', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -730,7 +726,6 @@ def get_result_parameters(self, project, run_id, test_case_result_id, iteration_ def create_test_plan(self, test_plan, project): """CreateTestPlan. - [Preview API] :param :class:` ` test_plan: :param str project: Project ID or project name :rtype: :class:` ` @@ -741,14 +736,13 @@ def create_test_plan(self, test_plan, project): content = self._serialize.body(test_plan, 'PlanUpdateModel') response = self._send(http_method='POST', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('TestPlan', response) def delete_test_plan(self, project, plan_id): """DeleteTestPlan. - [Preview API] :param str project: Project ID or project name :param int plan_id: """ @@ -759,12 +753,11 @@ def delete_test_plan(self, project, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') self._send(http_method='DELETE', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1-preview.2', + version='4.1', route_values=route_values) def get_plan_by_id(self, project, plan_id): """GetPlanById. - [Preview API] :param str project: Project ID or project name :param int plan_id: :rtype: :class:` ` @@ -776,13 +769,12 @@ def get_plan_by_id(self, project, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') response = self._send(http_method='GET', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('TestPlan', response) def get_plans(self, project, owner=None, skip=None, top=None, include_plan_details=None, filter_active_plans=None): """GetPlans. - [Preview API] :param str project: Project ID or project name :param str owner: :param int skip: @@ -807,7 +799,7 @@ def get_plans(self, project, owner=None, skip=None, top=None, include_plan_detai query_parameters['filterActivePlans'] = self._serialize.query('filter_active_plans', filter_active_plans, 'bool') response = self._send(http_method='GET', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -815,7 +807,6 @@ def get_plans(self, project, owner=None, skip=None, top=None, include_plan_detai def update_test_plan(self, plan_update_model, project, plan_id): """UpdateTestPlan. - [Preview API] :param :class:` ` plan_update_model: :param str project: Project ID or project name :param int plan_id: @@ -829,14 +820,13 @@ def update_test_plan(self, plan_update_model, project, plan_id): content = self._serialize.body(plan_update_model, 'PlanUpdateModel') response = self._send(http_method='PATCH', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('TestPlan', response) def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): """GetPoint. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -858,14 +848,13 @@ def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') response = self._send(http_method='GET', location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestPoint', response) def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_id=None, test_case_id=None, test_point_ids=None, include_point_details=None, skip=None, top=None): """GetPoints. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -902,7 +891,7 @@ def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_ query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -910,7 +899,6 @@ def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_ def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): """UpdateTestPoints. - [Preview API] :param :class:` ` point_update_model: :param str project: Project ID or project name :param int plan_id: @@ -930,7 +918,7 @@ def update_test_points(self, point_update_model, project, plan_id, suite_id, poi content = self._serialize.body(point_update_model, 'PointUpdateModel') response = self._send(http_method='PATCH', location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1154,7 +1142,6 @@ def update_result_retention_settings(self, retention_settings, project): def add_test_results_to_test_run(self, results, project, run_id): """AddTestResultsToTestRun. - [Preview API] :param [TestCaseResult] results: :param str project: Project ID or project name :param int run_id: @@ -1168,7 +1155,7 @@ def add_test_results_to_test_run(self, results, project, run_id): content = self._serialize.body(results, '[TestCaseResult]') response = self._send(http_method='POST', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1-preview.4', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1176,7 +1163,6 @@ def add_test_results_to_test_run(self, results, project, run_id): def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): """GetTestResultById. - [Preview API] :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: @@ -1195,14 +1181,14 @@ def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') response = self._send(http_method='GET', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1-preview.4', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestCaseResult', response) def get_test_results(self, project, run_id, details_to_include=None, skip=None, top=None, outcomes=None): """GetTestResults. - [Preview API] Get Test Results for a run based on filters. + Get Test Results for a run based on filters. :param str project: Project ID or project name :param int run_id: Test Run Id for which results need to be fetched. :param str details_to_include: enum indicates details need to be fetched. @@ -1228,7 +1214,7 @@ def get_test_results(self, project, run_id, details_to_include=None, skip=None, query_parameters['outcomes'] = self._serialize.query('outcomes', outcomes, 'str') response = self._send(http_method='GET', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1-preview.4', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1236,7 +1222,6 @@ def get_test_results(self, project, run_id, details_to_include=None, skip=None, def update_test_results(self, results, project, run_id): """UpdateTestResults. - [Preview API] :param [TestCaseResult] results: :param str project: Project ID or project name :param int run_id: @@ -1250,7 +1235,7 @@ def update_test_results(self, results, project, run_id): content = self._serialize.body(results, '[TestCaseResult]') response = self._send(http_method='PATCH', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1-preview.4', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1445,7 +1430,6 @@ def query_result_trend_for_release(self, filter, project): def get_test_run_statistics(self, project, run_id): """GetTestRunStatistics. - [Preview API] :param str project: Project ID or project name :param int run_id: :rtype: :class:` ` @@ -1457,13 +1441,12 @@ def get_test_run_statistics(self, project, run_id): route_values['runId'] = self._serialize.url('run_id', run_id, 'int') response = self._send(http_method='GET', location_id='0a42c424-d764-4a16-a2d5-5c85f87d0ae8', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('TestRunStatistic', response) def create_test_run(self, test_run, project): """CreateTestRun. - [Preview API] :param :class:` ` test_run: :param str project: Project ID or project name :rtype: :class:` ` @@ -1474,14 +1457,13 @@ def create_test_run(self, test_run, project): content = self._serialize.body(test_run, 'RunCreateModel') response = self._send(http_method='POST', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('TestRun', response) def delete_test_run(self, project, run_id): """DeleteTestRun. - [Preview API] :param str project: Project ID or project name :param int run_id: """ @@ -1492,12 +1474,11 @@ def delete_test_run(self, project, run_id): route_values['runId'] = self._serialize.url('run_id', run_id, 'int') self._send(http_method='DELETE', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1-preview.2', + version='4.1', route_values=route_values) def get_test_run_by_id(self, project, run_id): """GetTestRunById. - [Preview API] :param str project: Project ID or project name :param int run_id: :rtype: :class:` ` @@ -1509,13 +1490,12 @@ def get_test_run_by_id(self, project, run_id): route_values['runId'] = self._serialize.url('run_id', run_id, 'int') response = self._send(http_method='GET', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('TestRun', response) def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, plan_id=None, include_run_details=None, automated=None, skip=None, top=None): """GetTestRuns. - [Preview API] :param str project: Project ID or project name :param str build_uri: :param str owner: @@ -1549,7 +1529,7 @@ def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, pl query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1557,7 +1537,7 @@ def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, pl def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, state=None, plan_ids=None, is_automated=None, publish_context=None, build_ids=None, build_def_ids=None, branch_name=None, release_ids=None, release_def_ids=None, release_env_ids=None, release_env_def_ids=None, run_title=None, top=None, continuation_token=None): """QueryTestRuns. - [Preview API] Query Test Runs based on filters. + Query Test Runs based on filters. :param str project: Project ID or project name :param datetime min_last_updated_date: Minimum Last Modified Date of run to be queried (Mandatory). :param datetime max_last_updated_date: Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days). @@ -1622,7 +1602,7 @@ def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') response = self._send(http_method='GET', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1630,7 +1610,6 @@ def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, def update_test_run(self, run_update_model, project, run_id): """UpdateTestRun. - [Preview API] :param :class:` ` run_update_model: :param str project: Project ID or project name :param int run_id: @@ -1644,7 +1623,7 @@ def update_test_run(self, run_update_model, project, run_id): content = self._serialize.body(run_update_model, 'RunUpdateModel') response = self._send(http_method='PATCH', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('TestRun', response) @@ -1835,7 +1814,6 @@ def reorder_suite_entries(self, suite_entries, project, suite_id): def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): """AddTestCasesToSuite. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1853,14 +1831,13 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.3', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[SuiteTestCase]', response) def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): """GetTestCaseById. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1878,13 +1855,12 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.3', + version='4.1', route_values=route_values) return self._deserialize('SuiteTestCase', response) def get_test_cases(self, project, plan_id, suite_id): """GetTestCases. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1899,14 +1875,13 @@ def get_test_cases(self, project, plan_id, suite_id): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.3', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[SuiteTestCase]', response) def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): """RemoveTestCasesFromSuiteUrl. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1923,12 +1898,11 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') self._send(http_method='DELETE', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1-preview.3', + version='4.1', route_values=route_values) def create_test_suite(self, test_suite, project, plan_id, suite_id): """CreateTestSuite. - [Preview API] :param :class:` ` test_suite: :param str project: Project ID or project name :param int plan_id: @@ -1945,7 +1919,7 @@ def create_test_suite(self, test_suite, project, plan_id, suite_id): content = self._serialize.body(test_suite, 'SuiteCreateModel') response = self._send(http_method='POST', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.3', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1953,7 +1927,6 @@ def create_test_suite(self, test_suite, project, plan_id, suite_id): def delete_test_suite(self, project, plan_id, suite_id): """DeleteTestSuite. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1967,12 +1940,11 @@ def delete_test_suite(self, project, plan_id, suite_id): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') self._send(http_method='DELETE', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.3', + version='4.1', route_values=route_values) def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): """GetTestSuiteById. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1991,14 +1963,13 @@ def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'int') response = self._send(http_method='GET', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestSuite', response) def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top=None, as_tree_view=None): """GetTestSuitesForPlan. - [Preview API] :param str project: Project ID or project name :param int plan_id: :param int expand: @@ -2023,7 +1994,7 @@ def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top query_parameters['$asTreeView'] = self._serialize.query('as_tree_view', as_tree_view, 'bool') response = self._send(http_method='GET', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -2031,7 +2002,6 @@ def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top def update_test_suite(self, suite_update_model, project, plan_id, suite_id): """UpdateTestSuite. - [Preview API] :param :class:` ` suite_update_model: :param str project: Project ID or project name :param int plan_id: @@ -2048,14 +2018,13 @@ def update_test_suite(self, suite_update_model, project, plan_id, suite_id): content = self._serialize.body(suite_update_model, 'SuiteUpdateModel') response = self._send(http_method='PATCH', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1-preview.3', + version='4.1', route_values=route_values, content=content) return self._deserialize('TestSuite', response) def get_suites_by_test_case_id(self, test_case_id): """GetSuitesByTestCaseId. - [Preview API] :param int test_case_id: :rtype: [TestSuite] """ @@ -2064,7 +2033,7 @@ def get_suites_by_test_case_id(self, test_case_id): query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int') response = self._send(http_method='GET', location_id='09a6167b-e969-4775-9247-b94cf3819caf', - version='4.1-preview.3', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[TestSuite]', response) @@ -2087,7 +2056,6 @@ def delete_test_case(self, project, test_case_id): def create_test_settings(self, test_settings, project): """CreateTestSettings. - [Preview API] :param :class:` ` test_settings: :param str project: Project ID or project name :rtype: int @@ -2098,14 +2066,13 @@ def create_test_settings(self, test_settings, project): content = self._serialize.body(test_settings, 'TestSettings') response = self._send(http_method='POST', location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('int', response) def delete_test_settings(self, project, test_settings_id): """DeleteTestSettings. - [Preview API] :param str project: Project ID or project name :param int test_settings_id: """ @@ -2116,12 +2083,11 @@ def delete_test_settings(self, project, test_settings_id): route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') self._send(http_method='DELETE', location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_test_settings_by_id(self, project, test_settings_id): """GetTestSettingsById. - [Preview API] :param str project: Project ID or project name :param int test_settings_id: :rtype: :class:` ` @@ -2133,7 +2099,7 @@ def get_test_settings_by_id(self, project, test_settings_id): route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') response = self._send(http_method='GET', location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('TestSettings', response) diff --git a/vsts/vsts/tfvc/v4_1/models/graph_subject_base.py b/vsts/vsts/tfvc/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/tfvc/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/vsts/vsts/tfvc/v4_1/tfvc_client.py index 3a6e87f5..a93ae789 100644 --- a/vsts/vsts/tfvc/v4_1/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_1/tfvc_client.py @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def get_branch(self, path, project=None, include_parent=None, include_children=None): """GetBranch. - [Preview API] Get a single branch hierarchy at the given path with parents or children as specified. + Get a single branch hierarchy at the given path with parents or children as specified. :param str path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. :param str project: Project ID or project name :param bool include_parent: Return the parent branch, if there is one. Default: False @@ -46,14 +46,14 @@ def get_branch(self, path, project=None, include_parent=None, include_children=N query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcBranch', response) def get_branches(self, project=None, include_parent=None, include_children=None, include_deleted=None, include_links=None): """GetBranches. - [Preview API] Get a collection of branch roots -- first-level children, branches with no parents. + Get a collection of branch roots -- first-level children, branches with no parents. :param str project: Project ID or project name :param bool include_parent: Return the parent branch, if there is one. Default: False :param bool include_children: Return the child branches for each root branch. Default: False @@ -75,7 +75,7 @@ def get_branches(self, project=None, include_parent=None, include_children=None, query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -83,7 +83,7 @@ def get_branches(self, project=None, include_parent=None, include_children=None, def get_branch_refs(self, scope_path, project=None, include_deleted=None, include_links=None): """GetBranchRefs. - [Preview API] Get branch hierarchies below the specified scopePath + Get branch hierarchies below the specified scopePath :param str scope_path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. :param str project: Project ID or project name :param bool include_deleted: Return deleted branches. Default: False @@ -102,7 +102,7 @@ def get_branch_refs(self, scope_path, project=None, include_deleted=None, includ query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -110,7 +110,7 @@ def get_branch_refs(self, scope_path, project=None, include_deleted=None, includ def get_changeset_changes(self, id=None, skip=None, top=None): """GetChangesetChanges. - [Preview API] Retrieve Tfvc changes for a given changeset. + Retrieve Tfvc changes for a given changeset. :param int id: ID of the changeset. Default: null :param int skip: Number of results to skip. Default: null :param int top: The maximum number of results to return. Default: null @@ -126,7 +126,7 @@ def get_changeset_changes(self, id=None, skip=None, top=None): query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -134,7 +134,7 @@ def get_changeset_changes(self, id=None, skip=None, top=None): def create_changeset(self, changeset, project=None): """CreateChangeset. - [Preview API] Create a new changeset. + Create a new changeset. :param :class:` ` changeset: :param str project: Project ID or project name :rtype: :class:` ` @@ -145,14 +145,14 @@ def create_changeset(self, changeset, project=None): content = self._serialize.body(changeset, 'TfvcChangeset') response = self._send(http_method='POST', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.1-preview.3', + version='4.1', route_values=route_values, content=content) return self._deserialize('TfvcChangesetRef', response) def get_changeset(self, id, project=None, max_change_count=None, include_details=None, include_work_items=None, max_comment_length=None, include_source_rename=None, skip=None, top=None, orderby=None, search_criteria=None): """GetChangeset. - [Preview API] Retrieve a Tfvc Changeset + Retrieve a Tfvc Changeset :param int id: Changeset Id to retrieve. :param str project: Project ID or project name :param int max_change_count: Number of changes to return (maximum 100 changes) Default: 0 @@ -207,14 +207,14 @@ def get_changeset(self, id, project=None, max_change_count=None, include_details query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links response = self._send(http_method='GET', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcChangeset', response) def get_changesets(self, project=None, max_comment_length=None, skip=None, top=None, orderby=None, search_criteria=None): """GetChangesets. - [Preview API] Retrieve Tfvc Changesets + Retrieve Tfvc Changesets :param str project: Project ID or project name :param int max_comment_length: Include details about associated work items in the response. Default: null :param int skip: Number of results to skip. Default: null @@ -254,7 +254,7 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links response = self._send(http_method='GET', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -262,21 +262,21 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N def get_batched_changesets(self, changesets_request_data): """GetBatchedChangesets. - [Preview API] Returns changesets for a given list of changeset Ids. + Returns changesets for a given list of changeset Ids. :param :class:` ` changesets_request_data: List of changeset IDs. :rtype: [TfvcChangesetRef] """ content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') response = self._send(http_method='POST', location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', - version='4.1-preview.1', + version='4.1', content=content, returns_collection=True) return self._deserialize('[TfvcChangesetRef]', response) def get_changeset_work_items(self, id=None): """GetChangesetWorkItems. - [Preview API] Retrieves the work items associated with a particular changeset. + Retrieves the work items associated with a particular changeset. :param int id: ID of the changeset. Default: null :rtype: [AssociatedWorkItem] """ @@ -285,14 +285,14 @@ def get_changeset_work_items(self, id=None): route_values['id'] = self._serialize.url('id', id, 'int') response = self._send(http_method='GET', location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[AssociatedWorkItem]', response) def get_items_batch(self, item_request_data, project=None): """GetItemsBatch. - [Preview API] Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: [[TfvcItem]] @@ -303,7 +303,7 @@ def get_items_batch(self, item_request_data, project=None): content = self._serialize.body(item_request_data, 'TfvcItemRequestData') response = self._send(http_method='POST', location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -311,7 +311,7 @@ def get_items_batch(self, item_request_data, project=None): def get_items_batch_zip(self, item_request_data, project=None): """GetItemsBatchZip. - [Preview API] Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: object @@ -322,14 +322,14 @@ def get_items_batch_zip(self, item_request_data, project=None): content = self._serialize.body(item_request_data, 'TfvcItemRequestData') response = self._send(http_method='POST', location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('object', response) def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItem. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. :param str project: Project ID or project name :param str file_name: file name of item returned. @@ -365,14 +365,14 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcItem', response) def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItemContent. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. :param str project: Project ID or project name :param str file_name: file name of item returned. @@ -408,14 +408,14 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_items(self, project=None, scope_path=None, recursion_level=None, include_links=None, version_descriptor=None): """GetItems. - [Preview API] Get a list of Tfvc items + Get a list of Tfvc items :param str project: Project ID or project name :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). @@ -442,7 +442,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include query_parameters['versionDescriptor.Version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -450,7 +450,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItemText. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. :param str project: Project ID or project name :param str file_name: file name of item returned. @@ -486,14 +486,14 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItemZip. - [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. :param str project: Project ID or project name :param str file_name: file name of item returned. @@ -529,14 +529,14 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_label_items(self, label_id, top=None, skip=None): """GetLabelItems. - [Preview API] Get items under a label. + Get items under a label. :param str label_id: Unique identifier of label :param int top: Max number of items to return :param int skip: Number of items to skip @@ -552,7 +552,7 @@ def get_label_items(self, label_id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='06166e34-de17-4b60-8cd1-23182a346fda', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -560,7 +560,7 @@ def get_label_items(self, label_id, top=None, skip=None): def get_label(self, label_id, request_data, project=None): """GetLabel. - [Preview API] Get a single deep label. + Get a single deep label. :param str label_id: Unique identifier of label :param :class:` ` request_data: maxItemCount :param str project: Project ID or project name @@ -587,14 +587,14 @@ def get_label(self, label_id, request_data, project=None): query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcLabel', response) def get_labels(self, request_data, project=None, top=None, skip=None): """GetLabels. - [Preview API] Get a collection of shallow label references. + Get a collection of shallow label references. :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter :param str project: Project ID or project name :param int top: Max number of labels to return @@ -624,7 +624,7 @@ def get_labels(self, request_data, project=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -632,7 +632,7 @@ def get_labels(self, request_data, project=None, top=None, skip=None): def get_shelveset_changes(self, shelveset_id, top=None, skip=None): """GetShelvesetChanges. - [Preview API] Get changes included in a shelveset. + Get changes included in a shelveset. :param str shelveset_id: Shelveset's unique ID :param int top: Max number of changes to return :param int skip: Number of changes to skip @@ -647,14 +647,14 @@ def get_shelveset_changes(self, shelveset_id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='dbaf075b-0445-4c34-9e5b-82292f856522', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[TfvcChange]', response) def get_shelveset(self, shelveset_id, request_data=None): """GetShelveset. - [Preview API] Get a single deep shelveset. + Get a single deep shelveset. :param str shelveset_id: Shelveset's unique ID :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength :rtype: :class:` ` @@ -679,13 +679,13 @@ def get_shelveset(self, shelveset_id, request_data=None): query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters) return self._deserialize('TfvcShelveset', response) def get_shelvesets(self, request_data=None, top=None, skip=None): """GetShelvesets. - [Preview API] Return a collection of shallow shelveset references. + Return a collection of shallow shelveset references. :param :class:` ` request_data: name, owner, and maxCommentLength :param int top: Max number of shelvesets to return :param int skip: Number of shelvesets to skip @@ -713,14 +713,14 @@ def get_shelvesets(self, request_data=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[TfvcShelvesetRef]', response) def get_shelveset_work_items(self, shelveset_id): """GetShelvesetWorkItems. - [Preview API] Get work items associated with a shelveset. + Get work items associated with a shelveset. :param str shelveset_id: Shelveset's unique ID :rtype: [AssociatedWorkItem] """ @@ -729,7 +729,7 @@ def get_shelveset_work_items(self, shelveset_id): query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') response = self._send(http_method='GET', location_id='a7a0c1c1-373e-425a-b031-a519474d743d', - version='4.1-preview.1', + version='4.1', query_parameters=query_parameters, returns_collection=True) return self._deserialize('[AssociatedWorkItem]', response) diff --git a/vsts/vsts/work/v4_1/models/backlog_level_work_items.py b/vsts/vsts/work/v4_1/models/backlog_level_work_items.py new file mode 100644 index 00000000..4a9681e9 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/backlog_level_work_items.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BacklogLevelWorkItems(Model): + """BacklogLevelWorkItems. + + :param work_items: A list of work items within a backlog level + :type work_items: list of :class:`WorkItemLink ` + """ + + _attribute_map = { + 'work_items': {'key': 'workItems', 'type': '[WorkItemLink]'} + } + + def __init__(self, work_items=None): + super(BacklogLevelWorkItems, self).__init__() + self.work_items = work_items diff --git a/vsts/vsts/work/v4_1/models/graph_subject_base.py b/vsts/vsts/work/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/work/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/work/v4_1/models/iteration_work_items.py b/vsts/vsts/work/v4_1/models/iteration_work_items.py new file mode 100644 index 00000000..7fee83de --- /dev/null +++ b/vsts/vsts/work/v4_1/models/iteration_work_items.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase + + +class IterationWorkItems(TeamSettingsDataContractBase): + """IterationWorkItems. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param work_item_relations: Work item relations + :type work_item_relations: list of :class:`WorkItemLink ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'} + } + + def __init__(self, _links=None, url=None, work_item_relations=None): + super(IterationWorkItems, self).__init__(_links=_links, url=url) + self.work_item_relations = work_item_relations diff --git a/vsts/vsts/work/v4_1/models/work_item_link.py b/vsts/vsts/work/v4_1/models/work_item_link.py new file mode 100644 index 00000000..1ad7bd5b --- /dev/null +++ b/vsts/vsts/work/v4_1/models/work_item_link.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemLink(Model): + """WorkItemLink. + + :param rel: The type of link. + :type rel: str + :param source: The source work item. + :type source: :class:`WorkItemReference ` + :param target: The target work item. + :type target: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'rel': {'key': 'rel', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'WorkItemReference'}, + 'target': {'key': 'target', 'type': 'WorkItemReference'} + } + + def __init__(self, rel=None, source=None, target=None): + super(WorkItemLink, self).__init__() + self.rel = rel + self.source = source + self.target = target diff --git a/vsts/vsts/work/v4_1/models/work_item_reference.py b/vsts/vsts/work/v4_1/models/work_item_reference.py new file mode 100644 index 00000000..748e2243 --- /dev/null +++ b/vsts/vsts/work/v4_1/models/work_item_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: Work item ID. + :type id: int + :param url: REST API URL of the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py index 1b560078..eb912647 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/vsts/vsts/work/v4_1/work_client.py @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def get_backlog_configurations(self, team_context): """GetBacklogConfigurations. - [Preview API] Gets backlog configuration for a team + Gets backlog configuration for a team :param :class:` ` team_context: The team context for the operation :rtype: :class:` ` """ @@ -50,7 +50,7 @@ def get_backlog_configurations(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='7799f497-3cb5-4f16-ad4f-5cd06012db64', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('BacklogConfiguration', response) @@ -150,7 +150,7 @@ def get_backlogs(self, team_context): def get_column_suggested_values(self, project=None): """GetColumnSuggestedValues. - [Preview API] Get available board columns in a project + Get available board columns in a project :param str project: Project ID or project name :rtype: [BoardSuggestedValue] """ @@ -159,7 +159,7 @@ def get_column_suggested_values(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BoardSuggestedValue]', response) @@ -205,7 +205,7 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat def get_row_suggested_values(self, project=None): """GetRowSuggestedValues. - [Preview API] Get available board rows in a project + Get available board rows in a project :param str project: Project ID or project name :rtype: [BoardSuggestedValue] """ @@ -214,14 +214,14 @@ def get_row_suggested_values(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BoardSuggestedValue]', response) def get_board(self, team_context, id): """GetBoard. - [Preview API] Get board + Get board :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id :rtype: :class:` ` @@ -247,13 +247,13 @@ def get_board(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('Board', response) def get_boards(self, team_context): """GetBoards. - [Preview API] Get boards + Get boards :param :class:` ` team_context: The team context for the operation :rtype: [BoardReference] """ @@ -276,14 +276,14 @@ def get_boards(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BoardReference]', response) def set_board_options(self, options, team_context, id): """SetBoardOptions. - [Preview API] Update board options + Update board options :param {str} options: options to updated :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either category plural name (Eg:"Stories") or guid @@ -311,7 +311,7 @@ def set_board_options(self, options, team_context, id): content = self._serialize.body(options, '{str}') response = self._send(http_method='PUT', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -386,7 +386,7 @@ def update_board_user_settings(self, board_user_settings, team_context, board): def get_capacities(self, team_context, iteration_id): """GetCapacities. - [Preview API] Get a team's capacity + Get a team's capacity :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :rtype: [TeamMemberCapacity] @@ -412,14 +412,14 @@ def get_capacities(self, team_context, iteration_id): route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[TeamMemberCapacity]', response) def get_capacity(self, team_context, iteration_id, team_member_id): """GetCapacity. - [Preview API] Get a team member's capacity + Get a team member's capacity :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :param str team_member_id: ID of the team member @@ -448,13 +448,13 @@ def get_capacity(self, team_context, iteration_id, team_member_id): route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('TeamMemberCapacity', response) def replace_capacities(self, capacities, team_context, iteration_id): """ReplaceCapacities. - [Preview API] Replace a team's capacity + Replace a team's capacity :param [TeamMemberCapacity] capacities: Team capacity to replace :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration @@ -482,7 +482,7 @@ def replace_capacities(self, capacities, team_context, iteration_id): content = self._serialize.body(capacities, '[TeamMemberCapacity]') response = self._send(http_method='PUT', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -490,7 +490,7 @@ def replace_capacities(self, capacities, team_context, iteration_id): def update_capacity(self, patch, team_context, iteration_id, team_member_id): """UpdateCapacity. - [Preview API] Update a team member's capacity + Update a team member's capacity :param :class:` ` patch: Updated capacity :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration @@ -521,14 +521,14 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): content = self._serialize.body(patch, 'CapacityPatch') response = self._send(http_method='PATCH', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('TeamMemberCapacity', response) def get_board_card_rule_settings(self, team_context, board): """GetBoardCardRuleSettings. - [Preview API] Get board card Rule settings for the board id or board by name + Get board card Rule settings for the board id or board by name :param :class:` ` team_context: The team context for the operation :param str board: :rtype: :class:` ` @@ -554,13 +554,13 @@ def get_board_card_rule_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('BoardCardRuleSettings', response) def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): """UpdateBoardCardRuleSettings. - [Preview API] Update board card Rule settings for the board id or board by name + Update board card Rule settings for the board id or board by name :param :class:` ` board_card_rule_settings: :param :class:` ` team_context: The team context for the operation :param str board: @@ -588,14 +588,14 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context content = self._serialize.body(board_card_rule_settings, 'BoardCardRuleSettings') response = self._send(http_method='PATCH', location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('BoardCardRuleSettings', response) def get_board_card_settings(self, team_context, board): """GetBoardCardSettings. - [Preview API] Get board card settings for the board id or board by name + Get board card settings for the board id or board by name :param :class:` ` team_context: The team context for the operation :param str board: :rtype: :class:` ` @@ -621,13 +621,13 @@ def get_board_card_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('BoardCardSettings', response) def update_board_card_settings(self, board_card_settings_to_save, team_context, board): """UpdateBoardCardSettings. - [Preview API] Update board card settings for the board id or board by name + Update board card settings for the board id or board by name :param :class:` ` board_card_settings_to_save: :param :class:` ` team_context: The team context for the operation :param str board: @@ -655,14 +655,14 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, content = self._serialize.body(board_card_settings_to_save, 'BoardCardSettings') response = self._send(http_method='PUT', location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('BoardCardSettings', response) def get_board_chart(self, team_context, board, name): """GetBoardChart. - [Preview API] Get a board chart + Get a board chart :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name @@ -691,13 +691,13 @@ def get_board_chart(self, team_context, board, name): route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('BoardChart', response) def get_board_charts(self, team_context, board): """GetBoardCharts. - [Preview API] Get board charts + Get board charts :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :rtype: [BoardChartReference] @@ -723,14 +723,14 @@ def get_board_charts(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BoardChartReference]', response) def update_board_chart(self, chart, team_context, board, name): """UpdateBoardChart. - [Preview API] Update a board chart + Update a board chart :param :class:` ` chart: :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id @@ -761,14 +761,14 @@ def update_board_chart(self, chart, team_context, board, name): content = self._serialize.body(chart, 'BoardChart') response = self._send(http_method='PATCH', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('BoardChart', response) def get_board_columns(self, team_context, board): """GetBoardColumns. - [Preview API] Get columns on a board + Get columns on a board :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardColumn] @@ -794,14 +794,14 @@ def get_board_columns(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BoardColumn]', response) def update_board_columns(self, board_columns, team_context, board): """UpdateBoardColumns. - [Preview API] Update columns on a board + Update columns on a board :param [BoardColumn] board_columns: List of board columns to update :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board @@ -829,7 +829,7 @@ def update_board_columns(self, board_columns, team_context, board): content = self._serialize.body(board_columns, '[BoardColumn]') response = self._send(http_method='PUT', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -837,7 +837,7 @@ def update_board_columns(self, board_columns, team_context, board): def get_delivery_timeline_data(self, project, id, revision=None, start_date=None, end_date=None): """GetDeliveryTimelineData. - [Preview API] Get Delivery View Data + Get Delivery View Data :param str project: Project ID or project name :param str id: Identifier for delivery view :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. @@ -859,14 +859,14 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None query_parameters['endDate'] = self._serialize.query('end_date', end_date, 'iso-8601') response = self._send(http_method='GET', location_id='bdd0834e-101f-49f0-a6ae-509f384a12b4', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('DeliveryViewData', response) def delete_team_iteration(self, team_context, id): """DeleteTeamIteration. - [Preview API] Delete a team's iteration by iterationId + Delete a team's iteration by iterationId :param :class:` ` team_context: The team context for the operation :param str id: ID of the iteration """ @@ -891,12 +891,12 @@ def delete_team_iteration(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') self._send(http_method='DELETE', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_team_iteration(self, team_context, id): """GetTeamIteration. - [Preview API] Get team's iteration by iterationId + Get team's iteration by iterationId :param :class:` ` team_context: The team context for the operation :param str id: ID of the iteration :rtype: :class:` ` @@ -922,13 +922,13 @@ def get_team_iteration(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('TeamSettingsIteration', response) def get_team_iterations(self, team_context, timeframe=None): """GetTeamIterations. - [Preview API] Get a team's iterations using timeframe filter + Get a team's iterations using timeframe filter :param :class:` ` team_context: The team context for the operation :param str timeframe: A filter for which iterations are returned based on relative time :rtype: [TeamSettingsIteration] @@ -955,7 +955,7 @@ def get_team_iterations(self, team_context, timeframe=None): query_parameters['$timeframe'] = self._serialize.query('timeframe', timeframe, 'str') response = self._send(http_method='GET', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -963,7 +963,7 @@ def get_team_iterations(self, team_context, timeframe=None): def post_team_iteration(self, iteration, team_context): """PostTeamIteration. - [Preview API] Add an iteration to the team + Add an iteration to the team :param :class:` ` iteration: Iteration to add :param :class:` ` team_context: The team context for the operation :rtype: :class:` ` @@ -988,14 +988,14 @@ def post_team_iteration(self, iteration, team_context): content = self._serialize.body(iteration, 'TeamSettingsIteration') response = self._send(http_method='POST', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('TeamSettingsIteration', response) def create_plan(self, posted_plan, project): """CreatePlan. - [Preview API] Add a new plan for the team + Add a new plan for the team :param :class:` ` posted_plan: Plan definition :param str project: Project ID or project name :rtype: :class:` ` @@ -1006,14 +1006,14 @@ def create_plan(self, posted_plan, project): content = self._serialize.body(posted_plan, 'CreatePlan') response = self._send(http_method='POST', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('Plan', response) def delete_plan(self, project, id): """DeletePlan. - [Preview API] Delete the specified plan + Delete the specified plan :param str project: Project ID or project name :param str id: Identifier of the plan """ @@ -1024,12 +1024,12 @@ def delete_plan(self, project, id): route_values['id'] = self._serialize.url('id', id, 'str') self._send(http_method='DELETE', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1-preview.1', + version='4.1', route_values=route_values) def get_plan(self, project, id): """GetPlan. - [Preview API] Get the information for the specified plan + Get the information for the specified plan :param str project: Project ID or project name :param str id: Identifier of the plan :rtype: :class:` ` @@ -1041,13 +1041,13 @@ def get_plan(self, project, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('Plan', response) def get_plans(self, project): """GetPlans. - [Preview API] Get the information for all the plans configured for the given team + Get the information for all the plans configured for the given team :param str project: Project ID or project name :rtype: [Plan] """ @@ -1056,14 +1056,14 @@ def get_plans(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[Plan]', response) def update_plan(self, updated_plan, project, id): """UpdatePlan. - [Preview API] Update the information for the specified plan + Update the information for the specified plan :param :class:` ` updated_plan: Plan definition to be updated :param str project: Project ID or project name :param str id: Identifier of the plan @@ -1077,7 +1077,7 @@ def update_plan(self, updated_plan, project, id): content = self._serialize.body(updated_plan, 'UpdatePlan') response = self._send(http_method='PUT', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('Plan', response) @@ -1099,7 +1099,7 @@ def get_process_configuration(self, project): def get_board_rows(self, team_context, board): """GetBoardRows. - [Preview API] Get rows on a board + Get rows on a board :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardRow] @@ -1125,14 +1125,14 @@ def get_board_rows(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', - version='4.1-preview.1', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[BoardRow]', response) def update_board_rows(self, board_rows, team_context, board): """UpdateBoardRows. - [Preview API] Update rows on a board + Update rows on a board :param [BoardRow] board_rows: List of board rows to update :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board @@ -1160,7 +1160,7 @@ def update_board_rows(self, board_rows, team_context, board): content = self._serialize.body(board_rows, '[BoardRow]') response = self._send(http_method='PUT', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -1168,7 +1168,7 @@ def update_board_rows(self, board_rows, team_context, board): def get_team_days_off(self, team_context, iteration_id): """GetTeamDaysOff. - [Preview API] Get team's days off for an iteration + Get team's days off for an iteration :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :rtype: :class:` ` @@ -1194,13 +1194,13 @@ def get_team_days_off(self, team_context, iteration_id): route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') response = self._send(http_method='GET', location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('TeamSettingsDaysOff', response) def update_team_days_off(self, days_off_patch, team_context, iteration_id): """UpdateTeamDaysOff. - [Preview API] Set a team's days off for an iteration + Set a team's days off for an iteration :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration @@ -1228,14 +1228,14 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): content = self._serialize.body(days_off_patch, 'TeamSettingsDaysOffPatch') response = self._send(http_method='PATCH', location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('TeamSettingsDaysOff', response) def get_team_field_values(self, team_context): """GetTeamFieldValues. - [Preview API] Get a collection of team field values + Get a collection of team field values :param :class:` ` team_context: The team context for the operation :rtype: :class:` ` """ @@ -1258,13 +1258,13 @@ def get_team_field_values(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('TeamFieldValues', response) def update_team_field_values(self, patch, team_context): """UpdateTeamFieldValues. - [Preview API] Update team field values + Update team field values :param :class:` ` patch: :param :class:` ` team_context: The team context for the operation :rtype: :class:` ` @@ -1289,14 +1289,14 @@ def update_team_field_values(self, patch, team_context): content = self._serialize.body(patch, 'TeamFieldValuesPatch') response = self._send(http_method='PATCH', location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('TeamFieldValues', response) def get_team_settings(self, team_context): """GetTeamSettings. - [Preview API] Get a team's settings + Get a team's settings :param :class:` ` team_context: The team context for the operation :rtype: :class:` ` """ @@ -1319,13 +1319,13 @@ def get_team_settings(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', - version='4.1-preview.1', + version='4.1', route_values=route_values) return self._deserialize('TeamSetting', response) def update_team_settings(self, team_settings_patch, team_context): """UpdateTeamSettings. - [Preview API] Update a team's settings + Update a team's settings :param :class:` ` team_settings_patch: TeamSettings changes :param :class:` ` team_context: The team context for the operation :rtype: :class:` ` @@ -1350,7 +1350,7 @@ def update_team_settings(self, team_settings_patch, team_context): content = self._serialize.body(team_settings_patch, 'TeamSettingsPatch') response = self._send(http_method='PATCH', location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) return self._deserialize('TeamSetting', response) diff --git a/vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py b/vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py new file mode 100644 index 00000000..64f529b1 --- /dev/null +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemDeleteShallowReference(Model): + """WorkItemDeleteShallowReference. + + :param id: Work item ID. + :type id: int + :param url: REST API URL of the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemDeleteShallowReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py new file mode 100644 index 00000000..62f83ad4 --- /dev/null +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py @@ -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 .work_item_field_reference import WorkItemFieldReference + + +class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): + """WorkItemTypeFieldInstanceBase. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + :param always_required: Indicates whether field value is always required. + :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. + :type help_text: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None): + super(WorkItemTypeFieldInstanceBase, self).__init__(name=name, reference_name=reference_name, url=url) + self.always_required = always_required + self.dependent_fields = dependent_fields + self.help_text = help_text diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py new file mode 100644 index 00000000..6606255d --- /dev/null +++ b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------------------------- +# 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 .work_item_type_field_instance_base import WorkItemTypeFieldInstanceBase + + +class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): + """WorkItemTypeFieldWithReferences. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + :param always_required: Indicates whether field value is always required. + :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. + :type help_text: str + :param allowed_values: The list of field allowed values. + :type allowed_values: list of object + :param default_value: Represents the default value of the field. + :type default_value: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): + super(WorkItemTypeFieldWithReferences, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) + self.allowed_values = allowed_values + self.default_value = default_value diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index 05e720d1..b4c132e0 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -56,7 +56,7 @@ def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): def create_attachment(self, upload_stream, project=None, file_name=None, upload_type=None, area_path=None): """CreateAttachment. - [Preview API] Uploads an attachment. + Uploads an attachment. :param object upload_stream: Stream to upload :param str project: Project ID or project name :param str file_name: The name of the file @@ -77,7 +77,7 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ content = self._serialize.body(upload_stream, 'object') response = self._send(http_method='POST', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -86,7 +86,7 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ def get_attachment_content(self, id, project=None, file_name=None, download=None): """GetAttachmentContent. - [Preview API] Downloads an attachment. + Downloads an attachment. :param str id: Attachment ID :param str project: Project ID or project name :param str file_name: Name of the file @@ -105,14 +105,14 @@ def get_attachment_content(self, id, project=None, file_name=None, download=None query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_attachment_zip(self, id, project=None, file_name=None, download=None): """GetAttachmentZip. - [Preview API] Downloads an attachment. + Downloads an attachment. :param str id: Attachment ID :param str project: Project ID or project name :param str file_name: Name of the file @@ -131,14 +131,14 @@ def get_attachment_zip(self, id, project=None, file_name=None, download=None): query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) def get_classification_nodes(self, project, ids, depth=None, error_policy=None): """GetClassificationNodes. - [Preview API] Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project. + Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project. :param str project: Project ID or project name :param [int] ids: Comma seperated integer classification nodes ids. It's not required, if you want root nodes. :param int depth: Depth of children to fetch. @@ -158,7 +158,7 @@ def get_classification_nodes(self, project, ids, depth=None, error_policy=None): query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -166,7 +166,7 @@ def get_classification_nodes(self, project, ids, depth=None, error_policy=None): def get_root_nodes(self, project, depth=None): """GetRootNodes. - [Preview API] Gets root classification nodes under the project. + Gets root classification nodes under the project. :param str project: Project ID or project name :param int depth: Depth of children to fetch. :rtype: [WorkItemClassificationNode] @@ -179,7 +179,7 @@ def get_root_nodes(self, project, depth=None): query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') response = self._send(http_method='GET', location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -187,7 +187,7 @@ def get_root_nodes(self, project, depth=None): def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. - [Preview API] Create new or update an existing classification node. + Create new or update an existing classification node. :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. @@ -204,14 +204,14 @@ def create_or_update_classification_node(self, posted_node, project, structure_g content = self._serialize.body(posted_node, 'WorkItemClassificationNode') response = self._send(http_method='POST', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('WorkItemClassificationNode', response) def delete_classification_node(self, project, structure_group, path=None, reclassify_id=None): """DeleteClassificationNode. - [Preview API] Delete an existing classification node. + Delete an existing classification node. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. @@ -229,13 +229,13 @@ def delete_classification_node(self, project, structure_group, path=None, reclas query_parameters['$reclassifyId'] = self._serialize.query('reclassify_id', reclassify_id, 'int') self._send(http_method='DELETE', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) def get_classification_node(self, project, structure_group, path=None, depth=None): """GetClassificationNode. - [Preview API] Gets the classification node for a given node path. + Gets the classification node for a given node path. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. @@ -254,14 +254,14 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') response = self._send(http_method='GET', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemClassificationNode', response) def update_classification_node(self, posted_node, project, structure_group, path=None): """UpdateClassificationNode. - [Preview API] Update an existing classification node. + Update an existing classification node. :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. @@ -278,7 +278,7 @@ def update_classification_node(self, posted_node, project, structure_group, path content = self._serialize.body(posted_node, 'WorkItemClassificationNode') response = self._send(http_method='PATCH', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('WorkItemClassificationNode', response) @@ -335,7 +335,7 @@ def get_comments(self, id, project=None, from_revision=None, top=None, order=Non def delete_field(self, field_name_or_ref_name, project=None): """DeleteField. - [Preview API] Deletes the field. + Deletes the field. :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name """ @@ -346,12 +346,12 @@ def delete_field(self, field_name_or_ref_name, project=None): route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') self._send(http_method='DELETE', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1-preview.2', + version='4.1', route_values=route_values) def get_field(self, field_name_or_ref_name, project=None): """GetField. - [Preview API] Gets information on a specific field. + Gets information on a specific field. :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name :rtype: :class:` ` @@ -363,13 +363,13 @@ def get_field(self, field_name_or_ref_name, project=None): route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('WorkItemField', response) def get_fields(self, project=None, expand=None): """GetFields. - [Preview API] Returns information for all fields. + Returns information for all fields. :param str project: Project ID or project name :param str expand: Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. :rtype: [WorkItemField] @@ -382,7 +382,7 @@ def get_fields(self, project=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -390,7 +390,7 @@ def get_fields(self, project=None, expand=None): def update_field(self, work_item_field, field_name_or_ref_name, project=None): """UpdateField. - [Preview API] Updates the field. + Updates the field. :param :class:` ` work_item_field: New field definition :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name @@ -403,13 +403,13 @@ def update_field(self, work_item_field, field_name_or_ref_name, project=None): content = self._serialize.body(work_item_field, 'WorkItemField') self._send(http_method='PATCH', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) def create_query(self, posted_query, project, query): """CreateQuery. - [Preview API] Creates a query, or moves a query. + Creates a query, or moves a query. :param :class:` ` posted_query: The query to create. :param str project: Project ID or project name :param str query: The parent path for the query to create. @@ -423,14 +423,14 @@ def create_query(self, posted_query, project, query): content = self._serialize.body(posted_query, 'QueryHierarchyItem') response = self._send(http_method='POST', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('QueryHierarchyItem', response) def delete_query(self, project, query): """DeleteQuery. - [Preview API] Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder. + Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder. :param str project: Project ID or project name :param str query: ID or path of the query or folder to delete. """ @@ -441,12 +441,12 @@ def delete_query(self, project, query): route_values['query'] = self._serialize.url('query', query, 'str') self._send(http_method='DELETE', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1-preview.2', + version='4.1', route_values=route_values) def get_queries(self, project, expand=None, depth=None, include_deleted=None): """GetQueries. - [Preview API] Gets the root queries and their children + Gets the root queries and their children :param str project: Project ID or project name :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. :param int depth: In the folder of queries, return child queries and folders to this depth. @@ -465,7 +465,7 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -473,7 +473,7 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): def get_query(self, project, query, expand=None, depth=None, include_deleted=None): """GetQuery. - [Preview API] Retrieves an individual query and its children + Retrieves an individual query and its children :param str project: Project ID or project name :param str query: :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. @@ -495,14 +495,14 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QueryHierarchyItem', response) def search_queries(self, project, filter, top=None, expand=None, include_deleted=None): """SearchQueries. - [Preview API] Searches all queries the user has access to in the current project + Searches all queries the user has access to in the current project :param str project: Project ID or project name :param str filter: The text to filter the queries with. :param int top: The number of queries to return (Default is 50 and maximum is 200). @@ -524,14 +524,14 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QueryHierarchyItemsResult', response) def update_query(self, query_update, project, query, undelete_descendants=None): """UpdateQuery. - [Preview API] Update a query or a folder. This allows you to update, rename and move queries and folders. + Update a query or a folder. This allows you to update, rename and move queries and folders. :param :class:` ` query_update: The query to update. :param str project: Project ID or project name :param str query: The path for the query to update. @@ -549,7 +549,7 @@ def update_query(self, query_update, project, query, undelete_descendants=None): content = self._serialize.body(query_update, 'QueryHierarchyItem') response = self._send(http_method='PATCH', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -557,7 +557,7 @@ def update_query(self, query_update, project, query, undelete_descendants=None): def destroy_work_item(self, id, project=None): """DestroyWorkItem. - [Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. + Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. :param int id: ID of the work item to be destroyed permanently :param str project: Project ID or project name """ @@ -568,12 +568,12 @@ def destroy_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') self._send(http_method='DELETE', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.2', + version='4.1', route_values=route_values) def get_deleted_work_item(self, id, project=None): """GetDeletedWorkItem. - [Preview API] Gets a deleted work item from Recycle Bin. + Gets a deleted work item from Recycle Bin. :param int id: ID of the work item to be returned :param str project: Project ID or project name :rtype: :class:` ` @@ -585,13 +585,13 @@ def get_deleted_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('WorkItemDelete', response) def get_deleted_work_items(self, ids, project=None): """GetDeletedWorkItems. - [Preview API] Gets the work items from the recycle bin, whose IDs have been specified in the parameters + Gets the work items from the recycle bin, whose IDs have been specified in the parameters :param [int] ids: Comma separated list of IDs of the deleted work items to be returned :param str project: Project ID or project name :rtype: [WorkItemDeleteReference] @@ -605,7 +605,7 @@ def get_deleted_work_items(self, ids, project=None): query_parameters['ids'] = self._serialize.query('ids', ids, 'str') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -613,7 +613,7 @@ def get_deleted_work_items(self, ids, project=None): def get_deleted_work_item_shallow_references(self, project=None): """GetDeletedWorkItemShallowReferences. - [Preview API] Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. + Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. :param str project: Project ID or project name :rtype: [WorkItemDeleteShallowReference] """ @@ -622,14 +622,14 @@ def get_deleted_work_item_shallow_references(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[WorkItemDeleteShallowReference]', response) def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. - [Preview API] Restores the deleted work item from Recycle Bin. + Restores the deleted work item from Recycle Bin. :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false :param int id: ID of the work item to be restored :param str project: Project ID or project name @@ -643,14 +643,14 @@ def restore_work_item(self, payload, id, project=None): content = self._serialize.body(payload, 'WorkItemDeleteUpdate') response = self._send(http_method='PATCH', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1-preview.2', + version='4.1', route_values=route_values, content=content) return self._deserialize('WorkItemDelete', response) def get_revision(self, id, revision_number, expand=None): """GetRevision. - [Preview API] Returns a fully hydrated work item for the requested revision + Returns a fully hydrated work item for the requested revision :param int id: :param int revision_number: :param str expand: @@ -666,14 +666,14 @@ def get_revision(self, id, revision_number, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) def get_revisions(self, id, top=None, skip=None, expand=None): """GetRevisions. - [Preview API] Returns the list of fully hydrated work item revisions, paged. + Returns the list of fully hydrated work item revisions, paged. :param int id: :param int top: :param int skip: @@ -692,7 +692,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -864,7 +864,7 @@ def replace_template(self, template_content, team_context, template_id): def get_update(self, id, update_number): """GetUpdate. - [Preview API] Returns a single update for a work item + Returns a single update for a work item :param int id: :param int update_number: :rtype: :class:` ` @@ -876,13 +876,13 @@ def get_update(self, id, update_number): route_values['updateNumber'] = self._serialize.url('update_number', update_number, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.1-preview.3', + version='4.1', route_values=route_values) return self._deserialize('WorkItemUpdate', response) def get_updates(self, id, top=None, skip=None): """GetUpdates. - [Preview API] Returns a the deltas between work item revisions + Returns a the deltas between work item revisions :param int id: :param int top: :param int skip: @@ -898,7 +898,7 @@ def get_updates(self, id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -906,7 +906,7 @@ def get_updates(self, id, top=None, skip=None): def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. - [Preview API] Gets the results of the query given its WIQL. + Gets the results of the query given its WIQL. :param :class:` ` wiql: The query containing the WIQL. :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. @@ -938,7 +938,7 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): content = self._serialize.body(wiql, 'Wiql') response = self._send(http_method='POST', location_id='1a9c53f7-f243-4447-b110-35ef023636e4', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -946,7 +946,7 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): def get_query_result_count(self, id, team_context=None, time_precision=None): """GetQueryResultCount. - [Preview API] Gets the results of the query given the query ID. + Gets the results of the query given the query ID. :param str id: The query ID. :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. @@ -976,14 +976,14 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') response = self._send(http_method='HEAD', location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('int', response) def query_by_id(self, id, team_context=None, time_precision=None): """QueryById. - [Preview API] Gets the results of the query given the query ID. + Gets the results of the query given the query ID. :param str id: The query ID. :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. @@ -1013,7 +1013,7 @@ def query_by_id(self, id, team_context=None, time_precision=None): query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') response = self._send(http_method='GET', location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemQueryResult', response) @@ -1077,7 +1077,7 @@ def get_work_item_icon_svg(self, icon, color=None, v=None): def get_reporting_links_by_link_type(self, project=None, link_types=None, types=None, continuation_token=None, start_date_time=None): """GetReportingLinksByLinkType. - [Preview API] Get a batch of work item links + Get a batch of work item links :param str project: Project ID or project name :param [str] link_types: A list of types to filter the results to specific link types. Omit this parameter to get work item links of all link types. :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. @@ -1101,14 +1101,14 @@ def get_reporting_links_by_link_type(self, project=None, link_types=None, types= query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') response = self._send(http_method='GET', location_id='b5b5b6d0-0308-40a1-b3f4-b9bb3c66878f', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReportingWorkItemLinksBatch', response) def get_relation_type(self, relation): """GetRelationType. - [Preview API] Gets the work item relation type definition. + Gets the work item relation type definition. :param str relation: The relation name :rtype: :class:` ` """ @@ -1117,24 +1117,24 @@ def get_relation_type(self, relation): route_values['relation'] = self._serialize.url('relation', relation, 'str') response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('WorkItemRelationType', response) def get_relation_types(self): """GetRelationTypes. - [Preview API] Gets the work item relation types. + Gets the work item relation types. :rtype: [WorkItemRelationType] """ response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.1-preview.2', + version='4.1', returns_collection=True) return self._deserialize('[WorkItemRelationType]', response) def read_reporting_revisions_get(self, project=None, fields=None, types=None, continuation_token=None, start_date_time=None, include_identity_ref=None, include_deleted=None, include_tag_ref=None, include_latest_only=None, expand=None, include_discussion_changes_only=None, max_page_size=None): """ReadReportingRevisionsGet. - [Preview API] Get a batch of work item revisions with the option of including deleted items + Get a batch of work item revisions with the option of including deleted items :param str project: Project ID or project name :param [str] fields: A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. @@ -1179,14 +1179,14 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co query_parameters['$maxPageSize'] = self._serialize.query('max_page_size', max_page_size, 'int') response = self._send(http_method='GET', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReportingWorkItemRevisionsBatch', response) def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): """ReadReportingRevisionsPost. - [Preview API] Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. + Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. @@ -1207,7 +1207,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token content = self._serialize.body(filter, 'ReportingWorkItemRevisionsFilter') response = self._send(http_method='POST', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1215,7 +1215,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): """CreateWorkItem. - [Preview API] Creates a single work item. + Creates a single work item. :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item :param str project: Project ID or project name :param str type: The work item type of the work item to create @@ -1239,7 +1239,7 @@ def create_work_item(self, document, project, type, validate_only=None, bypass_r content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='POST', location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -1248,7 +1248,7 @@ def create_work_item(self, document, project, type, validate_only=None, bypass_r def get_work_item_template(self, project, type, fields=None, as_of=None, expand=None): """GetWorkItemTemplate. - [Preview API] Returns a single work item from a template. + Returns a single work item from a template. :param str project: Project ID or project name :param str type: The work item type name :param str fields: Comma-separated list of requested fields @@ -1270,14 +1270,14 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) def delete_work_item(self, id, project=None, destroy=None): """DeleteWorkItem. - [Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. + Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. :param int id: ID of the work item to be deleted :param str project: Project ID or project name :param bool destroy: Optional parameter, if set to true, the work item is deleted permanently @@ -1293,14 +1293,14 @@ def delete_work_item(self, id, project=None, destroy=None): query_parameters['destroy'] = self._serialize.query('destroy', destroy, 'bool') response = self._send(http_method='DELETE', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemDelete', response) def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): """GetWorkItem. - [Preview API] Returns a single work item. + Returns a single work item. :param int id: The work item id :param str project: Project ID or project name :param [str] fields: Comma-separated list of requested fields @@ -1323,14 +1323,14 @@ def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None, error_policy=None): """GetWorkItems. - [Preview API] Returns a list of work items. + Returns a list of work items. :param [int] ids: The comma-separated list of requested work item ids :param str project: Project ID or project name :param [str] fields: Comma-separated list of requested fields @@ -1357,7 +1357,7 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1365,7 +1365,7 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. - [Preview API] Updates a single work item. + Updates a single work item. :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update :param str project: Project ID or project name @@ -1389,7 +1389,7 @@ def update_work_item(self, document, id, project=None, validate_only=None, bypas content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -1418,7 +1418,7 @@ def get_work_item_next_states_on_checkin_action(self, ids, action=None): def get_work_item_type_categories(self, project): """GetWorkItemTypeCategories. - [Preview API] Get all work item type categories. + Get all work item type categories. :param str project: Project ID or project name :rtype: [WorkItemTypeCategory] """ @@ -1427,14 +1427,14 @@ def get_work_item_type_categories(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[WorkItemTypeCategory]', response) def get_work_item_type_category(self, project, category): """GetWorkItemTypeCategory. - [Preview API] Get specific work item type category by name. + Get specific work item type category by name. :param str project: Project ID or project name :param str category: The category name :rtype: :class:` ` @@ -1446,13 +1446,13 @@ def get_work_item_type_category(self, project, category): route_values['category'] = self._serialize.url('category', category, 'str') response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('WorkItemTypeCategory', response) def get_work_item_type(self, project, type): """GetWorkItemType. - [Preview API] Returns a work item type definition. + Returns a work item type definition. :param str project: Project ID or project name :param str type: Work item type name :rtype: :class:` ` @@ -1464,13 +1464,13 @@ def get_work_item_type(self, project, type): route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.1-preview.2', + version='4.1', route_values=route_values) return self._deserialize('WorkItemType', response) def get_work_item_types(self, project): """GetWorkItemTypes. - [Preview API] Returns the list of work item types + Returns the list of work item types :param str project: Project ID or project name :rtype: [WorkItemType] """ @@ -1479,14 +1479,14 @@ def get_work_item_types(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.1-preview.2', + version='4.1', route_values=route_values, returns_collection=True) return self._deserialize('[WorkItemType]', response) def get_work_item_type_fields_with_references(self, project, type, expand=None): """GetWorkItemTypeFieldsWithReferences. - [Preview API] Get a list of fields for a work item type with detailed references. + Get a list of fields for a work item type with detailed references. :param str project: Project ID or project name :param str type: Work item type. :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. @@ -1502,7 +1502,7 @@ def get_work_item_type_fields_with_references(self, project, type, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -1510,7 +1510,7 @@ def get_work_item_type_fields_with_references(self, project, type, expand=None): def get_work_item_type_field_with_references(self, project, type, field, expand=None): """GetWorkItemTypeFieldWithReferences. - [Preview API] Get a field for a work item type with detailed references. + Get a field for a work item type with detailed references. :param str project: Project ID or project name :param str type: Work item type. :param str field: @@ -1529,7 +1529,7 @@ def get_work_item_type_field_with_references(self, project, type, field, expand= query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', - version='4.1-preview.3', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemTypeFieldWithReferences', response) From c13ad631c6b44309aaec3ee192a9f24f04c07c4a Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 20 Apr 2018 13:36:40 -0400 Subject: [PATCH 027/191] fix issues where data is dropped on deserialization due to use of abstract classes. remove models that inherited from dict, since they do not get serialized correctly. --- vsts/vsts/build/v4_0/models/__init__.py | 4 --- .../build/v4_0/models/build_definition.py | 8 ++--- .../build/v4_0/models/build_definition3_2.py | 4 +-- vsts/vsts/build/v4_0/models/build_process.py | 29 ------------------- vsts/vsts/build/v4_0/models/build_trigger.py | 25 ---------------- vsts/vsts/build/v4_1/models/__init__.py | 4 --- .../build/v4_1/models/build_definition.py | 8 ++--- .../build/v4_1/models/build_definition3_2.py | 4 +-- vsts/vsts/build/v4_1/models/build_process.py | 25 ---------------- vsts/vsts/build/v4_1/models/build_trigger.py | 25 ---------------- .../v4_0/models/extension_file.py | 28 ++---------------- .../v4_0/models/extension_file.py | 28 ++---------------- .../v4_0/models/installation_target.py | 18 +----------- .../gallery/v4_0/models/extension_file.py | 28 ++---------------- .../v4_0/models/installation_target.py | 18 +----------- vsts/vsts/git/v4_0/models/__init__.py | 2 -- .../v4_0/models/change_count_dictionary.py | 20 ------------- vsts/vsts/git/v4_0/models/git_commit.py | 4 +-- .../git/v4_0/models/git_commit_changes.py | 4 +-- vsts/vsts/git/v4_0/models/git_commit_ref.py | 4 +-- vsts/vsts/git/v4_1/models/__init__.py | 2 -- .../v4_1/models/change_count_dictionary.py | 20 ------------- vsts/vsts/git/v4_1/models/git_commit.py | 4 +-- .../git/v4_1/models/git_commit_changes.py | 4 +-- vsts/vsts/git/v4_1/models/git_commit_ref.py | 4 +-- vsts/vsts/work/v4_0/models/__init__.py | 4 --- vsts/vsts/work/v4_0/models/attribute.py | 20 ------------- vsts/vsts/work/v4_0/models/field_setting.py | 20 ------------- vsts/vsts/work/v4_0/models/rule.py | 4 +-- vsts/vsts/work/v4_1/models/__init__.py | 4 --- vsts/vsts/work/v4_1/models/attribute.py | 20 ------------- vsts/vsts/work/v4_1/models/field_setting.py | 20 ------------- vsts/vsts/work/v4_1/models/rule.py | 4 +-- 33 files changed, 36 insertions(+), 384 deletions(-) delete mode 100644 vsts/vsts/build/v4_0/models/build_process.py delete mode 100644 vsts/vsts/build/v4_0/models/build_trigger.py delete mode 100644 vsts/vsts/build/v4_1/models/build_process.py delete mode 100644 vsts/vsts/build/v4_1/models/build_trigger.py delete mode 100644 vsts/vsts/git/v4_0/models/change_count_dictionary.py delete mode 100644 vsts/vsts/git/v4_1/models/change_count_dictionary.py delete mode 100644 vsts/vsts/work/v4_0/models/attribute.py delete mode 100644 vsts/vsts/work/v4_0/models/field_setting.py delete mode 100644 vsts/vsts/work/v4_1/models/attribute.py delete mode 100644 vsts/vsts/work/v4_1/models/field_setting.py diff --git a/vsts/vsts/build/v4_0/models/__init__.py b/vsts/vsts/build/v4_0/models/__init__.py index 749323cf..a8f5186e 100644 --- a/vsts/vsts/build/v4_0/models/__init__.py +++ b/vsts/vsts/build/v4_0/models/__init__.py @@ -28,13 +28,11 @@ from .build_option_definition_reference import BuildOptionDefinitionReference from .build_option_group_definition import BuildOptionGroupDefinition from .build_option_input_definition import BuildOptionInputDefinition -from .build_process import BuildProcess from .build_report_metadata import BuildReportMetadata from .build_repository import BuildRepository from .build_request_validation_result import BuildRequestValidationResult from .build_resource_usage import BuildResourceUsage from .build_settings import BuildSettings -from .build_trigger import BuildTrigger from .change import Change from .data_source_binding_base import DataSourceBindingBase from .definition_reference import DefinitionReference @@ -86,13 +84,11 @@ 'BuildOptionDefinitionReference', 'BuildOptionGroupDefinition', 'BuildOptionInputDefinition', - 'BuildProcess', 'BuildReportMetadata', 'BuildRepository', 'BuildRequestValidationResult', 'BuildResourceUsage', 'BuildSettings', - 'BuildTrigger', 'Change', 'DataSourceBindingBase', 'DefinitionReference', diff --git a/vsts/vsts/build/v4_0/models/build_definition.py b/vsts/vsts/build/v4_0/models/build_definition.py index 423f0ef5..0014c005 100644 --- a/vsts/vsts/build/v4_0/models/build_definition.py +++ b/vsts/vsts/build/v4_0/models/build_definition.py @@ -69,7 +69,7 @@ class BuildDefinition(BuildDefinitionReference): :param options: :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`BuildProcess ` + :type process: :class:`object ` :param process_parameters: Process Parameters :type process_parameters: :class:`ProcessParameters ` :param properties: @@ -81,7 +81,7 @@ class BuildDefinition(BuildDefinitionReference): :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`BuildTrigger ` + :type triggers: list of :class:`object ` :param variable_groups: :type variable_groups: list of :class:`VariableGroup ` :param variables: @@ -117,13 +117,13 @@ class BuildDefinition(BuildDefinitionReference): 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, 'options': {'key': 'options', 'type': '[BuildOption]'}, - 'process': {'key': 'process', 'type': 'BuildProcess'}, + 'process': {'key': 'process', 'type': 'object'}, 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, 'properties': {'key': 'properties', 'type': 'object'}, 'repository': {'key': 'repository', 'type': 'BuildRepository'}, 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[BuildTrigger]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } diff --git a/vsts/vsts/build/v4_0/models/build_definition3_2.py b/vsts/vsts/build/v4_0/models/build_definition3_2.py index 9e66a81a..21236985 100644 --- a/vsts/vsts/build/v4_0/models/build_definition3_2.py +++ b/vsts/vsts/build/v4_0/models/build_definition3_2.py @@ -81,7 +81,7 @@ class BuildDefinition3_2(BuildDefinitionReference): :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`BuildTrigger ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ @@ -121,7 +121,7 @@ class BuildDefinition3_2(BuildDefinitionReference): 'repository': {'key': 'repository', 'type': 'BuildRepository'}, 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[BuildTrigger]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } diff --git a/vsts/vsts/build/v4_0/models/build_process.py b/vsts/vsts/build/v4_0/models/build_process.py deleted file mode 100644 index 32205962..00000000 --- a/vsts/vsts/build/v4_0/models/build_process.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildProcess(Model): - """BuildProcess. - - :param repositories: - :type repositories: dict - :param type: - :type type: int - """ - - _attribute_map = { - 'repositories': {'key': 'repositories', 'type': '{BuildRepository}'}, - 'type': {'key': 'type', 'type': 'int'} - } - - def __init__(self, repositories=None, type=None): - super(BuildProcess, self).__init__() - self.repositories = repositories - self.type = type diff --git a/vsts/vsts/build/v4_0/models/build_trigger.py b/vsts/vsts/build/v4_0/models/build_trigger.py deleted file mode 100644 index a9261d0a..00000000 --- a/vsts/vsts/build/v4_0/models/build_trigger.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildTrigger(Model): - """BuildTrigger. - - :param trigger_type: - :type trigger_type: object - """ - - _attribute_map = { - 'trigger_type': {'key': 'triggerType', 'type': 'object'} - } - - def __init__(self, trigger_type=None): - super(BuildTrigger, self).__init__() - self.trigger_type = trigger_type diff --git a/vsts/vsts/build/v4_1/models/__init__.py b/vsts/vsts/build/v4_1/models/__init__.py index ed1d399e..1ca89425 100644 --- a/vsts/vsts/build/v4_1/models/__init__.py +++ b/vsts/vsts/build/v4_1/models/__init__.py @@ -37,13 +37,11 @@ from .build_option_definition_reference import BuildOptionDefinitionReference from .build_option_group_definition import BuildOptionGroupDefinition from .build_option_input_definition import BuildOptionInputDefinition -from .build_process import BuildProcess from .build_report_metadata import BuildReportMetadata from .build_repository import BuildRepository from .build_request_validation_result import BuildRequestValidationResult from .build_resource_usage import BuildResourceUsage from .build_settings import BuildSettings -from .build_trigger import BuildTrigger from .change import Change from .data_source_binding_base import DataSourceBindingBase from .definition_reference import DefinitionReference @@ -113,13 +111,11 @@ 'BuildOptionDefinitionReference', 'BuildOptionGroupDefinition', 'BuildOptionInputDefinition', - 'BuildProcess', 'BuildReportMetadata', 'BuildRepository', 'BuildRequestValidationResult', 'BuildResourceUsage', 'BuildSettings', - 'BuildTrigger', 'Change', 'DataSourceBindingBase', 'DefinitionReference', diff --git a/vsts/vsts/build/v4_1/models/build_definition.py b/vsts/vsts/build/v4_1/models/build_definition.py index d443d215..91cc7114 100644 --- a/vsts/vsts/build/v4_1/models/build_definition.py +++ b/vsts/vsts/build/v4_1/models/build_definition.py @@ -73,7 +73,7 @@ class BuildDefinition(BuildDefinitionReference): :param options: :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`BuildProcess ` + :type process: :class:`object ` :param process_parameters: The process parameters for this definition. :type process_parameters: :class:`ProcessParameters ` :param properties: @@ -85,7 +85,7 @@ class BuildDefinition(BuildDefinitionReference): :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`BuildTrigger ` + :type triggers: list of :class:`object ` :param variable_groups: :type variable_groups: list of :class:`VariableGroup ` :param variables: @@ -123,13 +123,13 @@ class BuildDefinition(BuildDefinitionReference): 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, 'options': {'key': 'options', 'type': '[BuildOption]'}, - 'process': {'key': 'process', 'type': 'BuildProcess'}, + 'process': {'key': 'process', 'type': 'object'}, 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, 'properties': {'key': 'properties', 'type': 'object'}, 'repository': {'key': 'repository', 'type': 'BuildRepository'}, 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[BuildTrigger]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } diff --git a/vsts/vsts/build/v4_1/models/build_definition3_2.py b/vsts/vsts/build/v4_1/models/build_definition3_2.py index 9aef37d5..54a25e9e 100644 --- a/vsts/vsts/build/v4_1/models/build_definition3_2.py +++ b/vsts/vsts/build/v4_1/models/build_definition3_2.py @@ -83,7 +83,7 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`BuildTrigger ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ @@ -124,7 +124,7 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): 'repository': {'key': 'repository', 'type': 'BuildRepository'}, 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[BuildTrigger]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } diff --git a/vsts/vsts/build/v4_1/models/build_process.py b/vsts/vsts/build/v4_1/models/build_process.py deleted file mode 100644 index 19a2aeb9..00000000 --- a/vsts/vsts/build/v4_1/models/build_process.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildProcess(Model): - """BuildProcess. - - :param type: The type of the process. - :type type: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'int'} - } - - def __init__(self, type=None): - super(BuildProcess, self).__init__() - self.type = type diff --git a/vsts/vsts/build/v4_1/models/build_trigger.py b/vsts/vsts/build/v4_1/models/build_trigger.py deleted file mode 100644 index 0039a9db..00000000 --- a/vsts/vsts/build/v4_1/models/build_trigger.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildTrigger(Model): - """BuildTrigger. - - :param trigger_type: The type of the trigger. - :type trigger_type: object - """ - - _attribute_map = { - 'trigger_type': {'key': 'triggerType', 'type': 'object'} - } - - def __init__(self, trigger_type=None): - super(BuildTrigger, self).__init__() - self.trigger_type = trigger_type diff --git a/vsts/vsts/contributions/v4_0/models/extension_file.py b/vsts/vsts/contributions/v4_0/models/extension_file.py index ba792fd5..1b505e97 100644 --- a/vsts/vsts/contributions/v4_0/models/extension_file.py +++ b/vsts/vsts/contributions/v4_0/models/extension_file.py @@ -14,44 +14,20 @@ class ExtensionFile(Model): :param asset_type: :type asset_type: str - :param content_type: - :type content_type: str - :param file_id: - :type file_id: int - :param is_default: - :type is_default: bool - :param is_public: - :type is_public: bool :param language: :type language: str - :param short_description: - :type short_description: str :param source: :type source: str - :param version: - :type version: str """ _attribute_map = { 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, 'language': {'key': 'language', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} + 'source': {'key': 'source', 'type': 'str'} } - def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + def __init__(self, asset_type=None, language=None, source=None): super(ExtensionFile, self).__init__() self.asset_type = asset_type - self.content_type = content_type - self.file_id = file_id - self.is_default = is_default - self.is_public = is_public self.language = language - self.short_description = short_description self.source = source - self.version = version diff --git a/vsts/vsts/extension_management/v4_0/models/extension_file.py b/vsts/vsts/extension_management/v4_0/models/extension_file.py index ba792fd5..1b505e97 100644 --- a/vsts/vsts/extension_management/v4_0/models/extension_file.py +++ b/vsts/vsts/extension_management/v4_0/models/extension_file.py @@ -14,44 +14,20 @@ class ExtensionFile(Model): :param asset_type: :type asset_type: str - :param content_type: - :type content_type: str - :param file_id: - :type file_id: int - :param is_default: - :type is_default: bool - :param is_public: - :type is_public: bool :param language: :type language: str - :param short_description: - :type short_description: str :param source: :type source: str - :param version: - :type version: str """ _attribute_map = { 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, 'language': {'key': 'language', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} + 'source': {'key': 'source', 'type': 'str'} } - def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + def __init__(self, asset_type=None, language=None, source=None): super(ExtensionFile, self).__init__() self.asset_type = asset_type - self.content_type = content_type - self.file_id = file_id - self.is_default = is_default - self.is_public = is_public self.language = language - self.short_description = short_description self.source = source - self.version = version diff --git a/vsts/vsts/extension_management/v4_0/models/installation_target.py b/vsts/vsts/extension_management/v4_0/models/installation_target.py index 572aaae0..4d622d4a 100644 --- a/vsts/vsts/extension_management/v4_0/models/installation_target.py +++ b/vsts/vsts/extension_management/v4_0/models/installation_target.py @@ -12,14 +12,6 @@ class InstallationTarget(Model): """InstallationTarget. - :param max_inclusive: - :type max_inclusive: bool - :param max_version: - :type max_version: str - :param min_inclusive: - :type min_inclusive: bool - :param min_version: - :type min_version: str :param target: :type target: str :param target_version: @@ -27,19 +19,11 @@ class InstallationTarget(Model): """ _attribute_map = { - 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, - 'max_version': {'key': 'maxVersion', 'type': 'str'}, - 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, - 'min_version': {'key': 'minVersion', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'target_version': {'key': 'targetVersion', 'type': 'str'} } - def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + def __init__(self, target=None, target_version=None): super(InstallationTarget, self).__init__() - self.max_inclusive = max_inclusive - self.max_version = max_version - self.min_inclusive = min_inclusive - self.min_version = min_version self.target = target self.target_version = target_version diff --git a/vsts/vsts/gallery/v4_0/models/extension_file.py b/vsts/vsts/gallery/v4_0/models/extension_file.py index ba792fd5..1b505e97 100644 --- a/vsts/vsts/gallery/v4_0/models/extension_file.py +++ b/vsts/vsts/gallery/v4_0/models/extension_file.py @@ -14,44 +14,20 @@ class ExtensionFile(Model): :param asset_type: :type asset_type: str - :param content_type: - :type content_type: str - :param file_id: - :type file_id: int - :param is_default: - :type is_default: bool - :param is_public: - :type is_public: bool :param language: :type language: str - :param short_description: - :type short_description: str :param source: :type source: str - :param version: - :type version: str """ _attribute_map = { 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, 'language': {'key': 'language', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} + 'source': {'key': 'source', 'type': 'str'} } - def __init__(self, asset_type=None, content_type=None, file_id=None, is_default=None, is_public=None, language=None, short_description=None, source=None, version=None): + def __init__(self, asset_type=None, language=None, source=None): super(ExtensionFile, self).__init__() self.asset_type = asset_type - self.content_type = content_type - self.file_id = file_id - self.is_default = is_default - self.is_public = is_public self.language = language - self.short_description = short_description self.source = source - self.version = version diff --git a/vsts/vsts/gallery/v4_0/models/installation_target.py b/vsts/vsts/gallery/v4_0/models/installation_target.py index 572aaae0..4d622d4a 100644 --- a/vsts/vsts/gallery/v4_0/models/installation_target.py +++ b/vsts/vsts/gallery/v4_0/models/installation_target.py @@ -12,14 +12,6 @@ class InstallationTarget(Model): """InstallationTarget. - :param max_inclusive: - :type max_inclusive: bool - :param max_version: - :type max_version: str - :param min_inclusive: - :type min_inclusive: bool - :param min_version: - :type min_version: str :param target: :type target: str :param target_version: @@ -27,19 +19,11 @@ class InstallationTarget(Model): """ _attribute_map = { - 'max_inclusive': {'key': 'maxInclusive', 'type': 'bool'}, - 'max_version': {'key': 'maxVersion', 'type': 'str'}, - 'min_inclusive': {'key': 'minInclusive', 'type': 'bool'}, - 'min_version': {'key': 'minVersion', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'target_version': {'key': 'targetVersion', 'type': 'str'} } - def __init__(self, max_inclusive=None, max_version=None, min_inclusive=None, min_version=None, target=None, target_version=None): + def __init__(self, target=None, target_version=None): super(InstallationTarget, self).__init__() - self.max_inclusive = max_inclusive - self.max_version = max_version - self.min_inclusive = min_inclusive - self.min_version = min_version self.target = target self.target_version = target_version diff --git a/vsts/vsts/git/v4_0/models/__init__.py b/vsts/vsts/git/v4_0/models/__init__.py index e1173eb2..3cdd393d 100644 --- a/vsts/vsts/git/v4_0/models/__init__.py +++ b/vsts/vsts/git/v4_0/models/__init__.py @@ -9,7 +9,6 @@ from .associated_work_item import AssociatedWorkItem from .attachment import Attachment from .change import Change -from .change_count_dictionary import ChangeCountDictionary from .comment import Comment from .comment_iteration_context import CommentIterationContext from .comment_position import CommentPosition @@ -106,7 +105,6 @@ 'AssociatedWorkItem', 'Attachment', 'Change', - 'ChangeCountDictionary', 'Comment', 'CommentIterationContext', 'CommentPosition', diff --git a/vsts/vsts/git/v4_0/models/change_count_dictionary.py b/vsts/vsts/git/v4_0/models/change_count_dictionary.py deleted file mode 100644 index 1c8e29bc..00000000 --- a/vsts/vsts/git/v4_0/models/change_count_dictionary.py +++ /dev/null @@ -1,20 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- - - - -class ChangeCountDictionary(dict): - """ChangeCountDictionary. - - """ - - _attribute_map = { - } - - def __init__(self): - super(ChangeCountDictionary, self).__init__() diff --git a/vsts/vsts/git/v4_0/models/git_commit.py b/vsts/vsts/git/v4_0/models/git_commit.py index 545a3965..b757f56b 100644 --- a/vsts/vsts/git/v4_0/models/git_commit.py +++ b/vsts/vsts/git/v4_0/models/git_commit.py @@ -17,7 +17,7 @@ class GitCommit(GitCommitRef): :param author: :type author: :class:`GitUserDate ` :param change_counts: - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: :type changes: list of :class:`GitChange ` :param comment: @@ -47,7 +47,7 @@ class GitCommit(GitCommitRef): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[GitChange]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, diff --git a/vsts/vsts/git/v4_0/models/git_commit_changes.py b/vsts/vsts/git/v4_0/models/git_commit_changes.py index ef3e3789..b18da96b 100644 --- a/vsts/vsts/git/v4_0/models/git_commit_changes.py +++ b/vsts/vsts/git/v4_0/models/git_commit_changes.py @@ -13,13 +13,13 @@ class GitCommitChanges(Model): """GitCommitChanges. :param change_counts: - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: :type changes: list of :class:`GitChange ` """ _attribute_map = { - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[GitChange]'} } diff --git a/vsts/vsts/git/v4_0/models/git_commit_ref.py b/vsts/vsts/git/v4_0/models/git_commit_ref.py index bbe06483..4f912071 100644 --- a/vsts/vsts/git/v4_0/models/git_commit_ref.py +++ b/vsts/vsts/git/v4_0/models/git_commit_ref.py @@ -17,7 +17,7 @@ class GitCommitRef(Model): :param author: :type author: :class:`GitUserDate ` :param change_counts: - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: :type changes: list of :class:`GitChange ` :param comment: @@ -43,7 +43,7 @@ class GitCommitRef(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[GitChange]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, diff --git a/vsts/vsts/git/v4_1/models/__init__.py b/vsts/vsts/git/v4_1/models/__init__.py index 8bfc5b18..d8fa46b1 100644 --- a/vsts/vsts/git/v4_1/models/__init__.py +++ b/vsts/vsts/git/v4_1/models/__init__.py @@ -8,7 +8,6 @@ from .attachment import Attachment from .change import Change -from .change_count_dictionary import ChangeCountDictionary from .comment import Comment from .comment_iteration_context import CommentIterationContext from .comment_position import CommentPosition @@ -108,7 +107,6 @@ __all__ = [ 'Attachment', 'Change', - 'ChangeCountDictionary', 'Comment', 'CommentIterationContext', 'CommentPosition', diff --git a/vsts/vsts/git/v4_1/models/change_count_dictionary.py b/vsts/vsts/git/v4_1/models/change_count_dictionary.py deleted file mode 100644 index 1c8e29bc..00000000 --- a/vsts/vsts/git/v4_1/models/change_count_dictionary.py +++ /dev/null @@ -1,20 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- - - - -class ChangeCountDictionary(dict): - """ChangeCountDictionary. - - """ - - _attribute_map = { - } - - def __init__(self): - super(ChangeCountDictionary, self).__init__() diff --git a/vsts/vsts/git/v4_1/models/git_commit.py b/vsts/vsts/git/v4_1/models/git_commit.py index a158afdb..13034848 100644 --- a/vsts/vsts/git/v4_1/models/git_commit.py +++ b/vsts/vsts/git/v4_1/models/git_commit.py @@ -17,7 +17,7 @@ class GitCommit(GitCommitRef): :param author: Author of the commit. :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: An enumeration of the changes included with the commit. :type changes: list of :class:`GitChange ` :param comment: Comment or message of the commit. @@ -47,7 +47,7 @@ class GitCommit(GitCommitRef): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[GitChange]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, diff --git a/vsts/vsts/git/v4_1/models/git_commit_changes.py b/vsts/vsts/git/v4_1/models/git_commit_changes.py index b2a1c728..1a1bb68d 100644 --- a/vsts/vsts/git/v4_1/models/git_commit_changes.py +++ b/vsts/vsts/git/v4_1/models/git_commit_changes.py @@ -13,13 +13,13 @@ class GitCommitChanges(Model): """GitCommitChanges. :param change_counts: - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: :type changes: list of :class:`GitChange ` """ _attribute_map = { - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[GitChange]'} } diff --git a/vsts/vsts/git/v4_1/models/git_commit_ref.py b/vsts/vsts/git/v4_1/models/git_commit_ref.py index a3f58b76..b723deac 100644 --- a/vsts/vsts/git/v4_1/models/git_commit_ref.py +++ b/vsts/vsts/git/v4_1/models/git_commit_ref.py @@ -17,7 +17,7 @@ class GitCommitRef(Model): :param author: Author of the commit. :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: An enumeration of the changes included with the commit. :type changes: list of :class:`GitChange ` :param comment: Comment or message of the commit. @@ -43,7 +43,7 @@ class GitCommitRef(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[GitChange]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, diff --git a/vsts/vsts/work/v4_0/models/__init__.py b/vsts/vsts/work/v4_0/models/__init__.py index 3d4a641c..0082346f 100644 --- a/vsts/vsts/work/v4_0/models/__init__.py +++ b/vsts/vsts/work/v4_0/models/__init__.py @@ -7,7 +7,6 @@ # -------------------------------------------------------------------------------------------- from .activity import Activity -from .attribute import attribute from .backlog_column import BacklogColumn from .backlog_configuration import BacklogConfiguration from .backlog_fields import BacklogFields @@ -31,7 +30,6 @@ from .date_range import DateRange from .delivery_view_data import DeliveryViewData from .field_reference import FieldReference -from .field_setting import FieldSetting from .filter_clause import FilterClause from .filter_group import FilterGroup from .filter_model import FilterModel @@ -69,7 +67,6 @@ __all__ = [ 'Activity', - 'attribute', 'BacklogColumn', 'BacklogConfiguration', 'BacklogFields', @@ -93,7 +90,6 @@ 'DateRange', 'DeliveryViewData', 'FieldReference', - 'FieldSetting', 'FilterClause', 'FilterGroup', 'FilterModel', diff --git a/vsts/vsts/work/v4_0/models/attribute.py b/vsts/vsts/work/v4_0/models/attribute.py deleted file mode 100644 index 6f113cc3..00000000 --- a/vsts/vsts/work/v4_0/models/attribute.py +++ /dev/null @@ -1,20 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- - - - -class attribute(dict): - """attribute. - - """ - - _attribute_map = { - } - - def __init__(self): - super(attribute, self).__init__() diff --git a/vsts/vsts/work/v4_0/models/field_setting.py b/vsts/vsts/work/v4_0/models/field_setting.py deleted file mode 100644 index 28a2b6a6..00000000 --- a/vsts/vsts/work/v4_0/models/field_setting.py +++ /dev/null @@ -1,20 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- - - - -class FieldSetting(dict): - """FieldSetting. - - """ - - _attribute_map = { - } - - def __init__(self): - super(FieldSetting, self).__init__() diff --git a/vsts/vsts/work/v4_0/models/rule.py b/vsts/vsts/work/v4_0/models/rule.py index faf0f574..fad6907a 100644 --- a/vsts/vsts/work/v4_0/models/rule.py +++ b/vsts/vsts/work/v4_0/models/rule.py @@ -21,7 +21,7 @@ class Rule(Model): :param name: :type name: str :param settings: - :type settings: :class:`attribute ` + :type settings: dict """ _attribute_map = { @@ -29,7 +29,7 @@ class Rule(Model): 'filter': {'key': 'filter', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': 'attribute'} + 'settings': {'key': 'settings', 'type': '{str}'} } def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): diff --git a/vsts/vsts/work/v4_1/models/__init__.py b/vsts/vsts/work/v4_1/models/__init__.py index 9414a1cb..067d31b1 100644 --- a/vsts/vsts/work/v4_1/models/__init__.py +++ b/vsts/vsts/work/v4_1/models/__init__.py @@ -7,7 +7,6 @@ # -------------------------------------------------------------------------------------------- from .activity import Activity -from .attribute import attribute from .backlog_column import BacklogColumn from .backlog_configuration import BacklogConfiguration from .backlog_fields import BacklogFields @@ -31,7 +30,6 @@ from .date_range import DateRange from .delivery_view_data import DeliveryViewData from .field_reference import FieldReference -from .field_setting import FieldSetting from .filter_clause import FilterClause from .graph_subject_base import GraphSubjectBase from .identity_ref import IdentityRef @@ -71,7 +69,6 @@ __all__ = [ 'Activity', - 'attribute', 'BacklogColumn', 'BacklogConfiguration', 'BacklogFields', @@ -95,7 +92,6 @@ 'DateRange', 'DeliveryViewData', 'FieldReference', - 'FieldSetting', 'FilterClause', 'GraphSubjectBase', 'IdentityRef', diff --git a/vsts/vsts/work/v4_1/models/attribute.py b/vsts/vsts/work/v4_1/models/attribute.py deleted file mode 100644 index 6f113cc3..00000000 --- a/vsts/vsts/work/v4_1/models/attribute.py +++ /dev/null @@ -1,20 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- - - - -class attribute(dict): - """attribute. - - """ - - _attribute_map = { - } - - def __init__(self): - super(attribute, self).__init__() diff --git a/vsts/vsts/work/v4_1/models/field_setting.py b/vsts/vsts/work/v4_1/models/field_setting.py deleted file mode 100644 index 28a2b6a6..00000000 --- a/vsts/vsts/work/v4_1/models/field_setting.py +++ /dev/null @@ -1,20 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- - - - -class FieldSetting(dict): - """FieldSetting. - - """ - - _attribute_map = { - } - - def __init__(self): - super(FieldSetting, self).__init__() diff --git a/vsts/vsts/work/v4_1/models/rule.py b/vsts/vsts/work/v4_1/models/rule.py index d431c108..82788cc2 100644 --- a/vsts/vsts/work/v4_1/models/rule.py +++ b/vsts/vsts/work/v4_1/models/rule.py @@ -21,7 +21,7 @@ class Rule(Model): :param name: :type name: str :param settings: - :type settings: :class:`attribute ` + :type settings: dict """ _attribute_map = { @@ -29,7 +29,7 @@ class Rule(Model): 'filter': {'key': 'filter', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': 'attribute'} + 'settings': {'key': 'settings', 'type': '{str}'} } def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): From c18635b2271c7fd5162025e954ab9658672bdddc Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 23 Apr 2018 11:31:21 -0400 Subject: [PATCH 028/191] add back missing git_client and bump version to 0.1.2 --- vsts/setup.py | 2 +- vsts/vsts/git/v4_1/git_client.py | 30 ++++++++++++++++++++++++++++++ vsts/vsts/version.py | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 vsts/vsts/git/v4_1/git_client.py diff --git a/vsts/setup.py b/vsts/setup.py index 1d803b35..9e2ad7c8 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.1" +VERSION = "0.1.2" # To install the library, run the following # diff --git a/vsts/vsts/git/v4_1/git_client.py b/vsts/vsts/git/v4_1/git_client.py new file mode 100644 index 00000000..e5cb6ab1 --- /dev/null +++ b/vsts/vsts/git/v4_1/git_client.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Generated file, DO NOT EDIT +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + + +from msrest.pipeline import ClientRequest +from .git_client_base import GitClientBase + + +class GitClient(GitClientBase): + """Git + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GitClient, self).__init__(base_url, creds) + + def get_vsts_info(self, relative_remote_url): + request = ClientRequest() + request.url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') + request.method = 'GET' + headers = {'Accept': 'application/json'} + if self._suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + response = self._send_request(request, headers) + return self._deserialize('VstsInfo', response) diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 8492465c..401b3310 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.1" +VERSION = "0.1.2" From 80c78b10682ad660abf06dbc897cf20b40cdd034 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 23 Apr 2018 12:09:13 -0400 Subject: [PATCH 029/191] handle abstract git_change as object --- vsts/vsts/git/v4_0/models/__init__.py | 2 -- vsts/vsts/git/v4_0/models/git_change.py | 33 ------------------- vsts/vsts/git/v4_0/models/git_commit.py | 4 +-- .../git/v4_0/models/git_commit_changes.py | 4 +-- vsts/vsts/git/v4_0/models/git_commit_diffs.py | 4 +-- vsts/vsts/git/v4_0/models/git_commit_ref.py | 4 +-- .../v4_0/models/git_pull_request_change.py | 17 +++------- vsts/vsts/git/v4_1/models/__init__.py | 2 -- vsts/vsts/git/v4_1/models/git_change.py | 33 ------------------- vsts/vsts/git/v4_1/models/git_commit.py | 4 +-- .../git/v4_1/models/git_commit_changes.py | 4 +-- vsts/vsts/git/v4_1/models/git_commit_diffs.py | 4 +-- vsts/vsts/git/v4_1/models/git_commit_ref.py | 4 +-- .../v4_1/models/git_pull_request_change.py | 17 +++------- 14 files changed, 24 insertions(+), 112 deletions(-) delete mode 100644 vsts/vsts/git/v4_0/models/git_change.py delete mode 100644 vsts/vsts/git/v4_1/models/git_change.py diff --git a/vsts/vsts/git/v4_0/models/__init__.py b/vsts/vsts/git/v4_0/models/__init__.py index 3cdd393d..bd74c956 100644 --- a/vsts/vsts/git/v4_0/models/__init__.py +++ b/vsts/vsts/git/v4_0/models/__init__.py @@ -24,7 +24,6 @@ from .git_base_version_descriptor import GitBaseVersionDescriptor from .git_blob_ref import GitBlobRef from .git_branch_stats import GitBranchStats -from .git_change import GitChange from .git_cherry_pick import GitCherryPick from .git_commit import GitCommit from .git_commit_changes import GitCommitChanges @@ -120,7 +119,6 @@ 'GitBaseVersionDescriptor', 'GitBlobRef', 'GitBranchStats', - 'GitChange', 'GitCherryPick', 'GitCommit', 'GitCommitChanges', diff --git a/vsts/vsts/git/v4_0/models/git_change.py b/vsts/vsts/git/v4_0/models/git_change.py deleted file mode 100644 index c7a25411..00000000 --- a/vsts/vsts/git/v4_0/models/git_change.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .change import Change - - -class GitChange(Change): - """GitChange. - - :param change_id: Id of the change within the group. For example, within the iteration - :type change_id: int - :param new_content_template: New Content template to be used - :type new_content_template: :class:`GitTemplate ` - :param original_path: Original path of item if different from current path - :type original_path: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'new_content_template': {'key': 'newContentTemplate', 'type': 'GitTemplate'}, - 'original_path': {'key': 'originalPath', 'type': 'str'} - } - - def __init__(self, change_id=None, new_content_template=None, original_path=None): - super(GitChange, self).__init__() - self.change_id = change_id - self.new_content_template = new_content_template - self.original_path = original_path diff --git a/vsts/vsts/git/v4_0/models/git_commit.py b/vsts/vsts/git/v4_0/models/git_commit.py index b757f56b..f6df7bfd 100644 --- a/vsts/vsts/git/v4_0/models/git_commit.py +++ b/vsts/vsts/git/v4_0/models/git_commit.py @@ -19,7 +19,7 @@ class GitCommit(GitCommitRef): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` :param comment: :type comment: str :param comment_truncated: @@ -48,7 +48,7 @@ class GitCommit(GitCommitRef): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'}, + 'changes': {'key': 'changes', 'type': '[object]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, 'commit_id': {'key': 'commitId', 'type': 'str'}, diff --git a/vsts/vsts/git/v4_0/models/git_commit_changes.py b/vsts/vsts/git/v4_0/models/git_commit_changes.py index b18da96b..2c3fc537 100644 --- a/vsts/vsts/git/v4_0/models/git_commit_changes.py +++ b/vsts/vsts/git/v4_0/models/git_commit_changes.py @@ -15,12 +15,12 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` """ _attribute_map = { 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'} + 'changes': {'key': 'changes', 'type': '[object]'} } def __init__(self, change_counts=None, changes=None): diff --git a/vsts/vsts/git/v4_0/models/git_commit_diffs.py b/vsts/vsts/git/v4_0/models/git_commit_diffs.py index 5e1e57b8..bd85ac82 100644 --- a/vsts/vsts/git/v4_0/models/git_commit_diffs.py +++ b/vsts/vsts/git/v4_0/models/git_commit_diffs.py @@ -23,7 +23,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -36,7 +36,7 @@ class GitCommitDiffs(Model): 'base_commit': {'key': 'baseCommit', 'type': 'str'}, 'behind_count': {'key': 'behindCount', 'type': 'int'}, 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'}, + 'changes': {'key': 'changes', 'type': '[object]'}, 'common_commit': {'key': 'commonCommit', 'type': 'str'}, 'target_commit': {'key': 'targetCommit', 'type': 'str'} } diff --git a/vsts/vsts/git/v4_0/models/git_commit_ref.py b/vsts/vsts/git/v4_0/models/git_commit_ref.py index 4f912071..ef019e14 100644 --- a/vsts/vsts/git/v4_0/models/git_commit_ref.py +++ b/vsts/vsts/git/v4_0/models/git_commit_ref.py @@ -19,7 +19,7 @@ class GitCommitRef(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` :param comment: :type comment: str :param comment_truncated: @@ -44,7 +44,7 @@ class GitCommitRef(Model): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'}, + 'changes': {'key': 'changes', 'type': '[object]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, 'commit_id': {'key': 'commitId', 'type': 'str'}, diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_change.py b/vsts/vsts/git/v4_0/models/git_pull_request_change.py index 65b85a40..b8333c17 100644 --- a/vsts/vsts/git/v4_0/models/git_pull_request_change.py +++ b/vsts/vsts/git/v4_0/models/git_pull_request_change.py @@ -6,29 +6,20 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .git_change import GitChange +from msrest.serialization import Model -class GitPullRequestChange(GitChange): +class GitPullRequestChange(Model): """GitPullRequestChange. - :param change_id: Id of the change within the group. For example, within the iteration - :type change_id: int - :param new_content_template: New Content template to be used - :type new_content_template: :class:`GitTemplate ` - :param original_path: Original path of item if different from current path - :type original_path: str :param change_tracking_id: Id used to track files through multiple changes :type change_tracking_id: int """ _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'new_content_template': {'key': 'newContentTemplate', 'type': 'GitTemplate'}, - 'original_path': {'key': 'originalPath', 'type': 'str'}, 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'} } - def __init__(self, change_id=None, new_content_template=None, original_path=None, change_tracking_id=None): - super(GitPullRequestChange, self).__init__(change_id=change_id, new_content_template=new_content_template, original_path=original_path) + def __init__(self, change_tracking_id=None): + super(GitPullRequestChange, self).__init__() self.change_tracking_id = change_tracking_id diff --git a/vsts/vsts/git/v4_1/models/__init__.py b/vsts/vsts/git/v4_1/models/__init__.py index d8fa46b1..529b1baa 100644 --- a/vsts/vsts/git/v4_1/models/__init__.py +++ b/vsts/vsts/git/v4_1/models/__init__.py @@ -23,7 +23,6 @@ from .git_base_version_descriptor import GitBaseVersionDescriptor from .git_blob_ref import GitBlobRef from .git_branch_stats import GitBranchStats -from .git_change import GitChange from .git_cherry_pick import GitCherryPick from .git_commit import GitCommit from .git_commit_changes import GitCommitChanges @@ -122,7 +121,6 @@ 'GitBaseVersionDescriptor', 'GitBlobRef', 'GitBranchStats', - 'GitChange', 'GitCherryPick', 'GitCommit', 'GitCommitChanges', diff --git a/vsts/vsts/git/v4_1/models/git_change.py b/vsts/vsts/git/v4_1/models/git_change.py deleted file mode 100644 index aa3c716c..00000000 --- a/vsts/vsts/git/v4_1/models/git_change.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .change import Change - - -class GitChange(Change): - """GitChange. - - :param change_id: ID of the change within the group of changes. - :type change_id: int - :param new_content_template: New Content template to be used when pushing new changes. - :type new_content_template: :class:`GitTemplate ` - :param original_path: Original path of item if different from current path. - :type original_path: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'new_content_template': {'key': 'newContentTemplate', 'type': 'GitTemplate'}, - 'original_path': {'key': 'originalPath', 'type': 'str'} - } - - def __init__(self, change_id=None, new_content_template=None, original_path=None): - super(GitChange, self).__init__() - self.change_id = change_id - self.new_content_template = new_content_template - self.original_path = original_path diff --git a/vsts/vsts/git/v4_1/models/git_commit.py b/vsts/vsts/git/v4_1/models/git_commit.py index 13034848..a00dcbb4 100644 --- a/vsts/vsts/git/v4_1/models/git_commit.py +++ b/vsts/vsts/git/v4_1/models/git_commit.py @@ -19,7 +19,7 @@ class GitCommit(GitCommitRef): :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -48,7 +48,7 @@ class GitCommit(GitCommitRef): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'}, + 'changes': {'key': 'changes', 'type': '[object]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, 'commit_id': {'key': 'commitId', 'type': 'str'}, diff --git a/vsts/vsts/git/v4_1/models/git_commit_changes.py b/vsts/vsts/git/v4_1/models/git_commit_changes.py index 1a1bb68d..9d82a623 100644 --- a/vsts/vsts/git/v4_1/models/git_commit_changes.py +++ b/vsts/vsts/git/v4_1/models/git_commit_changes.py @@ -15,12 +15,12 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` """ _attribute_map = { 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'} + 'changes': {'key': 'changes', 'type': '[object]'} } def __init__(self, change_counts=None, changes=None): diff --git a/vsts/vsts/git/v4_1/models/git_commit_diffs.py b/vsts/vsts/git/v4_1/models/git_commit_diffs.py index c5d14b37..a6836a10 100644 --- a/vsts/vsts/git/v4_1/models/git_commit_diffs.py +++ b/vsts/vsts/git/v4_1/models/git_commit_diffs.py @@ -23,7 +23,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -36,7 +36,7 @@ class GitCommitDiffs(Model): 'base_commit': {'key': 'baseCommit', 'type': 'str'}, 'behind_count': {'key': 'behindCount', 'type': 'int'}, 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'}, + 'changes': {'key': 'changes', 'type': '[object]'}, 'common_commit': {'key': 'commonCommit', 'type': 'str'}, 'target_commit': {'key': 'targetCommit', 'type': 'str'} } diff --git a/vsts/vsts/git/v4_1/models/git_commit_ref.py b/vsts/vsts/git/v4_1/models/git_commit_ref.py index b723deac..5278e92e 100644 --- a/vsts/vsts/git/v4_1/models/git_commit_ref.py +++ b/vsts/vsts/git/v4_1/models/git_commit_ref.py @@ -19,7 +19,7 @@ class GitCommitRef(Model): :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`GitChange ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -44,7 +44,7 @@ class GitCommitRef(Model): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'author': {'key': 'author', 'type': 'GitUserDate'}, 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[GitChange]'}, + 'changes': {'key': 'changes', 'type': '[object]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, 'commit_id': {'key': 'commitId', 'type': 'str'}, diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_change.py b/vsts/vsts/git/v4_1/models/git_pull_request_change.py index 69e19c22..b2530216 100644 --- a/vsts/vsts/git/v4_1/models/git_pull_request_change.py +++ b/vsts/vsts/git/v4_1/models/git_pull_request_change.py @@ -6,29 +6,20 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .git_change import GitChange +from msrest.serialization import Model -class GitPullRequestChange(GitChange): +class GitPullRequestChange(Model): """GitPullRequestChange. - :param change_id: ID of the change within the group of changes. - :type change_id: int - :param new_content_template: New Content template to be used when pushing new changes. - :type new_content_template: :class:`GitTemplate ` - :param original_path: Original path of item if different from current path. - :type original_path: str :param change_tracking_id: ID used to track files through multiple changes. :type change_tracking_id: int """ _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'new_content_template': {'key': 'newContentTemplate', 'type': 'GitTemplate'}, - 'original_path': {'key': 'originalPath', 'type': 'str'}, 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'} } - def __init__(self, change_id=None, new_content_template=None, original_path=None, change_tracking_id=None): - super(GitPullRequestChange, self).__init__(change_id=change_id, new_content_template=new_content_template, original_path=original_path) + def __init__(self, change_tracking_id=None): + super(GitPullRequestChange, self).__init__() self.change_tracking_id = change_tracking_id From 6b34f3cd61c8dd81ac4e6ab10581cc5bbec45568 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 23 Apr 2018 12:38:27 -0400 Subject: [PATCH 030/191] bump version to 0.1.3 and fix dev_setup script --- scripts/dev_setup.py | 21 +++++++-------------- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/scripts/dev_setup.py b/scripts/dev_setup.py index 7de8049b..89ed38f3 100644 --- a/scripts/dev_setup.py +++ b/scripts/dev_setup.py @@ -10,8 +10,6 @@ import os from subprocess import check_call, CalledProcessError -root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), '..', '..')) - def exec_command(command): try: @@ -23,25 +21,20 @@ def exec_command(command): sys.exit(1) -packages = [os.path.dirname(p) for p in glob.glob('vsts*/setup.py')] - -# Extract nspkg and sort nspkg by number of "-" -nspkg_packages = [p for p in packages if "nspkg" in p] -nspkg_packages.sort(key=lambda x: len([c for c in x if c == '-'])) - -content_packages = [p for p in packages if p not in nspkg_packages] - print('Running dev setup...') + +root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), '..', '..')) print('Root directory \'{}\'\n'.format(root_dir)) +exec_command('python -m pip install --upgrade pip') +exec_command('python -m pip install --upgrade wheel') + # install general requirements if os.path.isfile('./requirements.txt'): exec_command('pip install -r requirements.txt') -# install packages -for package_list in [nspkg_packages, content_packages]: - for package_name in package_list: - exec_command('pip install -e {}'.format(package_name)) +# install dev packages +exec_command('pip install -e vsts') # install packaging requirements if os.path.isfile('./scripts/packaging_requirements.txt'): diff --git a/vsts/setup.py b/vsts/setup.py index 9e2ad7c8..76f28b80 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.2" +VERSION = "0.1.3" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 401b3310..2b4dc6ab 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.2" +VERSION = "0.1.3" From 6e1bc76c59c8bf55d97973c8c1bd8dc18fa102f1 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 25 Apr 2018 20:26:27 -0400 Subject: [PATCH 031/191] fix issue where BaseSecuredObject was incorrectly set as base class for some models. --- vsts/vsts/release/v4_1/models/authorization_header.py | 3 ++- vsts/vsts/release/v4_1/models/data_source_binding_base.py | 3 ++- vsts/vsts/release/v4_1/models/process_parameters.py | 3 ++- vsts/vsts/release/v4_1/models/task_input_definition_base.py | 3 ++- vsts/vsts/release/v4_1/models/task_input_validation.py | 3 ++- vsts/vsts/release/v4_1/models/task_source_definition_base.py | 3 ++- vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py | 3 ++- vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py | 3 ++- vsts/vsts/task_agent/v4_1/models/task_input_validation.py | 3 ++- .../vsts/task_agent/v4_1/models/task_source_definition_base.py | 3 ++- vsts/vsts/work/v4_1/models/work_item_field_reference.py | 3 ++- .../work/v4_1/models/work_item_tracking_resource_reference.py | 3 ++- 12 files changed, 24 insertions(+), 12 deletions(-) diff --git a/vsts/vsts/release/v4_1/models/authorization_header.py b/vsts/vsts/release/v4_1/models/authorization_header.py index 337b6013..015e6775 100644 --- a/vsts/vsts/release/v4_1/models/authorization_header.py +++ b/vsts/vsts/release/v4_1/models/authorization_header.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class AuthorizationHeader(BaseSecuredObject): +class AuthorizationHeader(Model): """AuthorizationHeader. :param name: diff --git a/vsts/vsts/release/v4_1/models/data_source_binding_base.py b/vsts/vsts/release/v4_1/models/data_source_binding_base.py index 8d11fcdf..04638445 100644 --- a/vsts/vsts/release/v4_1/models/data_source_binding_base.py +++ b/vsts/vsts/release/v4_1/models/data_source_binding_base.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class DataSourceBindingBase(BaseSecuredObject): +class DataSourceBindingBase(Model): """DataSourceBindingBase. :param data_source_name: Gets or sets the name of the data source. diff --git a/vsts/vsts/release/v4_1/models/process_parameters.py b/vsts/vsts/release/v4_1/models/process_parameters.py index d87b7635..657d9485 100644 --- a/vsts/vsts/release/v4_1/models/process_parameters.py +++ b/vsts/vsts/release/v4_1/models/process_parameters.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class ProcessParameters(BaseSecuredObject): +class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: diff --git a/vsts/vsts/release/v4_1/models/task_input_definition_base.py b/vsts/vsts/release/v4_1/models/task_input_definition_base.py index 0d84190d..1b4e68ff 100644 --- a/vsts/vsts/release/v4_1/models/task_input_definition_base.py +++ b/vsts/vsts/release/v4_1/models/task_input_definition_base.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class TaskInputDefinitionBase(BaseSecuredObject): +class TaskInputDefinitionBase(Model): """TaskInputDefinitionBase. :param aliases: diff --git a/vsts/vsts/release/v4_1/models/task_input_validation.py b/vsts/vsts/release/v4_1/models/task_input_validation.py index cc51abdd..42524013 100644 --- a/vsts/vsts/release/v4_1/models/task_input_validation.py +++ b/vsts/vsts/release/v4_1/models/task_input_validation.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class TaskInputValidation(BaseSecuredObject): +class TaskInputValidation(Model): """TaskInputValidation. :param expression: Conditional expression diff --git a/vsts/vsts/release/v4_1/models/task_source_definition_base.py b/vsts/vsts/release/v4_1/models/task_source_definition_base.py index 79ba6579..c8a6b6d6 100644 --- a/vsts/vsts/release/v4_1/models/task_source_definition_base.py +++ b/vsts/vsts/release/v4_1/models/task_source_definition_base.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class TaskSourceDefinitionBase(BaseSecuredObject): +class TaskSourceDefinitionBase(Model): """TaskSourceDefinitionBase. :param auth_key: diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py b/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py index 8d11fcdf..04638445 100644 --- a/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py +++ b/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class DataSourceBindingBase(BaseSecuredObject): +class DataSourceBindingBase(Model): """DataSourceBindingBase. :param data_source_name: Gets or sets the name of the data source. diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py index 0d84190d..1b4e68ff 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py +++ b/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class TaskInputDefinitionBase(BaseSecuredObject): +class TaskInputDefinitionBase(Model): """TaskInputDefinitionBase. :param aliases: diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_validation.py b/vsts/vsts/task_agent/v4_1/models/task_input_validation.py index cc51abdd..42524013 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_input_validation.py +++ b/vsts/vsts/task_agent/v4_1/models/task_input_validation.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class TaskInputValidation(BaseSecuredObject): +class TaskInputValidation(Model): """TaskInputValidation. :param expression: Conditional expression diff --git a/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py index 79ba6579..c8a6b6d6 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py +++ b/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class TaskSourceDefinitionBase(BaseSecuredObject): +class TaskSourceDefinitionBase(Model): """TaskSourceDefinitionBase. :param auth_key: diff --git a/vsts/vsts/work/v4_1/models/work_item_field_reference.py b/vsts/vsts/work/v4_1/models/work_item_field_reference.py index 943b036d..29ebbbf2 100644 --- a/vsts/vsts/work/v4_1/models/work_item_field_reference.py +++ b/vsts/vsts/work/v4_1/models/work_item_field_reference.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class WorkItemFieldReference(BaseSecuredObject): +class WorkItemFieldReference(Model): """WorkItemFieldReference. :param name: The name of the field. diff --git a/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py b/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py index 75c0959e..de9a728b 100644 --- a/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py +++ b/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py @@ -6,9 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from msrest.serialization import Model -class WorkItemTrackingResourceReference(BaseSecuredObject): +class WorkItemTrackingResourceReference(Model): """WorkItemTrackingResourceReference. :param url: From c933e610ec1e49fa15fa9e192cb40c78e0c4af59 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 25 Apr 2018 20:46:18 -0400 Subject: [PATCH 032/191] Bump version to 0.1.4 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 76f28b80..57624260 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.3" +VERSION = "0.1.4" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 2b4dc6ab..7d44455f 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.3" +VERSION = "0.1.4" From 9acdb31af85043aa85c32c94c845a1172b15feb1 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 26 Apr 2018 12:31:12 -0400 Subject: [PATCH 033/191] Add more info when debug logging is enabled. --- vsts/vsts/_file_cache.py | 6 +++--- vsts/vsts/vss_client.py | 15 +++++++++++++-- vsts/vsts/vss_connection.py | 4 ++-- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/vsts/vsts/_file_cache.py b/vsts/vsts/_file_cache.py index eff4e347..375f2041 100644 --- a/vsts/vsts/_file_cache.py +++ b/vsts/vsts/_file_cache.py @@ -33,13 +33,13 @@ def load(self): try: if os.path.isfile(self.file_name): if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.clock(): - logging.info('Cache file expired: %s', file=self.file_name) + logging.debug('Cache file expired: %s', file=self.file_name) os.remove(self.file_name) else: - logging.info('Loading cache file: %s', self.file_name) + logging.debug('Loading cache file: %s', self.file_name) self.data = get_file_json(self.file_name, throw_on_empty=False) or {} else: - logging.info('Cache file does not exist: %s', self.file_name) + logging.debug('Cache file does not exist: %s', self.file_name) except Exception as ex: logging.exception(ex) # file is missing or corrupt so attempt to delete it diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index 197f5cc0..c15a80ea 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -50,8 +50,11 @@ def _send_request(self, request, headers=None, content=None, **operation_config) """ if TRACE_ENV_VAR in os.environ and os.environ[TRACE_ENV_VAR] == 'true': print(request.method + ' ' + request.url) + logging.debug('%s %s', request.method, request.url) + logging.debug('Request content: %s', content) response = self._client.send(request=request, headers=headers, content=content, **operation_config) + logging.debug('Response content: %s', response.content) if response.status_code < 200 or response.status_code >= 300: self._handle_error(request, response) return response @@ -66,6 +69,14 @@ def _send(self, http_method, location_id, version, route_values=None, negotiated_version = self._negotiate_request_version( self._get_resource_location(location_id), version) + + if version != negotiated_version: + logging.info("Negotiated api version from '%s' down to '%s'. This means the client is newer than the server.", + version, + negotiated_version) + else: + logging.debug("Api version '%s'", negotiated_version) + # Construct headers headers = {'Content-Type': media_type + '; charset=utf-8', 'Accept': 'application/json;api-version=' + negotiated_version} @@ -139,14 +150,14 @@ def _get_resource_locations(self, all_host_types): # Next check for options cached on disk if not all_host_types and OPTIONS_FILE_CACHE[self.normalized_url]: try: - logging.info('File cache hit for options on: %s', self.normalized_url) + logging.debug('File cache hit for options on: %s', self.normalized_url) self._locations = self._base_deserialize.deserialize_data(OPTIONS_FILE_CACHE[self.normalized_url], '[ApiResourceLocation]') return self._locations except DeserializationError as ex: logging.exception(str(ex)) else: - logging.info('File cache miss for options on: %s', self.normalized_url) + logging.debug('File cache miss for options on: %s', self.normalized_url) # Last resort, make the call to the server options_uri = self._combine_url(self.config.base_url, '_apis') diff --git a/vsts/vsts/vss_connection.py b/vsts/vsts/vss_connection.py index b150b9a9..e33d6c56 100644 --- a/vsts/vsts/vss_connection.py +++ b/vsts/vsts/vss_connection.py @@ -77,14 +77,14 @@ def _get_resource_areas(self, force=False): location_client = LocationClient(self.base_url, self._creds) if not force and RESOURCE_FILE_CACHE[location_client.normalized_url]: try: - logging.info('File cache hit for resources on: %s', location_client.normalized_url) + logging.debug('File cache hit for resources on: %s', location_client.normalized_url) self._resource_areas = location_client._base_deserialize.deserialize_data(RESOURCE_FILE_CACHE[location_client.normalized_url], '[ResourceAreaInfo]') return self._resource_areas except Exception as ex: logging.exception(str(ex)) elif not force: - logging.info('File cache miss for resources on: %s', location_client.normalized_url) + logging.debug('File cache miss for resources on: %s', location_client.normalized_url) self._resource_areas = location_client.get_resource_areas() if self._resource_areas is None: # For OnPrem environments we get an empty collection wrapper. From d8aa3e545061bdb8d07ddd6e7f4c0aa0c53d1d5c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 27 Apr 2018 13:43:00 -0400 Subject: [PATCH 034/191] regenerate clients after fixing float data types in models. --- .../contributions/v4_0/models/extension_manifest.py | 4 ++-- .../contributions/v4_0/models/installed_extension.py | 4 ++-- .../v4_0/models/resolved_data_provider.py | 4 ++-- .../contributions/v4_1/models/extension_manifest.py | 4 ++-- .../contributions/v4_1/models/installed_extension.py | 4 ++-- .../v4_1/models/resolved_data_provider.py | 4 ++-- vsts/vsts/core/v4_0/models/public_key.py | 8 ++++---- vsts/vsts/core/v4_1/models/public_key.py | 8 ++++---- .../v4_0/models/extension_manifest.py | 4 ++-- .../v4_0/models/extension_statistic.py | 4 ++-- .../v4_0/models/installed_extension.py | 4 ++-- .../v4_1/models/extension_manifest.py | 4 ++-- .../v4_1/models/extension_statistic.py | 4 ++-- .../v4_1/models/installed_extension.py | 4 ++-- .../v4_0/models/file_container_item.py | 8 ++++---- .../v4_1/models/file_container_item.py | 8 ++++---- vsts/vsts/gallery/v4_0/models/event_counts.py | 4 ++-- vsts/vsts/gallery/v4_0/models/extension_statistic.py | 4 ++-- .../gallery/v4_0/models/rating_count_per_rating.py | 4 ++-- vsts/vsts/gallery/v4_0/models/review.py | 4 ++-- vsts/vsts/gallery/v4_0/models/review_summary.py | 4 ++-- vsts/vsts/gallery/v4_1/models/event_counts.py | 4 ++-- vsts/vsts/gallery/v4_1/models/extension_statistic.py | 4 ++-- .../gallery/v4_1/models/rating_count_per_rating.py | 4 ++-- vsts/vsts/gallery/v4_1/models/review.py | 4 ++-- vsts/vsts/gallery/v4_1/models/review_summary.py | 4 ++-- .../v4_0/models/git_async_ref_operation_detail.py | 4 ++-- .../v4_1/models/git_async_ref_operation_detail.py | 4 ++-- .../licensing/v4_0/models/client_rights_container.py | 4 ++-- .../licensing/v4_1/models/client_rights_container.py | 4 ++-- .../notification/v4_0/models/field_input_values.py | 4 ++-- .../notification/v4_1/models/field_input_values.py | 4 ++-- .../v4_0/models/language_statistics.py | 12 ++++++------ .../v4_1/models/language_statistics.py | 8 ++++---- vsts/vsts/release/v4_0/models/release_environment.py | 4 ++-- vsts/vsts/release/v4_1/models/release_environment.py | 4 ++-- .../v4_0/models/notification_details.py | 4 ++-- vsts/vsts/service_hooks/v4_0/models/subscription.py | 4 ++-- .../v4_1/models/notification_details.py | 4 ++-- vsts/vsts/service_hooks/v4_1/models/subscription.py | 4 ++-- .../task_agent/v4_0/models/task_agent_message.py | 4 ++-- .../task_agent/v4_0/models/task_agent_public_key.py | 8 ++++---- .../task_agent/v4_0/models/task_agent_session_key.py | 4 ++-- .../task_agent/v4_1/models/task_agent_message.py | 4 ++-- .../task_agent/v4_1/models/task_agent_public_key.py | 8 ++++---- .../task_agent/v4_1/models/task_agent_session_key.py | 4 ++-- .../test/v4_0/models/code_coverage_statistics.py | 4 ++-- vsts/vsts/test/v4_0/models/module_coverage.py | 4 ++-- .../test/v4_0/models/test_action_result_model.py | 4 ++-- vsts/vsts/test/v4_0/models/test_case_result.py | 4 ++-- .../test/v4_0/models/test_iteration_details_model.py | 4 ++-- vsts/vsts/test/v4_0/models/test_result_model_base.py | 4 ++-- .../test/v4_1/models/code_coverage_statistics.py | 4 ++-- vsts/vsts/test/v4_1/models/module_coverage.py | 4 ++-- .../test/v4_1/models/test_action_result_model.py | 4 ++-- vsts/vsts/test/v4_1/models/test_case_result.py | 4 ++-- .../test/v4_1/models/test_iteration_details_model.py | 4 ++-- vsts/vsts/test/v4_1/models/test_result_model_base.py | 4 ++-- vsts/vsts/work/v4_0/models/activity.py | 4 ++-- vsts/vsts/work/v4_1/models/activity.py | 4 ++-- 60 files changed, 138 insertions(+), 138 deletions(-) diff --git a/vsts/vsts/contributions/v4_0/models/extension_manifest.py b/vsts/vsts/contributions/v4_0/models/extension_manifest.py index dff371a9..7607a69c 100644 --- a/vsts/vsts/contributions/v4_0/models/extension_manifest.py +++ b/vsts/vsts/contributions/v4_0/models/extension_manifest.py @@ -29,7 +29,7 @@ class ExtensionManifest(Model): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -45,7 +45,7 @@ class ExtensionManifest(Model): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} } diff --git a/vsts/vsts/contributions/v4_0/models/installed_extension.py b/vsts/vsts/contributions/v4_0/models/installed_extension.py index e8f24964..0e788d4e 100644 --- a/vsts/vsts/contributions/v4_0/models/installed_extension.py +++ b/vsts/vsts/contributions/v4_0/models/installed_extension.py @@ -29,7 +29,7 @@ class InstalledExtension(ExtensionManifest): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -65,7 +65,7 @@ class InstalledExtension(ExtensionManifest): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, 'extension_id': {'key': 'extensionId', 'type': 'str'}, diff --git a/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py b/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py index 75845c8e..e8108fd9 100644 --- a/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py +++ b/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py @@ -13,7 +13,7 @@ class ResolvedDataProvider(Model): """ResolvedDataProvider. :param duration: The total time the data provider took to resolve its data (in milliseconds) - :type duration: number + :type duration: int :param error: :type error: str :param id: @@ -21,7 +21,7 @@ class ResolvedDataProvider(Model): """ _attribute_map = { - 'duration': {'key': 'duration', 'type': 'number'}, + 'duration': {'key': 'duration', 'type': 'int'}, 'error': {'key': 'error', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'} } diff --git a/vsts/vsts/contributions/v4_1/models/extension_manifest.py b/vsts/vsts/contributions/v4_1/models/extension_manifest.py index 2b8a5c1e..3976f87e 100644 --- a/vsts/vsts/contributions/v4_1/models/extension_manifest.py +++ b/vsts/vsts/contributions/v4_1/models/extension_manifest.py @@ -31,7 +31,7 @@ class ExtensionManifest(Model): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension @@ -50,7 +50,7 @@ class ExtensionManifest(Model): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension.py b/vsts/vsts/contributions/v4_1/models/installed_extension.py index af0c7ff1..af819634 100644 --- a/vsts/vsts/contributions/v4_1/models/installed_extension.py +++ b/vsts/vsts/contributions/v4_1/models/installed_extension.py @@ -31,7 +31,7 @@ class InstalledExtension(ExtensionManifest): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension @@ -70,7 +70,7 @@ class InstalledExtension(ExtensionManifest): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, diff --git a/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py b/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py index 75845c8e..e8108fd9 100644 --- a/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py +++ b/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py @@ -13,7 +13,7 @@ class ResolvedDataProvider(Model): """ResolvedDataProvider. :param duration: The total time the data provider took to resolve its data (in milliseconds) - :type duration: number + :type duration: int :param error: :type error: str :param id: @@ -21,7 +21,7 @@ class ResolvedDataProvider(Model): """ _attribute_map = { - 'duration': {'key': 'duration', 'type': 'number'}, + 'duration': {'key': 'duration', 'type': 'int'}, 'error': {'key': 'error', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'} } diff --git a/vsts/vsts/core/v4_0/models/public_key.py b/vsts/vsts/core/v4_0/models/public_key.py index 878b6731..ca2af5f2 100644 --- a/vsts/vsts/core/v4_0/models/public_key.py +++ b/vsts/vsts/core/v4_0/models/public_key.py @@ -13,14 +13,14 @@ class PublicKey(Model): """PublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of number + :type exponent: list of int :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of number + :type modulus: list of int """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[number]'}, - 'modulus': {'key': 'modulus', 'type': '[number]'} + 'exponent': {'key': 'exponent', 'type': '[int]'}, + 'modulus': {'key': 'modulus', 'type': '[int]'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/core/v4_1/models/public_key.py b/vsts/vsts/core/v4_1/models/public_key.py index 878b6731..ca2af5f2 100644 --- a/vsts/vsts/core/v4_1/models/public_key.py +++ b/vsts/vsts/core/v4_1/models/public_key.py @@ -13,14 +13,14 @@ class PublicKey(Model): """PublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of number + :type exponent: list of int :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of number + :type modulus: list of int """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[number]'}, - 'modulus': {'key': 'modulus', 'type': '[number]'} + 'exponent': {'key': 'exponent', 'type': '[int]'}, + 'modulus': {'key': 'modulus', 'type': '[int]'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/extension_management/v4_0/models/extension_manifest.py b/vsts/vsts/extension_management/v4_0/models/extension_manifest.py index 9d0670dd..3baa03bc 100644 --- a/vsts/vsts/extension_management/v4_0/models/extension_manifest.py +++ b/vsts/vsts/extension_management/v4_0/models/extension_manifest.py @@ -29,7 +29,7 @@ class ExtensionManifest(Model): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -45,7 +45,7 @@ class ExtensionManifest(Model): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} } diff --git a/vsts/vsts/extension_management/v4_0/models/extension_statistic.py b/vsts/vsts/extension_management/v4_0/models/extension_statistic.py index 11fc6704..3929b9e6 100644 --- a/vsts/vsts/extension_management/v4_0/models/extension_statistic.py +++ b/vsts/vsts/extension_management/v4_0/models/extension_statistic.py @@ -15,12 +15,12 @@ class ExtensionStatistic(Model): :param statistic_name: :type statistic_name: str :param value: - :type value: number + :type value: float """ _attribute_map = { 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'number'} + 'value': {'key': 'value', 'type': 'float'} } def __init__(self, statistic_name=None, value=None): diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension.py b/vsts/vsts/extension_management/v4_0/models/installed_extension.py index 08230147..9886ff5e 100644 --- a/vsts/vsts/extension_management/v4_0/models/installed_extension.py +++ b/vsts/vsts/extension_management/v4_0/models/installed_extension.py @@ -29,7 +29,7 @@ class InstalledExtension(ExtensionManifest): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -65,7 +65,7 @@ class InstalledExtension(ExtensionManifest): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, 'extension_id': {'key': 'extensionId', 'type': 'str'}, diff --git a/vsts/vsts/extension_management/v4_1/models/extension_manifest.py b/vsts/vsts/extension_management/v4_1/models/extension_manifest.py index 46be29c9..44060f2e 100644 --- a/vsts/vsts/extension_management/v4_1/models/extension_manifest.py +++ b/vsts/vsts/extension_management/v4_1/models/extension_manifest.py @@ -31,7 +31,7 @@ class ExtensionManifest(Model): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension @@ -50,7 +50,7 @@ class ExtensionManifest(Model): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} diff --git a/vsts/vsts/extension_management/v4_1/models/extension_statistic.py b/vsts/vsts/extension_management/v4_1/models/extension_statistic.py index 11fc6704..3929b9e6 100644 --- a/vsts/vsts/extension_management/v4_1/models/extension_statistic.py +++ b/vsts/vsts/extension_management/v4_1/models/extension_statistic.py @@ -15,12 +15,12 @@ class ExtensionStatistic(Model): :param statistic_name: :type statistic_name: str :param value: - :type value: number + :type value: float """ _attribute_map = { 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'number'} + 'value': {'key': 'value', 'type': 'float'} } def __init__(self, statistic_name=None, value=None): diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension.py b/vsts/vsts/extension_management/v4_1/models/installed_extension.py index 27297904..3dfe2e1f 100644 --- a/vsts/vsts/extension_management/v4_1/models/installed_extension.py +++ b/vsts/vsts/extension_management/v4_1/models/installed_extension.py @@ -31,7 +31,7 @@ class InstalledExtension(ExtensionManifest): :param licensing: How this extension behaves with respect to licensing :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content - :type manifest_version: number + :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension @@ -70,7 +70,7 @@ class InstalledExtension(ExtensionManifest): 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'number'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, diff --git a/vsts/vsts/file_container/v4_0/models/file_container_item.py b/vsts/vsts/file_container/v4_0/models/file_container_item.py index e53626c5..cd3b346d 100644 --- a/vsts/vsts/file_container/v4_0/models/file_container_item.py +++ b/vsts/vsts/file_container/v4_0/models/file_container_item.py @@ -15,7 +15,7 @@ class FileContainerItem(Model): :param container_id: Container Id. :type container_id: long :param content_id: - :type content_id: list of number + :type content_id: list of int :param content_location: Download Url for the content of this item. :type content_location: str :param created_by: Creator. @@ -27,7 +27,7 @@ class FileContainerItem(Model): :param file_encoding: Encoding of the file. Zero if not a file. :type file_encoding: int :param file_hash: Hash value of the file. Null if not a file. - :type file_hash: list of number + :type file_hash: list of int :param file_id: Id of the file content. :type file_id: int :param file_length: Length of the file. Zero if not of a file. @@ -52,13 +52,13 @@ class FileContainerItem(Model): _attribute_map = { 'container_id': {'key': 'containerId', 'type': 'long'}, - 'content_id': {'key': 'contentId', 'type': '[number]'}, + 'content_id': {'key': 'contentId', 'type': '[int]'}, 'content_location': {'key': 'contentLocation', 'type': 'str'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, 'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'}, 'file_encoding': {'key': 'fileEncoding', 'type': 'int'}, - 'file_hash': {'key': 'fileHash', 'type': '[number]'}, + 'file_hash': {'key': 'fileHash', 'type': '[int]'}, 'file_id': {'key': 'fileId', 'type': 'int'}, 'file_length': {'key': 'fileLength', 'type': 'long'}, 'file_type': {'key': 'fileType', 'type': 'int'}, diff --git a/vsts/vsts/file_container/v4_1/models/file_container_item.py b/vsts/vsts/file_container/v4_1/models/file_container_item.py index e53626c5..cd3b346d 100644 --- a/vsts/vsts/file_container/v4_1/models/file_container_item.py +++ b/vsts/vsts/file_container/v4_1/models/file_container_item.py @@ -15,7 +15,7 @@ class FileContainerItem(Model): :param container_id: Container Id. :type container_id: long :param content_id: - :type content_id: list of number + :type content_id: list of int :param content_location: Download Url for the content of this item. :type content_location: str :param created_by: Creator. @@ -27,7 +27,7 @@ class FileContainerItem(Model): :param file_encoding: Encoding of the file. Zero if not a file. :type file_encoding: int :param file_hash: Hash value of the file. Null if not a file. - :type file_hash: list of number + :type file_hash: list of int :param file_id: Id of the file content. :type file_id: int :param file_length: Length of the file. Zero if not of a file. @@ -52,13 +52,13 @@ class FileContainerItem(Model): _attribute_map = { 'container_id': {'key': 'containerId', 'type': 'long'}, - 'content_id': {'key': 'contentId', 'type': '[number]'}, + 'content_id': {'key': 'contentId', 'type': '[int]'}, 'content_location': {'key': 'contentLocation', 'type': 'str'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, 'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'}, 'file_encoding': {'key': 'fileEncoding', 'type': 'int'}, - 'file_hash': {'key': 'fileHash', 'type': '[number]'}, + 'file_hash': {'key': 'fileHash', 'type': '[int]'}, 'file_id': {'key': 'fileId', 'type': 'int'}, 'file_length': {'key': 'fileLength', 'type': 'long'}, 'file_type': {'key': 'fileType', 'type': 'int'}, diff --git a/vsts/vsts/gallery/v4_0/models/event_counts.py b/vsts/vsts/gallery/v4_0/models/event_counts.py index dc65473e..8955ef7d 100644 --- a/vsts/vsts/gallery/v4_0/models/event_counts.py +++ b/vsts/vsts/gallery/v4_0/models/event_counts.py @@ -13,7 +13,7 @@ class EventCounts(Model): """EventCounts. :param average_rating: Average rating on the day for extension - :type average_rating: number + :type average_rating: int :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) :type buy_count: int :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) @@ -33,7 +33,7 @@ class EventCounts(Model): """ _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'average_rating': {'key': 'averageRating', 'type': 'int'}, 'buy_count': {'key': 'buyCount', 'type': 'int'}, 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, diff --git a/vsts/vsts/gallery/v4_0/models/extension_statistic.py b/vsts/vsts/gallery/v4_0/models/extension_statistic.py index 11fc6704..3929b9e6 100644 --- a/vsts/vsts/gallery/v4_0/models/extension_statistic.py +++ b/vsts/vsts/gallery/v4_0/models/extension_statistic.py @@ -15,12 +15,12 @@ class ExtensionStatistic(Model): :param statistic_name: :type statistic_name: str :param value: - :type value: number + :type value: float """ _attribute_map = { 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'number'} + 'value': {'key': 'value', 'type': 'float'} } def __init__(self, statistic_name=None, value=None): diff --git a/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py index 4c6b6461..b0bf7c9a 100644 --- a/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py +++ b/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py @@ -13,13 +13,13 @@ class RatingCountPerRating(Model): """RatingCountPerRating. :param rating: Rating value - :type rating: number + :type rating: int :param rating_count: Count of total ratings :type rating_count: long """ _attribute_map = { - 'rating': {'key': 'rating', 'type': 'number'}, + 'rating': {'key': 'rating', 'type': 'int'}, 'rating_count': {'key': 'ratingCount', 'type': 'long'} } diff --git a/vsts/vsts/gallery/v4_0/models/review.py b/vsts/vsts/gallery/v4_0/models/review.py index 2b521429..9ba91f10 100644 --- a/vsts/vsts/gallery/v4_0/models/review.py +++ b/vsts/vsts/gallery/v4_0/models/review.py @@ -23,7 +23,7 @@ class Review(Model): :param product_version: Version of the product for which review was submitted :type product_version: str :param rating: Rating procided by the user - :type rating: number + :type rating: int :param reply: Reply, if any, for this review :type reply: :class:`ReviewReply ` :param text: Text description of the review @@ -44,7 +44,7 @@ class Review(Model): 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'rating': {'key': 'rating', 'type': 'number'}, + 'rating': {'key': 'rating', 'type': 'int'}, 'reply': {'key': 'reply', 'type': 'ReviewReply'}, 'text': {'key': 'text', 'type': 'str'}, 'title': {'key': 'title', 'type': 'str'}, diff --git a/vsts/vsts/gallery/v4_0/models/review_summary.py b/vsts/vsts/gallery/v4_0/models/review_summary.py index 4b32e329..be100341 100644 --- a/vsts/vsts/gallery/v4_0/models/review_summary.py +++ b/vsts/vsts/gallery/v4_0/models/review_summary.py @@ -13,7 +13,7 @@ class ReviewSummary(Model): """ReviewSummary. :param average_rating: Average Rating - :type average_rating: number + :type average_rating: int :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating @@ -21,7 +21,7 @@ class ReviewSummary(Model): """ _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'average_rating': {'key': 'averageRating', 'type': 'int'}, 'rating_count': {'key': 'ratingCount', 'type': 'long'}, 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} } diff --git a/vsts/vsts/gallery/v4_1/models/event_counts.py b/vsts/vsts/gallery/v4_1/models/event_counts.py index dc65473e..8955ef7d 100644 --- a/vsts/vsts/gallery/v4_1/models/event_counts.py +++ b/vsts/vsts/gallery/v4_1/models/event_counts.py @@ -13,7 +13,7 @@ class EventCounts(Model): """EventCounts. :param average_rating: Average rating on the day for extension - :type average_rating: number + :type average_rating: int :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) :type buy_count: int :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) @@ -33,7 +33,7 @@ class EventCounts(Model): """ _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'average_rating': {'key': 'averageRating', 'type': 'int'}, 'buy_count': {'key': 'buyCount', 'type': 'int'}, 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, diff --git a/vsts/vsts/gallery/v4_1/models/extension_statistic.py b/vsts/vsts/gallery/v4_1/models/extension_statistic.py index 11fc6704..3929b9e6 100644 --- a/vsts/vsts/gallery/v4_1/models/extension_statistic.py +++ b/vsts/vsts/gallery/v4_1/models/extension_statistic.py @@ -15,12 +15,12 @@ class ExtensionStatistic(Model): :param statistic_name: :type statistic_name: str :param value: - :type value: number + :type value: float """ _attribute_map = { 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'number'} + 'value': {'key': 'value', 'type': 'float'} } def __init__(self, statistic_name=None, value=None): diff --git a/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py index 4c6b6461..b0bf7c9a 100644 --- a/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py +++ b/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py @@ -13,13 +13,13 @@ class RatingCountPerRating(Model): """RatingCountPerRating. :param rating: Rating value - :type rating: number + :type rating: int :param rating_count: Count of total ratings :type rating_count: long """ _attribute_map = { - 'rating': {'key': 'rating', 'type': 'number'}, + 'rating': {'key': 'rating', 'type': 'int'}, 'rating_count': {'key': 'ratingCount', 'type': 'long'} } diff --git a/vsts/vsts/gallery/v4_1/models/review.py b/vsts/vsts/gallery/v4_1/models/review.py index b044c784..ffa52f13 100644 --- a/vsts/vsts/gallery/v4_1/models/review.py +++ b/vsts/vsts/gallery/v4_1/models/review.py @@ -23,7 +23,7 @@ class Review(Model): :param product_version: Version of the product for which review was submitted :type product_version: str :param rating: Rating procided by the user - :type rating: number + :type rating: int :param reply: Reply, if any, for this review :type reply: :class:`ReviewReply ` :param text: Text description of the review @@ -44,7 +44,7 @@ class Review(Model): 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'rating': {'key': 'rating', 'type': 'number'}, + 'rating': {'key': 'rating', 'type': 'int'}, 'reply': {'key': 'reply', 'type': 'ReviewReply'}, 'text': {'key': 'text', 'type': 'str'}, 'title': {'key': 'title', 'type': 'str'}, diff --git a/vsts/vsts/gallery/v4_1/models/review_summary.py b/vsts/vsts/gallery/v4_1/models/review_summary.py index 971d7479..24c9bad4 100644 --- a/vsts/vsts/gallery/v4_1/models/review_summary.py +++ b/vsts/vsts/gallery/v4_1/models/review_summary.py @@ -13,7 +13,7 @@ class ReviewSummary(Model): """ReviewSummary. :param average_rating: Average Rating - :type average_rating: number + :type average_rating: int :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating @@ -21,7 +21,7 @@ class ReviewSummary(Model): """ _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'number'}, + 'average_rating': {'key': 'averageRating', 'type': 'int'}, 'rating_count': {'key': 'ratingCount', 'type': 'long'}, 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} } diff --git a/vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py b/vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py index 37335a44..dd80ba0a 100644 --- a/vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py +++ b/vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py @@ -19,7 +19,7 @@ class GitAsyncRefOperationDetail(Model): :param failure_message: :type failure_message: str :param progress: - :type progress: number + :type progress: float :param status: :type status: object :param timedout: @@ -30,7 +30,7 @@ class GitAsyncRefOperationDetail(Model): 'conflict': {'key': 'conflict', 'type': 'bool'}, 'current_commit_id': {'key': 'currentCommitId', 'type': 'str'}, 'failure_message': {'key': 'failureMessage', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'number'}, + 'progress': {'key': 'progress', 'type': 'float'}, 'status': {'key': 'status', 'type': 'object'}, 'timedout': {'key': 'timedout', 'type': 'bool'} } diff --git a/vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py b/vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py index 227b9c74..6da55de6 100644 --- a/vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py +++ b/vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py @@ -19,7 +19,7 @@ class GitAsyncRefOperationDetail(Model): :param failure_message: Detailed information about why the cherry pick or revert failed to complete. :type failure_message: str :param progress: A number between 0 and 1 indicating the percent complete of the operation. - :type progress: number + :type progress: float :param status: Provides a status code that indicates the reason the cherry pick or revert failed. :type status: object :param timedout: Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation. @@ -30,7 +30,7 @@ class GitAsyncRefOperationDetail(Model): 'conflict': {'key': 'conflict', 'type': 'bool'}, 'current_commit_id': {'key': 'currentCommitId', 'type': 'str'}, 'failure_message': {'key': 'failureMessage', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'number'}, + 'progress': {'key': 'progress', 'type': 'float'}, 'status': {'key': 'status', 'type': 'object'}, 'timedout': {'key': 'timedout', 'type': 'bool'} } diff --git a/vsts/vsts/licensing/v4_0/models/client_rights_container.py b/vsts/vsts/licensing/v4_0/models/client_rights_container.py index 299142d4..6f4bac01 100644 --- a/vsts/vsts/licensing/v4_0/models/client_rights_container.py +++ b/vsts/vsts/licensing/v4_0/models/client_rights_container.py @@ -13,13 +13,13 @@ class ClientRightsContainer(Model): """ClientRightsContainer. :param certificate_bytes: - :type certificate_bytes: list of number + :type certificate_bytes: list of int :param token: :type token: str """ _attribute_map = { - 'certificate_bytes': {'key': 'certificateBytes', 'type': '[number]'}, + 'certificate_bytes': {'key': 'certificateBytes', 'type': '[int]'}, 'token': {'key': 'token', 'type': 'str'} } diff --git a/vsts/vsts/licensing/v4_1/models/client_rights_container.py b/vsts/vsts/licensing/v4_1/models/client_rights_container.py index 299142d4..6f4bac01 100644 --- a/vsts/vsts/licensing/v4_1/models/client_rights_container.py +++ b/vsts/vsts/licensing/v4_1/models/client_rights_container.py @@ -13,13 +13,13 @@ class ClientRightsContainer(Model): """ClientRightsContainer. :param certificate_bytes: - :type certificate_bytes: list of number + :type certificate_bytes: list of int :param token: :type token: str """ _attribute_map = { - 'certificate_bytes': {'key': 'certificateBytes', 'type': '[number]'}, + 'certificate_bytes': {'key': 'certificateBytes', 'type': '[int]'}, 'token': {'key': 'token', 'type': 'str'} } diff --git a/vsts/vsts/notification/v4_0/models/field_input_values.py b/vsts/vsts/notification/v4_0/models/field_input_values.py index 4024af7e..fc37704e 100644 --- a/vsts/vsts/notification/v4_0/models/field_input_values.py +++ b/vsts/vsts/notification/v4_0/models/field_input_values.py @@ -27,7 +27,7 @@ class FieldInputValues(InputValues): :param possible_values: Possible values that this input can take :type possible_values: list of :class:`InputValue ` :param operators: - :type operators: list of number + :type operators: list of int """ _attribute_map = { @@ -38,7 +38,7 @@ class FieldInputValues(InputValues): 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, - 'operators': {'key': 'operators', 'type': '[number]'} + 'operators': {'key': 'operators', 'type': '[int]'} } def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): diff --git a/vsts/vsts/notification/v4_1/models/field_input_values.py b/vsts/vsts/notification/v4_1/models/field_input_values.py index d8bfe127..f36b54ec 100644 --- a/vsts/vsts/notification/v4_1/models/field_input_values.py +++ b/vsts/vsts/notification/v4_1/models/field_input_values.py @@ -27,7 +27,7 @@ class FieldInputValues(InputValues): :param possible_values: Possible values that this input can take :type possible_values: list of :class:`InputValue ` :param operators: - :type operators: list of number + :type operators: list of int """ _attribute_map = { @@ -38,7 +38,7 @@ class FieldInputValues(InputValues): 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, - 'operators': {'key': 'operators', 'type': '[number]'} + 'operators': {'key': 'operators', 'type': '[int]'} } def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): diff --git a/vsts/vsts/project_analysis/v4_0/models/language_statistics.py b/vsts/vsts/project_analysis/v4_0/models/language_statistics.py index 998b34e1..f9c09cd7 100644 --- a/vsts/vsts/project_analysis/v4_0/models/language_statistics.py +++ b/vsts/vsts/project_analysis/v4_0/models/language_statistics.py @@ -15,24 +15,24 @@ class LanguageStatistics(Model): :param bytes: :type bytes: long :param bytes_percentage: - :type bytes_percentage: number + :type bytes_percentage: float :param files: :type files: int :param files_percentage: - :type files_percentage: number + :type files_percentage: float :param name: :type name: str :param weighted_bytes_percentage: - :type weighted_bytes_percentage: number + :type weighted_bytes_percentage: float """ _attribute_map = { 'bytes': {'key': 'bytes', 'type': 'long'}, - 'bytes_percentage': {'key': 'bytesPercentage', 'type': 'number'}, + 'bytes_percentage': {'key': 'bytesPercentage', 'type': 'float'}, 'files': {'key': 'files', 'type': 'int'}, - 'files_percentage': {'key': 'filesPercentage', 'type': 'number'}, + 'files_percentage': {'key': 'filesPercentage', 'type': 'float'}, 'name': {'key': 'name', 'type': 'str'}, - 'weighted_bytes_percentage': {'key': 'weightedBytesPercentage', 'type': 'number'} + 'weighted_bytes_percentage': {'key': 'weightedBytesPercentage', 'type': 'float'} } def __init__(self, bytes=None, bytes_percentage=None, files=None, files_percentage=None, name=None, weighted_bytes_percentage=None): diff --git a/vsts/vsts/project_analysis/v4_1/models/language_statistics.py b/vsts/vsts/project_analysis/v4_1/models/language_statistics.py index 2f777576..b794d617 100644 --- a/vsts/vsts/project_analysis/v4_1/models/language_statistics.py +++ b/vsts/vsts/project_analysis/v4_1/models/language_statistics.py @@ -23,9 +23,9 @@ class LanguageStatistics(LanguageMetricsSecuredObject): :param files: :type files: int :param files_percentage: - :type files_percentage: number + :type files_percentage: float :param language_percentage: - :type language_percentage: number + :type language_percentage: float :param name: :type name: str """ @@ -36,8 +36,8 @@ class LanguageStatistics(LanguageMetricsSecuredObject): 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, 'bytes': {'key': 'bytes', 'type': 'long'}, 'files': {'key': 'files', 'type': 'int'}, - 'files_percentage': {'key': 'filesPercentage', 'type': 'number'}, - 'language_percentage': {'key': 'languagePercentage', 'type': 'number'}, + 'files_percentage': {'key': 'filesPercentage', 'type': 'float'}, + 'language_percentage': {'key': 'languagePercentage', 'type': 'float'}, 'name': {'key': 'name', 'type': 'str'} } diff --git a/vsts/vsts/release/v4_0/models/release_environment.py b/vsts/vsts/release/v4_0/models/release_environment.py index 252252e5..f6fc3f5a 100644 --- a/vsts/vsts/release/v4_0/models/release_environment.py +++ b/vsts/vsts/release/v4_0/models/release_environment.py @@ -67,7 +67,7 @@ class ReleaseEnvironment(Model): :param status: Gets environment status. :type status: object :param time_to_deploy: Gets time to deploy. - :type time_to_deploy: number + :type time_to_deploy: float :param trigger_reason: Gets trigger reason. :type trigger_reason: str :param variables: Gets the dictionary of variables. @@ -104,7 +104,7 @@ class ReleaseEnvironment(Model): 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, 'status': {'key': 'status', 'type': 'object'}, - 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'number'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} diff --git a/vsts/vsts/release/v4_1/models/release_environment.py b/vsts/vsts/release/v4_1/models/release_environment.py index 339ccefb..ec5d607e 100644 --- a/vsts/vsts/release/v4_1/models/release_environment.py +++ b/vsts/vsts/release/v4_1/models/release_environment.py @@ -71,7 +71,7 @@ class ReleaseEnvironment(Model): :param status: Gets environment status. :type status: object :param time_to_deploy: Gets time to deploy. - :type time_to_deploy: number + :type time_to_deploy: float :param trigger_reason: Gets trigger reason. :type trigger_reason: str :param variable_groups: Gets the list of variable groups. @@ -112,7 +112,7 @@ class ReleaseEnvironment(Model): 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, 'status': {'key': 'status', 'type': 'object'}, - 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'number'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, diff --git a/vsts/vsts/service_hooks/v4_0/models/notification_details.py b/vsts/vsts/service_hooks/v4_0/models/notification_details.py index f71beb0a..9f037e35 100644 --- a/vsts/vsts/service_hooks/v4_0/models/notification_details.py +++ b/vsts/vsts/service_hooks/v4_0/models/notification_details.py @@ -43,7 +43,7 @@ class NotificationDetails(Model): :param request_attempts: Number of requests attempted to be sent to the consumer :type request_attempts: int :param request_duration: Duration of the request to the consumer in seconds - :type request_duration: number + :type request_duration: float :param response: Gets or sets this notification detail's reponse. :type response: str """ @@ -64,7 +64,7 @@ class NotificationDetails(Model): 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, 'request': {'key': 'request', 'type': 'str'}, 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, - 'request_duration': {'key': 'requestDuration', 'type': 'number'}, + 'request_duration': {'key': 'requestDuration', 'type': 'float'}, 'response': {'key': 'response', 'type': 'str'} } diff --git a/vsts/vsts/service_hooks/v4_0/models/subscription.py b/vsts/vsts/service_hooks/v4_0/models/subscription.py index 853db6ce..e33a7ef1 100644 --- a/vsts/vsts/service_hooks/v4_0/models/subscription.py +++ b/vsts/vsts/service_hooks/v4_0/models/subscription.py @@ -37,7 +37,7 @@ class Subscription(Model): :param modified_date: :type modified_date: datetime :param probation_retries: - :type probation_retries: number + :type probation_retries: int :param publisher_id: :type publisher_id: str :param publisher_inputs: Publisher input values @@ -65,7 +65,7 @@ class Subscription(Model): 'id': {'key': 'id', 'type': 'str'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'probation_retries': {'key': 'probationRetries', 'type': 'number'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'int'}, 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, diff --git a/vsts/vsts/service_hooks/v4_1/models/notification_details.py b/vsts/vsts/service_hooks/v4_1/models/notification_details.py index ba1d96ab..59f5977f 100644 --- a/vsts/vsts/service_hooks/v4_1/models/notification_details.py +++ b/vsts/vsts/service_hooks/v4_1/models/notification_details.py @@ -43,7 +43,7 @@ class NotificationDetails(Model): :param request_attempts: Number of requests attempted to be sent to the consumer :type request_attempts: int :param request_duration: Duration of the request to the consumer in seconds - :type request_duration: number + :type request_duration: float :param response: Gets or sets this notification detail's reponse. :type response: str """ @@ -64,7 +64,7 @@ class NotificationDetails(Model): 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, 'request': {'key': 'request', 'type': 'str'}, 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, - 'request_duration': {'key': 'requestDuration', 'type': 'number'}, + 'request_duration': {'key': 'requestDuration', 'type': 'float'}, 'response': {'key': 'response', 'type': 'str'} } diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription.py b/vsts/vsts/service_hooks/v4_1/models/subscription.py index 1991f641..31f3eecf 100644 --- a/vsts/vsts/service_hooks/v4_1/models/subscription.py +++ b/vsts/vsts/service_hooks/v4_1/models/subscription.py @@ -37,7 +37,7 @@ class Subscription(Model): :param modified_date: :type modified_date: datetime :param probation_retries: - :type probation_retries: number + :type probation_retries: int :param publisher_id: :type publisher_id: str :param publisher_inputs: Publisher input values @@ -65,7 +65,7 @@ class Subscription(Model): 'id': {'key': 'id', 'type': 'str'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'probation_retries': {'key': 'probationRetries', 'type': 'number'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'int'}, 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_message.py b/vsts/vsts/task_agent/v4_0/models/task_agent_message.py index 5b4e7a78..c71063a8 100644 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_message.py +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_message.py @@ -15,7 +15,7 @@ class TaskAgentMessage(Model): :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. :type body: str :param iV: Gets or sets the intialization vector used to encrypt this message. - :type iV: list of number + :type iV: list of int :param message_id: Gets or sets the message identifier. :type message_id: long :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. @@ -24,7 +24,7 @@ class TaskAgentMessage(Model): _attribute_map = { 'body': {'key': 'body', 'type': 'str'}, - 'iV': {'key': 'iV', 'type': '[number]'}, + 'iV': {'key': 'iV', 'type': '[int]'}, 'message_id': {'key': 'messageId', 'type': 'long'}, 'message_type': {'key': 'messageType', 'type': 'str'} } diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py index 32ad5940..ef6c0de5 100644 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py @@ -13,14 +13,14 @@ class TaskAgentPublicKey(Model): """TaskAgentPublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of number + :type exponent: list of int :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of number + :type modulus: list of int """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[number]'}, - 'modulus': {'key': 'modulus', 'type': '[number]'} + 'exponent': {'key': 'exponent', 'type': '[int]'}, + 'modulus': {'key': 'modulus', 'type': '[int]'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py index 6015a042..9192c775 100644 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py @@ -15,12 +15,12 @@ class TaskAgentSessionKey(Model): :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. :type encrypted: bool :param value: Gets or sets the symmetric key value. - :type value: list of number + :type value: list of int """ _attribute_map = { 'encrypted': {'key': 'encrypted', 'type': 'bool'}, - 'value': {'key': 'value', 'type': '[number]'} + 'value': {'key': 'value', 'type': '[int]'} } def __init__(self, encrypted=None, value=None): diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_message.py b/vsts/vsts/task_agent/v4_1/models/task_agent_message.py index 5b4e7a78..c71063a8 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_message.py +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_message.py @@ -15,7 +15,7 @@ class TaskAgentMessage(Model): :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. :type body: str :param iV: Gets or sets the intialization vector used to encrypt this message. - :type iV: list of number + :type iV: list of int :param message_id: Gets or sets the message identifier. :type message_id: long :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. @@ -24,7 +24,7 @@ class TaskAgentMessage(Model): _attribute_map = { 'body': {'key': 'body', 'type': 'str'}, - 'iV': {'key': 'iV', 'type': '[number]'}, + 'iV': {'key': 'iV', 'type': '[int]'}, 'message_id': {'key': 'messageId', 'type': 'long'}, 'message_type': {'key': 'messageType', 'type': 'str'} } diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py index 32ad5940..ef6c0de5 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py @@ -13,14 +13,14 @@ class TaskAgentPublicKey(Model): """TaskAgentPublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of number + :type exponent: list of int :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of number + :type modulus: list of int """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[number]'}, - 'modulus': {'key': 'modulus', 'type': '[number]'} + 'exponent': {'key': 'exponent', 'type': '[int]'}, + 'modulus': {'key': 'modulus', 'type': '[int]'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py index 6015a042..9192c775 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py @@ -15,12 +15,12 @@ class TaskAgentSessionKey(Model): :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. :type encrypted: bool :param value: Gets or sets the symmetric key value. - :type value: list of number + :type value: list of int """ _attribute_map = { 'encrypted': {'key': 'encrypted', 'type': 'bool'}, - 'value': {'key': 'value', 'type': '[number]'} + 'value': {'key': 'value', 'type': '[int]'} } def __init__(self, encrypted=None, value=None): diff --git a/vsts/vsts/test/v4_0/models/code_coverage_statistics.py b/vsts/vsts/test/v4_0/models/code_coverage_statistics.py index aebd12a1..ccc562ad 100644 --- a/vsts/vsts/test/v4_0/models/code_coverage_statistics.py +++ b/vsts/vsts/test/v4_0/models/code_coverage_statistics.py @@ -15,7 +15,7 @@ class CodeCoverageStatistics(Model): :param covered: Covered units :type covered: int :param delta: Delta of coverage - :type delta: number + :type delta: float :param is_delta_available: Is delta valid :type is_delta_available: bool :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) @@ -28,7 +28,7 @@ class CodeCoverageStatistics(Model): _attribute_map = { 'covered': {'key': 'covered', 'type': 'int'}, - 'delta': {'key': 'delta', 'type': 'number'}, + 'delta': {'key': 'delta', 'type': 'float'}, 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, 'label': {'key': 'label', 'type': 'str'}, 'position': {'key': 'position', 'type': 'int'}, diff --git a/vsts/vsts/test/v4_0/models/module_coverage.py b/vsts/vsts/test/v4_0/models/module_coverage.py index 7ec9ed21..7a0bfeec 100644 --- a/vsts/vsts/test/v4_0/models/module_coverage.py +++ b/vsts/vsts/test/v4_0/models/module_coverage.py @@ -15,7 +15,7 @@ class ModuleCoverage(Model): :param block_count: :type block_count: int :param block_data: - :type block_data: list of number + :type block_data: list of int :param functions: :type functions: list of :class:`FunctionCoverage ` :param name: @@ -30,7 +30,7 @@ class ModuleCoverage(Model): _attribute_map = { 'block_count': {'key': 'blockCount', 'type': 'int'}, - 'block_data': {'key': 'blockData', 'type': '[number]'}, + 'block_data': {'key': 'blockData', 'type': '[int]'}, 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, 'name': {'key': 'name', 'type': 'str'}, 'signature': {'key': 'signature', 'type': 'str'}, diff --git a/vsts/vsts/test/v4_0/models/test_action_result_model.py b/vsts/vsts/test/v4_0/models/test_action_result_model.py index edb7f5e3..43807c93 100644 --- a/vsts/vsts/test/v4_0/models/test_action_result_model.py +++ b/vsts/vsts/test/v4_0/models/test_action_result_model.py @@ -17,7 +17,7 @@ class TestActionResultModel(TestResultModelBase): :param completed_date: :type completed_date: datetime :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param outcome: @@ -39,7 +39,7 @@ class TestActionResultModel(TestResultModelBase): _attribute_map = { 'comment': {'key': 'comment', 'type': 'str'}, 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'outcome': {'key': 'outcome', 'type': 'str'}, 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, diff --git a/vsts/vsts/test/v4_0/models/test_case_result.py b/vsts/vsts/test/v4_0/models/test_case_result.py index 0917b90a..93c5dcec 100644 --- a/vsts/vsts/test/v4_0/models/test_case_result.py +++ b/vsts/vsts/test/v4_0/models/test_case_result.py @@ -45,7 +45,7 @@ class TestCaseResult(Model): :param custom_fields: :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param failing_since: @@ -123,7 +123,7 @@ class TestCaseResult(Model): 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, 'failure_type': {'key': 'failureType', 'type': 'str'}, diff --git a/vsts/vsts/test/v4_0/models/test_iteration_details_model.py b/vsts/vsts/test/v4_0/models/test_iteration_details_model.py index 53d84591..3c7da148 100644 --- a/vsts/vsts/test/v4_0/models/test_iteration_details_model.py +++ b/vsts/vsts/test/v4_0/models/test_iteration_details_model.py @@ -21,7 +21,7 @@ class TestIterationDetailsModel(Model): :param completed_date: :type completed_date: datetime :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param id: @@ -41,7 +41,7 @@ class TestIterationDetailsModel(Model): 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'outcome': {'key': 'outcome', 'type': 'str'}, diff --git a/vsts/vsts/test/v4_0/models/test_result_model_base.py b/vsts/vsts/test/v4_0/models/test_result_model_base.py index ad003905..1c2b428b 100644 --- a/vsts/vsts/test/v4_0/models/test_result_model_base.py +++ b/vsts/vsts/test/v4_0/models/test_result_model_base.py @@ -17,7 +17,7 @@ class TestResultModelBase(Model): :param completed_date: :type completed_date: datetime :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param outcome: @@ -29,7 +29,7 @@ class TestResultModelBase(Model): _attribute_map = { 'comment': {'key': 'comment', 'type': 'str'}, 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'outcome': {'key': 'outcome', 'type': 'str'}, 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} diff --git a/vsts/vsts/test/v4_1/models/code_coverage_statistics.py b/vsts/vsts/test/v4_1/models/code_coverage_statistics.py index aebd12a1..ccc562ad 100644 --- a/vsts/vsts/test/v4_1/models/code_coverage_statistics.py +++ b/vsts/vsts/test/v4_1/models/code_coverage_statistics.py @@ -15,7 +15,7 @@ class CodeCoverageStatistics(Model): :param covered: Covered units :type covered: int :param delta: Delta of coverage - :type delta: number + :type delta: float :param is_delta_available: Is delta valid :type is_delta_available: bool :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) @@ -28,7 +28,7 @@ class CodeCoverageStatistics(Model): _attribute_map = { 'covered': {'key': 'covered', 'type': 'int'}, - 'delta': {'key': 'delta', 'type': 'number'}, + 'delta': {'key': 'delta', 'type': 'float'}, 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, 'label': {'key': 'label', 'type': 'str'}, 'position': {'key': 'position', 'type': 'int'}, diff --git a/vsts/vsts/test/v4_1/models/module_coverage.py b/vsts/vsts/test/v4_1/models/module_coverage.py index 4b384440..4bdb3b3c 100644 --- a/vsts/vsts/test/v4_1/models/module_coverage.py +++ b/vsts/vsts/test/v4_1/models/module_coverage.py @@ -15,7 +15,7 @@ class ModuleCoverage(Model): :param block_count: :type block_count: int :param block_data: - :type block_data: list of number + :type block_data: list of int :param functions: :type functions: list of :class:`FunctionCoverage ` :param name: @@ -30,7 +30,7 @@ class ModuleCoverage(Model): _attribute_map = { 'block_count': {'key': 'blockCount', 'type': 'int'}, - 'block_data': {'key': 'blockData', 'type': '[number]'}, + 'block_data': {'key': 'blockData', 'type': '[int]'}, 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, 'name': {'key': 'name', 'type': 'str'}, 'signature': {'key': 'signature', 'type': 'str'}, diff --git a/vsts/vsts/test/v4_1/models/test_action_result_model.py b/vsts/vsts/test/v4_1/models/test_action_result_model.py index 219e442f..64a39225 100644 --- a/vsts/vsts/test/v4_1/models/test_action_result_model.py +++ b/vsts/vsts/test/v4_1/models/test_action_result_model.py @@ -17,7 +17,7 @@ class TestActionResultModel(TestResultModelBase): :param completed_date: :type completed_date: datetime :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param outcome: @@ -39,7 +39,7 @@ class TestActionResultModel(TestResultModelBase): _attribute_map = { 'comment': {'key': 'comment', 'type': 'str'}, 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'outcome': {'key': 'outcome', 'type': 'str'}, 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, diff --git a/vsts/vsts/test/v4_1/models/test_case_result.py b/vsts/vsts/test/v4_1/models/test_case_result.py index d8515465..6daff435 100644 --- a/vsts/vsts/test/v4_1/models/test_case_result.py +++ b/vsts/vsts/test/v4_1/models/test_case_result.py @@ -45,7 +45,7 @@ class TestCaseResult(Model): :param custom_fields: :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param failing_since: @@ -123,7 +123,7 @@ class TestCaseResult(Model): 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, 'failure_type': {'key': 'failureType', 'type': 'str'}, diff --git a/vsts/vsts/test/v4_1/models/test_iteration_details_model.py b/vsts/vsts/test/v4_1/models/test_iteration_details_model.py index 53599377..fe070b9a 100644 --- a/vsts/vsts/test/v4_1/models/test_iteration_details_model.py +++ b/vsts/vsts/test/v4_1/models/test_iteration_details_model.py @@ -21,7 +21,7 @@ class TestIterationDetailsModel(Model): :param completed_date: :type completed_date: datetime :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param id: @@ -41,7 +41,7 @@ class TestIterationDetailsModel(Model): 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, 'comment': {'key': 'comment', 'type': 'str'}, 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'outcome': {'key': 'outcome', 'type': 'str'}, diff --git a/vsts/vsts/test/v4_1/models/test_result_model_base.py b/vsts/vsts/test/v4_1/models/test_result_model_base.py index ad003905..1c2b428b 100644 --- a/vsts/vsts/test/v4_1/models/test_result_model_base.py +++ b/vsts/vsts/test/v4_1/models/test_result_model_base.py @@ -17,7 +17,7 @@ class TestResultModelBase(Model): :param completed_date: :type completed_date: datetime :param duration_in_ms: - :type duration_in_ms: number + :type duration_in_ms: float :param error_message: :type error_message: str :param outcome: @@ -29,7 +29,7 @@ class TestResultModelBase(Model): _attribute_map = { 'comment': {'key': 'comment', 'type': 'str'}, 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'number'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'outcome': {'key': 'outcome', 'type': 'str'}, 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} diff --git a/vsts/vsts/work/v4_0/models/activity.py b/vsts/vsts/work/v4_0/models/activity.py index 2b9c616f..a0496d0e 100644 --- a/vsts/vsts/work/v4_0/models/activity.py +++ b/vsts/vsts/work/v4_0/models/activity.py @@ -13,13 +13,13 @@ class Activity(Model): """Activity. :param capacity_per_day: - :type capacity_per_day: number + :type capacity_per_day: int :param name: :type name: str """ _attribute_map = { - 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'number'}, + 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'} } diff --git a/vsts/vsts/work/v4_1/models/activity.py b/vsts/vsts/work/v4_1/models/activity.py index 2b9c616f..a0496d0e 100644 --- a/vsts/vsts/work/v4_1/models/activity.py +++ b/vsts/vsts/work/v4_1/models/activity.py @@ -13,13 +13,13 @@ class Activity(Model): """Activity. :param capacity_per_day: - :type capacity_per_day: number + :type capacity_per_day: int :param name: :type name: str """ _attribute_map = { - 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'number'}, + 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'} } From d421a0e4d464c119cd0fde571644b8d428087c7d Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 27 Apr 2018 14:01:23 -0400 Subject: [PATCH 035/191] bump version to 0.1.5 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 57624260..8ad057b7 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.4" +VERSION = "0.1.5" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 7d44455f..f92fd9c9 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.4" +VERSION = "0.1.5" From 0b39e5e60b9f07f50b82a36f017fda0bb5437e87 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 1 May 2018 13:02:22 -0400 Subject: [PATCH 036/191] DeployPhase is an abstract class, convert to object to avoid data loss on deserialization. --- vsts/vsts/release/v4_0/models/__init__.py | 2 - vsts/vsts/release/v4_0/models/deploy_phase.py | 37 ------------------- .../models/release_definition_environment.py | 4 +- .../v4_0/models/release_environment.py | 4 +- vsts/vsts/release/v4_1/models/__init__.py | 2 - vsts/vsts/release/v4_1/models/deploy_phase.py | 37 ------------------- .../models/release_definition_environment.py | 4 +- .../v4_1/models/release_environment.py | 4 +- 8 files changed, 8 insertions(+), 86 deletions(-) delete mode 100644 vsts/vsts/release/v4_0/models/deploy_phase.py delete mode 100644 vsts/vsts/release/v4_1/models/deploy_phase.py diff --git a/vsts/vsts/release/v4_0/models/__init__.py b/vsts/vsts/release/v4_0/models/__init__.py index 03b6a70c..3bf893c1 100644 --- a/vsts/vsts/release/v4_0/models/__init__.py +++ b/vsts/vsts/release/v4_0/models/__init__.py @@ -25,7 +25,6 @@ from .deployment_attempt import DeploymentAttempt from .deployment_job import DeploymentJob from .deployment_query_parameters import DeploymentQueryParameters -from .deploy_phase import DeployPhase from .email_recipients import EmailRecipients from .environment_execution_policy import EnvironmentExecutionPolicy from .environment_options import EnvironmentOptions @@ -109,7 +108,6 @@ 'DeploymentAttempt', 'DeploymentJob', 'DeploymentQueryParameters', - 'DeployPhase', 'EmailRecipients', 'EnvironmentExecutionPolicy', 'EnvironmentOptions', diff --git a/vsts/vsts/release/v4_0/models/deploy_phase.py b/vsts/vsts/release/v4_0/models/deploy_phase.py deleted file mode 100644 index 3aad99e6..00000000 --- a/vsts/vsts/release/v4_0/models/deploy_phase.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeployPhase(Model): - """DeployPhase. - - :param name: - :type name: str - :param phase_type: - :type phase_type: object - :param rank: - :type rank: int - :param workflow_tasks: - :type workflow_tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'phase_type': {'key': 'phaseType', 'type': 'object'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, name=None, phase_type=None, rank=None, workflow_tasks=None): - super(DeployPhase, self).__init__() - self.name = name - self.phase_type = phase_type - self.rank = rank - self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment.py b/vsts/vsts/release/v4_0/models/release_definition_environment.py index 6238a3e7..d936d5ae 100644 --- a/vsts/vsts/release/v4_0/models/release_definition_environment.py +++ b/vsts/vsts/release/v4_0/models/release_definition_environment.py @@ -17,7 +17,7 @@ class ReleaseDefinitionEnvironment(Model): :param demands: :type demands: list of :class:`object ` :param deploy_phases: - :type deploy_phases: list of :class:`DeployPhase ` + :type deploy_phases: list of :class:`object ` :param deploy_step: :type deploy_step: :class:`ReleaseDefinitionDeployStep ` :param environment_options: @@ -55,7 +55,7 @@ class ReleaseDefinitionEnvironment(Model): _attribute_map = { 'conditions': {'key': 'conditions', 'type': '[Condition]'}, 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases': {'key': 'deployPhases', 'type': '[DeployPhase]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, diff --git a/vsts/vsts/release/v4_0/models/release_environment.py b/vsts/vsts/release/v4_0/models/release_environment.py index f6fc3f5a..f7f5f3d8 100644 --- a/vsts/vsts/release/v4_0/models/release_environment.py +++ b/vsts/vsts/release/v4_0/models/release_environment.py @@ -21,7 +21,7 @@ class ReleaseEnvironment(Model): :param demands: Gets demands. :type demands: list of :class:`object ` :param deploy_phases_snapshot: Gets list of deploy phases snapshot. - :type deploy_phases_snapshot: list of :class:`DeployPhase ` + :type deploy_phases_snapshot: list of :class:`object ` :param deploy_steps: Gets deploy steps. :type deploy_steps: list of :class:`DeploymentAttempt ` :param environment_options: Gets environment options. @@ -81,7 +81,7 @@ class ReleaseEnvironment(Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[DeployPhase]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, 'id': {'key': 'id', 'type': 'int'}, diff --git a/vsts/vsts/release/v4_1/models/__init__.py b/vsts/vsts/release/v4_1/models/__init__.py index 252e58aa..f06f835c 100644 --- a/vsts/vsts/release/v4_1/models/__init__.py +++ b/vsts/vsts/release/v4_1/models/__init__.py @@ -26,7 +26,6 @@ from .deployment_attempt import DeploymentAttempt from .deployment_job import DeploymentJob from .deployment_query_parameters import DeploymentQueryParameters -from .deploy_phase import DeployPhase from .email_recipients import EmailRecipients from .environment_execution_policy import EnvironmentExecutionPolicy from .environment_options import EnvironmentOptions @@ -119,7 +118,6 @@ 'DeploymentAttempt', 'DeploymentJob', 'DeploymentQueryParameters', - 'DeployPhase', 'EmailRecipients', 'EnvironmentExecutionPolicy', 'EnvironmentOptions', diff --git a/vsts/vsts/release/v4_1/models/deploy_phase.py b/vsts/vsts/release/v4_1/models/deploy_phase.py deleted file mode 100644 index 6f902806..00000000 --- a/vsts/vsts/release/v4_1/models/deploy_phase.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeployPhase(Model): - """DeployPhase. - - :param name: - :type name: str - :param phase_type: - :type phase_type: object - :param rank: - :type rank: int - :param workflow_tasks: - :type workflow_tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'phase_type': {'key': 'phaseType', 'type': 'object'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, name=None, phase_type=None, rank=None, workflow_tasks=None): - super(DeployPhase, self).__init__() - self.name = name - self.phase_type = phase_type - self.rank = rank - self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment.py b/vsts/vsts/release/v4_1/models/release_definition_environment.py index 1fe164f6..c73463df 100644 --- a/vsts/vsts/release/v4_1/models/release_definition_environment.py +++ b/vsts/vsts/release/v4_1/models/release_definition_environment.py @@ -19,7 +19,7 @@ class ReleaseDefinitionEnvironment(Model): :param demands: :type demands: list of :class:`object ` :param deploy_phases: - :type deploy_phases: list of :class:`DeployPhase ` + :type deploy_phases: list of :class:`object ` :param deploy_step: :type deploy_step: :class:`ReleaseDefinitionDeployStep ` :param environment_options: @@ -64,7 +64,7 @@ class ReleaseDefinitionEnvironment(Model): 'badge_url': {'key': 'badgeUrl', 'type': 'str'}, 'conditions': {'key': 'conditions', 'type': '[Condition]'}, 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases': {'key': 'deployPhases', 'type': '[DeployPhase]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, diff --git a/vsts/vsts/release/v4_1/models/release_environment.py b/vsts/vsts/release/v4_1/models/release_environment.py index ec5d607e..25df3671 100644 --- a/vsts/vsts/release/v4_1/models/release_environment.py +++ b/vsts/vsts/release/v4_1/models/release_environment.py @@ -21,7 +21,7 @@ class ReleaseEnvironment(Model): :param demands: Gets demands. :type demands: list of :class:`object ` :param deploy_phases_snapshot: Gets list of deploy phases snapshot. - :type deploy_phases_snapshot: list of :class:`DeployPhase ` + :type deploy_phases_snapshot: list of :class:`object ` :param deploy_steps: Gets deploy steps. :type deploy_steps: list of :class:`DeploymentAttempt ` :param environment_options: Gets environment options. @@ -87,7 +87,7 @@ class ReleaseEnvironment(Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[DeployPhase]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, 'id': {'key': 'id', 'type': 'int'}, From 893248e2786474ca94730b2282d5430ae63a377c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 1 May 2018 13:35:16 -0400 Subject: [PATCH 037/191] bump version to 0.1.6 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 8ad057b7..a69d25a6 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.5" +VERSION = "0.1.6" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index f92fd9c9..cde9fecd 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.5" +VERSION = "0.1.6" From 40bf57d5f329c0b6cfc64fdc6fd48a5e59b280f6 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 8 May 2018 15:32:48 -0400 Subject: [PATCH 038/191] regenerate after fix for byte array data --- vsts/vsts/core/v4_0/models/public_key.py | 8 ++++---- vsts/vsts/core/v4_1/models/public_key.py | 8 ++++---- .../file_container/v4_0/models/file_container_item.py | 8 ++++---- .../file_container/v4_1/models/file_container_item.py | 8 ++++---- vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py | 4 ++-- vsts/vsts/gallery/v4_0/models/review.py | 4 ++-- vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py | 4 ++-- vsts/vsts/gallery/v4_1/models/review.py | 4 ++-- .../vsts/licensing/v4_0/models/client_rights_container.py | 4 ++-- .../vsts/licensing/v4_1/models/client_rights_container.py | 4 ++-- vsts/vsts/notification/v4_0/models/field_input_values.py | 4 ++-- vsts/vsts/notification/v4_1/models/field_input_values.py | 4 ++-- vsts/vsts/service_hooks/v4_0/models/subscription.py | 4 ++-- vsts/vsts/service_hooks/v4_1/models/subscription.py | 4 ++-- vsts/vsts/task_agent/v4_0/models/task_agent_message.py | 4 ++-- vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py | 8 ++++---- .../vsts/task_agent/v4_0/models/task_agent_session_key.py | 4 ++-- vsts/vsts/task_agent/v4_1/models/task_agent_message.py | 4 ++-- vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py | 8 ++++---- .../vsts/task_agent/v4_1/models/task_agent_session_key.py | 4 ++-- vsts/vsts/test/v4_0/models/module_coverage.py | 4 ++-- vsts/vsts/test/v4_1/models/module_coverage.py | 4 ++-- 22 files changed, 56 insertions(+), 56 deletions(-) diff --git a/vsts/vsts/core/v4_0/models/public_key.py b/vsts/vsts/core/v4_0/models/public_key.py index ca2af5f2..2ea0e151 100644 --- a/vsts/vsts/core/v4_0/models/public_key.py +++ b/vsts/vsts/core/v4_0/models/public_key.py @@ -13,14 +13,14 @@ class PublicKey(Model): """PublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of int + :type exponent: str :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of int + :type modulus: str """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[int]'}, - 'modulus': {'key': 'modulus', 'type': '[int]'} + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/core/v4_1/models/public_key.py b/vsts/vsts/core/v4_1/models/public_key.py index ca2af5f2..2ea0e151 100644 --- a/vsts/vsts/core/v4_1/models/public_key.py +++ b/vsts/vsts/core/v4_1/models/public_key.py @@ -13,14 +13,14 @@ class PublicKey(Model): """PublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of int + :type exponent: str :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of int + :type modulus: str """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[int]'}, - 'modulus': {'key': 'modulus', 'type': '[int]'} + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/file_container/v4_0/models/file_container_item.py b/vsts/vsts/file_container/v4_0/models/file_container_item.py index cd3b346d..5847395c 100644 --- a/vsts/vsts/file_container/v4_0/models/file_container_item.py +++ b/vsts/vsts/file_container/v4_0/models/file_container_item.py @@ -15,7 +15,7 @@ class FileContainerItem(Model): :param container_id: Container Id. :type container_id: long :param content_id: - :type content_id: list of int + :type content_id: str :param content_location: Download Url for the content of this item. :type content_location: str :param created_by: Creator. @@ -27,7 +27,7 @@ class FileContainerItem(Model): :param file_encoding: Encoding of the file. Zero if not a file. :type file_encoding: int :param file_hash: Hash value of the file. Null if not a file. - :type file_hash: list of int + :type file_hash: str :param file_id: Id of the file content. :type file_id: int :param file_length: Length of the file. Zero if not of a file. @@ -52,13 +52,13 @@ class FileContainerItem(Model): _attribute_map = { 'container_id': {'key': 'containerId', 'type': 'long'}, - 'content_id': {'key': 'contentId', 'type': '[int]'}, + 'content_id': {'key': 'contentId', 'type': 'str'}, 'content_location': {'key': 'contentLocation', 'type': 'str'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, 'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'}, 'file_encoding': {'key': 'fileEncoding', 'type': 'int'}, - 'file_hash': {'key': 'fileHash', 'type': '[int]'}, + 'file_hash': {'key': 'fileHash', 'type': 'str'}, 'file_id': {'key': 'fileId', 'type': 'int'}, 'file_length': {'key': 'fileLength', 'type': 'long'}, 'file_type': {'key': 'fileType', 'type': 'int'}, diff --git a/vsts/vsts/file_container/v4_1/models/file_container_item.py b/vsts/vsts/file_container/v4_1/models/file_container_item.py index cd3b346d..5847395c 100644 --- a/vsts/vsts/file_container/v4_1/models/file_container_item.py +++ b/vsts/vsts/file_container/v4_1/models/file_container_item.py @@ -15,7 +15,7 @@ class FileContainerItem(Model): :param container_id: Container Id. :type container_id: long :param content_id: - :type content_id: list of int + :type content_id: str :param content_location: Download Url for the content of this item. :type content_location: str :param created_by: Creator. @@ -27,7 +27,7 @@ class FileContainerItem(Model): :param file_encoding: Encoding of the file. Zero if not a file. :type file_encoding: int :param file_hash: Hash value of the file. Null if not a file. - :type file_hash: list of int + :type file_hash: str :param file_id: Id of the file content. :type file_id: int :param file_length: Length of the file. Zero if not of a file. @@ -52,13 +52,13 @@ class FileContainerItem(Model): _attribute_map = { 'container_id': {'key': 'containerId', 'type': 'long'}, - 'content_id': {'key': 'contentId', 'type': '[int]'}, + 'content_id': {'key': 'contentId', 'type': 'str'}, 'content_location': {'key': 'contentLocation', 'type': 'str'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, 'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'}, 'file_encoding': {'key': 'fileEncoding', 'type': 'int'}, - 'file_hash': {'key': 'fileHash', 'type': '[int]'}, + 'file_hash': {'key': 'fileHash', 'type': 'str'}, 'file_id': {'key': 'fileId', 'type': 'int'}, 'file_length': {'key': 'fileLength', 'type': 'long'}, 'file_type': {'key': 'fileType', 'type': 'int'}, diff --git a/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py index b0bf7c9a..6d6cd4b9 100644 --- a/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py +++ b/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py @@ -13,13 +13,13 @@ class RatingCountPerRating(Model): """RatingCountPerRating. :param rating: Rating value - :type rating: int + :type rating: str :param rating_count: Count of total ratings :type rating_count: long """ _attribute_map = { - 'rating': {'key': 'rating', 'type': 'int'}, + 'rating': {'key': 'rating', 'type': 'str'}, 'rating_count': {'key': 'ratingCount', 'type': 'long'} } diff --git a/vsts/vsts/gallery/v4_0/models/review.py b/vsts/vsts/gallery/v4_0/models/review.py index 9ba91f10..a38fda77 100644 --- a/vsts/vsts/gallery/v4_0/models/review.py +++ b/vsts/vsts/gallery/v4_0/models/review.py @@ -23,7 +23,7 @@ class Review(Model): :param product_version: Version of the product for which review was submitted :type product_version: str :param rating: Rating procided by the user - :type rating: int + :type rating: str :param reply: Reply, if any, for this review :type reply: :class:`ReviewReply ` :param text: Text description of the review @@ -44,7 +44,7 @@ class Review(Model): 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'rating': {'key': 'rating', 'type': 'int'}, + 'rating': {'key': 'rating', 'type': 'str'}, 'reply': {'key': 'reply', 'type': 'ReviewReply'}, 'text': {'key': 'text', 'type': 'str'}, 'title': {'key': 'title', 'type': 'str'}, diff --git a/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py index b0bf7c9a..6d6cd4b9 100644 --- a/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py +++ b/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py @@ -13,13 +13,13 @@ class RatingCountPerRating(Model): """RatingCountPerRating. :param rating: Rating value - :type rating: int + :type rating: str :param rating_count: Count of total ratings :type rating_count: long """ _attribute_map = { - 'rating': {'key': 'rating', 'type': 'int'}, + 'rating': {'key': 'rating', 'type': 'str'}, 'rating_count': {'key': 'ratingCount', 'type': 'long'} } diff --git a/vsts/vsts/gallery/v4_1/models/review.py b/vsts/vsts/gallery/v4_1/models/review.py index ffa52f13..092c7c55 100644 --- a/vsts/vsts/gallery/v4_1/models/review.py +++ b/vsts/vsts/gallery/v4_1/models/review.py @@ -23,7 +23,7 @@ class Review(Model): :param product_version: Version of the product for which review was submitted :type product_version: str :param rating: Rating procided by the user - :type rating: int + :type rating: str :param reply: Reply, if any, for this review :type reply: :class:`ReviewReply ` :param text: Text description of the review @@ -44,7 +44,7 @@ class Review(Model): 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'rating': {'key': 'rating', 'type': 'int'}, + 'rating': {'key': 'rating', 'type': 'str'}, 'reply': {'key': 'reply', 'type': 'ReviewReply'}, 'text': {'key': 'text', 'type': 'str'}, 'title': {'key': 'title', 'type': 'str'}, diff --git a/vsts/vsts/licensing/v4_0/models/client_rights_container.py b/vsts/vsts/licensing/v4_0/models/client_rights_container.py index 6f4bac01..1df6e821 100644 --- a/vsts/vsts/licensing/v4_0/models/client_rights_container.py +++ b/vsts/vsts/licensing/v4_0/models/client_rights_container.py @@ -13,13 +13,13 @@ class ClientRightsContainer(Model): """ClientRightsContainer. :param certificate_bytes: - :type certificate_bytes: list of int + :type certificate_bytes: str :param token: :type token: str """ _attribute_map = { - 'certificate_bytes': {'key': 'certificateBytes', 'type': '[int]'}, + 'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'}, 'token': {'key': 'token', 'type': 'str'} } diff --git a/vsts/vsts/licensing/v4_1/models/client_rights_container.py b/vsts/vsts/licensing/v4_1/models/client_rights_container.py index 6f4bac01..1df6e821 100644 --- a/vsts/vsts/licensing/v4_1/models/client_rights_container.py +++ b/vsts/vsts/licensing/v4_1/models/client_rights_container.py @@ -13,13 +13,13 @@ class ClientRightsContainer(Model): """ClientRightsContainer. :param certificate_bytes: - :type certificate_bytes: list of int + :type certificate_bytes: str :param token: :type token: str """ _attribute_map = { - 'certificate_bytes': {'key': 'certificateBytes', 'type': '[int]'}, + 'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'}, 'token': {'key': 'token', 'type': 'str'} } diff --git a/vsts/vsts/notification/v4_0/models/field_input_values.py b/vsts/vsts/notification/v4_0/models/field_input_values.py index fc37704e..4cfdea93 100644 --- a/vsts/vsts/notification/v4_0/models/field_input_values.py +++ b/vsts/vsts/notification/v4_0/models/field_input_values.py @@ -27,7 +27,7 @@ class FieldInputValues(InputValues): :param possible_values: Possible values that this input can take :type possible_values: list of :class:`InputValue ` :param operators: - :type operators: list of int + :type operators: str """ _attribute_map = { @@ -38,7 +38,7 @@ class FieldInputValues(InputValues): 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, - 'operators': {'key': 'operators', 'type': '[int]'} + 'operators': {'key': 'operators', 'type': 'str'} } def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): diff --git a/vsts/vsts/notification/v4_1/models/field_input_values.py b/vsts/vsts/notification/v4_1/models/field_input_values.py index f36b54ec..58ad4a3a 100644 --- a/vsts/vsts/notification/v4_1/models/field_input_values.py +++ b/vsts/vsts/notification/v4_1/models/field_input_values.py @@ -27,7 +27,7 @@ class FieldInputValues(InputValues): :param possible_values: Possible values that this input can take :type possible_values: list of :class:`InputValue ` :param operators: - :type operators: list of int + :type operators: str """ _attribute_map = { @@ -38,7 +38,7 @@ class FieldInputValues(InputValues): 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, - 'operators': {'key': 'operators', 'type': '[int]'} + 'operators': {'key': 'operators', 'type': 'str'} } def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): diff --git a/vsts/vsts/service_hooks/v4_0/models/subscription.py b/vsts/vsts/service_hooks/v4_0/models/subscription.py index e33a7ef1..148bfe38 100644 --- a/vsts/vsts/service_hooks/v4_0/models/subscription.py +++ b/vsts/vsts/service_hooks/v4_0/models/subscription.py @@ -37,7 +37,7 @@ class Subscription(Model): :param modified_date: :type modified_date: datetime :param probation_retries: - :type probation_retries: int + :type probation_retries: str :param publisher_id: :type publisher_id: str :param publisher_inputs: Publisher input values @@ -65,7 +65,7 @@ class Subscription(Model): 'id': {'key': 'id', 'type': 'str'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'probation_retries': {'key': 'probationRetries', 'type': 'int'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'str'}, 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription.py b/vsts/vsts/service_hooks/v4_1/models/subscription.py index 31f3eecf..751de397 100644 --- a/vsts/vsts/service_hooks/v4_1/models/subscription.py +++ b/vsts/vsts/service_hooks/v4_1/models/subscription.py @@ -37,7 +37,7 @@ class Subscription(Model): :param modified_date: :type modified_date: datetime :param probation_retries: - :type probation_retries: int + :type probation_retries: str :param publisher_id: :type publisher_id: str :param publisher_inputs: Publisher input values @@ -65,7 +65,7 @@ class Subscription(Model): 'id': {'key': 'id', 'type': 'str'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'probation_retries': {'key': 'probationRetries', 'type': 'int'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'str'}, 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_message.py b/vsts/vsts/task_agent/v4_0/models/task_agent_message.py index c71063a8..f51c30e1 100644 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_message.py +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_message.py @@ -15,7 +15,7 @@ class TaskAgentMessage(Model): :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. :type body: str :param iV: Gets or sets the intialization vector used to encrypt this message. - :type iV: list of int + :type iV: str :param message_id: Gets or sets the message identifier. :type message_id: long :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. @@ -24,7 +24,7 @@ class TaskAgentMessage(Model): _attribute_map = { 'body': {'key': 'body', 'type': 'str'}, - 'iV': {'key': 'iV', 'type': '[int]'}, + 'iV': {'key': 'iV', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'long'}, 'message_type': {'key': 'messageType', 'type': 'str'} } diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py index ef6c0de5..80517d1f 100644 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py @@ -13,14 +13,14 @@ class TaskAgentPublicKey(Model): """TaskAgentPublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of int + :type exponent: str :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of int + :type modulus: str """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[int]'}, - 'modulus': {'key': 'modulus', 'type': '[int]'} + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py index 9192c775..55304a88 100644 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py +++ b/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py @@ -15,12 +15,12 @@ class TaskAgentSessionKey(Model): :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. :type encrypted: bool :param value: Gets or sets the symmetric key value. - :type value: list of int + :type value: str """ _attribute_map = { 'encrypted': {'key': 'encrypted', 'type': 'bool'}, - 'value': {'key': 'value', 'type': '[int]'} + 'value': {'key': 'value', 'type': 'str'} } def __init__(self, encrypted=None, value=None): diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_message.py b/vsts/vsts/task_agent/v4_1/models/task_agent_message.py index c71063a8..f51c30e1 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_message.py +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_message.py @@ -15,7 +15,7 @@ class TaskAgentMessage(Model): :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. :type body: str :param iV: Gets or sets the intialization vector used to encrypt this message. - :type iV: list of int + :type iV: str :param message_id: Gets or sets the message identifier. :type message_id: long :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. @@ -24,7 +24,7 @@ class TaskAgentMessage(Model): _attribute_map = { 'body': {'key': 'body', 'type': 'str'}, - 'iV': {'key': 'iV', 'type': '[int]'}, + 'iV': {'key': 'iV', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'long'}, 'message_type': {'key': 'messageType', 'type': 'str'} } diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py index ef6c0de5..80517d1f 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py @@ -13,14 +13,14 @@ class TaskAgentPublicKey(Model): """TaskAgentPublicKey. :param exponent: Gets or sets the exponent for the public key. - :type exponent: list of int + :type exponent: str :param modulus: Gets or sets the modulus for the public key. - :type modulus: list of int + :type modulus: str """ _attribute_map = { - 'exponent': {'key': 'exponent', 'type': '[int]'}, - 'modulus': {'key': 'modulus', 'type': '[int]'} + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} } def __init__(self, exponent=None, modulus=None): diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py index 9192c775..55304a88 100644 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py +++ b/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py @@ -15,12 +15,12 @@ class TaskAgentSessionKey(Model): :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. :type encrypted: bool :param value: Gets or sets the symmetric key value. - :type value: list of int + :type value: str """ _attribute_map = { 'encrypted': {'key': 'encrypted', 'type': 'bool'}, - 'value': {'key': 'value', 'type': '[int]'} + 'value': {'key': 'value', 'type': 'str'} } def __init__(self, encrypted=None, value=None): diff --git a/vsts/vsts/test/v4_0/models/module_coverage.py b/vsts/vsts/test/v4_0/models/module_coverage.py index 7a0bfeec..ea11fd81 100644 --- a/vsts/vsts/test/v4_0/models/module_coverage.py +++ b/vsts/vsts/test/v4_0/models/module_coverage.py @@ -15,7 +15,7 @@ class ModuleCoverage(Model): :param block_count: :type block_count: int :param block_data: - :type block_data: list of int + :type block_data: str :param functions: :type functions: list of :class:`FunctionCoverage ` :param name: @@ -30,7 +30,7 @@ class ModuleCoverage(Model): _attribute_map = { 'block_count': {'key': 'blockCount', 'type': 'int'}, - 'block_data': {'key': 'blockData', 'type': '[int]'}, + 'block_data': {'key': 'blockData', 'type': 'str'}, 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, 'name': {'key': 'name', 'type': 'str'}, 'signature': {'key': 'signature', 'type': 'str'}, diff --git a/vsts/vsts/test/v4_1/models/module_coverage.py b/vsts/vsts/test/v4_1/models/module_coverage.py index 4bdb3b3c..648a13a9 100644 --- a/vsts/vsts/test/v4_1/models/module_coverage.py +++ b/vsts/vsts/test/v4_1/models/module_coverage.py @@ -15,7 +15,7 @@ class ModuleCoverage(Model): :param block_count: :type block_count: int :param block_data: - :type block_data: list of int + :type block_data: str :param functions: :type functions: list of :class:`FunctionCoverage ` :param name: @@ -30,7 +30,7 @@ class ModuleCoverage(Model): _attribute_map = { 'block_count': {'key': 'blockCount', 'type': 'int'}, - 'block_data': {'key': 'blockData', 'type': '[int]'}, + 'block_data': {'key': 'blockData', 'type': 'str'}, 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, 'name': {'key': 'name', 'type': 'str'}, 'signature': {'key': 'signature', 'type': 'str'}, From 49af3d8434b4e5722f67813d281e4dfb86615497 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 8 May 2018 15:47:24 -0400 Subject: [PATCH 039/191] bump version to 0.1.7 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index a69d25a6..b0a0e37e 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.6" +VERSION = "0.1.7" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index cde9fecd..3e4c46aa 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.6" +VERSION = "0.1.7" From bc3bb3f94a4318910cb25d535afb66da22145241 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 31 May 2018 10:41:59 -0400 Subject: [PATCH 040/191] fix git get_commit_diffs query parameters --- vsts/vsts/git/v4_0/git_client_base.py | 12 ++++++------ vsts/vsts/git/v4_1/git_client_base.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/vsts/vsts/git/v4_0/git_client_base.py index 9a3e63ad..3018c57c 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/vsts/vsts/git/v4_0/git_client_base.py @@ -382,18 +382,18 @@ def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') if base_version_descriptor is not None: if base_version_descriptor.base_version_type is not None: - query_parameters['baseVersionDescriptor.baseVersionType'] = base_version_descriptor.base_version_type + query_parameters['baseVersionType'] = base_version_descriptor.base_version_type if base_version_descriptor.base_version is not None: - query_parameters['baseVersionDescriptor.baseVersion'] = base_version_descriptor.base_version + query_parameters['baseVersion'] = base_version_descriptor.base_version if base_version_descriptor.base_version_options is not None: - query_parameters['baseVersionDescriptor.baseVersionOptions'] = base_version_descriptor.base_version_options + query_parameters['baseVersionOptions'] = base_version_descriptor.base_version_options if target_version_descriptor is not None: if target_version_descriptor.target_version_type is not None: - query_parameters['targetVersionDescriptor.targetVersionType'] = target_version_descriptor.target_version_type + query_parameters['targetVersionType'] = target_version_descriptor.target_version_type if target_version_descriptor.target_version is not None: - query_parameters['targetVersionDescriptor.targetVersion'] = target_version_descriptor.target_version + query_parameters['targetVersion'] = target_version_descriptor.target_version if target_version_descriptor.target_version_options is not None: - query_parameters['targetVersionDescriptor.targetVersionOptions'] = target_version_descriptor.target_version_options + query_parameters['targetVersionOptions'] = target_version_descriptor.target_version_options response = self._send(http_method='GET', location_id='615588d5-c0c7-4b88-88f8-e625306446e8', version='4.0', diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index e243131f..eb5f5935 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -360,18 +360,18 @@ def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') if base_version_descriptor is not None: if base_version_descriptor.base_version_type is not None: - query_parameters['baseVersionDescriptor.baseVersionType'] = base_version_descriptor.base_version_type + query_parameters['baseVersionType'] = base_version_descriptor.base_version_type if base_version_descriptor.base_version is not None: - query_parameters['baseVersionDescriptor.baseVersion'] = base_version_descriptor.base_version + query_parameters['baseVersion'] = base_version_descriptor.base_version if base_version_descriptor.base_version_options is not None: - query_parameters['baseVersionDescriptor.baseVersionOptions'] = base_version_descriptor.base_version_options + query_parameters['baseVersionOptions'] = base_version_descriptor.base_version_options if target_version_descriptor is not None: if target_version_descriptor.target_version_type is not None: - query_parameters['targetVersionDescriptor.targetVersionType'] = target_version_descriptor.target_version_type + query_parameters['targetVersionType'] = target_version_descriptor.target_version_type if target_version_descriptor.target_version is not None: - query_parameters['targetVersionDescriptor.targetVersion'] = target_version_descriptor.target_version + query_parameters['targetVersion'] = target_version_descriptor.target_version if target_version_descriptor.target_version_options is not None: - query_parameters['targetVersionDescriptor.targetVersionOptions'] = target_version_descriptor.target_version_options + query_parameters['targetVersionOptions'] = target_version_descriptor.target_version_options response = self._send(http_method='GET', location_id='615588d5-c0c7-4b88-88f8-e625306446e8', version='4.1', From cb4c74aefb88426e5f4ec4e9f62dd050d8165eef Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 17:42:05 -0400 Subject: [PATCH 041/191] regen 4.1 apis after fix to include 'action' in route dictionary. --- vsts/vsts/licensing/v4_1/licensing_client.py | 2 ++ vsts/vsts/test/v4_1/test_client.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py index 82b513ad..c94ddceb 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -197,6 +197,7 @@ def get_account_entitlements_batch(self, user_ids): :rtype: [AccountEntitlement] """ route_values = {} + route_values['action'] = 'GetUsersEntitlements' content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', @@ -213,6 +214,7 @@ def obtain_available_account_entitlements(self, user_ids): :rtype: [AccountEntitlement] """ route_values = {} + route_values['action'] = 'GetAvailableUsersEntitlements' content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index ec6999a8..5c7dff2c 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -1829,6 +1829,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', @@ -1853,6 +1854,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', @@ -1873,6 +1875,7 @@ def get_test_cases(self, project, plan_id, suite_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') if suite_id is not None: route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', @@ -1896,6 +1899,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' self._send(http_method='DELETE', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', From 0437278685892c78f058da06d96aa8146ad3ce74 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 17:43:39 -0400 Subject: [PATCH 042/191] regen 4.0 apis after fix to include 'action' in route dictionary. --- vsts/vsts/licensing/v4_0/licensing_client.py | 1 + vsts/vsts/test/v4_0/test_client.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/vsts/vsts/licensing/v4_0/licensing_client.py index e35642b0..932169b0 100644 --- a/vsts/vsts/licensing/v4_0/licensing_client.py +++ b/vsts/vsts/licensing/v4_0/licensing_client.py @@ -164,6 +164,7 @@ def obtain_available_account_entitlements(self, user_ids): :rtype: [AccountEntitlement] """ route_values = {} + route_values['action'] = 'GetAvailableUsersEntitlements' content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index bb1a27bf..2101cb25 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -1747,6 +1747,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', @@ -1771,6 +1772,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', @@ -1791,6 +1793,7 @@ def get_test_cases(self, project, plan_id, suite_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') if suite_id is not None: route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', @@ -1814,6 +1817,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' self._send(http_method='DELETE', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', From f613004e78d97dda81c7ae7a4ba16c085f6a69ee Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 18:00:39 -0400 Subject: [PATCH 043/191] bump version number to 0.1.8 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index b0a0e37e..adcdc13d 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.7" +VERSION = "0.1.8" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 3e4c46aa..b9f4467b 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.7" +VERSION = "0.1.8" From 019eb44831ec68bd226ec8ece08fae8f639e3ea9 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 13 Jun 2018 13:45:02 -0400 Subject: [PATCH 044/191] Add new 4.0 and 4.1 REST areas: CLT, Graph, MEM, Profile, Service Endpoint,Symbol, Wiki, WIT Process, WIT Process Def, WIT Process Template --- vsts/vsts/cloud_load_test/__init__.py | 7 + vsts/vsts/cloud_load_test/v4_1/__init__.py | 7 + .../v4_1/cloud_load_test_client.py | 438 ++++++++ .../cloud_load_test/v4_1/models/__init__.py | 107 ++ .../v4_1/models/agent_group.py | 49 + .../v4_1/models/agent_group_access_data.py | 41 + .../v4_1/models/application.py | 49 + .../v4_1/models/application_counters.py | 45 + .../v4_1/models/application_type.py | 45 + .../v4_1/models/browser_mix.py | 29 + .../models/clt_customer_intelligence_data.py | 33 + .../v4_1/models/counter_group.py | 29 + .../v4_1/models/counter_instance_samples.py | 37 + .../v4_1/models/counter_sample.py | 61 ++ .../models/counter_sample_query_details.py | 33 + .../v4_1/models/counter_samples_result.py | 37 + .../v4_1/models/diagnostics.py | 33 + .../v4_1/models/drop_access_data.py | 29 + .../v4_1/models/error_details.py | 49 + .../models/load_generation_geo_location.py | 29 + .../cloud_load_test/v4_1/models/load_test.py | 21 + .../v4_1/models/load_test_definition.py | 69 ++ .../v4_1/models/load_test_errors.py | 37 + .../v4_1/models/load_test_run_details.py | 46 + .../v4_1/models/load_test_run_settings.py | 49 + .../v4_1/models/overridable_run_settings.py | 29 + .../v4_1/models/page_summary.py | 49 + .../v4_1/models/request_summary.py | 57 ++ .../v4_1/models/scenario_summary.py | 33 + .../v4_1/models/static_agent_run_setting.py | 29 + .../cloud_load_test/v4_1/models/sub_type.py | 41 + .../v4_1/models/summary_percentile_data.py | 29 + .../v4_1/models/tenant_details.py | 45 + .../v4_1/models/test_definition.py | 69 ++ .../v4_1/models/test_definition_basic.py | 53 + .../cloud_load_test/v4_1/models/test_drop.py | 45 + .../v4_1/models/test_drop_ref.py | 29 + .../v4_1/models/test_results.py | 37 + .../v4_1/models/test_results_summary.py | 57 ++ .../cloud_load_test/v4_1/models/test_run.py | 146 +++ .../v4_1/models/test_run_abort_message.py | 41 + .../v4_1/models/test_run_basic.py | 81 ++ .../v4_1/models/test_run_counter_instance.py | 61 ++ .../v4_1/models/test_run_message.py | 57 ++ .../v4_1/models/test_settings.py | 33 + .../v4_1/models/test_summary.py | 49 + .../v4_1/models/transaction_summary.py | 49 + .../models/web_api_load_test_machine_input.py | 37 + .../v4_1/models/web_api_setup_paramaters.py | 25 + .../v4_1/models/web_api_test_machine.py | 33 + .../web_api_user_load_test_machine_input.py | 49 + .../v4_1/models/web_instance_summary_data.py | 33 + vsts/vsts/graph/__init__.py | 7 + vsts/vsts/graph/v4_1/__init__.py | 7 + vsts/vsts/graph/v4_1/graph_client.py | 294 ++++++ vsts/vsts/graph/v4_1/models/__init__.py | 57 ++ .../graph/v4_1/models/graph_cache_policies.py | 25 + .../v4_1/models/graph_descriptor_result.py | 29 + .../graph_global_extended_property_batch.py | 29 + vsts/vsts/graph/v4_1/models/graph_group.py | 101 ++ .../models/graph_group_creation_context.py | 25 + vsts/vsts/graph/v4_1/models/graph_member.py | 61 ++ .../graph/v4_1/models/graph_membership.py | 33 + .../v4_1/models/graph_membership_state.py | 29 + .../v4_1/models/graph_membership_traversal.py | 41 + vsts/vsts/graph/v4_1/models/graph_scope.py | 65 ++ .../models/graph_scope_creation_context.py | 45 + .../v4_1/models/graph_storage_key_result.py | 29 + vsts/vsts/graph/v4_1/models/graph_subject.py | 49 + .../graph/v4_1/models/graph_subject_base.py | 37 + .../graph/v4_1/models/graph_subject_lookup.py | 25 + .../v4_1/models/graph_subject_lookup_key.py | 25 + vsts/vsts/graph/v4_1/models/graph_user.py | 61 ++ .../models/graph_user_creation_context.py | 25 + .../graph/v4_1/models/identity_key_map.py | 33 + .../graph/v4_1/models/json_patch_operation.py | 37 + .../graph/v4_1/models/paged_graph_groups.py | 29 + .../graph/v4_1/models/paged_graph_users.py | 29 + .../vsts/graph/v4_1/models/reference_links.py | 25 + vsts/vsts/profile/__init__.py | 7 + vsts/vsts/profile/v4_1/__init__.py | 7 + vsts/vsts/profile/v4_1/models/__init__.py | 35 + .../v4_1/models/attribute_descriptor.py | 29 + .../v4_1/models/attributes_container.py | 33 + vsts/vsts/profile/v4_1/models/avatar.py | 37 + .../v4_1/models/core_profile_attribute.py | 21 + .../v4_1/models/create_profile_context.py | 57 ++ vsts/vsts/profile/v4_1/models/geo_region.py | 25 + vsts/vsts/profile/v4_1/models/profile.py | 49 + .../profile/v4_1/models/profile_attribute.py | 21 + .../v4_1/models/profile_attribute_base.py | 37 + .../profile/v4_1/models/profile_region.py | 29 + .../profile/v4_1/models/profile_regions.py | 33 + .../profile/v4_1/models/remote_profile.py | 37 + vsts/vsts/profile/v4_1/profile_client.py | 59 ++ vsts/vsts/service_endpoint/__init__.py | 7 + vsts/vsts/service_endpoint/v4_1/__init__.py | 7 + .../service_endpoint/v4_1/models/__init__.py | 75 ++ .../models/authentication_scheme_reference.py | 29 + .../v4_1/models/authorization_header.py | 29 + .../v4_1/models/client_certificate.py | 25 + .../v4_1/models/data_source.py | 45 + .../v4_1/models/data_source_binding.py | 45 + .../v4_1/models/data_source_binding_base.py | 53 + .../v4_1/models/data_source_details.py | 45 + .../v4_1/models/dependency_binding.py | 29 + .../v4_1/models/dependency_data.py | 29 + .../v4_1/models/depends_on.py | 29 + .../v4_1/models/endpoint_authorization.py | 29 + .../v4_1/models/endpoint_url.py | 41 + .../v4_1/models/graph_subject_base.py | 37 + .../service_endpoint/v4_1/models/help_link.py | 29 + .../v4_1/models/identity_ref.py | 65 ++ .../v4_1/models/input_descriptor.py | 77 ++ .../v4_1/models/input_validation.py | 53 + .../v4_1/models/input_value.py | 33 + .../v4_1/models/input_values.py | 49 + .../v4_1/models/input_values_error.py | 25 + .../v4_1/models/reference_links.py | 25 + .../models/result_transformation_details.py | 25 + .../v4_1/models/service_endpoint.py | 73 ++ .../service_endpoint_authentication_scheme.py | 41 + .../v4_1/models/service_endpoint_details.py | 37 + .../models/service_endpoint_execution_data.py | 49 + .../service_endpoint_execution_owner.py | 33 + .../service_endpoint_execution_record.py | 29 + ...ervice_endpoint_execution_records_input.py | 29 + .../v4_1/models/service_endpoint_request.py | 33 + .../models/service_endpoint_request_result.py | 33 + .../v4_1/models/service_endpoint_type.py | 73 ++ .../v4_1/service_endpoint_client.py | 254 +++++ vsts/vsts/symbol/__init__.py | 7 + vsts/vsts/symbol/v4_1/__init__.py | 7 + vsts/vsts/symbol/v4_1/models/__init__.py | 25 + vsts/vsts/symbol/v4_1/models/debug_entry.py | 64 ++ .../v4_1/models/debug_entry_create_batch.py | 29 + .../v4_1/models/json_blob_block_hash.py | 25 + .../v4_1/models/json_blob_identifier.py | 25 + .../json_blob_identifier_with_blocks.py | 29 + vsts/vsts/symbol/v4_1/models/request.py | 52 + vsts/vsts/symbol/v4_1/models/resource_base.py | 41 + vsts/vsts/symbol/v4_1/symbol_client.py | 230 +++++ vsts/vsts/wiki/__init__.py | 7 + vsts/vsts/wiki/v4_0/__init__.py | 7 + vsts/vsts/wiki/v4_0/models/__init__.py | 59 ++ vsts/vsts/wiki/v4_0/models/change.py | 41 + .../wiki/v4_0/models/file_content_metadata.py | 49 + vsts/vsts/wiki/v4_0/models/git_commit_ref.py | 73 ++ vsts/vsts/wiki/v4_0/models/git_item.py | 59 ++ vsts/vsts/wiki/v4_0/models/git_push.py | 51 + vsts/vsts/wiki/v4_0/models/git_push_ref.py | 45 + vsts/vsts/wiki/v4_0/models/git_ref_update.py | 41 + vsts/vsts/wiki/v4_0/models/git_repository.py | 61 ++ .../wiki/v4_0/models/git_repository_ref.py | 45 + vsts/vsts/wiki/v4_0/models/git_status.py | 57 ++ .../wiki/v4_0/models/git_status_context.py | 29 + vsts/vsts/wiki/v4_0/models/git_template.py | 29 + vsts/vsts/wiki/v4_0/models/git_user_date.py | 33 + .../v4_0/models/git_version_descriptor.py | 33 + vsts/vsts/wiki/v4_0/models/item_content.py | 29 + vsts/vsts/wiki/v4_0/models/item_model.py | 45 + vsts/vsts/wiki/v4_0/models/wiki_attachment.py | 25 + .../v4_0/models/wiki_attachment_change.py | 25 + .../v4_0/models/wiki_attachment_response.py | 29 + vsts/vsts/wiki/v4_0/models/wiki_change.py | 33 + vsts/vsts/wiki/v4_0/models/wiki_page.py | 45 + .../vsts/wiki/v4_0/models/wiki_page_change.py | 29 + vsts/vsts/wiki/v4_0/models/wiki_repository.py | 33 + vsts/vsts/wiki/v4_0/models/wiki_update.py | 41 + vsts/vsts/wiki/v4_0/wiki_client.py | 195 ++++ vsts/vsts/wiki/v4_1/__init__.py | 7 + vsts/vsts/wiki/v4_1/models/__init__.py | 43 + vsts/vsts/wiki/v4_1/models/git_repository.py | 65 ++ .../wiki/v4_1/models/git_repository_ref.py | 53 + .../v4_1/models/git_version_descriptor.py | 33 + vsts/vsts/wiki/v4_1/models/wiki_attachment.py | 29 + .../v4_1/models/wiki_attachment_response.py | 29 + .../models/wiki_create_base_parameters.py | 41 + .../v4_1/models/wiki_create_parameters_v2.py | 40 + vsts/vsts/wiki/v4_1/models/wiki_page.py | 56 + .../wiki_page_create_or_update_parameters.py | 25 + vsts/vsts/wiki/v4_1/models/wiki_page_move.py | 34 + .../v4_1/models/wiki_page_move_parameters.py | 33 + .../v4_1/models/wiki_page_move_response.py | 29 + .../wiki/v4_1/models/wiki_page_response.py | 29 + .../wiki/v4_1/models/wiki_page_view_stats.py | 33 + .../v4_1/models/wiki_update_parameters.py | 25 + vsts/vsts/wiki/v4_1/models/wiki_v2.py | 56 + vsts/vsts/wiki/v4_1/wiki_client.py | 192 ++++ .../work_item_tracking_process/__init__.py | 7 + .../v4_0/__init__.py | 7 + .../v4_0/models/__init__.py | 55 + .../v4_0/models/control.py | 73 ++ .../v4_0/models/create_process_model.py | 37 + .../v4_0/models/extension.py | 25 + .../v4_0/models/field_model.py | 45 + .../v4_0/models/field_rule_model.py | 45 + .../v4_0/models/form_layout.py | 33 + .../v4_0/models/group.py | 61 ++ .../v4_0/models/page.py | 65 ++ .../v4_0/models/process_model.py | 45 + .../v4_0/models/process_properties.py | 41 + .../v4_0/models/project_reference.py | 37 + .../v4_0/models/rule_action_model.py | 33 + .../v4_0/models/rule_condition_model.py | 33 + .../v4_0/models/section.py | 33 + .../v4_0/models/update_process_model.py | 37 + .../v4_0/models/wit_contribution.py | 37 + .../v4_0/models/work_item_behavior.py | 61 ++ .../v4_0/models/work_item_behavior_field.py | 33 + .../models/work_item_behavior_reference.py | 29 + .../models/work_item_state_result_model.py | 49 + .../v4_0/models/work_item_type_behavior.py | 33 + .../v4_0/models/work_item_type_model.py | 69 ++ .../v4_0/work_item_tracking_process_client.py | 374 +++++++ .../v4_1/__init__.py | 7 + .../v4_1/models/__init__.py | 55 + .../v4_1/models/control.py | 73 ++ .../v4_1/models/create_process_model.py | 37 + .../v4_1/models/extension.py | 25 + .../v4_1/models/field_model.py | 45 + .../v4_1/models/field_rule_model.py | 45 + .../v4_1/models/form_layout.py | 33 + .../v4_1/models/group.py | 61 ++ .../v4_1/models/page.py | 65 ++ .../v4_1/models/process_model.py | 45 + .../v4_1/models/process_properties.py | 41 + .../v4_1/models/project_reference.py | 37 + .../v4_1/models/rule_action_model.py | 33 + .../v4_1/models/rule_condition_model.py | 33 + .../v4_1/models/section.py | 33 + .../v4_1/models/update_process_model.py | 37 + .../v4_1/models/wit_contribution.py | 37 + .../v4_1/models/work_item_behavior.py | 61 ++ .../v4_1/models/work_item_behavior_field.py | 33 + .../models/work_item_behavior_reference.py | 29 + .../models/work_item_state_result_model.py | 49 + .../v4_1/models/work_item_type_behavior.py | 33 + .../v4_1/models/work_item_type_model.py | 69 ++ .../v4_1/work_item_tracking_process_client.py | 374 +++++++ .../__init__.py | 7 + .../v4_0/__init__.py | 7 + .../v4_0/models/__init__.py | 57 ++ .../v4_0/models/behavior_create_model.py | 33 + .../v4_0/models/behavior_model.py | 57 ++ .../v4_0/models/behavior_replace_model.py | 29 + .../v4_0/models/control.py | 73 ++ .../v4_0/models/extension.py | 25 + .../v4_0/models/field_model.py | 45 + .../v4_0/models/field_update.py | 29 + .../v4_0/models/form_layout.py | 33 + .../v4_0/models/group.py | 61 ++ .../v4_0/models/hide_state_model.py | 25 + .../v4_0/models/page.py | 65 ++ .../v4_0/models/pick_list_item_model.py | 29 + .../v4_0/models/pick_list_metadata_model.py | 41 + .../v4_0/models/pick_list_model.py | 40 + .../v4_0/models/section.py | 33 + .../v4_0/models/wit_contribution.py | 37 + .../models/work_item_behavior_reference.py | 29 + .../models/work_item_state_input_model.py | 37 + .../models/work_item_state_result_model.py | 49 + .../v4_0/models/work_item_type_behavior.py | 33 + .../v4_0/models/work_item_type_field_model.py | 57 ++ .../v4_0/models/work_item_type_model.py | 69 ++ .../models/work_item_type_update_model.py | 37 + ...tem_tracking_process_definitions_client.py | 969 ++++++++++++++++++ .../v4_1/__init__.py | 7 + .../v4_1/models/__init__.py | 57 ++ .../v4_1/models/behavior_create_model.py | 33 + .../v4_1/models/behavior_model.py | 57 ++ .../v4_1/models/behavior_replace_model.py | 29 + .../v4_1/models/control.py | 73 ++ .../v4_1/models/extension.py | 25 + .../v4_1/models/field_model.py | 45 + .../v4_1/models/field_update.py | 29 + .../v4_1/models/form_layout.py | 33 + .../v4_1/models/group.py | 61 ++ .../v4_1/models/hide_state_model.py | 25 + .../v4_1/models/page.py | 65 ++ .../v4_1/models/pick_list_item_model.py | 29 + .../v4_1/models/pick_list_metadata_model.py | 41 + .../v4_1/models/pick_list_model.py | 40 + .../v4_1/models/section.py | 33 + .../v4_1/models/wit_contribution.py | 37 + .../models/work_item_behavior_reference.py | 29 + .../models/work_item_state_input_model.py | 37 + .../models/work_item_state_result_model.py | 49 + .../v4_1/models/work_item_type_behavior.py | 33 + .../v4_1/models/work_item_type_field_model.py | 57 ++ .../v4_1/models/work_item_type_model.py | 69 ++ .../models/work_item_type_update_model.py | 37 + ...tem_tracking_process_definitions_client.py | 969 ++++++++++++++++++ .../__init__.py | 7 + .../v4_0/__init__.py | 7 + .../v4_0/models/__init__.py | 23 + .../v4_0/models/admin_behavior.py | 61 ++ .../v4_0/models/admin_behavior_field.py | 33 + .../models/check_template_existence_result.py | 37 + .../v4_0/models/process_import_result.py | 37 + .../v4_0/models/process_promote_status.py | 45 + .../v4_0/models/validation_issue.py | 41 + ...k_item_tracking_process_template_client.py | 138 +++ .../v4_1/__init__.py | 7 + .../v4_1/models/__init__.py | 23 + .../v4_1/models/admin_behavior.py | 61 ++ .../v4_1/models/admin_behavior_field.py | 33 + .../models/check_template_existence_result.py | 37 + .../v4_1/models/process_import_result.py | 41 + .../v4_1/models/process_promote_status.py | 45 + .../v4_1/models/validation_issue.py | 41 + ...k_item_tracking_process_template_client.py | 134 +++ 312 files changed, 16369 insertions(+) create mode 100644 vsts/vsts/cloud_load_test/__init__.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/__init__.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/__init__.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/agent_group.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/application.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/application_counters.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/application_type.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_group.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/error_details.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/page_summary.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/request_summary.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/sub_type.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_definition.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_drop.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_results.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_settings.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_summary.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py create mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py create mode 100644 vsts/vsts/graph/__init__.py create mode 100644 vsts/vsts/graph/v4_1/__init__.py create mode 100644 vsts/vsts/graph/v4_1/graph_client.py create mode 100644 vsts/vsts/graph/v4_1/models/__init__.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_cache_policies.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_descriptor_result.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_group.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_group_creation_context.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_member.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_membership.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_membership_state.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_membership_traversal.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_scope.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_storage_key_result.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_subject.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_subject_lookup.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_user.py create mode 100644 vsts/vsts/graph/v4_1/models/graph_user_creation_context.py create mode 100644 vsts/vsts/graph/v4_1/models/identity_key_map.py create mode 100644 vsts/vsts/graph/v4_1/models/json_patch_operation.py create mode 100644 vsts/vsts/graph/v4_1/models/paged_graph_groups.py create mode 100644 vsts/vsts/graph/v4_1/models/paged_graph_users.py create mode 100644 vsts/vsts/graph/v4_1/models/reference_links.py create mode 100644 vsts/vsts/profile/__init__.py create mode 100644 vsts/vsts/profile/v4_1/__init__.py create mode 100644 vsts/vsts/profile/v4_1/models/__init__.py create mode 100644 vsts/vsts/profile/v4_1/models/attribute_descriptor.py create mode 100644 vsts/vsts/profile/v4_1/models/attributes_container.py create mode 100644 vsts/vsts/profile/v4_1/models/avatar.py create mode 100644 vsts/vsts/profile/v4_1/models/core_profile_attribute.py create mode 100644 vsts/vsts/profile/v4_1/models/create_profile_context.py create mode 100644 vsts/vsts/profile/v4_1/models/geo_region.py create mode 100644 vsts/vsts/profile/v4_1/models/profile.py create mode 100644 vsts/vsts/profile/v4_1/models/profile_attribute.py create mode 100644 vsts/vsts/profile/v4_1/models/profile_attribute_base.py create mode 100644 vsts/vsts/profile/v4_1/models/profile_region.py create mode 100644 vsts/vsts/profile/v4_1/models/profile_regions.py create mode 100644 vsts/vsts/profile/v4_1/models/remote_profile.py create mode 100644 vsts/vsts/profile/v4_1/profile_client.py create mode 100644 vsts/vsts/service_endpoint/__init__.py create mode 100644 vsts/vsts/service_endpoint/v4_1/__init__.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/__init__.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/authorization_header.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/client_certificate.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source_details.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/dependency_data.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/depends_on.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/help_link.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/identity_ref.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_validation.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_value.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_values.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_values_error.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/reference_links.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py create mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py create mode 100644 vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py create mode 100644 vsts/vsts/symbol/__init__.py create mode 100644 vsts/vsts/symbol/v4_1/__init__.py create mode 100644 vsts/vsts/symbol/v4_1/models/__init__.py create mode 100644 vsts/vsts/symbol/v4_1/models/debug_entry.py create mode 100644 vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py create mode 100644 vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py create mode 100644 vsts/vsts/symbol/v4_1/models/json_blob_identifier.py create mode 100644 vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py create mode 100644 vsts/vsts/symbol/v4_1/models/request.py create mode 100644 vsts/vsts/symbol/v4_1/models/resource_base.py create mode 100644 vsts/vsts/symbol/v4_1/symbol_client.py create mode 100644 vsts/vsts/wiki/__init__.py create mode 100644 vsts/vsts/wiki/v4_0/__init__.py create mode 100644 vsts/vsts/wiki/v4_0/models/__init__.py create mode 100644 vsts/vsts/wiki/v4_0/models/change.py create mode 100644 vsts/vsts/wiki/v4_0/models/file_content_metadata.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_commit_ref.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_item.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_push.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_push_ref.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_ref_update.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_repository.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_repository_ref.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_status.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_status_context.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_template.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_user_date.py create mode 100644 vsts/vsts/wiki/v4_0/models/git_version_descriptor.py create mode 100644 vsts/vsts/wiki/v4_0/models/item_content.py create mode 100644 vsts/vsts/wiki/v4_0/models/item_model.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_attachment.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_change.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_page.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_page_change.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_repository.py create mode 100644 vsts/vsts/wiki/v4_0/models/wiki_update.py create mode 100644 vsts/vsts/wiki/v4_0/wiki_client.py create mode 100644 vsts/vsts/wiki/v4_1/__init__.py create mode 100644 vsts/vsts/wiki/v4_1/models/__init__.py create mode 100644 vsts/vsts/wiki/v4_1/models/git_repository.py create mode 100644 vsts/vsts/wiki/v4_1/models/git_repository_ref.py create mode 100644 vsts/vsts/wiki/v4_1/models/git_version_descriptor.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_attachment.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_move.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_response.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py create mode 100644 vsts/vsts/wiki/v4_1/models/wiki_v2.py create mode 100644 vsts/vsts/wiki/v4_1/wiki_client.py create mode 100644 vsts/vsts/work_item_tracking_process/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/control.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/extension.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/group.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/page.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/section.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/control.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/extension.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/group.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/page.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/section.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py create mode 100644 vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py create mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py create mode 100644 vsts/vsts/work_item_tracking_process_template/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py create mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py diff --git a/vsts/vsts/cloud_load_test/__init__.py b/vsts/vsts/cloud_load_test/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/cloud_load_test/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/cloud_load_test/v4_1/__init__.py b/vsts/vsts/cloud_load_test/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py b/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py new file mode 100644 index 00000000..56b77ad3 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py @@ -0,0 +1,438 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class CloudLoadTestClient(VssClient): + """CloudLoadTest + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(CloudLoadTestClient, 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 create_agent_group(self, group): + """CreateAgentGroup. + :param :class:` ` group: Agent group to be created + :rtype: :class:` ` + """ + content = self._serialize.body(group, 'AgentGroup') + response = self._send(http_method='POST', + location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', + version='4.1', + content=content) + return self._deserialize('AgentGroup', response) + + 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 bool machine_setup_input: + :param bool machine_access_data: + :param bool outgoing_request_urls: + :param str agent_group_name: Name of the agent group + :rtype: object + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if machine_setup_input is not None: + query_parameters['machineSetupInput'] = self._serialize.query('machine_setup_input', machine_setup_input, 'bool') + if machine_access_data is not None: + query_parameters['machineAccessData'] = self._serialize.query('machine_access_data', machine_access_data, 'bool') + if outgoing_request_urls is not None: + query_parameters['outgoingRequestUrls'] = self._serialize.query('outgoing_request_urls', outgoing_request_urls, 'bool') + if agent_group_name is not None: + query_parameters['agentGroupName'] = self._serialize.query('agent_group_name', agent_group_name, 'str') + response = self._send(http_method='GET', + location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def delete_static_agent(self, agent_group_id, agent_name): + """DeleteStaticAgent. + :param str agent_group_id: The agent group identifier + :param str agent_name: Name of the static agent + :rtype: str + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + response = self._send(http_method='DELETE', + location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('str', response) + + def get_static_agents(self, agent_group_id, agent_name=None): + """GetStaticAgents. + :param str agent_group_id: The agent group identifier + :param str agent_name: Name of the static agent + :rtype: object + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + response = self._send(http_method='GET', + location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_application(self, application_id): + """GetApplication. + :param str application_id: Filter by APM application identifier. + :rtype: :class:` ` + """ + route_values = {} + if application_id is not None: + route_values['applicationId'] = self._serialize.url('application_id', application_id, 'str') + response = self._send(http_method='GET', + location_id='2c986dce-8e8d-4142-b541-d016d5aff764', + version='4.1', + route_values=route_values) + return self._deserialize('Application', response) + + def get_applications(self, type=None): + """GetApplications. + :param str type: Filters the results based on the plugin type. + :rtype: [Application] + """ + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + response = self._send(http_method='GET', + location_id='2c986dce-8e8d-4142-b541-d016d5aff764', + version='4.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[Application]', response) + + def get_counters(self, test_run_id, group_names, include_summary=None): + """GetCounters. + :param str test_run_id: The test run identifier + :param str group_names: Comma separated names of counter groups, such as 'Application', 'Performance' and 'Throughput' + :param bool include_summary: + :rtype: [TestRunCounterInstance] + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + query_parameters = {} + if group_names is not None: + query_parameters['groupNames'] = self._serialize.query('group_names', group_names, 'str') + if include_summary is not None: + query_parameters['includeSummary'] = self._serialize.query('include_summary', include_summary, 'bool') + response = self._send(http_method='GET', + location_id='29265ea4-b5a5-4b2e-b054-47f5f6f00183', + version='4.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestRunCounterInstance]', response) + + def get_application_counters(self, application_id=None, plugintype=None): + """GetApplicationCounters. + :param str application_id: Filter by APM application identifier. + :param str plugintype: Currently ApplicationInsights is the only available plugin type. + :rtype: [ApplicationCounters] + """ + query_parameters = {} + if application_id is not None: + query_parameters['applicationId'] = self._serialize.query('application_id', application_id, 'str') + if plugintype is not None: + query_parameters['plugintype'] = self._serialize.query('plugintype', plugintype, 'str') + response = self._send(http_method='GET', + location_id='c1275ce9-6d26-4bc6-926b-b846502e812d', + version='4.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ApplicationCounters]', response) + + def get_counter_samples(self, counter_sample_query_details, test_run_id): + """GetCounterSamples. + :param :class:` ` counter_sample_query_details: + :param str test_run_id: The test run identifier + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + content = self._serialize.body(counter_sample_query_details, 'VssJsonCollectionWrapper') + response = self._send(http_method='POST', + location_id='bad18480-7193-4518-992a-37289c5bb92d', + version='4.1', + route_values=route_values, + content=content) + return self._deserialize('CounterSamplesResult', response) + + def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detailed=None): + """GetLoadTestRunErrors. + :param str test_run_id: The test run identifier + :param str type: Filter for the particular type of errors. + :param str sub_type: Filter for a particular subtype of errors. You should not provide error subtype without error type. + :param bool detailed: To include the details of test errors such as messagetext, request, stacktrace, testcasename, scenarioname, and lasterrordate. + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if sub_type is not None: + query_parameters['subType'] = self._serialize.query('sub_type', sub_type, 'str') + if detailed is not None: + query_parameters['detailed'] = self._serialize.query('detailed', detailed, 'bool') + response = self._send(http_method='GET', + location_id='b52025a7-3fb4-4283-8825-7079e75bd402', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('LoadTestErrors', response) + + def get_test_run_messages(self, test_run_id): + """GetTestRunMessages. + :param str test_run_id: Id of the test run + :rtype: [Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage] + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='2e7ba122-f522-4205-845b-2d270e59850a', + version='4.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage]', response) + + def get_plugin(self, type): + """GetPlugin. + :param str type: Currently ApplicationInsights is the only available plugin type. + :rtype: :class:` ` + """ + route_values = {} + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', + version='4.1', + route_values=route_values) + return self._deserialize('ApplicationType', response) + + def get_plugins(self): + """GetPlugins. + :rtype: [ApplicationType] + """ + response = self._send(http_method='GET', + location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', + version='4.1', + returns_collection=True) + return self._deserialize('[ApplicationType]', response) + + def get_load_test_result(self, test_run_id): + """GetLoadTestResult. + :param str test_run_id: The test run identifier + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='5ed69bd8-4557-4cec-9b75-1ad67d0c257b', + version='4.1', + route_values=route_values) + return self._deserialize('TestResults', response) + + def create_test_definition(self, test_definition): + """CreateTestDefinition. + :param :class:` ` test_definition: Test definition to be created + :rtype: :class:` ` + """ + content = self._serialize.body(test_definition, 'TestDefinition') + response = self._send(http_method='POST', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='4.1', + content=content) + return self._deserialize('TestDefinition', response) + + def get_test_definition(self, test_definition_id): + """GetTestDefinition. + :param str test_definition_id: The test definition identifier + :rtype: :class:` ` + """ + route_values = {} + if test_definition_id is not None: + route_values['testDefinitionId'] = self._serialize.url('test_definition_id', test_definition_id, 'str') + response = self._send(http_method='GET', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='4.1', + route_values=route_values) + return self._deserialize('TestDefinition', response) + + def get_test_definitions(self, from_date=None, to_date=None, top=None): + """GetTestDefinitions. + :param str from_date: Date after which test definitions were created + :param str to_date: Date before which test definitions were crated + :param int top: + :rtype: [TestDefinitionBasic] + """ + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'str') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query('to_date', to_date, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='4.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[TestDefinitionBasic]', response) + + def update_test_definition(self, test_definition): + """UpdateTestDefinition. + :param :class:` ` test_definition: + :rtype: :class:` ` + """ + content = self._serialize.body(test_definition, 'TestDefinition') + response = self._send(http_method='PUT', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='4.1', + content=content) + return self._deserialize('TestDefinition', response) + + def create_test_drop(self, web_test_drop): + """CreateTestDrop. + :param :class:` ` web_test_drop: Test drop to be created + :rtype: :class:` ` + """ + content = self._serialize.body(web_test_drop, 'Microsoft.VisualStudio.TestService.WebApiModel.TestDrop') + response = self._send(http_method='POST', + location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', + version='4.1', + content=content) + return self._deserialize('Microsoft.VisualStudio.TestService.WebApiModel.TestDrop', response) + + def get_test_drop(self, test_drop_id): + """GetTestDrop. + :param str test_drop_id: The test drop identifier + :rtype: :class:` ` + """ + route_values = {} + if test_drop_id is not None: + route_values['testDropId'] = self._serialize.url('test_drop_id', test_drop_id, 'str') + response = self._send(http_method='GET', + location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', + version='4.1', + route_values=route_values) + return self._deserialize('Microsoft.VisualStudio.TestService.WebApiModel.TestDrop', response) + + def create_test_run(self, web_test_run): + """CreateTestRun. + :param :class:` ` web_test_run: + :rtype: :class:` ` + """ + content = self._serialize.body(web_test_run, 'TestRun') + response = self._send(http_method='POST', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='4.1', + content=content) + return self._deserialize('TestRun', response) + + def get_test_run(self, test_run_id): + """GetTestRun. + :param str test_run_id: Unique ID of the test run + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='4.1', + route_values=route_values) + return self._deserialize('TestRun', response) + + def get_test_runs(self, name=None, requested_by=None, status=None, run_type=None, from_date=None, to_date=None, detailed=None, top=None, runsourceidentifier=None, retention_state=None): + """GetTestRuns. + Returns test runs based on the filter specified. Returns all runs of the tenant if there is no filter. + :param str name: Name for the test run. Names are not unique. Test runs with same name are assigned sequential rolling numbers. + :param str requested_by: Filter by the user who requested the test run. Here requestedBy should be the display name of the user. + :param str status: Filter by the test run status. + :param str run_type: Valid values include: null, one of TestRunType, or "*" + :param str from_date: Filter by the test runs that have been modified after the fromDate timestamp. + :param str to_date: Filter by the test runs that have been modified before the toDate timestamp. + :param bool detailed: Include the detailed test run attributes. + :param int top: The maximum number of test runs to return. + :param str runsourceidentifier: + :param str retention_state: + :rtype: object + """ + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if requested_by is not None: + query_parameters['requestedBy'] = self._serialize.query('requested_by', requested_by, 'str') + if status is not None: + query_parameters['status'] = self._serialize.query('status', status, 'str') + if run_type is not None: + query_parameters['runType'] = self._serialize.query('run_type', run_type, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'str') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query('to_date', to_date, 'str') + if detailed is not None: + query_parameters['detailed'] = self._serialize.query('detailed', detailed, 'bool') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if runsourceidentifier is not None: + query_parameters['runsourceidentifier'] = self._serialize.query('runsourceidentifier', runsourceidentifier, 'str') + if retention_state is not None: + query_parameters['retentionState'] = self._serialize.query('retention_state', retention_state, 'str') + response = self._send(http_method='GET', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='4.1', + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_test_run(self, web_test_run, test_run_id): + """UpdateTestRun. + :param :class:` ` web_test_run: + :param str test_run_id: + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + content = self._serialize.body(web_test_run, 'TestRun') + self._send(http_method='PATCH', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='4.1', + route_values=route_values, + content=content) + diff --git a/vsts/vsts/cloud_load_test/v4_1/models/__init__.py b/vsts/vsts/cloud_load_test/v4_1/models/__init__.py new file mode 100644 index 00000000..b32655dc --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/__init__.py @@ -0,0 +1,107 @@ +# -------------------------------------------------------------------------------------------- +# 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 .agent_group import AgentGroup +from .agent_group_access_data import AgentGroupAccessData +from .application import Application +from .application_counters import ApplicationCounters +from .application_type import ApplicationType +from .browser_mix import BrowserMix +from .clt_customer_intelligence_data import CltCustomerIntelligenceData +from .counter_group import CounterGroup +from .counter_instance_samples import CounterInstanceSamples +from .counter_sample import CounterSample +from .counter_sample_query_details import CounterSampleQueryDetails +from .counter_samples_result import CounterSamplesResult +from .diagnostics import Diagnostics +from .drop_access_data import DropAccessData +from .error_details import ErrorDetails +from .load_generation_geo_location import LoadGenerationGeoLocation +from .load_test import LoadTest +from .load_test_definition import LoadTestDefinition +from .load_test_errors import LoadTestErrors +from .load_test_run_details import LoadTestRunDetails +from .load_test_run_settings import LoadTestRunSettings +from .overridable_run_settings import OverridableRunSettings +from .page_summary import PageSummary +from .request_summary import RequestSummary +from .scenario_summary import ScenarioSummary +from .static_agent_run_setting import StaticAgentRunSetting +from .sub_type import SubType +from .summary_percentile_data import SummaryPercentileData +from .tenant_details import TenantDetails +from .test_definition import TestDefinition +from .test_definition_basic import TestDefinitionBasic +from .test_drop import TestDrop +from .test_drop_ref import TestDropRef +from .test_results import TestResults +from .test_results_summary import TestResultsSummary +from .test_run import TestRun +from .test_run_abort_message import TestRunAbortMessage +from .test_run_basic import TestRunBasic +from .test_run_counter_instance import TestRunCounterInstance +from .test_run_message import TestRunMessage +from .test_settings import TestSettings +from .test_summary import TestSummary +from .transaction_summary import TransactionSummary +from .web_api_load_test_machine_input import WebApiLoadTestMachineInput +from .web_api_setup_paramaters import WebApiSetupParamaters +from .web_api_test_machine import WebApiTestMachine +from .web_api_user_load_test_machine_input import WebApiUserLoadTestMachineInput +from .web_instance_summary_data import WebInstanceSummaryData + +__all__ = [ + 'AgentGroup', + 'AgentGroupAccessData', + 'Application', + 'ApplicationCounters', + 'ApplicationType', + 'BrowserMix', + 'CltCustomerIntelligenceData', + 'CounterGroup', + 'CounterInstanceSamples', + 'CounterSample', + 'CounterSampleQueryDetails', + 'CounterSamplesResult', + 'Diagnostics', + 'DropAccessData', + 'ErrorDetails', + 'LoadGenerationGeoLocation', + 'LoadTest', + 'LoadTestDefinition', + 'LoadTestErrors', + 'LoadTestRunDetails', + 'LoadTestRunSettings', + 'OverridableRunSettings', + 'PageSummary', + 'RequestSummary', + 'ScenarioSummary', + 'StaticAgentRunSetting', + 'SubType', + 'SummaryPercentileData', + 'TenantDetails', + 'TestDefinition', + 'TestDefinitionBasic', + 'TestDrop', + 'TestDropRef', + 'TestResults', + 'TestResultsSummary', + 'TestRun', + 'TestRunAbortMessage', + 'TestRunBasic', + 'TestRunCounterInstance', + 'TestRunMessage', + 'TestSettings', + 'TestSummary', + 'TransactionSummary', + 'WebApiLoadTestMachineInput', + 'WebApiSetupParamaters', + 'WebApiTestMachine', + 'WebApiUserLoadTestMachineInput', + 'WebInstanceSummaryData', +] diff --git a/vsts/vsts/cloud_load_test/v4_1/models/agent_group.py b/vsts/vsts/cloud_load_test/v4_1/models/agent_group.py new file mode 100644 index 00000000..b008cfbb --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/agent_group.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentGroup(Model): + """AgentGroup. + + :param created_by: + :type created_by: IdentityRef + :param creation_time: + :type creation_time: datetime + :param group_id: + :type group_id: str + :param group_name: + :type group_name: str + :param machine_access_data: + :type machine_access_data: list of :class:`AgentGroupAccessData ` + :param machine_configuration: + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :param tenant_id: + :type tenant_id: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'machine_access_data': {'key': 'machineAccessData', 'type': '[AgentGroupAccessData]'}, + 'machine_configuration': {'key': 'machineConfiguration', 'type': 'WebApiUserLoadTestMachineInput'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'} + } + + def __init__(self, created_by=None, creation_time=None, group_id=None, group_name=None, machine_access_data=None, machine_configuration=None, tenant_id=None): + super(AgentGroup, self).__init__() + self.created_by = created_by + self.creation_time = creation_time + self.group_id = group_id + self.group_name = group_name + self.machine_access_data = machine_access_data + self.machine_configuration = machine_configuration + self.tenant_id = tenant_id diff --git a/vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py b/vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py new file mode 100644 index 00000000..df47a8a1 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentGroupAccessData(Model): + """AgentGroupAccessData. + + :param details: + :type details: str + :param storage_connection_string: + :type storage_connection_string: str + :param storage_end_point: + :type storage_end_point: str + :param storage_name: + :type storage_name: str + :param storage_type: + :type storage_type: str + """ + + _attribute_map = { + 'details': {'key': 'details', 'type': 'str'}, + 'storage_connection_string': {'key': 'storageConnectionString', 'type': 'str'}, + 'storage_end_point': {'key': 'storageEndPoint', 'type': 'str'}, + 'storage_name': {'key': 'storageName', 'type': 'str'}, + 'storage_type': {'key': 'storageType', 'type': 'str'} + } + + def __init__(self, details=None, storage_connection_string=None, storage_end_point=None, storage_name=None, storage_type=None): + super(AgentGroupAccessData, self).__init__() + self.details = details + self.storage_connection_string = storage_connection_string + self.storage_end_point = storage_end_point + self.storage_name = storage_name + self.storage_type = storage_type diff --git a/vsts/vsts/cloud_load_test/v4_1/models/application.py b/vsts/vsts/cloud_load_test/v4_1/models/application.py new file mode 100644 index 00000000..92393fc1 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/application.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Application(Model): + """Application. + + :param application_id: + :type application_id: str + :param description: + :type description: str + :param name: + :type name: str + :param path: + :type path: str + :param path_seperator: + :type path_seperator: str + :param type: + :type type: str + :param version: + :type version: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'path_seperator': {'key': 'pathSeperator', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, application_id=None, description=None, name=None, path=None, path_seperator=None, type=None, version=None): + super(Application, self).__init__() + self.application_id = application_id + self.description = description + self.name = name + self.path = path + self.path_seperator = path_seperator + self.type = type + self.version = version diff --git a/vsts/vsts/cloud_load_test/v4_1/models/application_counters.py b/vsts/vsts/cloud_load_test/v4_1/models/application_counters.py new file mode 100644 index 00000000..3db1ab75 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/application_counters.py @@ -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.serialization import Model + + +class ApplicationCounters(Model): + """ApplicationCounters. + + :param application_id: + :type application_id: str + :param description: + :type description: str + :param id: + :type id: str + :param is_default: + :type is_default: bool + :param name: + :type name: str + :param path: + :type path: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, application_id=None, description=None, id=None, is_default=None, name=None, path=None): + super(ApplicationCounters, self).__init__() + self.application_id = application_id + self.description = description + self.id = id + self.is_default = is_default + self.name = name + self.path = path diff --git a/vsts/vsts/cloud_load_test/v4_1/models/application_type.py b/vsts/vsts/cloud_load_test/v4_1/models/application_type.py new file mode 100644 index 00000000..0f61bed2 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/application_type.py @@ -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.serialization import Model + + +class ApplicationType(Model): + """ApplicationType. + + :param action_uri_link: + :type action_uri_link: str + :param aut_portal_link: + :type aut_portal_link: str + :param is_enabled: + :type is_enabled: bool + :param max_components_allowed_for_collection: + :type max_components_allowed_for_collection: int + :param max_counters_allowed: + :type max_counters_allowed: int + :param type: + :type type: str + """ + + _attribute_map = { + 'action_uri_link': {'key': 'actionUriLink', 'type': 'str'}, + 'aut_portal_link': {'key': 'autPortalLink', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'max_components_allowed_for_collection': {'key': 'maxComponentsAllowedForCollection', 'type': 'int'}, + 'max_counters_allowed': {'key': 'maxCountersAllowed', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, action_uri_link=None, aut_portal_link=None, is_enabled=None, max_components_allowed_for_collection=None, max_counters_allowed=None, type=None): + super(ApplicationType, self).__init__() + self.action_uri_link = action_uri_link + self.aut_portal_link = aut_portal_link + self.is_enabled = is_enabled + self.max_components_allowed_for_collection = max_components_allowed_for_collection + self.max_counters_allowed = max_counters_allowed + self.type = type diff --git a/vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py b/vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py new file mode 100644 index 00000000..e6c39091 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BrowserMix(Model): + """BrowserMix. + + :param browser_name: + :type browser_name: str + :param browser_percentage: + :type browser_percentage: int + """ + + _attribute_map = { + 'browser_name': {'key': 'browserName', 'type': 'str'}, + 'browser_percentage': {'key': 'browserPercentage', 'type': 'int'} + } + + def __init__(self, browser_name=None, browser_percentage=None): + super(BrowserMix, self).__init__() + self.browser_name = browser_name + self.browser_percentage = browser_percentage diff --git a/vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py b/vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py new file mode 100644 index 00000000..64971605 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CltCustomerIntelligenceData(Model): + """CltCustomerIntelligenceData. + + :param area: + :type area: str + :param feature: + :type feature: str + :param properties: + :type properties: dict + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'str'}, + 'feature': {'key': 'feature', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, area=None, feature=None, properties=None): + super(CltCustomerIntelligenceData, self).__init__() + self.area = area + self.feature = feature + self.properties = properties diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_group.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_group.py new file mode 100644 index 00000000..4d93bc0d --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/counter_group.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CounterGroup(Model): + """CounterGroup. + + :param group_name: + :type group_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, group_name=None, url=None): + super(CounterGroup, self).__init__() + self.group_name = group_name + self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py new file mode 100644 index 00000000..158193e7 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CounterInstanceSamples(Model): + """CounterInstanceSamples. + + :param count: + :type count: int + :param counter_instance_id: + :type counter_instance_id: str + :param next_refresh_time: + :type next_refresh_time: datetime + :param values: + :type values: list of :class:`CounterSample ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'next_refresh_time': {'key': 'nextRefreshTime', 'type': 'iso-8601'}, + 'values': {'key': 'values', 'type': '[CounterSample]'} + } + + def __init__(self, count=None, counter_instance_id=None, next_refresh_time=None, values=None): + super(CounterInstanceSamples, self).__init__() + self.count = count + self.counter_instance_id = counter_instance_id + self.next_refresh_time = next_refresh_time + self.values = values diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py new file mode 100644 index 00000000..eb2d2cb6 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CounterSample(Model): + """CounterSample. + + :param base_value: + :type base_value: long + :param computed_value: + :type computed_value: int + :param counter_frequency: + :type counter_frequency: long + :param counter_instance_id: + :type counter_instance_id: str + :param counter_type: + :type counter_type: str + :param interval_end_date: + :type interval_end_date: datetime + :param interval_number: + :type interval_number: int + :param raw_value: + :type raw_value: long + :param system_frequency: + :type system_frequency: long + :param time_stamp: + :type time_stamp: long + """ + + _attribute_map = { + 'base_value': {'key': 'baseValue', 'type': 'long'}, + 'computed_value': {'key': 'computedValue', 'type': 'int'}, + 'counter_frequency': {'key': 'counterFrequency', 'type': 'long'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'counter_type': {'key': 'counterType', 'type': 'str'}, + 'interval_end_date': {'key': 'intervalEndDate', 'type': 'iso-8601'}, + 'interval_number': {'key': 'intervalNumber', 'type': 'int'}, + 'raw_value': {'key': 'rawValue', 'type': 'long'}, + 'system_frequency': {'key': 'systemFrequency', 'type': 'long'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'long'} + } + + def __init__(self, base_value=None, computed_value=None, counter_frequency=None, counter_instance_id=None, counter_type=None, interval_end_date=None, interval_number=None, raw_value=None, system_frequency=None, time_stamp=None): + super(CounterSample, self).__init__() + self.base_value = base_value + self.computed_value = computed_value + self.counter_frequency = counter_frequency + self.counter_instance_id = counter_instance_id + self.counter_type = counter_type + self.interval_end_date = interval_end_date + self.interval_number = interval_number + self.raw_value = raw_value + self.system_frequency = system_frequency + self.time_stamp = time_stamp diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py new file mode 100644 index 00000000..d78217a2 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CounterSampleQueryDetails(Model): + """CounterSampleQueryDetails. + + :param counter_instance_id: + :type counter_instance_id: str + :param from_interval: + :type from_interval: int + :param to_interval: + :type to_interval: int + """ + + _attribute_map = { + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'from_interval': {'key': 'fromInterval', 'type': 'int'}, + 'to_interval': {'key': 'toInterval', 'type': 'int'} + } + + def __init__(self, counter_instance_id=None, from_interval=None, to_interval=None): + super(CounterSampleQueryDetails, self).__init__() + self.counter_instance_id = counter_instance_id + self.from_interval = from_interval + self.to_interval = to_interval diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py new file mode 100644 index 00000000..aeb595c0 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CounterSamplesResult(Model): + """CounterSamplesResult. + + :param count: + :type count: int + :param max_batch_size: + :type max_batch_size: int + :param total_samples_count: + :type total_samples_count: int + :param values: + :type values: list of :class:`CounterInstanceSamples ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'max_batch_size': {'key': 'maxBatchSize', 'type': 'int'}, + 'total_samples_count': {'key': 'totalSamplesCount', 'type': 'int'}, + 'values': {'key': 'values', 'type': '[CounterInstanceSamples]'} + } + + def __init__(self, count=None, max_batch_size=None, total_samples_count=None, values=None): + super(CounterSamplesResult, self).__init__() + self.count = count + self.max_batch_size = max_batch_size + self.total_samples_count = total_samples_count + self.values = values diff --git a/vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py b/vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py new file mode 100644 index 00000000..9daaff33 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Diagnostics(Model): + """Diagnostics. + + :param diagnostic_store_connection_string: + :type diagnostic_store_connection_string: str + :param last_modified_time: + :type last_modified_time: datetime + :param relative_path_to_diagnostic_files: + :type relative_path_to_diagnostic_files: str + """ + + _attribute_map = { + 'diagnostic_store_connection_string': {'key': 'diagnosticStoreConnectionString', 'type': 'str'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'relative_path_to_diagnostic_files': {'key': 'relativePathToDiagnosticFiles', 'type': 'str'} + } + + def __init__(self, diagnostic_store_connection_string=None, last_modified_time=None, relative_path_to_diagnostic_files=None): + super(Diagnostics, self).__init__() + self.diagnostic_store_connection_string = diagnostic_store_connection_string + self.last_modified_time = last_modified_time + self.relative_path_to_diagnostic_files = relative_path_to_diagnostic_files diff --git a/vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py b/vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py new file mode 100644 index 00000000..5adf763e --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DropAccessData(Model): + """DropAccessData. + + :param drop_container_url: + :type drop_container_url: str + :param sas_key: + :type sas_key: str + """ + + _attribute_map = { + 'drop_container_url': {'key': 'dropContainerUrl', 'type': 'str'}, + 'sas_key': {'key': 'sasKey', 'type': 'str'} + } + + def __init__(self, drop_container_url=None, sas_key=None): + super(DropAccessData, self).__init__() + self.drop_container_url = drop_container_url + self.sas_key = sas_key diff --git a/vsts/vsts/cloud_load_test/v4_1/models/error_details.py b/vsts/vsts/cloud_load_test/v4_1/models/error_details.py new file mode 100644 index 00000000..d0d0edef --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/error_details.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ErrorDetails(Model): + """ErrorDetails. + + :param last_error_date: + :type last_error_date: datetime + :param message_text: + :type message_text: str + :param occurrences: + :type occurrences: int + :param request: + :type request: str + :param scenario_name: + :type scenario_name: str + :param stack_trace: + :type stack_trace: str + :param test_case_name: + :type test_case_name: str + """ + + _attribute_map = { + 'last_error_date': {'key': 'lastErrorDate', 'type': 'iso-8601'}, + 'message_text': {'key': 'messageText', 'type': 'str'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'request': {'key': 'request', 'type': 'str'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'test_case_name': {'key': 'testCaseName', 'type': 'str'} + } + + def __init__(self, last_error_date=None, message_text=None, occurrences=None, request=None, scenario_name=None, stack_trace=None, test_case_name=None): + super(ErrorDetails, self).__init__() + self.last_error_date = last_error_date + self.message_text = message_text + self.occurrences = occurrences + self.request = request + self.scenario_name = scenario_name + self.stack_trace = stack_trace + self.test_case_name = test_case_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py b/vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py new file mode 100644 index 00000000..d1c729f2 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LoadGenerationGeoLocation(Model): + """LoadGenerationGeoLocation. + + :param location: + :type location: str + :param percentage: + :type percentage: int + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'percentage': {'key': 'percentage', 'type': 'int'} + } + + def __init__(self, location=None, percentage=None): + super(LoadGenerationGeoLocation, self).__init__() + self.location = location + self.percentage = percentage diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test.py new file mode 100644 index 00000000..6e2fcacc --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/load_test.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LoadTest(Model): + """LoadTest. + + """ + + _attribute_map = { + } + + def __init__(self): + super(LoadTest, self).__init__() diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py new file mode 100644 index 00000000..0cf57ce4 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LoadTestDefinition(Model): + """LoadTestDefinition. + + :param agent_count: + :type agent_count: int + :param browser_mixs: + :type browser_mixs: list of :class:`BrowserMix ` + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_pattern_name: + :type load_pattern_name: str + :param load_test_name: + :type load_test_name: str + :param max_vusers: + :type max_vusers: int + :param run_duration: + :type run_duration: int + :param sampling_rate: + :type sampling_rate: int + :param think_time: + :type think_time: int + :param urls: + :type urls: list of str + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'browser_mixs': {'key': 'browserMixs', 'type': '[BrowserMix]'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_pattern_name': {'key': 'loadPatternName', 'type': 'str'}, + 'load_test_name': {'key': 'loadTestName', 'type': 'str'}, + 'max_vusers': {'key': 'maxVusers', 'type': 'int'}, + 'run_duration': {'key': 'runDuration', 'type': 'int'}, + 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, + 'think_time': {'key': 'thinkTime', 'type': 'int'}, + 'urls': {'key': 'urls', 'type': '[str]'} + } + + def __init__(self, agent_count=None, browser_mixs=None, core_count=None, cores_per_agent=None, load_generation_geo_locations=None, load_pattern_name=None, load_test_name=None, max_vusers=None, run_duration=None, sampling_rate=None, think_time=None, urls=None): + super(LoadTestDefinition, self).__init__() + self.agent_count = agent_count + self.browser_mixs = browser_mixs + self.core_count = core_count + self.cores_per_agent = cores_per_agent + self.load_generation_geo_locations = load_generation_geo_locations + self.load_pattern_name = load_pattern_name + self.load_test_name = load_test_name + self.max_vusers = max_vusers + self.run_duration = run_duration + self.sampling_rate = sampling_rate + self.think_time = think_time + self.urls = urls diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py new file mode 100644 index 00000000..6be7922f --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LoadTestErrors(Model): + """LoadTestErrors. + + :param count: + :type count: int + :param occurrences: + :type occurrences: int + :param types: + :type types: list of :class:`object ` + :param url: + :type url: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'types': {'key': 'types', 'type': '[object]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, count=None, occurrences=None, types=None, url=None): + super(LoadTestErrors, self).__init__() + self.count = count + self.occurrences = occurrences + self.types = types + self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py new file mode 100644 index 00000000..cec05618 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# 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 .load_test_run_settings import LoadTestRunSettings + + +class LoadTestRunDetails(LoadTestRunSettings): + """LoadTestRunDetails. + + :param agent_count: + :type agent_count: int + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param duration: + :type duration: int + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param sampling_interval: + :type sampling_interval: int + :param warm_up_duration: + :type warm_up_duration: int + :param virtual_user_count: + :type virtual_user_count: int + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'int'}, + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'}, + 'virtual_user_count': {'key': 'virtualUserCount', 'type': 'int'} + } + + def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None, virtual_user_count=None): + super(LoadTestRunDetails, self).__init__(agent_count=agent_count, core_count=core_count, cores_per_agent=cores_per_agent, duration=duration, load_generator_machines_type=load_generator_machines_type, sampling_interval=sampling_interval, warm_up_duration=warm_up_duration) + self.virtual_user_count = virtual_user_count diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py new file mode 100644 index 00000000..b1a283d3 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class LoadTestRunSettings(Model): + """LoadTestRunSettings. + + :param agent_count: + :type agent_count: int + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param duration: + :type duration: int + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param sampling_interval: + :type sampling_interval: int + :param warm_up_duration: + :type warm_up_duration: int + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'int'}, + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'} + } + + def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None): + super(LoadTestRunSettings, self).__init__() + self.agent_count = agent_count + self.core_count = core_count + self.cores_per_agent = cores_per_agent + self.duration = duration + self.load_generator_machines_type = load_generator_machines_type + self.sampling_interval = sampling_interval + self.warm_up_duration = warm_up_duration diff --git a/vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py b/vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py new file mode 100644 index 00000000..ad2589a2 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OverridableRunSettings(Model): + """OverridableRunSettings. + + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param static_agent_run_settings: + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + """ + + _attribute_map = { + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'} + } + + def __init__(self, load_generator_machines_type=None, static_agent_run_settings=None): + super(OverridableRunSettings, self).__init__() + self.load_generator_machines_type = load_generator_machines_type + self.static_agent_run_settings = static_agent_run_settings diff --git a/vsts/vsts/cloud_load_test/v4_1/models/page_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/page_summary.py new file mode 100644 index 00000000..1bee7d5a --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/page_summary.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PageSummary(Model): + """PageSummary. + + :param average_page_time: + :type average_page_time: float + :param page_url: + :type page_url: str + :param percentage_pages_meeting_goal: + :type percentage_pages_meeting_goal: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_pages: + :type total_pages: int + """ + + _attribute_map = { + 'average_page_time': {'key': 'averagePageTime', 'type': 'float'}, + 'page_url': {'key': 'pageUrl', 'type': 'str'}, + 'percentage_pages_meeting_goal': {'key': 'percentagePagesMeetingGoal', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_pages': {'key': 'totalPages', 'type': 'int'} + } + + def __init__(self, average_page_time=None, page_url=None, percentage_pages_meeting_goal=None, percentile_data=None, scenario_name=None, test_name=None, total_pages=None): + super(PageSummary, self).__init__() + self.average_page_time = average_page_time + self.page_url = page_url + self.percentage_pages_meeting_goal = percentage_pages_meeting_goal + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_pages = total_pages diff --git a/vsts/vsts/cloud_load_test/v4_1/models/request_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/request_summary.py new file mode 100644 index 00000000..0edf9df2 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/request_summary.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RequestSummary(Model): + """RequestSummary. + + :param average_response_time: + :type average_response_time: float + :param failed_requests: + :type failed_requests: int + :param passed_requests: + :type passed_requests: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param requests_per_sec: + :type requests_per_sec: float + :param request_url: + :type request_url: str + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_requests: + :type total_requests: int + """ + + _attribute_map = { + 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, + 'failed_requests': {'key': 'failedRequests', 'type': 'int'}, + 'passed_requests': {'key': 'passedRequests', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'requests_per_sec': {'key': 'requestsPerSec', 'type': 'float'}, + 'request_url': {'key': 'requestUrl', 'type': 'str'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_requests': {'key': 'totalRequests', 'type': 'int'} + } + + def __init__(self, average_response_time=None, failed_requests=None, passed_requests=None, percentile_data=None, requests_per_sec=None, request_url=None, scenario_name=None, test_name=None, total_requests=None): + super(RequestSummary, self).__init__() + self.average_response_time = average_response_time + self.failed_requests = failed_requests + self.passed_requests = passed_requests + self.percentile_data = percentile_data + self.requests_per_sec = requests_per_sec + self.request_url = request_url + self.scenario_name = scenario_name + self.test_name = test_name + self.total_requests = total_requests diff --git a/vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py new file mode 100644 index 00000000..58498ac1 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ScenarioSummary(Model): + """ScenarioSummary. + + :param max_user_load: + :type max_user_load: int + :param min_user_load: + :type min_user_load: int + :param scenario_name: + :type scenario_name: str + """ + + _attribute_map = { + 'max_user_load': {'key': 'maxUserLoad', 'type': 'int'}, + 'min_user_load': {'key': 'minUserLoad', 'type': 'int'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'} + } + + def __init__(self, max_user_load=None, min_user_load=None, scenario_name=None): + super(ScenarioSummary, self).__init__() + self.max_user_load = max_user_load + self.min_user_load = min_user_load + self.scenario_name = scenario_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py b/vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py new file mode 100644 index 00000000..79d478be --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class StaticAgentRunSetting(Model): + """StaticAgentRunSetting. + + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param static_agent_group_name: + :type static_agent_group_name: str + """ + + _attribute_map = { + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'static_agent_group_name': {'key': 'staticAgentGroupName', 'type': 'str'} + } + + def __init__(self, load_generator_machines_type=None, static_agent_group_name=None): + super(StaticAgentRunSetting, self).__init__() + self.load_generator_machines_type = load_generator_machines_type + self.static_agent_group_name = static_agent_group_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/sub_type.py b/vsts/vsts/cloud_load_test/v4_1/models/sub_type.py new file mode 100644 index 00000000..f20c5644 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/sub_type.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SubType(Model): + """SubType. + + :param count: + :type count: int + :param error_detail_list: + :type error_detail_list: list of :class:`ErrorDetails ` + :param occurrences: + :type occurrences: int + :param sub_type_name: + :type sub_type_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'error_detail_list': {'key': 'errorDetailList', 'type': '[ErrorDetails]'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'sub_type_name': {'key': 'subTypeName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, count=None, error_detail_list=None, occurrences=None, sub_type_name=None, url=None): + super(SubType, self).__init__() + self.count = count + self.error_detail_list = error_detail_list + self.occurrences = occurrences + self.sub_type_name = sub_type_name + self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py b/vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py new file mode 100644 index 00000000..f6d608ea --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SummaryPercentileData(Model): + """SummaryPercentileData. + + :param percentile: + :type percentile: int + :param percentile_value: + :type percentile_value: float + """ + + _attribute_map = { + 'percentile': {'key': 'percentile', 'type': 'int'}, + 'percentile_value': {'key': 'percentileValue', 'type': 'float'} + } + + def __init__(self, percentile=None, percentile_value=None): + super(SummaryPercentileData, self).__init__() + self.percentile = percentile + self.percentile_value = percentile_value diff --git a/vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py b/vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py new file mode 100644 index 00000000..8dd29b9c --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py @@ -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.serialization import Model + + +class TenantDetails(Model): + """TenantDetails. + + :param access_details: + :type access_details: list of :class:`AgentGroupAccessData ` + :param id: + :type id: str + :param static_machines: + :type static_machines: list of :class:`WebApiTestMachine ` + :param user_load_agent_input: + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :param user_load_agent_resources_uri: + :type user_load_agent_resources_uri: str + :param valid_geo_locations: + :type valid_geo_locations: list of str + """ + + _attribute_map = { + 'access_details': {'key': 'accessDetails', 'type': '[AgentGroupAccessData]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'static_machines': {'key': 'staticMachines', 'type': '[WebApiTestMachine]'}, + 'user_load_agent_input': {'key': 'userLoadAgentInput', 'type': 'WebApiUserLoadTestMachineInput'}, + 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, + 'valid_geo_locations': {'key': 'validGeoLocations', 'type': '[str]'} + } + + def __init__(self, access_details=None, id=None, static_machines=None, user_load_agent_input=None, user_load_agent_resources_uri=None, valid_geo_locations=None): + super(TenantDetails, self).__init__() + self.access_details = access_details + self.id = id + self.static_machines = static_machines + self.user_load_agent_input = user_load_agent_input + self.user_load_agent_resources_uri = user_load_agent_resources_uri + self.valid_geo_locations = valid_geo_locations diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_definition.py b/vsts/vsts/cloud_load_test/v4_1/models/test_definition.py new file mode 100644 index 00000000..07784e8e --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_definition.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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 .test_definition_basic import TestDefinitionBasic + + +class TestDefinition(TestDefinitionBasic): + """TestDefinition. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param last_modified_by: + :type last_modified_by: IdentityRef + :param last_modified_date: + :type last_modified_date: datetime + :param load_test_type: + :type load_test_type: object + :param name: + :type name: str + :param description: + :type description: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_definition_source: + :type load_test_definition_source: str + :param run_settings: + :type run_settings: :class:`LoadTestRunSettings ` + :param static_agent_run_settings: + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :param test_details: + :type test_details: :class:`LoadTest ` + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_definition_source': {'key': 'loadTestDefinitionSource', 'type': 'str'}, + 'run_settings': {'key': 'runSettings', 'type': 'LoadTestRunSettings'}, + 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'}, + 'test_details': {'key': 'testDetails', 'type': 'LoadTest'} + } + + def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None, description=None, load_generation_geo_locations=None, load_test_definition_source=None, run_settings=None, static_agent_run_settings=None, test_details=None): + super(TestDefinition, self).__init__(access_data=access_data, created_by=created_by, created_date=created_date, id=id, last_modified_by=last_modified_by, last_modified_date=last_modified_date, load_test_type=load_test_type, name=name) + self.description = description + self.load_generation_geo_locations = load_generation_geo_locations + self.load_test_definition_source = load_test_definition_source + self.run_settings = run_settings + self.static_agent_run_settings = static_agent_run_settings + self.test_details = test_details diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py b/vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py new file mode 100644 index 00000000..d97a4ff6 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestDefinitionBasic(Model): + """TestDefinitionBasic. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param last_modified_by: + :type last_modified_by: IdentityRef + :param last_modified_date: + :type last_modified_date: datetime + :param load_test_type: + :type load_test_type: object + :param name: + :type name: str + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None): + super(TestDefinitionBasic, self).__init__() + self.access_data = access_data + self.created_by = created_by + self.created_date = created_date + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_date = last_modified_date + self.load_test_type = load_test_type + self.name = name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_drop.py b/vsts/vsts/cloud_load_test/v4_1/models/test_drop.py new file mode 100644 index 00000000..62814e7b --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_drop.py @@ -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.serialization import Model + + +class TestDrop(Model): + """TestDrop. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_date: + :type created_date: datetime + :param drop_type: + :type drop_type: str + :param id: + :type id: str + :param load_test_definition: + :type load_test_definition: :class:`LoadTestDefinition ` + :param test_run_id: + :type test_run_id: str + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'drop_type': {'key': 'dropType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_test_definition': {'key': 'loadTestDefinition', 'type': 'LoadTestDefinition'}, + 'test_run_id': {'key': 'testRunId', 'type': 'str'} + } + + def __init__(self, access_data=None, created_date=None, drop_type=None, id=None, load_test_definition=None, test_run_id=None): + super(TestDrop, self).__init__() + self.access_data = access_data + self.created_date = created_date + self.drop_type = drop_type + self.id = id + self.load_test_definition = load_test_definition + self.test_run_id = test_run_id diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py b/vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py new file mode 100644 index 00000000..840bd63c --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestDropRef(Model): + """TestDropRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(TestDropRef, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_results.py b/vsts/vsts/cloud_load_test/v4_1/models/test_results.py new file mode 100644 index 00000000..dad7cf85 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_results.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResults(Model): + """TestResults. + + :param cloud_load_test_solution_url: + :type cloud_load_test_solution_url: str + :param counter_groups: + :type counter_groups: list of :class:`CounterGroup ` + :param diagnostics: + :type diagnostics: :class:`Diagnostics ` + :param results_url: + :type results_url: str + """ + + _attribute_map = { + 'cloud_load_test_solution_url': {'key': 'cloudLoadTestSolutionUrl', 'type': 'str'}, + 'counter_groups': {'key': 'counterGroups', 'type': '[CounterGroup]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'Diagnostics'}, + 'results_url': {'key': 'resultsUrl', 'type': 'str'} + } + + def __init__(self, cloud_load_test_solution_url=None, counter_groups=None, diagnostics=None, results_url=None): + super(TestResults, self).__init__() + self.cloud_load_test_solution_url = cloud_load_test_solution_url + self.counter_groups = counter_groups + self.diagnostics = diagnostics + self.results_url = results_url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py new file mode 100644 index 00000000..45870f1c --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestResultsSummary(Model): + """TestResultsSummary. + + :param overall_page_summary: + :type overall_page_summary: :class:`PageSummary ` + :param overall_request_summary: + :type overall_request_summary: :class:`RequestSummary ` + :param overall_scenario_summary: + :type overall_scenario_summary: :class:`ScenarioSummary ` + :param overall_test_summary: + :type overall_test_summary: :class:`TestSummary ` + :param overall_transaction_summary: + :type overall_transaction_summary: :class:`TransactionSummary ` + :param top_slow_pages: + :type top_slow_pages: list of :class:`PageSummary ` + :param top_slow_requests: + :type top_slow_requests: list of :class:`RequestSummary ` + :param top_slow_tests: + :type top_slow_tests: list of :class:`TestSummary ` + :param top_slow_transactions: + :type top_slow_transactions: list of :class:`TransactionSummary ` + """ + + _attribute_map = { + 'overall_page_summary': {'key': 'overallPageSummary', 'type': 'PageSummary'}, + 'overall_request_summary': {'key': 'overallRequestSummary', 'type': 'RequestSummary'}, + 'overall_scenario_summary': {'key': 'overallScenarioSummary', 'type': 'ScenarioSummary'}, + 'overall_test_summary': {'key': 'overallTestSummary', 'type': 'TestSummary'}, + 'overall_transaction_summary': {'key': 'overallTransactionSummary', 'type': 'TransactionSummary'}, + 'top_slow_pages': {'key': 'topSlowPages', 'type': '[PageSummary]'}, + 'top_slow_requests': {'key': 'topSlowRequests', 'type': '[RequestSummary]'}, + 'top_slow_tests': {'key': 'topSlowTests', 'type': '[TestSummary]'}, + 'top_slow_transactions': {'key': 'topSlowTransactions', 'type': '[TransactionSummary]'} + } + + def __init__(self, overall_page_summary=None, overall_request_summary=None, overall_scenario_summary=None, overall_test_summary=None, overall_transaction_summary=None, top_slow_pages=None, top_slow_requests=None, top_slow_tests=None, top_slow_transactions=None): + super(TestResultsSummary, self).__init__() + self.overall_page_summary = overall_page_summary + self.overall_request_summary = overall_request_summary + self.overall_scenario_summary = overall_scenario_summary + self.overall_test_summary = overall_test_summary + self.overall_transaction_summary = overall_transaction_summary + self.top_slow_pages = top_slow_pages + self.top_slow_requests = top_slow_requests + self.top_slow_tests = top_slow_tests + self.top_slow_transactions = top_slow_transactions diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run.py new file mode 100644 index 00000000..7cddf936 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_run.py @@ -0,0 +1,146 @@ +# -------------------------------------------------------------------------------------------- +# 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 .test_run_basic import TestRunBasic + + +class TestRun(TestRunBasic): + """TestRun. + + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: IdentityRef + :param deleted_date: + :type deleted_date: datetime + :param finished_date: + :type finished_date: datetime + :param id: + :type id: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_file_name: + :type load_test_file_name: str + :param name: + :type name: str + :param run_number: + :type run_number: int + :param run_source: + :type run_source: str + :param run_specific_details: + :type run_specific_details: :class:`LoadTestRunDetails ` + :param run_type: + :type run_type: object + :param state: + :type state: object + :param url: + :type url: str + :param abort_message: + :type abort_message: :class:`TestRunAbortMessage ` + :param aut_initialization_error: + :type aut_initialization_error: bool + :param chargeable: + :type chargeable: bool + :param charged_vUserminutes: + :type charged_vUserminutes: int + :param description: + :type description: str + :param execution_finished_date: + :type execution_finished_date: datetime + :param execution_started_date: + :type execution_started_date: datetime + :param queued_date: + :type queued_date: datetime + :param retention_state: + :type retention_state: object + :param run_source_identifier: + :type run_source_identifier: str + :param run_source_url: + :type run_source_url: str + :param started_by: + :type started_by: IdentityRef + :param started_date: + :type started_date: datetime + :param stopped_by: + :type stopped_by: IdentityRef + :param sub_state: + :type sub_state: object + :param supersede_run_settings: + :type supersede_run_settings: :class:`OverridableRunSettings ` + :param test_drop: + :type test_drop: :class:`TestDropRef ` + :param test_settings: + :type test_settings: :class:`TestSettings ` + :param warm_up_started_date: + :type warm_up_started_date: datetime + :param web_result_url: + :type web_result_url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_number': {'key': 'runNumber', 'type': 'int'}, + 'run_source': {'key': 'runSource', 'type': 'str'}, + 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, + 'run_type': {'key': 'runType', 'type': 'object'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'abort_message': {'key': 'abortMessage', 'type': 'TestRunAbortMessage'}, + 'aut_initialization_error': {'key': 'autInitializationError', 'type': 'bool'}, + 'chargeable': {'key': 'chargeable', 'type': 'bool'}, + 'charged_vUserminutes': {'key': 'chargedVUserminutes', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'execution_finished_date': {'key': 'executionFinishedDate', 'type': 'iso-8601'}, + 'execution_started_date': {'key': 'executionStartedDate', 'type': 'iso-8601'}, + 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, + 'retention_state': {'key': 'retentionState', 'type': 'object'}, + 'run_source_identifier': {'key': 'runSourceIdentifier', 'type': 'str'}, + 'run_source_url': {'key': 'runSourceUrl', 'type': 'str'}, + 'started_by': {'key': 'startedBy', 'type': 'IdentityRef'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'stopped_by': {'key': 'stoppedBy', 'type': 'IdentityRef'}, + 'sub_state': {'key': 'subState', 'type': 'object'}, + 'supersede_run_settings': {'key': 'supersedeRunSettings', 'type': 'OverridableRunSettings'}, + 'test_drop': {'key': 'testDrop', 'type': 'TestDropRef'}, + 'test_settings': {'key': 'testSettings', 'type': 'TestSettings'}, + 'warm_up_started_date': {'key': 'warmUpStartedDate', 'type': 'iso-8601'}, + 'web_result_url': {'key': 'webResultUrl', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None, abort_message=None, aut_initialization_error=None, chargeable=None, charged_vUserminutes=None, description=None, execution_finished_date=None, execution_started_date=None, queued_date=None, retention_state=None, run_source_identifier=None, run_source_url=None, started_by=None, started_date=None, stopped_by=None, sub_state=None, supersede_run_settings=None, test_drop=None, test_settings=None, warm_up_started_date=None, web_result_url=None): + super(TestRun, self).__init__(created_by=created_by, created_date=created_date, deleted_by=deleted_by, deleted_date=deleted_date, finished_date=finished_date, id=id, load_generation_geo_locations=load_generation_geo_locations, load_test_file_name=load_test_file_name, name=name, run_number=run_number, run_source=run_source, run_specific_details=run_specific_details, run_type=run_type, state=state, url=url) + self.abort_message = abort_message + self.aut_initialization_error = aut_initialization_error + self.chargeable = chargeable + self.charged_vUserminutes = charged_vUserminutes + self.description = description + self.execution_finished_date = execution_finished_date + self.execution_started_date = execution_started_date + self.queued_date = queued_date + self.retention_state = retention_state + self.run_source_identifier = run_source_identifier + self.run_source_url = run_source_url + self.started_by = started_by + self.started_date = started_date + self.stopped_by = stopped_by + self.sub_state = sub_state + self.supersede_run_settings = supersede_run_settings + self.test_drop = test_drop + self.test_settings = test_settings + self.warm_up_started_date = warm_up_started_date + self.web_result_url = web_result_url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py new file mode 100644 index 00000000..53ceafbc --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunAbortMessage(Model): + """TestRunAbortMessage. + + :param action: + :type action: str + :param cause: + :type cause: str + :param details: + :type details: list of str + :param logged_date: + :type logged_date: datetime + :param source: + :type source: str + """ + + _attribute_map = { + 'action': {'key': 'action', 'type': 'str'}, + 'cause': {'key': 'cause', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[str]'}, + 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, action=None, cause=None, details=None, logged_date=None, source=None): + super(TestRunAbortMessage, self).__init__() + self.action = action + self.cause = cause + self.details = details + self.logged_date = logged_date + self.source = source diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py new file mode 100644 index 00000000..6e573a51 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunBasic(Model): + """TestRunBasic. + + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: IdentityRef + :param deleted_date: + :type deleted_date: datetime + :param finished_date: + :type finished_date: datetime + :param id: + :type id: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_file_name: + :type load_test_file_name: str + :param name: + :type name: str + :param run_number: + :type run_number: int + :param run_source: + :type run_source: str + :param run_specific_details: + :type run_specific_details: :class:`LoadTestRunDetails ` + :param run_type: + :type run_type: object + :param state: + :type state: object + :param url: + :type url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_number': {'key': 'runNumber', 'type': 'int'}, + 'run_source': {'key': 'runSource', 'type': 'str'}, + 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, + 'run_type': {'key': 'runType', 'type': 'object'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None): + super(TestRunBasic, self).__init__() + self.created_by = created_by + self.created_date = created_date + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.finished_date = finished_date + self.id = id + self.load_generation_geo_locations = load_generation_geo_locations + self.load_test_file_name = load_test_file_name + self.name = name + self.run_number = run_number + self.run_source = run_source + self.run_specific_details = run_specific_details + self.run_type = run_type + self.state = state + self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py new file mode 100644 index 00000000..0e6e0514 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunCounterInstance(Model): + """TestRunCounterInstance. + + :param category_name: + :type category_name: str + :param counter_instance_id: + :type counter_instance_id: str + :param counter_name: + :type counter_name: str + :param counter_units: + :type counter_units: str + :param instance_name: + :type instance_name: str + :param is_preselected_counter: + :type is_preselected_counter: bool + :param machine_name: + :type machine_name: str + :param part_of_counter_groups: + :type part_of_counter_groups: list of str + :param summary_data: + :type summary_data: :class:`WebInstanceSummaryData ` + :param unique_name: + :type unique_name: str + """ + + _attribute_map = { + 'category_name': {'key': 'categoryName', 'type': 'str'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'counter_name': {'key': 'counterName', 'type': 'str'}, + 'counter_units': {'key': 'counterUnits', 'type': 'str'}, + 'instance_name': {'key': 'instanceName', 'type': 'str'}, + 'is_preselected_counter': {'key': 'isPreselectedCounter', 'type': 'bool'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'part_of_counter_groups': {'key': 'partOfCounterGroups', 'type': '[str]'}, + 'summary_data': {'key': 'summaryData', 'type': 'WebInstanceSummaryData'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'} + } + + def __init__(self, category_name=None, counter_instance_id=None, counter_name=None, counter_units=None, instance_name=None, is_preselected_counter=None, machine_name=None, part_of_counter_groups=None, summary_data=None, unique_name=None): + super(TestRunCounterInstance, self).__init__() + self.category_name = category_name + self.counter_instance_id = counter_instance_id + self.counter_name = counter_name + self.counter_units = counter_units + self.instance_name = instance_name + self.is_preselected_counter = is_preselected_counter + self.machine_name = machine_name + self.part_of_counter_groups = part_of_counter_groups + self.summary_data = summary_data + self.unique_name = unique_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py new file mode 100644 index 00000000..ea712bf1 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestRunMessage(Model): + """TestRunMessage. + + :param agent_id: + :type agent_id: str + :param error_code: + :type error_code: str + :param logged_date: + :type logged_date: datetime + :param message: + :type message: str + :param message_id: + :type message_id: str + :param message_source: + :type message_source: object + :param message_type: + :type message_type: object + :param test_run_id: + :type test_run_id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'agent_id': {'key': 'agentId', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_source': {'key': 'messageSource', 'type': 'object'}, + 'message_type': {'key': 'messageType', 'type': 'object'}, + 'test_run_id': {'key': 'testRunId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, agent_id=None, error_code=None, logged_date=None, message=None, message_id=None, message_source=None, message_type=None, test_run_id=None, url=None): + super(TestRunMessage, self).__init__() + self.agent_id = agent_id + self.error_code = error_code + self.logged_date = logged_date + self.message = message + self.message_id = message_id + self.message_source = message_source + self.message_type = message_type + self.test_run_id = test_run_id + self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_settings.py b/vsts/vsts/cloud_load_test/v4_1/models/test_settings.py new file mode 100644 index 00000000..85fc8037 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_settings.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSettings(Model): + """TestSettings. + + :param cleanup_command: + :type cleanup_command: str + :param host_process_platform: + :type host_process_platform: object + :param setup_command: + :type setup_command: str + """ + + _attribute_map = { + 'cleanup_command': {'key': 'cleanupCommand', 'type': 'str'}, + 'host_process_platform': {'key': 'hostProcessPlatform', 'type': 'object'}, + 'setup_command': {'key': 'setupCommand', 'type': 'str'} + } + + def __init__(self, cleanup_command=None, host_process_platform=None, setup_command=None): + super(TestSettings, self).__init__() + self.cleanup_command = cleanup_command + self.host_process_platform = host_process_platform + self.setup_command = setup_command diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/test_summary.py new file mode 100644 index 00000000..5ff1ef55 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/test_summary.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TestSummary(Model): + """TestSummary. + + :param average_test_time: + :type average_test_time: float + :param failed_tests: + :type failed_tests: int + :param passed_tests: + :type passed_tests: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'average_test_time': {'key': 'averageTestTime', 'type': 'float'}, + 'failed_tests': {'key': 'failedTests', 'type': 'int'}, + 'passed_tests': {'key': 'passedTests', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, average_test_time=None, failed_tests=None, passed_tests=None, percentile_data=None, scenario_name=None, test_name=None, total_tests=None): + super(TestSummary, self).__init__() + self.average_test_time = average_test_time + self.failed_tests = failed_tests + self.passed_tests = passed_tests + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_tests = total_tests diff --git a/vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py new file mode 100644 index 00000000..efe417be --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TransactionSummary(Model): + """TransactionSummary. + + :param average_response_time: + :type average_response_time: float + :param average_transaction_time: + :type average_transaction_time: float + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_transactions: + :type total_transactions: int + :param transaction_name: + :type transaction_name: str + """ + + _attribute_map = { + 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, + 'average_transaction_time': {'key': 'averageTransactionTime', 'type': 'float'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_transactions': {'key': 'totalTransactions', 'type': 'int'}, + 'transaction_name': {'key': 'transactionName', 'type': 'str'} + } + + def __init__(self, average_response_time=None, average_transaction_time=None, percentile_data=None, scenario_name=None, test_name=None, total_transactions=None, transaction_name=None): + super(TransactionSummary, self).__init__() + self.average_response_time = average_response_time + self.average_transaction_time = average_transaction_time + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_transactions = total_transactions + self.transaction_name = transaction_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py new file mode 100644 index 00000000..50e8c6fe --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WebApiLoadTestMachineInput(Model): + """WebApiLoadTestMachineInput. + + :param machine_group_id: + :type machine_group_id: str + :param machine_type: + :type machine_type: object + :param setup_configuration: + :type setup_configuration: :class:`WebApiSetupParamaters ` + :param supported_run_types: + :type supported_run_types: list of TestRunType + """ + + _attribute_map = { + 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, + 'machine_type': {'key': 'machineType', 'type': 'object'}, + 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, + 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[TestRunType]'} + } + + def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None): + super(WebApiLoadTestMachineInput, self).__init__() + self.machine_group_id = machine_group_id + self.machine_type = machine_type + self.setup_configuration = setup_configuration + self.supported_run_types = supported_run_types diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py new file mode 100644 index 00000000..94cd5b4e --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WebApiSetupParamaters(Model): + """WebApiSetupParamaters. + + :param configurations: + :type configurations: dict + """ + + _attribute_map = { + 'configurations': {'key': 'configurations', 'type': '{str}'} + } + + def __init__(self, configurations=None): + super(WebApiSetupParamaters, self).__init__() + self.configurations = configurations diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py new file mode 100644 index 00000000..87058715 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WebApiTestMachine(Model): + """WebApiTestMachine. + + :param last_heart_beat: + :type last_heart_beat: datetime + :param machine_name: + :type machine_name: str + :param status: + :type status: str + """ + + _attribute_map = { + 'last_heart_beat': {'key': 'lastHeartBeat', 'type': 'iso-8601'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'} + } + + def __init__(self, last_heart_beat=None, machine_name=None, status=None): + super(WebApiTestMachine, self).__init__() + self.last_heart_beat = last_heart_beat + self.machine_name = machine_name + self.status = status diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py new file mode 100644 index 00000000..84bb1cf6 --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .web_api_load_test_machine_input import WebApiLoadTestMachineInput + + +class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): + """WebApiUserLoadTestMachineInput. + + :param machine_group_id: + :type machine_group_id: str + :param machine_type: + :type machine_type: object + :param setup_configuration: + :type setup_configuration: :class:`WebApiSetupParamaters ` + :param supported_run_types: + :type supported_run_types: list of TestRunType + :param agent_group_name: + :type agent_group_name: str + :param tenant_id: + :type tenant_id: str + :param user_load_agent_resources_uri: + :type user_load_agent_resources_uri: str + :param vSTSAccount_uri: + :type vSTSAccount_uri: str + """ + + _attribute_map = { + 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, + 'machine_type': {'key': 'machineType', 'type': 'object'}, + 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, + 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[TestRunType]'}, + 'agent_group_name': {'key': 'agentGroupName', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, + 'vSTSAccount_uri': {'key': 'vSTSAccountUri', 'type': 'str'} + } + + def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None, agent_group_name=None, tenant_id=None, user_load_agent_resources_uri=None, vSTSAccount_uri=None): + super(WebApiUserLoadTestMachineInput, self).__init__(machine_group_id=machine_group_id, machine_type=machine_type, setup_configuration=setup_configuration, supported_run_types=supported_run_types) + self.agent_group_name = agent_group_name + self.tenant_id = tenant_id + self.user_load_agent_resources_uri = user_load_agent_resources_uri + self.vSTSAccount_uri = vSTSAccount_uri diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py b/vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py new file mode 100644 index 00000000..3381de2b --- /dev/null +++ b/vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WebInstanceSummaryData(Model): + """WebInstanceSummaryData. + + :param average: + :type average: float + :param max: + :type max: float + :param min: + :type min: float + """ + + _attribute_map = { + 'average': {'key': 'average', 'type': 'float'}, + 'max': {'key': 'max', 'type': 'float'}, + 'min': {'key': 'min', 'type': 'float'} + } + + def __init__(self, average=None, max=None, min=None): + super(WebInstanceSummaryData, self).__init__() + self.average = average + self.max = max + self.min = min diff --git a/vsts/vsts/graph/__init__.py b/vsts/vsts/graph/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/graph/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/graph/v4_1/__init__.py b/vsts/vsts/graph/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/graph/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/graph/v4_1/graph_client.py b/vsts/vsts/graph/v4_1/graph_client.py new file mode 100644 index 00000000..bb19ba48 --- /dev/null +++ b/vsts/vsts/graph/v4_1/graph_client.py @@ -0,0 +1,294 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class GraphClient(VssClient): + """Graph + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GraphClient, 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_descriptor(self, storage_key): + """GetDescriptor. + [Preview API] Resolve a storage key to a descriptor + :param str storage_key: Storage key of the subject (user, group, scope, etc.) to resolve + :rtype: :class:` ` + """ + route_values = {} + if storage_key is not None: + route_values['storageKey'] = self._serialize.url('storage_key', storage_key, 'str') + response = self._send(http_method='GET', + location_id='048aee0a-7072-4cde-ab73-7af77b1e0b4e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GraphDescriptorResult', response) + + def create_group(self, creation_context, scope_descriptor=None, group_descriptors=None): + """CreateGroup. + [Preview API] Create a new VSTS group or materialize an existing AAD group. + :param :class:` ` creation_context: The subset of the full graph group used to uniquely find the graph subject in an external provider. + :param str scope_descriptor: A descriptor referencing the scope (collection, project) in which the group should be created. If omitted, will be created in the scope of the enclosing account or organization. Valid only for VSTS groups. + :param [str] group_descriptors: A comma separated list of descriptors referencing groups you want the graph group to join + :rtype: :class:` ` + """ + query_parameters = {} + if scope_descriptor is not None: + query_parameters['scopeDescriptor'] = self._serialize.query('scope_descriptor', scope_descriptor, 'str') + if group_descriptors is not None: + group_descriptors = ",".join(group_descriptors) + query_parameters['groupDescriptors'] = self._serialize.query('group_descriptors', group_descriptors, 'str') + content = self._serialize.body(creation_context, 'GraphGroupCreationContext') + response = self._send(http_method='POST', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('GraphGroup', response) + + def delete_group(self, group_descriptor): + """DeleteGroup. + [Preview API] Removes a VSTS group from all of its parent groups. + :param str group_descriptor: The descriptor of the group to delete. + """ + route_values = {} + if group_descriptor is not None: + route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') + self._send(http_method='DELETE', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='4.1-preview.1', + route_values=route_values) + + def get_group(self, group_descriptor): + """GetGroup. + [Preview API] Get a group by its descriptor. + :param str group_descriptor: The descriptor of the desired graph group. + :rtype: :class:` ` + """ + route_values = {} + if group_descriptor is not None: + route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') + response = self._send(http_method='GET', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GraphGroup', response) + + def update_group(self, group_descriptor, patch_document): + """UpdateGroup. + [Preview API] Update the properties of a VSTS group. + :param str group_descriptor: The descriptor of the group to modify. + :param :class:`<[JsonPatchOperation]> ` patch_document: The JSON+Patch document containing the fields to alter. + :rtype: :class:` ` + """ + route_values = {} + if group_descriptor is not None: + route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') + content = self._serialize.body(patch_document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + return self._deserialize('GraphGroup', response) + + def add_membership(self, subject_descriptor, container_descriptor): + """AddMembership. + [Preview API] Create a new membership between a container and subject. + :param str subject_descriptor: A descriptor to a group or user that can be the child subject in the relationship. + :param str container_descriptor: A descriptor to a group that can be the container in the relationship. + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + response = self._send(http_method='PUT', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GraphMembership', response) + + def check_membership_existence(self, subject_descriptor, container_descriptor): + """CheckMembershipExistence. + [Preview API] Check to see if a membership relationship between a container and subject exists. + :param str subject_descriptor: The group or user that is a child subject of the relationship. + :param str container_descriptor: The group that is the container in the relationship. + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + self._send(http_method='HEAD', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='4.1-preview.1', + route_values=route_values) + + def get_membership(self, subject_descriptor, container_descriptor): + """GetMembership. + [Preview API] Get a membership relationship between a container and subject. + :param str subject_descriptor: A descriptor to the child subject in the relationship. + :param str container_descriptor: A descriptor to the container in the relationship. + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + response = self._send(http_method='GET', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GraphMembership', response) + + def remove_membership(self, subject_descriptor, container_descriptor): + """RemoveMembership. + [Preview API] Deletes a membership between a container and subject. + :param str subject_descriptor: A descriptor to a group or user that is the child subject in the relationship. + :param str container_descriptor: A descriptor to a group that is the container in the relationship. + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + self._send(http_method='DELETE', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='4.1-preview.1', + route_values=route_values) + + def list_memberships(self, subject_descriptor, direction=None, depth=None): + """ListMemberships. + [Preview API] Get all the memberships where this descriptor is a member in the relationship. + :param str subject_descriptor: Fetch all direct memberships of this descriptor. + :param str direction: Defaults to Up. + :param int depth: The maximum number of edges to traverse up or down the membership tree. Currently the only supported value is '1'. + :rtype: [GraphMembership] + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + query_parameters = {} + if direction is not None: + query_parameters['direction'] = self._serialize.query('direction', direction, 'str') + if depth is not None: + query_parameters['depth'] = self._serialize.query('depth', depth, 'int') + response = self._send(http_method='GET', + location_id='e34b6394-6b30-4435-94a9-409a5eef3e31', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[GraphMembership]', response) + + def get_membership_state(self, subject_descriptor): + """GetMembershipState. + [Preview API] Check whether a subject is active or inactive. + :param str subject_descriptor: Descriptor of the subject (user, group, scope, etc.) to check state of + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + response = self._send(http_method='GET', + location_id='1ffe5c94-1144-4191-907b-d0211cad36a8', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GraphMembershipState', response) + + def get_storage_key(self, subject_descriptor): + """GetStorageKey. + [Preview API] Resolve a descriptor to a storage key. + :param str subject_descriptor: + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + response = self._send(http_method='GET', + location_id='eb85f8cc-f0f6-4264-a5b1-ffe2e4d4801f', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GraphStorageKeyResult', response) + + def lookup_subjects(self, subject_lookup): + """LookupSubjects. + [Preview API] Resolve descriptors to users, groups or scopes (Subjects) in a batch. + :param :class:` ` subject_lookup: A list of descriptors that specifies a subset of subjects to retrieve. Each descriptor uniquely identifies the subject across all instance scopes, but only at a single point in time. + :rtype: {GraphSubject} + """ + content = self._serialize.body(subject_lookup, 'GraphSubjectLookup') + response = self._send(http_method='POST', + location_id='4dd4d168-11f2-48c4-83e8-756fa0de027c', + version='4.1-preview.1', + content=content, + returns_collection=True) + return self._deserialize('{GraphSubject}', response) + + def create_user(self, creation_context, group_descriptors=None): + """CreateUser. + [Preview API] Materialize an existing AAD or MSA user into the VSTS account. + :param :class:` ` creation_context: The subset of the full graph user used to uniquely find the graph subject in an external provider. + :param [str] group_descriptors: A comma separated list of descriptors of groups you want the graph user to join + :rtype: :class:` ` + """ + query_parameters = {} + if group_descriptors is not None: + group_descriptors = ",".join(group_descriptors) + query_parameters['groupDescriptors'] = self._serialize.query('group_descriptors', group_descriptors, 'str') + content = self._serialize.body(creation_context, 'GraphUserCreationContext') + response = self._send(http_method='POST', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('GraphUser', response) + + def delete_user(self, user_descriptor): + """DeleteUser. + [Preview API] Disables a user. + :param str user_descriptor: The descriptor of the user to delete. + """ + route_values = {} + if user_descriptor is not None: + route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') + self._send(http_method='DELETE', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='4.1-preview.1', + route_values=route_values) + + def get_user(self, user_descriptor): + """GetUser. + [Preview API] Get a user by its descriptor. + :param str user_descriptor: The descriptor of the desired user. + :rtype: :class:` ` + """ + route_values = {} + if user_descriptor is not None: + route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') + response = self._send(http_method='GET', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GraphUser', response) + diff --git a/vsts/vsts/graph/v4_1/models/__init__.py b/vsts/vsts/graph/v4_1/models/__init__.py new file mode 100644 index 00000000..824cbcb1 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/__init__.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_cache_policies import GraphCachePolicies +from .graph_descriptor_result import GraphDescriptorResult +from .graph_global_extended_property_batch import GraphGlobalExtendedPropertyBatch +from .graph_group import GraphGroup +from .graph_group_creation_context import GraphGroupCreationContext +from .graph_member import GraphMember +from .graph_membership import GraphMembership +from .graph_membership_state import GraphMembershipState +from .graph_membership_traversal import GraphMembershipTraversal +from .graph_scope import GraphScope +from .graph_scope_creation_context import GraphScopeCreationContext +from .graph_storage_key_result import GraphStorageKeyResult +from .graph_subject import GraphSubject +from .graph_subject_base import GraphSubjectBase +from .graph_subject_lookup import GraphSubjectLookup +from .graph_subject_lookup_key import GraphSubjectLookupKey +from .graph_user import GraphUser +from .graph_user_creation_context import GraphUserCreationContext +from .identity_key_map import IdentityKeyMap +from .json_patch_operation import JsonPatchOperation +from .paged_graph_groups import PagedGraphGroups +from .paged_graph_users import PagedGraphUsers +from .reference_links import ReferenceLinks + +__all__ = [ + 'GraphCachePolicies', + 'GraphDescriptorResult', + 'GraphGlobalExtendedPropertyBatch', + 'GraphGroup', + 'GraphGroupCreationContext', + 'GraphMember', + 'GraphMembership', + 'GraphMembershipState', + 'GraphMembershipTraversal', + 'GraphScope', + 'GraphScopeCreationContext', + 'GraphStorageKeyResult', + 'GraphSubject', + 'GraphSubjectBase', + 'GraphSubjectLookup', + 'GraphSubjectLookupKey', + 'GraphUser', + 'GraphUserCreationContext', + 'IdentityKeyMap', + 'JsonPatchOperation', + 'PagedGraphGroups', + 'PagedGraphUsers', + 'ReferenceLinks', +] diff --git a/vsts/vsts/graph/v4_1/models/graph_cache_policies.py b/vsts/vsts/graph/v4_1/models/graph_cache_policies.py new file mode 100644 index 00000000..808f2d65 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_cache_policies.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphCachePolicies(Model): + """GraphCachePolicies. + + :param cache_size: Size of the cache + :type cache_size: int + """ + + _attribute_map = { + 'cache_size': {'key': 'cacheSize', 'type': 'int'} + } + + def __init__(self, cache_size=None): + super(GraphCachePolicies, self).__init__() + self.cache_size = cache_size diff --git a/vsts/vsts/graph/v4_1/models/graph_descriptor_result.py b/vsts/vsts/graph/v4_1/models/graph_descriptor_result.py new file mode 100644 index 00000000..8b1c1830 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_descriptor_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphDescriptorResult(Model): + """GraphDescriptorResult. + + :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. + :type _links: :class:`ReferenceLinks ` + :param value: + :type value: :class:`str ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, _links=None, value=None): + super(GraphDescriptorResult, self).__init__() + self._links = _links + self.value = value diff --git a/vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py b/vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py new file mode 100644 index 00000000..d1212778 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphGlobalExtendedPropertyBatch(Model): + """GraphGlobalExtendedPropertyBatch. + + :param property_name_filters: + :type property_name_filters: list of str + :param subject_descriptors: + :type subject_descriptors: list of :class:`str ` + """ + + _attribute_map = { + 'property_name_filters': {'key': 'propertyNameFilters', 'type': '[str]'}, + 'subject_descriptors': {'key': 'subjectDescriptors', 'type': '[str]'} + } + + def __init__(self, property_name_filters=None, subject_descriptors=None): + super(GraphGlobalExtendedPropertyBatch, self).__init__() + self.property_name_filters = property_name_filters + self.subject_descriptors = subject_descriptors diff --git a/vsts/vsts/graph/v4_1/models/graph_group.py b/vsts/vsts/graph/v4_1/models/graph_group.py new file mode 100644 index 00000000..c693a34a --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_group.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_member import GraphMember + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + :param is_cross_project: + :type is_cross_project: bool + :param is_deleted: + :type is_deleted: bool + :param is_global_scope: + :type is_global_scope: bool + :param is_restricted_visible: + :type is_restricted_visible: bool + :param local_scope_id: + :type local_scope_id: str + :param scope_id: + :type scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: str + :param securing_host_id: + :type securing_host_id: str + :param special_type: + :type special_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, + 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'special_type': {'key': 'specialType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description + self.is_cross_project = is_cross_project + self.is_deleted = is_deleted + self.is_global_scope = is_global_scope + self.is_restricted_visible = is_restricted_visible + self.local_scope_id = local_scope_id + self.scope_id = scope_id + self.scope_name = scope_name + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.special_type = special_type diff --git a/vsts/vsts/graph/v4_1/models/graph_group_creation_context.py b/vsts/vsts/graph/v4_1/models/graph_group_creation_context.py new file mode 100644 index 00000000..cc6599ae --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_group_creation_context.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphGroupCreationContext(Model): + """GraphGroupCreationContext. + + :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created group + :type storage_key: str + """ + + _attribute_map = { + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, storage_key=None): + super(GraphGroupCreationContext, self).__init__() + self.storage_key = storage_key diff --git a/vsts/vsts/graph/v4_1/models/graph_member.py b/vsts/vsts/graph/v4_1/models/graph_member.py new file mode 100644 index 00000000..9d1cbd65 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_member.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_subject import GraphSubject + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_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'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.cuid = cuid + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name diff --git a/vsts/vsts/graph/v4_1/models/graph_membership.py b/vsts/vsts/graph/v4_1/models/graph_membership.py new file mode 100644 index 00000000..4b3568f0 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_membership.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphMembership(Model): + """GraphMembership. + + :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. + :type _links: :class:`ReferenceLinks ` + :param container_descriptor: + :type container_descriptor: str + :param member_descriptor: + :type member_descriptor: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'container_descriptor': {'key': 'containerDescriptor', 'type': 'str'}, + 'member_descriptor': {'key': 'memberDescriptor', 'type': 'str'} + } + + def __init__(self, _links=None, container_descriptor=None, member_descriptor=None): + super(GraphMembership, self).__init__() + self._links = _links + self.container_descriptor = container_descriptor + self.member_descriptor = member_descriptor diff --git a/vsts/vsts/graph/v4_1/models/graph_membership_state.py b/vsts/vsts/graph/v4_1/models/graph_membership_state.py new file mode 100644 index 00000000..8f90aaf0 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_membership_state.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphMembershipState(Model): + """GraphMembershipState. + + :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. + :type _links: :class:`ReferenceLinks ` + :param active: + :type active: bool + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'active': {'key': 'active', 'type': 'bool'} + } + + def __init__(self, _links=None, active=None): + super(GraphMembershipState, self).__init__() + self._links = _links + self.active = active diff --git a/vsts/vsts/graph/v4_1/models/graph_membership_traversal.py b/vsts/vsts/graph/v4_1/models/graph_membership_traversal.py new file mode 100644 index 00000000..e92bf3a9 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_membership_traversal.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphMembershipTraversal(Model): + """GraphMembershipTraversal. + + :param incompleteness_reason: Reason why the subject could not be traversed completely + :type incompleteness_reason: str + :param is_complete: When true, the subject is traversed completely + :type is_complete: bool + :param subject_descriptor: The traversed subject descriptor + :type subject_descriptor: :class:`str ` + :param traversed_subject_ids: Subject descriptor ids of the traversed members + :type traversed_subject_ids: list of str + :param traversed_subjects: Subject descriptors of the traversed members + :type traversed_subjects: list of :class:`str ` + """ + + _attribute_map = { + 'incompleteness_reason': {'key': 'incompletenessReason', 'type': 'str'}, + 'is_complete': {'key': 'isComplete', 'type': 'bool'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'traversed_subject_ids': {'key': 'traversedSubjectIds', 'type': '[str]'}, + 'traversed_subjects': {'key': 'traversedSubjects', 'type': '[str]'} + } + + def __init__(self, incompleteness_reason=None, is_complete=None, subject_descriptor=None, traversed_subject_ids=None, traversed_subjects=None): + super(GraphMembershipTraversal, self).__init__() + self.incompleteness_reason = incompleteness_reason + self.is_complete = is_complete + self.subject_descriptor = subject_descriptor + self.traversed_subject_ids = traversed_subject_ids + self.traversed_subjects = traversed_subjects diff --git a/vsts/vsts/graph/v4_1/models/graph_scope.py b/vsts/vsts/graph/v4_1/models/graph_scope.py new file mode 100644 index 00000000..1944d6da --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_scope.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_subject import GraphSubject + + +class GraphScope(GraphSubject): + """GraphScope. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param administrator_descriptor: The subject descriptor that references the administrators group for this scope. Only members of this group can change the contents of this scope or assign other users permissions to access this scope. + :type administrator_descriptor: str + :param is_global: When true, this scope is also a securing host for one or more scopes. + :type is_global: bool + :param parent_descriptor: The subject descriptor for the closest account or organization in the ancestor tree of this scope. + :type parent_descriptor: str + :param scope_type: The type of this scope. Typically ServiceHost or TeamProject. + :type scope_type: object + :param securing_host_descriptor: The subject descriptor for the containing organization in the ancestor tree of this scope. + :type securing_host_descriptor: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'administrator_descriptor': {'key': 'administratorDescriptor', 'type': 'str'}, + 'is_global': {'key': 'isGlobal', 'type': 'bool'}, + 'parent_descriptor': {'key': 'parentDescriptor', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'securing_host_descriptor': {'key': 'securingHostDescriptor', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, administrator_descriptor=None, is_global=None, parent_descriptor=None, scope_type=None, securing_host_descriptor=None): + super(GraphScope, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.administrator_descriptor = administrator_descriptor + self.is_global = is_global + self.parent_descriptor = parent_descriptor + self.scope_type = scope_type + self.securing_host_descriptor = securing_host_descriptor diff --git a/vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py b/vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py new file mode 100644 index 00000000..9ce86d32 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py @@ -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.serialization import Model + + +class GraphScopeCreationContext(Model): + """GraphScopeCreationContext. + + :param admin_group_description: Set this field to override the default description of this scope's admin group. + :type admin_group_description: str + :param admin_group_name: All scopes have an Administrator Group that controls access to the contents of the scope. Set this field to use a non-default group name for that administrators group. + :type admin_group_name: str + :param creator_id: Set this optional field if this scope is created on behalf of a user other than the user making the request. This should be the Id of the user that is not the requester. + :type creator_id: str + :param name: The scope must be provided with a unique name within the parent scope. This means the created scope can have a parent or child with the same name, but no siblings with the same name. + :type name: str + :param scope_type: The type of scope being created. + :type scope_type: object + :param storage_key: An optional ID that uniquely represents the scope within it's parent scope. If this parameter is not provided, Vsts will generate on automatically. + :type storage_key: str + """ + + _attribute_map = { + 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, + 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, + 'creator_id': {'key': 'creatorId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, name=None, scope_type=None, storage_key=None): + super(GraphScopeCreationContext, self).__init__() + self.admin_group_description = admin_group_description + self.admin_group_name = admin_group_name + self.creator_id = creator_id + self.name = name + self.scope_type = scope_type + self.storage_key = storage_key diff --git a/vsts/vsts/graph/v4_1/models/graph_storage_key_result.py b/vsts/vsts/graph/v4_1/models/graph_storage_key_result.py new file mode 100644 index 00000000..3710831d --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_storage_key_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphStorageKeyResult(Model): + """GraphStorageKeyResult. + + :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. + :type _links: :class:`ReferenceLinks ` + :param value: + :type value: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, _links=None, value=None): + super(GraphStorageKeyResult, self).__init__() + self._links = _links + self.value = value diff --git a/vsts/vsts/graph/v4_1/models/graph_subject.py b/vsts/vsts/graph/v4_1/models/graph_subject.py new file mode 100644 index 00000000..76a0c3c6 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_subject.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_subject_base import GraphSubjectBase + + +class GraphSubject(GraphSubjectBase): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): + super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) + self.legacy_descriptor = legacy_descriptor + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind diff --git a/vsts/vsts/graph/v4_1/models/graph_subject_base.py b/vsts/vsts/graph/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f009486f --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/graph/v4_1/models/graph_subject_lookup.py b/vsts/vsts/graph/v4_1/models/graph_subject_lookup.py new file mode 100644 index 00000000..4b1816e9 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_subject_lookup.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectLookup(Model): + """GraphSubjectLookup. + + :param lookup_keys: + :type lookup_keys: list of :class:`GraphSubjectLookupKey ` + """ + + _attribute_map = { + 'lookup_keys': {'key': 'lookupKeys', 'type': '[GraphSubjectLookupKey]'} + } + + def __init__(self, lookup_keys=None): + super(GraphSubjectLookup, self).__init__() + self.lookup_keys = lookup_keys diff --git a/vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py b/vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py new file mode 100644 index 00000000..2c444d40 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectLookupKey(Model): + """GraphSubjectLookupKey. + + :param descriptor: + :type descriptor: :class:`str ` + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'str'} + } + + def __init__(self, descriptor=None): + super(GraphSubjectLookupKey, self).__init__() + self.descriptor = descriptor diff --git a/vsts/vsts/graph/v4_1/models/graph_user.py b/vsts/vsts/graph/v4_1/models/graph_user.py new file mode 100644 index 00000000..9e4bdd8a --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_user.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_member import GraphMember + + +class GraphUser(GraphMember): + """GraphUser. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. + :type meta_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'meta_type': {'key': 'metaType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.meta_type = meta_type diff --git a/vsts/vsts/graph/v4_1/models/graph_user_creation_context.py b/vsts/vsts/graph/v4_1/models/graph_user_creation_context.py new file mode 100644 index 00000000..216655a0 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/graph_user_creation_context.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphUserCreationContext(Model): + """GraphUserCreationContext. + + :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created user + :type storage_key: str + """ + + _attribute_map = { + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, storage_key=None): + super(GraphUserCreationContext, self).__init__() + self.storage_key = storage_key diff --git a/vsts/vsts/graph/v4_1/models/identity_key_map.py b/vsts/vsts/graph/v4_1/models/identity_key_map.py new file mode 100644 index 00000000..05c08952 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/identity_key_map.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityKeyMap(Model): + """IdentityKeyMap. + + :param cuid: + :type cuid: str + :param storage_key: + :type storage_key: str + :param subject_type: + :type subject_type: str + """ + + _attribute_map = { + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'storage_key': {'key': 'storageKey', 'type': 'str'}, + 'subject_type': {'key': 'subjectType', 'type': 'str'} + } + + def __init__(self, cuid=None, storage_key=None, subject_type=None): + super(IdentityKeyMap, self).__init__() + self.cuid = cuid + self.storage_key = storage_key + self.subject_type = subject_type diff --git a/vsts/vsts/graph/v4_1/models/json_patch_operation.py b/vsts/vsts/graph/v4_1/models/json_patch_operation.py new file mode 100644 index 00000000..7d45b0f6 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/json_patch_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value diff --git a/vsts/vsts/graph/v4_1/models/paged_graph_groups.py b/vsts/vsts/graph/v4_1/models/paged_graph_groups.py new file mode 100644 index 00000000..da7422e4 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/paged_graph_groups.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PagedGraphGroups(Model): + """PagedGraphGroups. + + :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. + :type continuation_token: list of str + :param graph_groups: The enumerable list of groups found within a page. + :type graph_groups: list of :class:`GraphGroup ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'graph_groups': {'key': 'graphGroups', 'type': '[GraphGroup]'} + } + + def __init__(self, continuation_token=None, graph_groups=None): + super(PagedGraphGroups, self).__init__() + self.continuation_token = continuation_token + self.graph_groups = graph_groups diff --git a/vsts/vsts/graph/v4_1/models/paged_graph_users.py b/vsts/vsts/graph/v4_1/models/paged_graph_users.py new file mode 100644 index 00000000..f7061aa1 --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/paged_graph_users.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PagedGraphUsers(Model): + """PagedGraphUsers. + + :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. + :type continuation_token: list of str + :param graph_users: The enumerable set of users found within a page. + :type graph_users: list of :class:`GraphUser ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'graph_users': {'key': 'graphUsers', 'type': '[GraphUser]'} + } + + def __init__(self, continuation_token=None, graph_users=None): + super(PagedGraphUsers, self).__init__() + self.continuation_token = continuation_token + self.graph_users = graph_users diff --git a/vsts/vsts/graph/v4_1/models/reference_links.py b/vsts/vsts/graph/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/graph/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/profile/__init__.py b/vsts/vsts/profile/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/profile/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/profile/v4_1/__init__.py b/vsts/vsts/profile/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/profile/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/profile/v4_1/models/__init__.py b/vsts/vsts/profile/v4_1/models/__init__.py new file mode 100644 index 00000000..d983592f --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/__init__.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .attribute_descriptor import AttributeDescriptor +from .attributes_container import AttributesContainer +from .avatar import Avatar +from .core_profile_attribute import CoreProfileAttribute +from .create_profile_context import CreateProfileContext +from .geo_region import GeoRegion +from .profile import Profile +from .profile_attribute import ProfileAttribute +from .profile_attribute_base import ProfileAttributeBase +from .profile_region import ProfileRegion +from .profile_regions import ProfileRegions +from .remote_profile import RemoteProfile + +__all__ = [ + 'AttributeDescriptor', + 'AttributesContainer', + 'Avatar', + 'CoreProfileAttribute', + 'CreateProfileContext', + 'GeoRegion', + 'Profile', + 'ProfileAttribute', + 'ProfileAttributeBase', + 'ProfileRegion', + 'ProfileRegions', + 'RemoteProfile', +] diff --git a/vsts/vsts/profile/v4_1/models/attribute_descriptor.py b/vsts/vsts/profile/v4_1/models/attribute_descriptor.py new file mode 100644 index 00000000..99251036 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/attribute_descriptor.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AttributeDescriptor(Model): + """AttributeDescriptor. + + :param attribute_name: + :type attribute_name: str + :param container_name: + :type container_name: str + """ + + _attribute_map = { + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'} + } + + def __init__(self, attribute_name=None, container_name=None): + super(AttributeDescriptor, self).__init__() + self.attribute_name = attribute_name + self.container_name = container_name diff --git a/vsts/vsts/profile/v4_1/models/attributes_container.py b/vsts/vsts/profile/v4_1/models/attributes_container.py new file mode 100644 index 00000000..1a13d77f --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/attributes_container.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AttributesContainer(Model): + """AttributesContainer. + + :param attributes: + :type attributes: dict + :param container_name: + :type container_name: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{ProfileAttribute}'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, attributes=None, container_name=None, revision=None): + super(AttributesContainer, self).__init__() + self.attributes = attributes + self.container_name = container_name + self.revision = revision diff --git a/vsts/vsts/profile/v4_1/models/avatar.py b/vsts/vsts/profile/v4_1/models/avatar.py new file mode 100644 index 00000000..ffd52989 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/avatar.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Avatar(Model): + """Avatar. + + :param is_auto_generated: + :type is_auto_generated: bool + :param size: + :type size: object + :param time_stamp: + :type time_stamp: datetime + :param value: + :type value: str + """ + + _attribute_map = { + 'is_auto_generated': {'key': 'isAutoGenerated', 'type': 'bool'}, + 'size': {'key': 'size', 'type': 'object'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_auto_generated=None, size=None, time_stamp=None, value=None): + super(Avatar, self).__init__() + self.is_auto_generated = is_auto_generated + self.size = size + self.time_stamp = time_stamp + self.value = value diff --git a/vsts/vsts/profile/v4_1/models/core_profile_attribute.py b/vsts/vsts/profile/v4_1/models/core_profile_attribute.py new file mode 100644 index 00000000..850d7271 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/core_profile_attribute.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .profile_attribute_base import ProfileAttributeBase + + +class CoreProfileAttribute(ProfileAttributeBase): + """CoreProfileAttribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(CoreProfileAttribute, self).__init__() diff --git a/vsts/vsts/profile/v4_1/models/create_profile_context.py b/vsts/vsts/profile/v4_1/models/create_profile_context.py new file mode 100644 index 00000000..b9adf7da --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/create_profile_context.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CreateProfileContext(Model): + """CreateProfileContext. + + :param cIData: + :type cIData: dict + :param contact_with_offers: + :type contact_with_offers: bool + :param country_name: + :type country_name: str + :param display_name: + :type display_name: str + :param email_address: + :type email_address: str + :param has_account: + :type has_account: bool + :param language: + :type language: str + :param phone_number: + :type phone_number: str + :param profile_state: + :type profile_state: object + """ + + _attribute_map = { + 'cIData': {'key': 'cIData', 'type': '{object}'}, + 'contact_with_offers': {'key': 'contactWithOffers', 'type': 'bool'}, + 'country_name': {'key': 'countryName', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': 'str'}, + 'has_account': {'key': 'hasAccount', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'phone_number': {'key': 'phoneNumber', 'type': 'str'}, + 'profile_state': {'key': 'profileState', 'type': 'object'} + } + + def __init__(self, cIData=None, contact_with_offers=None, country_name=None, display_name=None, email_address=None, has_account=None, language=None, phone_number=None, profile_state=None): + super(CreateProfileContext, self).__init__() + self.cIData = cIData + self.contact_with_offers = contact_with_offers + self.country_name = country_name + self.display_name = display_name + self.email_address = email_address + self.has_account = has_account + self.language = language + self.phone_number = phone_number + self.profile_state = profile_state diff --git a/vsts/vsts/profile/v4_1/models/geo_region.py b/vsts/vsts/profile/v4_1/models/geo_region.py new file mode 100644 index 00000000..3de7a2f7 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/geo_region.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GeoRegion(Model): + """GeoRegion. + + :param region_code: + :type region_code: str + """ + + _attribute_map = { + 'region_code': {'key': 'regionCode', 'type': 'str'} + } + + def __init__(self, region_code=None): + super(GeoRegion, self).__init__() + self.region_code = region_code diff --git a/vsts/vsts/profile/v4_1/models/profile.py b/vsts/vsts/profile/v4_1/models/profile.py new file mode 100644 index 00000000..bb3eb861 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/profile.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Profile(Model): + """Profile. + + :param application_container: + :type application_container: :class:`AttributesContainer ` + :param core_attributes: + :type core_attributes: dict + :param core_revision: + :type core_revision: int + :param id: + :type id: str + :param profile_state: + :type profile_state: object + :param revision: + :type revision: int + :param time_stamp: + :type time_stamp: datetime + """ + + _attribute_map = { + 'application_container': {'key': 'applicationContainer', 'type': 'AttributesContainer'}, + 'core_attributes': {'key': 'coreAttributes', 'type': '{CoreProfileAttribute}'}, + 'core_revision': {'key': 'coreRevision', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'profile_state': {'key': 'profileState', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'} + } + + def __init__(self, application_container=None, core_attributes=None, core_revision=None, id=None, profile_state=None, revision=None, time_stamp=None): + super(Profile, self).__init__() + self.application_container = application_container + self.core_attributes = core_attributes + self.core_revision = core_revision + self.id = id + self.profile_state = profile_state + self.revision = revision + self.time_stamp = time_stamp diff --git a/vsts/vsts/profile/v4_1/models/profile_attribute.py b/vsts/vsts/profile/v4_1/models/profile_attribute.py new file mode 100644 index 00000000..f3acaf37 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/profile_attribute.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .profile_attribute_base import ProfileAttributeBase + + +class ProfileAttribute(ProfileAttributeBase): + """ProfileAttribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(ProfileAttribute, self).__init__() diff --git a/vsts/vsts/profile/v4_1/models/profile_attribute_base.py b/vsts/vsts/profile/v4_1/models/profile_attribute_base.py new file mode 100644 index 00000000..a424e07b --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/profile_attribute_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProfileAttributeBase(Model): + """ProfileAttributeBase. + + :param descriptor: + :type descriptor: :class:`AttributeDescriptor ` + :param revision: + :type revision: int + :param time_stamp: + :type time_stamp: datetime + :param value: + :type value: object + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'AttributeDescriptor'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, descriptor=None, revision=None, time_stamp=None, value=None): + super(ProfileAttributeBase, self).__init__() + self.descriptor = descriptor + self.revision = revision + self.time_stamp = time_stamp + self.value = value diff --git a/vsts/vsts/profile/v4_1/models/profile_region.py b/vsts/vsts/profile/v4_1/models/profile_region.py new file mode 100644 index 00000000..063a3061 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/profile_region.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProfileRegion(Model): + """ProfileRegion. + + :param code: The two-letter code defined in ISO 3166 for the country/region. + :type code: str + :param name: Localized country/region name + :type name: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, code=None, name=None): + super(ProfileRegion, self).__init__() + self.code = code + self.name = name diff --git a/vsts/vsts/profile/v4_1/models/profile_regions.py b/vsts/vsts/profile/v4_1/models/profile_regions.py new file mode 100644 index 00000000..69e784ff --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/profile_regions.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProfileRegions(Model): + """ProfileRegions. + + :param notice_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of notice + :type notice_contact_consent_requirement_regions: list of str + :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out + :type opt_out_contact_consent_requirement_regions: list of str + :param regions: List of country/regions + :type regions: list of :class:`ProfileRegion ` + """ + + _attribute_map = { + 'notice_contact_consent_requirement_regions': {'key': 'noticeContactConsentRequirementRegions', 'type': '[str]'}, + 'opt_out_contact_consent_requirement_regions': {'key': 'optOutContactConsentRequirementRegions', 'type': '[str]'}, + 'regions': {'key': 'regions', 'type': '[ProfileRegion]'} + } + + def __init__(self, notice_contact_consent_requirement_regions=None, opt_out_contact_consent_requirement_regions=None, regions=None): + super(ProfileRegions, self).__init__() + self.notice_contact_consent_requirement_regions = notice_contact_consent_requirement_regions + self.opt_out_contact_consent_requirement_regions = opt_out_contact_consent_requirement_regions + self.regions = regions diff --git a/vsts/vsts/profile/v4_1/models/remote_profile.py b/vsts/vsts/profile/v4_1/models/remote_profile.py new file mode 100644 index 00000000..330a2186 --- /dev/null +++ b/vsts/vsts/profile/v4_1/models/remote_profile.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RemoteProfile(Model): + """RemoteProfile. + + :param avatar: + :type avatar: str + :param country_code: + :type country_code: str + :param display_name: + :type display_name: str + :param email_address: Primary contact email from from MSA/AAD + :type email_address: str + """ + + _attribute_map = { + 'avatar': {'key': 'avatar', 'type': 'str'}, + 'country_code': {'key': 'countryCode', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': 'str'} + } + + def __init__(self, avatar=None, country_code=None, display_name=None, email_address=None): + super(RemoteProfile, self).__init__() + self.avatar = avatar + self.country_code = country_code + self.display_name = display_name + self.email_address = email_address diff --git a/vsts/vsts/profile/v4_1/profile_client.py b/vsts/vsts/profile/v4_1/profile_client.py new file mode 100644 index 00000000..53c28756 --- /dev/null +++ b/vsts/vsts/profile/v4_1/profile_client.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ProfileClient(VssClient): + """Profile + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProfileClient, 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_profile(self, id, details=None, with_attributes=None, partition=None, core_attributes=None, force_refresh=None): + """GetProfile. + Get my profile. + :param str id: + :param bool details: + :param bool with_attributes: + :param str partition: + :param str core_attributes: + :param bool force_refresh: + :rtype: :class:` ` + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if details is not None: + query_parameters['details'] = self._serialize.query('details', details, 'bool') + if with_attributes is not None: + query_parameters['withAttributes'] = self._serialize.query('with_attributes', with_attributes, 'bool') + if partition is not None: + query_parameters['partition'] = self._serialize.query('partition', partition, 'str') + if core_attributes is not None: + query_parameters['coreAttributes'] = self._serialize.query('core_attributes', core_attributes, 'str') + if force_refresh is not None: + query_parameters['forceRefresh'] = self._serialize.query('force_refresh', force_refresh, 'bool') + response = self._send(http_method='GET', + location_id='f83735dc-483f-4238-a291-d45f6080a9af', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Profile', response) + diff --git a/vsts/vsts/service_endpoint/__init__.py b/vsts/vsts/service_endpoint/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/service_endpoint/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_endpoint/v4_1/__init__.py b/vsts/vsts/service_endpoint/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_endpoint/v4_1/models/__init__.py b/vsts/vsts/service_endpoint/v4_1/models/__init__.py new file mode 100644 index 00000000..47ad6d93 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/__init__.py @@ -0,0 +1,75 @@ +# -------------------------------------------------------------------------------------------- +# 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 .authentication_scheme_reference import AuthenticationSchemeReference +from .authorization_header import AuthorizationHeader +from .client_certificate import ClientCertificate +from .data_source import DataSource +from .data_source_binding import DataSourceBinding +from .data_source_binding_base import DataSourceBindingBase +from .data_source_details import DataSourceDetails +from .dependency_binding import DependencyBinding +from .dependency_data import DependencyData +from .depends_on import DependsOn +from .endpoint_authorization import EndpointAuthorization +from .endpoint_url import EndpointUrl +from .graph_subject_base import GraphSubjectBase +from .help_link import HelpLink +from .identity_ref import IdentityRef +from .input_descriptor import InputDescriptor +from .input_validation import InputValidation +from .input_value import InputValue +from .input_values import InputValues +from .input_values_error import InputValuesError +from .reference_links import ReferenceLinks +from .result_transformation_details import ResultTransformationDetails +from .service_endpoint import ServiceEndpoint +from .service_endpoint_authentication_scheme import ServiceEndpointAuthenticationScheme +from .service_endpoint_details import ServiceEndpointDetails +from .service_endpoint_execution_data import ServiceEndpointExecutionData +from .service_endpoint_execution_owner import ServiceEndpointExecutionOwner +from .service_endpoint_execution_record import ServiceEndpointExecutionRecord +from .service_endpoint_execution_records_input import ServiceEndpointExecutionRecordsInput +from .service_endpoint_request import ServiceEndpointRequest +from .service_endpoint_request_result import ServiceEndpointRequestResult +from .service_endpoint_type import ServiceEndpointType + +__all__ = [ + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'ClientCertificate', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'EndpointAuthorization', + 'EndpointUrl', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionOwner', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', +] diff --git a/vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py b/vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py new file mode 100644 index 00000000..8dbe5a63 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AuthenticationSchemeReference(Model): + """AuthenticationSchemeReference. + + :param inputs: + :type inputs: dict + :param type: + :type type: str + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, inputs=None, type=None): + super(AuthenticationSchemeReference, self).__init__() + self.inputs = inputs + self.type = type diff --git a/vsts/vsts/service_endpoint/v4_1/models/authorization_header.py b/vsts/vsts/service_endpoint/v4_1/models/authorization_header.py new file mode 100644 index 00000000..3657c7a3 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/authorization_header.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: Gets or sets the name of authorization header. + :type name: str + :param value: Gets or sets the value of authorization header. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/client_certificate.py b/vsts/vsts/service_endpoint/v4_1/models/client_certificate.py new file mode 100644 index 00000000..2eebb4c2 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/client_certificate.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientCertificate(Model): + """ClientCertificate. + + :param value: Gets or sets the value of client certificate. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, value=None): + super(ClientCertificate, self).__init__() + self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source.py b/vsts/vsts/service_endpoint/v4_1/models/data_source.py new file mode 100644 index 00000000..f63688d7 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/data_source.py @@ -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.serialization import Model + + +class DataSource(Model): + """DataSource. + + :param authentication_scheme: + :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param name: + :type name: str + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): + super(DataSource, self).__init__() + self.authentication_scheme = authentication_scheme + self.endpoint_url = endpoint_url + self.headers = headers + self.name = name + self.resource_url = resource_url + self.result_selector = result_selector diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py b/vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py new file mode 100644 index 00000000..75c33203 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py @@ -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 .data_source_binding_base import DataSourceBindingBase + + +class DataSourceBinding(DataSourceBindingBase): + """DataSourceBinding. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py b/vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py new file mode 100644 index 00000000..04638445 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source_details.py b/vsts/vsts/service_endpoint/v4_1/models/data_source_details.py new file mode 100644 index 00000000..020ed38a --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/data_source_details.py @@ -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.serialization import Model + + +class DataSourceDetails(Model): + """DataSourceDetails. + + :param data_source_name: Gets or sets the data source name. + :type data_source_name: str + :param data_source_url: Gets or sets the data source url. + :type data_source_url: str + :param headers: Gets or sets the request headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets the parameters of data source. + :type parameters: dict + :param resource_url: Gets or sets the resource url of data source. + :type resource_url: str + :param result_selector: Gets or sets the result selector. + :type result_selector: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): + super(DataSourceDetails, self).__init__() + self.data_source_name = data_source_name + self.data_source_url = data_source_url + self.headers = headers + self.parameters = parameters + self.resource_url = resource_url + self.result_selector = result_selector diff --git a/vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py b/vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py new file mode 100644 index 00000000..e8eb3ac1 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependencyBinding(Model): + """DependencyBinding. + + :param key: + :type key: str + :param value: + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, key=None, value=None): + super(DependencyBinding, self).__init__() + self.key = key + self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/dependency_data.py b/vsts/vsts/service_endpoint/v4_1/models/dependency_data.py new file mode 100644 index 00000000..3faa1790 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/dependency_data.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependencyData(Model): + """DependencyData. + + :param input: + :type input: str + :param map: + :type map: list of { key: str; value: [{ key: str; value: str }] } + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} + } + + def __init__(self, input=None, map=None): + super(DependencyData, self).__init__() + self.input = input + self.map = map diff --git a/vsts/vsts/service_endpoint/v4_1/models/depends_on.py b/vsts/vsts/service_endpoint/v4_1/models/depends_on.py new file mode 100644 index 00000000..8180b206 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/depends_on.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DependsOn(Model): + """DependsOn. + + :param input: + :type input: str + :param map: + :type map: list of :class:`DependencyBinding ` + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[DependencyBinding]'} + } + + def __init__(self, input=None, map=None): + super(DependsOn, self).__init__() + self.input = input + self.map = map diff --git a/vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py b/vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py new file mode 100644 index 00000000..6fc33ab8 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EndpointAuthorization(Model): + """EndpointAuthorization. + + :param parameters: Gets or sets the parameters for the selected authorization scheme. + :type parameters: dict + :param scheme: Gets or sets the scheme used for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, parameters=None, scheme=None): + super(EndpointAuthorization, self).__init__() + self.parameters = parameters + self.scheme = scheme diff --git a/vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py b/vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py new file mode 100644 index 00000000..bf46276d --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class EndpointUrl(Model): + """EndpointUrl. + + :param depends_on: Gets or sets the dependency bindings. + :type depends_on: :class:`DependsOn ` + :param display_name: Gets or sets the display name of service endpoint url. + :type display_name: str + :param help_text: Gets or sets the help text of service endpoint url. + :type help_text: str + :param is_visible: Gets or sets the visibility of service endpoint url. + :type is_visible: str + :param value: Gets or sets the value of service endpoint url. + :type value: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'is_visible': {'key': 'isVisible', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): + super(EndpointUrl, self).__init__() + self.depends_on = depends_on + self.display_name = display_name + self.help_text = help_text + self.is_visible = is_visible + self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py b/vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/service_endpoint/v4_1/models/help_link.py b/vsts/vsts/service_endpoint/v4_1/models/help_link.py new file mode 100644 index 00000000..b48e4910 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/help_link.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class HelpLink(Model): + """HelpLink. + + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, text=None, url=None): + super(HelpLink, self).__init__() + self.text = text + self.url = url diff --git a/vsts/vsts/service_endpoint/v4_1/models/identity_ref.py b/vsts/vsts/service_endpoint/v4_1/models/identity_ref.py new file mode 100644 index 00000000..c4c35ad5 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/identity_ref.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_subject_base import GraphSubjectBase + + +class IdentityRef(GraphSubjectBase): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py b/vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py new file mode 100644 index 00000000..da334836 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_validation.py b/vsts/vsts/service_endpoint/v4_1/models/input_validation.py new file mode 100644 index 00000000..f2f1a434 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/input_validation.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_value.py b/vsts/vsts/service_endpoint/v4_1/models/input_value.py new file mode 100644 index 00000000..1b13b2e8 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/input_value.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_values.py b/vsts/vsts/service_endpoint/v4_1/models/input_values.py new file mode 100644 index 00000000..69472f8d --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/input_values.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_values_error.py b/vsts/vsts/service_endpoint/v4_1/models/input_values_error.py new file mode 100644 index 00000000..e534ff53 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/input_values_error.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message diff --git a/vsts/vsts/service_endpoint/v4_1/models/reference_links.py b/vsts/vsts/service_endpoint/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py b/vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py new file mode 100644 index 00000000..9464fc3d --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResultTransformationDetails(Model): + """ResultTransformationDetails. + + :param result_template: Gets or sets the template for result transformation. + :type result_template: str + """ + + _attribute_map = { + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, result_template=None): + super(ResultTransformationDetails, self).__init__() + self.result_template = result_template diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py new file mode 100644 index 00000000..edaa4404 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpoint(Model): + """ServiceEndpoint. + + :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. + :type administrators_group: :class:`IdentityRef ` + :param authorization: Gets or sets the authorization data for talking to the endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. + :type created_by: :class:`IdentityRef ` + :param data: + :type data: dict + :param description: Gets or sets the description of endpoint. + :type description: str + :param group_scope_id: + :type group_scope_id: str + :param id: Gets or sets the identifier of this endpoint. + :type id: str + :param is_ready: EndPoint state indictor + :type is_ready: bool + :param name: Gets or sets the friendly name of the endpoint. + :type name: str + :param operation_status: Error message during creation/deletion of endpoint + :type operation_status: :class:`object ` + :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. + :type readers_group: :class:`IdentityRef ` + :param type: Gets or sets the type of the endpoint. + :type type: str + :param url: Gets or sets the url of the endpoint. + :type url: str + """ + + _attribute_map = { + 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + super(ServiceEndpoint, self).__init__() + self.administrators_group = administrators_group + self.authorization = authorization + self.created_by = created_by + self.data = data + self.description = description + self.group_scope_id = group_scope_id + self.id = id + self.is_ready = is_ready + self.name = name + self.operation_status = operation_status + self.readers_group = readers_group + self.type = type + self.url = url diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py new file mode 100644 index 00000000..00dec063 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointAuthenticationScheme(Model): + """ServiceEndpointAuthenticationScheme. + + :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. + :type client_certificates: list of :class:`ClientCertificate ` + :param display_name: Gets or sets the display name for the service endpoint authentication scheme. + :type display_name: str + :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: Gets or sets the scheme for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): + super(ServiceEndpointAuthenticationScheme, self).__init__() + self.authorization_headers = authorization_headers + self.client_certificates = client_certificates + self.display_name = display_name + self.input_descriptors = input_descriptors + self.scheme = scheme diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py new file mode 100644 index 00000000..9b048d3d --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointDetails(Model): + """ServiceEndpointDetails. + + :param authorization: Gets or sets the authorization of service endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param data: Gets or sets the data of service endpoint. + :type data: dict + :param type: Gets or sets the type of service endpoint. + :type type: str + :param url: Gets or sets the connection url of service endpoint. + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, data=None, type=None, url=None): + super(ServiceEndpointDetails, self).__init__() + self.authorization = authorization + self.data = data + self.type = type + self.url = url diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py new file mode 100644 index 00000000..d2281025 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionData(Model): + """ServiceEndpointExecutionData. + + :param definition: Gets the definition of service endpoint execution owner. + :type definition: :class:`ServiceEndpointExecutionOwner ` + :param finish_time: Gets the finish time of service endpoint execution. + :type finish_time: datetime + :param id: Gets the Id of service endpoint execution data. + :type id: long + :param owner: Gets the owner of service endpoint execution data. + :type owner: :class:`ServiceEndpointExecutionOwner ` + :param plan_type: Gets the plan type of service endpoint execution data. + :type plan_type: str + :param result: Gets the result of service endpoint execution. + :type result: object + :param start_time: Gets the start time of service endpoint execution. + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'ServiceEndpointExecutionOwner'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'ServiceEndpointExecutionOwner'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): + super(ServiceEndpointExecutionData, self).__init__() + self.definition = definition + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_type = plan_type + self.result = result + self.start_time = start_time diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py new file mode 100644 index 00000000..f72bd02d --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionOwner(Model): + """ServiceEndpointExecutionOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: Gets or sets the Id of service endpoint execution owner. + :type id: int + :param name: Gets or sets the name of service endpoint execution owner. + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(ServiceEndpointExecutionOwner, self).__init__() + self._links = _links + self.id = id + self.name = name diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py new file mode 100644 index 00000000..3aae5e95 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionRecord(Model): + """ServiceEndpointExecutionRecord. + + :param data: Gets the execution data of service endpoint execution. + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: Gets the Id of service endpoint. + :type endpoint_id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'} + } + + def __init__(self, data=None, endpoint_id=None): + super(ServiceEndpointExecutionRecord, self).__init__() + self.data = data + self.endpoint_id = endpoint_id diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py new file mode 100644 index 00000000..04924f8f --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointExecutionRecordsInput(Model): + """ServiceEndpointExecutionRecordsInput. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_ids: + :type endpoint_ids: list of str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} + } + + def __init__(self, data=None, endpoint_ids=None): + super(ServiceEndpointExecutionRecordsInput, self).__init__() + self.data = data + self.endpoint_ids = endpoint_ids diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py new file mode 100644 index 00000000..457231d0 --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointRequest(Model): + """ServiceEndpointRequest. + + :param data_source_details: Gets or sets the data source details for the service endpoint request. + :type data_source_details: :class:`DataSourceDetails ` + :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. + :type result_transformation_details: :class:`ResultTransformationDetails ` + :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. + :type service_endpoint_details: :class:`ServiceEndpointDetails ` + """ + + _attribute_map = { + 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, + 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, + 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} + } + + def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): + super(ServiceEndpointRequest, self).__init__() + self.data_source_details = data_source_details + self.result_transformation_details = result_transformation_details + self.service_endpoint_details = service_endpoint_details diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py new file mode 100644 index 00000000..2da31abf --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointRequestResult(Model): + """ServiceEndpointRequestResult. + + :param error_message: Gets or sets the error message of the service endpoint request result. + :type error_message: str + :param result: Gets or sets the result of service endpoint request. + :type result: :class:`object ` + :param status_code: Gets or sets the status code of the service endpoint request result. + :type status_code: object + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'object'} + } + + def __init__(self, error_message=None, result=None, status_code=None): + super(ServiceEndpointRequestResult, self).__init__() + self.error_message = error_message + self.result = result + self.status_code = status_code diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py new file mode 100644 index 00000000..c5fea2fa --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ServiceEndpointType(Model): + """ServiceEndpointType. + + :param authentication_schemes: Authentication scheme of service endpoint type. + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: Data sources of service endpoint type. + :type data_sources: list of :class:`DataSource ` + :param dependency_data: Dependency data of service endpoint type. + :type dependency_data: list of :class:`DependencyData ` + :param description: Gets or sets the description of service endpoint type. + :type description: str + :param display_name: Gets or sets the display name of service endpoint type. + :type display_name: str + :param endpoint_url: Gets or sets the endpoint url of service endpoint type. + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: Gets or sets the help link of service endpoint type. + :type help_link: :class:`HelpLink ` + :param help_mark_down: + :type help_mark_down: str + :param icon_url: Gets or sets the icon url of service endpoint type. + :type icon_url: str + :param input_descriptors: Input descriptor of service endpoint type. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of service endpoint type. + :type name: str + :param trusted_hosts: Trusted hosts of a service endpoint type. + :type trusted_hosts: list of str + :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. + :type ui_contribution_id: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, + 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name + self.trusted_hosts = trusted_hosts + self.ui_contribution_id = ui_contribution_id diff --git a/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py b/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py new file mode 100644 index 00000000..c3b7802d --- /dev/null +++ b/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py @@ -0,0 +1,254 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class ServiceEndpointClient(VssClient): + """ServiceEndpoint + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ServiceEndpointClient, 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 execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): + """ExecuteServiceEndpointRequest. + [Preview API] Proxy for a GET request defined by a service endpoint. + :param :class:` ` service_endpoint_request: Service endpoint request. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if endpoint_id is not None: + query_parameters['endpointId'] = self._serialize.query('endpoint_id', endpoint_id, 'str') + content = self._serialize.body(service_endpoint_request, 'ServiceEndpointRequest') + response = self._send(http_method='POST', + location_id='cc63bb57-2a5f-4a7a-b79c-c142d308657e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpointRequestResult', response) + + def create_service_endpoint(self, endpoint, project): + """CreateServiceEndpoint. + [Preview API] Create a service endpoint. + :param :class:` ` endpoint: Service endpoint to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='POST', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def delete_service_endpoint(self, project, endpoint_id): + """DeleteServiceEndpoint. + [Preview API] Delete a service endpoint. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + self._send(http_method='DELETE', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='4.1-preview.1', + route_values=route_values) + + def get_service_endpoint_details(self, project, endpoint_id): + """GetServiceEndpointDetails. + [Preview API] Get the service endpoint details. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + response = self._send(http_method='GET', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ServiceEndpoint', response) + + def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, include_failed=None): + """GetServiceEndpoints. + [Preview API] Get the service endpoints. + :param str project: Project ID or project name + :param str type: Type of the service endpoints. + :param [str] auth_schemes: Authorization schemes used for service endpoints. + :param [str] endpoint_ids: Ids of the service endpoints. + :param bool include_failed: Failed flag for service endpoints. + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if auth_schemes is not None: + auth_schemes = ",".join(auth_schemes) + query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') + if endpoint_ids is not None: + endpoint_ids = ",".join(endpoint_ids) + query_parameters['endpointIds'] = self._serialize.query('endpoint_ids', endpoint_ids, 'str') + if include_failed is not None: + query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + response = self._send(http_method='GET', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def get_service_endpoints_by_names(self, project, endpoint_names, type=None, auth_schemes=None, include_failed=None): + """GetServiceEndpointsByNames. + [Preview API] Get the service endpoints by name. + :param str project: Project ID or project name + :param [str] endpoint_names: Names of the service endpoints. + :param str type: Type of the service endpoints. + :param [str] auth_schemes: Authorization schemes used for service endpoints. + :param bool include_failed: Failed flag for service endpoints. + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if endpoint_names is not None: + endpoint_names = ",".join(endpoint_names) + query_parameters['endpointNames'] = self._serialize.query('endpoint_names', endpoint_names, 'str') + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if auth_schemes is not None: + auth_schemes = ",".join(auth_schemes) + query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') + if include_failed is not None: + query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + response = self._send(http_method='GET', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): + """UpdateServiceEndpoint. + [Preview API] Update a service endpoint. + :param :class:` ` endpoint: Service endpoint to update. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint to update. + :param str operation: Operation for the service endpoint. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if operation is not None: + query_parameters['operation'] = self._serialize.query('operation', operation, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='PUT', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def update_service_endpoints(self, endpoints, project): + """UpdateServiceEndpoints. + [Preview API] Update the service endpoints. + :param [ServiceEndpoint] endpoints: Names of the service endpoints to update. + :param str project: Project ID or project name + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoints, '[ServiceEndpoint]') + response = self._send(http_method='PUT', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='4.1-preview.1', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[ServiceEndpoint]', response) + + def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): + """GetServiceEndpointExecutionRecords. + [Preview API] Get service endpoint execution records. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint. + :param int top: Number of service endpoint execution records to get. + :rtype: [ServiceEndpointExecutionRecord] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='10a16738-9299-4cd1-9a81-fd23ad6200d0', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpointExecutionRecord]', response) + + def get_service_endpoint_types(self, type=None, scheme=None): + """GetServiceEndpointTypes. + [Preview API] Get service endpoint types. + :param str type: Type of service endpoint. + :param str scheme: Scheme of service endpoint. + :rtype: [ServiceEndpointType] + """ + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if scheme is not None: + query_parameters['scheme'] = self._serialize.query('scheme', scheme, 'str') + response = self._send(http_method='GET', + location_id='5a7938a4-655e-486c-b562-b78c54a7e87b', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ServiceEndpointType]', response) + diff --git a/vsts/vsts/symbol/__init__.py b/vsts/vsts/symbol/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/symbol/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/symbol/v4_1/__init__.py b/vsts/vsts/symbol/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/symbol/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/symbol/v4_1/models/__init__.py b/vsts/vsts/symbol/v4_1/models/__init__.py new file mode 100644 index 00000000..56b178f9 --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/__init__.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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 .debug_entry import DebugEntry +from .debug_entry_create_batch import DebugEntryCreateBatch +from .json_blob_block_hash import JsonBlobBlockHash +from .json_blob_identifier import JsonBlobIdentifier +from .json_blob_identifier_with_blocks import JsonBlobIdentifierWithBlocks +from .request import Request +from .resource_base import ResourceBase + +__all__ = [ + 'DebugEntry', + 'DebugEntryCreateBatch', + 'JsonBlobBlockHash', + 'JsonBlobIdentifier', + 'JsonBlobIdentifierWithBlocks', + 'Request', + 'ResourceBase', +] diff --git a/vsts/vsts/symbol/v4_1/models/debug_entry.py b/vsts/vsts/symbol/v4_1/models/debug_entry.py new file mode 100644 index 00000000..777fdf4d --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/debug_entry.py @@ -0,0 +1,64 @@ +# -------------------------------------------------------------------------------------------- +# 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 .resource_base import ResourceBase + + +class DebugEntry(ResourceBase): + """DebugEntry. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + :param blob_details: + :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` + :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. + :type blob_identifier: :class:`JsonBlobIdentifier ` + :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. + :type blob_uri: str + :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. + :type client_key: str + :param information_level: The information level this debug entry contains. + :type information_level: object + :param request_id: The identifier of symbol request to which this debug entry belongs. + :type request_id: str + :param status: The status of debug entry. + :type status: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'blob_details': {'key': 'blobDetails', 'type': 'JsonBlobIdentifierWithBlocks'}, + 'blob_identifier': {'key': 'blobIdentifier', 'type': 'JsonBlobIdentifier'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'client_key': {'key': 'clientKey', 'type': 'str'}, + 'information_level': {'key': 'informationLevel', 'type': 'object'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, blob_details=None, blob_identifier=None, blob_uri=None, client_key=None, information_level=None, request_id=None, status=None): + super(DebugEntry, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) + self.blob_details = blob_details + self.blob_identifier = blob_identifier + self.blob_uri = blob_uri + self.client_key = client_key + self.information_level = information_level + self.request_id = request_id + self.status = status diff --git a/vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py b/vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py new file mode 100644 index 00000000..e7b6cfb0 --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DebugEntryCreateBatch(Model): + """DebugEntryCreateBatch. + + :param create_behavior: Defines what to do when a debug entry in the batch already exists. + :type create_behavior: object + :param debug_entries: The debug entries. + :type debug_entries: list of :class:`DebugEntry ` + """ + + _attribute_map = { + 'create_behavior': {'key': 'createBehavior', 'type': 'object'}, + 'debug_entries': {'key': 'debugEntries', 'type': '[DebugEntry]'} + } + + def __init__(self, create_behavior=None, debug_entries=None): + super(DebugEntryCreateBatch, self).__init__() + self.create_behavior = create_behavior + self.debug_entries = debug_entries diff --git a/vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py b/vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py new file mode 100644 index 00000000..8b75829d --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonBlobBlockHash(Model): + """JsonBlobBlockHash. + + :param hash_bytes: + :type hash_bytes: str + """ + + _attribute_map = { + 'hash_bytes': {'key': 'hashBytes', 'type': 'str'} + } + + def __init__(self, hash_bytes=None): + super(JsonBlobBlockHash, self).__init__() + self.hash_bytes = hash_bytes diff --git a/vsts/vsts/symbol/v4_1/models/json_blob_identifier.py b/vsts/vsts/symbol/v4_1/models/json_blob_identifier.py new file mode 100644 index 00000000..56470141 --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/json_blob_identifier.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonBlobIdentifier(Model): + """JsonBlobIdentifier. + + :param identifier_value: + :type identifier_value: str + """ + + _attribute_map = { + 'identifier_value': {'key': 'identifierValue', 'type': 'str'} + } + + def __init__(self, identifier_value=None): + super(JsonBlobIdentifier, self).__init__() + self.identifier_value = identifier_value diff --git a/vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py b/vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py new file mode 100644 index 00000000..a098770a --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonBlobIdentifierWithBlocks(Model): + """JsonBlobIdentifierWithBlocks. + + :param block_hashes: + :type block_hashes: list of :class:`JsonBlobBlockHash ` + :param identifier_value: + :type identifier_value: str + """ + + _attribute_map = { + 'block_hashes': {'key': 'blockHashes', 'type': '[JsonBlobBlockHash]'}, + 'identifier_value': {'key': 'identifierValue', 'type': 'str'} + } + + def __init__(self, block_hashes=None, identifier_value=None): + super(JsonBlobIdentifierWithBlocks, self).__init__() + self.block_hashes = block_hashes + self.identifier_value = identifier_value diff --git a/vsts/vsts/symbol/v4_1/models/request.py b/vsts/vsts/symbol/v4_1/models/request.py new file mode 100644 index 00000000..851ed33b --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/request.py @@ -0,0 +1,52 @@ +# -------------------------------------------------------------------------------------------- +# 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 .resource_base import ResourceBase + + +class Request(ResourceBase): + """Request. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + :param description: An optional human-facing description. + :type description: str + :param expiration_date: An optional expiration date for the request. The request will become inaccessible and get deleted after the date, regardless of its status. On an HTTP POST, if expiration date is null/missing, the server will assign a default expiration data (30 days unless overwridden in the registry at the account level). On PATCH, if expiration date is null/missing, the behavior is to not change whatever the request's current expiration date is. + :type expiration_date: datetime + :param name: A human-facing name for the request. Required on POST, ignored on PATCH. + :type name: str + :param status: The status for this request. + :type status: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, description=None, expiration_date=None, name=None, status=None): + super(Request, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) + self.description = description + self.expiration_date = expiration_date + self.name = name + self.status = status diff --git a/vsts/vsts/symbol/v4_1/models/resource_base.py b/vsts/vsts/symbol/v4_1/models/resource_base.py new file mode 100644 index 00000000..540382ec --- /dev/null +++ b/vsts/vsts/symbol/v4_1/models/resource_base.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ResourceBase(Model): + """ResourceBase. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None): + super(ResourceBase, self).__init__() + self.created_by = created_by + self.created_date = created_date + self.id = id + self.storage_eTag = storage_eTag + self.url = url diff --git a/vsts/vsts/symbol/v4_1/symbol_client.py b/vsts/vsts/symbol/v4_1/symbol_client.py new file mode 100644 index 00000000..81145f71 --- /dev/null +++ b/vsts/vsts/symbol/v4_1/symbol_client.py @@ -0,0 +1,230 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class SymbolClient(VssClient): + """Symbol + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SymbolClient, 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 check_availability(self): + """CheckAvailability. + [Preview API] Check the availability of symbol service. This includes checking for feature flag, and possibly license in future. Note this is NOT an anonymous endpoint, and the caller will be redirected to authentication before hitting it. + """ + self._send(http_method='GET', + location_id='97c893cc-e861-4ef4-8c43-9bad4a963dee', + version='4.1-preview.1') + + def get_client(self, client_type): + """GetClient. + [Preview API] Get the client package. + :param str client_type: Either "EXE" for a zip file containing a Windows symbol client (a.k.a. symbol.exe) along with dependencies, or "TASK" for a VSTS task that can be run on a VSTS build agent. All the other values are invalid. The parameter is case-insensitive. + :rtype: object + """ + route_values = {} + if client_type is not None: + route_values['clientType'] = self._serialize.url('client_type', client_type, 'str') + response = self._send(http_method='GET', + location_id='79c83865-4de3-460c-8a16-01be238e0818', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def head_client(self): + """HeadClient. + [Preview API] Get client version information. + """ + self._send(http_method='HEAD', + location_id='79c83865-4de3-460c-8a16-01be238e0818', + version='4.1-preview.1') + + def create_requests(self, request_to_create): + """CreateRequests. + [Preview API] Create a new symbol request. + :param :class:` ` request_to_create: The symbol request to create. + :rtype: :class:` ` + """ + content = self._serialize.body(request_to_create, 'Request') + response = self._send(http_method='POST', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + content=content) + return self._deserialize('Request', response) + + def create_requests_request_id_debug_entries(self, batch, request_id, collection): + """CreateRequestsRequestIdDebugEntries. + [Preview API] Create debug entries for a symbol request as specified by its identifier. + :param :class:` ` batch: A batch that contains debug entries to create. + :param str request_id: The symbol request identifier. + :param str collection: A valid debug entry collection name. Must be "debugentries". + :rtype: [DebugEntry] + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + query_parameters = {} + if collection is not None: + query_parameters['collection'] = self._serialize.query('collection', collection, 'str') + content = self._serialize.body(batch, 'DebugEntryCreateBatch') + response = self._send(http_method='POST', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[DebugEntry]', response) + + def create_requests_request_name_debug_entries(self, batch, request_name, collection): + """CreateRequestsRequestNameDebugEntries. + [Preview API] Create debug entries for a symbol request as specified by its name. + :param :class:` ` batch: A batch that contains debug entries to create. + :param str request_name: + :param str collection: A valid debug entry collection name. Must be "debugentries". + :rtype: [DebugEntry] + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + if collection is not None: + query_parameters['collection'] = self._serialize.query('collection', collection, 'str') + content = self._serialize.body(batch, 'DebugEntryCreateBatch') + response = self._send(http_method='POST', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content, + returns_collection=True) + return self._deserialize('[DebugEntry]', response) + + def delete_requests_request_id(self, request_id, synchronous=None): + """DeleteRequestsRequestId. + [Preview API] Delete a symbol request by request identifier. + :param str request_id: The symbol request identifier. + :param bool synchronous: If true, delete all the debug entries under this request synchronously in the current session. If false, the deletion will be postponed to a later point and be executed automatically by the system. + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + query_parameters = {} + if synchronous is not None: + query_parameters['synchronous'] = self._serialize.query('synchronous', synchronous, 'bool') + self._send(http_method='DELETE', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def delete_requests_request_name(self, request_name, synchronous=None): + """DeleteRequestsRequestName. + [Preview API] Delete a symbol request by request name. + :param str request_name: + :param bool synchronous: If true, delete all the debug entries under this request synchronously in the current session. If false, the deletion will be postponed to a later point and be executed automatically by the system. + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + if synchronous is not None: + query_parameters['synchronous'] = self._serialize.query('synchronous', synchronous, 'bool') + self._send(http_method='DELETE', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + query_parameters=query_parameters) + + def get_requests_request_id(self, request_id): + """GetRequestsRequestId. + [Preview API] Get a symbol request by request identifier. + :param str request_id: The symbol request identifier. + :rtype: :class:` ` + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + response = self._send(http_method='GET', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('Request', response) + + def get_requests_request_name(self, request_name): + """GetRequestsRequestName. + [Preview API] Get a symbol request by request name. + :param str request_name: + :rtype: :class:` ` + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + response = self._send(http_method='GET', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('Request', response) + + def update_requests_request_id(self, update_request, request_id): + """UpdateRequestsRequestId. + [Preview API] Update a symbol request by request identifier. + :param :class:` ` update_request: The symbol request. + :param str request_id: The symbol request identifier. + :rtype: :class:` ` + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + content = self._serialize.body(update_request, 'Request') + response = self._send(http_method='PATCH', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Request', response) + + def update_requests_request_name(self, update_request, request_name): + """UpdateRequestsRequestName. + [Preview API] Update a symbol request by request name. + :param :class:` ` update_request: The symbol request. + :param str request_name: + :rtype: :class:` ` + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + content = self._serialize.body(update_request, 'Request') + response = self._send(http_method='PATCH', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('Request', response) + + def get_sym_srv_debug_entry_client_key(self, debug_entry_client_key): + """GetSymSrvDebugEntryClientKey. + [Preview API] Given a client key, returns the best matched debug entry. + :param str debug_entry_client_key: A "client key" used by both ends of Microsoft's symbol protocol to identify a debug entry. The semantics of client key is governed by symsrv and is beyond the scope of this documentation. + """ + route_values = {} + if debug_entry_client_key is not None: + route_values['debugEntryClientKey'] = self._serialize.url('debug_entry_client_key', debug_entry_client_key, 'str') + self._send(http_method='GET', + location_id='9648e256-c9f9-4f16-8a27-630b06396942', + version='4.1-preview.1', + route_values=route_values) + diff --git a/vsts/vsts/wiki/__init__.py b/vsts/vsts/wiki/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/wiki/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/wiki/v4_0/__init__.py b/vsts/vsts/wiki/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/wiki/v4_0/models/__init__.py b/vsts/vsts/wiki/v4_0/models/__init__.py new file mode 100644 index 00000000..c8bdedff --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/__init__.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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 .change import Change +from .file_content_metadata import FileContentMetadata +from .git_commit_ref import GitCommitRef +from .git_item import GitItem +from .git_push import GitPush +from .git_push_ref import GitPushRef +from .git_ref_update import GitRefUpdate +from .git_repository import GitRepository +from .git_repository_ref import GitRepositoryRef +from .git_status import GitStatus +from .git_status_context import GitStatusContext +from .git_template import GitTemplate +from .git_user_date import GitUserDate +from .git_version_descriptor import GitVersionDescriptor +from .item_content import ItemContent +from .item_model import ItemModel +from .wiki_attachment import WikiAttachment +from .wiki_attachment_change import WikiAttachmentChange +from .wiki_attachment_response import WikiAttachmentResponse +from .wiki_change import WikiChange +from .wiki_page import WikiPage +from .wiki_page_change import WikiPageChange +from .wiki_repository import WikiRepository +from .wiki_update import WikiUpdate + +__all__ = [ + 'Change', + 'FileContentMetadata', + 'GitCommitRef', + 'GitItem', + 'GitPush', + 'GitPushRef', + 'GitRefUpdate', + 'GitRepository', + 'GitRepositoryRef', + 'GitStatus', + 'GitStatusContext', + 'GitTemplate', + 'GitUserDate', + 'GitVersionDescriptor', + 'ItemContent', + 'ItemModel', + 'WikiAttachment', + 'WikiAttachmentChange', + 'WikiAttachmentResponse', + 'WikiChange', + 'WikiPage', + 'WikiPageChange', + 'WikiRepository', + 'WikiUpdate', +] diff --git a/vsts/vsts/wiki/v4_0/models/change.py b/vsts/vsts/wiki/v4_0/models/change.py new file mode 100644 index 00000000..576fb635 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/change.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Change(Model): + """Change. + + :param change_type: + :type change_type: object + :param item: + :type item: :class:`GitItem ` + :param new_content: + :type new_content: :class:`ItemContent ` + :param source_server_item: + :type source_server_item: str + :param url: + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'GitItem'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/file_content_metadata.py b/vsts/vsts/wiki/v4_0/models/file_content_metadata.py new file mode 100644 index 00000000..d2d6667d --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/file_content_metadata.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link diff --git a/vsts/vsts/wiki/v4_0/models/git_commit_ref.py b/vsts/vsts/wiki/v4_0/models/git_commit_ref.py new file mode 100644 index 00000000..21d8ab03 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_commit_ref.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitCommitRef(Model): + """GitCommitRef. + + :param _links: + :type _links: ReferenceLinks + :param author: + :type author: :class:`GitUserDate ` + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param commit_id: + :type commit_id: str + :param committer: + :type committer: :class:`GitUserDate ` + :param parents: + :type parents: list of str + :param remote_url: + :type remote_url: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + :param work_items: + :type work_items: list of ResourceRef + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'GitUserDate'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'committer': {'key': 'committer', 'type': 'GitUserDate'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} + } + + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): + super(GitCommitRef, self).__init__() + self._links = _links + self.author = author + self.change_counts = change_counts + self.changes = changes + self.comment = comment + self.comment_truncated = comment_truncated + self.commit_id = commit_id + self.committer = committer + self.parents = parents + self.remote_url = remote_url + self.statuses = statuses + self.url = url + self.work_items = work_items diff --git a/vsts/vsts/wiki/v4_0/models/git_item.py b/vsts/vsts/wiki/v4_0/models/git_item.py new file mode 100644 index 00000000..e4b8086d --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_item.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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 .item_model import ItemModel + + +class GitItem(ItemModel): + """GitItem. + + :param _links: + :type _links: ReferenceLinks + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param commit_id: SHA1 of commit item was fetched at + :type commit_id: str + :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) + :type git_object_type: object + :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached + :type latest_processed_change: :class:`GitCommitRef ` + :param object_id: Git object id + :type object_id: str + :param original_object_id: Git object id + :type original_object_id: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, + 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): + super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.commit_id = commit_id + self.git_object_type = git_object_type + self.latest_processed_change = latest_processed_change + self.object_id = object_id + self.original_object_id = original_object_id diff --git a/vsts/vsts/wiki/v4_0/models/git_push.py b/vsts/vsts/wiki/v4_0/models/git_push.py new file mode 100644 index 00000000..f0015a6d --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_push.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# 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 .git_push_ref import GitPushRef + + +class GitPush(GitPushRef): + """GitPush. + + :param _links: + :type _links: ReferenceLinks + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: IdentityRef + :param push_id: + :type push_id: int + :param url: + :type url: str + :param commits: + :type commits: list of :class:`GitCommitRef ` + :param ref_updates: + :type ref_updates: list of :class:`GitRefUpdate ` + :param repository: + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): + super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) + self.commits = commits + self.ref_updates = ref_updates + self.repository = repository diff --git a/vsts/vsts/wiki/v4_0/models/git_push_ref.py b/vsts/vsts/wiki/v4_0/models/git_push_ref.py new file mode 100644 index 00000000..9376eaf8 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_push_ref.py @@ -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.serialization import Model + + +class GitPushRef(Model): + """GitPushRef. + + :param _links: + :type _links: ReferenceLinks + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: IdentityRef + :param push_id: + :type push_id: int + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): + super(GitPushRef, self).__init__() + self._links = _links + self.date = date + self.push_correlation_id = push_correlation_id + self.pushed_by = pushed_by + self.push_id = push_id + self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/git_ref_update.py b/vsts/vsts/wiki/v4_0/models/git_ref_update.py new file mode 100644 index 00000000..6c10c600 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_ref_update.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRefUpdate(Model): + """GitRefUpdate. + + :param is_locked: + :type is_locked: bool + :param name: + :type name: str + :param new_object_id: + :type new_object_id: str + :param old_object_id: + :type old_object_id: str + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, + 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): + super(GitRefUpdate, self).__init__() + self.is_locked = is_locked + self.name = name + self.new_object_id = new_object_id + self.old_object_id = old_object_id + self.repository_id = repository_id diff --git a/vsts/vsts/wiki/v4_0/models/git_repository.py b/vsts/vsts/wiki/v4_0/models/git_repository.py new file mode 100644 index 00000000..cc72d987 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_repository.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: ReferenceLinks + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.url = url + self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/wiki/v4_0/models/git_repository_ref.py b/vsts/vsts/wiki/v4_0/models/git_repository_ref.py new file mode 100644 index 00000000..e733805a --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_repository_ref.py @@ -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.serialization import Model + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: TeamProjectCollectionReference + :param id: + :type id: str + :param name: + :type name: str + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.name = name + self.project = project + self.remote_url = remote_url + self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/git_status.py b/vsts/vsts/wiki/v4_0/models/git_status.py new file mode 100644 index 00000000..8b80e0e0 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_status.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitStatus(Model): + """GitStatus. + + :param _links: Reference links. + :type _links: ReferenceLinks + :param context: Context of the status. + :type context: :class:`GitStatusContext ` + :param created_by: Identity that created the status. + :type created_by: IdentityRef + :param creation_date: Creation date and time of the status. + :type creation_date: datetime + :param description: Status description. Typically describes current state of the status. + :type description: str + :param id: Status identifier. + :type id: int + :param state: State of the status. + :type state: object + :param target_url: URL with status details. + :type target_url: str + :param updated_date: Last update date and time of the status. + :type updated_date: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'context': {'key': 'context', 'type': 'GitStatusContext'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'target_url': {'key': 'targetUrl', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): + super(GitStatus, self).__init__() + self._links = _links + self.context = context + self.created_by = created_by + self.creation_date = creation_date + self.description = description + self.id = id + self.state = state + self.target_url = target_url + self.updated_date = updated_date diff --git a/vsts/vsts/wiki/v4_0/models/git_status_context.py b/vsts/vsts/wiki/v4_0/models/git_status_context.py new file mode 100644 index 00000000..cf40205f --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_status_context.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitStatusContext(Model): + """GitStatusContext. + + :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. + :type genre: str + :param name: Name identifier of the status, cannot be null or empty. + :type name: str + """ + + _attribute_map = { + 'genre': {'key': 'genre', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, genre=None, name=None): + super(GitStatusContext, self).__init__() + self.genre = genre + self.name = name diff --git a/vsts/vsts/wiki/v4_0/models/git_template.py b/vsts/vsts/wiki/v4_0/models/git_template.py new file mode 100644 index 00000000..fbe26c8a --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_template.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitTemplate(Model): + """GitTemplate. + + :param name: Name of the Template + :type name: str + :param type: Type of the Template + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, name=None, type=None): + super(GitTemplate, self).__init__() + self.name = name + self.type = type diff --git a/vsts/vsts/wiki/v4_0/models/git_user_date.py b/vsts/vsts/wiki/v4_0/models/git_user_date.py new file mode 100644 index 00000000..9199afd0 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_user_date.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitUserDate(Model): + """GitUserDate. + + :param date: + :type date: datetime + :param email: + :type email: str + :param name: + :type name: str + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'email': {'key': 'email', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, date=None, email=None, name=None): + super(GitUserDate, self).__init__() + self.date = date + self.email = email + self.name = name diff --git a/vsts/vsts/wiki/v4_0/models/git_version_descriptor.py b/vsts/vsts/wiki/v4_0/models/git_version_descriptor.py new file mode 100644 index 00000000..919fc237 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/git_version_descriptor.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitVersionDescriptor(Model): + """GitVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None): + super(GitVersionDescriptor, self).__init__() + self.version = version + self.version_options = version_options + self.version_type = version_type diff --git a/vsts/vsts/wiki/v4_0/models/item_content.py b/vsts/vsts/wiki/v4_0/models/item_content.py new file mode 100644 index 00000000..f5cfaef1 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/item_content.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type diff --git a/vsts/vsts/wiki/v4_0/models/item_model.py b/vsts/vsts/wiki/v4_0/models/item_model.py new file mode 100644 index 00000000..49e0c98e --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/item_model.py @@ -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.serialization import Model + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: ReferenceLinks + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/wiki_attachment.py b/vsts/vsts/wiki/v4_0/models/wiki_attachment.py new file mode 100644 index 00000000..2a1c03dc --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_attachment.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiAttachment(Model): + """WikiAttachment. + + :param name: Name of the wiki attachment file. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(WikiAttachment, self).__init__() + self.name = name diff --git a/vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py b/vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py new file mode 100644 index 00000000..1f1975e1 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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 .wiki_change import WikiChange + + +class WikiAttachmentChange(WikiChange): + """WikiAttachmentChange. + + :param overwrite_content_if_existing: Defines whether the content of an existing attachment is to be overwriten or not. If true, the content of the attachment is overwritten on an existing attachment. If attachment non-existing, new attachment is created. If false, exception is thrown if an attachment with same name exists. + :type overwrite_content_if_existing: bool + """ + + _attribute_map = { + 'overwrite_content_if_existing': {'key': 'overwriteContentIfExisting', 'type': 'bool'} + } + + def __init__(self, overwrite_content_if_existing=None): + super(WikiAttachmentChange, self).__init__() + self.overwrite_content_if_existing = overwrite_content_if_existing diff --git a/vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py b/vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py new file mode 100644 index 00000000..b8c805ea --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiAttachmentResponse(Model): + """WikiAttachmentResponse. + + :param attachment: Defines properties for wiki attachment file. + :type attachment: :class:`WikiAttachment ` + :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the head commit of wiki repository after the corresponding attachments API call. + :type eTag: list of str + """ + + _attribute_map = { + 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, attachment=None, eTag=None): + super(WikiAttachmentResponse, self).__init__() + self.attachment = attachment + self.eTag = eTag diff --git a/vsts/vsts/wiki/v4_0/models/wiki_change.py b/vsts/vsts/wiki/v4_0/models/wiki_change.py new file mode 100644 index 00000000..64311489 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_change.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiChange(Model): + """WikiChange. + + :param change_type: ChangeType associated with the item in this change. + :type change_type: object + :param content: New content of the item. + :type content: str + :param item: Item that is subject to this change. + :type item: object + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'str'}, + 'item': {'key': 'item', 'type': 'object'} + } + + def __init__(self, change_type=None, content=None, item=None): + super(WikiChange, self).__init__() + self.change_type = change_type + self.content = content + self.item = item diff --git a/vsts/vsts/wiki/v4_0/models/wiki_page.py b/vsts/vsts/wiki/v4_0/models/wiki_page.py new file mode 100644 index 00000000..232e92f1 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_page.py @@ -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.serialization import Model + + +class WikiPage(Model): + """WikiPage. + + :param depth: The depth in terms of level in the hierarchy. + :type depth: int + :param git_item_path: The path of the item corresponding to the wiki page stored in the backing Git repository. This is populated only in the response of the wiki pages GET API. + :type git_item_path: str + :param is_non_conformant: Flag to denote if a page is non-conforming, i.e. 1) if the name doesn't match our norms. 2) if the page does not have a valid entry in the appropriate order file. + :type is_non_conformant: bool + :param is_parent_page: Returns true if this page has child pages under its path. + :type is_parent_page: bool + :param order: Order associated with the page with respect to other pages in the same hierarchy level. + :type order: int + :param path: Path of the wiki page. + :type path: str + """ + + _attribute_map = { + 'depth': {'key': 'depth', 'type': 'int'}, + 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, + 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, + 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, depth=None, git_item_path=None, is_non_conformant=None, is_parent_page=None, order=None, path=None): + super(WikiPage, self).__init__() + self.depth = depth + self.git_item_path = git_item_path + self.is_non_conformant = is_non_conformant + self.is_parent_page = is_parent_page + self.order = order + self.path = path diff --git a/vsts/vsts/wiki/v4_0/models/wiki_page_change.py b/vsts/vsts/wiki/v4_0/models/wiki_page_change.py new file mode 100644 index 00000000..2e67ce59 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_page_change.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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 .wiki_change import WikiChange + + +class WikiPageChange(WikiChange): + """WikiPageChange. + + :param original_order: Original order of the page to be provided in case of reorder or rename. + :type original_order: int + :param original_path: Original path of the page to be provided in case of rename. + :type original_path: str + """ + + _attribute_map = { + 'original_order': {'key': 'originalOrder', 'type': 'int'}, + 'original_path': {'key': 'originalPath', 'type': 'str'} + } + + def __init__(self, original_order=None, original_path=None): + super(WikiPageChange, self).__init__() + self.original_order = original_order + self.original_path = original_path diff --git a/vsts/vsts/wiki/v4_0/models/wiki_repository.py b/vsts/vsts/wiki/v4_0/models/wiki_repository.py new file mode 100644 index 00000000..e97b4c37 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_repository.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiRepository(Model): + """WikiRepository. + + :param head_commit: The head commit associated with the git repository backing up the wiki. + :type head_commit: str + :param id: The ID of the wiki which is same as the ID of the Git repository that it is backed by. + :type id: str + :param repository: The git repository that backs up the wiki. + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + 'head_commit': {'key': 'headCommit', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, head_commit=None, id=None, repository=None): + super(WikiRepository, self).__init__() + self.head_commit = head_commit + self.id = id + self.repository = repository diff --git a/vsts/vsts/wiki/v4_0/models/wiki_update.py b/vsts/vsts/wiki/v4_0/models/wiki_update.py new file mode 100644 index 00000000..65af35cf --- /dev/null +++ b/vsts/vsts/wiki/v4_0/models/wiki_update.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiUpdate(Model): + """WikiUpdate. + + :param associated_git_push: Git push object associated with this wiki update object. This is populated only in the response of the wiki updates POST API. + :type associated_git_push: :class:`GitPush ` + :param attachment_changes: List of attachment change objects that is to be associated with this update. + :type attachment_changes: list of :class:`WikiAttachmentChange ` + :param comment: Comment to be associated with this update. + :type comment: str + :param head_commit: Headcommit of the of the repository. + :type head_commit: str + :param page_change: Page change object associated with this update. + :type page_change: :class:`WikiPageChange ` + """ + + _attribute_map = { + 'associated_git_push': {'key': 'associatedGitPush', 'type': 'GitPush'}, + 'attachment_changes': {'key': 'attachmentChanges', 'type': '[WikiAttachmentChange]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'head_commit': {'key': 'headCommit', 'type': 'str'}, + 'page_change': {'key': 'pageChange', 'type': 'WikiPageChange'} + } + + def __init__(self, associated_git_push=None, attachment_changes=None, comment=None, head_commit=None, page_change=None): + super(WikiUpdate, self).__init__() + self.associated_git_push = associated_git_push + self.attachment_changes = attachment_changes + self.comment = comment + self.head_commit = head_commit + self.page_change = page_change diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/vsts/vsts/wiki/v4_0/wiki_client.py new file mode 100644 index 00000000..966e9244 --- /dev/null +++ b/vsts/vsts/wiki/v4_0/wiki_client.py @@ -0,0 +1,195 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WikiClient(VssClient): + """Wiki + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WikiClient, 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_pages(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): + """GetPages. + [Preview API] Gets metadata or content of the wiki pages under the provided page path. + :param str project: Project ID or project name + :param str wiki_id: ID of the wiki from which the page is to be retrieved. + :param str path: Path from which the pages are to retrieved. + :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). + :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). + :rtype: [WikiPage] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_id is not None: + route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WikiPage]', response) + + def get_page_text(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): + """GetPageText. + [Preview API] Gets metadata or content of the wiki pages under the provided page path. + :param str project: Project ID or project name + :param str wiki_id: ID of the wiki from which the page is to be retrieved. + :param str path: Path from which the pages are to retrieved. + :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). + :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_id is not None: + route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): + """GetPageZip. + [Preview API] Gets metadata or content of the wiki pages under the provided page path. + :param str project: Project ID or project name + :param str wiki_id: ID of the wiki from which the page is to be retrieved. + :param str path: Path from which the pages are to retrieved. + :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). + :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_id is not None: + route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def create_update(self, update, project, wiki_id, version_descriptor=None): + """CreateUpdate. + [Preview API] Use this API to create, edit, delete and reorder a wiki page and also to add attachments to a wiki page. For every successful wiki update creation a Git push is made to the backing Git repository. The data corresponding to that Git push is added in the response of this API. + :param :class:` ` update: + :param str project: Project ID or project name + :param str wiki_id: ID of the wiki in which the update is to be made. + :param :class:` ` version_descriptor: Version descriptor for the version on which the update is to be made. Defaults to default branch (Optional). + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_id is not None: + route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') + query_parameters = {} + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + content = self._serialize.body(update, 'WikiUpdate') + response = self._send(http_method='POST', + location_id='d015d701-8038-4e7b-8623-3d5ca6813a6c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('WikiUpdate', response) + + def create_wiki(self, wiki_to_create, project=None): + """CreateWiki. + [Preview API] Creates a backing git repository and does the intialization of the wiki for the given project. + :param :class:` ` wiki_to_create: Object containing name of the wiki to be created and the ID of the project in which the wiki is to be created. The provided name will also be used in the name of the backing git repository. If this is empty, the name will be auto generated. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(wiki_to_create, 'GitRepository') + response = self._send(http_method='POST', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WikiRepository', response) + + def get_wikis(self, project=None): + """GetWikis. + [Preview API] Retrieves wiki repositories in a project or collection. + :param str project: Project ID or project name + :rtype: [WikiRepository] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WikiRepository]', response) + diff --git a/vsts/vsts/wiki/v4_1/__init__.py b/vsts/vsts/wiki/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/wiki/v4_1/models/__init__.py b/vsts/vsts/wiki/v4_1/models/__init__.py new file mode 100644 index 00000000..577cd9f5 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/__init__.py @@ -0,0 +1,43 @@ +# -------------------------------------------------------------------------------------------- +# 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 .git_repository import GitRepository +from .git_repository_ref import GitRepositoryRef +from .git_version_descriptor import GitVersionDescriptor +from .wiki_attachment import WikiAttachment +from .wiki_attachment_response import WikiAttachmentResponse +from .wiki_create_base_parameters import WikiCreateBaseParameters +from .wiki_create_parameters_v2 import WikiCreateParametersV2 +from .wiki_page import WikiPage +from .wiki_page_create_or_update_parameters import WikiPageCreateOrUpdateParameters +from .wiki_page_move import WikiPageMove +from .wiki_page_move_parameters import WikiPageMoveParameters +from .wiki_page_move_response import WikiPageMoveResponse +from .wiki_page_response import WikiPageResponse +from .wiki_page_view_stats import WikiPageViewStats +from .wiki_update_parameters import WikiUpdateParameters +from .wiki_v2 import WikiV2 + +__all__ = [ + 'GitRepository', + 'GitRepositoryRef', + 'GitVersionDescriptor', + 'WikiAttachment', + 'WikiAttachmentResponse', + 'WikiCreateBaseParameters', + 'WikiCreateParametersV2', + 'WikiPage', + 'WikiPageCreateOrUpdateParameters', + 'WikiPageMove', + 'WikiPageMoveParameters', + 'WikiPageMoveResponse', + 'WikiPageResponse', + 'WikiPageViewStats', + 'WikiUpdateParameters', + 'WikiV2', +] diff --git a/vsts/vsts/wiki/v4_1/models/git_repository.py b/vsts/vsts/wiki/v4_1/models/git_repository.py new file mode 100644 index 00000000..34eacb65 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/git_repository.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: ReferenceLinks + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/wiki/v4_1/models/git_repository_ref.py b/vsts/vsts/wiki/v4_1/models/git_repository_ref.py new file mode 100644 index 00000000..7d099cfb --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/git_repository_ref.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: TeamProjectCollectionReference + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.is_fork = is_fork + self.name = name + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url diff --git a/vsts/vsts/wiki/v4_1/models/git_version_descriptor.py b/vsts/vsts/wiki/v4_1/models/git_version_descriptor.py new file mode 100644 index 00000000..919fc237 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/git_version_descriptor.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitVersionDescriptor(Model): + """GitVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None): + super(GitVersionDescriptor, self).__init__() + self.version = version + self.version_options = version_options + self.version_type = version_type diff --git a/vsts/vsts/wiki/v4_1/models/wiki_attachment.py b/vsts/vsts/wiki/v4_1/models/wiki_attachment.py new file mode 100644 index 00000000..3107c280 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_attachment.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiAttachment(Model): + """WikiAttachment. + + :param name: Name of the wiki attachment file. + :type name: str + :param path: Path of the wiki attachment file. + :type path: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, name=None, path=None): + super(WikiAttachment, self).__init__() + self.name = name + self.path = path diff --git a/vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py b/vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py new file mode 100644 index 00000000..a227df6a --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiAttachmentResponse(Model): + """WikiAttachmentResponse. + + :param attachment: Defines properties for wiki attachment file. + :type attachment: :class:`WikiAttachment ` + :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. + :type eTag: list of str + """ + + _attribute_map = { + 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, attachment=None, eTag=None): + super(WikiAttachmentResponse, self).__init__() + self.attachment = attachment + self.eTag = eTag diff --git a/vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py new file mode 100644 index 00000000..7aa99870 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiCreateBaseParameters(Model): + """WikiCreateBaseParameters. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None): + super(WikiCreateBaseParameters, self).__init__() + self.mapped_path = mapped_path + self.name = name + self.project_id = project_id + self.repository_id = repository_id + self.type = type diff --git a/vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py b/vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py new file mode 100644 index 00000000..776f09e0 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .wiki_create_base_parameters import WikiCreateBaseParameters + + +class WikiCreateParametersV2(WikiCreateBaseParameters): + """WikiCreateParametersV2. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + :param version: Version of the wiki. Not required for ProjectWiki type. + :type version: :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'GitVersionDescriptor'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, version=None): + super(WikiCreateParametersV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) + self.version = version diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page.py b/vsts/vsts/wiki/v4_1/models/wiki_page.py new file mode 100644 index 00000000..ae2d58d9 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_page.py @@ -0,0 +1,56 @@ +# -------------------------------------------------------------------------------------------- +# 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 .wiki_page_create_or_update_parameters import WikiPageCreateOrUpdateParameters + + +class WikiPage(WikiPageCreateOrUpdateParameters): + """WikiPage. + + :param content: Content of the wiki page. + :type content: str + :param git_item_path: Path of the git item corresponding to the wiki page stored in the backing Git repository. + :type git_item_path: str + :param is_non_conformant: True if a page is non-conforming, i.e. 1) if the name doesn't match page naming standards. 2) if the page does not have a valid entry in the appropriate order file. + :type is_non_conformant: bool + :param is_parent_page: True if this page has subpages under its path. + :type is_parent_page: bool + :param order: Order of the wiki page, relative to other pages in the same hierarchy level. + :type order: int + :param path: Path of the wiki page. + :type path: str + :param remote_url: Remote web url to the wiki page. + :type remote_url: str + :param sub_pages: List of subpages of the current page. + :type sub_pages: list of :class:`WikiPage ` + :param url: REST url for this wiki page. + :type url: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, + 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, + 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'sub_pages': {'key': 'subPages', 'type': '[WikiPage]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, content=None, git_item_path=None, is_non_conformant=None, is_parent_page=None, order=None, path=None, remote_url=None, sub_pages=None, url=None): + super(WikiPage, self).__init__(content=content) + self.git_item_path = git_item_path + self.is_non_conformant = is_non_conformant + self.is_parent_page = is_parent_page + self.order = order + self.path = path + self.remote_url = remote_url + self.sub_pages = sub_pages + self.url = url diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py new file mode 100644 index 00000000..25dd0ae7 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiPageCreateOrUpdateParameters(Model): + """WikiPageCreateOrUpdateParameters. + + :param content: Content of the wiki page. + :type content: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'} + } + + def __init__(self, content=None): + super(WikiPageCreateOrUpdateParameters, self).__init__() + self.content = content diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_move.py b/vsts/vsts/wiki/v4_1/models/wiki_page_move.py new file mode 100644 index 00000000..25f98288 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_page_move.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .wiki_page_move_parameters import WikiPageMoveParameters + + +class WikiPageMove(WikiPageMoveParameters): + """WikiPageMove. + + :param new_order: New order of the wiki page. + :type new_order: int + :param new_path: New path of the wiki page. + :type new_path: str + :param path: Current path of the wiki page. + :type path: str + :param page: Resultant page of this page move operation. + :type page: :class:`WikiPage ` + """ + + _attribute_map = { + 'new_order': {'key': 'newOrder', 'type': 'int'}, + 'new_path': {'key': 'newPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'page': {'key': 'page', 'type': 'WikiPage'} + } + + def __init__(self, new_order=None, new_path=None, path=None, page=None): + super(WikiPageMove, self).__init__(new_order=new_order, new_path=new_path, path=path) + self.page = page diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py new file mode 100644 index 00000000..bd705fc4 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiPageMoveParameters(Model): + """WikiPageMoveParameters. + + :param new_order: New order of the wiki page. + :type new_order: int + :param new_path: New path of the wiki page. + :type new_path: str + :param path: Current path of the wiki page. + :type path: str + """ + + _attribute_map = { + 'new_order': {'key': 'newOrder', 'type': 'int'}, + 'new_path': {'key': 'newPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, new_order=None, new_path=None, path=None): + super(WikiPageMoveParameters, self).__init__() + self.new_order = new_order + self.new_path = new_path + self.path = path diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py b/vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py new file mode 100644 index 00000000..fc7e472f --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiPageMoveResponse(Model): + """WikiPageMoveResponse. + + :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. + :type eTag: list of str + :param page_move: Defines properties for wiki page move. + :type page_move: :class:`WikiPageMove ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'page_move': {'key': 'pageMove', 'type': 'WikiPageMove'} + } + + def __init__(self, eTag=None, page_move=None): + super(WikiPageMoveResponse, self).__init__() + self.eTag = eTag + self.page_move = page_move diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_response.py b/vsts/vsts/wiki/v4_1/models/wiki_page_response.py new file mode 100644 index 00000000..73c9fec2 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_page_response.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiPageResponse(Model): + """WikiPageResponse. + + :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. + :type eTag: list of str + :param page: Defines properties for wiki page. + :type page: :class:`WikiPage ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'page': {'key': 'page', 'type': 'WikiPage'} + } + + def __init__(self, eTag=None, page=None): + super(WikiPageResponse, self).__init__() + self.eTag = eTag + self.page = page diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py b/vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py new file mode 100644 index 00000000..c8903b4f --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiPageViewStats(Model): + """WikiPageViewStats. + + :param count: Wiki page view count. + :type count: int + :param last_viewed_time: Wiki page last viewed time. + :type last_viewed_time: datetime + :param path: Wiki page path. + :type path: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'last_viewed_time': {'key': 'lastViewedTime', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, count=None, last_viewed_time=None, path=None): + super(WikiPageViewStats, self).__init__() + self.count = count + self.last_viewed_time = last_viewed_time + self.path = path diff --git a/vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py new file mode 100644 index 00000000..fbd4b5d4 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WikiUpdateParameters(Model): + """WikiUpdateParameters. + + :param versions: Versions of the wiki. + :type versions: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, versions=None): + super(WikiUpdateParameters, self).__init__() + self.versions = versions diff --git a/vsts/vsts/wiki/v4_1/models/wiki_v2.py b/vsts/vsts/wiki/v4_1/models/wiki_v2.py new file mode 100644 index 00000000..8c6c1db9 --- /dev/null +++ b/vsts/vsts/wiki/v4_1/models/wiki_v2.py @@ -0,0 +1,56 @@ +# -------------------------------------------------------------------------------------------- +# 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 .wiki_create_base_parameters import WikiCreateBaseParameters + + +class WikiV2(WikiCreateBaseParameters): + """WikiV2. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + :param id: ID of the wiki. + :type id: str + :param properties: Properties of the wiki. + :type properties: dict + :param remote_url: Remote web url to the wiki. + :type remote_url: str + :param url: REST url for this wiki. + :type url: str + :param versions: Versions of the wiki. + :type versions: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, id=None, properties=None, remote_url=None, url=None, versions=None): + super(WikiV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) + self.id = id + self.properties = properties + self.remote_url = remote_url + self.url = url + self.versions = versions diff --git a/vsts/vsts/wiki/v4_1/wiki_client.py b/vsts/vsts/wiki/v4_1/wiki_client.py new file mode 100644 index 00000000..8c1583bc --- /dev/null +++ b/vsts/vsts/wiki/v4_1/wiki_client.py @@ -0,0 +1,192 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WikiClient(VssClient): + """Wiki + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WikiClient, 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_page_text(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): + """GetPageText. + Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): + """GetPageZip. + Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.Version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def create_wiki(self, wiki_create_params, project=None): + """CreateWiki. + Creates the wiki resource. + :param :class:` ` wiki_create_params: Parameters for the wiki creation. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(wiki_create_params, 'WikiCreateParametersV2') + response = self._send(http_method='POST', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='4.1', + route_values=route_values, + content=content) + return self._deserialize('WikiV2', response) + + def delete_wiki(self, wiki_identifier, project=None): + """DeleteWiki. + Deletes the wiki corresponding to the wiki name or Id provided. + :param str wiki_identifier: Wiki name or Id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + response = self._send(http_method='DELETE', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='4.1', + route_values=route_values) + return self._deserialize('WikiV2', response) + + def get_all_wikis(self, project=None): + """GetAllWikis. + Gets all wikis in a project or collection. + :param str project: Project ID or project name + :rtype: [WikiV2] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='4.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WikiV2]', response) + + def get_wiki(self, wiki_identifier, project=None): + """GetWiki. + Gets the wiki corresponding to the wiki name or Id provided. + :param str wiki_identifier: Wiki name or id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + response = self._send(http_method='GET', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='4.1', + route_values=route_values) + return self._deserialize('WikiV2', response) + + def update_wiki(self, update_parameters, wiki_identifier, project=None): + """UpdateWiki. + Updates the wiki corresponding to the wiki Id or name provided using the update parameters. + :param :class:` ` update_parameters: Update parameters. + :param str wiki_identifier: Wiki name or Id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + content = self._serialize.body(update_parameters, 'WikiUpdateParameters') + response = self._send(http_method='PATCH', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='4.1', + route_values=route_values, + content=content) + return self._deserialize('WikiV2', response) + diff --git a/vsts/vsts/work_item_tracking_process/__init__.py b/vsts/vsts/work_item_tracking_process/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process/v4_0/__init__.py b/vsts/vsts/work_item_tracking_process/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py b/vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py new file mode 100644 index 00000000..7c228e9f --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .control import Control +from .create_process_model import CreateProcessModel +from .extension import Extension +from .field_model import FieldModel +from .field_rule_model import FieldRuleModel +from .form_layout import FormLayout +from .group import Group +from .page import Page +from .process_model import ProcessModel +from .process_properties import ProcessProperties +from .project_reference import ProjectReference +from .rule_action_model import RuleActionModel +from .rule_condition_model import RuleConditionModel +from .section import Section +from .update_process_model import UpdateProcessModel +from .wit_contribution import WitContribution +from .work_item_behavior import WorkItemBehavior +from .work_item_behavior_field import WorkItemBehaviorField +from .work_item_behavior_reference import WorkItemBehaviorReference +from .work_item_state_result_model import WorkItemStateResultModel +from .work_item_type_behavior import WorkItemTypeBehavior +from .work_item_type_model import WorkItemTypeModel + +__all__ = [ + 'Control', + 'CreateProcessModel', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'Page', + 'ProcessModel', + 'ProcessProperties', + 'ProjectReference', + 'RuleActionModel', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', +] diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/control.py b/vsts/vsts/work_item_tracking_process/v4_0/models/control.py new file mode 100644 index 00000000..ee7eb2a4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/control.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py new file mode 100644 index 00000000..d3b132eb --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CreateProcessModel(Model): + """CreateProcessModel. + + :param description: + :type description: str + :param name: + :type name: str + :param parent_process_type_id: + :type parent_process_type_id: str + :param reference_name: + :type reference_name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): + super(CreateProcessModel, self).__init__() + self.description = description + self.name = name + self.parent_process_type_id = parent_process_type_id + self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/extension.py b/vsts/vsts/work_item_tracking_process/v4_0/models/extension.py new file mode 100644 index 00000000..7bab24e6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/extension.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py new file mode 100644 index 00000000..c744fe2f --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py @@ -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.serialization import Model + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param is_identity: + :type is_identity: bool + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.is_identity = is_identity + self.name = name + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py new file mode 100644 index 00000000..d368bb61 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py @@ -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.serialization import Model + + +class FieldRuleModel(Model): + """FieldRuleModel. + + :param actions: + :type actions: list of :class:`RuleActionModel ` + :param conditions: + :type conditions: list of :class:`RuleConditionModel ` + :param friendly_name: + :type friendly_name: str + :param id: + :type id: str + :param is_disabled: + :type is_disabled: bool + :param is_system: + :type is_system: bool + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_system': {'key': 'isSystem', 'type': 'bool'} + } + + def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): + super(FieldRuleModel, self).__init__() + self.actions = actions + self.conditions = conditions + self.friendly_name = friendly_name + self.id = id + self.is_disabled = is_disabled + self.is_system = is_system diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py b/vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py new file mode 100644 index 00000000..755e5cde --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/group.py b/vsts/vsts/work_item_tracking_process/v4_0/models/group.py new file mode 100644 index 00000000..72b75d16 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/page.py b/vsts/vsts/work_item_tracking_process/v4_0/models/page.py new file mode 100644 index 00000000..0939a8a4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/page.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py new file mode 100644 index 00000000..07cee5ea --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py @@ -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.serialization import Model + + +class ProcessModel(Model): + """ProcessModel. + + :param description: + :type description: str + :param name: + :type name: str + :param projects: + :type projects: list of :class:`ProjectReference ` + :param properties: + :type properties: :class:`ProcessProperties ` + :param reference_name: + :type reference_name: str + :param type_id: + :type type_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): + super(ProcessModel, self).__init__() + self.description = description + self.name = name + self.projects = projects + self.properties = properties + self.reference_name = reference_name + self.type_id = type_id diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py b/vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py new file mode 100644 index 00000000..deb736dc --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProcessProperties(Model): + """ProcessProperties. + + :param class_: + :type class_: object + :param is_default: + :type is_default: bool + :param is_enabled: + :type is_enabled: bool + :param parent_process_type_id: + :type parent_process_type_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'object'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): + super(ProcessProperties, self).__init__() + self.class_ = class_ + self.is_default = is_default + self.is_enabled = is_enabled + self.parent_process_type_id = parent_process_type_id + self.version = version diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py b/vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py new file mode 100644 index 00000000..11749e0a --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param description: + :type description: str + :param id: + :type id: str + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, url=None): + super(ProjectReference, self).__init__() + self.description = description + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py new file mode 100644 index 00000000..7096b198 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RuleActionModel(Model): + """RuleActionModel. + + :param action_type: + :type action_type: str + :param target_field: + :type target_field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleActionModel, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py new file mode 100644 index 00000000..6006a69b --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RuleConditionModel(Model): + """RuleConditionModel. + + :param condition_type: + :type condition_type: str + :param field: + :type field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleConditionModel, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/section.py b/vsts/vsts/work_item_tracking_process/v4_0/models/section.py new file mode 100644 index 00000000..28a1c008 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/section.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py new file mode 100644 index 00000000..74650ef8 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdateProcessModel(Model): + """UpdateProcessModel. + + :param description: + :type description: str + :param is_default: + :type is_default: bool + :param is_enabled: + :type is_enabled: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, is_default=None, is_enabled=None, name=None): + super(UpdateProcessModel, self).__init__() + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py new file mode 100644 index 00000000..ca76fd0a --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py new file mode 100644 index 00000000..c0dae1f4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehavior(Model): + """WorkItemBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param description: + :type description: str + :param fields: + :type fields: list of :class:`WorkItemBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): + super(WorkItemBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py new file mode 100644 index 00000000..4e7804fe --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehaviorField(Model): + """WorkItemBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, url=None): + super(WorkItemBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py new file mode 100644 index 00000000..7c35db76 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py new file mode 100644 index 00000000..8021cf25 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py new file mode 100644 index 00000000..1dd481a0 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py new file mode 100644 index 00000000..7146e6c4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py b/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py new file mode 100644 index 00000000..967f0eaa --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py @@ -0,0 +1,374 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkItemTrackingClient(VssClient): + """WorkItemTracking + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingClient, 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_behavior(self, process_id, behavior_ref_name, expand=None): + """GetBehavior. + [Preview API] + :param str process_id: + :param str behavior_ref_name: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemBehavior', response) + + def get_behaviors(self, process_id, expand=None): + """GetBehaviors. + [Preview API] + :param str process_id: + :param str expand: + :rtype: [WorkItemBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemBehavior]', response) + + def get_fields(self, process_id): + """GetFields. + [Preview API] + :param str process_id: + :rtype: [FieldModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='7a0e7a1a-0b34-4ae0-9744-0aaffb7d0ed1', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[FieldModel]', response) + + def get_work_item_type_fields(self, process_id, wit_ref_name): + """GetWorkItemTypeFields. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :rtype: [FieldModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[FieldModel]', response) + + def create_process(self, create_request): + """CreateProcess. + [Preview API] + :param :class:` ` create_request: + :rtype: :class:` ` + """ + content = self._serialize.body(create_request, 'CreateProcessModel') + response = self._send(http_method='POST', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.0-preview.1', + content=content) + return self._deserialize('ProcessModel', response) + + def delete_process(self, process_type_id): + """DeleteProcess. + [Preview API] + :param str process_type_id: + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + self._send(http_method='DELETE', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.0-preview.1', + route_values=route_values) + + def get_process_by_id(self, process_type_id, expand=None): + """GetProcessById. + [Preview API] + :param str process_type_id: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessModel', response) + + def get_processes(self, expand=None): + """GetProcesses. + [Preview API] + :param str expand: + :rtype: [ProcessModel] + """ + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ProcessModel]', response) + + def update_process(self, update_request, process_type_id): + """UpdateProcess. + [Preview API] + :param :class:` ` update_request: + :param str process_type_id: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + content = self._serialize.body(update_request, 'UpdateProcessModel') + response = self._send(http_method='PATCH', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ProcessModel', response) + + def add_work_item_type_rule(self, field_rule, process_id, wit_ref_name): + """AddWorkItemTypeRule. + [Preview API] + :param :class:` ` field_rule: + :param str process_id: + :param str wit_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(field_rule, 'FieldRuleModel') + response = self._send(http_method='POST', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldRuleModel', response) + + def delete_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """DeleteWorkItemTypeRule. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str rule_id: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + self._send(http_method='DELETE', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.0-preview.1', + route_values=route_values) + + def get_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """GetWorkItemTypeRule. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str rule_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('FieldRuleModel', response) + + def get_work_item_type_rules(self, process_id, wit_ref_name): + """GetWorkItemTypeRules. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :rtype: [FieldRuleModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[FieldRuleModel]', response) + + def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): + """UpdateWorkItemTypeRule. + [Preview API] + :param :class:` ` field_rule: + :param str process_id: + :param str wit_ref_name: + :param str rule_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + content = self._serialize.body(field_rule, 'FieldRuleModel') + response = self._send(http_method='PUT', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldRuleModel', response) + + def get_state_definition(self, process_id, wit_ref_name, state_id): + """GetStateDefinition. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str state_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + response = self._send(http_method='GET', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemStateResultModel', response) + + def get_state_definitions(self, process_id, wit_ref_name): + """GetStateDefinitions. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :rtype: [WorkItemStateResultModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemStateResultModel]', response) + + def get_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetWorkItemType. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeModel', response) + + def get_work_item_types(self, process_id, expand=None): + """GetWorkItemTypes. + [Preview API] + :param str process_id: + :param str expand: + :rtype: [WorkItemTypeModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemTypeModel]', response) + diff --git a/vsts/vsts/work_item_tracking_process/v4_1/__init__.py b/vsts/vsts/work_item_tracking_process/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py new file mode 100644 index 00000000..7c228e9f --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .control import Control +from .create_process_model import CreateProcessModel +from .extension import Extension +from .field_model import FieldModel +from .field_rule_model import FieldRuleModel +from .form_layout import FormLayout +from .group import Group +from .page import Page +from .process_model import ProcessModel +from .process_properties import ProcessProperties +from .project_reference import ProjectReference +from .rule_action_model import RuleActionModel +from .rule_condition_model import RuleConditionModel +from .section import Section +from .update_process_model import UpdateProcessModel +from .wit_contribution import WitContribution +from .work_item_behavior import WorkItemBehavior +from .work_item_behavior_field import WorkItemBehaviorField +from .work_item_behavior_reference import WorkItemBehaviorReference +from .work_item_state_result_model import WorkItemStateResultModel +from .work_item_type_behavior import WorkItemTypeBehavior +from .work_item_type_model import WorkItemTypeModel + +__all__ = [ + 'Control', + 'CreateProcessModel', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'Page', + 'ProcessModel', + 'ProcessProperties', + 'ProjectReference', + 'RuleActionModel', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', +] diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/control.py b/vsts/vsts/work_item_tracking_process/v4_1/models/control.py new file mode 100644 index 00000000..491ca1ad --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/control.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py new file mode 100644 index 00000000..4c2424c5 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CreateProcessModel(Model): + """CreateProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param parent_process_type_id: The ID of the parent process + :type parent_process_type_id: str + :param reference_name: Reference name of the process + :type reference_name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): + super(CreateProcessModel, self).__init__() + self.description = description + self.name = name + self.parent_process_type_id = parent_process_type_id + self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/extension.py b/vsts/vsts/work_item_tracking_process/v4_1/models/extension.py new file mode 100644 index 00000000..7bab24e6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/extension.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py new file mode 100644 index 00000000..c744fe2f --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py @@ -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.serialization import Model + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param is_identity: + :type is_identity: bool + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.is_identity = is_identity + self.name = name + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py new file mode 100644 index 00000000..c3e7e366 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py @@ -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.serialization import Model + + +class FieldRuleModel(Model): + """FieldRuleModel. + + :param actions: + :type actions: list of :class:`RuleActionModel ` + :param conditions: + :type conditions: list of :class:`RuleConditionModel ` + :param friendly_name: + :type friendly_name: str + :param id: + :type id: str + :param is_disabled: + :type is_disabled: bool + :param is_system: + :type is_system: bool + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_system': {'key': 'isSystem', 'type': 'bool'} + } + + def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): + super(FieldRuleModel, self).__init__() + self.actions = actions + self.conditions = conditions + self.friendly_name = friendly_name + self.id = id + self.is_disabled = is_disabled + self.is_system = is_system diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py b/vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py new file mode 100644 index 00000000..14c97ff8 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/group.py b/vsts/vsts/work_item_tracking_process/v4_1/models/group.py new file mode 100644 index 00000000..5cb7fbdd --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/page.py b/vsts/vsts/work_item_tracking_process/v4_1/models/page.py new file mode 100644 index 00000000..010972ca --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/page.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py new file mode 100644 index 00000000..477269c6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py @@ -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.serialization import Model + + +class ProcessModel(Model): + """ProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param projects: Projects in this process + :type projects: list of :class:`ProjectReference ` + :param properties: Properties of the process + :type properties: :class:`ProcessProperties ` + :param reference_name: Reference name of the process + :type reference_name: str + :param type_id: The ID of the process + :type type_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): + super(ProcessModel, self).__init__() + self.description = description + self.name = name + self.projects = projects + self.properties = properties + self.reference_name = reference_name + self.type_id = type_id diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py b/vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py new file mode 100644 index 00000000..d7831766 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProcessProperties(Model): + """ProcessProperties. + + :param class_: Class of the process + :type class_: object + :param is_default: Is the process default process + :type is_default: bool + :param is_enabled: Is the process enabled + :type is_enabled: bool + :param parent_process_type_id: ID of the parent process + :type parent_process_type_id: str + :param version: Version of the process + :type version: str + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'object'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): + super(ProcessProperties, self).__init__() + self.class_ = class_ + self.is_default = is_default + self.is_enabled = is_enabled + self.parent_process_type_id = parent_process_type_id + self.version = version diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py b/vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py new file mode 100644 index 00000000..a0956259 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectReference(Model): + """ProjectReference. + + :param description: Description of the project + :type description: str + :param id: The ID of the project + :type id: str + :param name: Name of the project + :type name: str + :param url: Url of the project + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, url=None): + super(ProjectReference, self).__init__() + self.description = description + self.id = id + self.name = name + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py new file mode 100644 index 00000000..7096b198 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RuleActionModel(Model): + """RuleActionModel. + + :param action_type: + :type action_type: str + :param target_field: + :type target_field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleActionModel, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py new file mode 100644 index 00000000..6006a69b --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class RuleConditionModel(Model): + """RuleConditionModel. + + :param condition_type: + :type condition_type: str + :param field: + :type field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleConditionModel, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/section.py b/vsts/vsts/work_item_tracking_process/v4_1/models/section.py new file mode 100644 index 00000000..42424062 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/section.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py new file mode 100644 index 00000000..74650ef8 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdateProcessModel(Model): + """UpdateProcessModel. + + :param description: + :type description: str + :param is_default: + :type is_default: bool + :param is_enabled: + :type is_enabled: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, is_default=None, is_enabled=None, name=None): + super(UpdateProcessModel, self).__init__() + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py new file mode 100644 index 00000000..ca76fd0a --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py new file mode 100644 index 00000000..d38833f6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehavior(Model): + """WorkItemBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param description: + :type description: str + :param fields: + :type fields: list of :class:`WorkItemBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): + super(WorkItemBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py new file mode 100644 index 00000000..4e7804fe --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehaviorField(Model): + """WorkItemBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, url=None): + super(WorkItemBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py new file mode 100644 index 00000000..7c35db76 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py new file mode 100644 index 00000000..8021cf25 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py new file mode 100644 index 00000000..769c34bc --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py new file mode 100644 index 00000000..d70f8632 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py b/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py new file mode 100644 index 00000000..1983879f --- /dev/null +++ b/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py @@ -0,0 +1,374 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkItemTrackingClient(VssClient): + """WorkItemTracking + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingClient, 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_behavior(self, process_id, behavior_ref_name, expand=None): + """GetBehavior. + [Preview API] Returns a behavior of the process. + :param str process_id: The ID of the process + :param str behavior_ref_name: Reference name of the behavior + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemBehavior', response) + + def get_behaviors(self, process_id, expand=None): + """GetBehaviors. + [Preview API] Returns a list of all behaviors in the process. + :param str process_id: The ID of the process + :param str expand: + :rtype: [WorkItemBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemBehavior]', response) + + def get_fields(self, process_id): + """GetFields. + [Preview API] Returns a list of all fields in a process. + :param str process_id: The ID of the process + :rtype: [FieldModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='7a0e7a1a-0b34-4ae0-9744-0aaffb7d0ed1', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[FieldModel]', response) + + def get_work_item_type_fields(self, process_id, wit_ref_name): + """GetWorkItemTypeFields. + [Preview API] Returns a list of all fields in a work item type. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [FieldModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[FieldModel]', response) + + def create_process(self, create_request): + """CreateProcess. + [Preview API] Creates a process. + :param :class:` ` create_request: + :rtype: :class:` ` + """ + content = self._serialize.body(create_request, 'CreateProcessModel') + response = self._send(http_method='POST', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.1-preview.1', + content=content) + return self._deserialize('ProcessModel', response) + + def delete_process(self, process_type_id): + """DeleteProcess. + [Preview API] Removes a process of a specific ID. + :param str process_type_id: + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + self._send(http_method='DELETE', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.1-preview.1', + route_values=route_values) + + def get_process_by_id(self, process_type_id, expand=None): + """GetProcessById. + [Preview API] Returns a single process of a specified ID. + :param str process_type_id: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessModel', response) + + def get_processes(self, expand=None): + """GetProcesses. + [Preview API] Returns a list of all processes. + :param str expand: + :rtype: [ProcessModel] + """ + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[ProcessModel]', response) + + def update_process(self, update_request, process_type_id): + """UpdateProcess. + [Preview API] Updates a process of a specific ID. + :param :class:` ` update_request: + :param str process_type_id: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + content = self._serialize.body(update_request, 'UpdateProcessModel') + response = self._send(http_method='PATCH', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ProcessModel', response) + + def add_work_item_type_rule(self, field_rule, process_id, wit_ref_name): + """AddWorkItemTypeRule. + [Preview API] Adds a rule to work item type in the process. + :param :class:` ` field_rule: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(field_rule, 'FieldRuleModel') + response = self._send(http_method='POST', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldRuleModel', response) + + def delete_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """DeleteWorkItemTypeRule. + [Preview API] Removes a rule from the work item type in the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + self._send(http_method='DELETE', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.1-preview.1', + route_values=route_values) + + def get_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """GetWorkItemTypeRule. + [Preview API] Returns a single rule in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('FieldRuleModel', response) + + def get_work_item_type_rules(self, process_id, wit_ref_name): + """GetWorkItemTypeRules. + [Preview API] Returns a list of all rules in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [FieldRuleModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[FieldRuleModel]', response) + + def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): + """UpdateWorkItemTypeRule. + [Preview API] Updates a rule in the work item type of the process. + :param :class:` ` field_rule: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + content = self._serialize.body(field_rule, 'FieldRuleModel') + response = self._send(http_method='PUT', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldRuleModel', response) + + def get_state_definition(self, process_id, wit_ref_name, state_id): + """GetStateDefinition. + [Preview API] Returns a single state definition in a work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + response = self._send(http_method='GET', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemStateResultModel', response) + + def get_state_definitions(self, process_id, wit_ref_name): + """GetStateDefinitions. + [Preview API] Returns a list of all state definitions in a work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [WorkItemStateResultModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemStateResultModel]', response) + + def get_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetWorkItemType. + [Preview API] Returns a single work item type in a process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeModel', response) + + def get_work_item_types(self, process_id, expand=None): + """GetWorkItemTypes. + [Preview API] Returns a list of all work item types in a process. + :param str process_id: The ID of the process + :param str expand: + :rtype: [WorkItemTypeModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemTypeModel]', response) + diff --git a/vsts/vsts/work_item_tracking_process_definitions/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py new file mode 100644 index 00000000..a15d4f6e --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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 .behavior_create_model import BehaviorCreateModel +from .behavior_model import BehaviorModel +from .behavior_replace_model import BehaviorReplaceModel +from .control import Control +from .extension import Extension +from .field_model import FieldModel +from .field_update import FieldUpdate +from .form_layout import FormLayout +from .group import Group +from .hide_state_model import HideStateModel +from .page import Page +from .pick_list_item_model import PickListItemModel +from .pick_list_metadata_model import PickListMetadataModel +from .pick_list_model import PickListModel +from .section import Section +from .wit_contribution import WitContribution +from .work_item_behavior_reference import WorkItemBehaviorReference +from .work_item_state_input_model import WorkItemStateInputModel +from .work_item_state_result_model import WorkItemStateResultModel +from .work_item_type_behavior import WorkItemTypeBehavior +from .work_item_type_field_model import WorkItemTypeFieldModel +from .work_item_type_model import WorkItemTypeModel +from .work_item_type_update_model import WorkItemTypeUpdateModel + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py new file mode 100644 index 00000000..03bd7bd1 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorCreateModel(Model): + """BehaviorCreateModel. + + :param color: Color + :type color: str + :param inherits: Parent behavior id + :type inherits: str + :param name: Name of the behavior + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, inherits=None, name=None): + super(BehaviorCreateModel, self).__init__() + self.color = color + self.inherits = inherits + self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py new file mode 100644 index 00000000..b6649a46 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorModel(Model): + """BehaviorModel. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) + :type abstract: bool + :param color: Color + :type color: str + :param description: Description + :type description: str + :param id: Behavior Id + :type id: str + :param inherits: Parent behavior reference + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: Behavior Name + :type name: str + :param overridden: Is the behavior overrides a behavior from system process + :type overridden: bool + :param rank: Rank + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): + super(BehaviorModel, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.id = id + self.inherits = inherits + self.name = name + self.overridden = overridden + self.rank = rank + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py new file mode 100644 index 00000000..2f788288 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorReplaceModel(Model): + """BehaviorReplaceModel. + + :param color: Color + :type color: str + :param name: Behavior Name + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(BehaviorReplaceModel, self).__init__() + self.color = color + self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py new file mode 100644 index 00000000..ee7eb2a4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py new file mode 100644 index 00000000..7bab24e6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py new file mode 100644 index 00000000..19410826 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py @@ -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.serialization import Model + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.name = name + self.pick_list = pick_list + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py new file mode 100644 index 00000000..fee524e6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FieldUpdate(Model): + """FieldUpdate. + + :param description: + :type description: str + :param id: + :type id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, description=None, id=None): + super(FieldUpdate, self).__init__() + self.description = description + self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py new file mode 100644 index 00000000..755e5cde --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py new file mode 100644 index 00000000..72b75d16 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py new file mode 100644 index 00000000..46dfa638 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py new file mode 100644 index 00000000..0939a8a4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py new file mode 100644 index 00000000..3d2384ac --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PickListItemModel(Model): + """PickListItemModel. + + :param id: + :type id: str + :param value: + :type value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, id=None, value=None): + super(PickListItemModel, self).__init__() + self.id = id + self.value = value diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py new file mode 100644 index 00000000..aa47088c --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PickListMetadataModel(Model): + """PickListMetadataModel. + + :param id: + :type id: str + :param is_suggested: + :type is_suggested: bool + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadataModel, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py new file mode 100644 index 00000000..ddf10446 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .pick_list_metadata_model import PickListMetadataModel + + +class PickListModel(PickListMetadataModel): + """PickListModel. + + :param id: + :type id: str + :param is_suggested: + :type is_suggested: bool + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + :param items: + :type items: list of :class:`PickListItemModel ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[PickListItemModel]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py new file mode 100644 index 00000000..28a1c008 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py new file mode 100644 index 00000000..ca76fd0a --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py new file mode 100644 index 00000000..7c35db76 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py new file mode 100644 index 00000000..6a92e6b2 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: + :type color: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py new file mode 100644 index 00000000..8021cf25 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py new file mode 100644 index 00000000..1dd481a0 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py new file mode 100644 index 00000000..c2da1b17 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeFieldModel(Model): + """WorkItemTypeFieldModel. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py new file mode 100644 index 00000000..7146e6c4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py new file mode 100644 index 00000000..6b8be2f4 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeUpdateModel(Model): + """WorkItemTypeUpdateModel. + + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param is_disabled: + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(WorkItemTypeUpdateModel, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py new file mode 100644 index 00000000..b7903655 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py @@ -0,0 +1,969 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkItemTrackingClient(VssClient): + """WorkItemTracking + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingClient, 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 create_behavior(self, behavior, process_id): + """CreateBehavior. + [Preview API] + :param :class:` ` behavior: + :param str process_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(behavior, 'BehaviorCreateModel') + response = self._send(http_method='POST', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def delete_behavior(self, process_id, behavior_id): + """DeleteBehavior. + [Preview API] + :param str process_id: + :param str behavior_id: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + self._send(http_method='DELETE', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.0-preview.1', + route_values=route_values) + + def get_behavior(self, process_id, behavior_id): + """GetBehavior. + [Preview API] + :param str process_id: + :param str behavior_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('BehaviorModel', response) + + def get_behaviors(self, process_id): + """GetBehaviors. + [Preview API] + :param str process_id: + :rtype: [BehaviorModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BehaviorModel]', response) + + def replace_behavior(self, behavior_data, process_id, behavior_id): + """ReplaceBehavior. + [Preview API] + :param :class:` ` behavior_data: + :param str process_id: + :param str behavior_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') + response = self._send(http_method='PUT', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def add_control_to_group(self, control, process_id, wit_ref_name, group_id): + """AddControlToGroup. + [Preview API] Creates a control, giving it an id, and adds it to the group. So far, the only controls that don't know how to generate their own ids are control extensions. + :param :class:` ` control: + :param str process_id: + :param str wit_ref_name: + :param str group_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='POST', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): + """EditControl. + [Preview API] + :param :class:` ` control: + :param str process_id: + :param str wit_ref_name: + :param str group_id: + :param str control_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PATCH', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): + """RemoveControlFromGroup. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str group_id: + :param str control_id: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + self._send(http_method='DELETE', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.0-preview.1', + route_values=route_values) + + def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): + """SetControlInGroup. + [Preview API] Puts a control withan id into a group. Controls backed by fields can generate their own id. + :param :class:` ` control: + :param str process_id: + :param str wit_ref_name: + :param str group_id: + :param str control_id: + :param str remove_from_group_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + query_parameters = {} + if remove_from_group_id is not None: + query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PUT', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Control', response) + + def create_field(self, field, process_id): + """CreateField. + [Preview API] + :param :class:` ` field: + :param str process_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldModel') + response = self._send(http_method='POST', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def update_field(self, field, process_id): + """UpdateField. + [Preview API] + :param :class:` ` field: + :param str process_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldUpdate') + response = self._send(http_method='PATCH', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def add_group(self, group, process_id, wit_ref_name, page_id, section_id): + """AddGroup. + [Preview API] + :param :class:` ` group: + :param str process_id: + :param str wit_ref_name: + :param str page_id: + :param str section_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='POST', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): + """EditGroup. + [Preview API] + :param :class:` ` group: + :param str process_id: + :param str wit_ref_name: + :param str page_id: + :param str section_id: + :param str group_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PATCH', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): + """RemoveGroup. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str page_id: + :param str section_id: + :param str group_id: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + self._send(http_method='DELETE', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.0-preview.1', + route_values=route_values) + + def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): + """SetGroupInPage. + [Preview API] + :param :class:` ` group: + :param str process_id: + :param str wit_ref_name: + :param str page_id: + :param str section_id: + :param str group_id: + :param str remove_from_page_id: + :param str remove_from_section_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_page_id is not None: + query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): + """SetGroupInSection. + [Preview API] + :param :class:` ` group: + :param str process_id: + :param str wit_ref_name: + :param str page_id: + :param str section_id: + :param str group_id: + :param str remove_from_section_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def get_form_layout(self, process_id, wit_ref_name): + """GetFormLayout. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='3eacc80a-ddca-4404-857a-6331aac99063', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('FormLayout', response) + + def get_lists_metadata(self): + """GetListsMetadata. + [Preview API] + :rtype: [PickListMetadataModel] + """ + response = self._send(http_method='GET', + location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', + version='4.0-preview.1', + returns_collection=True) + return self._deserialize('[PickListMetadataModel]', response) + + def create_list(self, picklist): + """CreateList. + [Preview API] + :param :class:` ` picklist: + :rtype: :class:` ` + """ + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='POST', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.0-preview.1', + content=content) + return self._deserialize('PickListModel', response) + + def delete_list(self, list_id): + """DeleteList. + [Preview API] + :param str list_id: + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + self._send(http_method='DELETE', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.0-preview.1', + route_values=route_values) + + def get_list(self, list_id): + """GetList. + [Preview API] + :param str list_id: + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + response = self._send(http_method='GET', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('PickListModel', response) + + def update_list(self, picklist, list_id): + """UpdateList. + [Preview API] + :param :class:` ` picklist: + :param str list_id: + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='PUT', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('PickListModel', response) + + def add_page(self, page, process_id, wit_ref_name): + """AddPage. + [Preview API] + :param :class:` ` page: + :param str process_id: + :param str wit_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='POST', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def edit_page(self, page, process_id, wit_ref_name): + """EditPage. + [Preview API] + :param :class:` ` page: + :param str process_id: + :param str wit_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='PATCH', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def remove_page(self, process_id, wit_ref_name, page_id): + """RemovePage. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str page_id: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + self._send(http_method='DELETE', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='4.0-preview.1', + route_values=route_values) + + def create_state_definition(self, state_model, process_id, wit_ref_name): + """CreateStateDefinition. + [Preview API] + :param :class:` ` state_model: + :param str process_id: + :param str wit_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='POST', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def delete_state_definition(self, process_id, wit_ref_name, state_id): + """DeleteStateDefinition. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str state_id: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + self._send(http_method='DELETE', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.0-preview.1', + route_values=route_values) + + def get_state_definition(self, process_id, wit_ref_name, state_id): + """GetStateDefinition. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str state_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemStateResultModel', response) + + def get_state_definitions(self, process_id, wit_ref_name): + """GetStateDefinitions. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :rtype: [WorkItemStateResultModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemStateResultModel]', response) + + def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): + """HideStateDefinition. + [Preview API] + :param :class:` ` hide_state_model: + :param str process_id: + :param str wit_ref_name: + :param str state_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(hide_state_model, 'HideStateModel') + response = self._send(http_method='PUT', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): + """UpdateStateDefinition. + [Preview API] + :param :class:` ` state_model: + :param str process_id: + :param str wit_ref_name: + :param str state_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='PATCH', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """AddBehaviorToWorkItemType. + [Preview API] + :param :class:` ` behavior: + :param str process_id: + :param str wit_ref_name_for_behaviors: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='POST', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """GetBehaviorForWorkItemType. + [Preview API] + :param str process_id: + :param str wit_ref_name_for_behaviors: + :param str behavior_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): + """GetBehaviorsForWorkItemType. + [Preview API] + :param str process_id: + :param str wit_ref_name_for_behaviors: + :rtype: [WorkItemTypeBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemTypeBehavior]', response) + + def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """RemoveBehaviorFromWorkItemType. + [Preview API] + :param str process_id: + :param str wit_ref_name_for_behaviors: + :param str behavior_ref_name: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + self._send(http_method='DELETE', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.0-preview.1', + route_values=route_values) + + def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """UpdateBehaviorToWorkItemType. + [Preview API] + :param :class:` ` behavior: + :param str process_id: + :param str wit_ref_name_for_behaviors: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='PATCH', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def create_work_item_type(self, work_item_type, process_id): + """CreateWorkItemType. + [Preview API] + :param :class:` ` work_item_type: + :param str process_id: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(work_item_type, 'WorkItemTypeModel') + response = self._send(http_method='POST', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def delete_work_item_type(self, process_id, wit_ref_name): + """DeleteWorkItemType. + [Preview API] + :param str process_id: + :param str wit_ref_name: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + self._send(http_method='DELETE', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.0-preview.1', + route_values=route_values) + + def get_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetWorkItemType. + [Preview API] + :param str process_id: + :param str wit_ref_name: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeModel', response) + + def get_work_item_types(self, process_id, expand=None): + """GetWorkItemTypes. + [Preview API] + :param str process_id: + :param str expand: + :rtype: [WorkItemTypeModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemTypeModel]', response) + + def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): + """UpdateWorkItemType. + [Preview API] + :param :class:` ` work_item_type_update: + :param str process_id: + :param str wit_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') + response = self._send(http_method='PATCH', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): + """AddFieldToWorkItemType. + [Preview API] + :param :class:` ` field: + :param str process_id: + :param str wit_ref_name_for_fields: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + content = self._serialize.body(field, 'WorkItemTypeFieldModel') + response = self._send(http_method='POST', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeFieldModel', response) + + def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): + """GetWorkItemTypeField. + [Preview API] + :param str process_id: + :param str wit_ref_name_for_fields: + :param str field_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeFieldModel', response) + + def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): + """GetWorkItemTypeFields. + [Preview API] + :param str process_id: + :param str wit_ref_name_for_fields: + :rtype: [WorkItemTypeFieldModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemTypeFieldModel]', response) + + def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): + """RemoveFieldFromWorkItemType. + [Preview API] + :param str process_id: + :param str wit_ref_name_for_fields: + :param str field_ref_name: + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + self._send(http_method='DELETE', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.0-preview.1', + route_values=route_values) + diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py new file mode 100644 index 00000000..a15d4f6e --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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 .behavior_create_model import BehaviorCreateModel +from .behavior_model import BehaviorModel +from .behavior_replace_model import BehaviorReplaceModel +from .control import Control +from .extension import Extension +from .field_model import FieldModel +from .field_update import FieldUpdate +from .form_layout import FormLayout +from .group import Group +from .hide_state_model import HideStateModel +from .page import Page +from .pick_list_item_model import PickListItemModel +from .pick_list_metadata_model import PickListMetadataModel +from .pick_list_model import PickListModel +from .section import Section +from .wit_contribution import WitContribution +from .work_item_behavior_reference import WorkItemBehaviorReference +from .work_item_state_input_model import WorkItemStateInputModel +from .work_item_state_result_model import WorkItemStateResultModel +from .work_item_type_behavior import WorkItemTypeBehavior +from .work_item_type_field_model import WorkItemTypeFieldModel +from .work_item_type_model import WorkItemTypeModel +from .work_item_type_update_model import WorkItemTypeUpdateModel + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py new file mode 100644 index 00000000..03bd7bd1 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorCreateModel(Model): + """BehaviorCreateModel. + + :param color: Color + :type color: str + :param inherits: Parent behavior id + :type inherits: str + :param name: Name of the behavior + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, inherits=None, name=None): + super(BehaviorCreateModel, self).__init__() + self.color = color + self.inherits = inherits + self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py new file mode 100644 index 00000000..6221f0b5 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorModel(Model): + """BehaviorModel. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) + :type abstract: bool + :param color: Color + :type color: str + :param description: Description + :type description: str + :param id: Behavior Id + :type id: str + :param inherits: Parent behavior reference + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: Behavior Name + :type name: str + :param overridden: Is the behavior overrides a behavior from system process + :type overridden: bool + :param rank: Rank + :type rank: int + :param url: Url of the behavior + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): + super(BehaviorModel, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.id = id + self.inherits = inherits + self.name = name + self.overridden = overridden + self.rank = rank + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py new file mode 100644 index 00000000..2f788288 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorReplaceModel(Model): + """BehaviorReplaceModel. + + :param color: Color + :type color: str + :param name: Behavior Name + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(BehaviorReplaceModel, self).__init__() + self.color = color + self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py new file mode 100644 index 00000000..491ca1ad --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py new file mode 100644 index 00000000..7bab24e6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py new file mode 100644 index 00000000..20fc4505 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py @@ -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.serialization import Model + + +class FieldModel(Model): + """FieldModel. + + :param description: Description about field + :type description: str + :param id: ID of the field + :type id: str + :param name: Name of the field + :type name: str + :param pick_list: Reference to picklist in this field + :type pick_list: :class:`PickListMetadataModel ` + :param type: Type of field + :type type: object + :param url: Url to the field + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.name = name + self.pick_list = pick_list + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py new file mode 100644 index 00000000..fee524e6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FieldUpdate(Model): + """FieldUpdate. + + :param description: + :type description: str + :param id: + :type id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, description=None, id=None): + super(FieldUpdate, self).__init__() + self.description = description + self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py new file mode 100644 index 00000000..14c97ff8 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py new file mode 100644 index 00000000..5cb7fbdd --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py new file mode 100644 index 00000000..46dfa638 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py new file mode 100644 index 00000000..010972ca --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py new file mode 100644 index 00000000..3d2384ac --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PickListItemModel(Model): + """PickListItemModel. + + :param id: + :type id: str + :param value: + :type value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, id=None, value=None): + super(PickListItemModel, self).__init__() + self.id = id + self.value = value diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py new file mode 100644 index 00000000..9d7a3df7 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class PickListMetadataModel(Model): + """PickListMetadataModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadataModel, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py new file mode 100644 index 00000000..6bdccb78 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .pick_list_metadata_model import PickListMetadataModel + + +class PickListModel(PickListMetadataModel): + """PickListModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + :param items: A list of PicklistItemModel + :type items: list of :class:`PickListItemModel ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[PickListItemModel]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py new file mode 100644 index 00000000..42424062 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py new file mode 100644 index 00000000..ca76fd0a --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py new file mode 100644 index 00000000..1425c7ac --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: The ID of the reference behavior + :type id: str + :param url: The url of the reference behavior + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py new file mode 100644 index 00000000..a6d0b07a --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: Color of the state + :type color: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py new file mode 100644 index 00000000..9d4adb9e --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: Color of the state + :type color: str + :param hidden: Is the state hidden + :type hidden: bool + :param id: The ID of the State + :type id: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + :param url: Url of the state + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py new file mode 100644 index 00000000..769c34bc --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py new file mode 100644 index 00000000..3f9aa388 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py @@ -0,0 +1,57 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeFieldModel(Model): + """WorkItemTypeFieldModel. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py new file mode 100644 index 00000000..c7c7fa17 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: Behaviors of the work item type + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: Class of the work item type + :type class_: object + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param id: The ID of the work item type + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: Is work item type disabled + :type is_disabled: bool + :param layout: Layout of the work item type + :type layout: :class:`FormLayout ` + :param name: Name of the work item type + :type name: str + :param states: States of the work item type + :type states: list of :class:`WorkItemStateResultModel ` + :param url: Url of the work item type + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py new file mode 100644 index 00000000..858af78d --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class WorkItemTypeUpdateModel(Model): + """WorkItemTypeUpdateModel. + + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param is_disabled: Is the workitem type to be disabled + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(WorkItemTypeUpdateModel, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py new file mode 100644 index 00000000..d104d8ac --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py @@ -0,0 +1,969 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkItemTrackingClient(VssClient): + """WorkItemTracking + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingClient, 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 create_behavior(self, behavior, process_id): + """CreateBehavior. + [Preview API] Creates a single behavior in the given process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(behavior, 'BehaviorCreateModel') + response = self._send(http_method='POST', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def delete_behavior(self, process_id, behavior_id): + """DeleteBehavior. + [Preview API] Removes a behavior in the process. + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + self._send(http_method='DELETE', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.1-preview.1', + route_values=route_values) + + def get_behavior(self, process_id, behavior_id): + """GetBehavior. + [Preview API] Returns a single behavior in the process. + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('BehaviorModel', response) + + def get_behaviors(self, process_id): + """GetBehaviors. + [Preview API] Returns a list of all behaviors in the process. + :param str process_id: The ID of the process + :rtype: [BehaviorModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[BehaviorModel]', response) + + def replace_behavior(self, behavior_data, process_id, behavior_id): + """ReplaceBehavior. + [Preview API] Replaces a behavior in the process. + :param :class:` ` behavior_data: + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') + response = self._send(http_method='PUT', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def add_control_to_group(self, control, process_id, wit_ref_name, group_id): + """AddControlToGroup. + [Preview API] Creates a control in a group + :param :class:` ` control: The control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group to add the control to + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='POST', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): + """EditControl. + [Preview API] Updates a control on the work item form + :param :class:` ` control: The updated control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group + :param str control_id: The ID of the control + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PATCH', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): + """RemoveControlFromGroup. + [Preview API] Removes a control from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group + :param str control_id: The ID of the control to remove + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + self._send(http_method='DELETE', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.1-preview.1', + route_values=route_values) + + def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): + """SetControlInGroup. + [Preview API] Moves a control to a new group + :param :class:` ` control: The control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group to move the control to + :param str control_id: The id of the control + :param str remove_from_group_id: The group to remove the control from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + query_parameters = {} + if remove_from_group_id is not None: + query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PUT', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Control', response) + + def create_field(self, field, process_id): + """CreateField. + [Preview API] Creates a single field in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldModel') + response = self._send(http_method='POST', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def update_field(self, field, process_id): + """UpdateField. + [Preview API] Updates a given field in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldUpdate') + response = self._send(http_method='PATCH', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def add_group(self, group, process_id, wit_ref_name, page_id, section_id): + """AddGroup. + [Preview API] Adds a group to the work item form + :param :class:` ` group: The group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page to add the group to + :param str section_id: The ID of the section to add the group to + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='POST', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): + """EditGroup. + [Preview API] Updates a group in the work item form + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PATCH', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): + """RemoveGroup. + [Preview API] Removes a group from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section to the group is in + :param str group_id: The ID of the group + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + self._send(http_method='DELETE', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.1-preview.1', + route_values=route_values) + + def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): + """SetGroupInPage. + [Preview API] Moves a group to a different page and section + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :param str remove_from_page_id: ID of the page to remove the group from + :param str remove_from_section_id: ID of the section to remove the group from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_page_id is not None: + query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): + """SetGroupInSection. + [Preview API] Moves a group to a different section + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :param str remove_from_section_id: ID of the section to remove the group from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def get_form_layout(self, process_id, wit_ref_name): + """GetFormLayout. + [Preview API] Gets the form layout + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='3eacc80a-ddca-4404-857a-6331aac99063', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('FormLayout', response) + + def get_lists_metadata(self): + """GetListsMetadata. + [Preview API] Returns meta data of the picklist. + :rtype: [PickListMetadataModel] + """ + response = self._send(http_method='GET', + location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[PickListMetadataModel]', response) + + def create_list(self, picklist): + """CreateList. + [Preview API] Creates a picklist. + :param :class:` ` picklist: + :rtype: :class:` ` + """ + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='POST', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.1-preview.1', + content=content) + return self._deserialize('PickListModel', response) + + def delete_list(self, list_id): + """DeleteList. + [Preview API] Removes a picklist. + :param str list_id: The ID of the list + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + self._send(http_method='DELETE', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.1-preview.1', + route_values=route_values) + + def get_list(self, list_id): + """GetList. + [Preview API] Returns a picklist. + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + response = self._send(http_method='GET', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('PickListModel', response) + + def update_list(self, picklist, list_id): + """UpdateList. + [Preview API] Updates a list. + :param :class:` ` picklist: + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='PUT', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('PickListModel', response) + + def add_page(self, page, process_id, wit_ref_name): + """AddPage. + [Preview API] Adds a page to the work item form + :param :class:` ` page: The page + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='POST', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def edit_page(self, page, process_id, wit_ref_name): + """EditPage. + [Preview API] Updates a page on the work item form + :param :class:` ` page: The page + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='PATCH', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def remove_page(self, process_id, wit_ref_name, page_id): + """RemovePage. + [Preview API] Removes a page from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + self._send(http_method='DELETE', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='4.1-preview.1', + route_values=route_values) + + def create_state_definition(self, state_model, process_id, wit_ref_name): + """CreateStateDefinition. + [Preview API] Creates a state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='POST', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def delete_state_definition(self, process_id, wit_ref_name, state_id): + """DeleteStateDefinition. + [Preview API] Removes a state definition in the work item type of the process. + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + self._send(http_method='DELETE', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.1-preview.1', + route_values=route_values) + + def get_state_definition(self, process_id, wit_ref_name, state_id): + """GetStateDefinition. + [Preview API] Returns a state definition in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemStateResultModel', response) + + def get_state_definitions(self, process_id, wit_ref_name): + """GetStateDefinitions. + [Preview API] Returns a list of all state definitions in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [WorkItemStateResultModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemStateResultModel]', response) + + def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): + """HideStateDefinition. + [Preview API] Hides a state definition in the work item type of the process. + :param :class:` ` hide_state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(hide_state_model, 'HideStateModel') + response = self._send(http_method='PUT', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): + """UpdateStateDefinition. + [Preview API] Updates a given state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='PATCH', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """AddBehaviorToWorkItemType. + [Preview API] Adds a behavior to the work item type of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='POST', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """GetBehaviorForWorkItemType. + [Preview API] Returns a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): + """GetBehaviorsForWorkItemType. + [Preview API] Returns a list of all behaviors for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: [WorkItemTypeBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemTypeBehavior]', response) + + def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """RemoveBehaviorFromWorkItemType. + [Preview API] Removes a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + self._send(http_method='DELETE', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.1-preview.1', + route_values=route_values) + + def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """UpdateBehaviorToWorkItemType. + [Preview API] Updates a behavior for the work item type of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='PATCH', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def create_work_item_type(self, work_item_type, process_id): + """CreateWorkItemType. + [Preview API] Creates a work item type in the process. + :param :class:` ` work_item_type: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(work_item_type, 'WorkItemTypeModel') + response = self._send(http_method='POST', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def delete_work_item_type(self, process_id, wit_ref_name): + """DeleteWorkItemType. + [Preview API] Removes a work itewm type in the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + self._send(http_method='DELETE', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.1-preview.1', + route_values=route_values) + + def get_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetWorkItemType. + [Preview API] Returns a work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeModel', response) + + def get_work_item_types(self, process_id, expand=None): + """GetWorkItemTypes. + [Preview API] Returns a list of all work item types in the process. + :param str process_id: The ID of the process + :param str expand: + :rtype: [WorkItemTypeModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[WorkItemTypeModel]', response) + + def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): + """UpdateWorkItemType. + [Preview API] Updates a work item type of the process. + :param :class:` ` work_item_type_update: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') + response = self._send(http_method='PATCH', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): + """AddFieldToWorkItemType. + [Preview API] Adds a field to the work item type in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for the field + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + content = self._serialize.body(field, 'WorkItemTypeFieldModel') + response = self._send(http_method='POST', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeFieldModel', response) + + def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): + """GetWorkItemTypeField. + [Preview API] Retuens a single field in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :param str field_ref_name: The reference name of the field + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeFieldModel', response) + + def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): + """GetWorkItemTypeFields. + [Preview API] Returns a list of all fields in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :rtype: [WorkItemTypeFieldModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[WorkItemTypeFieldModel]', response) + + def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): + """RemoveFieldFromWorkItemType. + [Preview API] Removes a field in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :param str field_ref_name: The reference name of the field + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + self._send(http_method='DELETE', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='4.1-preview.1', + route_values=route_values) + diff --git a/vsts/vsts/work_item_tracking_process_template/__init__.py b/vsts/vsts/work_item_tracking_process_template/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py new file mode 100644 index 00000000..81330e29 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .admin_behavior import AdminBehavior +from .admin_behavior_field import AdminBehaviorField +from .check_template_existence_result import CheckTemplateExistenceResult +from .process_import_result import ProcessImportResult +from .process_promote_status import ProcessPromoteStatus +from .validation_issue import ValidationIssue + +__all__ = [ + 'AdminBehavior', + 'AdminBehaviorField', + 'CheckTemplateExistenceResult', + 'ProcessImportResult', + 'ProcessPromoteStatus', + 'ValidationIssue', +] diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py new file mode 100644 index 00000000..a0312319 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AdminBehavior(Model): + """AdminBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param custom: + :type custom: bool + :param description: + :type description: str + :param fields: + :type fields: list of :class:`AdminBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: str + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom': {'key': 'custom', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[AdminBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, abstract=None, color=None, custom=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None): + super(AdminBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.custom = custom + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py new file mode 100644 index 00000000..628c388f --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AdminBehaviorField(Model): + """AdminBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, name=None): + super(AdminBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.name = name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py new file mode 100644 index 00000000..a40cedd5 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CheckTemplateExistenceResult(Model): + """CheckTemplateExistenceResult. + + :param does_template_exist: + :type does_template_exist: bool + :param existing_template_name: + :type existing_template_name: str + :param existing_template_type_id: + :type existing_template_type_id: str + :param requested_template_name: + :type requested_template_name: str + """ + + _attribute_map = { + 'does_template_exist': {'key': 'doesTemplateExist', 'type': 'bool'}, + 'existing_template_name': {'key': 'existingTemplateName', 'type': 'str'}, + 'existing_template_type_id': {'key': 'existingTemplateTypeId', 'type': 'str'}, + 'requested_template_name': {'key': 'requestedTemplateName', 'type': 'str'} + } + + def __init__(self, does_template_exist=None, existing_template_name=None, existing_template_type_id=None, requested_template_name=None): + super(CheckTemplateExistenceResult, self).__init__() + self.does_template_exist = does_template_exist + self.existing_template_name = existing_template_name + self.existing_template_type_id = existing_template_type_id + self.requested_template_name = requested_template_name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py new file mode 100644 index 00000000..189dfa21 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProcessImportResult(Model): + """ProcessImportResult. + + :param help_url: + :type help_url: str + :param id: + :type id: str + :param promote_job_id: + :type promote_job_id: str + :param validation_results: + :type validation_results: list of :class:`ValidationIssue ` + """ + + _attribute_map = { + 'help_url': {'key': 'helpUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'promote_job_id': {'key': 'promoteJobId', 'type': 'str'}, + 'validation_results': {'key': 'validationResults', 'type': '[ValidationIssue]'} + } + + def __init__(self, help_url=None, id=None, promote_job_id=None, validation_results=None): + super(ProcessImportResult, self).__init__() + self.help_url = help_url + self.id = id + self.promote_job_id = promote_job_id + self.validation_results = validation_results diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py new file mode 100644 index 00000000..bf64aa29 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py @@ -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.serialization import Model + + +class ProcessPromoteStatus(Model): + """ProcessPromoteStatus. + + :param complete: + :type complete: int + :param id: + :type id: str + :param message: + :type message: str + :param pending: + :type pending: int + :param remaining_retries: + :type remaining_retries: int + :param successful: + :type successful: bool + """ + + _attribute_map = { + 'complete': {'key': 'complete', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pending': {'key': 'pending', 'type': 'int'}, + 'remaining_retries': {'key': 'remainingRetries', 'type': 'int'}, + 'successful': {'key': 'successful', 'type': 'bool'} + } + + def __init__(self, complete=None, id=None, message=None, pending=None, remaining_retries=None, successful=None): + super(ProcessPromoteStatus, self).__init__() + self.complete = complete + self.id = id + self.message = message + self.pending = pending + self.remaining_retries = remaining_retries + self.successful = successful diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py new file mode 100644 index 00000000..db8df249 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ValidationIssue(Model): + """ValidationIssue. + + :param description: + :type description: str + :param file: + :type file: str + :param help_link: + :type help_link: str + :param issue_type: + :type issue_type: object + :param line: + :type line: int + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'file': {'key': 'file', 'type': 'str'}, + 'help_link': {'key': 'helpLink', 'type': 'str'}, + 'issue_type': {'key': 'issueType', 'type': 'object'}, + 'line': {'key': 'line', 'type': 'int'} + } + + def __init__(self, description=None, file=None, help_link=None, issue_type=None, line=None): + super(ValidationIssue, self).__init__() + self.description = description + self.file = file + self.help_link = help_link + self.issue_type = issue_type + self.line = line diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py new file mode 100644 index 00000000..7c2bc48b --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py @@ -0,0 +1,138 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkItemTrackingProcessTemplateClient(VssClient): + """WorkItemTrackingProcessTemplate + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingProcessTemplateClient, 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_behavior(self, process_id, behavior_ref_name): + """GetBehavior. + [Preview API] + :param str process_id: + :param str behavior_ref_name: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if behavior_ref_name is not None: + query_parameters['behaviorRefName'] = self._serialize.query('behavior_ref_name', behavior_ref_name, 'str') + response = self._send(http_method='GET', + location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AdminBehavior', response) + + def get_behaviors(self, process_id): + """GetBehaviors. + [Preview API] + :param str process_id: + :rtype: [AdminBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[AdminBehavior]', response) + + def check_template_existence(self, upload_stream): + """CheckTemplateExistence. + [Preview API] Check if process template exists + :param object upload_stream: Stream to upload + :rtype: :class:` ` + """ + route_values = {} + route_values['action'] = 'CheckTemplateExistence' + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.0-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('CheckTemplateExistenceResult', response) + + def export_process_template(self, id): + """ExportProcessTemplate. + [Preview API] Returns requested process template + :param str id: + :rtype: object + """ + route_values = {} + route_values['action'] = 'Export' + query_parameters = {} + if id is not None: + query_parameters['id'] = self._serialize.query('id', id, 'str') + response = self._send(http_method='GET', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def import_process_template(self, upload_stream, ignore_warnings=None): + """ImportProcessTemplate. + [Preview API] + :param object upload_stream: Stream to upload + :param bool ignore_warnings: + :rtype: :class:` ` + """ + route_values = {} + route_values['action'] = 'Import' + query_parameters = {} + if ignore_warnings is not None: + query_parameters['ignoreWarnings'] = self._serialize.query('ignore_warnings', ignore_warnings, 'bool') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + return self._deserialize('ProcessImportResult', response) + + def import_process_template_status(self, id): + """ImportProcessTemplateStatus. + [Preview API] Whether promote has completed for the specified promote job id + :param str id: + :rtype: :class:` ` + """ + route_values = {} + route_values['action'] = 'Status' + query_parameters = {} + if id is not None: + query_parameters['id'] = self._serialize.query('id', id, 'str') + response = self._send(http_method='GET', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessPromoteStatus', response) + diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py new file mode 100644 index 00000000..81330e29 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .admin_behavior import AdminBehavior +from .admin_behavior_field import AdminBehaviorField +from .check_template_existence_result import CheckTemplateExistenceResult +from .process_import_result import ProcessImportResult +from .process_promote_status import ProcessPromoteStatus +from .validation_issue import ValidationIssue + +__all__ = [ + 'AdminBehavior', + 'AdminBehaviorField', + 'CheckTemplateExistenceResult', + 'ProcessImportResult', + 'ProcessPromoteStatus', + 'ValidationIssue', +] diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py new file mode 100644 index 00000000..aad238df --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AdminBehavior(Model): + """AdminBehavior. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type). + :type abstract: bool + :param color: The color associated with the behavior. + :type color: str + :param custom: Indicates if the behavior is custom. + :type custom: bool + :param description: The description of the behavior. + :type description: str + :param fields: List of behavior fields. + :type fields: list of :class:`AdminBehaviorField ` + :param id: Behavior ID. + :type id: str + :param inherits: Parent behavior reference. + :type inherits: str + :param name: The behavior name. + :type name: str + :param overriden: Is the behavior overrides a behavior from system process. + :type overriden: bool + :param rank: The rank. + :type rank: int + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom': {'key': 'custom', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[AdminBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, abstract=None, color=None, custom=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None): + super(AdminBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.custom = custom + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py new file mode 100644 index 00000000..8cea2e2e --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AdminBehaviorField(Model): + """AdminBehaviorField. + + :param behavior_field_id: The behavior field identifier. + :type behavior_field_id: str + :param id: The behavior ID. + :type id: str + :param name: The behavior name. + :type name: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, name=None): + super(AdminBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.name = name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py new file mode 100644 index 00000000..b489ede0 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CheckTemplateExistenceResult(Model): + """CheckTemplateExistenceResult. + + :param does_template_exist: Indicates whether a template exists. + :type does_template_exist: bool + :param existing_template_name: The name of the existing template. + :type existing_template_name: str + :param existing_template_type_id: The existing template type identifier. + :type existing_template_type_id: str + :param requested_template_name: The name of the requested template. + :type requested_template_name: str + """ + + _attribute_map = { + 'does_template_exist': {'key': 'doesTemplateExist', 'type': 'bool'}, + 'existing_template_name': {'key': 'existingTemplateName', 'type': 'str'}, + 'existing_template_type_id': {'key': 'existingTemplateTypeId', 'type': 'str'}, + 'requested_template_name': {'key': 'requestedTemplateName', 'type': 'str'} + } + + def __init__(self, does_template_exist=None, existing_template_name=None, existing_template_type_id=None, requested_template_name=None): + super(CheckTemplateExistenceResult, self).__init__() + self.does_template_exist = does_template_exist + self.existing_template_name = existing_template_name + self.existing_template_type_id = existing_template_type_id + self.requested_template_name = requested_template_name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py new file mode 100644 index 00000000..ae9d911e --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProcessImportResult(Model): + """ProcessImportResult. + + :param help_url: Help URL. + :type help_url: str + :param id: ID of the import operation. + :type id: str + :param is_new: Whether this imported process is new. + :type is_new: bool + :param promote_job_id: The promote job identifier. + :type promote_job_id: str + :param validation_results: The list of validation results. + :type validation_results: list of :class:`ValidationIssue ` + """ + + _attribute_map = { + 'help_url': {'key': 'helpUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_new': {'key': 'isNew', 'type': 'bool'}, + 'promote_job_id': {'key': 'promoteJobId', 'type': 'str'}, + 'validation_results': {'key': 'validationResults', 'type': '[ValidationIssue]'} + } + + def __init__(self, help_url=None, id=None, is_new=None, promote_job_id=None, validation_results=None): + super(ProcessImportResult, self).__init__() + self.help_url = help_url + self.id = id + self.is_new = is_new + self.promote_job_id = promote_job_id + self.validation_results = validation_results diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py new file mode 100644 index 00000000..8810ad85 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py @@ -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.serialization import Model + + +class ProcessPromoteStatus(Model): + """ProcessPromoteStatus. + + :param complete: Number of projects for which promote is complete. + :type complete: int + :param id: ID of the promote operation. + :type id: str + :param message: The error message assoicated with the promote operation. The string will be empty if there are no errors. + :type message: str + :param pending: Number of projects for which promote is pending. + :type pending: int + :param remaining_retries: The remaining retries. + :type remaining_retries: int + :param successful: True if promote finished all the projects successfully. False if still inprogress or any project promote failed. + :type successful: bool + """ + + _attribute_map = { + 'complete': {'key': 'complete', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pending': {'key': 'pending', 'type': 'int'}, + 'remaining_retries': {'key': 'remainingRetries', 'type': 'int'}, + 'successful': {'key': 'successful', 'type': 'bool'} + } + + def __init__(self, complete=None, id=None, message=None, pending=None, remaining_retries=None, successful=None): + super(ProcessPromoteStatus, self).__init__() + self.complete = complete + self.id = id + self.message = message + self.pending = pending + self.remaining_retries = remaining_retries + self.successful = successful diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py new file mode 100644 index 00000000..db8df249 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ValidationIssue(Model): + """ValidationIssue. + + :param description: + :type description: str + :param file: + :type file: str + :param help_link: + :type help_link: str + :param issue_type: + :type issue_type: object + :param line: + :type line: int + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'file': {'key': 'file', 'type': 'str'}, + 'help_link': {'key': 'helpLink', 'type': 'str'}, + 'issue_type': {'key': 'issueType', 'type': 'object'}, + 'line': {'key': 'line', 'type': 'int'} + } + + def __init__(self, description=None, file=None, help_link=None, issue_type=None, line=None): + super(ValidationIssue, self).__init__() + self.description = description + self.file = file + self.help_link = help_link + self.issue_type = issue_type + self.line = line diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py new file mode 100644 index 00000000..efefa0d9 --- /dev/null +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py @@ -0,0 +1,134 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class WorkItemTrackingProcessTemplateClient(VssClient): + """WorkItemTrackingProcessTemplate + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingProcessTemplateClient, 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_behavior(self, process_id, behavior_ref_name): + """GetBehavior. + [Preview API] Returns a behavior for the process. + :param str process_id: The ID of the process + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if behavior_ref_name is not None: + query_parameters['behaviorRefName'] = self._serialize.query('behavior_ref_name', behavior_ref_name, 'str') + response = self._send(http_method='GET', + location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AdminBehavior', response) + + def get_behaviors(self, process_id): + """GetBehaviors. + [Preview API] Returns a list of behaviors for the process. + :param str process_id: The ID of the process + :rtype: [AdminBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('[AdminBehavior]', response) + + def check_template_existence(self, upload_stream): + """CheckTemplateExistence. + [Preview API] Check if process template exists. + :param object upload_stream: Stream to upload + :rtype: :class:` ` + """ + route_values = {} + route_values['action'] = 'CheckTemplateExistence' + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('CheckTemplateExistenceResult', response) + + def export_process_template(self, id): + """ExportProcessTemplate. + [Preview API] Returns requested process template. + :param str id: The ID of the process + :rtype: object + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + route_values['action'] = 'Export' + response = self._send(http_method='GET', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def import_process_template(self, upload_stream, ignore_warnings=None): + """ImportProcessTemplate. + [Preview API] Imports a process from zip file. + :param object upload_stream: Stream to upload + :param bool ignore_warnings: Default value is false + :rtype: :class:` ` + """ + route_values = {} + route_values['action'] = 'Import' + query_parameters = {} + if ignore_warnings is not None: + query_parameters['ignoreWarnings'] = self._serialize.query('ignore_warnings', ignore_warnings, 'bool') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='POST', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + return self._deserialize('ProcessImportResult', response) + + def import_process_template_status(self, id): + """ImportProcessTemplateStatus. + [Preview API] Tells whether promote has completed for the specified promote job ID. + :param str id: The ID of the promote job operation + :rtype: :class:` ` + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + route_values['action'] = 'Status' + response = self._send(http_method='GET', + location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ProcessPromoteStatus', response) + From 80c19b0e1ec1a1cfb9b449a2295f95d29213059c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 13 Jun 2018 13:53:15 -0400 Subject: [PATCH 045/191] bump version to 0.1.9 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index adcdc13d..5713d55f 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.8" +VERSION = "0.1.9" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index b9f4467b..fe1c6413 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.8" +VERSION = "0.1.9" From a07d0a17fda5010b9fdcecf015dcbb72bc77be02 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 13 Jun 2018 14:34:42 -0400 Subject: [PATCH 046/191] bump version to 0.1.10 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 5713d55f..447c21d6 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.9" +VERSION = "0.1.10" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index fe1c6413..5a52bd81 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.9" +VERSION = "0.1.10" From f6789651945f41c461de0a2e869d85a8eee68631 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 27 Jun 2018 14:10:21 -0400 Subject: [PATCH 047/191] add User area for 4.1 api --- vsts/vsts/user/__init__.py | 7 + vsts/vsts/user/v4_1/__init__.py | 7 + vsts/vsts/user/v4_1/models/__init__.py | 35 ++ vsts/vsts/user/v4_1/models/avatar.py | 37 ++ .../v4_1/models/create_user_parameters.py | 45 +++ .../models/mail_confirmation_parameters.py | 29 ++ vsts/vsts/user/v4_1/models/reference_links.py | 25 ++ .../send_user_notification_parameters.py | 29 ++ .../models/set_user_attribute_parameters.py | 37 ++ .../v4_1/models/update_user_parameters.py | 25 ++ vsts/vsts/user/v4_1/models/user.py | 73 ++++ vsts/vsts/user/v4_1/models/user_attribute.py | 37 ++ vsts/vsts/user/v4_1/models/user_attributes.py | 29 ++ .../user/v4_1/models/user_notification.py | 29 ++ .../user/v4_1/models/user_notifications.py | 29 ++ vsts/vsts/user/v4_1/user_client.py | 326 ++++++++++++++++++ vsts/vsts/work/v4_1/work_client.py | 2 +- 17 files changed, 800 insertions(+), 1 deletion(-) create mode 100644 vsts/vsts/user/__init__.py create mode 100644 vsts/vsts/user/v4_1/__init__.py create mode 100644 vsts/vsts/user/v4_1/models/__init__.py create mode 100644 vsts/vsts/user/v4_1/models/avatar.py create mode 100644 vsts/vsts/user/v4_1/models/create_user_parameters.py create mode 100644 vsts/vsts/user/v4_1/models/mail_confirmation_parameters.py create mode 100644 vsts/vsts/user/v4_1/models/reference_links.py create mode 100644 vsts/vsts/user/v4_1/models/send_user_notification_parameters.py create mode 100644 vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py create mode 100644 vsts/vsts/user/v4_1/models/update_user_parameters.py create mode 100644 vsts/vsts/user/v4_1/models/user.py create mode 100644 vsts/vsts/user/v4_1/models/user_attribute.py create mode 100644 vsts/vsts/user/v4_1/models/user_attributes.py create mode 100644 vsts/vsts/user/v4_1/models/user_notification.py create mode 100644 vsts/vsts/user/v4_1/models/user_notifications.py create mode 100644 vsts/vsts/user/v4_1/user_client.py diff --git a/vsts/vsts/user/__init__.py b/vsts/vsts/user/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/user/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/user/v4_1/__init__.py b/vsts/vsts/user/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/user/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/user/v4_1/models/__init__.py b/vsts/vsts/user/v4_1/models/__init__.py new file mode 100644 index 00000000..deed4a68 --- /dev/null +++ b/vsts/vsts/user/v4_1/models/__init__.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .avatar import Avatar +from .create_user_parameters import CreateUserParameters +from .mail_confirmation_parameters import MailConfirmationParameters +from .reference_links import ReferenceLinks +from .send_user_notification_parameters import SendUserNotificationParameters +from .set_user_attribute_parameters import SetUserAttributeParameters +from .update_user_parameters import UpdateUserParameters +from .user import User +from .user_attribute import UserAttribute +from .user_attributes import UserAttributes +from .user_notification import UserNotification +from .user_notifications import UserNotifications + +__all__ = [ + 'Avatar', + 'CreateUserParameters', + 'MailConfirmationParameters', + 'ReferenceLinks', + 'SendUserNotificationParameters', + 'SetUserAttributeParameters', + 'UpdateUserParameters', + 'User', + 'UserAttribute', + 'UserAttributes', + 'UserNotification', + 'UserNotifications', +] diff --git a/vsts/vsts/user/v4_1/models/avatar.py b/vsts/vsts/user/v4_1/models/avatar.py new file mode 100644 index 00000000..cd4f5f01 --- /dev/null +++ b/vsts/vsts/user/v4_1/models/avatar.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Avatar(Model): + """Avatar. + + :param image: The raw avatar image data, in either jpg or png format. + :type image: str + :param is_auto_generated: True if the avatar is dynamically generated, false if user-provided. + :type is_auto_generated: bool + :param last_modified: The date/time at which the avatar was last modified. + :type last_modified: datetime + :param size: The size of the avatar, e.g. small, medium, or large. + :type size: object + """ + + _attribute_map = { + 'image': {'key': 'image', 'type': 'str'}, + 'is_auto_generated': {'key': 'isAutoGenerated', 'type': 'bool'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'size': {'key': 'size', 'type': 'object'} + } + + def __init__(self, image=None, is_auto_generated=None, last_modified=None, size=None): + super(Avatar, self).__init__() + self.image = image + self.is_auto_generated = is_auto_generated + self.last_modified = last_modified + self.size = size diff --git a/vsts/vsts/user/v4_1/models/create_user_parameters.py b/vsts/vsts/user/v4_1/models/create_user_parameters.py new file mode 100644 index 00000000..03801e6c --- /dev/null +++ b/vsts/vsts/user/v4_1/models/create_user_parameters.py @@ -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.serialization import Model + + +class CreateUserParameters(Model): + """CreateUserParameters. + + :param country: The user's country of residence or association. + :type country: str + :param data: + :type data: dict + :param descriptor: The user's unique identifier, and the primary means by which the user is referenced. + :type descriptor: :class:`str ` + :param display_name: The user's name, as displayed throughout the product. + :type display_name: str + :param mail: The user's preferred email address. + :type mail: str + :param region: The region in which the user resides or is associated. + :type region: str + """ + + _attribute_map = { + 'country': {'key': 'country', 'type': 'str'}, + 'data': {'key': 'data', 'type': '{object}'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'mail': {'key': 'mail', 'type': 'str'}, + 'region': {'key': 'region', 'type': 'str'} + } + + def __init__(self, country=None, data=None, descriptor=None, display_name=None, mail=None, region=None): + super(CreateUserParameters, self).__init__() + self.country = country + self.data = data + self.descriptor = descriptor + self.display_name = display_name + self.mail = mail + self.region = region diff --git a/vsts/vsts/user/v4_1/models/mail_confirmation_parameters.py b/vsts/vsts/user/v4_1/models/mail_confirmation_parameters.py new file mode 100644 index 00000000..a8c07359 --- /dev/null +++ b/vsts/vsts/user/v4_1/models/mail_confirmation_parameters.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MailConfirmationParameters(Model): + """MailConfirmationParameters. + + :param challenge_code: The unique code that proves ownership of the email address. + :type challenge_code: str + :param mail_address: The email address to be confirmed. + :type mail_address: str + """ + + _attribute_map = { + 'challenge_code': {'key': 'challengeCode', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'} + } + + def __init__(self, challenge_code=None, mail_address=None): + super(MailConfirmationParameters, self).__init__() + self.challenge_code = challenge_code + self.mail_address = mail_address diff --git a/vsts/vsts/user/v4_1/models/reference_links.py b/vsts/vsts/user/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/user/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/user/v4_1/models/send_user_notification_parameters.py b/vsts/vsts/user/v4_1/models/send_user_notification_parameters.py new file mode 100644 index 00000000..c5936eba --- /dev/null +++ b/vsts/vsts/user/v4_1/models/send_user_notification_parameters.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SendUserNotificationParameters(Model): + """SendUserNotificationParameters. + + :param notification: Notification to be delivered + :type notification: :class:`UserNotification ` + :param recipients: Users whom this notification is addressed to + :type recipients: list of :class:`str ` + """ + + _attribute_map = { + 'notification': {'key': 'notification', 'type': 'UserNotification'}, + 'recipients': {'key': 'recipients', 'type': '[str]'} + } + + def __init__(self, notification=None, recipients=None): + super(SendUserNotificationParameters, self).__init__() + self.notification = notification + self.recipients = recipients diff --git a/vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py b/vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py new file mode 100644 index 00000000..bdfd9cfb --- /dev/null +++ b/vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SetUserAttributeParameters(Model): + """SetUserAttributeParameters. + + :param last_modified: The date/time at which the attribute was last modified. + :type last_modified: datetime + :param name: The unique group-prefixed name of the attribute, e.g. "TFS.TimeZone". + :type name: str + :param revision: The attribute's revision, for change tracking. + :type revision: int + :param value: The value of the attribute. + :type value: str + """ + + _attribute_map = { + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, last_modified=None, name=None, revision=None, value=None): + super(SetUserAttributeParameters, self).__init__() + self.last_modified = last_modified + self.name = name + self.revision = revision + self.value = value diff --git a/vsts/vsts/user/v4_1/models/update_user_parameters.py b/vsts/vsts/user/v4_1/models/update_user_parameters.py new file mode 100644 index 00000000..5726e001 --- /dev/null +++ b/vsts/vsts/user/v4_1/models/update_user_parameters.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UpdateUserParameters(Model): + """UpdateUserParameters. + + :param properties: The collection of properties to set. See "User" for valid fields. + :type properties: :class:`object ` + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'object'} + } + + def __init__(self, properties=None): + super(UpdateUserParameters, self).__init__() + self.properties = properties diff --git a/vsts/vsts/user/v4_1/models/user.py b/vsts/vsts/user/v4_1/models/user.py new file mode 100644 index 00000000..98b3c9c4 --- /dev/null +++ b/vsts/vsts/user/v4_1/models/user.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class User(Model): + """User. + + :param bio: A short blurb of "about me"-style text. + :type bio: str + :param blog: A link to an external blog. + :type blog: str + :param company: The company at which the user is employed. + :type company: str + :param country: The user's country of residence or association. + :type country: str + :param date_created: The date the user was created in the system + :type date_created: datetime + :param descriptor: The user's unique identifier, and the primary means by which the user is referenced. + :type descriptor: :class:`str ` + :param display_name: The user's name, as displayed throughout the product. + :type display_name: str + :param last_modified: The date/time at which the user data was last modified. + :type last_modified: datetime + :param links: A set of readonly links for obtaining more info about the user. + :type links: :class:`ReferenceLinks ` + :param mail: The user's preferred email address. + :type mail: str + :param revision: The attribute's revision, for change tracking. + :type revision: int + :param unconfirmed_mail: The user's preferred email address which has not yet been confirmed. + :type unconfirmed_mail: str + :param user_name: The unique name of the user. + :type user_name: str + """ + + _attribute_map = { + 'bio': {'key': 'bio', 'type': 'str'}, + 'blog': {'key': 'blog', 'type': 'str'}, + 'company': {'key': 'company', 'type': 'str'}, + 'country': {'key': 'country', 'type': 'str'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'links': {'key': 'links', 'type': 'ReferenceLinks'}, + 'mail': {'key': 'mail', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'unconfirmed_mail': {'key': 'unconfirmedMail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'} + } + + def __init__(self, bio=None, blog=None, company=None, country=None, date_created=None, descriptor=None, display_name=None, last_modified=None, links=None, mail=None, revision=None, unconfirmed_mail=None, user_name=None): + super(User, self).__init__() + self.bio = bio + self.blog = blog + self.company = company + self.country = country + self.date_created = date_created + self.descriptor = descriptor + self.display_name = display_name + self.last_modified = last_modified + self.links = links + self.mail = mail + self.revision = revision + self.unconfirmed_mail = unconfirmed_mail + self.user_name = user_name diff --git a/vsts/vsts/user/v4_1/models/user_attribute.py b/vsts/vsts/user/v4_1/models/user_attribute.py new file mode 100644 index 00000000..6e0da83c --- /dev/null +++ b/vsts/vsts/user/v4_1/models/user_attribute.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserAttribute(Model): + """UserAttribute. + + :param last_modified: The date/time at which the attribute was last modified. + :type last_modified: datetime + :param name: The unique group-prefixed name of the attribute, e.g. "TFS.TimeZone". + :type name: str + :param revision: The attribute's revision, for change tracking. + :type revision: int + :param value: The value of the attribute. + :type value: str + """ + + _attribute_map = { + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, last_modified=None, name=None, revision=None, value=None): + super(UserAttribute, self).__init__() + self.last_modified = last_modified + self.name = name + self.revision = revision + self.value = value diff --git a/vsts/vsts/user/v4_1/models/user_attributes.py b/vsts/vsts/user/v4_1/models/user_attributes.py new file mode 100644 index 00000000..d06fb34f --- /dev/null +++ b/vsts/vsts/user/v4_1/models/user_attributes.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserAttributes(Model): + """UserAttributes. + + :param attributes: Collection of attributes + :type attributes: list of :class:`UserAttribute ` + :param continuation_token: Opaque string to get the next chunk of results Server would return non-null string here if there is more data Client will need then to pass it to the server to get more results + :type continuation_token: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '[UserAttribute]'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'str'} + } + + def __init__(self, attributes=None, continuation_token=None): + super(UserAttributes, self).__init__() + self.attributes = attributes + self.continuation_token = continuation_token diff --git a/vsts/vsts/user/v4_1/models/user_notification.py b/vsts/vsts/user/v4_1/models/user_notification.py new file mode 100644 index 00000000..aeddef33 --- /dev/null +++ b/vsts/vsts/user/v4_1/models/user_notification.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserNotification(Model): + """UserNotification. + + :param event_id: Unique notification id (must be idempotent) + :type event_id: str + :param time_stamp: Time at which notification was posted (must be idempotent) + :type time_stamp: datetime + """ + + _attribute_map = { + 'event_id': {'key': 'eventId', 'type': 'str'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'} + } + + def __init__(self, event_id=None, time_stamp=None): + super(UserNotification, self).__init__() + self.event_id = event_id + self.time_stamp = time_stamp diff --git a/vsts/vsts/user/v4_1/models/user_notifications.py b/vsts/vsts/user/v4_1/models/user_notifications.py new file mode 100644 index 00000000..b3528bcc --- /dev/null +++ b/vsts/vsts/user/v4_1/models/user_notifications.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserNotifications(Model): + """UserNotifications. + + :param continuation_token: Continuation token to query the next segment + :type continuation_token: str + :param notifications: Collection of notifications + :type notifications: list of :class:`UserNotification ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'notifications': {'key': 'notifications', 'type': '[UserNotification]'} + } + + def __init__(self, continuation_token=None, notifications=None): + super(UserNotifications, self).__init__() + self.continuation_token = continuation_token + self.notifications = notifications diff --git a/vsts/vsts/user/v4_1/user_client.py b/vsts/vsts/user/v4_1/user_client.py new file mode 100644 index 00000000..ed83a567 --- /dev/null +++ b/vsts/vsts/user/v4_1/user_client.py @@ -0,0 +1,326 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class UserClient(VssClient): + """User + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(UserClient, 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 delete_attribute(self, descriptor, attribute_name): + """DeleteAttribute. + [Preview API] Deletes an attribute for the given user. + :param str descriptor: The identity of the user for the operation. + :param str attribute_name: The name of the attribute to delete. + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + if attribute_name is not None: + route_values['attributeName'] = self._serialize.url('attribute_name', attribute_name, 'str') + self._send(http_method='DELETE', + location_id='ac77b682-1ef8-4277-afde-30af9b546004', + version='4.1-preview.2', + route_values=route_values) + + def get_attribute(self, descriptor, attribute_name): + """GetAttribute. + [Preview API] Retrieves an attribute for a given user. + :param str descriptor: The identity of the user for the operation. + :param str attribute_name: The name of the attribute to retrieve. + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + if attribute_name is not None: + route_values['attributeName'] = self._serialize.url('attribute_name', attribute_name, 'str') + response = self._send(http_method='GET', + location_id='ac77b682-1ef8-4277-afde-30af9b546004', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('UserAttribute', response) + + def query_attributes(self, descriptor, continuation_token=None, query_pattern=None, modified_after=None): + """QueryAttributes. + [Preview API] Retrieves attributes for a given user. May return subset of attributes providing continuation token to retrieve the next batch + :param str descriptor: The identity of the user for the operation. + :param str continuation_token: The token telling server to return the next chunk of attributes from where it stopped last time. This must either be null or be a value returned from the previous call to this API + :param str query_pattern: The wildcardable pattern for the attribute names to be retrieved, e.g. queryPattern=visualstudio.14.* + :param str modified_after: The optional date/time of the minimum modification date for attributes to be retrieved, e.g. modifiedafter=2017-04-12T15:00:00.000Z + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + query_parameters = {} + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_pattern is not None: + query_parameters['queryPattern'] = self._serialize.query('query_pattern', query_pattern, 'str') + if modified_after is not None: + query_parameters['modifiedAfter'] = self._serialize.query('modified_after', modified_after, 'str') + response = self._send(http_method='GET', + location_id='ac77b682-1ef8-4277-afde-30af9b546004', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('UserAttributes', response) + + def set_attributes(self, attribute_parameters_list, descriptor): + """SetAttributes. + [Preview API] Updates multiple attributes for a given user. + :param [SetUserAttributeParameters] attribute_parameters_list: The list of attribute data to update. Existing values will be overwritten. + :param str descriptor: The identity of the user for the operation. + :rtype: [UserAttribute] + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + content = self._serialize.body(attribute_parameters_list, '[SetUserAttributeParameters]') + response = self._send(http_method='PATCH', + location_id='ac77b682-1ef8-4277-afde-30af9b546004', + version='4.1-preview.2', + route_values=route_values, + content=content, + returns_collection=True) + return self._deserialize('[UserAttribute]', response) + + def delete_avatar(self, descriptor): + """DeleteAvatar. + [Preview API] Deletes a user's avatar. + :param str descriptor: The identity of the user for the operation. + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + self._send(http_method='DELETE', + location_id='1c34cdf0-dd20-4370-a316-56ba776d75ce', + version='4.1-preview.1', + route_values=route_values) + + def get_avatar(self, descriptor, size=None, format=None): + """GetAvatar. + [Preview API] Retrieves the user's avatar. + :param str descriptor: The identity of the user for the operation. + :param str size: The size to retrieve, e.g. small, medium (default), or large. + :param str format: The format for the response. Can be null. Accepted values: "png", "json" + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + query_parameters = {} + if size is not None: + query_parameters['size'] = self._serialize.query('size', size, 'str') + if format is not None: + query_parameters['format'] = self._serialize.query('format', format, 'str') + response = self._send(http_method='GET', + location_id='1c34cdf0-dd20-4370-a316-56ba776d75ce', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Avatar', response) + + def set_avatar(self, avatar, descriptor): + """SetAvatar. + [Preview API] Creates or updates an avatar to be associated with a given user. + :param :class:` ` avatar: The avatar to set. The Image property must contain the binary representation of the image, in either jpg or png format. + :param str descriptor: The identity of the user for the operation. + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + content = self._serialize.body(avatar, 'Avatar') + self._send(http_method='PUT', + location_id='1c34cdf0-dd20-4370-a316-56ba776d75ce', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def create_avatar_preview(self, avatar, descriptor, size=None, display_name=None): + """CreateAvatarPreview. + [Preview API] + :param :class:` ` avatar: + :param str descriptor: + :param str size: + :param str display_name: + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + query_parameters = {} + if size is not None: + query_parameters['size'] = self._serialize.query('size', size, 'str') + if display_name is not None: + query_parameters['displayName'] = self._serialize.query('display_name', display_name, 'str') + content = self._serialize.body(avatar, 'Avatar') + response = self._send(http_method='POST', + location_id='aad154d3-750f-47e6-9898-dc3a2e7a1708', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Avatar', response) + + def get_descriptor(self, descriptor): + """GetDescriptor. + [Preview API] + :param str descriptor: + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + response = self._send(http_method='GET', + location_id='e338ed36-f702-44d3-8d18-9cba811d013a', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def confirm_mail(self, confirmation_parameters, descriptor): + """ConfirmMail. + [Preview API] Confirms preferred email for a given user. + :param :class:` ` confirmation_parameters: + :param str descriptor: The descriptor identifying the user for the operation. + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + content = self._serialize.body(confirmation_parameters, 'MailConfirmationParameters') + self._send(http_method='POST', + location_id='fc213dcd-3a4e-4951-a2e2-7e3fed15706d', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def write_notifications(self, notifications): + """WriteNotifications. + [Preview API] Stores/forwards provided notifications Accepts batch of notifications and each of those may be targeting multiple users + :param [SendUserNotificationParameters] notifications: Collection of notifications to be persisted. + """ + content = self._serialize.body(notifications, '[SendUserNotificationParameters]') + self._send(http_method='POST', + location_id='63e9e5c8-09a5-4de6-9aa1-01a96219073c', + version='4.1-preview.1', + content=content) + + def query_notifications(self, descriptor, top=None, continuation_token=None): + """QueryNotifications. + [Preview API] Queries notifications for a given user + :param str descriptor: The identity of the user for the operation. + :param int top: Maximum amount of items to retrieve. + :param str continuation_token: Token representing the position to restart reading notifications from. + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='58ff9476-0a49-4a70-81d6-1ef63d4f92e8', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('UserNotifications', response) + + def get_storage_key(self, descriptor): + """GetStorageKey. + [Preview API] + :param str descriptor: + :rtype: str + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + response = self._send(http_method='GET', + location_id='c1d0bf9e-3220-44d9-b048-222ae15fc3e4', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def get_user_defaults(self): + """GetUserDefaults. + [Preview API] Retrieves the default data for the authenticated user. + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='a9e65880-7489-4453-aa72-0f7896f0b434', + version='4.1-preview.1') + return self._deserialize('User', response) + + def create_user(self, user_parameters, create_local=None): + """CreateUser. + [Preview API] Creates a new user. + :param :class:` ` user_parameters: The parameters to be used for user creation. + :param bool create_local: + :rtype: :class:` ` + """ + query_parameters = {} + if create_local is not None: + query_parameters['createLocal'] = self._serialize.query('create_local', create_local, 'bool') + content = self._serialize.body(user_parameters, 'CreateUserParameters') + response = self._send(http_method='POST', + location_id='61117502-a055-422c-9122-b56e6643ed02', + version='4.1-preview.2', + query_parameters=query_parameters, + content=content) + return self._deserialize('User', response) + + def get_user(self, descriptor, create_if_not_exists=None): + """GetUser. + [Preview API] Retrieves the data for a given user. + :param str descriptor: The identity of the user for the operation. + :param Boolean create_if_not_exists: Whether to auto-provision the authenticated user + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + response = self._send(http_method='GET', + location_id='61117502-a055-422c-9122-b56e6643ed02', + version='4.1-preview.2', + route_values=route_values) + return self._deserialize('User', response) + + def update_user(self, user_parameters, descriptor): + """UpdateUser. + [Preview API] Updates an existing user. + :param :class:` ` user_parameters: The parameters to be used for user update. + :param str descriptor: The identity of the user for the operation. + :rtype: :class:` ` + """ + route_values = {} + if descriptor is not None: + route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') + content = self._serialize.body(user_parameters, 'UpdateUserParameters') + response = self._send(http_method='PATCH', + location_id='61117502-a055-422c-9122-b56e6643ed02', + version='4.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('User', response) + diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py index eb912647..68d5d9cc 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/vsts/vsts/work/v4_1/work_client.py @@ -930,7 +930,7 @@ def get_team_iterations(self, team_context, timeframe=None): """GetTeamIterations. Get a team's iterations using timeframe filter :param :class:` ` team_context: The team context for the operation - :param str timeframe: A filter for which iterations are returned based on relative time + :param str timeframe: A filter for which iterations are returned based on relative time. Only Current is supported currently. :rtype: [TeamSettingsIteration] """ project = None From e9a91172b693182ddcc9e96b1c2b7e3c6727c50c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 9 Jul 2018 12:30:39 -0400 Subject: [PATCH 048/191] change release_trigger_base into a property bag. --- vsts/vsts/release/v4_0/models/__init__.py | 2 -- .../release/v4_0/models/release_definition.py | 4 +-- .../v4_0/models/release_trigger_base.py | 25 ------------------- vsts/vsts/release/v4_1/models/__init__.py | 2 -- .../release/v4_1/models/release_definition.py | 4 +-- .../v4_1/models/release_trigger_base.py | 25 ------------------- 6 files changed, 4 insertions(+), 58 deletions(-) delete mode 100644 vsts/vsts/release/v4_0/models/release_trigger_base.py delete mode 100644 vsts/vsts/release/v4_1/models/release_trigger_base.py diff --git a/vsts/vsts/release/v4_0/models/__init__.py b/vsts/vsts/release/v4_0/models/__init__.py index 3bf893c1..75948885 100644 --- a/vsts/vsts/release/v4_0/models/__init__.py +++ b/vsts/vsts/release/v4_0/models/__init__.py @@ -73,7 +73,6 @@ from .release_shallow_reference import ReleaseShallowReference from .release_start_metadata import ReleaseStartMetadata from .release_task import ReleaseTask -from .release_trigger_base import ReleaseTriggerBase from .release_update_metadata import ReleaseUpdateMetadata from .release_work_item_ref import ReleaseWorkItemRef from .retention_policy import RetentionPolicy @@ -156,7 +155,6 @@ 'ReleaseShallowReference', 'ReleaseStartMetadata', 'ReleaseTask', - 'ReleaseTriggerBase', 'ReleaseUpdateMetadata', 'ReleaseWorkItemRef', 'RetentionPolicy', diff --git a/vsts/vsts/release/v4_0/models/release_definition.py b/vsts/vsts/release/v4_0/models/release_definition.py index 7b0d4930..14ec8fa5 100644 --- a/vsts/vsts/release/v4_0/models/release_definition.py +++ b/vsts/vsts/release/v4_0/models/release_definition.py @@ -51,7 +51,7 @@ class ReleaseDefinition(Model): :param tags: Gets or sets list of tags. :type tags: list of str :param triggers: Gets or sets the list of triggers. - :type triggers: list of :class:`ReleaseTriggerBase ` + :type triggers: list of :class:`object ` :param url: Gets url to access the release definition. :type url: str :param variable_groups: Gets or sets the list of variable groups. @@ -80,7 +80,7 @@ class ReleaseDefinition(Model): 'revision': {'key': 'revision', 'type': 'int'}, 'source': {'key': 'source', 'type': 'object'}, 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[ReleaseTriggerBase]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, 'url': {'key': 'url', 'type': 'str'}, 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} diff --git a/vsts/vsts/release/v4_0/models/release_trigger_base.py b/vsts/vsts/release/v4_0/models/release_trigger_base.py deleted file mode 100644 index 30c36fb3..00000000 --- a/vsts/vsts/release/v4_0/models/release_trigger_base.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseTriggerBase(Model): - """ReleaseTriggerBase. - - :param trigger_type: - :type trigger_type: object - """ - - _attribute_map = { - 'trigger_type': {'key': 'triggerType', 'type': 'object'} - } - - def __init__(self, trigger_type=None): - super(ReleaseTriggerBase, self).__init__() - self.trigger_type = trigger_type diff --git a/vsts/vsts/release/v4_1/models/__init__.py b/vsts/vsts/release/v4_1/models/__init__.py index f06f835c..3e374145 100644 --- a/vsts/vsts/release/v4_1/models/__init__.py +++ b/vsts/vsts/release/v4_1/models/__init__.py @@ -82,7 +82,6 @@ from .release_start_metadata import ReleaseStartMetadata from .release_task import ReleaseTask from .release_task_attachment import ReleaseTaskAttachment -from .release_trigger_base import ReleaseTriggerBase from .release_update_metadata import ReleaseUpdateMetadata from .release_work_item_ref import ReleaseWorkItemRef from .retention_policy import RetentionPolicy @@ -174,7 +173,6 @@ 'ReleaseStartMetadata', 'ReleaseTask', 'ReleaseTaskAttachment', - 'ReleaseTriggerBase', 'ReleaseUpdateMetadata', 'ReleaseWorkItemRef', 'RetentionPolicy', diff --git a/vsts/vsts/release/v4_1/models/release_definition.py b/vsts/vsts/release/v4_1/models/release_definition.py index 47346209..46e10e3e 100644 --- a/vsts/vsts/release/v4_1/models/release_definition.py +++ b/vsts/vsts/release/v4_1/models/release_definition.py @@ -55,7 +55,7 @@ class ReleaseDefinition(Model): :param tags: Gets or sets list of tags. :type tags: list of str :param triggers: Gets or sets the list of triggers. - :type triggers: list of :class:`ReleaseTriggerBase ` + :type triggers: list of :class:`object ` :param url: Gets url to access the release definition. :type url: str :param variable_groups: Gets or sets the list of variable groups. @@ -86,7 +86,7 @@ class ReleaseDefinition(Model): 'revision': {'key': 'revision', 'type': 'int'}, 'source': {'key': 'source', 'type': 'object'}, 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[ReleaseTriggerBase]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, 'url': {'key': 'url', 'type': 'str'}, 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} diff --git a/vsts/vsts/release/v4_1/models/release_trigger_base.py b/vsts/vsts/release/v4_1/models/release_trigger_base.py deleted file mode 100644 index 30c36fb3..00000000 --- a/vsts/vsts/release/v4_1/models/release_trigger_base.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseTriggerBase(Model): - """ReleaseTriggerBase. - - :param trigger_type: - :type trigger_type: object - """ - - _attribute_map = { - 'trigger_type': {'key': 'triggerType', 'type': 'object'} - } - - def __init__(self, trigger_type=None): - super(ReleaseTriggerBase, self).__init__() - self.trigger_type = trigger_type From 611a6fd1e3e36b8468a2e202c110d31f2f9a8c71 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 9 Jul 2018 12:39:25 -0400 Subject: [PATCH 049/191] bump version to 0.1.11 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 447c21d6..c89f20c2 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.10" +VERSION = "0.1.11" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 5a52bd81..93105927 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.10" +VERSION = "0.1.11" From 3951eda3d0aa81cb4e64c7dfd116dbc9d909d870 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 13 Jul 2018 15:50:17 -0400 Subject: [PATCH 050/191] add Members Entitlement Management to manage users. remove user area, which is intended to only be used to make s2s calls. --- .../__init__.py | 0 .../v4_0}/__init__.py | 0 .../member_entitlement_management_client.py | 214 ++++++++++++ .../v4_0/models/__init__.py | 55 +++ .../v4_0/models/access_level.py | 49 +++ .../v4_0/models/base_operation_result.py} | 24 +- .../v4_0/models/extension.py | 37 ++ .../v4_0/models/graph_group.py | 55 +++ .../v4_0/models/graph_member.py | 54 +++ .../v4_0/models/graph_subject.py | 49 +++ .../v4_0/models/group.py} | 24 +- .../v4_0/models/group_entitlement.py | 45 +++ .../group_entitlement_operation_reference.py | 42 +++ .../v4_0/models/group_operation_result.py | 35 ++ .../v4_0/models/json_patch_operation.py | 37 ++ .../v4_0/models/member_entitlement.py | 49 +++ .../member_entitlement_operation_reference.py | 42 +++ .../member_entitlements_patch_response.py | 31 ++ .../member_entitlements_post_response.py | 31 ++ .../member_entitlements_response_base.py | 29 ++ .../v4_0/models/operation_reference.py | 33 ++ .../v4_0/models/operation_result.py | 37 ++ .../v4_0/models/project_entitlement.py | 41 +++ .../v4_0/models/project_ref.py} | 20 +- .../v4_0}/models/reference_links.py | 0 .../v4_0/models/team_ref.py | 29 ++ .../v4_1/__init__.py | 7 + .../member_entitlement_management_client.py | 292 ++++++++++++++++ .../v4_1/models/__init__.py | 83 +++++ .../v4_1/models/access_level.py | 49 +++ .../v4_1/models/base_operation_result.py | 29 ++ .../v4_1/models/extension.py | 37 ++ .../v4_1/models/extension_summary_data.py | 61 ++++ .../v4_1/models/graph_group.py | 101 ++++++ .../v4_1/models/graph_member.py | 61 ++++ .../v4_1/models/graph_subject.py | 49 +++ .../v4_1/models/graph_subject_base.py | 37 ++ .../v4_1/models/graph_user.py | 61 ++++ .../v4_1/models/group.py | 29 ++ .../v4_1/models/group_entitlement.py | 53 +++ .../group_entitlement_operation_reference.py | 45 +++ .../v4_1/models/group_operation_result.py | 35 ++ .../v4_1/models/group_option.py | 29 ++ .../v4_1/models/json_patch_operation.py | 37 ++ .../v4_1/models/license_summary_data.py | 65 ++++ .../v4_1/models/member_entitlement.py | 46 +++ .../member_entitlement_operation_reference.py | 45 +++ .../member_entitlements_patch_response.py | 31 ++ .../member_entitlements_post_response.py | 31 ++ .../member_entitlements_response_base.py | 29 ++ .../v4_1/models/operation_reference.py | 37 ++ .../v4_1/models/operation_result.py | 37 ++ .../v4_1/models/paged_graph_member_list.py} | 18 +- .../v4_1/models/project_entitlement.py | 41 +++ .../v4_1/models/project_ref.py | 29 ++ .../v4_1/models/reference_links.py | 25 ++ .../v4_1/models/summary_data.py | 37 ++ .../v4_1/models/team_ref.py | 29 ++ .../v4_1/models/user_entitlement.py | 49 +++ .../user_entitlement_operation_reference.py | 45 +++ .../user_entitlement_operation_result.py | 37 ++ .../user_entitlements_patch_response.py | 31 ++ .../models/user_entitlements_post_response.py | 31 ++ .../models/user_entitlements_response_base.py | 29 ++ .../v4_1/models/users_summary.py | 41 +++ vsts/vsts/user/v4_1/models/__init__.py | 35 -- vsts/vsts/user/v4_1/models/avatar.py | 37 -- .../v4_1/models/create_user_parameters.py | 45 --- .../send_user_notification_parameters.py | 29 -- .../models/set_user_attribute_parameters.py | 37 -- vsts/vsts/user/v4_1/models/user.py | 73 ---- vsts/vsts/user/v4_1/models/user_attribute.py | 37 -- vsts/vsts/user/v4_1/models/user_attributes.py | 29 -- vsts/vsts/user/v4_1/user_client.py | 326 ------------------ 74 files changed, 2879 insertions(+), 689 deletions(-) rename vsts/vsts/{user => member_entitlement_management}/__init__.py (100%) rename vsts/vsts/{user/v4_1 => member_entitlement_management/v4_0}/__init__.py (100%) create mode 100644 vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/__init__.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/access_level.py rename vsts/vsts/{user/v4_1/models/mail_confirmation_parameters.py => member_entitlement_management/v4_0/models/base_operation_result.py} (50%) create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/extension.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py rename vsts/vsts/{user/v4_1/models/user_notification.py => member_entitlement_management/v4_0/models/group.py} (53%) create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py rename vsts/vsts/{user/v4_1/models/update_user_parameters.py => member_entitlement_management/v4_0/models/project_ref.py} (60%) rename vsts/vsts/{user/v4_1 => member_entitlement_management/v4_0}/models/reference_links.py (100%) create mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/__init__.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/__init__.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/access_level.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/extension.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_option.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py rename vsts/vsts/{user/v4_1/models/user_notifications.py => member_entitlement_management/v4_1/models/paged_graph_member_list.py} (60%) create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py create mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py delete mode 100644 vsts/vsts/user/v4_1/models/__init__.py delete mode 100644 vsts/vsts/user/v4_1/models/avatar.py delete mode 100644 vsts/vsts/user/v4_1/models/create_user_parameters.py delete mode 100644 vsts/vsts/user/v4_1/models/send_user_notification_parameters.py delete mode 100644 vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py delete mode 100644 vsts/vsts/user/v4_1/models/user.py delete mode 100644 vsts/vsts/user/v4_1/models/user_attribute.py delete mode 100644 vsts/vsts/user/v4_1/models/user_attributes.py delete mode 100644 vsts/vsts/user/v4_1/user_client.py diff --git a/vsts/vsts/user/__init__.py b/vsts/vsts/member_entitlement_management/__init__.py similarity index 100% rename from vsts/vsts/user/__init__.py rename to vsts/vsts/member_entitlement_management/__init__.py diff --git a/vsts/vsts/user/v4_1/__init__.py b/vsts/vsts/member_entitlement_management/v4_0/__init__.py similarity index 100% rename from vsts/vsts/user/v4_1/__init__.py rename to vsts/vsts/member_entitlement_management/v4_0/__init__.py diff --git a/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py b/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py new file mode 100644 index 00000000..7ec671d1 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py @@ -0,0 +1,214 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class MemberEntitlementManagementClient(VssClient): + """MemberEntitlementManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(MemberEntitlementManagementClient, 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 add_group_entitlement(self, group_entitlement, rule_option=None): + """AddGroupEntitlement. + [Preview API] Used to add members to a project in an account. It adds them to groups, assigns licenses, and assigns extensions. + :param :class:` ` group_entitlement: Member model for where to add the member and what licenses and extensions they should receive. + :param str rule_option: + :rtype: :class:` ` + """ + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + content = self._serialize.body(group_entitlement, 'GroupEntitlement') + response = self._send(http_method='POST', + location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', + version='4.0-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('GroupEntitlementOperationReference', response) + + def delete_group_entitlement(self, group_id, rule_option=None): + """DeleteGroupEntitlement. + [Preview API] Deletes members from an account + :param str group_id: memberId of the member to be removed. + :param str rule_option: + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + response = self._send(http_method='DELETE', + location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GroupEntitlementOperationReference', response) + + def get_group_entitlement(self, group_id): + """GetGroupEntitlement. + [Preview API] Used to get a group entitlement and its current rules + :param str group_id: + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + response = self._send(http_method='GET', + location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('GroupEntitlement', response) + + def get_group_entitlements(self): + """GetGroupEntitlements. + [Preview API] Used to get group entitlement information in an account + :rtype: [GroupEntitlement] + """ + response = self._send(http_method='GET', + location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', + version='4.0-preview.1', + returns_collection=True) + return self._deserialize('[GroupEntitlement]', response) + + def update_group_entitlement(self, document, group_id, rule_option=None): + """UpdateGroupEntitlement. + [Preview API] Used to edit a member in an account. Edits groups, licenses, and extensions. + :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used + :param str group_id: member Id of the member to be edit + :param str rule_option: + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('GroupEntitlementOperationReference', response) + + def add_member_entitlement(self, member_entitlement): + """AddMemberEntitlement. + [Preview API] Used to add members to a project in an account. It adds them to project groups, assigns licenses, and assigns extensions. + :param :class:` ` member_entitlement: Member model for where to add the member and what licenses and extensions they should receive. + :rtype: :class:` ` + """ + content = self._serialize.body(member_entitlement, 'MemberEntitlement') + response = self._send(http_method='POST', + location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', + version='4.0-preview.1', + content=content) + return self._deserialize('MemberEntitlementsPostResponse', response) + + def delete_member_entitlement(self, member_id): + """DeleteMemberEntitlement. + [Preview API] Deletes members from an account + :param str member_id: memberId of the member to be removed. + """ + route_values = {} + if member_id is not None: + route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') + self._send(http_method='DELETE', + location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', + version='4.0-preview.1', + route_values=route_values) + + def get_member_entitlement(self, member_id): + """GetMemberEntitlement. + [Preview API] Used to get member entitlement information in an account + :param str member_id: + :rtype: :class:` ` + """ + route_values = {} + if member_id is not None: + route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') + response = self._send(http_method='GET', + location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('MemberEntitlement', response) + + def get_member_entitlements(self, top, skip, filter=None, select=None): + """GetMemberEntitlements. + [Preview API] Used to get member entitlement information in an account + :param int top: + :param int skip: + :param str filter: + :param str select: + :rtype: [MemberEntitlement] + """ + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + if filter is not None: + query_parameters['filter'] = self._serialize.query('filter', filter, 'str') + if select is not None: + query_parameters['select'] = self._serialize.query('select', select, 'str') + response = self._send(http_method='GET', + location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', + version='4.0-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[MemberEntitlement]', response) + + def update_member_entitlement(self, document, member_id): + """UpdateMemberEntitlement. + [Preview API] Used to edit a member in an account. Edits groups, licenses, and extensions. + :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used + :param str member_id: member Id of the member to be edit + :rtype: :class:` ` + """ + route_values = {} + if member_id is not None: + route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', + version='4.0-preview.1', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + return self._deserialize('MemberEntitlementsPatchResponse', response) + + def update_member_entitlements(self, document): + """UpdateMemberEntitlements. + [Preview API] Used to edit multiple members in an account. Edits groups, licenses, and extensions. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatch document + :rtype: :class:` ` + """ + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', + version='4.0-preview.1', + content=content, + media_type='application/json-patch+json') + return self._deserialize('MemberEntitlementOperationReference', response) + diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/__init__.py b/vsts/vsts/member_entitlement_management/v4_0/models/__init__.py new file mode 100644 index 00000000..1499c62b --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/__init__.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .access_level import AccessLevel +from .base_operation_result import BaseOperationResult +from .extension import Extension +from .graph_group import GraphGroup +from .graph_member import GraphMember +from .graph_subject import GraphSubject +from .group import Group +from .group_entitlement import GroupEntitlement +from .group_entitlement_operation_reference import GroupEntitlementOperationReference +from .group_operation_result import GroupOperationResult +from .json_patch_operation import JsonPatchOperation +from .member_entitlement import MemberEntitlement +from .member_entitlement_operation_reference import MemberEntitlementOperationReference +from .member_entitlements_patch_response import MemberEntitlementsPatchResponse +from .member_entitlements_post_response import MemberEntitlementsPostResponse +from .member_entitlements_response_base import MemberEntitlementsResponseBase +from .operation_reference import OperationReference +from .operation_result import OperationResult +from .project_entitlement import ProjectEntitlement +from .project_ref import ProjectRef +from .reference_links import ReferenceLinks +from .team_ref import TeamRef + +__all__ = [ + 'AccessLevel', + 'BaseOperationResult', + 'Extension', + 'GraphGroup', + 'GraphMember', + 'GraphSubject', + 'Group', + 'GroupEntitlement', + 'GroupEntitlementOperationReference', + 'GroupOperationResult', + 'JsonPatchOperation', + 'MemberEntitlement', + 'MemberEntitlementOperationReference', + 'MemberEntitlementsPatchResponse', + 'MemberEntitlementsPostResponse', + 'MemberEntitlementsResponseBase', + 'OperationReference', + 'OperationResult', + 'ProjectEntitlement', + 'ProjectRef', + 'ReferenceLinks', + 'TeamRef', +] diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/access_level.py b/vsts/vsts/member_entitlement_management/v4_0/models/access_level.py new file mode 100644 index 00000000..90488c17 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/access_level.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessLevel(Model): + """AccessLevel. + + :param account_license_type: + :type account_license_type: object + :param assignment_source: + :type assignment_source: object + :param license_display_name: + :type license_display_name: str + :param licensing_source: + :type licensing_source: object + :param msdn_license_type: + :type msdn_license_type: object + :param status: + :type status: object + :param status_message: + :type status_message: str + """ + + _attribute_map = { + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'} + } + + def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): + super(AccessLevel, self).__init__() + self.account_license_type = account_license_type + self.assignment_source = assignment_source + self.license_display_name = license_display_name + self.licensing_source = licensing_source + self.msdn_license_type = msdn_license_type + self.status = status + self.status_message = status_message diff --git a/vsts/vsts/user/v4_1/models/mail_confirmation_parameters.py b/vsts/vsts/member_entitlement_management/v4_0/models/base_operation_result.py similarity index 50% rename from vsts/vsts/user/v4_1/models/mail_confirmation_parameters.py rename to vsts/vsts/member_entitlement_management/v4_0/models/base_operation_result.py index a8c07359..843f13fc 100644 --- a/vsts/vsts/user/v4_1/models/mail_confirmation_parameters.py +++ b/vsts/vsts/member_entitlement_management/v4_0/models/base_operation_result.py @@ -9,21 +9,21 @@ from msrest.serialization import Model -class MailConfirmationParameters(Model): - """MailConfirmationParameters. +class BaseOperationResult(Model): + """BaseOperationResult. - :param challenge_code: The unique code that proves ownership of the email address. - :type challenge_code: str - :param mail_address: The email address to be confirmed. - :type mail_address: str + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool """ _attribute_map = { - 'challenge_code': {'key': 'challengeCode', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'} + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'} } - def __init__(self, challenge_code=None, mail_address=None): - super(MailConfirmationParameters, self).__init__() - self.challenge_code = challenge_code - self.mail_address = mail_address + def __init__(self, errors=None, is_success=None): + super(BaseOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/extension.py b/vsts/vsts/member_entitlement_management/v4_0/models/extension.py new file mode 100644 index 00000000..8d037ee6 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/extension.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Extension(Model): + """Extension. + + :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule + :type assignment_source: object + :param id: Gallery Id of the Extension + :type id: str + :param name: Friendly name of this extension + :type name: str + :param source: Source of this extension assignment. Ex: msdn, account, none, ect. + :type source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, assignment_source=None, id=None, name=None, source=None): + super(Extension, self).__init__() + self.assignment_source = assignment_source + self.id = id + self.name = name + self.source = source diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py b/vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py new file mode 100644 index 00000000..babb06a7 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_member import GraphMember + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None, description=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py b/vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py new file mode 100644 index 00000000..fb9dc497 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py @@ -0,0 +1,54 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_subject import GraphSubject + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. + :type principal_name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url) + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py b/vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py new file mode 100644 index 00000000..f970efd0 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubject(Model): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None): + super(GraphSubject, self).__init__() + self._links = _links + self.descriptor = descriptor + self.display_name = display_name + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind + self.url = url diff --git a/vsts/vsts/user/v4_1/models/user_notification.py b/vsts/vsts/member_entitlement_management/v4_0/models/group.py similarity index 53% rename from vsts/vsts/user/v4_1/models/user_notification.py rename to vsts/vsts/member_entitlement_management/v4_0/models/group.py index aeddef33..a8f1a156 100644 --- a/vsts/vsts/user/v4_1/models/user_notification.py +++ b/vsts/vsts/member_entitlement_management/v4_0/models/group.py @@ -9,21 +9,21 @@ from msrest.serialization import Model -class UserNotification(Model): - """UserNotification. +class Group(Model): + """Group. - :param event_id: Unique notification id (must be idempotent) - :type event_id: str - :param time_stamp: Time at which notification was posted (must be idempotent) - :type time_stamp: datetime + :param display_name: + :type display_name: str + :param group_type: + :type group_type: object """ _attribute_map = { - 'event_id': {'key': 'eventId', 'type': 'str'}, - 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'} + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'group_type': {'key': 'groupType', 'type': 'object'} } - def __init__(self, event_id=None, time_stamp=None): - super(UserNotification, self).__init__() - self.event_id = event_id - self.time_stamp = time_stamp + def __init__(self, display_name=None, group_type=None): + super(Group, self).__init__() + self.display_name = display_name + self.group_type = group_type diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py b/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py new file mode 100644 index 00000000..8d663451 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py @@ -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.serialization import Model + + +class GroupEntitlement(Model): + """GroupEntitlement. + + :param extension_rules: Extension Rules + :type extension_rules: list of :class:`Extension ` + :param group: Member reference + :type group: :class:`GraphGroup ` + :param id: The unique identifier which matches the Id of the GraphMember + :type id: str + :param license_rule: License Rule + :type license_rule: :class:`AccessLevel ` + :param project_entitlements: Relation between a project and the member's effective permissions in that project + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param status: + :type status: object + """ + + _attribute_map = { + 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, + 'group': {'key': 'group', 'type': 'GraphGroup'}, + 'id': {'key': 'id', 'type': 'str'}, + 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, extension_rules=None, group=None, id=None, license_rule=None, project_entitlements=None, status=None): + super(GroupEntitlement, self).__init__() + self.extension_rules = extension_rules + self.group = group + self.id = id + self.license_rule = license_rule + self.project_entitlements = project_entitlements + self.status = status diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py new file mode 100644 index 00000000..6a348095 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py @@ -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 .operation_reference import OperationReference + + +class GroupEntitlementOperationReference(OperationReference): + """GroupEntitlementOperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + :param completed: Operation completed with success or failure + :type completed: bool + :param have_results_succeeded: True if all operations were successful + :type have_results_succeeded: bool + :param results: List of results for each operation + :type results: list of :class:`GroupOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[GroupOperationResult]'} + } + + def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(GroupEntitlementOperationReference, self).__init__(id=id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py b/vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py new file mode 100644 index 00000000..b3e2adab --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .base_operation_result import BaseOperationResult + + +class GroupOperationResult(BaseOperationResult): + """GroupOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + :param group_id: Identifier of the Group being acted upon + :type group_id: str + :param result: Result of the Groupentitlement after the operation + :type result: :class:`GroupEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'GroupEntitlement'} + } + + def __init__(self, errors=None, is_success=None, group_id=None, result=None): + super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) + self.group_id = group_id + self.result = result diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py b/vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py new file mode 100644 index 00000000..7d45b0f6 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py new file mode 100644 index 00000000..7a1ec3c7 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MemberEntitlement(Model): + """MemberEntitlement. + + :param access_level: Member's access level denoted by a license + :type access_level: :class:`AccessLevel ` + :param extensions: Member's extensions + :type extensions: list of :class:`Extension ` + :param group_assignments: GroupEntitlements that this member belongs to + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the GraphMember + :type id: str + :param last_accessed_date: Date the Member last access the collection + :type last_accessed_date: datetime + :param member: Member reference + :type member: :class:`GraphMember ` + :param project_entitlements: Relation between a project and the member's effective permissions in that project + :type project_entitlements: list of :class:`ProjectEntitlement ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'member': {'key': 'member', 'type': 'GraphMember'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'} + } + + def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, member=None, project_entitlements=None): + super(MemberEntitlement, self).__init__() + self.access_level = access_level + self.extensions = extensions + self.group_assignments = group_assignments + self.id = id + self.last_accessed_date = last_accessed_date + self.member = member + self.project_entitlements = project_entitlements diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py new file mode 100644 index 00000000..50ba8021 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py @@ -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 .operation_reference import OperationReference + + +class MemberEntitlementOperationReference(OperationReference): + """MemberEntitlementOperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + :param completed: Operation completed with success or failure + :type completed: bool + :param have_results_succeeded: True if all operations were successful + :type have_results_succeeded: bool + :param results: List of results for each operation + :type results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[OperationResult]'} + } + + def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(MemberEntitlementOperationReference, self).__init__(id=id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py new file mode 100644 index 00000000..d95b35cc --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase + + +class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPatchResponse. + + :param is_success: True if all operations were successful + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_results: List of results for each operation + :type operation_results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_results=None): + super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_results = operation_results diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py new file mode 100644 index 00000000..c4c1f122 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase + + +class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPostResponse. + + :param is_success: True if all operations were successful + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_result: Operation result + :type operation_result: :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_result=None): + super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_result = operation_result diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py new file mode 100644 index 00000000..ba588156 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MemberEntitlementsResponseBase(Model): + """MemberEntitlementsResponseBase. + + :param is_success: True if all operations were successful + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations have been applied + :type member_entitlement: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} + } + + def __init__(self, is_success=None, member_entitlement=None): + super(MemberEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.member_entitlement = member_entitlement diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py b/vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py new file mode 100644 index 00000000..fb73a6c6 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OperationReference(Model): + """OperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.status = status + self.url = url diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py b/vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py new file mode 100644 index 00000000..59f1744f --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OperationResult(Model): + """OperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + :param member_id: Identifier of the Member being acted upon + :type member_id: str + :param result: Result of the MemberEntitlement after the operation + :type result: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_id': {'key': 'memberId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'MemberEntitlement'} + } + + def __init__(self, errors=None, is_success=None, member_id=None, result=None): + super(OperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.member_id = member_id + self.result = result diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py b/vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py new file mode 100644 index 00000000..ceb1ae33 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectEntitlement(Model): + """ProjectEntitlement. + + :param assignment_source: + :type assignment_source: object + :param group: + :type group: :class:`Group ` + :param is_project_permission_inherited: + :type is_project_permission_inherited: bool + :param project_ref: + :type project_ref: :class:`ProjectRef ` + :param team_refs: + :type team_refs: list of :class:`TeamRef ` + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'group': {'key': 'group', 'type': 'Group'}, + 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, + 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, + 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} + } + + def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_ref=None, team_refs=None): + super(ProjectEntitlement, self).__init__() + self.assignment_source = assignment_source + self.group = group + self.is_project_permission_inherited = is_project_permission_inherited + self.project_ref = project_ref + self.team_refs = team_refs diff --git a/vsts/vsts/user/v4_1/models/update_user_parameters.py b/vsts/vsts/member_entitlement_management/v4_0/models/project_ref.py similarity index 60% rename from vsts/vsts/user/v4_1/models/update_user_parameters.py rename to vsts/vsts/member_entitlement_management/v4_0/models/project_ref.py index 5726e001..847ba331 100644 --- a/vsts/vsts/user/v4_1/models/update_user_parameters.py +++ b/vsts/vsts/member_entitlement_management/v4_0/models/project_ref.py @@ -9,17 +9,21 @@ from msrest.serialization import Model -class UpdateUserParameters(Model): - """UpdateUserParameters. +class ProjectRef(Model): + """ProjectRef. - :param properties: The collection of properties to set. See "User" for valid fields. - :type properties: :class:`object ` + :param id: + :type id: str + :param name: + :type name: str """ _attribute_map = { - 'properties': {'key': 'properties', 'type': 'object'} + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, properties=None): - super(UpdateUserParameters, self).__init__() - self.properties = properties + def __init__(self, id=None, name=None): + super(ProjectRef, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/user/v4_1/models/reference_links.py b/vsts/vsts/member_entitlement_management/v4_0/models/reference_links.py similarity index 100% rename from vsts/vsts/user/v4_1/models/reference_links.py rename to vsts/vsts/member_entitlement_management/v4_0/models/reference_links.py diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py b/vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py new file mode 100644 index 00000000..2e6a6e36 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamRef(Model): + """TeamRef. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(TeamRef, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/member_entitlement_management/v4_1/__init__.py b/vsts/vsts/member_entitlement_management/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py b/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py new file mode 100644 index 00000000..4cb97035 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py @@ -0,0 +1,292 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient +from . import models + + +class MemberEntitlementManagementClient(VssClient): + """MemberEntitlementManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(MemberEntitlementManagementClient, 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 add_group_entitlement(self, group_entitlement, rule_option=None): + """AddGroupEntitlement. + [Preview API] Create a group entitlement with license rule, extension rule. + :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups + :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be created and applied to it’s members (default option) or just be tested + :rtype: :class:` ` + """ + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + content = self._serialize.body(group_entitlement, 'GroupEntitlement') + response = self._send(http_method='POST', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('GroupEntitlementOperationReference', response) + + def delete_group_entitlement(self, group_id, rule_option=None, remove_group_membership=None): + """DeleteGroupEntitlement. + [Preview API] Delete a group entitlement. + :param str group_id: ID of the group to delete. + :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be deleted and the changes are applied to it’s members (default option) or just be tested + :param bool remove_group_membership: Optional parameter that specifies whether the group with the given ID should be removed from all other groups + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + if remove_group_membership is not None: + query_parameters['removeGroupMembership'] = self._serialize.query('remove_group_membership', remove_group_membership, 'bool') + response = self._send(http_method='DELETE', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GroupEntitlementOperationReference', response) + + def get_group_entitlement(self, group_id): + """GetGroupEntitlement. + [Preview API] Get a group entitlement. + :param str group_id: ID of the group. + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + response = self._send(http_method='GET', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('GroupEntitlement', response) + + def get_group_entitlements(self): + """GetGroupEntitlements. + [Preview API] Get the group entitlements for an account. + :rtype: [GroupEntitlement] + """ + response = self._send(http_method='GET', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='4.1-preview.1', + returns_collection=True) + return self._deserialize('[GroupEntitlement]', response) + + def update_group_entitlement(self, document, group_id, rule_option=None): + """UpdateGroupEntitlement. + [Preview API] Update entitlements (License Rule, Extensions Rule, Project memberships etc.) for a group. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. + :param str group_id: ID of the group. + :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be updated and the changes are applied to it’s members (default option) or just be tested + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('GroupEntitlementOperationReference', response) + + def add_member_to_group(self, group_id, member_id): + """AddMemberToGroup. + [Preview API] Add a member to a Group. + :param str group_id: Id of the Group. + :param str member_id: Id of the member to add. + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if member_id is not None: + route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') + self._send(http_method='PUT', + location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', + version='4.1-preview.1', + route_values=route_values) + + def get_group_members(self, group_id, max_results=None, paging_token=None): + """GetGroupMembers. + [Preview API] Get direct members of a Group. + :param str group_id: Id of the Group. + :param int max_results: Maximum number of results to retrieve. + :param str paging_token: Paging Token from the previous page fetched. If the 'pagingToken' is null, the results would be fetched from the begining of the Members List. + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if max_results is not None: + query_parameters['maxResults'] = self._serialize.query('max_results', max_results, 'int') + if paging_token is not None: + query_parameters['pagingToken'] = self._serialize.query('paging_token', paging_token, 'str') + response = self._send(http_method='GET', + location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', + version='4.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PagedGraphMemberList', response) + + def remove_member_from_group(self, group_id, member_id): + """RemoveMemberFromGroup. + [Preview API] Remove a member from a Group. + :param str group_id: Id of the group. + :param str member_id: Id of the member to remove. + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if member_id is not None: + route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') + self._send(http_method='DELETE', + location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', + version='4.1-preview.1', + route_values=route_values) + + def add_user_entitlement(self, user_entitlement): + """AddUserEntitlement. + [Preview API] Add a user, assign license and extensions and make them a member of a project group in an account. + :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. + :rtype: :class:` ` + """ + content = self._serialize.body(user_entitlement, 'UserEntitlement') + response = self._send(http_method='POST', + location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', + version='4.1-preview.1', + content=content) + return self._deserialize('UserEntitlementsPostResponse', response) + + def get_user_entitlements(self, top=None, skip=None, filter=None, select=None): + """GetUserEntitlements. + [Preview API] Get a paged set of user entitlements matching the filter criteria. If no filter is is passed, a page from all the account users is returned. + :param int top: Maximum number of the user entitlements to return. Max value is 10000. Default value is 100 + :param int skip: Offset: Number of records to skip. Default value is 0 + :param str filter: Comma (",") separated list of properties and their values to filter on. Currently, the API only supports filtering by ExtensionId. An example parameter would be filter=extensionId eq search. + :param str select: Comma (",") separated list of properties to select in the result entitlements. names of the properties are - 'Projects, 'Extensions' and 'Grouprules'. + :rtype: [UserEntitlement] + """ + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + if filter is not None: + query_parameters['filter'] = self._serialize.query('filter', filter, 'str') + if select is not None: + query_parameters['select'] = self._serialize.query('select', select, 'str') + response = self._send(http_method='GET', + location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', + version='4.1-preview.1', + query_parameters=query_parameters, + returns_collection=True) + return self._deserialize('[UserEntitlement]', response) + + def update_user_entitlements(self, document, do_not_send_invite_for_new_users=None): + """UpdateUserEntitlements. + [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. + :param bool do_not_send_invite_for_new_users: Whether to send email invites to new users or not + :rtype: :class:` ` + """ + query_parameters = {} + if do_not_send_invite_for_new_users is not None: + query_parameters['doNotSendInviteForNewUsers'] = self._serialize.query('do_not_send_invite_for_new_users', do_not_send_invite_for_new_users, 'bool') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', + version='4.1-preview.1', + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('UserEntitlementOperationReference', response) + + def delete_user_entitlement(self, user_id): + """DeleteUserEntitlement. + [Preview API] Delete a user from the account. + :param str user_id: ID of the user. + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + self._send(http_method='DELETE', + location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', + version='4.1-preview.1', + route_values=route_values) + + def get_user_entitlement(self, user_id): + """GetUserEntitlement. + [Preview API] Get User Entitlement for a user. + :param str user_id: ID of the user. + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + response = self._send(http_method='GET', + location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('UserEntitlement', response) + + def update_user_entitlement(self, document, user_id): + """UpdateUserEntitlement. + [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for a user. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. + :param str user_id: ID of the user. + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', + version='4.1-preview.1', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + return self._deserialize('UserEntitlementsPatchResponse', response) + + def get_users_summary(self, select=None): + """GetUsersSummary. + [Preview API] Get summary of Licenses, Extension, Projects, Groups and their assignments in the collection. + :param str select: Comma (",") separated list of properties to select. Supported property names are {AccessLevels, Licenses, Extensions, Projects, Groups}. + :rtype: :class:` ` + """ + query_parameters = {} + if select is not None: + query_parameters['select'] = self._serialize.query('select', select, 'str') + response = self._send(http_method='GET', + location_id='5ae55b13-c9dd-49d1-957e-6e76c152e3d9', + version='4.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('UsersSummary', response) + diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/__init__.py b/vsts/vsts/member_entitlement_management/v4_1/models/__init__.py new file mode 100644 index 00000000..97f1a285 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/__init__.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------------------------- +# 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 .access_level import AccessLevel +from .base_operation_result import BaseOperationResult +from .extension import Extension +from .extension_summary_data import ExtensionSummaryData +from .graph_group import GraphGroup +from .graph_member import GraphMember +from .graph_subject import GraphSubject +from .graph_subject_base import GraphSubjectBase +from .graph_user import GraphUser +from .group import Group +from .group_entitlement import GroupEntitlement +from .group_entitlement_operation_reference import GroupEntitlementOperationReference +from .group_operation_result import GroupOperationResult +from .group_option import GroupOption +from .json_patch_operation import JsonPatchOperation +from .license_summary_data import LicenseSummaryData +from .member_entitlement import MemberEntitlement +from .member_entitlement_operation_reference import MemberEntitlementOperationReference +from .member_entitlements_patch_response import MemberEntitlementsPatchResponse +from .member_entitlements_post_response import MemberEntitlementsPostResponse +from .member_entitlements_response_base import MemberEntitlementsResponseBase +from .operation_reference import OperationReference +from .operation_result import OperationResult +from .paged_graph_member_list import PagedGraphMemberList +from .project_entitlement import ProjectEntitlement +from .project_ref import ProjectRef +from .reference_links import ReferenceLinks +from .summary_data import SummaryData +from .team_ref import TeamRef +from .user_entitlement import UserEntitlement +from .user_entitlement_operation_reference import UserEntitlementOperationReference +from .user_entitlement_operation_result import UserEntitlementOperationResult +from .user_entitlements_patch_response import UserEntitlementsPatchResponse +from .user_entitlements_post_response import UserEntitlementsPostResponse +from .user_entitlements_response_base import UserEntitlementsResponseBase +from .users_summary import UsersSummary + +__all__ = [ + 'AccessLevel', + 'BaseOperationResult', + 'Extension', + 'ExtensionSummaryData', + 'GraphGroup', + 'GraphMember', + 'GraphSubject', + 'GraphSubjectBase', + 'GraphUser', + 'Group', + 'GroupEntitlement', + 'GroupEntitlementOperationReference', + 'GroupOperationResult', + 'GroupOption', + 'JsonPatchOperation', + 'LicenseSummaryData', + 'MemberEntitlement', + 'MemberEntitlementOperationReference', + 'MemberEntitlementsPatchResponse', + 'MemberEntitlementsPostResponse', + 'MemberEntitlementsResponseBase', + 'OperationReference', + 'OperationResult', + 'PagedGraphMemberList', + 'ProjectEntitlement', + 'ProjectRef', + 'ReferenceLinks', + 'SummaryData', + 'TeamRef', + 'UserEntitlement', + 'UserEntitlementOperationReference', + 'UserEntitlementOperationResult', + 'UserEntitlementsPatchResponse', + 'UserEntitlementsPostResponse', + 'UserEntitlementsResponseBase', + 'UsersSummary', +] diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/access_level.py b/vsts/vsts/member_entitlement_management/v4_1/models/access_level.py new file mode 100644 index 00000000..827a40c0 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/access_level.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessLevel(Model): + """AccessLevel. + + :param account_license_type: Type of Account License (e.g. Express, Stakeholder etc.) + :type account_license_type: object + :param assignment_source: Assignment Source of the License (e.g. Group, Unknown etc. + :type assignment_source: object + :param license_display_name: Display name of the License + :type license_display_name: str + :param licensing_source: Licensing Source (e.g. Account. MSDN etc.) + :type licensing_source: object + :param msdn_license_type: Type of MSDN License (e.g. Visual Studio Professional, Visual Studio Enterprise etc.) + :type msdn_license_type: object + :param status: User status in the account + :type status: object + :param status_message: Status message. + :type status_message: str + """ + + _attribute_map = { + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'} + } + + def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): + super(AccessLevel, self).__init__() + self.account_license_type = account_license_type + self.assignment_source = assignment_source + self.license_display_name = license_display_name + self.licensing_source = licensing_source + self.msdn_license_type = msdn_license_type + self.status = status + self.status_message = status_message diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py new file mode 100644 index 00000000..843f13fc --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BaseOperationResult(Model): + """BaseOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'} + } + + def __init__(self, errors=None, is_success=None): + super(BaseOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/extension.py b/vsts/vsts/member_entitlement_management/v4_1/models/extension.py new file mode 100644 index 00000000..6d1963cf --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/extension.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Extension(Model): + """Extension. + + :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule. + :type assignment_source: object + :param id: Gallery Id of the Extension. + :type id: str + :param name: Friendly name of this extension. + :type name: str + :param source: Source of this extension assignment. Ex: msdn, account, none, etc. + :type source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, assignment_source=None, id=None, name=None, source=None): + super(Extension, self).__init__() + self.assignment_source = assignment_source + self.id = id + self.name = name + self.source = source diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py b/vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py new file mode 100644 index 00000000..ec0de188 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .summary_data import SummaryData + + +class ExtensionSummaryData(SummaryData): + """ExtensionSummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + :param assigned_through_subscription: Count of Extension Licenses assigned to users through msdn. + :type assigned_through_subscription: int + :param extension_id: Gallery Id of the Extension + :type extension_id: str + :param extension_name: Friendly name of this extension + :type extension_name: str + :param is_trial_version: Whether its a Trial Version. + :type is_trial_version: bool + :param minimum_license_required: Minimum License Required for the Extension. + :type minimum_license_required: object + :param remaining_trial_days: Days remaining for the Trial to expire. + :type remaining_trial_days: int + :param trial_expiry_date: Date on which the Trial expires. + :type trial_expiry_date: datetime + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'assigned_through_subscription': {'key': 'assignedThroughSubscription', 'type': 'int'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'is_trial_version': {'key': 'isTrialVersion', 'type': 'bool'}, + 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, + 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, + 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None, assigned_through_subscription=None, extension_id=None, extension_name=None, is_trial_version=None, minimum_license_required=None, remaining_trial_days=None, trial_expiry_date=None): + super(ExtensionSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) + self.assigned_through_subscription = assigned_through_subscription + self.extension_id = extension_id + self.extension_name = extension_name + self.is_trial_version = is_trial_version + self.minimum_license_required = minimum_license_required + self.remaining_trial_days = remaining_trial_days + self.trial_expiry_date = trial_expiry_date diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py new file mode 100644 index 00000000..c28da383 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_member import GraphMember + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + :param is_cross_project: + :type is_cross_project: bool + :param is_deleted: + :type is_deleted: bool + :param is_global_scope: + :type is_global_scope: bool + :param is_restricted_visible: + :type is_restricted_visible: bool + :param local_scope_id: + :type local_scope_id: str + :param scope_id: + :type scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: str + :param securing_host_id: + :type securing_host_id: str + :param special_type: + :type special_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, + 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'special_type': {'key': 'specialType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description + self.is_cross_project = is_cross_project + self.is_deleted = is_deleted + self.is_global_scope = is_global_scope + self.is_restricted_visible = is_restricted_visible + self.local_scope_id = local_scope_id + self.scope_id = scope_id + self.scope_name = scope_name + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.special_type = special_type diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py new file mode 100644 index 00000000..7f518143 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_subject import GraphSubject + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_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'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.cuid = cuid + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py new file mode 100644 index 00000000..3d92d54c --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_subject_base import GraphSubjectBase + + +class GraphSubject(GraphSubjectBase): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): + super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) + self.legacy_descriptor = legacy_descriptor + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py new file mode 100644 index 00000000..f8b8d21a --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py new file mode 100644 index 00000000..e04a89ed --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------------------------- +# 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 .graph_member import GraphMember + + +class GraphUser(GraphMember): + """GraphUser. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. + :type meta_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'meta_type': {'key': 'metaType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.meta_type = meta_type diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group.py b/vsts/vsts/member_entitlement_management/v4_1/models/group.py new file mode 100644 index 00000000..8bb6729e --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/group.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Group(Model): + """Group. + + :param display_name: Display Name of the Group + :type display_name: str + :param group_type: Group Type + :type group_type: object + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'group_type': {'key': 'groupType', 'type': 'object'} + } + + def __init__(self, display_name=None, group_type=None): + super(Group, self).__init__() + self.display_name = display_name + self.group_type = group_type diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py new file mode 100644 index 00000000..3a3d6c94 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GroupEntitlement(Model): + """GroupEntitlement. + + :param extension_rules: Extension Rules. + :type extension_rules: list of :class:`Extension ` + :param group: Member reference. + :type group: :class:`GraphGroup ` + :param id: The unique identifier which matches the Id of the GraphMember. + :type id: str + :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). + :type last_executed: datetime + :param license_rule: License Rule. + :type license_rule: :class:`AccessLevel ` + :param members: Group members. Only used when creating a new group. + :type members: list of :class:`UserEntitlement ` + :param project_entitlements: Relation between a project and the member's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param status: The status of the group rule. + :type status: object + """ + + _attribute_map = { + 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, + 'group': {'key': 'group', 'type': 'GraphGroup'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_executed': {'key': 'lastExecuted', 'type': 'iso-8601'}, + 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, + 'members': {'key': 'members', 'type': '[UserEntitlement]'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, extension_rules=None, group=None, id=None, last_executed=None, license_rule=None, members=None, project_entitlements=None, status=None): + super(GroupEntitlement, self).__init__() + self.extension_rules = extension_rules + self.group = group + self.id = id + self.last_executed = last_executed + self.license_rule = license_rule + self.members = members + self.project_entitlements = project_entitlements + self.status = status diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py new file mode 100644 index 00000000..1ce5575e --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py @@ -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 .operation_reference import OperationReference + + +class GroupEntitlementOperationReference(OperationReference): + """GroupEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure. + :type completed: bool + :param have_results_succeeded: True if all operations were successful. + :type have_results_succeeded: bool + :param results: List of results for each operation. + :type results: list of :class:`GroupOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[GroupOperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(GroupEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py new file mode 100644 index 00000000..67bb685d --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .base_operation_result import BaseOperationResult + + +class GroupOperationResult(BaseOperationResult): + """GroupOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + :param group_id: Identifier of the Group being acted upon + :type group_id: str + :param result: Result of the Groupentitlement after the operation + :type result: :class:`GroupEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'GroupEntitlement'} + } + + def __init__(self, errors=None, is_success=None, group_id=None, result=None): + super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) + self.group_id = group_id + self.result = result diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_option.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_option.py new file mode 100644 index 00000000..6d56eebc --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/group_option.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GroupOption(Model): + """GroupOption. + + :param access_level: Access Level + :type access_level: :class:`AccessLevel ` + :param group: Group + :type group: :class:`Group ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'group': {'key': 'group', 'type': 'Group'} + } + + def __init__(self, access_level=None, group=None): + super(GroupOption, self).__init__() + self.access_level = access_level + self.group = group diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py b/vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py new file mode 100644 index 00000000..7d45b0f6 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py b/vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py new file mode 100644 index 00000000..acd6d6eb --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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 .summary_data import SummaryData + + +class LicenseSummaryData(SummaryData): + """LicenseSummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + :param account_license_type: Type of Account License. + :type account_license_type: object + :param disabled: Count of Disabled Licenses. + :type disabled: int + :param is_purchasable: Designates if this license quantity can be changed through purchase + :type is_purchasable: bool + :param license_name: Name of the License. + :type license_name: str + :param msdn_license_type: Type of MSDN License. + :type msdn_license_type: object + :param next_billing_date: Specifies the date when billing will charge for paid licenses + :type next_billing_date: datetime + :param source: Source of the License. + :type source: object + :param total_after_next_billing_date: Total license count after next billing cycle + :type total_after_next_billing_date: int + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'disabled': {'key': 'disabled', 'type': 'int'}, + 'is_purchasable': {'key': 'isPurchasable', 'type': 'bool'}, + 'license_name': {'key': 'licenseName', 'type': 'str'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'next_billing_date': {'key': 'nextBillingDate', 'type': 'iso-8601'}, + 'source': {'key': 'source', 'type': 'object'}, + 'total_after_next_billing_date': {'key': 'totalAfterNextBillingDate', 'type': 'int'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None, account_license_type=None, disabled=None, is_purchasable=None, license_name=None, msdn_license_type=None, next_billing_date=None, source=None, total_after_next_billing_date=None): + super(LicenseSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) + self.account_license_type = account_license_type + self.disabled = disabled + self.is_purchasable = is_purchasable + self.license_name = license_name + self.msdn_license_type = msdn_license_type + self.next_billing_date = next_billing_date + self.source = source + self.total_after_next_billing_date = total_after_next_billing_date diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py new file mode 100644 index 00000000..897d3ad3 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# 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 .user_entitlement import UserEntitlement + + +class MemberEntitlement(UserEntitlement): + """MemberEntitlement. + + :param access_level: User's access level denoted by a license. + :type access_level: :class:`AccessLevel ` + :param extensions: User's extensions. + :type extensions: list of :class:`Extension ` + :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. + :type id: str + :param last_accessed_date: [Readonly] Date the user last accessed the collection. + :type last_accessed_date: datetime + :param project_entitlements: Relation between a project and the user's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param user: User reference. + :type user: :class:`GraphUser ` + :param member: Member reference + :type member: :class:`GraphMember ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'user': {'key': 'user', 'type': 'GraphUser'}, + 'member': {'key': 'member', 'type': 'GraphMember'} + } + + def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None, member=None): + super(MemberEntitlement, self).__init__(access_level=access_level, extensions=extensions, group_assignments=group_assignments, id=id, last_accessed_date=last_accessed_date, project_entitlements=project_entitlements, user=user) + self.member = member diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py new file mode 100644 index 00000000..a07854bd --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py @@ -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 .operation_reference import OperationReference + + +class MemberEntitlementOperationReference(OperationReference): + """MemberEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure + :type completed: bool + :param have_results_succeeded: True if all operations were successful + :type have_results_succeeded: bool + :param results: List of results for each operation + :type results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[OperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(MemberEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py new file mode 100644 index 00000000..c5f20a5e --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase + + +class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPatchResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_results: List of results for each operation + :type operation_results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_results=None): + super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_results = operation_results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py new file mode 100644 index 00000000..ab88e7fd --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase + + +class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPostResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_result: Operation result + :type operation_result: :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_result=None): + super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_result = operation_result diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py new file mode 100644 index 00000000..241ca3f0 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class MemberEntitlementsResponseBase(Model): + """MemberEntitlementsResponseBase. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} + } + + def __init__(self, is_success=None, member_entitlement=None): + super(MemberEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.member_entitlement = member_entitlement diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py new file mode 100644 index 00000000..cdbef013 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OperationReference(Model): + """OperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.plugin_id = plugin_id + self.status = status + self.url = url diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py new file mode 100644 index 00000000..7624a6f9 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class OperationResult(Model): + """OperationResult. + + :param errors: List of error codes paired with their corresponding error messages. + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation. + :type is_success: bool + :param member_id: Identifier of the Member being acted upon. + :type member_id: str + :param result: Result of the MemberEntitlement after the operation. + :type result: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_id': {'key': 'memberId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'MemberEntitlement'} + } + + def __init__(self, errors=None, is_success=None, member_id=None, result=None): + super(OperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.member_id = member_id + self.result = result diff --git a/vsts/vsts/user/v4_1/models/user_notifications.py b/vsts/vsts/member_entitlement_management/v4_1/models/paged_graph_member_list.py similarity index 60% rename from vsts/vsts/user/v4_1/models/user_notifications.py rename to vsts/vsts/member_entitlement_management/v4_1/models/paged_graph_member_list.py index b3528bcc..99ca90c5 100644 --- a/vsts/vsts/user/v4_1/models/user_notifications.py +++ b/vsts/vsts/member_entitlement_management/v4_1/models/paged_graph_member_list.py @@ -9,21 +9,21 @@ from msrest.serialization import Model -class UserNotifications(Model): - """UserNotifications. +class PagedGraphMemberList(Model): + """PagedGraphMemberList. - :param continuation_token: Continuation token to query the next segment + :param continuation_token: :type continuation_token: str - :param notifications: Collection of notifications - :type notifications: list of :class:`UserNotification ` + :param members: + :type members: list of :class:`UserEntitlement ` """ _attribute_map = { 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'notifications': {'key': 'notifications', 'type': '[UserNotification]'} + 'members': {'key': 'members', 'type': '[UserEntitlement]'} } - def __init__(self, continuation_token=None, notifications=None): - super(UserNotifications, self).__init__() + def __init__(self, continuation_token=None, members=None): + super(PagedGraphMemberList, self).__init__() self.continuation_token = continuation_token - self.notifications = notifications + self.members = members diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py new file mode 100644 index 00000000..e443fcc4 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectEntitlement(Model): + """ProjectEntitlement. + + :param assignment_source: Assignment Source (e.g. Group or Unknown). + :type assignment_source: object + :param group: Project Group (e.g. Contributor, Reader etc.) + :type group: :class:`Group ` + :param is_project_permission_inherited: Whether the user is inheriting permissions to a project through a VSTS or AAD group membership. + :type is_project_permission_inherited: bool + :param project_ref: Project Ref + :type project_ref: :class:`ProjectRef ` + :param team_refs: Team Ref. + :type team_refs: list of :class:`TeamRef ` + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'group': {'key': 'group', 'type': 'Group'}, + 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, + 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, + 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} + } + + def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_ref=None, team_refs=None): + super(ProjectEntitlement, self).__init__() + self.assignment_source = assignment_source + self.group = group + self.is_project_permission_inherited = is_project_permission_inherited + self.project_ref = project_ref + self.team_refs = team_refs diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py b/vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py new file mode 100644 index 00000000..f25727c4 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ProjectRef(Model): + """ProjectRef. + + :param id: Project ID. + :type id: str + :param name: Project Name. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectRef, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py b/vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py new file mode 100644 index 00000000..54f03acd --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py b/vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py new file mode 100644 index 00000000..8bb32cea --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SummaryData(Model): + """SummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None): + super(SummaryData, self).__init__() + self.assigned = assigned + self.available = available + self.included_quantity = included_quantity + self.total = total diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py b/vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py new file mode 100644 index 00000000..56471504 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class TeamRef(Model): + """TeamRef. + + :param id: Team ID + :type id: str + :param name: Team Name + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(TeamRef, self).__init__() + self.id = id + self.name = name diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py new file mode 100644 index 00000000..e1b27dfa --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserEntitlement(Model): + """UserEntitlement. + + :param access_level: User's access level denoted by a license. + :type access_level: :class:`AccessLevel ` + :param extensions: User's extensions. + :type extensions: list of :class:`Extension ` + :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. + :type id: str + :param last_accessed_date: [Readonly] Date the user last accessed the collection. + :type last_accessed_date: datetime + :param project_entitlements: Relation between a project and the user's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param user: User reference. + :type user: :class:`GraphUser ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'user': {'key': 'user', 'type': 'GraphUser'} + } + + def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None): + super(UserEntitlement, self).__init__() + self.access_level = access_level + self.extensions = extensions + self.group_assignments = group_assignments + self.id = id + self.last_accessed_date = last_accessed_date + self.project_entitlements = project_entitlements + self.user = user diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py new file mode 100644 index 00000000..96ef406e --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py @@ -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 .operation_reference import OperationReference + + +class UserEntitlementOperationReference(OperationReference): + """UserEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure. + :type completed: bool + :param have_results_succeeded: True if all operations were successful. + :type have_results_succeeded: bool + :param results: List of results for each operation. + :type results: list of :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[UserEntitlementOperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(UserEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py new file mode 100644 index 00000000..0edad338 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserEntitlementOperationResult(Model): + """UserEntitlementOperationResult. + + :param errors: List of error codes paired with their corresponding error messages. + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation. + :type is_success: bool + :param result: Result of the MemberEntitlement after the operation. + :type result: :class:`UserEntitlement ` + :param user_id: Identifier of the Member being acted upon. + :type user_id: str + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'result': {'key': 'result', 'type': 'UserEntitlement'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, errors=None, is_success=None, result=None, user_id=None): + super(UserEntitlementOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.result = result + self.user_id = user_id diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py new file mode 100644 index 00000000..c4e5ff12 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .user_entitlements_response_base import UserEntitlementsResponseBase + + +class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): + """UserEntitlementsPatchResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + :param operation_results: List of results for each operation. + :type operation_results: list of :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[UserEntitlementOperationResult]'} + } + + def __init__(self, is_success=None, user_entitlement=None, operation_results=None): + super(UserEntitlementsPatchResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) + self.operation_results = operation_results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py new file mode 100644 index 00000000..7977340b --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 .user_entitlements_response_base import UserEntitlementsResponseBase + + +class UserEntitlementsPostResponse(UserEntitlementsResponseBase): + """UserEntitlementsPostResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + :param operation_result: Operation result. + :type operation_result: :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'UserEntitlementOperationResult'} + } + + def __init__(self, is_success=None, user_entitlement=None, operation_result=None): + super(UserEntitlementsPostResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) + self.operation_result = operation_result diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py new file mode 100644 index 00000000..8e02e53f --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UserEntitlementsResponseBase(Model): + """UserEntitlementsResponseBase. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'} + } + + def __init__(self, is_success=None, user_entitlement=None): + super(UserEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.user_entitlement = user_entitlement diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py b/vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py new file mode 100644 index 00000000..2105e094 --- /dev/null +++ b/vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UsersSummary(Model): + """UsersSummary. + + :param available_access_levels: Available Access Levels. + :type available_access_levels: list of :class:`AccessLevel ` + :param extensions: Summary of Extensions in the account. + :type extensions: list of :class:`ExtensionSummaryData ` + :param group_options: Group Options. + :type group_options: list of :class:`GroupOption ` + :param licenses: Summary of Licenses in the Account. + :type licenses: list of :class:`LicenseSummaryData ` + :param project_refs: Summary of Projects in the Account. + :type project_refs: list of :class:`ProjectRef ` + """ + + _attribute_map = { + 'available_access_levels': {'key': 'availableAccessLevels', 'type': '[AccessLevel]'}, + 'extensions': {'key': 'extensions', 'type': '[ExtensionSummaryData]'}, + 'group_options': {'key': 'groupOptions', 'type': '[GroupOption]'}, + 'licenses': {'key': 'licenses', 'type': '[LicenseSummaryData]'}, + 'project_refs': {'key': 'projectRefs', 'type': '[ProjectRef]'} + } + + def __init__(self, available_access_levels=None, extensions=None, group_options=None, licenses=None, project_refs=None): + super(UsersSummary, self).__init__() + self.available_access_levels = available_access_levels + self.extensions = extensions + self.group_options = group_options + self.licenses = licenses + self.project_refs = project_refs diff --git a/vsts/vsts/user/v4_1/models/__init__.py b/vsts/vsts/user/v4_1/models/__init__.py deleted file mode 100644 index deed4a68..00000000 --- a/vsts/vsts/user/v4_1/models/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .avatar import Avatar -from .create_user_parameters import CreateUserParameters -from .mail_confirmation_parameters import MailConfirmationParameters -from .reference_links import ReferenceLinks -from .send_user_notification_parameters import SendUserNotificationParameters -from .set_user_attribute_parameters import SetUserAttributeParameters -from .update_user_parameters import UpdateUserParameters -from .user import User -from .user_attribute import UserAttribute -from .user_attributes import UserAttributes -from .user_notification import UserNotification -from .user_notifications import UserNotifications - -__all__ = [ - 'Avatar', - 'CreateUserParameters', - 'MailConfirmationParameters', - 'ReferenceLinks', - 'SendUserNotificationParameters', - 'SetUserAttributeParameters', - 'UpdateUserParameters', - 'User', - 'UserAttribute', - 'UserAttributes', - 'UserNotification', - 'UserNotifications', -] diff --git a/vsts/vsts/user/v4_1/models/avatar.py b/vsts/vsts/user/v4_1/models/avatar.py deleted file mode 100644 index cd4f5f01..00000000 --- a/vsts/vsts/user/v4_1/models/avatar.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Avatar(Model): - """Avatar. - - :param image: The raw avatar image data, in either jpg or png format. - :type image: str - :param is_auto_generated: True if the avatar is dynamically generated, false if user-provided. - :type is_auto_generated: bool - :param last_modified: The date/time at which the avatar was last modified. - :type last_modified: datetime - :param size: The size of the avatar, e.g. small, medium, or large. - :type size: object - """ - - _attribute_map = { - 'image': {'key': 'image', 'type': 'str'}, - 'is_auto_generated': {'key': 'isAutoGenerated', 'type': 'bool'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'size': {'key': 'size', 'type': 'object'} - } - - def __init__(self, image=None, is_auto_generated=None, last_modified=None, size=None): - super(Avatar, self).__init__() - self.image = image - self.is_auto_generated = is_auto_generated - self.last_modified = last_modified - self.size = size diff --git a/vsts/vsts/user/v4_1/models/create_user_parameters.py b/vsts/vsts/user/v4_1/models/create_user_parameters.py deleted file mode 100644 index 03801e6c..00000000 --- a/vsts/vsts/user/v4_1/models/create_user_parameters.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreateUserParameters(Model): - """CreateUserParameters. - - :param country: The user's country of residence or association. - :type country: str - :param data: - :type data: dict - :param descriptor: The user's unique identifier, and the primary means by which the user is referenced. - :type descriptor: :class:`str ` - :param display_name: The user's name, as displayed throughout the product. - :type display_name: str - :param mail: The user's preferred email address. - :type mail: str - :param region: The region in which the user resides or is associated. - :type region: str - """ - - _attribute_map = { - 'country': {'key': 'country', 'type': 'str'}, - 'data': {'key': 'data', 'type': '{object}'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'mail': {'key': 'mail', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'} - } - - def __init__(self, country=None, data=None, descriptor=None, display_name=None, mail=None, region=None): - super(CreateUserParameters, self).__init__() - self.country = country - self.data = data - self.descriptor = descriptor - self.display_name = display_name - self.mail = mail - self.region = region diff --git a/vsts/vsts/user/v4_1/models/send_user_notification_parameters.py b/vsts/vsts/user/v4_1/models/send_user_notification_parameters.py deleted file mode 100644 index c5936eba..00000000 --- a/vsts/vsts/user/v4_1/models/send_user_notification_parameters.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SendUserNotificationParameters(Model): - """SendUserNotificationParameters. - - :param notification: Notification to be delivered - :type notification: :class:`UserNotification ` - :param recipients: Users whom this notification is addressed to - :type recipients: list of :class:`str ` - """ - - _attribute_map = { - 'notification': {'key': 'notification', 'type': 'UserNotification'}, - 'recipients': {'key': 'recipients', 'type': '[str]'} - } - - def __init__(self, notification=None, recipients=None): - super(SendUserNotificationParameters, self).__init__() - self.notification = notification - self.recipients = recipients diff --git a/vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py b/vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py deleted file mode 100644 index bdfd9cfb..00000000 --- a/vsts/vsts/user/v4_1/models/set_user_attribute_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SetUserAttributeParameters(Model): - """SetUserAttributeParameters. - - :param last_modified: The date/time at which the attribute was last modified. - :type last_modified: datetime - :param name: The unique group-prefixed name of the attribute, e.g. "TFS.TimeZone". - :type name: str - :param revision: The attribute's revision, for change tracking. - :type revision: int - :param value: The value of the attribute. - :type value: str - """ - - _attribute_map = { - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, last_modified=None, name=None, revision=None, value=None): - super(SetUserAttributeParameters, self).__init__() - self.last_modified = last_modified - self.name = name - self.revision = revision - self.value = value diff --git a/vsts/vsts/user/v4_1/models/user.py b/vsts/vsts/user/v4_1/models/user.py deleted file mode 100644 index 98b3c9c4..00000000 --- a/vsts/vsts/user/v4_1/models/user.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class User(Model): - """User. - - :param bio: A short blurb of "about me"-style text. - :type bio: str - :param blog: A link to an external blog. - :type blog: str - :param company: The company at which the user is employed. - :type company: str - :param country: The user's country of residence or association. - :type country: str - :param date_created: The date the user was created in the system - :type date_created: datetime - :param descriptor: The user's unique identifier, and the primary means by which the user is referenced. - :type descriptor: :class:`str ` - :param display_name: The user's name, as displayed throughout the product. - :type display_name: str - :param last_modified: The date/time at which the user data was last modified. - :type last_modified: datetime - :param links: A set of readonly links for obtaining more info about the user. - :type links: :class:`ReferenceLinks ` - :param mail: The user's preferred email address. - :type mail: str - :param revision: The attribute's revision, for change tracking. - :type revision: int - :param unconfirmed_mail: The user's preferred email address which has not yet been confirmed. - :type unconfirmed_mail: str - :param user_name: The unique name of the user. - :type user_name: str - """ - - _attribute_map = { - 'bio': {'key': 'bio', 'type': 'str'}, - 'blog': {'key': 'blog', 'type': 'str'}, - 'company': {'key': 'company', 'type': 'str'}, - 'country': {'key': 'country', 'type': 'str'}, - 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'links': {'key': 'links', 'type': 'ReferenceLinks'}, - 'mail': {'key': 'mail', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'unconfirmed_mail': {'key': 'unconfirmedMail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'} - } - - def __init__(self, bio=None, blog=None, company=None, country=None, date_created=None, descriptor=None, display_name=None, last_modified=None, links=None, mail=None, revision=None, unconfirmed_mail=None, user_name=None): - super(User, self).__init__() - self.bio = bio - self.blog = blog - self.company = company - self.country = country - self.date_created = date_created - self.descriptor = descriptor - self.display_name = display_name - self.last_modified = last_modified - self.links = links - self.mail = mail - self.revision = revision - self.unconfirmed_mail = unconfirmed_mail - self.user_name = user_name diff --git a/vsts/vsts/user/v4_1/models/user_attribute.py b/vsts/vsts/user/v4_1/models/user_attribute.py deleted file mode 100644 index 6e0da83c..00000000 --- a/vsts/vsts/user/v4_1/models/user_attribute.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserAttribute(Model): - """UserAttribute. - - :param last_modified: The date/time at which the attribute was last modified. - :type last_modified: datetime - :param name: The unique group-prefixed name of the attribute, e.g. "TFS.TimeZone". - :type name: str - :param revision: The attribute's revision, for change tracking. - :type revision: int - :param value: The value of the attribute. - :type value: str - """ - - _attribute_map = { - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, last_modified=None, name=None, revision=None, value=None): - super(UserAttribute, self).__init__() - self.last_modified = last_modified - self.name = name - self.revision = revision - self.value = value diff --git a/vsts/vsts/user/v4_1/models/user_attributes.py b/vsts/vsts/user/v4_1/models/user_attributes.py deleted file mode 100644 index d06fb34f..00000000 --- a/vsts/vsts/user/v4_1/models/user_attributes.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserAttributes(Model): - """UserAttributes. - - :param attributes: Collection of attributes - :type attributes: list of :class:`UserAttribute ` - :param continuation_token: Opaque string to get the next chunk of results Server would return non-null string here if there is more data Client will need then to pass it to the server to get more results - :type continuation_token: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '[UserAttribute]'}, - 'continuation_token': {'key': 'continuationToken', 'type': 'str'} - } - - def __init__(self, attributes=None, continuation_token=None): - super(UserAttributes, self).__init__() - self.attributes = attributes - self.continuation_token = continuation_token diff --git a/vsts/vsts/user/v4_1/user_client.py b/vsts/vsts/user/v4_1/user_client.py deleted file mode 100644 index ed83a567..00000000 --- a/vsts/vsts/user/v4_1/user_client.py +++ /dev/null @@ -1,326 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 ...vss_client import VssClient -from . import models - - -class UserClient(VssClient): - """User - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(UserClient, 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 delete_attribute(self, descriptor, attribute_name): - """DeleteAttribute. - [Preview API] Deletes an attribute for the given user. - :param str descriptor: The identity of the user for the operation. - :param str attribute_name: The name of the attribute to delete. - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - if attribute_name is not None: - route_values['attributeName'] = self._serialize.url('attribute_name', attribute_name, 'str') - self._send(http_method='DELETE', - location_id='ac77b682-1ef8-4277-afde-30af9b546004', - version='4.1-preview.2', - route_values=route_values) - - def get_attribute(self, descriptor, attribute_name): - """GetAttribute. - [Preview API] Retrieves an attribute for a given user. - :param str descriptor: The identity of the user for the operation. - :param str attribute_name: The name of the attribute to retrieve. - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - if attribute_name is not None: - route_values['attributeName'] = self._serialize.url('attribute_name', attribute_name, 'str') - response = self._send(http_method='GET', - location_id='ac77b682-1ef8-4277-afde-30af9b546004', - version='4.1-preview.2', - route_values=route_values) - return self._deserialize('UserAttribute', response) - - def query_attributes(self, descriptor, continuation_token=None, query_pattern=None, modified_after=None): - """QueryAttributes. - [Preview API] Retrieves attributes for a given user. May return subset of attributes providing continuation token to retrieve the next batch - :param str descriptor: The identity of the user for the operation. - :param str continuation_token: The token telling server to return the next chunk of attributes from where it stopped last time. This must either be null or be a value returned from the previous call to this API - :param str query_pattern: The wildcardable pattern for the attribute names to be retrieved, e.g. queryPattern=visualstudio.14.* - :param str modified_after: The optional date/time of the minimum modification date for attributes to be retrieved, e.g. modifiedafter=2017-04-12T15:00:00.000Z - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - query_parameters = {} - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if query_pattern is not None: - query_parameters['queryPattern'] = self._serialize.query('query_pattern', query_pattern, 'str') - if modified_after is not None: - query_parameters['modifiedAfter'] = self._serialize.query('modified_after', modified_after, 'str') - response = self._send(http_method='GET', - location_id='ac77b682-1ef8-4277-afde-30af9b546004', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('UserAttributes', response) - - def set_attributes(self, attribute_parameters_list, descriptor): - """SetAttributes. - [Preview API] Updates multiple attributes for a given user. - :param [SetUserAttributeParameters] attribute_parameters_list: The list of attribute data to update. Existing values will be overwritten. - :param str descriptor: The identity of the user for the operation. - :rtype: [UserAttribute] - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - content = self._serialize.body(attribute_parameters_list, '[SetUserAttributeParameters]') - response = self._send(http_method='PATCH', - location_id='ac77b682-1ef8-4277-afde-30af9b546004', - version='4.1-preview.2', - route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[UserAttribute]', response) - - def delete_avatar(self, descriptor): - """DeleteAvatar. - [Preview API] Deletes a user's avatar. - :param str descriptor: The identity of the user for the operation. - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - self._send(http_method='DELETE', - location_id='1c34cdf0-dd20-4370-a316-56ba776d75ce', - version='4.1-preview.1', - route_values=route_values) - - def get_avatar(self, descriptor, size=None, format=None): - """GetAvatar. - [Preview API] Retrieves the user's avatar. - :param str descriptor: The identity of the user for the operation. - :param str size: The size to retrieve, e.g. small, medium (default), or large. - :param str format: The format for the response. Can be null. Accepted values: "png", "json" - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - query_parameters = {} - if size is not None: - query_parameters['size'] = self._serialize.query('size', size, 'str') - if format is not None: - query_parameters['format'] = self._serialize.query('format', format, 'str') - response = self._send(http_method='GET', - location_id='1c34cdf0-dd20-4370-a316-56ba776d75ce', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('Avatar', response) - - def set_avatar(self, avatar, descriptor): - """SetAvatar. - [Preview API] Creates or updates an avatar to be associated with a given user. - :param :class:` ` avatar: The avatar to set. The Image property must contain the binary representation of the image, in either jpg or png format. - :param str descriptor: The identity of the user for the operation. - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - content = self._serialize.body(avatar, 'Avatar') - self._send(http_method='PUT', - location_id='1c34cdf0-dd20-4370-a316-56ba776d75ce', - version='4.1-preview.1', - route_values=route_values, - content=content) - - def create_avatar_preview(self, avatar, descriptor, size=None, display_name=None): - """CreateAvatarPreview. - [Preview API] - :param :class:` ` avatar: - :param str descriptor: - :param str size: - :param str display_name: - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - query_parameters = {} - if size is not None: - query_parameters['size'] = self._serialize.query('size', size, 'str') - if display_name is not None: - query_parameters['displayName'] = self._serialize.query('display_name', display_name, 'str') - content = self._serialize.body(avatar, 'Avatar') - response = self._send(http_method='POST', - location_id='aad154d3-750f-47e6-9898-dc3a2e7a1708', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Avatar', response) - - def get_descriptor(self, descriptor): - """GetDescriptor. - [Preview API] - :param str descriptor: - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - response = self._send(http_method='GET', - location_id='e338ed36-f702-44d3-8d18-9cba811d013a', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('str', response) - - def confirm_mail(self, confirmation_parameters, descriptor): - """ConfirmMail. - [Preview API] Confirms preferred email for a given user. - :param :class:` ` confirmation_parameters: - :param str descriptor: The descriptor identifying the user for the operation. - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - content = self._serialize.body(confirmation_parameters, 'MailConfirmationParameters') - self._send(http_method='POST', - location_id='fc213dcd-3a4e-4951-a2e2-7e3fed15706d', - version='4.1-preview.1', - route_values=route_values, - content=content) - - def write_notifications(self, notifications): - """WriteNotifications. - [Preview API] Stores/forwards provided notifications Accepts batch of notifications and each of those may be targeting multiple users - :param [SendUserNotificationParameters] notifications: Collection of notifications to be persisted. - """ - content = self._serialize.body(notifications, '[SendUserNotificationParameters]') - self._send(http_method='POST', - location_id='63e9e5c8-09a5-4de6-9aa1-01a96219073c', - version='4.1-preview.1', - content=content) - - def query_notifications(self, descriptor, top=None, continuation_token=None): - """QueryNotifications. - [Preview API] Queries notifications for a given user - :param str descriptor: The identity of the user for the operation. - :param int top: Maximum amount of items to retrieve. - :param str continuation_token: Token representing the position to restart reading notifications from. - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - query_parameters = {} - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - response = self._send(http_method='GET', - location_id='58ff9476-0a49-4a70-81d6-1ef63d4f92e8', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('UserNotifications', response) - - def get_storage_key(self, descriptor): - """GetStorageKey. - [Preview API] - :param str descriptor: - :rtype: str - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - response = self._send(http_method='GET', - location_id='c1d0bf9e-3220-44d9-b048-222ae15fc3e4', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('str', response) - - def get_user_defaults(self): - """GetUserDefaults. - [Preview API] Retrieves the default data for the authenticated user. - :rtype: :class:` ` - """ - response = self._send(http_method='GET', - location_id='a9e65880-7489-4453-aa72-0f7896f0b434', - version='4.1-preview.1') - return self._deserialize('User', response) - - def create_user(self, user_parameters, create_local=None): - """CreateUser. - [Preview API] Creates a new user. - :param :class:` ` user_parameters: The parameters to be used for user creation. - :param bool create_local: - :rtype: :class:` ` - """ - query_parameters = {} - if create_local is not None: - query_parameters['createLocal'] = self._serialize.query('create_local', create_local, 'bool') - content = self._serialize.body(user_parameters, 'CreateUserParameters') - response = self._send(http_method='POST', - location_id='61117502-a055-422c-9122-b56e6643ed02', - version='4.1-preview.2', - query_parameters=query_parameters, - content=content) - return self._deserialize('User', response) - - def get_user(self, descriptor, create_if_not_exists=None): - """GetUser. - [Preview API] Retrieves the data for a given user. - :param str descriptor: The identity of the user for the operation. - :param Boolean create_if_not_exists: Whether to auto-provision the authenticated user - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - response = self._send(http_method='GET', - location_id='61117502-a055-422c-9122-b56e6643ed02', - version='4.1-preview.2', - route_values=route_values) - return self._deserialize('User', response) - - def update_user(self, user_parameters, descriptor): - """UpdateUser. - [Preview API] Updates an existing user. - :param :class:` ` user_parameters: The parameters to be used for user update. - :param str descriptor: The identity of the user for the operation. - :rtype: :class:` ` - """ - route_values = {} - if descriptor is not None: - route_values['descriptor'] = self._serialize.url('descriptor', descriptor, 'str') - content = self._serialize.body(user_parameters, 'UpdateUserParameters') - response = self._send(http_method='PATCH', - location_id='61117502-a055-422c-9122-b56e6643ed02', - version='4.1-preview.2', - route_values=route_values, - content=content) - return self._deserialize('User', response) - From cffb5e7467f0be88c25da012eadc005d85d5da1e Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 13 Jul 2018 16:22:08 -0400 Subject: [PATCH 051/191] Bump version to 0.1.12 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index c89f20c2..47ece16d 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.11" +VERSION = "0.1.12" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 93105927..a0187ce6 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.11" +VERSION = "0.1.12" From 5ed26831785a4ec73d26d5b11d0031746bac746a Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 13 Jul 2018 17:42:06 -0400 Subject: [PATCH 052/191] Add resource area identifier for member entitlement management area. --- .../v4_0/member_entitlement_management_client.py | 2 +- .../v4_1/member_entitlement_management_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py b/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py index 7ec671d1..b3c1e864 100644 --- a/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py +++ b/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '68ddce18-2501-45f1-a17b-7931a9922690' def add_group_entitlement(self, group_entitlement, rule_option=None): """AddGroupEntitlement. diff --git a/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py b/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py index 4cb97035..e6c85825 100644 --- a/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py +++ b/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '68ddce18-2501-45f1-a17b-7931a9922690' def add_group_entitlement(self, group_entitlement, rule_option=None): """AddGroupEntitlement. From adaaed183d273b1780f1071ee711e21a319d79e8 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 13 Jul 2018 18:17:23 -0400 Subject: [PATCH 053/191] Adding more resource area ids. --- vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py | 2 +- vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py | 2 +- vsts/vsts/symbol/v4_1/symbol_client.py | 2 +- vsts/vsts/wiki/v4_1/wiki_client.py | 2 +- .../v4_1/work_item_tracking_process_definitions_client.py | 2 +- .../v4_1/work_item_tracking_process_template_client.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py b/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py index 56b77ad3..57e00ce3 100644 --- a/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py +++ b/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '7ae6d0a6-cda5-44cf-a261-28c392bed25c' def create_agent_group(self, group): """CreateAgentGroup. diff --git a/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py b/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py index c3b7802d..1284bba1 100644 --- a/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py +++ b/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '1814ab31-2f4f-4a9f-8761-f4d77dc5a5d7' def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): """ExecuteServiceEndpointRequest. diff --git a/vsts/vsts/symbol/v4_1/symbol_client.py b/vsts/vsts/symbol/v4_1/symbol_client.py index 81145f71..806708b1 100644 --- a/vsts/vsts/symbol/v4_1/symbol_client.py +++ b/vsts/vsts/symbol/v4_1/symbol_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'af607f94-69ba-4821-8159-f04e37b66350' def check_availability(self): """CheckAvailability. diff --git a/vsts/vsts/wiki/v4_1/wiki_client.py b/vsts/vsts/wiki/v4_1/wiki_client.py index 8c1583bc..77fd1ffa 100644 --- a/vsts/vsts/wiki/v4_1/wiki_client.py +++ b/vsts/vsts/wiki/v4_1/wiki_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' def get_page_text(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetPageText. diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py index d104d8ac..f28126c2 100644 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' def create_behavior(self, behavior, process_id): """CreateBehavior. diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py index efefa0d9..9a9aae1c 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' def get_behavior(self, process_id, behavior_ref_name): """GetBehavior. From cbb60f3dc16bb5153f591f02e1800e868f05c1ab Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 13 Jul 2018 18:34:08 -0400 Subject: [PATCH 054/191] Adding more resource area ids. --- vsts/vsts/wiki/v4_0/wiki_client.py | 2 +- .../v4_0/work_item_tracking_process_definitions_client.py | 2 +- .../v4_0/work_item_tracking_process_template_client.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/vsts/vsts/wiki/v4_0/wiki_client.py index 966e9244..1ab0b66e 100644 --- a/vsts/vsts/wiki/v4_0/wiki_client.py +++ b/vsts/vsts/wiki/v4_0/wiki_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' def get_pages(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): """GetPages. diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py index b7903655..8c349f77 100644 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' def create_behavior(self, behavior, process_id): """CreateBehavior. diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py index 7c2bc48b..859aedbd 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' def get_behavior(self, process_id, behavior_ref_name): """GetBehavior. From 91fd92bdb7a453bb19842d0af338e33176cff957 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 16 Jul 2018 12:15:53 -0400 Subject: [PATCH 055/191] Bump version number to 0.1.13 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 47ece16d..d897e8a0 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.12" +VERSION = "0.1.13" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index a0187ce6..e8363e75 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.12" +VERSION = "0.1.13" From 194000b75e9802a07ae8c7ece747a371c9121831 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 2 Aug 2018 15:14:58 -0400 Subject: [PATCH 056/191] Add Settings area --- vsts/setup.py | 2 +- .../vsts/feed_token/v4_1/feed_token_client.py | 6 +- vsts/vsts/settings/v4_0/__init__.py | 7 + vsts/vsts/settings/v4_0/settings_client.py | 145 ++++++++++++++++++ vsts/vsts/settings/v4_1/__init__.py | 7 + vsts/vsts/settings/v4_1/settings_client.py | 145 ++++++++++++++++++ 6 files changed, 307 insertions(+), 5 deletions(-) create mode 100644 vsts/vsts/settings/v4_0/__init__.py create mode 100644 vsts/vsts/settings/v4_0/settings_client.py create mode 100644 vsts/vsts/settings/v4_1/__init__.py create mode 100644 vsts/vsts/settings/v4_1/settings_client.py diff --git a/vsts/setup.py b/vsts/setup.py index d897e8a0..8065fbed 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -16,7 +16,7 @@ # http://pypi.python.org/pypi/setuptools REQUIRES = [ - "msrest~=0.4.19" + "msrest>=0.5.0" ] CLASSIFIERS = [ diff --git a/vsts/vsts/feed_token/v4_1/feed_token_client.py b/vsts/vsts/feed_token/v4_1/feed_token_client.py index 899c615d..0e5e8afc 100644 --- a/vsts/vsts/feed_token/v4_1/feed_token_client.py +++ b/vsts/vsts/feed_token/v4_1/feed_token_client.py @@ -8,7 +8,6 @@ from msrest import Serializer, Deserializer from ...vss_client import VssClient -from . import models class FeedTokenClient(VssClient): @@ -19,9 +18,8 @@ class FeedTokenClient(VssClient): def __init__(self, base_url=None, creds=None): super(FeedTokenClient, 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) + self._serialize = Serializer() + self._deserialize = Deserializer() resource_area_identifier = 'cdeb6c7d-6b25-4d6f-b664-c2e3ede202e8' diff --git a/vsts/vsts/settings/v4_0/__init__.py b/vsts/vsts/settings/v4_0/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/settings/v4_0/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/settings/v4_0/settings_client.py b/vsts/vsts/settings/v4_0/settings_client.py new file mode 100644 index 00000000..eb856d96 --- /dev/null +++ b/vsts/vsts/settings/v4_0/settings_client.py @@ -0,0 +1,145 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient + + +class SettingsClient(VssClient): + """Settings + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SettingsClient, self).__init__(base_url, creds) + self._serialize = Serializer() + self._deserialize = Deserializer() + + resource_area_identifier = None + + def get_entries(self, user_scope, key=None): + """GetEntries. + [Preview API] Get all setting entries for the given user/all-users scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{object}', response) + + def remove_entries(self, user_scope, key): + """RemoveEntries. + [Preview API] Remove the entry or entries under the specified path + :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. + :param str key: Root key of the entry or entries to remove + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + self._send(http_method='DELETE', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.0-preview.1', + route_values=route_values) + + def set_entries(self, entries, user_scope): + """SetEntries. + [Preview API] Set the specified setting entry values for the given user/all-users scope + :param {object} entries: The entries to set + :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.0-preview.1', + route_values=route_values, + content=content) + + def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): + """GetEntriesForScope. + [Preview API] Get all setting entries for the given named scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.0-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{object}', response) + + def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): + """RemoveEntriesForScope. + [Preview API] Remove the entry or entries under the specified path + :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str key: Root key of the entry or entries to remove + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + self._send(http_method='DELETE', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.0-preview.1', + route_values=route_values) + + def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): + """SetEntriesForScope. + [Preview API] Set the specified entries for the given named scope + :param {object} entries: The entries to set + :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to set the settings on (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.0-preview.1', + route_values=route_values, + content=content) + diff --git a/vsts/vsts/settings/v4_1/__init__.py b/vsts/vsts/settings/v4_1/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/settings/v4_1/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/settings/v4_1/settings_client.py b/vsts/vsts/settings/v4_1/settings_client.py new file mode 100644 index 00000000..1c257c48 --- /dev/null +++ b/vsts/vsts/settings/v4_1/settings_client.py @@ -0,0 +1,145 @@ +# -------------------------------------------------------------------------------------------- +# 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 ...vss_client import VssClient + + +class SettingsClient(VssClient): + """Settings + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SettingsClient, self).__init__(base_url, creds) + self._serialize = Serializer() + self._deserialize = Deserializer() + + resource_area_identifier = None + + def get_entries(self, user_scope, key=None): + """GetEntries. + [Preview API] Get all setting entries for the given user/all-users scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{object}', response) + + def remove_entries(self, user_scope, key): + """RemoveEntries. + [Preview API] Remove the entry or entries under the specified path + :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. + :param str key: Root key of the entry or entries to remove + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + self._send(http_method='DELETE', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.1-preview.1', + route_values=route_values) + + def set_entries(self, entries, user_scope): + """SetEntries. + [Preview API] Set the specified setting entry values for the given user/all-users scope + :param {object} entries: The entries to set + :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.1-preview.1', + route_values=route_values, + content=content) + + def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): + """GetEntriesForScope. + [Preview API] Get all setting entries for the given named scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.1-preview.1', + route_values=route_values, + returns_collection=True) + return self._deserialize('{object}', response) + + def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): + """RemoveEntriesForScope. + [Preview API] Remove the entry or entries under the specified path + :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str key: Root key of the entry or entries to remove + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + self._send(http_method='DELETE', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.1-preview.1', + route_values=route_values) + + def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): + """SetEntriesForScope. + [Preview API] Set the specified entries for the given named scope + :param {object} entries: The entries to set + :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to set the settings on (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.1-preview.1', + route_values=route_values, + content=content) + From 73e16d25571487e24590f85363af4b2c6562dd3e Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 3 Aug 2018 13:15:35 -0400 Subject: [PATCH 057/191] bump version to 0.1.14 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 8065fbed..9f6b09ad 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.13" +VERSION = "0.1.14" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index e8363e75..85db5c02 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.13" +VERSION = "0.1.14" From 63f07782e319fd6685a94ba534622b1036bab099 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 3 Aug 2018 16:36:56 -0400 Subject: [PATCH 058/191] add missing __init__.py --- vsts/vsts/settings/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 vsts/vsts/settings/__init__.py diff --git a/vsts/vsts/settings/__init__.py b/vsts/vsts/settings/__init__.py new file mode 100644 index 00000000..b19525a6 --- /dev/null +++ b/vsts/vsts/settings/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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 75bd43fc921e0d222d72a52bc17682dc48fb98d1 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 3 Aug 2018 16:49:50 -0400 Subject: [PATCH 059/191] bump version to 0.1.15 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 9f6b09ad..95ae9d21 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.14" +VERSION = "0.1.15" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 85db5c02..273dbceb 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.14" +VERSION = "0.1.15" From d786f07b31ae9f598561a2b231b71b0c1fcdbf6f Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 8 Aug 2018 17:42:26 -0400 Subject: [PATCH 060/191] update logging --- vsts/vsts/_file_cache.py | 21 ++++++++++++--------- vsts/vsts/exceptions.py | 1 - vsts/vsts/vss_client.py | 27 +++++++++++++++------------ vsts/vsts/vss_connection.py | 10 ++++++---- 4 files changed, 33 insertions(+), 26 deletions(-) diff --git a/vsts/vsts/_file_cache.py b/vsts/vsts/_file_cache.py index 375f2041..23f7af9c 100644 --- a/vsts/vsts/_file_cache.py +++ b/vsts/vsts/_file_cache.py @@ -14,6 +14,9 @@ import collections +logger = logging.getLogger(__name__) + + class FileCache(collections.MutableMapping): """A simple dict-like class that is backed by a JSON file. @@ -33,20 +36,20 @@ def load(self): try: if os.path.isfile(self.file_name): if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.clock(): - logging.debug('Cache file expired: %s', file=self.file_name) + logger.debug('Cache file expired: %s', file=self.file_name) os.remove(self.file_name) else: - logging.debug('Loading cache file: %s', self.file_name) + logger.debug('Loading cache file: %s', self.file_name) self.data = get_file_json(self.file_name, throw_on_empty=False) or {} else: - logging.debug('Cache file does not exist: %s', self.file_name) + logger.debug('Cache file does not exist: %s', self.file_name) except Exception as ex: - logging.exception(ex) + logger.debug(ex, exc_info=True) # file is missing or corrupt so attempt to delete it try: os.remove(self.file_name) except Exception as ex2: - logging.exception(ex2) + logger.debug(ex2, exc_info=True) self.initial_load_occurred = True def save(self): @@ -71,10 +74,10 @@ def save_with_retry(self, retries=5): def clear(self): if os.path.isfile(self.file_name): - logging.info("Deleting file: " + self.file_name) + logger.info("Deleting file: " + self.file_name) os.remove(self.file_name) else: - logging.info("File does not exist: " + self.file_name) + logger.info("File does not exist: " + self.file_name) def get(self, key, default=None): self._check_for_initial_load() @@ -144,12 +147,12 @@ def read_file_content(file_path, allow_binary=False): for encoding in ['utf-8-sig', 'utf-8', 'utf-16', 'utf-16le', 'utf-16be']: try: with codecs_open(file_path, encoding=encoding) as f: - logging.debug("attempting to read file %s as %s", file_path, encoding) + logger.debug("attempting to read file %s as %s", file_path, encoding) return f.read() except UnicodeDecodeError: if allow_binary: with open(file_path, 'rb') as input_file: - logging.debug("attempting to read file %s as binary", file_path) + logger.debug("attempting to read file %s as binary", file_path) return base64.b64encode(input_file.read()).decode("utf-8") else: raise diff --git a/vsts/vsts/exceptions.py b/vsts/vsts/exceptions.py index 1ef98ccb..955c630d 100644 --- a/vsts/vsts/exceptions.py +++ b/vsts/vsts/exceptions.py @@ -5,7 +5,6 @@ from msrest.exceptions import ( ClientException, - TokenExpiredError, ClientRequestError, AuthenticationError, ) diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index c15a80ea..f738ee01 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -20,6 +20,9 @@ from ._file_cache import OPTIONS_CACHE as OPTIONS_FILE_CACHE +logger = logging.getLogger(__name__) + + class VssClient(object): """VssClient. :param str base_url: Service URL @@ -50,11 +53,11 @@ def _send_request(self, request, headers=None, content=None, **operation_config) """ if TRACE_ENV_VAR in os.environ and os.environ[TRACE_ENV_VAR] == 'true': print(request.method + ' ' + request.url) - logging.debug('%s %s', request.method, request.url) - logging.debug('Request content: %s', content) + logger.debug('%s %s', request.method, request.url) + logger.debug('Request content: %s', content) response = self._client.send(request=request, headers=headers, content=content, **operation_config) - logging.debug('Response content: %s', response.content) + logger.debug('Response content: %s', response.content) if response.status_code < 200 or response.status_code >= 300: self._handle_error(request, response) return response @@ -71,11 +74,11 @@ def _send(self, http_method, location_id, version, route_values=None, version) if version != negotiated_version: - logging.info("Negotiated api version from '%s' down to '%s'. This means the client is newer than the server.", - version, - negotiated_version) + logger.info("Negotiated api version from '%s' down to '%s'. This means the client is newer than the server.", + version, + negotiated_version) else: - logging.debug("Api version '%s'", negotiated_version) + logger.debug("Api version '%s'", negotiated_version) # Construct headers headers = {'Content-Type': media_type + '; charset=utf-8', @@ -112,7 +115,7 @@ def _create_request_message(self, http_method, location_id, route_values=None, route_values['resource'] = location.resource_name route_template = self._remove_optional_route_parameters(location.route_template, route_values) - logging.debug('Route template: %s', location.route_template) + logger.debug('Route template: %s', location.route_template) url = self._client.format_url(route_template, **route_values) request = ClientRequest() request.url = self._client.format_url(url) @@ -150,14 +153,14 @@ def _get_resource_locations(self, all_host_types): # Next check for options cached on disk if not all_host_types and OPTIONS_FILE_CACHE[self.normalized_url]: try: - logging.debug('File cache hit for options on: %s', self.normalized_url) + logger.debug('File cache hit for options on: %s', self.normalized_url) self._locations = self._base_deserialize.deserialize_data(OPTIONS_FILE_CACHE[self.normalized_url], '[ApiResourceLocation]') return self._locations except DeserializationError as ex: - logging.exception(str(ex)) + logger.debug(ex, exc_info=True) else: - logging.debug('File cache miss for options on: %s', self.normalized_url) + logger.debug('File cache miss for options on: %s', self.normalized_url) # Last resort, make the call to the server options_uri = self._combine_url(self.config.base_url, '_apis') @@ -184,7 +187,7 @@ def _get_resource_locations(self, all_host_types): try: OPTIONS_FILE_CACHE[self.normalized_url] = wrapper.value except SerializationError as ex: - logging.exception(str(ex)) + logger.debug(ex, exc_info=True) return returned_locations @staticmethod diff --git a/vsts/vsts/vss_connection.py b/vsts/vsts/vss_connection.py index e33d6c56..bcba321a 100644 --- a/vsts/vsts/vss_connection.py +++ b/vsts/vsts/vss_connection.py @@ -11,6 +11,8 @@ from .location.v4_0.location_client import LocationClient from .vss_client_configuration import VssClientConfiguration +logger = logging.getLogger(__name__) + class VssConnection(object): """VssConnection. @@ -77,14 +79,14 @@ def _get_resource_areas(self, force=False): location_client = LocationClient(self.base_url, self._creds) if not force and RESOURCE_FILE_CACHE[location_client.normalized_url]: try: - logging.debug('File cache hit for resources on: %s', location_client.normalized_url) + logger.debug('File cache hit for resources on: %s', location_client.normalized_url) self._resource_areas = location_client._base_deserialize.deserialize_data(RESOURCE_FILE_CACHE[location_client.normalized_url], '[ResourceAreaInfo]') return self._resource_areas except Exception as ex: - logging.exception(str(ex)) + logger.debug(ex, exc_info=True) elif not force: - logging.debug('File cache miss for resources on: %s', location_client.normalized_url) + logger.debug('File cache miss for resources on: %s', location_client.normalized_url) self._resource_areas = location_client.get_resource_areas() if self._resource_areas is None: # For OnPrem environments we get an empty collection wrapper. @@ -94,7 +96,7 @@ def _get_resource_areas(self, force=False): '[ResourceAreaInfo]') RESOURCE_FILE_CACHE[location_client.normalized_url] = serialized except Exception as ex: - logging.exception(str(ex)) + logger.debug(ex, exc_info=True) return self._resource_areas @staticmethod From fea6357b3191e2b95f18f58fa38a3aad5a189f57 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 8 Aug 2018 18:08:44 -0400 Subject: [PATCH 061/191] bumnp version to 0.1.16 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 95ae9d21..a4ce39ff 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.15" +VERSION = "0.1.16" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 273dbceb..99abba4e 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.15" +VERSION = "0.1.16" From a560db02a624887e0f261925a871b2ad35a342b9 Mon Sep 17 00:00:00 2001 From: Zach Renner Date: Tue, 11 Sep 2018 15:28:18 -0700 Subject: [PATCH 062/191] Fix time.clock() -> time.time() in _file_cache.py Fixes #111 --- vsts/vsts/_file_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsts/vsts/_file_cache.py b/vsts/vsts/_file_cache.py index 23f7af9c..c8ff1a5c 100644 --- a/vsts/vsts/_file_cache.py +++ b/vsts/vsts/_file_cache.py @@ -35,7 +35,7 @@ def load(self): self.data = {} try: if os.path.isfile(self.file_name): - if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.clock(): + if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.time(): logger.debug('Cache file expired: %s', file=self.file_name) os.remove(self.file_name) else: From 771feeebaf022b3076b227f899875e9789f3863c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 12 Sep 2018 09:39:22 -0400 Subject: [PATCH 063/191] latest regen --- vsts/vsts/accounts/__init__.py | 2 +- vsts/vsts/build/__init__.py | 2 +- vsts/vsts/client_trace/__init__.py | 2 +- vsts/vsts/cloud_load_test/__init__.py | 2 +- vsts/vsts/contributions/__init__.py | 2 +- vsts/vsts/core/__init__.py | 2 +- vsts/vsts/core/v4_1/core_client.py | 8 ++++---- vsts/vsts/customer_intelligence/__init__.py | 2 +- vsts/vsts/dashboard/__init__.py | 2 +- vsts/vsts/extension_management/__init__.py | 2 +- vsts/vsts/feature_availability/__init__.py | 2 +- vsts/vsts/feature_management/__init__.py | 2 +- vsts/vsts/feed/__init__.py | 2 +- vsts/vsts/feed_token/__init__.py | 2 +- vsts/vsts/file_container/__init__.py | 2 +- vsts/vsts/gallery/__init__.py | 2 +- vsts/vsts/git/__init__.py | 2 +- vsts/vsts/graph/__init__.py | 2 +- vsts/vsts/identity/__init__.py | 2 +- vsts/vsts/licensing/__init__.py | 2 +- vsts/vsts/location/__init__.py | 2 +- vsts/vsts/maven/__init__.py | 2 +- vsts/vsts/member_entitlement_management/__init__.py | 2 +- vsts/vsts/notification/__init__.py | 2 +- vsts/vsts/npm/__init__.py | 2 +- vsts/vsts/nuget/__init__.py | 2 +- vsts/vsts/operations/__init__.py | 2 +- vsts/vsts/policy/__init__.py | 2 +- vsts/vsts/profile/__init__.py | 2 +- vsts/vsts/project_analysis/__init__.py | 2 +- vsts/vsts/release/__init__.py | 2 +- vsts/vsts/service_endpoint/__init__.py | 2 +- vsts/vsts/service_hooks/__init__.py | 2 +- vsts/vsts/settings/__init__.py | 2 +- vsts/vsts/symbol/__init__.py | 2 +- vsts/vsts/task/__init__.py | 2 +- vsts/vsts/task_agent/__init__.py | 2 +- vsts/vsts/test/__init__.py | 2 +- vsts/vsts/tfvc/__init__.py | 2 +- vsts/vsts/wiki/__init__.py | 2 +- vsts/vsts/work/__init__.py | 2 +- vsts/vsts/work_item_tracking/__init__.py | 2 +- vsts/vsts/work_item_tracking_process/__init__.py | 2 +- vsts/vsts/work_item_tracking_process_template/__init__.py | 2 +- 44 files changed, 47 insertions(+), 47 deletions(-) diff --git a/vsts/vsts/accounts/__init__.py b/vsts/vsts/accounts/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/accounts/__init__.py +++ b/vsts/vsts/accounts/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/build/__init__.py b/vsts/vsts/build/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/build/__init__.py +++ b/vsts/vsts/build/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/client_trace/__init__.py b/vsts/vsts/client_trace/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/client_trace/__init__.py +++ b/vsts/vsts/client_trace/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/cloud_load_test/__init__.py b/vsts/vsts/cloud_load_test/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/cloud_load_test/__init__.py +++ b/vsts/vsts/cloud_load_test/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/contributions/__init__.py b/vsts/vsts/contributions/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/contributions/__init__.py +++ b/vsts/vsts/contributions/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/core/__init__.py b/vsts/vsts/core/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/core/__init__.py +++ b/vsts/vsts/core/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/core/v4_1/core_client.py b/vsts/vsts/core/v4_1/core_client.py index b4be6f20..bb4a1c4e 100644 --- a/vsts/vsts/core/v4_1/core_client.py +++ b/vsts/vsts/core/v4_1/core_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -210,7 +210,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None): """GetProjects. - Get project references with the specified state + Get all projects in the organization that the authenticated user has access to. :param str state_filter: Filter on team projects in a specific team project state (default: WellFormed). :param int top: :param int skip: @@ -235,7 +235,7 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke def queue_create_project(self, project_to_create): """QueueCreateProject. - Queue a project creation. + Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status. :param :class:` ` project_to_create: The project to create. :rtype: :class:` ` """ @@ -248,7 +248,7 @@ def queue_create_project(self, project_to_create): def queue_delete_project(self, project_id): """QueueDeleteProject. - Queue a project deletion. + Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. :param str project_id: The project id of the project to delete. :rtype: :class:` ` """ diff --git a/vsts/vsts/customer_intelligence/__init__.py b/vsts/vsts/customer_intelligence/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/customer_intelligence/__init__.py +++ b/vsts/vsts/customer_intelligence/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/__init__.py b/vsts/vsts/dashboard/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/dashboard/__init__.py +++ b/vsts/vsts/dashboard/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/extension_management/__init__.py b/vsts/vsts/extension_management/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/extension_management/__init__.py +++ b/vsts/vsts/extension_management/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_availability/__init__.py b/vsts/vsts/feature_availability/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/feature_availability/__init__.py +++ b/vsts/vsts/feature_availability/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_management/__init__.py b/vsts/vsts/feature_management/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/feature_management/__init__.py +++ b/vsts/vsts/feature_management/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed/__init__.py b/vsts/vsts/feed/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/feed/__init__.py +++ b/vsts/vsts/feed/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed_token/__init__.py b/vsts/vsts/feed_token/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/feed_token/__init__.py +++ b/vsts/vsts/feed_token/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/__init__.py b/vsts/vsts/file_container/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/file_container/__init__.py +++ b/vsts/vsts/file_container/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/gallery/__init__.py b/vsts/vsts/gallery/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/gallery/__init__.py +++ b/vsts/vsts/gallery/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/git/__init__.py b/vsts/vsts/git/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/git/__init__.py +++ b/vsts/vsts/git/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/graph/__init__.py b/vsts/vsts/graph/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/graph/__init__.py +++ b/vsts/vsts/graph/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/identity/__init__.py b/vsts/vsts/identity/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/identity/__init__.py +++ b/vsts/vsts/identity/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/licensing/__init__.py b/vsts/vsts/licensing/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/licensing/__init__.py +++ b/vsts/vsts/licensing/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/location/__init__.py b/vsts/vsts/location/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/location/__init__.py +++ b/vsts/vsts/location/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/maven/__init__.py b/vsts/vsts/maven/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/maven/__init__.py +++ b/vsts/vsts/maven/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/member_entitlement_management/__init__.py b/vsts/vsts/member_entitlement_management/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/member_entitlement_management/__init__.py +++ b/vsts/vsts/member_entitlement_management/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/notification/__init__.py b/vsts/vsts/notification/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/notification/__init__.py +++ b/vsts/vsts/notification/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/npm/__init__.py b/vsts/vsts/npm/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/npm/__init__.py +++ b/vsts/vsts/npm/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/nuget/__init__.py b/vsts/vsts/nuget/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/nuget/__init__.py +++ b/vsts/vsts/nuget/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/operations/__init__.py b/vsts/vsts/operations/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/operations/__init__.py +++ b/vsts/vsts/operations/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/policy/__init__.py b/vsts/vsts/policy/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/policy/__init__.py +++ b/vsts/vsts/policy/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/profile/__init__.py b/vsts/vsts/profile/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/profile/__init__.py +++ b/vsts/vsts/profile/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/project_analysis/__init__.py b/vsts/vsts/project_analysis/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/project_analysis/__init__.py +++ b/vsts/vsts/project_analysis/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/release/__init__.py b/vsts/vsts/release/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/release/__init__.py +++ b/vsts/vsts/release/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_endpoint/__init__.py b/vsts/vsts/service_endpoint/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/service_endpoint/__init__.py +++ b/vsts/vsts/service_endpoint/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_hooks/__init__.py b/vsts/vsts/service_hooks/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/service_hooks/__init__.py +++ b/vsts/vsts/service_hooks/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/settings/__init__.py b/vsts/vsts/settings/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/settings/__init__.py +++ b/vsts/vsts/settings/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/symbol/__init__.py b/vsts/vsts/symbol/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/symbol/__init__.py +++ b/vsts/vsts/symbol/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task/__init__.py b/vsts/vsts/task/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/task/__init__.py +++ b/vsts/vsts/task/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task_agent/__init__.py b/vsts/vsts/task_agent/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/task_agent/__init__.py +++ b/vsts/vsts/task_agent/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/test/__init__.py b/vsts/vsts/test/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/test/__init__.py +++ b/vsts/vsts/test/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/tfvc/__init__.py b/vsts/vsts/tfvc/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/tfvc/__init__.py +++ b/vsts/vsts/tfvc/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/wiki/__init__.py b/vsts/vsts/wiki/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/wiki/__init__.py +++ b/vsts/vsts/wiki/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work/__init__.py b/vsts/vsts/work/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/work/__init__.py +++ b/vsts/vsts/work/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking/__init__.py b/vsts/vsts/work_item_tracking/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/work_item_tracking/__init__.py +++ b/vsts/vsts/work_item_tracking/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process/__init__.py b/vsts/vsts/work_item_tracking_process/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/work_item_tracking_process/__init__.py +++ b/vsts/vsts/work_item_tracking_process/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_template/__init__.py b/vsts/vsts/work_item_tracking_process_template/__init__.py index b19525a6..f885a96e 100644 --- a/vsts/vsts/work_item_tracking_process_template/__init__.py +++ b/vsts/vsts/work_item_tracking_process_template/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- From 4d9e8a7715148df65da91a4ecf900d0ae8990e2a Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 12 Sep 2018 12:38:05 -0400 Subject: [PATCH 064/191] bump version to 0.1.17 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index a4ce39ff..5b0c95a1 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.16" +VERSION = "0.1.17" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 99abba4e..93143453 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.16" +VERSION = "0.1.17" From 211ce79e59a95f5e9e16f318e9209dd7972c73c3 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 20 Sep 2018 13:44:05 -0400 Subject: [PATCH 065/191] fix invalid team_context property references. --- vsts/vsts/dashboard/v4_0/dashboard_client.py | 44 +++--- vsts/vsts/dashboard/v4_1/dashboard_client.py | 46 +++--- vsts/vsts/test/v4_0/test_client.py | 12 +- vsts/vsts/test/v4_1/test_client.py | 14 +- vsts/vsts/work/v4_0/work_client.py | 128 +++++++-------- vsts/vsts/work/v4_1/work_client.py | 146 +++++++++--------- .../v4_0/work_item_tracking_client.py | 32 ++-- .../v4_1/work_item_tracking_client.py | 34 ++-- 8 files changed, 228 insertions(+), 228 deletions(-) diff --git a/vsts/vsts/dashboard/v4_0/dashboard_client.py b/vsts/vsts/dashboard/v4_0/dashboard_client.py index c7de62b2..493728f4 100644 --- a/vsts/vsts/dashboard/v4_0/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_0/dashboard_client.py @@ -35,11 +35,11 @@ def create_dashboard(self, dashboard, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -66,11 +66,11 @@ def delete_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -97,11 +97,11 @@ def get_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -128,11 +128,11 @@ def get_dashboards(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -159,11 +159,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -193,11 +193,11 @@ def replace_dashboards(self, group, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -226,11 +226,11 @@ def create_widget(self, widget, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -261,11 +261,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -296,11 +296,11 @@ def get_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -332,11 +332,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -370,11 +370,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/dashboard/v4_1/dashboard_client.py b/vsts/vsts/dashboard/v4_1/dashboard_client.py index 945244ed..319c41c7 100644 --- a/vsts/vsts/dashboard/v4_1/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_1/dashboard_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -35,11 +35,11 @@ def create_dashboard(self, dashboard, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -66,11 +66,11 @@ def delete_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -97,11 +97,11 @@ def get_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -128,11 +128,11 @@ def get_dashboards(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -159,11 +159,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -193,11 +193,11 @@ def replace_dashboards(self, group, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -226,11 +226,11 @@ def create_widget(self, widget, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -261,11 +261,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -296,11 +296,11 @@ def get_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -332,11 +332,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -370,11 +370,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index 2101cb25..1086ee19 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -1556,11 +1556,11 @@ def create_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1592,11 +1592,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1635,11 +1635,11 @@ def update_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index 5c7dff2c..758ace82 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -1638,11 +1638,11 @@ def create_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1674,11 +1674,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1717,11 +1717,11 @@ def update_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work/v4_0/work_client.py b/vsts/vsts/work/v4_0/work_client.py index ea88bda2..d3ad3d6e 100644 --- a/vsts/vsts/work/v4_0/work_client.py +++ b/vsts/vsts/work/v4_0/work_client.py @@ -34,11 +34,11 @@ def get_backlog_configurations(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -80,11 +80,11 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -133,11 +133,11 @@ def get_board(self, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -164,11 +164,11 @@ def get_boards(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -196,11 +196,11 @@ def set_board_options(self, options, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -231,11 +231,11 @@ def get_board_user_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -264,11 +264,11 @@ def update_board_user_settings(self, board_user_settings, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -297,11 +297,11 @@ def get_capacities(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -330,11 +330,11 @@ def get_capacity(self, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -364,11 +364,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -400,11 +400,11 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -436,11 +436,11 @@ def get_board_card_rule_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -469,11 +469,11 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -503,11 +503,11 @@ def get_board_card_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -536,11 +536,11 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -571,11 +571,11 @@ def get_board_chart(self, team_context, board, name): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -605,11 +605,11 @@ def get_board_charts(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -640,11 +640,11 @@ def update_board_chart(self, chart, team_context, board, name): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -675,11 +675,11 @@ def get_board_columns(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -708,11 +708,11 @@ def update_board_columns(self, board_columns, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -770,11 +770,11 @@ def delete_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -800,11 +800,11 @@ def get_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -831,11 +831,11 @@ def get_team_iterations(self, team_context, timeframe=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -865,11 +865,11 @@ def post_team_iteration(self, iteration, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1000,11 +1000,11 @@ def get_board_rows(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1033,11 +1033,11 @@ def update_board_rows(self, board_rows, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1067,11 +1067,11 @@ def get_team_days_off(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1099,11 +1099,11 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1131,11 +1131,11 @@ def get_team_field_values(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1160,11 +1160,11 @@ def update_team_field_values(self, patch, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1190,11 +1190,11 @@ def get_team_settings(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1219,11 +1219,11 @@ def update_team_settings(self, team_settings_patch, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py index 68d5d9cc..aceda7c2 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/vsts/vsts/work/v4_1/work_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -34,11 +34,11 @@ def get_backlog_configurations(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -64,11 +64,11 @@ def get_backlog_level_work_items(self, team_context, backlog_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -96,11 +96,11 @@ def get_backlog(self, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -127,11 +127,11 @@ def get_backlogs(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -175,11 +175,11 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -229,11 +229,11 @@ def get_board(self, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -260,11 +260,11 @@ def get_boards(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -292,11 +292,11 @@ def set_board_options(self, options, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -327,11 +327,11 @@ def get_board_user_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -360,11 +360,11 @@ def update_board_user_settings(self, board_user_settings, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -394,11 +394,11 @@ def get_capacities(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -428,11 +428,11 @@ def get_capacity(self, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -463,11 +463,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -500,11 +500,11 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -536,11 +536,11 @@ def get_board_card_rule_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -569,11 +569,11 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -603,11 +603,11 @@ def get_board_card_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -636,11 +636,11 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -671,11 +671,11 @@ def get_board_chart(self, team_context, board, name): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -705,11 +705,11 @@ def get_board_charts(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -740,11 +740,11 @@ def update_board_chart(self, chart, team_context, board, name): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -776,11 +776,11 @@ def get_board_columns(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -810,11 +810,11 @@ def update_board_columns(self, board_columns, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -873,11 +873,11 @@ def delete_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -904,11 +904,11 @@ def get_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -936,11 +936,11 @@ def get_team_iterations(self, team_context, timeframe=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -971,11 +971,11 @@ def post_team_iteration(self, iteration, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1107,11 +1107,11 @@ def get_board_rows(self, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1141,11 +1141,11 @@ def update_board_rows(self, board_rows, team_context, board): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1176,11 +1176,11 @@ def get_team_days_off(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1209,11 +1209,11 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1242,11 +1242,11 @@ def get_team_field_values(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1272,11 +1272,11 @@ def update_team_field_values(self, patch, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1303,11 +1303,11 @@ def get_team_settings(self, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1333,11 +1333,11 @@ def update_team_settings(self, team_settings_patch, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -1365,11 +1365,11 @@ def get_iteration_work_items(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index 45aef248..4214a0f0 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -654,11 +654,11 @@ def create_template(self, template, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -686,11 +686,11 @@ def get_templates(self, team_context, workitemtypename=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -720,11 +720,11 @@ def delete_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -751,11 +751,11 @@ def get_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -784,11 +784,11 @@ def replace_template(self, template_content, team_context, template_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -862,11 +862,11 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -901,11 +901,11 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -938,11 +938,11 @@ def query_by_id(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index b4c132e0..20917d36 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -708,11 +708,11 @@ def create_template(self, template, team_context): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -740,11 +740,11 @@ def get_templates(self, team_context, workitemtypename=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -774,11 +774,11 @@ def delete_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -805,11 +805,11 @@ def get_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -838,11 +838,11 @@ def replace_template(self, template_content, team_context, template_id): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -916,11 +916,11 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -955,11 +955,11 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team @@ -992,11 +992,11 @@ def query_by_id(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.projectId: + if team_context.project_Id: project = team_context.project_id else: project = team_context.project - if team_context.teamId: + if team_context.team_Id: team = team_context.team_id else: team = team_context.team From 0617cb3ff91253fcec3b6abd630db170fec2c4cc Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 20 Sep 2018 13:57:53 -0400 Subject: [PATCH 066/191] fix invalid team_context property references. --- vsts/vsts/dashboard/v4_0/dashboard_client.py | 44 +++--- vsts/vsts/dashboard/v4_1/dashboard_client.py | 44 +++--- vsts/vsts/test/v4_0/test_client.py | 12 +- vsts/vsts/test/v4_1/test_client.py | 12 +- vsts/vsts/work/v4_0/work_client.py | 128 ++++++++-------- vsts/vsts/work/v4_1/work_client.py | 144 +++++++++--------- .../v4_0/work_item_tracking_client.py | 32 ++-- .../v4_1/work_item_tracking_client.py | 32 ++-- 8 files changed, 224 insertions(+), 224 deletions(-) diff --git a/vsts/vsts/dashboard/v4_0/dashboard_client.py b/vsts/vsts/dashboard/v4_0/dashboard_client.py index 493728f4..65087058 100644 --- a/vsts/vsts/dashboard/v4_0/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_0/dashboard_client.py @@ -35,11 +35,11 @@ def create_dashboard(self, dashboard, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -66,11 +66,11 @@ def delete_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -97,11 +97,11 @@ def get_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -128,11 +128,11 @@ def get_dashboards(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -159,11 +159,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -193,11 +193,11 @@ def replace_dashboards(self, group, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -226,11 +226,11 @@ def create_widget(self, widget, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -261,11 +261,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -296,11 +296,11 @@ def get_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -332,11 +332,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -370,11 +370,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/dashboard/v4_1/dashboard_client.py b/vsts/vsts/dashboard/v4_1/dashboard_client.py index 319c41c7..9d32ffea 100644 --- a/vsts/vsts/dashboard/v4_1/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_1/dashboard_client.py @@ -35,11 +35,11 @@ def create_dashboard(self, dashboard, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -66,11 +66,11 @@ def delete_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -97,11 +97,11 @@ def get_dashboard(self, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -128,11 +128,11 @@ def get_dashboards(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -159,11 +159,11 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -193,11 +193,11 @@ def replace_dashboards(self, group, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -226,11 +226,11 @@ def create_widget(self, widget, team_context, dashboard_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -261,11 +261,11 @@ def delete_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -296,11 +296,11 @@ def get_widget(self, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -332,11 +332,11 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -370,11 +370,11 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index 1086ee19..7f1130e0 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -1556,11 +1556,11 @@ def create_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1592,11 +1592,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1635,11 +1635,11 @@ def update_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index 758ace82..11cc99e1 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -1638,11 +1638,11 @@ def create_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1674,11 +1674,11 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1717,11 +1717,11 @@ def update_test_session(self, test_session, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work/v4_0/work_client.py b/vsts/vsts/work/v4_0/work_client.py index d3ad3d6e..24669c90 100644 --- a/vsts/vsts/work/v4_0/work_client.py +++ b/vsts/vsts/work/v4_0/work_client.py @@ -34,11 +34,11 @@ def get_backlog_configurations(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -80,11 +80,11 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -133,11 +133,11 @@ def get_board(self, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -164,11 +164,11 @@ def get_boards(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -196,11 +196,11 @@ def set_board_options(self, options, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -231,11 +231,11 @@ def get_board_user_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -264,11 +264,11 @@ def update_board_user_settings(self, board_user_settings, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -297,11 +297,11 @@ def get_capacities(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -330,11 +330,11 @@ def get_capacity(self, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -364,11 +364,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -400,11 +400,11 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -436,11 +436,11 @@ def get_board_card_rule_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -469,11 +469,11 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -503,11 +503,11 @@ def get_board_card_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -536,11 +536,11 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -571,11 +571,11 @@ def get_board_chart(self, team_context, board, name): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -605,11 +605,11 @@ def get_board_charts(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -640,11 +640,11 @@ def update_board_chart(self, chart, team_context, board, name): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -675,11 +675,11 @@ def get_board_columns(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -708,11 +708,11 @@ def update_board_columns(self, board_columns, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -770,11 +770,11 @@ def delete_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -800,11 +800,11 @@ def get_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -831,11 +831,11 @@ def get_team_iterations(self, team_context, timeframe=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -865,11 +865,11 @@ def post_team_iteration(self, iteration, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1000,11 +1000,11 @@ def get_board_rows(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1033,11 +1033,11 @@ def update_board_rows(self, board_rows, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1067,11 +1067,11 @@ def get_team_days_off(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1099,11 +1099,11 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1131,11 +1131,11 @@ def get_team_field_values(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1160,11 +1160,11 @@ def update_team_field_values(self, patch, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1190,11 +1190,11 @@ def get_team_settings(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1219,11 +1219,11 @@ def update_team_settings(self, team_settings_patch, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py index aceda7c2..39c93550 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/vsts/vsts/work/v4_1/work_client.py @@ -34,11 +34,11 @@ def get_backlog_configurations(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -64,11 +64,11 @@ def get_backlog_level_work_items(self, team_context, backlog_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -96,11 +96,11 @@ def get_backlog(self, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -127,11 +127,11 @@ def get_backlogs(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -175,11 +175,11 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -229,11 +229,11 @@ def get_board(self, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -260,11 +260,11 @@ def get_boards(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -292,11 +292,11 @@ def set_board_options(self, options, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -327,11 +327,11 @@ def get_board_user_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -360,11 +360,11 @@ def update_board_user_settings(self, board_user_settings, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -394,11 +394,11 @@ def get_capacities(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -428,11 +428,11 @@ def get_capacity(self, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -463,11 +463,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -500,11 +500,11 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -536,11 +536,11 @@ def get_board_card_rule_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -569,11 +569,11 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -603,11 +603,11 @@ def get_board_card_settings(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -636,11 +636,11 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -671,11 +671,11 @@ def get_board_chart(self, team_context, board, name): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -705,11 +705,11 @@ def get_board_charts(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -740,11 +740,11 @@ def update_board_chart(self, chart, team_context, board, name): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -776,11 +776,11 @@ def get_board_columns(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -810,11 +810,11 @@ def update_board_columns(self, board_columns, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -873,11 +873,11 @@ def delete_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -904,11 +904,11 @@ def get_team_iteration(self, team_context, id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -936,11 +936,11 @@ def get_team_iterations(self, team_context, timeframe=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -971,11 +971,11 @@ def post_team_iteration(self, iteration, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1107,11 +1107,11 @@ def get_board_rows(self, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1141,11 +1141,11 @@ def update_board_rows(self, board_rows, team_context, board): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1176,11 +1176,11 @@ def get_team_days_off(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1209,11 +1209,11 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1242,11 +1242,11 @@ def get_team_field_values(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1272,11 +1272,11 @@ def update_team_field_values(self, patch, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1303,11 +1303,11 @@ def get_team_settings(self, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1333,11 +1333,11 @@ def update_team_settings(self, team_settings_patch, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -1365,11 +1365,11 @@ def get_iteration_work_items(self, team_context, iteration_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index 4214a0f0..36579c6e 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -654,11 +654,11 @@ def create_template(self, template, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -686,11 +686,11 @@ def get_templates(self, team_context, workitemtypename=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -720,11 +720,11 @@ def delete_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -751,11 +751,11 @@ def get_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -784,11 +784,11 @@ def replace_template(self, template_content, team_context, template_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -862,11 +862,11 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -901,11 +901,11 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -938,11 +938,11 @@ def query_by_id(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index 20917d36..4b12c307 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -708,11 +708,11 @@ def create_template(self, template, team_context): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -740,11 +740,11 @@ def get_templates(self, team_context, workitemtypename=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -774,11 +774,11 @@ def delete_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -805,11 +805,11 @@ def get_template(self, team_context, template_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -838,11 +838,11 @@ def replace_template(self, template_content, team_context, template_id): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -916,11 +916,11 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -955,11 +955,11 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team @@ -992,11 +992,11 @@ def query_by_id(self, id, team_context=None, time_precision=None): project = None team = None if team_context is not None: - if team_context.project_Id: + if team_context.project_id: project = team_context.project_id else: project = team_context.project - if team_context.team_Id: + if team_context.team_id: team = team_context.team_id else: team = team_context.team From c745399725d2c611e6124f51ea2f13a36533caa2 Mon Sep 17 00:00:00 2001 From: Naman Kanakiya Date: Mon, 24 Sep 2018 11:23:34 -0700 Subject: [PATCH 067/191] Fix get_commits query parameters to match API --- vsts/vsts/git/v4_1/git_client_base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index eb5f5935..127cf005 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -430,18 +430,18 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['searchCriteria.toDate'] = search_criteria.to_date if search_criteria.item_version is not None: if search_criteria.item_version.version_type is not None: - query_parameters['search_criteria.item_version.VersionType'] = search_criteria.item_version.version_type + query_parameters['searchCriteria.itemVersion.VersionType'] = search_criteria.item_version.version_type if search_criteria.item_version.version is not None: - query_parameters['search_criteria.item_version.Version'] = search_criteria.item_version.version + query_parameters['searchCriteria.itemVersion.Version'] = search_criteria.item_version.version if search_criteria.item_version.version_options is not None: - query_parameters['search_criteria.item_version.VersionOptions'] = search_criteria.item_version.version_options + query_parameters['searchCriteria.itemVersion.VersionOptions'] = search_criteria.item_version.version_options if search_criteria.compare_version is not None: if search_criteria.compare_version.version_type is not None: - query_parameters['search_criteria.compare_version.VersionType'] = search_criteria.compare_version.version_type + query_parameters['searchCriteria.compareVersion.VersionType'] = search_criteria.compare_version.version_type if search_criteria.compare_version.version is not None: - query_parameters['search_criteria.compare_version.Version'] = search_criteria.compare_version.version + query_parameters['searchCriteria.compareVersion.Version'] = search_criteria.compare_version.version if search_criteria.compare_version.version_options is not None: - query_parameters['search_criteria.compare_version.VersionOptions'] = search_criteria.compare_version.version_options + query_parameters['searchCriteria.compareVersion.VersionOptions'] = search_criteria.compare_version.version_options if search_criteria.from_commit_id is not None: query_parameters['searchCriteria.fromCommitId'] = search_criteria.from_commit_id if search_criteria.to_commit_id is not None: From 47b9fe5fee7c651d0c05e9119f2f477c91b8ec63 Mon Sep 17 00:00:00 2001 From: Marius van Niekerk Date: Thu, 4 Oct 2018 21:32:54 -0400 Subject: [PATCH 068/191] Ensure that the license is packaged in the sdist --- vsts/MANIFEST.in | 1 + 1 file changed, 1 insertion(+) create mode 100644 vsts/MANIFEST.in diff --git a/vsts/MANIFEST.in b/vsts/MANIFEST.in new file mode 100644 index 00000000..42eb4101 --- /dev/null +++ b/vsts/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE.txt From 5c9f4958ab2573046786ef86577f8ab3be48db7e Mon Sep 17 00:00:00 2001 From: Will Smythe Date: Fri, 5 Oct 2018 10:15:55 -0400 Subject: [PATCH 069/191] Update README.md --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0e4ef35f..7160d017 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ [![Visual Studio Team services](https://mseng.visualstudio.com/_apis/public/build/definitions/698eacea-9ea2-4eb8-80a4-d06170edf6bc/5904/badge)]() [![Python](https://img.shields.io/pypi/pyversions/vsts-cli.svg)](https://pypi.python.org/pypi/vsts) -# Microsoft Visual Studio Team Services Python API +# Azure DevOps Python API -This repository contains Microsoft Visual Studio Team Services Python API. This API is used to build the Visual Studio Team Services CLI. To learn more about the VSTS CLI, check out our [github repo](https://github.com/Microsoft/vsts-cli). +This repository contains Python APIs for interacting with and managing Azure DevOps. These APIs power the Visual Studio Team Services CLI. To learn more about the VSTS CLI, visit the [Microsoft/vsts-cli](https://github.com/Microsoft/vsts-cli) repo. # Installation @@ -13,7 +13,7 @@ This repository contains Microsoft Visual Studio Team Services Python API. This Following is an example how to use the API directly: -``` +```python from vsts.vss_connection import VssConnection from msrest.authentication import BasicAuthentication import pprint @@ -31,11 +31,9 @@ for project in team_projects: pprint.pprint(project.__dict__) ``` -# VSTS REST API Documentation - -The python SDK is a thin wrapper around the VSTS REST APIs. Please consult our REST API documentation for API specific details while working with this python SDK. +# Azure DevOps REST API Documentation -[VSTS REST API Documentation](https://docs.microsoft.com/en-us/rest/api/vsts) +This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/vsts/?view=vsts-rest-5.0) for details on calling different APIs. # Contributing From 9e676119a1b0a72aa17fadcf92e7256925211400 Mon Sep 17 00:00:00 2001 From: Will Smythe Date: Fri, 5 Oct 2018 10:23:31 -0400 Subject: [PATCH 070/191] Update README.md --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7160d017..53339871 100644 --- a/README.md +++ b/README.md @@ -18,15 +18,21 @@ from vsts.vss_connection import VssConnection from msrest.authentication import BasicAuthentication import pprint -token='REDACTED' -team_instance='https://REDACTED.visualstudio.com' +# Fill in with your personal access token and org URL +personal_access_token = 'YOURPAT' +organization_url = 'https://dev.azure.com/YOURORG' -credentials = BasicAuthentication('', token) -connection = VssConnection(base_url=team_instance, creds=credentials) +# Create a connection to the org +credentials = BasicAuthentication('', personal_access_token) +connection = VssConnection(base_url=organization_url, creds=credentials) + +# Get a client (the "core" client provides access to projects, teams, etc) core_client = connection.get_client('vsts.core.v4_0.core_client.CoreClient') -team_projects = core_client.get_projects() +# Get the list of projects in the org +projects = core_client.get_projects() +# Show details about each project in the console for project in team_projects: pprint.pprint(project.__dict__) ``` From c883ecb807dfa87bb1efcd0833c988e79bd9a429 Mon Sep 17 00:00:00 2001 From: Will Smythe Date: Fri, 5 Oct 2018 10:28:59 -0400 Subject: [PATCH 071/191] Update get started steps in readme and other cleanup --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 53339871..6507e148 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,16 @@ This repository contains Python APIs for interacting with and managing Azure DevOps. These APIs power the Visual Studio Team Services CLI. To learn more about the VSTS CLI, visit the [Microsoft/vsts-cli](https://github.com/Microsoft/vsts-cli) repo. -# Installation +## Install -```pip install vsts``` +``` +pip install vsts +``` + +## Get started -# Getting Started -Following is an example how to use the API directly: +To use the API, establish a connection using a [personal access token](https://docs.microsoft.com/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=vsts) and the URL to your Azure DevOps organization. Then get a client from the connection and make API calls. ```python from vsts.vss_connection import VssConnection @@ -37,11 +40,11 @@ for project in team_projects: pprint.pprint(project.__dict__) ``` -# Azure DevOps REST API Documentation +## API documentation This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/vsts/?view=vsts-rest-5.0) for details on calling different APIs. -# Contributing +## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us From f764e7de1bf0789d9501993e9d9166b12b23744a Mon Sep 17 00:00:00 2001 From: Will Smythe Date: Fri, 5 Oct 2018 10:32:42 -0400 Subject: [PATCH 072/191] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6507e148..738bc686 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,10 @@ for project in team_projects: This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/vsts/?view=vsts-rest-5.0) for details on calling different APIs. +## Samples + +Learn how to call different APIs by viewing the samples in the [Microsoft/azure-devops-python-samples](https://github.com/Microsoft/azure-devops-python-samples) repo. + ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a From e371a7ea5d080d1767208d88a0cf2709f67f4010 Mon Sep 17 00:00:00 2001 From: Will Smythe Date: Fri, 5 Oct 2018 10:46:21 -0400 Subject: [PATCH 073/191] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 738bc686..943f593a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ core_client = connection.get_client('vsts.core.v4_0.core_client.CoreClient') projects = core_client.get_projects() # Show details about each project in the console -for project in team_projects: +for project in projects: pprint.pprint(project.__dict__) ``` From 3a7b96cae9d5105764f0aae33db53d6fa4dda8a7 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 9 Oct 2018 15:30:48 -0400 Subject: [PATCH 074/191] Fix for msrest 0.6.0 breaking change --- vsts/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsts/setup.py b/vsts/setup.py index 5b0c95a1..23ab3338 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -16,7 +16,7 @@ # http://pypi.python.org/pypi/setuptools REQUIRES = [ - "msrest>=0.5.0" + "msrest>=0.5.0,<0.6.0" ] CLASSIFIERS = [ From 16d31c84ee522ba582e99f0844fd1b7d211096d8 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 9 Oct 2018 15:32:20 -0400 Subject: [PATCH 075/191] bump version to 0.1.18 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 23ab3338..b9743ceb 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.17" +VERSION = "0.1.18" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 93143453..9506f0cd 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.17" +VERSION = "0.1.18" From c370f03271429ba31f4937b634e4c53565f329a6 Mon Sep 17 00:00:00 2001 From: gauravsaralms <43203065+gauravsaralMs@users.noreply.github.com> Date: Sat, 13 Oct 2018 19:52:59 +0530 Subject: [PATCH 076/191] adding option to enable force msa pass through header adding option to enable force msa pass through header --- vsts/vsts/git/v4_0/git_client.py | 2 ++ vsts/vsts/git/v4_1/git_client.py | 2 ++ vsts/vsts/vss_client.py | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/vsts/vsts/git/v4_0/git_client.py b/vsts/vsts/git/v4_0/git_client.py index 7297d096..bc537a84 100644 --- a/vsts/vsts/git/v4_0/git_client.py +++ b/vsts/vsts/git/v4_0/git_client.py @@ -27,6 +27,8 @@ def get_vsts_info(self, relative_remote_url): headers = {'Accept': 'application/json'} if self._suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' response = self._send_request(request, headers) return self._deserialize('VstsInfo', response) diff --git a/vsts/vsts/git/v4_1/git_client.py b/vsts/vsts/git/v4_1/git_client.py index e5cb6ab1..dfa27cac 100644 --- a/vsts/vsts/git/v4_1/git_client.py +++ b/vsts/vsts/git/v4_1/git_client.py @@ -26,5 +26,7 @@ def get_vsts_info(self, relative_remote_url): headers = {'Accept': 'application/json'} if self._suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' response = self._send_request(request, headers) return self._deserialize('VstsInfo', response) diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index f738ee01..9d95eb23 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -38,6 +38,7 @@ def __init__(self, base_url=None, creds=None): self._all_host_types_locations = None self._locations = None self._suppress_fedauth_redirect = True + self._force_msa_pass_through = True self.normalized_url = VssClient._normalize_url(base_url) def add_user_agent(self, user_agent): @@ -88,6 +89,8 @@ def _send(self, http_method, location_id, version, route_values=None, headers[key] = self.config.additional_headers[key] if self._suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' if VssClient._session_header_key in VssClient._session_data and VssClient._session_header_key not in headers: headers[VssClient._session_header_key] = VssClient._session_data[VssClient._session_header_key] response = self._send_request(request=request, headers=headers, content=content) @@ -173,6 +176,8 @@ def _get_resource_locations(self, all_host_types): headers = {'Accept': 'application/json'} if self._suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' response = self._send_request(request, headers=headers) wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) if wrapper is None: From be6977c3c56d95ce371f238aa9dac224ac097c78 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 15 Oct 2018 10:24:57 -0400 Subject: [PATCH 077/191] bump version to 0.1.19 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index b9743ceb..dc06511f 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.18" +VERSION = "0.1.19" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 9506f0cd..587bf32a 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.18" +VERSION = "0.1.19" From c7f10d0e41012e6c1d5c0ad98dfd152c76146f36 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 23 Oct 2018 12:12:52 -0400 Subject: [PATCH 078/191] Add resource area id to the graph client. --- vsts/vsts/graph/v4_1/graph_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/vsts/graph/v4_1/graph_client.py b/vsts/vsts/graph/v4_1/graph_client.py index bb19ba48..bae17124 100644 --- a/vsts/vsts/graph/v4_1/graph_client.py +++ b/vsts/vsts/graph/v4_1/graph_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -23,7 +23,7 @@ def __init__(self, base_url=None, creds=None): self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - resource_area_identifier = None + resource_area_identifier = 'bb1e7ec9-e901-4b68-999a-de7012b920f8' def get_descriptor(self, storage_key): """GetDescriptor. From 7e180d16eff9ac6ec108360e0f165e35505223a3 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 23 Oct 2018 13:27:47 -0400 Subject: [PATCH 079/191] regenerate 4.1 clients after fix to query parameter names for complex model types. --- vsts/vsts/git/v4_1/git_client_base.py | 56 ++++++++++---------- vsts/vsts/test/v4_1/test_client.py | 28 +++++----- vsts/vsts/tfvc/v4_1/tfvc_client.py | 76 +++++++++++++-------------- vsts/vsts/wiki/v4_1/wiki_client.py | 14 ++--- 4 files changed, 87 insertions(+), 87 deletions(-) diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index 127cf005..7fb77479 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -199,11 +199,11 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= query_parameters['name'] = self._serialize.query('name', name, 'str') if base_version_descriptor is not None: if base_version_descriptor.version_type is not None: - query_parameters['baseVersionDescriptor.VersionType'] = base_version_descriptor.version_type + query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type if base_version_descriptor.version is not None: - query_parameters['baseVersionDescriptor.Version'] = base_version_descriptor.version + query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version if base_version_descriptor.version_options is not None: - query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options + query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', version='4.1', @@ -227,11 +227,11 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None query_parameters = {} if base_version_descriptor is not None: if base_version_descriptor.version_type is not None: - query_parameters['baseVersionDescriptor.VersionType'] = base_version_descriptor.version_type + query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type if base_version_descriptor.version is not None: - query_parameters['baseVersionDescriptor.Version'] = base_version_descriptor.version + query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version if base_version_descriptor.version_options is not None: - query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options + query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', version='4.1', @@ -430,18 +430,18 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['searchCriteria.toDate'] = search_criteria.to_date if search_criteria.item_version is not None: if search_criteria.item_version.version_type is not None: - query_parameters['searchCriteria.itemVersion.VersionType'] = search_criteria.item_version.version_type + query_parameters['searchCriteria.itemVersion.versionType'] = search_criteria.item_version.version_type if search_criteria.item_version.version is not None: - query_parameters['searchCriteria.itemVersion.Version'] = search_criteria.item_version.version + query_parameters['searchCriteria.itemVersion.version'] = search_criteria.item_version.version if search_criteria.item_version.version_options is not None: - query_parameters['searchCriteria.itemVersion.VersionOptions'] = search_criteria.item_version.version_options + query_parameters['searchCriteria.itemVersion.versionOptions'] = search_criteria.item_version.version_options if search_criteria.compare_version is not None: if search_criteria.compare_version.version_type is not None: - query_parameters['searchCriteria.compareVersion.VersionType'] = search_criteria.compare_version.version_type + query_parameters['searchCriteria.compareVersion.versionType'] = search_criteria.compare_version.version_type if search_criteria.compare_version.version is not None: - query_parameters['searchCriteria.compareVersion.Version'] = search_criteria.compare_version.version + query_parameters['searchCriteria.compareVersion.version'] = search_criteria.compare_version.version if search_criteria.compare_version.version_options is not None: - query_parameters['searchCriteria.compareVersion.VersionOptions'] = search_criteria.compare_version.version_options + query_parameters['searchCriteria.compareVersion.versionOptions'] = search_criteria.compare_version.version_options if search_criteria.from_commit_id is not None: query_parameters['searchCriteria.fromCommitId'] = search_criteria.from_commit_id if search_criteria.to_commit_id is not None: @@ -789,11 +789,11 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -838,11 +838,11 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -886,11 +886,11 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1', @@ -934,11 +934,11 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -983,11 +983,11 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index 11cc99e1..098c82ff 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -1281,19 +1281,19 @@ def query_test_results_report_for_build(self, project, build_id, publish_context query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') if build_to_compare is not None: if build_to_compare.id is not None: - query_parameters['buildToCompare.Id'] = build_to_compare.id + query_parameters['buildToCompare.id'] = build_to_compare.id if build_to_compare.definition_id is not None: - query_parameters['buildToCompare.DefinitionId'] = build_to_compare.definition_id + query_parameters['buildToCompare.definitionId'] = build_to_compare.definition_id if build_to_compare.number is not None: - query_parameters['buildToCompare.Number'] = build_to_compare.number + query_parameters['buildToCompare.number'] = build_to_compare.number if build_to_compare.uri is not None: - query_parameters['buildToCompare.Uri'] = build_to_compare.uri + query_parameters['buildToCompare.uri'] = build_to_compare.uri if build_to_compare.build_system is not None: - query_parameters['buildToCompare.BuildSystem'] = build_to_compare.build_system + query_parameters['buildToCompare.buildSystem'] = build_to_compare.build_system if build_to_compare.branch_name is not None: - query_parameters['buildToCompare.BranchName'] = build_to_compare.branch_name + query_parameters['buildToCompare.branchName'] = build_to_compare.branch_name if build_to_compare.repository_id is not None: - query_parameters['buildToCompare.RepositoryId'] = build_to_compare.repository_id + query_parameters['buildToCompare.repositoryId'] = build_to_compare.repository_id response = self._send(http_method='GET', location_id='000ef77b-fea2-498d-a10d-ad1a037f559f', version='4.1-preview.1', @@ -1326,19 +1326,19 @@ def query_test_results_report_for_release(self, project, release_id, release_env query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') if release_to_compare is not None: if release_to_compare.id is not None: - query_parameters['releaseToCompare.Id'] = release_to_compare.id + query_parameters['releaseToCompare.id'] = release_to_compare.id if release_to_compare.name is not None: - query_parameters['releaseToCompare.Name'] = release_to_compare.name + query_parameters['releaseToCompare.name'] = release_to_compare.name if release_to_compare.environment_id is not None: - query_parameters['releaseToCompare.EnvironmentId'] = release_to_compare.environment_id + query_parameters['releaseToCompare.environmentId'] = release_to_compare.environment_id if release_to_compare.environment_name is not None: - query_parameters['releaseToCompare.EnvironmentName'] = release_to_compare.environment_name + query_parameters['releaseToCompare.environmentName'] = release_to_compare.environment_name if release_to_compare.definition_id is not None: - query_parameters['releaseToCompare.DefinitionId'] = release_to_compare.definition_id + query_parameters['releaseToCompare.definitionId'] = release_to_compare.definition_id if release_to_compare.environment_definition_id is not None: - query_parameters['releaseToCompare.EnvironmentDefinitionId'] = release_to_compare.environment_definition_id + query_parameters['releaseToCompare.environmentDefinitionId'] = release_to_compare.environment_definition_id if release_to_compare.environment_definition_name is not None: - query_parameters['releaseToCompare.EnvironmentDefinitionName'] = release_to_compare.environment_definition_name + query_parameters['releaseToCompare.environmentDefinitionName'] = release_to_compare.environment_definition_name response = self._send(http_method='GET', location_id='85765790-ac68-494e-b268-af36c3929744', version='4.1-preview.1', diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/vsts/vsts/tfvc/v4_1/tfvc_client.py index a93ae789..6799fa65 100644 --- a/vsts/vsts/tfvc/v4_1/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_1/tfvc_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -356,11 +356,11 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -399,11 +399,11 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -435,11 +435,11 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1', @@ -477,11 +477,11 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -520,11 +520,11 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -574,15 +574,15 @@ def get_label(self, label_id, request_data, project=None): query_parameters = {} if request_data is not None: if request_data.label_scope is not None: - query_parameters['requestData.LabelScope'] = request_data.label_scope + query_parameters['requestData.labelScope'] = request_data.label_scope if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.item_label_filter is not None: - query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + query_parameters['requestData.itemLabelFilter'] = request_data.item_label_filter if request_data.max_item_count is not None: - query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + query_parameters['requestData.maxItemCount'] = request_data.max_item_count if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', @@ -607,15 +607,15 @@ def get_labels(self, request_data, project=None, top=None, skip=None): query_parameters = {} if request_data is not None: if request_data.label_scope is not None: - query_parameters['requestData.LabelScope'] = request_data.label_scope + query_parameters['requestData.labelScope'] = request_data.label_scope if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.item_label_filter is not None: - query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + query_parameters['requestData.itemLabelFilter'] = request_data.item_label_filter if request_data.max_item_count is not None: - query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + query_parameters['requestData.maxItemCount'] = request_data.max_item_count if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links if top is not None: @@ -664,17 +664,17 @@ def get_shelveset(self, shelveset_id, request_data=None): query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') if request_data is not None: if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.max_comment_length is not None: - query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + query_parameters['requestData.maxCommentLength'] = request_data.max_comment_length if request_data.max_change_count is not None: - query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + query_parameters['requestData.maxChangeCount'] = request_data.max_change_count if request_data.include_details is not None: - query_parameters['requestData.IncludeDetails'] = request_data.include_details + query_parameters['requestData.includeDetails'] = request_data.include_details if request_data.include_work_items is not None: - query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + query_parameters['requestData.includeWorkItems'] = request_data.include_work_items if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', @@ -694,17 +694,17 @@ def get_shelvesets(self, request_data=None, top=None, skip=None): query_parameters = {} if request_data is not None: if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.max_comment_length is not None: - query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + query_parameters['requestData.maxCommentLength'] = request_data.max_comment_length if request_data.max_change_count is not None: - query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + query_parameters['requestData.maxChangeCount'] = request_data.max_change_count if request_data.include_details is not None: - query_parameters['requestData.IncludeDetails'] = request_data.include_details + query_parameters['requestData.includeDetails'] = request_data.include_details if request_data.include_work_items is not None: - query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + query_parameters['requestData.includeWorkItems'] = request_data.include_work_items if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links if top is not None: diff --git a/vsts/vsts/wiki/v4_1/wiki_client.py b/vsts/vsts/wiki/v4_1/wiki_client.py index 77fd1ffa..141f403e 100644 --- a/vsts/vsts/wiki/v4_1/wiki_client.py +++ b/vsts/vsts/wiki/v4_1/wiki_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -48,11 +48,11 @@ def get_page_text(self, project, wiki_identifier, path=None, recursion_level=Non query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', @@ -85,11 +85,11 @@ def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', From e273d14b5839338aa18fd68de976af2ea242e668 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 23 Oct 2018 13:38:09 -0400 Subject: [PATCH 080/191] regenerate 4.0 clients after fix to query parameter names for complex model types. --- vsts/vsts/git/v4_0/git_client_base.py | 54 +++++++++---------- vsts/vsts/test/v4_0/test_client.py | 28 +++++----- vsts/vsts/tfvc/v4_0/tfvc_client.py | 74 +++++++++++++-------------- vsts/vsts/wiki/v4_0/wiki_client.py | 24 ++++----- 4 files changed, 90 insertions(+), 90 deletions(-) diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/vsts/vsts/git/v4_0/git_client_base.py index 3018c57c..aad1ed70 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/vsts/vsts/git/v4_0/git_client_base.py @@ -199,11 +199,11 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= query_parameters['name'] = self._serialize.query('name', name, 'str') if base_version_descriptor is not None: if base_version_descriptor.version_type is not None: - query_parameters['baseVersionDescriptor.VersionType'] = base_version_descriptor.version_type + query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type if base_version_descriptor.version is not None: - query_parameters['baseVersionDescriptor.Version'] = base_version_descriptor.version + query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version if base_version_descriptor.version_options is not None: - query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options + query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', version='4.0', @@ -227,11 +227,11 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None query_parameters = {} if base_version_descriptor is not None: if base_version_descriptor.version_type is not None: - query_parameters['baseVersionDescriptor.VersionType'] = base_version_descriptor.version_type + query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type if base_version_descriptor.version is not None: - query_parameters['baseVersionDescriptor.Version'] = base_version_descriptor.version + query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version if base_version_descriptor.version_options is not None: - query_parameters['baseVersionDescriptor.VersionOptions'] = base_version_descriptor.version_options + query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', version='4.0', @@ -452,18 +452,18 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['searchCriteria.toDate'] = search_criteria.to_date if search_criteria.item_version is not None: if search_criteria.item_version.version_type is not None: - query_parameters['search_criteria.item_version.VersionType'] = search_criteria.item_version.version_type + query_parameters['searchCriteria.itemVersion.versionType'] = search_criteria.item_version.version_type if search_criteria.item_version.version is not None: - query_parameters['search_criteria.item_version.Version'] = search_criteria.item_version.version + query_parameters['searchCriteria.itemVersion.version'] = search_criteria.item_version.version if search_criteria.item_version.version_options is not None: - query_parameters['search_criteria.item_version.VersionOptions'] = search_criteria.item_version.version_options + query_parameters['searchCriteria.itemVersion.versionOptions'] = search_criteria.item_version.version_options if search_criteria.compare_version is not None: if search_criteria.compare_version.version_type is not None: - query_parameters['search_criteria.compare_version.VersionType'] = search_criteria.compare_version.version_type + query_parameters['searchCriteria.compareVersion.versionType'] = search_criteria.compare_version.version_type if search_criteria.compare_version.version is not None: - query_parameters['search_criteria.compare_version.Version'] = search_criteria.compare_version.version + query_parameters['searchCriteria.compareVersion.version'] = search_criteria.compare_version.version if search_criteria.compare_version.version_options is not None: - query_parameters['search_criteria.compare_version.VersionOptions'] = search_criteria.compare_version.version_options + query_parameters['searchCriteria.compareVersion.versionOptions'] = search_criteria.compare_version.version_options if search_criteria.from_commit_id is not None: query_parameters['searchCriteria.fromCommitId'] = search_criteria.from_commit_id if search_criteria.to_commit_id is not None: @@ -810,11 +810,11 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', @@ -856,11 +856,11 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', @@ -902,11 +902,11 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', @@ -949,11 +949,11 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', @@ -995,11 +995,11 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur query_parameters['download'] = self._serialize.query('download', download, 'bool') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index 7f1130e0..842ba8b6 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -1207,19 +1207,19 @@ def query_test_results_report_for_build(self, project, build_id, publish_context query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') if build_to_compare is not None: if build_to_compare.id is not None: - query_parameters['buildToCompare.Id'] = build_to_compare.id + query_parameters['buildToCompare.id'] = build_to_compare.id if build_to_compare.definition_id is not None: - query_parameters['buildToCompare.DefinitionId'] = build_to_compare.definition_id + query_parameters['buildToCompare.definitionId'] = build_to_compare.definition_id if build_to_compare.number is not None: - query_parameters['buildToCompare.Number'] = build_to_compare.number + query_parameters['buildToCompare.number'] = build_to_compare.number if build_to_compare.uri is not None: - query_parameters['buildToCompare.Uri'] = build_to_compare.uri + query_parameters['buildToCompare.uri'] = build_to_compare.uri if build_to_compare.build_system is not None: - query_parameters['buildToCompare.BuildSystem'] = build_to_compare.build_system + query_parameters['buildToCompare.buildSystem'] = build_to_compare.build_system if build_to_compare.branch_name is not None: - query_parameters['buildToCompare.BranchName'] = build_to_compare.branch_name + query_parameters['buildToCompare.branchName'] = build_to_compare.branch_name if build_to_compare.repository_id is not None: - query_parameters['buildToCompare.RepositoryId'] = build_to_compare.repository_id + query_parameters['buildToCompare.repositoryId'] = build_to_compare.repository_id response = self._send(http_method='GET', location_id='000ef77b-fea2-498d-a10d-ad1a037f559f', version='4.0-preview.1', @@ -1252,19 +1252,19 @@ def query_test_results_report_for_release(self, project, release_id, release_env query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') if release_to_compare is not None: if release_to_compare.id is not None: - query_parameters['releaseToCompare.Id'] = release_to_compare.id + query_parameters['releaseToCompare.id'] = release_to_compare.id if release_to_compare.name is not None: - query_parameters['releaseToCompare.Name'] = release_to_compare.name + query_parameters['releaseToCompare.name'] = release_to_compare.name if release_to_compare.environment_id is not None: - query_parameters['releaseToCompare.EnvironmentId'] = release_to_compare.environment_id + query_parameters['releaseToCompare.environmentId'] = release_to_compare.environment_id if release_to_compare.environment_name is not None: - query_parameters['releaseToCompare.EnvironmentName'] = release_to_compare.environment_name + query_parameters['releaseToCompare.environmentName'] = release_to_compare.environment_name if release_to_compare.definition_id is not None: - query_parameters['releaseToCompare.DefinitionId'] = release_to_compare.definition_id + query_parameters['releaseToCompare.definitionId'] = release_to_compare.definition_id if release_to_compare.environment_definition_id is not None: - query_parameters['releaseToCompare.EnvironmentDefinitionId'] = release_to_compare.environment_definition_id + query_parameters['releaseToCompare.environmentDefinitionId'] = release_to_compare.environment_definition_id if release_to_compare.environment_definition_name is not None: - query_parameters['releaseToCompare.EnvironmentDefinitionName'] = release_to_compare.environment_definition_name + query_parameters['releaseToCompare.environmentDefinitionName'] = release_to_compare.environment_definition_name response = self._send(http_method='GET', location_id='85765790-ac68-494e-b268-af36c3929744', version='4.0-preview.1', diff --git a/vsts/vsts/tfvc/v4_0/tfvc_client.py b/vsts/vsts/tfvc/v4_0/tfvc_client.py index 54e9ce02..19912bab 100644 --- a/vsts/vsts/tfvc/v4_0/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_0/tfvc_client.py @@ -353,11 +353,11 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', @@ -393,11 +393,11 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', @@ -427,11 +427,11 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', @@ -468,11 +468,11 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', @@ -508,11 +508,11 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_option is not None: - query_parameters['versionDescriptor.VersionOption'] = version_descriptor.version_option + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', @@ -560,15 +560,15 @@ def get_label(self, label_id, request_data, project=None): query_parameters = {} if request_data is not None: if request_data.label_scope is not None: - query_parameters['requestData.LabelScope'] = request_data.label_scope + query_parameters['requestData.labelScope'] = request_data.label_scope if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.item_label_filter is not None: - query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + query_parameters['requestData.itemLabelFilter'] = request_data.item_label_filter if request_data.max_item_count is not None: - query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + query_parameters['requestData.maxItemCount'] = request_data.max_item_count if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', @@ -593,15 +593,15 @@ def get_labels(self, request_data, project=None, top=None, skip=None): query_parameters = {} if request_data is not None: if request_data.label_scope is not None: - query_parameters['requestData.LabelScope'] = request_data.label_scope + query_parameters['requestData.labelScope'] = request_data.label_scope if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.item_label_filter is not None: - query_parameters['requestData.ItemLabelFilter'] = request_data.item_label_filter + query_parameters['requestData.itemLabelFilter'] = request_data.item_label_filter if request_data.max_item_count is not None: - query_parameters['requestData.MaxItemCount'] = request_data.max_item_count + query_parameters['requestData.maxItemCount'] = request_data.max_item_count if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links if top is not None: @@ -650,17 +650,17 @@ def get_shelveset(self, shelveset_id, request_data=None): query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') if request_data is not None: if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.max_comment_length is not None: - query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + query_parameters['requestData.maxCommentLength'] = request_data.max_comment_length if request_data.max_change_count is not None: - query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + query_parameters['requestData.maxChangeCount'] = request_data.max_change_count if request_data.include_details is not None: - query_parameters['requestData.IncludeDetails'] = request_data.include_details + query_parameters['requestData.includeDetails'] = request_data.include_details if request_data.include_work_items is not None: - query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + query_parameters['requestData.includeWorkItems'] = request_data.include_work_items if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', @@ -680,17 +680,17 @@ def get_shelvesets(self, request_data=None, top=None, skip=None): query_parameters = {} if request_data is not None: if request_data.name is not None: - query_parameters['requestData.Name'] = request_data.name + query_parameters['requestData.name'] = request_data.name if request_data.owner is not None: - query_parameters['requestData.Owner'] = request_data.owner + query_parameters['requestData.owner'] = request_data.owner if request_data.max_comment_length is not None: - query_parameters['requestData.MaxCommentLength'] = request_data.max_comment_length + query_parameters['requestData.maxCommentLength'] = request_data.max_comment_length if request_data.max_change_count is not None: - query_parameters['requestData.MaxChangeCount'] = request_data.max_change_count + query_parameters['requestData.maxChangeCount'] = request_data.max_change_count if request_data.include_details is not None: - query_parameters['requestData.IncludeDetails'] = request_data.include_details + query_parameters['requestData.includeDetails'] = request_data.include_details if request_data.include_work_items is not None: - query_parameters['requestData.IncludeWorkItems'] = request_data.include_work_items + query_parameters['requestData.includeWorkItems'] = request_data.include_work_items if request_data.include_links is not None: query_parameters['requestData.includeLinks'] = request_data.include_links if top is not None: diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/vsts/vsts/wiki/v4_0/wiki_client.py index 1ab0b66e..7980ee1b 100644 --- a/vsts/vsts/wiki/v4_0/wiki_client.py +++ b/vsts/vsts/wiki/v4_0/wiki_client.py @@ -47,11 +47,11 @@ def get_pages(self, project, wiki_id, path=None, recursion_level=None, version_d query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.0-preview.1', @@ -82,11 +82,11 @@ def get_page_text(self, project, wiki_id, path=None, recursion_level=None, versi query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.0-preview.1', @@ -116,11 +116,11 @@ def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, versio query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.0-preview.1', @@ -145,11 +145,11 @@ def create_update(self, update, project, wiki_id, version_descriptor=None): query_parameters = {} if version_descriptor is not None: if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.VersionType'] = version_descriptor.version_type + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: - query_parameters['versionDescriptor.Version'] = version_descriptor.version + query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.VersionOptions'] = version_descriptor.version_options + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options content = self._serialize.body(update, 'WikiUpdate') response = self._send(http_method='POST', location_id='d015d701-8038-4e7b-8623-3d5ca6813a6c', From c6f4c035fa4e4217bdfa981d93ca300435dd24a9 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 23 Oct 2018 14:00:04 -0400 Subject: [PATCH 081/191] update version to 0.1.20 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index dc06511f..8e47bd4f 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.19" +VERSION = "0.1.20" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 587bf32a..054026d5 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.19" +VERSION = "0.1.20" From fc037f481ae67689336aedba1bee4c0604dc6207 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 25 Oct 2018 12:09:10 -0400 Subject: [PATCH 082/191] bump dependency of msrest: "msrest>=0.6.0,<0.7.0" --- vsts/setup.py | 2 +- vsts/vsts/git/v4_0/git_client.py | 11 ++++------- vsts/vsts/git/v4_1/git_client.py | 21 +++++++++++++++++---- vsts/vsts/vss_client.py | 10 +++------- 4 files changed, 25 insertions(+), 19 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 8e47bd4f..7f61c5d6 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -16,7 +16,7 @@ # http://pypi.python.org/pypi/setuptools REQUIRES = [ - "msrest>=0.5.0,<0.6.0" + "msrest>=0.6.0,<0.7.0" ] CLASSIFIERS = [ diff --git a/vsts/vsts/git/v4_0/git_client.py b/vsts/vsts/git/v4_0/git_client.py index bc537a84..fe96789d 100644 --- a/vsts/vsts/git/v4_0/git_client.py +++ b/vsts/vsts/git/v4_0/git_client.py @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- -from msrest.pipeline import ClientRequest +from msrest.universal_http import ClientRequest from .git_client_base import GitClientBase @@ -21,9 +21,8 @@ def __init__(self, base_url=None, creds=None): super(GitClient, self).__init__(base_url, creds) def get_vsts_info(self, relative_remote_url): - request = ClientRequest() - request.url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') - request.method = 'GET' + url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') + request = ClientRequest(method='GET', url=url) headers = {'Accept': 'application/json'} if self._suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' @@ -34,9 +33,7 @@ def get_vsts_info(self, relative_remote_url): @staticmethod def get_vsts_info_by_remote_url(remote_url, credentials, suppress_fedauth_redirect=True): - request = ClientRequest() - request.url = remote_url.rstrip('/') + '/vsts/info' - request.method = 'GET' + request = ClientRequest(method='GET', url=remote_url.rstrip('/') + '/vsts/info') headers = {'Accept': 'application/json'} if suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' diff --git a/vsts/vsts/git/v4_1/git_client.py b/vsts/vsts/git/v4_1/git_client.py index dfa27cac..83c449ca 100644 --- a/vsts/vsts/git/v4_1/git_client.py +++ b/vsts/vsts/git/v4_1/git_client.py @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------- -from msrest.pipeline import ClientRequest +from msrest.universal_http import ClientRequest from .git_client_base import GitClientBase @@ -20,9 +20,8 @@ def __init__(self, base_url=None, creds=None): super(GitClient, self).__init__(base_url, creds) def get_vsts_info(self, relative_remote_url): - request = ClientRequest() - request.url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') - request.method = 'GET' + url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') + request = ClientRequest(method='GET', url=url) headers = {'Accept': 'application/json'} if self._suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' @@ -30,3 +29,17 @@ def get_vsts_info(self, relative_remote_url): headers['X-VSS-ForceMsaPassThrough'] = 'true' response = self._send_request(request, headers) return self._deserialize('VstsInfo', response) + + @staticmethod + def get_vsts_info_by_remote_url(remote_url, credentials, + suppress_fedauth_redirect=True, + force_msa_pass_through=True): + request = ClientRequest(method='GET', url=remote_url.rstrip('/') + '/vsts/info') + headers = {'Accept': 'application/json'} + if suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' + git_client = GitClient(base_url=remote_url, creds=credentials) + response = git_client._send_request(request, headers) + return git_client._deserialize('VstsInfo', response) diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index 9d95eb23..7fed78bd 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -12,7 +12,7 @@ from msrest import Deserializer, Serializer from msrest.exceptions import DeserializationError, SerializationError -from msrest.pipeline import ClientRequest +from msrest.universal_http import ClientRequest from msrest.service_client import ServiceClient from .exceptions import VstsAuthenticationError, VstsClientRequestError, VstsServiceError from .vss_client_configuration import VssClientConfiguration @@ -120,11 +120,9 @@ def _create_request_message(self, http_method, location_id, route_values=None, route_values) logger.debug('Route template: %s', location.route_template) url = self._client.format_url(route_template, **route_values) - request = ClientRequest() - request.url = self._client.format_url(url) + request = ClientRequest(method=http_method, url=self._client.format_url(url)) if query_parameters: request.format_parameters(query_parameters) - request.method = http_method return request @staticmethod @@ -167,12 +165,10 @@ def _get_resource_locations(self, all_host_types): # Last resort, make the call to the server options_uri = self._combine_url(self.config.base_url, '_apis') - request = ClientRequest() - request.url = self._client.format_url(options_uri) + request = ClientRequest(method='OPTIONS', url=self._client.format_url(options_uri)) if all_host_types: query_parameters = {'allHostTypes': True} request.format_parameters(query_parameters) - request.method = 'OPTIONS' headers = {'Accept': 'application/json'} if self._suppress_fedauth_redirect: headers['X-TFS-FedAuthRedirect'] = 'Suppress' From b91b356e19b6bc7c25347a5d47836cf0b6adfbea Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 25 Oct 2018 13:53:19 -0400 Subject: [PATCH 083/191] bump version to 0.1.21 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 7f61c5d6..48a1d4cd 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.20" +VERSION = "0.1.21" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 054026d5..ef3e7b2e 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.20" +VERSION = "0.1.21" From 0552b42ab523a23494a76f52400021fb23ffd4d2 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 30 Nov 2018 22:53:24 -0500 Subject: [PATCH 084/191] regen security client --- vsts/vsts/security/v4_1/security_client.py | 39 +++++++++++----------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/vsts/vsts/security/v4_1/security_client.py b/vsts/vsts/security/v4_1/security_client.py index 1e051591..1d727f87 100644 --- a/vsts/vsts/security/v4_1/security_client.py +++ b/vsts/vsts/security/v4_1/security_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None): def remove_access_control_entries(self, security_namespace_id, token=None, descriptors=None): """RemoveAccessControlEntries. - [Preview API] Remove the specified ACEs from the ACL belonging to the specified token. + Remove the specified ACEs from the ACL belonging to the specified token. :param str security_namespace_id: :param str token: :param str descriptors: @@ -43,14 +43,14 @@ def remove_access_control_entries(self, security_namespace_id, token=None, descr query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') response = self._send(http_method='DELETE', location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('bool', response) def set_access_control_entries(self, container, security_namespace_id): """SetAccessControlEntries. - [Preview API] Add or update ACEs in the ACL for the provided token. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. + Add or update ACEs in the ACL for the provided token. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. :param :class:` ` container: :param str security_namespace_id: :rtype: [AccessControlEntry] @@ -61,7 +61,7 @@ def set_access_control_entries(self, container, security_namespace_id): content = self._serialize.body(container, 'object') response = self._send(http_method='POST', location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content, returns_collection=True) @@ -69,7 +69,7 @@ def set_access_control_entries(self, container, security_namespace_id): def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): """QueryAccessControlLists. - [Preview API] Return a list of access control lists for the specified security namespace and token. + Return a list of access control lists for the specified security namespace and token. :param str security_namespace_id: Security namespace identifier. :param str token: Security token :param str descriptors: @@ -91,7 +91,7 @@ def query_access_control_lists(self, security_namespace_id, token=None, descript query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') response = self._send(http_method='GET', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -99,7 +99,7 @@ def query_access_control_lists(self, security_namespace_id, token=None, descript def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None): """RemoveAccessControlLists. - [Preview API] Remove access control lists under the specfied security namespace. + Remove access control lists under the specfied security namespace. :param str security_namespace_id: Security namespace identifier. :param str tokens: One or more comma-separated security tokens :param bool recurse: If true and this is a hierarchical namespace, also remove child ACLs of the specified tokens. @@ -115,14 +115,14 @@ def remove_access_control_lists(self, security_namespace_id, tokens=None, recurs query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') response = self._send(http_method='DELETE', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('bool', response) def set_access_control_lists(self, access_control_lists, security_namespace_id): """SetAccessControlLists. - [Preview API] Create one or more access control lists. + Create one or more access control lists. :param :class:` ` access_control_lists: :param str security_namespace_id: Security namespace identifier. """ @@ -132,26 +132,26 @@ def set_access_control_lists(self, access_control_lists, security_namespace_id): content = self._serialize.body(access_control_lists, 'VssJsonCollectionWrapper') self._send(http_method='POST', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.1-preview.1', + version='4.1', route_values=route_values, content=content) def has_permissions_batch(self, eval_batch): """HasPermissionsBatch. - [Preview API] Evaluates multiple permissions for the callign user. Note: This methods does not aggregate the results nor does it short-circut if one of the permissions evaluates to false. - :param :class:` ` eval_batch: The set of permissions to check. + Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false. + :param :class:` ` eval_batch: The set of evaluation requests. :rtype: :class:` ` """ content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') response = self._send(http_method='POST', location_id='cf1faa59-1b63-4448-bf04-13d981a46f5d', - version='4.1-preview.1', + version='4.1', content=content) return self._deserialize('PermissionEvaluationBatch', response) def has_permissions(self, security_namespace_id, permissions=None, tokens=None, always_allow_administrators=None, delimiter=None): """HasPermissions. - [Preview API] Evaluates whether the caller has the specified permissions on the specified set of security tokens. + Evaluates whether the caller has the specified permissions on the specified set of security tokens. :param str security_namespace_id: Security namespace identifier. :param int permissions: Permissions to evaluate. :param str tokens: One or more security tokens to evaluate. @@ -173,7 +173,7 @@ def has_permissions(self, security_namespace_id, permissions=None, tokens=None, query_parameters['delimiter'] = self._serialize.query('delimiter', delimiter, 'str') response = self._send(http_method='GET', location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) @@ -181,7 +181,7 @@ def has_permissions(self, security_namespace_id, permissions=None, tokens=None, def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None): """RemovePermission. - [Preview API] Removes the specified permissions from the caller or specified user or group. + Removes the specified permissions from the caller or specified user or group. :param str security_namespace_id: Security namespace identifier. :param int permissions: Permissions to remove. :param str token: Security token to remove permissions for. @@ -200,14 +200,13 @@ def remove_permission(self, security_namespace_id, permissions=None, token=None, query_parameters['descriptor'] = self._serialize.query('descriptor', descriptor, 'str') response = self._send(http_method='DELETE', location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', - version='4.1-preview.2', + version='4.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AccessControlEntry', response) def query_security_namespaces(self, security_namespace_id, local_only=None): """QuerySecurityNamespaces. - [Preview API] :param str security_namespace_id: :param bool local_only: :rtype: [SecurityNamespaceDescription] @@ -220,7 +219,7 @@ def query_security_namespaces(self, security_namespace_id, local_only=None): query_parameters['localOnly'] = self._serialize.query('local_only', local_only, 'bool') response = self._send(http_method='GET', location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', - version='4.1-preview.1', + version='4.1', route_values=route_values, query_parameters=query_parameters, returns_collection=True) From bb6e4c07d900a80f37e29bae7448f16a8c5ef14e Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 30 Nov 2018 23:35:26 -0500 Subject: [PATCH 085/191] regen --- vsts/vsts/git/v4_1/models/git_query_commits_criteria.py | 4 ++-- vsts/vsts/graph/v4_1/models/graph_membership_state.py | 4 ++-- .../v4_1/work_item_tracking_process_definitions_client.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vsts/vsts/git/v4_1/models/git_query_commits_criteria.py b/vsts/vsts/git/v4_1/models/git_query_commits_criteria.py index be8dc823..4309866d 100644 --- a/vsts/vsts/git/v4_1/models/git_query_commits_criteria.py +++ b/vsts/vsts/git/v4_1/models/git_query_commits_criteria.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ class GitQueryCommitsCriteria(Model): :type top: int :param author: Alias or display name of the author :type author: str - :param compare_version: If provided, the earliest commit in the graph to search + :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. :type compare_version: :class:`GitVersionDescriptor ` :param exclude_deletes: If true, don't include delete history entries :type exclude_deletes: bool diff --git a/vsts/vsts/graph/v4_1/models/graph_membership_state.py b/vsts/vsts/graph/v4_1/models/graph_membership_state.py index 8f90aaf0..678d57ae 100644 --- a/vsts/vsts/graph/v4_1/models/graph_membership_state.py +++ b/vsts/vsts/graph/v4_1/models/graph_membership_state.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -14,7 +14,7 @@ class GraphMembershipState(Model): :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. :type _links: :class:`ReferenceLinks ` - :param active: + :param active: When true, the membership is active :type active: bool """ diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py index f28126c2..75abede1 100644 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -910,7 +910,7 @@ def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): """GetWorkItemTypeField. - [Preview API] Retuens a single field in the work item type of the process. + [Preview API] Returns a single field in the work item type of the process. :param str process_id: The ID of the process :param str wit_ref_name_for_fields: Work item type reference name for fields :param str field_ref_name: The reference name of the field From 845c40a55ead585c50b6f652bfbaceb9ceee45a2 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sat, 1 Dec 2018 18:07:12 -0500 Subject: [PATCH 086/191] regen after adding support for methods that return header values as part of the payload. --- vsts/vsts/accounts/v4_0/accounts_client.py | 10 +- vsts/vsts/accounts/v4_1/accounts_client.py | 7 +- vsts/vsts/build/v4_0/build_client.py | 135 +++++-------- vsts/vsts/build/v4_1/build_client.py | 162 ++++++--------- .../v4_1/cloud_load_test_client.py | 32 ++- .../v4_0/contributions_client.py | 5 +- .../v4_1/contributions_client.py | 7 +- vsts/vsts/core/v4_0/core_client.py | 50 ++--- vsts/vsts/core/v4_1/core_client.py | 50 ++--- vsts/vsts/dashboard/v4_1/dashboard_client.py | 114 +++++++++++ .../v4_0/extension_management_client.py | 30 ++- .../v4_1/extension_management_client.py | 7 +- .../v4_0/feature_availability_client.py | 5 +- .../v4_1/feature_availability_client.py | 7 +- .../v4_0/feature_management_client.py | 5 +- .../v4_1/feature_management_client.py | 7 +- vsts/vsts/feed/v4_1/feed_client.py | 52 ++--- .../v4_0/file_container_client.py | 15 +- .../v4_1/file_container_client.py | 17 +- vsts/vsts/gallery/v4_0/gallery_client.py | 10 +- vsts/vsts/gallery/v4_1/gallery_client.py | 17 +- vsts/vsts/git/v4_0/git_client_base.py | 165 ++++++--------- vsts/vsts/git/v4_1/git_client_base.py | 170 +++++++--------- vsts/vsts/graph/v4_1/graph_client.py | 57 +++++- vsts/vsts/identity/v4_0/identity_client.py | 45 ++--- vsts/vsts/identity/v4_1/identity_client.py | 47 ++--- vsts/vsts/licensing/v4_0/licensing_client.py | 60 +++--- vsts/vsts/licensing/v4_1/licensing_client.py | 67 +++--- vsts/vsts/location/v4_0/location_client.py | 10 +- vsts/vsts/location/v4_1/location_client.py | 17 +- .../member_entitlement_management_client.py | 10 +- .../member_entitlement_management_client.py | 12 +- .../notification/v4_0/notification_client.py | 20 +- .../notification/v4_1/notification_client.py | 27 +-- vsts/vsts/policy/v4_0/policy_client.py | 20 +- vsts/vsts/policy/v4_1/policy_client.py | 22 +- .../v4_1/project_analysis_client.py | 7 +- vsts/vsts/release/v4_0/release_client.py | 175 +++++++--------- vsts/vsts/release/v4_1/release_client.py | 37 ++-- vsts/vsts/security/v4_0/security_client.py | 20 +- vsts/vsts/security/v4_1/security_client.py | 20 +- .../v4_1/service_endpoint_client.py | 27 +-- .../v4_0/service_hooks_client.py | 35 ++-- .../v4_1/service_hooks_client.py | 32 ++- vsts/vsts/settings/v4_0/settings_client.py | 10 +- vsts/vsts/settings/v4_1/settings_client.py | 12 +- vsts/vsts/symbol/v4_1/symbol_client.py | 12 +- vsts/vsts/task/v4_0/task_client.py | 45 ++--- vsts/vsts/task/v4_1/task_client.py | 37 ++-- .../vsts/task_agent/v4_0/task_agent_client.py | 190 +++++++----------- .../vsts/task_agent/v4_1/task_agent_client.py | 32 ++- vsts/vsts/test/v4_0/test_client.py | 175 +++++++--------- vsts/vsts/test/v4_1/test_client.py | 175 +++++++--------- vsts/vsts/tfvc/v4_0/tfvc_client.py | 65 +++--- vsts/vsts/tfvc/v4_1/tfvc_client.py | 65 +++--- vsts/vsts/vss_client.py | 20 +- vsts/vsts/wiki/v4_0/wiki_client.py | 10 +- vsts/vsts/wiki/v4_1/wiki_client.py | 164 ++++++++++++++- vsts/vsts/work/v4_0/work_client.py | 70 +++---- vsts/vsts/work/v4_1/work_client.py | 75 +++---- .../v4_0/work_item_tracking_client.py | 75 +++---- .../v4_1/work_item_tracking_client.py | 90 ++++----- .../v4_0/work_item_tracking_process_client.py | 35 ++-- .../v4_1/work_item_tracking_process_client.py | 37 ++-- ...tem_tracking_process_definitions_client.py | 30 ++- ...tem_tracking_process_definitions_client.py | 30 ++- ...k_item_tracking_process_template_client.py | 5 +- ...k_item_tracking_process_template_client.py | 7 +- 68 files changed, 1524 insertions(+), 1788 deletions(-) diff --git a/vsts/vsts/accounts/v4_0/accounts_client.py b/vsts/vsts/accounts/v4_0/accounts_client.py index 861e2660..8a07ab32 100644 --- a/vsts/vsts/accounts/v4_0/accounts_client.py +++ b/vsts/vsts/accounts/v4_0/accounts_client.py @@ -74,9 +74,8 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None): response = self._send(http_method='GET', location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Account]', response) + query_parameters=query_parameters) + return self._deserialize('[Account]', self._unwrap_collection(response)) def get_account_settings(self): """GetAccountSettings. @@ -85,7 +84,6 @@ def get_account_settings(self): """ response = self._send(http_method='GET', location_id='4e012dd4-f8e1-485d-9bb3-c50d83c5b71b', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('{str}', response) + version='4.0-preview.1') + return self._deserialize('{str}', self._unwrap_collection(response)) diff --git a/vsts/vsts/accounts/v4_1/accounts_client.py b/vsts/vsts/accounts/v4_1/accounts_client.py index 68fb7829..0f4c8c3b 100644 --- a/vsts/vsts/accounts/v4_1/accounts_client.py +++ b/vsts/vsts/accounts/v4_1/accounts_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -43,7 +43,6 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None): response = self._send(http_method='GET', location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Account]', response) + query_parameters=query_parameters) + return self._deserialize('[Account]', self._unwrap_collection(response)) diff --git a/vsts/vsts/build/v4_0/build_client.py b/vsts/vsts/build/v4_0/build_client.py index 01d6abdb..2d711f5e 100644 --- a/vsts/vsts/build/v4_0/build_client.py +++ b/vsts/vsts/build/v4_0/build_client.py @@ -107,9 +107,8 @@ def get_artifacts(self, build_id, project=None): response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildArtifact]', response) + route_values=route_values) + return self._deserialize('[BuildArtifact]', self._unwrap_collection(response)) def get_badge(self, project, definition_id, branch_name=None): """GetBadge. @@ -303,9 +302,8 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Build]', response) + query_parameters=query_parameters) + return self._deserialize('[Build]', self._unwrap_collection(response)) def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket=None): """QueueBuild. @@ -369,9 +367,8 @@ def update_builds(self, builds, project=None): location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[Build]', response) + content=content) + return self._deserialize('[Build]', self._unwrap_collection(response)) def get_build_changes(self, project, build_id, continuation_token=None, top=None, include_source_change=None): """GetBuildChanges. @@ -399,9 +396,8 @@ def get_build_changes(self, project, build_id, continuation_token=None, top=None location_id='54572c7b-bbd3-45d4-80dc-28be08941620', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Change]', response) + query_parameters=query_parameters) + return self._deserialize('[Change]', self._unwrap_collection(response)) def get_changes_between_builds(self, project, from_build_id=None, to_build_id=None, top=None): """GetChangesBetweenBuilds. @@ -426,9 +422,8 @@ def get_changes_between_builds(self, project, from_build_id=None, to_build_id=No location_id='f10f0ea5-18a1-43ec-a8fb-2042c7be9b43', version='4.0-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Change]', response) + query_parameters=query_parameters) + return self._deserialize('[Change]', self._unwrap_collection(response)) def get_build_controller(self, controller_id): """GetBuildController. @@ -457,9 +452,8 @@ def get_build_controllers(self, name=None): response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildController]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildController]', self._unwrap_collection(response)) def create_definition(self, definition, project=None, definition_to_clone_id=None, definition_to_clone_revision=None): """CreateDefinition. @@ -593,9 +587,8 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildDefinitionReference]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildDefinitionReference]', self._unwrap_collection(response)) def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. @@ -683,9 +676,8 @@ def get_folders(self, project, path=None, query_order=None): location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Folder]', response) + query_parameters=query_parameters) + return self._deserialize('[Folder]', self._unwrap_collection(response)) def update_folder(self, folder, project, path): """UpdateFolder. @@ -763,9 +755,8 @@ def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_li location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_logs(self, project, build_id): """GetBuildLogs. @@ -782,9 +773,8 @@ def get_build_logs(self, project, build_id): response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildLog]', response) + route_values=route_values) + return self._deserialize('[BuildLog]', self._unwrap_collection(response)) def get_build_logs_zip(self, project, build_id): """GetBuildLogsZip. @@ -824,9 +814,8 @@ def get_project_metrics(self, project, metric_aggregation_type=None, min_metrics location_id='7433fae7-a6bc-41dc-a6e2-eef9005ce41a', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildMetric]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) def get_definition_metrics(self, project, definition_id, min_metrics_time=None): """GetDefinitionMetrics. @@ -848,9 +837,8 @@ def get_definition_metrics(self, project, definition_id, min_metrics_time=None): location_id='d973b939-0ce0-4fec-91d8-da3940fa1827', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildMetric]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) def get_build_option_definitions(self, project=None): """GetBuildOptionDefinitions. @@ -864,9 +852,8 @@ def get_build_option_definitions(self, project=None): response = self._send(http_method='GET', location_id='591cb5a4-2d46-4f3a-a697-5cd42b6bd332', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildOptionDefinition]', response) + route_values=route_values) + return self._deserialize('[BuildOptionDefinition]', self._unwrap_collection(response)) def get_build_properties(self, project, build_id, filter=None): """GetBuildProperties. @@ -1031,9 +1018,8 @@ def get_definition_revisions(self, project, definition_id): response = self._send(http_method='GET', location_id='7c116775-52e5-453e-8c5d-914d9762d8c4', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildDefinitionRevision]', response) + route_values=route_values) + return self._deserialize('[BuildDefinitionRevision]', self._unwrap_collection(response)) def get_build_settings(self): """GetBuildSettings. @@ -1076,9 +1062,8 @@ def add_build_tag(self, project, build_id, tag): response = self._send(http_method='PUT', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_build_tags(self, tags, project, build_id): """AddBuildTags. @@ -1098,9 +1083,8 @@ def add_build_tags(self, tags, project, build_id): location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[str]', response) + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_build_tag(self, project, build_id, tag): """DeleteBuildTag. @@ -1120,9 +1104,8 @@ def delete_build_tag(self, project, build_id, tag): response = self._send(http_method='DELETE', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_tags(self, project, build_id): """GetBuildTags. @@ -1139,9 +1122,8 @@ def get_build_tags(self, project, build_id): response = self._send(http_method='GET', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_tags(self, project): """GetTags. @@ -1155,9 +1137,8 @@ def get_tags(self, project): response = self._send(http_method='GET', location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_definition_tag(self, project, definition_id, tag): """AddDefinitionTag. @@ -1177,9 +1158,8 @@ def add_definition_tag(self, project, definition_id, tag): response = self._send(http_method='PUT', location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.0-preview.2', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_definition_tags(self, tags, project, definition_id): """AddDefinitionTags. @@ -1199,9 +1179,8 @@ def add_definition_tags(self, tags, project, definition_id): location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.0-preview.2', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[str]', response) + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_definition_tag(self, project, definition_id, tag): """DeleteDefinitionTag. @@ -1221,9 +1200,8 @@ def delete_definition_tag(self, project, definition_id, tag): response = self._send(http_method='DELETE', location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.0-preview.2', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_definition_tags(self, project, definition_id, revision=None): """GetDefinitionTags. @@ -1245,9 +1223,8 @@ def get_definition_tags(self, project, definition_id, revision=None): location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.0-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_template(self, project, template_id): """DeleteTemplate. @@ -1295,9 +1272,8 @@ def get_templates(self, project): response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildDefinitionTemplate]', response) + route_values=route_values) + return self._deserialize('[BuildDefinitionTemplate]', self._unwrap_collection(response)) def save_template(self, template, project, template_id): """SaveTemplate. @@ -1369,9 +1345,8 @@ def get_build_work_items_refs(self, project, build_id, top=None): location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ResourceRef]', response) + query_parameters=query_parameters) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, top=None): """GetBuildWorkItemsRefsFromCommits. @@ -1396,9 +1371,8 @@ def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, version='4.0', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[ResourceRef]', response) + content=content) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def get_work_items_between_builds(self, project, from_build_id, to_build_id, top=None): """GetWorkItemsBetweenBuilds. @@ -1423,7 +1397,6 @@ def get_work_items_between_builds(self, project, from_build_id, to_build_id, top location_id='52ba8915-5518-42e3-a4bb-b0182d159e2d', version='4.0-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ResourceRef]', response) + query_parameters=query_parameters) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) diff --git a/vsts/vsts/build/v4_1/build_client.py b/vsts/vsts/build/v4_1/build_client.py index b5cde85d..8c8ba959 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/vsts/vsts/build/v4_1/build_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -107,9 +107,8 @@ def get_artifacts(self, build_id, project=None): response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildArtifact]', response) + route_values=route_values) + return self._deserialize('[BuildArtifact]', self._unwrap_collection(response)) def get_attachments(self, project, build_id, type): """GetAttachments. @@ -129,9 +128,8 @@ def get_attachments(self, project, build_id, type): response = self._send(http_method='GET', location_id='f2192269-89fa-4f94-baf6-8fb128c55159', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Attachment]', response) + route_values=route_values) + return self._deserialize('[Attachment]', self._unwrap_collection(response)) def get_attachment(self, project, build_id, timeline_id, record_id, type, name): """GetAttachment. @@ -209,9 +207,8 @@ def list_branches(self, project, provider_name, service_endpoint_id=None, reposi location_id='e05d4403-9b81-4244-8763-20fde28d1976', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): """GetBuildBadge. @@ -383,9 +380,8 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Build]', response) + query_parameters=query_parameters) + return self._deserialize('[Build]', self._unwrap_collection(response)) def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket=None): """QueueBuild. @@ -449,9 +445,8 @@ def update_builds(self, builds, project=None): location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[Build]', response) + content=content) + return self._deserialize('[Build]', self._unwrap_collection(response)) def get_build_changes(self, project, build_id, continuation_token=None, top=None, include_source_change=None): """GetBuildChanges. @@ -479,9 +474,8 @@ def get_build_changes(self, project, build_id, continuation_token=None, top=None location_id='54572c7b-bbd3-45d4-80dc-28be08941620', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Change]', response) + query_parameters=query_parameters) + return self._deserialize('[Change]', self._unwrap_collection(response)) def get_changes_between_builds(self, project, from_build_id=None, to_build_id=None, top=None): """GetChangesBetweenBuilds. @@ -506,9 +500,8 @@ def get_changes_between_builds(self, project, from_build_id=None, to_build_id=No location_id='f10f0ea5-18a1-43ec-a8fb-2042c7be9b43', version='4.1-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Change]', response) + query_parameters=query_parameters) + return self._deserialize('[Change]', self._unwrap_collection(response)) def get_build_controller(self, controller_id): """GetBuildController. @@ -537,9 +530,8 @@ def get_build_controllers(self, name=None): response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildController]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildController]', self._unwrap_collection(response)) def create_definition(self, definition, project=None, definition_to_clone_id=None, definition_to_clone_revision=None): """CreateDefinition. @@ -673,9 +665,8 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildDefinitionReference]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildDefinitionReference]', self._unwrap_collection(response)) def reset_counter(self, definition_id, counter_id, project=None): """ResetCounter. @@ -843,9 +834,8 @@ def get_folders(self, project, path=None, query_order=None): location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Folder]', response) + query_parameters=query_parameters) + return self._deserialize('[Folder]', self._unwrap_collection(response)) def update_folder(self, folder, project, path): """UpdateFolder. @@ -923,9 +913,8 @@ def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_li location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_logs(self, project, build_id): """GetBuildLogs. @@ -942,9 +931,8 @@ def get_build_logs(self, project, build_id): response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildLog]', response) + route_values=route_values) + return self._deserialize('[BuildLog]', self._unwrap_collection(response)) def get_build_logs_zip(self, project, build_id): """GetBuildLogsZip. @@ -984,9 +972,8 @@ def get_project_metrics(self, project, metric_aggregation_type=None, min_metrics location_id='7433fae7-a6bc-41dc-a6e2-eef9005ce41a', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildMetric]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) def get_definition_metrics(self, project, definition_id, min_metrics_time=None): """GetDefinitionMetrics. @@ -1008,9 +995,8 @@ def get_definition_metrics(self, project, definition_id, min_metrics_time=None): location_id='d973b939-0ce0-4fec-91d8-da3940fa1827', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildMetric]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) def get_build_option_definitions(self, project=None): """GetBuildOptionDefinitions. @@ -1024,9 +1010,8 @@ def get_build_option_definitions(self, project=None): response = self._send(http_method='GET', location_id='591cb5a4-2d46-4f3a-a697-5cd42b6bd332', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildOptionDefinition]', response) + route_values=route_values) + return self._deserialize('[BuildOptionDefinition]', self._unwrap_collection(response)) def get_path_contents(self, project, provider_name, service_endpoint_id=None, repository=None, commit_or_branch=None, path=None): """GetPathContents. @@ -1057,9 +1042,8 @@ def get_path_contents(self, project, provider_name, service_endpoint_id=None, re location_id='7944d6fb-df01-4709-920a-7a189aa34037', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SourceRepositoryItem]', response) + query_parameters=query_parameters) + return self._deserialize('[SourceRepositoryItem]', self._unwrap_collection(response)) def get_build_properties(self, project, build_id, filter=None): """GetBuildProperties. @@ -1259,9 +1243,8 @@ def get_definition_revisions(self, project, definition_id): response = self._send(http_method='GET', location_id='7c116775-52e5-453e-8c5d-914d9762d8c4', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildDefinitionRevision]', response) + route_values=route_values) + return self._deserialize('[BuildDefinitionRevision]', self._unwrap_collection(response)) def get_build_settings(self): """GetBuildSettings. @@ -1298,9 +1281,8 @@ def list_source_providers(self, project): response = self._send(http_method='GET', location_id='3ce81729-954f-423d-a581-9fea01d25186', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SourceProviderAttributes]', response) + route_values=route_values) + return self._deserialize('[SourceProviderAttributes]', self._unwrap_collection(response)) def add_build_tag(self, project, build_id, tag): """AddBuildTag. @@ -1320,9 +1302,8 @@ def add_build_tag(self, project, build_id, tag): response = self._send(http_method='PUT', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_build_tags(self, tags, project, build_id): """AddBuildTags. @@ -1342,9 +1323,8 @@ def add_build_tags(self, tags, project, build_id): location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[str]', response) + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_build_tag(self, project, build_id, tag): """DeleteBuildTag. @@ -1364,9 +1344,8 @@ def delete_build_tag(self, project, build_id, tag): response = self._send(http_method='DELETE', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_tags(self, project, build_id): """GetBuildTags. @@ -1383,9 +1362,8 @@ def get_build_tags(self, project, build_id): response = self._send(http_method='GET', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_tags(self, project): """GetTags. @@ -1399,9 +1377,8 @@ def get_tags(self, project): response = self._send(http_method='GET', location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_definition_tag(self, project, definition_id, tag): """AddDefinitionTag. @@ -1421,9 +1398,8 @@ def add_definition_tag(self, project, definition_id, tag): response = self._send(http_method='PUT', location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.1-preview.2', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_definition_tags(self, tags, project, definition_id): """AddDefinitionTags. @@ -1443,9 +1419,8 @@ def add_definition_tags(self, tags, project, definition_id): location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.1-preview.2', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[str]', response) + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_definition_tag(self, project, definition_id, tag): """DeleteDefinitionTag. @@ -1465,9 +1440,8 @@ def delete_definition_tag(self, project, definition_id, tag): response = self._send(http_method='DELETE', location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.1-preview.2', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_definition_tags(self, project, definition_id, revision=None): """GetDefinitionTags. @@ -1489,9 +1463,8 @@ def get_definition_tags(self, project, definition_id, revision=None): location_id='cb894432-134a-4d31-a839-83beceaace4b', version='4.1-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_template(self, project, template_id): """DeleteTemplate. @@ -1539,9 +1512,8 @@ def get_templates(self, project): response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BuildDefinitionTemplate]', response) + route_values=route_values) + return self._deserialize('[BuildDefinitionTemplate]', self._unwrap_collection(response)) def save_template(self, template, project, template_id): """SaveTemplate. @@ -1688,9 +1660,8 @@ def list_webhooks(self, project, provider_name, service_endpoint_id=None, reposi location_id='8f20ff82-9498-4812-9f6e-9c01bdc50e99', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[RepositoryWebhook]', response) + query_parameters=query_parameters) + return self._deserialize('[RepositoryWebhook]', self._unwrap_collection(response)) def get_build_work_items_refs(self, project, build_id, top=None): """GetBuildWorkItemsRefs. @@ -1712,9 +1683,8 @@ def get_build_work_items_refs(self, project, build_id, top=None): location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ResourceRef]', response) + query_parameters=query_parameters) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, top=None): """GetBuildWorkItemsRefsFromCommits. @@ -1739,9 +1709,8 @@ def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, version='4.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[ResourceRef]', response) + content=content) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def get_work_items_between_builds(self, project, from_build_id, to_build_id, top=None): """GetWorkItemsBetweenBuilds. @@ -1766,7 +1735,6 @@ def get_work_items_between_builds(self, project, from_build_id, to_build_id, top location_id='52ba8915-5518-42e3-a4bb-b0182d159e2d', version='4.1-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ResourceRef]', response) + query_parameters=query_parameters) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) diff --git a/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py b/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py index 57e00ce3..ffce65a7 100644 --- a/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py +++ b/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -128,9 +128,8 @@ def get_applications(self, type=None): response = self._send(http_method='GET', location_id='2c986dce-8e8d-4142-b541-d016d5aff764', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Application]', response) + query_parameters=query_parameters) + return self._deserialize('[Application]', self._unwrap_collection(response)) def get_counters(self, test_run_id, group_names, include_summary=None): """GetCounters. @@ -151,9 +150,8 @@ def get_counters(self, test_run_id, group_names, include_summary=None): location_id='29265ea4-b5a5-4b2e-b054-47f5f6f00183', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestRunCounterInstance]', response) + query_parameters=query_parameters) + return self._deserialize('[TestRunCounterInstance]', self._unwrap_collection(response)) def get_application_counters(self, application_id=None, plugintype=None): """GetApplicationCounters. @@ -169,9 +167,8 @@ def get_application_counters(self, application_id=None, plugintype=None): response = self._send(http_method='GET', location_id='c1275ce9-6d26-4bc6-926b-b846502e812d', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ApplicationCounters]', response) + query_parameters=query_parameters) + return self._deserialize('[ApplicationCounters]', self._unwrap_collection(response)) def get_counter_samples(self, counter_sample_query_details, test_run_id): """GetCounterSamples. @@ -226,9 +223,8 @@ def get_test_run_messages(self, test_run_id): response = self._send(http_method='GET', location_id='2e7ba122-f522-4205-845b-2d270e59850a', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage]', response) + route_values=route_values) + return self._deserialize('[Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage]', self._unwrap_collection(response)) def get_plugin(self, type): """GetPlugin. @@ -250,9 +246,8 @@ def get_plugins(self): """ response = self._send(http_method='GET', location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', - version='4.1', - returns_collection=True) - return self._deserialize('[ApplicationType]', response) + version='4.1') + return self._deserialize('[ApplicationType]', self._unwrap_collection(response)) def get_load_test_result(self, test_run_id): """GetLoadTestResult. @@ -311,9 +306,8 @@ def get_test_definitions(self, from_date=None, to_date=None, top=None): response = self._send(http_method='GET', location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestDefinitionBasic]', response) + query_parameters=query_parameters) + return self._deserialize('[TestDefinitionBasic]', self._unwrap_collection(response)) def update_test_definition(self, test_definition): """UpdateTestDefinition. diff --git a/vsts/vsts/contributions/v4_0/contributions_client.py b/vsts/vsts/contributions/v4_0/contributions_client.py index 417ba8ae..706e937c 100644 --- a/vsts/vsts/contributions/v4_0/contributions_client.py +++ b/vsts/vsts/contributions/v4_0/contributions_client.py @@ -71,9 +71,8 @@ def get_installed_extensions(self, contribution_ids=None, include_disabled_apps= response = self._send(http_method='GET', location_id='2648442b-fd63-4b9a-902f-0c913510f139', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[InstalledExtension]', response) + query_parameters=query_parameters) + return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): """GetInstalledExtensionByName. diff --git a/vsts/vsts/contributions/v4_1/contributions_client.py b/vsts/vsts/contributions/v4_1/contributions_client.py index be4e8395..a046b40b 100644 --- a/vsts/vsts/contributions/v4_1/contributions_client.py +++ b/vsts/vsts/contributions/v4_1/contributions_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -79,9 +79,8 @@ def get_installed_extensions(self, contribution_ids=None, include_disabled_apps= response = self._send(http_method='GET', location_id='2648442b-fd63-4b9a-902f-0c913510f139', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[InstalledExtension]', response) + query_parameters=query_parameters) + return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): """GetInstalledExtensionByName. diff --git a/vsts/vsts/core/v4_0/core_client.py b/vsts/vsts/core/v4_0/core_client.py index 647e683f..d417c58d 100644 --- a/vsts/vsts/core/v4_0/core_client.py +++ b/vsts/vsts/core/v4_0/core_client.py @@ -78,9 +78,8 @@ def get_connected_services(self, project_id, kind=None): location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiConnectedService]', response) + query_parameters=query_parameters) + return self._deserialize('[WebApiConnectedService]', self._unwrap_collection(response)) def create_identity_mru(self, mru_data, mru_name): """CreateIdentityMru. @@ -110,9 +109,8 @@ def get_identity_mru(self, mru_name): response = self._send(http_method='GET', location_id='5ead0b70-2572-4697-97e9-f341069a783a', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRef]', response) + route_values=route_values) + return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) def update_identity_mru(self, mru_data, mru_name): """UpdateIdentityMru. @@ -152,9 +150,8 @@ def get_team_members(self, project_id, team_id, top=None, skip=None): location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[IdentityRef]', response) + query_parameters=query_parameters) + return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) def get_process_by_id(self, process_id): """GetProcessById. @@ -178,9 +175,8 @@ def get_processes(self): """ response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.0', - returns_collection=True) - return self._deserialize('[Process]', response) + version='4.0') + return self._deserialize('[Process]', self._unwrap_collection(response)) def get_project_collection(self, collection_id): """GetProjectCollection. @@ -212,9 +208,8 @@ def get_project_collections(self, top=None, skip=None): response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TeamProjectCollectionReference]', response) + query_parameters=query_parameters) + return self._deserialize('[TeamProjectCollectionReference]', self._unwrap_collection(response)) def get_project_history_entries(self, min_revision=None): """GetProjectHistoryEntries. @@ -228,9 +223,8 @@ def get_project_history_entries(self, min_revision=None): response = self._send(http_method='GET', location_id='6488a877-4749-4954-82ea-7340d36be9f2', version='4.0-preview.2', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ProjectInfo]', response) + query_parameters=query_parameters) + return self._deserialize('[ProjectInfo]', self._unwrap_collection(response)) def get_project(self, project_id, include_capabilities=None, include_history=None): """GetProject. @@ -276,9 +270,8 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TeamProjectReference]', response) + query_parameters=query_parameters) + return self._deserialize('[TeamProjectReference]', self._unwrap_collection(response)) def queue_create_project(self, project_to_create): """QueueCreateProject. @@ -344,9 +337,8 @@ def get_project_properties(self, project_id, keys=None): location_id='4976a71a-4487-49aa-8aab-a1eda469037a', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ProjectProperty]', response) + query_parameters=query_parameters) + return self._deserialize('[ProjectProperty]', self._unwrap_collection(response)) def set_project_properties(self, project_id, patch_document): """SetProjectProperties. @@ -406,9 +398,8 @@ def get_proxies(self, proxy_url=None): response = self._send(http_method='GET', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', version='4.0-preview.2', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Proxy]', response) + query_parameters=query_parameters) + return self._deserialize('[Proxy]', self._unwrap_collection(response)) def create_team(self, team, project_id): """CreateTeam. @@ -481,9 +472,8 @@ def get_teams(self, project_id, top=None, skip=None): location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiTeam]', response) + query_parameters=query_parameters) + return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) def update_team(self, team_data, project_id, team_id): """UpdateTeam. diff --git a/vsts/vsts/core/v4_1/core_client.py b/vsts/vsts/core/v4_1/core_client.py index bb4a1c4e..81dacdf4 100644 --- a/vsts/vsts/core/v4_1/core_client.py +++ b/vsts/vsts/core/v4_1/core_client.py @@ -78,9 +78,8 @@ def get_connected_services(self, project_id, kind=None): location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiConnectedService]', response) + query_parameters=query_parameters) + return self._deserialize('[WebApiConnectedService]', self._unwrap_collection(response)) def get_team_members_with_extended_properties(self, project_id, team_id, top=None, skip=None): """GetTeamMembersWithExtendedProperties. @@ -105,9 +104,8 @@ def get_team_members_with_extended_properties(self, project_id, team_id, top=Non location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TeamMember]', response) + query_parameters=query_parameters) + return self._deserialize('[TeamMember]', self._unwrap_collection(response)) def get_process_by_id(self, process_id): """GetProcessById. @@ -131,9 +129,8 @@ def get_processes(self): """ response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.1', - returns_collection=True) - return self._deserialize('[Process]', response) + version='4.1') + return self._deserialize('[Process]', self._unwrap_collection(response)) def get_project_collection(self, collection_id): """GetProjectCollection. @@ -165,9 +162,8 @@ def get_project_collections(self, top=None, skip=None): response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TeamProjectCollectionReference]', response) + query_parameters=query_parameters) + return self._deserialize('[TeamProjectCollectionReference]', self._unwrap_collection(response)) def get_project_history_entries(self, min_revision=None): """GetProjectHistoryEntries. @@ -181,9 +177,8 @@ def get_project_history_entries(self, min_revision=None): response = self._send(http_method='GET', location_id='6488a877-4749-4954-82ea-7340d36be9f2', version='4.1-preview.2', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ProjectInfo]', response) + query_parameters=query_parameters) + return self._deserialize('[ProjectInfo]', self._unwrap_collection(response)) def get_project(self, project_id, include_capabilities=None, include_history=None): """GetProject. @@ -229,9 +224,8 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TeamProjectReference]', response) + query_parameters=query_parameters) + return self._deserialize('[TeamProjectReference]', self._unwrap_collection(response)) def queue_create_project(self, project_to_create): """QueueCreateProject. @@ -297,9 +291,8 @@ def get_project_properties(self, project_id, keys=None): location_id='4976a71a-4487-49aa-8aab-a1eda469037a', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ProjectProperty]', response) + query_parameters=query_parameters) + return self._deserialize('[ProjectProperty]', self._unwrap_collection(response)) def set_project_properties(self, project_id, patch_document): """SetProjectProperties. @@ -359,9 +352,8 @@ def get_proxies(self, proxy_url=None): response = self._send(http_method='GET', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', version='4.1-preview.2', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Proxy]', response) + query_parameters=query_parameters) + return self._deserialize('[Proxy]', self._unwrap_collection(response)) def create_team(self, team, project_id): """CreateTeam. @@ -438,9 +430,8 @@ def get_teams(self, project_id, mine=None, top=None, skip=None): location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiTeam]', response) + query_parameters=query_parameters) + return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) def update_team(self, team_data, project_id, team_id): """UpdateTeam. @@ -481,7 +472,6 @@ def get_all_teams(self, mine=None, top=None, skip=None): response = self._send(http_method='GET', location_id='7a4d9ee9-3433-4347-b47a-7a80f1cf307e', version='4.1-preview.2', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiTeam]', response) + query_parameters=query_parameters) + return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) diff --git a/vsts/vsts/dashboard/v4_1/dashboard_client.py b/vsts/vsts/dashboard/v4_1/dashboard_client.py index 9d32ffea..c5982bf1 100644 --- a/vsts/vsts/dashboard/v4_1/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_1/dashboard_client.py @@ -320,6 +320,42 @@ def get_widget(self, team_context, dashboard_id, widget_id): route_values=route_values) return self._deserialize('Widget', response) + def get_widgets(self, team_context, dashboard_id, eTag=None): + """GetWidgets. + [Preview API] Get widgets contained on the specified dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard to read. + :param String eTag: Dashboard Widgets Version + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + response = self._send(http_method='GET', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values) + response_object = models.WidgetsVersionedList() + response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) + response_object.eTag = response.headers.get('ETag') + return response_object + def replace_widget(self, widget, team_context, dashboard_id, widget_id): """ReplaceWidget. [Preview API] Override the state of the specified widget. @@ -358,6 +394,45 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): content=content) return self._deserialize('Widget', response) + def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): + """ReplaceWidgets. + [Preview API] Replace the widgets on specified dashboard with the supplied widgets. + :param [Widget] widgets: Revised state of widgets to store for the dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the Dashboard to modify. + :param String eTag: Dashboard Widgets Version + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(widgets, '[Widget]') + response = self._send(http_method='PUT', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values, + content=content) + response_object = models.WidgetsVersionedList() + response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) + response_object.eTag = response.headers.get('ETag') + return response_object + def update_widget(self, widget, team_context, dashboard_id, widget_id): """UpdateWidget. [Preview API] Perform a partial update of the specified widget. @@ -396,6 +471,45 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): content=content) return self._deserialize('Widget', response) + def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): + """UpdateWidgets. + [Preview API] Update the supplied widgets on the dashboard using supplied state. State of existing Widgets not passed in the widget list is preserved. + :param [Widget] widgets: The set of widget states to update on the dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the Dashboard to modify. + :param String eTag: Dashboard Widgets Version + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(widgets, '[Widget]') + response = self._send(http_method='PATCH', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.1-preview.2', + route_values=route_values, + content=content) + response_object = models.WidgetsVersionedList() + response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) + response_object.eTag = response.headers.get('ETag') + return response_object + def get_widget_metadata(self, contribution_id): """GetWidgetMetadata. [Preview API] Get the widget metadata satisfying the specified contribution ID. diff --git a/vsts/vsts/extension_management/v4_0/extension_management_client.py b/vsts/vsts/extension_management/v4_0/extension_management_client.py index f7e75820..84235ae0 100644 --- a/vsts/vsts/extension_management/v4_0/extension_management_client.py +++ b/vsts/vsts/extension_management/v4_0/extension_management_client.py @@ -192,9 +192,8 @@ def get_documents_by_name(self, publisher_name, extension_name, scope_type, scop response = self._send(http_method='GET', location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[object]', response) + route_values=route_values) + return self._deserialize('[object]', self._unwrap_collection(response)) def set_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): """SetDocumentByName. @@ -274,9 +273,8 @@ def query_collections_by_name(self, collection_query, publisher_name, extension_ location_id='56c331f1-ce53-4318-adfd-4db5c52a7a2e', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[ExtensionDataCollection]', response) + content=content) + return self._deserialize('[ExtensionDataCollection]', self._unwrap_collection(response)) def get_states(self, include_disabled=None, include_errors=None, include_installation_issues=None): """GetStates. @@ -296,9 +294,8 @@ def get_states(self, include_disabled=None, include_errors=None, include_install response = self._send(http_method='GET', location_id='92755d3d-9a8a-42b3-8a4d-87359fe5aa93', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ExtensionState]', response) + query_parameters=query_parameters) + return self._deserialize('[ExtensionState]', self._unwrap_collection(response)) def query_extensions(self, query): """QueryExtensions. @@ -310,9 +307,8 @@ def query_extensions(self, query): response = self._send(http_method='POST', location_id='046c980f-1345-4ce2-bf85-b46d10ff4cfd', version='4.0-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[InstalledExtension]', response) + content=content) + return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) def get_installed_extensions(self, include_disabled_extensions=None, include_errors=None, asset_types=None, include_installation_issues=None): """GetInstalledExtensions. @@ -336,9 +332,8 @@ def get_installed_extensions(self, include_disabled_extensions=None, include_err response = self._send(http_method='GET', location_id='275424d0-c844-4fe2-bda6-04933a1357d8', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[InstalledExtension]', response) + query_parameters=query_parameters) + return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) def update_installed_extension(self, extension): """UpdateInstalledExtension. @@ -473,9 +468,8 @@ def get_requests(self): """ response = self._send(http_method='GET', location_id='216b978f-b164-424e-ada2-b77561e842b7', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[RequestedExtension]', response) + version='4.0-preview.1') + return self._deserialize('[RequestedExtension]', self._unwrap_collection(response)) def resolve_all_requests(self, reject_message, publisher_name, extension_name, state): """ResolveAllRequests. diff --git a/vsts/vsts/extension_management/v4_1/extension_management_client.py b/vsts/vsts/extension_management/v4_1/extension_management_client.py index e65c29f5..010abc65 100644 --- a/vsts/vsts/extension_management/v4_1/extension_management_client.py +++ b/vsts/vsts/extension_management/v4_1/extension_management_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -47,9 +47,8 @@ def get_installed_extensions(self, include_disabled_extensions=None, include_err response = self._send(http_method='GET', location_id='275424d0-c844-4fe2-bda6-04933a1357d8', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[InstalledExtension]', response) + query_parameters=query_parameters) + return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) def update_installed_extension(self, extension): """UpdateInstalledExtension. diff --git a/vsts/vsts/feature_availability/v4_0/feature_availability_client.py b/vsts/vsts/feature_availability/v4_0/feature_availability_client.py index 8c8087d6..36c4dc30 100644 --- a/vsts/vsts/feature_availability/v4_0/feature_availability_client.py +++ b/vsts/vsts/feature_availability/v4_0/feature_availability_client.py @@ -37,9 +37,8 @@ def get_all_feature_flags(self, user_email=None): response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FeatureFlag]', response) + query_parameters=query_parameters) + return self._deserialize('[FeatureFlag]', self._unwrap_collection(response)) def get_feature_flag_by_name(self, name): """GetFeatureFlagByName. diff --git a/vsts/vsts/feature_availability/v4_1/feature_availability_client.py b/vsts/vsts/feature_availability/v4_1/feature_availability_client.py index 49298b5f..6104ddb6 100644 --- a/vsts/vsts/feature_availability/v4_1/feature_availability_client.py +++ b/vsts/vsts/feature_availability/v4_1/feature_availability_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -37,9 +37,8 @@ def get_all_feature_flags(self, user_email=None): response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FeatureFlag]', response) + query_parameters=query_parameters) + return self._deserialize('[FeatureFlag]', self._unwrap_collection(response)) def get_feature_flag_by_name(self, name): """GetFeatureFlagByName. diff --git a/vsts/vsts/feature_management/v4_0/feature_management_client.py b/vsts/vsts/feature_management/v4_0/feature_management_client.py index 0cf79e1b..9d2f8862 100644 --- a/vsts/vsts/feature_management/v4_0/feature_management_client.py +++ b/vsts/vsts/feature_management/v4_0/feature_management_client.py @@ -52,9 +52,8 @@ def get_features(self, target_contribution_id=None): response = self._send(http_method='GET', location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ContributedFeature]', response) + query_parameters=query_parameters) + return self._deserialize('[ContributedFeature]', self._unwrap_collection(response)) def get_feature_state(self, feature_id, user_scope): """GetFeatureState. diff --git a/vsts/vsts/feature_management/v4_1/feature_management_client.py b/vsts/vsts/feature_management/v4_1/feature_management_client.py index 8da2eebd..933b5c42 100644 --- a/vsts/vsts/feature_management/v4_1/feature_management_client.py +++ b/vsts/vsts/feature_management/v4_1/feature_management_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -52,9 +52,8 @@ def get_features(self, target_contribution_id=None): response = self._send(http_method='GET', location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ContributedFeature]', response) + query_parameters=query_parameters) + return self._deserialize('[ContributedFeature]', self._unwrap_collection(response)) def get_feature_state(self, feature_id, user_scope): """GetFeatureState. diff --git a/vsts/vsts/feed/v4_1/feed_client.py b/vsts/vsts/feed/v4_1/feed_client.py index 4ed7d654..ef6728a9 100644 --- a/vsts/vsts/feed/v4_1/feed_client.py +++ b/vsts/vsts/feed/v4_1/feed_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -140,9 +140,8 @@ def get_feeds(self, feed_role=None, include_deleted_upstreams=None): response = self._send(http_method='GET', location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Feed]', response) + query_parameters=query_parameters) + return self._deserialize('[Feed]', self._unwrap_collection(response)) def update_feed(self, feed, feed_id): """UpdateFeed. @@ -169,9 +168,8 @@ def get_global_permissions(self): """ response = self._send(http_method='GET', location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[GlobalPermission]', response) + version='4.1-preview.1') + return self._deserialize('[GlobalPermission]', self._unwrap_collection(response)) def set_global_permissions(self, global_permissions): """SetGlobalPermissions. @@ -183,9 +181,8 @@ def set_global_permissions(self, global_permissions): response = self._send(http_method='PATCH', location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', version='4.1-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[GlobalPermission]', response) + content=content) + return self._deserialize('[GlobalPermission]', self._unwrap_collection(response)) def get_package_changes(self, feed_id, continuation_token=None, batch_size=None): """GetPackageChanges. @@ -304,9 +301,8 @@ def get_packages(self, feed_id, protocol_type=None, package_name_query=None, nor location_id='7a20d846-c929-4acc-9ea2-0d5a7df1b197', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Package]', response) + query_parameters=query_parameters) + return self._deserialize('[Package]', self._unwrap_collection(response)) def get_feed_permissions(self, feed_id, include_ids=None, exclude_inherited_permissions=None): """GetFeedPermissions. @@ -328,9 +324,8 @@ def get_feed_permissions(self, feed_id, include_ids=None, exclude_inherited_perm location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FeedPermission]', response) + query_parameters=query_parameters) + return self._deserialize('[FeedPermission]', self._unwrap_collection(response)) def set_feed_permissions(self, feed_permission, feed_id): """SetFeedPermissions. @@ -347,9 +342,8 @@ def set_feed_permissions(self, feed_permission, feed_id): location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[FeedPermission]', response) + content=content) + return self._deserialize('[FeedPermission]', self._unwrap_collection(response)) def get_recycle_bin_package(self, feed_id, package_id, include_urls=None): """GetRecycleBinPackage. @@ -406,9 +400,8 @@ def get_recycle_bin_packages(self, feed_id, protocol_type=None, package_name_que location_id='2704e72c-f541-4141-99be-2004b50b05fa', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Package]', response) + query_parameters=query_parameters) + return self._deserialize('[Package]', self._unwrap_collection(response)) def get_recycle_bin_package_version(self, feed_id, package_id, package_version_id, include_urls=None): """GetRecycleBinPackageVersion. @@ -456,9 +449,8 @@ def get_recycle_bin_package_versions(self, feed_id, package_id, include_urls=Non location_id='aceb4be7-8737-4820-834c-4c549e10fdc7', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[RecycleBinPackageVersion]', response) + query_parameters=query_parameters) + return self._deserialize('[RecycleBinPackageVersion]', self._unwrap_collection(response)) def delete_feed_retention_policies(self, feed_id): """DeleteFeedRetentionPolicies. @@ -564,9 +556,8 @@ def get_package_versions(self, feed_id, package_id, include_urls=None, is_listed location_id='3b331909-6a86-44cc-b9ec-c1834c35498f', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PackageVersion]', response) + query_parameters=query_parameters) + return self._deserialize('[PackageVersion]', self._unwrap_collection(response)) def create_feed_view(self, view, feed_id): """CreateFeedView. @@ -632,9 +623,8 @@ def get_feed_views(self, feed_id): response = self._send(http_method='GET', location_id='42a8502a-6785-41bc-8c16-89477d930877', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[FeedView]', response) + route_values=route_values) + return self._deserialize('[FeedView]', self._unwrap_collection(response)) def update_feed_view(self, view, feed_id, view_id): """UpdateFeedView. diff --git a/vsts/vsts/file_container/v4_0/file_container_client.py b/vsts/vsts/file_container/v4_0/file_container_client.py index 8b98c374..b9b21178 100644 --- a/vsts/vsts/file_container/v4_0/file_container_client.py +++ b/vsts/vsts/file_container/v4_0/file_container_client.py @@ -45,9 +45,8 @@ def create_items(self, items, container_id, scope=None): version='4.0-preview.4', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[FileContainerItem]', response) + content=content) + return self._deserialize('[FileContainerItem]', self._unwrap_collection(response)) def delete_item(self, container_id, item_path, scope=None): """DeleteItem. @@ -85,9 +84,8 @@ def get_containers(self, scope=None, artifact_uris=None): response = self._send(http_method='GET', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', version='4.0-preview.4', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FileContainer]', response) + query_parameters=query_parameters) + return self._deserialize('[FileContainer]', self._unwrap_collection(response)) def get_items(self, container_id, scope=None, item_path=None, metadata=None, format=None, download_file_name=None, include_download_tickets=None, is_shallow=None): """GetItems. @@ -124,7 +122,6 @@ def get_items(self, container_id, scope=None, item_path=None, metadata=None, for location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', version='4.0-preview.4', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FileContainerItem]', response) + query_parameters=query_parameters) + return self._deserialize('[FileContainerItem]', self._unwrap_collection(response)) diff --git a/vsts/vsts/file_container/v4_1/file_container_client.py b/vsts/vsts/file_container/v4_1/file_container_client.py index e145b81b..e79792d9 100644 --- a/vsts/vsts/file_container/v4_1/file_container_client.py +++ b/vsts/vsts/file_container/v4_1/file_container_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -45,9 +45,8 @@ def create_items(self, items, container_id, scope=None): version='4.1-preview.4', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[FileContainerItem]', response) + content=content) + return self._deserialize('[FileContainerItem]', self._unwrap_collection(response)) def delete_item(self, container_id, item_path, scope=None): """DeleteItem. @@ -85,9 +84,8 @@ def get_containers(self, scope=None, artifact_uris=None): response = self._send(http_method='GET', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', version='4.1-preview.4', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FileContainer]', response) + query_parameters=query_parameters) + return self._deserialize('[FileContainer]', self._unwrap_collection(response)) def get_items(self, container_id, scope=None, item_path=None, metadata=None, format=None, download_file_name=None, include_download_tickets=None, is_shallow=None): """GetItems. @@ -124,7 +122,6 @@ def get_items(self, container_id, scope=None, item_path=None, metadata=None, for location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', version='4.1-preview.4', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FileContainerItem]', response) + query_parameters=query_parameters) + return self._deserialize('[FileContainerItem]', self._unwrap_collection(response)) diff --git a/vsts/vsts/gallery/v4_0/gallery_client.py b/vsts/vsts/gallery/v4_0/gallery_client.py index 3b63fa6e..0e6c027e 100644 --- a/vsts/vsts/gallery/v4_0/gallery_client.py +++ b/vsts/vsts/gallery/v4_0/gallery_client.py @@ -271,9 +271,8 @@ def get_categories(self, languages=None): response = self._send(http_method='GET', location_id='e0a5a71e-3ac3-43a0-ae7d-0bb5c3046a2a', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_category_details(self, category_name, languages=None, product=None): """GetCategoryDetails. @@ -1163,9 +1162,8 @@ def get_gallery_user_settings(self, user_scope, key=None): response = self._send(http_method='GET', location_id='9b75ece3-7960-401c-848b-148ac01ca350', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{object}', response) + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) def set_gallery_user_settings(self, entries, user_scope): """SetGalleryUserSettings. diff --git a/vsts/vsts/gallery/v4_1/gallery_client.py b/vsts/vsts/gallery/v4_1/gallery_client.py index 42e3abb9..433aae3f 100644 --- a/vsts/vsts/gallery/v4_1/gallery_client.py +++ b/vsts/vsts/gallery/v4_1/gallery_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -271,9 +271,8 @@ def get_categories(self, languages=None): response = self._send(http_method='GET', location_id='e0a5a71e-3ac3-43a0-ae7d-0bb5c3046a2a', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_category_details(self, category_name, languages=None, product=None): """GetCategoryDetails. @@ -1010,9 +1009,8 @@ def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, route_values=route_values, query_parameters=query_parameters, content=content, - media_type='application/octet-stream', - returns_collection=True) - return self._deserialize('{str}', response) + media_type='application/octet-stream') + return self._deserialize('{str}', self._unwrap_collection(response)) def query_publishers(self, publisher_query): """QueryPublishers. @@ -1460,9 +1458,8 @@ def get_gallery_user_settings(self, user_scope, key=None): response = self._send(http_method='GET', location_id='9b75ece3-7960-401c-848b-148ac01ca350', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{object}', response) + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) def set_gallery_user_settings(self, entries, user_scope): """SetGalleryUserSettings. diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/vsts/vsts/git/v4_0/git_client_base.py index aad1ed70..1c714b6b 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/vsts/vsts/git/v4_0/git_client_base.py @@ -236,9 +236,8 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitBranchStats]', response) + query_parameters=query_parameters) + return self._deserialize('[GitBranchStats]', self._unwrap_collection(response)) def get_branch_stats_batch(self, search_criteria, repository_id, project=None): """GetBranchStatsBatch. @@ -258,9 +257,8 @@ def get_branch_stats_batch(self, search_criteria, repository_id, project=None): location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[GitBranchStats]', response) + content=content) + return self._deserialize('[GitBranchStats]', self._unwrap_collection(response)) def get_changes(self, commit_id, repository_id, project=None, top=None, skip=None): """GetChanges. @@ -494,9 +492,8 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_push_commits(self, repository_id, push_id, project=None, top=None, skip=None, include_links=None): """GetPushCommits. @@ -527,9 +524,8 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): """GetCommitsBatch. @@ -560,9 +556,8 @@ def get_commits_batch(self, search_criteria, repository_id, project=None, skip=N version='4.0', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + content=content) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_deleted_repositories(self, project): """GetDeletedRepositories. @@ -576,9 +571,8 @@ def get_deleted_repositories(self, project): response = self._send(http_method='GET', location_id='2b6869c4-cb25-42b5-b7a3-0d3e6be0a11a', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitDeletedRepository]', response) + route_values=route_values) + return self._deserialize('[GitDeletedRepository]', self._unwrap_collection(response)) def get_forks(self, repository_name_or_id, collection_id, project=None, include_links=None): """GetForks. @@ -603,9 +597,8 @@ def get_forks(self, repository_name_or_id, collection_id, project=None, include_ location_id='158c0340-bf6f-489c-9625-d572a1480d57', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRepositoryRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRepositoryRef]', self._unwrap_collection(response)) def create_fork_sync_request(self, sync_params, repository_name_or_id, project=None, include_links=None): """CreateForkSyncRequest. @@ -682,9 +675,8 @@ def get_fork_sync_requests(self, repository_name_or_id, project=None, include_ab location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitForkSyncRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitForkSyncRequest]', self._unwrap_collection(response)) def create_import_request(self, import_request, project, repository_id): """CreateImportRequest. @@ -748,9 +740,8 @@ def query_import_requests(self, project, repository_id, include_abandoned=None): location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitImportRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitImportRequest]', self._unwrap_collection(response)) def update_import_request(self, import_request_to_update, project, repository_id, import_request_id): """UpdateImportRequest. @@ -911,9 +902,8 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitItem]', response) + query_parameters=query_parameters) + return self._deserialize('[GitItem]', self._unwrap_collection(response)) def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): """GetItemText. @@ -1025,9 +1015,8 @@ def get_items_batch(self, request_data, repository_id, project=None): location_id='630fd2e4-fb88-4f85-ad21-13f3fd1fbca9', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[[GitItem]]', response) + content=content) + return self._deserialize('[[GitItem]]', self._unwrap_collection(response)) def create_attachment(self, upload_stream, file_name, repository_id, pull_request_id, project=None): """CreateAttachment. @@ -1121,9 +1110,8 @@ def get_attachments(self, repository_id, pull_request_id, project=None): response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Attachment]', response) + route_values=route_values) + return self._deserialize('[Attachment]', self._unwrap_collection(response)) def get_attachment_zip(self, file_name, repository_id, pull_request_id, project=None): """GetAttachmentZip. @@ -1223,9 +1211,8 @@ def get_likes(self, repository_id, pull_request_id, thread_id, comment_id, proje response = self._send(http_method='GET', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRef]', response) + route_values=route_values) + return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) def get_pull_request_iteration_commits(self, repository_id, pull_request_id, iteration_id, project=None): """GetPullRequestIterationCommits. @@ -1248,9 +1235,8 @@ def get_pull_request_iteration_commits(self, repository_id, pull_request_id, ite response = self._send(http_method='GET', location_id='e7ea0883-095f-4926-b5fb-f24691c26fb9', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + route_values=route_values) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_pull_request_commits(self, repository_id, pull_request_id, project=None): """GetPullRequestCommits. @@ -1270,9 +1256,8 @@ def get_pull_request_commits(self, repository_id, pull_request_id, project=None) response = self._send(http_method='GET', location_id='52823034-34a8-4576-922c-8d8b77e9e4c4', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + route_values=route_values) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_pull_request_iteration_changes(self, repository_id, pull_request_id, iteration_id, project=None, top=None, skip=None, compare_to=None): """GetPullRequestIterationChanges. @@ -1353,9 +1338,8 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequestIteration]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequestIteration]', self._unwrap_collection(response)) def create_pull_request_iteration_status(self, status, repository_id, pull_request_id, iteration_id, project=None): """CreatePullRequestIterationStatus. @@ -1432,9 +1416,8 @@ def get_pull_request_iteration_statuses(self, repository_id, pull_request_id, it response = self._send(http_method='GET', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitPullRequestStatus]', response) + route_values=route_values) + return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) def create_pull_request_label(self, label, repository_id, pull_request_id, project=None, project_id=None): """CreatePullRequestLabel. @@ -1544,9 +1527,8 @@ def get_pull_request_labels(self, repository_id, pull_request_id, project=None, location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiTagDefinition]', response) + query_parameters=query_parameters) + return self._deserialize('[WebApiTagDefinition]', self._unwrap_collection(response)) def get_pull_request_query(self, queries, repository_id, project=None): """GetPullRequestQuery. @@ -1617,9 +1599,8 @@ def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_i location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[IdentityRefWithVote]', response) + content=content) + return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): """DeletePullRequestReviewer. @@ -1685,9 +1666,8 @@ def get_pull_request_reviewers(self, repository_id, pull_request_id, project=Non response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRefWithVote]', response) + route_values=route_values) + return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request_id, project=None): """UpdatePullRequestReviewers. @@ -1767,9 +1747,8 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len location_id='a5d28130-9cd2-40fa-9f08-902e7daa9efb', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): """CreatePullRequest. @@ -1879,9 +1858,8 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): """UpdatePullRequest. @@ -1995,9 +1973,8 @@ def get_pull_request_statuses(self, repository_id, pull_request_id, project=None response = self._send(http_method='GET', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitPullRequestStatus]', response) + route_values=route_values) + return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) def create_comment(self, comment, repository_id, pull_request_id, thread_id, project=None): """CreateComment. @@ -2099,9 +2076,8 @@ def get_comments(self, repository_id, pull_request_id, thread_id, project=None): response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Comment]', response) + route_values=route_values) + return self._deserialize('[Comment]', self._unwrap_collection(response)) def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): """UpdateComment. @@ -2215,9 +2191,8 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequestCommentThread]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequestCommentThread]', self._unwrap_collection(response)) def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): """UpdateThread. @@ -2264,9 +2239,8 @@ def get_pull_request_work_items(self, repository_id, pull_request_id, project=No response = self._send(http_method='GET', location_id='0a637fcc-5370-4ce8-b0e8-98091f5f9482', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[AssociatedWorkItem]', response) + route_values=route_values) + return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) def create_push(self, push, repository_id, project=None): """CreatePush. @@ -2355,9 +2329,8 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPush]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPush]', self._unwrap_collection(response)) def get_refs(self, repository_id, project=None, filter=None, include_links=None, latest_statuses_only=None): """GetRefs. @@ -2385,9 +2358,8 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRef]', self._unwrap_collection(response)) def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): """UpdateRef. @@ -2440,9 +2412,8 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) version='4.0', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[GitRefUpdateResult]', response) + content=content) + return self._deserialize('[GitRefUpdateResult]', self._unwrap_collection(response)) def create_favorite(self, favorite, project): """CreateFavorite. @@ -2516,9 +2487,8 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRefFavorite]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRefFavorite]', self._unwrap_collection(response)) def create_repository(self, git_repository_to_create, project=None, source_ref=None): """CreateRepository. @@ -2579,9 +2549,8 @@ def get_repositories(self, project=None, include_links=None, include_all_urls=No location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRepository]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRepository]', self._unwrap_collection(response)) def get_repository(self, repository_id, project=None, include_parent=None): """GetRepository. @@ -2742,9 +2711,8 @@ def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=No location_id='428dd4fb-fda5-4722-af02-9313b80305da', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitStatus]', response) + query_parameters=query_parameters) + return self._deserialize('[GitStatus]', self._unwrap_collection(response)) def get_suggestions(self, repository_id, project=None): """GetSuggestions. @@ -2761,9 +2729,8 @@ def get_suggestions(self, repository_id, project=None): response = self._send(http_method='GET', location_id='9393b4fb-4445-4919-972b-9ad16f442d83', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitSuggestion]', response) + route_values=route_values) + return self._deserialize('[GitSuggestion]', self._unwrap_collection(response)) def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): """GetTree. diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index 7fb77479..37802cf2 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -236,9 +236,8 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitBranchStats]', response) + query_parameters=query_parameters) + return self._deserialize('[GitBranchStats]', self._unwrap_collection(response)) def get_changes(self, commit_id, repository_id, project=None, top=None, skip=None): """GetChanges. @@ -472,9 +471,8 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_push_commits(self, repository_id, push_id, project=None, top=None, skip=None, include_links=None): """GetPushCommits. @@ -505,9 +503,8 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): """GetCommitsBatch. @@ -538,9 +535,8 @@ def get_commits_batch(self, search_criteria, repository_id, project=None, skip=N version='4.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + content=content) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_deleted_repositories(self, project): """GetDeletedRepositories. @@ -554,9 +550,8 @@ def get_deleted_repositories(self, project): response = self._send(http_method='GET', location_id='2b6869c4-cb25-42b5-b7a3-0d3e6be0a11a', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitDeletedRepository]', response) + route_values=route_values) + return self._deserialize('[GitDeletedRepository]', self._unwrap_collection(response)) def get_forks(self, repository_name_or_id, collection_id, project=None, include_links=None): """GetForks. @@ -581,9 +576,8 @@ def get_forks(self, repository_name_or_id, collection_id, project=None, include_ location_id='158c0340-bf6f-489c-9625-d572a1480d57', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRepositoryRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRepositoryRef]', self._unwrap_collection(response)) def create_fork_sync_request(self, sync_params, repository_name_or_id, project=None, include_links=None): """CreateForkSyncRequest. @@ -660,9 +654,8 @@ def get_fork_sync_requests(self, repository_name_or_id, project=None, include_ab location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitForkSyncRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitForkSyncRequest]', self._unwrap_collection(response)) def create_import_request(self, import_request, project, repository_id): """CreateImportRequest. @@ -726,9 +719,8 @@ def query_import_requests(self, project, repository_id, include_abandoned=None): location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitImportRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitImportRequest]', self._unwrap_collection(response)) def update_import_request(self, import_request_to_update, project, repository_id, import_request_id): """UpdateImportRequest. @@ -895,9 +887,8 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitItem]', response) + query_parameters=query_parameters) + return self._deserialize('[GitItem]', self._unwrap_collection(response)) def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): """GetItemText. @@ -1015,9 +1006,8 @@ def get_items_batch(self, request_data, repository_id, project=None): location_id='630fd2e4-fb88-4f85-ad21-13f3fd1fbca9', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[[GitItem]]', response) + content=content) + return self._deserialize('[[GitItem]]', self._unwrap_collection(response)) def get_merge_bases(self, repository_name_or_id, commit_id, other_commit_id, project=None, other_collection_id=None, other_repository_id=None): """GetMergeBases. @@ -1048,9 +1038,8 @@ def get_merge_bases(self, repository_name_or_id, commit_id, other_commit_id, pro location_id='7cf2abb6-c964-4f7e-9872-f78c66e72e9c', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def create_attachment(self, upload_stream, file_name, repository_id, pull_request_id, project=None): """CreateAttachment. @@ -1144,9 +1133,8 @@ def get_attachments(self, repository_id, pull_request_id, project=None): response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Attachment]', response) + route_values=route_values) + return self._deserialize('[Attachment]', self._unwrap_collection(response)) def get_attachment_zip(self, file_name, repository_id, pull_request_id, project=None): """GetAttachmentZip. @@ -1246,9 +1234,8 @@ def get_likes(self, repository_id, pull_request_id, thread_id, comment_id, proje response = self._send(http_method='GET', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRef]', response) + route_values=route_values) + return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) def get_pull_request_iteration_commits(self, repository_id, pull_request_id, iteration_id, project=None): """GetPullRequestIterationCommits. @@ -1271,9 +1258,8 @@ def get_pull_request_iteration_commits(self, repository_id, pull_request_id, ite response = self._send(http_method='GET', location_id='e7ea0883-095f-4926-b5fb-f24691c26fb9', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + route_values=route_values) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_pull_request_commits(self, repository_id, pull_request_id, project=None): """GetPullRequestCommits. @@ -1293,9 +1279,8 @@ def get_pull_request_commits(self, repository_id, pull_request_id, project=None) response = self._send(http_method='GET', location_id='52823034-34a8-4576-922c-8d8b77e9e4c4', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitCommitRef]', response) + route_values=route_values) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_pull_request_iteration_changes(self, repository_id, pull_request_id, iteration_id, project=None, top=None, skip=None, compare_to=None): """GetPullRequestIterationChanges. @@ -1379,9 +1364,8 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequestIteration]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequestIteration]', self._unwrap_collection(response)) def create_pull_request_iteration_status(self, status, repository_id, pull_request_id, iteration_id, project=None): """CreatePullRequestIterationStatus. @@ -1483,9 +1467,8 @@ def get_pull_request_iteration_statuses(self, repository_id, pull_request_id, it response = self._send(http_method='GET', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitPullRequestStatus]', response) + route_values=route_values) + return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) def update_pull_request_iteration_statuses(self, patch_document, repository_id, pull_request_id, iteration_id, project=None): """UpdatePullRequestIterationStatuses. @@ -1621,9 +1604,8 @@ def get_pull_request_labels(self, repository_id, pull_request_id, project=None, location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WebApiTagDefinition]', response) + query_parameters=query_parameters) + return self._deserialize('[WebApiTagDefinition]', self._unwrap_collection(response)) def get_pull_request_properties(self, repository_id, pull_request_id, project=None): """GetPullRequestProperties. @@ -1740,9 +1722,8 @@ def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_i location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[IdentityRefWithVote]', response) + content=content) + return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): """DeletePullRequestReviewer. @@ -1808,9 +1789,8 @@ def get_pull_request_reviewers(self, repository_id, pull_request_id, project=Non response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRefWithVote]', response) + route_values=route_values) + return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request_id, project=None): """UpdatePullRequestReviewers. @@ -1890,9 +1870,8 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len location_id='a5d28130-9cd2-40fa-9f08-902e7daa9efb', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): """CreatePullRequest. @@ -2002,9 +1981,8 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): """UpdatePullRequest. @@ -2140,9 +2118,8 @@ def get_pull_request_statuses(self, repository_id, pull_request_id, project=None response = self._send(http_method='GET', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitPullRequestStatus]', response) + route_values=route_values) + return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) def update_pull_request_statuses(self, patch_document, repository_id, pull_request_id, project=None): """UpdatePullRequestStatuses. @@ -2267,9 +2244,8 @@ def get_comments(self, repository_id, pull_request_id, thread_id, project=None): response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Comment]', response) + route_values=route_values) + return self._deserialize('[Comment]', self._unwrap_collection(response)) def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): """UpdateComment. @@ -2383,9 +2359,8 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPullRequestCommentThread]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPullRequestCommentThread]', self._unwrap_collection(response)) def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): """UpdateThread. @@ -2432,9 +2407,8 @@ def get_pull_request_work_item_refs(self, repository_id, pull_request_id, projec response = self._send(http_method='GET', location_id='0a637fcc-5370-4ce8-b0e8-98091f5f9482', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ResourceRef]', response) + route_values=route_values) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def create_push(self, push, repository_id, project=None): """CreatePush. @@ -2523,9 +2497,8 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitPush]', response) + query_parameters=query_parameters) + return self._deserialize('[GitPush]', self._unwrap_collection(response)) def delete_repository_from_recycle_bin(self, project, repository_id): """DeleteRepositoryFromRecycleBin. @@ -2555,9 +2528,8 @@ def get_recycle_bin_repositories(self, project): response = self._send(http_method='GET', location_id='a663da97-81db-4eb3-8b83-287670f63073', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitDeletedRepository]', response) + route_values=route_values) + return self._deserialize('[GitDeletedRepository]', self._unwrap_collection(response)) def restore_repository_from_recycle_bin(self, repository_details, project, repository_id): """RestoreRepositoryFromRecycleBin. @@ -2606,9 +2578,8 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRef]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRef]', self._unwrap_collection(response)) def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): """UpdateRef. @@ -2662,9 +2633,8 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) version='4.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[GitRefUpdateResult]', response) + content=content) + return self._deserialize('[GitRefUpdateResult]', self._unwrap_collection(response)) def create_favorite(self, favorite, project): """CreateFavorite. @@ -2738,9 +2708,8 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRefFavorite]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRefFavorite]', self._unwrap_collection(response)) def create_repository(self, git_repository_to_create, project=None, source_ref=None): """CreateRepository. @@ -2804,9 +2773,8 @@ def get_repositories(self, project=None, include_links=None, include_all_urls=No location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitRepository]', response) + query_parameters=query_parameters) + return self._deserialize('[GitRepository]', self._unwrap_collection(response)) def get_repository(self, repository_id, project=None, include_parent=None): """GetRepository. @@ -2970,9 +2938,8 @@ def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=No location_id='428dd4fb-fda5-4722-af02-9313b80305da', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GitStatus]', response) + query_parameters=query_parameters) + return self._deserialize('[GitStatus]', self._unwrap_collection(response)) def get_suggestions(self, repository_id, project=None): """GetSuggestions. @@ -2989,9 +2956,8 @@ def get_suggestions(self, repository_id, project=None): response = self._send(http_method='GET', location_id='9393b4fb-4445-4919-972b-9ad16f442d83', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[GitSuggestion]', response) + route_values=route_values) + return self._deserialize('[GitSuggestion]', self._unwrap_collection(response)) def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): """GetTree. diff --git a/vsts/vsts/graph/v4_1/graph_client.py b/vsts/vsts/graph/v4_1/graph_client.py index bae17124..f06ed4c2 100644 --- a/vsts/vsts/graph/v4_1/graph_client.py +++ b/vsts/vsts/graph/v4_1/graph_client.py @@ -90,6 +90,31 @@ def get_group(self, group_descriptor): route_values=route_values) return self._deserialize('GraphGroup', response) + def list_groups(self, scope_descriptor=None, subject_types=None, continuation_token=None): + """ListGroups. + [Preview API] Gets a list of all groups in the current scope (usually organization or account). + :param str scope_descriptor: Specify a non-default scope (collection, project) to search for groups. + :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. Microsoft.IdentityModel.Claims.ClaimsIdentity + :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. + :rtype: :class:` ` + """ + query_parameters = {} + if scope_descriptor is not None: + query_parameters['scopeDescriptor'] = self._serialize.query('scope_descriptor', scope_descriptor, 'str') + if subject_types is not None: + subject_types = ",".join(subject_types) + query_parameters['subjectTypes'] = self._serialize.query('subject_types', subject_types, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='4.1-preview.1', + query_parameters=query_parameters) + response_object = models.PagedGraphGroups() + response_object.graph_groups = self._deserialize('[GraphGroup]', self._unwrap_collection(response)) + response_object.continuation_token = response.headers.get('X-MS-ContinuationToken') + return response_object + def update_group(self, group_descriptor, patch_document): """UpdateGroup. [Preview API] Update the properties of a VSTS group. @@ -197,9 +222,8 @@ def list_memberships(self, subject_descriptor, direction=None, depth=None): location_id='e34b6394-6b30-4435-94a9-409a5eef3e31', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[GraphMembership]', response) + query_parameters=query_parameters) + return self._deserialize('[GraphMembership]', self._unwrap_collection(response)) def get_membership_state(self, subject_descriptor): """GetMembershipState. @@ -241,9 +265,8 @@ def lookup_subjects(self, subject_lookup): response = self._send(http_method='POST', location_id='4dd4d168-11f2-48c4-83e8-756fa0de027c', version='4.1-preview.1', - content=content, - returns_collection=True) - return self._deserialize('{GraphSubject}', response) + content=content) + return self._deserialize('{GraphSubject}', self._unwrap_collection(response)) def create_user(self, creation_context, group_descriptors=None): """CreateUser. @@ -292,3 +315,25 @@ def get_user(self, user_descriptor): route_values=route_values) return self._deserialize('GraphUser', response) + def list_users(self, subject_types=None, continuation_token=None): + """ListUsers. + [Preview API] Get a list of all users in a given scope. + :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. msa’, ‘aad’, ‘svc’ (service identity), ‘imp’ (imported identity), etc. + :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. + :rtype: :class:` ` + """ + query_parameters = {} + if subject_types is not None: + subject_types = ",".join(subject_types) + query_parameters['subjectTypes'] = self._serialize.query('subject_types', subject_types, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='4.1-preview.1', + query_parameters=query_parameters) + response_object = models.PagedGraphUsers() + response_object.graph_users = self._deserialize('[GraphUser]', self._unwrap_collection(response)) + response_object.continuation_token = response.headers.get('X-MS-ContinuationToken') + return response_object + diff --git a/vsts/vsts/identity/v4_0/identity_client.py b/vsts/vsts/identity/v4_0/identity_client.py index 1a4ff65a..3d7088f4 100644 --- a/vsts/vsts/identity/v4_0/identity_client.py +++ b/vsts/vsts/identity/v4_0/identity_client.py @@ -67,9 +67,8 @@ def create_groups(self, container): response = self._send(http_method='POST', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', version='4.0', - content=content, - returns_collection=True) - return self._deserialize('[Identity]', response) + content=content) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def delete_group(self, group_id): """DeleteGroup. @@ -103,9 +102,8 @@ def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=Non response = self._send(http_method='GET', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Identity]', response) + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id=None): """GetIdentityChanges. @@ -138,9 +136,8 @@ def get_user_identity_ids_by_domain_id(self, domain_id): response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def read_identities(self, descriptors=None, identity_ids=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): """ReadIdentities. @@ -174,9 +171,8 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Identity]', response) + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def read_identities_by_scope(self, scope_id, query_membership=None, properties=None): """ReadIdentitiesByScope. @@ -195,9 +191,8 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Identity]', response) + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def read_identity(self, identity_id, query_membership=None, properties=None): """ReadIdentity. @@ -230,9 +225,8 @@ def update_identities(self, identities): response = self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.0', - content=content, - returns_collection=True) - return self._deserialize('[IdentityUpdateData]', response) + content=content) + return self._deserialize('[IdentityUpdateData]', self._unwrap_collection(response)) def update_identity(self, identity, identity_id): """UpdateIdentity. @@ -271,9 +265,8 @@ def read_identity_batch(self, batch_info): response = self._send(http_method='POST', location_id='299e50df-fe45-4d3a-8b5b-a5836fac74dc', version='4.0-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[Identity]', response) + content=content) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def get_identity_snapshot(self, scope_id): """GetIdentitySnapshot. @@ -368,9 +361,8 @@ def read_members(self, container_id, query_membership=None): location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def remove_member(self, container_id, member_id): """RemoveMember. @@ -430,9 +422,8 @@ def read_members_of(self, member_id, query_membership=None): location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def create_scope(self, info, scope_id): """CreateScope. diff --git a/vsts/vsts/identity/v4_1/identity_client.py b/vsts/vsts/identity/v4_1/identity_client.py index 5b84ba68..af209d8a 100644 --- a/vsts/vsts/identity/v4_1/identity_client.py +++ b/vsts/vsts/identity/v4_1/identity_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -67,9 +67,8 @@ def create_groups(self, container): response = self._send(http_method='POST', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', version='4.1', - content=content, - returns_collection=True) - return self._deserialize('[Identity]', response) + content=content) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def delete_group(self, group_id): """DeleteGroup. @@ -103,9 +102,8 @@ def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=Non response = self._send(http_method='GET', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Identity]', response) + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id=None): """GetIdentityChanges. @@ -138,9 +136,8 @@ def get_user_identity_ids_by_domain_id(self, domain_id): response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def read_identities(self, descriptors=None, identity_ids=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): """ReadIdentities. @@ -174,9 +171,8 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Identity]', response) + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def read_identities_by_scope(self, scope_id, query_membership=None, properties=None): """ReadIdentitiesByScope. @@ -195,9 +191,8 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Identity]', response) + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def read_identity(self, identity_id, query_membership=None, properties=None): """ReadIdentity. @@ -230,9 +225,8 @@ def update_identities(self, identities): response = self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', version='4.1', - content=content, - returns_collection=True) - return self._deserialize('[IdentityUpdateData]', response) + content=content) + return self._deserialize('[IdentityUpdateData]', self._unwrap_collection(response)) def update_identity(self, identity, identity_id): """UpdateIdentity. @@ -271,9 +265,8 @@ def read_identity_batch(self, batch_info): response = self._send(http_method='POST', location_id='299e50df-fe45-4d3a-8b5b-a5836fac74dc', version='4.1-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[Identity]', response) + content=content) + return self._deserialize('[Identity]', self._unwrap_collection(response)) def get_identity_snapshot(self, scope_id): """GetIdentitySnapshot. @@ -368,9 +361,8 @@ def read_members(self, container_id, query_membership=None): location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def remove_member(self, container_id, member_id): """RemoveMember. @@ -430,9 +422,8 @@ def read_members_of(self, member_id, query_membership=None): location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def create_scope(self, info, scope_id): """CreateScope. diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/vsts/vsts/licensing/v4_0/licensing_client.py index 932169b0..efe2b865 100644 --- a/vsts/vsts/licensing/v4_0/licensing_client.py +++ b/vsts/vsts/licensing/v4_0/licensing_client.py @@ -32,9 +32,8 @@ def get_extension_license_usage(self): """ response = self._send(http_method='GET', location_id='01bce8d3-c130-480f-a332-474ae3f6662e', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[AccountLicenseExtensionUsage]', response) + version='4.0-preview.1') + return self._deserialize('[AccountLicenseExtensionUsage]', self._unwrap_collection(response)) def get_certificate(self): """GetCertificate. @@ -170,9 +169,8 @@ def obtain_available_account_entitlements(self, user_ids): location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AccountEntitlement]', response) + content=content) + return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) def assign_extension_to_all_eligible_users(self, extension_id): """AssignExtensionToAllEligibleUsers. @@ -186,9 +184,8 @@ def assign_extension_to_all_eligible_users(self, extension_id): response = self._send(http_method='PUT', location_id='5434f182-7f32-4135-8326-9340d887c08a', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ExtensionOperationResult]', response) + route_values=route_values) + return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) def get_eligible_users_for_extension(self, extension_id, options): """GetEligibleUsersForExtension. @@ -207,9 +204,8 @@ def get_eligible_users_for_extension(self, extension_id, options): location_id='5434f182-7f32-4135-8326-9340d887c08a', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_extension_status_for_users(self, extension_id): """GetExtensionStatusForUsers. @@ -223,9 +219,8 @@ def get_extension_status_for_users(self, extension_id): response = self._send(http_method='GET', location_id='5434f182-7f32-4135-8326-9340d887c08a', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{ExtensionAssignmentDetails}', response) + route_values=route_values) + return self._deserialize('{ExtensionAssignmentDetails}', self._unwrap_collection(response)) def assign_extension_to_users(self, body): """AssignExtensionToUsers. @@ -237,9 +232,8 @@ def assign_extension_to_users(self, body): response = self._send(http_method='PUT', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', version='4.0-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[ExtensionOperationResult]', response) + content=content) + return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) def get_extensions_assigned_to_user(self, user_id): """GetExtensionsAssignedToUser. @@ -253,9 +247,8 @@ def get_extensions_assigned_to_user(self, user_id): response = self._send(http_method='GET', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{LicensingSource}', response) + route_values=route_values) + return self._deserialize('{LicensingSource}', self._unwrap_collection(response)) def bulk_get_extensions_assigned_to_users(self, user_ids): """BulkGetExtensionsAssignedToUsers. @@ -267,9 +260,8 @@ def bulk_get_extensions_assigned_to_users(self, user_ids): response = self._send(http_method='PUT', location_id='1d42ddc2-3e7d-4daa-a0eb-e12c1dbd7c72', version='4.0-preview.2', - content=content, - returns_collection=True) - return self._deserialize('{[ExtensionSource]}', response) + content=content) + return self._deserialize('{[ExtensionSource]}', self._unwrap_collection(response)) def get_extension_license_data(self, extension_id): """GetExtensionLicenseData. @@ -309,9 +301,8 @@ def compute_extension_rights(self, ids): response = self._send(http_method='POST', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', version='4.0-preview.1', - content=content, - returns_collection=True) - return self._deserialize('{bool}', response) + content=content) + return self._deserialize('{bool}', self._unwrap_collection(response)) def get_extension_rights(self): """GetExtensionRights. @@ -338,9 +329,8 @@ def get_entitlements(self): """ response = self._send(http_method='GET', location_id='1cc6137e-12d5-4d44-a4f2-765006c9e85d', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[MsdnEntitlement]', response) + version='4.0-preview.1') + return self._deserialize('[MsdnEntitlement]', self._unwrap_collection(response)) def get_account_licenses_usage(self): """GetAccountLicensesUsage. @@ -349,9 +339,8 @@ def get_account_licenses_usage(self): """ response = self._send(http_method='GET', location_id='d3266b87-d395-4e91-97a5-0215b81a0b7d', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[AccountLicenseUsage]', response) + version='4.0-preview.1') + return self._deserialize('[AccountLicenseUsage]', self._unwrap_collection(response)) def get_usage_rights(self, right_name=None): """GetUsageRights. @@ -365,7 +354,6 @@ def get_usage_rights(self, right_name=None): response = self._send(http_method='GET', location_id='d09ac573-58fe-4948-af97-793db40a7e16', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IUsageRight]', response) + route_values=route_values) + return self._deserialize('[IUsageRight]', self._unwrap_collection(response)) diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py index c94ddceb..b23da943 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -32,9 +32,8 @@ def get_extension_license_usage(self): """ response = self._send(http_method='GET', location_id='01bce8d3-c130-480f-a332-474ae3f6662e', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[AccountLicenseExtensionUsage]', response) + version='4.1-preview.1') + return self._deserialize('[AccountLicenseExtensionUsage]', self._unwrap_collection(response)) def get_certificate(self): """GetCertificate. @@ -127,9 +126,8 @@ def get_account_entitlements(self, top=None, skip=None): response = self._send(http_method='GET', location_id='ea37be6f-8cd7-48dd-983d-2b72d6e3da0f', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[AccountEntitlement]', response) + query_parameters=query_parameters) + return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=None, origin=None): """AssignAccountEntitlementForUser. @@ -203,9 +201,8 @@ def get_account_entitlements_batch(self, user_ids): location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AccountEntitlement]', response) + content=content) + return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) def obtain_available_account_entitlements(self, user_ids): """ObtainAvailableAccountEntitlements. @@ -220,9 +217,8 @@ def obtain_available_account_entitlements(self, user_ids): location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AccountEntitlement]', response) + content=content) + return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) def assign_extension_to_all_eligible_users(self, extension_id): """AssignExtensionToAllEligibleUsers. @@ -236,9 +232,8 @@ def assign_extension_to_all_eligible_users(self, extension_id): response = self._send(http_method='PUT', location_id='5434f182-7f32-4135-8326-9340d887c08a', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ExtensionOperationResult]', response) + route_values=route_values) + return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) def get_eligible_users_for_extension(self, extension_id, options): """GetEligibleUsersForExtension. @@ -257,9 +252,8 @@ def get_eligible_users_for_extension(self, extension_id, options): location_id='5434f182-7f32-4135-8326-9340d887c08a', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_extension_status_for_users(self, extension_id): """GetExtensionStatusForUsers. @@ -273,9 +267,8 @@ def get_extension_status_for_users(self, extension_id): response = self._send(http_method='GET', location_id='5434f182-7f32-4135-8326-9340d887c08a', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{ExtensionAssignmentDetails}', response) + route_values=route_values) + return self._deserialize('{ExtensionAssignmentDetails}', self._unwrap_collection(response)) def assign_extension_to_users(self, body): """AssignExtensionToUsers. @@ -287,9 +280,8 @@ def assign_extension_to_users(self, body): response = self._send(http_method='PUT', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', version='4.1-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[ExtensionOperationResult]', response) + content=content) + return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) def get_extensions_assigned_to_user(self, user_id): """GetExtensionsAssignedToUser. @@ -303,9 +295,8 @@ def get_extensions_assigned_to_user(self, user_id): response = self._send(http_method='GET', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{LicensingSource}', response) + route_values=route_values) + return self._deserialize('{LicensingSource}', self._unwrap_collection(response)) def bulk_get_extensions_assigned_to_users(self, user_ids): """BulkGetExtensionsAssignedToUsers. @@ -317,9 +308,8 @@ def bulk_get_extensions_assigned_to_users(self, user_ids): response = self._send(http_method='PUT', location_id='1d42ddc2-3e7d-4daa-a0eb-e12c1dbd7c72', version='4.1-preview.2', - content=content, - returns_collection=True) - return self._deserialize('{[ExtensionSource]}', response) + content=content) + return self._deserialize('{[ExtensionSource]}', self._unwrap_collection(response)) def get_extension_license_data(self, extension_id): """GetExtensionLicenseData. @@ -359,9 +349,8 @@ def compute_extension_rights(self, ids): response = self._send(http_method='POST', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', version='4.1-preview.1', - content=content, - returns_collection=True) - return self._deserialize('{bool}', response) + content=content) + return self._deserialize('{bool}', self._unwrap_collection(response)) def get_extension_rights(self): """GetExtensionRights. @@ -388,9 +377,8 @@ def get_entitlements(self): """ response = self._send(http_method='GET', location_id='1cc6137e-12d5-4d44-a4f2-765006c9e85d', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[MsdnEntitlement]', response) + version='4.1-preview.1') + return self._deserialize('[MsdnEntitlement]', self._unwrap_collection(response)) def get_account_licenses_usage(self): """GetAccountLicensesUsage. @@ -399,7 +387,6 @@ def get_account_licenses_usage(self): """ response = self._send(http_method='GET', location_id='d3266b87-d395-4e91-97a5-0215b81a0b7d', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[AccountLicenseUsage]', response) + version='4.1-preview.1') + return self._deserialize('[AccountLicenseUsage]', self._unwrap_collection(response)) diff --git a/vsts/vsts/location/v4_0/location_client.py b/vsts/vsts/location/v4_0/location_client.py index f9ab6d62..67c7d0df 100644 --- a/vsts/vsts/location/v4_0/location_client.py +++ b/vsts/vsts/location/v4_0/location_client.py @@ -68,9 +68,8 @@ def get_resource_areas(self): """ response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[ResourceAreaInfo]', response) + version='4.0-preview.1') + return self._deserialize('[ResourceAreaInfo]', self._unwrap_collection(response)) def delete_service_definition(self, service_type, identifier): """DeleteServiceDefinition. @@ -123,9 +122,8 @@ def get_service_definitions(self, service_type=None): response = self._send(http_method='GET', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ServiceDefinition]', response) + route_values=route_values) + return self._deserialize('[ServiceDefinition]', self._unwrap_collection(response)) def update_service_definitions(self, service_definitions): """UpdateServiceDefinitions. diff --git a/vsts/vsts/location/v4_1/location_client.py b/vsts/vsts/location/v4_1/location_client.py index bef06422..53947550 100644 --- a/vsts/vsts/location/v4_1/location_client.py +++ b/vsts/vsts/location/v4_1/location_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -104,9 +104,8 @@ def get_resource_areas(self, organization_name=None, account_name=None): response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ResourceAreaInfo]', response) + query_parameters=query_parameters) + return self._deserialize('[ResourceAreaInfo]', self._unwrap_collection(response)) def get_resource_areas_by_host(self, host_id): """GetResourceAreasByHost. @@ -120,9 +119,8 @@ def get_resource_areas_by_host(self, host_id): response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ResourceAreaInfo]', response) + query_parameters=query_parameters) + return self._deserialize('[ResourceAreaInfo]', self._unwrap_collection(response)) def delete_service_definition(self, service_type, identifier): """DeleteServiceDefinition. @@ -178,9 +176,8 @@ def get_service_definitions(self, service_type=None): response = self._send(http_method='GET', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ServiceDefinition]', response) + route_values=route_values) + return self._deserialize('[ServiceDefinition]', self._unwrap_collection(response)) def update_service_definitions(self, service_definitions): """UpdateServiceDefinitions. diff --git a/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py b/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py index b3c1e864..c79016bd 100644 --- a/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py +++ b/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py @@ -85,9 +85,8 @@ def get_group_entitlements(self): """ response = self._send(http_method='GET', location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[GroupEntitlement]', response) + version='4.0-preview.1') + return self._deserialize('[GroupEntitlement]', self._unwrap_collection(response)) def update_group_entitlement(self, document, group_id, rule_option=None): """UpdateGroupEntitlement. @@ -175,9 +174,8 @@ def get_member_entitlements(self, top, skip, filter=None, select=None): response = self._send(http_method='GET', location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[MemberEntitlement]', response) + query_parameters=query_parameters) + return self._deserialize('[MemberEntitlement]', self._unwrap_collection(response)) def update_member_entitlement(self, document, member_id): """UpdateMemberEntitlement. diff --git a/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py b/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py index e6c85825..95425ec7 100644 --- a/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py +++ b/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -88,9 +88,8 @@ def get_group_entitlements(self): """ response = self._send(http_method='GET', location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[GroupEntitlement]', response) + version='4.1-preview.1') + return self._deserialize('[GroupEntitlement]', self._unwrap_collection(response)) def update_group_entitlement(self, document, group_id, rule_option=None): """UpdateGroupEntitlement. @@ -205,9 +204,8 @@ def get_user_entitlements(self, top=None, skip=None, filter=None, select=None): response = self._send(http_method='GET', location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[UserEntitlement]', response) + query_parameters=query_parameters) + return self._deserialize('[UserEntitlement]', self._unwrap_collection(response)) def update_user_entitlements(self, document, do_not_send_invite_for_new_users=None): """UpdateUserEntitlements. diff --git a/vsts/vsts/notification/v4_0/notification_client.py b/vsts/vsts/notification/v4_0/notification_client.py index b77e4c4a..b457f97c 100644 --- a/vsts/vsts/notification/v4_0/notification_client.py +++ b/vsts/vsts/notification/v4_0/notification_client.py @@ -52,9 +52,8 @@ def list_event_types(self, publisher_id=None): response = self._send(http_method='GET', location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[NotificationEventType]', response) + query_parameters=query_parameters) + return self._deserialize('[NotificationEventType]', self._unwrap_collection(response)) def get_notification_reasons(self, notification_id): """GetNotificationReasons. @@ -83,9 +82,8 @@ def list_notification_reasons(self, notification_ids=None): response = self._send(http_method='GET', location_id='19824fa9-1c76-40e6-9cce-cf0b9ca1cb60', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[NotificationReason]', response) + query_parameters=query_parameters) + return self._deserialize('[NotificationReason]', self._unwrap_collection(response)) def get_subscriber(self, subscriber_id): """GetSubscriber. @@ -130,9 +128,8 @@ def query_subscriptions(self, subscription_query): response = self._send(http_method='POST', location_id='6864db85-08c0-4006-8e8e-cc1bebe31675', version='4.0-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[NotificationSubscription]', response) + content=content) + return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def create_subscription(self, create_parameters): """CreateSubscription. @@ -199,9 +196,8 @@ def list_subscriptions(self, target_id=None, ids=None, query_flags=None): response = self._send(http_method='GET', location_id='70f911d6-abac-488c-85b3-a206bf57e165', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[NotificationSubscription]', response) + query_parameters=query_parameters) + return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def update_subscription(self, update_parameters, subscription_id): """UpdateSubscription. diff --git a/vsts/vsts/notification/v4_1/notification_client.py b/vsts/vsts/notification/v4_1/notification_client.py index 64f104c0..74d7ef8b 100644 --- a/vsts/vsts/notification/v4_1/notification_client.py +++ b/vsts/vsts/notification/v4_1/notification_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -48,9 +48,8 @@ def list_logs(self, source, entry_id=None, start_time=None, end_time=None): location_id='991842f3-eb16-4aea-ac81-81353ef2b75c', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[INotificationDiagnosticLog]', response) + query_parameters=query_parameters) + return self._deserialize('[INotificationDiagnosticLog]', self._unwrap_collection(response)) def get_subscription_diagnostics(self, subscription_id): """GetSubscriptionDiagnostics. @@ -125,9 +124,8 @@ def list_event_types(self, publisher_id=None): response = self._send(http_method='GET', location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[NotificationEventType]', response) + query_parameters=query_parameters) + return self._deserialize('[NotificationEventType]', self._unwrap_collection(response)) def get_subscriber(self, subscriber_id): """GetSubscriber. @@ -172,9 +170,8 @@ def query_subscriptions(self, subscription_query): response = self._send(http_method='POST', location_id='6864db85-08c0-4006-8e8e-cc1bebe31675', version='4.1-preview.1', - content=content, - returns_collection=True) - return self._deserialize('[NotificationSubscription]', response) + content=content) + return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def create_subscription(self, create_parameters): """CreateSubscription. @@ -241,9 +238,8 @@ def list_subscriptions(self, target_id=None, ids=None, query_flags=None): response = self._send(http_method='GET', location_id='70f911d6-abac-488c-85b3-a206bf57e165', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[NotificationSubscription]', response) + query_parameters=query_parameters) + return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def update_subscription(self, update_parameters, subscription_id): """UpdateSubscription. @@ -270,9 +266,8 @@ def get_subscription_templates(self): """ response = self._send(http_method='GET', location_id='fa5d24ba-7484-4f3d-888d-4ec6b1974082', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[NotificationSubscriptionTemplate]', response) + version='4.1-preview.1') + return self._deserialize('[NotificationSubscriptionTemplate]', self._unwrap_collection(response)) def update_subscription_user_settings(self, user_settings, subscription_id, user_id): """UpdateSubscriptionUserSettings. diff --git a/vsts/vsts/policy/v4_0/policy_client.py b/vsts/vsts/policy/v4_0/policy_client.py index a18a7f24..bd937db5 100644 --- a/vsts/vsts/policy/v4_0/policy_client.py +++ b/vsts/vsts/policy/v4_0/policy_client.py @@ -93,9 +93,8 @@ def get_policy_configurations(self, project, scope=None): location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PolicyConfiguration]', response) + query_parameters=query_parameters) + return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) def update_policy_configuration(self, configuration, project, configuration_id): """UpdatePolicyConfiguration. @@ -179,9 +178,8 @@ def get_policy_evaluations(self, project, artifact_id, include_not_applicable=No location_id='c23ddff5-229c-4d04-a80b-0fdce9f360c8', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PolicyEvaluationRecord]', response) + query_parameters=query_parameters) + return self._deserialize('[PolicyEvaluationRecord]', self._unwrap_collection(response)) def get_policy_configuration_revision(self, project, configuration_id, revision_id): """GetPolicyConfigurationRevision. @@ -225,9 +223,8 @@ def get_policy_configuration_revisions(self, project, configuration_id, top=None location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PolicyConfiguration]', response) + query_parameters=query_parameters) + return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) def get_policy_type(self, project, type_id): """GetPolicyType. @@ -257,7 +254,6 @@ def get_policy_types(self, project): response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[PolicyType]', response) + route_values=route_values) + return self._deserialize('[PolicyType]', self._unwrap_collection(response)) diff --git a/vsts/vsts/policy/v4_1/policy_client.py b/vsts/vsts/policy/v4_1/policy_client.py index ec25ec1b..79ad44f5 100644 --- a/vsts/vsts/policy/v4_1/policy_client.py +++ b/vsts/vsts/policy/v4_1/policy_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -100,9 +100,8 @@ def get_policy_configurations(self, project, scope=None, policy_type=None): location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PolicyConfiguration]', response) + query_parameters=query_parameters) + return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) def update_policy_configuration(self, configuration, project, configuration_id): """UpdatePolicyConfiguration. @@ -187,9 +186,8 @@ def get_policy_evaluations(self, project, artifact_id, include_not_applicable=No location_id='c23ddff5-229c-4d04-a80b-0fdce9f360c8', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PolicyEvaluationRecord]', response) + query_parameters=query_parameters) + return self._deserialize('[PolicyEvaluationRecord]', self._unwrap_collection(response)) def get_policy_configuration_revision(self, project, configuration_id, revision_id): """GetPolicyConfigurationRevision. @@ -235,9 +233,8 @@ def get_policy_configuration_revisions(self, project, configuration_id, top=None location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PolicyConfiguration]', response) + query_parameters=query_parameters) + return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) def get_policy_type(self, project, type_id): """GetPolicyType. @@ -269,7 +266,6 @@ def get_policy_types(self, project): response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[PolicyType]', response) + route_values=route_values) + return self._deserialize('[PolicyType]', self._unwrap_collection(response)) diff --git a/vsts/vsts/project_analysis/v4_1/project_analysis_client.py b/vsts/vsts/project_analysis/v4_1/project_analysis_client.py index e2ba8e83..ffb36472 100644 --- a/vsts/vsts/project_analysis/v4_1/project_analysis_client.py +++ b/vsts/vsts/project_analysis/v4_1/project_analysis_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -89,9 +89,8 @@ def get_git_repositories_activity_metrics(self, project, from_date, aggregation_ location_id='df7fbbca-630a-40e3-8aa3-7a3faf66947e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[RepositoryActivityMetrics]', response) + query_parameters=query_parameters) + return self._deserialize('[RepositoryActivityMetrics]', self._unwrap_collection(response)) def get_repository_activity_metrics(self, project, repository_id, from_date, aggregation_type): """GetRepositoryActivityMetrics. diff --git a/vsts/vsts/release/v4_0/release_client.py b/vsts/vsts/release/v4_0/release_client.py index bd6b4825..78928aef 100644 --- a/vsts/vsts/release/v4_0/release_client.py +++ b/vsts/vsts/release/v4_0/release_client.py @@ -40,9 +40,8 @@ def get_agent_artifact_definitions(self, project, release_id): response = self._send(http_method='GET', location_id='f2571c27-bf50-4938-b396-32d109ddef26', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[AgentArtifactDefinition]', response) + route_values=route_values) + return self._deserialize('[AgentArtifactDefinition]', self._unwrap_collection(response)) def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): """GetApprovals. @@ -83,9 +82,8 @@ def get_approvals(self, project, assigned_to_filter=None, status_filter=None, re location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ReleaseApproval]', response) + query_parameters=query_parameters) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) def get_approval_history(self, project, approval_step_id): """GetApprovalHistory. @@ -164,9 +162,8 @@ def update_release_approvals(self, approvals, project): location_id='c957584a-82aa-4131-8222-6d47f78bfa7a', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[ReleaseApproval]', response) + content=content) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) def get_auto_trigger_issues(self, artifact_type, source_id, artifact_version_id): """GetAutoTriggerIssues. @@ -186,9 +183,8 @@ def get_auto_trigger_issues(self, artifact_type, source_id, artifact_version_id) response = self._send(http_method='GET', location_id='c1a68497-69da-40fb-9423-cab19cfeeca9', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[AutoTriggerIssue]', response) + query_parameters=query_parameters) + return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) def get_release_changes(self, project, release_id, base_release_id=None, top=None): """GetReleaseChanges. @@ -213,9 +209,8 @@ def get_release_changes(self, project, release_id, base_release_id=None, top=Non location_id='8dcf9fe9-ca37-4113-8ee1-37928e98407c', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Change]', response) + query_parameters=query_parameters) + return self._deserialize('[Change]', self._unwrap_collection(response)) def get_definition_environments(self, project, task_group_id=None, property_filters=None): """GetDefinitionEnvironments. @@ -238,9 +233,8 @@ def get_definition_environments(self, project, task_group_id=None, property_filt location_id='12b5d21a-f54c-430e-a8c1-7515d196890e', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DefinitionEnvironmentReference]', response) + query_parameters=query_parameters) + return self._deserialize('[DefinitionEnvironmentReference]', self._unwrap_collection(response)) def create_release_definition(self, release_definition, project): """CreateReleaseDefinition. @@ -376,9 +370,8 @@ def get_release_definitions(self, project, search_text=None, expand=None, artifa location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', version='4.0-preview.3', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ReleaseDefinition]', response) + query_parameters=query_parameters) + return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) def update_release_definition(self, release_definition, project): """UpdateReleaseDefinition. @@ -448,9 +441,8 @@ def get_deployments(self, project, definition_id=None, definition_environment_id location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Deployment]', response) + query_parameters=query_parameters) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) def get_deployments_for_multiple_environments(self, query_parameters, project): """GetDeploymentsForMultipleEnvironments. @@ -467,9 +459,8 @@ def get_deployments_for_multiple_environments(self, query_parameters, project): location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[Deployment]', response) + content=content) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) def get_release_environment(self, project, release_id, environment_id): """GetReleaseEnvironment. @@ -584,9 +575,8 @@ def list_definition_environment_templates(self, project): response = self._send(http_method='GET', location_id='6b03b696-824e-4479-8eb2-6644a51aba89', version='4.0-preview.2', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ReleaseDefinitionEnvironmentTemplate]', response) + route_values=route_values) + return self._deserialize('[ReleaseDefinitionEnvironmentTemplate]', self._unwrap_collection(response)) def create_favorites(self, favorite_items, project, scope, identity_id=None): """CreateFavorites. @@ -611,9 +601,8 @@ def create_favorites(self, favorite_items, project, scope, identity_id=None): version='4.0-preview.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[FavoriteItem]', response) + content=content) + return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) def delete_favorites(self, project, scope, identity_id=None, favorite_item_ids=None): """DeleteFavorites. @@ -659,9 +648,8 @@ def get_favorites(self, project, scope, identity_id=None): location_id='938f7222-9acb-48fe-b8a3-4eda04597171', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[FavoriteItem]', response) + query_parameters=query_parameters) + return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) def create_folder(self, folder, project, path): """CreateFolder. @@ -720,9 +708,8 @@ def get_folders(self, project, path=None, query_order=None): location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Folder]', response) + query_parameters=query_parameters) + return self._deserialize('[Folder]', self._unwrap_collection(response)) def update_folder(self, folder, project, path): """UpdateFolder. @@ -760,9 +747,8 @@ def get_release_history(self, project, release_id): response = self._send(http_method='GET', location_id='23f461c8-629a-4144-a076-3054fa5f268a', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ReleaseRevision]', response) + route_values=route_values) + return self._deserialize('[ReleaseRevision]', self._unwrap_collection(response)) def get_input_values(self, query, project): """GetInputValues. @@ -802,9 +788,8 @@ def get_issues(self, project, build_id, source_id=None): location_id='cd42261a-f5c6-41c8-9259-f078989b9f25', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[AutoTriggerIssue]', response) + query_parameters=query_parameters) + return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) def get_log(self, project, release_id, environment_id, task_id, attempt_id=None): """GetLog. @@ -916,9 +901,8 @@ def get_manual_interventions(self, project, release_id): response = self._send(http_method='GET', location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ManualIntervention]', response) + route_values=route_values) + return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): """UpdateManualIntervention. @@ -961,9 +945,8 @@ def get_metrics(self, project, min_metrics_time=None): location_id='cd1502bb-3c73-4e11-80a6-d11308dceae5', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Metric]', response) + query_parameters=query_parameters) + return self._deserialize('[Metric]', self._unwrap_collection(response)) def get_release_projects(self, artifact_type, artifact_source_id): """GetReleaseProjects. @@ -980,9 +963,8 @@ def get_release_projects(self, artifact_type, artifact_source_id): response = self._send(http_method='GET', location_id='917ace4a-79d1-45a7-987c-7be4db4268fa', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ProjectReference]', response) + query_parameters=query_parameters) + return self._deserialize('[ProjectReference]', self._unwrap_collection(response)) def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None): """GetReleases. @@ -1057,9 +1039,8 @@ def get_releases(self, project=None, definition_id=None, definition_environment_ location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', version='4.0-preview.4', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Release]', response) + query_parameters=query_parameters) + return self._deserialize('[Release]', self._unwrap_collection(response)) def create_release(self, release_start_metadata, project): """CreateRelease. @@ -1312,9 +1293,8 @@ def get_release_definition_history(self, project, definition_id): response = self._send(http_method='GET', location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ReleaseDefinitionRevision]', response) + route_values=route_values) + return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) def get_summary_mail_sections(self, project, release_id): """GetSummaryMailSections. @@ -1331,9 +1311,8 @@ def get_summary_mail_sections(self, project, release_id): response = self._send(http_method='GET', location_id='224e92b2-8d13-4c14-b120-13d877c516f8', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SummaryMailSection]', response) + route_values=route_values) + return self._deserialize('[SummaryMailSection]', self._unwrap_collection(response)) def send_summary_mail(self, mail_message, project, release_id): """SendSummaryMail. @@ -1369,9 +1348,8 @@ def get_source_branches(self, project, definition_id): response = self._send(http_method='GET', location_id='0e5def23-78b3-461f-8198-1558f25041c8', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_definition_tag(self, project, release_definition_id, tag): """AddDefinitionTag. @@ -1391,9 +1369,8 @@ def add_definition_tag(self, project, release_definition_id, tag): response = self._send(http_method='PATCH', location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_definition_tags(self, tags, project, release_definition_id): """AddDefinitionTags. @@ -1413,9 +1390,8 @@ def add_definition_tags(self, tags, project, release_definition_id): location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[str]', response) + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_definition_tag(self, project, release_definition_id, tag): """DeleteDefinitionTag. @@ -1435,9 +1411,8 @@ def delete_definition_tag(self, project, release_definition_id, tag): response = self._send(http_method='DELETE', location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_definition_tags(self, project, release_definition_id): """GetDefinitionTags. @@ -1454,9 +1429,8 @@ def get_definition_tags(self, project, release_definition_id): response = self._send(http_method='GET', location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_release_tag(self, project, release_id, tag): """AddReleaseTag. @@ -1476,9 +1450,8 @@ def add_release_tag(self, project, release_id, tag): response = self._send(http_method='PATCH', location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def add_release_tags(self, tags, project, release_id): """AddReleaseTags. @@ -1498,9 +1471,8 @@ def add_release_tags(self, tags, project, release_id): location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[str]', response) + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) def delete_release_tag(self, project, release_id, tag): """DeleteReleaseTag. @@ -1520,9 +1492,8 @@ def delete_release_tag(self, project, release_id, tag): response = self._send(http_method='DELETE', location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_release_tags(self, project, release_id): """GetReleaseTags. @@ -1539,9 +1510,8 @@ def get_release_tags(self, project, release_id): response = self._send(http_method='GET', location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_tags(self, project): """GetTags. @@ -1555,9 +1525,8 @@ def get_tags(self, project): response = self._send(http_method='GET', location_id='86cee25a-68ba-4ba3-9171-8ad6ffc6df93', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[str]', response) + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_tasks(self, project, release_id, environment_id, attempt_id=None): """GetTasks. @@ -1582,9 +1551,8 @@ def get_tasks(self, project, release_id, environment_id, attempt_id=None): location_id='36b276e0-3c70-4320-a63c-1a2e1466a0d1', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ReleaseTask]', response) + query_parameters=query_parameters) + return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) def get_tasks_for_task_group(self, project, release_id, environment_id, release_deploy_phase_id): """GetTasksForTaskGroup. @@ -1607,9 +1575,8 @@ def get_tasks_for_task_group(self, project, release_id, environment_id, release_ response = self._send(http_method='GET', location_id='4259191d-4b0a-4409-9fb3-09f22ab9bc47', version='4.0-preview.2', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ReleaseTask]', response) + route_values=route_values) + return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) def get_artifact_type_definitions(self, project): """GetArtifactTypeDefinitions. @@ -1623,9 +1590,8 @@ def get_artifact_type_definitions(self, project): response = self._send(http_method='GET', location_id='8efc2a3c-1fc8-4f6d-9822-75e98cecb48f', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ArtifactTypeDefinition]', response) + route_values=route_values) + return self._deserialize('[ArtifactTypeDefinition]', self._unwrap_collection(response)) def get_artifact_versions(self, project, release_definition_id): """GetArtifactVersions. @@ -1688,7 +1654,6 @@ def get_release_work_items_refs(self, project, release_id, base_release_id=None, location_id='4f165cc0-875c-4768-b148-f12f78769fab', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ReleaseWorkItemRef]', response) + query_parameters=query_parameters) + return self._deserialize('[ReleaseWorkItemRef]', self._unwrap_collection(response)) diff --git a/vsts/vsts/release/v4_1/release_client.py b/vsts/vsts/release/v4_1/release_client.py index 06ecf5cc..ee5c8f05 100644 --- a/vsts/vsts/release/v4_1/release_client.py +++ b/vsts/vsts/release/v4_1/release_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -64,9 +64,8 @@ def get_approvals(self, project, assigned_to_filter=None, status_filter=None, re location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', version='4.1-preview.3', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ReleaseApproval]', response) + query_parameters=query_parameters) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) def update_release_approval(self, approval, project, approval_id): """UpdateReleaseApproval. @@ -152,9 +151,8 @@ def get_task_attachments(self, project, release_id, environment_id, attempt_id, response = self._send(http_method='GET', location_id='214111ee-2415-4df2-8ed2-74417f7d61f9', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ReleaseTaskAttachment]', response) + route_values=route_values) + return self._deserialize('[ReleaseTaskAttachment]', self._unwrap_collection(response)) def create_release_definition(self, release_definition, project): """CreateReleaseDefinition. @@ -278,9 +276,8 @@ def get_release_definitions(self, project, search_text=None, expand=None, artifa location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', version='4.1-preview.3', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ReleaseDefinition]', response) + query_parameters=query_parameters) + return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) def update_release_definition(self, release_definition, project): """UpdateReleaseDefinition. @@ -356,9 +353,8 @@ def get_deployments(self, project, definition_id=None, definition_environment_id location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', version='4.1-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Deployment]', response) + query_parameters=query_parameters) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) def update_release_environment(self, environment_update_data, project, release_id, environment_id): """UpdateReleaseEnvironment. @@ -473,9 +469,8 @@ def get_manual_interventions(self, project, release_id): response = self._send(http_method='GET', location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ManualIntervention]', response) + route_values=route_values) + return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): """UpdateManualIntervention. @@ -578,9 +573,8 @@ def get_releases(self, project=None, definition_id=None, definition_environment_ location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', version='4.1-preview.6', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Release]', response) + query_parameters=query_parameters) + return self._deserialize('[Release]', self._unwrap_collection(response)) def create_release(self, release_start_metadata, project): """CreateRelease. @@ -758,7 +752,6 @@ def get_release_definition_history(self, project, definition_id): response = self._send(http_method='GET', location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[ReleaseDefinitionRevision]', response) + route_values=route_values) + return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) diff --git a/vsts/vsts/security/v4_0/security_client.py b/vsts/vsts/security/v4_0/security_client.py index 7aceba1a..703bf90e 100644 --- a/vsts/vsts/security/v4_0/security_client.py +++ b/vsts/vsts/security/v4_0/security_client.py @@ -61,9 +61,8 @@ def set_access_control_entries(self, container, security_namespace_id): location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AccessControlEntry]', response) + content=content) + return self._deserialize('[AccessControlEntry]', self._unwrap_collection(response)) def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): """QueryAccessControlLists. @@ -90,9 +89,8 @@ def query_access_control_lists(self, security_namespace_id, token=None, descript location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[AccessControlList]', response) + query_parameters=query_parameters) + return self._deserialize('[AccessControlList]', self._unwrap_collection(response)) def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None): """RemoveAccessControlLists. @@ -169,9 +167,8 @@ def has_permissions(self, security_namespace_id, permissions=None, tokens=None, location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[bool]', response) + query_parameters=query_parameters) + return self._deserialize('[bool]', self._unwrap_collection(response)) def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None): """RemovePermission. @@ -214,9 +211,8 @@ def query_security_namespaces(self, security_namespace_id, local_only=None): location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SecurityNamespaceDescription]', response) + query_parameters=query_parameters) + return self._deserialize('[SecurityNamespaceDescription]', self._unwrap_collection(response)) def set_inherit_flag(self, container, security_namespace_id): """SetInheritFlag. diff --git a/vsts/vsts/security/v4_1/security_client.py b/vsts/vsts/security/v4_1/security_client.py index 1d727f87..b9f9e5f9 100644 --- a/vsts/vsts/security/v4_1/security_client.py +++ b/vsts/vsts/security/v4_1/security_client.py @@ -63,9 +63,8 @@ def set_access_control_entries(self, container, security_namespace_id): location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AccessControlEntry]', response) + content=content) + return self._deserialize('[AccessControlEntry]', self._unwrap_collection(response)) def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): """QueryAccessControlLists. @@ -93,9 +92,8 @@ def query_access_control_lists(self, security_namespace_id, token=None, descript location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[AccessControlList]', response) + query_parameters=query_parameters) + return self._deserialize('[AccessControlList]', self._unwrap_collection(response)) def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None): """RemoveAccessControlLists. @@ -175,9 +173,8 @@ def has_permissions(self, security_namespace_id, permissions=None, tokens=None, location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[bool]', response) + query_parameters=query_parameters) + return self._deserialize('[bool]', self._unwrap_collection(response)) def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None): """RemovePermission. @@ -221,7 +218,6 @@ def query_security_namespaces(self, security_namespace_id, local_only=None): location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SecurityNamespaceDescription]', response) + query_parameters=query_parameters) + return self._deserialize('[SecurityNamespaceDescription]', self._unwrap_collection(response)) diff --git a/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py b/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py index 1284bba1..3239fe17 100644 --- a/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py +++ b/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -128,9 +128,8 @@ def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) def get_service_endpoints_by_names(self, project, endpoint_names, type=None, auth_schemes=None, include_failed=None): """GetServiceEndpointsByNames. @@ -160,9 +159,8 @@ def get_service_endpoints_by_names(self, project, endpoint_names, type=None, aut location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): """UpdateServiceEndpoint. @@ -205,9 +203,8 @@ def update_service_endpoints(self, endpoints, project): location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) + content=content) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): """GetServiceEndpointExecutionRecords. @@ -229,9 +226,8 @@ def get_service_endpoint_execution_records(self, project, endpoint_id, top=None) location_id='10a16738-9299-4cd1-9a81-fd23ad6200d0', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpointExecutionRecord]', response) + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpointExecutionRecord]', self._unwrap_collection(response)) def get_service_endpoint_types(self, type=None, scheme=None): """GetServiceEndpointTypes. @@ -248,7 +244,6 @@ def get_service_endpoint_types(self, type=None, scheme=None): response = self._send(http_method='GET', location_id='5a7938a4-655e-486c-b562-b78c54a7e87b', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpointType]', response) + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpointType]', self._unwrap_collection(response)) diff --git a/vsts/vsts/service_hooks/v4_0/service_hooks_client.py b/vsts/vsts/service_hooks/v4_0/service_hooks_client.py index 54d93785..cd6efd97 100644 --- a/vsts/vsts/service_hooks/v4_0/service_hooks_client.py +++ b/vsts/vsts/service_hooks/v4_0/service_hooks_client.py @@ -63,9 +63,8 @@ def list_consumer_actions(self, consumer_id, publisher_id=None): location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ConsumerAction]', response) + query_parameters=query_parameters) + return self._deserialize('[ConsumerAction]', self._unwrap_collection(response)) def get_consumer(self, consumer_id, publisher_id=None): """GetConsumer. @@ -97,9 +96,8 @@ def list_consumers(self, publisher_id=None): response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Consumer]', response) + query_parameters=query_parameters) + return self._deserialize('[Consumer]', self._unwrap_collection(response)) def get_event_type(self, publisher_id, event_type_id): """GetEventType. @@ -129,9 +127,8 @@ def list_event_types(self, publisher_id): response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[EventTypeDescriptor]', response) + route_values=route_values) + return self._deserialize('[EventTypeDescriptor]', self._unwrap_collection(response)) def publish_external_event(self, publisher_id, channel_id=None): """PublishExternalEvent. @@ -147,9 +144,8 @@ def publish_external_event(self, publisher_id, channel_id=None): response = self._send(http_method='POST', location_id='e0e0a1c9-beeb-4fb7-a8c8-b18e3161a50e', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PublisherEvent]', response) + query_parameters=query_parameters) + return self._deserialize('[PublisherEvent]', self._unwrap_collection(response)) def get_notification(self, subscription_id, notification_id): """GetNotification. @@ -190,9 +186,8 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu location_id='0c62d343-21b0-4732-997b-017fde84dc28', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Notification]', response) + query_parameters=query_parameters) + return self._deserialize('[Notification]', self._unwrap_collection(response)) def query_notifications(self, query): """QueryNotifications. @@ -243,9 +238,8 @@ def list_publishers(self): """ response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.0', - returns_collection=True) - return self._deserialize('[Publisher]', response) + version='4.0') + return self._deserialize('[Publisher]', self._unwrap_collection(response)) def query_publishers(self, query): """QueryPublishers. @@ -317,9 +311,8 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Subscription]', response) + query_parameters=query_parameters) + return self._deserialize('[Subscription]', self._unwrap_collection(response)) def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. diff --git a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py index 8546f038..982e6e1f 100644 --- a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py +++ b/vsts/vsts/service_hooks/v4_1/service_hooks_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -65,9 +65,8 @@ def list_consumer_actions(self, consumer_id, publisher_id=None): location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ConsumerAction]', response) + query_parameters=query_parameters) + return self._deserialize('[ConsumerAction]', self._unwrap_collection(response)) def get_consumer(self, consumer_id, publisher_id=None): """GetConsumer. @@ -101,9 +100,8 @@ def list_consumers(self, publisher_id=None): response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Consumer]', response) + query_parameters=query_parameters) + return self._deserialize('[Consumer]', self._unwrap_collection(response)) def get_subscription_diagnostics(self, subscription_id): """GetSubscriptionDiagnostics. @@ -168,9 +166,8 @@ def list_event_types(self, publisher_id): response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[EventTypeDescriptor]', response) + route_values=route_values) + return self._deserialize('[EventTypeDescriptor]', self._unwrap_collection(response)) def get_notification(self, subscription_id, notification_id): """GetNotification. @@ -213,9 +210,8 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu location_id='0c62d343-21b0-4732-997b-017fde84dc28', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Notification]', response) + query_parameters=query_parameters) + return self._deserialize('[Notification]', self._unwrap_collection(response)) def query_notifications(self, query): """QueryNotifications. @@ -269,9 +265,8 @@ def list_publishers(self): """ response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.1', - returns_collection=True) - return self._deserialize('[Publisher]', response) + version='4.1') + return self._deserialize('[Publisher]', self._unwrap_collection(response)) def query_publishers(self, query): """QueryPublishers. @@ -348,9 +343,8 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[Subscription]', response) + query_parameters=query_parameters) + return self._deserialize('[Subscription]', self._unwrap_collection(response)) def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. diff --git a/vsts/vsts/settings/v4_0/settings_client.py b/vsts/vsts/settings/v4_0/settings_client.py index eb856d96..7bfe6356 100644 --- a/vsts/vsts/settings/v4_0/settings_client.py +++ b/vsts/vsts/settings/v4_0/settings_client.py @@ -38,9 +38,8 @@ def get_entries(self, user_scope, key=None): response = self._send(http_method='GET', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{object}', response) + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) def remove_entries(self, user_scope, key): """RemoveEntries. @@ -95,9 +94,8 @@ def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): response = self._send(http_method='GET', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{object}', response) + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): """RemoveEntriesForScope. diff --git a/vsts/vsts/settings/v4_1/settings_client.py b/vsts/vsts/settings/v4_1/settings_client.py index 1c257c48..4d313fd8 100644 --- a/vsts/vsts/settings/v4_1/settings_client.py +++ b/vsts/vsts/settings/v4_1/settings_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -38,9 +38,8 @@ def get_entries(self, user_scope, key=None): response = self._send(http_method='GET', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{object}', response) + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) def remove_entries(self, user_scope, key): """RemoveEntries. @@ -95,9 +94,8 @@ def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): response = self._send(http_method='GET', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('{object}', response) + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): """RemoveEntriesForScope. diff --git a/vsts/vsts/symbol/v4_1/symbol_client.py b/vsts/vsts/symbol/v4_1/symbol_client.py index 806708b1..c8bd758c 100644 --- a/vsts/vsts/symbol/v4_1/symbol_client.py +++ b/vsts/vsts/symbol/v4_1/symbol_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -89,9 +89,8 @@ def create_requests_request_id_debug_entries(self, batch, request_id, collection version='4.1-preview.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[DebugEntry]', response) + content=content) + return self._deserialize('[DebugEntry]', self._unwrap_collection(response)) def create_requests_request_name_debug_entries(self, batch, request_name, collection): """CreateRequestsRequestNameDebugEntries. @@ -111,9 +110,8 @@ def create_requests_request_name_debug_entries(self, batch, request_name, collec location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', version='4.1-preview.1', query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[DebugEntry]', response) + content=content) + return self._deserialize('[DebugEntry]', self._unwrap_collection(response)) def delete_requests_request_id(self, request_id, synchronous=None): """DeleteRequestsRequestId. diff --git a/vsts/vsts/task/v4_0/task_client.py b/vsts/vsts/task/v4_0/task_client.py index 4cfdcdfd..77dd33ea 100644 --- a/vsts/vsts/task/v4_0/task_client.py +++ b/vsts/vsts/task/v4_0/task_client.py @@ -46,9 +46,8 @@ def get_plan_attachments(self, scope_identifier, hub_name, plan_id, type): response = self._send(http_method='GET', location_id='eb55e5d6-2f30-4295-b5ed-38da50b1fc52', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskAttachment]', response) + route_values=route_values) + return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): """CreateAttachment. @@ -180,9 +179,8 @@ def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, reco response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskAttachment]', response) + route_values=route_values) + return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) def append_timeline_record_feed(self, lines, scope_identifier, hub_name, plan_id, timeline_id, record_id): """AppendTimelineRecordFeed. @@ -289,9 +287,8 @@ def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_logs(self, scope_identifier, hub_name, plan_id): """GetLogs. @@ -310,9 +307,8 @@ def get_logs(self, scope_identifier, hub_name, plan_id): response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskLog]', response) + route_values=route_values) + return self._deserialize('[TaskLog]', self._unwrap_collection(response)) def get_plan_groups_queue_metrics(self, scope_identifier, hub_name): """GetPlanGroupsQueueMetrics. @@ -329,9 +325,8 @@ def get_plan_groups_queue_metrics(self, scope_identifier, hub_name): response = self._send(http_method='GET', location_id='038fd4d5-cda7-44ca-92c0-935843fee1a7', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskOrchestrationPlanGroupsQueueMetrics]', response) + route_values=route_values) + return self._deserialize('[TaskOrchestrationPlanGroupsQueueMetrics]', self._unwrap_collection(response)) def get_queued_plan_groups(self, scope_identifier, hub_name, status_filter=None, count=None): """GetQueuedPlanGroups. @@ -356,9 +351,8 @@ def get_queued_plan_groups(self, scope_identifier, hub_name, status_filter=None, location_id='0dd73091-3e36-4f43-b443-1b76dd426d84', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskOrchestrationQueuedPlanGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskOrchestrationQueuedPlanGroup]', self._unwrap_collection(response)) def get_queued_plan_group(self, scope_identifier, hub_name, plan_group): """GetQueuedPlanGroup. @@ -426,9 +420,8 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TimelineRecord]', response) + query_parameters=query_parameters) + return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): """UpdateRecords. @@ -453,9 +446,8 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TimelineRecord]', response) + content=content) + return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): """CreateTimeline. @@ -549,7 +541,6 @@ def get_timelines(self, scope_identifier, hub_name, plan_id): response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Timeline]', response) + route_values=route_values) + return self._deserialize('[Timeline]', self._unwrap_collection(response)) diff --git a/vsts/vsts/task/v4_1/task_client.py b/vsts/vsts/task/v4_1/task_client.py index 81148d15..f8d7ef3b 100644 --- a/vsts/vsts/task/v4_1/task_client.py +++ b/vsts/vsts/task/v4_1/task_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -46,9 +46,8 @@ def get_plan_attachments(self, scope_identifier, hub_name, plan_id, type): response = self._send(http_method='GET', location_id='eb55e5d6-2f30-4295-b5ed-38da50b1fc52', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskAttachment]', response) + route_values=route_values) + return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): """CreateAttachment. @@ -180,9 +179,8 @@ def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, reco response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskAttachment]', response) + route_values=route_values) + return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id): """AppendLogContent. @@ -262,9 +260,8 @@ def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[str]', response) + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_logs(self, scope_identifier, hub_name, plan_id): """GetLogs. @@ -283,9 +280,8 @@ def get_logs(self, scope_identifier, hub_name, plan_id): response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskLog]', response) + route_values=route_values) + return self._deserialize('[TaskLog]', self._unwrap_collection(response)) def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None): """GetRecords. @@ -312,9 +308,8 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TimelineRecord]', response) + query_parameters=query_parameters) + return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): """UpdateRecords. @@ -339,9 +334,8 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TimelineRecord]', response) + content=content) + return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): """CreateTimeline. @@ -435,7 +429,6 @@ def get_timelines(self, scope_identifier, hub_name, plan_id): response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Timeline]', response) + route_values=route_values) + return self._deserialize('[Timeline]', self._unwrap_collection(response)) diff --git a/vsts/vsts/task_agent/v4_0/task_agent_client.py b/vsts/vsts/task_agent/v4_0/task_agent_client.py index 530d461c..a9289e35 100644 --- a/vsts/vsts/task_agent/v4_0/task_agent_client.py +++ b/vsts/vsts/task_agent/v4_0/task_agent_client.py @@ -116,9 +116,8 @@ def get_agents(self, pool_id, agent_name=None, include_capabilities=None, includ location_id='e298ef32-5878-4cab-993c-043836571f42', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgent]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgent]', self._unwrap_collection(response)) def replace_agent(self, agent, pool_id, agent_id): """ReplaceAgent. @@ -281,9 +280,8 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[DeploymentGroup]', self._unwrap_collection(response)) def update_deployment_group(self, deployment_group, project, deployment_group_id): """UpdateDeploymentGroup. @@ -329,9 +327,8 @@ def get_deployment_groups_metrics(self, project, deployment_group_name=None, con location_id='281c6308-427a-49e1-b83a-dac0f4862189', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentGroupMetrics]', response) + query_parameters=query_parameters) + return self._deserialize('[DeploymentGroupMetrics]', self._unwrap_collection(response)) def get_agent_requests_for_deployment_machine(self, project, deployment_group_id, machine_id, completed_request_count=None): """GetAgentRequestsForDeploymentMachine. @@ -356,9 +353,8 @@ def get_agent_requests_for_deployment_machine(self, project, deployment_group_id location_id='a3540e5b-f0dc-4668-963b-b752459be545', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) def get_agent_requests_for_deployment_machines(self, project, deployment_group_id, machine_ids=None, completed_request_count=None): """GetAgentRequestsForDeploymentMachines. @@ -384,9 +380,8 @@ def get_agent_requests_for_deployment_machines(self, project, deployment_group_i location_id='a3540e5b-f0dc-4668-963b-b752459be545', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) def refresh_deployment_machines(self, project, deployment_group_id): """RefreshDeploymentMachines. @@ -414,9 +409,8 @@ def query_endpoint(self, endpoint): response = self._send(http_method='POST', location_id='f223b809-8c33-4b7d-b53f-07232569b5d6', version='4.0', - content=content, - returns_collection=True) - return self._deserialize('[str]', response) + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): """GetServiceEndpointExecutionRecords. @@ -438,9 +432,8 @@ def get_service_endpoint_execution_records(self, project, endpoint_id, top=None) location_id='3ad71e20-7586-45f9-a6c8-0342e00835ac', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpointExecutionRecord]', response) + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpointExecutionRecord]', self._unwrap_collection(response)) def add_service_endpoint_execution_records(self, input, project): """AddServiceEndpointExecutionRecords. @@ -457,9 +450,8 @@ def add_service_endpoint_execution_records(self, input, project): location_id='11a45c69-2cce-4ade-a361-c9f5a37239ee', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[ServiceEndpointExecutionRecord]', response) + content=content) + return self._deserialize('[ServiceEndpointExecutionRecord]', self._unwrap_collection(response)) def get_task_hub_license_details(self, hub_name, include_enterprise_users_count=None, include_hosted_agent_minutes_count=None): """GetTaskHubLicenseDetails. @@ -574,9 +566,8 @@ def get_agent_requests_for_agent(self, pool_id, agent_id, completed_request_coun location_id='fc825784-c92a-4299-9221-998a02d1b54f', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) def get_agent_requests_for_agents(self, pool_id, agent_ids=None, completed_request_count=None): """GetAgentRequestsForAgents. @@ -598,9 +589,8 @@ def get_agent_requests_for_agents(self, pool_id, agent_ids=None, completed_reque location_id='fc825784-c92a-4299-9221-998a02d1b54f', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) def get_agent_requests_for_plan(self, pool_id, plan_id, job_id=None): """GetAgentRequestsForPlan. @@ -621,9 +611,8 @@ def get_agent_requests_for_plan(self, pool_id, plan_id, job_id=None): location_id='fc825784-c92a-4299-9221-998a02d1b54f', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentJobRequest]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) def queue_agent_request(self, request, pool_id): """QueueAgentRequest. @@ -762,9 +751,8 @@ def get_deployment_machine_groups(self, project, machine_group_name=None, action location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentMachineGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[DeploymentMachineGroup]', self._unwrap_collection(response)) def update_deployment_machine_group(self, machine_group, project, machine_group_id): """UpdateDeploymentMachineGroup. @@ -808,9 +796,8 @@ def get_deployment_machine_group_machines(self, project, machine_group_id, tag_f location_id='966c3874-c347-4b18-a90c-d509116717fd', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) + query_parameters=query_parameters) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) def update_deployment_machine_group_machines(self, deployment_machines, project, machine_group_id): """UpdateDeploymentMachineGroupMachines. @@ -830,9 +817,8 @@ def update_deployment_machine_group_machines(self, deployment_machines, project, location_id='966c3874-c347-4b18-a90c-d509116717fd', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) + content=content) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) def add_deployment_machine(self, machine, project, deployment_group_id): """AddDeploymentMachine. @@ -927,9 +913,8 @@ def get_deployment_machines(self, project, deployment_group_id, tags=None, name= location_id='6f6d406f-cfe6-409c-9327-7009928077e7', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) + query_parameters=query_parameters) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) def replace_deployment_machine(self, machine, project, deployment_group_id, machine_id): """ReplaceDeploymentMachine. @@ -997,9 +982,8 @@ def update_deployment_machines(self, machines, project, deployment_group_id): location_id='6f6d406f-cfe6-409c-9327-7009928077e7', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) + content=content) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) def create_agent_pool_maintenance_definition(self, definition, pool_id): """CreateAgentPoolMaintenanceDefinition. @@ -1065,9 +1049,8 @@ def get_agent_pool_maintenance_definitions(self, pool_id): response = self._send(http_method='GET', location_id='80572e16-58f0-4419-ac07-d19fde32195c', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskAgentPoolMaintenanceDefinition]', response) + route_values=route_values) + return self._deserialize('[TaskAgentPoolMaintenanceDefinition]', self._unwrap_collection(response)) def update_agent_pool_maintenance_definition(self, definition, pool_id, definition_id): """UpdateAgentPoolMaintenanceDefinition. @@ -1159,9 +1142,8 @@ def get_agent_pool_maintenance_jobs(self, pool_id, definition_id=None): location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentPoolMaintenanceJob]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentPoolMaintenanceJob]', self._unwrap_collection(response)) def queue_agent_pool_maintenance_job(self, job, pool_id): """QueueAgentPoolMaintenanceJob. @@ -1332,9 +1314,8 @@ def get_packages(self, package_type=None, platform=None, top=None): location_id='8ffcd551-079c-493a-9c02-54346299d144', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[PackageMetadata]', response) + query_parameters=query_parameters) + return self._deserialize('[PackageMetadata]', self._unwrap_collection(response)) def get_agent_pool_roles(self, pool_id=None): """GetAgentPoolRoles. @@ -1348,9 +1329,8 @@ def get_agent_pool_roles(self, pool_id=None): response = self._send(http_method='GET', location_id='381dd2bb-35cf-4103-ae8c-3c815b25763c', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRef]', response) + route_values=route_values) + return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) def add_agent_pool(self, pool): """AddAgentPool. @@ -1420,9 +1400,8 @@ def get_agent_pools(self, pool_name=None, properties=None, pool_type=None, actio response = self._send(http_method='GET', location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentPool]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentPool]', self._unwrap_collection(response)) def update_agent_pool(self, pool, pool_id): """UpdateAgentPool. @@ -1453,9 +1432,8 @@ def get_agent_queue_roles(self, queue_id=None): response = self._send(http_method='GET', location_id='b0c6d64d-c9fa-4946-b8de-77de623ee585', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[IdentityRef]', response) + route_values=route_values) + return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) def add_agent_queue(self, queue, project=None): """AddAgentQueue. @@ -1547,9 +1525,8 @@ def get_agent_queues(self, project=None, queue_name=None, action_filter=None): location_id='900fa995-c559-4923-aae7-f8424fe4fbea', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskAgentQueue]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskAgentQueue]', self._unwrap_collection(response)) def get_task_group_history(self, project, task_group_id): """GetTaskGroupHistory. @@ -1566,9 +1543,8 @@ def get_task_group_history(self, project, task_group_id): response = self._send(http_method='GET', location_id='100cc92a-b255-47fa-9ab3-e44a2985a3ac', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TaskGroupRevision]', response) + route_values=route_values) + return self._deserialize('[TaskGroupRevision]', self._unwrap_collection(response)) def delete_secure_file(self, project, secure_file_id): """DeleteSecureFile. @@ -1658,9 +1634,8 @@ def get_secure_files(self, project, name_pattern=None, include_download_tickets= location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SecureFile]', response) + query_parameters=query_parameters) + return self._deserialize('[SecureFile]', self._unwrap_collection(response)) def get_secure_files_by_ids(self, project, secure_file_ids, include_download_tickets=None): """GetSecureFilesByIds. @@ -1683,9 +1658,8 @@ def get_secure_files_by_ids(self, project, secure_file_ids, include_download_tic location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[SecureFile]', response) + query_parameters=query_parameters) + return self._deserialize('[SecureFile]', self._unwrap_collection(response)) def query_secure_files_by_properties(self, condition, project, name_pattern=None): """QuerySecureFilesByProperties. @@ -1707,9 +1681,8 @@ def query_secure_files_by_properties(self, condition, project, name_pattern=None version='4.0-preview.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[SecureFile]', response) + content=content) + return self._deserialize('[SecureFile]', self._unwrap_collection(response)) def update_secure_file(self, secure_file, project, secure_file_id): """UpdateSecureFile. @@ -1747,9 +1720,8 @@ def update_secure_files(self, secure_files, project): location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[SecureFile]', response) + content=content) + return self._deserialize('[SecureFile]', self._unwrap_collection(response)) def upload_secure_file(self, upload_stream, project, name): """UploadSecureFile. @@ -1878,9 +1850,8 @@ def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', version='4.0-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): """UpdateServiceEndpoint. @@ -1923,9 +1894,8 @@ def update_service_endpoints(self, endpoints, project): location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', version='4.0-preview.2', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[ServiceEndpoint]', response) + content=content) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) def get_service_endpoint_types(self, type=None, scheme=None): """GetServiceEndpointTypes. @@ -1942,9 +1912,8 @@ def get_service_endpoint_types(self, type=None, scheme=None): response = self._send(http_method='GET', location_id='7c74af83-8605-45c1-a30b-7a05d5d7f8c1', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ServiceEndpointType]', response) + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpointType]', self._unwrap_collection(response)) def create_agent_session(self, session, pool_id): """CreateAgentSession. @@ -2092,9 +2061,8 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) def publish_preview_task_group(self, task_group, project, task_group_id, disable_prior_versions=None): """PublishPreviewTaskGroup. @@ -2119,9 +2087,8 @@ def publish_preview_task_group(self, task_group, project, task_group_id, disable version='4.0-preview.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[TaskGroup]', response) + content=content) + return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) def publish_task_group(self, task_group_metadata, project, parent_task_group_id): """PublishTaskGroup. @@ -2143,9 +2110,8 @@ def publish_task_group(self, task_group_metadata, project, parent_task_group_id) version='4.0-preview.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[TaskGroup]', response) + content=content) + return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) def undelete_task_group(self, task_group, project): """UndeleteTaskGroup. @@ -2162,9 +2128,8 @@ def undelete_task_group(self, task_group, project): location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TaskGroup]', response) + content=content) + return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) def update_task_group(self, task_group, project): """UpdateTaskGroup. @@ -2265,9 +2230,8 @@ def get_task_definitions(self, task_id=None, visibility=None, scope_local=None): location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskDefinition]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskDefinition]', self._unwrap_collection(response)) def update_agent_update_state(self, pool_id, agent_id, current_state): """UpdateAgentUpdateState. @@ -2384,9 +2348,8 @@ def get_variable_groups(self, project, group_name=None, action_filter=None): location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[VariableGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) def get_variable_groups_by_id(self, project, group_ids): """GetVariableGroupsById. @@ -2406,9 +2369,8 @@ def get_variable_groups_by_id(self, project, group_ids): location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[VariableGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. diff --git a/vsts/vsts/task_agent/v4_1/task_agent_client.py b/vsts/vsts/task_agent/v4_1/task_agent_client.py index f58d1bbf..9b402b64 100644 --- a/vsts/vsts/task_agent/v4_1/task_agent_client.py +++ b/vsts/vsts/task_agent/v4_1/task_agent_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -118,9 +118,8 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[DeploymentGroup]', self._unwrap_collection(response)) def update_deployment_group(self, deployment_group, project, deployment_group_id): """UpdateDeploymentGroup. @@ -230,9 +229,8 @@ def get_deployment_targets(self, project, deployment_group_id, tags=None, name=N location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) + query_parameters=query_parameters) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) def update_deployment_targets(self, machines, project, deployment_group_id): """UpdateDeploymentTargets. @@ -252,9 +250,8 @@ def update_deployment_targets(self, machines, project, deployment_group_id): location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[DeploymentMachine]', response) + content=content) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) def add_task_group(self, task_group, project): """AddTaskGroup. @@ -330,9 +327,8 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TaskGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) def update_task_group(self, task_group, project, task_group_id=None): """UpdateTaskGroup. @@ -436,9 +432,8 @@ def get_variable_groups(self, project, group_name=None, action_filter=None, top= location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[VariableGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) def get_variable_groups_by_id(self, project, group_ids): """GetVariableGroupsById. @@ -458,9 +453,8 @@ def get_variable_groups_by_id(self, project, group_ids): location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[VariableGroup]', response) + query_parameters=query_parameters) + return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index 842ba8b6..641cb417 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -48,9 +48,8 @@ def get_action_results(self, project, run_id, test_case_result_id, iteration_id, response = self._send(http_method='GET', location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestActionResultModel]', response) + route_values=route_values) + return self._deserialize('[TestActionResultModel]', self._unwrap_collection(response)) def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): """CreateTestIterationResultAttachment. @@ -150,9 +149,8 @@ def get_test_result_attachments(self, project, run_id, test_case_result_id): response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestAttachment]', response) + route_values=route_values) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id): """GetTestResultAttachmentZip. @@ -235,9 +233,8 @@ def get_test_run_attachments(self, project, run_id): response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestAttachment]', response) + route_values=route_values) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) def get_test_run_attachment_zip(self, project, run_id, attachment_id): """GetTestRunAttachmentZip. @@ -278,9 +275,8 @@ def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): response = self._send(http_method='GET', location_id='6de20ca2-67de-4faf-97fa-38c5d585eb00', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemReference]', response) + route_values=route_values) + return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) def get_clone_information(self, project, clone_operation_id, include_details=None): """GetCloneInformation. @@ -370,9 +366,8 @@ def get_build_code_coverage(self, project, build_id, flags): location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildCoverage]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildCoverage]', self._unwrap_collection(response)) def get_code_coverage_summary(self, project, build_id, delta_build_id=None): """GetCodeCoverageSummary. @@ -438,9 +433,8 @@ def get_test_run_code_coverage(self, project, run_id, flags): location_id='9629116f-3b89-4ed8-b358-d4694efda160', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestRunCoverage]', response) + query_parameters=query_parameters) + return self._deserialize('[TestRunCoverage]', self._unwrap_collection(response)) def create_test_configuration(self, test_configuration, project): """CreateTestConfiguration. @@ -520,9 +514,8 @@ def get_test_configurations(self, project, skip=None, top=None, continuation_tok location_id='d667591b-b9fd-4263-997a-9a084cca848f', version='4.0-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestConfiguration]', response) + query_parameters=query_parameters) + return self._deserialize('[TestConfiguration]', self._unwrap_collection(response)) def update_test_configuration(self, test_configuration, project, test_configuration_id): """UpdateTestConfiguration. @@ -560,9 +553,8 @@ def add_custom_fields(self, new_fields, project): location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[CustomTestFieldDefinition]', response) + content=content) + return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) def query_custom_fields(self, project, scope_filter): """QueryCustomFields. @@ -581,9 +573,8 @@ def query_custom_fields(self, project, scope_filter): location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[CustomTestFieldDefinition]', response) + query_parameters=query_parameters) + return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) def query_test_result_history(self, filter, project): """QueryTestResultHistory. @@ -653,9 +644,8 @@ def get_test_iterations(self, project, run_id, test_case_result_id, include_acti location_id='73eb9074-3446-4c44-8296-2f811950ff8d', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestIterationDetailsModel]', response) + query_parameters=query_parameters) + return self._deserialize('[TestIterationDetailsModel]', self._unwrap_collection(response)) def get_linked_work_items_by_query(self, work_item_query, project): """GetLinkedWorkItemsByQuery. @@ -672,9 +662,8 @@ def get_linked_work_items_by_query(self, work_item_query, project): location_id='a4dcb25b-9878-49ea-abfd-e440bd9b1dcd', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[LinkedWorkItemsQueryResult]', response) + content=content) + return self._deserialize('[LinkedWorkItemsQueryResult]', self._unwrap_collection(response)) def get_test_run_logs(self, project, run_id): """GetTestRunLogs. @@ -691,9 +680,8 @@ def get_test_run_logs(self, project, run_id): response = self._send(http_method='GET', location_id='a1e55200-637e-42e9-a7c0-7e5bfdedb1b3', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestMessageLogDetails]', response) + route_values=route_values) + return self._deserialize('[TestMessageLogDetails]', self._unwrap_collection(response)) def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): """GetResultParameters. @@ -720,9 +708,8 @@ def get_result_parameters(self, project, run_id, test_case_result_id, iteration_ location_id='7c69810d-3354-4af3-844a-180bd25db08a', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestResultParameterModel]', response) + query_parameters=query_parameters) + return self._deserialize('[TestResultParameterModel]', self._unwrap_collection(response)) def create_test_plan(self, test_plan, project): """CreateTestPlan. @@ -801,9 +788,8 @@ def get_plans(self, project, owner=None, skip=None, top=None, include_plan_detai location_id='51712106-7278-4208-8563-1c96f40cf5e4', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestPlan]', response) + query_parameters=query_parameters) + return self._deserialize('[TestPlan]', self._unwrap_collection(response)) def update_test_plan(self, plan_update_model, project, plan_id): """UpdateTestPlan. @@ -893,9 +879,8 @@ def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_ location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestPoint]', response) + query_parameters=query_parameters) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): """UpdateTestPoints. @@ -920,9 +905,8 @@ def update_test_points(self, point_update_model, project, plan_id, suite_id, poi location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestPoint]', response) + content=content) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) def get_points_by_query(self, query, project, skip=None, top=None): """GetPointsByQuery. @@ -1088,9 +1072,8 @@ def add_test_results_to_test_run(self, results, project, run_id): location_id='4637d869-3a76-4468-8057-0bb02aa385cf', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestCaseResult]', response) + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): """GetTestResultById. @@ -1142,9 +1125,8 @@ def get_test_results(self, project, run_id, details_to_include=None, skip=None, location_id='4637d869-3a76-4468-8057-0bb02aa385cf', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestCaseResult]', response) + query_parameters=query_parameters) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def update_test_results(self, results, project, run_id): """UpdateTestResults. @@ -1163,9 +1145,8 @@ def update_test_results(self, results, project, run_id): location_id='4637d869-3a76-4468-8057-0bb02aa385cf', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestCaseResult]', response) + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def get_test_results_by_query(self, query, project): """GetTestResultsByQuery. @@ -1287,9 +1268,8 @@ def query_test_results_summary_for_releases(self, releases, project): location_id='85765790-ac68-494e-b268-af36c3929744', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestResultSummary]', response) + content=content) + return self._deserialize('[TestResultSummary]', self._unwrap_collection(response)) def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): """QueryTestSummaryByRequirement. @@ -1312,9 +1292,8 @@ def query_test_summary_by_requirement(self, results_context, project, work_item_ version='4.0-preview.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[TestSummaryForWorkItem]', response) + content=content) + return self._deserialize('[TestSummaryForWorkItem]', self._unwrap_collection(response)) def query_result_trend_for_build(self, filter, project): """QueryResultTrendForBuild. @@ -1331,9 +1310,8 @@ def query_result_trend_for_build(self, filter, project): location_id='fbc82a85-0786-4442-88bb-eb0fda6b01b0', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AggregatedDataForResultTrend]', response) + content=content) + return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) def query_result_trend_for_release(self, filter, project): """QueryResultTrendForRelease. @@ -1350,9 +1328,8 @@ def query_result_trend_for_release(self, filter, project): location_id='dd178e93-d8dd-4887-9635-d6b9560b7b6e', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AggregatedDataForResultTrend]', response) + content=content) + return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) def get_test_run_statistics(self, project, run_id): """GetTestRunStatistics. @@ -1457,9 +1434,8 @@ def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, pl location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestRun]', response) + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) def query_test_runs(self, project, state, min_completed_date=None, max_completed_date=None, plan_id=None, is_automated=None, publish_context=None, build_id=None, build_def_id=None, branch_name=None, release_id=None, release_def_id=None, release_env_id=None, release_env_def_id=None, run_title=None, skip=None, top=None): """QueryTestRuns. @@ -1522,9 +1498,8 @@ def query_test_runs(self, project, state, min_completed_date=None, max_completed location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestRun]', response) + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) def update_test_run(self, run_update_model, project, run_id): """UpdateTestRun. @@ -1621,9 +1596,8 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestSession]', response) + query_parameters=query_parameters) + return self._deserialize('[TestSession]', self._unwrap_collection(response)) def update_test_session(self, test_session, team_context): """UpdateTestSession. @@ -1704,9 +1678,8 @@ def get_suite_entries(self, project, suite_id): response = self._send(http_method='GET', location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SuiteEntry]', response) + route_values=route_values) + return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) def reorder_suite_entries(self, suite_entries, project, suite_id): """ReorderSuiteEntries. @@ -1726,9 +1699,8 @@ def reorder_suite_entries(self, suite_entries, project, suite_id): location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', version='4.0-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[SuiteEntry]', response) + content=content) + return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): """AddTestCasesToSuite. @@ -1751,9 +1723,8 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SuiteTestCase]', response) + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): """GetTestCaseById. @@ -1797,9 +1768,8 @@ def get_test_cases(self, project, plan_id, suite_id): response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SuiteTestCase]', response) + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): """RemoveTestCasesFromSuiteUrl. @@ -1843,9 +1813,8 @@ def create_test_suite(self, test_suite, project, plan_id, suite_id): location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestSuite]', response) + content=content) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def delete_test_suite(self, project, plan_id, suite_id): """DeleteTestSuite. @@ -1918,9 +1887,8 @@ def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=N location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestSuite]', response) + query_parameters=query_parameters) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def update_test_suite(self, suite_update_model, project, plan_id, suite_id): """UpdateTestSuite. @@ -1956,9 +1924,8 @@ def get_suites_by_test_case_id(self, test_case_id): response = self._send(http_method='GET', location_id='09a6167b-e969-4775-9247-b94cf3819caf', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestSuite]', response) + query_parameters=query_parameters) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def delete_test_case(self, project, test_case_id): """DeleteTestCase. @@ -2097,9 +2064,8 @@ def get_test_variables(self, project, skip=None, top=None): location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestVariable]', response) + query_parameters=query_parameters) + return self._deserialize('[TestVariable]', self._unwrap_collection(response)) def update_test_variable(self, test_variable, project, test_variable_id): """UpdateTestVariable. @@ -2215,7 +2181,6 @@ def query_test_result_work_items(self, project, work_item_category, automated_te location_id='926ff5dc-137f-45f0-bd51-9412fa9810ce', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemReference]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index 098c82ff..ac5ae58b 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -48,9 +48,8 @@ def get_action_results(self, project, run_id, test_case_result_id, iteration_id, response = self._send(http_method='GET', location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestActionResultModel]', response) + route_values=route_values) + return self._deserialize('[TestActionResultModel]', self._unwrap_collection(response)) def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): """CreateTestIterationResultAttachment. @@ -150,9 +149,8 @@ def get_test_result_attachments(self, project, run_id, test_case_result_id): response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestAttachment]', response) + route_values=route_values) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id): """GetTestResultAttachmentZip. @@ -235,9 +233,8 @@ def get_test_run_attachments(self, project, run_id): response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestAttachment]', response) + route_values=route_values) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) def get_test_run_attachment_zip(self, project, run_id, attachment_id): """GetTestRunAttachmentZip. @@ -278,9 +275,8 @@ def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): response = self._send(http_method='GET', location_id='6de20ca2-67de-4faf-97fa-38c5d585eb00', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemReference]', response) + route_values=route_values) + return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) def get_clone_information(self, project, clone_operation_id, include_details=None): """GetCloneInformation. @@ -370,9 +366,8 @@ def get_build_code_coverage(self, project, build_id, flags): location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[BuildCoverage]', response) + query_parameters=query_parameters) + return self._deserialize('[BuildCoverage]', self._unwrap_collection(response)) def get_code_coverage_summary(self, project, build_id, delta_build_id=None): """GetCodeCoverageSummary. @@ -438,9 +433,8 @@ def get_test_run_code_coverage(self, project, run_id, flags): location_id='9629116f-3b89-4ed8-b358-d4694efda160', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestRunCoverage]', response) + query_parameters=query_parameters) + return self._deserialize('[TestRunCoverage]', self._unwrap_collection(response)) def create_test_configuration(self, test_configuration, project): """CreateTestConfiguration. @@ -520,9 +514,8 @@ def get_test_configurations(self, project, skip=None, top=None, continuation_tok location_id='d667591b-b9fd-4263-997a-9a084cca848f', version='4.1-preview.2', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestConfiguration]', response) + query_parameters=query_parameters) + return self._deserialize('[TestConfiguration]', self._unwrap_collection(response)) def update_test_configuration(self, test_configuration, project, test_configuration_id): """UpdateTestConfiguration. @@ -560,9 +553,8 @@ def add_custom_fields(self, new_fields, project): location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[CustomTestFieldDefinition]', response) + content=content) + return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) def query_custom_fields(self, project, scope_filter): """QueryCustomFields. @@ -581,9 +573,8 @@ def query_custom_fields(self, project, scope_filter): location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[CustomTestFieldDefinition]', response) + query_parameters=query_parameters) + return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) def query_test_result_history(self, filter, project): """QueryTestResultHistory. @@ -653,9 +644,8 @@ def get_test_iterations(self, project, run_id, test_case_result_id, include_acti location_id='73eb9074-3446-4c44-8296-2f811950ff8d', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestIterationDetailsModel]', response) + query_parameters=query_parameters) + return self._deserialize('[TestIterationDetailsModel]', self._unwrap_collection(response)) def get_linked_work_items_by_query(self, work_item_query, project): """GetLinkedWorkItemsByQuery. @@ -672,9 +662,8 @@ def get_linked_work_items_by_query(self, work_item_query, project): location_id='a4dcb25b-9878-49ea-abfd-e440bd9b1dcd', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[LinkedWorkItemsQueryResult]', response) + content=content) + return self._deserialize('[LinkedWorkItemsQueryResult]', self._unwrap_collection(response)) def get_test_run_logs(self, project, run_id): """GetTestRunLogs. @@ -691,9 +680,8 @@ def get_test_run_logs(self, project, run_id): response = self._send(http_method='GET', location_id='a1e55200-637e-42e9-a7c0-7e5bfdedb1b3', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TestMessageLogDetails]', response) + route_values=route_values) + return self._deserialize('[TestMessageLogDetails]', self._unwrap_collection(response)) def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): """GetResultParameters. @@ -720,9 +708,8 @@ def get_result_parameters(self, project, run_id, test_case_result_id, iteration_ location_id='7c69810d-3354-4af3-844a-180bd25db08a', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestResultParameterModel]', response) + query_parameters=query_parameters) + return self._deserialize('[TestResultParameterModel]', self._unwrap_collection(response)) def create_test_plan(self, test_plan, project): """CreateTestPlan. @@ -801,9 +788,8 @@ def get_plans(self, project, owner=None, skip=None, top=None, include_plan_detai location_id='51712106-7278-4208-8563-1c96f40cf5e4', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestPlan]', response) + query_parameters=query_parameters) + return self._deserialize('[TestPlan]', self._unwrap_collection(response)) def update_test_plan(self, plan_update_model, project, plan_id): """UpdateTestPlan. @@ -893,9 +879,8 @@ def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_ location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestPoint]', response) + query_parameters=query_parameters) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): """UpdateTestPoints. @@ -920,9 +905,8 @@ def update_test_points(self, point_update_model, project, plan_id, suite_id, poi location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestPoint]', response) + content=content) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) def get_points_by_query(self, query, project, skip=None, top=None): """GetPointsByQuery. @@ -1157,9 +1141,8 @@ def add_test_results_to_test_run(self, results, project, run_id): location_id='4637d869-3a76-4468-8057-0bb02aa385cf', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestCaseResult]', response) + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): """GetTestResultById. @@ -1216,9 +1199,8 @@ def get_test_results(self, project, run_id, details_to_include=None, skip=None, location_id='4637d869-3a76-4468-8057-0bb02aa385cf', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestCaseResult]', response) + query_parameters=query_parameters) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def update_test_results(self, results, project, run_id): """UpdateTestResults. @@ -1237,9 +1219,8 @@ def update_test_results(self, results, project, run_id): location_id='4637d869-3a76-4468-8057-0bb02aa385cf', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestCaseResult]', response) + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def get_test_results_by_query(self, query, project): """GetTestResultsByQuery. @@ -1361,9 +1342,8 @@ def query_test_results_summary_for_releases(self, releases, project): location_id='85765790-ac68-494e-b268-af36c3929744', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestResultSummary]', response) + content=content) + return self._deserialize('[TestResultSummary]', self._unwrap_collection(response)) def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): """QueryTestSummaryByRequirement. @@ -1386,9 +1366,8 @@ def query_test_summary_by_requirement(self, results_context, project, work_item_ version='4.1-preview.1', route_values=route_values, query_parameters=query_parameters, - content=content, - returns_collection=True) - return self._deserialize('[TestSummaryForWorkItem]', response) + content=content) + return self._deserialize('[TestSummaryForWorkItem]', self._unwrap_collection(response)) def query_result_trend_for_build(self, filter, project): """QueryResultTrendForBuild. @@ -1405,9 +1384,8 @@ def query_result_trend_for_build(self, filter, project): location_id='fbc82a85-0786-4442-88bb-eb0fda6b01b0', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AggregatedDataForResultTrend]', response) + content=content) + return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) def query_result_trend_for_release(self, filter, project): """QueryResultTrendForRelease. @@ -1424,9 +1402,8 @@ def query_result_trend_for_release(self, filter, project): location_id='dd178e93-d8dd-4887-9635-d6b9560b7b6e', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[AggregatedDataForResultTrend]', response) + content=content) + return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) def get_test_run_statistics(self, project, run_id): """GetTestRunStatistics. @@ -1531,9 +1508,8 @@ def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, pl location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestRun]', response) + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, state=None, plan_ids=None, is_automated=None, publish_context=None, build_ids=None, build_def_ids=None, branch_name=None, release_ids=None, release_def_ids=None, release_env_ids=None, release_env_def_ids=None, run_title=None, top=None, continuation_token=None): """QueryTestRuns. @@ -1604,9 +1580,8 @@ def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestRun]', response) + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) def update_test_run(self, run_update_model, project, run_id): """UpdateTestRun. @@ -1703,9 +1678,8 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestSession]', response) + query_parameters=query_parameters) + return self._deserialize('[TestSession]', self._unwrap_collection(response)) def update_test_session(self, test_session, team_context): """UpdateTestSession. @@ -1786,9 +1760,8 @@ def get_suite_entries(self, project, suite_id): response = self._send(http_method='GET', location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SuiteEntry]', response) + route_values=route_values) + return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) def reorder_suite_entries(self, suite_entries, project, suite_id): """ReorderSuiteEntries. @@ -1808,9 +1781,8 @@ def reorder_suite_entries(self, suite_entries, project, suite_id): location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', version='4.1-preview.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[SuiteEntry]', response) + content=content) + return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): """AddTestCasesToSuite. @@ -1833,9 +1805,8 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SuiteTestCase]', response) + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): """GetTestCaseById. @@ -1879,9 +1850,8 @@ def get_test_cases(self, project, plan_id, suite_id): response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[SuiteTestCase]', response) + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): """RemoveTestCasesFromSuiteUrl. @@ -1925,9 +1895,8 @@ def create_test_suite(self, test_suite, project, plan_id, suite_id): location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TestSuite]', response) + content=content) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def delete_test_suite(self, project, plan_id, suite_id): """DeleteTestSuite. @@ -2000,9 +1969,8 @@ def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestSuite]', response) + query_parameters=query_parameters) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def update_test_suite(self, suite_update_model, project, plan_id, suite_id): """UpdateTestSuite. @@ -2038,9 +2006,8 @@ def get_suites_by_test_case_id(self, test_case_id): response = self._send(http_method='GET', location_id='09a6167b-e969-4775-9247-b94cf3819caf', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestSuite]', response) + query_parameters=query_parameters) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def delete_test_case(self, project, test_case_id): """DeleteTestCase. @@ -2179,9 +2146,8 @@ def get_test_variables(self, project, skip=None, top=None): location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TestVariable]', response) + query_parameters=query_parameters) + return self._deserialize('[TestVariable]', self._unwrap_collection(response)) def update_test_variable(self, test_variable, project, test_variable_id): """UpdateTestVariable. @@ -2297,7 +2263,6 @@ def query_test_result_work_items(self, project, work_item_category, automated_te location_id='926ff5dc-137f-45f0-bd51-9412fa9810ce', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemReference]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) diff --git a/vsts/vsts/tfvc/v4_0/tfvc_client.py b/vsts/vsts/tfvc/v4_0/tfvc_client.py index 19912bab..4eb5b215 100644 --- a/vsts/vsts/tfvc/v4_0/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_0/tfvc_client.py @@ -77,9 +77,8 @@ def get_branches(self, project=None, include_parent=None, include_children=None, location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcBranch]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcBranch]', self._unwrap_collection(response)) def get_branch_refs(self, scope_path, project=None, include_deleted=None, include_links=None): """GetBranchRefs. @@ -104,9 +103,8 @@ def get_branch_refs(self, scope_path, project=None, include_deleted=None, includ location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcBranchRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcBranchRef]', self._unwrap_collection(response)) def get_changeset_changes(self, id=None, skip=None, top=None): """GetChangesetChanges. @@ -128,9 +126,8 @@ def get_changeset_changes(self, id=None, skip=None, top=None): location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcChange]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) def create_changeset(self, changeset, project=None): """CreateChangeset. @@ -256,9 +253,8 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcChangesetRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) def get_batched_changesets(self, changesets_request_data): """GetBatchedChangesets. @@ -269,9 +265,8 @@ def get_batched_changesets(self, changesets_request_data): response = self._send(http_method='POST', location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', version='4.0', - content=content, - returns_collection=True) - return self._deserialize('[TfvcChangesetRef]', response) + content=content) + return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) def get_changeset_work_items(self, id=None): """GetChangesetWorkItems. @@ -284,9 +279,8 @@ def get_changeset_work_items(self, id=None): response = self._send(http_method='GET', location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[AssociatedWorkItem]', response) + route_values=route_values) + return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) def get_items_batch(self, item_request_data, project=None): """GetItemsBatch. @@ -303,9 +297,8 @@ def get_items_batch(self, item_request_data, project=None): location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[[TfvcItem]]', response) + content=content) + return self._deserialize('[[TfvcItem]]', self._unwrap_collection(response)) def get_items_batch_zip(self, item_request_data, project=None): """GetItemsBatchZip. @@ -436,9 +429,8 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcItem]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): """GetItemText. @@ -540,9 +532,8 @@ def get_label_items(self, label_id, top=None, skip=None): location_id='06166e34-de17-4b60-8cd1-23182a346fda', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcItem]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) def get_label(self, label_id, request_data, project=None): """GetLabel. @@ -612,9 +603,8 @@ def get_labels(self, request_data, project=None, top=None, skip=None): location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcLabelRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcLabelRef]', self._unwrap_collection(response)) def get_shelveset_changes(self, shelveset_id, top=None, skip=None): """GetShelvesetChanges. @@ -634,9 +624,8 @@ def get_shelveset_changes(self, shelveset_id, top=None, skip=None): response = self._send(http_method='GET', location_id='dbaf075b-0445-4c34-9e5b-82292f856522', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcChange]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) def get_shelveset(self, shelveset_id, request_data=None): """GetShelveset. @@ -700,9 +689,8 @@ def get_shelvesets(self, request_data=None, top=None, skip=None): response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcShelvesetRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcShelvesetRef]', self._unwrap_collection(response)) def get_shelveset_work_items(self, shelveset_id): """GetShelvesetWorkItems. @@ -716,7 +704,6 @@ def get_shelveset_work_items(self, shelveset_id): response = self._send(http_method='GET', location_id='a7a0c1c1-373e-425a-b031-a519474d743d', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[AssociatedWorkItem]', response) + query_parameters=query_parameters) + return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/vsts/vsts/tfvc/v4_1/tfvc_client.py index 6799fa65..cf5cd3ad 100644 --- a/vsts/vsts/tfvc/v4_1/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_1/tfvc_client.py @@ -77,9 +77,8 @@ def get_branches(self, project=None, include_parent=None, include_children=None, location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcBranch]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcBranch]', self._unwrap_collection(response)) def get_branch_refs(self, scope_path, project=None, include_deleted=None, include_links=None): """GetBranchRefs. @@ -104,9 +103,8 @@ def get_branch_refs(self, scope_path, project=None, include_deleted=None, includ location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcBranchRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcBranchRef]', self._unwrap_collection(response)) def get_changeset_changes(self, id=None, skip=None, top=None): """GetChangesetChanges. @@ -128,9 +126,8 @@ def get_changeset_changes(self, id=None, skip=None, top=None): location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcChange]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) def create_changeset(self, changeset, project=None): """CreateChangeset. @@ -256,9 +253,8 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcChangesetRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) def get_batched_changesets(self, changesets_request_data): """GetBatchedChangesets. @@ -270,9 +266,8 @@ def get_batched_changesets(self, changesets_request_data): response = self._send(http_method='POST', location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', version='4.1', - content=content, - returns_collection=True) - return self._deserialize('[TfvcChangesetRef]', response) + content=content) + return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) def get_changeset_work_items(self, id=None): """GetChangesetWorkItems. @@ -286,9 +281,8 @@ def get_changeset_work_items(self, id=None): response = self._send(http_method='GET', location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[AssociatedWorkItem]', response) + route_values=route_values) + return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) def get_items_batch(self, item_request_data, project=None): """GetItemsBatch. @@ -305,9 +299,8 @@ def get_items_batch(self, item_request_data, project=None): location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[[TfvcItem]]', response) + content=content) + return self._deserialize('[[TfvcItem]]', self._unwrap_collection(response)) def get_items_batch_zip(self, item_request_data, project=None): """GetItemsBatchZip. @@ -444,9 +437,8 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcItem]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItemText. @@ -554,9 +546,8 @@ def get_label_items(self, label_id, top=None, skip=None): location_id='06166e34-de17-4b60-8cd1-23182a346fda', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcItem]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) def get_label(self, label_id, request_data, project=None): """GetLabel. @@ -626,9 +617,8 @@ def get_labels(self, request_data, project=None, top=None, skip=None): location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcLabelRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcLabelRef]', self._unwrap_collection(response)) def get_shelveset_changes(self, shelveset_id, top=None, skip=None): """GetShelvesetChanges. @@ -648,9 +638,8 @@ def get_shelveset_changes(self, shelveset_id, top=None, skip=None): response = self._send(http_method='GET', location_id='dbaf075b-0445-4c34-9e5b-82292f856522', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcChange]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) def get_shelveset(self, shelveset_id, request_data=None): """GetShelveset. @@ -714,9 +703,8 @@ def get_shelvesets(self, request_data=None, top=None, skip=None): response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TfvcShelvesetRef]', response) + query_parameters=query_parameters) + return self._deserialize('[TfvcShelvesetRef]', self._unwrap_collection(response)) def get_shelveset_work_items(self, shelveset_id): """GetShelvesetWorkItems. @@ -730,7 +718,6 @@ def get_shelveset_work_items(self, shelveset_id): response = self._send(http_method='GET', location_id='a7a0c1c1-373e-425a-b031-a519474d743d', version='4.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[AssociatedWorkItem]', response) + query_parameters=query_parameters) + return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index 7fed78bd..b674c7a7 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -64,8 +64,7 @@ def _send_request(self, request, headers=None, content=None, **operation_config) return response def _send(self, http_method, location_id, version, route_values=None, - query_parameters=None, content=None, media_type='application/json', - returns_collection=False): + query_parameters=None, content=None, media_type='application/json'): request = self._create_request_message(http_method=http_method, location_id=location_id, route_values=route_values, @@ -96,15 +95,16 @@ def _send(self, http_method, location_id, version, route_values=None, response = self._send_request(request=request, headers=headers, content=content) if VssClient._session_header_key in response.headers: VssClient._session_data[VssClient._session_header_key] = response.headers[VssClient._session_header_key] - if returns_collection: - if response.headers.get("transfer-encoding") == 'chunked': - wrapper = self._base_deserialize.deserialize_data(response.json(), 'VssJsonCollectionWrapper') - else: - wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) - collection = wrapper.value - return collection + return response + + def _unwrap_collection(self, response): + if response.headers.get("transfer-encoding") == 'chunked': + wrapper = self._base_deserialize.deserialize_data(response.json(), 'VssJsonCollectionWrapper') else: - return response + wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) + collection = wrapper.value + return collection + def _create_request_message(self, http_method, location_id, route_values=None, query_parameters=None): diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/vsts/vsts/wiki/v4_0/wiki_client.py index 7980ee1b..97a54537 100644 --- a/vsts/vsts/wiki/v4_0/wiki_client.py +++ b/vsts/vsts/wiki/v4_0/wiki_client.py @@ -56,9 +56,8 @@ def get_pages(self, project, wiki_id, path=None, recursion_level=None, version_d location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WikiPage]', response) + query_parameters=query_parameters) + return self._deserialize('[WikiPage]', self._unwrap_collection(response)) def get_page_text(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): """GetPageText. @@ -189,7 +188,6 @@ def get_wikis(self, project=None): response = self._send(http_method='GET', location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WikiRepository]', response) + route_values=route_values) + return self._deserialize('[WikiRepository]', self._unwrap_collection(response)) diff --git a/vsts/vsts/wiki/v4_1/wiki_client.py b/vsts/vsts/wiki/v4_1/wiki_client.py index 141f403e..6071035f 100644 --- a/vsts/vsts/wiki/v4_1/wiki_client.py +++ b/vsts/vsts/wiki/v4_1/wiki_client.py @@ -25,6 +25,165 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' + def create_attachment(self, upload_stream, project, wiki_identifier, name): + """CreateAttachment. + Creates an attachment in the wiki. + :param object upload_stream: Stream to upload + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str name: Wiki attachment name. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', + version='4.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + response_object = models.WikiAttachmentResponse() + response_object.attachment = self._deserialize('WikiAttachment', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def create_page_move(self, page_move_parameters, project, wiki_identifier, comment=None): + """CreatePageMove. + Creates a page move operation that updates the path and order of the page as provided in the parameters. + :param :class:` ` page_move_parameters: Page more operation parameters. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str comment: Comment that is to be associated with this page move. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + content = self._serialize.body(page_move_parameters, 'WikiPageMoveParameters') + response = self._send(http_method='POST', + location_id='e37bbe71-cbae-49e5-9a4e-949143b9d910', + version='4.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + response_object = models.WikiPageMoveResponse() + response_object.page_move = self._deserialize('WikiPageMove', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def create_or_update_page(self, parameters, project, wiki_identifier, path, version, comment=None): + """CreateOrUpdatePage. + Creates or edits a wiki page. + :param :class:` ` parameters: Wiki create or update operation parameters. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param String version: Version of the page on which the change is to be made. Mandatory for `Edit` scenario. To be populated in the If-Match header of the request. + :param str comment: Comment to be associated with the page operation. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + content = self._serialize.body(parameters, 'WikiPageCreateOrUpdateParameters') + response = self._send(http_method='PUT', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def delete_page(self, project, wiki_identifier, path, comment=None): + """DeletePage. + Deletes a wiki page. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str comment: Comment to be associated with this page delete. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + response = self._send(http_method='DELETE', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_page(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): + """GetPage. + Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='4.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + def get_page_text(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetPageText. Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. @@ -147,9 +306,8 @@ def get_all_wikis(self, project=None): response = self._send(http_method='GET', location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WikiV2]', response) + route_values=route_values) + return self._deserialize('[WikiV2]', self._unwrap_collection(response)) def get_wiki(self, wiki_identifier, project=None): """GetWiki. diff --git a/vsts/vsts/work/v4_0/work_client.py b/vsts/vsts/work/v4_0/work_client.py index 24669c90..0a9bdb0e 100644 --- a/vsts/vsts/work/v4_0/work_client.py +++ b/vsts/vsts/work/v4_0/work_client.py @@ -65,9 +65,8 @@ def get_column_suggested_values(self, project=None): response = self._send(http_method='GET', location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardSuggestedValue]', response) + route_values=route_values) + return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): """GetBoardMappingParentItems. @@ -104,9 +103,8 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat location_id='186abea3-5c35-432f-9e28-7a15b4312a0e', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ParentChildWIMap]', response) + query_parameters=query_parameters) + return self._deserialize('[ParentChildWIMap]', self._unwrap_collection(response)) def get_row_suggested_values(self, project=None): """GetRowSuggestedValues. @@ -119,9 +117,8 @@ def get_row_suggested_values(self, project=None): response = self._send(http_method='GET', location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardSuggestedValue]', response) + route_values=route_values) + return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board(self, team_context, id): """GetBoard. @@ -181,9 +178,8 @@ def get_boards(self, team_context): response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardReference]', response) + route_values=route_values) + return self._deserialize('[BoardReference]', self._unwrap_collection(response)) def set_board_options(self, options, team_context, id): """SetBoardOptions. @@ -217,9 +213,8 @@ def set_board_options(self, options, team_context, id): location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('{str}', response) + content=content) + return self._deserialize('{str}', self._unwrap_collection(response)) def get_board_user_settings(self, team_context, board): """GetBoardUserSettings. @@ -316,9 +311,8 @@ def get_capacities(self, team_context, iteration_id): response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TeamMemberCapacity]', response) + route_values=route_values) + return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) def get_capacity(self, team_context, iteration_id, team_member_id): """GetCapacity. @@ -385,9 +379,8 @@ def replace_capacities(self, capacities, team_context, iteration_id): location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TeamMemberCapacity]', response) + content=content) + return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) def update_capacity(self, patch, team_context, iteration_id, team_member_id): """UpdateCapacity. @@ -624,9 +617,8 @@ def get_board_charts(self, team_context, board): response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardChartReference]', response) + route_values=route_values) + return self._deserialize('[BoardChartReference]', self._unwrap_collection(response)) def update_board_chart(self, chart, team_context, board, name): """UpdateBoardChart. @@ -694,9 +686,8 @@ def get_board_columns(self, team_context, board): response = self._send(http_method='GET', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardColumn]', response) + route_values=route_values) + return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) def update_board_columns(self, board_columns, team_context, board): """UpdateBoardColumns. @@ -729,9 +720,8 @@ def update_board_columns(self, board_columns, team_context, board): location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[BoardColumn]', response) + content=content) + return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) def get_delivery_timeline_data(self, project, id, revision=None, start_date=None, end_date=None): """GetDeliveryTimelineData. @@ -852,9 +842,8 @@ def get_team_iterations(self, team_context, timeframe=None): location_id='c9175577-28a1-4b06-9197-8636af9f64ad', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TeamSettingsIteration]', response) + query_parameters=query_parameters) + return self._deserialize('[TeamSettingsIteration]', self._unwrap_collection(response)) def post_team_iteration(self, iteration, team_context): """PostTeamIteration. @@ -951,9 +940,8 @@ def get_plans(self, project): response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Plan]', response) + route_values=route_values) + return self._deserialize('[Plan]', self._unwrap_collection(response)) def update_plan(self, updated_plan, project, id): """UpdatePlan. @@ -1019,9 +1007,8 @@ def get_board_rows(self, team_context, board): response = self._send(http_method='GET', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardRow]', response) + route_values=route_values) + return self._deserialize('[BoardRow]', self._unwrap_collection(response)) def update_board_rows(self, board_rows, team_context, board): """UpdateBoardRows. @@ -1054,9 +1041,8 @@ def update_board_rows(self, board_rows, team_context, board): location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', version='4.0', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[BoardRow]', response) + content=content) + return self._deserialize('[BoardRow]', self._unwrap_collection(response)) def get_team_days_off(self, team_context, iteration_id): """GetTeamDaysOff. diff --git a/vsts/vsts/work/v4_1/work_client.py b/vsts/vsts/work/v4_1/work_client.py index 39c93550..b15ac0f3 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/vsts/vsts/work/v4_1/work_client.py @@ -144,9 +144,8 @@ def get_backlogs(self, team_context): response = self._send(http_method='GET', location_id='a93726f9-7867-4e38-b4f2-0bfafc2f6a94', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BacklogLevelConfiguration]', response) + route_values=route_values) + return self._deserialize('[BacklogLevelConfiguration]', self._unwrap_collection(response)) def get_column_suggested_values(self, project=None): """GetColumnSuggestedValues. @@ -160,9 +159,8 @@ def get_column_suggested_values(self, project=None): response = self._send(http_method='GET', location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardSuggestedValue]', response) + route_values=route_values) + return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): """GetBoardMappingParentItems. @@ -199,9 +197,8 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat location_id='186abea3-5c35-432f-9e28-7a15b4312a0e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ParentChildWIMap]', response) + query_parameters=query_parameters) + return self._deserialize('[ParentChildWIMap]', self._unwrap_collection(response)) def get_row_suggested_values(self, project=None): """GetRowSuggestedValues. @@ -215,9 +212,8 @@ def get_row_suggested_values(self, project=None): response = self._send(http_method='GET', location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardSuggestedValue]', response) + route_values=route_values) + return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board(self, team_context, id): """GetBoard. @@ -277,9 +273,8 @@ def get_boards(self, team_context): response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardReference]', response) + route_values=route_values) + return self._deserialize('[BoardReference]', self._unwrap_collection(response)) def set_board_options(self, options, team_context, id): """SetBoardOptions. @@ -313,9 +308,8 @@ def set_board_options(self, options, team_context, id): location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('{str}', response) + content=content) + return self._deserialize('{str}', self._unwrap_collection(response)) def get_board_user_settings(self, team_context, board): """GetBoardUserSettings. @@ -413,9 +407,8 @@ def get_capacities(self, team_context, iteration_id): response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[TeamMemberCapacity]', response) + route_values=route_values) + return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) def get_capacity(self, team_context, iteration_id, team_member_id): """GetCapacity. @@ -484,9 +477,8 @@ def replace_capacities(self, capacities, team_context, iteration_id): location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[TeamMemberCapacity]', response) + content=content) + return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) def update_capacity(self, patch, team_context, iteration_id, team_member_id): """UpdateCapacity. @@ -724,9 +716,8 @@ def get_board_charts(self, team_context, board): response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardChartReference]', response) + route_values=route_values) + return self._deserialize('[BoardChartReference]', self._unwrap_collection(response)) def update_board_chart(self, chart, team_context, board, name): """UpdateBoardChart. @@ -795,9 +786,8 @@ def get_board_columns(self, team_context, board): response = self._send(http_method='GET', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardColumn]', response) + route_values=route_values) + return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) def update_board_columns(self, board_columns, team_context, board): """UpdateBoardColumns. @@ -831,9 +821,8 @@ def update_board_columns(self, board_columns, team_context, board): location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[BoardColumn]', response) + content=content) + return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) def get_delivery_timeline_data(self, project, id, revision=None, start_date=None, end_date=None): """GetDeliveryTimelineData. @@ -957,9 +946,8 @@ def get_team_iterations(self, team_context, timeframe=None): location_id='c9175577-28a1-4b06-9197-8636af9f64ad', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[TeamSettingsIteration]', response) + query_parameters=query_parameters) + return self._deserialize('[TeamSettingsIteration]', self._unwrap_collection(response)) def post_team_iteration(self, iteration, team_context): """PostTeamIteration. @@ -1057,9 +1045,8 @@ def get_plans(self, project): response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[Plan]', response) + route_values=route_values) + return self._deserialize('[Plan]', self._unwrap_collection(response)) def update_plan(self, updated_plan, project, id): """UpdatePlan. @@ -1126,9 +1113,8 @@ def get_board_rows(self, team_context, board): response = self._send(http_method='GET', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BoardRow]', response) + route_values=route_values) + return self._deserialize('[BoardRow]', self._unwrap_collection(response)) def update_board_rows(self, board_rows, team_context, board): """UpdateBoardRows. @@ -1162,9 +1148,8 @@ def update_board_rows(self, board_rows, team_context, board): location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', version='4.1', route_values=route_values, - content=content, - returns_collection=True) - return self._deserialize('[BoardRow]', response) + content=content) + return self._deserialize('[BoardRow]', self._unwrap_collection(response)) def get_team_days_off(self, team_context, iteration_id): """GetTeamDaysOff. diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index 36579c6e..ccc70891 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -32,9 +32,8 @@ def get_work_artifact_link_types(self): """ response = self._send(http_method='GET', location_id='1a31de40-e318-41cd-a6c6-881077df52e3', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[WorkArtifactLink]', response) + version='4.0-preview.1') + return self._deserialize('[WorkArtifactLink]', self._unwrap_collection(response)) def get_work_item_ids_for_artifact_uris(self, artifact_uri_query): """GetWorkItemIdsForArtifactUris. @@ -130,9 +129,8 @@ def get_root_nodes(self, project, depth=None): location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemClassificationNode]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. @@ -322,9 +320,8 @@ def get_fields(self, project=None, expand=None): location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemField]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemField]', self._unwrap_collection(response)) def update_field(self, work_item_field, field_name_or_ref_name, project=None): """UpdateField. @@ -403,9 +400,8 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): location_id='a67d190c-c41f-424b-814d-0e906f659301', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[QueryHierarchyItem]', response) + query_parameters=query_parameters) + return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) def get_query(self, project, query, expand=None, depth=None, include_deleted=None): """GetQuery. @@ -536,9 +532,8 @@ def get_deleted_work_item_references(self, project=None): response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemDeleteShallowReference]', response) + route_values=route_values) + return self._deserialize('[WorkItemDeleteShallowReference]', self._unwrap_collection(response)) def get_deleted_work_items(self, ids, project=None): """GetDeletedWorkItems. @@ -558,9 +553,8 @@ def get_deleted_work_items(self, ids, project=None): location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemDeleteReference]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemDeleteReference]', self._unwrap_collection(response)) def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. @@ -629,9 +623,8 @@ def get_revisions(self, id, top=None, skip=None, expand=None): location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItem]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) def evaluate_rules_on_field(self, rule_engine_input): """EvaluateRulesOnField. @@ -707,9 +700,8 @@ def get_templates(self, team_context, workitemtypename=None): location_id='6a90345f-a676-4969-afce-8e163e1d5642', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemTemplateReference]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemTemplateReference]', self._unwrap_collection(response)) def delete_template(self, team_context, template_id): """DeleteTemplate. @@ -846,9 +838,8 @@ def get_updates(self, id, top=None, skip=None): location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', version='4.0', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemUpdate]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemUpdate]', self._unwrap_collection(response)) def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. @@ -994,9 +985,8 @@ def get_work_item_icons(self): """ response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[WorkItemIcon]', response) + version='4.0-preview.1') + return self._deserialize('[WorkItemIcon]', self._unwrap_collection(response)) def get_work_item_icon_svg(self, icon, color=None, v=None): """GetWorkItemIconSvg. @@ -1070,9 +1060,8 @@ def get_relation_types(self): """ response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.0', - returns_collection=True) - return self._deserialize('[WorkItemRelationType]', response) + version='4.0') + return self._deserialize('[WorkItemRelationType]', self._unwrap_collection(response)) def read_reporting_revisions_get(self, project=None, fields=None, types=None, continuation_token=None, start_date_time=None, include_identity_ref=None, include_deleted=None, include_tag_ref=None, include_latest_only=None, expand=None, include_discussion_changes_only=None): """ReadReportingRevisionsGet. @@ -1224,9 +1213,8 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', version='4.0', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItem]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) def update_work_item(self, document, id, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. @@ -1332,9 +1320,8 @@ def get_work_item_type_categories(self, project): response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemTypeCategory]', response) + route_values=route_values) + return self._deserialize('[WorkItemTypeCategory]', self._unwrap_collection(response)) def get_work_item_type_category(self, project, category): """GetWorkItemTypeCategory. @@ -1384,9 +1371,8 @@ def get_work_item_types(self, project): response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', version='4.0', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemType]', response) + route_values=route_values) + return self._deserialize('[WorkItemType]', self._unwrap_collection(response)) def get_dependent_fields(self, project, type, field): """GetDependentFields. @@ -1424,9 +1410,8 @@ def get_work_item_type_states(self, project, type): response = self._send(http_method='GET', location_id='7c9d7a76-4a09-43e8-b5df-bd792f4ac6aa', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemStateColor]', response) + route_values=route_values) + return self._deserialize('[WorkItemStateColor]', self._unwrap_collection(response)) def export_work_item_type_definition(self, project=None, type=None, export_global_lists=None): """ExportWorkItemTypeDefinition. diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index 4b12c307..947ad0da 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -32,9 +32,8 @@ def get_work_artifact_link_types(self): """ response = self._send(http_method='GET', location_id='1a31de40-e318-41cd-a6c6-881077df52e3', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[WorkArtifactLink]', response) + version='4.1-preview.1') + return self._deserialize('[WorkArtifactLink]', self._unwrap_collection(response)) def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): """QueryWorkItemsForArtifactUris. @@ -160,9 +159,8 @@ def get_classification_nodes(self, project, ids, depth=None, error_policy=None): location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemClassificationNode]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) def get_root_nodes(self, project, depth=None): """GetRootNodes. @@ -181,9 +179,8 @@ def get_root_nodes(self, project, depth=None): location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemClassificationNode]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. @@ -384,9 +381,8 @@ def get_fields(self, project=None, expand=None): location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemField]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemField]', self._unwrap_collection(response)) def update_field(self, work_item_field, field_name_or_ref_name, project=None): """UpdateField. @@ -467,9 +463,8 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): location_id='a67d190c-c41f-424b-814d-0e906f659301', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[QueryHierarchyItem]', response) + query_parameters=query_parameters) + return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) def get_query(self, project, query, expand=None, depth=None, include_deleted=None): """GetQuery. @@ -607,9 +602,8 @@ def get_deleted_work_items(self, ids, project=None): location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemDeleteReference]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemDeleteReference]', self._unwrap_collection(response)) def get_deleted_work_item_shallow_references(self, project=None): """GetDeletedWorkItemShallowReferences. @@ -623,9 +617,8 @@ def get_deleted_work_item_shallow_references(self, project=None): response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemDeleteShallowReference]', response) + route_values=route_values) + return self._deserialize('[WorkItemDeleteShallowReference]', self._unwrap_collection(response)) def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. @@ -694,9 +687,8 @@ def get_revisions(self, id, top=None, skip=None, expand=None): location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItem]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) def create_template(self, template, team_context): """CreateTemplate. @@ -761,9 +753,8 @@ def get_templates(self, team_context, workitemtypename=None): location_id='6a90345f-a676-4969-afce-8e163e1d5642', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemTemplateReference]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemTemplateReference]', self._unwrap_collection(response)) def delete_template(self, team_context, template_id): """DeleteTemplate. @@ -900,9 +891,8 @@ def get_updates(self, id, top=None, skip=None): location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemUpdate]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemUpdate]', self._unwrap_collection(response)) def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. @@ -1048,9 +1038,8 @@ def get_work_item_icons(self): """ response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[WorkItemIcon]', response) + version='4.1-preview.1') + return self._deserialize('[WorkItemIcon]', self._unwrap_collection(response)) def get_work_item_icon_svg(self, icon, color=None, v=None): """GetWorkItemIconSvg. @@ -1128,9 +1117,8 @@ def get_relation_types(self): """ response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.1', - returns_collection=True) - return self._deserialize('[WorkItemRelationType]', response) + version='4.1') + return self._deserialize('[WorkItemRelationType]', self._unwrap_collection(response)) def read_reporting_revisions_get(self, project=None, fields=None, types=None, continuation_token=None, start_date_time=None, include_identity_ref=None, include_deleted=None, include_tag_ref=None, include_latest_only=None, expand=None, include_discussion_changes_only=None, max_page_size=None): """ReadReportingRevisionsGet. @@ -1359,9 +1347,8 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItem]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. @@ -1412,9 +1399,8 @@ def get_work_item_next_states_on_checkin_action(self, ids, action=None): response = self._send(http_method='GET', location_id='afae844b-e2f6-44c2-8053-17b3bb936a40', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemNextStateOnTransition]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemNextStateOnTransition]', self._unwrap_collection(response)) def get_work_item_type_categories(self, project): """GetWorkItemTypeCategories. @@ -1428,9 +1414,8 @@ def get_work_item_type_categories(self, project): response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemTypeCategory]', response) + route_values=route_values) + return self._deserialize('[WorkItemTypeCategory]', self._unwrap_collection(response)) def get_work_item_type_category(self, project, category): """GetWorkItemTypeCategory. @@ -1480,9 +1465,8 @@ def get_work_item_types(self, project): response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', version='4.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemType]', response) + route_values=route_values) + return self._deserialize('[WorkItemType]', self._unwrap_collection(response)) def get_work_item_type_fields_with_references(self, project, type, expand=None): """GetWorkItemTypeFieldsWithReferences. @@ -1504,9 +1488,8 @@ def get_work_item_type_fields_with_references(self, project, type, expand=None): location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', version='4.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemTypeFieldWithReferences]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeFieldWithReferences]', self._unwrap_collection(response)) def get_work_item_type_field_with_references(self, project, type, field, expand=None): """GetWorkItemTypeFieldWithReferences. @@ -1549,7 +1532,6 @@ def get_work_item_type_states(self, project, type): response = self._send(http_method='GET', location_id='7c9d7a76-4a09-43e8-b5df-bd792f4ac6aa', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemStateColor]', response) + route_values=route_values) + return self._deserialize('[WorkItemStateColor]', self._unwrap_collection(response)) diff --git a/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py b/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py index 967f0eaa..491f57b3 100644 --- a/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py +++ b/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py @@ -65,9 +65,8 @@ def get_behaviors(self, process_id, expand=None): location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemBehavior]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemBehavior]', self._unwrap_collection(response)) def get_fields(self, process_id): """GetFields. @@ -81,9 +80,8 @@ def get_fields(self, process_id): response = self._send(http_method='GET', location_id='7a0e7a1a-0b34-4ae0-9744-0aaffb7d0ed1', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[FieldModel]', response) + route_values=route_values) + return self._deserialize('[FieldModel]', self._unwrap_collection(response)) def get_work_item_type_fields(self, process_id, wit_ref_name): """GetWorkItemTypeFields. @@ -100,9 +98,8 @@ def get_work_item_type_fields(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[FieldModel]', response) + route_values=route_values) + return self._deserialize('[FieldModel]', self._unwrap_collection(response)) def create_process(self, create_request): """CreateProcess. @@ -162,9 +159,8 @@ def get_processes(self, expand=None): response = self._send(http_method='GET', location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', version='4.0-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ProcessModel]', response) + query_parameters=query_parameters) + return self._deserialize('[ProcessModel]', self._unwrap_collection(response)) def update_process(self, update_request, process_type_id): """UpdateProcess. @@ -260,9 +256,8 @@ def get_work_item_type_rules(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[FieldRuleModel]', response) + route_values=route_values) + return self._deserialize('[FieldRuleModel]', self._unwrap_collection(response)) def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): """UpdateWorkItemTypeRule. @@ -324,9 +319,8 @@ def get_state_definitions(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemStateResultModel]', response) + route_values=route_values) + return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) def get_work_item_type(self, process_id, wit_ref_name, expand=None): """GetWorkItemType. @@ -368,7 +362,6 @@ def get_work_item_types(self, process_id, expand=None): location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemTypeModel]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) diff --git a/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py b/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py index 1983879f..c82f3ec0 100644 --- a/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py +++ b/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -65,9 +65,8 @@ def get_behaviors(self, process_id, expand=None): location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemBehavior]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemBehavior]', self._unwrap_collection(response)) def get_fields(self, process_id): """GetFields. @@ -81,9 +80,8 @@ def get_fields(self, process_id): response = self._send(http_method='GET', location_id='7a0e7a1a-0b34-4ae0-9744-0aaffb7d0ed1', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[FieldModel]', response) + route_values=route_values) + return self._deserialize('[FieldModel]', self._unwrap_collection(response)) def get_work_item_type_fields(self, process_id, wit_ref_name): """GetWorkItemTypeFields. @@ -100,9 +98,8 @@ def get_work_item_type_fields(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[FieldModel]', response) + route_values=route_values) + return self._deserialize('[FieldModel]', self._unwrap_collection(response)) def create_process(self, create_request): """CreateProcess. @@ -162,9 +159,8 @@ def get_processes(self, expand=None): response = self._send(http_method='GET', location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', version='4.1-preview.1', - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[ProcessModel]', response) + query_parameters=query_parameters) + return self._deserialize('[ProcessModel]', self._unwrap_collection(response)) def update_process(self, update_request, process_type_id): """UpdateProcess. @@ -260,9 +256,8 @@ def get_work_item_type_rules(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[FieldRuleModel]', response) + route_values=route_values) + return self._deserialize('[FieldRuleModel]', self._unwrap_collection(response)) def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): """UpdateWorkItemTypeRule. @@ -324,9 +319,8 @@ def get_state_definitions(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemStateResultModel]', response) + route_values=route_values) + return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) def get_work_item_type(self, process_id, wit_ref_name, expand=None): """GetWorkItemType. @@ -368,7 +362,6 @@ def get_work_item_types(self, process_id, expand=None): location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemTypeModel]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py index 8c349f77..a5dd2154 100644 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py @@ -89,9 +89,8 @@ def get_behaviors(self, process_id): response = self._send(http_method='GET', location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BehaviorModel]', response) + route_values=route_values) + return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) def replace_behavior(self, behavior_data, process_id, behavior_id): """ReplaceBehavior. @@ -435,9 +434,8 @@ def get_lists_metadata(self): """ response = self._send(http_method='GET', location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', - version='4.0-preview.1', - returns_collection=True) - return self._deserialize('[PickListMetadataModel]', response) + version='4.0-preview.1') + return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) def create_list(self, picklist): """CreateList. @@ -635,9 +633,8 @@ def get_state_definitions(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='4303625d-08f4-4461-b14b-32c65bba5599', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemStateResultModel]', response) + route_values=route_values) + return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. @@ -744,9 +741,8 @@ def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behavior response = self._send(http_method='GET', location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemTypeBehavior]', response) + route_values=route_values) + return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): """RemoveBehaviorFromWorkItemType. @@ -862,9 +858,8 @@ def get_work_item_types(self, process_id, expand=None): location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemTypeModel]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateWorkItemType. @@ -944,9 +939,8 @@ def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): response = self._send(http_method='GET', location_id='976713b4-a62e-499e-94dc-eeb869ea9126', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemTypeFieldModel]', response) + route_values=route_values) + return self._deserialize('[WorkItemTypeFieldModel]', self._unwrap_collection(response)) def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): """RemoveFieldFromWorkItemType. diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py index 75abede1..470933fe 100644 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py +++ b/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py @@ -89,9 +89,8 @@ def get_behaviors(self, process_id): response = self._send(http_method='GET', location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[BehaviorModel]', response) + route_values=route_values) + return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) def replace_behavior(self, behavior_data, process_id, behavior_id): """ReplaceBehavior. @@ -435,9 +434,8 @@ def get_lists_metadata(self): """ response = self._send(http_method='GET', location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', - version='4.1-preview.1', - returns_collection=True) - return self._deserialize('[PickListMetadataModel]', response) + version='4.1-preview.1') + return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) def create_list(self, picklist): """CreateList. @@ -635,9 +633,8 @@ def get_state_definitions(self, process_id, wit_ref_name): response = self._send(http_method='GET', location_id='4303625d-08f4-4461-b14b-32c65bba5599', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemStateResultModel]', response) + route_values=route_values) + return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. @@ -744,9 +741,8 @@ def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behavior response = self._send(http_method='GET', location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemTypeBehavior]', response) + route_values=route_values) + return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): """RemoveBehaviorFromWorkItemType. @@ -862,9 +858,8 @@ def get_work_item_types(self, process_id, expand=None): location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - returns_collection=True) - return self._deserialize('[WorkItemTypeModel]', response) + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateWorkItemType. @@ -944,9 +939,8 @@ def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): response = self._send(http_method='GET', location_id='976713b4-a62e-499e-94dc-eeb869ea9126', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[WorkItemTypeFieldModel]', response) + route_values=route_values) + return self._deserialize('[WorkItemTypeFieldModel]', self._unwrap_collection(response)) def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): """RemoveFieldFromWorkItemType. diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py index 859aedbd..4c9071e4 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py @@ -57,9 +57,8 @@ def get_behaviors(self, process_id): response = self._send(http_method='GET', location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', version='4.0-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[AdminBehavior]', response) + route_values=route_values) + return self._deserialize('[AdminBehavior]', self._unwrap_collection(response)) def check_template_existence(self, upload_stream): """CheckTemplateExistence. diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py index 9a9aae1c..2de60dbb 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -57,9 +57,8 @@ def get_behaviors(self, process_id): response = self._send(http_method='GET', location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', version='4.1-preview.1', - route_values=route_values, - returns_collection=True) - return self._deserialize('[AdminBehavior]', response) + route_values=route_values) + return self._deserialize('[AdminBehavior]', self._unwrap_collection(response)) def check_template_existence(self, upload_stream): """CheckTemplateExistence. From 2526f20515833cb5a7529f07dd08636a5c004e49 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Sat, 1 Dec 2018 20:32:30 -0500 Subject: [PATCH 087/191] regen 4.0 after adding support for methods that return header values as part of the payload. --- vsts/vsts/dashboard/v4_0/dashboard_client.py | 114 +++++++++++++++++++ vsts/vsts/vss_client.py | 1 - vsts/vsts/wiki/v4_0/wiki_client.py | 56 +++++++++ 3 files changed, 170 insertions(+), 1 deletion(-) diff --git a/vsts/vsts/dashboard/v4_0/dashboard_client.py b/vsts/vsts/dashboard/v4_0/dashboard_client.py index 65087058..b5e6de48 100644 --- a/vsts/vsts/dashboard/v4_0/dashboard_client.py +++ b/vsts/vsts/dashboard/v4_0/dashboard_client.py @@ -320,6 +320,42 @@ def get_widget(self, team_context, dashboard_id, widget_id): route_values=route_values) return self._deserialize('Widget', response) + def get_widgets(self, team_context, dashboard_id, eTag=None): + """GetWidgets. + [Preview API] + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :param String eTag: Dashboard Widgets Version + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + response = self._send(http_method='GET', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values) + response_object = models.WidgetsVersionedList() + response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) + response_object.eTag = response.headers.get('ETag') + return response_object + def replace_widget(self, widget, team_context, dashboard_id, widget_id): """ReplaceWidget. [Preview API] @@ -358,6 +394,45 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): content=content) return self._deserialize('Widget', response) + def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): + """ReplaceWidgets. + [Preview API] + :param [Widget] widgets: + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :param String eTag: Dashboard Widgets Version + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(widgets, '[Widget]') + response = self._send(http_method='PUT', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values, + content=content) + response_object = models.WidgetsVersionedList() + response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) + response_object.eTag = response.headers.get('ETag') + return response_object + def update_widget(self, widget, team_context, dashboard_id, widget_id): """UpdateWidget. [Preview API] @@ -396,6 +471,45 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): content=content) return self._deserialize('Widget', response) + def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): + """UpdateWidgets. + [Preview API] + :param [Widget] widgets: + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: + :param String eTag: Dashboard Widgets Version + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if dashboard_id is not None: + route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') + content = self._serialize.body(widgets, '[Widget]') + response = self._send(http_method='PATCH', + location_id='bdcff53a-8355-4172-a00a-40497ea23afc', + version='4.0-preview.2', + route_values=route_values, + content=content) + response_object = models.WidgetsVersionedList() + response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) + response_object.eTag = response.headers.get('ETag') + return response_object + def get_widget_metadata(self, contribution_id): """GetWidgetMetadata. [Preview API] diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index b674c7a7..16a01c76 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -105,7 +105,6 @@ def _unwrap_collection(self, response): collection = wrapper.value return collection - def _create_request_message(self, http_method, location_id, route_values=None, query_parameters=None): location = self._get_resource_location(location_id) diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/vsts/vsts/wiki/v4_0/wiki_client.py index 97a54537..7e6815a8 100644 --- a/vsts/vsts/wiki/v4_0/wiki_client.py +++ b/vsts/vsts/wiki/v4_0/wiki_client.py @@ -25,6 +25,62 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' + def create_attachment(self, upload_stream, project, wiki_id, name): + """CreateAttachment. + [Preview API] Use this API to create an attachment in the wiki. + :param object upload_stream: Stream to upload + :param str project: Project ID or project name + :param str wiki_id: ID of the wiki in which the attachment is to be created. + :param str name: Name of the attachment that is to be created. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_id is not None: + route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + content = self._serialize.body(upload_stream, 'object') + response = self._send(http_method='PUT', + location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + response_object = models.WikiAttachmentResponse() + response_object.attachment = self._deserialize('WikiAttachment', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_attachment(self, project, wiki_id, name): + """GetAttachment. + [Preview API] Temp API + :param str project: Project ID or project name + :param str wiki_id: + :param str name: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_id is not None: + route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + response = self._send(http_method='GET', + location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiAttachmentResponse() + response_object.attachment = self._deserialize('WikiAttachment', response) + response_object.eTag = response.headers.get('ETag') + return response_object + def get_pages(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): """GetPages. [Preview API] Gets metadata or content of the wiki pages under the provided page path. From ec4f7ab2eaa0d251a9133374183ae0ba9e8d8ef9 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 3 Dec 2018 10:08:46 -0500 Subject: [PATCH 088/191] bump version to 0.1.22 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 48a1d4cd..470f6add 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.21" +VERSION = "0.1.22" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index ef3e7b2e..59301c2a 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.21" +VERSION = "0.1.22" From 0cff44080d9b16e2f71b139a300f442f6d7d8012 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 3 Jan 2019 15:49:55 -0500 Subject: [PATCH 089/191] Fix deserialization issue with missing DayOfWeek. --- vsts/vsts/work/v4_0/models/team_setting.py | 4 ++-- vsts/vsts/work/v4_0/models/team_settings_patch.py | 4 ++-- vsts/vsts/work/v4_1/models/team_setting.py | 6 +++--- vsts/vsts/work/v4_1/models/team_settings_patch.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/vsts/vsts/work/v4_0/models/team_setting.py b/vsts/vsts/work/v4_0/models/team_setting.py index 3a35cfa7..2f08d45d 100644 --- a/vsts/vsts/work/v4_0/models/team_setting.py +++ b/vsts/vsts/work/v4_0/models/team_setting.py @@ -27,7 +27,7 @@ class TeamSetting(TeamSettingsDataContractBase): :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working - :type working_days: list of DayOfWeek + :type working_days: list of str """ _attribute_map = { @@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + 'working_days': {'key': 'workingDays', 'type': '[str]'} } def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): diff --git a/vsts/vsts/work/v4_0/models/team_settings_patch.py b/vsts/vsts/work/v4_0/models/team_settings_patch.py index 3942385c..e8930f24 100644 --- a/vsts/vsts/work/v4_0/models/team_settings_patch.py +++ b/vsts/vsts/work/v4_0/models/team_settings_patch.py @@ -23,7 +23,7 @@ class TeamSettingsPatch(Model): :param default_iteration_macro: :type default_iteration_macro: str :param working_days: - :type working_days: list of DayOfWeek + :type working_days: list of str """ _attribute_map = { @@ -32,7 +32,7 @@ class TeamSettingsPatch(Model): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + 'working_days': {'key': 'workingDays', 'type': '[str]'} } def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): diff --git a/vsts/vsts/work/v4_1/models/team_setting.py b/vsts/vsts/work/v4_1/models/team_setting.py index d26a8565..35eb4704 100644 --- a/vsts/vsts/work/v4_1/models/team_setting.py +++ b/vsts/vsts/work/v4_1/models/team_setting.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,7 +27,7 @@ class TeamSetting(TeamSettingsDataContractBase): :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working - :type working_days: list of DayOfWeek + :type working_days: list of str """ _attribute_map = { @@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + 'working_days': {'key': 'workingDays', 'type': '[str]'} } def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): diff --git a/vsts/vsts/work/v4_1/models/team_settings_patch.py b/vsts/vsts/work/v4_1/models/team_settings_patch.py index 3942385c..20e3af9c 100644 --- a/vsts/vsts/work/v4_1/models/team_settings_patch.py +++ b/vsts/vsts/work/v4_1/models/team_settings_patch.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -23,7 +23,7 @@ class TeamSettingsPatch(Model): :param default_iteration_macro: :type default_iteration_macro: str :param working_days: - :type working_days: list of DayOfWeek + :type working_days: list of str """ _attribute_map = { @@ -32,7 +32,7 @@ class TeamSettingsPatch(Model): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'} + 'working_days': {'key': 'workingDays', 'type': '[str]'} } def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): From 7f3d548e0a67eda240d5e119cc160b98fe9cf067 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 3 Jan 2019 16:24:55 -0500 Subject: [PATCH 090/191] bump version to 0.1.23 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 470f6add..0fa30ee9 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.22" +VERSION = "0.1.23" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 59301c2a..2a55b701 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.22" +VERSION = "0.1.23" From 0dbaf302dafc991f20414b28e17bdbdf8048b4c5 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 9 Jan 2019 18:44:32 -0500 Subject: [PATCH 091/191] set creds on config (to support msrest 0.6.3) fix download operations (4.1) --- vsts/vsts/build/v4_1/build_client.py | 138 +++++++++--------- vsts/vsts/gallery/v4_1/gallery_client.py | 118 ++++++++++----- vsts/vsts/git/v4_1/git_client_base.py | 105 +++++++++---- vsts/vsts/licensing/v4_1/licensing_client.py | 11 +- vsts/vsts/npm/v4_1/npm_client.py | 46 ++++-- vsts/vsts/release/v4_1/release_client.py | 55 +++++-- vsts/vsts/task/v4_1/task_client.py | 11 +- vsts/vsts/test/v4_1/test_client.py | 44 ++++-- vsts/vsts/tfvc/v4_1/tfvc_client.py | 44 ++++-- vsts/vsts/vss_client.py | 7 +- vsts/vsts/wiki/v4_1/wiki_client.py | 22 ++- .../v4_1/work_item_tracking_client.py | 35 +++-- ...k_item_tracking_process_template_client.py | 11 +- 13 files changed, 430 insertions(+), 217 deletions(-) diff --git a/vsts/vsts/build/v4_1/build_client.py b/vsts/vsts/build/v4_1/build_client.py index 8c8ba959..d8813954 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/vsts/vsts/build/v4_1/build_client.py @@ -69,7 +69,7 @@ def get_artifact(self, build_id, artifact_name, project=None): query_parameters=query_parameters) return self._deserialize('BuildArtifact', response) - def get_artifact_content_zip(self, build_id, artifact_name, project=None): + def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwargs): """GetArtifactContentZip. Gets a specific artifact for a build. :param int build_id: The ID of the build. @@ -89,8 +89,13 @@ def get_artifact_content_zip(self, build_id, artifact_name, project=None): location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_artifacts(self, build_id, project=None): """GetArtifacts. @@ -131,7 +136,7 @@ def get_attachments(self, project, build_id, type): route_values=route_values) return self._deserialize('[Attachment]', self._unwrap_collection(response)) - def get_attachment(self, project, build_id, timeline_id, record_id, type, name): + def get_attachment(self, project, build_id, timeline_id, record_id, type, name, **kwargs): """GetAttachment. [Preview API] Gets a specific attachment. :param str project: Project ID or project name @@ -158,8 +163,13 @@ def get_attachment(self, project, build_id, timeline_id, record_id, type, name): response = self._send(http_method='GET', location_id='af5122d3-3438-485e-a25a-2dbbfde84ee6', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_badge(self, project, definition_id, branch_name=None): """GetBadge. @@ -668,54 +678,6 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor query_parameters=query_parameters) return self._deserialize('[BuildDefinitionReference]', self._unwrap_collection(response)) - def reset_counter(self, definition_id, counter_id, project=None): - """ResetCounter. - Resets the counter variable Value back to the Seed. - :param int definition_id: The ID of the definition. - :param int counter_id: The ID of the counter. - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if counter_id is not None: - query_parameters['counterId'] = self._serialize.query('counter_id', counter_id, 'int') - self._send(http_method='POST', - location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1', - route_values=route_values, - query_parameters=query_parameters) - - def update_counter_seed(self, definition_id, counter_id, new_seed, reset_value, project=None): - """UpdateCounterSeed. - Changes the counter variable Seed, and optionally resets the Value to this new Seed. Note that if Seed is being set above Value, then Value will be updated regardless. - :param int definition_id: The ID of the definition. - :param int counter_id: The ID of the counter. - :param long new_seed: The new Seed value. - :param bool reset_value: Flag indicating if Value should also be reset. - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if counter_id is not None: - query_parameters['counterId'] = self._serialize.query('counter_id', counter_id, 'int') - if new_seed is not None: - query_parameters['newSeed'] = self._serialize.query('new_seed', new_seed, 'long') - if reset_value is not None: - query_parameters['resetValue'] = self._serialize.query('reset_value', reset_value, 'bool') - self._send(http_method='POST', - location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1', - route_values=route_values, - query_parameters=query_parameters) - def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. Updates an existing definition. @@ -745,7 +707,7 @@ def update_definition(self, definition, definition_id, project=None, secrets_sou content=content) return self._deserialize('BuildDefinition', response) - def get_file_contents(self, project, provider_name, service_endpoint_id=None, repository=None, commit_or_branch=None, path=None): + def get_file_contents(self, project, provider_name, service_endpoint_id=None, repository=None, commit_or_branch=None, path=None, **kwargs): """GetFileContents. [Preview API] Gets the contents of a file in the given source code repository. :param str project: Project ID or project name @@ -774,8 +736,13 @@ def get_file_contents(self, project, provider_name, service_endpoint_id=None, re location_id='29d12225-b1d9-425f-b668-6c594a981313', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_folder(self, folder, project, path): """CreateFolder. @@ -858,7 +825,7 @@ def update_folder(self, folder, project, path): content=content) return self._deserialize('Folder', response) - def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None): + def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): """GetBuildLog. Gets an individual log file for a build. :param str project: Project ID or project name @@ -884,8 +851,13 @@ def get_build_log(self, project, build_id, log_id, start_line=None, end_line=Non location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_line=None): """GetBuildLogLines. @@ -934,7 +906,7 @@ def get_build_logs(self, project, build_id): route_values=route_values) return self._deserialize('[BuildLog]', self._unwrap_collection(response)) - def get_build_logs_zip(self, project, build_id): + def get_build_logs_zip(self, project, build_id, **kwargs): """GetBuildLogsZip. Gets the logs for a build. :param str project: Project ID or project name @@ -949,8 +921,13 @@ def get_build_logs_zip(self, project, build_id): response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_project_metrics(self, project, metric_aggregation_type=None, min_metrics_time=None): """GetProjectMetrics. @@ -1160,7 +1137,7 @@ def get_build_report(self, project, build_id, type=None): query_parameters=query_parameters) return self._deserialize('BuildReportMetadata', response) - def get_build_report_html_content(self, project, build_id, type=None): + def get_build_report_html_content(self, project, build_id, type=None, **kwargs): """GetBuildReportHtmlContent. [Preview API] Gets a build report. :param str project: Project ID or project name @@ -1180,8 +1157,13 @@ def get_build_report_html_content(self, project, build_id, type=None): location_id='45bcaa88-67e1-4042-a035-56d3b4a7d44c', version='4.1-preview.2', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/html') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def list_repositories(self, project, provider_name, service_endpoint_id=None, repository=None, result_set=None, page_results=None, continuation_token=None): """ListRepositories. @@ -1536,7 +1518,7 @@ def save_template(self, template, project, template_id): content=content) return self._deserialize('BuildDefinitionTemplate', response) - def get_ticketed_artifact_content_zip(self, build_id, project_id, artifact_name, download_ticket): + def get_ticketed_artifact_content_zip(self, build_id, project_id, artifact_name, download_ticket, **kwargs): """GetTicketedArtifactContentZip. [Preview API] Gets a Zip file of the artifact with the given name for a build. :param int build_id: The ID of the build. @@ -1557,10 +1539,15 @@ def get_ticketed_artifact_content_zip(self, build_id, project_id, artifact_name, location_id='731b7e7a-0b6c-4912-af75-de04fe4899db', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_ticketed_logs_content_zip(self, build_id, project_id, download_ticket): + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_ticketed_logs_content_zip(self, build_id, project_id, download_ticket, **kwargs): """GetTicketedLogsContentZip. [Preview API] Gets a Zip file of the logs for a given build. :param int build_id: The ID of the build. @@ -1578,8 +1565,13 @@ def get_ticketed_logs_content_zip(self, build_id, project_id, download_ticket): location_id='917890d1-a6b5-432d-832a-6afcf6bb0734', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None, plan_id=None): """GetBuildTimeline. diff --git a/vsts/vsts/gallery/v4_1/gallery_client.py b/vsts/vsts/gallery/v4_1/gallery_client.py index 433aae3f..24536a77 100644 --- a/vsts/vsts/gallery/v4_1/gallery_client.py +++ b/vsts/vsts/gallery/v4_1/gallery_client.py @@ -134,7 +134,7 @@ def request_acquisition(self, acquisition_request): content=content) return self._deserialize('ExtensionAcquisitionRequest', response) - def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None): + def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None, **kwargs): """GetAssetByName. [Preview API] :param str publisher_name: @@ -163,10 +163,15 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, location_id='7529171f-a002-4180-93ba-685f358a0482', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None, **kwargs): """GetAsset. [Preview API] :param str extension_id: @@ -192,10 +197,15 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None, **kwargs): """GetAssetAuthenticated. [Preview API] :param str publisher_name: @@ -221,8 +231,13 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset location_id='506aff36-2622-4f70-8063-77cce6366d20', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def associate_azure_publisher(self, publisher_name, azure_publisher_id): """AssociateAzurePublisher. @@ -364,7 +379,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N query_parameters=query_parameters) return self._deserialize('ProductCategoriesResult', response) - def get_certificate(self, publisher_name, extension_name, version=None): + def get_certificate(self, publisher_name, extension_name, version=None, **kwargs): """GetCertificate. [Preview API] :param str publisher_name: @@ -382,8 +397,13 @@ def get_certificate(self, publisher_name, extension_name, version=None): response = self._send(http_method='GET', location_id='e905ad6a-3f1f-4d08-9f6d-7d357ff8b7d0', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_draft_for_edit_extension(self, publisher_name, extension_name): """CreateDraftForEditExtension. @@ -571,7 +591,7 @@ def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft media_type='application/octet-stream') return self._deserialize('ExtensionDraftAsset', response) - def get_asset_from_edit_extension_draft(self, publisher_name, draft_id, asset_type, extension_name): + def get_asset_from_edit_extension_draft(self, publisher_name, draft_id, asset_type, extension_name, **kwargs): """GetAssetFromEditExtensionDraft. [Preview API] :param str publisher_name: @@ -594,10 +614,15 @@ def get_asset_from_edit_extension_draft(self, publisher_name, draft_id, asset_ty location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_asset_from_new_extension_draft(self, publisher_name, draft_id, asset_type): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset_from_new_extension_draft(self, publisher_name, draft_id, asset_type, **kwargs): """GetAssetFromNewExtensionDraft. [Preview API] :param str publisher_name: @@ -615,8 +640,13 @@ def get_asset_from_new_extension_draft(self, publisher_name, draft_id, asset_typ response = self._send(http_method='GET', location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_extension_events(self, publisher_name, extension_name, count=None, after_date=None, include=None, include_property=None): """GetExtensionEvents. @@ -885,7 +915,7 @@ def send_notifications(self, notification_data): version='4.1-preview.1', content=content) - def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None): + def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None, **kwargs): """GetPackage. [Preview API] This endpoint gets hit when you download a VSTS extension from the Web UI :param str publisher_name: @@ -911,10 +941,15 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None, **kwargs): """GetAssetWithToken. [Preview API] :param str publisher_name: @@ -946,8 +981,13 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty location_id='364415a1-0077-4a41-a7a0-06edd4497492', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def delete_publisher_asset(self, publisher_name, asset_type=None): """DeletePublisherAsset. @@ -967,7 +1007,7 @@ def delete_publisher_asset(self, publisher_name, asset_type=None): route_values=route_values, query_parameters=query_parameters) - def get_publisher_asset(self, publisher_name, asset_type=None): + def get_publisher_asset(self, publisher_name, asset_type=None, **kwargs): """GetPublisherAsset. [Preview API] Get publisher asset like logo as a stream :param str publisher_name: Internal name of the publisher @@ -984,8 +1024,13 @@ def get_publisher_asset(self, publisher_name, asset_type=None): location_id='21143299-34f9-4c62-8ca8-53da691192f9', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, file_name=None): """UpdatePublisherAsset. @@ -1603,7 +1648,7 @@ def increment_extension_daily_stat(self, publisher_name, extension_name, version route_values=route_values, query_parameters=query_parameters) - def get_verification_log(self, publisher_name, extension_name, version): + def get_verification_log(self, publisher_name, extension_name, version, **kwargs): """GetVerificationLog. [Preview API] :param str publisher_name: @@ -1621,6 +1666,11 @@ def get_verification_log(self, publisher_name, extension_name, version): response = self._send(http_method='GET', location_id='c5523abe-b843-437f-875b-5833064efe4d', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index 37802cf2..e91e63b4 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -96,7 +96,7 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N query_parameters=query_parameters) return self._deserialize('GitBlobRef', response) - def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None): + def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): """GetBlobContent. Get a single blob. :param str repository_id: The name or ID of the repository. @@ -122,10 +122,15 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, **kwargs): """GetBlobsZip. Gets one or more blobs in a zip file download. :param [str] blob_ids: Blob IDs (SHA1 hashes) to be returned in the zip file. @@ -148,10 +153,15 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None): version='4.1', route_values=route_values, query_parameters=query_parameters, - content=content) - return self._deserialize('object', response) - - def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None): + content=content, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): """GetBlobZip. Get a single blob. :param str repository_id: The name or ID of the repository. @@ -177,8 +187,13 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_branch(self, repository_id, name, project=None, base_version_descriptor=None): """GetBranch. @@ -795,7 +810,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters=query_parameters) return self._deserialize('GitItem', response) - def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): + def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, **kwargs): """GetItemContent. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. @@ -841,8 +856,13 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_items(self, repository_id, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, include_links=None, version_descriptor=None): """GetItems. @@ -890,7 +910,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve query_parameters=query_parameters) return self._deserialize('[GitItem]', self._unwrap_collection(response)) - def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): + def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, **kwargs): """GetItemText. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. @@ -936,10 +956,15 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, **kwargs): """GetItemZip. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. :param str repository_id: The Id of the repository. @@ -985,8 +1010,13 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_items_batch(self, request_data, repository_id, project=None): """GetItemsBatch. @@ -1091,7 +1121,7 @@ def delete_attachment(self, file_name, repository_id, pull_request_id, project=N version='4.1-preview.1', route_values=route_values) - def get_attachment_content(self, file_name, repository_id, pull_request_id, project=None): + def get_attachment_content(self, file_name, repository_id, pull_request_id, project=None, **kwargs): """GetAttachmentContent. [Preview API] Get the file content of a pull request attachment. :param str file_name: The name of the attachment. @@ -1112,8 +1142,13 @@ def get_attachment_content(self, file_name, repository_id, pull_request_id, proj response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_attachments(self, repository_id, pull_request_id, project=None): """GetAttachments. @@ -1136,7 +1171,7 @@ def get_attachments(self, repository_id, pull_request_id, project=None): route_values=route_values) return self._deserialize('[Attachment]', self._unwrap_collection(response)) - def get_attachment_zip(self, file_name, repository_id, pull_request_id, project=None): + def get_attachment_zip(self, file_name, repository_id, pull_request_id, project=None, **kwargs): """GetAttachmentZip. [Preview API] Get the file content of a pull request attachment. :param str file_name: The name of the attachment. @@ -1157,8 +1192,13 @@ def get_attachment_zip(self, file_name, repository_id, pull_request_id, project= response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_like(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """CreateLike. @@ -2991,7 +3031,7 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive query_parameters=query_parameters) return self._deserialize('GitTreeRef', response) - def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): + def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None, **kwargs): """GetTreeZip. The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. :param str repository_id: Repository Id. @@ -3020,6 +3060,11 @@ def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recur location_id='729f6437-6f92-44ec-8bee-273a7111063c', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py index b23da943..526afdeb 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -35,15 +35,20 @@ def get_extension_license_usage(self): version='4.1-preview.1') return self._deserialize('[AccountLicenseExtensionUsage]', self._unwrap_collection(response)) - def get_certificate(self): + def get_certificate(self, **kwargs): """GetCertificate. [Preview API] :rtype: object """ response = self._send(http_method='GET', location_id='2e0dbce7-a327-4bc0-a291-056139393f6d', - version='4.1-preview.1') - return self._deserialize('object', response) + version='4.1-preview.1', + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_client_rights(self, right_name=None, product_version=None, edition=None, rel_type=None, include_certificate=None, canary=None, machine_id=None): """GetClientRights. diff --git a/vsts/vsts/npm/v4_1/npm_client.py b/vsts/vsts/npm/v4_1/npm_client.py index 141118c2..8ab09b36 100644 --- a/vsts/vsts/npm/v4_1/npm_client.py +++ b/vsts/vsts/npm/v4_1/npm_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -25,7 +25,7 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = '4c83cfc1-f33a-477e-a789-29d38ffca52e' - def get_content_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version): + def get_content_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version, **kwargs): """GetContentScopedPackage. [Preview API] :param str feed_id: @@ -46,10 +46,15 @@ def get_content_scoped_package(self, feed_id, package_scope, unscoped_package_na response = self._send(http_method='GET', location_id='09a4eafd-123a-495c-979c-0eda7bdb9a14', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) - def get_content_unscoped_package(self, feed_id, package_name, package_version): + def get_content_unscoped_package(self, feed_id, package_name, package_version, **kwargs): """GetContentUnscopedPackage. [Preview API] :param str feed_id: @@ -67,8 +72,13 @@ def get_content_unscoped_package(self, feed_id, package_name, package_version): response = self._send(http_method='GET', location_id='75caa482-cb1e-47cd-9f2c-c048a4b7a43e', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def update_packages(self, batch_request, feed_id): """UpdatePackages. @@ -86,7 +96,7 @@ def update_packages(self, batch_request, feed_id): route_values=route_values, content=content) - def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version): + def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version, **kwargs): """GetReadmeScopedPackage. [Preview API] :param str feed_id: @@ -107,10 +117,15 @@ def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_nam response = self._send(http_method='GET', location_id='6d4db777-7e4a-43b2-afad-779a1d197301', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) - def get_readme_unscoped_package(self, feed_id, package_name, package_version): + def get_readme_unscoped_package(self, feed_id, package_name, package_version, **kwargs): """GetReadmeUnscopedPackage. [Preview API] :param str feed_id: @@ -128,8 +143,13 @@ def get_readme_unscoped_package(self, feed_id, package_name, package_version): response = self._send(http_method='GET', location_id='1099a396-b310-41d4-a4b6-33d134ce3fcf', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def delete_scoped_package_version_from_recycle_bin(self, feed_id, package_scope, unscoped_package_name, package_version): """DeleteScopedPackageVersionFromRecycleBin. diff --git a/vsts/vsts/release/v4_1/release_client.py b/vsts/vsts/release/v4_1/release_client.py index ee5c8f05..7c4b252a 100644 --- a/vsts/vsts/release/v4_1/release_client.py +++ b/vsts/vsts/release/v4_1/release_client.py @@ -88,7 +88,7 @@ def update_release_approval(self, approval, project, approval_id): content=content) return self._deserialize('ReleaseApproval', response) - def get_task_attachment_content(self, project, release_id, environment_id, attempt_id, timeline_id, record_id, type, name): + def get_task_attachment_content(self, project, release_id, environment_id, attempt_id, timeline_id, record_id, type, name, **kwargs): """GetTaskAttachmentContent. [Preview API] :param str project: Project ID or project name @@ -121,8 +121,13 @@ def get_task_attachment_content(self, project, release_id, environment_id, attem response = self._send(http_method='GET', location_id='c4071f6d-3697-46ca-858e-8b10ff09e52f', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_task_attachments(self, project, release_id, environment_id, attempt_id, timeline_id, type): """GetTaskAttachments. @@ -380,7 +385,7 @@ def update_release_environment(self, environment_update_data, project, release_i content=content) return self._deserialize('ReleaseEnvironment', response) - def get_logs(self, project, release_id): + def get_logs(self, project, release_id, **kwargs): """GetLogs. [Preview API] Get logs for a release Id. :param str project: Project ID or project name @@ -395,10 +400,15 @@ def get_logs(self, project, release_id): response = self._send(http_method='GET', location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', version='4.1-preview.2', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) - def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None): + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None, **kwargs): """GetTaskLog. [Preview API] Gets the task log of a release as a plain text file. :param str project: Project ID or project name @@ -430,8 +440,13 @@ def get_task_log(self, project, release_id, environment_id, release_deploy_phase location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', version='4.1-preview.2', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_manual_intervention(self, project, release_id, manual_intervention_id): """GetManualIntervention. @@ -651,7 +666,7 @@ def get_release_definition_summary(self, project, definition_id, release_count, query_parameters=query_parameters) return self._deserialize('ReleaseDefinitionSummary', response) - def get_release_revision(self, project, release_id, definition_snapshot_revision): + def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): """GetReleaseRevision. [Preview API] Get release for a given revision number. :param str project: Project ID or project name @@ -671,8 +686,13 @@ def get_release_revision(self, project, release_id, definition_snapshot_revision location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', version='4.1-preview.6', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def update_release(self, release, project, release_id): """UpdateRelease. @@ -716,7 +736,7 @@ def update_release_resource(self, release_update_metadata, project, release_id): content=content) return self._deserialize('Release', response) - def get_definition_revision(self, project, definition_id, revision): + def get_definition_revision(self, project, definition_id, revision, **kwargs): """GetDefinitionRevision. [Preview API] Get release definition for a given definitionId and revision :param str project: Project ID or project name @@ -734,8 +754,13 @@ def get_definition_revision(self, project, definition_id, revision): response = self._send(http_method='GET', location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_release_definition_history(self, project, definition_id): """GetReleaseDefinitionHistory. diff --git a/vsts/vsts/task/v4_1/task_client.py b/vsts/vsts/task/v4_1/task_client.py index f8d7ef3b..fd618acb 100644 --- a/vsts/vsts/task/v4_1/task_client.py +++ b/vsts/vsts/task/v4_1/task_client.py @@ -119,7 +119,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor route_values=route_values) return self._deserialize('TaskAttachment', response) - def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name, **kwargs): """GetAttachmentContent. [Preview API] :param str scope_identifier: The project GUID to scope the request @@ -149,8 +149,13 @@ def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_i response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type): """GetAttachments. diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index ac5ae58b..02ca78f8 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -107,7 +107,7 @@ def create_test_result_attachment(self, attachment_request_model, project, run_i content=content) return self._deserialize('TestAttachmentReference', response) - def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id): + def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id, **kwargs): """GetTestResultAttachmentContent. [Preview API] Returns a test result attachment :param str project: Project ID or project name @@ -128,8 +128,13 @@ def get_test_result_attachment_content(self, project, run_id, test_case_result_i response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_test_result_attachments(self, project, run_id, test_case_result_id): """GetTestResultAttachments. @@ -152,7 +157,7 @@ def get_test_result_attachments(self, project, run_id, test_case_result_id): route_values=route_values) return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) - def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id): + def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id, **kwargs): """GetTestResultAttachmentZip. [Preview API] Returns a test result attachment :param str project: Project ID or project name @@ -173,8 +178,13 @@ def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, a response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_test_run_attachment(self, attachment_request_model, project, run_id): """CreateTestRunAttachment. @@ -197,7 +207,7 @@ def create_test_run_attachment(self, attachment_request_model, project, run_id): content=content) return self._deserialize('TestAttachmentReference', response) - def get_test_run_attachment_content(self, project, run_id, attachment_id): + def get_test_run_attachment_content(self, project, run_id, attachment_id, **kwargs): """GetTestRunAttachmentContent. [Preview API] Returns a test run attachment :param str project: Project ID or project name @@ -215,8 +225,13 @@ def get_test_run_attachment_content(self, project, run_id, attachment_id): response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_test_run_attachments(self, project, run_id): """GetTestRunAttachments. @@ -236,7 +251,7 @@ def get_test_run_attachments(self, project, run_id): route_values=route_values) return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) - def get_test_run_attachment_zip(self, project, run_id, attachment_id): + def get_test_run_attachment_zip(self, project, run_id, attachment_id, **kwargs): """GetTestRunAttachmentZip. [Preview API] Returns a test run attachment :param str project: Project ID or project name @@ -254,8 +269,13 @@ def get_test_run_attachment_zip(self, project, run_id, attachment_id): response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): """GetBugsLinkedToTestResult. diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/vsts/vsts/tfvc/v4_1/tfvc_client.py index cf5cd3ad..91493652 100644 --- a/vsts/vsts/tfvc/v4_1/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_1/tfvc_client.py @@ -302,7 +302,7 @@ def get_items_batch(self, item_request_data, project=None): content=content) return self._deserialize('[[TfvcItem]]', self._unwrap_collection(response)) - def get_items_batch_zip(self, item_request_data, project=None): + def get_items_batch_zip(self, item_request_data, project=None, **kwargs): """GetItemsBatchZip. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. :param :class:` ` item_request_data: @@ -317,8 +317,13 @@ def get_items_batch_zip(self, item_request_data, project=None): location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', version='4.1', route_values=route_values, - content=content) - return self._deserialize('object', response) + content=content, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItem. @@ -363,7 +368,7 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters=query_parameters) return self._deserialize('TfvcItem', response) - def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): + def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetItemContent. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. @@ -403,8 +408,13 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_items(self, project=None, scope_path=None, recursion_level=None, include_links=None, version_descriptor=None): """GetItems. @@ -440,7 +450,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include query_parameters=query_parameters) return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) - def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): + def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetItemText. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. @@ -480,10 +490,15 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) - def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): + def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetItemZip. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: Version control path of an individual item to return. @@ -523,8 +538,13 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_label_items(self, label_id, top=None, skip=None): """GetLabelItems. diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py index 16a01c76..29b4283a 100644 --- a/vsts/vsts/vss_client.py +++ b/vsts/vsts/vss_client.py @@ -31,7 +31,8 @@ class VssClient(object): def __init__(self, base_url=None, creds=None): self.config = VssClientConfiguration(base_url) - self._client = ServiceClient(creds, self.config) + self.config.credentials = creds + self._client = ServiceClient(creds, config=self.config) _base_client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._base_deserialize = Deserializer(_base_client_models) self._base_serialize = Serializer(_base_client_models) @@ -64,7 +65,7 @@ def _send_request(self, request, headers=None, content=None, **operation_config) return response def _send(self, http_method, location_id, version, route_values=None, - query_parameters=None, content=None, media_type='application/json'): + query_parameters=None, content=None, media_type='application/json', accept_media_type='application/json'): request = self._create_request_message(http_method=http_method, location_id=location_id, route_values=route_values, @@ -82,7 +83,7 @@ def _send(self, http_method, location_id, version, route_values=None, # Construct headers headers = {'Content-Type': media_type + '; charset=utf-8', - 'Accept': 'application/json;api-version=' + negotiated_version} + 'Accept': accept_media_type + ';api-version=' + negotiated_version} if self.config.additional_headers is not None: for key in self.config.additional_headers: headers[key] = self.config.additional_headers[key] diff --git a/vsts/vsts/wiki/v4_1/wiki_client.py b/vsts/vsts/wiki/v4_1/wiki_client.py index 6071035f..26764617 100644 --- a/vsts/vsts/wiki/v4_1/wiki_client.py +++ b/vsts/vsts/wiki/v4_1/wiki_client.py @@ -184,7 +184,7 @@ def get_page(self, project, wiki_identifier, path=None, recursion_level=None, ve response_object.eTag = response.headers.get('ETag') return response_object - def get_page_text(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): + def get_page_text(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetPageText. Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. :param str project: Project ID or project name @@ -218,10 +218,15 @@ def get_page_text(self, project, wiki_identifier, path=None, recursion_level=Non location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) - def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): + def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetPageZip. Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. :param str project: Project ID or project name @@ -255,8 +260,13 @@ def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_wiki(self, wiki_create_params, project=None): """CreateWiki. diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index 947ad0da..eb586023 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -83,7 +83,7 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ media_type='application/octet-stream') return self._deserialize('AttachmentReference', response) - def get_attachment_content(self, id, project=None, file_name=None, download=None): + def get_attachment_content(self, id, project=None, file_name=None, download=None, **kwargs): """GetAttachmentContent. Downloads an attachment. :param str id: Attachment ID @@ -106,10 +106,15 @@ def get_attachment_content(self, id, project=None, file_name=None, download=None location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_attachment_zip(self, id, project=None, file_name=None, download=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_attachment_zip(self, id, project=None, file_name=None, download=None, **kwargs): """GetAttachmentZip. Downloads an attachment. :param str id: Attachment ID @@ -132,8 +137,13 @@ def get_attachment_zip(self, id, project=None, file_name=None, download=None): location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', version='4.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_classification_nodes(self, project, ids, depth=None, error_policy=None): """GetClassificationNodes. @@ -1041,7 +1051,7 @@ def get_work_item_icons(self): version='4.1-preview.1') return self._deserialize('[WorkItemIcon]', self._unwrap_collection(response)) - def get_work_item_icon_svg(self, icon, color=None, v=None): + def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): """GetWorkItemIconSvg. [Preview API] Get a work item icon given the friendly name and icon color. :param str icon: The name of the icon @@ -1061,8 +1071,13 @@ def get_work_item_icon_svg(self, icon, color=None, v=None): location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', version='4.1-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='image/svg+xml') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_reporting_links_by_link_type(self, project=None, link_types=None, types=None, continuation_token=None, start_date_time=None): """GetReportingLinksByLinkType. diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py index 2de60dbb..19a8b8fa 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py @@ -77,7 +77,7 @@ def check_template_existence(self, upload_stream): media_type='application/octet-stream') return self._deserialize('CheckTemplateExistenceResult', response) - def export_process_template(self, id): + def export_process_template(self, id, **kwargs): """ExportProcessTemplate. [Preview API] Returns requested process template. :param str id: The ID of the process @@ -90,8 +90,13 @@ def export_process_template(self, id): response = self._send(http_method='GET', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', version='4.1-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def import_process_template(self, upload_stream, ignore_warnings=None): """ImportProcessTemplate. From 5dd2bfac19b6b812df0cd1bca58d71180dcfcec9 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 9 Jan 2019 18:54:07 -0500 Subject: [PATCH 092/191] fix download operations (4.0) --- vsts/vsts/build/v4_0/build_client.py | 44 ++++++-- vsts/vsts/gallery/v4_0/gallery_client.py | 83 ++++++++++---- vsts/vsts/git/v4_0/git_client_base.py | 105 +++++++++++++----- vsts/vsts/licensing/v4_0/licensing_client.py | 11 +- vsts/vsts/release/v4_0/release_client.py | 70 ++++++++---- vsts/vsts/task/v4_0/task_client.py | 11 +- .../vsts/task_agent/v4_0/task_agent_client.py | 44 ++++++-- vsts/vsts/test/v4_0/test_client.py | 44 ++++++-- vsts/vsts/tfvc/v4_0/tfvc_client.py | 44 ++++++-- vsts/vsts/wiki/v4_0/wiki_client.py | 22 +++- .../v4_0/work_item_tracking_client.py | 35 ++++-- ...k_item_tracking_process_template_client.py | 11 +- 12 files changed, 377 insertions(+), 147 deletions(-) diff --git a/vsts/vsts/build/v4_0/build_client.py b/vsts/vsts/build/v4_0/build_client.py index 2d711f5e..92d52d34 100644 --- a/vsts/vsts/build/v4_0/build_client.py +++ b/vsts/vsts/build/v4_0/build_client.py @@ -69,7 +69,7 @@ def get_artifact(self, build_id, artifact_name, project=None): query_parameters=query_parameters) return self._deserialize('BuildArtifact', response) - def get_artifact_content_zip(self, build_id, artifact_name, project=None): + def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwargs): """GetArtifactContentZip. Gets a specific artifact for a build :param int build_id: @@ -89,8 +89,13 @@ def get_artifact_content_zip(self, build_id, artifact_name, project=None): location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_artifacts(self, build_id, project=None): """GetArtifacts. @@ -700,7 +705,7 @@ def update_folder(self, folder, project, path): content=content) return self._deserialize('Folder', response) - def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None): + def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): """GetBuildLog. Gets a log :param str project: Project ID or project name @@ -726,8 +731,13 @@ def get_build_log(self, project, build_id, log_id, start_line=None, end_line=Non location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_line=None): """GetBuildLogLines. @@ -776,7 +786,7 @@ def get_build_logs(self, project, build_id): route_values=route_values) return self._deserialize('[BuildLog]', self._unwrap_collection(response)) - def get_build_logs_zip(self, project, build_id): + def get_build_logs_zip(self, project, build_id, **kwargs): """GetBuildLogsZip. Gets logs for a build :param str project: Project ID or project name @@ -791,8 +801,13 @@ def get_build_logs_zip(self, project, build_id): response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', version='4.0', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_project_metrics(self, project, metric_aggregation_type=None, min_metrics_time=None): """GetProjectMetrics. @@ -970,7 +985,7 @@ def get_build_report(self, project, build_id, type=None): query_parameters=query_parameters) return self._deserialize('BuildReportMetadata', response) - def get_build_report_html_content(self, project, build_id, type=None): + def get_build_report_html_content(self, project, build_id, type=None, **kwargs): """GetBuildReportHtmlContent. [Preview API] Gets report for a build :param str project: Project ID or project name @@ -990,8 +1005,13 @@ def get_build_report_html_content(self, project, build_id, type=None): location_id='45bcaa88-67e1-4042-a035-56d3b4a7d44c', version='4.0-preview.2', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/html') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_resource_usage(self): """GetResourceUsage. diff --git a/vsts/vsts/gallery/v4_0/gallery_client.py b/vsts/vsts/gallery/v4_0/gallery_client.py index 0e6c027e..475c17af 100644 --- a/vsts/vsts/gallery/v4_0/gallery_client.py +++ b/vsts/vsts/gallery/v4_0/gallery_client.py @@ -134,7 +134,7 @@ def request_acquisition(self, acquisition_request): content=content) return self._deserialize('ExtensionAcquisitionRequest', response) - def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None): + def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None, **kwargs): """GetAssetByName. [Preview API] :param str publisher_name: @@ -163,10 +163,15 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, location_id='7529171f-a002-4180-93ba-685f358a0482', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None, **kwargs): """GetAsset. [Preview API] :param str extension_id: @@ -192,10 +197,15 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None, **kwargs): """GetAssetAuthenticated. [Preview API] :param str publisher_name: @@ -221,8 +231,13 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset location_id='506aff36-2622-4f70-8063-77cce6366d20', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def associate_azure_publisher(self, publisher_name, azure_publisher_id): """AssociateAzurePublisher. @@ -364,7 +379,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N query_parameters=query_parameters) return self._deserialize('ProductCategoriesResult', response) - def get_certificate(self, publisher_name, extension_name, version=None): + def get_certificate(self, publisher_name, extension_name, version=None, **kwargs): """GetCertificate. [Preview API] :param str publisher_name: @@ -382,8 +397,13 @@ def get_certificate(self, publisher_name, extension_name, version=None): response = self._send(http_method='GET', location_id='e905ad6a-3f1f-4d08-9f6d-7d357ff8b7d0', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_extension_events(self, publisher_name, extension_name, count=None, after_date=None, include=None, include_property=None): """GetExtensionEvents. @@ -652,7 +672,7 @@ def send_notifications(self, notification_data): version='4.0-preview.1', content=content) - def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None): + def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None, **kwargs): """GetPackage. [Preview API] :param str publisher_name: @@ -678,10 +698,15 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None, **kwargs): """GetAssetWithToken. [Preview API] :param str publisher_name: @@ -713,8 +738,13 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty location_id='364415a1-0077-4a41-a7a0-06edd4497492', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def query_publishers(self, publisher_query): """QueryPublishers. @@ -1307,7 +1337,7 @@ def increment_extension_daily_stat(self, publisher_name, extension_name, version route_values=route_values, query_parameters=query_parameters) - def get_verification_log(self, publisher_name, extension_name, version): + def get_verification_log(self, publisher_name, extension_name, version, **kwargs): """GetVerificationLog. [Preview API] :param str publisher_name: @@ -1325,6 +1355,11 @@ def get_verification_log(self, publisher_name, extension_name, version): response = self._send(http_method='GET', location_id='c5523abe-b843-437f-875b-5833064efe4d', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/vsts/vsts/git/v4_0/git_client_base.py index 1c714b6b..f174a315 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/vsts/vsts/git/v4_0/git_client_base.py @@ -96,7 +96,7 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N query_parameters=query_parameters) return self._deserialize('GitBlobRef', response) - def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None): + def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): """GetBlobContent. Gets a single blob. :param str repository_id: @@ -122,10 +122,15 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, **kwargs): """GetBlobsZip. Gets one or more blobs in a zip file download. :param [str] blob_ids: @@ -148,10 +153,15 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None): version='4.0', route_values=route_values, query_parameters=query_parameters, - content=content) - return self._deserialize('object', response) - - def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None): + content=content, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): """GetBlobZip. Gets a single blob. :param str repository_id: @@ -177,8 +187,13 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_branch(self, repository_id, name, project=None, base_version_descriptor=None): """GetBranch. @@ -813,7 +828,7 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters=query_parameters) return self._deserialize('GitItem', response) - def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, **kwargs): """GetItemContent. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str repository_id: @@ -856,8 +871,13 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_items(self, repository_id, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, include_links=None, version_descriptor=None): """GetItems. @@ -905,7 +925,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve query_parameters=query_parameters) return self._deserialize('[GitItem]', self._unwrap_collection(response)) - def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, **kwargs): """GetItemText. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str repository_id: @@ -948,10 +968,15 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, **kwargs): """GetItemZip. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str repository_id: @@ -994,8 +1019,13 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_items_batch(self, request_data, repository_id, project=None): """GetItemsBatch. @@ -1068,7 +1098,7 @@ def delete_attachment(self, file_name, repository_id, pull_request_id, project=N version='4.0-preview.1', route_values=route_values) - def get_attachment_content(self, file_name, repository_id, pull_request_id, project=None): + def get_attachment_content(self, file_name, repository_id, pull_request_id, project=None, **kwargs): """GetAttachmentContent. [Preview API] :param str file_name: @@ -1089,8 +1119,13 @@ def get_attachment_content(self, file_name, repository_id, pull_request_id, proj response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_attachments(self, repository_id, pull_request_id, project=None): """GetAttachments. @@ -1113,7 +1148,7 @@ def get_attachments(self, repository_id, pull_request_id, project=None): route_values=route_values) return self._deserialize('[Attachment]', self._unwrap_collection(response)) - def get_attachment_zip(self, file_name, repository_id, pull_request_id, project=None): + def get_attachment_zip(self, file_name, repository_id, pull_request_id, project=None, **kwargs): """GetAttachmentZip. [Preview API] :param str file_name: @@ -1134,8 +1169,13 @@ def get_attachment_zip(self, file_name, repository_id, pull_request_id, project= response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_like(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """CreateLike. @@ -2763,7 +2803,7 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive query_parameters=query_parameters) return self._deserialize('GitTreeRef', response) - def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): + def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None, **kwargs): """GetTreeZip. :param str repository_id: :param str sha1: @@ -2791,6 +2831,11 @@ def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recur location_id='729f6437-6f92-44ec-8bee-273a7111063c', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/vsts/vsts/licensing/v4_0/licensing_client.py index efe2b865..aa151162 100644 --- a/vsts/vsts/licensing/v4_0/licensing_client.py +++ b/vsts/vsts/licensing/v4_0/licensing_client.py @@ -35,15 +35,20 @@ def get_extension_license_usage(self): version='4.0-preview.1') return self._deserialize('[AccountLicenseExtensionUsage]', self._unwrap_collection(response)) - def get_certificate(self): + def get_certificate(self, **kwargs): """GetCertificate. [Preview API] :rtype: object """ response = self._send(http_method='GET', location_id='2e0dbce7-a327-4bc0-a291-056139393f6d', - version='4.0-preview.1') - return self._deserialize('object', response) + version='4.0-preview.1', + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_client_rights(self, right_name=None, product_version=None, edition=None, rel_type=None, include_certificate=None, canary=None, machine_id=None): """GetClientRights. diff --git a/vsts/vsts/release/v4_0/release_client.py b/vsts/vsts/release/v4_0/release_client.py index 78928aef..2ba06910 100644 --- a/vsts/vsts/release/v4_0/release_client.py +++ b/vsts/vsts/release/v4_0/release_client.py @@ -294,7 +294,7 @@ def get_release_definition(self, project, definition_id, property_filters=None): query_parameters=query_parameters) return self._deserialize('ReleaseDefinition', response) - def get_release_definition_revision(self, project, definition_id, revision): + def get_release_definition_revision(self, project, definition_id, revision, **kwargs): """GetReleaseDefinitionRevision. [Preview API] Get release definition of a given revision. :param str project: Project ID or project name @@ -314,8 +314,13 @@ def get_release_definition_revision(self, project, definition_id, revision): location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', version='4.0-preview.3', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None): """GetReleaseDefinitions. @@ -791,7 +796,7 @@ def get_issues(self, project, build_id, source_id=None): query_parameters=query_parameters) return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) - def get_log(self, project, release_id, environment_id, task_id, attempt_id=None): + def get_log(self, project, release_id, environment_id, task_id, attempt_id=None, **kwargs): """GetLog. [Preview API] Gets logs :param str project: Project ID or project name @@ -817,10 +822,15 @@ def get_log(self, project, release_id, environment_id, task_id, attempt_id=None) location_id='e71ba1ed-c0a4-4a28-a61f-2dd5f68cf3fd', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_logs(self, project, release_id): + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_logs(self, project, release_id, **kwargs): """GetLogs. [Preview API] Get logs for a release Id. :param str project: Project ID or project name @@ -835,10 +845,15 @@ def get_logs(self, project, release_id): response = self._send(http_method='GET', location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', version='4.0-preview.2', - route_values=route_values) - return self._deserialize('object', response) - - def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id): + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, **kwargs): """GetTaskLog. [Preview API] Gets the task log of a release as a plain text file. :param str project: Project ID or project name @@ -862,8 +877,13 @@ def get_task_log(self, project, release_id, environment_id, release_deploy_phase response = self._send(http_method='GET', location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', version='4.0-preview.2', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_manual_intervention(self, project, release_id, manual_intervention_id): """GetManualIntervention. @@ -1138,7 +1158,7 @@ def get_release_definition_summary(self, project, definition_id, release_count, query_parameters=query_parameters) return self._deserialize('ReleaseDefinitionSummary', response) - def get_release_revision(self, project, release_id, definition_snapshot_revision): + def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): """GetReleaseRevision. [Preview API] Get release for a given revision number. :param str project: Project ID or project name @@ -1158,8 +1178,13 @@ def get_release_revision(self, project, release_id, definition_snapshot_revision location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', version='4.0-preview.4', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def undelete_release(self, project, release_id, comment): """UndeleteRelease. @@ -1257,7 +1282,7 @@ def update_release_settings(self, release_settings, project): content=content) return self._deserialize('ReleaseSettings', response) - def get_definition_revision(self, project, definition_id, revision): + def get_definition_revision(self, project, definition_id, revision, **kwargs): """GetDefinitionRevision. [Preview API] :param str project: Project ID or project name @@ -1275,8 +1300,13 @@ def get_definition_revision(self, project, definition_id, revision): response = self._send(http_method='GET', location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_release_definition_history(self, project, definition_id): """GetReleaseDefinitionHistory. diff --git a/vsts/vsts/task/v4_0/task_client.py b/vsts/vsts/task/v4_0/task_client.py index 77dd33ea..1d18c989 100644 --- a/vsts/vsts/task/v4_0/task_client.py +++ b/vsts/vsts/task/v4_0/task_client.py @@ -119,7 +119,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor route_values=route_values) return self._deserialize('TaskAttachment', response) - def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name, **kwargs): """GetAttachmentContent. [Preview API] :param str scope_identifier: The project GUID to scope the request @@ -149,8 +149,13 @@ def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_i response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, record_id, type): """GetAttachments. diff --git a/vsts/vsts/task_agent/v4_0/task_agent_client.py b/vsts/vsts/task_agent/v4_0/task_agent_client.py index a9289e35..b88abe6c 100644 --- a/vsts/vsts/task_agent/v4_0/task_agent_client.py +++ b/vsts/vsts/task_agent/v4_0/task_agent_client.py @@ -1107,7 +1107,7 @@ def get_agent_pool_maintenance_job(self, pool_id, job_id): route_values=route_values) return self._deserialize('TaskAgentPoolMaintenanceJob', response) - def get_agent_pool_maintenance_job_logs(self, pool_id, job_id): + def get_agent_pool_maintenance_job_logs(self, pool_id, job_id, **kwargs): """GetAgentPoolMaintenanceJobLogs. [Preview API] :param int pool_id: @@ -1122,8 +1122,13 @@ def get_agent_pool_maintenance_job_logs(self, pool_id, job_id): response = self._send(http_method='GET', location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_agent_pool_maintenance_jobs(self, pool_id, definition_id=None): """GetAgentPoolMaintenanceJobs. @@ -1562,7 +1567,7 @@ def delete_secure_file(self, project, secure_file_id): version='4.0-preview.1', route_values=route_values) - def download_secure_file(self, project, secure_file_id, ticket, download=None): + def download_secure_file(self, project, secure_file_id, ticket, download=None, **kwargs): """DownloadSecureFile. [Preview API] Download a secure file by Id :param str project: Project ID or project name @@ -1585,8 +1590,13 @@ def download_secure_file(self, project, secure_file_id, ticket, download=None): location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_secure_file(self, project, secure_file_id, include_download_ticket=None): """GetSecureFile. @@ -2012,7 +2022,7 @@ def get_task_group(self, project, task_group_id, version_spec, expanded=None): query_parameters=query_parameters) return self._deserialize('TaskGroup', response) - def get_task_group_revision(self, project, task_group_id, revision): + def get_task_group_revision(self, project, task_group_id, revision, **kwargs): """GetTaskGroupRevision. [Preview API] :param str project: Project ID or project name @@ -2032,8 +2042,13 @@ def get_task_group_revision(self, project, task_group_id, revision): location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_filter=None, deleted=None): """GetTaskGroups. @@ -2161,7 +2176,7 @@ def delete_task_definition(self, task_id): version='4.0', route_values=route_values) - def get_task_content_zip(self, task_id, version_string, visibility=None, scope_local=None): + def get_task_content_zip(self, task_id, version_string, visibility=None, scope_local=None, **kwargs): """GetTaskContentZip. :param str task_id: :param str version_string: @@ -2183,8 +2198,13 @@ def get_task_content_zip(self, task_id, version_string, visibility=None, scope_l location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_task_definition(self, task_id, version_string, visibility=None, scope_local=None): """GetTaskDefinition. diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index 641cb417..8ba88027 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -107,7 +107,7 @@ def create_test_result_attachment(self, attachment_request_model, project, run_i content=content) return self._deserialize('TestAttachmentReference', response) - def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id): + def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id, **kwargs): """GetTestResultAttachmentContent. [Preview API] Returns a test result attachment :param str project: Project ID or project name @@ -128,8 +128,13 @@ def get_test_result_attachment_content(self, project, run_id, test_case_result_i response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_test_result_attachments(self, project, run_id, test_case_result_id): """GetTestResultAttachments. @@ -152,7 +157,7 @@ def get_test_result_attachments(self, project, run_id, test_case_result_id): route_values=route_values) return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) - def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id): + def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id, **kwargs): """GetTestResultAttachmentZip. [Preview API] Returns a test result attachment :param str project: Project ID or project name @@ -173,8 +178,13 @@ def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, a response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_test_run_attachment(self, attachment_request_model, project, run_id): """CreateTestRunAttachment. @@ -197,7 +207,7 @@ def create_test_run_attachment(self, attachment_request_model, project, run_id): content=content) return self._deserialize('TestAttachmentReference', response) - def get_test_run_attachment_content(self, project, run_id, attachment_id): + def get_test_run_attachment_content(self, project, run_id, attachment_id, **kwargs): """GetTestRunAttachmentContent. [Preview API] Returns a test run attachment :param str project: Project ID or project name @@ -215,8 +225,13 @@ def get_test_run_attachment_content(self, project, run_id, attachment_id): response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_test_run_attachments(self, project, run_id): """GetTestRunAttachments. @@ -236,7 +251,7 @@ def get_test_run_attachments(self, project, run_id): route_values=route_values) return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) - def get_test_run_attachment_zip(self, project, run_id, attachment_id): + def get_test_run_attachment_zip(self, project, run_id, attachment_id, **kwargs): """GetTestRunAttachmentZip. [Preview API] Returns a test run attachment :param str project: Project ID or project name @@ -254,8 +269,13 @@ def get_test_run_attachment_zip(self, project, run_id, attachment_id): response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): """GetBugsLinkedToTestResult. diff --git a/vsts/vsts/tfvc/v4_0/tfvc_client.py b/vsts/vsts/tfvc/v4_0/tfvc_client.py index 4eb5b215..e6d410dc 100644 --- a/vsts/vsts/tfvc/v4_0/tfvc_client.py +++ b/vsts/vsts/tfvc/v4_0/tfvc_client.py @@ -300,7 +300,7 @@ def get_items_batch(self, item_request_data, project=None): content=content) return self._deserialize('[[TfvcItem]]', self._unwrap_collection(response)) - def get_items_batch_zip(self, item_request_data, project=None): + def get_items_batch_zip(self, item_request_data, project=None, **kwargs): """GetItemsBatchZip. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. :param :class:` ` item_request_data: @@ -315,8 +315,13 @@ def get_items_batch_zip(self, item_request_data, project=None): location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', version='4.0', route_values=route_values, - content=content) - return self._deserialize('object', response) + content=content, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): """GetItem. @@ -358,7 +363,7 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters=query_parameters) return self._deserialize('TfvcItem', response) - def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, **kwargs): """GetItemContent. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: @@ -395,8 +400,13 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_items(self, project=None, scope_path=None, recursion_level=None, include_links=None, version_descriptor=None): """GetItems. @@ -432,7 +442,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include query_parameters=query_parameters) return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) - def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, **kwargs): """GetItemText. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: @@ -469,10 +479,15 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) - def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, **kwargs): """GetItemZip. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. :param str path: @@ -509,8 +524,13 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_label_items(self, label_id, top=None, skip=None): """GetLabelItems. diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/vsts/vsts/wiki/v4_0/wiki_client.py index 7e6815a8..ebd75092 100644 --- a/vsts/vsts/wiki/v4_0/wiki_client.py +++ b/vsts/vsts/wiki/v4_0/wiki_client.py @@ -115,7 +115,7 @@ def get_pages(self, project, wiki_id, path=None, recursion_level=None, version_d query_parameters=query_parameters) return self._deserialize('[WikiPage]', self._unwrap_collection(response)) - def get_page_text(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): + def get_page_text(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None, **kwargs): """GetPageText. [Preview API] Gets metadata or content of the wiki pages under the provided page path. :param str project: Project ID or project name @@ -146,10 +146,15 @@ def get_page_text(self, project, wiki_id, path=None, recursion_level=None, versi location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) - def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): + def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None, **kwargs): """GetPageZip. [Preview API] Gets metadata or content of the wiki pages under the provided page path. :param str project: Project ID or project name @@ -180,8 +185,13 @@ def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, versio location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def create_update(self, update, project, wiki_id, version_descriptor=None): """CreateUpdate. diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index ccc70891..69e222cf 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -73,7 +73,7 @@ def create_attachment(self, upload_stream, file_name=None, upload_type=None, are media_type='application/octet-stream') return self._deserialize('AttachmentReference', response) - def get_attachment_content(self, id, file_name=None): + def get_attachment_content(self, id, file_name=None, **kwargs): """GetAttachmentContent. Returns an attachment :param str id: @@ -90,10 +90,15 @@ def get_attachment_content(self, id, file_name=None): location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def get_attachment_zip(self, id, file_name=None): + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_attachment_zip(self, id, file_name=None, **kwargs): """GetAttachmentZip. Returns an attachment :param str id: @@ -110,8 +115,13 @@ def get_attachment_zip(self, id, file_name=None): location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', version='4.0', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_root_nodes(self, project, depth=None): """GetRootNodes. @@ -988,7 +998,7 @@ def get_work_item_icons(self): version='4.0-preview.1') return self._deserialize('[WorkItemIcon]', self._unwrap_collection(response)) - def get_work_item_icon_svg(self, icon, color=None, v=None): + def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): """GetWorkItemIconSvg. [Preview API] Get a work item icon svg by icon friendly name and icon color :param str icon: @@ -1008,8 +1018,13 @@ def get_work_item_icon_svg(self, icon, color=None, v=None): location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='image/svg+xml') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def get_reporting_links(self, project=None, types=None, continuation_token=None, start_date_time=None): """GetReportingLinks. diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py index 4c9071e4..9a290a73 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py @@ -77,7 +77,7 @@ def check_template_existence(self, upload_stream): media_type='application/octet-stream') return self._deserialize('CheckTemplateExistenceResult', response) - def export_process_template(self, id): + def export_process_template(self, id, **kwargs): """ExportProcessTemplate. [Preview API] Returns requested process template :param str id: @@ -92,8 +92,13 @@ def export_process_template(self, id): location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', version='4.0-preview.1', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) def import_process_template(self, upload_stream, ignore_warnings=None): """ImportProcessTemplate. From 2051bc2f1a87743dbaa61a330102aa77928df3ec Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 9 Jan 2019 19:08:11 -0500 Subject: [PATCH 093/191] bump version to 0.1.24 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 0fa30ee9..952d38b5 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.23" +VERSION = "0.1.24" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 2a55b701..801a7935 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.23" +VERSION = "0.1.24" From b0524addb57024354d53fdff18a5f14cd33add42 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 11 Jan 2019 14:53:12 -0500 Subject: [PATCH 094/191] Fix support for client uploads --- vsts/vsts/build/v4_1/models/__init__.py | 4 +- .../build/v4_1/models/build_definition.py | 8 +-- vsts/vsts/gallery/v4_0/gallery_client.py | 24 +++++-- vsts/vsts/gallery/v4_1/gallery_client.py | 72 ++++++++++++++----- vsts/vsts/git/v4_0/git_client_base.py | 8 ++- vsts/vsts/git/v4_1/git_client_base.py | 8 ++- vsts/vsts/task/v4_0/task_client.py | 16 +++-- vsts/vsts/task/v4_1/task_client.py | 16 +++-- .../vsts/task_agent/v4_0/task_agent_client.py | 8 ++- vsts/vsts/wiki/v4_0/wiki_client.py | 8 ++- vsts/vsts/wiki/v4_1/wiki_client.py | 8 ++- .../v4_0/work_item_tracking_client.py | 8 ++- .../v4_1/work_item_tracking_client.py | 8 ++- ...k_item_tracking_process_template_client.py | 16 +++-- ...k_item_tracking_process_template_client.py | 16 +++-- 15 files changed, 165 insertions(+), 63 deletions(-) diff --git a/vsts/vsts/build/v4_1/models/__init__.py b/vsts/vsts/build/v4_1/models/__init__.py index 1ca89425..235110c5 100644 --- a/vsts/vsts/build/v4_1/models/__init__.py +++ b/vsts/vsts/build/v4_1/models/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -21,7 +21,6 @@ from .build_controller import BuildController from .build_definition import BuildDefinition from .build_definition3_2 import BuildDefinition3_2 -from .build_definition_counter import BuildDefinitionCounter from .build_definition_reference import BuildDefinitionReference from .build_definition_reference3_2 import BuildDefinitionReference3_2 from .build_definition_revision import BuildDefinitionRevision @@ -95,7 +94,6 @@ 'BuildController', 'BuildDefinition', 'BuildDefinition3_2', - 'BuildDefinitionCounter', 'BuildDefinitionReference', 'BuildDefinitionReference3_2', 'BuildDefinitionRevision', diff --git a/vsts/vsts/build/v4_1/models/build_definition.py b/vsts/vsts/build/v4_1/models/build_definition.py index 91cc7114..b7adaf5b 100644 --- a/vsts/vsts/build/v4_1/models/build_definition.py +++ b/vsts/vsts/build/v4_1/models/build_definition.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -56,8 +56,6 @@ class BuildDefinition(BuildDefinitionReference): :type build_number_format: str :param comment: A save-time comment for the definition. :type comment: str - :param counters: - :type counters: dict :param demands: :type demands: list of :class:`object ` :param description: The description. @@ -115,7 +113,6 @@ class BuildDefinition(BuildDefinitionReference): 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, 'comment': {'key': 'comment', 'type': 'str'}, - 'counters': {'key': 'counters', 'type': '{BuildDefinitionCounter}'}, 'demands': {'key': 'demands', 'type': '[object]'}, 'description': {'key': 'description', 'type': 'str'}, 'drop_location': {'key': 'dropLocation', 'type': 'str'}, @@ -134,12 +131,11 @@ class BuildDefinition(BuildDefinitionReference): 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, counters=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, latest_build=latest_build, latest_completed_build=latest_completed_build, metrics=metrics, quality=quality, queue=queue) self.badge_enabled = badge_enabled self.build_number_format = build_number_format self.comment = comment - self.counters = counters self.demands = demands self.description = description self.drop_location = drop_location diff --git a/vsts/vsts/gallery/v4_0/gallery_client.py b/vsts/vsts/gallery/v4_0/gallery_client.py index 475c17af..89d3d43c 100644 --- a/vsts/vsts/gallery/v4_0/gallery_client.py +++ b/vsts/vsts/gallery/v4_0/gallery_client.py @@ -466,13 +466,17 @@ def query_extensions(self, extension_query, account_token=None): content=content) return self._deserialize('ExtensionQueryResult', response) - def create_extension(self, upload_stream): + def create_extension(self, upload_stream, **kwargs): """CreateExtension. [Preview API] :param object upload_stream: Stream to upload :rtype: :class:` ` """ - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', version='4.0-preview.2', @@ -536,7 +540,7 @@ def update_extension_by_id(self, extension_id): route_values=route_values) return self._deserialize('PublishedExtension', response) - def create_extension_with_publisher(self, upload_stream, publisher_name): + def create_extension_with_publisher(self, upload_stream, publisher_name, **kwargs): """CreateExtensionWithPublisher. [Preview API] :param object upload_stream: Stream to upload @@ -546,7 +550,11 @@ def create_extension_with_publisher(self, upload_stream, publisher_name): route_values = {} if publisher_name is not None: route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', version='4.0-preview.2', @@ -605,7 +613,7 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) - def update_extension(self, upload_stream, publisher_name, extension_name): + def update_extension(self, upload_stream, publisher_name, extension_name, **kwargs): """UpdateExtension. [Preview API] :param object upload_stream: Stream to upload @@ -618,7 +626,11 @@ def update_extension(self, upload_stream, publisher_name, extension_name): route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') if extension_name is not None: route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', version='4.0-preview.2', diff --git a/vsts/vsts/gallery/v4_1/gallery_client.py b/vsts/vsts/gallery/v4_1/gallery_client.py index 24536a77..eb9f3091 100644 --- a/vsts/vsts/gallery/v4_1/gallery_client.py +++ b/vsts/vsts/gallery/v4_1/gallery_client.py @@ -447,7 +447,7 @@ def perform_edit_extension_draft_operation(self, draft_patch, publisher_name, ex content=content) return self._deserialize('ExtensionDraft', response) - def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_name, extension_name, draft_id, file_name=None): + def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_name, extension_name, draft_id, file_name=None, **kwargs): """UpdatePayloadInDraftForEditExtension. [Preview API] :param object upload_stream: Stream to upload @@ -464,7 +464,11 @@ def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_na route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') if draft_id is not None: route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', version='4.1-preview.1', @@ -473,7 +477,7 @@ def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_na media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) - def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, extension_name, draft_id, asset_type): + def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, extension_name, draft_id, asset_type, **kwargs): """AddAssetForEditExtensionDraft. [Preview API] :param object upload_stream: Stream to upload @@ -492,7 +496,11 @@ def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, exte route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') if asset_type is not None: route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='f1db9c47-6619-4998-a7e5-d7f9f41a4617', version='4.1-preview.1', @@ -501,7 +509,7 @@ def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, exte media_type='application/octet-stream') return self._deserialize('ExtensionDraftAsset', response) - def create_draft_for_new_extension(self, upload_stream, publisher_name, product, file_name=None): + def create_draft_for_new_extension(self, upload_stream, publisher_name, product, file_name=None, **kwargs): """CreateDraftForNewExtension. [Preview API] :param object upload_stream: Stream to upload @@ -513,7 +521,11 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, route_values = {} if publisher_name is not None: route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', version='4.1-preview.1', @@ -543,7 +555,7 @@ def perform_new_extension_draft_operation(self, draft_patch, publisher_name, dra content=content) return self._deserialize('ExtensionDraft', response) - def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_name, draft_id, file_name=None): + def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_name, draft_id, file_name=None, **kwargs): """UpdatePayloadInDraftForNewExtension. [Preview API] :param object upload_stream: Stream to upload @@ -557,7 +569,11 @@ def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_nam route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') if draft_id is not None: route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', version='4.1-preview.1', @@ -566,7 +582,7 @@ def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_nam media_type='application/octet-stream') return self._deserialize('ExtensionDraft', response) - def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft_id, asset_type): + def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft_id, asset_type, **kwargs): """AddAssetForNewExtensionDraft. [Preview API] :param object upload_stream: Stream to upload @@ -582,7 +598,11 @@ def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') if asset_type is not None: route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', version='4.1-preview.1', @@ -709,13 +729,17 @@ def query_extensions(self, extension_query, account_token=None): content=content) return self._deserialize('ExtensionQueryResult', response) - def create_extension(self, upload_stream): + def create_extension(self, upload_stream, **kwargs): """CreateExtension. [Preview API] :param object upload_stream: Stream to upload :rtype: :class:` ` """ - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', version='4.1-preview.2', @@ -779,7 +803,7 @@ def update_extension_by_id(self, extension_id): route_values=route_values) return self._deserialize('PublishedExtension', response) - def create_extension_with_publisher(self, upload_stream, publisher_name): + def create_extension_with_publisher(self, upload_stream, publisher_name, **kwargs): """CreateExtensionWithPublisher. [Preview API] :param object upload_stream: Stream to upload @@ -789,7 +813,11 @@ def create_extension_with_publisher(self, upload_stream, publisher_name): route_values = {} if publisher_name is not None: route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', version='4.1-preview.2', @@ -848,7 +876,7 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) - def update_extension(self, upload_stream, publisher_name, extension_name): + def update_extension(self, upload_stream, publisher_name, extension_name, **kwargs): """UpdateExtension. [Preview API] :param object upload_stream: Stream to upload @@ -861,7 +889,11 @@ def update_extension(self, upload_stream, publisher_name, extension_name): route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') if extension_name is not None: route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', version='4.1-preview.2', @@ -1032,7 +1064,7 @@ def get_publisher_asset(self, publisher_name, asset_type=None, **kwargs): callback = None return self._client.stream_download(response, callback=callback) - def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, file_name=None): + def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, file_name=None, **kwargs): """UpdatePublisherAsset. [Preview API] Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values. :param object upload_stream: Stream to upload @@ -1047,7 +1079,11 @@ def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, query_parameters = {} if asset_type is not None: query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='21143299-34f9-4c62-8ca8-53da691192f9', version='4.1-preview.1', diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/vsts/vsts/git/v4_0/git_client_base.py index f174a315..79fa509a 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/vsts/vsts/git/v4_0/git_client_base.py @@ -1048,7 +1048,7 @@ def get_items_batch(self, request_data, repository_id, project=None): content=content) return self._deserialize('[[GitItem]]', self._unwrap_collection(response)) - def create_attachment(self, upload_stream, file_name, repository_id, pull_request_id, project=None): + def create_attachment(self, upload_stream, file_name, repository_id, pull_request_id, project=None, **kwargs): """CreateAttachment. [Preview API] Create a new attachment :param object upload_stream: Stream to upload @@ -1067,7 +1067,11 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') if pull_request_id is not None: route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.0-preview.1', diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/vsts/vsts/git/v4_1/git_client_base.py index e91e63b4..a1aa9b5c 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/vsts/vsts/git/v4_1/git_client_base.py @@ -1071,7 +1071,7 @@ def get_merge_bases(self, repository_name_or_id, commit_id, other_commit_id, pro query_parameters=query_parameters) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) - def create_attachment(self, upload_stream, file_name, repository_id, pull_request_id, project=None): + def create_attachment(self, upload_stream, file_name, repository_id, pull_request_id, project=None, **kwargs): """CreateAttachment. [Preview API] Attach a new file to a pull request. :param object upload_stream: Stream to upload @@ -1090,7 +1090,11 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') if pull_request_id is not None: route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', version='4.1-preview.1', diff --git a/vsts/vsts/task/v4_0/task_client.py b/vsts/vsts/task/v4_0/task_client.py index 1d18c989..068b4010 100644 --- a/vsts/vsts/task/v4_0/task_client.py +++ b/vsts/vsts/task/v4_0/task_client.py @@ -49,7 +49,7 @@ def get_plan_attachments(self, scope_identifier, hub_name, plan_id, type): route_values=route_values) return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) - def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name, **kwargs): """CreateAttachment. [Preview API] :param object upload_stream: Stream to upload @@ -77,7 +77,11 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, route_values['type'] = self._serialize.url('type', type, 'str') if name is not None: route_values['name'] = self._serialize.url('name', name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='7898f959-9cdf-4096-b29e-7f293031629e', version='4.0-preview.1', @@ -214,7 +218,7 @@ def append_timeline_record_feed(self, lines, scope_identifier, hub_name, plan_id route_values=route_values, content=content) - def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id): + def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id, **kwargs): """AppendLogContent. :param object upload_stream: Stream to upload :param str scope_identifier: The project GUID to scope the request @@ -232,7 +236,11 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') if log_id is not None: route_values['logId'] = self._serialize.url('log_id', log_id, 'int') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', version='4.0', diff --git a/vsts/vsts/task/v4_1/task_client.py b/vsts/vsts/task/v4_1/task_client.py index fd618acb..fce502f9 100644 --- a/vsts/vsts/task/v4_1/task_client.py +++ b/vsts/vsts/task/v4_1/task_client.py @@ -49,7 +49,7 @@ def get_plan_attachments(self, scope_identifier, hub_name, plan_id, type): route_values=route_values) return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) - def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name): + def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, timeline_id, record_id, type, name, **kwargs): """CreateAttachment. [Preview API] :param object upload_stream: Stream to upload @@ -77,7 +77,11 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, route_values['type'] = self._serialize.url('type', type, 'str') if name is not None: route_values['name'] = self._serialize.url('name', name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='7898f959-9cdf-4096-b29e-7f293031629e', version='4.1-preview.1', @@ -187,7 +191,7 @@ def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, reco route_values=route_values) return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) - def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id): + def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id, **kwargs): """AppendLogContent. :param object upload_stream: Stream to upload :param str scope_identifier: The project GUID to scope the request @@ -205,7 +209,11 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') if log_id is not None: route_values['logId'] = self._serialize.url('log_id', log_id, 'int') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', version='4.1', diff --git a/vsts/vsts/task_agent/v4_0/task_agent_client.py b/vsts/vsts/task_agent/v4_0/task_agent_client.py index b88abe6c..1626fb5d 100644 --- a/vsts/vsts/task_agent/v4_0/task_agent_client.py +++ b/vsts/vsts/task_agent/v4_0/task_agent_client.py @@ -1733,7 +1733,7 @@ def update_secure_files(self, secure_files, project): content=content) return self._deserialize('[SecureFile]', self._unwrap_collection(response)) - def upload_secure_file(self, upload_stream, project, name): + def upload_secure_file(self, upload_stream, project, name, **kwargs): """UploadSecureFile. [Preview API] Upload a secure file, include the file stream in the request body :param object upload_stream: Stream to upload @@ -1747,7 +1747,11 @@ def upload_secure_file(self, upload_stream, project, name): query_parameters = {} if name is not None: query_parameters['name'] = self._serialize.query('name', name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', version='4.0-preview.1', diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/vsts/vsts/wiki/v4_0/wiki_client.py index ebd75092..6c3e2cac 100644 --- a/vsts/vsts/wiki/v4_0/wiki_client.py +++ b/vsts/vsts/wiki/v4_0/wiki_client.py @@ -25,7 +25,7 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' - def create_attachment(self, upload_stream, project, wiki_id, name): + def create_attachment(self, upload_stream, project, wiki_id, name, **kwargs): """CreateAttachment. [Preview API] Use this API to create an attachment in the wiki. :param object upload_stream: Stream to upload @@ -42,7 +42,11 @@ def create_attachment(self, upload_stream, project, wiki_id, name): query_parameters = {} if name is not None: query_parameters['name'] = self._serialize.query('name', name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', version='4.0-preview.1', diff --git a/vsts/vsts/wiki/v4_1/wiki_client.py b/vsts/vsts/wiki/v4_1/wiki_client.py index 26764617..6ff6aec6 100644 --- a/vsts/vsts/wiki/v4_1/wiki_client.py +++ b/vsts/vsts/wiki/v4_1/wiki_client.py @@ -25,7 +25,7 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' - def create_attachment(self, upload_stream, project, wiki_identifier, name): + def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwargs): """CreateAttachment. Creates an attachment in the wiki. :param object upload_stream: Stream to upload @@ -41,7 +41,11 @@ def create_attachment(self, upload_stream, project, wiki_identifier, name): route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') if name is not None: route_values['name'] = self._serialize.url('name', name, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', version='4.1', diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py index 69e222cf..c247d731 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py @@ -48,7 +48,7 @@ def get_work_item_ids_for_artifact_uris(self, artifact_uri_query): content=content) return self._deserialize('ArtifactUriQueryResult', response) - def create_attachment(self, upload_stream, file_name=None, upload_type=None, area_path=None): + def create_attachment(self, upload_stream, file_name=None, upload_type=None, area_path=None, **kwargs): """CreateAttachment. Creates an attachment. :param object upload_stream: Stream to upload @@ -64,7 +64,11 @@ def create_attachment(self, upload_stream, file_name=None, upload_type=None, are query_parameters['uploadType'] = self._serialize.query('upload_type', upload_type, 'str') if area_path is not None: query_parameters['areaPath'] = self._serialize.query('area_path', area_path, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', version='4.0', diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py index eb586023..ca90f6b5 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py @@ -53,7 +53,7 @@ def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): content=content) return self._deserialize('ArtifactUriQueryResult', response) - def create_attachment(self, upload_stream, project=None, file_name=None, upload_type=None, area_path=None): + def create_attachment(self, upload_stream, project=None, file_name=None, upload_type=None, area_path=None, **kwargs): """CreateAttachment. Uploads an attachment. :param object upload_stream: Stream to upload @@ -73,7 +73,11 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ query_parameters['uploadType'] = self._serialize.query('upload_type', upload_type, 'str') if area_path is not None: query_parameters['areaPath'] = self._serialize.query('area_path', area_path, 'str') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', version='4.1', diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py index 9a290a73..96d2060a 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py @@ -60,7 +60,7 @@ def get_behaviors(self, process_id): route_values=route_values) return self._deserialize('[AdminBehavior]', self._unwrap_collection(response)) - def check_template_existence(self, upload_stream): + def check_template_existence(self, upload_stream, **kwargs): """CheckTemplateExistence. [Preview API] Check if process template exists :param object upload_stream: Stream to upload @@ -68,7 +68,11 @@ def check_template_existence(self, upload_stream): """ route_values = {} route_values['action'] = 'CheckTemplateExistence' - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', version='4.0-preview.1', @@ -100,7 +104,7 @@ def export_process_template(self, id, **kwargs): callback = None return self._client.stream_download(response, callback=callback) - def import_process_template(self, upload_stream, ignore_warnings=None): + def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs): """ImportProcessTemplate. [Preview API] :param object upload_stream: Stream to upload @@ -112,7 +116,11 @@ def import_process_template(self, upload_stream, ignore_warnings=None): query_parameters = {} if ignore_warnings is not None: query_parameters['ignoreWarnings'] = self._serialize.query('ignore_warnings', ignore_warnings, 'bool') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', version='4.0-preview.1', diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py index 19a8b8fa..583c9253 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py +++ b/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py @@ -60,7 +60,7 @@ def get_behaviors(self, process_id): route_values=route_values) return self._deserialize('[AdminBehavior]', self._unwrap_collection(response)) - def check_template_existence(self, upload_stream): + def check_template_existence(self, upload_stream, **kwargs): """CheckTemplateExistence. [Preview API] Check if process template exists. :param object upload_stream: Stream to upload @@ -68,7 +68,11 @@ def check_template_existence(self, upload_stream): """ route_values = {} route_values['action'] = 'CheckTemplateExistence' - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', version='4.1-preview.1', @@ -98,7 +102,7 @@ def export_process_template(self, id, **kwargs): callback = None return self._client.stream_download(response, callback=callback) - def import_process_template(self, upload_stream, ignore_warnings=None): + def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs): """ImportProcessTemplate. [Preview API] Imports a process from zip file. :param object upload_stream: Stream to upload @@ -110,7 +114,11 @@ def import_process_template(self, upload_stream, ignore_warnings=None): query_parameters = {} if ignore_warnings is not None: query_parameters['ignoreWarnings'] = self._serialize.query('ignore_warnings', ignore_warnings, 'bool') - content = self._serialize.body(upload_stream, 'object') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', version='4.1-preview.1', From 951ae4360dd51ad692efd475cec5afac356ece64 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 11 Jan 2019 15:45:38 -0500 Subject: [PATCH 095/191] Bump version to 0.1.25 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 952d38b5..6fcf2e3b 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.24" +VERSION = "0.1.25" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 801a7935..4ec74a9b 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.24" +VERSION = "0.1.25" From 0a068f105daa45111ce527126cf7824483c32609 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 15 Jan 2019 10:19:08 -0500 Subject: [PATCH 096/191] Fix for enum references within collections --- vsts/vsts/build/v4_1/models/repository_webhook.py | 4 ++-- vsts/vsts/build/v4_1/models/supported_trigger.py | 4 ++-- .../v4_1/models/web_api_load_test_machine_input.py | 4 ++-- vsts/vsts/dashboard/v4_0/models/widget_metadata.py | 2 +- vsts/vsts/dashboard/v4_1/models/widget_metadata.py | 4 ++-- vsts/vsts/release/v4_0/models/mail_message.py | 2 +- vsts/vsts/release/v4_1/models/mail_message.py | 4 ++-- vsts/vsts/work/v4_0/models/team_setting.py | 2 +- vsts/vsts/work/v4_0/models/team_settings_patch.py | 2 +- vsts/vsts/work/v4_1/models/team_setting.py | 2 +- vsts/vsts/work/v4_1/models/team_settings_patch.py | 2 +- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/vsts/vsts/build/v4_1/models/repository_webhook.py b/vsts/vsts/build/v4_1/models/repository_webhook.py index 31487a63..91fb6357 100644 --- a/vsts/vsts/build/v4_1/models/repository_webhook.py +++ b/vsts/vsts/build/v4_1/models/repository_webhook.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -22,7 +22,7 @@ class RepositoryWebhook(Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'types': {'key': 'types', 'type': '[DefinitionTriggerType]'}, + 'types': {'key': 'types', 'type': '[object]'}, 'url': {'key': 'url', 'type': 'str'} } diff --git a/vsts/vsts/build/v4_1/models/supported_trigger.py b/vsts/vsts/build/v4_1/models/supported_trigger.py index 7e446749..d0dcfa54 100644 --- a/vsts/vsts/build/v4_1/models/supported_trigger.py +++ b/vsts/vsts/build/v4_1/models/supported_trigger.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -25,7 +25,7 @@ class SupportedTrigger(Model): _attribute_map = { 'default_polling_interval': {'key': 'defaultPollingInterval', 'type': 'int'}, 'notification_type': {'key': 'notificationType', 'type': 'str'}, - 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{SupportLevel}'}, + 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{object}'}, 'type': {'key': 'type', 'type': 'object'} } diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py index 50e8c6fe..b7acfc63 100644 --- a/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py +++ b/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -26,7 +26,7 @@ class WebApiLoadTestMachineInput(Model): 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, 'machine_type': {'key': 'machineType', 'type': 'object'}, 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, - 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[TestRunType]'} + 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[object]'} } def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None): diff --git a/vsts/vsts/dashboard/v4_0/models/widget_metadata.py b/vsts/vsts/dashboard/v4_0/models/widget_metadata.py index d6dd1f50..9ca6ace8 100644 --- a/vsts/vsts/dashboard/v4_0/models/widget_metadata.py +++ b/vsts/vsts/dashboard/v4_0/models/widget_metadata.py @@ -75,7 +75,7 @@ class WidgetMetadata(Model): 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[WidgetScope]'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[object]'}, 'targets': {'key': 'targets', 'type': '[str]'}, 'type_id': {'key': 'typeId', 'type': 'str'} } diff --git a/vsts/vsts/dashboard/v4_1/models/widget_metadata.py b/vsts/vsts/dashboard/v4_1/models/widget_metadata.py index 0d9076eb..32ee08d6 100644 --- a/vsts/vsts/dashboard/v4_1/models/widget_metadata.py +++ b/vsts/vsts/dashboard/v4_1/models/widget_metadata.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -75,7 +75,7 @@ class WidgetMetadata(Model): 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[WidgetScope]'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[object]'}, 'targets': {'key': 'targets', 'type': '[str]'}, 'type_id': {'key': 'typeId', 'type': 'str'} } diff --git a/vsts/vsts/release/v4_0/models/mail_message.py b/vsts/vsts/release/v4_0/models/mail_message.py index abaaf812..90450f0a 100644 --- a/vsts/vsts/release/v4_0/models/mail_message.py +++ b/vsts/vsts/release/v4_0/models/mail_message.py @@ -41,7 +41,7 @@ class MailMessage(Model): 'message_id': {'key': 'messageId', 'type': 'str'}, 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, - 'sections': {'key': 'sections', 'type': '[MailSectionType]'}, + 'sections': {'key': 'sections', 'type': '[object]'}, 'sender_type': {'key': 'senderType', 'type': 'object'}, 'subject': {'key': 'subject', 'type': 'str'}, 'to': {'key': 'to', 'type': 'EmailRecipients'} diff --git a/vsts/vsts/release/v4_1/models/mail_message.py b/vsts/vsts/release/v4_1/models/mail_message.py index ada7b400..2ea90a37 100644 --- a/vsts/vsts/release/v4_1/models/mail_message.py +++ b/vsts/vsts/release/v4_1/models/mail_message.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -41,7 +41,7 @@ class MailMessage(Model): 'message_id': {'key': 'messageId', 'type': 'str'}, 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, - 'sections': {'key': 'sections', 'type': '[MailSectionType]'}, + 'sections': {'key': 'sections', 'type': '[object]'}, 'sender_type': {'key': 'senderType', 'type': 'object'}, 'subject': {'key': 'subject', 'type': 'str'}, 'to': {'key': 'to', 'type': 'EmailRecipients'} diff --git a/vsts/vsts/work/v4_0/models/team_setting.py b/vsts/vsts/work/v4_0/models/team_setting.py index 2f08d45d..66afb55d 100644 --- a/vsts/vsts/work/v4_0/models/team_setting.py +++ b/vsts/vsts/work/v4_0/models/team_setting.py @@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[str]'} + 'working_days': {'key': 'workingDays', 'type': '[object]'} } def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): diff --git a/vsts/vsts/work/v4_0/models/team_settings_patch.py b/vsts/vsts/work/v4_0/models/team_settings_patch.py index e8930f24..da9da2dc 100644 --- a/vsts/vsts/work/v4_0/models/team_settings_patch.py +++ b/vsts/vsts/work/v4_0/models/team_settings_patch.py @@ -32,7 +32,7 @@ class TeamSettingsPatch(Model): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[str]'} + 'working_days': {'key': 'workingDays', 'type': '[object]'} } def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): diff --git a/vsts/vsts/work/v4_1/models/team_setting.py b/vsts/vsts/work/v4_1/models/team_setting.py index 35eb4704..8b0b0914 100644 --- a/vsts/vsts/work/v4_1/models/team_setting.py +++ b/vsts/vsts/work/v4_1/models/team_setting.py @@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[str]'} + 'working_days': {'key': 'workingDays', 'type': '[object]'} } def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): diff --git a/vsts/vsts/work/v4_1/models/team_settings_patch.py b/vsts/vsts/work/v4_1/models/team_settings_patch.py index 20e3af9c..e80371d6 100644 --- a/vsts/vsts/work/v4_1/models/team_settings_patch.py +++ b/vsts/vsts/work/v4_1/models/team_settings_patch.py @@ -32,7 +32,7 @@ class TeamSettingsPatch(Model): 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[str]'} + 'working_days': {'key': 'workingDays', 'type': '[object]'} } def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): From b119880b1508d112ef7923988ced6587b5e016cc Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 15 Jan 2019 10:36:16 -0500 Subject: [PATCH 097/191] Bump version to 0.1.26 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index 6fcf2e3b..6105cda9 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.25" +VERSION = "0.1.26" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 4ec74a9b..7393b0d1 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.25" +VERSION = "0.1.26" From ad4d4541002cf0a9950b211781bd8848057f05e7 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 11 Feb 2019 09:27:17 -0500 Subject: [PATCH 098/191] Initial refactor for v4 of sdk. --- {vsts => azure-devops}/LICENSE.txt | 0 {vsts => azure-devops}/MANIFEST.in | 0 {vsts/vsts => azure-devops/azure}/__init__.py | 0 .../azure/devops}/__init__.py | 5 +- azure-devops/azure/devops/_file_cache.py | 176 + azure-devops/azure/devops/_models.py | 215 + azure-devops/azure/devops/client.py | 277 ++ .../azure/devops/client_configuration.py | 17 + azure-devops/azure/devops/connection.py | 104 + .../azure/devops}/credentials.py | 0 azure-devops/azure/devops/exceptions.py | 41 + .../azure/devops}/v4_0/__init__.py | 0 .../azure/devops/v4_0/accounts}/__init__.py | 8 + .../devops/v4_0/accounts}/accounts_client.py | 4 +- .../azure/devops/v4_0/accounts/models.py | 67 + .../azure/devops/v4_0/build/__init__.py | 66 + .../azure/devops/v4_0/build}/build_client.py | 4 +- .../azure/devops/v4_0/build/models.py | 2234 +++++++++ .../devops/v4_0/contributions/__init__.py | 36 + .../contributions}/contributions_client.py | 4 +- .../azure/devops/v4_0/contributions/models.py | 734 +++ .../azure/devops/v4_0/core/__init__.py | 33 + .../azure/devops/v4_0/core}/core_client.py | 4 +- azure-devops/azure/devops/v4_0/core/models.py | 687 +++ .../v4_0/customer_intelligence}/__init__.py | 2 +- .../customer_intelligence_client.py | 4 +- .../v4_0/customer_intelligence/models.py | 5 + .../azure/devops/v4_0/dashboard}/__init__.py | 24 +- .../v4_0/dashboard}/dashboard_client.py | 4 +- .../azure/devops/v4_0/dashboard/models.py | 699 +++ .../v4_0/extension_management/__init__.py | 48 + .../extension_management_client.py | 4 +- .../v4_0/extension_management/models.py | 1181 +++++ .../v4_0/feature_availability}/__init__.py | 5 +- .../feature_availability_client.py | 4 +- .../v4_0/feature_availability/models.py | 22 + .../v4_0/feature_management}/__init__.py | 11 +- .../feature_management_client.py | 4 +- .../devops/v4_0/feature_management/models.py | 171 + .../devops/v4_0/file_container}/__init__.py | 3 +- .../file_container}/file_container_client.py | 4 +- .../devops/v4_0/file_container/models.py | 74 + .../azure/devops/v4_0/gallery/__init__.py | 64 + .../devops/v4_0/gallery}/gallery_client.py | 4 +- .../azure/devops/v4_0/gallery/models.py | 1555 +++++++ .../azure/devops/v4_0/git/__init__.py | 105 + .../azure/devops/v4_0/git}/git_client.py | 1 - .../azure/devops/v4_0/git}/git_client_base.py | 4 +- azure-devops/azure/devops/v4_0/git/models.py | 3260 +++++++++++++ .../azure/devops/v4_0/identity/__init__.py | 35 +- .../devops/v4_0/identity}/identity_client.py | 4 +- .../azure/devops/v4_0/identity/models.py | 516 +++ .../azure/devops/v4_0/licensing}/__init__.py | 24 +- .../v4_0/licensing}/licensing_client.py | 4 +- .../azure/devops/v4_0/licensing/models.py | 554 +++ .../azure/devops/v4_0/location/__init__.py | 19 + .../devops/v4_0/location}/location_client.py | 4 +- .../azure/devops/v4_0/location/models.py | 336 ++ .../__init__.py | 33 +- .../member_entitlement_management_client.py | 4 +- .../member_entitlement_management/models.py | 674 +++ .../devops/v4_0/notification/__init__.py | 63 + .../azure/devops/v4_0/notification/models.py | 1444 ++++++ .../v4_0/notification}/notification_client.py | 4 +- .../azure/devops/v4_0/operations}/__init__.py | 6 +- .../azure/devops/v4_0/operations/models.py | 49 +- .../v4_0/operations}/operations_client.py | 4 +- .../azure/devops/v4_0/policy/__init__.py | 20 + .../azure/devops/v4_0/policy/models.py | 287 ++ .../devops/v4_0/policy}/policy_client.py | 4 +- .../devops/v4_0/project_analysis}/__init__.py | 10 +- .../devops/v4_0/project_analysis/models.py | 174 + .../project_analysis_client.py | 4 +- .../azure/devops/v4_0/security}/__init__.py | 15 +- .../azure/devops/v4_0/security/models.py | 248 + .../devops/v4_0/security}/security_client.py | 4 +- .../devops/v4_0/service_hooks/__init__.py | 41 + .../azure/devops/v4_0/service_hooks/models.py | 1158 +++++ .../service_hooks}/service_hooks_client.py | 4 +- .../azure/devops/v4_0/task}/__init__.py | 33 +- azure-devops/azure/devops/v4_0/task/models.py | 785 ++++ .../azure/devops/v4_0/task}/task_client.py | 4 +- .../azure/devops/v4_0/task_agent/__init__.py | 101 + .../azure/devops/v4_0/task_agent/models.py | 3133 +++++++++++++ .../v4_0/task_agent}/task_agent_client.py | 4 +- .../azure/devops/v4_0/test/__init__.py | 105 + azure-devops/azure/devops/v4_0/test/models.py | 3804 ++++++++++++++++ .../azure/devops/v4_0/test}/test_client.py | 4 +- .../azure/devops/v4_0/tfvc/__init__.py | 48 + azure-devops/azure/devops/v4_0/tfvc/models.py | 1303 ++++++ .../azure/devops/v4_0/tfvc}/tfvc_client.py | 4 +- .../azure/devops/v4_0/wiki/__init__.py | 36 + azure-devops/azure/devops/v4_0/wiki/models.py | 801 ++++ .../azure/devops/v4_0/wiki}/wiki_client.py | 4 +- .../azure/devops/v4_0/work/__init__.py | 70 + azure-devops/azure/devops/v4_0/work/models.py | 1673 +++++++ .../azure/devops/v4_0/work}/work_client.py | 4 +- .../v4_0/work_item_tracking/__init__.py | 77 + .../devops/v4_0/work_item_tracking/models.py | 1983 ++++++++ .../work_item_tracking_client.py | 4 +- .../work_item_tracking_process/__init__.py | 34 + .../v4_0/work_item_tracking_process/models.py | 791 ++++ .../work_item_tracking_process_client.py | 4 +- .../__init__.py | 46 +- .../models.py | 795 ++++ ...tem_tracking_process_definitions_client.py | 4 +- .../__init__.py | 18 + .../models.py | 219 + ...k_item_tracking_process_template_client.py | 4 +- .../azure/devops/v4_1}/__init__.py | 0 .../azure/devops/v4_1/accounts/__init__.py | 15 + .../devops/v4_1/accounts}/accounts_client.py | 4 +- .../azure/devops/v4_1/accounts/models.py | 69 +- .../azure/devops/v4_1/build/__init__.py | 83 + .../azure/devops/v4_1/build}/build_client.py | 5 +- .../azure/devops/v4_1/build/models.py | 2841 ++++++++++++ .../devops/v4_1/client_trace}/__init__.py | 6 + .../v4_1/client_trace}/client_trace_client.py | 6 +- .../azure/devops/v4_1/client_trace/models.py | 7 +- .../devops/v4_1/cloud_load_test/__init__.py | 60 + .../cloud_load_test_client.py | 4 +- .../devops/v4_1/cloud_load_test/models.py | 1775 ++++++++ .../devops/v4_1/contributions/__init__.py | 37 + .../contributions}/contributions_client.py | 4 +- .../azure/devops/v4_1/contributions/models.py | 801 ++++ .../azure/devops/v4_1/core/__init__.py | 35 + .../azure/devops/v4_1/core}/core_client.py | 4 +- azure-devops/azure/devops/v4_1/core/models.py | 753 +++ .../v4_1/customer_intelligence}/__init__.py | 6 + .../customer_intelligence_client.py | 6 +- .../v4_1/customer_intelligence/models.py | 7 +- .../azure/devops/v4_1/dashboard/__init__.py | 29 + .../v4_1/dashboard}/dashboard_client.py | 4 +- .../azure/devops/v4_1/dashboard/models.py | 710 +++ .../v4_1/extension_management/__init__.py | 50 + .../extension_management_client.py | 4 +- .../v4_1/extension_management/models.py | 1257 +++++ .../v4_1/feature_availability/__init__.py | 14 + .../feature_availability_client.py | 4 +- .../v4_1/feature_availability/models.py | 24 +- .../v4_1/feature_management/__init__.py | 18 + .../feature_management_client.py | 4 +- .../devops/v4_1/feature_management/models.py | 179 + .../azure/devops/v4_1/feed/__init__.py | 34 + .../azure/devops/v4_1/feed}/feed_client.py | 4 +- azure-devops/azure/devops/v4_1/feed/models.py | 911 ++++ .../azure/devops/v4_1/feed_token}/__init__.py | 4 + .../v4_1/feed_token}/feed_token_client.py | 6 +- .../devops/v4_1/file_container/__init__.py | 14 + .../file_container}/file_container_client.py | 4 +- .../devops/v4_1/file_container/models.py | 76 +- .../azure/devops/v4_1/gallery/__init__.py | 71 + .../devops/v4_1/gallery}/gallery_client.py | 4 +- .../azure/devops/v4_1/gallery/models.py | 1838 ++++++++ .../azure/devops/v4_1/git/__init__.py | 108 + .../azure/devops/v4_1/git}/git_client.py | 0 .../azure/devops/v4_1/git}/git_client_base.py | 4 +- azure-devops/azure/devops/v4_1/git/models.py | 3375 ++++++++++++++ .../azure/devops/v4_1/graph/__init__.py | 35 + .../azure/devops/v4_1/graph}/graph_client.py | 4 +- .../azure/devops/v4_1/graph/models.py | 716 +++ .../azure/devops/v4_1/identity/__init__.py | 29 + .../devops/v4_1/identity}/identity_client.py | 4 +- .../azure/devops/v4_1/identity/models.py | 574 +++ .../azure/devops/v4_1/licensing/__init__.py | 30 + .../v4_1/licensing}/licensing_client.py | 4 +- .../azure/devops/v4_1/licensing/models.py | 587 +++ .../azure/devops/v4_1/location/__init__.py | 20 + .../devops/v4_1/location}/location_client.py | 4 +- .../azure/devops/v4_1/location/models.py | 394 ++ .../azure/devops/v4_1/maven/__init__.py | 37 + .../azure/devops/v4_1/maven}/maven_client.py | 6 +- .../azure/devops/v4_1/maven/models.py | 760 ++++ .../member_entitlement_management/__init__.py | 48 + .../member_entitlement_management_client.py | 4 +- .../member_entitlement_management/models.py | 1212 +++++ .../devops/v4_1/notification/__init__.py | 70 + .../azure/devops/v4_1/notification/models.py | 1658 +++++++ .../v4_1/notification}/notification_client.py | 4 +- .../azure/devops/v4_1/npm/__init__.py | 23 + azure-devops/azure/devops/v4_1/npm/models.py | 272 ++ .../azure/devops/v4_1/npm}/npm_client.py | 4 +- .../azure/devops/v4_1/nuGet/__init__.py | 22 + .../azure/devops/v4_1/nuGet/models.py | 235 + .../azure/devops/v4_1/nuGet}/nuGet_client.py | 6 +- .../azure/devops/v4_1/operations/__init__.py | 16 + .../azure/devops/v4_1/operations/models.py | 72 +- .../v4_1/operations}/operations_client.py | 6 +- .../azure/devops/v4_1/policy/__init__.py | 21 + .../azure/devops/v4_1/policy/models.py | 320 ++ .../devops/v4_1/policy}/policy_client.py | 4 +- .../azure/devops/v4_1/profile/__init__.py | 24 + .../azure/devops/v4_1/profile/models.py | 325 ++ .../devops/v4_1/profile}/profile_client.py | 6 +- .../devops/v4_1/project_analysis/__init__.py | 19 + .../devops/v4_1/project_analysis/models.py | 247 + .../project_analysis_client.py | 4 +- .../azure/devops/v4_1/security/__init__.py | 20 + .../azure/devops/v4_1/security/models.py | 248 + .../devops/v4_1/security}/security_client.py | 4 +- .../devops/v4_1/service_endpoint/__init__.py | 44 + .../devops/v4_1/service_endpoint/models.py | 1033 +++++ .../service_endpoint_client.py | 4 +- .../devops/v4_1/service_hooks/__init__.py | 46 + .../azure/devops/v4_1/service_hooks/models.py | 1287 ++++++ .../service_hooks}/service_hooks_client.py | 4 +- .../azure/devops/v4_1/settings}/__init__.py | 4 + .../devops/v4_1/settings}/settings_client.py | 4 +- .../azure/devops/v4_1/symbol/__init__.py | 19 + .../azure/devops/v4_1/symbol/models.py | 222 + .../devops/v4_1/symbol}/symbol_client.py | 4 +- .../azure/devops/v4_1/task/__init__.py | 34 + azure-devops/azure/devops/v4_1/task/models.py | 788 ++++ .../azure/devops/v4_1/task}/task_client.py | 4 +- .../azure/devops/v4_1/task_agent/__init__.py | 117 + .../azure/devops/v4_1/task_agent/models.py | 3721 +++++++++++++++ .../v4_1/task_agent}/task_agent_client.py | 4 +- .../azure/devops/v4_1/test/__init__.py | 113 + azure-devops/azure/devops/v4_1/test/models.py | 4052 +++++++++++++++++ .../azure/devops/v4_1/test}/test_client.py | 4 +- .../azure/devops/v4_1/tfvc/__init__.py | 49 + azure-devops/azure/devops/v4_1/tfvc/models.py | 1355 ++++++ .../azure/devops/v4_1/tfvc}/tfvc_client.py | 4 +- .../azure/devops/v4_1/wiki/__init__.py | 28 + azure-devops/azure/devops/v4_1/wiki/models.py | 495 ++ .../azure/devops/v4_1/wiki}/wiki_client.py | 4 +- .../azure/devops/v4_1/work/__init__.py | 72 + azure-devops/azure/devops/v4_1/work/models.py | 1729 +++++++ .../azure/devops/v4_1/work}/work_client.py | 4 +- .../v4_1/work_item_tracking/__init__.py | 81 + .../devops/v4_1/work_item_tracking/models.py | 2170 +++++++++ .../work_item_tracking_client.py | 4 +- .../work_item_tracking_process/__init__.py | 34 + .../v4_1/work_item_tracking_process/models.py | 791 ++++ .../work_item_tracking_process_client.py | 4 +- .../__init__.py | 35 + .../models.py | 795 ++++ ...tem_tracking_process_definitions_client.py | 4 +- .../__init__.py | 18 + .../models.py | 223 + ...k_item_tracking_process_template_client.py | 4 +- .../azure/devops}/version.py | 2 +- {vsts => azure-devops}/setup.py | 8 +- scripts/dev_setup.py | 4 +- .../models/account_create_info_internal.py | 45 - .../models/account_preferences_internal.py | 33 - .../models/account_create_info_internal.py | 45 - .../models/account_preferences_internal.py | 33 - vsts/vsts/build/v4_0/__init__.py | 7 - vsts/vsts/build/v4_0/models/__init__.py | 119 - .../build/v4_0/models/agent_pool_queue.py | 41 - .../build/v4_0/models/artifact_resource.py | 45 - vsts/vsts/build/v4_0/models/build.py | 189 - vsts/vsts/build/v4_0/models/build_artifact.py | 33 - vsts/vsts/build/v4_0/models/build_badge.py | 29 - .../build/v4_0/models/build_controller.py | 58 - .../build/v4_0/models/build_definition.py | 153 - .../build/v4_0/models/build_definition3_2.py | 149 - .../v4_0/models/build_definition_reference.py | 75 - .../v4_0/models/build_definition_revision.py | 49 - .../v4_0/models/build_definition_step.py | 61 - .../v4_0/models/build_definition_template.py | 53 - .../models/build_definition_template3_2.py | 53 - .../v4_0/models/build_definition_variable.py | 33 - vsts/vsts/build/v4_0/models/build_log.py | 42 - .../build/v4_0/models/build_log_reference.py | 33 - vsts/vsts/build/v4_0/models/build_metric.py | 37 - vsts/vsts/build/v4_0/models/build_option.py | 33 - .../v4_0/models/build_option_definition.py | 44 - .../build_option_definition_reference.py | 25 - .../models/build_option_group_definition.py | 33 - .../models/build_option_input_definition.py | 57 - .../v4_0/models/build_report_metadata.py | 33 - .../build/v4_0/models/build_repository.py | 57 - .../models/build_request_validation_result.py | 29 - .../build/v4_0/models/build_resource_usage.py | 37 - vsts/vsts/build/v4_0/models/build_settings.py | 33 - vsts/vsts/build/v4_0/models/change.py | 53 - .../v4_0/models/data_source_binding_base.py | 49 - .../build/v4_0/models/definition_reference.py | 61 - vsts/vsts/build/v4_0/models/deployment.py | 25 - vsts/vsts/build/v4_0/models/folder.py | 49 - vsts/vsts/build/v4_0/models/identity_ref.py | 61 - vsts/vsts/build/v4_0/models/issue.py | 37 - .../build/v4_0/models/json_patch_operation.py | 37 - .../build/v4_0/models/process_parameters.py | 33 - .../vsts/build/v4_0/models/reference_links.py | 25 - vsts/vsts/build/v4_0/models/resource_ref.py | 29 - .../build/v4_0/models/retention_policy.py | 49 - .../v4_0/models/task_agent_pool_reference.py | 33 - .../v4_0/models/task_definition_reference.py | 33 - .../v4_0/models/task_input_definition_base.py | 65 - .../v4_0/models/task_input_validation.py | 29 - .../task_orchestration_plan_reference.py | 29 - vsts/vsts/build/v4_0/models/task_reference.py | 33 - .../models/task_source_definition_base.py | 41 - .../v4_0/models/team_project_reference.py | 53 - vsts/vsts/build/v4_0/models/timeline.py | 42 - .../vsts/build/v4_0/models/timeline_record.py | 113 - .../build/v4_0/models/timeline_reference.py | 33 - vsts/vsts/build/v4_0/models/variable_group.py | 40 - .../v4_0/models/variable_group_reference.py | 25 - .../models/web_api_connected_service_ref.py | 29 - .../models/xaml_build_controller_reference.py | 33 - vsts/vsts/build/v4_1/__init__.py | 7 - vsts/vsts/build/v4_1/models/__init__.py | 153 - .../build/v4_1/models/agent_pool_queue.py | 41 - .../models/aggregated_results_analysis.py | 49 - .../models/aggregated_results_by_outcome.py | 45 - .../models/aggregated_results_difference.py | 41 - .../v4_1/models/aggregated_runs_by_state.py | 29 - .../build/v4_1/models/artifact_resource.py | 49 - .../build/v4_1/models/associated_work_item.py | 49 - vsts/vsts/build/v4_1/models/attachment.py | 29 - .../build/v4_1/models/authorization_header.py | 29 - vsts/vsts/build/v4_1/models/build.py | 193 - vsts/vsts/build/v4_1/models/build_artifact.py | 33 - vsts/vsts/build/v4_1/models/build_badge.py | 29 - .../build/v4_1/models/build_controller.py | 58 - .../build/v4_1/models/build_definition.py | 154 - .../build/v4_1/models/build_definition3_2.py | 152 - .../v4_1/models/build_definition_counter.py | 33 - .../v4_1/models/build_definition_reference.py | 87 - .../models/build_definition_reference3_2.py | 79 - .../v4_1/models/build_definition_revision.py | 49 - .../v4_1/models/build_definition_step.py | 61 - .../v4_1/models/build_definition_template.py | 57 - .../models/build_definition_template3_2.py | 57 - .../v4_1/models/build_definition_variable.py | 33 - vsts/vsts/build/v4_1/models/build_log.py | 42 - .../build/v4_1/models/build_log_reference.py | 33 - vsts/vsts/build/v4_1/models/build_metric.py | 37 - vsts/vsts/build/v4_1/models/build_option.py | 33 - .../v4_1/models/build_option_definition.py | 44 - .../build_option_definition_reference.py | 25 - .../models/build_option_group_definition.py | 33 - .../models/build_option_input_definition.py | 57 - .../v4_1/models/build_report_metadata.py | 33 - .../build/v4_1/models/build_repository.py | 57 - .../models/build_request_validation_result.py | 29 - .../build/v4_1/models/build_resource_usage.py | 37 - vsts/vsts/build/v4_1/models/build_settings.py | 33 - vsts/vsts/build/v4_1/models/change.py | 57 - .../v4_1/models/data_source_binding_base.py | 53 - .../build/v4_1/models/definition_reference.py | 61 - vsts/vsts/build/v4_1/models/deployment.py | 25 - vsts/vsts/build/v4_1/models/folder.py | 49 - .../build/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/build/v4_1/models/identity_ref.py | 65 - vsts/vsts/build/v4_1/models/issue.py | 37 - .../build/v4_1/models/json_patch_operation.py | 37 - .../build/v4_1/models/process_parameters.py | 33 - .../vsts/build/v4_1/models/reference_links.py | 25 - .../build/v4_1/models/release_reference.py | 49 - .../build/v4_1/models/repository_webhook.py | 33 - vsts/vsts/build/v4_1/models/resource_ref.py | 29 - .../build/v4_1/models/retention_policy.py | 49 - .../v4_1/models/source_provider_attributes.py | 33 - .../build/v4_1/models/source_repositories.py | 37 - .../build/v4_1/models/source_repository.py | 49 - .../v4_1/models/source_repository_item.py | 37 - .../build/v4_1/models/supported_trigger.py | 37 - .../v4_1/models/task_agent_pool_reference.py | 33 - .../v4_1/models/task_definition_reference.py | 33 - .../v4_1/models/task_input_definition_base.py | 69 - .../v4_1/models/task_input_validation.py | 29 - .../task_orchestration_plan_reference.py | 29 - vsts/vsts/build/v4_1/models/task_reference.py | 33 - .../models/task_source_definition_base.py | 41 - .../v4_1/models/team_project_reference.py | 53 - .../build/v4_1/models/test_results_context.py | 33 - vsts/vsts/build/v4_1/models/timeline.py | 42 - .../vsts/build/v4_1/models/timeline_record.py | 113 - .../build/v4_1/models/timeline_reference.py | 33 - vsts/vsts/build/v4_1/models/variable_group.py | 40 - .../v4_1/models/variable_group_reference.py | 25 - .../models/web_api_connected_service_ref.py | 29 - .../models/xaml_build_controller_reference.py | 33 - vsts/vsts/cloud_load_test/v4_1/__init__.py | 7 - .../cloud_load_test/v4_1/models/__init__.py | 107 - .../v4_1/models/agent_group.py | 49 - .../v4_1/models/agent_group_access_data.py | 41 - .../v4_1/models/application.py | 49 - .../v4_1/models/application_counters.py | 45 - .../v4_1/models/application_type.py | 45 - .../v4_1/models/browser_mix.py | 29 - .../models/clt_customer_intelligence_data.py | 33 - .../v4_1/models/counter_group.py | 29 - .../v4_1/models/counter_instance_samples.py | 37 - .../v4_1/models/counter_sample.py | 61 - .../models/counter_sample_query_details.py | 33 - .../v4_1/models/counter_samples_result.py | 37 - .../v4_1/models/diagnostics.py | 33 - .../v4_1/models/drop_access_data.py | 29 - .../v4_1/models/error_details.py | 49 - .../models/load_generation_geo_location.py | 29 - .../cloud_load_test/v4_1/models/load_test.py | 21 - .../v4_1/models/load_test_definition.py | 69 - .../v4_1/models/load_test_errors.py | 37 - .../v4_1/models/load_test_run_details.py | 46 - .../v4_1/models/load_test_run_settings.py | 49 - .../v4_1/models/overridable_run_settings.py | 29 - .../v4_1/models/page_summary.py | 49 - .../v4_1/models/request_summary.py | 57 - .../v4_1/models/scenario_summary.py | 33 - .../v4_1/models/static_agent_run_setting.py | 29 - .../cloud_load_test/v4_1/models/sub_type.py | 41 - .../v4_1/models/summary_percentile_data.py | 29 - .../v4_1/models/tenant_details.py | 45 - .../v4_1/models/test_definition.py | 69 - .../v4_1/models/test_definition_basic.py | 53 - .../cloud_load_test/v4_1/models/test_drop.py | 45 - .../v4_1/models/test_drop_ref.py | 29 - .../v4_1/models/test_results.py | 37 - .../v4_1/models/test_results_summary.py | 57 - .../cloud_load_test/v4_1/models/test_run.py | 146 - .../v4_1/models/test_run_abort_message.py | 41 - .../v4_1/models/test_run_basic.py | 81 - .../v4_1/models/test_run_counter_instance.py | 61 - .../v4_1/models/test_run_message.py | 57 - .../v4_1/models/test_settings.py | 33 - .../v4_1/models/test_summary.py | 49 - .../v4_1/models/transaction_summary.py | 49 - .../models/web_api_load_test_machine_input.py | 37 - .../v4_1/models/web_api_setup_paramaters.py | 25 - .../v4_1/models/web_api_test_machine.py | 33 - .../web_api_user_load_test_machine_input.py | 49 - .../v4_1/models/web_instance_summary_data.py | 33 - vsts/vsts/contributions/v4_0/__init__.py | 7 - .../contributions/v4_0/models/__init__.py | 59 - .../v4_0/models/client_data_provider_query.py | 31 - .../contributions/v4_0/models/contribution.py | 50 - .../v4_0/models/contribution_base.py | 33 - .../v4_0/models/contribution_constraint.py | 41 - .../v4_0/models/contribution_node_query.py | 33 - .../models/contribution_node_query_result.py | 29 - .../contribution_property_description.py | 37 - .../models/contribution_provider_details.py | 37 - .../v4_0/models/contribution_type.py | 42 - .../v4_0/models/data_provider_context.py | 25 - .../models/data_provider_exception_details.py | 33 - .../v4_0/models/data_provider_query.py | 29 - .../v4_0/models/data_provider_result.py | 41 - .../v4_0/models/extension_event_callback.py | 25 - .../extension_event_callback_collection.py | 49 - .../v4_0/models/extension_file.py | 33 - .../v4_0/models/extension_licensing.py | 25 - .../v4_0/models/extension_manifest.py | 65 - .../v4_0/models/installed_extension.py | 94 - .../v4_0/models/installed_extension_state.py | 33 - .../models/installed_extension_state_issue.py | 33 - .../v4_0/models/licensing_override.py | 29 - .../v4_0/models/resolved_data_provider.py | 33 - .../models/serialized_contribution_node.py | 33 - vsts/vsts/contributions/v4_1/__init__.py | 7 - .../contributions/v4_1/models/__init__.py | 61 - .../v4_1/models/client_contribution.py | 45 - .../v4_1/models/client_contribution_node.py | 33 - .../client_contribution_provider_details.py | 37 - .../v4_1/models/client_data_provider_query.py | 31 - .../contributions/v4_1/models/contribution.py | 54 - .../v4_1/models/contribution_base.py | 33 - .../v4_1/models/contribution_constraint.py | 45 - .../v4_1/models/contribution_node_query.py | 33 - .../models/contribution_node_query_result.py | 29 - .../contribution_property_description.py | 37 - .../v4_1/models/contribution_type.py | 42 - .../v4_1/models/data_provider_context.py | 25 - .../models/data_provider_exception_details.py | 33 - .../v4_1/models/data_provider_query.py | 29 - .../v4_1/models/data_provider_result.py | 49 - .../v4_1/models/extension_event_callback.py | 25 - .../extension_event_callback_collection.py | 49 - .../v4_1/models/extension_file.py | 33 - .../v4_1/models/extension_licensing.py | 25 - .../v4_1/models/extension_manifest.py | 73 - .../v4_1/models/installed_extension.py | 100 - .../v4_1/models/installed_extension_state.py | 33 - .../models/installed_extension_state_issue.py | 33 - .../v4_1/models/licensing_override.py | 29 - .../v4_1/models/resolved_data_provider.py | 33 - vsts/vsts/core/__init__.py | 7 - vsts/vsts/core/v4_0/__init__.py | 7 - vsts/vsts/core/v4_0/models/__init__.py | 53 - vsts/vsts/core/v4_0/models/identity_data.py | 25 - vsts/vsts/core/v4_0/models/identity_ref.py | 61 - .../core/v4_0/models/json_patch_operation.py | 37 - .../core/v4_0/models/operation_reference.py | 33 - vsts/vsts/core/v4_0/models/process.py | 47 - .../core/v4_0/models/process_reference.py | 29 - vsts/vsts/core/v4_0/models/project_info.py | 65 - .../vsts/core/v4_0/models/project_property.py | 29 - vsts/vsts/core/v4_0/models/proxy.py | 49 - .../core/v4_0/models/proxy_authorization.py | 37 - vsts/vsts/core/v4_0/models/public_key.py | 29 - vsts/vsts/core/v4_0/models/reference_links.py | 25 - vsts/vsts/core/v4_0/models/team_project.py | 57 - .../v4_0/models/team_project_collection.py | 42 - .../team_project_collection_reference.py | 33 - .../v4_0/models/team_project_reference.py | 53 - .../v4_0/models/web_api_connected_service.py | 52 - .../web_api_connected_service_details.py | 39 - .../models/web_api_connected_service_ref.py | 29 - vsts/vsts/core/v4_0/models/web_api_team.py | 38 - .../vsts/core/v4_0/models/web_api_team_ref.py | 33 - vsts/vsts/core/v4_1/__init__.py | 7 - vsts/vsts/core/v4_1/models/__init__.py | 57 - .../core/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/core/v4_1/models/identity_data.py | 25 - vsts/vsts/core/v4_1/models/identity_ref.py | 65 - .../core/v4_1/models/json_patch_operation.py | 37 - .../core/v4_1/models/operation_reference.py | 37 - vsts/vsts/core/v4_1/models/process.py | 47 - .../core/v4_1/models/process_reference.py | 29 - vsts/vsts/core/v4_1/models/project_info.py | 65 - .../vsts/core/v4_1/models/project_property.py | 29 - vsts/vsts/core/v4_1/models/proxy.py | 49 - .../core/v4_1/models/proxy_authorization.py | 37 - vsts/vsts/core/v4_1/models/public_key.py | 29 - vsts/vsts/core/v4_1/models/reference_links.py | 25 - vsts/vsts/core/v4_1/models/team_member.py | 29 - vsts/vsts/core/v4_1/models/team_project.py | 57 - .../v4_1/models/team_project_collection.py | 42 - .../team_project_collection_reference.py | 33 - .../v4_1/models/team_project_reference.py | 53 - .../v4_1/models/web_api_connected_service.py | 52 - .../web_api_connected_service_details.py | 39 - .../models/web_api_connected_service_ref.py | 29 - vsts/vsts/core/v4_1/models/web_api_team.py | 46 - .../vsts/core/v4_1/models/web_api_team_ref.py | 33 - vsts/vsts/customer_intelligence/__init__.py | 7 - .../customer_intelligence_client.py | 39 - .../customer_intelligence/v4_0/__init__.py | 7 - .../customer_intelligence/v4_1/__init__.py | 7 - vsts/vsts/dashboard/__init__.py | 7 - vsts/vsts/dashboard/v4_0/__init__.py | 7 - vsts/vsts/dashboard/v4_0/models/__init__.py | 45 - vsts/vsts/dashboard/v4_0/models/dashboard.py | 61 - .../dashboard/v4_0/models/dashboard_group.py | 37 - .../v4_0/models/dashboard_group_entry.py | 51 - .../models/dashboard_group_entry_response.py | 51 - .../v4_0/models/dashboard_response.py | 51 - .../dashboard/v4_0/models/lightbox_options.py | 33 - .../dashboard/v4_0/models/reference_links.py | 25 - .../dashboard/v4_0/models/semantic_version.py | 33 - .../dashboard/v4_0/models/team_context.py | 37 - vsts/vsts/dashboard/v4_0/models/widget.py | 105 - .../dashboard/v4_0/models/widget_metadata.py | 105 - .../v4_0/models/widget_metadata_response.py | 29 - .../dashboard/v4_0/models/widget_position.py | 29 - .../dashboard/v4_0/models/widget_response.py | 84 - .../vsts/dashboard/v4_0/models/widget_size.py | 29 - .../v4_0/models/widget_types_response.py | 33 - .../v4_0/models/widgets_versioned_list.py | 29 - vsts/vsts/dashboard/v4_1/__init__.py | 7 - vsts/vsts/dashboard/v4_1/models/__init__.py | 45 - vsts/vsts/dashboard/v4_1/models/dashboard.py | 61 - .../dashboard/v4_1/models/dashboard_group.py | 41 - .../v4_1/models/dashboard_group_entry.py | 51 - .../models/dashboard_group_entry_response.py | 51 - .../v4_1/models/dashboard_response.py | 51 - .../dashboard/v4_1/models/lightbox_options.py | 33 - .../dashboard/v4_1/models/reference_links.py | 25 - .../dashboard/v4_1/models/semantic_version.py | 33 - .../dashboard/v4_1/models/team_context.py | 37 - vsts/vsts/dashboard/v4_1/models/widget.py | 109 - .../dashboard/v4_1/models/widget_metadata.py | 105 - .../v4_1/models/widget_metadata_response.py | 29 - .../dashboard/v4_1/models/widget_position.py | 29 - .../dashboard/v4_1/models/widget_response.py | 87 - .../vsts/dashboard/v4_1/models/widget_size.py | 29 - .../v4_1/models/widget_types_response.py | 33 - .../v4_1/models/widgets_versioned_list.py | 29 - vsts/vsts/extension_management/__init__.py | 7 - .../extension_management/v4_0/__init__.py | 7 - .../v4_0/models/__init__.py | 83 - .../v4_0/models/acquisition_operation.py | 37 - .../acquisition_operation_disallow_reason.py | 29 - .../v4_0/models/acquisition_options.py | 37 - .../v4_0/models/contribution.py | 50 - .../v4_0/models/contribution_base.py | 33 - .../v4_0/models/contribution_constraint.py | 41 - .../contribution_property_description.py | 37 - .../v4_0/models/contribution_type.py | 42 - .../models/extension_acquisition_request.py | 45 - .../v4_0/models/extension_authorization.py | 29 - .../v4_0/models/extension_badge.py | 33 - .../v4_0/models/extension_data_collection.py | 37 - .../models/extension_data_collection_query.py | 25 - .../v4_0/models/extension_event_callback.py | 25 - .../extension_event_callback_collection.py | 49 - .../v4_0/models/extension_file.py | 33 - .../v4_0/models/extension_identifier.py | 29 - .../v4_0/models/extension_licensing.py | 25 - .../v4_0/models/extension_manifest.py | 65 - .../v4_0/models/extension_policy.py | 29 - .../v4_0/models/extension_request.py | 49 - .../v4_0/models/extension_share.py | 33 - .../v4_0/models/extension_state.py | 46 - .../v4_0/models/extension_statistic.py | 29 - .../v4_0/models/extension_version.py | 61 - .../v4_0/models/identity_ref.py | 61 - .../v4_0/models/installation_target.py | 29 - .../v4_0/models/installed_extension.py | 94 - .../v4_0/models/installed_extension_query.py | 29 - .../v4_0/models/installed_extension_state.py | 33 - .../models/installed_extension_state_issue.py | 33 - .../v4_0/models/licensing_override.py | 29 - .../v4_0/models/published_extension.py | 89 - .../v4_0/models/publisher_facts.py | 37 - .../v4_0/models/requested_extension.py | 41 - .../v4_0/models/user_extension_policy.py | 33 - .../extension_management/v4_1/__init__.py | 7 - .../v4_1/models/__init__.py | 87 - .../v4_1/models/acquisition_operation.py | 37 - .../acquisition_operation_disallow_reason.py | 29 - .../v4_1/models/acquisition_options.py | 41 - .../v4_1/models/contribution.py | 54 - .../v4_1/models/contribution_base.py | 33 - .../v4_1/models/contribution_constraint.py | 45 - .../contribution_property_description.py | 37 - .../v4_1/models/contribution_type.py | 42 - .../models/extension_acquisition_request.py | 45 - .../v4_1/models/extension_authorization.py | 29 - .../v4_1/models/extension_badge.py | 33 - .../v4_1/models/extension_data_collection.py | 37 - .../models/extension_data_collection_query.py | 25 - .../v4_1/models/extension_event_callback.py | 25 - .../extension_event_callback_collection.py | 49 - .../v4_1/models/extension_file.py | 33 - .../v4_1/models/extension_identifier.py | 29 - .../v4_1/models/extension_licensing.py | 25 - .../v4_1/models/extension_manifest.py | 73 - .../v4_1/models/extension_policy.py | 29 - .../v4_1/models/extension_request.py | 49 - .../v4_1/models/extension_share.py | 33 - .../v4_1/models/extension_state.py | 46 - .../v4_1/models/extension_statistic.py | 29 - .../v4_1/models/extension_version.py | 61 - .../v4_1/models/graph_subject_base.py | 37 - .../v4_1/models/identity_ref.py | 65 - .../v4_1/models/installation_target.py | 29 - .../v4_1/models/installed_extension.py | 100 - .../v4_1/models/installed_extension_query.py | 29 - .../v4_1/models/installed_extension_state.py | 33 - .../models/installed_extension_state_issue.py | 33 - .../v4_1/models/licensing_override.py | 29 - .../v4_1/models/published_extension.py | 89 - .../v4_1/models/publisher_facts.py | 37 - .../v4_1/models/reference_links.py | 25 - .../v4_1/models/requested_extension.py | 41 - .../v4_1/models/user_extension_policy.py | 33 - vsts/vsts/feature_availability/__init__.py | 7 - .../feature_availability/v4_0/__init__.py | 7 - .../v4_0/models/feature_flag_patch.py | 25 - .../feature_availability/v4_1/__init__.py | 7 - .../v4_1/models/__init__.py | 15 - .../v4_1/models/feature_flag_patch.py | 25 - vsts/vsts/feature_management/__init__.py | 7 - vsts/vsts/feature_management/v4_0/__init__.py | 7 - .../v4_0/models/contributed_feature.py | 57 - .../contributed_feature_setting_scope.py | 29 - .../v4_0/models/contributed_feature_state.py | 33 - .../models/contributed_feature_state_query.py | 33 - .../models/contributed_feature_value_rule.py | 29 - .../v4_0/models/reference_links.py | 25 - vsts/vsts/feature_management/v4_1/__init__.py | 7 - .../v4_1/models/contributed_feature.py | 57 - .../contributed_feature_setting_scope.py | 29 - .../v4_1/models/contributed_feature_state.py | 41 - .../models/contributed_feature_state_query.py | 33 - .../models/contributed_feature_value_rule.py | 29 - .../v4_1/models/reference_links.py | 25 - vsts/vsts/feed/__init__.py | 7 - vsts/vsts/feed/v4_1/__init__.py | 7 - vsts/vsts/feed/v4_1/models/__init__.py | 55 - vsts/vsts/feed/v4_1/models/feed.py | 93 - vsts/vsts/feed/v4_1/models/feed_change.py | 37 - .../feed/v4_1/models/feed_changes_response.py | 37 - vsts/vsts/feed/v4_1/models/feed_core.py | 69 - vsts/vsts/feed/v4_1/models/feed_permission.py | 37 - .../feed/v4_1/models/feed_retention_policy.py | 29 - vsts/vsts/feed/v4_1/models/feed_update.py | 57 - vsts/vsts/feed/v4_1/models/feed_view.py | 45 - .../feed/v4_1/models/global_permission.py | 29 - .../feed/v4_1/models/json_patch_operation.py | 37 - .../v4_1/models/minimal_package_version.py | 69 - vsts/vsts/feed/v4_1/models/package.py | 57 - vsts/vsts/feed/v4_1/models/package_change.py | 29 - .../v4_1/models/package_changes_response.py | 37 - .../feed/v4_1/models/package_dependency.py | 33 - vsts/vsts/feed/v4_1/models/package_file.py | 33 - vsts/vsts/feed/v4_1/models/package_version.py | 105 - .../v4_1/models/package_version_change.py | 33 - .../feed/v4_1/models/protocol_metadata.py | 29 - .../models/recycle_bin_package_version.py | 97 - vsts/vsts/feed/v4_1/models/reference_links.py | 25 - vsts/vsts/feed/v4_1/models/upstream_source.py | 57 - vsts/vsts/feed_token/__init__.py | 7 - vsts/vsts/feed_token/v4_1/__init__.py | 7 - vsts/vsts/file_container/__init__.py | 7 - vsts/vsts/file_container/v4_0/__init__.py | 7 - .../v4_0/models/file_container.py | 77 - vsts/vsts/file_container/v4_1/__init__.py | 7 - .../file_container/v4_1/models/__init__.py | 15 - .../v4_1/models/file_container.py | 77 - vsts/vsts/gallery/__init__.py | 7 - vsts/vsts/gallery/v4_0/__init__.py | 7 - vsts/vsts/gallery/v4_0/models/__init__.py | 115 - .../v4_0/models/acquisition_operation.py | 33 - .../v4_0/models/acquisition_options.py | 37 - vsts/vsts/gallery/v4_0/models/answers.py | 29 - .../vsts/gallery/v4_0/models/asset_details.py | 29 - .../gallery/v4_0/models/azure_publisher.py | 29 - .../models/azure_rest_api_request_model.py | 57 - .../gallery/v4_0/models/categories_result.py | 25 - .../v4_0/models/category_language_title.py | 33 - vsts/vsts/gallery/v4_0/models/concern.py | 43 - vsts/vsts/gallery/v4_0/models/event_counts.py | 57 - .../models/extension_acquisition_request.py | 49 - .../gallery/v4_0/models/extension_badge.py | 33 - .../gallery/v4_0/models/extension_category.py | 45 - .../v4_0/models/extension_daily_stat.py | 37 - .../v4_0/models/extension_daily_stats.py | 41 - .../gallery/v4_0/models/extension_event.py | 37 - .../gallery/v4_0/models/extension_events.py | 37 - .../gallery/v4_0/models/extension_file.py | 33 - .../v4_0/models/extension_filter_result.py | 33 - .../extension_filter_result_metadata.py | 29 - .../gallery/v4_0/models/extension_package.py | 25 - .../gallery/v4_0/models/extension_query.py | 33 - .../v4_0/models/extension_query_result.py | 25 - .../gallery/v4_0/models/extension_share.py | 33 - .../v4_0/models/extension_statistic.py | 29 - .../v4_0/models/extension_statistic_update.py | 37 - .../gallery/v4_0/models/extension_version.py | 61 - .../gallery/v4_0/models/filter_criteria.py | 29 - .../v4_0/models/installation_target.py | 29 - .../vsts/gallery/v4_0/models/metadata_item.py | 29 - .../gallery/v4_0/models/notifications_data.py | 33 - .../v4_0/models/product_categories_result.py | 25 - .../gallery/v4_0/models/product_category.py | 37 - .../v4_0/models/published_extension.py | 89 - vsts/vsts/gallery/v4_0/models/publisher.py | 57 - .../gallery/v4_0/models/publisher_facts.py | 37 - .../v4_0/models/publisher_filter_result.py | 25 - .../gallery/v4_0/models/publisher_query.py | 29 - .../v4_0/models/publisher_query_result.py | 25 - vsts/vsts/gallery/v4_0/models/qn_aItem.py | 45 - vsts/vsts/gallery/v4_0/models/query_filter.py | 49 - vsts/vsts/gallery/v4_0/models/question.py | 43 - .../gallery/v4_0/models/questions_result.py | 29 - .../v4_0/models/rating_count_per_rating.py | 29 - vsts/vsts/gallery/v4_0/models/response.py | 39 - vsts/vsts/gallery/v4_0/models/review.py | 69 - vsts/vsts/gallery/v4_0/models/review_patch.py | 33 - vsts/vsts/gallery/v4_0/models/review_reply.py | 53 - .../gallery/v4_0/models/review_summary.py | 33 - .../gallery/v4_0/models/reviews_result.py | 33 - .../gallery/v4_0/models/user_identity_ref.py | 29 - .../v4_0/models/user_reported_concern.py | 41 - vsts/vsts/gallery/v4_1/__init__.py | 7 - vsts/vsts/gallery/v4_1/models/__init__.py | 129 - .../v4_1/models/acquisition_operation.py | 33 - .../v4_1/models/acquisition_options.py | 37 - vsts/vsts/gallery/v4_1/models/answers.py | 29 - .../vsts/gallery/v4_1/models/asset_details.py | 29 - .../gallery/v4_1/models/azure_publisher.py | 29 - .../models/azure_rest_api_request_model.py | 57 - .../gallery/v4_1/models/categories_result.py | 25 - .../v4_1/models/category_language_title.py | 33 - vsts/vsts/gallery/v4_1/models/concern.py | 43 - vsts/vsts/gallery/v4_1/models/event_counts.py | 57 - .../models/extension_acquisition_request.py | 49 - .../gallery/v4_1/models/extension_badge.py | 33 - .../gallery/v4_1/models/extension_category.py | 45 - .../v4_1/models/extension_daily_stat.py | 37 - .../v4_1/models/extension_daily_stats.py | 41 - .../gallery/v4_1/models/extension_draft.py | 65 - .../v4_1/models/extension_draft_asset.py | 30 - .../v4_1/models/extension_draft_patch.py | 29 - .../gallery/v4_1/models/extension_event.py | 37 - .../gallery/v4_1/models/extension_events.py | 37 - .../gallery/v4_1/models/extension_file.py | 33 - .../v4_1/models/extension_filter_result.py | 33 - .../extension_filter_result_metadata.py | 29 - .../gallery/v4_1/models/extension_package.py | 25 - .../gallery/v4_1/models/extension_payload.py | 53 - .../gallery/v4_1/models/extension_query.py | 33 - .../v4_1/models/extension_query_result.py | 25 - .../gallery/v4_1/models/extension_share.py | 33 - .../v4_1/models/extension_statistic.py | 29 - .../v4_1/models/extension_statistic_update.py | 37 - .../gallery/v4_1/models/extension_version.py | 61 - .../gallery/v4_1/models/filter_criteria.py | 29 - .../v4_1/models/installation_target.py | 29 - .../vsts/gallery/v4_1/models/metadata_item.py | 29 - .../gallery/v4_1/models/notifications_data.py | 33 - .../v4_1/models/product_categories_result.py | 25 - .../gallery/v4_1/models/product_category.py | 37 - .../v4_1/models/published_extension.py | 89 - vsts/vsts/gallery/v4_1/models/publisher.py | 52 - .../gallery/v4_1/models/publisher_base.py | 57 - .../gallery/v4_1/models/publisher_facts.py | 37 - .../v4_1/models/publisher_filter_result.py | 25 - .../gallery/v4_1/models/publisher_query.py | 29 - .../v4_1/models/publisher_query_result.py | 25 - vsts/vsts/gallery/v4_1/models/qn_aItem.py | 45 - vsts/vsts/gallery/v4_1/models/query_filter.py | 49 - vsts/vsts/gallery/v4_1/models/question.py | 43 - .../gallery/v4_1/models/questions_result.py | 29 - .../v4_1/models/rating_count_per_rating.py | 29 - .../gallery/v4_1/models/reference_links.py | 25 - vsts/vsts/gallery/v4_1/models/response.py | 39 - vsts/vsts/gallery/v4_1/models/review.py | 69 - vsts/vsts/gallery/v4_1/models/review_patch.py | 33 - vsts/vsts/gallery/v4_1/models/review_reply.py | 53 - .../gallery/v4_1/models/review_summary.py | 33 - .../gallery/v4_1/models/reviews_result.py | 33 - .../v4_1/models/unpackaged_extension_data.py | 85 - .../gallery/v4_1/models/user_identity_ref.py | 29 - .../v4_1/models/user_reported_concern.py | 41 - vsts/vsts/git/__init__.py | 7 - vsts/vsts/git/v4_0/__init__.py | 7 - vsts/vsts/git/v4_0/models/__init__.py | 197 - .../git/v4_0/models/associated_work_item.py | 49 - vsts/vsts/git/v4_0/models/attachment.py | 57 - vsts/vsts/git/v4_0/models/change.py | 41 - vsts/vsts/git/v4_0/models/comment.py | 65 - .../v4_0/models/comment_iteration_context.py | 29 - vsts/vsts/git/v4_0/models/comment_position.py | 29 - vsts/vsts/git/v4_0/models/comment_thread.py | 57 - .../git/v4_0/models/comment_thread_context.py | 41 - .../v4_0/models/comment_tracking_criteria.py | 45 - .../git/v4_0/models/file_content_metadata.py | 49 - .../vsts/git/v4_0/models/git_annotated_tag.py | 45 - .../v4_0/models/git_async_ref_operation.py | 41 - .../models/git_async_ref_operation_detail.py | 45 - .../git_async_ref_operation_parameters.py | 37 - .../models/git_async_ref_operation_source.py | 29 - .../models/git_base_version_descriptor.py | 42 - vsts/vsts/git/v4_0/models/git_blob_ref.py | 37 - vsts/vsts/git/v4_0/models/git_branch_stats.py | 41 - vsts/vsts/git/v4_0/models/git_cherry_pick.py | 40 - vsts/vsts/git/v4_0/models/git_commit.py | 68 - .../git/v4_0/models/git_commit_changes.py | 29 - vsts/vsts/git/v4_0/models/git_commit_diffs.py | 53 - vsts/vsts/git/v4_0/models/git_commit_ref.py | 73 - vsts/vsts/git/v4_0/models/git_conflict.py | 73 - .../git/v4_0/models/git_deleted_repository.py | 45 - .../v4_0/models/git_file_paths_collection.py | 33 - .../git_fork_operation_status_detail.py | 33 - vsts/vsts/git/v4_0/models/git_fork_ref.py | 49 - .../git/v4_0/models/git_fork_sync_request.py | 45 - .../git_fork_sync_request_parameters.py | 29 - .../git/v4_0/models/git_import_git_source.py | 29 - .../git/v4_0/models/git_import_request.py | 49 - .../models/git_import_request_parameters.py | 37 - .../v4_0/models/git_import_status_detail.py | 33 - .../git/v4_0/models/git_import_tfvc_source.py | 33 - vsts/vsts/git/v4_0/models/git_item.py | 59 - .../git/v4_0/models/git_item_descriptor.py | 41 - .../git/v4_0/models/git_item_request_data.py | 37 - .../git/v4_0/models/git_merge_origin_ref.py | 25 - vsts/vsts/git/v4_0/models/git_object.py | 29 - vsts/vsts/git/v4_0/models/git_pull_request.py | 153 - .../v4_0/models/git_pull_request_change.py | 25 - .../models/git_pull_request_comment_thread.py | 52 - ...git_pull_request_comment_thread_context.py | 33 - .../git_pull_request_completion_options.py | 45 - .../v4_0/models/git_pull_request_iteration.py | 77 - .../git_pull_request_iteration_changes.py | 33 - .../models/git_pull_request_merge_options.py | 25 - .../git/v4_0/models/git_pull_request_query.py | 29 - .../models/git_pull_request_query_input.py | 29 - .../git_pull_request_search_criteria.py | 53 - .../v4_0/models/git_pull_request_status.py | 52 - vsts/vsts/git/v4_0/models/git_push.py | 51 - vsts/vsts/git/v4_0/models/git_push_ref.py | 45 - .../v4_0/models/git_push_search_criteria.py | 45 - .../models/git_query_branch_stats_criteria.py | 29 - .../v4_0/models/git_query_commits_criteria.py | 85 - vsts/vsts/git/v4_0/models/git_ref.py | 53 - vsts/vsts/git/v4_0/models/git_ref_favorite.py | 49 - vsts/vsts/git/v4_0/models/git_ref_update.py | 41 - .../git/v4_0/models/git_ref_update_result.py | 57 - vsts/vsts/git/v4_0/models/git_repository.py | 61 - .../models/git_repository_create_options.py | 33 - .../git/v4_0/models/git_repository_ref.py | 45 - .../git/v4_0/models/git_repository_stats.py | 37 - vsts/vsts/git/v4_0/models/git_revert.py | 40 - vsts/vsts/git/v4_0/models/git_status.py | 57 - .../git/v4_0/models/git_status_context.py | 29 - vsts/vsts/git/v4_0/models/git_suggestion.py | 29 - .../models/git_target_version_descriptor.py | 42 - vsts/vsts/git/v4_0/models/git_template.py | 29 - vsts/vsts/git/v4_0/models/git_tree_diff.py | 37 - .../git/v4_0/models/git_tree_diff_entry.py | 41 - .../git/v4_0/models/git_tree_diff_response.py | 29 - .../git/v4_0/models/git_tree_entry_ref.py | 45 - vsts/vsts/git/v4_0/models/git_tree_ref.py | 41 - vsts/vsts/git/v4_0/models/git_user_date.py | 33 - .../git/v4_0/models/git_version_descriptor.py | 33 - .../v4_0/models/global_git_repository_key.py | 33 - vsts/vsts/git/v4_0/models/identity_ref.py | 61 - .../git/v4_0/models/identity_ref_with_vote.py | 67 - .../models/import_repository_validation.py | 37 - vsts/vsts/git/v4_0/models/item_content.py | 29 - vsts/vsts/git/v4_0/models/item_model.py | 45 - vsts/vsts/git/v4_0/models/reference_links.py | 25 - vsts/vsts/git/v4_0/models/resource_ref.py | 29 - .../v4_0/models/share_notification_context.py | 29 - .../git/v4_0/models/source_to_target_ref.py | 29 - .../team_project_collection_reference.py | 33 - .../git/v4_0/models/team_project_reference.py | 53 - vsts/vsts/git/v4_0/models/vsts_info.py | 33 - .../models/web_api_create_tag_request_data.py | 25 - .../git/v4_0/models/web_api_tag_definition.py | 37 - vsts/vsts/git/v4_1/__init__.py | 7 - vsts/vsts/git/v4_1/models/__init__.py | 203 - vsts/vsts/git/v4_1/models/attachment.py | 57 - vsts/vsts/git/v4_1/models/change.py | 41 - vsts/vsts/git/v4_1/models/comment.py | 65 - .../v4_1/models/comment_iteration_context.py | 29 - vsts/vsts/git/v4_1/models/comment_position.py | 29 - vsts/vsts/git/v4_1/models/comment_thread.py | 57 - .../git/v4_1/models/comment_thread_context.py | 41 - .../v4_1/models/comment_tracking_criteria.py | 49 - .../git/v4_1/models/file_content_metadata.py | 49 - .../vsts/git/v4_1/models/git_annotated_tag.py | 45 - .../v4_1/models/git_async_ref_operation.py | 41 - .../models/git_async_ref_operation_detail.py | 45 - .../git_async_ref_operation_parameters.py | 37 - .../models/git_async_ref_operation_source.py | 29 - .../models/git_base_version_descriptor.py | 42 - vsts/vsts/git/v4_1/models/git_blob_ref.py | 37 - vsts/vsts/git/v4_1/models/git_branch_stats.py | 41 - vsts/vsts/git/v4_1/models/git_cherry_pick.py | 40 - vsts/vsts/git/v4_1/models/git_commit.py | 68 - .../git/v4_1/models/git_commit_changes.py | 29 - vsts/vsts/git/v4_1/models/git_commit_diffs.py | 53 - vsts/vsts/git/v4_1/models/git_commit_ref.py | 73 - vsts/vsts/git/v4_1/models/git_conflict.py | 73 - .../v4_1/models/git_conflict_update_result.py | 37 - .../git/v4_1/models/git_deleted_repository.py | 45 - .../v4_1/models/git_file_paths_collection.py | 33 - .../git_fork_operation_status_detail.py | 33 - vsts/vsts/git/v4_1/models/git_fork_ref.py | 52 - .../git/v4_1/models/git_fork_sync_request.py | 45 - .../git_fork_sync_request_parameters.py | 29 - .../git/v4_1/models/git_import_git_source.py | 29 - .../git/v4_1/models/git_import_request.py | 49 - .../models/git_import_request_parameters.py | 37 - .../v4_1/models/git_import_status_detail.py | 33 - .../git/v4_1/models/git_import_tfvc_source.py | 33 - vsts/vsts/git/v4_1/models/git_item.py | 62 - .../git/v4_1/models/git_item_descriptor.py | 41 - .../git/v4_1/models/git_item_request_data.py | 37 - .../git/v4_1/models/git_merge_origin_ref.py | 25 - vsts/vsts/git/v4_1/models/git_object.py | 29 - vsts/vsts/git/v4_1/models/git_pull_request.py | 153 - .../v4_1/models/git_pull_request_change.py | 25 - .../models/git_pull_request_comment_thread.py | 52 - ...git_pull_request_comment_thread_context.py | 33 - .../git_pull_request_completion_options.py | 49 - .../v4_1/models/git_pull_request_iteration.py | 77 - .../git_pull_request_iteration_changes.py | 33 - .../models/git_pull_request_merge_options.py | 29 - .../git/v4_1/models/git_pull_request_query.py | 29 - .../models/git_pull_request_query_input.py | 29 - .../git_pull_request_search_criteria.py | 53 - .../v4_1/models/git_pull_request_status.py | 56 - vsts/vsts/git/v4_1/models/git_push.py | 51 - vsts/vsts/git/v4_1/models/git_push_ref.py | 45 - .../v4_1/models/git_push_search_criteria.py | 45 - .../models/git_query_branch_stats_criteria.py | 29 - .../v4_1/models/git_query_commits_criteria.py | 85 - .../git_recycle_bin_repository_details.py | 25 - vsts/vsts/git/v4_1/models/git_ref.py | 57 - vsts/vsts/git/v4_1/models/git_ref_favorite.py | 49 - vsts/vsts/git/v4_1/models/git_ref_update.py | 41 - .../git/v4_1/models/git_ref_update_result.py | 57 - vsts/vsts/git/v4_1/models/git_repository.py | 65 - .../models/git_repository_create_options.py | 33 - .../git/v4_1/models/git_repository_ref.py | 53 - .../git/v4_1/models/git_repository_stats.py | 37 - vsts/vsts/git/v4_1/models/git_revert.py | 40 - vsts/vsts/git/v4_1/models/git_status.py | 57 - .../git/v4_1/models/git_status_context.py | 29 - vsts/vsts/git/v4_1/models/git_suggestion.py | 29 - .../models/git_target_version_descriptor.py | 42 - vsts/vsts/git/v4_1/models/git_template.py | 29 - vsts/vsts/git/v4_1/models/git_tree_diff.py | 37 - .../git/v4_1/models/git_tree_diff_entry.py | 41 - .../git/v4_1/models/git_tree_diff_response.py | 29 - .../git/v4_1/models/git_tree_entry_ref.py | 45 - vsts/vsts/git/v4_1/models/git_tree_ref.py | 41 - vsts/vsts/git/v4_1/models/git_user_date.py | 33 - .../git/v4_1/models/git_version_descriptor.py | 33 - .../v4_1/models/global_git_repository_key.py | 33 - .../git/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/git/v4_1/models/identity_ref.py | 65 - .../git/v4_1/models/identity_ref_with_vote.py | 73 - .../models/import_repository_validation.py | 37 - vsts/vsts/git/v4_1/models/item_content.py | 29 - vsts/vsts/git/v4_1/models/item_model.py | 49 - .../git/v4_1/models/json_patch_operation.py | 37 - vsts/vsts/git/v4_1/models/reference_links.py | 25 - vsts/vsts/git/v4_1/models/resource_ref.py | 29 - .../v4_1/models/share_notification_context.py | 29 - .../git/v4_1/models/source_to_target_ref.py | 29 - .../team_project_collection_reference.py | 33 - .../git/v4_1/models/team_project_reference.py | 53 - vsts/vsts/git/v4_1/models/vsts_info.py | 33 - .../models/web_api_create_tag_request_data.py | 25 - .../git/v4_1/models/web_api_tag_definition.py | 37 - vsts/vsts/graph/__init__.py | 7 - vsts/vsts/graph/v4_1/__init__.py | 7 - vsts/vsts/graph/v4_1/models/__init__.py | 57 - .../graph/v4_1/models/graph_cache_policies.py | 25 - .../v4_1/models/graph_descriptor_result.py | 29 - .../graph_global_extended_property_batch.py | 29 - vsts/vsts/graph/v4_1/models/graph_group.py | 101 - .../models/graph_group_creation_context.py | 25 - vsts/vsts/graph/v4_1/models/graph_member.py | 61 - .../graph/v4_1/models/graph_membership.py | 33 - .../v4_1/models/graph_membership_state.py | 29 - .../v4_1/models/graph_membership_traversal.py | 41 - vsts/vsts/graph/v4_1/models/graph_scope.py | 65 - .../models/graph_scope_creation_context.py | 45 - .../v4_1/models/graph_storage_key_result.py | 29 - vsts/vsts/graph/v4_1/models/graph_subject.py | 49 - .../graph/v4_1/models/graph_subject_base.py | 37 - .../graph/v4_1/models/graph_subject_lookup.py | 25 - .../v4_1/models/graph_subject_lookup_key.py | 25 - vsts/vsts/graph/v4_1/models/graph_user.py | 61 - .../models/graph_user_creation_context.py | 25 - .../graph/v4_1/models/identity_key_map.py | 33 - .../graph/v4_1/models/json_patch_operation.py | 37 - .../graph/v4_1/models/paged_graph_groups.py | 29 - .../graph/v4_1/models/paged_graph_users.py | 29 - .../vsts/graph/v4_1/models/reference_links.py | 25 - vsts/vsts/identity/__init__.py | 7 - vsts/vsts/identity/v4_0/__init__.py | 7 - vsts/vsts/identity/v4_0/models/__init__.py | 43 - .../v4_0/models/access_token_result.py | 53 - .../v4_0/models/authorization_grant.py | 25 - .../v4_0/models/changed_identities.py | 29 - .../v4_0/models/changed_identities_context.py | 29 - .../identity/v4_0/models/create_scope_info.py | 45 - .../v4_0/models/framework_identity_info.py | 37 - .../identity/v4_0/models/group_membership.py | 37 - vsts/vsts/identity/v4_0/models/identity.py | 81 - .../v4_0/models/identity_batch_info.py | 41 - .../identity/v4_0/models/identity_scope.py | 61 - .../identity/v4_0/models/identity_self.py | 37 - .../identity/v4_0/models/identity_snapshot.py | 41 - .../v4_0/models/identity_update_data.py | 33 - .../identity/v4_0/models/json_web_token.py | 21 - .../v4_0/models/refresh_token_grant.py | 28 - vsts/vsts/identity/v4_0/models/tenant_info.py | 33 - vsts/vsts/identity/v4_1/__init__.py | 7 - vsts/vsts/identity/v4_1/models/__init__.py | 45 - .../v4_1/models/access_token_result.py | 53 - .../v4_1/models/authorization_grant.py | 25 - .../v4_1/models/changed_identities.py | 29 - .../v4_1/models/changed_identities_context.py | 29 - .../identity/v4_1/models/create_scope_info.py | 45 - .../v4_1/models/framework_identity_info.py | 37 - .../identity/v4_1/models/group_membership.py | 37 - vsts/vsts/identity/v4_1/models/identity.py | 66 - .../identity/v4_1/models/identity_base.py | 81 - .../v4_1/models/identity_batch_info.py | 41 - .../identity/v4_1/models/identity_scope.py | 61 - .../identity/v4_1/models/identity_self.py | 37 - .../identity/v4_1/models/identity_snapshot.py | 41 - .../v4_1/models/identity_update_data.py | 33 - .../identity/v4_1/models/json_web_token.py | 21 - .../v4_1/models/refresh_token_grant.py | 28 - vsts/vsts/identity/v4_1/models/tenant_info.py | 33 - vsts/vsts/licensing/__init__.py | 7 - vsts/vsts/licensing/v4_0/__init__.py | 7 - vsts/vsts/licensing/v4_0/models/__init__.py | 45 - .../v4_0/models/account_entitlement.py | 57 - .../account_entitlement_update_model.py | 25 - .../models/account_license_extension_usage.py | 61 - .../v4_0/models/account_license_usage.py | 33 - .../licensing/v4_0/models/account_rights.py | 29 - .../v4_0/models/account_user_license.py | 29 - .../v4_0/models/client_rights_container.py | 29 - .../v4_0/models/extension_assignment.py | 37 - .../models/extension_assignment_details.py | 29 - .../v4_0/models/extension_license_data.py | 41 - .../v4_0/models/extension_operation_result.py | 45 - .../v4_0/models/extension_rights_result.py | 41 - .../licensing/v4_0/models/extension_source.py | 33 - .../licensing/v4_0/models/iUsage_right.py | 37 - .../licensing/v4_0/models/identity_ref.py | 61 - vsts/vsts/licensing/v4_0/models/license.py | 25 - .../licensing/v4_0/models/msdn_entitlement.py | 65 - vsts/vsts/licensing/v4_1/__init__.py | 7 - vsts/vsts/licensing/v4_1/models/__init__.py | 47 - .../v4_1/models/account_entitlement.py | 61 - .../account_entitlement_update_model.py | 25 - .../models/account_license_extension_usage.py | 61 - .../v4_1/models/account_license_usage.py | 41 - .../licensing/v4_1/models/account_rights.py | 29 - .../v4_1/models/account_user_license.py | 29 - .../v4_1/models/client_rights_container.py | 29 - .../v4_1/models/extension_assignment.py | 37 - .../models/extension_assignment_details.py | 29 - .../v4_1/models/extension_license_data.py | 41 - .../v4_1/models/extension_operation_result.py | 45 - .../v4_1/models/extension_rights_result.py | 41 - .../licensing/v4_1/models/extension_source.py | 33 - .../v4_1/models/graph_subject_base.py | 37 - .../licensing/v4_1/models/identity_ref.py | 65 - vsts/vsts/licensing/v4_1/models/license.py | 25 - .../licensing/v4_1/models/msdn_entitlement.py | 65 - .../licensing/v4_1/models/reference_links.py | 25 - vsts/vsts/location/__init__.py | 7 - vsts/vsts/location/v4_0/__init__.py | 7 - vsts/vsts/location/v4_0/models/__init__.py | 25 - .../location/v4_0/models/access_mapping.py | 41 - .../location/v4_0/models/connection_data.py | 49 - vsts/vsts/location/v4_0/models/identity.py | 81 - .../location/v4_0/models/location_mapping.py | 29 - .../v4_0/models/location_service_data.py | 53 - .../v4_0/models/resource_area_info.py | 33 - .../v4_0/models/service_definition.py | 93 - vsts/vsts/location/v4_1/__init__.py | 7 - vsts/vsts/location/v4_1/models/__init__.py | 27 - .../location/v4_1/models/access_mapping.py | 41 - .../location/v4_1/models/connection_data.py | 49 - vsts/vsts/location/v4_1/models/identity.py | 66 - .../location/v4_1/models/identity_base.py | 81 - .../location/v4_1/models/location_mapping.py | 29 - .../v4_1/models/location_service_data.py | 53 - .../v4_1/models/resource_area_info.py | 33 - .../v4_1/models/service_definition.py | 93 - vsts/vsts/maven/__init__.py | 7 - vsts/vsts/maven/v4_1/__init__.py | 7 - vsts/vsts/maven/v4_1/models/__init__.py | 61 - .../maven/v4_1/models/batch_operation_data.py | 21 - .../models/maven_minimal_package_details.py | 33 - vsts/vsts/maven/v4_1/models/maven_package.py | 69 - .../maven_package_version_deletion_state.py | 37 - .../models/maven_packages_batch_request.py | 33 - .../vsts/maven/v4_1/models/maven_pom_build.py | 25 - vsts/vsts/maven/v4_1/models/maven_pom_ci.py | 33 - .../v4_1/models/maven_pom_ci_notifier.py | 45 - .../maven/v4_1/models/maven_pom_dependency.py | 42 - .../models/maven_pom_dependency_management.py | 25 - vsts/vsts/maven/v4_1/models/maven_pom_gav.py | 33 - .../v4_1/models/maven_pom_issue_management.py | 29 - .../maven/v4_1/models/maven_pom_license.py | 31 - .../v4_1/models/maven_pom_mailing_list.py | 45 - .../maven/v4_1/models/maven_pom_metadata.py | 114 - .../v4_1/models/maven_pom_organization.py | 29 - .../maven/v4_1/models/maven_pom_parent.py | 34 - .../maven/v4_1/models/maven_pom_person.py | 53 - vsts/vsts/maven/v4_1/models/maven_pom_scm.py | 37 - ...ven_recycle_bin_package_version_details.py | 25 - vsts/vsts/maven/v4_1/models/package.py | 45 - vsts/vsts/maven/v4_1/models/plugin.py | 34 - .../maven/v4_1/models/plugin_configuration.py | 25 - vsts/vsts/maven/v4_1/models/reference_link.py | 25 - .../vsts/maven/v4_1/models/reference_links.py | 25 - .../member_entitlement_management/__init__.py | 7 - .../v4_0/__init__.py | 7 - .../v4_0/models/__init__.py | 55 - .../v4_0/models/access_level.py | 49 - .../v4_0/models/base_operation_result.py | 29 - .../v4_0/models/extension.py | 37 - .../v4_0/models/graph_group.py | 55 - .../v4_0/models/graph_member.py | 54 - .../v4_0/models/graph_subject.py | 49 - .../v4_0/models/group.py | 29 - .../v4_0/models/group_entitlement.py | 45 - .../group_entitlement_operation_reference.py | 42 - .../v4_0/models/group_operation_result.py | 35 - .../v4_0/models/json_patch_operation.py | 37 - .../v4_0/models/member_entitlement.py | 49 - .../member_entitlement_operation_reference.py | 42 - .../member_entitlements_patch_response.py | 31 - .../member_entitlements_post_response.py | 31 - .../member_entitlements_response_base.py | 29 - .../v4_0/models/operation_reference.py | 33 - .../v4_0/models/operation_result.py | 37 - .../v4_0/models/project_entitlement.py | 41 - .../v4_0/models/project_ref.py | 29 - .../v4_0/models/reference_links.py | 25 - .../v4_0/models/team_ref.py | 29 - .../v4_1/__init__.py | 7 - .../v4_1/models/__init__.py | 83 - .../v4_1/models/access_level.py | 49 - .../v4_1/models/base_operation_result.py | 29 - .../v4_1/models/extension.py | 37 - .../v4_1/models/extension_summary_data.py | 61 - .../v4_1/models/graph_group.py | 101 - .../v4_1/models/graph_member.py | 61 - .../v4_1/models/graph_subject.py | 49 - .../v4_1/models/graph_subject_base.py | 37 - .../v4_1/models/graph_user.py | 61 - .../v4_1/models/group.py | 29 - .../v4_1/models/group_entitlement.py | 53 - .../group_entitlement_operation_reference.py | 45 - .../v4_1/models/group_operation_result.py | 35 - .../v4_1/models/group_option.py | 29 - .../v4_1/models/json_patch_operation.py | 37 - .../v4_1/models/license_summary_data.py | 65 - .../v4_1/models/member_entitlement.py | 46 - .../member_entitlement_operation_reference.py | 45 - .../member_entitlements_patch_response.py | 31 - .../member_entitlements_post_response.py | 31 - .../member_entitlements_response_base.py | 29 - .../v4_1/models/operation_reference.py | 37 - .../v4_1/models/operation_result.py | 37 - .../v4_1/models/paged_graph_member_list.py | 29 - .../v4_1/models/project_entitlement.py | 41 - .../v4_1/models/project_ref.py | 29 - .../v4_1/models/reference_links.py | 25 - .../v4_1/models/summary_data.py | 37 - .../v4_1/models/team_ref.py | 29 - .../v4_1/models/user_entitlement.py | 49 - .../user_entitlement_operation_reference.py | 45 - .../user_entitlement_operation_result.py | 37 - .../user_entitlements_patch_response.py | 31 - .../models/user_entitlements_post_response.py | 31 - .../models/user_entitlements_response_base.py | 29 - .../v4_1/models/users_summary.py | 41 - vsts/vsts/models/__init__.py | 26 - vsts/vsts/models/api_resource_location.py | 38 - vsts/vsts/models/improper_exception.py | 23 - vsts/vsts/models/system_exception.py | 31 - .../models/vss_json_collection_wrapper.py | 27 - .../vss_json_collection_wrapper_base.py | 24 - vsts/vsts/models/wrapped_exception.py | 52 - vsts/vsts/notification/__init__.py | 7 - vsts/vsts/notification/v4_0/__init__.py | 7 - .../vsts/notification/v4_0/models/__init__.py | 113 - .../v4_0/models/artifact_filter.py | 40 - .../v4_0/models/base_subscription_filter.py | 29 - .../models/batch_notification_operation.py | 29 - .../notification/v4_0/models/event_actor.py | 29 - .../notification/v4_0/models/event_scope.py | 29 - .../v4_0/models/events_evaluation_result.py | 29 - .../v4_0/models/expression_filter_clause.py | 41 - .../v4_0/models/expression_filter_group.py | 33 - .../v4_0/models/expression_filter_model.py | 33 - .../v4_0/models/field_input_values.py | 46 - .../v4_0/models/field_values_query.py | 35 - .../v4_0/models/iSubscription_channel.py | 25 - .../v4_0/models/iSubscription_filter.py | 29 - .../notification/v4_0/models/identity_ref.py | 61 - .../notification/v4_0/models/input_value.py | 33 - .../notification/v4_0/models/input_values.py | 49 - .../v4_0/models/input_values_query.py | 33 - .../v4_0/models/notification_event_field.py | 41 - .../notification_event_field_operator.py | 29 - .../models/notification_event_field_type.py | 41 - .../models/notification_event_publisher.py | 33 - .../v4_0/models/notification_event_role.py | 33 - .../v4_0/models/notification_event_type.py | 69 - .../models/notification_query_condition.py | 37 - .../v4_0/models/notification_reason.py | 29 - .../v4_0/models/notification_statistic.py | 41 - .../models/notification_statistics_query.py | 25 - ...otification_statistics_query_conditions.py | 45 - .../v4_0/models/notification_subscriber.py | 37 - ...tification_subscriber_update_parameters.py | 29 - .../v4_0/models/notification_subscription.py | 89 - ...fication_subscription_create_parameters.py | 41 - .../notification_subscription_template.py | 41 - ...fication_subscription_update_parameters.py | 53 - .../models/notifications_evaluation_result.py | 25 - .../v4_0/models/operator_constraint.py | 29 - .../v4_0/models/reference_links.py | 25 - .../models/subscription_admin_settings.py | 25 - .../subscription_channel_with_address.py | 33 - .../models/subscription_evaluation_request.py | 29 - .../models/subscription_evaluation_result.py | 37 - .../subscription_evaluation_settings.py | 37 - .../v4_0/models/subscription_management.py | 29 - .../v4_0/models/subscription_query.py | 29 - .../models/subscription_query_condition.py | 41 - .../v4_0/models/subscription_scope.py | 31 - .../v4_0/models/subscription_user_settings.py | 25 - .../v4_0/models/value_definition.py | 33 - .../v4_0/models/vss_notification_event.py | 41 - vsts/vsts/notification/v4_1/__init__.py | 7 - .../vsts/notification/v4_1/models/__init__.py | 127 - .../v4_1/models/artifact_filter.py | 40 - .../v4_1/models/base_subscription_filter.py | 29 - .../models/batch_notification_operation.py | 29 - .../notification/v4_1/models/event_actor.py | 29 - .../notification/v4_1/models/event_scope.py | 33 - .../v4_1/models/events_evaluation_result.py | 29 - .../v4_1/models/expression_filter_clause.py | 41 - .../v4_1/models/expression_filter_group.py | 33 - .../v4_1/models/expression_filter_model.py | 33 - .../v4_1/models/field_input_values.py | 46 - .../v4_1/models/field_values_query.py | 35 - .../v4_1/models/graph_subject_base.py | 37 - .../models/iNotification_diagnostic_log.py | 57 - .../v4_1/models/iSubscription_channel.py | 25 - .../v4_1/models/iSubscription_filter.py | 29 - .../notification/v4_1/models/identity_ref.py | 65 - .../notification/v4_1/models/input_value.py | 33 - .../notification/v4_1/models/input_values.py | 49 - .../v4_1/models/input_values_error.py | 25 - .../v4_1/models/input_values_query.py | 33 - .../notification_diagnostic_log_message.py | 33 - .../v4_1/models/notification_event_field.py | 41 - .../notification_event_field_operator.py | 29 - .../models/notification_event_field_type.py | 41 - .../models/notification_event_publisher.py | 33 - .../v4_1/models/notification_event_role.py | 33 - .../v4_1/models/notification_event_type.py | 69 - .../notification_event_type_category.py | 29 - .../models/notification_query_condition.py | 37 - .../v4_1/models/notification_reason.py | 29 - .../v4_1/models/notification_statistic.py | 41 - .../models/notification_statistics_query.py | 25 - ...otification_statistics_query_conditions.py | 45 - .../v4_1/models/notification_subscriber.py | 37 - ...tification_subscriber_update_parameters.py | 29 - .../v4_1/models/notification_subscription.py | 93 - ...fication_subscription_create_parameters.py | 41 - .../notification_subscription_template.py | 41 - ...fication_subscription_update_parameters.py | 53 - .../models/notifications_evaluation_result.py | 25 - .../v4_1/models/operator_constraint.py | 29 - .../v4_1/models/reference_links.py | 25 - .../models/subscription_admin_settings.py | 25 - .../subscription_channel_with_address.py | 33 - .../v4_1/models/subscription_diagnostics.py | 33 - .../models/subscription_evaluation_request.py | 29 - .../models/subscription_evaluation_result.py | 37 - .../subscription_evaluation_settings.py | 37 - .../v4_1/models/subscription_management.py | 29 - .../v4_1/models/subscription_query.py | 29 - .../models/subscription_query_condition.py | 41 - .../v4_1/models/subscription_scope.py | 30 - .../v4_1/models/subscription_tracing.py | 41 - .../v4_1/models/subscription_user_settings.py | 25 - ...ate_subscripiton_diagnostics_parameters.py | 33 - .../update_subscripiton_tracing_parameters.py | 25 - .../v4_1/models/value_definition.py | 33 - .../v4_1/models/vss_notification_event.py | 41 - vsts/vsts/npm/__init__.py | 7 - vsts/vsts/npm/v4_1/__init__.py | 7 - vsts/vsts/npm/v4_1/models/__init__.py | 33 - .../npm/v4_1/models/batch_deprecate_data.py | 25 - .../npm/v4_1/models/batch_operation_data.py | 21 - .../npm/v4_1/models/json_patch_operation.py | 37 - .../v4_1/models/minimal_package_details.py | 29 - .../npm_package_version_deletion_state.py | 33 - .../v4_1/models/npm_packages_batch_request.py | 33 - ...npm_recycle_bin_package_version_details.py | 25 - vsts/vsts/npm/v4_1/models/package.py | 53 - .../v4_1/models/package_version_details.py | 29 - vsts/vsts/npm/v4_1/models/reference_links.py | 25 - .../npm/v4_1/models/upstream_source_info.py | 37 - vsts/vsts/nuget/__init__.py | 7 - vsts/vsts/nuget/v4_1/__init__.py | 7 - vsts/vsts/nuget/v4_1/models/__init__.py | 31 - .../vsts/nuget/v4_1/models/batch_list_data.py | 25 - .../nuget/v4_1/models/batch_operation_data.py | 21 - .../nuget/v4_1/models/json_patch_operation.py | 37 - .../v4_1/models/minimal_package_details.py | 29 - .../nuGet_package_version_deletion_state.py | 33 - .../models/nuGet_packages_batch_request.py | 33 - ...Get_recycle_bin_package_version_details.py | 25 - vsts/vsts/nuget/v4_1/models/package.py | 45 - .../v4_1/models/package_version_details.py | 29 - .../vsts/nuget/v4_1/models/reference_links.py | 25 - vsts/vsts/operations/__init__.py | 7 - vsts/vsts/operations/v4_0/__init__.py | 7 - .../v4_0/models/operation_reference.py | 33 - .../operations/v4_0/models/reference_links.py | 25 - vsts/vsts/operations/v4_1/__init__.py | 7 - .../v4_1/models/operation_reference.py | 37 - .../v4_1/models/operation_result_reference.py | 25 - .../operations/v4_1/models/reference_links.py | 25 - vsts/vsts/policy/__init__.py | 7 - vsts/vsts/policy/v4_0/__init__.py | 7 - vsts/vsts/policy/v4_0/models/__init__.py | 27 - vsts/vsts/policy/v4_0/models/identity_ref.py | 61 - .../v4_0/models/policy_configuration.py | 61 - .../v4_0/models/policy_configuration_ref.py | 33 - .../v4_0/models/policy_evaluation_record.py | 53 - vsts/vsts/policy/v4_0/models/policy_type.py | 38 - .../policy/v4_0/models/policy_type_ref.py | 33 - .../policy/v4_0/models/reference_links.py | 25 - .../versioned_policy_configuration_ref.py | 34 - vsts/vsts/policy/v4_1/__init__.py | 7 - vsts/vsts/policy/v4_1/models/__init__.py | 29 - .../policy/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/policy/v4_1/models/identity_ref.py | 65 - .../v4_1/models/policy_configuration.py | 61 - .../v4_1/models/policy_configuration_ref.py | 33 - .../v4_1/models/policy_evaluation_record.py | 53 - vsts/vsts/policy/v4_1/models/policy_type.py | 38 - .../policy/v4_1/models/policy_type_ref.py | 33 - .../policy/v4_1/models/reference_links.py | 25 - .../versioned_policy_configuration_ref.py | 34 - vsts/vsts/profile/__init__.py | 7 - vsts/vsts/profile/v4_1/__init__.py | 7 - vsts/vsts/profile/v4_1/models/__init__.py | 35 - .../v4_1/models/attribute_descriptor.py | 29 - .../v4_1/models/attributes_container.py | 33 - vsts/vsts/profile/v4_1/models/avatar.py | 37 - .../v4_1/models/core_profile_attribute.py | 21 - .../v4_1/models/create_profile_context.py | 57 - vsts/vsts/profile/v4_1/models/geo_region.py | 25 - vsts/vsts/profile/v4_1/models/profile.py | 49 - .../profile/v4_1/models/profile_attribute.py | 21 - .../v4_1/models/profile_attribute_base.py | 37 - .../profile/v4_1/models/profile_region.py | 29 - .../profile/v4_1/models/profile_regions.py | 33 - .../profile/v4_1/models/remote_profile.py | 37 - vsts/vsts/project_analysis/__init__.py | 7 - vsts/vsts/project_analysis/v4_0/__init__.py | 7 - .../project_analysis/v4_0/models/__init__.py | 21 - .../v4_0/models/code_change_trend_item.py | 29 - .../v4_0/models/language_statistics.py | 45 - .../v4_0/models/project_activity_metrics.py | 45 - .../v4_0/models/project_language_analytics.py | 41 - .../models/repository_language_analytics.py | 41 - vsts/vsts/project_analysis/v4_1/__init__.py | 7 - .../project_analysis/v4_1/models/__init__.py | 25 - .../v4_1/models/code_change_trend_item.py | 29 - .../models/language_metrics_secured_object.py | 33 - .../v4_1/models/language_statistics.py | 50 - .../v4_1/models/project_activity_metrics.py | 45 - .../v4_1/models/project_language_analytics.py | 50 - .../models/repository_activity_metrics.py | 33 - .../models/repository_language_analytics.py | 50 - vsts/vsts/release/__init__.py | 7 - vsts/vsts/release/v4_0/__init__.py | 7 - vsts/vsts/release/v4_0/models/__init__.py | 171 - .../v4_0/models/agent_artifact_definition.py | 41 - .../release/v4_0/models/approval_options.py | 41 - vsts/vsts/release/v4_0/models/artifact.py | 41 - .../release/v4_0/models/artifact_metadata.py | 29 - .../v4_0/models/artifact_source_reference.py | 29 - .../v4_0/models/artifact_type_definition.py | 37 - .../release/v4_0/models/artifact_version.py | 41 - .../models/artifact_version_query_result.py | 25 - .../release/v4_0/models/auto_trigger_issue.py | 41 - .../vsts/release/v4_0/models/build_version.py | 45 - vsts/vsts/release/v4_0/models/change.py | 49 - vsts/vsts/release/v4_0/models/condition.py | 33 - .../models/configuration_variable_value.py | 29 - .../v4_0/models/data_source_binding_base.py | 49 - .../definition_environment_reference.py | 37 - vsts/vsts/release/v4_0/models/deployment.py | 101 - .../release/v4_0/models/deployment_attempt.py | 89 - .../release/v4_0/models/deployment_job.py | 29 - .../models/deployment_query_parameters.py | 73 - .../release/v4_0/models/email_recipients.py | 29 - .../models/environment_execution_policy.py | 29 - .../v4_0/models/environment_options.py | 45 - .../models/environment_retention_policy.py | 33 - .../vsts/release/v4_0/models/favorite_item.py | 37 - vsts/vsts/release/v4_0/models/folder.py | 45 - vsts/vsts/release/v4_0/models/identity_ref.py | 61 - .../release/v4_0/models/input_descriptor.py | 77 - .../release/v4_0/models/input_validation.py | 53 - vsts/vsts/release/v4_0/models/input_value.py | 33 - vsts/vsts/release/v4_0/models/input_values.py | 49 - .../release/v4_0/models/input_values_error.py | 25 - .../release/v4_0/models/input_values_query.py | 33 - vsts/vsts/release/v4_0/models/issue.py | 29 - vsts/vsts/release/v4_0/models/mail_message.py | 61 - .../v4_0/models/manual_intervention.py | 73 - .../manual_intervention_update_metadata.py | 29 - vsts/vsts/release/v4_0/models/metric.py | 29 - .../release/v4_0/models/process_parameters.py | 33 - .../release/v4_0/models/project_reference.py | 29 - .../v4_0/models/queued_release_data.py | 33 - .../release/v4_0/models/reference_links.py | 25 - vsts/vsts/release/v4_0/models/release.py | 121 - .../release/v4_0/models/release_approval.py | 97 - .../v4_0/models/release_approval_history.py | 45 - .../release/v4_0/models/release_condition.py | 34 - .../release/v4_0/models/release_definition.py | 113 - .../release_definition_approval_step.py | 40 - .../models/release_definition_approvals.py | 29 - .../models/release_definition_deploy_step.py | 28 - .../models/release_definition_environment.py | 97 - .../release_definition_environment_step.py | 25 - .../release_definition_environment_summary.py | 33 - ...release_definition_environment_template.py | 53 - .../models/release_definition_revision.py | 53 - .../release_definition_shallow_reference.py | 37 - .../v4_0/models/release_definition_summary.py | 33 - .../v4_0/models/release_deploy_phase.py | 53 - .../v4_0/models/release_environment.py | 145 - .../release_environment_shallow_reference.py | 37 - .../release_environment_update_metadata.py | 33 - .../release/v4_0/models/release_reference.py | 69 - .../release/v4_0/models/release_revision.py | 49 - .../release/v4_0/models/release_schedule.py | 41 - .../release/v4_0/models/release_settings.py | 25 - .../v4_0/models/release_shallow_reference.py | 37 - .../v4_0/models/release_start_metadata.py | 49 - vsts/vsts/release/v4_0/models/release_task.py | 81 - .../v4_0/models/release_update_metadata.py | 37 - .../v4_0/models/release_work_item_ref.py | 45 - .../release/v4_0/models/retention_policy.py | 25 - .../release/v4_0/models/retention_settings.py | 33 - .../v4_0/models/summary_mail_section.py | 37 - .../v4_0/models/task_input_definition_base.py | 65 - .../v4_0/models/task_input_validation.py | 29 - .../models/task_source_definition_base.py | 41 - .../release/v4_0/models/variable_group.py | 61 - .../models/variable_group_provider_data.py | 21 - .../release/v4_0/models/variable_value.py | 29 - .../vsts/release/v4_0/models/workflow_task.py | 69 - .../v4_0/models/workflow_task_reference.py | 33 - vsts/vsts/release/v4_0/release_client.py | 1689 ------- vsts/vsts/release/v4_1/__init__.py | 7 - vsts/vsts/release/v4_1/models/__init__.py | 189 - .../v4_1/models/agent_artifact_definition.py | 41 - .../release/v4_1/models/approval_options.py | 45 - vsts/vsts/release/v4_1/models/artifact.py | 41 - .../release/v4_1/models/artifact_metadata.py | 29 - .../v4_1/models/artifact_source_reference.py | 29 - .../v4_1/models/artifact_type_definition.py | 41 - .../release/v4_1/models/artifact_version.py | 41 - .../models/artifact_version_query_result.py | 25 - .../v4_1/models/authorization_header.py | 29 - .../release/v4_1/models/auto_trigger_issue.py | 41 - .../vsts/release/v4_1/models/build_version.py | 53 - vsts/vsts/release/v4_1/models/change.py | 53 - vsts/vsts/release/v4_1/models/condition.py | 33 - .../models/configuration_variable_value.py | 29 - .../v4_1/models/data_source_binding_base.py | 53 - .../definition_environment_reference.py | 37 - vsts/vsts/release/v4_1/models/deployment.py | 105 - .../release/v4_1/models/deployment_attempt.py | 101 - .../release/v4_1/models/deployment_job.py | 29 - .../models/deployment_query_parameters.py | 85 - .../release/v4_1/models/email_recipients.py | 29 - .../models/environment_execution_policy.py | 29 - .../v4_1/models/environment_options.py | 53 - .../models/environment_retention_policy.py | 33 - .../vsts/release/v4_1/models/favorite_item.py | 37 - vsts/vsts/release/v4_1/models/folder.py | 45 - .../release/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/release/v4_1/models/identity_ref.py | 65 - .../release/v4_1/models/input_descriptor.py | 77 - .../release/v4_1/models/input_validation.py | 53 - vsts/vsts/release/v4_1/models/input_value.py | 33 - vsts/vsts/release/v4_1/models/input_values.py | 49 - .../release/v4_1/models/input_values_error.py | 25 - .../release/v4_1/models/input_values_query.py | 33 - vsts/vsts/release/v4_1/models/issue.py | 29 - vsts/vsts/release/v4_1/models/mail_message.py | 61 - .../v4_1/models/manual_intervention.py | 73 - .../manual_intervention_update_metadata.py | 29 - vsts/vsts/release/v4_1/models/metric.py | 29 - .../release/v4_1/models/pipeline_process.py | 25 - .../release/v4_1/models/process_parameters.py | 33 - .../release/v4_1/models/project_reference.py | 29 - .../v4_1/models/queued_release_data.py | 33 - .../release/v4_1/models/reference_links.py | 25 - vsts/vsts/release/v4_1/models/release.py | 125 - .../release/v4_1/models/release_approval.py | 97 - .../v4_1/models/release_approval_history.py | 45 - .../release/v4_1/models/release_condition.py | 34 - .../release/v4_1/models/release_definition.py | 121 - .../release_definition_approval_step.py | 40 - .../models/release_definition_approvals.py | 29 - .../models/release_definition_deploy_step.py | 28 - .../models/release_definition_environment.py | 113 - .../release_definition_environment_step.py | 25 - .../release_definition_environment_summary.py | 33 - ...release_definition_environment_template.py | 57 - .../v4_1/models/release_definition_gate.py | 25 - .../release_definition_gates_options.py | 37 - .../models/release_definition_gates_step.py | 33 - .../models/release_definition_revision.py | 53 - .../release_definition_shallow_reference.py | 37 - .../v4_1/models/release_definition_summary.py | 33 - .../release_definition_undelete_parameter.py | 25 - .../v4_1/models/release_deploy_phase.py | 61 - .../v4_1/models/release_environment.py | 157 - .../release_environment_shallow_reference.py | 37 - .../release_environment_update_metadata.py | 33 - .../vsts/release/v4_1/models/release_gates.py | 49 - .../release/v4_1/models/release_reference.py | 69 - .../release/v4_1/models/release_revision.py | 49 - .../release/v4_1/models/release_schedule.py | 41 - .../release/v4_1/models/release_settings.py | 25 - .../v4_1/models/release_shallow_reference.py | 37 - .../v4_1/models/release_start_metadata.py | 49 - vsts/vsts/release/v4_1/models/release_task.py | 81 - .../v4_1/models/release_task_attachment.py | 53 - .../v4_1/models/release_update_metadata.py | 37 - .../v4_1/models/release_work_item_ref.py | 45 - .../release/v4_1/models/retention_policy.py | 25 - .../release/v4_1/models/retention_settings.py | 33 - .../v4_1/models/summary_mail_section.py | 37 - .../v4_1/models/task_input_definition_base.py | 69 - .../v4_1/models/task_input_validation.py | 29 - .../models/task_source_definition_base.py | 41 - .../release/v4_1/models/variable_group.py | 61 - .../models/variable_group_provider_data.py | 21 - .../release/v4_1/models/variable_value.py | 29 - .../vsts/release/v4_1/models/workflow_task.py | 69 - .../v4_1/models/workflow_task_reference.py | 33 - vsts/vsts/release/v4_1/release_client.py | 782 ---- vsts/vsts/security/__init__.py | 7 - vsts/vsts/security/v4_0/__init__.py | 7 - vsts/vsts/security/v4_0/models/__init__.py | 27 - .../v4_0/models/access_control_entry.py | 37 - .../v4_0/models/access_control_list.py | 37 - .../models/access_control_lists_collection.py | 21 - .../v4_0/models/ace_extended_information.py | 37 - .../security/v4_0/models/action_definition.py | 37 - .../v4_0/models/permission_evaluation.py | 37 - .../models/permission_evaluation_batch.py | 29 - .../models/security_namespace_description.py | 77 - vsts/vsts/security/v4_1/__init__.py | 7 - vsts/vsts/security/v4_1/models/__init__.py | 27 - .../v4_1/models/access_control_entry.py | 37 - .../v4_1/models/access_control_list.py | 37 - .../models/access_control_lists_collection.py | 21 - .../v4_1/models/ace_extended_information.py | 37 - .../security/v4_1/models/action_definition.py | 37 - .../v4_1/models/permission_evaluation.py | 37 - .../models/permission_evaluation_batch.py | 29 - .../models/security_namespace_description.py | 77 - vsts/vsts/service_endpoint/__init__.py | 7 - vsts/vsts/service_endpoint/v4_1/__init__.py | 7 - .../service_endpoint/v4_1/models/__init__.py | 75 - .../models/authentication_scheme_reference.py | 29 - .../v4_1/models/authorization_header.py | 29 - .../v4_1/models/client_certificate.py | 25 - .../v4_1/models/data_source.py | 45 - .../v4_1/models/data_source_binding.py | 45 - .../v4_1/models/data_source_binding_base.py | 53 - .../v4_1/models/data_source_details.py | 45 - .../v4_1/models/dependency_binding.py | 29 - .../v4_1/models/dependency_data.py | 29 - .../v4_1/models/depends_on.py | 29 - .../v4_1/models/endpoint_authorization.py | 29 - .../v4_1/models/endpoint_url.py | 41 - .../v4_1/models/graph_subject_base.py | 37 - .../service_endpoint/v4_1/models/help_link.py | 29 - .../v4_1/models/identity_ref.py | 65 - .../v4_1/models/input_descriptor.py | 77 - .../v4_1/models/input_validation.py | 53 - .../v4_1/models/input_value.py | 33 - .../v4_1/models/input_values.py | 49 - .../v4_1/models/input_values_error.py | 25 - .../v4_1/models/reference_links.py | 25 - .../models/result_transformation_details.py | 25 - .../v4_1/models/service_endpoint.py | 73 - .../service_endpoint_authentication_scheme.py | 41 - .../v4_1/models/service_endpoint_details.py | 37 - .../models/service_endpoint_execution_data.py | 49 - .../service_endpoint_execution_owner.py | 33 - .../service_endpoint_execution_record.py | 29 - ...ervice_endpoint_execution_records_input.py | 29 - .../v4_1/models/service_endpoint_request.py | 33 - .../models/service_endpoint_request_result.py | 33 - .../v4_1/models/service_endpoint_type.py | 73 - vsts/vsts/service_hooks/__init__.py | 7 - vsts/vsts/service_hooks/v4_0/__init__.py | 7 - .../service_hooks/v4_0/models/__init__.py | 69 - .../service_hooks/v4_0/models/consumer.py | 65 - .../v4_0/models/consumer_action.py | 61 - vsts/vsts/service_hooks/v4_0/models/event.py | 61 - .../v4_0/models/event_type_descriptor.py | 49 - .../external_configuration_descriptor.py | 33 - .../v4_0/models/formatted_event_message.py | 33 - .../service_hooks/v4_0/models/identity_ref.py | 61 - .../v4_0/models/input_descriptor.py | 77 - .../service_hooks/v4_0/models/input_filter.py | 25 - .../v4_0/models/input_filter_condition.py | 37 - .../v4_0/models/input_validation.py | 53 - .../service_hooks/v4_0/models/input_value.py | 33 - .../service_hooks/v4_0/models/input_values.py | 49 - .../v4_0/models/input_values_error.py | 25 - .../v4_0/models/input_values_query.py | 33 - .../service_hooks/v4_0/models/notification.py | 57 - .../v4_0/models/notification_details.py | 89 - .../notification_results_summary_detail.py | 29 - .../v4_0/models/notification_summary.py | 29 - .../v4_0/models/notifications_query.py | 69 - .../service_hooks/v4_0/models/publisher.py | 53 - .../v4_0/models/publisher_event.py | 45 - .../v4_0/models/publishers_query.py | 33 - .../v4_0/models/reference_links.py | 25 - .../v4_0/models/resource_container.py | 37 - .../v4_0/models/session_token.py | 33 - .../service_hooks/v4_0/models/subscription.py | 97 - .../v4_0/models/subscriptions_query.py | 53 - .../v4_0/models/versioned_resource.py | 33 - vsts/vsts/service_hooks/v4_1/__init__.py | 7 - .../service_hooks/v4_1/models/__init__.py | 79 - .../service_hooks/v4_1/models/consumer.py | 65 - .../v4_1/models/consumer_action.py | 61 - vsts/vsts/service_hooks/v4_1/models/event.py | 61 - .../v4_1/models/event_type_descriptor.py | 49 - .../external_configuration_descriptor.py | 33 - .../v4_1/models/formatted_event_message.py | 33 - .../v4_1/models/graph_subject_base.py | 37 - .../service_hooks/v4_1/models/identity_ref.py | 65 - .../v4_1/models/input_descriptor.py | 77 - .../service_hooks/v4_1/models/input_filter.py | 25 - .../v4_1/models/input_filter_condition.py | 37 - .../v4_1/models/input_validation.py | 53 - .../service_hooks/v4_1/models/input_value.py | 33 - .../service_hooks/v4_1/models/input_values.py | 49 - .../v4_1/models/input_values_error.py | 25 - .../v4_1/models/input_values_query.py | 33 - .../service_hooks/v4_1/models/notification.py | 57 - .../v4_1/models/notification_details.py | 89 - .../notification_results_summary_detail.py | 29 - .../v4_1/models/notification_summary.py | 29 - .../v4_1/models/notifications_query.py | 69 - .../service_hooks/v4_1/models/publisher.py | 53 - .../v4_1/models/publisher_event.py | 41 - .../v4_1/models/publishers_query.py | 33 - .../v4_1/models/reference_links.py | 25 - .../v4_1/models/resource_container.py | 37 - .../v4_1/models/session_token.py | 33 - .../service_hooks/v4_1/models/subscription.py | 97 - .../v4_1/models/subscription_diagnostics.py | 33 - .../v4_1/models/subscription_tracing.py | 41 - .../v4_1/models/subscriptions_query.py | 53 - ...ate_subscripiton_diagnostics_parameters.py | 33 - .../update_subscripiton_tracing_parameters.py | 25 - .../v4_1/models/versioned_resource.py | 33 - vsts/vsts/settings/__init__.py | 7 - vsts/vsts/settings/v4_0/__init__.py | 7 - vsts/vsts/settings/v4_0/settings_client.py | 143 - vsts/vsts/settings/v4_1/__init__.py | 7 - vsts/vsts/symbol/__init__.py | 7 - vsts/vsts/symbol/v4_1/__init__.py | 7 - vsts/vsts/symbol/v4_1/models/__init__.py | 25 - vsts/vsts/symbol/v4_1/models/debug_entry.py | 64 - .../v4_1/models/debug_entry_create_batch.py | 29 - .../v4_1/models/json_blob_block_hash.py | 25 - .../v4_1/models/json_blob_identifier.py | 25 - .../json_blob_identifier_with_blocks.py | 29 - vsts/vsts/symbol/v4_1/models/request.py | 52 - vsts/vsts/symbol/v4_1/models/resource_base.py | 41 - vsts/vsts/task/__init__.py | 7 - vsts/vsts/task/v4_0/__init__.py | 7 - vsts/vsts/task/v4_0/models/__init__.py | 55 - vsts/vsts/task/v4_0/models/issue.py | 37 - vsts/vsts/task/v4_0/models/job_option.py | 29 - vsts/vsts/task/v4_0/models/mask_hint.py | 29 - .../vsts/task/v4_0/models/plan_environment.py | 33 - .../task/v4_0/models/project_reference.py | 29 - vsts/vsts/task/v4_0/models/reference_links.py | 25 - vsts/vsts/task/v4_0/models/task_attachment.py | 53 - vsts/vsts/task/v4_0/models/task_log.py | 47 - .../task/v4_0/models/task_log_reference.py | 29 - .../models/task_orchestration_container.py | 48 - .../v4_0/models/task_orchestration_item.py | 25 - .../v4_0/models/task_orchestration_owner.py | 33 - .../v4_0/models/task_orchestration_plan.py | 89 - ...orchestration_plan_groups_queue_metrics.py | 29 - .../task_orchestration_plan_reference.py | 53 - .../models/task_orchestration_queued_plan.py | 57 - .../task_orchestration_queued_plan_group.py | 45 - vsts/vsts/task/v4_0/models/task_reference.py | 37 - vsts/vsts/task/v4_0/models/timeline.py | 42 - vsts/vsts/task/v4_0/models/timeline_record.py | 117 - .../task/v4_0/models/timeline_reference.py | 33 - vsts/vsts/task/v4_0/models/variable_value.py | 29 - vsts/vsts/task/v4_1/__init__.py | 7 - vsts/vsts/task/v4_1/models/__init__.py | 55 - vsts/vsts/task/v4_1/models/issue.py | 37 - vsts/vsts/task/v4_1/models/job_option.py | 29 - vsts/vsts/task/v4_1/models/mask_hint.py | 29 - .../vsts/task/v4_1/models/plan_environment.py | 33 - .../task/v4_1/models/project_reference.py | 29 - vsts/vsts/task/v4_1/models/reference_links.py | 25 - vsts/vsts/task/v4_1/models/task_attachment.py | 53 - vsts/vsts/task/v4_1/models/task_log.py | 47 - .../task/v4_1/models/task_log_reference.py | 29 - .../models/task_orchestration_container.py | 48 - .../v4_1/models/task_orchestration_item.py | 25 - .../v4_1/models/task_orchestration_owner.py | 33 - .../v4_1/models/task_orchestration_plan.py | 88 - ...orchestration_plan_groups_queue_metrics.py | 29 - .../task_orchestration_plan_reference.py | 57 - .../models/task_orchestration_queued_plan.py | 57 - .../task_orchestration_queued_plan_group.py | 45 - vsts/vsts/task/v4_1/models/task_reference.py | 37 - vsts/vsts/task/v4_1/models/timeline.py | 42 - vsts/vsts/task/v4_1/models/timeline_record.py | 117 - .../task/v4_1/models/timeline_reference.py | 33 - vsts/vsts/task/v4_1/models/variable_value.py | 29 - vsts/vsts/task_agent/__init__.py | 7 - vsts/vsts/task_agent/v4_0/__init__.py | 7 - vsts/vsts/task_agent/v4_0/models/__init__.py | 189 - .../v4_0/models/aad_oauth_token_request.py | 37 - .../v4_0/models/aad_oauth_token_result.py | 29 - .../v4_0/models/authorization_header.py | 29 - .../v4_0/models/azure_subscription.py | 37 - .../models/azure_subscription_query_result.py | 29 - .../task_agent/v4_0/models/data_source.py | 37 - .../v4_0/models/data_source_binding.py | 42 - .../v4_0/models/data_source_binding_base.py | 49 - .../v4_0/models/data_source_details.py | 41 - .../v4_0/models/dependency_binding.py | 29 - .../task_agent/v4_0/models/dependency_data.py | 29 - .../vsts/task_agent/v4_0/models/depends_on.py | 29 - .../v4_0/models/deployment_group.py | 49 - .../v4_0/models/deployment_group_metrics.py | 33 - .../v4_0/models/deployment_group_reference.py | 37 - .../v4_0/models/deployment_machine.py | 33 - .../v4_0/models/deployment_machine_group.py | 41 - .../deployment_machine_group_reference.py | 37 - .../v4_0/models/endpoint_authorization.py | 29 - .../task_agent/v4_0/models/endpoint_url.py | 41 - vsts/vsts/task_agent/v4_0/models/help_link.py | 29 - .../task_agent/v4_0/models/identity_ref.py | 61 - .../v4_0/models/input_descriptor.py | 77 - .../v4_0/models/input_validation.py | 53 - .../v4_0/models/input_validation_request.py | 25 - .../task_agent/v4_0/models/input_value.py | 33 - .../task_agent/v4_0/models/input_values.py | 49 - .../v4_0/models/input_values_error.py | 25 - .../v4_0/models/metrics_column_meta_data.py | 29 - .../v4_0/models/metrics_columns_header.py | 29 - .../task_agent/v4_0/models/metrics_row.py | 29 - .../v4_0/models/package_metadata.py | 53 - .../task_agent/v4_0/models/package_version.py | 33 - .../v4_0/models/project_reference.py | 29 - .../models/publish_task_group_metadata.py | 41 - .../task_agent/v4_0/models/reference_links.py | 25 - .../models/result_transformation_details.py | 25 - .../task_agent/v4_0/models/secure_file.py | 53 - .../v4_0/models/service_endpoint.py | 73 - .../service_endpoint_authentication_scheme.py | 37 - .../v4_0/models/service_endpoint_details.py | 37 - .../models/service_endpoint_execution_data.py | 49 - .../service_endpoint_execution_record.py | 29 - ...ervice_endpoint_execution_records_input.py | 29 - .../v4_0/models/service_endpoint_request.py | 33 - .../models/service_endpoint_request_result.py | 33 - .../v4_0/models/service_endpoint_type.py | 65 - .../vsts/task_agent/v4_0/models/task_agent.py | 75 - .../v4_0/models/task_agent_authorization.py | 33 - .../v4_0/models/task_agent_job_request.py | 101 - .../v4_0/models/task_agent_message.py | 37 - .../task_agent/v4_0/models/task_agent_pool.py | 56 - .../task_agent_pool_maintenance_definition.py | 53 - .../models/task_agent_pool_maintenance_job.py | 77 - ...agent_pool_maintenance_job_target_agent.py | 37 - .../task_agent_pool_maintenance_options.py | 25 - ...agent_pool_maintenance_retention_policy.py | 25 - .../task_agent_pool_maintenance_schedule.py | 41 - .../v4_0/models/task_agent_pool_reference.py | 41 - .../v4_0/models/task_agent_public_key.py | 29 - .../v4_0/models/task_agent_queue.py | 37 - .../v4_0/models/task_agent_reference.py | 45 - .../v4_0/models/task_agent_session.py | 41 - .../v4_0/models/task_agent_session_key.py | 29 - .../v4_0/models/task_agent_update.py | 45 - .../v4_0/models/task_agent_update_reason.py | 25 - .../task_agent/v4_0/models/task_definition.py | 161 - .../v4_0/models/task_definition_endpoint.py | 45 - .../v4_0/models/task_definition_reference.py | 33 - .../task_agent/v4_0/models/task_execution.py | 29 - .../vsts/task_agent/v4_0/models/task_group.py | 166 - .../v4_0/models/task_group_definition.py | 41 - .../v4_0/models/task_group_revision.py | 49 - .../task_agent/v4_0/models/task_group_step.py | 53 - .../v4_0/models/task_hub_license_details.py | 61 - .../v4_0/models/task_input_definition.py | 54 - .../v4_0/models/task_input_definition_base.py | 65 - .../v4_0/models/task_input_validation.py | 29 - .../v4_0/models/task_orchestration_owner.py | 33 - .../v4_0/models/task_output_variable.py | 29 - .../v4_0/models/task_package_metadata.py | 33 - .../task_agent/v4_0/models/task_reference.py | 37 - .../v4_0/models/task_source_definition.py | 36 - .../models/task_source_definition_base.py | 41 - .../task_agent/v4_0/models/task_version.py | 37 - .../task_agent/v4_0/models/validation_item.py | 37 - .../task_agent/v4_0/models/variable_group.py | 61 - .../models/variable_group_provider_data.py | 21 - .../task_agent/v4_0/models/variable_value.py | 29 - vsts/vsts/task_agent/v4_1/__init__.py | 7 - vsts/vsts/task_agent/v4_1/models/__init__.py | 221 - .../v4_1/models/aad_oauth_token_request.py | 37 - .../v4_1/models/aad_oauth_token_result.py | 29 - .../models/authentication_scheme_reference.py | 29 - .../v4_1/models/authorization_header.py | 29 - .../v4_1/models/azure_subscription.py | 37 - .../models/azure_subscription_query_result.py | 29 - .../v4_1/models/client_certificate.py | 25 - .../task_agent/v4_1/models/data_source.py | 45 - .../v4_1/models/data_source_binding.py | 45 - .../v4_1/models/data_source_binding_base.py | 53 - .../v4_1/models/data_source_details.py | 45 - .../v4_1/models/dependency_binding.py | 29 - .../task_agent/v4_1/models/dependency_data.py | 29 - .../vsts/task_agent/v4_1/models/depends_on.py | 29 - .../v4_1/models/deployment_group.py | 49 - .../deployment_group_create_parameter.py | 37 - ...nt_group_create_parameter_pool_property.py | 25 - .../v4_1/models/deployment_group_metrics.py | 33 - .../v4_1/models/deployment_group_reference.py | 37 - .../deployment_group_update_parameter.py | 29 - .../v4_1/models/deployment_machine.py | 33 - .../v4_1/models/deployment_machine_group.py | 41 - .../deployment_machine_group_reference.py | 37 - .../v4_1/models/deployment_pool_summary.py | 37 - .../deployment_target_update_parameter.py | 29 - .../v4_1/models/endpoint_authorization.py | 29 - .../task_agent/v4_1/models/endpoint_url.py | 41 - .../v4_1/models/graph_subject_base.py | 37 - vsts/vsts/task_agent/v4_1/models/help_link.py | 29 - .../task_agent/v4_1/models/identity_ref.py | 65 - .../v4_1/models/input_descriptor.py | 77 - .../v4_1/models/input_validation.py | 53 - .../v4_1/models/input_validation_request.py | 25 - .../task_agent/v4_1/models/input_value.py | 33 - .../task_agent/v4_1/models/input_values.py | 49 - .../v4_1/models/input_values_error.py | 25 - .../v4_1/models/metrics_column_meta_data.py | 29 - .../v4_1/models/metrics_columns_header.py | 29 - .../task_agent/v4_1/models/metrics_row.py | 29 - .../v4_1/models/oAuth_configuration.py | 61 - .../v4_1/models/oAuth_configuration_params.py | 41 - .../v4_1/models/package_metadata.py | 53 - .../task_agent/v4_1/models/package_version.py | 33 - .../v4_1/models/project_reference.py | 29 - .../models/publish_task_group_metadata.py | 41 - .../task_agent/v4_1/models/reference_links.py | 25 - .../task_agent/v4_1/models/resource_usage.py | 33 - .../models/result_transformation_details.py | 25 - .../task_agent/v4_1/models/secure_file.py | 53 - .../v4_1/models/service_endpoint.py | 73 - .../service_endpoint_authentication_scheme.py | 41 - .../v4_1/models/service_endpoint_details.py | 37 - .../models/service_endpoint_execution_data.py | 49 - .../service_endpoint_execution_record.py | 29 - ...ervice_endpoint_execution_records_input.py | 29 - .../v4_1/models/service_endpoint_request.py | 33 - .../models/service_endpoint_request_result.py | 33 - .../v4_1/models/service_endpoint_type.py | 73 - .../vsts/task_agent/v4_1/models/task_agent.py | 82 - .../v4_1/models/task_agent_authorization.py | 33 - .../v4_1/models/task_agent_delay_source.py | 29 - .../v4_1/models/task_agent_job_request.py | 121 - .../v4_1/models/task_agent_message.py | 37 - .../task_agent/v4_1/models/task_agent_pool.py | 59 - .../task_agent_pool_maintenance_definition.py | 53 - .../models/task_agent_pool_maintenance_job.py | 77 - ...agent_pool_maintenance_job_target_agent.py | 37 - .../task_agent_pool_maintenance_options.py | 25 - ...agent_pool_maintenance_retention_policy.py | 25 - .../task_agent_pool_maintenance_schedule.py | 41 - .../v4_1/models/task_agent_pool_reference.py | 45 - .../v4_1/models/task_agent_public_key.py | 29 - .../v4_1/models/task_agent_queue.py | 37 - .../v4_1/models/task_agent_reference.py | 49 - .../v4_1/models/task_agent_session.py | 41 - .../v4_1/models/task_agent_session_key.py | 29 - .../v4_1/models/task_agent_update.py | 45 - .../v4_1/models/task_agent_update_reason.py | 25 - .../task_agent/v4_1/models/task_definition.py | 161 - .../v4_1/models/task_definition_endpoint.py | 45 - .../v4_1/models/task_definition_reference.py | 33 - .../task_agent/v4_1/models/task_execution.py | 29 - .../vsts/task_agent/v4_1/models/task_group.py | 166 - .../models/task_group_create_parameter.py | 69 - .../v4_1/models/task_group_definition.py | 41 - .../v4_1/models/task_group_revision.py | 49 - .../task_agent/v4_1/models/task_group_step.py | 53 - .../models/task_group_update_parameter.py | 81 - .../v4_1/models/task_hub_license_details.py | 61 - .../v4_1/models/task_input_definition.py | 57 - .../v4_1/models/task_input_definition_base.py | 69 - .../v4_1/models/task_input_validation.py | 29 - .../v4_1/models/task_orchestration_owner.py | 33 - .../models/task_orchestration_plan_group.py | 33 - .../v4_1/models/task_output_variable.py | 29 - .../v4_1/models/task_package_metadata.py | 33 - .../task_agent/v4_1/models/task_reference.py | 37 - .../v4_1/models/task_source_definition.py | 36 - .../models/task_source_definition_base.py | 41 - .../task_agent/v4_1/models/task_version.py | 37 - .../task_agent/v4_1/models/validation_item.py | 37 - .../task_agent/v4_1/models/variable_group.py | 61 - .../v4_1/models/variable_group_parameters.py | 41 - .../models/variable_group_provider_data.py | 21 - .../task_agent/v4_1/models/variable_value.py | 29 - vsts/vsts/test/__init__.py | 7 - vsts/vsts/test/v4_0/__init__.py | 7 - vsts/vsts/test/v4_0/models/__init__.py | 197 - .../aggregated_data_for_result_trend.py | 37 - .../models/aggregated_results_analysis.py | 45 - .../models/aggregated_results_by_outcome.py | 41 - .../models/aggregated_results_difference.py | 41 - .../test/v4_0/models/build_configuration.py | 61 - vsts/vsts/test/v4_0/models/build_coverage.py | 41 - vsts/vsts/test/v4_0/models/build_reference.py | 49 - .../models/clone_operation_information.py | 77 - vsts/vsts/test/v4_0/models/clone_options.py | 45 - .../vsts/test/v4_0/models/clone_statistics.py | 41 - .../test/v4_0/models/code_coverage_data.py | 33 - .../v4_0/models/code_coverage_statistics.py | 45 - .../test/v4_0/models/code_coverage_summary.py | 33 - .../test/v4_0/models/coverage_statistics.py | 41 - .../test/v4_0/models/custom_test_field.py | 29 - .../models/custom_test_field_definition.py | 37 - .../v4_0/models/dtl_environment_details.py | 33 - vsts/vsts/test/v4_0/models/failing_since.py | 33 - .../test/v4_0/models/function_coverage.py | 41 - vsts/vsts/test/v4_0/models/identity_ref.py | 61 - .../test/v4_0/models/last_result_details.py | 33 - .../v4_0/models/linked_work_items_query.py | 45 - .../models/linked_work_items_query_result.py | 45 - vsts/vsts/test/v4_0/models/module_coverage.py | 49 - vsts/vsts/test/v4_0/models/name_value_pair.py | 29 - .../test/v4_0/models/plan_update_model.py | 89 - .../vsts/test/v4_0/models/point_assignment.py | 29 - .../test/v4_0/models/point_update_model.py | 33 - vsts/vsts/test/v4_0/models/points_filter.py | 33 - vsts/vsts/test/v4_0/models/property_bag.py | 25 - vsts/vsts/test/v4_0/models/query_model.py | 25 - ...elease_environment_definition_reference.py | 29 - .../test/v4_0/models/release_reference.py | 49 - .../v4_0/models/result_retention_settings.py | 37 - vsts/vsts/test/v4_0/models/results_filter.py | 49 - .../vsts/test/v4_0/models/run_create_model.py | 145 - vsts/vsts/test/v4_0/models/run_filter.py | 29 - vsts/vsts/test/v4_0/models/run_statistic.py | 37 - .../vsts/test/v4_0/models/run_update_model.py | 117 - .../test/v4_0/models/shallow_reference.py | 33 - .../test/v4_0/models/shared_step_model.py | 29 - .../test/v4_0/models/suite_create_model.py | 37 - vsts/vsts/test/v4_0/models/suite_entry.py | 37 - .../v4_0/models/suite_entry_update_model.py | 33 - vsts/vsts/test/v4_0/models/suite_test_case.py | 29 - vsts/vsts/test/v4_0/models/team_context.py | 37 - .../v4_0/models/team_project_reference.py | 53 - .../v4_0/models/test_action_result_model.py | 59 - vsts/vsts/test/v4_0/models/test_attachment.py | 45 - .../v4_0/models/test_attachment_reference.py | 29 - .../models/test_attachment_request_model.py | 37 - .../vsts/test/v4_0/models/test_case_result.py | 205 - .../test_case_result_attachment_model.py | 41 - .../models/test_case_result_identifier.py | 29 - .../models/test_case_result_update_model.py | 93 - .../test/v4_0/models/test_configuration.py | 69 - .../vsts/test/v4_0/models/test_environment.py | 29 - .../test/v4_0/models/test_failure_details.py | 29 - .../v4_0/models/test_failures_analysis.py | 37 - .../models/test_iteration_details_model.py | 65 - .../v4_0/models/test_message_log_details.py | 33 - vsts/vsts/test/v4_0/models/test_method.py | 29 - .../v4_0/models/test_operation_reference.py | 33 - vsts/vsts/test/v4_0/models/test_plan.py | 117 - .../v4_0/models/test_plan_clone_request.py | 33 - vsts/vsts/test/v4_0/models/test_point.py | 109 - .../test/v4_0/models/test_points_query.py | 37 - .../test/v4_0/models/test_resolution_state.py | 33 - .../v4_0/models/test_result_create_model.py | 125 - .../test/v4_0/models/test_result_document.py | 29 - .../test/v4_0/models/test_result_history.py | 29 - .../test_result_history_details_for_group.py | 29 - .../v4_0/models/test_result_model_base.py | 45 - .../models/test_result_parameter_model.py | 45 - .../test/v4_0/models/test_result_payload.py | 33 - .../test/v4_0/models/test_result_summary.py | 37 - .../v4_0/models/test_result_trend_filter.py | 53 - .../test/v4_0/models/test_results_context.py | 33 - .../test/v4_0/models/test_results_details.py | 29 - .../models/test_results_details_for_group.py | 33 - .../test/v4_0/models/test_results_query.py | 33 - vsts/vsts/test/v4_0/models/test_run.py | 193 - .../test/v4_0/models/test_run_coverage.py | 37 - .../test/v4_0/models/test_run_statistic.py | 29 - vsts/vsts/test/v4_0/models/test_session.py | 81 - vsts/vsts/test/v4_0/models/test_settings.py | 49 - vsts/vsts/test/v4_0/models/test_suite.py | 113 - .../v4_0/models/test_suite_clone_request.py | 33 - .../v4_0/models/test_summary_for_work_item.py | 29 - .../v4_0/models/test_to_work_item_links.py | 29 - vsts/vsts/test/v4_0/models/test_variable.py | 49 - .../test/v4_0/models/work_item_reference.py | 41 - .../v4_0/models/work_item_to_test_links.py | 29 - vsts/vsts/test/v4_1/__init__.py | 7 - vsts/vsts/test/v4_1/models/__init__.py | 213 - .../aggregated_data_for_result_trend.py | 41 - .../models/aggregated_results_analysis.py | 49 - .../models/aggregated_results_by_outcome.py | 45 - .../models/aggregated_results_difference.py | 41 - .../v4_1/models/aggregated_runs_by_state.py | 29 - .../test/v4_1/models/build_configuration.py | 61 - vsts/vsts/test/v4_1/models/build_coverage.py | 41 - vsts/vsts/test/v4_1/models/build_reference.py | 49 - .../models/clone_operation_information.py | 77 - vsts/vsts/test/v4_1/models/clone_options.py | 45 - .../vsts/test/v4_1/models/clone_statistics.py | 41 - .../test/v4_1/models/code_coverage_data.py | 33 - .../v4_1/models/code_coverage_statistics.py | 45 - .../test/v4_1/models/code_coverage_summary.py | 33 - .../test/v4_1/models/coverage_statistics.py | 41 - .../test/v4_1/models/custom_test_field.py | 29 - .../models/custom_test_field_definition.py | 37 - .../v4_1/models/dtl_environment_details.py | 33 - vsts/vsts/test/v4_1/models/failing_since.py | 33 - .../models/field_details_for_test_results.py | 29 - .../test/v4_1/models/function_coverage.py | 41 - .../test/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/test/v4_1/models/identity_ref.py | 65 - .../test/v4_1/models/last_result_details.py | 33 - .../v4_1/models/linked_work_items_query.py | 45 - .../models/linked_work_items_query_result.py | 45 - vsts/vsts/test/v4_1/models/module_coverage.py | 49 - vsts/vsts/test/v4_1/models/name_value_pair.py | 29 - .../test/v4_1/models/plan_update_model.py | 89 - .../vsts/test/v4_1/models/point_assignment.py | 29 - .../test/v4_1/models/point_update_model.py | 33 - vsts/vsts/test/v4_1/models/points_filter.py | 33 - vsts/vsts/test/v4_1/models/property_bag.py | 25 - vsts/vsts/test/v4_1/models/query_model.py | 25 - vsts/vsts/test/v4_1/models/reference_links.py | 25 - ...elease_environment_definition_reference.py | 29 - .../test/v4_1/models/release_reference.py | 49 - .../v4_1/models/result_retention_settings.py | 37 - vsts/vsts/test/v4_1/models/results_filter.py | 53 - .../vsts/test/v4_1/models/run_create_model.py | 145 - vsts/vsts/test/v4_1/models/run_filter.py | 29 - vsts/vsts/test/v4_1/models/run_statistic.py | 37 - .../vsts/test/v4_1/models/run_update_model.py | 117 - .../test/v4_1/models/shallow_reference.py | 33 - .../v4_1/models/shallow_test_case_result.py | 57 - .../test/v4_1/models/shared_step_model.py | 29 - .../test/v4_1/models/suite_create_model.py | 37 - vsts/vsts/test/v4_1/models/suite_entry.py | 37 - .../v4_1/models/suite_entry_update_model.py | 33 - vsts/vsts/test/v4_1/models/suite_test_case.py | 29 - .../test/v4_1/models/suite_update_model.py | 45 - vsts/vsts/test/v4_1/models/team_context.py | 37 - .../v4_1/models/team_project_reference.py | 53 - .../v4_1/models/test_action_result_model.py | 59 - vsts/vsts/test/v4_1/models/test_attachment.py | 49 - .../v4_1/models/test_attachment_reference.py | 29 - .../models/test_attachment_request_model.py | 37 - .../vsts/test/v4_1/models/test_case_result.py | 205 - .../test_case_result_attachment_model.py | 41 - .../models/test_case_result_identifier.py | 29 - .../models/test_case_result_update_model.py | 93 - .../test/v4_1/models/test_configuration.py | 69 - .../vsts/test/v4_1/models/test_environment.py | 29 - .../test/v4_1/models/test_failure_details.py | 29 - .../v4_1/models/test_failures_analysis.py | 37 - .../models/test_iteration_details_model.py | 65 - .../v4_1/models/test_message_log_details.py | 33 - vsts/vsts/test/v4_1/models/test_method.py | 29 - .../v4_1/models/test_operation_reference.py | 33 - vsts/vsts/test/v4_1/models/test_plan.py | 117 - .../v4_1/models/test_plan_clone_request.py | 33 - vsts/vsts/test/v4_1/models/test_point.py | 109 - .../test/v4_1/models/test_points_query.py | 37 - .../test/v4_1/models/test_resolution_state.py | 33 - .../v4_1/models/test_result_create_model.py | 125 - .../test/v4_1/models/test_result_document.py | 29 - .../test/v4_1/models/test_result_history.py | 29 - .../test_result_history_details_for_group.py | 29 - .../v4_1/models/test_result_model_base.py | 45 - .../models/test_result_parameter_model.py | 45 - .../test/v4_1/models/test_result_payload.py | 33 - .../test/v4_1/models/test_result_summary.py | 37 - .../v4_1/models/test_result_trend_filter.py | 53 - .../test/v4_1/models/test_results_context.py | 33 - .../test/v4_1/models/test_results_details.py | 29 - .../models/test_results_details_for_group.py | 33 - .../models/test_results_groups_for_build.py | 29 - .../models/test_results_groups_for_release.py | 33 - .../test/v4_1/models/test_results_query.py | 33 - vsts/vsts/test/v4_1/models/test_run.py | 193 - .../test/v4_1/models/test_run_coverage.py | 37 - .../test/v4_1/models/test_run_statistic.py | 29 - vsts/vsts/test/v4_1/models/test_session.py | 81 - vsts/vsts/test/v4_1/models/test_settings.py | 49 - vsts/vsts/test/v4_1/models/test_suite.py | 117 - .../v4_1/models/test_suite_clone_request.py | 33 - .../v4_1/models/test_summary_for_work_item.py | 29 - .../v4_1/models/test_to_work_item_links.py | 29 - vsts/vsts/test/v4_1/models/test_variable.py | 49 - .../test/v4_1/models/work_item_reference.py | 41 - .../v4_1/models/work_item_to_test_links.py | 29 - vsts/vsts/tfvc/__init__.py | 7 - vsts/vsts/tfvc/v4_0/__init__.py | 7 - vsts/vsts/tfvc/v4_0/models/__init__.py | 83 - .../tfvc/v4_0/models/associated_work_item.py | 49 - vsts/vsts/tfvc/v4_0/models/change.py | 41 - vsts/vsts/tfvc/v4_0/models/checkin_note.py | 29 - .../tfvc/v4_0/models/file_content_metadata.py | 49 - vsts/vsts/tfvc/v4_0/models/git_repository.py | 61 - .../tfvc/v4_0/models/git_repository_ref.py | 45 - vsts/vsts/tfvc/v4_0/models/identity_ref.py | 61 - vsts/vsts/tfvc/v4_0/models/item_content.py | 29 - vsts/vsts/tfvc/v4_0/models/item_model.py | 45 - vsts/vsts/tfvc/v4_0/models/reference_links.py | 25 - .../team_project_collection_reference.py | 33 - .../v4_0/models/team_project_reference.py | 53 - vsts/vsts/tfvc/v4_0/models/tfvc_branch.py | 58 - .../tfvc/v4_0/models/tfvc_branch_mapping.py | 33 - vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py | 48 - vsts/vsts/tfvc/v4_0/models/tfvc_change.py | 29 - vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py | 77 - .../tfvc/v4_0/models/tfvc_changeset_ref.py | 53 - .../models/tfvc_changeset_search_criteria.py | 53 - .../models/tfvc_changesets_request_data.py | 33 - vsts/vsts/tfvc/v4_0/models/tfvc_item.py | 67 - .../tfvc/v4_0/models/tfvc_item_descriptor.py | 41 - .../v4_0/models/tfvc_item_request_data.py | 33 - vsts/vsts/tfvc/v4_0/models/tfvc_label.py | 49 - vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py | 53 - .../v4_0/models/tfvc_label_request_data.py | 45 - .../tfvc/v4_0/models/tfvc_merge_source.py | 37 - .../v4_0/models/tfvc_policy_failure_info.py | 29 - .../v4_0/models/tfvc_policy_override_info.py | 29 - .../v4_0/models/tfvc_shallow_branch_ref.py | 25 - vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py | 61 - .../tfvc/v4_0/models/tfvc_shelveset_ref.py | 53 - .../models/tfvc_shelveset_request_data.py | 49 - .../v4_0/models/tfvc_version_descriptor.py | 33 - .../models/version_control_project_info.py | 37 - vsts/vsts/tfvc/v4_0/models/vsts_info.py | 33 - vsts/vsts/tfvc/v4_1/__init__.py | 7 - vsts/vsts/tfvc/v4_1/models/__init__.py | 85 - .../tfvc/v4_1/models/associated_work_item.py | 49 - vsts/vsts/tfvc/v4_1/models/change.py | 41 - vsts/vsts/tfvc/v4_1/models/checkin_note.py | 29 - .../tfvc/v4_1/models/file_content_metadata.py | 49 - vsts/vsts/tfvc/v4_1/models/git_repository.py | 65 - .../tfvc/v4_1/models/git_repository_ref.py | 53 - .../tfvc/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/tfvc/v4_1/models/identity_ref.py | 65 - vsts/vsts/tfvc/v4_1/models/item_content.py | 29 - vsts/vsts/tfvc/v4_1/models/item_model.py | 49 - vsts/vsts/tfvc/v4_1/models/reference_links.py | 25 - .../team_project_collection_reference.py | 33 - .../v4_1/models/team_project_reference.py | 53 - vsts/vsts/tfvc/v4_1/models/tfvc_branch.py | 58 - .../tfvc/v4_1/models/tfvc_branch_mapping.py | 33 - vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py | 48 - vsts/vsts/tfvc/v4_1/models/tfvc_change.py | 29 - vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py | 77 - .../tfvc/v4_1/models/tfvc_changeset_ref.py | 53 - .../models/tfvc_changeset_search_criteria.py | 53 - .../models/tfvc_changesets_request_data.py | 33 - vsts/vsts/tfvc/v4_1/models/tfvc_item.py | 70 - .../tfvc/v4_1/models/tfvc_item_descriptor.py | 41 - .../v4_1/models/tfvc_item_request_data.py | 33 - vsts/vsts/tfvc/v4_1/models/tfvc_label.py | 49 - vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py | 53 - .../v4_1/models/tfvc_label_request_data.py | 45 - .../tfvc/v4_1/models/tfvc_merge_source.py | 37 - .../v4_1/models/tfvc_policy_failure_info.py | 29 - .../v4_1/models/tfvc_policy_override_info.py | 29 - .../v4_1/models/tfvc_shallow_branch_ref.py | 25 - vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py | 61 - .../tfvc/v4_1/models/tfvc_shelveset_ref.py | 53 - .../models/tfvc_shelveset_request_data.py | 49 - .../v4_1/models/tfvc_version_descriptor.py | 33 - .../models/version_control_project_info.py | 37 - vsts/vsts/tfvc/v4_1/models/vsts_info.py | 33 - vsts/vsts/wiki/__init__.py | 7 - vsts/vsts/wiki/v4_0/__init__.py | 7 - vsts/vsts/wiki/v4_0/models/__init__.py | 59 - vsts/vsts/wiki/v4_0/models/change.py | 41 - .../wiki/v4_0/models/file_content_metadata.py | 49 - vsts/vsts/wiki/v4_0/models/git_commit_ref.py | 73 - vsts/vsts/wiki/v4_0/models/git_item.py | 59 - vsts/vsts/wiki/v4_0/models/git_push.py | 51 - vsts/vsts/wiki/v4_0/models/git_push_ref.py | 45 - vsts/vsts/wiki/v4_0/models/git_ref_update.py | 41 - vsts/vsts/wiki/v4_0/models/git_repository.py | 61 - .../wiki/v4_0/models/git_repository_ref.py | 45 - vsts/vsts/wiki/v4_0/models/git_status.py | 57 - .../wiki/v4_0/models/git_status_context.py | 29 - vsts/vsts/wiki/v4_0/models/git_template.py | 29 - vsts/vsts/wiki/v4_0/models/git_user_date.py | 33 - .../v4_0/models/git_version_descriptor.py | 33 - vsts/vsts/wiki/v4_0/models/item_content.py | 29 - vsts/vsts/wiki/v4_0/models/item_model.py | 45 - vsts/vsts/wiki/v4_0/models/wiki_attachment.py | 25 - .../v4_0/models/wiki_attachment_change.py | 25 - .../v4_0/models/wiki_attachment_response.py | 29 - vsts/vsts/wiki/v4_0/models/wiki_change.py | 33 - vsts/vsts/wiki/v4_0/models/wiki_page.py | 45 - .../vsts/wiki/v4_0/models/wiki_page_change.py | 29 - vsts/vsts/wiki/v4_0/models/wiki_repository.py | 33 - vsts/vsts/wiki/v4_0/models/wiki_update.py | 41 - vsts/vsts/wiki/v4_1/__init__.py | 7 - vsts/vsts/wiki/v4_1/models/__init__.py | 43 - vsts/vsts/wiki/v4_1/models/git_repository.py | 65 - .../wiki/v4_1/models/git_repository_ref.py | 53 - .../v4_1/models/git_version_descriptor.py | 33 - vsts/vsts/wiki/v4_1/models/wiki_attachment.py | 29 - .../v4_1/models/wiki_attachment_response.py | 29 - .../models/wiki_create_base_parameters.py | 41 - .../v4_1/models/wiki_create_parameters_v2.py | 40 - vsts/vsts/wiki/v4_1/models/wiki_page.py | 56 - .../wiki_page_create_or_update_parameters.py | 25 - vsts/vsts/wiki/v4_1/models/wiki_page_move.py | 34 - .../v4_1/models/wiki_page_move_parameters.py | 33 - .../v4_1/models/wiki_page_move_response.py | 29 - .../wiki/v4_1/models/wiki_page_response.py | 29 - .../wiki/v4_1/models/wiki_page_view_stats.py | 33 - .../v4_1/models/wiki_update_parameters.py | 25 - vsts/vsts/wiki/v4_1/models/wiki_v2.py | 56 - vsts/vsts/work/__init__.py | 7 - vsts/vsts/work/v4_0/__init__.py | 7 - vsts/vsts/work/v4_0/models/__init__.py | 127 - vsts/vsts/work/v4_0/models/activity.py | 29 - vsts/vsts/work/v4_0/models/backlog_column.py | 29 - .../work/v4_0/models/backlog_configuration.py | 53 - vsts/vsts/work/v4_0/models/backlog_fields.py | 25 - vsts/vsts/work/v4_0/models/backlog_level.py | 37 - .../models/backlog_level_configuration.py | 57 - vsts/vsts/work/v4_0/models/board.py | 62 - .../v4_0/models/board_card_rule_settings.py | 33 - .../work/v4_0/models/board_card_settings.py | 25 - vsts/vsts/work/v4_0/models/board_chart.py | 35 - .../work/v4_0/models/board_chart_reference.py | 29 - vsts/vsts/work/v4_0/models/board_column.py | 49 - vsts/vsts/work/v4_0/models/board_fields.py | 33 - .../work/v4_0/models/board_filter_settings.py | 33 - vsts/vsts/work/v4_0/models/board_reference.py | 33 - vsts/vsts/work/v4_0/models/board_row.py | 29 - .../work/v4_0/models/board_suggested_value.py | 25 - .../work/v4_0/models/board_user_settings.py | 25 - vsts/vsts/work/v4_0/models/capacity_patch.py | 29 - .../v4_0/models/category_configuration.py | 33 - vsts/vsts/work/v4_0/models/create_plan.py | 37 - vsts/vsts/work/v4_0/models/date_range.py | 29 - .../work/v4_0/models/delivery_view_data.py | 47 - vsts/vsts/work/v4_0/models/field_reference.py | 29 - vsts/vsts/work/v4_0/models/filter_clause.py | 41 - vsts/vsts/work/v4_0/models/filter_group.py | 33 - vsts/vsts/work/v4_0/models/filter_model.py | 33 - vsts/vsts/work/v4_0/models/identity_ref.py | 61 - vsts/vsts/work/v4_0/models/member.py | 41 - .../work/v4_0/models/parent_child_wIMap.py | 33 - vsts/vsts/work/v4_0/models/plan.py | 69 - vsts/vsts/work/v4_0/models/plan_view_data.py | 29 - .../work/v4_0/models/process_configuration.py | 45 - vsts/vsts/work/v4_0/models/reference_links.py | 25 - vsts/vsts/work/v4_0/models/rule.py | 41 - vsts/vsts/work/v4_0/models/team_context.py | 37 - .../vsts/work/v4_0/models/team_field_value.py | 29 - .../work/v4_0/models/team_field_values.py | 39 - .../v4_0/models/team_field_values_patch.py | 29 - .../v4_0/models/team_iteration_attributes.py | 29 - .../work/v4_0/models/team_member_capacity.py | 39 - vsts/vsts/work/v4_0/models/team_setting.py | 51 - .../team_settings_data_contract_base.py | 29 - .../v4_0/models/team_settings_days_off.py | 31 - .../models/team_settings_days_off_patch.py | 25 - .../v4_0/models/team_settings_iteration.py | 43 - .../work/v4_0/models/team_settings_patch.py | 45 - .../v4_0/models/timeline_criteria_status.py | 29 - .../v4_0/models/timeline_iteration_status.py | 29 - .../work/v4_0/models/timeline_team_data.py | 77 - .../v4_0/models/timeline_team_iteration.py | 49 - .../work/v4_0/models/timeline_team_status.py | 29 - vsts/vsts/work/v4_0/models/update_plan.py | 41 - vsts/vsts/work/v4_0/models/work_item_color.py | 33 - .../v4_0/models/work_item_field_reference.py | 33 - .../work_item_tracking_resource_reference.py | 25 - .../v4_0/models/work_item_type_reference.py | 28 - .../v4_0/models/work_item_type_state_info.py | 29 - vsts/vsts/work/v4_1/__init__.py | 7 - vsts/vsts/work/v4_1/models/__init__.py | 131 - vsts/vsts/work/v4_1/models/activity.py | 29 - vsts/vsts/work/v4_1/models/backlog_column.py | 29 - .../work/v4_1/models/backlog_configuration.py | 53 - vsts/vsts/work/v4_1/models/backlog_fields.py | 25 - vsts/vsts/work/v4_1/models/backlog_level.py | 37 - .../models/backlog_level_configuration.py | 65 - .../v4_1/models/backlog_level_work_items.py | 25 - vsts/vsts/work/v4_1/models/board.py | 62 - .../v4_1/models/board_card_rule_settings.py | 33 - .../work/v4_1/models/board_card_settings.py | 25 - vsts/vsts/work/v4_1/models/board_chart.py | 35 - .../work/v4_1/models/board_chart_reference.py | 29 - vsts/vsts/work/v4_1/models/board_column.py | 49 - vsts/vsts/work/v4_1/models/board_fields.py | 33 - vsts/vsts/work/v4_1/models/board_reference.py | 33 - vsts/vsts/work/v4_1/models/board_row.py | 29 - .../work/v4_1/models/board_suggested_value.py | 25 - .../work/v4_1/models/board_user_settings.py | 25 - vsts/vsts/work/v4_1/models/capacity_patch.py | 29 - .../v4_1/models/category_configuration.py | 33 - vsts/vsts/work/v4_1/models/create_plan.py | 37 - vsts/vsts/work/v4_1/models/date_range.py | 29 - .../work/v4_1/models/delivery_view_data.py | 47 - vsts/vsts/work/v4_1/models/field_reference.py | 29 - vsts/vsts/work/v4_1/models/filter_clause.py | 41 - .../work/v4_1/models/graph_subject_base.py | 37 - vsts/vsts/work/v4_1/models/identity_ref.py | 65 - .../work/v4_1/models/iteration_work_items.py | 31 - vsts/vsts/work/v4_1/models/member.py | 41 - .../work/v4_1/models/parent_child_wIMap.py | 33 - vsts/vsts/work/v4_1/models/plan.py | 69 - vsts/vsts/work/v4_1/models/plan_view_data.py | 29 - .../work/v4_1/models/process_configuration.py | 45 - vsts/vsts/work/v4_1/models/reference_links.py | 25 - vsts/vsts/work/v4_1/models/rule.py | 41 - vsts/vsts/work/v4_1/models/team_context.py | 37 - .../vsts/work/v4_1/models/team_field_value.py | 29 - .../work/v4_1/models/team_field_values.py | 39 - .../v4_1/models/team_field_values_patch.py | 29 - .../v4_1/models/team_iteration_attributes.py | 33 - .../work/v4_1/models/team_member_capacity.py | 39 - vsts/vsts/work/v4_1/models/team_setting.py | 51 - .../team_settings_data_contract_base.py | 29 - .../v4_1/models/team_settings_days_off.py | 31 - .../models/team_settings_days_off_patch.py | 25 - .../v4_1/models/team_settings_iteration.py | 43 - .../work/v4_1/models/team_settings_patch.py | 45 - .../v4_1/models/timeline_criteria_status.py | 29 - .../v4_1/models/timeline_iteration_status.py | 29 - .../work/v4_1/models/timeline_team_data.py | 77 - .../v4_1/models/timeline_team_iteration.py | 49 - .../work/v4_1/models/timeline_team_status.py | 29 - vsts/vsts/work/v4_1/models/update_plan.py | 41 - vsts/vsts/work/v4_1/models/work_item_color.py | 33 - .../v4_1/models/work_item_field_reference.py | 33 - vsts/vsts/work/v4_1/models/work_item_link.py | 33 - .../work/v4_1/models/work_item_reference.py | 29 - .../work_item_tracking_resource_reference.py | 25 - .../v4_1/models/work_item_type_reference.py | 28 - .../v4_1/models/work_item_type_state_info.py | 29 - vsts/vsts/work_item_tracking/__init__.py | 7 - vsts/vsts/work_item_tracking/v4_0/__init__.py | 7 - .../v4_0/models/__init__.py | 141 - .../v4_0/models/account_my_work_result.py | 29 - ...account_recent_activity_work_item_model.py | 61 - .../account_recent_mention_work_item_model.py | 49 - .../models/account_work_work_item_model.py | 49 - .../v4_0/models/artifact_uri_query.py | 25 - .../v4_0/models/artifact_uri_query_result.py | 25 - .../v4_0/models/attachment_reference.py | 29 - .../v4_0/models/field_dependent_rule.py | 31 - .../v4_0/models/fields_to_evaluate.py | 37 - .../v4_0/models/identity_ref.py | 61 - .../v4_0/models/identity_reference.py | 56 - .../v4_0/models/json_patch_operation.py | 37 - .../work_item_tracking/v4_0/models/link.py | 33 - .../models/project_work_item_state_colors.py | 29 - .../v4_0/models/provisioning_result.py | 25 - .../v4_0/models/query_hierarchy_item.py | 115 - .../models/query_hierarchy_items_result.py | 33 - .../v4_0/models/reference_links.py | 25 - .../v4_0/models/reporting_work_item_link.py | 57 - .../models/reporting_work_item_links_batch.py | 21 - .../reporting_work_item_revisions_batch.py | 21 - .../reporting_work_item_revisions_filter.py | 45 - .../v4_0/models/streamed_batch.py | 37 - .../v4_0/models/team_context.py | 37 - .../work_item_tracking/v4_0/models/wiql.py | 25 - .../v4_0/models/work_artifact_link.py | 33 - .../v4_0/models/work_item.py | 43 - .../models/work_item_classification_node.py | 51 - .../v4_0/models/work_item_comment.py | 43 - .../v4_0/models/work_item_comments.py | 37 - .../v4_0/models/work_item_delete.py | 52 - .../v4_0/models/work_item_delete_reference.py | 57 - .../work_item_delete_shallow_reference.py | 29 - .../v4_0/models/work_item_delete_update.py | 25 - .../v4_0/models/work_item_field.py | 63 - .../v4_0/models/work_item_field_operation.py | 29 - .../v4_0/models/work_item_field_reference.py | 33 - .../v4_0/models/work_item_field_update.py | 29 - .../v4_0/models/work_item_history.py | 43 - .../v4_0/models/work_item_icon.py | 29 - .../v4_0/models/work_item_link.py | 33 - .../v4_0/models/work_item_query_clause.py | 49 - .../v4_0/models/work_item_query_result.py | 49 - .../models/work_item_query_sort_column.py | 29 - .../v4_0/models/work_item_reference.py | 29 - .../v4_0/models/work_item_relation.py | 30 - .../v4_0/models/work_item_relation_type.py | 37 - .../v4_0/models/work_item_relation_updates.py | 33 - .../v4_0/models/work_item_state_color.py | 29 - .../v4_0/models/work_item_state_transition.py | 29 - .../v4_0/models/work_item_template.py | 43 - .../models/work_item_template_reference.py | 43 - .../models/work_item_tracking_reference.py | 35 - .../models/work_item_tracking_resource.py | 28 - .../work_item_tracking_resource_reference.py | 25 - .../v4_0/models/work_item_type.py | 59 - .../v4_0/models/work_item_type_category.py | 43 - .../v4_0/models/work_item_type_color.py | 33 - .../models/work_item_type_color_and_icon.py | 33 - .../models/work_item_type_field_instance.py | 42 - .../v4_0/models/work_item_type_reference.py | 28 - .../models/work_item_type_state_colors.py | 29 - .../v4_0/models/work_item_type_template.py | 25 - .../work_item_type_template_update_model.py | 37 - .../v4_0/models/work_item_update.py | 52 - vsts/vsts/work_item_tracking/v4_1/__init__.py | 7 - .../v4_1/models/__init__.py | 149 - .../v4_1/models/account_my_work_result.py | 29 - ...account_recent_activity_work_item_model.py | 61 - .../account_recent_mention_work_item_model.py | 49 - .../models/account_work_work_item_model.py | 49 - .../v4_1/models/artifact_uri_query.py | 25 - .../v4_1/models/artifact_uri_query_result.py | 25 - .../v4_1/models/attachment_reference.py | 29 - .../v4_1/models/field_dependent_rule.py | 31 - .../v4_1/models/fields_to_evaluate.py | 37 - .../v4_1/models/graph_subject_base.py | 37 - .../v4_1/models/identity_ref.py | 65 - .../v4_1/models/identity_reference.py | 62 - .../v4_1/models/json_patch_operation.py | 37 - .../work_item_tracking/v4_1/models/link.py | 33 - .../models/project_work_item_state_colors.py | 29 - .../v4_1/models/provisioning_result.py | 25 - .../v4_1/models/query_hierarchy_item.py | 127 - .../models/query_hierarchy_items_result.py | 33 - .../v4_1/models/reference_links.py | 25 - .../v4_1/models/reporting_work_item_link.py | 57 - .../models/reporting_work_item_links_batch.py | 21 - .../reporting_work_item_revisions_batch.py | 21 - .../reporting_work_item_revisions_filter.py | 45 - .../v4_1/models/streamed_batch.py | 37 - .../v4_1/models/team_context.py | 37 - .../work_item_tracking/v4_1/models/wiql.py | 25 - .../v4_1/models/work_artifact_link.py | 33 - .../v4_1/models/work_item.py | 43 - .../models/work_item_classification_node.py | 55 - .../v4_1/models/work_item_comment.py | 43 - .../v4_1/models/work_item_comments.py | 43 - .../v4_1/models/work_item_delete.py | 52 - .../v4_1/models/work_item_delete_reference.py | 57 - .../work_item_delete_shallow_reference.py | 29 - .../v4_1/models/work_item_delete_update.py | 25 - .../v4_1/models/work_item_field.py | 67 - .../v4_1/models/work_item_field_operation.py | 29 - .../v4_1/models/work_item_field_reference.py | 33 - .../v4_1/models/work_item_field_update.py | 29 - .../v4_1/models/work_item_history.py | 43 - .../v4_1/models/work_item_icon.py | 29 - .../v4_1/models/work_item_link.py | 33 - .../work_item_next_state_on_transition.py | 37 - .../v4_1/models/work_item_query_clause.py | 49 - .../v4_1/models/work_item_query_result.py | 49 - .../models/work_item_query_sort_column.py | 29 - .../v4_1/models/work_item_reference.py | 29 - .../v4_1/models/work_item_relation.py | 30 - .../v4_1/models/work_item_relation_type.py | 37 - .../v4_1/models/work_item_relation_updates.py | 33 - .../v4_1/models/work_item_state_color.py | 33 - .../v4_1/models/work_item_state_transition.py | 29 - .../v4_1/models/work_item_template.py | 43 - .../models/work_item_template_reference.py | 43 - .../models/work_item_tracking_reference.py | 35 - .../models/work_item_tracking_resource.py | 28 - .../work_item_tracking_resource_reference.py | 25 - .../v4_1/models/work_item_type.py | 67 - .../v4_1/models/work_item_type_category.py | 43 - .../v4_1/models/work_item_type_color.py | 33 - .../models/work_item_type_color_and_icon.py | 33 - .../models/work_item_type_field_instance.py | 47 - .../work_item_type_field_instance_base.py | 42 - .../work_item_type_field_with_references.py | 47 - .../v4_1/models/work_item_type_reference.py | 28 - .../models/work_item_type_state_colors.py | 29 - .../v4_1/models/work_item_type_template.py | 25 - .../work_item_type_template_update_model.py | 37 - .../v4_1/models/work_item_update.py | 55 - .../work_item_tracking_process/__init__.py | 7 - .../v4_0/__init__.py | 7 - .../v4_0/models/__init__.py | 55 - .../v4_0/models/control.py | 73 - .../v4_0/models/create_process_model.py | 37 - .../v4_0/models/extension.py | 25 - .../v4_0/models/field_model.py | 45 - .../v4_0/models/field_rule_model.py | 45 - .../v4_0/models/form_layout.py | 33 - .../v4_0/models/group.py | 61 - .../v4_0/models/page.py | 65 - .../v4_0/models/process_model.py | 45 - .../v4_0/models/process_properties.py | 41 - .../v4_0/models/project_reference.py | 37 - .../v4_0/models/rule_action_model.py | 33 - .../v4_0/models/rule_condition_model.py | 33 - .../v4_0/models/section.py | 33 - .../v4_0/models/update_process_model.py | 37 - .../v4_0/models/wit_contribution.py | 37 - .../v4_0/models/work_item_behavior.py | 61 - .../v4_0/models/work_item_behavior_field.py | 33 - .../models/work_item_behavior_reference.py | 29 - .../models/work_item_state_result_model.py | 49 - .../v4_0/models/work_item_type_behavior.py | 33 - .../v4_0/models/work_item_type_model.py | 69 - .../v4_1/__init__.py | 7 - .../v4_1/models/__init__.py | 55 - .../v4_1/models/control.py | 73 - .../v4_1/models/create_process_model.py | 37 - .../v4_1/models/extension.py | 25 - .../v4_1/models/field_model.py | 45 - .../v4_1/models/field_rule_model.py | 45 - .../v4_1/models/form_layout.py | 33 - .../v4_1/models/group.py | 61 - .../v4_1/models/page.py | 65 - .../v4_1/models/process_model.py | 45 - .../v4_1/models/process_properties.py | 41 - .../v4_1/models/project_reference.py | 37 - .../v4_1/models/rule_action_model.py | 33 - .../v4_1/models/rule_condition_model.py | 33 - .../v4_1/models/section.py | 33 - .../v4_1/models/update_process_model.py | 37 - .../v4_1/models/wit_contribution.py | 37 - .../v4_1/models/work_item_behavior.py | 61 - .../v4_1/models/work_item_behavior_field.py | 33 - .../models/work_item_behavior_reference.py | 29 - .../models/work_item_state_result_model.py | 49 - .../v4_1/models/work_item_type_behavior.py | 33 - .../v4_1/models/work_item_type_model.py | 69 - .../__init__.py | 7 - .../v4_0/__init__.py | 7 - .../v4_0/models/__init__.py | 57 - .../v4_0/models/behavior_create_model.py | 33 - .../v4_0/models/behavior_model.py | 57 - .../v4_0/models/behavior_replace_model.py | 29 - .../v4_0/models/control.py | 73 - .../v4_0/models/extension.py | 25 - .../v4_0/models/field_model.py | 45 - .../v4_0/models/field_update.py | 29 - .../v4_0/models/form_layout.py | 33 - .../v4_0/models/group.py | 61 - .../v4_0/models/hide_state_model.py | 25 - .../v4_0/models/page.py | 65 - .../v4_0/models/pick_list_item_model.py | 29 - .../v4_0/models/pick_list_metadata_model.py | 41 - .../v4_0/models/pick_list_model.py | 40 - .../v4_0/models/section.py | 33 - .../v4_0/models/wit_contribution.py | 37 - .../models/work_item_behavior_reference.py | 29 - .../models/work_item_state_input_model.py | 37 - .../models/work_item_state_result_model.py | 49 - .../v4_0/models/work_item_type_behavior.py | 33 - .../v4_0/models/work_item_type_field_model.py | 57 - .../v4_0/models/work_item_type_model.py | 69 - .../models/work_item_type_update_model.py | 37 - .../v4_1/__init__.py | 7 - .../v4_1/models/__init__.py | 57 - .../v4_1/models/behavior_create_model.py | 33 - .../v4_1/models/behavior_model.py | 57 - .../v4_1/models/behavior_replace_model.py | 29 - .../v4_1/models/control.py | 73 - .../v4_1/models/extension.py | 25 - .../v4_1/models/field_model.py | 45 - .../v4_1/models/field_update.py | 29 - .../v4_1/models/form_layout.py | 33 - .../v4_1/models/group.py | 61 - .../v4_1/models/hide_state_model.py | 25 - .../v4_1/models/page.py | 65 - .../v4_1/models/pick_list_item_model.py | 29 - .../v4_1/models/pick_list_metadata_model.py | 41 - .../v4_1/models/pick_list_model.py | 40 - .../v4_1/models/section.py | 33 - .../v4_1/models/wit_contribution.py | 37 - .../models/work_item_behavior_reference.py | 29 - .../models/work_item_state_input_model.py | 37 - .../models/work_item_state_result_model.py | 49 - .../v4_1/models/work_item_type_behavior.py | 33 - .../v4_1/models/work_item_type_field_model.py | 57 - .../v4_1/models/work_item_type_model.py | 69 - .../models/work_item_type_update_model.py | 37 - .../__init__.py | 7 - .../v4_0/__init__.py | 7 - .../v4_0/models/__init__.py | 23 - .../v4_0/models/admin_behavior.py | 61 - .../v4_0/models/admin_behavior_field.py | 33 - .../models/check_template_existence_result.py | 37 - .../v4_0/models/process_import_result.py | 37 - .../v4_0/models/process_promote_status.py | 45 - .../v4_0/models/validation_issue.py | 41 - .../v4_1/__init__.py | 7 - .../v4_1/models/__init__.py | 23 - .../v4_1/models/admin_behavior.py | 61 - .../v4_1/models/admin_behavior_field.py | 33 - .../models/check_template_existence_result.py | 37 - .../v4_1/models/process_import_result.py | 41 - .../v4_1/models/process_promote_status.py | 45 - .../v4_1/models/validation_issue.py | 41 - 2702 files changed, 76149 insertions(+), 105312 deletions(-) rename {vsts => azure-devops}/LICENSE.txt (100%) rename {vsts => azure-devops}/MANIFEST.in (100%) rename {vsts/vsts => azure-devops/azure}/__init__.py (100%) rename {vsts/vsts/accounts/v4_1 => azure-devops/azure/devops}/__init__.py (62%) create mode 100644 azure-devops/azure/devops/_file_cache.py create mode 100644 azure-devops/azure/devops/_models.py create mode 100644 azure-devops/azure/devops/client.py create mode 100644 azure-devops/azure/devops/client_configuration.py create mode 100644 azure-devops/azure/devops/connection.py rename {vsts/vsts => azure-devops/azure/devops}/credentials.py (100%) create mode 100644 azure-devops/azure/devops/exceptions.py rename {vsts/vsts/accounts => azure-devops/azure/devops}/v4_0/__init__.py (100%) rename {vsts/vsts/client_trace/v4_1 => azure-devops/azure/devops/v4_0/accounts}/__init__.py (82%) rename {vsts/vsts/accounts/v4_0 => azure-devops/azure/devops/v4_0/accounts}/accounts_client.py (98%) rename vsts/vsts/accounts/v4_0/models/account.py => azure-devops/azure/devops/v4_0/accounts/models.py (64%) create mode 100644 azure-devops/azure/devops/v4_0/build/__init__.py rename {vsts/vsts/build/v4_0 => azure-devops/azure/devops/v4_0/build}/build_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/build/models.py create mode 100644 azure-devops/azure/devops/v4_0/contributions/__init__.py rename {vsts/vsts/contributions/v4_0 => azure-devops/azure/devops/v4_0/contributions}/contributions_client.py (98%) create mode 100644 azure-devops/azure/devops/v4_0/contributions/models.py create mode 100644 azure-devops/azure/devops/v4_0/core/__init__.py rename {vsts/vsts/core/v4_0 => azure-devops/azure/devops/v4_0/core}/core_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/core/models.py rename {vsts/vsts/customer_intelligence/v4_0/models => azure-devops/azure/devops/v4_0/customer_intelligence}/__init__.py (90%) rename {vsts/vsts/customer_intelligence/v4_0 => azure-devops/azure/devops/v4_0/customer_intelligence}/customer_intelligence_client.py (94%) rename vsts/vsts/customer_intelligence/v4_0/models/customer_intelligence_event.py => azure-devops/azure/devops/v4_0/customer_intelligence/models.py (96%) rename {vsts/vsts/operations/v4_1/models => azure-devops/azure/devops/v4_0/dashboard}/__init__.py (59%) rename {vsts/vsts/dashboard/v4_0 => azure-devops/azure/devops/v4_0/dashboard}/dashboard_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/dashboard/models.py create mode 100644 azure-devops/azure/devops/v4_0/extension_management/__init__.py rename {vsts/vsts/extension_management/v4_0 => azure-devops/azure/devops/v4_0/extension_management}/extension_management_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/extension_management/models.py rename {vsts/vsts/client_trace/v4_1/models => azure-devops/azure/devops/v4_0/feature_availability}/__init__.py (88%) rename {vsts/vsts/feature_availability/v4_0 => azure-devops/azure/devops/v4_0/feature_availability}/feature_availability_client.py (98%) rename vsts/vsts/feature_availability/v4_0/models/feature_flag.py => azure-devops/azure/devops/v4_0/feature_availability/models.py (81%) rename {vsts/vsts/operations/v4_0/models => azure-devops/azure/devops/v4_0/feature_management}/__init__.py (75%) rename {vsts/vsts/feature_management/v4_0 => azure-devops/azure/devops/v4_0/feature_management}/feature_management_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/feature_management/models.py rename {vsts/vsts/file_container/v4_0/models => azure-devops/azure/devops/v4_0/file_container}/__init__.py (86%) rename {vsts/vsts/file_container/v4_0 => azure-devops/azure/devops/v4_0/file_container}/file_container_client.py (98%) rename vsts/vsts/file_container/v4_1/models/file_container_item.py => azure-devops/azure/devops/v4_0/file_container/models.py (59%) create mode 100644 azure-devops/azure/devops/v4_0/gallery/__init__.py rename {vsts/vsts/gallery/v4_0 => azure-devops/azure/devops/v4_0/gallery}/gallery_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/gallery/models.py create mode 100644 azure-devops/azure/devops/v4_0/git/__init__.py rename {vsts/vsts/git/v4_0 => azure-devops/azure/devops/v4_0/git}/git_client.py (99%) rename {vsts/vsts/git/v4_0 => azure-devops/azure/devops/v4_0/git}/git_client_base.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/git/models.py rename vsts/vsts/notification/v4_0/models/input_values_error.py => azure-devops/azure/devops/v4_0/identity/__init__.py (59%) rename {vsts/vsts/identity/v4_0 => azure-devops/azure/devops/v4_0/identity}/identity_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/identity/models.py rename {vsts/vsts/accounts/v4_1/models => azure-devops/azure/devops/v4_0/licensing}/__init__.py (54%) rename {vsts/vsts/licensing/v4_0 => azure-devops/azure/devops/v4_0/licensing}/licensing_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/licensing/models.py create mode 100644 azure-devops/azure/devops/v4_0/location/__init__.py rename {vsts/vsts/location/v4_0 => azure-devops/azure/devops/v4_0/location}/location_client.py (98%) create mode 100644 azure-devops/azure/devops/v4_0/location/models.py rename {vsts/vsts/feature_management/v4_1/models => azure-devops/azure/devops/v4_0/member_entitlement_management}/__init__.py (51%) rename {vsts/vsts/member_entitlement_management/v4_0 => azure-devops/azure/devops/v4_0/member_entitlement_management}/member_entitlement_management_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/member_entitlement_management/models.py create mode 100644 azure-devops/azure/devops/v4_0/notification/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/notification/models.py rename {vsts/vsts/notification/v4_0 => azure-devops/azure/devops/v4_0/notification}/notification_client.py (99%) rename {vsts/vsts/customer_intelligence/v4_1/models => azure-devops/azure/devops/v4_0/operations}/__init__.py (85%) rename vsts/vsts/operations/v4_0/models/operation.py => azure-devops/azure/devops/v4_0/operations/models.py (58%) rename {vsts/vsts/operations/v4_0 => azure-devops/azure/devops/v4_0/operations}/operations_client.py (96%) create mode 100644 azure-devops/azure/devops/v4_0/policy/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/policy/models.py rename {vsts/vsts/policy/v4_0 => azure-devops/azure/devops/v4_0/policy}/policy_client.py (99%) rename {vsts/vsts/feature_availability/v4_0/models => azure-devops/azure/devops/v4_0/project_analysis}/__init__.py (76%) create mode 100644 azure-devops/azure/devops/v4_0/project_analysis/models.py rename {vsts/vsts/project_analysis/v4_0 => azure-devops/azure/devops/v4_0/project_analysis}/project_analysis_client.py (97%) rename {vsts/vsts/accounts/v4_0/models => azure-devops/azure/devops/v4_0/security}/__init__.py (68%) create mode 100644 azure-devops/azure/devops/v4_0/security/models.py rename {vsts/vsts/security/v4_0 => azure-devops/azure/devops/v4_0/security}/security_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/service_hooks/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/service_hooks/models.py rename {vsts/vsts/service_hooks/v4_0 => azure-devops/azure/devops/v4_0/service_hooks}/service_hooks_client.py (99%) rename {vsts/vsts/feature_management/v4_0/models => azure-devops/azure/devops/v4_0/task}/__init__.py (51%) create mode 100644 azure-devops/azure/devops/v4_0/task/models.py rename {vsts/vsts/task/v4_0 => azure-devops/azure/devops/v4_0/task}/task_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/task_agent/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/task_agent/models.py rename {vsts/vsts/task_agent/v4_0 => azure-devops/azure/devops/v4_0/task_agent}/task_agent_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/test/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/test/models.py rename {vsts/vsts/test/v4_0 => azure-devops/azure/devops/v4_0/test}/test_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/tfvc/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/tfvc/models.py rename {vsts/vsts/tfvc/v4_0 => azure-devops/azure/devops/v4_0/tfvc}/tfvc_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/wiki/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/wiki/models.py rename {vsts/vsts/wiki/v4_0 => azure-devops/azure/devops/v4_0/wiki}/wiki_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/work/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/work/models.py rename {vsts/vsts/work/v4_0 => azure-devops/azure/devops/v4_0/work}/work_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking/models.py rename {vsts/vsts/work_item_tracking/v4_0 => azure-devops/azure/devops/v4_0/work_item_tracking}/work_item_tracking_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py rename {vsts/vsts/work_item_tracking_process/v4_0 => azure-devops/azure/devops/v4_0/work_item_tracking_process}/work_item_tracking_process_client.py (99%) rename vsts/vsts/notification/v4_0/models/notification_event_type_category.py => azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py (50%) create mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py rename {vsts/vsts/work_item_tracking_process_definitions/v4_0 => azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions}/work_item_tracking_process_definitions_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process_template/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py rename {vsts/vsts/work_item_tracking_process_template/v4_0 => azure-devops/azure/devops/v4_0/work_item_tracking_process_template}/work_item_tracking_process_template_client.py (98%) rename {vsts/vsts/accounts => azure-devops/azure/devops/v4_1}/__init__.py (100%) create mode 100644 azure-devops/azure/devops/v4_1/accounts/__init__.py rename {vsts/vsts/accounts/v4_1 => azure-devops/azure/devops/v4_1/accounts}/accounts_client.py (97%) rename vsts/vsts/accounts/v4_1/models/account.py => azure-devops/azure/devops/v4_1/accounts/models.py (63%) create mode 100644 azure-devops/azure/devops/v4_1/build/__init__.py rename {vsts/vsts/build/v4_1 => azure-devops/azure/devops/v4_1/build}/build_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/build/models.py rename {vsts/vsts/contributions => azure-devops/azure/devops/v4_1/client_trace}/__init__.py (89%) rename {vsts/vsts/client_trace/v4_1 => azure-devops/azure/devops/v4_1/client_trace}/client_trace_client.py (89%) rename vsts/vsts/client_trace/v4_1/models/client_trace_event.py => azure-devops/azure/devops/v4_1/client_trace/models.py (93%) create mode 100644 azure-devops/azure/devops/v4_1/cloud_load_test/__init__.py rename {vsts/vsts/cloud_load_test/v4_1 => azure-devops/azure/devops/v4_1/cloud_load_test}/cloud_load_test_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/cloud_load_test/models.py create mode 100644 azure-devops/azure/devops/v4_1/contributions/__init__.py rename {vsts/vsts/contributions/v4_1 => azure-devops/azure/devops/v4_1/contributions}/contributions_client.py (98%) create mode 100644 azure-devops/azure/devops/v4_1/contributions/models.py create mode 100644 azure-devops/azure/devops/v4_1/core/__init__.py rename {vsts/vsts/core/v4_1 => azure-devops/azure/devops/v4_1/core}/core_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/core/models.py rename {vsts/vsts/build => azure-devops/azure/devops/v4_1/customer_intelligence}/__init__.py (88%) rename {vsts/vsts/customer_intelligence/v4_1 => azure-devops/azure/devops/v4_1/customer_intelligence}/customer_intelligence_client.py (89%) rename vsts/vsts/customer_intelligence/v4_1/models/customer_intelligence_event.py => azure-devops/azure/devops/v4_1/customer_intelligence/models.py (88%) create mode 100644 azure-devops/azure/devops/v4_1/dashboard/__init__.py rename {vsts/vsts/dashboard/v4_1 => azure-devops/azure/devops/v4_1/dashboard}/dashboard_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/dashboard/models.py create mode 100644 azure-devops/azure/devops/v4_1/extension_management/__init__.py rename {vsts/vsts/extension_management/v4_1 => azure-devops/azure/devops/v4_1/extension_management}/extension_management_client.py (98%) create mode 100644 azure-devops/azure/devops/v4_1/extension_management/models.py create mode 100644 azure-devops/azure/devops/v4_1/feature_availability/__init__.py rename {vsts/vsts/feature_availability/v4_1 => azure-devops/azure/devops/v4_1/feature_availability}/feature_availability_client.py (98%) rename vsts/vsts/feature_availability/v4_1/models/feature_flag.py => azure-devops/azure/devops/v4_1/feature_availability/models.py (76%) create mode 100644 azure-devops/azure/devops/v4_1/feature_management/__init__.py rename {vsts/vsts/feature_management/v4_1 => azure-devops/azure/devops/v4_1/feature_management}/feature_management_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/feature_management/models.py create mode 100644 azure-devops/azure/devops/v4_1/feed/__init__.py rename {vsts/vsts/feed/v4_1 => azure-devops/azure/devops/v4_1/feed}/feed_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/feed/models.py rename {vsts/vsts/client_trace => azure-devops/azure/devops/v4_1/feed_token}/__init__.py (97%) rename {vsts/vsts/feed_token/v4_1 => azure-devops/azure/devops/v4_1/feed_token}/feed_token_client.py (90%) create mode 100644 azure-devops/azure/devops/v4_1/file_container/__init__.py rename {vsts/vsts/file_container/v4_1 => azure-devops/azure/devops/v4_1/file_container}/file_container_client.py (98%) rename vsts/vsts/file_container/v4_0/models/file_container_item.py => azure-devops/azure/devops/v4_1/file_container/models.py (57%) create mode 100644 azure-devops/azure/devops/v4_1/gallery/__init__.py rename {vsts/vsts/gallery/v4_1 => azure-devops/azure/devops/v4_1/gallery}/gallery_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/gallery/models.py create mode 100644 azure-devops/azure/devops/v4_1/git/__init__.py rename {vsts/vsts/git/v4_1 => azure-devops/azure/devops/v4_1/git}/git_client.py (100%) rename {vsts/vsts/git/v4_1 => azure-devops/azure/devops/v4_1/git}/git_client_base.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/git/models.py create mode 100644 azure-devops/azure/devops/v4_1/graph/__init__.py rename {vsts/vsts/graph/v4_1 => azure-devops/azure/devops/v4_1/graph}/graph_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/graph/models.py create mode 100644 azure-devops/azure/devops/v4_1/identity/__init__.py rename {vsts/vsts/identity/v4_1 => azure-devops/azure/devops/v4_1/identity}/identity_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/identity/models.py create mode 100644 azure-devops/azure/devops/v4_1/licensing/__init__.py rename {vsts/vsts/licensing/v4_1 => azure-devops/azure/devops/v4_1/licensing}/licensing_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/licensing/models.py create mode 100644 azure-devops/azure/devops/v4_1/location/__init__.py rename {vsts/vsts/location/v4_1 => azure-devops/azure/devops/v4_1/location}/location_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/location/models.py create mode 100644 azure-devops/azure/devops/v4_1/maven/__init__.py rename {vsts/vsts/maven/v4_1 => azure-devops/azure/devops/v4_1/maven}/maven_client.py (97%) create mode 100644 azure-devops/azure/devops/v4_1/maven/models.py create mode 100644 azure-devops/azure/devops/v4_1/member_entitlement_management/__init__.py rename {vsts/vsts/member_entitlement_management/v4_1 => azure-devops/azure/devops/v4_1/member_entitlement_management}/member_entitlement_management_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/member_entitlement_management/models.py create mode 100644 azure-devops/azure/devops/v4_1/notification/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/notification/models.py rename {vsts/vsts/notification/v4_1 => azure-devops/azure/devops/v4_1/notification}/notification_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/npm/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/npm/models.py rename {vsts/vsts/npm/v4_1 => azure-devops/azure/devops/v4_1/npm}/npm_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/nuGet/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/nuGet/models.py rename {vsts/vsts/nuget/v4_1 => azure-devops/azure/devops/v4_1/nuGet}/nuGet_client.py (98%) create mode 100644 azure-devops/azure/devops/v4_1/operations/__init__.py rename vsts/vsts/operations/v4_1/models/operation.py => azure-devops/azure/devops/v4_1/operations/models.py (54%) rename {vsts/vsts/operations/v4_1 => azure-devops/azure/devops/v4_1/operations}/operations_client.py (92%) create mode 100644 azure-devops/azure/devops/v4_1/policy/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/policy/models.py rename {vsts/vsts/policy/v4_1 => azure-devops/azure/devops/v4_1/policy}/policy_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/profile/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/profile/models.py rename {vsts/vsts/profile/v4_1 => azure-devops/azure/devops/v4_1/profile}/profile_client.py (94%) create mode 100644 azure-devops/azure/devops/v4_1/project_analysis/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/project_analysis/models.py rename {vsts/vsts/project_analysis/v4_1 => azure-devops/azure/devops/v4_1/project_analysis}/project_analysis_client.py (98%) create mode 100644 azure-devops/azure/devops/v4_1/security/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/security/models.py rename {vsts/vsts/security/v4_1 => azure-devops/azure/devops/v4_1/security}/security_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/service_endpoint/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/service_endpoint/models.py rename {vsts/vsts/service_endpoint/v4_1 => azure-devops/azure/devops/v4_1/service_endpoint}/service_endpoint_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/service_hooks/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/service_hooks/models.py rename {vsts/vsts/service_hooks/v4_1 => azure-devops/azure/devops/v4_1/service_hooks}/service_hooks_client.py (99%) rename {vsts/vsts/cloud_load_test => azure-devops/azure/devops/v4_1/settings}/__init__.py (97%) rename {vsts/vsts/settings/v4_1 => azure-devops/azure/devops/v4_1/settings}/settings_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/symbol/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/symbol/models.py rename {vsts/vsts/symbol/v4_1 => azure-devops/azure/devops/v4_1/symbol}/symbol_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/task/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/task/models.py rename {vsts/vsts/task/v4_1 => azure-devops/azure/devops/v4_1/task}/task_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/task_agent/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/task_agent/models.py rename {vsts/vsts/task_agent/v4_1 => azure-devops/azure/devops/v4_1/task_agent}/task_agent_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/test/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/test/models.py rename {vsts/vsts/test/v4_1 => azure-devops/azure/devops/v4_1/test}/test_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/tfvc/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/tfvc/models.py rename {vsts/vsts/tfvc/v4_1 => azure-devops/azure/devops/v4_1/tfvc}/tfvc_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/wiki/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/wiki/models.py rename {vsts/vsts/wiki/v4_1 => azure-devops/azure/devops/v4_1/wiki}/wiki_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/work/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/work/models.py rename {vsts/vsts/work/v4_1 => azure-devops/azure/devops/v4_1/work}/work_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking/models.py rename {vsts/vsts/work_item_tracking/v4_1 => azure-devops/azure/devops/v4_1/work_item_tracking}/work_item_tracking_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py rename {vsts/vsts/work_item_tracking_process/v4_1 => azure-devops/azure/devops/v4_1/work_item_tracking_process}/work_item_tracking_process_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py rename {vsts/vsts/work_item_tracking_process_definitions/v4_1 => azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions}/work_item_tracking_process_definitions_client.py (99%) create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process_template/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py rename {vsts/vsts/work_item_tracking_process_template/v4_1 => azure-devops/azure/devops/v4_1/work_item_tracking_process_template}/work_item_tracking_process_template_client.py (98%) rename {vsts/vsts => azure-devops/azure/devops}/version.py (94%) rename {vsts => azure-devops}/setup.py (90%) delete mode 100644 vsts/vsts/accounts/v4_0/models/account_create_info_internal.py delete mode 100644 vsts/vsts/accounts/v4_0/models/account_preferences_internal.py delete mode 100644 vsts/vsts/accounts/v4_1/models/account_create_info_internal.py delete mode 100644 vsts/vsts/accounts/v4_1/models/account_preferences_internal.py delete mode 100644 vsts/vsts/build/v4_0/__init__.py delete mode 100644 vsts/vsts/build/v4_0/models/__init__.py delete mode 100644 vsts/vsts/build/v4_0/models/agent_pool_queue.py delete mode 100644 vsts/vsts/build/v4_0/models/artifact_resource.py delete mode 100644 vsts/vsts/build/v4_0/models/build.py delete mode 100644 vsts/vsts/build/v4_0/models/build_artifact.py delete mode 100644 vsts/vsts/build/v4_0/models/build_badge.py delete mode 100644 vsts/vsts/build/v4_0/models/build_controller.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition3_2.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition_revision.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition_step.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition_template.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition_template3_2.py delete mode 100644 vsts/vsts/build/v4_0/models/build_definition_variable.py delete mode 100644 vsts/vsts/build/v4_0/models/build_log.py delete mode 100644 vsts/vsts/build/v4_0/models/build_log_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/build_metric.py delete mode 100644 vsts/vsts/build/v4_0/models/build_option.py delete mode 100644 vsts/vsts/build/v4_0/models/build_option_definition.py delete mode 100644 vsts/vsts/build/v4_0/models/build_option_definition_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/build_option_group_definition.py delete mode 100644 vsts/vsts/build/v4_0/models/build_option_input_definition.py delete mode 100644 vsts/vsts/build/v4_0/models/build_report_metadata.py delete mode 100644 vsts/vsts/build/v4_0/models/build_repository.py delete mode 100644 vsts/vsts/build/v4_0/models/build_request_validation_result.py delete mode 100644 vsts/vsts/build/v4_0/models/build_resource_usage.py delete mode 100644 vsts/vsts/build/v4_0/models/build_settings.py delete mode 100644 vsts/vsts/build/v4_0/models/change.py delete mode 100644 vsts/vsts/build/v4_0/models/data_source_binding_base.py delete mode 100644 vsts/vsts/build/v4_0/models/definition_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/deployment.py delete mode 100644 vsts/vsts/build/v4_0/models/folder.py delete mode 100644 vsts/vsts/build/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/build/v4_0/models/issue.py delete mode 100644 vsts/vsts/build/v4_0/models/json_patch_operation.py delete mode 100644 vsts/vsts/build/v4_0/models/process_parameters.py delete mode 100644 vsts/vsts/build/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/build/v4_0/models/resource_ref.py delete mode 100644 vsts/vsts/build/v4_0/models/retention_policy.py delete mode 100644 vsts/vsts/build/v4_0/models/task_agent_pool_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/task_definition_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/task_input_definition_base.py delete mode 100644 vsts/vsts/build/v4_0/models/task_input_validation.py delete mode 100644 vsts/vsts/build/v4_0/models/task_orchestration_plan_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/task_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/task_source_definition_base.py delete mode 100644 vsts/vsts/build/v4_0/models/team_project_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/timeline.py delete mode 100644 vsts/vsts/build/v4_0/models/timeline_record.py delete mode 100644 vsts/vsts/build/v4_0/models/timeline_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/variable_group.py delete mode 100644 vsts/vsts/build/v4_0/models/variable_group_reference.py delete mode 100644 vsts/vsts/build/v4_0/models/web_api_connected_service_ref.py delete mode 100644 vsts/vsts/build/v4_0/models/xaml_build_controller_reference.py delete mode 100644 vsts/vsts/build/v4_1/__init__.py delete mode 100644 vsts/vsts/build/v4_1/models/__init__.py delete mode 100644 vsts/vsts/build/v4_1/models/agent_pool_queue.py delete mode 100644 vsts/vsts/build/v4_1/models/aggregated_results_analysis.py delete mode 100644 vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py delete mode 100644 vsts/vsts/build/v4_1/models/aggregated_results_difference.py delete mode 100644 vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py delete mode 100644 vsts/vsts/build/v4_1/models/artifact_resource.py delete mode 100644 vsts/vsts/build/v4_1/models/associated_work_item.py delete mode 100644 vsts/vsts/build/v4_1/models/attachment.py delete mode 100644 vsts/vsts/build/v4_1/models/authorization_header.py delete mode 100644 vsts/vsts/build/v4_1/models/build.py delete mode 100644 vsts/vsts/build/v4_1/models/build_artifact.py delete mode 100644 vsts/vsts/build/v4_1/models/build_badge.py delete mode 100644 vsts/vsts/build/v4_1/models/build_controller.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition3_2.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_counter.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_reference3_2.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_revision.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_step.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_template.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_template3_2.py delete mode 100644 vsts/vsts/build/v4_1/models/build_definition_variable.py delete mode 100644 vsts/vsts/build/v4_1/models/build_log.py delete mode 100644 vsts/vsts/build/v4_1/models/build_log_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/build_metric.py delete mode 100644 vsts/vsts/build/v4_1/models/build_option.py delete mode 100644 vsts/vsts/build/v4_1/models/build_option_definition.py delete mode 100644 vsts/vsts/build/v4_1/models/build_option_definition_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/build_option_group_definition.py delete mode 100644 vsts/vsts/build/v4_1/models/build_option_input_definition.py delete mode 100644 vsts/vsts/build/v4_1/models/build_report_metadata.py delete mode 100644 vsts/vsts/build/v4_1/models/build_repository.py delete mode 100644 vsts/vsts/build/v4_1/models/build_request_validation_result.py delete mode 100644 vsts/vsts/build/v4_1/models/build_resource_usage.py delete mode 100644 vsts/vsts/build/v4_1/models/build_settings.py delete mode 100644 vsts/vsts/build/v4_1/models/change.py delete mode 100644 vsts/vsts/build/v4_1/models/data_source_binding_base.py delete mode 100644 vsts/vsts/build/v4_1/models/definition_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/deployment.py delete mode 100644 vsts/vsts/build/v4_1/models/folder.py delete mode 100644 vsts/vsts/build/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/build/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/build/v4_1/models/issue.py delete mode 100644 vsts/vsts/build/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/build/v4_1/models/process_parameters.py delete mode 100644 vsts/vsts/build/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/build/v4_1/models/release_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/repository_webhook.py delete mode 100644 vsts/vsts/build/v4_1/models/resource_ref.py delete mode 100644 vsts/vsts/build/v4_1/models/retention_policy.py delete mode 100644 vsts/vsts/build/v4_1/models/source_provider_attributes.py delete mode 100644 vsts/vsts/build/v4_1/models/source_repositories.py delete mode 100644 vsts/vsts/build/v4_1/models/source_repository.py delete mode 100644 vsts/vsts/build/v4_1/models/source_repository_item.py delete mode 100644 vsts/vsts/build/v4_1/models/supported_trigger.py delete mode 100644 vsts/vsts/build/v4_1/models/task_agent_pool_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/task_definition_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/task_input_definition_base.py delete mode 100644 vsts/vsts/build/v4_1/models/task_input_validation.py delete mode 100644 vsts/vsts/build/v4_1/models/task_orchestration_plan_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/task_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/task_source_definition_base.py delete mode 100644 vsts/vsts/build/v4_1/models/team_project_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/test_results_context.py delete mode 100644 vsts/vsts/build/v4_1/models/timeline.py delete mode 100644 vsts/vsts/build/v4_1/models/timeline_record.py delete mode 100644 vsts/vsts/build/v4_1/models/timeline_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/variable_group.py delete mode 100644 vsts/vsts/build/v4_1/models/variable_group_reference.py delete mode 100644 vsts/vsts/build/v4_1/models/web_api_connected_service_ref.py delete mode 100644 vsts/vsts/build/v4_1/models/xaml_build_controller_reference.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/__init__.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/__init__.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/agent_group.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/application.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/application_counters.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/application_type.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_group.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/error_details.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/page_summary.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/request_summary.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/sub_type.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_definition.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_drop.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_results.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_settings.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/test_summary.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py delete mode 100644 vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py delete mode 100644 vsts/vsts/contributions/v4_0/__init__.py delete mode 100644 vsts/vsts/contributions/v4_0/models/__init__.py delete mode 100644 vsts/vsts/contributions/v4_0/models/client_data_provider_query.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution_base.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution_constraint.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution_node_query.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution_property_description.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution_provider_details.py delete mode 100644 vsts/vsts/contributions/v4_0/models/contribution_type.py delete mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_context.py delete mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py delete mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_query.py delete mode 100644 vsts/vsts/contributions/v4_0/models/data_provider_result.py delete mode 100644 vsts/vsts/contributions/v4_0/models/extension_event_callback.py delete mode 100644 vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py delete mode 100644 vsts/vsts/contributions/v4_0/models/extension_file.py delete mode 100644 vsts/vsts/contributions/v4_0/models/extension_licensing.py delete mode 100644 vsts/vsts/contributions/v4_0/models/extension_manifest.py delete mode 100644 vsts/vsts/contributions/v4_0/models/installed_extension.py delete mode 100644 vsts/vsts/contributions/v4_0/models/installed_extension_state.py delete mode 100644 vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py delete mode 100644 vsts/vsts/contributions/v4_0/models/licensing_override.py delete mode 100644 vsts/vsts/contributions/v4_0/models/resolved_data_provider.py delete mode 100644 vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py delete mode 100644 vsts/vsts/contributions/v4_1/__init__.py delete mode 100644 vsts/vsts/contributions/v4_1/models/__init__.py delete mode 100644 vsts/vsts/contributions/v4_1/models/client_contribution.py delete mode 100644 vsts/vsts/contributions/v4_1/models/client_contribution_node.py delete mode 100644 vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py delete mode 100644 vsts/vsts/contributions/v4_1/models/client_data_provider_query.py delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution.py delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution_base.py delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution_constraint.py delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution_node_query.py delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution_property_description.py delete mode 100644 vsts/vsts/contributions/v4_1/models/contribution_type.py delete mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_context.py delete mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py delete mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_query.py delete mode 100644 vsts/vsts/contributions/v4_1/models/data_provider_result.py delete mode 100644 vsts/vsts/contributions/v4_1/models/extension_event_callback.py delete mode 100644 vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py delete mode 100644 vsts/vsts/contributions/v4_1/models/extension_file.py delete mode 100644 vsts/vsts/contributions/v4_1/models/extension_licensing.py delete mode 100644 vsts/vsts/contributions/v4_1/models/extension_manifest.py delete mode 100644 vsts/vsts/contributions/v4_1/models/installed_extension.py delete mode 100644 vsts/vsts/contributions/v4_1/models/installed_extension_state.py delete mode 100644 vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py delete mode 100644 vsts/vsts/contributions/v4_1/models/licensing_override.py delete mode 100644 vsts/vsts/contributions/v4_1/models/resolved_data_provider.py delete mode 100644 vsts/vsts/core/__init__.py delete mode 100644 vsts/vsts/core/v4_0/__init__.py delete mode 100644 vsts/vsts/core/v4_0/models/__init__.py delete mode 100644 vsts/vsts/core/v4_0/models/identity_data.py delete mode 100644 vsts/vsts/core/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/core/v4_0/models/json_patch_operation.py delete mode 100644 vsts/vsts/core/v4_0/models/operation_reference.py delete mode 100644 vsts/vsts/core/v4_0/models/process.py delete mode 100644 vsts/vsts/core/v4_0/models/process_reference.py delete mode 100644 vsts/vsts/core/v4_0/models/project_info.py delete mode 100644 vsts/vsts/core/v4_0/models/project_property.py delete mode 100644 vsts/vsts/core/v4_0/models/proxy.py delete mode 100644 vsts/vsts/core/v4_0/models/proxy_authorization.py delete mode 100644 vsts/vsts/core/v4_0/models/public_key.py delete mode 100644 vsts/vsts/core/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/core/v4_0/models/team_project.py delete mode 100644 vsts/vsts/core/v4_0/models/team_project_collection.py delete mode 100644 vsts/vsts/core/v4_0/models/team_project_collection_reference.py delete mode 100644 vsts/vsts/core/v4_0/models/team_project_reference.py delete mode 100644 vsts/vsts/core/v4_0/models/web_api_connected_service.py delete mode 100644 vsts/vsts/core/v4_0/models/web_api_connected_service_details.py delete mode 100644 vsts/vsts/core/v4_0/models/web_api_connected_service_ref.py delete mode 100644 vsts/vsts/core/v4_0/models/web_api_team.py delete mode 100644 vsts/vsts/core/v4_0/models/web_api_team_ref.py delete mode 100644 vsts/vsts/core/v4_1/__init__.py delete mode 100644 vsts/vsts/core/v4_1/models/__init__.py delete mode 100644 vsts/vsts/core/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/core/v4_1/models/identity_data.py delete mode 100644 vsts/vsts/core/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/core/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/core/v4_1/models/operation_reference.py delete mode 100644 vsts/vsts/core/v4_1/models/process.py delete mode 100644 vsts/vsts/core/v4_1/models/process_reference.py delete mode 100644 vsts/vsts/core/v4_1/models/project_info.py delete mode 100644 vsts/vsts/core/v4_1/models/project_property.py delete mode 100644 vsts/vsts/core/v4_1/models/proxy.py delete mode 100644 vsts/vsts/core/v4_1/models/proxy_authorization.py delete mode 100644 vsts/vsts/core/v4_1/models/public_key.py delete mode 100644 vsts/vsts/core/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/core/v4_1/models/team_member.py delete mode 100644 vsts/vsts/core/v4_1/models/team_project.py delete mode 100644 vsts/vsts/core/v4_1/models/team_project_collection.py delete mode 100644 vsts/vsts/core/v4_1/models/team_project_collection_reference.py delete mode 100644 vsts/vsts/core/v4_1/models/team_project_reference.py delete mode 100644 vsts/vsts/core/v4_1/models/web_api_connected_service.py delete mode 100644 vsts/vsts/core/v4_1/models/web_api_connected_service_details.py delete mode 100644 vsts/vsts/core/v4_1/models/web_api_connected_service_ref.py delete mode 100644 vsts/vsts/core/v4_1/models/web_api_team.py delete mode 100644 vsts/vsts/core/v4_1/models/web_api_team_ref.py delete mode 100644 vsts/vsts/customer_intelligence/__init__.py delete mode 100644 vsts/vsts/customer_intelligence/customer_intelligence_client.py delete mode 100644 vsts/vsts/customer_intelligence/v4_0/__init__.py delete mode 100644 vsts/vsts/customer_intelligence/v4_1/__init__.py delete mode 100644 vsts/vsts/dashboard/__init__.py delete mode 100644 vsts/vsts/dashboard/v4_0/__init__.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/__init__.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_group.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/dashboard_response.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/lightbox_options.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/semantic_version.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/team_context.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widget.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widget_metadata.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widget_position.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widget_response.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widget_size.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widget_types_response.py delete mode 100644 vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py delete mode 100644 vsts/vsts/dashboard/v4_1/__init__.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/__init__.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_group.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/dashboard_response.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/lightbox_options.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/semantic_version.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/team_context.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widget.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widget_metadata.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widget_position.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widget_response.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widget_size.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widget_types_response.py delete mode 100644 vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py delete mode 100644 vsts/vsts/extension_management/__init__.py delete mode 100644 vsts/vsts/extension_management/v4_0/__init__.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/__init__.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/acquisition_operation.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/acquisition_options.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/contribution.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_base.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_constraint.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_property_description.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/contribution_type.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_authorization.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_badge.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_data_collection.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_event_callback.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_file.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_identifier.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_licensing.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_manifest.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_policy.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_request.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_share.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_state.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_statistic.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/extension_version.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/installation_target.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension_query.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension_state.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/licensing_override.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/published_extension.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/publisher_facts.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/requested_extension.py delete mode 100644 vsts/vsts/extension_management/v4_0/models/user_extension_policy.py delete mode 100644 vsts/vsts/extension_management/v4_1/__init__.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/__init__.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/acquisition_operation.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/acquisition_options.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/contribution.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_base.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_constraint.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_property_description.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/contribution_type.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_authorization.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_badge.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_data_collection.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_event_callback.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_file.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_identifier.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_licensing.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_manifest.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_policy.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_request.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_share.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_state.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_statistic.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/extension_version.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/installation_target.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension_query.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension_state.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/licensing_override.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/published_extension.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/publisher_facts.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/requested_extension.py delete mode 100644 vsts/vsts/extension_management/v4_1/models/user_extension_policy.py delete mode 100644 vsts/vsts/feature_availability/__init__.py delete mode 100644 vsts/vsts/feature_availability/v4_0/__init__.py delete mode 100644 vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py delete mode 100644 vsts/vsts/feature_availability/v4_1/__init__.py delete mode 100644 vsts/vsts/feature_availability/v4_1/models/__init__.py delete mode 100644 vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py delete mode 100644 vsts/vsts/feature_management/__init__.py delete mode 100644 vsts/vsts/feature_management/v4_0/__init__.py delete mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature.py delete mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py delete mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py delete mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py delete mode 100644 vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py delete mode 100644 vsts/vsts/feature_management/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/feature_management/v4_1/__init__.py delete mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature.py delete mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py delete mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py delete mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py delete mode 100644 vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py delete mode 100644 vsts/vsts/feature_management/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/feed/__init__.py delete mode 100644 vsts/vsts/feed/v4_1/__init__.py delete mode 100644 vsts/vsts/feed/v4_1/models/__init__.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed_change.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed_changes_response.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed_core.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed_permission.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed_retention_policy.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed_update.py delete mode 100644 vsts/vsts/feed/v4_1/models/feed_view.py delete mode 100644 vsts/vsts/feed/v4_1/models/global_permission.py delete mode 100644 vsts/vsts/feed/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/feed/v4_1/models/minimal_package_version.py delete mode 100644 vsts/vsts/feed/v4_1/models/package.py delete mode 100644 vsts/vsts/feed/v4_1/models/package_change.py delete mode 100644 vsts/vsts/feed/v4_1/models/package_changes_response.py delete mode 100644 vsts/vsts/feed/v4_1/models/package_dependency.py delete mode 100644 vsts/vsts/feed/v4_1/models/package_file.py delete mode 100644 vsts/vsts/feed/v4_1/models/package_version.py delete mode 100644 vsts/vsts/feed/v4_1/models/package_version_change.py delete mode 100644 vsts/vsts/feed/v4_1/models/protocol_metadata.py delete mode 100644 vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py delete mode 100644 vsts/vsts/feed/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/feed/v4_1/models/upstream_source.py delete mode 100644 vsts/vsts/feed_token/__init__.py delete mode 100644 vsts/vsts/feed_token/v4_1/__init__.py delete mode 100644 vsts/vsts/file_container/__init__.py delete mode 100644 vsts/vsts/file_container/v4_0/__init__.py delete mode 100644 vsts/vsts/file_container/v4_0/models/file_container.py delete mode 100644 vsts/vsts/file_container/v4_1/__init__.py delete mode 100644 vsts/vsts/file_container/v4_1/models/__init__.py delete mode 100644 vsts/vsts/file_container/v4_1/models/file_container.py delete mode 100644 vsts/vsts/gallery/__init__.py delete mode 100644 vsts/vsts/gallery/v4_0/__init__.py delete mode 100644 vsts/vsts/gallery/v4_0/models/__init__.py delete mode 100644 vsts/vsts/gallery/v4_0/models/acquisition_operation.py delete mode 100644 vsts/vsts/gallery/v4_0/models/acquisition_options.py delete mode 100644 vsts/vsts/gallery/v4_0/models/answers.py delete mode 100644 vsts/vsts/gallery/v4_0/models/asset_details.py delete mode 100644 vsts/vsts/gallery/v4_0/models/azure_publisher.py delete mode 100644 vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py delete mode 100644 vsts/vsts/gallery/v4_0/models/categories_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/category_language_title.py delete mode 100644 vsts/vsts/gallery/v4_0/models/concern.py delete mode 100644 vsts/vsts/gallery/v4_0/models/event_counts.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_badge.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_category.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_daily_stat.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_daily_stats.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_event.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_events.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_file.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_filter_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_package.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_query.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_query_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_share.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_statistic.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_statistic_update.py delete mode 100644 vsts/vsts/gallery/v4_0/models/extension_version.py delete mode 100644 vsts/vsts/gallery/v4_0/models/filter_criteria.py delete mode 100644 vsts/vsts/gallery/v4_0/models/installation_target.py delete mode 100644 vsts/vsts/gallery/v4_0/models/metadata_item.py delete mode 100644 vsts/vsts/gallery/v4_0/models/notifications_data.py delete mode 100644 vsts/vsts/gallery/v4_0/models/product_categories_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/product_category.py delete mode 100644 vsts/vsts/gallery/v4_0/models/published_extension.py delete mode 100644 vsts/vsts/gallery/v4_0/models/publisher.py delete mode 100644 vsts/vsts/gallery/v4_0/models/publisher_facts.py delete mode 100644 vsts/vsts/gallery/v4_0/models/publisher_filter_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/publisher_query.py delete mode 100644 vsts/vsts/gallery/v4_0/models/publisher_query_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/qn_aItem.py delete mode 100644 vsts/vsts/gallery/v4_0/models/query_filter.py delete mode 100644 vsts/vsts/gallery/v4_0/models/question.py delete mode 100644 vsts/vsts/gallery/v4_0/models/questions_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py delete mode 100644 vsts/vsts/gallery/v4_0/models/response.py delete mode 100644 vsts/vsts/gallery/v4_0/models/review.py delete mode 100644 vsts/vsts/gallery/v4_0/models/review_patch.py delete mode 100644 vsts/vsts/gallery/v4_0/models/review_reply.py delete mode 100644 vsts/vsts/gallery/v4_0/models/review_summary.py delete mode 100644 vsts/vsts/gallery/v4_0/models/reviews_result.py delete mode 100644 vsts/vsts/gallery/v4_0/models/user_identity_ref.py delete mode 100644 vsts/vsts/gallery/v4_0/models/user_reported_concern.py delete mode 100644 vsts/vsts/gallery/v4_1/__init__.py delete mode 100644 vsts/vsts/gallery/v4_1/models/__init__.py delete mode 100644 vsts/vsts/gallery/v4_1/models/acquisition_operation.py delete mode 100644 vsts/vsts/gallery/v4_1/models/acquisition_options.py delete mode 100644 vsts/vsts/gallery/v4_1/models/answers.py delete mode 100644 vsts/vsts/gallery/v4_1/models/asset_details.py delete mode 100644 vsts/vsts/gallery/v4_1/models/azure_publisher.py delete mode 100644 vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py delete mode 100644 vsts/vsts/gallery/v4_1/models/categories_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/category_language_title.py delete mode 100644 vsts/vsts/gallery/v4_1/models/concern.py delete mode 100644 vsts/vsts/gallery/v4_1/models/event_counts.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_badge.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_category.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_daily_stat.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_daily_stats.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_draft.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_draft_asset.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_draft_patch.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_event.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_events.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_file.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_filter_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_package.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_payload.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_query.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_query_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_share.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_statistic.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_statistic_update.py delete mode 100644 vsts/vsts/gallery/v4_1/models/extension_version.py delete mode 100644 vsts/vsts/gallery/v4_1/models/filter_criteria.py delete mode 100644 vsts/vsts/gallery/v4_1/models/installation_target.py delete mode 100644 vsts/vsts/gallery/v4_1/models/metadata_item.py delete mode 100644 vsts/vsts/gallery/v4_1/models/notifications_data.py delete mode 100644 vsts/vsts/gallery/v4_1/models/product_categories_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/product_category.py delete mode 100644 vsts/vsts/gallery/v4_1/models/published_extension.py delete mode 100644 vsts/vsts/gallery/v4_1/models/publisher.py delete mode 100644 vsts/vsts/gallery/v4_1/models/publisher_base.py delete mode 100644 vsts/vsts/gallery/v4_1/models/publisher_facts.py delete mode 100644 vsts/vsts/gallery/v4_1/models/publisher_filter_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/publisher_query.py delete mode 100644 vsts/vsts/gallery/v4_1/models/publisher_query_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/qn_aItem.py delete mode 100644 vsts/vsts/gallery/v4_1/models/query_filter.py delete mode 100644 vsts/vsts/gallery/v4_1/models/question.py delete mode 100644 vsts/vsts/gallery/v4_1/models/questions_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py delete mode 100644 vsts/vsts/gallery/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/gallery/v4_1/models/response.py delete mode 100644 vsts/vsts/gallery/v4_1/models/review.py delete mode 100644 vsts/vsts/gallery/v4_1/models/review_patch.py delete mode 100644 vsts/vsts/gallery/v4_1/models/review_reply.py delete mode 100644 vsts/vsts/gallery/v4_1/models/review_summary.py delete mode 100644 vsts/vsts/gallery/v4_1/models/reviews_result.py delete mode 100644 vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py delete mode 100644 vsts/vsts/gallery/v4_1/models/user_identity_ref.py delete mode 100644 vsts/vsts/gallery/v4_1/models/user_reported_concern.py delete mode 100644 vsts/vsts/git/__init__.py delete mode 100644 vsts/vsts/git/v4_0/__init__.py delete mode 100644 vsts/vsts/git/v4_0/models/__init__.py delete mode 100644 vsts/vsts/git/v4_0/models/associated_work_item.py delete mode 100644 vsts/vsts/git/v4_0/models/attachment.py delete mode 100644 vsts/vsts/git/v4_0/models/change.py delete mode 100644 vsts/vsts/git/v4_0/models/comment.py delete mode 100644 vsts/vsts/git/v4_0/models/comment_iteration_context.py delete mode 100644 vsts/vsts/git/v4_0/models/comment_position.py delete mode 100644 vsts/vsts/git/v4_0/models/comment_thread.py delete mode 100644 vsts/vsts/git/v4_0/models/comment_thread_context.py delete mode 100644 vsts/vsts/git/v4_0/models/comment_tracking_criteria.py delete mode 100644 vsts/vsts/git/v4_0/models/file_content_metadata.py delete mode 100644 vsts/vsts/git/v4_0/models/git_annotated_tag.py delete mode 100644 vsts/vsts/git/v4_0/models/git_async_ref_operation.py delete mode 100644 vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py delete mode 100644 vsts/vsts/git/v4_0/models/git_async_ref_operation_parameters.py delete mode 100644 vsts/vsts/git/v4_0/models/git_async_ref_operation_source.py delete mode 100644 vsts/vsts/git/v4_0/models/git_base_version_descriptor.py delete mode 100644 vsts/vsts/git/v4_0/models/git_blob_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_branch_stats.py delete mode 100644 vsts/vsts/git/v4_0/models/git_cherry_pick.py delete mode 100644 vsts/vsts/git/v4_0/models/git_commit.py delete mode 100644 vsts/vsts/git/v4_0/models/git_commit_changes.py delete mode 100644 vsts/vsts/git/v4_0/models/git_commit_diffs.py delete mode 100644 vsts/vsts/git/v4_0/models/git_commit_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_conflict.py delete mode 100644 vsts/vsts/git/v4_0/models/git_deleted_repository.py delete mode 100644 vsts/vsts/git/v4_0/models/git_file_paths_collection.py delete mode 100644 vsts/vsts/git/v4_0/models/git_fork_operation_status_detail.py delete mode 100644 vsts/vsts/git/v4_0/models/git_fork_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_fork_sync_request.py delete mode 100644 vsts/vsts/git/v4_0/models/git_fork_sync_request_parameters.py delete mode 100644 vsts/vsts/git/v4_0/models/git_import_git_source.py delete mode 100644 vsts/vsts/git/v4_0/models/git_import_request.py delete mode 100644 vsts/vsts/git/v4_0/models/git_import_request_parameters.py delete mode 100644 vsts/vsts/git/v4_0/models/git_import_status_detail.py delete mode 100644 vsts/vsts/git/v4_0/models/git_import_tfvc_source.py delete mode 100644 vsts/vsts/git/v4_0/models/git_item.py delete mode 100644 vsts/vsts/git/v4_0/models/git_item_descriptor.py delete mode 100644 vsts/vsts/git/v4_0/models/git_item_request_data.py delete mode 100644 vsts/vsts/git/v4_0/models/git_merge_origin_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_object.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_change.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_comment_thread.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_comment_thread_context.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_completion_options.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_iteration.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_iteration_changes.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_merge_options.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_query.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_query_input.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_search_criteria.py delete mode 100644 vsts/vsts/git/v4_0/models/git_pull_request_status.py delete mode 100644 vsts/vsts/git/v4_0/models/git_push.py delete mode 100644 vsts/vsts/git/v4_0/models/git_push_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_push_search_criteria.py delete mode 100644 vsts/vsts/git/v4_0/models/git_query_branch_stats_criteria.py delete mode 100644 vsts/vsts/git/v4_0/models/git_query_commits_criteria.py delete mode 100644 vsts/vsts/git/v4_0/models/git_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_ref_favorite.py delete mode 100644 vsts/vsts/git/v4_0/models/git_ref_update.py delete mode 100644 vsts/vsts/git/v4_0/models/git_ref_update_result.py delete mode 100644 vsts/vsts/git/v4_0/models/git_repository.py delete mode 100644 vsts/vsts/git/v4_0/models/git_repository_create_options.py delete mode 100644 vsts/vsts/git/v4_0/models/git_repository_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_repository_stats.py delete mode 100644 vsts/vsts/git/v4_0/models/git_revert.py delete mode 100644 vsts/vsts/git/v4_0/models/git_status.py delete mode 100644 vsts/vsts/git/v4_0/models/git_status_context.py delete mode 100644 vsts/vsts/git/v4_0/models/git_suggestion.py delete mode 100644 vsts/vsts/git/v4_0/models/git_target_version_descriptor.py delete mode 100644 vsts/vsts/git/v4_0/models/git_template.py delete mode 100644 vsts/vsts/git/v4_0/models/git_tree_diff.py delete mode 100644 vsts/vsts/git/v4_0/models/git_tree_diff_entry.py delete mode 100644 vsts/vsts/git/v4_0/models/git_tree_diff_response.py delete mode 100644 vsts/vsts/git/v4_0/models/git_tree_entry_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_tree_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/git_user_date.py delete mode 100644 vsts/vsts/git/v4_0/models/git_version_descriptor.py delete mode 100644 vsts/vsts/git/v4_0/models/global_git_repository_key.py delete mode 100644 vsts/vsts/git/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/identity_ref_with_vote.py delete mode 100644 vsts/vsts/git/v4_0/models/import_repository_validation.py delete mode 100644 vsts/vsts/git/v4_0/models/item_content.py delete mode 100644 vsts/vsts/git/v4_0/models/item_model.py delete mode 100644 vsts/vsts/git/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/git/v4_0/models/resource_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/share_notification_context.py delete mode 100644 vsts/vsts/git/v4_0/models/source_to_target_ref.py delete mode 100644 vsts/vsts/git/v4_0/models/team_project_collection_reference.py delete mode 100644 vsts/vsts/git/v4_0/models/team_project_reference.py delete mode 100644 vsts/vsts/git/v4_0/models/vsts_info.py delete mode 100644 vsts/vsts/git/v4_0/models/web_api_create_tag_request_data.py delete mode 100644 vsts/vsts/git/v4_0/models/web_api_tag_definition.py delete mode 100644 vsts/vsts/git/v4_1/__init__.py delete mode 100644 vsts/vsts/git/v4_1/models/__init__.py delete mode 100644 vsts/vsts/git/v4_1/models/attachment.py delete mode 100644 vsts/vsts/git/v4_1/models/change.py delete mode 100644 vsts/vsts/git/v4_1/models/comment.py delete mode 100644 vsts/vsts/git/v4_1/models/comment_iteration_context.py delete mode 100644 vsts/vsts/git/v4_1/models/comment_position.py delete mode 100644 vsts/vsts/git/v4_1/models/comment_thread.py delete mode 100644 vsts/vsts/git/v4_1/models/comment_thread_context.py delete mode 100644 vsts/vsts/git/v4_1/models/comment_tracking_criteria.py delete mode 100644 vsts/vsts/git/v4_1/models/file_content_metadata.py delete mode 100644 vsts/vsts/git/v4_1/models/git_annotated_tag.py delete mode 100644 vsts/vsts/git/v4_1/models/git_async_ref_operation.py delete mode 100644 vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py delete mode 100644 vsts/vsts/git/v4_1/models/git_async_ref_operation_parameters.py delete mode 100644 vsts/vsts/git/v4_1/models/git_async_ref_operation_source.py delete mode 100644 vsts/vsts/git/v4_1/models/git_base_version_descriptor.py delete mode 100644 vsts/vsts/git/v4_1/models/git_blob_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_branch_stats.py delete mode 100644 vsts/vsts/git/v4_1/models/git_cherry_pick.py delete mode 100644 vsts/vsts/git/v4_1/models/git_commit.py delete mode 100644 vsts/vsts/git/v4_1/models/git_commit_changes.py delete mode 100644 vsts/vsts/git/v4_1/models/git_commit_diffs.py delete mode 100644 vsts/vsts/git/v4_1/models/git_commit_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_conflict.py delete mode 100644 vsts/vsts/git/v4_1/models/git_conflict_update_result.py delete mode 100644 vsts/vsts/git/v4_1/models/git_deleted_repository.py delete mode 100644 vsts/vsts/git/v4_1/models/git_file_paths_collection.py delete mode 100644 vsts/vsts/git/v4_1/models/git_fork_operation_status_detail.py delete mode 100644 vsts/vsts/git/v4_1/models/git_fork_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_fork_sync_request.py delete mode 100644 vsts/vsts/git/v4_1/models/git_fork_sync_request_parameters.py delete mode 100644 vsts/vsts/git/v4_1/models/git_import_git_source.py delete mode 100644 vsts/vsts/git/v4_1/models/git_import_request.py delete mode 100644 vsts/vsts/git/v4_1/models/git_import_request_parameters.py delete mode 100644 vsts/vsts/git/v4_1/models/git_import_status_detail.py delete mode 100644 vsts/vsts/git/v4_1/models/git_import_tfvc_source.py delete mode 100644 vsts/vsts/git/v4_1/models/git_item.py delete mode 100644 vsts/vsts/git/v4_1/models/git_item_descriptor.py delete mode 100644 vsts/vsts/git/v4_1/models/git_item_request_data.py delete mode 100644 vsts/vsts/git/v4_1/models/git_merge_origin_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_object.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_change.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_comment_thread.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_comment_thread_context.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_iteration.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_iteration_changes.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_query.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_query_input.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_search_criteria.py delete mode 100644 vsts/vsts/git/v4_1/models/git_pull_request_status.py delete mode 100644 vsts/vsts/git/v4_1/models/git_push.py delete mode 100644 vsts/vsts/git/v4_1/models/git_push_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_push_search_criteria.py delete mode 100644 vsts/vsts/git/v4_1/models/git_query_branch_stats_criteria.py delete mode 100644 vsts/vsts/git/v4_1/models/git_query_commits_criteria.py delete mode 100644 vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py delete mode 100644 vsts/vsts/git/v4_1/models/git_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_ref_favorite.py delete mode 100644 vsts/vsts/git/v4_1/models/git_ref_update.py delete mode 100644 vsts/vsts/git/v4_1/models/git_ref_update_result.py delete mode 100644 vsts/vsts/git/v4_1/models/git_repository.py delete mode 100644 vsts/vsts/git/v4_1/models/git_repository_create_options.py delete mode 100644 vsts/vsts/git/v4_1/models/git_repository_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_repository_stats.py delete mode 100644 vsts/vsts/git/v4_1/models/git_revert.py delete mode 100644 vsts/vsts/git/v4_1/models/git_status.py delete mode 100644 vsts/vsts/git/v4_1/models/git_status_context.py delete mode 100644 vsts/vsts/git/v4_1/models/git_suggestion.py delete mode 100644 vsts/vsts/git/v4_1/models/git_target_version_descriptor.py delete mode 100644 vsts/vsts/git/v4_1/models/git_template.py delete mode 100644 vsts/vsts/git/v4_1/models/git_tree_diff.py delete mode 100644 vsts/vsts/git/v4_1/models/git_tree_diff_entry.py delete mode 100644 vsts/vsts/git/v4_1/models/git_tree_diff_response.py delete mode 100644 vsts/vsts/git/v4_1/models/git_tree_entry_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_tree_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/git_user_date.py delete mode 100644 vsts/vsts/git/v4_1/models/git_version_descriptor.py delete mode 100644 vsts/vsts/git/v4_1/models/global_git_repository_key.py delete mode 100644 vsts/vsts/git/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/git/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/identity_ref_with_vote.py delete mode 100644 vsts/vsts/git/v4_1/models/import_repository_validation.py delete mode 100644 vsts/vsts/git/v4_1/models/item_content.py delete mode 100644 vsts/vsts/git/v4_1/models/item_model.py delete mode 100644 vsts/vsts/git/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/git/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/git/v4_1/models/resource_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/share_notification_context.py delete mode 100644 vsts/vsts/git/v4_1/models/source_to_target_ref.py delete mode 100644 vsts/vsts/git/v4_1/models/team_project_collection_reference.py delete mode 100644 vsts/vsts/git/v4_1/models/team_project_reference.py delete mode 100644 vsts/vsts/git/v4_1/models/vsts_info.py delete mode 100644 vsts/vsts/git/v4_1/models/web_api_create_tag_request_data.py delete mode 100644 vsts/vsts/git/v4_1/models/web_api_tag_definition.py delete mode 100644 vsts/vsts/graph/__init__.py delete mode 100644 vsts/vsts/graph/v4_1/__init__.py delete mode 100644 vsts/vsts/graph/v4_1/models/__init__.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_cache_policies.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_descriptor_result.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_group.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_group_creation_context.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_member.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_membership.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_membership_state.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_membership_traversal.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_scope.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_storage_key_result.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_subject.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_subject_lookup.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_user.py delete mode 100644 vsts/vsts/graph/v4_1/models/graph_user_creation_context.py delete mode 100644 vsts/vsts/graph/v4_1/models/identity_key_map.py delete mode 100644 vsts/vsts/graph/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/graph/v4_1/models/paged_graph_groups.py delete mode 100644 vsts/vsts/graph/v4_1/models/paged_graph_users.py delete mode 100644 vsts/vsts/graph/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/identity/__init__.py delete mode 100644 vsts/vsts/identity/v4_0/__init__.py delete mode 100644 vsts/vsts/identity/v4_0/models/__init__.py delete mode 100644 vsts/vsts/identity/v4_0/models/access_token_result.py delete mode 100644 vsts/vsts/identity/v4_0/models/authorization_grant.py delete mode 100644 vsts/vsts/identity/v4_0/models/changed_identities.py delete mode 100644 vsts/vsts/identity/v4_0/models/changed_identities_context.py delete mode 100644 vsts/vsts/identity/v4_0/models/create_scope_info.py delete mode 100644 vsts/vsts/identity/v4_0/models/framework_identity_info.py delete mode 100644 vsts/vsts/identity/v4_0/models/group_membership.py delete mode 100644 vsts/vsts/identity/v4_0/models/identity.py delete mode 100644 vsts/vsts/identity/v4_0/models/identity_batch_info.py delete mode 100644 vsts/vsts/identity/v4_0/models/identity_scope.py delete mode 100644 vsts/vsts/identity/v4_0/models/identity_self.py delete mode 100644 vsts/vsts/identity/v4_0/models/identity_snapshot.py delete mode 100644 vsts/vsts/identity/v4_0/models/identity_update_data.py delete mode 100644 vsts/vsts/identity/v4_0/models/json_web_token.py delete mode 100644 vsts/vsts/identity/v4_0/models/refresh_token_grant.py delete mode 100644 vsts/vsts/identity/v4_0/models/tenant_info.py delete mode 100644 vsts/vsts/identity/v4_1/__init__.py delete mode 100644 vsts/vsts/identity/v4_1/models/__init__.py delete mode 100644 vsts/vsts/identity/v4_1/models/access_token_result.py delete mode 100644 vsts/vsts/identity/v4_1/models/authorization_grant.py delete mode 100644 vsts/vsts/identity/v4_1/models/changed_identities.py delete mode 100644 vsts/vsts/identity/v4_1/models/changed_identities_context.py delete mode 100644 vsts/vsts/identity/v4_1/models/create_scope_info.py delete mode 100644 vsts/vsts/identity/v4_1/models/framework_identity_info.py delete mode 100644 vsts/vsts/identity/v4_1/models/group_membership.py delete mode 100644 vsts/vsts/identity/v4_1/models/identity.py delete mode 100644 vsts/vsts/identity/v4_1/models/identity_base.py delete mode 100644 vsts/vsts/identity/v4_1/models/identity_batch_info.py delete mode 100644 vsts/vsts/identity/v4_1/models/identity_scope.py delete mode 100644 vsts/vsts/identity/v4_1/models/identity_self.py delete mode 100644 vsts/vsts/identity/v4_1/models/identity_snapshot.py delete mode 100644 vsts/vsts/identity/v4_1/models/identity_update_data.py delete mode 100644 vsts/vsts/identity/v4_1/models/json_web_token.py delete mode 100644 vsts/vsts/identity/v4_1/models/refresh_token_grant.py delete mode 100644 vsts/vsts/identity/v4_1/models/tenant_info.py delete mode 100644 vsts/vsts/licensing/__init__.py delete mode 100644 vsts/vsts/licensing/v4_0/__init__.py delete mode 100644 vsts/vsts/licensing/v4_0/models/__init__.py delete mode 100644 vsts/vsts/licensing/v4_0/models/account_entitlement.py delete mode 100644 vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py delete mode 100644 vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py delete mode 100644 vsts/vsts/licensing/v4_0/models/account_license_usage.py delete mode 100644 vsts/vsts/licensing/v4_0/models/account_rights.py delete mode 100644 vsts/vsts/licensing/v4_0/models/account_user_license.py delete mode 100644 vsts/vsts/licensing/v4_0/models/client_rights_container.py delete mode 100644 vsts/vsts/licensing/v4_0/models/extension_assignment.py delete mode 100644 vsts/vsts/licensing/v4_0/models/extension_assignment_details.py delete mode 100644 vsts/vsts/licensing/v4_0/models/extension_license_data.py delete mode 100644 vsts/vsts/licensing/v4_0/models/extension_operation_result.py delete mode 100644 vsts/vsts/licensing/v4_0/models/extension_rights_result.py delete mode 100644 vsts/vsts/licensing/v4_0/models/extension_source.py delete mode 100644 vsts/vsts/licensing/v4_0/models/iUsage_right.py delete mode 100644 vsts/vsts/licensing/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/licensing/v4_0/models/license.py delete mode 100644 vsts/vsts/licensing/v4_0/models/msdn_entitlement.py delete mode 100644 vsts/vsts/licensing/v4_1/__init__.py delete mode 100644 vsts/vsts/licensing/v4_1/models/__init__.py delete mode 100644 vsts/vsts/licensing/v4_1/models/account_entitlement.py delete mode 100644 vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py delete mode 100644 vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py delete mode 100644 vsts/vsts/licensing/v4_1/models/account_license_usage.py delete mode 100644 vsts/vsts/licensing/v4_1/models/account_rights.py delete mode 100644 vsts/vsts/licensing/v4_1/models/account_user_license.py delete mode 100644 vsts/vsts/licensing/v4_1/models/client_rights_container.py delete mode 100644 vsts/vsts/licensing/v4_1/models/extension_assignment.py delete mode 100644 vsts/vsts/licensing/v4_1/models/extension_assignment_details.py delete mode 100644 vsts/vsts/licensing/v4_1/models/extension_license_data.py delete mode 100644 vsts/vsts/licensing/v4_1/models/extension_operation_result.py delete mode 100644 vsts/vsts/licensing/v4_1/models/extension_rights_result.py delete mode 100644 vsts/vsts/licensing/v4_1/models/extension_source.py delete mode 100644 vsts/vsts/licensing/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/licensing/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/licensing/v4_1/models/license.py delete mode 100644 vsts/vsts/licensing/v4_1/models/msdn_entitlement.py delete mode 100644 vsts/vsts/licensing/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/location/__init__.py delete mode 100644 vsts/vsts/location/v4_0/__init__.py delete mode 100644 vsts/vsts/location/v4_0/models/__init__.py delete mode 100644 vsts/vsts/location/v4_0/models/access_mapping.py delete mode 100644 vsts/vsts/location/v4_0/models/connection_data.py delete mode 100644 vsts/vsts/location/v4_0/models/identity.py delete mode 100644 vsts/vsts/location/v4_0/models/location_mapping.py delete mode 100644 vsts/vsts/location/v4_0/models/location_service_data.py delete mode 100644 vsts/vsts/location/v4_0/models/resource_area_info.py delete mode 100644 vsts/vsts/location/v4_0/models/service_definition.py delete mode 100644 vsts/vsts/location/v4_1/__init__.py delete mode 100644 vsts/vsts/location/v4_1/models/__init__.py delete mode 100644 vsts/vsts/location/v4_1/models/access_mapping.py delete mode 100644 vsts/vsts/location/v4_1/models/connection_data.py delete mode 100644 vsts/vsts/location/v4_1/models/identity.py delete mode 100644 vsts/vsts/location/v4_1/models/identity_base.py delete mode 100644 vsts/vsts/location/v4_1/models/location_mapping.py delete mode 100644 vsts/vsts/location/v4_1/models/location_service_data.py delete mode 100644 vsts/vsts/location/v4_1/models/resource_area_info.py delete mode 100644 vsts/vsts/location/v4_1/models/service_definition.py delete mode 100644 vsts/vsts/maven/__init__.py delete mode 100644 vsts/vsts/maven/v4_1/__init__.py delete mode 100644 vsts/vsts/maven/v4_1/models/__init__.py delete mode 100644 vsts/vsts/maven/v4_1/models/batch_operation_data.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_package.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_build.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_ci.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_dependency.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_gav.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_license.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_metadata.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_organization.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_parent.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_person.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_pom_scm.py delete mode 100644 vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py delete mode 100644 vsts/vsts/maven/v4_1/models/package.py delete mode 100644 vsts/vsts/maven/v4_1/models/plugin.py delete mode 100644 vsts/vsts/maven/v4_1/models/plugin_configuration.py delete mode 100644 vsts/vsts/maven/v4_1/models/reference_link.py delete mode 100644 vsts/vsts/maven/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/member_entitlement_management/__init__.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/__init__.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/__init__.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/access_level.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/base_operation_result.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/extension.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/group.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/project_ref.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/__init__.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/__init__.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/access_level.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/extension.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/group_option.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/paged_graph_member_list.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py delete mode 100644 vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py delete mode 100644 vsts/vsts/models/__init__.py delete mode 100644 vsts/vsts/models/api_resource_location.py delete mode 100644 vsts/vsts/models/improper_exception.py delete mode 100644 vsts/vsts/models/system_exception.py delete mode 100644 vsts/vsts/models/vss_json_collection_wrapper.py delete mode 100644 vsts/vsts/models/vss_json_collection_wrapper_base.py delete mode 100644 vsts/vsts/models/wrapped_exception.py delete mode 100644 vsts/vsts/notification/__init__.py delete mode 100644 vsts/vsts/notification/v4_0/__init__.py delete mode 100644 vsts/vsts/notification/v4_0/models/__init__.py delete mode 100644 vsts/vsts/notification/v4_0/models/artifact_filter.py delete mode 100644 vsts/vsts/notification/v4_0/models/base_subscription_filter.py delete mode 100644 vsts/vsts/notification/v4_0/models/batch_notification_operation.py delete mode 100644 vsts/vsts/notification/v4_0/models/event_actor.py delete mode 100644 vsts/vsts/notification/v4_0/models/event_scope.py delete mode 100644 vsts/vsts/notification/v4_0/models/events_evaluation_result.py delete mode 100644 vsts/vsts/notification/v4_0/models/expression_filter_clause.py delete mode 100644 vsts/vsts/notification/v4_0/models/expression_filter_group.py delete mode 100644 vsts/vsts/notification/v4_0/models/expression_filter_model.py delete mode 100644 vsts/vsts/notification/v4_0/models/field_input_values.py delete mode 100644 vsts/vsts/notification/v4_0/models/field_values_query.py delete mode 100644 vsts/vsts/notification/v4_0/models/iSubscription_channel.py delete mode 100644 vsts/vsts/notification/v4_0/models/iSubscription_filter.py delete mode 100644 vsts/vsts/notification/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/notification/v4_0/models/input_value.py delete mode 100644 vsts/vsts/notification/v4_0/models/input_values.py delete mode 100644 vsts/vsts/notification/v4_0/models/input_values_query.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_event_field.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_event_field_operator.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_event_field_type.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_event_publisher.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_event_role.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_event_type.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_query_condition.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_reason.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_statistic.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_statistics_query.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_subscriber.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription_template.py delete mode 100644 vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py delete mode 100644 vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py delete mode 100644 vsts/vsts/notification/v4_0/models/operator_constraint.py delete mode 100644 vsts/vsts/notification/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_admin_settings.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_management.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_query.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_query_condition.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_scope.py delete mode 100644 vsts/vsts/notification/v4_0/models/subscription_user_settings.py delete mode 100644 vsts/vsts/notification/v4_0/models/value_definition.py delete mode 100644 vsts/vsts/notification/v4_0/models/vss_notification_event.py delete mode 100644 vsts/vsts/notification/v4_1/__init__.py delete mode 100644 vsts/vsts/notification/v4_1/models/__init__.py delete mode 100644 vsts/vsts/notification/v4_1/models/artifact_filter.py delete mode 100644 vsts/vsts/notification/v4_1/models/base_subscription_filter.py delete mode 100644 vsts/vsts/notification/v4_1/models/batch_notification_operation.py delete mode 100644 vsts/vsts/notification/v4_1/models/event_actor.py delete mode 100644 vsts/vsts/notification/v4_1/models/event_scope.py delete mode 100644 vsts/vsts/notification/v4_1/models/events_evaluation_result.py delete mode 100644 vsts/vsts/notification/v4_1/models/expression_filter_clause.py delete mode 100644 vsts/vsts/notification/v4_1/models/expression_filter_group.py delete mode 100644 vsts/vsts/notification/v4_1/models/expression_filter_model.py delete mode 100644 vsts/vsts/notification/v4_1/models/field_input_values.py delete mode 100644 vsts/vsts/notification/v4_1/models/field_values_query.py delete mode 100644 vsts/vsts/notification/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py delete mode 100644 vsts/vsts/notification/v4_1/models/iSubscription_channel.py delete mode 100644 vsts/vsts/notification/v4_1/models/iSubscription_filter.py delete mode 100644 vsts/vsts/notification/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/notification/v4_1/models/input_value.py delete mode 100644 vsts/vsts/notification/v4_1/models/input_values.py delete mode 100644 vsts/vsts/notification/v4_1/models/input_values_error.py delete mode 100644 vsts/vsts/notification/v4_1/models/input_values_query.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_event_field.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_event_field_operator.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_event_field_type.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_event_publisher.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_event_role.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_event_type.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_event_type_category.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_query_condition.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_reason.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_statistic.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_statistics_query.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_subscriber.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription_template.py delete mode 100644 vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py delete mode 100644 vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py delete mode 100644 vsts/vsts/notification/v4_1/models/operator_constraint.py delete mode 100644 vsts/vsts/notification/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_admin_settings.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_diagnostics.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_management.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_query.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_query_condition.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_scope.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_tracing.py delete mode 100644 vsts/vsts/notification/v4_1/models/subscription_user_settings.py delete mode 100644 vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py delete mode 100644 vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py delete mode 100644 vsts/vsts/notification/v4_1/models/value_definition.py delete mode 100644 vsts/vsts/notification/v4_1/models/vss_notification_event.py delete mode 100644 vsts/vsts/npm/__init__.py delete mode 100644 vsts/vsts/npm/v4_1/__init__.py delete mode 100644 vsts/vsts/npm/v4_1/models/__init__.py delete mode 100644 vsts/vsts/npm/v4_1/models/batch_deprecate_data.py delete mode 100644 vsts/vsts/npm/v4_1/models/batch_operation_data.py delete mode 100644 vsts/vsts/npm/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/npm/v4_1/models/minimal_package_details.py delete mode 100644 vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py delete mode 100644 vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py delete mode 100644 vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py delete mode 100644 vsts/vsts/npm/v4_1/models/package.py delete mode 100644 vsts/vsts/npm/v4_1/models/package_version_details.py delete mode 100644 vsts/vsts/npm/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/npm/v4_1/models/upstream_source_info.py delete mode 100644 vsts/vsts/nuget/__init__.py delete mode 100644 vsts/vsts/nuget/v4_1/__init__.py delete mode 100644 vsts/vsts/nuget/v4_1/models/__init__.py delete mode 100644 vsts/vsts/nuget/v4_1/models/batch_list_data.py delete mode 100644 vsts/vsts/nuget/v4_1/models/batch_operation_data.py delete mode 100644 vsts/vsts/nuget/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/nuget/v4_1/models/minimal_package_details.py delete mode 100644 vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py delete mode 100644 vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py delete mode 100644 vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py delete mode 100644 vsts/vsts/nuget/v4_1/models/package.py delete mode 100644 vsts/vsts/nuget/v4_1/models/package_version_details.py delete mode 100644 vsts/vsts/nuget/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/operations/__init__.py delete mode 100644 vsts/vsts/operations/v4_0/__init__.py delete mode 100644 vsts/vsts/operations/v4_0/models/operation_reference.py delete mode 100644 vsts/vsts/operations/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/operations/v4_1/__init__.py delete mode 100644 vsts/vsts/operations/v4_1/models/operation_reference.py delete mode 100644 vsts/vsts/operations/v4_1/models/operation_result_reference.py delete mode 100644 vsts/vsts/operations/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/policy/__init__.py delete mode 100644 vsts/vsts/policy/v4_0/__init__.py delete mode 100644 vsts/vsts/policy/v4_0/models/__init__.py delete mode 100644 vsts/vsts/policy/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/policy/v4_0/models/policy_configuration.py delete mode 100644 vsts/vsts/policy/v4_0/models/policy_configuration_ref.py delete mode 100644 vsts/vsts/policy/v4_0/models/policy_evaluation_record.py delete mode 100644 vsts/vsts/policy/v4_0/models/policy_type.py delete mode 100644 vsts/vsts/policy/v4_0/models/policy_type_ref.py delete mode 100644 vsts/vsts/policy/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/policy/v4_0/models/versioned_policy_configuration_ref.py delete mode 100644 vsts/vsts/policy/v4_1/__init__.py delete mode 100644 vsts/vsts/policy/v4_1/models/__init__.py delete mode 100644 vsts/vsts/policy/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/policy/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/policy/v4_1/models/policy_configuration.py delete mode 100644 vsts/vsts/policy/v4_1/models/policy_configuration_ref.py delete mode 100644 vsts/vsts/policy/v4_1/models/policy_evaluation_record.py delete mode 100644 vsts/vsts/policy/v4_1/models/policy_type.py delete mode 100644 vsts/vsts/policy/v4_1/models/policy_type_ref.py delete mode 100644 vsts/vsts/policy/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/policy/v4_1/models/versioned_policy_configuration_ref.py delete mode 100644 vsts/vsts/profile/__init__.py delete mode 100644 vsts/vsts/profile/v4_1/__init__.py delete mode 100644 vsts/vsts/profile/v4_1/models/__init__.py delete mode 100644 vsts/vsts/profile/v4_1/models/attribute_descriptor.py delete mode 100644 vsts/vsts/profile/v4_1/models/attributes_container.py delete mode 100644 vsts/vsts/profile/v4_1/models/avatar.py delete mode 100644 vsts/vsts/profile/v4_1/models/core_profile_attribute.py delete mode 100644 vsts/vsts/profile/v4_1/models/create_profile_context.py delete mode 100644 vsts/vsts/profile/v4_1/models/geo_region.py delete mode 100644 vsts/vsts/profile/v4_1/models/profile.py delete mode 100644 vsts/vsts/profile/v4_1/models/profile_attribute.py delete mode 100644 vsts/vsts/profile/v4_1/models/profile_attribute_base.py delete mode 100644 vsts/vsts/profile/v4_1/models/profile_region.py delete mode 100644 vsts/vsts/profile/v4_1/models/profile_regions.py delete mode 100644 vsts/vsts/profile/v4_1/models/remote_profile.py delete mode 100644 vsts/vsts/project_analysis/__init__.py delete mode 100644 vsts/vsts/project_analysis/v4_0/__init__.py delete mode 100644 vsts/vsts/project_analysis/v4_0/models/__init__.py delete mode 100644 vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py delete mode 100644 vsts/vsts/project_analysis/v4_0/models/language_statistics.py delete mode 100644 vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py delete mode 100644 vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py delete mode 100644 vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py delete mode 100644 vsts/vsts/project_analysis/v4_1/__init__.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/__init__.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/language_statistics.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py delete mode 100644 vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py delete mode 100644 vsts/vsts/release/__init__.py delete mode 100644 vsts/vsts/release/v4_0/__init__.py delete mode 100644 vsts/vsts/release/v4_0/models/__init__.py delete mode 100644 vsts/vsts/release/v4_0/models/agent_artifact_definition.py delete mode 100644 vsts/vsts/release/v4_0/models/approval_options.py delete mode 100644 vsts/vsts/release/v4_0/models/artifact.py delete mode 100644 vsts/vsts/release/v4_0/models/artifact_metadata.py delete mode 100644 vsts/vsts/release/v4_0/models/artifact_source_reference.py delete mode 100644 vsts/vsts/release/v4_0/models/artifact_type_definition.py delete mode 100644 vsts/vsts/release/v4_0/models/artifact_version.py delete mode 100644 vsts/vsts/release/v4_0/models/artifact_version_query_result.py delete mode 100644 vsts/vsts/release/v4_0/models/auto_trigger_issue.py delete mode 100644 vsts/vsts/release/v4_0/models/build_version.py delete mode 100644 vsts/vsts/release/v4_0/models/change.py delete mode 100644 vsts/vsts/release/v4_0/models/condition.py delete mode 100644 vsts/vsts/release/v4_0/models/configuration_variable_value.py delete mode 100644 vsts/vsts/release/v4_0/models/data_source_binding_base.py delete mode 100644 vsts/vsts/release/v4_0/models/definition_environment_reference.py delete mode 100644 vsts/vsts/release/v4_0/models/deployment.py delete mode 100644 vsts/vsts/release/v4_0/models/deployment_attempt.py delete mode 100644 vsts/vsts/release/v4_0/models/deployment_job.py delete mode 100644 vsts/vsts/release/v4_0/models/deployment_query_parameters.py delete mode 100644 vsts/vsts/release/v4_0/models/email_recipients.py delete mode 100644 vsts/vsts/release/v4_0/models/environment_execution_policy.py delete mode 100644 vsts/vsts/release/v4_0/models/environment_options.py delete mode 100644 vsts/vsts/release/v4_0/models/environment_retention_policy.py delete mode 100644 vsts/vsts/release/v4_0/models/favorite_item.py delete mode 100644 vsts/vsts/release/v4_0/models/folder.py delete mode 100644 vsts/vsts/release/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/release/v4_0/models/input_descriptor.py delete mode 100644 vsts/vsts/release/v4_0/models/input_validation.py delete mode 100644 vsts/vsts/release/v4_0/models/input_value.py delete mode 100644 vsts/vsts/release/v4_0/models/input_values.py delete mode 100644 vsts/vsts/release/v4_0/models/input_values_error.py delete mode 100644 vsts/vsts/release/v4_0/models/input_values_query.py delete mode 100644 vsts/vsts/release/v4_0/models/issue.py delete mode 100644 vsts/vsts/release/v4_0/models/mail_message.py delete mode 100644 vsts/vsts/release/v4_0/models/manual_intervention.py delete mode 100644 vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py delete mode 100644 vsts/vsts/release/v4_0/models/metric.py delete mode 100644 vsts/vsts/release/v4_0/models/process_parameters.py delete mode 100644 vsts/vsts/release/v4_0/models/project_reference.py delete mode 100644 vsts/vsts/release/v4_0/models/queued_release_data.py delete mode 100644 vsts/vsts/release/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/release/v4_0/models/release.py delete mode 100644 vsts/vsts/release/v4_0/models/release_approval.py delete mode 100644 vsts/vsts/release/v4_0/models/release_approval_history.py delete mode 100644 vsts/vsts/release/v4_0/models/release_condition.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_approval_step.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_approvals.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_deploy_step.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment_step.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment_summary.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_environment_template.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_revision.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py delete mode 100644 vsts/vsts/release/v4_0/models/release_definition_summary.py delete mode 100644 vsts/vsts/release/v4_0/models/release_deploy_phase.py delete mode 100644 vsts/vsts/release/v4_0/models/release_environment.py delete mode 100644 vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py delete mode 100644 vsts/vsts/release/v4_0/models/release_environment_update_metadata.py delete mode 100644 vsts/vsts/release/v4_0/models/release_reference.py delete mode 100644 vsts/vsts/release/v4_0/models/release_revision.py delete mode 100644 vsts/vsts/release/v4_0/models/release_schedule.py delete mode 100644 vsts/vsts/release/v4_0/models/release_settings.py delete mode 100644 vsts/vsts/release/v4_0/models/release_shallow_reference.py delete mode 100644 vsts/vsts/release/v4_0/models/release_start_metadata.py delete mode 100644 vsts/vsts/release/v4_0/models/release_task.py delete mode 100644 vsts/vsts/release/v4_0/models/release_update_metadata.py delete mode 100644 vsts/vsts/release/v4_0/models/release_work_item_ref.py delete mode 100644 vsts/vsts/release/v4_0/models/retention_policy.py delete mode 100644 vsts/vsts/release/v4_0/models/retention_settings.py delete mode 100644 vsts/vsts/release/v4_0/models/summary_mail_section.py delete mode 100644 vsts/vsts/release/v4_0/models/task_input_definition_base.py delete mode 100644 vsts/vsts/release/v4_0/models/task_input_validation.py delete mode 100644 vsts/vsts/release/v4_0/models/task_source_definition_base.py delete mode 100644 vsts/vsts/release/v4_0/models/variable_group.py delete mode 100644 vsts/vsts/release/v4_0/models/variable_group_provider_data.py delete mode 100644 vsts/vsts/release/v4_0/models/variable_value.py delete mode 100644 vsts/vsts/release/v4_0/models/workflow_task.py delete mode 100644 vsts/vsts/release/v4_0/models/workflow_task_reference.py delete mode 100644 vsts/vsts/release/v4_0/release_client.py delete mode 100644 vsts/vsts/release/v4_1/__init__.py delete mode 100644 vsts/vsts/release/v4_1/models/__init__.py delete mode 100644 vsts/vsts/release/v4_1/models/agent_artifact_definition.py delete mode 100644 vsts/vsts/release/v4_1/models/approval_options.py delete mode 100644 vsts/vsts/release/v4_1/models/artifact.py delete mode 100644 vsts/vsts/release/v4_1/models/artifact_metadata.py delete mode 100644 vsts/vsts/release/v4_1/models/artifact_source_reference.py delete mode 100644 vsts/vsts/release/v4_1/models/artifact_type_definition.py delete mode 100644 vsts/vsts/release/v4_1/models/artifact_version.py delete mode 100644 vsts/vsts/release/v4_1/models/artifact_version_query_result.py delete mode 100644 vsts/vsts/release/v4_1/models/authorization_header.py delete mode 100644 vsts/vsts/release/v4_1/models/auto_trigger_issue.py delete mode 100644 vsts/vsts/release/v4_1/models/build_version.py delete mode 100644 vsts/vsts/release/v4_1/models/change.py delete mode 100644 vsts/vsts/release/v4_1/models/condition.py delete mode 100644 vsts/vsts/release/v4_1/models/configuration_variable_value.py delete mode 100644 vsts/vsts/release/v4_1/models/data_source_binding_base.py delete mode 100644 vsts/vsts/release/v4_1/models/definition_environment_reference.py delete mode 100644 vsts/vsts/release/v4_1/models/deployment.py delete mode 100644 vsts/vsts/release/v4_1/models/deployment_attempt.py delete mode 100644 vsts/vsts/release/v4_1/models/deployment_job.py delete mode 100644 vsts/vsts/release/v4_1/models/deployment_query_parameters.py delete mode 100644 vsts/vsts/release/v4_1/models/email_recipients.py delete mode 100644 vsts/vsts/release/v4_1/models/environment_execution_policy.py delete mode 100644 vsts/vsts/release/v4_1/models/environment_options.py delete mode 100644 vsts/vsts/release/v4_1/models/environment_retention_policy.py delete mode 100644 vsts/vsts/release/v4_1/models/favorite_item.py delete mode 100644 vsts/vsts/release/v4_1/models/folder.py delete mode 100644 vsts/vsts/release/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/release/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/release/v4_1/models/input_descriptor.py delete mode 100644 vsts/vsts/release/v4_1/models/input_validation.py delete mode 100644 vsts/vsts/release/v4_1/models/input_value.py delete mode 100644 vsts/vsts/release/v4_1/models/input_values.py delete mode 100644 vsts/vsts/release/v4_1/models/input_values_error.py delete mode 100644 vsts/vsts/release/v4_1/models/input_values_query.py delete mode 100644 vsts/vsts/release/v4_1/models/issue.py delete mode 100644 vsts/vsts/release/v4_1/models/mail_message.py delete mode 100644 vsts/vsts/release/v4_1/models/manual_intervention.py delete mode 100644 vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py delete mode 100644 vsts/vsts/release/v4_1/models/metric.py delete mode 100644 vsts/vsts/release/v4_1/models/pipeline_process.py delete mode 100644 vsts/vsts/release/v4_1/models/process_parameters.py delete mode 100644 vsts/vsts/release/v4_1/models/project_reference.py delete mode 100644 vsts/vsts/release/v4_1/models/queued_release_data.py delete mode 100644 vsts/vsts/release/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/release/v4_1/models/release.py delete mode 100644 vsts/vsts/release/v4_1/models/release_approval.py delete mode 100644 vsts/vsts/release/v4_1/models/release_approval_history.py delete mode 100644 vsts/vsts/release/v4_1/models/release_condition.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_approval_step.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_approvals.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_deploy_step.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment_step.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment_summary.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_environment_template.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_gate.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_gates_options.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_gates_step.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_revision.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_summary.py delete mode 100644 vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py delete mode 100644 vsts/vsts/release/v4_1/models/release_deploy_phase.py delete mode 100644 vsts/vsts/release/v4_1/models/release_environment.py delete mode 100644 vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py delete mode 100644 vsts/vsts/release/v4_1/models/release_environment_update_metadata.py delete mode 100644 vsts/vsts/release/v4_1/models/release_gates.py delete mode 100644 vsts/vsts/release/v4_1/models/release_reference.py delete mode 100644 vsts/vsts/release/v4_1/models/release_revision.py delete mode 100644 vsts/vsts/release/v4_1/models/release_schedule.py delete mode 100644 vsts/vsts/release/v4_1/models/release_settings.py delete mode 100644 vsts/vsts/release/v4_1/models/release_shallow_reference.py delete mode 100644 vsts/vsts/release/v4_1/models/release_start_metadata.py delete mode 100644 vsts/vsts/release/v4_1/models/release_task.py delete mode 100644 vsts/vsts/release/v4_1/models/release_task_attachment.py delete mode 100644 vsts/vsts/release/v4_1/models/release_update_metadata.py delete mode 100644 vsts/vsts/release/v4_1/models/release_work_item_ref.py delete mode 100644 vsts/vsts/release/v4_1/models/retention_policy.py delete mode 100644 vsts/vsts/release/v4_1/models/retention_settings.py delete mode 100644 vsts/vsts/release/v4_1/models/summary_mail_section.py delete mode 100644 vsts/vsts/release/v4_1/models/task_input_definition_base.py delete mode 100644 vsts/vsts/release/v4_1/models/task_input_validation.py delete mode 100644 vsts/vsts/release/v4_1/models/task_source_definition_base.py delete mode 100644 vsts/vsts/release/v4_1/models/variable_group.py delete mode 100644 vsts/vsts/release/v4_1/models/variable_group_provider_data.py delete mode 100644 vsts/vsts/release/v4_1/models/variable_value.py delete mode 100644 vsts/vsts/release/v4_1/models/workflow_task.py delete mode 100644 vsts/vsts/release/v4_1/models/workflow_task_reference.py delete mode 100644 vsts/vsts/release/v4_1/release_client.py delete mode 100644 vsts/vsts/security/__init__.py delete mode 100644 vsts/vsts/security/v4_0/__init__.py delete mode 100644 vsts/vsts/security/v4_0/models/__init__.py delete mode 100644 vsts/vsts/security/v4_0/models/access_control_entry.py delete mode 100644 vsts/vsts/security/v4_0/models/access_control_list.py delete mode 100644 vsts/vsts/security/v4_0/models/access_control_lists_collection.py delete mode 100644 vsts/vsts/security/v4_0/models/ace_extended_information.py delete mode 100644 vsts/vsts/security/v4_0/models/action_definition.py delete mode 100644 vsts/vsts/security/v4_0/models/permission_evaluation.py delete mode 100644 vsts/vsts/security/v4_0/models/permission_evaluation_batch.py delete mode 100644 vsts/vsts/security/v4_0/models/security_namespace_description.py delete mode 100644 vsts/vsts/security/v4_1/__init__.py delete mode 100644 vsts/vsts/security/v4_1/models/__init__.py delete mode 100644 vsts/vsts/security/v4_1/models/access_control_entry.py delete mode 100644 vsts/vsts/security/v4_1/models/access_control_list.py delete mode 100644 vsts/vsts/security/v4_1/models/access_control_lists_collection.py delete mode 100644 vsts/vsts/security/v4_1/models/ace_extended_information.py delete mode 100644 vsts/vsts/security/v4_1/models/action_definition.py delete mode 100644 vsts/vsts/security/v4_1/models/permission_evaluation.py delete mode 100644 vsts/vsts/security/v4_1/models/permission_evaluation_batch.py delete mode 100644 vsts/vsts/security/v4_1/models/security_namespace_description.py delete mode 100644 vsts/vsts/service_endpoint/__init__.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/__init__.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/__init__.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/authorization_header.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/client_certificate.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/data_source_details.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/dependency_data.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/depends_on.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/help_link.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_validation.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_value.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_values.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/input_values_error.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py delete mode 100644 vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py delete mode 100644 vsts/vsts/service_hooks/__init__.py delete mode 100644 vsts/vsts/service_hooks/v4_0/__init__.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/__init__.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/consumer.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/consumer_action.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/event.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_descriptor.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_filter.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_validation.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_value.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_values.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_values_error.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/input_values_query.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/notification.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/notification_details.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/notification_summary.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/notifications_query.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/publisher.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/publisher_event.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/publishers_query.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/resource_container.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/session_token.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/subscription.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py delete mode 100644 vsts/vsts/service_hooks/v4_0/models/versioned_resource.py delete mode 100644 vsts/vsts/service_hooks/v4_1/__init__.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/__init__.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/consumer.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/consumer_action.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/event.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_descriptor.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_filter.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_validation.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_value.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_values.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_values_error.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/input_values_query.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/notification.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/notification_details.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/notification_summary.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/notifications_query.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/publisher.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/publisher_event.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/publishers_query.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/resource_container.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/session_token.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/subscription.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py delete mode 100644 vsts/vsts/service_hooks/v4_1/models/versioned_resource.py delete mode 100644 vsts/vsts/settings/__init__.py delete mode 100644 vsts/vsts/settings/v4_0/__init__.py delete mode 100644 vsts/vsts/settings/v4_0/settings_client.py delete mode 100644 vsts/vsts/settings/v4_1/__init__.py delete mode 100644 vsts/vsts/symbol/__init__.py delete mode 100644 vsts/vsts/symbol/v4_1/__init__.py delete mode 100644 vsts/vsts/symbol/v4_1/models/__init__.py delete mode 100644 vsts/vsts/symbol/v4_1/models/debug_entry.py delete mode 100644 vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py delete mode 100644 vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py delete mode 100644 vsts/vsts/symbol/v4_1/models/json_blob_identifier.py delete mode 100644 vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py delete mode 100644 vsts/vsts/symbol/v4_1/models/request.py delete mode 100644 vsts/vsts/symbol/v4_1/models/resource_base.py delete mode 100644 vsts/vsts/task/__init__.py delete mode 100644 vsts/vsts/task/v4_0/__init__.py delete mode 100644 vsts/vsts/task/v4_0/models/__init__.py delete mode 100644 vsts/vsts/task/v4_0/models/issue.py delete mode 100644 vsts/vsts/task/v4_0/models/job_option.py delete mode 100644 vsts/vsts/task/v4_0/models/mask_hint.py delete mode 100644 vsts/vsts/task/v4_0/models/plan_environment.py delete mode 100644 vsts/vsts/task/v4_0/models/project_reference.py delete mode 100644 vsts/vsts/task/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/task/v4_0/models/task_attachment.py delete mode 100644 vsts/vsts/task/v4_0/models/task_log.py delete mode 100644 vsts/vsts/task/v4_0/models/task_log_reference.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_container.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_item.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_owner.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_plan.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py delete mode 100644 vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py delete mode 100644 vsts/vsts/task/v4_0/models/task_reference.py delete mode 100644 vsts/vsts/task/v4_0/models/timeline.py delete mode 100644 vsts/vsts/task/v4_0/models/timeline_record.py delete mode 100644 vsts/vsts/task/v4_0/models/timeline_reference.py delete mode 100644 vsts/vsts/task/v4_0/models/variable_value.py delete mode 100644 vsts/vsts/task/v4_1/__init__.py delete mode 100644 vsts/vsts/task/v4_1/models/__init__.py delete mode 100644 vsts/vsts/task/v4_1/models/issue.py delete mode 100644 vsts/vsts/task/v4_1/models/job_option.py delete mode 100644 vsts/vsts/task/v4_1/models/mask_hint.py delete mode 100644 vsts/vsts/task/v4_1/models/plan_environment.py delete mode 100644 vsts/vsts/task/v4_1/models/project_reference.py delete mode 100644 vsts/vsts/task/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/task/v4_1/models/task_attachment.py delete mode 100644 vsts/vsts/task/v4_1/models/task_log.py delete mode 100644 vsts/vsts/task/v4_1/models/task_log_reference.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_container.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_item.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_owner.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_plan.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py delete mode 100644 vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py delete mode 100644 vsts/vsts/task/v4_1/models/task_reference.py delete mode 100644 vsts/vsts/task/v4_1/models/timeline.py delete mode 100644 vsts/vsts/task/v4_1/models/timeline_record.py delete mode 100644 vsts/vsts/task/v4_1/models/timeline_reference.py delete mode 100644 vsts/vsts/task/v4_1/models/variable_value.py delete mode 100644 vsts/vsts/task_agent/__init__.py delete mode 100644 vsts/vsts/task_agent/v4_0/__init__.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/__init__.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/authorization_header.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/azure_subscription.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/data_source.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/data_source_binding.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/data_source_details.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/dependency_binding.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/dependency_data.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/depends_on.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_group.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_machine.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/endpoint_url.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/help_link.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/input_descriptor.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/input_validation.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/input_validation_request.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/input_value.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/input_values.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/input_values_error.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/metrics_row.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/package_metadata.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/package_version.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/project_reference.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/result_transformation_details.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/secure_file.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_message.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_queue.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_reference.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_session.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_update.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_definition.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_definition_reference.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_execution.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_group.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_group_definition.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_group_revision.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_group_step.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_input_definition.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_input_validation.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_output_variable.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_package_metadata.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_reference.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_source_definition.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/task_version.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/validation_item.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/variable_group.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py delete mode 100644 vsts/vsts/task_agent/v4_0/models/variable_value.py delete mode 100644 vsts/vsts/task_agent/v4_1/__init__.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/__init__.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/authorization_header.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/azure_subscription.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/client_certificate.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/data_source.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/data_source_binding.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/data_source_details.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/dependency_binding.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/dependency_data.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/depends_on.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_machine.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/endpoint_url.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/help_link.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/input_descriptor.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/input_validation.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/input_validation_request.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/input_value.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/input_values.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/input_values_error.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/metrics_row.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/package_metadata.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/package_version.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/project_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/resource_usage.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/result_transformation_details.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/secure_file.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_message.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_queue.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_session.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_update.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_definition.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_definition_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_execution.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_group.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_definition.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_revision.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_step.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_input_definition.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_input_validation.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_output_variable.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_package_metadata.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_reference.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_source_definition.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/task_version.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/validation_item.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/variable_group.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py delete mode 100644 vsts/vsts/task_agent/v4_1/models/variable_value.py delete mode 100644 vsts/vsts/test/__init__.py delete mode 100644 vsts/vsts/test/v4_0/__init__.py delete mode 100644 vsts/vsts/test/v4_0/models/__init__.py delete mode 100644 vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py delete mode 100644 vsts/vsts/test/v4_0/models/aggregated_results_analysis.py delete mode 100644 vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py delete mode 100644 vsts/vsts/test/v4_0/models/aggregated_results_difference.py delete mode 100644 vsts/vsts/test/v4_0/models/build_configuration.py delete mode 100644 vsts/vsts/test/v4_0/models/build_coverage.py delete mode 100644 vsts/vsts/test/v4_0/models/build_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/clone_operation_information.py delete mode 100644 vsts/vsts/test/v4_0/models/clone_options.py delete mode 100644 vsts/vsts/test/v4_0/models/clone_statistics.py delete mode 100644 vsts/vsts/test/v4_0/models/code_coverage_data.py delete mode 100644 vsts/vsts/test/v4_0/models/code_coverage_statistics.py delete mode 100644 vsts/vsts/test/v4_0/models/code_coverage_summary.py delete mode 100644 vsts/vsts/test/v4_0/models/coverage_statistics.py delete mode 100644 vsts/vsts/test/v4_0/models/custom_test_field.py delete mode 100644 vsts/vsts/test/v4_0/models/custom_test_field_definition.py delete mode 100644 vsts/vsts/test/v4_0/models/dtl_environment_details.py delete mode 100644 vsts/vsts/test/v4_0/models/failing_since.py delete mode 100644 vsts/vsts/test/v4_0/models/function_coverage.py delete mode 100644 vsts/vsts/test/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/test/v4_0/models/last_result_details.py delete mode 100644 vsts/vsts/test/v4_0/models/linked_work_items_query.py delete mode 100644 vsts/vsts/test/v4_0/models/linked_work_items_query_result.py delete mode 100644 vsts/vsts/test/v4_0/models/module_coverage.py delete mode 100644 vsts/vsts/test/v4_0/models/name_value_pair.py delete mode 100644 vsts/vsts/test/v4_0/models/plan_update_model.py delete mode 100644 vsts/vsts/test/v4_0/models/point_assignment.py delete mode 100644 vsts/vsts/test/v4_0/models/point_update_model.py delete mode 100644 vsts/vsts/test/v4_0/models/points_filter.py delete mode 100644 vsts/vsts/test/v4_0/models/property_bag.py delete mode 100644 vsts/vsts/test/v4_0/models/query_model.py delete mode 100644 vsts/vsts/test/v4_0/models/release_environment_definition_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/release_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/result_retention_settings.py delete mode 100644 vsts/vsts/test/v4_0/models/results_filter.py delete mode 100644 vsts/vsts/test/v4_0/models/run_create_model.py delete mode 100644 vsts/vsts/test/v4_0/models/run_filter.py delete mode 100644 vsts/vsts/test/v4_0/models/run_statistic.py delete mode 100644 vsts/vsts/test/v4_0/models/run_update_model.py delete mode 100644 vsts/vsts/test/v4_0/models/shallow_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/shared_step_model.py delete mode 100644 vsts/vsts/test/v4_0/models/suite_create_model.py delete mode 100644 vsts/vsts/test/v4_0/models/suite_entry.py delete mode 100644 vsts/vsts/test/v4_0/models/suite_entry_update_model.py delete mode 100644 vsts/vsts/test/v4_0/models/suite_test_case.py delete mode 100644 vsts/vsts/test/v4_0/models/team_context.py delete mode 100644 vsts/vsts/test/v4_0/models/team_project_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/test_action_result_model.py delete mode 100644 vsts/vsts/test/v4_0/models/test_attachment.py delete mode 100644 vsts/vsts/test/v4_0/models/test_attachment_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/test_attachment_request_model.py delete mode 100644 vsts/vsts/test/v4_0/models/test_case_result.py delete mode 100644 vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py delete mode 100644 vsts/vsts/test/v4_0/models/test_case_result_identifier.py delete mode 100644 vsts/vsts/test/v4_0/models/test_case_result_update_model.py delete mode 100644 vsts/vsts/test/v4_0/models/test_configuration.py delete mode 100644 vsts/vsts/test/v4_0/models/test_environment.py delete mode 100644 vsts/vsts/test/v4_0/models/test_failure_details.py delete mode 100644 vsts/vsts/test/v4_0/models/test_failures_analysis.py delete mode 100644 vsts/vsts/test/v4_0/models/test_iteration_details_model.py delete mode 100644 vsts/vsts/test/v4_0/models/test_message_log_details.py delete mode 100644 vsts/vsts/test/v4_0/models/test_method.py delete mode 100644 vsts/vsts/test/v4_0/models/test_operation_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/test_plan.py delete mode 100644 vsts/vsts/test/v4_0/models/test_plan_clone_request.py delete mode 100644 vsts/vsts/test/v4_0/models/test_point.py delete mode 100644 vsts/vsts/test/v4_0/models/test_points_query.py delete mode 100644 vsts/vsts/test/v4_0/models/test_resolution_state.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_create_model.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_document.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_history.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_model_base.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_parameter_model.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_payload.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_summary.py delete mode 100644 vsts/vsts/test/v4_0/models/test_result_trend_filter.py delete mode 100644 vsts/vsts/test/v4_0/models/test_results_context.py delete mode 100644 vsts/vsts/test/v4_0/models/test_results_details.py delete mode 100644 vsts/vsts/test/v4_0/models/test_results_details_for_group.py delete mode 100644 vsts/vsts/test/v4_0/models/test_results_query.py delete mode 100644 vsts/vsts/test/v4_0/models/test_run.py delete mode 100644 vsts/vsts/test/v4_0/models/test_run_coverage.py delete mode 100644 vsts/vsts/test/v4_0/models/test_run_statistic.py delete mode 100644 vsts/vsts/test/v4_0/models/test_session.py delete mode 100644 vsts/vsts/test/v4_0/models/test_settings.py delete mode 100644 vsts/vsts/test/v4_0/models/test_suite.py delete mode 100644 vsts/vsts/test/v4_0/models/test_suite_clone_request.py delete mode 100644 vsts/vsts/test/v4_0/models/test_summary_for_work_item.py delete mode 100644 vsts/vsts/test/v4_0/models/test_to_work_item_links.py delete mode 100644 vsts/vsts/test/v4_0/models/test_variable.py delete mode 100644 vsts/vsts/test/v4_0/models/work_item_reference.py delete mode 100644 vsts/vsts/test/v4_0/models/work_item_to_test_links.py delete mode 100644 vsts/vsts/test/v4_1/__init__.py delete mode 100644 vsts/vsts/test/v4_1/models/__init__.py delete mode 100644 vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py delete mode 100644 vsts/vsts/test/v4_1/models/aggregated_results_analysis.py delete mode 100644 vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py delete mode 100644 vsts/vsts/test/v4_1/models/aggregated_results_difference.py delete mode 100644 vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py delete mode 100644 vsts/vsts/test/v4_1/models/build_configuration.py delete mode 100644 vsts/vsts/test/v4_1/models/build_coverage.py delete mode 100644 vsts/vsts/test/v4_1/models/build_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/clone_operation_information.py delete mode 100644 vsts/vsts/test/v4_1/models/clone_options.py delete mode 100644 vsts/vsts/test/v4_1/models/clone_statistics.py delete mode 100644 vsts/vsts/test/v4_1/models/code_coverage_data.py delete mode 100644 vsts/vsts/test/v4_1/models/code_coverage_statistics.py delete mode 100644 vsts/vsts/test/v4_1/models/code_coverage_summary.py delete mode 100644 vsts/vsts/test/v4_1/models/coverage_statistics.py delete mode 100644 vsts/vsts/test/v4_1/models/custom_test_field.py delete mode 100644 vsts/vsts/test/v4_1/models/custom_test_field_definition.py delete mode 100644 vsts/vsts/test/v4_1/models/dtl_environment_details.py delete mode 100644 vsts/vsts/test/v4_1/models/failing_since.py delete mode 100644 vsts/vsts/test/v4_1/models/field_details_for_test_results.py delete mode 100644 vsts/vsts/test/v4_1/models/function_coverage.py delete mode 100644 vsts/vsts/test/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/test/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/test/v4_1/models/last_result_details.py delete mode 100644 vsts/vsts/test/v4_1/models/linked_work_items_query.py delete mode 100644 vsts/vsts/test/v4_1/models/linked_work_items_query_result.py delete mode 100644 vsts/vsts/test/v4_1/models/module_coverage.py delete mode 100644 vsts/vsts/test/v4_1/models/name_value_pair.py delete mode 100644 vsts/vsts/test/v4_1/models/plan_update_model.py delete mode 100644 vsts/vsts/test/v4_1/models/point_assignment.py delete mode 100644 vsts/vsts/test/v4_1/models/point_update_model.py delete mode 100644 vsts/vsts/test/v4_1/models/points_filter.py delete mode 100644 vsts/vsts/test/v4_1/models/property_bag.py delete mode 100644 vsts/vsts/test/v4_1/models/query_model.py delete mode 100644 vsts/vsts/test/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/test/v4_1/models/release_environment_definition_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/release_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/result_retention_settings.py delete mode 100644 vsts/vsts/test/v4_1/models/results_filter.py delete mode 100644 vsts/vsts/test/v4_1/models/run_create_model.py delete mode 100644 vsts/vsts/test/v4_1/models/run_filter.py delete mode 100644 vsts/vsts/test/v4_1/models/run_statistic.py delete mode 100644 vsts/vsts/test/v4_1/models/run_update_model.py delete mode 100644 vsts/vsts/test/v4_1/models/shallow_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/shallow_test_case_result.py delete mode 100644 vsts/vsts/test/v4_1/models/shared_step_model.py delete mode 100644 vsts/vsts/test/v4_1/models/suite_create_model.py delete mode 100644 vsts/vsts/test/v4_1/models/suite_entry.py delete mode 100644 vsts/vsts/test/v4_1/models/suite_entry_update_model.py delete mode 100644 vsts/vsts/test/v4_1/models/suite_test_case.py delete mode 100644 vsts/vsts/test/v4_1/models/suite_update_model.py delete mode 100644 vsts/vsts/test/v4_1/models/team_context.py delete mode 100644 vsts/vsts/test/v4_1/models/team_project_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/test_action_result_model.py delete mode 100644 vsts/vsts/test/v4_1/models/test_attachment.py delete mode 100644 vsts/vsts/test/v4_1/models/test_attachment_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/test_attachment_request_model.py delete mode 100644 vsts/vsts/test/v4_1/models/test_case_result.py delete mode 100644 vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py delete mode 100644 vsts/vsts/test/v4_1/models/test_case_result_identifier.py delete mode 100644 vsts/vsts/test/v4_1/models/test_case_result_update_model.py delete mode 100644 vsts/vsts/test/v4_1/models/test_configuration.py delete mode 100644 vsts/vsts/test/v4_1/models/test_environment.py delete mode 100644 vsts/vsts/test/v4_1/models/test_failure_details.py delete mode 100644 vsts/vsts/test/v4_1/models/test_failures_analysis.py delete mode 100644 vsts/vsts/test/v4_1/models/test_iteration_details_model.py delete mode 100644 vsts/vsts/test/v4_1/models/test_message_log_details.py delete mode 100644 vsts/vsts/test/v4_1/models/test_method.py delete mode 100644 vsts/vsts/test/v4_1/models/test_operation_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/test_plan.py delete mode 100644 vsts/vsts/test/v4_1/models/test_plan_clone_request.py delete mode 100644 vsts/vsts/test/v4_1/models/test_point.py delete mode 100644 vsts/vsts/test/v4_1/models/test_points_query.py delete mode 100644 vsts/vsts/test/v4_1/models/test_resolution_state.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_create_model.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_document.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_history.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_model_base.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_parameter_model.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_payload.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_summary.py delete mode 100644 vsts/vsts/test/v4_1/models/test_result_trend_filter.py delete mode 100644 vsts/vsts/test/v4_1/models/test_results_context.py delete mode 100644 vsts/vsts/test/v4_1/models/test_results_details.py delete mode 100644 vsts/vsts/test/v4_1/models/test_results_details_for_group.py delete mode 100644 vsts/vsts/test/v4_1/models/test_results_groups_for_build.py delete mode 100644 vsts/vsts/test/v4_1/models/test_results_groups_for_release.py delete mode 100644 vsts/vsts/test/v4_1/models/test_results_query.py delete mode 100644 vsts/vsts/test/v4_1/models/test_run.py delete mode 100644 vsts/vsts/test/v4_1/models/test_run_coverage.py delete mode 100644 vsts/vsts/test/v4_1/models/test_run_statistic.py delete mode 100644 vsts/vsts/test/v4_1/models/test_session.py delete mode 100644 vsts/vsts/test/v4_1/models/test_settings.py delete mode 100644 vsts/vsts/test/v4_1/models/test_suite.py delete mode 100644 vsts/vsts/test/v4_1/models/test_suite_clone_request.py delete mode 100644 vsts/vsts/test/v4_1/models/test_summary_for_work_item.py delete mode 100644 vsts/vsts/test/v4_1/models/test_to_work_item_links.py delete mode 100644 vsts/vsts/test/v4_1/models/test_variable.py delete mode 100644 vsts/vsts/test/v4_1/models/work_item_reference.py delete mode 100644 vsts/vsts/test/v4_1/models/work_item_to_test_links.py delete mode 100644 vsts/vsts/tfvc/__init__.py delete mode 100644 vsts/vsts/tfvc/v4_0/__init__.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/__init__.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/associated_work_item.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/change.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/checkin_note.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/file_content_metadata.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/git_repository.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/git_repository_ref.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/item_content.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/item_model.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/team_project_reference.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_branch.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_change.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_item.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_label.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/version_control_project_info.py delete mode 100644 vsts/vsts/tfvc/v4_0/models/vsts_info.py delete mode 100644 vsts/vsts/tfvc/v4_1/__init__.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/__init__.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/associated_work_item.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/change.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/checkin_note.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/file_content_metadata.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/git_repository.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/git_repository_ref.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/item_content.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/item_model.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/team_project_reference.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_branch.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_change.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_item.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_label.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/version_control_project_info.py delete mode 100644 vsts/vsts/tfvc/v4_1/models/vsts_info.py delete mode 100644 vsts/vsts/wiki/__init__.py delete mode 100644 vsts/vsts/wiki/v4_0/__init__.py delete mode 100644 vsts/vsts/wiki/v4_0/models/__init__.py delete mode 100644 vsts/vsts/wiki/v4_0/models/change.py delete mode 100644 vsts/vsts/wiki/v4_0/models/file_content_metadata.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_commit_ref.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_item.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_push.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_push_ref.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_ref_update.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_repository.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_repository_ref.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_status.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_status_context.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_template.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_user_date.py delete mode 100644 vsts/vsts/wiki/v4_0/models/git_version_descriptor.py delete mode 100644 vsts/vsts/wiki/v4_0/models/item_content.py delete mode 100644 vsts/vsts/wiki/v4_0/models/item_model.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_attachment.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_change.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_page.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_page_change.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_repository.py delete mode 100644 vsts/vsts/wiki/v4_0/models/wiki_update.py delete mode 100644 vsts/vsts/wiki/v4_1/__init__.py delete mode 100644 vsts/vsts/wiki/v4_1/models/__init__.py delete mode 100644 vsts/vsts/wiki/v4_1/models/git_repository.py delete mode 100644 vsts/vsts/wiki/v4_1/models/git_repository_ref.py delete mode 100644 vsts/vsts/wiki/v4_1/models/git_version_descriptor.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_attachment.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_move.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_response.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py delete mode 100644 vsts/vsts/wiki/v4_1/models/wiki_v2.py delete mode 100644 vsts/vsts/work/__init__.py delete mode 100644 vsts/vsts/work/v4_0/__init__.py delete mode 100644 vsts/vsts/work/v4_0/models/__init__.py delete mode 100644 vsts/vsts/work/v4_0/models/activity.py delete mode 100644 vsts/vsts/work/v4_0/models/backlog_column.py delete mode 100644 vsts/vsts/work/v4_0/models/backlog_configuration.py delete mode 100644 vsts/vsts/work/v4_0/models/backlog_fields.py delete mode 100644 vsts/vsts/work/v4_0/models/backlog_level.py delete mode 100644 vsts/vsts/work/v4_0/models/backlog_level_configuration.py delete mode 100644 vsts/vsts/work/v4_0/models/board.py delete mode 100644 vsts/vsts/work/v4_0/models/board_card_rule_settings.py delete mode 100644 vsts/vsts/work/v4_0/models/board_card_settings.py delete mode 100644 vsts/vsts/work/v4_0/models/board_chart.py delete mode 100644 vsts/vsts/work/v4_0/models/board_chart_reference.py delete mode 100644 vsts/vsts/work/v4_0/models/board_column.py delete mode 100644 vsts/vsts/work/v4_0/models/board_fields.py delete mode 100644 vsts/vsts/work/v4_0/models/board_filter_settings.py delete mode 100644 vsts/vsts/work/v4_0/models/board_reference.py delete mode 100644 vsts/vsts/work/v4_0/models/board_row.py delete mode 100644 vsts/vsts/work/v4_0/models/board_suggested_value.py delete mode 100644 vsts/vsts/work/v4_0/models/board_user_settings.py delete mode 100644 vsts/vsts/work/v4_0/models/capacity_patch.py delete mode 100644 vsts/vsts/work/v4_0/models/category_configuration.py delete mode 100644 vsts/vsts/work/v4_0/models/create_plan.py delete mode 100644 vsts/vsts/work/v4_0/models/date_range.py delete mode 100644 vsts/vsts/work/v4_0/models/delivery_view_data.py delete mode 100644 vsts/vsts/work/v4_0/models/field_reference.py delete mode 100644 vsts/vsts/work/v4_0/models/filter_clause.py delete mode 100644 vsts/vsts/work/v4_0/models/filter_group.py delete mode 100644 vsts/vsts/work/v4_0/models/filter_model.py delete mode 100644 vsts/vsts/work/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/work/v4_0/models/member.py delete mode 100644 vsts/vsts/work/v4_0/models/parent_child_wIMap.py delete mode 100644 vsts/vsts/work/v4_0/models/plan.py delete mode 100644 vsts/vsts/work/v4_0/models/plan_view_data.py delete mode 100644 vsts/vsts/work/v4_0/models/process_configuration.py delete mode 100644 vsts/vsts/work/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/work/v4_0/models/rule.py delete mode 100644 vsts/vsts/work/v4_0/models/team_context.py delete mode 100644 vsts/vsts/work/v4_0/models/team_field_value.py delete mode 100644 vsts/vsts/work/v4_0/models/team_field_values.py delete mode 100644 vsts/vsts/work/v4_0/models/team_field_values_patch.py delete mode 100644 vsts/vsts/work/v4_0/models/team_iteration_attributes.py delete mode 100644 vsts/vsts/work/v4_0/models/team_member_capacity.py delete mode 100644 vsts/vsts/work/v4_0/models/team_setting.py delete mode 100644 vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py delete mode 100644 vsts/vsts/work/v4_0/models/team_settings_days_off.py delete mode 100644 vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py delete mode 100644 vsts/vsts/work/v4_0/models/team_settings_iteration.py delete mode 100644 vsts/vsts/work/v4_0/models/team_settings_patch.py delete mode 100644 vsts/vsts/work/v4_0/models/timeline_criteria_status.py delete mode 100644 vsts/vsts/work/v4_0/models/timeline_iteration_status.py delete mode 100644 vsts/vsts/work/v4_0/models/timeline_team_data.py delete mode 100644 vsts/vsts/work/v4_0/models/timeline_team_iteration.py delete mode 100644 vsts/vsts/work/v4_0/models/timeline_team_status.py delete mode 100644 vsts/vsts/work/v4_0/models/update_plan.py delete mode 100644 vsts/vsts/work/v4_0/models/work_item_color.py delete mode 100644 vsts/vsts/work/v4_0/models/work_item_field_reference.py delete mode 100644 vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py delete mode 100644 vsts/vsts/work/v4_0/models/work_item_type_reference.py delete mode 100644 vsts/vsts/work/v4_0/models/work_item_type_state_info.py delete mode 100644 vsts/vsts/work/v4_1/__init__.py delete mode 100644 vsts/vsts/work/v4_1/models/__init__.py delete mode 100644 vsts/vsts/work/v4_1/models/activity.py delete mode 100644 vsts/vsts/work/v4_1/models/backlog_column.py delete mode 100644 vsts/vsts/work/v4_1/models/backlog_configuration.py delete mode 100644 vsts/vsts/work/v4_1/models/backlog_fields.py delete mode 100644 vsts/vsts/work/v4_1/models/backlog_level.py delete mode 100644 vsts/vsts/work/v4_1/models/backlog_level_configuration.py delete mode 100644 vsts/vsts/work/v4_1/models/backlog_level_work_items.py delete mode 100644 vsts/vsts/work/v4_1/models/board.py delete mode 100644 vsts/vsts/work/v4_1/models/board_card_rule_settings.py delete mode 100644 vsts/vsts/work/v4_1/models/board_card_settings.py delete mode 100644 vsts/vsts/work/v4_1/models/board_chart.py delete mode 100644 vsts/vsts/work/v4_1/models/board_chart_reference.py delete mode 100644 vsts/vsts/work/v4_1/models/board_column.py delete mode 100644 vsts/vsts/work/v4_1/models/board_fields.py delete mode 100644 vsts/vsts/work/v4_1/models/board_reference.py delete mode 100644 vsts/vsts/work/v4_1/models/board_row.py delete mode 100644 vsts/vsts/work/v4_1/models/board_suggested_value.py delete mode 100644 vsts/vsts/work/v4_1/models/board_user_settings.py delete mode 100644 vsts/vsts/work/v4_1/models/capacity_patch.py delete mode 100644 vsts/vsts/work/v4_1/models/category_configuration.py delete mode 100644 vsts/vsts/work/v4_1/models/create_plan.py delete mode 100644 vsts/vsts/work/v4_1/models/date_range.py delete mode 100644 vsts/vsts/work/v4_1/models/delivery_view_data.py delete mode 100644 vsts/vsts/work/v4_1/models/field_reference.py delete mode 100644 vsts/vsts/work/v4_1/models/filter_clause.py delete mode 100644 vsts/vsts/work/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/work/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/work/v4_1/models/iteration_work_items.py delete mode 100644 vsts/vsts/work/v4_1/models/member.py delete mode 100644 vsts/vsts/work/v4_1/models/parent_child_wIMap.py delete mode 100644 vsts/vsts/work/v4_1/models/plan.py delete mode 100644 vsts/vsts/work/v4_1/models/plan_view_data.py delete mode 100644 vsts/vsts/work/v4_1/models/process_configuration.py delete mode 100644 vsts/vsts/work/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/work/v4_1/models/rule.py delete mode 100644 vsts/vsts/work/v4_1/models/team_context.py delete mode 100644 vsts/vsts/work/v4_1/models/team_field_value.py delete mode 100644 vsts/vsts/work/v4_1/models/team_field_values.py delete mode 100644 vsts/vsts/work/v4_1/models/team_field_values_patch.py delete mode 100644 vsts/vsts/work/v4_1/models/team_iteration_attributes.py delete mode 100644 vsts/vsts/work/v4_1/models/team_member_capacity.py delete mode 100644 vsts/vsts/work/v4_1/models/team_setting.py delete mode 100644 vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py delete mode 100644 vsts/vsts/work/v4_1/models/team_settings_days_off.py delete mode 100644 vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py delete mode 100644 vsts/vsts/work/v4_1/models/team_settings_iteration.py delete mode 100644 vsts/vsts/work/v4_1/models/team_settings_patch.py delete mode 100644 vsts/vsts/work/v4_1/models/timeline_criteria_status.py delete mode 100644 vsts/vsts/work/v4_1/models/timeline_iteration_status.py delete mode 100644 vsts/vsts/work/v4_1/models/timeline_team_data.py delete mode 100644 vsts/vsts/work/v4_1/models/timeline_team_iteration.py delete mode 100644 vsts/vsts/work/v4_1/models/timeline_team_status.py delete mode 100644 vsts/vsts/work/v4_1/models/update_plan.py delete mode 100644 vsts/vsts/work/v4_1/models/work_item_color.py delete mode 100644 vsts/vsts/work/v4_1/models/work_item_field_reference.py delete mode 100644 vsts/vsts/work/v4_1/models/work_item_link.py delete mode 100644 vsts/vsts/work/v4_1/models/work_item_reference.py delete mode 100644 vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py delete mode 100644 vsts/vsts/work/v4_1/models/work_item_type_reference.py delete mode 100644 vsts/vsts/work/v4_1/models/work_item_type_state_info.py delete mode 100644 vsts/vsts/work_item_tracking/__init__.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/__init__.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/account_my_work_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/account_recent_activity_work_item_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/account_recent_mention_work_item_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/account_work_work_item_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/attachment_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/field_dependent_rule.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/fields_to_evaluate.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/identity_ref.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/identity_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/json_patch_operation.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/project_work_item_state_colors.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/provisioning_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_item.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_items_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/reference_links.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_links_batch.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_batch.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_filter.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/streamed_batch.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/team_context.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/wiql.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_artifact_link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_classification_node.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_comment.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_comments.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_delete.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_shallow_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_update.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_field.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_field_operation.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_field_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_field_update.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_history.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_icon.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_query_clause.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_query_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_query_sort_column.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_relation.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_type.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_updates.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_state_color.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_state_transition.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_template.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_template_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_category.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color_and_icon.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_field_instance.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_state_colors.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template_update_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_0/models/work_item_update.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/__init__.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/account_my_work_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/account_recent_activity_work_item_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/account_recent_mention_work_item_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/account_work_work_item_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/attachment_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/field_dependent_rule.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/fields_to_evaluate.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/json_patch_operation.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/project_work_item_state_colors.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/provisioning_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/reference_links.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_links_batch.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_batch.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_filter.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/streamed_batch.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/team_context.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/wiql.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_artifact_link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_classification_node.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_delete.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_update.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_field.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_field_operation.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_field_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_field_update.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_history.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_icon.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_next_state_on_transition.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_relation.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_type.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_updates.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_state_transition.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_template.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_template_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_category.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color_and_icon.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_reference.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_state_colors.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template_update_model.py delete mode 100644 vsts/vsts/work_item_tracking/v4_1/models/work_item_update.py delete mode 100644 vsts/vsts/work_item_tracking_process/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/control.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/extension.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/group.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/page.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/section.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/control.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/extension.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/group.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/page.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/section.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py delete mode 100644 vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py diff --git a/vsts/LICENSE.txt b/azure-devops/LICENSE.txt similarity index 100% rename from vsts/LICENSE.txt rename to azure-devops/LICENSE.txt diff --git a/vsts/MANIFEST.in b/azure-devops/MANIFEST.in similarity index 100% rename from vsts/MANIFEST.in rename to azure-devops/MANIFEST.in diff --git a/vsts/vsts/__init__.py b/azure-devops/azure/__init__.py similarity index 100% rename from vsts/vsts/__init__.py rename to azure-devops/azure/__init__.py diff --git a/vsts/vsts/accounts/v4_1/__init__.py b/azure-devops/azure/devops/__init__.py similarity index 62% rename from vsts/vsts/accounts/v4_1/__init__.py rename to azure-devops/azure/devops/__init__.py index b19525a6..73baee1e 100644 --- a/vsts/vsts/accounts/v4_1/__init__.py +++ b/azure-devops/azure/devops/__init__.py @@ -2,6 +2,5 @@ # 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. -# -------------------------------------------------------------------------------------------- +import pkg_resources +pkg_resources.declare_namespace(__name__) diff --git a/azure-devops/azure/devops/_file_cache.py b/azure-devops/azure/devops/_file_cache.py new file mode 100644 index 00000000..d2cb1e15 --- /dev/null +++ b/azure-devops/azure/devops/_file_cache.py @@ -0,0 +1,176 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import base64 +import json +import logging +import os +import time +try: + import collections.abc as collections +except ImportError: + import collections + + +logger = logging.getLogger(__name__) + + +class FileCache(collections.MutableMapping): + """A simple dict-like class that is backed by a JSON file. + + All direct modifications will save the file. Indirect modifications should + be followed by a call to `save_with_retry` or `save`. + """ + + def __init__(self, file_name, max_age=0): + super(FileCache, self).__init__() + self.file_name = file_name + self.max_age = max_age + self.data = {} + self.initial_load_occurred = False + + def load(self): + self.data = {} + try: + if os.path.isfile(self.file_name): + if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.time(): + logger.debug('Cache file expired: %s', file=self.file_name) + os.remove(self.file_name) + else: + logger.debug('Loading cache file: %s', self.file_name) + self.data = get_file_json(self.file_name, throw_on_empty=False) or {} + else: + logger.debug('Cache file does not exist: %s', self.file_name) + except Exception as ex: + logger.debug(ex, exc_info=True) + # file is missing or corrupt so attempt to delete it + try: + os.remove(self.file_name) + except Exception as ex2: + logger.debug(ex2, exc_info=True) + self.initial_load_occurred = True + + def save(self): + self._check_for_initial_load() + self._save() + + def _save(self): + if self.file_name: + with os.fdopen(os.open(self.file_name, os.O_RDWR | os.O_CREAT | os.O_TRUNC, 0o600), 'w+') as cred_file: + cred_file.write(json.dumps(self.data)) + + def save_with_retry(self, retries=5): + self._check_for_initial_load() + for _ in range(retries - 1): + try: + self.save() + break + except OSError: + time.sleep(0.1) + else: + self.save() + + def clear(self): + if os.path.isfile(self.file_name): + logger.info("Deleting file: " + self.file_name) + os.remove(self.file_name) + else: + logger.info("File does not exist: " + self.file_name) + + def get(self, key, default=None): + self._check_for_initial_load() + return self.data.get(key, default) + + def __getitem__(self, key): + self._check_for_initial_load() + return self.data.setdefault(key, {}) + + def __setitem__(self, key, value): + self._check_for_initial_load() + self.data[key] = value + self.save_with_retry() + + def __delitem__(self, key): + self._check_for_initial_load() + del self.data[key] + self.save_with_retry() + + def __iter__(self): + self._check_for_initial_load() + return iter(self.data) + + def __len__(self): + self._check_for_initial_load() + return len(self.data) + + def _check_for_initial_load(self): + if not self.initial_load_occurred: + self.load() + + +def get_cache_dir(): + azure_devops_cache_dir = os.getenv('AZURE_DEVOPS_CACHE_DIR', None)\ + or os.path.expanduser(os.path.join('~', '.azure-devops', 'python-sdk', 'cache')) + if not os.path.exists(azure_devops_cache_dir): + os.makedirs(azure_devops_cache_dir) + return azure_devops_cache_dir + + +DEFAULT_MAX_AGE = 3600 * 12 # 12 hours +DEFAULT_CACHE_DIR = get_cache_dir() + + +def get_cache(name, max_age=DEFAULT_MAX_AGE, cache_dir=DEFAULT_CACHE_DIR): + file_name = os.path.join(cache_dir, name + '.json') + return FileCache(file_name, max_age) + + +OPTIONS_CACHE = get_cache('options') +RESOURCE_CACHE = get_cache('resources') + + +# Code below this point from azure-cli-core +# https://github.com/Azure/azure-cli/blob/master/src/azure-cli-core/azure/cli/core/util.py + +def get_file_json(file_path, throw_on_empty=True, preserve_order=False): + content = read_file_content(file_path) + if not content and not throw_on_empty: + return None + return shell_safe_json_parse(content, preserve_order) + + +def read_file_content(file_path, allow_binary=False): + from codecs import open as codecs_open + # Note, always put 'utf-8-sig' first, so that BOM in WinOS won't cause trouble. + for encoding in ['utf-8-sig', 'utf-8', 'utf-16', 'utf-16le', 'utf-16be']: + try: + with codecs_open(file_path, encoding=encoding) as f: + logger.debug("attempting to read file %s as %s", file_path, encoding) + return f.read() + except UnicodeDecodeError: + if allow_binary: + with open(file_path, 'rb') as input_file: + logger.debug("attempting to read file %s as binary", file_path) + return base64.b64encode(input_file.read()).decode("utf-8") + else: + raise + except UnicodeError: + pass + + raise ValueError('Failed to decode file {} - unknown decoding'.format(file_path)) + + +def shell_safe_json_parse(json_or_dict_string, preserve_order=False): + """ Allows the passing of JSON or Python dictionary strings. This is needed because certain + JSON strings in CMD shell are not received in main's argv. This allows the user to specify + the alternative notation, which does not have this problem (but is technically not JSON). """ + try: + if not preserve_order: + return json.loads(json_or_dict_string) + from collections import OrderedDict + return json.loads(json_or_dict_string, object_pairs_hook=OrderedDict) + except ValueError: + import ast + return ast.literal_eval(json_or_dict_string) diff --git a/azure-devops/azure/devops/_models.py b/azure-devops/azure/devops/_models.py new file mode 100644 index 00000000..b5486596 --- /dev/null +++ b/azure-devops/azure/devops/_models.py @@ -0,0 +1,215 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Generated file, DO NOT EDIT +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApiResourceLocation(Model): + """ApiResourceLocation. + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'area': {'key': 'area', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'route_template': {'key': 'routeTemplate', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'min_version': {'key': 'minVersion', 'type': 'float'}, + 'max_version': {'key': 'maxVersion', 'type': 'float'}, + 'released_version': {'key': 'releasedVersion', 'type': 'str'}, + } + + def __init__(self, id=None, area=None, resource_name=None, + route_template=None, resource_version=None, + min_version=None, max_version=None, + released_version=None): + super(ApiResourceLocation, self).__init__() + self.id = id + self.area = area + self.resource_name = resource_name + self.route_template = route_template + self.resource_version = resource_version + self.min_version = min_version + self.max_version = max_version + self.released_version = released_version + + +class CustomerIntelligenceEvent(Model): + """CustomerIntelligenceEvent. + + :param area: + :type area: str + :param feature: + :type feature: str + :param properties: + :type properties: dict + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'str'}, + 'feature': {'key': 'feature', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, area=None, feature=None, properties=None): + super(CustomerIntelligenceEvent, self).__init__() + self.area = area + self.feature = feature + self.properties = properties + + +class ImproperException(Model): + """ImproperException. + :param message: + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'Message', 'type': 'str'} + } + + def __init__(self, message=None): + super(ImproperException, self).__init__() + self.message = message + + +class ResourceAreaInfo(Model): + """ResourceAreaInfo. + + :param id: + :type id: str + :param location_url: + :type location_url: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location_url': {'key': 'locationUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, location_url=None, name=None): + super(ResourceAreaInfo, self).__init__() + self.id = id + self.location_url = location_url + self.name = name + + +class SystemException(Model): + """SystemException. + :param class_name: + :type class_name: str + :param inner_exception: + :type inner_exception: :class:`SystemException ` + :param message: + :type message: str + """ + + _attribute_map = { + 'class_name': {'key': 'ClassName', 'type': 'str'}, + 'message': {'key': 'Message', 'type': 'str'}, + 'inner_exception': {'key': 'InnerException', 'type': 'SystemException'} + } + + def __init__(self, class_name=None, message=None, inner_exception=None): + super(SystemException, self).__init__() + self.class_name = class_name + self.message = message + self.inner_exception = inner_exception + + +class VssJsonCollectionWrapperBase(Model): + """VssJsonCollectionWrapperBase. + + :param count: + :type count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'} + } + + def __init__(self, count=None): + super(VssJsonCollectionWrapperBase, self).__init__() + self.count = count + + +class VssJsonCollectionWrapper(VssJsonCollectionWrapperBase): + """VssJsonCollectionWrapper. + + :param count: + :type count: int + :param value: + :type value: object + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, count=None, value=None): + super(VssJsonCollectionWrapper, self).__init__(count=count) + self.value = value + + +class WrappedException(Model): + """WrappedException. + :param exception_id: + :type exception_id: str + :param inner_exception: + :type inner_exception: :class:`WrappedException ` + :param message: + :type message: str + :param type_name: + :type type_name: str + :param type_key: + :type type_key: str + :param error_code: + :type error_code: int + :param event_id: + :type event_id: int + :param custom_properties: + :type custom_properties: dict + """ + + _attribute_map = { + 'exception_id': {'key': '$id', 'type': 'str'}, + 'inner_exception': {'key': 'innerException', 'type': 'WrappedException'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type_name': {'key': 'typeName', 'type': 'str'}, + 'type_key': {'key': 'typeKey', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'event_id': {'key': 'eventId', 'type': 'int'}, + 'custom_properties': {'key': 'customProperties', 'type': '{object}'} + } + + def __init__(self, exception_id=None, inner_exception=None, message=None, + type_name=None, type_key=None, error_code=None, event_id=None, custom_properties=None): + super(WrappedException, self).__init__() + self.exception_id = exception_id + self.inner_exception = inner_exception + self.message = message + self.type_name = type_name + self.type_key = type_key + self.error_code = error_code + self.event_id = event_id + self.custom_properties = custom_properties + + +__all__ = [ + 'ApiResourceLocation', + 'CustomerIntelligenceEvent', + 'ImproperException', + 'ResourceAreaInfo', + 'SystemException', + 'VssJsonCollectionWrapperBase', + 'VssJsonCollectionWrapper', + 'WrappedException' +] diff --git a/azure-devops/azure/devops/client.py b/azure-devops/azure/devops/client.py new file mode 100644 index 00000000..afe9bd09 --- /dev/null +++ b/azure-devops/azure/devops/client.py @@ -0,0 +1,277 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from __future__ import print_function + +import logging +import os +import re +import uuid + +from msrest import Deserializer, Serializer +from msrest.exceptions import DeserializationError, SerializationError +from msrest.universal_http import ClientRequest +from msrest.service_client import ServiceClient +from .exceptions import AzureDevOpsAuthenticationError, AzureDevOpsClientRequestError, AzureDevOpsServiceError +from .client_configuration import ClientConfiguration +from . import _models +from ._file_cache import OPTIONS_CACHE as OPTIONS_FILE_CACHE + + +logger = logging.getLogger(__name__) + + +class Client(object): + """Client. + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + self.config = ClientConfiguration(base_url) + self.config.credentials = creds + self._client = ServiceClient(creds, config=self.config) + _base_client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} + self._base_deserialize = Deserializer(_base_client_models) + self._base_serialize = Serializer(_base_client_models) + self._all_host_types_locations = None + self._locations = None + self._suppress_fedauth_redirect = True + self._force_msa_pass_through = True + self.normalized_url = Client._normalize_url(base_url) + + def add_user_agent(self, user_agent): + if user_agent is not None: + self.config.add_user_agent(user_agent) + + def _send_request(self, request, headers=None, content=None, **operation_config): + """Prepare and send request object according to configuration. + :param ClientRequest request: The request object to be sent. + :param dict headers: Any headers to add to the request. + :param content: Any body data to add to the request. + :param config: Any specific config overrides + """ + if (TRACE_ENV_VAR in os.environ and os.environ[TRACE_ENV_VAR] == 'true')\ + or (TRACE_ENV_VAR_COMPAT in os.environ and os.environ[TRACE_ENV_VAR_COMPAT] == 'true'): + print(request.method + ' ' + request.url) + logger.debug('%s %s', request.method, request.url) + logger.debug('Request content: %s', content) + response = self._client.send(request=request, headers=headers, + content=content, **operation_config) + logger.debug('Response content: %s', response.content) + if response.status_code < 200 or response.status_code >= 300: + self._handle_error(request, response) + return response + + def _send(self, http_method, location_id, version, route_values=None, + query_parameters=None, content=None, media_type='application/json', accept_media_type='application/json'): + request = self._create_request_message(http_method=http_method, + location_id=location_id, + route_values=route_values, + query_parameters=query_parameters) + negotiated_version = self._negotiate_request_version( + self._get_resource_location(location_id), + version) + + if version != negotiated_version: + logger.info("Negotiated api version from '%s' down to '%s'. This means the client is newer than the server.", + version, + negotiated_version) + else: + logger.debug("Api version '%s'", negotiated_version) + + # Construct headers + headers = {'Content-Type': media_type + '; charset=utf-8', + 'Accept': accept_media_type + ';api-version=' + negotiated_version} + if self.config.additional_headers is not None: + for key in self.config.additional_headers: + headers[key] = self.config.additional_headers[key] + if self._suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' + if Client._session_header_key in Client._session_data and Client._session_header_key not in headers: + headers[Client._session_header_key] = Client._session_data[Client._session_header_key] + response = self._send_request(request=request, headers=headers, content=content) + if Client._session_header_key in response.headers: + Client._session_data[Client._session_header_key] = response.headers[Client._session_header_key] + return response + + def _unwrap_collection(self, response): + if response.headers.get("transfer-encoding") == 'chunked': + wrapper = self._base_deserialize.deserialize_data(response.json(), 'VssJsonCollectionWrapper') + else: + wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) + collection = wrapper.value + return collection + + def _create_request_message(self, http_method, location_id, route_values=None, + query_parameters=None): + location = self._get_resource_location(location_id) + if location is None: + raise ValueError('API resource location ' + location_id + ' is not registered on ' + + self.config.base_url + '.') + if route_values is None: + route_values = {} + route_values['area'] = location.area + route_values['resource'] = location.resource_name + route_template = self._remove_optional_route_parameters(location.route_template, + route_values) + logger.debug('Route template: %s', location.route_template) + url = self._client.format_url(route_template, **route_values) + request = ClientRequest(method=http_method, url=self._client.format_url(url)) + if query_parameters: + request.format_parameters(query_parameters) + return request + + @staticmethod + def _remove_optional_route_parameters(route_template, route_values): + new_template = '' + route_template = route_template.replace('{*', '{') + for path_segment in route_template.split('/'): + if (len(path_segment) <= 2 or not path_segment[0] == '{' + or not path_segment[len(path_segment) - 1] == '}' + or path_segment[1:len(path_segment) - 1] in route_values): + new_template = new_template + '/' + path_segment + return new_template + + def _get_resource_location(self, location_id): + if self.config.base_url not in Client._locations_cache: + Client._locations_cache[self.config.base_url] = self._get_resource_locations(all_host_types=False) + for location in Client._locations_cache[self.config.base_url]: + if location.id == location_id: + return location + + def _get_resource_locations(self, all_host_types): + # Check local client's cached Options first + if all_host_types: + if self._all_host_types_locations is not None: + return self._all_host_types_locations + elif self._locations is not None: + return self._locations + + # Next check for options cached on disk + if not all_host_types and OPTIONS_FILE_CACHE[self.normalized_url]: + try: + logger.debug('File cache hit for options on: %s', self.normalized_url) + self._locations = self._base_deserialize.deserialize_data(OPTIONS_FILE_CACHE[self.normalized_url], + '[ApiResourceLocation]') + return self._locations + except DeserializationError as ex: + logger.debug(ex, exc_info=True) + else: + logger.debug('File cache miss for options on: %s', self.normalized_url) + + # Last resort, make the call to the server + options_uri = self._combine_url(self.config.base_url, '_apis') + request = ClientRequest(method='OPTIONS', url=self._client.format_url(options_uri)) + if all_host_types: + query_parameters = {'allHostTypes': True} + request.format_parameters(query_parameters) + headers = {'Accept': 'application/json'} + if self._suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' + response = self._send_request(request, headers=headers) + wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) + if wrapper is None: + raise AzureDevOpsClientRequestError("Failed to retrieve resource locations from: {}".format(options_uri)) + collection = wrapper.value + returned_locations = self._base_deserialize('[ApiResourceLocation]', + collection) + if all_host_types: + self._all_host_types_locations = returned_locations + else: + self._locations = returned_locations + try: + OPTIONS_FILE_CACHE[self.normalized_url] = wrapper.value + except SerializationError as ex: + logger.debug(ex, exc_info=True) + return returned_locations + + @staticmethod + def _negotiate_request_version(location, version): + if location is None or version is None: + return version + pattern = r'(\d+(\.\d)?)(-preview(.(\d+))?)?' + match = re.match(pattern, version) + requested_api_version = match.group(1) + if requested_api_version is not None: + requested_api_version = float(requested_api_version) + if location.min_version > requested_api_version: + # Client is older than the server. The server no longer supports this + # resource (deprecated). + return + elif location.max_version < requested_api_version: + # Client is newer than the server. Negotiate down to the latest version + # on the server + negotiated_version = str(location.max_version) + if float(location.released_version) < location.max_version: + negotiated_version += '-preview' + return negotiated_version + else: + # We can send at the requested api version. Make sure the resource version + # is not bigger than what the server supports + negotiated_version = str(requested_api_version) + is_preview = match.group(3) is not None + if is_preview: + negotiated_version += '-preview' + if match.group(5) is not None: + if location.resource_version < int(match.group(5)): + negotiated_version += '.' + str(location.resource_version) + else: + negotiated_version += '.' + match.group(5) + return negotiated_version + + @staticmethod + def _combine_url(part1, part2): + return part1.rstrip('/') + '/' + part2.strip('/') + + def _handle_error(self, request, response): + content_type = response.headers.get('Content-Type') + error_message = '' + if content_type is None or content_type.find('text/plain') < 0: + try: + wrapped_exception = self._base_deserialize('WrappedException', response) + if wrapped_exception is not None and wrapped_exception.message is not None: + raise AzureDevOpsServiceError(wrapped_exception) + else: + # System exceptions from controllers are not returning wrapped exceptions. + # Following code is to handle this unusual exception json case. + # TODO: dig into this. + collection_wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) + if collection_wrapper is not None and collection_wrapper.value is not None: + wrapped_exception = self._base_deserialize('ImproperException', collection_wrapper.value) + if wrapped_exception is not None and wrapped_exception.message is not None: + raise AzureDevOpsClientRequestError(wrapped_exception.message) + # if we get here we still have not raised an exception, try to deserialize as a System Exception + system_exception = self._base_deserialize('SystemException', response) + if system_exception is not None and system_exception.message is not None: + raise AzureDevOpsClientRequestError(system_exception.message) + except DeserializationError: + pass + elif response.content is not None: + error_message = response.content.decode("utf-8") + ' ' + if response.status_code == 401: + full_message_format = '{error_message}The requested resource requires user authentication: {url}' + raise AzureDevOpsAuthenticationError(full_message_format.format(error_message=error_message, + url=request.url)) + else: + full_message_format = '{error_message}Operation returned an invalid status code of {status_code}.' + raise AzureDevOpsClientRequestError(full_message_format.format(error_message=error_message, + status_code=response.status_code)) + + @staticmethod + def _normalize_url(url): + return url.rstrip('/').lower() + + _locations_cache = {} + _session_header_key = 'X-TFS-Session' + _session_data = {_session_header_key: str(uuid.uuid4())} + + +TRACE_ENV_VAR_COMPAT = 'vsts_python_print_urls' +TRACE_ENV_VAR = 'azure_devops_python_print_urls' diff --git a/azure-devops/azure/devops/client_configuration.py b/azure-devops/azure/devops/client_configuration.py new file mode 100644 index 00000000..83fed802 --- /dev/null +++ b/azure-devops/azure/devops/client_configuration.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from msrest import Configuration +from .version import VERSION + + +class ClientConfiguration(Configuration): + def __init__(self, base_url=None): + if not base_url: + raise ValueError('base_url is required.') + base_url = base_url.rstrip('/') + super(ClientConfiguration, self).__init__(base_url) + self.add_user_agent('azure-devops/{}'.format(VERSION)) + self.additional_headers = {} diff --git a/azure-devops/azure/devops/connection.py b/azure-devops/azure/devops/connection.py new file mode 100644 index 00000000..60cb4b65 --- /dev/null +++ b/azure-devops/azure/devops/connection.py @@ -0,0 +1,104 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import logging + +from msrest.service_client import ServiceClient +from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE +from .exceptions import AzureDevOpsClientRequestError +from .v4_0.location.location_client import LocationClient +from .client_configuration import ClientConfiguration + +logger = logging.getLogger(__name__) + + +class Connection(object): + """Connection. + """ + + def __init__(self, base_url=None, creds=None, user_agent=None): + self._config = ClientConfiguration(base_url) + self._addition_user_agent = user_agent + if user_agent is not None: + self._config.add_user_agent(user_agent) + self._client = ServiceClient(creds, self._config) + self._client_cache = {} + self.base_url = base_url + self._creds = creds + self._resource_areas = None + + def get_client(self, client_type): + """get_client. + """ + if client_type not in self._client_cache: + client_class = self._get_class(client_type) + self._client_cache[client_type] = self._get_client_instance(client_class) + return self._client_cache[client_type] + + @staticmethod + def _get_class(full_class_name): + parts = full_class_name.split('.') + module_name = ".".join(parts[:-1]) + imported = __import__(module_name) + for comp in parts[1:]: + imported = getattr(imported, comp) + return imported + + def _get_client_instance(self, client_class): + url = self._get_url_for_client_instance(client_class) + client = client_class(url, self._creds) + client.add_user_agent(self._addition_user_agent) + return client + + def _get_url_for_client_instance(self, client_class): + resource_id = client_class.resource_area_identifier + if resource_id is None: + return self.base_url + else: + resource_areas = self._get_resource_areas() + if resource_areas is None: + raise AzureDevOpsClientRequestError(('Failed to retrieve resource areas ' + + 'from server: {url}').format(url=self.base_url)) + if not resource_areas: + # For OnPrem environments we get an empty list. + return self.base_url + for resource_area in resource_areas: + if resource_area.id.lower() == resource_id.lower(): + return resource_area.location_url + raise AzureDevOpsClientRequestError(('Could not find information for resource area {id} ' + + 'from server: {url}').format(id=resource_id, + url=self.base_url)) + + def authenticate(self): + self._get_resource_areas(force=True) + + def _get_resource_areas(self, force=False): + if self._resource_areas is None or force: + location_client = LocationClient(self.base_url, self._creds) + if not force and RESOURCE_FILE_CACHE[location_client.normalized_url]: + try: + logger.debug('File cache hit for resources on: %s', location_client.normalized_url) + self._resource_areas = location_client._base_deserialize.deserialize_data(RESOURCE_FILE_CACHE[location_client.normalized_url], + '[ResourceAreaInfo]') + return self._resource_areas + except Exception as ex: + logger.debug(ex, exc_info=True) + elif not force: + logger.debug('File cache miss for resources on: %s', location_client.normalized_url) + self._resource_areas = location_client.get_resource_areas() + if self._resource_areas is None: + # For OnPrem environments we get an empty collection wrapper. + self._resource_areas = [] + try: + serialized = location_client._base_serialize.serialize_data(self._resource_areas, + '[ResourceAreaInfo]') + RESOURCE_FILE_CACHE[location_client.normalized_url] = serialized + except Exception as ex: + logger.debug(ex, exc_info=True) + return self._resource_areas + + @staticmethod + def _combine_url(part1, part2): + return part1.rstrip('/') + '/' + part2.strip('/') diff --git a/vsts/vsts/credentials.py b/azure-devops/azure/devops/credentials.py similarity index 100% rename from vsts/vsts/credentials.py rename to azure-devops/azure/devops/credentials.py diff --git a/azure-devops/azure/devops/exceptions.py b/azure-devops/azure/devops/exceptions.py new file mode 100644 index 00000000..18a5f9ce --- /dev/null +++ b/azure-devops/azure/devops/exceptions.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + ClientRequestError, + AuthenticationError, +) + + +class AzureDevOpsClientError(ClientException): + pass + + +class AzureDevOpsAuthenticationError(AuthenticationError): + pass + + +class AzureDevOpsClientRequestError(ClientRequestError): + pass + + +class AzureDevOpsServiceError(AzureDevOpsClientRequestError): + """AzureDevOpsServiceError. + """ + + def __init__(self, wrapped_exception): + self.inner_exception = None + if wrapped_exception.inner_exception is not None: + self.inner_exception = AzureDevOpsServiceError(wrapped_exception.inner_exception) + super(AzureDevOpsServiceError, self).__init__(message=wrapped_exception.message, + inner_exception=self.inner_exception) + self.message = wrapped_exception.message + self.exception_id = wrapped_exception.exception_id + self.type_name = wrapped_exception.type_name + self.type_key = wrapped_exception.type_key + self.error_code = wrapped_exception.error_code + self.event_id = wrapped_exception.event_id + self.custom_properties = wrapped_exception.custom_properties diff --git a/vsts/vsts/accounts/v4_0/__init__.py b/azure-devops/azure/devops/v4_0/__init__.py similarity index 100% rename from vsts/vsts/accounts/v4_0/__init__.py rename to azure-devops/azure/devops/v4_0/__init__.py diff --git a/vsts/vsts/client_trace/v4_1/__init__.py b/azure-devops/azure/devops/v4_0/accounts/__init__.py similarity index 82% rename from vsts/vsts/client_trace/v4_1/__init__.py rename to azure-devops/azure/devops/v4_0/accounts/__init__.py index b19525a6..33fffd4a 100644 --- a/vsts/vsts/client_trace/v4_1/__init__.py +++ b/azure-devops/azure/devops/v4_0/accounts/__init__.py @@ -5,3 +5,11 @@ # Generated file, DO NOT EDIT # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- + +from .models import * + +__all__ = [ + 'Account', + 'AccountCreateInfoInternal', + 'AccountPreferencesInternal', +] diff --git a/vsts/vsts/accounts/v4_0/accounts_client.py b/azure-devops/azure/devops/v4_0/accounts/accounts_client.py similarity index 98% rename from vsts/vsts/accounts/v4_0/accounts_client.py rename to azure-devops/azure/devops/v4_0/accounts/accounts_client.py index 8a07ab32..c6d88079 100644 --- a/vsts/vsts/accounts/v4_0/accounts_client.py +++ b/azure-devops/azure/devops/v4_0/accounts/accounts_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class AccountsClient(VssClient): +class AccountsClient(Client): """Accounts :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/accounts/v4_0/models/account.py b/azure-devops/azure/devops/v4_0/accounts/models.py similarity index 64% rename from vsts/vsts/accounts/v4_0/models/account.py rename to azure-devops/azure/devops/v4_0/accounts/models.py index ff00f955..affc91d3 100644 --- a/vsts/vsts/accounts/v4_0/models/account.py +++ b/azure-devops/azure/devops/v4_0/accounts/models.py @@ -83,3 +83,70 @@ def __init__(self, account_id=None, account_name=None, account_owner=None, accou self.organization_name = organization_name self.properties = properties self.status_reason = status_reason + + +class AccountCreateInfoInternal(Model): + """AccountCreateInfoInternal. + + :param account_name: + :type account_name: str + :param creator: + :type creator: str + :param organization: + :type organization: str + :param preferences: + :type preferences: :class:`AccountPreferencesInternal ` + :param properties: + :type properties: :class:`object ` + :param service_definitions: + :type service_definitions: list of { key: str; value: str } + """ + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'creator': {'key': 'creator', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'str'}, + 'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'} + } + + def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None): + super(AccountCreateInfoInternal, self).__init__() + self.account_name = account_name + self.creator = creator + self.organization = organization + self.preferences = preferences + self.properties = properties + self.service_definitions = service_definitions + + +class AccountPreferencesInternal(Model): + """AccountPreferencesInternal. + + :param culture: + :type culture: object + :param language: + :type language: object + :param time_zone: + :type time_zone: object + """ + + _attribute_map = { + 'culture': {'key': 'culture', 'type': 'object'}, + 'language': {'key': 'language', 'type': 'object'}, + 'time_zone': {'key': 'timeZone', 'type': 'object'} + } + + def __init__(self, culture=None, language=None, time_zone=None): + super(AccountPreferencesInternal, self).__init__() + self.culture = culture + self.language = language + self.time_zone = time_zone + + +__all__ = [ + 'Account', + 'AccountCreateInfoInternal', + 'AccountPreferencesInternal', +] diff --git a/azure-devops/azure/devops/v4_0/build/__init__.py b/azure-devops/azure/devops/v4_0/build/__init__.py new file mode 100644 index 00000000..3e22f1b3 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/build/__init__.py @@ -0,0 +1,66 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentPoolQueue', + 'ArtifactResource', + 'Build', + 'BuildArtifact', + 'BuildBadge', + 'BuildController', + 'BuildDefinition', + 'BuildDefinition3_2', + 'BuildDefinitionReference', + 'BuildDefinitionRevision', + 'BuildDefinitionStep', + 'BuildDefinitionTemplate', + 'BuildDefinitionTemplate3_2', + 'BuildDefinitionVariable', + 'BuildLog', + 'BuildLogReference', + 'BuildMetric', + 'BuildOption', + 'BuildOptionDefinition', + 'BuildOptionDefinitionReference', + 'BuildOptionGroupDefinition', + 'BuildOptionInputDefinition', + 'BuildReportMetadata', + 'BuildRepository', + 'BuildRequestValidationResult', + 'BuildResourceUsage', + 'BuildSettings', + 'Change', + 'DataSourceBindingBase', + 'DefinitionReference', + 'Deployment', + 'Folder', + 'IdentityRef', + 'Issue', + 'JsonPatchOperation', + 'ProcessParameters', + 'ReferenceLinks', + 'ResourceRef', + 'RetentionPolicy', + 'TaskAgentPoolReference', + 'TaskDefinitionReference', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationPlanReference', + 'TaskReference', + 'TaskSourceDefinitionBase', + 'TeamProjectReference', + 'Timeline', + 'TimelineRecord', + 'TimelineReference', + 'VariableGroup', + 'VariableGroupReference', + 'WebApiConnectedServiceRef', + 'XamlBuildControllerReference', +] diff --git a/vsts/vsts/build/v4_0/build_client.py b/azure-devops/azure/devops/v4_0/build/build_client.py similarity index 99% rename from vsts/vsts/build/v4_0/build_client.py rename to azure-devops/azure/devops/v4_0/build/build_client.py index 92d52d34..a11bde81 100644 --- a/vsts/vsts/build/v4_0/build_client.py +++ b/azure-devops/azure/devops/v4_0/build/build_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class BuildClient(VssClient): +class BuildClient(Client): """Build :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/build/models.py b/azure-devops/azure/devops/v4_0/build/models.py new file mode 100644 index 00000000..eb2cd18a --- /dev/null +++ b/azure-devops/azure/devops/v4_0/build/models.py @@ -0,0 +1,2234 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentPoolQueue(Model): + """AgentPoolQueue. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param pool: The pool used by this queue. + :type pool: :class:`TaskAgentPoolReference ` + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, pool=None, url=None): + super(AgentPoolQueue, self).__init__() + self._links = _links + self.id = id + self.name = name + self.pool = pool + self.url = url + + +class ArtifactResource(Model): + """ArtifactResource. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param data: The type-specific resource data. For example, "#/10002/5/drop", "$/drops/5", "\\myshare\myfolder\mydrops\5" + :type data: str + :param download_url: Link to the resource. This might include things like query parameters to download as a zip file + :type download_url: str + :param properties: Properties of Artifact Resource + :type properties: dict + :param type: The type of the resource: File container, version control folder, UNC path, etc. + :type type: str + :param url: Link to the resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'data': {'key': 'data', 'type': 'str'}, + 'download_url': {'key': 'downloadUrl', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, data=None, download_url=None, properties=None, type=None, url=None): + super(ArtifactResource, self).__init__() + self._links = _links + self.data = data + self.download_url = download_url + self.properties = properties + self.type = type + self.url = url + + +class Build(Model): + """Build. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param build_number: Build number/name of the build + :type build_number: str + :param build_number_revision: Build number revision + :type build_number_revision: int + :param controller: The build controller. This should only be set if the definition type is Xaml. + :type controller: :class:`BuildController ` + :param definition: The definition associated with the build + :type definition: :class:`DefinitionReference ` + :param deleted: Indicates whether the build has been deleted. + :type deleted: bool + :param deleted_by: Process or person that deleted the build + :type deleted_by: :class:`IdentityRef ` + :param deleted_date: Date the build was deleted + :type deleted_date: datetime + :param deleted_reason: Description of how the build was deleted + :type deleted_reason: str + :param demands: Demands + :type demands: list of :class:`object ` + :param finish_time: Time that the build was completed + :type finish_time: datetime + :param id: Id of the build + :type id: int + :param keep_forever: + :type keep_forever: bool + :param last_changed_by: Process or person that last changed the build + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: Date the build was last changed + :type last_changed_date: datetime + :param logs: Log location of the build + :type logs: :class:`BuildLogReference ` + :param orchestration_plan: Orchestration plan for the build + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :param parameters: Parameters for the build + :type parameters: str + :param plans: Orchestration plans associated with the build (build, cleanup) + :type plans: list of :class:`TaskOrchestrationPlanReference ` + :param priority: The build's priority + :type priority: object + :param project: The team project + :type project: :class:`TeamProjectReference ` + :param properties: + :type properties: :class:`object ` + :param quality: Quality of the xaml build (good, bad, etc.) + :type quality: str + :param queue: The queue. This should only be set if the definition type is Build. + :type queue: :class:`AgentPoolQueue ` + :param queue_options: Queue option of the build. + :type queue_options: object + :param queue_position: The current position of the build in the queue + :type queue_position: int + :param queue_time: Time that the build was queued + :type queue_time: datetime + :param reason: Reason that the build was created + :type reason: object + :param repository: The repository + :type repository: :class:`BuildRepository ` + :param requested_by: The identity that queued the build + :type requested_by: :class:`IdentityRef ` + :param requested_for: The identity on whose behalf the build was queued + :type requested_for: :class:`IdentityRef ` + :param result: The build result + :type result: object + :param retained_by_release: Specifies if Build should be retained by Release + :type retained_by_release: bool + :param source_branch: Source branch + :type source_branch: str + :param source_version: Source version + :type source_version: str + :param start_time: Time that the build was started + :type start_time: datetime + :param status: Status of the build + :type status: object + :param tags: + :type tags: list of str + :param trigger_info: Sourceprovider-specific information about what triggered the build + :type trigger_info: dict + :param uri: Uri of the build + :type uri: str + :param url: REST url of the build + :type url: str + :param validation_results: + :type validation_results: list of :class:`BuildRequestValidationResult ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'build_number': {'key': 'buildNumber', 'type': 'str'}, + 'build_number_revision': {'key': 'buildNumberRevision', 'type': 'int'}, + 'controller': {'key': 'controller', 'type': 'BuildController'}, + 'definition': {'key': 'definition', 'type': 'DefinitionReference'}, + 'deleted': {'key': 'deleted', 'type': 'bool'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'deleted_reason': {'key': 'deletedReason', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'logs': {'key': 'logs', 'type': 'BuildLogReference'}, + 'orchestration_plan': {'key': 'orchestrationPlan', 'type': 'TaskOrchestrationPlanReference'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'plans': {'key': 'plans', 'type': '[TaskOrchestrationPlanReference]'}, + 'priority': {'key': 'priority', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quality': {'key': 'quality', 'type': 'str'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, + 'queue_options': {'key': 'queueOptions', 'type': 'object'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'repository': {'key': 'repository', 'type': 'BuildRepository'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'result': {'key': 'result', 'type': 'object'}, + 'retained_by_release': {'key': 'retainedByRelease', 'type': 'bool'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'trigger_info': {'key': 'triggerInfo', 'type': '{str}'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'} + } + + def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, trigger_info=None, uri=None, url=None, validation_results=None): + super(Build, self).__init__() + self._links = _links + self.build_number = build_number + self.build_number_revision = build_number_revision + self.controller = controller + self.definition = definition + self.deleted = deleted + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.deleted_reason = deleted_reason + self.demands = demands + self.finish_time = finish_time + self.id = id + self.keep_forever = keep_forever + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.logs = logs + self.orchestration_plan = orchestration_plan + self.parameters = parameters + self.plans = plans + self.priority = priority + self.project = project + self.properties = properties + self.quality = quality + self.queue = queue + self.queue_options = queue_options + self.queue_position = queue_position + self.queue_time = queue_time + self.reason = reason + self.repository = repository + self.requested_by = requested_by + self.requested_for = requested_for + self.result = result + self.retained_by_release = retained_by_release + self.source_branch = source_branch + self.source_version = source_version + self.start_time = start_time + self.status = status + self.tags = tags + self.trigger_info = trigger_info + self.uri = uri + self.url = url + self.validation_results = validation_results + + +class BuildArtifact(Model): + """BuildArtifact. + + :param id: The artifact id + :type id: int + :param name: The name of the artifact + :type name: str + :param resource: The actual resource + :type resource: :class:`ArtifactResource ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'ArtifactResource'} + } + + def __init__(self, id=None, name=None, resource=None): + super(BuildArtifact, self).__init__() + self.id = id + self.name = name + self.resource = resource + + +class BuildBadge(Model): + """BuildBadge. + + :param build_id: Build id, if exists that this badge corresponds to + :type build_id: int + :param image_url: Self Url that generates SVG + :type image_url: str + """ + + _attribute_map = { + 'build_id': {'key': 'buildId', 'type': 'int'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'} + } + + def __init__(self, build_id=None, image_url=None): + super(BuildBadge, self).__init__() + self.build_id = build_id + self.image_url = image_url + + +class BuildDefinitionRevision(Model): + """BuildDefinitionRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_type: + :type change_type: object + :param comment: + :type comment: str + :param definition_url: + :type definition_url: str + :param name: + :type name: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, definition_url=None, name=None, revision=None): + super(BuildDefinitionRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_url = definition_url + self.name = name + self.revision = revision + + +class BuildDefinitionStep(Model): + """BuildDefinitionStep. + + :param always_run: + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: + :type continue_on_error: bool + :param display_name: + :type display_name: str + :param enabled: + :type enabled: bool + :param environment: + :type environment: dict + :param inputs: + :type inputs: dict + :param ref_name: + :type ref_name: str + :param task: + :type task: :class:`TaskDefinitionReference ` + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'environment': {'key': 'environment', 'type': '{str}'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, environment=None, inputs=None, ref_name=None, task=None, timeout_in_minutes=None): + super(BuildDefinitionStep, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.display_name = display_name + self.enabled = enabled + self.environment = environment + self.inputs = inputs + self.ref_name = ref_name + self.task = task + self.timeout_in_minutes = timeout_in_minutes + + +class BuildDefinitionTemplate(Model): + """BuildDefinitionTemplate. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param description: + :type description: str + :param icons: + :type icons: dict + :param icon_task_id: + :type icon_task_id: str + :param id: + :type id: str + :param name: + :type name: str + :param template: + :type template: :class:`BuildDefinition ` + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icons': {'key': 'icons', 'type': '{str}'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'BuildDefinition'} + } + + def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + super(BuildDefinitionTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.icons = icons + self.icon_task_id = icon_task_id + self.id = id + self.name = name + self.template = template + + +class BuildDefinitionTemplate3_2(Model): + """BuildDefinitionTemplate3_2. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param description: + :type description: str + :param icons: + :type icons: dict + :param icon_task_id: + :type icon_task_id: str + :param id: + :type id: str + :param name: + :type name: str + :param template: + :type template: :class:`BuildDefinition3_2 ` + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icons': {'key': 'icons', 'type': '{str}'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'BuildDefinition3_2'} + } + + def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + super(BuildDefinitionTemplate3_2, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.icons = icons + self.icon_task_id = icon_task_id + self.id = id + self.name = name + self.template = template + + +class BuildDefinitionVariable(Model): + """BuildDefinitionVariable. + + :param allow_override: + :type allow_override: bool + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'allow_override': {'key': 'allowOverride', 'type': 'bool'}, + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, allow_override=None, is_secret=None, value=None): + super(BuildDefinitionVariable, self).__init__() + self.allow_override = allow_override + self.is_secret = is_secret + self.value = value + + +class BuildLogReference(Model): + """BuildLogReference. + + :param id: The id of the log. + :type id: int + :param type: The type of the log location. + :type type: str + :param url: Full link to the log resource. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, type=None, url=None): + super(BuildLogReference, self).__init__() + self.id = id + self.type = type + self.url = url + + +class BuildMetric(Model): + """BuildMetric. + + :param date: Scoped date of the metric + :type date: datetime + :param int_value: The int value of the metric + :type int_value: int + :param name: The name of the metric + :type name: str + :param scope: The scope of the metric + :type scope: str + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'int_value': {'key': 'intValue', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, date=None, int_value=None, name=None, scope=None): + super(BuildMetric, self).__init__() + self.date = date + self.int_value = int_value + self.name = name + self.scope = scope + + +class BuildOption(Model): + """BuildOption. + + :param definition: + :type definition: :class:`BuildOptionDefinitionReference ` + :param enabled: + :type enabled: bool + :param inputs: + :type inputs: dict + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'BuildOptionDefinitionReference'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'} + } + + def __init__(self, definition=None, enabled=None, inputs=None): + super(BuildOption, self).__init__() + self.definition = definition + self.enabled = enabled + self.inputs = inputs + + +class BuildOptionDefinitionReference(Model): + """BuildOptionDefinitionReference. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(BuildOptionDefinitionReference, self).__init__() + self.id = id + + +class BuildOptionGroupDefinition(Model): + """BuildOptionGroupDefinition. + + :param display_name: + :type display_name: str + :param is_expanded: + :type is_expanded: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, display_name=None, is_expanded=None, name=None): + super(BuildOptionGroupDefinition, self).__init__() + self.display_name = display_name + self.is_expanded = is_expanded + self.name = name + + +class BuildOptionInputDefinition(Model): + """BuildOptionInputDefinition. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help: + :type help: dict + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param required: + :type required: bool + :param type: + :type type: object + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help': {'key': 'help', 'type': '{str}'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, default_value=None, group_name=None, help=None, label=None, name=None, options=None, required=None, type=None, visible_rule=None): + super(BuildOptionInputDefinition, self).__init__() + self.default_value = default_value + self.group_name = group_name + self.help = help + self.label = label + self.name = name + self.options = options + self.required = required + self.type = type + self.visible_rule = visible_rule + + +class BuildReportMetadata(Model): + """BuildReportMetadata. + + :param build_id: + :type build_id: int + :param content: + :type content: str + :param type: + :type type: str + """ + + _attribute_map = { + 'build_id': {'key': 'buildId', 'type': 'int'}, + 'content': {'key': 'content', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, build_id=None, content=None, type=None): + super(BuildReportMetadata, self).__init__() + self.build_id = build_id + self.content = content + self.type = type + + +class BuildRepository(Model): + """BuildRepository. + + :param checkout_submodules: + :type checkout_submodules: bool + :param clean: Indicates whether to clean the target folder when getting code from the repository. This is a String so that it can reference variables. + :type clean: str + :param default_branch: Gets or sets the name of the default branch. + :type default_branch: str + :param id: + :type id: str + :param name: Gets or sets the friendly name of the repository. + :type name: str + :param properties: + :type properties: dict + :param root_folder: Gets or sets the root folder. + :type root_folder: str + :param type: Gets or sets the type of the repository. + :type type: str + :param url: Gets or sets the url of the repository. + :type url: str + """ + + _attribute_map = { + 'checkout_submodules': {'key': 'checkoutSubmodules', 'type': 'bool'}, + 'clean': {'key': 'clean', 'type': 'str'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'root_folder': {'key': 'rootFolder', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, checkout_submodules=None, clean=None, default_branch=None, id=None, name=None, properties=None, root_folder=None, type=None, url=None): + super(BuildRepository, self).__init__() + self.checkout_submodules = checkout_submodules + self.clean = clean + self.default_branch = default_branch + self.id = id + self.name = name + self.properties = properties + self.root_folder = root_folder + self.type = type + self.url = url + + +class BuildRequestValidationResult(Model): + """BuildRequestValidationResult. + + :param message: + :type message: str + :param result: + :type result: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'} + } + + def __init__(self, message=None, result=None): + super(BuildRequestValidationResult, self).__init__() + self.message = message + self.result = result + + +class BuildResourceUsage(Model): + """BuildResourceUsage. + + :param distributed_task_agents: + :type distributed_task_agents: int + :param paid_private_agent_slots: + :type paid_private_agent_slots: int + :param total_usage: + :type total_usage: int + :param xaml_controllers: + :type xaml_controllers: int + """ + + _attribute_map = { + 'distributed_task_agents': {'key': 'distributedTaskAgents', 'type': 'int'}, + 'paid_private_agent_slots': {'key': 'paidPrivateAgentSlots', 'type': 'int'}, + 'total_usage': {'key': 'totalUsage', 'type': 'int'}, + 'xaml_controllers': {'key': 'xamlControllers', 'type': 'int'} + } + + def __init__(self, distributed_task_agents=None, paid_private_agent_slots=None, total_usage=None, xaml_controllers=None): + super(BuildResourceUsage, self).__init__() + self.distributed_task_agents = distributed_task_agents + self.paid_private_agent_slots = paid_private_agent_slots + self.total_usage = total_usage + self.xaml_controllers = xaml_controllers + + +class BuildSettings(Model): + """BuildSettings. + + :param days_to_keep_deleted_builds_before_destroy: + :type days_to_keep_deleted_builds_before_destroy: int + :param default_retention_policy: + :type default_retention_policy: :class:`RetentionPolicy ` + :param maximum_retention_policy: + :type maximum_retention_policy: :class:`RetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_builds_before_destroy': {'key': 'daysToKeepDeletedBuildsBeforeDestroy', 'type': 'int'}, + 'default_retention_policy': {'key': 'defaultRetentionPolicy', 'type': 'RetentionPolicy'}, + 'maximum_retention_policy': {'key': 'maximumRetentionPolicy', 'type': 'RetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_builds_before_destroy=None, default_retention_policy=None, maximum_retention_policy=None): + super(BuildSettings, self).__init__() + self.days_to_keep_deleted_builds_before_destroy = days_to_keep_deleted_builds_before_destroy + self.default_retention_policy = default_retention_policy + self.maximum_retention_policy = maximum_retention_policy + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: A description of the change. This might be a commit message or changeset description. + :type message: str + :param message_truncated: Indicates whether the message was truncated + :type message_truncated: bool + :param timestamp: A timestamp for the change. + :type timestamp: datetime + :param type: The type of change. "commit", "changeset", etc. + :type type: str + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'message_truncated': {'key': 'messageTruncated', 'type': 'bool'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, timestamp=None, type=None): + super(Change, self).__init__() + self.author = author + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.message_truncated = message_truncated + self.timestamp = timestamp + self.type = type + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DefinitionReference(Model): + """DefinitionReference. + + :param created_date: The date the definition was created + :type created_date: datetime + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param path: The path this definitions belongs to + :type path: str + :param project: The project. + :type project: :class:`TeamProjectReference ` + :param queue_status: If builds can be queued from this definition + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The Uri of the definition + :type uri: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None): + super(DefinitionReference, self).__init__() + self.created_date = created_date + self.id = id + self.name = name + self.path = path + self.project = project + self.queue_status = queue_status + self.revision = revision + self.type = type + self.uri = uri + self.url = url + + +class Deployment(Model): + """Deployment. + + :param type: + :type type: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, type=None): + super(Deployment, self).__init__() + self.type = type + + +class Folder(Model): + """Folder. + + :param created_by: Process or person who created the folder + :type created_by: :class:`IdentityRef ` + :param created_on: Creation date of the folder + :type created_on: datetime + :param description: The description of the folder + :type description: str + :param last_changed_by: Process or person that last changed the folder + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: Date the folder was last changed + :type last_changed_date: datetime + :param path: The path of the folder + :type path: str + :param project: The project. + :type project: :class:`TeamProjectReference ` + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None, project=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path + self.project = project + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class Issue(Model): + """Issue. + + :param category: + :type category: str + :param data: + :type data: dict + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, category=None, data=None, message=None, type=None): + super(Issue, self).__init__() + self.category = category + self.data = data + self.message = message + self.type = type + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResourceRef(Model): + """ResourceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(ResourceRef, self).__init__() + self.id = id + self.url = url + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param artifacts: + :type artifacts: list of str + :param artifact_types_to_delete: + :type artifact_types_to_delete: list of str + :param branches: + :type branches: list of str + :param days_to_keep: + :type days_to_keep: int + :param delete_build_record: + :type delete_build_record: bool + :param delete_test_results: + :type delete_test_results: bool + :param minimum_to_keep: + :type minimum_to_keep: int + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[str]'}, + 'artifact_types_to_delete': {'key': 'artifactTypesToDelete', 'type': '[str]'}, + 'branches': {'key': 'branches', 'type': '[str]'}, + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'delete_build_record': {'key': 'deleteBuildRecord', 'type': 'bool'}, + 'delete_test_results': {'key': 'deleteTestResults', 'type': 'bool'}, + 'minimum_to_keep': {'key': 'minimumToKeep', 'type': 'int'} + } + + def __init__(self, artifacts=None, artifact_types_to_delete=None, branches=None, days_to_keep=None, delete_build_record=None, delete_test_results=None, minimum_to_keep=None): + super(RetentionPolicy, self).__init__() + self.artifacts = artifacts + self.artifact_types_to_delete = artifact_types_to_delete + self.branches = branches + self.days_to_keep = days_to_keep + self.delete_build_record = delete_build_record + self.delete_test_results = delete_test_results + self.minimum_to_keep = minimum_to_keep + + +class TaskAgentPoolReference(Model): + """TaskAgentPoolReference. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, is_hosted=None, name=None): + super(TaskAgentPoolReference, self).__init__() + self.id = id + self.is_hosted = is_hosted + self.name = name + + +class TaskDefinitionReference(Model): + """TaskDefinitionReference. + + :param definition_type: + :type definition_type: str + :param id: + :type id: str + :param version_spec: + :type version_spec: str + """ + + _attribute_map = { + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'version_spec': {'key': 'versionSpec', 'type': 'str'} + } + + def __init__(self, definition_type=None, id=None, version_spec=None): + super(TaskDefinitionReference, self).__init__() + self.definition_type = definition_type + self.id = id + self.version_spec = version_spec + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskOrchestrationPlanReference(Model): + """TaskOrchestrationPlanReference. + + :param orchestration_type: Orchestration Type for Build (build, cleanup etc.) + :type orchestration_type: int + :param plan_id: + :type plan_id: str + """ + + _attribute_map = { + 'orchestration_type': {'key': 'orchestrationType', 'type': 'int'}, + 'plan_id': {'key': 'planId', 'type': 'str'} + } + + def __init__(self, orchestration_type=None, plan_id=None): + super(TaskOrchestrationPlanReference, self).__init__() + self.orchestration_type = orchestration_type + self.plan_id = plan_id + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.name = name + self.version = version + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class TimelineRecord(Model): + """TimelineRecord. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param change_id: + :type change_id: int + :param current_operation: + :type current_operation: str + :param details: + :type details: :class:`TimelineReference ` + :param error_count: + :type error_count: int + :param finish_time: + :type finish_time: datetime + :param id: + :type id: str + :param issues: + :type issues: list of :class:`Issue ` + :param last_modified: + :type last_modified: datetime + :param log: + :type log: :class:`BuildLogReference ` + :param name: + :type name: str + :param order: + :type order: int + :param parent_id: + :type parent_id: str + :param percent_complete: + :type percent_complete: int + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param task: + :type task: :class:`TaskReference ` + :param type: + :type type: str + :param url: + :type url: str + :param warning_count: + :type warning_count: int + :param worker_name: + :type worker_name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'current_operation': {'key': 'currentOperation', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'TimelineReference'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'log': {'key': 'log', 'type': 'BuildLogReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'TaskReference'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'}, + 'worker_name': {'key': 'workerName', 'type': 'str'} + } + + def __init__(self, _links=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): + super(TimelineRecord, self).__init__() + self._links = _links + self.change_id = change_id + self.current_operation = current_operation + self.details = details + self.error_count = error_count + self.finish_time = finish_time + self.id = id + self.issues = issues + self.last_modified = last_modified + self.log = log + self.name = name + self.order = order + self.parent_id = parent_id + self.percent_complete = percent_complete + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.task = task + self.type = type + self.url = url + self.warning_count = warning_count + self.worker_name = worker_name + + +class TimelineReference(Model): + """TimelineReference. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_id=None, id=None, url=None): + super(TimelineReference, self).__init__() + self.change_id = change_id + self.id = id + self.url = url + + +class VariableGroupReference(Model): + """VariableGroupReference. + + :param id: + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(VariableGroupReference, self).__init__() + self.id = id + + +class WebApiConnectedServiceRef(Model): + """WebApiConnectedServiceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WebApiConnectedServiceRef, self).__init__() + self.id = id + self.url = url + + +class XamlBuildControllerReference(Model): + """XamlBuildControllerReference. + + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(XamlBuildControllerReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class BuildController(XamlBuildControllerReference): + """BuildController. + + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_date: The date the controller was created. + :type created_date: datetime + :param description: The description of the controller. + :type description: str + :param enabled: Indicates whether the controller is enabled. + :type enabled: bool + :param status: The status of the controller. + :type status: object + :param updated_date: The date the controller was last updated. + :type updated_date: datetime + :param uri: The controller's URI. + :type uri: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'status': {'key': 'status', 'type': 'object'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, created_date=None, description=None, enabled=None, status=None, updated_date=None, uri=None): + super(BuildController, self).__init__(id=id, name=name, url=url) + self._links = _links + self.created_date = created_date + self.description = description + self.enabled = enabled + self.status = status + self.updated_date = updated_date + self.uri = uri + + +class BuildDefinitionReference(DefinitionReference): + """BuildDefinitionReference. + + :param created_date: The date the definition was created + :type created_date: datetime + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param path: The path this definitions belongs to + :type path: str + :param project: The project. + :type project: :class:`TeamProjectReference ` + :param queue_status: If builds can be queued from this definition + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The Uri of the definition + :type uri: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: If this is a draft definition, it might have a parent + :type draft_of: :class:`DefinitionReference ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue which should be used for requests. + :type queue: :class:`AgentPoolQueue ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None): + super(BuildDefinitionReference, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) + self._links = _links + self.authored_by = authored_by + self.draft_of = draft_of + self.metrics = metrics + self.quality = quality + self.queue = queue + + +class BuildLog(BuildLogReference): + """BuildLog. + + :param id: The id of the log. + :type id: int + :param type: The type of the log location. + :type type: str + :param url: Full link to the log resource. + :type url: str + :param created_on: The date the log was created. + :type created_on: datetime + :param last_changed_on: The date the log was last changed. + :type last_changed_on: datetime + :param line_count: The number of lines in the log. + :type line_count: long + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'line_count': {'key': 'lineCount', 'type': 'long'} + } + + def __init__(self, id=None, type=None, url=None, created_on=None, last_changed_on=None, line_count=None): + super(BuildLog, self).__init__(id=id, type=type, url=url) + self.created_on = created_on + self.last_changed_on = last_changed_on + self.line_count = line_count + + +class BuildOptionDefinition(BuildOptionDefinitionReference): + """BuildOptionDefinition. + + :param id: + :type id: str + :param description: + :type description: str + :param groups: + :type groups: list of :class:`BuildOptionGroupDefinition ` + :param inputs: + :type inputs: list of :class:`BuildOptionInputDefinition ` + :param name: + :type name: str + :param ordinal: + :type ordinal: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[BuildOptionGroupDefinition]'}, + 'inputs': {'key': 'inputs', 'type': '[BuildOptionInputDefinition]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'ordinal': {'key': 'ordinal', 'type': 'int'} + } + + def __init__(self, id=None, description=None, groups=None, inputs=None, name=None, ordinal=None): + super(BuildOptionDefinition, self).__init__(id=id) + self.description = description + self.groups = groups + self.inputs = inputs + self.name = name + self.ordinal = ordinal + + +class Timeline(TimelineReference): + """Timeline. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param url: + :type url: str + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param records: + :type records: list of :class:`TimelineRecord ` + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'records': {'key': 'records', 'type': '[TimelineRecord]'} + } + + def __init__(self, change_id=None, id=None, url=None, last_changed_by=None, last_changed_on=None, records=None): + super(Timeline, self).__init__(change_id=change_id, id=id, url=url) + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.records = records + + +class VariableGroup(VariableGroupReference): + """VariableGroup. + + :param id: + :type id: int + :param description: + :type description: str + :param name: + :type name: str + :param type: + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} + } + + def __init__(self, id=None, description=None, name=None, type=None, variables=None): + super(VariableGroup, self).__init__(id=id) + self.description = description + self.name = name + self.type = type + self.variables = variables + + +class BuildDefinition(BuildDefinitionReference): + """BuildDefinition. + + :param created_date: The date the definition was created + :type created_date: datetime + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param path: The path this definitions belongs to + :type path: str + :param project: The project. + :type project: :class:`TeamProjectReference ` + :param queue_status: If builds can be queued from this definition + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The Uri of the definition + :type uri: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: If this is a draft definition, it might have a parent + :type draft_of: :class:`DefinitionReference ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue which should be used for requests. + :type queue: :class:`AgentPoolQueue ` + :param badge_enabled: Indicates whether badges are enabled for this definition + :type badge_enabled: bool + :param build_number_format: The build number format + :type build_number_format: str + :param comment: The comment entered when saving the definition + :type comment: str + :param demands: + :type demands: list of :class:`object ` + :param description: The description + :type description: str + :param drop_location: The drop location for the definition + :type drop_location: str + :param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition + :type job_authorization_scope: object + :param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition + :type job_cancel_timeout_in_minutes: int + :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition + :type job_timeout_in_minutes: int + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` + :param options: + :type options: list of :class:`BuildOption ` + :param process: The build process. + :type process: :class:`object ` + :param process_parameters: Process Parameters + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param repository: The repository + :type repository: :class:`BuildRepository ` + :param retention_rules: + :type retention_rules: list of :class:`RetentionPolicy ` + :param tags: + :type tags: list of str + :param triggers: + :type triggers: list of :class:`object ` + :param variable_groups: + :type variable_groups: list of :class:`VariableGroup ` + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, + 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, + 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, + 'options': {'key': 'options', 'type': '[BuildOption]'}, + 'process': {'key': 'process', 'type': 'object'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'repository': {'key': 'repository', 'type': 'BuildRepository'}, + 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): + super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, metrics=metrics, quality=quality, queue=queue) + self.badge_enabled = badge_enabled + self.build_number_format = build_number_format + self.comment = comment + self.demands = demands + self.description = description + self.drop_location = drop_location + self.job_authorization_scope = job_authorization_scope + self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes + self.job_timeout_in_minutes = job_timeout_in_minutes + self.latest_build = latest_build + self.latest_completed_build = latest_completed_build + self.options = options + self.process = process + self.process_parameters = process_parameters + self.properties = properties + self.repository = repository + self.retention_rules = retention_rules + self.tags = tags + self.triggers = triggers + self.variable_groups = variable_groups + self.variables = variables + + +class BuildDefinition3_2(BuildDefinitionReference): + """BuildDefinition3_2. + + :param created_date: The date the definition was created + :type created_date: datetime + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param path: The path this definitions belongs to + :type path: str + :param project: The project. + :type project: :class:`TeamProjectReference ` + :param queue_status: If builds can be queued from this definition + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The Uri of the definition + :type uri: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: If this is a draft definition, it might have a parent + :type draft_of: :class:`DefinitionReference ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue which should be used for requests. + :type queue: :class:`AgentPoolQueue ` + :param badge_enabled: Indicates whether badges are enabled for this definition + :type badge_enabled: bool + :param build: + :type build: list of :class:`BuildDefinitionStep ` + :param build_number_format: The build number format + :type build_number_format: str + :param comment: The comment entered when saving the definition + :type comment: str + :param demands: + :type demands: list of :class:`object ` + :param description: The description + :type description: str + :param drop_location: The drop location for the definition + :type drop_location: str + :param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition + :type job_authorization_scope: object + :param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition + :type job_cancel_timeout_in_minutes: int + :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition + :type job_timeout_in_minutes: int + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` + :param options: + :type options: list of :class:`BuildOption ` + :param process_parameters: Process Parameters + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param repository: The repository + :type repository: :class:`BuildRepository ` + :param retention_rules: + :type retention_rules: list of :class:`RetentionPolicy ` + :param tags: + :type tags: list of str + :param triggers: + :type triggers: list of :class:`object ` + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, + 'build': {'key': 'build', 'type': '[BuildDefinitionStep]'}, + 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, + 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, + 'options': {'key': 'options', 'type': '[BuildOption]'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'repository': {'key': 'repository', 'type': 'BuildRepository'}, + 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None, badge_enabled=None, build=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variables=None): + super(BuildDefinition3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, metrics=metrics, quality=quality, queue=queue) + self.badge_enabled = badge_enabled + self.build = build + self.build_number_format = build_number_format + self.comment = comment + self.demands = demands + self.description = description + self.drop_location = drop_location + self.job_authorization_scope = job_authorization_scope + self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes + self.job_timeout_in_minutes = job_timeout_in_minutes + self.latest_build = latest_build + self.latest_completed_build = latest_completed_build + self.options = options + self.process_parameters = process_parameters + self.properties = properties + self.repository = repository + self.retention_rules = retention_rules + self.tags = tags + self.triggers = triggers + self.variables = variables + + +__all__ = [ + 'AgentPoolQueue', + 'ArtifactResource', + 'Build', + 'BuildArtifact', + 'BuildBadge', + 'BuildDefinitionRevision', + 'BuildDefinitionStep', + 'BuildDefinitionTemplate', + 'BuildDefinitionTemplate3_2', + 'BuildDefinitionVariable', + 'BuildLogReference', + 'BuildMetric', + 'BuildOption', + 'BuildOptionDefinitionReference', + 'BuildOptionGroupDefinition', + 'BuildOptionInputDefinition', + 'BuildReportMetadata', + 'BuildRepository', + 'BuildRequestValidationResult', + 'BuildResourceUsage', + 'BuildSettings', + 'Change', + 'DataSourceBindingBase', + 'DefinitionReference', + 'Deployment', + 'Folder', + 'IdentityRef', + 'Issue', + 'JsonPatchOperation', + 'ProcessParameters', + 'ReferenceLinks', + 'ResourceRef', + 'RetentionPolicy', + 'TaskAgentPoolReference', + 'TaskDefinitionReference', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationPlanReference', + 'TaskReference', + 'TaskSourceDefinitionBase', + 'TeamProjectReference', + 'TimelineRecord', + 'TimelineReference', + 'VariableGroupReference', + 'WebApiConnectedServiceRef', + 'XamlBuildControllerReference', + 'BuildController', + 'BuildDefinitionReference', + 'BuildLog', + 'BuildOptionDefinition', + 'Timeline', + 'VariableGroup', + 'BuildDefinition', + 'BuildDefinition3_2', +] diff --git a/azure-devops/azure/devops/v4_0/contributions/__init__.py b/azure-devops/azure/devops/v4_0/contributions/__init__.py new file mode 100644 index 00000000..5f73fb39 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/contributions/__init__.py @@ -0,0 +1,36 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'ClientDataProviderQuery', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionNodeQuery', + 'ContributionNodeQueryResult', + 'ContributionPropertyDescription', + 'ContributionProviderDetails', + 'ContributionType', + 'DataProviderContext', + 'DataProviderExceptionDetails', + 'DataProviderQuery', + 'DataProviderResult', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionLicensing', + 'ExtensionManifest', + 'InstalledExtension', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'ResolvedDataProvider', + 'SerializedContributionNode', +] diff --git a/vsts/vsts/contributions/v4_0/contributions_client.py b/azure-devops/azure/devops/v4_0/contributions/contributions_client.py similarity index 98% rename from vsts/vsts/contributions/v4_0/contributions_client.py rename to azure-devops/azure/devops/v4_0/contributions/contributions_client.py index 706e937c..b60499b9 100644 --- a/vsts/vsts/contributions/v4_0/contributions_client.py +++ b/azure-devops/azure/devops/v4_0/contributions/contributions_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ContributionsClient(VssClient): +class ContributionsClient(Client): """Contributions :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/contributions/models.py b/azure-devops/azure/devops/v4_0/contributions/models.py new file mode 100644 index 00000000..721de8ae --- /dev/null +++ b/azure-devops/azure/devops/v4_0/contributions/models.py @@ -0,0 +1,734 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter class + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships + + +class ContributionNodeQuery(Model): + """ContributionNodeQuery. + + :param contribution_ids: The contribution ids of the nodes to find. + :type contribution_ids: list of str + :param include_provider_details: Indicator if contribution provider details should be included in the result. + :type include_provider_details: bool + :param query_options: Query options tpo be used when fetching ContributionNodes + :type query_options: object + """ + + _attribute_map = { + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, + 'query_options': {'key': 'queryOptions', 'type': 'object'} + } + + def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): + super(ContributionNodeQuery, self).__init__() + self.contribution_ids = contribution_ids + self.include_provider_details = include_provider_details + self.query_options = query_options + + +class ContributionNodeQueryResult(Model): + """ContributionNodeQueryResult. + + :param nodes: Map of contribution ids to corresponding node. + :type nodes: dict + :param provider_details: Map of provder ids to the corresponding provider details object. + :type provider_details: dict + """ + + _attribute_map = { + 'nodes': {'key': 'nodes', 'type': '{SerializedContributionNode}'}, + 'provider_details': {'key': 'providerDetails', 'type': '{ContributionProviderDetails}'} + } + + def __init__(self, nodes=None, provider_details=None): + super(ContributionNodeQueryResult, self).__init__() + self.nodes = nodes + self.provider_details = provider_details + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type + + +class ContributionProviderDetails(Model): + """ContributionProviderDetails. + + :param display_name: Friendly name for the provider. + :type display_name: str + :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes + :type name: str + :param properties: Properties associated with the provider + :type properties: dict + :param version: Version of contributions assoicated with this contribution provider. + :type version: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, display_name=None, name=None, properties=None, version=None): + super(ContributionProviderDetails, self).__init__() + self.display_name = display_name + self.name = name + self.properties = properties + self.version = version + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties + + +class DataProviderContext(Model): + """DataProviderContext. + + :param properties: Generic property bag that contains context-specific properties that data providers can use when populating their data dictionary + :type properties: dict + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, properties=None): + super(DataProviderContext, self).__init__() + self.properties = properties + + +class DataProviderExceptionDetails(Model): + """DataProviderExceptionDetails. + + :param exception_type: The type of the exception that was thrown. + :type exception_type: str + :param message: Message that is associated with the exception. + :type message: str + :param stack_trace: The StackTrace from the exception turned into a string. + :type stack_trace: str + """ + + _attribute_map = { + 'exception_type': {'key': 'exceptionType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'} + } + + def __init__(self, exception_type=None, message=None, stack_trace=None): + super(DataProviderExceptionDetails, self).__init__() + self.exception_type = exception_type + self.message = message + self.stack_trace = stack_trace + + +class DataProviderQuery(Model): + """DataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'} + } + + def __init__(self, context=None, contribution_ids=None): + super(DataProviderQuery, self).__init__() + self.context = context + self.contribution_ids = contribution_ids + + +class DataProviderResult(Model): + """DataProviderResult. + + :param client_providers: This is the set of data providers that were requested, but either they were defined as client providers, or as remote providers that failed and may be retried by the client. + :type client_providers: dict + :param data: Property bag of data keyed off of the data provider contribution id + :type data: dict + :param exceptions: Set of exceptions that occurred resolving the data providers. + :type exceptions: dict + :param resolved_providers: List of data providers resolved in the data-provider query + :type resolved_providers: list of :class:`ResolvedDataProvider ` + :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers + :type shared_data: dict + """ + + _attribute_map = { + 'client_providers': {'key': 'clientProviders', 'type': '{ClientDataProviderQuery}'}, + 'data': {'key': 'data', 'type': '{object}'}, + 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, + 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, + 'shared_data': {'key': 'sharedData', 'type': '{object}'} + } + + def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, shared_data=None): + super(DataProviderResult, self).__init__() + self.client_providers = client_providers + self.data = data + self.exceptions = exceptions + self.resolved_providers = resolved_providers + self.shared_data = shared_data + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.language = language + self.source = source + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.scopes = scopes + self.service_instance_type = service_instance_type + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id + + +class ResolvedDataProvider(Model): + """ResolvedDataProvider. + + :param duration: The total time the data provider took to resolve its data (in milliseconds) + :type duration: int + :param error: + :type error: str + :param id: + :type id: str + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'int'}, + 'error': {'key': 'error', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, duration=None, error=None, id=None): + super(ResolvedDataProvider, self).__init__() + self.duration = duration + self.error = error + self.id = id + + +class SerializedContributionNode(Model): + """SerializedContributionNode. + + :param children: List of ids for contributions which are children to the current contribution. + :type children: list of str + :param contribution: Contribution associated with this node. + :type contribution: :class:`Contribution ` + :param parents: List of ids for contributions which are parents to the current contribution. + :type parents: list of str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[str]'}, + 'contribution': {'key': 'contribution', 'type': 'Contribution'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, children=None, contribution=None, parents=None): + super(SerializedContributionNode, self).__init__() + self.children = children + self.contribution = contribution + self.parents = parents + + +class ClientDataProviderQuery(DataProviderQuery): + """ClientDataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. + :type query_service_instance_type: str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'query_service_instance_type': {'key': 'queryServiceInstanceType', 'type': 'str'} + } + + def __init__(self, context=None, contribution_ids=None, query_service_instance_type=None): + super(ClientDataProviderQuery, self).__init__(context=context, contribution_ids=contribution_ids) + self.query_service_instance_type = query_service_instance_type + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type + + +__all__ = [ + 'ContributionBase', + 'ContributionConstraint', + 'ContributionNodeQuery', + 'ContributionNodeQueryResult', + 'ContributionPropertyDescription', + 'ContributionProviderDetails', + 'ContributionType', + 'DataProviderContext', + 'DataProviderExceptionDetails', + 'DataProviderQuery', + 'DataProviderResult', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionLicensing', + 'ExtensionManifest', + 'InstalledExtension', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'ResolvedDataProvider', + 'SerializedContributionNode', + 'ClientDataProviderQuery', + 'Contribution', +] diff --git a/azure-devops/azure/devops/v4_0/core/__init__.py b/azure-devops/azure/devops/v4_0/core/__init__.py new file mode 100644 index 00000000..5eda166e --- /dev/null +++ b/azure-devops/azure/devops/v4_0/core/__init__.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'IdentityData', + 'IdentityRef', + 'JsonPatchOperation', + 'OperationReference', + 'Process', + 'ProcessReference', + 'ProjectInfo', + 'ProjectProperty', + 'Proxy', + 'ProxyAuthorization', + 'PublicKey', + 'ReferenceLinks', + 'TeamProject', + 'TeamProjectCollection', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'WebApiConnectedService', + 'WebApiConnectedServiceDetails', + 'WebApiConnectedServiceRef', + 'WebApiTeam', + 'WebApiTeamRef', +] diff --git a/vsts/vsts/core/v4_0/core_client.py b/azure-devops/azure/devops/v4_0/core/core_client.py similarity index 99% rename from vsts/vsts/core/v4_0/core_client.py rename to azure-devops/azure/devops/v4_0/core/core_client.py index d417c58d..deff49f6 100644 --- a/vsts/vsts/core/v4_0/core_client.py +++ b/azure-devops/azure/devops/v4_0/core/core_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class CoreClient(VssClient): +class CoreClient(Client): """Core :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/core/models.py b/azure-devops/azure/devops/v4_0/core/models.py new file mode 100644 index 00000000..f0232590 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/core/models.py @@ -0,0 +1,687 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityData(Model): + """IdentityData. + + :param identity_ids: + :type identity_ids: list of str + """ + + _attribute_map = { + 'identity_ids': {'key': 'identityIds', 'type': '[str]'} + } + + def __init__(self, identity_ids=None): + super(IdentityData, self).__init__() + self.identity_ids = identity_ids + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class OperationReference(Model): + """OperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.status = status + self.url = url + + +class ProcessReference(Model): + """ProcessReference. + + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(ProcessReference, self).__init__() + self.name = name + self.url = url + + +class ProjectInfo(Model): + """ProjectInfo. + + :param abbreviation: + :type abbreviation: str + :param description: + :type description: str + :param id: + :type id: str + :param last_update_time: + :type last_update_time: datetime + :param name: + :type name: str + :param properties: + :type properties: list of :class:`ProjectProperty ` + :param revision: Current revision of the project + :type revision: long + :param state: + :type state: object + :param uri: + :type uri: str + :param version: + :type version: long + :param visibility: + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '[ProjectProperty]'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'long'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, last_update_time=None, name=None, properties=None, revision=None, state=None, uri=None, version=None, visibility=None): + super(ProjectInfo, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.last_update_time = last_update_time + self.name = name + self.properties = properties + self.revision = revision + self.state = state + self.uri = uri + self.version = version + self.visibility = visibility + + +class ProjectProperty(Model): + """ProjectProperty. + + :param name: + :type name: str + :param value: + :type value: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, name=None, value=None): + super(ProjectProperty, self).__init__() + self.name = name + self.value = value + + +class Proxy(Model): + """Proxy. + + :param authorization: + :type authorization: :class:`ProxyAuthorization ` + :param description: This is a description string + :type description: str + :param friendly_name: The friendly name of the server + :type friendly_name: str + :param global_default: + :type global_default: bool + :param site: This is a string representation of the site that the proxy server is located in (e.g. "NA-WA-RED") + :type site: str + :param site_default: + :type site_default: bool + :param url: The URL of the proxy server + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'ProxyAuthorization'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'global_default': {'key': 'globalDefault', 'type': 'bool'}, + 'site': {'key': 'site', 'type': 'str'}, + 'site_default': {'key': 'siteDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, description=None, friendly_name=None, global_default=None, site=None, site_default=None, url=None): + super(Proxy, self).__init__() + self.authorization = authorization + self.description = description + self.friendly_name = friendly_name + self.global_default = global_default + self.site = site + self.site_default = site_default + self.url = url + + +class ProxyAuthorization(Model): + """ProxyAuthorization. + + :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. + :type authorization_url: str + :param client_id: Gets or sets the client identifier for this proxy. + :type client_id: str + :param identity: Gets or sets the user identity to authorize for on-prem. + :type identity: :class:`str ` + :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. + :type public_key: :class:`PublicKey ` + """ + + _attribute_map = { + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'PublicKey'} + } + + def __init__(self, authorization_url=None, client_id=None, identity=None, public_key=None): + super(ProxyAuthorization, self).__init__() + self.authorization_url = authorization_url + self.client_id = client_id + self.identity = identity + self.public_key = public_key + + +class PublicKey(Model): + """PublicKey. + + :param exponent: Gets or sets the exponent for the public key. + :type exponent: str + :param modulus: Gets or sets the modulus for the public key. + :type modulus: str + """ + + _attribute_map = { + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} + } + + def __init__(self, exponent=None, modulus=None): + super(PublicKey, self).__init__() + self.exponent = exponent + self.modulus = modulus + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class WebApiConnectedServiceRef(Model): + """WebApiConnectedServiceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WebApiConnectedServiceRef, self).__init__() + self.id = id + self.url = url + + +class WebApiTeamRef(Model): + """WebApiTeamRef. + + :param id: Team (Identity) Guid. A Team Foundation ID. + :type id: str + :param name: Team name + :type name: str + :param url: Team REST API Url + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(WebApiTeamRef, self).__init__() + self.id = id + self.name = name + self.url = url + + +class Process(ProcessReference): + """Process. + + :param name: + :type name: str + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: str + :param is_default: + :type is_default: bool + :param type: + :type type: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, name=None, url=None, _links=None, description=None, id=None, is_default=None, type=None): + super(Process, self).__init__(name=name, url=url) + self._links = _links + self.description = description + self.id = id + self.is_default = is_default + self.type = type + + +class TeamProject(TeamProjectReference): + """TeamProject. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param capabilities: Set of capabilities this project has (such as process template & version control). + :type capabilities: dict + :param default_team: The shallow ref to the default team. + :type default_team: :class:`WebApiTeamRef ` + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'capabilities': {'key': 'capabilities', 'type': '{{str}}'}, + 'default_team': {'key': 'defaultTeam', 'type': 'WebApiTeamRef'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): + super(TeamProject, self).__init__(abbreviation=abbreviation, description=description, id=id, name=name, revision=revision, state=state, url=url, visibility=visibility) + self._links = _links + self.capabilities = capabilities + self.default_team = default_team + + +class TeamProjectCollection(TeamProjectCollectionReference): + """TeamProjectCollection. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param description: Project collection description. + :type description: str + :param state: Project collection state. + :type state: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, description=None, state=None): + super(TeamProjectCollection, self).__init__(id=id, name=name, url=url) + self._links = _links + self.description = description + self.state = state + + +class WebApiConnectedService(WebApiConnectedServiceRef): + """WebApiConnectedService. + + :param url: + :type url: str + :param authenticated_by: The user who did the OAuth authentication to created this service + :type authenticated_by: :class:`IdentityRef ` + :param description: Extra description on the service. + :type description: str + :param friendly_name: Friendly Name of service connection + :type friendly_name: str + :param id: Id/Name of the connection service. For Ex: Subscription Id for Azure Connection + :type id: str + :param kind: The kind of service. + :type kind: str + :param project: The project associated with this service + :type project: :class:`TeamProjectReference ` + :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com + :type service_uri: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'authenticated_by': {'key': 'authenticatedBy', 'type': 'IdentityRef'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'service_uri': {'key': 'serviceUri', 'type': 'str'} + } + + def __init__(self, url=None, authenticated_by=None, description=None, friendly_name=None, id=None, kind=None, project=None, service_uri=None): + super(WebApiConnectedService, self).__init__(url=url) + self.authenticated_by = authenticated_by + self.description = description + self.friendly_name = friendly_name + self.id = id + self.kind = kind + self.project = project + self.service_uri = service_uri + + +class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): + """WebApiConnectedServiceDetails. + + :param id: + :type id: str + :param url: + :type url: str + :param connected_service_meta_data: Meta data for service connection + :type connected_service_meta_data: :class:`WebApiConnectedService ` + :param credentials_xml: Credential info + :type credentials_xml: str + :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com + :type end_point: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'connected_service_meta_data': {'key': 'connectedServiceMetaData', 'type': 'WebApiConnectedService'}, + 'credentials_xml': {'key': 'credentialsXml', 'type': 'str'}, + 'end_point': {'key': 'endPoint', 'type': 'str'} + } + + def __init__(self, id=None, url=None, connected_service_meta_data=None, credentials_xml=None, end_point=None): + super(WebApiConnectedServiceDetails, self).__init__(id=id, url=url) + self.connected_service_meta_data = connected_service_meta_data + self.credentials_xml = credentials_xml + self.end_point = end_point + + +class WebApiTeam(WebApiTeamRef): + """WebApiTeam. + + :param id: Team (Identity) Guid. A Team Foundation ID. + :type id: str + :param name: Team name + :type name: str + :param url: Team REST API Url + :type url: str + :param description: Team description + :type description: str + :param identity_url: Identity REST API Url to this team + :type identity_url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'identity_url': {'key': 'identityUrl', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None, description=None, identity_url=None): + super(WebApiTeam, self).__init__(id=id, name=name, url=url) + self.description = description + self.identity_url = identity_url + + +__all__ = [ + 'IdentityData', + 'IdentityRef', + 'JsonPatchOperation', + 'OperationReference', + 'ProcessReference', + 'ProjectInfo', + 'ProjectProperty', + 'Proxy', + 'ProxyAuthorization', + 'PublicKey', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'WebApiConnectedServiceRef', + 'WebApiTeamRef', + 'Process', + 'TeamProject', + 'TeamProjectCollection', + 'WebApiConnectedService', + 'WebApiConnectedServiceDetails', + 'WebApiTeam', +] diff --git a/vsts/vsts/customer_intelligence/v4_0/models/__init__.py b/azure-devops/azure/devops/v4_0/customer_intelligence/__init__.py similarity index 90% rename from vsts/vsts/customer_intelligence/v4_0/models/__init__.py rename to azure-devops/azure/devops/v4_0/customer_intelligence/__init__.py index 53e67765..fddb4faa 100644 --- a/vsts/vsts/customer_intelligence/v4_0/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/customer_intelligence/__init__.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .customer_intelligence_event import CustomerIntelligenceEvent +from .models import * __all__ = [ 'CustomerIntelligenceEvent', diff --git a/vsts/vsts/customer_intelligence/v4_0/customer_intelligence_client.py b/azure-devops/azure/devops/v4_0/customer_intelligence/customer_intelligence_client.py similarity index 94% rename from vsts/vsts/customer_intelligence/v4_0/customer_intelligence_client.py rename to azure-devops/azure/devops/v4_0/customer_intelligence/customer_intelligence_client.py index 059bbbcd..df2dbe47 100644 --- a/vsts/vsts/customer_intelligence/v4_0/customer_intelligence_client.py +++ b/azure-devops/azure/devops/v4_0/customer_intelligence/customer_intelligence_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class CustomerIntelligenceClient(VssClient): +class CustomerIntelligenceClient(Client): """CustomerIntelligence :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/customer_intelligence/v4_0/models/customer_intelligence_event.py b/azure-devops/azure/devops/v4_0/customer_intelligence/models.py similarity index 96% rename from vsts/vsts/customer_intelligence/v4_0/models/customer_intelligence_event.py rename to azure-devops/azure/devops/v4_0/customer_intelligence/models.py index c0cb660c..4d948e6a 100644 --- a/vsts/vsts/customer_intelligence/v4_0/models/customer_intelligence_event.py +++ b/azure-devops/azure/devops/v4_0/customer_intelligence/models.py @@ -31,3 +31,8 @@ def __init__(self, area=None, feature=None, properties=None): self.area = area self.feature = feature self.properties = properties + + +__all__ = [ + 'CustomerIntelligenceEvent', +] diff --git a/vsts/vsts/operations/v4_1/models/__init__.py b/azure-devops/azure/devops/v4_0/dashboard/__init__.py similarity index 59% rename from vsts/vsts/operations/v4_1/models/__init__.py rename to azure-devops/azure/devops/v4_0/dashboard/__init__.py index 40c4f1a7..bdce2a2c 100644 --- a/vsts/vsts/operations/v4_1/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/dashboard/__init__.py @@ -6,14 +6,24 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .operation import Operation -from .operation_reference import OperationReference -from .operation_result_reference import OperationResultReference -from .reference_links import ReferenceLinks +from .models import * __all__ = [ - 'Operation', - 'OperationReference', - 'OperationResultReference', + 'Dashboard', + 'DashboardGroup', + 'DashboardGroupEntry', + 'DashboardGroupEntryResponse', + 'DashboardResponse', + 'LightboxOptions', 'ReferenceLinks', + 'SemanticVersion', + 'TeamContext', + 'Widget', + 'WidgetMetadata', + 'WidgetMetadataResponse', + 'WidgetPosition', + 'WidgetResponse', + 'WidgetSize', + 'WidgetsVersionedList', + 'WidgetTypesResponse', ] diff --git a/vsts/vsts/dashboard/v4_0/dashboard_client.py b/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py similarity index 99% rename from vsts/vsts/dashboard/v4_0/dashboard_client.py rename to azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py index b5e6de48..687858fc 100644 --- a/vsts/vsts/dashboard/v4_0/dashboard_client.py +++ b/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class DashboardClient(VssClient): +class DashboardClient(Client): """Dashboard :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/dashboard/models.py b/azure-devops/azure/devops/v4_0/dashboard/models.py new file mode 100644 index 00000000..7f6d937c --- /dev/null +++ b/azure-devops/azure/devops/v4_0/dashboard/models.py @@ -0,0 +1,699 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Dashboard(Model): + """Dashboard. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(Dashboard, self).__init__() + self._links = _links + self.description = description + self.eTag = eTag + self.id = id + self.name = name + self.owner_id = owner_id + self.position = position + self.refresh_interval = refresh_interval + self.url = url + self.widgets = widgets + + +class DashboardGroup(Model): + """DashboardGroup. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param dashboard_entries: + :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :param permission: + :type permission: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'dashboard_entries': {'key': 'dashboardEntries', 'type': '[DashboardGroupEntry]'}, + 'permission': {'key': 'permission', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, dashboard_entries=None, permission=None, url=None): + super(DashboardGroup, self).__init__() + self._links = _links + self.dashboard_entries = dashboard_entries + self.permission = permission + self.url = url + + +class DashboardGroupEntry(Dashboard): + """DashboardGroupEntry. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntry, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) + + +class DashboardGroupEntryResponse(DashboardGroupEntry): + """DashboardGroupEntryResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntryResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) + + +class DashboardResponse(DashboardGroupEntry): + """DashboardResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param eTag: + :type eTag: str + :param id: + :type id: str + :param name: + :type name: str + :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: + :type position: int + :param refresh_interval: + :type refresh_interval: int + :param url: + :type url: str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) + + +class LightboxOptions(Model): + """LightboxOptions. + + :param height: Height of desired lightbox, in pixels + :type height: int + :param resizable: True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false. + :type resizable: bool + :param width: Width of desired lightbox, in pixels + :type width: int + """ + + _attribute_map = { + 'height': {'key': 'height', 'type': 'int'}, + 'resizable': {'key': 'resizable', 'type': 'bool'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, height=None, resizable=None, width=None): + super(LightboxOptions, self).__init__() + self.height = height + self.resizable = resizable + self.width = width + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class SemanticVersion(Model): + """SemanticVersion. + + :param major: Major version when you make incompatible API changes + :type major: int + :param minor: Minor version when you add functionality in a backwards-compatible manner + :type minor: int + :param patch: Patch version when you make backwards-compatible bug fixes + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(SemanticVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class Widget(Model): + """Widget. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(Widget, self).__init__() + self._links = _links + self.allowed_sizes = allowed_sizes + self.artifact_id = artifact_id + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.content_uri = content_uri + self.contribution_id = contribution_id + self.dashboard = dashboard + self.eTag = eTag + self.id = id + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.position = position + self.settings = settings + self.settings_version = settings_version + self.size = size + self.type_id = type_id + self.url = url + + +class WidgetMetadata(Model): + """WidgetMetadata. + + :param allowed_sizes: Sizes supported by the Widget. + :type allowed_sizes: list of :class:`WidgetSize ` + :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. + :type analytics_service_required: bool + :param catalog_icon_url: Resource for an icon in the widget catalog. + :type catalog_icon_url: str + :param catalog_info_url: Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted + :type catalog_info_url: str + :param configuration_contribution_id: The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_relative_id: str + :param configuration_required: Indicates if the widget requires configuration before being added to dashboard. + :type configuration_required: bool + :param content_uri: Uri for the WidgetFactory to get the widget + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget. + :type contribution_id: str + :param default_settings: Optional default settings to be copied into widget settings + :type default_settings: str + :param description: Summary information describing the widget. + :type description: str + :param is_enabled: Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context) + :type is_enabled: bool + :param is_name_configurable: Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest. + :type is_name_configurable: bool + :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. For V1, only "pull" model widgets can be provided from the catalog. + :type is_visible_from_catalog: bool + :param lightbox_options: Opt-in lightbox properties + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: Resource for a loading placeholder image on dashboard + :type loading_image_url: str + :param name: User facing name of the widget type. Each widget must use a unique value here. + :type name: str + :param publisher_name: Publisher Name of this kind of widget. + :type publisher_name: str + :param supported_scopes: Data contract required for the widget to function and to work in its container. + :type supported_scopes: list of WidgetScope + :param targets: Contribution target IDs + :type targets: list of str + :param type_id: Dev-facing id of this kind of widget. + :type type_id: str + """ + + _attribute_map = { + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'analytics_service_required': {'key': 'analyticsServiceRequired', 'type': 'bool'}, + 'catalog_icon_url': {'key': 'catalogIconUrl', 'type': 'str'}, + 'catalog_info_url': {'key': 'catalogInfoUrl', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'configuration_required': {'key': 'configurationRequired', 'type': 'bool'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'default_settings': {'key': 'defaultSettings', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'is_visible_from_catalog': {'key': 'isVisibleFromCatalog', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[object]'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, allowed_sizes=None, analytics_service_required=None, catalog_icon_url=None, catalog_info_url=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, configuration_required=None, content_uri=None, contribution_id=None, default_settings=None, description=None, is_enabled=None, is_name_configurable=None, is_visible_from_catalog=None, lightbox_options=None, loading_image_url=None, name=None, publisher_name=None, supported_scopes=None, targets=None, type_id=None): + super(WidgetMetadata, self).__init__() + self.allowed_sizes = allowed_sizes + self.analytics_service_required = analytics_service_required + self.catalog_icon_url = catalog_icon_url + self.catalog_info_url = catalog_info_url + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.configuration_required = configuration_required + self.content_uri = content_uri + self.contribution_id = contribution_id + self.default_settings = default_settings + self.description = description + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.is_visible_from_catalog = is_visible_from_catalog + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.publisher_name = publisher_name + self.supported_scopes = supported_scopes + self.targets = targets + self.type_id = type_id + + +class WidgetMetadataResponse(Model): + """WidgetMetadataResponse. + + :param uri: + :type uri: str + :param widget_metadata: + :type widget_metadata: :class:`WidgetMetadata ` + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_metadata': {'key': 'widgetMetadata', 'type': 'WidgetMetadata'} + } + + def __init__(self, uri=None, widget_metadata=None): + super(WidgetMetadataResponse, self).__init__() + self.uri = uri + self.widget_metadata = widget_metadata + + +class WidgetPosition(Model): + """WidgetPosition. + + :param column: + :type column: int + :param row: + :type row: int + """ + + _attribute_map = { + 'column': {'key': 'column', 'type': 'int'}, + 'row': {'key': 'row', 'type': 'int'} + } + + def __init__(self, column=None, row=None): + super(WidgetPosition, self).__init__() + self.column = column + self.row = row + + +class WidgetResponse(Widget): + """WidgetResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) + + +class WidgetSize(Model): + """WidgetSize. + + :param column_span: + :type column_span: int + :param row_span: + :type row_span: int + """ + + _attribute_map = { + 'column_span': {'key': 'columnSpan', 'type': 'int'}, + 'row_span': {'key': 'rowSpan', 'type': 'int'} + } + + def __init__(self, column_span=None, row_span=None): + super(WidgetSize, self).__init__() + self.column_span = column_span + self.row_span = row_span + + +class WidgetsVersionedList(Model): + """WidgetsVersionedList. + + :param eTag: + :type eTag: list of str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, eTag=None, widgets=None): + super(WidgetsVersionedList, self).__init__() + self.eTag = eTag + self.widgets = widgets + + +class WidgetTypesResponse(Model): + """WidgetTypesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param uri: + :type uri: str + :param widget_types: + :type widget_types: list of :class:`WidgetMetadata ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_types': {'key': 'widgetTypes', 'type': '[WidgetMetadata]'} + } + + def __init__(self, _links=None, uri=None, widget_types=None): + super(WidgetTypesResponse, self).__init__() + self._links = _links + self.uri = uri + self.widget_types = widget_types + + +__all__ = [ + 'Dashboard', + 'DashboardGroup', + 'DashboardGroupEntry', + 'DashboardGroupEntryResponse', + 'DashboardResponse', + 'LightboxOptions', + 'ReferenceLinks', + 'SemanticVersion', + 'TeamContext', + 'Widget', + 'WidgetMetadata', + 'WidgetMetadataResponse', + 'WidgetPosition', + 'WidgetResponse', + 'WidgetSize', + 'WidgetsVersionedList', + 'WidgetTypesResponse', +] diff --git a/azure-devops/azure/devops/v4_0/extension_management/__init__.py b/azure-devops/azure/devops/v4_0/extension_management/__init__.py new file mode 100644 index 00000000..f8520c44 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/extension_management/__init__.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOperationDisallowReason', + 'AcquisitionOptions', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionPropertyDescription', + 'ContributionType', + 'ExtensionAcquisitionRequest', + 'ExtensionAuthorization', + 'ExtensionBadge', + 'ExtensionDataCollection', + 'ExtensionDataCollectionQuery', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionIdentifier', + 'ExtensionLicensing', + 'ExtensionManifest', + 'ExtensionPolicy', + 'ExtensionRequest', + 'ExtensionShare', + 'ExtensionState', + 'ExtensionStatistic', + 'ExtensionVersion', + 'IdentityRef', + 'InstallationTarget', + 'InstalledExtension', + 'InstalledExtensionQuery', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'PublishedExtension', + 'PublisherFacts', + 'RequestedExtension', + 'UserExtensionPolicy', +] diff --git a/vsts/vsts/extension_management/v4_0/extension_management_client.py b/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py similarity index 99% rename from vsts/vsts/extension_management/v4_0/extension_management_client.py rename to azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py index 84235ae0..db00f3e8 100644 --- a/vsts/vsts/extension_management/v4_0/extension_management_client.py +++ b/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ExtensionManagementClient(VssClient): +class ExtensionManagementClient(Client): """ExtensionManagement :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/extension_management/models.py b/azure-devops/azure/devops/v4_0/extension_management/models.py new file mode 100644 index 00000000..f9b5b4f9 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/extension_management/models.py @@ -0,0 +1,1181 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + :param reasons: List of reasons indicating why the operation is not allowed. + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reasons': {'key': 'reasons', 'type': '[AcquisitionOperationDisallowReason]'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None, reasons=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason + self.reasons = reasons + + +class AcquisitionOperationDisallowReason(Model): + """AcquisitionOperationDisallowReason. + + :param message: User-friendly message clarifying the reason for disallowance + :type message: str + :param type: Type of reason for disallowance - AlreadyInstalled, UnresolvedDemand, etc. + :type type: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, message=None, type=None): + super(AcquisitionOperationDisallowReason, self).__init__() + self.message = message + self.type = type + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.target = target + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter class + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity + + +class ExtensionAuthorization(Model): + """ExtensionAuthorization. + + :param id: + :type id: str + :param scopes: + :type scopes: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[str]'} + } + + def __init__(self, id=None, scopes=None): + super(ExtensionAuthorization, self).__init__() + self.id = id + self.scopes = scopes + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link + + +class ExtensionDataCollection(Model): + """ExtensionDataCollection. + + :param collection_name: The name of the collection + :type collection_name: str + :param documents: A list of documents belonging to the collection + :type documents: list of :class:`object ` + :param scope_type: The type of the collection's scope, such as Default or User + :type scope_type: str + :param scope_value: The value of the collection's scope, such as Current or Me + :type scope_value: str + """ + + _attribute_map = { + 'collection_name': {'key': 'collectionName', 'type': 'str'}, + 'documents': {'key': 'documents', 'type': '[object]'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'scope_value': {'key': 'scopeValue', 'type': 'str'} + } + + def __init__(self, collection_name=None, documents=None, scope_type=None, scope_value=None): + super(ExtensionDataCollection, self).__init__() + self.collection_name = collection_name + self.documents = documents + self.scope_type = scope_type + self.scope_value = scope_value + + +class ExtensionDataCollectionQuery(Model): + """ExtensionDataCollectionQuery. + + :param collections: A list of collections to query + :type collections: list of :class:`ExtensionDataCollection ` + """ + + _attribute_map = { + 'collections': {'key': 'collections', 'type': '[ExtensionDataCollection]'} + } + + def __init__(self, collections=None): + super(ExtensionDataCollectionQuery, self).__init__() + self.collections = collections + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.language = language + self.source = source + + +class ExtensionIdentifier(Model): + """ExtensionIdentifier. + + :param extension_name: The ExtensionName component part of the fully qualified ExtensionIdentifier + :type extension_name: str + :param publisher_name: The PublisherName component part of the fully qualified ExtensionIdentifier + :type publisher_name: str + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, extension_name=None, publisher_name=None): + super(ExtensionIdentifier, self).__init__() + self.extension_name = extension_name + self.publisher_name = publisher_name + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.scopes = scopes + self.service_instance_type = service_instance_type + + +class ExtensionPolicy(Model): + """ExtensionPolicy. + + :param install: Permissions on 'Install' operation + :type install: object + :param request: Permission on 'Request' operation + :type request: object + """ + + _attribute_map = { + 'install': {'key': 'install', 'type': 'object'}, + 'request': {'key': 'request', 'type': 'object'} + } + + def __init__(self, install=None, request=None): + super(ExtensionPolicy, self).__init__() + self.install = install + self.request = request + + +class ExtensionRequest(Model): + """ExtensionRequest. + + :param reject_message: Required message supplied if the request is rejected + :type reject_message: str + :param request_date: Date at which the request was made + :type request_date: datetime + :param requested_by: Represents the user who made the request + :type requested_by: :class:`IdentityRef ` + :param request_message: Optional message supplied by the requester justifying the request + :type request_message: str + :param request_state: Represents the state of the request + :type request_state: object + :param resolve_date: Date at which the request was resolved + :type resolve_date: datetime + :param resolved_by: Represents the user who resolved the request + :type resolved_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'reject_message': {'key': 'rejectMessage', 'type': 'str'}, + 'request_date': {'key': 'requestDate', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_message': {'key': 'requestMessage', 'type': 'str'}, + 'request_state': {'key': 'requestState', 'type': 'object'}, + 'resolve_date': {'key': 'resolveDate', 'type': 'iso-8601'}, + 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'} + } + + def __init__(self, reject_message=None, request_date=None, requested_by=None, request_message=None, request_state=None, resolve_date=None, resolved_by=None): + super(ExtensionRequest, self).__init__() + self.reject_message = reject_message + self.request_date = request_date + self.requested_by = requested_by + self.request_message = request_message + self.request_state = request_state + self.resolve_date = resolve_date + self.resolved_by = resolved_by + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: float + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class InstallationTarget(Model): + """InstallationTarget. + + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.target = target + self.target_version = target_version + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version + + +class InstalledExtensionQuery(Model): + """InstalledExtensionQuery. + + :param asset_types: + :type asset_types: list of str + :param monikers: + :type monikers: list of :class:`ExtensionIdentifier ` + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'monikers': {'key': 'monikers', 'type': '[ExtensionIdentifier]'} + } + + def __init__(self, asset_types=None, monikers=None): + super(InstalledExtensionQuery, self).__init__() + self.asset_types = asset_types + self.monikers = monikers + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name + + +class RequestedExtension(Model): + """RequestedExtension. + + :param extension_name: The unique name of the extension + :type extension_name: str + :param extension_requests: A list of each request for the extension + :type extension_requests: list of :class:`ExtensionRequest ` + :param publisher_display_name: DisplayName of the publisher that owns the extension being published. + :type publisher_display_name: str + :param publisher_name: Represents the Publisher of the requested extension + :type publisher_name: str + :param request_count: The total number of requests for an extension + :type request_count: int + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'extension_requests': {'key': 'extensionRequests', 'type': '[ExtensionRequest]'}, + 'publisher_display_name': {'key': 'publisherDisplayName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'request_count': {'key': 'requestCount', 'type': 'int'} + } + + def __init__(self, extension_name=None, extension_requests=None, publisher_display_name=None, publisher_name=None, request_count=None): + super(RequestedExtension, self).__init__() + self.extension_name = extension_name + self.extension_requests = extension_requests + self.publisher_display_name = publisher_display_name + self.publisher_name = publisher_name + self.request_count = request_count + + +class UserExtensionPolicy(Model): + """UserExtensionPolicy. + + :param display_name: User display name that this policy refers to + :type display_name: str + :param permissions: The extension policy applied to the user + :type permissions: :class:`ExtensionPolicy ` + :param user_id: User id that this policy refers to + :type user_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'permissions': {'key': 'permissions', 'type': 'ExtensionPolicy'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, display_name=None, permissions=None, user_id=None): + super(UserExtensionPolicy, self).__init__() + self.display_name = display_name + self.permissions = permissions + self.user_id = user_id + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type + + +class ExtensionState(InstalledExtensionState): + """ExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + :param extension_name: + :type extension_name: str + :param last_version_check: The time at which the version was last checked + :type last_version_check: datetime + :param publisher_name: + :type publisher_name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'last_version_check': {'key': 'lastVersionCheck', 'type': 'iso-8601'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None, extension_name=None, last_version_check=None, publisher_name=None, version=None): + super(ExtensionState, self).__init__(flags=flags, installation_issues=installation_issues, last_updated=last_updated) + self.extension_name = extension_name + self.last_version_check = last_version_check + self.publisher_name = publisher_name + self.version = version + + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOperationDisallowReason', + 'AcquisitionOptions', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionPropertyDescription', + 'ContributionType', + 'ExtensionAcquisitionRequest', + 'ExtensionAuthorization', + 'ExtensionBadge', + 'ExtensionDataCollection', + 'ExtensionDataCollectionQuery', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionIdentifier', + 'ExtensionLicensing', + 'ExtensionManifest', + 'ExtensionPolicy', + 'ExtensionRequest', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionVersion', + 'IdentityRef', + 'InstallationTarget', + 'InstalledExtension', + 'InstalledExtensionQuery', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'PublishedExtension', + 'PublisherFacts', + 'RequestedExtension', + 'UserExtensionPolicy', + 'Contribution', + 'ExtensionState', +] diff --git a/vsts/vsts/client_trace/v4_1/models/__init__.py b/azure-devops/azure/devops/v4_0/feature_availability/__init__.py similarity index 88% rename from vsts/vsts/client_trace/v4_1/models/__init__.py rename to azure-devops/azure/devops/v4_0/feature_availability/__init__.py index 45a494e7..a43f24e2 100644 --- a/vsts/vsts/client_trace/v4_1/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/feature_availability/__init__.py @@ -6,8 +6,9 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .client_trace_event import ClientTraceEvent +from .models import * __all__ = [ - 'ClientTraceEvent', + 'FeatureFlag', + 'FeatureFlagPatch', ] diff --git a/vsts/vsts/feature_availability/v4_0/feature_availability_client.py b/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py similarity index 98% rename from vsts/vsts/feature_availability/v4_0/feature_availability_client.py rename to azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py index 36c4dc30..1ad94057 100644 --- a/vsts/vsts/feature_availability/v4_0/feature_availability_client.py +++ b/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class FeatureAvailabilityClient(VssClient): +class FeatureAvailabilityClient(Client): """FeatureAvailability :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/feature_availability/v4_0/models/feature_flag.py b/azure-devops/azure/devops/v4_0/feature_availability/models.py similarity index 81% rename from vsts/vsts/feature_availability/v4_0/models/feature_flag.py rename to azure-devops/azure/devops/v4_0/feature_availability/models.py index 96a70eab..72e9d3ab 100644 --- a/vsts/vsts/feature_availability/v4_0/models/feature_flag.py +++ b/azure-devops/azure/devops/v4_0/feature_availability/models.py @@ -39,3 +39,25 @@ def __init__(self, description=None, effective_state=None, explicit_state=None, self.explicit_state = explicit_state self.name = name self.uri = uri + + +class FeatureFlagPatch(Model): + """FeatureFlagPatch. + + :param state: + :type state: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, state=None): + super(FeatureFlagPatch, self).__init__() + self.state = state + + +__all__ = [ + 'FeatureFlag', + 'FeatureFlagPatch', +] diff --git a/vsts/vsts/operations/v4_0/models/__init__.py b/azure-devops/azure/devops/v4_0/feature_management/__init__.py similarity index 75% rename from vsts/vsts/operations/v4_0/models/__init__.py rename to azure-devops/azure/devops/v4_0/feature_management/__init__.py index 04d3e0dc..f6c045d3 100644 --- a/vsts/vsts/operations/v4_0/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/feature_management/__init__.py @@ -6,12 +6,13 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .operation import Operation -from .operation_reference import OperationReference -from .reference_links import ReferenceLinks +from .models import * __all__ = [ - 'Operation', - 'OperationReference', + 'ContributedFeature', + 'ContributedFeatureSettingScope', + 'ContributedFeatureState', + 'ContributedFeatureStateQuery', + 'ContributedFeatureValueRule', 'ReferenceLinks', ] diff --git a/vsts/vsts/feature_management/v4_0/feature_management_client.py b/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py similarity index 99% rename from vsts/vsts/feature_management/v4_0/feature_management_client.py rename to azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py index 9d2f8862..80c3d362 100644 --- a/vsts/vsts/feature_management/v4_0/feature_management_client.py +++ b/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class FeatureManagementClient(VssClient): +class FeatureManagementClient(Client): """FeatureManagement :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/feature_management/models.py b/azure-devops/azure/devops/v4_0/feature_management/models.py new file mode 100644 index 00000000..185e6ef4 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/feature_management/models.py @@ -0,0 +1,171 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeature(Model): + """ContributedFeature. + + :param _links: Named links describing the feature + :type _links: :class:`ReferenceLinks ` + :param default_state: If true, the feature is enabled unless overridden at some scope + :type default_state: bool + :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :param description: The description of the feature + :type description: str + :param id: The full contribution id of the feature + :type id: str + :param name: The friendly name of the feature + :type name: str + :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type override_rules: list of :class:`ContributedFeatureValueRule ` + :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature + :type scopes: list of :class:`ContributedFeatureSettingScope ` + :param service_instance_type: The service instance id of the service that owns this feature + :type service_instance_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_state': {'key': 'defaultState', 'type': 'bool'}, + 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, + 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): + super(ContributedFeature, self).__init__() + self._links = _links + self.default_state = default_state + self.default_value_rules = default_value_rules + self.description = description + self.id = id + self.name = name + self.override_rules = override_rules + self.scopes = scopes + self.service_instance_type = service_instance_type + + +class ContributedFeatureSettingScope(Model): + """ContributedFeatureSettingScope. + + :param setting_scope: The name of the settings scope to use when reading/writing the setting + :type setting_scope: str + :param user_scoped: Whether this is a user-scope or this is a host-wide (all users) setting + :type user_scoped: bool + """ + + _attribute_map = { + 'setting_scope': {'key': 'settingScope', 'type': 'str'}, + 'user_scoped': {'key': 'userScoped', 'type': 'bool'} + } + + def __init__(self, setting_scope=None, user_scoped=None): + super(ContributedFeatureSettingScope, self).__init__() + self.setting_scope = setting_scope + self.user_scoped = user_scoped + + +class ContributedFeatureState(Model): + """ContributedFeatureState. + + :param feature_id: The full contribution id of the feature + :type feature_id: str + :param scope: The scope at which this state applies + :type scope: :class:`ContributedFeatureSettingScope ` + :param state: The current state of this feature + :type state: object + """ + + _attribute_map = { + 'feature_id': {'key': 'featureId', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'ContributedFeatureSettingScope'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, feature_id=None, scope=None, state=None): + super(ContributedFeatureState, self).__init__() + self.feature_id = feature_id + self.scope = scope + self.state = state + + +class ContributedFeatureStateQuery(Model): + """ContributedFeatureStateQuery. + + :param feature_ids: The list of feature ids to query + :type feature_ids: list of str + :param feature_states: The query result containing the current feature states for each of the queried feature ids + :type feature_states: dict + :param scope_values: A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes) + :type scope_values: dict + """ + + _attribute_map = { + 'feature_ids': {'key': 'featureIds', 'type': '[str]'}, + 'feature_states': {'key': 'featureStates', 'type': '{ContributedFeatureState}'}, + 'scope_values': {'key': 'scopeValues', 'type': '{str}'} + } + + def __init__(self, feature_ids=None, feature_states=None, scope_values=None): + super(ContributedFeatureStateQuery, self).__init__() + self.feature_ids = feature_ids + self.feature_states = feature_states + self.scope_values = scope_values + + +class ContributedFeatureValueRule(Model): + """ContributedFeatureValueRule. + + :param name: Name of the IContributedFeatureValuePlugin to run + :type name: str + :param properties: Properties to feed to the IContributedFeatureValuePlugin + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureValueRule, self).__init__() + self.name = name + self.properties = properties + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +__all__ = [ + 'ContributedFeature', + 'ContributedFeatureSettingScope', + 'ContributedFeatureState', + 'ContributedFeatureStateQuery', + 'ContributedFeatureValueRule', + 'ReferenceLinks', +] diff --git a/vsts/vsts/file_container/v4_0/models/__init__.py b/azure-devops/azure/devops/v4_0/file_container/__init__.py similarity index 86% rename from vsts/vsts/file_container/v4_0/models/__init__.py rename to azure-devops/azure/devops/v4_0/file_container/__init__.py index 09bce04e..e351ffa8 100644 --- a/vsts/vsts/file_container/v4_0/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/file_container/__init__.py @@ -6,8 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .file_container import FileContainer -from .file_container_item import FileContainerItem +from .models import * __all__ = [ 'FileContainer', diff --git a/vsts/vsts/file_container/v4_0/file_container_client.py b/azure-devops/azure/devops/v4_0/file_container/file_container_client.py similarity index 98% rename from vsts/vsts/file_container/v4_0/file_container_client.py rename to azure-devops/azure/devops/v4_0/file_container/file_container_client.py index b9b21178..0bc3b5b8 100644 --- a/vsts/vsts/file_container/v4_0/file_container_client.py +++ b/azure-devops/azure/devops/v4_0/file_container/file_container_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class FileContainerClient(VssClient): +class FileContainerClient(Client): """FileContainer :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/file_container/v4_1/models/file_container_item.py b/azure-devops/azure/devops/v4_0/file_container/models.py similarity index 59% rename from vsts/vsts/file_container/v4_1/models/file_container_item.py rename to azure-devops/azure/devops/v4_0/file_container/models.py index 5847395c..4434ade0 100644 --- a/vsts/vsts/file_container/v4_1/models/file_container_item.py +++ b/azure-devops/azure/devops/v4_0/file_container/models.py @@ -9,6 +9,74 @@ from msrest.serialization import Model +class FileContainer(Model): + """FileContainer. + + :param artifact_uri: Uri of the artifact associated with the container. + :type artifact_uri: str + :param content_location: Download Url for the content of this item. + :type content_location: str + :param created_by: Owner. + :type created_by: str + :param date_created: Creation date. + :type date_created: datetime + :param description: Description. + :type description: str + :param id: Id. + :type id: long + :param item_location: Location of the item resource. + :type item_location: str + :param locator_path: ItemStore Locator for this container. + :type locator_path: str + :param name: Name. + :type name: str + :param options: Options the container can have. + :type options: object + :param scope_identifier: Project Id. + :type scope_identifier: str + :param security_token: Security token of the artifact associated with the container. + :type security_token: str + :param signing_key_id: Identifier of the optional encryption key. + :type signing_key_id: str + :param size: Total size of the files in bytes. + :type size: long + """ + + _attribute_map = { + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'long'}, + 'item_location': {'key': 'itemLocation', 'type': 'str'}, + 'locator_path': {'key': 'locatorPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': 'object'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'security_token': {'key': 'securityToken', 'type': 'str'}, + 'signing_key_id': {'key': 'signingKeyId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'} + } + + def __init__(self, artifact_uri=None, content_location=None, created_by=None, date_created=None, description=None, id=None, item_location=None, locator_path=None, name=None, options=None, scope_identifier=None, security_token=None, signing_key_id=None, size=None): + super(FileContainer, self).__init__() + self.artifact_uri = artifact_uri + self.content_location = content_location + self.created_by = created_by + self.date_created = date_created + self.description = description + self.id = id + self.item_location = item_location + self.locator_path = locator_path + self.name = name + self.options = options + self.scope_identifier = scope_identifier + self.security_token = security_token + self.signing_key_id = signing_key_id + self.size = size + + class FileContainerItem(Model): """FileContainerItem. @@ -91,3 +159,9 @@ def __init__(self, container_id=None, content_id=None, content_location=None, cr self.scope_identifier = scope_identifier self.status = status self.ticket = ticket + + +__all__ = [ + 'FileContainer', + 'FileContainerItem', +] diff --git a/azure-devops/azure/devops/v4_0/gallery/__init__.py b/azure-devops/azure/devops/v4_0/gallery/__init__.py new file mode 100644 index 00000000..912778a3 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/gallery/__init__.py @@ -0,0 +1,64 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOptions', + 'Answers', + 'AssetDetails', + 'AzurePublisher', + 'AzureRestApiRequestModel', + 'CategoriesResult', + 'CategoryLanguageTitle', + 'Concern', + 'EventCounts', + 'ExtensionAcquisitionRequest', + 'ExtensionBadge', + 'ExtensionCategory', + 'ExtensionDailyStat', + 'ExtensionDailyStats', + 'ExtensionEvent', + 'ExtensionEvents', + 'ExtensionFile', + 'ExtensionFilterResult', + 'ExtensionFilterResultMetadata', + 'ExtensionPackage', + 'ExtensionQuery', + 'ExtensionQueryResult', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionStatisticUpdate', + 'ExtensionVersion', + 'FilterCriteria', + 'InstallationTarget', + 'MetadataItem', + 'NotificationsData', + 'ProductCategoriesResult', + 'ProductCategory', + 'PublishedExtension', + 'Publisher', + 'PublisherFacts', + 'PublisherFilterResult', + 'PublisherQuery', + 'PublisherQueryResult', + 'QnAItem', + 'QueryFilter', + 'Question', + 'QuestionsResult', + 'RatingCountPerRating', + 'Response', + 'Review', + 'ReviewPatch', + 'ReviewReply', + 'ReviewsResult', + 'ReviewSummary', + 'UserIdentityRef', + 'UserReportedConcern', +] diff --git a/vsts/vsts/gallery/v4_0/gallery_client.py b/azure-devops/azure/devops/v4_0/gallery/gallery_client.py similarity index 99% rename from vsts/vsts/gallery/v4_0/gallery_client.py rename to azure-devops/azure/devops/v4_0/gallery/gallery_client.py index 89d3d43c..06e93f3c 100644 --- a/vsts/vsts/gallery/v4_0/gallery_client.py +++ b/azure-devops/azure/devops/v4_0/gallery/gallery_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class GalleryClient(VssClient): +class GalleryClient(Client): """Gallery :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/gallery/models.py b/azure-devops/azure/devops/v4_0/gallery/models.py new file mode 100644 index 00000000..4ae12976 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/gallery/models.py @@ -0,0 +1,1555 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.target = target + + +class Answers(Model): + """Answers. + + :param vSMarketplace_extension_name: Gets or sets the vs marketplace extension name + :type vSMarketplace_extension_name: str + :param vSMarketplace_publisher_name: Gets or sets the vs marketplace publsiher name + :type vSMarketplace_publisher_name: str + """ + + _attribute_map = { + 'vSMarketplace_extension_name': {'key': 'vSMarketplaceExtensionName', 'type': 'str'}, + 'vSMarketplace_publisher_name': {'key': 'vSMarketplacePublisherName', 'type': 'str'} + } + + def __init__(self, vSMarketplace_extension_name=None, vSMarketplace_publisher_name=None): + super(Answers, self).__init__() + self.vSMarketplace_extension_name = vSMarketplace_extension_name + self.vSMarketplace_publisher_name = vSMarketplace_publisher_name + + +class AssetDetails(Model): + """AssetDetails. + + :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name + :type answers: :class:`Answers ` + :param publisher_natural_identifier: Gets or sets the VS publisher Id + :type publisher_natural_identifier: str + """ + + _attribute_map = { + 'answers': {'key': 'answers', 'type': 'Answers'}, + 'publisher_natural_identifier': {'key': 'publisherNaturalIdentifier', 'type': 'str'} + } + + def __init__(self, answers=None, publisher_natural_identifier=None): + super(AssetDetails, self).__init__() + self.answers = answers + self.publisher_natural_identifier = publisher_natural_identifier + + +class AzurePublisher(Model): + """AzurePublisher. + + :param azure_publisher_id: + :type azure_publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'azure_publisher_id': {'key': 'azurePublisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, azure_publisher_id=None, publisher_name=None): + super(AzurePublisher, self).__init__() + self.azure_publisher_id = azure_publisher_id + self.publisher_name = publisher_name + + +class AzureRestApiRequestModel(Model): + """AzureRestApiRequestModel. + + :param asset_details: Gets or sets the Asset details + :type asset_details: :class:`AssetDetails ` + :param asset_id: Gets or sets the asset id + :type asset_id: str + :param asset_version: Gets or sets the asset version + :type asset_version: long + :param customer_support_email: Gets or sets the customer support email + :type customer_support_email: str + :param integration_contact_email: Gets or sets the integration contact email + :type integration_contact_email: str + :param operation: Gets or sets the asset version + :type operation: str + :param plan_id: Gets or sets the plan identifier if any. + :type plan_id: str + :param publisher_id: Gets or sets the publisher id + :type publisher_id: str + :param type: Gets or sets the resource type + :type type: str + """ + + _attribute_map = { + 'asset_details': {'key': 'assetDetails', 'type': 'AssetDetails'}, + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'asset_version': {'key': 'assetVersion', 'type': 'long'}, + 'customer_support_email': {'key': 'customerSupportEmail', 'type': 'str'}, + 'integration_contact_email': {'key': 'integrationContactEmail', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, asset_details=None, asset_id=None, asset_version=None, customer_support_email=None, integration_contact_email=None, operation=None, plan_id=None, publisher_id=None, type=None): + super(AzureRestApiRequestModel, self).__init__() + self.asset_details = asset_details + self.asset_id = asset_id + self.asset_version = asset_version + self.customer_support_email = customer_support_email + self.integration_contact_email = integration_contact_email + self.operation = operation + self.plan_id = plan_id + self.publisher_id = publisher_id + self.type = type + + +class CategoriesResult(Model): + """CategoriesResult. + + :param categories: + :type categories: list of :class:`ExtensionCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ExtensionCategory]'} + } + + def __init__(self, categories=None): + super(CategoriesResult, self).__init__() + self.categories = categories + + +class CategoryLanguageTitle(Model): + """CategoryLanguageTitle. + + :param lang: The language for which the title is applicable + :type lang: str + :param lcid: The language culture id of the lang parameter + :type lcid: int + :param title: Actual title to be shown on the UI + :type title: str + """ + + _attribute_map = { + 'lang': {'key': 'lang', 'type': 'str'}, + 'lcid': {'key': 'lcid', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, lang=None, lcid=None, title=None): + super(CategoryLanguageTitle, self).__init__() + self.lang = lang + self.lcid = lcid + self.title = title + + +class EventCounts(Model): + """EventCounts. + + :param average_rating: Average rating on the day for extension + :type average_rating: int + :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) + :type buy_count: int + :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) + :type connected_buy_count: int + :param connected_install_count: Number of times the extension was installed in connected scenario (applies only to VSTS extensions) + :type connected_install_count: int + :param install_count: Number of times the extension was installed + :type install_count: long + :param try_count: Number of times the extension was installed as a trial (applies only to VSTS extensions) + :type try_count: int + :param uninstall_count: Number of times the extension was uninstalled (applies only to VSTS extensions) + :type uninstall_count: int + :param web_download_count: Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs) + :type web_download_count: long + :param web_page_views: Number of detail page views + :type web_page_views: long + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'int'}, + 'buy_count': {'key': 'buyCount', 'type': 'int'}, + 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, + 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, + 'install_count': {'key': 'installCount', 'type': 'long'}, + 'try_count': {'key': 'tryCount', 'type': 'int'}, + 'uninstall_count': {'key': 'uninstallCount', 'type': 'int'}, + 'web_download_count': {'key': 'webDownloadCount', 'type': 'long'}, + 'web_page_views': {'key': 'webPageViews', 'type': 'long'} + } + + def __init__(self, average_rating=None, buy_count=None, connected_buy_count=None, connected_install_count=None, install_count=None, try_count=None, uninstall_count=None, web_download_count=None, web_page_views=None): + super(EventCounts, self).__init__() + self.average_rating = average_rating + self.buy_count = buy_count + self.connected_buy_count = connected_buy_count + self.connected_install_count = connected_install_count + self.install_count = install_count + self.try_count = try_count + self.uninstall_count = uninstall_count + self.web_download_count = web_download_count + self.web_page_views = web_page_views + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id + :type targets: list of str + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'}, + 'targets': {'key': 'targets', 'type': '[str]'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None, targets=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity + self.targets = targets + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link + + +class ExtensionCategory(Model): + """ExtensionCategory. + + :param associated_products: The name of the products with which this category is associated to. + :type associated_products: list of str + :param category_id: + :type category_id: int + :param category_name: This is the internal name for a category + :type category_name: str + :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles + :type language: str + :param language_titles: The list of all the titles of this category in various languages + :type language_titles: list of :class:`CategoryLanguageTitle ` + :param parent_category_name: This is the internal name of the parent if this is associated with a parent + :type parent_category_name: str + """ + + _attribute_map = { + 'associated_products': {'key': 'associatedProducts', 'type': '[str]'}, + 'category_id': {'key': 'categoryId', 'type': 'int'}, + 'category_name': {'key': 'categoryName', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'language_titles': {'key': 'languageTitles', 'type': '[CategoryLanguageTitle]'}, + 'parent_category_name': {'key': 'parentCategoryName', 'type': 'str'} + } + + def __init__(self, associated_products=None, category_id=None, category_name=None, language=None, language_titles=None, parent_category_name=None): + super(ExtensionCategory, self).__init__() + self.associated_products = associated_products + self.category_id = category_id + self.category_name = category_name + self.language = language + self.language_titles = language_titles + self.parent_category_name = parent_category_name + + +class ExtensionDailyStat(Model): + """ExtensionDailyStat. + + :param counts: Stores the event counts + :type counts: :class:`EventCounts ` + :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. + :type extended_stats: dict + :param statistic_date: Timestamp of this data point + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'counts': {'key': 'counts', 'type': 'EventCounts'}, + 'extended_stats': {'key': 'extendedStats', 'type': '{object}'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, counts=None, extended_stats=None, statistic_date=None, version=None): + super(ExtensionDailyStat, self).__init__() + self.counts = counts + self.extended_stats = extended_stats + self.statistic_date = statistic_date + self.version = version + + +class ExtensionDailyStats(Model): + """ExtensionDailyStats. + + :param daily_stats: List of extension statistics data points + :type daily_stats: list of :class:`ExtensionDailyStat ` + :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + :param stat_count: Count of stats + :type stat_count: int + """ + + _attribute_map = { + 'daily_stats': {'key': 'dailyStats', 'type': '[ExtensionDailyStat]'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'stat_count': {'key': 'statCount', 'type': 'int'} + } + + def __init__(self, daily_stats=None, extension_id=None, extension_name=None, publisher_name=None, stat_count=None): + super(ExtensionDailyStats, self).__init__() + self.daily_stats = daily_stats + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name + self.stat_count = stat_count + + +class ExtensionEvent(Model): + """ExtensionEvent. + + :param id: Id which identifies each data point uniquely + :type id: long + :param properties: + :type properties: :class:`object ` + :param statistic_date: Timestamp of when the event occurred + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, properties=None, statistic_date=None, version=None): + super(ExtensionEvent, self).__init__() + self.id = id + self.properties = properties + self.statistic_date = statistic_date + self.version = version + + +class ExtensionEvents(Model): + """ExtensionEvents. + + :param events: Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event + :type events: dict + :param extension_id: Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + """ + + _attribute_map = { + 'events': {'key': 'events', 'type': '{[ExtensionEvent]}'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, events=None, extension_id=None, extension_name=None, publisher_name=None): + super(ExtensionEvents, self).__init__() + self.events = events + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.language = language + self.source = source + + +class ExtensionFilterResult(Model): + """ExtensionFilterResult. + + :param extensions: This is the set of appplications that matched the query filter supplied. + :type extensions: list of :class:`PublishedExtension ` + :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. + :type paging_token: str + :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'result_metadata': {'key': 'resultMetadata', 'type': '[ExtensionFilterResultMetadata]'} + } + + def __init__(self, extensions=None, paging_token=None, result_metadata=None): + super(ExtensionFilterResult, self).__init__() + self.extensions = extensions + self.paging_token = paging_token + self.result_metadata = result_metadata + + +class ExtensionFilterResultMetadata(Model): + """ExtensionFilterResultMetadata. + + :param metadata_items: The metadata items for the category + :type metadata_items: list of :class:`MetadataItem ` + :param metadata_type: Defines the category of metadata items + :type metadata_type: str + """ + + _attribute_map = { + 'metadata_items': {'key': 'metadataItems', 'type': '[MetadataItem]'}, + 'metadata_type': {'key': 'metadataType', 'type': 'str'} + } + + def __init__(self, metadata_items=None, metadata_type=None): + super(ExtensionFilterResultMetadata, self).__init__() + self.metadata_items = metadata_items + self.metadata_type = metadata_type + + +class ExtensionPackage(Model): + """ExtensionPackage. + + :param extension_manifest: Base 64 encoded extension package + :type extension_manifest: str + """ + + _attribute_map = { + 'extension_manifest': {'key': 'extensionManifest', 'type': 'str'} + } + + def __init__(self, extension_manifest=None): + super(ExtensionPackage, self).__init__() + self.extension_manifest = extension_manifest + + +class ExtensionQuery(Model): + """ExtensionQuery. + + :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. + :type asset_types: list of str + :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. + :type flags: object + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, asset_types=None, filters=None, flags=None): + super(ExtensionQuery, self).__init__() + self.asset_types = asset_types + self.filters = filters + self.flags = flags + + +class ExtensionQueryResult(Model): + """ExtensionQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`ExtensionFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[ExtensionFilterResult]'} + } + + def __init__(self, results=None): + super(ExtensionQueryResult, self).__init__() + self.results = results + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: float + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value + + +class ExtensionStatisticUpdate(Model): + """ExtensionStatisticUpdate. + + :param extension_name: + :type extension_name: str + :param operation: + :type operation: object + :param publisher_name: + :type publisher_name: str + :param statistic: + :type statistic: :class:`ExtensionStatistic ` + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'statistic': {'key': 'statistic', 'type': 'ExtensionStatistic'} + } + + def __init__(self, extension_name=None, operation=None, publisher_name=None, statistic=None): + super(ExtensionStatisticUpdate, self).__init__() + self.extension_name = extension_name + self.operation = operation + self.publisher_name = publisher_name + self.statistic = statistic + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description + + +class FilterCriteria(Model): + """FilterCriteria. + + :param filter_type: + :type filter_type: int + :param value: The value used in the match based on the filter type. + :type value: str + """ + + _attribute_map = { + 'filter_type': {'key': 'filterType', 'type': 'int'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, filter_type=None, value=None): + super(FilterCriteria, self).__init__() + self.filter_type = filter_type + self.value = value + + +class InstallationTarget(Model): + """InstallationTarget. + + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.target = target + self.target_version = target_version + + +class MetadataItem(Model): + """MetadataItem. + + :param count: The count of the metadata item + :type count: int + :param name: The name of the metadata item + :type name: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, count=None, name=None): + super(MetadataItem, self).__init__() + self.count = count + self.name = name + + +class NotificationsData(Model): + """NotificationsData. + + :param data: Notification data needed + :type data: dict + :param identities: List of users who should get the notification + :type identities: dict + :param type: Type of Mail Notification.Can be Qna , review or CustomerContact + :type type: object + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'identities': {'key': 'identities', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, data=None, identities=None, type=None): + super(NotificationsData, self).__init__() + self.data = data + self.identities = identities + self.type = type + + +class ProductCategoriesResult(Model): + """ProductCategoriesResult. + + :param categories: + :type categories: list of :class:`ProductCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ProductCategory]'} + } + + def __init__(self, categories=None): + super(ProductCategoriesResult, self).__init__() + self.categories = categories + + +class ProductCategory(Model): + """ProductCategory. + + :param children: + :type children: list of :class:`ProductCategory ` + :param has_children: Indicator whether this is a leaf or there are children under this category + :type has_children: bool + :param id: Individual Guid of the Category + :type id: str + :param title: Category Title in the requested language + :type title: str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[ProductCategory]'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, children=None, has_children=None, id=None, title=None): + super(ProductCategory, self).__init__() + self.children = children + self.has_children = has_children + self.id = id + self.title = title + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions + + +class Publisher(Model): + """Publisher. + + :param display_name: + :type display_name: str + :param email_address: + :type email_address: list of str + :param extensions: + :type extensions: list of :class:`PublishedExtension ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + :param short_description: + :type short_description: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': '[str]'}, + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'} + } + + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): + super(Publisher, self).__init__() + self.display_name = display_name + self.email_address = email_address + self.extensions = extensions + self.flags = flags + self.last_updated = last_updated + self.long_description = long_description + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.short_description = short_description + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name + + +class PublisherFilterResult(Model): + """PublisherFilterResult. + + :param publishers: This is the set of appplications that matched the query filter supplied. + :type publishers: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publishers': {'key': 'publishers', 'type': '[Publisher]'} + } + + def __init__(self, publishers=None): + super(PublisherFilterResult, self).__init__() + self.publishers = publishers + + +class PublisherQuery(Model): + """PublisherQuery. + + :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. + :type flags: object + """ + + _attribute_map = { + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, filters=None, flags=None): + super(PublisherQuery, self).__init__() + self.filters = filters + self.flags = flags + + +class PublisherQueryResult(Model): + """PublisherQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`PublisherFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[PublisherFilterResult]'} + } + + def __init__(self, results=None): + super(PublisherQueryResult, self).__init__() + self.results = results + + +class QnAItem(Model): + """QnAItem. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(QnAItem, self).__init__() + self.created_date = created_date + self.id = id + self.status = status + self.text = text + self.updated_date = updated_date + self.user = user + + +class QueryFilter(Model): + """QueryFilter. + + :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. + :type criteria: list of :class:`FilterCriteria ` + :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. + :type direction: object + :param page_number: The page number requested by the user. If not provided 1 is assumed by default. + :type page_number: int + :param page_size: The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits. + :type page_size: int + :param paging_token: The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embeded in the token. + :type paging_token: str + :param sort_by: Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only. + :type sort_by: int + :param sort_order: Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value + :type sort_order: int + """ + + _attribute_map = { + 'criteria': {'key': 'criteria', 'type': '[FilterCriteria]'}, + 'direction': {'key': 'direction', 'type': 'object'}, + 'page_number': {'key': 'pageNumber', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'sort_by': {'key': 'sortBy', 'type': 'int'}, + 'sort_order': {'key': 'sortOrder', 'type': 'int'} + } + + def __init__(self, criteria=None, direction=None, page_number=None, page_size=None, paging_token=None, sort_by=None, sort_order=None): + super(QueryFilter, self).__init__() + self.criteria = criteria + self.direction = direction + self.page_number = page_number + self.page_size = page_size + self.paging_token = paging_token + self.sort_by = sort_by + self.sort_order = sort_order + + +class Question(QnAItem): + """Question. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param responses: List of answers in for the question / thread + :type responses: list of :class:`Response ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'responses': {'key': 'responses', 'type': '[Response]'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, responses=None): + super(Question, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.responses = responses + + +class QuestionsResult(Model): + """QuestionsResult. + + :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) + :type has_more_questions: bool + :param questions: List of the QnA threads + :type questions: list of :class:`Question ` + """ + + _attribute_map = { + 'has_more_questions': {'key': 'hasMoreQuestions', 'type': 'bool'}, + 'questions': {'key': 'questions', 'type': '[Question]'} + } + + def __init__(self, has_more_questions=None, questions=None): + super(QuestionsResult, self).__init__() + self.has_more_questions = has_more_questions + self.questions = questions + + +class RatingCountPerRating(Model): + """RatingCountPerRating. + + :param rating: Rating value + :type rating: str + :param rating_count: Count of total ratings + :type rating_count: long + """ + + _attribute_map = { + 'rating': {'key': 'rating', 'type': 'str'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'} + } + + def __init__(self, rating=None, rating_count=None): + super(RatingCountPerRating, self).__init__() + self.rating = rating + self.rating_count = rating_count + + +class Response(QnAItem): + """Response. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(Response, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + + +class Review(Model): + """Review. + + :param admin_reply: Admin Reply, if any, for this review + :type admin_reply: :class:`ReviewReply ` + :param id: Unique identifier of a review item + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param is_ignored: + :type is_ignored: bool + :param product_version: Version of the product for which review was submitted + :type product_version: str + :param rating: Rating procided by the user + :type rating: str + :param reply: Reply, if any, for this review + :type reply: :class:`ReviewReply ` + :param text: Text description of the review + :type text: str + :param title: Title of the review + :type title: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user_display_name: Name of the user + :type user_display_name: str + :param user_id: Id of the user who submitted the review + :type user_id: str + """ + + _attribute_map = { + 'admin_reply': {'key': 'adminReply', 'type': 'ReviewReply'}, + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'rating': {'key': 'rating', 'type': 'str'}, + 'reply': {'key': 'reply', 'type': 'ReviewReply'}, + 'text': {'key': 'text', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_display_name': {'key': 'userDisplayName', 'type': 'str'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, admin_reply=None, id=None, is_deleted=None, is_ignored=None, product_version=None, rating=None, reply=None, text=None, title=None, updated_date=None, user_display_name=None, user_id=None): + super(Review, self).__init__() + self.admin_reply = admin_reply + self.id = id + self.is_deleted = is_deleted + self.is_ignored = is_ignored + self.product_version = product_version + self.rating = rating + self.reply = reply + self.text = text + self.title = title + self.updated_date = updated_date + self.user_display_name = user_display_name + self.user_id = user_id + + +class ReviewPatch(Model): + """ReviewPatch. + + :param operation: Denotes the patch operation type + :type operation: object + :param reported_concern: Use when patch operation is FlagReview + :type reported_concern: :class:`UserReportedConcern ` + :param review_item: Use when patch operation is EditReview + :type review_item: :class:`Review ` + """ + + _attribute_map = { + 'operation': {'key': 'operation', 'type': 'object'}, + 'reported_concern': {'key': 'reportedConcern', 'type': 'UserReportedConcern'}, + 'review_item': {'key': 'reviewItem', 'type': 'Review'} + } + + def __init__(self, operation=None, reported_concern=None, review_item=None): + super(ReviewPatch, self).__init__() + self.operation = operation + self.reported_concern = reported_concern + self.review_item = review_item + + +class ReviewReply(Model): + """ReviewReply. + + :param id: Id of the reply + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param product_version: Version of the product when the reply was submitted or updated + :type product_version: str + :param reply_text: Content of the reply + :type reply_text: str + :param review_id: Id of the review, to which this reply belongs + :type review_id: long + :param title: Title of the reply + :type title: str + :param updated_date: Date the reply was submitted or updated + :type updated_date: datetime + :param user_id: Id of the user who left the reply + :type user_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'reply_text': {'key': 'replyText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, id=None, is_deleted=None, product_version=None, reply_text=None, review_id=None, title=None, updated_date=None, user_id=None): + super(ReviewReply, self).__init__() + self.id = id + self.is_deleted = is_deleted + self.product_version = product_version + self.reply_text = reply_text + self.review_id = review_id + self.title = title + self.updated_date = updated_date + self.user_id = user_id + + +class ReviewsResult(Model): + """ReviewsResult. + + :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) + :type has_more_reviews: bool + :param reviews: List of reviews + :type reviews: list of :class:`Review ` + :param total_review_count: Count of total review items + :type total_review_count: long + """ + + _attribute_map = { + 'has_more_reviews': {'key': 'hasMoreReviews', 'type': 'bool'}, + 'reviews': {'key': 'reviews', 'type': '[Review]'}, + 'total_review_count': {'key': 'totalReviewCount', 'type': 'long'} + } + + def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None): + super(ReviewsResult, self).__init__() + self.has_more_reviews = has_more_reviews + self.reviews = reviews + self.total_review_count = total_review_count + + +class ReviewSummary(Model): + """ReviewSummary. + + :param average_rating: Average Rating + :type average_rating: int + :param rating_count: Count of total ratings + :type rating_count: long + :param rating_split: Split of count accross rating + :type rating_split: list of :class:`RatingCountPerRating ` + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'int'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'}, + 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} + } + + def __init__(self, average_rating=None, rating_count=None, rating_split=None): + super(ReviewSummary, self).__init__() + self.average_rating = average_rating + self.rating_count = rating_count + self.rating_split = rating_split + + +class UserIdentityRef(Model): + """UserIdentityRef. + + :param display_name: User display name + :type display_name: str + :param id: User VSID + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(UserIdentityRef, self).__init__() + self.display_name = display_name + self.id = id + + +class UserReportedConcern(Model): + """UserReportedConcern. + + :param category: Category of the concern + :type category: object + :param concern_text: User comment associated with the report + :type concern_text: str + :param review_id: Id of the review which was reported + :type review_id: long + :param submitted_date: Date the report was submitted + :type submitted_date: datetime + :param user_id: Id of the user who reported a review + :type user_id: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'object'}, + 'concern_text': {'key': 'concernText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'submitted_date': {'key': 'submittedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, category=None, concern_text=None, review_id=None, submitted_date=None, user_id=None): + super(UserReportedConcern, self).__init__() + self.category = category + self.concern_text = concern_text + self.review_id = review_id + self.submitted_date = submitted_date + self.user_id = user_id + + +class Concern(QnAItem): + """Concern. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param category: Category of the concern + :type category: object + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'category': {'key': 'category', 'type': 'object'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, category=None): + super(Concern, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.category = category + + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOptions', + 'Answers', + 'AssetDetails', + 'AzurePublisher', + 'AzureRestApiRequestModel', + 'CategoriesResult', + 'CategoryLanguageTitle', + 'EventCounts', + 'ExtensionAcquisitionRequest', + 'ExtensionBadge', + 'ExtensionCategory', + 'ExtensionDailyStat', + 'ExtensionDailyStats', + 'ExtensionEvent', + 'ExtensionEvents', + 'ExtensionFile', + 'ExtensionFilterResult', + 'ExtensionFilterResultMetadata', + 'ExtensionPackage', + 'ExtensionQuery', + 'ExtensionQueryResult', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionStatisticUpdate', + 'ExtensionVersion', + 'FilterCriteria', + 'InstallationTarget', + 'MetadataItem', + 'NotificationsData', + 'ProductCategoriesResult', + 'ProductCategory', + 'PublishedExtension', + 'Publisher', + 'PublisherFacts', + 'PublisherFilterResult', + 'PublisherQuery', + 'PublisherQueryResult', + 'QnAItem', + 'QueryFilter', + 'Question', + 'QuestionsResult', + 'RatingCountPerRating', + 'Response', + 'Review', + 'ReviewPatch', + 'ReviewReply', + 'ReviewsResult', + 'ReviewSummary', + 'UserIdentityRef', + 'UserReportedConcern', + 'Concern', +] diff --git a/azure-devops/azure/devops/v4_0/git/__init__.py b/azure-devops/azure/devops/v4_0/git/__init__.py new file mode 100644 index 00000000..083cea34 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/git/__init__.py @@ -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 .models import * + +__all__ = [ + 'AssociatedWorkItem', + 'Attachment', + 'Change', + 'Comment', + 'CommentIterationContext', + 'CommentPosition', + 'CommentThread', + 'CommentThreadContext', + 'CommentTrackingCriteria', + 'FileContentMetadata', + 'GitAnnotatedTag', + 'GitAsyncRefOperation', + 'GitAsyncRefOperationDetail', + 'GitAsyncRefOperationParameters', + 'GitAsyncRefOperationSource', + 'GitBaseVersionDescriptor', + 'GitBlobRef', + 'GitBranchStats', + 'GitCherryPick', + 'GitCommit', + 'GitCommitChanges', + 'GitCommitDiffs', + 'GitCommitRef', + 'GitConflict', + 'GitDeletedRepository', + 'GitFilePathsCollection', + 'GitForkOperationStatusDetail', + 'GitForkRef', + 'GitForkSyncRequest', + 'GitForkSyncRequestParameters', + 'GitImportGitSource', + 'GitImportRequest', + 'GitImportRequestParameters', + 'GitImportStatusDetail', + 'GitImportTfvcSource', + 'GitItem', + 'GitItemDescriptor', + 'GitItemRequestData', + 'GitMergeOriginRef', + 'GitObject', + 'GitPullRequest', + 'GitPullRequestChange', + 'GitPullRequestCommentThread', + 'GitPullRequestCommentThreadContext', + 'GitPullRequestCompletionOptions', + 'GitPullRequestIteration', + 'GitPullRequestIterationChanges', + 'GitPullRequestMergeOptions', + 'GitPullRequestQuery', + 'GitPullRequestQueryInput', + 'GitPullRequestSearchCriteria', + 'GitPullRequestStatus', + 'GitPush', + 'GitPushRef', + 'GitPushSearchCriteria', + 'GitQueryBranchStatsCriteria', + 'GitQueryCommitsCriteria', + 'GitRef', + 'GitRefFavorite', + 'GitRefUpdate', + 'GitRefUpdateResult', + 'GitRepository', + 'GitRepositoryCreateOptions', + 'GitRepositoryRef', + 'GitRepositoryStats', + 'GitRevert', + 'GitStatus', + 'GitStatusContext', + 'GitSuggestion', + 'GitTargetVersionDescriptor', + 'GitTemplate', + 'GitTreeDiff', + 'GitTreeDiffEntry', + 'GitTreeDiffResponse', + 'GitTreeEntryRef', + 'GitTreeRef', + 'GitUserDate', + 'GitVersionDescriptor', + 'GlobalGitRepositoryKey', + 'IdentityRef', + 'IdentityRefWithVote', + 'ImportRepositoryValidation', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'ResourceRef', + 'ShareNotificationContext', + 'SourceToTargetRef', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'VstsInfo', + 'WebApiCreateTagRequestData', + 'WebApiTagDefinition', +] diff --git a/vsts/vsts/git/v4_0/git_client.py b/azure-devops/azure/devops/v4_0/git/git_client.py similarity index 99% rename from vsts/vsts/git/v4_0/git_client.py rename to azure-devops/azure/devops/v4_0/git/git_client.py index fe96789d..b3c9d28f 100644 --- a/vsts/vsts/git/v4_0/git_client.py +++ b/azure-devops/azure/devops/v4_0/git/git_client.py @@ -40,4 +40,3 @@ def get_vsts_info_by_remote_url(remote_url, credentials, suppress_fedauth_redire git_client = GitClient(base_url=remote_url, creds=credentials) response = git_client._send_request(request, headers) return git_client._deserialize('VstsInfo', response) - diff --git a/vsts/vsts/git/v4_0/git_client_base.py b/azure-devops/azure/devops/v4_0/git/git_client_base.py similarity index 99% rename from vsts/vsts/git/v4_0/git_client_base.py rename to azure-devops/azure/devops/v4_0/git/git_client_base.py index 79fa509a..ab3665c6 100644 --- a/vsts/vsts/git/v4_0/git_client_base.py +++ b/azure-devops/azure/devops/v4_0/git/git_client_base.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class GitClientBase(VssClient): +class GitClientBase(Client): """Git :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/git/models.py b/azure-devops/azure/devops/v4_0/git/models.py new file mode 100644 index 00000000..dbec31e4 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/git/models.py @@ -0,0 +1,3260 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST url + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type + + +class Attachment(Model): + """Attachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: The person that uploaded this attachment + :type author: :class:`IdentityRef ` + :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. + :type content_hash: str + :param created_date: The time the attachment was uploaded + :type created_date: datetime + :param description: The description of the attachment, can be null. + :type description: str + :param display_name: The display name of the attachment, can't be null or empty. + :type display_name: str + :param id: Id of the code review attachment + :type id: int + :param properties: + :type properties: :class:`object ` + :param url: The url to download the content of the attachment + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'content_hash': {'key': 'contentHash', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, content_hash=None, created_date=None, description=None, display_name=None, id=None, properties=None, url=None): + super(Attachment, self).__init__() + self._links = _links + self.author = author + self.content_hash = content_hash + self.created_date = created_date + self.description = description + self.display_name = display_name + self.id = id + self.properties = properties + self.url = url + + +class Change(Model): + """Change. + + :param change_type: + :type change_type: object + :param item: + :type item: object + :param new_content: + :type new_content: :class:`ItemContent ` + :param source_server_item: + :type source_server_item: str + :param url: + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'object'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url + + +class Comment(Model): + """Comment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: The author of the pull request comment. + :type author: :class:`IdentityRef ` + :param comment_type: Determines what kind of comment when it was created. + :type comment_type: object + :param content: The comment's content. + :type content: str + :param id: The pull request comment id. It always starts from 1. + :type id: int + :param is_deleted: Marks if this comment was soft-deleted. + :type is_deleted: bool + :param last_content_updated_date: The date a comment content was last updated. + :type last_content_updated_date: datetime + :param last_updated_date: The date a comment was last updated. + :type last_updated_date: datetime + :param parent_comment_id: The pull request comment id of the parent comment. This is used for replies + :type parent_comment_id: int + :param published_date: The date a comment was first published. + :type published_date: datetime + :param users_liked: A list of the users who've liked this comment. + :type users_liked: list of :class:`IdentityRef ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'comment_type': {'key': 'commentType', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_content_updated_date': {'key': 'lastContentUpdatedDate', 'type': 'iso-8601'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'parent_comment_id': {'key': 'parentCommentId', 'type': 'int'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'users_liked': {'key': 'usersLiked', 'type': '[IdentityRef]'} + } + + def __init__(self, _links=None, author=None, comment_type=None, content=None, id=None, is_deleted=None, last_content_updated_date=None, last_updated_date=None, parent_comment_id=None, published_date=None, users_liked=None): + super(Comment, self).__init__() + self._links = _links + self.author = author + self.comment_type = comment_type + self.content = content + self.id = id + self.is_deleted = is_deleted + self.last_content_updated_date = last_content_updated_date + self.last_updated_date = last_updated_date + self.parent_comment_id = parent_comment_id + self.published_date = published_date + self.users_liked = users_liked + + +class CommentIterationContext(Model): + """CommentIterationContext. + + :param first_comparing_iteration: First comparing iteration Id. Minimum value is 1. + :type first_comparing_iteration: int + :param second_comparing_iteration: Second comparing iteration Id. Minimum value is 1. + :type second_comparing_iteration: int + """ + + _attribute_map = { + 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, + 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} + } + + def __init__(self, first_comparing_iteration=None, second_comparing_iteration=None): + super(CommentIterationContext, self).__init__() + self.first_comparing_iteration = first_comparing_iteration + self.second_comparing_iteration = second_comparing_iteration + + +class CommentPosition(Model): + """CommentPosition. + + :param line: Position line starting with one. + :type line: int + :param offset: Position offset starting with zero. + :type offset: int + """ + + _attribute_map = { + 'line': {'key': 'line', 'type': 'int'}, + 'offset': {'key': 'offset', 'type': 'int'} + } + + def __init__(self, line=None, offset=None): + super(CommentPosition, self).__init__() + self.line = line + self.offset = offset + + +class CommentThread(Model): + """CommentThread. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comments: A list of the comments. + :type comments: list of :class:`Comment ` + :param id: The comment thread id. + :type id: int + :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted + :type is_deleted: bool + :param last_updated_date: The time this thread was last updated. + :type last_updated_date: datetime + :param properties: A list of (optional) thread properties. + :type properties: :class:`object ` + :param published_date: The time this thread was published. + :type published_date: datetime + :param status: The status of the comment thread. + :type status: object + :param thread_context: Specify thread context such as position in left/right file. + :type thread_context: :class:`CommentThreadContext ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[Comment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'} + } + + def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): + super(CommentThread, self).__init__() + self._links = _links + self.comments = comments + self.id = id + self.is_deleted = is_deleted + self.last_updated_date = last_updated_date + self.properties = properties + self.published_date = published_date + self.status = status + self.thread_context = thread_context + + +class CommentThreadContext(Model): + """CommentThreadContext. + + :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. + :type file_path: str + :param left_file_end: Position of last character of the comment in left file. + :type left_file_end: :class:`CommentPosition ` + :param left_file_start: Position of first character of the comment in left file. + :type left_file_start: :class:`CommentPosition ` + :param right_file_end: Position of last character of the comment in right file. + :type right_file_end: :class:`CommentPosition ` + :param right_file_start: Position of first character of the comment in right file. + :type right_file_start: :class:`CommentPosition ` + """ + + _attribute_map = { + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'left_file_end': {'key': 'leftFileEnd', 'type': 'CommentPosition'}, + 'left_file_start': {'key': 'leftFileStart', 'type': 'CommentPosition'}, + 'right_file_end': {'key': 'rightFileEnd', 'type': 'CommentPosition'}, + 'right_file_start': {'key': 'rightFileStart', 'type': 'CommentPosition'} + } + + def __init__(self, file_path=None, left_file_end=None, left_file_start=None, right_file_end=None, right_file_start=None): + super(CommentThreadContext, self).__init__() + self.file_path = file_path + self.left_file_end = left_file_end + self.left_file_start = left_file_start + self.right_file_end = right_file_end + self.right_file_start = right_file_start + + +class CommentTrackingCriteria(Model): + """CommentTrackingCriteria. + + :param first_comparing_iteration: The first comparing iteration being viewed. Threads will be tracked if this is greater than 0. + :type first_comparing_iteration: int + :param orig_left_file_end: Original position of last character of the comment in left file. + :type orig_left_file_end: :class:`CommentPosition ` + :param orig_left_file_start: Original position of first character of the comment in left file. + :type orig_left_file_start: :class:`CommentPosition ` + :param orig_right_file_end: Original position of last character of the comment in right file. + :type orig_right_file_end: :class:`CommentPosition ` + :param orig_right_file_start: Original position of first character of the comment in right file. + :type orig_right_file_start: :class:`CommentPosition ` + :param second_comparing_iteration: The second comparing iteration being viewed. Threads will be tracked if this is greater than 0. + :type second_comparing_iteration: int + """ + + _attribute_map = { + 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, + 'orig_left_file_end': {'key': 'origLeftFileEnd', 'type': 'CommentPosition'}, + 'orig_left_file_start': {'key': 'origLeftFileStart', 'type': 'CommentPosition'}, + 'orig_right_file_end': {'key': 'origRightFileEnd', 'type': 'CommentPosition'}, + 'orig_right_file_start': {'key': 'origRightFileStart', 'type': 'CommentPosition'}, + 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} + } + + def __init__(self, first_comparing_iteration=None, orig_left_file_end=None, orig_left_file_start=None, orig_right_file_end=None, orig_right_file_start=None, second_comparing_iteration=None): + super(CommentTrackingCriteria, self).__init__() + self.first_comparing_iteration = first_comparing_iteration + self.orig_left_file_end = orig_left_file_end + self.orig_left_file_start = orig_left_file_start + self.orig_right_file_end = orig_right_file_end + self.orig_right_file_start = orig_right_file_start + self.second_comparing_iteration = second_comparing_iteration + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link + + +class GitAnnotatedTag(Model): + """GitAnnotatedTag. + + :param message: Tagging Message + :type message: str + :param name: + :type name: str + :param object_id: + :type object_id: str + :param tagged_by: User name, Email and date of tagging + :type tagged_by: :class:`GitUserDate ` + :param tagged_object: Tagged git object + :type tagged_object: :class:`GitObject ` + :param url: + :type url: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'tagged_by': {'key': 'taggedBy', 'type': 'GitUserDate'}, + 'tagged_object': {'key': 'taggedObject', 'type': 'GitObject'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, message=None, name=None, object_id=None, tagged_by=None, tagged_object=None, url=None): + super(GitAnnotatedTag, self).__init__() + self.message = message + self.name = name + self.object_id = object_id + self.tagged_by = tagged_by + self.tagged_object = tagged_object + self.url = url + + +class GitAsyncRefOperation(Model): + """GitAsyncRefOperation. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :param parameters: + :type parameters: :class:`GitAsyncRefOperationParameters ` + :param status: + :type status: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, + 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None): + super(GitAsyncRefOperation, self).__init__() + self._links = _links + self.detailed_status = detailed_status + self.parameters = parameters + self.status = status + self.url = url + + +class GitAsyncRefOperationDetail(Model): + """GitAsyncRefOperationDetail. + + :param conflict: + :type conflict: bool + :param current_commit_id: + :type current_commit_id: str + :param failure_message: + :type failure_message: str + :param progress: + :type progress: float + :param status: + :type status: object + :param timedout: + :type timedout: bool + """ + + _attribute_map = { + 'conflict': {'key': 'conflict', 'type': 'bool'}, + 'current_commit_id': {'key': 'currentCommitId', 'type': 'str'}, + 'failure_message': {'key': 'failureMessage', 'type': 'str'}, + 'progress': {'key': 'progress', 'type': 'float'}, + 'status': {'key': 'status', 'type': 'object'}, + 'timedout': {'key': 'timedout', 'type': 'bool'} + } + + def __init__(self, conflict=None, current_commit_id=None, failure_message=None, progress=None, status=None, timedout=None): + super(GitAsyncRefOperationDetail, self).__init__() + self.conflict = conflict + self.current_commit_id = current_commit_id + self.failure_message = failure_message + self.progress = progress + self.status = status + self.timedout = timedout + + +class GitAsyncRefOperationParameters(Model): + """GitAsyncRefOperationParameters. + + :param generated_ref_name: + :type generated_ref_name: str + :param onto_ref_name: + :type onto_ref_name: str + :param repository: + :type repository: :class:`GitRepository ` + :param source: + :type source: :class:`GitAsyncRefOperationSource ` + """ + + _attribute_map = { + 'generated_ref_name': {'key': 'generatedRefName', 'type': 'str'}, + 'onto_ref_name': {'key': 'ontoRefName', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'source': {'key': 'source', 'type': 'GitAsyncRefOperationSource'} + } + + def __init__(self, generated_ref_name=None, onto_ref_name=None, repository=None, source=None): + super(GitAsyncRefOperationParameters, self).__init__() + self.generated_ref_name = generated_ref_name + self.onto_ref_name = onto_ref_name + self.repository = repository + self.source = source + + +class GitAsyncRefOperationSource(Model): + """GitAsyncRefOperationSource. + + :param commit_list: + :type commit_list: list of :class:`GitCommitRef ` + :param pull_request_id: + :type pull_request_id: int + """ + + _attribute_map = { + 'commit_list': {'key': 'commitList', 'type': '[GitCommitRef]'}, + 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} + } + + def __init__(self, commit_list=None, pull_request_id=None): + super(GitAsyncRefOperationSource, self).__init__() + self.commit_list = commit_list + self.pull_request_id = pull_request_id + + +class GitBlobRef(Model): + """GitBlobRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param object_id: SHA1 hash of git object + :type object_id: str + :param size: Size of blob content (in bytes) + :type size: long + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, object_id=None, size=None, url=None): + super(GitBlobRef, self).__init__() + self._links = _links + self.object_id = object_id + self.size = size + self.url = url + + +class GitBranchStats(Model): + """GitBranchStats. + + :param ahead_count: + :type ahead_count: int + :param behind_count: + :type behind_count: int + :param commit: + :type commit: :class:`GitCommitRef ` + :param is_base_version: + :type is_base_version: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, + 'behind_count': {'key': 'behindCount', 'type': 'int'}, + 'commit': {'key': 'commit', 'type': 'GitCommitRef'}, + 'is_base_version': {'key': 'isBaseVersion', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, ahead_count=None, behind_count=None, commit=None, is_base_version=None, name=None): + super(GitBranchStats, self).__init__() + self.ahead_count = ahead_count + self.behind_count = behind_count + self.commit = commit + self.is_base_version = is_base_version + self.name = name + + +class GitCherryPick(GitAsyncRefOperation): + """GitCherryPick. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :param parameters: + :type parameters: :class:`GitAsyncRefOperationParameters ` + :param status: + :type status: object + :param url: + :type url: str + :param cherry_pick_id: + :type cherry_pick_id: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, + 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'cherry_pick_id': {'key': 'cherryPickId', 'type': 'int'} + } + + def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, cherry_pick_id=None): + super(GitCherryPick, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) + self.cherry_pick_id = cherry_pick_id + + +class GitCommitChanges(Model): + """GitCommitChanges. + + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + """ + + _attribute_map = { + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'} + } + + def __init__(self, change_counts=None, changes=None): + super(GitCommitChanges, self).__init__() + self.change_counts = change_counts + self.changes = changes + + +class GitCommitDiffs(Model): + """GitCommitDiffs. + + :param ahead_count: + :type ahead_count: int + :param all_changes_included: + :type all_changes_included: bool + :param base_commit: + :type base_commit: str + :param behind_count: + :type behind_count: int + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + :param common_commit: + :type common_commit: str + :param target_commit: + :type target_commit: str + """ + + _attribute_map = { + 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, + 'all_changes_included': {'key': 'allChangesIncluded', 'type': 'bool'}, + 'base_commit': {'key': 'baseCommit', 'type': 'str'}, + 'behind_count': {'key': 'behindCount', 'type': 'int'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'common_commit': {'key': 'commonCommit', 'type': 'str'}, + 'target_commit': {'key': 'targetCommit', 'type': 'str'} + } + + def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None, behind_count=None, change_counts=None, changes=None, common_commit=None, target_commit=None): + super(GitCommitDiffs, self).__init__() + self.ahead_count = ahead_count + self.all_changes_included = all_changes_included + self.base_commit = base_commit + self.behind_count = behind_count + self.change_counts = change_counts + self.changes = changes + self.common_commit = common_commit + self.target_commit = target_commit + + +class GitCommitRef(Model): + """GitCommitRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: :class:`GitUserDate ` + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param commit_id: + :type commit_id: str + :param committer: + :type committer: :class:`GitUserDate ` + :param parents: + :type parents: list of str + :param remote_url: + :type remote_url: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + :param work_items: + :type work_items: list of :class:`ResourceRef ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'GitUserDate'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'committer': {'key': 'committer', 'type': 'GitUserDate'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} + } + + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): + super(GitCommitRef, self).__init__() + self._links = _links + self.author = author + self.change_counts = change_counts + self.changes = changes + self.comment = comment + self.comment_truncated = comment_truncated + self.commit_id = commit_id + self.committer = committer + self.parents = parents + self.remote_url = remote_url + self.statuses = statuses + self.url = url + self.work_items = work_items + + +class GitConflict(Model): + """GitConflict. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param conflict_id: + :type conflict_id: int + :param conflict_path: + :type conflict_path: str + :param conflict_type: + :type conflict_type: object + :param merge_base_commit: + :type merge_base_commit: :class:`GitCommitRef ` + :param merge_origin: + :type merge_origin: :class:`GitMergeOriginRef ` + :param merge_source_commit: + :type merge_source_commit: :class:`GitCommitRef ` + :param merge_target_commit: + :type merge_target_commit: :class:`GitCommitRef ` + :param resolution_error: + :type resolution_error: object + :param resolution_status: + :type resolution_status: object + :param resolved_by: + :type resolved_by: :class:`IdentityRef ` + :param resolved_date: + :type resolved_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'conflict_id': {'key': 'conflictId', 'type': 'int'}, + 'conflict_path': {'key': 'conflictPath', 'type': 'str'}, + 'conflict_type': {'key': 'conflictType', 'type': 'object'}, + 'merge_base_commit': {'key': 'mergeBaseCommit', 'type': 'GitCommitRef'}, + 'merge_origin': {'key': 'mergeOrigin', 'type': 'GitMergeOriginRef'}, + 'merge_source_commit': {'key': 'mergeSourceCommit', 'type': 'GitCommitRef'}, + 'merge_target_commit': {'key': 'mergeTargetCommit', 'type': 'GitCommitRef'}, + 'resolution_error': {'key': 'resolutionError', 'type': 'object'}, + 'resolution_status': {'key': 'resolutionStatus', 'type': 'object'}, + 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'}, + 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, conflict_id=None, conflict_path=None, conflict_type=None, merge_base_commit=None, merge_origin=None, merge_source_commit=None, merge_target_commit=None, resolution_error=None, resolution_status=None, resolved_by=None, resolved_date=None, url=None): + super(GitConflict, self).__init__() + self._links = _links + self.conflict_id = conflict_id + self.conflict_path = conflict_path + self.conflict_type = conflict_type + self.merge_base_commit = merge_base_commit + self.merge_origin = merge_origin + self.merge_source_commit = merge_source_commit + self.merge_target_commit = merge_target_commit + self.resolution_error = resolution_error + self.resolution_status = resolution_status + self.resolved_by = resolved_by + self.resolved_date = resolved_date + self.url = url + + +class GitDeletedRepository(Model): + """GitDeletedRepository. + + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: :class:`IdentityRef ` + :param deleted_date: + :type deleted_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'} + } + + def __init__(self, created_date=None, deleted_by=None, deleted_date=None, id=None, name=None, project=None): + super(GitDeletedRepository, self).__init__() + self.created_date = created_date + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.id = id + self.name = name + self.project = project + + +class GitFilePathsCollection(Model): + """GitFilePathsCollection. + + :param commit_id: + :type commit_id: str + :param paths: + :type paths: list of str + :param url: + :type url: str + """ + + _attribute_map = { + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, commit_id=None, paths=None, url=None): + super(GitFilePathsCollection, self).__init__() + self.commit_id = commit_id + self.paths = paths + self.url = url + + +class GitForkOperationStatusDetail(Model): + """GitForkOperationStatusDetail. + + :param all_steps: All valid steps for the forking process + :type all_steps: list of str + :param current_step: Index into AllSteps for the current step + :type current_step: int + :param error_message: Error message if the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'all_steps': {'key': 'allSteps', 'type': '[str]'}, + 'current_step': {'key': 'currentStep', 'type': 'int'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'} + } + + def __init__(self, all_steps=None, current_step=None, error_message=None): + super(GitForkOperationStatusDetail, self).__init__() + self.all_steps = all_steps + self.current_step = current_step + self.error_message = error_message + + +class GitForkSyncRequest(Model): + """GitForkSyncRequest. + + :param _links: Collection of related links + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitForkOperationStatusDetail ` + :param operation_id: Unique identifier for the operation. + :type operation_id: int + :param source: Fully-qualified identifier for the source repository. + :type source: :class:`GlobalGitRepositoryKey ` + :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. + :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :param status: + :type status: object + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitForkOperationStatusDetail'}, + 'operation_id': {'key': 'operationId', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, + 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, _links=None, detailed_status=None, operation_id=None, source=None, source_to_target_refs=None, status=None): + super(GitForkSyncRequest, self).__init__() + self._links = _links + self.detailed_status = detailed_status + self.operation_id = operation_id + self.source = source + self.source_to_target_refs = source_to_target_refs + self.status = status + + +class GitForkSyncRequestParameters(Model): + """GitForkSyncRequestParameters. + + :param source: Fully-qualified identifier for the source repository. + :type source: :class:`GlobalGitRepositoryKey ` + :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. + :type source_to_target_refs: list of :class:`SourceToTargetRef ` + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, + 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'} + } + + def __init__(self, source=None, source_to_target_refs=None): + super(GitForkSyncRequestParameters, self).__init__() + self.source = source + self.source_to_target_refs = source_to_target_refs + + +class GitImportGitSource(Model): + """GitImportGitSource. + + :param overwrite: Tells if this is a sync request or not + :type overwrite: bool + :param url: Url for the source repo + :type url: str + """ + + _attribute_map = { + 'overwrite': {'key': 'overwrite', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, overwrite=None, url=None): + super(GitImportGitSource, self).__init__() + self.overwrite = overwrite + self.url = url + + +class GitImportRequest(Model): + """GitImportRequest. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitImportStatusDetail ` + :param import_request_id: + :type import_request_id: int + :param parameters: Parameters for creating an import request + :type parameters: :class:`GitImportRequestParameters ` + :param repository: + :type repository: :class:`GitRepository ` + :param status: + :type status: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitImportStatusDetail'}, + 'import_request_id': {'key': 'importRequestId', 'type': 'int'}, + 'parameters': {'key': 'parameters', 'type': 'GitImportRequestParameters'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, detailed_status=None, import_request_id=None, parameters=None, repository=None, status=None, url=None): + super(GitImportRequest, self).__init__() + self._links = _links + self.detailed_status = detailed_status + self.import_request_id = import_request_id + self.parameters = parameters + self.repository = repository + self.status = status + self.url = url + + +class GitImportRequestParameters(Model): + """GitImportRequestParameters. + + :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done + :type delete_service_endpoint_after_import_is_done: bool + :param git_source: Source for importing git repository + :type git_source: :class:`GitImportGitSource ` + :param service_endpoint_id: Service Endpoint for connection to external endpoint + :type service_endpoint_id: str + :param tfvc_source: Source for importing tfvc repository + :type tfvc_source: :class:`GitImportTfvcSource ` + """ + + _attribute_map = { + 'delete_service_endpoint_after_import_is_done': {'key': 'deleteServiceEndpointAfterImportIsDone', 'type': 'bool'}, + 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, + 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'}, + 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'} + } + + def __init__(self, delete_service_endpoint_after_import_is_done=None, git_source=None, service_endpoint_id=None, tfvc_source=None): + super(GitImportRequestParameters, self).__init__() + self.delete_service_endpoint_after_import_is_done = delete_service_endpoint_after_import_is_done + self.git_source = git_source + self.service_endpoint_id = service_endpoint_id + self.tfvc_source = tfvc_source + + +class GitImportStatusDetail(Model): + """GitImportStatusDetail. + + :param all_steps: + :type all_steps: list of str + :param current_step: + :type current_step: int + :param error_message: + :type error_message: str + """ + + _attribute_map = { + 'all_steps': {'key': 'allSteps', 'type': '[str]'}, + 'current_step': {'key': 'currentStep', 'type': 'int'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'} + } + + def __init__(self, all_steps=None, current_step=None, error_message=None): + super(GitImportStatusDetail, self).__init__() + self.all_steps = all_steps + self.current_step = current_step + self.error_message = error_message + + +class GitImportTfvcSource(Model): + """GitImportTfvcSource. + + :param import_history: Set true to import History, false otherwise + :type import_history: bool + :param import_history_duration_in_days: Get history for last n days (max allowed value is 180 days) + :type import_history_duration_in_days: int + :param path: Path which we want to import (this can be copied from Path Control in Explorer) + :type path: str + """ + + _attribute_map = { + 'import_history': {'key': 'importHistory', 'type': 'bool'}, + 'import_history_duration_in_days': {'key': 'importHistoryDurationInDays', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, import_history=None, import_history_duration_in_days=None, path=None): + super(GitImportTfvcSource, self).__init__() + self.import_history = import_history + self.import_history_duration_in_days = import_history_duration_in_days + self.path = path + + +class GitItemDescriptor(Model): + """GitItemDescriptor. + + :param path: Path to item + :type path: str + :param recursion_level: Specifies whether to include children (OneLevel), all descendants (Full), or None + :type recursion_level: object + :param version: Version string (interpretation based on VersionType defined in subclass + :type version: str + :param version_options: Version modifiers (e.g. previous) + :type version_options: object + :param version_type: How to interpret version (branch,tag,commit) + :type version_type: object + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, path=None, recursion_level=None, version=None, version_options=None, version_type=None): + super(GitItemDescriptor, self).__init__() + self.path = path + self.recursion_level = recursion_level + self.version = version + self.version_options = version_options + self.version_type = version_type + + +class GitItemRequestData(Model): + """GitItemRequestData. + + :param include_content_metadata: Whether to include metadata for all items + :type include_content_metadata: bool + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_descriptors: Collection of items to fetch, including path, version, and recursion level + :type item_descriptors: list of :class:`GitItemDescriptor ` + :param latest_processed_change: Whether to include shallow ref to commit that last changed each item + :type latest_processed_change: bool + """ + + _attribute_map = { + 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_descriptors': {'key': 'itemDescriptors', 'type': '[GitItemDescriptor]'}, + 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'bool'} + } + + def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None, latest_processed_change=None): + super(GitItemRequestData, self).__init__() + self.include_content_metadata = include_content_metadata + self.include_links = include_links + self.item_descriptors = item_descriptors + self.latest_processed_change = latest_processed_change + + +class GitMergeOriginRef(Model): + """GitMergeOriginRef. + + :param pull_request_id: + :type pull_request_id: int + """ + + _attribute_map = { + 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} + } + + def __init__(self, pull_request_id=None): + super(GitMergeOriginRef, self).__init__() + self.pull_request_id = pull_request_id + + +class GitObject(Model): + """GitObject. + + :param object_id: Git object id + :type object_id: str + :param object_type: Type of object (Commit, Tree, Blob, Tag) + :type object_type: object + """ + + _attribute_map = { + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'object'} + } + + def __init__(self, object_id=None, object_type=None): + super(GitObject, self).__init__() + self.object_id = object_id + self.object_type = object_type + + +class GitPullRequest(Model): + """GitPullRequest. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param artifact_id: + :type artifact_id: str + :param auto_complete_set_by: + :type auto_complete_set_by: :class:`IdentityRef ` + :param closed_by: + :type closed_by: :class:`IdentityRef ` + :param closed_date: + :type closed_date: datetime + :param code_review_id: + :type code_review_id: int + :param commits: + :type commits: list of :class:`GitCommitRef ` + :param completion_options: + :type completion_options: :class:`GitPullRequestCompletionOptions ` + :param completion_queue_time: + :type completion_queue_time: datetime + :param created_by: + :type created_by: :class:`IdentityRef ` + :param creation_date: + :type creation_date: datetime + :param description: + :type description: str + :param fork_source: + :type fork_source: :class:`GitForkRef ` + :param labels: + :type labels: list of :class:`WebApiTagDefinition ` + :param last_merge_commit: + :type last_merge_commit: :class:`GitCommitRef ` + :param last_merge_source_commit: + :type last_merge_source_commit: :class:`GitCommitRef ` + :param last_merge_target_commit: + :type last_merge_target_commit: :class:`GitCommitRef ` + :param merge_failure_message: + :type merge_failure_message: str + :param merge_failure_type: + :type merge_failure_type: object + :param merge_id: + :type merge_id: str + :param merge_options: + :type merge_options: :class:`GitPullRequestMergeOptions ` + :param merge_status: + :type merge_status: object + :param pull_request_id: + :type pull_request_id: int + :param remote_url: + :type remote_url: str + :param repository: + :type repository: :class:`GitRepository ` + :param reviewers: + :type reviewers: list of :class:`IdentityRefWithVote ` + :param source_ref_name: + :type source_ref_name: str + :param status: + :type status: object + :param supports_iterations: + :type supports_iterations: bool + :param target_ref_name: + :type target_ref_name: str + :param title: + :type title: str + :param url: + :type url: str + :param work_item_refs: + :type work_item_refs: list of :class:`ResourceRef ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'auto_complete_set_by': {'key': 'autoCompleteSetBy', 'type': 'IdentityRef'}, + 'closed_by': {'key': 'closedBy', 'type': 'IdentityRef'}, + 'closed_date': {'key': 'closedDate', 'type': 'iso-8601'}, + 'code_review_id': {'key': 'codeReviewId', 'type': 'int'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'completion_options': {'key': 'completionOptions', 'type': 'GitPullRequestCompletionOptions'}, + 'completion_queue_time': {'key': 'completionQueueTime', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fork_source': {'key': 'forkSource', 'type': 'GitForkRef'}, + 'labels': {'key': 'labels', 'type': '[WebApiTagDefinition]'}, + 'last_merge_commit': {'key': 'lastMergeCommit', 'type': 'GitCommitRef'}, + 'last_merge_source_commit': {'key': 'lastMergeSourceCommit', 'type': 'GitCommitRef'}, + 'last_merge_target_commit': {'key': 'lastMergeTargetCommit', 'type': 'GitCommitRef'}, + 'merge_failure_message': {'key': 'mergeFailureMessage', 'type': 'str'}, + 'merge_failure_type': {'key': 'mergeFailureType', 'type': 'object'}, + 'merge_id': {'key': 'mergeId', 'type': 'str'}, + 'merge_options': {'key': 'mergeOptions', 'type': 'GitPullRequestMergeOptions'}, + 'merge_status': {'key': 'mergeStatus', 'type': 'object'}, + 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'reviewers': {'key': 'reviewers', 'type': '[IdentityRefWithVote]'}, + 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'supports_iterations': {'key': 'supportsIterations', 'type': 'bool'}, + 'target_ref_name': {'key': 'targetRefName', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_refs': {'key': 'workItemRefs', 'type': '[ResourceRef]'} + } + + def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): + super(GitPullRequest, self).__init__() + self._links = _links + self.artifact_id = artifact_id + self.auto_complete_set_by = auto_complete_set_by + self.closed_by = closed_by + self.closed_date = closed_date + self.code_review_id = code_review_id + self.commits = commits + self.completion_options = completion_options + self.completion_queue_time = completion_queue_time + self.created_by = created_by + self.creation_date = creation_date + self.description = description + self.fork_source = fork_source + self.labels = labels + self.last_merge_commit = last_merge_commit + self.last_merge_source_commit = last_merge_source_commit + self.last_merge_target_commit = last_merge_target_commit + self.merge_failure_message = merge_failure_message + self.merge_failure_type = merge_failure_type + self.merge_id = merge_id + self.merge_options = merge_options + self.merge_status = merge_status + self.pull_request_id = pull_request_id + self.remote_url = remote_url + self.repository = repository + self.reviewers = reviewers + self.source_ref_name = source_ref_name + self.status = status + self.supports_iterations = supports_iterations + self.target_ref_name = target_ref_name + self.title = title + self.url = url + self.work_item_refs = work_item_refs + + +class GitPullRequestCommentThread(CommentThread): + """GitPullRequestCommentThread. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comments: A list of the comments. + :type comments: list of :class:`Comment ` + :param id: The comment thread id. + :type id: int + :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted + :type is_deleted: bool + :param last_updated_date: The time this thread was last updated. + :type last_updated_date: datetime + :param properties: A list of (optional) thread properties. + :type properties: :class:`object ` + :param published_date: The time this thread was published. + :type published_date: datetime + :param status: The status of the comment thread. + :type status: object + :param thread_context: Specify thread context such as position in left/right file. + :type thread_context: :class:`CommentThreadContext ` + :param pull_request_thread_context: Extended context information unique to pull requests + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[Comment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'}, + 'pull_request_thread_context': {'key': 'pullRequestThreadContext', 'type': 'GitPullRequestCommentThreadContext'} + } + + def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): + super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) + self.pull_request_thread_context = pull_request_thread_context + + +class GitPullRequestCommentThreadContext(Model): + """GitPullRequestCommentThreadContext. + + :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. + :type change_tracking_id: int + :param iteration_context: Specify comparing iteration Ids when a comment thread is added while comparing 2 iterations. + :type iteration_context: :class:`CommentIterationContext ` + :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. + :type tracking_criteria: :class:`CommentTrackingCriteria ` + """ + + _attribute_map = { + 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'}, + 'iteration_context': {'key': 'iterationContext', 'type': 'CommentIterationContext'}, + 'tracking_criteria': {'key': 'trackingCriteria', 'type': 'CommentTrackingCriteria'} + } + + def __init__(self, change_tracking_id=None, iteration_context=None, tracking_criteria=None): + super(GitPullRequestCommentThreadContext, self).__init__() + self.change_tracking_id = change_tracking_id + self.iteration_context = iteration_context + self.tracking_criteria = tracking_criteria + + +class GitPullRequestCompletionOptions(Model): + """GitPullRequestCompletionOptions. + + :param bypass_policy: + :type bypass_policy: bool + :param bypass_reason: + :type bypass_reason: str + :param delete_source_branch: + :type delete_source_branch: bool + :param merge_commit_message: + :type merge_commit_message: str + :param squash_merge: + :type squash_merge: bool + :param transition_work_items: + :type transition_work_items: bool + """ + + _attribute_map = { + 'bypass_policy': {'key': 'bypassPolicy', 'type': 'bool'}, + 'bypass_reason': {'key': 'bypassReason', 'type': 'str'}, + 'delete_source_branch': {'key': 'deleteSourceBranch', 'type': 'bool'}, + 'merge_commit_message': {'key': 'mergeCommitMessage', 'type': 'str'}, + 'squash_merge': {'key': 'squashMerge', 'type': 'bool'}, + 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'} + } + + def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None): + super(GitPullRequestCompletionOptions, self).__init__() + self.bypass_policy = bypass_policy + self.bypass_reason = bypass_reason + self.delete_source_branch = delete_source_branch + self.merge_commit_message = merge_commit_message + self.squash_merge = squash_merge + self.transition_work_items = transition_work_items + + +class GitPullRequestIteration(Model): + """GitPullRequestIteration. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: :class:`IdentityRef ` + :param change_list: + :type change_list: list of :class:`GitPullRequestChange ` + :param commits: + :type commits: list of :class:`GitCommitRef ` + :param common_ref_commit: + :type common_ref_commit: :class:`GitCommitRef ` + :param created_date: + :type created_date: datetime + :param description: + :type description: str + :param has_more_commits: + :type has_more_commits: bool + :param id: + :type id: int + :param push: + :type push: :class:`GitPushRef ` + :param reason: + :type reason: object + :param source_ref_commit: + :type source_ref_commit: :class:`GitCommitRef ` + :param target_ref_commit: + :type target_ref_commit: :class:`GitCommitRef ` + :param updated_date: + :type updated_date: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_list': {'key': 'changeList', 'type': '[GitPullRequestChange]'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'common_ref_commit': {'key': 'commonRefCommit', 'type': 'GitCommitRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'has_more_commits': {'key': 'hasMoreCommits', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'source_ref_commit': {'key': 'sourceRefCommit', 'type': 'GitCommitRef'}, + 'target_ref_commit': {'key': 'targetRefCommit', 'type': 'GitCommitRef'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): + super(GitPullRequestIteration, self).__init__() + self._links = _links + self.author = author + self.change_list = change_list + self.commits = commits + self.common_ref_commit = common_ref_commit + self.created_date = created_date + self.description = description + self.has_more_commits = has_more_commits + self.id = id + self.push = push + self.reason = reason + self.source_ref_commit = source_ref_commit + self.target_ref_commit = target_ref_commit + self.updated_date = updated_date + + +class GitPullRequestIterationChanges(Model): + """GitPullRequestIterationChanges. + + :param change_entries: + :type change_entries: list of :class:`GitPullRequestChange ` + :param next_skip: + :type next_skip: int + :param next_top: + :type next_top: int + """ + + _attribute_map = { + 'change_entries': {'key': 'changeEntries', 'type': '[GitPullRequestChange]'}, + 'next_skip': {'key': 'nextSkip', 'type': 'int'}, + 'next_top': {'key': 'nextTop', 'type': 'int'} + } + + def __init__(self, change_entries=None, next_skip=None, next_top=None): + super(GitPullRequestIterationChanges, self).__init__() + self.change_entries = change_entries + self.next_skip = next_skip + self.next_top = next_top + + +class GitPullRequestMergeOptions(Model): + """GitPullRequestMergeOptions. + + :param disable_renames: + :type disable_renames: bool + """ + + _attribute_map = { + 'disable_renames': {'key': 'disableRenames', 'type': 'bool'} + } + + def __init__(self, disable_renames=None): + super(GitPullRequestMergeOptions, self).__init__() + self.disable_renames = disable_renames + + +class GitPullRequestQuery(Model): + """GitPullRequestQuery. + + :param queries: The query to perform + :type queries: list of :class:`GitPullRequestQueryInput ` + :param results: The results of the query + :type results: list of {[GitPullRequest]} + """ + + _attribute_map = { + 'queries': {'key': 'queries', 'type': '[GitPullRequestQueryInput]'}, + 'results': {'key': 'results', 'type': '[{[GitPullRequest]}]'} + } + + def __init__(self, queries=None, results=None): + super(GitPullRequestQuery, self).__init__() + self.queries = queries + self.results = results + + +class GitPullRequestQueryInput(Model): + """GitPullRequestQueryInput. + + :param items: The list commit ids to search for. + :type items: list of str + :param type: The type of query to perform + :type type: object + """ + + _attribute_map = { + 'items': {'key': 'items', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, items=None, type=None): + super(GitPullRequestQueryInput, self).__init__() + self.items = items + self.type = type + + +class GitPullRequestSearchCriteria(Model): + """GitPullRequestSearchCriteria. + + :param creator_id: + :type creator_id: str + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param repository_id: + :type repository_id: str + :param reviewer_id: + :type reviewer_id: str + :param source_ref_name: + :type source_ref_name: str + :param source_repository_id: + :type source_repository_id: str + :param status: + :type status: object + :param target_ref_name: + :type target_ref_name: str + """ + + _attribute_map = { + 'creator_id': {'key': 'creatorId', 'type': 'str'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'reviewer_id': {'key': 'reviewerId', 'type': 'str'}, + 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'target_ref_name': {'key': 'targetRefName', 'type': 'str'} + } + + def __init__(self, creator_id=None, include_links=None, repository_id=None, reviewer_id=None, source_ref_name=None, source_repository_id=None, status=None, target_ref_name=None): + super(GitPullRequestSearchCriteria, self).__init__() + self.creator_id = creator_id + self.include_links = include_links + self.repository_id = repository_id + self.reviewer_id = reviewer_id + self.source_ref_name = source_ref_name + self.source_repository_id = source_repository_id + self.status = status + self.target_ref_name = target_ref_name + + +class GitPushRef(Model): + """GitPushRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: :class:`IdentityRef ` + :param push_id: + :type push_id: int + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): + super(GitPushRef, self).__init__() + self._links = _links + self.date = date + self.push_correlation_id = push_correlation_id + self.pushed_by = pushed_by + self.push_id = push_id + self.url = url + + +class GitPushSearchCriteria(Model): + """GitPushSearchCriteria. + + :param from_date: + :type from_date: datetime + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param include_ref_updates: + :type include_ref_updates: bool + :param pusher_id: + :type pusher_id: str + :param ref_name: + :type ref_name: str + :param to_date: + :type to_date: datetime + """ + + _attribute_map = { + 'from_date': {'key': 'fromDate', 'type': 'iso-8601'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_ref_updates': {'key': 'includeRefUpdates', 'type': 'bool'}, + 'pusher_id': {'key': 'pusherId', 'type': 'str'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'iso-8601'} + } + + def __init__(self, from_date=None, include_links=None, include_ref_updates=None, pusher_id=None, ref_name=None, to_date=None): + super(GitPushSearchCriteria, self).__init__() + self.from_date = from_date + self.include_links = include_links + self.include_ref_updates = include_ref_updates + self.pusher_id = pusher_id + self.ref_name = ref_name + self.to_date = to_date + + +class GitQueryBranchStatsCriteria(Model): + """GitQueryBranchStatsCriteria. + + :param base_commit: + :type base_commit: :class:`GitVersionDescriptor ` + :param target_commits: + :type target_commits: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'base_commit': {'key': 'baseCommit', 'type': 'GitVersionDescriptor'}, + 'target_commits': {'key': 'targetCommits', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, base_commit=None, target_commits=None): + super(GitQueryBranchStatsCriteria, self).__init__() + self.base_commit = base_commit + self.target_commits = target_commits + + +class GitQueryCommitsCriteria(Model): + """GitQueryCommitsCriteria. + + :param skip: Number of entries to skip + :type skip: int + :param top: Maximum number of entries to retrieve + :type top: int + :param author: Alias or display name of the author + :type author: str + :param compare_version: If provided, the earliest commit in the graph to search + :type compare_version: :class:`GitVersionDescriptor ` + :param exclude_deletes: If true, don't include delete history entries + :type exclude_deletes: bool + :param from_commit_id: If provided, a lower bound for filtering commits alphabetically + :type from_commit_id: str + :param from_date: If provided, only include history entries created after this date (string) + :type from_date: str + :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null. + :type history_mode: object + :param ids: If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters. + :type ids: list of str + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param include_work_items: Whether to include linked work items + :type include_work_items: bool + :param item_path: Path of item to search under + :type item_path: str + :param item_version: If provided, identifies the commit or branch to search + :type item_version: :class:`GitVersionDescriptor ` + :param to_commit_id: If provided, an upper bound for filtering commits alphabetically + :type to_commit_id: str + :param to_date: If provided, only include history entries created before this date (string) + :type to_date: str + :param user: Alias or display name of the committer + :type user: str + """ + + _attribute_map = { + 'skip': {'key': '$skip', 'type': 'int'}, + 'top': {'key': '$top', 'type': 'int'}, + 'author': {'key': 'author', 'type': 'str'}, + 'compare_version': {'key': 'compareVersion', 'type': 'GitVersionDescriptor'}, + 'exclude_deletes': {'key': 'excludeDeletes', 'type': 'bool'}, + 'from_commit_id': {'key': 'fromCommitId', 'type': 'str'}, + 'from_date': {'key': 'fromDate', 'type': 'str'}, + 'history_mode': {'key': 'historyMode', 'type': 'object'}, + 'ids': {'key': 'ids', 'type': '[str]'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, + 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'item_version': {'key': 'itemVersion', 'type': 'GitVersionDescriptor'}, + 'to_commit_id': {'key': 'toCommitId', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'str'}, + 'user': {'key': 'user', 'type': 'str'} + } + + def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): + super(GitQueryCommitsCriteria, self).__init__() + self.skip = skip + self.top = top + self.author = author + self.compare_version = compare_version + self.exclude_deletes = exclude_deletes + self.from_commit_id = from_commit_id + self.from_date = from_date + self.history_mode = history_mode + self.ids = ids + self.include_links = include_links + self.include_work_items = include_work_items + self.item_path = item_path + self.item_version = item_version + self.to_commit_id = to_commit_id + self.to_date = to_date + self.user = user + + +class GitRef(Model): + """GitRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param is_locked: + :type is_locked: bool + :param is_locked_by: + :type is_locked_by: :class:`IdentityRef ` + :param name: + :type name: str + :param object_id: + :type object_id: str + :param peeled_object_id: + :type peeled_object_id: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): + super(GitRef, self).__init__() + self._links = _links + self.is_locked = is_locked + self.is_locked_by = is_locked_by + self.name = name + self.object_id = object_id + self.peeled_object_id = peeled_object_id + self.statuses = statuses + self.url = url + + +class GitRefFavorite(Model): + """GitRefFavorite. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param identity_id: + :type identity_id: str + :param name: + :type name: str + :param repository_id: + :type repository_id: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, identity_id=None, name=None, repository_id=None, type=None, url=None): + super(GitRefFavorite, self).__init__() + self._links = _links + self.id = id + self.identity_id = identity_id + self.name = name + self.repository_id = repository_id + self.type = type + self.url = url + + +class GitRefUpdate(Model): + """GitRefUpdate. + + :param is_locked: + :type is_locked: bool + :param name: + :type name: str + :param new_object_id: + :type new_object_id: str + :param old_object_id: + :type old_object_id: str + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, + 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): + super(GitRefUpdate, self).__init__() + self.is_locked = is_locked + self.name = name + self.new_object_id = new_object_id + self.old_object_id = old_object_id + self.repository_id = repository_id + + +class GitRefUpdateResult(Model): + """GitRefUpdateResult. + + :param custom_message: Custom message for the result object For instance, Reason for failing. + :type custom_message: str + :param is_locked: Whether the ref is locked or not + :type is_locked: bool + :param name: Ref name + :type name: str + :param new_object_id: New object ID + :type new_object_id: str + :param old_object_id: Old object ID + :type old_object_id: str + :param rejected_by: Name of the plugin that rejected the updated. + :type rejected_by: str + :param repository_id: Repository ID + :type repository_id: str + :param success: True if the ref update succeeded, false otherwise + :type success: bool + :param update_status: Status of the update from the TFS server. + :type update_status: object + """ + + _attribute_map = { + 'custom_message': {'key': 'customMessage', 'type': 'str'}, + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, + 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, + 'rejected_by': {'key': 'rejectedBy', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'success': {'key': 'success', 'type': 'bool'}, + 'update_status': {'key': 'updateStatus', 'type': 'object'} + } + + def __init__(self, custom_message=None, is_locked=None, name=None, new_object_id=None, old_object_id=None, rejected_by=None, repository_id=None, success=None, update_status=None): + super(GitRefUpdateResult, self).__init__() + self.custom_message = custom_message + self.is_locked = is_locked + self.name = name + self.new_object_id = new_object_id + self.old_object_id = old_object_id + self.rejected_by = rejected_by + self.repository_id = repository_id + self.success = success + self.update_status = update_status + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.url = url + self.valid_remote_urls = valid_remote_urls + + +class GitRepositoryCreateOptions(Model): + """GitRepositoryCreateOptions. + + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'} + } + + def __init__(self, name=None, parent_repository=None, project=None): + super(GitRepositoryCreateOptions, self).__init__() + self.name = name + self.parent_repository = parent_repository + self.project = project + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: :class:`TeamProjectCollectionReference ` + :param id: + :type id: str + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.name = name + self.project = project + self.remote_url = remote_url + self.url = url + + +class GitRepositoryStats(Model): + """GitRepositoryStats. + + :param active_pull_requests_count: + :type active_pull_requests_count: int + :param branches_count: + :type branches_count: int + :param commits_count: + :type commits_count: int + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'active_pull_requests_count': {'key': 'activePullRequestsCount', 'type': 'int'}, + 'branches_count': {'key': 'branchesCount', 'type': 'int'}, + 'commits_count': {'key': 'commitsCount', 'type': 'int'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, active_pull_requests_count=None, branches_count=None, commits_count=None, repository_id=None): + super(GitRepositoryStats, self).__init__() + self.active_pull_requests_count = active_pull_requests_count + self.branches_count = branches_count + self.commits_count = commits_count + self.repository_id = repository_id + + +class GitRevert(GitAsyncRefOperation): + """GitRevert. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :param parameters: + :type parameters: :class:`GitAsyncRefOperationParameters ` + :param status: + :type status: object + :param url: + :type url: str + :param revert_id: + :type revert_id: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, + 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revert_id': {'key': 'revertId', 'type': 'int'} + } + + def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, revert_id=None): + super(GitRevert, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) + self.revert_id = revert_id + + +class GitStatus(Model): + """GitStatus. + + :param _links: Reference links. + :type _links: :class:`ReferenceLinks ` + :param context: Context of the status. + :type context: :class:`GitStatusContext ` + :param created_by: Identity that created the status. + :type created_by: :class:`IdentityRef ` + :param creation_date: Creation date and time of the status. + :type creation_date: datetime + :param description: Status description. Typically describes current state of the status. + :type description: str + :param id: Status identifier. + :type id: int + :param state: State of the status. + :type state: object + :param target_url: URL with status details. + :type target_url: str + :param updated_date: Last update date and time of the status. + :type updated_date: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'context': {'key': 'context', 'type': 'GitStatusContext'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'target_url': {'key': 'targetUrl', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): + super(GitStatus, self).__init__() + self._links = _links + self.context = context + self.created_by = created_by + self.creation_date = creation_date + self.description = description + self.id = id + self.state = state + self.target_url = target_url + self.updated_date = updated_date + + +class GitStatusContext(Model): + """GitStatusContext. + + :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. + :type genre: str + :param name: Name identifier of the status, cannot be null or empty. + :type name: str + """ + + _attribute_map = { + 'genre': {'key': 'genre', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, genre=None, name=None): + super(GitStatusContext, self).__init__() + self.genre = genre + self.name = name + + +class GitSuggestion(Model): + """GitSuggestion. + + :param properties: + :type properties: dict + :param type: + :type type: str + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, properties=None, type=None): + super(GitSuggestion, self).__init__() + self.properties = properties + self.type = type + + +class GitTemplate(Model): + """GitTemplate. + + :param name: Name of the Template + :type name: str + :param type: Type of the Template + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, name=None, type=None): + super(GitTemplate, self).__init__() + self.name = name + self.type = type + + +class GitTreeDiff(Model): + """GitTreeDiff. + + :param base_tree_id: ObjectId of the base tree of this diff. + :type base_tree_id: str + :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. + :type diff_entries: list of :class:`GitTreeDiffEntry ` + :param target_tree_id: ObjectId of the target tree of this diff. + :type target_tree_id: str + :param url: REST Url to this resource. + :type url: str + """ + + _attribute_map = { + 'base_tree_id': {'key': 'baseTreeId', 'type': 'str'}, + 'diff_entries': {'key': 'diffEntries', 'type': '[GitTreeDiffEntry]'}, + 'target_tree_id': {'key': 'targetTreeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, base_tree_id=None, diff_entries=None, target_tree_id=None, url=None): + super(GitTreeDiff, self).__init__() + self.base_tree_id = base_tree_id + self.diff_entries = diff_entries + self.target_tree_id = target_tree_id + self.url = url + + +class GitTreeDiffEntry(Model): + """GitTreeDiffEntry. + + :param base_object_id: SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds. + :type base_object_id: str + :param change_type: Type of change that affected this entry. + :type change_type: object + :param object_type: Object type of the tree entry. Blob, Tree or Commit("submodule") + :type object_type: object + :param path: Relative path in base and target trees. + :type path: str + :param target_object_id: SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes. + :type target_object_id: str + """ + + _attribute_map = { + 'base_object_id': {'key': 'baseObjectId', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'object_type': {'key': 'objectType', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'target_object_id': {'key': 'targetObjectId', 'type': 'str'} + } + + def __init__(self, base_object_id=None, change_type=None, object_type=None, path=None, target_object_id=None): + super(GitTreeDiffEntry, self).__init__() + self.base_object_id = base_object_id + self.change_type = change_type + self.object_type = object_type + self.path = path + self.target_object_id = target_object_id + + +class GitTreeDiffResponse(Model): + """GitTreeDiffResponse. + + :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. + :type continuation_token: list of str + :param tree_diff: + :type tree_diff: :class:`GitTreeDiff ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'tree_diff': {'key': 'treeDiff', 'type': 'GitTreeDiff'} + } + + def __init__(self, continuation_token=None, tree_diff=None): + super(GitTreeDiffResponse, self).__init__() + self.continuation_token = continuation_token + self.tree_diff = tree_diff + + +class GitTreeEntryRef(Model): + """GitTreeEntryRef. + + :param git_object_type: Blob or tree + :type git_object_type: object + :param mode: Mode represented as octal string + :type mode: str + :param object_id: SHA1 hash of git object + :type object_id: str + :param relative_path: Path relative to parent tree object + :type relative_path: str + :param size: Size of content + :type size: long + :param url: url to retrieve tree or blob + :type url: str + """ + + _attribute_map = { + 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, + 'mode': {'key': 'mode', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, git_object_type=None, mode=None, object_id=None, relative_path=None, size=None, url=None): + super(GitTreeEntryRef, self).__init__() + self.git_object_type = git_object_type + self.mode = mode + self.object_id = object_id + self.relative_path = relative_path + self.size = size + self.url = url + + +class GitTreeRef(Model): + """GitTreeRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param object_id: SHA1 hash of git object + :type object_id: str + :param size: Sum of sizes of all children + :type size: long + :param tree_entries: Blobs and trees under this tree + :type tree_entries: list of :class:`GitTreeEntryRef ` + :param url: Url to tree + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'tree_entries': {'key': 'treeEntries', 'type': '[GitTreeEntryRef]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, object_id=None, size=None, tree_entries=None, url=None): + super(GitTreeRef, self).__init__() + self._links = _links + self.object_id = object_id + self.size = size + self.tree_entries = tree_entries + self.url = url + + +class GitUserDate(Model): + """GitUserDate. + + :param date: + :type date: datetime + :param email: + :type email: str + :param name: + :type name: str + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'email': {'key': 'email', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, date=None, email=None, name=None): + super(GitUserDate, self).__init__() + self.date = date + self.email = email + self.name = name + + +class GitVersionDescriptor(Model): + """GitVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None): + super(GitVersionDescriptor, self).__init__() + self.version = version + self.version_options = version_options + self.version_type = version_type + + +class GlobalGitRepositoryKey(Model): + """GlobalGitRepositoryKey. + + :param collection_id: + :type collection_id: str + :param project_id: + :type project_id: str + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'collection_id': {'key': 'collectionId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, collection_id=None, project_id=None, repository_id=None): + super(GlobalGitRepositoryKey, self).__init__() + self.collection_id = collection_id + self.project_id = project_id + self.repository_id = repository_id + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class IdentityRefWithVote(IdentityRef): + """IdentityRefWithVote. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + :param is_required: + :type is_required: bool + :param reviewer_url: + :type reviewer_url: str + :param vote: + :type vote: int + :param voted_for: + :type voted_for: list of :class:`IdentityRefWithVote ` + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'reviewer_url': {'key': 'reviewerUrl', 'type': 'str'}, + 'vote': {'key': 'vote', 'type': 'int'}, + 'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): + super(IdentityRefWithVote, self).__init__(directory_alias=directory_alias, display_name=display_name, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) + self.is_required = is_required + self.reviewer_url = reviewer_url + self.vote = vote + self.voted_for = voted_for + + +class ImportRepositoryValidation(Model): + """ImportRepositoryValidation. + + :param git_source: + :type git_source: :class:`GitImportGitSource ` + :param password: + :type password: str + :param tfvc_source: + :type tfvc_source: :class:`GitImportTfvcSource ` + :param username: + :type username: str + """ + + _attribute_map = { + 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, + 'password': {'key': 'password', 'type': 'str'}, + 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'}, + 'username': {'key': 'username', 'type': 'str'} + } + + def __init__(self, git_source=None, password=None, tfvc_source=None, username=None): + super(ImportRepositoryValidation, self).__init__() + self.git_source = git_source + self.password = password + self.tfvc_source = tfvc_source + self.username = username + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResourceRef(Model): + """ResourceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(ResourceRef, self).__init__() + self.id = id + self.url = url + + +class ShareNotificationContext(Model): + """ShareNotificationContext. + + :param message: Optional user note or message. + :type message: str + :param receivers: Identities of users who will receive a share notification. + :type receivers: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'receivers': {'key': 'receivers', 'type': '[IdentityRef]'} + } + + def __init__(self, message=None, receivers=None): + super(ShareNotificationContext, self).__init__() + self.message = message + self.receivers = receivers + + +class SourceToTargetRef(Model): + """SourceToTargetRef. + + :param source_ref: The source ref to copy. For example, refs/heads/master. + :type source_ref: str + :param target_ref: The target ref to update. For example, refs/heads/master + :type target_ref: str + """ + + _attribute_map = { + 'source_ref': {'key': 'sourceRef', 'type': 'str'}, + 'target_ref': {'key': 'targetRef', 'type': 'str'} + } + + def __init__(self, source_ref=None, target_ref=None): + super(SourceToTargetRef, self).__init__() + self.source_ref = source_ref + self.target_ref = target_ref + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class VstsInfo(Model): + """VstsInfo. + + :param collection: + :type collection: :class:`TeamProjectCollectionReference ` + :param repository: + :type repository: :class:`GitRepository ` + :param server_url: + :type server_url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'server_url': {'key': 'serverUrl', 'type': 'str'} + } + + def __init__(self, collection=None, repository=None, server_url=None): + super(VstsInfo, self).__init__() + self.collection = collection + self.repository = repository + self.server_url = server_url + + +class WebApiCreateTagRequestData(Model): + """WebApiCreateTagRequestData. + + :param name: + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(WebApiCreateTagRequestData, self).__init__() + self.name = name + + +class WebApiTagDefinition(Model): + """WebApiTagDefinition. + + :param active: + :type active: bool + :param id: + :type id: str + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'active': {'key': 'active', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, active=None, id=None, name=None, url=None): + super(WebApiTagDefinition, self).__init__() + self.active = active + self.id = id + self.name = name + self.url = url + + +class GitBaseVersionDescriptor(GitVersionDescriptor): + """GitBaseVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + :param base_version: Version string identifier (name of tag/branch, SHA1 of commit) + :type base_version: str + :param base_version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type base_version_options: object + :param base_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type base_version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'}, + 'base_version': {'key': 'baseVersion', 'type': 'str'}, + 'base_version_options': {'key': 'baseVersionOptions', 'type': 'object'}, + 'base_version_type': {'key': 'baseVersionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None, base_version=None, base_version_options=None, base_version_type=None): + super(GitBaseVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) + self.base_version = base_version + self.base_version_options = base_version_options + self.base_version_type = base_version_type + + +class GitCommit(GitCommitRef): + """GitCommit. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: :class:`GitUserDate ` + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param commit_id: + :type commit_id: str + :param committer: + :type committer: :class:`GitUserDate ` + :param parents: + :type parents: list of str + :param remote_url: + :type remote_url: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + :param work_items: + :type work_items: list of :class:`ResourceRef ` + :param push: + :type push: :class:`GitPushRef ` + :param tree_id: + :type tree_id: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'GitUserDate'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'committer': {'key': 'committer', 'type': 'GitUserDate'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, + 'tree_id': {'key': 'treeId', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None, push=None, tree_id=None): + super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) + self.push = push + self.tree_id = tree_id + + +class GitForkRef(GitRef): + """GitForkRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param is_locked: + :type is_locked: bool + :param is_locked_by: + :type is_locked_by: :class:`IdentityRef ` + :param name: + :type name: str + :param object_id: + :type object_id: str + :param peeled_object_id: + :type peeled_object_id: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + :param repository: + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): + super(GitForkRef, self).__init__(_links=_links, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) + self.repository = repository + + +class GitItem(ItemModel): + """GitItem. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param commit_id: SHA1 of commit item was fetched at + :type commit_id: str + :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) + :type git_object_type: object + :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached + :type latest_processed_change: :class:`GitCommitRef ` + :param object_id: Git object id + :type object_id: str + :param original_object_id: Git object id + :type original_object_id: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, + 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): + super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.commit_id = commit_id + self.git_object_type = git_object_type + self.latest_processed_change = latest_processed_change + self.object_id = object_id + self.original_object_id = original_object_id + + +class GitPullRequestStatus(GitStatus): + """GitPullRequestStatus. + + :param _links: Reference links. + :type _links: :class:`ReferenceLinks ` + :param context: Context of the status. + :type context: :class:`GitStatusContext ` + :param created_by: Identity that created the status. + :type created_by: :class:`IdentityRef ` + :param creation_date: Creation date and time of the status. + :type creation_date: datetime + :param description: Status description. Typically describes current state of the status. + :type description: str + :param id: Status identifier. + :type id: int + :param state: State of the status. + :type state: object + :param target_url: URL with status details. + :type target_url: str + :param updated_date: Last update date and time of the status. + :type updated_date: datetime + :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. + :type iteration_id: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'context': {'key': 'context', 'type': 'GitStatusContext'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'target_url': {'key': 'targetUrl', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'} + } + + def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None, iteration_id=None): + super(GitPullRequestStatus, self).__init__(_links=_links, context=context, created_by=created_by, creation_date=creation_date, description=description, id=id, state=state, target_url=target_url, updated_date=updated_date) + self.iteration_id = iteration_id + + +class GitPush(GitPushRef): + """GitPush. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: :class:`IdentityRef ` + :param push_id: + :type push_id: int + :param url: + :type url: str + :param commits: + :type commits: list of :class:`GitCommitRef ` + :param ref_updates: + :type ref_updates: list of :class:`GitRefUpdate ` + :param repository: + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): + super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) + self.commits = commits + self.ref_updates = ref_updates + self.repository = repository + + +class GitTargetVersionDescriptor(GitVersionDescriptor): + """GitTargetVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + :param target_version: Version string identifier (name of tag/branch, SHA1 of commit) + :type target_version: str + :param target_version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type target_version_options: object + :param target_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type target_version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'}, + 'target_version_options': {'key': 'targetVersionOptions', 'type': 'object'}, + 'target_version_type': {'key': 'targetVersionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None, target_version=None, target_version_options=None, target_version_type=None): + super(GitTargetVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) + self.target_version = target_version + self.target_version_options = target_version_options + self.target_version_type = target_version_type + + +__all__ = [ + 'AssociatedWorkItem', + 'Attachment', + 'Change', + 'Comment', + 'CommentIterationContext', + 'CommentPosition', + 'CommentThread', + 'CommentThreadContext', + 'CommentTrackingCriteria', + 'FileContentMetadata', + 'GitAnnotatedTag', + 'GitAsyncRefOperation', + 'GitAsyncRefOperationDetail', + 'GitAsyncRefOperationParameters', + 'GitAsyncRefOperationSource', + 'GitBlobRef', + 'GitBranchStats', + 'GitCherryPick', + 'GitCommitChanges', + 'GitCommitDiffs', + 'GitCommitRef', + 'GitConflict', + 'GitDeletedRepository', + 'GitFilePathsCollection', + 'GitForkOperationStatusDetail', + 'GitForkSyncRequest', + 'GitForkSyncRequestParameters', + 'GitImportGitSource', + 'GitImportRequest', + 'GitImportRequestParameters', + 'GitImportStatusDetail', + 'GitImportTfvcSource', + 'GitItemDescriptor', + 'GitItemRequestData', + 'GitMergeOriginRef', + 'GitObject', + 'GitPullRequest', + 'GitPullRequestCommentThread', + 'GitPullRequestCommentThreadContext', + 'GitPullRequestCompletionOptions', + 'GitPullRequestIteration', + 'GitPullRequestIterationChanges', + 'GitPullRequestMergeOptions', + 'GitPullRequestQuery', + 'GitPullRequestQueryInput', + 'GitPullRequestSearchCriteria', + 'GitPushRef', + 'GitPushSearchCriteria', + 'GitQueryBranchStatsCriteria', + 'GitQueryCommitsCriteria', + 'GitRef', + 'GitRefFavorite', + 'GitRefUpdate', + 'GitRefUpdateResult', + 'GitRepository', + 'GitRepositoryCreateOptions', + 'GitRepositoryRef', + 'GitRepositoryStats', + 'GitRevert', + 'GitStatus', + 'GitStatusContext', + 'GitSuggestion', + 'GitTemplate', + 'GitTreeDiff', + 'GitTreeDiffEntry', + 'GitTreeDiffResponse', + 'GitTreeEntryRef', + 'GitTreeRef', + 'GitUserDate', + 'GitVersionDescriptor', + 'GlobalGitRepositoryKey', + 'IdentityRef', + 'IdentityRefWithVote', + 'ImportRepositoryValidation', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'ResourceRef', + 'ShareNotificationContext', + 'SourceToTargetRef', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'VstsInfo', + 'WebApiCreateTagRequestData', + 'WebApiTagDefinition', + 'GitBaseVersionDescriptor', + 'GitCommit', + 'GitForkRef', + 'GitItem', + 'GitPullRequestStatus', + 'GitPush', + 'GitTargetVersionDescriptor', +] diff --git a/vsts/vsts/notification/v4_0/models/input_values_error.py b/azure-devops/azure/devops/v4_0/identity/__init__.py similarity index 59% rename from vsts/vsts/notification/v4_0/models/input_values_error.py rename to azure-devops/azure/devops/v4_0/identity/__init__.py index e534ff53..647ffa34 100644 --- a/vsts/vsts/notification/v4_0/models/input_values_error.py +++ b/azure-devops/azure/devops/v4_0/identity/__init__.py @@ -6,20 +6,23 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .models import * - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message +__all__ = [ + 'AccessTokenResult', + 'AuthorizationGrant', + 'ChangedIdentities', + 'ChangedIdentitiesContext', + 'CreateScopeInfo', + 'FrameworkIdentityInfo', + 'GroupMembership', + 'Identity', + 'IdentityBatchInfo', + 'IdentityScope', + 'IdentitySelf', + 'IdentitySnapshot', + 'IdentityUpdateData', + 'JsonWebToken', + 'RefreshTokenGrant', + 'TenantInfo', +] diff --git a/vsts/vsts/identity/v4_0/identity_client.py b/azure-devops/azure/devops/v4_0/identity/identity_client.py similarity index 99% rename from vsts/vsts/identity/v4_0/identity_client.py rename to azure-devops/azure/devops/v4_0/identity/identity_client.py index 3d7088f4..ad037e5c 100644 --- a/vsts/vsts/identity/v4_0/identity_client.py +++ b/azure-devops/azure/devops/v4_0/identity/identity_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class IdentityClient(VssClient): +class IdentityClient(Client): """Identity :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/identity/models.py b/azure-devops/azure/devops/v4_0/identity/models.py new file mode 100644 index 00000000..e57d11f8 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/identity/models.py @@ -0,0 +1,516 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessTokenResult(Model): + """AccessTokenResult. + + :param access_token: + :type access_token: :class:`JsonWebToken ` + :param access_token_error: + :type access_token_error: object + :param authorization_id: + :type authorization_id: str + :param error_description: + :type error_description: str + :param has_error: + :type has_error: bool + :param refresh_token: + :type refresh_token: :class:`RefreshTokenGrant ` + :param token_type: + :type token_type: str + :param valid_to: + :type valid_to: datetime + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'JsonWebToken'}, + 'access_token_error': {'key': 'accessTokenError', 'type': 'object'}, + 'authorization_id': {'key': 'authorizationId', 'type': 'str'}, + 'error_description': {'key': 'errorDescription', 'type': 'str'}, + 'has_error': {'key': 'hasError', 'type': 'bool'}, + 'refresh_token': {'key': 'refreshToken', 'type': 'RefreshTokenGrant'}, + 'token_type': {'key': 'tokenType', 'type': 'str'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} + } + + def __init__(self, access_token=None, access_token_error=None, authorization_id=None, error_description=None, has_error=None, refresh_token=None, token_type=None, valid_to=None): + super(AccessTokenResult, self).__init__() + self.access_token = access_token + self.access_token_error = access_token_error + self.authorization_id = authorization_id + self.error_description = error_description + self.has_error = has_error + self.refresh_token = refresh_token + self.token_type = token_type + self.valid_to = valid_to + + +class AuthorizationGrant(Model): + """AuthorizationGrant. + + :param grant_type: + :type grant_type: object + """ + + _attribute_map = { + 'grant_type': {'key': 'grantType', 'type': 'object'} + } + + def __init__(self, grant_type=None): + super(AuthorizationGrant, self).__init__() + self.grant_type = grant_type + + +class ChangedIdentities(Model): + """ChangedIdentities. + + :param identities: Changed Identities + :type identities: list of :class:`Identity ` + :param sequence_context: Last Identity SequenceId + :type sequence_context: :class:`ChangedIdentitiesContext ` + """ + + _attribute_map = { + 'identities': {'key': 'identities', 'type': '[Identity]'}, + 'sequence_context': {'key': 'sequenceContext', 'type': 'ChangedIdentitiesContext'} + } + + def __init__(self, identities=None, sequence_context=None): + super(ChangedIdentities, self).__init__() + self.identities = identities + self.sequence_context = sequence_context + + +class ChangedIdentitiesContext(Model): + """ChangedIdentitiesContext. + + :param group_sequence_id: Last Group SequenceId + :type group_sequence_id: int + :param identity_sequence_id: Last Identity SequenceId + :type identity_sequence_id: int + """ + + _attribute_map = { + 'group_sequence_id': {'key': 'groupSequenceId', 'type': 'int'}, + 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'} + } + + def __init__(self, group_sequence_id=None, identity_sequence_id=None): + super(ChangedIdentitiesContext, self).__init__() + self.group_sequence_id = group_sequence_id + self.identity_sequence_id = identity_sequence_id + + +class CreateScopeInfo(Model): + """CreateScopeInfo. + + :param admin_group_description: + :type admin_group_description: str + :param admin_group_name: + :type admin_group_name: str + :param creator_id: + :type creator_id: str + :param parent_scope_id: + :type parent_scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: object + """ + + _attribute_map = { + 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, + 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, + 'creator_id': {'key': 'creatorId', 'type': 'str'}, + 'parent_scope_id': {'key': 'parentScopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'} + } + + def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, parent_scope_id=None, scope_name=None, scope_type=None): + super(CreateScopeInfo, self).__init__() + self.admin_group_description = admin_group_description + self.admin_group_name = admin_group_name + self.creator_id = creator_id + self.parent_scope_id = parent_scope_id + self.scope_name = scope_name + self.scope_type = scope_type + + +class FrameworkIdentityInfo(Model): + """FrameworkIdentityInfo. + + :param display_name: + :type display_name: str + :param identifier: + :type identifier: str + :param identity_type: + :type identity_type: object + :param role: + :type role: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'identity_type': {'key': 'identityType', 'type': 'object'}, + 'role': {'key': 'role', 'type': 'str'} + } + + def __init__(self, display_name=None, identifier=None, identity_type=None, role=None): + super(FrameworkIdentityInfo, self).__init__() + self.display_name = display_name + self.identifier = identifier + self.identity_type = identity_type + self.role = role + + +class GroupMembership(Model): + """GroupMembership. + + :param active: + :type active: bool + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param queried_id: + :type queried_id: str + """ + + _attribute_map = { + 'active': {'key': 'active', 'type': 'bool'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'queried_id': {'key': 'queriedId', 'type': 'str'} + } + + def __init__(self, active=None, descriptor=None, id=None, queried_id=None): + super(GroupMembership, self).__init__() + self.active = active + self.descriptor = descriptor + self.id = id + self.queried_id = queried_id + + +class Identity(Model): + """Identity. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(Identity, self).__init__() + self.custom_display_name = custom_display_name + self.descriptor = descriptor + self.id = id + self.is_active = is_active + self.is_container = is_container + self.master_id = master_id + self.member_ids = member_ids + self.member_of = member_of + self.members = members + self.meta_type_id = meta_type_id + self.properties = properties + self.provider_display_name = provider_display_name + self.resource_version = resource_version + self.subject_descriptor = subject_descriptor + self.unique_user_id = unique_user_id + + +class IdentityBatchInfo(Model): + """IdentityBatchInfo. + + :param descriptors: + :type descriptors: list of :class:`str ` + :param identity_ids: + :type identity_ids: list of str + :param include_restricted_visibility: + :type include_restricted_visibility: bool + :param property_names: + :type property_names: list of str + :param query_membership: + :type query_membership: object + """ + + _attribute_map = { + 'descriptors': {'key': 'descriptors', 'type': '[str]'}, + 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, + 'include_restricted_visibility': {'key': 'includeRestrictedVisibility', 'type': 'bool'}, + 'property_names': {'key': 'propertyNames', 'type': '[str]'}, + 'query_membership': {'key': 'queryMembership', 'type': 'object'} + } + + def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None): + super(IdentityBatchInfo, self).__init__() + self.descriptors = descriptors + self.identity_ids = identity_ids + self.include_restricted_visibility = include_restricted_visibility + self.property_names = property_names + self.query_membership = query_membership + + +class IdentityScope(Model): + """IdentityScope. + + :param administrators: + :type administrators: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_global: + :type is_global: bool + :param local_scope_id: + :type local_scope_id: str + :param name: + :type name: str + :param parent_id: + :type parent_id: str + :param scope_type: + :type scope_type: object + :param securing_host_id: + :type securing_host_id: str + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + """ + + _attribute_map = { + 'administrators': {'key': 'administrators', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_global': {'key': 'isGlobal', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'} + } + + def __init__(self, administrators=None, id=None, is_active=None, is_global=None, local_scope_id=None, name=None, parent_id=None, scope_type=None, securing_host_id=None, subject_descriptor=None): + super(IdentityScope, self).__init__() + self.administrators = administrators + self.id = id + self.is_active = is_active + self.is_global = is_global + self.local_scope_id = local_scope_id + self.name = name + self.parent_id = parent_id + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.subject_descriptor = subject_descriptor + + +class IdentitySelf(Model): + """IdentitySelf. + + :param account_name: + :type account_name: str + :param display_name: + :type display_name: str + :param id: + :type id: str + :param tenants: + :type tenants: list of :class:`TenantInfo ` + """ + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'tenants': {'key': 'tenants', 'type': '[TenantInfo]'} + } + + def __init__(self, account_name=None, display_name=None, id=None, tenants=None): + super(IdentitySelf, self).__init__() + self.account_name = account_name + self.display_name = display_name + self.id = id + self.tenants = tenants + + +class IdentitySnapshot(Model): + """IdentitySnapshot. + + :param groups: + :type groups: list of :class:`Identity ` + :param identity_ids: + :type identity_ids: list of str + :param memberships: + :type memberships: list of :class:`GroupMembership ` + :param scope_id: + :type scope_id: str + :param scopes: + :type scopes: list of :class:`IdentityScope ` + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Identity]'}, + 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, + 'memberships': {'key': 'memberships', 'type': '[GroupMembership]'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[IdentityScope]'} + } + + def __init__(self, groups=None, identity_ids=None, memberships=None, scope_id=None, scopes=None): + super(IdentitySnapshot, self).__init__() + self.groups = groups + self.identity_ids = identity_ids + self.memberships = memberships + self.scope_id = scope_id + self.scopes = scopes + + +class IdentityUpdateData(Model): + """IdentityUpdateData. + + :param id: + :type id: str + :param index: + :type index: int + :param updated: + :type updated: bool + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'updated': {'key': 'updated', 'type': 'bool'} + } + + def __init__(self, id=None, index=None, updated=None): + super(IdentityUpdateData, self).__init__() + self.id = id + self.index = index + self.updated = updated + + +class JsonWebToken(Model): + """JsonWebToken. + + """ + + _attribute_map = { + } + + def __init__(self): + super(JsonWebToken, self).__init__() + + +class RefreshTokenGrant(AuthorizationGrant): + """RefreshTokenGrant. + + :param grant_type: + :type grant_type: object + :param jwt: + :type jwt: :class:`JsonWebToken ` + """ + + _attribute_map = { + 'grant_type': {'key': 'grantType', 'type': 'object'}, + 'jwt': {'key': 'jwt', 'type': 'JsonWebToken'} + } + + def __init__(self, grant_type=None, jwt=None): + super(RefreshTokenGrant, self).__init__(grant_type=grant_type) + self.jwt = jwt + + +class TenantInfo(Model): + """TenantInfo. + + :param home_tenant: + :type home_tenant: bool + :param tenant_id: + :type tenant_id: str + :param tenant_name: + :type tenant_name: str + """ + + _attribute_map = { + 'home_tenant': {'key': 'homeTenant', 'type': 'bool'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'tenant_name': {'key': 'tenantName', 'type': 'str'} + } + + def __init__(self, home_tenant=None, tenant_id=None, tenant_name=None): + super(TenantInfo, self).__init__() + self.home_tenant = home_tenant + self.tenant_id = tenant_id + self.tenant_name = tenant_name + + +__all__ = [ + 'AccessTokenResult', + 'AuthorizationGrant', + 'ChangedIdentities', + 'ChangedIdentitiesContext', + 'CreateScopeInfo', + 'FrameworkIdentityInfo', + 'GroupMembership', + 'Identity', + 'IdentityBatchInfo', + 'IdentityScope', + 'IdentitySelf', + 'IdentitySnapshot', + 'IdentityUpdateData', + 'JsonWebToken', + 'RefreshTokenGrant', + 'TenantInfo', +] diff --git a/vsts/vsts/accounts/v4_1/models/__init__.py b/azure-devops/azure/devops/v4_0/licensing/__init__.py similarity index 54% rename from vsts/vsts/accounts/v4_1/models/__init__.py rename to azure-devops/azure/devops/v4_0/licensing/__init__.py index 2c3eee0b..1cb3ee33 100644 --- a/vsts/vsts/accounts/v4_1/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/licensing/__init__.py @@ -6,12 +6,24 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .account import Account -from .account_create_info_internal import AccountCreateInfoInternal -from .account_preferences_internal import AccountPreferencesInternal +from .models import * __all__ = [ - 'Account', - 'AccountCreateInfoInternal', - 'AccountPreferencesInternal', + 'AccountEntitlement', + 'AccountEntitlementUpdateModel', + 'AccountLicenseExtensionUsage', + 'AccountLicenseUsage', + 'AccountRights', + 'AccountUserLicense', + 'ClientRightsContainer', + 'ExtensionAssignment', + 'ExtensionAssignmentDetails', + 'ExtensionLicenseData', + 'ExtensionOperationResult', + 'ExtensionRightsResult', + 'ExtensionSource', + 'IdentityRef', + 'IUsageRight', + 'License', + 'MsdnEntitlement', ] diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/azure-devops/azure/devops/v4_0/licensing/licensing_client.py similarity index 99% rename from vsts/vsts/licensing/v4_0/licensing_client.py rename to azure-devops/azure/devops/v4_0/licensing/licensing_client.py index aa151162..36ce8e79 100644 --- a/vsts/vsts/licensing/v4_0/licensing_client.py +++ b/azure-devops/azure/devops/v4_0/licensing/licensing_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class LicensingClient(VssClient): +class LicensingClient(Client): """Licensing :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/licensing/models.py b/azure-devops/azure/devops/v4_0/licensing/models.py new file mode 100644 index 00000000..7c1ddb49 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/licensing/models.py @@ -0,0 +1,554 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountEntitlement(Model): + """AccountEntitlement. + + :param account_id: Gets or sets the id of the account to which the license belongs + :type account_id: str + :param assignment_date: Gets or sets the date the license was assigned + :type assignment_date: datetime + :param assignment_source: Assignment Source + :type assignment_source: object + :param last_accessed_date: Gets or sets the date of the user last sign-in to this account + :type last_accessed_date: datetime + :param license: + :type license: :class:`License ` + :param rights: The computed rights of this user in the account. + :type rights: :class:`AccountRights ` + :param status: The status of the user in the account + :type status: object + :param user: Identity information of the user to which the license belongs + :type user: :class:`IdentityRef ` + :param user_id: Gets the id of the user to which the license belongs + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'license': {'key': 'license', 'type': 'License'}, + 'rights': {'key': 'rights', 'type': 'AccountRights'}, + 'status': {'key': 'status', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, rights=None, status=None, user=None, user_id=None): + super(AccountEntitlement, self).__init__() + self.account_id = account_id + self.assignment_date = assignment_date + self.assignment_source = assignment_source + self.last_accessed_date = last_accessed_date + self.license = license + self.rights = rights + self.status = status + self.user = user + self.user_id = user_id + + +class AccountEntitlementUpdateModel(Model): + """AccountEntitlementUpdateModel. + + :param license: Gets or sets the license for the entitlement + :type license: :class:`License ` + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'License'} + } + + def __init__(self, license=None): + super(AccountEntitlementUpdateModel, self).__init__() + self.license = license + + +class AccountLicenseExtensionUsage(Model): + """AccountLicenseExtensionUsage. + + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param included_quantity: + :type included_quantity: int + :param is_trial: + :type is_trial: bool + :param minimum_license_required: + :type minimum_license_required: object + :param msdn_used_count: + :type msdn_used_count: int + :param provisioned_count: + :type provisioned_count: int + :param remaining_trial_days: + :type remaining_trial_days: int + :param trial_expiry_date: + :type trial_expiry_date: datetime + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'is_trial': {'key': 'isTrial', 'type': 'bool'}, + 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, + 'msdn_used_count': {'key': 'msdnUsedCount', 'type': 'int'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, + 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, extension_id=None, extension_name=None, included_quantity=None, is_trial=None, minimum_license_required=None, msdn_used_count=None, provisioned_count=None, remaining_trial_days=None, trial_expiry_date=None, used_count=None): + super(AccountLicenseExtensionUsage, self).__init__() + self.extension_id = extension_id + self.extension_name = extension_name + self.included_quantity = included_quantity + self.is_trial = is_trial + self.minimum_license_required = minimum_license_required + self.msdn_used_count = msdn_used_count + self.provisioned_count = provisioned_count + self.remaining_trial_days = remaining_trial_days + self.trial_expiry_date = trial_expiry_date + self.used_count = used_count + + +class AccountLicenseUsage(Model): + """AccountLicenseUsage. + + :param license: + :type license: :class:`AccountUserLicense ` + :param provisioned_count: + :type provisioned_count: int + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'AccountUserLicense'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, license=None, provisioned_count=None, used_count=None): + super(AccountLicenseUsage, self).__init__() + self.license = license + self.provisioned_count = provisioned_count + self.used_count = used_count + + +class AccountRights(Model): + """AccountRights. + + :param level: + :type level: object + :param reason: + :type reason: str + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, level=None, reason=None): + super(AccountRights, self).__init__() + self.level = level + self.reason = reason + + +class AccountUserLicense(Model): + """AccountUserLicense. + + :param license: + :type license: int + :param source: + :type source: object + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, license=None, source=None): + super(AccountUserLicense, self).__init__() + self.license = license + self.source = source + + +class ClientRightsContainer(Model): + """ClientRightsContainer. + + :param certificate_bytes: + :type certificate_bytes: str + :param token: + :type token: str + """ + + _attribute_map = { + 'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, certificate_bytes=None, token=None): + super(ClientRightsContainer, self).__init__() + self.certificate_bytes = certificate_bytes + self.token = token + + +class ExtensionAssignment(Model): + """ExtensionAssignment. + + :param extension_gallery_id: Gets or sets the extension ID to assign. + :type extension_gallery_id: str + :param is_auto_assignment: Set to true if this a auto assignment scenario. + :type is_auto_assignment: bool + :param licensing_source: Gets or sets the licensing source. + :type licensing_source: object + :param user_ids: Gets or sets the user IDs to assign the extension to. + :type user_ids: list of str + """ + + _attribute_map = { + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'is_auto_assignment': {'key': 'isAutoAssignment', 'type': 'bool'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'user_ids': {'key': 'userIds', 'type': '[str]'} + } + + def __init__(self, extension_gallery_id=None, is_auto_assignment=None, licensing_source=None, user_ids=None): + super(ExtensionAssignment, self).__init__() + self.extension_gallery_id = extension_gallery_id + self.is_auto_assignment = is_auto_assignment + self.licensing_source = licensing_source + self.user_ids = user_ids + + +class ExtensionAssignmentDetails(Model): + """ExtensionAssignmentDetails. + + :param assignment_status: + :type assignment_status: object + :param source_collection_name: + :type source_collection_name: str + """ + + _attribute_map = { + 'assignment_status': {'key': 'assignmentStatus', 'type': 'object'}, + 'source_collection_name': {'key': 'sourceCollectionName', 'type': 'str'} + } + + def __init__(self, assignment_status=None, source_collection_name=None): + super(ExtensionAssignmentDetails, self).__init__() + self.assignment_status = assignment_status + self.source_collection_name = source_collection_name + + +class ExtensionLicenseData(Model): + """ExtensionLicenseData. + + :param created_date: + :type created_date: datetime + :param extension_id: + :type extension_id: str + :param is_free: + :type is_free: bool + :param minimum_required_access_level: + :type minimum_required_access_level: object + :param updated_date: + :type updated_date: datetime + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'is_free': {'key': 'isFree', 'type': 'bool'}, + 'minimum_required_access_level': {'key': 'minimumRequiredAccessLevel', 'type': 'object'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, created_date=None, extension_id=None, is_free=None, minimum_required_access_level=None, updated_date=None): + super(ExtensionLicenseData, self).__init__() + self.created_date = created_date + self.extension_id = extension_id + self.is_free = is_free + self.minimum_required_access_level = minimum_required_access_level + self.updated_date = updated_date + + +class ExtensionOperationResult(Model): + """ExtensionOperationResult. + + :param account_id: + :type account_id: str + :param extension_id: + :type extension_id: str + :param message: + :type message: str + :param operation: + :type operation: object + :param result: + :type result: object + :param user_id: + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'result': {'key': 'result', 'type': 'object'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, extension_id=None, message=None, operation=None, result=None, user_id=None): + super(ExtensionOperationResult, self).__init__() + self.account_id = account_id + self.extension_id = extension_id + self.message = message + self.operation = operation + self.result = result + self.user_id = user_id + + +class ExtensionRightsResult(Model): + """ExtensionRightsResult. + + :param entitled_extensions: + :type entitled_extensions: list of str + :param host_id: + :type host_id: str + :param reason: + :type reason: str + :param reason_code: + :type reason_code: object + :param result_code: + :type result_code: object + """ + + _attribute_map = { + 'entitled_extensions': {'key': 'entitledExtensions', 'type': '[str]'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reason_code': {'key': 'reasonCode', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'object'} + } + + def __init__(self, entitled_extensions=None, host_id=None, reason=None, reason_code=None, result_code=None): + super(ExtensionRightsResult, self).__init__() + self.entitled_extensions = entitled_extensions + self.host_id = host_id + self.reason = reason + self.reason_code = reason_code + self.result_code = result_code + + +class ExtensionSource(Model): + """ExtensionSource. + + :param assignment_source: Assignment Source + :type assignment_source: object + :param extension_gallery_id: extension Identifier + :type extension_gallery_id: str + :param licensing_source: The licensing source of the extension. Account, Msdn, ect. + :type licensing_source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'} + } + + def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_source=None): + super(ExtensionSource, self).__init__() + self.assignment_source = assignment_source + self.extension_gallery_id = extension_gallery_id + self.licensing_source = licensing_source + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class IUsageRight(Model): + """IUsageRight. + + :param attributes: Rights data + :type attributes: dict + :param expiration_date: Rights expiration + :type expiration_date: datetime + :param name: Name, uniquely identifying a usage right + :type name: str + :param version: Version + :type version: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, attributes=None, expiration_date=None, name=None, version=None): + super(IUsageRight, self).__init__() + self.attributes = attributes + self.expiration_date = expiration_date + self.name = name + self.version = version + + +class License(Model): + """License. + + :param source: Gets the source of the license + :type source: object + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, source=None): + super(License, self).__init__() + self.source = source + + +class MsdnEntitlement(Model): + """MsdnEntitlement. + + :param entitlement_code: Entilement id assigned to Entitlement in Benefits Database. + :type entitlement_code: str + :param entitlement_name: Entitlement Name e.g. Downloads, Chat. + :type entitlement_name: str + :param entitlement_type: Type of Entitlement e.g. Downloads, Chat. + :type entitlement_type: str + :param is_activated: Entitlement activation status + :type is_activated: bool + :param is_entitlement_available: Entitlement availability + :type is_entitlement_available: bool + :param subscription_channel: Write MSDN Channel into CRCT (Retail,MPN,VL,BizSpark,DreamSpark,MCT,FTE,Technet,WebsiteSpark,Other) + :type subscription_channel: str + :param subscription_expiration_date: Subscription Expiration Date. + :type subscription_expiration_date: datetime + :param subscription_id: Subscription id which identifies the subscription itself. This is the Benefit Detail Guid from BMS. + :type subscription_id: str + :param subscription_level_code: Identifier of the subscription or benefit level. + :type subscription_level_code: str + :param subscription_level_name: Name of subscription level. + :type subscription_level_name: str + :param subscription_status: Subscription Status Code (ACT, PND, INA ...). + :type subscription_status: str + """ + + _attribute_map = { + 'entitlement_code': {'key': 'entitlementCode', 'type': 'str'}, + 'entitlement_name': {'key': 'entitlementName', 'type': 'str'}, + 'entitlement_type': {'key': 'entitlementType', 'type': 'str'}, + 'is_activated': {'key': 'isActivated', 'type': 'bool'}, + 'is_entitlement_available': {'key': 'isEntitlementAvailable', 'type': 'bool'}, + 'subscription_channel': {'key': 'subscriptionChannel', 'type': 'str'}, + 'subscription_expiration_date': {'key': 'subscriptionExpirationDate', 'type': 'iso-8601'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_level_code': {'key': 'subscriptionLevelCode', 'type': 'str'}, + 'subscription_level_name': {'key': 'subscriptionLevelName', 'type': 'str'}, + 'subscription_status': {'key': 'subscriptionStatus', 'type': 'str'} + } + + def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_type=None, is_activated=None, is_entitlement_available=None, subscription_channel=None, subscription_expiration_date=None, subscription_id=None, subscription_level_code=None, subscription_level_name=None, subscription_status=None): + super(MsdnEntitlement, self).__init__() + self.entitlement_code = entitlement_code + self.entitlement_name = entitlement_name + self.entitlement_type = entitlement_type + self.is_activated = is_activated + self.is_entitlement_available = is_entitlement_available + self.subscription_channel = subscription_channel + self.subscription_expiration_date = subscription_expiration_date + self.subscription_id = subscription_id + self.subscription_level_code = subscription_level_code + self.subscription_level_name = subscription_level_name + self.subscription_status = subscription_status + + +__all__ = [ + 'AccountEntitlement', + 'AccountEntitlementUpdateModel', + 'AccountLicenseExtensionUsage', + 'AccountLicenseUsage', + 'AccountRights', + 'AccountUserLicense', + 'ClientRightsContainer', + 'ExtensionAssignment', + 'ExtensionAssignmentDetails', + 'ExtensionLicenseData', + 'ExtensionOperationResult', + 'ExtensionRightsResult', + 'ExtensionSource', + 'IdentityRef', + 'IUsageRight', + 'License', + 'MsdnEntitlement', +] diff --git a/azure-devops/azure/devops/v4_0/location/__init__.py b/azure-devops/azure/devops/v4_0/location/__init__.py new file mode 100644 index 00000000..a4976dc5 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/location/__init__.py @@ -0,0 +1,19 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccessMapping', + 'ConnectionData', + 'Identity', + 'LocationMapping', + 'LocationServiceData', + 'ResourceAreaInfo', + 'ServiceDefinition', +] diff --git a/vsts/vsts/location/v4_0/location_client.py b/azure-devops/azure/devops/v4_0/location/location_client.py similarity index 98% rename from vsts/vsts/location/v4_0/location_client.py rename to azure-devops/azure/devops/v4_0/location/location_client.py index 67c7d0df..49e69f2a 100644 --- a/vsts/vsts/location/v4_0/location_client.py +++ b/azure-devops/azure/devops/v4_0/location/location_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class LocationClient(VssClient): +class LocationClient(Client): """Location :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/location/models.py b/azure-devops/azure/devops/v4_0/location/models.py new file mode 100644 index 00000000..c5447324 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/location/models.py @@ -0,0 +1,336 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessMapping(Model): + """AccessMapping. + + :param access_point: + :type access_point: str + :param display_name: + :type display_name: str + :param moniker: + :type moniker: str + :param service_owner: The service which owns this access mapping e.g. TFS, ELS, etc. + :type service_owner: str + :param virtual_directory: Part of the access mapping which applies context after the access point of the server. + :type virtual_directory: str + """ + + _attribute_map = { + 'access_point': {'key': 'accessPoint', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'moniker': {'key': 'moniker', 'type': 'str'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, + 'virtual_directory': {'key': 'virtualDirectory', 'type': 'str'} + } + + def __init__(self, access_point=None, display_name=None, moniker=None, service_owner=None, virtual_directory=None): + super(AccessMapping, self).__init__() + self.access_point = access_point + self.display_name = display_name + self.moniker = moniker + self.service_owner = service_owner + self.virtual_directory = virtual_directory + + +class ConnectionData(Model): + """ConnectionData. + + :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service + :type authenticated_user: :class:`Identity ` + :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service + :type authorized_user: :class:`Identity ` + :param deployment_id: The id for the server. + :type deployment_id: str + :param instance_id: The instance id for this host. + :type instance_id: str + :param last_user_access: The last user access for this instance. Null if not requested specifically. + :type last_user_access: datetime + :param location_service_data: Data that the location service holds. + :type location_service_data: :class:`LocationServiceData ` + :param web_application_relative_directory: The virtual directory of the host we are talking to. + :type web_application_relative_directory: str + """ + + _attribute_map = { + 'authenticated_user': {'key': 'authenticatedUser', 'type': 'Identity'}, + 'authorized_user': {'key': 'authorizedUser', 'type': 'Identity'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'str'}, + 'instance_id': {'key': 'instanceId', 'type': 'str'}, + 'last_user_access': {'key': 'lastUserAccess', 'type': 'iso-8601'}, + 'location_service_data': {'key': 'locationServiceData', 'type': 'LocationServiceData'}, + 'web_application_relative_directory': {'key': 'webApplicationRelativeDirectory', 'type': 'str'} + } + + def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): + super(ConnectionData, self).__init__() + self.authenticated_user = authenticated_user + self.authorized_user = authorized_user + self.deployment_id = deployment_id + self.instance_id = instance_id + self.last_user_access = last_user_access + self.location_service_data = location_service_data + self.web_application_relative_directory = web_application_relative_directory + + +class Identity(Model): + """Identity. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(Identity, self).__init__() + self.custom_display_name = custom_display_name + self.descriptor = descriptor + self.id = id + self.is_active = is_active + self.is_container = is_container + self.master_id = master_id + self.member_ids = member_ids + self.member_of = member_of + self.members = members + self.meta_type_id = meta_type_id + self.properties = properties + self.provider_display_name = provider_display_name + self.resource_version = resource_version + self.subject_descriptor = subject_descriptor + self.unique_user_id = unique_user_id + + +class LocationMapping(Model): + """LocationMapping. + + :param access_mapping_moniker: + :type access_mapping_moniker: str + :param location: + :type location: str + """ + + _attribute_map = { + 'access_mapping_moniker': {'key': 'accessMappingMoniker', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, access_mapping_moniker=None, location=None): + super(LocationMapping, self).__init__() + self.access_mapping_moniker = access_mapping_moniker + self.location = location + + +class LocationServiceData(Model): + """LocationServiceData. + + :param access_mappings: Data about the access mappings contained by this location service. + :type access_mappings: list of :class:`AccessMapping ` + :param client_cache_fresh: Data that the location service holds. + :type client_cache_fresh: bool + :param client_cache_time_to_live: The time to live on the location service cache. + :type client_cache_time_to_live: int + :param default_access_mapping_moniker: The default access mapping moniker for the server. + :type default_access_mapping_moniker: str + :param last_change_id: The obsolete id for the last change that took place on the server (use LastChangeId64). + :type last_change_id: int + :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. + :type last_change_id64: long + :param service_definitions: Data about the service definitions contained by this location service. + :type service_definitions: list of :class:`ServiceDefinition ` + :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) + :type service_owner: str + """ + + _attribute_map = { + 'access_mappings': {'key': 'accessMappings', 'type': '[AccessMapping]'}, + 'client_cache_fresh': {'key': 'clientCacheFresh', 'type': 'bool'}, + 'client_cache_time_to_live': {'key': 'clientCacheTimeToLive', 'type': 'int'}, + 'default_access_mapping_moniker': {'key': 'defaultAccessMappingMoniker', 'type': 'str'}, + 'last_change_id': {'key': 'lastChangeId', 'type': 'int'}, + 'last_change_id64': {'key': 'lastChangeId64', 'type': 'long'}, + 'service_definitions': {'key': 'serviceDefinitions', 'type': '[ServiceDefinition]'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'} + } + + def __init__(self, access_mappings=None, client_cache_fresh=None, client_cache_time_to_live=None, default_access_mapping_moniker=None, last_change_id=None, last_change_id64=None, service_definitions=None, service_owner=None): + super(LocationServiceData, self).__init__() + self.access_mappings = access_mappings + self.client_cache_fresh = client_cache_fresh + self.client_cache_time_to_live = client_cache_time_to_live + self.default_access_mapping_moniker = default_access_mapping_moniker + self.last_change_id = last_change_id + self.last_change_id64 = last_change_id64 + self.service_definitions = service_definitions + self.service_owner = service_owner + + +class ResourceAreaInfo(Model): + """ResourceAreaInfo. + + :param id: + :type id: str + :param location_url: + :type location_url: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location_url': {'key': 'locationUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, location_url=None, name=None): + super(ResourceAreaInfo, self).__init__() + self.id = id + self.location_url = location_url + self.name = name + + +class ServiceDefinition(Model): + """ServiceDefinition. + + :param description: + :type description: str + :param display_name: + :type display_name: str + :param identifier: + :type identifier: str + :param inherit_level: + :type inherit_level: object + :param location_mappings: + :type location_mappings: list of :class:`LocationMapping ` + :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. + :type max_version: str + :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. + :type min_version: str + :param parent_identifier: + :type parent_identifier: str + :param parent_service_type: + :type parent_service_type: str + :param properties: + :type properties: :class:`object ` + :param relative_path: + :type relative_path: str + :param relative_to_setting: + :type relative_to_setting: object + :param released_version: The latest version of this resource location that is in "Release" (non-preview) mode. Copied from ApiResourceLocation. + :type released_version: str + :param resource_version: The current resource version supported by this resource location. Copied from ApiResourceLocation. + :type resource_version: int + :param service_owner: The service which owns this definition e.g. TFS, ELS, etc. + :type service_owner: str + :param service_type: + :type service_type: str + :param status: + :type status: object + :param tool_id: + :type tool_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'inherit_level': {'key': 'inheritLevel', 'type': 'object'}, + 'location_mappings': {'key': 'locationMappings', 'type': '[LocationMapping]'}, + 'max_version': {'key': 'maxVersion', 'type': 'str'}, + 'min_version': {'key': 'minVersion', 'type': 'str'}, + 'parent_identifier': {'key': 'parentIdentifier', 'type': 'str'}, + 'parent_service_type': {'key': 'parentServiceType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'}, + 'relative_to_setting': {'key': 'relativeToSetting', 'type': 'object'}, + 'released_version': {'key': 'releasedVersion', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, + 'service_type': {'key': 'serviceType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tool_id': {'key': 'toolId', 'type': 'str'} + } + + def __init__(self, description=None, display_name=None, identifier=None, inherit_level=None, location_mappings=None, max_version=None, min_version=None, parent_identifier=None, parent_service_type=None, properties=None, relative_path=None, relative_to_setting=None, released_version=None, resource_version=None, service_owner=None, service_type=None, status=None, tool_id=None): + super(ServiceDefinition, self).__init__() + self.description = description + self.display_name = display_name + self.identifier = identifier + self.inherit_level = inherit_level + self.location_mappings = location_mappings + self.max_version = max_version + self.min_version = min_version + self.parent_identifier = parent_identifier + self.parent_service_type = parent_service_type + self.properties = properties + self.relative_path = relative_path + self.relative_to_setting = relative_to_setting + self.released_version = released_version + self.resource_version = resource_version + self.service_owner = service_owner + self.service_type = service_type + self.status = status + self.tool_id = tool_id + + +__all__ = [ + 'AccessMapping', + 'ConnectionData', + 'Identity', + 'LocationMapping', + 'LocationServiceData', + 'ResourceAreaInfo', + 'ServiceDefinition', +] diff --git a/vsts/vsts/feature_management/v4_1/models/__init__.py b/azure-devops/azure/devops/v4_0/member_entitlement_management/__init__.py similarity index 51% rename from vsts/vsts/feature_management/v4_1/models/__init__.py rename to azure-devops/azure/devops/v4_0/member_entitlement_management/__init__.py index a5e7f615..354b306a 100644 --- a/vsts/vsts/feature_management/v4_1/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/member_entitlement_management/__init__.py @@ -6,18 +6,29 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .contributed_feature import ContributedFeature -from .contributed_feature_setting_scope import ContributedFeatureSettingScope -from .contributed_feature_state import ContributedFeatureState -from .contributed_feature_state_query import ContributedFeatureStateQuery -from .contributed_feature_value_rule import ContributedFeatureValueRule -from .reference_links import ReferenceLinks +from .models import * __all__ = [ - 'ContributedFeature', - 'ContributedFeatureSettingScope', - 'ContributedFeatureState', - 'ContributedFeatureStateQuery', - 'ContributedFeatureValueRule', + 'AccessLevel', + 'BaseOperationResult', + 'Extension', + 'GraphGroup', + 'GraphMember', + 'GraphSubject', + 'Group', + 'GroupEntitlement', + 'GroupEntitlementOperationReference', + 'GroupOperationResult', + 'JsonPatchOperation', + 'MemberEntitlement', + 'MemberEntitlementOperationReference', + 'MemberEntitlementsPatchResponse', + 'MemberEntitlementsPostResponse', + 'MemberEntitlementsResponseBase', + 'OperationReference', + 'OperationResult', + 'ProjectEntitlement', + 'ProjectRef', 'ReferenceLinks', + 'TeamRef', ] diff --git a/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py b/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py similarity index 99% rename from vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py rename to azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py index c79016bd..2edd46f5 100644 --- a/vsts/vsts/member_entitlement_management/v4_0/member_entitlement_management_client.py +++ b/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class MemberEntitlementManagementClient(VssClient): +class MemberEntitlementManagementClient(Client): """MemberEntitlementManagement :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py b/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py new file mode 100644 index 00000000..2e8821ac --- /dev/null +++ b/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py @@ -0,0 +1,674 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessLevel(Model): + """AccessLevel. + + :param account_license_type: + :type account_license_type: object + :param assignment_source: + :type assignment_source: object + :param license_display_name: + :type license_display_name: str + :param licensing_source: + :type licensing_source: object + :param msdn_license_type: + :type msdn_license_type: object + :param status: + :type status: object + :param status_message: + :type status_message: str + """ + + _attribute_map = { + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'} + } + + def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): + super(AccessLevel, self).__init__() + self.account_license_type = account_license_type + self.assignment_source = assignment_source + self.license_display_name = license_display_name + self.licensing_source = licensing_source + self.msdn_license_type = msdn_license_type + self.status = status + self.status_message = status_message + + +class BaseOperationResult(Model): + """BaseOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'} + } + + def __init__(self, errors=None, is_success=None): + super(BaseOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + + +class Extension(Model): + """Extension. + + :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule + :type assignment_source: object + :param id: Gallery Id of the Extension + :type id: str + :param name: Friendly name of this extension + :type name: str + :param source: Source of this extension assignment. Ex: msdn, account, none, ect. + :type source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, assignment_source=None, id=None, name=None, source=None): + super(Extension, self).__init__() + self.assignment_source = assignment_source + self.id = id + self.name = name + self.source = source + + +class GraphSubject(Model): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None): + super(GraphSubject, self).__init__() + self._links = _links + self.descriptor = descriptor + self.display_name = display_name + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind + self.url = url + + +class Group(Model): + """Group. + + :param display_name: + :type display_name: str + :param group_type: + :type group_type: object + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'group_type': {'key': 'groupType', 'type': 'object'} + } + + def __init__(self, display_name=None, group_type=None): + super(Group, self).__init__() + self.display_name = display_name + self.group_type = group_type + + +class GroupEntitlement(Model): + """GroupEntitlement. + + :param extension_rules: Extension Rules + :type extension_rules: list of :class:`Extension ` + :param group: Member reference + :type group: :class:`GraphGroup ` + :param id: The unique identifier which matches the Id of the GraphMember + :type id: str + :param license_rule: License Rule + :type license_rule: :class:`AccessLevel ` + :param project_entitlements: Relation between a project and the member's effective permissions in that project + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param status: + :type status: object + """ + + _attribute_map = { + 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, + 'group': {'key': 'group', 'type': 'GraphGroup'}, + 'id': {'key': 'id', 'type': 'str'}, + 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, extension_rules=None, group=None, id=None, license_rule=None, project_entitlements=None, status=None): + super(GroupEntitlement, self).__init__() + self.extension_rules = extension_rules + self.group = group + self.id = id + self.license_rule = license_rule + self.project_entitlements = project_entitlements + self.status = status + + +class GroupOperationResult(BaseOperationResult): + """GroupOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + :param group_id: Identifier of the Group being acted upon + :type group_id: str + :param result: Result of the Groupentitlement after the operation + :type result: :class:`GroupEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'GroupEntitlement'} + } + + def __init__(self, errors=None, is_success=None, group_id=None, result=None): + super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) + self.group_id = group_id + self.result = result + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MemberEntitlement(Model): + """MemberEntitlement. + + :param access_level: Member's access level denoted by a license + :type access_level: :class:`AccessLevel ` + :param extensions: Member's extensions + :type extensions: list of :class:`Extension ` + :param group_assignments: GroupEntitlements that this member belongs to + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the GraphMember + :type id: str + :param last_accessed_date: Date the Member last access the collection + :type last_accessed_date: datetime + :param member: Member reference + :type member: :class:`GraphMember ` + :param project_entitlements: Relation between a project and the member's effective permissions in that project + :type project_entitlements: list of :class:`ProjectEntitlement ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'member': {'key': 'member', 'type': 'GraphMember'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'} + } + + def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, member=None, project_entitlements=None): + super(MemberEntitlement, self).__init__() + self.access_level = access_level + self.extensions = extensions + self.group_assignments = group_assignments + self.id = id + self.last_accessed_date = last_accessed_date + self.member = member + self.project_entitlements = project_entitlements + + +class MemberEntitlementsResponseBase(Model): + """MemberEntitlementsResponseBase. + + :param is_success: True if all operations were successful + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations have been applied + :type member_entitlement: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} + } + + def __init__(self, is_success=None, member_entitlement=None): + super(MemberEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.member_entitlement = member_entitlement + + +class OperationReference(Model): + """OperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.status = status + self.url = url + + +class OperationResult(Model): + """OperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + :param member_id: Identifier of the Member being acted upon + :type member_id: str + :param result: Result of the MemberEntitlement after the operation + :type result: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_id': {'key': 'memberId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'MemberEntitlement'} + } + + def __init__(self, errors=None, is_success=None, member_id=None, result=None): + super(OperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.member_id = member_id + self.result = result + + +class ProjectEntitlement(Model): + """ProjectEntitlement. + + :param assignment_source: + :type assignment_source: object + :param group: + :type group: :class:`Group ` + :param is_project_permission_inherited: + :type is_project_permission_inherited: bool + :param project_ref: + :type project_ref: :class:`ProjectRef ` + :param team_refs: + :type team_refs: list of :class:`TeamRef ` + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'group': {'key': 'group', 'type': 'Group'}, + 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, + 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, + 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} + } + + def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_ref=None, team_refs=None): + super(ProjectEntitlement, self).__init__() + self.assignment_source = assignment_source + self.group = group + self.is_project_permission_inherited = is_project_permission_inherited + self.project_ref = project_ref + self.team_refs = team_refs + + +class ProjectRef(Model): + """ProjectRef. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectRef, self).__init__() + self.id = id + self.name = name + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class TeamRef(Model): + """TeamRef. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(TeamRef, self).__init__() + self.id = id + self.name = name + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. + :type principal_name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url) + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name + + +class GroupEntitlementOperationReference(OperationReference): + """GroupEntitlementOperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + :param completed: Operation completed with success or failure + :type completed: bool + :param have_results_succeeded: True if all operations were successful + :type have_results_succeeded: bool + :param results: List of results for each operation + :type results: list of :class:`GroupOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[GroupOperationResult]'} + } + + def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(GroupEntitlementOperationReference, self).__init__(id=id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class MemberEntitlementOperationReference(OperationReference): + """MemberEntitlementOperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + :param completed: Operation completed with success or failure + :type completed: bool + :param have_results_succeeded: True if all operations were successful + :type have_results_succeeded: bool + :param results: List of results for each operation + :type results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[OperationResult]'} + } + + def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(MemberEntitlementOperationReference, self).__init__(id=id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPatchResponse. + + :param is_success: True if all operations were successful + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_results: List of results for each operation + :type operation_results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_results=None): + super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_results = operation_results + + +class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPostResponse. + + :param is_success: True if all operations were successful + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_result: Operation result + :type operation_result: :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_result=None): + super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_result = operation_result + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None, description=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description + + +__all__ = [ + 'AccessLevel', + 'BaseOperationResult', + 'Extension', + 'GraphSubject', + 'Group', + 'GroupEntitlement', + 'GroupOperationResult', + 'JsonPatchOperation', + 'MemberEntitlement', + 'MemberEntitlementsResponseBase', + 'OperationReference', + 'OperationResult', + 'ProjectEntitlement', + 'ProjectRef', + 'ReferenceLinks', + 'TeamRef', + 'GraphMember', + 'GroupEntitlementOperationReference', + 'MemberEntitlementOperationReference', + 'MemberEntitlementsPatchResponse', + 'MemberEntitlementsPostResponse', + 'GraphGroup', +] diff --git a/azure-devops/azure/devops/v4_0/notification/__init__.py b/azure-devops/azure/devops/v4_0/notification/__init__.py new file mode 100644 index 00000000..abbe3c70 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/notification/__init__.py @@ -0,0 +1,63 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'ArtifactFilter', + 'BaseSubscriptionFilter', + 'BatchNotificationOperation', + 'EventActor', + 'EventScope', + 'EventsEvaluationResult', + 'ExpressionFilterClause', + 'ExpressionFilterGroup', + 'ExpressionFilterModel', + 'FieldInputValues', + 'FieldValuesQuery', + 'IdentityRef', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'ISubscriptionChannel', + 'ISubscriptionFilter', + 'NotificationEventField', + 'NotificationEventFieldOperator', + 'NotificationEventFieldType', + 'NotificationEventPublisher', + 'NotificationEventRole', + 'NotificationEventType', + 'NotificationEventTypeCategory', + 'NotificationQueryCondition', + 'NotificationReason', + 'NotificationsEvaluationResult', + 'NotificationStatistic', + 'NotificationStatisticsQuery', + 'NotificationStatisticsQueryConditions', + 'NotificationSubscriber', + 'NotificationSubscriberUpdateParameters', + 'NotificationSubscription', + 'NotificationSubscriptionCreateParameters', + 'NotificationSubscriptionTemplate', + 'NotificationSubscriptionUpdateParameters', + 'OperatorConstraint', + 'ReferenceLinks', + 'SubscriptionAdminSettings', + 'SubscriptionChannelWithAddress', + 'SubscriptionEvaluationRequest', + 'SubscriptionEvaluationResult', + 'SubscriptionEvaluationSettings', + 'SubscriptionManagement', + 'SubscriptionQuery', + 'SubscriptionQueryCondition', + 'SubscriptionScope', + 'SubscriptionUserSettings', + 'ValueDefinition', + 'VssNotificationEvent', +] diff --git a/azure-devops/azure/devops/v4_0/notification/models.py b/azure-devops/azure/devops/v4_0/notification/models.py new file mode 100644 index 00000000..8d20a7a9 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/notification/models.py @@ -0,0 +1,1444 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BaseSubscriptionFilter(Model): + """BaseSubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(BaseSubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type + + +class BatchNotificationOperation(Model): + """BatchNotificationOperation. + + :param notification_operation: + :type notification_operation: object + :param notification_query_conditions: + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + """ + + _attribute_map = { + 'notification_operation': {'key': 'notificationOperation', 'type': 'object'}, + 'notification_query_conditions': {'key': 'notificationQueryConditions', 'type': '[NotificationQueryCondition]'} + } + + def __init__(self, notification_operation=None, notification_query_conditions=None): + super(BatchNotificationOperation, self).__init__() + self.notification_operation = notification_operation + self.notification_query_conditions = notification_query_conditions + + +class EventActor(Model): + """EventActor. + + :param id: Required: This is the identity of the user for the specified role. + :type id: str + :param role: Required: The event specific name of a role. + :type role: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'} + } + + def __init__(self, id=None, role=None): + super(EventActor, self).__init__() + self.id = id + self.role = role + + +class EventScope(Model): + """EventScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param type: Required: The event specific type of a scope. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, type=None): + super(EventScope, self).__init__() + self.id = id + self.type = type + + +class EventsEvaluationResult(Model): + """EventsEvaluationResult. + + :param count: Count of events evaluated. + :type count: int + :param matched_count: Count of matched events. + :type matched_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'matched_count': {'key': 'matchedCount', 'type': 'int'} + } + + def __init__(self, count=None, matched_count=None): + super(EventsEvaluationResult, self).__init__() + self.count = count + self.matched_count = matched_count + + +class ExpressionFilterClause(Model): + """ExpressionFilterClause. + + :param field_name: + :type field_name: str + :param index: The order in which this clause appeared in the filter query + :type index: int + :param logical_operator: Logical Operator 'AND', 'OR' or NULL (only for the first clause in the filter) + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(ExpressionFilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value + + +class ExpressionFilterGroup(Model): + """ExpressionFilterGroup. + + :param end: The index of the last FilterClause in this group + :type end: int + :param level: Level of the group, since groups can be nested for each nested group the level will increase by 1 + :type level: int + :param start: The index of the first FilterClause in this group + :type start: int + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'int'}, + 'level': {'key': 'level', 'type': 'int'}, + 'start': {'key': 'start', 'type': 'int'} + } + + def __init__(self, end=None, level=None, start=None): + super(ExpressionFilterGroup, self).__init__() + self.end = end + self.level = level + self.start = start + + +class ExpressionFilterModel(Model): + """ExpressionFilterModel. + + :param clauses: Flat list of clauses in this subscription + :type clauses: list of :class:`ExpressionFilterClause ` + :param groups: Grouping of clauses in the subscription + :type groups: list of :class:`ExpressionFilterGroup ` + :param max_group_level: Max depth of the Subscription tree + :type max_group_level: int + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[ExpressionFilterClause]'}, + 'groups': {'key': 'groups', 'type': '[ExpressionFilterGroup]'}, + 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} + } + + def __init__(self, clauses=None, groups=None, max_group_level=None): + super(ExpressionFilterModel, self).__init__() + self.clauses = clauses + self.groups = groups + self.max_group_level = max_group_level + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class ISubscriptionChannel(Model): + """ISubscriptionChannel. + + :param type: + :type type: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, type=None): + super(ISubscriptionChannel, self).__init__() + self.type = type + + +class ISubscriptionFilter(Model): + """ISubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(ISubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type + + +class NotificationEventField(Model): + """NotificationEventField. + + :param field_type: Gets or sets the type of this field. + :type field_type: :class:`NotificationEventFieldType ` + :param id: Gets or sets the unique identifier of this field. + :type id: str + :param name: Gets or sets the name of this field. + :type name: str + :param path: Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML + :type path: str + :param supported_scopes: Gets or sets the scopes that this field supports. If not specified then the event type scopes apply. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'field_type': {'key': 'fieldType', 'type': 'NotificationEventFieldType'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, field_type=None, id=None, name=None, path=None, supported_scopes=None): + super(NotificationEventField, self).__init__() + self.field_type = field_type + self.id = id + self.name = name + self.path = path + self.supported_scopes = supported_scopes + + +class NotificationEventFieldOperator(Model): + """NotificationEventFieldOperator. + + :param display_name: Gets or sets the display name of an operator + :type display_name: str + :param id: Gets or sets the id of an operator + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(NotificationEventFieldOperator, self).__init__() + self.display_name = display_name + self.id = id + + +class NotificationEventFieldType(Model): + """NotificationEventFieldType. + + :param id: Gets or sets the unique identifier of this field type. + :type id: str + :param operator_constraints: + :type operator_constraints: list of :class:`OperatorConstraint ` + :param operators: Gets or sets the list of operators that this type supports. + :type operators: list of :class:`NotificationEventFieldOperator ` + :param subscription_field_type: + :type subscription_field_type: object + :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI + :type value: :class:`ValueDefinition ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operator_constraints': {'key': 'operatorConstraints', 'type': '[OperatorConstraint]'}, + 'operators': {'key': 'operators', 'type': '[NotificationEventFieldOperator]'}, + 'subscription_field_type': {'key': 'subscriptionFieldType', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'ValueDefinition'} + } + + def __init__(self, id=None, operator_constraints=None, operators=None, subscription_field_type=None, value=None): + super(NotificationEventFieldType, self).__init__() + self.id = id + self.operator_constraints = operator_constraints + self.operators = operators + self.subscription_field_type = subscription_field_type + self.value = value + + +class NotificationEventPublisher(Model): + """NotificationEventPublisher. + + :param id: + :type id: str + :param subscription_management_info: + :type subscription_management_info: :class:`SubscriptionManagement ` + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_management_info': {'key': 'subscriptionManagementInfo', 'type': 'SubscriptionManagement'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, subscription_management_info=None, url=None): + super(NotificationEventPublisher, self).__init__() + self.id = id + self.subscription_management_info = subscription_management_info + self.url = url + + +class NotificationEventRole(Model): + """NotificationEventRole. + + :param id: Gets or sets an Id for that role, this id is used by the event. + :type id: str + :param name: Gets or sets the Name for that role, this name is used for UI display. + :type name: str + :param supports_groups: Gets or sets whether this role can be a group or just an individual user + :type supports_groups: bool + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supports_groups': {'key': 'supportsGroups', 'type': 'bool'} + } + + def __init__(self, id=None, name=None, supports_groups=None): + super(NotificationEventRole, self).__init__() + self.id = id + self.name = name + self.supports_groups = supports_groups + + +class NotificationEventType(Model): + """NotificationEventType. + + :param category: + :type category: :class:`NotificationEventTypeCategory ` + :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa + :type color: str + :param custom_subscriptions_allowed: + :type custom_subscriptions_allowed: bool + :param event_publisher: + :type event_publisher: :class:`NotificationEventPublisher ` + :param fields: + :type fields: dict + :param has_initiator: + :type has_initiator: bool + :param icon: Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class + :type icon: str + :param id: Gets or sets the unique identifier of this event definition. + :type id: str + :param name: Gets or sets the name of this event definition. + :type name: str + :param roles: + :type roles: list of :class:`NotificationEventRole ` + :param supported_scopes: Gets or sets the scopes that this event type supports + :type supported_scopes: list of str + :param url: Gets or sets the rest end point to get this event type details (fields, fields types) + :type url: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'NotificationEventTypeCategory'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom_subscriptions_allowed': {'key': 'customSubscriptionsAllowed', 'type': 'bool'}, + 'event_publisher': {'key': 'eventPublisher', 'type': 'NotificationEventPublisher'}, + 'fields': {'key': 'fields', 'type': '{NotificationEventField}'}, + 'has_initiator': {'key': 'hasInitiator', 'type': 'bool'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[NotificationEventRole]'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, category=None, color=None, custom_subscriptions_allowed=None, event_publisher=None, fields=None, has_initiator=None, icon=None, id=None, name=None, roles=None, supported_scopes=None, url=None): + super(NotificationEventType, self).__init__() + self.category = category + self.color = color + self.custom_subscriptions_allowed = custom_subscriptions_allowed + self.event_publisher = event_publisher + self.fields = fields + self.has_initiator = has_initiator + self.icon = icon + self.id = id + self.name = name + self.roles = roles + self.supported_scopes = supported_scopes + self.url = url + + +class NotificationEventTypeCategory(Model): + """NotificationEventTypeCategory. + + :param id: Gets or sets the unique identifier of this category. + :type id: str + :param name: Gets or sets the friendly name of this category. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(NotificationEventTypeCategory, self).__init__() + self.id = id + self.name = name + + +class NotificationQueryCondition(Model): + """NotificationQueryCondition. + + :param event_initiator: + :type event_initiator: str + :param event_type: + :type event_type: str + :param subscriber: + :type subscriber: str + :param subscription_id: + :type subscription_id: str + """ + + _attribute_map = { + 'event_initiator': {'key': 'eventInitiator', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, event_initiator=None, event_type=None, subscriber=None, subscription_id=None): + super(NotificationQueryCondition, self).__init__() + self.event_initiator = event_initiator + self.event_type = event_type + self.subscriber = subscriber + self.subscription_id = subscription_id + + +class NotificationReason(Model): + """NotificationReason. + + :param notification_reason_type: + :type notification_reason_type: object + :param target_identities: + :type target_identities: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'notification_reason_type': {'key': 'notificationReasonType', 'type': 'object'}, + 'target_identities': {'key': 'targetIdentities', 'type': '[IdentityRef]'} + } + + def __init__(self, notification_reason_type=None, target_identities=None): + super(NotificationReason, self).__init__() + self.notification_reason_type = notification_reason_type + self.target_identities = target_identities + + +class NotificationsEvaluationResult(Model): + """NotificationsEvaluationResult. + + :param count: Count of generated notifications + :type count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'} + } + + def __init__(self, count=None): + super(NotificationsEvaluationResult, self).__init__() + self.count = count + + +class NotificationStatistic(Model): + """NotificationStatistic. + + :param date: + :type date: datetime + :param hit_count: + :type hit_count: int + :param path: + :type path: str + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'hit_count': {'key': 'hitCount', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, date=None, hit_count=None, path=None, type=None, user=None): + super(NotificationStatistic, self).__init__() + self.date = date + self.hit_count = hit_count + self.path = path + self.type = type + self.user = user + + +class NotificationStatisticsQuery(Model): + """NotificationStatisticsQuery. + + :param conditions: + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[NotificationStatisticsQueryConditions]'} + } + + def __init__(self, conditions=None): + super(NotificationStatisticsQuery, self).__init__() + self.conditions = conditions + + +class NotificationStatisticsQueryConditions(Model): + """NotificationStatisticsQueryConditions. + + :param end_date: + :type end_date: datetime + :param hit_count_minimum: + :type hit_count_minimum: int + :param path: + :type path: str + :param start_date: + :type start_date: datetime + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'hit_count_minimum': {'key': 'hitCountMinimum', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, end_date=None, hit_count_minimum=None, path=None, start_date=None, type=None, user=None): + super(NotificationStatisticsQueryConditions, self).__init__() + self.end_date = end_date + self.hit_count_minimum = hit_count_minimum + self.path = path + self.start_date = start_date + self.type = type + self.user = user + + +class NotificationSubscriber(Model): + """NotificationSubscriber. + + :param delivery_preference: Indicates how the subscriber should be notified by default. + :type delivery_preference: object + :param flags: + :type flags: object + :param id: Identifier of the subscriber. + :type id: str + :param preferred_email_address: Preferred email address of the subscriber. A null or empty value indicates no preferred email address has been set. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, flags=None, id=None, preferred_email_address=None): + super(NotificationSubscriber, self).__init__() + self.delivery_preference = delivery_preference + self.flags = flags + self.id = id + self.preferred_email_address = preferred_email_address + + +class NotificationSubscriberUpdateParameters(Model): + """NotificationSubscriberUpdateParameters. + + :param delivery_preference: New delivery preference for the subscriber (indicates how the subscriber should be notified). + :type delivery_preference: object + :param preferred_email_address: New preferred email address for the subscriber. Specify an empty string to clear the current address. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, preferred_email_address=None): + super(NotificationSubscriberUpdateParameters, self).__init__() + self.delivery_preference = delivery_preference + self.preferred_email_address = preferred_email_address + + +class NotificationSubscription(Model): + """NotificationSubscription. + + :param _links: Links to related resources, APIs, and views for the subscription. + :type _links: :class:`ReferenceLinks ` + :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts + :type extended_properties: dict + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param flags: Read-only indicators that further describe the subscription. + :type flags: object + :param id: Subscription identifier. + :type id: str + :param last_modified_by: User that last modified (or created) the subscription. + :type last_modified_by: :class:`IdentityRef ` + :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. + :type modified_date: datetime + :param permissions: The permissions the user have for this subscriptions. + :type permissions: object + :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. + :type status: object + :param status_message: Message that provides more details about the status of the subscription. + :type status_message: str + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. + :type subscriber: :class:`IdentityRef ` + :param url: REST API URL of the subscriotion. + :type url: str + :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'permissions': {'key': 'permissions', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, _links=None, admin_settings=None, channel=None, description=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): + super(NotificationSubscription, self).__init__() + self._links = _links + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.extended_properties = extended_properties + self.filter = filter + self.flags = flags + self.id = id + self.last_modified_by = last_modified_by + self.modified_date = modified_date + self.permissions = permissions + self.scope = scope + self.status = status + self.status_message = status_message + self.subscriber = subscriber + self.url = url + self.user_settings = user_settings + + +class NotificationSubscriptionCreateParameters(Model): + """NotificationSubscriptionCreateParameters. + + :param channel: Channel for delivering notifications triggered by the new subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the new subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscriber: :class:`IdentityRef ` + """ + + _attribute_map = { + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'} + } + + def __init__(self, channel=None, description=None, filter=None, scope=None, subscriber=None): + super(NotificationSubscriptionCreateParameters, self).__init__() + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.subscriber = subscriber + + +class NotificationSubscriptionTemplate(Model): + """NotificationSubscriptionTemplate. + + :param description: + :type description: str + :param filter: + :type filter: :class:`ISubscriptionFilter ` + :param id: + :type id: str + :param notification_event_information: + :type notification_event_information: :class:`NotificationEventType ` + :param type: + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notification_event_information': {'key': 'notificationEventInformation', 'type': 'NotificationEventType'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, filter=None, id=None, notification_event_information=None, type=None): + super(NotificationSubscriptionTemplate, self).__init__() + self.description = description + self.filter = filter + self.id = id + self.notification_event_information = notification_event_information + self.type = type + + +class NotificationSubscriptionUpdateParameters(Model): + """NotificationSubscriptionUpdateParameters. + + :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Updated status for the subscription. Typically used to enable or disable a subscription. + :type status: object + :param status_message: Optional message that provides more details about the updated status. + :type status_message: str + :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, admin_settings=None, channel=None, description=None, filter=None, scope=None, status=None, status_message=None, user_settings=None): + super(NotificationSubscriptionUpdateParameters, self).__init__() + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.status = status + self.status_message = status_message + self.user_settings = user_settings + + +class OperatorConstraint(Model): + """OperatorConstraint. + + :param operator: + :type operator: str + :param supported_scopes: Gets or sets the list of scopes that this type supports. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'operator': {'key': 'operator', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, operator=None, supported_scopes=None): + super(OperatorConstraint, self).__init__() + self.operator = operator + self.supported_scopes = supported_scopes + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class SubscriptionAdminSettings(Model): + """SubscriptionAdminSettings. + + :param block_user_opt_out: If true, members of the group subscribed to the associated subscription cannot opt (choose not to get notified) + :type block_user_opt_out: bool + """ + + _attribute_map = { + 'block_user_opt_out': {'key': 'blockUserOptOut', 'type': 'bool'} + } + + def __init__(self, block_user_opt_out=None): + super(SubscriptionAdminSettings, self).__init__() + self.block_user_opt_out = block_user_opt_out + + +class SubscriptionChannelWithAddress(Model): + """SubscriptionChannelWithAddress. + + :param address: + :type address: str + :param type: + :type type: str + :param use_custom_address: + :type use_custom_address: bool + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_custom_address': {'key': 'useCustomAddress', 'type': 'bool'} + } + + def __init__(self, address=None, type=None, use_custom_address=None): + super(SubscriptionChannelWithAddress, self).__init__() + self.address = address + self.type = type + self.use_custom_address = use_custom_address + + +class SubscriptionEvaluationRequest(Model): + """SubscriptionEvaluationRequest. + + :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date + :type min_events_created_date: datetime + :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + """ + + _attribute_map = { + 'min_events_created_date': {'key': 'minEventsCreatedDate', 'type': 'iso-8601'}, + 'subscription_create_parameters': {'key': 'subscriptionCreateParameters', 'type': 'NotificationSubscriptionCreateParameters'} + } + + def __init__(self, min_events_created_date=None, subscription_create_parameters=None): + super(SubscriptionEvaluationRequest, self).__init__() + self.min_events_created_date = min_events_created_date + self.subscription_create_parameters = subscription_create_parameters + + +class SubscriptionEvaluationResult(Model): + """SubscriptionEvaluationResult. + + :param evaluation_job_status: Subscription evaluation job status + :type evaluation_job_status: object + :param events: Subscription evaluation events results. + :type events: :class:`EventsEvaluationResult ` + :param id: The requestId which is the subscription evaluation jobId + :type id: str + :param notifications: Subscription evaluation notification results. + :type notifications: :class:`NotificationsEvaluationResult ` + """ + + _attribute_map = { + 'evaluation_job_status': {'key': 'evaluationJobStatus', 'type': 'object'}, + 'events': {'key': 'events', 'type': 'EventsEvaluationResult'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notifications': {'key': 'notifications', 'type': 'NotificationsEvaluationResult'} + } + + def __init__(self, evaluation_job_status=None, events=None, id=None, notifications=None): + super(SubscriptionEvaluationResult, self).__init__() + self.evaluation_job_status = evaluation_job_status + self.events = events + self.id = id + self.notifications = notifications + + +class SubscriptionEvaluationSettings(Model): + """SubscriptionEvaluationSettings. + + :param enabled: Indicates whether subscription evaluation before saving is enabled or not + :type enabled: bool + :param interval: Time interval to check on subscription evaluation job in seconds + :type interval: int + :param threshold: Threshold on the number of notifications for considering a subscription too noisy + :type threshold: int + :param time_out: Time out for the subscription evaluation check in seconds + :type time_out: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'interval': {'key': 'interval', 'type': 'int'}, + 'threshold': {'key': 'threshold', 'type': 'int'}, + 'time_out': {'key': 'timeOut', 'type': 'int'} + } + + def __init__(self, enabled=None, interval=None, threshold=None, time_out=None): + super(SubscriptionEvaluationSettings, self).__init__() + self.enabled = enabled + self.interval = interval + self.threshold = threshold + self.time_out = time_out + + +class SubscriptionManagement(Model): + """SubscriptionManagement. + + :param service_instance_type: + :type service_instance_type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, service_instance_type=None, url=None): + super(SubscriptionManagement, self).__init__() + self.service_instance_type = service_instance_type + self.url = url + + +class SubscriptionQuery(Model): + """SubscriptionQuery. + + :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). + :type conditions: list of :class:`SubscriptionQueryCondition ` + :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. + :type query_flags: object + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[SubscriptionQueryCondition]'}, + 'query_flags': {'key': 'queryFlags', 'type': 'object'} + } + + def __init__(self, conditions=None, query_flags=None): + super(SubscriptionQuery, self).__init__() + self.conditions = conditions + self.query_flags = query_flags + + +class SubscriptionQueryCondition(Model): + """SubscriptionQueryCondition. + + :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. + :type filter: :class:`ISubscriptionFilter ` + :param flags: Flags to specify the the type subscriptions to query for. + :type flags: object + :param scope: Scope that matching subscriptions must have. + :type scope: str + :param subscriber_id: ID of the subscriber (user or group) that matching subscriptions must be subscribed to. + :type subscriber_id: str + :param subscription_id: ID of the subscription to query for. + :type subscription_id: str + """ + + _attribute_map = { + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, filter=None, flags=None, scope=None, subscriber_id=None, subscription_id=None): + super(SubscriptionQueryCondition, self).__init__() + self.filter = filter + self.flags = flags + self.scope = scope + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id + + +class SubscriptionScope(EventScope): + """SubscriptionScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param type: Required: The event specific type of a scope. + :type type: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, type=None, name=None): + super(SubscriptionScope, self).__init__(id=id, type=type) + self.name = name + + +class SubscriptionUserSettings(Model): + """SubscriptionUserSettings. + + :param opted_out: Indicates whether the user will receive notifications for the associated group subscription. + :type opted_out: bool + """ + + _attribute_map = { + 'opted_out': {'key': 'optedOut', 'type': 'bool'} + } + + def __init__(self, opted_out=None): + super(SubscriptionUserSettings, self).__init__() + self.opted_out = opted_out + + +class ValueDefinition(Model): + """ValueDefinition. + + :param data_source: Gets or sets the data source. + :type data_source: list of :class:`InputValue ` + :param end_point: Gets or sets the rest end point. + :type end_point: str + :param result_template: Gets or sets the result template. + :type result_template: str + """ + + _attribute_map = { + 'data_source': {'key': 'dataSource', 'type': '[InputValue]'}, + 'end_point': {'key': 'endPoint', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, data_source=None, end_point=None, result_template=None): + super(ValueDefinition, self).__init__() + self.data_source = data_source + self.end_point = end_point + self.result_template = result_template + + +class VssNotificationEvent(Model): + """VssNotificationEvent. + + :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. + :type actors: list of :class:`EventActor ` + :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. + :type artifact_uris: list of str + :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. + :type data: object + :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. + :type event_type: str + :param scopes: Optional: A list of scopes which are are relevant to the event. + :type scopes: list of :class:`EventScope ` + """ + + _attribute_map = { + 'actors': {'key': 'actors', 'type': '[EventActor]'}, + 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, + 'data': {'key': 'data', 'type': 'object'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[EventScope]'} + } + + def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): + super(VssNotificationEvent, self).__init__() + self.actors = actors + self.artifact_uris = artifact_uris + self.data = data + self.event_type = event_type + self.scopes = scopes + + +class ArtifactFilter(BaseSubscriptionFilter): + """ArtifactFilter. + + :param event_type: + :type event_type: str + :param artifact_id: + :type artifact_id: str + :param artifact_type: + :type artifact_type: str + :param artifact_uri: + :type artifact_uri: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, artifact_id=None, artifact_type=None, artifact_uri=None, type=None): + super(ArtifactFilter, self).__init__(event_type=event_type) + self.artifact_id = artifact_id + self.artifact_type = artifact_type + self.artifact_uri = artifact_uri + self.type = type + + +class FieldInputValues(InputValues): + """FieldInputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + :param operators: + :type operators: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, + 'operators': {'key': 'operators', 'type': 'str'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): + super(FieldInputValues, self).__init__(default_value=default_value, error=error, input_id=input_id, is_disabled=is_disabled, is_limited_to_possible_values=is_limited_to_possible_values, is_read_only=is_read_only, possible_values=possible_values) + self.operators = operators + + +class FieldValuesQuery(InputValuesQuery): + """FieldValuesQuery. + + :param current_values: + :type current_values: dict + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + :param input_values: + :type input_values: list of :class:`FieldInputValues ` + :param scope: + :type scope: str + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'input_values': {'key': 'inputValues', 'type': '[FieldInputValues]'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, current_values=None, resource=None, input_values=None, scope=None): + super(FieldValuesQuery, self).__init__(current_values=current_values, resource=resource) + self.input_values = input_values + self.scope = scope + + +__all__ = [ + 'BaseSubscriptionFilter', + 'BatchNotificationOperation', + 'EventActor', + 'EventScope', + 'EventsEvaluationResult', + 'ExpressionFilterClause', + 'ExpressionFilterGroup', + 'ExpressionFilterModel', + 'IdentityRef', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'ISubscriptionChannel', + 'ISubscriptionFilter', + 'NotificationEventField', + 'NotificationEventFieldOperator', + 'NotificationEventFieldType', + 'NotificationEventPublisher', + 'NotificationEventRole', + 'NotificationEventType', + 'NotificationEventTypeCategory', + 'NotificationQueryCondition', + 'NotificationReason', + 'NotificationsEvaluationResult', + 'NotificationStatistic', + 'NotificationStatisticsQuery', + 'NotificationStatisticsQueryConditions', + 'NotificationSubscriber', + 'NotificationSubscriberUpdateParameters', + 'NotificationSubscription', + 'NotificationSubscriptionCreateParameters', + 'NotificationSubscriptionTemplate', + 'NotificationSubscriptionUpdateParameters', + 'OperatorConstraint', + 'ReferenceLinks', + 'SubscriptionAdminSettings', + 'SubscriptionChannelWithAddress', + 'SubscriptionEvaluationRequest', + 'SubscriptionEvaluationResult', + 'SubscriptionEvaluationSettings', + 'SubscriptionManagement', + 'SubscriptionQuery', + 'SubscriptionQueryCondition', + 'SubscriptionScope', + 'SubscriptionUserSettings', + 'ValueDefinition', + 'VssNotificationEvent', + 'ArtifactFilter', + 'FieldInputValues', + 'FieldValuesQuery', +] diff --git a/vsts/vsts/notification/v4_0/notification_client.py b/azure-devops/azure/devops/v4_0/notification/notification_client.py similarity index 99% rename from vsts/vsts/notification/v4_0/notification_client.py rename to azure-devops/azure/devops/v4_0/notification/notification_client.py index b457f97c..a85f525b 100644 --- a/vsts/vsts/notification/v4_0/notification_client.py +++ b/azure-devops/azure/devops/v4_0/notification/notification_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class NotificationClient(VssClient): +class NotificationClient(Client): """Notification :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/customer_intelligence/v4_1/models/__init__.py b/azure-devops/azure/devops/v4_0/operations/__init__.py similarity index 85% rename from vsts/vsts/customer_intelligence/v4_1/models/__init__.py rename to azure-devops/azure/devops/v4_0/operations/__init__.py index 53e67765..0dfc0b11 100644 --- a/vsts/vsts/customer_intelligence/v4_1/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/operations/__init__.py @@ -6,8 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .customer_intelligence_event import CustomerIntelligenceEvent +from .models import * __all__ = [ - 'CustomerIntelligenceEvent', + 'Operation', + 'OperationReference', + 'ReferenceLinks', ] diff --git a/vsts/vsts/operations/v4_0/models/operation.py b/azure-devops/azure/devops/v4_0/operations/models.py similarity index 58% rename from vsts/vsts/operations/v4_0/models/operation.py rename to azure-devops/azure/devops/v4_0/operations/models.py index 1bc4e215..1dc3f0ad 100644 --- a/vsts/vsts/operations/v4_0/models/operation.py +++ b/azure-devops/azure/devops/v4_0/operations/models.py @@ -6,7 +6,47 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .operation_reference import OperationReference +from msrest.serialization import Model + + +class OperationReference(Model): + """OperationReference. + + :param id: The identifier for this operation. + :type id: str + :param status: The current status of the operation. + :type status: object + :param url: Url to get the full object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.status = status + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links class Operation(OperationReference): @@ -36,3 +76,10 @@ def __init__(self, id=None, status=None, url=None, _links=None, result_message=N super(Operation, self).__init__(id=id, status=status, url=url) self._links = _links self.result_message = result_message + + +__all__ = [ + 'OperationReference', + 'ReferenceLinks', + 'Operation', +] diff --git a/vsts/vsts/operations/v4_0/operations_client.py b/azure-devops/azure/devops/v4_0/operations/operations_client.py similarity index 96% rename from vsts/vsts/operations/v4_0/operations_client.py rename to azure-devops/azure/devops/v4_0/operations/operations_client.py index 282a4cd9..aae3a467 100644 --- a/vsts/vsts/operations/v4_0/operations_client.py +++ b/azure-devops/azure/devops/v4_0/operations/operations_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class OperationsClient(VssClient): +class OperationsClient(Client): """Operations :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/policy/__init__.py b/azure-devops/azure/devops/v4_0/policy/__init__.py new file mode 100644 index 00000000..bfc12bc8 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/policy/__init__.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'IdentityRef', + 'PolicyConfiguration', + 'PolicyConfigurationRef', + 'PolicyEvaluationRecord', + 'PolicyType', + 'PolicyTypeRef', + 'ReferenceLinks', + 'VersionedPolicyConfigurationRef', +] diff --git a/azure-devops/azure/devops/v4_0/policy/models.py b/azure-devops/azure/devops/v4_0/policy/models.py new file mode 100644 index 00000000..6cb62fbb --- /dev/null +++ b/azure-devops/azure/devops/v4_0/policy/models.py @@ -0,0 +1,287 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class PolicyConfigurationRef(Model): + """PolicyConfigurationRef. + + :param id: + :type id: int + :param type: + :type type: :class:`PolicyTypeRef ` + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, type=None, url=None): + super(PolicyConfigurationRef, self).__init__() + self.id = id + self.type = type + self.url = url + + +class PolicyEvaluationRecord(Model): + """PolicyEvaluationRecord. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param artifact_id: + :type artifact_id: str + :param completed_date: + :type completed_date: datetime + :param configuration: + :type configuration: :class:`PolicyConfiguration ` + :param context: + :type context: :class:`object ` + :param evaluation_id: + :type evaluation_id: str + :param started_date: + :type started_date: datetime + :param status: + :type status: object + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'configuration': {'key': 'configuration', 'type': 'PolicyConfiguration'}, + 'context': {'key': 'context', 'type': 'object'}, + 'evaluation_id': {'key': 'evaluationId', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, _links=None, artifact_id=None, completed_date=None, configuration=None, context=None, evaluation_id=None, started_date=None, status=None): + super(PolicyEvaluationRecord, self).__init__() + self._links = _links + self.artifact_id = artifact_id + self.completed_date = completed_date + self.configuration = configuration + self.context = context + self.evaluation_id = evaluation_id + self.started_date = started_date + self.status = status + + +class PolicyTypeRef(Model): + """PolicyTypeRef. + + :param display_name: + :type display_name: str + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, url=None): + super(PolicyTypeRef, self).__init__() + self.display_name = display_name + self.id = id + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class VersionedPolicyConfigurationRef(PolicyConfigurationRef): + """VersionedPolicyConfigurationRef. + + :param id: + :type id: int + :param type: + :type type: :class:`PolicyTypeRef ` + :param url: + :type url: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, type=None, url=None, revision=None): + super(VersionedPolicyConfigurationRef, self).__init__(id=id, type=type, url=url) + self.revision = revision + + +class PolicyConfiguration(VersionedPolicyConfigurationRef): + """PolicyConfiguration. + + :param id: + :type id: int + :param type: + :type type: :class:`PolicyTypeRef ` + :param url: + :type url: str + :param revision: + :type revision: int + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_date: + :type created_date: datetime + :param is_blocking: + :type is_blocking: bool + :param is_deleted: + :type is_deleted: bool + :param is_enabled: + :type is_enabled: bool + :param settings: + :type settings: :class:`object ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'is_blocking': {'key': 'isBlocking', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'settings': {'key': 'settings', 'type': 'object'} + } + + def __init__(self, id=None, type=None, url=None, revision=None, _links=None, created_by=None, created_date=None, is_blocking=None, is_deleted=None, is_enabled=None, settings=None): + super(PolicyConfiguration, self).__init__(id=id, type=type, url=url, revision=revision) + self._links = _links + self.created_by = created_by + self.created_date = created_date + self.is_blocking = is_blocking + self.is_deleted = is_deleted + self.is_enabled = is_enabled + self.settings = settings + + +class PolicyType(PolicyTypeRef): + """PolicyType. + + :param display_name: + :type display_name: str + :param id: + :type id: str + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, url=None, _links=None, description=None): + super(PolicyType, self).__init__(display_name=display_name, id=id, url=url) + self._links = _links + self.description = description + + +__all__ = [ + 'IdentityRef', + 'PolicyConfigurationRef', + 'PolicyEvaluationRecord', + 'PolicyTypeRef', + 'ReferenceLinks', + 'VersionedPolicyConfigurationRef', + 'PolicyConfiguration', + 'PolicyType', +] diff --git a/vsts/vsts/policy/v4_0/policy_client.py b/azure-devops/azure/devops/v4_0/policy/policy_client.py similarity index 99% rename from vsts/vsts/policy/v4_0/policy_client.py rename to azure-devops/azure/devops/v4_0/policy/policy_client.py index bd937db5..46f79ec8 100644 --- a/vsts/vsts/policy/v4_0/policy_client.py +++ b/azure-devops/azure/devops/v4_0/policy/policy_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class PolicyClient(VssClient): +class PolicyClient(Client): """Policy :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/feature_availability/v4_0/models/__init__.py b/azure-devops/azure/devops/v4_0/project_analysis/__init__.py similarity index 76% rename from vsts/vsts/feature_availability/v4_0/models/__init__.py rename to azure-devops/azure/devops/v4_0/project_analysis/__init__.py index 926dca8c..81e2dba7 100644 --- a/vsts/vsts/feature_availability/v4_0/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/project_analysis/__init__.py @@ -6,10 +6,12 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .feature_flag import FeatureFlag -from .feature_flag_patch import FeatureFlagPatch +from .models import * __all__ = [ - 'FeatureFlag', - 'FeatureFlagPatch', + 'CodeChangeTrendItem', + 'LanguageStatistics', + 'ProjectActivityMetrics', + 'ProjectLanguageAnalytics', + 'RepositoryLanguageAnalytics', ] diff --git a/azure-devops/azure/devops/v4_0/project_analysis/models.py b/azure-devops/azure/devops/v4_0/project_analysis/models.py new file mode 100644 index 00000000..1d18e7d5 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/project_analysis/models.py @@ -0,0 +1,174 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeChangeTrendItem(Model): + """CodeChangeTrendItem. + + :param time: + :type time: datetime + :param value: + :type value: int + """ + + _attribute_map = { + 'time': {'key': 'time', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, time=None, value=None): + super(CodeChangeTrendItem, self).__init__() + self.time = time + self.value = value + + +class LanguageStatistics(Model): + """LanguageStatistics. + + :param bytes: + :type bytes: long + :param bytes_percentage: + :type bytes_percentage: float + :param files: + :type files: int + :param files_percentage: + :type files_percentage: float + :param name: + :type name: str + :param weighted_bytes_percentage: + :type weighted_bytes_percentage: float + """ + + _attribute_map = { + 'bytes': {'key': 'bytes', 'type': 'long'}, + 'bytes_percentage': {'key': 'bytesPercentage', 'type': 'float'}, + 'files': {'key': 'files', 'type': 'int'}, + 'files_percentage': {'key': 'filesPercentage', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'str'}, + 'weighted_bytes_percentage': {'key': 'weightedBytesPercentage', 'type': 'float'} + } + + def __init__(self, bytes=None, bytes_percentage=None, files=None, files_percentage=None, name=None, weighted_bytes_percentage=None): + super(LanguageStatistics, self).__init__() + self.bytes = bytes + self.bytes_percentage = bytes_percentage + self.files = files + self.files_percentage = files_percentage + self.name = name + self.weighted_bytes_percentage = weighted_bytes_percentage + + +class ProjectActivityMetrics(Model): + """ProjectActivityMetrics. + + :param authors_count: + :type authors_count: int + :param code_changes_count: + :type code_changes_count: int + :param code_changes_trend: + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :param project_id: + :type project_id: str + :param pull_requests_completed_count: + :type pull_requests_completed_count: int + :param pull_requests_created_count: + :type pull_requests_created_count: int + """ + + _attribute_map = { + 'authors_count': {'key': 'authorsCount', 'type': 'int'}, + 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, + 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'pull_requests_completed_count': {'key': 'pullRequestsCompletedCount', 'type': 'int'}, + 'pull_requests_created_count': {'key': 'pullRequestsCreatedCount', 'type': 'int'} + } + + def __init__(self, authors_count=None, code_changes_count=None, code_changes_trend=None, project_id=None, pull_requests_completed_count=None, pull_requests_created_count=None): + super(ProjectActivityMetrics, self).__init__() + self.authors_count = authors_count + self.code_changes_count = code_changes_count + self.code_changes_trend = code_changes_trend + self.project_id = project_id + self.pull_requests_completed_count = pull_requests_completed_count + self.pull_requests_created_count = pull_requests_created_count + + +class ProjectLanguageAnalytics(Model): + """ProjectLanguageAnalytics. + + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param repository_language_analytics: + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :param result_phase: + :type result_phase: object + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): + super(ProjectLanguageAnalytics, self).__init__() + self.id = id + self.language_breakdown = language_breakdown + self.repository_language_analytics = repository_language_analytics + self.result_phase = result_phase + self.url = url + + +class RepositoryLanguageAnalytics(Model): + """RepositoryLanguageAnalytics. + + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param name: + :type name: str + :param result_phase: + :type result_phase: object + :param updated_time: + :type updated_time: datetime + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} + } + + def __init__(self, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): + super(RepositoryLanguageAnalytics, self).__init__() + self.id = id + self.language_breakdown = language_breakdown + self.name = name + self.result_phase = result_phase + self.updated_time = updated_time + + +__all__ = [ + 'CodeChangeTrendItem', + 'LanguageStatistics', + 'ProjectActivityMetrics', + 'ProjectLanguageAnalytics', + 'RepositoryLanguageAnalytics', +] diff --git a/vsts/vsts/project_analysis/v4_0/project_analysis_client.py b/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py similarity index 97% rename from vsts/vsts/project_analysis/v4_0/project_analysis_client.py rename to azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py index 2de2e041..4d9f79fd 100644 --- a/vsts/vsts/project_analysis/v4_0/project_analysis_client.py +++ b/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ProjectAnalysisClient(VssClient): +class ProjectAnalysisClient(Client): """ProjectAnalysis :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/accounts/v4_0/models/__init__.py b/azure-devops/azure/devops/v4_0/security/__init__.py similarity index 68% rename from vsts/vsts/accounts/v4_0/models/__init__.py rename to azure-devops/azure/devops/v4_0/security/__init__.py index 2c3eee0b..94948975 100644 --- a/vsts/vsts/accounts/v4_0/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/security/__init__.py @@ -6,12 +6,15 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .account import Account -from .account_create_info_internal import AccountCreateInfoInternal -from .account_preferences_internal import AccountPreferencesInternal +from .models import * __all__ = [ - 'Account', - 'AccountCreateInfoInternal', - 'AccountPreferencesInternal', + 'AccessControlEntry', + 'AccessControlList', + 'AccessControlListsCollection', + 'AceExtendedInformation', + 'ActionDefinition', + 'PermissionEvaluation', + 'PermissionEvaluationBatch', + 'SecurityNamespaceDescription', ] diff --git a/azure-devops/azure/devops/v4_0/security/models.py b/azure-devops/azure/devops/v4_0/security/models.py new file mode 100644 index 00000000..2d9d9414 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/security/models.py @@ -0,0 +1,248 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlEntry(Model): + """AccessControlEntry. + + :param allow: The set of permission bits that represent the actions that the associated descriptor is allowed to perform. + :type allow: int + :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. + :type deny: int + :param descriptor: The descriptor for the user this AccessControlEntry applies to. + :type descriptor: :class:`str ` + :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. + :type extended_info: :class:`AceExtendedInformation ` + """ + + _attribute_map = { + 'allow': {'key': 'allow', 'type': 'int'}, + 'deny': {'key': 'deny', 'type': 'int'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AceExtendedInformation'} + } + + def __init__(self, allow=None, deny=None, descriptor=None, extended_info=None): + super(AccessControlEntry, self).__init__() + self.allow = allow + self.deny = deny + self.descriptor = descriptor + self.extended_info = extended_info + + +class AccessControlList(Model): + """AccessControlList. + + :param aces_dictionary: Storage of permissions keyed on the identity the permission is for. + :type aces_dictionary: dict + :param include_extended_info: True if this ACL holds ACEs that have extended information. + :type include_extended_info: bool + :param inherit_permissions: True if the given token inherits permissions from parents. + :type inherit_permissions: bool + :param token: The token that this AccessControlList is for. + :type token: str + """ + + _attribute_map = { + 'aces_dictionary': {'key': 'acesDictionary', 'type': '{AccessControlEntry}'}, + 'include_extended_info': {'key': 'includeExtendedInfo', 'type': 'bool'}, + 'inherit_permissions': {'key': 'inheritPermissions', 'type': 'bool'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_permissions=None, token=None): + super(AccessControlList, self).__init__() + self.aces_dictionary = aces_dictionary + self.include_extended_info = include_extended_info + self.inherit_permissions = inherit_permissions + self.token = token + + +class AceExtendedInformation(Model): + """AceExtendedInformation. + + :param effective_allow: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_allow: int + :param effective_deny: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_deny: int + :param inherited_allow: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_allow: int + :param inherited_deny: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_deny: int + """ + + _attribute_map = { + 'effective_allow': {'key': 'effectiveAllow', 'type': 'int'}, + 'effective_deny': {'key': 'effectiveDeny', 'type': 'int'}, + 'inherited_allow': {'key': 'inheritedAllow', 'type': 'int'}, + 'inherited_deny': {'key': 'inheritedDeny', 'type': 'int'} + } + + def __init__(self, effective_allow=None, effective_deny=None, inherited_allow=None, inherited_deny=None): + super(AceExtendedInformation, self).__init__() + self.effective_allow = effective_allow + self.effective_deny = effective_deny + self.inherited_allow = inherited_allow + self.inherited_deny = inherited_deny + + +class ActionDefinition(Model): + """ActionDefinition. + + :param bit: The bit mask integer for this action. Must be a power of 2. + :type bit: int + :param display_name: The localized display name for this action. + :type display_name: str + :param name: The non-localized name for this action. + :type name: str + :param namespace_id: The namespace that this action belongs to. This will only be used for reading from the database. + :type namespace_id: str + """ + + _attribute_map = { + 'bit': {'key': 'bit', 'type': 'int'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'} + } + + def __init__(self, bit=None, display_name=None, name=None, namespace_id=None): + super(ActionDefinition, self).__init__() + self.bit = bit + self.display_name = display_name + self.name = name + self.namespace_id = namespace_id + + +class PermissionEvaluation(Model): + """PermissionEvaluation. + + :param permissions: Permission bit for this evaluated permission. + :type permissions: int + :param security_namespace_id: Security namespace identifier for this evaluated permission. + :type security_namespace_id: str + :param token: Security namespace-specific token for this evaluated permission. + :type token: str + :param value: Permission evaluation value. + :type value: bool + """ + + _attribute_map = { + 'permissions': {'key': 'permissions', 'type': 'int'}, + 'security_namespace_id': {'key': 'securityNamespaceId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bool'} + } + + def __init__(self, permissions=None, security_namespace_id=None, token=None, value=None): + super(PermissionEvaluation, self).__init__() + self.permissions = permissions + self.security_namespace_id = security_namespace_id + self.token = token + self.value = value + + +class PermissionEvaluationBatch(Model): + """PermissionEvaluationBatch. + + :param always_allow_administrators: + :type always_allow_administrators: bool + :param evaluations: Array of permission evaluations to evaluate. + :type evaluations: list of :class:`PermissionEvaluation ` + """ + + _attribute_map = { + 'always_allow_administrators': {'key': 'alwaysAllowAdministrators', 'type': 'bool'}, + 'evaluations': {'key': 'evaluations', 'type': '[PermissionEvaluation]'} + } + + def __init__(self, always_allow_administrators=None, evaluations=None): + super(PermissionEvaluationBatch, self).__init__() + self.always_allow_administrators = always_allow_administrators + self.evaluations = evaluations + + +class SecurityNamespaceDescription(Model): + """SecurityNamespaceDescription. + + :param actions: The list of actions that this Security Namespace is responsible for securing. + :type actions: list of :class:`ActionDefinition ` + :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. + :type dataspace_category: str + :param display_name: This localized name for this namespace. + :type display_name: str + :param element_length: If the security tokens this namespace will be operating on need to be split on certain character lengths to determine its elements, that length should be specified here. If not, this value will be -1. + :type element_length: int + :param extension_type: This is the type of the extension that should be loaded from the plugins directory for extending this security namespace. + :type extension_type: str + :param is_remotable: If true, the security namespace is remotable, allowing another service to proxy the namespace. + :type is_remotable: bool + :param name: This non-localized for this namespace. + :type name: str + :param namespace_id: The unique identifier for this namespace. + :type namespace_id: str + :param read_permission: The permission bits needed by a user in order to read security data on the Security Namespace. + :type read_permission: int + :param separator_value: If the security tokens this namespace will be operating on need to be split on certain characters to determine its elements that character should be specified here. If not, this value will be the null character. + :type separator_value: str + :param structure_value: Used to send information about the structure of the security namespace over the web service. + :type structure_value: int + :param system_bit_mask: The bits reserved by system store + :type system_bit_mask: int + :param use_token_translator: If true, the security service will expect an ISecurityDataspaceTokenTranslator plugin to exist for this namespace + :type use_token_translator: bool + :param write_permission: The permission bits needed by a user in order to modify security data on the Security Namespace. + :type write_permission: int + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[ActionDefinition]'}, + 'dataspace_category': {'key': 'dataspaceCategory', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'element_length': {'key': 'elementLength', 'type': 'int'}, + 'extension_type': {'key': 'extensionType', 'type': 'str'}, + 'is_remotable': {'key': 'isRemotable', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'read_permission': {'key': 'readPermission', 'type': 'int'}, + 'separator_value': {'key': 'separatorValue', 'type': 'str'}, + 'structure_value': {'key': 'structureValue', 'type': 'int'}, + 'system_bit_mask': {'key': 'systemBitMask', 'type': 'int'}, + 'use_token_translator': {'key': 'useTokenTranslator', 'type': 'bool'}, + 'write_permission': {'key': 'writePermission', 'type': 'int'} + } + + def __init__(self, actions=None, dataspace_category=None, display_name=None, element_length=None, extension_type=None, is_remotable=None, name=None, namespace_id=None, read_permission=None, separator_value=None, structure_value=None, system_bit_mask=None, use_token_translator=None, write_permission=None): + super(SecurityNamespaceDescription, self).__init__() + self.actions = actions + self.dataspace_category = dataspace_category + self.display_name = display_name + self.element_length = element_length + self.extension_type = extension_type + self.is_remotable = is_remotable + self.name = name + self.namespace_id = namespace_id + self.read_permission = read_permission + self.separator_value = separator_value + self.structure_value = structure_value + self.system_bit_mask = system_bit_mask + self.use_token_translator = use_token_translator + self.write_permission = write_permission + + +__all__ = [ + 'AccessControlEntry', + 'AccessControlList', + 'AceExtendedInformation', + 'ActionDefinition', + 'PermissionEvaluation', + 'PermissionEvaluationBatch', + 'SecurityNamespaceDescription', +] diff --git a/vsts/vsts/security/v4_0/security_client.py b/azure-devops/azure/devops/v4_0/security/security_client.py similarity index 99% rename from vsts/vsts/security/v4_0/security_client.py rename to azure-devops/azure/devops/v4_0/security/security_client.py index 703bf90e..b75af75d 100644 --- a/vsts/vsts/security/v4_0/security_client.py +++ b/azure-devops/azure/devops/v4_0/security/security_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class SecurityClient(VssClient): +class SecurityClient(Client): """Security :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/service_hooks/__init__.py b/azure-devops/azure/devops/v4_0/service_hooks/__init__.py new file mode 100644 index 00000000..5bb6840c --- /dev/null +++ b/azure-devops/azure/devops/v4_0/service_hooks/__init__.py @@ -0,0 +1,41 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Consumer', + 'ConsumerAction', + 'Event', + 'EventTypeDescriptor', + 'ExternalConfigurationDescriptor', + 'FormattedEventMessage', + 'IdentityRef', + 'InputDescriptor', + 'InputFilter', + 'InputFilterCondition', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Notification', + 'NotificationDetails', + 'NotificationResultsSummaryDetail', + 'NotificationsQuery', + 'NotificationSummary', + 'Publisher', + 'PublisherEvent', + 'PublishersQuery', + 'ReferenceLinks', + 'ResourceContainer', + 'SessionToken', + 'Subscription', + 'SubscriptionsQuery', + 'VersionedResource', +] diff --git a/azure-devops/azure/devops/v4_0/service_hooks/models.py b/azure-devops/azure/devops/v4_0/service_hooks/models.py new file mode 100644 index 00000000..24239505 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/service_hooks/models.py @@ -0,0 +1,1158 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Consumer(Model): + """Consumer. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param actions: Gets this consumer's actions. + :type actions: list of :class:`ConsumerAction ` + :param authentication_type: Gets or sets this consumer's authentication type. + :type authentication_type: object + :param description: Gets or sets this consumer's localized description. + :type description: str + :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. + :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :param id: Gets or sets this consumer's identifier. + :type id: str + :param image_url: Gets or sets this consumer's image URL, if any. + :type image_url: str + :param information_url: Gets or sets this consumer's information URL, if any. + :type information_url: str + :param input_descriptors: Gets or sets this consumer's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this consumer's localized name. + :type name: str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'actions': {'key': 'actions', 'type': '[ConsumerAction]'}, + 'authentication_type': {'key': 'authenticationType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'external_configuration': {'key': 'externalConfiguration', 'type': 'ExternalConfigurationDescriptor'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'information_url': {'key': 'informationUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, actions=None, authentication_type=None, description=None, external_configuration=None, id=None, image_url=None, information_url=None, input_descriptors=None, name=None, url=None): + super(Consumer, self).__init__() + self._links = _links + self.actions = actions + self.authentication_type = authentication_type + self.description = description + self.external_configuration = external_configuration + self.id = id + self.image_url = image_url + self.information_url = information_url + self.input_descriptors = input_descriptors + self.name = name + self.url = url + + +class ConsumerAction(Model): + """ConsumerAction. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. + :type allow_resource_version_override: bool + :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. + :type consumer_id: str + :param description: Gets or sets this action's localized description. + :type description: str + :param id: Gets or sets this action's identifier. + :type id: str + :param input_descriptors: Gets or sets this action's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this action's localized name. + :type name: str + :param supported_event_types: Gets or sets this action's supported event identifiers. + :type supported_event_types: list of str + :param supported_resource_versions: Gets or sets this action's supported resource versions. + :type supported_resource_versions: dict + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allow_resource_version_override': {'key': 'allowResourceVersionOverride', 'type': 'bool'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supported_event_types': {'key': 'supportedEventTypes', 'type': '[str]'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '{[str]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allow_resource_version_override=None, consumer_id=None, description=None, id=None, input_descriptors=None, name=None, supported_event_types=None, supported_resource_versions=None, url=None): + super(ConsumerAction, self).__init__() + self._links = _links + self.allow_resource_version_override = allow_resource_version_override + self.consumer_id = consumer_id + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.supported_event_types = supported_event_types + self.supported_resource_versions = supported_resource_versions + self.url = url + + +class Event(Model): + """Event. + + :param created_date: Gets or sets the UTC-based date and time that this event was created. + :type created_date: datetime + :param detailed_message: Gets or sets the detailed message associated with this event. + :type detailed_message: :class:`FormattedEventMessage ` + :param event_type: Gets or sets the type of this event. + :type event_type: str + :param id: Gets or sets the unique identifier of this event. + :type id: str + :param message: Gets or sets the (brief) message associated with this event. + :type message: :class:`FormattedEventMessage ` + :param publisher_id: Gets or sets the identifier of the publisher that raised this event. + :type publisher_id: str + :param resource: Gets or sets the data associated with this event. + :type resource: object + :param resource_containers: Gets or sets the resource containers. + :type resource_containers: dict + :param resource_version: Gets or sets the version of the data associated with this event. + :type resource_version: str + :param session_token: Gets or sets the Session Token that can be used in further interactions + :type session_token: :class:`SessionToken ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'detailed_message': {'key': 'detailedMessage', 'type': 'FormattedEventMessage'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'FormattedEventMessage'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_containers': {'key': 'resourceContainers', 'type': '{ResourceContainer}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'session_token': {'key': 'sessionToken', 'type': 'SessionToken'} + } + + def __init__(self, created_date=None, detailed_message=None, event_type=None, id=None, message=None, publisher_id=None, resource=None, resource_containers=None, resource_version=None, session_token=None): + super(Event, self).__init__() + self.created_date = created_date + self.detailed_message = detailed_message + self.event_type = event_type + self.id = id + self.message = message + self.publisher_id = publisher_id + self.resource = resource + self.resource_containers = resource_containers + self.resource_version = resource_version + self.session_token = session_token + + +class EventTypeDescriptor(Model): + """EventTypeDescriptor. + + :param description: A localized description of the event type + :type description: str + :param id: A unique id for the event type + :type id: str + :param input_descriptors: Event-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: A localized friendly name for the event type + :type name: str + :param publisher_id: A unique id for the publisher of this event type + :type publisher_id: str + :param supported_resource_versions: Supported versions for the event's resource payloads. + :type supported_resource_versions: list of str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, input_descriptors=None, name=None, publisher_id=None, supported_resource_versions=None, url=None): + super(EventTypeDescriptor, self).__init__() + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.publisher_id = publisher_id + self.supported_resource_versions = supported_resource_versions + self.url = url + + +class ExternalConfigurationDescriptor(Model): + """ExternalConfigurationDescriptor. + + :param create_subscription_url: Url of the site to create this type of subscription. + :type create_subscription_url: str + :param edit_subscription_property_name: The name of an input property that contains the URL to edit a subscription. + :type edit_subscription_property_name: str + :param hosted_only: True if the external configuration applies only to hosted. + :type hosted_only: bool + """ + + _attribute_map = { + 'create_subscription_url': {'key': 'createSubscriptionUrl', 'type': 'str'}, + 'edit_subscription_property_name': {'key': 'editSubscriptionPropertyName', 'type': 'str'}, + 'hosted_only': {'key': 'hostedOnly', 'type': 'bool'} + } + + def __init__(self, create_subscription_url=None, edit_subscription_property_name=None, hosted_only=None): + super(ExternalConfigurationDescriptor, self).__init__() + self.create_subscription_url = create_subscription_url + self.edit_subscription_property_name = edit_subscription_property_name + self.hosted_only = hosted_only + + +class FormattedEventMessage(Model): + """FormattedEventMessage. + + :param html: Gets or sets the html format of the message + :type html: str + :param markdown: Gets or sets the markdown format of the message + :type markdown: str + :param text: Gets or sets the raw text of the message + :type text: str + """ + + _attribute_map = { + 'html': {'key': 'html', 'type': 'str'}, + 'markdown': {'key': 'markdown', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, html=None, markdown=None, text=None): + super(FormattedEventMessage, self).__init__() + self.html = html + self.markdown = markdown + self.text = text + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputFilter(Model): + """InputFilter. + + :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. + :type conditions: list of :class:`InputFilterCondition ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[InputFilterCondition]'} + } + + def __init__(self, conditions=None): + super(InputFilter, self).__init__() + self.conditions = conditions + + +class InputFilterCondition(Model): + """InputFilterCondition. + + :param case_sensitive: Whether or not to do a case sensitive match + :type case_sensitive: bool + :param input_id: The Id of the input to filter on + :type input_id: str + :param input_value: The "expected" input value to compare with the actual input value + :type input_value: str + :param operator: The operator applied between the expected and actual input value + :type operator: object + """ + + _attribute_map = { + 'case_sensitive': {'key': 'caseSensitive', 'type': 'bool'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'input_value': {'key': 'inputValue', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'object'} + } + + def __init__(self, case_sensitive=None, input_id=None, input_value=None, operator=None): + super(InputFilterCondition, self).__init__() + self.case_sensitive = case_sensitive + self.input_id = input_id + self.input_value = input_value + self.operator = operator + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class Notification(Model): + """Notification. + + :param created_date: Gets or sets date and time that this result was created. + :type created_date: datetime + :param details: Details about this notification (if available) + :type details: :class:`NotificationDetails ` + :param event_id: The event id associated with this notification + :type event_id: str + :param id: The notification id + :type id: int + :param modified_date: Gets or sets date and time that this result was last modified. + :type modified_date: datetime + :param result: Result of the notification + :type result: object + :param status: Status of the notification + :type status: object + :param subscriber_id: The subscriber Id associated with this notification. This is the last identity who touched in the subscription. In case of test notifications it can be the tester if the subscription is not created yet. + :type subscriber_id: str + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'details': {'key': 'details', 'type': 'NotificationDetails'}, + 'event_id': {'key': 'eventId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, created_date=None, details=None, event_id=None, id=None, modified_date=None, result=None, status=None, subscriber_id=None, subscription_id=None): + super(Notification, self).__init__() + self.created_date = created_date + self.details = details + self.event_id = event_id + self.id = id + self.modified_date = modified_date + self.result = result + self.status = status + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id + + +class NotificationDetails(Model): + """NotificationDetails. + + :param completed_date: Gets or sets the time that this notification was completed (response received from the consumer) + :type completed_date: datetime + :param consumer_action_id: Gets or sets this notification detail's consumer action identifier. + :type consumer_action_id: str + :param consumer_id: Gets or sets this notification detail's consumer identifier. + :type consumer_id: str + :param consumer_inputs: Gets or sets this notification detail's consumer inputs. + :type consumer_inputs: dict + :param dequeued_date: Gets or sets the time that this notification was dequeued for processing + :type dequeued_date: datetime + :param error_detail: Gets or sets this notification detail's error detail. + :type error_detail: str + :param error_message: Gets or sets this notification detail's error message. + :type error_message: str + :param event: Gets or sets this notification detail's event content. + :type event: :class:`Event ` + :param event_type: Gets or sets this notification detail's event type. + :type event_type: str + :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) + :type processed_date: datetime + :param publisher_id: Gets or sets this notification detail's publisher identifier. + :type publisher_id: str + :param publisher_inputs: Gets or sets this notification detail's publisher inputs. + :type publisher_inputs: dict + :param queued_date: Gets or sets the time that this notification was queued (created) + :type queued_date: datetime + :param request: Gets or sets this notification detail's request. + :type request: str + :param request_attempts: Number of requests attempted to be sent to the consumer + :type request_attempts: int + :param request_duration: Duration of the request to the consumer in seconds + :type request_duration: float + :param response: Gets or sets this notification detail's reponse. + :type response: str + """ + + _attribute_map = { + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'dequeued_date': {'key': 'dequeuedDate', 'type': 'iso-8601'}, + 'error_detail': {'key': 'errorDetail', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'processed_date': {'key': 'processedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'str'}, + 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, + 'request_duration': {'key': 'requestDuration', 'type': 'float'}, + 'response': {'key': 'response', 'type': 'str'} + } + + def __init__(self, completed_date=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, dequeued_date=None, error_detail=None, error_message=None, event=None, event_type=None, processed_date=None, publisher_id=None, publisher_inputs=None, queued_date=None, request=None, request_attempts=None, request_duration=None, response=None): + super(NotificationDetails, self).__init__() + self.completed_date = completed_date + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.dequeued_date = dequeued_date + self.error_detail = error_detail + self.error_message = error_message + self.event = event + self.event_type = event_type + self.processed_date = processed_date + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.queued_date = queued_date + self.request = request + self.request_attempts = request_attempts + self.request_duration = request_duration + self.response = response + + +class NotificationResultsSummaryDetail(Model): + """NotificationResultsSummaryDetail. + + :param notification_count: Count of notification sent out with a matching result. + :type notification_count: int + :param result: Result of the notification + :type result: object + """ + + _attribute_map = { + 'notification_count': {'key': 'notificationCount', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'} + } + + def __init__(self, notification_count=None, result=None): + super(NotificationResultsSummaryDetail, self).__init__() + self.notification_count = notification_count + self.result = result + + +class NotificationsQuery(Model): + """NotificationsQuery. + + :param associated_subscriptions: The subscriptions associated with the notifications returned from the query + :type associated_subscriptions: list of :class:`Subscription ` + :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. + :type include_details: bool + :param max_created_date: Optional maximum date at which the notification was created + :type max_created_date: datetime + :param max_results: Optional maximum number of overall results to include + :type max_results: int + :param max_results_per_subscription: Optional maximum number of results for each subscription. Only takes effect when a list of subscription ids is supplied in the query. + :type max_results_per_subscription: int + :param min_created_date: Optional minimum date at which the notification was created + :type min_created_date: datetime + :param publisher_id: Optional publisher id to restrict the results to + :type publisher_id: str + :param results: Results from the query + :type results: list of :class:`Notification ` + :param result_type: Optional notification result type to filter results to + :type result_type: object + :param status: Optional notification status to filter results to + :type status: object + :param subscription_ids: Optional list of subscription ids to restrict the results to + :type subscription_ids: list of str + :param summary: Summary of notifications - the count of each result type (success, fail, ..). + :type summary: list of :class:`NotificationSummary ` + """ + + _attribute_map = { + 'associated_subscriptions': {'key': 'associatedSubscriptions', 'type': '[Subscription]'}, + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'max_created_date': {'key': 'maxCreatedDate', 'type': 'iso-8601'}, + 'max_results': {'key': 'maxResults', 'type': 'int'}, + 'max_results_per_subscription': {'key': 'maxResultsPerSubscription', 'type': 'int'}, + 'min_created_date': {'key': 'minCreatedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[Notification]'}, + 'result_type': {'key': 'resultType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscription_ids': {'key': 'subscriptionIds', 'type': '[str]'}, + 'summary': {'key': 'summary', 'type': '[NotificationSummary]'} + } + + def __init__(self, associated_subscriptions=None, include_details=None, max_created_date=None, max_results=None, max_results_per_subscription=None, min_created_date=None, publisher_id=None, results=None, result_type=None, status=None, subscription_ids=None, summary=None): + super(NotificationsQuery, self).__init__() + self.associated_subscriptions = associated_subscriptions + self.include_details = include_details + self.max_created_date = max_created_date + self.max_results = max_results + self.max_results_per_subscription = max_results_per_subscription + self.min_created_date = min_created_date + self.publisher_id = publisher_id + self.results = results + self.result_type = result_type + self.status = status + self.subscription_ids = subscription_ids + self.summary = summary + + +class NotificationSummary(Model): + """NotificationSummary. + + :param results: The notification results for this particular subscription. + :type results: list of :class:`NotificationResultsSummaryDetail ` + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[NotificationResultsSummaryDetail]'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, results=None, subscription_id=None): + super(NotificationSummary, self).__init__() + self.results = results + self.subscription_id = subscription_id + + +class Publisher(Model): + """Publisher. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param description: Gets this publisher's localized description. + :type description: str + :param id: Gets this publisher's identifier. + :type id: str + :param input_descriptors: Publisher-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets this publisher's localized name. + :type name: str + :param service_instance_type: The service instance type of the first party publisher. + :type service_instance_type: str + :param supported_events: Gets this publisher's supported event types. + :type supported_events: list of :class:`EventTypeDescriptor ` + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'supported_events': {'key': 'supportedEvents', 'type': '[EventTypeDescriptor]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, input_descriptors=None, name=None, service_instance_type=None, supported_events=None, url=None): + super(Publisher, self).__init__() + self._links = _links + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.service_instance_type = service_instance_type + self.supported_events = supported_events + self.url = url + + +class PublisherEvent(Model): + """PublisherEvent. + + :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. + :type diagnostics: dict + :param event: The event being published + :type event: :class:`Event ` + :param notification_id: Gets or sets the id of the notification. + :type notification_id: int + :param other_resource_versions: Gets or sets the array of older supported resource versions. + :type other_resource_versions: list of :class:`VersionedResource ` + :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event + :type publisher_input_filters: list of :class:`InputFilter ` + :param subscription: Gets or sets matchd hooks subscription which caused this event. + :type subscription: :class:`Subscription ` + """ + + _attribute_map = { + 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'notification_id': {'key': 'notificationId', 'type': 'int'}, + 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'subscription': {'key': 'subscription', 'type': 'Subscription'} + } + + def __init__(self, diagnostics=None, event=None, notification_id=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): + super(PublisherEvent, self).__init__() + self.diagnostics = diagnostics + self.event = event + self.notification_id = notification_id + self.other_resource_versions = other_resource_versions + self.publisher_input_filters = publisher_input_filters + self.subscription = subscription + + +class PublishersQuery(Model): + """PublishersQuery. + + :param publisher_ids: Optional list of publisher ids to restrict the results to + :type publisher_ids: list of str + :param publisher_inputs: Filter for publisher inputs + :type publisher_inputs: dict + :param results: Results from the query + :type results: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publisher_ids': {'key': 'publisherIds', 'type': '[str]'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'results': {'key': 'results', 'type': '[Publisher]'} + } + + def __init__(self, publisher_ids=None, publisher_inputs=None, results=None): + super(PublishersQuery, self).__init__() + self.publisher_ids = publisher_ids + self.publisher_inputs = publisher_inputs + self.results = results + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResourceContainer(Model): + """ResourceContainer. + + :param base_url: Gets or sets the container's base URL, i.e. the URL of the host (collection, application, or deploument) containing the container resource. + :type base_url: str + :param id: Gets or sets the container's specific Id. + :type id: str + :param name: Gets or sets the container's name. + :type name: str + :param url: Gets or sets the container's REST API URL. + :type url: str + """ + + _attribute_map = { + 'base_url': {'key': 'baseUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, base_url=None, id=None, name=None, url=None): + super(ResourceContainer, self).__init__() + self.base_url = base_url + self.id = id + self.name = name + self.url = url + + +class SessionToken(Model): + """SessionToken. + + :param error: The error message in case of error + :type error: str + :param token: The access token + :type token: str + :param valid_to: The expiration date in UTC + :type valid_to: datetime + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} + } + + def __init__(self, error=None, token=None, valid_to=None): + super(SessionToken, self).__init__() + self.error = error + self.token = token + self.valid_to = valid_to + + +class Subscription(Model): + """Subscription. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param action_description: + :type action_description: str + :param consumer_action_id: + :type consumer_action_id: str + :param consumer_id: + :type consumer_id: str + :param consumer_inputs: Consumer input values + :type consumer_inputs: dict + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_date: + :type created_date: datetime + :param event_description: + :type event_description: str + :param event_type: + :type event_type: str + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_date: + :type modified_date: datetime + :param probation_retries: + :type probation_retries: str + :param publisher_id: + :type publisher_id: str + :param publisher_inputs: Publisher input values + :type publisher_inputs: dict + :param resource_version: + :type resource_version: str + :param status: + :type status: object + :param subscriber: + :type subscriber: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'action_description': {'key': 'actionDescription', 'type': 'str'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'event_description': {'key': 'eventDescription', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, action_description=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, created_by=None, created_date=None, event_description=None, event_type=None, id=None, modified_by=None, modified_date=None, probation_retries=None, publisher_id=None, publisher_inputs=None, resource_version=None, status=None, subscriber=None, url=None): + super(Subscription, self).__init__() + self._links = _links + self.action_description = action_description + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.created_by = created_by + self.created_date = created_date + self.event_description = event_description + self.event_type = event_type + self.id = id + self.modified_by = modified_by + self.modified_date = modified_date + self.probation_retries = probation_retries + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.resource_version = resource_version + self.status = status + self.subscriber = subscriber + self.url = url + + +class SubscriptionsQuery(Model): + """SubscriptionsQuery. + + :param consumer_action_id: Optional consumer action id to restrict the results to (null for any) + :type consumer_action_id: str + :param consumer_id: Optional consumer id to restrict the results to (null for any) + :type consumer_id: str + :param consumer_input_filters: Filter for subscription consumer inputs + :type consumer_input_filters: list of :class:`InputFilter ` + :param event_type: Optional event type id to restrict the results to (null for any) + :type event_type: str + :param publisher_id: Optional publisher id to restrict the results to (null for any) + :type publisher_id: str + :param publisher_input_filters: Filter for subscription publisher inputs + :type publisher_input_filters: list of :class:`InputFilter ` + :param results: Results from the query + :type results: list of :class:`Subscription ` + :param subscriber_id: Optional subscriber filter. + :type subscriber_id: str + """ + + _attribute_map = { + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_input_filters': {'key': 'consumerInputFilters', 'type': '[InputFilter]'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'results': {'key': 'results', 'type': '[Subscription]'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'} + } + + def __init__(self, consumer_action_id=None, consumer_id=None, consumer_input_filters=None, event_type=None, publisher_id=None, publisher_input_filters=None, results=None, subscriber_id=None): + super(SubscriptionsQuery, self).__init__() + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_input_filters = consumer_input_filters + self.event_type = event_type + self.publisher_id = publisher_id + self.publisher_input_filters = publisher_input_filters + self.results = results + self.subscriber_id = subscriber_id + + +class VersionedResource(Model): + """VersionedResource. + + :param compatible_with: Gets or sets the reference to the compatible version. + :type compatible_with: str + :param resource: Gets or sets the resource data. + :type resource: object + :param resource_version: Gets or sets the version of the resource data. + :type resource_version: str + """ + + _attribute_map = { + 'compatible_with': {'key': 'compatibleWith', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'} + } + + def __init__(self, compatible_with=None, resource=None, resource_version=None): + super(VersionedResource, self).__init__() + self.compatible_with = compatible_with + self.resource = resource + self.resource_version = resource_version + + +__all__ = [ + 'Consumer', + 'ConsumerAction', + 'Event', + 'EventTypeDescriptor', + 'ExternalConfigurationDescriptor', + 'FormattedEventMessage', + 'IdentityRef', + 'InputDescriptor', + 'InputFilter', + 'InputFilterCondition', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Notification', + 'NotificationDetails', + 'NotificationResultsSummaryDetail', + 'NotificationsQuery', + 'NotificationSummary', + 'Publisher', + 'PublisherEvent', + 'PublishersQuery', + 'ReferenceLinks', + 'ResourceContainer', + 'SessionToken', + 'Subscription', + 'SubscriptionsQuery', + 'VersionedResource', +] diff --git a/vsts/vsts/service_hooks/v4_0/service_hooks_client.py b/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py similarity index 99% rename from vsts/vsts/service_hooks/v4_0/service_hooks_client.py rename to azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py index cd6efd97..a4f50f40 100644 --- a/vsts/vsts/service_hooks/v4_0/service_hooks_client.py +++ b/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ServiceHooksClient(VssClient): +class ServiceHooksClient(Client): """ServiceHooks :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/feature_management/v4_0/models/__init__.py b/azure-devops/azure/devops/v4_0/task/__init__.py similarity index 51% rename from vsts/vsts/feature_management/v4_0/models/__init__.py rename to azure-devops/azure/devops/v4_0/task/__init__.py index a5e7f615..58690b29 100644 --- a/vsts/vsts/feature_management/v4_0/models/__init__.py +++ b/azure-devops/azure/devops/v4_0/task/__init__.py @@ -6,18 +6,29 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .contributed_feature import ContributedFeature -from .contributed_feature_setting_scope import ContributedFeatureSettingScope -from .contributed_feature_state import ContributedFeatureState -from .contributed_feature_state_query import ContributedFeatureStateQuery -from .contributed_feature_value_rule import ContributedFeatureValueRule -from .reference_links import ReferenceLinks +from .models import * __all__ = [ - 'ContributedFeature', - 'ContributedFeatureSettingScope', - 'ContributedFeatureState', - 'ContributedFeatureStateQuery', - 'ContributedFeatureValueRule', + 'Issue', + 'JobOption', + 'MaskHint', + 'PlanEnvironment', + 'ProjectReference', 'ReferenceLinks', + 'TaskAttachment', + 'TaskLog', + 'TaskLogReference', + 'TaskOrchestrationContainer', + 'TaskOrchestrationItem', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlan', + 'TaskOrchestrationPlanGroupsQueueMetrics', + 'TaskOrchestrationPlanReference', + 'TaskOrchestrationQueuedPlan', + 'TaskOrchestrationQueuedPlanGroup', + 'TaskReference', + 'Timeline', + 'TimelineRecord', + 'TimelineReference', + 'VariableValue', ] diff --git a/azure-devops/azure/devops/v4_0/task/models.py b/azure-devops/azure/devops/v4_0/task/models.py new file mode 100644 index 00000000..25e1f68b --- /dev/null +++ b/azure-devops/azure/devops/v4_0/task/models.py @@ -0,0 +1,785 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Issue(Model): + """Issue. + + :param category: + :type category: str + :param data: + :type data: dict + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, category=None, data=None, message=None, type=None): + super(Issue, self).__init__() + self.category = category + self.data = data + self.message = message + self.type = type + + +class JobOption(Model): + """JobOption. + + :param data: + :type data: dict + :param id: Gets the id of the option. + :type id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, data=None, id=None): + super(JobOption, self).__init__() + self.data = data + self.id = id + + +class MaskHint(Model): + """MaskHint. + + :param type: + :type type: object + :param value: + :type value: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, type=None, value=None): + super(MaskHint, self).__init__() + self.type = type + self.value = value + + +class PlanEnvironment(Model): + """PlanEnvironment. + + :param mask: + :type mask: list of :class:`MaskHint ` + :param options: + :type options: dict + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'mask': {'key': 'mask', 'type': '[MaskHint]'}, + 'options': {'key': 'options', 'type': '{JobOption}'}, + 'variables': {'key': 'variables', 'type': '{str}'} + } + + def __init__(self, mask=None, options=None, variables=None): + super(PlanEnvironment, self).__init__() + self.mask = mask + self.options = options + self.variables = variables + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class TaskAttachment(Model): + """TaskAttachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_on: + :type created_on: datetime + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param name: + :type name: str + :param record_id: + :type record_id: str + :param timeline_id: + :type timeline_id: str + :param type: + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, last_changed_by=None, last_changed_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(TaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type + + +class TaskLogReference(Model): + """TaskLogReference. + + :param id: + :type id: int + :param location: + :type location: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, id=None, location=None): + super(TaskLogReference, self).__init__() + self.id = id + self.location = location + + +class TaskOrchestrationItem(Model): + """TaskOrchestrationItem. + + :param item_type: + :type item_type: object + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'} + } + + def __init__(self, item_type=None): + super(TaskOrchestrationItem, self).__init__() + self.item_type = item_type + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name + + +class TaskOrchestrationPlanGroupsQueueMetrics(Model): + """TaskOrchestrationPlanGroupsQueueMetrics. + + :param count: + :type count: int + :param status: + :type status: object + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, count=None, status=None): + super(TaskOrchestrationPlanGroupsQueueMetrics, self).__init__() + self.count = count + self.status = status + + +class TaskOrchestrationPlanReference(Model): + """TaskOrchestrationPlanReference. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): + super(TaskOrchestrationPlanReference, self).__init__() + self.artifact_location = artifact_location + self.artifact_uri = artifact_uri + self.definition = definition + self.owner = owner + self.plan_id = plan_id + self.plan_type = plan_type + self.scope_identifier = scope_identifier + self.version = version + + +class TaskOrchestrationQueuedPlan(Model): + """TaskOrchestrationQueuedPlan. + + :param assign_time: + :type assign_time: datetime + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param pool_id: + :type pool_id: int + :param queue_position: + :type queue_position: int + :param queue_time: + :type queue_time: datetime + :param scope_identifier: + :type scope_identifier: str + """ + + _attribute_map = { + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'pool_id': {'key': 'poolId', 'type': 'int'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'} + } + + def __init__(self, assign_time=None, definition=None, owner=None, plan_group=None, plan_id=None, pool_id=None, queue_position=None, queue_time=None, scope_identifier=None): + super(TaskOrchestrationQueuedPlan, self).__init__() + self.assign_time = assign_time + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.pool_id = pool_id + self.queue_position = queue_position + self.queue_time = queue_time + self.scope_identifier = scope_identifier + + +class TaskOrchestrationQueuedPlanGroup(Model): + """TaskOrchestrationQueuedPlanGroup. + + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plans: + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :param project: + :type project: :class:`ProjectReference ` + :param queue_position: + :type queue_position: int + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plans': {'key': 'plans', 'type': '[TaskOrchestrationQueuedPlan]'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'} + } + + def __init__(self, definition=None, owner=None, plan_group=None, plans=None, project=None, queue_position=None): + super(TaskOrchestrationQueuedPlanGroup, self).__init__() + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plans = plans + self.project = project + self.queue_position = queue_position + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version + + +class TimelineRecord(Model): + """TimelineRecord. + + :param change_id: + :type change_id: int + :param current_operation: + :type current_operation: str + :param details: + :type details: :class:`TimelineReference ` + :param error_count: + :type error_count: int + :param finish_time: + :type finish_time: datetime + :param id: + :type id: str + :param issues: + :type issues: list of :class:`Issue ` + :param last_modified: + :type last_modified: datetime + :param location: + :type location: str + :param log: + :type log: :class:`TaskLogReference ` + :param name: + :type name: str + :param order: + :type order: int + :param parent_id: + :type parent_id: str + :param percent_complete: + :type percent_complete: int + :param ref_name: + :type ref_name: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param task: + :type task: :class:`TaskReference ` + :param type: + :type type: str + :param variables: + :type variables: dict + :param warning_count: + :type warning_count: int + :param worker_name: + :type worker_name: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'current_operation': {'key': 'currentOperation', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'TimelineReference'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'location': {'key': 'location', 'type': 'str'}, + 'log': {'key': 'log', 'type': 'TaskLogReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'TaskReference'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'}, + 'worker_name': {'key': 'workerName', 'type': 'str'} + } + + def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): + super(TimelineRecord, self).__init__() + self.change_id = change_id + self.current_operation = current_operation + self.details = details + self.error_count = error_count + self.finish_time = finish_time + self.id = id + self.issues = issues + self.last_modified = last_modified + self.location = location + self.log = log + self.name = name + self.order = order + self.parent_id = parent_id + self.percent_complete = percent_complete + self.ref_name = ref_name + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.task = task + self.type = type + self.variables = variables + self.warning_count = warning_count + self.worker_name = worker_name + + +class TimelineReference(Model): + """TimelineReference. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, change_id=None, id=None, location=None): + super(TimelineReference, self).__init__() + self.change_id = change_id + self.id = id + self.location = location + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class TaskLog(TaskLogReference): + """TaskLog. + + :param id: + :type id: int + :param location: + :type location: str + :param created_on: + :type created_on: datetime + :param index_location: + :type index_location: str + :param last_changed_on: + :type last_changed_on: datetime + :param line_count: + :type line_count: long + :param path: + :type path: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'index_location': {'key': 'indexLocation', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, id=None, location=None, created_on=None, index_location=None, last_changed_on=None, line_count=None, path=None): + super(TaskLog, self).__init__(id=id, location=location) + self.created_on = created_on + self.index_location = index_location + self.last_changed_on = last_changed_on + self.line_count = line_count + self.path = path + + +class TaskOrchestrationContainer(TaskOrchestrationItem): + """TaskOrchestrationContainer. + + :param item_type: + :type item_type: object + :param children: + :type children: list of :class:`TaskOrchestrationItem ` + :param continue_on_error: + :type continue_on_error: bool + :param data: + :type data: dict + :param max_concurrency: + :type max_concurrency: int + :param parallel: + :type parallel: bool + :param rollback: + :type rollback: :class:`TaskOrchestrationContainer ` + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'}, + 'children': {'key': 'children', 'type': '[TaskOrchestrationItem]'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'max_concurrency': {'key': 'maxConcurrency', 'type': 'int'}, + 'parallel': {'key': 'parallel', 'type': 'bool'}, + 'rollback': {'key': 'rollback', 'type': 'TaskOrchestrationContainer'} + } + + def __init__(self, item_type=None, children=None, continue_on_error=None, data=None, max_concurrency=None, parallel=None, rollback=None): + super(TaskOrchestrationContainer, self).__init__(item_type=item_type) + self.children = children + self.continue_on_error = continue_on_error + self.data = data + self.max_concurrency = max_concurrency + self.parallel = parallel + self.rollback = rollback + + +class TaskOrchestrationPlan(TaskOrchestrationPlanReference): + """TaskOrchestrationPlan. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + :param environment: + :type environment: :class:`PlanEnvironment ` + :param finish_time: + :type finish_time: datetime + :param implementation: + :type implementation: :class:`TaskOrchestrationContainer ` + :param plan_group: + :type plan_group: str + :param requested_by_id: + :type requested_by_id: str + :param requested_for_id: + :type requested_for_id: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param timeline: + :type timeline: :class:`TimelineReference ` + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, + 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, plan_group=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): + super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) + self.environment = environment + self.finish_time = finish_time + self.implementation = implementation + self.plan_group = plan_group + self.requested_by_id = requested_by_id + self.requested_for_id = requested_for_id + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.timeline = timeline + + +class Timeline(TimelineReference): + """Timeline. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param records: + :type records: list of :class:`TimelineRecord ` + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'records': {'key': 'records', 'type': '[TimelineRecord]'} + } + + def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, last_changed_on=None, records=None): + super(Timeline, self).__init__(change_id=change_id, id=id, location=location) + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.records = records + + +__all__ = [ + 'Issue', + 'JobOption', + 'MaskHint', + 'PlanEnvironment', + 'ProjectReference', + 'ReferenceLinks', + 'TaskAttachment', + 'TaskLogReference', + 'TaskOrchestrationItem', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlanGroupsQueueMetrics', + 'TaskOrchestrationPlanReference', + 'TaskOrchestrationQueuedPlan', + 'TaskOrchestrationQueuedPlanGroup', + 'TaskReference', + 'TimelineRecord', + 'TimelineReference', + 'VariableValue', + 'TaskLog', + 'TaskOrchestrationContainer', + 'TaskOrchestrationPlan', + 'Timeline', +] diff --git a/vsts/vsts/task/v4_0/task_client.py b/azure-devops/azure/devops/v4_0/task/task_client.py similarity index 99% rename from vsts/vsts/task/v4_0/task_client.py rename to azure-devops/azure/devops/v4_0/task/task_client.py index 068b4010..d373d83c 100644 --- a/vsts/vsts/task/v4_0/task_client.py +++ b/azure-devops/azure/devops/v4_0/task/task_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TaskClient(VssClient): +class TaskClient(Client): """Task :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/task_agent/__init__.py b/azure-devops/azure/devops/v4_0/task_agent/__init__.py new file mode 100644 index 00000000..d9e52e28 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/task_agent/__init__.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthorizationHeader', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'DeploymentGroup', + 'DeploymentGroupMetrics', + 'DeploymentGroupReference', + 'DeploymentMachine', + 'DeploymentMachineGroup', + 'DeploymentMachineGroupReference', + 'EndpointAuthorization', + 'EndpointUrl', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValidationRequest', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'MetricsColumnMetaData', + 'MetricsColumnsHeader', + 'MetricsRow', + 'PackageMetadata', + 'PackageVersion', + 'ProjectReference', + 'PublishTaskGroupMetadata', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'SecureFile', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'TaskAgent', + 'TaskAgentAuthorization', + 'TaskAgentJobRequest', + 'TaskAgentMessage', + 'TaskAgentPool', + 'TaskAgentPoolMaintenanceDefinition', + 'TaskAgentPoolMaintenanceJob', + 'TaskAgentPoolMaintenanceJobTargetAgent', + 'TaskAgentPoolMaintenanceOptions', + 'TaskAgentPoolMaintenanceRetentionPolicy', + 'TaskAgentPoolMaintenanceSchedule', + 'TaskAgentPoolReference', + 'TaskAgentPublicKey', + 'TaskAgentQueue', + 'TaskAgentReference', + 'TaskAgentSession', + 'TaskAgentSessionKey', + 'TaskAgentUpdate', + 'TaskAgentUpdateReason', + 'TaskDefinition', + 'TaskDefinitionEndpoint', + 'TaskDefinitionReference', + 'TaskExecution', + 'TaskGroup', + 'TaskGroupDefinition', + 'TaskGroupRevision', + 'TaskGroupStep', + 'TaskHubLicenseDetails', + 'TaskInputDefinition', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationOwner', + 'TaskOutputVariable', + 'TaskPackageMetadata', + 'TaskReference', + 'TaskSourceDefinition', + 'TaskSourceDefinitionBase', + 'TaskVersion', + 'ValidationItem', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', +] diff --git a/azure-devops/azure/devops/v4_0/task_agent/models.py b/azure-devops/azure/devops/v4_0/task_agent/models.py new file mode 100644 index 00000000..96a9cf69 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/task_agent/models.py @@ -0,0 +1,3133 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AadOauthTokenRequest(Model): + """AadOauthTokenRequest. + + :param refresh: + :type refresh: bool + :param resource: + :type resource: str + :param tenant_id: + :type tenant_id: str + :param token: + :type token: str + """ + + _attribute_map = { + 'refresh': {'key': 'refresh', 'type': 'bool'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, refresh=None, resource=None, tenant_id=None, token=None): + super(AadOauthTokenRequest, self).__init__() + self.refresh = refresh + self.resource = resource + self.tenant_id = tenant_id + self.token = token + + +class AadOauthTokenResult(Model): + """AadOauthTokenResult. + + :param access_token: + :type access_token: str + :param refresh_token_cache: + :type refresh_token_cache: str + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'} + } + + def __init__(self, access_token=None, refresh_token_cache=None): + super(AadOauthTokenResult, self).__init__() + self.access_token = access_token + self.refresh_token_cache = refresh_token_cache + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class AzureSubscription(Model): + """AzureSubscription. + + :param display_name: + :type display_name: str + :param subscription_id: + :type subscription_id: str + :param subscription_tenant_id: + :type subscription_tenant_id: str + :param subscription_tenant_name: + :type subscription_tenant_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, + 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} + } + + def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): + super(AzureSubscription, self).__init__() + self.display_name = display_name + self.subscription_id = subscription_id + self.subscription_tenant_id = subscription_tenant_id + self.subscription_tenant_name = subscription_tenant_name + + +class AzureSubscriptionQueryResult(Model): + """AzureSubscriptionQueryResult. + + :param error_message: + :type error_message: str + :param value: + :type value: list of :class:`AzureSubscription ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureSubscription]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureSubscriptionQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + +class DataSource(Model): + """DataSource. + + :param endpoint_url: + :type endpoint_url: str + :param name: + :type name: str + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, endpoint_url=None, name=None, resource_url=None, result_selector=None): + super(DataSource, self).__init__() + self.endpoint_url = endpoint_url + self.name = name + self.resource_url = resource_url + self.result_selector = result_selector + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DataSourceDetails(Model): + """DataSourceDetails. + + :param data_source_name: + :type data_source_name: str + :param data_source_url: + :type data_source_url: str + :param parameters: + :type parameters: dict + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, data_source_name=None, data_source_url=None, parameters=None, resource_url=None, result_selector=None): + super(DataSourceDetails, self).__init__() + self.data_source_name = data_source_name + self.data_source_url = data_source_url + self.parameters = parameters + self.resource_url = resource_url + self.result_selector = result_selector + + +class DependencyBinding(Model): + """DependencyBinding. + + :param key: + :type key: str + :param value: + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, key=None, value=None): + super(DependencyBinding, self).__init__() + self.key = key + self.value = value + + +class DependencyData(Model): + """DependencyData. + + :param input: + :type input: str + :param map: + :type map: list of { key: str; value: [{ key: str; value: str }] } + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} + } + + def __init__(self, input=None, map=None): + super(DependencyData, self).__init__() + self.input = input + self.map = map + + +class DependsOn(Model): + """DependsOn. + + :param input: + :type input: str + :param map: + :type map: list of :class:`DependencyBinding ` + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[DependencyBinding]'} + } + + def __init__(self, input=None, map=None): + super(DependsOn, self).__init__() + self.input = input + self.map = map + + +class DeploymentGroupMetrics(Model): + """DeploymentGroupMetrics. + + :param columns_header: + :type columns_header: :class:`MetricsColumnsHeader ` + :param deployment_group: + :type deployment_group: :class:`DeploymentGroupReference ` + :param rows: + :type rows: list of :class:`MetricsRow ` + """ + + _attribute_map = { + 'columns_header': {'key': 'columnsHeader', 'type': 'MetricsColumnsHeader'}, + 'deployment_group': {'key': 'deploymentGroup', 'type': 'DeploymentGroupReference'}, + 'rows': {'key': 'rows', 'type': '[MetricsRow]'} + } + + def __init__(self, columns_header=None, deployment_group=None, rows=None): + super(DeploymentGroupMetrics, self).__init__() + self.columns_header = columns_header + self.deployment_group = deployment_group + self.rows = rows + + +class DeploymentGroupReference(Model): + """DeploymentGroupReference. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project + + +class DeploymentMachine(Model): + """DeploymentMachine. + + :param agent: + :type agent: :class:`TaskAgent ` + :param id: + :type id: int + :param tags: + :type tags: list of str + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgent'}, + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, agent=None, id=None, tags=None): + super(DeploymentMachine, self).__init__() + self.agent = agent + self.id = id + self.tags = tags + + +class DeploymentMachineGroupReference(Model): + """DeploymentMachineGroupReference. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentMachineGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project + + +class EndpointAuthorization(Model): + """EndpointAuthorization. + + :param parameters: + :type parameters: dict + :param scheme: + :type scheme: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, parameters=None, scheme=None): + super(EndpointAuthorization, self).__init__() + self.parameters = parameters + self.scheme = scheme + + +class EndpointUrl(Model): + """EndpointUrl. + + :param depends_on: + :type depends_on: :class:`DependsOn ` + :param display_name: + :type display_name: str + :param help_text: + :type help_text: str + :param is_visible: + :type is_visible: str + :param value: + :type value: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'is_visible': {'key': 'isVisible', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): + super(EndpointUrl, self).__init__() + self.depends_on = depends_on + self.display_name = display_name + self.help_text = help_text + self.is_visible = is_visible + self.value = value + + +class HelpLink(Model): + """HelpLink. + + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, text=None, url=None): + super(HelpLink, self).__init__() + self.text = text + self.url = url + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValidationRequest(Model): + """InputValidationRequest. + + :param inputs: + :type inputs: dict + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{ValidationItem}'} + } + + def __init__(self, inputs=None): + super(InputValidationRequest, self).__init__() + self.inputs = inputs + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class MetricsColumnMetaData(Model): + """MetricsColumnMetaData. + + :param column_name: + :type column_name: str + :param column_value_type: + :type column_value_type: str + """ + + _attribute_map = { + 'column_name': {'key': 'columnName', 'type': 'str'}, + 'column_value_type': {'key': 'columnValueType', 'type': 'str'} + } + + def __init__(self, column_name=None, column_value_type=None): + super(MetricsColumnMetaData, self).__init__() + self.column_name = column_name + self.column_value_type = column_value_type + + +class MetricsColumnsHeader(Model): + """MetricsColumnsHeader. + + :param dimensions: + :type dimensions: list of :class:`MetricsColumnMetaData ` + :param metrics: + :type metrics: list of :class:`MetricsColumnMetaData ` + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[MetricsColumnMetaData]'}, + 'metrics': {'key': 'metrics', 'type': '[MetricsColumnMetaData]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsColumnsHeader, self).__init__() + self.dimensions = dimensions + self.metrics = metrics + + +class MetricsRow(Model): + """MetricsRow. + + :param dimensions: + :type dimensions: list of str + :param metrics: + :type metrics: list of str + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[str]'}, + 'metrics': {'key': 'metrics', 'type': '[str]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsRow, self).__init__() + self.dimensions = dimensions + self.metrics = metrics + + +class PackageMetadata(Model): + """PackageMetadata. + + :param created_on: The date the package was created + :type created_on: datetime + :param download_url: A direct link to download the package. + :type download_url: str + :param filename: The UI uses this to display instructions, i.e. "unzip MyAgent.zip" + :type filename: str + :param hash_value: MD5 hash as a base64 string + :type hash_value: str + :param info_url: A link to documentation + :type info_url: str + :param platform: The platform (win7, linux, etc.) + :type platform: str + :param type: The type of package (e.g. "agent") + :type type: str + :param version: The package version. + :type version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'download_url': {'key': 'downloadUrl', 'type': 'str'}, + 'filename': {'key': 'filename', 'type': 'str'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'info_url': {'key': 'infoUrl', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'PackageVersion'} + } + + def __init__(self, created_on=None, download_url=None, filename=None, hash_value=None, info_url=None, platform=None, type=None, version=None): + super(PackageMetadata, self).__init__() + self.created_on = created_on + self.download_url = download_url + self.filename = filename + self.hash_value = hash_value + self.info_url = info_url + self.platform = platform + self.type = type + self.version = version + + +class PackageVersion(Model): + """PackageVersion. + + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(PackageVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class PublishTaskGroupMetadata(Model): + """PublishTaskGroupMetadata. + + :param comment: + :type comment: str + :param parent_definition_revision: + :type parent_definition_revision: int + :param preview: + :type preview: bool + :param task_group_id: + :type task_group_id: str + :param task_group_revision: + :type task_group_revision: int + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parent_definition_revision': {'key': 'parentDefinitionRevision', 'type': 'int'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'}, + 'task_group_revision': {'key': 'taskGroupRevision', 'type': 'int'} + } + + def __init__(self, comment=None, parent_definition_revision=None, preview=None, task_group_id=None, task_group_revision=None): + super(PublishTaskGroupMetadata, self).__init__() + self.comment = comment + self.parent_definition_revision = parent_definition_revision + self.preview = preview + self.task_group_id = task_group_id + self.task_group_revision = task_group_revision + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResultTransformationDetails(Model): + """ResultTransformationDetails. + + :param result_template: + :type result_template: str + """ + + _attribute_map = { + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, result_template=None): + super(ResultTransformationDetails, self).__init__() + self.result_template = result_template + + +class SecureFile(Model): + """SecureFile. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param properties: + :type properties: dict + :param ticket: + :type ticket: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'ticket': {'key': 'ticket', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, modified_on=None, name=None, properties=None, ticket=None): + super(SecureFile, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.properties = properties + self.ticket = ticket + + +class ServiceEndpoint(Model): + """ServiceEndpoint. + + :param administrators_group: + :type administrators_group: :class:`IdentityRef ` + :param authorization: Gets or sets the authorization data for talking to the endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param created_by: The Gets or sets Identity reference for the user who created the Service endpoint + :type created_by: :class:`IdentityRef ` + :param data: + :type data: dict + :param description: Gets or Sets description of endpoint + :type description: str + :param group_scope_id: + :type group_scope_id: str + :param id: Gets or sets the identifier of this endpoint. + :type id: str + :param is_ready: EndPoint state indictor + :type is_ready: bool + :param name: Gets or sets the friendly name of the endpoint. + :type name: str + :param operation_status: Error message during creation/deletion of endpoint + :type operation_status: :class:`object ` + :param readers_group: + :type readers_group: :class:`IdentityRef ` + :param type: Gets or sets the type of the endpoint. + :type type: str + :param url: Gets or sets the url of the endpoint. + :type url: str + """ + + _attribute_map = { + 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + super(ServiceEndpoint, self).__init__() + self.administrators_group = administrators_group + self.authorization = authorization + self.created_by = created_by + self.data = data + self.description = description + self.group_scope_id = group_scope_id + self.id = id + self.is_ready = is_ready + self.name = name + self.operation_status = operation_status + self.readers_group = readers_group + self.type = type + self.url = url + + +class ServiceEndpointAuthenticationScheme(Model): + """ServiceEndpointAuthenticationScheme. + + :param authorization_headers: + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param display_name: + :type display_name: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: + :type scheme: str + """ + + _attribute_map = { + 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, authorization_headers=None, display_name=None, input_descriptors=None, scheme=None): + super(ServiceEndpointAuthenticationScheme, self).__init__() + self.authorization_headers = authorization_headers + self.display_name = display_name + self.input_descriptors = input_descriptors + self.scheme = scheme + + +class ServiceEndpointDetails(Model): + """ServiceEndpointDetails. + + :param authorization: + :type authorization: :class:`EndpointAuthorization ` + :param data: + :type data: dict + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, data=None, type=None, url=None): + super(ServiceEndpointDetails, self).__init__() + self.authorization = authorization + self.data = data + self.type = type + self.url = url + + +class ServiceEndpointExecutionData(Model): + """ServiceEndpointExecutionData. + + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param finish_time: + :type finish_time: datetime + :param id: + :type id: long + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_type: + :type plan_type: str + :param result: + :type result: object + :param start_time: + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): + super(ServiceEndpointExecutionData, self).__init__() + self.definition = definition + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_type = plan_type + self.result = result + self.start_time = start_time + + +class ServiceEndpointExecutionRecord(Model): + """ServiceEndpointExecutionRecord. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: + :type endpoint_id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'} + } + + def __init__(self, data=None, endpoint_id=None): + super(ServiceEndpointExecutionRecord, self).__init__() + self.data = data + self.endpoint_id = endpoint_id + + +class ServiceEndpointExecutionRecordsInput(Model): + """ServiceEndpointExecutionRecordsInput. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_ids: + :type endpoint_ids: list of str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} + } + + def __init__(self, data=None, endpoint_ids=None): + super(ServiceEndpointExecutionRecordsInput, self).__init__() + self.data = data + self.endpoint_ids = endpoint_ids + + +class ServiceEndpointRequest(Model): + """ServiceEndpointRequest. + + :param data_source_details: + :type data_source_details: :class:`DataSourceDetails ` + :param result_transformation_details: + :type result_transformation_details: :class:`ResultTransformationDetails ` + :param service_endpoint_details: + :type service_endpoint_details: :class:`ServiceEndpointDetails ` + """ + + _attribute_map = { + 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, + 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, + 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} + } + + def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): + super(ServiceEndpointRequest, self).__init__() + self.data_source_details = data_source_details + self.result_transformation_details = result_transformation_details + self.service_endpoint_details = service_endpoint_details + + +class ServiceEndpointRequestResult(Model): + """ServiceEndpointRequestResult. + + :param error_message: + :type error_message: str + :param result: + :type result: :class:`object ` + :param status_code: + :type status_code: object + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'object'} + } + + def __init__(self, error_message=None, result=None, status_code=None): + super(ServiceEndpointRequestResult, self).__init__() + self.error_message = error_message + self.result = result + self.status_code = status_code + + +class ServiceEndpointType(Model): + """ServiceEndpointType. + + :param authentication_schemes: + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: + :type data_sources: list of :class:`DataSource ` + :param dependency_data: + :type dependency_data: list of :class:`DependencyData ` + :param description: + :type description: str + :param display_name: + :type display_name: str + :param endpoint_url: + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: + :type help_link: :class:`HelpLink ` + :param help_mark_down: + :type help_mark_down: str + :param icon_url: + :type icon_url: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name + + +class TaskAgentAuthorization(Model): + """TaskAgentAuthorization. + + :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. + :type authorization_url: str + :param client_id: Gets or sets the client identifier for this agent. + :type client_id: str + :param public_key: Gets or sets the public key used to verify the identity of this agent. + :type public_key: :class:`TaskAgentPublicKey ` + """ + + _attribute_map = { + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} + } + + def __init__(self, authorization_url=None, client_id=None, public_key=None): + super(TaskAgentAuthorization, self).__init__() + self.authorization_url = authorization_url + self.client_id = client_id + self.public_key = public_key + + +class TaskAgentJobRequest(Model): + """TaskAgentJobRequest. + + :param assign_time: + :type assign_time: datetime + :param data: + :type data: dict + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param demands: + :type demands: list of :class:`object ` + :param finish_time: + :type finish_time: datetime + :param host_id: + :type host_id: str + :param job_id: + :type job_id: str + :param job_name: + :type job_name: str + :param locked_until: + :type locked_until: datetime + :param matched_agents: + :type matched_agents: list of :class:`TaskAgentReference ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param queue_time: + :type queue_time: datetime + :param receive_time: + :type receive_time: datetime + :param request_id: + :type request_id: long + :param reserved_agent: + :type reserved_agent: :class:`TaskAgentReference ` + :param result: + :type result: object + :param scope_id: + :type scope_id: str + :param service_owner: + :type service_owner: str + """ + + _attribute_map = { + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'job_name': {'key': 'jobName', 'type': 'str'}, + 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, + 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'}, + 'request_id': {'key': 'requestId', 'type': 'long'}, + 'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'}, + 'result': {'key': 'result', 'type': 'object'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'} + } + + def __init__(self, assign_time=None, data=None, definition=None, demands=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_id=None, plan_type=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): + super(TaskAgentJobRequest, self).__init__() + self.assign_time = assign_time + self.data = data + self.definition = definition + self.demands = demands + self.finish_time = finish_time + self.host_id = host_id + self.job_id = job_id + self.job_name = job_name + self.locked_until = locked_until + self.matched_agents = matched_agents + self.owner = owner + self.plan_id = plan_id + self.plan_type = plan_type + self.queue_time = queue_time + self.receive_time = receive_time + self.request_id = request_id + self.reserved_agent = reserved_agent + self.result = result + self.scope_id = scope_id + self.service_owner = service_owner + + +class TaskAgentMessage(Model): + """TaskAgentMessage. + + :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. + :type body: str + :param iV: Gets or sets the intialization vector used to encrypt this message. + :type iV: str + :param message_id: Gets or sets the message identifier. + :type message_id: long + :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. + :type message_type: str + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'iV': {'key': 'iV', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'long'}, + 'message_type': {'key': 'messageType', 'type': 'str'} + } + + def __init__(self, body=None, iV=None, message_id=None, message_type=None): + super(TaskAgentMessage, self).__init__() + self.body = body + self.iV = iV + self.message_id = message_id + self.message_type = message_type + + +class TaskAgentPoolMaintenanceDefinition(Model): + """TaskAgentPoolMaintenanceDefinition. + + :param enabled: Enable maintenance + :type enabled: bool + :param id: Id + :type id: int + :param job_timeout_in_minutes: Maintenance job timeout per agent + :type job_timeout_in_minutes: int + :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time + :type max_concurrent_agents_percentage: int + :param options: + :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :param pool: Pool reference for the maintenance definition + :type pool: :class:`TaskAgentPoolReference ` + :param retention_policy: + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :param schedule_setting: + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'max_concurrent_agents_percentage': {'key': 'maxConcurrentAgentsPercentage', 'type': 'int'}, + 'options': {'key': 'options', 'type': 'TaskAgentPoolMaintenanceOptions'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'TaskAgentPoolMaintenanceRetentionPolicy'}, + 'schedule_setting': {'key': 'scheduleSetting', 'type': 'TaskAgentPoolMaintenanceSchedule'} + } + + def __init__(self, enabled=None, id=None, job_timeout_in_minutes=None, max_concurrent_agents_percentage=None, options=None, pool=None, retention_policy=None, schedule_setting=None): + super(TaskAgentPoolMaintenanceDefinition, self).__init__() + self.enabled = enabled + self.id = id + self.job_timeout_in_minutes = job_timeout_in_minutes + self.max_concurrent_agents_percentage = max_concurrent_agents_percentage + self.options = options + self.pool = pool + self.retention_policy = retention_policy + self.schedule_setting = schedule_setting + + +class TaskAgentPoolMaintenanceJob(Model): + """TaskAgentPoolMaintenanceJob. + + :param definition_id: The maintenance definition for the maintenance job + :type definition_id: int + :param error_count: The total error counts during the maintenance job + :type error_count: int + :param finish_time: Time that the maintenance job was completed + :type finish_time: datetime + :param job_id: Id of the maintenance job + :type job_id: int + :param logs_download_url: The log download url for the maintenance job + :type logs_download_url: str + :param orchestration_id: Orchestration/Plan Id for the maintenance job + :type orchestration_id: str + :param pool: Pool reference for the maintenance job + :type pool: :class:`TaskAgentPoolReference ` + :param queue_time: Time that the maintenance job was queued + :type queue_time: datetime + :param requested_by: The identity that queued the maintenance job + :type requested_by: :class:`IdentityRef ` + :param result: The maintenance job result + :type result: object + :param start_time: Time that the maintenance job was started + :type start_time: datetime + :param status: Status of the maintenance job + :type status: object + :param target_agents: + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :param warning_count: The total warning counts during the maintenance job + :type warning_count: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'}, + 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'} + } + + def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None): + super(TaskAgentPoolMaintenanceJob, self).__init__() + self.definition_id = definition_id + self.error_count = error_count + self.finish_time = finish_time + self.job_id = job_id + self.logs_download_url = logs_download_url + self.orchestration_id = orchestration_id + self.pool = pool + self.queue_time = queue_time + self.requested_by = requested_by + self.result = result + self.start_time = start_time + self.status = status + self.target_agents = target_agents + self.warning_count = warning_count + + +class TaskAgentPoolMaintenanceJobTargetAgent(Model): + """TaskAgentPoolMaintenanceJobTargetAgent. + + :param agent: + :type agent: :class:`TaskAgentReference ` + :param job_id: + :type job_id: int + :param result: + :type result: object + :param status: + :type status: object + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, agent=None, job_id=None, result=None, status=None): + super(TaskAgentPoolMaintenanceJobTargetAgent, self).__init__() + self.agent = agent + self.job_id = job_id + self.result = result + self.status = status + + +class TaskAgentPoolMaintenanceOptions(Model): + """TaskAgentPoolMaintenanceOptions. + + :param working_directory_expiration_in_days: time to consider a System.DefaultWorkingDirectory is stale + :type working_directory_expiration_in_days: int + """ + + _attribute_map = { + 'working_directory_expiration_in_days': {'key': 'workingDirectoryExpirationInDays', 'type': 'int'} + } + + def __init__(self, working_directory_expiration_in_days=None): + super(TaskAgentPoolMaintenanceOptions, self).__init__() + self.working_directory_expiration_in_days = working_directory_expiration_in_days + + +class TaskAgentPoolMaintenanceRetentionPolicy(Model): + """TaskAgentPoolMaintenanceRetentionPolicy. + + :param number_of_history_records_to_keep: Number of records to keep for maintenance job executed with this definition. + :type number_of_history_records_to_keep: int + """ + + _attribute_map = { + 'number_of_history_records_to_keep': {'key': 'numberOfHistoryRecordsToKeep', 'type': 'int'} + } + + def __init__(self, number_of_history_records_to_keep=None): + super(TaskAgentPoolMaintenanceRetentionPolicy, self).__init__() + self.number_of_history_records_to_keep = number_of_history_records_to_keep + + +class TaskAgentPoolMaintenanceSchedule(Model): + """TaskAgentPoolMaintenanceSchedule. + + :param days_to_build: Days for a build (flags enum for days of the week) + :type days_to_build: object + :param schedule_job_id: The Job Id of the Scheduled job that will queue the pool maintenance job. + :type schedule_job_id: str + :param start_hours: Local timezone hour to start + :type start_hours: int + :param start_minutes: Local timezone minute to start + :type start_minutes: int + :param time_zone_id: Time zone of the build schedule (string representation of the time zone id) + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_build': {'key': 'daysToBuild', 'type': 'object'}, + 'schedule_job_id': {'key': 'scheduleJobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_build=None, schedule_job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(TaskAgentPoolMaintenanceSchedule, self).__init__() + self.days_to_build = days_to_build + self.schedule_job_id = schedule_job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id + + +class TaskAgentPoolReference(Model): + """TaskAgentPoolReference. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None): + super(TaskAgentPoolReference, self).__init__() + self.id = id + self.is_hosted = is_hosted + self.name = name + self.pool_type = pool_type + self.scope = scope + + +class TaskAgentPublicKey(Model): + """TaskAgentPublicKey. + + :param exponent: Gets or sets the exponent for the public key. + :type exponent: str + :param modulus: Gets or sets the modulus for the public key. + :type modulus: str + """ + + _attribute_map = { + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} + } + + def __init__(self, exponent=None, modulus=None): + super(TaskAgentPublicKey, self).__init__() + self.exponent = exponent + self.modulus = modulus + + +class TaskAgentQueue(Model): + """TaskAgentQueue. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project_id: + :type project_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project_id': {'key': 'projectId', 'type': 'str'} + } + + def __init__(self, id=None, name=None, pool=None, project_id=None): + super(TaskAgentQueue, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project_id = project_id + + +class TaskAgentReference(Model): + """TaskAgentReference. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None): + super(TaskAgentReference, self).__init__() + self._links = _links + self.enabled = enabled + self.id = id + self.name = name + self.status = status + self.version = version + + +class TaskAgentSession(Model): + """TaskAgentSession. + + :param agent: Gets or sets the agent which is the target of the session. + :type agent: :class:`TaskAgentReference ` + :param encryption_key: Gets the key used to encrypt message traffic for this session. + :type encryption_key: :class:`TaskAgentSessionKey ` + :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. + :type owner_name: str + :param session_id: Gets the unique identifier for this session. + :type session_id: str + :param system_capabilities: + :type system_capabilities: dict + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'encryption_key': {'key': 'encryptionKey', 'type': 'TaskAgentSessionKey'}, + 'owner_name': {'key': 'ownerName', 'type': 'str'}, + 'session_id': {'key': 'sessionId', 'type': 'str'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'} + } + + def __init__(self, agent=None, encryption_key=None, owner_name=None, session_id=None, system_capabilities=None): + super(TaskAgentSession, self).__init__() + self.agent = agent + self.encryption_key = encryption_key + self.owner_name = owner_name + self.session_id = session_id + self.system_capabilities = system_capabilities + + +class TaskAgentSessionKey(Model): + """TaskAgentSessionKey. + + :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. + :type encrypted: bool + :param value: Gets or sets the symmetric key value. + :type value: str + """ + + _attribute_map = { + 'encrypted': {'key': 'encrypted', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, encrypted=None, value=None): + super(TaskAgentSessionKey, self).__init__() + self.encrypted = encrypted + self.value = value + + +class TaskAgentUpdate(Model): + """TaskAgentUpdate. + + :param current_state: The current state of this agent update + :type current_state: str + :param reason: The reason of this agent update + :type reason: :class:`TaskAgentUpdateReason ` + :param requested_by: The identity that request the agent update + :type requested_by: :class:`IdentityRef ` + :param request_time: Gets the date on which this agent update was requested. + :type request_time: datetime + :param source_version: Gets or sets the source agent version of the agent update + :type source_version: :class:`PackageVersion ` + :param target_version: Gets or sets the target agent version of the agent update + :type target_version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'current_state': {'key': 'currentState', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'TaskAgentUpdateReason'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_time': {'key': 'requestTime', 'type': 'iso-8601'}, + 'source_version': {'key': 'sourceVersion', 'type': 'PackageVersion'}, + 'target_version': {'key': 'targetVersion', 'type': 'PackageVersion'} + } + + def __init__(self, current_state=None, reason=None, requested_by=None, request_time=None, source_version=None, target_version=None): + super(TaskAgentUpdate, self).__init__() + self.current_state = current_state + self.reason = reason + self.requested_by = requested_by + self.request_time = request_time + self.source_version = source_version + self.target_version = target_version + + +class TaskAgentUpdateReason(Model): + """TaskAgentUpdateReason. + + :param code: + :type code: object + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'object'} + } + + def __init__(self, code=None): + super(TaskAgentUpdateReason, self).__init__() + self.code = code + + +class TaskDefinition(Model): + """TaskDefinition. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): + super(TaskDefinition, self).__init__() + self.agent_execution = agent_execution + self.author = author + self.category = category + self.contents_uploaded = contents_uploaded + self.contribution_identifier = contribution_identifier + self.contribution_version = contribution_version + self.data_source_bindings = data_source_bindings + self.definition_type = definition_type + self.demands = demands + self.deprecated = deprecated + self.description = description + self.disabled = disabled + self.execution = execution + self.friendly_name = friendly_name + self.groups = groups + self.help_mark_down = help_mark_down + self.host_type = host_type + self.icon_url = icon_url + self.id = id + self.inputs = inputs + self.instance_name_format = instance_name_format + self.minimum_agent_version = minimum_agent_version + self.name = name + self.output_variables = output_variables + self.package_location = package_location + self.package_type = package_type + self.preview = preview + self.release_notes = release_notes + self.runs_on = runs_on + self.satisfies = satisfies + self.server_owned = server_owned + self.source_definitions = source_definitions + self.source_location = source_location + self.version = version + self.visibility = visibility + + +class TaskDefinitionEndpoint(Model): + """TaskDefinitionEndpoint. + + :param connection_id: An ID that identifies a service connection to be used for authenticating endpoint requests. + :type connection_id: str + :param key_selector: An Json based keyselector to filter response returned by fetching the endpoint Url.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. The following keyselector defines an Json for extracting nodes named 'ServiceName'. endpoint.KeySelector = "jsonpath://ServiceName"; + :type key_selector: str + :param scope: The scope as understood by Connected Services. Essentialy, a project-id for now. + :type scope: str + :param selector: An XPath/Json based selector to filter response returned by fetching the endpoint Url. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". The following selector defines an XPath for extracting nodes named 'ServiceName'. endpoint.Selector = "xpath://ServiceName"; + :type selector: str + :param task_id: TaskId that this endpoint belongs to. + :type task_id: str + :param url: URL to GET. + :type url: str + """ + + _attribute_map = { + 'connection_id': {'key': 'connectionId', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, connection_id=None, key_selector=None, scope=None, selector=None, task_id=None, url=None): + super(TaskDefinitionEndpoint, self).__init__() + self.connection_id = connection_id + self.key_selector = key_selector + self.scope = scope + self.selector = selector + self.task_id = task_id + self.url = url + + +class TaskDefinitionReference(Model): + """TaskDefinitionReference. + + :param definition_type: Gets or sets the definition type. Values can be 'task' or 'metaTask'. + :type definition_type: str + :param id: Gets or sets the unique identifier of task. + :type id: str + :param version_spec: Gets or sets the version specification of task. + :type version_spec: str + """ + + _attribute_map = { + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'version_spec': {'key': 'versionSpec', 'type': 'str'} + } + + def __init__(self, definition_type=None, id=None, version_spec=None): + super(TaskDefinitionReference, self).__init__() + self.definition_type = definition_type + self.id = id + self.version_spec = version_spec + + +class TaskExecution(Model): + """TaskExecution. + + :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline + :type exec_task: :class:`TaskReference ` + :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } + :type platform_instructions: dict + """ + + _attribute_map = { + 'exec_task': {'key': 'execTask', 'type': 'TaskReference'}, + 'platform_instructions': {'key': 'platformInstructions', 'type': '{{str}}'} + } + + def __init__(self, exec_task=None, platform_instructions=None): + super(TaskExecution, self).__init__() + self.exec_task = exec_task + self.platform_instructions = platform_instructions + + +class TaskGroup(TaskDefinition): + """TaskGroup. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets date on which it got created. + :type created_on: datetime + :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. + :type deleted: bool + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets date on which it got modified. + :type modified_on: datetime + :param owner: Gets or sets the owner. + :type owner: str + :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param revision: Gets or sets revision. + :type revision: int + :param tasks: + :type tasks: list of :class:`TaskGroupStep ` + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'deleted': {'key': 'deleted', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): + super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.deleted = deleted + self.modified_by = modified_by + self.modified_on = modified_on + self.owner = owner + self.parent_definition_id = parent_definition_id + self.revision = revision + self.tasks = tasks + + +class TaskGroupDefinition(Model): + """TaskGroupDefinition. + + :param display_name: + :type display_name: str + :param is_expanded: + :type is_expanded: bool + :param name: + :type name: str + :param tags: + :type tags: list of str + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, display_name=None, is_expanded=None, name=None, tags=None, visible_rule=None): + super(TaskGroupDefinition, self).__init__() + self.display_name = display_name + self.is_expanded = is_expanded + self.name = name + self.tags = tags + self.visible_rule = visible_rule + + +class TaskGroupRevision(Model): + """TaskGroupRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_type: + :type change_type: object + :param comment: + :type comment: str + :param file_id: + :type file_id: int + :param revision: + :type revision: int + :param task_group_id: + :type task_group_id: str + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'} + } + + def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, file_id=None, revision=None, task_group_id=None): + super(TaskGroupRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.file_id = file_id + self.revision = revision + self.task_group_id = task_group_id + + +class TaskGroupStep(Model): + """TaskGroupStep. + + :param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise. + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise. + :type continue_on_error: bool + :param display_name: Gets or sets the display name. + :type display_name: str + :param enabled: Gets or sets as task is enabled or not. + :type enabled: bool + :param inputs: Gets or sets dictionary of inputs. + :type inputs: dict + :param task: Gets or sets the reference of the task. + :type task: :class:`TaskDefinitionReference ` + :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): + super(TaskGroupStep, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.display_name = display_name + self.enabled = enabled + self.inputs = inputs + self.task = task + self.timeout_in_minutes = timeout_in_minutes + + +class TaskHubLicenseDetails(Model): + """TaskHubLicenseDetails. + + :param enterprise_users_count: + :type enterprise_users_count: int + :param free_hosted_license_count: + :type free_hosted_license_count: int + :param free_license_count: + :type free_license_count: int + :param has_license_count_ever_updated: + :type has_license_count_ever_updated: bool + :param hosted_agent_minutes_free_count: + :type hosted_agent_minutes_free_count: int + :param hosted_agent_minutes_used_count: + :type hosted_agent_minutes_used_count: int + :param msdn_users_count: + :type msdn_users_count: int + :param purchased_hosted_license_count: + :type purchased_hosted_license_count: int + :param purchased_license_count: + :type purchased_license_count: int + :param total_license_count: + :type total_license_count: int + """ + + _attribute_map = { + 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, + 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, + 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, + 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, + 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, + 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, + 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, + 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, + 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, + 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} + } + + def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): + super(TaskHubLicenseDetails, self).__init__() + self.enterprise_users_count = enterprise_users_count + self.free_hosted_license_count = free_hosted_license_count + self.free_license_count = free_license_count + self.has_license_count_ever_updated = has_license_count_ever_updated + self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count + self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count + self.msdn_users_count = msdn_users_count + self.purchased_hosted_license_count = purchased_hosted_license_count + self.purchased_license_count = purchased_license_count + self.total_license_count = total_license_count + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name + + +class TaskOutputVariable(Model): + """TaskOutputVariable. + + :param description: + :type description: str + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(TaskOutputVariable, self).__init__() + self.description = description + self.name = name + + +class TaskPackageMetadata(Model): + """TaskPackageMetadata. + + :param type: Gets the name of the package. + :type type: str + :param url: Gets the url of the package. + :type url: str + :param version: Gets the version of the package. + :type version: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, type=None, url=None, version=None): + super(TaskPackageMetadata, self).__init__() + self.type = type + self.url = url + self.version = version + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class TaskVersion(Model): + """TaskVersion. + + :param is_test: + :type is_test: bool + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'is_test': {'key': 'isTest', 'type': 'bool'}, + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, is_test=None, major=None, minor=None, patch=None): + super(TaskVersion, self).__init__() + self.is_test = is_test + self.major = major + self.minor = minor + self.patch = patch + + +class ValidationItem(Model): + """ValidationItem. + + :param is_valid: Tells whether the current input is valid or not + :type is_valid: bool + :param reason: Reason for input validation failure + :type reason: str + :param type: Type of validation item + :type type: str + :param value: Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master') + :type value: str + """ + + _attribute_map = { + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_valid=None, reason=None, type=None, value=None): + super(ValidationItem, self).__init__() + self.is_valid = is_valid + self.reason = reason + self.type = type + self.value = value + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param id: + :type id: int + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param provider_data: + :type provider_data: :class:`VariableGroupProviderData ` + :param type: + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class DataSourceBinding(DataSourceBindingBase): + """DataSourceBinding. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) + + +class DeploymentGroup(DeploymentGroupReference): + """DeploymentGroup. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + :param description: + :type description: str + :param machine_count: + :type machine_count: int + :param machines: + :type machines: list of :class:`DeploymentMachine ` + :param machine_tags: + :type machine_tags: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'machine_count': {'key': 'machineCount', 'type': 'int'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'machine_tags': {'key': 'machineTags', 'type': '[str]'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, description=None, machine_count=None, machines=None, machine_tags=None): + super(DeploymentGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.description = description + self.machine_count = machine_count + self.machines = machines + self.machine_tags = machine_tags + + +class DeploymentMachineGroup(DeploymentMachineGroupReference): + """DeploymentMachineGroup. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + :param machines: + :type machines: list of :class:`DeploymentMachine ` + :param size: + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, machines=None, size=None): + super(DeploymentMachineGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.machines = machines + self.size = size + + +class TaskAgent(TaskAgentReference): + """TaskAgent. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + :param assigned_request: Gets the request which is currently assigned to this agent. + :type assigned_request: :class:`TaskAgentJobRequest ` + :param authorization: Gets or sets the authorization information for this agent. + :type authorization: :class:`TaskAgentAuthorization ` + :param created_on: Gets the date on which this agent was created. + :type created_on: datetime + :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. + :type max_parallelism: int + :param pending_update: Gets the pending update for this agent. + :type pending_update: :class:`TaskAgentUpdate ` + :param properties: + :type properties: :class:`object ` + :param status_changed_on: Gets the date on which the last connectivity status change occurred. + :type status_changed_on: datetime + :param system_capabilities: + :type system_capabilities: dict + :param user_capabilities: + :type user_capabilities: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, + 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, + 'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'status_changed_on': {'key': 'statusChangedOn', 'type': 'iso-8601'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'}, + 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): + super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, status=status, version=version) + self.assigned_request = assigned_request + self.authorization = authorization + self.created_on = created_on + self.max_parallelism = max_parallelism + self.pending_update = pending_update + self.properties = properties + self.status_changed_on = status_changed_on + self.system_capabilities = system_capabilities + self.user_capabilities = user_capabilities + + +class TaskAgentPool(TaskAgentPoolReference): + """TaskAgentPool. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. + :type auto_provision: bool + :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets the date/time of the pool creation. + :type created_on: datetime + :param properties: + :type properties: :class:`object ` + :param size: Gets the current size of the pool. + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, auto_provision=None, created_by=None, created_on=None, properties=None, size=None): + super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope) + self.auto_provision = auto_provision + self.created_by = created_by + self.created_on = created_on + self.properties = properties + self.size = size + + +class TaskInputDefinition(TaskInputDefinitionBase): + """TaskInputDefinition. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'}, + } + + def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinition, self).__init__(default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) + + +class TaskSourceDefinition(TaskSourceDefinitionBase): + """TaskSourceDefinition. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinition, self).__init__(auth_key=auth_key, endpoint=endpoint, key_selector=key_selector, selector=selector, target=target) + + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthorizationHeader', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'DataSource', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'DeploymentGroupMetrics', + 'DeploymentGroupReference', + 'DeploymentMachine', + 'DeploymentMachineGroupReference', + 'EndpointAuthorization', + 'EndpointUrl', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValidationRequest', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'MetricsColumnMetaData', + 'MetricsColumnsHeader', + 'MetricsRow', + 'PackageMetadata', + 'PackageVersion', + 'ProjectReference', + 'PublishTaskGroupMetadata', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'SecureFile', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'TaskAgentAuthorization', + 'TaskAgentJobRequest', + 'TaskAgentMessage', + 'TaskAgentPoolMaintenanceDefinition', + 'TaskAgentPoolMaintenanceJob', + 'TaskAgentPoolMaintenanceJobTargetAgent', + 'TaskAgentPoolMaintenanceOptions', + 'TaskAgentPoolMaintenanceRetentionPolicy', + 'TaskAgentPoolMaintenanceSchedule', + 'TaskAgentPoolReference', + 'TaskAgentPublicKey', + 'TaskAgentQueue', + 'TaskAgentReference', + 'TaskAgentSession', + 'TaskAgentSessionKey', + 'TaskAgentUpdate', + 'TaskAgentUpdateReason', + 'TaskDefinition', + 'TaskDefinitionEndpoint', + 'TaskDefinitionReference', + 'TaskExecution', + 'TaskGroup', + 'TaskGroupDefinition', + 'TaskGroupRevision', + 'TaskGroupStep', + 'TaskHubLicenseDetails', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationOwner', + 'TaskOutputVariable', + 'TaskPackageMetadata', + 'TaskReference', + 'TaskSourceDefinitionBase', + 'TaskVersion', + 'ValidationItem', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'DataSourceBinding', + 'DeploymentGroup', + 'DeploymentMachineGroup', + 'TaskAgent', + 'TaskAgentPool', + 'TaskInputDefinition', + 'TaskSourceDefinition', +] diff --git a/vsts/vsts/task_agent/v4_0/task_agent_client.py b/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py similarity index 99% rename from vsts/vsts/task_agent/v4_0/task_agent_client.py rename to azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py index 1626fb5d..4e5e4cc1 100644 --- a/vsts/vsts/task_agent/v4_0/task_agent_client.py +++ b/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TaskAgentClient(VssClient): +class TaskAgentClient(Client): """TaskAgent :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/test/__init__.py b/azure-devops/azure/devops/v4_0/test/__init__.py new file mode 100644 index 00000000..0163e0c7 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/test/__init__.py @@ -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 .models import * + +__all__ = [ + 'AggregatedDataForResultTrend', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'BuildConfiguration', + 'BuildCoverage', + 'BuildReference', + 'CloneOperationInformation', + 'CloneOptions', + 'CloneStatistics', + 'CodeCoverageData', + 'CodeCoverageStatistics', + 'CodeCoverageSummary', + 'CoverageStatistics', + 'CustomTestField', + 'CustomTestFieldDefinition', + 'DtlEnvironmentDetails', + 'FailingSince', + 'FunctionCoverage', + 'IdentityRef', + 'LastResultDetails', + 'LinkedWorkItemsQuery', + 'LinkedWorkItemsQueryResult', + 'ModuleCoverage', + 'NameValuePair', + 'PlanUpdateModel', + 'PointAssignment', + 'PointsFilter', + 'PointUpdateModel', + 'PropertyBag', + 'QueryModel', + 'ReleaseEnvironmentDefinitionReference', + 'ReleaseReference', + 'ResultRetentionSettings', + 'ResultsFilter', + 'RunCreateModel', + 'RunFilter', + 'RunStatistic', + 'RunUpdateModel', + 'ShallowReference', + 'SharedStepModel', + 'SuiteCreateModel', + 'SuiteEntry', + 'SuiteEntryUpdateModel', + 'SuiteTestCase', + 'TeamContext', + 'TeamProjectReference', + 'TestActionResultModel', + 'TestAttachment', + 'TestAttachmentReference', + 'TestAttachmentRequestModel', + 'TestCaseResult', + 'TestCaseResultAttachmentModel', + 'TestCaseResultIdentifier', + 'TestCaseResultUpdateModel', + 'TestConfiguration', + 'TestEnvironment', + 'TestFailureDetails', + 'TestFailuresAnalysis', + 'TestIterationDetailsModel', + 'TestMessageLogDetails', + 'TestMethod', + 'TestOperationReference', + 'TestPlan', + 'TestPlanCloneRequest', + 'TestPoint', + 'TestPointsQuery', + 'TestResolutionState', + 'TestResultCreateModel', + 'TestResultDocument', + 'TestResultHistory', + 'TestResultHistoryDetailsForGroup', + 'TestResultModelBase', + 'TestResultParameterModel', + 'TestResultPayload', + 'TestResultsContext', + 'TestResultsDetails', + 'TestResultsDetailsForGroup', + 'TestResultsQuery', + 'TestResultSummary', + 'TestResultTrendFilter', + 'TestRun', + 'TestRunCoverage', + 'TestRunStatistic', + 'TestSession', + 'TestSettings', + 'TestSuite', + 'TestSuiteCloneRequest', + 'TestSummaryForWorkItem', + 'TestToWorkItemLinks', + 'TestVariable', + 'WorkItemReference', + 'WorkItemToTestLinks', +] diff --git a/azure-devops/azure/devops/v4_0/test/models.py b/azure-devops/azure/devops/v4_0/test/models.py new file mode 100644 index 00000000..57f95b62 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/test/models.py @@ -0,0 +1,3804 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedDataForResultTrend(Model): + """AggregatedDataForResultTrend. + + :param duration: This is tests execution duration. + :type duration: object + :param results_by_outcome: + :type results_by_outcome: dict + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, results_by_outcome=None, test_results_context=None, total_tests=None): + super(AggregatedDataForResultTrend, self).__init__() + self.duration = duration + self.results_by_outcome = results_by_outcome + self.test_results_context = test_results_context + self.total_tests = total_tests + + +class AggregatedResultsAnalysis(Model): + """AggregatedResultsAnalysis. + + :param duration: + :type duration: object + :param not_reported_results_by_outcome: + :type not_reported_results_by_outcome: dict + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + :param results_by_outcome: + :type results_by_outcome: dict + :param results_difference: + :type results_difference: :class:`AggregatedResultsDifference ` + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, total_tests=None): + super(AggregatedResultsAnalysis, self).__init__() + self.duration = duration + self.not_reported_results_by_outcome = not_reported_results_by_outcome + self.previous_context = previous_context + self.results_by_outcome = results_by_outcome + self.results_difference = results_difference + self.total_tests = total_tests + + +class AggregatedResultsByOutcome(Model): + """AggregatedResultsByOutcome. + + :param count: + :type count: int + :param duration: + :type duration: object + :param group_by_field: + :type group_by_field: str + :param group_by_value: + :type group_by_value: object + :param outcome: + :type outcome: object + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'object'}, + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'outcome': {'key': 'outcome', 'type': 'object'} + } + + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None): + super(AggregatedResultsByOutcome, self).__init__() + self.count = count + self.duration = duration + self.group_by_field = group_by_field + self.group_by_value = group_by_value + self.outcome = outcome + + +class AggregatedResultsDifference(Model): + """AggregatedResultsDifference. + + :param increase_in_duration: + :type increase_in_duration: object + :param increase_in_failures: + :type increase_in_failures: int + :param increase_in_other_tests: + :type increase_in_other_tests: int + :param increase_in_passed_tests: + :type increase_in_passed_tests: int + :param increase_in_total_tests: + :type increase_in_total_tests: int + """ + + _attribute_map = { + 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, + 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, + 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, + 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, + 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} + } + + def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): + super(AggregatedResultsDifference, self).__init__() + self.increase_in_duration = increase_in_duration + self.increase_in_failures = increase_in_failures + self.increase_in_other_tests = increase_in_other_tests + self.increase_in_passed_tests = increase_in_passed_tests + self.increase_in_total_tests = increase_in_total_tests + + +class BuildConfiguration(Model): + """BuildConfiguration. + + :param branch_name: + :type branch_name: str + :param build_definition_id: + :type build_definition_id: int + :param flavor: + :type flavor: str + :param id: + :type id: int + :param number: + :type number: str + :param platform: + :type platform: str + :param project: + :type project: :class:`ShallowReference ` + :param repository_id: + :type repository_id: int + :param source_version: + :type source_version: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'flavor': {'key': 'flavor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'repository_id': {'key': 'repositoryId', 'type': 'int'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): + super(BuildConfiguration, self).__init__() + self.branch_name = branch_name + self.build_definition_id = build_definition_id + self.flavor = flavor + self.id = id + self.number = number + self.platform = platform + self.project = project + self.repository_id = repository_id + self.source_version = source_version + self.uri = uri + + +class BuildCoverage(Model): + """BuildCoverage. + + :param code_coverage_file_url: + :type code_coverage_file_url: str + :param configuration: + :type configuration: :class:`BuildConfiguration ` + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + """ + + _attribute_map = { + 'code_coverage_file_url': {'key': 'codeCoverageFileUrl', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'BuildConfiguration'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, code_coverage_file_url=None, configuration=None, last_error=None, modules=None, state=None): + super(BuildCoverage, self).__init__() + self.code_coverage_file_url = code_coverage_file_url + self.configuration = configuration + self.last_error = last_error + self.modules = modules + self.state = state + + +class BuildReference(Model): + """BuildReference. + + :param branch_name: + :type branch_name: str + :param build_system: + :type build_system: str + :param definition_id: + :type definition_id: int + :param id: + :type id: int + :param number: + :type number: str + :param repository_id: + :type repository_id: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_system': {'key': 'buildSystem', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_system=None, definition_id=None, id=None, number=None, repository_id=None, uri=None): + super(BuildReference, self).__init__() + self.branch_name = branch_name + self.build_system = build_system + self.definition_id = definition_id + self.id = id + self.number = number + self.repository_id = repository_id + self.uri = uri + + +class CloneOperationInformation(Model): + """CloneOperationInformation. + + :param clone_statistics: + :type clone_statistics: :class:`CloneStatistics ` + :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue + :type completion_date: datetime + :param creation_date: DateTime when the operation was started + :type creation_date: datetime + :param destination_object: Shallow reference of the destination + :type destination_object: :class:`ShallowReference ` + :param destination_plan: Shallow reference of the destination + :type destination_plan: :class:`ShallowReference ` + :param destination_project: Shallow reference of the destination + :type destination_project: :class:`ShallowReference ` + :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. + :type message: str + :param op_id: The ID of the operation + :type op_id: int + :param result_object_type: The type of the object generated as a result of the Clone operation + :type result_object_type: object + :param source_object: Shallow reference of the source + :type source_object: :class:`ShallowReference ` + :param source_plan: Shallow reference of the source + :type source_plan: :class:`ShallowReference ` + :param source_project: Shallow reference of the source + :type source_project: :class:`ShallowReference ` + :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete + :type state: object + :param url: Url for geting the clone information + :type url: str + """ + + _attribute_map = { + 'clone_statistics': {'key': 'cloneStatistics', 'type': 'CloneStatistics'}, + 'completion_date': {'key': 'completionDate', 'type': 'iso-8601'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'destination_object': {'key': 'destinationObject', 'type': 'ShallowReference'}, + 'destination_plan': {'key': 'destinationPlan', 'type': 'ShallowReference'}, + 'destination_project': {'key': 'destinationProject', 'type': 'ShallowReference'}, + 'message': {'key': 'message', 'type': 'str'}, + 'op_id': {'key': 'opId', 'type': 'int'}, + 'result_object_type': {'key': 'resultObjectType', 'type': 'object'}, + 'source_object': {'key': 'sourceObject', 'type': 'ShallowReference'}, + 'source_plan': {'key': 'sourcePlan', 'type': 'ShallowReference'}, + 'source_project': {'key': 'sourceProject', 'type': 'ShallowReference'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, clone_statistics=None, completion_date=None, creation_date=None, destination_object=None, destination_plan=None, destination_project=None, message=None, op_id=None, result_object_type=None, source_object=None, source_plan=None, source_project=None, state=None, url=None): + super(CloneOperationInformation, self).__init__() + self.clone_statistics = clone_statistics + self.completion_date = completion_date + self.creation_date = creation_date + self.destination_object = destination_object + self.destination_plan = destination_plan + self.destination_project = destination_project + self.message = message + self.op_id = op_id + self.result_object_type = result_object_type + self.source_object = source_object + self.source_plan = source_plan + self.source_project = source_project + self.state = state + self.url = url + + +class CloneOptions(Model): + """CloneOptions. + + :param clone_requirements: If set to true requirements will be cloned + :type clone_requirements: bool + :param copy_all_suites: copy all suites from a source plan + :type copy_all_suites: bool + :param copy_ancestor_hierarchy: copy ancestor hieracrchy + :type copy_ancestor_hierarchy: bool + :param destination_work_item_type: Name of the workitem type of the clone + :type destination_work_item_type: str + :param override_parameters: Key value pairs where the key value is overridden by the value. + :type override_parameters: dict + :param related_link_comment: Comment on the link that will link the new clone test case to the original Set null for no comment + :type related_link_comment: str + """ + + _attribute_map = { + 'clone_requirements': {'key': 'cloneRequirements', 'type': 'bool'}, + 'copy_all_suites': {'key': 'copyAllSuites', 'type': 'bool'}, + 'copy_ancestor_hierarchy': {'key': 'copyAncestorHierarchy', 'type': 'bool'}, + 'destination_work_item_type': {'key': 'destinationWorkItemType', 'type': 'str'}, + 'override_parameters': {'key': 'overrideParameters', 'type': '{str}'}, + 'related_link_comment': {'key': 'relatedLinkComment', 'type': 'str'} + } + + def __init__(self, clone_requirements=None, copy_all_suites=None, copy_ancestor_hierarchy=None, destination_work_item_type=None, override_parameters=None, related_link_comment=None): + super(CloneOptions, self).__init__() + self.clone_requirements = clone_requirements + self.copy_all_suites = copy_all_suites + self.copy_ancestor_hierarchy = copy_ancestor_hierarchy + self.destination_work_item_type = destination_work_item_type + self.override_parameters = override_parameters + self.related_link_comment = related_link_comment + + +class CloneStatistics(Model): + """CloneStatistics. + + :param cloned_requirements_count: Number of Requirments cloned so far. + :type cloned_requirements_count: int + :param cloned_shared_steps_count: Number of shared steps cloned so far. + :type cloned_shared_steps_count: int + :param cloned_test_cases_count: Number of test cases cloned so far + :type cloned_test_cases_count: int + :param total_requirements_count: Total number of requirements to be cloned + :type total_requirements_count: int + :param total_test_cases_count: Total number of test cases to be cloned + :type total_test_cases_count: int + """ + + _attribute_map = { + 'cloned_requirements_count': {'key': 'clonedRequirementsCount', 'type': 'int'}, + 'cloned_shared_steps_count': {'key': 'clonedSharedStepsCount', 'type': 'int'}, + 'cloned_test_cases_count': {'key': 'clonedTestCasesCount', 'type': 'int'}, + 'total_requirements_count': {'key': 'totalRequirementsCount', 'type': 'int'}, + 'total_test_cases_count': {'key': 'totalTestCasesCount', 'type': 'int'} + } + + def __init__(self, cloned_requirements_count=None, cloned_shared_steps_count=None, cloned_test_cases_count=None, total_requirements_count=None, total_test_cases_count=None): + super(CloneStatistics, self).__init__() + self.cloned_requirements_count = cloned_requirements_count + self.cloned_shared_steps_count = cloned_shared_steps_count + self.cloned_test_cases_count = cloned_test_cases_count + self.total_requirements_count = total_requirements_count + self.total_test_cases_count = total_test_cases_count + + +class CodeCoverageData(Model): + """CodeCoverageData. + + :param build_flavor: Flavor of build for which data is retrieved/published + :type build_flavor: str + :param build_platform: Platform of build for which data is retrieved/published + :type build_platform: str + :param coverage_stats: List of coverage data for the build + :type coverage_stats: list of :class:`CodeCoverageStatistics ` + """ + + _attribute_map = { + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'coverage_stats': {'key': 'coverageStats', 'type': '[CodeCoverageStatistics]'} + } + + def __init__(self, build_flavor=None, build_platform=None, coverage_stats=None): + super(CodeCoverageData, self).__init__() + self.build_flavor = build_flavor + self.build_platform = build_platform + self.coverage_stats = coverage_stats + + +class CodeCoverageStatistics(Model): + """CodeCoverageStatistics. + + :param covered: Covered units + :type covered: int + :param delta: Delta of coverage + :type delta: float + :param is_delta_available: Is delta valid + :type is_delta_available: bool + :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) + :type label: str + :param position: Position of label + :type position: int + :param total: Total units + :type total: int + """ + + _attribute_map = { + 'covered': {'key': 'covered', 'type': 'int'}, + 'delta': {'key': 'delta', 'type': 'float'}, + 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'} + } + + def __init__(self, covered=None, delta=None, is_delta_available=None, label=None, position=None, total=None): + super(CodeCoverageStatistics, self).__init__() + self.covered = covered + self.delta = delta + self.is_delta_available = is_delta_available + self.label = label + self.position = position + self.total = total + + +class CodeCoverageSummary(Model): + """CodeCoverageSummary. + + :param build: Uri of build for which data is retrieved/published + :type build: :class:`ShallowReference ` + :param coverage_data: List of coverage data and details for the build + :type coverage_data: list of :class:`CodeCoverageData ` + :param delta_build: Uri of build against which difference in coverage is computed + :type delta_build: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'coverage_data': {'key': 'coverageData', 'type': '[CodeCoverageData]'}, + 'delta_build': {'key': 'deltaBuild', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, coverage_data=None, delta_build=None): + super(CodeCoverageSummary, self).__init__() + self.build = build + self.coverage_data = coverage_data + self.delta_build = delta_build + + +class CoverageStatistics(Model): + """CoverageStatistics. + + :param blocks_covered: + :type blocks_covered: int + :param blocks_not_covered: + :type blocks_not_covered: int + :param lines_covered: + :type lines_covered: int + :param lines_not_covered: + :type lines_not_covered: int + :param lines_partially_covered: + :type lines_partially_covered: int + """ + + _attribute_map = { + 'blocks_covered': {'key': 'blocksCovered', 'type': 'int'}, + 'blocks_not_covered': {'key': 'blocksNotCovered', 'type': 'int'}, + 'lines_covered': {'key': 'linesCovered', 'type': 'int'}, + 'lines_not_covered': {'key': 'linesNotCovered', 'type': 'int'}, + 'lines_partially_covered': {'key': 'linesPartiallyCovered', 'type': 'int'} + } + + def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=None, lines_not_covered=None, lines_partially_covered=None): + super(CoverageStatistics, self).__init__() + self.blocks_covered = blocks_covered + self.blocks_not_covered = blocks_not_covered + self.lines_covered = lines_covered + self.lines_not_covered = lines_not_covered + self.lines_partially_covered = lines_partially_covered + + +class CustomTestField(Model): + """CustomTestField. + + :param field_name: + :type field_name: str + :param value: + :type value: object + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, field_name=None, value=None): + super(CustomTestField, self).__init__() + self.field_name = field_name + self.value = value + + +class CustomTestFieldDefinition(Model): + """CustomTestFieldDefinition. + + :param field_id: + :type field_id: int + :param field_name: + :type field_name: str + :param field_type: + :type field_type: object + :param scope: + :type scope: object + """ + + _attribute_map = { + 'field_id': {'key': 'fieldId', 'type': 'int'}, + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'field_type': {'key': 'fieldType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'object'} + } + + def __init__(self, field_id=None, field_name=None, field_type=None, scope=None): + super(CustomTestFieldDefinition, self).__init__() + self.field_id = field_id + self.field_name = field_name + self.field_type = field_type + self.scope = scope + + +class DtlEnvironmentDetails(Model): + """DtlEnvironmentDetails. + + :param csm_content: + :type csm_content: str + :param csm_parameters: + :type csm_parameters: str + :param subscription_name: + :type subscription_name: str + """ + + _attribute_map = { + 'csm_content': {'key': 'csmContent', 'type': 'str'}, + 'csm_parameters': {'key': 'csmParameters', 'type': 'str'}, + 'subscription_name': {'key': 'subscriptionName', 'type': 'str'} + } + + def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None): + super(DtlEnvironmentDetails, self).__init__() + self.csm_content = csm_content + self.csm_parameters = csm_parameters + self.subscription_name = subscription_name + + +class FailingSince(Model): + """FailingSince. + + :param build: + :type build: :class:`BuildReference ` + :param date: + :type date: datetime + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, date=None, release=None): + super(FailingSince, self).__init__() + self.build = build + self.date = date + self.release = release + + +class FunctionCoverage(Model): + """FunctionCoverage. + + :param class_: + :type class_: str + :param name: + :type name: str + :param namespace: + :type namespace: str + :param source_file: + :type source_file: str + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'source_file': {'key': 'sourceFile', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, class_=None, name=None, namespace=None, source_file=None, statistics=None): + super(FunctionCoverage, self).__init__() + self.class_ = class_ + self.name = name + self.namespace = namespace + self.source_file = source_file + self.statistics = statistics + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class LastResultDetails(Model): + """LastResultDetails. + + :param date_completed: + :type date_completed: datetime + :param duration: + :type duration: long + :param run_by: + :type run_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date_completed': {'key': 'dateCompleted', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'long'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'} + } + + def __init__(self, date_completed=None, duration=None, run_by=None): + super(LastResultDetails, self).__init__() + self.date_completed = date_completed + self.duration = duration + self.run_by = run_by + + +class LinkedWorkItemsQuery(Model): + """LinkedWorkItemsQuery. + + :param automated_test_names: + :type automated_test_names: list of str + :param plan_id: + :type plan_id: int + :param point_ids: + :type point_ids: list of int + :param suite_ids: + :type suite_ids: list of int + :param test_case_ids: + :type test_case_ids: list of int + :param work_item_category: + :type work_item_category: str + """ + + _attribute_map = { + 'automated_test_names': {'key': 'automatedTestNames', 'type': '[str]'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'}, + 'test_case_ids': {'key': 'testCaseIds', 'type': '[int]'}, + 'work_item_category': {'key': 'workItemCategory', 'type': 'str'} + } + + def __init__(self, automated_test_names=None, plan_id=None, point_ids=None, suite_ids=None, test_case_ids=None, work_item_category=None): + super(LinkedWorkItemsQuery, self).__init__() + self.automated_test_names = automated_test_names + self.plan_id = plan_id + self.point_ids = point_ids + self.suite_ids = suite_ids + self.test_case_ids = test_case_ids + self.work_item_category = work_item_category + + +class LinkedWorkItemsQueryResult(Model): + """LinkedWorkItemsQueryResult. + + :param automated_test_name: + :type automated_test_name: str + :param plan_id: + :type plan_id: int + :param point_id: + :type point_id: int + :param suite_id: + :type suite_id: int + :param test_case_id: + :type test_case_id: int + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_id': {'key': 'pointId', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, automated_test_name=None, plan_id=None, point_id=None, suite_id=None, test_case_id=None, work_items=None): + super(LinkedWorkItemsQueryResult, self).__init__() + self.automated_test_name = automated_test_name + self.plan_id = plan_id + self.point_id = point_id + self.suite_id = suite_id + self.test_case_id = test_case_id + self.work_items = work_items + + +class ModuleCoverage(Model): + """ModuleCoverage. + + :param block_count: + :type block_count: int + :param block_data: + :type block_data: str + :param functions: + :type functions: list of :class:`FunctionCoverage ` + :param name: + :type name: str + :param signature: + :type signature: str + :param signature_age: + :type signature_age: int + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'block_count': {'key': 'blockCount', 'type': 'int'}, + 'block_data': {'key': 'blockData', 'type': 'str'}, + 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'signature_age': {'key': 'signatureAge', 'type': 'int'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): + super(ModuleCoverage, self).__init__() + self.block_count = block_count + self.block_data = block_data + self.functions = functions + self.name = name + self.signature = signature + self.signature_age = signature_age + self.statistics = statistics + + +class NameValuePair(Model): + """NameValuePair. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(NameValuePair, self).__init__() + self.name = name + self.value = value + + +class PlanUpdateModel(Model): + """PlanUpdateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param configuration_ids: + :type configuration_ids: list of int + :param description: + :type description: str + :param end_date: + :type end_date: str + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param start_date: + :type start_date: str + :param state: + :type state: str + :param status: + :type status: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): + super(PlanUpdateModel, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.configuration_ids = configuration_ids + self.description = description + self.end_date = end_date + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.release_environment_definition = release_environment_definition + self.start_date = start_date + self.state = state + self.status = status + + +class PointAssignment(Model): + """PointAssignment. + + :param configuration: + :type configuration: :class:`ShallowReference ` + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, configuration=None, tester=None): + super(PointAssignment, self).__init__() + self.configuration = configuration + self.tester = tester + + +class PointsFilter(Model): + """PointsFilter. + + :param configuration_names: + :type configuration_names: list of str + :param testcase_ids: + :type testcase_ids: list of int + :param testers: + :type testers: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration_names': {'key': 'configurationNames', 'type': '[str]'}, + 'testcase_ids': {'key': 'testcaseIds', 'type': '[int]'}, + 'testers': {'key': 'testers', 'type': '[IdentityRef]'} + } + + def __init__(self, configuration_names=None, testcase_ids=None, testers=None): + super(PointsFilter, self).__init__() + self.configuration_names = configuration_names + self.testcase_ids = testcase_ids + self.testers = testers + + +class PointUpdateModel(Model): + """PointUpdateModel. + + :param outcome: + :type outcome: str + :param reset_to_active: + :type reset_to_active: bool + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'reset_to_active': {'key': 'resetToActive', 'type': 'bool'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, outcome=None, reset_to_active=None, tester=None): + super(PointUpdateModel, self).__init__() + self.outcome = outcome + self.reset_to_active = reset_to_active + self.tester = tester + + +class PropertyBag(Model): + """PropertyBag. + + :param bag: Generic store for test session data + :type bag: dict + """ + + _attribute_map = { + 'bag': {'key': 'bag', 'type': '{str}'} + } + + def __init__(self, bag=None): + super(PropertyBag, self).__init__() + self.bag = bag + + +class QueryModel(Model): + """QueryModel. + + :param query: + :type query: str + """ + + _attribute_map = { + 'query': {'key': 'query', 'type': 'str'} + } + + def __init__(self, query=None): + super(QueryModel, self).__init__() + self.query = query + + +class ReleaseEnvironmentDefinitionReference(Model): + """ReleaseEnvironmentDefinitionReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'} + } + + def __init__(self, definition_id=None, environment_definition_id=None): + super(ReleaseEnvironmentDefinitionReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + + +class ReleaseReference(Model): + """ReleaseReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + :param environment_definition_name: + :type environment_definition_name: str + :param environment_id: + :type environment_id: int + :param environment_name: + :type environment_name: str + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, + 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + super(ReleaseReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + self.environment_definition_name = environment_definition_name + self.environment_id = environment_id + self.environment_name = environment_name + self.id = id + self.name = name + + +class ResultRetentionSettings(Model): + """ResultRetentionSettings. + + :param automated_results_retention_duration: + :type automated_results_retention_duration: int + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param manual_results_retention_duration: + :type manual_results_retention_duration: int + """ + + _attribute_map = { + 'automated_results_retention_duration': {'key': 'automatedResultsRetentionDuration', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'manual_results_retention_duration': {'key': 'manualResultsRetentionDuration', 'type': 'int'} + } + + def __init__(self, automated_results_retention_duration=None, last_updated_by=None, last_updated_date=None, manual_results_retention_duration=None): + super(ResultRetentionSettings, self).__init__() + self.automated_results_retention_duration = automated_results_retention_duration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.manual_results_retention_duration = manual_results_retention_duration + + +class ResultsFilter(Model): + """ResultsFilter. + + :param automated_test_name: + :type automated_test_name: str + :param branch: + :type branch: str + :param group_by: + :type group_by: str + :param max_complete_date: + :type max_complete_date: datetime + :param results_count: + :type results_count: int + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'branch': {'key': 'branch', 'type': 'str'}, + 'group_by': {'key': 'groupBy', 'type': 'str'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'results_count': {'key': 'resultsCount', 'type': 'int'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_results_context=None, trend_days=None): + super(ResultsFilter, self).__init__() + self.automated_test_name = automated_test_name + self.branch = branch + self.group_by = group_by + self.max_complete_date = max_complete_date + self.results_count = results_count + self.test_results_context = test_results_context + self.trend_days = trend_days + + +class RunCreateModel(Model): + """RunCreateModel. + + :param automated: + :type automated: bool + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param complete_date: + :type complete_date: str + :param configuration_ids: + :type configuration_ids: list of int + :param controller: + :type controller: str + :param custom_test_fields: + :type custom_test_fields: list of :class:`CustomTestField ` + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_test_environment: + :type dtl_test_environment: :class:`ShallowReference ` + :param due_date: + :type due_date: str + :param environment_details: + :type environment_details: :class:`DtlEnvironmentDetails ` + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param iteration: + :type iteration: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param plan: + :type plan: :class:`ShallowReference ` + :param point_ids: + :type point_ids: list of int + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param run_timeout: + :type run_timeout: object + :param source_workflow: + :type source_workflow: str + :param start_date: + :type start_date: str + :param state: + :type state: str + :param test_configurations_mapping: + :type test_configurations_mapping: str + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param type: + :type type: str + """ + + _attribute_map = { + 'automated': {'key': 'automated', 'type': 'bool'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'complete_date': {'key': 'completeDate', 'type': 'str'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'custom_test_fields': {'key': 'customTestFields', 'type': '[CustomTestField]'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_test_environment': {'key': 'dtlTestEnvironment', 'type': 'ShallowReference'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'environment_details': {'key': 'environmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_configurations_mapping': {'key': 'testConfigurationsMapping', 'type': 'str'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): + super(RunCreateModel, self).__init__() + self.automated = automated + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.complete_date = complete_date + self.configuration_ids = configuration_ids + self.controller = controller + self.custom_test_fields = custom_test_fields + self.dtl_aut_environment = dtl_aut_environment + self.dtl_test_environment = dtl_test_environment + self.due_date = due_date + self.environment_details = environment_details + self.error_message = error_message + self.filter = filter + self.iteration = iteration + self.name = name + self.owner = owner + self.plan = plan + self.point_ids = point_ids + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.run_timeout = run_timeout + self.source_workflow = source_workflow + self.start_date = start_date + self.state = state + self.test_configurations_mapping = test_configurations_mapping + self.test_environment_id = test_environment_id + self.test_settings = test_settings + self.type = type + + +class RunFilter(Model): + """RunFilter. + + :param source_filter: filter for the test case sources (test containers) + :type source_filter: str + :param test_case_filter: filter for the test cases + :type test_case_filter: str + """ + + _attribute_map = { + 'source_filter': {'key': 'sourceFilter', 'type': 'str'}, + 'test_case_filter': {'key': 'testCaseFilter', 'type': 'str'} + } + + def __init__(self, source_filter=None, test_case_filter=None): + super(RunFilter, self).__init__() + self.source_filter = source_filter + self.test_case_filter = test_case_filter + + +class RunStatistic(Model): + """RunStatistic. + + :param count: + :type count: int + :param outcome: + :type outcome: str + :param resolution_state: + :type resolution_state: :class:`TestResolutionState ` + :param state: + :type state: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'TestResolutionState'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, count=None, outcome=None, resolution_state=None, state=None): + super(RunStatistic, self).__init__() + self.count = count + self.outcome = outcome + self.resolution_state = resolution_state + self.state = state + + +class RunUpdateModel(Model): + """RunUpdateModel. + + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param controller: + :type controller: str + :param delete_in_progress_results: + :type delete_in_progress_results: bool + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_details: + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: str + :param error_message: + :type error_message: str + :param iteration: + :type iteration: str + :param log_entries: + :type log_entries: list of :class:`TestMessageLogDetails ` + :param name: + :type name: str + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param source_workflow: + :type source_workflow: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'delete_in_progress_results': {'key': 'deleteInProgressResults', 'type': 'bool'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_details': {'key': 'dtlEnvironmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'log_entries': {'key': 'logEntries', 'type': '[TestMessageLogDetails]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): + super(RunUpdateModel, self).__init__() + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.delete_in_progress_results = delete_in_progress_results + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_details = dtl_environment_details + self.due_date = due_date + self.error_message = error_message + self.iteration = iteration + self.log_entries = log_entries + self.name = name + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.source_workflow = source_workflow + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment_id = test_environment_id + self.test_settings = test_settings + + +class ShallowReference(Model): + """ShallowReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(ShallowReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class SharedStepModel(Model): + """SharedStepModel. + + :param id: + :type id: int + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(SharedStepModel, self).__init__() + self.id = id + self.revision = revision + + +class SuiteCreateModel(Model): + """SuiteCreateModel. + + :param name: + :type name: str + :param query_string: + :type query_string: str + :param requirement_ids: + :type requirement_ids: list of int + :param suite_type: + :type suite_type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_ids': {'key': 'requirementIds', 'type': '[int]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'} + } + + def __init__(self, name=None, query_string=None, requirement_ids=None, suite_type=None): + super(SuiteCreateModel, self).__init__() + self.name = name + self.query_string = query_string + self.requirement_ids = requirement_ids + self.suite_type = suite_type + + +class SuiteEntry(Model): + """SuiteEntry. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Sequence number for the test case or child suite in the suite + :type sequence_number: int + :param suite_id: Id for the suite + :type suite_id: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, test_case_id=None): + super(SuiteEntry, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.suite_id = suite_id + self.test_case_id = test_case_id + + +class SuiteEntryUpdateModel(Model): + """SuiteEntryUpdateModel. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Updated sequence number for the test case or child suite in the suite + :type sequence_number: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None): + super(SuiteEntryUpdateModel, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.test_case_id = test_case_id + + +class SuiteTestCase(Model): + """SuiteTestCase. + + :param point_assignments: + :type point_assignments: list of :class:`PointAssignment ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'point_assignments': {'key': 'pointAssignments', 'type': '[PointAssignment]'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'} + } + + def __init__(self, point_assignments=None, test_case=None): + super(SuiteTestCase, self).__init__() + self.point_assignments = point_assignments + self.test_case = test_case + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class TestAttachment(Model): + """TestAttachment. + + :param attachment_type: + :type attachment_type: object + :param comment: + :type comment: str + :param created_date: + :type created_date: datetime + :param file_name: + :type file_name: str + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, url=None): + super(TestAttachment, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.created_date = created_date + self.file_name = file_name + self.id = id + self.url = url + + +class TestAttachmentReference(Model): + """TestAttachmentReference. + + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(TestAttachmentReference, self).__init__() + self.id = id + self.url = url + + +class TestAttachmentRequestModel(Model): + """TestAttachmentRequestModel. + + :param attachment_type: + :type attachment_type: str + :param comment: + :type comment: str + :param file_name: + :type file_name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, file_name=None, stream=None): + super(TestAttachmentRequestModel, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.file_name = file_name + self.stream = stream + + +class TestCaseResult(Model): + """TestCaseResult. + + :param afn_strip_id: + :type afn_strip_id: int + :param area: + :type area: :class:`ShallowReference ` + :param associated_bugs: + :type associated_bugs: list of :class:`ShallowReference ` + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param build: + :type build: :class:`ShallowReference ` + :param build_reference: + :type build_reference: :class:`BuildReference ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param failing_since: + :type failing_since: :class:`FailingSince ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param iteration_details: + :type iteration_details: list of :class:`TestIterationDetailsModel ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param priority: + :type priority: int + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ShallowReference ` + :param release_reference: + :type release_reference: :class:`ReleaseReference ` + :param reset_count: + :type reset_count: int + :param resolution_state: + :type resolution_state: str + :param resolution_state_id: + :type resolution_state_id: int + :param revision: + :type revision: int + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_reference_id: + :type test_case_reference_id: int + :param test_case_title: + :type test_case_title: str + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param test_point: + :type test_point: :class:`ShallowReference ` + :param test_run: + :type test_run: :class:`ShallowReference ` + :param test_suite: + :type test_suite: :class:`ShallowReference ` + :param url: + :type url: str + """ + + _attribute_map = { + 'afn_strip_id': {'key': 'afnStripId', 'type': 'int'}, + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_bugs': {'key': 'associatedBugs', 'type': '[ShallowReference]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_reference': {'key': 'buildReference', 'type': 'BuildReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_details': {'key': 'iterationDetails', 'type': '[TestIterationDetailsModel]'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ShallowReference'}, + 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, + 'reset_count': {'key': 'resetCount', 'type': 'int'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'}, + 'test_suite': {'key': 'testSuite', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): + super(TestCaseResult, self).__init__() + self.afn_strip_id = afn_strip_id + self.area = area + self.associated_bugs = associated_bugs + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.build = build + self.build_reference = build_reference + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.created_date = created_date + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failing_since = failing_since + self.failure_type = failure_type + self.id = id + self.iteration_details = iteration_details + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.owner = owner + self.priority = priority + self.project = project + self.release = release + self.release_reference = release_reference + self.reset_count = reset_count + self.resolution_state = resolution_state + self.resolution_state_id = resolution_state_id + self.revision = revision + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_reference_id = test_case_reference_id + self.test_case_title = test_case_title + self.test_plan = test_plan + self.test_point = test_point + self.test_run = test_run + self.test_suite = test_suite + self.url = url + + +class TestCaseResultAttachmentModel(Model): + """TestCaseResultAttachmentModel. + + :param id: + :type id: int + :param iteration_id: + :type iteration_id: int + :param name: + :type name: str + :param size: + :type size: long + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): + super(TestCaseResultAttachmentModel, self).__init__() + self.id = id + self.iteration_id = iteration_id + self.name = name + self.size = size + self.url = url + + +class TestCaseResultIdentifier(Model): + """TestCaseResultIdentifier. + + :param test_result_id: + :type test_result_id: int + :param test_run_id: + :type test_run_id: int + """ + + _attribute_map = { + 'test_result_id': {'key': 'testResultId', 'type': 'int'}, + 'test_run_id': {'key': 'testRunId', 'type': 'int'} + } + + def __init__(self, test_result_id=None, test_run_id=None): + super(TestCaseResultIdentifier, self).__init__() + self.test_result_id = test_result_id + self.test_run_id = test_run_id + + +class TestCaseResultUpdateModel(Model): + """TestCaseResultUpdateModel. + + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case_priority: + :type test_case_priority: str + :param test_result: + :type test_result: :class:`ShallowReference ` + """ + + _attribute_map = { + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_result': {'key': 'testResult', 'type': 'ShallowReference'} + } + + def __init__(self, associated_work_items=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case_priority=None, test_result=None): + super(TestCaseResultUpdateModel, self).__init__() + self.associated_work_items = associated_work_items + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case_priority = test_case_priority + self.test_result = test_result + + +class TestConfiguration(Model): + """TestConfiguration. + + :param area: Area of the configuration + :type area: :class:`ShallowReference ` + :param description: Description of the configuration + :type description: str + :param id: Id of the configuration + :type id: int + :param is_default: Is the configuration a default for the test plans + :type is_default: bool + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last Updated Data + :type last_updated_date: datetime + :param name: Name of the configuration + :type name: str + :param project: Project to which the configuration belongs + :type project: :class:`ShallowReference ` + :param revision: Revision of the the configuration + :type revision: int + :param state: State of the configuration + :type state: object + :param url: Url of Configuration Resource + :type url: str + :param values: Dictionary of Test Variable, Selected Value + :type values: list of :class:`NameValuePair ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[NameValuePair]'} + } + + def __init__(self, area=None, description=None, id=None, is_default=None, last_updated_by=None, last_updated_date=None, name=None, project=None, revision=None, state=None, url=None, values=None): + super(TestConfiguration, self).__init__() + self.area = area + self.description = description + self.id = id + self.is_default = is_default + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.project = project + self.revision = revision + self.state = state + self.url = url + self.values = values + + +class TestEnvironment(Model): + """TestEnvironment. + + :param environment_id: + :type environment_id: str + :param environment_name: + :type environment_name: str + """ + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'} + } + + def __init__(self, environment_id=None, environment_name=None): + super(TestEnvironment, self).__init__() + self.environment_id = environment_id + self.environment_name = environment_name + + +class TestFailureDetails(Model): + """TestFailureDetails. + + :param count: + :type count: int + :param test_results: + :type test_results: list of :class:`TestCaseResultIdentifier ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'test_results': {'key': 'testResults', 'type': '[TestCaseResultIdentifier]'} + } + + def __init__(self, count=None, test_results=None): + super(TestFailureDetails, self).__init__() + self.count = count + self.test_results = test_results + + +class TestFailuresAnalysis(Model): + """TestFailuresAnalysis. + + :param existing_failures: + :type existing_failures: :class:`TestFailureDetails ` + :param fixed_tests: + :type fixed_tests: :class:`TestFailureDetails ` + :param new_failures: + :type new_failures: :class:`TestFailureDetails ` + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'existing_failures': {'key': 'existingFailures', 'type': 'TestFailureDetails'}, + 'fixed_tests': {'key': 'fixedTests', 'type': 'TestFailureDetails'}, + 'new_failures': {'key': 'newFailures', 'type': 'TestFailureDetails'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'} + } + + def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, previous_context=None): + super(TestFailuresAnalysis, self).__init__() + self.existing_failures = existing_failures + self.fixed_tests = fixed_tests + self.new_failures = new_failures + self.previous_context = previous_context + + +class TestIterationDetailsModel(Model): + """TestIterationDetailsModel. + + :param action_results: + :type action_results: list of :class:`TestActionResultModel ` + :param attachments: + :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param id: + :type id: int + :param outcome: + :type outcome: str + :param parameters: + :type parameters: list of :class:`TestResultParameterModel ` + :param started_date: + :type started_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'action_results': {'key': 'actionResults', 'type': '[TestActionResultModel]'}, + 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[TestResultParameterModel]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, action_results=None, attachments=None, comment=None, completed_date=None, duration_in_ms=None, error_message=None, id=None, outcome=None, parameters=None, started_date=None, url=None): + super(TestIterationDetailsModel, self).__init__() + self.action_results = action_results + self.attachments = attachments + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.id = id + self.outcome = outcome + self.parameters = parameters + self.started_date = started_date + self.url = url + + +class TestMessageLogDetails(Model): + """TestMessageLogDetails. + + :param date_created: Date when the resource is created + :type date_created: datetime + :param entry_id: Id of the resource + :type entry_id: int + :param message: Message of the resource + :type message: str + """ + + _attribute_map = { + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'entry_id': {'key': 'entryId', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, date_created=None, entry_id=None, message=None): + super(TestMessageLogDetails, self).__init__() + self.date_created = date_created + self.entry_id = entry_id + self.message = message + + +class TestMethod(Model): + """TestMethod. + + :param container: + :type container: str + :param name: + :type name: str + """ + + _attribute_map = { + 'container': {'key': 'container', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, container=None, name=None): + super(TestMethod, self).__init__() + self.container = container + self.name = name + + +class TestOperationReference(Model): + """TestOperationReference. + + :param id: + :type id: str + :param status: + :type status: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(TestOperationReference, self).__init__() + self.id = id + self.status = status + self.url = url + + +class TestPlan(Model): + """TestPlan. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param client_url: + :type client_url: str + :param description: + :type description: str + :param end_date: + :type end_date: datetime + :param id: + :type id: int + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param previous_build: + :type previous_build: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param revision: + :type revision: int + :param root_suite: + :type root_suite: :class:`ShallowReference ` + :param start_date: + :type start_date: datetime + :param state: + :type state: str + :param updated_by: + :type updated_by: :class:`IdentityRef ` + :param updated_date: + :type updated_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'client_url': {'key': 'clientUrl', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'previous_build': {'key': 'previousBuild', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): + super(TestPlan, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.client_url = client_url + self.description = description + self.end_date = end_date + self.id = id + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.previous_build = previous_build + self.project = project + self.release_environment_definition = release_environment_definition + self.revision = revision + self.root_suite = root_suite + self.start_date = start_date + self.state = state + self.updated_by = updated_by + self.updated_date = updated_date + self.url = url + + +class TestPlanCloneRequest(Model): + """TestPlanCloneRequest. + + :param destination_test_plan: + :type destination_test_plan: :class:`TestPlan ` + :param options: + :type options: :class:`CloneOptions ` + :param suite_ids: + :type suite_ids: list of int + """ + + _attribute_map = { + 'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'TestPlan'}, + 'options': {'key': 'options', 'type': 'CloneOptions'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'} + } + + def __init__(self, destination_test_plan=None, options=None, suite_ids=None): + super(TestPlanCloneRequest, self).__init__() + self.destination_test_plan = destination_test_plan + self.options = options + self.suite_ids = suite_ids + + +class TestPoint(Model): + """TestPoint. + + :param assigned_to: + :type assigned_to: :class:`IdentityRef ` + :param automated: + :type automated: bool + :param comment: + :type comment: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param last_resolution_state_id: + :type last_resolution_state_id: int + :param last_result: + :type last_result: :class:`ShallowReference ` + :param last_result_details: + :type last_result_details: :class:`LastResultDetails ` + :param last_result_state: + :type last_result_state: str + :param last_run_build_number: + :type last_run_build_number: str + :param last_test_run: + :type last_test_run: :class:`ShallowReference ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param revision: + :type revision: int + :param state: + :type state: str + :param suite: + :type suite: :class:`ShallowReference ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param url: + :type url: str + :param work_item_properties: + :type work_item_properties: list of object + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'}, + 'automated': {'key': 'automated', 'type': 'bool'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, + 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, + 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, + 'last_result_state': {'key': 'lastResultState', 'type': 'str'}, + 'last_run_build_number': {'key': 'lastRunBuildNumber', 'type': 'str'}, + 'last_test_run': {'key': 'lastTestRun', 'type': 'ShallowReference'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suite': {'key': 'suite', 'type': 'ShallowReference'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} + } + + def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): + super(TestPoint, self).__init__() + self.assigned_to = assigned_to + self.automated = automated + self.comment = comment + self.configuration = configuration + self.failure_type = failure_type + self.id = id + self.last_resolution_state_id = last_resolution_state_id + self.last_result = last_result + self.last_result_details = last_result_details + self.last_result_state = last_result_state + self.last_run_build_number = last_run_build_number + self.last_test_run = last_test_run + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.revision = revision + self.state = state + self.suite = suite + self.test_case = test_case + self.test_plan = test_plan + self.url = url + self.work_item_properties = work_item_properties + + +class TestPointsQuery(Model): + """TestPointsQuery. + + :param order_by: + :type order_by: str + :param points: + :type points: list of :class:`TestPoint ` + :param points_filter: + :type points_filter: :class:`PointsFilter ` + :param wit_fields: + :type wit_fields: list of str + """ + + _attribute_map = { + 'order_by': {'key': 'orderBy', 'type': 'str'}, + 'points': {'key': 'points', 'type': '[TestPoint]'}, + 'points_filter': {'key': 'pointsFilter', 'type': 'PointsFilter'}, + 'wit_fields': {'key': 'witFields', 'type': '[str]'} + } + + def __init__(self, order_by=None, points=None, points_filter=None, wit_fields=None): + super(TestPointsQuery, self).__init__() + self.order_by = order_by + self.points = points + self.points_filter = points_filter + self.wit_fields = wit_fields + + +class TestResolutionState(Model): + """TestResolutionState. + + :param id: + :type id: int + :param name: + :type name: str + :param project: + :type project: :class:`ShallowReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'} + } + + def __init__(self, id=None, name=None, project=None): + super(TestResolutionState, self).__init__() + self.id = id + self.name = name + self.project = project + + +class TestResultCreateModel(Model): + """TestResultCreateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_priority: + :type test_case_priority: str + :param test_case_title: + :type test_case_title: str + :param test_point: + :type test_point: :class:`ShallowReference ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'} + } + + def __init__(self, area=None, associated_work_items=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_priority=None, test_case_title=None, test_point=None): + super(TestResultCreateModel, self).__init__() + self.area = area + self.associated_work_items = associated_work_items + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_priority = test_case_priority + self.test_case_title = test_case_title + self.test_point = test_point + + +class TestResultDocument(Model): + """TestResultDocument. + + :param operation_reference: + :type operation_reference: :class:`TestOperationReference ` + :param payload: + :type payload: :class:`TestResultPayload ` + """ + + _attribute_map = { + 'operation_reference': {'key': 'operationReference', 'type': 'TestOperationReference'}, + 'payload': {'key': 'payload', 'type': 'TestResultPayload'} + } + + def __init__(self, operation_reference=None, payload=None): + super(TestResultDocument, self).__init__() + self.operation_reference = operation_reference + self.payload = payload + + +class TestResultHistory(Model): + """TestResultHistory. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultHistory, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group + + +class TestResultHistoryDetailsForGroup(Model): + """TestResultHistoryDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param latest_result: + :type latest_result: :class:`TestCaseResult ` + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'latest_result': {'key': 'latestResult', 'type': 'TestCaseResult'} + } + + def __init__(self, group_by_value=None, latest_result=None): + super(TestResultHistoryDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.latest_result = latest_result + + +class TestResultModelBase(Model): + """TestResultModelBase. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None): + super(TestResultModelBase, self).__init__() + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.outcome = outcome + self.started_date = started_date + + +class TestResultParameterModel(Model): + """TestResultParameterModel. + + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param parameter_name: + :type parameter_name: str + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'parameter_name': {'key': 'parameterName', 'type': 'str'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_path=None, iteration_id=None, parameter_name=None, step_identifier=None, url=None, value=None): + super(TestResultParameterModel, self).__init__() + self.action_path = action_path + self.iteration_id = iteration_id + self.parameter_name = parameter_name + self.step_identifier = step_identifier + self.url = url + self.value = value + + +class TestResultPayload(Model): + """TestResultPayload. + + :param comment: + :type comment: str + :param name: + :type name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, comment=None, name=None, stream=None): + super(TestResultPayload, self).__init__() + self.comment = comment + self.name = name + self.stream = stream + + +class TestResultsContext(Model): + """TestResultsContext. + + :param build: + :type build: :class:`BuildReference ` + :param context_type: + :type context_type: object + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'context_type': {'key': 'contextType', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, context_type=None, release=None): + super(TestResultsContext, self).__init__() + self.build = build + self.context_type = context_type + self.release = release + + +class TestResultsDetails(Model): + """TestResultsDetails. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultsDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultsDetails, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group + + +class TestResultsDetailsForGroup(Model): + """TestResultsDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_count_by_outcome: + :type results_count_by_outcome: dict + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'} + } + + def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None): + super(TestResultsDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.results = results + self.results_count_by_outcome = results_count_by_outcome + + +class TestResultsQuery(Model): + """TestResultsQuery. + + :param fields: + :type fields: list of str + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_filter: + :type results_filter: :class:`ResultsFilter ` + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_filter': {'key': 'resultsFilter', 'type': 'ResultsFilter'} + } + + def __init__(self, fields=None, results=None, results_filter=None): + super(TestResultsQuery, self).__init__() + self.fields = fields + self.results = results + self.results_filter = results_filter + + +class TestResultSummary(Model): + """TestResultSummary. + + :param aggregated_results_analysis: + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :param team_project: + :type team_project: :class:`TeamProjectReference ` + :param test_failures: + :type test_failures: :class:`TestFailuresAnalysis ` + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'aggregated_results_analysis': {'key': 'aggregatedResultsAnalysis', 'type': 'AggregatedResultsAnalysis'}, + 'team_project': {'key': 'teamProject', 'type': 'TeamProjectReference'}, + 'test_failures': {'key': 'testFailures', 'type': 'TestFailuresAnalysis'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'} + } + + def __init__(self, aggregated_results_analysis=None, team_project=None, test_failures=None, test_results_context=None): + super(TestResultSummary, self).__init__() + self.aggregated_results_analysis = aggregated_results_analysis + self.team_project = team_project + self.test_failures = test_failures + self.test_results_context = test_results_context + + +class TestResultTrendFilter(Model): + """TestResultTrendFilter. + + :param branch_names: + :type branch_names: list of str + :param build_count: + :type build_count: int + :param definition_ids: + :type definition_ids: list of int + :param env_definition_ids: + :type env_definition_ids: list of int + :param max_complete_date: + :type max_complete_date: datetime + :param publish_context: + :type publish_context: str + :param test_run_titles: + :type test_run_titles: list of str + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'branch_names': {'key': 'branchNames', 'type': '[str]'}, + 'build_count': {'key': 'buildCount', 'type': 'int'}, + 'definition_ids': {'key': 'definitionIds', 'type': '[int]'}, + 'env_definition_ids': {'key': 'envDefinitionIds', 'type': '[int]'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'publish_context': {'key': 'publishContext', 'type': 'str'}, + 'test_run_titles': {'key': 'testRunTitles', 'type': '[str]'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, branch_names=None, build_count=None, definition_ids=None, env_definition_ids=None, max_complete_date=None, publish_context=None, test_run_titles=None, trend_days=None): + super(TestResultTrendFilter, self).__init__() + self.branch_names = branch_names + self.build_count = build_count + self.definition_ids = definition_ids + self.env_definition_ids = env_definition_ids + self.max_complete_date = max_complete_date + self.publish_context = publish_context + self.test_run_titles = test_run_titles + self.trend_days = trend_days + + +class TestRun(Model): + """TestRun. + + :param build: + :type build: :class:`ShallowReference ` + :param build_configuration: + :type build_configuration: :class:`BuildConfiguration ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param controller: + :type controller: str + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param drop_location: + :type drop_location: str + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_creation_details: + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: datetime + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param id: + :type id: int + :param incomplete_tests: + :type incomplete_tests: int + :param is_automated: + :type is_automated: bool + :param iteration: + :type iteration: str + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param not_applicable_tests: + :type not_applicable_tests: int + :param owner: + :type owner: :class:`IdentityRef ` + :param passed_tests: + :type passed_tests: int + :param phase: + :type phase: str + :param plan: + :type plan: :class:`ShallowReference ` + :param post_process_state: + :type post_process_state: str + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ReleaseReference ` + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param revision: + :type revision: int + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment: + :type test_environment: :class:`TestEnvironment ` + :param test_message_log_id: + :type test_message_log_id: int + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param total_tests: + :type total_tests: int + :param unanalyzed_tests: + :type unanalyzed_tests: int + :param url: + :type url: str + :param web_access_url: + :type web_access_url: str + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_configuration': {'key': 'buildConfiguration', 'type': 'BuildConfiguration'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_creation_details': {'key': 'dtlEnvironmentCreationDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'iso-8601'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'id': {'key': 'id', 'type': 'int'}, + 'incomplete_tests': {'key': 'incompleteTests', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'not_applicable_tests': {'key': 'notApplicableTests', 'type': 'int'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'passed_tests': {'key': 'passedTests', 'type': 'int'}, + 'phase': {'key': 'phase', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'post_process_state': {'key': 'postProcessState', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment': {'key': 'testEnvironment', 'type': 'TestEnvironment'}, + 'test_message_log_id': {'key': 'testMessageLogId', 'type': 'int'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'}, + 'unanalyzed_tests': {'key': 'unanalyzedTests', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_url': {'key': 'webAccessUrl', 'type': 'str'} + } + + def __init__(self, build=None, build_configuration=None, comment=None, completed_date=None, controller=None, created_date=None, custom_fields=None, drop_location=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_creation_details=None, due_date=None, error_message=None, filter=None, id=None, incomplete_tests=None, is_automated=None, iteration=None, last_updated_by=None, last_updated_date=None, name=None, not_applicable_tests=None, owner=None, passed_tests=None, phase=None, plan=None, post_process_state=None, project=None, release=None, release_environment_uri=None, release_uri=None, revision=None, run_statistics=None, started_date=None, state=None, substate=None, test_environment=None, test_message_log_id=None, test_settings=None, total_tests=None, unanalyzed_tests=None, url=None, web_access_url=None): + super(TestRun, self).__init__() + self.build = build + self.build_configuration = build_configuration + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.created_date = created_date + self.custom_fields = custom_fields + self.drop_location = drop_location + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_creation_details = dtl_environment_creation_details + self.due_date = due_date + self.error_message = error_message + self.filter = filter + self.id = id + self.incomplete_tests = incomplete_tests + self.is_automated = is_automated + self.iteration = iteration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.not_applicable_tests = not_applicable_tests + self.owner = owner + self.passed_tests = passed_tests + self.phase = phase + self.plan = plan + self.post_process_state = post_process_state + self.project = project + self.release = release + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.revision = revision + self.run_statistics = run_statistics + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment = test_environment + self.test_message_log_id = test_message_log_id + self.test_settings = test_settings + self.total_tests = total_tests + self.unanalyzed_tests = unanalyzed_tests + self.url = url + self.web_access_url = web_access_url + + +class TestRunCoverage(Model): + """TestRunCoverage. + + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + :param test_run: + :type test_run: :class:`ShallowReference ` + """ + + _attribute_map = { + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'} + } + + def __init__(self, last_error=None, modules=None, state=None, test_run=None): + super(TestRunCoverage, self).__init__() + self.last_error = last_error + self.modules = modules + self.state = state + self.test_run = test_run + + +class TestRunStatistic(Model): + """TestRunStatistic. + + :param run: + :type run: :class:`ShallowReference ` + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + """ + + _attribute_map = { + 'run': {'key': 'run', 'type': 'ShallowReference'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'} + } + + def __init__(self, run=None, run_statistics=None): + super(TestRunStatistic, self).__init__() + self.run = run + self.run_statistics = run_statistics + + +class TestSession(Model): + """TestSession. + + :param area: Area path of the test session + :type area: :class:`ShallowReference ` + :param comment: Comments in the test session + :type comment: str + :param end_date: Duration of the session + :type end_date: datetime + :param id: Id of the test session + :type id: int + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date + :type last_updated_date: datetime + :param owner: Owner of the test session + :type owner: :class:`IdentityRef ` + :param project: Project to which the test session belongs + :type project: :class:`ShallowReference ` + :param property_bag: Generic store for test session data + :type property_bag: :class:`PropertyBag ` + :param revision: Revision of the test session + :type revision: int + :param source: Source of the test session + :type source: object + :param start_date: Start date + :type start_date: datetime + :param state: State of the test session + :type state: object + :param title: Title of the test session + :type title: str + :param url: Url of Test Session Resource + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'property_bag': {'key': 'propertyBag', 'type': 'PropertyBag'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, comment=None, end_date=None, id=None, last_updated_by=None, last_updated_date=None, owner=None, project=None, property_bag=None, revision=None, source=None, start_date=None, state=None, title=None, url=None): + super(TestSession, self).__init__() + self.area = area + self.comment = comment + self.end_date = end_date + self.id = id + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.owner = owner + self.project = project + self.property_bag = property_bag + self.revision = revision + self.source = source + self.start_date = start_date + self.state = state + self.title = title + self.url = url + + +class TestSettings(Model): + """TestSettings. + + :param area_path: Area path required to create test settings + :type area_path: str + :param description: Description of the test settings. Used in create test settings. + :type description: str + :param is_public: Indicates if the tests settings is public or private.Used in create test settings. + :type is_public: bool + :param machine_roles: Xml string of machine roles. Used in create test settings. + :type machine_roles: str + :param test_settings_content: Test settings content. + :type test_settings_content: str + :param test_settings_id: Test settings id. + :type test_settings_id: int + :param test_settings_name: Test settings name. + :type test_settings_name: str + """ + + _attribute_map = { + 'area_path': {'key': 'areaPath', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'machine_roles': {'key': 'machineRoles', 'type': 'str'}, + 'test_settings_content': {'key': 'testSettingsContent', 'type': 'str'}, + 'test_settings_id': {'key': 'testSettingsId', 'type': 'int'}, + 'test_settings_name': {'key': 'testSettingsName', 'type': 'str'} + } + + def __init__(self, area_path=None, description=None, is_public=None, machine_roles=None, test_settings_content=None, test_settings_id=None, test_settings_name=None): + super(TestSettings, self).__init__() + self.area_path = area_path + self.description = description + self.is_public = is_public + self.machine_roles = machine_roles + self.test_settings_content = test_settings_content + self.test_settings_id = test_settings_id + self.test_settings_name = test_settings_name + + +class TestSuite(Model): + """TestSuite. + + :param area_uri: + :type area_uri: str + :param children: + :type children: list of :class:`TestSuite ` + :param default_configurations: + :type default_configurations: list of :class:`ShallowReference ` + :param id: + :type id: int + :param inherit_default_configurations: + :type inherit_default_configurations: bool + :param last_error: + :type last_error: str + :param last_populated_date: + :type last_populated_date: datetime + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param parent: + :type parent: :class:`ShallowReference ` + :param plan: + :type plan: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param query_string: + :type query_string: str + :param requirement_id: + :type requirement_id: int + :param revision: + :type revision: int + :param state: + :type state: str + :param suites: + :type suites: list of :class:`ShallowReference ` + :param suite_type: + :type suite_type: str + :param test_case_count: + :type test_case_count: int + :param test_cases_url: + :type test_cases_url: str + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'area_uri': {'key': 'areaUri', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TestSuite]'}, + 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'last_populated_date': {'key': 'lastPopulatedDate', 'type': 'iso-8601'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'ShallowReference'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_id': {'key': 'requirementId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suites': {'key': 'suites', 'type': '[ShallowReference]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'}, + 'test_case_count': {'key': 'testCaseCount', 'type': 'int'}, + 'test_cases_url': {'key': 'testCasesUrl', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area_uri=None, children=None, default_configurations=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): + super(TestSuite, self).__init__() + self.area_uri = area_uri + self.children = children + self.default_configurations = default_configurations + self.id = id + self.inherit_default_configurations = inherit_default_configurations + self.last_error = last_error + self.last_populated_date = last_populated_date + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.parent = parent + self.plan = plan + self.project = project + self.query_string = query_string + self.requirement_id = requirement_id + self.revision = revision + self.state = state + self.suites = suites + self.suite_type = suite_type + self.test_case_count = test_case_count + self.test_cases_url = test_cases_url + self.text = text + self.url = url + + +class TestSuiteCloneRequest(Model): + """TestSuiteCloneRequest. + + :param clone_options: + :type clone_options: :class:`CloneOptions ` + :param destination_suite_id: + :type destination_suite_id: int + :param destination_suite_project_name: + :type destination_suite_project_name: str + """ + + _attribute_map = { + 'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'}, + 'destination_suite_id': {'key': 'destinationSuiteId', 'type': 'int'}, + 'destination_suite_project_name': {'key': 'destinationSuiteProjectName', 'type': 'str'} + } + + def __init__(self, clone_options=None, destination_suite_id=None, destination_suite_project_name=None): + super(TestSuiteCloneRequest, self).__init__() + self.clone_options = clone_options + self.destination_suite_id = destination_suite_id + self.destination_suite_project_name = destination_suite_project_name + + +class TestSummaryForWorkItem(Model): + """TestSummaryForWorkItem. + + :param summary: + :type summary: :class:`AggregatedDataForResultTrend ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'AggregatedDataForResultTrend'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, summary=None, work_item=None): + super(TestSummaryForWorkItem, self).__init__() + self.summary = summary + self.work_item = work_item + + +class TestToWorkItemLinks(Model): + """TestToWorkItemLinks. + + :param test: + :type test: :class:`TestMethod ` + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'test': {'key': 'test', 'type': 'TestMethod'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, test=None, work_items=None): + super(TestToWorkItemLinks, self).__init__() + self.test = test + self.work_items = work_items + + +class TestVariable(Model): + """TestVariable. + + :param description: Description of the test variable + :type description: str + :param id: Id of the test variable + :type id: int + :param name: Name of the test variable + :type name: str + :param project: Project to which the test variable belongs + :type project: :class:`ShallowReference ` + :param revision: Revision + :type revision: int + :param url: Url of the test variable + :type url: str + :param values: List of allowed values + :type values: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, name=None, project=None, revision=None, url=None, values=None): + super(TestVariable, self).__init__() + self.description = description + self.id = id + self.name = name + self.project = project + self.revision = revision + self.url = url + self.values = values + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + :param web_url: + :type web_url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None, url=None, web_url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.name = name + self.type = type + self.url = url + self.web_url = web_url + + +class WorkItemToTestLinks(Model): + """WorkItemToTestLinks. + + :param tests: + :type tests: list of :class:`TestMethod ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'tests': {'key': 'tests', 'type': '[TestMethod]'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, tests=None, work_item=None): + super(WorkItemToTestLinks, self).__init__() + self.tests = tests + self.work_item = work_item + + +class TestActionResultModel(TestResultModelBase): + """TestActionResultModel. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param shared_step_model: + :type shared_step_model: :class:`SharedStepModel ` + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'shared_step_model': {'key': 'sharedStepModel', 'type': 'SharedStepModel'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None, action_path=None, iteration_id=None, shared_step_model=None, step_identifier=None, url=None): + super(TestActionResultModel, self).__init__(comment=comment, completed_date=completed_date, duration_in_ms=duration_in_ms, error_message=error_message, outcome=outcome, started_date=started_date) + self.action_path = action_path + self.iteration_id = iteration_id + self.shared_step_model = shared_step_model + self.step_identifier = step_identifier + self.url = url + + +__all__ = [ + 'AggregatedDataForResultTrend', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'BuildConfiguration', + 'BuildCoverage', + 'BuildReference', + 'CloneOperationInformation', + 'CloneOptions', + 'CloneStatistics', + 'CodeCoverageData', + 'CodeCoverageStatistics', + 'CodeCoverageSummary', + 'CoverageStatistics', + 'CustomTestField', + 'CustomTestFieldDefinition', + 'DtlEnvironmentDetails', + 'FailingSince', + 'FunctionCoverage', + 'IdentityRef', + 'LastResultDetails', + 'LinkedWorkItemsQuery', + 'LinkedWorkItemsQueryResult', + 'ModuleCoverage', + 'NameValuePair', + 'PlanUpdateModel', + 'PointAssignment', + 'PointsFilter', + 'PointUpdateModel', + 'PropertyBag', + 'QueryModel', + 'ReleaseEnvironmentDefinitionReference', + 'ReleaseReference', + 'ResultRetentionSettings', + 'ResultsFilter', + 'RunCreateModel', + 'RunFilter', + 'RunStatistic', + 'RunUpdateModel', + 'ShallowReference', + 'SharedStepModel', + 'SuiteCreateModel', + 'SuiteEntry', + 'SuiteEntryUpdateModel', + 'SuiteTestCase', + 'TeamContext', + 'TeamProjectReference', + 'TestAttachment', + 'TestAttachmentReference', + 'TestAttachmentRequestModel', + 'TestCaseResult', + 'TestCaseResultAttachmentModel', + 'TestCaseResultIdentifier', + 'TestCaseResultUpdateModel', + 'TestConfiguration', + 'TestEnvironment', + 'TestFailureDetails', + 'TestFailuresAnalysis', + 'TestIterationDetailsModel', + 'TestMessageLogDetails', + 'TestMethod', + 'TestOperationReference', + 'TestPlan', + 'TestPlanCloneRequest', + 'TestPoint', + 'TestPointsQuery', + 'TestResolutionState', + 'TestResultCreateModel', + 'TestResultDocument', + 'TestResultHistory', + 'TestResultHistoryDetailsForGroup', + 'TestResultModelBase', + 'TestResultParameterModel', + 'TestResultPayload', + 'TestResultsContext', + 'TestResultsDetails', + 'TestResultsDetailsForGroup', + 'TestResultsQuery', + 'TestResultSummary', + 'TestResultTrendFilter', + 'TestRun', + 'TestRunCoverage', + 'TestRunStatistic', + 'TestSession', + 'TestSettings', + 'TestSuite', + 'TestSuiteCloneRequest', + 'TestSummaryForWorkItem', + 'TestToWorkItemLinks', + 'TestVariable', + 'WorkItemReference', + 'WorkItemToTestLinks', + 'TestActionResultModel', +] diff --git a/vsts/vsts/test/v4_0/test_client.py b/azure-devops/azure/devops/v4_0/test/test_client.py similarity index 99% rename from vsts/vsts/test/v4_0/test_client.py rename to azure-devops/azure/devops/v4_0/test/test_client.py index 8ba88027..c110776c 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/azure-devops/azure/devops/v4_0/test/test_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TestClient(VssClient): +class TestClient(Client): """Test :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/tfvc/__init__.py b/azure-devops/azure/devops/v4_0/tfvc/__init__.py new file mode 100644 index 00000000..ec68efad --- /dev/null +++ b/azure-devops/azure/devops/v4_0/tfvc/__init__.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AssociatedWorkItem', + 'Change', + 'CheckinNote', + 'FileContentMetadata', + 'GitRepository', + 'GitRepositoryRef', + 'IdentityRef', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'TfvcBranch', + 'TfvcBranchMapping', + 'TfvcBranchRef', + 'TfvcChange', + 'TfvcChangeset', + 'TfvcChangesetRef', + 'TfvcChangesetSearchCriteria', + 'TfvcChangesetsRequestData', + 'TfvcItem', + 'TfvcItemDescriptor', + 'TfvcItemRequestData', + 'TfvcLabel', + 'TfvcLabelRef', + 'TfvcLabelRequestData', + 'TfvcMergeSource', + 'TfvcPolicyFailureInfo', + 'TfvcPolicyOverrideInfo', + 'TfvcShallowBranchRef', + 'TfvcShelveset', + 'TfvcShelvesetRef', + 'TfvcShelvesetRequestData', + 'TfvcVersionDescriptor', + 'VersionControlProjectInfo', + 'VstsInfo', +] diff --git a/azure-devops/azure/devops/v4_0/tfvc/models.py b/azure-devops/azure/devops/v4_0/tfvc/models.py new file mode 100644 index 00000000..94418249 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/tfvc/models.py @@ -0,0 +1,1303 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST url + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type + + +class Change(Model): + """Change. + + :param change_type: + :type change_type: object + :param item: + :type item: object + :param new_content: + :type new_content: :class:`ItemContent ` + :param source_server_item: + :type source_server_item: str + :param url: + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'object'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url + + +class CheckinNote(Model): + """CheckinNote. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(CheckinNote, self).__init__() + self.name = name + self.value = value + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.url = url + self.valid_remote_urls = valid_remote_urls + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: :class:`TeamProjectCollectionReference ` + :param id: + :type id: str + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.name = name + self.project = project + self.remote_url = remote_url + self.url = url + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class TfvcBranchMapping(Model): + """TfvcBranchMapping. + + :param depth: + :type depth: str + :param server_item: + :type server_item: str + :param type: + :type type: str + """ + + _attribute_map = { + 'depth': {'key': 'depth', 'type': 'str'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, depth=None, server_item=None, type=None): + super(TfvcBranchMapping, self).__init__() + self.depth = depth + self.server_item = server_item + self.type = type + + +class TfvcChange(Change): + """TfvcChange. + + :param merge_sources: List of merge sources in case of rename or branch creation. + :type merge_sources: list of :class:`TfvcMergeSource ` + :param pending_version: Version at which a (shelved) change was pended against + :type pending_version: int + """ + + _attribute_map = { + 'merge_sources': {'key': 'mergeSources', 'type': '[TfvcMergeSource]'}, + 'pending_version': {'key': 'pendingVersion', 'type': 'int'} + } + + def __init__(self, merge_sources=None, pending_version=None): + super(TfvcChange, self).__init__() + self.merge_sources = merge_sources + self.pending_version = pending_version + + +class TfvcChangesetRef(Model): + """TfvcChangesetRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: :class:`IdentityRef ` + :param changeset_id: + :type changeset_id: int + :param checked_in_by: + :type checked_in_by: :class:`IdentityRef ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None): + super(TfvcChangesetRef, self).__init__() + self._links = _links + self.author = author + self.changeset_id = changeset_id + self.checked_in_by = checked_in_by + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.url = url + + +class TfvcChangesetSearchCriteria(Model): + """TfvcChangesetSearchCriteria. + + :param author: Alias or display name of user who made the changes + :type author: str + :param follow_renames: Whether or not to follow renames for the given item being queried + :type follow_renames: bool + :param from_date: If provided, only include changesets created after this date (string) Think of a better name for this. + :type from_date: str + :param from_id: If provided, only include changesets after this changesetID + :type from_id: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_path: Path of item to search under + :type item_path: str + :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. + :type to_date: str + :param to_id: If provided, a version descriptor for the latest change list to include + :type to_id: int + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'follow_renames': {'key': 'followRenames', 'type': 'bool'}, + 'from_date': {'key': 'fromDate', 'type': 'str'}, + 'from_id': {'key': 'fromId', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'str'}, + 'to_id': {'key': 'toId', 'type': 'int'} + } + + def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): + super(TfvcChangesetSearchCriteria, self).__init__() + self.author = author + self.follow_renames = follow_renames + self.from_date = from_date + self.from_id = from_id + self.include_links = include_links + self.item_path = item_path + self.to_date = to_date + self.to_id = to_id + + +class TfvcChangesetsRequestData(Model): + """TfvcChangesetsRequestData. + + :param changeset_ids: + :type changeset_ids: list of int + :param comment_length: + :type comment_length: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + """ + + _attribute_map = { + 'changeset_ids': {'key': 'changesetIds', 'type': '[int]'}, + 'comment_length': {'key': 'commentLength', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'} + } + + def __init__(self, changeset_ids=None, comment_length=None, include_links=None): + super(TfvcChangesetsRequestData, self).__init__() + self.changeset_ids = changeset_ids + self.comment_length = comment_length + self.include_links = include_links + + +class TfvcItem(ItemModel): + """TfvcItem. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param change_date: + :type change_date: datetime + :param deletion_id: + :type deletion_id: int + :param hash_value: MD5 hash as a base 64 string, applies to files only. + :type hash_value: str + :param is_branch: + :type is_branch: bool + :param is_pending_change: + :type is_pending_change: bool + :param size: The size of the file, if applicable. + :type size: long + :param version: + :type version: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, + 'deletion_id': {'key': 'deletionId', 'type': 'int'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'is_branch': {'key': 'isBranch', 'type': 'bool'}, + 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, + 'size': {'key': 'size', 'type': 'long'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): + super(TfvcItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.change_date = change_date + self.deletion_id = deletion_id + self.hash_value = hash_value + self.is_branch = is_branch + self.is_pending_change = is_pending_change + self.size = size + self.version = version + + +class TfvcItemDescriptor(Model): + """TfvcItemDescriptor. + + :param path: + :type path: str + :param recursion_level: + :type recursion_level: object + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, path=None, recursion_level=None, version=None, version_option=None, version_type=None): + super(TfvcItemDescriptor, self).__init__() + self.path = path + self.recursion_level = recursion_level + self.version = version + self.version_option = version_option + self.version_type = version_type + + +class TfvcItemRequestData(Model): + """TfvcItemRequestData. + + :param include_content_metadata: If true, include metadata about the file type + :type include_content_metadata: bool + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_descriptors: + :type item_descriptors: list of :class:`TfvcItemDescriptor ` + """ + + _attribute_map = { + 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_descriptors': {'key': 'itemDescriptors', 'type': '[TfvcItemDescriptor]'} + } + + def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None): + super(TfvcItemRequestData, self).__init__() + self.include_content_metadata = include_content_metadata + self.include_links = include_links + self.item_descriptors = item_descriptors + + +class TfvcLabelRef(Model): + """TfvcLabelRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None): + super(TfvcLabelRef, self).__init__() + self._links = _links + self.description = description + self.id = id + self.label_scope = label_scope + self.modified_date = modified_date + self.name = name + self.owner = owner + self.url = url + + +class TfvcLabelRequestData(Model): + """TfvcLabelRequestData. + + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_label_filter: + :type item_label_filter: str + :param label_scope: + :type label_scope: str + :param max_item_count: + :type max_item_count: int + :param name: + :type name: str + :param owner: + :type owner: str + """ + + _attribute_map = { + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_label_filter': {'key': 'itemLabelFilter', 'type': 'str'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'max_item_count': {'key': 'maxItemCount', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_links=None, item_label_filter=None, label_scope=None, max_item_count=None, name=None, owner=None): + super(TfvcLabelRequestData, self).__init__() + self.include_links = include_links + self.item_label_filter = item_label_filter + self.label_scope = label_scope + self.max_item_count = max_item_count + self.name = name + self.owner = owner + + +class TfvcMergeSource(Model): + """TfvcMergeSource. + + :param is_rename: Indicates if this a rename source. If false, it is a merge source. + :type is_rename: bool + :param server_item: The server item of the merge source + :type server_item: str + :param version_from: Start of the version range + :type version_from: int + :param version_to: End of the version range + :type version_to: int + """ + + _attribute_map = { + 'is_rename': {'key': 'isRename', 'type': 'bool'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'version_from': {'key': 'versionFrom', 'type': 'int'}, + 'version_to': {'key': 'versionTo', 'type': 'int'} + } + + def __init__(self, is_rename=None, server_item=None, version_from=None, version_to=None): + super(TfvcMergeSource, self).__init__() + self.is_rename = is_rename + self.server_item = server_item + self.version_from = version_from + self.version_to = version_to + + +class TfvcPolicyFailureInfo(Model): + """TfvcPolicyFailureInfo. + + :param message: + :type message: str + :param policy_name: + :type policy_name: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'} + } + + def __init__(self, message=None, policy_name=None): + super(TfvcPolicyFailureInfo, self).__init__() + self.message = message + self.policy_name = policy_name + + +class TfvcPolicyOverrideInfo(Model): + """TfvcPolicyOverrideInfo. + + :param comment: + :type comment: str + :param policy_failures: + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'policy_failures': {'key': 'policyFailures', 'type': '[TfvcPolicyFailureInfo]'} + } + + def __init__(self, comment=None, policy_failures=None): + super(TfvcPolicyOverrideInfo, self).__init__() + self.comment = comment + self.policy_failures = policy_failures + + +class TfvcShallowBranchRef(Model): + """TfvcShallowBranchRef. + + :param path: + :type path: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, path=None): + super(TfvcShallowBranchRef, self).__init__() + self.path = path + + +class TfvcShelvesetRef(Model): + """TfvcShelvesetRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None): + super(TfvcShelvesetRef, self).__init__() + self._links = _links + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.id = id + self.name = name + self.owner = owner + self.url = url + + +class TfvcShelvesetRequestData(Model): + """TfvcShelvesetRequestData. + + :param include_details: Whether to include policyOverride and notes Only applies when requesting a single deep shelveset + :type include_details: bool + :param include_links: Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset. + :type include_links: bool + :param include_work_items: Whether to include workItems + :type include_work_items: bool + :param max_change_count: Max number of changes to include + :type max_change_count: int + :param max_comment_length: Max length of comment + :type max_comment_length: int + :param name: Shelveset's name + :type name: str + :param owner: Owner's ID. Could be a name or a guid. + :type owner: str + """ + + _attribute_map = { + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, + 'max_change_count': {'key': 'maxChangeCount', 'type': 'int'}, + 'max_comment_length': {'key': 'maxCommentLength', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_details=None, include_links=None, include_work_items=None, max_change_count=None, max_comment_length=None, name=None, owner=None): + super(TfvcShelvesetRequestData, self).__init__() + self.include_details = include_details + self.include_links = include_links + self.include_work_items = include_work_items + self.max_change_count = max_change_count + self.max_comment_length = max_comment_length + self.name = name + self.owner = owner + + +class TfvcVersionDescriptor(Model): + """TfvcVersionDescriptor. + + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_option=None, version_type=None): + super(TfvcVersionDescriptor, self).__init__() + self.version = version + self.version_option = version_option + self.version_type = version_type + + +class VersionControlProjectInfo(Model): + """VersionControlProjectInfo. + + :param default_source_control_type: + :type default_source_control_type: object + :param project: + :type project: :class:`TeamProjectReference ` + :param supports_git: + :type supports_git: bool + :param supports_tFVC: + :type supports_tFVC: bool + """ + + _attribute_map = { + 'default_source_control_type': {'key': 'defaultSourceControlType', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'supports_git': {'key': 'supportsGit', 'type': 'bool'}, + 'supports_tFVC': {'key': 'supportsTFVC', 'type': 'bool'} + } + + def __init__(self, default_source_control_type=None, project=None, supports_git=None, supports_tFVC=None): + super(VersionControlProjectInfo, self).__init__() + self.default_source_control_type = default_source_control_type + self.project = project + self.supports_git = supports_git + self.supports_tFVC = supports_tFVC + + +class VstsInfo(Model): + """VstsInfo. + + :param collection: + :type collection: :class:`TeamProjectCollectionReference ` + :param repository: + :type repository: :class:`GitRepository ` + :param server_url: + :type server_url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'server_url': {'key': 'serverUrl', 'type': 'str'} + } + + def __init__(self, collection=None, repository=None, server_url=None): + super(VstsInfo, self).__init__() + self.collection = collection + self.repository = repository + self.server_url = server_url + + +class TfvcBranchRef(TfvcShallowBranchRef): + """TfvcBranchRef. + + :param path: + :type path: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_date: + :type created_date: datetime + :param description: + :type description: str + :param is_deleted: + :type is_deleted: bool + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None): + super(TfvcBranchRef, self).__init__(path=path) + self._links = _links + self.created_date = created_date + self.description = description + self.is_deleted = is_deleted + self.owner = owner + self.url = url + + +class TfvcChangeset(TfvcChangesetRef): + """TfvcChangeset. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: :class:`IdentityRef ` + :param changeset_id: + :type changeset_id: int + :param checked_in_by: + :type checked_in_by: :class:`IdentityRef ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param url: + :type url: str + :param account_id: + :type account_id: str + :param changes: + :type changes: list of :class:`TfvcChange ` + :param checkin_notes: + :type checkin_notes: list of :class:`CheckinNote ` + :param collection_id: + :type collection_id: str + :param has_more_changes: + :type has_more_changes: bool + :param policy_override: + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param team_project_ids: + :type team_project_ids: list of str + :param work_items: + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'}, + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'checkin_notes': {'key': 'checkinNotes', 'type': '[CheckinNote]'}, + 'collection_id': {'key': 'collectionId', 'type': 'str'}, + 'has_more_changes': {'key': 'hasMoreChanges', 'type': 'bool'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'team_project_ids': {'key': 'teamProjectIds', 'type': '[str]'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None, account_id=None, changes=None, checkin_notes=None, collection_id=None, has_more_changes=None, policy_override=None, team_project_ids=None, work_items=None): + super(TfvcChangeset, self).__init__(_links=_links, author=author, changeset_id=changeset_id, checked_in_by=checked_in_by, comment=comment, comment_truncated=comment_truncated, created_date=created_date, url=url) + self.account_id = account_id + self.changes = changes + self.checkin_notes = checkin_notes + self.collection_id = collection_id + self.has_more_changes = has_more_changes + self.policy_override = policy_override + self.team_project_ids = team_project_ids + self.work_items = work_items + + +class TfvcLabel(TfvcLabelRef): + """TfvcLabel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param items: + :type items: list of :class:`TfvcItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[TfvcItem]'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None, items=None): + super(TfvcLabel, self).__init__(_links=_links, description=description, id=id, label_scope=label_scope, modified_date=modified_date, name=name, owner=owner, url=url) + self.items = items + + +class TfvcShelveset(TfvcShelvesetRef): + """TfvcShelveset. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param changes: + :type changes: list of :class:`TfvcChange ` + :param notes: + :type notes: list of :class:`CheckinNote ` + :param policy_override: + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param work_items: + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'notes': {'key': 'notes', 'type': '[CheckinNote]'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None, changes=None, notes=None, policy_override=None, work_items=None): + super(TfvcShelveset, self).__init__(_links=_links, comment=comment, comment_truncated=comment_truncated, created_date=created_date, id=id, name=name, owner=owner, url=url) + self.changes = changes + self.notes = notes + self.policy_override = policy_override + self.work_items = work_items + + +class TfvcBranch(TfvcBranchRef): + """TfvcBranch. + + :param path: + :type path: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_date: + :type created_date: datetime + :param description: + :type description: str + :param is_deleted: + :type is_deleted: bool + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param children: + :type children: list of :class:`TfvcBranch ` + :param mappings: + :type mappings: list of :class:`TfvcBranchMapping ` + :param parent: + :type parent: :class:`TfvcShallowBranchRef ` + :param related_branches: + :type related_branches: list of :class:`TfvcShallowBranchRef ` + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TfvcBranch]'}, + 'mappings': {'key': 'mappings', 'type': '[TfvcBranchMapping]'}, + 'parent': {'key': 'parent', 'type': 'TfvcShallowBranchRef'}, + 'related_branches': {'key': 'relatedBranches', 'type': '[TfvcShallowBranchRef]'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None, children=None, mappings=None, parent=None, related_branches=None): + super(TfvcBranch, self).__init__(path=path, _links=_links, created_date=created_date, description=description, is_deleted=is_deleted, owner=owner, url=url) + self.children = children + self.mappings = mappings + self.parent = parent + self.related_branches = related_branches + + +__all__ = [ + 'AssociatedWorkItem', + 'Change', + 'CheckinNote', + 'FileContentMetadata', + 'GitRepository', + 'GitRepositoryRef', + 'IdentityRef', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'TfvcBranchMapping', + 'TfvcChange', + 'TfvcChangesetRef', + 'TfvcChangesetSearchCriteria', + 'TfvcChangesetsRequestData', + 'TfvcItem', + 'TfvcItemDescriptor', + 'TfvcItemRequestData', + 'TfvcLabelRef', + 'TfvcLabelRequestData', + 'TfvcMergeSource', + 'TfvcPolicyFailureInfo', + 'TfvcPolicyOverrideInfo', + 'TfvcShallowBranchRef', + 'TfvcShelvesetRef', + 'TfvcShelvesetRequestData', + 'TfvcVersionDescriptor', + 'VersionControlProjectInfo', + 'VstsInfo', + 'TfvcBranchRef', + 'TfvcChangeset', + 'TfvcLabel', + 'TfvcShelveset', + 'TfvcBranch', +] diff --git a/vsts/vsts/tfvc/v4_0/tfvc_client.py b/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py similarity index 99% rename from vsts/vsts/tfvc/v4_0/tfvc_client.py rename to azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py index e6d410dc..d3ca9ae0 100644 --- a/vsts/vsts/tfvc/v4_0/tfvc_client.py +++ b/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TfvcClient(VssClient): +class TfvcClient(Client): """Tfvc :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/wiki/__init__.py b/azure-devops/azure/devops/v4_0/wiki/__init__.py new file mode 100644 index 00000000..7b995c92 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/wiki/__init__.py @@ -0,0 +1,36 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Change', + 'FileContentMetadata', + 'GitCommitRef', + 'GitItem', + 'GitPush', + 'GitPushRef', + 'GitRefUpdate', + 'GitRepository', + 'GitRepositoryRef', + 'GitStatus', + 'GitStatusContext', + 'GitTemplate', + 'GitUserDate', + 'GitVersionDescriptor', + 'ItemContent', + 'ItemModel', + 'WikiAttachment', + 'WikiAttachmentChange', + 'WikiAttachmentResponse', + 'WikiChange', + 'WikiPage', + 'WikiPageChange', + 'WikiRepository', + 'WikiUpdate', +] diff --git a/azure-devops/azure/devops/v4_0/wiki/models.py b/azure-devops/azure/devops/v4_0/wiki/models.py new file mode 100644 index 00000000..99a4920b --- /dev/null +++ b/azure-devops/azure/devops/v4_0/wiki/models.py @@ -0,0 +1,801 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Change(Model): + """Change. + + :param change_type: + :type change_type: object + :param item: + :type item: :class:`GitItem ` + :param new_content: + :type new_content: :class:`ItemContent ` + :param source_server_item: + :type source_server_item: str + :param url: + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'GitItem'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link + + +class GitCommitRef(Model): + """GitCommitRef. + + :param _links: + :type _links: ReferenceLinks + :param author: + :type author: :class:`GitUserDate ` + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param commit_id: + :type commit_id: str + :param committer: + :type committer: :class:`GitUserDate ` + :param parents: + :type parents: list of str + :param remote_url: + :type remote_url: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + :param work_items: + :type work_items: list of ResourceRef + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'GitUserDate'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'committer': {'key': 'committer', 'type': 'GitUserDate'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} + } + + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): + super(GitCommitRef, self).__init__() + self._links = _links + self.author = author + self.change_counts = change_counts + self.changes = changes + self.comment = comment + self.comment_truncated = comment_truncated + self.commit_id = commit_id + self.committer = committer + self.parents = parents + self.remote_url = remote_url + self.statuses = statuses + self.url = url + self.work_items = work_items + + +class GitPushRef(Model): + """GitPushRef. + + :param _links: + :type _links: ReferenceLinks + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: IdentityRef + :param push_id: + :type push_id: int + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): + super(GitPushRef, self).__init__() + self._links = _links + self.date = date + self.push_correlation_id = push_correlation_id + self.pushed_by = pushed_by + self.push_id = push_id + self.url = url + + +class GitRefUpdate(Model): + """GitRefUpdate. + + :param is_locked: + :type is_locked: bool + :param name: + :type name: str + :param new_object_id: + :type new_object_id: str + :param old_object_id: + :type old_object_id: str + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, + 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): + super(GitRefUpdate, self).__init__() + self.is_locked = is_locked + self.name = name + self.new_object_id = new_object_id + self.old_object_id = old_object_id + self.repository_id = repository_id + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: ReferenceLinks + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.url = url + self.valid_remote_urls = valid_remote_urls + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: TeamProjectCollectionReference + :param id: + :type id: str + :param name: + :type name: str + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.name = name + self.project = project + self.remote_url = remote_url + self.url = url + + +class GitStatus(Model): + """GitStatus. + + :param _links: Reference links. + :type _links: ReferenceLinks + :param context: Context of the status. + :type context: :class:`GitStatusContext ` + :param created_by: Identity that created the status. + :type created_by: IdentityRef + :param creation_date: Creation date and time of the status. + :type creation_date: datetime + :param description: Status description. Typically describes current state of the status. + :type description: str + :param id: Status identifier. + :type id: int + :param state: State of the status. + :type state: object + :param target_url: URL with status details. + :type target_url: str + :param updated_date: Last update date and time of the status. + :type updated_date: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'context': {'key': 'context', 'type': 'GitStatusContext'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'target_url': {'key': 'targetUrl', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): + super(GitStatus, self).__init__() + self._links = _links + self.context = context + self.created_by = created_by + self.creation_date = creation_date + self.description = description + self.id = id + self.state = state + self.target_url = target_url + self.updated_date = updated_date + + +class GitStatusContext(Model): + """GitStatusContext. + + :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. + :type genre: str + :param name: Name identifier of the status, cannot be null or empty. + :type name: str + """ + + _attribute_map = { + 'genre': {'key': 'genre', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, genre=None, name=None): + super(GitStatusContext, self).__init__() + self.genre = genre + self.name = name + + +class GitTemplate(Model): + """GitTemplate. + + :param name: Name of the Template + :type name: str + :param type: Type of the Template + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, name=None, type=None): + super(GitTemplate, self).__init__() + self.name = name + self.type = type + + +class GitUserDate(Model): + """GitUserDate. + + :param date: + :type date: datetime + :param email: + :type email: str + :param name: + :type name: str + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'email': {'key': 'email', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, date=None, email=None, name=None): + super(GitUserDate, self).__init__() + self.date = date + self.email = email + self.name = name + + +class GitVersionDescriptor(Model): + """GitVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None): + super(GitVersionDescriptor, self).__init__() + self.version = version + self.version_options = version_options + self.version_type = version_type + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: ReferenceLinks + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url + + +class WikiAttachment(Model): + """WikiAttachment. + + :param name: Name of the wiki attachment file. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(WikiAttachment, self).__init__() + self.name = name + + +class WikiAttachmentResponse(Model): + """WikiAttachmentResponse. + + :param attachment: Defines properties for wiki attachment file. + :type attachment: :class:`WikiAttachment ` + :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the head commit of wiki repository after the corresponding attachments API call. + :type eTag: list of str + """ + + _attribute_map = { + 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, attachment=None, eTag=None): + super(WikiAttachmentResponse, self).__init__() + self.attachment = attachment + self.eTag = eTag + + +class WikiChange(Model): + """WikiChange. + + :param change_type: ChangeType associated with the item in this change. + :type change_type: object + :param content: New content of the item. + :type content: str + :param item: Item that is subject to this change. + :type item: object + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'str'}, + 'item': {'key': 'item', 'type': 'object'} + } + + def __init__(self, change_type=None, content=None, item=None): + super(WikiChange, self).__init__() + self.change_type = change_type + self.content = content + self.item = item + + +class WikiPage(Model): + """WikiPage. + + :param depth: The depth in terms of level in the hierarchy. + :type depth: int + :param git_item_path: The path of the item corresponding to the wiki page stored in the backing Git repository. This is populated only in the response of the wiki pages GET API. + :type git_item_path: str + :param is_non_conformant: Flag to denote if a page is non-conforming, i.e. 1) if the name doesn't match our norms. 2) if the page does not have a valid entry in the appropriate order file. + :type is_non_conformant: bool + :param is_parent_page: Returns true if this page has child pages under its path. + :type is_parent_page: bool + :param order: Order associated with the page with respect to other pages in the same hierarchy level. + :type order: int + :param path: Path of the wiki page. + :type path: str + """ + + _attribute_map = { + 'depth': {'key': 'depth', 'type': 'int'}, + 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, + 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, + 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, depth=None, git_item_path=None, is_non_conformant=None, is_parent_page=None, order=None, path=None): + super(WikiPage, self).__init__() + self.depth = depth + self.git_item_path = git_item_path + self.is_non_conformant = is_non_conformant + self.is_parent_page = is_parent_page + self.order = order + self.path = path + + +class WikiPageChange(WikiChange): + """WikiPageChange. + + :param original_order: Original order of the page to be provided in case of reorder or rename. + :type original_order: int + :param original_path: Original path of the page to be provided in case of rename. + :type original_path: str + """ + + _attribute_map = { + 'original_order': {'key': 'originalOrder', 'type': 'int'}, + 'original_path': {'key': 'originalPath', 'type': 'str'} + } + + def __init__(self, original_order=None, original_path=None): + super(WikiPageChange, self).__init__() + self.original_order = original_order + self.original_path = original_path + + +class WikiRepository(Model): + """WikiRepository. + + :param head_commit: The head commit associated with the git repository backing up the wiki. + :type head_commit: str + :param id: The ID of the wiki which is same as the ID of the Git repository that it is backed by. + :type id: str + :param repository: The git repository that backs up the wiki. + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + 'head_commit': {'key': 'headCommit', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, head_commit=None, id=None, repository=None): + super(WikiRepository, self).__init__() + self.head_commit = head_commit + self.id = id + self.repository = repository + + +class WikiUpdate(Model): + """WikiUpdate. + + :param associated_git_push: Git push object associated with this wiki update object. This is populated only in the response of the wiki updates POST API. + :type associated_git_push: :class:`GitPush ` + :param attachment_changes: List of attachment change objects that is to be associated with this update. + :type attachment_changes: list of :class:`WikiAttachmentChange ` + :param comment: Comment to be associated with this update. + :type comment: str + :param head_commit: Headcommit of the of the repository. + :type head_commit: str + :param page_change: Page change object associated with this update. + :type page_change: :class:`WikiPageChange ` + """ + + _attribute_map = { + 'associated_git_push': {'key': 'associatedGitPush', 'type': 'GitPush'}, + 'attachment_changes': {'key': 'attachmentChanges', 'type': '[WikiAttachmentChange]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'head_commit': {'key': 'headCommit', 'type': 'str'}, + 'page_change': {'key': 'pageChange', 'type': 'WikiPageChange'} + } + + def __init__(self, associated_git_push=None, attachment_changes=None, comment=None, head_commit=None, page_change=None): + super(WikiUpdate, self).__init__() + self.associated_git_push = associated_git_push + self.attachment_changes = attachment_changes + self.comment = comment + self.head_commit = head_commit + self.page_change = page_change + + +class GitItem(ItemModel): + """GitItem. + + :param _links: + :type _links: ReferenceLinks + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param commit_id: SHA1 of commit item was fetched at + :type commit_id: str + :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) + :type git_object_type: object + :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached + :type latest_processed_change: :class:`GitCommitRef ` + :param object_id: Git object id + :type object_id: str + :param original_object_id: Git object id + :type original_object_id: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, + 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} + } + + def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): + super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.commit_id = commit_id + self.git_object_type = git_object_type + self.latest_processed_change = latest_processed_change + self.object_id = object_id + self.original_object_id = original_object_id + + +class GitPush(GitPushRef): + """GitPush. + + :param _links: + :type _links: ReferenceLinks + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: IdentityRef + :param push_id: + :type push_id: int + :param url: + :type url: str + :param commits: + :type commits: list of :class:`GitCommitRef ` + :param ref_updates: + :type ref_updates: list of :class:`GitRefUpdate ` + :param repository: + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): + super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) + self.commits = commits + self.ref_updates = ref_updates + self.repository = repository + + +class WikiAttachmentChange(WikiChange): + """WikiAttachmentChange. + + :param overwrite_content_if_existing: Defines whether the content of an existing attachment is to be overwriten or not. If true, the content of the attachment is overwritten on an existing attachment. If attachment non-existing, new attachment is created. If false, exception is thrown if an attachment with same name exists. + :type overwrite_content_if_existing: bool + """ + + _attribute_map = { + 'overwrite_content_if_existing': {'key': 'overwriteContentIfExisting', 'type': 'bool'} + } + + def __init__(self, overwrite_content_if_existing=None): + super(WikiAttachmentChange, self).__init__() + self.overwrite_content_if_existing = overwrite_content_if_existing + + +__all__ = [ + 'Change', + 'FileContentMetadata', + 'GitCommitRef', + 'GitPushRef', + 'GitRefUpdate', + 'GitRepository', + 'GitRepositoryRef', + 'GitStatus', + 'GitStatusContext', + 'GitTemplate', + 'GitUserDate', + 'GitVersionDescriptor', + 'ItemContent', + 'ItemModel', + 'WikiAttachment', + 'WikiAttachmentResponse', + 'WikiChange', + 'WikiPage', + 'WikiPageChange', + 'WikiRepository', + 'WikiUpdate', + 'GitItem', + 'GitPush', + 'WikiAttachmentChange', +] diff --git a/vsts/vsts/wiki/v4_0/wiki_client.py b/azure-devops/azure/devops/v4_0/wiki/wiki_client.py similarity index 99% rename from vsts/vsts/wiki/v4_0/wiki_client.py rename to azure-devops/azure/devops/v4_0/wiki/wiki_client.py index 6c3e2cac..c71a120a 100644 --- a/vsts/vsts/wiki/v4_0/wiki_client.py +++ b/azure-devops/azure/devops/v4_0/wiki/wiki_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WikiClient(VssClient): +class WikiClient(Client): """Wiki :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/work/__init__.py b/azure-devops/azure/devops/v4_0/work/__init__.py new file mode 100644 index 00000000..6c6f4306 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work/__init__.py @@ -0,0 +1,70 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Activity', + 'BacklogColumn', + 'BacklogConfiguration', + 'BacklogFields', + 'BacklogLevel', + 'BacklogLevelConfiguration', + 'Board', + 'BoardCardRuleSettings', + 'BoardCardSettings', + 'BoardChart', + 'BoardChartReference', + 'BoardColumn', + 'BoardFields', + 'BoardFilterSettings', + 'BoardReference', + 'BoardRow', + 'BoardSuggestedValue', + 'BoardUserSettings', + 'CapacityPatch', + 'CategoryConfiguration', + 'CreatePlan', + 'DateRange', + 'DeliveryViewData', + 'FieldReference', + 'FilterClause', + 'FilterGroup', + 'FilterModel', + 'IdentityRef', + 'Member', + 'ParentChildWIMap', + 'Plan', + 'PlanViewData', + 'ProcessConfiguration', + 'ReferenceLinks', + 'Rule', + 'TeamContext', + 'TeamFieldValue', + 'TeamFieldValues', + 'TeamFieldValuesPatch', + 'TeamIterationAttributes', + 'TeamMemberCapacity', + 'TeamSetting', + 'TeamSettingsDataContractBase', + 'TeamSettingsDaysOff', + 'TeamSettingsDaysOffPatch', + 'TeamSettingsIteration', + 'TeamSettingsPatch', + 'TimelineCriteriaStatus', + 'TimelineIterationStatus', + 'TimelineTeamData', + 'TimelineTeamIteration', + 'TimelineTeamStatus', + 'UpdatePlan', + 'WorkItemColor', + 'WorkItemFieldReference', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeReference', + 'WorkItemTypeStateInfo', +] diff --git a/azure-devops/azure/devops/v4_0/work/models.py b/azure-devops/azure/devops/v4_0/work/models.py new file mode 100644 index 00000000..909d8d76 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work/models.py @@ -0,0 +1,1673 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Activity(Model): + """Activity. + + :param capacity_per_day: + :type capacity_per_day: int + :param name: + :type name: str + """ + + _attribute_map = { + 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, capacity_per_day=None, name=None): + super(Activity, self).__init__() + self.capacity_per_day = capacity_per_day + self.name = name + + +class BacklogColumn(Model): + """BacklogColumn. + + :param column_field_reference: + :type column_field_reference: :class:`WorkItemFieldReference ` + :param width: + :type width: int + """ + + _attribute_map = { + 'column_field_reference': {'key': 'columnFieldReference', 'type': 'WorkItemFieldReference'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, column_field_reference=None, width=None): + super(BacklogColumn, self).__init__() + self.column_field_reference = column_field_reference + self.width = width + + +class BacklogConfiguration(Model): + """BacklogConfiguration. + + :param backlog_fields: Behavior/type field mapping + :type backlog_fields: :class:`BacklogFields ` + :param bugs_behavior: Bugs behavior + :type bugs_behavior: object + :param hidden_backlogs: Hidden Backlog + :type hidden_backlogs: list of str + :param portfolio_backlogs: Portfolio backlog descriptors + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :param requirement_backlog: Requirement backlog + :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :param task_backlog: Task backlog + :type task_backlog: :class:`BacklogLevelConfiguration ` + :param url: + :type url: str + :param work_item_type_mapped_states: Mapped states for work item types + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + """ + + _attribute_map = { + 'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'} + } + + def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): + super(BacklogConfiguration, self).__init__() + self.backlog_fields = backlog_fields + self.bugs_behavior = bugs_behavior + self.hidden_backlogs = hidden_backlogs + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.url = url + self.work_item_type_mapped_states = work_item_type_mapped_states + + +class BacklogFields(Model): + """BacklogFields. + + :param type_fields: Field Type (e.g. Order, Activity) to Field Reference Name map + :type type_fields: dict + """ + + _attribute_map = { + 'type_fields': {'key': 'typeFields', 'type': '{str}'} + } + + def __init__(self, type_fields=None): + super(BacklogFields, self).__init__() + self.type_fields = type_fields + + +class BacklogLevel(Model): + """BacklogLevel. + + :param category_reference_name: Reference name of the corresponding WIT category + :type category_reference_name: str + :param plural_name: Plural name for the backlog level + :type plural_name: str + :param work_item_states: Collection of work item states that are included in the plan. The server will filter to only these work item types. + :type work_item_states: list of str + :param work_item_types: Collection of valid workitem type names for the given backlog level + :type work_item_types: list of str + """ + + _attribute_map = { + 'category_reference_name': {'key': 'categoryReferenceName', 'type': 'str'}, + 'plural_name': {'key': 'pluralName', 'type': 'str'}, + 'work_item_states': {'key': 'workItemStates', 'type': '[str]'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[str]'} + } + + def __init__(self, category_reference_name=None, plural_name=None, work_item_states=None, work_item_types=None): + super(BacklogLevel, self).__init__() + self.category_reference_name = category_reference_name + self.plural_name = plural_name + self.work_item_states = work_item_states + self.work_item_types = work_item_types + + +class BacklogLevelConfiguration(Model): + """BacklogLevelConfiguration. + + :param add_panel_fields: List of fields to include in Add Panel + :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :param color: Color for the backlog level + :type color: str + :param column_fields: Default list of columns for the backlog + :type column_fields: list of :class:`BacklogColumn ` + :param default_work_item_type: Defaulst Work Item Type for the backlog + :type default_work_item_type: :class:`WorkItemTypeReference ` + :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) + :type id: str + :param name: Backlog Name + :type name: str + :param rank: Backlog Rank (Taskbacklog is 0) + :type rank: int + :param work_item_count_limit: Max number of work items to show in the given backlog + :type work_item_count_limit: int + :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'add_panel_fields': {'key': 'addPanelFields', 'type': '[WorkItemFieldReference]'}, + 'color': {'key': 'color', 'type': 'str'}, + 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, + 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, name=None, rank=None, work_item_count_limit=None, work_item_types=None): + super(BacklogLevelConfiguration, self).__init__() + self.add_panel_fields = add_panel_fields + self.color = color + self.column_fields = column_fields + self.default_work_item_type = default_work_item_type + self.id = id + self.name = name + self.rank = rank + self.work_item_count_limit = work_item_count_limit + self.work_item_types = work_item_types + + +class BoardCardRuleSettings(Model): + """BoardCardRuleSettings. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param rules: + :type rules: dict + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'rules': {'key': 'rules', 'type': '{[Rule]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, rules=None, url=None): + super(BoardCardRuleSettings, self).__init__() + self._links = _links + self.rules = rules + self.url = url + + +class BoardCardSettings(Model): + """BoardCardSettings. + + :param cards: + :type cards: dict + """ + + _attribute_map = { + 'cards': {'key': 'cards', 'type': '{[FieldSetting]}'} + } + + def __init__(self, cards=None): + super(BoardCardSettings, self).__init__() + self.cards = cards + + +class BoardChartReference(Model): + """BoardChartReference. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(BoardChartReference, self).__init__() + self.name = name + self.url = url + + +class BoardColumn(Model): + """BoardColumn. + + :param column_type: + :type column_type: object + :param description: + :type description: str + :param id: + :type id: str + :param is_split: + :type is_split: bool + :param item_limit: + :type item_limit: int + :param name: + :type name: str + :param state_mappings: + :type state_mappings: dict + """ + + _attribute_map = { + 'column_type': {'key': 'columnType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_split': {'key': 'isSplit', 'type': 'bool'}, + 'item_limit': {'key': 'itemLimit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'state_mappings': {'key': 'stateMappings', 'type': '{str}'} + } + + def __init__(self, column_type=None, description=None, id=None, is_split=None, item_limit=None, name=None, state_mappings=None): + super(BoardColumn, self).__init__() + self.column_type = column_type + self.description = description + self.id = id + self.is_split = is_split + self.item_limit = item_limit + self.name = name + self.state_mappings = state_mappings + + +class BoardFields(Model): + """BoardFields. + + :param column_field: + :type column_field: :class:`FieldReference ` + :param done_field: + :type done_field: :class:`FieldReference ` + :param row_field: + :type row_field: :class:`FieldReference ` + """ + + _attribute_map = { + 'column_field': {'key': 'columnField', 'type': 'FieldReference'}, + 'done_field': {'key': 'doneField', 'type': 'FieldReference'}, + 'row_field': {'key': 'rowField', 'type': 'FieldReference'} + } + + def __init__(self, column_field=None, done_field=None, row_field=None): + super(BoardFields, self).__init__() + self.column_field = column_field + self.done_field = done_field + self.row_field = row_field + + +class BoardFilterSettings(Model): + """BoardFilterSettings. + + :param criteria: + :type criteria: :class:`FilterModel ` + :param parent_work_item_ids: + :type parent_work_item_ids: list of int + :param query_text: + :type query_text: str + """ + + _attribute_map = { + 'criteria': {'key': 'criteria', 'type': 'FilterModel'}, + 'parent_work_item_ids': {'key': 'parentWorkItemIds', 'type': '[int]'}, + 'query_text': {'key': 'queryText', 'type': 'str'} + } + + def __init__(self, criteria=None, parent_work_item_ids=None, query_text=None): + super(BoardFilterSettings, self).__init__() + self.criteria = criteria + self.parent_work_item_ids = parent_work_item_ids + self.query_text = query_text + + +class BoardReference(Model): + """BoardReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(BoardReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class BoardRow(Model): + """BoardRow. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(BoardRow, self).__init__() + self.id = id + self.name = name + + +class BoardSuggestedValue(Model): + """BoardSuggestedValue. + + :param name: + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(BoardSuggestedValue, self).__init__() + self.name = name + + +class BoardUserSettings(Model): + """BoardUserSettings. + + :param auto_refresh_state: + :type auto_refresh_state: bool + """ + + _attribute_map = { + 'auto_refresh_state': {'key': 'autoRefreshState', 'type': 'bool'} + } + + def __init__(self, auto_refresh_state=None): + super(BoardUserSettings, self).__init__() + self.auto_refresh_state = auto_refresh_state + + +class CapacityPatch(Model): + """CapacityPatch. + + :param activities: + :type activities: list of :class:`Activity ` + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, activities=None, days_off=None): + super(CapacityPatch, self).__init__() + self.activities = activities + self.days_off = days_off + + +class CategoryConfiguration(Model): + """CategoryConfiguration. + + :param name: Name + :type name: str + :param reference_name: Category Reference Name + :type reference_name: str + :param work_item_types: Work item types for the backlog category + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, name=None, reference_name=None, work_item_types=None): + super(CategoryConfiguration, self).__init__() + self.name = name + self.reference_name = reference_name + self.work_item_types = work_item_types + + +class CreatePlan(Model): + """CreatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param type: Type of plan to create. + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, type=None): + super(CreatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.type = type + + +class DateRange(Model): + """DateRange. + + :param end: End of the date range. + :type end: datetime + :param start: Start of the date range. + :type start: datetime + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'iso-8601'}, + 'start': {'key': 'start', 'type': 'iso-8601'} + } + + def __init__(self, end=None, start=None): + super(DateRange, self).__init__() + self.end = end + self.start = start + + +class FieldReference(Model): + """FieldReference. + + :param reference_name: fieldRefName for the field + :type reference_name: str + :param url: Full http link to more information about the field + :type url: str + """ + + _attribute_map = { + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, reference_name=None, url=None): + super(FieldReference, self).__init__() + self.reference_name = reference_name + self.url = url + + +class FilterClause(Model): + """FilterClause. + + :param field_name: + :type field_name: str + :param index: + :type index: int + :param logical_operator: + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(FilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value + + +class FilterGroup(Model): + """FilterGroup. + + :param end: + :type end: int + :param level: + :type level: int + :param start: + :type start: int + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'int'}, + 'level': {'key': 'level', 'type': 'int'}, + 'start': {'key': 'start', 'type': 'int'} + } + + def __init__(self, end=None, level=None, start=None): + super(FilterGroup, self).__init__() + self.end = end + self.level = level + self.start = start + + +class FilterModel(Model): + """FilterModel. + + :param clauses: + :type clauses: list of :class:`FilterClause ` + :param groups: + :type groups: list of :class:`FilterGroup ` + :param max_group_level: + :type max_group_level: int + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, + 'groups': {'key': 'groups', 'type': '[FilterGroup]'}, + 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} + } + + def __init__(self, clauses=None, groups=None, max_group_level=None): + super(FilterModel, self).__init__() + self.clauses = clauses + self.groups = groups + self.max_group_level = max_group_level + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class Member(Model): + """Member. + + :param display_name: + :type display_name: str + :param id: + :type id: str + :param image_url: + :type image_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, image_url=None, unique_name=None, url=None): + super(Member, self).__init__() + self.display_name = display_name + self.id = id + self.image_url = image_url + self.unique_name = unique_name + self.url = url + + +class ParentChildWIMap(Model): + """ParentChildWIMap. + + :param child_work_item_ids: + :type child_work_item_ids: list of int + :param id: + :type id: int + :param title: + :type title: str + """ + + _attribute_map = { + 'child_work_item_ids': {'key': 'childWorkItemIds', 'type': '[int]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, child_work_item_ids=None, id=None, title=None): + super(ParentChildWIMap, self).__init__() + self.child_work_item_ids = child_work_item_ids + self.id = id + self.title = title + + +class Plan(Model): + """Plan. + + :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type created_by_identity: :class:`IdentityRef ` + :param created_date: Date when the plan was created + :type created_date: datetime + :param description: Description of the plan + :type description: str + :param id: Id of the plan + :type id: str + :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type modified_by_identity: :class:`IdentityRef ` + :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. + :type modified_date: datetime + :param name: Name of the plan + :type name: str + :param properties: The PlanPropertyCollection instance associated with the plan. These are dependent on the type of the plan. For example, DeliveryTimelineView, it would be of type DeliveryViewPropertyCollection. + :type properties: object + :param revision: Revision of the plan. Used to safeguard users from overwriting each other's changes. + :type revision: int + :param type: Type of the plan + :type type: object + :param url: The resource url to locate the plan via rest api + :type url: str + :param user_permissions: Bit flag indicating set of permissions a user has to the plan. + :type user_permissions: object + """ + + _attribute_map = { + 'created_by_identity': {'key': 'createdByIdentity', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by_identity': {'key': 'modifiedByIdentity', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_permissions': {'key': 'userPermissions', 'type': 'object'} + } + + def __init__(self, created_by_identity=None, created_date=None, description=None, id=None, modified_by_identity=None, modified_date=None, name=None, properties=None, revision=None, type=None, url=None, user_permissions=None): + super(Plan, self).__init__() + self.created_by_identity = created_by_identity + self.created_date = created_date + self.description = description + self.id = id + self.modified_by_identity = modified_by_identity + self.modified_date = modified_date + self.name = name + self.properties = properties + self.revision = revision + self.type = type + self.url = url + self.user_permissions = user_permissions + + +class PlanViewData(Model): + """PlanViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(PlanViewData, self).__init__() + self.id = id + self.revision = revision + + +class ProcessConfiguration(Model): + """ProcessConfiguration. + + :param bug_work_items: Details about bug work items + :type bug_work_items: :class:`CategoryConfiguration ` + :param portfolio_backlogs: Details about portfolio backlogs + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :param requirement_backlog: Details of requirement backlog + :type requirement_backlog: :class:`CategoryConfiguration ` + :param task_backlog: Details of task backlog + :type task_backlog: :class:`CategoryConfiguration ` + :param type_fields: Type fields for the process configuration + :type type_fields: dict + :param url: + :type url: str + """ + + _attribute_map = { + 'bug_work_items': {'key': 'bugWorkItems', 'type': 'CategoryConfiguration'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[CategoryConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'CategoryConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'CategoryConfiguration'}, + 'type_fields': {'key': 'typeFields', 'type': '{WorkItemFieldReference}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, bug_work_items=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, type_fields=None, url=None): + super(ProcessConfiguration, self).__init__() + self.bug_work_items = bug_work_items + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.type_fields = type_fields + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Rule(Model): + """Rule. + + :param clauses: + :type clauses: list of :class:`FilterClause ` + :param filter: + :type filter: str + :param is_enabled: + :type is_enabled: str + :param name: + :type name: str + :param settings: + :type settings: dict + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, + 'filter': {'key': 'filter', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'settings': {'key': 'settings', 'type': '{str}'} + } + + def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): + super(Rule, self).__init__() + self.clauses = clauses + self.filter = filter + self.is_enabled = is_enabled + self.name = name + self.settings = settings + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class TeamFieldValue(Model): + """TeamFieldValue. + + :param include_children: + :type include_children: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'include_children': {'key': 'includeChildren', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, include_children=None, value=None): + super(TeamFieldValue, self).__init__() + self.include_children = include_children + self.value = value + + +class TeamFieldValuesPatch(Model): + """TeamFieldValuesPatch. + + :param default_value: + :type default_value: str + :param values: + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, default_value=None, values=None): + super(TeamFieldValuesPatch, self).__init__() + self.default_value = default_value + self.values = values + + +class TeamIterationAttributes(Model): + """TeamIterationAttributes. + + :param finish_date: + :type finish_date: datetime + :param start_date: + :type start_date: datetime + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'} + } + + def __init__(self, finish_date=None, start_date=None): + super(TeamIterationAttributes, self).__init__() + self.finish_date = finish_date + self.start_date = start_date + + +class TeamSettingsDataContractBase(Model): + """TeamSettingsDataContractBase. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, url=None): + super(TeamSettingsDataContractBase, self).__init__() + self._links = _links + self.url = url + + +class TeamSettingsDaysOff(TeamSettingsDataContractBase): + """TeamSettingsDaysOff. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, _links=None, url=None, days_off=None): + super(TeamSettingsDaysOff, self).__init__(_links=_links, url=url) + self.days_off = days_off + + +class TeamSettingsDaysOffPatch(Model): + """TeamSettingsDaysOffPatch. + + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, days_off=None): + super(TeamSettingsDaysOffPatch, self).__init__() + self.days_off = days_off + + +class TeamSettingsIteration(TeamSettingsDataContractBase): + """TeamSettingsIteration. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param attributes: Attributes such as start and end date + :type attributes: :class:`TeamIterationAttributes ` + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param path: Relative path of the iteration + :type path: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'TeamIterationAttributes'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, _links=None, url=None, attributes=None, id=None, name=None, path=None): + super(TeamSettingsIteration, self).__init__(_links=_links, url=url) + self.attributes = attributes + self.id = id + self.name = name + self.path = path + + +class TeamSettingsPatch(Model): + """TeamSettingsPatch. + + :param backlog_iteration: + :type backlog_iteration: str + :param backlog_visibilities: + :type backlog_visibilities: dict + :param bugs_behavior: + :type bugs_behavior: object + :param default_iteration: + :type default_iteration: str + :param default_iteration_macro: + :type default_iteration_macro: str + :param working_days: + :type working_days: list of str + """ + + _attribute_map = { + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'str'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[object]'} + } + + def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSettingsPatch, self).__init__() + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days + + +class TimelineCriteriaStatus(Model): + """TimelineCriteriaStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineCriteriaStatus, self).__init__() + self.message = message + self.type = type + + +class TimelineIterationStatus(Model): + """TimelineIterationStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineIterationStatus, self).__init__() + self.message = message + self.type = type + + +class TimelineTeamData(Model): + """TimelineTeamData. + + :param backlog: Backlog matching the mapped backlog associated with this team. + :type backlog: :class:`BacklogLevel ` + :param field_reference_names: The field reference names of the work item data + :type field_reference_names: list of str + :param id: The id of the team + :type id: str + :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. + :type is_expanded: bool + :param iterations: The iteration data, including the work items, in the queried date range. + :type iterations: list of :class:`TimelineTeamIteration ` + :param name: The name of the team + :type name: str + :param order_by_field: The order by field name of this team + :type order_by_field: str + :param partially_paged_field_reference_names: The field reference names of the partially paged work items, such as ID, WorkItemType + :type partially_paged_field_reference_names: list of str + :param project_id: The project id the team belongs team + :type project_id: str + :param status: Status for this team. + :type status: :class:`TimelineTeamStatus ` + :param team_field_default_value: The team field default value + :type team_field_default_value: str + :param team_field_name: The team field name of this team + :type team_field_name: str + :param team_field_values: The team field values + :type team_field_values: list of :class:`TeamFieldValue ` + :param work_item_type_colors: Colors for the work item types. + :type work_item_type_colors: list of :class:`WorkItemColor ` + """ + + _attribute_map = { + 'backlog': {'key': 'backlog', 'type': 'BacklogLevel'}, + 'field_reference_names': {'key': 'fieldReferenceNames', 'type': '[str]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'iterations': {'key': 'iterations', 'type': '[TimelineTeamIteration]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order_by_field': {'key': 'orderByField', 'type': 'str'}, + 'partially_paged_field_reference_names': {'key': 'partiallyPagedFieldReferenceNames', 'type': '[str]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'TimelineTeamStatus'}, + 'team_field_default_value': {'key': 'teamFieldDefaultValue', 'type': 'str'}, + 'team_field_name': {'key': 'teamFieldName', 'type': 'str'}, + 'team_field_values': {'key': 'teamFieldValues', 'type': '[TeamFieldValue]'}, + 'work_item_type_colors': {'key': 'workItemTypeColors', 'type': '[WorkItemColor]'} + } + + def __init__(self, backlog=None, field_reference_names=None, id=None, is_expanded=None, iterations=None, name=None, order_by_field=None, partially_paged_field_reference_names=None, project_id=None, status=None, team_field_default_value=None, team_field_name=None, team_field_values=None, work_item_type_colors=None): + super(TimelineTeamData, self).__init__() + self.backlog = backlog + self.field_reference_names = field_reference_names + self.id = id + self.is_expanded = is_expanded + self.iterations = iterations + self.name = name + self.order_by_field = order_by_field + self.partially_paged_field_reference_names = partially_paged_field_reference_names + self.project_id = project_id + self.status = status + self.team_field_default_value = team_field_default_value + self.team_field_name = team_field_name + self.team_field_values = team_field_values + self.work_item_type_colors = work_item_type_colors + + +class TimelineTeamIteration(Model): + """TimelineTeamIteration. + + :param finish_date: The end date of the iteration + :type finish_date: datetime + :param name: The iteration name + :type name: str + :param partially_paged_work_items: All the partially paged workitems in this iteration. + :type partially_paged_work_items: list of [object] + :param path: The iteration path + :type path: str + :param start_date: The start date of the iteration + :type start_date: datetime + :param status: The status of this iteration + :type status: :class:`TimelineIterationStatus ` + :param work_items: The work items that have been paged in this iteration + :type work_items: list of [object] + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'partially_paged_work_items': {'key': 'partiallyPagedWorkItems', 'type': '[[object]]'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'TimelineIterationStatus'}, + 'work_items': {'key': 'workItems', 'type': '[[object]]'} + } + + def __init__(self, finish_date=None, name=None, partially_paged_work_items=None, path=None, start_date=None, status=None, work_items=None): + super(TimelineTeamIteration, self).__init__() + self.finish_date = finish_date + self.name = name + self.partially_paged_work_items = partially_paged_work_items + self.path = path + self.start_date = start_date + self.status = status + self.work_items = work_items + + +class TimelineTeamStatus(Model): + """TimelineTeamStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineTeamStatus, self).__init__() + self.message = message + self.type = type + + +class UpdatePlan(Model): + """UpdatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param revision: Revision of the plan that was updated - the value used here should match the one the server gave the client in the Plan. + :type revision: int + :param type: Type of the plan + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, revision=None, type=None): + super(UpdatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.revision = revision + self.type = type + + +class WorkItemColor(Model): + """WorkItemColor. + + :param icon: + :type icon: str + :param primary_color: + :type primary_color: str + :param work_item_type_name: + :type work_item_type_name: str + """ + + _attribute_map = { + 'icon': {'key': 'icon', 'type': 'str'}, + 'primary_color': {'key': 'primaryColor', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, icon=None, primary_color=None, work_item_type_name=None): + super(WorkItemColor, self).__init__() + self.icon = icon + self.primary_color = primary_color + self.work_item_type_name = work_item_type_name + + +class WorkItemFieldReference(Model): + """WorkItemFieldReference. + + :param name: + :type name: str + :param reference_name: + :type reference_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(WorkItemFieldReference, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url + + +class WorkItemTrackingResourceReference(Model): + """WorkItemTrackingResourceReference. + + :param url: + :type url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, url=None): + super(WorkItemTrackingResourceReference, self).__init__() + self.url = url + + +class WorkItemTypeReference(WorkItemTrackingResourceReference): + """WorkItemTypeReference. + + :param url: + :type url: str + :param name: + :type name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, url=None, name=None): + super(WorkItemTypeReference, self).__init__(url=url) + self.name = name + + +class WorkItemTypeStateInfo(Model): + """WorkItemTypeStateInfo. + + :param states: State name to state category map + :type states: dict + :param work_item_type_name: Work Item type name + :type work_item_type_name: str + """ + + _attribute_map = { + 'states': {'key': 'states', 'type': '{str}'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, states=None, work_item_type_name=None): + super(WorkItemTypeStateInfo, self).__init__() + self.states = states + self.work_item_type_name = work_item_type_name + + +class Board(BoardReference): + """Board. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_mappings: + :type allowed_mappings: dict + :param can_edit: + :type can_edit: bool + :param columns: + :type columns: list of :class:`BoardColumn ` + :param fields: + :type fields: :class:`BoardFields ` + :param is_valid: + :type is_valid: bool + :param revision: + :type revision: int + :param rows: + :type rows: list of :class:`BoardRow ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_mappings': {'key': 'allowedMappings', 'type': '{{[str]}}'}, + 'can_edit': {'key': 'canEdit', 'type': 'bool'}, + 'columns': {'key': 'columns', 'type': '[BoardColumn]'}, + 'fields': {'key': 'fields', 'type': 'BoardFields'}, + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'rows': {'key': 'rows', 'type': '[BoardRow]'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, allowed_mappings=None, can_edit=None, columns=None, fields=None, is_valid=None, revision=None, rows=None): + super(Board, self).__init__(id=id, name=name, url=url) + self._links = _links + self.allowed_mappings = allowed_mappings + self.can_edit = can_edit + self.columns = columns + self.fields = fields + self.is_valid = is_valid + self.revision = revision + self.rows = rows + + +class BoardChart(BoardChartReference): + """BoardChart. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: The links for the resource + :type _links: :class:`ReferenceLinks ` + :param settings: The settings for the resource + :type settings: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'settings': {'key': 'settings', 'type': '{object}'} + } + + def __init__(self, name=None, url=None, _links=None, settings=None): + super(BoardChart, self).__init__(name=name, url=url) + self._links = _links + self.settings = settings + + +class DeliveryViewData(PlanViewData): + """DeliveryViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + :param child_id_to_parent_id_map: Work item child id to parenet id map + :type child_id_to_parent_id_map: dict + :param criteria_status: Filter criteria status of the timeline + :type criteria_status: :class:`TimelineCriteriaStatus ` + :param end_date: The end date of the delivery view data + :type end_date: datetime + :param start_date: The start date for the delivery view data + :type start_date: datetime + :param teams: All the team data + :type teams: list of :class:`TimelineTeamData ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'}, + 'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'teams': {'key': 'teams', 'type': '[TimelineTeamData]'} + } + + def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None): + super(DeliveryViewData, self).__init__(id=id, revision=revision) + self.child_id_to_parent_id_map = child_id_to_parent_id_map + self.criteria_status = criteria_status + self.end_date = end_date + self.start_date = start_date + self.teams = teams + + +class TeamFieldValues(TeamSettingsDataContractBase): + """TeamFieldValues. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param default_value: The default team field value + :type default_value: str + :param field: Shallow ref to the field being used as a team field + :type field: :class:`FieldReference ` + :param values: Collection of all valid team field values + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'FieldReference'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, _links=None, url=None, default_value=None, field=None, values=None): + super(TeamFieldValues, self).__init__(_links=_links, url=url) + self.default_value = default_value + self.field = field + self.values = values + + +class TeamMemberCapacity(TeamSettingsDataContractBase): + """TeamMemberCapacity. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param activities: Collection of capacities associated with the team member + :type activities: list of :class:`Activity ` + :param days_off: The days off associated with the team member + :type days_off: list of :class:`DateRange ` + :param team_member: Shallow Ref to the associated team member + :type team_member: :class:`Member ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'}, + 'team_member': {'key': 'teamMember', 'type': 'Member'} + } + + def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None): + super(TeamMemberCapacity, self).__init__(_links=_links, url=url) + self.activities = activities + self.days_off = days_off + self.team_member = team_member + + +class TeamSetting(TeamSettingsDataContractBase): + """TeamSetting. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param backlog_iteration: Backlog Iteration + :type backlog_iteration: :class:`TeamSettingsIteration ` + :param backlog_visibilities: Information about categories that are visible on the backlog. + :type backlog_visibilities: dict + :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) + :type bugs_behavior: object + :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. + :type default_iteration: :class:`TeamSettingsIteration ` + :param default_iteration_macro: Default Iteration macro (if any) + :type default_iteration_macro: str + :param working_days: Days that the team is working + :type working_days: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'TeamSettingsIteration'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[object]'} + } + + def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSetting, self).__init__(_links=_links, url=url) + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days + + +__all__ = [ + 'Activity', + 'BacklogColumn', + 'BacklogConfiguration', + 'BacklogFields', + 'BacklogLevel', + 'BacklogLevelConfiguration', + 'BoardCardRuleSettings', + 'BoardCardSettings', + 'BoardChartReference', + 'BoardColumn', + 'BoardFields', + 'BoardFilterSettings', + 'BoardReference', + 'BoardRow', + 'BoardSuggestedValue', + 'BoardUserSettings', + 'CapacityPatch', + 'CategoryConfiguration', + 'CreatePlan', + 'DateRange', + 'FieldReference', + 'FilterClause', + 'FilterGroup', + 'FilterModel', + 'IdentityRef', + 'Member', + 'ParentChildWIMap', + 'Plan', + 'PlanViewData', + 'ProcessConfiguration', + 'ReferenceLinks', + 'Rule', + 'TeamContext', + 'TeamFieldValue', + 'TeamFieldValuesPatch', + 'TeamIterationAttributes', + 'TeamSettingsDataContractBase', + 'TeamSettingsDaysOff', + 'TeamSettingsDaysOffPatch', + 'TeamSettingsIteration', + 'TeamSettingsPatch', + 'TimelineCriteriaStatus', + 'TimelineIterationStatus', + 'TimelineTeamData', + 'TimelineTeamIteration', + 'TimelineTeamStatus', + 'UpdatePlan', + 'WorkItemColor', + 'WorkItemFieldReference', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeReference', + 'WorkItemTypeStateInfo', + 'Board', + 'BoardChart', + 'DeliveryViewData', + 'TeamFieldValues', + 'TeamMemberCapacity', + 'TeamSetting', +] diff --git a/vsts/vsts/work/v4_0/work_client.py b/azure-devops/azure/devops/v4_0/work/work_client.py similarity index 99% rename from vsts/vsts/work/v4_0/work_client.py rename to azure-devops/azure/devops/v4_0/work/work_client.py index 0a9bdb0e..5fe28bf8 100644 --- a/vsts/vsts/work/v4_0/work_client.py +++ b/azure-devops/azure/devops/v4_0/work/work_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkClient(VssClient): +class WorkClient(Client): """Work :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking/__init__.py b/azure-devops/azure/devops/v4_0/work_item_tracking/__init__.py new file mode 100644 index 00000000..8dae92c7 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work_item_tracking/__init__.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccountMyWorkResult', + 'AccountRecentActivityWorkItemModel', + 'AccountRecentMentionWorkItemModel', + 'AccountWorkWorkItemModel', + 'ArtifactUriQuery', + 'ArtifactUriQueryResult', + 'AttachmentReference', + 'FieldDependentRule', + 'FieldsToEvaluate', + 'IdentityRef', + 'IdentityReference', + 'JsonPatchOperation', + 'Link', + 'ProjectWorkItemStateColors', + 'ProvisioningResult', + 'QueryHierarchyItem', + 'QueryHierarchyItemsResult', + 'ReferenceLinks', + 'ReportingWorkItemLink', + 'ReportingWorkItemLinksBatch', + 'ReportingWorkItemRevisionsBatch', + 'ReportingWorkItemRevisionsFilter', + 'StreamedBatch', + 'TeamContext', + 'Wiql', + 'WorkArtifactLink', + 'WorkItem', + 'WorkItemClassificationNode', + 'WorkItemComment', + 'WorkItemComments', + 'WorkItemDelete', + 'WorkItemDeleteReference', + 'WorkItemDeleteShallowReference', + 'WorkItemDeleteUpdate', + 'WorkItemField', + 'WorkItemFieldOperation', + 'WorkItemFieldReference', + 'WorkItemFieldUpdate', + 'WorkItemHistory', + 'WorkItemIcon', + 'WorkItemLink', + 'WorkItemQueryClause', + 'WorkItemQueryResult', + 'WorkItemQuerySortColumn', + 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemRelationType', + 'WorkItemRelationUpdates', + 'WorkItemStateColor', + 'WorkItemStateTransition', + 'WorkItemTemplate', + 'WorkItemTemplateReference', + 'WorkItemTrackingReference', + 'WorkItemTrackingResource', + 'WorkItemTrackingResourceReference', + 'WorkItemType', + 'WorkItemTypeCategory', + 'WorkItemTypeColor', + 'WorkItemTypeColorAndIcon', + 'WorkItemTypeFieldInstance', + 'WorkItemTypeReference', + 'WorkItemTypeStateColors', + 'WorkItemTypeTemplate', + 'WorkItemTypeTemplateUpdateModel', + 'WorkItemUpdate', +] diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking/models.py new file mode 100644 index 00000000..051e7ac1 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work_item_tracking/models.py @@ -0,0 +1,1983 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountMyWorkResult(Model): + """AccountMyWorkResult. + + :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit + :type query_size_limit_exceeded: bool + :param work_item_details: WorkItem Details + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + """ + + _attribute_map = { + 'query_size_limit_exceeded': {'key': 'querySizeLimitExceeded', 'type': 'bool'}, + 'work_item_details': {'key': 'workItemDetails', 'type': '[AccountWorkWorkItemModel]'} + } + + def __init__(self, query_size_limit_exceeded=None, work_item_details=None): + super(AccountMyWorkResult, self).__init__() + self.query_size_limit_exceeded = query_size_limit_exceeded + self.work_item_details = work_item_details + + +class AccountRecentActivityWorkItemModel(Model): + """AccountRecentActivityWorkItemModel. + + :param activity_date: Date of the last Activity by the user + :type activity_date: datetime + :param activity_type: Type of the activity + :type activity_type: object + :param assigned_to: Assigned To + :type assigned_to: str + :param changed_date: Last changed date of the work item + :type changed_date: datetime + :param id: Work Item Id + :type id: int + :param identity_id: TeamFoundationId of the user this activity belongs to + :type identity_id: str + :param state: State of the work item + :type state: str + :param team_project: Team project the work item belongs to + :type team_project: str + :param title: Title of the work item + :type title: str + :param work_item_type: Type of Work Item + :type work_item_type: str + """ + + _attribute_map = { + 'activity_date': {'key': 'activityDate', 'type': 'iso-8601'}, + 'activity_type': {'key': 'activityType', 'type': 'object'}, + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, activity_date=None, activity_type=None, assigned_to=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None): + super(AccountRecentActivityWorkItemModel, self).__init__() + self.activity_date = activity_date + self.activity_type = activity_type + self.assigned_to = assigned_to + self.changed_date = changed_date + self.id = id + self.identity_id = identity_id + self.state = state + self.team_project = team_project + self.title = title + self.work_item_type = work_item_type + + +class AccountRecentMentionWorkItemModel(Model): + """AccountRecentMentionWorkItemModel. + + :param assigned_to: Assigned To + :type assigned_to: str + :param id: Work Item Id + :type id: int + :param mentioned_date_field: Lastest date that the user were mentioned + :type mentioned_date_field: datetime + :param state: State of the work item + :type state: str + :param team_project: Team project the work item belongs to + :type team_project: str + :param title: Title of the work item + :type title: str + :param work_item_type: Type of Work Item + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'mentioned_date_field': {'key': 'mentionedDateField', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, mentioned_date_field=None, state=None, team_project=None, title=None, work_item_type=None): + super(AccountRecentMentionWorkItemModel, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.mentioned_date_field = mentioned_date_field + self.state = state + self.team_project = team_project + self.title = title + self.work_item_type = work_item_type + + +class AccountWorkWorkItemModel(Model): + """AccountWorkWorkItemModel. + + :param assigned_to: + :type assigned_to: str + :param changed_date: + :type changed_date: datetime + :param id: + :type id: int + :param state: + :type state: str + :param team_project: + :type team_project: str + :param title: + :type title: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, changed_date=None, id=None, state=None, team_project=None, title=None, work_item_type=None): + super(AccountWorkWorkItemModel, self).__init__() + self.assigned_to = assigned_to + self.changed_date = changed_date + self.id = id + self.state = state + self.team_project = team_project + self.title = title + self.work_item_type = work_item_type + + +class ArtifactUriQuery(Model): + """ArtifactUriQuery. + + :param artifact_uris: + :type artifact_uris: list of str + """ + + _attribute_map = { + 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'} + } + + def __init__(self, artifact_uris=None): + super(ArtifactUriQuery, self).__init__() + self.artifact_uris = artifact_uris + + +class ArtifactUriQueryResult(Model): + """ArtifactUriQueryResult. + + :param artifact_uris_query_result: + :type artifact_uris_query_result: dict + """ + + _attribute_map = { + 'artifact_uris_query_result': {'key': 'artifactUrisQueryResult', 'type': '{[WorkItemReference]}'} + } + + def __init__(self, artifact_uris_query_result=None): + super(ArtifactUriQueryResult, self).__init__() + self.artifact_uris_query_result = artifact_uris_query_result + + +class AttachmentReference(Model): + """AttachmentReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(AttachmentReference, self).__init__() + self.id = id + self.url = url + + +class FieldsToEvaluate(Model): + """FieldsToEvaluate. + + :param fields: + :type fields: list of str + :param field_updates: + :type field_updates: dict + :param field_values: + :type field_values: dict + :param rules_from: + :type rules_from: list of str + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'field_updates': {'key': 'fieldUpdates', 'type': '{object}'}, + 'field_values': {'key': 'fieldValues', 'type': '{object}'}, + 'rules_from': {'key': 'rulesFrom', 'type': '[str]'} + } + + def __init__(self, fields=None, field_updates=None, field_values=None, rules_from=None): + super(FieldsToEvaluate, self).__init__() + self.fields = fields + self.field_updates = field_updates + self.field_values = field_values + self.rules_from = rules_from + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class IdentityReference(IdentityRef): + """IdentityReference. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + :param id: + :type id: str + :param name: Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version + :type name: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, id=None, name=None): + super(IdentityReference, self).__init__(directory_alias=directory_alias, display_name=display_name, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) + self.id = id + self.name = name + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class Link(Model): + """Link. + + :param attributes: + :type attributes: dict + :param rel: + :type rel: str + :param url: + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attributes=None, rel=None, url=None): + super(Link, self).__init__() + self.attributes = attributes + self.rel = rel + self.url = url + + +class ProjectWorkItemStateColors(Model): + """ProjectWorkItemStateColors. + + :param project_name: Project name + :type project_name: str + :param work_item_type_state_colors: State colors for all work item type in a project + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + """ + + _attribute_map = { + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'work_item_type_state_colors': {'key': 'workItemTypeStateColors', 'type': '[WorkItemTypeStateColors]'} + } + + def __init__(self, project_name=None, work_item_type_state_colors=None): + super(ProjectWorkItemStateColors, self).__init__() + self.project_name = project_name + self.work_item_type_state_colors = work_item_type_state_colors + + +class ProvisioningResult(Model): + """ProvisioningResult. + + :param provisioning_import_events: + :type provisioning_import_events: list of str + """ + + _attribute_map = { + 'provisioning_import_events': {'key': 'provisioningImportEvents', 'type': '[str]'} + } + + def __init__(self, provisioning_import_events=None): + super(ProvisioningResult, self).__init__() + self.provisioning_import_events = provisioning_import_events + + +class QueryHierarchyItemsResult(Model): + """QueryHierarchyItemsResult. + + :param count: + :type count: int + :param has_more: + :type has_more: bool + :param value: + :type value: list of :class:`QueryHierarchyItem ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'has_more': {'key': 'hasMore', 'type': 'bool'}, + 'value': {'key': 'value', 'type': '[QueryHierarchyItem]'} + } + + def __init__(self, count=None, has_more=None, value=None): + super(QueryHierarchyItemsResult, self).__init__() + self.count = count + self.has_more = has_more + self.value = value + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ReportingWorkItemLink(Model): + """ReportingWorkItemLink. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param changed_operation: + :type changed_operation: object + :param comment: + :type comment: str + :param is_active: + :type is_active: bool + :param link_type: + :type link_type: str + :param rel: + :type rel: str + :param source_id: + :type source_id: int + :param target_id: + :type target_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'changed_operation': {'key': 'changedOperation', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'link_type': {'key': 'linkType', 'type': 'str'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'int'}, + 'target_id': {'key': 'targetId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, changed_operation=None, comment=None, is_active=None, link_type=None, rel=None, source_id=None, target_id=None): + super(ReportingWorkItemLink, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.changed_operation = changed_operation + self.comment = comment + self.is_active = is_active + self.link_type = link_type + self.rel = rel + self.source_id = source_id + self.target_id = target_id + + +class ReportingWorkItemRevisionsFilter(Model): + """ReportingWorkItemRevisionsFilter. + + :param fields: A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. + :type fields: list of str + :param include_deleted: Include deleted work item in the result. + :type include_deleted: bool + :param include_identity_ref: Return an identity reference instead of a string value for identity fields. + :type include_identity_ref: bool + :param include_latest_only: Include only the latest version of a work item, skipping over all previous revisions of the work item. + :type include_latest_only: bool + :param include_tag_ref: Include tag reference instead of string value for System.Tags field + :type include_tag_ref: bool + :param types: A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. + :type types: list of str + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'include_deleted': {'key': 'includeDeleted', 'type': 'bool'}, + 'include_identity_ref': {'key': 'includeIdentityRef', 'type': 'bool'}, + 'include_latest_only': {'key': 'includeLatestOnly', 'type': 'bool'}, + 'include_tag_ref': {'key': 'includeTagRef', 'type': 'bool'}, + 'types': {'key': 'types', 'type': '[str]'} + } + + def __init__(self, fields=None, include_deleted=None, include_identity_ref=None, include_latest_only=None, include_tag_ref=None, types=None): + super(ReportingWorkItemRevisionsFilter, self).__init__() + self.fields = fields + self.include_deleted = include_deleted + self.include_identity_ref = include_identity_ref + self.include_latest_only = include_latest_only + self.include_tag_ref = include_tag_ref + self.types = types + + +class StreamedBatch(Model): + """StreamedBatch. + + :param continuation_token: + :type continuation_token: str + :param is_last_batch: + :type is_last_batch: bool + :param next_link: + :type next_link: str + :param values: + :type values: list of object + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'is_last_batch': {'key': 'isLastBatch', 'type': 'bool'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[object]'} + } + + def __init__(self, continuation_token=None, is_last_batch=None, next_link=None, values=None): + super(StreamedBatch, self).__init__() + self.continuation_token = continuation_token + self.is_last_batch = is_last_batch + self.next_link = next_link + self.values = values + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class Wiql(Model): + """Wiql. + + :param query: + :type query: str + """ + + _attribute_map = { + 'query': {'key': 'query', 'type': 'str'} + } + + def __init__(self, query=None): + super(Wiql, self).__init__() + self.query = query + + +class WorkArtifactLink(Model): + """WorkArtifactLink. + + :param artifact_type: + :type artifact_type: str + :param link_type: + :type link_type: str + :param tool_type: + :type tool_type: str + """ + + _attribute_map = { + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'link_type': {'key': 'linkType', 'type': 'str'}, + 'tool_type': {'key': 'toolType', 'type': 'str'} + } + + def __init__(self, artifact_type=None, link_type=None, tool_type=None): + super(WorkArtifactLink, self).__init__() + self.artifact_type = artifact_type + self.link_type = link_type + self.tool_type = tool_type + + +class WorkItemComments(Model): + """WorkItemComments. + + :param comments: + :type comments: list of :class:`WorkItemComment ` + :param count: + :type count: int + :param from_revision_count: + :type from_revision_count: int + :param total_count: + :type total_count: int + """ + + _attribute_map = { + 'comments': {'key': 'comments', 'type': '[WorkItemComment]'}, + 'count': {'key': 'count', 'type': 'int'}, + 'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'}, + 'total_count': {'key': 'totalCount', 'type': 'int'} + } + + def __init__(self, comments=None, count=None, from_revision_count=None, total_count=None): + super(WorkItemComments, self).__init__() + self.comments = comments + self.count = count + self.from_revision_count = from_revision_count + self.total_count = total_count + + +class WorkItemDeleteReference(Model): + """WorkItemDeleteReference. + + :param code: + :type code: int + :param deleted_by: + :type deleted_by: str + :param deleted_date: + :type deleted_date: str + :param id: + :type id: int + :param message: + :type message: str + :param name: + :type name: str + :param project: + :type project: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None): + super(WorkItemDeleteReference, self).__init__() + self.code = code + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.id = id + self.message = message + self.name = name + self.project = project + self.type = type + self.url = url + + +class WorkItemDeleteShallowReference(Model): + """WorkItemDeleteShallowReference. + + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemDeleteShallowReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemDeleteUpdate(Model): + """WorkItemDeleteUpdate. + + :param is_deleted: + :type is_deleted: bool + """ + + _attribute_map = { + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'} + } + + def __init__(self, is_deleted=None): + super(WorkItemDeleteUpdate, self).__init__() + self.is_deleted = is_deleted + + +class WorkItemFieldOperation(Model): + """WorkItemFieldOperation. + + :param name: + :type name: str + :param reference_name: + :type reference_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None): + super(WorkItemFieldOperation, self).__init__() + self.name = name + self.reference_name = reference_name + + +class WorkItemFieldReference(Model): + """WorkItemFieldReference. + + :param name: + :type name: str + :param reference_name: + :type reference_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(WorkItemFieldReference, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url + + +class WorkItemFieldUpdate(Model): + """WorkItemFieldUpdate. + + :param new_value: + :type new_value: object + :param old_value: + :type old_value: object + """ + + _attribute_map = { + 'new_value': {'key': 'newValue', 'type': 'object'}, + 'old_value': {'key': 'oldValue', 'type': 'object'} + } + + def __init__(self, new_value=None, old_value=None): + super(WorkItemFieldUpdate, self).__init__() + self.new_value = new_value + self.old_value = old_value + + +class WorkItemIcon(Model): + """WorkItemIcon. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemIcon, self).__init__() + self.id = id + self.url = url + + +class WorkItemLink(Model): + """WorkItemLink. + + :param rel: + :type rel: str + :param source: + :type source: :class:`WorkItemReference ` + :param target: + :type target: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'rel': {'key': 'rel', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'WorkItemReference'}, + 'target': {'key': 'target', 'type': 'WorkItemReference'} + } + + def __init__(self, rel=None, source=None, target=None): + super(WorkItemLink, self).__init__() + self.rel = rel + self.source = source + self.target = target + + +class WorkItemQueryClause(Model): + """WorkItemQueryClause. + + :param clauses: + :type clauses: list of :class:`WorkItemQueryClause ` + :param field: + :type field: :class:`WorkItemFieldReference ` + :param field_value: + :type field_value: :class:`WorkItemFieldReference ` + :param is_field_value: + :type is_field_value: bool + :param logical_operator: + :type logical_operator: object + :param operator: + :type operator: :class:`WorkItemFieldOperation ` + :param value: + :type value: str + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[WorkItemQueryClause]'}, + 'field': {'key': 'field', 'type': 'WorkItemFieldReference'}, + 'field_value': {'key': 'fieldValue', 'type': 'WorkItemFieldReference'}, + 'is_field_value': {'key': 'isFieldValue', 'type': 'bool'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'object'}, + 'operator': {'key': 'operator', 'type': 'WorkItemFieldOperation'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, clauses=None, field=None, field_value=None, is_field_value=None, logical_operator=None, operator=None, value=None): + super(WorkItemQueryClause, self).__init__() + self.clauses = clauses + self.field = field + self.field_value = field_value + self.is_field_value = is_field_value + self.logical_operator = logical_operator + self.operator = operator + self.value = value + + +class WorkItemQueryResult(Model): + """WorkItemQueryResult. + + :param as_of: + :type as_of: datetime + :param columns: + :type columns: list of :class:`WorkItemFieldReference ` + :param query_result_type: + :type query_result_type: object + :param query_type: + :type query_type: object + :param sort_columns: + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :param work_item_relations: + :type work_item_relations: list of :class:`WorkItemLink ` + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'as_of': {'key': 'asOf', 'type': 'iso-8601'}, + 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, + 'query_result_type': {'key': 'queryResultType', 'type': 'object'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, + 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, as_of=None, columns=None, query_result_type=None, query_type=None, sort_columns=None, work_item_relations=None, work_items=None): + super(WorkItemQueryResult, self).__init__() + self.as_of = as_of + self.columns = columns + self.query_result_type = query_result_type + self.query_type = query_type + self.sort_columns = sort_columns + self.work_item_relations = work_item_relations + self.work_items = work_items + + +class WorkItemQuerySortColumn(Model): + """WorkItemQuerySortColumn. + + :param descending: + :type descending: bool + :param field: + :type field: :class:`WorkItemFieldReference ` + """ + + _attribute_map = { + 'descending': {'key': 'descending', 'type': 'bool'}, + 'field': {'key': 'field', 'type': 'WorkItemFieldReference'} + } + + def __init__(self, descending=None, field=None): + super(WorkItemQuerySortColumn, self).__init__() + self.descending = descending + self.field = field + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemRelation(Link): + """WorkItemRelation. + + :param attributes: + :type attributes: dict + :param rel: + :type rel: str + :param url: + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, attributes=None, rel=None, url=None): + super(WorkItemRelation, self).__init__(attributes=attributes, rel=rel, url=url) + + +class WorkItemRelationUpdates(Model): + """WorkItemRelationUpdates. + + :param added: + :type added: list of :class:`WorkItemRelation ` + :param removed: + :type removed: list of :class:`WorkItemRelation ` + :param updated: + :type updated: list of :class:`WorkItemRelation ` + """ + + _attribute_map = { + 'added': {'key': 'added', 'type': '[WorkItemRelation]'}, + 'removed': {'key': 'removed', 'type': '[WorkItemRelation]'}, + 'updated': {'key': 'updated', 'type': '[WorkItemRelation]'} + } + + def __init__(self, added=None, removed=None, updated=None): + super(WorkItemRelationUpdates, self).__init__() + self.added = added + self.removed = removed + self.updated = updated + + +class WorkItemStateColor(Model): + """WorkItemStateColor. + + :param color: Color value + :type color: str + :param name: Work item type state name + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(WorkItemStateColor, self).__init__() + self.color = color + self.name = name + + +class WorkItemStateTransition(Model): + """WorkItemStateTransition. + + :param actions: + :type actions: list of str + :param to: + :type to: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[str]'}, + 'to': {'key': 'to', 'type': 'str'} + } + + def __init__(self, actions=None, to=None): + super(WorkItemStateTransition, self).__init__() + self.actions = actions + self.to = to + + +class WorkItemTrackingResourceReference(Model): + """WorkItemTrackingResourceReference. + + :param url: + :type url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, url=None): + super(WorkItemTrackingResourceReference, self).__init__() + self.url = url + + +class WorkItemTypeColor(Model): + """WorkItemTypeColor. + + :param primary_color: + :type primary_color: str + :param secondary_color: + :type secondary_color: str + :param work_item_type_name: + :type work_item_type_name: str + """ + + _attribute_map = { + 'primary_color': {'key': 'primaryColor', 'type': 'str'}, + 'secondary_color': {'key': 'secondaryColor', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, primary_color=None, secondary_color=None, work_item_type_name=None): + super(WorkItemTypeColor, self).__init__() + self.primary_color = primary_color + self.secondary_color = secondary_color + self.work_item_type_name = work_item_type_name + + +class WorkItemTypeColorAndIcon(Model): + """WorkItemTypeColorAndIcon. + + :param color: + :type color: str + :param icon: + :type icon: str + :param work_item_type_name: + :type work_item_type_name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, color=None, icon=None, work_item_type_name=None): + super(WorkItemTypeColorAndIcon, self).__init__() + self.color = color + self.icon = icon + self.work_item_type_name = work_item_type_name + + +class WorkItemTypeFieldInstance(WorkItemFieldReference): + """WorkItemTypeFieldInstance. + + :param name: + :type name: str + :param reference_name: + :type reference_name: str + :param url: + :type url: str + :param always_required: + :type always_required: bool + :param field: + :type field: :class:`WorkItemFieldReference ` + :param help_text: + :type help_text: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'field': {'key': 'field', 'type': 'WorkItemFieldReference'}, + 'help_text': {'key': 'helpText', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, field=None, help_text=None): + super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url) + self.always_required = always_required + self.field = field + self.help_text = help_text + + +class WorkItemTypeReference(WorkItemTrackingResourceReference): + """WorkItemTypeReference. + + :param url: + :type url: str + :param name: + :type name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, url=None, name=None): + super(WorkItemTypeReference, self).__init__(url=url) + self.name = name + + +class WorkItemTypeStateColors(Model): + """WorkItemTypeStateColors. + + :param state_colors: Work item type state colors + :type state_colors: list of :class:`WorkItemStateColor ` + :param work_item_type_name: Work item type name + :type work_item_type_name: str + """ + + _attribute_map = { + 'state_colors': {'key': 'stateColors', 'type': '[WorkItemStateColor]'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, state_colors=None, work_item_type_name=None): + super(WorkItemTypeStateColors, self).__init__() + self.state_colors = state_colors + self.work_item_type_name = work_item_type_name + + +class WorkItemTypeTemplate(Model): + """WorkItemTypeTemplate. + + :param template: + :type template: str + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'str'} + } + + def __init__(self, template=None): + super(WorkItemTypeTemplate, self).__init__() + self.template = template + + +class WorkItemTypeTemplateUpdateModel(Model): + """WorkItemTypeTemplateUpdateModel. + + :param action_type: + :type action_type: object + :param methodology: + :type methodology: str + :param template: + :type template: str + :param template_type: + :type template_type: object + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'object'}, + 'methodology': {'key': 'methodology', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'str'}, + 'template_type': {'key': 'templateType', 'type': 'object'} + } + + def __init__(self, action_type=None, methodology=None, template=None, template_type=None): + super(WorkItemTypeTemplateUpdateModel, self).__init__() + self.action_type = action_type + self.methodology = methodology + self.template = template + self.template_type = template_type + + +class WorkItemUpdate(WorkItemTrackingResourceReference): + """WorkItemUpdate. + + :param url: + :type url: str + :param fields: + :type fields: dict + :param id: + :type id: int + :param relations: + :type relations: :class:`WorkItemRelationUpdates ` + :param rev: + :type rev: int + :param revised_by: + :type revised_by: :class:`IdentityReference ` + :param revised_date: + :type revised_date: datetime + :param work_item_id: + :type work_item_id: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '{WorkItemFieldUpdate}'}, + 'id': {'key': 'id', 'type': 'int'}, + 'relations': {'key': 'relations', 'type': 'WorkItemRelationUpdates'}, + 'rev': {'key': 'rev', 'type': 'int'}, + 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, + 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, + 'work_item_id': {'key': 'workItemId', 'type': 'int'} + } + + def __init__(self, url=None, fields=None, id=None, relations=None, rev=None, revised_by=None, revised_date=None, work_item_id=None): + super(WorkItemUpdate, self).__init__(url=url) + self.fields = fields + self.id = id + self.relations = relations + self.rev = rev + self.revised_by = revised_by + self.revised_date = revised_date + self.work_item_id = work_item_id + + +class ReportingWorkItemLinksBatch(StreamedBatch): + """ReportingWorkItemLinksBatch. + + """ + + _attribute_map = { + } + + def __init__(self): + super(ReportingWorkItemLinksBatch, self).__init__() + + +class ReportingWorkItemRevisionsBatch(StreamedBatch): + """ReportingWorkItemRevisionsBatch. + + """ + + _attribute_map = { + } + + def __init__(self): + super(ReportingWorkItemRevisionsBatch, self).__init__() + + +class WorkItemDelete(WorkItemDeleteReference): + """WorkItemDelete. + + :param code: + :type code: int + :param deleted_by: + :type deleted_by: str + :param deleted_date: + :type deleted_date: str + :param id: + :type id: int + :param message: + :type message: str + :param name: + :type name: str + :param project: + :type project: str + :param type: + :type type: str + :param url: + :type url: str + :param resource: + :type resource: :class:`WorkItem ` + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'WorkItem'} + } + + def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None, resource=None): + super(WorkItemDelete, self).__init__(code=code, deleted_by=deleted_by, deleted_date=deleted_date, id=id, message=message, name=name, project=project, type=type, url=url) + self.resource = resource + + +class WorkItemTrackingResource(WorkItemTrackingResourceReference): + """WorkItemTrackingResource. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} + } + + def __init__(self, url=None, _links=None): + super(WorkItemTrackingResource, self).__init__(url=url) + self._links = _links + + +class WorkItemType(WorkItemTrackingResource): + """WorkItemType. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param color: + :type color: str + :param description: + :type description: str + :param field_instances: + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :param fields: + :type fields: list of :class:`WorkItemTypeFieldInstance ` + :param icon: + :type icon: :class:`WorkItemIcon ` + :param name: + :type name: str + :param transitions: + :type transitions: dict + :param xml_form: + :type xml_form: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'field_instances': {'key': 'fieldInstances', 'type': '[WorkItemTypeFieldInstance]'}, + 'fields': {'key': 'fields', 'type': '[WorkItemTypeFieldInstance]'}, + 'icon': {'key': 'icon', 'type': 'WorkItemIcon'}, + 'name': {'key': 'name', 'type': 'str'}, + 'transitions': {'key': 'transitions', 'type': '{[WorkItemStateTransition]}'}, + 'xml_form': {'key': 'xmlForm', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, name=None, transitions=None, xml_form=None): + super(WorkItemType, self).__init__(url=url, _links=_links) + self.color = color + self.description = description + self.field_instances = field_instances + self.fields = fields + self.icon = icon + self.name = name + self.transitions = transitions + self.xml_form = xml_form + + +class WorkItemTypeCategory(WorkItemTrackingResource): + """WorkItemTypeCategory. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param default_work_item_type: + :type default_work_item_type: :class:`WorkItemTypeReference ` + :param name: + :type name: str + :param reference_name: + :type reference_name: str + :param work_item_types: + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, url=None, _links=None, default_work_item_type=None, name=None, reference_name=None, work_item_types=None): + super(WorkItemTypeCategory, self).__init__(url=url, _links=_links) + self.default_work_item_type = default_work_item_type + self.name = name + self.reference_name = reference_name + self.work_item_types = work_item_types + + +class FieldDependentRule(WorkItemTrackingResource): + """FieldDependentRule. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param dependent_fields: + :type dependent_fields: list of :class:`WorkItemFieldReference ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'} + } + + def __init__(self, url=None, _links=None, dependent_fields=None): + super(FieldDependentRule, self).__init__(url=url, _links=_links) + self.dependent_fields = dependent_fields + + +class QueryHierarchyItem(WorkItemTrackingResource): + """QueryHierarchyItem. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param children: + :type children: list of :class:`QueryHierarchyItem ` + :param clauses: + :type clauses: :class:`WorkItemQueryClause ` + :param columns: + :type columns: list of :class:`WorkItemFieldReference ` + :param created_by: + :type created_by: :class:`IdentityReference ` + :param created_date: + :type created_date: datetime + :param filter_options: + :type filter_options: object + :param has_children: + :type has_children: bool + :param id: + :type id: str + :param is_deleted: + :type is_deleted: bool + :param is_folder: + :type is_folder: bool + :param is_invalid_syntax: + :type is_invalid_syntax: bool + :param is_public: + :type is_public: bool + :param last_modified_by: + :type last_modified_by: :class:`IdentityReference ` + :param last_modified_date: + :type last_modified_date: datetime + :param link_clauses: + :type link_clauses: :class:`WorkItemQueryClause ` + :param name: + :type name: str + :param path: + :type path: str + :param query_type: + :type query_type: object + :param sort_columns: + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :param source_clauses: + :type source_clauses: :class:`WorkItemQueryClause ` + :param target_clauses: + :type target_clauses: :class:`WorkItemQueryClause ` + :param wiql: + :type wiql: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'children': {'key': 'children', 'type': '[QueryHierarchyItem]'}, + 'clauses': {'key': 'clauses', 'type': 'WorkItemQueryClause'}, + 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityReference'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'filter_options': {'key': 'filterOptions', 'type': 'object'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_invalid_syntax': {'key': 'isInvalidSyntax', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityReference'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'link_clauses': {'key': 'linkClauses', 'type': 'WorkItemQueryClause'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, + 'source_clauses': {'key': 'sourceClauses', 'type': 'WorkItemQueryClause'}, + 'target_clauses': {'key': 'targetClauses', 'type': 'WorkItemQueryClause'}, + 'wiql': {'key': 'wiql', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): + super(QueryHierarchyItem, self).__init__(url=url, _links=_links) + self.children = children + self.clauses = clauses + self.columns = columns + self.created_by = created_by + self.created_date = created_date + self.filter_options = filter_options + self.has_children = has_children + self.id = id + self.is_deleted = is_deleted + self.is_folder = is_folder + self.is_invalid_syntax = is_invalid_syntax + self.is_public = is_public + self.last_modified_by = last_modified_by + self.last_modified_date = last_modified_date + self.link_clauses = link_clauses + self.name = name + self.path = path + self.query_type = query_type + self.sort_columns = sort_columns + self.source_clauses = source_clauses + self.target_clauses = target_clauses + self.wiql = wiql + + +class WorkItem(WorkItemTrackingResource): + """WorkItem. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param fields: + :type fields: dict + :param id: + :type id: int + :param relations: + :type relations: list of :class:`WorkItemRelation ` + :param rev: + :type rev: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'fields': {'key': 'fields', 'type': '{object}'}, + 'id': {'key': 'id', 'type': 'int'}, + 'relations': {'key': 'relations', 'type': '[WorkItemRelation]'}, + 'rev': {'key': 'rev', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None): + super(WorkItem, self).__init__(url=url, _links=_links) + self.fields = fields + self.id = id + self.relations = relations + self.rev = rev + + +class WorkItemClassificationNode(WorkItemTrackingResource): + """WorkItemClassificationNode. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param attributes: + :type attributes: dict + :param children: + :type children: list of :class:`WorkItemClassificationNode ` + :param id: + :type id: int + :param identifier: + :type identifier: str + :param name: + :type name: str + :param structure_type: + :type structure_type: object + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'children': {'key': 'children', 'type': '[WorkItemClassificationNode]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'structure_type': {'key': 'structureType', 'type': 'object'} + } + + def __init__(self, url=None, _links=None, attributes=None, children=None, id=None, identifier=None, name=None, structure_type=None): + super(WorkItemClassificationNode, self).__init__(url=url, _links=_links) + self.attributes = attributes + self.children = children + self.id = id + self.identifier = identifier + self.name = name + self.structure_type = structure_type + + +class WorkItemComment(WorkItemTrackingResource): + """WorkItemComment. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param revised_by: + :type revised_by: :class:`IdentityReference ` + :param revised_date: + :type revised_date: datetime + :param revision: + :type revision: int + :param text: + :type text: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, + 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, revised_by=None, revised_date=None, revision=None, text=None): + super(WorkItemComment, self).__init__(url=url, _links=_links) + self.revised_by = revised_by + self.revised_date = revised_date + self.revision = revision + self.text = text + + +class WorkItemField(WorkItemTrackingResource): + """WorkItemField. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param is_identity: + :type is_identity: bool + :param is_picklist: + :type is_picklist: bool + :param is_picklist_suggested: + :type is_picklist_suggested: bool + :param name: + :type name: str + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param supported_operations: + :type supported_operations: list of :class:`WorkItemFieldOperation ` + :param type: + :type type: object + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'is_picklist': {'key': 'isPicklist', 'type': 'bool'}, + 'is_picklist_suggested': {'key': 'isPicklistSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'supported_operations': {'key': 'supportedOperations', 'type': '[WorkItemFieldOperation]'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, url=None, _links=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, name=None, read_only=None, reference_name=None, supported_operations=None, type=None): + super(WorkItemField, self).__init__(url=url, _links=_links) + self.description = description + self.is_identity = is_identity + self.is_picklist = is_picklist + self.is_picklist_suggested = is_picklist_suggested + self.name = name + self.read_only = read_only + self.reference_name = reference_name + self.supported_operations = supported_operations + self.type = type + + +class WorkItemHistory(WorkItemTrackingResource): + """WorkItemHistory. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param rev: + :type rev: int + :param revised_by: + :type revised_by: :class:`IdentityReference ` + :param revised_date: + :type revised_date: datetime + :param value: + :type value: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'rev': {'key': 'rev', 'type': 'int'}, + 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, + 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, rev=None, revised_by=None, revised_date=None, value=None): + super(WorkItemHistory, self).__init__(url=url, _links=_links) + self.rev = rev + self.revised_by = revised_by + self.revised_date = revised_date + self.value = value + + +class WorkItemTemplateReference(WorkItemTrackingResource): + """WorkItemTemplateReference. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: str + :param name: + :type name: str + :param work_item_type_name: + :type work_item_type_name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None): + super(WorkItemTemplateReference, self).__init__(url=url, _links=_links) + self.description = description + self.id = id + self.name = name + self.work_item_type_name = work_item_type_name + + +class WorkItemTrackingReference(WorkItemTrackingResource): + """WorkItemTrackingReference. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param name: + :type name: str + :param reference_name: + :type reference_name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, name=None, reference_name=None): + super(WorkItemTrackingReference, self).__init__(url=url, _links=_links) + self.name = name + self.reference_name = reference_name + + +class WorkItemRelationType(WorkItemTrackingReference): + """WorkItemRelationType. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param name: + :type name: str + :param reference_name: + :type reference_name: str + :param attributes: + :type attributes: dict + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': '{object}'} + } + + def __init__(self, url=None, _links=None, name=None, reference_name=None, attributes=None): + super(WorkItemRelationType, self).__init__(url=url, _links=_links, name=name, reference_name=reference_name) + self.attributes = attributes + + +class WorkItemTemplate(WorkItemTemplateReference): + """WorkItemTemplate. + + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: str + :param name: + :type name: str + :param work_item_type_name: + :type work_item_type_name: str + :param fields: + :type fields: dict + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '{str}'} + } + + def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None, fields=None): + super(WorkItemTemplate, self).__init__(url=url, _links=_links, description=description, id=id, name=name, work_item_type_name=work_item_type_name) + self.fields = fields + + +__all__ = [ + 'AccountMyWorkResult', + 'AccountRecentActivityWorkItemModel', + 'AccountRecentMentionWorkItemModel', + 'AccountWorkWorkItemModel', + 'ArtifactUriQuery', + 'ArtifactUriQueryResult', + 'AttachmentReference', + 'FieldsToEvaluate', + 'IdentityRef', + 'IdentityReference', + 'JsonPatchOperation', + 'Link', + 'ProjectWorkItemStateColors', + 'ProvisioningResult', + 'QueryHierarchyItemsResult', + 'ReferenceLinks', + 'ReportingWorkItemLink', + 'ReportingWorkItemRevisionsFilter', + 'StreamedBatch', + 'TeamContext', + 'Wiql', + 'WorkArtifactLink', + 'WorkItemComments', + 'WorkItemDeleteReference', + 'WorkItemDeleteShallowReference', + 'WorkItemDeleteUpdate', + 'WorkItemFieldOperation', + 'WorkItemFieldReference', + 'WorkItemFieldUpdate', + 'WorkItemIcon', + 'WorkItemLink', + 'WorkItemQueryClause', + 'WorkItemQueryResult', + 'WorkItemQuerySortColumn', + 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemRelationUpdates', + 'WorkItemStateColor', + 'WorkItemStateTransition', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeColor', + 'WorkItemTypeColorAndIcon', + 'WorkItemTypeFieldInstance', + 'WorkItemTypeReference', + 'WorkItemTypeStateColors', + 'WorkItemTypeTemplate', + 'WorkItemTypeTemplateUpdateModel', + 'WorkItemUpdate', + 'ReportingWorkItemLinksBatch', + 'ReportingWorkItemRevisionsBatch', + 'WorkItemDelete', + 'WorkItemTrackingResource', + 'WorkItemType', + 'WorkItemTypeCategory', + 'FieldDependentRule', + 'QueryHierarchyItem', + 'WorkItem', + 'WorkItemClassificationNode', + 'WorkItemComment', + 'WorkItemField', + 'WorkItemHistory', + 'WorkItemTemplateReference', + 'WorkItemTrackingReference', + 'WorkItemRelationType', + 'WorkItemTemplate', +] diff --git a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py similarity index 99% rename from vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py rename to azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py index c247d731..7ede6d11 100644 --- a/vsts/vsts/work_item_tracking/v4_0/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingClient(VssClient): +class WorkItemTrackingClient(Client): """WorkItemTracking :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process/__init__.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process/__init__.py new file mode 100644 index 00000000..e7862001 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process/__init__.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Control', + 'CreateProcessModel', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'Page', + 'ProcessModel', + 'ProcessProperties', + 'ProjectReference', + 'RuleActionModel', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', +] diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py new file mode 100644 index 00000000..7e71504b --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py @@ -0,0 +1,791 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class CreateProcessModel(Model): + """CreateProcessModel. + + :param description: + :type description: str + :param name: + :type name: str + :param parent_process_type_id: + :type parent_process_type_id: str + :param reference_name: + :type reference_name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): + super(CreateProcessModel, self).__init__() + self.description = description + self.name = name + self.parent_process_type_id = parent_process_type_id + self.reference_name = reference_name + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param is_identity: + :type is_identity: bool + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.is_identity = is_identity + self.name = name + self.type = type + self.url = url + + +class FieldRuleModel(Model): + """FieldRuleModel. + + :param actions: + :type actions: list of :class:`RuleActionModel ` + :param conditions: + :type conditions: list of :class:`RuleConditionModel ` + :param friendly_name: + :type friendly_name: str + :param id: + :type id: str + :param is_disabled: + :type is_disabled: bool + :param is_system: + :type is_system: bool + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_system': {'key': 'isSystem', 'type': 'bool'} + } + + def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): + super(FieldRuleModel, self).__init__() + self.actions = actions + self.conditions = conditions + self.friendly_name = friendly_name + self.id = id + self.is_disabled = is_disabled + self.is_system = is_system + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class ProcessModel(Model): + """ProcessModel. + + :param description: + :type description: str + :param name: + :type name: str + :param projects: + :type projects: list of :class:`ProjectReference ` + :param properties: + :type properties: :class:`ProcessProperties ` + :param reference_name: + :type reference_name: str + :param type_id: + :type type_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): + super(ProcessModel, self).__init__() + self.description = description + self.name = name + self.projects = projects + self.properties = properties + self.reference_name = reference_name + self.type_id = type_id + + +class ProcessProperties(Model): + """ProcessProperties. + + :param class_: + :type class_: object + :param is_default: + :type is_default: bool + :param is_enabled: + :type is_enabled: bool + :param parent_process_type_id: + :type parent_process_type_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'object'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): + super(ProcessProperties, self).__init__() + self.class_ = class_ + self.is_default = is_default + self.is_enabled = is_enabled + self.parent_process_type_id = parent_process_type_id + self.version = version + + +class ProjectReference(Model): + """ProjectReference. + + :param description: + :type description: str + :param id: + :type id: str + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, url=None): + super(ProjectReference, self).__init__() + self.description = description + self.id = id + self.name = name + self.url = url + + +class RuleActionModel(Model): + """RuleActionModel. + + :param action_type: + :type action_type: str + :param target_field: + :type target_field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleActionModel, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value + + +class RuleConditionModel(Model): + """RuleConditionModel. + + :param condition_type: + :type condition_type: str + :param field: + :type field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleConditionModel, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class UpdateProcessModel(Model): + """UpdateProcessModel. + + :param description: + :type description: str + :param is_default: + :type is_default: bool + :param is_enabled: + :type is_enabled: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, is_default=None, is_enabled=None, name=None): + super(UpdateProcessModel, self).__init__() + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehavior(Model): + """WorkItemBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param description: + :type description: str + :param fields: + :type fields: list of :class:`WorkItemBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): + super(WorkItemBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + self.url = url + + +class WorkItemBehaviorField(Model): + """WorkItemBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, url=None): + super(WorkItemBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.url = url + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +__all__ = [ + 'Control', + 'CreateProcessModel', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'Page', + 'ProcessModel', + 'ProcessProperties', + 'ProjectReference', + 'RuleActionModel', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', +] diff --git a/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py similarity index 99% rename from vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py rename to azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py index 491f57b3..8bf7b14e 100644 --- a/vsts/vsts/work_item_tracking_process/v4_0/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingClient(VssClient): +class WorkItemTrackingClient(Client): """WorkItemTracking :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/notification/v4_0/models/notification_event_type_category.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py similarity index 50% rename from vsts/vsts/notification/v4_0/models/notification_event_type_category.py rename to azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py index 0d3040b6..e287f660 100644 --- a/vsts/vsts/notification/v4_0/models/notification_event_type_category.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py @@ -6,24 +6,30 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from msrest.serialization import Model +from .models import * - -class NotificationEventTypeCategory(Model): - """NotificationEventTypeCategory. - - :param id: Gets or sets the unique identifier of this category. - :type id: str - :param name: Gets or sets the friendly name of this category. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(NotificationEventTypeCategory, self).__init__() - self.id = id - self.name = name +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py new file mode 100644 index 00000000..6fa7ba0f --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py @@ -0,0 +1,795 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorCreateModel(Model): + """BehaviorCreateModel. + + :param color: Color + :type color: str + :param inherits: Parent behavior id + :type inherits: str + :param name: Name of the behavior + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, inherits=None, name=None): + super(BehaviorCreateModel, self).__init__() + self.color = color + self.inherits = inherits + self.name = name + + +class BehaviorModel(Model): + """BehaviorModel. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) + :type abstract: bool + :param color: Color + :type color: str + :param description: Description + :type description: str + :param id: Behavior Id + :type id: str + :param inherits: Parent behavior reference + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: Behavior Name + :type name: str + :param overridden: Is the behavior overrides a behavior from system process + :type overridden: bool + :param rank: Rank + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): + super(BehaviorModel, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.id = id + self.inherits = inherits + self.name = name + self.overridden = overridden + self.rank = rank + self.url = url + + +class BehaviorReplaceModel(Model): + """BehaviorReplaceModel. + + :param color: Color + :type color: str + :param name: Behavior Name + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(BehaviorReplaceModel, self).__init__() + self.color = color + self.name = name + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.name = name + self.pick_list = pick_list + self.type = type + self.url = url + + +class FieldUpdate(Model): + """FieldUpdate. + + :param description: + :type description: str + :param id: + :type id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, description=None, id=None): + super(FieldUpdate, self).__init__() + self.description = description + self.id = id + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class PickListItemModel(Model): + """PickListItemModel. + + :param id: + :type id: str + :param value: + :type value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, id=None, value=None): + super(PickListItemModel, self).__init__() + self.id = id + self.value = value + + +class PickListMetadataModel(Model): + """PickListMetadataModel. + + :param id: + :type id: str + :param is_suggested: + :type is_suggested: bool + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadataModel, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url + + +class PickListModel(PickListMetadataModel): + """PickListModel. + + :param id: + :type id: str + :param is_suggested: + :type is_suggested: bool + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + :param items: + :type items: list of :class:`PickListItemModel ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[PickListItemModel]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: + :type color: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeFieldModel(Model): + """WorkItemTypeFieldModel. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +class WorkItemTypeUpdateModel(Model): + """WorkItemTypeUpdateModel. + + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param is_disabled: + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(WorkItemTypeUpdateModel, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled + + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py similarity index 99% rename from vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py rename to azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py index a5dd2154..812241f3 100644 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/work_item_tracking_process_definitions_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingClient(VssClient): +class WorkItemTrackingClient(Client): """WorkItemTracking :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/__init__.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/__init__.py new file mode 100644 index 00000000..c5c7274f --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AdminBehavior', + 'AdminBehaviorField', + 'CheckTemplateExistenceResult', + 'ProcessImportResult', + 'ProcessPromoteStatus', + 'ValidationIssue', +] diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py new file mode 100644 index 00000000..aa93b5cf --- /dev/null +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py @@ -0,0 +1,219 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AdminBehavior(Model): + """AdminBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param custom: + :type custom: bool + :param description: + :type description: str + :param fields: + :type fields: list of :class:`AdminBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: str + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom': {'key': 'custom', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[AdminBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, abstract=None, color=None, custom=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None): + super(AdminBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.custom = custom + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + + +class AdminBehaviorField(Model): + """AdminBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, name=None): + super(AdminBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.name = name + + +class CheckTemplateExistenceResult(Model): + """CheckTemplateExistenceResult. + + :param does_template_exist: + :type does_template_exist: bool + :param existing_template_name: + :type existing_template_name: str + :param existing_template_type_id: + :type existing_template_type_id: str + :param requested_template_name: + :type requested_template_name: str + """ + + _attribute_map = { + 'does_template_exist': {'key': 'doesTemplateExist', 'type': 'bool'}, + 'existing_template_name': {'key': 'existingTemplateName', 'type': 'str'}, + 'existing_template_type_id': {'key': 'existingTemplateTypeId', 'type': 'str'}, + 'requested_template_name': {'key': 'requestedTemplateName', 'type': 'str'} + } + + def __init__(self, does_template_exist=None, existing_template_name=None, existing_template_type_id=None, requested_template_name=None): + super(CheckTemplateExistenceResult, self).__init__() + self.does_template_exist = does_template_exist + self.existing_template_name = existing_template_name + self.existing_template_type_id = existing_template_type_id + self.requested_template_name = requested_template_name + + +class ProcessImportResult(Model): + """ProcessImportResult. + + :param help_url: + :type help_url: str + :param id: + :type id: str + :param promote_job_id: + :type promote_job_id: str + :param validation_results: + :type validation_results: list of :class:`ValidationIssue ` + """ + + _attribute_map = { + 'help_url': {'key': 'helpUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'promote_job_id': {'key': 'promoteJobId', 'type': 'str'}, + 'validation_results': {'key': 'validationResults', 'type': '[ValidationIssue]'} + } + + def __init__(self, help_url=None, id=None, promote_job_id=None, validation_results=None): + super(ProcessImportResult, self).__init__() + self.help_url = help_url + self.id = id + self.promote_job_id = promote_job_id + self.validation_results = validation_results + + +class ProcessPromoteStatus(Model): + """ProcessPromoteStatus. + + :param complete: + :type complete: int + :param id: + :type id: str + :param message: + :type message: str + :param pending: + :type pending: int + :param remaining_retries: + :type remaining_retries: int + :param successful: + :type successful: bool + """ + + _attribute_map = { + 'complete': {'key': 'complete', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pending': {'key': 'pending', 'type': 'int'}, + 'remaining_retries': {'key': 'remainingRetries', 'type': 'int'}, + 'successful': {'key': 'successful', 'type': 'bool'} + } + + def __init__(self, complete=None, id=None, message=None, pending=None, remaining_retries=None, successful=None): + super(ProcessPromoteStatus, self).__init__() + self.complete = complete + self.id = id + self.message = message + self.pending = pending + self.remaining_retries = remaining_retries + self.successful = successful + + +class ValidationIssue(Model): + """ValidationIssue. + + :param description: + :type description: str + :param file: + :type file: str + :param help_link: + :type help_link: str + :param issue_type: + :type issue_type: object + :param line: + :type line: int + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'file': {'key': 'file', 'type': 'str'}, + 'help_link': {'key': 'helpLink', 'type': 'str'}, + 'issue_type': {'key': 'issueType', 'type': 'object'}, + 'line': {'key': 'line', 'type': 'int'} + } + + def __init__(self, description=None, file=None, help_link=None, issue_type=None, line=None): + super(ValidationIssue, self).__init__() + self.description = description + self.file = file + self.help_link = help_link + self.issue_type = issue_type + self.line = line + + +__all__ = [ + 'AdminBehavior', + 'AdminBehaviorField', + 'CheckTemplateExistenceResult', + 'ProcessImportResult', + 'ProcessPromoteStatus', + 'ValidationIssue', +] diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py similarity index 98% rename from vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py rename to azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py index 96d2060a..c8108669 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/work_item_tracking_process_template_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingProcessTemplateClient(VssClient): +class WorkItemTrackingProcessTemplateClient(Client): """WorkItemTrackingProcessTemplate :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/accounts/__init__.py b/azure-devops/azure/devops/v4_1/__init__.py similarity index 100% rename from vsts/vsts/accounts/__init__.py rename to azure-devops/azure/devops/v4_1/__init__.py diff --git a/azure-devops/azure/devops/v4_1/accounts/__init__.py b/azure-devops/azure/devops/v4_1/accounts/__init__.py new file mode 100644 index 00000000..b98e8401 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/accounts/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Account', + 'AccountCreateInfoInternal', + 'AccountPreferencesInternal', +] diff --git a/vsts/vsts/accounts/v4_1/accounts_client.py b/azure-devops/azure/devops/v4_1/accounts/accounts_client.py similarity index 97% rename from vsts/vsts/accounts/v4_1/accounts_client.py rename to azure-devops/azure/devops/v4_1/accounts/accounts_client.py index 0f4c8c3b..e077131c 100644 --- a/vsts/vsts/accounts/v4_1/accounts_client.py +++ b/azure-devops/azure/devops/v4_1/accounts/accounts_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class AccountsClient(VssClient): +class AccountsClient(Client): """Accounts :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/accounts/v4_1/models/account.py b/azure-devops/azure/devops/v4_1/accounts/models.py similarity index 63% rename from vsts/vsts/accounts/v4_1/models/account.py rename to azure-devops/azure/devops/v4_1/accounts/models.py index a34732cb..53aafc20 100644 --- a/vsts/vsts/accounts/v4_1/models/account.py +++ b/azure-devops/azure/devops/v4_1/accounts/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -83,3 +83,70 @@ def __init__(self, account_id=None, account_name=None, account_owner=None, accou self.organization_name = organization_name self.properties = properties self.status_reason = status_reason + + +class AccountCreateInfoInternal(Model): + """AccountCreateInfoInternal. + + :param account_name: + :type account_name: str + :param creator: + :type creator: str + :param organization: + :type organization: str + :param preferences: + :type preferences: :class:`AccountPreferencesInternal ` + :param properties: + :type properties: :class:`object ` + :param service_definitions: + :type service_definitions: list of { key: str; value: str } + """ + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'creator': {'key': 'creator', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'str'}, + 'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'} + } + + def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None): + super(AccountCreateInfoInternal, self).__init__() + self.account_name = account_name + self.creator = creator + self.organization = organization + self.preferences = preferences + self.properties = properties + self.service_definitions = service_definitions + + +class AccountPreferencesInternal(Model): + """AccountPreferencesInternal. + + :param culture: + :type culture: object + :param language: + :type language: object + :param time_zone: + :type time_zone: object + """ + + _attribute_map = { + 'culture': {'key': 'culture', 'type': 'object'}, + 'language': {'key': 'language', 'type': 'object'}, + 'time_zone': {'key': 'timeZone', 'type': 'object'} + } + + def __init__(self, culture=None, language=None, time_zone=None): + super(AccountPreferencesInternal, self).__init__() + self.culture = culture + self.language = language + self.time_zone = time_zone + + +__all__ = [ + 'Account', + 'AccountCreateInfoInternal', + 'AccountPreferencesInternal', +] diff --git a/azure-devops/azure/devops/v4_1/build/__init__.py b/azure-devops/azure/devops/v4_1/build/__init__.py new file mode 100644 index 00000000..78fe898a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/build/__init__.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentPoolQueue', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByState', + 'ArtifactResource', + 'AssociatedWorkItem', + 'Attachment', + 'AuthorizationHeader', + 'Build', + 'BuildArtifact', + 'BuildBadge', + 'BuildController', + 'BuildDefinition', + 'BuildDefinition3_2', + 'BuildDefinitionReference', + 'BuildDefinitionReference3_2', + 'BuildDefinitionRevision', + 'BuildDefinitionStep', + 'BuildDefinitionTemplate', + 'BuildDefinitionTemplate3_2', + 'BuildDefinitionVariable', + 'BuildLog', + 'BuildLogReference', + 'BuildMetric', + 'BuildOption', + 'BuildOptionDefinition', + 'BuildOptionDefinitionReference', + 'BuildOptionGroupDefinition', + 'BuildOptionInputDefinition', + 'BuildReportMetadata', + 'BuildRepository', + 'BuildRequestValidationResult', + 'BuildResourceUsage', + 'BuildSettings', + 'Change', + 'DataSourceBindingBase', + 'DefinitionReference', + 'Deployment', + 'Folder', + 'GraphSubjectBase', + 'IdentityRef', + 'Issue', + 'JsonPatchOperation', + 'ProcessParameters', + 'ReferenceLinks', + 'ReleaseReference', + 'RepositoryWebhook', + 'ResourceRef', + 'RetentionPolicy', + 'SourceProviderAttributes', + 'SourceRepositories', + 'SourceRepository', + 'SourceRepositoryItem', + 'SupportedTrigger', + 'TaskAgentPoolReference', + 'TaskDefinitionReference', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationPlanReference', + 'TaskReference', + 'TaskSourceDefinitionBase', + 'TeamProjectReference', + 'TestResultsContext', + 'Timeline', + 'TimelineRecord', + 'TimelineReference', + 'VariableGroup', + 'VariableGroupReference', + 'WebApiConnectedServiceRef', + 'XamlBuildControllerReference', +] diff --git a/vsts/vsts/build/v4_1/build_client.py b/azure-devops/azure/devops/v4_1/build/build_client.py similarity index 99% rename from vsts/vsts/build/v4_1/build_client.py rename to azure-devops/azure/devops/v4_1/build/build_client.py index d8813954..f61229a3 100644 --- a/vsts/vsts/build/v4_1/build_client.py +++ b/azure-devops/azure/devops/v4_1/build/build_client.py @@ -7,11 +7,10 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models - -class BuildClient(VssClient): +class BuildClient(Client): """Build :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/build/models.py b/azure-devops/azure/devops/v4_1/build/models.py new file mode 100644 index 00000000..73acfb1c --- /dev/null +++ b/azure-devops/azure/devops/v4_1/build/models.py @@ -0,0 +1,2841 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentPoolQueue(Model): + """AgentPoolQueue. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: The ID of the queue. + :type id: int + :param name: The name of the queue. + :type name: str + :param pool: The pool used by this queue. + :type pool: :class:`TaskAgentPoolReference ` + :param url: The full http link to the resource. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, pool=None, url=None): + super(AgentPoolQueue, self).__init__() + self._links = _links + self.id = id + self.name = name + self.pool = pool + self.url = url + + +class AggregatedResultsAnalysis(Model): + """AggregatedResultsAnalysis. + + :param duration: + :type duration: object + :param not_reported_results_by_outcome: + :type not_reported_results_by_outcome: dict + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + :param results_by_outcome: + :type results_by_outcome: dict + :param results_difference: + :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_state: + :type run_summary_by_state: dict + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): + super(AggregatedResultsAnalysis, self).__init__() + self.duration = duration + self.not_reported_results_by_outcome = not_reported_results_by_outcome + self.previous_context = previous_context + self.results_by_outcome = results_by_outcome + self.results_difference = results_difference + self.run_summary_by_state = run_summary_by_state + self.total_tests = total_tests + + +class AggregatedResultsByOutcome(Model): + """AggregatedResultsByOutcome. + + :param count: + :type count: int + :param duration: + :type duration: object + :param group_by_field: + :type group_by_field: str + :param group_by_value: + :type group_by_value: object + :param outcome: + :type outcome: object + :param rerun_result_count: + :type rerun_result_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'object'}, + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} + } + + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): + super(AggregatedResultsByOutcome, self).__init__() + self.count = count + self.duration = duration + self.group_by_field = group_by_field + self.group_by_value = group_by_value + self.outcome = outcome + self.rerun_result_count = rerun_result_count + + +class AggregatedResultsDifference(Model): + """AggregatedResultsDifference. + + :param increase_in_duration: + :type increase_in_duration: object + :param increase_in_failures: + :type increase_in_failures: int + :param increase_in_other_tests: + :type increase_in_other_tests: int + :param increase_in_passed_tests: + :type increase_in_passed_tests: int + :param increase_in_total_tests: + :type increase_in_total_tests: int + """ + + _attribute_map = { + 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, + 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, + 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, + 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, + 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} + } + + def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): + super(AggregatedResultsDifference, self).__init__() + self.increase_in_duration = increase_in_duration + self.increase_in_failures = increase_in_failures + self.increase_in_other_tests = increase_in_other_tests + self.increase_in_passed_tests = increase_in_passed_tests + self.increase_in_total_tests = increase_in_total_tests + + +class AggregatedRunsByState(Model): + """AggregatedRunsByState. + + :param runs_count: + :type runs_count: int + :param state: + :type state: object + """ + + _attribute_map = { + 'runs_count': {'key': 'runsCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, runs_count=None, state=None): + super(AggregatedRunsByState, self).__init__() + self.runs_count = runs_count + self.state = state + + +class ArtifactResource(Model): + """ArtifactResource. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param data: Type-specific data about the artifact. + :type data: str + :param download_ticket: A secret that can be sent in a request header to retrieve an artifact anonymously. Valid for a limited amount of time. Optional. + :type download_ticket: str + :param download_url: A link to download the resource. + :type download_url: str + :param properties: Type-specific properties of the artifact. + :type properties: dict + :param type: The type of the resource: File container, version control folder, UNC path, etc. + :type type: str + :param url: The full http link to the resource. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'data': {'key': 'data', 'type': 'str'}, + 'download_ticket': {'key': 'downloadTicket', 'type': 'str'}, + 'download_url': {'key': 'downloadUrl', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, data=None, download_ticket=None, download_url=None, properties=None, type=None, url=None): + super(ArtifactResource, self).__init__() + self._links = _links + self.data = data + self.download_ticket = download_ticket + self.download_url = download_url + self.properties = properties + self.type = type + self.url = url + + +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: Id of associated the work item. + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST Url of the work item. + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type + + +class Attachment(Model): + """Attachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param name: The name of the attachment. + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, name=None): + super(Attachment, self).__init__() + self._links = _links + self.name = name + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class Build(Model): + """Build. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param build_number: The build number/name of the build. + :type build_number: str + :param build_number_revision: The build number revision. + :type build_number_revision: int + :param controller: The build controller. This is only set if the definition type is Xaml. + :type controller: :class:`BuildController ` + :param definition: The definition associated with the build. + :type definition: :class:`DefinitionReference ` + :param deleted: Indicates whether the build has been deleted. + :type deleted: bool + :param deleted_by: The identity of the process or person that deleted the build. + :type deleted_by: :class:`IdentityRef ` + :param deleted_date: The date the build was deleted. + :type deleted_date: datetime + :param deleted_reason: The description of how the build was deleted. + :type deleted_reason: str + :param demands: A list of demands that represents the agent capabilities required by this build. + :type demands: list of :class:`object ` + :param finish_time: The time that the build was completed. + :type finish_time: datetime + :param id: The ID of the build. + :type id: int + :param keep_forever: Indicates whether the build should be skipped by retention policies. + :type keep_forever: bool + :param last_changed_by: The identity representing the process or person that last changed the build. + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: The date the build was last changed. + :type last_changed_date: datetime + :param logs: Information about the build logs. + :type logs: :class:`BuildLogReference ` + :param orchestration_plan: The orchestration plan for the build. + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :param parameters: The parameters for the build. + :type parameters: str + :param plans: Orchestration plans associated with the build (build, cleanup) + :type plans: list of :class:`TaskOrchestrationPlanReference ` + :param priority: The build's priority. + :type priority: object + :param project: The team project. + :type project: :class:`TeamProjectReference ` + :param properties: + :type properties: :class:`object ` + :param quality: The quality of the xaml build (good, bad, etc.) + :type quality: str + :param queue: The queue. This is only set if the definition type is Build. + :type queue: :class:`AgentPoolQueue ` + :param queue_options: Additional options for queueing the build. + :type queue_options: object + :param queue_position: The current position of the build in the queue. + :type queue_position: int + :param queue_time: The time that the build was queued. + :type queue_time: datetime + :param reason: The reason that the build was created. + :type reason: object + :param repository: The repository. + :type repository: :class:`BuildRepository ` + :param requested_by: The identity that queued the build. + :type requested_by: :class:`IdentityRef ` + :param requested_for: The identity on whose behalf the build was queued. + :type requested_for: :class:`IdentityRef ` + :param result: The build result. + :type result: object + :param retained_by_release: Indicates whether the build is retained by a release. + :type retained_by_release: bool + :param source_branch: The source branch. + :type source_branch: str + :param source_version: The source version. + :type source_version: str + :param start_time: The time that the build was started. + :type start_time: datetime + :param status: The status of the build. + :type status: object + :param tags: + :type tags: list of str + :param triggered_by_build: The build that triggered this build via a Build completion trigger. + :type triggered_by_build: :class:`Build ` + :param trigger_info: Sourceprovider-specific information about what triggered the build + :type trigger_info: dict + :param uri: The URI of the build. + :type uri: str + :param url: The REST URL of the build. + :type url: str + :param validation_results: + :type validation_results: list of :class:`BuildRequestValidationResult ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'build_number': {'key': 'buildNumber', 'type': 'str'}, + 'build_number_revision': {'key': 'buildNumberRevision', 'type': 'int'}, + 'controller': {'key': 'controller', 'type': 'BuildController'}, + 'definition': {'key': 'definition', 'type': 'DefinitionReference'}, + 'deleted': {'key': 'deleted', 'type': 'bool'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'deleted_reason': {'key': 'deletedReason', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'logs': {'key': 'logs', 'type': 'BuildLogReference'}, + 'orchestration_plan': {'key': 'orchestrationPlan', 'type': 'TaskOrchestrationPlanReference'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'plans': {'key': 'plans', 'type': '[TaskOrchestrationPlanReference]'}, + 'priority': {'key': 'priority', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quality': {'key': 'quality', 'type': 'str'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, + 'queue_options': {'key': 'queueOptions', 'type': 'object'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'repository': {'key': 'repository', 'type': 'BuildRepository'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'result': {'key': 'result', 'type': 'object'}, + 'retained_by_release': {'key': 'retainedByRelease', 'type': 'bool'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggered_by_build': {'key': 'triggeredByBuild', 'type': 'Build'}, + 'trigger_info': {'key': 'triggerInfo', 'type': '{str}'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'} + } + + def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, triggered_by_build=None, trigger_info=None, uri=None, url=None, validation_results=None): + super(Build, self).__init__() + self._links = _links + self.build_number = build_number + self.build_number_revision = build_number_revision + self.controller = controller + self.definition = definition + self.deleted = deleted + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.deleted_reason = deleted_reason + self.demands = demands + self.finish_time = finish_time + self.id = id + self.keep_forever = keep_forever + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.logs = logs + self.orchestration_plan = orchestration_plan + self.parameters = parameters + self.plans = plans + self.priority = priority + self.project = project + self.properties = properties + self.quality = quality + self.queue = queue + self.queue_options = queue_options + self.queue_position = queue_position + self.queue_time = queue_time + self.reason = reason + self.repository = repository + self.requested_by = requested_by + self.requested_for = requested_for + self.result = result + self.retained_by_release = retained_by_release + self.source_branch = source_branch + self.source_version = source_version + self.start_time = start_time + self.status = status + self.tags = tags + self.triggered_by_build = triggered_by_build + self.trigger_info = trigger_info + self.uri = uri + self.url = url + self.validation_results = validation_results + + +class BuildArtifact(Model): + """BuildArtifact. + + :param id: The artifact ID. + :type id: int + :param name: The name of the artifact. + :type name: str + :param resource: The actual resource. + :type resource: :class:`ArtifactResource ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'ArtifactResource'} + } + + def __init__(self, id=None, name=None, resource=None): + super(BuildArtifact, self).__init__() + self.id = id + self.name = name + self.resource = resource + + +class BuildBadge(Model): + """BuildBadge. + + :param build_id: The ID of the build represented by this badge. + :type build_id: int + :param image_url: A link to the SVG resource. + :type image_url: str + """ + + _attribute_map = { + 'build_id': {'key': 'buildId', 'type': 'int'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'} + } + + def __init__(self, build_id=None, image_url=None): + super(BuildBadge, self).__init__() + self.build_id = build_id + self.image_url = image_url + + +class BuildDefinitionRevision(Model): + """BuildDefinitionRevision. + + :param changed_by: The identity of the person or process that changed the definition. + :type changed_by: :class:`IdentityRef ` + :param changed_date: The date and time that the definition was changed. + :type changed_date: datetime + :param change_type: The change type (add, edit, delete). + :type change_type: object + :param comment: The comment associated with the change. + :type comment: str + :param definition_url: A link to the definition at this revision. + :type definition_url: str + :param name: The name of the definition. + :type name: str + :param revision: The revision number. + :type revision: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, definition_url=None, name=None, revision=None): + super(BuildDefinitionRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_url = definition_url + self.name = name + self.revision = revision + + +class BuildDefinitionStep(Model): + """BuildDefinitionStep. + + :param always_run: Indicates whether this step should run even if a previous step fails. + :type always_run: bool + :param condition: A condition that determines whether this step should run. + :type condition: str + :param continue_on_error: Indicates whether the phase should continue even if this step fails. + :type continue_on_error: bool + :param display_name: The display name for this step. + :type display_name: str + :param enabled: Indicates whether the step is enabled. + :type enabled: bool + :param environment: + :type environment: dict + :param inputs: + :type inputs: dict + :param ref_name: The reference name for this step. + :type ref_name: str + :param task: The task associated with this step. + :type task: :class:`TaskDefinitionReference ` + :param timeout_in_minutes: The time, in minutes, that this step is allowed to run. + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'environment': {'key': 'environment', 'type': '{str}'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, environment=None, inputs=None, ref_name=None, task=None, timeout_in_minutes=None): + super(BuildDefinitionStep, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.display_name = display_name + self.enabled = enabled + self.environment = environment + self.inputs = inputs + self.ref_name = ref_name + self.task = task + self.timeout_in_minutes = timeout_in_minutes + + +class BuildDefinitionTemplate(Model): + """BuildDefinitionTemplate. + + :param can_delete: Indicates whether the template can be deleted. + :type can_delete: bool + :param category: The template category. + :type category: str + :param default_hosted_queue: An optional hosted agent queue for the template to use by default. + :type default_hosted_queue: str + :param description: A description of the template. + :type description: str + :param icons: + :type icons: dict + :param icon_task_id: The ID of the task whose icon is used when showing this template in the UI. + :type icon_task_id: str + :param id: The ID of the template. + :type id: str + :param name: The name of the template. + :type name: str + :param template: The actual template. + :type template: :class:`BuildDefinition ` + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icons': {'key': 'icons', 'type': '{str}'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'BuildDefinition'} + } + + def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + super(BuildDefinitionTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.default_hosted_queue = default_hosted_queue + self.description = description + self.icons = icons + self.icon_task_id = icon_task_id + self.id = id + self.name = name + self.template = template + + +class BuildDefinitionTemplate3_2(Model): + """BuildDefinitionTemplate3_2. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param default_hosted_queue: + :type default_hosted_queue: str + :param description: + :type description: str + :param icons: + :type icons: dict + :param icon_task_id: + :type icon_task_id: str + :param id: + :type id: str + :param name: + :type name: str + :param template: + :type template: :class:`BuildDefinition3_2 ` + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icons': {'key': 'icons', 'type': '{str}'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'BuildDefinition3_2'} + } + + def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + super(BuildDefinitionTemplate3_2, self).__init__() + self.can_delete = can_delete + self.category = category + self.default_hosted_queue = default_hosted_queue + self.description = description + self.icons = icons + self.icon_task_id = icon_task_id + self.id = id + self.name = name + self.template = template + + +class BuildDefinitionVariable(Model): + """BuildDefinitionVariable. + + :param allow_override: Indicates whether the value can be set at queue time. + :type allow_override: bool + :param is_secret: Indicates whether the variable's value is a secret. + :type is_secret: bool + :param value: The value of the variable. + :type value: str + """ + + _attribute_map = { + 'allow_override': {'key': 'allowOverride', 'type': 'bool'}, + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, allow_override=None, is_secret=None, value=None): + super(BuildDefinitionVariable, self).__init__() + self.allow_override = allow_override + self.is_secret = is_secret + self.value = value + + +class BuildLogReference(Model): + """BuildLogReference. + + :param id: The ID of the log. + :type id: int + :param type: The type of the log location. + :type type: str + :param url: A full link to the log resource. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, type=None, url=None): + super(BuildLogReference, self).__init__() + self.id = id + self.type = type + self.url = url + + +class BuildMetric(Model): + """BuildMetric. + + :param date: The date for the scope. + :type date: datetime + :param int_value: The value. + :type int_value: int + :param name: The name of the metric. + :type name: str + :param scope: The scope. + :type scope: str + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'int_value': {'key': 'intValue', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, date=None, int_value=None, name=None, scope=None): + super(BuildMetric, self).__init__() + self.date = date + self.int_value = int_value + self.name = name + self.scope = scope + + +class BuildOption(Model): + """BuildOption. + + :param definition: A reference to the build option. + :type definition: :class:`BuildOptionDefinitionReference ` + :param enabled: Indicates whether the behavior is enabled. + :type enabled: bool + :param inputs: + :type inputs: dict + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'BuildOptionDefinitionReference'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'} + } + + def __init__(self, definition=None, enabled=None, inputs=None): + super(BuildOption, self).__init__() + self.definition = definition + self.enabled = enabled + self.inputs = inputs + + +class BuildOptionDefinitionReference(Model): + """BuildOptionDefinitionReference. + + :param id: The ID of the referenced build option. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(BuildOptionDefinitionReference, self).__init__() + self.id = id + + +class BuildOptionGroupDefinition(Model): + """BuildOptionGroupDefinition. + + :param display_name: The name of the group to display in the UI. + :type display_name: str + :param is_expanded: Indicates whether the group is initially displayed as expanded in the UI. + :type is_expanded: bool + :param name: The internal name of the group. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, display_name=None, is_expanded=None, name=None): + super(BuildOptionGroupDefinition, self).__init__() + self.display_name = display_name + self.is_expanded = is_expanded + self.name = name + + +class BuildOptionInputDefinition(Model): + """BuildOptionInputDefinition. + + :param default_value: The default value. + :type default_value: str + :param group_name: The name of the input group that this input belongs to. + :type group_name: str + :param help: + :type help: dict + :param label: The label for the input. + :type label: str + :param name: The name of the input. + :type name: str + :param options: + :type options: dict + :param required: Indicates whether the input is required to have a value. + :type required: bool + :param type: Indicates the type of the input value. + :type type: object + :param visible_rule: The rule that is applied to determine whether the input is visible in the UI. + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help': {'key': 'help', 'type': '{str}'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, default_value=None, group_name=None, help=None, label=None, name=None, options=None, required=None, type=None, visible_rule=None): + super(BuildOptionInputDefinition, self).__init__() + self.default_value = default_value + self.group_name = group_name + self.help = help + self.label = label + self.name = name + self.options = options + self.required = required + self.type = type + self.visible_rule = visible_rule + + +class BuildReportMetadata(Model): + """BuildReportMetadata. + + :param build_id: The Id of the build. + :type build_id: int + :param content: The content of the report. + :type content: str + :param type: The type of the report. + :type type: str + """ + + _attribute_map = { + 'build_id': {'key': 'buildId', 'type': 'int'}, + 'content': {'key': 'content', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, build_id=None, content=None, type=None): + super(BuildReportMetadata, self).__init__() + self.build_id = build_id + self.content = content + self.type = type + + +class BuildRepository(Model): + """BuildRepository. + + :param checkout_submodules: Indicates whether to checkout submodules. + :type checkout_submodules: bool + :param clean: Indicates whether to clean the target folder when getting code from the repository. + :type clean: str + :param default_branch: The name of the default branch. + :type default_branch: str + :param id: The ID of the repository. + :type id: str + :param name: The friendly name of the repository. + :type name: str + :param properties: + :type properties: dict + :param root_folder: The root folder. + :type root_folder: str + :param type: The type of the repository. + :type type: str + :param url: The URL of the repository. + :type url: str + """ + + _attribute_map = { + 'checkout_submodules': {'key': 'checkoutSubmodules', 'type': 'bool'}, + 'clean': {'key': 'clean', 'type': 'str'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'root_folder': {'key': 'rootFolder', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, checkout_submodules=None, clean=None, default_branch=None, id=None, name=None, properties=None, root_folder=None, type=None, url=None): + super(BuildRepository, self).__init__() + self.checkout_submodules = checkout_submodules + self.clean = clean + self.default_branch = default_branch + self.id = id + self.name = name + self.properties = properties + self.root_folder = root_folder + self.type = type + self.url = url + + +class BuildRequestValidationResult(Model): + """BuildRequestValidationResult. + + :param message: The message associated with the result. + :type message: str + :param result: The result. + :type result: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'} + } + + def __init__(self, message=None, result=None): + super(BuildRequestValidationResult, self).__init__() + self.message = message + self.result = result + + +class BuildResourceUsage(Model): + """BuildResourceUsage. + + :param distributed_task_agents: The number of build agents. + :type distributed_task_agents: int + :param paid_private_agent_slots: The number of paid private agent slots. + :type paid_private_agent_slots: int + :param total_usage: The total usage. + :type total_usage: int + :param xaml_controllers: The number of XAML controllers. + :type xaml_controllers: int + """ + + _attribute_map = { + 'distributed_task_agents': {'key': 'distributedTaskAgents', 'type': 'int'}, + 'paid_private_agent_slots': {'key': 'paidPrivateAgentSlots', 'type': 'int'}, + 'total_usage': {'key': 'totalUsage', 'type': 'int'}, + 'xaml_controllers': {'key': 'xamlControllers', 'type': 'int'} + } + + def __init__(self, distributed_task_agents=None, paid_private_agent_slots=None, total_usage=None, xaml_controllers=None): + super(BuildResourceUsage, self).__init__() + self.distributed_task_agents = distributed_task_agents + self.paid_private_agent_slots = paid_private_agent_slots + self.total_usage = total_usage + self.xaml_controllers = xaml_controllers + + +class BuildSettings(Model): + """BuildSettings. + + :param days_to_keep_deleted_builds_before_destroy: The number of days to keep records of deleted builds. + :type days_to_keep_deleted_builds_before_destroy: int + :param default_retention_policy: The default retention policy. + :type default_retention_policy: :class:`RetentionPolicy ` + :param maximum_retention_policy: The maximum retention policy. + :type maximum_retention_policy: :class:`RetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_builds_before_destroy': {'key': 'daysToKeepDeletedBuildsBeforeDestroy', 'type': 'int'}, + 'default_retention_policy': {'key': 'defaultRetentionPolicy', 'type': 'RetentionPolicy'}, + 'maximum_retention_policy': {'key': 'maximumRetentionPolicy', 'type': 'RetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_builds_before_destroy=None, default_retention_policy=None, maximum_retention_policy=None): + super(BuildSettings, self).__init__() + self.days_to_keep_deleted_builds_before_destroy = days_to_keep_deleted_builds_before_destroy + self.default_retention_policy = default_retention_policy + self.maximum_retention_policy = maximum_retention_policy + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: The description of the change. This might be a commit message or changeset description. + :type message: str + :param message_truncated: Indicates whether the message was truncated. + :type message_truncated: bool + :param pusher: The person or process that pushed the change. + :type pusher: str + :param timestamp: The timestamp for the change. + :type timestamp: datetime + :param type: The type of change. "commit", "changeset", etc. + :type type: str + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'message_truncated': {'key': 'messageTruncated', 'type': 'bool'}, + 'pusher': {'key': 'pusher', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, pusher=None, timestamp=None, type=None): + super(Change, self).__init__() + self.author = author + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.message_truncated = message_truncated + self.pusher = pusher + self.timestamp = timestamp + self.type = type + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DefinitionReference(Model): + """DefinitionReference. + + :param created_date: The date the definition was created. + :type created_date: datetime + :param id: The ID of the referenced definition. + :type id: int + :param name: The name of the referenced definition. + :type name: str + :param path: The folder path of the definition. + :type path: str + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The definition's URI. + :type uri: str + :param url: The REST URL of the definition. + :type url: str + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None): + super(DefinitionReference, self).__init__() + self.created_date = created_date + self.id = id + self.name = name + self.path = path + self.project = project + self.queue_status = queue_status + self.revision = revision + self.type = type + self.uri = uri + self.url = url + + +class Deployment(Model): + """Deployment. + + :param type: + :type type: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, type=None): + super(Deployment, self).__init__() + self.type = type + + +class Folder(Model): + """Folder. + + :param created_by: The process or person who created the folder. + :type created_by: :class:`IdentityRef ` + :param created_on: The date the folder was created. + :type created_on: datetime + :param description: The description. + :type description: str + :param last_changed_by: The process or person that last changed the folder. + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: The date the folder was last changed. + :type last_changed_date: datetime + :param path: The full path. + :type path: str + :param project: The project. + :type project: :class:`TeamProjectReference ` + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None, project=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path + self.project = project + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class Issue(Model): + """Issue. + + :param category: The category. + :type category: str + :param data: + :type data: dict + :param message: A description of the issue. + :type message: str + :param type: The type (error, warning) of the issue. + :type type: object + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, category=None, data=None, message=None, type=None): + super(Issue, self).__init__() + self.category = category + self.data = data + self.message = message + self.type = type + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ReleaseReference(Model): + """ReleaseReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + :param environment_definition_name: + :type environment_definition_name: str + :param environment_id: + :type environment_id: int + :param environment_name: + :type environment_name: str + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, + 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + super(ReleaseReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + self.environment_definition_name = environment_definition_name + self.environment_id = environment_id + self.environment_name = environment_name + self.id = id + self.name = name + + +class RepositoryWebhook(Model): + """RepositoryWebhook. + + :param name: The friendly name of the repository. + :type name: str + :param types: + :type types: list of DefinitionTriggerType + :param url: The URL of the repository. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'types': {'key': 'types', 'type': '[object]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, types=None, url=None): + super(RepositoryWebhook, self).__init__() + self.name = name + self.types = types + self.url = url + + +class ResourceRef(Model): + """ResourceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(ResourceRef, self).__init__() + self.id = id + self.url = url + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param artifacts: + :type artifacts: list of str + :param artifact_types_to_delete: + :type artifact_types_to_delete: list of str + :param branches: + :type branches: list of str + :param days_to_keep: The number of days to keep builds. + :type days_to_keep: int + :param delete_build_record: Indicates whether the build record itself should be deleted. + :type delete_build_record: bool + :param delete_test_results: Indicates whether to delete test results associated with the build. + :type delete_test_results: bool + :param minimum_to_keep: The minimum number of builds to keep. + :type minimum_to_keep: int + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[str]'}, + 'artifact_types_to_delete': {'key': 'artifactTypesToDelete', 'type': '[str]'}, + 'branches': {'key': 'branches', 'type': '[str]'}, + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'delete_build_record': {'key': 'deleteBuildRecord', 'type': 'bool'}, + 'delete_test_results': {'key': 'deleteTestResults', 'type': 'bool'}, + 'minimum_to_keep': {'key': 'minimumToKeep', 'type': 'int'} + } + + def __init__(self, artifacts=None, artifact_types_to_delete=None, branches=None, days_to_keep=None, delete_build_record=None, delete_test_results=None, minimum_to_keep=None): + super(RetentionPolicy, self).__init__() + self.artifacts = artifacts + self.artifact_types_to_delete = artifact_types_to_delete + self.branches = branches + self.days_to_keep = days_to_keep + self.delete_build_record = delete_build_record + self.delete_test_results = delete_test_results + self.minimum_to_keep = minimum_to_keep + + +class SourceProviderAttributes(Model): + """SourceProviderAttributes. + + :param name: The name of the source provider. + :type name: str + :param supported_capabilities: The capabilities supported by this source provider. + :type supported_capabilities: dict + :param supported_triggers: The types of triggers supported by this source provider. + :type supported_triggers: list of :class:`SupportedTrigger ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{bool}'}, + 'supported_triggers': {'key': 'supportedTriggers', 'type': '[SupportedTrigger]'} + } + + def __init__(self, name=None, supported_capabilities=None, supported_triggers=None): + super(SourceProviderAttributes, self).__init__() + self.name = name + self.supported_capabilities = supported_capabilities + self.supported_triggers = supported_triggers + + +class SourceRepositories(Model): + """SourceRepositories. + + :param continuation_token: A token used to continue this paged request; 'null' if the request is complete + :type continuation_token: str + :param page_length: The number of repositories requested for each page + :type page_length: int + :param repositories: A list of repositories + :type repositories: list of :class:`SourceRepository ` + :param total_page_count: The total number of pages, or '-1' if unknown + :type total_page_count: int + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'page_length': {'key': 'pageLength', 'type': 'int'}, + 'repositories': {'key': 'repositories', 'type': '[SourceRepository]'}, + 'total_page_count': {'key': 'totalPageCount', 'type': 'int'} + } + + def __init__(self, continuation_token=None, page_length=None, repositories=None, total_page_count=None): + super(SourceRepositories, self).__init__() + self.continuation_token = continuation_token + self.page_length = page_length + self.repositories = repositories + self.total_page_count = total_page_count + + +class SourceRepository(Model): + """SourceRepository. + + :param default_branch: The name of the default branch. + :type default_branch: str + :param full_name: The full name of the repository. + :type full_name: str + :param id: The ID of the repository. + :type id: str + :param name: The friendly name of the repository. + :type name: str + :param properties: + :type properties: dict + :param source_provider_name: The name of the source provider the repository is from. + :type source_provider_name: str + :param url: The URL of the repository. + :type url: str + """ + + _attribute_map = { + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'full_name': {'key': 'fullName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'source_provider_name': {'key': 'sourceProviderName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, default_branch=None, full_name=None, id=None, name=None, properties=None, source_provider_name=None, url=None): + super(SourceRepository, self).__init__() + self.default_branch = default_branch + self.full_name = full_name + self.id = id + self.name = name + self.properties = properties + self.source_provider_name = source_provider_name + self.url = url + + +class SourceRepositoryItem(Model): + """SourceRepositoryItem. + + :param is_container: Whether the item is able to have sub-items (e.g., is a folder). + :type is_container: bool + :param path: The full path of the item, relative to the root of the repository. + :type path: str + :param type: The type of the item (folder, file, etc). + :type type: str + :param url: The URL of the item. + :type url: str + """ + + _attribute_map = { + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, is_container=None, path=None, type=None, url=None): + super(SourceRepositoryItem, self).__init__() + self.is_container = is_container + self.path = path + self.type = type + self.url = url + + +class SupportedTrigger(Model): + """SupportedTrigger. + + :param default_polling_interval: The default interval to wait between polls (only relevant when NotificationType is Polling). + :type default_polling_interval: int + :param notification_type: How the trigger is notified of changes. + :type notification_type: str + :param supported_capabilities: The capabilities supported by this trigger. + :type supported_capabilities: dict + :param type: The type of trigger. + :type type: object + """ + + _attribute_map = { + 'default_polling_interval': {'key': 'defaultPollingInterval', 'type': 'int'}, + 'notification_type': {'key': 'notificationType', 'type': 'str'}, + 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, default_polling_interval=None, notification_type=None, supported_capabilities=None, type=None): + super(SupportedTrigger, self).__init__() + self.default_polling_interval = default_polling_interval + self.notification_type = notification_type + self.supported_capabilities = supported_capabilities + self.type = type + + +class TaskAgentPoolReference(Model): + """TaskAgentPoolReference. + + :param id: The pool ID. + :type id: int + :param is_hosted: A value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: The pool name. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, is_hosted=None, name=None): + super(TaskAgentPoolReference, self).__init__() + self.id = id + self.is_hosted = is_hosted + self.name = name + + +class TaskDefinitionReference(Model): + """TaskDefinitionReference. + + :param definition_type: The type of task (task or task group). + :type definition_type: str + :param id: The ID of the task. + :type id: str + :param version_spec: The version of the task. + :type version_spec: str + """ + + _attribute_map = { + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'version_spec': {'key': 'versionSpec', 'type': 'str'} + } + + def __init__(self, definition_type=None, id=None, version_spec=None): + super(TaskDefinitionReference, self).__init__() + self.definition_type = definition_type + self.id = id + self.version_spec = version_spec + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskOrchestrationPlanReference(Model): + """TaskOrchestrationPlanReference. + + :param orchestration_type: The type of the plan. + :type orchestration_type: int + :param plan_id: The ID of the plan. + :type plan_id: str + """ + + _attribute_map = { + 'orchestration_type': {'key': 'orchestrationType', 'type': 'int'}, + 'plan_id': {'key': 'planId', 'type': 'str'} + } + + def __init__(self, orchestration_type=None, plan_id=None): + super(TaskOrchestrationPlanReference, self).__init__() + self.orchestration_type = orchestration_type + self.plan_id = plan_id + + +class TaskReference(Model): + """TaskReference. + + :param id: The ID of the task definition. + :type id: str + :param name: The name of the task definition. + :type name: str + :param version: The version of the task definition. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.name = name + self.version = version + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class TestResultsContext(Model): + """TestResultsContext. + + :param build: + :type build: :class:`BuildReference ` + :param context_type: + :type context_type: object + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'context_type': {'key': 'contextType', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, context_type=None, release=None): + super(TestResultsContext, self).__init__() + self.build = build + self.context_type = context_type + self.release = release + + +class TimelineRecord(Model): + """TimelineRecord. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param change_id: The change ID. + :type change_id: int + :param current_operation: A string that indicates the current operation. + :type current_operation: str + :param details: A reference to a sub-timeline. + :type details: :class:`TimelineReference ` + :param error_count: The number of errors produced by this operation. + :type error_count: int + :param finish_time: The finish time. + :type finish_time: datetime + :param id: The ID of the record. + :type id: str + :param issues: + :type issues: list of :class:`Issue ` + :param last_modified: The time the record was last modified. + :type last_modified: datetime + :param log: A reference to the log produced by this operation. + :type log: :class:`BuildLogReference ` + :param name: The name. + :type name: str + :param order: An ordinal value relative to other records. + :type order: int + :param parent_id: The ID of the record's parent. + :type parent_id: str + :param percent_complete: The current completion percentage. + :type percent_complete: int + :param result: The result. + :type result: object + :param result_code: The result code. + :type result_code: str + :param start_time: The start time. + :type start_time: datetime + :param state: The state of the record. + :type state: object + :param task: A reference to the task represented by this timeline record. + :type task: :class:`TaskReference ` + :param type: The type of the record. + :type type: str + :param url: The REST URL of the timeline record. + :type url: str + :param warning_count: The number of warnings produced by this operation. + :type warning_count: int + :param worker_name: The name of the agent running the operation. + :type worker_name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'current_operation': {'key': 'currentOperation', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'TimelineReference'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'log': {'key': 'log', 'type': 'BuildLogReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'TaskReference'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'}, + 'worker_name': {'key': 'workerName', 'type': 'str'} + } + + def __init__(self, _links=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): + super(TimelineRecord, self).__init__() + self._links = _links + self.change_id = change_id + self.current_operation = current_operation + self.details = details + self.error_count = error_count + self.finish_time = finish_time + self.id = id + self.issues = issues + self.last_modified = last_modified + self.log = log + self.name = name + self.order = order + self.parent_id = parent_id + self.percent_complete = percent_complete + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.task = task + self.type = type + self.url = url + self.warning_count = warning_count + self.worker_name = worker_name + + +class TimelineReference(Model): + """TimelineReference. + + :param change_id: The change ID. + :type change_id: int + :param id: The ID of the timeline. + :type id: str + :param url: The REST URL of the timeline. + :type url: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_id=None, id=None, url=None): + super(TimelineReference, self).__init__() + self.change_id = change_id + self.id = id + self.url = url + + +class VariableGroupReference(Model): + """VariableGroupReference. + + :param id: The ID of the variable group. + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(VariableGroupReference, self).__init__() + self.id = id + + +class WebApiConnectedServiceRef(Model): + """WebApiConnectedServiceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WebApiConnectedServiceRef, self).__init__() + self.id = id + self.url = url + + +class XamlBuildControllerReference(Model): + """XamlBuildControllerReference. + + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(XamlBuildControllerReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class BuildController(XamlBuildControllerReference): + """BuildController. + + :param id: Id of the resource + :type id: int + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_date: The date the controller was created. + :type created_date: datetime + :param description: The description of the controller. + :type description: str + :param enabled: Indicates whether the controller is enabled. + :type enabled: bool + :param status: The status of the controller. + :type status: object + :param updated_date: The date the controller was last updated. + :type updated_date: datetime + :param uri: The controller's URI. + :type uri: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'status': {'key': 'status', 'type': 'object'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, created_date=None, description=None, enabled=None, status=None, updated_date=None, uri=None): + super(BuildController, self).__init__(id=id, name=name, url=url) + self._links = _links + self.created_date = created_date + self.description = description + self.enabled = enabled + self.status = status + self.updated_date = updated_date + self.uri = uri + + +class BuildDefinitionReference(DefinitionReference): + """BuildDefinitionReference. + + :param created_date: The date the definition was created. + :type created_date: datetime + :param id: The ID of the referenced definition. + :type id: int + :param name: The name of the referenced definition. + :type name: str + :param path: The folder path of the definition. + :type path: str + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The definition's URI. + :type uri: str + :param url: The REST URL of the definition. + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None): + super(BuildDefinitionReference, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) + self._links = _links + self.authored_by = authored_by + self.draft_of = draft_of + self.drafts = drafts + self.latest_build = latest_build + self.latest_completed_build = latest_completed_build + self.metrics = metrics + self.quality = quality + self.queue = queue + + +class BuildDefinitionReference3_2(DefinitionReference): + """BuildDefinitionReference3_2. + + :param created_date: The date the definition was created. + :type created_date: datetime + :param id: The ID of the referenced definition. + :type id: int + :param name: The name of the referenced definition. + :type name: str + :param path: The folder path of the definition. + :type path: str + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The definition's URI. + :type uri: str + :param url: The REST URL of the definition. + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None): + super(BuildDefinitionReference3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) + self._links = _links + self.authored_by = authored_by + self.draft_of = draft_of + self.drafts = drafts + self.metrics = metrics + self.quality = quality + self.queue = queue + + +class BuildLog(BuildLogReference): + """BuildLog. + + :param id: The ID of the log. + :type id: int + :param type: The type of the log location. + :type type: str + :param url: A full link to the log resource. + :type url: str + :param created_on: The date and time the log was created. + :type created_on: datetime + :param last_changed_on: The date and time the log was last changed. + :type last_changed_on: datetime + :param line_count: The number of lines in the log. + :type line_count: long + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'line_count': {'key': 'lineCount', 'type': 'long'} + } + + def __init__(self, id=None, type=None, url=None, created_on=None, last_changed_on=None, line_count=None): + super(BuildLog, self).__init__(id=id, type=type, url=url) + self.created_on = created_on + self.last_changed_on = last_changed_on + self.line_count = line_count + + +class BuildOptionDefinition(BuildOptionDefinitionReference): + """BuildOptionDefinition. + + :param id: The ID of the referenced build option. + :type id: str + :param description: The description. + :type description: str + :param groups: The list of input groups defined for the build option. + :type groups: list of :class:`BuildOptionGroupDefinition ` + :param inputs: The list of inputs defined for the build option. + :type inputs: list of :class:`BuildOptionInputDefinition ` + :param name: The name of the build option. + :type name: str + :param ordinal: A value that indicates the relative order in which the behavior should be applied. + :type ordinal: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[BuildOptionGroupDefinition]'}, + 'inputs': {'key': 'inputs', 'type': '[BuildOptionInputDefinition]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'ordinal': {'key': 'ordinal', 'type': 'int'} + } + + def __init__(self, id=None, description=None, groups=None, inputs=None, name=None, ordinal=None): + super(BuildOptionDefinition, self).__init__(id=id) + self.description = description + self.groups = groups + self.inputs = inputs + self.name = name + self.ordinal = ordinal + + +class Timeline(TimelineReference): + """Timeline. + + :param change_id: The change ID. + :type change_id: int + :param id: The ID of the timeline. + :type id: str + :param url: The REST URL of the timeline. + :type url: str + :param last_changed_by: The process or person that last changed the timeline. + :type last_changed_by: str + :param last_changed_on: The time the timeline was last changed. + :type last_changed_on: datetime + :param records: + :type records: list of :class:`TimelineRecord ` + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'records': {'key': 'records', 'type': '[TimelineRecord]'} + } + + def __init__(self, change_id=None, id=None, url=None, last_changed_by=None, last_changed_on=None, records=None): + super(Timeline, self).__init__(change_id=change_id, id=id, url=url) + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.records = records + + +class VariableGroup(VariableGroupReference): + """VariableGroup. + + :param id: The ID of the variable group. + :type id: int + :param description: The description. + :type description: str + :param name: The name of the variable group. + :type name: str + :param type: The type of the variable group. + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} + } + + def __init__(self, id=None, description=None, name=None, type=None, variables=None): + super(VariableGroup, self).__init__(id=id) + self.description = description + self.name = name + self.type = type + self.variables = variables + + +class BuildDefinition(BuildDefinitionReference): + """BuildDefinition. + + :param created_date: The date the definition was created. + :type created_date: datetime + :param id: The ID of the referenced definition. + :type id: int + :param name: The name of the referenced definition. + :type name: str + :param path: The folder path of the definition. + :type path: str + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The definition's URI. + :type uri: str + :param url: The REST URL of the definition. + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` + :param badge_enabled: Indicates whether badges are enabled for this definition. + :type badge_enabled: bool + :param build_number_format: The build number format. + :type build_number_format: str + :param comment: A save-time comment for the definition. + :type comment: str + :param demands: + :type demands: list of :class:`object ` + :param description: The description. + :type description: str + :param drop_location: The drop location for the definition. + :type drop_location: str + :param job_authorization_scope: The job authorization scope for builds queued against this definition. + :type job_authorization_scope: object + :param job_cancel_timeout_in_minutes: The job cancel timeout (in minutes) for builds cancelled by user for this definition. + :type job_cancel_timeout_in_minutes: int + :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. + :type job_timeout_in_minutes: int + :param options: + :type options: list of :class:`BuildOption ` + :param process: The build process. + :type process: :class:`object ` + :param process_parameters: The process parameters for this definition. + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param repository: The repository. + :type repository: :class:`BuildRepository ` + :param retention_rules: + :type retention_rules: list of :class:`RetentionPolicy ` + :param tags: + :type tags: list of str + :param triggers: + :type triggers: list of :class:`object ` + :param variable_groups: + :type variable_groups: list of :class:`VariableGroup ` + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, + 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, + 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'options': {'key': 'options', 'type': '[BuildOption]'}, + 'process': {'key': 'process', 'type': 'object'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'repository': {'key': 'repository', 'type': 'BuildRepository'}, + 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): + super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, latest_build=latest_build, latest_completed_build=latest_completed_build, metrics=metrics, quality=quality, queue=queue) + self.badge_enabled = badge_enabled + self.build_number_format = build_number_format + self.comment = comment + self.demands = demands + self.description = description + self.drop_location = drop_location + self.job_authorization_scope = job_authorization_scope + self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes + self.job_timeout_in_minutes = job_timeout_in_minutes + self.options = options + self.process = process + self.process_parameters = process_parameters + self.properties = properties + self.repository = repository + self.retention_rules = retention_rules + self.tags = tags + self.triggers = triggers + self.variable_groups = variable_groups + self.variables = variables + + +class BuildDefinition3_2(BuildDefinitionReference3_2): + """BuildDefinition3_2. + + :param created_date: The date the definition was created. + :type created_date: datetime + :param id: The ID of the referenced definition. + :type id: int + :param name: The name of the referenced definition. + :type name: str + :param path: The folder path of the definition. + :type path: str + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The definition's URI. + :type uri: str + :param url: The REST URL of the definition. + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` + :param badge_enabled: Indicates whether badges are enabled for this definition + :type badge_enabled: bool + :param build: + :type build: list of :class:`BuildDefinitionStep ` + :param build_number_format: The build number format + :type build_number_format: str + :param comment: The comment entered when saving the definition + :type comment: str + :param demands: + :type demands: list of :class:`object ` + :param description: The description + :type description: str + :param drop_location: The drop location for the definition + :type drop_location: str + :param job_authorization_scope: The job authorization scope for builds which are queued against this definition + :type job_authorization_scope: object + :param job_cancel_timeout_in_minutes: The job cancel timeout in minutes for builds which are cancelled by user for this definition + :type job_cancel_timeout_in_minutes: int + :param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition + :type job_timeout_in_minutes: int + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` + :param options: + :type options: list of :class:`BuildOption ` + :param process_parameters: Process Parameters + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param repository: The repository + :type repository: :class:`BuildRepository ` + :param retention_rules: + :type retention_rules: list of :class:`RetentionPolicy ` + :param tags: + :type tags: list of str + :param triggers: + :type triggers: list of :class:`object ` + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, + 'build': {'key': 'build', 'type': '[BuildDefinitionStep]'}, + 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, + 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, + 'options': {'key': 'options', 'type': '[BuildOption]'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'repository': {'key': 'repository', 'type': 'BuildRepository'}, + 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None, badge_enabled=None, build=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variables=None): + super(BuildDefinition3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, metrics=metrics, quality=quality, queue=queue) + self.badge_enabled = badge_enabled + self.build = build + self.build_number_format = build_number_format + self.comment = comment + self.demands = demands + self.description = description + self.drop_location = drop_location + self.job_authorization_scope = job_authorization_scope + self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes + self.job_timeout_in_minutes = job_timeout_in_minutes + self.latest_build = latest_build + self.latest_completed_build = latest_completed_build + self.options = options + self.process_parameters = process_parameters + self.properties = properties + self.repository = repository + self.retention_rules = retention_rules + self.tags = tags + self.triggers = triggers + self.variables = variables + + +__all__ = [ + 'AgentPoolQueue', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByState', + 'ArtifactResource', + 'AssociatedWorkItem', + 'Attachment', + 'AuthorizationHeader', + 'Build', + 'BuildArtifact', + 'BuildBadge', + 'BuildDefinitionRevision', + 'BuildDefinitionStep', + 'BuildDefinitionTemplate', + 'BuildDefinitionTemplate3_2', + 'BuildDefinitionVariable', + 'BuildLogReference', + 'BuildMetric', + 'BuildOption', + 'BuildOptionDefinitionReference', + 'BuildOptionGroupDefinition', + 'BuildOptionInputDefinition', + 'BuildReportMetadata', + 'BuildRepository', + 'BuildRequestValidationResult', + 'BuildResourceUsage', + 'BuildSettings', + 'Change', + 'DataSourceBindingBase', + 'DefinitionReference', + 'Deployment', + 'Folder', + 'GraphSubjectBase', + 'IdentityRef', + 'Issue', + 'JsonPatchOperation', + 'ProcessParameters', + 'ReferenceLinks', + 'ReleaseReference', + 'RepositoryWebhook', + 'ResourceRef', + 'RetentionPolicy', + 'SourceProviderAttributes', + 'SourceRepositories', + 'SourceRepository', + 'SourceRepositoryItem', + 'SupportedTrigger', + 'TaskAgentPoolReference', + 'TaskDefinitionReference', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationPlanReference', + 'TaskReference', + 'TaskSourceDefinitionBase', + 'TeamProjectReference', + 'TestResultsContext', + 'TimelineRecord', + 'TimelineReference', + 'VariableGroupReference', + 'WebApiConnectedServiceRef', + 'XamlBuildControllerReference', + 'BuildController', + 'BuildDefinitionReference', + 'BuildDefinitionReference3_2', + 'BuildLog', + 'BuildOptionDefinition', + 'Timeline', + 'VariableGroup', + 'BuildDefinition', + 'BuildDefinition3_2', +] diff --git a/vsts/vsts/contributions/__init__.py b/azure-devops/azure/devops/v4_1/client_trace/__init__.py similarity index 89% rename from vsts/vsts/contributions/__init__.py rename to azure-devops/azure/devops/v4_1/client_trace/__init__.py index f885a96e..2e317dfb 100644 --- a/vsts/vsts/contributions/__init__.py +++ b/azure-devops/azure/devops/v4_1/client_trace/__init__.py @@ -5,3 +5,9 @@ # Generated file, DO NOT EDIT # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- + +from .models import * + +__all__ = [ + 'ClientTraceEvent', +] diff --git a/vsts/vsts/client_trace/v4_1/client_trace_client.py b/azure-devops/azure/devops/v4_1/client_trace/client_trace_client.py similarity index 89% rename from vsts/vsts/client_trace/v4_1/client_trace_client.py rename to azure-devops/azure/devops/v4_1/client_trace/client_trace_client.py index 02ef3d2d..932d972c 100644 --- a/vsts/vsts/client_trace/v4_1/client_trace_client.py +++ b/azure-devops/azure/devops/v4_1/client_trace/client_trace_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ClientTraceClient(VssClient): +class ClientTraceClient(Client): """ClientTrace :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/client_trace/v4_1/models/client_trace_event.py b/azure-devops/azure/devops/v4_1/client_trace/models.py similarity index 93% rename from vsts/vsts/client_trace/v4_1/models/client_trace_event.py rename to azure-devops/azure/devops/v4_1/client_trace/models.py index 20264c89..d16e7a9f 100644 --- a/vsts/vsts/client_trace/v4_1/models/client_trace_event.py +++ b/azure-devops/azure/devops/v4_1/client_trace/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -51,3 +51,8 @@ def __init__(self, area=None, component=None, exception_type=None, feature=None, self.message = message self.method = method self.properties = properties + + +__all__ = [ + 'ClientTraceEvent', +] diff --git a/azure-devops/azure/devops/v4_1/cloud_load_test/__init__.py b/azure-devops/azure/devops/v4_1/cloud_load_test/__init__.py new file mode 100644 index 00000000..e38f6c3c --- /dev/null +++ b/azure-devops/azure/devops/v4_1/cloud_load_test/__init__.py @@ -0,0 +1,60 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentGroup', + 'AgentGroupAccessData', + 'Application', + 'ApplicationCounters', + 'ApplicationType', + 'BrowserMix', + 'CltCustomerIntelligenceData', + 'CounterGroup', + 'CounterInstanceSamples', + 'CounterSample', + 'CounterSampleQueryDetails', + 'CounterSamplesResult', + 'Diagnostics', + 'DropAccessData', + 'ErrorDetails', + 'LoadGenerationGeoLocation', + 'LoadTest', + 'LoadTestDefinition', + 'LoadTestErrors', + 'LoadTestRunDetails', + 'LoadTestRunSettings', + 'OverridableRunSettings', + 'PageSummary', + 'RequestSummary', + 'ScenarioSummary', + 'StaticAgentRunSetting', + 'SubType', + 'SummaryPercentileData', + 'TenantDetails', + 'TestDefinition', + 'TestDefinitionBasic', + 'TestDrop', + 'TestDropRef', + 'TestResults', + 'TestResultsSummary', + 'TestRun', + 'TestRunAbortMessage', + 'TestRunBasic', + 'TestRunCounterInstance', + 'TestRunMessage', + 'TestSettings', + 'TestSummary', + 'TransactionSummary', + 'WebApiLoadTestMachineInput', + 'WebApiSetupParamaters', + 'WebApiTestMachine', + 'WebApiUserLoadTestMachineInput', + 'WebInstanceSummaryData', +] diff --git a/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py b/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py similarity index 99% rename from vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py rename to azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py index ffce65a7..48a591d6 100644 --- a/vsts/vsts/cloud_load_test/v4_1/cloud_load_test_client.py +++ b/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class CloudLoadTestClient(VssClient): +class CloudLoadTestClient(Client): """CloudLoadTest :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/cloud_load_test/models.py b/azure-devops/azure/devops/v4_1/cloud_load_test/models.py new file mode 100644 index 00000000..b81300f8 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/cloud_load_test/models.py @@ -0,0 +1,1775 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentGroup(Model): + """AgentGroup. + + :param created_by: + :type created_by: IdentityRef + :param creation_time: + :type creation_time: datetime + :param group_id: + :type group_id: str + :param group_name: + :type group_name: str + :param machine_access_data: + :type machine_access_data: list of :class:`AgentGroupAccessData ` + :param machine_configuration: + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :param tenant_id: + :type tenant_id: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'machine_access_data': {'key': 'machineAccessData', 'type': '[AgentGroupAccessData]'}, + 'machine_configuration': {'key': 'machineConfiguration', 'type': 'WebApiUserLoadTestMachineInput'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'} + } + + def __init__(self, created_by=None, creation_time=None, group_id=None, group_name=None, machine_access_data=None, machine_configuration=None, tenant_id=None): + super(AgentGroup, self).__init__() + self.created_by = created_by + self.creation_time = creation_time + self.group_id = group_id + self.group_name = group_name + self.machine_access_data = machine_access_data + self.machine_configuration = machine_configuration + self.tenant_id = tenant_id + + +class AgentGroupAccessData(Model): + """AgentGroupAccessData. + + :param details: + :type details: str + :param storage_connection_string: + :type storage_connection_string: str + :param storage_end_point: + :type storage_end_point: str + :param storage_name: + :type storage_name: str + :param storage_type: + :type storage_type: str + """ + + _attribute_map = { + 'details': {'key': 'details', 'type': 'str'}, + 'storage_connection_string': {'key': 'storageConnectionString', 'type': 'str'}, + 'storage_end_point': {'key': 'storageEndPoint', 'type': 'str'}, + 'storage_name': {'key': 'storageName', 'type': 'str'}, + 'storage_type': {'key': 'storageType', 'type': 'str'} + } + + def __init__(self, details=None, storage_connection_string=None, storage_end_point=None, storage_name=None, storage_type=None): + super(AgentGroupAccessData, self).__init__() + self.details = details + self.storage_connection_string = storage_connection_string + self.storage_end_point = storage_end_point + self.storage_name = storage_name + self.storage_type = storage_type + + +class Application(Model): + """Application. + + :param application_id: + :type application_id: str + :param description: + :type description: str + :param name: + :type name: str + :param path: + :type path: str + :param path_seperator: + :type path_seperator: str + :param type: + :type type: str + :param version: + :type version: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'path_seperator': {'key': 'pathSeperator', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, application_id=None, description=None, name=None, path=None, path_seperator=None, type=None, version=None): + super(Application, self).__init__() + self.application_id = application_id + self.description = description + self.name = name + self.path = path + self.path_seperator = path_seperator + self.type = type + self.version = version + + +class ApplicationCounters(Model): + """ApplicationCounters. + + :param application_id: + :type application_id: str + :param description: + :type description: str + :param id: + :type id: str + :param is_default: + :type is_default: bool + :param name: + :type name: str + :param path: + :type path: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, application_id=None, description=None, id=None, is_default=None, name=None, path=None): + super(ApplicationCounters, self).__init__() + self.application_id = application_id + self.description = description + self.id = id + self.is_default = is_default + self.name = name + self.path = path + + +class ApplicationType(Model): + """ApplicationType. + + :param action_uri_link: + :type action_uri_link: str + :param aut_portal_link: + :type aut_portal_link: str + :param is_enabled: + :type is_enabled: bool + :param max_components_allowed_for_collection: + :type max_components_allowed_for_collection: int + :param max_counters_allowed: + :type max_counters_allowed: int + :param type: + :type type: str + """ + + _attribute_map = { + 'action_uri_link': {'key': 'actionUriLink', 'type': 'str'}, + 'aut_portal_link': {'key': 'autPortalLink', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'max_components_allowed_for_collection': {'key': 'maxComponentsAllowedForCollection', 'type': 'int'}, + 'max_counters_allowed': {'key': 'maxCountersAllowed', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, action_uri_link=None, aut_portal_link=None, is_enabled=None, max_components_allowed_for_collection=None, max_counters_allowed=None, type=None): + super(ApplicationType, self).__init__() + self.action_uri_link = action_uri_link + self.aut_portal_link = aut_portal_link + self.is_enabled = is_enabled + self.max_components_allowed_for_collection = max_components_allowed_for_collection + self.max_counters_allowed = max_counters_allowed + self.type = type + + +class BrowserMix(Model): + """BrowserMix. + + :param browser_name: + :type browser_name: str + :param browser_percentage: + :type browser_percentage: int + """ + + _attribute_map = { + 'browser_name': {'key': 'browserName', 'type': 'str'}, + 'browser_percentage': {'key': 'browserPercentage', 'type': 'int'} + } + + def __init__(self, browser_name=None, browser_percentage=None): + super(BrowserMix, self).__init__() + self.browser_name = browser_name + self.browser_percentage = browser_percentage + + +class CltCustomerIntelligenceData(Model): + """CltCustomerIntelligenceData. + + :param area: + :type area: str + :param feature: + :type feature: str + :param properties: + :type properties: dict + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'str'}, + 'feature': {'key': 'feature', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, area=None, feature=None, properties=None): + super(CltCustomerIntelligenceData, self).__init__() + self.area = area + self.feature = feature + self.properties = properties + + +class CounterGroup(Model): + """CounterGroup. + + :param group_name: + :type group_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, group_name=None, url=None): + super(CounterGroup, self).__init__() + self.group_name = group_name + self.url = url + + +class CounterInstanceSamples(Model): + """CounterInstanceSamples. + + :param count: + :type count: int + :param counter_instance_id: + :type counter_instance_id: str + :param next_refresh_time: + :type next_refresh_time: datetime + :param values: + :type values: list of :class:`CounterSample ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'next_refresh_time': {'key': 'nextRefreshTime', 'type': 'iso-8601'}, + 'values': {'key': 'values', 'type': '[CounterSample]'} + } + + def __init__(self, count=None, counter_instance_id=None, next_refresh_time=None, values=None): + super(CounterInstanceSamples, self).__init__() + self.count = count + self.counter_instance_id = counter_instance_id + self.next_refresh_time = next_refresh_time + self.values = values + + +class CounterSample(Model): + """CounterSample. + + :param base_value: + :type base_value: long + :param computed_value: + :type computed_value: int + :param counter_frequency: + :type counter_frequency: long + :param counter_instance_id: + :type counter_instance_id: str + :param counter_type: + :type counter_type: str + :param interval_end_date: + :type interval_end_date: datetime + :param interval_number: + :type interval_number: int + :param raw_value: + :type raw_value: long + :param system_frequency: + :type system_frequency: long + :param time_stamp: + :type time_stamp: long + """ + + _attribute_map = { + 'base_value': {'key': 'baseValue', 'type': 'long'}, + 'computed_value': {'key': 'computedValue', 'type': 'int'}, + 'counter_frequency': {'key': 'counterFrequency', 'type': 'long'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'counter_type': {'key': 'counterType', 'type': 'str'}, + 'interval_end_date': {'key': 'intervalEndDate', 'type': 'iso-8601'}, + 'interval_number': {'key': 'intervalNumber', 'type': 'int'}, + 'raw_value': {'key': 'rawValue', 'type': 'long'}, + 'system_frequency': {'key': 'systemFrequency', 'type': 'long'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'long'} + } + + def __init__(self, base_value=None, computed_value=None, counter_frequency=None, counter_instance_id=None, counter_type=None, interval_end_date=None, interval_number=None, raw_value=None, system_frequency=None, time_stamp=None): + super(CounterSample, self).__init__() + self.base_value = base_value + self.computed_value = computed_value + self.counter_frequency = counter_frequency + self.counter_instance_id = counter_instance_id + self.counter_type = counter_type + self.interval_end_date = interval_end_date + self.interval_number = interval_number + self.raw_value = raw_value + self.system_frequency = system_frequency + self.time_stamp = time_stamp + + +class CounterSampleQueryDetails(Model): + """CounterSampleQueryDetails. + + :param counter_instance_id: + :type counter_instance_id: str + :param from_interval: + :type from_interval: int + :param to_interval: + :type to_interval: int + """ + + _attribute_map = { + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'from_interval': {'key': 'fromInterval', 'type': 'int'}, + 'to_interval': {'key': 'toInterval', 'type': 'int'} + } + + def __init__(self, counter_instance_id=None, from_interval=None, to_interval=None): + super(CounterSampleQueryDetails, self).__init__() + self.counter_instance_id = counter_instance_id + self.from_interval = from_interval + self.to_interval = to_interval + + +class CounterSamplesResult(Model): + """CounterSamplesResult. + + :param count: + :type count: int + :param max_batch_size: + :type max_batch_size: int + :param total_samples_count: + :type total_samples_count: int + :param values: + :type values: list of :class:`CounterInstanceSamples ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'max_batch_size': {'key': 'maxBatchSize', 'type': 'int'}, + 'total_samples_count': {'key': 'totalSamplesCount', 'type': 'int'}, + 'values': {'key': 'values', 'type': '[CounterInstanceSamples]'} + } + + def __init__(self, count=None, max_batch_size=None, total_samples_count=None, values=None): + super(CounterSamplesResult, self).__init__() + self.count = count + self.max_batch_size = max_batch_size + self.total_samples_count = total_samples_count + self.values = values + + +class Diagnostics(Model): + """Diagnostics. + + :param diagnostic_store_connection_string: + :type diagnostic_store_connection_string: str + :param last_modified_time: + :type last_modified_time: datetime + :param relative_path_to_diagnostic_files: + :type relative_path_to_diagnostic_files: str + """ + + _attribute_map = { + 'diagnostic_store_connection_string': {'key': 'diagnosticStoreConnectionString', 'type': 'str'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'relative_path_to_diagnostic_files': {'key': 'relativePathToDiagnosticFiles', 'type': 'str'} + } + + def __init__(self, diagnostic_store_connection_string=None, last_modified_time=None, relative_path_to_diagnostic_files=None): + super(Diagnostics, self).__init__() + self.diagnostic_store_connection_string = diagnostic_store_connection_string + self.last_modified_time = last_modified_time + self.relative_path_to_diagnostic_files = relative_path_to_diagnostic_files + + +class DropAccessData(Model): + """DropAccessData. + + :param drop_container_url: + :type drop_container_url: str + :param sas_key: + :type sas_key: str + """ + + _attribute_map = { + 'drop_container_url': {'key': 'dropContainerUrl', 'type': 'str'}, + 'sas_key': {'key': 'sasKey', 'type': 'str'} + } + + def __init__(self, drop_container_url=None, sas_key=None): + super(DropAccessData, self).__init__() + self.drop_container_url = drop_container_url + self.sas_key = sas_key + + +class ErrorDetails(Model): + """ErrorDetails. + + :param last_error_date: + :type last_error_date: datetime + :param message_text: + :type message_text: str + :param occurrences: + :type occurrences: int + :param request: + :type request: str + :param scenario_name: + :type scenario_name: str + :param stack_trace: + :type stack_trace: str + :param test_case_name: + :type test_case_name: str + """ + + _attribute_map = { + 'last_error_date': {'key': 'lastErrorDate', 'type': 'iso-8601'}, + 'message_text': {'key': 'messageText', 'type': 'str'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'request': {'key': 'request', 'type': 'str'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'test_case_name': {'key': 'testCaseName', 'type': 'str'} + } + + def __init__(self, last_error_date=None, message_text=None, occurrences=None, request=None, scenario_name=None, stack_trace=None, test_case_name=None): + super(ErrorDetails, self).__init__() + self.last_error_date = last_error_date + self.message_text = message_text + self.occurrences = occurrences + self.request = request + self.scenario_name = scenario_name + self.stack_trace = stack_trace + self.test_case_name = test_case_name + + +class LoadGenerationGeoLocation(Model): + """LoadGenerationGeoLocation. + + :param location: + :type location: str + :param percentage: + :type percentage: int + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'percentage': {'key': 'percentage', 'type': 'int'} + } + + def __init__(self, location=None, percentage=None): + super(LoadGenerationGeoLocation, self).__init__() + self.location = location + self.percentage = percentage + + +class LoadTest(Model): + """LoadTest. + + """ + + _attribute_map = { + } + + def __init__(self): + super(LoadTest, self).__init__() + + +class LoadTestDefinition(Model): + """LoadTestDefinition. + + :param agent_count: + :type agent_count: int + :param browser_mixs: + :type browser_mixs: list of :class:`BrowserMix ` + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_pattern_name: + :type load_pattern_name: str + :param load_test_name: + :type load_test_name: str + :param max_vusers: + :type max_vusers: int + :param run_duration: + :type run_duration: int + :param sampling_rate: + :type sampling_rate: int + :param think_time: + :type think_time: int + :param urls: + :type urls: list of str + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'browser_mixs': {'key': 'browserMixs', 'type': '[BrowserMix]'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_pattern_name': {'key': 'loadPatternName', 'type': 'str'}, + 'load_test_name': {'key': 'loadTestName', 'type': 'str'}, + 'max_vusers': {'key': 'maxVusers', 'type': 'int'}, + 'run_duration': {'key': 'runDuration', 'type': 'int'}, + 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, + 'think_time': {'key': 'thinkTime', 'type': 'int'}, + 'urls': {'key': 'urls', 'type': '[str]'} + } + + def __init__(self, agent_count=None, browser_mixs=None, core_count=None, cores_per_agent=None, load_generation_geo_locations=None, load_pattern_name=None, load_test_name=None, max_vusers=None, run_duration=None, sampling_rate=None, think_time=None, urls=None): + super(LoadTestDefinition, self).__init__() + self.agent_count = agent_count + self.browser_mixs = browser_mixs + self.core_count = core_count + self.cores_per_agent = cores_per_agent + self.load_generation_geo_locations = load_generation_geo_locations + self.load_pattern_name = load_pattern_name + self.load_test_name = load_test_name + self.max_vusers = max_vusers + self.run_duration = run_duration + self.sampling_rate = sampling_rate + self.think_time = think_time + self.urls = urls + + +class LoadTestErrors(Model): + """LoadTestErrors. + + :param count: + :type count: int + :param occurrences: + :type occurrences: int + :param types: + :type types: list of :class:`object ` + :param url: + :type url: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'types': {'key': 'types', 'type': '[object]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, count=None, occurrences=None, types=None, url=None): + super(LoadTestErrors, self).__init__() + self.count = count + self.occurrences = occurrences + self.types = types + self.url = url + + +class LoadTestRunSettings(Model): + """LoadTestRunSettings. + + :param agent_count: + :type agent_count: int + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param duration: + :type duration: int + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param sampling_interval: + :type sampling_interval: int + :param warm_up_duration: + :type warm_up_duration: int + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'int'}, + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'} + } + + def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None): + super(LoadTestRunSettings, self).__init__() + self.agent_count = agent_count + self.core_count = core_count + self.cores_per_agent = cores_per_agent + self.duration = duration + self.load_generator_machines_type = load_generator_machines_type + self.sampling_interval = sampling_interval + self.warm_up_duration = warm_up_duration + + +class OverridableRunSettings(Model): + """OverridableRunSettings. + + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param static_agent_run_settings: + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + """ + + _attribute_map = { + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'} + } + + def __init__(self, load_generator_machines_type=None, static_agent_run_settings=None): + super(OverridableRunSettings, self).__init__() + self.load_generator_machines_type = load_generator_machines_type + self.static_agent_run_settings = static_agent_run_settings + + +class PageSummary(Model): + """PageSummary. + + :param average_page_time: + :type average_page_time: float + :param page_url: + :type page_url: str + :param percentage_pages_meeting_goal: + :type percentage_pages_meeting_goal: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_pages: + :type total_pages: int + """ + + _attribute_map = { + 'average_page_time': {'key': 'averagePageTime', 'type': 'float'}, + 'page_url': {'key': 'pageUrl', 'type': 'str'}, + 'percentage_pages_meeting_goal': {'key': 'percentagePagesMeetingGoal', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_pages': {'key': 'totalPages', 'type': 'int'} + } + + def __init__(self, average_page_time=None, page_url=None, percentage_pages_meeting_goal=None, percentile_data=None, scenario_name=None, test_name=None, total_pages=None): + super(PageSummary, self).__init__() + self.average_page_time = average_page_time + self.page_url = page_url + self.percentage_pages_meeting_goal = percentage_pages_meeting_goal + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_pages = total_pages + + +class RequestSummary(Model): + """RequestSummary. + + :param average_response_time: + :type average_response_time: float + :param failed_requests: + :type failed_requests: int + :param passed_requests: + :type passed_requests: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param requests_per_sec: + :type requests_per_sec: float + :param request_url: + :type request_url: str + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_requests: + :type total_requests: int + """ + + _attribute_map = { + 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, + 'failed_requests': {'key': 'failedRequests', 'type': 'int'}, + 'passed_requests': {'key': 'passedRequests', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'requests_per_sec': {'key': 'requestsPerSec', 'type': 'float'}, + 'request_url': {'key': 'requestUrl', 'type': 'str'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_requests': {'key': 'totalRequests', 'type': 'int'} + } + + def __init__(self, average_response_time=None, failed_requests=None, passed_requests=None, percentile_data=None, requests_per_sec=None, request_url=None, scenario_name=None, test_name=None, total_requests=None): + super(RequestSummary, self).__init__() + self.average_response_time = average_response_time + self.failed_requests = failed_requests + self.passed_requests = passed_requests + self.percentile_data = percentile_data + self.requests_per_sec = requests_per_sec + self.request_url = request_url + self.scenario_name = scenario_name + self.test_name = test_name + self.total_requests = total_requests + + +class ScenarioSummary(Model): + """ScenarioSummary. + + :param max_user_load: + :type max_user_load: int + :param min_user_load: + :type min_user_load: int + :param scenario_name: + :type scenario_name: str + """ + + _attribute_map = { + 'max_user_load': {'key': 'maxUserLoad', 'type': 'int'}, + 'min_user_load': {'key': 'minUserLoad', 'type': 'int'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'} + } + + def __init__(self, max_user_load=None, min_user_load=None, scenario_name=None): + super(ScenarioSummary, self).__init__() + self.max_user_load = max_user_load + self.min_user_load = min_user_load + self.scenario_name = scenario_name + + +class StaticAgentRunSetting(Model): + """StaticAgentRunSetting. + + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param static_agent_group_name: + :type static_agent_group_name: str + """ + + _attribute_map = { + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'static_agent_group_name': {'key': 'staticAgentGroupName', 'type': 'str'} + } + + def __init__(self, load_generator_machines_type=None, static_agent_group_name=None): + super(StaticAgentRunSetting, self).__init__() + self.load_generator_machines_type = load_generator_machines_type + self.static_agent_group_name = static_agent_group_name + + +class SubType(Model): + """SubType. + + :param count: + :type count: int + :param error_detail_list: + :type error_detail_list: list of :class:`ErrorDetails ` + :param occurrences: + :type occurrences: int + :param sub_type_name: + :type sub_type_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'error_detail_list': {'key': 'errorDetailList', 'type': '[ErrorDetails]'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'sub_type_name': {'key': 'subTypeName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, count=None, error_detail_list=None, occurrences=None, sub_type_name=None, url=None): + super(SubType, self).__init__() + self.count = count + self.error_detail_list = error_detail_list + self.occurrences = occurrences + self.sub_type_name = sub_type_name + self.url = url + + +class SummaryPercentileData(Model): + """SummaryPercentileData. + + :param percentile: + :type percentile: int + :param percentile_value: + :type percentile_value: float + """ + + _attribute_map = { + 'percentile': {'key': 'percentile', 'type': 'int'}, + 'percentile_value': {'key': 'percentileValue', 'type': 'float'} + } + + def __init__(self, percentile=None, percentile_value=None): + super(SummaryPercentileData, self).__init__() + self.percentile = percentile + self.percentile_value = percentile_value + + +class TenantDetails(Model): + """TenantDetails. + + :param access_details: + :type access_details: list of :class:`AgentGroupAccessData ` + :param id: + :type id: str + :param static_machines: + :type static_machines: list of :class:`WebApiTestMachine ` + :param user_load_agent_input: + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :param user_load_agent_resources_uri: + :type user_load_agent_resources_uri: str + :param valid_geo_locations: + :type valid_geo_locations: list of str + """ + + _attribute_map = { + 'access_details': {'key': 'accessDetails', 'type': '[AgentGroupAccessData]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'static_machines': {'key': 'staticMachines', 'type': '[WebApiTestMachine]'}, + 'user_load_agent_input': {'key': 'userLoadAgentInput', 'type': 'WebApiUserLoadTestMachineInput'}, + 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, + 'valid_geo_locations': {'key': 'validGeoLocations', 'type': '[str]'} + } + + def __init__(self, access_details=None, id=None, static_machines=None, user_load_agent_input=None, user_load_agent_resources_uri=None, valid_geo_locations=None): + super(TenantDetails, self).__init__() + self.access_details = access_details + self.id = id + self.static_machines = static_machines + self.user_load_agent_input = user_load_agent_input + self.user_load_agent_resources_uri = user_load_agent_resources_uri + self.valid_geo_locations = valid_geo_locations + + +class TestDefinitionBasic(Model): + """TestDefinitionBasic. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param last_modified_by: + :type last_modified_by: IdentityRef + :param last_modified_date: + :type last_modified_date: datetime + :param load_test_type: + :type load_test_type: object + :param name: + :type name: str + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None): + super(TestDefinitionBasic, self).__init__() + self.access_data = access_data + self.created_by = created_by + self.created_date = created_date + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_date = last_modified_date + self.load_test_type = load_test_type + self.name = name + + +class TestDrop(Model): + """TestDrop. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_date: + :type created_date: datetime + :param drop_type: + :type drop_type: str + :param id: + :type id: str + :param load_test_definition: + :type load_test_definition: :class:`LoadTestDefinition ` + :param test_run_id: + :type test_run_id: str + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'drop_type': {'key': 'dropType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_test_definition': {'key': 'loadTestDefinition', 'type': 'LoadTestDefinition'}, + 'test_run_id': {'key': 'testRunId', 'type': 'str'} + } + + def __init__(self, access_data=None, created_date=None, drop_type=None, id=None, load_test_definition=None, test_run_id=None): + super(TestDrop, self).__init__() + self.access_data = access_data + self.created_date = created_date + self.drop_type = drop_type + self.id = id + self.load_test_definition = load_test_definition + self.test_run_id = test_run_id + + +class TestDropRef(Model): + """TestDropRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(TestDropRef, self).__init__() + self.id = id + self.url = url + + +class TestResults(Model): + """TestResults. + + :param cloud_load_test_solution_url: + :type cloud_load_test_solution_url: str + :param counter_groups: + :type counter_groups: list of :class:`CounterGroup ` + :param diagnostics: + :type diagnostics: :class:`Diagnostics ` + :param results_url: + :type results_url: str + """ + + _attribute_map = { + 'cloud_load_test_solution_url': {'key': 'cloudLoadTestSolutionUrl', 'type': 'str'}, + 'counter_groups': {'key': 'counterGroups', 'type': '[CounterGroup]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'Diagnostics'}, + 'results_url': {'key': 'resultsUrl', 'type': 'str'} + } + + def __init__(self, cloud_load_test_solution_url=None, counter_groups=None, diagnostics=None, results_url=None): + super(TestResults, self).__init__() + self.cloud_load_test_solution_url = cloud_load_test_solution_url + self.counter_groups = counter_groups + self.diagnostics = diagnostics + self.results_url = results_url + + +class TestResultsSummary(Model): + """TestResultsSummary. + + :param overall_page_summary: + :type overall_page_summary: :class:`PageSummary ` + :param overall_request_summary: + :type overall_request_summary: :class:`RequestSummary ` + :param overall_scenario_summary: + :type overall_scenario_summary: :class:`ScenarioSummary ` + :param overall_test_summary: + :type overall_test_summary: :class:`TestSummary ` + :param overall_transaction_summary: + :type overall_transaction_summary: :class:`TransactionSummary ` + :param top_slow_pages: + :type top_slow_pages: list of :class:`PageSummary ` + :param top_slow_requests: + :type top_slow_requests: list of :class:`RequestSummary ` + :param top_slow_tests: + :type top_slow_tests: list of :class:`TestSummary ` + :param top_slow_transactions: + :type top_slow_transactions: list of :class:`TransactionSummary ` + """ + + _attribute_map = { + 'overall_page_summary': {'key': 'overallPageSummary', 'type': 'PageSummary'}, + 'overall_request_summary': {'key': 'overallRequestSummary', 'type': 'RequestSummary'}, + 'overall_scenario_summary': {'key': 'overallScenarioSummary', 'type': 'ScenarioSummary'}, + 'overall_test_summary': {'key': 'overallTestSummary', 'type': 'TestSummary'}, + 'overall_transaction_summary': {'key': 'overallTransactionSummary', 'type': 'TransactionSummary'}, + 'top_slow_pages': {'key': 'topSlowPages', 'type': '[PageSummary]'}, + 'top_slow_requests': {'key': 'topSlowRequests', 'type': '[RequestSummary]'}, + 'top_slow_tests': {'key': 'topSlowTests', 'type': '[TestSummary]'}, + 'top_slow_transactions': {'key': 'topSlowTransactions', 'type': '[TransactionSummary]'} + } + + def __init__(self, overall_page_summary=None, overall_request_summary=None, overall_scenario_summary=None, overall_test_summary=None, overall_transaction_summary=None, top_slow_pages=None, top_slow_requests=None, top_slow_tests=None, top_slow_transactions=None): + super(TestResultsSummary, self).__init__() + self.overall_page_summary = overall_page_summary + self.overall_request_summary = overall_request_summary + self.overall_scenario_summary = overall_scenario_summary + self.overall_test_summary = overall_test_summary + self.overall_transaction_summary = overall_transaction_summary + self.top_slow_pages = top_slow_pages + self.top_slow_requests = top_slow_requests + self.top_slow_tests = top_slow_tests + self.top_slow_transactions = top_slow_transactions + + +class TestRunAbortMessage(Model): + """TestRunAbortMessage. + + :param action: + :type action: str + :param cause: + :type cause: str + :param details: + :type details: list of str + :param logged_date: + :type logged_date: datetime + :param source: + :type source: str + """ + + _attribute_map = { + 'action': {'key': 'action', 'type': 'str'}, + 'cause': {'key': 'cause', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[str]'}, + 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, action=None, cause=None, details=None, logged_date=None, source=None): + super(TestRunAbortMessage, self).__init__() + self.action = action + self.cause = cause + self.details = details + self.logged_date = logged_date + self.source = source + + +class TestRunBasic(Model): + """TestRunBasic. + + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: IdentityRef + :param deleted_date: + :type deleted_date: datetime + :param finished_date: + :type finished_date: datetime + :param id: + :type id: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_file_name: + :type load_test_file_name: str + :param name: + :type name: str + :param run_number: + :type run_number: int + :param run_source: + :type run_source: str + :param run_specific_details: + :type run_specific_details: :class:`LoadTestRunDetails ` + :param run_type: + :type run_type: object + :param state: + :type state: object + :param url: + :type url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_number': {'key': 'runNumber', 'type': 'int'}, + 'run_source': {'key': 'runSource', 'type': 'str'}, + 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, + 'run_type': {'key': 'runType', 'type': 'object'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None): + super(TestRunBasic, self).__init__() + self.created_by = created_by + self.created_date = created_date + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.finished_date = finished_date + self.id = id + self.load_generation_geo_locations = load_generation_geo_locations + self.load_test_file_name = load_test_file_name + self.name = name + self.run_number = run_number + self.run_source = run_source + self.run_specific_details = run_specific_details + self.run_type = run_type + self.state = state + self.url = url + + +class TestRunCounterInstance(Model): + """TestRunCounterInstance. + + :param category_name: + :type category_name: str + :param counter_instance_id: + :type counter_instance_id: str + :param counter_name: + :type counter_name: str + :param counter_units: + :type counter_units: str + :param instance_name: + :type instance_name: str + :param is_preselected_counter: + :type is_preselected_counter: bool + :param machine_name: + :type machine_name: str + :param part_of_counter_groups: + :type part_of_counter_groups: list of str + :param summary_data: + :type summary_data: :class:`WebInstanceSummaryData ` + :param unique_name: + :type unique_name: str + """ + + _attribute_map = { + 'category_name': {'key': 'categoryName', 'type': 'str'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'counter_name': {'key': 'counterName', 'type': 'str'}, + 'counter_units': {'key': 'counterUnits', 'type': 'str'}, + 'instance_name': {'key': 'instanceName', 'type': 'str'}, + 'is_preselected_counter': {'key': 'isPreselectedCounter', 'type': 'bool'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'part_of_counter_groups': {'key': 'partOfCounterGroups', 'type': '[str]'}, + 'summary_data': {'key': 'summaryData', 'type': 'WebInstanceSummaryData'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'} + } + + def __init__(self, category_name=None, counter_instance_id=None, counter_name=None, counter_units=None, instance_name=None, is_preselected_counter=None, machine_name=None, part_of_counter_groups=None, summary_data=None, unique_name=None): + super(TestRunCounterInstance, self).__init__() + self.category_name = category_name + self.counter_instance_id = counter_instance_id + self.counter_name = counter_name + self.counter_units = counter_units + self.instance_name = instance_name + self.is_preselected_counter = is_preselected_counter + self.machine_name = machine_name + self.part_of_counter_groups = part_of_counter_groups + self.summary_data = summary_data + self.unique_name = unique_name + + +class TestRunMessage(Model): + """TestRunMessage. + + :param agent_id: + :type agent_id: str + :param error_code: + :type error_code: str + :param logged_date: + :type logged_date: datetime + :param message: + :type message: str + :param message_id: + :type message_id: str + :param message_source: + :type message_source: object + :param message_type: + :type message_type: object + :param test_run_id: + :type test_run_id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'agent_id': {'key': 'agentId', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_source': {'key': 'messageSource', 'type': 'object'}, + 'message_type': {'key': 'messageType', 'type': 'object'}, + 'test_run_id': {'key': 'testRunId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, agent_id=None, error_code=None, logged_date=None, message=None, message_id=None, message_source=None, message_type=None, test_run_id=None, url=None): + super(TestRunMessage, self).__init__() + self.agent_id = agent_id + self.error_code = error_code + self.logged_date = logged_date + self.message = message + self.message_id = message_id + self.message_source = message_source + self.message_type = message_type + self.test_run_id = test_run_id + self.url = url + + +class TestSettings(Model): + """TestSettings. + + :param cleanup_command: + :type cleanup_command: str + :param host_process_platform: + :type host_process_platform: object + :param setup_command: + :type setup_command: str + """ + + _attribute_map = { + 'cleanup_command': {'key': 'cleanupCommand', 'type': 'str'}, + 'host_process_platform': {'key': 'hostProcessPlatform', 'type': 'object'}, + 'setup_command': {'key': 'setupCommand', 'type': 'str'} + } + + def __init__(self, cleanup_command=None, host_process_platform=None, setup_command=None): + super(TestSettings, self).__init__() + self.cleanup_command = cleanup_command + self.host_process_platform = host_process_platform + self.setup_command = setup_command + + +class TestSummary(Model): + """TestSummary. + + :param average_test_time: + :type average_test_time: float + :param failed_tests: + :type failed_tests: int + :param passed_tests: + :type passed_tests: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'average_test_time': {'key': 'averageTestTime', 'type': 'float'}, + 'failed_tests': {'key': 'failedTests', 'type': 'int'}, + 'passed_tests': {'key': 'passedTests', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, average_test_time=None, failed_tests=None, passed_tests=None, percentile_data=None, scenario_name=None, test_name=None, total_tests=None): + super(TestSummary, self).__init__() + self.average_test_time = average_test_time + self.failed_tests = failed_tests + self.passed_tests = passed_tests + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_tests = total_tests + + +class TransactionSummary(Model): + """TransactionSummary. + + :param average_response_time: + :type average_response_time: float + :param average_transaction_time: + :type average_transaction_time: float + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_transactions: + :type total_transactions: int + :param transaction_name: + :type transaction_name: str + """ + + _attribute_map = { + 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, + 'average_transaction_time': {'key': 'averageTransactionTime', 'type': 'float'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_transactions': {'key': 'totalTransactions', 'type': 'int'}, + 'transaction_name': {'key': 'transactionName', 'type': 'str'} + } + + def __init__(self, average_response_time=None, average_transaction_time=None, percentile_data=None, scenario_name=None, test_name=None, total_transactions=None, transaction_name=None): + super(TransactionSummary, self).__init__() + self.average_response_time = average_response_time + self.average_transaction_time = average_transaction_time + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_transactions = total_transactions + self.transaction_name = transaction_name + + +class WebApiLoadTestMachineInput(Model): + """WebApiLoadTestMachineInput. + + :param machine_group_id: + :type machine_group_id: str + :param machine_type: + :type machine_type: object + :param setup_configuration: + :type setup_configuration: :class:`WebApiSetupParamaters ` + :param supported_run_types: + :type supported_run_types: list of TestRunType + """ + + _attribute_map = { + 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, + 'machine_type': {'key': 'machineType', 'type': 'object'}, + 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, + 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[object]'} + } + + def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None): + super(WebApiLoadTestMachineInput, self).__init__() + self.machine_group_id = machine_group_id + self.machine_type = machine_type + self.setup_configuration = setup_configuration + self.supported_run_types = supported_run_types + + +class WebApiSetupParamaters(Model): + """WebApiSetupParamaters. + + :param configurations: + :type configurations: dict + """ + + _attribute_map = { + 'configurations': {'key': 'configurations', 'type': '{str}'} + } + + def __init__(self, configurations=None): + super(WebApiSetupParamaters, self).__init__() + self.configurations = configurations + + +class WebApiTestMachine(Model): + """WebApiTestMachine. + + :param last_heart_beat: + :type last_heart_beat: datetime + :param machine_name: + :type machine_name: str + :param status: + :type status: str + """ + + _attribute_map = { + 'last_heart_beat': {'key': 'lastHeartBeat', 'type': 'iso-8601'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'} + } + + def __init__(self, last_heart_beat=None, machine_name=None, status=None): + super(WebApiTestMachine, self).__init__() + self.last_heart_beat = last_heart_beat + self.machine_name = machine_name + self.status = status + + +class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): + """WebApiUserLoadTestMachineInput. + + :param machine_group_id: + :type machine_group_id: str + :param machine_type: + :type machine_type: object + :param setup_configuration: + :type setup_configuration: :class:`WebApiSetupParamaters ` + :param supported_run_types: + :type supported_run_types: list of TestRunType + :param agent_group_name: + :type agent_group_name: str + :param tenant_id: + :type tenant_id: str + :param user_load_agent_resources_uri: + :type user_load_agent_resources_uri: str + :param vSTSAccount_uri: + :type vSTSAccount_uri: str + """ + + _attribute_map = { + 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, + 'machine_type': {'key': 'machineType', 'type': 'object'}, + 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, + 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[TestRunType]'}, + 'agent_group_name': {'key': 'agentGroupName', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, + 'vSTSAccount_uri': {'key': 'vSTSAccountUri', 'type': 'str'} + } + + def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None, agent_group_name=None, tenant_id=None, user_load_agent_resources_uri=None, vSTSAccount_uri=None): + super(WebApiUserLoadTestMachineInput, self).__init__(machine_group_id=machine_group_id, machine_type=machine_type, setup_configuration=setup_configuration, supported_run_types=supported_run_types) + self.agent_group_name = agent_group_name + self.tenant_id = tenant_id + self.user_load_agent_resources_uri = user_load_agent_resources_uri + self.vSTSAccount_uri = vSTSAccount_uri + + +class WebInstanceSummaryData(Model): + """WebInstanceSummaryData. + + :param average: + :type average: float + :param max: + :type max: float + :param min: + :type min: float + """ + + _attribute_map = { + 'average': {'key': 'average', 'type': 'float'}, + 'max': {'key': 'max', 'type': 'float'}, + 'min': {'key': 'min', 'type': 'float'} + } + + def __init__(self, average=None, max=None, min=None): + super(WebInstanceSummaryData, self).__init__() + self.average = average + self.max = max + self.min = min + + +class LoadTestRunDetails(LoadTestRunSettings): + """LoadTestRunDetails. + + :param agent_count: + :type agent_count: int + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param duration: + :type duration: int + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param sampling_interval: + :type sampling_interval: int + :param warm_up_duration: + :type warm_up_duration: int + :param virtual_user_count: + :type virtual_user_count: int + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'int'}, + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'}, + 'virtual_user_count': {'key': 'virtualUserCount', 'type': 'int'} + } + + def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None, virtual_user_count=None): + super(LoadTestRunDetails, self).__init__(agent_count=agent_count, core_count=core_count, cores_per_agent=cores_per_agent, duration=duration, load_generator_machines_type=load_generator_machines_type, sampling_interval=sampling_interval, warm_up_duration=warm_up_duration) + self.virtual_user_count = virtual_user_count + + +class TestDefinition(TestDefinitionBasic): + """TestDefinition. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param last_modified_by: + :type last_modified_by: IdentityRef + :param last_modified_date: + :type last_modified_date: datetime + :param load_test_type: + :type load_test_type: object + :param name: + :type name: str + :param description: + :type description: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_definition_source: + :type load_test_definition_source: str + :param run_settings: + :type run_settings: :class:`LoadTestRunSettings ` + :param static_agent_run_settings: + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :param test_details: + :type test_details: :class:`LoadTest ` + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_definition_source': {'key': 'loadTestDefinitionSource', 'type': 'str'}, + 'run_settings': {'key': 'runSettings', 'type': 'LoadTestRunSettings'}, + 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'}, + 'test_details': {'key': 'testDetails', 'type': 'LoadTest'} + } + + def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None, description=None, load_generation_geo_locations=None, load_test_definition_source=None, run_settings=None, static_agent_run_settings=None, test_details=None): + super(TestDefinition, self).__init__(access_data=access_data, created_by=created_by, created_date=created_date, id=id, last_modified_by=last_modified_by, last_modified_date=last_modified_date, load_test_type=load_test_type, name=name) + self.description = description + self.load_generation_geo_locations = load_generation_geo_locations + self.load_test_definition_source = load_test_definition_source + self.run_settings = run_settings + self.static_agent_run_settings = static_agent_run_settings + self.test_details = test_details + + +class TestRun(TestRunBasic): + """TestRun. + + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: IdentityRef + :param deleted_date: + :type deleted_date: datetime + :param finished_date: + :type finished_date: datetime + :param id: + :type id: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_file_name: + :type load_test_file_name: str + :param name: + :type name: str + :param run_number: + :type run_number: int + :param run_source: + :type run_source: str + :param run_specific_details: + :type run_specific_details: :class:`LoadTestRunDetails ` + :param run_type: + :type run_type: object + :param state: + :type state: object + :param url: + :type url: str + :param abort_message: + :type abort_message: :class:`TestRunAbortMessage ` + :param aut_initialization_error: + :type aut_initialization_error: bool + :param chargeable: + :type chargeable: bool + :param charged_vUserminutes: + :type charged_vUserminutes: int + :param description: + :type description: str + :param execution_finished_date: + :type execution_finished_date: datetime + :param execution_started_date: + :type execution_started_date: datetime + :param queued_date: + :type queued_date: datetime + :param retention_state: + :type retention_state: object + :param run_source_identifier: + :type run_source_identifier: str + :param run_source_url: + :type run_source_url: str + :param started_by: + :type started_by: IdentityRef + :param started_date: + :type started_date: datetime + :param stopped_by: + :type stopped_by: IdentityRef + :param sub_state: + :type sub_state: object + :param supersede_run_settings: + :type supersede_run_settings: :class:`OverridableRunSettings ` + :param test_drop: + :type test_drop: :class:`TestDropRef ` + :param test_settings: + :type test_settings: :class:`TestSettings ` + :param warm_up_started_date: + :type warm_up_started_date: datetime + :param web_result_url: + :type web_result_url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_number': {'key': 'runNumber', 'type': 'int'}, + 'run_source': {'key': 'runSource', 'type': 'str'}, + 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, + 'run_type': {'key': 'runType', 'type': 'object'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'abort_message': {'key': 'abortMessage', 'type': 'TestRunAbortMessage'}, + 'aut_initialization_error': {'key': 'autInitializationError', 'type': 'bool'}, + 'chargeable': {'key': 'chargeable', 'type': 'bool'}, + 'charged_vUserminutes': {'key': 'chargedVUserminutes', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'execution_finished_date': {'key': 'executionFinishedDate', 'type': 'iso-8601'}, + 'execution_started_date': {'key': 'executionStartedDate', 'type': 'iso-8601'}, + 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, + 'retention_state': {'key': 'retentionState', 'type': 'object'}, + 'run_source_identifier': {'key': 'runSourceIdentifier', 'type': 'str'}, + 'run_source_url': {'key': 'runSourceUrl', 'type': 'str'}, + 'started_by': {'key': 'startedBy', 'type': 'IdentityRef'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'stopped_by': {'key': 'stoppedBy', 'type': 'IdentityRef'}, + 'sub_state': {'key': 'subState', 'type': 'object'}, + 'supersede_run_settings': {'key': 'supersedeRunSettings', 'type': 'OverridableRunSettings'}, + 'test_drop': {'key': 'testDrop', 'type': 'TestDropRef'}, + 'test_settings': {'key': 'testSettings', 'type': 'TestSettings'}, + 'warm_up_started_date': {'key': 'warmUpStartedDate', 'type': 'iso-8601'}, + 'web_result_url': {'key': 'webResultUrl', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None, abort_message=None, aut_initialization_error=None, chargeable=None, charged_vUserminutes=None, description=None, execution_finished_date=None, execution_started_date=None, queued_date=None, retention_state=None, run_source_identifier=None, run_source_url=None, started_by=None, started_date=None, stopped_by=None, sub_state=None, supersede_run_settings=None, test_drop=None, test_settings=None, warm_up_started_date=None, web_result_url=None): + super(TestRun, self).__init__(created_by=created_by, created_date=created_date, deleted_by=deleted_by, deleted_date=deleted_date, finished_date=finished_date, id=id, load_generation_geo_locations=load_generation_geo_locations, load_test_file_name=load_test_file_name, name=name, run_number=run_number, run_source=run_source, run_specific_details=run_specific_details, run_type=run_type, state=state, url=url) + self.abort_message = abort_message + self.aut_initialization_error = aut_initialization_error + self.chargeable = chargeable + self.charged_vUserminutes = charged_vUserminutes + self.description = description + self.execution_finished_date = execution_finished_date + self.execution_started_date = execution_started_date + self.queued_date = queued_date + self.retention_state = retention_state + self.run_source_identifier = run_source_identifier + self.run_source_url = run_source_url + self.started_by = started_by + self.started_date = started_date + self.stopped_by = stopped_by + self.sub_state = sub_state + self.supersede_run_settings = supersede_run_settings + self.test_drop = test_drop + self.test_settings = test_settings + self.warm_up_started_date = warm_up_started_date + self.web_result_url = web_result_url + + +__all__ = [ + 'AgentGroup', + 'AgentGroupAccessData', + 'Application', + 'ApplicationCounters', + 'ApplicationType', + 'BrowserMix', + 'CltCustomerIntelligenceData', + 'CounterGroup', + 'CounterInstanceSamples', + 'CounterSample', + 'CounterSampleQueryDetails', + 'CounterSamplesResult', + 'Diagnostics', + 'DropAccessData', + 'ErrorDetails', + 'LoadGenerationGeoLocation', + 'LoadTest', + 'LoadTestDefinition', + 'LoadTestErrors', + 'LoadTestRunSettings', + 'OverridableRunSettings', + 'PageSummary', + 'RequestSummary', + 'ScenarioSummary', + 'StaticAgentRunSetting', + 'SubType', + 'SummaryPercentileData', + 'TenantDetails', + 'TestDefinitionBasic', + 'TestDrop', + 'TestDropRef', + 'TestResults', + 'TestResultsSummary', + 'TestRunAbortMessage', + 'TestRunBasic', + 'TestRunCounterInstance', + 'TestRunMessage', + 'TestSettings', + 'TestSummary', + 'TransactionSummary', + 'WebApiLoadTestMachineInput', + 'WebApiSetupParamaters', + 'WebApiTestMachine', + 'WebApiUserLoadTestMachineInput', + 'WebInstanceSummaryData', + 'LoadTestRunDetails', + 'TestDefinition', + 'TestRun', +] diff --git a/azure-devops/azure/devops/v4_1/contributions/__init__.py b/azure-devops/azure/devops/v4_1/contributions/__init__.py new file mode 100644 index 00000000..7fc982c9 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/contributions/__init__.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'ClientContribution', + 'ClientContributionNode', + 'ClientContributionProviderDetails', + 'ClientDataProviderQuery', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionNodeQuery', + 'ContributionNodeQueryResult', + 'ContributionPropertyDescription', + 'ContributionType', + 'DataProviderContext', + 'DataProviderExceptionDetails', + 'DataProviderQuery', + 'DataProviderResult', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionLicensing', + 'ExtensionManifest', + 'InstalledExtension', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'ResolvedDataProvider', +] diff --git a/vsts/vsts/contributions/v4_1/contributions_client.py b/azure-devops/azure/devops/v4_1/contributions/contributions_client.py similarity index 98% rename from vsts/vsts/contributions/v4_1/contributions_client.py rename to azure-devops/azure/devops/v4_1/contributions/contributions_client.py index a046b40b..d049063c 100644 --- a/vsts/vsts/contributions/v4_1/contributions_client.py +++ b/azure-devops/azure/devops/v4_1/contributions/contributions_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ContributionsClient(VssClient): +class ContributionsClient(Client): """Contributions :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/contributions/models.py b/azure-devops/azure/devops/v4_1/contributions/models.py new file mode 100644 index 00000000..1a230aeb --- /dev/null +++ b/azure-devops/azure/devops/v4_1/contributions/models.py @@ -0,0 +1,801 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientContribution(Model): + """ClientContribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, includes=None, properties=None, targets=None, type=None): + super(ClientContribution, self).__init__() + self.description = description + self.id = id + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type + + +class ClientContributionNode(Model): + """ClientContributionNode. + + :param children: List of ids for contributions which are children to the current contribution. + :type children: list of str + :param contribution: Contribution associated with this node. + :type contribution: :class:`ClientContribution ` + :param parents: List of ids for contributions which are parents to the current contribution. + :type parents: list of str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[str]'}, + 'contribution': {'key': 'contribution', 'type': 'ClientContribution'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, children=None, contribution=None, parents=None): + super(ClientContributionNode, self).__init__() + self.children = children + self.contribution = contribution + self.parents = parents + + +class ClientContributionProviderDetails(Model): + """ClientContributionProviderDetails. + + :param display_name: Friendly name for the provider. + :type display_name: str + :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes + :type name: str + :param properties: Properties associated with the provider + :type properties: dict + :param version: Version of contributions assoicated with this contribution provider. + :type version: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, display_name=None, name=None, properties=None, version=None): + super(ClientContributionProviderDetails, self).__init__() + self.display_name = display_name + self.name = name + self.properties = properties + self.version = version + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param id: Fully qualified identifier of a shared constraint + :type id: str + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter plugin + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.id = id + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships + + +class ContributionNodeQuery(Model): + """ContributionNodeQuery. + + :param contribution_ids: The contribution ids of the nodes to find. + :type contribution_ids: list of str + :param include_provider_details: Indicator if contribution provider details should be included in the result. + :type include_provider_details: bool + :param query_options: Query options tpo be used when fetching ContributionNodes + :type query_options: object + """ + + _attribute_map = { + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, + 'query_options': {'key': 'queryOptions', 'type': 'object'} + } + + def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): + super(ContributionNodeQuery, self).__init__() + self.contribution_ids = contribution_ids + self.include_provider_details = include_provider_details + self.query_options = query_options + + +class ContributionNodeQueryResult(Model): + """ContributionNodeQueryResult. + + :param nodes: Map of contribution ids to corresponding node. + :type nodes: dict + :param provider_details: Map of provder ids to the corresponding provider details object. + :type provider_details: dict + """ + + _attribute_map = { + 'nodes': {'key': 'nodes', 'type': '{ClientContributionNode}'}, + 'provider_details': {'key': 'providerDetails', 'type': '{ClientContributionProviderDetails}'} + } + + def __init__(self, nodes=None, provider_details=None): + super(ContributionNodeQueryResult, self).__init__() + self.nodes = nodes + self.provider_details = provider_details + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties + + +class DataProviderContext(Model): + """DataProviderContext. + + :param properties: Generic property bag that contains context-specific properties that data providers can use when populating their data dictionary + :type properties: dict + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, properties=None): + super(DataProviderContext, self).__init__() + self.properties = properties + + +class DataProviderExceptionDetails(Model): + """DataProviderExceptionDetails. + + :param exception_type: The type of the exception that was thrown. + :type exception_type: str + :param message: Message that is associated with the exception. + :type message: str + :param stack_trace: The StackTrace from the exception turned into a string. + :type stack_trace: str + """ + + _attribute_map = { + 'exception_type': {'key': 'exceptionType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'} + } + + def __init__(self, exception_type=None, message=None, stack_trace=None): + super(DataProviderExceptionDetails, self).__init__() + self.exception_type = exception_type + self.message = message + self.stack_trace = stack_trace + + +class DataProviderQuery(Model): + """DataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'} + } + + def __init__(self, context=None, contribution_ids=None): + super(DataProviderQuery, self).__init__() + self.context = context + self.contribution_ids = contribution_ids + + +class DataProviderResult(Model): + """DataProviderResult. + + :param client_providers: This is the set of data providers that were requested, but either they were defined as client providers, or as remote providers that failed and may be retried by the client. + :type client_providers: dict + :param data: Property bag of data keyed off of the data provider contribution id + :type data: dict + :param exceptions: Set of exceptions that occurred resolving the data providers. + :type exceptions: dict + :param resolved_providers: List of data providers resolved in the data-provider query + :type resolved_providers: list of :class:`ResolvedDataProvider ` + :param scope_name: Scope name applied to this data provider result. + :type scope_name: str + :param scope_value: Scope value applied to this data provider result. + :type scope_value: str + :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers + :type shared_data: dict + """ + + _attribute_map = { + 'client_providers': {'key': 'clientProviders', 'type': '{ClientDataProviderQuery}'}, + 'data': {'key': 'data', 'type': '{object}'}, + 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, + 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_value': {'key': 'scopeValue', 'type': 'str'}, + 'shared_data': {'key': 'sharedData', 'type': '{object}'} + } + + def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, scope_name=None, scope_value=None, shared_data=None): + super(DataProviderResult, self).__init__() + self.client_providers = client_providers + self.data = data + self.exceptions = exceptions + self.resolved_providers = resolved_providers + self.scope_name = scope_name + self.scope_value = scope_value + self.shared_data = shared_data + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.language = language + self.source = source + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.constraints = constraints + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.restricted_to = restricted_to + self.scopes = scopes + self.service_instance_type = service_instance_type + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id + + +class ResolvedDataProvider(Model): + """ResolvedDataProvider. + + :param duration: The total time the data provider took to resolve its data (in milliseconds) + :type duration: int + :param error: + :type error: str + :param id: + :type id: str + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'int'}, + 'error': {'key': 'error', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, duration=None, error=None, id=None): + super(ResolvedDataProvider, self).__init__() + self.duration = duration + self.error = error + self.id = id + + +class ClientDataProviderQuery(DataProviderQuery): + """ClientDataProviderQuery. + + :param context: Contextual information to pass to the data providers + :type context: :class:`DataProviderContext ` + :param contribution_ids: The contribution ids of the data providers to resolve + :type contribution_ids: list of str + :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. + :type query_service_instance_type: str + """ + + _attribute_map = { + 'context': {'key': 'context', 'type': 'DataProviderContext'}, + 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'query_service_instance_type': {'key': 'queryServiceInstanceType', 'type': 'str'} + } + + def __init__(self, context=None, contribution_ids=None, query_service_instance_type=None): + super(ClientDataProviderQuery, self).__init__(context=context, contribution_ids=contribution_ids) + self.query_service_instance_type = query_service_instance_type + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). + :type restricted_to: list of str + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.restricted_to = restricted_to + self.targets = targets + self.type = type + + +__all__ = [ + 'ClientContribution', + 'ClientContributionNode', + 'ClientContributionProviderDetails', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionNodeQuery', + 'ContributionNodeQueryResult', + 'ContributionPropertyDescription', + 'ContributionType', + 'DataProviderContext', + 'DataProviderExceptionDetails', + 'DataProviderQuery', + 'DataProviderResult', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionLicensing', + 'ExtensionManifest', + 'InstalledExtension', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'ResolvedDataProvider', + 'ClientDataProviderQuery', + 'Contribution', +] diff --git a/azure-devops/azure/devops/v4_1/core/__init__.py b/azure-devops/azure/devops/v4_1/core/__init__.py new file mode 100644 index 00000000..a1b60062 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/core/__init__.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GraphSubjectBase', + 'IdentityData', + 'IdentityRef', + 'JsonPatchOperation', + 'OperationReference', + 'Process', + 'ProcessReference', + 'ProjectInfo', + 'ProjectProperty', + 'Proxy', + 'ProxyAuthorization', + 'PublicKey', + 'ReferenceLinks', + 'TeamMember', + 'TeamProject', + 'TeamProjectCollection', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'WebApiConnectedService', + 'WebApiConnectedServiceDetails', + 'WebApiConnectedServiceRef', + 'WebApiTeam', + 'WebApiTeamRef', +] diff --git a/vsts/vsts/core/v4_1/core_client.py b/azure-devops/azure/devops/v4_1/core/core_client.py similarity index 99% rename from vsts/vsts/core/v4_1/core_client.py rename to azure-devops/azure/devops/v4_1/core/core_client.py index 81dacdf4..df3ca1ad 100644 --- a/vsts/vsts/core/v4_1/core_client.py +++ b/azure-devops/azure/devops/v4_1/core/core_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class CoreClient(VssClient): +class CoreClient(Client): """Core :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/core/models.py b/azure-devops/azure/devops/v4_1/core/models.py new file mode 100644 index 00000000..2d38f15b --- /dev/null +++ b/azure-devops/azure/devops/v4_1/core/models.py @@ -0,0 +1,753 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 IdentityData(Model): + """IdentityData. + + :param identity_ids: + :type identity_ids: list of str + """ + + _attribute_map = { + 'identity_ids': {'key': 'identityIds', 'type': '[str]'} + } + + def __init__(self, identity_ids=None): + super(IdentityData, self).__init__() + self.identity_ids = identity_ids + + +class IdentityRef(GraphSubjectBase): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class OperationReference(Model): + """OperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.plugin_id = plugin_id + self.status = status + self.url = url + + +class ProcessReference(Model): + """ProcessReference. + + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(ProcessReference, self).__init__() + self.name = name + self.url = url + + +class ProjectInfo(Model): + """ProjectInfo. + + :param abbreviation: + :type abbreviation: str + :param description: + :type description: str + :param id: + :type id: str + :param last_update_time: + :type last_update_time: datetime + :param name: + :type name: str + :param properties: + :type properties: list of :class:`ProjectProperty ` + :param revision: Current revision of the project + :type revision: long + :param state: + :type state: object + :param uri: + :type uri: str + :param version: + :type version: long + :param visibility: + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '[ProjectProperty]'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'long'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, last_update_time=None, name=None, properties=None, revision=None, state=None, uri=None, version=None, visibility=None): + super(ProjectInfo, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.last_update_time = last_update_time + self.name = name + self.properties = properties + self.revision = revision + self.state = state + self.uri = uri + self.version = version + self.visibility = visibility + + +class ProjectProperty(Model): + """ProjectProperty. + + :param name: + :type name: str + :param value: + :type value: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, name=None, value=None): + super(ProjectProperty, self).__init__() + self.name = name + self.value = value + + +class Proxy(Model): + """Proxy. + + :param authorization: + :type authorization: :class:`ProxyAuthorization ` + :param description: This is a description string + :type description: str + :param friendly_name: The friendly name of the server + :type friendly_name: str + :param global_default: + :type global_default: bool + :param site: This is a string representation of the site that the proxy server is located in (e.g. "NA-WA-RED") + :type site: str + :param site_default: + :type site_default: bool + :param url: The URL of the proxy server + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'ProxyAuthorization'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'global_default': {'key': 'globalDefault', 'type': 'bool'}, + 'site': {'key': 'site', 'type': 'str'}, + 'site_default': {'key': 'siteDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, description=None, friendly_name=None, global_default=None, site=None, site_default=None, url=None): + super(Proxy, self).__init__() + self.authorization = authorization + self.description = description + self.friendly_name = friendly_name + self.global_default = global_default + self.site = site + self.site_default = site_default + self.url = url + + +class ProxyAuthorization(Model): + """ProxyAuthorization. + + :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. + :type authorization_url: str + :param client_id: Gets or sets the client identifier for this proxy. + :type client_id: str + :param identity: Gets or sets the user identity to authorize for on-prem. + :type identity: :class:`str ` + :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. + :type public_key: :class:`PublicKey ` + """ + + _attribute_map = { + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'PublicKey'} + } + + def __init__(self, authorization_url=None, client_id=None, identity=None, public_key=None): + super(ProxyAuthorization, self).__init__() + self.authorization_url = authorization_url + self.client_id = client_id + self.identity = identity + self.public_key = public_key + + +class PublicKey(Model): + """PublicKey. + + :param exponent: Gets or sets the exponent for the public key. + :type exponent: str + :param modulus: Gets or sets the modulus for the public key. + :type modulus: str + """ + + _attribute_map = { + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} + } + + def __init__(self, exponent=None, modulus=None): + super(PublicKey, self).__init__() + self.exponent = exponent + self.modulus = modulus + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class TeamMember(Model): + """TeamMember. + + :param identity: + :type identity: :class:`IdentityRef ` + :param is_team_admin: + :type is_team_admin: bool + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'IdentityRef'}, + 'is_team_admin': {'key': 'isTeamAdmin', 'type': 'bool'} + } + + def __init__(self, identity=None, is_team_admin=None): + super(TeamMember, self).__init__() + self.identity = identity + self.is_team_admin = is_team_admin + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class WebApiConnectedServiceRef(Model): + """WebApiConnectedServiceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WebApiConnectedServiceRef, self).__init__() + self.id = id + self.url = url + + +class WebApiTeamRef(Model): + """WebApiTeamRef. + + :param id: Team (Identity) Guid. A Team Foundation ID. + :type id: str + :param name: Team name + :type name: str + :param url: Team REST API Url + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(WebApiTeamRef, self).__init__() + self.id = id + self.name = name + self.url = url + + +class Process(ProcessReference): + """Process. + + :param name: + :type name: str + :param url: + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: str + :param is_default: + :type is_default: bool + :param type: + :type type: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, name=None, url=None, _links=None, description=None, id=None, is_default=None, type=None): + super(Process, self).__init__(name=name, url=url) + self._links = _links + self.description = description + self.id = id + self.is_default = is_default + self.type = type + + +class TeamProject(TeamProjectReference): + """TeamProject. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param capabilities: Set of capabilities this project has (such as process template & version control). + :type capabilities: dict + :param default_team: The shallow ref to the default team. + :type default_team: :class:`WebApiTeamRef ` + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'capabilities': {'key': 'capabilities', 'type': '{{str}}'}, + 'default_team': {'key': 'defaultTeam', 'type': 'WebApiTeamRef'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): + super(TeamProject, self).__init__(abbreviation=abbreviation, description=description, id=id, name=name, revision=revision, state=state, url=url, visibility=visibility) + self._links = _links + self.capabilities = capabilities + self.default_team = default_team + + +class TeamProjectCollection(TeamProjectCollectionReference): + """TeamProjectCollection. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param description: Project collection description. + :type description: str + :param state: Project collection state. + :type state: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, description=None, state=None): + super(TeamProjectCollection, self).__init__(id=id, name=name, url=url) + self._links = _links + self.description = description + self.state = state + + +class WebApiConnectedService(WebApiConnectedServiceRef): + """WebApiConnectedService. + + :param url: + :type url: str + :param authenticated_by: The user who did the OAuth authentication to created this service + :type authenticated_by: :class:`IdentityRef ` + :param description: Extra description on the service. + :type description: str + :param friendly_name: Friendly Name of service connection + :type friendly_name: str + :param id: Id/Name of the connection service. For Ex: Subscription Id for Azure Connection + :type id: str + :param kind: The kind of service. + :type kind: str + :param project: The project associated with this service + :type project: :class:`TeamProjectReference ` + :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com + :type service_uri: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'authenticated_by': {'key': 'authenticatedBy', 'type': 'IdentityRef'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'service_uri': {'key': 'serviceUri', 'type': 'str'} + } + + def __init__(self, url=None, authenticated_by=None, description=None, friendly_name=None, id=None, kind=None, project=None, service_uri=None): + super(WebApiConnectedService, self).__init__(url=url) + self.authenticated_by = authenticated_by + self.description = description + self.friendly_name = friendly_name + self.id = id + self.kind = kind + self.project = project + self.service_uri = service_uri + + +class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): + """WebApiConnectedServiceDetails. + + :param id: + :type id: str + :param url: + :type url: str + :param connected_service_meta_data: Meta data for service connection + :type connected_service_meta_data: :class:`WebApiConnectedService ` + :param credentials_xml: Credential info + :type credentials_xml: str + :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com + :type end_point: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'connected_service_meta_data': {'key': 'connectedServiceMetaData', 'type': 'WebApiConnectedService'}, + 'credentials_xml': {'key': 'credentialsXml', 'type': 'str'}, + 'end_point': {'key': 'endPoint', 'type': 'str'} + } + + def __init__(self, id=None, url=None, connected_service_meta_data=None, credentials_xml=None, end_point=None): + super(WebApiConnectedServiceDetails, self).__init__(id=id, url=url) + self.connected_service_meta_data = connected_service_meta_data + self.credentials_xml = credentials_xml + self.end_point = end_point + + +class WebApiTeam(WebApiTeamRef): + """WebApiTeam. + + :param id: Team (Identity) Guid. A Team Foundation ID. + :type id: str + :param name: Team name + :type name: str + :param url: Team REST API Url + :type url: str + :param description: Team description + :type description: str + :param identity_url: Identity REST API Url to this team + :type identity_url: str + :param project_id: + :type project_id: str + :param project_name: + :type project_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'identity_url': {'key': 'identityUrl', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'project_name': {'key': 'projectName', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None, description=None, identity_url=None, project_id=None, project_name=None): + super(WebApiTeam, self).__init__(id=id, name=name, url=url) + self.description = description + self.identity_url = identity_url + self.project_id = project_id + self.project_name = project_name + + +__all__ = [ + 'GraphSubjectBase', + 'IdentityData', + 'IdentityRef', + 'JsonPatchOperation', + 'OperationReference', + 'ProcessReference', + 'ProjectInfo', + 'ProjectProperty', + 'Proxy', + 'ProxyAuthorization', + 'PublicKey', + 'ReferenceLinks', + 'TeamMember', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'WebApiConnectedServiceRef', + 'WebApiTeamRef', + 'Process', + 'TeamProject', + 'TeamProjectCollection', + 'WebApiConnectedService', + 'WebApiConnectedServiceDetails', + 'WebApiTeam', +] diff --git a/vsts/vsts/build/__init__.py b/azure-devops/azure/devops/v4_1/customer_intelligence/__init__.py similarity index 88% rename from vsts/vsts/build/__init__.py rename to azure-devops/azure/devops/v4_1/customer_intelligence/__init__.py index f885a96e..97323297 100644 --- a/vsts/vsts/build/__init__.py +++ b/azure-devops/azure/devops/v4_1/customer_intelligence/__init__.py @@ -5,3 +5,9 @@ # Generated file, DO NOT EDIT # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- + +from .models import * + +__all__ = [ + 'CustomerIntelligenceEvent', +] diff --git a/vsts/vsts/customer_intelligence/v4_1/customer_intelligence_client.py b/azure-devops/azure/devops/v4_1/customer_intelligence/customer_intelligence_client.py similarity index 89% rename from vsts/vsts/customer_intelligence/v4_1/customer_intelligence_client.py rename to azure-devops/azure/devops/v4_1/customer_intelligence/customer_intelligence_client.py index 738f6ecb..afd075e6 100644 --- a/vsts/vsts/customer_intelligence/v4_1/customer_intelligence_client.py +++ b/azure-devops/azure/devops/v4_1/customer_intelligence/customer_intelligence_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class CustomerIntelligenceClient(VssClient): +class CustomerIntelligenceClient(Client): """CustomerIntelligence :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/customer_intelligence/v4_1/models/customer_intelligence_event.py b/azure-devops/azure/devops/v4_1/customer_intelligence/models.py similarity index 88% rename from vsts/vsts/customer_intelligence/v4_1/models/customer_intelligence_event.py rename to azure-devops/azure/devops/v4_1/customer_intelligence/models.py index c0cb660c..0f9dc7d2 100644 --- a/vsts/vsts/customer_intelligence/v4_1/models/customer_intelligence_event.py +++ b/azure-devops/azure/devops/v4_1/customer_intelligence/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -31,3 +31,8 @@ def __init__(self, area=None, feature=None, properties=None): self.area = area self.feature = feature self.properties = properties + + +__all__ = [ + 'CustomerIntelligenceEvent', +] diff --git a/azure-devops/azure/devops/v4_1/dashboard/__init__.py b/azure-devops/azure/devops/v4_1/dashboard/__init__.py new file mode 100644 index 00000000..f031af8a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/dashboard/__init__.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Dashboard', + 'DashboardGroup', + 'DashboardGroupEntry', + 'DashboardGroupEntryResponse', + 'DashboardResponse', + 'LightboxOptions', + 'ReferenceLinks', + 'SemanticVersion', + 'TeamContext', + 'Widget', + 'WidgetMetadata', + 'WidgetMetadataResponse', + 'WidgetPosition', + 'WidgetResponse', + 'WidgetSize', + 'WidgetsVersionedList', + 'WidgetTypesResponse', +] diff --git a/vsts/vsts/dashboard/v4_1/dashboard_client.py b/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py similarity index 99% rename from vsts/vsts/dashboard/v4_1/dashboard_client.py rename to azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py index c5982bf1..25baaa5c 100644 --- a/vsts/vsts/dashboard/v4_1/dashboard_client.py +++ b/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class DashboardClient(VssClient): +class DashboardClient(Client): """Dashboard :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/dashboard/models.py b/azure-devops/azure/devops/v4_1/dashboard/models.py new file mode 100644 index 00000000..51d9cace --- /dev/null +++ b/azure-devops/azure/devops/v4_1/dashboard/models.py @@ -0,0 +1,710 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Dashboard(Model): + """Dashboard. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(Dashboard, self).__init__() + self._links = _links + self.description = description + self.eTag = eTag + self.id = id + self.name = name + self.owner_id = owner_id + self.position = position + self.refresh_interval = refresh_interval + self.url = url + self.widgets = widgets + + +class DashboardGroup(Model): + """DashboardGroup. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param dashboard_entries: A list of Dashboards held by the Dashboard Group + :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. + :type permission: object + :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. + :type team_dashboard_permission: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'dashboard_entries': {'key': 'dashboardEntries', 'type': '[DashboardGroupEntry]'}, + 'permission': {'key': 'permission', 'type': 'object'}, + 'team_dashboard_permission': {'key': 'teamDashboardPermission', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, dashboard_entries=None, permission=None, team_dashboard_permission=None, url=None): + super(DashboardGroup, self).__init__() + self._links = _links + self.dashboard_entries = dashboard_entries + self.permission = permission + self.team_dashboard_permission = team_dashboard_permission + self.url = url + + +class DashboardGroupEntry(Dashboard): + """DashboardGroupEntry. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntry, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) + + +class DashboardGroupEntryResponse(DashboardGroupEntry): + """DashboardGroupEntryResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardGroupEntryResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) + + +class DashboardResponse(DashboardGroupEntry): + """DashboardResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. + :type description: str + :param eTag: Server defined version tracking value, used for edit collision detection. + :type eTag: str + :param id: ID of the Dashboard. Provided by service at creation time. + :type id: str + :param name: Name of the Dashboard. + :type name: str + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :type owner_id: str + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. + :type position: int + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. + :type refresh_interval: int + :param url: + :type url: str + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'}, + } + + def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): + super(DashboardResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) + + +class LightboxOptions(Model): + """LightboxOptions. + + :param height: Height of desired lightbox, in pixels + :type height: int + :param resizable: True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false. + :type resizable: bool + :param width: Width of desired lightbox, in pixels + :type width: int + """ + + _attribute_map = { + 'height': {'key': 'height', 'type': 'int'}, + 'resizable': {'key': 'resizable', 'type': 'bool'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, height=None, resizable=None, width=None): + super(LightboxOptions, self).__init__() + self.height = height + self.resizable = resizable + self.width = width + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class SemanticVersion(Model): + """SemanticVersion. + + :param major: Major version when you make incompatible API changes + :type major: int + :param minor: Minor version when you add functionality in a backwards-compatible manner + :type minor: int + :param patch: Patch version when you make backwards-compatible bug fixes + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(SemanticVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class Widget(Model): + """Widget. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. + :type are_settings_blocked_for_user: bool + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(Widget, self).__init__() + self._links = _links + self.allowed_sizes = allowed_sizes + self.are_settings_blocked_for_user = are_settings_blocked_for_user + self.artifact_id = artifact_id + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.content_uri = content_uri + self.contribution_id = contribution_id + self.dashboard = dashboard + self.eTag = eTag + self.id = id + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.position = position + self.settings = settings + self.settings_version = settings_version + self.size = size + self.type_id = type_id + self.url = url + + +class WidgetMetadata(Model): + """WidgetMetadata. + + :param allowed_sizes: Sizes supported by the Widget. + :type allowed_sizes: list of :class:`WidgetSize ` + :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. + :type analytics_service_required: bool + :param catalog_icon_url: Resource for an icon in the widget catalog. + :type catalog_icon_url: str + :param catalog_info_url: Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted + :type catalog_info_url: str + :param configuration_contribution_id: The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. + :type configuration_contribution_relative_id: str + :param configuration_required: Indicates if the widget requires configuration before being added to dashboard. + :type configuration_required: bool + :param content_uri: Uri for the widget content to be loaded from . + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget. + :type contribution_id: str + :param default_settings: Optional default settings to be copied into widget settings. + :type default_settings: str + :param description: Summary information describing the widget. + :type description: str + :param is_enabled: Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context) + :type is_enabled: bool + :param is_name_configurable: Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest. + :type is_name_configurable: bool + :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. + :type is_visible_from_catalog: bool + :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: Resource for a loading placeholder image on dashboard + :type loading_image_url: str + :param name: User facing name of the widget type. Each widget must use a unique value here. + :type name: str + :param publisher_name: Publisher Name of this kind of widget. + :type publisher_name: str + :param supported_scopes: Data contract required for the widget to function and to work in its container. + :type supported_scopes: list of WidgetScope + :param targets: Contribution target IDs + :type targets: list of str + :param type_id: Deprecated: locally unique developer-facing id of this kind of widget. ContributionId provides a globally unique identifier for widget types. + :type type_id: str + """ + + _attribute_map = { + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'analytics_service_required': {'key': 'analyticsServiceRequired', 'type': 'bool'}, + 'catalog_icon_url': {'key': 'catalogIconUrl', 'type': 'str'}, + 'catalog_info_url': {'key': 'catalogInfoUrl', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'configuration_required': {'key': 'configurationRequired', 'type': 'bool'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'default_settings': {'key': 'defaultSettings', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'is_visible_from_catalog': {'key': 'isVisibleFromCatalog', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[object]'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, allowed_sizes=None, analytics_service_required=None, catalog_icon_url=None, catalog_info_url=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, configuration_required=None, content_uri=None, contribution_id=None, default_settings=None, description=None, is_enabled=None, is_name_configurable=None, is_visible_from_catalog=None, lightbox_options=None, loading_image_url=None, name=None, publisher_name=None, supported_scopes=None, targets=None, type_id=None): + super(WidgetMetadata, self).__init__() + self.allowed_sizes = allowed_sizes + self.analytics_service_required = analytics_service_required + self.catalog_icon_url = catalog_icon_url + self.catalog_info_url = catalog_info_url + self.configuration_contribution_id = configuration_contribution_id + self.configuration_contribution_relative_id = configuration_contribution_relative_id + self.configuration_required = configuration_required + self.content_uri = content_uri + self.contribution_id = contribution_id + self.default_settings = default_settings + self.description = description + self.is_enabled = is_enabled + self.is_name_configurable = is_name_configurable + self.is_visible_from_catalog = is_visible_from_catalog + self.lightbox_options = lightbox_options + self.loading_image_url = loading_image_url + self.name = name + self.publisher_name = publisher_name + self.supported_scopes = supported_scopes + self.targets = targets + self.type_id = type_id + + +class WidgetMetadataResponse(Model): + """WidgetMetadataResponse. + + :param uri: + :type uri: str + :param widget_metadata: + :type widget_metadata: :class:`WidgetMetadata ` + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_metadata': {'key': 'widgetMetadata', 'type': 'WidgetMetadata'} + } + + def __init__(self, uri=None, widget_metadata=None): + super(WidgetMetadataResponse, self).__init__() + self.uri = uri + self.widget_metadata = widget_metadata + + +class WidgetPosition(Model): + """WidgetPosition. + + :param column: + :type column: int + :param row: + :type row: int + """ + + _attribute_map = { + 'column': {'key': 'column', 'type': 'int'}, + 'row': {'key': 'row', 'type': 'int'} + } + + def __init__(self, column=None, row=None): + super(WidgetPosition, self).__init__() + self.column = column + self.row = row + + +class WidgetResponse(Widget): + """WidgetResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget + :type allowed_sizes: list of :class:`WidgetSize ` + :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. + :type are_settings_blocked_for_user: bool + :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. + :type artifact_id: str + :param configuration_contribution_id: + :type configuration_contribution_id: str + :param configuration_contribution_relative_id: + :type configuration_contribution_relative_id: str + :param content_uri: + :type content_uri: str + :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. + :type contribution_id: str + :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs + :type dashboard: :class:`Dashboard ` + :param eTag: + :type eTag: str + :param id: + :type id: str + :param is_enabled: + :type is_enabled: bool + :param is_name_configurable: + :type is_name_configurable: bool + :param lightbox_options: + :type lightbox_options: :class:`LightboxOptions ` + :param loading_image_url: + :type loading_image_url: str + :param name: + :type name: str + :param position: + :type position: :class:`WidgetPosition ` + :param settings: + :type settings: str + :param settings_version: + :type settings_version: :class:`SemanticVersion ` + :param size: + :type size: :class:`WidgetSize ` + :param type_id: + :type type_id: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, + 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, + 'content_uri': {'key': 'contentUri', 'type': 'str'}, + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, + 'eTag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, + 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, + 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'WidgetPosition'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, + 'size': {'key': 'size', 'type': 'WidgetSize'}, + 'type_id': {'key': 'typeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, are_settings_blocked_for_user=are_settings_blocked_for_user, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) + + +class WidgetSize(Model): + """WidgetSize. + + :param column_span: The Width of the widget, expressed in dashboard grid columns. + :type column_span: int + :param row_span: The height of the widget, expressed in dashboard grid rows. + :type row_span: int + """ + + _attribute_map = { + 'column_span': {'key': 'columnSpan', 'type': 'int'}, + 'row_span': {'key': 'rowSpan', 'type': 'int'} + } + + def __init__(self, column_span=None, row_span=None): + super(WidgetSize, self).__init__() + self.column_span = column_span + self.row_span = row_span + + +class WidgetsVersionedList(Model): + """WidgetsVersionedList. + + :param eTag: + :type eTag: list of str + :param widgets: + :type widgets: list of :class:`Widget ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'widgets': {'key': 'widgets', 'type': '[Widget]'} + } + + def __init__(self, eTag=None, widgets=None): + super(WidgetsVersionedList, self).__init__() + self.eTag = eTag + self.widgets = widgets + + +class WidgetTypesResponse(Model): + """WidgetTypesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param uri: + :type uri: str + :param widget_types: + :type widget_types: list of :class:`WidgetMetadata ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'widget_types': {'key': 'widgetTypes', 'type': '[WidgetMetadata]'} + } + + def __init__(self, _links=None, uri=None, widget_types=None): + super(WidgetTypesResponse, self).__init__() + self._links = _links + self.uri = uri + self.widget_types = widget_types + + +__all__ = [ + 'Dashboard', + 'DashboardGroup', + 'DashboardGroupEntry', + 'DashboardGroupEntryResponse', + 'DashboardResponse', + 'LightboxOptions', + 'ReferenceLinks', + 'SemanticVersion', + 'TeamContext', + 'Widget', + 'WidgetMetadata', + 'WidgetMetadataResponse', + 'WidgetPosition', + 'WidgetResponse', + 'WidgetSize', + 'WidgetsVersionedList', + 'WidgetTypesResponse', +] diff --git a/azure-devops/azure/devops/v4_1/extension_management/__init__.py b/azure-devops/azure/devops/v4_1/extension_management/__init__.py new file mode 100644 index 00000000..73bd8e9a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/extension_management/__init__.py @@ -0,0 +1,50 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOperationDisallowReason', + 'AcquisitionOptions', + 'Contribution', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionPropertyDescription', + 'ContributionType', + 'ExtensionAcquisitionRequest', + 'ExtensionAuthorization', + 'ExtensionBadge', + 'ExtensionDataCollection', + 'ExtensionDataCollectionQuery', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionIdentifier', + 'ExtensionLicensing', + 'ExtensionManifest', + 'ExtensionPolicy', + 'ExtensionRequest', + 'ExtensionShare', + 'ExtensionState', + 'ExtensionStatistic', + 'ExtensionVersion', + 'GraphSubjectBase', + 'IdentityRef', + 'InstallationTarget', + 'InstalledExtension', + 'InstalledExtensionQuery', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'PublishedExtension', + 'PublisherFacts', + 'ReferenceLinks', + 'RequestedExtension', + 'UserExtensionPolicy', +] diff --git a/vsts/vsts/extension_management/v4_1/extension_management_client.py b/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py similarity index 98% rename from vsts/vsts/extension_management/v4_1/extension_management_client.py rename to azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py index 010abc65..3be56941 100644 --- a/vsts/vsts/extension_management/v4_1/extension_management_client.py +++ b/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ExtensionManagementClient(VssClient): +class ExtensionManagementClient(Client): """ExtensionManagement :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/extension_management/models.py b/azure-devops/azure/devops/v4_1/extension_management/models.py new file mode 100644 index 00000000..9046797a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/extension_management/models.py @@ -0,0 +1,1257 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + :param reasons: List of reasons indicating why the operation is not allowed. + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reasons': {'key': 'reasons', 'type': '[AcquisitionOperationDisallowReason]'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None, reasons=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason + self.reasons = reasons + + +class AcquisitionOperationDisallowReason(Model): + """AcquisitionOperationDisallowReason. + + :param message: User-friendly message clarifying the reason for disallowance + :type message: str + :param type: Type of reason for disallowance - AlreadyInstalled, UnresolvedDemand, etc. + :type type: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, message=None, type=None): + super(AcquisitionOperationDisallowReason, self).__init__() + self.message = message + self.type = type + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, properties=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.properties = properties + self.target = target + + +class ContributionBase(Model): + """ContributionBase. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, visible_to=None): + super(ContributionBase, self).__init__() + self.description = description + self.id = id + self.visible_to = visible_to + + +class ContributionConstraint(Model): + """ContributionConstraint. + + :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). + :type group: int + :param id: Fully qualified identifier of a shared constraint + :type id: str + :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) + :type inverse: bool + :param name: Name of the IContributionFilter plugin + :type name: str + :param properties: Properties that are fed to the contribution filter class + :type properties: :class:`object ` + :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. + :type relationships: list of str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inverse': {'key': 'inverse', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relationships': {'key': 'relationships', 'type': '[str]'} + } + + def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): + super(ContributionConstraint, self).__init__() + self.group = group + self.id = id + self.inverse = inverse + self.name = name + self.properties = properties + self.relationships = relationships + + +class ContributionPropertyDescription(Model): + """ContributionPropertyDescription. + + :param description: Description of the property + :type description: str + :param name: Name of the property + :type name: str + :param required: True if this property is required + :type required: bool + :param type: The type of value used for this property + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, required=None, type=None): + super(ContributionPropertyDescription, self).__init__() + self.description = description + self.name = name + self.required = required + self.type = type + + +class ContributionType(ContributionBase): + """ContributionType. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. + :type indexed: bool + :param name: Friendly name of the contribution/type + :type name: str + :param properties: Describes the allowed properties for this contribution type + :type properties: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'indexed': {'key': 'indexed', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} + } + + def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): + super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) + self.indexed = indexed + self.name = name + self.properties = properties + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity + + +class ExtensionAuthorization(Model): + """ExtensionAuthorization. + + :param id: + :type id: str + :param scopes: + :type scopes: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[str]'} + } + + def __init__(self, id=None, scopes=None): + super(ExtensionAuthorization, self).__init__() + self.id = id + self.scopes = scopes + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link + + +class ExtensionDataCollection(Model): + """ExtensionDataCollection. + + :param collection_name: The name of the collection + :type collection_name: str + :param documents: A list of documents belonging to the collection + :type documents: list of :class:`object ` + :param scope_type: The type of the collection's scope, such as Default or User + :type scope_type: str + :param scope_value: The value of the collection's scope, such as Current or Me + :type scope_value: str + """ + + _attribute_map = { + 'collection_name': {'key': 'collectionName', 'type': 'str'}, + 'documents': {'key': 'documents', 'type': '[object]'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'scope_value': {'key': 'scopeValue', 'type': 'str'} + } + + def __init__(self, collection_name=None, documents=None, scope_type=None, scope_value=None): + super(ExtensionDataCollection, self).__init__() + self.collection_name = collection_name + self.documents = documents + self.scope_type = scope_type + self.scope_value = scope_value + + +class ExtensionDataCollectionQuery(Model): + """ExtensionDataCollectionQuery. + + :param collections: A list of collections to query + :type collections: list of :class:`ExtensionDataCollection ` + """ + + _attribute_map = { + 'collections': {'key': 'collections', 'type': '[ExtensionDataCollection]'} + } + + def __init__(self, collections=None): + super(ExtensionDataCollectionQuery, self).__init__() + self.collections = collections + + +class ExtensionEventCallback(Model): + """ExtensionEventCallback. + + :param uri: The uri of the endpoint that is hit when an event occurs + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, uri=None): + super(ExtensionEventCallback, self).__init__() + self.uri = uri + + +class ExtensionEventCallbackCollection(Model): + """ExtensionEventCallbackCollection. + + :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. + :type post_disable: :class:`ExtensionEventCallback ` + :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. + :type post_enable: :class:`ExtensionEventCallback ` + :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. + :type post_install: :class:`ExtensionEventCallback ` + :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. + :type post_uninstall: :class:`ExtensionEventCallback ` + :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. + :type post_update: :class:`ExtensionEventCallback ` + :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. + :type pre_install: :class:`ExtensionEventCallback ` + :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used + :type version_check: :class:`ExtensionEventCallback ` + """ + + _attribute_map = { + 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, + 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, + 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, + 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, + 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, + 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, + 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} + } + + def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): + super(ExtensionEventCallbackCollection, self).__init__() + self.post_disable = post_disable + self.post_enable = post_enable + self.post_install = post_install + self.post_uninstall = post_uninstall + self.post_update = post_update + self.pre_install = pre_install + self.version_check = version_check + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.language = language + self.source = source + + +class ExtensionIdentifier(Model): + """ExtensionIdentifier. + + :param extension_name: The ExtensionName component part of the fully qualified ExtensionIdentifier + :type extension_name: str + :param publisher_name: The PublisherName component part of the fully qualified ExtensionIdentifier + :type publisher_name: str + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, extension_name=None, publisher_name=None): + super(ExtensionIdentifier, self).__init__() + self.extension_name = extension_name + self.publisher_name = publisher_name + + +class ExtensionLicensing(Model): + """ExtensionLicensing. + + :param overrides: A list of contributions which deviate from the default licensing behavior + :type overrides: list of :class:`LicensingOverride ` + """ + + _attribute_map = { + 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} + } + + def __init__(self, overrides=None): + super(ExtensionLicensing, self).__init__() + self.overrides = overrides + + +class ExtensionManifest(Model): + """ExtensionManifest. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): + super(ExtensionManifest, self).__init__() + self.base_uri = base_uri + self.constraints = constraints + self.contributions = contributions + self.contribution_types = contribution_types + self.demands = demands + self.event_callbacks = event_callbacks + self.fallback_base_uri = fallback_base_uri + self.language = language + self.licensing = licensing + self.manifest_version = manifest_version + self.restricted_to = restricted_to + self.scopes = scopes + self.service_instance_type = service_instance_type + + +class ExtensionPolicy(Model): + """ExtensionPolicy. + + :param install: Permissions on 'Install' operation + :type install: object + :param request: Permission on 'Request' operation + :type request: object + """ + + _attribute_map = { + 'install': {'key': 'install', 'type': 'object'}, + 'request': {'key': 'request', 'type': 'object'} + } + + def __init__(self, install=None, request=None): + super(ExtensionPolicy, self).__init__() + self.install = install + self.request = request + + +class ExtensionRequest(Model): + """ExtensionRequest. + + :param reject_message: Required message supplied if the request is rejected + :type reject_message: str + :param request_date: Date at which the request was made + :type request_date: datetime + :param requested_by: Represents the user who made the request + :type requested_by: :class:`IdentityRef ` + :param request_message: Optional message supplied by the requester justifying the request + :type request_message: str + :param request_state: Represents the state of the request + :type request_state: object + :param resolve_date: Date at which the request was resolved + :type resolve_date: datetime + :param resolved_by: Represents the user who resolved the request + :type resolved_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'reject_message': {'key': 'rejectMessage', 'type': 'str'}, + 'request_date': {'key': 'requestDate', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_message': {'key': 'requestMessage', 'type': 'str'}, + 'request_state': {'key': 'requestState', 'type': 'object'}, + 'resolve_date': {'key': 'resolveDate', 'type': 'iso-8601'}, + 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'} + } + + def __init__(self, reject_message=None, request_date=None, requested_by=None, request_message=None, request_state=None, resolve_date=None, resolved_by=None): + super(ExtensionRequest, self).__init__() + self.reject_message = reject_message + self.request_date = request_date + self.requested_by = requested_by + self.request_message = request_message + self.request_state = request_state + self.resolve_date = resolve_date + self.resolved_by = resolved_by + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: float + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class InstallationTarget(Model): + """InstallationTarget. + + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.target = target + self.target_version = target_version + + +class InstalledExtension(ExtensionManifest): + """InstalledExtension. + + :param base_uri: Uri used as base for other relative uri's defined in extension + :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` + :param contributions: List of contributions made by this extension + :type contributions: list of :class:`Contribution ` + :param contribution_types: List of contribution types defined by this extension + :type contribution_types: list of :class:`ContributionType ` + :param demands: List of explicit demands required by this extension + :type demands: list of str + :param event_callbacks: Collection of endpoints that get called when particular extension events occur + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension + :type fallback_base_uri: str + :param language: Language Culture Name set by the Gallery + :type language: str + :param licensing: How this extension behaves with respect to licensing + :type licensing: :class:`ExtensionLicensing ` + :param manifest_version: Version of the extension manifest format/content + :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str + :param scopes: List of all oauth scopes required by this extension + :type scopes: list of str + :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed + :type service_instance_type: str + :param extension_id: The friendly extension id for this extension - unique for a given publisher. + :type extension_id: str + :param extension_name: The display name of the extension. + :type extension_name: str + :param files: This is the set of files available from the extension. + :type files: list of :class:`ExtensionFile ` + :param flags: Extension flags relevant to contribution consumers + :type flags: object + :param install_state: Information about this particular installation of the extension + :type install_state: :class:`InstalledExtensionState ` + :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. + :type last_published: datetime + :param publisher_id: Unique id of the publisher of this extension + :type publisher_id: str + :param publisher_name: The display name of the publisher + :type publisher_name: str + :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) + :type registration_id: str + :param version: Version of this extension + :type version: str + """ + + _attribute_map = { + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, + 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, + 'demands': {'key': 'demands', 'type': '[str]'}, + 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, + 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, + 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, + 'scopes': {'key': 'scopes', 'type': '[str]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, + 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'registration_id': {'key': 'registrationId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) + self.extension_id = extension_id + self.extension_name = extension_name + self.files = files + self.flags = flags + self.install_state = install_state + self.last_published = last_published + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.registration_id = registration_id + self.version = version + + +class InstalledExtensionQuery(Model): + """InstalledExtensionQuery. + + :param asset_types: + :type asset_types: list of str + :param monikers: + :type monikers: list of :class:`ExtensionIdentifier ` + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'monikers': {'key': 'monikers', 'type': '[ExtensionIdentifier]'} + } + + def __init__(self, asset_types=None, monikers=None): + super(InstalledExtensionQuery, self).__init__() + self.asset_types = asset_types + self.monikers = monikers + + +class InstalledExtensionState(Model): + """InstalledExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None): + super(InstalledExtensionState, self).__init__() + self.flags = flags + self.installation_issues = installation_issues + self.last_updated = last_updated + + +class InstalledExtensionStateIssue(Model): + """InstalledExtensionStateIssue. + + :param message: The error message + :type message: str + :param source: Source of the installation issue, for example "Demands" + :type source: str + :param type: Installation issue type (Warning, Error) + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, source=None, type=None): + super(InstalledExtensionStateIssue, self).__init__() + self.message = message + self.source = source + self.type = type + + +class LicensingOverride(Model): + """LicensingOverride. + + :param behavior: How the inclusion of this contribution should change based on licensing + :type behavior: object + :param id: Fully qualified contribution id which we want to define licensing behavior for + :type id: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, behavior=None, id=None): + super(LicensingOverride, self).__init__() + self.behavior = behavior + self.id = id + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class RequestedExtension(Model): + """RequestedExtension. + + :param extension_name: The unique name of the extension + :type extension_name: str + :param extension_requests: A list of each request for the extension + :type extension_requests: list of :class:`ExtensionRequest ` + :param publisher_display_name: DisplayName of the publisher that owns the extension being published. + :type publisher_display_name: str + :param publisher_name: Represents the Publisher of the requested extension + :type publisher_name: str + :param request_count: The total number of requests for an extension + :type request_count: int + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'extension_requests': {'key': 'extensionRequests', 'type': '[ExtensionRequest]'}, + 'publisher_display_name': {'key': 'publisherDisplayName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'request_count': {'key': 'requestCount', 'type': 'int'} + } + + def __init__(self, extension_name=None, extension_requests=None, publisher_display_name=None, publisher_name=None, request_count=None): + super(RequestedExtension, self).__init__() + self.extension_name = extension_name + self.extension_requests = extension_requests + self.publisher_display_name = publisher_display_name + self.publisher_name = publisher_name + self.request_count = request_count + + +class UserExtensionPolicy(Model): + """UserExtensionPolicy. + + :param display_name: User display name that this policy refers to + :type display_name: str + :param permissions: The extension policy applied to the user + :type permissions: :class:`ExtensionPolicy ` + :param user_id: User id that this policy refers to + :type user_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'permissions': {'key': 'permissions', 'type': 'ExtensionPolicy'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, display_name=None, permissions=None, user_id=None): + super(UserExtensionPolicy, self).__init__() + self.display_name = display_name + self.permissions = permissions + self.user_id = user_id + + +class Contribution(ContributionBase): + """Contribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. + :type visible_to: list of str + :param constraints: List of constraints (filters) that should be applied to the availability of this contribution + :type constraints: list of :class:`ContributionConstraint ` + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). + :type restricted_to: list of str + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): + super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) + self.constraints = constraints + self.includes = includes + self.properties = properties + self.restricted_to = restricted_to + self.targets = targets + self.type = type + + +class ExtensionState(InstalledExtensionState): + """ExtensionState. + + :param flags: States of an installed extension + :type flags: object + :param installation_issues: List of installation issues + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :param last_updated: The time at which this installation was last updated + :type last_updated: datetime + :param extension_name: + :type extension_name: str + :param last_version_check: The time at which the version was last checked + :type last_version_check: datetime + :param publisher_name: + :type publisher_name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'last_version_check': {'key': 'lastVersionCheck', 'type': 'iso-8601'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, flags=None, installation_issues=None, last_updated=None, extension_name=None, last_version_check=None, publisher_name=None, version=None): + super(ExtensionState, self).__init__(flags=flags, installation_issues=installation_issues, last_updated=last_updated) + self.extension_name = extension_name + self.last_version_check = last_version_check + self.publisher_name = publisher_name + self.version = version + + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOperationDisallowReason', + 'AcquisitionOptions', + 'ContributionBase', + 'ContributionConstraint', + 'ContributionPropertyDescription', + 'ContributionType', + 'ExtensionAcquisitionRequest', + 'ExtensionAuthorization', + 'ExtensionBadge', + 'ExtensionDataCollection', + 'ExtensionDataCollectionQuery', + 'ExtensionEventCallback', + 'ExtensionEventCallbackCollection', + 'ExtensionFile', + 'ExtensionIdentifier', + 'ExtensionLicensing', + 'ExtensionManifest', + 'ExtensionPolicy', + 'ExtensionRequest', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionVersion', + 'GraphSubjectBase', + 'IdentityRef', + 'InstallationTarget', + 'InstalledExtension', + 'InstalledExtensionQuery', + 'InstalledExtensionState', + 'InstalledExtensionStateIssue', + 'LicensingOverride', + 'PublishedExtension', + 'PublisherFacts', + 'ReferenceLinks', + 'RequestedExtension', + 'UserExtensionPolicy', + 'Contribution', + 'ExtensionState', +] diff --git a/azure-devops/azure/devops/v4_1/feature_availability/__init__.py b/azure-devops/azure/devops/v4_1/feature_availability/__init__.py new file mode 100644 index 00000000..e39f1806 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/feature_availability/__init__.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'FeatureFlag', + 'FeatureFlagPatch', +] diff --git a/vsts/vsts/feature_availability/v4_1/feature_availability_client.py b/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py similarity index 98% rename from vsts/vsts/feature_availability/v4_1/feature_availability_client.py rename to azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py index 6104ddb6..d3499fc8 100644 --- a/vsts/vsts/feature_availability/v4_1/feature_availability_client.py +++ b/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class FeatureAvailabilityClient(VssClient): +class FeatureAvailabilityClient(Client): """FeatureAvailability :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/feature_availability/v4_1/models/feature_flag.py b/azure-devops/azure/devops/v4_1/feature_availability/models.py similarity index 76% rename from vsts/vsts/feature_availability/v4_1/models/feature_flag.py rename to azure-devops/azure/devops/v4_1/feature_availability/models.py index 96a70eab..6e0534c8 100644 --- a/vsts/vsts/feature_availability/v4_1/models/feature_flag.py +++ b/azure-devops/azure/devops/v4_1/feature_availability/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -39,3 +39,25 @@ def __init__(self, description=None, effective_state=None, explicit_state=None, self.explicit_state = explicit_state self.name = name self.uri = uri + + +class FeatureFlagPatch(Model): + """FeatureFlagPatch. + + :param state: + :type state: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, state=None): + super(FeatureFlagPatch, self).__init__() + self.state = state + + +__all__ = [ + 'FeatureFlag', + 'FeatureFlagPatch', +] diff --git a/azure-devops/azure/devops/v4_1/feature_management/__init__.py b/azure-devops/azure/devops/v4_1/feature_management/__init__.py new file mode 100644 index 00000000..e298ade2 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/feature_management/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'ContributedFeature', + 'ContributedFeatureSettingScope', + 'ContributedFeatureState', + 'ContributedFeatureStateQuery', + 'ContributedFeatureValueRule', + 'ReferenceLinks', +] diff --git a/vsts/vsts/feature_management/v4_1/feature_management_client.py b/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py similarity index 99% rename from vsts/vsts/feature_management/v4_1/feature_management_client.py rename to azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py index 933b5c42..337fb74c 100644 --- a/vsts/vsts/feature_management/v4_1/feature_management_client.py +++ b/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class FeatureManagementClient(VssClient): +class FeatureManagementClient(Client): """FeatureManagement :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/feature_management/models.py b/azure-devops/azure/devops/v4_1/feature_management/models.py new file mode 100644 index 00000000..69e41d7a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/feature_management/models.py @@ -0,0 +1,179 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ContributedFeature(Model): + """ContributedFeature. + + :param _links: Named links describing the feature + :type _links: :class:`ReferenceLinks ` + :param default_state: If true, the feature is enabled unless overridden at some scope + :type default_state: bool + :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :param description: The description of the feature + :type description: str + :param id: The full contribution id of the feature + :type id: str + :param name: The friendly name of the feature + :type name: str + :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) + :type override_rules: list of :class:`ContributedFeatureValueRule ` + :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature + :type scopes: list of :class:`ContributedFeatureSettingScope ` + :param service_instance_type: The service instance id of the service that owns this feature + :type service_instance_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_state': {'key': 'defaultState', 'type': 'bool'}, + 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, + 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + } + + def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): + super(ContributedFeature, self).__init__() + self._links = _links + self.default_state = default_state + self.default_value_rules = default_value_rules + self.description = description + self.id = id + self.name = name + self.override_rules = override_rules + self.scopes = scopes + self.service_instance_type = service_instance_type + + +class ContributedFeatureSettingScope(Model): + """ContributedFeatureSettingScope. + + :param setting_scope: The name of the settings scope to use when reading/writing the setting + :type setting_scope: str + :param user_scoped: Whether this is a user-scope or this is a host-wide (all users) setting + :type user_scoped: bool + """ + + _attribute_map = { + 'setting_scope': {'key': 'settingScope', 'type': 'str'}, + 'user_scoped': {'key': 'userScoped', 'type': 'bool'} + } + + def __init__(self, setting_scope=None, user_scoped=None): + super(ContributedFeatureSettingScope, self).__init__() + self.setting_scope = setting_scope + self.user_scoped = user_scoped + + +class ContributedFeatureState(Model): + """ContributedFeatureState. + + :param feature_id: The full contribution id of the feature + :type feature_id: str + :param overridden: True if the effective state was set by an override rule (indicating that the state cannot be managed by the end user) + :type overridden: bool + :param reason: Reason that the state was set (by a plugin/rule). + :type reason: str + :param scope: The scope at which this state applies + :type scope: :class:`ContributedFeatureSettingScope ` + :param state: The current state of this feature + :type state: object + """ + + _attribute_map = { + 'feature_id': {'key': 'featureId', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'ContributedFeatureSettingScope'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, feature_id=None, overridden=None, reason=None, scope=None, state=None): + super(ContributedFeatureState, self).__init__() + self.feature_id = feature_id + self.overridden = overridden + self.reason = reason + self.scope = scope + self.state = state + + +class ContributedFeatureStateQuery(Model): + """ContributedFeatureStateQuery. + + :param feature_ids: The list of feature ids to query + :type feature_ids: list of str + :param feature_states: The query result containing the current feature states for each of the queried feature ids + :type feature_states: dict + :param scope_values: A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes) + :type scope_values: dict + """ + + _attribute_map = { + 'feature_ids': {'key': 'featureIds', 'type': '[str]'}, + 'feature_states': {'key': 'featureStates', 'type': '{ContributedFeatureState}'}, + 'scope_values': {'key': 'scopeValues', 'type': '{str}'} + } + + def __init__(self, feature_ids=None, feature_states=None, scope_values=None): + super(ContributedFeatureStateQuery, self).__init__() + self.feature_ids = feature_ids + self.feature_states = feature_states + self.scope_values = scope_values + + +class ContributedFeatureValueRule(Model): + """ContributedFeatureValueRule. + + :param name: Name of the IContributedFeatureValuePlugin to run + :type name: str + :param properties: Properties to feed to the IContributedFeatureValuePlugin + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureValueRule, self).__init__() + self.name = name + self.properties = properties + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +__all__ = [ + 'ContributedFeature', + 'ContributedFeatureSettingScope', + 'ContributedFeatureState', + 'ContributedFeatureStateQuery', + 'ContributedFeatureValueRule', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v4_1/feed/__init__.py b/azure-devops/azure/devops/v4_1/feed/__init__.py new file mode 100644 index 00000000..59412260 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/feed/__init__.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Feed', + 'FeedChange', + 'FeedChangesResponse', + 'FeedCore', + 'FeedPermission', + 'FeedRetentionPolicy', + 'FeedUpdate', + 'FeedView', + 'GlobalPermission', + 'JsonPatchOperation', + 'MinimalPackageVersion', + 'Package', + 'PackageChange', + 'PackageChangesResponse', + 'PackageDependency', + 'PackageFile', + 'PackageVersion', + 'PackageVersionChange', + 'ProtocolMetadata', + 'RecycleBinPackageVersion', + 'ReferenceLinks', + 'UpstreamSource', +] diff --git a/vsts/vsts/feed/v4_1/feed_client.py b/azure-devops/azure/devops/v4_1/feed/feed_client.py similarity index 99% rename from vsts/vsts/feed/v4_1/feed_client.py rename to azure-devops/azure/devops/v4_1/feed/feed_client.py index ef6728a9..b3a559e1 100644 --- a/vsts/vsts/feed/v4_1/feed_client.py +++ b/azure-devops/azure/devops/v4_1/feed/feed_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class FeedClient(VssClient): +class FeedClient(Client): """Feed :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/feed/models.py b/azure-devops/azure/devops/v4_1/feed/models.py new file mode 100644 index 00000000..0f6d21d2 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/feed/models.py @@ -0,0 +1,911 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedChange(Model): + """FeedChange. + + :param change_type: + :type change_type: object + :param feed: + :type feed: :class:`Feed ` + :param feed_continuation_token: + :type feed_continuation_token: long + :param latest_package_continuation_token: + :type latest_package_continuation_token: long + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'feed': {'key': 'feed', 'type': 'Feed'}, + 'feed_continuation_token': {'key': 'feedContinuationToken', 'type': 'long'}, + 'latest_package_continuation_token': {'key': 'latestPackageContinuationToken', 'type': 'long'} + } + + def __init__(self, change_type=None, feed=None, feed_continuation_token=None, latest_package_continuation_token=None): + super(FeedChange, self).__init__() + self.change_type = change_type + self.feed = feed + self.feed_continuation_token = feed_continuation_token + self.latest_package_continuation_token = latest_package_continuation_token + + +class FeedChangesResponse(Model): + """FeedChangesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param count: + :type count: int + :param feed_changes: + :type feed_changes: list of :class:`FeedChange ` + :param next_feed_continuation_token: + :type next_feed_continuation_token: long + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'count': {'key': 'count', 'type': 'int'}, + 'feed_changes': {'key': 'feedChanges', 'type': '[FeedChange]'}, + 'next_feed_continuation_token': {'key': 'nextFeedContinuationToken', 'type': 'long'} + } + + def __init__(self, _links=None, count=None, feed_changes=None, next_feed_continuation_token=None): + super(FeedChangesResponse, self).__init__() + self._links = _links + self.count = count + self.feed_changes = feed_changes + self.next_feed_continuation_token = next_feed_continuation_token + + +class FeedCore(Model): + """FeedCore. + + :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param capabilities: + :type capabilities: object + :param fully_qualified_id: + :type fully_qualified_id: str + :param fully_qualified_name: + :type fully_qualified_name: str + :param id: + :type id: str + :param is_read_only: + :type is_read_only: bool + :param name: + :type name: str + :param upstream_enabled: If set, the feed can proxy packages from an upstream feed + :type upstream_enabled: bool + :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: + :type view: :class:`FeedView ` + :param view_id: + :type view_id: str + :param view_name: + :type view_name: str + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'capabilities': {'key': 'capabilities', 'type': 'object'}, + 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, + 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, + 'view': {'key': 'view', 'type': 'FeedView'}, + 'view_id': {'key': 'viewId', 'type': 'str'}, + 'view_name': {'key': 'viewName', 'type': 'str'} + } + + def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None): + super(FeedCore, self).__init__() + self.allow_upstream_name_conflict = allow_upstream_name_conflict + self.capabilities = capabilities + self.fully_qualified_id = fully_qualified_id + self.fully_qualified_name = fully_qualified_name + self.id = id + self.is_read_only = is_read_only + self.name = name + self.upstream_enabled = upstream_enabled + self.upstream_sources = upstream_sources + self.view = view + self.view_id = view_id + self.view_name = view_name + + +class FeedPermission(Model): + """FeedPermission. + + :param display_name: Display name for the identity + :type display_name: str + :param identity_descriptor: + :type identity_descriptor: :class:`str ` + :param identity_id: + :type identity_id: str + :param role: + :type role: object + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'object'} + } + + def __init__(self, display_name=None, identity_descriptor=None, identity_id=None, role=None): + super(FeedPermission, self).__init__() + self.display_name = display_name + self.identity_descriptor = identity_descriptor + self.identity_id = identity_id + self.role = role + + +class FeedRetentionPolicy(Model): + """FeedRetentionPolicy. + + :param age_limit_in_days: + :type age_limit_in_days: int + :param count_limit: + :type count_limit: int + """ + + _attribute_map = { + 'age_limit_in_days': {'key': 'ageLimitInDays', 'type': 'int'}, + 'count_limit': {'key': 'countLimit', 'type': 'int'} + } + + def __init__(self, age_limit_in_days=None, count_limit=None): + super(FeedRetentionPolicy, self).__init__() + self.age_limit_in_days = age_limit_in_days + self.count_limit = count_limit + + +class FeedUpdate(Model): + """FeedUpdate. + + :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param badges_enabled: + :type badges_enabled: bool + :param default_view_id: + :type default_view_id: str + :param description: + :type description: str + :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions + :type hide_deleted_package_versions: bool + :param id: + :type id: str + :param name: + :type name: str + :param upstream_enabled: + :type upstream_enabled: bool + :param upstream_sources: + :type upstream_sources: list of :class:`UpstreamSource ` + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, + 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'} + } + + def __init__(self, allow_upstream_name_conflict=None, badges_enabled=None, default_view_id=None, description=None, hide_deleted_package_versions=None, id=None, name=None, upstream_enabled=None, upstream_sources=None): + super(FeedUpdate, self).__init__() + self.allow_upstream_name_conflict = allow_upstream_name_conflict + self.badges_enabled = badges_enabled + self.default_view_id = default_view_id + self.description = description + self.hide_deleted_package_versions = hide_deleted_package_versions + self.id = id + self.name = name + self.upstream_enabled = upstream_enabled + self.upstream_sources = upstream_sources + + +class FeedView(Model): + """FeedView. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + :param visibility: + :type visibility: object + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, _links=None, id=None, name=None, type=None, url=None, visibility=None): + super(FeedView, self).__init__() + self._links = _links + self.id = id + self.name = name + self.type = type + self.url = url + self.visibility = visibility + + +class GlobalPermission(Model): + """GlobalPermission. + + :param identity_descriptor: + :type identity_descriptor: :class:`str ` + :param role: + :type role: object + """ + + _attribute_map = { + 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'object'} + } + + def __init__(self, identity_descriptor=None, role=None): + super(GlobalPermission, self).__init__() + self.identity_descriptor = identity_descriptor + self.role = role + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageVersion(Model): + """MinimalPackageVersion. + + :param direct_upstream_source_id: + :type direct_upstream_source_id: str + :param id: + :type id: str + :param is_cached_version: + :type is_cached_version: bool + :param is_deleted: + :type is_deleted: bool + :param is_latest: + :type is_latest: bool + :param is_listed: + :type is_listed: bool + :param normalized_version: The normalized version representing the identity of a package version + :type normalized_version: str + :param package_description: + :type package_description: str + :param publish_date: + :type publish_date: datetime + :param storage_id: + :type storage_id: str + :param version: The display version of the package version + :type version: str + :param views: + :type views: list of :class:`FeedView ` + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None): + super(MinimalPackageVersion, self).__init__() + self.direct_upstream_source_id = direct_upstream_source_id + self.id = id + self.is_cached_version = is_cached_version + self.is_deleted = is_deleted + self.is_latest = is_latest + self.is_listed = is_listed + self.normalized_version = normalized_version + self.package_description = package_description + self.publish_date = publish_date + self.storage_id = storage_id + self.version = version + self.views = views + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: str + :param is_cached: + :type is_cached: bool + :param name: The display name of the package + :type name: str + :param normalized_name: The normalized name representing the identity of this package for this protocol type + :type normalized_name: str + :param protocol_type: + :type protocol_type: str + :param star_count: + :type star_count: int + :param url: + :type url: str + :param versions: + :type versions: list of :class:`MinimalPackageVersion ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached': {'key': 'isCached', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'normalized_name': {'key': 'normalizedName', 'type': 'str'}, + 'protocol_type': {'key': 'protocolType', 'type': 'str'}, + 'star_count': {'key': 'starCount', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[MinimalPackageVersion]'} + } + + def __init__(self, _links=None, id=None, is_cached=None, name=None, normalized_name=None, protocol_type=None, star_count=None, url=None, versions=None): + super(Package, self).__init__() + self._links = _links + self.id = id + self.is_cached = is_cached + self.name = name + self.normalized_name = normalized_name + self.protocol_type = protocol_type + self.star_count = star_count + self.url = url + self.versions = versions + + +class PackageChange(Model): + """PackageChange. + + :param package: + :type package: :class:`Package ` + :param package_version_change: + :type package_version_change: :class:`PackageVersionChange ` + """ + + _attribute_map = { + 'package': {'key': 'package', 'type': 'Package'}, + 'package_version_change': {'key': 'packageVersionChange', 'type': 'PackageVersionChange'} + } + + def __init__(self, package=None, package_version_change=None): + super(PackageChange, self).__init__() + self.package = package + self.package_version_change = package_version_change + + +class PackageChangesResponse(Model): + """PackageChangesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param count: + :type count: int + :param next_package_continuation_token: + :type next_package_continuation_token: long + :param package_changes: + :type package_changes: list of :class:`PackageChange ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'count': {'key': 'count', 'type': 'int'}, + 'next_package_continuation_token': {'key': 'nextPackageContinuationToken', 'type': 'long'}, + 'package_changes': {'key': 'packageChanges', 'type': '[PackageChange]'} + } + + def __init__(self, _links=None, count=None, next_package_continuation_token=None, package_changes=None): + super(PackageChangesResponse, self).__init__() + self._links = _links + self.count = count + self.next_package_continuation_token = next_package_continuation_token + self.package_changes = package_changes + + +class PackageDependency(Model): + """PackageDependency. + + :param group: + :type group: str + :param package_name: + :type package_name: str + :param version_range: + :type version_range: str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'str'}, + 'package_name': {'key': 'packageName', 'type': 'str'}, + 'version_range': {'key': 'versionRange', 'type': 'str'} + } + + def __init__(self, group=None, package_name=None, version_range=None): + super(PackageDependency, self).__init__() + self.group = group + self.package_name = package_name + self.version_range = version_range + + +class PackageFile(Model): + """PackageFile. + + :param children: + :type children: list of :class:`PackageFile ` + :param name: + :type name: str + :param protocol_metadata: + :type protocol_metadata: :class:`ProtocolMetadata ` + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[PackageFile]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'} + } + + def __init__(self, children=None, name=None, protocol_metadata=None): + super(PackageFile, self).__init__() + self.children = children + self.name = name + self.protocol_metadata = protocol_metadata + + +class PackageVersion(MinimalPackageVersion): + """PackageVersion. + + :param direct_upstream_source_id: + :type direct_upstream_source_id: str + :param id: + :type id: str + :param is_cached_version: + :type is_cached_version: bool + :param is_deleted: + :type is_deleted: bool + :param is_latest: + :type is_latest: bool + :param is_listed: + :type is_listed: bool + :param normalized_version: The normalized version representing the identity of a package version + :type normalized_version: str + :param package_description: + :type package_description: str + :param publish_date: + :type publish_date: datetime + :param storage_id: + :type storage_id: str + :param version: The display version of the package version + :type version: str + :param views: + :type views: list of :class:`FeedView ` + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: str + :param deleted_date: + :type deleted_date: datetime + :param dependencies: + :type dependencies: list of :class:`PackageDependency ` + :param description: + :type description: str + :param files: + :type files: list of :class:`PackageFile ` + :param other_versions: + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: + :type source_chain: list of :class:`UpstreamSource ` + :param summary: + :type summary: str + :param tags: + :type tags: list of str + :param url: + :type url: str + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[PackageFile]'}, + 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None): + super(PackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views) + self._links = _links + self.author = author + self.deleted_date = deleted_date + self.dependencies = dependencies + self.description = description + self.files = files + self.other_versions = other_versions + self.protocol_metadata = protocol_metadata + self.source_chain = source_chain + self.summary = summary + self.tags = tags + self.url = url + + +class PackageVersionChange(Model): + """PackageVersionChange. + + :param change_type: + :type change_type: object + :param continuation_token: + :type continuation_token: long + :param package_version: + :type package_version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'long'}, + 'package_version': {'key': 'packageVersion', 'type': 'PackageVersion'} + } + + def __init__(self, change_type=None, continuation_token=None, package_version=None): + super(PackageVersionChange, self).__init__() + self.change_type = change_type + self.continuation_token = continuation_token + self.package_version = package_version + + +class ProtocolMetadata(Model): + """ProtocolMetadata. + + :param data: + :type data: object + :param schema_version: + :type schema_version: int + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'object'}, + 'schema_version': {'key': 'schemaVersion', 'type': 'int'} + } + + def __init__(self, data=None, schema_version=None): + super(ProtocolMetadata, self).__init__() + self.data = data + self.schema_version = schema_version + + +class RecycleBinPackageVersion(PackageVersion): + """RecycleBinPackageVersion. + + :param direct_upstream_source_id: + :type direct_upstream_source_id: str + :param id: + :type id: str + :param is_cached_version: + :type is_cached_version: bool + :param is_deleted: + :type is_deleted: bool + :param is_latest: + :type is_latest: bool + :param is_listed: + :type is_listed: bool + :param normalized_version: The normalized version representing the identity of a package version + :type normalized_version: str + :param package_description: + :type package_description: str + :param publish_date: + :type publish_date: datetime + :param storage_id: + :type storage_id: str + :param version: The display version of the package version + :type version: str + :param views: + :type views: list of :class:`FeedView ` + :param _links: + :type _links: :class:`ReferenceLinks ` + :param author: + :type author: str + :param deleted_date: + :type deleted_date: datetime + :param dependencies: + :type dependencies: list of :class:`PackageDependency ` + :param description: + :type description: str + :param files: + :type files: list of :class:`PackageFile ` + :param other_versions: + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: + :type source_chain: list of :class:`UpstreamSource ` + :param summary: + :type summary: str + :param tags: + :type tags: list of str + :param url: + :type url: str + :param scheduled_permanent_delete_date: + :type scheduled_permanent_delete_date: datetime + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[PackageFile]'}, + 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'scheduled_permanent_delete_date': {'key': 'scheduledPermanentDeleteDate', 'type': 'iso-8601'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None, scheduled_permanent_delete_date=None): + super(RecycleBinPackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views, _links=_links, author=author, deleted_date=deleted_date, dependencies=dependencies, description=description, files=files, other_versions=other_versions, protocol_metadata=protocol_metadata, source_chain=source_chain, summary=summary, tags=tags, url=url) + self.scheduled_permanent_delete_date = scheduled_permanent_delete_date + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UpstreamSource(Model): + """UpstreamSource. + + :param deleted_date: + :type deleted_date: datetime + :param id: + :type id: str + :param internal_upstream_collection_id: + :type internal_upstream_collection_id: str + :param internal_upstream_feed_id: + :type internal_upstream_feed_id: str + :param internal_upstream_view_id: + :type internal_upstream_view_id: str + :param location: + :type location: str + :param name: + :type name: str + :param protocol: + :type protocol: str + :param upstream_source_type: + :type upstream_source_type: object + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'internal_upstream_collection_id': {'key': 'internalUpstreamCollectionId', 'type': 'str'}, + 'internal_upstream_feed_id': {'key': 'internalUpstreamFeedId', 'type': 'str'}, + 'internal_upstream_view_id': {'key': 'internalUpstreamViewId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'upstream_source_type': {'key': 'upstreamSourceType', 'type': 'object'} + } + + def __init__(self, deleted_date=None, id=None, internal_upstream_collection_id=None, internal_upstream_feed_id=None, internal_upstream_view_id=None, location=None, name=None, protocol=None, upstream_source_type=None): + super(UpstreamSource, self).__init__() + self.deleted_date = deleted_date + self.id = id + self.internal_upstream_collection_id = internal_upstream_collection_id + self.internal_upstream_feed_id = internal_upstream_feed_id + self.internal_upstream_view_id = internal_upstream_view_id + self.location = location + self.name = name + self.protocol = protocol + self.upstream_source_type = upstream_source_type + + +class Feed(FeedCore): + """Feed. + + :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param capabilities: + :type capabilities: object + :param fully_qualified_id: + :type fully_qualified_id: str + :param fully_qualified_name: + :type fully_qualified_name: str + :param id: + :type id: str + :param is_read_only: + :type is_read_only: bool + :param name: + :type name: str + :param upstream_enabled: If set, the feed can proxy packages from an upstream feed + :type upstream_enabled: bool + :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: + :type view: :class:`FeedView ` + :param view_id: + :type view_id: str + :param view_name: + :type view_name: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param badges_enabled: + :type badges_enabled: bool + :param default_view_id: + :type default_view_id: str + :param deleted_date: + :type deleted_date: datetime + :param description: + :type description: str + :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions + :type hide_deleted_package_versions: bool + :param permissions: + :type permissions: list of :class:`FeedPermission ` + :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. + :type upstream_enabled_changed_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'capabilities': {'key': 'capabilities', 'type': 'object'}, + 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, + 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, + 'view': {'key': 'view', 'type': 'FeedView'}, + 'view_id': {'key': 'viewId', 'type': 'str'}, + 'view_name': {'key': 'viewName', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, + 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, + 'permissions': {'key': 'permissions', 'type': '[FeedPermission]'}, + 'upstream_enabled_changed_date': {'key': 'upstreamEnabledChangedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None, _links=None, badges_enabled=None, default_view_id=None, deleted_date=None, description=None, hide_deleted_package_versions=None, permissions=None, upstream_enabled_changed_date=None, url=None): + super(Feed, self).__init__(allow_upstream_name_conflict=allow_upstream_name_conflict, capabilities=capabilities, fully_qualified_id=fully_qualified_id, fully_qualified_name=fully_qualified_name, id=id, is_read_only=is_read_only, name=name, upstream_enabled=upstream_enabled, upstream_sources=upstream_sources, view=view, view_id=view_id, view_name=view_name) + self._links = _links + self.badges_enabled = badges_enabled + self.default_view_id = default_view_id + self.deleted_date = deleted_date + self.description = description + self.hide_deleted_package_versions = hide_deleted_package_versions + self.permissions = permissions + self.upstream_enabled_changed_date = upstream_enabled_changed_date + self.url = url + + +__all__ = [ + 'FeedChange', + 'FeedChangesResponse', + 'FeedCore', + 'FeedPermission', + 'FeedRetentionPolicy', + 'FeedUpdate', + 'FeedView', + 'GlobalPermission', + 'JsonPatchOperation', + 'MinimalPackageVersion', + 'Package', + 'PackageChange', + 'PackageChangesResponse', + 'PackageDependency', + 'PackageFile', + 'PackageVersion', + 'PackageVersionChange', + 'ProtocolMetadata', + 'RecycleBinPackageVersion', + 'ReferenceLinks', + 'UpstreamSource', + 'Feed', +] diff --git a/vsts/vsts/client_trace/__init__.py b/azure-devops/azure/devops/v4_1/feed_token/__init__.py similarity index 97% rename from vsts/vsts/client_trace/__init__.py rename to azure-devops/azure/devops/v4_1/feed_token/__init__.py index f885a96e..02c32760 100644 --- a/vsts/vsts/client_trace/__init__.py +++ b/azure-devops/azure/devops/v4_1/feed_token/__init__.py @@ -5,3 +5,7 @@ # Generated file, DO NOT EDIT # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- + + +__all__ = [ +] diff --git a/vsts/vsts/feed_token/v4_1/feed_token_client.py b/azure-devops/azure/devops/v4_1/feed_token/feed_token_client.py similarity index 90% rename from vsts/vsts/feed_token/v4_1/feed_token_client.py rename to azure-devops/azure/devops/v4_1/feed_token/feed_token_client.py index 0e5e8afc..3ed99c32 100644 --- a/vsts/vsts/feed_token/v4_1/feed_token_client.py +++ b/azure-devops/azure/devops/v4_1/feed_token/feed_token_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -7,10 +7,10 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client -class FeedTokenClient(VssClient): +class FeedTokenClient(Client): """FeedToken :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/file_container/__init__.py b/azure-devops/azure/devops/v4_1/file_container/__init__.py new file mode 100644 index 00000000..ad599954 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/file_container/__init__.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'FileContainer', + 'FileContainerItem', +] diff --git a/vsts/vsts/file_container/v4_1/file_container_client.py b/azure-devops/azure/devops/v4_1/file_container/file_container_client.py similarity index 98% rename from vsts/vsts/file_container/v4_1/file_container_client.py rename to azure-devops/azure/devops/v4_1/file_container/file_container_client.py index e79792d9..82565a4b 100644 --- a/vsts/vsts/file_container/v4_1/file_container_client.py +++ b/azure-devops/azure/devops/v4_1/file_container/file_container_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class FileContainerClient(VssClient): +class FileContainerClient(Client): """FileContainer :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/file_container/v4_0/models/file_container_item.py b/azure-devops/azure/devops/v4_1/file_container/models.py similarity index 57% rename from vsts/vsts/file_container/v4_0/models/file_container_item.py rename to azure-devops/azure/devops/v4_1/file_container/models.py index 5847395c..1b8b6fe1 100644 --- a/vsts/vsts/file_container/v4_0/models/file_container_item.py +++ b/azure-devops/azure/devops/v4_1/file_container/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,6 +9,74 @@ from msrest.serialization import Model +class FileContainer(Model): + """FileContainer. + + :param artifact_uri: Uri of the artifact associated with the container. + :type artifact_uri: str + :param content_location: Download Url for the content of this item. + :type content_location: str + :param created_by: Owner. + :type created_by: str + :param date_created: Creation date. + :type date_created: datetime + :param description: Description. + :type description: str + :param id: Id. + :type id: long + :param item_location: Location of the item resource. + :type item_location: str + :param locator_path: ItemStore Locator for this container. + :type locator_path: str + :param name: Name. + :type name: str + :param options: Options the container can have. + :type options: object + :param scope_identifier: Project Id. + :type scope_identifier: str + :param security_token: Security token of the artifact associated with the container. + :type security_token: str + :param signing_key_id: Identifier of the optional encryption key. + :type signing_key_id: str + :param size: Total size of the files in bytes. + :type size: long + """ + + _attribute_map = { + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'long'}, + 'item_location': {'key': 'itemLocation', 'type': 'str'}, + 'locator_path': {'key': 'locatorPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': 'object'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'security_token': {'key': 'securityToken', 'type': 'str'}, + 'signing_key_id': {'key': 'signingKeyId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'} + } + + def __init__(self, artifact_uri=None, content_location=None, created_by=None, date_created=None, description=None, id=None, item_location=None, locator_path=None, name=None, options=None, scope_identifier=None, security_token=None, signing_key_id=None, size=None): + super(FileContainer, self).__init__() + self.artifact_uri = artifact_uri + self.content_location = content_location + self.created_by = created_by + self.date_created = date_created + self.description = description + self.id = id + self.item_location = item_location + self.locator_path = locator_path + self.name = name + self.options = options + self.scope_identifier = scope_identifier + self.security_token = security_token + self.signing_key_id = signing_key_id + self.size = size + + class FileContainerItem(Model): """FileContainerItem. @@ -91,3 +159,9 @@ def __init__(self, container_id=None, content_id=None, content_location=None, cr self.scope_identifier = scope_identifier self.status = status self.ticket = ticket + + +__all__ = [ + 'FileContainer', + 'FileContainerItem', +] diff --git a/azure-devops/azure/devops/v4_1/gallery/__init__.py b/azure-devops/azure/devops/v4_1/gallery/__init__.py new file mode 100644 index 00000000..2f550038 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/gallery/__init__.py @@ -0,0 +1,71 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOptions', + 'Answers', + 'AssetDetails', + 'AzurePublisher', + 'AzureRestApiRequestModel', + 'CategoriesResult', + 'CategoryLanguageTitle', + 'Concern', + 'EventCounts', + 'ExtensionAcquisitionRequest', + 'ExtensionBadge', + 'ExtensionCategory', + 'ExtensionDailyStat', + 'ExtensionDailyStats', + 'ExtensionDraft', + 'ExtensionDraftAsset', + 'ExtensionDraftPatch', + 'ExtensionEvent', + 'ExtensionEvents', + 'ExtensionFile', + 'ExtensionFilterResult', + 'ExtensionFilterResultMetadata', + 'ExtensionPackage', + 'ExtensionPayload', + 'ExtensionQuery', + 'ExtensionQueryResult', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionStatisticUpdate', + 'ExtensionVersion', + 'FilterCriteria', + 'InstallationTarget', + 'MetadataItem', + 'NotificationsData', + 'ProductCategoriesResult', + 'ProductCategory', + 'PublishedExtension', + 'Publisher', + 'PublisherBase', + 'PublisherFacts', + 'PublisherFilterResult', + 'PublisherQuery', + 'PublisherQueryResult', + 'QnAItem', + 'QueryFilter', + 'Question', + 'QuestionsResult', + 'RatingCountPerRating', + 'ReferenceLinks', + 'Response', + 'Review', + 'ReviewPatch', + 'ReviewReply', + 'ReviewsResult', + 'ReviewSummary', + 'UnpackagedExtensionData', + 'UserIdentityRef', + 'UserReportedConcern', +] diff --git a/vsts/vsts/gallery/v4_1/gallery_client.py b/azure-devops/azure/devops/v4_1/gallery/gallery_client.py similarity index 99% rename from vsts/vsts/gallery/v4_1/gallery_client.py rename to azure-devops/azure/devops/v4_1/gallery/gallery_client.py index eb9f3091..e32d1464 100644 --- a/vsts/vsts/gallery/v4_1/gallery_client.py +++ b/azure-devops/azure/devops/v4_1/gallery/gallery_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class GalleryClient(VssClient): +class GalleryClient(Client): """Gallery :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/gallery/models.py b/azure-devops/azure/devops/v4_1/gallery/models.py new file mode 100644 index 00000000..32016c22 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/gallery/models.py @@ -0,0 +1,1838 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AcquisitionOperation(Model): + """AcquisitionOperation. + + :param operation_state: State of the the AcquisitionOperation for the current user + :type operation_state: object + :param operation_type: AcquisitionOperationType: install, request, buy, etc... + :type operation_type: object + :param reason: Optional reason to justify current state. Typically used with Disallow state. + :type reason: str + """ + + _attribute_map = { + 'operation_state': {'key': 'operationState', 'type': 'object'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, operation_state=None, operation_type=None, reason=None): + super(AcquisitionOperation, self).__init__() + self.operation_state = operation_state + self.operation_type = operation_type + self.reason = reason + + +class AcquisitionOptions(Model): + """AcquisitionOptions. + + :param default_operation: Default Operation for the ItemId in this target + :type default_operation: :class:`AcquisitionOperation ` + :param item_id: The item id that this options refer to + :type item_id: str + :param operations: Operations allowed for the ItemId in this target + :type operations: list of :class:`AcquisitionOperation ` + :param target: The target that this options refer to + :type target: str + """ + + _attribute_map = { + 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, default_operation=None, item_id=None, operations=None, target=None): + super(AcquisitionOptions, self).__init__() + self.default_operation = default_operation + self.item_id = item_id + self.operations = operations + self.target = target + + +class Answers(Model): + """Answers. + + :param vSMarketplace_extension_name: Gets or sets the vs marketplace extension name + :type vSMarketplace_extension_name: str + :param vSMarketplace_publisher_name: Gets or sets the vs marketplace publsiher name + :type vSMarketplace_publisher_name: str + """ + + _attribute_map = { + 'vSMarketplace_extension_name': {'key': 'vSMarketplaceExtensionName', 'type': 'str'}, + 'vSMarketplace_publisher_name': {'key': 'vSMarketplacePublisherName', 'type': 'str'} + } + + def __init__(self, vSMarketplace_extension_name=None, vSMarketplace_publisher_name=None): + super(Answers, self).__init__() + self.vSMarketplace_extension_name = vSMarketplace_extension_name + self.vSMarketplace_publisher_name = vSMarketplace_publisher_name + + +class AssetDetails(Model): + """AssetDetails. + + :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name + :type answers: :class:`Answers ` + :param publisher_natural_identifier: Gets or sets the VS publisher Id + :type publisher_natural_identifier: str + """ + + _attribute_map = { + 'answers': {'key': 'answers', 'type': 'Answers'}, + 'publisher_natural_identifier': {'key': 'publisherNaturalIdentifier', 'type': 'str'} + } + + def __init__(self, answers=None, publisher_natural_identifier=None): + super(AssetDetails, self).__init__() + self.answers = answers + self.publisher_natural_identifier = publisher_natural_identifier + + +class AzurePublisher(Model): + """AzurePublisher. + + :param azure_publisher_id: + :type azure_publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'azure_publisher_id': {'key': 'azurePublisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, azure_publisher_id=None, publisher_name=None): + super(AzurePublisher, self).__init__() + self.azure_publisher_id = azure_publisher_id + self.publisher_name = publisher_name + + +class AzureRestApiRequestModel(Model): + """AzureRestApiRequestModel. + + :param asset_details: Gets or sets the Asset details + :type asset_details: :class:`AssetDetails ` + :param asset_id: Gets or sets the asset id + :type asset_id: str + :param asset_version: Gets or sets the asset version + :type asset_version: long + :param customer_support_email: Gets or sets the customer support email + :type customer_support_email: str + :param integration_contact_email: Gets or sets the integration contact email + :type integration_contact_email: str + :param operation: Gets or sets the asset version + :type operation: str + :param plan_id: Gets or sets the plan identifier if any. + :type plan_id: str + :param publisher_id: Gets or sets the publisher id + :type publisher_id: str + :param type: Gets or sets the resource type + :type type: str + """ + + _attribute_map = { + 'asset_details': {'key': 'assetDetails', 'type': 'AssetDetails'}, + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'asset_version': {'key': 'assetVersion', 'type': 'long'}, + 'customer_support_email': {'key': 'customerSupportEmail', 'type': 'str'}, + 'integration_contact_email': {'key': 'integrationContactEmail', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, asset_details=None, asset_id=None, asset_version=None, customer_support_email=None, integration_contact_email=None, operation=None, plan_id=None, publisher_id=None, type=None): + super(AzureRestApiRequestModel, self).__init__() + self.asset_details = asset_details + self.asset_id = asset_id + self.asset_version = asset_version + self.customer_support_email = customer_support_email + self.integration_contact_email = integration_contact_email + self.operation = operation + self.plan_id = plan_id + self.publisher_id = publisher_id + self.type = type + + +class CategoriesResult(Model): + """CategoriesResult. + + :param categories: + :type categories: list of :class:`ExtensionCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ExtensionCategory]'} + } + + def __init__(self, categories=None): + super(CategoriesResult, self).__init__() + self.categories = categories + + +class CategoryLanguageTitle(Model): + """CategoryLanguageTitle. + + :param lang: The language for which the title is applicable + :type lang: str + :param lcid: The language culture id of the lang parameter + :type lcid: int + :param title: Actual title to be shown on the UI + :type title: str + """ + + _attribute_map = { + 'lang': {'key': 'lang', 'type': 'str'}, + 'lcid': {'key': 'lcid', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, lang=None, lcid=None, title=None): + super(CategoryLanguageTitle, self).__init__() + self.lang = lang + self.lcid = lcid + self.title = title + + +class EventCounts(Model): + """EventCounts. + + :param average_rating: Average rating on the day for extension + :type average_rating: int + :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) + :type buy_count: int + :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) + :type connected_buy_count: int + :param connected_install_count: Number of times the extension was installed in connected scenario (applies only to VSTS extensions) + :type connected_install_count: int + :param install_count: Number of times the extension was installed + :type install_count: long + :param try_count: Number of times the extension was installed as a trial (applies only to VSTS extensions) + :type try_count: int + :param uninstall_count: Number of times the extension was uninstalled (applies only to VSTS extensions) + :type uninstall_count: int + :param web_download_count: Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs) + :type web_download_count: long + :param web_page_views: Number of detail page views + :type web_page_views: long + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'int'}, + 'buy_count': {'key': 'buyCount', 'type': 'int'}, + 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, + 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, + 'install_count': {'key': 'installCount', 'type': 'long'}, + 'try_count': {'key': 'tryCount', 'type': 'int'}, + 'uninstall_count': {'key': 'uninstallCount', 'type': 'int'}, + 'web_download_count': {'key': 'webDownloadCount', 'type': 'long'}, + 'web_page_views': {'key': 'webPageViews', 'type': 'long'} + } + + def __init__(self, average_rating=None, buy_count=None, connected_buy_count=None, connected_install_count=None, install_count=None, try_count=None, uninstall_count=None, web_download_count=None, web_page_views=None): + super(EventCounts, self).__init__() + self.average_rating = average_rating + self.buy_count = buy_count + self.connected_buy_count = connected_buy_count + self.connected_install_count = connected_install_count + self.install_count = install_count + self.try_count = try_count + self.uninstall_count = uninstall_count + self.web_download_count = web_download_count + self.web_page_views = web_page_views + + +class ExtensionAcquisitionRequest(Model): + """ExtensionAcquisitionRequest. + + :param assignment_type: How the item is being assigned + :type assignment_type: object + :param billing_id: The id of the subscription used for purchase + :type billing_id: str + :param item_id: The marketplace id (publisherName.extensionName) for the item + :type item_id: str + :param operation_type: The type of operation, such as install, request, purchase + :type operation_type: object + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` + :param quantity: How many licenses should be purchased + :type quantity: int + :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id + :type targets: list of str + """ + + _attribute_map = { + 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, + 'billing_id': {'key': 'billingId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'quantity': {'key': 'quantity', 'type': 'int'}, + 'targets': {'key': 'targets', 'type': '[str]'} + } + + def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None, targets=None): + super(ExtensionAcquisitionRequest, self).__init__() + self.assignment_type = assignment_type + self.billing_id = billing_id + self.item_id = item_id + self.operation_type = operation_type + self.properties = properties + self.quantity = quantity + self.targets = targets + + +class ExtensionBadge(Model): + """ExtensionBadge. + + :param description: + :type description: str + :param img_uri: + :type img_uri: str + :param link: + :type link: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'img_uri': {'key': 'imgUri', 'type': 'str'}, + 'link': {'key': 'link', 'type': 'str'} + } + + def __init__(self, description=None, img_uri=None, link=None): + super(ExtensionBadge, self).__init__() + self.description = description + self.img_uri = img_uri + self.link = link + + +class ExtensionCategory(Model): + """ExtensionCategory. + + :param associated_products: The name of the products with which this category is associated to. + :type associated_products: list of str + :param category_id: + :type category_id: int + :param category_name: This is the internal name for a category + :type category_name: str + :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles + :type language: str + :param language_titles: The list of all the titles of this category in various languages + :type language_titles: list of :class:`CategoryLanguageTitle ` + :param parent_category_name: This is the internal name of the parent if this is associated with a parent + :type parent_category_name: str + """ + + _attribute_map = { + 'associated_products': {'key': 'associatedProducts', 'type': '[str]'}, + 'category_id': {'key': 'categoryId', 'type': 'int'}, + 'category_name': {'key': 'categoryName', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'language_titles': {'key': 'languageTitles', 'type': '[CategoryLanguageTitle]'}, + 'parent_category_name': {'key': 'parentCategoryName', 'type': 'str'} + } + + def __init__(self, associated_products=None, category_id=None, category_name=None, language=None, language_titles=None, parent_category_name=None): + super(ExtensionCategory, self).__init__() + self.associated_products = associated_products + self.category_id = category_id + self.category_name = category_name + self.language = language + self.language_titles = language_titles + self.parent_category_name = parent_category_name + + +class ExtensionDailyStat(Model): + """ExtensionDailyStat. + + :param counts: Stores the event counts + :type counts: :class:`EventCounts ` + :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. + :type extended_stats: dict + :param statistic_date: Timestamp of this data point + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'counts': {'key': 'counts', 'type': 'EventCounts'}, + 'extended_stats': {'key': 'extendedStats', 'type': '{object}'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, counts=None, extended_stats=None, statistic_date=None, version=None): + super(ExtensionDailyStat, self).__init__() + self.counts = counts + self.extended_stats = extended_stats + self.statistic_date = statistic_date + self.version = version + + +class ExtensionDailyStats(Model): + """ExtensionDailyStats. + + :param daily_stats: List of extension statistics data points + :type daily_stats: list of :class:`ExtensionDailyStat ` + :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + :param stat_count: Count of stats + :type stat_count: int + """ + + _attribute_map = { + 'daily_stats': {'key': 'dailyStats', 'type': '[ExtensionDailyStat]'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'stat_count': {'key': 'statCount', 'type': 'int'} + } + + def __init__(self, daily_stats=None, extension_id=None, extension_name=None, publisher_name=None, stat_count=None): + super(ExtensionDailyStats, self).__init__() + self.daily_stats = daily_stats + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name + self.stat_count = stat_count + + +class ExtensionDraft(Model): + """ExtensionDraft. + + :param assets: + :type assets: list of :class:`ExtensionDraftAsset ` + :param created_date: + :type created_date: datetime + :param draft_state: + :type draft_state: object + :param extension_name: + :type extension_name: str + :param id: + :type id: str + :param last_updated: + :type last_updated: datetime + :param payload: + :type payload: :class:`ExtensionPayload ` + :param product: + :type product: str + :param publisher_name: + :type publisher_name: str + :param validation_errors: + :type validation_errors: list of { key: str; value: str } + :param validation_warnings: + :type validation_warnings: list of { key: str; value: str } + """ + + _attribute_map = { + 'assets': {'key': 'assets', 'type': '[ExtensionDraftAsset]'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'draft_state': {'key': 'draftState', 'type': 'object'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'payload': {'key': 'payload', 'type': 'ExtensionPayload'}, + 'product': {'key': 'product', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[{ key: str; value: str }]'}, + 'validation_warnings': {'key': 'validationWarnings', 'type': '[{ key: str; value: str }]'} + } + + def __init__(self, assets=None, created_date=None, draft_state=None, extension_name=None, id=None, last_updated=None, payload=None, product=None, publisher_name=None, validation_errors=None, validation_warnings=None): + super(ExtensionDraft, self).__init__() + self.assets = assets + self.created_date = created_date + self.draft_state = draft_state + self.extension_name = extension_name + self.id = id + self.last_updated = last_updated + self.payload = payload + self.product = product + self.publisher_name = publisher_name + self.validation_errors = validation_errors + self.validation_warnings = validation_warnings + + +class ExtensionDraftPatch(Model): + """ExtensionDraftPatch. + + :param extension_data: + :type extension_data: :class:`UnpackagedExtensionData ` + :param operation: + :type operation: object + """ + + _attribute_map = { + 'extension_data': {'key': 'extensionData', 'type': 'UnpackagedExtensionData'}, + 'operation': {'key': 'operation', 'type': 'object'} + } + + def __init__(self, extension_data=None, operation=None): + super(ExtensionDraftPatch, self).__init__() + self.extension_data = extension_data + self.operation = operation + + +class ExtensionEvent(Model): + """ExtensionEvent. + + :param id: Id which identifies each data point uniquely + :type id: long + :param properties: + :type properties: :class:`object ` + :param statistic_date: Timestamp of when the event occurred + :type statistic_date: datetime + :param version: Version of the extension + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, properties=None, statistic_date=None, version=None): + super(ExtensionEvent, self).__init__() + self.id = id + self.properties = properties + self.statistic_date = statistic_date + self.version = version + + +class ExtensionEvents(Model): + """ExtensionEvents. + + :param events: Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event + :type events: dict + :param extension_id: Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go. + :type extension_id: str + :param extension_name: Name of the extension + :type extension_name: str + :param publisher_name: Name of the publisher + :type publisher_name: str + """ + + _attribute_map = { + 'events': {'key': 'events', 'type': '{[ExtensionEvent]}'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, events=None, extension_id=None, extension_name=None, publisher_name=None): + super(ExtensionEvents, self).__init__() + self.events = events + self.extension_id = extension_id + self.extension_name = extension_name + self.publisher_name = publisher_name + + +class ExtensionFile(Model): + """ExtensionFile. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionFile, self).__init__() + self.asset_type = asset_type + self.language = language + self.source = source + + +class ExtensionFilterResult(Model): + """ExtensionFilterResult. + + :param extensions: This is the set of appplications that matched the query filter supplied. + :type extensions: list of :class:`PublishedExtension ` + :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. + :type paging_token: str + :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'result_metadata': {'key': 'resultMetadata', 'type': '[ExtensionFilterResultMetadata]'} + } + + def __init__(self, extensions=None, paging_token=None, result_metadata=None): + super(ExtensionFilterResult, self).__init__() + self.extensions = extensions + self.paging_token = paging_token + self.result_metadata = result_metadata + + +class ExtensionFilterResultMetadata(Model): + """ExtensionFilterResultMetadata. + + :param metadata_items: The metadata items for the category + :type metadata_items: list of :class:`MetadataItem ` + :param metadata_type: Defines the category of metadata items + :type metadata_type: str + """ + + _attribute_map = { + 'metadata_items': {'key': 'metadataItems', 'type': '[MetadataItem]'}, + 'metadata_type': {'key': 'metadataType', 'type': 'str'} + } + + def __init__(self, metadata_items=None, metadata_type=None): + super(ExtensionFilterResultMetadata, self).__init__() + self.metadata_items = metadata_items + self.metadata_type = metadata_type + + +class ExtensionPackage(Model): + """ExtensionPackage. + + :param extension_manifest: Base 64 encoded extension package + :type extension_manifest: str + """ + + _attribute_map = { + 'extension_manifest': {'key': 'extensionManifest', 'type': 'str'} + } + + def __init__(self, extension_manifest=None): + super(ExtensionPackage, self).__init__() + self.extension_manifest = extension_manifest + + +class ExtensionPayload(Model): + """ExtensionPayload. + + :param description: + :type description: str + :param display_name: + :type display_name: str + :param file_name: + :type file_name: str + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param is_signed_by_microsoft: + :type is_signed_by_microsoft: bool + :param is_valid: + :type is_valid: bool + :param metadata: + :type metadata: list of { key: str; value: str } + :param type: + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'is_signed_by_microsoft': {'key': 'isSignedByMicrosoft', 'type': 'bool'}, + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'metadata': {'key': 'metadata', 'type': '[{ key: str; value: str }]'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, display_name=None, file_name=None, installation_targets=None, is_signed_by_microsoft=None, is_valid=None, metadata=None, type=None): + super(ExtensionPayload, self).__init__() + self.description = description + self.display_name = display_name + self.file_name = file_name + self.installation_targets = installation_targets + self.is_signed_by_microsoft = is_signed_by_microsoft + self.is_valid = is_valid + self.metadata = metadata + self.type = type + + +class ExtensionQuery(Model): + """ExtensionQuery. + + :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. + :type asset_types: list of str + :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. + :type flags: object + """ + + _attribute_map = { + 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, asset_types=None, filters=None, flags=None): + super(ExtensionQuery, self).__init__() + self.asset_types = asset_types + self.filters = filters + self.flags = flags + + +class ExtensionQueryResult(Model): + """ExtensionQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`ExtensionFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[ExtensionFilterResult]'} + } + + def __init__(self, results=None): + super(ExtensionQueryResult, self).__init__() + self.results = results + + +class ExtensionShare(Model): + """ExtensionShare. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(ExtensionShare, self).__init__() + self.id = id + self.name = name + self.type = type + + +class ExtensionStatistic(Model): + """ExtensionStatistic. + + :param statistic_name: + :type statistic_name: str + :param value: + :type value: float + """ + + _attribute_map = { + 'statistic_name': {'key': 'statisticName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'} + } + + def __init__(self, statistic_name=None, value=None): + super(ExtensionStatistic, self).__init__() + self.statistic_name = statistic_name + self.value = value + + +class ExtensionStatisticUpdate(Model): + """ExtensionStatisticUpdate. + + :param extension_name: + :type extension_name: str + :param operation: + :type operation: object + :param publisher_name: + :type publisher_name: str + :param statistic: + :type statistic: :class:`ExtensionStatistic ` + """ + + _attribute_map = { + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'statistic': {'key': 'statistic', 'type': 'ExtensionStatistic'} + } + + def __init__(self, extension_name=None, operation=None, publisher_name=None, statistic=None): + super(ExtensionStatisticUpdate, self).__init__() + self.extension_name = extension_name + self.operation = operation + self.publisher_name = publisher_name + self.statistic = statistic + + +class ExtensionVersion(Model): + """ExtensionVersion. + + :param asset_uri: + :type asset_uri: str + :param badges: + :type badges: list of :class:`ExtensionBadge ` + :param fallback_asset_uri: + :type fallback_asset_uri: str + :param files: + :type files: list of :class:`ExtensionFile ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param properties: + :type properties: list of { key: str; value: str } + :param validation_result_message: + :type validation_result_message: str + :param version: + :type version: str + :param version_description: + :type version_description: str + """ + + _attribute_map = { + 'asset_uri': {'key': 'assetUri', 'type': 'str'}, + 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, + 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[ExtensionFile]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, + 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_description': {'key': 'versionDescription', 'type': 'str'} + } + + def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): + super(ExtensionVersion, self).__init__() + self.asset_uri = asset_uri + self.badges = badges + self.fallback_asset_uri = fallback_asset_uri + self.files = files + self.flags = flags + self.last_updated = last_updated + self.properties = properties + self.validation_result_message = validation_result_message + self.version = version + self.version_description = version_description + + +class FilterCriteria(Model): + """FilterCriteria. + + :param filter_type: + :type filter_type: int + :param value: The value used in the match based on the filter type. + :type value: str + """ + + _attribute_map = { + 'filter_type': {'key': 'filterType', 'type': 'int'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, filter_type=None, value=None): + super(FilterCriteria, self).__init__() + self.filter_type = filter_type + self.value = value + + +class InstallationTarget(Model): + """InstallationTarget. + + :param target: + :type target: str + :param target_version: + :type target_version: str + """ + + _attribute_map = { + 'target': {'key': 'target', 'type': 'str'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'} + } + + def __init__(self, target=None, target_version=None): + super(InstallationTarget, self).__init__() + self.target = target + self.target_version = target_version + + +class MetadataItem(Model): + """MetadataItem. + + :param count: The count of the metadata item + :type count: int + :param name: The name of the metadata item + :type name: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, count=None, name=None): + super(MetadataItem, self).__init__() + self.count = count + self.name = name + + +class NotificationsData(Model): + """NotificationsData. + + :param data: Notification data needed + :type data: dict + :param identities: List of users who should get the notification + :type identities: dict + :param type: Type of Mail Notification.Can be Qna , review or CustomerContact + :type type: object + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'identities': {'key': 'identities', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, data=None, identities=None, type=None): + super(NotificationsData, self).__init__() + self.data = data + self.identities = identities + self.type = type + + +class ProductCategoriesResult(Model): + """ProductCategoriesResult. + + :param categories: + :type categories: list of :class:`ProductCategory ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[ProductCategory]'} + } + + def __init__(self, categories=None): + super(ProductCategoriesResult, self).__init__() + self.categories = categories + + +class ProductCategory(Model): + """ProductCategory. + + :param children: + :type children: list of :class:`ProductCategory ` + :param has_children: Indicator whether this is a leaf or there are children under this category + :type has_children: bool + :param id: Individual Guid of the Category + :type id: str + :param title: Category Title in the requested language + :type title: str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[ProductCategory]'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, children=None, has_children=None, id=None, title=None): + super(ProductCategory, self).__init__() + self.children = children + self.has_children = has_children + self.id = id + self.title = title + + +class PublishedExtension(Model): + """PublishedExtension. + + :param categories: + :type categories: list of str + :param deployment_type: + :type deployment_type: object + :param display_name: + :type display_name: str + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param flags: + :type flags: object + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param published_date: Date on which the extension was first uploaded. + :type published_date: datetime + :param publisher: + :type publisher: :class:`PublisherFacts ` + :param release_date: Date on which the extension first went public. + :type release_date: datetime + :param shared_with: + :type shared_with: list of :class:`ExtensionShare ` + :param short_description: + :type short_description: str + :param statistics: + :type statistics: list of :class:`ExtensionStatistic ` + :param tags: + :type tags: list of str + :param versions: + :type versions: list of :class:`ExtensionVersion ` + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, + 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, + 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} + } + + def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): + super(PublishedExtension, self).__init__() + self.categories = categories + self.deployment_type = deployment_type + self.display_name = display_name + self.extension_id = extension_id + self.extension_name = extension_name + self.flags = flags + self.installation_targets = installation_targets + self.last_updated = last_updated + self.long_description = long_description + self.published_date = published_date + self.publisher = publisher + self.release_date = release_date + self.shared_with = shared_with + self.short_description = short_description + self.statistics = statistics + self.tags = tags + self.versions = versions + + +class PublisherBase(Model): + """PublisherBase. + + :param display_name: + :type display_name: str + :param email_address: + :type email_address: list of str + :param extensions: + :type extensions: list of :class:`PublishedExtension ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + :param short_description: + :type short_description: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': '[str]'}, + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'} + } + + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): + super(PublisherBase, self).__init__() + self.display_name = display_name + self.email_address = email_address + self.extensions = extensions + self.flags = flags + self.last_updated = last_updated + self.long_description = long_description + self.publisher_id = publisher_id + self.publisher_name = publisher_name + self.short_description = short_description + + +class PublisherFacts(Model): + """PublisherFacts. + + :param display_name: + :type display_name: str + :param flags: + :type flags: object + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'} + } + + def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): + super(PublisherFacts, self).__init__() + self.display_name = display_name + self.flags = flags + self.publisher_id = publisher_id + self.publisher_name = publisher_name + + +class PublisherFilterResult(Model): + """PublisherFilterResult. + + :param publishers: This is the set of appplications that matched the query filter supplied. + :type publishers: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publishers': {'key': 'publishers', 'type': '[Publisher]'} + } + + def __init__(self, publishers=None): + super(PublisherFilterResult, self).__init__() + self.publishers = publishers + + +class PublisherQuery(Model): + """PublisherQuery. + + :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. + :type filters: list of :class:`QueryFilter ` + :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. + :type flags: object + """ + + _attribute_map = { + 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, + 'flags': {'key': 'flags', 'type': 'object'} + } + + def __init__(self, filters=None, flags=None): + super(PublisherQuery, self).__init__() + self.filters = filters + self.flags = flags + + +class PublisherQueryResult(Model): + """PublisherQueryResult. + + :param results: For each filter supplied in the query, a filter result will be returned in the query result. + :type results: list of :class:`PublisherFilterResult ` + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[PublisherFilterResult]'} + } + + def __init__(self, results=None): + super(PublisherQueryResult, self).__init__() + self.results = results + + +class QnAItem(Model): + """QnAItem. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(QnAItem, self).__init__() + self.created_date = created_date + self.id = id + self.status = status + self.text = text + self.updated_date = updated_date + self.user = user + + +class QueryFilter(Model): + """QueryFilter. + + :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. + :type criteria: list of :class:`FilterCriteria ` + :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. + :type direction: object + :param page_number: The page number requested by the user. If not provided 1 is assumed by default. + :type page_number: int + :param page_size: The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits. + :type page_size: int + :param paging_token: The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embeded in the token. + :type paging_token: str + :param sort_by: Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only. + :type sort_by: int + :param sort_order: Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value + :type sort_order: int + """ + + _attribute_map = { + 'criteria': {'key': 'criteria', 'type': '[FilterCriteria]'}, + 'direction': {'key': 'direction', 'type': 'object'}, + 'page_number': {'key': 'pageNumber', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'}, + 'paging_token': {'key': 'pagingToken', 'type': 'str'}, + 'sort_by': {'key': 'sortBy', 'type': 'int'}, + 'sort_order': {'key': 'sortOrder', 'type': 'int'} + } + + def __init__(self, criteria=None, direction=None, page_number=None, page_size=None, paging_token=None, sort_by=None, sort_order=None): + super(QueryFilter, self).__init__() + self.criteria = criteria + self.direction = direction + self.page_number = page_number + self.page_size = page_size + self.paging_token = paging_token + self.sort_by = sort_by + self.sort_order = sort_order + + +class Question(QnAItem): + """Question. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param responses: List of answers in for the question / thread + :type responses: list of :class:`Response ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'responses': {'key': 'responses', 'type': '[Response]'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, responses=None): + super(Question, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.responses = responses + + +class QuestionsResult(Model): + """QuestionsResult. + + :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) + :type has_more_questions: bool + :param questions: List of the QnA threads + :type questions: list of :class:`Question ` + """ + + _attribute_map = { + 'has_more_questions': {'key': 'hasMoreQuestions', 'type': 'bool'}, + 'questions': {'key': 'questions', 'type': '[Question]'} + } + + def __init__(self, has_more_questions=None, questions=None): + super(QuestionsResult, self).__init__() + self.has_more_questions = has_more_questions + self.questions = questions + + +class RatingCountPerRating(Model): + """RatingCountPerRating. + + :param rating: Rating value + :type rating: str + :param rating_count: Count of total ratings + :type rating_count: long + """ + + _attribute_map = { + 'rating': {'key': 'rating', 'type': 'str'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'} + } + + def __init__(self, rating=None, rating_count=None): + super(RatingCountPerRating, self).__init__() + self.rating = rating + self.rating_count = rating_count + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Response(QnAItem): + """Response. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): + super(Response, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + + +class Review(Model): + """Review. + + :param admin_reply: Admin Reply, if any, for this review + :type admin_reply: :class:`ReviewReply ` + :param id: Unique identifier of a review item + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param is_ignored: + :type is_ignored: bool + :param product_version: Version of the product for which review was submitted + :type product_version: str + :param rating: Rating procided by the user + :type rating: str + :param reply: Reply, if any, for this review + :type reply: :class:`ReviewReply ` + :param text: Text description of the review + :type text: str + :param title: Title of the review + :type title: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user_display_name: Name of the user + :type user_display_name: str + :param user_id: Id of the user who submitted the review + :type user_id: str + """ + + _attribute_map = { + 'admin_reply': {'key': 'adminReply', 'type': 'ReviewReply'}, + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'rating': {'key': 'rating', 'type': 'str'}, + 'reply': {'key': 'reply', 'type': 'ReviewReply'}, + 'text': {'key': 'text', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_display_name': {'key': 'userDisplayName', 'type': 'str'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, admin_reply=None, id=None, is_deleted=None, is_ignored=None, product_version=None, rating=None, reply=None, text=None, title=None, updated_date=None, user_display_name=None, user_id=None): + super(Review, self).__init__() + self.admin_reply = admin_reply + self.id = id + self.is_deleted = is_deleted + self.is_ignored = is_ignored + self.product_version = product_version + self.rating = rating + self.reply = reply + self.text = text + self.title = title + self.updated_date = updated_date + self.user_display_name = user_display_name + self.user_id = user_id + + +class ReviewPatch(Model): + """ReviewPatch. + + :param operation: Denotes the patch operation type + :type operation: object + :param reported_concern: Use when patch operation is FlagReview + :type reported_concern: :class:`UserReportedConcern ` + :param review_item: Use when patch operation is EditReview + :type review_item: :class:`Review ` + """ + + _attribute_map = { + 'operation': {'key': 'operation', 'type': 'object'}, + 'reported_concern': {'key': 'reportedConcern', 'type': 'UserReportedConcern'}, + 'review_item': {'key': 'reviewItem', 'type': 'Review'} + } + + def __init__(self, operation=None, reported_concern=None, review_item=None): + super(ReviewPatch, self).__init__() + self.operation = operation + self.reported_concern = reported_concern + self.review_item = review_item + + +class ReviewReply(Model): + """ReviewReply. + + :param id: Id of the reply + :type id: long + :param is_deleted: Flag for soft deletion + :type is_deleted: bool + :param product_version: Version of the product when the reply was submitted or updated + :type product_version: str + :param reply_text: Content of the reply + :type reply_text: str + :param review_id: Id of the review, to which this reply belongs + :type review_id: long + :param title: Title of the reply + :type title: str + :param updated_date: Date the reply was submitted or updated + :type updated_date: datetime + :param user_id: Id of the user who left the reply + :type user_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'long'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'product_version': {'key': 'productVersion', 'type': 'str'}, + 'reply_text': {'key': 'replyText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'title': {'key': 'title', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, id=None, is_deleted=None, product_version=None, reply_text=None, review_id=None, title=None, updated_date=None, user_id=None): + super(ReviewReply, self).__init__() + self.id = id + self.is_deleted = is_deleted + self.product_version = product_version + self.reply_text = reply_text + self.review_id = review_id + self.title = title + self.updated_date = updated_date + self.user_id = user_id + + +class ReviewsResult(Model): + """ReviewsResult. + + :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) + :type has_more_reviews: bool + :param reviews: List of reviews + :type reviews: list of :class:`Review ` + :param total_review_count: Count of total review items + :type total_review_count: long + """ + + _attribute_map = { + 'has_more_reviews': {'key': 'hasMoreReviews', 'type': 'bool'}, + 'reviews': {'key': 'reviews', 'type': '[Review]'}, + 'total_review_count': {'key': 'totalReviewCount', 'type': 'long'} + } + + def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None): + super(ReviewsResult, self).__init__() + self.has_more_reviews = has_more_reviews + self.reviews = reviews + self.total_review_count = total_review_count + + +class ReviewSummary(Model): + """ReviewSummary. + + :param average_rating: Average Rating + :type average_rating: int + :param rating_count: Count of total ratings + :type rating_count: long + :param rating_split: Split of count accross rating + :type rating_split: list of :class:`RatingCountPerRating ` + """ + + _attribute_map = { + 'average_rating': {'key': 'averageRating', 'type': 'int'}, + 'rating_count': {'key': 'ratingCount', 'type': 'long'}, + 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} + } + + def __init__(self, average_rating=None, rating_count=None, rating_split=None): + super(ReviewSummary, self).__init__() + self.average_rating = average_rating + self.rating_count = rating_count + self.rating_split = rating_split + + +class UnpackagedExtensionData(Model): + """UnpackagedExtensionData. + + :param categories: + :type categories: list of str + :param description: + :type description: str + :param display_name: + :type display_name: str + :param draft_id: + :type draft_id: str + :param extension_name: + :type extension_name: str + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param is_converted_to_markdown: + :type is_converted_to_markdown: bool + :param pricing_category: + :type pricing_category: str + :param product: + :type product: str + :param publisher_name: + :type publisher_name: str + :param qn_aEnabled: + :type qn_aEnabled: bool + :param referral_url: + :type referral_url: str + :param repository_url: + :type repository_url: str + :param tags: + :type tags: list of str + :param version: + :type version: str + :param vsix_id: + :type vsix_id: str + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'draft_id': {'key': 'draftId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'is_converted_to_markdown': {'key': 'isConvertedToMarkdown', 'type': 'bool'}, + 'pricing_category': {'key': 'pricingCategory', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'qn_aEnabled': {'key': 'qnAEnabled', 'type': 'bool'}, + 'referral_url': {'key': 'referralUrl', 'type': 'str'}, + 'repository_url': {'key': 'repositoryUrl', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'version': {'key': 'version', 'type': 'str'}, + 'vsix_id': {'key': 'vsixId', 'type': 'str'} + } + + def __init__(self, categories=None, description=None, display_name=None, draft_id=None, extension_name=None, installation_targets=None, is_converted_to_markdown=None, pricing_category=None, product=None, publisher_name=None, qn_aEnabled=None, referral_url=None, repository_url=None, tags=None, version=None, vsix_id=None): + super(UnpackagedExtensionData, self).__init__() + self.categories = categories + self.description = description + self.display_name = display_name + self.draft_id = draft_id + self.extension_name = extension_name + self.installation_targets = installation_targets + self.is_converted_to_markdown = is_converted_to_markdown + self.pricing_category = pricing_category + self.product = product + self.publisher_name = publisher_name + self.qn_aEnabled = qn_aEnabled + self.referral_url = referral_url + self.repository_url = repository_url + self.tags = tags + self.version = version + self.vsix_id = vsix_id + + +class UserIdentityRef(Model): + """UserIdentityRef. + + :param display_name: User display name + :type display_name: str + :param id: User VSID + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(UserIdentityRef, self).__init__() + self.display_name = display_name + self.id = id + + +class UserReportedConcern(Model): + """UserReportedConcern. + + :param category: Category of the concern + :type category: object + :param concern_text: User comment associated with the report + :type concern_text: str + :param review_id: Id of the review which was reported + :type review_id: long + :param submitted_date: Date the report was submitted + :type submitted_date: datetime + :param user_id: Id of the user who reported a review + :type user_id: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'object'}, + 'concern_text': {'key': 'concernText', 'type': 'str'}, + 'review_id': {'key': 'reviewId', 'type': 'long'}, + 'submitted_date': {'key': 'submittedDate', 'type': 'iso-8601'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, category=None, concern_text=None, review_id=None, submitted_date=None, user_id=None): + super(UserReportedConcern, self).__init__() + self.category = category + self.concern_text = concern_text + self.review_id = review_id + self.submitted_date = submitted_date + self.user_id = user_id + + +class Concern(QnAItem): + """Concern. + + :param created_date: Time when the review was first created + :type created_date: datetime + :param id: Unique identifier of a QnA item + :type id: long + :param status: Get status of item + :type status: object + :param text: Text description of the QnA item + :type text: str + :param updated_date: Time when the review was edited/updated + :type updated_date: datetime + :param user: User details for the item. + :type user: :class:`UserIdentityRef ` + :param category: Category of the concern + :type category: object + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'object'}, + 'text': {'key': 'text', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'user': {'key': 'user', 'type': 'UserIdentityRef'}, + 'category': {'key': 'category', 'type': 'object'} + } + + def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, category=None): + super(Concern, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) + self.category = category + + +class ExtensionDraftAsset(ExtensionFile): + """ExtensionDraftAsset. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionDraftAsset, self).__init__(asset_type=asset_type, language=language, source=source) + + +class Publisher(PublisherBase): + """Publisher. + + :param display_name: + :type display_name: str + :param email_address: + :type email_address: list of str + :param extensions: + :type extensions: list of :class:`PublishedExtension ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + :param short_description: + :type short_description: str + :param _links: + :type _links: :class:`ReferenceLinks ` + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': '[str]'}, + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} + } + + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, _links=None): + super(Publisher, self).__init__(display_name=display_name, email_address=email_address, extensions=extensions, flags=flags, last_updated=last_updated, long_description=long_description, publisher_id=publisher_id, publisher_name=publisher_name, short_description=short_description) + self._links = _links + + +__all__ = [ + 'AcquisitionOperation', + 'AcquisitionOptions', + 'Answers', + 'AssetDetails', + 'AzurePublisher', + 'AzureRestApiRequestModel', + 'CategoriesResult', + 'CategoryLanguageTitle', + 'EventCounts', + 'ExtensionAcquisitionRequest', + 'ExtensionBadge', + 'ExtensionCategory', + 'ExtensionDailyStat', + 'ExtensionDailyStats', + 'ExtensionDraft', + 'ExtensionDraftPatch', + 'ExtensionEvent', + 'ExtensionEvents', + 'ExtensionFile', + 'ExtensionFilterResult', + 'ExtensionFilterResultMetadata', + 'ExtensionPackage', + 'ExtensionPayload', + 'ExtensionQuery', + 'ExtensionQueryResult', + 'ExtensionShare', + 'ExtensionStatistic', + 'ExtensionStatisticUpdate', + 'ExtensionVersion', + 'FilterCriteria', + 'InstallationTarget', + 'MetadataItem', + 'NotificationsData', + 'ProductCategoriesResult', + 'ProductCategory', + 'PublishedExtension', + 'PublisherBase', + 'PublisherFacts', + 'PublisherFilterResult', + 'PublisherQuery', + 'PublisherQueryResult', + 'QnAItem', + 'QueryFilter', + 'Question', + 'QuestionsResult', + 'RatingCountPerRating', + 'ReferenceLinks', + 'Response', + 'Review', + 'ReviewPatch', + 'ReviewReply', + 'ReviewsResult', + 'ReviewSummary', + 'UnpackagedExtensionData', + 'UserIdentityRef', + 'UserReportedConcern', + 'Concern', + 'ExtensionDraftAsset', + 'Publisher', +] diff --git a/azure-devops/azure/devops/v4_1/git/__init__.py b/azure-devops/azure/devops/v4_1/git/__init__.py new file mode 100644 index 00000000..c5377d92 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/git/__init__.py @@ -0,0 +1,108 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Attachment', + 'Change', + 'Comment', + 'CommentIterationContext', + 'CommentPosition', + 'CommentThread', + 'CommentThreadContext', + 'CommentTrackingCriteria', + 'FileContentMetadata', + 'GitAnnotatedTag', + 'GitAsyncRefOperation', + 'GitAsyncRefOperationDetail', + 'GitAsyncRefOperationParameters', + 'GitAsyncRefOperationSource', + 'GitBaseVersionDescriptor', + 'GitBlobRef', + 'GitBranchStats', + 'GitCherryPick', + 'GitCommit', + 'GitCommitChanges', + 'GitCommitDiffs', + 'GitCommitRef', + 'GitConflict', + 'GitConflictUpdateResult', + 'GitDeletedRepository', + 'GitFilePathsCollection', + 'GitForkOperationStatusDetail', + 'GitForkRef', + 'GitForkSyncRequest', + 'GitForkSyncRequestParameters', + 'GitImportGitSource', + 'GitImportRequest', + 'GitImportRequestParameters', + 'GitImportStatusDetail', + 'GitImportTfvcSource', + 'GitItem', + 'GitItemDescriptor', + 'GitItemRequestData', + 'GitMergeOriginRef', + 'GitObject', + 'GitPullRequest', + 'GitPullRequestChange', + 'GitPullRequestCommentThread', + 'GitPullRequestCommentThreadContext', + 'GitPullRequestCompletionOptions', + 'GitPullRequestIteration', + 'GitPullRequestIterationChanges', + 'GitPullRequestMergeOptions', + 'GitPullRequestQuery', + 'GitPullRequestQueryInput', + 'GitPullRequestSearchCriteria', + 'GitPullRequestStatus', + 'GitPush', + 'GitPushRef', + 'GitPushSearchCriteria', + 'GitQueryBranchStatsCriteria', + 'GitQueryCommitsCriteria', + 'GitRecycleBinRepositoryDetails', + 'GitRef', + 'GitRefFavorite', + 'GitRefUpdate', + 'GitRefUpdateResult', + 'GitRepository', + 'GitRepositoryCreateOptions', + 'GitRepositoryRef', + 'GitRepositoryStats', + 'GitRevert', + 'GitStatus', + 'GitStatusContext', + 'GitSuggestion', + 'GitTargetVersionDescriptor', + 'GitTemplate', + 'GitTreeDiff', + 'GitTreeDiffEntry', + 'GitTreeDiffResponse', + 'GitTreeEntryRef', + 'GitTreeRef', + 'GitUserDate', + 'GitVersionDescriptor', + 'GlobalGitRepositoryKey', + 'GraphSubjectBase', + 'IdentityRef', + 'IdentityRefWithVote', + 'ImportRepositoryValidation', + 'ItemContent', + 'ItemModel', + 'JsonPatchOperation', + 'ReferenceLinks', + 'ResourceRef', + 'ShareNotificationContext', + 'SourceToTargetRef', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'VstsInfo', + 'WebApiCreateTagRequestData', + 'WebApiTagDefinition', +] diff --git a/vsts/vsts/git/v4_1/git_client.py b/azure-devops/azure/devops/v4_1/git/git_client.py similarity index 100% rename from vsts/vsts/git/v4_1/git_client.py rename to azure-devops/azure/devops/v4_1/git/git_client.py diff --git a/vsts/vsts/git/v4_1/git_client_base.py b/azure-devops/azure/devops/v4_1/git/git_client_base.py similarity index 99% rename from vsts/vsts/git/v4_1/git_client_base.py rename to azure-devops/azure/devops/v4_1/git/git_client_base.py index a1aa9b5c..b9863254 100644 --- a/vsts/vsts/git/v4_1/git_client_base.py +++ b/azure-devops/azure/devops/v4_1/git/git_client_base.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class GitClientBase(VssClient): +class GitClientBase(Client): """Git :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/git/models.py b/azure-devops/azure/devops/v4_1/git/models.py new file mode 100644 index 00000000..5477aea3 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/git/models.py @@ -0,0 +1,3375 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Attachment(Model): + """Attachment. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param author: The person that uploaded this attachment. + :type author: :class:`IdentityRef ` + :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. + :type content_hash: str + :param created_date: The time the attachment was uploaded. + :type created_date: datetime + :param description: The description of the attachment. + :type description: str + :param display_name: The display name of the attachment. Can't be null or empty. + :type display_name: str + :param id: Id of the attachment. + :type id: int + :param properties: Extended properties. + :type properties: :class:`object ` + :param url: The url to download the content of the attachment. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'content_hash': {'key': 'contentHash', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, content_hash=None, created_date=None, description=None, display_name=None, id=None, properties=None, url=None): + super(Attachment, self).__init__() + self._links = _links + self.author = author + self.content_hash = content_hash + self.created_date = created_date + self.description = description + self.display_name = display_name + self.id = id + self.properties = properties + self.url = url + + +class Change(Model): + """Change. + + :param change_type: The type of change that was made to the item. + :type change_type: object + :param item: Current version. + :type item: object + :param new_content: Content of the item after the change. + :type new_content: :class:`ItemContent ` + :param source_server_item: Path of the item on the server. + :type source_server_item: str + :param url: URL to retrieve the item. + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'object'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url + + +class Comment(Model): + """Comment. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param author: The author of the comment. + :type author: :class:`IdentityRef ` + :param comment_type: The comment type at the time of creation. + :type comment_type: object + :param content: The comment content. + :type content: str + :param id: The comment ID. IDs start at 1 and are unique to a pull request. + :type id: int + :param is_deleted: Whether or not this comment was soft-deleted. + :type is_deleted: bool + :param last_content_updated_date: The date the comment's content was last updated. + :type last_content_updated_date: datetime + :param last_updated_date: The date the comment was last updated. + :type last_updated_date: datetime + :param parent_comment_id: The ID of the parent comment. This is used for replies. + :type parent_comment_id: int + :param published_date: The date the comment was first published. + :type published_date: datetime + :param users_liked: A list of the users who have liked this comment. + :type users_liked: list of :class:`IdentityRef ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'comment_type': {'key': 'commentType', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_content_updated_date': {'key': 'lastContentUpdatedDate', 'type': 'iso-8601'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'parent_comment_id': {'key': 'parentCommentId', 'type': 'int'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'users_liked': {'key': 'usersLiked', 'type': '[IdentityRef]'} + } + + def __init__(self, _links=None, author=None, comment_type=None, content=None, id=None, is_deleted=None, last_content_updated_date=None, last_updated_date=None, parent_comment_id=None, published_date=None, users_liked=None): + super(Comment, self).__init__() + self._links = _links + self.author = author + self.comment_type = comment_type + self.content = content + self.id = id + self.is_deleted = is_deleted + self.last_content_updated_date = last_content_updated_date + self.last_updated_date = last_updated_date + self.parent_comment_id = parent_comment_id + self.published_date = published_date + self.users_liked = users_liked + + +class CommentIterationContext(Model): + """CommentIterationContext. + + :param first_comparing_iteration: The iteration of the file on the left side of the diff when the thread was created. If this value is equal to SecondComparingIteration, then this version is the common commit between the source and target branches of the pull request. + :type first_comparing_iteration: int + :param second_comparing_iteration: The iteration of the file on the right side of the diff when the thread was created. + :type second_comparing_iteration: int + """ + + _attribute_map = { + 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, + 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} + } + + def __init__(self, first_comparing_iteration=None, second_comparing_iteration=None): + super(CommentIterationContext, self).__init__() + self.first_comparing_iteration = first_comparing_iteration + self.second_comparing_iteration = second_comparing_iteration + + +class CommentPosition(Model): + """CommentPosition. + + :param line: The line number of a thread's position. Starts at 1. + :type line: int + :param offset: The character offset of a thread's position inside of a line. Starts at 0. + :type offset: int + """ + + _attribute_map = { + 'line': {'key': 'line', 'type': 'int'}, + 'offset': {'key': 'offset', 'type': 'int'} + } + + def __init__(self, line=None, offset=None): + super(CommentPosition, self).__init__() + self.line = line + self.offset = offset + + +class CommentThread(Model): + """CommentThread. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param comments: A list of the comments. + :type comments: list of :class:`Comment ` + :param id: The comment thread id. + :type id: int + :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. + :type is_deleted: bool + :param last_updated_date: The time this thread was last updated. + :type last_updated_date: datetime + :param properties: Optional properties associated with the thread as a collection of key-value pairs. + :type properties: :class:`object ` + :param published_date: The time this thread was published. + :type published_date: datetime + :param status: The status of the comment thread. + :type status: object + :param thread_context: Specify thread context such as position in left/right file. + :type thread_context: :class:`CommentThreadContext ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[Comment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'} + } + + def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): + super(CommentThread, self).__init__() + self._links = _links + self.comments = comments + self.id = id + self.is_deleted = is_deleted + self.last_updated_date = last_updated_date + self.properties = properties + self.published_date = published_date + self.status = status + self.thread_context = thread_context + + +class CommentThreadContext(Model): + """CommentThreadContext. + + :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. + :type file_path: str + :param left_file_end: Position of last character of the thread's span in left file. + :type left_file_end: :class:`CommentPosition ` + :param left_file_start: Position of first character of the thread's span in left file. + :type left_file_start: :class:`CommentPosition ` + :param right_file_end: Position of last character of the thread's span in right file. + :type right_file_end: :class:`CommentPosition ` + :param right_file_start: Position of first character of the thread's span in right file. + :type right_file_start: :class:`CommentPosition ` + """ + + _attribute_map = { + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'left_file_end': {'key': 'leftFileEnd', 'type': 'CommentPosition'}, + 'left_file_start': {'key': 'leftFileStart', 'type': 'CommentPosition'}, + 'right_file_end': {'key': 'rightFileEnd', 'type': 'CommentPosition'}, + 'right_file_start': {'key': 'rightFileStart', 'type': 'CommentPosition'} + } + + def __init__(self, file_path=None, left_file_end=None, left_file_start=None, right_file_end=None, right_file_start=None): + super(CommentThreadContext, self).__init__() + self.file_path = file_path + self.left_file_end = left_file_end + self.left_file_start = left_file_start + self.right_file_end = right_file_end + self.right_file_start = right_file_start + + +class CommentTrackingCriteria(Model): + """CommentTrackingCriteria. + + :param first_comparing_iteration: The iteration of the file on the left side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. + :type first_comparing_iteration: int + :param orig_file_path: Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. + :type orig_file_path: str + :param orig_left_file_end: Original position of last character of the thread's span in left file. + :type orig_left_file_end: :class:`CommentPosition ` + :param orig_left_file_start: Original position of first character of the thread's span in left file. + :type orig_left_file_start: :class:`CommentPosition ` + :param orig_right_file_end: Original position of last character of the thread's span in right file. + :type orig_right_file_end: :class:`CommentPosition ` + :param orig_right_file_start: Original position of first character of the thread's span in right file. + :type orig_right_file_start: :class:`CommentPosition ` + :param second_comparing_iteration: The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. + :type second_comparing_iteration: int + """ + + _attribute_map = { + 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, + 'orig_file_path': {'key': 'origFilePath', 'type': 'str'}, + 'orig_left_file_end': {'key': 'origLeftFileEnd', 'type': 'CommentPosition'}, + 'orig_left_file_start': {'key': 'origLeftFileStart', 'type': 'CommentPosition'}, + 'orig_right_file_end': {'key': 'origRightFileEnd', 'type': 'CommentPosition'}, + 'orig_right_file_start': {'key': 'origRightFileStart', 'type': 'CommentPosition'}, + 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} + } + + def __init__(self, first_comparing_iteration=None, orig_file_path=None, orig_left_file_end=None, orig_left_file_start=None, orig_right_file_end=None, orig_right_file_start=None, second_comparing_iteration=None): + super(CommentTrackingCriteria, self).__init__() + self.first_comparing_iteration = first_comparing_iteration + self.orig_file_path = orig_file_path + self.orig_left_file_end = orig_left_file_end + self.orig_left_file_start = orig_left_file_start + self.orig_right_file_end = orig_right_file_end + self.orig_right_file_start = orig_right_file_start + self.second_comparing_iteration = second_comparing_iteration + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link + + +class GitAnnotatedTag(Model): + """GitAnnotatedTag. + + :param message: The tagging Message + :type message: str + :param name: The name of the annotated tag. + :type name: str + :param object_id: The objectId (Sha1Id) of the tag. + :type object_id: str + :param tagged_by: User info and date of tagging. + :type tagged_by: :class:`GitUserDate ` + :param tagged_object: Tagged git object. + :type tagged_object: :class:`GitObject ` + :param url: + :type url: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'tagged_by': {'key': 'taggedBy', 'type': 'GitUserDate'}, + 'tagged_object': {'key': 'taggedObject', 'type': 'GitObject'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, message=None, name=None, object_id=None, tagged_by=None, tagged_object=None, url=None): + super(GitAnnotatedTag, self).__init__() + self.message = message + self.name = name + self.object_id = object_id + self.tagged_by = tagged_by + self.tagged_object = tagged_object + self.url = url + + +class GitAsyncRefOperation(Model): + """GitAsyncRefOperation. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :param parameters: + :type parameters: :class:`GitAsyncRefOperationParameters ` + :param status: + :type status: object + :param url: A URL that can be used to make further requests for status about the operation + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, + 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None): + super(GitAsyncRefOperation, self).__init__() + self._links = _links + self.detailed_status = detailed_status + self.parameters = parameters + self.status = status + self.url = url + + +class GitAsyncRefOperationDetail(Model): + """GitAsyncRefOperationDetail. + + :param conflict: Indicates if there was a conflict generated when trying to cherry pick or revert the changes. + :type conflict: bool + :param current_commit_id: The current commit from the list of commits that are being cherry picked or reverted. + :type current_commit_id: str + :param failure_message: Detailed information about why the cherry pick or revert failed to complete. + :type failure_message: str + :param progress: A number between 0 and 1 indicating the percent complete of the operation. + :type progress: float + :param status: Provides a status code that indicates the reason the cherry pick or revert failed. + :type status: object + :param timedout: Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation. + :type timedout: bool + """ + + _attribute_map = { + 'conflict': {'key': 'conflict', 'type': 'bool'}, + 'current_commit_id': {'key': 'currentCommitId', 'type': 'str'}, + 'failure_message': {'key': 'failureMessage', 'type': 'str'}, + 'progress': {'key': 'progress', 'type': 'float'}, + 'status': {'key': 'status', 'type': 'object'}, + 'timedout': {'key': 'timedout', 'type': 'bool'} + } + + def __init__(self, conflict=None, current_commit_id=None, failure_message=None, progress=None, status=None, timedout=None): + super(GitAsyncRefOperationDetail, self).__init__() + self.conflict = conflict + self.current_commit_id = current_commit_id + self.failure_message = failure_message + self.progress = progress + self.status = status + self.timedout = timedout + + +class GitAsyncRefOperationParameters(Model): + """GitAsyncRefOperationParameters. + + :param generated_ref_name: Proposed target branch name for the cherry pick or revert operation. + :type generated_ref_name: str + :param onto_ref_name: The target branch for the cherry pick or revert operation. + :type onto_ref_name: str + :param repository: The git repository for the cherry pick or revert operation. + :type repository: :class:`GitRepository ` + :param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). + :type source: :class:`GitAsyncRefOperationSource ` + """ + + _attribute_map = { + 'generated_ref_name': {'key': 'generatedRefName', 'type': 'str'}, + 'onto_ref_name': {'key': 'ontoRefName', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'source': {'key': 'source', 'type': 'GitAsyncRefOperationSource'} + } + + def __init__(self, generated_ref_name=None, onto_ref_name=None, repository=None, source=None): + super(GitAsyncRefOperationParameters, self).__init__() + self.generated_ref_name = generated_ref_name + self.onto_ref_name = onto_ref_name + self.repository = repository + self.source = source + + +class GitAsyncRefOperationSource(Model): + """GitAsyncRefOperationSource. + + :param commit_list: A list of commits to cherry pick or revert + :type commit_list: list of :class:`GitCommitRef ` + :param pull_request_id: Id of the pull request to cherry pick or revert + :type pull_request_id: int + """ + + _attribute_map = { + 'commit_list': {'key': 'commitList', 'type': '[GitCommitRef]'}, + 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} + } + + def __init__(self, commit_list=None, pull_request_id=None): + super(GitAsyncRefOperationSource, self).__init__() + self.commit_list = commit_list + self.pull_request_id = pull_request_id + + +class GitBlobRef(Model): + """GitBlobRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param object_id: SHA1 hash of git object + :type object_id: str + :param size: Size of blob content (in bytes) + :type size: long + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, object_id=None, size=None, url=None): + super(GitBlobRef, self).__init__() + self._links = _links + self.object_id = object_id + self.size = size + self.url = url + + +class GitBranchStats(Model): + """GitBranchStats. + + :param ahead_count: Number of commits ahead. + :type ahead_count: int + :param behind_count: Number of commits behind. + :type behind_count: int + :param commit: Current commit. + :type commit: :class:`GitCommitRef ` + :param is_base_version: True if this is the result for the base version. + :type is_base_version: bool + :param name: Name of the ref. + :type name: str + """ + + _attribute_map = { + 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, + 'behind_count': {'key': 'behindCount', 'type': 'int'}, + 'commit': {'key': 'commit', 'type': 'GitCommitRef'}, + 'is_base_version': {'key': 'isBaseVersion', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, ahead_count=None, behind_count=None, commit=None, is_base_version=None, name=None): + super(GitBranchStats, self).__init__() + self.ahead_count = ahead_count + self.behind_count = behind_count + self.commit = commit + self.is_base_version = is_base_version + self.name = name + + +class GitCherryPick(GitAsyncRefOperation): + """GitCherryPick. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :param parameters: + :type parameters: :class:`GitAsyncRefOperationParameters ` + :param status: + :type status: object + :param url: A URL that can be used to make further requests for status about the operation + :type url: str + :param cherry_pick_id: + :type cherry_pick_id: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, + 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'cherry_pick_id': {'key': 'cherryPickId', 'type': 'int'} + } + + def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, cherry_pick_id=None): + super(GitCherryPick, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) + self.cherry_pick_id = cherry_pick_id + + +class GitCommitChanges(Model): + """GitCommitChanges. + + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + """ + + _attribute_map = { + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'} + } + + def __init__(self, change_counts=None, changes=None): + super(GitCommitChanges, self).__init__() + self.change_counts = change_counts + self.changes = changes + + +class GitCommitDiffs(Model): + """GitCommitDiffs. + + :param ahead_count: + :type ahead_count: int + :param all_changes_included: + :type all_changes_included: bool + :param base_commit: + :type base_commit: str + :param behind_count: + :type behind_count: int + :param change_counts: + :type change_counts: dict + :param changes: + :type changes: list of :class:`object ` + :param common_commit: + :type common_commit: str + :param target_commit: + :type target_commit: str + """ + + _attribute_map = { + 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, + 'all_changes_included': {'key': 'allChangesIncluded', 'type': 'bool'}, + 'base_commit': {'key': 'baseCommit', 'type': 'str'}, + 'behind_count': {'key': 'behindCount', 'type': 'int'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'common_commit': {'key': 'commonCommit', 'type': 'str'}, + 'target_commit': {'key': 'targetCommit', 'type': 'str'} + } + + def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None, behind_count=None, change_counts=None, changes=None, common_commit=None, target_commit=None): + super(GitCommitDiffs, self).__init__() + self.ahead_count = ahead_count + self.all_changes_included = all_changes_included + self.base_commit = base_commit + self.behind_count = behind_count + self.change_counts = change_counts + self.changes = changes + self.common_commit = common_commit + self.target_commit = target_commit + + +class GitCommitRef(Model): + """GitCommitRef. + + :param _links: A collection of related REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the commit. + :type author: :class:`GitUserDate ` + :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. + :type change_counts: dict + :param changes: An enumeration of the changes included with the commit. + :type changes: list of :class:`object ` + :param comment: Comment or message of the commit. + :type comment: str + :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. + :type comment_truncated: bool + :param commit_id: ID (SHA-1) of the commit. + :type commit_id: str + :param committer: Committer of the commit. + :type committer: :class:`GitUserDate ` + :param parents: An enumeration of the parent commit IDs for this commit. + :type parents: list of str + :param remote_url: Remote URL path to the commit. + :type remote_url: str + :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. + :type statuses: list of :class:`GitStatus ` + :param url: REST URL for this resource. + :type url: str + :param work_items: A list of workitems associated with this commit. + :type work_items: list of :class:`ResourceRef ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'GitUserDate'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'committer': {'key': 'committer', 'type': 'GitUserDate'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} + } + + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): + super(GitCommitRef, self).__init__() + self._links = _links + self.author = author + self.change_counts = change_counts + self.changes = changes + self.comment = comment + self.comment_truncated = comment_truncated + self.commit_id = commit_id + self.committer = committer + self.parents = parents + self.remote_url = remote_url + self.statuses = statuses + self.url = url + self.work_items = work_items + + +class GitConflict(Model): + """GitConflict. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param conflict_id: + :type conflict_id: int + :param conflict_path: + :type conflict_path: str + :param conflict_type: + :type conflict_type: object + :param merge_base_commit: + :type merge_base_commit: :class:`GitCommitRef ` + :param merge_origin: + :type merge_origin: :class:`GitMergeOriginRef ` + :param merge_source_commit: + :type merge_source_commit: :class:`GitCommitRef ` + :param merge_target_commit: + :type merge_target_commit: :class:`GitCommitRef ` + :param resolution_error: + :type resolution_error: object + :param resolution_status: + :type resolution_status: object + :param resolved_by: + :type resolved_by: :class:`IdentityRef ` + :param resolved_date: + :type resolved_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'conflict_id': {'key': 'conflictId', 'type': 'int'}, + 'conflict_path': {'key': 'conflictPath', 'type': 'str'}, + 'conflict_type': {'key': 'conflictType', 'type': 'object'}, + 'merge_base_commit': {'key': 'mergeBaseCommit', 'type': 'GitCommitRef'}, + 'merge_origin': {'key': 'mergeOrigin', 'type': 'GitMergeOriginRef'}, + 'merge_source_commit': {'key': 'mergeSourceCommit', 'type': 'GitCommitRef'}, + 'merge_target_commit': {'key': 'mergeTargetCommit', 'type': 'GitCommitRef'}, + 'resolution_error': {'key': 'resolutionError', 'type': 'object'}, + 'resolution_status': {'key': 'resolutionStatus', 'type': 'object'}, + 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'}, + 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, conflict_id=None, conflict_path=None, conflict_type=None, merge_base_commit=None, merge_origin=None, merge_source_commit=None, merge_target_commit=None, resolution_error=None, resolution_status=None, resolved_by=None, resolved_date=None, url=None): + super(GitConflict, self).__init__() + self._links = _links + self.conflict_id = conflict_id + self.conflict_path = conflict_path + self.conflict_type = conflict_type + self.merge_base_commit = merge_base_commit + self.merge_origin = merge_origin + self.merge_source_commit = merge_source_commit + self.merge_target_commit = merge_target_commit + self.resolution_error = resolution_error + self.resolution_status = resolution_status + self.resolved_by = resolved_by + self.resolved_date = resolved_date + self.url = url + + +class GitConflictUpdateResult(Model): + """GitConflictUpdateResult. + + :param conflict_id: Conflict ID that was provided by input + :type conflict_id: int + :param custom_message: Reason for failing + :type custom_message: str + :param updated_conflict: New state of the conflict after updating + :type updated_conflict: :class:`GitConflict ` + :param update_status: Status of the update on the server + :type update_status: object + """ + + _attribute_map = { + 'conflict_id': {'key': 'conflictId', 'type': 'int'}, + 'custom_message': {'key': 'customMessage', 'type': 'str'}, + 'updated_conflict': {'key': 'updatedConflict', 'type': 'GitConflict'}, + 'update_status': {'key': 'updateStatus', 'type': 'object'} + } + + def __init__(self, conflict_id=None, custom_message=None, updated_conflict=None, update_status=None): + super(GitConflictUpdateResult, self).__init__() + self.conflict_id = conflict_id + self.custom_message = custom_message + self.updated_conflict = updated_conflict + self.update_status = update_status + + +class GitDeletedRepository(Model): + """GitDeletedRepository. + + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: :class:`IdentityRef ` + :param deleted_date: + :type deleted_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'} + } + + def __init__(self, created_date=None, deleted_by=None, deleted_date=None, id=None, name=None, project=None): + super(GitDeletedRepository, self).__init__() + self.created_date = created_date + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.id = id + self.name = name + self.project = project + + +class GitFilePathsCollection(Model): + """GitFilePathsCollection. + + :param commit_id: + :type commit_id: str + :param paths: + :type paths: list of str + :param url: + :type url: str + """ + + _attribute_map = { + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, commit_id=None, paths=None, url=None): + super(GitFilePathsCollection, self).__init__() + self.commit_id = commit_id + self.paths = paths + self.url = url + + +class GitForkOperationStatusDetail(Model): + """GitForkOperationStatusDetail. + + :param all_steps: All valid steps for the forking process + :type all_steps: list of str + :param current_step: Index into AllSteps for the current step + :type current_step: int + :param error_message: Error message if the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'all_steps': {'key': 'allSteps', 'type': '[str]'}, + 'current_step': {'key': 'currentStep', 'type': 'int'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'} + } + + def __init__(self, all_steps=None, current_step=None, error_message=None): + super(GitForkOperationStatusDetail, self).__init__() + self.all_steps = all_steps + self.current_step = current_step + self.error_message = error_message + + +class GitForkSyncRequest(Model): + """GitForkSyncRequest. + + :param _links: Collection of related links + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitForkOperationStatusDetail ` + :param operation_id: Unique identifier for the operation. + :type operation_id: int + :param source: Fully-qualified identifier for the source repository. + :type source: :class:`GlobalGitRepositoryKey ` + :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. + :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :param status: + :type status: object + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitForkOperationStatusDetail'}, + 'operation_id': {'key': 'operationId', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, + 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, _links=None, detailed_status=None, operation_id=None, source=None, source_to_target_refs=None, status=None): + super(GitForkSyncRequest, self).__init__() + self._links = _links + self.detailed_status = detailed_status + self.operation_id = operation_id + self.source = source + self.source_to_target_refs = source_to_target_refs + self.status = status + + +class GitForkSyncRequestParameters(Model): + """GitForkSyncRequestParameters. + + :param source: Fully-qualified identifier for the source repository. + :type source: :class:`GlobalGitRepositoryKey ` + :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. + :type source_to_target_refs: list of :class:`SourceToTargetRef ` + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, + 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'} + } + + def __init__(self, source=None, source_to_target_refs=None): + super(GitForkSyncRequestParameters, self).__init__() + self.source = source + self.source_to_target_refs = source_to_target_refs + + +class GitImportGitSource(Model): + """GitImportGitSource. + + :param overwrite: Tells if this is a sync request or not + :type overwrite: bool + :param url: Url for the source repo + :type url: str + """ + + _attribute_map = { + 'overwrite': {'key': 'overwrite', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, overwrite=None, url=None): + super(GitImportGitSource, self).__init__() + self.overwrite = overwrite + self.url = url + + +class GitImportRequest(Model): + """GitImportRequest. + + :param _links: Links to related resources. + :type _links: :class:`ReferenceLinks ` + :param detailed_status: Detailed status of the import, including the current step and an error message, if applicable. + :type detailed_status: :class:`GitImportStatusDetail ` + :param import_request_id: The unique identifier for this import request. + :type import_request_id: int + :param parameters: Parameters for creating the import request. + :type parameters: :class:`GitImportRequestParameters ` + :param repository: The target repository for this import. + :type repository: :class:`GitRepository ` + :param status: Current status of the import. + :type status: object + :param url: A link back to this import request resource. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitImportStatusDetail'}, + 'import_request_id': {'key': 'importRequestId', 'type': 'int'}, + 'parameters': {'key': 'parameters', 'type': 'GitImportRequestParameters'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, detailed_status=None, import_request_id=None, parameters=None, repository=None, status=None, url=None): + super(GitImportRequest, self).__init__() + self._links = _links + self.detailed_status = detailed_status + self.import_request_id = import_request_id + self.parameters = parameters + self.repository = repository + self.status = status + self.url = url + + +class GitImportRequestParameters(Model): + """GitImportRequestParameters. + + :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done + :type delete_service_endpoint_after_import_is_done: bool + :param git_source: Source for importing git repository + :type git_source: :class:`GitImportGitSource ` + :param service_endpoint_id: Service Endpoint for connection to external endpoint + :type service_endpoint_id: str + :param tfvc_source: Source for importing tfvc repository + :type tfvc_source: :class:`GitImportTfvcSource ` + """ + + _attribute_map = { + 'delete_service_endpoint_after_import_is_done': {'key': 'deleteServiceEndpointAfterImportIsDone', 'type': 'bool'}, + 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, + 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'}, + 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'} + } + + def __init__(self, delete_service_endpoint_after_import_is_done=None, git_source=None, service_endpoint_id=None, tfvc_source=None): + super(GitImportRequestParameters, self).__init__() + self.delete_service_endpoint_after_import_is_done = delete_service_endpoint_after_import_is_done + self.git_source = git_source + self.service_endpoint_id = service_endpoint_id + self.tfvc_source = tfvc_source + + +class GitImportStatusDetail(Model): + """GitImportStatusDetail. + + :param all_steps: All valid steps for the import process + :type all_steps: list of str + :param current_step: Index into AllSteps for the current step + :type current_step: int + :param error_message: Error message if the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'all_steps': {'key': 'allSteps', 'type': '[str]'}, + 'current_step': {'key': 'currentStep', 'type': 'int'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'} + } + + def __init__(self, all_steps=None, current_step=None, error_message=None): + super(GitImportStatusDetail, self).__init__() + self.all_steps = all_steps + self.current_step = current_step + self.error_message = error_message + + +class GitImportTfvcSource(Model): + """GitImportTfvcSource. + + :param import_history: Set true to import History, false otherwise + :type import_history: bool + :param import_history_duration_in_days: Get history for last n days (max allowed value is 180 days) + :type import_history_duration_in_days: int + :param path: Path which we want to import (this can be copied from Path Control in Explorer) + :type path: str + """ + + _attribute_map = { + 'import_history': {'key': 'importHistory', 'type': 'bool'}, + 'import_history_duration_in_days': {'key': 'importHistoryDurationInDays', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, import_history=None, import_history_duration_in_days=None, path=None): + super(GitImportTfvcSource, self).__init__() + self.import_history = import_history + self.import_history_duration_in_days = import_history_duration_in_days + self.path = path + + +class GitItemDescriptor(Model): + """GitItemDescriptor. + + :param path: Path to item + :type path: str + :param recursion_level: Specifies whether to include children (OneLevel), all descendants (Full), or None + :type recursion_level: object + :param version: Version string (interpretation based on VersionType defined in subclass + :type version: str + :param version_options: Version modifiers (e.g. previous) + :type version_options: object + :param version_type: How to interpret version (branch,tag,commit) + :type version_type: object + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, path=None, recursion_level=None, version=None, version_options=None, version_type=None): + super(GitItemDescriptor, self).__init__() + self.path = path + self.recursion_level = recursion_level + self.version = version + self.version_options = version_options + self.version_type = version_type + + +class GitItemRequestData(Model): + """GitItemRequestData. + + :param include_content_metadata: Whether to include metadata for all items + :type include_content_metadata: bool + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_descriptors: Collection of items to fetch, including path, version, and recursion level + :type item_descriptors: list of :class:`GitItemDescriptor ` + :param latest_processed_change: Whether to include shallow ref to commit that last changed each item + :type latest_processed_change: bool + """ + + _attribute_map = { + 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_descriptors': {'key': 'itemDescriptors', 'type': '[GitItemDescriptor]'}, + 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'bool'} + } + + def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None, latest_processed_change=None): + super(GitItemRequestData, self).__init__() + self.include_content_metadata = include_content_metadata + self.include_links = include_links + self.item_descriptors = item_descriptors + self.latest_processed_change = latest_processed_change + + +class GitMergeOriginRef(Model): + """GitMergeOriginRef. + + :param pull_request_id: + :type pull_request_id: int + """ + + _attribute_map = { + 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} + } + + def __init__(self, pull_request_id=None): + super(GitMergeOriginRef, self).__init__() + self.pull_request_id = pull_request_id + + +class GitObject(Model): + """GitObject. + + :param object_id: Object Id (Sha1Id). + :type object_id: str + :param object_type: Type of object (Commit, Tree, Blob, Tag) + :type object_type: object + """ + + _attribute_map = { + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'object'} + } + + def __init__(self, object_id=None, object_type=None): + super(GitObject, self).__init__() + self.object_id = object_id + self.object_type = object_type + + +class GitPullRequest(Model): + """GitPullRequest. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param artifact_id: A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}``` + :type artifact_id: str + :param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it. + :type auto_complete_set_by: :class:`IdentityRef ` + :param closed_by: The user who closed the pull request. + :type closed_by: :class:`IdentityRef ` + :param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally). + :type closed_date: datetime + :param code_review_id: The code review ID of the pull request. Used internally. + :type code_review_id: int + :param commits: The commits contained in the pull request. + :type commits: list of :class:`GitCommitRef ` + :param completion_options: Options which affect how the pull request will be merged when it is completed. + :type completion_options: :class:`GitPullRequestCompletionOptions ` + :param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally. + :type completion_queue_time: datetime + :param created_by: The identity of the user who created the pull request. + :type created_by: :class:`IdentityRef ` + :param creation_date: The date when the pull request was created. + :type creation_date: datetime + :param description: The description of the pull request. + :type description: str + :param fork_source: If this is a PR from a fork this will contain information about its source. + :type fork_source: :class:`GitForkRef ` + :param labels: The labels associated with the pull request. + :type labels: list of :class:`WebApiTagDefinition ` + :param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. + :type last_merge_commit: :class:`GitCommitRef ` + :param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge. + :type last_merge_source_commit: :class:`GitCommitRef ` + :param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge. + :type last_merge_target_commit: :class:`GitCommitRef ` + :param merge_failure_message: If set, pull request merge failed for this reason. + :type merge_failure_message: str + :param merge_failure_type: The type of failure (if any) of the pull request merge. + :type merge_failure_type: object + :param merge_id: The ID of the job used to run the pull request merge. Used internally. + :type merge_id: str + :param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. + :type merge_options: :class:`GitPullRequestMergeOptions ` + :param merge_status: The current status of the pull request merge. + :type merge_status: object + :param pull_request_id: The ID of the pull request. + :type pull_request_id: int + :param remote_url: Used internally. + :type remote_url: str + :param repository: The repository containing the target branch of the pull request. + :type repository: :class:`GitRepository ` + :param reviewers: A list of reviewers on the pull request along with the state of their votes. + :type reviewers: list of :class:`IdentityRefWithVote ` + :param source_ref_name: The name of the source branch of the pull request. + :type source_ref_name: str + :param status: The status of the pull request. + :type status: object + :param supports_iterations: If true, this pull request supports multiple iterations. Iteration support means individual pushes to the source branch of the pull request can be reviewed and comments left in one iteration will be tracked across future iterations. + :type supports_iterations: bool + :param target_ref_name: The name of the target branch of the pull request. + :type target_ref_name: str + :param title: The title of the pull request. + :type title: str + :param url: Used internally. + :type url: str + :param work_item_refs: Any work item references associated with this pull request. + :type work_item_refs: list of :class:`ResourceRef ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'auto_complete_set_by': {'key': 'autoCompleteSetBy', 'type': 'IdentityRef'}, + 'closed_by': {'key': 'closedBy', 'type': 'IdentityRef'}, + 'closed_date': {'key': 'closedDate', 'type': 'iso-8601'}, + 'code_review_id': {'key': 'codeReviewId', 'type': 'int'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'completion_options': {'key': 'completionOptions', 'type': 'GitPullRequestCompletionOptions'}, + 'completion_queue_time': {'key': 'completionQueueTime', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fork_source': {'key': 'forkSource', 'type': 'GitForkRef'}, + 'labels': {'key': 'labels', 'type': '[WebApiTagDefinition]'}, + 'last_merge_commit': {'key': 'lastMergeCommit', 'type': 'GitCommitRef'}, + 'last_merge_source_commit': {'key': 'lastMergeSourceCommit', 'type': 'GitCommitRef'}, + 'last_merge_target_commit': {'key': 'lastMergeTargetCommit', 'type': 'GitCommitRef'}, + 'merge_failure_message': {'key': 'mergeFailureMessage', 'type': 'str'}, + 'merge_failure_type': {'key': 'mergeFailureType', 'type': 'object'}, + 'merge_id': {'key': 'mergeId', 'type': 'str'}, + 'merge_options': {'key': 'mergeOptions', 'type': 'GitPullRequestMergeOptions'}, + 'merge_status': {'key': 'mergeStatus', 'type': 'object'}, + 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'reviewers': {'key': 'reviewers', 'type': '[IdentityRefWithVote]'}, + 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'supports_iterations': {'key': 'supportsIterations', 'type': 'bool'}, + 'target_ref_name': {'key': 'targetRefName', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_refs': {'key': 'workItemRefs', 'type': '[ResourceRef]'} + } + + def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): + super(GitPullRequest, self).__init__() + self._links = _links + self.artifact_id = artifact_id + self.auto_complete_set_by = auto_complete_set_by + self.closed_by = closed_by + self.closed_date = closed_date + self.code_review_id = code_review_id + self.commits = commits + self.completion_options = completion_options + self.completion_queue_time = completion_queue_time + self.created_by = created_by + self.creation_date = creation_date + self.description = description + self.fork_source = fork_source + self.labels = labels + self.last_merge_commit = last_merge_commit + self.last_merge_source_commit = last_merge_source_commit + self.last_merge_target_commit = last_merge_target_commit + self.merge_failure_message = merge_failure_message + self.merge_failure_type = merge_failure_type + self.merge_id = merge_id + self.merge_options = merge_options + self.merge_status = merge_status + self.pull_request_id = pull_request_id + self.remote_url = remote_url + self.repository = repository + self.reviewers = reviewers + self.source_ref_name = source_ref_name + self.status = status + self.supports_iterations = supports_iterations + self.target_ref_name = target_ref_name + self.title = title + self.url = url + self.work_item_refs = work_item_refs + + +class GitPullRequestCommentThread(CommentThread): + """GitPullRequestCommentThread. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param comments: A list of the comments. + :type comments: list of :class:`Comment ` + :param id: The comment thread id. + :type id: int + :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. + :type is_deleted: bool + :param last_updated_date: The time this thread was last updated. + :type last_updated_date: datetime + :param properties: Optional properties associated with the thread as a collection of key-value pairs. + :type properties: :class:`object ` + :param published_date: The time this thread was published. + :type published_date: datetime + :param status: The status of the comment thread. + :type status: object + :param thread_context: Specify thread context such as position in left/right file. + :type thread_context: :class:`CommentThreadContext ` + :param pull_request_thread_context: Extended context information unique to pull requests + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[Comment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'}, + 'pull_request_thread_context': {'key': 'pullRequestThreadContext', 'type': 'GitPullRequestCommentThreadContext'} + } + + def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): + super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) + self.pull_request_thread_context = pull_request_thread_context + + +class GitPullRequestCommentThreadContext(Model): + """GitPullRequestCommentThreadContext. + + :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. + :type change_tracking_id: int + :param iteration_context: The iteration context being viewed when the thread was created. + :type iteration_context: :class:`CommentIterationContext ` + :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. + :type tracking_criteria: :class:`CommentTrackingCriteria ` + """ + + _attribute_map = { + 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'}, + 'iteration_context': {'key': 'iterationContext', 'type': 'CommentIterationContext'}, + 'tracking_criteria': {'key': 'trackingCriteria', 'type': 'CommentTrackingCriteria'} + } + + def __init__(self, change_tracking_id=None, iteration_context=None, tracking_criteria=None): + super(GitPullRequestCommentThreadContext, self).__init__() + self.change_tracking_id = change_tracking_id + self.iteration_context = iteration_context + self.tracking_criteria = tracking_criteria + + +class GitPullRequestCompletionOptions(Model): + """GitPullRequestCompletionOptions. + + :param bypass_policy: If true, policies will be explicitly bypassed while the pull request is completed. + :type bypass_policy: bool + :param bypass_reason: If policies are bypassed, this reason is stored as to why bypass was used. + :type bypass_reason: str + :param delete_source_branch: If true, the source branch of the pull request will be deleted after completion. + :type delete_source_branch: bool + :param merge_commit_message: If set, this will be used as the commit message of the merge commit. + :type merge_commit_message: str + :param squash_merge: If true, the commits in the pull request will be squash-merged into the specified target branch on completion. + :type squash_merge: bool + :param transition_work_items: If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved) + :type transition_work_items: bool + :param triggered_by_auto_complete: If true, the current completion attempt was triggered via auto-complete. Used internally. + :type triggered_by_auto_complete: bool + """ + + _attribute_map = { + 'bypass_policy': {'key': 'bypassPolicy', 'type': 'bool'}, + 'bypass_reason': {'key': 'bypassReason', 'type': 'str'}, + 'delete_source_branch': {'key': 'deleteSourceBranch', 'type': 'bool'}, + 'merge_commit_message': {'key': 'mergeCommitMessage', 'type': 'str'}, + 'squash_merge': {'key': 'squashMerge', 'type': 'bool'}, + 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'}, + 'triggered_by_auto_complete': {'key': 'triggeredByAutoComplete', 'type': 'bool'} + } + + def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None, triggered_by_auto_complete=None): + super(GitPullRequestCompletionOptions, self).__init__() + self.bypass_policy = bypass_policy + self.bypass_reason = bypass_reason + self.delete_source_branch = delete_source_branch + self.merge_commit_message = merge_commit_message + self.squash_merge = squash_merge + self.transition_work_items = transition_work_items + self.triggered_by_auto_complete = triggered_by_auto_complete + + +class GitPullRequestIteration(Model): + """GitPullRequestIteration. + + :param _links: A collection of related REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the pull request iteration. + :type author: :class:`IdentityRef ` + :param change_list: Changes included with the pull request iteration. + :type change_list: list of :class:`GitPullRequestChange ` + :param commits: The commits included with the pull request iteration. + :type commits: list of :class:`GitCommitRef ` + :param common_ref_commit: The first common Git commit of the source and target refs. + :type common_ref_commit: :class:`GitCommitRef ` + :param created_date: The creation date of the pull request iteration. + :type created_date: datetime + :param description: Description of the pull request iteration. + :type description: str + :param has_more_commits: Indicates if the Commits property contains a truncated list of commits in this pull request iteration. + :type has_more_commits: bool + :param id: ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request. + :type id: int + :param push: The Git push information associated with this pull request iteration. + :type push: :class:`GitPushRef ` + :param reason: The reason for which the pull request iteration was created. + :type reason: object + :param source_ref_commit: The source Git commit of this iteration. + :type source_ref_commit: :class:`GitCommitRef ` + :param target_ref_commit: The target Git commit of this iteration. + :type target_ref_commit: :class:`GitCommitRef ` + :param updated_date: The updated date of the pull request iteration. + :type updated_date: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_list': {'key': 'changeList', 'type': '[GitPullRequestChange]'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'common_ref_commit': {'key': 'commonRefCommit', 'type': 'GitCommitRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'has_more_commits': {'key': 'hasMoreCommits', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'source_ref_commit': {'key': 'sourceRefCommit', 'type': 'GitCommitRef'}, + 'target_ref_commit': {'key': 'targetRefCommit', 'type': 'GitCommitRef'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): + super(GitPullRequestIteration, self).__init__() + self._links = _links + self.author = author + self.change_list = change_list + self.commits = commits + self.common_ref_commit = common_ref_commit + self.created_date = created_date + self.description = description + self.has_more_commits = has_more_commits + self.id = id + self.push = push + self.reason = reason + self.source_ref_commit = source_ref_commit + self.target_ref_commit = target_ref_commit + self.updated_date = updated_date + + +class GitPullRequestIterationChanges(Model): + """GitPullRequestIterationChanges. + + :param change_entries: Changes made in the iteration. + :type change_entries: list of :class:`GitPullRequestChange ` + :param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. + :type next_skip: int + :param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes. + :type next_top: int + """ + + _attribute_map = { + 'change_entries': {'key': 'changeEntries', 'type': '[GitPullRequestChange]'}, + 'next_skip': {'key': 'nextSkip', 'type': 'int'}, + 'next_top': {'key': 'nextTop', 'type': 'int'} + } + + def __init__(self, change_entries=None, next_skip=None, next_top=None): + super(GitPullRequestIterationChanges, self).__init__() + self.change_entries = change_entries + self.next_skip = next_skip + self.next_top = next_top + + +class GitPullRequestMergeOptions(Model): + """GitPullRequestMergeOptions. + + :param detect_rename_false_positives: + :type detect_rename_false_positives: bool + :param disable_renames: If true, rename detection will not be performed during the merge. + :type disable_renames: bool + """ + + _attribute_map = { + 'detect_rename_false_positives': {'key': 'detectRenameFalsePositives', 'type': 'bool'}, + 'disable_renames': {'key': 'disableRenames', 'type': 'bool'} + } + + def __init__(self, detect_rename_false_positives=None, disable_renames=None): + super(GitPullRequestMergeOptions, self).__init__() + self.detect_rename_false_positives = detect_rename_false_positives + self.disable_renames = disable_renames + + +class GitPullRequestQuery(Model): + """GitPullRequestQuery. + + :param queries: The queries to perform. + :type queries: list of :class:`GitPullRequestQueryInput ` + :param results: The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. + :type results: list of {[GitPullRequest]} + """ + + _attribute_map = { + 'queries': {'key': 'queries', 'type': '[GitPullRequestQueryInput]'}, + 'results': {'key': 'results', 'type': '[{[GitPullRequest]}]'} + } + + def __init__(self, queries=None, results=None): + super(GitPullRequestQuery, self).__init__() + self.queries = queries + self.results = results + + +class GitPullRequestQueryInput(Model): + """GitPullRequestQueryInput. + + :param items: The list of commit IDs to search for. + :type items: list of str + :param type: The type of query to perform. + :type type: object + """ + + _attribute_map = { + 'items': {'key': 'items', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, items=None, type=None): + super(GitPullRequestQueryInput, self).__init__() + self.items = items + self.type = type + + +class GitPullRequestSearchCriteria(Model): + """GitPullRequestSearchCriteria. + + :param creator_id: If set, search for pull requests that were created by this identity. + :type creator_id: str + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param repository_id: If set, search for pull requests whose target branch is in this repository. + :type repository_id: str + :param reviewer_id: If set, search for pull requests that have this identity as a reviewer. + :type reviewer_id: str + :param source_ref_name: If set, search for pull requests from this branch. + :type source_ref_name: str + :param source_repository_id: If set, search for pull requests whose source branch is in this repository. + :type source_repository_id: str + :param status: If set, search for pull requests that are in this state. + :type status: object + :param target_ref_name: If set, search for pull requests into this branch. + :type target_ref_name: str + """ + + _attribute_map = { + 'creator_id': {'key': 'creatorId', 'type': 'str'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'reviewer_id': {'key': 'reviewerId', 'type': 'str'}, + 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'target_ref_name': {'key': 'targetRefName', 'type': 'str'} + } + + def __init__(self, creator_id=None, include_links=None, repository_id=None, reviewer_id=None, source_ref_name=None, source_repository_id=None, status=None, target_ref_name=None): + super(GitPullRequestSearchCriteria, self).__init__() + self.creator_id = creator_id + self.include_links = include_links + self.repository_id = repository_id + self.reviewer_id = reviewer_id + self.source_ref_name = source_ref_name + self.source_repository_id = source_repository_id + self.status = status + self.target_ref_name = target_ref_name + + +class GitPushRef(Model): + """GitPushRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: :class:`IdentityRef ` + :param push_id: + :type push_id: int + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): + super(GitPushRef, self).__init__() + self._links = _links + self.date = date + self.push_correlation_id = push_correlation_id + self.pushed_by = pushed_by + self.push_id = push_id + self.url = url + + +class GitPushSearchCriteria(Model): + """GitPushSearchCriteria. + + :param from_date: + :type from_date: datetime + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param include_ref_updates: + :type include_ref_updates: bool + :param pusher_id: + :type pusher_id: str + :param ref_name: + :type ref_name: str + :param to_date: + :type to_date: datetime + """ + + _attribute_map = { + 'from_date': {'key': 'fromDate', 'type': 'iso-8601'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_ref_updates': {'key': 'includeRefUpdates', 'type': 'bool'}, + 'pusher_id': {'key': 'pusherId', 'type': 'str'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'iso-8601'} + } + + def __init__(self, from_date=None, include_links=None, include_ref_updates=None, pusher_id=None, ref_name=None, to_date=None): + super(GitPushSearchCriteria, self).__init__() + self.from_date = from_date + self.include_links = include_links + self.include_ref_updates = include_ref_updates + self.pusher_id = pusher_id + self.ref_name = ref_name + self.to_date = to_date + + +class GitQueryBranchStatsCriteria(Model): + """GitQueryBranchStatsCriteria. + + :param base_commit: + :type base_commit: :class:`GitVersionDescriptor ` + :param target_commits: + :type target_commits: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'base_commit': {'key': 'baseCommit', 'type': 'GitVersionDescriptor'}, + 'target_commits': {'key': 'targetCommits', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, base_commit=None, target_commits=None): + super(GitQueryBranchStatsCriteria, self).__init__() + self.base_commit = base_commit + self.target_commits = target_commits + + +class GitQueryCommitsCriteria(Model): + """GitQueryCommitsCriteria. + + :param skip: Number of entries to skip + :type skip: int + :param top: Maximum number of entries to retrieve + :type top: int + :param author: Alias or display name of the author + :type author: str + :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. + :type compare_version: :class:`GitVersionDescriptor ` + :param exclude_deletes: If true, don't include delete history entries + :type exclude_deletes: bool + :param from_commit_id: If provided, a lower bound for filtering commits alphabetically + :type from_commit_id: str + :param from_date: If provided, only include history entries created after this date (string) + :type from_date: str + :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null. + :type history_mode: object + :param ids: If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters. + :type ids: list of str + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param include_work_items: Whether to include linked work items + :type include_work_items: bool + :param item_path: Path of item to search under + :type item_path: str + :param item_version: If provided, identifies the commit or branch to search + :type item_version: :class:`GitVersionDescriptor ` + :param to_commit_id: If provided, an upper bound for filtering commits alphabetically + :type to_commit_id: str + :param to_date: If provided, only include history entries created before this date (string) + :type to_date: str + :param user: Alias or display name of the committer + :type user: str + """ + + _attribute_map = { + 'skip': {'key': '$skip', 'type': 'int'}, + 'top': {'key': '$top', 'type': 'int'}, + 'author': {'key': 'author', 'type': 'str'}, + 'compare_version': {'key': 'compareVersion', 'type': 'GitVersionDescriptor'}, + 'exclude_deletes': {'key': 'excludeDeletes', 'type': 'bool'}, + 'from_commit_id': {'key': 'fromCommitId', 'type': 'str'}, + 'from_date': {'key': 'fromDate', 'type': 'str'}, + 'history_mode': {'key': 'historyMode', 'type': 'object'}, + 'ids': {'key': 'ids', 'type': '[str]'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, + 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'item_version': {'key': 'itemVersion', 'type': 'GitVersionDescriptor'}, + 'to_commit_id': {'key': 'toCommitId', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'str'}, + 'user': {'key': 'user', 'type': 'str'} + } + + def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): + super(GitQueryCommitsCriteria, self).__init__() + self.skip = skip + self.top = top + self.author = author + self.compare_version = compare_version + self.exclude_deletes = exclude_deletes + self.from_commit_id = from_commit_id + self.from_date = from_date + self.history_mode = history_mode + self.ids = ids + self.include_links = include_links + self.include_work_items = include_work_items + self.item_path = item_path + self.item_version = item_version + self.to_commit_id = to_commit_id + self.to_date = to_date + self.user = user + + +class GitRecycleBinRepositoryDetails(Model): + """GitRecycleBinRepositoryDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the repository. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(GitRecycleBinRepositoryDetails, self).__init__() + self.deleted = deleted + + +class GitRef(Model): + """GitRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param creator: + :type creator: :class:`IdentityRef ` + :param is_locked: + :type is_locked: bool + :param is_locked_by: + :type is_locked_by: :class:`IdentityRef ` + :param name: + :type name: str + :param object_id: + :type object_id: str + :param peeled_object_id: + :type peeled_object_id: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'creator': {'key': 'creator', 'type': 'IdentityRef'}, + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): + super(GitRef, self).__init__() + self._links = _links + self.creator = creator + self.is_locked = is_locked + self.is_locked_by = is_locked_by + self.name = name + self.object_id = object_id + self.peeled_object_id = peeled_object_id + self.statuses = statuses + self.url = url + + +class GitRefFavorite(Model): + """GitRefFavorite. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param identity_id: + :type identity_id: str + :param name: + :type name: str + :param repository_id: + :type repository_id: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, identity_id=None, name=None, repository_id=None, type=None, url=None): + super(GitRefFavorite, self).__init__() + self._links = _links + self.id = id + self.identity_id = identity_id + self.name = name + self.repository_id = repository_id + self.type = type + self.url = url + + +class GitRefUpdate(Model): + """GitRefUpdate. + + :param is_locked: + :type is_locked: bool + :param name: + :type name: str + :param new_object_id: + :type new_object_id: str + :param old_object_id: + :type old_object_id: str + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, + 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): + super(GitRefUpdate, self).__init__() + self.is_locked = is_locked + self.name = name + self.new_object_id = new_object_id + self.old_object_id = old_object_id + self.repository_id = repository_id + + +class GitRefUpdateResult(Model): + """GitRefUpdateResult. + + :param custom_message: Custom message for the result object For instance, Reason for failing. + :type custom_message: str + :param is_locked: Whether the ref is locked or not + :type is_locked: bool + :param name: Ref name + :type name: str + :param new_object_id: New object ID + :type new_object_id: str + :param old_object_id: Old object ID + :type old_object_id: str + :param rejected_by: Name of the plugin that rejected the updated. + :type rejected_by: str + :param repository_id: Repository ID + :type repository_id: str + :param success: True if the ref update succeeded, false otherwise + :type success: bool + :param update_status: Status of the update from the TFS server. + :type update_status: object + """ + + _attribute_map = { + 'custom_message': {'key': 'customMessage', 'type': 'str'}, + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, + 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, + 'rejected_by': {'key': 'rejectedBy', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'success': {'key': 'success', 'type': 'bool'}, + 'update_status': {'key': 'updateStatus', 'type': 'object'} + } + + def __init__(self, custom_message=None, is_locked=None, name=None, new_object_id=None, old_object_id=None, rejected_by=None, repository_id=None, success=None, update_status=None): + super(GitRefUpdateResult, self).__init__() + self.custom_message = custom_message + self.is_locked = is_locked + self.name = name + self.new_object_id = new_object_id + self.old_object_id = old_object_id + self.rejected_by = rejected_by + self.repository_id = repository_id + self.success = success + self.update_status = update_status + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + self.valid_remote_urls = valid_remote_urls + + +class GitRepositoryCreateOptions(Model): + """GitRepositoryCreateOptions. + + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'} + } + + def __init__(self, name=None, parent_repository=None, project=None): + super(GitRepositoryCreateOptions, self).__init__() + self.name = name + self.parent_repository = parent_repository + self.project = project + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: :class:`TeamProjectCollectionReference ` + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.is_fork = is_fork + self.name = name + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + + +class GitRepositoryStats(Model): + """GitRepositoryStats. + + :param active_pull_requests_count: + :type active_pull_requests_count: int + :param branches_count: + :type branches_count: int + :param commits_count: + :type commits_count: int + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'active_pull_requests_count': {'key': 'activePullRequestsCount', 'type': 'int'}, + 'branches_count': {'key': 'branchesCount', 'type': 'int'}, + 'commits_count': {'key': 'commitsCount', 'type': 'int'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, active_pull_requests_count=None, branches_count=None, commits_count=None, repository_id=None): + super(GitRepositoryStats, self).__init__() + self.active_pull_requests_count = active_pull_requests_count + self.branches_count = branches_count + self.commits_count = commits_count + self.repository_id = repository_id + + +class GitRevert(GitAsyncRefOperation): + """GitRevert. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param detailed_status: + :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :param parameters: + :type parameters: :class:`GitAsyncRefOperationParameters ` + :param status: + :type status: object + :param url: A URL that can be used to make further requests for status about the operation + :type url: str + :param revert_id: + :type revert_id: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, + 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revert_id': {'key': 'revertId', 'type': 'int'} + } + + def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, revert_id=None): + super(GitRevert, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) + self.revert_id = revert_id + + +class GitStatus(Model): + """GitStatus. + + :param _links: Reference links. + :type _links: :class:`ReferenceLinks ` + :param context: Context of the status. + :type context: :class:`GitStatusContext ` + :param created_by: Identity that created the status. + :type created_by: :class:`IdentityRef ` + :param creation_date: Creation date and time of the status. + :type creation_date: datetime + :param description: Status description. Typically describes current state of the status. + :type description: str + :param id: Status identifier. + :type id: int + :param state: State of the status. + :type state: object + :param target_url: URL with status details. + :type target_url: str + :param updated_date: Last update date and time of the status. + :type updated_date: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'context': {'key': 'context', 'type': 'GitStatusContext'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'target_url': {'key': 'targetUrl', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): + super(GitStatus, self).__init__() + self._links = _links + self.context = context + self.created_by = created_by + self.creation_date = creation_date + self.description = description + self.id = id + self.state = state + self.target_url = target_url + self.updated_date = updated_date + + +class GitStatusContext(Model): + """GitStatusContext. + + :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. + :type genre: str + :param name: Name identifier of the status, cannot be null or empty. + :type name: str + """ + + _attribute_map = { + 'genre': {'key': 'genre', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, genre=None, name=None): + super(GitStatusContext, self).__init__() + self.genre = genre + self.name = name + + +class GitSuggestion(Model): + """GitSuggestion. + + :param properties: Specific properties describing the suggestion. + :type properties: dict + :param type: The type of suggestion (e.g. pull request). + :type type: str + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, properties=None, type=None): + super(GitSuggestion, self).__init__() + self.properties = properties + self.type = type + + +class GitTemplate(Model): + """GitTemplate. + + :param name: Name of the Template + :type name: str + :param type: Type of the Template + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, name=None, type=None): + super(GitTemplate, self).__init__() + self.name = name + self.type = type + + +class GitTreeDiff(Model): + """GitTreeDiff. + + :param base_tree_id: ObjectId of the base tree of this diff. + :type base_tree_id: str + :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. + :type diff_entries: list of :class:`GitTreeDiffEntry ` + :param target_tree_id: ObjectId of the target tree of this diff. + :type target_tree_id: str + :param url: REST Url to this resource. + :type url: str + """ + + _attribute_map = { + 'base_tree_id': {'key': 'baseTreeId', 'type': 'str'}, + 'diff_entries': {'key': 'diffEntries', 'type': '[GitTreeDiffEntry]'}, + 'target_tree_id': {'key': 'targetTreeId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, base_tree_id=None, diff_entries=None, target_tree_id=None, url=None): + super(GitTreeDiff, self).__init__() + self.base_tree_id = base_tree_id + self.diff_entries = diff_entries + self.target_tree_id = target_tree_id + self.url = url + + +class GitTreeDiffEntry(Model): + """GitTreeDiffEntry. + + :param base_object_id: SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds. + :type base_object_id: str + :param change_type: Type of change that affected this entry. + :type change_type: object + :param object_type: Object type of the tree entry. Blob, Tree or Commit("submodule") + :type object_type: object + :param path: Relative path in base and target trees. + :type path: str + :param target_object_id: SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes. + :type target_object_id: str + """ + + _attribute_map = { + 'base_object_id': {'key': 'baseObjectId', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'object_type': {'key': 'objectType', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'target_object_id': {'key': 'targetObjectId', 'type': 'str'} + } + + def __init__(self, base_object_id=None, change_type=None, object_type=None, path=None, target_object_id=None): + super(GitTreeDiffEntry, self).__init__() + self.base_object_id = base_object_id + self.change_type = change_type + self.object_type = object_type + self.path = path + self.target_object_id = target_object_id + + +class GitTreeDiffResponse(Model): + """GitTreeDiffResponse. + + :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. + :type continuation_token: list of str + :param tree_diff: + :type tree_diff: :class:`GitTreeDiff ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'tree_diff': {'key': 'treeDiff', 'type': 'GitTreeDiff'} + } + + def __init__(self, continuation_token=None, tree_diff=None): + super(GitTreeDiffResponse, self).__init__() + self.continuation_token = continuation_token + self.tree_diff = tree_diff + + +class GitTreeEntryRef(Model): + """GitTreeEntryRef. + + :param git_object_type: Blob or tree + :type git_object_type: object + :param mode: Mode represented as octal string + :type mode: str + :param object_id: SHA1 hash of git object + :type object_id: str + :param relative_path: Path relative to parent tree object + :type relative_path: str + :param size: Size of content + :type size: long + :param url: url to retrieve tree or blob + :type url: str + """ + + _attribute_map = { + 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, + 'mode': {'key': 'mode', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, git_object_type=None, mode=None, object_id=None, relative_path=None, size=None, url=None): + super(GitTreeEntryRef, self).__init__() + self.git_object_type = git_object_type + self.mode = mode + self.object_id = object_id + self.relative_path = relative_path + self.size = size + self.url = url + + +class GitTreeRef(Model): + """GitTreeRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param object_id: SHA1 hash of git object + :type object_id: str + :param size: Sum of sizes of all children + :type size: long + :param tree_entries: Blobs and trees under this tree + :type tree_entries: list of :class:`GitTreeEntryRef ` + :param url: Url to tree + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'tree_entries': {'key': 'treeEntries', 'type': '[GitTreeEntryRef]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, object_id=None, size=None, tree_entries=None, url=None): + super(GitTreeRef, self).__init__() + self._links = _links + self.object_id = object_id + self.size = size + self.tree_entries = tree_entries + self.url = url + + +class GitUserDate(Model): + """GitUserDate. + + :param date: Date of the Git operation. + :type date: datetime + :param email: Email address of the user performing the Git operation. + :type email: str + :param name: Name of the user performing the Git operation. + :type name: str + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'email': {'key': 'email', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, date=None, email=None, name=None): + super(GitUserDate, self).__init__() + self.date = date + self.email = email + self.name = name + + +class GitVersionDescriptor(Model): + """GitVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None): + super(GitVersionDescriptor, self).__init__() + self.version = version + self.version_options = version_options + self.version_type = version_type + + +class GlobalGitRepositoryKey(Model): + """GlobalGitRepositoryKey. + + :param collection_id: Team Project Collection ID of the collection for the repository. + :type collection_id: str + :param project_id: Team Project ID of the project for the repository. + :type project_id: str + :param repository_id: ID of the repository. + :type repository_id: str + """ + + _attribute_map = { + 'collection_id': {'key': 'collectionId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, collection_id=None, project_id=None, repository_id=None): + super(GlobalGitRepositoryKey, self).__init__() + self.collection_id = collection_id + self.project_id = project_id + self.repository_id = repository_id + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class IdentityRefWithVote(IdentityRef): + """IdentityRefWithVote. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param is_required: Indicates if this is a required reviewer for this pull request.
Branches can have policies that require particular reviewers are required for pull requests. + :type is_required: bool + :param reviewer_url: URL to retrieve information about this identity + :type reviewer_url: str + :param vote: Vote on a pull request:
10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected + :type vote: int + :param voted_for: Groups or teams that that this reviewer contributed to.
Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes. + :type voted_for: list of :class:`IdentityRefWithVote ` + """ + + _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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'reviewer_url': {'key': 'reviewerUrl', 'type': 'str'}, + 'vote': {'key': 'vote', 'type': 'int'}, + 'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'} + } + + 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, profile_url=None, unique_name=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): + super(IdentityRefWithVote, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) + self.is_required = is_required + self.reviewer_url = reviewer_url + self.vote = vote + self.voted_for = voted_for + + +class ImportRepositoryValidation(Model): + """ImportRepositoryValidation. + + :param git_source: + :type git_source: :class:`GitImportGitSource ` + :param password: + :type password: str + :param tfvc_source: + :type tfvc_source: :class:`GitImportTfvcSource ` + :param username: + :type username: str + """ + + _attribute_map = { + 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, + 'password': {'key': 'password', 'type': 'str'}, + 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'}, + 'username': {'key': 'username', 'type': 'str'} + } + + def __init__(self, git_source=None, password=None, tfvc_source=None, username=None): + super(ImportRepositoryValidation, self).__init__() + self.git_source = git_source + self.password = password + self.tfvc_source = tfvc_source + self.username = username + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content = content + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResourceRef(Model): + """ResourceRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(ResourceRef, self).__init__() + self.id = id + self.url = url + + +class ShareNotificationContext(Model): + """ShareNotificationContext. + + :param message: Optional user note or message. + :type message: str + :param receivers: Identities of users who will receive a share notification. + :type receivers: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'receivers': {'key': 'receivers', 'type': '[IdentityRef]'} + } + + def __init__(self, message=None, receivers=None): + super(ShareNotificationContext, self).__init__() + self.message = message + self.receivers = receivers + + +class SourceToTargetRef(Model): + """SourceToTargetRef. + + :param source_ref: The source ref to copy. For example, refs/heads/master. + :type source_ref: str + :param target_ref: The target ref to update. For example, refs/heads/master. + :type target_ref: str + """ + + _attribute_map = { + 'source_ref': {'key': 'sourceRef', 'type': 'str'}, + 'target_ref': {'key': 'targetRef', 'type': 'str'} + } + + def __init__(self, source_ref=None, target_ref=None): + super(SourceToTargetRef, self).__init__() + self.source_ref = source_ref + self.target_ref = target_ref + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class VstsInfo(Model): + """VstsInfo. + + :param collection: + :type collection: :class:`TeamProjectCollectionReference ` + :param repository: + :type repository: :class:`GitRepository ` + :param server_url: + :type server_url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'server_url': {'key': 'serverUrl', 'type': 'str'} + } + + def __init__(self, collection=None, repository=None, server_url=None): + super(VstsInfo, self).__init__() + self.collection = collection + self.repository = repository + self.server_url = server_url + + +class WebApiCreateTagRequestData(Model): + """WebApiCreateTagRequestData. + + :param name: Name of the tag definition that will be created. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(WebApiCreateTagRequestData, self).__init__() + self.name = name + + +class WebApiTagDefinition(Model): + """WebApiTagDefinition. + + :param active: Whether or not the tag definition is active. + :type active: bool + :param id: ID of the tag definition. + :type id: str + :param name: The name of the tag definition. + :type name: str + :param url: Resource URL for the Tag Definition. + :type url: str + """ + + _attribute_map = { + 'active': {'key': 'active', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, active=None, id=None, name=None, url=None): + super(WebApiTagDefinition, self).__init__() + self.active = active + self.id = id + self.name = name + self.url = url + + +class GitBaseVersionDescriptor(GitVersionDescriptor): + """GitBaseVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + :param base_version: Version string identifier (name of tag/branch, SHA1 of commit) + :type base_version: str + :param base_version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type base_version_options: object + :param base_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type base_version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'}, + 'base_version': {'key': 'baseVersion', 'type': 'str'}, + 'base_version_options': {'key': 'baseVersionOptions', 'type': 'object'}, + 'base_version_type': {'key': 'baseVersionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None, base_version=None, base_version_options=None, base_version_type=None): + super(GitBaseVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) + self.base_version = base_version + self.base_version_options = base_version_options + self.base_version_type = base_version_type + + +class GitCommit(GitCommitRef): + """GitCommit. + + :param _links: A collection of related REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the commit. + :type author: :class:`GitUserDate ` + :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. + :type change_counts: dict + :param changes: An enumeration of the changes included with the commit. + :type changes: list of :class:`object ` + :param comment: Comment or message of the commit. + :type comment: str + :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. + :type comment_truncated: bool + :param commit_id: ID (SHA-1) of the commit. + :type commit_id: str + :param committer: Committer of the commit. + :type committer: :class:`GitUserDate ` + :param parents: An enumeration of the parent commit IDs for this commit. + :type parents: list of str + :param remote_url: Remote URL path to the commit. + :type remote_url: str + :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. + :type statuses: list of :class:`GitStatus ` + :param url: REST URL for this resource. + :type url: str + :param work_items: A list of workitems associated with this commit. + :type work_items: list of :class:`ResourceRef ` + :param push: + :type push: :class:`GitPushRef ` + :param tree_id: + :type tree_id: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'GitUserDate'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, + 'changes': {'key': 'changes', 'type': '[object]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'committer': {'key': 'committer', 'type': 'GitUserDate'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, + 'tree_id': {'key': 'treeId', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None, push=None, tree_id=None): + super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) + self.push = push + self.tree_id = tree_id + + +class GitForkRef(GitRef): + """GitForkRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param creator: + :type creator: :class:`IdentityRef ` + :param is_locked: + :type is_locked: bool + :param is_locked_by: + :type is_locked_by: :class:`IdentityRef ` + :param name: + :type name: str + :param object_id: + :type object_id: str + :param peeled_object_id: + :type peeled_object_id: str + :param statuses: + :type statuses: list of :class:`GitStatus ` + :param url: + :type url: str + :param repository: The repository ID of the fork. + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'creator': {'key': 'creator', 'type': 'IdentityRef'}, + 'is_locked': {'key': 'isLocked', 'type': 'bool'}, + 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): + super(GitForkRef, self).__init__(_links=_links, creator=creator, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) + self.repository = repository + + +class GitItem(ItemModel): + """GitItem. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param commit_id: SHA1 of commit item was fetched at + :type commit_id: str + :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) + :type git_object_type: object + :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached + :type latest_processed_change: :class:`GitCommitRef ` + :param object_id: Git object id + :type object_id: str + :param original_object_id: Git object id + :type original_object_id: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commit_id': {'key': 'commitId', 'type': 'str'}, + 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, + 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} + } + + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): + super(GitItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.commit_id = commit_id + self.git_object_type = git_object_type + self.latest_processed_change = latest_processed_change + self.object_id = object_id + self.original_object_id = original_object_id + + +class GitPullRequestStatus(GitStatus): + """GitPullRequestStatus. + + :param _links: Reference links. + :type _links: :class:`ReferenceLinks ` + :param context: Context of the status. + :type context: :class:`GitStatusContext ` + :param created_by: Identity that created the status. + :type created_by: :class:`IdentityRef ` + :param creation_date: Creation date and time of the status. + :type creation_date: datetime + :param description: Status description. Typically describes current state of the status. + :type description: str + :param id: Status identifier. + :type id: int + :param state: State of the status. + :type state: object + :param target_url: URL with status details. + :type target_url: str + :param updated_date: Last update date and time of the status. + :type updated_date: datetime + :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. + :type iteration_id: int + :param properties: Custom properties of the status. + :type properties: :class:`object ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'context': {'key': 'context', 'type': 'GitStatusContext'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'target_url': {'key': 'targetUrl', 'type': 'str'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'} + } + + def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None, iteration_id=None, properties=None): + super(GitPullRequestStatus, self).__init__(_links=_links, context=context, created_by=created_by, creation_date=creation_date, description=description, id=id, state=state, target_url=target_url, updated_date=updated_date) + self.iteration_id = iteration_id + self.properties = properties + + +class GitPush(GitPushRef): + """GitPush. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param date: + :type date: datetime + :param push_correlation_id: + :type push_correlation_id: str + :param pushed_by: + :type pushed_by: :class:`IdentityRef ` + :param push_id: + :type push_id: int + :param url: + :type url: str + :param commits: + :type commits: list of :class:`GitCommitRef ` + :param ref_updates: + :type ref_updates: list of :class:`GitRefUpdate ` + :param repository: + :type repository: :class:`GitRepository ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'push_id': {'key': 'pushId', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, + 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'} + } + + def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): + super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) + self.commits = commits + self.ref_updates = ref_updates + self.repository = repository + + +class GitTargetVersionDescriptor(GitVersionDescriptor): + """GitTargetVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + :param target_version: Version string identifier (name of tag/branch, SHA1 of commit) + :type target_version: str + :param target_version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type target_version_options: object + :param target_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type target_version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'}, + 'target_version': {'key': 'targetVersion', 'type': 'str'}, + 'target_version_options': {'key': 'targetVersionOptions', 'type': 'object'}, + 'target_version_type': {'key': 'targetVersionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None, target_version=None, target_version_options=None, target_version_type=None): + super(GitTargetVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) + self.target_version = target_version + self.target_version_options = target_version_options + self.target_version_type = target_version_type + + +__all__ = [ + 'Attachment', + 'Change', + 'Comment', + 'CommentIterationContext', + 'CommentPosition', + 'CommentThread', + 'CommentThreadContext', + 'CommentTrackingCriteria', + 'FileContentMetadata', + 'GitAnnotatedTag', + 'GitAsyncRefOperation', + 'GitAsyncRefOperationDetail', + 'GitAsyncRefOperationParameters', + 'GitAsyncRefOperationSource', + 'GitBlobRef', + 'GitBranchStats', + 'GitCherryPick', + 'GitCommitChanges', + 'GitCommitDiffs', + 'GitCommitRef', + 'GitConflict', + 'GitConflictUpdateResult', + 'GitDeletedRepository', + 'GitFilePathsCollection', + 'GitForkOperationStatusDetail', + 'GitForkSyncRequest', + 'GitForkSyncRequestParameters', + 'GitImportGitSource', + 'GitImportRequest', + 'GitImportRequestParameters', + 'GitImportStatusDetail', + 'GitImportTfvcSource', + 'GitItemDescriptor', + 'GitItemRequestData', + 'GitMergeOriginRef', + 'GitObject', + 'GitPullRequest', + 'GitPullRequestCommentThread', + 'GitPullRequestCommentThreadContext', + 'GitPullRequestCompletionOptions', + 'GitPullRequestIteration', + 'GitPullRequestIterationChanges', + 'GitPullRequestMergeOptions', + 'GitPullRequestQuery', + 'GitPullRequestQueryInput', + 'GitPullRequestSearchCriteria', + 'GitPushRef', + 'GitPushSearchCriteria', + 'GitQueryBranchStatsCriteria', + 'GitQueryCommitsCriteria', + 'GitRecycleBinRepositoryDetails', + 'GitRef', + 'GitRefFavorite', + 'GitRefUpdate', + 'GitRefUpdateResult', + 'GitRepository', + 'GitRepositoryCreateOptions', + 'GitRepositoryRef', + 'GitRepositoryStats', + 'GitRevert', + 'GitStatus', + 'GitStatusContext', + 'GitSuggestion', + 'GitTemplate', + 'GitTreeDiff', + 'GitTreeDiffEntry', + 'GitTreeDiffResponse', + 'GitTreeEntryRef', + 'GitTreeRef', + 'GitUserDate', + 'GitVersionDescriptor', + 'GlobalGitRepositoryKey', + 'GraphSubjectBase', + 'IdentityRef', + 'IdentityRefWithVote', + 'ImportRepositoryValidation', + 'ItemContent', + 'ItemModel', + 'JsonPatchOperation', + 'ReferenceLinks', + 'ResourceRef', + 'ShareNotificationContext', + 'SourceToTargetRef', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'VstsInfo', + 'WebApiCreateTagRequestData', + 'WebApiTagDefinition', + 'GitBaseVersionDescriptor', + 'GitCommit', + 'GitForkRef', + 'GitItem', + 'GitPullRequestStatus', + 'GitPush', + 'GitTargetVersionDescriptor', +] diff --git a/azure-devops/azure/devops/v4_1/graph/__init__.py b/azure-devops/azure/devops/v4_1/graph/__init__.py new file mode 100644 index 00000000..ddcfc123 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/graph/__init__.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GraphCachePolicies', + 'GraphDescriptorResult', + 'GraphGlobalExtendedPropertyBatch', + 'GraphGroup', + 'GraphGroupCreationContext', + 'GraphMember', + 'GraphMembership', + 'GraphMembershipState', + 'GraphMembershipTraversal', + 'GraphScope', + 'GraphScopeCreationContext', + 'GraphStorageKeyResult', + 'GraphSubject', + 'GraphSubjectBase', + 'GraphSubjectLookup', + 'GraphSubjectLookupKey', + 'GraphUser', + 'GraphUserCreationContext', + 'IdentityKeyMap', + 'JsonPatchOperation', + 'PagedGraphGroups', + 'PagedGraphUsers', + 'ReferenceLinks', +] diff --git a/vsts/vsts/graph/v4_1/graph_client.py b/azure-devops/azure/devops/v4_1/graph/graph_client.py similarity index 99% rename from vsts/vsts/graph/v4_1/graph_client.py rename to azure-devops/azure/devops/v4_1/graph/graph_client.py index f06ed4c2..804240bb 100644 --- a/vsts/vsts/graph/v4_1/graph_client.py +++ b/azure-devops/azure/devops/v4_1/graph/graph_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class GraphClient(VssClient): +class GraphClient(Client): """Graph :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/graph/models.py b/azure-devops/azure/devops/v4_1/graph/models.py new file mode 100644 index 00000000..109829f7 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/graph/models.py @@ -0,0 +1,716 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphCachePolicies(Model): + """GraphCachePolicies. + + :param cache_size: Size of the cache + :type cache_size: int + """ + + _attribute_map = { + 'cache_size': {'key': 'cacheSize', 'type': 'int'} + } + + def __init__(self, cache_size=None): + super(GraphCachePolicies, self).__init__() + self.cache_size = cache_size + + +class GraphDescriptorResult(Model): + """GraphDescriptorResult. + + :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. + :type _links: :class:`ReferenceLinks ` + :param value: + :type value: :class:`str ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, _links=None, value=None): + super(GraphDescriptorResult, self).__init__() + self._links = _links + self.value = value + + +class GraphGlobalExtendedPropertyBatch(Model): + """GraphGlobalExtendedPropertyBatch. + + :param property_name_filters: + :type property_name_filters: list of str + :param subject_descriptors: + :type subject_descriptors: list of :class:`str ` + """ + + _attribute_map = { + 'property_name_filters': {'key': 'propertyNameFilters', 'type': '[str]'}, + 'subject_descriptors': {'key': 'subjectDescriptors', 'type': '[str]'} + } + + def __init__(self, property_name_filters=None, subject_descriptors=None): + super(GraphGlobalExtendedPropertyBatch, self).__init__() + self.property_name_filters = property_name_filters + self.subject_descriptors = subject_descriptors + + +class GraphGroupCreationContext(Model): + """GraphGroupCreationContext. + + :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created group + :type storage_key: str + """ + + _attribute_map = { + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, storage_key=None): + super(GraphGroupCreationContext, self).__init__() + self.storage_key = storage_key + + +class GraphMembership(Model): + """GraphMembership. + + :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. + :type _links: :class:`ReferenceLinks ` + :param container_descriptor: + :type container_descriptor: str + :param member_descriptor: + :type member_descriptor: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'container_descriptor': {'key': 'containerDescriptor', 'type': 'str'}, + 'member_descriptor': {'key': 'memberDescriptor', 'type': 'str'} + } + + def __init__(self, _links=None, container_descriptor=None, member_descriptor=None): + super(GraphMembership, self).__init__() + self._links = _links + self.container_descriptor = container_descriptor + self.member_descriptor = member_descriptor + + +class GraphMembershipState(Model): + """GraphMembershipState. + + :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. + :type _links: :class:`ReferenceLinks ` + :param active: When true, the membership is active + :type active: bool + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'active': {'key': 'active', 'type': 'bool'} + } + + def __init__(self, _links=None, active=None): + super(GraphMembershipState, self).__init__() + self._links = _links + self.active = active + + +class GraphMembershipTraversal(Model): + """GraphMembershipTraversal. + + :param incompleteness_reason: Reason why the subject could not be traversed completely + :type incompleteness_reason: str + :param is_complete: When true, the subject is traversed completely + :type is_complete: bool + :param subject_descriptor: The traversed subject descriptor + :type subject_descriptor: :class:`str ` + :param traversed_subject_ids: Subject descriptor ids of the traversed members + :type traversed_subject_ids: list of str + :param traversed_subjects: Subject descriptors of the traversed members + :type traversed_subjects: list of :class:`str ` + """ + + _attribute_map = { + 'incompleteness_reason': {'key': 'incompletenessReason', 'type': 'str'}, + 'is_complete': {'key': 'isComplete', 'type': 'bool'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'traversed_subject_ids': {'key': 'traversedSubjectIds', 'type': '[str]'}, + 'traversed_subjects': {'key': 'traversedSubjects', 'type': '[str]'} + } + + def __init__(self, incompleteness_reason=None, is_complete=None, subject_descriptor=None, traversed_subject_ids=None, traversed_subjects=None): + super(GraphMembershipTraversal, self).__init__() + self.incompleteness_reason = incompleteness_reason + self.is_complete = is_complete + self.subject_descriptor = subject_descriptor + self.traversed_subject_ids = traversed_subject_ids + self.traversed_subjects = traversed_subjects + + +class GraphScopeCreationContext(Model): + """GraphScopeCreationContext. + + :param admin_group_description: Set this field to override the default description of this scope's admin group. + :type admin_group_description: str + :param admin_group_name: All scopes have an Administrator Group that controls access to the contents of the scope. Set this field to use a non-default group name for that administrators group. + :type admin_group_name: str + :param creator_id: Set this optional field if this scope is created on behalf of a user other than the user making the request. This should be the Id of the user that is not the requester. + :type creator_id: str + :param name: The scope must be provided with a unique name within the parent scope. This means the created scope can have a parent or child with the same name, but no siblings with the same name. + :type name: str + :param scope_type: The type of scope being created. + :type scope_type: object + :param storage_key: An optional ID that uniquely represents the scope within it's parent scope. If this parameter is not provided, Vsts will generate on automatically. + :type storage_key: str + """ + + _attribute_map = { + 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, + 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, + 'creator_id': {'key': 'creatorId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, name=None, scope_type=None, storage_key=None): + super(GraphScopeCreationContext, self).__init__() + self.admin_group_description = admin_group_description + self.admin_group_name = admin_group_name + self.creator_id = creator_id + self.name = name + self.scope_type = scope_type + self.storage_key = storage_key + + +class GraphStorageKeyResult(Model): + """GraphStorageKeyResult. + + :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. + :type _links: :class:`ReferenceLinks ` + :param value: + :type value: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, _links=None, value=None): + super(GraphStorageKeyResult, self).__init__() + self._links = _links + self.value = value + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 GraphSubjectLookup(Model): + """GraphSubjectLookup. + + :param lookup_keys: + :type lookup_keys: list of :class:`GraphSubjectLookupKey ` + """ + + _attribute_map = { + 'lookup_keys': {'key': 'lookupKeys', 'type': '[GraphSubjectLookupKey]'} + } + + def __init__(self, lookup_keys=None): + super(GraphSubjectLookup, self).__init__() + self.lookup_keys = lookup_keys + + +class GraphSubjectLookupKey(Model): + """GraphSubjectLookupKey. + + :param descriptor: + :type descriptor: :class:`str ` + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'str'} + } + + def __init__(self, descriptor=None): + super(GraphSubjectLookupKey, self).__init__() + self.descriptor = descriptor + + +class GraphUserCreationContext(Model): + """GraphUserCreationContext. + + :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created user + :type storage_key: str + """ + + _attribute_map = { + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, storage_key=None): + super(GraphUserCreationContext, self).__init__() + self.storage_key = storage_key + + +class IdentityKeyMap(Model): + """IdentityKeyMap. + + :param cuid: + :type cuid: str + :param storage_key: + :type storage_key: str + :param subject_type: + :type subject_type: str + """ + + _attribute_map = { + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'storage_key': {'key': 'storageKey', 'type': 'str'}, + 'subject_type': {'key': 'subjectType', 'type': 'str'} + } + + def __init__(self, cuid=None, storage_key=None, subject_type=None): + super(IdentityKeyMap, self).__init__() + self.cuid = cuid + self.storage_key = storage_key + self.subject_type = subject_type + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class PagedGraphGroups(Model): + """PagedGraphGroups. + + :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. + :type continuation_token: list of str + :param graph_groups: The enumerable list of groups found within a page. + :type graph_groups: list of :class:`GraphGroup ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'graph_groups': {'key': 'graphGroups', 'type': '[GraphGroup]'} + } + + def __init__(self, continuation_token=None, graph_groups=None): + super(PagedGraphGroups, self).__init__() + self.continuation_token = continuation_token + self.graph_groups = graph_groups + + +class PagedGraphUsers(Model): + """PagedGraphUsers. + + :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. + :type continuation_token: list of str + :param graph_users: The enumerable set of users found within a page. + :type graph_users: list of :class:`GraphUser ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'graph_users': {'key': 'graphUsers', 'type': '[GraphUser]'} + } + + def __init__(self, continuation_token=None, graph_users=None): + super(PagedGraphUsers, self).__init__() + self.continuation_token = continuation_token + self.graph_users = graph_users + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class GraphSubject(GraphSubjectBase): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): + super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) + self.legacy_descriptor = legacy_descriptor + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_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'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.cuid = cuid + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name + + +class GraphScope(GraphSubject): + """GraphScope. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param administrator_descriptor: The subject descriptor that references the administrators group for this scope. Only members of this group can change the contents of this scope or assign other users permissions to access this scope. + :type administrator_descriptor: str + :param is_global: When true, this scope is also a securing host for one or more scopes. + :type is_global: bool + :param parent_descriptor: The subject descriptor for the closest account or organization in the ancestor tree of this scope. + :type parent_descriptor: str + :param scope_type: The type of this scope. Typically ServiceHost or TeamProject. + :type scope_type: object + :param securing_host_descriptor: The subject descriptor for the containing organization in the ancestor tree of this scope. + :type securing_host_descriptor: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'administrator_descriptor': {'key': 'administratorDescriptor', 'type': 'str'}, + 'is_global': {'key': 'isGlobal', 'type': 'bool'}, + 'parent_descriptor': {'key': 'parentDescriptor', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'securing_host_descriptor': {'key': 'securingHostDescriptor', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, administrator_descriptor=None, is_global=None, parent_descriptor=None, scope_type=None, securing_host_descriptor=None): + super(GraphScope, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.administrator_descriptor = administrator_descriptor + self.is_global = is_global + self.parent_descriptor = parent_descriptor + self.scope_type = scope_type + self.securing_host_descriptor = securing_host_descriptor + + +class GraphUser(GraphMember): + """GraphUser. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. + :type meta_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'meta_type': {'key': 'metaType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.meta_type = meta_type + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + :param is_cross_project: + :type is_cross_project: bool + :param is_deleted: + :type is_deleted: bool + :param is_global_scope: + :type is_global_scope: bool + :param is_restricted_visible: + :type is_restricted_visible: bool + :param local_scope_id: + :type local_scope_id: str + :param scope_id: + :type scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: str + :param securing_host_id: + :type securing_host_id: str + :param special_type: + :type special_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, + 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'special_type': {'key': 'specialType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description + self.is_cross_project = is_cross_project + self.is_deleted = is_deleted + self.is_global_scope = is_global_scope + self.is_restricted_visible = is_restricted_visible + self.local_scope_id = local_scope_id + self.scope_id = scope_id + self.scope_name = scope_name + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.special_type = special_type + + +__all__ = [ + 'GraphCachePolicies', + 'GraphDescriptorResult', + 'GraphGlobalExtendedPropertyBatch', + 'GraphGroupCreationContext', + 'GraphMembership', + 'GraphMembershipState', + 'GraphMembershipTraversal', + 'GraphScopeCreationContext', + 'GraphStorageKeyResult', + 'GraphSubjectBase', + 'GraphSubjectLookup', + 'GraphSubjectLookupKey', + 'GraphUserCreationContext', + 'IdentityKeyMap', + 'JsonPatchOperation', + 'PagedGraphGroups', + 'PagedGraphUsers', + 'ReferenceLinks', + 'GraphSubject', + 'GraphMember', + 'GraphScope', + 'GraphUser', + 'GraphGroup', +] diff --git a/azure-devops/azure/devops/v4_1/identity/__init__.py b/azure-devops/azure/devops/v4_1/identity/__init__.py new file mode 100644 index 00000000..b6f5fd55 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/identity/__init__.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccessTokenResult', + 'AuthorizationGrant', + 'ChangedIdentities', + 'ChangedIdentitiesContext', + 'CreateScopeInfo', + 'FrameworkIdentityInfo', + 'GroupMembership', + 'Identity', + 'IdentityBase', + 'IdentityBatchInfo', + 'IdentityScope', + 'IdentitySelf', + 'IdentitySnapshot', + 'IdentityUpdateData', + 'JsonWebToken', + 'RefreshTokenGrant', + 'TenantInfo', +] diff --git a/vsts/vsts/identity/v4_1/identity_client.py b/azure-devops/azure/devops/v4_1/identity/identity_client.py similarity index 99% rename from vsts/vsts/identity/v4_1/identity_client.py rename to azure-devops/azure/devops/v4_1/identity/identity_client.py index af209d8a..066644a8 100644 --- a/vsts/vsts/identity/v4_1/identity_client.py +++ b/azure-devops/azure/devops/v4_1/identity/identity_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class IdentityClient(VssClient): +class IdentityClient(Client): """Identity :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/identity/models.py b/azure-devops/azure/devops/v4_1/identity/models.py new file mode 100644 index 00000000..8ab273c7 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/identity/models.py @@ -0,0 +1,574 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessTokenResult(Model): + """AccessTokenResult. + + :param access_token: + :type access_token: :class:`JsonWebToken ` + :param access_token_error: + :type access_token_error: object + :param authorization_id: + :type authorization_id: str + :param error_description: + :type error_description: str + :param has_error: + :type has_error: bool + :param refresh_token: + :type refresh_token: :class:`RefreshTokenGrant ` + :param token_type: + :type token_type: str + :param valid_to: + :type valid_to: datetime + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'JsonWebToken'}, + 'access_token_error': {'key': 'accessTokenError', 'type': 'object'}, + 'authorization_id': {'key': 'authorizationId', 'type': 'str'}, + 'error_description': {'key': 'errorDescription', 'type': 'str'}, + 'has_error': {'key': 'hasError', 'type': 'bool'}, + 'refresh_token': {'key': 'refreshToken', 'type': 'RefreshTokenGrant'}, + 'token_type': {'key': 'tokenType', 'type': 'str'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} + } + + def __init__(self, access_token=None, access_token_error=None, authorization_id=None, error_description=None, has_error=None, refresh_token=None, token_type=None, valid_to=None): + super(AccessTokenResult, self).__init__() + self.access_token = access_token + self.access_token_error = access_token_error + self.authorization_id = authorization_id + self.error_description = error_description + self.has_error = has_error + self.refresh_token = refresh_token + self.token_type = token_type + self.valid_to = valid_to + + +class AuthorizationGrant(Model): + """AuthorizationGrant. + + :param grant_type: + :type grant_type: object + """ + + _attribute_map = { + 'grant_type': {'key': 'grantType', 'type': 'object'} + } + + def __init__(self, grant_type=None): + super(AuthorizationGrant, self).__init__() + self.grant_type = grant_type + + +class ChangedIdentities(Model): + """ChangedIdentities. + + :param identities: Changed Identities + :type identities: list of :class:`Identity ` + :param sequence_context: Last Identity SequenceId + :type sequence_context: :class:`ChangedIdentitiesContext ` + """ + + _attribute_map = { + 'identities': {'key': 'identities', 'type': '[Identity]'}, + 'sequence_context': {'key': 'sequenceContext', 'type': 'ChangedIdentitiesContext'} + } + + def __init__(self, identities=None, sequence_context=None): + super(ChangedIdentities, self).__init__() + self.identities = identities + self.sequence_context = sequence_context + + +class ChangedIdentitiesContext(Model): + """ChangedIdentitiesContext. + + :param group_sequence_id: Last Group SequenceId + :type group_sequence_id: int + :param identity_sequence_id: Last Identity SequenceId + :type identity_sequence_id: int + """ + + _attribute_map = { + 'group_sequence_id': {'key': 'groupSequenceId', 'type': 'int'}, + 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'} + } + + def __init__(self, group_sequence_id=None, identity_sequence_id=None): + super(ChangedIdentitiesContext, self).__init__() + self.group_sequence_id = group_sequence_id + self.identity_sequence_id = identity_sequence_id + + +class CreateScopeInfo(Model): + """CreateScopeInfo. + + :param admin_group_description: + :type admin_group_description: str + :param admin_group_name: + :type admin_group_name: str + :param creator_id: + :type creator_id: str + :param parent_scope_id: + :type parent_scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: object + """ + + _attribute_map = { + 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, + 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, + 'creator_id': {'key': 'creatorId', 'type': 'str'}, + 'parent_scope_id': {'key': 'parentScopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'} + } + + def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, parent_scope_id=None, scope_name=None, scope_type=None): + super(CreateScopeInfo, self).__init__() + self.admin_group_description = admin_group_description + self.admin_group_name = admin_group_name + self.creator_id = creator_id + self.parent_scope_id = parent_scope_id + self.scope_name = scope_name + self.scope_type = scope_type + + +class FrameworkIdentityInfo(Model): + """FrameworkIdentityInfo. + + :param display_name: + :type display_name: str + :param identifier: + :type identifier: str + :param identity_type: + :type identity_type: object + :param role: + :type role: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'identity_type': {'key': 'identityType', 'type': 'object'}, + 'role': {'key': 'role', 'type': 'str'} + } + + def __init__(self, display_name=None, identifier=None, identity_type=None, role=None): + super(FrameworkIdentityInfo, self).__init__() + self.display_name = display_name + self.identifier = identifier + self.identity_type = identity_type + self.role = role + + +class GroupMembership(Model): + """GroupMembership. + + :param active: + :type active: bool + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param queried_id: + :type queried_id: str + """ + + _attribute_map = { + 'active': {'key': 'active', 'type': 'bool'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'queried_id': {'key': 'queriedId', 'type': 'str'} + } + + def __init__(self, active=None, descriptor=None, id=None, queried_id=None): + super(GroupMembership, self).__init__() + self.active = active + self.descriptor = descriptor + self.id = id + self.queried_id = queried_id + + +class IdentityBase(Model): + """IdentityBase. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(IdentityBase, self).__init__() + self.custom_display_name = custom_display_name + self.descriptor = descriptor + self.id = id + self.is_active = is_active + self.is_container = is_container + self.master_id = master_id + self.member_ids = member_ids + self.member_of = member_of + self.members = members + self.meta_type_id = meta_type_id + self.properties = properties + self.provider_display_name = provider_display_name + self.resource_version = resource_version + self.subject_descriptor = subject_descriptor + self.unique_user_id = unique_user_id + + +class IdentityBatchInfo(Model): + """IdentityBatchInfo. + + :param descriptors: + :type descriptors: list of :class:`str ` + :param identity_ids: + :type identity_ids: list of str + :param include_restricted_visibility: + :type include_restricted_visibility: bool + :param property_names: + :type property_names: list of str + :param query_membership: + :type query_membership: object + """ + + _attribute_map = { + 'descriptors': {'key': 'descriptors', 'type': '[str]'}, + 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, + 'include_restricted_visibility': {'key': 'includeRestrictedVisibility', 'type': 'bool'}, + 'property_names': {'key': 'propertyNames', 'type': '[str]'}, + 'query_membership': {'key': 'queryMembership', 'type': 'object'} + } + + def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None): + super(IdentityBatchInfo, self).__init__() + self.descriptors = descriptors + self.identity_ids = identity_ids + self.include_restricted_visibility = include_restricted_visibility + self.property_names = property_names + self.query_membership = query_membership + + +class IdentityScope(Model): + """IdentityScope. + + :param administrators: + :type administrators: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_global: + :type is_global: bool + :param local_scope_id: + :type local_scope_id: str + :param name: + :type name: str + :param parent_id: + :type parent_id: str + :param scope_type: + :type scope_type: object + :param securing_host_id: + :type securing_host_id: str + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + """ + + _attribute_map = { + 'administrators': {'key': 'administrators', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_global': {'key': 'isGlobal', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'} + } + + def __init__(self, administrators=None, id=None, is_active=None, is_global=None, local_scope_id=None, name=None, parent_id=None, scope_type=None, securing_host_id=None, subject_descriptor=None): + super(IdentityScope, self).__init__() + self.administrators = administrators + self.id = id + self.is_active = is_active + self.is_global = is_global + self.local_scope_id = local_scope_id + self.name = name + self.parent_id = parent_id + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.subject_descriptor = subject_descriptor + + +class IdentitySelf(Model): + """IdentitySelf. + + :param account_name: + :type account_name: str + :param display_name: + :type display_name: str + :param id: + :type id: str + :param tenants: + :type tenants: list of :class:`TenantInfo ` + """ + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'tenants': {'key': 'tenants', 'type': '[TenantInfo]'} + } + + def __init__(self, account_name=None, display_name=None, id=None, tenants=None): + super(IdentitySelf, self).__init__() + self.account_name = account_name + self.display_name = display_name + self.id = id + self.tenants = tenants + + +class IdentitySnapshot(Model): + """IdentitySnapshot. + + :param groups: + :type groups: list of :class:`Identity ` + :param identity_ids: + :type identity_ids: list of str + :param memberships: + :type memberships: list of :class:`GroupMembership ` + :param scope_id: + :type scope_id: str + :param scopes: + :type scopes: list of :class:`IdentityScope ` + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Identity]'}, + 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, + 'memberships': {'key': 'memberships', 'type': '[GroupMembership]'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[IdentityScope]'} + } + + def __init__(self, groups=None, identity_ids=None, memberships=None, scope_id=None, scopes=None): + super(IdentitySnapshot, self).__init__() + self.groups = groups + self.identity_ids = identity_ids + self.memberships = memberships + self.scope_id = scope_id + self.scopes = scopes + + +class IdentityUpdateData(Model): + """IdentityUpdateData. + + :param id: + :type id: str + :param index: + :type index: int + :param updated: + :type updated: bool + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'updated': {'key': 'updated', 'type': 'bool'} + } + + def __init__(self, id=None, index=None, updated=None): + super(IdentityUpdateData, self).__init__() + self.id = id + self.index = index + self.updated = updated + + +class JsonWebToken(Model): + """JsonWebToken. + + """ + + _attribute_map = { + } + + def __init__(self): + super(JsonWebToken, self).__init__() + + +class RefreshTokenGrant(AuthorizationGrant): + """RefreshTokenGrant. + + :param grant_type: + :type grant_type: object + :param jwt: + :type jwt: :class:`JsonWebToken ` + """ + + _attribute_map = { + 'grant_type': {'key': 'grantType', 'type': 'object'}, + 'jwt': {'key': 'jwt', 'type': 'JsonWebToken'} + } + + def __init__(self, grant_type=None, jwt=None): + super(RefreshTokenGrant, self).__init__(grant_type=grant_type) + self.jwt = jwt + + +class TenantInfo(Model): + """TenantInfo. + + :param home_tenant: + :type home_tenant: bool + :param tenant_id: + :type tenant_id: str + :param tenant_name: + :type tenant_name: str + """ + + _attribute_map = { + 'home_tenant': {'key': 'homeTenant', 'type': 'bool'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'tenant_name': {'key': 'tenantName', 'type': 'str'} + } + + def __init__(self, home_tenant=None, tenant_id=None, tenant_name=None): + super(TenantInfo, self).__init__() + self.home_tenant = home_tenant + self.tenant_id = tenant_id + self.tenant_name = tenant_name + + +class Identity(IdentityBase): + """Identity. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) + + +__all__ = [ + 'AccessTokenResult', + 'AuthorizationGrant', + 'ChangedIdentities', + 'ChangedIdentitiesContext', + 'CreateScopeInfo', + 'FrameworkIdentityInfo', + 'GroupMembership', + 'IdentityBase', + 'IdentityBatchInfo', + 'IdentityScope', + 'IdentitySelf', + 'IdentitySnapshot', + 'IdentityUpdateData', + 'JsonWebToken', + 'RefreshTokenGrant', + 'TenantInfo', + 'Identity', +] diff --git a/azure-devops/azure/devops/v4_1/licensing/__init__.py b/azure-devops/azure/devops/v4_1/licensing/__init__.py new file mode 100644 index 00000000..bd0af680 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/licensing/__init__.py @@ -0,0 +1,30 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccountEntitlement', + 'AccountEntitlementUpdateModel', + 'AccountLicenseExtensionUsage', + 'AccountLicenseUsage', + 'AccountRights', + 'AccountUserLicense', + 'ClientRightsContainer', + 'ExtensionAssignment', + 'ExtensionAssignmentDetails', + 'ExtensionLicenseData', + 'ExtensionOperationResult', + 'ExtensionRightsResult', + 'ExtensionSource', + 'GraphSubjectBase', + 'IdentityRef', + 'License', + 'MsdnEntitlement', + 'ReferenceLinks', +] diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/azure-devops/azure/devops/v4_1/licensing/licensing_client.py similarity index 99% rename from vsts/vsts/licensing/v4_1/licensing_client.py rename to azure-devops/azure/devops/v4_1/licensing/licensing_client.py index 526afdeb..cae35939 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/azure-devops/azure/devops/v4_1/licensing/licensing_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class LicensingClient(VssClient): +class LicensingClient(Client): """Licensing :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/licensing/models.py b/azure-devops/azure/devops/v4_1/licensing/models.py new file mode 100644 index 00000000..27385f2b --- /dev/null +++ b/azure-devops/azure/devops/v4_1/licensing/models.py @@ -0,0 +1,587 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountEntitlement(Model): + """AccountEntitlement. + + :param account_id: Gets or sets the id of the account to which the license belongs + :type account_id: str + :param assignment_date: Gets or sets the date the license was assigned + :type assignment_date: datetime + :param assignment_source: Assignment Source + :type assignment_source: object + :param last_accessed_date: Gets or sets the date of the user last sign-in to this account + :type last_accessed_date: datetime + :param license: + :type license: :class:`License ` + :param origin: Licensing origin + :type origin: object + :param rights: The computed rights of this user in the account. + :type rights: :class:`AccountRights ` + :param status: The status of the user in the account + :type status: object + :param user: Identity information of the user to which the license belongs + :type user: :class:`IdentityRef ` + :param user_id: Gets the id of the user to which the license belongs + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'license': {'key': 'license', 'type': 'License'}, + 'origin': {'key': 'origin', 'type': 'object'}, + 'rights': {'key': 'rights', 'type': 'AccountRights'}, + 'status': {'key': 'status', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, origin=None, rights=None, status=None, user=None, user_id=None): + super(AccountEntitlement, self).__init__() + self.account_id = account_id + self.assignment_date = assignment_date + self.assignment_source = assignment_source + self.last_accessed_date = last_accessed_date + self.license = license + self.origin = origin + self.rights = rights + self.status = status + self.user = user + self.user_id = user_id + + +class AccountEntitlementUpdateModel(Model): + """AccountEntitlementUpdateModel. + + :param license: Gets or sets the license for the entitlement + :type license: :class:`License ` + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'License'} + } + + def __init__(self, license=None): + super(AccountEntitlementUpdateModel, self).__init__() + self.license = license + + +class AccountLicenseExtensionUsage(Model): + """AccountLicenseExtensionUsage. + + :param extension_id: + :type extension_id: str + :param extension_name: + :type extension_name: str + :param included_quantity: + :type included_quantity: int + :param is_trial: + :type is_trial: bool + :param minimum_license_required: + :type minimum_license_required: object + :param msdn_used_count: + :type msdn_used_count: int + :param provisioned_count: + :type provisioned_count: int + :param remaining_trial_days: + :type remaining_trial_days: int + :param trial_expiry_date: + :type trial_expiry_date: datetime + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'is_trial': {'key': 'isTrial', 'type': 'bool'}, + 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, + 'msdn_used_count': {'key': 'msdnUsedCount', 'type': 'int'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, + 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, extension_id=None, extension_name=None, included_quantity=None, is_trial=None, minimum_license_required=None, msdn_used_count=None, provisioned_count=None, remaining_trial_days=None, trial_expiry_date=None, used_count=None): + super(AccountLicenseExtensionUsage, self).__init__() + self.extension_id = extension_id + self.extension_name = extension_name + self.included_quantity = included_quantity + self.is_trial = is_trial + self.minimum_license_required = minimum_license_required + self.msdn_used_count = msdn_used_count + self.provisioned_count = provisioned_count + self.remaining_trial_days = remaining_trial_days + self.trial_expiry_date = trial_expiry_date + self.used_count = used_count + + +class AccountLicenseUsage(Model): + """AccountLicenseUsage. + + :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) + :type disabled_count: int + :param license: + :type license: :class:`AccountUserLicense ` + :param pending_provisioned_count: Amount that will be purchased in the next billing cycle + :type pending_provisioned_count: int + :param provisioned_count: Amount that has been purchased + :type provisioned_count: int + :param used_count: Amount currently being used. + :type used_count: int + """ + + _attribute_map = { + 'disabled_count': {'key': 'disabledCount', 'type': 'int'}, + 'license': {'key': 'license', 'type': 'AccountUserLicense'}, + 'pending_provisioned_count': {'key': 'pendingProvisionedCount', 'type': 'int'}, + 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, disabled_count=None, license=None, pending_provisioned_count=None, provisioned_count=None, used_count=None): + super(AccountLicenseUsage, self).__init__() + self.disabled_count = disabled_count + self.license = license + self.pending_provisioned_count = pending_provisioned_count + self.provisioned_count = provisioned_count + self.used_count = used_count + + +class AccountRights(Model): + """AccountRights. + + :param level: + :type level: object + :param reason: + :type reason: str + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'str'} + } + + def __init__(self, level=None, reason=None): + super(AccountRights, self).__init__() + self.level = level + self.reason = reason + + +class AccountUserLicense(Model): + """AccountUserLicense. + + :param license: + :type license: int + :param source: + :type source: object + """ + + _attribute_map = { + 'license': {'key': 'license', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, license=None, source=None): + super(AccountUserLicense, self).__init__() + self.license = license + self.source = source + + +class ClientRightsContainer(Model): + """ClientRightsContainer. + + :param certificate_bytes: + :type certificate_bytes: str + :param token: + :type token: str + """ + + _attribute_map = { + 'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, certificate_bytes=None, token=None): + super(ClientRightsContainer, self).__init__() + self.certificate_bytes = certificate_bytes + self.token = token + + +class ExtensionAssignment(Model): + """ExtensionAssignment. + + :param extension_gallery_id: Gets or sets the extension ID to assign. + :type extension_gallery_id: str + :param is_auto_assignment: Set to true if this a auto assignment scenario. + :type is_auto_assignment: bool + :param licensing_source: Gets or sets the licensing source. + :type licensing_source: object + :param user_ids: Gets or sets the user IDs to assign the extension to. + :type user_ids: list of str + """ + + _attribute_map = { + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'is_auto_assignment': {'key': 'isAutoAssignment', 'type': 'bool'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'user_ids': {'key': 'userIds', 'type': '[str]'} + } + + def __init__(self, extension_gallery_id=None, is_auto_assignment=None, licensing_source=None, user_ids=None): + super(ExtensionAssignment, self).__init__() + self.extension_gallery_id = extension_gallery_id + self.is_auto_assignment = is_auto_assignment + self.licensing_source = licensing_source + self.user_ids = user_ids + + +class ExtensionAssignmentDetails(Model): + """ExtensionAssignmentDetails. + + :param assignment_status: + :type assignment_status: object + :param source_collection_name: + :type source_collection_name: str + """ + + _attribute_map = { + 'assignment_status': {'key': 'assignmentStatus', 'type': 'object'}, + 'source_collection_name': {'key': 'sourceCollectionName', 'type': 'str'} + } + + def __init__(self, assignment_status=None, source_collection_name=None): + super(ExtensionAssignmentDetails, self).__init__() + self.assignment_status = assignment_status + self.source_collection_name = source_collection_name + + +class ExtensionLicenseData(Model): + """ExtensionLicenseData. + + :param created_date: + :type created_date: datetime + :param extension_id: + :type extension_id: str + :param is_free: + :type is_free: bool + :param minimum_required_access_level: + :type minimum_required_access_level: object + :param updated_date: + :type updated_date: datetime + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'is_free': {'key': 'isFree', 'type': 'bool'}, + 'minimum_required_access_level': {'key': 'minimumRequiredAccessLevel', 'type': 'object'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} + } + + def __init__(self, created_date=None, extension_id=None, is_free=None, minimum_required_access_level=None, updated_date=None): + super(ExtensionLicenseData, self).__init__() + self.created_date = created_date + self.extension_id = extension_id + self.is_free = is_free + self.minimum_required_access_level = minimum_required_access_level + self.updated_date = updated_date + + +class ExtensionOperationResult(Model): + """ExtensionOperationResult. + + :param account_id: + :type account_id: str + :param extension_id: + :type extension_id: str + :param message: + :type message: str + :param operation: + :type operation: object + :param result: + :type result: object + :param user_id: + :type user_id: str + """ + + _attribute_map = { + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'result': {'key': 'result', 'type': 'object'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, account_id=None, extension_id=None, message=None, operation=None, result=None, user_id=None): + super(ExtensionOperationResult, self).__init__() + self.account_id = account_id + self.extension_id = extension_id + self.message = message + self.operation = operation + self.result = result + self.user_id = user_id + + +class ExtensionRightsResult(Model): + """ExtensionRightsResult. + + :param entitled_extensions: + :type entitled_extensions: list of str + :param host_id: + :type host_id: str + :param reason: + :type reason: str + :param reason_code: + :type reason_code: object + :param result_code: + :type result_code: object + """ + + _attribute_map = { + 'entitled_extensions': {'key': 'entitledExtensions', 'type': '[str]'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'reason_code': {'key': 'reasonCode', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'object'} + } + + def __init__(self, entitled_extensions=None, host_id=None, reason=None, reason_code=None, result_code=None): + super(ExtensionRightsResult, self).__init__() + self.entitled_extensions = entitled_extensions + self.host_id = host_id + self.reason = reason + self.reason_code = reason_code + self.result_code = result_code + + +class ExtensionSource(Model): + """ExtensionSource. + + :param assignment_source: Assignment Source + :type assignment_source: object + :param extension_gallery_id: extension Identifier + :type extension_gallery_id: str + :param licensing_source: The licensing source of the extension. Account, Msdn, ect. + :type licensing_source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'} + } + + def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_source=None): + super(ExtensionSource, self).__init__() + self.assignment_source = assignment_source + self.extension_gallery_id = extension_gallery_id + self.licensing_source = licensing_source + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class License(Model): + """License. + + :param source: Gets the source of the license + :type source: object + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, source=None): + super(License, self).__init__() + self.source = source + + +class MsdnEntitlement(Model): + """MsdnEntitlement. + + :param entitlement_code: Entilement id assigned to Entitlement in Benefits Database. + :type entitlement_code: str + :param entitlement_name: Entitlement Name e.g. Downloads, Chat. + :type entitlement_name: str + :param entitlement_type: Type of Entitlement e.g. Downloads, Chat. + :type entitlement_type: str + :param is_activated: Entitlement activation status + :type is_activated: bool + :param is_entitlement_available: Entitlement availability + :type is_entitlement_available: bool + :param subscription_channel: Write MSDN Channel into CRCT (Retail,MPN,VL,BizSpark,DreamSpark,MCT,FTE,Technet,WebsiteSpark,Other) + :type subscription_channel: str + :param subscription_expiration_date: Subscription Expiration Date. + :type subscription_expiration_date: datetime + :param subscription_id: Subscription id which identifies the subscription itself. This is the Benefit Detail Guid from BMS. + :type subscription_id: str + :param subscription_level_code: Identifier of the subscription or benefit level. + :type subscription_level_code: str + :param subscription_level_name: Name of subscription level. + :type subscription_level_name: str + :param subscription_status: Subscription Status Code (ACT, PND, INA ...). + :type subscription_status: str + """ + + _attribute_map = { + 'entitlement_code': {'key': 'entitlementCode', 'type': 'str'}, + 'entitlement_name': {'key': 'entitlementName', 'type': 'str'}, + 'entitlement_type': {'key': 'entitlementType', 'type': 'str'}, + 'is_activated': {'key': 'isActivated', 'type': 'bool'}, + 'is_entitlement_available': {'key': 'isEntitlementAvailable', 'type': 'bool'}, + 'subscription_channel': {'key': 'subscriptionChannel', 'type': 'str'}, + 'subscription_expiration_date': {'key': 'subscriptionExpirationDate', 'type': 'iso-8601'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_level_code': {'key': 'subscriptionLevelCode', 'type': 'str'}, + 'subscription_level_name': {'key': 'subscriptionLevelName', 'type': 'str'}, + 'subscription_status': {'key': 'subscriptionStatus', 'type': 'str'} + } + + def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_type=None, is_activated=None, is_entitlement_available=None, subscription_channel=None, subscription_expiration_date=None, subscription_id=None, subscription_level_code=None, subscription_level_name=None, subscription_status=None): + super(MsdnEntitlement, self).__init__() + self.entitlement_code = entitlement_code + self.entitlement_name = entitlement_name + self.entitlement_type = entitlement_type + self.is_activated = is_activated + self.is_entitlement_available = is_entitlement_available + self.subscription_channel = subscription_channel + self.subscription_expiration_date = subscription_expiration_date + self.subscription_id = subscription_id + self.subscription_level_code = subscription_level_code + self.subscription_level_name = subscription_level_name + self.subscription_status = subscription_status + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +__all__ = [ + 'AccountEntitlement', + 'AccountEntitlementUpdateModel', + 'AccountLicenseExtensionUsage', + 'AccountLicenseUsage', + 'AccountRights', + 'AccountUserLicense', + 'ClientRightsContainer', + 'ExtensionAssignment', + 'ExtensionAssignmentDetails', + 'ExtensionLicenseData', + 'ExtensionOperationResult', + 'ExtensionRightsResult', + 'ExtensionSource', + 'GraphSubjectBase', + 'IdentityRef', + 'License', + 'MsdnEntitlement', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v4_1/location/__init__.py b/azure-devops/azure/devops/v4_1/location/__init__.py new file mode 100644 index 00000000..f91eb827 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/location/__init__.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccessMapping', + 'ConnectionData', + 'Identity', + 'IdentityBase', + 'LocationMapping', + 'LocationServiceData', + 'ResourceAreaInfo', + 'ServiceDefinition', +] diff --git a/vsts/vsts/location/v4_1/location_client.py b/azure-devops/azure/devops/v4_1/location/location_client.py similarity index 99% rename from vsts/vsts/location/v4_1/location_client.py rename to azure-devops/azure/devops/v4_1/location/location_client.py index 53947550..5f3fe109 100644 --- a/vsts/vsts/location/v4_1/location_client.py +++ b/azure-devops/azure/devops/v4_1/location/location_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class LocationClient(VssClient): +class LocationClient(Client): """Location :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/location/models.py b/azure-devops/azure/devops/v4_1/location/models.py new file mode 100644 index 00000000..fb08dbd7 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/location/models.py @@ -0,0 +1,394 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessMapping(Model): + """AccessMapping. + + :param access_point: + :type access_point: str + :param display_name: + :type display_name: str + :param moniker: + :type moniker: str + :param service_owner: The service which owns this access mapping e.g. TFS, ELS, etc. + :type service_owner: str + :param virtual_directory: Part of the access mapping which applies context after the access point of the server. + :type virtual_directory: str + """ + + _attribute_map = { + 'access_point': {'key': 'accessPoint', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'moniker': {'key': 'moniker', 'type': 'str'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, + 'virtual_directory': {'key': 'virtualDirectory', 'type': 'str'} + } + + def __init__(self, access_point=None, display_name=None, moniker=None, service_owner=None, virtual_directory=None): + super(AccessMapping, self).__init__() + self.access_point = access_point + self.display_name = display_name + self.moniker = moniker + self.service_owner = service_owner + self.virtual_directory = virtual_directory + + +class ConnectionData(Model): + """ConnectionData. + + :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service + :type authenticated_user: :class:`Identity ` + :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service + :type authorized_user: :class:`Identity ` + :param deployment_id: The id for the server. + :type deployment_id: str + :param instance_id: The instance id for this host. + :type instance_id: str + :param last_user_access: The last user access for this instance. Null if not requested specifically. + :type last_user_access: datetime + :param location_service_data: Data that the location service holds. + :type location_service_data: :class:`LocationServiceData ` + :param web_application_relative_directory: The virtual directory of the host we are talking to. + :type web_application_relative_directory: str + """ + + _attribute_map = { + 'authenticated_user': {'key': 'authenticatedUser', 'type': 'Identity'}, + 'authorized_user': {'key': 'authorizedUser', 'type': 'Identity'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'str'}, + 'instance_id': {'key': 'instanceId', 'type': 'str'}, + 'last_user_access': {'key': 'lastUserAccess', 'type': 'iso-8601'}, + 'location_service_data': {'key': 'locationServiceData', 'type': 'LocationServiceData'}, + 'web_application_relative_directory': {'key': 'webApplicationRelativeDirectory', 'type': 'str'} + } + + def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): + super(ConnectionData, self).__init__() + self.authenticated_user = authenticated_user + self.authorized_user = authorized_user + self.deployment_id = deployment_id + self.instance_id = instance_id + self.last_user_access = last_user_access + self.location_service_data = location_service_data + self.web_application_relative_directory = web_application_relative_directory + + +class IdentityBase(Model): + """IdentityBase. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(IdentityBase, self).__init__() + self.custom_display_name = custom_display_name + self.descriptor = descriptor + self.id = id + self.is_active = is_active + self.is_container = is_container + self.master_id = master_id + self.member_ids = member_ids + self.member_of = member_of + self.members = members + self.meta_type_id = meta_type_id + self.properties = properties + self.provider_display_name = provider_display_name + self.resource_version = resource_version + self.subject_descriptor = subject_descriptor + self.unique_user_id = unique_user_id + + +class LocationMapping(Model): + """LocationMapping. + + :param access_mapping_moniker: + :type access_mapping_moniker: str + :param location: + :type location: str + """ + + _attribute_map = { + 'access_mapping_moniker': {'key': 'accessMappingMoniker', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, access_mapping_moniker=None, location=None): + super(LocationMapping, self).__init__() + self.access_mapping_moniker = access_mapping_moniker + self.location = location + + +class LocationServiceData(Model): + """LocationServiceData. + + :param access_mappings: Data about the access mappings contained by this location service. + :type access_mappings: list of :class:`AccessMapping ` + :param client_cache_fresh: Data that the location service holds. + :type client_cache_fresh: bool + :param client_cache_time_to_live: The time to live on the location service cache. + :type client_cache_time_to_live: int + :param default_access_mapping_moniker: The default access mapping moniker for the server. + :type default_access_mapping_moniker: str + :param last_change_id: The obsolete id for the last change that took place on the server (use LastChangeId64). + :type last_change_id: int + :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. + :type last_change_id64: long + :param service_definitions: Data about the service definitions contained by this location service. + :type service_definitions: list of :class:`ServiceDefinition ` + :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) + :type service_owner: str + """ + + _attribute_map = { + 'access_mappings': {'key': 'accessMappings', 'type': '[AccessMapping]'}, + 'client_cache_fresh': {'key': 'clientCacheFresh', 'type': 'bool'}, + 'client_cache_time_to_live': {'key': 'clientCacheTimeToLive', 'type': 'int'}, + 'default_access_mapping_moniker': {'key': 'defaultAccessMappingMoniker', 'type': 'str'}, + 'last_change_id': {'key': 'lastChangeId', 'type': 'int'}, + 'last_change_id64': {'key': 'lastChangeId64', 'type': 'long'}, + 'service_definitions': {'key': 'serviceDefinitions', 'type': '[ServiceDefinition]'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'} + } + + def __init__(self, access_mappings=None, client_cache_fresh=None, client_cache_time_to_live=None, default_access_mapping_moniker=None, last_change_id=None, last_change_id64=None, service_definitions=None, service_owner=None): + super(LocationServiceData, self).__init__() + self.access_mappings = access_mappings + self.client_cache_fresh = client_cache_fresh + self.client_cache_time_to_live = client_cache_time_to_live + self.default_access_mapping_moniker = default_access_mapping_moniker + self.last_change_id = last_change_id + self.last_change_id64 = last_change_id64 + self.service_definitions = service_definitions + self.service_owner = service_owner + + +class ResourceAreaInfo(Model): + """ResourceAreaInfo. + + :param id: + :type id: str + :param location_url: + :type location_url: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location_url': {'key': 'locationUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, location_url=None, name=None): + super(ResourceAreaInfo, self).__init__() + self.id = id + self.location_url = location_url + self.name = name + + +class ServiceDefinition(Model): + """ServiceDefinition. + + :param description: + :type description: str + :param display_name: + :type display_name: str + :param identifier: + :type identifier: str + :param inherit_level: + :type inherit_level: object + :param location_mappings: + :type location_mappings: list of :class:`LocationMapping ` + :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. + :type max_version: str + :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. + :type min_version: str + :param parent_identifier: + :type parent_identifier: str + :param parent_service_type: + :type parent_service_type: str + :param properties: + :type properties: :class:`object ` + :param relative_path: + :type relative_path: str + :param relative_to_setting: + :type relative_to_setting: object + :param released_version: The latest version of this resource location that is in "Release" (non-preview) mode. Copied from ApiResourceLocation. + :type released_version: str + :param resource_version: The current resource version supported by this resource location. Copied from ApiResourceLocation. + :type resource_version: int + :param service_owner: The service which owns this definition e.g. TFS, ELS, etc. + :type service_owner: str + :param service_type: + :type service_type: str + :param status: + :type status: object + :param tool_id: + :type tool_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'inherit_level': {'key': 'inheritLevel', 'type': 'object'}, + 'location_mappings': {'key': 'locationMappings', 'type': '[LocationMapping]'}, + 'max_version': {'key': 'maxVersion', 'type': 'str'}, + 'min_version': {'key': 'minVersion', 'type': 'str'}, + 'parent_identifier': {'key': 'parentIdentifier', 'type': 'str'}, + 'parent_service_type': {'key': 'parentServiceType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'}, + 'relative_to_setting': {'key': 'relativeToSetting', 'type': 'object'}, + 'released_version': {'key': 'releasedVersion', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, + 'service_type': {'key': 'serviceType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tool_id': {'key': 'toolId', 'type': 'str'} + } + + def __init__(self, description=None, display_name=None, identifier=None, inherit_level=None, location_mappings=None, max_version=None, min_version=None, parent_identifier=None, parent_service_type=None, properties=None, relative_path=None, relative_to_setting=None, released_version=None, resource_version=None, service_owner=None, service_type=None, status=None, tool_id=None): + super(ServiceDefinition, self).__init__() + self.description = description + self.display_name = display_name + self.identifier = identifier + self.inherit_level = inherit_level + self.location_mappings = location_mappings + self.max_version = max_version + self.min_version = min_version + self.parent_identifier = parent_identifier + self.parent_service_type = parent_service_type + self.properties = properties + self.relative_path = relative_path + self.relative_to_setting = relative_to_setting + self.released_version = released_version + self.resource_version = resource_version + self.service_owner = service_owner + self.service_type = service_type + self.status = status + self.tool_id = tool_id + + +class Identity(IdentityBase): + """Identity. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) + + +__all__ = [ + 'AccessMapping', + 'ConnectionData', + 'IdentityBase', + 'LocationMapping', + 'LocationServiceData', + 'ResourceAreaInfo', + 'ServiceDefinition', + 'Identity', +] diff --git a/azure-devops/azure/devops/v4_1/maven/__init__.py b/azure-devops/azure/devops/v4_1/maven/__init__.py new file mode 100644 index 00000000..5cd1516c --- /dev/null +++ b/azure-devops/azure/devops/v4_1/maven/__init__.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchOperationData', + 'MavenMinimalPackageDetails', + 'MavenPackage', + 'MavenPackagesBatchRequest', + 'MavenPackageVersionDeletionState', + 'MavenPomBuild', + 'MavenPomCi', + 'MavenPomCiNotifier', + 'MavenPomDependency', + 'MavenPomDependencyManagement', + 'MavenPomGav', + 'MavenPomIssueManagement', + 'MavenPomLicense', + 'MavenPomMailingList', + 'MavenPomMetadata', + 'MavenPomOrganization', + 'MavenPomParent', + 'MavenPomPerson', + 'MavenPomScm', + 'MavenRecycleBinPackageVersionDetails', + 'Package', + 'Plugin', + 'PluginConfiguration', + 'ReferenceLink', + 'ReferenceLinks', +] diff --git a/vsts/vsts/maven/v4_1/maven_client.py b/azure-devops/azure/devops/v4_1/maven/maven_client.py similarity index 97% rename from vsts/vsts/maven/v4_1/maven_client.py rename to azure-devops/azure/devops/v4_1/maven/maven_client.py index 7e92a6a6..e2a7f94d 100644 --- a/vsts/vsts/maven/v4_1/maven_client.py +++ b/azure-devops/azure/devops/v4_1/maven/maven_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class MavenClient(VssClient): +class MavenClient(Client): """Maven :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/maven/models.py b/azure-devops/azure/devops/v4_1/maven/models.py new file mode 100644 index 00000000..2b9b2581 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/maven/models.py @@ -0,0 +1,760 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class MavenMinimalPackageDetails(Model): + """MavenMinimalPackageDetails. + + :param artifact: Package artifact ID + :type artifact: str + :param group: Package group ID + :type group: str + :param version: Package version + :type version: str + """ + + _attribute_map = { + 'artifact': {'key': 'artifact', 'type': 'str'}, + 'group': {'key': 'group', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact=None, group=None, version=None): + super(MavenMinimalPackageDetails, self).__init__() + self.artifact = artifact + self.group = group + self.version = version + + +class MavenPackage(Model): + """MavenPackage. + + :param artifact_id: + :type artifact_id: str + :param artifact_index: + :type artifact_index: :class:`ReferenceLink ` + :param artifact_metadata: + :type artifact_metadata: :class:`ReferenceLink ` + :param deleted_date: + :type deleted_date: datetime + :param files: + :type files: :class:`ReferenceLinks ` + :param group_id: + :type group_id: str + :param pom: + :type pom: :class:`MavenPomMetadata ` + :param requested_file: + :type requested_file: :class:`ReferenceLink ` + :param snapshot_metadata: + :type snapshot_metadata: :class:`ReferenceLink ` + :param version: + :type version: str + :param versions: + :type versions: :class:`ReferenceLinks ` + :param versions_index: + :type versions_index: :class:`ReferenceLink ` + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'artifact_index': {'key': 'artifactIndex', 'type': 'ReferenceLink'}, + 'artifact_metadata': {'key': 'artifactMetadata', 'type': 'ReferenceLink'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'files': {'key': 'files', 'type': 'ReferenceLinks'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'pom': {'key': 'pom', 'type': 'MavenPomMetadata'}, + 'requested_file': {'key': 'requestedFile', 'type': 'ReferenceLink'}, + 'snapshot_metadata': {'key': 'snapshotMetadata', 'type': 'ReferenceLink'}, + 'version': {'key': 'version', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': 'ReferenceLinks'}, + 'versions_index': {'key': 'versionsIndex', 'type': 'ReferenceLink'} + } + + def __init__(self, artifact_id=None, artifact_index=None, artifact_metadata=None, deleted_date=None, files=None, group_id=None, pom=None, requested_file=None, snapshot_metadata=None, version=None, versions=None, versions_index=None): + super(MavenPackage, self).__init__() + self.artifact_id = artifact_id + self.artifact_index = artifact_index + self.artifact_metadata = artifact_metadata + self.deleted_date = deleted_date + self.files = files + self.group_id = group_id + self.pom = pom + self.requested_file = requested_file + self.snapshot_metadata = snapshot_metadata + self.version = version + self.versions = versions + self.versions_index = versions_index + + +class MavenPackagesBatchRequest(Model): + """MavenPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MavenMinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MavenMinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(MavenPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class MavenPackageVersionDeletionState(Model): + """MavenPackageVersionDeletionState. + + :param artifact_id: + :type artifact_id: str + :param deleted_date: + :type deleted_date: datetime + :param group_id: + :type group_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact_id=None, deleted_date=None, group_id=None, version=None): + super(MavenPackageVersionDeletionState, self).__init__() + self.artifact_id = artifact_id + self.deleted_date = deleted_date + self.group_id = group_id + self.version = version + + +class MavenPomBuild(Model): + """MavenPomBuild. + + :param plugins: + :type plugins: list of :class:`Plugin ` + """ + + _attribute_map = { + 'plugins': {'key': 'plugins', 'type': '[Plugin]'} + } + + def __init__(self, plugins=None): + super(MavenPomBuild, self).__init__() + self.plugins = plugins + + +class MavenPomCi(Model): + """MavenPomCi. + + :param notifiers: + :type notifiers: list of :class:`MavenPomCiNotifier ` + :param system: + :type system: str + :param url: + :type url: str + """ + + _attribute_map = { + 'notifiers': {'key': 'notifiers', 'type': '[MavenPomCiNotifier]'}, + 'system': {'key': 'system', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, notifiers=None, system=None, url=None): + super(MavenPomCi, self).__init__() + self.notifiers = notifiers + self.system = system + self.url = url + + +class MavenPomCiNotifier(Model): + """MavenPomCiNotifier. + + :param configuration: + :type configuration: list of str + :param send_on_error: + :type send_on_error: str + :param send_on_failure: + :type send_on_failure: str + :param send_on_success: + :type send_on_success: str + :param send_on_warning: + :type send_on_warning: str + :param type: + :type type: str + """ + + _attribute_map = { + 'configuration': {'key': 'configuration', 'type': '[str]'}, + 'send_on_error': {'key': 'sendOnError', 'type': 'str'}, + 'send_on_failure': {'key': 'sendOnFailure', 'type': 'str'}, + 'send_on_success': {'key': 'sendOnSuccess', 'type': 'str'}, + 'send_on_warning': {'key': 'sendOnWarning', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, configuration=None, send_on_error=None, send_on_failure=None, send_on_success=None, send_on_warning=None, type=None): + super(MavenPomCiNotifier, self).__init__() + self.configuration = configuration + self.send_on_error = send_on_error + self.send_on_failure = send_on_failure + self.send_on_success = send_on_success + self.send_on_warning = send_on_warning + self.type = type + + +class MavenPomDependencyManagement(Model): + """MavenPomDependencyManagement. + + :param dependencies: + :type dependencies: list of :class:`MavenPomDependency ` + """ + + _attribute_map = { + 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'} + } + + def __init__(self, dependencies=None): + super(MavenPomDependencyManagement, self).__init__() + self.dependencies = dependencies + + +class MavenPomGav(Model): + """MavenPomGav. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None): + super(MavenPomGav, self).__init__() + self.artifact_id = artifact_id + self.group_id = group_id + self.version = version + + +class MavenPomIssueManagement(Model): + """MavenPomIssueManagement. + + :param system: + :type system: str + :param url: + :type url: str + """ + + _attribute_map = { + 'system': {'key': 'system', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, system=None, url=None): + super(MavenPomIssueManagement, self).__init__() + self.system = system + self.url = url + + +class MavenPomMailingList(Model): + """MavenPomMailingList. + + :param archive: + :type archive: str + :param name: + :type name: str + :param other_archives: + :type other_archives: list of str + :param post: + :type post: str + :param subscribe: + :type subscribe: str + :param unsubscribe: + :type unsubscribe: str + """ + + _attribute_map = { + 'archive': {'key': 'archive', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'other_archives': {'key': 'otherArchives', 'type': '[str]'}, + 'post': {'key': 'post', 'type': 'str'}, + 'subscribe': {'key': 'subscribe', 'type': 'str'}, + 'unsubscribe': {'key': 'unsubscribe', 'type': 'str'} + } + + def __init__(self, archive=None, name=None, other_archives=None, post=None, subscribe=None, unsubscribe=None): + super(MavenPomMailingList, self).__init__() + self.archive = archive + self.name = name + self.other_archives = other_archives + self.post = post + self.subscribe = subscribe + self.unsubscribe = unsubscribe + + +class MavenPomMetadata(MavenPomGav): + """MavenPomMetadata. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param build: + :type build: :class:`MavenPomBuild ` + :param ci_management: + :type ci_management: :class:`MavenPomCi ` + :param contributors: + :type contributors: list of :class:`MavenPomPerson ` + :param dependencies: + :type dependencies: list of :class:`MavenPomDependency ` + :param dependency_management: + :type dependency_management: :class:`MavenPomDependencyManagement ` + :param description: + :type description: str + :param developers: + :type developers: list of :class:`MavenPomPerson ` + :param inception_year: + :type inception_year: str + :param issue_management: + :type issue_management: :class:`MavenPomIssueManagement ` + :param licenses: + :type licenses: list of :class:`MavenPomLicense ` + :param mailing_lists: + :type mailing_lists: list of :class:`MavenPomMailingList ` + :param model_version: + :type model_version: str + :param modules: + :type modules: list of str + :param name: + :type name: str + :param organization: + :type organization: :class:`MavenPomOrganization ` + :param packaging: + :type packaging: str + :param parent: + :type parent: :class:`MavenPomParent ` + :param prerequisites: + :type prerequisites: dict + :param properties: + :type properties: dict + :param scm: + :type scm: :class:`MavenPomScm ` + :param url: + :type url: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'build': {'key': 'build', 'type': 'MavenPomBuild'}, + 'ci_management': {'key': 'ciManagement', 'type': 'MavenPomCi'}, + 'contributors': {'key': 'contributors', 'type': '[MavenPomPerson]'}, + 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'}, + 'dependency_management': {'key': 'dependencyManagement', 'type': 'MavenPomDependencyManagement'}, + 'description': {'key': 'description', 'type': 'str'}, + 'developers': {'key': 'developers', 'type': '[MavenPomPerson]'}, + 'inception_year': {'key': 'inceptionYear', 'type': 'str'}, + 'issue_management': {'key': 'issueManagement', 'type': 'MavenPomIssueManagement'}, + 'licenses': {'key': 'licenses', 'type': '[MavenPomLicense]'}, + 'mailing_lists': {'key': 'mailingLists', 'type': '[MavenPomMailingList]'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[str]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'MavenPomOrganization'}, + 'packaging': {'key': 'packaging', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'MavenPomParent'}, + 'prerequisites': {'key': 'prerequisites', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'scm': {'key': 'scm', 'type': 'MavenPomScm'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, build=None, ci_management=None, contributors=None, dependencies=None, dependency_management=None, description=None, developers=None, inception_year=None, issue_management=None, licenses=None, mailing_lists=None, model_version=None, modules=None, name=None, organization=None, packaging=None, parent=None, prerequisites=None, properties=None, scm=None, url=None): + super(MavenPomMetadata, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.build = build + self.ci_management = ci_management + self.contributors = contributors + self.dependencies = dependencies + self.dependency_management = dependency_management + self.description = description + self.developers = developers + self.inception_year = inception_year + self.issue_management = issue_management + self.licenses = licenses + self.mailing_lists = mailing_lists + self.model_version = model_version + self.modules = modules + self.name = name + self.organization = organization + self.packaging = packaging + self.parent = parent + self.prerequisites = prerequisites + self.properties = properties + self.scm = scm + self.url = url + + +class MavenPomOrganization(Model): + """MavenPomOrganization. + + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(MavenPomOrganization, self).__init__() + self.name = name + self.url = url + + +class MavenPomParent(MavenPomGav): + """MavenPomParent. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param relative_path: + :type relative_path: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, relative_path=None): + super(MavenPomParent, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.relative_path = relative_path + + +class MavenPomPerson(Model): + """MavenPomPerson. + + :param email: + :type email: str + :param id: + :type id: str + :param name: + :type name: str + :param organization: + :type organization: str + :param organization_url: + :type organization_url: str + :param roles: + :type roles: list of str + :param timezone: + :type timezone: str + :param url: + :type url: str + """ + + _attribute_map = { + 'email': {'key': 'email', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'str'}, + 'organization_url': {'key': 'organizationUrl', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'timezone': {'key': 'timezone', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, email=None, id=None, name=None, organization=None, organization_url=None, roles=None, timezone=None, url=None): + super(MavenPomPerson, self).__init__() + self.email = email + self.id = id + self.name = name + self.organization = organization + self.organization_url = organization_url + self.roles = roles + self.timezone = timezone + self.url = url + + +class MavenPomScm(Model): + """MavenPomScm. + + :param connection: + :type connection: str + :param developer_connection: + :type developer_connection: str + :param tag: + :type tag: str + :param url: + :type url: str + """ + + _attribute_map = { + 'connection': {'key': 'connection', 'type': 'str'}, + 'developer_connection': {'key': 'developerConnection', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, connection=None, developer_connection=None, tag=None, url=None): + super(MavenPomScm, self).__init__() + self.connection = connection + self.developer_connection = developer_connection + self.tag = tag + self.url = url + + +class MavenRecycleBinPackageVersionDetails(Model): + """MavenRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(MavenRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted + :type deleted_date: datetime + :param id: + :type id: str + :param name: The display name of the package + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version + + +class Plugin(MavenPomGav): + """Plugin. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param configuration: + :type configuration: :class:`PluginConfiguration ` + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'PluginConfiguration'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, configuration=None): + super(Plugin, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.configuration = configuration + + +class PluginConfiguration(Model): + """PluginConfiguration. + + :param goal_prefix: + :type goal_prefix: str + """ + + _attribute_map = { + 'goal_prefix': {'key': 'goalPrefix', 'type': 'str'} + } + + def __init__(self, goal_prefix=None): + super(PluginConfiguration, self).__init__() + self.goal_prefix = goal_prefix + + +class ReferenceLink(Model): + """ReferenceLink. + + :param href: + :type href: str + """ + + _attribute_map = { + 'href': {'key': 'href', 'type': 'str'} + } + + def __init__(self, href=None): + super(ReferenceLink, self).__init__() + self.href = href + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class MavenPomDependency(MavenPomGav): + """MavenPomDependency. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param optional: + :type optional: bool + :param scope: + :type scope: str + :param type: + :type type: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'optional': {'key': 'optional', 'type': 'bool'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, optional=None, scope=None, type=None): + super(MavenPomDependency, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.optional = optional + self.scope = scope + self.type = type + + +class MavenPomLicense(MavenPomOrganization): + """MavenPomLicense. + + :param name: + :type name: str + :param url: + :type url: str + :param distribution: + :type distribution: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'distribution': {'key': 'distribution', 'type': 'str'} + } + + def __init__(self, name=None, url=None, distribution=None): + super(MavenPomLicense, self).__init__(name=name, url=url) + self.distribution = distribution + + +__all__ = [ + 'BatchOperationData', + 'MavenMinimalPackageDetails', + 'MavenPackage', + 'MavenPackagesBatchRequest', + 'MavenPackageVersionDeletionState', + 'MavenPomBuild', + 'MavenPomCi', + 'MavenPomCiNotifier', + 'MavenPomDependencyManagement', + 'MavenPomGav', + 'MavenPomIssueManagement', + 'MavenPomMailingList', + 'MavenPomMetadata', + 'MavenPomOrganization', + 'MavenPomParent', + 'MavenPomPerson', + 'MavenPomScm', + 'MavenRecycleBinPackageVersionDetails', + 'Package', + 'Plugin', + 'PluginConfiguration', + 'ReferenceLink', + 'ReferenceLinks', + 'MavenPomDependency', + 'MavenPomLicense', +] diff --git a/azure-devops/azure/devops/v4_1/member_entitlement_management/__init__.py b/azure-devops/azure/devops/v4_1/member_entitlement_management/__init__.py new file mode 100644 index 00000000..dfe3ad6d --- /dev/null +++ b/azure-devops/azure/devops/v4_1/member_entitlement_management/__init__.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccessLevel', + 'BaseOperationResult', + 'Extension', + 'ExtensionSummaryData', + 'GraphGroup', + 'GraphMember', + 'GraphSubject', + 'GraphSubjectBase', + 'GraphUser', + 'Group', + 'GroupEntitlement', + 'GroupEntitlementOperationReference', + 'GroupOperationResult', + 'GroupOption', + 'JsonPatchOperation', + 'LicenseSummaryData', + 'MemberEntitlement', + 'MemberEntitlementOperationReference', + 'MemberEntitlementsPatchResponse', + 'MemberEntitlementsPostResponse', + 'MemberEntitlementsResponseBase', + 'OperationReference', + 'OperationResult', + 'PagedGraphMemberList', + 'ProjectEntitlement', + 'ProjectRef', + 'ReferenceLinks', + 'SummaryData', + 'TeamRef', + 'UserEntitlement', + 'UserEntitlementOperationReference', + 'UserEntitlementOperationResult', + 'UserEntitlementsPatchResponse', + 'UserEntitlementsPostResponse', + 'UserEntitlementsResponseBase', + 'UsersSummary', +] diff --git a/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py b/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py similarity index 99% rename from vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py rename to azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py index 95425ec7..ad5cc5ee 100644 --- a/vsts/vsts/member_entitlement_management/v4_1/member_entitlement_management_client.py +++ b/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class MemberEntitlementManagementClient(VssClient): +class MemberEntitlementManagementClient(Client): """MemberEntitlementManagement :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py b/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py new file mode 100644 index 00000000..74f9472e --- /dev/null +++ b/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py @@ -0,0 +1,1212 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessLevel(Model): + """AccessLevel. + + :param account_license_type: Type of Account License (e.g. Express, Stakeholder etc.) + :type account_license_type: object + :param assignment_source: Assignment Source of the License (e.g. Group, Unknown etc. + :type assignment_source: object + :param license_display_name: Display name of the License + :type license_display_name: str + :param licensing_source: Licensing Source (e.g. Account. MSDN etc.) + :type licensing_source: object + :param msdn_license_type: Type of MSDN License (e.g. Visual Studio Professional, Visual Studio Enterprise etc.) + :type msdn_license_type: object + :param status: User status in the account + :type status: object + :param status_message: Status message. + :type status_message: str + """ + + _attribute_map = { + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'} + } + + def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): + super(AccessLevel, self).__init__() + self.account_license_type = account_license_type + self.assignment_source = assignment_source + self.license_display_name = license_display_name + self.licensing_source = licensing_source + self.msdn_license_type = msdn_license_type + self.status = status + self.status_message = status_message + + +class BaseOperationResult(Model): + """BaseOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'} + } + + def __init__(self, errors=None, is_success=None): + super(BaseOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + + +class Extension(Model): + """Extension. + + :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule. + :type assignment_source: object + :param id: Gallery Id of the Extension. + :type id: str + :param name: Friendly name of this extension. + :type name: str + :param source: Source of this extension assignment. Ex: msdn, account, none, etc. + :type source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, assignment_source=None, id=None, name=None, source=None): + super(Extension, self).__init__() + self.assignment_source = assignment_source + self.id = id + self.name = name + self.source = source + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 Group(Model): + """Group. + + :param display_name: Display Name of the Group + :type display_name: str + :param group_type: Group Type + :type group_type: object + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'group_type': {'key': 'groupType', 'type': 'object'} + } + + def __init__(self, display_name=None, group_type=None): + super(Group, self).__init__() + self.display_name = display_name + self.group_type = group_type + + +class GroupEntitlement(Model): + """GroupEntitlement. + + :param extension_rules: Extension Rules. + :type extension_rules: list of :class:`Extension ` + :param group: Member reference. + :type group: :class:`GraphGroup ` + :param id: The unique identifier which matches the Id of the GraphMember. + :type id: str + :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). + :type last_executed: datetime + :param license_rule: License Rule. + :type license_rule: :class:`AccessLevel ` + :param members: Group members. Only used when creating a new group. + :type members: list of :class:`UserEntitlement ` + :param project_entitlements: Relation between a project and the member's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param status: The status of the group rule. + :type status: object + """ + + _attribute_map = { + 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, + 'group': {'key': 'group', 'type': 'GraphGroup'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_executed': {'key': 'lastExecuted', 'type': 'iso-8601'}, + 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, + 'members': {'key': 'members', 'type': '[UserEntitlement]'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, extension_rules=None, group=None, id=None, last_executed=None, license_rule=None, members=None, project_entitlements=None, status=None): + super(GroupEntitlement, self).__init__() + self.extension_rules = extension_rules + self.group = group + self.id = id + self.last_executed = last_executed + self.license_rule = license_rule + self.members = members + self.project_entitlements = project_entitlements + self.status = status + + +class GroupOperationResult(BaseOperationResult): + """GroupOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + :param group_id: Identifier of the Group being acted upon + :type group_id: str + :param result: Result of the Groupentitlement after the operation + :type result: :class:`GroupEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'GroupEntitlement'} + } + + def __init__(self, errors=None, is_success=None, group_id=None, result=None): + super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) + self.group_id = group_id + self.result = result + + +class GroupOption(Model): + """GroupOption. + + :param access_level: Access Level + :type access_level: :class:`AccessLevel ` + :param group: Group + :type group: :class:`Group ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'group': {'key': 'group', 'type': 'Group'} + } + + def __init__(self, access_level=None, group=None): + super(GroupOption, self).__init__() + self.access_level = access_level + self.group = group + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MemberEntitlementsResponseBase(Model): + """MemberEntitlementsResponseBase. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} + } + + def __init__(self, is_success=None, member_entitlement=None): + super(MemberEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.member_entitlement = member_entitlement + + +class OperationReference(Model): + """OperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.plugin_id = plugin_id + self.status = status + self.url = url + + +class OperationResult(Model): + """OperationResult. + + :param errors: List of error codes paired with their corresponding error messages. + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation. + :type is_success: bool + :param member_id: Identifier of the Member being acted upon. + :type member_id: str + :param result: Result of the MemberEntitlement after the operation. + :type result: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_id': {'key': 'memberId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'MemberEntitlement'} + } + + def __init__(self, errors=None, is_success=None, member_id=None, result=None): + super(OperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.member_id = member_id + self.result = result + + +class PagedGraphMemberList(Model): + """PagedGraphMemberList. + + :param continuation_token: + :type continuation_token: str + :param members: + :type members: list of :class:`UserEntitlement ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'members': {'key': 'members', 'type': '[UserEntitlement]'} + } + + def __init__(self, continuation_token=None, members=None): + super(PagedGraphMemberList, self).__init__() + self.continuation_token = continuation_token + self.members = members + + +class ProjectEntitlement(Model): + """ProjectEntitlement. + + :param assignment_source: Assignment Source (e.g. Group or Unknown). + :type assignment_source: object + :param group: Project Group (e.g. Contributor, Reader etc.) + :type group: :class:`Group ` + :param is_project_permission_inherited: Whether the user is inheriting permissions to a project through a VSTS or AAD group membership. + :type is_project_permission_inherited: bool + :param project_ref: Project Ref + :type project_ref: :class:`ProjectRef ` + :param team_refs: Team Ref. + :type team_refs: list of :class:`TeamRef ` + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'group': {'key': 'group', 'type': 'Group'}, + 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, + 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, + 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} + } + + def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_ref=None, team_refs=None): + super(ProjectEntitlement, self).__init__() + self.assignment_source = assignment_source + self.group = group + self.is_project_permission_inherited = is_project_permission_inherited + self.project_ref = project_ref + self.team_refs = team_refs + + +class ProjectRef(Model): + """ProjectRef. + + :param id: Project ID. + :type id: str + :param name: Project Name. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectRef, self).__init__() + self.id = id + self.name = name + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class SummaryData(Model): + """SummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None): + super(SummaryData, self).__init__() + self.assigned = assigned + self.available = available + self.included_quantity = included_quantity + self.total = total + + +class TeamRef(Model): + """TeamRef. + + :param id: Team ID + :type id: str + :param name: Team Name + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(TeamRef, self).__init__() + self.id = id + self.name = name + + +class UserEntitlement(Model): + """UserEntitlement. + + :param access_level: User's access level denoted by a license. + :type access_level: :class:`AccessLevel ` + :param extensions: User's extensions. + :type extensions: list of :class:`Extension ` + :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. + :type id: str + :param last_accessed_date: [Readonly] Date the user last accessed the collection. + :type last_accessed_date: datetime + :param project_entitlements: Relation between a project and the user's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param user: User reference. + :type user: :class:`GraphUser ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'user': {'key': 'user', 'type': 'GraphUser'} + } + + def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None): + super(UserEntitlement, self).__init__() + self.access_level = access_level + self.extensions = extensions + self.group_assignments = group_assignments + self.id = id + self.last_accessed_date = last_accessed_date + self.project_entitlements = project_entitlements + self.user = user + + +class UserEntitlementOperationReference(OperationReference): + """UserEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure. + :type completed: bool + :param have_results_succeeded: True if all operations were successful. + :type have_results_succeeded: bool + :param results: List of results for each operation. + :type results: list of :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[UserEntitlementOperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(UserEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class UserEntitlementOperationResult(Model): + """UserEntitlementOperationResult. + + :param errors: List of error codes paired with their corresponding error messages. + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation. + :type is_success: bool + :param result: Result of the MemberEntitlement after the operation. + :type result: :class:`UserEntitlement ` + :param user_id: Identifier of the Member being acted upon. + :type user_id: str + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'result': {'key': 'result', 'type': 'UserEntitlement'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, errors=None, is_success=None, result=None, user_id=None): + super(UserEntitlementOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.result = result + self.user_id = user_id + + +class UserEntitlementsResponseBase(Model): + """UserEntitlementsResponseBase. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'} + } + + def __init__(self, is_success=None, user_entitlement=None): + super(UserEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.user_entitlement = user_entitlement + + +class UsersSummary(Model): + """UsersSummary. + + :param available_access_levels: Available Access Levels. + :type available_access_levels: list of :class:`AccessLevel ` + :param extensions: Summary of Extensions in the account. + :type extensions: list of :class:`ExtensionSummaryData ` + :param group_options: Group Options. + :type group_options: list of :class:`GroupOption ` + :param licenses: Summary of Licenses in the Account. + :type licenses: list of :class:`LicenseSummaryData ` + :param project_refs: Summary of Projects in the Account. + :type project_refs: list of :class:`ProjectRef ` + """ + + _attribute_map = { + 'available_access_levels': {'key': 'availableAccessLevels', 'type': '[AccessLevel]'}, + 'extensions': {'key': 'extensions', 'type': '[ExtensionSummaryData]'}, + 'group_options': {'key': 'groupOptions', 'type': '[GroupOption]'}, + 'licenses': {'key': 'licenses', 'type': '[LicenseSummaryData]'}, + 'project_refs': {'key': 'projectRefs', 'type': '[ProjectRef]'} + } + + def __init__(self, available_access_levels=None, extensions=None, group_options=None, licenses=None, project_refs=None): + super(UsersSummary, self).__init__() + self.available_access_levels = available_access_levels + self.extensions = extensions + self.group_options = group_options + self.licenses = licenses + self.project_refs = project_refs + + +class ExtensionSummaryData(SummaryData): + """ExtensionSummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + :param assigned_through_subscription: Count of Extension Licenses assigned to users through msdn. + :type assigned_through_subscription: int + :param extension_id: Gallery Id of the Extension + :type extension_id: str + :param extension_name: Friendly name of this extension + :type extension_name: str + :param is_trial_version: Whether its a Trial Version. + :type is_trial_version: bool + :param minimum_license_required: Minimum License Required for the Extension. + :type minimum_license_required: object + :param remaining_trial_days: Days remaining for the Trial to expire. + :type remaining_trial_days: int + :param trial_expiry_date: Date on which the Trial expires. + :type trial_expiry_date: datetime + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'assigned_through_subscription': {'key': 'assignedThroughSubscription', 'type': 'int'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'is_trial_version': {'key': 'isTrialVersion', 'type': 'bool'}, + 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, + 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, + 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None, assigned_through_subscription=None, extension_id=None, extension_name=None, is_trial_version=None, minimum_license_required=None, remaining_trial_days=None, trial_expiry_date=None): + super(ExtensionSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) + self.assigned_through_subscription = assigned_through_subscription + self.extension_id = extension_id + self.extension_name = extension_name + self.is_trial_version = is_trial_version + self.minimum_license_required = minimum_license_required + self.remaining_trial_days = remaining_trial_days + self.trial_expiry_date = trial_expiry_date + + +class GraphSubject(GraphSubjectBase): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): + super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) + self.legacy_descriptor = legacy_descriptor + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind + + +class GroupEntitlementOperationReference(OperationReference): + """GroupEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure. + :type completed: bool + :param have_results_succeeded: True if all operations were successful. + :type have_results_succeeded: bool + :param results: List of results for each operation. + :type results: list of :class:`GroupOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[GroupOperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(GroupEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class LicenseSummaryData(SummaryData): + """LicenseSummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + :param account_license_type: Type of Account License. + :type account_license_type: object + :param disabled: Count of Disabled Licenses. + :type disabled: int + :param is_purchasable: Designates if this license quantity can be changed through purchase + :type is_purchasable: bool + :param license_name: Name of the License. + :type license_name: str + :param msdn_license_type: Type of MSDN License. + :type msdn_license_type: object + :param next_billing_date: Specifies the date when billing will charge for paid licenses + :type next_billing_date: datetime + :param source: Source of the License. + :type source: object + :param total_after_next_billing_date: Total license count after next billing cycle + :type total_after_next_billing_date: int + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'disabled': {'key': 'disabled', 'type': 'int'}, + 'is_purchasable': {'key': 'isPurchasable', 'type': 'bool'}, + 'license_name': {'key': 'licenseName', 'type': 'str'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'next_billing_date': {'key': 'nextBillingDate', 'type': 'iso-8601'}, + 'source': {'key': 'source', 'type': 'object'}, + 'total_after_next_billing_date': {'key': 'totalAfterNextBillingDate', 'type': 'int'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None, account_license_type=None, disabled=None, is_purchasable=None, license_name=None, msdn_license_type=None, next_billing_date=None, source=None, total_after_next_billing_date=None): + super(LicenseSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) + self.account_license_type = account_license_type + self.disabled = disabled + self.is_purchasable = is_purchasable + self.license_name = license_name + self.msdn_license_type = msdn_license_type + self.next_billing_date = next_billing_date + self.source = source + self.total_after_next_billing_date = total_after_next_billing_date + + +class MemberEntitlement(UserEntitlement): + """MemberEntitlement. + + :param access_level: User's access level denoted by a license. + :type access_level: :class:`AccessLevel ` + :param extensions: User's extensions. + :type extensions: list of :class:`Extension ` + :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. + :type id: str + :param last_accessed_date: [Readonly] Date the user last accessed the collection. + :type last_accessed_date: datetime + :param project_entitlements: Relation between a project and the user's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param user: User reference. + :type user: :class:`GraphUser ` + :param member: Member reference + :type member: :class:`GraphMember ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'user': {'key': 'user', 'type': 'GraphUser'}, + 'member': {'key': 'member', 'type': 'GraphMember'} + } + + def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None, member=None): + super(MemberEntitlement, self).__init__(access_level=access_level, extensions=extensions, group_assignments=group_assignments, id=id, last_accessed_date=last_accessed_date, project_entitlements=project_entitlements, user=user) + self.member = member + + +class MemberEntitlementOperationReference(OperationReference): + """MemberEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure + :type completed: bool + :param have_results_succeeded: True if all operations were successful + :type have_results_succeeded: bool + :param results: List of results for each operation + :type results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[OperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(MemberEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPatchResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_results: List of results for each operation + :type operation_results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_results=None): + super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_results = operation_results + + +class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPostResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_result: Operation result + :type operation_result: :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_result=None): + super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_result = operation_result + + +class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): + """UserEntitlementsPatchResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + :param operation_results: List of results for each operation. + :type operation_results: list of :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[UserEntitlementOperationResult]'} + } + + def __init__(self, is_success=None, user_entitlement=None, operation_results=None): + super(UserEntitlementsPatchResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) + self.operation_results = operation_results + + +class UserEntitlementsPostResponse(UserEntitlementsResponseBase): + """UserEntitlementsPostResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + :param operation_result: Operation result. + :type operation_result: :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'UserEntitlementOperationResult'} + } + + def __init__(self, is_success=None, user_entitlement=None, operation_result=None): + super(UserEntitlementsPostResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) + self.operation_result = operation_result + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_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'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.cuid = cuid + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name + + +class GraphUser(GraphMember): + """GraphUser. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. + :type meta_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'meta_type': {'key': 'metaType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.meta_type = meta_type + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param cuid: The Consistently Unique Identifier of the subject + :type cuid: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + :param is_cross_project: + :type is_cross_project: bool + :param is_deleted: + :type is_deleted: bool + :param is_global_scope: + :type is_global_scope: bool + :param is_restricted_visible: + :type is_restricted_visible: bool + :param local_scope_id: + :type local_scope_id: str + :param scope_id: + :type scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: str + :param securing_host_id: + :type securing_host_id: str + :param special_type: + :type special_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'cuid': {'key': 'cuid', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, + 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'special_type': {'key': 'specialType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description + self.is_cross_project = is_cross_project + self.is_deleted = is_deleted + self.is_global_scope = is_global_scope + self.is_restricted_visible = is_restricted_visible + self.local_scope_id = local_scope_id + self.scope_id = scope_id + self.scope_name = scope_name + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.special_type = special_type + + +__all__ = [ + 'AccessLevel', + 'BaseOperationResult', + 'Extension', + 'GraphSubjectBase', + 'Group', + 'GroupEntitlement', + 'GroupOperationResult', + 'GroupOption', + 'JsonPatchOperation', + 'MemberEntitlementsResponseBase', + 'OperationReference', + 'OperationResult', + 'PagedGraphMemberList', + 'ProjectEntitlement', + 'ProjectRef', + 'ReferenceLinks', + 'SummaryData', + 'TeamRef', + 'UserEntitlement', + 'UserEntitlementOperationReference', + 'UserEntitlementOperationResult', + 'UserEntitlementsResponseBase', + 'UsersSummary', + 'ExtensionSummaryData', + 'GraphSubject', + 'GroupEntitlementOperationReference', + 'LicenseSummaryData', + 'MemberEntitlement', + 'MemberEntitlementOperationReference', + 'MemberEntitlementsPatchResponse', + 'MemberEntitlementsPostResponse', + 'UserEntitlementsPatchResponse', + 'UserEntitlementsPostResponse', + 'GraphMember', + 'GraphUser', + 'GraphGroup', +] diff --git a/azure-devops/azure/devops/v4_1/notification/__init__.py b/azure-devops/azure/devops/v4_1/notification/__init__.py new file mode 100644 index 00000000..f4fbe4b4 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/notification/__init__.py @@ -0,0 +1,70 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'ArtifactFilter', + 'BaseSubscriptionFilter', + 'BatchNotificationOperation', + 'EventActor', + 'EventScope', + 'EventsEvaluationResult', + 'ExpressionFilterClause', + 'ExpressionFilterGroup', + 'ExpressionFilterModel', + 'FieldInputValues', + 'FieldValuesQuery', + 'GraphSubjectBase', + 'IdentityRef', + 'INotificationDiagnosticLog', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'ISubscriptionChannel', + 'ISubscriptionFilter', + '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', +] diff --git a/azure-devops/azure/devops/v4_1/notification/models.py b/azure-devops/azure/devops/v4_1/notification/models.py new file mode 100644 index 00000000..2aa66c74 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/notification/models.py @@ -0,0 +1,1658 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BaseSubscriptionFilter(Model): + """BaseSubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(BaseSubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type + + +class BatchNotificationOperation(Model): + """BatchNotificationOperation. + + :param notification_operation: + :type notification_operation: object + :param notification_query_conditions: + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + """ + + _attribute_map = { + 'notification_operation': {'key': 'notificationOperation', 'type': 'object'}, + 'notification_query_conditions': {'key': 'notificationQueryConditions', 'type': '[NotificationQueryCondition]'} + } + + def __init__(self, notification_operation=None, notification_query_conditions=None): + super(BatchNotificationOperation, self).__init__() + self.notification_operation = notification_operation + self.notification_query_conditions = notification_query_conditions + + +class EventActor(Model): + """EventActor. + + :param id: Required: This is the identity of the user for the specified role. + :type id: str + :param role: Required: The event specific name of a role. + :type role: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'} + } + + def __init__(self, id=None, role=None): + super(EventActor, self).__init__() + self.id = id + self.role = role + + +class EventScope(Model): + """EventScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param name: Optional: The display name of the scope + :type name: str + :param type: Required: The event specific type of a scope. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None): + super(EventScope, self).__init__() + self.id = id + self.name = name + self.type = type + + +class EventsEvaluationResult(Model): + """EventsEvaluationResult. + + :param count: Count of events evaluated. + :type count: int + :param matched_count: Count of matched events. + :type matched_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'matched_count': {'key': 'matchedCount', 'type': 'int'} + } + + def __init__(self, count=None, matched_count=None): + super(EventsEvaluationResult, self).__init__() + self.count = count + self.matched_count = matched_count + + +class ExpressionFilterClause(Model): + """ExpressionFilterClause. + + :param field_name: + :type field_name: str + :param index: The order in which this clause appeared in the filter query + :type index: int + :param logical_operator: Logical Operator 'AND', 'OR' or NULL (only for the first clause in the filter) + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(ExpressionFilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value + + +class ExpressionFilterGroup(Model): + """ExpressionFilterGroup. + + :param end: The index of the last FilterClause in this group + :type end: int + :param level: Level of the group, since groups can be nested for each nested group the level will increase by 1 + :type level: int + :param start: The index of the first FilterClause in this group + :type start: int + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'int'}, + 'level': {'key': 'level', 'type': 'int'}, + 'start': {'key': 'start', 'type': 'int'} + } + + def __init__(self, end=None, level=None, start=None): + super(ExpressionFilterGroup, self).__init__() + self.end = end + self.level = level + self.start = start + + +class ExpressionFilterModel(Model): + """ExpressionFilterModel. + + :param clauses: Flat list of clauses in this subscription + :type clauses: list of :class:`ExpressionFilterClause ` + :param groups: Grouping of clauses in the subscription + :type groups: list of :class:`ExpressionFilterGroup ` + :param max_group_level: Max depth of the Subscription tree + :type max_group_level: int + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[ExpressionFilterClause]'}, + 'groups': {'key': 'groups', 'type': '[ExpressionFilterGroup]'}, + 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} + } + + def __init__(self, clauses=None, groups=None, max_group_level=None): + super(ExpressionFilterModel, self).__init__() + self.clauses = clauses + self.groups = groups + self.max_group_level = max_group_level + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class INotificationDiagnosticLog(Model): + """INotificationDiagnosticLog. + + :param activity_id: + :type activity_id: str + :param description: + :type description: str + :param end_time: + :type end_time: datetime + :param id: + :type id: str + :param log_type: + :type log_type: str + :param messages: + :type messages: list of :class:`NotificationDiagnosticLogMessage ` + :param properties: + :type properties: dict + :param source: + :type source: str + :param start_time: + :type start_time: datetime + """ + + _attribute_map = { + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'log_type': {'key': 'logType', 'type': 'str'}, + 'messages': {'key': 'messages', 'type': '[NotificationDiagnosticLogMessage]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'source': {'key': 'source', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, activity_id=None, description=None, end_time=None, id=None, log_type=None, messages=None, properties=None, source=None, start_time=None): + super(INotificationDiagnosticLog, self).__init__() + self.activity_id = activity_id + self.description = description + self.end_time = end_time + self.id = id + self.log_type = log_type + self.messages = messages + self.properties = properties + self.source = source + self.start_time = start_time + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class ISubscriptionChannel(Model): + """ISubscriptionChannel. + + :param type: + :type type: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, type=None): + super(ISubscriptionChannel, self).__init__() + self.type = type + + +class ISubscriptionFilter(Model): + """ISubscriptionFilter. + + :param event_type: + :type event_type: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, type=None): + super(ISubscriptionFilter, self).__init__() + self.event_type = event_type + self.type = type + + +class NotificationDiagnosticLogMessage(Model): + """NotificationDiagnosticLogMessage. + + :param level: Corresponds to .Net TraceLevel enumeration + :type level: int + :param message: + :type message: str + :param time: + :type time: object + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'object'} + } + + def __init__(self, level=None, message=None, time=None): + super(NotificationDiagnosticLogMessage, self).__init__() + self.level = level + self.message = message + self.time = time + + +class NotificationEventField(Model): + """NotificationEventField. + + :param field_type: Gets or sets the type of this field. + :type field_type: :class:`NotificationEventFieldType ` + :param id: Gets or sets the unique identifier of this field. + :type id: str + :param name: Gets or sets the name of this field. + :type name: str + :param path: Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML + :type path: str + :param supported_scopes: Gets or sets the scopes that this field supports. If not specified then the event type scopes apply. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'field_type': {'key': 'fieldType', 'type': 'NotificationEventFieldType'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, field_type=None, id=None, name=None, path=None, supported_scopes=None): + super(NotificationEventField, self).__init__() + self.field_type = field_type + self.id = id + self.name = name + self.path = path + self.supported_scopes = supported_scopes + + +class NotificationEventFieldOperator(Model): + """NotificationEventFieldOperator. + + :param display_name: Gets or sets the display name of an operator + :type display_name: str + :param id: Gets or sets the id of an operator + :type id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None): + super(NotificationEventFieldOperator, self).__init__() + self.display_name = display_name + self.id = id + + +class NotificationEventFieldType(Model): + """NotificationEventFieldType. + + :param id: Gets or sets the unique identifier of this field type. + :type id: str + :param operator_constraints: + :type operator_constraints: list of :class:`OperatorConstraint ` + :param operators: Gets or sets the list of operators that this type supports. + :type operators: list of :class:`NotificationEventFieldOperator ` + :param subscription_field_type: + :type subscription_field_type: object + :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI + :type value: :class:`ValueDefinition ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operator_constraints': {'key': 'operatorConstraints', 'type': '[OperatorConstraint]'}, + 'operators': {'key': 'operators', 'type': '[NotificationEventFieldOperator]'}, + 'subscription_field_type': {'key': 'subscriptionFieldType', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'ValueDefinition'} + } + + def __init__(self, id=None, operator_constraints=None, operators=None, subscription_field_type=None, value=None): + super(NotificationEventFieldType, self).__init__() + self.id = id + self.operator_constraints = operator_constraints + self.operators = operators + self.subscription_field_type = subscription_field_type + self.value = value + + +class NotificationEventPublisher(Model): + """NotificationEventPublisher. + + :param id: + :type id: str + :param subscription_management_info: + :type subscription_management_info: :class:`SubscriptionManagement ` + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_management_info': {'key': 'subscriptionManagementInfo', 'type': 'SubscriptionManagement'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, subscription_management_info=None, url=None): + super(NotificationEventPublisher, self).__init__() + self.id = id + self.subscription_management_info = subscription_management_info + self.url = url + + +class NotificationEventRole(Model): + """NotificationEventRole. + + :param id: Gets or sets an Id for that role, this id is used by the event. + :type id: str + :param name: Gets or sets the Name for that role, this name is used for UI display. + :type name: str + :param supports_groups: Gets or sets whether this role can be a group or just an individual user + :type supports_groups: bool + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supports_groups': {'key': 'supportsGroups', 'type': 'bool'} + } + + def __init__(self, id=None, name=None, supports_groups=None): + super(NotificationEventRole, self).__init__() + self.id = id + self.name = name + self.supports_groups = supports_groups + + +class NotificationEventType(Model): + """NotificationEventType. + + :param category: + :type category: :class:`NotificationEventTypeCategory ` + :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa + :type color: str + :param custom_subscriptions_allowed: + :type custom_subscriptions_allowed: bool + :param event_publisher: + :type event_publisher: :class:`NotificationEventPublisher ` + :param fields: + :type fields: dict + :param has_initiator: + :type has_initiator: bool + :param icon: Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class + :type icon: str + :param id: Gets or sets the unique identifier of this event definition. + :type id: str + :param name: Gets or sets the name of this event definition. + :type name: str + :param roles: + :type roles: list of :class:`NotificationEventRole ` + :param supported_scopes: Gets or sets the scopes that this event type supports + :type supported_scopes: list of str + :param url: Gets or sets the rest end point to get this event type details (fields, fields types) + :type url: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'NotificationEventTypeCategory'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom_subscriptions_allowed': {'key': 'customSubscriptionsAllowed', 'type': 'bool'}, + 'event_publisher': {'key': 'eventPublisher', 'type': 'NotificationEventPublisher'}, + 'fields': {'key': 'fields', 'type': '{NotificationEventField}'}, + 'has_initiator': {'key': 'hasInitiator', 'type': 'bool'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[NotificationEventRole]'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, category=None, color=None, custom_subscriptions_allowed=None, event_publisher=None, fields=None, has_initiator=None, icon=None, id=None, name=None, roles=None, supported_scopes=None, url=None): + super(NotificationEventType, self).__init__() + self.category = category + self.color = color + self.custom_subscriptions_allowed = custom_subscriptions_allowed + self.event_publisher = event_publisher + self.fields = fields + self.has_initiator = has_initiator + self.icon = icon + self.id = id + self.name = name + self.roles = roles + self.supported_scopes = supported_scopes + self.url = url + + +class NotificationEventTypeCategory(Model): + """NotificationEventTypeCategory. + + :param id: Gets or sets the unique identifier of this category. + :type id: str + :param name: Gets or sets the friendly name of this category. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(NotificationEventTypeCategory, self).__init__() + self.id = id + self.name = name + + +class NotificationQueryCondition(Model): + """NotificationQueryCondition. + + :param event_initiator: + :type event_initiator: str + :param event_type: + :type event_type: str + :param subscriber: + :type subscriber: str + :param subscription_id: + :type subscription_id: str + """ + + _attribute_map = { + 'event_initiator': {'key': 'eventInitiator', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, event_initiator=None, event_type=None, subscriber=None, subscription_id=None): + super(NotificationQueryCondition, self).__init__() + self.event_initiator = event_initiator + self.event_type = event_type + self.subscriber = subscriber + self.subscription_id = subscription_id + + +class NotificationReason(Model): + """NotificationReason. + + :param notification_reason_type: + :type notification_reason_type: object + :param target_identities: + :type target_identities: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'notification_reason_type': {'key': 'notificationReasonType', 'type': 'object'}, + 'target_identities': {'key': 'targetIdentities', 'type': '[IdentityRef]'} + } + + def __init__(self, notification_reason_type=None, target_identities=None): + super(NotificationReason, self).__init__() + self.notification_reason_type = notification_reason_type + self.target_identities = target_identities + + +class NotificationsEvaluationResult(Model): + """NotificationsEvaluationResult. + + :param count: Count of generated notifications + :type count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'} + } + + def __init__(self, count=None): + super(NotificationsEvaluationResult, self).__init__() + self.count = count + + +class NotificationStatistic(Model): + """NotificationStatistic. + + :param date: + :type date: datetime + :param hit_count: + :type hit_count: int + :param path: + :type path: str + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'hit_count': {'key': 'hitCount', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, date=None, hit_count=None, path=None, type=None, user=None): + super(NotificationStatistic, self).__init__() + self.date = date + self.hit_count = hit_count + self.path = path + self.type = type + self.user = user + + +class NotificationStatisticsQuery(Model): + """NotificationStatisticsQuery. + + :param conditions: + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[NotificationStatisticsQueryConditions]'} + } + + def __init__(self, conditions=None): + super(NotificationStatisticsQuery, self).__init__() + self.conditions = conditions + + +class NotificationStatisticsQueryConditions(Model): + """NotificationStatisticsQueryConditions. + + :param end_date: + :type end_date: datetime + :param hit_count_minimum: + :type hit_count_minimum: int + :param path: + :type path: str + :param start_date: + :type start_date: datetime + :param type: + :type type: object + :param user: + :type user: :class:`IdentityRef ` + """ + + _attribute_map = { + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'hit_count_minimum': {'key': 'hitCountMinimum', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'object'}, + 'user': {'key': 'user', 'type': 'IdentityRef'} + } + + def __init__(self, end_date=None, hit_count_minimum=None, path=None, start_date=None, type=None, user=None): + super(NotificationStatisticsQueryConditions, self).__init__() + self.end_date = end_date + self.hit_count_minimum = hit_count_minimum + self.path = path + self.start_date = start_date + self.type = type + self.user = user + + +class NotificationSubscriber(Model): + """NotificationSubscriber. + + :param delivery_preference: Indicates how the subscriber should be notified by default. + :type delivery_preference: object + :param flags: + :type flags: object + :param id: Identifier of the subscriber. + :type id: str + :param preferred_email_address: Preferred email address of the subscriber. A null or empty value indicates no preferred email address has been set. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, flags=None, id=None, preferred_email_address=None): + super(NotificationSubscriber, self).__init__() + self.delivery_preference = delivery_preference + self.flags = flags + self.id = id + self.preferred_email_address = preferred_email_address + + +class NotificationSubscriberUpdateParameters(Model): + """NotificationSubscriberUpdateParameters. + + :param delivery_preference: New delivery preference for the subscriber (indicates how the subscriber should be notified). + :type delivery_preference: object + :param preferred_email_address: New preferred email address for the subscriber. Specify an empty string to clear the current address. + :type preferred_email_address: str + """ + + _attribute_map = { + 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, + 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} + } + + def __init__(self, delivery_preference=None, preferred_email_address=None): + super(NotificationSubscriberUpdateParameters, self).__init__() + self.delivery_preference = delivery_preference + self.preferred_email_address = preferred_email_address + + +class NotificationSubscription(Model): + """NotificationSubscription. + + :param _links: Links to related resources, APIs, and views for the subscription. + :type _links: :class:`ReferenceLinks ` + :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param diagnostics: Diagnostics for this subscription. + :type diagnostics: :class:`SubscriptionDiagnostics ` + :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts + :type extended_properties: dict + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param flags: Read-only indicators that further describe the subscription. + :type flags: object + :param id: Subscription identifier. + :type id: str + :param last_modified_by: User that last modified (or created) the subscription. + :type last_modified_by: :class:`IdentityRef ` + :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. + :type modified_date: datetime + :param permissions: The permissions the user have for this subscriptions. + :type permissions: object + :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. + :type status: object + :param status_message: Message that provides more details about the status of the subscription. + :type status_message: str + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. + :type subscriber: :class:`IdentityRef ` + :param url: REST API URL of the subscriotion. + :type url: str + :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'SubscriptionDiagnostics'}, + 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'permissions': {'key': 'permissions', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, _links=None, admin_settings=None, channel=None, description=None, diagnostics=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): + super(NotificationSubscription, self).__init__() + self._links = _links + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.diagnostics = diagnostics + self.extended_properties = extended_properties + self.filter = filter + self.flags = flags + self.id = id + self.last_modified_by = last_modified_by + self.modified_date = modified_date + self.permissions = permissions + self.scope = scope + self.status = status + self.status_message = status_message + self.subscriber = subscriber + self.url = url + self.user_settings = user_settings + + +class NotificationSubscriptionCreateParameters(Model): + """NotificationSubscriptionCreateParameters. + + :param channel: Channel for delivering notifications triggered by the new subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the new subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscriber: :class:`IdentityRef ` + """ + + _attribute_map = { + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'} + } + + def __init__(self, channel=None, description=None, filter=None, scope=None, subscriber=None): + super(NotificationSubscriptionCreateParameters, self).__init__() + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.subscriber = subscriber + + +class NotificationSubscriptionTemplate(Model): + """NotificationSubscriptionTemplate. + + :param description: + :type description: str + :param filter: + :type filter: :class:`ISubscriptionFilter ` + :param id: + :type id: str + :param notification_event_information: + :type notification_event_information: :class:`NotificationEventType ` + :param type: + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notification_event_information': {'key': 'notificationEventInformation', 'type': 'NotificationEventType'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, filter=None, id=None, notification_event_information=None, type=None): + super(NotificationSubscriptionTemplate, self).__init__() + self.description = description + self.filter = filter + self.id = id + self.notification_event_information = notification_event_information + self.type = type + + +class NotificationSubscriptionUpdateParameters(Model): + """NotificationSubscriptionUpdateParameters. + + :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. + :type admin_settings: :class:`SubscriptionAdminSettings ` + :param channel: Channel for delivering notifications triggered by the subscription. + :type channel: :class:`ISubscriptionChannel ` + :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. + :type description: str + :param filter: Matching criteria for the subscription. ExpressionFilter + :type filter: :class:`ISubscriptionFilter ` + :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. + :type scope: :class:`SubscriptionScope ` + :param status: Updated status for the subscription. Typically used to enable or disable a subscription. + :type status: object + :param status_message: Optional message that provides more details about the updated status. + :type status_message: str + :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. + :type user_settings: :class:`SubscriptionUserSettings ` + """ + + _attribute_map = { + 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, + 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, + 'description': {'key': 'description', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} + } + + def __init__(self, admin_settings=None, channel=None, description=None, filter=None, scope=None, status=None, status_message=None, user_settings=None): + super(NotificationSubscriptionUpdateParameters, self).__init__() + self.admin_settings = admin_settings + self.channel = channel + self.description = description + self.filter = filter + self.scope = scope + self.status = status + self.status_message = status_message + self.user_settings = user_settings + + +class OperatorConstraint(Model): + """OperatorConstraint. + + :param operator: + :type operator: str + :param supported_scopes: Gets or sets the list of scopes that this type supports. + :type supported_scopes: list of str + """ + + _attribute_map = { + 'operator': {'key': 'operator', 'type': 'str'}, + 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} + } + + def __init__(self, operator=None, supported_scopes=None): + super(OperatorConstraint, self).__init__() + self.operator = operator + self.supported_scopes = supported_scopes + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class SubscriptionAdminSettings(Model): + """SubscriptionAdminSettings. + + :param block_user_opt_out: If true, members of the group subscribed to the associated subscription cannot opt (choose not to get notified) + :type block_user_opt_out: bool + """ + + _attribute_map = { + 'block_user_opt_out': {'key': 'blockUserOptOut', 'type': 'bool'} + } + + def __init__(self, block_user_opt_out=None): + super(SubscriptionAdminSettings, self).__init__() + self.block_user_opt_out = block_user_opt_out + + +class SubscriptionChannelWithAddress(Model): + """SubscriptionChannelWithAddress. + + :param address: + :type address: str + :param type: + :type type: str + :param use_custom_address: + :type use_custom_address: bool + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_custom_address': {'key': 'useCustomAddress', 'type': 'bool'} + } + + def __init__(self, address=None, type=None, use_custom_address=None): + super(SubscriptionChannelWithAddress, self).__init__() + self.address = address + self.type = type + self.use_custom_address = use_custom_address + + +class SubscriptionDiagnostics(Model): + """SubscriptionDiagnostics. + + :param delivery_results: + :type delivery_results: :class:`SubscriptionTracing ` + :param delivery_tracing: + :type delivery_tracing: :class:`SubscriptionTracing ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`SubscriptionTracing ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(SubscriptionDiagnostics, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + +class SubscriptionEvaluationRequest(Model): + """SubscriptionEvaluationRequest. + + :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date + :type min_events_created_date: datetime + :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + """ + + _attribute_map = { + 'min_events_created_date': {'key': 'minEventsCreatedDate', 'type': 'iso-8601'}, + 'subscription_create_parameters': {'key': 'subscriptionCreateParameters', 'type': 'NotificationSubscriptionCreateParameters'} + } + + def __init__(self, min_events_created_date=None, subscription_create_parameters=None): + super(SubscriptionEvaluationRequest, self).__init__() + self.min_events_created_date = min_events_created_date + self.subscription_create_parameters = subscription_create_parameters + + +class SubscriptionEvaluationResult(Model): + """SubscriptionEvaluationResult. + + :param evaluation_job_status: Subscription evaluation job status + :type evaluation_job_status: object + :param events: Subscription evaluation events results. + :type events: :class:`EventsEvaluationResult ` + :param id: The requestId which is the subscription evaluation jobId + :type id: str + :param notifications: Subscription evaluation notification results. + :type notifications: :class:`NotificationsEvaluationResult ` + """ + + _attribute_map = { + 'evaluation_job_status': {'key': 'evaluationJobStatus', 'type': 'object'}, + 'events': {'key': 'events', 'type': 'EventsEvaluationResult'}, + 'id': {'key': 'id', 'type': 'str'}, + 'notifications': {'key': 'notifications', 'type': 'NotificationsEvaluationResult'} + } + + def __init__(self, evaluation_job_status=None, events=None, id=None, notifications=None): + super(SubscriptionEvaluationResult, self).__init__() + self.evaluation_job_status = evaluation_job_status + self.events = events + self.id = id + self.notifications = notifications + + +class SubscriptionEvaluationSettings(Model): + """SubscriptionEvaluationSettings. + + :param enabled: Indicates whether subscription evaluation before saving is enabled or not + :type enabled: bool + :param interval: Time interval to check on subscription evaluation job in seconds + :type interval: int + :param threshold: Threshold on the number of notifications for considering a subscription too noisy + :type threshold: int + :param time_out: Time out for the subscription evaluation check in seconds + :type time_out: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'interval': {'key': 'interval', 'type': 'int'}, + 'threshold': {'key': 'threshold', 'type': 'int'}, + 'time_out': {'key': 'timeOut', 'type': 'int'} + } + + def __init__(self, enabled=None, interval=None, threshold=None, time_out=None): + super(SubscriptionEvaluationSettings, self).__init__() + self.enabled = enabled + self.interval = interval + self.threshold = threshold + self.time_out = time_out + + +class SubscriptionManagement(Model): + """SubscriptionManagement. + + :param service_instance_type: + :type service_instance_type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, service_instance_type=None, url=None): + super(SubscriptionManagement, self).__init__() + self.service_instance_type = service_instance_type + self.url = url + + +class SubscriptionQuery(Model): + """SubscriptionQuery. + + :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). + :type conditions: list of :class:`SubscriptionQueryCondition ` + :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. + :type query_flags: object + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[SubscriptionQueryCondition]'}, + 'query_flags': {'key': 'queryFlags', 'type': 'object'} + } + + def __init__(self, conditions=None, query_flags=None): + super(SubscriptionQuery, self).__init__() + self.conditions = conditions + self.query_flags = query_flags + + +class SubscriptionQueryCondition(Model): + """SubscriptionQueryCondition. + + :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. + :type filter: :class:`ISubscriptionFilter ` + :param flags: Flags to specify the the type subscriptions to query for. + :type flags: object + :param scope: Scope that matching subscriptions must have. + :type scope: str + :param subscriber_id: ID of the subscriber (user or group) that matching subscriptions must be subscribed to. + :type subscriber_id: str + :param subscription_id: ID of the subscription to query for. + :type subscription_id: str + """ + + _attribute_map = { + 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, filter=None, flags=None, scope=None, subscriber_id=None, subscription_id=None): + super(SubscriptionQueryCondition, self).__init__() + self.filter = filter + self.flags = flags + self.scope = scope + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id + + +class SubscriptionScope(EventScope): + """SubscriptionScope. + + :param id: Required: This is the identity of the scope for the type. + :type id: str + :param name: Optional: The display name of the scope + :type name: str + :param type: Required: The event specific type of a scope. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, name=None, type=None): + super(SubscriptionScope, self).__init__(id=id, name=name, type=type) + + +class SubscriptionTracing(Model): + """SubscriptionTracing. + + :param enabled: + :type enabled: bool + :param end_date: Trace until the specified end date. + :type end_date: datetime + :param max_traced_entries: The maximum number of result details to trace. + :type max_traced_entries: int + :param start_date: The date and time tracing started. + :type start_date: datetime + :param traced_entries: Trace until remaining count reaches 0. + :type traced_entries: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} + } + + def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): + super(SubscriptionTracing, self).__init__() + self.enabled = enabled + self.end_date = end_date + self.max_traced_entries = max_traced_entries + self.start_date = start_date + self.traced_entries = traced_entries + + +class SubscriptionUserSettings(Model): + """SubscriptionUserSettings. + + :param opted_out: Indicates whether the user will receive notifications for the associated group subscription. + :type opted_out: bool + """ + + _attribute_map = { + 'opted_out': {'key': 'optedOut', 'type': 'bool'} + } + + def __init__(self, opted_out=None): + super(SubscriptionUserSettings, self).__init__() + self.opted_out = opted_out + + +class UpdateSubscripitonDiagnosticsParameters(Model): + """UpdateSubscripitonDiagnosticsParameters. + + :param delivery_results: + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :param delivery_tracing: + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(UpdateSubscripitonDiagnosticsParameters, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + +class UpdateSubscripitonTracingParameters(Model): + """UpdateSubscripitonTracingParameters. + + :param enabled: + :type enabled: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'} + } + + def __init__(self, enabled=None): + super(UpdateSubscripitonTracingParameters, self).__init__() + self.enabled = enabled + + +class ValueDefinition(Model): + """ValueDefinition. + + :param data_source: Gets or sets the data source. + :type data_source: list of :class:`InputValue ` + :param end_point: Gets or sets the rest end point. + :type end_point: str + :param result_template: Gets or sets the result template. + :type result_template: str + """ + + _attribute_map = { + 'data_source': {'key': 'dataSource', 'type': '[InputValue]'}, + 'end_point': {'key': 'endPoint', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, data_source=None, end_point=None, result_template=None): + super(ValueDefinition, self).__init__() + self.data_source = data_source + self.end_point = end_point + self.result_template = result_template + + +class VssNotificationEvent(Model): + """VssNotificationEvent. + + :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. + :type actors: list of :class:`EventActor ` + :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. + :type artifact_uris: list of str + :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. + :type data: object + :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. + :type event_type: str + :param scopes: Optional: A list of scopes which are are relevant to the event. + :type scopes: list of :class:`EventScope ` + """ + + _attribute_map = { + 'actors': {'key': 'actors', 'type': '[EventActor]'}, + 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, + 'data': {'key': 'data', 'type': 'object'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': '[EventScope]'} + } + + def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): + super(VssNotificationEvent, self).__init__() + self.actors = actors + self.artifact_uris = artifact_uris + self.data = data + self.event_type = event_type + self.scopes = scopes + + +class ArtifactFilter(BaseSubscriptionFilter): + """ArtifactFilter. + + :param event_type: + :type event_type: str + :param artifact_id: + :type artifact_id: str + :param artifact_type: + :type artifact_type: str + :param artifact_uri: + :type artifact_uri: str + :param type: + :type type: str + """ + + _attribute_map = { + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, event_type=None, artifact_id=None, artifact_type=None, artifact_uri=None, type=None): + super(ArtifactFilter, self).__init__(event_type=event_type) + self.artifact_id = artifact_id + self.artifact_type = artifact_type + self.artifact_uri = artifact_uri + self.type = type + + +class FieldInputValues(InputValues): + """FieldInputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + :param operators: + :type operators: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, + 'operators': {'key': 'operators', 'type': 'str'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): + super(FieldInputValues, self).__init__(default_value=default_value, error=error, input_id=input_id, is_disabled=is_disabled, is_limited_to_possible_values=is_limited_to_possible_values, is_read_only=is_read_only, possible_values=possible_values) + self.operators = operators + + +class FieldValuesQuery(InputValuesQuery): + """FieldValuesQuery. + + :param current_values: + :type current_values: dict + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + :param input_values: + :type input_values: list of :class:`FieldInputValues ` + :param scope: + :type scope: str + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'input_values': {'key': 'inputValues', 'type': '[FieldInputValues]'}, + 'scope': {'key': 'scope', 'type': 'str'} + } + + def __init__(self, current_values=None, resource=None, input_values=None, scope=None): + super(FieldValuesQuery, self).__init__(current_values=current_values, resource=resource) + self.input_values = input_values + self.scope = scope + + +__all__ = [ + 'BaseSubscriptionFilter', + 'BatchNotificationOperation', + 'EventActor', + 'EventScope', + 'EventsEvaluationResult', + 'ExpressionFilterClause', + 'ExpressionFilterGroup', + 'ExpressionFilterModel', + 'GraphSubjectBase', + 'IdentityRef', + 'INotificationDiagnosticLog', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'ISubscriptionChannel', + 'ISubscriptionFilter', + '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', + 'ArtifactFilter', + 'FieldInputValues', + 'FieldValuesQuery', +] diff --git a/vsts/vsts/notification/v4_1/notification_client.py b/azure-devops/azure/devops/v4_1/notification/notification_client.py similarity index 99% rename from vsts/vsts/notification/v4_1/notification_client.py rename to azure-devops/azure/devops/v4_1/notification/notification_client.py index 74d7ef8b..03ae1167 100644 --- a/vsts/vsts/notification/v4_1/notification_client.py +++ b/azure-devops/azure/devops/v4_1/notification/notification_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class NotificationClient(VssClient): +class NotificationClient(Client): """Notification :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/npm/__init__.py b/azure-devops/azure/devops/v4_1/npm/__init__.py new file mode 100644 index 00000000..c51d5fcb --- /dev/null +++ b/azure-devops/azure/devops/v4_1/npm/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchDeprecateData', + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NpmPackagesBatchRequest', + 'NpmPackageVersionDeletionState', + 'NpmRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', +] diff --git a/azure-devops/azure/devops/v4_1/npm/models.py b/azure-devops/azure/devops/v4_1/npm/models.py new file mode 100644 index 00000000..ef0d58ae --- /dev/null +++ b/azure-devops/azure/devops/v4_1/npm/models.py @@ -0,0 +1,272 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class NpmPackagesBatchRequest(Model): + """NpmPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(NpmPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class NpmPackageVersionDeletionState(Model): + """NpmPackageVersionDeletionState. + + :param name: + :type name: str + :param unpublished_date: + :type unpublished_date: datetime + :param version: + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, name=None, unpublished_date=None, version=None): + super(NpmPackageVersionDeletionState, self).__init__() + self.name = name + self.unpublished_date = unpublished_date + self.version = version + + +class NpmRecycleBinPackageVersionDetails(Model): + """NpmRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(NpmRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param deprecate_message: Deprecated message, if any, for the package + :type deprecate_message: str + :param id: + :type id: str + :param name: The display name of the package + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. + :type source_chain: list of :class:`UpstreamSourceInfo ` + :param unpublished_date: If and when the package was deleted + :type unpublished_date: datetime + :param version: The version of the package + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, + 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deprecate_message=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, unpublished_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deprecate_message = deprecate_message + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.source_chain = source_chain + self.unpublished_date = unpublished_date + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param deprecate_message: Indicates the deprecate message of a package version + :type deprecate_message: str + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, deprecate_message=None, views=None): + super(PackageVersionDetails, self).__init__() + self.deprecate_message = deprecate_message + self.views = views + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UpstreamSourceInfo(Model): + """UpstreamSourceInfo. + + :param id: + :type id: str + :param location: + :type location: str + :param name: + :type name: str + :param source_type: + :type source_type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_type': {'key': 'sourceType', 'type': 'object'} + } + + def __init__(self, id=None, location=None, name=None, source_type=None): + super(UpstreamSourceInfo, self).__init__() + self.id = id + self.location = location + self.name = name + self.source_type = source_type + + +class BatchDeprecateData(BatchOperationData): + """BatchDeprecateData. + + :param message: Deprecate message that will be added to packages + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(BatchDeprecateData, self).__init__() + self.message = message + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NpmPackagesBatchRequest', + 'NpmPackageVersionDeletionState', + 'NpmRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', + 'BatchDeprecateData', +] diff --git a/vsts/vsts/npm/v4_1/npm_client.py b/azure-devops/azure/devops/v4_1/npm/npm_client.py similarity index 99% rename from vsts/vsts/npm/v4_1/npm_client.py rename to azure-devops/azure/devops/v4_1/npm/npm_client.py index 8ab09b36..9e5f4c28 100644 --- a/vsts/vsts/npm/v4_1/npm_client.py +++ b/azure-devops/azure/devops/v4_1/npm/npm_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class NpmClient(VssClient): +class NpmClient(Client): """Npm :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/nuGet/__init__.py b/azure-devops/azure/devops/v4_1/nuGet/__init__.py new file mode 100644 index 00000000..28f5d2eb --- /dev/null +++ b/azure-devops/azure/devops/v4_1/nuGet/__init__.py @@ -0,0 +1,22 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchListData', + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NuGetPackagesBatchRequest', + 'NuGetPackageVersionDeletionState', + 'NuGetRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v4_1/nuGet/models.py b/azure-devops/azure/devops/v4_1/nuGet/models.py new file mode 100644 index 00000000..9b81cffa --- /dev/null +++ b/azure-devops/azure/devops/v4_1/nuGet/models.py @@ -0,0 +1,235 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class NuGetPackagesBatchRequest(Model): + """NuGetPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(NuGetPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class NuGetPackageVersionDeletionState(Model): + """NuGetPackageVersionDeletionState. + + :param deleted_date: + :type deleted_date: datetime + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(NuGetPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +class NuGetRecycleBinPackageVersionDetails(Model): + """NuGetRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(NuGetRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class Package(Model): + """Package. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted + :type deleted_date: datetime + :param id: + :type id: str + :param name: The display name of the package + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param listed: Indicates the listing state of a package + :type listed: bool + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'}, + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, listed=None, views=None): + super(PackageVersionDetails, self).__init__() + self.listed = listed + self.views = views + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class BatchListData(BatchOperationData): + """BatchListData. + + :param listed: The desired listed status for the package versions. + :type listed: bool + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'} + } + + def __init__(self, listed=None): + super(BatchListData, self).__init__() + self.listed = listed + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NuGetPackagesBatchRequest', + 'NuGetPackageVersionDeletionState', + 'NuGetRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'BatchListData', +] diff --git a/vsts/vsts/nuget/v4_1/nuGet_client.py b/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py similarity index 98% rename from vsts/vsts/nuget/v4_1/nuGet_client.py rename to azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py index 0d372ca6..77f06d14 100644 --- a/vsts/vsts/nuget/v4_1/nuGet_client.py +++ b/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class NuGetClient(VssClient): +class NuGetClient(Client): """NuGet :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/operations/__init__.py b/azure-devops/azure/devops/v4_1/operations/__init__.py new file mode 100644 index 00000000..6bc40b46 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/operations/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Operation', + 'OperationReference', + 'OperationResultReference', + 'ReferenceLinks', +] diff --git a/vsts/vsts/operations/v4_1/models/operation.py b/azure-devops/azure/devops/v4_1/operations/models.py similarity index 54% rename from vsts/vsts/operations/v4_1/models/operation.py rename to azure-devops/azure/devops/v4_1/operations/models.py index 502b100d..f5ad25ff 100644 --- a/vsts/vsts/operations/v4_1/models/operation.py +++ b/azure-devops/azure/devops/v4_1/operations/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -6,7 +6,67 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- -from .operation_reference import OperationReference +from msrest.serialization import Model + + +class OperationReference(Model): + """OperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.plugin_id = plugin_id + self.status = status + self.url = url + + +class OperationResultReference(Model): + """OperationResultReference. + + :param result_url: URL to the operation result. + :type result_url: str + """ + + _attribute_map = { + 'result_url': {'key': 'resultUrl', 'type': 'str'} + } + + def __init__(self, result_url=None): + super(OperationResultReference, self).__init__() + self.result_url = result_url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links class Operation(OperationReference): @@ -47,3 +107,11 @@ def __init__(self, id=None, plugin_id=None, status=None, url=None, _links=None, self.detailed_message = detailed_message self.result_message = result_message self.result_url = result_url + + +__all__ = [ + 'OperationReference', + 'OperationResultReference', + 'ReferenceLinks', + 'Operation', +] diff --git a/vsts/vsts/operations/v4_1/operations_client.py b/azure-devops/azure/devops/v4_1/operations/operations_client.py similarity index 92% rename from vsts/vsts/operations/v4_1/operations_client.py rename to azure-devops/azure/devops/v4_1/operations/operations_client.py index 2d88d954..e4528977 100644 --- a/vsts/vsts/operations/v4_1/operations_client.py +++ b/azure-devops/azure/devops/v4_1/operations/operations_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class OperationsClient(VssClient): +class OperationsClient(Client): """Operations :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/policy/__init__.py b/azure-devops/azure/devops/v4_1/policy/__init__.py new file mode 100644 index 00000000..cbcfed09 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/policy/__init__.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GraphSubjectBase', + 'IdentityRef', + 'PolicyConfiguration', + 'PolicyConfigurationRef', + 'PolicyEvaluationRecord', + 'PolicyType', + 'PolicyTypeRef', + 'ReferenceLinks', + 'VersionedPolicyConfigurationRef', +] diff --git a/azure-devops/azure/devops/v4_1/policy/models.py b/azure-devops/azure/devops/v4_1/policy/models.py new file mode 100644 index 00000000..5fde3adf --- /dev/null +++ b/azure-devops/azure/devops/v4_1/policy/models.py @@ -0,0 +1,320 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class PolicyConfigurationRef(Model): + """PolicyConfigurationRef. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, type=None, url=None): + super(PolicyConfigurationRef, self).__init__() + self.id = id + self.type = type + self.url = url + + +class PolicyEvaluationRecord(Model): + """PolicyEvaluationRecord. + + :param _links: Links to other related objects + :type _links: :class:`ReferenceLinks ` + :param artifact_id: A string which uniquely identifies the target of a policy evaluation. + :type artifact_id: str + :param completed_date: Time when this policy finished evaluating on this pull request. + :type completed_date: datetime + :param configuration: Contains all configuration data for the policy which is being evaluated. + :type configuration: :class:`PolicyConfiguration ` + :param context: Internal context data of this policy evaluation. + :type context: :class:`object ` + :param evaluation_id: Guid which uniquely identifies this evaluation record (one policy running on one pull request). + :type evaluation_id: str + :param started_date: Time when this policy was first evaluated on this pull request. + :type started_date: datetime + :param status: Status of the policy (Running, Approved, Failed, etc.) + :type status: object + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'configuration': {'key': 'configuration', 'type': 'PolicyConfiguration'}, + 'context': {'key': 'context', 'type': 'object'}, + 'evaluation_id': {'key': 'evaluationId', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, _links=None, artifact_id=None, completed_date=None, configuration=None, context=None, evaluation_id=None, started_date=None, status=None): + super(PolicyEvaluationRecord, self).__init__() + self._links = _links + self.artifact_id = artifact_id + self.completed_date = completed_date + self.configuration = configuration + self.context = context + self.evaluation_id = evaluation_id + self.started_date = started_date + self.status = status + + +class PolicyTypeRef(Model): + """PolicyTypeRef. + + :param display_name: Display name of the policy type. + :type display_name: str + :param id: The policy type ID. + :type id: str + :param url: The URL where the policy type can be retrieved. + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, url=None): + super(PolicyTypeRef, self).__init__() + self.display_name = display_name + self.id = id + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class VersionedPolicyConfigurationRef(PolicyConfigurationRef): + """VersionedPolicyConfigurationRef. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + :param revision: The policy configuration revision ID. + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, type=None, url=None, revision=None): + super(VersionedPolicyConfigurationRef, self).__init__(id=id, type=type, url=url) + self.revision = revision + + +class PolicyConfiguration(VersionedPolicyConfigurationRef): + """PolicyConfiguration. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + :param revision: The policy configuration revision ID. + :type revision: int + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param created_by: A reference to the identity that created the policy. + :type created_by: :class:`IdentityRef ` + :param created_date: The date and time when the policy was created. + :type created_date: datetime + :param is_blocking: Indicates whether the policy is blocking. + :type is_blocking: bool + :param is_deleted: Indicates whether the policy has been (soft) deleted. + :type is_deleted: bool + :param is_enabled: Indicates whether the policy is enabled. + :type is_enabled: bool + :param settings: The policy configuration settings. + :type settings: :class:`object ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'is_blocking': {'key': 'isBlocking', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'settings': {'key': 'settings', 'type': 'object'} + } + + def __init__(self, id=None, type=None, url=None, revision=None, _links=None, created_by=None, created_date=None, is_blocking=None, is_deleted=None, is_enabled=None, settings=None): + super(PolicyConfiguration, self).__init__(id=id, type=type, url=url, revision=revision) + self._links = _links + self.created_by = created_by + self.created_date = created_date + self.is_blocking = is_blocking + self.is_deleted = is_deleted + self.is_enabled = is_enabled + self.settings = settings + + +class PolicyType(PolicyTypeRef): + """PolicyType. + + :param display_name: Display name of the policy type. + :type display_name: str + :param id: The policy type ID. + :type id: str + :param url: The URL where the policy type can be retrieved. + :type url: str + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param description: Detailed description of the policy type. + :type description: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, url=None, _links=None, description=None): + super(PolicyType, self).__init__(display_name=display_name, id=id, url=url) + self._links = _links + self.description = description + + +__all__ = [ + 'GraphSubjectBase', + 'IdentityRef', + 'PolicyConfigurationRef', + 'PolicyEvaluationRecord', + 'PolicyTypeRef', + 'ReferenceLinks', + 'VersionedPolicyConfigurationRef', + 'PolicyConfiguration', + 'PolicyType', +] diff --git a/vsts/vsts/policy/v4_1/policy_client.py b/azure-devops/azure/devops/v4_1/policy/policy_client.py similarity index 99% rename from vsts/vsts/policy/v4_1/policy_client.py rename to azure-devops/azure/devops/v4_1/policy/policy_client.py index 79ad44f5..18f5bdfb 100644 --- a/vsts/vsts/policy/v4_1/policy_client.py +++ b/azure-devops/azure/devops/v4_1/policy/policy_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class PolicyClient(VssClient): +class PolicyClient(Client): """Policy :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/profile/__init__.py b/azure-devops/azure/devops/v4_1/profile/__init__.py new file mode 100644 index 00000000..2f7e2674 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/profile/__init__.py @@ -0,0 +1,24 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AttributeDescriptor', + 'AttributesContainer', + 'Avatar', + 'CoreProfileAttribute', + 'CreateProfileContext', + 'GeoRegion', + 'Profile', + 'ProfileAttribute', + 'ProfileAttributeBase', + 'ProfileRegion', + 'ProfileRegions', + 'RemoteProfile', +] diff --git a/azure-devops/azure/devops/v4_1/profile/models.py b/azure-devops/azure/devops/v4_1/profile/models.py new file mode 100644 index 00000000..817392ae --- /dev/null +++ b/azure-devops/azure/devops/v4_1/profile/models.py @@ -0,0 +1,325 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AttributeDescriptor(Model): + """AttributeDescriptor. + + :param attribute_name: + :type attribute_name: str + :param container_name: + :type container_name: str + """ + + _attribute_map = { + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'} + } + + def __init__(self, attribute_name=None, container_name=None): + super(AttributeDescriptor, self).__init__() + self.attribute_name = attribute_name + self.container_name = container_name + + +class AttributesContainer(Model): + """AttributesContainer. + + :param attributes: + :type attributes: dict + :param container_name: + :type container_name: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{ProfileAttribute}'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, attributes=None, container_name=None, revision=None): + super(AttributesContainer, self).__init__() + self.attributes = attributes + self.container_name = container_name + self.revision = revision + + +class Avatar(Model): + """Avatar. + + :param is_auto_generated: + :type is_auto_generated: bool + :param size: + :type size: object + :param time_stamp: + :type time_stamp: datetime + :param value: + :type value: str + """ + + _attribute_map = { + 'is_auto_generated': {'key': 'isAutoGenerated', 'type': 'bool'}, + 'size': {'key': 'size', 'type': 'object'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_auto_generated=None, size=None, time_stamp=None, value=None): + super(Avatar, self).__init__() + self.is_auto_generated = is_auto_generated + self.size = size + self.time_stamp = time_stamp + self.value = value + + +class CreateProfileContext(Model): + """CreateProfileContext. + + :param cIData: + :type cIData: dict + :param contact_with_offers: + :type contact_with_offers: bool + :param country_name: + :type country_name: str + :param display_name: + :type display_name: str + :param email_address: + :type email_address: str + :param has_account: + :type has_account: bool + :param language: + :type language: str + :param phone_number: + :type phone_number: str + :param profile_state: + :type profile_state: object + """ + + _attribute_map = { + 'cIData': {'key': 'cIData', 'type': '{object}'}, + 'contact_with_offers': {'key': 'contactWithOffers', 'type': 'bool'}, + 'country_name': {'key': 'countryName', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': 'str'}, + 'has_account': {'key': 'hasAccount', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'phone_number': {'key': 'phoneNumber', 'type': 'str'}, + 'profile_state': {'key': 'profileState', 'type': 'object'} + } + + def __init__(self, cIData=None, contact_with_offers=None, country_name=None, display_name=None, email_address=None, has_account=None, language=None, phone_number=None, profile_state=None): + super(CreateProfileContext, self).__init__() + self.cIData = cIData + self.contact_with_offers = contact_with_offers + self.country_name = country_name + self.display_name = display_name + self.email_address = email_address + self.has_account = has_account + self.language = language + self.phone_number = phone_number + self.profile_state = profile_state + + +class GeoRegion(Model): + """GeoRegion. + + :param region_code: + :type region_code: str + """ + + _attribute_map = { + 'region_code': {'key': 'regionCode', 'type': 'str'} + } + + def __init__(self, region_code=None): + super(GeoRegion, self).__init__() + self.region_code = region_code + + +class Profile(Model): + """Profile. + + :param application_container: + :type application_container: :class:`AttributesContainer ` + :param core_attributes: + :type core_attributes: dict + :param core_revision: + :type core_revision: int + :param id: + :type id: str + :param profile_state: + :type profile_state: object + :param revision: + :type revision: int + :param time_stamp: + :type time_stamp: datetime + """ + + _attribute_map = { + 'application_container': {'key': 'applicationContainer', 'type': 'AttributesContainer'}, + 'core_attributes': {'key': 'coreAttributes', 'type': '{CoreProfileAttribute}'}, + 'core_revision': {'key': 'coreRevision', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'profile_state': {'key': 'profileState', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'} + } + + def __init__(self, application_container=None, core_attributes=None, core_revision=None, id=None, profile_state=None, revision=None, time_stamp=None): + super(Profile, self).__init__() + self.application_container = application_container + self.core_attributes = core_attributes + self.core_revision = core_revision + self.id = id + self.profile_state = profile_state + self.revision = revision + self.time_stamp = time_stamp + + +class ProfileAttributeBase(Model): + """ProfileAttributeBase. + + :param descriptor: + :type descriptor: :class:`AttributeDescriptor ` + :param revision: + :type revision: int + :param time_stamp: + :type time_stamp: datetime + :param value: + :type value: object + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'AttributeDescriptor'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, descriptor=None, revision=None, time_stamp=None, value=None): + super(ProfileAttributeBase, self).__init__() + self.descriptor = descriptor + self.revision = revision + self.time_stamp = time_stamp + self.value = value + + +class ProfileRegion(Model): + """ProfileRegion. + + :param code: The two-letter code defined in ISO 3166 for the country/region. + :type code: str + :param name: Localized country/region name + :type name: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, code=None, name=None): + super(ProfileRegion, self).__init__() + self.code = code + self.name = name + + +class ProfileRegions(Model): + """ProfileRegions. + + :param notice_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of notice + :type notice_contact_consent_requirement_regions: list of str + :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out + :type opt_out_contact_consent_requirement_regions: list of str + :param regions: List of country/regions + :type regions: list of :class:`ProfileRegion ` + """ + + _attribute_map = { + 'notice_contact_consent_requirement_regions': {'key': 'noticeContactConsentRequirementRegions', 'type': '[str]'}, + 'opt_out_contact_consent_requirement_regions': {'key': 'optOutContactConsentRequirementRegions', 'type': '[str]'}, + 'regions': {'key': 'regions', 'type': '[ProfileRegion]'} + } + + def __init__(self, notice_contact_consent_requirement_regions=None, opt_out_contact_consent_requirement_regions=None, regions=None): + super(ProfileRegions, self).__init__() + self.notice_contact_consent_requirement_regions = notice_contact_consent_requirement_regions + self.opt_out_contact_consent_requirement_regions = opt_out_contact_consent_requirement_regions + self.regions = regions + + +class RemoteProfile(Model): + """RemoteProfile. + + :param avatar: + :type avatar: str + :param country_code: + :type country_code: str + :param display_name: + :type display_name: str + :param email_address: Primary contact email from from MSA/AAD + :type email_address: str + """ + + _attribute_map = { + 'avatar': {'key': 'avatar', 'type': 'str'}, + 'country_code': {'key': 'countryCode', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': 'str'} + } + + def __init__(self, avatar=None, country_code=None, display_name=None, email_address=None): + super(RemoteProfile, self).__init__() + self.avatar = avatar + self.country_code = country_code + self.display_name = display_name + self.email_address = email_address + + +class CoreProfileAttribute(ProfileAttributeBase): + """CoreProfileAttribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(CoreProfileAttribute, self).__init__() + + +class ProfileAttribute(ProfileAttributeBase): + """ProfileAttribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(ProfileAttribute, self).__init__() + + +__all__ = [ + 'AttributeDescriptor', + 'AttributesContainer', + 'Avatar', + 'CreateProfileContext', + 'GeoRegion', + 'Profile', + 'ProfileAttributeBase', + 'ProfileRegion', + 'ProfileRegions', + 'RemoteProfile', + 'CoreProfileAttribute', + 'ProfileAttribute', +] diff --git a/vsts/vsts/profile/v4_1/profile_client.py b/azure-devops/azure/devops/v4_1/profile/profile_client.py similarity index 94% rename from vsts/vsts/profile/v4_1/profile_client.py rename to azure-devops/azure/devops/v4_1/profile/profile_client.py index 53c28756..9e58d261 100644 --- a/vsts/vsts/profile/v4_1/profile_client.py +++ b/azure-devops/azure/devops/v4_1/profile/profile_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ProfileClient(VssClient): +class ProfileClient(Client): """Profile :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/project_analysis/__init__.py b/azure-devops/azure/devops/v4_1/project_analysis/__init__.py new file mode 100644 index 00000000..e3b23962 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/project_analysis/__init__.py @@ -0,0 +1,19 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'CodeChangeTrendItem', + 'LanguageMetricsSecuredObject', + 'LanguageStatistics', + 'ProjectActivityMetrics', + 'ProjectLanguageAnalytics', + 'RepositoryActivityMetrics', + 'RepositoryLanguageAnalytics', +] diff --git a/azure-devops/azure/devops/v4_1/project_analysis/models.py b/azure-devops/azure/devops/v4_1/project_analysis/models.py new file mode 100644 index 00000000..18038c39 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/project_analysis/models.py @@ -0,0 +1,247 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class CodeChangeTrendItem(Model): + """CodeChangeTrendItem. + + :param time: + :type time: datetime + :param value: + :type value: int + """ + + _attribute_map = { + 'time': {'key': 'time', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, time=None, value=None): + super(CodeChangeTrendItem, self).__init__() + self.time = time + self.value = value + + +class LanguageMetricsSecuredObject(Model): + """LanguageMetricsSecuredObject. + + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int + """ + + _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'} + } + + def __init__(self, namespace_id=None, project_id=None, required_permissions=None): + super(LanguageMetricsSecuredObject, self).__init__() + self.namespace_id = namespace_id + self.project_id = project_id + self.required_permissions = required_permissions + + +class LanguageStatistics(LanguageMetricsSecuredObject): + """LanguageStatistics. + + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int + :param bytes: + :type bytes: long + :param files: + :type files: int + :param files_percentage: + :type files_percentage: float + :param language_percentage: + :type language_percentage: float + :param name: + :type name: str + """ + + _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, + 'bytes': {'key': 'bytes', 'type': 'long'}, + 'files': {'key': 'files', 'type': 'int'}, + 'files_percentage': {'key': 'filesPercentage', 'type': 'float'}, + 'language_percentage': {'key': 'languagePercentage', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, bytes=None, files=None, files_percentage=None, language_percentage=None, name=None): + super(LanguageStatistics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) + self.bytes = bytes + self.files = files + self.files_percentage = files_percentage + self.language_percentage = language_percentage + self.name = name + + +class ProjectActivityMetrics(Model): + """ProjectActivityMetrics. + + :param authors_count: + :type authors_count: int + :param code_changes_count: + :type code_changes_count: int + :param code_changes_trend: + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :param project_id: + :type project_id: str + :param pull_requests_completed_count: + :type pull_requests_completed_count: int + :param pull_requests_created_count: + :type pull_requests_created_count: int + """ + + _attribute_map = { + 'authors_count': {'key': 'authorsCount', 'type': 'int'}, + 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, + 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'pull_requests_completed_count': {'key': 'pullRequestsCompletedCount', 'type': 'int'}, + 'pull_requests_created_count': {'key': 'pullRequestsCreatedCount', 'type': 'int'} + } + + def __init__(self, authors_count=None, code_changes_count=None, code_changes_trend=None, project_id=None, pull_requests_completed_count=None, pull_requests_created_count=None): + super(ProjectActivityMetrics, self).__init__() + self.authors_count = authors_count + self.code_changes_count = code_changes_count + self.code_changes_trend = code_changes_trend + self.project_id = project_id + self.pull_requests_completed_count = pull_requests_completed_count + self.pull_requests_created_count = pull_requests_created_count + + +class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): + """ProjectLanguageAnalytics. + + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param repository_language_analytics: + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :param result_phase: + :type result_phase: object + :param url: + :type url: str + """ + + _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): + super(ProjectLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) + self.id = id + self.language_breakdown = language_breakdown + self.repository_language_analytics = repository_language_analytics + self.result_phase = result_phase + self.url = url + + +class RepositoryActivityMetrics(Model): + """RepositoryActivityMetrics. + + :param code_changes_count: + :type code_changes_count: int + :param code_changes_trend: + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, + 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, code_changes_count=None, code_changes_trend=None, repository_id=None): + super(RepositoryActivityMetrics, self).__init__() + self.code_changes_count = code_changes_count + self.code_changes_trend = code_changes_trend + self.repository_id = repository_id + + +class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): + """RepositoryLanguageAnalytics. + + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int + :param id: + :type id: str + :param language_breakdown: + :type language_breakdown: list of :class:`LanguageStatistics ` + :param name: + :type name: str + :param result_phase: + :type result_phase: object + :param updated_time: + :type updated_time: datetime + """ + + _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'result_phase': {'key': 'resultPhase', 'type': 'object'}, + 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} + } + + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): + super(RepositoryLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) + self.id = id + self.language_breakdown = language_breakdown + self.name = name + self.result_phase = result_phase + self.updated_time = updated_time + + +__all__ = [ + 'CodeChangeTrendItem', + 'LanguageMetricsSecuredObject', + 'LanguageStatistics', + 'ProjectActivityMetrics', + 'ProjectLanguageAnalytics', + 'RepositoryActivityMetrics', + 'RepositoryLanguageAnalytics', +] diff --git a/vsts/vsts/project_analysis/v4_1/project_analysis_client.py b/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py similarity index 98% rename from vsts/vsts/project_analysis/v4_1/project_analysis_client.py rename to azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py index ffb36472..b37fd827 100644 --- a/vsts/vsts/project_analysis/v4_1/project_analysis_client.py +++ b/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ProjectAnalysisClient(VssClient): +class ProjectAnalysisClient(Client): """ProjectAnalysis :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/security/__init__.py b/azure-devops/azure/devops/v4_1/security/__init__.py new file mode 100644 index 00000000..f3e359ef --- /dev/null +++ b/azure-devops/azure/devops/v4_1/security/__init__.py @@ -0,0 +1,20 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccessControlEntry', + 'AccessControlList', + 'AccessControlListsCollection', + 'AceExtendedInformation', + 'ActionDefinition', + 'PermissionEvaluation', + 'PermissionEvaluationBatch', + 'SecurityNamespaceDescription', +] diff --git a/azure-devops/azure/devops/v4_1/security/models.py b/azure-devops/azure/devops/v4_1/security/models.py new file mode 100644 index 00000000..67305b91 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/security/models.py @@ -0,0 +1,248 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessControlEntry(Model): + """AccessControlEntry. + + :param allow: The set of permission bits that represent the actions that the associated descriptor is allowed to perform. + :type allow: int + :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. + :type deny: int + :param descriptor: The descriptor for the user this AccessControlEntry applies to. + :type descriptor: :class:`str ` + :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. + :type extended_info: :class:`AceExtendedInformation ` + """ + + _attribute_map = { + 'allow': {'key': 'allow', 'type': 'int'}, + 'deny': {'key': 'deny', 'type': 'int'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AceExtendedInformation'} + } + + def __init__(self, allow=None, deny=None, descriptor=None, extended_info=None): + super(AccessControlEntry, self).__init__() + self.allow = allow + self.deny = deny + self.descriptor = descriptor + self.extended_info = extended_info + + +class AccessControlList(Model): + """AccessControlList. + + :param aces_dictionary: Storage of permissions keyed on the identity the permission is for. + :type aces_dictionary: dict + :param include_extended_info: True if this ACL holds ACEs that have extended information. + :type include_extended_info: bool + :param inherit_permissions: True if the given token inherits permissions from parents. + :type inherit_permissions: bool + :param token: The token that this AccessControlList is for. + :type token: str + """ + + _attribute_map = { + 'aces_dictionary': {'key': 'acesDictionary', 'type': '{AccessControlEntry}'}, + 'include_extended_info': {'key': 'includeExtendedInfo', 'type': 'bool'}, + 'inherit_permissions': {'key': 'inheritPermissions', 'type': 'bool'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_permissions=None, token=None): + super(AccessControlList, self).__init__() + self.aces_dictionary = aces_dictionary + self.include_extended_info = include_extended_info + self.inherit_permissions = inherit_permissions + self.token = token + + +class AceExtendedInformation(Model): + """AceExtendedInformation. + + :param effective_allow: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_allow: int + :param effective_deny: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. + :type effective_deny: int + :param inherited_allow: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_allow: int + :param inherited_deny: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. + :type inherited_deny: int + """ + + _attribute_map = { + 'effective_allow': {'key': 'effectiveAllow', 'type': 'int'}, + 'effective_deny': {'key': 'effectiveDeny', 'type': 'int'}, + 'inherited_allow': {'key': 'inheritedAllow', 'type': 'int'}, + 'inherited_deny': {'key': 'inheritedDeny', 'type': 'int'} + } + + def __init__(self, effective_allow=None, effective_deny=None, inherited_allow=None, inherited_deny=None): + super(AceExtendedInformation, self).__init__() + self.effective_allow = effective_allow + self.effective_deny = effective_deny + self.inherited_allow = inherited_allow + self.inherited_deny = inherited_deny + + +class ActionDefinition(Model): + """ActionDefinition. + + :param bit: The bit mask integer for this action. Must be a power of 2. + :type bit: int + :param display_name: The localized display name for this action. + :type display_name: str + :param name: The non-localized name for this action. + :type name: str + :param namespace_id: The namespace that this action belongs to. This will only be used for reading from the database. + :type namespace_id: str + """ + + _attribute_map = { + 'bit': {'key': 'bit', 'type': 'int'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'} + } + + def __init__(self, bit=None, display_name=None, name=None, namespace_id=None): + super(ActionDefinition, self).__init__() + self.bit = bit + self.display_name = display_name + self.name = name + self.namespace_id = namespace_id + + +class PermissionEvaluation(Model): + """PermissionEvaluation. + + :param permissions: Permission bit for this evaluated permission. + :type permissions: int + :param security_namespace_id: Security namespace identifier for this evaluated permission. + :type security_namespace_id: str + :param token: Security namespace-specific token for this evaluated permission. + :type token: str + :param value: Permission evaluation value. + :type value: bool + """ + + _attribute_map = { + 'permissions': {'key': 'permissions', 'type': 'int'}, + 'security_namespace_id': {'key': 'securityNamespaceId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bool'} + } + + def __init__(self, permissions=None, security_namespace_id=None, token=None, value=None): + super(PermissionEvaluation, self).__init__() + self.permissions = permissions + self.security_namespace_id = security_namespace_id + self.token = token + self.value = value + + +class PermissionEvaluationBatch(Model): + """PermissionEvaluationBatch. + + :param always_allow_administrators: + :type always_allow_administrators: bool + :param evaluations: Array of permission evaluations to evaluate. + :type evaluations: list of :class:`PermissionEvaluation ` + """ + + _attribute_map = { + 'always_allow_administrators': {'key': 'alwaysAllowAdministrators', 'type': 'bool'}, + 'evaluations': {'key': 'evaluations', 'type': '[PermissionEvaluation]'} + } + + def __init__(self, always_allow_administrators=None, evaluations=None): + super(PermissionEvaluationBatch, self).__init__() + self.always_allow_administrators = always_allow_administrators + self.evaluations = evaluations + + +class SecurityNamespaceDescription(Model): + """SecurityNamespaceDescription. + + :param actions: The list of actions that this Security Namespace is responsible for securing. + :type actions: list of :class:`ActionDefinition ` + :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. + :type dataspace_category: str + :param display_name: This localized name for this namespace. + :type display_name: str + :param element_length: If the security tokens this namespace will be operating on need to be split on certain character lengths to determine its elements, that length should be specified here. If not, this value will be -1. + :type element_length: int + :param extension_type: This is the type of the extension that should be loaded from the plugins directory for extending this security namespace. + :type extension_type: str + :param is_remotable: If true, the security namespace is remotable, allowing another service to proxy the namespace. + :type is_remotable: bool + :param name: This non-localized for this namespace. + :type name: str + :param namespace_id: The unique identifier for this namespace. + :type namespace_id: str + :param read_permission: The permission bits needed by a user in order to read security data on the Security Namespace. + :type read_permission: int + :param separator_value: If the security tokens this namespace will be operating on need to be split on certain characters to determine its elements that character should be specified here. If not, this value will be the null character. + :type separator_value: str + :param structure_value: Used to send information about the structure of the security namespace over the web service. + :type structure_value: int + :param system_bit_mask: The bits reserved by system store + :type system_bit_mask: int + :param use_token_translator: If true, the security service will expect an ISecurityDataspaceTokenTranslator plugin to exist for this namespace + :type use_token_translator: bool + :param write_permission: The permission bits needed by a user in order to modify security data on the Security Namespace. + :type write_permission: int + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[ActionDefinition]'}, + 'dataspace_category': {'key': 'dataspaceCategory', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'element_length': {'key': 'elementLength', 'type': 'int'}, + 'extension_type': {'key': 'extensionType', 'type': 'str'}, + 'is_remotable': {'key': 'isRemotable', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'read_permission': {'key': 'readPermission', 'type': 'int'}, + 'separator_value': {'key': 'separatorValue', 'type': 'str'}, + 'structure_value': {'key': 'structureValue', 'type': 'int'}, + 'system_bit_mask': {'key': 'systemBitMask', 'type': 'int'}, + 'use_token_translator': {'key': 'useTokenTranslator', 'type': 'bool'}, + 'write_permission': {'key': 'writePermission', 'type': 'int'} + } + + def __init__(self, actions=None, dataspace_category=None, display_name=None, element_length=None, extension_type=None, is_remotable=None, name=None, namespace_id=None, read_permission=None, separator_value=None, structure_value=None, system_bit_mask=None, use_token_translator=None, write_permission=None): + super(SecurityNamespaceDescription, self).__init__() + self.actions = actions + self.dataspace_category = dataspace_category + self.display_name = display_name + self.element_length = element_length + self.extension_type = extension_type + self.is_remotable = is_remotable + self.name = name + self.namespace_id = namespace_id + self.read_permission = read_permission + self.separator_value = separator_value + self.structure_value = structure_value + self.system_bit_mask = system_bit_mask + self.use_token_translator = use_token_translator + self.write_permission = write_permission + + +__all__ = [ + 'AccessControlEntry', + 'AccessControlList', + 'AceExtendedInformation', + 'ActionDefinition', + 'PermissionEvaluation', + 'PermissionEvaluationBatch', + 'SecurityNamespaceDescription', +] diff --git a/vsts/vsts/security/v4_1/security_client.py b/azure-devops/azure/devops/v4_1/security/security_client.py similarity index 99% rename from vsts/vsts/security/v4_1/security_client.py rename to azure-devops/azure/devops/v4_1/security/security_client.py index b9f9e5f9..15fcb2c2 100644 --- a/vsts/vsts/security/v4_1/security_client.py +++ b/azure-devops/azure/devops/v4_1/security/security_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class SecurityClient(VssClient): +class SecurityClient(Client): """Security :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/service_endpoint/__init__.py b/azure-devops/azure/devops/v4_1/service_endpoint/__init__.py new file mode 100644 index 00000000..e7d41c7a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/service_endpoint/__init__.py @@ -0,0 +1,44 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'ClientCertificate', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'EndpointAuthorization', + 'EndpointUrl', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionOwner', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', +] diff --git a/azure-devops/azure/devops/v4_1/service_endpoint/models.py b/azure-devops/azure/devops/v4_1/service_endpoint/models.py new file mode 100644 index 00000000..3995e8c7 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/service_endpoint/models.py @@ -0,0 +1,1033 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AuthenticationSchemeReference(Model): + """AuthenticationSchemeReference. + + :param inputs: + :type inputs: dict + :param type: + :type type: str + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, inputs=None, type=None): + super(AuthenticationSchemeReference, self).__init__() + self.inputs = inputs + self.type = type + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: Gets or sets the name of authorization header. + :type name: str + :param value: Gets or sets the value of authorization header. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class ClientCertificate(Model): + """ClientCertificate. + + :param value: Gets or sets the value of client certificate. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, value=None): + super(ClientCertificate, self).__init__() + self.value = value + + +class DataSource(Model): + """DataSource. + + :param authentication_scheme: + :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param name: + :type name: str + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): + super(DataSource, self).__init__() + self.authentication_scheme = authentication_scheme + self.endpoint_url = endpoint_url + self.headers = headers + self.name = name + self.resource_url = resource_url + self.result_selector = result_selector + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DataSourceDetails(Model): + """DataSourceDetails. + + :param data_source_name: Gets or sets the data source name. + :type data_source_name: str + :param data_source_url: Gets or sets the data source url. + :type data_source_url: str + :param headers: Gets or sets the request headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets the parameters of data source. + :type parameters: dict + :param resource_url: Gets or sets the resource url of data source. + :type resource_url: str + :param result_selector: Gets or sets the result selector. + :type result_selector: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): + super(DataSourceDetails, self).__init__() + self.data_source_name = data_source_name + self.data_source_url = data_source_url + self.headers = headers + self.parameters = parameters + self.resource_url = resource_url + self.result_selector = result_selector + + +class DependencyBinding(Model): + """DependencyBinding. + + :param key: + :type key: str + :param value: + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, key=None, value=None): + super(DependencyBinding, self).__init__() + self.key = key + self.value = value + + +class DependencyData(Model): + """DependencyData. + + :param input: + :type input: str + :param map: + :type map: list of { key: str; value: [{ key: str; value: str }] } + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} + } + + def __init__(self, input=None, map=None): + super(DependencyData, self).__init__() + self.input = input + self.map = map + + +class DependsOn(Model): + """DependsOn. + + :param input: + :type input: str + :param map: + :type map: list of :class:`DependencyBinding ` + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[DependencyBinding]'} + } + + def __init__(self, input=None, map=None): + super(DependsOn, self).__init__() + self.input = input + self.map = map + + +class EndpointAuthorization(Model): + """EndpointAuthorization. + + :param parameters: Gets or sets the parameters for the selected authorization scheme. + :type parameters: dict + :param scheme: Gets or sets the scheme used for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, parameters=None, scheme=None): + super(EndpointAuthorization, self).__init__() + self.parameters = parameters + self.scheme = scheme + + +class EndpointUrl(Model): + """EndpointUrl. + + :param depends_on: Gets or sets the dependency bindings. + :type depends_on: :class:`DependsOn ` + :param display_name: Gets or sets the display name of service endpoint url. + :type display_name: str + :param help_text: Gets or sets the help text of service endpoint url. + :type help_text: str + :param is_visible: Gets or sets the visibility of service endpoint url. + :type is_visible: str + :param value: Gets or sets the value of service endpoint url. + :type value: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'is_visible': {'key': 'isVisible', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): + super(EndpointUrl, self).__init__() + self.depends_on = depends_on + self.display_name = display_name + self.help_text = help_text + self.is_visible = is_visible + self.value = value + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 HelpLink(Model): + """HelpLink. + + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, text=None, url=None): + super(HelpLink, self).__init__() + self.text = text + self.url = url + + +class IdentityRef(GraphSubjectBase): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResultTransformationDetails(Model): + """ResultTransformationDetails. + + :param result_template: Gets or sets the template for result transformation. + :type result_template: str + """ + + _attribute_map = { + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, result_template=None): + super(ResultTransformationDetails, self).__init__() + self.result_template = result_template + + +class ServiceEndpoint(Model): + """ServiceEndpoint. + + :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. + :type administrators_group: :class:`IdentityRef ` + :param authorization: Gets or sets the authorization data for talking to the endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. + :type created_by: :class:`IdentityRef ` + :param data: + :type data: dict + :param description: Gets or sets the description of endpoint. + :type description: str + :param group_scope_id: + :type group_scope_id: str + :param id: Gets or sets the identifier of this endpoint. + :type id: str + :param is_ready: EndPoint state indictor + :type is_ready: bool + :param name: Gets or sets the friendly name of the endpoint. + :type name: str + :param operation_status: Error message during creation/deletion of endpoint + :type operation_status: :class:`object ` + :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. + :type readers_group: :class:`IdentityRef ` + :param type: Gets or sets the type of the endpoint. + :type type: str + :param url: Gets or sets the url of the endpoint. + :type url: str + """ + + _attribute_map = { + 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + super(ServiceEndpoint, self).__init__() + self.administrators_group = administrators_group + self.authorization = authorization + self.created_by = created_by + self.data = data + self.description = description + self.group_scope_id = group_scope_id + self.id = id + self.is_ready = is_ready + self.name = name + self.operation_status = operation_status + self.readers_group = readers_group + self.type = type + self.url = url + + +class ServiceEndpointAuthenticationScheme(Model): + """ServiceEndpointAuthenticationScheme. + + :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. + :type client_certificates: list of :class:`ClientCertificate ` + :param display_name: Gets or sets the display name for the service endpoint authentication scheme. + :type display_name: str + :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: Gets or sets the scheme for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): + super(ServiceEndpointAuthenticationScheme, self).__init__() + self.authorization_headers = authorization_headers + self.client_certificates = client_certificates + self.display_name = display_name + self.input_descriptors = input_descriptors + self.scheme = scheme + + +class ServiceEndpointDetails(Model): + """ServiceEndpointDetails. + + :param authorization: Gets or sets the authorization of service endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param data: Gets or sets the data of service endpoint. + :type data: dict + :param type: Gets or sets the type of service endpoint. + :type type: str + :param url: Gets or sets the connection url of service endpoint. + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, data=None, type=None, url=None): + super(ServiceEndpointDetails, self).__init__() + self.authorization = authorization + self.data = data + self.type = type + self.url = url + + +class ServiceEndpointExecutionData(Model): + """ServiceEndpointExecutionData. + + :param definition: Gets the definition of service endpoint execution owner. + :type definition: :class:`ServiceEndpointExecutionOwner ` + :param finish_time: Gets the finish time of service endpoint execution. + :type finish_time: datetime + :param id: Gets the Id of service endpoint execution data. + :type id: long + :param owner: Gets the owner of service endpoint execution data. + :type owner: :class:`ServiceEndpointExecutionOwner ` + :param plan_type: Gets the plan type of service endpoint execution data. + :type plan_type: str + :param result: Gets the result of service endpoint execution. + :type result: object + :param start_time: Gets the start time of service endpoint execution. + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'ServiceEndpointExecutionOwner'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'ServiceEndpointExecutionOwner'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): + super(ServiceEndpointExecutionData, self).__init__() + self.definition = definition + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_type = plan_type + self.result = result + self.start_time = start_time + + +class ServiceEndpointExecutionOwner(Model): + """ServiceEndpointExecutionOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: Gets or sets the Id of service endpoint execution owner. + :type id: int + :param name: Gets or sets the name of service endpoint execution owner. + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(ServiceEndpointExecutionOwner, self).__init__() + self._links = _links + self.id = id + self.name = name + + +class ServiceEndpointExecutionRecord(Model): + """ServiceEndpointExecutionRecord. + + :param data: Gets the execution data of service endpoint execution. + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: Gets the Id of service endpoint. + :type endpoint_id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'} + } + + def __init__(self, data=None, endpoint_id=None): + super(ServiceEndpointExecutionRecord, self).__init__() + self.data = data + self.endpoint_id = endpoint_id + + +class ServiceEndpointExecutionRecordsInput(Model): + """ServiceEndpointExecutionRecordsInput. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_ids: + :type endpoint_ids: list of str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} + } + + def __init__(self, data=None, endpoint_ids=None): + super(ServiceEndpointExecutionRecordsInput, self).__init__() + self.data = data + self.endpoint_ids = endpoint_ids + + +class ServiceEndpointRequest(Model): + """ServiceEndpointRequest. + + :param data_source_details: Gets or sets the data source details for the service endpoint request. + :type data_source_details: :class:`DataSourceDetails ` + :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. + :type result_transformation_details: :class:`ResultTransformationDetails ` + :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. + :type service_endpoint_details: :class:`ServiceEndpointDetails ` + """ + + _attribute_map = { + 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, + 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, + 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} + } + + def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): + super(ServiceEndpointRequest, self).__init__() + self.data_source_details = data_source_details + self.result_transformation_details = result_transformation_details + self.service_endpoint_details = service_endpoint_details + + +class ServiceEndpointRequestResult(Model): + """ServiceEndpointRequestResult. + + :param error_message: Gets or sets the error message of the service endpoint request result. + :type error_message: str + :param result: Gets or sets the result of service endpoint request. + :type result: :class:`object ` + :param status_code: Gets or sets the status code of the service endpoint request result. + :type status_code: object + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'object'} + } + + def __init__(self, error_message=None, result=None, status_code=None): + super(ServiceEndpointRequestResult, self).__init__() + self.error_message = error_message + self.result = result + self.status_code = status_code + + +class ServiceEndpointType(Model): + """ServiceEndpointType. + + :param authentication_schemes: Authentication scheme of service endpoint type. + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: Data sources of service endpoint type. + :type data_sources: list of :class:`DataSource ` + :param dependency_data: Dependency data of service endpoint type. + :type dependency_data: list of :class:`DependencyData ` + :param description: Gets or sets the description of service endpoint type. + :type description: str + :param display_name: Gets or sets the display name of service endpoint type. + :type display_name: str + :param endpoint_url: Gets or sets the endpoint url of service endpoint type. + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: Gets or sets the help link of service endpoint type. + :type help_link: :class:`HelpLink ` + :param help_mark_down: + :type help_mark_down: str + :param icon_url: Gets or sets the icon url of service endpoint type. + :type icon_url: str + :param input_descriptors: Input descriptor of service endpoint type. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of service endpoint type. + :type name: str + :param trusted_hosts: Trusted hosts of a service endpoint type. + :type trusted_hosts: list of str + :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. + :type ui_contribution_id: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, + 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name + self.trusted_hosts = trusted_hosts + self.ui_contribution_id = ui_contribution_id + + +class DataSourceBinding(DataSourceBindingBase): + """DataSourceBinding. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) + + +__all__ = [ + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'ClientCertificate', + 'DataSource', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'EndpointAuthorization', + 'EndpointUrl', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionOwner', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'DataSourceBinding', +] diff --git a/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py b/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py similarity index 99% rename from vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py rename to azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py index 3239fe17..87fffa38 100644 --- a/vsts/vsts/service_endpoint/v4_1/service_endpoint_client.py +++ b/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ServiceEndpointClient(VssClient): +class ServiceEndpointClient(Client): """ServiceEndpoint :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/service_hooks/__init__.py b/azure-devops/azure/devops/v4_1/service_hooks/__init__.py new file mode 100644 index 00000000..b2bae03f --- /dev/null +++ b/azure-devops/azure/devops/v4_1/service_hooks/__init__.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Consumer', + 'ConsumerAction', + 'Event', + 'EventTypeDescriptor', + 'ExternalConfigurationDescriptor', + 'FormattedEventMessage', + 'GraphSubjectBase', + 'IdentityRef', + 'InputDescriptor', + 'InputFilter', + 'InputFilterCondition', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Notification', + 'NotificationDetails', + 'NotificationResultsSummaryDetail', + 'NotificationsQuery', + 'NotificationSummary', + 'Publisher', + 'PublisherEvent', + 'PublishersQuery', + 'ReferenceLinks', + 'ResourceContainer', + 'SessionToken', + 'Subscription', + 'SubscriptionDiagnostics', + 'SubscriptionsQuery', + 'SubscriptionTracing', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', + 'VersionedResource', +] diff --git a/azure-devops/azure/devops/v4_1/service_hooks/models.py b/azure-devops/azure/devops/v4_1/service_hooks/models.py new file mode 100644 index 00000000..cb2aa03f --- /dev/null +++ b/azure-devops/azure/devops/v4_1/service_hooks/models.py @@ -0,0 +1,1287 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Consumer(Model): + """Consumer. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param actions: Gets this consumer's actions. + :type actions: list of :class:`ConsumerAction ` + :param authentication_type: Gets or sets this consumer's authentication type. + :type authentication_type: object + :param description: Gets or sets this consumer's localized description. + :type description: str + :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. + :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :param id: Gets or sets this consumer's identifier. + :type id: str + :param image_url: Gets or sets this consumer's image URL, if any. + :type image_url: str + :param information_url: Gets or sets this consumer's information URL, if any. + :type information_url: str + :param input_descriptors: Gets or sets this consumer's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this consumer's localized name. + :type name: str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'actions': {'key': 'actions', 'type': '[ConsumerAction]'}, + 'authentication_type': {'key': 'authenticationType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'external_configuration': {'key': 'externalConfiguration', 'type': 'ExternalConfigurationDescriptor'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'information_url': {'key': 'informationUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, actions=None, authentication_type=None, description=None, external_configuration=None, id=None, image_url=None, information_url=None, input_descriptors=None, name=None, url=None): + super(Consumer, self).__init__() + self._links = _links + self.actions = actions + self.authentication_type = authentication_type + self.description = description + self.external_configuration = external_configuration + self.id = id + self.image_url = image_url + self.information_url = information_url + self.input_descriptors = input_descriptors + self.name = name + self.url = url + + +class ConsumerAction(Model): + """ConsumerAction. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. + :type allow_resource_version_override: bool + :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. + :type consumer_id: str + :param description: Gets or sets this action's localized description. + :type description: str + :param id: Gets or sets this action's identifier. + :type id: str + :param input_descriptors: Gets or sets this action's input descriptors. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets this action's localized name. + :type name: str + :param supported_event_types: Gets or sets this action's supported event identifiers. + :type supported_event_types: list of str + :param supported_resource_versions: Gets or sets this action's supported resource versions. + :type supported_resource_versions: dict + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allow_resource_version_override': {'key': 'allowResourceVersionOverride', 'type': 'bool'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'supported_event_types': {'key': 'supportedEventTypes', 'type': '[str]'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '{[str]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, allow_resource_version_override=None, consumer_id=None, description=None, id=None, input_descriptors=None, name=None, supported_event_types=None, supported_resource_versions=None, url=None): + super(ConsumerAction, self).__init__() + self._links = _links + self.allow_resource_version_override = allow_resource_version_override + self.consumer_id = consumer_id + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.supported_event_types = supported_event_types + self.supported_resource_versions = supported_resource_versions + self.url = url + + +class Event(Model): + """Event. + + :param created_date: Gets or sets the UTC-based date and time that this event was created. + :type created_date: datetime + :param detailed_message: Gets or sets the detailed message associated with this event. + :type detailed_message: :class:`FormattedEventMessage ` + :param event_type: Gets or sets the type of this event. + :type event_type: str + :param id: Gets or sets the unique identifier of this event. + :type id: str + :param message: Gets or sets the (brief) message associated with this event. + :type message: :class:`FormattedEventMessage ` + :param publisher_id: Gets or sets the identifier of the publisher that raised this event. + :type publisher_id: str + :param resource: Gets or sets the data associated with this event. + :type resource: object + :param resource_containers: Gets or sets the resource containers. + :type resource_containers: dict + :param resource_version: Gets or sets the version of the data associated with this event. + :type resource_version: str + :param session_token: Gets or sets the Session Token that can be used in further interactions + :type session_token: :class:`SessionToken ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'detailed_message': {'key': 'detailedMessage', 'type': 'FormattedEventMessage'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'FormattedEventMessage'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_containers': {'key': 'resourceContainers', 'type': '{ResourceContainer}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'session_token': {'key': 'sessionToken', 'type': 'SessionToken'} + } + + def __init__(self, created_date=None, detailed_message=None, event_type=None, id=None, message=None, publisher_id=None, resource=None, resource_containers=None, resource_version=None, session_token=None): + super(Event, self).__init__() + self.created_date = created_date + self.detailed_message = detailed_message + self.event_type = event_type + self.id = id + self.message = message + self.publisher_id = publisher_id + self.resource = resource + self.resource_containers = resource_containers + self.resource_version = resource_version + self.session_token = session_token + + +class EventTypeDescriptor(Model): + """EventTypeDescriptor. + + :param description: A localized description of the event type + :type description: str + :param id: A unique id for the event type + :type id: str + :param input_descriptors: Event-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: A localized friendly name for the event type + :type name: str + :param publisher_id: A unique id for the publisher of this event type + :type publisher_id: str + :param supported_resource_versions: Supported versions for the event's resource payloads. + :type supported_resource_versions: list of str + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, input_descriptors=None, name=None, publisher_id=None, supported_resource_versions=None, url=None): + super(EventTypeDescriptor, self).__init__() + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.publisher_id = publisher_id + self.supported_resource_versions = supported_resource_versions + self.url = url + + +class ExternalConfigurationDescriptor(Model): + """ExternalConfigurationDescriptor. + + :param create_subscription_url: Url of the site to create this type of subscription. + :type create_subscription_url: str + :param edit_subscription_property_name: The name of an input property that contains the URL to edit a subscription. + :type edit_subscription_property_name: str + :param hosted_only: True if the external configuration applies only to hosted. + :type hosted_only: bool + """ + + _attribute_map = { + 'create_subscription_url': {'key': 'createSubscriptionUrl', 'type': 'str'}, + 'edit_subscription_property_name': {'key': 'editSubscriptionPropertyName', 'type': 'str'}, + 'hosted_only': {'key': 'hostedOnly', 'type': 'bool'} + } + + def __init__(self, create_subscription_url=None, edit_subscription_property_name=None, hosted_only=None): + super(ExternalConfigurationDescriptor, self).__init__() + self.create_subscription_url = create_subscription_url + self.edit_subscription_property_name = edit_subscription_property_name + self.hosted_only = hosted_only + + +class FormattedEventMessage(Model): + """FormattedEventMessage. + + :param html: Gets or sets the html format of the message + :type html: str + :param markdown: Gets or sets the markdown format of the message + :type markdown: str + :param text: Gets or sets the raw text of the message + :type text: str + """ + + _attribute_map = { + 'html': {'key': 'html', 'type': 'str'}, + 'markdown': {'key': 'markdown', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, html=None, markdown=None, text=None): + super(FormattedEventMessage, self).__init__() + self.html = html + self.markdown = markdown + self.text = text + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputFilter(Model): + """InputFilter. + + :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. + :type conditions: list of :class:`InputFilterCondition ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[InputFilterCondition]'} + } + + def __init__(self, conditions=None): + super(InputFilter, self).__init__() + self.conditions = conditions + + +class InputFilterCondition(Model): + """InputFilterCondition. + + :param case_sensitive: Whether or not to do a case sensitive match + :type case_sensitive: bool + :param input_id: The Id of the input to filter on + :type input_id: str + :param input_value: The "expected" input value to compare with the actual input value + :type input_value: str + :param operator: The operator applied between the expected and actual input value + :type operator: object + """ + + _attribute_map = { + 'case_sensitive': {'key': 'caseSensitive', 'type': 'bool'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'input_value': {'key': 'inputValue', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'object'} + } + + def __init__(self, case_sensitive=None, input_id=None, input_value=None, operator=None): + super(InputFilterCondition, self).__init__() + self.case_sensitive = case_sensitive + self.input_id = input_id + self.input_value = input_value + self.operator = operator + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class Notification(Model): + """Notification. + + :param created_date: Gets or sets date and time that this result was created. + :type created_date: datetime + :param details: Details about this notification (if available) + :type details: :class:`NotificationDetails ` + :param event_id: The event id associated with this notification + :type event_id: str + :param id: The notification id + :type id: int + :param modified_date: Gets or sets date and time that this result was last modified. + :type modified_date: datetime + :param result: Result of the notification + :type result: object + :param status: Status of the notification + :type status: object + :param subscriber_id: The subscriber Id associated with this notification. This is the last identity who touched in the subscription. In case of test notifications it can be the tester if the subscription is not created yet. + :type subscriber_id: str + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'details': {'key': 'details', 'type': 'NotificationDetails'}, + 'event_id': {'key': 'eventId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, created_date=None, details=None, event_id=None, id=None, modified_date=None, result=None, status=None, subscriber_id=None, subscription_id=None): + super(Notification, self).__init__() + self.created_date = created_date + self.details = details + self.event_id = event_id + self.id = id + self.modified_date = modified_date + self.result = result + self.status = status + self.subscriber_id = subscriber_id + self.subscription_id = subscription_id + + +class NotificationDetails(Model): + """NotificationDetails. + + :param completed_date: Gets or sets the time that this notification was completed (response received from the consumer) + :type completed_date: datetime + :param consumer_action_id: Gets or sets this notification detail's consumer action identifier. + :type consumer_action_id: str + :param consumer_id: Gets or sets this notification detail's consumer identifier. + :type consumer_id: str + :param consumer_inputs: Gets or sets this notification detail's consumer inputs. + :type consumer_inputs: dict + :param dequeued_date: Gets or sets the time that this notification was dequeued for processing + :type dequeued_date: datetime + :param error_detail: Gets or sets this notification detail's error detail. + :type error_detail: str + :param error_message: Gets or sets this notification detail's error message. + :type error_message: str + :param event: Gets or sets this notification detail's event content. + :type event: :class:`Event ` + :param event_type: Gets or sets this notification detail's event type. + :type event_type: str + :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) + :type processed_date: datetime + :param publisher_id: Gets or sets this notification detail's publisher identifier. + :type publisher_id: str + :param publisher_inputs: Gets or sets this notification detail's publisher inputs. + :type publisher_inputs: dict + :param queued_date: Gets or sets the time that this notification was queued (created) + :type queued_date: datetime + :param request: Gets or sets this notification detail's request. + :type request: str + :param request_attempts: Number of requests attempted to be sent to the consumer + :type request_attempts: int + :param request_duration: Duration of the request to the consumer in seconds + :type request_duration: float + :param response: Gets or sets this notification detail's reponse. + :type response: str + """ + + _attribute_map = { + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'dequeued_date': {'key': 'dequeuedDate', 'type': 'iso-8601'}, + 'error_detail': {'key': 'errorDetail', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'processed_date': {'key': 'processedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'str'}, + 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, + 'request_duration': {'key': 'requestDuration', 'type': 'float'}, + 'response': {'key': 'response', 'type': 'str'} + } + + def __init__(self, completed_date=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, dequeued_date=None, error_detail=None, error_message=None, event=None, event_type=None, processed_date=None, publisher_id=None, publisher_inputs=None, queued_date=None, request=None, request_attempts=None, request_duration=None, response=None): + super(NotificationDetails, self).__init__() + self.completed_date = completed_date + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.dequeued_date = dequeued_date + self.error_detail = error_detail + self.error_message = error_message + self.event = event + self.event_type = event_type + self.processed_date = processed_date + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.queued_date = queued_date + self.request = request + self.request_attempts = request_attempts + self.request_duration = request_duration + self.response = response + + +class NotificationResultsSummaryDetail(Model): + """NotificationResultsSummaryDetail. + + :param notification_count: Count of notification sent out with a matching result. + :type notification_count: int + :param result: Result of the notification + :type result: object + """ + + _attribute_map = { + 'notification_count': {'key': 'notificationCount', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'} + } + + def __init__(self, notification_count=None, result=None): + super(NotificationResultsSummaryDetail, self).__init__() + self.notification_count = notification_count + self.result = result + + +class NotificationsQuery(Model): + """NotificationsQuery. + + :param associated_subscriptions: The subscriptions associated with the notifications returned from the query + :type associated_subscriptions: list of :class:`Subscription ` + :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. + :type include_details: bool + :param max_created_date: Optional maximum date at which the notification was created + :type max_created_date: datetime + :param max_results: Optional maximum number of overall results to include + :type max_results: int + :param max_results_per_subscription: Optional maximum number of results for each subscription. Only takes effect when a list of subscription ids is supplied in the query. + :type max_results_per_subscription: int + :param min_created_date: Optional minimum date at which the notification was created + :type min_created_date: datetime + :param publisher_id: Optional publisher id to restrict the results to + :type publisher_id: str + :param results: Results from the query + :type results: list of :class:`Notification ` + :param result_type: Optional notification result type to filter results to + :type result_type: object + :param status: Optional notification status to filter results to + :type status: object + :param subscription_ids: Optional list of subscription ids to restrict the results to + :type subscription_ids: list of str + :param summary: Summary of notifications - the count of each result type (success, fail, ..). + :type summary: list of :class:`NotificationSummary ` + """ + + _attribute_map = { + 'associated_subscriptions': {'key': 'associatedSubscriptions', 'type': '[Subscription]'}, + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'max_created_date': {'key': 'maxCreatedDate', 'type': 'iso-8601'}, + 'max_results': {'key': 'maxResults', 'type': 'int'}, + 'max_results_per_subscription': {'key': 'maxResultsPerSubscription', 'type': 'int'}, + 'min_created_date': {'key': 'minCreatedDate', 'type': 'iso-8601'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[Notification]'}, + 'result_type': {'key': 'resultType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscription_ids': {'key': 'subscriptionIds', 'type': '[str]'}, + 'summary': {'key': 'summary', 'type': '[NotificationSummary]'} + } + + def __init__(self, associated_subscriptions=None, include_details=None, max_created_date=None, max_results=None, max_results_per_subscription=None, min_created_date=None, publisher_id=None, results=None, result_type=None, status=None, subscription_ids=None, summary=None): + super(NotificationsQuery, self).__init__() + self.associated_subscriptions = associated_subscriptions + self.include_details = include_details + self.max_created_date = max_created_date + self.max_results = max_results + self.max_results_per_subscription = max_results_per_subscription + self.min_created_date = min_created_date + self.publisher_id = publisher_id + self.results = results + self.result_type = result_type + self.status = status + self.subscription_ids = subscription_ids + self.summary = summary + + +class NotificationSummary(Model): + """NotificationSummary. + + :param results: The notification results for this particular subscription. + :type results: list of :class:`NotificationResultsSummaryDetail ` + :param subscription_id: The subscription id associated with this notification + :type subscription_id: str + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': '[NotificationResultsSummaryDetail]'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} + } + + def __init__(self, results=None, subscription_id=None): + super(NotificationSummary, self).__init__() + self.results = results + self.subscription_id = subscription_id + + +class Publisher(Model): + """Publisher. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param description: Gets this publisher's localized description. + :type description: str + :param id: Gets this publisher's identifier. + :type id: str + :param input_descriptors: Publisher-specific inputs + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets this publisher's localized name. + :type name: str + :param service_instance_type: The service instance type of the first party publisher. + :type service_instance_type: str + :param supported_events: Gets this publisher's supported event types. + :type supported_events: list of :class:`EventTypeDescriptor ` + :param url: The url for this resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'supported_events': {'key': 'supportedEvents', 'type': '[EventTypeDescriptor]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, input_descriptors=None, name=None, service_instance_type=None, supported_events=None, url=None): + super(Publisher, self).__init__() + self._links = _links + self.description = description + self.id = id + self.input_descriptors = input_descriptors + self.name = name + self.service_instance_type = service_instance_type + self.supported_events = supported_events + self.url = url + + +class PublisherEvent(Model): + """PublisherEvent. + + :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. + :type diagnostics: dict + :param event: The event being published + :type event: :class:`Event ` + :param other_resource_versions: Gets or sets the array of older supported resource versions. + :type other_resource_versions: list of :class:`VersionedResource ` + :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event + :type publisher_input_filters: list of :class:`InputFilter ` + :param subscription: Gets or sets matchd hooks subscription which caused this event. + :type subscription: :class:`Subscription ` + """ + + _attribute_map = { + 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, + 'event': {'key': 'event', 'type': 'Event'}, + 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'subscription': {'key': 'subscription', 'type': 'Subscription'} + } + + def __init__(self, diagnostics=None, event=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): + super(PublisherEvent, self).__init__() + self.diagnostics = diagnostics + self.event = event + self.other_resource_versions = other_resource_versions + self.publisher_input_filters = publisher_input_filters + self.subscription = subscription + + +class PublishersQuery(Model): + """PublishersQuery. + + :param publisher_ids: Optional list of publisher ids to restrict the results to + :type publisher_ids: list of str + :param publisher_inputs: Filter for publisher inputs + :type publisher_inputs: dict + :param results: Results from the query + :type results: list of :class:`Publisher ` + """ + + _attribute_map = { + 'publisher_ids': {'key': 'publisherIds', 'type': '[str]'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'results': {'key': 'results', 'type': '[Publisher]'} + } + + def __init__(self, publisher_ids=None, publisher_inputs=None, results=None): + super(PublishersQuery, self).__init__() + self.publisher_ids = publisher_ids + self.publisher_inputs = publisher_inputs + self.results = results + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResourceContainer(Model): + """ResourceContainer. + + :param base_url: Gets or sets the container's base URL, i.e. the URL of the host (collection, application, or deploument) containing the container resource. + :type base_url: str + :param id: Gets or sets the container's specific Id. + :type id: str + :param name: Gets or sets the container's name. + :type name: str + :param url: Gets or sets the container's REST API URL. + :type url: str + """ + + _attribute_map = { + 'base_url': {'key': 'baseUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, base_url=None, id=None, name=None, url=None): + super(ResourceContainer, self).__init__() + self.base_url = base_url + self.id = id + self.name = name + self.url = url + + +class SessionToken(Model): + """SessionToken. + + :param error: The error message in case of error + :type error: str + :param token: The access token + :type token: str + :param valid_to: The expiration date in UTC + :type valid_to: datetime + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'}, + 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} + } + + def __init__(self, error=None, token=None, valid_to=None): + super(SessionToken, self).__init__() + self.error = error + self.token = token + self.valid_to = valid_to + + +class Subscription(Model): + """Subscription. + + :param _links: Reference Links + :type _links: :class:`ReferenceLinks ` + :param action_description: + :type action_description: str + :param consumer_action_id: + :type consumer_action_id: str + :param consumer_id: + :type consumer_id: str + :param consumer_inputs: Consumer input values + :type consumer_inputs: dict + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_date: + :type created_date: datetime + :param event_description: + :type event_description: str + :param event_type: + :type event_type: str + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_date: + :type modified_date: datetime + :param probation_retries: + :type probation_retries: str + :param publisher_id: + :type publisher_id: str + :param publisher_inputs: Publisher input values + :type publisher_inputs: dict + :param resource_version: + :type resource_version: str + :param status: + :type status: object + :param subscriber: + :type subscriber: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'action_description': {'key': 'actionDescription', 'type': 'str'}, + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'event_description': {'key': 'eventDescription', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'probation_retries': {'key': 'probationRetries', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, action_description=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, created_by=None, created_date=None, event_description=None, event_type=None, id=None, modified_by=None, modified_date=None, probation_retries=None, publisher_id=None, publisher_inputs=None, resource_version=None, status=None, subscriber=None, url=None): + super(Subscription, self).__init__() + self._links = _links + self.action_description = action_description + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_inputs = consumer_inputs + self.created_by = created_by + self.created_date = created_date + self.event_description = event_description + self.event_type = event_type + self.id = id + self.modified_by = modified_by + self.modified_date = modified_date + self.probation_retries = probation_retries + self.publisher_id = publisher_id + self.publisher_inputs = publisher_inputs + self.resource_version = resource_version + self.status = status + self.subscriber = subscriber + self.url = url + + +class SubscriptionDiagnostics(Model): + """SubscriptionDiagnostics. + + :param delivery_results: + :type delivery_results: :class:`SubscriptionTracing ` + :param delivery_tracing: + :type delivery_tracing: :class:`SubscriptionTracing ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`SubscriptionTracing ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(SubscriptionDiagnostics, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + +class SubscriptionsQuery(Model): + """SubscriptionsQuery. + + :param consumer_action_id: Optional consumer action id to restrict the results to (null for any) + :type consumer_action_id: str + :param consumer_id: Optional consumer id to restrict the results to (null for any) + :type consumer_id: str + :param consumer_input_filters: Filter for subscription consumer inputs + :type consumer_input_filters: list of :class:`InputFilter ` + :param event_type: Optional event type id to restrict the results to (null for any) + :type event_type: str + :param publisher_id: Optional publisher id to restrict the results to (null for any) + :type publisher_id: str + :param publisher_input_filters: Filter for subscription publisher inputs + :type publisher_input_filters: list of :class:`InputFilter ` + :param results: Results from the query + :type results: list of :class:`Subscription ` + :param subscriber_id: Optional subscriber filter. + :type subscriber_id: str + """ + + _attribute_map = { + 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, + 'consumer_id': {'key': 'consumerId', 'type': 'str'}, + 'consumer_input_filters': {'key': 'consumerInputFilters', 'type': '[InputFilter]'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, + 'results': {'key': 'results', 'type': '[Subscription]'}, + 'subscriber_id': {'key': 'subscriberId', 'type': 'str'} + } + + def __init__(self, consumer_action_id=None, consumer_id=None, consumer_input_filters=None, event_type=None, publisher_id=None, publisher_input_filters=None, results=None, subscriber_id=None): + super(SubscriptionsQuery, self).__init__() + self.consumer_action_id = consumer_action_id + self.consumer_id = consumer_id + self.consumer_input_filters = consumer_input_filters + self.event_type = event_type + self.publisher_id = publisher_id + self.publisher_input_filters = publisher_input_filters + self.results = results + self.subscriber_id = subscriber_id + + +class SubscriptionTracing(Model): + """SubscriptionTracing. + + :param enabled: + :type enabled: bool + :param end_date: Trace until the specified end date. + :type end_date: datetime + :param max_traced_entries: The maximum number of result details to trace. + :type max_traced_entries: int + :param start_date: The date and time tracing started. + :type start_date: datetime + :param traced_entries: Trace until remaining count reaches 0. + :type traced_entries: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} + } + + def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): + super(SubscriptionTracing, self).__init__() + self.enabled = enabled + self.end_date = end_date + self.max_traced_entries = max_traced_entries + self.start_date = start_date + self.traced_entries = traced_entries + + +class UpdateSubscripitonDiagnosticsParameters(Model): + """UpdateSubscripitonDiagnosticsParameters. + + :param delivery_results: + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :param delivery_tracing: + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(UpdateSubscripitonDiagnosticsParameters, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + +class UpdateSubscripitonTracingParameters(Model): + """UpdateSubscripitonTracingParameters. + + :param enabled: + :type enabled: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'} + } + + def __init__(self, enabled=None): + super(UpdateSubscripitonTracingParameters, self).__init__() + self.enabled = enabled + + +class VersionedResource(Model): + """VersionedResource. + + :param compatible_with: Gets or sets the reference to the compatible version. + :type compatible_with: str + :param resource: Gets or sets the resource data. + :type resource: object + :param resource_version: Gets or sets the version of the resource data. + :type resource_version: str + """ + + _attribute_map = { + 'compatible_with': {'key': 'compatibleWith', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'object'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'str'} + } + + def __init__(self, compatible_with=None, resource=None, resource_version=None): + super(VersionedResource, self).__init__() + self.compatible_with = compatible_with + self.resource = resource + self.resource_version = resource_version + + +__all__ = [ + 'Consumer', + 'ConsumerAction', + 'Event', + 'EventTypeDescriptor', + 'ExternalConfigurationDescriptor', + 'FormattedEventMessage', + 'GraphSubjectBase', + 'IdentityRef', + 'InputDescriptor', + 'InputFilter', + 'InputFilterCondition', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Notification', + 'NotificationDetails', + 'NotificationResultsSummaryDetail', + 'NotificationsQuery', + 'NotificationSummary', + 'Publisher', + 'PublisherEvent', + 'PublishersQuery', + 'ReferenceLinks', + 'ResourceContainer', + 'SessionToken', + 'Subscription', + 'SubscriptionDiagnostics', + 'SubscriptionsQuery', + 'SubscriptionTracing', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', + 'VersionedResource', +] diff --git a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py b/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py similarity index 99% rename from vsts/vsts/service_hooks/v4_1/service_hooks_client.py rename to azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py index 982e6e1f..fd5f6f00 100644 --- a/vsts/vsts/service_hooks/v4_1/service_hooks_client.py +++ b/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class ServiceHooksClient(VssClient): +class ServiceHooksClient(Client): """ServiceHooks :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/cloud_load_test/__init__.py b/azure-devops/azure/devops/v4_1/settings/__init__.py similarity index 97% rename from vsts/vsts/cloud_load_test/__init__.py rename to azure-devops/azure/devops/v4_1/settings/__init__.py index f885a96e..02c32760 100644 --- a/vsts/vsts/cloud_load_test/__init__.py +++ b/azure-devops/azure/devops/v4_1/settings/__init__.py @@ -5,3 +5,7 @@ # Generated file, DO NOT EDIT # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- + + +__all__ = [ +] diff --git a/vsts/vsts/settings/v4_1/settings_client.py b/azure-devops/azure/devops/v4_1/settings/settings_client.py similarity index 99% rename from vsts/vsts/settings/v4_1/settings_client.py rename to azure-devops/azure/devops/v4_1/settings/settings_client.py index 4d313fd8..723e9efb 100644 --- a/vsts/vsts/settings/v4_1/settings_client.py +++ b/azure-devops/azure/devops/v4_1/settings/settings_client.py @@ -7,10 +7,10 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client -class SettingsClient(VssClient): +class SettingsClient(Client): """Settings :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/symbol/__init__.py b/azure-devops/azure/devops/v4_1/symbol/__init__.py new file mode 100644 index 00000000..3f7c7180 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/symbol/__init__.py @@ -0,0 +1,19 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'DebugEntry', + 'DebugEntryCreateBatch', + 'JsonBlobBlockHash', + 'JsonBlobIdentifier', + 'JsonBlobIdentifierWithBlocks', + 'Request', + 'ResourceBase', +] diff --git a/azure-devops/azure/devops/v4_1/symbol/models.py b/azure-devops/azure/devops/v4_1/symbol/models.py new file mode 100644 index 00000000..4259cf69 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/symbol/models.py @@ -0,0 +1,222 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DebugEntryCreateBatch(Model): + """DebugEntryCreateBatch. + + :param create_behavior: Defines what to do when a debug entry in the batch already exists. + :type create_behavior: object + :param debug_entries: The debug entries. + :type debug_entries: list of :class:`DebugEntry ` + """ + + _attribute_map = { + 'create_behavior': {'key': 'createBehavior', 'type': 'object'}, + 'debug_entries': {'key': 'debugEntries', 'type': '[DebugEntry]'} + } + + def __init__(self, create_behavior=None, debug_entries=None): + super(DebugEntryCreateBatch, self).__init__() + self.create_behavior = create_behavior + self.debug_entries = debug_entries + + +class JsonBlobBlockHash(Model): + """JsonBlobBlockHash. + + :param hash_bytes: + :type hash_bytes: str + """ + + _attribute_map = { + 'hash_bytes': {'key': 'hashBytes', 'type': 'str'} + } + + def __init__(self, hash_bytes=None): + super(JsonBlobBlockHash, self).__init__() + self.hash_bytes = hash_bytes + + +class JsonBlobIdentifier(Model): + """JsonBlobIdentifier. + + :param identifier_value: + :type identifier_value: str + """ + + _attribute_map = { + 'identifier_value': {'key': 'identifierValue', 'type': 'str'} + } + + def __init__(self, identifier_value=None): + super(JsonBlobIdentifier, self).__init__() + self.identifier_value = identifier_value + + +class JsonBlobIdentifierWithBlocks(Model): + """JsonBlobIdentifierWithBlocks. + + :param block_hashes: + :type block_hashes: list of :class:`JsonBlobBlockHash ` + :param identifier_value: + :type identifier_value: str + """ + + _attribute_map = { + 'block_hashes': {'key': 'blockHashes', 'type': '[JsonBlobBlockHash]'}, + 'identifier_value': {'key': 'identifierValue', 'type': 'str'} + } + + def __init__(self, block_hashes=None, identifier_value=None): + super(JsonBlobIdentifierWithBlocks, self).__init__() + self.block_hashes = block_hashes + self.identifier_value = identifier_value + + +class ResourceBase(Model): + """ResourceBase. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None): + super(ResourceBase, self).__init__() + self.created_by = created_by + self.created_date = created_date + self.id = id + self.storage_eTag = storage_eTag + self.url = url + + +class DebugEntry(ResourceBase): + """DebugEntry. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + :param blob_details: + :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` + :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. + :type blob_identifier: :class:`JsonBlobIdentifier ` + :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. + :type blob_uri: str + :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. + :type client_key: str + :param information_level: The information level this debug entry contains. + :type information_level: object + :param request_id: The identifier of symbol request to which this debug entry belongs. + :type request_id: str + :param status: The status of debug entry. + :type status: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'blob_details': {'key': 'blobDetails', 'type': 'JsonBlobIdentifierWithBlocks'}, + 'blob_identifier': {'key': 'blobIdentifier', 'type': 'JsonBlobIdentifier'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'client_key': {'key': 'clientKey', 'type': 'str'}, + 'information_level': {'key': 'informationLevel', 'type': 'object'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, blob_details=None, blob_identifier=None, blob_uri=None, client_key=None, information_level=None, request_id=None, status=None): + super(DebugEntry, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) + self.blob_details = blob_details + self.blob_identifier = blob_identifier + self.blob_uri = blob_uri + self.client_key = client_key + self.information_level = information_level + self.request_id = request_id + self.status = status + + +class Request(ResourceBase): + """Request. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + :param description: An optional human-facing description. + :type description: str + :param expiration_date: An optional expiration date for the request. The request will become inaccessible and get deleted after the date, regardless of its status. On an HTTP POST, if expiration date is null/missing, the server will assign a default expiration data (30 days unless overwridden in the registry at the account level). On PATCH, if expiration date is null/missing, the behavior is to not change whatever the request's current expiration date is. + :type expiration_date: datetime + :param name: A human-facing name for the request. Required on POST, ignored on PATCH. + :type name: str + :param status: The status for this request. + :type status: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, description=None, expiration_date=None, name=None, status=None): + super(Request, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) + self.description = description + self.expiration_date = expiration_date + self.name = name + self.status = status + + +__all__ = [ + 'DebugEntryCreateBatch', + 'JsonBlobBlockHash', + 'JsonBlobIdentifier', + 'JsonBlobIdentifierWithBlocks', + 'ResourceBase', + 'DebugEntry', + 'Request', +] diff --git a/vsts/vsts/symbol/v4_1/symbol_client.py b/azure-devops/azure/devops/v4_1/symbol/symbol_client.py similarity index 99% rename from vsts/vsts/symbol/v4_1/symbol_client.py rename to azure-devops/azure/devops/v4_1/symbol/symbol_client.py index c8bd758c..1465caed 100644 --- a/vsts/vsts/symbol/v4_1/symbol_client.py +++ b/azure-devops/azure/devops/v4_1/symbol/symbol_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class SymbolClient(VssClient): +class SymbolClient(Client): """Symbol :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/task/__init__.py b/azure-devops/azure/devops/v4_1/task/__init__.py new file mode 100644 index 00000000..fdaed92f --- /dev/null +++ b/azure-devops/azure/devops/v4_1/task/__init__.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Issue', + 'JobOption', + 'MaskHint', + 'PlanEnvironment', + 'ProjectReference', + 'ReferenceLinks', + 'TaskAttachment', + 'TaskLog', + 'TaskLogReference', + 'TaskOrchestrationContainer', + 'TaskOrchestrationItem', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlan', + 'TaskOrchestrationPlanGroupsQueueMetrics', + 'TaskOrchestrationPlanReference', + 'TaskOrchestrationQueuedPlan', + 'TaskOrchestrationQueuedPlanGroup', + 'TaskReference', + 'Timeline', + 'TimelineRecord', + 'TimelineReference', + 'VariableValue', +] diff --git a/azure-devops/azure/devops/v4_1/task/models.py b/azure-devops/azure/devops/v4_1/task/models.py new file mode 100644 index 00000000..65ee51ff --- /dev/null +++ b/azure-devops/azure/devops/v4_1/task/models.py @@ -0,0 +1,788 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Issue(Model): + """Issue. + + :param category: + :type category: str + :param data: + :type data: dict + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, category=None, data=None, message=None, type=None): + super(Issue, self).__init__() + self.category = category + self.data = data + self.message = message + self.type = type + + +class JobOption(Model): + """JobOption. + + :param data: + :type data: dict + :param id: Gets the id of the option. + :type id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, data=None, id=None): + super(JobOption, self).__init__() + self.data = data + self.id = id + + +class MaskHint(Model): + """MaskHint. + + :param type: + :type type: object + :param value: + :type value: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, type=None, value=None): + super(MaskHint, self).__init__() + self.type = type + self.value = value + + +class PlanEnvironment(Model): + """PlanEnvironment. + + :param mask: + :type mask: list of :class:`MaskHint ` + :param options: + :type options: dict + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'mask': {'key': 'mask', 'type': '[MaskHint]'}, + 'options': {'key': 'options', 'type': '{JobOption}'}, + 'variables': {'key': 'variables', 'type': '{str}'} + } + + def __init__(self, mask=None, options=None, variables=None): + super(PlanEnvironment, self).__init__() + self.mask = mask + self.options = options + self.variables = variables + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class TaskAttachment(Model): + """TaskAttachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_on: + :type created_on: datetime + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param name: + :type name: str + :param record_id: + :type record_id: str + :param timeline_id: + :type timeline_id: str + :param type: + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, last_changed_by=None, last_changed_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(TaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type + + +class TaskLogReference(Model): + """TaskLogReference. + + :param id: + :type id: int + :param location: + :type location: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, id=None, location=None): + super(TaskLogReference, self).__init__() + self.id = id + self.location = location + + +class TaskOrchestrationItem(Model): + """TaskOrchestrationItem. + + :param item_type: + :type item_type: object + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'} + } + + def __init__(self, item_type=None): + super(TaskOrchestrationItem, self).__init__() + self.item_type = item_type + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name + + +class TaskOrchestrationPlanGroupsQueueMetrics(Model): + """TaskOrchestrationPlanGroupsQueueMetrics. + + :param count: + :type count: int + :param status: + :type status: object + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, count=None, status=None): + super(TaskOrchestrationPlanGroupsQueueMetrics, self).__init__() + self.count = count + self.status = status + + +class TaskOrchestrationPlanReference(Model): + """TaskOrchestrationPlanReference. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): + super(TaskOrchestrationPlanReference, self).__init__() + self.artifact_location = artifact_location + self.artifact_uri = artifact_uri + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.plan_type = plan_type + self.scope_identifier = scope_identifier + self.version = version + + +class TaskOrchestrationQueuedPlan(Model): + """TaskOrchestrationQueuedPlan. + + :param assign_time: + :type assign_time: datetime + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param pool_id: + :type pool_id: int + :param queue_position: + :type queue_position: int + :param queue_time: + :type queue_time: datetime + :param scope_identifier: + :type scope_identifier: str + """ + + _attribute_map = { + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'pool_id': {'key': 'poolId', 'type': 'int'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'} + } + + def __init__(self, assign_time=None, definition=None, owner=None, plan_group=None, plan_id=None, pool_id=None, queue_position=None, queue_time=None, scope_identifier=None): + super(TaskOrchestrationQueuedPlan, self).__init__() + self.assign_time = assign_time + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.pool_id = pool_id + self.queue_position = queue_position + self.queue_time = queue_time + self.scope_identifier = scope_identifier + + +class TaskOrchestrationQueuedPlanGroup(Model): + """TaskOrchestrationQueuedPlanGroup. + + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plans: + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :param project: + :type project: :class:`ProjectReference ` + :param queue_position: + :type queue_position: int + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plans': {'key': 'plans', 'type': '[TaskOrchestrationQueuedPlan]'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'} + } + + def __init__(self, definition=None, owner=None, plan_group=None, plans=None, project=None, queue_position=None): + super(TaskOrchestrationQueuedPlanGroup, self).__init__() + self.definition = definition + self.owner = owner + self.plan_group = plan_group + self.plans = plans + self.project = project + self.queue_position = queue_position + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version + + +class TimelineRecord(Model): + """TimelineRecord. + + :param change_id: + :type change_id: int + :param current_operation: + :type current_operation: str + :param details: + :type details: :class:`TimelineReference ` + :param error_count: + :type error_count: int + :param finish_time: + :type finish_time: datetime + :param id: + :type id: str + :param issues: + :type issues: list of :class:`Issue ` + :param last_modified: + :type last_modified: datetime + :param location: + :type location: str + :param log: + :type log: :class:`TaskLogReference ` + :param name: + :type name: str + :param order: + :type order: int + :param parent_id: + :type parent_id: str + :param percent_complete: + :type percent_complete: int + :param ref_name: + :type ref_name: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param task: + :type task: :class:`TaskReference ` + :param type: + :type type: str + :param variables: + :type variables: dict + :param warning_count: + :type warning_count: int + :param worker_name: + :type worker_name: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'current_operation': {'key': 'currentOperation', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'TimelineReference'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'location': {'key': 'location', 'type': 'str'}, + 'log': {'key': 'log', 'type': 'TaskLogReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'TaskReference'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'}, + 'worker_name': {'key': 'workerName', 'type': 'str'} + } + + def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): + super(TimelineRecord, self).__init__() + self.change_id = change_id + self.current_operation = current_operation + self.details = details + self.error_count = error_count + self.finish_time = finish_time + self.id = id + self.issues = issues + self.last_modified = last_modified + self.location = location + self.log = log + self.name = name + self.order = order + self.parent_id = parent_id + self.percent_complete = percent_complete + self.ref_name = ref_name + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.task = task + self.type = type + self.variables = variables + self.warning_count = warning_count + self.worker_name = worker_name + + +class TimelineReference(Model): + """TimelineReference. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'} + } + + def __init__(self, change_id=None, id=None, location=None): + super(TimelineReference, self).__init__() + self.change_id = change_id + self.id = id + self.location = location + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class TaskLog(TaskLogReference): + """TaskLog. + + :param id: + :type id: int + :param location: + :type location: str + :param created_on: + :type created_on: datetime + :param index_location: + :type index_location: str + :param last_changed_on: + :type last_changed_on: datetime + :param line_count: + :type line_count: long + :param path: + :type path: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'location': {'key': 'location', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'index_location': {'key': 'indexLocation', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, id=None, location=None, created_on=None, index_location=None, last_changed_on=None, line_count=None, path=None): + super(TaskLog, self).__init__(id=id, location=location) + self.created_on = created_on + self.index_location = index_location + self.last_changed_on = last_changed_on + self.line_count = line_count + self.path = path + + +class TaskOrchestrationContainer(TaskOrchestrationItem): + """TaskOrchestrationContainer. + + :param item_type: + :type item_type: object + :param children: + :type children: list of :class:`TaskOrchestrationItem ` + :param continue_on_error: + :type continue_on_error: bool + :param data: + :type data: dict + :param max_concurrency: + :type max_concurrency: int + :param parallel: + :type parallel: bool + :param rollback: + :type rollback: :class:`TaskOrchestrationContainer ` + """ + + _attribute_map = { + 'item_type': {'key': 'itemType', 'type': 'object'}, + 'children': {'key': 'children', 'type': '[TaskOrchestrationItem]'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'max_concurrency': {'key': 'maxConcurrency', 'type': 'int'}, + 'parallel': {'key': 'parallel', 'type': 'bool'}, + 'rollback': {'key': 'rollback', 'type': 'TaskOrchestrationContainer'} + } + + def __init__(self, item_type=None, children=None, continue_on_error=None, data=None, max_concurrency=None, parallel=None, rollback=None): + super(TaskOrchestrationContainer, self).__init__(item_type=item_type) + self.children = children + self.continue_on_error = continue_on_error + self.data = data + self.max_concurrency = max_concurrency + self.parallel = parallel + self.rollback = rollback + + +class TaskOrchestrationPlan(TaskOrchestrationPlanReference): + """TaskOrchestrationPlan. + + :param artifact_location: + :type artifact_location: str + :param artifact_uri: + :type artifact_uri: str + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param scope_identifier: + :type scope_identifier: str + :param version: + :type version: int + :param environment: + :type environment: :class:`PlanEnvironment ` + :param finish_time: + :type finish_time: datetime + :param implementation: + :type implementation: :class:`TaskOrchestrationContainer ` + :param requested_by_id: + :type requested_by_id: str + :param requested_for_id: + :type requested_for_id: str + :param result: + :type result: object + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param state: + :type state: object + :param timeline: + :type timeline: :class:`TimelineReference ` + """ + + _attribute_map = { + 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, + 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, + 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, + 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} + } + + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): + super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_group=plan_group, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) + self.environment = environment + self.finish_time = finish_time + self.implementation = implementation + self.requested_by_id = requested_by_id + self.requested_for_id = requested_for_id + self.result = result + self.result_code = result_code + self.start_time = start_time + self.state = state + self.timeline = timeline + + +class Timeline(TimelineReference): + """Timeline. + + :param change_id: + :type change_id: int + :param id: + :type id: str + :param location: + :type location: str + :param last_changed_by: + :type last_changed_by: str + :param last_changed_on: + :type last_changed_on: datetime + :param records: + :type records: list of :class:`TimelineRecord ` + """ + + _attribute_map = { + 'change_id': {'key': 'changeId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, + 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, + 'records': {'key': 'records', 'type': '[TimelineRecord]'} + } + + def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, last_changed_on=None, records=None): + super(Timeline, self).__init__(change_id=change_id, id=id, location=location) + self.last_changed_by = last_changed_by + self.last_changed_on = last_changed_on + self.records = records + + +__all__ = [ + 'Issue', + 'JobOption', + 'MaskHint', + 'PlanEnvironment', + 'ProjectReference', + 'ReferenceLinks', + 'TaskAttachment', + 'TaskLogReference', + 'TaskOrchestrationItem', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlanGroupsQueueMetrics', + 'TaskOrchestrationPlanReference', + 'TaskOrchestrationQueuedPlan', + 'TaskOrchestrationQueuedPlanGroup', + 'TaskReference', + 'TimelineRecord', + 'TimelineReference', + 'VariableValue', + 'TaskLog', + 'TaskOrchestrationContainer', + 'TaskOrchestrationPlan', + 'Timeline', +] diff --git a/vsts/vsts/task/v4_1/task_client.py b/azure-devops/azure/devops/v4_1/task/task_client.py similarity index 99% rename from vsts/vsts/task/v4_1/task_client.py rename to azure-devops/azure/devops/v4_1/task/task_client.py index fce502f9..a60046f3 100644 --- a/vsts/vsts/task/v4_1/task_client.py +++ b/azure-devops/azure/devops/v4_1/task/task_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TaskClient(VssClient): +class TaskClient(Client): """Task :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/task_agent/__init__.py b/azure-devops/azure/devops/v4_1/task_agent/__init__.py new file mode 100644 index 00000000..776d8213 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/task_agent/__init__.py @@ -0,0 +1,117 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'ClientCertificate', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'DeploymentGroup', + 'DeploymentGroupCreateParameter', + 'DeploymentGroupCreateParameterPoolProperty', + 'DeploymentGroupMetrics', + 'DeploymentGroupReference', + 'DeploymentGroupUpdateParameter', + 'DeploymentMachine', + 'DeploymentMachineGroup', + 'DeploymentMachineGroupReference', + 'DeploymentPoolSummary', + 'DeploymentTargetUpdateParameter', + 'EndpointAuthorization', + 'EndpointUrl', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValidationRequest', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'MetricsColumnMetaData', + 'MetricsColumnsHeader', + 'MetricsRow', + 'OAuthConfiguration', + 'OAuthConfigurationParams', + 'PackageMetadata', + 'PackageVersion', + 'ProjectReference', + 'PublishTaskGroupMetadata', + 'ReferenceLinks', + 'ResourceUsage', + 'ResultTransformationDetails', + 'SecureFile', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'TaskAgent', + 'TaskAgentAuthorization', + 'TaskAgentDelaySource', + 'TaskAgentJobRequest', + 'TaskAgentMessage', + 'TaskAgentPool', + 'TaskAgentPoolMaintenanceDefinition', + 'TaskAgentPoolMaintenanceJob', + 'TaskAgentPoolMaintenanceJobTargetAgent', + 'TaskAgentPoolMaintenanceOptions', + 'TaskAgentPoolMaintenanceRetentionPolicy', + 'TaskAgentPoolMaintenanceSchedule', + 'TaskAgentPoolReference', + 'TaskAgentPublicKey', + 'TaskAgentQueue', + 'TaskAgentReference', + 'TaskAgentSession', + 'TaskAgentSessionKey', + 'TaskAgentUpdate', + 'TaskAgentUpdateReason', + 'TaskDefinition', + 'TaskDefinitionEndpoint', + 'TaskDefinitionReference', + 'TaskExecution', + 'TaskGroup', + 'TaskGroupCreateParameter', + 'TaskGroupDefinition', + 'TaskGroupRevision', + 'TaskGroupStep', + 'TaskGroupUpdateParameter', + 'TaskHubLicenseDetails', + 'TaskInputDefinition', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlanGroup', + 'TaskOutputVariable', + 'TaskPackageMetadata', + 'TaskReference', + 'TaskSourceDefinition', + 'TaskSourceDefinitionBase', + 'TaskVersion', + 'ValidationItem', + 'VariableGroup', + 'VariableGroupParameters', + 'VariableGroupProviderData', + 'VariableValue', +] diff --git a/azure-devops/azure/devops/v4_1/task_agent/models.py b/azure-devops/azure/devops/v4_1/task_agent/models.py new file mode 100644 index 00000000..4453828a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/task_agent/models.py @@ -0,0 +1,3721 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AadOauthTokenRequest(Model): + """AadOauthTokenRequest. + + :param refresh: + :type refresh: bool + :param resource: + :type resource: str + :param tenant_id: + :type tenant_id: str + :param token: + :type token: str + """ + + _attribute_map = { + 'refresh': {'key': 'refresh', 'type': 'bool'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, refresh=None, resource=None, tenant_id=None, token=None): + super(AadOauthTokenRequest, self).__init__() + self.refresh = refresh + self.resource = resource + self.tenant_id = tenant_id + self.token = token + + +class AadOauthTokenResult(Model): + """AadOauthTokenResult. + + :param access_token: + :type access_token: str + :param refresh_token_cache: + :type refresh_token_cache: str + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'} + } + + def __init__(self, access_token=None, refresh_token_cache=None): + super(AadOauthTokenResult, self).__init__() + self.access_token = access_token + self.refresh_token_cache = refresh_token_cache + + +class AuthenticationSchemeReference(Model): + """AuthenticationSchemeReference. + + :param inputs: + :type inputs: dict + :param type: + :type type: str + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, inputs=None, type=None): + super(AuthenticationSchemeReference, self).__init__() + self.inputs = inputs + self.type = type + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: Gets or sets the name of authorization header. + :type name: str + :param value: Gets or sets the value of authorization header. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class AzureSubscription(Model): + """AzureSubscription. + + :param display_name: + :type display_name: str + :param subscription_id: + :type subscription_id: str + :param subscription_tenant_id: + :type subscription_tenant_id: str + :param subscription_tenant_name: + :type subscription_tenant_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, + 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} + } + + def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): + super(AzureSubscription, self).__init__() + self.display_name = display_name + self.subscription_id = subscription_id + self.subscription_tenant_id = subscription_tenant_id + self.subscription_tenant_name = subscription_tenant_name + + +class AzureSubscriptionQueryResult(Model): + """AzureSubscriptionQueryResult. + + :param error_message: + :type error_message: str + :param value: + :type value: list of :class:`AzureSubscription ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureSubscription]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureSubscriptionQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + +class ClientCertificate(Model): + """ClientCertificate. + + :param value: Gets or sets the value of client certificate. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, value=None): + super(ClientCertificate, self).__init__() + self.value = value + + +class DataSource(Model): + """DataSource. + + :param authentication_scheme: + :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param name: + :type name: str + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): + super(DataSource, self).__init__() + self.authentication_scheme = authentication_scheme + self.endpoint_url = endpoint_url + self.headers = headers + self.name = name + self.resource_url = resource_url + self.result_selector = result_selector + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DataSourceDetails(Model): + """DataSourceDetails. + + :param data_source_name: + :type data_source_name: str + :param data_source_url: + :type data_source_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: + :type parameters: dict + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): + super(DataSourceDetails, self).__init__() + self.data_source_name = data_source_name + self.data_source_url = data_source_url + self.headers = headers + self.parameters = parameters + self.resource_url = resource_url + self.result_selector = result_selector + + +class DependencyBinding(Model): + """DependencyBinding. + + :param key: + :type key: str + :param value: + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, key=None, value=None): + super(DependencyBinding, self).__init__() + self.key = key + self.value = value + + +class DependencyData(Model): + """DependencyData. + + :param input: + :type input: str + :param map: + :type map: list of { key: str; value: [{ key: str; value: str }] } + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} + } + + def __init__(self, input=None, map=None): + super(DependencyData, self).__init__() + self.input = input + self.map = map + + +class DependsOn(Model): + """DependsOn. + + :param input: + :type input: str + :param map: + :type map: list of :class:`DependencyBinding ` + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[DependencyBinding]'} + } + + def __init__(self, input=None, map=None): + super(DependsOn, self).__init__() + self.input = input + self.map = map + + +class DeploymentGroupCreateParameter(Model): + """DeploymentGroupCreateParameter. + + :param description: Description of the deployment group. + :type description: str + :param name: Name of the deployment group. + :type name: str + :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :param pool_id: Identifier of the deployment pool in which deployment agents are registered. + :type pool_id: int + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'DeploymentGroupCreateParameterPoolProperty'}, + 'pool_id': {'key': 'poolId', 'type': 'int'} + } + + def __init__(self, description=None, name=None, pool=None, pool_id=None): + super(DeploymentGroupCreateParameter, self).__init__() + self.description = description + self.name = name + self.pool = pool + self.pool_id = pool_id + + +class DeploymentGroupCreateParameterPoolProperty(Model): + """DeploymentGroupCreateParameterPoolProperty. + + :param id: Deployment pool identifier. + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(DeploymentGroupCreateParameterPoolProperty, self).__init__() + self.id = id + + +class DeploymentGroupMetrics(Model): + """DeploymentGroupMetrics. + + :param columns_header: List of deployment group properties. And types of metrics provided for those properties. + :type columns_header: :class:`MetricsColumnsHeader ` + :param deployment_group: Deployment group. + :type deployment_group: :class:`DeploymentGroupReference ` + :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. + :type rows: list of :class:`MetricsRow ` + """ + + _attribute_map = { + 'columns_header': {'key': 'columnsHeader', 'type': 'MetricsColumnsHeader'}, + 'deployment_group': {'key': 'deploymentGroup', 'type': 'DeploymentGroupReference'}, + 'rows': {'key': 'rows', 'type': '[MetricsRow]'} + } + + def __init__(self, columns_header=None, deployment_group=None, rows=None): + super(DeploymentGroupMetrics, self).__init__() + self.columns_header = columns_header + self.deployment_group = deployment_group + self.rows = rows + + +class DeploymentGroupReference(Model): + """DeploymentGroupReference. + + :param id: Deployment group identifier. + :type id: int + :param name: Name of the deployment group. + :type name: str + :param pool: Deployment pool in which deployment agents are registered. + :type pool: :class:`TaskAgentPoolReference ` + :param project: Project to which the deployment group belongs. + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project + + +class DeploymentGroupUpdateParameter(Model): + """DeploymentGroupUpdateParameter. + + :param description: Description of the deployment group. + :type description: str + :param name: Name of the deployment group. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(DeploymentGroupUpdateParameter, self).__init__() + self.description = description + self.name = name + + +class DeploymentMachine(Model): + """DeploymentMachine. + + :param agent: Deployment agent. + :type agent: :class:`TaskAgent ` + :param id: Deployment target Identifier. + :type id: int + :param tags: Tags of the deployment target. + :type tags: list of str + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgent'}, + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, agent=None, id=None, tags=None): + super(DeploymentMachine, self).__init__() + self.agent = agent + self.id = id + self.tags = tags + + +class DeploymentMachineGroupReference(Model): + """DeploymentMachineGroupReference. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'} + } + + def __init__(self, id=None, name=None, pool=None, project=None): + super(DeploymentMachineGroupReference, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project = project + + +class DeploymentPoolSummary(Model): + """DeploymentPoolSummary. + + :param deployment_groups: List of deployment groups referring to the deployment pool. + :type deployment_groups: list of :class:`DeploymentGroupReference ` + :param offline_agents_count: Number of deployment agents that are offline. + :type offline_agents_count: int + :param online_agents_count: Number of deployment agents that are online. + :type online_agents_count: int + :param pool: Deployment pool. + :type pool: :class:`TaskAgentPoolReference ` + """ + + _attribute_map = { + 'deployment_groups': {'key': 'deploymentGroups', 'type': '[DeploymentGroupReference]'}, + 'offline_agents_count': {'key': 'offlineAgentsCount', 'type': 'int'}, + 'online_agents_count': {'key': 'onlineAgentsCount', 'type': 'int'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'} + } + + def __init__(self, deployment_groups=None, offline_agents_count=None, online_agents_count=None, pool=None): + super(DeploymentPoolSummary, self).__init__() + self.deployment_groups = deployment_groups + self.offline_agents_count = offline_agents_count + self.online_agents_count = online_agents_count + self.pool = pool + + +class DeploymentTargetUpdateParameter(Model): + """DeploymentTargetUpdateParameter. + + :param id: Identifier of the deployment target. + :type id: int + :param tags: + :type tags: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, id=None, tags=None): + super(DeploymentTargetUpdateParameter, self).__init__() + self.id = id + self.tags = tags + + +class EndpointAuthorization(Model): + """EndpointAuthorization. + + :param parameters: Gets or sets the parameters for the selected authorization scheme. + :type parameters: dict + :param scheme: Gets or sets the scheme used for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, parameters=None, scheme=None): + super(EndpointAuthorization, self).__init__() + self.parameters = parameters + self.scheme = scheme + + +class EndpointUrl(Model): + """EndpointUrl. + + :param depends_on: Gets or sets the dependency bindings. + :type depends_on: :class:`DependsOn ` + :param display_name: Gets or sets the display name of service endpoint url. + :type display_name: str + :param help_text: Gets or sets the help text of service endpoint url. + :type help_text: str + :param is_visible: Gets or sets the visibility of service endpoint url. + :type is_visible: str + :param value: Gets or sets the value of service endpoint url. + :type value: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'is_visible': {'key': 'isVisible', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): + super(EndpointUrl, self).__init__() + self.depends_on = depends_on + self.display_name = display_name + self.help_text = help_text + self.is_visible = is_visible + self.value = value + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 HelpLink(Model): + """HelpLink. + + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, text=None, url=None): + super(HelpLink, self).__init__() + self.text = text + self.url = url + + +class IdentityRef(GraphSubjectBase): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValidationRequest(Model): + """InputValidationRequest. + + :param inputs: + :type inputs: dict + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{ValidationItem}'} + } + + def __init__(self, inputs=None): + super(InputValidationRequest, self).__init__() + self.inputs = inputs + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class MetricsColumnMetaData(Model): + """MetricsColumnMetaData. + + :param column_name: Name. + :type column_name: str + :param column_value_type: Data type. + :type column_value_type: str + """ + + _attribute_map = { + 'column_name': {'key': 'columnName', 'type': 'str'}, + 'column_value_type': {'key': 'columnValueType', 'type': 'str'} + } + + def __init__(self, column_name=None, column_value_type=None): + super(MetricsColumnMetaData, self).__init__() + self.column_name = column_name + self.column_value_type = column_value_type + + +class MetricsColumnsHeader(Model): + """MetricsColumnsHeader. + + :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState + :type dimensions: list of :class:`MetricsColumnMetaData ` + :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. + :type metrics: list of :class:`MetricsColumnMetaData ` + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[MetricsColumnMetaData]'}, + 'metrics': {'key': 'metrics', 'type': '[MetricsColumnMetaData]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsColumnsHeader, self).__init__() + self.dimensions = dimensions + self.metrics = metrics + + +class MetricsRow(Model): + """MetricsRow. + + :param dimensions: The values of the properties mentioned as 'Dimensions' in column header. E.g. 1: For a property 'LastJobStatus' - metrics will be provided for 'passed', 'failed', etc. E.g. 2: For a property 'TargetState' - metrics will be provided for 'online', 'offline' targets. + :type dimensions: list of str + :param metrics: Metrics in serialized format. Should be deserialized based on the data type provided in header. + :type metrics: list of str + """ + + _attribute_map = { + 'dimensions': {'key': 'dimensions', 'type': '[str]'}, + 'metrics': {'key': 'metrics', 'type': '[str]'} + } + + def __init__(self, dimensions=None, metrics=None): + super(MetricsRow, self).__init__() + self.dimensions = dimensions + self.metrics = metrics + + +class OAuthConfiguration(Model): + """OAuthConfiguration. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param created_by: Gets or sets the identity who created the config. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets the time when config was created. + :type created_on: datetime + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param id: Gets or sets the unique identifier of this field + :type id: int + :param modified_by: Gets or sets the identity who modified the config. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets the time when variable group was modified + :type modified_on: datetime + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, created_by=None, created_on=None, endpoint_type=None, id=None, modified_by=None, modified_on=None, name=None, url=None): + super(OAuthConfiguration, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.created_by = created_by + self.created_on = created_on + self.endpoint_type = endpoint_type + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.url = url + + +class OAuthConfigurationParams(Model): + """OAuthConfigurationParams. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, endpoint_type=None, name=None, url=None): + super(OAuthConfigurationParams, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.endpoint_type = endpoint_type + self.name = name + self.url = url + + +class PackageMetadata(Model): + """PackageMetadata. + + :param created_on: The date the package was created + :type created_on: datetime + :param download_url: A direct link to download the package. + :type download_url: str + :param filename: The UI uses this to display instructions, i.e. "unzip MyAgent.zip" + :type filename: str + :param hash_value: MD5 hash as a base64 string + :type hash_value: str + :param info_url: A link to documentation + :type info_url: str + :param platform: The platform (win7, linux, etc.) + :type platform: str + :param type: The type of package (e.g. "agent") + :type type: str + :param version: The package version. + :type version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'download_url': {'key': 'downloadUrl', 'type': 'str'}, + 'filename': {'key': 'filename', 'type': 'str'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'info_url': {'key': 'infoUrl', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'PackageVersion'} + } + + def __init__(self, created_on=None, download_url=None, filename=None, hash_value=None, info_url=None, platform=None, type=None, version=None): + super(PackageMetadata, self).__init__() + self.created_on = created_on + self.download_url = download_url + self.filename = filename + self.hash_value = hash_value + self.info_url = info_url + self.platform = platform + self.type = type + self.version = version + + +class PackageVersion(Model): + """PackageVersion. + + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, major=None, minor=None, patch=None): + super(PackageVersion, self).__init__() + self.major = major + self.minor = minor + self.patch = patch + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class PublishTaskGroupMetadata(Model): + """PublishTaskGroupMetadata. + + :param comment: + :type comment: str + :param parent_definition_revision: + :type parent_definition_revision: int + :param preview: + :type preview: bool + :param task_group_id: + :type task_group_id: str + :param task_group_revision: + :type task_group_revision: int + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parent_definition_revision': {'key': 'parentDefinitionRevision', 'type': 'int'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'}, + 'task_group_revision': {'key': 'taskGroupRevision', 'type': 'int'} + } + + def __init__(self, comment=None, parent_definition_revision=None, preview=None, task_group_id=None, task_group_revision=None): + super(PublishTaskGroupMetadata, self).__init__() + self.comment = comment + self.parent_definition_revision = parent_definition_revision + self.preview = preview + self.task_group_id = task_group_id + self.task_group_revision = task_group_revision + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResourceUsage(Model): + """ResourceUsage. + + :param running_plan_groups: + :type running_plan_groups: list of :class:`TaskOrchestrationPlanGroup ` + :param total_count: + :type total_count: int + :param used_count: + :type used_count: int + """ + + _attribute_map = { + 'running_plan_groups': {'key': 'runningPlanGroups', 'type': '[TaskOrchestrationPlanGroup]'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'used_count': {'key': 'usedCount', 'type': 'int'} + } + + def __init__(self, running_plan_groups=None, total_count=None, used_count=None): + super(ResourceUsage, self).__init__() + self.running_plan_groups = running_plan_groups + self.total_count = total_count + self.used_count = used_count + + +class ResultTransformationDetails(Model): + """ResultTransformationDetails. + + :param result_template: + :type result_template: str + """ + + _attribute_map = { + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, result_template=None): + super(ResultTransformationDetails, self).__init__() + self.result_template = result_template + + +class SecureFile(Model): + """SecureFile. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param id: + :type id: str + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param properties: + :type properties: dict + :param ticket: + :type ticket: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'ticket': {'key': 'ticket', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, modified_on=None, name=None, properties=None, ticket=None): + super(SecureFile, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.properties = properties + self.ticket = ticket + + +class ServiceEndpoint(Model): + """ServiceEndpoint. + + :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. + :type administrators_group: :class:`IdentityRef ` + :param authorization: Gets or sets the authorization data for talking to the endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. + :type created_by: :class:`IdentityRef ` + :param data: + :type data: dict + :param description: Gets or sets the description of endpoint. + :type description: str + :param group_scope_id: + :type group_scope_id: str + :param id: Gets or sets the identifier of this endpoint. + :type id: str + :param is_ready: EndPoint state indictor + :type is_ready: bool + :param name: Gets or sets the friendly name of the endpoint. + :type name: str + :param operation_status: Error message during creation/deletion of endpoint + :type operation_status: :class:`object ` + :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. + :type readers_group: :class:`IdentityRef ` + :param type: Gets or sets the type of the endpoint. + :type type: str + :param url: Gets or sets the url of the endpoint. + :type url: str + """ + + _attribute_map = { + 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + super(ServiceEndpoint, self).__init__() + self.administrators_group = administrators_group + self.authorization = authorization + self.created_by = created_by + self.data = data + self.description = description + self.group_scope_id = group_scope_id + self.id = id + self.is_ready = is_ready + self.name = name + self.operation_status = operation_status + self.readers_group = readers_group + self.type = type + self.url = url + + +class ServiceEndpointAuthenticationScheme(Model): + """ServiceEndpointAuthenticationScheme. + + :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. + :type client_certificates: list of :class:`ClientCertificate ` + :param display_name: Gets or sets the display name for the service endpoint authentication scheme. + :type display_name: str + :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: Gets or sets the scheme for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): + super(ServiceEndpointAuthenticationScheme, self).__init__() + self.authorization_headers = authorization_headers + self.client_certificates = client_certificates + self.display_name = display_name + self.input_descriptors = input_descriptors + self.scheme = scheme + + +class ServiceEndpointDetails(Model): + """ServiceEndpointDetails. + + :param authorization: + :type authorization: :class:`EndpointAuthorization ` + :param data: + :type data: dict + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, data=None, type=None, url=None): + super(ServiceEndpointDetails, self).__init__() + self.authorization = authorization + self.data = data + self.type = type + self.url = url + + +class ServiceEndpointExecutionData(Model): + """ServiceEndpointExecutionData. + + :param definition: Gets the definition of service endpoint execution owner. + :type definition: :class:`TaskOrchestrationOwner ` + :param finish_time: Gets the finish time of service endpoint execution. + :type finish_time: datetime + :param id: Gets the Id of service endpoint execution data. + :type id: long + :param owner: Gets the owner of service endpoint execution data. + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_type: Gets the plan type of service endpoint execution data. + :type plan_type: str + :param result: Gets the result of service endpoint execution. + :type result: object + :param start_time: Gets the start time of service endpoint execution. + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): + super(ServiceEndpointExecutionData, self).__init__() + self.definition = definition + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_type = plan_type + self.result = result + self.start_time = start_time + + +class ServiceEndpointExecutionRecord(Model): + """ServiceEndpointExecutionRecord. + + :param data: Gets the execution data of service endpoint execution. + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: Gets the Id of service endpoint. + :type endpoint_id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'} + } + + def __init__(self, data=None, endpoint_id=None): + super(ServiceEndpointExecutionRecord, self).__init__() + self.data = data + self.endpoint_id = endpoint_id + + +class ServiceEndpointExecutionRecordsInput(Model): + """ServiceEndpointExecutionRecordsInput. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_ids: + :type endpoint_ids: list of str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} + } + + def __init__(self, data=None, endpoint_ids=None): + super(ServiceEndpointExecutionRecordsInput, self).__init__() + self.data = data + self.endpoint_ids = endpoint_ids + + +class ServiceEndpointRequest(Model): + """ServiceEndpointRequest. + + :param data_source_details: + :type data_source_details: :class:`DataSourceDetails ` + :param result_transformation_details: + :type result_transformation_details: :class:`ResultTransformationDetails ` + :param service_endpoint_details: + :type service_endpoint_details: :class:`ServiceEndpointDetails ` + """ + + _attribute_map = { + 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, + 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, + 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} + } + + def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): + super(ServiceEndpointRequest, self).__init__() + self.data_source_details = data_source_details + self.result_transformation_details = result_transformation_details + self.service_endpoint_details = service_endpoint_details + + +class ServiceEndpointRequestResult(Model): + """ServiceEndpointRequestResult. + + :param error_message: + :type error_message: str + :param result: + :type result: :class:`object ` + :param status_code: + :type status_code: object + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'object'} + } + + def __init__(self, error_message=None, result=None, status_code=None): + super(ServiceEndpointRequestResult, self).__init__() + self.error_message = error_message + self.result = result + self.status_code = status_code + + +class ServiceEndpointType(Model): + """ServiceEndpointType. + + :param authentication_schemes: Authentication scheme of service endpoint type. + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: Data sources of service endpoint type. + :type data_sources: list of :class:`DataSource ` + :param dependency_data: Dependency data of service endpoint type. + :type dependency_data: list of :class:`DependencyData ` + :param description: Gets or sets the description of service endpoint type. + :type description: str + :param display_name: Gets or sets the display name of service endpoint type. + :type display_name: str + :param endpoint_url: Gets or sets the endpoint url of service endpoint type. + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: Gets or sets the help link of service endpoint type. + :type help_link: :class:`HelpLink ` + :param help_mark_down: + :type help_mark_down: str + :param icon_url: Gets or sets the icon url of service endpoint type. + :type icon_url: str + :param input_descriptors: Input descriptor of service endpoint type. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of service endpoint type. + :type name: str + :param trusted_hosts: Trusted hosts of a service endpoint type. + :type trusted_hosts: list of str + :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. + :type ui_contribution_id: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, + 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name + self.trusted_hosts = trusted_hosts + self.ui_contribution_id = ui_contribution_id + + +class TaskAgentAuthorization(Model): + """TaskAgentAuthorization. + + :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. + :type authorization_url: str + :param client_id: Gets or sets the client identifier for this agent. + :type client_id: str + :param public_key: Gets or sets the public key used to verify the identity of this agent. + :type public_key: :class:`TaskAgentPublicKey ` + """ + + _attribute_map = { + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} + } + + def __init__(self, authorization_url=None, client_id=None, public_key=None): + super(TaskAgentAuthorization, self).__init__() + self.authorization_url = authorization_url + self.client_id = client_id + self.public_key = public_key + + +class TaskAgentDelaySource(Model): + """TaskAgentDelaySource. + + :param delays: + :type delays: list of object + :param task_agent: + :type task_agent: :class:`TaskAgentReference ` + """ + + _attribute_map = { + 'delays': {'key': 'delays', 'type': '[object]'}, + 'task_agent': {'key': 'taskAgent', 'type': 'TaskAgentReference'} + } + + def __init__(self, delays=None, task_agent=None): + super(TaskAgentDelaySource, self).__init__() + self.delays = delays + self.task_agent = task_agent + + +class TaskAgentJobRequest(Model): + """TaskAgentJobRequest. + + :param agent_delays: + :type agent_delays: list of :class:`TaskAgentDelaySource ` + :param assign_time: + :type assign_time: datetime + :param data: + :type data: dict + :param definition: + :type definition: :class:`TaskOrchestrationOwner ` + :param demands: + :type demands: list of :class:`object ` + :param expected_duration: + :type expected_duration: object + :param finish_time: + :type finish_time: datetime + :param host_id: + :type host_id: str + :param job_id: + :type job_id: str + :param job_name: + :type job_name: str + :param locked_until: + :type locked_until: datetime + :param matched_agents: + :type matched_agents: list of :class:`TaskAgentReference ` + :param owner: + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str + :param plan_id: + :type plan_id: str + :param plan_type: + :type plan_type: str + :param pool_id: + :type pool_id: int + :param queue_id: + :type queue_id: int + :param queue_time: + :type queue_time: datetime + :param receive_time: + :type receive_time: datetime + :param request_id: + :type request_id: long + :param reserved_agent: + :type reserved_agent: :class:`TaskAgentReference ` + :param result: + :type result: object + :param scope_id: + :type scope_id: str + :param service_owner: + :type service_owner: str + """ + + _attribute_map = { + 'agent_delays': {'key': 'agentDelays', 'type': '[TaskAgentDelaySource]'}, + 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'expected_duration': {'key': 'expectedDuration', 'type': 'object'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'job_name': {'key': 'jobName', 'type': 'str'}, + 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, + 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'pool_id': {'key': 'poolId', 'type': 'int'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'}, + 'request_id': {'key': 'requestId', 'type': 'long'}, + 'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'}, + 'result': {'key': 'result', 'type': 'object'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'} + } + + def __init__(self, agent_delays=None, assign_time=None, data=None, definition=None, demands=None, expected_duration=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_group=None, plan_id=None, plan_type=None, pool_id=None, queue_id=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): + super(TaskAgentJobRequest, self).__init__() + self.agent_delays = agent_delays + self.assign_time = assign_time + self.data = data + self.definition = definition + self.demands = demands + self.expected_duration = expected_duration + self.finish_time = finish_time + self.host_id = host_id + self.job_id = job_id + self.job_name = job_name + self.locked_until = locked_until + self.matched_agents = matched_agents + self.owner = owner + self.plan_group = plan_group + self.plan_id = plan_id + self.plan_type = plan_type + self.pool_id = pool_id + self.queue_id = queue_id + self.queue_time = queue_time + self.receive_time = receive_time + self.request_id = request_id + self.reserved_agent = reserved_agent + self.result = result + self.scope_id = scope_id + self.service_owner = service_owner + + +class TaskAgentMessage(Model): + """TaskAgentMessage. + + :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. + :type body: str + :param iV: Gets or sets the intialization vector used to encrypt this message. + :type iV: str + :param message_id: Gets or sets the message identifier. + :type message_id: long + :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. + :type message_type: str + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'iV': {'key': 'iV', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'long'}, + 'message_type': {'key': 'messageType', 'type': 'str'} + } + + def __init__(self, body=None, iV=None, message_id=None, message_type=None): + super(TaskAgentMessage, self).__init__() + self.body = body + self.iV = iV + self.message_id = message_id + self.message_type = message_type + + +class TaskAgentPoolMaintenanceDefinition(Model): + """TaskAgentPoolMaintenanceDefinition. + + :param enabled: Enable maintenance + :type enabled: bool + :param id: Id + :type id: int + :param job_timeout_in_minutes: Maintenance job timeout per agent + :type job_timeout_in_minutes: int + :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time + :type max_concurrent_agents_percentage: int + :param options: + :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :param pool: Pool reference for the maintenance definition + :type pool: :class:`TaskAgentPoolReference ` + :param retention_policy: + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :param schedule_setting: + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, + 'max_concurrent_agents_percentage': {'key': 'maxConcurrentAgentsPercentage', 'type': 'int'}, + 'options': {'key': 'options', 'type': 'TaskAgentPoolMaintenanceOptions'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'TaskAgentPoolMaintenanceRetentionPolicy'}, + 'schedule_setting': {'key': 'scheduleSetting', 'type': 'TaskAgentPoolMaintenanceSchedule'} + } + + def __init__(self, enabled=None, id=None, job_timeout_in_minutes=None, max_concurrent_agents_percentage=None, options=None, pool=None, retention_policy=None, schedule_setting=None): + super(TaskAgentPoolMaintenanceDefinition, self).__init__() + self.enabled = enabled + self.id = id + self.job_timeout_in_minutes = job_timeout_in_minutes + self.max_concurrent_agents_percentage = max_concurrent_agents_percentage + self.options = options + self.pool = pool + self.retention_policy = retention_policy + self.schedule_setting = schedule_setting + + +class TaskAgentPoolMaintenanceJob(Model): + """TaskAgentPoolMaintenanceJob. + + :param definition_id: The maintenance definition for the maintenance job + :type definition_id: int + :param error_count: The total error counts during the maintenance job + :type error_count: int + :param finish_time: Time that the maintenance job was completed + :type finish_time: datetime + :param job_id: Id of the maintenance job + :type job_id: int + :param logs_download_url: The log download url for the maintenance job + :type logs_download_url: str + :param orchestration_id: Orchestration/Plan Id for the maintenance job + :type orchestration_id: str + :param pool: Pool reference for the maintenance job + :type pool: :class:`TaskAgentPoolReference ` + :param queue_time: Time that the maintenance job was queued + :type queue_time: datetime + :param requested_by: The identity that queued the maintenance job + :type requested_by: :class:`IdentityRef ` + :param result: The maintenance job result + :type result: object + :param start_time: Time that the maintenance job was started + :type start_time: datetime + :param status: Status of the maintenance job + :type status: object + :param target_agents: + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :param warning_count: The total warning counts during the maintenance job + :type warning_count: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'error_count': {'key': 'errorCount', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'}, + 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'}, + 'warning_count': {'key': 'warningCount', 'type': 'int'} + } + + def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None): + super(TaskAgentPoolMaintenanceJob, self).__init__() + self.definition_id = definition_id + self.error_count = error_count + self.finish_time = finish_time + self.job_id = job_id + self.logs_download_url = logs_download_url + self.orchestration_id = orchestration_id + self.pool = pool + self.queue_time = queue_time + self.requested_by = requested_by + self.result = result + self.start_time = start_time + self.status = status + self.target_agents = target_agents + self.warning_count = warning_count + + +class TaskAgentPoolMaintenanceJobTargetAgent(Model): + """TaskAgentPoolMaintenanceJobTargetAgent. + + :param agent: + :type agent: :class:`TaskAgentReference ` + :param job_id: + :type job_id: int + :param result: + :type result: object + :param status: + :type status: object + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'job_id': {'key': 'jobId', 'type': 'int'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, agent=None, job_id=None, result=None, status=None): + super(TaskAgentPoolMaintenanceJobTargetAgent, self).__init__() + self.agent = agent + self.job_id = job_id + self.result = result + self.status = status + + +class TaskAgentPoolMaintenanceOptions(Model): + """TaskAgentPoolMaintenanceOptions. + + :param working_directory_expiration_in_days: time to consider a System.DefaultWorkingDirectory is stale + :type working_directory_expiration_in_days: int + """ + + _attribute_map = { + 'working_directory_expiration_in_days': {'key': 'workingDirectoryExpirationInDays', 'type': 'int'} + } + + def __init__(self, working_directory_expiration_in_days=None): + super(TaskAgentPoolMaintenanceOptions, self).__init__() + self.working_directory_expiration_in_days = working_directory_expiration_in_days + + +class TaskAgentPoolMaintenanceRetentionPolicy(Model): + """TaskAgentPoolMaintenanceRetentionPolicy. + + :param number_of_history_records_to_keep: Number of records to keep for maintenance job executed with this definition. + :type number_of_history_records_to_keep: int + """ + + _attribute_map = { + 'number_of_history_records_to_keep': {'key': 'numberOfHistoryRecordsToKeep', 'type': 'int'} + } + + def __init__(self, number_of_history_records_to_keep=None): + super(TaskAgentPoolMaintenanceRetentionPolicy, self).__init__() + self.number_of_history_records_to_keep = number_of_history_records_to_keep + + +class TaskAgentPoolMaintenanceSchedule(Model): + """TaskAgentPoolMaintenanceSchedule. + + :param days_to_build: Days for a build (flags enum for days of the week) + :type days_to_build: object + :param schedule_job_id: The Job Id of the Scheduled job that will queue the pool maintenance job. + :type schedule_job_id: str + :param start_hours: Local timezone hour to start + :type start_hours: int + :param start_minutes: Local timezone minute to start + :type start_minutes: int + :param time_zone_id: Time zone of the build schedule (string representation of the time zone id) + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_build': {'key': 'daysToBuild', 'type': 'object'}, + 'schedule_job_id': {'key': 'scheduleJobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_build=None, schedule_job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(TaskAgentPoolMaintenanceSchedule, self).__init__() + self.days_to_build = days_to_build + self.schedule_job_id = schedule_job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id + + +class TaskAgentPoolReference(Model): + """TaskAgentPoolReference. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + :param size: Gets the current size of the pool. + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None): + super(TaskAgentPoolReference, self).__init__() + self.id = id + self.is_hosted = is_hosted + self.name = name + self.pool_type = pool_type + self.scope = scope + self.size = size + + +class TaskAgentPublicKey(Model): + """TaskAgentPublicKey. + + :param exponent: Gets or sets the exponent for the public key. + :type exponent: str + :param modulus: Gets or sets the modulus for the public key. + :type modulus: str + """ + + _attribute_map = { + 'exponent': {'key': 'exponent', 'type': 'str'}, + 'modulus': {'key': 'modulus', 'type': 'str'} + } + + def __init__(self, exponent=None, modulus=None): + super(TaskAgentPublicKey, self).__init__() + self.exponent = exponent + self.modulus = modulus + + +class TaskAgentQueue(Model): + """TaskAgentQueue. + + :param id: Id of the queue + :type id: int + :param name: Name of the queue + :type name: str + :param pool: Pool reference for this queue + :type pool: :class:`TaskAgentPoolReference ` + :param project_id: Project Id + :type project_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project_id': {'key': 'projectId', 'type': 'str'} + } + + def __init__(self, id=None, name=None, pool=None, project_id=None): + super(TaskAgentQueue, self).__init__() + self.id = id + self.name = name + self.pool = pool + self.project_id = project_id + + +class TaskAgentReference(Model): + """TaskAgentReference. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param oSDescription: Gets the OS of the agent. + :type oSDescription: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None): + super(TaskAgentReference, self).__init__() + self._links = _links + self.enabled = enabled + self.id = id + self.name = name + self.oSDescription = oSDescription + self.status = status + self.version = version + + +class TaskAgentSession(Model): + """TaskAgentSession. + + :param agent: Gets or sets the agent which is the target of the session. + :type agent: :class:`TaskAgentReference ` + :param encryption_key: Gets the key used to encrypt message traffic for this session. + :type encryption_key: :class:`TaskAgentSessionKey ` + :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. + :type owner_name: str + :param session_id: Gets the unique identifier for this session. + :type session_id: str + :param system_capabilities: + :type system_capabilities: dict + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'encryption_key': {'key': 'encryptionKey', 'type': 'TaskAgentSessionKey'}, + 'owner_name': {'key': 'ownerName', 'type': 'str'}, + 'session_id': {'key': 'sessionId', 'type': 'str'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'} + } + + def __init__(self, agent=None, encryption_key=None, owner_name=None, session_id=None, system_capabilities=None): + super(TaskAgentSession, self).__init__() + self.agent = agent + self.encryption_key = encryption_key + self.owner_name = owner_name + self.session_id = session_id + self.system_capabilities = system_capabilities + + +class TaskAgentSessionKey(Model): + """TaskAgentSessionKey. + + :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. + :type encrypted: bool + :param value: Gets or sets the symmetric key value. + :type value: str + """ + + _attribute_map = { + 'encrypted': {'key': 'encrypted', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, encrypted=None, value=None): + super(TaskAgentSessionKey, self).__init__() + self.encrypted = encrypted + self.value = value + + +class TaskAgentUpdate(Model): + """TaskAgentUpdate. + + :param current_state: The current state of this agent update + :type current_state: str + :param reason: The reason of this agent update + :type reason: :class:`TaskAgentUpdateReason ` + :param requested_by: The identity that request the agent update + :type requested_by: :class:`IdentityRef ` + :param request_time: Gets the date on which this agent update was requested. + :type request_time: datetime + :param source_version: Gets or sets the source agent version of the agent update + :type source_version: :class:`PackageVersion ` + :param target_version: Gets or sets the target agent version of the agent update + :type target_version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'current_state': {'key': 'currentState', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'TaskAgentUpdateReason'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'request_time': {'key': 'requestTime', 'type': 'iso-8601'}, + 'source_version': {'key': 'sourceVersion', 'type': 'PackageVersion'}, + 'target_version': {'key': 'targetVersion', 'type': 'PackageVersion'} + } + + def __init__(self, current_state=None, reason=None, requested_by=None, request_time=None, source_version=None, target_version=None): + super(TaskAgentUpdate, self).__init__() + self.current_state = current_state + self.reason = reason + self.requested_by = requested_by + self.request_time = request_time + self.source_version = source_version + self.target_version = target_version + + +class TaskAgentUpdateReason(Model): + """TaskAgentUpdateReason. + + :param code: + :type code: object + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'object'} + } + + def __init__(self, code=None): + super(TaskAgentUpdateReason, self).__init__() + self.code = code + + +class TaskDefinition(Model): + """TaskDefinition. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): + super(TaskDefinition, self).__init__() + self.agent_execution = agent_execution + self.author = author + self.category = category + self.contents_uploaded = contents_uploaded + self.contribution_identifier = contribution_identifier + self.contribution_version = contribution_version + self.data_source_bindings = data_source_bindings + self.definition_type = definition_type + self.demands = demands + self.deprecated = deprecated + self.description = description + self.disabled = disabled + self.execution = execution + self.friendly_name = friendly_name + self.groups = groups + self.help_mark_down = help_mark_down + self.host_type = host_type + self.icon_url = icon_url + self.id = id + self.inputs = inputs + self.instance_name_format = instance_name_format + self.minimum_agent_version = minimum_agent_version + self.name = name + self.output_variables = output_variables + self.package_location = package_location + self.package_type = package_type + self.preview = preview + self.release_notes = release_notes + self.runs_on = runs_on + self.satisfies = satisfies + self.server_owned = server_owned + self.source_definitions = source_definitions + self.source_location = source_location + self.version = version + self.visibility = visibility + + +class TaskDefinitionEndpoint(Model): + """TaskDefinitionEndpoint. + + :param connection_id: An ID that identifies a service connection to be used for authenticating endpoint requests. + :type connection_id: str + :param key_selector: An Json based keyselector to filter response returned by fetching the endpoint Url.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. The following keyselector defines an Json for extracting nodes named 'ServiceName'. endpoint.KeySelector = "jsonpath://ServiceName"; + :type key_selector: str + :param scope: The scope as understood by Connected Services. Essentialy, a project-id for now. + :type scope: str + :param selector: An XPath/Json based selector to filter response returned by fetching the endpoint Url. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". The following selector defines an XPath for extracting nodes named 'ServiceName'. endpoint.Selector = "xpath://ServiceName"; + :type selector: str + :param task_id: TaskId that this endpoint belongs to. + :type task_id: str + :param url: URL to GET. + :type url: str + """ + + _attribute_map = { + 'connection_id': {'key': 'connectionId', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, connection_id=None, key_selector=None, scope=None, selector=None, task_id=None, url=None): + super(TaskDefinitionEndpoint, self).__init__() + self.connection_id = connection_id + self.key_selector = key_selector + self.scope = scope + self.selector = selector + self.task_id = task_id + self.url = url + + +class TaskDefinitionReference(Model): + """TaskDefinitionReference. + + :param definition_type: Gets or sets the definition type. Values can be 'task' or 'metaTask'. + :type definition_type: str + :param id: Gets or sets the unique identifier of task. + :type id: str + :param version_spec: Gets or sets the version specification of task. + :type version_spec: str + """ + + _attribute_map = { + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'version_spec': {'key': 'versionSpec', 'type': 'str'} + } + + def __init__(self, definition_type=None, id=None, version_spec=None): + super(TaskDefinitionReference, self).__init__() + self.definition_type = definition_type + self.id = id + self.version_spec = version_spec + + +class TaskExecution(Model): + """TaskExecution. + + :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline + :type exec_task: :class:`TaskReference ` + :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } + :type platform_instructions: dict + """ + + _attribute_map = { + 'exec_task': {'key': 'execTask', 'type': 'TaskReference'}, + 'platform_instructions': {'key': 'platformInstructions', 'type': '{{str}}'} + } + + def __init__(self, exec_task=None, platform_instructions=None): + super(TaskExecution, self).__init__() + self.exec_task = exec_task + self.platform_instructions = platform_instructions + + +class TaskGroup(TaskDefinition): + """TaskGroup. + + :param agent_execution: + :type agent_execution: :class:`TaskExecution ` + :param author: + :type author: str + :param category: + :type category: str + :param contents_uploaded: + :type contents_uploaded: bool + :param contribution_identifier: + :type contribution_identifier: str + :param contribution_version: + :type contribution_version: str + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param definition_type: + :type definition_type: str + :param demands: + :type demands: list of :class:`object ` + :param deprecated: + :type deprecated: bool + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param execution: + :type execution: dict + :param friendly_name: + :type friendly_name: str + :param groups: + :type groups: list of :class:`TaskGroupDefinition ` + :param help_mark_down: + :type help_mark_down: str + :param host_type: + :type host_type: str + :param icon_url: + :type icon_url: str + :param id: + :type id: str + :param inputs: + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: + :type instance_name_format: str + :param minimum_agent_version: + :type minimum_agent_version: str + :param name: + :type name: str + :param output_variables: + :type output_variables: list of :class:`TaskOutputVariable ` + :param package_location: + :type package_location: str + :param package_type: + :type package_type: str + :param preview: + :type preview: bool + :param release_notes: + :type release_notes: str + :param runs_on: + :type runs_on: list of str + :param satisfies: + :type satisfies: list of str + :param server_owned: + :type server_owned: bool + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinition ` + :param source_location: + :type source_location: str + :param version: + :type version: :class:`TaskVersion ` + :param visibility: + :type visibility: list of str + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets date on which it got created. + :type created_on: datetime + :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. + :type deleted: bool + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets date on which it got modified. + :type modified_on: datetime + :param owner: Gets or sets the owner. + :type owner: str + :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param revision: Gets or sets revision. + :type revision: int + :param tasks: Gets or sets the tasks. + :type tasks: list of :class:`TaskGroupStep ` + """ + + _attribute_map = { + 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, + 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, + 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deprecated': {'key': 'deprecated', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'execution': {'key': 'execution', 'type': '{object}'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'host_type': {'key': 'hostType', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, + 'package_location': {'key': 'packageLocation', 'type': 'str'}, + 'package_type': {'key': 'packageType', 'type': 'str'}, + 'preview': {'key': 'preview', 'type': 'bool'}, + 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'satisfies': {'key': 'satisfies', 'type': '[str]'}, + 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, + 'source_location': {'key': 'sourceLocation', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'TaskVersion'}, + 'visibility': {'key': 'visibility', 'type': '[str]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'deleted': {'key': 'deleted', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} + } + + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): + super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.deleted = deleted + self.modified_by = modified_by + self.modified_on = modified_on + self.owner = owner + self.parent_definition_id = parent_definition_id + self.revision = revision + self.tasks = tasks + + +class TaskGroupCreateParameter(Model): + """TaskGroupCreateParameter. + + :param author: Sets author name of the task group. + :type author: str + :param category: Sets category of the task group. + :type category: str + :param description: Sets description of the task group. + :type description: str + :param friendly_name: Sets friendly name of the task group. + :type friendly_name: str + :param icon_url: Sets url icon of the task group. + :type icon_url: str + :param inputs: Sets input for the task group. + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: Sets display name of the task group. + :type instance_name_format: str + :param name: Sets name of the task group. + :type name: str + :param parent_definition_id: Sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. + :type runs_on: list of str + :param tasks: Sets tasks for the task group. + :type tasks: list of :class:`TaskGroupStep ` + :param version: Sets version of the task group. + :type version: :class:`TaskVersion ` + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, + 'version': {'key': 'version', 'type': 'TaskVersion'} + } + + def __init__(self, author=None, category=None, description=None, friendly_name=None, icon_url=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, runs_on=None, tasks=None, version=None): + super(TaskGroupCreateParameter, self).__init__() + self.author = author + self.category = category + self.description = description + self.friendly_name = friendly_name + self.icon_url = icon_url + self.inputs = inputs + self.instance_name_format = instance_name_format + self.name = name + self.parent_definition_id = parent_definition_id + self.runs_on = runs_on + self.tasks = tasks + self.version = version + + +class TaskGroupDefinition(Model): + """TaskGroupDefinition. + + :param display_name: + :type display_name: str + :param is_expanded: + :type is_expanded: bool + :param name: + :type name: str + :param tags: + :type tags: list of str + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, display_name=None, is_expanded=None, name=None, tags=None, visible_rule=None): + super(TaskGroupDefinition, self).__init__() + self.display_name = display_name + self.is_expanded = is_expanded + self.name = name + self.tags = tags + self.visible_rule = visible_rule + + +class TaskGroupRevision(Model): + """TaskGroupRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_type: + :type change_type: object + :param comment: + :type comment: str + :param file_id: + :type file_id: int + :param revision: + :type revision: int + :param task_group_id: + :type task_group_id: str + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'task_group_id': {'key': 'taskGroupId', 'type': 'str'} + } + + def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, file_id=None, revision=None, task_group_id=None): + super(TaskGroupRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.file_id = file_id + self.revision = revision + self.task_group_id = task_group_id + + +class TaskGroupStep(Model): + """TaskGroupStep. + + :param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise. + :type always_run: bool + :param condition: Gets or sets condition for the task. + :type condition: str + :param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise. + :type continue_on_error: bool + :param display_name: Gets or sets the display name. + :type display_name: str + :param enabled: Gets or sets as task is enabled or not. + :type enabled: bool + :param inputs: Gets or sets dictionary of inputs. + :type inputs: dict + :param task: Gets or sets the reference of the task. + :type task: :class:`TaskDefinitionReference ` + :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): + super(TaskGroupStep, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.display_name = display_name + self.enabled = enabled + self.inputs = inputs + self.task = task + self.timeout_in_minutes = timeout_in_minutes + + +class TaskGroupUpdateParameter(Model): + """TaskGroupUpdateParameter. + + :param author: Sets author name of the task group. + :type author: str + :param category: Sets category of the task group. + :type category: str + :param comment: Sets comment of the task group. + :type comment: str + :param description: Sets description of the task group. + :type description: str + :param friendly_name: Sets friendly name of the task group. + :type friendly_name: str + :param icon_url: Sets url icon of the task group. + :type icon_url: str + :param id: Sets the unique identifier of this field. + :type id: str + :param inputs: Sets input for the task group. + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: Sets display name of the task group. + :type instance_name_format: str + :param name: Sets name of the task group. + :type name: str + :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param revision: Sets revision of the task group. + :type revision: int + :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. + :type runs_on: list of str + :param tasks: Sets tasks for the task group. + :type tasks: list of :class:`TaskGroupStep ` + :param version: Sets version of the task group. + :type version: :class:`TaskVersion ` + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, + 'version': {'key': 'version', 'type': 'TaskVersion'} + } + + def __init__(self, author=None, category=None, comment=None, description=None, friendly_name=None, icon_url=None, id=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, revision=None, runs_on=None, tasks=None, version=None): + super(TaskGroupUpdateParameter, self).__init__() + self.author = author + self.category = category + self.comment = comment + self.description = description + self.friendly_name = friendly_name + self.icon_url = icon_url + self.id = id + self.inputs = inputs + self.instance_name_format = instance_name_format + self.name = name + self.parent_definition_id = parent_definition_id + self.revision = revision + self.runs_on = runs_on + self.tasks = tasks + self.version = version + + +class TaskHubLicenseDetails(Model): + """TaskHubLicenseDetails. + + :param enterprise_users_count: + :type enterprise_users_count: int + :param free_hosted_license_count: + :type free_hosted_license_count: int + :param free_license_count: + :type free_license_count: int + :param has_license_count_ever_updated: + :type has_license_count_ever_updated: bool + :param hosted_agent_minutes_free_count: + :type hosted_agent_minutes_free_count: int + :param hosted_agent_minutes_used_count: + :type hosted_agent_minutes_used_count: int + :param msdn_users_count: + :type msdn_users_count: int + :param purchased_hosted_license_count: + :type purchased_hosted_license_count: int + :param purchased_license_count: + :type purchased_license_count: int + :param total_license_count: + :type total_license_count: int + """ + + _attribute_map = { + 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, + 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, + 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, + 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, + 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, + 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, + 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, + 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, + 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, + 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} + } + + def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): + super(TaskHubLicenseDetails, self).__init__() + self.enterprise_users_count = enterprise_users_count + self.free_hosted_license_count = free_hosted_license_count + self.free_license_count = free_license_count + self.has_license_count_ever_updated = has_license_count_ever_updated + self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count + self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count + self.msdn_users_count = msdn_users_count + self.purchased_hosted_license_count = purchased_hosted_license_count + self.purchased_license_count = purchased_license_count + self.total_license_count = total_license_count + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskOrchestrationOwner(Model): + """TaskOrchestrationOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(TaskOrchestrationOwner, self).__init__() + self._links = _links + self.id = id + self.name = name + + +class TaskOrchestrationPlanGroup(Model): + """TaskOrchestrationPlanGroup. + + :param plan_group: + :type plan_group: str + :param project: + :type project: :class:`ProjectReference ` + :param running_requests: + :type running_requests: list of :class:`TaskAgentJobRequest ` + """ + + _attribute_map = { + 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'running_requests': {'key': 'runningRequests', 'type': '[TaskAgentJobRequest]'} + } + + def __init__(self, plan_group=None, project=None, running_requests=None): + super(TaskOrchestrationPlanGroup, self).__init__() + self.plan_group = plan_group + self.project = project + self.running_requests = running_requests + + +class TaskOutputVariable(Model): + """TaskOutputVariable. + + :param description: + :type description: str + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(TaskOutputVariable, self).__init__() + self.description = description + self.name = name + + +class TaskPackageMetadata(Model): + """TaskPackageMetadata. + + :param type: Gets the name of the package. + :type type: str + :param url: Gets the url of the package. + :type url: str + :param version: Gets the version of the package. + :type version: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, type=None, url=None, version=None): + super(TaskPackageMetadata, self).__init__() + self.type = type + self.url = url + self.version = version + + +class TaskReference(Model): + """TaskReference. + + :param id: + :type id: str + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, inputs=None, name=None, version=None): + super(TaskReference, self).__init__() + self.id = id + self.inputs = inputs + self.name = name + self.version = version + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class TaskVersion(Model): + """TaskVersion. + + :param is_test: + :type is_test: bool + :param major: + :type major: int + :param minor: + :type minor: int + :param patch: + :type patch: int + """ + + _attribute_map = { + 'is_test': {'key': 'isTest', 'type': 'bool'}, + 'major': {'key': 'major', 'type': 'int'}, + 'minor': {'key': 'minor', 'type': 'int'}, + 'patch': {'key': 'patch', 'type': 'int'} + } + + def __init__(self, is_test=None, major=None, minor=None, patch=None): + super(TaskVersion, self).__init__() + self.is_test = is_test + self.major = major + self.minor = minor + self.patch = patch + + +class ValidationItem(Model): + """ValidationItem. + + :param is_valid: Tells whether the current input is valid or not + :type is_valid: bool + :param reason: Reason for input validation failure + :type reason: str + :param type: Type of validation item + :type type: str + :param value: Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master') + :type value: str + """ + + _attribute_map = { + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_valid=None, reason=None, type=None, value=None): + super(ValidationItem, self).__init__() + self.is_valid = is_valid + self.reason = reason + self.type = type + self.value = value + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: Gets or sets the identity who created the variable group. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets the time when variable group was created. + :type created_on: datetime + :param description: Gets or sets description of the variable group. + :type description: str + :param id: Gets or sets id of the variable group. + :type id: int + :param modified_by: Gets or sets the identity who modified the variable group. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets the time when variable group was modified + :type modified_on: datetime + :param name: Gets or sets name of the variable group. + :type name: str + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type of the variable group. + :type type: str + :param variables: Gets or sets variables contained in the variable group. + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + +class VariableGroupParameters(Model): + """VariableGroupParameters. + + :param description: Sets description of the variable group. + :type description: str + :param name: Sets name of the variable group. + :type name: str + :param provider_data: Sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Sets type of the variable group. + :type type: str + :param variables: Sets variables contained in the variable group. + :type variables: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, description=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroupParameters, self).__init__() + self.description = description + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class DataSourceBinding(DataSourceBindingBase): + """DataSourceBinding. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) + + +class DeploymentGroup(DeploymentGroupReference): + """DeploymentGroup. + + :param id: Deployment group identifier. + :type id: int + :param name: Name of the deployment group. + :type name: str + :param pool: Deployment pool in which deployment agents are registered. + :type pool: :class:`TaskAgentPoolReference ` + :param project: Project to which the deployment group belongs. + :type project: :class:`ProjectReference ` + :param description: Description of the deployment group. + :type description: str + :param machine_count: Number of deployment targets in the deployment group. + :type machine_count: int + :param machines: List of deployment targets in the deployment group. + :type machines: list of :class:`DeploymentMachine ` + :param machine_tags: List of unique tags across all deployment targets in the deployment group. + :type machine_tags: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'machine_count': {'key': 'machineCount', 'type': 'int'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'machine_tags': {'key': 'machineTags', 'type': '[str]'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, description=None, machine_count=None, machines=None, machine_tags=None): + super(DeploymentGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.description = description + self.machine_count = machine_count + self.machines = machines + self.machine_tags = machine_tags + + +class DeploymentMachineGroup(DeploymentMachineGroupReference): + """DeploymentMachineGroup. + + :param id: + :type id: int + :param name: + :type name: str + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param project: + :type project: :class:`ProjectReference ` + :param machines: + :type machines: list of :class:`DeploymentMachine ` + :param size: + :type size: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, + 'size': {'key': 'size', 'type': 'int'} + } + + def __init__(self, id=None, name=None, pool=None, project=None, machines=None, size=None): + super(DeploymentMachineGroup, self).__init__(id=id, name=name, pool=pool, project=project) + self.machines = machines + self.size = size + + +class TaskAgent(TaskAgentReference): + """TaskAgent. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. + :type enabled: bool + :param id: Gets the identifier of the agent. + :type id: int + :param name: Gets the name of the agent. + :type name: str + :param oSDescription: Gets the OS of the agent. + :type oSDescription: str + :param status: Gets the current connectivity status of the agent. + :type status: object + :param version: Gets the version of the agent. + :type version: str + :param assigned_request: Gets the request which is currently assigned to this agent. + :type assigned_request: :class:`TaskAgentJobRequest ` + :param authorization: Gets or sets the authorization information for this agent. + :type authorization: :class:`TaskAgentAuthorization ` + :param created_on: Gets the date on which this agent was created. + :type created_on: datetime + :param last_completed_request: Gets the last request which was completed by this agent. + :type last_completed_request: :class:`TaskAgentJobRequest ` + :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. + :type max_parallelism: int + :param pending_update: Gets the pending update for this agent. + :type pending_update: :class:`TaskAgentUpdate ` + :param properties: + :type properties: :class:`object ` + :param status_changed_on: Gets the date on which the last connectivity status change occurred. + :type status_changed_on: datetime + :param system_capabilities: + :type system_capabilities: dict + :param user_capabilities: + :type user_capabilities: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, + 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_completed_request': {'key': 'lastCompletedRequest', 'type': 'TaskAgentJobRequest'}, + 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, + 'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'status_changed_on': {'key': 'statusChangedOn', 'type': 'iso-8601'}, + 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'}, + 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} + } + + def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): + super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, oSDescription=oSDescription, status=status, version=version) + self.assigned_request = assigned_request + self.authorization = authorization + self.created_on = created_on + self.last_completed_request = last_completed_request + self.max_parallelism = max_parallelism + self.pending_update = pending_update + self.properties = properties + self.status_changed_on = status_changed_on + self.system_capabilities = system_capabilities + self.user_capabilities = user_capabilities + + +class TaskAgentPool(TaskAgentPoolReference): + """TaskAgentPool. + + :param id: + :type id: int + :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :type is_hosted: bool + :param name: + :type name: str + :param pool_type: Gets or sets the type of the pool + :type pool_type: object + :param scope: + :type scope: str + :param size: Gets the current size of the pool. + :type size: int + :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. + :type auto_provision: bool + :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets the date/time of the pool creation. + :type created_on: datetime + :param owner: Gets the identity who owns or administrates this pool. + :type owner: :class:`IdentityRef ` + :param properties: + :type properties: :class:`object ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_type': {'key': 'poolType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'int'}, + 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'properties': {'key': 'properties', 'type': 'object'} + } + + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, auto_provision=None, created_by=None, created_on=None, owner=None, properties=None): + super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope, size=size) + self.auto_provision = auto_provision + self.created_by = created_by + self.created_on = created_on + self.owner = owner + self.properties = properties + + +class TaskInputDefinition(TaskInputDefinitionBase): + """TaskInputDefinition. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'}, + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinition, self).__init__(aliases=aliases, default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) + + +class TaskSourceDefinition(TaskSourceDefinitionBase): + """TaskSourceDefinition. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinition, self).__init__(auth_key=auth_key, endpoint=endpoint, key_selector=key_selector, selector=selector, target=target) + + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'ClientCertificate', + 'DataSource', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'DeploymentGroupCreateParameter', + 'DeploymentGroupCreateParameterPoolProperty', + 'DeploymentGroupMetrics', + 'DeploymentGroupReference', + 'DeploymentGroupUpdateParameter', + 'DeploymentMachine', + 'DeploymentMachineGroupReference', + 'DeploymentPoolSummary', + 'DeploymentTargetUpdateParameter', + 'EndpointAuthorization', + 'EndpointUrl', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValidationRequest', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'MetricsColumnMetaData', + 'MetricsColumnsHeader', + 'MetricsRow', + 'OAuthConfiguration', + 'OAuthConfigurationParams', + 'PackageMetadata', + 'PackageVersion', + 'ProjectReference', + 'PublishTaskGroupMetadata', + 'ReferenceLinks', + 'ResourceUsage', + 'ResultTransformationDetails', + 'SecureFile', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'TaskAgentAuthorization', + 'TaskAgentDelaySource', + 'TaskAgentJobRequest', + 'TaskAgentMessage', + 'TaskAgentPoolMaintenanceDefinition', + 'TaskAgentPoolMaintenanceJob', + 'TaskAgentPoolMaintenanceJobTargetAgent', + 'TaskAgentPoolMaintenanceOptions', + 'TaskAgentPoolMaintenanceRetentionPolicy', + 'TaskAgentPoolMaintenanceSchedule', + 'TaskAgentPoolReference', + 'TaskAgentPublicKey', + 'TaskAgentQueue', + 'TaskAgentReference', + 'TaskAgentSession', + 'TaskAgentSessionKey', + 'TaskAgentUpdate', + 'TaskAgentUpdateReason', + 'TaskDefinition', + 'TaskDefinitionEndpoint', + 'TaskDefinitionReference', + 'TaskExecution', + 'TaskGroup', + 'TaskGroupCreateParameter', + 'TaskGroupDefinition', + 'TaskGroupRevision', + 'TaskGroupStep', + 'TaskGroupUpdateParameter', + 'TaskHubLicenseDetails', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlanGroup', + 'TaskOutputVariable', + 'TaskPackageMetadata', + 'TaskReference', + 'TaskSourceDefinitionBase', + 'TaskVersion', + 'ValidationItem', + 'VariableGroup', + 'VariableGroupParameters', + 'VariableGroupProviderData', + 'VariableValue', + 'DataSourceBinding', + 'DeploymentGroup', + 'DeploymentMachineGroup', + 'TaskAgent', + 'TaskAgentPool', + 'TaskInputDefinition', + 'TaskSourceDefinition', +] diff --git a/vsts/vsts/task_agent/v4_1/task_agent_client.py b/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py similarity index 99% rename from vsts/vsts/task_agent/v4_1/task_agent_client.py rename to azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py index 9b402b64..b446155c 100644 --- a/vsts/vsts/task_agent/v4_1/task_agent_client.py +++ b/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TaskAgentClient(VssClient): +class TaskAgentClient(Client): """TaskAgent :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/test/__init__.py b/azure-devops/azure/devops/v4_1/test/__init__.py new file mode 100644 index 00000000..627441f1 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/test/__init__.py @@ -0,0 +1,113 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AggregatedDataForResultTrend', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByState', + 'BuildConfiguration', + 'BuildCoverage', + 'BuildReference', + 'CloneOperationInformation', + 'CloneOptions', + 'CloneStatistics', + 'CodeCoverageData', + 'CodeCoverageStatistics', + 'CodeCoverageSummary', + 'CoverageStatistics', + 'CustomTestField', + 'CustomTestFieldDefinition', + 'DtlEnvironmentDetails', + 'FailingSince', + 'FieldDetailsForTestResults', + 'FunctionCoverage', + 'GraphSubjectBase', + 'IdentityRef', + 'LastResultDetails', + 'LinkedWorkItemsQuery', + 'LinkedWorkItemsQueryResult', + 'ModuleCoverage', + 'NameValuePair', + 'PlanUpdateModel', + 'PointAssignment', + 'PointsFilter', + 'PointUpdateModel', + 'PropertyBag', + 'QueryModel', + 'ReferenceLinks', + 'ReleaseEnvironmentDefinitionReference', + 'ReleaseReference', + 'ResultRetentionSettings', + 'ResultsFilter', + 'RunCreateModel', + 'RunFilter', + 'RunStatistic', + 'RunUpdateModel', + 'ShallowReference', + 'ShallowTestCaseResult', + 'SharedStepModel', + 'SuiteCreateModel', + 'SuiteEntry', + 'SuiteEntryUpdateModel', + 'SuiteTestCase', + 'SuiteUpdateModel', + 'TeamContext', + 'TeamProjectReference', + 'TestActionResultModel', + 'TestAttachment', + 'TestAttachmentReference', + 'TestAttachmentRequestModel', + 'TestCaseResult', + 'TestCaseResultAttachmentModel', + 'TestCaseResultIdentifier', + 'TestCaseResultUpdateModel', + 'TestConfiguration', + 'TestEnvironment', + 'TestFailureDetails', + 'TestFailuresAnalysis', + 'TestIterationDetailsModel', + 'TestMessageLogDetails', + 'TestMethod', + 'TestOperationReference', + 'TestPlan', + 'TestPlanCloneRequest', + 'TestPoint', + 'TestPointsQuery', + 'TestResolutionState', + 'TestResultCreateModel', + 'TestResultDocument', + 'TestResultHistory', + 'TestResultHistoryDetailsForGroup', + 'TestResultModelBase', + 'TestResultParameterModel', + 'TestResultPayload', + 'TestResultsContext', + 'TestResultsDetails', + 'TestResultsDetailsForGroup', + 'TestResultsGroupsForBuild', + 'TestResultsGroupsForRelease', + 'TestResultsQuery', + 'TestResultSummary', + 'TestResultTrendFilter', + 'TestRun', + 'TestRunCoverage', + 'TestRunStatistic', + 'TestSession', + 'TestSettings', + 'TestSuite', + 'TestSuiteCloneRequest', + 'TestSummaryForWorkItem', + 'TestToWorkItemLinks', + 'TestVariable', + 'WorkItemReference', + 'WorkItemToTestLinks', +] diff --git a/azure-devops/azure/devops/v4_1/test/models.py b/azure-devops/azure/devops/v4_1/test/models.py new file mode 100644 index 00000000..84c4ba8b --- /dev/null +++ b/azure-devops/azure/devops/v4_1/test/models.py @@ -0,0 +1,4052 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AggregatedDataForResultTrend(Model): + """AggregatedDataForResultTrend. + + :param duration: This is tests execution duration. + :type duration: object + :param results_by_outcome: + :type results_by_outcome: dict + :param run_summary_by_state: + :type run_summary_by_state: dict + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, results_by_outcome=None, run_summary_by_state=None, test_results_context=None, total_tests=None): + super(AggregatedDataForResultTrend, self).__init__() + self.duration = duration + self.results_by_outcome = results_by_outcome + self.run_summary_by_state = run_summary_by_state + self.test_results_context = test_results_context + self.total_tests = total_tests + + +class AggregatedResultsAnalysis(Model): + """AggregatedResultsAnalysis. + + :param duration: + :type duration: object + :param not_reported_results_by_outcome: + :type not_reported_results_by_outcome: dict + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + :param results_by_outcome: + :type results_by_outcome: dict + :param results_difference: + :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_state: + :type run_summary_by_state: dict + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): + super(AggregatedResultsAnalysis, self).__init__() + self.duration = duration + self.not_reported_results_by_outcome = not_reported_results_by_outcome + self.previous_context = previous_context + self.results_by_outcome = results_by_outcome + self.results_difference = results_difference + self.run_summary_by_state = run_summary_by_state + self.total_tests = total_tests + + +class AggregatedResultsByOutcome(Model): + """AggregatedResultsByOutcome. + + :param count: + :type count: int + :param duration: + :type duration: object + :param group_by_field: + :type group_by_field: str + :param group_by_value: + :type group_by_value: object + :param outcome: + :type outcome: object + :param rerun_result_count: + :type rerun_result_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'object'}, + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} + } + + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): + super(AggregatedResultsByOutcome, self).__init__() + self.count = count + self.duration = duration + self.group_by_field = group_by_field + self.group_by_value = group_by_value + self.outcome = outcome + self.rerun_result_count = rerun_result_count + + +class AggregatedResultsDifference(Model): + """AggregatedResultsDifference. + + :param increase_in_duration: + :type increase_in_duration: object + :param increase_in_failures: + :type increase_in_failures: int + :param increase_in_other_tests: + :type increase_in_other_tests: int + :param increase_in_passed_tests: + :type increase_in_passed_tests: int + :param increase_in_total_tests: + :type increase_in_total_tests: int + """ + + _attribute_map = { + 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, + 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, + 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, + 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, + 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} + } + + def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): + super(AggregatedResultsDifference, self).__init__() + self.increase_in_duration = increase_in_duration + self.increase_in_failures = increase_in_failures + self.increase_in_other_tests = increase_in_other_tests + self.increase_in_passed_tests = increase_in_passed_tests + self.increase_in_total_tests = increase_in_total_tests + + +class AggregatedRunsByState(Model): + """AggregatedRunsByState. + + :param runs_count: + :type runs_count: int + :param state: + :type state: object + """ + + _attribute_map = { + 'runs_count': {'key': 'runsCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, runs_count=None, state=None): + super(AggregatedRunsByState, self).__init__() + self.runs_count = runs_count + self.state = state + + +class BuildConfiguration(Model): + """BuildConfiguration. + + :param branch_name: + :type branch_name: str + :param build_definition_id: + :type build_definition_id: int + :param flavor: + :type flavor: str + :param id: + :type id: int + :param number: + :type number: str + :param platform: + :type platform: str + :param project: + :type project: :class:`ShallowReference ` + :param repository_id: + :type repository_id: int + :param source_version: + :type source_version: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'flavor': {'key': 'flavor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'platform': {'key': 'platform', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'repository_id': {'key': 'repositoryId', 'type': 'int'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): + super(BuildConfiguration, self).__init__() + self.branch_name = branch_name + self.build_definition_id = build_definition_id + self.flavor = flavor + self.id = id + self.number = number + self.platform = platform + self.project = project + self.repository_id = repository_id + self.source_version = source_version + self.uri = uri + + +class BuildCoverage(Model): + """BuildCoverage. + + :param code_coverage_file_url: + :type code_coverage_file_url: str + :param configuration: + :type configuration: :class:`BuildConfiguration ` + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + """ + + _attribute_map = { + 'code_coverage_file_url': {'key': 'codeCoverageFileUrl', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'BuildConfiguration'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, code_coverage_file_url=None, configuration=None, last_error=None, modules=None, state=None): + super(BuildCoverage, self).__init__() + self.code_coverage_file_url = code_coverage_file_url + self.configuration = configuration + self.last_error = last_error + self.modules = modules + self.state = state + + +class BuildReference(Model): + """BuildReference. + + :param branch_name: + :type branch_name: str + :param build_system: + :type build_system: str + :param definition_id: + :type definition_id: int + :param id: + :type id: int + :param number: + :type number: str + :param repository_id: + :type repository_id: str + :param uri: + :type uri: str + """ + + _attribute_map = { + 'branch_name': {'key': 'branchName', 'type': 'str'}, + 'build_system': {'key': 'buildSystem', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'int'}, + 'number': {'key': 'number', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'} + } + + def __init__(self, branch_name=None, build_system=None, definition_id=None, id=None, number=None, repository_id=None, uri=None): + super(BuildReference, self).__init__() + self.branch_name = branch_name + self.build_system = build_system + self.definition_id = definition_id + self.id = id + self.number = number + self.repository_id = repository_id + self.uri = uri + + +class CloneOperationInformation(Model): + """CloneOperationInformation. + + :param clone_statistics: + :type clone_statistics: :class:`CloneStatistics ` + :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue + :type completion_date: datetime + :param creation_date: DateTime when the operation was started + :type creation_date: datetime + :param destination_object: Shallow reference of the destination + :type destination_object: :class:`ShallowReference ` + :param destination_plan: Shallow reference of the destination + :type destination_plan: :class:`ShallowReference ` + :param destination_project: Shallow reference of the destination + :type destination_project: :class:`ShallowReference ` + :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. + :type message: str + :param op_id: The ID of the operation + :type op_id: int + :param result_object_type: The type of the object generated as a result of the Clone operation + :type result_object_type: object + :param source_object: Shallow reference of the source + :type source_object: :class:`ShallowReference ` + :param source_plan: Shallow reference of the source + :type source_plan: :class:`ShallowReference ` + :param source_project: Shallow reference of the source + :type source_project: :class:`ShallowReference ` + :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete + :type state: object + :param url: Url for geting the clone information + :type url: str + """ + + _attribute_map = { + 'clone_statistics': {'key': 'cloneStatistics', 'type': 'CloneStatistics'}, + 'completion_date': {'key': 'completionDate', 'type': 'iso-8601'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'destination_object': {'key': 'destinationObject', 'type': 'ShallowReference'}, + 'destination_plan': {'key': 'destinationPlan', 'type': 'ShallowReference'}, + 'destination_project': {'key': 'destinationProject', 'type': 'ShallowReference'}, + 'message': {'key': 'message', 'type': 'str'}, + 'op_id': {'key': 'opId', 'type': 'int'}, + 'result_object_type': {'key': 'resultObjectType', 'type': 'object'}, + 'source_object': {'key': 'sourceObject', 'type': 'ShallowReference'}, + 'source_plan': {'key': 'sourcePlan', 'type': 'ShallowReference'}, + 'source_project': {'key': 'sourceProject', 'type': 'ShallowReference'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, clone_statistics=None, completion_date=None, creation_date=None, destination_object=None, destination_plan=None, destination_project=None, message=None, op_id=None, result_object_type=None, source_object=None, source_plan=None, source_project=None, state=None, url=None): + super(CloneOperationInformation, self).__init__() + self.clone_statistics = clone_statistics + self.completion_date = completion_date + self.creation_date = creation_date + self.destination_object = destination_object + self.destination_plan = destination_plan + self.destination_project = destination_project + self.message = message + self.op_id = op_id + self.result_object_type = result_object_type + self.source_object = source_object + self.source_plan = source_plan + self.source_project = source_project + self.state = state + self.url = url + + +class CloneOptions(Model): + """CloneOptions. + + :param clone_requirements: If set to true requirements will be cloned + :type clone_requirements: bool + :param copy_all_suites: copy all suites from a source plan + :type copy_all_suites: bool + :param copy_ancestor_hierarchy: copy ancestor hieracrchy + :type copy_ancestor_hierarchy: bool + :param destination_work_item_type: Name of the workitem type of the clone + :type destination_work_item_type: str + :param override_parameters: Key value pairs where the key value is overridden by the value. + :type override_parameters: dict + :param related_link_comment: Comment on the link that will link the new clone test case to the original Set null for no comment + :type related_link_comment: str + """ + + _attribute_map = { + 'clone_requirements': {'key': 'cloneRequirements', 'type': 'bool'}, + 'copy_all_suites': {'key': 'copyAllSuites', 'type': 'bool'}, + 'copy_ancestor_hierarchy': {'key': 'copyAncestorHierarchy', 'type': 'bool'}, + 'destination_work_item_type': {'key': 'destinationWorkItemType', 'type': 'str'}, + 'override_parameters': {'key': 'overrideParameters', 'type': '{str}'}, + 'related_link_comment': {'key': 'relatedLinkComment', 'type': 'str'} + } + + def __init__(self, clone_requirements=None, copy_all_suites=None, copy_ancestor_hierarchy=None, destination_work_item_type=None, override_parameters=None, related_link_comment=None): + super(CloneOptions, self).__init__() + self.clone_requirements = clone_requirements + self.copy_all_suites = copy_all_suites + self.copy_ancestor_hierarchy = copy_ancestor_hierarchy + self.destination_work_item_type = destination_work_item_type + self.override_parameters = override_parameters + self.related_link_comment = related_link_comment + + +class CloneStatistics(Model): + """CloneStatistics. + + :param cloned_requirements_count: Number of Requirments cloned so far. + :type cloned_requirements_count: int + :param cloned_shared_steps_count: Number of shared steps cloned so far. + :type cloned_shared_steps_count: int + :param cloned_test_cases_count: Number of test cases cloned so far + :type cloned_test_cases_count: int + :param total_requirements_count: Total number of requirements to be cloned + :type total_requirements_count: int + :param total_test_cases_count: Total number of test cases to be cloned + :type total_test_cases_count: int + """ + + _attribute_map = { + 'cloned_requirements_count': {'key': 'clonedRequirementsCount', 'type': 'int'}, + 'cloned_shared_steps_count': {'key': 'clonedSharedStepsCount', 'type': 'int'}, + 'cloned_test_cases_count': {'key': 'clonedTestCasesCount', 'type': 'int'}, + 'total_requirements_count': {'key': 'totalRequirementsCount', 'type': 'int'}, + 'total_test_cases_count': {'key': 'totalTestCasesCount', 'type': 'int'} + } + + def __init__(self, cloned_requirements_count=None, cloned_shared_steps_count=None, cloned_test_cases_count=None, total_requirements_count=None, total_test_cases_count=None): + super(CloneStatistics, self).__init__() + self.cloned_requirements_count = cloned_requirements_count + self.cloned_shared_steps_count = cloned_shared_steps_count + self.cloned_test_cases_count = cloned_test_cases_count + self.total_requirements_count = total_requirements_count + self.total_test_cases_count = total_test_cases_count + + +class CodeCoverageData(Model): + """CodeCoverageData. + + :param build_flavor: Flavor of build for which data is retrieved/published + :type build_flavor: str + :param build_platform: Platform of build for which data is retrieved/published + :type build_platform: str + :param coverage_stats: List of coverage data for the build + :type coverage_stats: list of :class:`CodeCoverageStatistics ` + """ + + _attribute_map = { + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'coverage_stats': {'key': 'coverageStats', 'type': '[CodeCoverageStatistics]'} + } + + def __init__(self, build_flavor=None, build_platform=None, coverage_stats=None): + super(CodeCoverageData, self).__init__() + self.build_flavor = build_flavor + self.build_platform = build_platform + self.coverage_stats = coverage_stats + + +class CodeCoverageStatistics(Model): + """CodeCoverageStatistics. + + :param covered: Covered units + :type covered: int + :param delta: Delta of coverage + :type delta: float + :param is_delta_available: Is delta valid + :type is_delta_available: bool + :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) + :type label: str + :param position: Position of label + :type position: int + :param total: Total units + :type total: int + """ + + _attribute_map = { + 'covered': {'key': 'covered', 'type': 'int'}, + 'delta': {'key': 'delta', 'type': 'float'}, + 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'} + } + + def __init__(self, covered=None, delta=None, is_delta_available=None, label=None, position=None, total=None): + super(CodeCoverageStatistics, self).__init__() + self.covered = covered + self.delta = delta + self.is_delta_available = is_delta_available + self.label = label + self.position = position + self.total = total + + +class CodeCoverageSummary(Model): + """CodeCoverageSummary. + + :param build: Uri of build for which data is retrieved/published + :type build: :class:`ShallowReference ` + :param coverage_data: List of coverage data and details for the build + :type coverage_data: list of :class:`CodeCoverageData ` + :param delta_build: Uri of build against which difference in coverage is computed + :type delta_build: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'coverage_data': {'key': 'coverageData', 'type': '[CodeCoverageData]'}, + 'delta_build': {'key': 'deltaBuild', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, coverage_data=None, delta_build=None): + super(CodeCoverageSummary, self).__init__() + self.build = build + self.coverage_data = coverage_data + self.delta_build = delta_build + + +class CoverageStatistics(Model): + """CoverageStatistics. + + :param blocks_covered: + :type blocks_covered: int + :param blocks_not_covered: + :type blocks_not_covered: int + :param lines_covered: + :type lines_covered: int + :param lines_not_covered: + :type lines_not_covered: int + :param lines_partially_covered: + :type lines_partially_covered: int + """ + + _attribute_map = { + 'blocks_covered': {'key': 'blocksCovered', 'type': 'int'}, + 'blocks_not_covered': {'key': 'blocksNotCovered', 'type': 'int'}, + 'lines_covered': {'key': 'linesCovered', 'type': 'int'}, + 'lines_not_covered': {'key': 'linesNotCovered', 'type': 'int'}, + 'lines_partially_covered': {'key': 'linesPartiallyCovered', 'type': 'int'} + } + + def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=None, lines_not_covered=None, lines_partially_covered=None): + super(CoverageStatistics, self).__init__() + self.blocks_covered = blocks_covered + self.blocks_not_covered = blocks_not_covered + self.lines_covered = lines_covered + self.lines_not_covered = lines_not_covered + self.lines_partially_covered = lines_partially_covered + + +class CustomTestField(Model): + """CustomTestField. + + :param field_name: + :type field_name: str + :param value: + :type value: object + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, field_name=None, value=None): + super(CustomTestField, self).__init__() + self.field_name = field_name + self.value = value + + +class CustomTestFieldDefinition(Model): + """CustomTestFieldDefinition. + + :param field_id: + :type field_id: int + :param field_name: + :type field_name: str + :param field_type: + :type field_type: object + :param scope: + :type scope: object + """ + + _attribute_map = { + 'field_id': {'key': 'fieldId', 'type': 'int'}, + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'field_type': {'key': 'fieldType', 'type': 'object'}, + 'scope': {'key': 'scope', 'type': 'object'} + } + + def __init__(self, field_id=None, field_name=None, field_type=None, scope=None): + super(CustomTestFieldDefinition, self).__init__() + self.field_id = field_id + self.field_name = field_name + self.field_type = field_type + self.scope = scope + + +class DtlEnvironmentDetails(Model): + """DtlEnvironmentDetails. + + :param csm_content: + :type csm_content: str + :param csm_parameters: + :type csm_parameters: str + :param subscription_name: + :type subscription_name: str + """ + + _attribute_map = { + 'csm_content': {'key': 'csmContent', 'type': 'str'}, + 'csm_parameters': {'key': 'csmParameters', 'type': 'str'}, + 'subscription_name': {'key': 'subscriptionName', 'type': 'str'} + } + + def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None): + super(DtlEnvironmentDetails, self).__init__() + self.csm_content = csm_content + self.csm_parameters = csm_parameters + self.subscription_name = subscription_name + + +class FailingSince(Model): + """FailingSince. + + :param build: + :type build: :class:`BuildReference ` + :param date: + :type date: datetime + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'date': {'key': 'date', 'type': 'iso-8601'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, date=None, release=None): + super(FailingSince, self).__init__() + self.build = build + self.date = date + self.release = release + + +class FieldDetailsForTestResults(Model): + """FieldDetailsForTestResults. + + :param field_name: Group by field name + :type field_name: str + :param groups_for_field: Group by field values + :type groups_for_field: list of object + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'groups_for_field': {'key': 'groupsForField', 'type': '[object]'} + } + + def __init__(self, field_name=None, groups_for_field=None): + super(FieldDetailsForTestResults, self).__init__() + self.field_name = field_name + self.groups_for_field = groups_for_field + + +class FunctionCoverage(Model): + """FunctionCoverage. + + :param class_: + :type class_: str + :param name: + :type name: str + :param namespace: + :type namespace: str + :param source_file: + :type source_file: str + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'source_file': {'key': 'sourceFile', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, class_=None, name=None, namespace=None, source_file=None, statistics=None): + super(FunctionCoverage, self).__init__() + self.class_ = class_ + self.name = name + self.namespace = namespace + self.source_file = source_file + self.statistics = statistics + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class LastResultDetails(Model): + """LastResultDetails. + + :param date_completed: + :type date_completed: datetime + :param duration: + :type duration: long + :param run_by: + :type run_by: :class:`IdentityRef ` + """ + + _attribute_map = { + 'date_completed': {'key': 'dateCompleted', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'long'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'} + } + + def __init__(self, date_completed=None, duration=None, run_by=None): + super(LastResultDetails, self).__init__() + self.date_completed = date_completed + self.duration = duration + self.run_by = run_by + + +class LinkedWorkItemsQuery(Model): + """LinkedWorkItemsQuery. + + :param automated_test_names: + :type automated_test_names: list of str + :param plan_id: + :type plan_id: int + :param point_ids: + :type point_ids: list of int + :param suite_ids: + :type suite_ids: list of int + :param test_case_ids: + :type test_case_ids: list of int + :param work_item_category: + :type work_item_category: str + """ + + _attribute_map = { + 'automated_test_names': {'key': 'automatedTestNames', 'type': '[str]'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'}, + 'test_case_ids': {'key': 'testCaseIds', 'type': '[int]'}, + 'work_item_category': {'key': 'workItemCategory', 'type': 'str'} + } + + def __init__(self, automated_test_names=None, plan_id=None, point_ids=None, suite_ids=None, test_case_ids=None, work_item_category=None): + super(LinkedWorkItemsQuery, self).__init__() + self.automated_test_names = automated_test_names + self.plan_id = plan_id + self.point_ids = point_ids + self.suite_ids = suite_ids + self.test_case_ids = test_case_ids + self.work_item_category = work_item_category + + +class LinkedWorkItemsQueryResult(Model): + """LinkedWorkItemsQueryResult. + + :param automated_test_name: + :type automated_test_name: str + :param plan_id: + :type plan_id: int + :param point_id: + :type point_id: int + :param suite_id: + :type suite_id: int + :param test_case_id: + :type test_case_id: int + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'plan_id': {'key': 'planId', 'type': 'int'}, + 'point_id': {'key': 'pointId', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, automated_test_name=None, plan_id=None, point_id=None, suite_id=None, test_case_id=None, work_items=None): + super(LinkedWorkItemsQueryResult, self).__init__() + self.automated_test_name = automated_test_name + self.plan_id = plan_id + self.point_id = point_id + self.suite_id = suite_id + self.test_case_id = test_case_id + self.work_items = work_items + + +class ModuleCoverage(Model): + """ModuleCoverage. + + :param block_count: + :type block_count: int + :param block_data: + :type block_data: str + :param functions: + :type functions: list of :class:`FunctionCoverage ` + :param name: + :type name: str + :param signature: + :type signature: str + :param signature_age: + :type signature_age: int + :param statistics: + :type statistics: :class:`CoverageStatistics ` + """ + + _attribute_map = { + 'block_count': {'key': 'blockCount', 'type': 'int'}, + 'block_data': {'key': 'blockData', 'type': 'str'}, + 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'signature': {'key': 'signature', 'type': 'str'}, + 'signature_age': {'key': 'signatureAge', 'type': 'int'}, + 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} + } + + def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): + super(ModuleCoverage, self).__init__() + self.block_count = block_count + self.block_data = block_data + self.functions = functions + self.name = name + self.signature = signature + self.signature_age = signature_age + self.statistics = statistics + + +class NameValuePair(Model): + """NameValuePair. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(NameValuePair, self).__init__() + self.name = name + self.value = value + + +class PlanUpdateModel(Model): + """PlanUpdateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param configuration_ids: + :type configuration_ids: list of int + :param description: + :type description: str + :param end_date: + :type end_date: str + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param start_date: + :type start_date: str + :param state: + :type state: str + :param status: + :type status: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): + super(PlanUpdateModel, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.configuration_ids = configuration_ids + self.description = description + self.end_date = end_date + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.release_environment_definition = release_environment_definition + self.start_date = start_date + self.state = state + self.status = status + + +class PointAssignment(Model): + """PointAssignment. + + :param configuration: + :type configuration: :class:`ShallowReference ` + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, configuration=None, tester=None): + super(PointAssignment, self).__init__() + self.configuration = configuration + self.tester = tester + + +class PointsFilter(Model): + """PointsFilter. + + :param configuration_names: + :type configuration_names: list of str + :param testcase_ids: + :type testcase_ids: list of int + :param testers: + :type testers: list of :class:`IdentityRef ` + """ + + _attribute_map = { + 'configuration_names': {'key': 'configurationNames', 'type': '[str]'}, + 'testcase_ids': {'key': 'testcaseIds', 'type': '[int]'}, + 'testers': {'key': 'testers', 'type': '[IdentityRef]'} + } + + def __init__(self, configuration_names=None, testcase_ids=None, testers=None): + super(PointsFilter, self).__init__() + self.configuration_names = configuration_names + self.testcase_ids = testcase_ids + self.testers = testers + + +class PointUpdateModel(Model): + """PointUpdateModel. + + :param outcome: + :type outcome: str + :param reset_to_active: + :type reset_to_active: bool + :param tester: + :type tester: :class:`IdentityRef ` + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'reset_to_active': {'key': 'resetToActive', 'type': 'bool'}, + 'tester': {'key': 'tester', 'type': 'IdentityRef'} + } + + def __init__(self, outcome=None, reset_to_active=None, tester=None): + super(PointUpdateModel, self).__init__() + self.outcome = outcome + self.reset_to_active = reset_to_active + self.tester = tester + + +class PropertyBag(Model): + """PropertyBag. + + :param bag: Generic store for test session data + :type bag: dict + """ + + _attribute_map = { + 'bag': {'key': 'bag', 'type': '{str}'} + } + + def __init__(self, bag=None): + super(PropertyBag, self).__init__() + self.bag = bag + + +class QueryModel(Model): + """QueryModel. + + :param query: + :type query: str + """ + + _attribute_map = { + 'query': {'key': 'query', 'type': 'str'} + } + + def __init__(self, query=None): + super(QueryModel, self).__init__() + self.query = query + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ReleaseEnvironmentDefinitionReference(Model): + """ReleaseEnvironmentDefinitionReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'} + } + + def __init__(self, definition_id=None, environment_definition_id=None): + super(ReleaseEnvironmentDefinitionReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + + +class ReleaseReference(Model): + """ReleaseReference. + + :param definition_id: + :type definition_id: int + :param environment_definition_id: + :type environment_definition_id: int + :param environment_definition_name: + :type environment_definition_name: str + :param environment_id: + :type environment_id: int + :param environment_name: + :type environment_name: str + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, + 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + super(ReleaseReference, self).__init__() + self.definition_id = definition_id + self.environment_definition_id = environment_definition_id + self.environment_definition_name = environment_definition_name + self.environment_id = environment_id + self.environment_name = environment_name + self.id = id + self.name = name + + +class ResultRetentionSettings(Model): + """ResultRetentionSettings. + + :param automated_results_retention_duration: + :type automated_results_retention_duration: int + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param manual_results_retention_duration: + :type manual_results_retention_duration: int + """ + + _attribute_map = { + 'automated_results_retention_duration': {'key': 'automatedResultsRetentionDuration', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'manual_results_retention_duration': {'key': 'manualResultsRetentionDuration', 'type': 'int'} + } + + def __init__(self, automated_results_retention_duration=None, last_updated_by=None, last_updated_date=None, manual_results_retention_duration=None): + super(ResultRetentionSettings, self).__init__() + self.automated_results_retention_duration = automated_results_retention_duration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.manual_results_retention_duration = manual_results_retention_duration + + +class ResultsFilter(Model): + """ResultsFilter. + + :param automated_test_name: + :type automated_test_name: str + :param branch: + :type branch: str + :param group_by: + :type group_by: str + :param max_complete_date: + :type max_complete_date: datetime + :param results_count: + :type results_count: int + :param test_case_reference_ids: + :type test_case_reference_ids: list of int + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'branch': {'key': 'branch', 'type': 'str'}, + 'group_by': {'key': 'groupBy', 'type': 'str'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'results_count': {'key': 'resultsCount', 'type': 'int'}, + 'test_case_reference_ids': {'key': 'testCaseReferenceIds', 'type': '[int]'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_case_reference_ids=None, test_results_context=None, trend_days=None): + super(ResultsFilter, self).__init__() + self.automated_test_name = automated_test_name + self.branch = branch + self.group_by = group_by + self.max_complete_date = max_complete_date + self.results_count = results_count + self.test_case_reference_ids = test_case_reference_ids + self.test_results_context = test_results_context + self.trend_days = trend_days + + +class RunCreateModel(Model): + """RunCreateModel. + + :param automated: + :type automated: bool + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param complete_date: + :type complete_date: str + :param configuration_ids: + :type configuration_ids: list of int + :param controller: + :type controller: str + :param custom_test_fields: + :type custom_test_fields: list of :class:`CustomTestField ` + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_test_environment: + :type dtl_test_environment: :class:`ShallowReference ` + :param due_date: + :type due_date: str + :param environment_details: + :type environment_details: :class:`DtlEnvironmentDetails ` + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param iteration: + :type iteration: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param plan: + :type plan: :class:`ShallowReference ` + :param point_ids: + :type point_ids: list of int + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param run_timeout: + :type run_timeout: object + :param source_workflow: + :type source_workflow: str + :param start_date: + :type start_date: str + :param state: + :type state: str + :param test_configurations_mapping: + :type test_configurations_mapping: str + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param type: + :type type: str + """ + + _attribute_map = { + 'automated': {'key': 'automated', 'type': 'bool'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'complete_date': {'key': 'completeDate', 'type': 'str'}, + 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'custom_test_fields': {'key': 'customTestFields', 'type': '[CustomTestField]'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_test_environment': {'key': 'dtlTestEnvironment', 'type': 'ShallowReference'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'environment_details': {'key': 'environmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'point_ids': {'key': 'pointIds', 'type': '[int]'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_configurations_mapping': {'key': 'testConfigurationsMapping', 'type': 'str'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): + super(RunCreateModel, self).__init__() + self.automated = automated + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.complete_date = complete_date + self.configuration_ids = configuration_ids + self.controller = controller + self.custom_test_fields = custom_test_fields + self.dtl_aut_environment = dtl_aut_environment + self.dtl_test_environment = dtl_test_environment + self.due_date = due_date + self.environment_details = environment_details + self.error_message = error_message + self.filter = filter + self.iteration = iteration + self.name = name + self.owner = owner + self.plan = plan + self.point_ids = point_ids + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.run_timeout = run_timeout + self.source_workflow = source_workflow + self.start_date = start_date + self.state = state + self.test_configurations_mapping = test_configurations_mapping + self.test_environment_id = test_environment_id + self.test_settings = test_settings + self.type = type + + +class RunFilter(Model): + """RunFilter. + + :param source_filter: filter for the test case sources (test containers) + :type source_filter: str + :param test_case_filter: filter for the test cases + :type test_case_filter: str + """ + + _attribute_map = { + 'source_filter': {'key': 'sourceFilter', 'type': 'str'}, + 'test_case_filter': {'key': 'testCaseFilter', 'type': 'str'} + } + + def __init__(self, source_filter=None, test_case_filter=None): + super(RunFilter, self).__init__() + self.source_filter = source_filter + self.test_case_filter = test_case_filter + + +class RunStatistic(Model): + """RunStatistic. + + :param count: + :type count: int + :param outcome: + :type outcome: str + :param resolution_state: + :type resolution_state: :class:`TestResolutionState ` + :param state: + :type state: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'TestResolutionState'}, + 'state': {'key': 'state', 'type': 'str'} + } + + def __init__(self, count=None, outcome=None, resolution_state=None, state=None): + super(RunStatistic, self).__init__() + self.count = count + self.outcome = outcome + self.resolution_state = resolution_state + self.state = state + + +class RunUpdateModel(Model): + """RunUpdateModel. + + :param build: + :type build: :class:`ShallowReference ` + :param build_drop_location: + :type build_drop_location: str + :param build_flavor: + :type build_flavor: str + :param build_platform: + :type build_platform: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param controller: + :type controller: str + :param delete_in_progress_results: + :type delete_in_progress_results: bool + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_details: + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: str + :param error_message: + :type error_message: str + :param iteration: + :type iteration: str + :param log_entries: + :type log_entries: list of :class:`TestMessageLogDetails ` + :param name: + :type name: str + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param source_workflow: + :type source_workflow: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment_id: + :type test_environment_id: str + :param test_settings: + :type test_settings: :class:`ShallowReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, + 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, + 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'delete_in_progress_results': {'key': 'deleteInProgressResults', 'type': 'bool'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_details': {'key': 'dtlEnvironmentDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'log_entries': {'key': 'logEntries', 'type': '[TestMessageLogDetails]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'} + } + + def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): + super(RunUpdateModel, self).__init__() + self.build = build + self.build_drop_location = build_drop_location + self.build_flavor = build_flavor + self.build_platform = build_platform + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.delete_in_progress_results = delete_in_progress_results + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_details = dtl_environment_details + self.due_date = due_date + self.error_message = error_message + self.iteration = iteration + self.log_entries = log_entries + self.name = name + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.source_workflow = source_workflow + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment_id = test_environment_id + self.test_settings = test_settings + + +class ShallowReference(Model): + """ShallowReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the linked resource (definition name, controller name, etc.) + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(ShallowReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class ShallowTestCaseResult(Model): + """ShallowTestCaseResult. + + :param automated_test_storage: + :type automated_test_storage: str + :param id: + :type id: int + :param is_re_run: + :type is_re_run: bool + :param outcome: + :type outcome: str + :param owner: + :type owner: str + :param priority: + :type priority: int + :param ref_id: + :type ref_id: int + :param run_id: + :type run_id: int + :param test_case_title: + :type test_case_title: str + """ + + _attribute_map = { + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_re_run': {'key': 'isReRun', 'type': 'bool'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'ref_id': {'key': 'refId', 'type': 'int'}, + 'run_id': {'key': 'runId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'} + } + + def __init__(self, automated_test_storage=None, id=None, is_re_run=None, outcome=None, owner=None, priority=None, ref_id=None, run_id=None, test_case_title=None): + super(ShallowTestCaseResult, self).__init__() + self.automated_test_storage = automated_test_storage + self.id = id + self.is_re_run = is_re_run + self.outcome = outcome + self.owner = owner + self.priority = priority + self.ref_id = ref_id + self.run_id = run_id + self.test_case_title = test_case_title + + +class SharedStepModel(Model): + """SharedStepModel. + + :param id: + :type id: int + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(SharedStepModel, self).__init__() + self.id = id + self.revision = revision + + +class SuiteCreateModel(Model): + """SuiteCreateModel. + + :param name: + :type name: str + :param query_string: + :type query_string: str + :param requirement_ids: + :type requirement_ids: list of int + :param suite_type: + :type suite_type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_ids': {'key': 'requirementIds', 'type': '[int]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'} + } + + def __init__(self, name=None, query_string=None, requirement_ids=None, suite_type=None): + super(SuiteCreateModel, self).__init__() + self.name = name + self.query_string = query_string + self.requirement_ids = requirement_ids + self.suite_type = suite_type + + +class SuiteEntry(Model): + """SuiteEntry. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Sequence number for the test case or child suite in the suite + :type sequence_number: int + :param suite_id: Id for the suite + :type suite_id: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'suite_id': {'key': 'suiteId', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, test_case_id=None): + super(SuiteEntry, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.suite_id = suite_id + self.test_case_id = test_case_id + + +class SuiteEntryUpdateModel(Model): + """SuiteEntryUpdateModel. + + :param child_suite_id: Id of child suite in a suite + :type child_suite_id: int + :param sequence_number: Updated sequence number for the test case or child suite in the suite + :type sequence_number: int + :param test_case_id: Id of a test case in a suite + :type test_case_id: int + """ + + _attribute_map = { + 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, + 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'} + } + + def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None): + super(SuiteEntryUpdateModel, self).__init__() + self.child_suite_id = child_suite_id + self.sequence_number = sequence_number + self.test_case_id = test_case_id + + +class SuiteTestCase(Model): + """SuiteTestCase. + + :param point_assignments: + :type point_assignments: list of :class:`PointAssignment ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'point_assignments': {'key': 'pointAssignments', 'type': '[PointAssignment]'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'} + } + + def __init__(self, point_assignments=None, test_case=None): + super(SuiteTestCase, self).__init__() + self.point_assignments = point_assignments + self.test_case = test_case + + +class SuiteUpdateModel(Model): + """SuiteUpdateModel. + + :param default_configurations: + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: + :type default_testers: list of :class:`ShallowReference ` + :param inherit_default_configurations: + :type inherit_default_configurations: bool + :param name: + :type name: str + :param parent: + :type parent: :class:`ShallowReference ` + :param query_string: + :type query_string: str + """ + + _attribute_map = { + 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, + 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'ShallowReference'}, + 'query_string': {'key': 'queryString', 'type': 'str'} + } + + def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent=None, query_string=None): + super(SuiteUpdateModel, self).__init__() + self.default_configurations = default_configurations + self.default_testers = default_testers + self.inherit_default_configurations = inherit_default_configurations + self.name = name + self.parent = parent + self.query_string = query_string + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class TestAttachment(Model): + """TestAttachment. + + :param attachment_type: + :type attachment_type: object + :param comment: + :type comment: str + :param created_date: + :type created_date: datetime + :param file_name: + :type file_name: str + :param id: + :type id: int + :param size: + :type size: long + :param url: + :type url: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, size=None, url=None): + super(TestAttachment, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.created_date = created_date + self.file_name = file_name + self.id = id + self.size = size + self.url = url + + +class TestAttachmentReference(Model): + """TestAttachmentReference. + + :param id: + :type id: int + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(TestAttachmentReference, self).__init__() + self.id = id + self.url = url + + +class TestAttachmentRequestModel(Model): + """TestAttachmentRequestModel. + + :param attachment_type: + :type attachment_type: str + :param comment: + :type comment: str + :param file_name: + :type file_name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'attachment_type': {'key': 'attachmentType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, attachment_type=None, comment=None, file_name=None, stream=None): + super(TestAttachmentRequestModel, self).__init__() + self.attachment_type = attachment_type + self.comment = comment + self.file_name = file_name + self.stream = stream + + +class TestCaseResult(Model): + """TestCaseResult. + + :param afn_strip_id: + :type afn_strip_id: int + :param area: + :type area: :class:`ShallowReference ` + :param associated_bugs: + :type associated_bugs: list of :class:`ShallowReference ` + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param build: + :type build: :class:`ShallowReference ` + :param build_reference: + :type build_reference: :class:`BuildReference ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param failing_since: + :type failing_since: :class:`FailingSince ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param iteration_details: + :type iteration_details: list of :class:`TestIterationDetailsModel ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param priority: + :type priority: int + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ShallowReference ` + :param release_reference: + :type release_reference: :class:`ReleaseReference ` + :param reset_count: + :type reset_count: int + :param resolution_state: + :type resolution_state: str + :param resolution_state_id: + :type resolution_state_id: int + :param revision: + :type revision: int + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_reference_id: + :type test_case_reference_id: int + :param test_case_title: + :type test_case_title: str + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param test_point: + :type test_point: :class:`ShallowReference ` + :param test_run: + :type test_run: :class:`ShallowReference ` + :param test_suite: + :type test_suite: :class:`ShallowReference ` + :param url: + :type url: str + """ + + _attribute_map = { + 'afn_strip_id': {'key': 'afnStripId', 'type': 'int'}, + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_bugs': {'key': 'associatedBugs', 'type': '[ShallowReference]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_reference': {'key': 'buildReference', 'type': 'BuildReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_details': {'key': 'iterationDetails', 'type': '[TestIterationDetailsModel]'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ShallowReference'}, + 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, + 'reset_count': {'key': 'resetCount', 'type': 'int'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'}, + 'test_suite': {'key': 'testSuite', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): + super(TestCaseResult, self).__init__() + self.afn_strip_id = afn_strip_id + self.area = area + self.associated_bugs = associated_bugs + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.build = build + self.build_reference = build_reference + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.created_date = created_date + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failing_since = failing_since + self.failure_type = failure_type + self.id = id + self.iteration_details = iteration_details + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.owner = owner + self.priority = priority + self.project = project + self.release = release + self.release_reference = release_reference + self.reset_count = reset_count + self.resolution_state = resolution_state + self.resolution_state_id = resolution_state_id + self.revision = revision + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_reference_id = test_case_reference_id + self.test_case_title = test_case_title + self.test_plan = test_plan + self.test_point = test_point + self.test_run = test_run + self.test_suite = test_suite + self.url = url + + +class TestCaseResultAttachmentModel(Model): + """TestCaseResultAttachmentModel. + + :param id: + :type id: int + :param iteration_id: + :type iteration_id: int + :param name: + :type name: str + :param size: + :type size: long + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): + super(TestCaseResultAttachmentModel, self).__init__() + self.id = id + self.iteration_id = iteration_id + self.name = name + self.size = size + self.url = url + + +class TestCaseResultIdentifier(Model): + """TestCaseResultIdentifier. + + :param test_result_id: + :type test_result_id: int + :param test_run_id: + :type test_run_id: int + """ + + _attribute_map = { + 'test_result_id': {'key': 'testResultId', 'type': 'int'}, + 'test_run_id': {'key': 'testRunId', 'type': 'int'} + } + + def __init__(self, test_result_id=None, test_run_id=None): + super(TestCaseResultIdentifier, self).__init__() + self.test_result_id = test_result_id + self.test_run_id = test_run_id + + +class TestCaseResultUpdateModel(Model): + """TestCaseResultUpdateModel. + + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case_priority: + :type test_case_priority: str + :param test_result: + :type test_result: :class:`ShallowReference ` + """ + + _attribute_map = { + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_result': {'key': 'testResult', 'type': 'ShallowReference'} + } + + def __init__(self, associated_work_items=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case_priority=None, test_result=None): + super(TestCaseResultUpdateModel, self).__init__() + self.associated_work_items = associated_work_items + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case_priority = test_case_priority + self.test_result = test_result + + +class TestConfiguration(Model): + """TestConfiguration. + + :param area: Area of the configuration + :type area: :class:`ShallowReference ` + :param description: Description of the configuration + :type description: str + :param id: Id of the configuration + :type id: int + :param is_default: Is the configuration a default for the test plans + :type is_default: bool + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last Updated Data + :type last_updated_date: datetime + :param name: Name of the configuration + :type name: str + :param project: Project to which the configuration belongs + :type project: :class:`ShallowReference ` + :param revision: Revision of the the configuration + :type revision: int + :param state: State of the configuration + :type state: object + :param url: Url of Configuration Resource + :type url: str + :param values: Dictionary of Test Variable, Selected Value + :type values: list of :class:`NameValuePair ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[NameValuePair]'} + } + + def __init__(self, area=None, description=None, id=None, is_default=None, last_updated_by=None, last_updated_date=None, name=None, project=None, revision=None, state=None, url=None, values=None): + super(TestConfiguration, self).__init__() + self.area = area + self.description = description + self.id = id + self.is_default = is_default + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.project = project + self.revision = revision + self.state = state + self.url = url + self.values = values + + +class TestEnvironment(Model): + """TestEnvironment. + + :param environment_id: + :type environment_id: str + :param environment_name: + :type environment_name: str + """ + + _attribute_map = { + 'environment_id': {'key': 'environmentId', 'type': 'str'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'} + } + + def __init__(self, environment_id=None, environment_name=None): + super(TestEnvironment, self).__init__() + self.environment_id = environment_id + self.environment_name = environment_name + + +class TestFailureDetails(Model): + """TestFailureDetails. + + :param count: + :type count: int + :param test_results: + :type test_results: list of :class:`TestCaseResultIdentifier ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'test_results': {'key': 'testResults', 'type': '[TestCaseResultIdentifier]'} + } + + def __init__(self, count=None, test_results=None): + super(TestFailureDetails, self).__init__() + self.count = count + self.test_results = test_results + + +class TestFailuresAnalysis(Model): + """TestFailuresAnalysis. + + :param existing_failures: + :type existing_failures: :class:`TestFailureDetails ` + :param fixed_tests: + :type fixed_tests: :class:`TestFailureDetails ` + :param new_failures: + :type new_failures: :class:`TestFailureDetails ` + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'existing_failures': {'key': 'existingFailures', 'type': 'TestFailureDetails'}, + 'fixed_tests': {'key': 'fixedTests', 'type': 'TestFailureDetails'}, + 'new_failures': {'key': 'newFailures', 'type': 'TestFailureDetails'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'} + } + + def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, previous_context=None): + super(TestFailuresAnalysis, self).__init__() + self.existing_failures = existing_failures + self.fixed_tests = fixed_tests + self.new_failures = new_failures + self.previous_context = previous_context + + +class TestIterationDetailsModel(Model): + """TestIterationDetailsModel. + + :param action_results: + :type action_results: list of :class:`TestActionResultModel ` + :param attachments: + :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param id: + :type id: int + :param outcome: + :type outcome: str + :param parameters: + :type parameters: list of :class:`TestResultParameterModel ` + :param started_date: + :type started_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'action_results': {'key': 'actionResults', 'type': '[TestActionResultModel]'}, + 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[TestResultParameterModel]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, action_results=None, attachments=None, comment=None, completed_date=None, duration_in_ms=None, error_message=None, id=None, outcome=None, parameters=None, started_date=None, url=None): + super(TestIterationDetailsModel, self).__init__() + self.action_results = action_results + self.attachments = attachments + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.id = id + self.outcome = outcome + self.parameters = parameters + self.started_date = started_date + self.url = url + + +class TestMessageLogDetails(Model): + """TestMessageLogDetails. + + :param date_created: Date when the resource is created + :type date_created: datetime + :param entry_id: Id of the resource + :type entry_id: int + :param message: Message of the resource + :type message: str + """ + + _attribute_map = { + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'entry_id': {'key': 'entryId', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, date_created=None, entry_id=None, message=None): + super(TestMessageLogDetails, self).__init__() + self.date_created = date_created + self.entry_id = entry_id + self.message = message + + +class TestMethod(Model): + """TestMethod. + + :param container: + :type container: str + :param name: + :type name: str + """ + + _attribute_map = { + 'container': {'key': 'container', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, container=None, name=None): + super(TestMethod, self).__init__() + self.container = container + self.name = name + + +class TestOperationReference(Model): + """TestOperationReference. + + :param id: + :type id: str + :param status: + :type status: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, status=None, url=None): + super(TestOperationReference, self).__init__() + self.id = id + self.status = status + self.url = url + + +class TestPlan(Model): + """TestPlan. + + :param area: + :type area: :class:`ShallowReference ` + :param automated_test_environment: + :type automated_test_environment: :class:`TestEnvironment ` + :param automated_test_settings: + :type automated_test_settings: :class:`TestSettings ` + :param build: + :type build: :class:`ShallowReference ` + :param build_definition: + :type build_definition: :class:`ShallowReference ` + :param client_url: + :type client_url: str + :param description: + :type description: str + :param end_date: + :type end_date: datetime + :param id: + :type id: int + :param iteration: + :type iteration: str + :param manual_test_environment: + :type manual_test_environment: :class:`TestEnvironment ` + :param manual_test_settings: + :type manual_test_settings: :class:`TestSettings ` + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param previous_build: + :type previous_build: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param release_environment_definition: + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param revision: + :type revision: int + :param root_suite: + :type root_suite: :class:`ShallowReference ` + :param start_date: + :type start_date: datetime + :param state: + :type state: str + :param updated_by: + :type updated_by: :class:`IdentityRef ` + :param updated_date: + :type updated_date: datetime + :param url: + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, + 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, + 'client_url': {'key': 'clientUrl', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, + 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'previous_build': {'key': 'previousBuild', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, + 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): + super(TestPlan, self).__init__() + self.area = area + self.automated_test_environment = automated_test_environment + self.automated_test_settings = automated_test_settings + self.build = build + self.build_definition = build_definition + self.client_url = client_url + self.description = description + self.end_date = end_date + self.id = id + self.iteration = iteration + self.manual_test_environment = manual_test_environment + self.manual_test_settings = manual_test_settings + self.name = name + self.owner = owner + self.previous_build = previous_build + self.project = project + self.release_environment_definition = release_environment_definition + self.revision = revision + self.root_suite = root_suite + self.start_date = start_date + self.state = state + self.updated_by = updated_by + self.updated_date = updated_date + self.url = url + + +class TestPlanCloneRequest(Model): + """TestPlanCloneRequest. + + :param destination_test_plan: + :type destination_test_plan: :class:`TestPlan ` + :param options: + :type options: :class:`CloneOptions ` + :param suite_ids: + :type suite_ids: list of int + """ + + _attribute_map = { + 'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'TestPlan'}, + 'options': {'key': 'options', 'type': 'CloneOptions'}, + 'suite_ids': {'key': 'suiteIds', 'type': '[int]'} + } + + def __init__(self, destination_test_plan=None, options=None, suite_ids=None): + super(TestPlanCloneRequest, self).__init__() + self.destination_test_plan = destination_test_plan + self.options = options + self.suite_ids = suite_ids + + +class TestPoint(Model): + """TestPoint. + + :param assigned_to: + :type assigned_to: :class:`IdentityRef ` + :param automated: + :type automated: bool + :param comment: + :type comment: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param failure_type: + :type failure_type: str + :param id: + :type id: int + :param last_resolution_state_id: + :type last_resolution_state_id: int + :param last_result: + :type last_result: :class:`ShallowReference ` + :param last_result_details: + :type last_result_details: :class:`LastResultDetails ` + :param last_result_state: + :type last_result_state: str + :param last_run_build_number: + :type last_run_build_number: str + :param last_test_run: + :type last_test_run: :class:`ShallowReference ` + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param outcome: + :type outcome: str + :param revision: + :type revision: int + :param state: + :type state: str + :param suite: + :type suite: :class:`ShallowReference ` + :param test_case: + :type test_case: :class:`WorkItemReference ` + :param test_plan: + :type test_plan: :class:`ShallowReference ` + :param url: + :type url: str + :param work_item_properties: + :type work_item_properties: list of object + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'}, + 'automated': {'key': 'automated', 'type': 'bool'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, + 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, + 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, + 'last_result_state': {'key': 'lastResultState', 'type': 'str'}, + 'last_run_build_number': {'key': 'lastRunBuildNumber', 'type': 'str'}, + 'last_test_run': {'key': 'lastTestRun', 'type': 'ShallowReference'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suite': {'key': 'suite', 'type': 'ShallowReference'}, + 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'}, + 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} + } + + def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): + super(TestPoint, self).__init__() + self.assigned_to = assigned_to + self.automated = automated + self.comment = comment + self.configuration = configuration + self.failure_type = failure_type + self.id = id + self.last_resolution_state_id = last_resolution_state_id + self.last_result = last_result + self.last_result_details = last_result_details + self.last_result_state = last_result_state + self.last_run_build_number = last_run_build_number + self.last_test_run = last_test_run + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.outcome = outcome + self.revision = revision + self.state = state + self.suite = suite + self.test_case = test_case + self.test_plan = test_plan + self.url = url + self.work_item_properties = work_item_properties + + +class TestPointsQuery(Model): + """TestPointsQuery. + + :param order_by: + :type order_by: str + :param points: + :type points: list of :class:`TestPoint ` + :param points_filter: + :type points_filter: :class:`PointsFilter ` + :param wit_fields: + :type wit_fields: list of str + """ + + _attribute_map = { + 'order_by': {'key': 'orderBy', 'type': 'str'}, + 'points': {'key': 'points', 'type': '[TestPoint]'}, + 'points_filter': {'key': 'pointsFilter', 'type': 'PointsFilter'}, + 'wit_fields': {'key': 'witFields', 'type': '[str]'} + } + + def __init__(self, order_by=None, points=None, points_filter=None, wit_fields=None): + super(TestPointsQuery, self).__init__() + self.order_by = order_by + self.points = points + self.points_filter = points_filter + self.wit_fields = wit_fields + + +class TestResolutionState(Model): + """TestResolutionState. + + :param id: + :type id: int + :param name: + :type name: str + :param project: + :type project: :class:`ShallowReference ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'} + } + + def __init__(self, id=None, name=None, project=None): + super(TestResolutionState, self).__init__() + self.id = id + self.name = name + self.project = project + + +class TestResultCreateModel(Model): + """TestResultCreateModel. + + :param area: + :type area: :class:`ShallowReference ` + :param associated_work_items: + :type associated_work_items: list of int + :param automated_test_id: + :type automated_test_id: str + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param automated_test_type: + :type automated_test_type: str + :param automated_test_type_id: + :type automated_test_type_id: str + :param comment: + :type comment: str + :param completed_date: + :type completed_date: str + :param computer_name: + :type computer_name: str + :param configuration: + :type configuration: :class:`ShallowReference ` + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: + :type duration_in_ms: str + :param error_message: + :type error_message: str + :param failure_type: + :type failure_type: str + :param outcome: + :type outcome: str + :param owner: + :type owner: :class:`IdentityRef ` + :param resolution_state: + :type resolution_state: str + :param run_by: + :type run_by: :class:`IdentityRef ` + :param stack_trace: + :type stack_trace: str + :param started_date: + :type started_date: str + :param state: + :type state: str + :param test_case: + :type test_case: :class:`ShallowReference ` + :param test_case_priority: + :type test_case_priority: str + :param test_case_title: + :type test_case_title: str + :param test_point: + :type test_point: :class:`ShallowReference ` + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, + 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, + 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'failure_type': {'key': 'failureType', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, + 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, + 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, + 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'} + } + + def __init__(self, area=None, associated_work_items=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_priority=None, test_case_title=None, test_point=None): + super(TestResultCreateModel, self).__init__() + self.area = area + self.associated_work_items = associated_work_items + self.automated_test_id = automated_test_id + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.automated_test_type = automated_test_type + self.automated_test_type_id = automated_test_type_id + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.custom_fields = custom_fields + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.failure_type = failure_type + self.outcome = outcome + self.owner = owner + self.resolution_state = resolution_state + self.run_by = run_by + self.stack_trace = stack_trace + self.started_date = started_date + self.state = state + self.test_case = test_case + self.test_case_priority = test_case_priority + self.test_case_title = test_case_title + self.test_point = test_point + + +class TestResultDocument(Model): + """TestResultDocument. + + :param operation_reference: + :type operation_reference: :class:`TestOperationReference ` + :param payload: + :type payload: :class:`TestResultPayload ` + """ + + _attribute_map = { + 'operation_reference': {'key': 'operationReference', 'type': 'TestOperationReference'}, + 'payload': {'key': 'payload', 'type': 'TestResultPayload'} + } + + def __init__(self, operation_reference=None, payload=None): + super(TestResultDocument, self).__init__() + self.operation_reference = operation_reference + self.payload = payload + + +class TestResultHistory(Model): + """TestResultHistory. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultHistory, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group + + +class TestResultHistoryDetailsForGroup(Model): + """TestResultHistoryDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param latest_result: + :type latest_result: :class:`TestCaseResult ` + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'latest_result': {'key': 'latestResult', 'type': 'TestCaseResult'} + } + + def __init__(self, group_by_value=None, latest_result=None): + super(TestResultHistoryDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.latest_result = latest_result + + +class TestResultModelBase(Model): + """TestResultModelBase. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None): + super(TestResultModelBase, self).__init__() + self.comment = comment + self.completed_date = completed_date + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.outcome = outcome + self.started_date = started_date + + +class TestResultParameterModel(Model): + """TestResultParameterModel. + + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param parameter_name: + :type parameter_name: str + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'parameter_name': {'key': 'parameterName', 'type': 'str'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_path=None, iteration_id=None, parameter_name=None, step_identifier=None, url=None, value=None): + super(TestResultParameterModel, self).__init__() + self.action_path = action_path + self.iteration_id = iteration_id + self.parameter_name = parameter_name + self.step_identifier = step_identifier + self.url = url + self.value = value + + +class TestResultPayload(Model): + """TestResultPayload. + + :param comment: + :type comment: str + :param name: + :type name: str + :param stream: + :type stream: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'stream': {'key': 'stream', 'type': 'str'} + } + + def __init__(self, comment=None, name=None, stream=None): + super(TestResultPayload, self).__init__() + self.comment = comment + self.name = name + self.stream = stream + + +class TestResultsContext(Model): + """TestResultsContext. + + :param build: + :type build: :class:`BuildReference ` + :param context_type: + :type context_type: object + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'context_type': {'key': 'contextType', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, context_type=None, release=None): + super(TestResultsContext, self).__init__() + self.build = build + self.context_type = context_type + self.release = release + + +class TestResultsDetails(Model): + """TestResultsDetails. + + :param group_by_field: + :type group_by_field: str + :param results_for_group: + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + """ + + _attribute_map = { + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultsDetailsForGroup]'} + } + + def __init__(self, group_by_field=None, results_for_group=None): + super(TestResultsDetails, self).__init__() + self.group_by_field = group_by_field + self.results_for_group = results_for_group + + +class TestResultsDetailsForGroup(Model): + """TestResultsDetailsForGroup. + + :param group_by_value: + :type group_by_value: object + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_count_by_outcome: + :type results_count_by_outcome: dict + """ + + _attribute_map = { + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'} + } + + def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None): + super(TestResultsDetailsForGroup, self).__init__() + self.group_by_value = group_by_value + self.results = results + self.results_count_by_outcome = results_count_by_outcome + + +class TestResultsGroupsForBuild(Model): + """TestResultsGroupsForBuild. + + :param build_id: BuildId for which groupby result is fetched. + :type build_id: int + :param fields: The group by results + :type fields: list of :class:`FieldDetailsForTestResults ` + """ + + _attribute_map = { + 'build_id': {'key': 'buildId', 'type': 'int'}, + 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'} + } + + def __init__(self, build_id=None, fields=None): + super(TestResultsGroupsForBuild, self).__init__() + self.build_id = build_id + self.fields = fields + + +class TestResultsGroupsForRelease(Model): + """TestResultsGroupsForRelease. + + :param fields: The group by results + :type fields: list of :class:`FieldDetailsForTestResults ` + :param release_env_id: Release Environment Id for which groupby result is fetched. + :type release_env_id: int + :param release_id: ReleaseId for which groupby result is fetched. + :type release_id: int + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'}, + 'release_env_id': {'key': 'releaseEnvId', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, fields=None, release_env_id=None, release_id=None): + super(TestResultsGroupsForRelease, self).__init__() + self.fields = fields + self.release_env_id = release_env_id + self.release_id = release_id + + +class TestResultsQuery(Model): + """TestResultsQuery. + + :param fields: + :type fields: list of str + :param results: + :type results: list of :class:`TestCaseResult ` + :param results_filter: + :type results_filter: :class:`ResultsFilter ` + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'}, + 'results_filter': {'key': 'resultsFilter', 'type': 'ResultsFilter'} + } + + def __init__(self, fields=None, results=None, results_filter=None): + super(TestResultsQuery, self).__init__() + self.fields = fields + self.results = results + self.results_filter = results_filter + + +class TestResultSummary(Model): + """TestResultSummary. + + :param aggregated_results_analysis: + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :param team_project: + :type team_project: :class:`TeamProjectReference ` + :param test_failures: + :type test_failures: :class:`TestFailuresAnalysis ` + :param test_results_context: + :type test_results_context: :class:`TestResultsContext ` + """ + + _attribute_map = { + 'aggregated_results_analysis': {'key': 'aggregatedResultsAnalysis', 'type': 'AggregatedResultsAnalysis'}, + 'team_project': {'key': 'teamProject', 'type': 'TeamProjectReference'}, + 'test_failures': {'key': 'testFailures', 'type': 'TestFailuresAnalysis'}, + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'} + } + + def __init__(self, aggregated_results_analysis=None, team_project=None, test_failures=None, test_results_context=None): + super(TestResultSummary, self).__init__() + self.aggregated_results_analysis = aggregated_results_analysis + self.team_project = team_project + self.test_failures = test_failures + self.test_results_context = test_results_context + + +class TestResultTrendFilter(Model): + """TestResultTrendFilter. + + :param branch_names: + :type branch_names: list of str + :param build_count: + :type build_count: int + :param definition_ids: + :type definition_ids: list of int + :param env_definition_ids: + :type env_definition_ids: list of int + :param max_complete_date: + :type max_complete_date: datetime + :param publish_context: + :type publish_context: str + :param test_run_titles: + :type test_run_titles: list of str + :param trend_days: + :type trend_days: int + """ + + _attribute_map = { + 'branch_names': {'key': 'branchNames', 'type': '[str]'}, + 'build_count': {'key': 'buildCount', 'type': 'int'}, + 'definition_ids': {'key': 'definitionIds', 'type': '[int]'}, + 'env_definition_ids': {'key': 'envDefinitionIds', 'type': '[int]'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'publish_context': {'key': 'publishContext', 'type': 'str'}, + 'test_run_titles': {'key': 'testRunTitles', 'type': '[str]'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, branch_names=None, build_count=None, definition_ids=None, env_definition_ids=None, max_complete_date=None, publish_context=None, test_run_titles=None, trend_days=None): + super(TestResultTrendFilter, self).__init__() + self.branch_names = branch_names + self.build_count = build_count + self.definition_ids = definition_ids + self.env_definition_ids = env_definition_ids + self.max_complete_date = max_complete_date + self.publish_context = publish_context + self.test_run_titles = test_run_titles + self.trend_days = trend_days + + +class TestRun(Model): + """TestRun. + + :param build: + :type build: :class:`ShallowReference ` + :param build_configuration: + :type build_configuration: :class:`BuildConfiguration ` + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param controller: + :type controller: str + :param created_date: + :type created_date: datetime + :param custom_fields: + :type custom_fields: list of :class:`CustomTestField ` + :param drop_location: + :type drop_location: str + :param dtl_aut_environment: + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: + :type dtl_environment: :class:`ShallowReference ` + :param dtl_environment_creation_details: + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :param due_date: + :type due_date: datetime + :param error_message: + :type error_message: str + :param filter: + :type filter: :class:`RunFilter ` + :param id: + :type id: int + :param incomplete_tests: + :type incomplete_tests: int + :param is_automated: + :type is_automated: bool + :param iteration: + :type iteration: str + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param not_applicable_tests: + :type not_applicable_tests: int + :param owner: + :type owner: :class:`IdentityRef ` + :param passed_tests: + :type passed_tests: int + :param phase: + :type phase: str + :param plan: + :type plan: :class:`ShallowReference ` + :param post_process_state: + :type post_process_state: str + :param project: + :type project: :class:`ShallowReference ` + :param release: + :type release: :class:`ReleaseReference ` + :param release_environment_uri: + :type release_environment_uri: str + :param release_uri: + :type release_uri: str + :param revision: + :type revision: int + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + :param started_date: + :type started_date: datetime + :param state: + :type state: str + :param substate: + :type substate: object + :param test_environment: + :type test_environment: :class:`TestEnvironment ` + :param test_message_log_id: + :type test_message_log_id: int + :param test_settings: + :type test_settings: :class:`ShallowReference ` + :param total_tests: + :type total_tests: int + :param unanalyzed_tests: + :type unanalyzed_tests: int + :param url: + :type url: str + :param web_access_url: + :type web_access_url: str + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'ShallowReference'}, + 'build_configuration': {'key': 'buildConfiguration', 'type': 'BuildConfiguration'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'controller': {'key': 'controller', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'drop_location': {'key': 'dropLocation', 'type': 'str'}, + 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, + 'dtl_environment_creation_details': {'key': 'dtlEnvironmentCreationDetails', 'type': 'DtlEnvironmentDetails'}, + 'due_date': {'key': 'dueDate', 'type': 'iso-8601'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'filter': {'key': 'filter', 'type': 'RunFilter'}, + 'id': {'key': 'id', 'type': 'int'}, + 'incomplete_tests': {'key': 'incompleteTests', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'iteration': {'key': 'iteration', 'type': 'str'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'not_applicable_tests': {'key': 'notApplicableTests', 'type': 'int'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'passed_tests': {'key': 'passedTests', 'type': 'int'}, + 'phase': {'key': 'phase', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'post_process_state': {'key': 'postProcessState', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'substate': {'key': 'substate', 'type': 'object'}, + 'test_environment': {'key': 'testEnvironment', 'type': 'TestEnvironment'}, + 'test_message_log_id': {'key': 'testMessageLogId', 'type': 'int'}, + 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'}, + 'unanalyzed_tests': {'key': 'unanalyzedTests', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_url': {'key': 'webAccessUrl', 'type': 'str'} + } + + def __init__(self, build=None, build_configuration=None, comment=None, completed_date=None, controller=None, created_date=None, custom_fields=None, drop_location=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_creation_details=None, due_date=None, error_message=None, filter=None, id=None, incomplete_tests=None, is_automated=None, iteration=None, last_updated_by=None, last_updated_date=None, name=None, not_applicable_tests=None, owner=None, passed_tests=None, phase=None, plan=None, post_process_state=None, project=None, release=None, release_environment_uri=None, release_uri=None, revision=None, run_statistics=None, started_date=None, state=None, substate=None, test_environment=None, test_message_log_id=None, test_settings=None, total_tests=None, unanalyzed_tests=None, url=None, web_access_url=None): + super(TestRun, self).__init__() + self.build = build + self.build_configuration = build_configuration + self.comment = comment + self.completed_date = completed_date + self.controller = controller + self.created_date = created_date + self.custom_fields = custom_fields + self.drop_location = drop_location + self.dtl_aut_environment = dtl_aut_environment + self.dtl_environment = dtl_environment + self.dtl_environment_creation_details = dtl_environment_creation_details + self.due_date = due_date + self.error_message = error_message + self.filter = filter + self.id = id + self.incomplete_tests = incomplete_tests + self.is_automated = is_automated + self.iteration = iteration + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.not_applicable_tests = not_applicable_tests + self.owner = owner + self.passed_tests = passed_tests + self.phase = phase + self.plan = plan + self.post_process_state = post_process_state + self.project = project + self.release = release + self.release_environment_uri = release_environment_uri + self.release_uri = release_uri + self.revision = revision + self.run_statistics = run_statistics + self.started_date = started_date + self.state = state + self.substate = substate + self.test_environment = test_environment + self.test_message_log_id = test_message_log_id + self.test_settings = test_settings + self.total_tests = total_tests + self.unanalyzed_tests = unanalyzed_tests + self.url = url + self.web_access_url = web_access_url + + +class TestRunCoverage(Model): + """TestRunCoverage. + + :param last_error: + :type last_error: str + :param modules: + :type modules: list of :class:`ModuleCoverage ` + :param state: + :type state: str + :param test_run: + :type test_run: :class:`ShallowReference ` + """ + + _attribute_map = { + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'test_run': {'key': 'testRun', 'type': 'ShallowReference'} + } + + def __init__(self, last_error=None, modules=None, state=None, test_run=None): + super(TestRunCoverage, self).__init__() + self.last_error = last_error + self.modules = modules + self.state = state + self.test_run = test_run + + +class TestRunStatistic(Model): + """TestRunStatistic. + + :param run: + :type run: :class:`ShallowReference ` + :param run_statistics: + :type run_statistics: list of :class:`RunStatistic ` + """ + + _attribute_map = { + 'run': {'key': 'run', 'type': 'ShallowReference'}, + 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'} + } + + def __init__(self, run=None, run_statistics=None): + super(TestRunStatistic, self).__init__() + self.run = run + self.run_statistics = run_statistics + + +class TestSession(Model): + """TestSession. + + :param area: Area path of the test session + :type area: :class:`ShallowReference ` + :param comment: Comments in the test session + :type comment: str + :param end_date: Duration of the session + :type end_date: datetime + :param id: Id of the test session + :type id: int + :param last_updated_by: Last Updated By Reference + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date + :type last_updated_date: datetime + :param owner: Owner of the test session + :type owner: :class:`IdentityRef ` + :param project: Project to which the test session belongs + :type project: :class:`ShallowReference ` + :param property_bag: Generic store for test session data + :type property_bag: :class:`PropertyBag ` + :param revision: Revision of the test session + :type revision: int + :param source: Source of the test session + :type source: object + :param start_date: Start date + :type start_date: datetime + :param state: State of the test session + :type state: object + :param title: Title of the test session + :type title: str + :param url: Url of Test Session Resource + :type url: str + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'ShallowReference'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'property_bag': {'key': 'propertyBag', 'type': 'PropertyBag'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area=None, comment=None, end_date=None, id=None, last_updated_by=None, last_updated_date=None, owner=None, project=None, property_bag=None, revision=None, source=None, start_date=None, state=None, title=None, url=None): + super(TestSession, self).__init__() + self.area = area + self.comment = comment + self.end_date = end_date + self.id = id + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.owner = owner + self.project = project + self.property_bag = property_bag + self.revision = revision + self.source = source + self.start_date = start_date + self.state = state + self.title = title + self.url = url + + +class TestSettings(Model): + """TestSettings. + + :param area_path: Area path required to create test settings + :type area_path: str + :param description: Description of the test settings. Used in create test settings. + :type description: str + :param is_public: Indicates if the tests settings is public or private.Used in create test settings. + :type is_public: bool + :param machine_roles: Xml string of machine roles. Used in create test settings. + :type machine_roles: str + :param test_settings_content: Test settings content. + :type test_settings_content: str + :param test_settings_id: Test settings id. + :type test_settings_id: int + :param test_settings_name: Test settings name. + :type test_settings_name: str + """ + + _attribute_map = { + 'area_path': {'key': 'areaPath', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'machine_roles': {'key': 'machineRoles', 'type': 'str'}, + 'test_settings_content': {'key': 'testSettingsContent', 'type': 'str'}, + 'test_settings_id': {'key': 'testSettingsId', 'type': 'int'}, + 'test_settings_name': {'key': 'testSettingsName', 'type': 'str'} + } + + def __init__(self, area_path=None, description=None, is_public=None, machine_roles=None, test_settings_content=None, test_settings_id=None, test_settings_name=None): + super(TestSettings, self).__init__() + self.area_path = area_path + self.description = description + self.is_public = is_public + self.machine_roles = machine_roles + self.test_settings_content = test_settings_content + self.test_settings_id = test_settings_id + self.test_settings_name = test_settings_name + + +class TestSuite(Model): + """TestSuite. + + :param area_uri: + :type area_uri: str + :param children: + :type children: list of :class:`TestSuite ` + :param default_configurations: + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: + :type default_testers: list of :class:`ShallowReference ` + :param id: + :type id: int + :param inherit_default_configurations: + :type inherit_default_configurations: bool + :param last_error: + :type last_error: str + :param last_populated_date: + :type last_populated_date: datetime + :param last_updated_by: + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: + :type last_updated_date: datetime + :param name: + :type name: str + :param parent: + :type parent: :class:`ShallowReference ` + :param plan: + :type plan: :class:`ShallowReference ` + :param project: + :type project: :class:`ShallowReference ` + :param query_string: + :type query_string: str + :param requirement_id: + :type requirement_id: int + :param revision: + :type revision: int + :param state: + :type state: str + :param suites: + :type suites: list of :class:`ShallowReference ` + :param suite_type: + :type suite_type: str + :param test_case_count: + :type test_case_count: int + :param test_cases_url: + :type test_cases_url: str + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'area_uri': {'key': 'areaUri', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TestSuite]'}, + 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, + 'last_error': {'key': 'lastError', 'type': 'str'}, + 'last_populated_date': {'key': 'lastPopulatedDate', 'type': 'iso-8601'}, + 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'ShallowReference'}, + 'plan': {'key': 'plan', 'type': 'ShallowReference'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'query_string': {'key': 'queryString', 'type': 'str'}, + 'requirement_id': {'key': 'requirementId', 'type': 'int'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'suites': {'key': 'suites', 'type': '[ShallowReference]'}, + 'suite_type': {'key': 'suiteType', 'type': 'str'}, + 'test_case_count': {'key': 'testCaseCount', 'type': 'int'}, + 'test_cases_url': {'key': 'testCasesUrl', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, area_uri=None, children=None, default_configurations=None, default_testers=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): + super(TestSuite, self).__init__() + self.area_uri = area_uri + self.children = children + self.default_configurations = default_configurations + self.default_testers = default_testers + self.id = id + self.inherit_default_configurations = inherit_default_configurations + self.last_error = last_error + self.last_populated_date = last_populated_date + self.last_updated_by = last_updated_by + self.last_updated_date = last_updated_date + self.name = name + self.parent = parent + self.plan = plan + self.project = project + self.query_string = query_string + self.requirement_id = requirement_id + self.revision = revision + self.state = state + self.suites = suites + self.suite_type = suite_type + self.test_case_count = test_case_count + self.test_cases_url = test_cases_url + self.text = text + self.url = url + + +class TestSuiteCloneRequest(Model): + """TestSuiteCloneRequest. + + :param clone_options: + :type clone_options: :class:`CloneOptions ` + :param destination_suite_id: + :type destination_suite_id: int + :param destination_suite_project_name: + :type destination_suite_project_name: str + """ + + _attribute_map = { + 'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'}, + 'destination_suite_id': {'key': 'destinationSuiteId', 'type': 'int'}, + 'destination_suite_project_name': {'key': 'destinationSuiteProjectName', 'type': 'str'} + } + + def __init__(self, clone_options=None, destination_suite_id=None, destination_suite_project_name=None): + super(TestSuiteCloneRequest, self).__init__() + self.clone_options = clone_options + self.destination_suite_id = destination_suite_id + self.destination_suite_project_name = destination_suite_project_name + + +class TestSummaryForWorkItem(Model): + """TestSummaryForWorkItem. + + :param summary: + :type summary: :class:`AggregatedDataForResultTrend ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'AggregatedDataForResultTrend'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, summary=None, work_item=None): + super(TestSummaryForWorkItem, self).__init__() + self.summary = summary + self.work_item = work_item + + +class TestToWorkItemLinks(Model): + """TestToWorkItemLinks. + + :param test: + :type test: :class:`TestMethod ` + :param work_items: + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'test': {'key': 'test', 'type': 'TestMethod'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, test=None, work_items=None): + super(TestToWorkItemLinks, self).__init__() + self.test = test + self.work_items = work_items + + +class TestVariable(Model): + """TestVariable. + + :param description: Description of the test variable + :type description: str + :param id: Id of the test variable + :type id: int + :param name: Name of the test variable + :type name: str + :param project: Project to which the test variable belongs + :type project: :class:`ShallowReference ` + :param revision: Revision + :type revision: int + :param url: Url of the test variable + :type url: str + :param values: List of allowed values + :type values: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'} + } + + def __init__(self, description=None, id=None, name=None, project=None, revision=None, url=None, values=None): + super(TestVariable, self).__init__() + self.description = description + self.id = id + self.name = name + self.project = project + self.revision = revision + self.url = url + self.values = values + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: + :type id: str + :param name: + :type name: str + :param type: + :type type: str + :param url: + :type url: str + :param web_url: + :type web_url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'} + } + + def __init__(self, id=None, name=None, type=None, url=None, web_url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.name = name + self.type = type + self.url = url + self.web_url = web_url + + +class WorkItemToTestLinks(Model): + """WorkItemToTestLinks. + + :param tests: + :type tests: list of :class:`TestMethod ` + :param work_item: + :type work_item: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'tests': {'key': 'tests', 'type': '[TestMethod]'}, + 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} + } + + def __init__(self, tests=None, work_item=None): + super(WorkItemToTestLinks, self).__init__() + self.tests = tests + self.work_item = work_item + + +class TestActionResultModel(TestResultModelBase): + """TestActionResultModel. + + :param comment: + :type comment: str + :param completed_date: + :type completed_date: datetime + :param duration_in_ms: + :type duration_in_ms: float + :param error_message: + :type error_message: str + :param outcome: + :type outcome: str + :param started_date: + :type started_date: datetime + :param action_path: + :type action_path: str + :param iteration_id: + :type iteration_id: int + :param shared_step_model: + :type shared_step_model: :class:`SharedStepModel ` + :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" + :type step_identifier: str + :param url: + :type url: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'action_path': {'key': 'actionPath', 'type': 'str'}, + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'shared_step_model': {'key': 'sharedStepModel', 'type': 'SharedStepModel'}, + 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None, action_path=None, iteration_id=None, shared_step_model=None, step_identifier=None, url=None): + super(TestActionResultModel, self).__init__(comment=comment, completed_date=completed_date, duration_in_ms=duration_in_ms, error_message=error_message, outcome=outcome, started_date=started_date) + self.action_path = action_path + self.iteration_id = iteration_id + self.shared_step_model = shared_step_model + self.step_identifier = step_identifier + self.url = url + + +__all__ = [ + 'AggregatedDataForResultTrend', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByState', + 'BuildConfiguration', + 'BuildCoverage', + 'BuildReference', + 'CloneOperationInformation', + 'CloneOptions', + 'CloneStatistics', + 'CodeCoverageData', + 'CodeCoverageStatistics', + 'CodeCoverageSummary', + 'CoverageStatistics', + 'CustomTestField', + 'CustomTestFieldDefinition', + 'DtlEnvironmentDetails', + 'FailingSince', + 'FieldDetailsForTestResults', + 'FunctionCoverage', + 'GraphSubjectBase', + 'IdentityRef', + 'LastResultDetails', + 'LinkedWorkItemsQuery', + 'LinkedWorkItemsQueryResult', + 'ModuleCoverage', + 'NameValuePair', + 'PlanUpdateModel', + 'PointAssignment', + 'PointsFilter', + 'PointUpdateModel', + 'PropertyBag', + 'QueryModel', + 'ReferenceLinks', + 'ReleaseEnvironmentDefinitionReference', + 'ReleaseReference', + 'ResultRetentionSettings', + 'ResultsFilter', + 'RunCreateModel', + 'RunFilter', + 'RunStatistic', + 'RunUpdateModel', + 'ShallowReference', + 'ShallowTestCaseResult', + 'SharedStepModel', + 'SuiteCreateModel', + 'SuiteEntry', + 'SuiteEntryUpdateModel', + 'SuiteTestCase', + 'SuiteUpdateModel', + 'TeamContext', + 'TeamProjectReference', + 'TestAttachment', + 'TestAttachmentReference', + 'TestAttachmentRequestModel', + 'TestCaseResult', + 'TestCaseResultAttachmentModel', + 'TestCaseResultIdentifier', + 'TestCaseResultUpdateModel', + 'TestConfiguration', + 'TestEnvironment', + 'TestFailureDetails', + 'TestFailuresAnalysis', + 'TestIterationDetailsModel', + 'TestMessageLogDetails', + 'TestMethod', + 'TestOperationReference', + 'TestPlan', + 'TestPlanCloneRequest', + 'TestPoint', + 'TestPointsQuery', + 'TestResolutionState', + 'TestResultCreateModel', + 'TestResultDocument', + 'TestResultHistory', + 'TestResultHistoryDetailsForGroup', + 'TestResultModelBase', + 'TestResultParameterModel', + 'TestResultPayload', + 'TestResultsContext', + 'TestResultsDetails', + 'TestResultsDetailsForGroup', + 'TestResultsGroupsForBuild', + 'TestResultsGroupsForRelease', + 'TestResultsQuery', + 'TestResultSummary', + 'TestResultTrendFilter', + 'TestRun', + 'TestRunCoverage', + 'TestRunStatistic', + 'TestSession', + 'TestSettings', + 'TestSuite', + 'TestSuiteCloneRequest', + 'TestSummaryForWorkItem', + 'TestToWorkItemLinks', + 'TestVariable', + 'WorkItemReference', + 'WorkItemToTestLinks', + 'TestActionResultModel', +] diff --git a/vsts/vsts/test/v4_1/test_client.py b/azure-devops/azure/devops/v4_1/test/test_client.py similarity index 99% rename from vsts/vsts/test/v4_1/test_client.py rename to azure-devops/azure/devops/v4_1/test/test_client.py index 02ca78f8..eba0f2ea 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/azure-devops/azure/devops/v4_1/test/test_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TestClient(VssClient): +class TestClient(Client): """Test :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/tfvc/__init__.py b/azure-devops/azure/devops/v4_1/tfvc/__init__.py new file mode 100644 index 00000000..751e4808 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/tfvc/__init__.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AssociatedWorkItem', + 'Change', + 'CheckinNote', + 'FileContentMetadata', + 'GitRepository', + 'GitRepositoryRef', + 'GraphSubjectBase', + 'IdentityRef', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'TfvcBranch', + 'TfvcBranchMapping', + 'TfvcBranchRef', + 'TfvcChange', + 'TfvcChangeset', + 'TfvcChangesetRef', + 'TfvcChangesetSearchCriteria', + 'TfvcChangesetsRequestData', + 'TfvcItem', + 'TfvcItemDescriptor', + 'TfvcItemRequestData', + 'TfvcLabel', + 'TfvcLabelRef', + 'TfvcLabelRequestData', + 'TfvcMergeSource', + 'TfvcPolicyFailureInfo', + 'TfvcPolicyOverrideInfo', + 'TfvcShallowBranchRef', + 'TfvcShelveset', + 'TfvcShelvesetRef', + 'TfvcShelvesetRequestData', + 'TfvcVersionDescriptor', + 'VersionControlProjectInfo', + 'VstsInfo', +] diff --git a/azure-devops/azure/devops/v4_1/tfvc/models.py b/azure-devops/azure/devops/v4_1/tfvc/models.py new file mode 100644 index 00000000..68c9a455 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/tfvc/models.py @@ -0,0 +1,1355 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: Id of associated the work item. + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST Url of the work item. + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type + + +class Change(Model): + """Change. + + :param change_type: The type of change that was made to the item. + :type change_type: object + :param item: Current version. + :type item: object + :param new_content: Content of the item after the change. + :type new_content: :class:`ItemContent ` + :param source_server_item: Path of the item on the server. + :type source_server_item: str + :param url: URL to retrieve the item. + :type url: str + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'item': {'key': 'item', 'type': 'object'}, + 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, + 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): + super(Change, self).__init__() + self.change_type = change_type + self.item = item + self.new_content = new_content + self.source_server_item = source_server_item + self.url = url + + +class CheckinNote(Model): + """CheckinNote. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(CheckinNote, self).__init__() + self.name = name + self.value = value + + +class FileContentMetadata(Model): + """FileContentMetadata. + + :param content_type: + :type content_type: str + :param encoding: + :type encoding: int + :param extension: + :type extension: str + :param file_name: + :type file_name: str + :param is_binary: + :type is_binary: bool + :param is_image: + :type is_image: bool + :param vs_link: + :type vs_link: str + """ + + _attribute_map = { + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'is_binary': {'key': 'isBinary', 'type': 'bool'}, + 'is_image': {'key': 'isImage', 'type': 'bool'}, + 'vs_link': {'key': 'vsLink', 'type': 'str'} + } + + def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): + super(FileContentMetadata, self).__init__() + self.content_type = content_type + self.encoding = encoding + self.extension = extension + self.file_name = file_name + self.is_binary = is_binary + self.is_image = is_image + self.vs_link = vs_link + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + self.valid_remote_urls = valid_remote_urls + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: :class:`TeamProjectCollectionReference ` + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param project: + :type project: :class:`TeamProjectReference ` + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.is_fork = is_fork + self.name = name + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class ItemContent(Model): + """ItemContent. + + :param content: + :type content: str + :param content_type: + :type content_type: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'object'} + } + + def __init__(self, content=None, content_type=None): + super(ItemContent, self).__init__() + self.content = content + self.content_type = content_type + + +class ItemModel(Model): + """ItemModel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + super(ItemModel, self).__init__() + self._links = _links + self.content = content + self.content_metadata = content_metadata + self.is_folder = is_folder + self.is_sym_link = is_sym_link + self.path = path + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class TeamProjectCollectionReference(Model): + """TeamProjectCollectionReference. + + :param id: Collection Id. + :type id: str + :param name: Collection Name. + :type name: str + :param url: Collection REST Url. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(TeamProjectCollectionReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class TeamProjectReference(Model): + """TeamProjectReference. + + :param abbreviation: Project abbreviation. + :type abbreviation: str + :param description: The project's description (if any). + :type description: str + :param id: Project identifier. + :type id: str + :param name: Project name. + :type name: str + :param revision: Project revision. + :type revision: long + :param state: Project state. + :type state: object + :param url: Url to the full version of the object. + :type url: str + :param visibility: Project visibility. + :type visibility: object + """ + + _attribute_map = { + 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + super(TeamProjectReference, self).__init__() + self.abbreviation = abbreviation + self.description = description + self.id = id + self.name = name + self.revision = revision + self.state = state + self.url = url + self.visibility = visibility + + +class TfvcBranchMapping(Model): + """TfvcBranchMapping. + + :param depth: Depth of the branch. + :type depth: str + :param server_item: Server item for the branch. + :type server_item: str + :param type: Type of the branch. + :type type: str + """ + + _attribute_map = { + 'depth': {'key': 'depth', 'type': 'str'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, depth=None, server_item=None, type=None): + super(TfvcBranchMapping, self).__init__() + self.depth = depth + self.server_item = server_item + self.type = type + + +class TfvcChange(Change): + """TfvcChange. + + :param merge_sources: List of merge sources in case of rename or branch creation. + :type merge_sources: list of :class:`TfvcMergeSource ` + :param pending_version: Version at which a (shelved) change was pended against + :type pending_version: int + """ + + _attribute_map = { + 'merge_sources': {'key': 'mergeSources', 'type': '[TfvcMergeSource]'}, + 'pending_version': {'key': 'pendingVersion', 'type': 'int'} + } + + def __init__(self, merge_sources=None, pending_version=None): + super(TfvcChange, self).__init__() + self.merge_sources = merge_sources + self.pending_version = pending_version + + +class TfvcChangesetRef(Model): + """TfvcChangesetRef. + + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Alias or display name of user + :type author: :class:`IdentityRef ` + :param changeset_id: Id of the changeset. + :type changeset_id: int + :param checked_in_by: Alias or display name of user + :type checked_in_by: :class:`IdentityRef ` + :param comment: Comment for the changeset. + :type comment: str + :param comment_truncated: Was the Comment result truncated? + :type comment_truncated: bool + :param created_date: Creation date of the changeset. + :type created_date: datetime + :param url: URL to retrieve the item. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None): + super(TfvcChangesetRef, self).__init__() + self._links = _links + self.author = author + self.changeset_id = changeset_id + self.checked_in_by = checked_in_by + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.url = url + + +class TfvcChangesetSearchCriteria(Model): + """TfvcChangesetSearchCriteria. + + :param author: Alias or display name of user who made the changes + :type author: str + :param follow_renames: Whether or not to follow renames for the given item being queried + :type follow_renames: bool + :param from_date: If provided, only include changesets created after this date (string) Think of a better name for this. + :type from_date: str + :param from_id: If provided, only include changesets after this changesetID + :type from_id: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_path: Path of item to search under + :type item_path: str + :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. + :type to_date: str + :param to_id: If provided, a version descriptor for the latest change list to include + :type to_id: int + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'follow_renames': {'key': 'followRenames', 'type': 'bool'}, + 'from_date': {'key': 'fromDate', 'type': 'str'}, + 'from_id': {'key': 'fromId', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'to_date': {'key': 'toDate', 'type': 'str'}, + 'to_id': {'key': 'toId', 'type': 'int'} + } + + def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): + super(TfvcChangesetSearchCriteria, self).__init__() + self.author = author + self.follow_renames = follow_renames + self.from_date = from_date + self.from_id = from_id + self.include_links = include_links + self.item_path = item_path + self.to_date = to_date + self.to_id = to_id + + +class TfvcChangesetsRequestData(Model): + """TfvcChangesetsRequestData. + + :param changeset_ids: List of changeset Ids. + :type changeset_ids: list of int + :param comment_length: Length of the comment. + :type comment_length: int + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + """ + + _attribute_map = { + 'changeset_ids': {'key': 'changesetIds', 'type': '[int]'}, + 'comment_length': {'key': 'commentLength', 'type': 'int'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'} + } + + def __init__(self, changeset_ids=None, comment_length=None, include_links=None): + super(TfvcChangesetsRequestData, self).__init__() + self.changeset_ids = changeset_ids + self.comment_length = comment_length + self.include_links = include_links + + +class TfvcItem(ItemModel): + """TfvcItem. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str + :param content_metadata: + :type content_metadata: :class:`FileContentMetadata ` + :param is_folder: + :type is_folder: bool + :param is_sym_link: + :type is_sym_link: bool + :param path: + :type path: str + :param url: + :type url: str + :param change_date: + :type change_date: datetime + :param deletion_id: + :type deletion_id: int + :param hash_value: MD5 hash as a base 64 string, applies to files only. + :type hash_value: str + :param is_branch: + :type is_branch: bool + :param is_pending_change: + :type is_pending_change: bool + :param size: The size of the file, if applicable. + :type size: long + :param version: + :type version: int + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, + 'deletion_id': {'key': 'deletionId', 'type': 'int'}, + 'hash_value': {'key': 'hashValue', 'type': 'str'}, + 'is_branch': {'key': 'isBranch', 'type': 'bool'}, + 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, + 'size': {'key': 'size', 'type': 'long'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): + super(TfvcItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + self.change_date = change_date + self.deletion_id = deletion_id + self.hash_value = hash_value + self.is_branch = is_branch + self.is_pending_change = is_pending_change + self.size = size + self.version = version + + +class TfvcItemDescriptor(Model): + """TfvcItemDescriptor. + + :param path: + :type path: str + :param recursion_level: + :type recursion_level: object + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, path=None, recursion_level=None, version=None, version_option=None, version_type=None): + super(TfvcItemDescriptor, self).__init__() + self.path = path + self.recursion_level = recursion_level + self.version = version + self.version_option = version_option + self.version_type = version_type + + +class TfvcItemRequestData(Model): + """TfvcItemRequestData. + + :param include_content_metadata: If true, include metadata about the file type + :type include_content_metadata: bool + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_descriptors: + :type item_descriptors: list of :class:`TfvcItemDescriptor ` + """ + + _attribute_map = { + 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_descriptors': {'key': 'itemDescriptors', 'type': '[TfvcItemDescriptor]'} + } + + def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None): + super(TfvcItemRequestData, self).__init__() + self.include_content_metadata = include_content_metadata + self.include_links = include_links + self.item_descriptors = item_descriptors + + +class TfvcLabelRef(Model): + """TfvcLabelRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None): + super(TfvcLabelRef, self).__init__() + self._links = _links + self.description = description + self.id = id + self.label_scope = label_scope + self.modified_date = modified_date + self.name = name + self.owner = owner + self.url = url + + +class TfvcLabelRequestData(Model): + """TfvcLabelRequestData. + + :param include_links: Whether to include the _links field on the shallow references + :type include_links: bool + :param item_label_filter: + :type item_label_filter: str + :param label_scope: + :type label_scope: str + :param max_item_count: + :type max_item_count: int + :param name: + :type name: str + :param owner: + :type owner: str + """ + + _attribute_map = { + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'item_label_filter': {'key': 'itemLabelFilter', 'type': 'str'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'max_item_count': {'key': 'maxItemCount', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_links=None, item_label_filter=None, label_scope=None, max_item_count=None, name=None, owner=None): + super(TfvcLabelRequestData, self).__init__() + self.include_links = include_links + self.item_label_filter = item_label_filter + self.label_scope = label_scope + self.max_item_count = max_item_count + self.name = name + self.owner = owner + + +class TfvcMergeSource(Model): + """TfvcMergeSource. + + :param is_rename: Indicates if this a rename source. If false, it is a merge source. + :type is_rename: bool + :param server_item: The server item of the merge source + :type server_item: str + :param version_from: Start of the version range + :type version_from: int + :param version_to: End of the version range + :type version_to: int + """ + + _attribute_map = { + 'is_rename': {'key': 'isRename', 'type': 'bool'}, + 'server_item': {'key': 'serverItem', 'type': 'str'}, + 'version_from': {'key': 'versionFrom', 'type': 'int'}, + 'version_to': {'key': 'versionTo', 'type': 'int'} + } + + def __init__(self, is_rename=None, server_item=None, version_from=None, version_to=None): + super(TfvcMergeSource, self).__init__() + self.is_rename = is_rename + self.server_item = server_item + self.version_from = version_from + self.version_to = version_to + + +class TfvcPolicyFailureInfo(Model): + """TfvcPolicyFailureInfo. + + :param message: + :type message: str + :param policy_name: + :type policy_name: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'} + } + + def __init__(self, message=None, policy_name=None): + super(TfvcPolicyFailureInfo, self).__init__() + self.message = message + self.policy_name = policy_name + + +class TfvcPolicyOverrideInfo(Model): + """TfvcPolicyOverrideInfo. + + :param comment: + :type comment: str + :param policy_failures: + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'policy_failures': {'key': 'policyFailures', 'type': '[TfvcPolicyFailureInfo]'} + } + + def __init__(self, comment=None, policy_failures=None): + super(TfvcPolicyOverrideInfo, self).__init__() + self.comment = comment + self.policy_failures = policy_failures + + +class TfvcShallowBranchRef(Model): + """TfvcShallowBranchRef. + + :param path: Path for the branch. + :type path: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, path=None): + super(TfvcShallowBranchRef, self).__init__() + self.path = path + + +class TfvcShelvesetRef(Model): + """TfvcShelvesetRef. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None): + super(TfvcShelvesetRef, self).__init__() + self._links = _links + self.comment = comment + self.comment_truncated = comment_truncated + self.created_date = created_date + self.id = id + self.name = name + self.owner = owner + self.url = url + + +class TfvcShelvesetRequestData(Model): + """TfvcShelvesetRequestData. + + :param include_details: Whether to include policyOverride and notes Only applies when requesting a single deep shelveset + :type include_details: bool + :param include_links: Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset. + :type include_links: bool + :param include_work_items: Whether to include workItems + :type include_work_items: bool + :param max_change_count: Max number of changes to include + :type max_change_count: int + :param max_comment_length: Max length of comment + :type max_comment_length: int + :param name: Shelveset's name + :type name: str + :param owner: Owner's ID. Could be a name or a guid. + :type owner: str + """ + + _attribute_map = { + 'include_details': {'key': 'includeDetails', 'type': 'bool'}, + 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, + 'max_change_count': {'key': 'maxChangeCount', 'type': 'int'}, + 'max_comment_length': {'key': 'maxCommentLength', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'} + } + + def __init__(self, include_details=None, include_links=None, include_work_items=None, max_change_count=None, max_comment_length=None, name=None, owner=None): + super(TfvcShelvesetRequestData, self).__init__() + self.include_details = include_details + self.include_links = include_links + self.include_work_items = include_work_items + self.max_change_count = max_change_count + self.max_comment_length = max_comment_length + self.name = name + self.owner = owner + + +class TfvcVersionDescriptor(Model): + """TfvcVersionDescriptor. + + :param version: + :type version: str + :param version_option: + :type version_option: object + :param version_type: + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_option': {'key': 'versionOption', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_option=None, version_type=None): + super(TfvcVersionDescriptor, self).__init__() + self.version = version + self.version_option = version_option + self.version_type = version_type + + +class VersionControlProjectInfo(Model): + """VersionControlProjectInfo. + + :param default_source_control_type: + :type default_source_control_type: object + :param project: + :type project: :class:`TeamProjectReference ` + :param supports_git: + :type supports_git: bool + :param supports_tFVC: + :type supports_tFVC: bool + """ + + _attribute_map = { + 'default_source_control_type': {'key': 'defaultSourceControlType', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'supports_git': {'key': 'supportsGit', 'type': 'bool'}, + 'supports_tFVC': {'key': 'supportsTFVC', 'type': 'bool'} + } + + def __init__(self, default_source_control_type=None, project=None, supports_git=None, supports_tFVC=None): + super(VersionControlProjectInfo, self).__init__() + self.default_source_control_type = default_source_control_type + self.project = project + self.supports_git = supports_git + self.supports_tFVC = supports_tFVC + + +class VstsInfo(Model): + """VstsInfo. + + :param collection: + :type collection: :class:`TeamProjectCollectionReference ` + :param repository: + :type repository: :class:`GitRepository ` + :param server_url: + :type server_url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'repository': {'key': 'repository', 'type': 'GitRepository'}, + 'server_url': {'key': 'serverUrl', 'type': 'str'} + } + + def __init__(self, collection=None, repository=None, server_url=None): + super(VstsInfo, self).__init__() + self.collection = collection + self.repository = repository + self.server_url = server_url + + +class TfvcBranchRef(TfvcShallowBranchRef): + """TfvcBranchRef. + + :param path: Path for the branch. + :type path: str + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param created_date: Creation date of the branch. + :type created_date: datetime + :param description: Description of the branch. + :type description: str + :param is_deleted: Is the branch deleted? + :type is_deleted: bool + :param owner: Alias or display name of user + :type owner: :class:`IdentityRef ` + :param url: URL to retrieve the item. + :type url: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None): + super(TfvcBranchRef, self).__init__(path=path) + self._links = _links + self.created_date = created_date + self.description = description + self.is_deleted = is_deleted + self.owner = owner + self.url = url + + +class TfvcChangeset(TfvcChangesetRef): + """TfvcChangeset. + + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Alias or display name of user + :type author: :class:`IdentityRef ` + :param changeset_id: Id of the changeset. + :type changeset_id: int + :param checked_in_by: Alias or display name of user + :type checked_in_by: :class:`IdentityRef ` + :param comment: Comment for the changeset. + :type comment: str + :param comment_truncated: Was the Comment result truncated? + :type comment_truncated: bool + :param created_date: Creation date of the changeset. + :type created_date: datetime + :param url: URL to retrieve the item. + :type url: str + :param account_id: Account Id of the changeset. + :type account_id: str + :param changes: List of associated changes. + :type changes: list of :class:`TfvcChange ` + :param checkin_notes: Checkin Notes for the changeset. + :type checkin_notes: list of :class:`CheckinNote ` + :param collection_id: Collection Id of the changeset. + :type collection_id: str + :param has_more_changes: Are more changes available. + :type has_more_changes: bool + :param policy_override: Policy Override for the changeset. + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param team_project_ids: Team Project Ids for the changeset. + :type team_project_ids: list of str + :param work_items: List of work items associated with the changeset. + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'}, + 'account_id': {'key': 'accountId', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'checkin_notes': {'key': 'checkinNotes', 'type': '[CheckinNote]'}, + 'collection_id': {'key': 'collectionId', 'type': 'str'}, + 'has_more_changes': {'key': 'hasMoreChanges', 'type': 'bool'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'team_project_ids': {'key': 'teamProjectIds', 'type': '[str]'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None, account_id=None, changes=None, checkin_notes=None, collection_id=None, has_more_changes=None, policy_override=None, team_project_ids=None, work_items=None): + super(TfvcChangeset, self).__init__(_links=_links, author=author, changeset_id=changeset_id, checked_in_by=checked_in_by, comment=comment, comment_truncated=comment_truncated, created_date=created_date, url=url) + self.account_id = account_id + self.changes = changes + self.checkin_notes = checkin_notes + self.collection_id = collection_id + self.has_more_changes = has_more_changes + self.policy_override = policy_override + self.team_project_ids = team_project_ids + self.work_items = work_items + + +class TfvcLabel(TfvcLabelRef): + """TfvcLabel. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param description: + :type description: str + :param id: + :type id: int + :param label_scope: + :type label_scope: str + :param modified_date: + :type modified_date: datetime + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param items: + :type items: list of :class:`TfvcItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'label_scope': {'key': 'labelScope', 'type': 'str'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[TfvcItem]'} + } + + def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None, items=None): + super(TfvcLabel, self).__init__(_links=_links, description=description, id=id, label_scope=label_scope, modified_date=modified_date, name=name, owner=owner, url=url) + self.items = items + + +class TfvcShelveset(TfvcShelvesetRef): + """TfvcShelveset. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param comment: + :type comment: str + :param comment_truncated: + :type comment_truncated: bool + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param url: + :type url: str + :param changes: + :type changes: list of :class:`TfvcChange ` + :param notes: + :type notes: list of :class:`CheckinNote ` + :param policy_override: + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param work_items: + :type work_items: list of :class:`AssociatedWorkItem ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, + 'notes': {'key': 'notes', 'type': '[CheckinNote]'}, + 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, + 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} + } + + def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None, changes=None, notes=None, policy_override=None, work_items=None): + super(TfvcShelveset, self).__init__(_links=_links, comment=comment, comment_truncated=comment_truncated, created_date=created_date, id=id, name=name, owner=owner, url=url) + self.changes = changes + self.notes = notes + self.policy_override = policy_override + self.work_items = work_items + + +class TfvcBranch(TfvcBranchRef): + """TfvcBranch. + + :param path: Path for the branch. + :type path: str + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param created_date: Creation date of the branch. + :type created_date: datetime + :param description: Description of the branch. + :type description: str + :param is_deleted: Is the branch deleted? + :type is_deleted: bool + :param owner: Alias or display name of user + :type owner: :class:`IdentityRef ` + :param url: URL to retrieve the item. + :type url: str + :param children: List of children for the branch. + :type children: list of :class:`TfvcBranch ` + :param mappings: List of branch mappings. + :type mappings: list of :class:`TfvcBranchMapping ` + :param parent: Path of the branch's parent. + :type parent: :class:`TfvcShallowBranchRef ` + :param related_branches: List of paths of the related branches. + :type related_branches: list of :class:`TfvcShallowBranchRef ` + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'children': {'key': 'children', 'type': '[TfvcBranch]'}, + 'mappings': {'key': 'mappings', 'type': '[TfvcBranchMapping]'}, + 'parent': {'key': 'parent', 'type': 'TfvcShallowBranchRef'}, + 'related_branches': {'key': 'relatedBranches', 'type': '[TfvcShallowBranchRef]'} + } + + def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None, children=None, mappings=None, parent=None, related_branches=None): + super(TfvcBranch, self).__init__(path=path, _links=_links, created_date=created_date, description=description, is_deleted=is_deleted, owner=owner, url=url) + self.children = children + self.mappings = mappings + self.parent = parent + self.related_branches = related_branches + + +__all__ = [ + 'AssociatedWorkItem', + 'Change', + 'CheckinNote', + 'FileContentMetadata', + 'GitRepository', + 'GitRepositoryRef', + 'GraphSubjectBase', + 'IdentityRef', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'TfvcBranchMapping', + 'TfvcChange', + 'TfvcChangesetRef', + 'TfvcChangesetSearchCriteria', + 'TfvcChangesetsRequestData', + 'TfvcItem', + 'TfvcItemDescriptor', + 'TfvcItemRequestData', + 'TfvcLabelRef', + 'TfvcLabelRequestData', + 'TfvcMergeSource', + 'TfvcPolicyFailureInfo', + 'TfvcPolicyOverrideInfo', + 'TfvcShallowBranchRef', + 'TfvcShelvesetRef', + 'TfvcShelvesetRequestData', + 'TfvcVersionDescriptor', + 'VersionControlProjectInfo', + 'VstsInfo', + 'TfvcBranchRef', + 'TfvcChangeset', + 'TfvcLabel', + 'TfvcShelveset', + 'TfvcBranch', +] diff --git a/vsts/vsts/tfvc/v4_1/tfvc_client.py b/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py similarity index 99% rename from vsts/vsts/tfvc/v4_1/tfvc_client.py rename to azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py index 91493652..1e0187a9 100644 --- a/vsts/vsts/tfvc/v4_1/tfvc_client.py +++ b/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class TfvcClient(VssClient): +class TfvcClient(Client): """Tfvc :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/wiki/__init__.py b/azure-devops/azure/devops/v4_1/wiki/__init__.py new file mode 100644 index 00000000..942041d3 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/wiki/__init__.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GitRepository', + 'GitRepositoryRef', + 'GitVersionDescriptor', + 'WikiAttachment', + 'WikiAttachmentResponse', + 'WikiCreateBaseParameters', + 'WikiCreateParametersV2', + 'WikiPage', + 'WikiPageCreateOrUpdateParameters', + 'WikiPageMove', + 'WikiPageMoveParameters', + 'WikiPageMoveResponse', + 'WikiPageResponse', + 'WikiPageViewStats', + 'WikiUpdateParameters', + 'WikiV2', +] diff --git a/azure-devops/azure/devops/v4_1/wiki/models.py b/azure-devops/azure/devops/v4_1/wiki/models.py new file mode 100644 index 00000000..3ad37278 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/wiki/models.py @@ -0,0 +1,495 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: ReferenceLinks + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + self.valid_remote_urls = valid_remote_urls + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: TeamProjectCollectionReference + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.is_fork = is_fork + self.name = name + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + + +class GitVersionDescriptor(Model): + """GitVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None): + super(GitVersionDescriptor, self).__init__() + self.version = version + self.version_options = version_options + self.version_type = version_type + + +class WikiAttachment(Model): + """WikiAttachment. + + :param name: Name of the wiki attachment file. + :type name: str + :param path: Path of the wiki attachment file. + :type path: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, name=None, path=None): + super(WikiAttachment, self).__init__() + self.name = name + self.path = path + + +class WikiAttachmentResponse(Model): + """WikiAttachmentResponse. + + :param attachment: Defines properties for wiki attachment file. + :type attachment: :class:`WikiAttachment ` + :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. + :type eTag: list of str + """ + + _attribute_map = { + 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, attachment=None, eTag=None): + super(WikiAttachmentResponse, self).__init__() + self.attachment = attachment + self.eTag = eTag + + +class WikiCreateBaseParameters(Model): + """WikiCreateBaseParameters. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None): + super(WikiCreateBaseParameters, self).__init__() + self.mapped_path = mapped_path + self.name = name + self.project_id = project_id + self.repository_id = repository_id + self.type = type + + +class WikiCreateParametersV2(WikiCreateBaseParameters): + """WikiCreateParametersV2. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + :param version: Version of the wiki. Not required for ProjectWiki type. + :type version: :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'GitVersionDescriptor'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, version=None): + super(WikiCreateParametersV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) + self.version = version + + +class WikiPageCreateOrUpdateParameters(Model): + """WikiPageCreateOrUpdateParameters. + + :param content: Content of the wiki page. + :type content: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'} + } + + def __init__(self, content=None): + super(WikiPageCreateOrUpdateParameters, self).__init__() + self.content = content + + +class WikiPageMoveParameters(Model): + """WikiPageMoveParameters. + + :param new_order: New order of the wiki page. + :type new_order: int + :param new_path: New path of the wiki page. + :type new_path: str + :param path: Current path of the wiki page. + :type path: str + """ + + _attribute_map = { + 'new_order': {'key': 'newOrder', 'type': 'int'}, + 'new_path': {'key': 'newPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, new_order=None, new_path=None, path=None): + super(WikiPageMoveParameters, self).__init__() + self.new_order = new_order + self.new_path = new_path + self.path = path + + +class WikiPageMoveResponse(Model): + """WikiPageMoveResponse. + + :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. + :type eTag: list of str + :param page_move: Defines properties for wiki page move. + :type page_move: :class:`WikiPageMove ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'page_move': {'key': 'pageMove', 'type': 'WikiPageMove'} + } + + def __init__(self, eTag=None, page_move=None): + super(WikiPageMoveResponse, self).__init__() + self.eTag = eTag + self.page_move = page_move + + +class WikiPageResponse(Model): + """WikiPageResponse. + + :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. + :type eTag: list of str + :param page: Defines properties for wiki page. + :type page: :class:`WikiPage ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'page': {'key': 'page', 'type': 'WikiPage'} + } + + def __init__(self, eTag=None, page=None): + super(WikiPageResponse, self).__init__() + self.eTag = eTag + self.page = page + + +class WikiPageViewStats(Model): + """WikiPageViewStats. + + :param count: Wiki page view count. + :type count: int + :param last_viewed_time: Wiki page last viewed time. + :type last_viewed_time: datetime + :param path: Wiki page path. + :type path: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'last_viewed_time': {'key': 'lastViewedTime', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, count=None, last_viewed_time=None, path=None): + super(WikiPageViewStats, self).__init__() + self.count = count + self.last_viewed_time = last_viewed_time + self.path = path + + +class WikiUpdateParameters(Model): + """WikiUpdateParameters. + + :param versions: Versions of the wiki. + :type versions: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, versions=None): + super(WikiUpdateParameters, self).__init__() + self.versions = versions + + +class WikiV2(WikiCreateBaseParameters): + """WikiV2. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + :param id: ID of the wiki. + :type id: str + :param properties: Properties of the wiki. + :type properties: dict + :param remote_url: Remote web url to the wiki. + :type remote_url: str + :param url: REST url for this wiki. + :type url: str + :param versions: Versions of the wiki. + :type versions: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, id=None, properties=None, remote_url=None, url=None, versions=None): + super(WikiV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) + self.id = id + self.properties = properties + self.remote_url = remote_url + self.url = url + self.versions = versions + + +class WikiPage(WikiPageCreateOrUpdateParameters): + """WikiPage. + + :param content: Content of the wiki page. + :type content: str + :param git_item_path: Path of the git item corresponding to the wiki page stored in the backing Git repository. + :type git_item_path: str + :param is_non_conformant: True if a page is non-conforming, i.e. 1) if the name doesn't match page naming standards. 2) if the page does not have a valid entry in the appropriate order file. + :type is_non_conformant: bool + :param is_parent_page: True if this page has subpages under its path. + :type is_parent_page: bool + :param order: Order of the wiki page, relative to other pages in the same hierarchy level. + :type order: int + :param path: Path of the wiki page. + :type path: str + :param remote_url: Remote web url to the wiki page. + :type remote_url: str + :param sub_pages: List of subpages of the current page. + :type sub_pages: list of :class:`WikiPage ` + :param url: REST url for this wiki page. + :type url: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, + 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, + 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'sub_pages': {'key': 'subPages', 'type': '[WikiPage]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, content=None, git_item_path=None, is_non_conformant=None, is_parent_page=None, order=None, path=None, remote_url=None, sub_pages=None, url=None): + super(WikiPage, self).__init__(content=content) + self.git_item_path = git_item_path + self.is_non_conformant = is_non_conformant + self.is_parent_page = is_parent_page + self.order = order + self.path = path + self.remote_url = remote_url + self.sub_pages = sub_pages + self.url = url + + +class WikiPageMove(WikiPageMoveParameters): + """WikiPageMove. + + :param new_order: New order of the wiki page. + :type new_order: int + :param new_path: New path of the wiki page. + :type new_path: str + :param path: Current path of the wiki page. + :type path: str + :param page: Resultant page of this page move operation. + :type page: :class:`WikiPage ` + """ + + _attribute_map = { + 'new_order': {'key': 'newOrder', 'type': 'int'}, + 'new_path': {'key': 'newPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'page': {'key': 'page', 'type': 'WikiPage'} + } + + def __init__(self, new_order=None, new_path=None, path=None, page=None): + super(WikiPageMove, self).__init__(new_order=new_order, new_path=new_path, path=path) + self.page = page + + +__all__ = [ + 'GitRepository', + 'GitRepositoryRef', + 'GitVersionDescriptor', + 'WikiAttachment', + 'WikiAttachmentResponse', + 'WikiCreateBaseParameters', + 'WikiCreateParametersV2', + 'WikiPageCreateOrUpdateParameters', + 'WikiPageMoveParameters', + 'WikiPageMoveResponse', + 'WikiPageResponse', + 'WikiPageViewStats', + 'WikiUpdateParameters', + 'WikiV2', + 'WikiPage', + 'WikiPageMove', +] diff --git a/vsts/vsts/wiki/v4_1/wiki_client.py b/azure-devops/azure/devops/v4_1/wiki/wiki_client.py similarity index 99% rename from vsts/vsts/wiki/v4_1/wiki_client.py rename to azure-devops/azure/devops/v4_1/wiki/wiki_client.py index 6ff6aec6..f67453d0 100644 --- a/vsts/vsts/wiki/v4_1/wiki_client.py +++ b/azure-devops/azure/devops/v4_1/wiki/wiki_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WikiClient(VssClient): +class WikiClient(Client): """Wiki :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/work/__init__.py b/azure-devops/azure/devops/v4_1/work/__init__.py new file mode 100644 index 00000000..851678be --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work/__init__.py @@ -0,0 +1,72 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Activity', + 'BacklogColumn', + 'BacklogConfiguration', + 'BacklogFields', + 'BacklogLevel', + 'BacklogLevelConfiguration', + 'BacklogLevelWorkItems', + 'Board', + 'BoardCardRuleSettings', + 'BoardCardSettings', + 'BoardChart', + 'BoardChartReference', + 'BoardColumn', + 'BoardFields', + 'BoardReference', + 'BoardRow', + 'BoardSuggestedValue', + 'BoardUserSettings', + 'CapacityPatch', + 'CategoryConfiguration', + 'CreatePlan', + 'DateRange', + 'DeliveryViewData', + 'FieldReference', + 'FilterClause', + 'GraphSubjectBase', + 'IdentityRef', + 'IterationWorkItems', + 'Member', + 'ParentChildWIMap', + 'Plan', + 'PlanViewData', + 'ProcessConfiguration', + 'ReferenceLinks', + 'Rule', + 'TeamContext', + 'TeamFieldValue', + 'TeamFieldValues', + 'TeamFieldValuesPatch', + 'TeamIterationAttributes', + 'TeamMemberCapacity', + 'TeamSetting', + 'TeamSettingsDataContractBase', + 'TeamSettingsDaysOff', + 'TeamSettingsDaysOffPatch', + 'TeamSettingsIteration', + 'TeamSettingsPatch', + 'TimelineCriteriaStatus', + 'TimelineIterationStatus', + 'TimelineTeamData', + 'TimelineTeamIteration', + 'TimelineTeamStatus', + 'UpdatePlan', + 'WorkItemColor', + 'WorkItemFieldReference', + 'WorkItemLink', + 'WorkItemReference', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeReference', + 'WorkItemTypeStateInfo', +] diff --git a/azure-devops/azure/devops/v4_1/work/models.py b/azure-devops/azure/devops/v4_1/work/models.py new file mode 100644 index 00000000..1090626d --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work/models.py @@ -0,0 +1,1729 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Activity(Model): + """Activity. + + :param capacity_per_day: + :type capacity_per_day: int + :param name: + :type name: str + """ + + _attribute_map = { + 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, capacity_per_day=None, name=None): + super(Activity, self).__init__() + self.capacity_per_day = capacity_per_day + self.name = name + + +class BacklogColumn(Model): + """BacklogColumn. + + :param column_field_reference: + :type column_field_reference: :class:`WorkItemFieldReference ` + :param width: + :type width: int + """ + + _attribute_map = { + 'column_field_reference': {'key': 'columnFieldReference', 'type': 'WorkItemFieldReference'}, + 'width': {'key': 'width', 'type': 'int'} + } + + def __init__(self, column_field_reference=None, width=None): + super(BacklogColumn, self).__init__() + self.column_field_reference = column_field_reference + self.width = width + + +class BacklogConfiguration(Model): + """BacklogConfiguration. + + :param backlog_fields: Behavior/type field mapping + :type backlog_fields: :class:`BacklogFields ` + :param bugs_behavior: Bugs behavior + :type bugs_behavior: object + :param hidden_backlogs: Hidden Backlog + :type hidden_backlogs: list of str + :param portfolio_backlogs: Portfolio backlog descriptors + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :param requirement_backlog: Requirement backlog + :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :param task_backlog: Task backlog + :type task_backlog: :class:`BacklogLevelConfiguration ` + :param url: + :type url: str + :param work_item_type_mapped_states: Mapped states for work item types + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + """ + + _attribute_map = { + 'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'} + } + + def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): + super(BacklogConfiguration, self).__init__() + self.backlog_fields = backlog_fields + self.bugs_behavior = bugs_behavior + self.hidden_backlogs = hidden_backlogs + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.url = url + self.work_item_type_mapped_states = work_item_type_mapped_states + + +class BacklogFields(Model): + """BacklogFields. + + :param type_fields: Field Type (e.g. Order, Activity) to Field Reference Name map + :type type_fields: dict + """ + + _attribute_map = { + 'type_fields': {'key': 'typeFields', 'type': '{str}'} + } + + def __init__(self, type_fields=None): + super(BacklogFields, self).__init__() + self.type_fields = type_fields + + +class BacklogLevel(Model): + """BacklogLevel. + + :param category_reference_name: Reference name of the corresponding WIT category + :type category_reference_name: str + :param plural_name: Plural name for the backlog level + :type plural_name: str + :param work_item_states: Collection of work item states that are included in the plan. The server will filter to only these work item types. + :type work_item_states: list of str + :param work_item_types: Collection of valid workitem type names for the given backlog level + :type work_item_types: list of str + """ + + _attribute_map = { + 'category_reference_name': {'key': 'categoryReferenceName', 'type': 'str'}, + 'plural_name': {'key': 'pluralName', 'type': 'str'}, + 'work_item_states': {'key': 'workItemStates', 'type': '[str]'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[str]'} + } + + def __init__(self, category_reference_name=None, plural_name=None, work_item_states=None, work_item_types=None): + super(BacklogLevel, self).__init__() + self.category_reference_name = category_reference_name + self.plural_name = plural_name + self.work_item_states = work_item_states + self.work_item_types = work_item_types + + +class BacklogLevelConfiguration(Model): + """BacklogLevelConfiguration. + + :param add_panel_fields: List of fields to include in Add Panel + :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :param color: Color for the backlog level + :type color: str + :param column_fields: Default list of columns for the backlog + :type column_fields: list of :class:`BacklogColumn ` + :param default_work_item_type: Defaulst Work Item Type for the backlog + :type default_work_item_type: :class:`WorkItemTypeReference ` + :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) + :type id: str + :param is_hidden: Indicates whether the backlog level is hidden + :type is_hidden: bool + :param name: Backlog Name + :type name: str + :param rank: Backlog Rank (Taskbacklog is 0) + :type rank: int + :param type: The type of this backlog level + :type type: object + :param work_item_count_limit: Max number of work items to show in the given backlog + :type work_item_count_limit: int + :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'add_panel_fields': {'key': 'addPanelFields', 'type': '[WorkItemFieldReference]'}, + 'color': {'key': 'color', 'type': 'str'}, + 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, + 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_hidden': {'key': 'isHidden', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, is_hidden=None, name=None, rank=None, type=None, work_item_count_limit=None, work_item_types=None): + super(BacklogLevelConfiguration, self).__init__() + self.add_panel_fields = add_panel_fields + self.color = color + self.column_fields = column_fields + self.default_work_item_type = default_work_item_type + self.id = id + self.is_hidden = is_hidden + self.name = name + self.rank = rank + self.type = type + self.work_item_count_limit = work_item_count_limit + self.work_item_types = work_item_types + + +class BacklogLevelWorkItems(Model): + """BacklogLevelWorkItems. + + :param work_items: A list of work items within a backlog level + :type work_items: list of :class:`WorkItemLink ` + """ + + _attribute_map = { + 'work_items': {'key': 'workItems', 'type': '[WorkItemLink]'} + } + + def __init__(self, work_items=None): + super(BacklogLevelWorkItems, self).__init__() + self.work_items = work_items + + +class BoardCardRuleSettings(Model): + """BoardCardRuleSettings. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param rules: + :type rules: dict + :param url: + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'rules': {'key': 'rules', 'type': '{[Rule]}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, rules=None, url=None): + super(BoardCardRuleSettings, self).__init__() + self._links = _links + self.rules = rules + self.url = url + + +class BoardCardSettings(Model): + """BoardCardSettings. + + :param cards: + :type cards: dict + """ + + _attribute_map = { + 'cards': {'key': 'cards', 'type': '{[FieldSetting]}'} + } + + def __init__(self, cards=None): + super(BoardCardSettings, self).__init__() + self.cards = cards + + +class BoardChartReference(Model): + """BoardChartReference. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(BoardChartReference, self).__init__() + self.name = name + self.url = url + + +class BoardColumn(Model): + """BoardColumn. + + :param column_type: + :type column_type: object + :param description: + :type description: str + :param id: + :type id: str + :param is_split: + :type is_split: bool + :param item_limit: + :type item_limit: int + :param name: + :type name: str + :param state_mappings: + :type state_mappings: dict + """ + + _attribute_map = { + 'column_type': {'key': 'columnType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_split': {'key': 'isSplit', 'type': 'bool'}, + 'item_limit': {'key': 'itemLimit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'state_mappings': {'key': 'stateMappings', 'type': '{str}'} + } + + def __init__(self, column_type=None, description=None, id=None, is_split=None, item_limit=None, name=None, state_mappings=None): + super(BoardColumn, self).__init__() + self.column_type = column_type + self.description = description + self.id = id + self.is_split = is_split + self.item_limit = item_limit + self.name = name + self.state_mappings = state_mappings + + +class BoardFields(Model): + """BoardFields. + + :param column_field: + :type column_field: :class:`FieldReference ` + :param done_field: + :type done_field: :class:`FieldReference ` + :param row_field: + :type row_field: :class:`FieldReference ` + """ + + _attribute_map = { + 'column_field': {'key': 'columnField', 'type': 'FieldReference'}, + 'done_field': {'key': 'doneField', 'type': 'FieldReference'}, + 'row_field': {'key': 'rowField', 'type': 'FieldReference'} + } + + def __init__(self, column_field=None, done_field=None, row_field=None): + super(BoardFields, self).__init__() + self.column_field = column_field + self.done_field = done_field + self.row_field = row_field + + +class BoardReference(Model): + """BoardReference. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, name=None, url=None): + super(BoardReference, self).__init__() + self.id = id + self.name = name + self.url = url + + +class BoardRow(Model): + """BoardRow. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(BoardRow, self).__init__() + self.id = id + self.name = name + + +class BoardSuggestedValue(Model): + """BoardSuggestedValue. + + :param name: + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(BoardSuggestedValue, self).__init__() + self.name = name + + +class BoardUserSettings(Model): + """BoardUserSettings. + + :param auto_refresh_state: + :type auto_refresh_state: bool + """ + + _attribute_map = { + 'auto_refresh_state': {'key': 'autoRefreshState', 'type': 'bool'} + } + + def __init__(self, auto_refresh_state=None): + super(BoardUserSettings, self).__init__() + self.auto_refresh_state = auto_refresh_state + + +class CapacityPatch(Model): + """CapacityPatch. + + :param activities: + :type activities: list of :class:`Activity ` + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, activities=None, days_off=None): + super(CapacityPatch, self).__init__() + self.activities = activities + self.days_off = days_off + + +class CategoryConfiguration(Model): + """CategoryConfiguration. + + :param name: Name + :type name: str + :param reference_name: Category Reference Name + :type reference_name: str + :param work_item_types: Work item types for the backlog category + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, name=None, reference_name=None, work_item_types=None): + super(CategoryConfiguration, self).__init__() + self.name = name + self.reference_name = reference_name + self.work_item_types = work_item_types + + +class CreatePlan(Model): + """CreatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param type: Type of plan to create. + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, type=None): + super(CreatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.type = type + + +class DateRange(Model): + """DateRange. + + :param end: End of the date range. + :type end: datetime + :param start: Start of the date range. + :type start: datetime + """ + + _attribute_map = { + 'end': {'key': 'end', 'type': 'iso-8601'}, + 'start': {'key': 'start', 'type': 'iso-8601'} + } + + def __init__(self, end=None, start=None): + super(DateRange, self).__init__() + self.end = end + self.start = start + + +class FieldReference(Model): + """FieldReference. + + :param reference_name: fieldRefName for the field + :type reference_name: str + :param url: Full http link to more information about the field + :type url: str + """ + + _attribute_map = { + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, reference_name=None, url=None): + super(FieldReference, self).__init__() + self.reference_name = reference_name + self.url = url + + +class FilterClause(Model): + """FilterClause. + + :param field_name: + :type field_name: str + :param index: + :type index: int + :param logical_operator: + :type logical_operator: str + :param operator: + :type operator: str + :param value: + :type value: str + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'int'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): + super(FilterClause, self).__init__() + self.field_name = field_name + self.index = index + self.logical_operator = logical_operator + self.operator = operator + self.value = value + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class Member(Model): + """Member. + + :param display_name: + :type display_name: str + :param id: + :type id: str + :param image_url: + :type image_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, image_url=None, unique_name=None, url=None): + super(Member, self).__init__() + self.display_name = display_name + self.id = id + self.image_url = image_url + self.unique_name = unique_name + self.url = url + + +class ParentChildWIMap(Model): + """ParentChildWIMap. + + :param child_work_item_ids: + :type child_work_item_ids: list of int + :param id: + :type id: int + :param title: + :type title: str + """ + + _attribute_map = { + 'child_work_item_ids': {'key': 'childWorkItemIds', 'type': '[int]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, child_work_item_ids=None, id=None, title=None): + super(ParentChildWIMap, self).__init__() + self.child_work_item_ids = child_work_item_ids + self.id = id + self.title = title + + +class Plan(Model): + """Plan. + + :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type created_by_identity: :class:`IdentityRef ` + :param created_date: Date when the plan was created + :type created_date: datetime + :param description: Description of the plan + :type description: str + :param id: Id of the plan + :type id: str + :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. + :type modified_by_identity: :class:`IdentityRef ` + :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. + :type modified_date: datetime + :param name: Name of the plan + :type name: str + :param properties: The PlanPropertyCollection instance associated with the plan. These are dependent on the type of the plan. For example, DeliveryTimelineView, it would be of type DeliveryViewPropertyCollection. + :type properties: object + :param revision: Revision of the plan. Used to safeguard users from overwriting each other's changes. + :type revision: int + :param type: Type of the plan + :type type: object + :param url: The resource url to locate the plan via rest api + :type url: str + :param user_permissions: Bit flag indicating set of permissions a user has to the plan. + :type user_permissions: object + """ + + _attribute_map = { + 'created_by_identity': {'key': 'createdByIdentity', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by_identity': {'key': 'modifiedByIdentity', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'user_permissions': {'key': 'userPermissions', 'type': 'object'} + } + + def __init__(self, created_by_identity=None, created_date=None, description=None, id=None, modified_by_identity=None, modified_date=None, name=None, properties=None, revision=None, type=None, url=None, user_permissions=None): + super(Plan, self).__init__() + self.created_by_identity = created_by_identity + self.created_date = created_date + self.description = description + self.id = id + self.modified_by_identity = modified_by_identity + self.modified_date = modified_date + self.name = name + self.properties = properties + self.revision = revision + self.type = type + self.url = url + self.user_permissions = user_permissions + + +class PlanViewData(Model): + """PlanViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, revision=None): + super(PlanViewData, self).__init__() + self.id = id + self.revision = revision + + +class ProcessConfiguration(Model): + """ProcessConfiguration. + + :param bug_work_items: Details about bug work items + :type bug_work_items: :class:`CategoryConfiguration ` + :param portfolio_backlogs: Details about portfolio backlogs + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :param requirement_backlog: Details of requirement backlog + :type requirement_backlog: :class:`CategoryConfiguration ` + :param task_backlog: Details of task backlog + :type task_backlog: :class:`CategoryConfiguration ` + :param type_fields: Type fields for the process configuration + :type type_fields: dict + :param url: + :type url: str + """ + + _attribute_map = { + 'bug_work_items': {'key': 'bugWorkItems', 'type': 'CategoryConfiguration'}, + 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[CategoryConfiguration]'}, + 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'CategoryConfiguration'}, + 'task_backlog': {'key': 'taskBacklog', 'type': 'CategoryConfiguration'}, + 'type_fields': {'key': 'typeFields', 'type': '{WorkItemFieldReference}'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, bug_work_items=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, type_fields=None, url=None): + super(ProcessConfiguration, self).__init__() + self.bug_work_items = bug_work_items + self.portfolio_backlogs = portfolio_backlogs + self.requirement_backlog = requirement_backlog + self.task_backlog = task_backlog + self.type_fields = type_fields + self.url = url + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Rule(Model): + """Rule. + + :param clauses: + :type clauses: list of :class:`FilterClause ` + :param filter: + :type filter: str + :param is_enabled: + :type is_enabled: str + :param name: + :type name: str + :param settings: + :type settings: dict + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, + 'filter': {'key': 'filter', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'settings': {'key': 'settings', 'type': '{str}'} + } + + def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): + super(Rule, self).__init__() + self.clauses = clauses + self.filter = filter + self.is_enabled = is_enabled + self.name = name + self.settings = settings + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class TeamFieldValue(Model): + """TeamFieldValue. + + :param include_children: + :type include_children: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'include_children': {'key': 'includeChildren', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, include_children=None, value=None): + super(TeamFieldValue, self).__init__() + self.include_children = include_children + self.value = value + + +class TeamFieldValuesPatch(Model): + """TeamFieldValuesPatch. + + :param default_value: + :type default_value: str + :param values: + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, default_value=None, values=None): + super(TeamFieldValuesPatch, self).__init__() + self.default_value = default_value + self.values = values + + +class TeamIterationAttributes(Model): + """TeamIterationAttributes. + + :param finish_date: + :type finish_date: datetime + :param start_date: + :type start_date: datetime + :param time_frame: + :type time_frame: object + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'time_frame': {'key': 'timeFrame', 'type': 'object'} + } + + def __init__(self, finish_date=None, start_date=None, time_frame=None): + super(TeamIterationAttributes, self).__init__() + self.finish_date = finish_date + self.start_date = start_date + self.time_frame = time_frame + + +class TeamSettingsDataContractBase(Model): + """TeamSettingsDataContractBase. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, url=None): + super(TeamSettingsDataContractBase, self).__init__() + self._links = _links + self.url = url + + +class TeamSettingsDaysOff(TeamSettingsDataContractBase): + """TeamSettingsDaysOff. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, _links=None, url=None, days_off=None): + super(TeamSettingsDaysOff, self).__init__(_links=_links, url=url) + self.days_off = days_off + + +class TeamSettingsDaysOffPatch(Model): + """TeamSettingsDaysOffPatch. + + :param days_off: + :type days_off: list of :class:`DateRange ` + """ + + _attribute_map = { + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} + } + + def __init__(self, days_off=None): + super(TeamSettingsDaysOffPatch, self).__init__() + self.days_off = days_off + + +class TeamSettingsIteration(TeamSettingsDataContractBase): + """TeamSettingsIteration. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param attributes: Attributes such as start and end date + :type attributes: :class:`TeamIterationAttributes ` + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param path: Relative path of the iteration + :type path: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'TeamIterationAttributes'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, _links=None, url=None, attributes=None, id=None, name=None, path=None): + super(TeamSettingsIteration, self).__init__(_links=_links, url=url) + self.attributes = attributes + self.id = id + self.name = name + self.path = path + + +class TeamSettingsPatch(Model): + """TeamSettingsPatch. + + :param backlog_iteration: + :type backlog_iteration: str + :param backlog_visibilities: + :type backlog_visibilities: dict + :param bugs_behavior: + :type bugs_behavior: object + :param default_iteration: + :type default_iteration: str + :param default_iteration_macro: + :type default_iteration_macro: str + :param working_days: + :type working_days: list of str + """ + + _attribute_map = { + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'str'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[object]'} + } + + def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSettingsPatch, self).__init__() + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days + + +class TimelineCriteriaStatus(Model): + """TimelineCriteriaStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineCriteriaStatus, self).__init__() + self.message = message + self.type = type + + +class TimelineIterationStatus(Model): + """TimelineIterationStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineIterationStatus, self).__init__() + self.message = message + self.type = type + + +class TimelineTeamData(Model): + """TimelineTeamData. + + :param backlog: Backlog matching the mapped backlog associated with this team. + :type backlog: :class:`BacklogLevel ` + :param field_reference_names: The field reference names of the work item data + :type field_reference_names: list of str + :param id: The id of the team + :type id: str + :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. + :type is_expanded: bool + :param iterations: The iteration data, including the work items, in the queried date range. + :type iterations: list of :class:`TimelineTeamIteration ` + :param name: The name of the team + :type name: str + :param order_by_field: The order by field name of this team + :type order_by_field: str + :param partially_paged_field_reference_names: The field reference names of the partially paged work items, such as ID, WorkItemType + :type partially_paged_field_reference_names: list of str + :param project_id: The project id the team belongs team + :type project_id: str + :param status: Status for this team. + :type status: :class:`TimelineTeamStatus ` + :param team_field_default_value: The team field default value + :type team_field_default_value: str + :param team_field_name: The team field name of this team + :type team_field_name: str + :param team_field_values: The team field values + :type team_field_values: list of :class:`TeamFieldValue ` + :param work_item_type_colors: Colors for the work item types. + :type work_item_type_colors: list of :class:`WorkItemColor ` + """ + + _attribute_map = { + 'backlog': {'key': 'backlog', 'type': 'BacklogLevel'}, + 'field_reference_names': {'key': 'fieldReferenceNames', 'type': '[str]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, + 'iterations': {'key': 'iterations', 'type': '[TimelineTeamIteration]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order_by_field': {'key': 'orderByField', 'type': 'str'}, + 'partially_paged_field_reference_names': {'key': 'partiallyPagedFieldReferenceNames', 'type': '[str]'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'TimelineTeamStatus'}, + 'team_field_default_value': {'key': 'teamFieldDefaultValue', 'type': 'str'}, + 'team_field_name': {'key': 'teamFieldName', 'type': 'str'}, + 'team_field_values': {'key': 'teamFieldValues', 'type': '[TeamFieldValue]'}, + 'work_item_type_colors': {'key': 'workItemTypeColors', 'type': '[WorkItemColor]'} + } + + def __init__(self, backlog=None, field_reference_names=None, id=None, is_expanded=None, iterations=None, name=None, order_by_field=None, partially_paged_field_reference_names=None, project_id=None, status=None, team_field_default_value=None, team_field_name=None, team_field_values=None, work_item_type_colors=None): + super(TimelineTeamData, self).__init__() + self.backlog = backlog + self.field_reference_names = field_reference_names + self.id = id + self.is_expanded = is_expanded + self.iterations = iterations + self.name = name + self.order_by_field = order_by_field + self.partially_paged_field_reference_names = partially_paged_field_reference_names + self.project_id = project_id + self.status = status + self.team_field_default_value = team_field_default_value + self.team_field_name = team_field_name + self.team_field_values = team_field_values + self.work_item_type_colors = work_item_type_colors + + +class TimelineTeamIteration(Model): + """TimelineTeamIteration. + + :param finish_date: The end date of the iteration + :type finish_date: datetime + :param name: The iteration name + :type name: str + :param partially_paged_work_items: All the partially paged workitems in this iteration. + :type partially_paged_work_items: list of [object] + :param path: The iteration path + :type path: str + :param start_date: The start date of the iteration + :type start_date: datetime + :param status: The status of this iteration + :type status: :class:`TimelineIterationStatus ` + :param work_items: The work items that have been paged in this iteration + :type work_items: list of [object] + """ + + _attribute_map = { + 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'partially_paged_work_items': {'key': 'partiallyPagedWorkItems', 'type': '[[object]]'}, + 'path': {'key': 'path', 'type': 'str'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'TimelineIterationStatus'}, + 'work_items': {'key': 'workItems', 'type': '[[object]]'} + } + + def __init__(self, finish_date=None, name=None, partially_paged_work_items=None, path=None, start_date=None, status=None, work_items=None): + super(TimelineTeamIteration, self).__init__() + self.finish_date = finish_date + self.name = name + self.partially_paged_work_items = partially_paged_work_items + self.path = path + self.start_date = start_date + self.status = status + self.work_items = work_items + + +class TimelineTeamStatus(Model): + """TimelineTeamStatus. + + :param message: + :type message: str + :param type: + :type type: object + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, message=None, type=None): + super(TimelineTeamStatus, self).__init__() + self.message = message + self.type = type + + +class UpdatePlan(Model): + """UpdatePlan. + + :param description: Description of the plan + :type description: str + :param name: Name of the plan to create. + :type name: str + :param properties: Plan properties. + :type properties: object + :param revision: Revision of the plan that was updated - the value used here should match the one the server gave the client in the Plan. + :type revision: int + :param type: Type of the plan + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, name=None, properties=None, revision=None, type=None): + super(UpdatePlan, self).__init__() + self.description = description + self.name = name + self.properties = properties + self.revision = revision + self.type = type + + +class WorkItemColor(Model): + """WorkItemColor. + + :param icon: + :type icon: str + :param primary_color: + :type primary_color: str + :param work_item_type_name: + :type work_item_type_name: str + """ + + _attribute_map = { + 'icon': {'key': 'icon', 'type': 'str'}, + 'primary_color': {'key': 'primaryColor', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, icon=None, primary_color=None, work_item_type_name=None): + super(WorkItemColor, self).__init__() + self.icon = icon + self.primary_color = primary_color + self.work_item_type_name = work_item_type_name + + +class WorkItemFieldReference(Model): + """WorkItemFieldReference. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(WorkItemFieldReference, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url + + +class WorkItemLink(Model): + """WorkItemLink. + + :param rel: The type of link. + :type rel: str + :param source: The source work item. + :type source: :class:`WorkItemReference ` + :param target: The target work item. + :type target: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'rel': {'key': 'rel', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'WorkItemReference'}, + 'target': {'key': 'target', 'type': 'WorkItemReference'} + } + + def __init__(self, rel=None, source=None, target=None): + super(WorkItemLink, self).__init__() + self.rel = rel + self.source = source + self.target = target + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: Work item ID. + :type id: int + :param url: REST API URL of the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemTrackingResourceReference(Model): + """WorkItemTrackingResourceReference. + + :param url: + :type url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, url=None): + super(WorkItemTrackingResourceReference, self).__init__() + self.url = url + + +class WorkItemTypeReference(WorkItemTrackingResourceReference): + """WorkItemTypeReference. + + :param url: + :type url: str + :param name: Name of the work item type. + :type name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, url=None, name=None): + super(WorkItemTypeReference, self).__init__(url=url) + self.name = name + + +class WorkItemTypeStateInfo(Model): + """WorkItemTypeStateInfo. + + :param states: State name to state category map + :type states: dict + :param work_item_type_name: Work Item type name + :type work_item_type_name: str + """ + + _attribute_map = { + 'states': {'key': 'states', 'type': '{str}'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, states=None, work_item_type_name=None): + super(WorkItemTypeStateInfo, self).__init__() + self.states = states + self.work_item_type_name = work_item_type_name + + +class Board(BoardReference): + """Board. + + :param id: Id of the resource + :type id: str + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param allowed_mappings: + :type allowed_mappings: dict + :param can_edit: + :type can_edit: bool + :param columns: + :type columns: list of :class:`BoardColumn ` + :param fields: + :type fields: :class:`BoardFields ` + :param is_valid: + :type is_valid: bool + :param revision: + :type revision: int + :param rows: + :type rows: list of :class:`BoardRow ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'allowed_mappings': {'key': 'allowedMappings', 'type': '{{[str]}}'}, + 'can_edit': {'key': 'canEdit', 'type': 'bool'}, + 'columns': {'key': 'columns', 'type': '[BoardColumn]'}, + 'fields': {'key': 'fields', 'type': 'BoardFields'}, + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'rows': {'key': 'rows', 'type': '[BoardRow]'} + } + + def __init__(self, id=None, name=None, url=None, _links=None, allowed_mappings=None, can_edit=None, columns=None, fields=None, is_valid=None, revision=None, rows=None): + super(Board, self).__init__(id=id, name=name, url=url) + self._links = _links + self.allowed_mappings = allowed_mappings + self.can_edit = can_edit + self.columns = columns + self.fields = fields + self.is_valid = is_valid + self.revision = revision + self.rows = rows + + +class BoardChart(BoardChartReference): + """BoardChart. + + :param name: Name of the resource + :type name: str + :param url: Full http link to the resource + :type url: str + :param _links: The links for the resource + :type _links: :class:`ReferenceLinks ` + :param settings: The settings for the resource + :type settings: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'settings': {'key': 'settings', 'type': '{object}'} + } + + def __init__(self, name=None, url=None, _links=None, settings=None): + super(BoardChart, self).__init__(name=name, url=url) + self._links = _links + self.settings = settings + + +class DeliveryViewData(PlanViewData): + """DeliveryViewData. + + :param id: + :type id: str + :param revision: + :type revision: int + :param child_id_to_parent_id_map: Work item child id to parenet id map + :type child_id_to_parent_id_map: dict + :param criteria_status: Filter criteria status of the timeline + :type criteria_status: :class:`TimelineCriteriaStatus ` + :param end_date: The end date of the delivery view data + :type end_date: datetime + :param start_date: The start date for the delivery view data + :type start_date: datetime + :param teams: All the team data + :type teams: list of :class:`TimelineTeamData ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'}, + 'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'teams': {'key': 'teams', 'type': '[TimelineTeamData]'} + } + + def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None): + super(DeliveryViewData, self).__init__(id=id, revision=revision) + self.child_id_to_parent_id_map = child_id_to_parent_id_map + self.criteria_status = criteria_status + self.end_date = end_date + self.start_date = start_date + self.teams = teams + + +class IterationWorkItems(TeamSettingsDataContractBase): + """IterationWorkItems. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param work_item_relations: Work item relations + :type work_item_relations: list of :class:`WorkItemLink ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'} + } + + def __init__(self, _links=None, url=None, work_item_relations=None): + super(IterationWorkItems, self).__init__(_links=_links, url=url) + self.work_item_relations = work_item_relations + + +class TeamFieldValues(TeamSettingsDataContractBase): + """TeamFieldValues. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param default_value: The default team field value + :type default_value: str + :param field: Shallow ref to the field being used as a team field + :type field: :class:`FieldReference ` + :param values: Collection of all valid team field values + :type values: list of :class:`TeamFieldValue ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'FieldReference'}, + 'values': {'key': 'values', 'type': '[TeamFieldValue]'} + } + + def __init__(self, _links=None, url=None, default_value=None, field=None, values=None): + super(TeamFieldValues, self).__init__(_links=_links, url=url) + self.default_value = default_value + self.field = field + self.values = values + + +class TeamMemberCapacity(TeamSettingsDataContractBase): + """TeamMemberCapacity. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param activities: Collection of capacities associated with the team member + :type activities: list of :class:`Activity ` + :param days_off: The days off associated with the team member + :type days_off: list of :class:`DateRange ` + :param team_member: Shallow Ref to the associated team member + :type team_member: :class:`Member ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'activities': {'key': 'activities', 'type': '[Activity]'}, + 'days_off': {'key': 'daysOff', 'type': '[DateRange]'}, + 'team_member': {'key': 'teamMember', 'type': 'Member'} + } + + def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None): + super(TeamMemberCapacity, self).__init__(_links=_links, url=url) + self.activities = activities + self.days_off = days_off + self.team_member = team_member + + +class TeamSetting(TeamSettingsDataContractBase): + """TeamSetting. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param backlog_iteration: Backlog Iteration + :type backlog_iteration: :class:`TeamSettingsIteration ` + :param backlog_visibilities: Information about categories that are visible on the backlog. + :type backlog_visibilities: dict + :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) + :type bugs_behavior: object + :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. + :type default_iteration: :class:`TeamSettingsIteration ` + :param default_iteration_macro: Default Iteration macro (if any) + :type default_iteration_macro: str + :param working_days: Days that the team is working + :type working_days: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'backlog_iteration': {'key': 'backlogIteration', 'type': 'TeamSettingsIteration'}, + 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, + 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, + 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, + 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, + 'working_days': {'key': 'workingDays', 'type': '[object]'} + } + + def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): + super(TeamSetting, self).__init__(_links=_links, url=url) + self.backlog_iteration = backlog_iteration + self.backlog_visibilities = backlog_visibilities + self.bugs_behavior = bugs_behavior + self.default_iteration = default_iteration + self.default_iteration_macro = default_iteration_macro + self.working_days = working_days + + +__all__ = [ + 'Activity', + 'BacklogColumn', + 'BacklogConfiguration', + 'BacklogFields', + 'BacklogLevel', + 'BacklogLevelConfiguration', + 'BacklogLevelWorkItems', + 'BoardCardRuleSettings', + 'BoardCardSettings', + 'BoardChartReference', + 'BoardColumn', + 'BoardFields', + 'BoardReference', + 'BoardRow', + 'BoardSuggestedValue', + 'BoardUserSettings', + 'CapacityPatch', + 'CategoryConfiguration', + 'CreatePlan', + 'DateRange', + 'FieldReference', + 'FilterClause', + 'GraphSubjectBase', + 'IdentityRef', + 'Member', + 'ParentChildWIMap', + 'Plan', + 'PlanViewData', + 'ProcessConfiguration', + 'ReferenceLinks', + 'Rule', + 'TeamContext', + 'TeamFieldValue', + 'TeamFieldValuesPatch', + 'TeamIterationAttributes', + 'TeamSettingsDataContractBase', + 'TeamSettingsDaysOff', + 'TeamSettingsDaysOffPatch', + 'TeamSettingsIteration', + 'TeamSettingsPatch', + 'TimelineCriteriaStatus', + 'TimelineIterationStatus', + 'TimelineTeamData', + 'TimelineTeamIteration', + 'TimelineTeamStatus', + 'UpdatePlan', + 'WorkItemColor', + 'WorkItemFieldReference', + 'WorkItemLink', + 'WorkItemReference', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeReference', + 'WorkItemTypeStateInfo', + 'Board', + 'BoardChart', + 'DeliveryViewData', + 'IterationWorkItems', + 'TeamFieldValues', + 'TeamMemberCapacity', + 'TeamSetting', +] diff --git a/vsts/vsts/work/v4_1/work_client.py b/azure-devops/azure/devops/v4_1/work/work_client.py similarity index 99% rename from vsts/vsts/work/v4_1/work_client.py rename to azure-devops/azure/devops/v4_1/work/work_client.py index b15ac0f3..2f03c3a6 100644 --- a/vsts/vsts/work/v4_1/work_client.py +++ b/azure-devops/azure/devops/v4_1/work/work_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkClient(VssClient): +class WorkClient(Client): """Work :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking/__init__.py b/azure-devops/azure/devops/v4_1/work_item_tracking/__init__.py new file mode 100644 index 00000000..edaa431d --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking/__init__.py @@ -0,0 +1,81 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AccountMyWorkResult', + 'AccountRecentActivityWorkItemModel', + 'AccountRecentMentionWorkItemModel', + 'AccountWorkWorkItemModel', + 'ArtifactUriQuery', + 'ArtifactUriQueryResult', + 'AttachmentReference', + 'FieldDependentRule', + 'FieldsToEvaluate', + 'GraphSubjectBase', + 'IdentityRef', + 'IdentityReference', + 'JsonPatchOperation', + 'Link', + 'ProjectWorkItemStateColors', + 'ProvisioningResult', + 'QueryHierarchyItem', + 'QueryHierarchyItemsResult', + 'ReferenceLinks', + 'ReportingWorkItemLink', + 'ReportingWorkItemLinksBatch', + 'ReportingWorkItemRevisionsBatch', + 'ReportingWorkItemRevisionsFilter', + 'StreamedBatch', + 'TeamContext', + 'Wiql', + 'WorkArtifactLink', + 'WorkItem', + 'WorkItemClassificationNode', + 'WorkItemComment', + 'WorkItemComments', + 'WorkItemDelete', + 'WorkItemDeleteReference', + 'WorkItemDeleteShallowReference', + 'WorkItemDeleteUpdate', + 'WorkItemField', + 'WorkItemFieldOperation', + 'WorkItemFieldReference', + 'WorkItemFieldUpdate', + 'WorkItemHistory', + 'WorkItemIcon', + 'WorkItemLink', + 'WorkItemNextStateOnTransition', + 'WorkItemQueryClause', + 'WorkItemQueryResult', + 'WorkItemQuerySortColumn', + 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemRelationType', + 'WorkItemRelationUpdates', + 'WorkItemStateColor', + 'WorkItemStateTransition', + 'WorkItemTemplate', + 'WorkItemTemplateReference', + 'WorkItemTrackingReference', + 'WorkItemTrackingResource', + 'WorkItemTrackingResourceReference', + 'WorkItemType', + 'WorkItemTypeCategory', + 'WorkItemTypeColor', + 'WorkItemTypeColorAndIcon', + 'WorkItemTypeFieldInstance', + 'WorkItemTypeFieldInstanceBase', + 'WorkItemTypeFieldWithReferences', + 'WorkItemTypeReference', + 'WorkItemTypeStateColors', + 'WorkItemTypeTemplate', + 'WorkItemTypeTemplateUpdateModel', + 'WorkItemUpdate', +] diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking/models.py new file mode 100644 index 00000000..8816d729 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking/models.py @@ -0,0 +1,2170 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccountMyWorkResult(Model): + """AccountMyWorkResult. + + :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit + :type query_size_limit_exceeded: bool + :param work_item_details: WorkItem Details + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + """ + + _attribute_map = { + 'query_size_limit_exceeded': {'key': 'querySizeLimitExceeded', 'type': 'bool'}, + 'work_item_details': {'key': 'workItemDetails', 'type': '[AccountWorkWorkItemModel]'} + } + + def __init__(self, query_size_limit_exceeded=None, work_item_details=None): + super(AccountMyWorkResult, self).__init__() + self.query_size_limit_exceeded = query_size_limit_exceeded + self.work_item_details = work_item_details + + +class AccountRecentActivityWorkItemModel(Model): + """AccountRecentActivityWorkItemModel. + + :param activity_date: Date of the last Activity by the user + :type activity_date: datetime + :param activity_type: Type of the activity + :type activity_type: object + :param assigned_to: Assigned To + :type assigned_to: str + :param changed_date: Last changed date of the work item + :type changed_date: datetime + :param id: Work Item Id + :type id: int + :param identity_id: TeamFoundationId of the user this activity belongs to + :type identity_id: str + :param state: State of the work item + :type state: str + :param team_project: Team project the work item belongs to + :type team_project: str + :param title: Title of the work item + :type title: str + :param work_item_type: Type of Work Item + :type work_item_type: str + """ + + _attribute_map = { + 'activity_date': {'key': 'activityDate', 'type': 'iso-8601'}, + 'activity_type': {'key': 'activityType', 'type': 'object'}, + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, activity_date=None, activity_type=None, assigned_to=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None): + super(AccountRecentActivityWorkItemModel, self).__init__() + self.activity_date = activity_date + self.activity_type = activity_type + self.assigned_to = assigned_to + self.changed_date = changed_date + self.id = id + self.identity_id = identity_id + self.state = state + self.team_project = team_project + self.title = title + self.work_item_type = work_item_type + + +class AccountRecentMentionWorkItemModel(Model): + """AccountRecentMentionWorkItemModel. + + :param assigned_to: Assigned To + :type assigned_to: str + :param id: Work Item Id + :type id: int + :param mentioned_date_field: Lastest date that the user were mentioned + :type mentioned_date_field: datetime + :param state: State of the work item + :type state: str + :param team_project: Team project the work item belongs to + :type team_project: str + :param title: Title of the work item + :type title: str + :param work_item_type: Type of Work Item + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'mentioned_date_field': {'key': 'mentionedDateField', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, mentioned_date_field=None, state=None, team_project=None, title=None, work_item_type=None): + super(AccountRecentMentionWorkItemModel, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.mentioned_date_field = mentioned_date_field + self.state = state + self.team_project = team_project + self.title = title + self.work_item_type = work_item_type + + +class AccountWorkWorkItemModel(Model): + """AccountWorkWorkItemModel. + + :param assigned_to: + :type assigned_to: str + :param changed_date: + :type changed_date: datetime + :param id: + :type id: int + :param state: + :type state: str + :param team_project: + :type team_project: str + :param title: + :type title: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, changed_date=None, id=None, state=None, team_project=None, title=None, work_item_type=None): + super(AccountWorkWorkItemModel, self).__init__() + self.assigned_to = assigned_to + self.changed_date = changed_date + self.id = id + self.state = state + self.team_project = team_project + self.title = title + self.work_item_type = work_item_type + + +class ArtifactUriQuery(Model): + """ArtifactUriQuery. + + :param artifact_uris: List of artifact URIs to use for querying work items. + :type artifact_uris: list of str + """ + + _attribute_map = { + 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'} + } + + def __init__(self, artifact_uris=None): + super(ArtifactUriQuery, self).__init__() + self.artifact_uris = artifact_uris + + +class ArtifactUriQueryResult(Model): + """ArtifactUriQueryResult. + + :param artifact_uris_query_result: A Dictionary that maps a list of work item references to the given list of artifact URI. + :type artifact_uris_query_result: dict + """ + + _attribute_map = { + 'artifact_uris_query_result': {'key': 'artifactUrisQueryResult', 'type': '{[WorkItemReference]}'} + } + + def __init__(self, artifact_uris_query_result=None): + super(ArtifactUriQueryResult, self).__init__() + self.artifact_uris_query_result = artifact_uris_query_result + + +class AttachmentReference(Model): + """AttachmentReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(AttachmentReference, self).__init__() + self.id = id + self.url = url + + +class FieldsToEvaluate(Model): + """FieldsToEvaluate. + + :param fields: List of fields to evaluate. + :type fields: list of str + :param field_updates: Updated field values to evaluate. + :type field_updates: dict + :param field_values: Initial field values. + :type field_values: dict + :param rules_from: URL of the work item type for which the rules need to be executed. + :type rules_from: list of str + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'field_updates': {'key': 'fieldUpdates', 'type': '{object}'}, + 'field_values': {'key': 'fieldValues', 'type': '{object}'}, + 'rules_from': {'key': 'rulesFrom', 'type': '[str]'} + } + + def __init__(self, fields=None, field_updates=None, field_values=None, rules_from=None): + super(FieldsToEvaluate, self).__init__() + self.fields = fields + self.field_updates = field_updates + self.field_values = field_values + self.rules_from = rules_from + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class IdentityReference(IdentityRef): + """IdentityReference. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: + :type directory_alias: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param id: + :type id: str + :param name: Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version + :type 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'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, + 'inactive': {'key': 'inactive', 'type': 'bool'}, + 'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, id=None, name=None): + super(IdentityReference, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) + self.id = id + self.name = name + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class Link(Model): + """Link. + + :param attributes: Collection of link attributes. + :type attributes: dict + :param rel: Relation type. + :type rel: str + :param url: Link url. + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attributes=None, rel=None, url=None): + super(Link, self).__init__() + self.attributes = attributes + self.rel = rel + self.url = url + + +class ProjectWorkItemStateColors(Model): + """ProjectWorkItemStateColors. + + :param project_name: Project name + :type project_name: str + :param work_item_type_state_colors: State colors for all work item type in a project + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + """ + + _attribute_map = { + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'work_item_type_state_colors': {'key': 'workItemTypeStateColors', 'type': '[WorkItemTypeStateColors]'} + } + + def __init__(self, project_name=None, work_item_type_state_colors=None): + super(ProjectWorkItemStateColors, self).__init__() + self.project_name = project_name + self.work_item_type_state_colors = work_item_type_state_colors + + +class ProvisioningResult(Model): + """ProvisioningResult. + + :param provisioning_import_events: Details about of the provisioning import events. + :type provisioning_import_events: list of str + """ + + _attribute_map = { + 'provisioning_import_events': {'key': 'provisioningImportEvents', 'type': '[str]'} + } + + def __init__(self, provisioning_import_events=None): + super(ProvisioningResult, self).__init__() + self.provisioning_import_events = provisioning_import_events + + +class QueryHierarchyItemsResult(Model): + """QueryHierarchyItemsResult. + + :param count: The count of items. + :type count: int + :param has_more: Indicates if the max return limit was hit but there are still more items + :type has_more: bool + :param value: The list of items + :type value: list of :class:`QueryHierarchyItem ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'has_more': {'key': 'hasMore', 'type': 'bool'}, + 'value': {'key': 'value', 'type': '[QueryHierarchyItem]'} + } + + def __init__(self, count=None, has_more=None, value=None): + super(QueryHierarchyItemsResult, self).__init__() + self.count = count + self.has_more = has_more + self.value = value + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ReportingWorkItemLink(Model): + """ReportingWorkItemLink. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param changed_operation: + :type changed_operation: object + :param comment: + :type comment: str + :param is_active: + :type is_active: bool + :param link_type: + :type link_type: str + :param rel: + :type rel: str + :param source_id: + :type source_id: int + :param target_id: + :type target_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'changed_operation': {'key': 'changedOperation', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'link_type': {'key': 'linkType', 'type': 'str'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'int'}, + 'target_id': {'key': 'targetId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, changed_operation=None, comment=None, is_active=None, link_type=None, rel=None, source_id=None, target_id=None): + super(ReportingWorkItemLink, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.changed_operation = changed_operation + self.comment = comment + self.is_active = is_active + self.link_type = link_type + self.rel = rel + self.source_id = source_id + self.target_id = target_id + + +class ReportingWorkItemRevisionsFilter(Model): + """ReportingWorkItemRevisionsFilter. + + :param fields: A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. + :type fields: list of str + :param include_deleted: Include deleted work item in the result. + :type include_deleted: bool + :param include_identity_ref: Return an identity reference instead of a string value for identity fields. + :type include_identity_ref: bool + :param include_latest_only: Include only the latest version of a work item, skipping over all previous revisions of the work item. + :type include_latest_only: bool + :param include_tag_ref: Include tag reference instead of string value for System.Tags field + :type include_tag_ref: bool + :param types: A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. + :type types: list of str + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[str]'}, + 'include_deleted': {'key': 'includeDeleted', 'type': 'bool'}, + 'include_identity_ref': {'key': 'includeIdentityRef', 'type': 'bool'}, + 'include_latest_only': {'key': 'includeLatestOnly', 'type': 'bool'}, + 'include_tag_ref': {'key': 'includeTagRef', 'type': 'bool'}, + 'types': {'key': 'types', 'type': '[str]'} + } + + def __init__(self, fields=None, include_deleted=None, include_identity_ref=None, include_latest_only=None, include_tag_ref=None, types=None): + super(ReportingWorkItemRevisionsFilter, self).__init__() + self.fields = fields + self.include_deleted = include_deleted + self.include_identity_ref = include_identity_ref + self.include_latest_only = include_latest_only + self.include_tag_ref = include_tag_ref + self.types = types + + +class StreamedBatch(Model): + """StreamedBatch. + + :param continuation_token: + :type continuation_token: str + :param is_last_batch: + :type is_last_batch: bool + :param next_link: + :type next_link: str + :param values: + :type values: list of object + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'is_last_batch': {'key': 'isLastBatch', 'type': 'bool'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[object]'} + } + + def __init__(self, continuation_token=None, is_last_batch=None, next_link=None, values=None): + super(StreamedBatch, self).__init__() + self.continuation_token = continuation_token + self.is_last_batch = is_last_batch + self.next_link = next_link + self.values = values + + +class TeamContext(Model): + """TeamContext. + + :param project: The team project Id or name. Ignored if ProjectId is set. + :type project: str + :param project_id: The Team Project ID. Required if Project is not set. + :type project_id: str + :param team: The Team Id or name. Ignored if TeamId is set. + :type team: str + :param team_id: The Team Id + :type team_id: str + """ + + _attribute_map = { + 'project': {'key': 'project', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'team': {'key': 'team', 'type': 'str'}, + 'team_id': {'key': 'teamId', 'type': 'str'} + } + + def __init__(self, project=None, project_id=None, team=None, team_id=None): + super(TeamContext, self).__init__() + self.project = project + self.project_id = project_id + self.team = team + self.team_id = team_id + + +class Wiql(Model): + """Wiql. + + :param query: The text of the WIQL query + :type query: str + """ + + _attribute_map = { + 'query': {'key': 'query', 'type': 'str'} + } + + def __init__(self, query=None): + super(Wiql, self).__init__() + self.query = query + + +class WorkArtifactLink(Model): + """WorkArtifactLink. + + :param artifact_type: Target artifact type. + :type artifact_type: str + :param link_type: Outbound link type. + :type link_type: str + :param tool_type: Target tool type. + :type tool_type: str + """ + + _attribute_map = { + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'link_type': {'key': 'linkType', 'type': 'str'}, + 'tool_type': {'key': 'toolType', 'type': 'str'} + } + + def __init__(self, artifact_type=None, link_type=None, tool_type=None): + super(WorkArtifactLink, self).__init__() + self.artifact_type = artifact_type + self.link_type = link_type + self.tool_type = tool_type + + +class WorkItemDeleteReference(Model): + """WorkItemDeleteReference. + + :param code: The HTTP status code for work item operation in a batch request. + :type code: int + :param deleted_by: The user who deleted the work item type. + :type deleted_by: str + :param deleted_date: The work item deletion date. + :type deleted_date: str + :param id: Work item ID. + :type id: int + :param message: The exception message for work item operation in a batch request. + :type message: str + :param name: Name or title of the work item. + :type name: str + :param project: Parent project of the deleted work item. + :type project: str + :param type: Type of work item. + :type type: str + :param url: REST API URL of the resource + :type url: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None): + super(WorkItemDeleteReference, self).__init__() + self.code = code + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.id = id + self.message = message + self.name = name + self.project = project + self.type = type + self.url = url + + +class WorkItemDeleteShallowReference(Model): + """WorkItemDeleteShallowReference. + + :param id: Work item ID. + :type id: int + :param url: REST API URL of the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemDeleteShallowReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemDeleteUpdate(Model): + """WorkItemDeleteUpdate. + + :param is_deleted: Sets a value indicating whether this work item is deleted. + :type is_deleted: bool + """ + + _attribute_map = { + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'} + } + + def __init__(self, is_deleted=None): + super(WorkItemDeleteUpdate, self).__init__() + self.is_deleted = is_deleted + + +class WorkItemFieldOperation(Model): + """WorkItemFieldOperation. + + :param name: Name of the operation. + :type name: str + :param reference_name: Reference name of the operation. + :type reference_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None): + super(WorkItemFieldOperation, self).__init__() + self.name = name + self.reference_name = reference_name + + +class WorkItemFieldReference(Model): + """WorkItemFieldReference. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(WorkItemFieldReference, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url + + +class WorkItemFieldUpdate(Model): + """WorkItemFieldUpdate. + + :param new_value: The new value of the field. + :type new_value: object + :param old_value: The old value of the field. + :type old_value: object + """ + + _attribute_map = { + 'new_value': {'key': 'newValue', 'type': 'object'}, + 'old_value': {'key': 'oldValue', 'type': 'object'} + } + + def __init__(self, new_value=None, old_value=None): + super(WorkItemFieldUpdate, self).__init__() + self.new_value = new_value + self.old_value = old_value + + +class WorkItemIcon(Model): + """WorkItemIcon. + + :param id: The identifier of the icon. + :type id: str + :param url: The REST URL of the resource. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemIcon, self).__init__() + self.id = id + self.url = url + + +class WorkItemLink(Model): + """WorkItemLink. + + :param rel: The type of link. + :type rel: str + :param source: The source work item. + :type source: :class:`WorkItemReference ` + :param target: The target work item. + :type target: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'rel': {'key': 'rel', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'WorkItemReference'}, + 'target': {'key': 'target', 'type': 'WorkItemReference'} + } + + def __init__(self, rel=None, source=None, target=None): + super(WorkItemLink, self).__init__() + self.rel = rel + self.source = source + self.target = target + + +class WorkItemNextStateOnTransition(Model): + """WorkItemNextStateOnTransition. + + :param error_code: Error code if there is no next state transition possible. + :type error_code: str + :param id: Work item ID. + :type id: int + :param message: Error message if there is no next state transition possible. + :type message: str + :param state_on_transition: Name of the next state on transition. + :type state_on_transition: str + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'state_on_transition': {'key': 'stateOnTransition', 'type': 'str'} + } + + def __init__(self, error_code=None, id=None, message=None, state_on_transition=None): + super(WorkItemNextStateOnTransition, self).__init__() + self.error_code = error_code + self.id = id + self.message = message + self.state_on_transition = state_on_transition + + +class WorkItemQueryClause(Model): + """WorkItemQueryClause. + + :param clauses: Child clauses if the current clause is a logical operator + :type clauses: list of :class:`WorkItemQueryClause ` + :param field: Field associated with condition + :type field: :class:`WorkItemFieldReference ` + :param field_value: Right side of the condition when a field to field comparison + :type field_value: :class:`WorkItemFieldReference ` + :param is_field_value: Determines if this is a field to field comparison + :type is_field_value: bool + :param logical_operator: Logical operator separating the condition clause + :type logical_operator: object + :param operator: The field operator + :type operator: :class:`WorkItemFieldOperation ` + :param value: Right side of the condition when a field to value comparison + :type value: str + """ + + _attribute_map = { + 'clauses': {'key': 'clauses', 'type': '[WorkItemQueryClause]'}, + 'field': {'key': 'field', 'type': 'WorkItemFieldReference'}, + 'field_value': {'key': 'fieldValue', 'type': 'WorkItemFieldReference'}, + 'is_field_value': {'key': 'isFieldValue', 'type': 'bool'}, + 'logical_operator': {'key': 'logicalOperator', 'type': 'object'}, + 'operator': {'key': 'operator', 'type': 'WorkItemFieldOperation'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, clauses=None, field=None, field_value=None, is_field_value=None, logical_operator=None, operator=None, value=None): + super(WorkItemQueryClause, self).__init__() + self.clauses = clauses + self.field = field + self.field_value = field_value + self.is_field_value = is_field_value + self.logical_operator = logical_operator + self.operator = operator + self.value = value + + +class WorkItemQueryResult(Model): + """WorkItemQueryResult. + + :param as_of: The date the query was run in the context of. + :type as_of: datetime + :param columns: The columns of the query. + :type columns: list of :class:`WorkItemFieldReference ` + :param query_result_type: The result type + :type query_result_type: object + :param query_type: The type of the query + :type query_type: object + :param sort_columns: The sort columns of the query. + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :param work_item_relations: The work item links returned by the query. + :type work_item_relations: list of :class:`WorkItemLink ` + :param work_items: The work items returned by the query. + :type work_items: list of :class:`WorkItemReference ` + """ + + _attribute_map = { + 'as_of': {'key': 'asOf', 'type': 'iso-8601'}, + 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, + 'query_result_type': {'key': 'queryResultType', 'type': 'object'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, + 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'}, + 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} + } + + def __init__(self, as_of=None, columns=None, query_result_type=None, query_type=None, sort_columns=None, work_item_relations=None, work_items=None): + super(WorkItemQueryResult, self).__init__() + self.as_of = as_of + self.columns = columns + self.query_result_type = query_result_type + self.query_type = query_type + self.sort_columns = sort_columns + self.work_item_relations = work_item_relations + self.work_items = work_items + + +class WorkItemQuerySortColumn(Model): + """WorkItemQuerySortColumn. + + :param descending: The direction to sort by. + :type descending: bool + :param field: A work item field. + :type field: :class:`WorkItemFieldReference ` + """ + + _attribute_map = { + 'descending': {'key': 'descending', 'type': 'bool'}, + 'field': {'key': 'field', 'type': 'WorkItemFieldReference'} + } + + def __init__(self, descending=None, field=None): + super(WorkItemQuerySortColumn, self).__init__() + self.descending = descending + self.field = field + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: Work item ID. + :type id: int + :param url: REST API URL of the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemRelation(Link): + """WorkItemRelation. + + :param attributes: Collection of link attributes. + :type attributes: dict + :param rel: Relation type. + :type rel: str + :param url: Link url. + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, attributes=None, rel=None, url=None): + super(WorkItemRelation, self).__init__(attributes=attributes, rel=rel, url=url) + + +class WorkItemRelationUpdates(Model): + """WorkItemRelationUpdates. + + :param added: List of newly added relations. + :type added: list of :class:`WorkItemRelation ` + :param removed: List of removed relations. + :type removed: list of :class:`WorkItemRelation ` + :param updated: List of updated relations. + :type updated: list of :class:`WorkItemRelation ` + """ + + _attribute_map = { + 'added': {'key': 'added', 'type': '[WorkItemRelation]'}, + 'removed': {'key': 'removed', 'type': '[WorkItemRelation]'}, + 'updated': {'key': 'updated', 'type': '[WorkItemRelation]'} + } + + def __init__(self, added=None, removed=None, updated=None): + super(WorkItemRelationUpdates, self).__init__() + self.added = added + self.removed = removed + self.updated = updated + + +class WorkItemStateColor(Model): + """WorkItemStateColor. + + :param category: Category of state + :type category: str + :param color: Color value + :type color: str + :param name: Work item type state name + :type name: str + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, category=None, color=None, name=None): + super(WorkItemStateColor, self).__init__() + self.category = category + self.color = color + self.name = name + + +class WorkItemStateTransition(Model): + """WorkItemStateTransition. + + :param actions: Gets a list of actions needed to transition to that state. + :type actions: list of str + :param to: Name of the next state. + :type to: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[str]'}, + 'to': {'key': 'to', 'type': 'str'} + } + + def __init__(self, actions=None, to=None): + super(WorkItemStateTransition, self).__init__() + self.actions = actions + self.to = to + + +class WorkItemTrackingResourceReference(Model): + """WorkItemTrackingResourceReference. + + :param url: + :type url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, url=None): + super(WorkItemTrackingResourceReference, self).__init__() + self.url = url + + +class WorkItemTypeColor(Model): + """WorkItemTypeColor. + + :param primary_color: Gets or sets the color of the primary. + :type primary_color: str + :param secondary_color: Gets or sets the color of the secondary. + :type secondary_color: str + :param work_item_type_name: The name of the work item type. + :type work_item_type_name: str + """ + + _attribute_map = { + 'primary_color': {'key': 'primaryColor', 'type': 'str'}, + 'secondary_color': {'key': 'secondaryColor', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, primary_color=None, secondary_color=None, work_item_type_name=None): + super(WorkItemTypeColor, self).__init__() + self.primary_color = primary_color + self.secondary_color = secondary_color + self.work_item_type_name = work_item_type_name + + +class WorkItemTypeColorAndIcon(Model): + """WorkItemTypeColorAndIcon. + + :param color: The color of the work item type in hex format. + :type color: str + :param icon: Tthe work item type icon. + :type icon: str + :param work_item_type_name: The name of the work item type. + :type work_item_type_name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, color=None, icon=None, work_item_type_name=None): + super(WorkItemTypeColorAndIcon, self).__init__() + self.color = color + self.icon = icon + self.work_item_type_name = work_item_type_name + + +class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): + """WorkItemTypeFieldInstanceBase. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + :param always_required: Indicates whether field value is always required. + :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. + :type help_text: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None): + super(WorkItemTypeFieldInstanceBase, self).__init__(name=name, reference_name=reference_name, url=url) + self.always_required = always_required + self.dependent_fields = dependent_fields + self.help_text = help_text + + +class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): + """WorkItemTypeFieldWithReferences. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + :param always_required: Indicates whether field value is always required. + :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. + :type help_text: str + :param allowed_values: The list of field allowed values. + :type allowed_values: list of object + :param default_value: Represents the default value of the field. + :type default_value: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): + super(WorkItemTypeFieldWithReferences, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) + self.allowed_values = allowed_values + self.default_value = default_value + + +class WorkItemTypeReference(WorkItemTrackingResourceReference): + """WorkItemTypeReference. + + :param url: + :type url: str + :param name: Name of the work item type. + :type name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, url=None, name=None): + super(WorkItemTypeReference, self).__init__(url=url) + self.name = name + + +class WorkItemTypeStateColors(Model): + """WorkItemTypeStateColors. + + :param state_colors: Work item type state colors + :type state_colors: list of :class:`WorkItemStateColor ` + :param work_item_type_name: Work item type name + :type work_item_type_name: str + """ + + _attribute_map = { + 'state_colors': {'key': 'stateColors', 'type': '[WorkItemStateColor]'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, state_colors=None, work_item_type_name=None): + super(WorkItemTypeStateColors, self).__init__() + self.state_colors = state_colors + self.work_item_type_name = work_item_type_name + + +class WorkItemTypeTemplate(Model): + """WorkItemTypeTemplate. + + :param template: XML template in string format. + :type template: str + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'str'} + } + + def __init__(self, template=None): + super(WorkItemTypeTemplate, self).__init__() + self.template = template + + +class WorkItemTypeTemplateUpdateModel(Model): + """WorkItemTypeTemplateUpdateModel. + + :param action_type: Describes the type of the action for the update request. + :type action_type: object + :param methodology: Methodology to which the template belongs, eg. Agile, Scrum, CMMI. + :type methodology: str + :param template: String representation of the work item type template. + :type template: str + :param template_type: The type of the template described in the request body. + :type template_type: object + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'object'}, + 'methodology': {'key': 'methodology', 'type': 'str'}, + 'template': {'key': 'template', 'type': 'str'}, + 'template_type': {'key': 'templateType', 'type': 'object'} + } + + def __init__(self, action_type=None, methodology=None, template=None, template_type=None): + super(WorkItemTypeTemplateUpdateModel, self).__init__() + self.action_type = action_type + self.methodology = methodology + self.template = template + self.template_type = template_type + + +class ReportingWorkItemLinksBatch(StreamedBatch): + """ReportingWorkItemLinksBatch. + + """ + + _attribute_map = { + } + + def __init__(self): + super(ReportingWorkItemLinksBatch, self).__init__() + + +class ReportingWorkItemRevisionsBatch(StreamedBatch): + """ReportingWorkItemRevisionsBatch. + + """ + + _attribute_map = { + } + + def __init__(self): + super(ReportingWorkItemRevisionsBatch, self).__init__() + + +class WorkItemDelete(WorkItemDeleteReference): + """WorkItemDelete. + + :param code: The HTTP status code for work item operation in a batch request. + :type code: int + :param deleted_by: The user who deleted the work item type. + :type deleted_by: str + :param deleted_date: The work item deletion date. + :type deleted_date: str + :param id: Work item ID. + :type id: int + :param message: The exception message for work item operation in a batch request. + :type message: str + :param name: Name or title of the work item. + :type name: str + :param project: Parent project of the deleted work item. + :type project: str + :param type: Type of work item. + :type type: str + :param url: REST API URL of the resource + :type url: str + :param resource: The work item object that was deleted. + :type resource: :class:`WorkItem ` + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'WorkItem'} + } + + def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None, resource=None): + super(WorkItemDelete, self).__init__(code=code, deleted_by=deleted_by, deleted_date=deleted_date, id=id, message=message, name=name, project=project, type=type, url=url) + self.resource = resource + + +class WorkItemTrackingResource(WorkItemTrackingResourceReference): + """WorkItemTrackingResource. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} + } + + def __init__(self, url=None, _links=None): + super(WorkItemTrackingResource, self).__init__(url=url) + self._links = _links + + +class WorkItemType(WorkItemTrackingResource): + """WorkItemType. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param color: The color. + :type color: str + :param description: The description of the work item type. + :type description: str + :param field_instances: The fields that exist on the work item type. + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :param fields: The fields that exist on the work item type. + :type fields: list of :class:`WorkItemTypeFieldInstance ` + :param icon: The icon of the work item type. + :type icon: :class:`WorkItemIcon ` + :param is_disabled: True if work item type is disabled + :type is_disabled: bool + :param name: Gets the name of the work item type. + :type name: str + :param reference_name: The reference name of the work item type. + :type reference_name: str + :param transitions: Gets the various state transition mappings in the work item type. + :type transitions: dict + :param xml_form: The XML form. + :type xml_form: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'field_instances': {'key': 'fieldInstances', 'type': '[WorkItemTypeFieldInstance]'}, + 'fields': {'key': 'fields', 'type': '[WorkItemTypeFieldInstance]'}, + 'icon': {'key': 'icon', 'type': 'WorkItemIcon'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'transitions': {'key': 'transitions', 'type': '{[WorkItemStateTransition]}'}, + 'xml_form': {'key': 'xmlForm', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, is_disabled=None, name=None, reference_name=None, transitions=None, xml_form=None): + super(WorkItemType, self).__init__(url=url, _links=_links) + self.color = color + self.description = description + self.field_instances = field_instances + self.fields = fields + self.icon = icon + self.is_disabled = is_disabled + self.name = name + self.reference_name = reference_name + self.transitions = transitions + self.xml_form = xml_form + + +class WorkItemTypeCategory(WorkItemTrackingResource): + """WorkItemTypeCategory. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param default_work_item_type: Gets or sets the default type of the work item. + :type default_work_item_type: :class:`WorkItemTypeReference ` + :param name: The name of the category. + :type name: str + :param reference_name: The reference name of the category. + :type reference_name: str + :param work_item_types: The work item types that belond to the category. + :type work_item_types: list of :class:`WorkItemTypeReference ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} + } + + def __init__(self, url=None, _links=None, default_work_item_type=None, name=None, reference_name=None, work_item_types=None): + super(WorkItemTypeCategory, self).__init__(url=url, _links=_links) + self.default_work_item_type = default_work_item_type + self.name = name + self.reference_name = reference_name + self.work_item_types = work_item_types + + +class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): + """WorkItemTypeFieldInstance. + + :param name: The name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + :param always_required: Indicates whether field value is always required. + :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. + :type help_text: str + :param allowed_values: The list of field allowed values. + :type allowed_values: list of str + :param default_value: Represents the default value of the field. + :type default_value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): + super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) + self.allowed_values = allowed_values + self.default_value = default_value + + +class WorkItemUpdate(WorkItemTrackingResource): + """WorkItemUpdate. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param fields: List of updates to fields. + :type fields: dict + :param id: ID of update. + :type id: int + :param relations: List of updates to relations. + :type relations: :class:`WorkItemRelationUpdates ` + :param rev: The revision number of work item update. + :type rev: int + :param revised_by: Identity for the work item update. + :type revised_by: :class:`IdentityReference ` + :param revised_date: The work item updates revision date. + :type revised_date: datetime + :param work_item_id: The work item ID. + :type work_item_id: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'fields': {'key': 'fields', 'type': '{WorkItemFieldUpdate}'}, + 'id': {'key': 'id', 'type': 'int'}, + 'relations': {'key': 'relations', 'type': 'WorkItemRelationUpdates'}, + 'rev': {'key': 'rev', 'type': 'int'}, + 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, + 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, + 'work_item_id': {'key': 'workItemId', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None, revised_by=None, revised_date=None, work_item_id=None): + super(WorkItemUpdate, self).__init__(url=url, _links=_links) + self.fields = fields + self.id = id + self.relations = relations + self.rev = rev + self.revised_by = revised_by + self.revised_date = revised_date + self.work_item_id = work_item_id + + +class FieldDependentRule(WorkItemTrackingResource): + """FieldDependentRule. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param dependent_fields: The dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'} + } + + def __init__(self, url=None, _links=None, dependent_fields=None): + super(FieldDependentRule, self).__init__(url=url, _links=_links) + self.dependent_fields = dependent_fields + + +class QueryHierarchyItem(WorkItemTrackingResource): + """QueryHierarchyItem. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param children: The child query items inside a query folder. + :type children: list of :class:`QueryHierarchyItem ` + :param clauses: The clauses for a flat query. + :type clauses: :class:`WorkItemQueryClause ` + :param columns: The columns of the query. + :type columns: list of :class:`WorkItemFieldReference ` + :param created_by: The identity who created the query item. + :type created_by: :class:`IdentityReference ` + :param created_date: When the query item was created. + :type created_date: datetime + :param filter_options: The link query mode. + :type filter_options: object + :param has_children: If this is a query folder, indicates if it contains any children. + :type has_children: bool + :param id: The id of the query item. + :type id: str + :param is_deleted: Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it. + :type is_deleted: bool + :param is_folder: Indicates if this is a query folder or a query. + :type is_folder: bool + :param is_invalid_syntax: Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path. + :type is_invalid_syntax: bool + :param is_public: Indicates if this query item is public or private. + :type is_public: bool + :param last_executed_by: The identity who last ran the query. + :type last_executed_by: :class:`IdentityReference ` + :param last_executed_date: When the query was last run. + :type last_executed_date: datetime + :param last_modified_by: The identity who last modified the query item. + :type last_modified_by: :class:`IdentityReference ` + :param last_modified_date: When the query item was last modified. + :type last_modified_date: datetime + :param link_clauses: The link query clause. + :type link_clauses: :class:`WorkItemQueryClause ` + :param name: The name of the query item. + :type name: str + :param path: The path of the query item. + :type path: str + :param query_recursion_option: The recursion option for use in a tree query. + :type query_recursion_option: object + :param query_type: The type of query. + :type query_type: object + :param sort_columns: The sort columns of the query. + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :param source_clauses: The source clauses in a tree or one-hop link query. + :type source_clauses: :class:`WorkItemQueryClause ` + :param target_clauses: The target clauses in a tree or one-hop link query. + :type target_clauses: :class:`WorkItemQueryClause ` + :param wiql: The WIQL text of the query + :type wiql: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'children': {'key': 'children', 'type': '[QueryHierarchyItem]'}, + 'clauses': {'key': 'clauses', 'type': 'WorkItemQueryClause'}, + 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityReference'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'filter_options': {'key': 'filterOptions', 'type': 'object'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_folder': {'key': 'isFolder', 'type': 'bool'}, + 'is_invalid_syntax': {'key': 'isInvalidSyntax', 'type': 'bool'}, + 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'last_executed_by': {'key': 'lastExecutedBy', 'type': 'IdentityReference'}, + 'last_executed_date': {'key': 'lastExecutedDate', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityReference'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'link_clauses': {'key': 'linkClauses', 'type': 'WorkItemQueryClause'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'query_recursion_option': {'key': 'queryRecursionOption', 'type': 'object'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, + 'source_clauses': {'key': 'sourceClauses', 'type': 'WorkItemQueryClause'}, + 'target_clauses': {'key': 'targetClauses', 'type': 'WorkItemQueryClause'}, + 'wiql': {'key': 'wiql', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_executed_by=None, last_executed_date=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_recursion_option=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): + super(QueryHierarchyItem, self).__init__(url=url, _links=_links) + self.children = children + self.clauses = clauses + self.columns = columns + self.created_by = created_by + self.created_date = created_date + self.filter_options = filter_options + self.has_children = has_children + self.id = id + self.is_deleted = is_deleted + self.is_folder = is_folder + self.is_invalid_syntax = is_invalid_syntax + self.is_public = is_public + self.last_executed_by = last_executed_by + self.last_executed_date = last_executed_date + self.last_modified_by = last_modified_by + self.last_modified_date = last_modified_date + self.link_clauses = link_clauses + self.name = name + self.path = path + self.query_recursion_option = query_recursion_option + self.query_type = query_type + self.sort_columns = sort_columns + self.source_clauses = source_clauses + self.target_clauses = target_clauses + self.wiql = wiql + + +class WorkItem(WorkItemTrackingResource): + """WorkItem. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param fields: Map of field and values for the work item. + :type fields: dict + :param id: The work item ID. + :type id: int + :param relations: Relations of the work item. + :type relations: list of :class:`WorkItemRelation ` + :param rev: Revision number of the work item. + :type rev: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'fields': {'key': 'fields', 'type': '{object}'}, + 'id': {'key': 'id', 'type': 'int'}, + 'relations': {'key': 'relations', 'type': '[WorkItemRelation]'}, + 'rev': {'key': 'rev', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None): + super(WorkItem, self).__init__(url=url, _links=_links) + self.fields = fields + self.id = id + self.relations = relations + self.rev = rev + + +class WorkItemClassificationNode(WorkItemTrackingResource): + """WorkItemClassificationNode. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. + :type attributes: dict + :param children: List of child nodes fetched. + :type children: list of :class:`WorkItemClassificationNode ` + :param has_children: Flag that indicates if the classification node has any child nodes. + :type has_children: bool + :param id: Integer ID of the classification node. + :type id: int + :param identifier: GUID ID of the classification node. + :type identifier: str + :param name: Name of the classification node. + :type name: str + :param structure_type: Node structure type. + :type structure_type: object + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'children': {'key': 'children', 'type': '[WorkItemClassificationNode]'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'structure_type': {'key': 'structureType', 'type': 'object'} + } + + def __init__(self, url=None, _links=None, attributes=None, children=None, has_children=None, id=None, identifier=None, name=None, structure_type=None): + super(WorkItemClassificationNode, self).__init__(url=url, _links=_links) + self.attributes = attributes + self.children = children + self.has_children = has_children + self.id = id + self.identifier = identifier + self.name = name + self.structure_type = structure_type + + +class WorkItemComment(WorkItemTrackingResource): + """WorkItemComment. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param revised_by: Identity of user who added the comment. + :type revised_by: :class:`IdentityReference ` + :param revised_date: The date of comment. + :type revised_date: datetime + :param revision: The work item revision number. + :type revision: int + :param text: The text of the comment. + :type text: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, + 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, revised_by=None, revised_date=None, revision=None, text=None): + super(WorkItemComment, self).__init__(url=url, _links=_links) + self.revised_by = revised_by + self.revised_date = revised_date + self.revision = revision + self.text = text + + +class WorkItemComments(WorkItemTrackingResource): + """WorkItemComments. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comments: Comments collection. + :type comments: list of :class:`WorkItemComment ` + :param count: The count of comments. + :type count: int + :param from_revision_count: Count of comments from the revision. + :type from_revision_count: int + :param total_count: Total count of comments. + :type total_count: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[WorkItemComment]'}, + 'count': {'key': 'count', 'type': 'int'}, + 'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'}, + 'total_count': {'key': 'totalCount', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, comments=None, count=None, from_revision_count=None, total_count=None): + super(WorkItemComments, self).__init__(url=url, _links=_links) + self.comments = comments + self.count = count + self.from_revision_count = from_revision_count + self.total_count = total_count + + +class WorkItemField(WorkItemTrackingResource): + """WorkItemField. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param description: The description of the field. + :type description: str + :param is_identity: Indicates whether this field is an identity field. + :type is_identity: bool + :param is_picklist: Indicates whether this instance is picklist. + :type is_picklist: bool + :param is_picklist_suggested: Indicates whether this instance is a suggested picklist . + :type is_picklist_suggested: bool + :param name: The name of the field. + :type name: str + :param read_only: Indicates whether the field is [read only]. + :type read_only: bool + :param reference_name: The reference name of the field. + :type reference_name: str + :param supported_operations: The supported operations on this field. + :type supported_operations: list of :class:`WorkItemFieldOperation ` + :param type: The type of the field. + :type type: object + :param usage: The usage of the field. + :type usage: object + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'is_picklist': {'key': 'isPicklist', 'type': 'bool'}, + 'is_picklist_suggested': {'key': 'isPicklistSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'supported_operations': {'key': 'supportedOperations', 'type': '[WorkItemFieldOperation]'}, + 'type': {'key': 'type', 'type': 'object'}, + 'usage': {'key': 'usage', 'type': 'object'} + } + + def __init__(self, url=None, _links=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, name=None, read_only=None, reference_name=None, supported_operations=None, type=None, usage=None): + super(WorkItemField, self).__init__(url=url, _links=_links) + self.description = description + self.is_identity = is_identity + self.is_picklist = is_picklist + self.is_picklist_suggested = is_picklist_suggested + self.name = name + self.read_only = read_only + self.reference_name = reference_name + self.supported_operations = supported_operations + self.type = type + self.usage = usage + + +class WorkItemHistory(WorkItemTrackingResource): + """WorkItemHistory. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param rev: + :type rev: int + :param revised_by: + :type revised_by: :class:`IdentityReference ` + :param revised_date: + :type revised_date: datetime + :param value: + :type value: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'rev': {'key': 'rev', 'type': 'int'}, + 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, + 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, rev=None, revised_by=None, revised_date=None, value=None): + super(WorkItemHistory, self).__init__(url=url, _links=_links) + self.rev = rev + self.revised_by = revised_by + self.revised_date = revised_date + self.value = value + + +class WorkItemTemplateReference(WorkItemTrackingResource): + """WorkItemTemplateReference. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param description: The description of the work item template. + :type description: str + :param id: The identifier of the work item template. + :type id: str + :param name: The name of the work item template. + :type name: str + :param work_item_type_name: The name of the work item type. + :type work_item_type_name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None): + super(WorkItemTemplateReference, self).__init__(url=url, _links=_links) + self.description = description + self.id = id + self.name = name + self.work_item_type_name = work_item_type_name + + +class WorkItemTrackingReference(WorkItemTrackingResource): + """WorkItemTrackingReference. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param name: The name. + :type name: str + :param reference_name: The reference name. + :type reference_name: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, url=None, _links=None, name=None, reference_name=None): + super(WorkItemTrackingReference, self).__init__(url=url, _links=_links) + self.name = name + self.reference_name = reference_name + + +class WorkItemRelationType(WorkItemTrackingReference): + """WorkItemRelationType. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param name: The name. + :type name: str + :param reference_name: The reference name. + :type reference_name: str + :param attributes: The collection of relation type attributes. + :type attributes: dict + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': '{object}'} + } + + def __init__(self, url=None, _links=None, name=None, reference_name=None, attributes=None): + super(WorkItemRelationType, self).__init__(url=url, _links=_links, name=name, reference_name=reference_name) + self.attributes = attributes + + +class WorkItemTemplate(WorkItemTemplateReference): + """WorkItemTemplate. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param description: The description of the work item template. + :type description: str + :param id: The identifier of the work item template. + :type id: str + :param name: The name of the work item template. + :type name: str + :param work_item_type_name: The name of the work item type. + :type work_item_type_name: str + :param fields: Mapping of field and its templated value. + :type fields: dict + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '{str}'} + } + + def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None, fields=None): + super(WorkItemTemplate, self).__init__(url=url, _links=_links, description=description, id=id, name=name, work_item_type_name=work_item_type_name) + self.fields = fields + + +__all__ = [ + 'AccountMyWorkResult', + 'AccountRecentActivityWorkItemModel', + 'AccountRecentMentionWorkItemModel', + 'AccountWorkWorkItemModel', + 'ArtifactUriQuery', + 'ArtifactUriQueryResult', + 'AttachmentReference', + 'FieldsToEvaluate', + 'GraphSubjectBase', + 'IdentityRef', + 'IdentityReference', + 'JsonPatchOperation', + 'Link', + 'ProjectWorkItemStateColors', + 'ProvisioningResult', + 'QueryHierarchyItemsResult', + 'ReferenceLinks', + 'ReportingWorkItemLink', + 'ReportingWorkItemRevisionsFilter', + 'StreamedBatch', + 'TeamContext', + 'Wiql', + 'WorkArtifactLink', + 'WorkItemDeleteReference', + 'WorkItemDeleteShallowReference', + 'WorkItemDeleteUpdate', + 'WorkItemFieldOperation', + 'WorkItemFieldReference', + 'WorkItemFieldUpdate', + 'WorkItemIcon', + 'WorkItemLink', + 'WorkItemNextStateOnTransition', + 'WorkItemQueryClause', + 'WorkItemQueryResult', + 'WorkItemQuerySortColumn', + 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemRelationUpdates', + 'WorkItemStateColor', + 'WorkItemStateTransition', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeColor', + 'WorkItemTypeColorAndIcon', + 'WorkItemTypeFieldInstanceBase', + 'WorkItemTypeFieldWithReferences', + 'WorkItemTypeReference', + 'WorkItemTypeStateColors', + 'WorkItemTypeTemplate', + 'WorkItemTypeTemplateUpdateModel', + 'ReportingWorkItemLinksBatch', + 'ReportingWorkItemRevisionsBatch', + 'WorkItemDelete', + 'WorkItemTrackingResource', + 'WorkItemType', + 'WorkItemTypeCategory', + 'WorkItemTypeFieldInstance', + 'WorkItemUpdate', + 'FieldDependentRule', + 'QueryHierarchyItem', + 'WorkItem', + 'WorkItemClassificationNode', + 'WorkItemComment', + 'WorkItemComments', + 'WorkItemField', + 'WorkItemHistory', + 'WorkItemTemplateReference', + 'WorkItemTrackingReference', + 'WorkItemRelationType', + 'WorkItemTemplate', +] diff --git a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py similarity index 99% rename from vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py rename to azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py index ca90f6b5..d8e1d692 100644 --- a/vsts/vsts/work_item_tracking/v4_1/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingClient(VssClient): +class WorkItemTrackingClient(Client): """WorkItemTracking :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process/__init__.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process/__init__.py new file mode 100644 index 00000000..218f4d3f --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process/__init__.py @@ -0,0 +1,34 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Control', + 'CreateProcessModel', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'Page', + 'ProcessModel', + 'ProcessProperties', + 'ProjectReference', + 'RuleActionModel', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', +] diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py new file mode 100644 index 00000000..e24c08cf --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py @@ -0,0 +1,791 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class CreateProcessModel(Model): + """CreateProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param parent_process_type_id: The ID of the parent process + :type parent_process_type_id: str + :param reference_name: Reference name of the process + :type reference_name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): + super(CreateProcessModel, self).__init__() + self.description = description + self.name = name + self.parent_process_type_id = parent_process_type_id + self.reference_name = reference_name + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param is_identity: + :type is_identity: bool + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.is_identity = is_identity + self.name = name + self.type = type + self.url = url + + +class FieldRuleModel(Model): + """FieldRuleModel. + + :param actions: + :type actions: list of :class:`RuleActionModel ` + :param conditions: + :type conditions: list of :class:`RuleConditionModel ` + :param friendly_name: + :type friendly_name: str + :param id: + :type id: str + :param is_disabled: + :type is_disabled: bool + :param is_system: + :type is_system: bool + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_system': {'key': 'isSystem', 'type': 'bool'} + } + + def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): + super(FieldRuleModel, self).__init__() + self.actions = actions + self.conditions = conditions + self.friendly_name = friendly_name + self.id = id + self.is_disabled = is_disabled + self.is_system = is_system + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class ProcessModel(Model): + """ProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param projects: Projects in this process + :type projects: list of :class:`ProjectReference ` + :param properties: Properties of the process + :type properties: :class:`ProcessProperties ` + :param reference_name: Reference name of the process + :type reference_name: str + :param type_id: The ID of the process + :type type_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): + super(ProcessModel, self).__init__() + self.description = description + self.name = name + self.projects = projects + self.properties = properties + self.reference_name = reference_name + self.type_id = type_id + + +class ProcessProperties(Model): + """ProcessProperties. + + :param class_: Class of the process + :type class_: object + :param is_default: Is the process default process + :type is_default: bool + :param is_enabled: Is the process enabled + :type is_enabled: bool + :param parent_process_type_id: ID of the parent process + :type parent_process_type_id: str + :param version: Version of the process + :type version: str + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'object'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): + super(ProcessProperties, self).__init__() + self.class_ = class_ + self.is_default = is_default + self.is_enabled = is_enabled + self.parent_process_type_id = parent_process_type_id + self.version = version + + +class ProjectReference(Model): + """ProjectReference. + + :param description: Description of the project + :type description: str + :param id: The ID of the project + :type id: str + :param name: Name of the project + :type name: str + :param url: Url of the project + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, url=None): + super(ProjectReference, self).__init__() + self.description = description + self.id = id + self.name = name + self.url = url + + +class RuleActionModel(Model): + """RuleActionModel. + + :param action_type: + :type action_type: str + :param target_field: + :type target_field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleActionModel, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value + + +class RuleConditionModel(Model): + """RuleConditionModel. + + :param condition_type: + :type condition_type: str + :param field: + :type field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleConditionModel, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class UpdateProcessModel(Model): + """UpdateProcessModel. + + :param description: + :type description: str + :param is_default: + :type is_default: bool + :param is_enabled: + :type is_enabled: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, is_default=None, is_enabled=None, name=None): + super(UpdateProcessModel, self).__init__() + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehavior(Model): + """WorkItemBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param description: + :type description: str + :param fields: + :type fields: list of :class:`WorkItemBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): + super(WorkItemBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + self.url = url + + +class WorkItemBehaviorField(Model): + """WorkItemBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, url=None): + super(WorkItemBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.url = url + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +__all__ = [ + 'Control', + 'CreateProcessModel', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'Page', + 'ProcessModel', + 'ProcessProperties', + 'ProjectReference', + 'RuleActionModel', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', +] diff --git a/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py similarity index 99% rename from vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py rename to azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py index c82f3ec0..414ec295 100644 --- a/vsts/vsts/work_item_tracking_process/v4_1/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingClient(VssClient): +class WorkItemTrackingClient(Client): """WorkItemTracking :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py new file mode 100644 index 00000000..0713195e --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py new file mode 100644 index 00000000..99a429fb --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py @@ -0,0 +1,795 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorCreateModel(Model): + """BehaviorCreateModel. + + :param color: Color + :type color: str + :param inherits: Parent behavior id + :type inherits: str + :param name: Name of the behavior + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, inherits=None, name=None): + super(BehaviorCreateModel, self).__init__() + self.color = color + self.inherits = inherits + self.name = name + + +class BehaviorModel(Model): + """BehaviorModel. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) + :type abstract: bool + :param color: Color + :type color: str + :param description: Description + :type description: str + :param id: Behavior Id + :type id: str + :param inherits: Parent behavior reference + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: Behavior Name + :type name: str + :param overridden: Is the behavior overrides a behavior from system process + :type overridden: bool + :param rank: Rank + :type rank: int + :param url: Url of the behavior + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): + super(BehaviorModel, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.id = id + self.inherits = inherits + self.name = name + self.overridden = overridden + self.rank = rank + self.url = url + + +class BehaviorReplaceModel(Model): + """BehaviorReplaceModel. + + :param color: Color + :type color: str + :param name: Behavior Name + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(BehaviorReplaceModel, self).__init__() + self.color = color + self.name = name + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: Description about field + :type description: str + :param id: ID of the field + :type id: str + :param name: Name of the field + :type name: str + :param pick_list: Reference to picklist in this field + :type pick_list: :class:`PickListMetadataModel ` + :param type: Type of field + :type type: object + :param url: Url to the field + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.name = name + self.pick_list = pick_list + self.type = type + self.url = url + + +class FieldUpdate(Model): + """FieldUpdate. + + :param description: + :type description: str + :param id: + :type id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, description=None, id=None): + super(FieldUpdate, self).__init__() + self.description = description + self.id = id + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class PickListItemModel(Model): + """PickListItemModel. + + :param id: + :type id: str + :param value: + :type value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, id=None, value=None): + super(PickListItemModel, self).__init__() + self.id = id + self.value = value + + +class PickListMetadataModel(Model): + """PickListMetadataModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadataModel, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url + + +class PickListModel(PickListMetadataModel): + """PickListModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + :param items: A list of PicklistItemModel + :type items: list of :class:`PickListItemModel ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[PickListItemModel]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: The ID of the reference behavior + :type id: str + :param url: The url of the reference behavior + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: Color of the state + :type color: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: Color of the state + :type color: str + :param hidden: Is the state hidden + :type hidden: bool + :param id: The ID of the State + :type id: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + :param url: Url of the state + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeFieldModel(Model): + """WorkItemTypeFieldModel. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: Behaviors of the work item type + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: Class of the work item type + :type class_: object + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param id: The ID of the work item type + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: Is work item type disabled + :type is_disabled: bool + :param layout: Layout of the work item type + :type layout: :class:`FormLayout ` + :param name: Name of the work item type + :type name: str + :param states: States of the work item type + :type states: list of :class:`WorkItemStateResultModel ` + :param url: Url of the work item type + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +class WorkItemTypeUpdateModel(Model): + """WorkItemTypeUpdateModel. + + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param is_disabled: Is the workitem type to be disabled + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(WorkItemTypeUpdateModel, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled + + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py similarity index 99% rename from vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py rename to azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py index 470933fe..9957bd42 100644 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/work_item_tracking_process_definitions_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingClient(VssClient): +class WorkItemTrackingClient(Client): """WorkItemTracking :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/__init__.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/__init__.py new file mode 100644 index 00000000..331bd213 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AdminBehavior', + 'AdminBehaviorField', + 'CheckTemplateExistenceResult', + 'ProcessImportResult', + 'ProcessPromoteStatus', + 'ValidationIssue', +] diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py new file mode 100644 index 00000000..54c46fb2 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py @@ -0,0 +1,223 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AdminBehavior(Model): + """AdminBehavior. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type). + :type abstract: bool + :param color: The color associated with the behavior. + :type color: str + :param custom: Indicates if the behavior is custom. + :type custom: bool + :param description: The description of the behavior. + :type description: str + :param fields: List of behavior fields. + :type fields: list of :class:`AdminBehaviorField ` + :param id: Behavior ID. + :type id: str + :param inherits: Parent behavior reference. + :type inherits: str + :param name: The behavior name. + :type name: str + :param overriden: Is the behavior overrides a behavior from system process. + :type overriden: bool + :param rank: The rank. + :type rank: int + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'custom': {'key': 'custom', 'type': 'bool'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[AdminBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, abstract=None, color=None, custom=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None): + super(AdminBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.custom = custom + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + + +class AdminBehaviorField(Model): + """AdminBehaviorField. + + :param behavior_field_id: The behavior field identifier. + :type behavior_field_id: str + :param id: The behavior ID. + :type id: str + :param name: The behavior name. + :type name: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, name=None): + super(AdminBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.name = name + + +class CheckTemplateExistenceResult(Model): + """CheckTemplateExistenceResult. + + :param does_template_exist: Indicates whether a template exists. + :type does_template_exist: bool + :param existing_template_name: The name of the existing template. + :type existing_template_name: str + :param existing_template_type_id: The existing template type identifier. + :type existing_template_type_id: str + :param requested_template_name: The name of the requested template. + :type requested_template_name: str + """ + + _attribute_map = { + 'does_template_exist': {'key': 'doesTemplateExist', 'type': 'bool'}, + 'existing_template_name': {'key': 'existingTemplateName', 'type': 'str'}, + 'existing_template_type_id': {'key': 'existingTemplateTypeId', 'type': 'str'}, + 'requested_template_name': {'key': 'requestedTemplateName', 'type': 'str'} + } + + def __init__(self, does_template_exist=None, existing_template_name=None, existing_template_type_id=None, requested_template_name=None): + super(CheckTemplateExistenceResult, self).__init__() + self.does_template_exist = does_template_exist + self.existing_template_name = existing_template_name + self.existing_template_type_id = existing_template_type_id + self.requested_template_name = requested_template_name + + +class ProcessImportResult(Model): + """ProcessImportResult. + + :param help_url: Help URL. + :type help_url: str + :param id: ID of the import operation. + :type id: str + :param is_new: Whether this imported process is new. + :type is_new: bool + :param promote_job_id: The promote job identifier. + :type promote_job_id: str + :param validation_results: The list of validation results. + :type validation_results: list of :class:`ValidationIssue ` + """ + + _attribute_map = { + 'help_url': {'key': 'helpUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_new': {'key': 'isNew', 'type': 'bool'}, + 'promote_job_id': {'key': 'promoteJobId', 'type': 'str'}, + 'validation_results': {'key': 'validationResults', 'type': '[ValidationIssue]'} + } + + def __init__(self, help_url=None, id=None, is_new=None, promote_job_id=None, validation_results=None): + super(ProcessImportResult, self).__init__() + self.help_url = help_url + self.id = id + self.is_new = is_new + self.promote_job_id = promote_job_id + self.validation_results = validation_results + + +class ProcessPromoteStatus(Model): + """ProcessPromoteStatus. + + :param complete: Number of projects for which promote is complete. + :type complete: int + :param id: ID of the promote operation. + :type id: str + :param message: The error message assoicated with the promote operation. The string will be empty if there are no errors. + :type message: str + :param pending: Number of projects for which promote is pending. + :type pending: int + :param remaining_retries: The remaining retries. + :type remaining_retries: int + :param successful: True if promote finished all the projects successfully. False if still inprogress or any project promote failed. + :type successful: bool + """ + + _attribute_map = { + 'complete': {'key': 'complete', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pending': {'key': 'pending', 'type': 'int'}, + 'remaining_retries': {'key': 'remainingRetries', 'type': 'int'}, + 'successful': {'key': 'successful', 'type': 'bool'} + } + + def __init__(self, complete=None, id=None, message=None, pending=None, remaining_retries=None, successful=None): + super(ProcessPromoteStatus, self).__init__() + self.complete = complete + self.id = id + self.message = message + self.pending = pending + self.remaining_retries = remaining_retries + self.successful = successful + + +class ValidationIssue(Model): + """ValidationIssue. + + :param description: + :type description: str + :param file: + :type file: str + :param help_link: + :type help_link: str + :param issue_type: + :type issue_type: object + :param line: + :type line: int + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'file': {'key': 'file', 'type': 'str'}, + 'help_link': {'key': 'helpLink', 'type': 'str'}, + 'issue_type': {'key': 'issueType', 'type': 'object'}, + 'line': {'key': 'line', 'type': 'int'} + } + + def __init__(self, description=None, file=None, help_link=None, issue_type=None, line=None): + super(ValidationIssue, self).__init__() + self.description = description + self.file = file + self.help_link = help_link + self.issue_type = issue_type + self.line = line + + +__all__ = [ + 'AdminBehavior', + 'AdminBehaviorField', + 'CheckTemplateExistenceResult', + 'ProcessImportResult', + 'ProcessPromoteStatus', + 'ValidationIssue', +] diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py similarity index 98% rename from vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py rename to azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py index 583c9253..54fbe9b2 100644 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/work_item_tracking_process_template_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from ...vss_client import VssClient +from ...client import Client from . import models -class WorkItemTrackingProcessTemplateClient(VssClient): +class WorkItemTrackingProcessTemplateClient(Client): """WorkItemTrackingProcessTemplate :param str base_url: Service URL :param Authentication creds: Authenticated credentials. diff --git a/vsts/vsts/version.py b/azure-devops/azure/devops/version.py similarity index 94% rename from vsts/vsts/version.py rename to azure-devops/azure/devops/version.py index 7393b0d1..9bfa0e66 100644 --- a/vsts/vsts/version.py +++ b/azure-devops/azure/devops/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.26" +VERSION = "4.0.0" diff --git a/vsts/setup.py b/azure-devops/setup.py similarity index 90% rename from vsts/setup.py rename to azure-devops/setup.py index 6105cda9..99608914 100644 --- a/vsts/setup.py +++ b/azure-devops/setup.py @@ -5,8 +5,8 @@ from setuptools import setup, find_packages -NAME = "vsts" -VERSION = "0.1.26" +NAME = "azure-devops" +VERSION = "4.0.0" # To install the library, run the following # @@ -35,11 +35,11 @@ name=NAME, version=VERSION, license='MIT', - description="Python wrapper around the VSTS APIs", + description="Python wrapper around the Azure DevOps 4.x APIs", author="Microsoft Corporation", author_email="vstscli@microsoft.com", url="https://github.com/Microsoft/vsts-python-api", - keywords=["Microsoft", "VSTS", "Team Services", "SDK", "AzureTfs"], + keywords=["Microsoft", "VSTS", "Team Services", "SDK", "AzureTfs", "AzureDevOps", "DevOps"], install_requires=REQUIRES, classifiers=CLASSIFIERS, packages=find_packages(), diff --git a/scripts/dev_setup.py b/scripts/dev_setup.py index 89ed38f3..0784d2d4 100644 --- a/scripts/dev_setup.py +++ b/scripts/dev_setup.py @@ -10,6 +10,8 @@ import os from subprocess import check_call, CalledProcessError +from azure.devops.client import * + def exec_command(command): try: @@ -34,7 +36,7 @@ def exec_command(command): exec_command('pip install -r requirements.txt') # install dev packages -exec_command('pip install -e vsts') +exec_command('pip install -e azure-devops') # install packaging requirements if os.path.isfile('./scripts/packaging_requirements.txt'): diff --git a/vsts/vsts/accounts/v4_0/models/account_create_info_internal.py b/vsts/vsts/accounts/v4_0/models/account_create_info_internal.py deleted file mode 100644 index 00510434..00000000 --- a/vsts/vsts/accounts/v4_0/models/account_create_info_internal.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountCreateInfoInternal(Model): - """AccountCreateInfoInternal. - - :param account_name: - :type account_name: str - :param creator: - :type creator: str - :param organization: - :type organization: str - :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` - :param properties: - :type properties: :class:`object ` - :param service_definitions: - :type service_definitions: list of { key: str; value: str } - """ - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'creator': {'key': 'creator', 'type': 'str'}, - 'organization': {'key': 'organization', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'} - } - - def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None): - super(AccountCreateInfoInternal, self).__init__() - self.account_name = account_name - self.creator = creator - self.organization = organization - self.preferences = preferences - self.properties = properties - self.service_definitions = service_definitions diff --git a/vsts/vsts/accounts/v4_0/models/account_preferences_internal.py b/vsts/vsts/accounts/v4_0/models/account_preferences_internal.py deleted file mode 100644 index 506c60aa..00000000 --- a/vsts/vsts/accounts/v4_0/models/account_preferences_internal.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountPreferencesInternal(Model): - """AccountPreferencesInternal. - - :param culture: - :type culture: object - :param language: - :type language: object - :param time_zone: - :type time_zone: object - """ - - _attribute_map = { - 'culture': {'key': 'culture', 'type': 'object'}, - 'language': {'key': 'language', 'type': 'object'}, - 'time_zone': {'key': 'timeZone', 'type': 'object'} - } - - def __init__(self, culture=None, language=None, time_zone=None): - super(AccountPreferencesInternal, self).__init__() - self.culture = culture - self.language = language - self.time_zone = time_zone diff --git a/vsts/vsts/accounts/v4_1/models/account_create_info_internal.py b/vsts/vsts/accounts/v4_1/models/account_create_info_internal.py deleted file mode 100644 index f3f0e219..00000000 --- a/vsts/vsts/accounts/v4_1/models/account_create_info_internal.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountCreateInfoInternal(Model): - """AccountCreateInfoInternal. - - :param account_name: - :type account_name: str - :param creator: - :type creator: str - :param organization: - :type organization: str - :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` - :param properties: - :type properties: :class:`object ` - :param service_definitions: - :type service_definitions: list of { key: str; value: str } - """ - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'creator': {'key': 'creator', 'type': 'str'}, - 'organization': {'key': 'organization', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'} - } - - def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None): - super(AccountCreateInfoInternal, self).__init__() - self.account_name = account_name - self.creator = creator - self.organization = organization - self.preferences = preferences - self.properties = properties - self.service_definitions = service_definitions diff --git a/vsts/vsts/accounts/v4_1/models/account_preferences_internal.py b/vsts/vsts/accounts/v4_1/models/account_preferences_internal.py deleted file mode 100644 index 506c60aa..00000000 --- a/vsts/vsts/accounts/v4_1/models/account_preferences_internal.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountPreferencesInternal(Model): - """AccountPreferencesInternal. - - :param culture: - :type culture: object - :param language: - :type language: object - :param time_zone: - :type time_zone: object - """ - - _attribute_map = { - 'culture': {'key': 'culture', 'type': 'object'}, - 'language': {'key': 'language', 'type': 'object'}, - 'time_zone': {'key': 'timeZone', 'type': 'object'} - } - - def __init__(self, culture=None, language=None, time_zone=None): - super(AccountPreferencesInternal, self).__init__() - self.culture = culture - self.language = language - self.time_zone = time_zone diff --git a/vsts/vsts/build/v4_0/__init__.py b/vsts/vsts/build/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/build/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/build/v4_0/models/__init__.py b/vsts/vsts/build/v4_0/models/__init__.py deleted file mode 100644 index a8f5186e..00000000 --- a/vsts/vsts/build/v4_0/models/__init__.py +++ /dev/null @@ -1,119 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .agent_pool_queue import AgentPoolQueue -from .artifact_resource import ArtifactResource -from .build import Build -from .build_artifact import BuildArtifact -from .build_badge import BuildBadge -from .build_controller import BuildController -from .build_definition import BuildDefinition -from .build_definition3_2 import BuildDefinition3_2 -from .build_definition_reference import BuildDefinitionReference -from .build_definition_revision import BuildDefinitionRevision -from .build_definition_step import BuildDefinitionStep -from .build_definition_template import BuildDefinitionTemplate -from .build_definition_template3_2 import BuildDefinitionTemplate3_2 -from .build_definition_variable import BuildDefinitionVariable -from .build_log import BuildLog -from .build_log_reference import BuildLogReference -from .build_metric import BuildMetric -from .build_option import BuildOption -from .build_option_definition import BuildOptionDefinition -from .build_option_definition_reference import BuildOptionDefinitionReference -from .build_option_group_definition import BuildOptionGroupDefinition -from .build_option_input_definition import BuildOptionInputDefinition -from .build_report_metadata import BuildReportMetadata -from .build_repository import BuildRepository -from .build_request_validation_result import BuildRequestValidationResult -from .build_resource_usage import BuildResourceUsage -from .build_settings import BuildSettings -from .change import Change -from .data_source_binding_base import DataSourceBindingBase -from .definition_reference import DefinitionReference -from .deployment import Deployment -from .folder import Folder -from .identity_ref import IdentityRef -from .issue import Issue -from .json_patch_operation import JsonPatchOperation -from .process_parameters import ProcessParameters -from .reference_links import ReferenceLinks -from .resource_ref import ResourceRef -from .retention_policy import RetentionPolicy -from .task_agent_pool_reference import TaskAgentPoolReference -from .task_definition_reference import TaskDefinitionReference -from .task_input_definition_base import TaskInputDefinitionBase -from .task_input_validation import TaskInputValidation -from .task_orchestration_plan_reference import TaskOrchestrationPlanReference -from .task_reference import TaskReference -from .task_source_definition_base import TaskSourceDefinitionBase -from .team_project_reference import TeamProjectReference -from .timeline import Timeline -from .timeline_record import TimelineRecord -from .timeline_reference import TimelineReference -from .variable_group import VariableGroup -from .variable_group_reference import VariableGroupReference -from .web_api_connected_service_ref import WebApiConnectedServiceRef -from .xaml_build_controller_reference import XamlBuildControllerReference - -__all__ = [ - 'AgentPoolQueue', - 'ArtifactResource', - 'Build', - 'BuildArtifact', - 'BuildBadge', - 'BuildController', - 'BuildDefinition', - 'BuildDefinition3_2', - 'BuildDefinitionReference', - 'BuildDefinitionRevision', - 'BuildDefinitionStep', - 'BuildDefinitionTemplate', - 'BuildDefinitionTemplate3_2', - 'BuildDefinitionVariable', - 'BuildLog', - 'BuildLogReference', - 'BuildMetric', - 'BuildOption', - 'BuildOptionDefinition', - 'BuildOptionDefinitionReference', - 'BuildOptionGroupDefinition', - 'BuildOptionInputDefinition', - 'BuildReportMetadata', - 'BuildRepository', - 'BuildRequestValidationResult', - 'BuildResourceUsage', - 'BuildSettings', - 'Change', - 'DataSourceBindingBase', - 'DefinitionReference', - 'Deployment', - 'Folder', - 'IdentityRef', - 'Issue', - 'JsonPatchOperation', - 'ProcessParameters', - 'ReferenceLinks', - 'ResourceRef', - 'RetentionPolicy', - 'TaskAgentPoolReference', - 'TaskDefinitionReference', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskOrchestrationPlanReference', - 'TaskReference', - 'TaskSourceDefinitionBase', - 'TeamProjectReference', - 'Timeline', - 'TimelineRecord', - 'TimelineReference', - 'VariableGroup', - 'VariableGroupReference', - 'WebApiConnectedServiceRef', - 'XamlBuildControllerReference', -] diff --git a/vsts/vsts/build/v4_0/models/agent_pool_queue.py b/vsts/vsts/build/v4_0/models/agent_pool_queue.py deleted file mode 100644 index 2b27ddfa..00000000 --- a/vsts/vsts/build/v4_0/models/agent_pool_queue.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentPoolQueue(Model): - """AgentPoolQueue. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, pool=None, url=None): - super(AgentPoolQueue, self).__init__() - self._links = _links - self.id = id - self.name = name - self.pool = pool - self.url = url diff --git a/vsts/vsts/build/v4_0/models/artifact_resource.py b/vsts/vsts/build/v4_0/models/artifact_resource.py deleted file mode 100644 index f51d3b19..00000000 --- a/vsts/vsts/build/v4_0/models/artifact_resource.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactResource(Model): - """ArtifactResource. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param data: The type-specific resource data. For example, "#/10002/5/drop", "$/drops/5", "\\myshare\myfolder\mydrops\5" - :type data: str - :param download_url: Link to the resource. This might include things like query parameters to download as a zip file - :type download_url: str - :param properties: Properties of Artifact Resource - :type properties: dict - :param type: The type of the resource: File container, version control folder, UNC path, etc. - :type type: str - :param url: Link to the resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'data': {'key': 'data', 'type': 'str'}, - 'download_url': {'key': 'downloadUrl', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, data=None, download_url=None, properties=None, type=None, url=None): - super(ArtifactResource, self).__init__() - self._links = _links - self.data = data - self.download_url = download_url - self.properties = properties - self.type = type - self.url = url diff --git a/vsts/vsts/build/v4_0/models/build.py b/vsts/vsts/build/v4_0/models/build.py deleted file mode 100644 index d53da81f..00000000 --- a/vsts/vsts/build/v4_0/models/build.py +++ /dev/null @@ -1,189 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Build(Model): - """Build. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param build_number: Build number/name of the build - :type build_number: str - :param build_number_revision: Build number revision - :type build_number_revision: int - :param controller: The build controller. This should only be set if the definition type is Xaml. - :type controller: :class:`BuildController ` - :param definition: The definition associated with the build - :type definition: :class:`DefinitionReference ` - :param deleted: Indicates whether the build has been deleted. - :type deleted: bool - :param deleted_by: Process or person that deleted the build - :type deleted_by: :class:`IdentityRef ` - :param deleted_date: Date the build was deleted - :type deleted_date: datetime - :param deleted_reason: Description of how the build was deleted - :type deleted_reason: str - :param demands: Demands - :type demands: list of :class:`object ` - :param finish_time: Time that the build was completed - :type finish_time: datetime - :param id: Id of the build - :type id: int - :param keep_forever: - :type keep_forever: bool - :param last_changed_by: Process or person that last changed the build - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: Date the build was last changed - :type last_changed_date: datetime - :param logs: Log location of the build - :type logs: :class:`BuildLogReference ` - :param orchestration_plan: Orchestration plan for the build - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` - :param parameters: Parameters for the build - :type parameters: str - :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` - :param priority: The build's priority - :type priority: object - :param project: The team project - :type project: :class:`TeamProjectReference ` - :param properties: - :type properties: :class:`object ` - :param quality: Quality of the xaml build (good, bad, etc.) - :type quality: str - :param queue: The queue. This should only be set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` - :param queue_options: Queue option of the build. - :type queue_options: object - :param queue_position: The current position of the build in the queue - :type queue_position: int - :param queue_time: Time that the build was queued - :type queue_time: datetime - :param reason: Reason that the build was created - :type reason: object - :param repository: The repository - :type repository: :class:`BuildRepository ` - :param requested_by: The identity that queued the build - :type requested_by: :class:`IdentityRef ` - :param requested_for: The identity on whose behalf the build was queued - :type requested_for: :class:`IdentityRef ` - :param result: The build result - :type result: object - :param retained_by_release: Specifies if Build should be retained by Release - :type retained_by_release: bool - :param source_branch: Source branch - :type source_branch: str - :param source_version: Source version - :type source_version: str - :param start_time: Time that the build was started - :type start_time: datetime - :param status: Status of the build - :type status: object - :param tags: - :type tags: list of str - :param trigger_info: Sourceprovider-specific information about what triggered the build - :type trigger_info: dict - :param uri: Uri of the build - :type uri: str - :param url: REST url of the build - :type url: str - :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'build_number': {'key': 'buildNumber', 'type': 'str'}, - 'build_number_revision': {'key': 'buildNumberRevision', 'type': 'int'}, - 'controller': {'key': 'controller', 'type': 'BuildController'}, - 'definition': {'key': 'definition', 'type': 'DefinitionReference'}, - 'deleted': {'key': 'deleted', 'type': 'bool'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'deleted_reason': {'key': 'deletedReason', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'logs': {'key': 'logs', 'type': 'BuildLogReference'}, - 'orchestration_plan': {'key': 'orchestrationPlan', 'type': 'TaskOrchestrationPlanReference'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'plans': {'key': 'plans', 'type': '[TaskOrchestrationPlanReference]'}, - 'priority': {'key': 'priority', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'quality': {'key': 'quality', 'type': 'str'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, - 'queue_options': {'key': 'queueOptions', 'type': 'object'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'repository': {'key': 'repository', 'type': 'BuildRepository'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'result': {'key': 'result', 'type': 'object'}, - 'retained_by_release': {'key': 'retainedByRelease', 'type': 'bool'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'trigger_info': {'key': 'triggerInfo', 'type': '{str}'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'} - } - - def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, trigger_info=None, uri=None, url=None, validation_results=None): - super(Build, self).__init__() - self._links = _links - self.build_number = build_number - self.build_number_revision = build_number_revision - self.controller = controller - self.definition = definition - self.deleted = deleted - self.deleted_by = deleted_by - self.deleted_date = deleted_date - self.deleted_reason = deleted_reason - self.demands = demands - self.finish_time = finish_time - self.id = id - self.keep_forever = keep_forever - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.logs = logs - self.orchestration_plan = orchestration_plan - self.parameters = parameters - self.plans = plans - self.priority = priority - self.project = project - self.properties = properties - self.quality = quality - self.queue = queue - self.queue_options = queue_options - self.queue_position = queue_position - self.queue_time = queue_time - self.reason = reason - self.repository = repository - self.requested_by = requested_by - self.requested_for = requested_for - self.result = result - self.retained_by_release = retained_by_release - self.source_branch = source_branch - self.source_version = source_version - self.start_time = start_time - self.status = status - self.tags = tags - self.trigger_info = trigger_info - self.uri = uri - self.url = url - self.validation_results = validation_results diff --git a/vsts/vsts/build/v4_0/models/build_artifact.py b/vsts/vsts/build/v4_0/models/build_artifact.py deleted file mode 100644 index 75e3e0f1..00000000 --- a/vsts/vsts/build/v4_0/models/build_artifact.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildArtifact(Model): - """BuildArtifact. - - :param id: The artifact id - :type id: int - :param name: The name of the artifact - :type name: str - :param resource: The actual resource - :type resource: :class:`ArtifactResource ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'ArtifactResource'} - } - - def __init__(self, id=None, name=None, resource=None): - super(BuildArtifact, self).__init__() - self.id = id - self.name = name - self.resource = resource diff --git a/vsts/vsts/build/v4_0/models/build_badge.py b/vsts/vsts/build/v4_0/models/build_badge.py deleted file mode 100644 index e060e97a..00000000 --- a/vsts/vsts/build/v4_0/models/build_badge.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildBadge(Model): - """BuildBadge. - - :param build_id: Build id, if exists that this badge corresponds to - :type build_id: int - :param image_url: Self Url that generates SVG - :type image_url: str - """ - - _attribute_map = { - 'build_id': {'key': 'buildId', 'type': 'int'}, - 'image_url': {'key': 'imageUrl', 'type': 'str'} - } - - def __init__(self, build_id=None, image_url=None): - super(BuildBadge, self).__init__() - self.build_id = build_id - self.image_url = image_url diff --git a/vsts/vsts/build/v4_0/models/build_controller.py b/vsts/vsts/build/v4_0/models/build_controller.py deleted file mode 100644 index 5d5d2b83..00000000 --- a/vsts/vsts/build/v4_0/models/build_controller.py +++ /dev/null @@ -1,58 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .xaml_build_controller_reference import XamlBuildControllerReference - - -class BuildController(XamlBuildControllerReference): - """BuildController. - - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param url: Full http link to the resource - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_date: The date the controller was created. - :type created_date: datetime - :param description: The description of the controller. - :type description: str - :param enabled: Indicates whether the controller is enabled. - :type enabled: bool - :param status: The status of the controller. - :type status: object - :param updated_date: The date the controller was last updated. - :type updated_date: datetime - :param uri: The controller's URI. - :type uri: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'status': {'key': 'status', 'type': 'object'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None, _links=None, created_date=None, description=None, enabled=None, status=None, updated_date=None, uri=None): - super(BuildController, self).__init__(id=id, name=name, url=url) - self._links = _links - self.created_date = created_date - self.description = description - self.enabled = enabled - self.status = status - self.updated_date = updated_date - self.uri = uri diff --git a/vsts/vsts/build/v4_0/models/build_definition.py b/vsts/vsts/build/v4_0/models/build_definition.py deleted file mode 100644 index 0014c005..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition.py +++ /dev/null @@ -1,153 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_definition_reference import BuildDefinitionReference - - -class BuildDefinition(BuildDefinitionReference): - """BuildDefinition. - - :param created_date: The date the definition was created - :type created_date: datetime - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param path: The path this definitions belongs to - :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The Uri of the definition - :type uri: str - :param url: Full http link to the resource - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` - :param metrics: - :type metrics: list of :class:`BuildMetric ` - :param quality: The quality of the definition document (draft, etc.) - :type quality: object - :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` - :param badge_enabled: Indicates whether badges are enabled for this definition - :type badge_enabled: bool - :param build_number_format: The build number format - :type build_number_format: str - :param comment: The comment entered when saving the definition - :type comment: str - :param demands: - :type demands: list of :class:`object ` - :param description: The description - :type description: str - :param drop_location: The drop location for the definition - :type drop_location: str - :param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition - :type job_authorization_scope: object - :param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition - :type job_cancel_timeout_in_minutes: int - :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition - :type job_timeout_in_minutes: int - :param latest_build: - :type latest_build: :class:`Build ` - :param latest_completed_build: - :type latest_completed_build: :class:`Build ` - :param options: - :type options: list of :class:`BuildOption ` - :param process: The build process. - :type process: :class:`object ` - :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param repository: The repository - :type repository: :class:`BuildRepository ` - :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` - :param tags: - :type tags: list of str - :param triggers: - :type triggers: list of :class:`object ` - :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, - 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, - 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, - 'quality': {'key': 'quality', 'type': 'object'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, - 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, - 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'drop_location': {'key': 'dropLocation', 'type': 'str'}, - 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, - 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, - 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, - 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, - 'options': {'key': 'options', 'type': '[BuildOption]'}, - 'process': {'key': 'process', 'type': 'object'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'repository': {'key': 'repository', 'type': 'BuildRepository'}, - 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): - super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, metrics=metrics, quality=quality, queue=queue) - self.badge_enabled = badge_enabled - self.build_number_format = build_number_format - self.comment = comment - self.demands = demands - self.description = description - self.drop_location = drop_location - self.job_authorization_scope = job_authorization_scope - self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes - self.job_timeout_in_minutes = job_timeout_in_minutes - self.latest_build = latest_build - self.latest_completed_build = latest_completed_build - self.options = options - self.process = process - self.process_parameters = process_parameters - self.properties = properties - self.repository = repository - self.retention_rules = retention_rules - self.tags = tags - self.triggers = triggers - self.variable_groups = variable_groups - self.variables = variables diff --git a/vsts/vsts/build/v4_0/models/build_definition3_2.py b/vsts/vsts/build/v4_0/models/build_definition3_2.py deleted file mode 100644 index 21236985..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition3_2.py +++ /dev/null @@ -1,149 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_definition_reference import BuildDefinitionReference - - -class BuildDefinition3_2(BuildDefinitionReference): - """BuildDefinition3_2. - - :param created_date: The date the definition was created - :type created_date: datetime - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param path: The path this definitions belongs to - :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The Uri of the definition - :type uri: str - :param url: Full http link to the resource - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` - :param metrics: - :type metrics: list of :class:`BuildMetric ` - :param quality: The quality of the definition document (draft, etc.) - :type quality: object - :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` - :param badge_enabled: Indicates whether badges are enabled for this definition - :type badge_enabled: bool - :param build: - :type build: list of :class:`BuildDefinitionStep ` - :param build_number_format: The build number format - :type build_number_format: str - :param comment: The comment entered when saving the definition - :type comment: str - :param demands: - :type demands: list of :class:`object ` - :param description: The description - :type description: str - :param drop_location: The drop location for the definition - :type drop_location: str - :param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition - :type job_authorization_scope: object - :param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition - :type job_cancel_timeout_in_minutes: int - :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition - :type job_timeout_in_minutes: int - :param latest_build: - :type latest_build: :class:`Build ` - :param latest_completed_build: - :type latest_completed_build: :class:`Build ` - :param options: - :type options: list of :class:`BuildOption ` - :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param repository: The repository - :type repository: :class:`BuildRepository ` - :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` - :param tags: - :type tags: list of str - :param triggers: - :type triggers: list of :class:`object ` - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, - 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, - 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, - 'quality': {'key': 'quality', 'type': 'object'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, - 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, - 'build': {'key': 'build', 'type': '[BuildDefinitionStep]'}, - 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'drop_location': {'key': 'dropLocation', 'type': 'str'}, - 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, - 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, - 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, - 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, - 'options': {'key': 'options', 'type': '[BuildOption]'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'repository': {'key': 'repository', 'type': 'BuildRepository'}, - 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None, badge_enabled=None, build=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variables=None): - super(BuildDefinition3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, metrics=metrics, quality=quality, queue=queue) - self.badge_enabled = badge_enabled - self.build = build - self.build_number_format = build_number_format - self.comment = comment - self.demands = demands - self.description = description - self.drop_location = drop_location - self.job_authorization_scope = job_authorization_scope - self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes - self.job_timeout_in_minutes = job_timeout_in_minutes - self.latest_build = latest_build - self.latest_completed_build = latest_completed_build - self.options = options - self.process_parameters = process_parameters - self.properties = properties - self.repository = repository - self.retention_rules = retention_rules - self.tags = tags - self.triggers = triggers - self.variables = variables diff --git a/vsts/vsts/build/v4_0/models/build_definition_reference.py b/vsts/vsts/build/v4_0/models/build_definition_reference.py deleted file mode 100644 index 6720e46d..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition_reference.py +++ /dev/null @@ -1,75 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .definition_reference import DefinitionReference - - -class BuildDefinitionReference(DefinitionReference): - """BuildDefinitionReference. - - :param created_date: The date the definition was created - :type created_date: datetime - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param path: The path this definitions belongs to - :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The Uri of the definition - :type uri: str - :param url: Full http link to the resource - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` - :param metrics: - :type metrics: list of :class:`BuildMetric ` - :param quality: The quality of the definition document (draft, etc.) - :type quality: object - :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, - 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, - 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, - 'quality': {'key': 'quality', 'type': 'object'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None): - super(BuildDefinitionReference, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) - self._links = _links - self.authored_by = authored_by - self.draft_of = draft_of - self.metrics = metrics - self.quality = quality - self.queue = queue diff --git a/vsts/vsts/build/v4_0/models/build_definition_revision.py b/vsts/vsts/build/v4_0/models/build_definition_revision.py deleted file mode 100644 index f981fc05..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition_revision.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionRevision(Model): - """BuildDefinitionRevision. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param change_type: - :type change_type: object - :param comment: - :type comment: str - :param definition_url: - :type definition_url: str - :param name: - :type name: str - :param revision: - :type revision: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, definition_url=None, name=None, revision=None): - super(BuildDefinitionRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.definition_url = definition_url - self.name = name - self.revision = revision diff --git a/vsts/vsts/build/v4_0/models/build_definition_step.py b/vsts/vsts/build/v4_0/models/build_definition_step.py deleted file mode 100644 index 0b60623c..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition_step.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionStep(Model): - """BuildDefinitionStep. - - :param always_run: - :type always_run: bool - :param condition: - :type condition: str - :param continue_on_error: - :type continue_on_error: bool - :param display_name: - :type display_name: str - :param enabled: - :type enabled: bool - :param environment: - :type environment: dict - :param inputs: - :type inputs: dict - :param ref_name: - :type ref_name: str - :param task: - :type task: :class:`TaskDefinitionReference ` - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'environment': {'key': 'environment', 'type': '{str}'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, environment=None, inputs=None, ref_name=None, task=None, timeout_in_minutes=None): - super(BuildDefinitionStep, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.display_name = display_name - self.enabled = enabled - self.environment = environment - self.inputs = inputs - self.ref_name = ref_name - self.task = task - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/build/v4_0/models/build_definition_template.py b/vsts/vsts/build/v4_0/models/build_definition_template.py deleted file mode 100644 index 0cfa0171..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition_template.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionTemplate(Model): - """BuildDefinitionTemplate. - - :param can_delete: - :type can_delete: bool - :param category: - :type category: str - :param description: - :type description: str - :param icons: - :type icons: dict - :param icon_task_id: - :type icon_task_id: str - :param id: - :type id: str - :param name: - :type name: str - :param template: - :type template: :class:`BuildDefinition ` - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icons': {'key': 'icons', 'type': '{str}'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'BuildDefinition'} - } - - def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): - super(BuildDefinitionTemplate, self).__init__() - self.can_delete = can_delete - self.category = category - self.description = description - self.icons = icons - self.icon_task_id = icon_task_id - self.id = id - self.name = name - self.template = template diff --git a/vsts/vsts/build/v4_0/models/build_definition_template3_2.py b/vsts/vsts/build/v4_0/models/build_definition_template3_2.py deleted file mode 100644 index 65c8f131..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition_template3_2.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionTemplate3_2(Model): - """BuildDefinitionTemplate3_2. - - :param can_delete: - :type can_delete: bool - :param category: - :type category: str - :param description: - :type description: str - :param icons: - :type icons: dict - :param icon_task_id: - :type icon_task_id: str - :param id: - :type id: str - :param name: - :type name: str - :param template: - :type template: :class:`BuildDefinition3_2 ` - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icons': {'key': 'icons', 'type': '{str}'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'BuildDefinition3_2'} - } - - def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): - super(BuildDefinitionTemplate3_2, self).__init__() - self.can_delete = can_delete - self.category = category - self.description = description - self.icons = icons - self.icon_task_id = icon_task_id - self.id = id - self.name = name - self.template = template diff --git a/vsts/vsts/build/v4_0/models/build_definition_variable.py b/vsts/vsts/build/v4_0/models/build_definition_variable.py deleted file mode 100644 index c43a3d6b..00000000 --- a/vsts/vsts/build/v4_0/models/build_definition_variable.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionVariable(Model): - """BuildDefinitionVariable. - - :param allow_override: - :type allow_override: bool - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'allow_override': {'key': 'allowOverride', 'type': 'bool'}, - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, allow_override=None, is_secret=None, value=None): - super(BuildDefinitionVariable, self).__init__() - self.allow_override = allow_override - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/build/v4_0/models/build_log.py b/vsts/vsts/build/v4_0/models/build_log.py deleted file mode 100644 index 7f3e149b..00000000 --- a/vsts/vsts/build/v4_0/models/build_log.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_log_reference import BuildLogReference - - -class BuildLog(BuildLogReference): - """BuildLog. - - :param id: The id of the log. - :type id: int - :param type: The type of the log location. - :type type: str - :param url: Full link to the log resource. - :type url: str - :param created_on: The date the log was created. - :type created_on: datetime - :param last_changed_on: The date the log was last changed. - :type last_changed_on: datetime - :param line_count: The number of lines in the log. - :type line_count: long - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'line_count': {'key': 'lineCount', 'type': 'long'} - } - - def __init__(self, id=None, type=None, url=None, created_on=None, last_changed_on=None, line_count=None): - super(BuildLog, self).__init__(id=id, type=type, url=url) - self.created_on = created_on - self.last_changed_on = last_changed_on - self.line_count = line_count diff --git a/vsts/vsts/build/v4_0/models/build_log_reference.py b/vsts/vsts/build/v4_0/models/build_log_reference.py deleted file mode 100644 index d98859af..00000000 --- a/vsts/vsts/build/v4_0/models/build_log_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildLogReference(Model): - """BuildLogReference. - - :param id: The id of the log. - :type id: int - :param type: The type of the log location. - :type type: str - :param url: Full link to the log resource. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, type=None, url=None): - super(BuildLogReference, self).__init__() - self.id = id - self.type = type - self.url = url diff --git a/vsts/vsts/build/v4_0/models/build_metric.py b/vsts/vsts/build/v4_0/models/build_metric.py deleted file mode 100644 index fc084d0c..00000000 --- a/vsts/vsts/build/v4_0/models/build_metric.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildMetric(Model): - """BuildMetric. - - :param date: Scoped date of the metric - :type date: datetime - :param int_value: The int value of the metric - :type int_value: int - :param name: The name of the metric - :type name: str - :param scope: The scope of the metric - :type scope: str - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'int_value': {'key': 'intValue', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'scope': {'key': 'scope', 'type': 'str'} - } - - def __init__(self, date=None, int_value=None, name=None, scope=None): - super(BuildMetric, self).__init__() - self.date = date - self.int_value = int_value - self.name = name - self.scope = scope diff --git a/vsts/vsts/build/v4_0/models/build_option.py b/vsts/vsts/build/v4_0/models/build_option.py deleted file mode 100644 index 0a1c813d..00000000 --- a/vsts/vsts/build/v4_0/models/build_option.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOption(Model): - """BuildOption. - - :param definition: - :type definition: :class:`BuildOptionDefinitionReference ` - :param enabled: - :type enabled: bool - :param inputs: - :type inputs: dict - """ - - _attribute_map = { - 'definition': {'key': 'definition', 'type': 'BuildOptionDefinitionReference'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'} - } - - def __init__(self, definition=None, enabled=None, inputs=None): - super(BuildOption, self).__init__() - self.definition = definition - self.enabled = enabled - self.inputs = inputs diff --git a/vsts/vsts/build/v4_0/models/build_option_definition.py b/vsts/vsts/build/v4_0/models/build_option_definition.py deleted file mode 100644 index b22e348a..00000000 --- a/vsts/vsts/build/v4_0/models/build_option_definition.py +++ /dev/null @@ -1,44 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_option_definition_reference import BuildOptionDefinitionReference - - -class BuildOptionDefinition(BuildOptionDefinitionReference): - """BuildOptionDefinition. - - :param id: - :type id: str - :param description: - :type description: str - :param groups: - :type groups: list of :class:`BuildOptionGroupDefinition ` - :param inputs: - :type inputs: list of :class:`BuildOptionInputDefinition ` - :param name: - :type name: str - :param ordinal: - :type ordinal: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'groups': {'key': 'groups', 'type': '[BuildOptionGroupDefinition]'}, - 'inputs': {'key': 'inputs', 'type': '[BuildOptionInputDefinition]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'ordinal': {'key': 'ordinal', 'type': 'int'} - } - - def __init__(self, id=None, description=None, groups=None, inputs=None, name=None, ordinal=None): - super(BuildOptionDefinition, self).__init__(id=id) - self.description = description - self.groups = groups - self.inputs = inputs - self.name = name - self.ordinal = ordinal diff --git a/vsts/vsts/build/v4_0/models/build_option_definition_reference.py b/vsts/vsts/build/v4_0/models/build_option_definition_reference.py deleted file mode 100644 index 02fb2a13..00000000 --- a/vsts/vsts/build/v4_0/models/build_option_definition_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOptionDefinitionReference(Model): - """BuildOptionDefinitionReference. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(BuildOptionDefinitionReference, self).__init__() - self.id = id diff --git a/vsts/vsts/build/v4_0/models/build_option_group_definition.py b/vsts/vsts/build/v4_0/models/build_option_group_definition.py deleted file mode 100644 index b4840fc7..00000000 --- a/vsts/vsts/build/v4_0/models/build_option_group_definition.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOptionGroupDefinition(Model): - """BuildOptionGroupDefinition. - - :param display_name: - :type display_name: str - :param is_expanded: - :type is_expanded: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, display_name=None, is_expanded=None, name=None): - super(BuildOptionGroupDefinition, self).__init__() - self.display_name = display_name - self.is_expanded = is_expanded - self.name = name diff --git a/vsts/vsts/build/v4_0/models/build_option_input_definition.py b/vsts/vsts/build/v4_0/models/build_option_input_definition.py deleted file mode 100644 index 491cb33e..00000000 --- a/vsts/vsts/build/v4_0/models/build_option_input_definition.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOptionInputDefinition(Model): - """BuildOptionInputDefinition. - - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help: - :type help: dict - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param required: - :type required: bool - :param type: - :type type: object - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help': {'key': 'help', 'type': '{str}'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, default_value=None, group_name=None, help=None, label=None, name=None, options=None, required=None, type=None, visible_rule=None): - super(BuildOptionInputDefinition, self).__init__() - self.default_value = default_value - self.group_name = group_name - self.help = help - self.label = label - self.name = name - self.options = options - self.required = required - self.type = type - self.visible_rule = visible_rule diff --git a/vsts/vsts/build/v4_0/models/build_report_metadata.py b/vsts/vsts/build/v4_0/models/build_report_metadata.py deleted file mode 100644 index ba9771eb..00000000 --- a/vsts/vsts/build/v4_0/models/build_report_metadata.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildReportMetadata(Model): - """BuildReportMetadata. - - :param build_id: - :type build_id: int - :param content: - :type content: str - :param type: - :type type: str - """ - - _attribute_map = { - 'build_id': {'key': 'buildId', 'type': 'int'}, - 'content': {'key': 'content', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, build_id=None, content=None, type=None): - super(BuildReportMetadata, self).__init__() - self.build_id = build_id - self.content = content - self.type = type diff --git a/vsts/vsts/build/v4_0/models/build_repository.py b/vsts/vsts/build/v4_0/models/build_repository.py deleted file mode 100644 index a1d4e03b..00000000 --- a/vsts/vsts/build/v4_0/models/build_repository.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildRepository(Model): - """BuildRepository. - - :param checkout_submodules: - :type checkout_submodules: bool - :param clean: Indicates whether to clean the target folder when getting code from the repository. This is a String so that it can reference variables. - :type clean: str - :param default_branch: Gets or sets the name of the default branch. - :type default_branch: str - :param id: - :type id: str - :param name: Gets or sets the friendly name of the repository. - :type name: str - :param properties: - :type properties: dict - :param root_folder: Gets or sets the root folder. - :type root_folder: str - :param type: Gets or sets the type of the repository. - :type type: str - :param url: Gets or sets the url of the repository. - :type url: str - """ - - _attribute_map = { - 'checkout_submodules': {'key': 'checkoutSubmodules', 'type': 'bool'}, - 'clean': {'key': 'clean', 'type': 'str'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'root_folder': {'key': 'rootFolder', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, checkout_submodules=None, clean=None, default_branch=None, id=None, name=None, properties=None, root_folder=None, type=None, url=None): - super(BuildRepository, self).__init__() - self.checkout_submodules = checkout_submodules - self.clean = clean - self.default_branch = default_branch - self.id = id - self.name = name - self.properties = properties - self.root_folder = root_folder - self.type = type - self.url = url diff --git a/vsts/vsts/build/v4_0/models/build_request_validation_result.py b/vsts/vsts/build/v4_0/models/build_request_validation_result.py deleted file mode 100644 index b06d0826..00000000 --- a/vsts/vsts/build/v4_0/models/build_request_validation_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildRequestValidationResult(Model): - """BuildRequestValidationResult. - - :param message: - :type message: str - :param result: - :type result: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'} - } - - def __init__(self, message=None, result=None): - super(BuildRequestValidationResult, self).__init__() - self.message = message - self.result = result diff --git a/vsts/vsts/build/v4_0/models/build_resource_usage.py b/vsts/vsts/build/v4_0/models/build_resource_usage.py deleted file mode 100644 index 5026d93f..00000000 --- a/vsts/vsts/build/v4_0/models/build_resource_usage.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildResourceUsage(Model): - """BuildResourceUsage. - - :param distributed_task_agents: - :type distributed_task_agents: int - :param paid_private_agent_slots: - :type paid_private_agent_slots: int - :param total_usage: - :type total_usage: int - :param xaml_controllers: - :type xaml_controllers: int - """ - - _attribute_map = { - 'distributed_task_agents': {'key': 'distributedTaskAgents', 'type': 'int'}, - 'paid_private_agent_slots': {'key': 'paidPrivateAgentSlots', 'type': 'int'}, - 'total_usage': {'key': 'totalUsage', 'type': 'int'}, - 'xaml_controllers': {'key': 'xamlControllers', 'type': 'int'} - } - - def __init__(self, distributed_task_agents=None, paid_private_agent_slots=None, total_usage=None, xaml_controllers=None): - super(BuildResourceUsage, self).__init__() - self.distributed_task_agents = distributed_task_agents - self.paid_private_agent_slots = paid_private_agent_slots - self.total_usage = total_usage - self.xaml_controllers = xaml_controllers diff --git a/vsts/vsts/build/v4_0/models/build_settings.py b/vsts/vsts/build/v4_0/models/build_settings.py deleted file mode 100644 index 999e4a51..00000000 --- a/vsts/vsts/build/v4_0/models/build_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildSettings(Model): - """BuildSettings. - - :param days_to_keep_deleted_builds_before_destroy: - :type days_to_keep_deleted_builds_before_destroy: int - :param default_retention_policy: - :type default_retention_policy: :class:`RetentionPolicy ` - :param maximum_retention_policy: - :type maximum_retention_policy: :class:`RetentionPolicy ` - """ - - _attribute_map = { - 'days_to_keep_deleted_builds_before_destroy': {'key': 'daysToKeepDeletedBuildsBeforeDestroy', 'type': 'int'}, - 'default_retention_policy': {'key': 'defaultRetentionPolicy', 'type': 'RetentionPolicy'}, - 'maximum_retention_policy': {'key': 'maximumRetentionPolicy', 'type': 'RetentionPolicy'} - } - - def __init__(self, days_to_keep_deleted_builds_before_destroy=None, default_retention_policy=None, maximum_retention_policy=None): - super(BuildSettings, self).__init__() - self.days_to_keep_deleted_builds_before_destroy = days_to_keep_deleted_builds_before_destroy - self.default_retention_policy = default_retention_policy - self.maximum_retention_policy = maximum_retention_policy diff --git a/vsts/vsts/build/v4_0/models/change.py b/vsts/vsts/build/v4_0/models/change.py deleted file mode 100644 index 018dadad..00000000 --- a/vsts/vsts/build/v4_0/models/change.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param author: The author of the change. - :type author: :class:`IdentityRef ` - :param display_uri: The location of a user-friendly representation of the resource. - :type display_uri: str - :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. - :type id: str - :param location: The location of the full representation of the resource. - :type location: str - :param message: A description of the change. This might be a commit message or changeset description. - :type message: str - :param message_truncated: Indicates whether the message was truncated - :type message_truncated: bool - :param timestamp: A timestamp for the change. - :type timestamp: datetime - :param type: The type of change. "commit", "changeset", etc. - :type type: str - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'display_uri': {'key': 'displayUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'message_truncated': {'key': 'messageTruncated', 'type': 'bool'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, timestamp=None, type=None): - super(Change, self).__init__() - self.author = author - self.display_uri = display_uri - self.id = id - self.location = location - self.message = message - self.message_truncated = message_truncated - self.timestamp = timestamp - self.type = type diff --git a/vsts/vsts/build/v4_0/models/data_source_binding_base.py b/vsts/vsts/build/v4_0/models/data_source_binding_base.py deleted file mode 100644 index e2c6e8d5..00000000 --- a/vsts/vsts/build/v4_0/models/data_source_binding_base.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: - :type data_source_name: str - :param endpoint_id: - :type endpoint_id: str - :param endpoint_url: - :type endpoint_url: str - :param parameters: - :type parameters: dict - :param result_selector: - :type result_selector: str - :param result_template: - :type result_template: str - :param target: - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target diff --git a/vsts/vsts/build/v4_0/models/definition_reference.py b/vsts/vsts/build/v4_0/models/definition_reference.py deleted file mode 100644 index 05f4cf68..00000000 --- a/vsts/vsts/build/v4_0/models/definition_reference.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DefinitionReference(Model): - """DefinitionReference. - - :param created_date: The date the definition was created - :type created_date: datetime - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param path: The path this definitions belongs to - :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The Uri of the definition - :type uri: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None): - super(DefinitionReference, self).__init__() - self.created_date = created_date - self.id = id - self.name = name - self.path = path - self.project = project - self.queue_status = queue_status - self.revision = revision - self.type = type - self.uri = uri - self.url = url diff --git a/vsts/vsts/build/v4_0/models/deployment.py b/vsts/vsts/build/v4_0/models/deployment.py deleted file mode 100644 index b73b0a27..00000000 --- a/vsts/vsts/build/v4_0/models/deployment.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Deployment(Model): - """Deployment. - - :param type: - :type type: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, type=None): - super(Deployment, self).__init__() - self.type = type diff --git a/vsts/vsts/build/v4_0/models/folder.py b/vsts/vsts/build/v4_0/models/folder.py deleted file mode 100644 index 64b2cbe2..00000000 --- a/vsts/vsts/build/v4_0/models/folder.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Folder(Model): - """Folder. - - :param created_by: Process or person who created the folder - :type created_by: :class:`IdentityRef ` - :param created_on: Creation date of the folder - :type created_on: datetime - :param description: The description of the folder - :type description: str - :param last_changed_by: Process or person that last changed the folder - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: Date the folder was last changed - :type last_changed_date: datetime - :param path: The path of the folder - :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'} - } - - def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None, project=None): - super(Folder, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.path = path - self.project = project diff --git a/vsts/vsts/build/v4_0/models/identity_ref.py b/vsts/vsts/build/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/build/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/build/v4_0/models/issue.py b/vsts/vsts/build/v4_0/models/issue.py deleted file mode 100644 index 02b96b6e..00000000 --- a/vsts/vsts/build/v4_0/models/issue.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Issue(Model): - """Issue. - - :param category: - :type category: str - :param data: - :type data: dict - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'str'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, category=None, data=None, message=None, type=None): - super(Issue, self).__init__() - self.category = category - self.data = data - self.message = message - self.type = type diff --git a/vsts/vsts/build/v4_0/models/json_patch_operation.py b/vsts/vsts/build/v4_0/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/build/v4_0/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/build/v4_0/models/process_parameters.py b/vsts/vsts/build/v4_0/models/process_parameters.py deleted file mode 100644 index f6903143..00000000 --- a/vsts/vsts/build/v4_0/models/process_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessParameters(Model): - """ProcessParameters. - - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` - :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` - """ - - _attribute_map = { - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} - } - - def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): - super(ProcessParameters, self).__init__() - self.data_source_bindings = data_source_bindings - self.inputs = inputs - self.source_definitions = source_definitions diff --git a/vsts/vsts/build/v4_0/models/reference_links.py b/vsts/vsts/build/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/build/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/build/v4_0/models/resource_ref.py b/vsts/vsts/build/v4_0/models/resource_ref.py deleted file mode 100644 index 903e57ee..00000000 --- a/vsts/vsts/build/v4_0/models/resource_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceRef(Model): - """ResourceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(ResourceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/build/v4_0/models/retention_policy.py b/vsts/vsts/build/v4_0/models/retention_policy.py deleted file mode 100644 index 59623d75..00000000 --- a/vsts/vsts/build/v4_0/models/retention_policy.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RetentionPolicy(Model): - """RetentionPolicy. - - :param artifacts: - :type artifacts: list of str - :param artifact_types_to_delete: - :type artifact_types_to_delete: list of str - :param branches: - :type branches: list of str - :param days_to_keep: - :type days_to_keep: int - :param delete_build_record: - :type delete_build_record: bool - :param delete_test_results: - :type delete_test_results: bool - :param minimum_to_keep: - :type minimum_to_keep: int - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[str]'}, - 'artifact_types_to_delete': {'key': 'artifactTypesToDelete', 'type': '[str]'}, - 'branches': {'key': 'branches', 'type': '[str]'}, - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, - 'delete_build_record': {'key': 'deleteBuildRecord', 'type': 'bool'}, - 'delete_test_results': {'key': 'deleteTestResults', 'type': 'bool'}, - 'minimum_to_keep': {'key': 'minimumToKeep', 'type': 'int'} - } - - def __init__(self, artifacts=None, artifact_types_to_delete=None, branches=None, days_to_keep=None, delete_build_record=None, delete_test_results=None, minimum_to_keep=None): - super(RetentionPolicy, self).__init__() - self.artifacts = artifacts - self.artifact_types_to_delete = artifact_types_to_delete - self.branches = branches - self.days_to_keep = days_to_keep - self.delete_build_record = delete_build_record - self.delete_test_results = delete_test_results - self.minimum_to_keep = minimum_to_keep diff --git a/vsts/vsts/build/v4_0/models/task_agent_pool_reference.py b/vsts/vsts/build/v4_0/models/task_agent_pool_reference.py deleted file mode 100644 index ea2fa7b0..00000000 --- a/vsts/vsts/build/v4_0/models/task_agent_pool_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolReference(Model): - """TaskAgentPoolReference. - - :param id: - :type id: int - :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. - :type is_hosted: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, is_hosted=None, name=None): - super(TaskAgentPoolReference, self).__init__() - self.id = id - self.is_hosted = is_hosted - self.name = name diff --git a/vsts/vsts/build/v4_0/models/task_definition_reference.py b/vsts/vsts/build/v4_0/models/task_definition_reference.py deleted file mode 100644 index 8b393e85..00000000 --- a/vsts/vsts/build/v4_0/models/task_definition_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinitionReference(Model): - """TaskDefinitionReference. - - :param definition_type: - :type definition_type: str - :param id: - :type id: str - :param version_spec: - :type version_spec: str - """ - - _attribute_map = { - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'version_spec': {'key': 'versionSpec', 'type': 'str'} - } - - def __init__(self, definition_type=None, id=None, version_spec=None): - super(TaskDefinitionReference, self).__init__() - self.definition_type = definition_type - self.id = id - self.version_spec = version_spec diff --git a/vsts/vsts/build/v4_0/models/task_input_definition_base.py b/vsts/vsts/build/v4_0/models/task_input_definition_base.py deleted file mode 100644 index 1f33183e..00000000 --- a/vsts/vsts/build/v4_0/models/task_input_definition_base.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule diff --git a/vsts/vsts/build/v4_0/models/task_input_validation.py b/vsts/vsts/build/v4_0/models/task_input_validation.py deleted file mode 100644 index 42524013..00000000 --- a/vsts/vsts/build/v4_0/models/task_input_validation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message diff --git a/vsts/vsts/build/v4_0/models/task_orchestration_plan_reference.py b/vsts/vsts/build/v4_0/models/task_orchestration_plan_reference.py deleted file mode 100644 index e6e96313..00000000 --- a/vsts/vsts/build/v4_0/models/task_orchestration_plan_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationPlanReference(Model): - """TaskOrchestrationPlanReference. - - :param orchestration_type: Orchestration Type for Build (build, cleanup etc.) - :type orchestration_type: int - :param plan_id: - :type plan_id: str - """ - - _attribute_map = { - 'orchestration_type': {'key': 'orchestrationType', 'type': 'int'}, - 'plan_id': {'key': 'planId', 'type': 'str'} - } - - def __init__(self, orchestration_type=None, plan_id=None): - super(TaskOrchestrationPlanReference, self).__init__() - self.orchestration_type = orchestration_type - self.plan_id = plan_id diff --git a/vsts/vsts/build/v4_0/models/task_reference.py b/vsts/vsts/build/v4_0/models/task_reference.py deleted file mode 100644 index 57c25971..00000000 --- a/vsts/vsts/build/v4_0/models/task_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskReference(Model): - """TaskReference. - - :param id: - :type id: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, name=None, version=None): - super(TaskReference, self).__init__() - self.id = id - self.name = name - self.version = version diff --git a/vsts/vsts/build/v4_0/models/task_source_definition_base.py b/vsts/vsts/build/v4_0/models/task_source_definition_base.py deleted file mode 100644 index c8a6b6d6..00000000 --- a/vsts/vsts/build/v4_0/models/task_source_definition_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target diff --git a/vsts/vsts/build/v4_0/models/team_project_reference.py b/vsts/vsts/build/v4_0/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/build/v4_0/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/build/v4_0/models/timeline.py b/vsts/vsts/build/v4_0/models/timeline.py deleted file mode 100644 index 02e0d15b..00000000 --- a/vsts/vsts/build/v4_0/models/timeline.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .timeline_reference import TimelineReference - - -class Timeline(TimelineReference): - """Timeline. - - :param change_id: - :type change_id: int - :param id: - :type id: str - :param url: - :type url: str - :param last_changed_by: - :type last_changed_by: str - :param last_changed_on: - :type last_changed_on: datetime - :param records: - :type records: list of :class:`TimelineRecord ` - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'records': {'key': 'records', 'type': '[TimelineRecord]'} - } - - def __init__(self, change_id=None, id=None, url=None, last_changed_by=None, last_changed_on=None, records=None): - super(Timeline, self).__init__(change_id=change_id, id=id, url=url) - self.last_changed_by = last_changed_by - self.last_changed_on = last_changed_on - self.records = records diff --git a/vsts/vsts/build/v4_0/models/timeline_record.py b/vsts/vsts/build/v4_0/models/timeline_record.py deleted file mode 100644 index b02e7921..00000000 --- a/vsts/vsts/build/v4_0/models/timeline_record.py +++ /dev/null @@ -1,113 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineRecord(Model): - """TimelineRecord. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param change_id: - :type change_id: int - :param current_operation: - :type current_operation: str - :param details: - :type details: :class:`TimelineReference ` - :param error_count: - :type error_count: int - :param finish_time: - :type finish_time: datetime - :param id: - :type id: str - :param issues: - :type issues: list of :class:`Issue ` - :param last_modified: - :type last_modified: datetime - :param log: - :type log: :class:`BuildLogReference ` - :param name: - :type name: str - :param order: - :type order: int - :param parent_id: - :type parent_id: str - :param percent_complete: - :type percent_complete: int - :param result: - :type result: object - :param result_code: - :type result_code: str - :param start_time: - :type start_time: datetime - :param state: - :type state: object - :param task: - :type task: :class:`TaskReference ` - :param type: - :type type: str - :param url: - :type url: str - :param warning_count: - :type warning_count: int - :param worker_name: - :type worker_name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'current_operation': {'key': 'currentOperation', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'TimelineReference'}, - 'error_count': {'key': 'errorCount', 'type': 'int'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'log': {'key': 'log', 'type': 'BuildLogReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'parent_id': {'key': 'parentId', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'result': {'key': 'result', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'TaskReference'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'warning_count': {'key': 'warningCount', 'type': 'int'}, - 'worker_name': {'key': 'workerName', 'type': 'str'} - } - - def __init__(self, _links=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): - super(TimelineRecord, self).__init__() - self._links = _links - self.change_id = change_id - self.current_operation = current_operation - self.details = details - self.error_count = error_count - self.finish_time = finish_time - self.id = id - self.issues = issues - self.last_modified = last_modified - self.log = log - self.name = name - self.order = order - self.parent_id = parent_id - self.percent_complete = percent_complete - self.result = result - self.result_code = result_code - self.start_time = start_time - self.state = state - self.task = task - self.type = type - self.url = url - self.warning_count = warning_count - self.worker_name = worker_name diff --git a/vsts/vsts/build/v4_0/models/timeline_reference.py b/vsts/vsts/build/v4_0/models/timeline_reference.py deleted file mode 100644 index 79adb430..00000000 --- a/vsts/vsts/build/v4_0/models/timeline_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineReference(Model): - """TimelineReference. - - :param change_id: - :type change_id: int - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_id=None, id=None, url=None): - super(TimelineReference, self).__init__() - self.change_id = change_id - self.id = id - self.url = url diff --git a/vsts/vsts/build/v4_0/models/variable_group.py b/vsts/vsts/build/v4_0/models/variable_group.py deleted file mode 100644 index 15d91fab..00000000 --- a/vsts/vsts/build/v4_0/models/variable_group.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .variable_group_reference import VariableGroupReference - - -class VariableGroup(VariableGroupReference): - """VariableGroup. - - :param id: - :type id: int - :param description: - :type description: str - :param name: - :type name: str - :param type: - :type type: str - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} - } - - def __init__(self, id=None, description=None, name=None, type=None, variables=None): - super(VariableGroup, self).__init__(id=id) - self.description = description - self.name = name - self.type = type - self.variables = variables diff --git a/vsts/vsts/build/v4_0/models/variable_group_reference.py b/vsts/vsts/build/v4_0/models/variable_group_reference.py deleted file mode 100644 index b5249a12..00000000 --- a/vsts/vsts/build/v4_0/models/variable_group_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroupReference(Model): - """VariableGroupReference. - - :param id: - :type id: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, id=None): - super(VariableGroupReference, self).__init__() - self.id = id diff --git a/vsts/vsts/build/v4_0/models/web_api_connected_service_ref.py b/vsts/vsts/build/v4_0/models/web_api_connected_service_ref.py deleted file mode 100644 index 4a0e1863..00000000 --- a/vsts/vsts/build/v4_0/models/web_api_connected_service_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiConnectedServiceRef(Model): - """WebApiConnectedServiceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WebApiConnectedServiceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/build/v4_0/models/xaml_build_controller_reference.py b/vsts/vsts/build/v4_0/models/xaml_build_controller_reference.py deleted file mode 100644 index 52177b53..00000000 --- a/vsts/vsts/build/v4_0/models/xaml_build_controller_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class XamlBuildControllerReference(Model): - """XamlBuildControllerReference. - - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(XamlBuildControllerReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/build/v4_1/__init__.py b/vsts/vsts/build/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/build/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/build/v4_1/models/__init__.py b/vsts/vsts/build/v4_1/models/__init__.py deleted file mode 100644 index 235110c5..00000000 --- a/vsts/vsts/build/v4_1/models/__init__.py +++ /dev/null @@ -1,153 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .agent_pool_queue import AgentPoolQueue -from .aggregated_results_analysis import AggregatedResultsAnalysis -from .aggregated_results_by_outcome import AggregatedResultsByOutcome -from .aggregated_results_difference import AggregatedResultsDifference -from .aggregated_runs_by_state import AggregatedRunsByState -from .artifact_resource import ArtifactResource -from .associated_work_item import AssociatedWorkItem -from .attachment import Attachment -from .authorization_header import AuthorizationHeader -from .build import Build -from .build_artifact import BuildArtifact -from .build_badge import BuildBadge -from .build_controller import BuildController -from .build_definition import BuildDefinition -from .build_definition3_2 import BuildDefinition3_2 -from .build_definition_reference import BuildDefinitionReference -from .build_definition_reference3_2 import BuildDefinitionReference3_2 -from .build_definition_revision import BuildDefinitionRevision -from .build_definition_step import BuildDefinitionStep -from .build_definition_template import BuildDefinitionTemplate -from .build_definition_template3_2 import BuildDefinitionTemplate3_2 -from .build_definition_variable import BuildDefinitionVariable -from .build_log import BuildLog -from .build_log_reference import BuildLogReference -from .build_metric import BuildMetric -from .build_option import BuildOption -from .build_option_definition import BuildOptionDefinition -from .build_option_definition_reference import BuildOptionDefinitionReference -from .build_option_group_definition import BuildOptionGroupDefinition -from .build_option_input_definition import BuildOptionInputDefinition -from .build_report_metadata import BuildReportMetadata -from .build_repository import BuildRepository -from .build_request_validation_result import BuildRequestValidationResult -from .build_resource_usage import BuildResourceUsage -from .build_settings import BuildSettings -from .change import Change -from .data_source_binding_base import DataSourceBindingBase -from .definition_reference import DefinitionReference -from .deployment import Deployment -from .folder import Folder -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .issue import Issue -from .json_patch_operation import JsonPatchOperation -from .process_parameters import ProcessParameters -from .reference_links import ReferenceLinks -from .release_reference import ReleaseReference -from .repository_webhook import RepositoryWebhook -from .resource_ref import ResourceRef -from .retention_policy import RetentionPolicy -from .source_provider_attributes import SourceProviderAttributes -from .source_repositories import SourceRepositories -from .source_repository import SourceRepository -from .source_repository_item import SourceRepositoryItem -from .supported_trigger import SupportedTrigger -from .task_agent_pool_reference import TaskAgentPoolReference -from .task_definition_reference import TaskDefinitionReference -from .task_input_definition_base import TaskInputDefinitionBase -from .task_input_validation import TaskInputValidation -from .task_orchestration_plan_reference import TaskOrchestrationPlanReference -from .task_reference import TaskReference -from .task_source_definition_base import TaskSourceDefinitionBase -from .team_project_reference import TeamProjectReference -from .test_results_context import TestResultsContext -from .timeline import Timeline -from .timeline_record import TimelineRecord -from .timeline_reference import TimelineReference -from .variable_group import VariableGroup -from .variable_group_reference import VariableGroupReference -from .web_api_connected_service_ref import WebApiConnectedServiceRef -from .xaml_build_controller_reference import XamlBuildControllerReference - -__all__ = [ - 'AgentPoolQueue', - 'AggregatedResultsAnalysis', - 'AggregatedResultsByOutcome', - 'AggregatedResultsDifference', - 'AggregatedRunsByState', - 'ArtifactResource', - 'AssociatedWorkItem', - 'Attachment', - 'AuthorizationHeader', - 'Build', - 'BuildArtifact', - 'BuildBadge', - 'BuildController', - 'BuildDefinition', - 'BuildDefinition3_2', - 'BuildDefinitionReference', - 'BuildDefinitionReference3_2', - 'BuildDefinitionRevision', - 'BuildDefinitionStep', - 'BuildDefinitionTemplate', - 'BuildDefinitionTemplate3_2', - 'BuildDefinitionVariable', - 'BuildLog', - 'BuildLogReference', - 'BuildMetric', - 'BuildOption', - 'BuildOptionDefinition', - 'BuildOptionDefinitionReference', - 'BuildOptionGroupDefinition', - 'BuildOptionInputDefinition', - 'BuildReportMetadata', - 'BuildRepository', - 'BuildRequestValidationResult', - 'BuildResourceUsage', - 'BuildSettings', - 'Change', - 'DataSourceBindingBase', - 'DefinitionReference', - 'Deployment', - 'Folder', - 'GraphSubjectBase', - 'IdentityRef', - 'Issue', - 'JsonPatchOperation', - 'ProcessParameters', - 'ReferenceLinks', - 'ReleaseReference', - 'RepositoryWebhook', - 'ResourceRef', - 'RetentionPolicy', - 'SourceProviderAttributes', - 'SourceRepositories', - 'SourceRepository', - 'SourceRepositoryItem', - 'SupportedTrigger', - 'TaskAgentPoolReference', - 'TaskDefinitionReference', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskOrchestrationPlanReference', - 'TaskReference', - 'TaskSourceDefinitionBase', - 'TeamProjectReference', - 'TestResultsContext', - 'Timeline', - 'TimelineRecord', - 'TimelineReference', - 'VariableGroup', - 'VariableGroupReference', - 'WebApiConnectedServiceRef', - 'XamlBuildControllerReference', -] diff --git a/vsts/vsts/build/v4_1/models/agent_pool_queue.py b/vsts/vsts/build/v4_1/models/agent_pool_queue.py deleted file mode 100644 index 67b3db03..00000000 --- a/vsts/vsts/build/v4_1/models/agent_pool_queue.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentPoolQueue(Model): - """AgentPoolQueue. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: The ID of the queue. - :type id: int - :param name: The name of the queue. - :type name: str - :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` - :param url: The full http link to the resource. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, pool=None, url=None): - super(AgentPoolQueue, self).__init__() - self._links = _links - self.id = id - self.name = name - self.pool = pool - self.url = url diff --git a/vsts/vsts/build/v4_1/models/aggregated_results_analysis.py b/vsts/vsts/build/v4_1/models/aggregated_results_analysis.py deleted file mode 100644 index e8781211..00000000 --- a/vsts/vsts/build/v4_1/models/aggregated_results_analysis.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsAnalysis(Model): - """AggregatedResultsAnalysis. - - :param duration: - :type duration: object - :param not_reported_results_by_outcome: - :type not_reported_results_by_outcome: dict - :param previous_context: - :type previous_context: :class:`TestResultsContext ` - :param results_by_outcome: - :type results_by_outcome: dict - :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` - :param run_summary_by_state: - :type run_summary_by_state: dict - :param total_tests: - :type total_tests: int - """ - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'object'}, - 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, - 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, - 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'} - } - - def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): - super(AggregatedResultsAnalysis, self).__init__() - self.duration = duration - self.not_reported_results_by_outcome = not_reported_results_by_outcome - self.previous_context = previous_context - self.results_by_outcome = results_by_outcome - self.results_difference = results_difference - self.run_summary_by_state = run_summary_by_state - self.total_tests = total_tests diff --git a/vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py b/vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py deleted file mode 100644 index e31fbdde..00000000 --- a/vsts/vsts/build/v4_1/models/aggregated_results_by_outcome.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsByOutcome(Model): - """AggregatedResultsByOutcome. - - :param count: - :type count: int - :param duration: - :type duration: object - :param group_by_field: - :type group_by_field: str - :param group_by_value: - :type group_by_value: object - :param outcome: - :type outcome: object - :param rerun_result_count: - :type rerun_result_count: int - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration': {'key': 'duration', 'type': 'object'}, - 'group_by_field': {'key': 'groupByField', 'type': 'str'}, - 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'outcome': {'key': 'outcome', 'type': 'object'}, - 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} - } - - def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): - super(AggregatedResultsByOutcome, self).__init__() - self.count = count - self.duration = duration - self.group_by_field = group_by_field - self.group_by_value = group_by_value - self.outcome = outcome - self.rerun_result_count = rerun_result_count diff --git a/vsts/vsts/build/v4_1/models/aggregated_results_difference.py b/vsts/vsts/build/v4_1/models/aggregated_results_difference.py deleted file mode 100644 index 5bc4af42..00000000 --- a/vsts/vsts/build/v4_1/models/aggregated_results_difference.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsDifference(Model): - """AggregatedResultsDifference. - - :param increase_in_duration: - :type increase_in_duration: object - :param increase_in_failures: - :type increase_in_failures: int - :param increase_in_other_tests: - :type increase_in_other_tests: int - :param increase_in_passed_tests: - :type increase_in_passed_tests: int - :param increase_in_total_tests: - :type increase_in_total_tests: int - """ - - _attribute_map = { - 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, - 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, - 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, - 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, - 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} - } - - def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): - super(AggregatedResultsDifference, self).__init__() - self.increase_in_duration = increase_in_duration - self.increase_in_failures = increase_in_failures - self.increase_in_other_tests = increase_in_other_tests - self.increase_in_passed_tests = increase_in_passed_tests - self.increase_in_total_tests = increase_in_total_tests diff --git a/vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py b/vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py deleted file mode 100644 index 04398b82..00000000 --- a/vsts/vsts/build/v4_1/models/aggregated_runs_by_state.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedRunsByState(Model): - """AggregatedRunsByState. - - :param runs_count: - :type runs_count: int - :param state: - :type state: object - """ - - _attribute_map = { - 'runs_count': {'key': 'runsCount', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'} - } - - def __init__(self, runs_count=None, state=None): - super(AggregatedRunsByState, self).__init__() - self.runs_count = runs_count - self.state = state diff --git a/vsts/vsts/build/v4_1/models/artifact_resource.py b/vsts/vsts/build/v4_1/models/artifact_resource.py deleted file mode 100644 index 5d9174e3..00000000 --- a/vsts/vsts/build/v4_1/models/artifact_resource.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactResource(Model): - """ArtifactResource. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param data: Type-specific data about the artifact. - :type data: str - :param download_ticket: A secret that can be sent in a request header to retrieve an artifact anonymously. Valid for a limited amount of time. Optional. - :type download_ticket: str - :param download_url: A link to download the resource. - :type download_url: str - :param properties: Type-specific properties of the artifact. - :type properties: dict - :param type: The type of the resource: File container, version control folder, UNC path, etc. - :type type: str - :param url: The full http link to the resource. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'data': {'key': 'data', 'type': 'str'}, - 'download_ticket': {'key': 'downloadTicket', 'type': 'str'}, - 'download_url': {'key': 'downloadUrl', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, data=None, download_ticket=None, download_url=None, properties=None, type=None, url=None): - super(ArtifactResource, self).__init__() - self._links = _links - self.data = data - self.download_ticket = download_ticket - self.download_url = download_url - self.properties = properties - self.type = type - self.url = url diff --git a/vsts/vsts/build/v4_1/models/associated_work_item.py b/vsts/vsts/build/v4_1/models/associated_work_item.py deleted file mode 100644 index 1f491dad..00000000 --- a/vsts/vsts/build/v4_1/models/associated_work_item.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AssociatedWorkItem(Model): - """AssociatedWorkItem. - - :param assigned_to: - :type assigned_to: str - :param id: Id of associated the work item. - :type id: int - :param state: - :type state: str - :param title: - :type title: str - :param url: REST Url of the work item. - :type url: str - :param web_url: - :type web_url: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): - super(AssociatedWorkItem, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.state = state - self.title = title - self.url = url - self.web_url = web_url - self.work_item_type = work_item_type diff --git a/vsts/vsts/build/v4_1/models/attachment.py b/vsts/vsts/build/v4_1/models/attachment.py deleted file mode 100644 index b322dcf3..00000000 --- a/vsts/vsts/build/v4_1/models/attachment.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Attachment(Model): - """Attachment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param name: The name of the attachment. - :type name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, _links=None, name=None): - super(Attachment, self).__init__() - self._links = _links - self.name = name diff --git a/vsts/vsts/build/v4_1/models/authorization_header.py b/vsts/vsts/build/v4_1/models/authorization_header.py deleted file mode 100644 index 015e6775..00000000 --- a/vsts/vsts/build/v4_1/models/authorization_header.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthorizationHeader(Model): - """AuthorizationHeader. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(AuthorizationHeader, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/build/v4_1/models/build.py b/vsts/vsts/build/v4_1/models/build.py deleted file mode 100644 index 4a8f2566..00000000 --- a/vsts/vsts/build/v4_1/models/build.py +++ /dev/null @@ -1,193 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Build(Model): - """Build. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param build_number: The build number/name of the build. - :type build_number: str - :param build_number_revision: The build number revision. - :type build_number_revision: int - :param controller: The build controller. This is only set if the definition type is Xaml. - :type controller: :class:`BuildController ` - :param definition: The definition associated with the build. - :type definition: :class:`DefinitionReference ` - :param deleted: Indicates whether the build has been deleted. - :type deleted: bool - :param deleted_by: The identity of the process or person that deleted the build. - :type deleted_by: :class:`IdentityRef ` - :param deleted_date: The date the build was deleted. - :type deleted_date: datetime - :param deleted_reason: The description of how the build was deleted. - :type deleted_reason: str - :param demands: A list of demands that represents the agent capabilities required by this build. - :type demands: list of :class:`object ` - :param finish_time: The time that the build was completed. - :type finish_time: datetime - :param id: The ID of the build. - :type id: int - :param keep_forever: Indicates whether the build should be skipped by retention policies. - :type keep_forever: bool - :param last_changed_by: The identity representing the process or person that last changed the build. - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: The date the build was last changed. - :type last_changed_date: datetime - :param logs: Information about the build logs. - :type logs: :class:`BuildLogReference ` - :param orchestration_plan: The orchestration plan for the build. - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` - :param parameters: The parameters for the build. - :type parameters: str - :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` - :param priority: The build's priority. - :type priority: object - :param project: The team project. - :type project: :class:`TeamProjectReference ` - :param properties: - :type properties: :class:`object ` - :param quality: The quality of the xaml build (good, bad, etc.) - :type quality: str - :param queue: The queue. This is only set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` - :param queue_options: Additional options for queueing the build. - :type queue_options: object - :param queue_position: The current position of the build in the queue. - :type queue_position: int - :param queue_time: The time that the build was queued. - :type queue_time: datetime - :param reason: The reason that the build was created. - :type reason: object - :param repository: The repository. - :type repository: :class:`BuildRepository ` - :param requested_by: The identity that queued the build. - :type requested_by: :class:`IdentityRef ` - :param requested_for: The identity on whose behalf the build was queued. - :type requested_for: :class:`IdentityRef ` - :param result: The build result. - :type result: object - :param retained_by_release: Indicates whether the build is retained by a release. - :type retained_by_release: bool - :param source_branch: The source branch. - :type source_branch: str - :param source_version: The source version. - :type source_version: str - :param start_time: The time that the build was started. - :type start_time: datetime - :param status: The status of the build. - :type status: object - :param tags: - :type tags: list of str - :param triggered_by_build: The build that triggered this build via a Build completion trigger. - :type triggered_by_build: :class:`Build ` - :param trigger_info: Sourceprovider-specific information about what triggered the build - :type trigger_info: dict - :param uri: The URI of the build. - :type uri: str - :param url: The REST URL of the build. - :type url: str - :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'build_number': {'key': 'buildNumber', 'type': 'str'}, - 'build_number_revision': {'key': 'buildNumberRevision', 'type': 'int'}, - 'controller': {'key': 'controller', 'type': 'BuildController'}, - 'definition': {'key': 'definition', 'type': 'DefinitionReference'}, - 'deleted': {'key': 'deleted', 'type': 'bool'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'deleted_reason': {'key': 'deletedReason', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'logs': {'key': 'logs', 'type': 'BuildLogReference'}, - 'orchestration_plan': {'key': 'orchestrationPlan', 'type': 'TaskOrchestrationPlanReference'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'plans': {'key': 'plans', 'type': '[TaskOrchestrationPlanReference]'}, - 'priority': {'key': 'priority', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'quality': {'key': 'quality', 'type': 'str'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, - 'queue_options': {'key': 'queueOptions', 'type': 'object'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'repository': {'key': 'repository', 'type': 'BuildRepository'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'result': {'key': 'result', 'type': 'object'}, - 'retained_by_release': {'key': 'retainedByRelease', 'type': 'bool'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggered_by_build': {'key': 'triggeredByBuild', 'type': 'Build'}, - 'trigger_info': {'key': 'triggerInfo', 'type': '{str}'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'} - } - - def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, triggered_by_build=None, trigger_info=None, uri=None, url=None, validation_results=None): - super(Build, self).__init__() - self._links = _links - self.build_number = build_number - self.build_number_revision = build_number_revision - self.controller = controller - self.definition = definition - self.deleted = deleted - self.deleted_by = deleted_by - self.deleted_date = deleted_date - self.deleted_reason = deleted_reason - self.demands = demands - self.finish_time = finish_time - self.id = id - self.keep_forever = keep_forever - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.logs = logs - self.orchestration_plan = orchestration_plan - self.parameters = parameters - self.plans = plans - self.priority = priority - self.project = project - self.properties = properties - self.quality = quality - self.queue = queue - self.queue_options = queue_options - self.queue_position = queue_position - self.queue_time = queue_time - self.reason = reason - self.repository = repository - self.requested_by = requested_by - self.requested_for = requested_for - self.result = result - self.retained_by_release = retained_by_release - self.source_branch = source_branch - self.source_version = source_version - self.start_time = start_time - self.status = status - self.tags = tags - self.triggered_by_build = triggered_by_build - self.trigger_info = trigger_info - self.uri = uri - self.url = url - self.validation_results = validation_results diff --git a/vsts/vsts/build/v4_1/models/build_artifact.py b/vsts/vsts/build/v4_1/models/build_artifact.py deleted file mode 100644 index 29a3276d..00000000 --- a/vsts/vsts/build/v4_1/models/build_artifact.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildArtifact(Model): - """BuildArtifact. - - :param id: The artifact ID. - :type id: int - :param name: The name of the artifact. - :type name: str - :param resource: The actual resource. - :type resource: :class:`ArtifactResource ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'ArtifactResource'} - } - - def __init__(self, id=None, name=None, resource=None): - super(BuildArtifact, self).__init__() - self.id = id - self.name = name - self.resource = resource diff --git a/vsts/vsts/build/v4_1/models/build_badge.py b/vsts/vsts/build/v4_1/models/build_badge.py deleted file mode 100644 index eb3a4f10..00000000 --- a/vsts/vsts/build/v4_1/models/build_badge.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildBadge(Model): - """BuildBadge. - - :param build_id: The ID of the build represented by this badge. - :type build_id: int - :param image_url: A link to the SVG resource. - :type image_url: str - """ - - _attribute_map = { - 'build_id': {'key': 'buildId', 'type': 'int'}, - 'image_url': {'key': 'imageUrl', 'type': 'str'} - } - - def __init__(self, build_id=None, image_url=None): - super(BuildBadge, self).__init__() - self.build_id = build_id - self.image_url = image_url diff --git a/vsts/vsts/build/v4_1/models/build_controller.py b/vsts/vsts/build/v4_1/models/build_controller.py deleted file mode 100644 index 4628f94f..00000000 --- a/vsts/vsts/build/v4_1/models/build_controller.py +++ /dev/null @@ -1,58 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .xaml_build_controller_reference import XamlBuildControllerReference - - -class BuildController(XamlBuildControllerReference): - """BuildController. - - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param url: Full http link to the resource - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_date: The date the controller was created. - :type created_date: datetime - :param description: The description of the controller. - :type description: str - :param enabled: Indicates whether the controller is enabled. - :type enabled: bool - :param status: The status of the controller. - :type status: object - :param updated_date: The date the controller was last updated. - :type updated_date: datetime - :param uri: The controller's URI. - :type uri: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'status': {'key': 'status', 'type': 'object'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None, _links=None, created_date=None, description=None, enabled=None, status=None, updated_date=None, uri=None): - super(BuildController, self).__init__(id=id, name=name, url=url) - self._links = _links - self.created_date = created_date - self.description = description - self.enabled = enabled - self.status = status - self.updated_date = updated_date - self.uri = uri diff --git a/vsts/vsts/build/v4_1/models/build_definition.py b/vsts/vsts/build/v4_1/models/build_definition.py deleted file mode 100644 index b7adaf5b..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition.py +++ /dev/null @@ -1,154 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_definition_reference import BuildDefinitionReference - - -class BuildDefinition(BuildDefinitionReference): - """BuildDefinition. - - :param created_date: The date the definition was created. - :type created_date: datetime - :param id: The ID of the referenced definition. - :type id: int - :param name: The name of the referenced definition. - :type name: str - :param path: The folder path of the definition. - :type path: str - :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` - :param queue_status: A value that indicates whether builds can be queued against this definition. - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The definition's URI. - :type uri: str - :param url: The REST URL of the definition. - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` - :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` - :param latest_build: - :type latest_build: :class:`Build ` - :param latest_completed_build: - :type latest_completed_build: :class:`Build ` - :param metrics: - :type metrics: list of :class:`BuildMetric ` - :param quality: The quality of the definition document (draft, etc.) - :type quality: object - :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` - :param badge_enabled: Indicates whether badges are enabled for this definition. - :type badge_enabled: bool - :param build_number_format: The build number format. - :type build_number_format: str - :param comment: A save-time comment for the definition. - :type comment: str - :param demands: - :type demands: list of :class:`object ` - :param description: The description. - :type description: str - :param drop_location: The drop location for the definition. - :type drop_location: str - :param job_authorization_scope: The job authorization scope for builds queued against this definition. - :type job_authorization_scope: object - :param job_cancel_timeout_in_minutes: The job cancel timeout (in minutes) for builds cancelled by user for this definition. - :type job_cancel_timeout_in_minutes: int - :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. - :type job_timeout_in_minutes: int - :param options: - :type options: list of :class:`BuildOption ` - :param process: The build process. - :type process: :class:`object ` - :param process_parameters: The process parameters for this definition. - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param repository: The repository. - :type repository: :class:`BuildRepository ` - :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` - :param tags: - :type tags: list of str - :param triggers: - :type triggers: list of :class:`object ` - :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, - 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, - 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, - 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, - 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, - 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, - 'quality': {'key': 'quality', 'type': 'object'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, - 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, - 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'drop_location': {'key': 'dropLocation', 'type': 'str'}, - 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, - 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, - 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'options': {'key': 'options', 'type': '[BuildOption]'}, - 'process': {'key': 'process', 'type': 'object'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'repository': {'key': 'repository', 'type': 'BuildRepository'}, - 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): - super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, latest_build=latest_build, latest_completed_build=latest_completed_build, metrics=metrics, quality=quality, queue=queue) - self.badge_enabled = badge_enabled - self.build_number_format = build_number_format - self.comment = comment - self.demands = demands - self.description = description - self.drop_location = drop_location - self.job_authorization_scope = job_authorization_scope - self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes - self.job_timeout_in_minutes = job_timeout_in_minutes - self.options = options - self.process = process - self.process_parameters = process_parameters - self.properties = properties - self.repository = repository - self.retention_rules = retention_rules - self.tags = tags - self.triggers = triggers - self.variable_groups = variable_groups - self.variables = variables diff --git a/vsts/vsts/build/v4_1/models/build_definition3_2.py b/vsts/vsts/build/v4_1/models/build_definition3_2.py deleted file mode 100644 index 54a25e9e..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition3_2.py +++ /dev/null @@ -1,152 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_definition_reference3_2 import BuildDefinitionReference3_2 - - -class BuildDefinition3_2(BuildDefinitionReference3_2): - """BuildDefinition3_2. - - :param created_date: The date the definition was created. - :type created_date: datetime - :param id: The ID of the referenced definition. - :type id: int - :param name: The name of the referenced definition. - :type name: str - :param path: The folder path of the definition. - :type path: str - :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` - :param queue_status: A value that indicates whether builds can be queued against this definition. - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The definition's URI. - :type uri: str - :param url: The REST URL of the definition. - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` - :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` - :param metrics: - :type metrics: list of :class:`BuildMetric ` - :param quality: The quality of the definition document (draft, etc.) - :type quality: object - :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` - :param badge_enabled: Indicates whether badges are enabled for this definition - :type badge_enabled: bool - :param build: - :type build: list of :class:`BuildDefinitionStep ` - :param build_number_format: The build number format - :type build_number_format: str - :param comment: The comment entered when saving the definition - :type comment: str - :param demands: - :type demands: list of :class:`object ` - :param description: The description - :type description: str - :param drop_location: The drop location for the definition - :type drop_location: str - :param job_authorization_scope: The job authorization scope for builds which are queued against this definition - :type job_authorization_scope: object - :param job_cancel_timeout_in_minutes: The job cancel timeout in minutes for builds which are cancelled by user for this definition - :type job_cancel_timeout_in_minutes: int - :param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition - :type job_timeout_in_minutes: int - :param latest_build: - :type latest_build: :class:`Build ` - :param latest_completed_build: - :type latest_completed_build: :class:`Build ` - :param options: - :type options: list of :class:`BuildOption ` - :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param repository: The repository - :type repository: :class:`BuildRepository ` - :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` - :param tags: - :type tags: list of str - :param triggers: - :type triggers: list of :class:`object ` - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, - 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, - 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, - 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, - 'quality': {'key': 'quality', 'type': 'object'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, - 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, - 'build': {'key': 'build', 'type': '[BuildDefinitionStep]'}, - 'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'drop_location': {'key': 'dropLocation', 'type': 'str'}, - 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, - 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, - 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, - 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, - 'options': {'key': 'options', 'type': '[BuildOption]'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'repository': {'key': 'repository', 'type': 'BuildRepository'}, - 'retention_rules': {'key': 'retentionRules', 'type': '[RetentionPolicy]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None, badge_enabled=None, build=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variables=None): - super(BuildDefinition3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, metrics=metrics, quality=quality, queue=queue) - self.badge_enabled = badge_enabled - self.build = build - self.build_number_format = build_number_format - self.comment = comment - self.demands = demands - self.description = description - self.drop_location = drop_location - self.job_authorization_scope = job_authorization_scope - self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes - self.job_timeout_in_minutes = job_timeout_in_minutes - self.latest_build = latest_build - self.latest_completed_build = latest_completed_build - self.options = options - self.process_parameters = process_parameters - self.properties = properties - self.repository = repository - self.retention_rules = retention_rules - self.tags = tags - self.triggers = triggers - self.variables = variables diff --git a/vsts/vsts/build/v4_1/models/build_definition_counter.py b/vsts/vsts/build/v4_1/models/build_definition_counter.py deleted file mode 100644 index 1056104f..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_counter.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionCounter(Model): - """BuildDefinitionCounter. - - :param id: The unique Id of the Counter. - :type id: int - :param seed: This is the original counter value. - :type seed: long - :param value: This is the current counter value. - :type value: long - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'seed': {'key': 'seed', 'type': 'long'}, - 'value': {'key': 'value', 'type': 'long'} - } - - def __init__(self, id=None, seed=None, value=None): - super(BuildDefinitionCounter, self).__init__() - self.id = id - self.seed = seed - self.value = value diff --git a/vsts/vsts/build/v4_1/models/build_definition_reference.py b/vsts/vsts/build/v4_1/models/build_definition_reference.py deleted file mode 100644 index 828ef304..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_reference.py +++ /dev/null @@ -1,87 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .definition_reference import DefinitionReference - - -class BuildDefinitionReference(DefinitionReference): - """BuildDefinitionReference. - - :param created_date: The date the definition was created. - :type created_date: datetime - :param id: The ID of the referenced definition. - :type id: int - :param name: The name of the referenced definition. - :type name: str - :param path: The folder path of the definition. - :type path: str - :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` - :param queue_status: A value that indicates whether builds can be queued against this definition. - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The definition's URI. - :type uri: str - :param url: The REST URL of the definition. - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` - :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` - :param latest_build: - :type latest_build: :class:`Build ` - :param latest_completed_build: - :type latest_completed_build: :class:`Build ` - :param metrics: - :type metrics: list of :class:`BuildMetric ` - :param quality: The quality of the definition document (draft, etc.) - :type quality: object - :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, - 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, - 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, - 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, - 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, - 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, - 'quality': {'key': 'quality', 'type': 'object'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None): - super(BuildDefinitionReference, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) - self._links = _links - self.authored_by = authored_by - self.draft_of = draft_of - self.drafts = drafts - self.latest_build = latest_build - self.latest_completed_build = latest_completed_build - self.metrics = metrics - self.quality = quality - self.queue = queue diff --git a/vsts/vsts/build/v4_1/models/build_definition_reference3_2.py b/vsts/vsts/build/v4_1/models/build_definition_reference3_2.py deleted file mode 100644 index 08361ab3..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_reference3_2.py +++ /dev/null @@ -1,79 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .definition_reference import DefinitionReference - - -class BuildDefinitionReference3_2(DefinitionReference): - """BuildDefinitionReference3_2. - - :param created_date: The date the definition was created. - :type created_date: datetime - :param id: The ID of the referenced definition. - :type id: int - :param name: The name of the referenced definition. - :type name: str - :param path: The folder path of the definition. - :type path: str - :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` - :param queue_status: A value that indicates whether builds can be queued against this definition. - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The definition's URI. - :type uri: str - :param url: The REST URL of the definition. - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` - :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` - :param metrics: - :type metrics: list of :class:`BuildMetric ` - :param quality: The quality of the definition document (draft, etc.) - :type quality: object - :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, - 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, - 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, - 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, - 'quality': {'key': 'quality', 'type': 'object'}, - 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None): - super(BuildDefinitionReference3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) - self._links = _links - self.authored_by = authored_by - self.draft_of = draft_of - self.drafts = drafts - self.metrics = metrics - self.quality = quality - self.queue = queue diff --git a/vsts/vsts/build/v4_1/models/build_definition_revision.py b/vsts/vsts/build/v4_1/models/build_definition_revision.py deleted file mode 100644 index 77d2b57d..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_revision.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionRevision(Model): - """BuildDefinitionRevision. - - :param changed_by: The identity of the person or process that changed the definition. - :type changed_by: :class:`IdentityRef ` - :param changed_date: The date and time that the definition was changed. - :type changed_date: datetime - :param change_type: The change type (add, edit, delete). - :type change_type: object - :param comment: The comment associated with the change. - :type comment: str - :param definition_url: A link to the definition at this revision. - :type definition_url: str - :param name: The name of the definition. - :type name: str - :param revision: The revision number. - :type revision: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, definition_url=None, name=None, revision=None): - super(BuildDefinitionRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.definition_url = definition_url - self.name = name - self.revision = revision diff --git a/vsts/vsts/build/v4_1/models/build_definition_step.py b/vsts/vsts/build/v4_1/models/build_definition_step.py deleted file mode 100644 index 2b2a0a63..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_step.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionStep(Model): - """BuildDefinitionStep. - - :param always_run: Indicates whether this step should run even if a previous step fails. - :type always_run: bool - :param condition: A condition that determines whether this step should run. - :type condition: str - :param continue_on_error: Indicates whether the phase should continue even if this step fails. - :type continue_on_error: bool - :param display_name: The display name for this step. - :type display_name: str - :param enabled: Indicates whether the step is enabled. - :type enabled: bool - :param environment: - :type environment: dict - :param inputs: - :type inputs: dict - :param ref_name: The reference name for this step. - :type ref_name: str - :param task: The task associated with this step. - :type task: :class:`TaskDefinitionReference ` - :param timeout_in_minutes: The time, in minutes, that this step is allowed to run. - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'environment': {'key': 'environment', 'type': '{str}'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, environment=None, inputs=None, ref_name=None, task=None, timeout_in_minutes=None): - super(BuildDefinitionStep, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.display_name = display_name - self.enabled = enabled - self.environment = environment - self.inputs = inputs - self.ref_name = ref_name - self.task = task - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/build/v4_1/models/build_definition_template.py b/vsts/vsts/build/v4_1/models/build_definition_template.py deleted file mode 100644 index 50efc44c..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_template.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionTemplate(Model): - """BuildDefinitionTemplate. - - :param can_delete: Indicates whether the template can be deleted. - :type can_delete: bool - :param category: The template category. - :type category: str - :param default_hosted_queue: An optional hosted agent queue for the template to use by default. - :type default_hosted_queue: str - :param description: A description of the template. - :type description: str - :param icons: - :type icons: dict - :param icon_task_id: The ID of the task whose icon is used when showing this template in the UI. - :type icon_task_id: str - :param id: The ID of the template. - :type id: str - :param name: The name of the template. - :type name: str - :param template: The actual template. - :type template: :class:`BuildDefinition ` - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icons': {'key': 'icons', 'type': '{str}'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'BuildDefinition'} - } - - def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): - super(BuildDefinitionTemplate, self).__init__() - self.can_delete = can_delete - self.category = category - self.default_hosted_queue = default_hosted_queue - self.description = description - self.icons = icons - self.icon_task_id = icon_task_id - self.id = id - self.name = name - self.template = template diff --git a/vsts/vsts/build/v4_1/models/build_definition_template3_2.py b/vsts/vsts/build/v4_1/models/build_definition_template3_2.py deleted file mode 100644 index e497668d..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_template3_2.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionTemplate3_2(Model): - """BuildDefinitionTemplate3_2. - - :param can_delete: - :type can_delete: bool - :param category: - :type category: str - :param default_hosted_queue: - :type default_hosted_queue: str - :param description: - :type description: str - :param icons: - :type icons: dict - :param icon_task_id: - :type icon_task_id: str - :param id: - :type id: str - :param name: - :type name: str - :param template: - :type template: :class:`BuildDefinition3_2 ` - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icons': {'key': 'icons', 'type': '{str}'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'BuildDefinition3_2'} - } - - def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): - super(BuildDefinitionTemplate3_2, self).__init__() - self.can_delete = can_delete - self.category = category - self.default_hosted_queue = default_hosted_queue - self.description = description - self.icons = icons - self.icon_task_id = icon_task_id - self.id = id - self.name = name - self.template = template diff --git a/vsts/vsts/build/v4_1/models/build_definition_variable.py b/vsts/vsts/build/v4_1/models/build_definition_variable.py deleted file mode 100644 index ebdb3921..00000000 --- a/vsts/vsts/build/v4_1/models/build_definition_variable.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildDefinitionVariable(Model): - """BuildDefinitionVariable. - - :param allow_override: Indicates whether the value can be set at queue time. - :type allow_override: bool - :param is_secret: Indicates whether the variable's value is a secret. - :type is_secret: bool - :param value: The value of the variable. - :type value: str - """ - - _attribute_map = { - 'allow_override': {'key': 'allowOverride', 'type': 'bool'}, - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, allow_override=None, is_secret=None, value=None): - super(BuildDefinitionVariable, self).__init__() - self.allow_override = allow_override - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/build/v4_1/models/build_log.py b/vsts/vsts/build/v4_1/models/build_log.py deleted file mode 100644 index 96219ff7..00000000 --- a/vsts/vsts/build/v4_1/models/build_log.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_log_reference import BuildLogReference - - -class BuildLog(BuildLogReference): - """BuildLog. - - :param id: The ID of the log. - :type id: int - :param type: The type of the log location. - :type type: str - :param url: A full link to the log resource. - :type url: str - :param created_on: The date and time the log was created. - :type created_on: datetime - :param last_changed_on: The date and time the log was last changed. - :type last_changed_on: datetime - :param line_count: The number of lines in the log. - :type line_count: long - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'line_count': {'key': 'lineCount', 'type': 'long'} - } - - def __init__(self, id=None, type=None, url=None, created_on=None, last_changed_on=None, line_count=None): - super(BuildLog, self).__init__(id=id, type=type, url=url) - self.created_on = created_on - self.last_changed_on = last_changed_on - self.line_count = line_count diff --git a/vsts/vsts/build/v4_1/models/build_log_reference.py b/vsts/vsts/build/v4_1/models/build_log_reference.py deleted file mode 100644 index 53f8a83d..00000000 --- a/vsts/vsts/build/v4_1/models/build_log_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildLogReference(Model): - """BuildLogReference. - - :param id: The ID of the log. - :type id: int - :param type: The type of the log location. - :type type: str - :param url: A full link to the log resource. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, type=None, url=None): - super(BuildLogReference, self).__init__() - self.id = id - self.type = type - self.url = url diff --git a/vsts/vsts/build/v4_1/models/build_metric.py b/vsts/vsts/build/v4_1/models/build_metric.py deleted file mode 100644 index 2e7fbeb6..00000000 --- a/vsts/vsts/build/v4_1/models/build_metric.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildMetric(Model): - """BuildMetric. - - :param date: The date for the scope. - :type date: datetime - :param int_value: The value. - :type int_value: int - :param name: The name of the metric. - :type name: str - :param scope: The scope. - :type scope: str - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'int_value': {'key': 'intValue', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'scope': {'key': 'scope', 'type': 'str'} - } - - def __init__(self, date=None, int_value=None, name=None, scope=None): - super(BuildMetric, self).__init__() - self.date = date - self.int_value = int_value - self.name = name - self.scope = scope diff --git a/vsts/vsts/build/v4_1/models/build_option.py b/vsts/vsts/build/v4_1/models/build_option.py deleted file mode 100644 index bc4ab6ff..00000000 --- a/vsts/vsts/build/v4_1/models/build_option.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOption(Model): - """BuildOption. - - :param definition: A reference to the build option. - :type definition: :class:`BuildOptionDefinitionReference ` - :param enabled: Indicates whether the behavior is enabled. - :type enabled: bool - :param inputs: - :type inputs: dict - """ - - _attribute_map = { - 'definition': {'key': 'definition', 'type': 'BuildOptionDefinitionReference'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'} - } - - def __init__(self, definition=None, enabled=None, inputs=None): - super(BuildOption, self).__init__() - self.definition = definition - self.enabled = enabled - self.inputs = inputs diff --git a/vsts/vsts/build/v4_1/models/build_option_definition.py b/vsts/vsts/build/v4_1/models/build_option_definition.py deleted file mode 100644 index 26bfc3bb..00000000 --- a/vsts/vsts/build/v4_1/models/build_option_definition.py +++ /dev/null @@ -1,44 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .build_option_definition_reference import BuildOptionDefinitionReference - - -class BuildOptionDefinition(BuildOptionDefinitionReference): - """BuildOptionDefinition. - - :param id: The ID of the referenced build option. - :type id: str - :param description: The description. - :type description: str - :param groups: The list of input groups defined for the build option. - :type groups: list of :class:`BuildOptionGroupDefinition ` - :param inputs: The list of inputs defined for the build option. - :type inputs: list of :class:`BuildOptionInputDefinition ` - :param name: The name of the build option. - :type name: str - :param ordinal: A value that indicates the relative order in which the behavior should be applied. - :type ordinal: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'groups': {'key': 'groups', 'type': '[BuildOptionGroupDefinition]'}, - 'inputs': {'key': 'inputs', 'type': '[BuildOptionInputDefinition]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'ordinal': {'key': 'ordinal', 'type': 'int'} - } - - def __init__(self, id=None, description=None, groups=None, inputs=None, name=None, ordinal=None): - super(BuildOptionDefinition, self).__init__(id=id) - self.description = description - self.groups = groups - self.inputs = inputs - self.name = name - self.ordinal = ordinal diff --git a/vsts/vsts/build/v4_1/models/build_option_definition_reference.py b/vsts/vsts/build/v4_1/models/build_option_definition_reference.py deleted file mode 100644 index fe99add1..00000000 --- a/vsts/vsts/build/v4_1/models/build_option_definition_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOptionDefinitionReference(Model): - """BuildOptionDefinitionReference. - - :param id: The ID of the referenced build option. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(BuildOptionDefinitionReference, self).__init__() - self.id = id diff --git a/vsts/vsts/build/v4_1/models/build_option_group_definition.py b/vsts/vsts/build/v4_1/models/build_option_group_definition.py deleted file mode 100644 index 7899211c..00000000 --- a/vsts/vsts/build/v4_1/models/build_option_group_definition.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOptionGroupDefinition(Model): - """BuildOptionGroupDefinition. - - :param display_name: The name of the group to display in the UI. - :type display_name: str - :param is_expanded: Indicates whether the group is initially displayed as expanded in the UI. - :type is_expanded: bool - :param name: The internal name of the group. - :type name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, display_name=None, is_expanded=None, name=None): - super(BuildOptionGroupDefinition, self).__init__() - self.display_name = display_name - self.is_expanded = is_expanded - self.name = name diff --git a/vsts/vsts/build/v4_1/models/build_option_input_definition.py b/vsts/vsts/build/v4_1/models/build_option_input_definition.py deleted file mode 100644 index 33408674..00000000 --- a/vsts/vsts/build/v4_1/models/build_option_input_definition.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildOptionInputDefinition(Model): - """BuildOptionInputDefinition. - - :param default_value: The default value. - :type default_value: str - :param group_name: The name of the input group that this input belongs to. - :type group_name: str - :param help: - :type help: dict - :param label: The label for the input. - :type label: str - :param name: The name of the input. - :type name: str - :param options: - :type options: dict - :param required: Indicates whether the input is required to have a value. - :type required: bool - :param type: Indicates the type of the input value. - :type type: object - :param visible_rule: The rule that is applied to determine whether the input is visible in the UI. - :type visible_rule: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help': {'key': 'help', 'type': '{str}'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, default_value=None, group_name=None, help=None, label=None, name=None, options=None, required=None, type=None, visible_rule=None): - super(BuildOptionInputDefinition, self).__init__() - self.default_value = default_value - self.group_name = group_name - self.help = help - self.label = label - self.name = name - self.options = options - self.required = required - self.type = type - self.visible_rule = visible_rule diff --git a/vsts/vsts/build/v4_1/models/build_report_metadata.py b/vsts/vsts/build/v4_1/models/build_report_metadata.py deleted file mode 100644 index d14733e5..00000000 --- a/vsts/vsts/build/v4_1/models/build_report_metadata.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildReportMetadata(Model): - """BuildReportMetadata. - - :param build_id: The Id of the build. - :type build_id: int - :param content: The content of the report. - :type content: str - :param type: The type of the report. - :type type: str - """ - - _attribute_map = { - 'build_id': {'key': 'buildId', 'type': 'int'}, - 'content': {'key': 'content', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, build_id=None, content=None, type=None): - super(BuildReportMetadata, self).__init__() - self.build_id = build_id - self.content = content - self.type = type diff --git a/vsts/vsts/build/v4_1/models/build_repository.py b/vsts/vsts/build/v4_1/models/build_repository.py deleted file mode 100644 index cd6f8fb0..00000000 --- a/vsts/vsts/build/v4_1/models/build_repository.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildRepository(Model): - """BuildRepository. - - :param checkout_submodules: Indicates whether to checkout submodules. - :type checkout_submodules: bool - :param clean: Indicates whether to clean the target folder when getting code from the repository. - :type clean: str - :param default_branch: The name of the default branch. - :type default_branch: str - :param id: The ID of the repository. - :type id: str - :param name: The friendly name of the repository. - :type name: str - :param properties: - :type properties: dict - :param root_folder: The root folder. - :type root_folder: str - :param type: The type of the repository. - :type type: str - :param url: The URL of the repository. - :type url: str - """ - - _attribute_map = { - 'checkout_submodules': {'key': 'checkoutSubmodules', 'type': 'bool'}, - 'clean': {'key': 'clean', 'type': 'str'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'root_folder': {'key': 'rootFolder', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, checkout_submodules=None, clean=None, default_branch=None, id=None, name=None, properties=None, root_folder=None, type=None, url=None): - super(BuildRepository, self).__init__() - self.checkout_submodules = checkout_submodules - self.clean = clean - self.default_branch = default_branch - self.id = id - self.name = name - self.properties = properties - self.root_folder = root_folder - self.type = type - self.url = url diff --git a/vsts/vsts/build/v4_1/models/build_request_validation_result.py b/vsts/vsts/build/v4_1/models/build_request_validation_result.py deleted file mode 100644 index e9f327da..00000000 --- a/vsts/vsts/build/v4_1/models/build_request_validation_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildRequestValidationResult(Model): - """BuildRequestValidationResult. - - :param message: The message associated with the result. - :type message: str - :param result: The result. - :type result: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'} - } - - def __init__(self, message=None, result=None): - super(BuildRequestValidationResult, self).__init__() - self.message = message - self.result = result diff --git a/vsts/vsts/build/v4_1/models/build_resource_usage.py b/vsts/vsts/build/v4_1/models/build_resource_usage.py deleted file mode 100644 index 75bc46c6..00000000 --- a/vsts/vsts/build/v4_1/models/build_resource_usage.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildResourceUsage(Model): - """BuildResourceUsage. - - :param distributed_task_agents: The number of build agents. - :type distributed_task_agents: int - :param paid_private_agent_slots: The number of paid private agent slots. - :type paid_private_agent_slots: int - :param total_usage: The total usage. - :type total_usage: int - :param xaml_controllers: The number of XAML controllers. - :type xaml_controllers: int - """ - - _attribute_map = { - 'distributed_task_agents': {'key': 'distributedTaskAgents', 'type': 'int'}, - 'paid_private_agent_slots': {'key': 'paidPrivateAgentSlots', 'type': 'int'}, - 'total_usage': {'key': 'totalUsage', 'type': 'int'}, - 'xaml_controllers': {'key': 'xamlControllers', 'type': 'int'} - } - - def __init__(self, distributed_task_agents=None, paid_private_agent_slots=None, total_usage=None, xaml_controllers=None): - super(BuildResourceUsage, self).__init__() - self.distributed_task_agents = distributed_task_agents - self.paid_private_agent_slots = paid_private_agent_slots - self.total_usage = total_usage - self.xaml_controllers = xaml_controllers diff --git a/vsts/vsts/build/v4_1/models/build_settings.py b/vsts/vsts/build/v4_1/models/build_settings.py deleted file mode 100644 index a36007ba..00000000 --- a/vsts/vsts/build/v4_1/models/build_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildSettings(Model): - """BuildSettings. - - :param days_to_keep_deleted_builds_before_destroy: The number of days to keep records of deleted builds. - :type days_to_keep_deleted_builds_before_destroy: int - :param default_retention_policy: The default retention policy. - :type default_retention_policy: :class:`RetentionPolicy ` - :param maximum_retention_policy: The maximum retention policy. - :type maximum_retention_policy: :class:`RetentionPolicy ` - """ - - _attribute_map = { - 'days_to_keep_deleted_builds_before_destroy': {'key': 'daysToKeepDeletedBuildsBeforeDestroy', 'type': 'int'}, - 'default_retention_policy': {'key': 'defaultRetentionPolicy', 'type': 'RetentionPolicy'}, - 'maximum_retention_policy': {'key': 'maximumRetentionPolicy', 'type': 'RetentionPolicy'} - } - - def __init__(self, days_to_keep_deleted_builds_before_destroy=None, default_retention_policy=None, maximum_retention_policy=None): - super(BuildSettings, self).__init__() - self.days_to_keep_deleted_builds_before_destroy = days_to_keep_deleted_builds_before_destroy - self.default_retention_policy = default_retention_policy - self.maximum_retention_policy = maximum_retention_policy diff --git a/vsts/vsts/build/v4_1/models/change.py b/vsts/vsts/build/v4_1/models/change.py deleted file mode 100644 index 5d1d81a8..00000000 --- a/vsts/vsts/build/v4_1/models/change.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param author: The author of the change. - :type author: :class:`IdentityRef ` - :param display_uri: The location of a user-friendly representation of the resource. - :type display_uri: str - :param id: The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. - :type id: str - :param location: The location of the full representation of the resource. - :type location: str - :param message: The description of the change. This might be a commit message or changeset description. - :type message: str - :param message_truncated: Indicates whether the message was truncated. - :type message_truncated: bool - :param pusher: The person or process that pushed the change. - :type pusher: str - :param timestamp: The timestamp for the change. - :type timestamp: datetime - :param type: The type of change. "commit", "changeset", etc. - :type type: str - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'display_uri': {'key': 'displayUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'message_truncated': {'key': 'messageTruncated', 'type': 'bool'}, - 'pusher': {'key': 'pusher', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, pusher=None, timestamp=None, type=None): - super(Change, self).__init__() - self.author = author - self.display_uri = display_uri - self.id = id - self.location = location - self.message = message - self.message_truncated = message_truncated - self.pusher = pusher - self.timestamp = timestamp - self.type = type diff --git a/vsts/vsts/build/v4_1/models/data_source_binding_base.py b/vsts/vsts/build/v4_1/models/data_source_binding_base.py deleted file mode 100644 index 04638445..00000000 --- a/vsts/vsts/build/v4_1/models/data_source_binding_base.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: Gets or sets the name of the data source. - :type data_source_name: str - :param endpoint_id: Gets or sets the endpoint Id. - :type endpoint_id: str - :param endpoint_url: Gets or sets the url of the service endpoint. - :type endpoint_url: str - :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets or sets the parameters for the data source. - :type parameters: dict - :param result_selector: Gets or sets the result selector. - :type result_selector: str - :param result_template: Gets or sets the result template. - :type result_template: str - :param target: Gets or sets the target of the data source. - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.headers = headers - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target diff --git a/vsts/vsts/build/v4_1/models/definition_reference.py b/vsts/vsts/build/v4_1/models/definition_reference.py deleted file mode 100644 index 5b5acbdb..00000000 --- a/vsts/vsts/build/v4_1/models/definition_reference.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DefinitionReference(Model): - """DefinitionReference. - - :param created_date: The date the definition was created. - :type created_date: datetime - :param id: The ID of the referenced definition. - :type id: int - :param name: The name of the referenced definition. - :type name: str - :param path: The folder path of the definition. - :type path: str - :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` - :param queue_status: A value that indicates whether builds can be queued against this definition. - :type queue_status: object - :param revision: The definition revision number. - :type revision: int - :param type: The type of the definition. - :type type: object - :param uri: The definition's URI. - :type uri: str - :param url: The REST URL of the definition. - :type url: str - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'queue_status': {'key': 'queueStatus', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None): - super(DefinitionReference, self).__init__() - self.created_date = created_date - self.id = id - self.name = name - self.path = path - self.project = project - self.queue_status = queue_status - self.revision = revision - self.type = type - self.uri = uri - self.url = url diff --git a/vsts/vsts/build/v4_1/models/deployment.py b/vsts/vsts/build/v4_1/models/deployment.py deleted file mode 100644 index b73b0a27..00000000 --- a/vsts/vsts/build/v4_1/models/deployment.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Deployment(Model): - """Deployment. - - :param type: - :type type: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, type=None): - super(Deployment, self).__init__() - self.type = type diff --git a/vsts/vsts/build/v4_1/models/folder.py b/vsts/vsts/build/v4_1/models/folder.py deleted file mode 100644 index b43e6a4d..00000000 --- a/vsts/vsts/build/v4_1/models/folder.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Folder(Model): - """Folder. - - :param created_by: The process or person who created the folder. - :type created_by: :class:`IdentityRef ` - :param created_on: The date the folder was created. - :type created_on: datetime - :param description: The description. - :type description: str - :param last_changed_by: The process or person that last changed the folder. - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: The date the folder was last changed. - :type last_changed_date: datetime - :param path: The full path. - :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'path': {'key': 'path', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'} - } - - def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None, project=None): - super(Folder, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.path = path - self.project = project diff --git a/vsts/vsts/build/v4_1/models/graph_subject_base.py b/vsts/vsts/build/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/build/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/build/v4_1/models/identity_ref.py b/vsts/vsts/build/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/build/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/build/v4_1/models/issue.py b/vsts/vsts/build/v4_1/models/issue.py deleted file mode 100644 index 79a4c6bc..00000000 --- a/vsts/vsts/build/v4_1/models/issue.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Issue(Model): - """Issue. - - :param category: The category. - :type category: str - :param data: - :type data: dict - :param message: A description of the issue. - :type message: str - :param type: The type (error, warning) of the issue. - :type type: object - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'str'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, category=None, data=None, message=None, type=None): - super(Issue, self).__init__() - self.category = category - self.data = data - self.message = message - self.type = type diff --git a/vsts/vsts/build/v4_1/models/json_patch_operation.py b/vsts/vsts/build/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/build/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/build/v4_1/models/process_parameters.py b/vsts/vsts/build/v4_1/models/process_parameters.py deleted file mode 100644 index 657d9485..00000000 --- a/vsts/vsts/build/v4_1/models/process_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessParameters(Model): - """ProcessParameters. - - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` - :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` - """ - - _attribute_map = { - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} - } - - def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): - super(ProcessParameters, self).__init__() - self.data_source_bindings = data_source_bindings - self.inputs = inputs - self.source_definitions = source_definitions diff --git a/vsts/vsts/build/v4_1/models/reference_links.py b/vsts/vsts/build/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/build/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/build/v4_1/models/release_reference.py b/vsts/vsts/build/v4_1/models/release_reference.py deleted file mode 100644 index 370c7131..00000000 --- a/vsts/vsts/build/v4_1/models/release_reference.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseReference(Model): - """ReleaseReference. - - :param definition_id: - :type definition_id: int - :param environment_definition_id: - :type environment_definition_id: int - :param environment_definition_name: - :type environment_definition_name: str - :param environment_id: - :type environment_id: int - :param environment_name: - :type environment_name: str - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, - 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, - 'environment_id': {'key': 'environmentId', 'type': 'int'}, - 'environment_name': {'key': 'environmentName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): - super(ReleaseReference, self).__init__() - self.definition_id = definition_id - self.environment_definition_id = environment_definition_id - self.environment_definition_name = environment_definition_name - self.environment_id = environment_id - self.environment_name = environment_name - self.id = id - self.name = name diff --git a/vsts/vsts/build/v4_1/models/repository_webhook.py b/vsts/vsts/build/v4_1/models/repository_webhook.py deleted file mode 100644 index 91fb6357..00000000 --- a/vsts/vsts/build/v4_1/models/repository_webhook.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RepositoryWebhook(Model): - """RepositoryWebhook. - - :param name: The friendly name of the repository. - :type name: str - :param types: - :type types: list of DefinitionTriggerType - :param url: The URL of the repository. - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'types': {'key': 'types', 'type': '[object]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, types=None, url=None): - super(RepositoryWebhook, self).__init__() - self.name = name - self.types = types - self.url = url diff --git a/vsts/vsts/build/v4_1/models/resource_ref.py b/vsts/vsts/build/v4_1/models/resource_ref.py deleted file mode 100644 index 903e57ee..00000000 --- a/vsts/vsts/build/v4_1/models/resource_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceRef(Model): - """ResourceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(ResourceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/build/v4_1/models/retention_policy.py b/vsts/vsts/build/v4_1/models/retention_policy.py deleted file mode 100644 index 82418707..00000000 --- a/vsts/vsts/build/v4_1/models/retention_policy.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RetentionPolicy(Model): - """RetentionPolicy. - - :param artifacts: - :type artifacts: list of str - :param artifact_types_to_delete: - :type artifact_types_to_delete: list of str - :param branches: - :type branches: list of str - :param days_to_keep: The number of days to keep builds. - :type days_to_keep: int - :param delete_build_record: Indicates whether the build record itself should be deleted. - :type delete_build_record: bool - :param delete_test_results: Indicates whether to delete test results associated with the build. - :type delete_test_results: bool - :param minimum_to_keep: The minimum number of builds to keep. - :type minimum_to_keep: int - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[str]'}, - 'artifact_types_to_delete': {'key': 'artifactTypesToDelete', 'type': '[str]'}, - 'branches': {'key': 'branches', 'type': '[str]'}, - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, - 'delete_build_record': {'key': 'deleteBuildRecord', 'type': 'bool'}, - 'delete_test_results': {'key': 'deleteTestResults', 'type': 'bool'}, - 'minimum_to_keep': {'key': 'minimumToKeep', 'type': 'int'} - } - - def __init__(self, artifacts=None, artifact_types_to_delete=None, branches=None, days_to_keep=None, delete_build_record=None, delete_test_results=None, minimum_to_keep=None): - super(RetentionPolicy, self).__init__() - self.artifacts = artifacts - self.artifact_types_to_delete = artifact_types_to_delete - self.branches = branches - self.days_to_keep = days_to_keep - self.delete_build_record = delete_build_record - self.delete_test_results = delete_test_results - self.minimum_to_keep = minimum_to_keep diff --git a/vsts/vsts/build/v4_1/models/source_provider_attributes.py b/vsts/vsts/build/v4_1/models/source_provider_attributes.py deleted file mode 100644 index e03a9198..00000000 --- a/vsts/vsts/build/v4_1/models/source_provider_attributes.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SourceProviderAttributes(Model): - """SourceProviderAttributes. - - :param name: The name of the source provider. - :type name: str - :param supported_capabilities: The capabilities supported by this source provider. - :type supported_capabilities: dict - :param supported_triggers: The types of triggers supported by this source provider. - :type supported_triggers: list of :class:`SupportedTrigger ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{bool}'}, - 'supported_triggers': {'key': 'supportedTriggers', 'type': '[SupportedTrigger]'} - } - - def __init__(self, name=None, supported_capabilities=None, supported_triggers=None): - super(SourceProviderAttributes, self).__init__() - self.name = name - self.supported_capabilities = supported_capabilities - self.supported_triggers = supported_triggers diff --git a/vsts/vsts/build/v4_1/models/source_repositories.py b/vsts/vsts/build/v4_1/models/source_repositories.py deleted file mode 100644 index 0d1f9400..00000000 --- a/vsts/vsts/build/v4_1/models/source_repositories.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SourceRepositories(Model): - """SourceRepositories. - - :param continuation_token: A token used to continue this paged request; 'null' if the request is complete - :type continuation_token: str - :param page_length: The number of repositories requested for each page - :type page_length: int - :param repositories: A list of repositories - :type repositories: list of :class:`SourceRepository ` - :param total_page_count: The total number of pages, or '-1' if unknown - :type total_page_count: int - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'page_length': {'key': 'pageLength', 'type': 'int'}, - 'repositories': {'key': 'repositories', 'type': '[SourceRepository]'}, - 'total_page_count': {'key': 'totalPageCount', 'type': 'int'} - } - - def __init__(self, continuation_token=None, page_length=None, repositories=None, total_page_count=None): - super(SourceRepositories, self).__init__() - self.continuation_token = continuation_token - self.page_length = page_length - self.repositories = repositories - self.total_page_count = total_page_count diff --git a/vsts/vsts/build/v4_1/models/source_repository.py b/vsts/vsts/build/v4_1/models/source_repository.py deleted file mode 100644 index 3e2e39a1..00000000 --- a/vsts/vsts/build/v4_1/models/source_repository.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SourceRepository(Model): - """SourceRepository. - - :param default_branch: The name of the default branch. - :type default_branch: str - :param full_name: The full name of the repository. - :type full_name: str - :param id: The ID of the repository. - :type id: str - :param name: The friendly name of the repository. - :type name: str - :param properties: - :type properties: dict - :param source_provider_name: The name of the source provider the repository is from. - :type source_provider_name: str - :param url: The URL of the repository. - :type url: str - """ - - _attribute_map = { - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'full_name': {'key': 'fullName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'source_provider_name': {'key': 'sourceProviderName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, default_branch=None, full_name=None, id=None, name=None, properties=None, source_provider_name=None, url=None): - super(SourceRepository, self).__init__() - self.default_branch = default_branch - self.full_name = full_name - self.id = id - self.name = name - self.properties = properties - self.source_provider_name = source_provider_name - self.url = url diff --git a/vsts/vsts/build/v4_1/models/source_repository_item.py b/vsts/vsts/build/v4_1/models/source_repository_item.py deleted file mode 100644 index 14faf73f..00000000 --- a/vsts/vsts/build/v4_1/models/source_repository_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SourceRepositoryItem(Model): - """SourceRepositoryItem. - - :param is_container: Whether the item is able to have sub-items (e.g., is a folder). - :type is_container: bool - :param path: The full path of the item, relative to the root of the repository. - :type path: str - :param type: The type of the item (folder, file, etc). - :type type: str - :param url: The URL of the item. - :type url: str - """ - - _attribute_map = { - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, is_container=None, path=None, type=None, url=None): - super(SourceRepositoryItem, self).__init__() - self.is_container = is_container - self.path = path - self.type = type - self.url = url diff --git a/vsts/vsts/build/v4_1/models/supported_trigger.py b/vsts/vsts/build/v4_1/models/supported_trigger.py deleted file mode 100644 index d0dcfa54..00000000 --- a/vsts/vsts/build/v4_1/models/supported_trigger.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SupportedTrigger(Model): - """SupportedTrigger. - - :param default_polling_interval: The default interval to wait between polls (only relevant when NotificationType is Polling). - :type default_polling_interval: int - :param notification_type: How the trigger is notified of changes. - :type notification_type: str - :param supported_capabilities: The capabilities supported by this trigger. - :type supported_capabilities: dict - :param type: The type of trigger. - :type type: object - """ - - _attribute_map = { - 'default_polling_interval': {'key': 'defaultPollingInterval', 'type': 'int'}, - 'notification_type': {'key': 'notificationType', 'type': 'str'}, - 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, default_polling_interval=None, notification_type=None, supported_capabilities=None, type=None): - super(SupportedTrigger, self).__init__() - self.default_polling_interval = default_polling_interval - self.notification_type = notification_type - self.supported_capabilities = supported_capabilities - self.type = type diff --git a/vsts/vsts/build/v4_1/models/task_agent_pool_reference.py b/vsts/vsts/build/v4_1/models/task_agent_pool_reference.py deleted file mode 100644 index 785ea490..00000000 --- a/vsts/vsts/build/v4_1/models/task_agent_pool_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolReference(Model): - """TaskAgentPoolReference. - - :param id: The pool ID. - :type id: int - :param is_hosted: A value indicating whether or not this pool is managed by the service. - :type is_hosted: bool - :param name: The pool name. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, is_hosted=None, name=None): - super(TaskAgentPoolReference, self).__init__() - self.id = id - self.is_hosted = is_hosted - self.name = name diff --git a/vsts/vsts/build/v4_1/models/task_definition_reference.py b/vsts/vsts/build/v4_1/models/task_definition_reference.py deleted file mode 100644 index 7e55102f..00000000 --- a/vsts/vsts/build/v4_1/models/task_definition_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinitionReference(Model): - """TaskDefinitionReference. - - :param definition_type: The type of task (task or task group). - :type definition_type: str - :param id: The ID of the task. - :type id: str - :param version_spec: The version of the task. - :type version_spec: str - """ - - _attribute_map = { - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'version_spec': {'key': 'versionSpec', 'type': 'str'} - } - - def __init__(self, definition_type=None, id=None, version_spec=None): - super(TaskDefinitionReference, self).__init__() - self.definition_type = definition_type - self.id = id - self.version_spec = version_spec diff --git a/vsts/vsts/build/v4_1/models/task_input_definition_base.py b/vsts/vsts/build/v4_1/models/task_input_definition_base.py deleted file mode 100644 index 1b4e68ff..00000000 --- a/vsts/vsts/build/v4_1/models/task_input_definition_base.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param aliases: - :type aliases: list of str - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'aliases': {'key': 'aliases', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.aliases = aliases - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule diff --git a/vsts/vsts/build/v4_1/models/task_input_validation.py b/vsts/vsts/build/v4_1/models/task_input_validation.py deleted file mode 100644 index 42524013..00000000 --- a/vsts/vsts/build/v4_1/models/task_input_validation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message diff --git a/vsts/vsts/build/v4_1/models/task_orchestration_plan_reference.py b/vsts/vsts/build/v4_1/models/task_orchestration_plan_reference.py deleted file mode 100644 index fabce7a3..00000000 --- a/vsts/vsts/build/v4_1/models/task_orchestration_plan_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationPlanReference(Model): - """TaskOrchestrationPlanReference. - - :param orchestration_type: The type of the plan. - :type orchestration_type: int - :param plan_id: The ID of the plan. - :type plan_id: str - """ - - _attribute_map = { - 'orchestration_type': {'key': 'orchestrationType', 'type': 'int'}, - 'plan_id': {'key': 'planId', 'type': 'str'} - } - - def __init__(self, orchestration_type=None, plan_id=None): - super(TaskOrchestrationPlanReference, self).__init__() - self.orchestration_type = orchestration_type - self.plan_id = plan_id diff --git a/vsts/vsts/build/v4_1/models/task_reference.py b/vsts/vsts/build/v4_1/models/task_reference.py deleted file mode 100644 index b3214760..00000000 --- a/vsts/vsts/build/v4_1/models/task_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskReference(Model): - """TaskReference. - - :param id: The ID of the task definition. - :type id: str - :param name: The name of the task definition. - :type name: str - :param version: The version of the task definition. - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, name=None, version=None): - super(TaskReference, self).__init__() - self.id = id - self.name = name - self.version = version diff --git a/vsts/vsts/build/v4_1/models/task_source_definition_base.py b/vsts/vsts/build/v4_1/models/task_source_definition_base.py deleted file mode 100644 index c8a6b6d6..00000000 --- a/vsts/vsts/build/v4_1/models/task_source_definition_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target diff --git a/vsts/vsts/build/v4_1/models/team_project_reference.py b/vsts/vsts/build/v4_1/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/build/v4_1/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/build/v4_1/models/test_results_context.py b/vsts/vsts/build/v4_1/models/test_results_context.py deleted file mode 100644 index 0d9c2adc..00000000 --- a/vsts/vsts/build/v4_1/models/test_results_context.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsContext(Model): - """TestResultsContext. - - :param build: - :type build: :class:`BuildReference ` - :param context_type: - :type context_type: object - :param release: - :type release: :class:`ReleaseReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'BuildReference'}, - 'context_type': {'key': 'contextType', 'type': 'object'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'} - } - - def __init__(self, build=None, context_type=None, release=None): - super(TestResultsContext, self).__init__() - self.build = build - self.context_type = context_type - self.release = release diff --git a/vsts/vsts/build/v4_1/models/timeline.py b/vsts/vsts/build/v4_1/models/timeline.py deleted file mode 100644 index a4622a6e..00000000 --- a/vsts/vsts/build/v4_1/models/timeline.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .timeline_reference import TimelineReference - - -class Timeline(TimelineReference): - """Timeline. - - :param change_id: The change ID. - :type change_id: int - :param id: The ID of the timeline. - :type id: str - :param url: The REST URL of the timeline. - :type url: str - :param last_changed_by: The process or person that last changed the timeline. - :type last_changed_by: str - :param last_changed_on: The time the timeline was last changed. - :type last_changed_on: datetime - :param records: - :type records: list of :class:`TimelineRecord ` - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'records': {'key': 'records', 'type': '[TimelineRecord]'} - } - - def __init__(self, change_id=None, id=None, url=None, last_changed_by=None, last_changed_on=None, records=None): - super(Timeline, self).__init__(change_id=change_id, id=id, url=url) - self.last_changed_by = last_changed_by - self.last_changed_on = last_changed_on - self.records = records diff --git a/vsts/vsts/build/v4_1/models/timeline_record.py b/vsts/vsts/build/v4_1/models/timeline_record.py deleted file mode 100644 index 4c4d6a1b..00000000 --- a/vsts/vsts/build/v4_1/models/timeline_record.py +++ /dev/null @@ -1,113 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineRecord(Model): - """TimelineRecord. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param change_id: The change ID. - :type change_id: int - :param current_operation: A string that indicates the current operation. - :type current_operation: str - :param details: A reference to a sub-timeline. - :type details: :class:`TimelineReference ` - :param error_count: The number of errors produced by this operation. - :type error_count: int - :param finish_time: The finish time. - :type finish_time: datetime - :param id: The ID of the record. - :type id: str - :param issues: - :type issues: list of :class:`Issue ` - :param last_modified: The time the record was last modified. - :type last_modified: datetime - :param log: A reference to the log produced by this operation. - :type log: :class:`BuildLogReference ` - :param name: The name. - :type name: str - :param order: An ordinal value relative to other records. - :type order: int - :param parent_id: The ID of the record's parent. - :type parent_id: str - :param percent_complete: The current completion percentage. - :type percent_complete: int - :param result: The result. - :type result: object - :param result_code: The result code. - :type result_code: str - :param start_time: The start time. - :type start_time: datetime - :param state: The state of the record. - :type state: object - :param task: A reference to the task represented by this timeline record. - :type task: :class:`TaskReference ` - :param type: The type of the record. - :type type: str - :param url: The REST URL of the timeline record. - :type url: str - :param warning_count: The number of warnings produced by this operation. - :type warning_count: int - :param worker_name: The name of the agent running the operation. - :type worker_name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'current_operation': {'key': 'currentOperation', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'TimelineReference'}, - 'error_count': {'key': 'errorCount', 'type': 'int'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'log': {'key': 'log', 'type': 'BuildLogReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'parent_id': {'key': 'parentId', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'result': {'key': 'result', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'TaskReference'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'warning_count': {'key': 'warningCount', 'type': 'int'}, - 'worker_name': {'key': 'workerName', 'type': 'str'} - } - - def __init__(self, _links=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): - super(TimelineRecord, self).__init__() - self._links = _links - self.change_id = change_id - self.current_operation = current_operation - self.details = details - self.error_count = error_count - self.finish_time = finish_time - self.id = id - self.issues = issues - self.last_modified = last_modified - self.log = log - self.name = name - self.order = order - self.parent_id = parent_id - self.percent_complete = percent_complete - self.result = result - self.result_code = result_code - self.start_time = start_time - self.state = state - self.task = task - self.type = type - self.url = url - self.warning_count = warning_count - self.worker_name = worker_name diff --git a/vsts/vsts/build/v4_1/models/timeline_reference.py b/vsts/vsts/build/v4_1/models/timeline_reference.py deleted file mode 100644 index 038bfcde..00000000 --- a/vsts/vsts/build/v4_1/models/timeline_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineReference(Model): - """TimelineReference. - - :param change_id: The change ID. - :type change_id: int - :param id: The ID of the timeline. - :type id: str - :param url: The REST URL of the timeline. - :type url: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_id=None, id=None, url=None): - super(TimelineReference, self).__init__() - self.change_id = change_id - self.id = id - self.url = url diff --git a/vsts/vsts/build/v4_1/models/variable_group.py b/vsts/vsts/build/v4_1/models/variable_group.py deleted file mode 100644 index b684e629..00000000 --- a/vsts/vsts/build/v4_1/models/variable_group.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .variable_group_reference import VariableGroupReference - - -class VariableGroup(VariableGroupReference): - """VariableGroup. - - :param id: The ID of the variable group. - :type id: int - :param description: The description. - :type description: str - :param name: The name of the variable group. - :type name: str - :param type: The type of the variable group. - :type type: str - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} - } - - def __init__(self, id=None, description=None, name=None, type=None, variables=None): - super(VariableGroup, self).__init__(id=id) - self.description = description - self.name = name - self.type = type - self.variables = variables diff --git a/vsts/vsts/build/v4_1/models/variable_group_reference.py b/vsts/vsts/build/v4_1/models/variable_group_reference.py deleted file mode 100644 index ce959d97..00000000 --- a/vsts/vsts/build/v4_1/models/variable_group_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroupReference(Model): - """VariableGroupReference. - - :param id: The ID of the variable group. - :type id: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, id=None): - super(VariableGroupReference, self).__init__() - self.id = id diff --git a/vsts/vsts/build/v4_1/models/web_api_connected_service_ref.py b/vsts/vsts/build/v4_1/models/web_api_connected_service_ref.py deleted file mode 100644 index 4a0e1863..00000000 --- a/vsts/vsts/build/v4_1/models/web_api_connected_service_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiConnectedServiceRef(Model): - """WebApiConnectedServiceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WebApiConnectedServiceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/build/v4_1/models/xaml_build_controller_reference.py b/vsts/vsts/build/v4_1/models/xaml_build_controller_reference.py deleted file mode 100644 index 52177b53..00000000 --- a/vsts/vsts/build/v4_1/models/xaml_build_controller_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class XamlBuildControllerReference(Model): - """XamlBuildControllerReference. - - :param id: Id of the resource - :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(XamlBuildControllerReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/__init__.py b/vsts/vsts/cloud_load_test/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/cloud_load_test/v4_1/models/__init__.py b/vsts/vsts/cloud_load_test/v4_1/models/__init__.py deleted file mode 100644 index b32655dc..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/__init__.py +++ /dev/null @@ -1,107 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .agent_group import AgentGroup -from .agent_group_access_data import AgentGroupAccessData -from .application import Application -from .application_counters import ApplicationCounters -from .application_type import ApplicationType -from .browser_mix import BrowserMix -from .clt_customer_intelligence_data import CltCustomerIntelligenceData -from .counter_group import CounterGroup -from .counter_instance_samples import CounterInstanceSamples -from .counter_sample import CounterSample -from .counter_sample_query_details import CounterSampleQueryDetails -from .counter_samples_result import CounterSamplesResult -from .diagnostics import Diagnostics -from .drop_access_data import DropAccessData -from .error_details import ErrorDetails -from .load_generation_geo_location import LoadGenerationGeoLocation -from .load_test import LoadTest -from .load_test_definition import LoadTestDefinition -from .load_test_errors import LoadTestErrors -from .load_test_run_details import LoadTestRunDetails -from .load_test_run_settings import LoadTestRunSettings -from .overridable_run_settings import OverridableRunSettings -from .page_summary import PageSummary -from .request_summary import RequestSummary -from .scenario_summary import ScenarioSummary -from .static_agent_run_setting import StaticAgentRunSetting -from .sub_type import SubType -from .summary_percentile_data import SummaryPercentileData -from .tenant_details import TenantDetails -from .test_definition import TestDefinition -from .test_definition_basic import TestDefinitionBasic -from .test_drop import TestDrop -from .test_drop_ref import TestDropRef -from .test_results import TestResults -from .test_results_summary import TestResultsSummary -from .test_run import TestRun -from .test_run_abort_message import TestRunAbortMessage -from .test_run_basic import TestRunBasic -from .test_run_counter_instance import TestRunCounterInstance -from .test_run_message import TestRunMessage -from .test_settings import TestSettings -from .test_summary import TestSummary -from .transaction_summary import TransactionSummary -from .web_api_load_test_machine_input import WebApiLoadTestMachineInput -from .web_api_setup_paramaters import WebApiSetupParamaters -from .web_api_test_machine import WebApiTestMachine -from .web_api_user_load_test_machine_input import WebApiUserLoadTestMachineInput -from .web_instance_summary_data import WebInstanceSummaryData - -__all__ = [ - 'AgentGroup', - 'AgentGroupAccessData', - 'Application', - 'ApplicationCounters', - 'ApplicationType', - 'BrowserMix', - 'CltCustomerIntelligenceData', - 'CounterGroup', - 'CounterInstanceSamples', - 'CounterSample', - 'CounterSampleQueryDetails', - 'CounterSamplesResult', - 'Diagnostics', - 'DropAccessData', - 'ErrorDetails', - 'LoadGenerationGeoLocation', - 'LoadTest', - 'LoadTestDefinition', - 'LoadTestErrors', - 'LoadTestRunDetails', - 'LoadTestRunSettings', - 'OverridableRunSettings', - 'PageSummary', - 'RequestSummary', - 'ScenarioSummary', - 'StaticAgentRunSetting', - 'SubType', - 'SummaryPercentileData', - 'TenantDetails', - 'TestDefinition', - 'TestDefinitionBasic', - 'TestDrop', - 'TestDropRef', - 'TestResults', - 'TestResultsSummary', - 'TestRun', - 'TestRunAbortMessage', - 'TestRunBasic', - 'TestRunCounterInstance', - 'TestRunMessage', - 'TestSettings', - 'TestSummary', - 'TransactionSummary', - 'WebApiLoadTestMachineInput', - 'WebApiSetupParamaters', - 'WebApiTestMachine', - 'WebApiUserLoadTestMachineInput', - 'WebInstanceSummaryData', -] diff --git a/vsts/vsts/cloud_load_test/v4_1/models/agent_group.py b/vsts/vsts/cloud_load_test/v4_1/models/agent_group.py deleted file mode 100644 index b008cfbb..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/agent_group.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentGroup(Model): - """AgentGroup. - - :param created_by: - :type created_by: IdentityRef - :param creation_time: - :type creation_time: datetime - :param group_id: - :type group_id: str - :param group_name: - :type group_name: str - :param machine_access_data: - :type machine_access_data: list of :class:`AgentGroupAccessData ` - :param machine_configuration: - :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` - :param tenant_id: - :type tenant_id: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'machine_access_data': {'key': 'machineAccessData', 'type': '[AgentGroupAccessData]'}, - 'machine_configuration': {'key': 'machineConfiguration', 'type': 'WebApiUserLoadTestMachineInput'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'} - } - - def __init__(self, created_by=None, creation_time=None, group_id=None, group_name=None, machine_access_data=None, machine_configuration=None, tenant_id=None): - super(AgentGroup, self).__init__() - self.created_by = created_by - self.creation_time = creation_time - self.group_id = group_id - self.group_name = group_name - self.machine_access_data = machine_access_data - self.machine_configuration = machine_configuration - self.tenant_id = tenant_id diff --git a/vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py b/vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py deleted file mode 100644 index df47a8a1..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/agent_group_access_data.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentGroupAccessData(Model): - """AgentGroupAccessData. - - :param details: - :type details: str - :param storage_connection_string: - :type storage_connection_string: str - :param storage_end_point: - :type storage_end_point: str - :param storage_name: - :type storage_name: str - :param storage_type: - :type storage_type: str - """ - - _attribute_map = { - 'details': {'key': 'details', 'type': 'str'}, - 'storage_connection_string': {'key': 'storageConnectionString', 'type': 'str'}, - 'storage_end_point': {'key': 'storageEndPoint', 'type': 'str'}, - 'storage_name': {'key': 'storageName', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'} - } - - def __init__(self, details=None, storage_connection_string=None, storage_end_point=None, storage_name=None, storage_type=None): - super(AgentGroupAccessData, self).__init__() - self.details = details - self.storage_connection_string = storage_connection_string - self.storage_end_point = storage_end_point - self.storage_name = storage_name - self.storage_type = storage_type diff --git a/vsts/vsts/cloud_load_test/v4_1/models/application.py b/vsts/vsts/cloud_load_test/v4_1/models/application.py deleted file mode 100644 index 92393fc1..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/application.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Application(Model): - """Application. - - :param application_id: - :type application_id: str - :param description: - :type description: str - :param name: - :type name: str - :param path: - :type path: str - :param path_seperator: - :type path_seperator: str - :param type: - :type type: str - :param version: - :type version: str - """ - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'path_seperator': {'key': 'pathSeperator', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, application_id=None, description=None, name=None, path=None, path_seperator=None, type=None, version=None): - super(Application, self).__init__() - self.application_id = application_id - self.description = description - self.name = name - self.path = path - self.path_seperator = path_seperator - self.type = type - self.version = version diff --git a/vsts/vsts/cloud_load_test/v4_1/models/application_counters.py b/vsts/vsts/cloud_load_test/v4_1/models/application_counters.py deleted file mode 100644 index 3db1ab75..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/application_counters.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ApplicationCounters(Model): - """ApplicationCounters. - - :param application_id: - :type application_id: str - :param description: - :type description: str - :param id: - :type id: str - :param is_default: - :type is_default: bool - :param name: - :type name: str - :param path: - :type path: str - """ - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, application_id=None, description=None, id=None, is_default=None, name=None, path=None): - super(ApplicationCounters, self).__init__() - self.application_id = application_id - self.description = description - self.id = id - self.is_default = is_default - self.name = name - self.path = path diff --git a/vsts/vsts/cloud_load_test/v4_1/models/application_type.py b/vsts/vsts/cloud_load_test/v4_1/models/application_type.py deleted file mode 100644 index 0f61bed2..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/application_type.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ApplicationType(Model): - """ApplicationType. - - :param action_uri_link: - :type action_uri_link: str - :param aut_portal_link: - :type aut_portal_link: str - :param is_enabled: - :type is_enabled: bool - :param max_components_allowed_for_collection: - :type max_components_allowed_for_collection: int - :param max_counters_allowed: - :type max_counters_allowed: int - :param type: - :type type: str - """ - - _attribute_map = { - 'action_uri_link': {'key': 'actionUriLink', 'type': 'str'}, - 'aut_portal_link': {'key': 'autPortalLink', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'max_components_allowed_for_collection': {'key': 'maxComponentsAllowedForCollection', 'type': 'int'}, - 'max_counters_allowed': {'key': 'maxCountersAllowed', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, action_uri_link=None, aut_portal_link=None, is_enabled=None, max_components_allowed_for_collection=None, max_counters_allowed=None, type=None): - super(ApplicationType, self).__init__() - self.action_uri_link = action_uri_link - self.aut_portal_link = aut_portal_link - self.is_enabled = is_enabled - self.max_components_allowed_for_collection = max_components_allowed_for_collection - self.max_counters_allowed = max_counters_allowed - self.type = type diff --git a/vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py b/vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py deleted file mode 100644 index e6c39091..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/browser_mix.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BrowserMix(Model): - """BrowserMix. - - :param browser_name: - :type browser_name: str - :param browser_percentage: - :type browser_percentage: int - """ - - _attribute_map = { - 'browser_name': {'key': 'browserName', 'type': 'str'}, - 'browser_percentage': {'key': 'browserPercentage', 'type': 'int'} - } - - def __init__(self, browser_name=None, browser_percentage=None): - super(BrowserMix, self).__init__() - self.browser_name = browser_name - self.browser_percentage = browser_percentage diff --git a/vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py b/vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py deleted file mode 100644 index 64971605..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/clt_customer_intelligence_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CltCustomerIntelligenceData(Model): - """CltCustomerIntelligenceData. - - :param area: - :type area: str - :param feature: - :type feature: str - :param properties: - :type properties: dict - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'str'}, - 'feature': {'key': 'feature', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'} - } - - def __init__(self, area=None, feature=None, properties=None): - super(CltCustomerIntelligenceData, self).__init__() - self.area = area - self.feature = feature - self.properties = properties diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_group.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_group.py deleted file mode 100644 index 4d93bc0d..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/counter_group.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CounterGroup(Model): - """CounterGroup. - - :param group_name: - :type group_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, group_name=None, url=None): - super(CounterGroup, self).__init__() - self.group_name = group_name - self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py deleted file mode 100644 index 158193e7..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/counter_instance_samples.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CounterInstanceSamples(Model): - """CounterInstanceSamples. - - :param count: - :type count: int - :param counter_instance_id: - :type counter_instance_id: str - :param next_refresh_time: - :type next_refresh_time: datetime - :param values: - :type values: list of :class:`CounterSample ` - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, - 'next_refresh_time': {'key': 'nextRefreshTime', 'type': 'iso-8601'}, - 'values': {'key': 'values', 'type': '[CounterSample]'} - } - - def __init__(self, count=None, counter_instance_id=None, next_refresh_time=None, values=None): - super(CounterInstanceSamples, self).__init__() - self.count = count - self.counter_instance_id = counter_instance_id - self.next_refresh_time = next_refresh_time - self.values = values diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py deleted file mode 100644 index eb2d2cb6..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/counter_sample.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CounterSample(Model): - """CounterSample. - - :param base_value: - :type base_value: long - :param computed_value: - :type computed_value: int - :param counter_frequency: - :type counter_frequency: long - :param counter_instance_id: - :type counter_instance_id: str - :param counter_type: - :type counter_type: str - :param interval_end_date: - :type interval_end_date: datetime - :param interval_number: - :type interval_number: int - :param raw_value: - :type raw_value: long - :param system_frequency: - :type system_frequency: long - :param time_stamp: - :type time_stamp: long - """ - - _attribute_map = { - 'base_value': {'key': 'baseValue', 'type': 'long'}, - 'computed_value': {'key': 'computedValue', 'type': 'int'}, - 'counter_frequency': {'key': 'counterFrequency', 'type': 'long'}, - 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, - 'counter_type': {'key': 'counterType', 'type': 'str'}, - 'interval_end_date': {'key': 'intervalEndDate', 'type': 'iso-8601'}, - 'interval_number': {'key': 'intervalNumber', 'type': 'int'}, - 'raw_value': {'key': 'rawValue', 'type': 'long'}, - 'system_frequency': {'key': 'systemFrequency', 'type': 'long'}, - 'time_stamp': {'key': 'timeStamp', 'type': 'long'} - } - - def __init__(self, base_value=None, computed_value=None, counter_frequency=None, counter_instance_id=None, counter_type=None, interval_end_date=None, interval_number=None, raw_value=None, system_frequency=None, time_stamp=None): - super(CounterSample, self).__init__() - self.base_value = base_value - self.computed_value = computed_value - self.counter_frequency = counter_frequency - self.counter_instance_id = counter_instance_id - self.counter_type = counter_type - self.interval_end_date = interval_end_date - self.interval_number = interval_number - self.raw_value = raw_value - self.system_frequency = system_frequency - self.time_stamp = time_stamp diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py deleted file mode 100644 index d78217a2..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/counter_sample_query_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CounterSampleQueryDetails(Model): - """CounterSampleQueryDetails. - - :param counter_instance_id: - :type counter_instance_id: str - :param from_interval: - :type from_interval: int - :param to_interval: - :type to_interval: int - """ - - _attribute_map = { - 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, - 'from_interval': {'key': 'fromInterval', 'type': 'int'}, - 'to_interval': {'key': 'toInterval', 'type': 'int'} - } - - def __init__(self, counter_instance_id=None, from_interval=None, to_interval=None): - super(CounterSampleQueryDetails, self).__init__() - self.counter_instance_id = counter_instance_id - self.from_interval = from_interval - self.to_interval = to_interval diff --git a/vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py b/vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py deleted file mode 100644 index aeb595c0..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/counter_samples_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CounterSamplesResult(Model): - """CounterSamplesResult. - - :param count: - :type count: int - :param max_batch_size: - :type max_batch_size: int - :param total_samples_count: - :type total_samples_count: int - :param values: - :type values: list of :class:`CounterInstanceSamples ` - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'max_batch_size': {'key': 'maxBatchSize', 'type': 'int'}, - 'total_samples_count': {'key': 'totalSamplesCount', 'type': 'int'}, - 'values': {'key': 'values', 'type': '[CounterInstanceSamples]'} - } - - def __init__(self, count=None, max_batch_size=None, total_samples_count=None, values=None): - super(CounterSamplesResult, self).__init__() - self.count = count - self.max_batch_size = max_batch_size - self.total_samples_count = total_samples_count - self.values = values diff --git a/vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py b/vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py deleted file mode 100644 index 9daaff33..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/diagnostics.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Diagnostics(Model): - """Diagnostics. - - :param diagnostic_store_connection_string: - :type diagnostic_store_connection_string: str - :param last_modified_time: - :type last_modified_time: datetime - :param relative_path_to_diagnostic_files: - :type relative_path_to_diagnostic_files: str - """ - - _attribute_map = { - 'diagnostic_store_connection_string': {'key': 'diagnosticStoreConnectionString', 'type': 'str'}, - 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, - 'relative_path_to_diagnostic_files': {'key': 'relativePathToDiagnosticFiles', 'type': 'str'} - } - - def __init__(self, diagnostic_store_connection_string=None, last_modified_time=None, relative_path_to_diagnostic_files=None): - super(Diagnostics, self).__init__() - self.diagnostic_store_connection_string = diagnostic_store_connection_string - self.last_modified_time = last_modified_time - self.relative_path_to_diagnostic_files = relative_path_to_diagnostic_files diff --git a/vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py b/vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py deleted file mode 100644 index 5adf763e..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/drop_access_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DropAccessData(Model): - """DropAccessData. - - :param drop_container_url: - :type drop_container_url: str - :param sas_key: - :type sas_key: str - """ - - _attribute_map = { - 'drop_container_url': {'key': 'dropContainerUrl', 'type': 'str'}, - 'sas_key': {'key': 'sasKey', 'type': 'str'} - } - - def __init__(self, drop_container_url=None, sas_key=None): - super(DropAccessData, self).__init__() - self.drop_container_url = drop_container_url - self.sas_key = sas_key diff --git a/vsts/vsts/cloud_load_test/v4_1/models/error_details.py b/vsts/vsts/cloud_load_test/v4_1/models/error_details.py deleted file mode 100644 index d0d0edef..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/error_details.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ErrorDetails(Model): - """ErrorDetails. - - :param last_error_date: - :type last_error_date: datetime - :param message_text: - :type message_text: str - :param occurrences: - :type occurrences: int - :param request: - :type request: str - :param scenario_name: - :type scenario_name: str - :param stack_trace: - :type stack_trace: str - :param test_case_name: - :type test_case_name: str - """ - - _attribute_map = { - 'last_error_date': {'key': 'lastErrorDate', 'type': 'iso-8601'}, - 'message_text': {'key': 'messageText', 'type': 'str'}, - 'occurrences': {'key': 'occurrences', 'type': 'int'}, - 'request': {'key': 'request', 'type': 'str'}, - 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - 'test_case_name': {'key': 'testCaseName', 'type': 'str'} - } - - def __init__(self, last_error_date=None, message_text=None, occurrences=None, request=None, scenario_name=None, stack_trace=None, test_case_name=None): - super(ErrorDetails, self).__init__() - self.last_error_date = last_error_date - self.message_text = message_text - self.occurrences = occurrences - self.request = request - self.scenario_name = scenario_name - self.stack_trace = stack_trace - self.test_case_name = test_case_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py b/vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py deleted file mode 100644 index d1c729f2..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/load_generation_geo_location.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LoadGenerationGeoLocation(Model): - """LoadGenerationGeoLocation. - - :param location: - :type location: str - :param percentage: - :type percentage: int - """ - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'percentage': {'key': 'percentage', 'type': 'int'} - } - - def __init__(self, location=None, percentage=None): - super(LoadGenerationGeoLocation, self).__init__() - self.location = location - self.percentage = percentage diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test.py deleted file mode 100644 index 6e2fcacc..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/load_test.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LoadTest(Model): - """LoadTest. - - """ - - _attribute_map = { - } - - def __init__(self): - super(LoadTest, self).__init__() diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py deleted file mode 100644 index 0cf57ce4..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/load_test_definition.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LoadTestDefinition(Model): - """LoadTestDefinition. - - :param agent_count: - :type agent_count: int - :param browser_mixs: - :type browser_mixs: list of :class:`BrowserMix ` - :param core_count: - :type core_count: int - :param cores_per_agent: - :type cores_per_agent: int - :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` - :param load_pattern_name: - :type load_pattern_name: str - :param load_test_name: - :type load_test_name: str - :param max_vusers: - :type max_vusers: int - :param run_duration: - :type run_duration: int - :param sampling_rate: - :type sampling_rate: int - :param think_time: - :type think_time: int - :param urls: - :type urls: list of str - """ - - _attribute_map = { - 'agent_count': {'key': 'agentCount', 'type': 'int'}, - 'browser_mixs': {'key': 'browserMixs', 'type': '[BrowserMix]'}, - 'core_count': {'key': 'coreCount', 'type': 'int'}, - 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, - 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, - 'load_pattern_name': {'key': 'loadPatternName', 'type': 'str'}, - 'load_test_name': {'key': 'loadTestName', 'type': 'str'}, - 'max_vusers': {'key': 'maxVusers', 'type': 'int'}, - 'run_duration': {'key': 'runDuration', 'type': 'int'}, - 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, - 'think_time': {'key': 'thinkTime', 'type': 'int'}, - 'urls': {'key': 'urls', 'type': '[str]'} - } - - def __init__(self, agent_count=None, browser_mixs=None, core_count=None, cores_per_agent=None, load_generation_geo_locations=None, load_pattern_name=None, load_test_name=None, max_vusers=None, run_duration=None, sampling_rate=None, think_time=None, urls=None): - super(LoadTestDefinition, self).__init__() - self.agent_count = agent_count - self.browser_mixs = browser_mixs - self.core_count = core_count - self.cores_per_agent = cores_per_agent - self.load_generation_geo_locations = load_generation_geo_locations - self.load_pattern_name = load_pattern_name - self.load_test_name = load_test_name - self.max_vusers = max_vusers - self.run_duration = run_duration - self.sampling_rate = sampling_rate - self.think_time = think_time - self.urls = urls diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py deleted file mode 100644 index 6be7922f..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/load_test_errors.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LoadTestErrors(Model): - """LoadTestErrors. - - :param count: - :type count: int - :param occurrences: - :type occurrences: int - :param types: - :type types: list of :class:`object ` - :param url: - :type url: str - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'occurrences': {'key': 'occurrences', 'type': 'int'}, - 'types': {'key': 'types', 'type': '[object]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, count=None, occurrences=None, types=None, url=None): - super(LoadTestErrors, self).__init__() - self.count = count - self.occurrences = occurrences - self.types = types - self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py deleted file mode 100644 index cec05618..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_details.py +++ /dev/null @@ -1,46 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .load_test_run_settings import LoadTestRunSettings - - -class LoadTestRunDetails(LoadTestRunSettings): - """LoadTestRunDetails. - - :param agent_count: - :type agent_count: int - :param core_count: - :type core_count: int - :param cores_per_agent: - :type cores_per_agent: int - :param duration: - :type duration: int - :param load_generator_machines_type: - :type load_generator_machines_type: object - :param sampling_interval: - :type sampling_interval: int - :param warm_up_duration: - :type warm_up_duration: int - :param virtual_user_count: - :type virtual_user_count: int - """ - - _attribute_map = { - 'agent_count': {'key': 'agentCount', 'type': 'int'}, - 'core_count': {'key': 'coreCount', 'type': 'int'}, - 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, - 'duration': {'key': 'duration', 'type': 'int'}, - 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, - 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, - 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'}, - 'virtual_user_count': {'key': 'virtualUserCount', 'type': 'int'} - } - - def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None, virtual_user_count=None): - super(LoadTestRunDetails, self).__init__(agent_count=agent_count, core_count=core_count, cores_per_agent=cores_per_agent, duration=duration, load_generator_machines_type=load_generator_machines_type, sampling_interval=sampling_interval, warm_up_duration=warm_up_duration) - self.virtual_user_count = virtual_user_count diff --git a/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py b/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py deleted file mode 100644 index b1a283d3..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/load_test_run_settings.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LoadTestRunSettings(Model): - """LoadTestRunSettings. - - :param agent_count: - :type agent_count: int - :param core_count: - :type core_count: int - :param cores_per_agent: - :type cores_per_agent: int - :param duration: - :type duration: int - :param load_generator_machines_type: - :type load_generator_machines_type: object - :param sampling_interval: - :type sampling_interval: int - :param warm_up_duration: - :type warm_up_duration: int - """ - - _attribute_map = { - 'agent_count': {'key': 'agentCount', 'type': 'int'}, - 'core_count': {'key': 'coreCount', 'type': 'int'}, - 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, - 'duration': {'key': 'duration', 'type': 'int'}, - 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, - 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, - 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'} - } - - def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None): - super(LoadTestRunSettings, self).__init__() - self.agent_count = agent_count - self.core_count = core_count - self.cores_per_agent = cores_per_agent - self.duration = duration - self.load_generator_machines_type = load_generator_machines_type - self.sampling_interval = sampling_interval - self.warm_up_duration = warm_up_duration diff --git a/vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py b/vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py deleted file mode 100644 index ad2589a2..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/overridable_run_settings.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OverridableRunSettings(Model): - """OverridableRunSettings. - - :param load_generator_machines_type: - :type load_generator_machines_type: object - :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` - """ - - _attribute_map = { - 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, - 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'} - } - - def __init__(self, load_generator_machines_type=None, static_agent_run_settings=None): - super(OverridableRunSettings, self).__init__() - self.load_generator_machines_type = load_generator_machines_type - self.static_agent_run_settings = static_agent_run_settings diff --git a/vsts/vsts/cloud_load_test/v4_1/models/page_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/page_summary.py deleted file mode 100644 index 1bee7d5a..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/page_summary.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PageSummary(Model): - """PageSummary. - - :param average_page_time: - :type average_page_time: float - :param page_url: - :type page_url: str - :param percentage_pages_meeting_goal: - :type percentage_pages_meeting_goal: int - :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` - :param scenario_name: - :type scenario_name: str - :param test_name: - :type test_name: str - :param total_pages: - :type total_pages: int - """ - - _attribute_map = { - 'average_page_time': {'key': 'averagePageTime', 'type': 'float'}, - 'page_url': {'key': 'pageUrl', 'type': 'str'}, - 'percentage_pages_meeting_goal': {'key': 'percentagePagesMeetingGoal', 'type': 'int'}, - 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, - 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, - 'test_name': {'key': 'testName', 'type': 'str'}, - 'total_pages': {'key': 'totalPages', 'type': 'int'} - } - - def __init__(self, average_page_time=None, page_url=None, percentage_pages_meeting_goal=None, percentile_data=None, scenario_name=None, test_name=None, total_pages=None): - super(PageSummary, self).__init__() - self.average_page_time = average_page_time - self.page_url = page_url - self.percentage_pages_meeting_goal = percentage_pages_meeting_goal - self.percentile_data = percentile_data - self.scenario_name = scenario_name - self.test_name = test_name - self.total_pages = total_pages diff --git a/vsts/vsts/cloud_load_test/v4_1/models/request_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/request_summary.py deleted file mode 100644 index 0edf9df2..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/request_summary.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RequestSummary(Model): - """RequestSummary. - - :param average_response_time: - :type average_response_time: float - :param failed_requests: - :type failed_requests: int - :param passed_requests: - :type passed_requests: int - :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` - :param requests_per_sec: - :type requests_per_sec: float - :param request_url: - :type request_url: str - :param scenario_name: - :type scenario_name: str - :param test_name: - :type test_name: str - :param total_requests: - :type total_requests: int - """ - - _attribute_map = { - 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, - 'failed_requests': {'key': 'failedRequests', 'type': 'int'}, - 'passed_requests': {'key': 'passedRequests', 'type': 'int'}, - 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, - 'requests_per_sec': {'key': 'requestsPerSec', 'type': 'float'}, - 'request_url': {'key': 'requestUrl', 'type': 'str'}, - 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, - 'test_name': {'key': 'testName', 'type': 'str'}, - 'total_requests': {'key': 'totalRequests', 'type': 'int'} - } - - def __init__(self, average_response_time=None, failed_requests=None, passed_requests=None, percentile_data=None, requests_per_sec=None, request_url=None, scenario_name=None, test_name=None, total_requests=None): - super(RequestSummary, self).__init__() - self.average_response_time = average_response_time - self.failed_requests = failed_requests - self.passed_requests = passed_requests - self.percentile_data = percentile_data - self.requests_per_sec = requests_per_sec - self.request_url = request_url - self.scenario_name = scenario_name - self.test_name = test_name - self.total_requests = total_requests diff --git a/vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py deleted file mode 100644 index 58498ac1..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/scenario_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ScenarioSummary(Model): - """ScenarioSummary. - - :param max_user_load: - :type max_user_load: int - :param min_user_load: - :type min_user_load: int - :param scenario_name: - :type scenario_name: str - """ - - _attribute_map = { - 'max_user_load': {'key': 'maxUserLoad', 'type': 'int'}, - 'min_user_load': {'key': 'minUserLoad', 'type': 'int'}, - 'scenario_name': {'key': 'scenarioName', 'type': 'str'} - } - - def __init__(self, max_user_load=None, min_user_load=None, scenario_name=None): - super(ScenarioSummary, self).__init__() - self.max_user_load = max_user_load - self.min_user_load = min_user_load - self.scenario_name = scenario_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py b/vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py deleted file mode 100644 index 79d478be..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/static_agent_run_setting.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class StaticAgentRunSetting(Model): - """StaticAgentRunSetting. - - :param load_generator_machines_type: - :type load_generator_machines_type: object - :param static_agent_group_name: - :type static_agent_group_name: str - """ - - _attribute_map = { - 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, - 'static_agent_group_name': {'key': 'staticAgentGroupName', 'type': 'str'} - } - - def __init__(self, load_generator_machines_type=None, static_agent_group_name=None): - super(StaticAgentRunSetting, self).__init__() - self.load_generator_machines_type = load_generator_machines_type - self.static_agent_group_name = static_agent_group_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/sub_type.py b/vsts/vsts/cloud_load_test/v4_1/models/sub_type.py deleted file mode 100644 index f20c5644..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/sub_type.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubType(Model): - """SubType. - - :param count: - :type count: int - :param error_detail_list: - :type error_detail_list: list of :class:`ErrorDetails ` - :param occurrences: - :type occurrences: int - :param sub_type_name: - :type sub_type_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'error_detail_list': {'key': 'errorDetailList', 'type': '[ErrorDetails]'}, - 'occurrences': {'key': 'occurrences', 'type': 'int'}, - 'sub_type_name': {'key': 'subTypeName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, count=None, error_detail_list=None, occurrences=None, sub_type_name=None, url=None): - super(SubType, self).__init__() - self.count = count - self.error_detail_list = error_detail_list - self.occurrences = occurrences - self.sub_type_name = sub_type_name - self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py b/vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py deleted file mode 100644 index f6d608ea..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/summary_percentile_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SummaryPercentileData(Model): - """SummaryPercentileData. - - :param percentile: - :type percentile: int - :param percentile_value: - :type percentile_value: float - """ - - _attribute_map = { - 'percentile': {'key': 'percentile', 'type': 'int'}, - 'percentile_value': {'key': 'percentileValue', 'type': 'float'} - } - - def __init__(self, percentile=None, percentile_value=None): - super(SummaryPercentileData, self).__init__() - self.percentile = percentile - self.percentile_value = percentile_value diff --git a/vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py b/vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py deleted file mode 100644 index 8dd29b9c..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/tenant_details.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TenantDetails(Model): - """TenantDetails. - - :param access_details: - :type access_details: list of :class:`AgentGroupAccessData ` - :param id: - :type id: str - :param static_machines: - :type static_machines: list of :class:`WebApiTestMachine ` - :param user_load_agent_input: - :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` - :param user_load_agent_resources_uri: - :type user_load_agent_resources_uri: str - :param valid_geo_locations: - :type valid_geo_locations: list of str - """ - - _attribute_map = { - 'access_details': {'key': 'accessDetails', 'type': '[AgentGroupAccessData]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'static_machines': {'key': 'staticMachines', 'type': '[WebApiTestMachine]'}, - 'user_load_agent_input': {'key': 'userLoadAgentInput', 'type': 'WebApiUserLoadTestMachineInput'}, - 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, - 'valid_geo_locations': {'key': 'validGeoLocations', 'type': '[str]'} - } - - def __init__(self, access_details=None, id=None, static_machines=None, user_load_agent_input=None, user_load_agent_resources_uri=None, valid_geo_locations=None): - super(TenantDetails, self).__init__() - self.access_details = access_details - self.id = id - self.static_machines = static_machines - self.user_load_agent_input = user_load_agent_input - self.user_load_agent_resources_uri = user_load_agent_resources_uri - self.valid_geo_locations = valid_geo_locations diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_definition.py b/vsts/vsts/cloud_load_test/v4_1/models/test_definition.py deleted file mode 100644 index 07784e8e..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_definition.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .test_definition_basic import TestDefinitionBasic - - -class TestDefinition(TestDefinitionBasic): - """TestDefinition. - - :param access_data: - :type access_data: :class:`DropAccessData ` - :param created_by: - :type created_by: IdentityRef - :param created_date: - :type created_date: datetime - :param id: - :type id: str - :param last_modified_by: - :type last_modified_by: IdentityRef - :param last_modified_date: - :type last_modified_date: datetime - :param load_test_type: - :type load_test_type: object - :param name: - :type name: str - :param description: - :type description: str - :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` - :param load_test_definition_source: - :type load_test_definition_source: str - :param run_settings: - :type run_settings: :class:`LoadTestRunSettings ` - :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` - :param test_details: - :type test_details: :class:`LoadTest ` - """ - - _attribute_map = { - 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, - 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, - 'load_test_definition_source': {'key': 'loadTestDefinitionSource', 'type': 'str'}, - 'run_settings': {'key': 'runSettings', 'type': 'LoadTestRunSettings'}, - 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'}, - 'test_details': {'key': 'testDetails', 'type': 'LoadTest'} - } - - def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None, description=None, load_generation_geo_locations=None, load_test_definition_source=None, run_settings=None, static_agent_run_settings=None, test_details=None): - super(TestDefinition, self).__init__(access_data=access_data, created_by=created_by, created_date=created_date, id=id, last_modified_by=last_modified_by, last_modified_date=last_modified_date, load_test_type=load_test_type, name=name) - self.description = description - self.load_generation_geo_locations = load_generation_geo_locations - self.load_test_definition_source = load_test_definition_source - self.run_settings = run_settings - self.static_agent_run_settings = static_agent_run_settings - self.test_details = test_details diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py b/vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py deleted file mode 100644 index d97a4ff6..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_definition_basic.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestDefinitionBasic(Model): - """TestDefinitionBasic. - - :param access_data: - :type access_data: :class:`DropAccessData ` - :param created_by: - :type created_by: IdentityRef - :param created_date: - :type created_date: datetime - :param id: - :type id: str - :param last_modified_by: - :type last_modified_by: IdentityRef - :param last_modified_date: - :type last_modified_date: datetime - :param load_test_type: - :type load_test_type: object - :param name: - :type name: str - """ - - _attribute_map = { - 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, - 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None): - super(TestDefinitionBasic, self).__init__() - self.access_data = access_data - self.created_by = created_by - self.created_date = created_date - self.id = id - self.last_modified_by = last_modified_by - self.last_modified_date = last_modified_date - self.load_test_type = load_test_type - self.name = name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_drop.py b/vsts/vsts/cloud_load_test/v4_1/models/test_drop.py deleted file mode 100644 index 62814e7b..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_drop.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestDrop(Model): - """TestDrop. - - :param access_data: - :type access_data: :class:`DropAccessData ` - :param created_date: - :type created_date: datetime - :param drop_type: - :type drop_type: str - :param id: - :type id: str - :param load_test_definition: - :type load_test_definition: :class:`LoadTestDefinition ` - :param test_run_id: - :type test_run_id: str - """ - - _attribute_map = { - 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'drop_type': {'key': 'dropType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'load_test_definition': {'key': 'loadTestDefinition', 'type': 'LoadTestDefinition'}, - 'test_run_id': {'key': 'testRunId', 'type': 'str'} - } - - def __init__(self, access_data=None, created_date=None, drop_type=None, id=None, load_test_definition=None, test_run_id=None): - super(TestDrop, self).__init__() - self.access_data = access_data - self.created_date = created_date - self.drop_type = drop_type - self.id = id - self.load_test_definition = load_test_definition - self.test_run_id = test_run_id diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py b/vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py deleted file mode 100644 index 840bd63c..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_drop_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestDropRef(Model): - """TestDropRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(TestDropRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_results.py b/vsts/vsts/cloud_load_test/v4_1/models/test_results.py deleted file mode 100644 index dad7cf85..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_results.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResults(Model): - """TestResults. - - :param cloud_load_test_solution_url: - :type cloud_load_test_solution_url: str - :param counter_groups: - :type counter_groups: list of :class:`CounterGroup ` - :param diagnostics: - :type diagnostics: :class:`Diagnostics ` - :param results_url: - :type results_url: str - """ - - _attribute_map = { - 'cloud_load_test_solution_url': {'key': 'cloudLoadTestSolutionUrl', 'type': 'str'}, - 'counter_groups': {'key': 'counterGroups', 'type': '[CounterGroup]'}, - 'diagnostics': {'key': 'diagnostics', 'type': 'Diagnostics'}, - 'results_url': {'key': 'resultsUrl', 'type': 'str'} - } - - def __init__(self, cloud_load_test_solution_url=None, counter_groups=None, diagnostics=None, results_url=None): - super(TestResults, self).__init__() - self.cloud_load_test_solution_url = cloud_load_test_solution_url - self.counter_groups = counter_groups - self.diagnostics = diagnostics - self.results_url = results_url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py deleted file mode 100644 index 45870f1c..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_results_summary.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsSummary(Model): - """TestResultsSummary. - - :param overall_page_summary: - :type overall_page_summary: :class:`PageSummary ` - :param overall_request_summary: - :type overall_request_summary: :class:`RequestSummary ` - :param overall_scenario_summary: - :type overall_scenario_summary: :class:`ScenarioSummary ` - :param overall_test_summary: - :type overall_test_summary: :class:`TestSummary ` - :param overall_transaction_summary: - :type overall_transaction_summary: :class:`TransactionSummary ` - :param top_slow_pages: - :type top_slow_pages: list of :class:`PageSummary ` - :param top_slow_requests: - :type top_slow_requests: list of :class:`RequestSummary ` - :param top_slow_tests: - :type top_slow_tests: list of :class:`TestSummary ` - :param top_slow_transactions: - :type top_slow_transactions: list of :class:`TransactionSummary ` - """ - - _attribute_map = { - 'overall_page_summary': {'key': 'overallPageSummary', 'type': 'PageSummary'}, - 'overall_request_summary': {'key': 'overallRequestSummary', 'type': 'RequestSummary'}, - 'overall_scenario_summary': {'key': 'overallScenarioSummary', 'type': 'ScenarioSummary'}, - 'overall_test_summary': {'key': 'overallTestSummary', 'type': 'TestSummary'}, - 'overall_transaction_summary': {'key': 'overallTransactionSummary', 'type': 'TransactionSummary'}, - 'top_slow_pages': {'key': 'topSlowPages', 'type': '[PageSummary]'}, - 'top_slow_requests': {'key': 'topSlowRequests', 'type': '[RequestSummary]'}, - 'top_slow_tests': {'key': 'topSlowTests', 'type': '[TestSummary]'}, - 'top_slow_transactions': {'key': 'topSlowTransactions', 'type': '[TransactionSummary]'} - } - - def __init__(self, overall_page_summary=None, overall_request_summary=None, overall_scenario_summary=None, overall_test_summary=None, overall_transaction_summary=None, top_slow_pages=None, top_slow_requests=None, top_slow_tests=None, top_slow_transactions=None): - super(TestResultsSummary, self).__init__() - self.overall_page_summary = overall_page_summary - self.overall_request_summary = overall_request_summary - self.overall_scenario_summary = overall_scenario_summary - self.overall_test_summary = overall_test_summary - self.overall_transaction_summary = overall_transaction_summary - self.top_slow_pages = top_slow_pages - self.top_slow_requests = top_slow_requests - self.top_slow_tests = top_slow_tests - self.top_slow_transactions = top_slow_transactions diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run.py deleted file mode 100644 index 7cddf936..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_run.py +++ /dev/null @@ -1,146 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .test_run_basic import TestRunBasic - - -class TestRun(TestRunBasic): - """TestRun. - - :param created_by: - :type created_by: IdentityRef - :param created_date: - :type created_date: datetime - :param deleted_by: - :type deleted_by: IdentityRef - :param deleted_date: - :type deleted_date: datetime - :param finished_date: - :type finished_date: datetime - :param id: - :type id: str - :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` - :param load_test_file_name: - :type load_test_file_name: str - :param name: - :type name: str - :param run_number: - :type run_number: int - :param run_source: - :type run_source: str - :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` - :param run_type: - :type run_type: object - :param state: - :type state: object - :param url: - :type url: str - :param abort_message: - :type abort_message: :class:`TestRunAbortMessage ` - :param aut_initialization_error: - :type aut_initialization_error: bool - :param chargeable: - :type chargeable: bool - :param charged_vUserminutes: - :type charged_vUserminutes: int - :param description: - :type description: str - :param execution_finished_date: - :type execution_finished_date: datetime - :param execution_started_date: - :type execution_started_date: datetime - :param queued_date: - :type queued_date: datetime - :param retention_state: - :type retention_state: object - :param run_source_identifier: - :type run_source_identifier: str - :param run_source_url: - :type run_source_url: str - :param started_by: - :type started_by: IdentityRef - :param started_date: - :type started_date: datetime - :param stopped_by: - :type stopped_by: IdentityRef - :param sub_state: - :type sub_state: object - :param supersede_run_settings: - :type supersede_run_settings: :class:`OverridableRunSettings ` - :param test_drop: - :type test_drop: :class:`TestDropRef ` - :param test_settings: - :type test_settings: :class:`TestSettings ` - :param warm_up_started_date: - :type warm_up_started_date: datetime - :param web_result_url: - :type web_result_url: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, - 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'run_number': {'key': 'runNumber', 'type': 'int'}, - 'run_source': {'key': 'runSource', 'type': 'str'}, - 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, - 'run_type': {'key': 'runType', 'type': 'object'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'abort_message': {'key': 'abortMessage', 'type': 'TestRunAbortMessage'}, - 'aut_initialization_error': {'key': 'autInitializationError', 'type': 'bool'}, - 'chargeable': {'key': 'chargeable', 'type': 'bool'}, - 'charged_vUserminutes': {'key': 'chargedVUserminutes', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'execution_finished_date': {'key': 'executionFinishedDate', 'type': 'iso-8601'}, - 'execution_started_date': {'key': 'executionStartedDate', 'type': 'iso-8601'}, - 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, - 'retention_state': {'key': 'retentionState', 'type': 'object'}, - 'run_source_identifier': {'key': 'runSourceIdentifier', 'type': 'str'}, - 'run_source_url': {'key': 'runSourceUrl', 'type': 'str'}, - 'started_by': {'key': 'startedBy', 'type': 'IdentityRef'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'stopped_by': {'key': 'stoppedBy', 'type': 'IdentityRef'}, - 'sub_state': {'key': 'subState', 'type': 'object'}, - 'supersede_run_settings': {'key': 'supersedeRunSettings', 'type': 'OverridableRunSettings'}, - 'test_drop': {'key': 'testDrop', 'type': 'TestDropRef'}, - 'test_settings': {'key': 'testSettings', 'type': 'TestSettings'}, - 'warm_up_started_date': {'key': 'warmUpStartedDate', 'type': 'iso-8601'}, - 'web_result_url': {'key': 'webResultUrl', 'type': 'str'} - } - - def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None, abort_message=None, aut_initialization_error=None, chargeable=None, charged_vUserminutes=None, description=None, execution_finished_date=None, execution_started_date=None, queued_date=None, retention_state=None, run_source_identifier=None, run_source_url=None, started_by=None, started_date=None, stopped_by=None, sub_state=None, supersede_run_settings=None, test_drop=None, test_settings=None, warm_up_started_date=None, web_result_url=None): - super(TestRun, self).__init__(created_by=created_by, created_date=created_date, deleted_by=deleted_by, deleted_date=deleted_date, finished_date=finished_date, id=id, load_generation_geo_locations=load_generation_geo_locations, load_test_file_name=load_test_file_name, name=name, run_number=run_number, run_source=run_source, run_specific_details=run_specific_details, run_type=run_type, state=state, url=url) - self.abort_message = abort_message - self.aut_initialization_error = aut_initialization_error - self.chargeable = chargeable - self.charged_vUserminutes = charged_vUserminutes - self.description = description - self.execution_finished_date = execution_finished_date - self.execution_started_date = execution_started_date - self.queued_date = queued_date - self.retention_state = retention_state - self.run_source_identifier = run_source_identifier - self.run_source_url = run_source_url - self.started_by = started_by - self.started_date = started_date - self.stopped_by = stopped_by - self.sub_state = sub_state - self.supersede_run_settings = supersede_run_settings - self.test_drop = test_drop - self.test_settings = test_settings - self.warm_up_started_date = warm_up_started_date - self.web_result_url = web_result_url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py deleted file mode 100644 index 53ceafbc..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_run_abort_message.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunAbortMessage(Model): - """TestRunAbortMessage. - - :param action: - :type action: str - :param cause: - :type cause: str - :param details: - :type details: list of str - :param logged_date: - :type logged_date: datetime - :param source: - :type source: str - """ - - _attribute_map = { - 'action': {'key': 'action', 'type': 'str'}, - 'cause': {'key': 'cause', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[str]'}, - 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, - 'source': {'key': 'source', 'type': 'str'} - } - - def __init__(self, action=None, cause=None, details=None, logged_date=None, source=None): - super(TestRunAbortMessage, self).__init__() - self.action = action - self.cause = cause - self.details = details - self.logged_date = logged_date - self.source = source diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py deleted file mode 100644 index 6e573a51..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_run_basic.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunBasic(Model): - """TestRunBasic. - - :param created_by: - :type created_by: IdentityRef - :param created_date: - :type created_date: datetime - :param deleted_by: - :type deleted_by: IdentityRef - :param deleted_date: - :type deleted_date: datetime - :param finished_date: - :type finished_date: datetime - :param id: - :type id: str - :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` - :param load_test_file_name: - :type load_test_file_name: str - :param name: - :type name: str - :param run_number: - :type run_number: int - :param run_source: - :type run_source: str - :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` - :param run_type: - :type run_type: object - :param state: - :type state: object - :param url: - :type url: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, - 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'run_number': {'key': 'runNumber', 'type': 'int'}, - 'run_source': {'key': 'runSource', 'type': 'str'}, - 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, - 'run_type': {'key': 'runType', 'type': 'object'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None): - super(TestRunBasic, self).__init__() - self.created_by = created_by - self.created_date = created_date - self.deleted_by = deleted_by - self.deleted_date = deleted_date - self.finished_date = finished_date - self.id = id - self.load_generation_geo_locations = load_generation_geo_locations - self.load_test_file_name = load_test_file_name - self.name = name - self.run_number = run_number - self.run_source = run_source - self.run_specific_details = run_specific_details - self.run_type = run_type - self.state = state - self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py deleted file mode 100644 index 0e6e0514..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_run_counter_instance.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunCounterInstance(Model): - """TestRunCounterInstance. - - :param category_name: - :type category_name: str - :param counter_instance_id: - :type counter_instance_id: str - :param counter_name: - :type counter_name: str - :param counter_units: - :type counter_units: str - :param instance_name: - :type instance_name: str - :param is_preselected_counter: - :type is_preselected_counter: bool - :param machine_name: - :type machine_name: str - :param part_of_counter_groups: - :type part_of_counter_groups: list of str - :param summary_data: - :type summary_data: :class:`WebInstanceSummaryData ` - :param unique_name: - :type unique_name: str - """ - - _attribute_map = { - 'category_name': {'key': 'categoryName', 'type': 'str'}, - 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, - 'counter_name': {'key': 'counterName', 'type': 'str'}, - 'counter_units': {'key': 'counterUnits', 'type': 'str'}, - 'instance_name': {'key': 'instanceName', 'type': 'str'}, - 'is_preselected_counter': {'key': 'isPreselectedCounter', 'type': 'bool'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'part_of_counter_groups': {'key': 'partOfCounterGroups', 'type': '[str]'}, - 'summary_data': {'key': 'summaryData', 'type': 'WebInstanceSummaryData'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'} - } - - def __init__(self, category_name=None, counter_instance_id=None, counter_name=None, counter_units=None, instance_name=None, is_preselected_counter=None, machine_name=None, part_of_counter_groups=None, summary_data=None, unique_name=None): - super(TestRunCounterInstance, self).__init__() - self.category_name = category_name - self.counter_instance_id = counter_instance_id - self.counter_name = counter_name - self.counter_units = counter_units - self.instance_name = instance_name - self.is_preselected_counter = is_preselected_counter - self.machine_name = machine_name - self.part_of_counter_groups = part_of_counter_groups - self.summary_data = summary_data - self.unique_name = unique_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py b/vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py deleted file mode 100644 index ea712bf1..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_run_message.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunMessage(Model): - """TestRunMessage. - - :param agent_id: - :type agent_id: str - :param error_code: - :type error_code: str - :param logged_date: - :type logged_date: datetime - :param message: - :type message: str - :param message_id: - :type message_id: str - :param message_source: - :type message_source: object - :param message_type: - :type message_type: object - :param test_run_id: - :type test_run_id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'agent_id': {'key': 'agentId', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'str'}, - 'message_source': {'key': 'messageSource', 'type': 'object'}, - 'message_type': {'key': 'messageType', 'type': 'object'}, - 'test_run_id': {'key': 'testRunId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, agent_id=None, error_code=None, logged_date=None, message=None, message_id=None, message_source=None, message_type=None, test_run_id=None, url=None): - super(TestRunMessage, self).__init__() - self.agent_id = agent_id - self.error_code = error_code - self.logged_date = logged_date - self.message = message - self.message_id = message_id - self.message_source = message_source - self.message_type = message_type - self.test_run_id = test_run_id - self.url = url diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_settings.py b/vsts/vsts/cloud_load_test/v4_1/models/test_settings.py deleted file mode 100644 index 85fc8037..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSettings(Model): - """TestSettings. - - :param cleanup_command: - :type cleanup_command: str - :param host_process_platform: - :type host_process_platform: object - :param setup_command: - :type setup_command: str - """ - - _attribute_map = { - 'cleanup_command': {'key': 'cleanupCommand', 'type': 'str'}, - 'host_process_platform': {'key': 'hostProcessPlatform', 'type': 'object'}, - 'setup_command': {'key': 'setupCommand', 'type': 'str'} - } - - def __init__(self, cleanup_command=None, host_process_platform=None, setup_command=None): - super(TestSettings, self).__init__() - self.cleanup_command = cleanup_command - self.host_process_platform = host_process_platform - self.setup_command = setup_command diff --git a/vsts/vsts/cloud_load_test/v4_1/models/test_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/test_summary.py deleted file mode 100644 index 5ff1ef55..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/test_summary.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSummary(Model): - """TestSummary. - - :param average_test_time: - :type average_test_time: float - :param failed_tests: - :type failed_tests: int - :param passed_tests: - :type passed_tests: int - :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` - :param scenario_name: - :type scenario_name: str - :param test_name: - :type test_name: str - :param total_tests: - :type total_tests: int - """ - - _attribute_map = { - 'average_test_time': {'key': 'averageTestTime', 'type': 'float'}, - 'failed_tests': {'key': 'failedTests', 'type': 'int'}, - 'passed_tests': {'key': 'passedTests', 'type': 'int'}, - 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, - 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, - 'test_name': {'key': 'testName', 'type': 'str'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'} - } - - def __init__(self, average_test_time=None, failed_tests=None, passed_tests=None, percentile_data=None, scenario_name=None, test_name=None, total_tests=None): - super(TestSummary, self).__init__() - self.average_test_time = average_test_time - self.failed_tests = failed_tests - self.passed_tests = passed_tests - self.percentile_data = percentile_data - self.scenario_name = scenario_name - self.test_name = test_name - self.total_tests = total_tests diff --git a/vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py b/vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py deleted file mode 100644 index efe417be..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/transaction_summary.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TransactionSummary(Model): - """TransactionSummary. - - :param average_response_time: - :type average_response_time: float - :param average_transaction_time: - :type average_transaction_time: float - :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` - :param scenario_name: - :type scenario_name: str - :param test_name: - :type test_name: str - :param total_transactions: - :type total_transactions: int - :param transaction_name: - :type transaction_name: str - """ - - _attribute_map = { - 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, - 'average_transaction_time': {'key': 'averageTransactionTime', 'type': 'float'}, - 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, - 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, - 'test_name': {'key': 'testName', 'type': 'str'}, - 'total_transactions': {'key': 'totalTransactions', 'type': 'int'}, - 'transaction_name': {'key': 'transactionName', 'type': 'str'} - } - - def __init__(self, average_response_time=None, average_transaction_time=None, percentile_data=None, scenario_name=None, test_name=None, total_transactions=None, transaction_name=None): - super(TransactionSummary, self).__init__() - self.average_response_time = average_response_time - self.average_transaction_time = average_transaction_time - self.percentile_data = percentile_data - self.scenario_name = scenario_name - self.test_name = test_name - self.total_transactions = total_transactions - self.transaction_name = transaction_name diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py deleted file mode 100644 index b7acfc63..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/web_api_load_test_machine_input.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiLoadTestMachineInput(Model): - """WebApiLoadTestMachineInput. - - :param machine_group_id: - :type machine_group_id: str - :param machine_type: - :type machine_type: object - :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` - :param supported_run_types: - :type supported_run_types: list of TestRunType - """ - - _attribute_map = { - 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, - 'machine_type': {'key': 'machineType', 'type': 'object'}, - 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, - 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[object]'} - } - - def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None): - super(WebApiLoadTestMachineInput, self).__init__() - self.machine_group_id = machine_group_id - self.machine_type = machine_type - self.setup_configuration = setup_configuration - self.supported_run_types = supported_run_types diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py deleted file mode 100644 index 94cd5b4e..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/web_api_setup_paramaters.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiSetupParamaters(Model): - """WebApiSetupParamaters. - - :param configurations: - :type configurations: dict - """ - - _attribute_map = { - 'configurations': {'key': 'configurations', 'type': '{str}'} - } - - def __init__(self, configurations=None): - super(WebApiSetupParamaters, self).__init__() - self.configurations = configurations diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py deleted file mode 100644 index 87058715..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/web_api_test_machine.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiTestMachine(Model): - """WebApiTestMachine. - - :param last_heart_beat: - :type last_heart_beat: datetime - :param machine_name: - :type machine_name: str - :param status: - :type status: str - """ - - _attribute_map = { - 'last_heart_beat': {'key': 'lastHeartBeat', 'type': 'iso-8601'}, - 'machine_name': {'key': 'machineName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'} - } - - def __init__(self, last_heart_beat=None, machine_name=None, status=None): - super(WebApiTestMachine, self).__init__() - self.last_heart_beat = last_heart_beat - self.machine_name = machine_name - self.status = status diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py b/vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py deleted file mode 100644 index 84bb1cf6..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/web_api_user_load_test_machine_input.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .web_api_load_test_machine_input import WebApiLoadTestMachineInput - - -class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): - """WebApiUserLoadTestMachineInput. - - :param machine_group_id: - :type machine_group_id: str - :param machine_type: - :type machine_type: object - :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` - :param supported_run_types: - :type supported_run_types: list of TestRunType - :param agent_group_name: - :type agent_group_name: str - :param tenant_id: - :type tenant_id: str - :param user_load_agent_resources_uri: - :type user_load_agent_resources_uri: str - :param vSTSAccount_uri: - :type vSTSAccount_uri: str - """ - - _attribute_map = { - 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, - 'machine_type': {'key': 'machineType', 'type': 'object'}, - 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, - 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[TestRunType]'}, - 'agent_group_name': {'key': 'agentGroupName', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, - 'vSTSAccount_uri': {'key': 'vSTSAccountUri', 'type': 'str'} - } - - def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None, agent_group_name=None, tenant_id=None, user_load_agent_resources_uri=None, vSTSAccount_uri=None): - super(WebApiUserLoadTestMachineInput, self).__init__(machine_group_id=machine_group_id, machine_type=machine_type, setup_configuration=setup_configuration, supported_run_types=supported_run_types) - self.agent_group_name = agent_group_name - self.tenant_id = tenant_id - self.user_load_agent_resources_uri = user_load_agent_resources_uri - self.vSTSAccount_uri = vSTSAccount_uri diff --git a/vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py b/vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py deleted file mode 100644 index 3381de2b..00000000 --- a/vsts/vsts/cloud_load_test/v4_1/models/web_instance_summary_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebInstanceSummaryData(Model): - """WebInstanceSummaryData. - - :param average: - :type average: float - :param max: - :type max: float - :param min: - :type min: float - """ - - _attribute_map = { - 'average': {'key': 'average', 'type': 'float'}, - 'max': {'key': 'max', 'type': 'float'}, - 'min': {'key': 'min', 'type': 'float'} - } - - def __init__(self, average=None, max=None, min=None): - super(WebInstanceSummaryData, self).__init__() - self.average = average - self.max = max - self.min = min diff --git a/vsts/vsts/contributions/v4_0/__init__.py b/vsts/vsts/contributions/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/contributions/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/contributions/v4_0/models/__init__.py b/vsts/vsts/contributions/v4_0/models/__init__.py deleted file mode 100644 index a2b2f347..00000000 --- a/vsts/vsts/contributions/v4_0/models/__init__.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .client_data_provider_query import ClientDataProviderQuery -from .contribution import Contribution -from .contribution_base import ContributionBase -from .contribution_constraint import ContributionConstraint -from .contribution_node_query import ContributionNodeQuery -from .contribution_node_query_result import ContributionNodeQueryResult -from .contribution_property_description import ContributionPropertyDescription -from .contribution_provider_details import ContributionProviderDetails -from .contribution_type import ContributionType -from .data_provider_context import DataProviderContext -from .data_provider_exception_details import DataProviderExceptionDetails -from .data_provider_query import DataProviderQuery -from .data_provider_result import DataProviderResult -from .extension_event_callback import ExtensionEventCallback -from .extension_event_callback_collection import ExtensionEventCallbackCollection -from .extension_file import ExtensionFile -from .extension_licensing import ExtensionLicensing -from .extension_manifest import ExtensionManifest -from .installed_extension import InstalledExtension -from .installed_extension_state import InstalledExtensionState -from .installed_extension_state_issue import InstalledExtensionStateIssue -from .licensing_override import LicensingOverride -from .resolved_data_provider import ResolvedDataProvider -from .serialized_contribution_node import SerializedContributionNode - -__all__ = [ - 'ClientDataProviderQuery', - 'Contribution', - 'ContributionBase', - 'ContributionConstraint', - 'ContributionNodeQuery', - 'ContributionNodeQueryResult', - 'ContributionPropertyDescription', - 'ContributionProviderDetails', - 'ContributionType', - 'DataProviderContext', - 'DataProviderExceptionDetails', - 'DataProviderQuery', - 'DataProviderResult', - 'ExtensionEventCallback', - 'ExtensionEventCallbackCollection', - 'ExtensionFile', - 'ExtensionLicensing', - 'ExtensionManifest', - 'InstalledExtension', - 'InstalledExtensionState', - 'InstalledExtensionStateIssue', - 'LicensingOverride', - 'ResolvedDataProvider', - 'SerializedContributionNode', -] diff --git a/vsts/vsts/contributions/v4_0/models/client_data_provider_query.py b/vsts/vsts/contributions/v4_0/models/client_data_provider_query.py deleted file mode 100644 index f6f8d2cf..00000000 --- a/vsts/vsts/contributions/v4_0/models/client_data_provider_query.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .data_provider_query import DataProviderQuery - - -class ClientDataProviderQuery(DataProviderQuery): - """ClientDataProviderQuery. - - :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` - :param contribution_ids: The contribution ids of the data providers to resolve - :type contribution_ids: list of str - :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. - :type query_service_instance_type: str - """ - - _attribute_map = { - 'context': {'key': 'context', 'type': 'DataProviderContext'}, - 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, - 'query_service_instance_type': {'key': 'queryServiceInstanceType', 'type': 'str'} - } - - def __init__(self, context=None, contribution_ids=None, query_service_instance_type=None): - super(ClientDataProviderQuery, self).__init__(context=context, contribution_ids=contribution_ids) - self.query_service_instance_type = query_service_instance_type diff --git a/vsts/vsts/contributions/v4_0/models/contribution.py b/vsts/vsts/contributions/v4_0/models/contribution.py deleted file mode 100644 index 41f648f5..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution.py +++ /dev/null @@ -1,50 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class Contribution(ContributionBase): - """Contribution. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` - :param includes: Includes is a set of contributions that should have this contribution included in their targets list. - :type includes: list of str - :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` - :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) - :type targets: list of str - :param type: Id of the Contribution Type - :type type: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'includes': {'key': 'includes', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'targets': {'key': 'targets', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): - super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) - self.constraints = constraints - self.includes = includes - self.properties = properties - self.targets = targets - self.type = type diff --git a/vsts/vsts/contributions/v4_0/models/contribution_base.py b/vsts/vsts/contributions/v4_0/models/contribution_base.py deleted file mode 100644 index 4a2402c0..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution_base.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionBase(Model): - """ContributionBase. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'} - } - - def __init__(self, description=None, id=None, visible_to=None): - super(ContributionBase, self).__init__() - self.description = description - self.id = id - self.visible_to = visible_to diff --git a/vsts/vsts/contributions/v4_0/models/contribution_constraint.py b/vsts/vsts/contributions/v4_0/models/contribution_constraint.py deleted file mode 100644 index bf82e72b..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution_constraint.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionConstraint(Model): - """ContributionConstraint. - - :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). - :type group: int - :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) - :type inverse: bool - :param name: Name of the IContributionFilter class - :type name: str - :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` - :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. - :type relationships: list of str - """ - - _attribute_map = { - 'group': {'key': 'group', 'type': 'int'}, - 'inverse': {'key': 'inverse', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'relationships': {'key': 'relationships', 'type': '[str]'} - } - - def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): - super(ContributionConstraint, self).__init__() - self.group = group - self.inverse = inverse - self.name = name - self.properties = properties - self.relationships = relationships diff --git a/vsts/vsts/contributions/v4_0/models/contribution_node_query.py b/vsts/vsts/contributions/v4_0/models/contribution_node_query.py deleted file mode 100644 index 39d2c5ad..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution_node_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionNodeQuery(Model): - """ContributionNodeQuery. - - :param contribution_ids: The contribution ids of the nodes to find. - :type contribution_ids: list of str - :param include_provider_details: Indicator if contribution provider details should be included in the result. - :type include_provider_details: bool - :param query_options: Query options tpo be used when fetching ContributionNodes - :type query_options: object - """ - - _attribute_map = { - 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, - 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, - 'query_options': {'key': 'queryOptions', 'type': 'object'} - } - - def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): - super(ContributionNodeQuery, self).__init__() - self.contribution_ids = contribution_ids - self.include_provider_details = include_provider_details - self.query_options = query_options diff --git a/vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py b/vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py deleted file mode 100644 index 902bac31..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution_node_query_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionNodeQueryResult(Model): - """ContributionNodeQueryResult. - - :param nodes: Map of contribution ids to corresponding node. - :type nodes: dict - :param provider_details: Map of provder ids to the corresponding provider details object. - :type provider_details: dict - """ - - _attribute_map = { - 'nodes': {'key': 'nodes', 'type': '{SerializedContributionNode}'}, - 'provider_details': {'key': 'providerDetails', 'type': '{ContributionProviderDetails}'} - } - - def __init__(self, nodes=None, provider_details=None): - super(ContributionNodeQueryResult, self).__init__() - self.nodes = nodes - self.provider_details = provider_details diff --git a/vsts/vsts/contributions/v4_0/models/contribution_property_description.py b/vsts/vsts/contributions/v4_0/models/contribution_property_description.py deleted file mode 100644 index d4684adf..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution_property_description.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionPropertyDescription(Model): - """ContributionPropertyDescription. - - :param description: Description of the property - :type description: str - :param name: Name of the property - :type name: str - :param required: True if this property is required - :type required: bool - :param type: The type of value used for this property - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, required=None, type=None): - super(ContributionPropertyDescription, self).__init__() - self.description = description - self.name = name - self.required = required - self.type = type diff --git a/vsts/vsts/contributions/v4_0/models/contribution_provider_details.py b/vsts/vsts/contributions/v4_0/models/contribution_provider_details.py deleted file mode 100644 index 0cdda303..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution_provider_details.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionProviderDetails(Model): - """ContributionProviderDetails. - - :param display_name: Friendly name for the provider. - :type display_name: str - :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes - :type name: str - :param properties: Properties associated with the provider - :type properties: dict - :param version: Version of contributions assoicated with this contribution provider. - :type version: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, display_name=None, name=None, properties=None, version=None): - super(ContributionProviderDetails, self).__init__() - self.display_name = display_name - self.name = name - self.properties = properties - self.version = version diff --git a/vsts/vsts/contributions/v4_0/models/contribution_type.py b/vsts/vsts/contributions/v4_0/models/contribution_type.py deleted file mode 100644 index 4eda81f4..00000000 --- a/vsts/vsts/contributions/v4_0/models/contribution_type.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class ContributionType(ContributionBase): - """ContributionType. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. - :type indexed: bool - :param name: Friendly name of the contribution/type - :type name: str - :param properties: Describes the allowed properties for this contribution type - :type properties: dict - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'indexed': {'key': 'indexed', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} - } - - def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): - super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) - self.indexed = indexed - self.name = name - self.properties = properties diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_context.py b/vsts/vsts/contributions/v4_0/models/data_provider_context.py deleted file mode 100644 index c57c845d..00000000 --- a/vsts/vsts/contributions/v4_0/models/data_provider_context.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderContext(Model): - """DataProviderContext. - - :param properties: Generic property bag that contains context-specific properties that data providers can use when populating their data dictionary - :type properties: dict - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': '{object}'} - } - - def __init__(self, properties=None): - super(DataProviderContext, self).__init__() - self.properties = properties diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py b/vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py deleted file mode 100644 index 96c3b8c7..00000000 --- a/vsts/vsts/contributions/v4_0/models/data_provider_exception_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderExceptionDetails(Model): - """DataProviderExceptionDetails. - - :param exception_type: The type of the exception that was thrown. - :type exception_type: str - :param message: Message that is associated with the exception. - :type message: str - :param stack_trace: The StackTrace from the exception turned into a string. - :type stack_trace: str - """ - - _attribute_map = { - 'exception_type': {'key': 'exceptionType', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'} - } - - def __init__(self, exception_type=None, message=None, stack_trace=None): - super(DataProviderExceptionDetails, self).__init__() - self.exception_type = exception_type - self.message = message - self.stack_trace = stack_trace diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_query.py b/vsts/vsts/contributions/v4_0/models/data_provider_query.py deleted file mode 100644 index 221d4cb3..00000000 --- a/vsts/vsts/contributions/v4_0/models/data_provider_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderQuery(Model): - """DataProviderQuery. - - :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` - :param contribution_ids: The contribution ids of the data providers to resolve - :type contribution_ids: list of str - """ - - _attribute_map = { - 'context': {'key': 'context', 'type': 'DataProviderContext'}, - 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'} - } - - def __init__(self, context=None, contribution_ids=None): - super(DataProviderQuery, self).__init__() - self.context = context - self.contribution_ids = contribution_ids diff --git a/vsts/vsts/contributions/v4_0/models/data_provider_result.py b/vsts/vsts/contributions/v4_0/models/data_provider_result.py deleted file mode 100644 index e7b519fc..00000000 --- a/vsts/vsts/contributions/v4_0/models/data_provider_result.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderResult(Model): - """DataProviderResult. - - :param client_providers: This is the set of data providers that were requested, but either they were defined as client providers, or as remote providers that failed and may be retried by the client. - :type client_providers: dict - :param data: Property bag of data keyed off of the data provider contribution id - :type data: dict - :param exceptions: Set of exceptions that occurred resolving the data providers. - :type exceptions: dict - :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` - :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers - :type shared_data: dict - """ - - _attribute_map = { - 'client_providers': {'key': 'clientProviders', 'type': '{ClientDataProviderQuery}'}, - 'data': {'key': 'data', 'type': '{object}'}, - 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, - 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, - 'shared_data': {'key': 'sharedData', 'type': '{object}'} - } - - def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, shared_data=None): - super(DataProviderResult, self).__init__() - self.client_providers = client_providers - self.data = data - self.exceptions = exceptions - self.resolved_providers = resolved_providers - self.shared_data = shared_data diff --git a/vsts/vsts/contributions/v4_0/models/extension_event_callback.py b/vsts/vsts/contributions/v4_0/models/extension_event_callback.py deleted file mode 100644 index 59ab677a..00000000 --- a/vsts/vsts/contributions/v4_0/models/extension_event_callback.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallback(Model): - """ExtensionEventCallback. - - :param uri: The uri of the endpoint that is hit when an event occurs - :type uri: str - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, uri=None): - super(ExtensionEventCallback, self).__init__() - self.uri = uri diff --git a/vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py b/vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py deleted file mode 100644 index d455ef88..00000000 --- a/vsts/vsts/contributions/v4_0/models/extension_event_callback_collection.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallbackCollection(Model): - """ExtensionEventCallbackCollection. - - :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` - :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` - :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` - :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` - :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` - :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` - :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` - """ - - _attribute_map = { - 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, - 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, - 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, - 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, - 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, - 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, - 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} - } - - def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): - super(ExtensionEventCallbackCollection, self).__init__() - self.post_disable = post_disable - self.post_enable = post_enable - self.post_install = post_install - self.post_uninstall = post_uninstall - self.post_update = post_update - self.pre_install = pre_install - self.version_check = version_check diff --git a/vsts/vsts/contributions/v4_0/models/extension_file.py b/vsts/vsts/contributions/v4_0/models/extension_file.py deleted file mode 100644 index 1b505e97..00000000 --- a/vsts/vsts/contributions/v4_0/models/extension_file.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFile(Model): - """ExtensionFile. - - :param asset_type: - :type asset_type: str - :param language: - :type language: str - :param source: - :type source: str - """ - - _attribute_map = { - 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'} - } - - def __init__(self, asset_type=None, language=None, source=None): - super(ExtensionFile, self).__init__() - self.asset_type = asset_type - self.language = language - self.source = source diff --git a/vsts/vsts/contributions/v4_0/models/extension_licensing.py b/vsts/vsts/contributions/v4_0/models/extension_licensing.py deleted file mode 100644 index 286cbcdc..00000000 --- a/vsts/vsts/contributions/v4_0/models/extension_licensing.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionLicensing(Model): - """ExtensionLicensing. - - :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` - """ - - _attribute_map = { - 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} - } - - def __init__(self, overrides=None): - super(ExtensionLicensing, self).__init__() - self.overrides = overrides diff --git a/vsts/vsts/contributions/v4_0/models/extension_manifest.py b/vsts/vsts/contributions/v4_0/models/extension_manifest.py deleted file mode 100644 index 7607a69c..00000000 --- a/vsts/vsts/contributions/v4_0/models/extension_manifest.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionManifest(Model): - """ExtensionManifest. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} - } - - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): - super(ExtensionManifest, self).__init__() - self.base_uri = base_uri - self.contributions = contributions - self.contribution_types = contribution_types - self.demands = demands - self.event_callbacks = event_callbacks - self.fallback_base_uri = fallback_base_uri - self.language = language - self.licensing = licensing - self.manifest_version = manifest_version - self.scopes = scopes - self.service_instance_type = service_instance_type diff --git a/vsts/vsts/contributions/v4_0/models/installed_extension.py b/vsts/vsts/contributions/v4_0/models/installed_extension.py deleted file mode 100644 index 0e788d4e..00000000 --- a/vsts/vsts/contributions/v4_0/models/installed_extension.py +++ /dev/null @@ -1,94 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .extension_manifest import ExtensionManifest - - -class InstalledExtension(ExtensionManifest): - """InstalledExtension. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - :param extension_id: The friendly extension id for this extension - unique for a given publisher. - :type extension_id: str - :param extension_name: The display name of the extension. - :type extension_name: str - :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` - :param flags: Extension flags relevant to contribution consumers - :type flags: object - :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` - :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. - :type last_published: datetime - :param publisher_id: Unique id of the publisher of this extension - :type publisher_id: str - :param publisher_name: The display name of the publisher - :type publisher_name: str - :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) - :type registration_id: str - :param version: Version of this extension - :type version: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, - 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'registration_id': {'key': 'registrationId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) - self.extension_id = extension_id - self.extension_name = extension_name - self.files = files - self.flags = flags - self.install_state = install_state - self.last_published = last_published - self.publisher_id = publisher_id - self.publisher_name = publisher_name - self.registration_id = registration_id - self.version = version diff --git a/vsts/vsts/contributions/v4_0/models/installed_extension_state.py b/vsts/vsts/contributions/v4_0/models/installed_extension_state.py deleted file mode 100644 index e612084b..00000000 --- a/vsts/vsts/contributions/v4_0/models/installed_extension_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionState(Model): - """InstalledExtensionState. - - :param flags: States of an installed extension - :type flags: object - :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` - :param last_updated: The time at which this installation was last updated - :type last_updated: datetime - """ - - _attribute_map = { - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} - } - - def __init__(self, flags=None, installation_issues=None, last_updated=None): - super(InstalledExtensionState, self).__init__() - self.flags = flags - self.installation_issues = installation_issues - self.last_updated = last_updated diff --git a/vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py b/vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py deleted file mode 100644 index e66bb556..00000000 --- a/vsts/vsts/contributions/v4_0/models/installed_extension_state_issue.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionStateIssue(Model): - """InstalledExtensionStateIssue. - - :param message: The error message - :type message: str - :param source: Source of the installation issue, for example "Demands" - :type source: str - :param type: Installation issue type (Warning, Error) - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, source=None, type=None): - super(InstalledExtensionStateIssue, self).__init__() - self.message = message - self.source = source - self.type = type diff --git a/vsts/vsts/contributions/v4_0/models/licensing_override.py b/vsts/vsts/contributions/v4_0/models/licensing_override.py deleted file mode 100644 index 7812d57f..00000000 --- a/vsts/vsts/contributions/v4_0/models/licensing_override.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LicensingOverride(Model): - """LicensingOverride. - - :param behavior: How the inclusion of this contribution should change based on licensing - :type behavior: object - :param id: Fully qualified contribution id which we want to define licensing behavior for - :type id: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, behavior=None, id=None): - super(LicensingOverride, self).__init__() - self.behavior = behavior - self.id = id diff --git a/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py b/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py deleted file mode 100644 index e8108fd9..00000000 --- a/vsts/vsts/contributions/v4_0/models/resolved_data_provider.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResolvedDataProvider(Model): - """ResolvedDataProvider. - - :param duration: The total time the data provider took to resolve its data (in milliseconds) - :type duration: int - :param error: - :type error: str - :param id: - :type id: str - """ - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'int'}, - 'error': {'key': 'error', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, duration=None, error=None, id=None): - super(ResolvedDataProvider, self).__init__() - self.duration = duration - self.error = error - self.id = id diff --git a/vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py b/vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py deleted file mode 100644 index e89e08ae..00000000 --- a/vsts/vsts/contributions/v4_0/models/serialized_contribution_node.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SerializedContributionNode(Model): - """SerializedContributionNode. - - :param children: List of ids for contributions which are children to the current contribution. - :type children: list of str - :param contribution: Contribution associated with this node. - :type contribution: :class:`Contribution ` - :param parents: List of ids for contributions which are parents to the current contribution. - :type parents: list of str - """ - - _attribute_map = { - 'children': {'key': 'children', 'type': '[str]'}, - 'contribution': {'key': 'contribution', 'type': 'Contribution'}, - 'parents': {'key': 'parents', 'type': '[str]'} - } - - def __init__(self, children=None, contribution=None, parents=None): - super(SerializedContributionNode, self).__init__() - self.children = children - self.contribution = contribution - self.parents = parents diff --git a/vsts/vsts/contributions/v4_1/__init__.py b/vsts/vsts/contributions/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/contributions/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/contributions/v4_1/models/__init__.py b/vsts/vsts/contributions/v4_1/models/__init__.py deleted file mode 100644 index 475ee422..00000000 --- a/vsts/vsts/contributions/v4_1/models/__init__.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .client_contribution import ClientContribution -from .client_contribution_node import ClientContributionNode -from .client_contribution_provider_details import ClientContributionProviderDetails -from .client_data_provider_query import ClientDataProviderQuery -from .contribution import Contribution -from .contribution_base import ContributionBase -from .contribution_constraint import ContributionConstraint -from .contribution_node_query import ContributionNodeQuery -from .contribution_node_query_result import ContributionNodeQueryResult -from .contribution_property_description import ContributionPropertyDescription -from .contribution_type import ContributionType -from .data_provider_context import DataProviderContext -from .data_provider_exception_details import DataProviderExceptionDetails -from .data_provider_query import DataProviderQuery -from .data_provider_result import DataProviderResult -from .extension_event_callback import ExtensionEventCallback -from .extension_event_callback_collection import ExtensionEventCallbackCollection -from .extension_file import ExtensionFile -from .extension_licensing import ExtensionLicensing -from .extension_manifest import ExtensionManifest -from .installed_extension import InstalledExtension -from .installed_extension_state import InstalledExtensionState -from .installed_extension_state_issue import InstalledExtensionStateIssue -from .licensing_override import LicensingOverride -from .resolved_data_provider import ResolvedDataProvider - -__all__ = [ - 'ClientContribution', - 'ClientContributionNode', - 'ClientContributionProviderDetails', - 'ClientDataProviderQuery', - 'Contribution', - 'ContributionBase', - 'ContributionConstraint', - 'ContributionNodeQuery', - 'ContributionNodeQueryResult', - 'ContributionPropertyDescription', - 'ContributionType', - 'DataProviderContext', - 'DataProviderExceptionDetails', - 'DataProviderQuery', - 'DataProviderResult', - 'ExtensionEventCallback', - 'ExtensionEventCallbackCollection', - 'ExtensionFile', - 'ExtensionLicensing', - 'ExtensionManifest', - 'InstalledExtension', - 'InstalledExtensionState', - 'InstalledExtensionStateIssue', - 'LicensingOverride', - 'ResolvedDataProvider', -] diff --git a/vsts/vsts/contributions/v4_1/models/client_contribution.py b/vsts/vsts/contributions/v4_1/models/client_contribution.py deleted file mode 100644 index 4d74fe8f..00000000 --- a/vsts/vsts/contributions/v4_1/models/client_contribution.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ClientContribution(Model): - """ClientContribution. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param includes: Includes is a set of contributions that should have this contribution included in their targets list. - :type includes: list of str - :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` - :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) - :type targets: list of str - :param type: Id of the Contribution Type - :type type: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'includes': {'key': 'includes', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'targets': {'key': 'targets', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, description=None, id=None, includes=None, properties=None, targets=None, type=None): - super(ClientContribution, self).__init__() - self.description = description - self.id = id - self.includes = includes - self.properties = properties - self.targets = targets - self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/client_contribution_node.py b/vsts/vsts/contributions/v4_1/models/client_contribution_node.py deleted file mode 100644 index dfb64bec..00000000 --- a/vsts/vsts/contributions/v4_1/models/client_contribution_node.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ClientContributionNode(Model): - """ClientContributionNode. - - :param children: List of ids for contributions which are children to the current contribution. - :type children: list of str - :param contribution: Contribution associated with this node. - :type contribution: :class:`ClientContribution ` - :param parents: List of ids for contributions which are parents to the current contribution. - :type parents: list of str - """ - - _attribute_map = { - 'children': {'key': 'children', 'type': '[str]'}, - 'contribution': {'key': 'contribution', 'type': 'ClientContribution'}, - 'parents': {'key': 'parents', 'type': '[str]'} - } - - def __init__(self, children=None, contribution=None, parents=None): - super(ClientContributionNode, self).__init__() - self.children = children - self.contribution = contribution - self.parents = parents diff --git a/vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py b/vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py deleted file mode 100644 index 1e2b744e..00000000 --- a/vsts/vsts/contributions/v4_1/models/client_contribution_provider_details.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ClientContributionProviderDetails(Model): - """ClientContributionProviderDetails. - - :param display_name: Friendly name for the provider. - :type display_name: str - :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes - :type name: str - :param properties: Properties associated with the provider - :type properties: dict - :param version: Version of contributions assoicated with this contribution provider. - :type version: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, display_name=None, name=None, properties=None, version=None): - super(ClientContributionProviderDetails, self).__init__() - self.display_name = display_name - self.name = name - self.properties = properties - self.version = version diff --git a/vsts/vsts/contributions/v4_1/models/client_data_provider_query.py b/vsts/vsts/contributions/v4_1/models/client_data_provider_query.py deleted file mode 100644 index 0c7ebb73..00000000 --- a/vsts/vsts/contributions/v4_1/models/client_data_provider_query.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .data_provider_query import DataProviderQuery - - -class ClientDataProviderQuery(DataProviderQuery): - """ClientDataProviderQuery. - - :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` - :param contribution_ids: The contribution ids of the data providers to resolve - :type contribution_ids: list of str - :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. - :type query_service_instance_type: str - """ - - _attribute_map = { - 'context': {'key': 'context', 'type': 'DataProviderContext'}, - 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, - 'query_service_instance_type': {'key': 'queryServiceInstanceType', 'type': 'str'} - } - - def __init__(self, context=None, contribution_ids=None, query_service_instance_type=None): - super(ClientDataProviderQuery, self).__init__(context=context, contribution_ids=contribution_ids) - self.query_service_instance_type = query_service_instance_type diff --git a/vsts/vsts/contributions/v4_1/models/contribution.py b/vsts/vsts/contributions/v4_1/models/contribution.py deleted file mode 100644 index 5a48a8b7..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution.py +++ /dev/null @@ -1,54 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class Contribution(ContributionBase): - """Contribution. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` - :param includes: Includes is a set of contributions that should have this contribution included in their targets list. - :type includes: list of str - :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` - :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). - :type restricted_to: list of str - :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) - :type targets: list of str - :param type: Id of the Contribution Type - :type type: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'includes': {'key': 'includes', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, - 'targets': {'key': 'targets', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): - super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) - self.constraints = constraints - self.includes = includes - self.properties = properties - self.restricted_to = restricted_to - self.targets = targets - self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/contribution_base.py b/vsts/vsts/contributions/v4_1/models/contribution_base.py deleted file mode 100644 index 4a2402c0..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution_base.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionBase(Model): - """ContributionBase. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'} - } - - def __init__(self, description=None, id=None, visible_to=None): - super(ContributionBase, self).__init__() - self.description = description - self.id = id - self.visible_to = visible_to diff --git a/vsts/vsts/contributions/v4_1/models/contribution_constraint.py b/vsts/vsts/contributions/v4_1/models/contribution_constraint.py deleted file mode 100644 index a26d702e..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution_constraint.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionConstraint(Model): - """ContributionConstraint. - - :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). - :type group: int - :param id: Fully qualified identifier of a shared constraint - :type id: str - :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) - :type inverse: bool - :param name: Name of the IContributionFilter plugin - :type name: str - :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` - :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. - :type relationships: list of str - """ - - _attribute_map = { - 'group': {'key': 'group', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inverse': {'key': 'inverse', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'relationships': {'key': 'relationships', 'type': '[str]'} - } - - def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): - super(ContributionConstraint, self).__init__() - self.group = group - self.id = id - self.inverse = inverse - self.name = name - self.properties = properties - self.relationships = relationships diff --git a/vsts/vsts/contributions/v4_1/models/contribution_node_query.py b/vsts/vsts/contributions/v4_1/models/contribution_node_query.py deleted file mode 100644 index 39d2c5ad..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution_node_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionNodeQuery(Model): - """ContributionNodeQuery. - - :param contribution_ids: The contribution ids of the nodes to find. - :type contribution_ids: list of str - :param include_provider_details: Indicator if contribution provider details should be included in the result. - :type include_provider_details: bool - :param query_options: Query options tpo be used when fetching ContributionNodes - :type query_options: object - """ - - _attribute_map = { - 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, - 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, - 'query_options': {'key': 'queryOptions', 'type': 'object'} - } - - def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): - super(ContributionNodeQuery, self).__init__() - self.contribution_ids = contribution_ids - self.include_provider_details = include_provider_details - self.query_options = query_options diff --git a/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py b/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py deleted file mode 100644 index 4fc173df..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution_node_query_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionNodeQueryResult(Model): - """ContributionNodeQueryResult. - - :param nodes: Map of contribution ids to corresponding node. - :type nodes: dict - :param provider_details: Map of provder ids to the corresponding provider details object. - :type provider_details: dict - """ - - _attribute_map = { - 'nodes': {'key': 'nodes', 'type': '{ClientContributionNode}'}, - 'provider_details': {'key': 'providerDetails', 'type': '{ClientContributionProviderDetails}'} - } - - def __init__(self, nodes=None, provider_details=None): - super(ContributionNodeQueryResult, self).__init__() - self.nodes = nodes - self.provider_details = provider_details diff --git a/vsts/vsts/contributions/v4_1/models/contribution_property_description.py b/vsts/vsts/contributions/v4_1/models/contribution_property_description.py deleted file mode 100644 index d4684adf..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution_property_description.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionPropertyDescription(Model): - """ContributionPropertyDescription. - - :param description: Description of the property - :type description: str - :param name: Name of the property - :type name: str - :param required: True if this property is required - :type required: bool - :param type: The type of value used for this property - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, required=None, type=None): - super(ContributionPropertyDescription, self).__init__() - self.description = description - self.name = name - self.required = required - self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/contribution_type.py b/vsts/vsts/contributions/v4_1/models/contribution_type.py deleted file mode 100644 index 4eda81f4..00000000 --- a/vsts/vsts/contributions/v4_1/models/contribution_type.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class ContributionType(ContributionBase): - """ContributionType. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. - :type indexed: bool - :param name: Friendly name of the contribution/type - :type name: str - :param properties: Describes the allowed properties for this contribution type - :type properties: dict - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'indexed': {'key': 'indexed', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} - } - - def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): - super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) - self.indexed = indexed - self.name = name - self.properties = properties diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_context.py b/vsts/vsts/contributions/v4_1/models/data_provider_context.py deleted file mode 100644 index c57c845d..00000000 --- a/vsts/vsts/contributions/v4_1/models/data_provider_context.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderContext(Model): - """DataProviderContext. - - :param properties: Generic property bag that contains context-specific properties that data providers can use when populating their data dictionary - :type properties: dict - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': '{object}'} - } - - def __init__(self, properties=None): - super(DataProviderContext, self).__init__() - self.properties = properties diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py b/vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py deleted file mode 100644 index 96c3b8c7..00000000 --- a/vsts/vsts/contributions/v4_1/models/data_provider_exception_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderExceptionDetails(Model): - """DataProviderExceptionDetails. - - :param exception_type: The type of the exception that was thrown. - :type exception_type: str - :param message: Message that is associated with the exception. - :type message: str - :param stack_trace: The StackTrace from the exception turned into a string. - :type stack_trace: str - """ - - _attribute_map = { - 'exception_type': {'key': 'exceptionType', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'} - } - - def __init__(self, exception_type=None, message=None, stack_trace=None): - super(DataProviderExceptionDetails, self).__init__() - self.exception_type = exception_type - self.message = message - self.stack_trace = stack_trace diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_query.py b/vsts/vsts/contributions/v4_1/models/data_provider_query.py deleted file mode 100644 index 2ca45e9c..00000000 --- a/vsts/vsts/contributions/v4_1/models/data_provider_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderQuery(Model): - """DataProviderQuery. - - :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` - :param contribution_ids: The contribution ids of the data providers to resolve - :type contribution_ids: list of str - """ - - _attribute_map = { - 'context': {'key': 'context', 'type': 'DataProviderContext'}, - 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'} - } - - def __init__(self, context=None, contribution_ids=None): - super(DataProviderQuery, self).__init__() - self.context = context - self.contribution_ids = contribution_ids diff --git a/vsts/vsts/contributions/v4_1/models/data_provider_result.py b/vsts/vsts/contributions/v4_1/models/data_provider_result.py deleted file mode 100644 index 0d9783d5..00000000 --- a/vsts/vsts/contributions/v4_1/models/data_provider_result.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataProviderResult(Model): - """DataProviderResult. - - :param client_providers: This is the set of data providers that were requested, but either they were defined as client providers, or as remote providers that failed and may be retried by the client. - :type client_providers: dict - :param data: Property bag of data keyed off of the data provider contribution id - :type data: dict - :param exceptions: Set of exceptions that occurred resolving the data providers. - :type exceptions: dict - :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` - :param scope_name: Scope name applied to this data provider result. - :type scope_name: str - :param scope_value: Scope value applied to this data provider result. - :type scope_value: str - :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers - :type shared_data: dict - """ - - _attribute_map = { - 'client_providers': {'key': 'clientProviders', 'type': '{ClientDataProviderQuery}'}, - 'data': {'key': 'data', 'type': '{object}'}, - 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, - 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, - 'scope_name': {'key': 'scopeName', 'type': 'str'}, - 'scope_value': {'key': 'scopeValue', 'type': 'str'}, - 'shared_data': {'key': 'sharedData', 'type': '{object}'} - } - - def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, scope_name=None, scope_value=None, shared_data=None): - super(DataProviderResult, self).__init__() - self.client_providers = client_providers - self.data = data - self.exceptions = exceptions - self.resolved_providers = resolved_providers - self.scope_name = scope_name - self.scope_value = scope_value - self.shared_data = shared_data diff --git a/vsts/vsts/contributions/v4_1/models/extension_event_callback.py b/vsts/vsts/contributions/v4_1/models/extension_event_callback.py deleted file mode 100644 index 59ab677a..00000000 --- a/vsts/vsts/contributions/v4_1/models/extension_event_callback.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallback(Model): - """ExtensionEventCallback. - - :param uri: The uri of the endpoint that is hit when an event occurs - :type uri: str - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, uri=None): - super(ExtensionEventCallback, self).__init__() - self.uri = uri diff --git a/vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py b/vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py deleted file mode 100644 index 66f88d72..00000000 --- a/vsts/vsts/contributions/v4_1/models/extension_event_callback_collection.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallbackCollection(Model): - """ExtensionEventCallbackCollection. - - :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` - :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` - :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` - :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` - :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` - :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` - :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` - """ - - _attribute_map = { - 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, - 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, - 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, - 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, - 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, - 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, - 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} - } - - def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): - super(ExtensionEventCallbackCollection, self).__init__() - self.post_disable = post_disable - self.post_enable = post_enable - self.post_install = post_install - self.post_uninstall = post_uninstall - self.post_update = post_update - self.pre_install = pre_install - self.version_check = version_check diff --git a/vsts/vsts/contributions/v4_1/models/extension_file.py b/vsts/vsts/contributions/v4_1/models/extension_file.py deleted file mode 100644 index 1b505e97..00000000 --- a/vsts/vsts/contributions/v4_1/models/extension_file.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFile(Model): - """ExtensionFile. - - :param asset_type: - :type asset_type: str - :param language: - :type language: str - :param source: - :type source: str - """ - - _attribute_map = { - 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'} - } - - def __init__(self, asset_type=None, language=None, source=None): - super(ExtensionFile, self).__init__() - self.asset_type = asset_type - self.language = language - self.source = source diff --git a/vsts/vsts/contributions/v4_1/models/extension_licensing.py b/vsts/vsts/contributions/v4_1/models/extension_licensing.py deleted file mode 100644 index e3e28265..00000000 --- a/vsts/vsts/contributions/v4_1/models/extension_licensing.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionLicensing(Model): - """ExtensionLicensing. - - :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` - """ - - _attribute_map = { - 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} - } - - def __init__(self, overrides=None): - super(ExtensionLicensing, self).__init__() - self.overrides = overrides diff --git a/vsts/vsts/contributions/v4_1/models/extension_manifest.py b/vsts/vsts/contributions/v4_1/models/extension_manifest.py deleted file mode 100644 index 3976f87e..00000000 --- a/vsts/vsts/contributions/v4_1/models/extension_manifest.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionManifest(Model): - """ExtensionManifest. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. - :type restricted_to: list of str - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} - } - - def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): - super(ExtensionManifest, self).__init__() - self.base_uri = base_uri - self.constraints = constraints - self.contributions = contributions - self.contribution_types = contribution_types - self.demands = demands - self.event_callbacks = event_callbacks - self.fallback_base_uri = fallback_base_uri - self.language = language - self.licensing = licensing - self.manifest_version = manifest_version - self.restricted_to = restricted_to - self.scopes = scopes - self.service_instance_type = service_instance_type diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension.py b/vsts/vsts/contributions/v4_1/models/installed_extension.py deleted file mode 100644 index af819634..00000000 --- a/vsts/vsts/contributions/v4_1/models/installed_extension.py +++ /dev/null @@ -1,100 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .extension_manifest import ExtensionManifest - - -class InstalledExtension(ExtensionManifest): - """InstalledExtension. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. - :type restricted_to: list of str - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - :param extension_id: The friendly extension id for this extension - unique for a given publisher. - :type extension_id: str - :param extension_name: The display name of the extension. - :type extension_name: str - :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` - :param flags: Extension flags relevant to contribution consumers - :type flags: object - :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` - :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. - :type last_published: datetime - :param publisher_id: Unique id of the publisher of this extension - :type publisher_id: str - :param publisher_name: The display name of the publisher - :type publisher_name: str - :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) - :type registration_id: str - :param version: Version of this extension - :type version: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, - 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'registration_id': {'key': 'registrationId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) - self.extension_id = extension_id - self.extension_name = extension_name - self.files = files - self.flags = flags - self.install_state = install_state - self.last_published = last_published - self.publisher_id = publisher_id - self.publisher_name = publisher_name - self.registration_id = registration_id - self.version = version diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension_state.py b/vsts/vsts/contributions/v4_1/models/installed_extension_state.py deleted file mode 100644 index 30f3c06d..00000000 --- a/vsts/vsts/contributions/v4_1/models/installed_extension_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionState(Model): - """InstalledExtensionState. - - :param flags: States of an installed extension - :type flags: object - :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` - :param last_updated: The time at which this installation was last updated - :type last_updated: datetime - """ - - _attribute_map = { - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} - } - - def __init__(self, flags=None, installation_issues=None, last_updated=None): - super(InstalledExtensionState, self).__init__() - self.flags = flags - self.installation_issues = installation_issues - self.last_updated = last_updated diff --git a/vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py b/vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py deleted file mode 100644 index e66bb556..00000000 --- a/vsts/vsts/contributions/v4_1/models/installed_extension_state_issue.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionStateIssue(Model): - """InstalledExtensionStateIssue. - - :param message: The error message - :type message: str - :param source: Source of the installation issue, for example "Demands" - :type source: str - :param type: Installation issue type (Warning, Error) - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, source=None, type=None): - super(InstalledExtensionStateIssue, self).__init__() - self.message = message - self.source = source - self.type = type diff --git a/vsts/vsts/contributions/v4_1/models/licensing_override.py b/vsts/vsts/contributions/v4_1/models/licensing_override.py deleted file mode 100644 index 7812d57f..00000000 --- a/vsts/vsts/contributions/v4_1/models/licensing_override.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LicensingOverride(Model): - """LicensingOverride. - - :param behavior: How the inclusion of this contribution should change based on licensing - :type behavior: object - :param id: Fully qualified contribution id which we want to define licensing behavior for - :type id: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, behavior=None, id=None): - super(LicensingOverride, self).__init__() - self.behavior = behavior - self.id = id diff --git a/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py b/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py deleted file mode 100644 index e8108fd9..00000000 --- a/vsts/vsts/contributions/v4_1/models/resolved_data_provider.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResolvedDataProvider(Model): - """ResolvedDataProvider. - - :param duration: The total time the data provider took to resolve its data (in milliseconds) - :type duration: int - :param error: - :type error: str - :param id: - :type id: str - """ - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'int'}, - 'error': {'key': 'error', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, duration=None, error=None, id=None): - super(ResolvedDataProvider, self).__init__() - self.duration = duration - self.error = error - self.id = id diff --git a/vsts/vsts/core/__init__.py b/vsts/vsts/core/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/core/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/core/v4_0/__init__.py b/vsts/vsts/core/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/core/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/core/v4_0/models/__init__.py b/vsts/vsts/core/v4_0/models/__init__.py deleted file mode 100644 index ccdda076..00000000 --- a/vsts/vsts/core/v4_0/models/__init__.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_data import IdentityData -from .identity_ref import IdentityRef -from .json_patch_operation import JsonPatchOperation -from .operation_reference import OperationReference -from .process import Process -from .process_reference import ProcessReference -from .project_info import ProjectInfo -from .project_property import ProjectProperty -from .proxy import Proxy -from .proxy_authorization import ProxyAuthorization -from .public_key import PublicKey -from .reference_links import ReferenceLinks -from .team_project import TeamProject -from .team_project_collection import TeamProjectCollection -from .team_project_collection_reference import TeamProjectCollectionReference -from .team_project_reference import TeamProjectReference -from .web_api_connected_service import WebApiConnectedService -from .web_api_connected_service_details import WebApiConnectedServiceDetails -from .web_api_connected_service_ref import WebApiConnectedServiceRef -from .web_api_team import WebApiTeam -from .web_api_team_ref import WebApiTeamRef - -__all__ = [ - 'IdentityData', - 'IdentityRef', - 'JsonPatchOperation', - 'OperationReference', - 'Process', - 'ProcessReference', - 'ProjectInfo', - 'ProjectProperty', - 'Proxy', - 'ProxyAuthorization', - 'PublicKey', - 'ReferenceLinks', - 'TeamProject', - 'TeamProjectCollection', - 'TeamProjectCollectionReference', - 'TeamProjectReference', - 'WebApiConnectedService', - 'WebApiConnectedServiceDetails', - 'WebApiConnectedServiceRef', - 'WebApiTeam', - 'WebApiTeamRef', -] diff --git a/vsts/vsts/core/v4_0/models/identity_data.py b/vsts/vsts/core/v4_0/models/identity_data.py deleted file mode 100644 index 160e8308..00000000 --- a/vsts/vsts/core/v4_0/models/identity_data.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityData(Model): - """IdentityData. - - :param identity_ids: - :type identity_ids: list of str - """ - - _attribute_map = { - 'identity_ids': {'key': 'identityIds', 'type': '[str]'} - } - - def __init__(self, identity_ids=None): - super(IdentityData, self).__init__() - self.identity_ids = identity_ids diff --git a/vsts/vsts/core/v4_0/models/identity_ref.py b/vsts/vsts/core/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/core/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/core/v4_0/models/json_patch_operation.py b/vsts/vsts/core/v4_0/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/core/v4_0/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/core/v4_0/models/operation_reference.py b/vsts/vsts/core/v4_0/models/operation_reference.py deleted file mode 100644 index fb73a6c6..00000000 --- a/vsts/vsts/core/v4_0/models/operation_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationReference(Model): - """OperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, status=None, url=None): - super(OperationReference, self).__init__() - self.id = id - self.status = status - self.url = url diff --git a/vsts/vsts/core/v4_0/models/process.py b/vsts/vsts/core/v4_0/models/process.py deleted file mode 100644 index 4c755858..00000000 --- a/vsts/vsts/core/v4_0/models/process.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .process_reference import ProcessReference - - -class Process(ProcessReference): - """Process. - - :param name: - :type name: str - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: str - :param is_default: - :type is_default: bool - :param type: - :type type: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, name=None, url=None, _links=None, description=None, id=None, is_default=None, type=None): - super(Process, self).__init__(name=name, url=url) - self._links = _links - self.description = description - self.id = id - self.is_default = is_default - self.type = type diff --git a/vsts/vsts/core/v4_0/models/process_reference.py b/vsts/vsts/core/v4_0/models/process_reference.py deleted file mode 100644 index 897afb57..00000000 --- a/vsts/vsts/core/v4_0/models/process_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessReference(Model): - """ProcessReference. - - :param name: - :type name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, url=None): - super(ProcessReference, self).__init__() - self.name = name - self.url = url diff --git a/vsts/vsts/core/v4_0/models/project_info.py b/vsts/vsts/core/v4_0/models/project_info.py deleted file mode 100644 index 61d5a1df..00000000 --- a/vsts/vsts/core/v4_0/models/project_info.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectInfo(Model): - """ProjectInfo. - - :param abbreviation: - :type abbreviation: str - :param description: - :type description: str - :param id: - :type id: str - :param last_update_time: - :type last_update_time: datetime - :param name: - :type name: str - :param properties: - :type properties: list of :class:`ProjectProperty ` - :param revision: Current revision of the project - :type revision: long - :param state: - :type state: object - :param uri: - :type uri: str - :param version: - :type version: long - :param visibility: - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '[ProjectProperty]'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'long'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, last_update_time=None, name=None, properties=None, revision=None, state=None, uri=None, version=None, visibility=None): - super(ProjectInfo, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.last_update_time = last_update_time - self.name = name - self.properties = properties - self.revision = revision - self.state = state - self.uri = uri - self.version = version - self.visibility = visibility diff --git a/vsts/vsts/core/v4_0/models/project_property.py b/vsts/vsts/core/v4_0/models/project_property.py deleted file mode 100644 index 6bebcd11..00000000 --- a/vsts/vsts/core/v4_0/models/project_property.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectProperty(Model): - """ProjectProperty. - - :param name: - :type name: str - :param value: - :type value: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, name=None, value=None): - super(ProjectProperty, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/core/v4_0/models/proxy.py b/vsts/vsts/core/v4_0/models/proxy.py deleted file mode 100644 index cfbba6c7..00000000 --- a/vsts/vsts/core/v4_0/models/proxy.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Proxy(Model): - """Proxy. - - :param authorization: - :type authorization: :class:`ProxyAuthorization ` - :param description: This is a description string - :type description: str - :param friendly_name: The friendly name of the server - :type friendly_name: str - :param global_default: - :type global_default: bool - :param site: This is a string representation of the site that the proxy server is located in (e.g. "NA-WA-RED") - :type site: str - :param site_default: - :type site_default: bool - :param url: The URL of the proxy server - :type url: str - """ - - _attribute_map = { - 'authorization': {'key': 'authorization', 'type': 'ProxyAuthorization'}, - 'description': {'key': 'description', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'global_default': {'key': 'globalDefault', 'type': 'bool'}, - 'site': {'key': 'site', 'type': 'str'}, - 'site_default': {'key': 'siteDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, authorization=None, description=None, friendly_name=None, global_default=None, site=None, site_default=None, url=None): - super(Proxy, self).__init__() - self.authorization = authorization - self.description = description - self.friendly_name = friendly_name - self.global_default = global_default - self.site = site - self.site_default = site_default - self.url = url diff --git a/vsts/vsts/core/v4_0/models/proxy_authorization.py b/vsts/vsts/core/v4_0/models/proxy_authorization.py deleted file mode 100644 index 887e2371..00000000 --- a/vsts/vsts/core/v4_0/models/proxy_authorization.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProxyAuthorization(Model): - """ProxyAuthorization. - - :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. - :type authorization_url: str - :param client_id: Gets or sets the client identifier for this proxy. - :type client_id: str - :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` - :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` - """ - - _attribute_map = { - 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'str'}, - 'public_key': {'key': 'publicKey', 'type': 'PublicKey'} - } - - def __init__(self, authorization_url=None, client_id=None, identity=None, public_key=None): - super(ProxyAuthorization, self).__init__() - self.authorization_url = authorization_url - self.client_id = client_id - self.identity = identity - self.public_key = public_key diff --git a/vsts/vsts/core/v4_0/models/public_key.py b/vsts/vsts/core/v4_0/models/public_key.py deleted file mode 100644 index 2ea0e151..00000000 --- a/vsts/vsts/core/v4_0/models/public_key.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublicKey(Model): - """PublicKey. - - :param exponent: Gets or sets the exponent for the public key. - :type exponent: str - :param modulus: Gets or sets the modulus for the public key. - :type modulus: str - """ - - _attribute_map = { - 'exponent': {'key': 'exponent', 'type': 'str'}, - 'modulus': {'key': 'modulus', 'type': 'str'} - } - - def __init__(self, exponent=None, modulus=None): - super(PublicKey, self).__init__() - self.exponent = exponent - self.modulus = modulus diff --git a/vsts/vsts/core/v4_0/models/reference_links.py b/vsts/vsts/core/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/core/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/core/v4_0/models/team_project.py b/vsts/vsts/core/v4_0/models/team_project.py deleted file mode 100644 index 34ea4471..00000000 --- a/vsts/vsts/core/v4_0/models/team_project.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_project_reference import TeamProjectReference - - -class TeamProject(TeamProjectReference): - """TeamProject. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` - :param capabilities: Set of capabilities this project has (such as process template & version control). - :type capabilities: dict - :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'capabilities': {'key': 'capabilities', 'type': '{{str}}'}, - 'default_team': {'key': 'defaultTeam', 'type': 'WebApiTeamRef'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): - super(TeamProject, self).__init__(abbreviation=abbreviation, description=description, id=id, name=name, revision=revision, state=state, url=url, visibility=visibility) - self._links = _links - self.capabilities = capabilities - self.default_team = default_team diff --git a/vsts/vsts/core/v4_0/models/team_project_collection.py b/vsts/vsts/core/v4_0/models/team_project_collection.py deleted file mode 100644 index 0d5d11c0..00000000 --- a/vsts/vsts/core/v4_0/models/team_project_collection.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_project_collection_reference import TeamProjectCollectionReference - - -class TeamProjectCollection(TeamProjectCollectionReference): - """TeamProjectCollection. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` - :param description: Project collection description. - :type description: str - :param state: Project collection state. - :type state: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None, _links=None, description=None, state=None): - super(TeamProjectCollection, self).__init__(id=id, name=name, url=url) - self._links = _links - self.description = description - self.state = state diff --git a/vsts/vsts/core/v4_0/models/team_project_collection_reference.py b/vsts/vsts/core/v4_0/models/team_project_collection_reference.py deleted file mode 100644 index 6f4a596a..00000000 --- a/vsts/vsts/core/v4_0/models/team_project_collection_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectCollectionReference(Model): - """TeamProjectCollectionReference. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(TeamProjectCollectionReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/core/v4_0/models/team_project_reference.py b/vsts/vsts/core/v4_0/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/core/v4_0/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/core/v4_0/models/web_api_connected_service.py b/vsts/vsts/core/v4_0/models/web_api_connected_service.py deleted file mode 100644 index 06303cea..00000000 --- a/vsts/vsts/core/v4_0/models/web_api_connected_service.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .web_api_connected_service_ref import WebApiConnectedServiceRef - - -class WebApiConnectedService(WebApiConnectedServiceRef): - """WebApiConnectedService. - - :param url: - :type url: str - :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` - :param description: Extra description on the service. - :type description: str - :param friendly_name: Friendly Name of service connection - :type friendly_name: str - :param id: Id/Name of the connection service. For Ex: Subscription Id for Azure Connection - :type id: str - :param kind: The kind of service. - :type kind: str - :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` - :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com - :type service_uri: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'authenticated_by': {'key': 'authenticatedBy', 'type': 'IdentityRef'}, - 'description': {'key': 'description', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'service_uri': {'key': 'serviceUri', 'type': 'str'} - } - - def __init__(self, url=None, authenticated_by=None, description=None, friendly_name=None, id=None, kind=None, project=None, service_uri=None): - super(WebApiConnectedService, self).__init__(url=url) - self.authenticated_by = authenticated_by - self.description = description - self.friendly_name = friendly_name - self.id = id - self.kind = kind - self.project = project - self.service_uri = service_uri diff --git a/vsts/vsts/core/v4_0/models/web_api_connected_service_details.py b/vsts/vsts/core/v4_0/models/web_api_connected_service_details.py deleted file mode 100644 index 1a5dee7f..00000000 --- a/vsts/vsts/core/v4_0/models/web_api_connected_service_details.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .web_api_connected_service_ref import WebApiConnectedServiceRef - - -class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): - """WebApiConnectedServiceDetails. - - :param id: - :type id: str - :param url: - :type url: str - :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` - :param credentials_xml: Credential info - :type credentials_xml: str - :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com - :type end_point: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'connected_service_meta_data': {'key': 'connectedServiceMetaData', 'type': 'WebApiConnectedService'}, - 'credentials_xml': {'key': 'credentialsXml', 'type': 'str'}, - 'end_point': {'key': 'endPoint', 'type': 'str'} - } - - def __init__(self, id=None, url=None, connected_service_meta_data=None, credentials_xml=None, end_point=None): - super(WebApiConnectedServiceDetails, self).__init__(id=id, url=url) - self.connected_service_meta_data = connected_service_meta_data - self.credentials_xml = credentials_xml - self.end_point = end_point diff --git a/vsts/vsts/core/v4_0/models/web_api_connected_service_ref.py b/vsts/vsts/core/v4_0/models/web_api_connected_service_ref.py deleted file mode 100644 index 4a0e1863..00000000 --- a/vsts/vsts/core/v4_0/models/web_api_connected_service_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiConnectedServiceRef(Model): - """WebApiConnectedServiceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WebApiConnectedServiceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/core/v4_0/models/web_api_team.py b/vsts/vsts/core/v4_0/models/web_api_team.py deleted file mode 100644 index 872de4a1..00000000 --- a/vsts/vsts/core/v4_0/models/web_api_team.py +++ /dev/null @@ -1,38 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .web_api_team_ref import WebApiTeamRef - - -class WebApiTeam(WebApiTeamRef): - """WebApiTeam. - - :param id: Team (Identity) Guid. A Team Foundation ID. - :type id: str - :param name: Team name - :type name: str - :param url: Team REST API Url - :type url: str - :param description: Team description - :type description: str - :param identity_url: Identity REST API Url to this team - :type identity_url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'identity_url': {'key': 'identityUrl', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None, description=None, identity_url=None): - super(WebApiTeam, self).__init__(id=id, name=name, url=url) - self.description = description - self.identity_url = identity_url diff --git a/vsts/vsts/core/v4_0/models/web_api_team_ref.py b/vsts/vsts/core/v4_0/models/web_api_team_ref.py deleted file mode 100644 index fba42b04..00000000 --- a/vsts/vsts/core/v4_0/models/web_api_team_ref.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiTeamRef(Model): - """WebApiTeamRef. - - :param id: Team (Identity) Guid. A Team Foundation ID. - :type id: str - :param name: Team name - :type name: str - :param url: Team REST API Url - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(WebApiTeamRef, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/core/v4_1/__init__.py b/vsts/vsts/core/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/core/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/core/v4_1/models/__init__.py b/vsts/vsts/core/v4_1/models/__init__.py deleted file mode 100644 index 9291542a..00000000 --- a/vsts/vsts/core/v4_1/models/__init__.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase -from .identity_data import IdentityData -from .identity_ref import IdentityRef -from .json_patch_operation import JsonPatchOperation -from .operation_reference import OperationReference -from .process import Process -from .process_reference import ProcessReference -from .project_info import ProjectInfo -from .project_property import ProjectProperty -from .proxy import Proxy -from .proxy_authorization import ProxyAuthorization -from .public_key import PublicKey -from .reference_links import ReferenceLinks -from .team_member import TeamMember -from .team_project import TeamProject -from .team_project_collection import TeamProjectCollection -from .team_project_collection_reference import TeamProjectCollectionReference -from .team_project_reference import TeamProjectReference -from .web_api_connected_service import WebApiConnectedService -from .web_api_connected_service_details import WebApiConnectedServiceDetails -from .web_api_connected_service_ref import WebApiConnectedServiceRef -from .web_api_team import WebApiTeam -from .web_api_team_ref import WebApiTeamRef - -__all__ = [ - 'GraphSubjectBase', - 'IdentityData', - 'IdentityRef', - 'JsonPatchOperation', - 'OperationReference', - 'Process', - 'ProcessReference', - 'ProjectInfo', - 'ProjectProperty', - 'Proxy', - 'ProxyAuthorization', - 'PublicKey', - 'ReferenceLinks', - 'TeamMember', - 'TeamProject', - 'TeamProjectCollection', - 'TeamProjectCollectionReference', - 'TeamProjectReference', - 'WebApiConnectedService', - 'WebApiConnectedServiceDetails', - 'WebApiConnectedServiceRef', - 'WebApiTeam', - 'WebApiTeamRef', -] diff --git a/vsts/vsts/core/v4_1/models/graph_subject_base.py b/vsts/vsts/core/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/core/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/core/v4_1/models/identity_data.py b/vsts/vsts/core/v4_1/models/identity_data.py deleted file mode 100644 index 160e8308..00000000 --- a/vsts/vsts/core/v4_1/models/identity_data.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityData(Model): - """IdentityData. - - :param identity_ids: - :type identity_ids: list of str - """ - - _attribute_map = { - 'identity_ids': {'key': 'identityIds', 'type': '[str]'} - } - - def __init__(self, identity_ids=None): - super(IdentityData, self).__init__() - self.identity_ids = identity_ids diff --git a/vsts/vsts/core/v4_1/models/identity_ref.py b/vsts/vsts/core/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/core/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/core/v4_1/models/json_patch_operation.py b/vsts/vsts/core/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/core/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/core/v4_1/models/operation_reference.py b/vsts/vsts/core/v4_1/models/operation_reference.py deleted file mode 100644 index cdbef013..00000000 --- a/vsts/vsts/core/v4_1/models/operation_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationReference(Model): - """OperationReference. - - :param id: Unique identifier for the operation. - :type id: str - :param plugin_id: Unique identifier for the plugin. - :type plugin_id: str - :param status: The current status of the operation. - :type status: object - :param url: URL to get the full operation object. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'plugin_id': {'key': 'pluginId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, plugin_id=None, status=None, url=None): - super(OperationReference, self).__init__() - self.id = id - self.plugin_id = plugin_id - self.status = status - self.url = url diff --git a/vsts/vsts/core/v4_1/models/process.py b/vsts/vsts/core/v4_1/models/process.py deleted file mode 100644 index bcbb35ba..00000000 --- a/vsts/vsts/core/v4_1/models/process.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .process_reference import ProcessReference - - -class Process(ProcessReference): - """Process. - - :param name: - :type name: str - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: str - :param is_default: - :type is_default: bool - :param type: - :type type: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, name=None, url=None, _links=None, description=None, id=None, is_default=None, type=None): - super(Process, self).__init__(name=name, url=url) - self._links = _links - self.description = description - self.id = id - self.is_default = is_default - self.type = type diff --git a/vsts/vsts/core/v4_1/models/process_reference.py b/vsts/vsts/core/v4_1/models/process_reference.py deleted file mode 100644 index 897afb57..00000000 --- a/vsts/vsts/core/v4_1/models/process_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessReference(Model): - """ProcessReference. - - :param name: - :type name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, url=None): - super(ProcessReference, self).__init__() - self.name = name - self.url = url diff --git a/vsts/vsts/core/v4_1/models/project_info.py b/vsts/vsts/core/v4_1/models/project_info.py deleted file mode 100644 index db391e77..00000000 --- a/vsts/vsts/core/v4_1/models/project_info.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectInfo(Model): - """ProjectInfo. - - :param abbreviation: - :type abbreviation: str - :param description: - :type description: str - :param id: - :type id: str - :param last_update_time: - :type last_update_time: datetime - :param name: - :type name: str - :param properties: - :type properties: list of :class:`ProjectProperty ` - :param revision: Current revision of the project - :type revision: long - :param state: - :type state: object - :param uri: - :type uri: str - :param version: - :type version: long - :param visibility: - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '[ProjectProperty]'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'long'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, last_update_time=None, name=None, properties=None, revision=None, state=None, uri=None, version=None, visibility=None): - super(ProjectInfo, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.last_update_time = last_update_time - self.name = name - self.properties = properties - self.revision = revision - self.state = state - self.uri = uri - self.version = version - self.visibility = visibility diff --git a/vsts/vsts/core/v4_1/models/project_property.py b/vsts/vsts/core/v4_1/models/project_property.py deleted file mode 100644 index 6bebcd11..00000000 --- a/vsts/vsts/core/v4_1/models/project_property.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectProperty(Model): - """ProjectProperty. - - :param name: - :type name: str - :param value: - :type value: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, name=None, value=None): - super(ProjectProperty, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/core/v4_1/models/proxy.py b/vsts/vsts/core/v4_1/models/proxy.py deleted file mode 100644 index ec17a518..00000000 --- a/vsts/vsts/core/v4_1/models/proxy.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Proxy(Model): - """Proxy. - - :param authorization: - :type authorization: :class:`ProxyAuthorization ` - :param description: This is a description string - :type description: str - :param friendly_name: The friendly name of the server - :type friendly_name: str - :param global_default: - :type global_default: bool - :param site: This is a string representation of the site that the proxy server is located in (e.g. "NA-WA-RED") - :type site: str - :param site_default: - :type site_default: bool - :param url: The URL of the proxy server - :type url: str - """ - - _attribute_map = { - 'authorization': {'key': 'authorization', 'type': 'ProxyAuthorization'}, - 'description': {'key': 'description', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'global_default': {'key': 'globalDefault', 'type': 'bool'}, - 'site': {'key': 'site', 'type': 'str'}, - 'site_default': {'key': 'siteDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, authorization=None, description=None, friendly_name=None, global_default=None, site=None, site_default=None, url=None): - super(Proxy, self).__init__() - self.authorization = authorization - self.description = description - self.friendly_name = friendly_name - self.global_default = global_default - self.site = site - self.site_default = site_default - self.url = url diff --git a/vsts/vsts/core/v4_1/models/proxy_authorization.py b/vsts/vsts/core/v4_1/models/proxy_authorization.py deleted file mode 100644 index 8b4178a1..00000000 --- a/vsts/vsts/core/v4_1/models/proxy_authorization.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProxyAuthorization(Model): - """ProxyAuthorization. - - :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. - :type authorization_url: str - :param client_id: Gets or sets the client identifier for this proxy. - :type client_id: str - :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` - :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` - """ - - _attribute_map = { - 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'str'}, - 'public_key': {'key': 'publicKey', 'type': 'PublicKey'} - } - - def __init__(self, authorization_url=None, client_id=None, identity=None, public_key=None): - super(ProxyAuthorization, self).__init__() - self.authorization_url = authorization_url - self.client_id = client_id - self.identity = identity - self.public_key = public_key diff --git a/vsts/vsts/core/v4_1/models/public_key.py b/vsts/vsts/core/v4_1/models/public_key.py deleted file mode 100644 index 2ea0e151..00000000 --- a/vsts/vsts/core/v4_1/models/public_key.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublicKey(Model): - """PublicKey. - - :param exponent: Gets or sets the exponent for the public key. - :type exponent: str - :param modulus: Gets or sets the modulus for the public key. - :type modulus: str - """ - - _attribute_map = { - 'exponent': {'key': 'exponent', 'type': 'str'}, - 'modulus': {'key': 'modulus', 'type': 'str'} - } - - def __init__(self, exponent=None, modulus=None): - super(PublicKey, self).__init__() - self.exponent = exponent - self.modulus = modulus diff --git a/vsts/vsts/core/v4_1/models/reference_links.py b/vsts/vsts/core/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/core/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/core/v4_1/models/team_member.py b/vsts/vsts/core/v4_1/models/team_member.py deleted file mode 100644 index 1f316f88..00000000 --- a/vsts/vsts/core/v4_1/models/team_member.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamMember(Model): - """TeamMember. - - :param identity: - :type identity: :class:`IdentityRef ` - :param is_team_admin: - :type is_team_admin: bool - """ - - _attribute_map = { - 'identity': {'key': 'identity', 'type': 'IdentityRef'}, - 'is_team_admin': {'key': 'isTeamAdmin', 'type': 'bool'} - } - - def __init__(self, identity=None, is_team_admin=None): - super(TeamMember, self).__init__() - self.identity = identity - self.is_team_admin = is_team_admin diff --git a/vsts/vsts/core/v4_1/models/team_project.py b/vsts/vsts/core/v4_1/models/team_project.py deleted file mode 100644 index b6a2db7e..00000000 --- a/vsts/vsts/core/v4_1/models/team_project.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_project_reference import TeamProjectReference - - -class TeamProject(TeamProjectReference): - """TeamProject. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` - :param capabilities: Set of capabilities this project has (such as process template & version control). - :type capabilities: dict - :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'capabilities': {'key': 'capabilities', 'type': '{{str}}'}, - 'default_team': {'key': 'defaultTeam', 'type': 'WebApiTeamRef'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): - super(TeamProject, self).__init__(abbreviation=abbreviation, description=description, id=id, name=name, revision=revision, state=state, url=url, visibility=visibility) - self._links = _links - self.capabilities = capabilities - self.default_team = default_team diff --git a/vsts/vsts/core/v4_1/models/team_project_collection.py b/vsts/vsts/core/v4_1/models/team_project_collection.py deleted file mode 100644 index 29ba3fbf..00000000 --- a/vsts/vsts/core/v4_1/models/team_project_collection.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_project_collection_reference import TeamProjectCollectionReference - - -class TeamProjectCollection(TeamProjectCollectionReference): - """TeamProjectCollection. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` - :param description: Project collection description. - :type description: str - :param state: Project collection state. - :type state: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None, _links=None, description=None, state=None): - super(TeamProjectCollection, self).__init__(id=id, name=name, url=url) - self._links = _links - self.description = description - self.state = state diff --git a/vsts/vsts/core/v4_1/models/team_project_collection_reference.py b/vsts/vsts/core/v4_1/models/team_project_collection_reference.py deleted file mode 100644 index 6f4a596a..00000000 --- a/vsts/vsts/core/v4_1/models/team_project_collection_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectCollectionReference(Model): - """TeamProjectCollectionReference. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(TeamProjectCollectionReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/core/v4_1/models/team_project_reference.py b/vsts/vsts/core/v4_1/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/core/v4_1/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/core/v4_1/models/web_api_connected_service.py b/vsts/vsts/core/v4_1/models/web_api_connected_service.py deleted file mode 100644 index 59e2fdd9..00000000 --- a/vsts/vsts/core/v4_1/models/web_api_connected_service.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .web_api_connected_service_ref import WebApiConnectedServiceRef - - -class WebApiConnectedService(WebApiConnectedServiceRef): - """WebApiConnectedService. - - :param url: - :type url: str - :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` - :param description: Extra description on the service. - :type description: str - :param friendly_name: Friendly Name of service connection - :type friendly_name: str - :param id: Id/Name of the connection service. For Ex: Subscription Id for Azure Connection - :type id: str - :param kind: The kind of service. - :type kind: str - :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` - :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com - :type service_uri: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'authenticated_by': {'key': 'authenticatedBy', 'type': 'IdentityRef'}, - 'description': {'key': 'description', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'service_uri': {'key': 'serviceUri', 'type': 'str'} - } - - def __init__(self, url=None, authenticated_by=None, description=None, friendly_name=None, id=None, kind=None, project=None, service_uri=None): - super(WebApiConnectedService, self).__init__(url=url) - self.authenticated_by = authenticated_by - self.description = description - self.friendly_name = friendly_name - self.id = id - self.kind = kind - self.project = project - self.service_uri = service_uri diff --git a/vsts/vsts/core/v4_1/models/web_api_connected_service_details.py b/vsts/vsts/core/v4_1/models/web_api_connected_service_details.py deleted file mode 100644 index a9729b37..00000000 --- a/vsts/vsts/core/v4_1/models/web_api_connected_service_details.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .web_api_connected_service_ref import WebApiConnectedServiceRef - - -class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): - """WebApiConnectedServiceDetails. - - :param id: - :type id: str - :param url: - :type url: str - :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` - :param credentials_xml: Credential info - :type credentials_xml: str - :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com - :type end_point: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'connected_service_meta_data': {'key': 'connectedServiceMetaData', 'type': 'WebApiConnectedService'}, - 'credentials_xml': {'key': 'credentialsXml', 'type': 'str'}, - 'end_point': {'key': 'endPoint', 'type': 'str'} - } - - def __init__(self, id=None, url=None, connected_service_meta_data=None, credentials_xml=None, end_point=None): - super(WebApiConnectedServiceDetails, self).__init__(id=id, url=url) - self.connected_service_meta_data = connected_service_meta_data - self.credentials_xml = credentials_xml - self.end_point = end_point diff --git a/vsts/vsts/core/v4_1/models/web_api_connected_service_ref.py b/vsts/vsts/core/v4_1/models/web_api_connected_service_ref.py deleted file mode 100644 index 4a0e1863..00000000 --- a/vsts/vsts/core/v4_1/models/web_api_connected_service_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiConnectedServiceRef(Model): - """WebApiConnectedServiceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WebApiConnectedServiceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/core/v4_1/models/web_api_team.py b/vsts/vsts/core/v4_1/models/web_api_team.py deleted file mode 100644 index 43906199..00000000 --- a/vsts/vsts/core/v4_1/models/web_api_team.py +++ /dev/null @@ -1,46 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .web_api_team_ref import WebApiTeamRef - - -class WebApiTeam(WebApiTeamRef): - """WebApiTeam. - - :param id: Team (Identity) Guid. A Team Foundation ID. - :type id: str - :param name: Team name - :type name: str - :param url: Team REST API Url - :type url: str - :param description: Team description - :type description: str - :param identity_url: Identity REST API Url to this team - :type identity_url: str - :param project_id: - :type project_id: str - :param project_name: - :type project_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'identity_url': {'key': 'identityUrl', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'project_name': {'key': 'projectName', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None, description=None, identity_url=None, project_id=None, project_name=None): - super(WebApiTeam, self).__init__(id=id, name=name, url=url) - self.description = description - self.identity_url = identity_url - self.project_id = project_id - self.project_name = project_name diff --git a/vsts/vsts/core/v4_1/models/web_api_team_ref.py b/vsts/vsts/core/v4_1/models/web_api_team_ref.py deleted file mode 100644 index fba42b04..00000000 --- a/vsts/vsts/core/v4_1/models/web_api_team_ref.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiTeamRef(Model): - """WebApiTeamRef. - - :param id: Team (Identity) Guid. A Team Foundation ID. - :type id: str - :param name: Team name - :type name: str - :param url: Team REST API Url - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(WebApiTeamRef, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/customer_intelligence/__init__.py b/vsts/vsts/customer_intelligence/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/customer_intelligence/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/customer_intelligence/customer_intelligence_client.py b/vsts/vsts/customer_intelligence/customer_intelligence_client.py deleted file mode 100644 index 23c6b922..00000000 --- a/vsts/vsts/customer_intelligence/customer_intelligence_client.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 ..vss_client import VssClient -from . import models - - -class CustomerIntelligenceClient(VssClient): - """CustomerIntelligence - - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(CustomerIntelligenceClient, 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 publish_events(self, events): - """PublishEvents. - [Preview API] - :param [CustomerIntelligenceEvent] events: - """ - content = self._serialize.body(events, '[CustomerIntelligenceEvent]') - self._send(http_method='POST', - location_id='b5cc35c2-ff2b-491d-a085-24b6e9f396fd', - version='4.1-preview.1', - content=content) - diff --git a/vsts/vsts/customer_intelligence/v4_0/__init__.py b/vsts/vsts/customer_intelligence/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/customer_intelligence/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/customer_intelligence/v4_1/__init__.py b/vsts/vsts/customer_intelligence/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/customer_intelligence/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/__init__.py b/vsts/vsts/dashboard/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/dashboard/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/v4_0/__init__.py b/vsts/vsts/dashboard/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/dashboard/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/v4_0/models/__init__.py b/vsts/vsts/dashboard/v4_0/models/__init__.py deleted file mode 100644 index 3673bd63..00000000 --- a/vsts/vsts/dashboard/v4_0/models/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard import Dashboard -from .dashboard_group import DashboardGroup -from .dashboard_group_entry import DashboardGroupEntry -from .dashboard_group_entry_response import DashboardGroupEntryResponse -from .dashboard_response import DashboardResponse -from .lightbox_options import LightboxOptions -from .reference_links import ReferenceLinks -from .semantic_version import SemanticVersion -from .team_context import TeamContext -from .widget import Widget -from .widget_metadata import WidgetMetadata -from .widget_metadata_response import WidgetMetadataResponse -from .widget_position import WidgetPosition -from .widget_response import WidgetResponse -from .widget_size import WidgetSize -from .widgets_versioned_list import WidgetsVersionedList -from .widget_types_response import WidgetTypesResponse - -__all__ = [ - 'Dashboard', - 'DashboardGroup', - 'DashboardGroupEntry', - 'DashboardGroupEntryResponse', - 'DashboardResponse', - 'LightboxOptions', - 'ReferenceLinks', - 'SemanticVersion', - 'TeamContext', - 'Widget', - 'WidgetMetadata', - 'WidgetMetadataResponse', - 'WidgetPosition', - 'WidgetResponse', - 'WidgetSize', - 'WidgetsVersionedList', - 'WidgetTypesResponse', -] diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard.py b/vsts/vsts/dashboard/v4_0/models/dashboard.py deleted file mode 100644 index 455b13df..00000000 --- a/vsts/vsts/dashboard/v4_0/models/dashboard.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Dashboard(Model): - """Dashboard. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param eTag: - :type eTag: str - :param id: - :type id: str - :param name: - :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: - :type position: int - :param refresh_interval: - :type refresh_interval: int - :param url: - :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'} - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(Dashboard, self).__init__() - self._links = _links - self.description = description - self.eTag = eTag - self.id = id - self.name = name - self.owner_id = owner_id - self.position = position - self.refresh_interval = refresh_interval - self.url = url - self.widgets = widgets diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_group.py b/vsts/vsts/dashboard/v4_0/models/dashboard_group.py deleted file mode 100644 index 2b90ece1..00000000 --- a/vsts/vsts/dashboard/v4_0/models/dashboard_group.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DashboardGroup(Model): - """DashboardGroup. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param dashboard_entries: - :type dashboard_entries: list of :class:`DashboardGroupEntry ` - :param permission: - :type permission: object - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'dashboard_entries': {'key': 'dashboardEntries', 'type': '[DashboardGroupEntry]'}, - 'permission': {'key': 'permission', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, dashboard_entries=None, permission=None, url=None): - super(DashboardGroup, self).__init__() - self._links = _links - self.dashboard_entries = dashboard_entries - self.permission = permission - self.url = url diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py b/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py deleted file mode 100644 index ec496571..00000000 --- a/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard import Dashboard - - -class DashboardGroupEntry(Dashboard): - """DashboardGroupEntry. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param eTag: - :type eTag: str - :param id: - :type id: str - :param name: - :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: - :type position: int - :param refresh_interval: - :type refresh_interval: int - :param url: - :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'}, - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(DashboardGroupEntry, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py b/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py deleted file mode 100644 index 1f65d586..00000000 --- a/vsts/vsts/dashboard/v4_0/models/dashboard_group_entry_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard_group_entry import DashboardGroupEntry - - -class DashboardGroupEntryResponse(DashboardGroupEntry): - """DashboardGroupEntryResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param eTag: - :type eTag: str - :param id: - :type id: str - :param name: - :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: - :type position: int - :param refresh_interval: - :type refresh_interval: int - :param url: - :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'}, - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(DashboardGroupEntryResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_0/models/dashboard_response.py b/vsts/vsts/dashboard/v4_0/models/dashboard_response.py deleted file mode 100644 index f5ba6431..00000000 --- a/vsts/vsts/dashboard/v4_0/models/dashboard_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard_group_entry import DashboardGroupEntry - - -class DashboardResponse(DashboardGroupEntry): - """DashboardResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param eTag: - :type eTag: str - :param id: - :type id: str - :param name: - :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: - :type position: int - :param refresh_interval: - :type refresh_interval: int - :param url: - :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'}, - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(DashboardResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_0/models/lightbox_options.py b/vsts/vsts/dashboard/v4_0/models/lightbox_options.py deleted file mode 100644 index af876067..00000000 --- a/vsts/vsts/dashboard/v4_0/models/lightbox_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LightboxOptions(Model): - """LightboxOptions. - - :param height: Height of desired lightbox, in pixels - :type height: int - :param resizable: True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false. - :type resizable: bool - :param width: Width of desired lightbox, in pixels - :type width: int - """ - - _attribute_map = { - 'height': {'key': 'height', 'type': 'int'}, - 'resizable': {'key': 'resizable', 'type': 'bool'}, - 'width': {'key': 'width', 'type': 'int'} - } - - def __init__(self, height=None, resizable=None, width=None): - super(LightboxOptions, self).__init__() - self.height = height - self.resizable = resizable - self.width = width diff --git a/vsts/vsts/dashboard/v4_0/models/reference_links.py b/vsts/vsts/dashboard/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/dashboard/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/dashboard/v4_0/models/semantic_version.py b/vsts/vsts/dashboard/v4_0/models/semantic_version.py deleted file mode 100644 index a966f509..00000000 --- a/vsts/vsts/dashboard/v4_0/models/semantic_version.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SemanticVersion(Model): - """SemanticVersion. - - :param major: Major version when you make incompatible API changes - :type major: int - :param minor: Minor version when you add functionality in a backwards-compatible manner - :type minor: int - :param patch: Patch version when you make backwards-compatible bug fixes - :type patch: int - """ - - _attribute_map = { - 'major': {'key': 'major', 'type': 'int'}, - 'minor': {'key': 'minor', 'type': 'int'}, - 'patch': {'key': 'patch', 'type': 'int'} - } - - def __init__(self, major=None, minor=None, patch=None): - super(SemanticVersion, self).__init__() - self.major = major - self.minor = minor - self.patch = patch diff --git a/vsts/vsts/dashboard/v4_0/models/team_context.py b/vsts/vsts/dashboard/v4_0/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/dashboard/v4_0/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/dashboard/v4_0/models/widget.py b/vsts/vsts/dashboard/v4_0/models/widget.py deleted file mode 100644 index 6416565d..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widget.py +++ /dev/null @@ -1,105 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Widget(Model): - """Widget. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` - :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. - :type artifact_id: str - :param configuration_contribution_id: - :type configuration_contribution_id: str - :param configuration_contribution_relative_id: - :type configuration_contribution_relative_id: str - :param content_uri: - :type content_uri: str - :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. - :type contribution_id: str - :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` - :param eTag: - :type eTag: str - :param id: - :type id: str - :param is_enabled: - :type is_enabled: bool - :param is_name_configurable: - :type is_name_configurable: bool - :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` - :param loading_image_url: - :type loading_image_url: str - :param name: - :type name: str - :param position: - :type position: :class:`WidgetPosition ` - :param settings: - :type settings: str - :param settings_version: - :type settings_version: :class:`SemanticVersion ` - :param size: - :type size: :class:`WidgetSize ` - :param type_id: - :type type_id: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, - 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, - 'content_uri': {'key': 'contentUri', 'type': 'str'}, - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, - 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, - 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'WidgetPosition'}, - 'settings': {'key': 'settings', 'type': 'str'}, - 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, - 'size': {'key': 'size', 'type': 'WidgetSize'}, - 'type_id': {'key': 'typeId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): - super(Widget, self).__init__() - self._links = _links - self.allowed_sizes = allowed_sizes - self.artifact_id = artifact_id - self.configuration_contribution_id = configuration_contribution_id - self.configuration_contribution_relative_id = configuration_contribution_relative_id - self.content_uri = content_uri - self.contribution_id = contribution_id - self.dashboard = dashboard - self.eTag = eTag - self.id = id - self.is_enabled = is_enabled - self.is_name_configurable = is_name_configurable - self.lightbox_options = lightbox_options - self.loading_image_url = loading_image_url - self.name = name - self.position = position - self.settings = settings - self.settings_version = settings_version - self.size = size - self.type_id = type_id - self.url = url diff --git a/vsts/vsts/dashboard/v4_0/models/widget_metadata.py b/vsts/vsts/dashboard/v4_0/models/widget_metadata.py deleted file mode 100644 index 9ca6ace8..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widget_metadata.py +++ /dev/null @@ -1,105 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetMetadata(Model): - """WidgetMetadata. - - :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` - :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. - :type analytics_service_required: bool - :param catalog_icon_url: Resource for an icon in the widget catalog. - :type catalog_icon_url: str - :param catalog_info_url: Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted - :type catalog_info_url: str - :param configuration_contribution_id: The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. - :type configuration_contribution_id: str - :param configuration_contribution_relative_id: The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. - :type configuration_contribution_relative_id: str - :param configuration_required: Indicates if the widget requires configuration before being added to dashboard. - :type configuration_required: bool - :param content_uri: Uri for the WidgetFactory to get the widget - :type content_uri: str - :param contribution_id: The id of the underlying contribution defining the supplied Widget. - :type contribution_id: str - :param default_settings: Optional default settings to be copied into widget settings - :type default_settings: str - :param description: Summary information describing the widget. - :type description: str - :param is_enabled: Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context) - :type is_enabled: bool - :param is_name_configurable: Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest. - :type is_name_configurable: bool - :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. For V1, only "pull" model widgets can be provided from the catalog. - :type is_visible_from_catalog: bool - :param lightbox_options: Opt-in lightbox properties - :type lightbox_options: :class:`LightboxOptions ` - :param loading_image_url: Resource for a loading placeholder image on dashboard - :type loading_image_url: str - :param name: User facing name of the widget type. Each widget must use a unique value here. - :type name: str - :param publisher_name: Publisher Name of this kind of widget. - :type publisher_name: str - :param supported_scopes: Data contract required for the widget to function and to work in its container. - :type supported_scopes: list of WidgetScope - :param targets: Contribution target IDs - :type targets: list of str - :param type_id: Dev-facing id of this kind of widget. - :type type_id: str - """ - - _attribute_map = { - 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, - 'analytics_service_required': {'key': 'analyticsServiceRequired', 'type': 'bool'}, - 'catalog_icon_url': {'key': 'catalogIconUrl', 'type': 'str'}, - 'catalog_info_url': {'key': 'catalogInfoUrl', 'type': 'str'}, - 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, - 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, - 'configuration_required': {'key': 'configurationRequired', 'type': 'bool'}, - 'content_uri': {'key': 'contentUri', 'type': 'str'}, - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'default_settings': {'key': 'defaultSettings', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, - 'is_visible_from_catalog': {'key': 'isVisibleFromCatalog', 'type': 'bool'}, - 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, - 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[object]'}, - 'targets': {'key': 'targets', 'type': '[str]'}, - 'type_id': {'key': 'typeId', 'type': 'str'} - } - - def __init__(self, allowed_sizes=None, analytics_service_required=None, catalog_icon_url=None, catalog_info_url=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, configuration_required=None, content_uri=None, contribution_id=None, default_settings=None, description=None, is_enabled=None, is_name_configurable=None, is_visible_from_catalog=None, lightbox_options=None, loading_image_url=None, name=None, publisher_name=None, supported_scopes=None, targets=None, type_id=None): - super(WidgetMetadata, self).__init__() - self.allowed_sizes = allowed_sizes - self.analytics_service_required = analytics_service_required - self.catalog_icon_url = catalog_icon_url - self.catalog_info_url = catalog_info_url - self.configuration_contribution_id = configuration_contribution_id - self.configuration_contribution_relative_id = configuration_contribution_relative_id - self.configuration_required = configuration_required - self.content_uri = content_uri - self.contribution_id = contribution_id - self.default_settings = default_settings - self.description = description - self.is_enabled = is_enabled - self.is_name_configurable = is_name_configurable - self.is_visible_from_catalog = is_visible_from_catalog - self.lightbox_options = lightbox_options - self.loading_image_url = loading_image_url - self.name = name - self.publisher_name = publisher_name - self.supported_scopes = supported_scopes - self.targets = targets - self.type_id = type_id diff --git a/vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py b/vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py deleted file mode 100644 index e8b4b718..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widget_metadata_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetMetadataResponse(Model): - """WidgetMetadataResponse. - - :param uri: - :type uri: str - :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'widget_metadata': {'key': 'widgetMetadata', 'type': 'WidgetMetadata'} - } - - def __init__(self, uri=None, widget_metadata=None): - super(WidgetMetadataResponse, self).__init__() - self.uri = uri - self.widget_metadata = widget_metadata diff --git a/vsts/vsts/dashboard/v4_0/models/widget_position.py b/vsts/vsts/dashboard/v4_0/models/widget_position.py deleted file mode 100644 index fffa861f..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widget_position.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetPosition(Model): - """WidgetPosition. - - :param column: - :type column: int - :param row: - :type row: int - """ - - _attribute_map = { - 'column': {'key': 'column', 'type': 'int'}, - 'row': {'key': 'row', 'type': 'int'} - } - - def __init__(self, column=None, row=None): - super(WidgetPosition, self).__init__() - self.column = column - self.row = row diff --git a/vsts/vsts/dashboard/v4_0/models/widget_response.py b/vsts/vsts/dashboard/v4_0/models/widget_response.py deleted file mode 100644 index 8f7ca28c..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widget_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .widget import Widget - - -class WidgetResponse(Widget): - """WidgetResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` - :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. - :type artifact_id: str - :param configuration_contribution_id: - :type configuration_contribution_id: str - :param configuration_contribution_relative_id: - :type configuration_contribution_relative_id: str - :param content_uri: - :type content_uri: str - :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. - :type contribution_id: str - :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` - :param eTag: - :type eTag: str - :param id: - :type id: str - :param is_enabled: - :type is_enabled: bool - :param is_name_configurable: - :type is_name_configurable: bool - :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` - :param loading_image_url: - :type loading_image_url: str - :param name: - :type name: str - :param position: - :type position: :class:`WidgetPosition ` - :param settings: - :type settings: str - :param settings_version: - :type settings_version: :class:`SemanticVersion ` - :param size: - :type size: :class:`WidgetSize ` - :param type_id: - :type type_id: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, - 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, - 'content_uri': {'key': 'contentUri', 'type': 'str'}, - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, - 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, - 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'WidgetPosition'}, - 'settings': {'key': 'settings', 'type': 'str'}, - 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, - 'size': {'key': 'size', 'type': 'WidgetSize'}, - 'type_id': {'key': 'typeId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): - super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) diff --git a/vsts/vsts/dashboard/v4_0/models/widget_size.py b/vsts/vsts/dashboard/v4_0/models/widget_size.py deleted file mode 100644 index 36587e24..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widget_size.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetSize(Model): - """WidgetSize. - - :param column_span: - :type column_span: int - :param row_span: - :type row_span: int - """ - - _attribute_map = { - 'column_span': {'key': 'columnSpan', 'type': 'int'}, - 'row_span': {'key': 'rowSpan', 'type': 'int'} - } - - def __init__(self, column_span=None, row_span=None): - super(WidgetSize, self).__init__() - self.column_span = column_span - self.row_span = row_span diff --git a/vsts/vsts/dashboard/v4_0/models/widget_types_response.py b/vsts/vsts/dashboard/v4_0/models/widget_types_response.py deleted file mode 100644 index b703f37e..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widget_types_response.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetTypesResponse(Model): - """WidgetTypesResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param uri: - :type uri: str - :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'widget_types': {'key': 'widgetTypes', 'type': '[WidgetMetadata]'} - } - - def __init__(self, _links=None, uri=None, widget_types=None): - super(WidgetTypesResponse, self).__init__() - self._links = _links - self.uri = uri - self.widget_types = widget_types diff --git a/vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py b/vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py deleted file mode 100644 index db67a3aa..00000000 --- a/vsts/vsts/dashboard/v4_0/models/widgets_versioned_list.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetsVersionedList(Model): - """WidgetsVersionedList. - - :param eTag: - :type eTag: list of str - :param widgets: - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - 'eTag': {'key': 'eTag', 'type': '[str]'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'} - } - - def __init__(self, eTag=None, widgets=None): - super(WidgetsVersionedList, self).__init__() - self.eTag = eTag - self.widgets = widgets diff --git a/vsts/vsts/dashboard/v4_1/__init__.py b/vsts/vsts/dashboard/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/dashboard/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/dashboard/v4_1/models/__init__.py b/vsts/vsts/dashboard/v4_1/models/__init__.py deleted file mode 100644 index 3673bd63..00000000 --- a/vsts/vsts/dashboard/v4_1/models/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard import Dashboard -from .dashboard_group import DashboardGroup -from .dashboard_group_entry import DashboardGroupEntry -from .dashboard_group_entry_response import DashboardGroupEntryResponse -from .dashboard_response import DashboardResponse -from .lightbox_options import LightboxOptions -from .reference_links import ReferenceLinks -from .semantic_version import SemanticVersion -from .team_context import TeamContext -from .widget import Widget -from .widget_metadata import WidgetMetadata -from .widget_metadata_response import WidgetMetadataResponse -from .widget_position import WidgetPosition -from .widget_response import WidgetResponse -from .widget_size import WidgetSize -from .widgets_versioned_list import WidgetsVersionedList -from .widget_types_response import WidgetTypesResponse - -__all__ = [ - 'Dashboard', - 'DashboardGroup', - 'DashboardGroupEntry', - 'DashboardGroupEntryResponse', - 'DashboardResponse', - 'LightboxOptions', - 'ReferenceLinks', - 'SemanticVersion', - 'TeamContext', - 'Widget', - 'WidgetMetadata', - 'WidgetMetadataResponse', - 'WidgetPosition', - 'WidgetResponse', - 'WidgetSize', - 'WidgetsVersionedList', - 'WidgetTypesResponse', -] diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard.py b/vsts/vsts/dashboard/v4_1/models/dashboard.py deleted file mode 100644 index 305faaec..00000000 --- a/vsts/vsts/dashboard/v4_1/models/dashboard.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Dashboard(Model): - """Dashboard. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: Description of the dashboard. - :type description: str - :param eTag: Server defined version tracking value, used for edit collision detection. - :type eTag: str - :param id: ID of the Dashboard. Provided by service at creation time. - :type id: str - :param name: Name of the Dashboard. - :type name: str - :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. - :type position: int - :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. - :type refresh_interval: int - :param url: - :type url: str - :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'} - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(Dashboard, self).__init__() - self._links = _links - self.description = description - self.eTag = eTag - self.id = id - self.name = name - self.owner_id = owner_id - self.position = position - self.refresh_interval = refresh_interval - self.url = url - self.widgets = widgets diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_group.py b/vsts/vsts/dashboard/v4_1/models/dashboard_group.py deleted file mode 100644 index 0e05d0da..00000000 --- a/vsts/vsts/dashboard/v4_1/models/dashboard_group.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DashboardGroup(Model): - """DashboardGroup. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param dashboard_entries: A list of Dashboards held by the Dashboard Group - :type dashboard_entries: list of :class:`DashboardGroupEntry ` - :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. - :type permission: object - :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. - :type team_dashboard_permission: object - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'dashboard_entries': {'key': 'dashboardEntries', 'type': '[DashboardGroupEntry]'}, - 'permission': {'key': 'permission', 'type': 'object'}, - 'team_dashboard_permission': {'key': 'teamDashboardPermission', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, dashboard_entries=None, permission=None, team_dashboard_permission=None, url=None): - super(DashboardGroup, self).__init__() - self._links = _links - self.dashboard_entries = dashboard_entries - self.permission = permission - self.team_dashboard_permission = team_dashboard_permission - self.url = url diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py b/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py deleted file mode 100644 index 5c3c9540..00000000 --- a/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard import Dashboard - - -class DashboardGroupEntry(Dashboard): - """DashboardGroupEntry. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: Description of the dashboard. - :type description: str - :param eTag: Server defined version tracking value, used for edit collision detection. - :type eTag: str - :param id: ID of the Dashboard. Provided by service at creation time. - :type id: str - :param name: Name of the Dashboard. - :type name: str - :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. - :type position: int - :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. - :type refresh_interval: int - :param url: - :type url: str - :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'}, - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(DashboardGroupEntry, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py b/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py deleted file mode 100644 index 7c64a4d4..00000000 --- a/vsts/vsts/dashboard/v4_1/models/dashboard_group_entry_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard_group_entry import DashboardGroupEntry - - -class DashboardGroupEntryResponse(DashboardGroupEntry): - """DashboardGroupEntryResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: Description of the dashboard. - :type description: str - :param eTag: Server defined version tracking value, used for edit collision detection. - :type eTag: str - :param id: ID of the Dashboard. Provided by service at creation time. - :type id: str - :param name: Name of the Dashboard. - :type name: str - :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. - :type position: int - :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. - :type refresh_interval: int - :param url: - :type url: str - :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'}, - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(DashboardGroupEntryResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_1/models/dashboard_response.py b/vsts/vsts/dashboard/v4_1/models/dashboard_response.py deleted file mode 100644 index 42aefba0..00000000 --- a/vsts/vsts/dashboard/v4_1/models/dashboard_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .dashboard_group_entry import DashboardGroupEntry - - -class DashboardResponse(DashboardGroupEntry): - """DashboardResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: Description of the dashboard. - :type description: str - :param eTag: Server defined version tracking value, used for edit collision detection. - :type eTag: str - :param id: ID of the Dashboard. Provided by service at creation time. - :type id: str - :param name: Name of the Dashboard. - :type name: str - :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. - :type owner_id: str - :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. - :type position: int - :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. - :type refresh_interval: int - :param url: - :type url: str - :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner_id': {'key': 'ownerId', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'refresh_interval': {'key': 'refreshInterval', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'}, - } - - def __init__(self, _links=None, description=None, eTag=None, id=None, name=None, owner_id=None, position=None, refresh_interval=None, url=None, widgets=None): - super(DashboardResponse, self).__init__(_links=_links, description=description, eTag=eTag, id=id, name=name, owner_id=owner_id, position=position, refresh_interval=refresh_interval, url=url, widgets=widgets) diff --git a/vsts/vsts/dashboard/v4_1/models/lightbox_options.py b/vsts/vsts/dashboard/v4_1/models/lightbox_options.py deleted file mode 100644 index af876067..00000000 --- a/vsts/vsts/dashboard/v4_1/models/lightbox_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LightboxOptions(Model): - """LightboxOptions. - - :param height: Height of desired lightbox, in pixels - :type height: int - :param resizable: True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false. - :type resizable: bool - :param width: Width of desired lightbox, in pixels - :type width: int - """ - - _attribute_map = { - 'height': {'key': 'height', 'type': 'int'}, - 'resizable': {'key': 'resizable', 'type': 'bool'}, - 'width': {'key': 'width', 'type': 'int'} - } - - def __init__(self, height=None, resizable=None, width=None): - super(LightboxOptions, self).__init__() - self.height = height - self.resizable = resizable - self.width = width diff --git a/vsts/vsts/dashboard/v4_1/models/reference_links.py b/vsts/vsts/dashboard/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/dashboard/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/dashboard/v4_1/models/semantic_version.py b/vsts/vsts/dashboard/v4_1/models/semantic_version.py deleted file mode 100644 index a966f509..00000000 --- a/vsts/vsts/dashboard/v4_1/models/semantic_version.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SemanticVersion(Model): - """SemanticVersion. - - :param major: Major version when you make incompatible API changes - :type major: int - :param minor: Minor version when you add functionality in a backwards-compatible manner - :type minor: int - :param patch: Patch version when you make backwards-compatible bug fixes - :type patch: int - """ - - _attribute_map = { - 'major': {'key': 'major', 'type': 'int'}, - 'minor': {'key': 'minor', 'type': 'int'}, - 'patch': {'key': 'patch', 'type': 'int'} - } - - def __init__(self, major=None, minor=None, patch=None): - super(SemanticVersion, self).__init__() - self.major = major - self.minor = minor - self.patch = patch diff --git a/vsts/vsts/dashboard/v4_1/models/team_context.py b/vsts/vsts/dashboard/v4_1/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/dashboard/v4_1/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/dashboard/v4_1/models/widget.py b/vsts/vsts/dashboard/v4_1/models/widget.py deleted file mode 100644 index 3b4d3450..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widget.py +++ /dev/null @@ -1,109 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Widget(Model): - """Widget. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` - :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. - :type are_settings_blocked_for_user: bool - :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. - :type artifact_id: str - :param configuration_contribution_id: - :type configuration_contribution_id: str - :param configuration_contribution_relative_id: - :type configuration_contribution_relative_id: str - :param content_uri: - :type content_uri: str - :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. - :type contribution_id: str - :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` - :param eTag: - :type eTag: str - :param id: - :type id: str - :param is_enabled: - :type is_enabled: bool - :param is_name_configurable: - :type is_name_configurable: bool - :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` - :param loading_image_url: - :type loading_image_url: str - :param name: - :type name: str - :param position: - :type position: :class:`WidgetPosition ` - :param settings: - :type settings: str - :param settings_version: - :type settings_version: :class:`SemanticVersion ` - :param size: - :type size: :class:`WidgetSize ` - :param type_id: - :type type_id: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, - 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, - 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, - 'content_uri': {'key': 'contentUri', 'type': 'str'}, - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, - 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, - 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'WidgetPosition'}, - 'settings': {'key': 'settings', 'type': 'str'}, - 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, - 'size': {'key': 'size', 'type': 'WidgetSize'}, - 'type_id': {'key': 'typeId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): - super(Widget, self).__init__() - self._links = _links - self.allowed_sizes = allowed_sizes - self.are_settings_blocked_for_user = are_settings_blocked_for_user - self.artifact_id = artifact_id - self.configuration_contribution_id = configuration_contribution_id - self.configuration_contribution_relative_id = configuration_contribution_relative_id - self.content_uri = content_uri - self.contribution_id = contribution_id - self.dashboard = dashboard - self.eTag = eTag - self.id = id - self.is_enabled = is_enabled - self.is_name_configurable = is_name_configurable - self.lightbox_options = lightbox_options - self.loading_image_url = loading_image_url - self.name = name - self.position = position - self.settings = settings - self.settings_version = settings_version - self.size = size - self.type_id = type_id - self.url = url diff --git a/vsts/vsts/dashboard/v4_1/models/widget_metadata.py b/vsts/vsts/dashboard/v4_1/models/widget_metadata.py deleted file mode 100644 index 32ee08d6..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widget_metadata.py +++ /dev/null @@ -1,105 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetMetadata(Model): - """WidgetMetadata. - - :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` - :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. - :type analytics_service_required: bool - :param catalog_icon_url: Resource for an icon in the widget catalog. - :type catalog_icon_url: str - :param catalog_info_url: Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted - :type catalog_info_url: str - :param configuration_contribution_id: The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. - :type configuration_contribution_id: str - :param configuration_contribution_relative_id: The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available. - :type configuration_contribution_relative_id: str - :param configuration_required: Indicates if the widget requires configuration before being added to dashboard. - :type configuration_required: bool - :param content_uri: Uri for the widget content to be loaded from . - :type content_uri: str - :param contribution_id: The id of the underlying contribution defining the supplied Widget. - :type contribution_id: str - :param default_settings: Optional default settings to be copied into widget settings. - :type default_settings: str - :param description: Summary information describing the widget. - :type description: str - :param is_enabled: Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context) - :type is_enabled: bool - :param is_name_configurable: Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest. - :type is_name_configurable: bool - :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. - :type is_visible_from_catalog: bool - :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. - :type lightbox_options: :class:`LightboxOptions ` - :param loading_image_url: Resource for a loading placeholder image on dashboard - :type loading_image_url: str - :param name: User facing name of the widget type. Each widget must use a unique value here. - :type name: str - :param publisher_name: Publisher Name of this kind of widget. - :type publisher_name: str - :param supported_scopes: Data contract required for the widget to function and to work in its container. - :type supported_scopes: list of WidgetScope - :param targets: Contribution target IDs - :type targets: list of str - :param type_id: Deprecated: locally unique developer-facing id of this kind of widget. ContributionId provides a globally unique identifier for widget types. - :type type_id: str - """ - - _attribute_map = { - 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, - 'analytics_service_required': {'key': 'analyticsServiceRequired', 'type': 'bool'}, - 'catalog_icon_url': {'key': 'catalogIconUrl', 'type': 'str'}, - 'catalog_info_url': {'key': 'catalogInfoUrl', 'type': 'str'}, - 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, - 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, - 'configuration_required': {'key': 'configurationRequired', 'type': 'bool'}, - 'content_uri': {'key': 'contentUri', 'type': 'str'}, - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'default_settings': {'key': 'defaultSettings', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, - 'is_visible_from_catalog': {'key': 'isVisibleFromCatalog', 'type': 'bool'}, - 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, - 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[object]'}, - 'targets': {'key': 'targets', 'type': '[str]'}, - 'type_id': {'key': 'typeId', 'type': 'str'} - } - - def __init__(self, allowed_sizes=None, analytics_service_required=None, catalog_icon_url=None, catalog_info_url=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, configuration_required=None, content_uri=None, contribution_id=None, default_settings=None, description=None, is_enabled=None, is_name_configurable=None, is_visible_from_catalog=None, lightbox_options=None, loading_image_url=None, name=None, publisher_name=None, supported_scopes=None, targets=None, type_id=None): - super(WidgetMetadata, self).__init__() - self.allowed_sizes = allowed_sizes - self.analytics_service_required = analytics_service_required - self.catalog_icon_url = catalog_icon_url - self.catalog_info_url = catalog_info_url - self.configuration_contribution_id = configuration_contribution_id - self.configuration_contribution_relative_id = configuration_contribution_relative_id - self.configuration_required = configuration_required - self.content_uri = content_uri - self.contribution_id = contribution_id - self.default_settings = default_settings - self.description = description - self.is_enabled = is_enabled - self.is_name_configurable = is_name_configurable - self.is_visible_from_catalog = is_visible_from_catalog - self.lightbox_options = lightbox_options - self.loading_image_url = loading_image_url - self.name = name - self.publisher_name = publisher_name - self.supported_scopes = supported_scopes - self.targets = targets - self.type_id = type_id diff --git a/vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py b/vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py deleted file mode 100644 index 1456e9c1..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widget_metadata_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetMetadataResponse(Model): - """WidgetMetadataResponse. - - :param uri: - :type uri: str - :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'widget_metadata': {'key': 'widgetMetadata', 'type': 'WidgetMetadata'} - } - - def __init__(self, uri=None, widget_metadata=None): - super(WidgetMetadataResponse, self).__init__() - self.uri = uri - self.widget_metadata = widget_metadata diff --git a/vsts/vsts/dashboard/v4_1/models/widget_position.py b/vsts/vsts/dashboard/v4_1/models/widget_position.py deleted file mode 100644 index fffa861f..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widget_position.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetPosition(Model): - """WidgetPosition. - - :param column: - :type column: int - :param row: - :type row: int - """ - - _attribute_map = { - 'column': {'key': 'column', 'type': 'int'}, - 'row': {'key': 'row', 'type': 'int'} - } - - def __init__(self, column=None, row=None): - super(WidgetPosition, self).__init__() - self.column = column - self.row = row diff --git a/vsts/vsts/dashboard/v4_1/models/widget_response.py b/vsts/vsts/dashboard/v4_1/models/widget_response.py deleted file mode 100644 index 7a955db6..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widget_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .widget import Widget - - -class WidgetResponse(Widget): - """WidgetResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` - :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. - :type are_settings_blocked_for_user: bool - :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. - :type artifact_id: str - :param configuration_contribution_id: - :type configuration_contribution_id: str - :param configuration_contribution_relative_id: - :type configuration_contribution_relative_id: str - :param content_uri: - :type content_uri: str - :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. - :type contribution_id: str - :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` - :param eTag: - :type eTag: str - :param id: - :type id: str - :param is_enabled: - :type is_enabled: bool - :param is_name_configurable: - :type is_name_configurable: bool - :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` - :param loading_image_url: - :type loading_image_url: str - :param name: - :type name: str - :param position: - :type position: :class:`WidgetPosition ` - :param settings: - :type settings: str - :param settings_version: - :type settings_version: :class:`SemanticVersion ` - :param size: - :type size: :class:`WidgetSize ` - :param type_id: - :type type_id: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, - 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, - 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, - 'content_uri': {'key': 'contentUri', 'type': 'str'}, - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'dashboard': {'key': 'dashboard', 'type': 'Dashboard'}, - 'eTag': {'key': 'eTag', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'is_name_configurable': {'key': 'isNameConfigurable', 'type': 'bool'}, - 'lightbox_options': {'key': 'lightboxOptions', 'type': 'LightboxOptions'}, - 'loading_image_url': {'key': 'loadingImageUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'WidgetPosition'}, - 'settings': {'key': 'settings', 'type': 'str'}, - 'settings_version': {'key': 'settingsVersion', 'type': 'SemanticVersion'}, - 'size': {'key': 'size', 'type': 'WidgetSize'}, - 'type_id': {'key': 'typeId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): - super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, are_settings_blocked_for_user=are_settings_blocked_for_user, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) diff --git a/vsts/vsts/dashboard/v4_1/models/widget_size.py b/vsts/vsts/dashboard/v4_1/models/widget_size.py deleted file mode 100644 index 20d49831..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widget_size.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetSize(Model): - """WidgetSize. - - :param column_span: The Width of the widget, expressed in dashboard grid columns. - :type column_span: int - :param row_span: The height of the widget, expressed in dashboard grid rows. - :type row_span: int - """ - - _attribute_map = { - 'column_span': {'key': 'columnSpan', 'type': 'int'}, - 'row_span': {'key': 'rowSpan', 'type': 'int'} - } - - def __init__(self, column_span=None, row_span=None): - super(WidgetSize, self).__init__() - self.column_span = column_span - self.row_span = row_span diff --git a/vsts/vsts/dashboard/v4_1/models/widget_types_response.py b/vsts/vsts/dashboard/v4_1/models/widget_types_response.py deleted file mode 100644 index 14a08342..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widget_types_response.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetTypesResponse(Model): - """WidgetTypesResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param uri: - :type uri: str - :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'widget_types': {'key': 'widgetTypes', 'type': '[WidgetMetadata]'} - } - - def __init__(self, _links=None, uri=None, widget_types=None): - super(WidgetTypesResponse, self).__init__() - self._links = _links - self.uri = uri - self.widget_types = widget_types diff --git a/vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py b/vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py deleted file mode 100644 index 915252e2..00000000 --- a/vsts/vsts/dashboard/v4_1/models/widgets_versioned_list.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WidgetsVersionedList(Model): - """WidgetsVersionedList. - - :param eTag: - :type eTag: list of str - :param widgets: - :type widgets: list of :class:`Widget ` - """ - - _attribute_map = { - 'eTag': {'key': 'eTag', 'type': '[str]'}, - 'widgets': {'key': 'widgets', 'type': '[Widget]'} - } - - def __init__(self, eTag=None, widgets=None): - super(WidgetsVersionedList, self).__init__() - self.eTag = eTag - self.widgets = widgets diff --git a/vsts/vsts/extension_management/__init__.py b/vsts/vsts/extension_management/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/extension_management/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/extension_management/v4_0/__init__.py b/vsts/vsts/extension_management/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/extension_management/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/extension_management/v4_0/models/__init__.py b/vsts/vsts/extension_management/v4_0/models/__init__.py deleted file mode 100644 index b6ac34af..00000000 --- a/vsts/vsts/extension_management/v4_0/models/__init__.py +++ /dev/null @@ -1,83 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .acquisition_operation import AcquisitionOperation -from .acquisition_operation_disallow_reason import AcquisitionOperationDisallowReason -from .acquisition_options import AcquisitionOptions -from .contribution import Contribution -from .contribution_base import ContributionBase -from .contribution_constraint import ContributionConstraint -from .contribution_property_description import ContributionPropertyDescription -from .contribution_type import ContributionType -from .extension_acquisition_request import ExtensionAcquisitionRequest -from .extension_authorization import ExtensionAuthorization -from .extension_badge import ExtensionBadge -from .extension_data_collection import ExtensionDataCollection -from .extension_data_collection_query import ExtensionDataCollectionQuery -from .extension_event_callback import ExtensionEventCallback -from .extension_event_callback_collection import ExtensionEventCallbackCollection -from .extension_file import ExtensionFile -from .extension_identifier import ExtensionIdentifier -from .extension_licensing import ExtensionLicensing -from .extension_manifest import ExtensionManifest -from .extension_policy import ExtensionPolicy -from .extension_request import ExtensionRequest -from .extension_share import ExtensionShare -from .extension_state import ExtensionState -from .extension_statistic import ExtensionStatistic -from .extension_version import ExtensionVersion -from .identity_ref import IdentityRef -from .installation_target import InstallationTarget -from .installed_extension import InstalledExtension -from .installed_extension_query import InstalledExtensionQuery -from .installed_extension_state import InstalledExtensionState -from .installed_extension_state_issue import InstalledExtensionStateIssue -from .licensing_override import LicensingOverride -from .published_extension import PublishedExtension -from .publisher_facts import PublisherFacts -from .requested_extension import RequestedExtension -from .user_extension_policy import UserExtensionPolicy - -__all__ = [ - 'AcquisitionOperation', - 'AcquisitionOperationDisallowReason', - 'AcquisitionOptions', - 'Contribution', - 'ContributionBase', - 'ContributionConstraint', - 'ContributionPropertyDescription', - 'ContributionType', - 'ExtensionAcquisitionRequest', - 'ExtensionAuthorization', - 'ExtensionBadge', - 'ExtensionDataCollection', - 'ExtensionDataCollectionQuery', - 'ExtensionEventCallback', - 'ExtensionEventCallbackCollection', - 'ExtensionFile', - 'ExtensionIdentifier', - 'ExtensionLicensing', - 'ExtensionManifest', - 'ExtensionPolicy', - 'ExtensionRequest', - 'ExtensionShare', - 'ExtensionState', - 'ExtensionStatistic', - 'ExtensionVersion', - 'IdentityRef', - 'InstallationTarget', - 'InstalledExtension', - 'InstalledExtensionQuery', - 'InstalledExtensionState', - 'InstalledExtensionStateIssue', - 'LicensingOverride', - 'PublishedExtension', - 'PublisherFacts', - 'RequestedExtension', - 'UserExtensionPolicy', -] diff --git a/vsts/vsts/extension_management/v4_0/models/acquisition_operation.py b/vsts/vsts/extension_management/v4_0/models/acquisition_operation.py deleted file mode 100644 index 2d9308c9..00000000 --- a/vsts/vsts/extension_management/v4_0/models/acquisition_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOperation(Model): - """AcquisitionOperation. - - :param operation_state: State of the the AcquisitionOperation for the current user - :type operation_state: object - :param operation_type: AcquisitionOperationType: install, request, buy, etc... - :type operation_type: object - :param reason: Optional reason to justify current state. Typically used with Disallow state. - :type reason: str - :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` - """ - - _attribute_map = { - 'operation_state': {'key': 'operationState', 'type': 'object'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'reasons': {'key': 'reasons', 'type': '[AcquisitionOperationDisallowReason]'} - } - - def __init__(self, operation_state=None, operation_type=None, reason=None, reasons=None): - super(AcquisitionOperation, self).__init__() - self.operation_state = operation_state - self.operation_type = operation_type - self.reason = reason - self.reasons = reasons diff --git a/vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py b/vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py deleted file mode 100644 index 565a65a8..00000000 --- a/vsts/vsts/extension_management/v4_0/models/acquisition_operation_disallow_reason.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOperationDisallowReason(Model): - """AcquisitionOperationDisallowReason. - - :param message: User-friendly message clarifying the reason for disallowance - :type message: str - :param type: Type of reason for disallowance - AlreadyInstalled, UnresolvedDemand, etc. - :type type: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, message=None, type=None): - super(AcquisitionOperationDisallowReason, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/acquisition_options.py b/vsts/vsts/extension_management/v4_0/models/acquisition_options.py deleted file mode 100644 index a232498d..00000000 --- a/vsts/vsts/extension_management/v4_0/models/acquisition_options.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOptions(Model): - """AcquisitionOptions. - - :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` - :param item_id: The item id that this options refer to - :type item_id: str - :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` - :param target: The target that this options refer to - :type target: str - """ - - _attribute_map = { - 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, default_operation=None, item_id=None, operations=None, target=None): - super(AcquisitionOptions, self).__init__() - self.default_operation = default_operation - self.item_id = item_id - self.operations = operations - self.target = target diff --git a/vsts/vsts/extension_management/v4_0/models/contribution.py b/vsts/vsts/extension_management/v4_0/models/contribution.py deleted file mode 100644 index c003d5cc..00000000 --- a/vsts/vsts/extension_management/v4_0/models/contribution.py +++ /dev/null @@ -1,50 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class Contribution(ContributionBase): - """Contribution. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` - :param includes: Includes is a set of contributions that should have this contribution included in their targets list. - :type includes: list of str - :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` - :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) - :type targets: list of str - :param type: Id of the Contribution Type - :type type: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'includes': {'key': 'includes', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'targets': {'key': 'targets', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): - super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) - self.constraints = constraints - self.includes = includes - self.properties = properties - self.targets = targets - self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_base.py b/vsts/vsts/extension_management/v4_0/models/contribution_base.py deleted file mode 100644 index 4a2402c0..00000000 --- a/vsts/vsts/extension_management/v4_0/models/contribution_base.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionBase(Model): - """ContributionBase. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'} - } - - def __init__(self, description=None, id=None, visible_to=None): - super(ContributionBase, self).__init__() - self.description = description - self.id = id - self.visible_to = visible_to diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_constraint.py b/vsts/vsts/extension_management/v4_0/models/contribution_constraint.py deleted file mode 100644 index 8c1d903e..00000000 --- a/vsts/vsts/extension_management/v4_0/models/contribution_constraint.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionConstraint(Model): - """ContributionConstraint. - - :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). - :type group: int - :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) - :type inverse: bool - :param name: Name of the IContributionFilter class - :type name: str - :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` - :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. - :type relationships: list of str - """ - - _attribute_map = { - 'group': {'key': 'group', 'type': 'int'}, - 'inverse': {'key': 'inverse', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'relationships': {'key': 'relationships', 'type': '[str]'} - } - - def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): - super(ContributionConstraint, self).__init__() - self.group = group - self.inverse = inverse - self.name = name - self.properties = properties - self.relationships = relationships diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_property_description.py b/vsts/vsts/extension_management/v4_0/models/contribution_property_description.py deleted file mode 100644 index d4684adf..00000000 --- a/vsts/vsts/extension_management/v4_0/models/contribution_property_description.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionPropertyDescription(Model): - """ContributionPropertyDescription. - - :param description: Description of the property - :type description: str - :param name: Name of the property - :type name: str - :param required: True if this property is required - :type required: bool - :param type: The type of value used for this property - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, required=None, type=None): - super(ContributionPropertyDescription, self).__init__() - self.description = description - self.name = name - self.required = required - self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/contribution_type.py b/vsts/vsts/extension_management/v4_0/models/contribution_type.py deleted file mode 100644 index 4eda81f4..00000000 --- a/vsts/vsts/extension_management/v4_0/models/contribution_type.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class ContributionType(ContributionBase): - """ContributionType. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. - :type indexed: bool - :param name: Friendly name of the contribution/type - :type name: str - :param properties: Describes the allowed properties for this contribution type - :type properties: dict - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'indexed': {'key': 'indexed', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} - } - - def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): - super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) - self.indexed = indexed - self.name = name - self.properties = properties diff --git a/vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py b/vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py deleted file mode 100644 index 49bfc8e4..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_acquisition_request.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAcquisitionRequest(Model): - """ExtensionAcquisitionRequest. - - :param assignment_type: How the item is being assigned - :type assignment_type: object - :param billing_id: The id of the subscription used for purchase - :type billing_id: str - :param item_id: The marketplace id (publisherName.extensionName) for the item - :type item_id: str - :param operation_type: The type of operation, such as install, request, purchase - :type operation_type: object - :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` - :param quantity: How many licenses should be purchased - :type quantity: int - """ - - _attribute_map = { - 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, - 'billing_id': {'key': 'billingId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'quantity': {'key': 'quantity', 'type': 'int'} - } - - def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None): - super(ExtensionAcquisitionRequest, self).__init__() - self.assignment_type = assignment_type - self.billing_id = billing_id - self.item_id = item_id - self.operation_type = operation_type - self.properties = properties - self.quantity = quantity diff --git a/vsts/vsts/extension_management/v4_0/models/extension_authorization.py b/vsts/vsts/extension_management/v4_0/models/extension_authorization.py deleted file mode 100644 index d82dac11..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_authorization.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAuthorization(Model): - """ExtensionAuthorization. - - :param id: - :type id: str - :param scopes: - :type scopes: list of str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[str]'} - } - - def __init__(self, id=None, scopes=None): - super(ExtensionAuthorization, self).__init__() - self.id = id - self.scopes = scopes diff --git a/vsts/vsts/extension_management/v4_0/models/extension_badge.py b/vsts/vsts/extension_management/v4_0/models/extension_badge.py deleted file mode 100644 index bcb0fa1c..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_badge.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionBadge(Model): - """ExtensionBadge. - - :param description: - :type description: str - :param img_uri: - :type img_uri: str - :param link: - :type link: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'img_uri': {'key': 'imgUri', 'type': 'str'}, - 'link': {'key': 'link', 'type': 'str'} - } - - def __init__(self, description=None, img_uri=None, link=None): - super(ExtensionBadge, self).__init__() - self.description = description - self.img_uri = img_uri - self.link = link diff --git a/vsts/vsts/extension_management/v4_0/models/extension_data_collection.py b/vsts/vsts/extension_management/v4_0/models/extension_data_collection.py deleted file mode 100644 index c3edc78d..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_data_collection.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDataCollection(Model): - """ExtensionDataCollection. - - :param collection_name: The name of the collection - :type collection_name: str - :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` - :param scope_type: The type of the collection's scope, such as Default or User - :type scope_type: str - :param scope_value: The value of the collection's scope, such as Current or Me - :type scope_value: str - """ - - _attribute_map = { - 'collection_name': {'key': 'collectionName', 'type': 'str'}, - 'documents': {'key': 'documents', 'type': '[object]'}, - 'scope_type': {'key': 'scopeType', 'type': 'str'}, - 'scope_value': {'key': 'scopeValue', 'type': 'str'} - } - - def __init__(self, collection_name=None, documents=None, scope_type=None, scope_value=None): - super(ExtensionDataCollection, self).__init__() - self.collection_name = collection_name - self.documents = documents - self.scope_type = scope_type - self.scope_value = scope_value diff --git a/vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py b/vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py deleted file mode 100644 index e558f79d..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_data_collection_query.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDataCollectionQuery(Model): - """ExtensionDataCollectionQuery. - - :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` - """ - - _attribute_map = { - 'collections': {'key': 'collections', 'type': '[ExtensionDataCollection]'} - } - - def __init__(self, collections=None): - super(ExtensionDataCollectionQuery, self).__init__() - self.collections = collections diff --git a/vsts/vsts/extension_management/v4_0/models/extension_event_callback.py b/vsts/vsts/extension_management/v4_0/models/extension_event_callback.py deleted file mode 100644 index 59ab677a..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_event_callback.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallback(Model): - """ExtensionEventCallback. - - :param uri: The uri of the endpoint that is hit when an event occurs - :type uri: str - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, uri=None): - super(ExtensionEventCallback, self).__init__() - self.uri = uri diff --git a/vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py b/vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py deleted file mode 100644 index 7529b2fc..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_event_callback_collection.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallbackCollection(Model): - """ExtensionEventCallbackCollection. - - :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` - :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` - :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` - :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` - :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` - :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` - :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` - """ - - _attribute_map = { - 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, - 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, - 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, - 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, - 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, - 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, - 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} - } - - def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): - super(ExtensionEventCallbackCollection, self).__init__() - self.post_disable = post_disable - self.post_enable = post_enable - self.post_install = post_install - self.post_uninstall = post_uninstall - self.post_update = post_update - self.pre_install = pre_install - self.version_check = version_check diff --git a/vsts/vsts/extension_management/v4_0/models/extension_file.py b/vsts/vsts/extension_management/v4_0/models/extension_file.py deleted file mode 100644 index 1b505e97..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_file.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFile(Model): - """ExtensionFile. - - :param asset_type: - :type asset_type: str - :param language: - :type language: str - :param source: - :type source: str - """ - - _attribute_map = { - 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'} - } - - def __init__(self, asset_type=None, language=None, source=None): - super(ExtensionFile, self).__init__() - self.asset_type = asset_type - self.language = language - self.source = source diff --git a/vsts/vsts/extension_management/v4_0/models/extension_identifier.py b/vsts/vsts/extension_management/v4_0/models/extension_identifier.py deleted file mode 100644 index ea02ec21..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_identifier.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionIdentifier(Model): - """ExtensionIdentifier. - - :param extension_name: The ExtensionName component part of the fully qualified ExtensionIdentifier - :type extension_name: str - :param publisher_name: The PublisherName component part of the fully qualified ExtensionIdentifier - :type publisher_name: str - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, extension_name=None, publisher_name=None): - super(ExtensionIdentifier, self).__init__() - self.extension_name = extension_name - self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_0/models/extension_licensing.py b/vsts/vsts/extension_management/v4_0/models/extension_licensing.py deleted file mode 100644 index 9e562c82..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_licensing.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionLicensing(Model): - """ExtensionLicensing. - - :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` - """ - - _attribute_map = { - 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} - } - - def __init__(self, overrides=None): - super(ExtensionLicensing, self).__init__() - self.overrides = overrides diff --git a/vsts/vsts/extension_management/v4_0/models/extension_manifest.py b/vsts/vsts/extension_management/v4_0/models/extension_manifest.py deleted file mode 100644 index 3baa03bc..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_manifest.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionManifest(Model): - """ExtensionManifest. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} - } - - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): - super(ExtensionManifest, self).__init__() - self.base_uri = base_uri - self.contributions = contributions - self.contribution_types = contribution_types - self.demands = demands - self.event_callbacks = event_callbacks - self.fallback_base_uri = fallback_base_uri - self.language = language - self.licensing = licensing - self.manifest_version = manifest_version - self.scopes = scopes - self.service_instance_type = service_instance_type diff --git a/vsts/vsts/extension_management/v4_0/models/extension_policy.py b/vsts/vsts/extension_management/v4_0/models/extension_policy.py deleted file mode 100644 index ad20f559..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_policy.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionPolicy(Model): - """ExtensionPolicy. - - :param install: Permissions on 'Install' operation - :type install: object - :param request: Permission on 'Request' operation - :type request: object - """ - - _attribute_map = { - 'install': {'key': 'install', 'type': 'object'}, - 'request': {'key': 'request', 'type': 'object'} - } - - def __init__(self, install=None, request=None): - super(ExtensionPolicy, self).__init__() - self.install = install - self.request = request diff --git a/vsts/vsts/extension_management/v4_0/models/extension_request.py b/vsts/vsts/extension_management/v4_0/models/extension_request.py deleted file mode 100644 index 9591f2ab..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_request.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionRequest(Model): - """ExtensionRequest. - - :param reject_message: Required message supplied if the request is rejected - :type reject_message: str - :param request_date: Date at which the request was made - :type request_date: datetime - :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` - :param request_message: Optional message supplied by the requester justifying the request - :type request_message: str - :param request_state: Represents the state of the request - :type request_state: object - :param resolve_date: Date at which the request was resolved - :type resolve_date: datetime - :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` - """ - - _attribute_map = { - 'reject_message': {'key': 'rejectMessage', 'type': 'str'}, - 'request_date': {'key': 'requestDate', 'type': 'iso-8601'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'request_message': {'key': 'requestMessage', 'type': 'str'}, - 'request_state': {'key': 'requestState', 'type': 'object'}, - 'resolve_date': {'key': 'resolveDate', 'type': 'iso-8601'}, - 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'} - } - - def __init__(self, reject_message=None, request_date=None, requested_by=None, request_message=None, request_state=None, resolve_date=None, resolved_by=None): - super(ExtensionRequest, self).__init__() - self.reject_message = reject_message - self.request_date = request_date - self.requested_by = requested_by - self.request_message = request_message - self.request_state = request_state - self.resolve_date = resolve_date - self.resolved_by = resolved_by diff --git a/vsts/vsts/extension_management/v4_0/models/extension_share.py b/vsts/vsts/extension_management/v4_0/models/extension_share.py deleted file mode 100644 index acc81ef0..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_share.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionShare(Model): - """ExtensionShare. - - :param id: - :type id: str - :param name: - :type name: str - :param type: - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, id=None, name=None, type=None): - super(ExtensionShare, self).__init__() - self.id = id - self.name = name - self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/extension_state.py b/vsts/vsts/extension_management/v4_0/models/extension_state.py deleted file mode 100644 index 9118bdb8..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_state.py +++ /dev/null @@ -1,46 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .installed_extension_state import InstalledExtensionState - - -class ExtensionState(InstalledExtensionState): - """ExtensionState. - - :param flags: States of an installed extension - :type flags: object - :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` - :param last_updated: The time at which this installation was last updated - :type last_updated: datetime - :param extension_name: - :type extension_name: str - :param last_version_check: The time at which the version was last checked - :type last_version_check: datetime - :param publisher_name: - :type publisher_name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'last_version_check': {'key': 'lastVersionCheck', 'type': 'iso-8601'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, flags=None, installation_issues=None, last_updated=None, extension_name=None, last_version_check=None, publisher_name=None, version=None): - super(ExtensionState, self).__init__(flags=flags, installation_issues=installation_issues, last_updated=last_updated) - self.extension_name = extension_name - self.last_version_check = last_version_check - self.publisher_name = publisher_name - self.version = version diff --git a/vsts/vsts/extension_management/v4_0/models/extension_statistic.py b/vsts/vsts/extension_management/v4_0/models/extension_statistic.py deleted file mode 100644 index 3929b9e6..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_statistic.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionStatistic(Model): - """ExtensionStatistic. - - :param statistic_name: - :type statistic_name: str - :param value: - :type value: float - """ - - _attribute_map = { - 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'float'} - } - - def __init__(self, statistic_name=None, value=None): - super(ExtensionStatistic, self).__init__() - self.statistic_name = statistic_name - self.value = value diff --git a/vsts/vsts/extension_management/v4_0/models/extension_version.py b/vsts/vsts/extension_management/v4_0/models/extension_version.py deleted file mode 100644 index b2cf8be7..00000000 --- a/vsts/vsts/extension_management/v4_0/models/extension_version.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionVersion(Model): - """ExtensionVersion. - - :param asset_uri: - :type asset_uri: str - :param badges: - :type badges: list of :class:`ExtensionBadge ` - :param fallback_asset_uri: - :type fallback_asset_uri: str - :param files: - :type files: list of :class:`ExtensionFile ` - :param flags: - :type flags: object - :param last_updated: - :type last_updated: datetime - :param properties: - :type properties: list of { key: str; value: str } - :param validation_result_message: - :type validation_result_message: str - :param version: - :type version: str - :param version_description: - :type version_description: str - """ - - _attribute_map = { - 'asset_uri': {'key': 'assetUri', 'type': 'str'}, - 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, - 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, - 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_description': {'key': 'versionDescription', 'type': 'str'} - } - - def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): - super(ExtensionVersion, self).__init__() - self.asset_uri = asset_uri - self.badges = badges - self.fallback_asset_uri = fallback_asset_uri - self.files = files - self.flags = flags - self.last_updated = last_updated - self.properties = properties - self.validation_result_message = validation_result_message - self.version = version - self.version_description = version_description diff --git a/vsts/vsts/extension_management/v4_0/models/identity_ref.py b/vsts/vsts/extension_management/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/extension_management/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/extension_management/v4_0/models/installation_target.py b/vsts/vsts/extension_management/v4_0/models/installation_target.py deleted file mode 100644 index 4d622d4a..00000000 --- a/vsts/vsts/extension_management/v4_0/models/installation_target.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstallationTarget(Model): - """InstallationTarget. - - :param target: - :type target: str - :param target_version: - :type target_version: str - """ - - _attribute_map = { - 'target': {'key': 'target', 'type': 'str'}, - 'target_version': {'key': 'targetVersion', 'type': 'str'} - } - - def __init__(self, target=None, target_version=None): - super(InstallationTarget, self).__init__() - self.target = target - self.target_version = target_version diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension.py b/vsts/vsts/extension_management/v4_0/models/installed_extension.py deleted file mode 100644 index 9886ff5e..00000000 --- a/vsts/vsts/extension_management/v4_0/models/installed_extension.py +++ /dev/null @@ -1,94 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .extension_manifest import ExtensionManifest - - -class InstalledExtension(ExtensionManifest): - """InstalledExtension. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - :param extension_id: The friendly extension id for this extension - unique for a given publisher. - :type extension_id: str - :param extension_name: The display name of the extension. - :type extension_name: str - :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` - :param flags: Extension flags relevant to contribution consumers - :type flags: object - :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` - :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. - :type last_published: datetime - :param publisher_id: Unique id of the publisher of this extension - :type publisher_id: str - :param publisher_name: The display name of the publisher - :type publisher_name: str - :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) - :type registration_id: str - :param version: Version of this extension - :type version: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, - 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'registration_id': {'key': 'registrationId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) - self.extension_id = extension_id - self.extension_name = extension_name - self.files = files - self.flags = flags - self.install_state = install_state - self.last_published = last_published - self.publisher_id = publisher_id - self.publisher_name = publisher_name - self.registration_id = registration_id - self.version = version diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension_query.py b/vsts/vsts/extension_management/v4_0/models/installed_extension_query.py deleted file mode 100644 index 9f039b7d..00000000 --- a/vsts/vsts/extension_management/v4_0/models/installed_extension_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionQuery(Model): - """InstalledExtensionQuery. - - :param asset_types: - :type asset_types: list of str - :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` - """ - - _attribute_map = { - 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, - 'monikers': {'key': 'monikers', 'type': '[ExtensionIdentifier]'} - } - - def __init__(self, asset_types=None, monikers=None): - super(InstalledExtensionQuery, self).__init__() - self.asset_types = asset_types - self.monikers = monikers diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension_state.py b/vsts/vsts/extension_management/v4_0/models/installed_extension_state.py deleted file mode 100644 index 25f06af7..00000000 --- a/vsts/vsts/extension_management/v4_0/models/installed_extension_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionState(Model): - """InstalledExtensionState. - - :param flags: States of an installed extension - :type flags: object - :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` - :param last_updated: The time at which this installation was last updated - :type last_updated: datetime - """ - - _attribute_map = { - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} - } - - def __init__(self, flags=None, installation_issues=None, last_updated=None): - super(InstalledExtensionState, self).__init__() - self.flags = flags - self.installation_issues = installation_issues - self.last_updated = last_updated diff --git a/vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py b/vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py deleted file mode 100644 index e66bb556..00000000 --- a/vsts/vsts/extension_management/v4_0/models/installed_extension_state_issue.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionStateIssue(Model): - """InstalledExtensionStateIssue. - - :param message: The error message - :type message: str - :param source: Source of the installation issue, for example "Demands" - :type source: str - :param type: Installation issue type (Warning, Error) - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, source=None, type=None): - super(InstalledExtensionStateIssue, self).__init__() - self.message = message - self.source = source - self.type = type diff --git a/vsts/vsts/extension_management/v4_0/models/licensing_override.py b/vsts/vsts/extension_management/v4_0/models/licensing_override.py deleted file mode 100644 index 7812d57f..00000000 --- a/vsts/vsts/extension_management/v4_0/models/licensing_override.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LicensingOverride(Model): - """LicensingOverride. - - :param behavior: How the inclusion of this contribution should change based on licensing - :type behavior: object - :param id: Fully qualified contribution id which we want to define licensing behavior for - :type id: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, behavior=None, id=None): - super(LicensingOverride, self).__init__() - self.behavior = behavior - self.id = id diff --git a/vsts/vsts/extension_management/v4_0/models/published_extension.py b/vsts/vsts/extension_management/v4_0/models/published_extension.py deleted file mode 100644 index b3b93814..00000000 --- a/vsts/vsts/extension_management/v4_0/models/published_extension.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishedExtension(Model): - """PublishedExtension. - - :param categories: - :type categories: list of str - :param deployment_type: - :type deployment_type: object - :param display_name: - :type display_name: str - :param extension_id: - :type extension_id: str - :param extension_name: - :type extension_name: str - :param flags: - :type flags: object - :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` - :param last_updated: - :type last_updated: datetime - :param long_description: - :type long_description: str - :param published_date: Date on which the extension was first uploaded. - :type published_date: datetime - :param publisher: - :type publisher: :class:`PublisherFacts ` - :param release_date: Date on which the extension first went public. - :type release_date: datetime - :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` - :param short_description: - :type short_description: str - :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` - :param tags: - :type tags: list of str - :param versions: - :type versions: list of :class:`ExtensionVersion ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[str]'}, - 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'long_description': {'key': 'longDescription', 'type': 'str'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, - 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, - 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} - } - - def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): - super(PublishedExtension, self).__init__() - self.categories = categories - self.deployment_type = deployment_type - self.display_name = display_name - self.extension_id = extension_id - self.extension_name = extension_name - self.flags = flags - self.installation_targets = installation_targets - self.last_updated = last_updated - self.long_description = long_description - self.published_date = published_date - self.publisher = publisher - self.release_date = release_date - self.shared_with = shared_with - self.short_description = short_description - self.statistics = statistics - self.tags = tags - self.versions = versions diff --git a/vsts/vsts/extension_management/v4_0/models/publisher_facts.py b/vsts/vsts/extension_management/v4_0/models/publisher_facts.py deleted file mode 100644 index 979b6d8d..00000000 --- a/vsts/vsts/extension_management/v4_0/models/publisher_facts.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherFacts(Model): - """PublisherFacts. - - :param display_name: - :type display_name: str - :param flags: - :type flags: object - :param publisher_id: - :type publisher_id: str - :param publisher_name: - :type publisher_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): - super(PublisherFacts, self).__init__() - self.display_name = display_name - self.flags = flags - self.publisher_id = publisher_id - self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_0/models/requested_extension.py b/vsts/vsts/extension_management/v4_0/models/requested_extension.py deleted file mode 100644 index 00759b10..00000000 --- a/vsts/vsts/extension_management/v4_0/models/requested_extension.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RequestedExtension(Model): - """RequestedExtension. - - :param extension_name: The unique name of the extension - :type extension_name: str - :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` - :param publisher_display_name: DisplayName of the publisher that owns the extension being published. - :type publisher_display_name: str - :param publisher_name: Represents the Publisher of the requested extension - :type publisher_name: str - :param request_count: The total number of requests for an extension - :type request_count: int - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'extension_requests': {'key': 'extensionRequests', 'type': '[ExtensionRequest]'}, - 'publisher_display_name': {'key': 'publisherDisplayName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'request_count': {'key': 'requestCount', 'type': 'int'} - } - - def __init__(self, extension_name=None, extension_requests=None, publisher_display_name=None, publisher_name=None, request_count=None): - super(RequestedExtension, self).__init__() - self.extension_name = extension_name - self.extension_requests = extension_requests - self.publisher_display_name = publisher_display_name - self.publisher_name = publisher_name - self.request_count = request_count diff --git a/vsts/vsts/extension_management/v4_0/models/user_extension_policy.py b/vsts/vsts/extension_management/v4_0/models/user_extension_policy.py deleted file mode 100644 index 363caa7d..00000000 --- a/vsts/vsts/extension_management/v4_0/models/user_extension_policy.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserExtensionPolicy(Model): - """UserExtensionPolicy. - - :param display_name: User display name that this policy refers to - :type display_name: str - :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` - :param user_id: User id that this policy refers to - :type user_id: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'permissions': {'key': 'permissions', 'type': 'ExtensionPolicy'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, display_name=None, permissions=None, user_id=None): - super(UserExtensionPolicy, self).__init__() - self.display_name = display_name - self.permissions = permissions - self.user_id = user_id diff --git a/vsts/vsts/extension_management/v4_1/__init__.py b/vsts/vsts/extension_management/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/extension_management/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/extension_management/v4_1/models/__init__.py b/vsts/vsts/extension_management/v4_1/models/__init__.py deleted file mode 100644 index a7e852a0..00000000 --- a/vsts/vsts/extension_management/v4_1/models/__init__.py +++ /dev/null @@ -1,87 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .acquisition_operation import AcquisitionOperation -from .acquisition_operation_disallow_reason import AcquisitionOperationDisallowReason -from .acquisition_options import AcquisitionOptions -from .contribution import Contribution -from .contribution_base import ContributionBase -from .contribution_constraint import ContributionConstraint -from .contribution_property_description import ContributionPropertyDescription -from .contribution_type import ContributionType -from .extension_acquisition_request import ExtensionAcquisitionRequest -from .extension_authorization import ExtensionAuthorization -from .extension_badge import ExtensionBadge -from .extension_data_collection import ExtensionDataCollection -from .extension_data_collection_query import ExtensionDataCollectionQuery -from .extension_event_callback import ExtensionEventCallback -from .extension_event_callback_collection import ExtensionEventCallbackCollection -from .extension_file import ExtensionFile -from .extension_identifier import ExtensionIdentifier -from .extension_licensing import ExtensionLicensing -from .extension_manifest import ExtensionManifest -from .extension_policy import ExtensionPolicy -from .extension_request import ExtensionRequest -from .extension_share import ExtensionShare -from .extension_state import ExtensionState -from .extension_statistic import ExtensionStatistic -from .extension_version import ExtensionVersion -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .installation_target import InstallationTarget -from .installed_extension import InstalledExtension -from .installed_extension_query import InstalledExtensionQuery -from .installed_extension_state import InstalledExtensionState -from .installed_extension_state_issue import InstalledExtensionStateIssue -from .licensing_override import LicensingOverride -from .published_extension import PublishedExtension -from .publisher_facts import PublisherFacts -from .reference_links import ReferenceLinks -from .requested_extension import RequestedExtension -from .user_extension_policy import UserExtensionPolicy - -__all__ = [ - 'AcquisitionOperation', - 'AcquisitionOperationDisallowReason', - 'AcquisitionOptions', - 'Contribution', - 'ContributionBase', - 'ContributionConstraint', - 'ContributionPropertyDescription', - 'ContributionType', - 'ExtensionAcquisitionRequest', - 'ExtensionAuthorization', - 'ExtensionBadge', - 'ExtensionDataCollection', - 'ExtensionDataCollectionQuery', - 'ExtensionEventCallback', - 'ExtensionEventCallbackCollection', - 'ExtensionFile', - 'ExtensionIdentifier', - 'ExtensionLicensing', - 'ExtensionManifest', - 'ExtensionPolicy', - 'ExtensionRequest', - 'ExtensionShare', - 'ExtensionState', - 'ExtensionStatistic', - 'ExtensionVersion', - 'GraphSubjectBase', - 'IdentityRef', - 'InstallationTarget', - 'InstalledExtension', - 'InstalledExtensionQuery', - 'InstalledExtensionState', - 'InstalledExtensionStateIssue', - 'LicensingOverride', - 'PublishedExtension', - 'PublisherFacts', - 'ReferenceLinks', - 'RequestedExtension', - 'UserExtensionPolicy', -] diff --git a/vsts/vsts/extension_management/v4_1/models/acquisition_operation.py b/vsts/vsts/extension_management/v4_1/models/acquisition_operation.py deleted file mode 100644 index ecaf3f13..00000000 --- a/vsts/vsts/extension_management/v4_1/models/acquisition_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOperation(Model): - """AcquisitionOperation. - - :param operation_state: State of the the AcquisitionOperation for the current user - :type operation_state: object - :param operation_type: AcquisitionOperationType: install, request, buy, etc... - :type operation_type: object - :param reason: Optional reason to justify current state. Typically used with Disallow state. - :type reason: str - :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` - """ - - _attribute_map = { - 'operation_state': {'key': 'operationState', 'type': 'object'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'reasons': {'key': 'reasons', 'type': '[AcquisitionOperationDisallowReason]'} - } - - def __init__(self, operation_state=None, operation_type=None, reason=None, reasons=None): - super(AcquisitionOperation, self).__init__() - self.operation_state = operation_state - self.operation_type = operation_type - self.reason = reason - self.reasons = reasons diff --git a/vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py b/vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py deleted file mode 100644 index 565a65a8..00000000 --- a/vsts/vsts/extension_management/v4_1/models/acquisition_operation_disallow_reason.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOperationDisallowReason(Model): - """AcquisitionOperationDisallowReason. - - :param message: User-friendly message clarifying the reason for disallowance - :type message: str - :param type: Type of reason for disallowance - AlreadyInstalled, UnresolvedDemand, etc. - :type type: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, message=None, type=None): - super(AcquisitionOperationDisallowReason, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/acquisition_options.py b/vsts/vsts/extension_management/v4_1/models/acquisition_options.py deleted file mode 100644 index 715ddc83..00000000 --- a/vsts/vsts/extension_management/v4_1/models/acquisition_options.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOptions(Model): - """AcquisitionOptions. - - :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` - :param item_id: The item id that this options refer to - :type item_id: str - :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` - :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` - :param target: The target that this options refer to - :type target: str - """ - - _attribute_map = { - 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, default_operation=None, item_id=None, operations=None, properties=None, target=None): - super(AcquisitionOptions, self).__init__() - self.default_operation = default_operation - self.item_id = item_id - self.operations = operations - self.properties = properties - self.target = target diff --git a/vsts/vsts/extension_management/v4_1/models/contribution.py b/vsts/vsts/extension_management/v4_1/models/contribution.py deleted file mode 100644 index ff967faf..00000000 --- a/vsts/vsts/extension_management/v4_1/models/contribution.py +++ /dev/null @@ -1,54 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class Contribution(ContributionBase): - """Contribution. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` - :param includes: Includes is a set of contributions that should have this contribution included in their targets list. - :type includes: list of str - :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` - :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). - :type restricted_to: list of str - :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) - :type targets: list of str - :param type: Id of the Contribution Type - :type type: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'includes': {'key': 'includes', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, - 'targets': {'key': 'targets', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): - super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) - self.constraints = constraints - self.includes = includes - self.properties = properties - self.restricted_to = restricted_to - self.targets = targets - self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_base.py b/vsts/vsts/extension_management/v4_1/models/contribution_base.py deleted file mode 100644 index 4a2402c0..00000000 --- a/vsts/vsts/extension_management/v4_1/models/contribution_base.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionBase(Model): - """ContributionBase. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'} - } - - def __init__(self, description=None, id=None, visible_to=None): - super(ContributionBase, self).__init__() - self.description = description - self.id = id - self.visible_to = visible_to diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py b/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py deleted file mode 100644 index 0791c5dd..00000000 --- a/vsts/vsts/extension_management/v4_1/models/contribution_constraint.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionConstraint(Model): - """ContributionConstraint. - - :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). - :type group: int - :param id: Fully qualified identifier of a shared constraint - :type id: str - :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) - :type inverse: bool - :param name: Name of the IContributionFilter plugin - :type name: str - :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` - :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. - :type relationships: list of str - """ - - _attribute_map = { - 'group': {'key': 'group', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inverse': {'key': 'inverse', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'relationships': {'key': 'relationships', 'type': '[str]'} - } - - def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): - super(ContributionConstraint, self).__init__() - self.group = group - self.id = id - self.inverse = inverse - self.name = name - self.properties = properties - self.relationships = relationships diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_property_description.py b/vsts/vsts/extension_management/v4_1/models/contribution_property_description.py deleted file mode 100644 index d4684adf..00000000 --- a/vsts/vsts/extension_management/v4_1/models/contribution_property_description.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributionPropertyDescription(Model): - """ContributionPropertyDescription. - - :param description: Description of the property - :type description: str - :param name: Name of the property - :type name: str - :param required: True if this property is required - :type required: bool - :param type: The type of value used for this property - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, required=None, type=None): - super(ContributionPropertyDescription, self).__init__() - self.description = description - self.name = name - self.required = required - self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/contribution_type.py b/vsts/vsts/extension_management/v4_1/models/contribution_type.py deleted file mode 100644 index 4eda81f4..00000000 --- a/vsts/vsts/extension_management/v4_1/models/contribution_type.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .contribution_base import ContributionBase - - -class ContributionType(ContributionBase): - """ContributionType. - - :param description: Description of the contribution/type - :type description: str - :param id: Fully qualified identifier of the contribution/type - :type id: str - :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. - :type visible_to: list of str - :param indexed: Controls whether or not contributions of this type have the type indexed for queries. This allows clients to find all extensions that have a contribution of this type. NOTE: Only TrustedPartners are allowed to specify indexed contribution types. - :type indexed: bool - :param name: Friendly name of the contribution/type - :type name: str - :param properties: Describes the allowed properties for this contribution type - :type properties: dict - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'visible_to': {'key': 'visibleTo', 'type': '[str]'}, - 'indexed': {'key': 'indexed', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{ContributionPropertyDescription}'} - } - - def __init__(self, description=None, id=None, visible_to=None, indexed=None, name=None, properties=None): - super(ContributionType, self).__init__(description=description, id=id, visible_to=visible_to) - self.indexed = indexed - self.name = name - self.properties = properties diff --git a/vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py b/vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py deleted file mode 100644 index f0cc015d..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_acquisition_request.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAcquisitionRequest(Model): - """ExtensionAcquisitionRequest. - - :param assignment_type: How the item is being assigned - :type assignment_type: object - :param billing_id: The id of the subscription used for purchase - :type billing_id: str - :param item_id: The marketplace id (publisherName.extensionName) for the item - :type item_id: str - :param operation_type: The type of operation, such as install, request, purchase - :type operation_type: object - :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` - :param quantity: How many licenses should be purchased - :type quantity: int - """ - - _attribute_map = { - 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, - 'billing_id': {'key': 'billingId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'quantity': {'key': 'quantity', 'type': 'int'} - } - - def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None): - super(ExtensionAcquisitionRequest, self).__init__() - self.assignment_type = assignment_type - self.billing_id = billing_id - self.item_id = item_id - self.operation_type = operation_type - self.properties = properties - self.quantity = quantity diff --git a/vsts/vsts/extension_management/v4_1/models/extension_authorization.py b/vsts/vsts/extension_management/v4_1/models/extension_authorization.py deleted file mode 100644 index d82dac11..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_authorization.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAuthorization(Model): - """ExtensionAuthorization. - - :param id: - :type id: str - :param scopes: - :type scopes: list of str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[str]'} - } - - def __init__(self, id=None, scopes=None): - super(ExtensionAuthorization, self).__init__() - self.id = id - self.scopes = scopes diff --git a/vsts/vsts/extension_management/v4_1/models/extension_badge.py b/vsts/vsts/extension_management/v4_1/models/extension_badge.py deleted file mode 100644 index bcb0fa1c..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_badge.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionBadge(Model): - """ExtensionBadge. - - :param description: - :type description: str - :param img_uri: - :type img_uri: str - :param link: - :type link: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'img_uri': {'key': 'imgUri', 'type': 'str'}, - 'link': {'key': 'link', 'type': 'str'} - } - - def __init__(self, description=None, img_uri=None, link=None): - super(ExtensionBadge, self).__init__() - self.description = description - self.img_uri = img_uri - self.link = link diff --git a/vsts/vsts/extension_management/v4_1/models/extension_data_collection.py b/vsts/vsts/extension_management/v4_1/models/extension_data_collection.py deleted file mode 100644 index 353af0e8..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_data_collection.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDataCollection(Model): - """ExtensionDataCollection. - - :param collection_name: The name of the collection - :type collection_name: str - :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` - :param scope_type: The type of the collection's scope, such as Default or User - :type scope_type: str - :param scope_value: The value of the collection's scope, such as Current or Me - :type scope_value: str - """ - - _attribute_map = { - 'collection_name': {'key': 'collectionName', 'type': 'str'}, - 'documents': {'key': 'documents', 'type': '[object]'}, - 'scope_type': {'key': 'scopeType', 'type': 'str'}, - 'scope_value': {'key': 'scopeValue', 'type': 'str'} - } - - def __init__(self, collection_name=None, documents=None, scope_type=None, scope_value=None): - super(ExtensionDataCollection, self).__init__() - self.collection_name = collection_name - self.documents = documents - self.scope_type = scope_type - self.scope_value = scope_value diff --git a/vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py b/vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py deleted file mode 100644 index b22d0358..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_data_collection_query.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDataCollectionQuery(Model): - """ExtensionDataCollectionQuery. - - :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` - """ - - _attribute_map = { - 'collections': {'key': 'collections', 'type': '[ExtensionDataCollection]'} - } - - def __init__(self, collections=None): - super(ExtensionDataCollectionQuery, self).__init__() - self.collections = collections diff --git a/vsts/vsts/extension_management/v4_1/models/extension_event_callback.py b/vsts/vsts/extension_management/v4_1/models/extension_event_callback.py deleted file mode 100644 index 59ab677a..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_event_callback.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallback(Model): - """ExtensionEventCallback. - - :param uri: The uri of the endpoint that is hit when an event occurs - :type uri: str - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, uri=None): - super(ExtensionEventCallback, self).__init__() - self.uri = uri diff --git a/vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py b/vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py deleted file mode 100644 index 2f9be062..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_event_callback_collection.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEventCallbackCollection(Model): - """ExtensionEventCallbackCollection. - - :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` - :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` - :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` - :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` - :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` - :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` - :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` - """ - - _attribute_map = { - 'post_disable': {'key': 'postDisable', 'type': 'ExtensionEventCallback'}, - 'post_enable': {'key': 'postEnable', 'type': 'ExtensionEventCallback'}, - 'post_install': {'key': 'postInstall', 'type': 'ExtensionEventCallback'}, - 'post_uninstall': {'key': 'postUninstall', 'type': 'ExtensionEventCallback'}, - 'post_update': {'key': 'postUpdate', 'type': 'ExtensionEventCallback'}, - 'pre_install': {'key': 'preInstall', 'type': 'ExtensionEventCallback'}, - 'version_check': {'key': 'versionCheck', 'type': 'ExtensionEventCallback'} - } - - def __init__(self, post_disable=None, post_enable=None, post_install=None, post_uninstall=None, post_update=None, pre_install=None, version_check=None): - super(ExtensionEventCallbackCollection, self).__init__() - self.post_disable = post_disable - self.post_enable = post_enable - self.post_install = post_install - self.post_uninstall = post_uninstall - self.post_update = post_update - self.pre_install = pre_install - self.version_check = version_check diff --git a/vsts/vsts/extension_management/v4_1/models/extension_file.py b/vsts/vsts/extension_management/v4_1/models/extension_file.py deleted file mode 100644 index 1b505e97..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_file.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFile(Model): - """ExtensionFile. - - :param asset_type: - :type asset_type: str - :param language: - :type language: str - :param source: - :type source: str - """ - - _attribute_map = { - 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'} - } - - def __init__(self, asset_type=None, language=None, source=None): - super(ExtensionFile, self).__init__() - self.asset_type = asset_type - self.language = language - self.source = source diff --git a/vsts/vsts/extension_management/v4_1/models/extension_identifier.py b/vsts/vsts/extension_management/v4_1/models/extension_identifier.py deleted file mode 100644 index ea02ec21..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_identifier.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionIdentifier(Model): - """ExtensionIdentifier. - - :param extension_name: The ExtensionName component part of the fully qualified ExtensionIdentifier - :type extension_name: str - :param publisher_name: The PublisherName component part of the fully qualified ExtensionIdentifier - :type publisher_name: str - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, extension_name=None, publisher_name=None): - super(ExtensionIdentifier, self).__init__() - self.extension_name = extension_name - self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_1/models/extension_licensing.py b/vsts/vsts/extension_management/v4_1/models/extension_licensing.py deleted file mode 100644 index 59422d20..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_licensing.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionLicensing(Model): - """ExtensionLicensing. - - :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` - """ - - _attribute_map = { - 'overrides': {'key': 'overrides', 'type': '[LicensingOverride]'} - } - - def __init__(self, overrides=None): - super(ExtensionLicensing, self).__init__() - self.overrides = overrides diff --git a/vsts/vsts/extension_management/v4_1/models/extension_manifest.py b/vsts/vsts/extension_management/v4_1/models/extension_manifest.py deleted file mode 100644 index 44060f2e..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_manifest.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionManifest(Model): - """ExtensionManifest. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. - :type restricted_to: list of str - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} - } - - def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): - super(ExtensionManifest, self).__init__() - self.base_uri = base_uri - self.constraints = constraints - self.contributions = contributions - self.contribution_types = contribution_types - self.demands = demands - self.event_callbacks = event_callbacks - self.fallback_base_uri = fallback_base_uri - self.language = language - self.licensing = licensing - self.manifest_version = manifest_version - self.restricted_to = restricted_to - self.scopes = scopes - self.service_instance_type = service_instance_type diff --git a/vsts/vsts/extension_management/v4_1/models/extension_policy.py b/vsts/vsts/extension_management/v4_1/models/extension_policy.py deleted file mode 100644 index ad20f559..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_policy.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionPolicy(Model): - """ExtensionPolicy. - - :param install: Permissions on 'Install' operation - :type install: object - :param request: Permission on 'Request' operation - :type request: object - """ - - _attribute_map = { - 'install': {'key': 'install', 'type': 'object'}, - 'request': {'key': 'request', 'type': 'object'} - } - - def __init__(self, install=None, request=None): - super(ExtensionPolicy, self).__init__() - self.install = install - self.request = request diff --git a/vsts/vsts/extension_management/v4_1/models/extension_request.py b/vsts/vsts/extension_management/v4_1/models/extension_request.py deleted file mode 100644 index 472c4312..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_request.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionRequest(Model): - """ExtensionRequest. - - :param reject_message: Required message supplied if the request is rejected - :type reject_message: str - :param request_date: Date at which the request was made - :type request_date: datetime - :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` - :param request_message: Optional message supplied by the requester justifying the request - :type request_message: str - :param request_state: Represents the state of the request - :type request_state: object - :param resolve_date: Date at which the request was resolved - :type resolve_date: datetime - :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` - """ - - _attribute_map = { - 'reject_message': {'key': 'rejectMessage', 'type': 'str'}, - 'request_date': {'key': 'requestDate', 'type': 'iso-8601'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'request_message': {'key': 'requestMessage', 'type': 'str'}, - 'request_state': {'key': 'requestState', 'type': 'object'}, - 'resolve_date': {'key': 'resolveDate', 'type': 'iso-8601'}, - 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'} - } - - def __init__(self, reject_message=None, request_date=None, requested_by=None, request_message=None, request_state=None, resolve_date=None, resolved_by=None): - super(ExtensionRequest, self).__init__() - self.reject_message = reject_message - self.request_date = request_date - self.requested_by = requested_by - self.request_message = request_message - self.request_state = request_state - self.resolve_date = resolve_date - self.resolved_by = resolved_by diff --git a/vsts/vsts/extension_management/v4_1/models/extension_share.py b/vsts/vsts/extension_management/v4_1/models/extension_share.py deleted file mode 100644 index acc81ef0..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_share.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionShare(Model): - """ExtensionShare. - - :param id: - :type id: str - :param name: - :type name: str - :param type: - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, id=None, name=None, type=None): - super(ExtensionShare, self).__init__() - self.id = id - self.name = name - self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/extension_state.py b/vsts/vsts/extension_management/v4_1/models/extension_state.py deleted file mode 100644 index b7e288b9..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_state.py +++ /dev/null @@ -1,46 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .installed_extension_state import InstalledExtensionState - - -class ExtensionState(InstalledExtensionState): - """ExtensionState. - - :param flags: States of an installed extension - :type flags: object - :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` - :param last_updated: The time at which this installation was last updated - :type last_updated: datetime - :param extension_name: - :type extension_name: str - :param last_version_check: The time at which the version was last checked - :type last_version_check: datetime - :param publisher_name: - :type publisher_name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'last_version_check': {'key': 'lastVersionCheck', 'type': 'iso-8601'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, flags=None, installation_issues=None, last_updated=None, extension_name=None, last_version_check=None, publisher_name=None, version=None): - super(ExtensionState, self).__init__(flags=flags, installation_issues=installation_issues, last_updated=last_updated) - self.extension_name = extension_name - self.last_version_check = last_version_check - self.publisher_name = publisher_name - self.version = version diff --git a/vsts/vsts/extension_management/v4_1/models/extension_statistic.py b/vsts/vsts/extension_management/v4_1/models/extension_statistic.py deleted file mode 100644 index 3929b9e6..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_statistic.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionStatistic(Model): - """ExtensionStatistic. - - :param statistic_name: - :type statistic_name: str - :param value: - :type value: float - """ - - _attribute_map = { - 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'float'} - } - - def __init__(self, statistic_name=None, value=None): - super(ExtensionStatistic, self).__init__() - self.statistic_name = statistic_name - self.value = value diff --git a/vsts/vsts/extension_management/v4_1/models/extension_version.py b/vsts/vsts/extension_management/v4_1/models/extension_version.py deleted file mode 100644 index 56b83e88..00000000 --- a/vsts/vsts/extension_management/v4_1/models/extension_version.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionVersion(Model): - """ExtensionVersion. - - :param asset_uri: - :type asset_uri: str - :param badges: - :type badges: list of :class:`ExtensionBadge ` - :param fallback_asset_uri: - :type fallback_asset_uri: str - :param files: - :type files: list of :class:`ExtensionFile ` - :param flags: - :type flags: object - :param last_updated: - :type last_updated: datetime - :param properties: - :type properties: list of { key: str; value: str } - :param validation_result_message: - :type validation_result_message: str - :param version: - :type version: str - :param version_description: - :type version_description: str - """ - - _attribute_map = { - 'asset_uri': {'key': 'assetUri', 'type': 'str'}, - 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, - 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, - 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_description': {'key': 'versionDescription', 'type': 'str'} - } - - def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): - super(ExtensionVersion, self).__init__() - self.asset_uri = asset_uri - self.badges = badges - self.fallback_asset_uri = fallback_asset_uri - self.files = files - self.flags = flags - self.last_updated = last_updated - self.properties = properties - self.validation_result_message = validation_result_message - self.version = version - self.version_description = version_description diff --git a/vsts/vsts/extension_management/v4_1/models/graph_subject_base.py b/vsts/vsts/extension_management/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/extension_management/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/extension_management/v4_1/models/identity_ref.py b/vsts/vsts/extension_management/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/extension_management/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/extension_management/v4_1/models/installation_target.py b/vsts/vsts/extension_management/v4_1/models/installation_target.py deleted file mode 100644 index 4d622d4a..00000000 --- a/vsts/vsts/extension_management/v4_1/models/installation_target.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstallationTarget(Model): - """InstallationTarget. - - :param target: - :type target: str - :param target_version: - :type target_version: str - """ - - _attribute_map = { - 'target': {'key': 'target', 'type': 'str'}, - 'target_version': {'key': 'targetVersion', 'type': 'str'} - } - - def __init__(self, target=None, target_version=None): - super(InstallationTarget, self).__init__() - self.target = target - self.target_version = target_version diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension.py b/vsts/vsts/extension_management/v4_1/models/installed_extension.py deleted file mode 100644 index 3dfe2e1f..00000000 --- a/vsts/vsts/extension_management/v4_1/models/installed_extension.py +++ /dev/null @@ -1,100 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .extension_manifest import ExtensionManifest - - -class InstalledExtension(ExtensionManifest): - """InstalledExtension. - - :param base_uri: Uri used as base for other relative uri's defined in extension - :type base_uri: str - :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` - :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` - :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` - :param demands: List of explicit demands required by this extension - :type demands: list of str - :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` - :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension - :type fallback_base_uri: str - :param language: Language Culture Name set by the Gallery - :type language: str - :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` - :param manifest_version: Version of the extension manifest format/content - :type manifest_version: float - :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. - :type restricted_to: list of str - :param scopes: List of all oauth scopes required by this extension - :type scopes: list of str - :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed - :type service_instance_type: str - :param extension_id: The friendly extension id for this extension - unique for a given publisher. - :type extension_id: str - :param extension_name: The display name of the extension. - :type extension_name: str - :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` - :param flags: Extension flags relevant to contribution consumers - :type flags: object - :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` - :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. - :type last_published: datetime - :param publisher_id: Unique id of the publisher of this extension - :type publisher_id: str - :param publisher_name: The display name of the publisher - :type publisher_name: str - :param registration_id: Unique id for this extension (the same id is used for all versions of a single extension) - :type registration_id: str - :param version: Version of this extension - :type version: str - """ - - _attribute_map = { - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, - 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, - 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, - 'demands': {'key': 'demands', 'type': '[str]'}, - 'event_callbacks': {'key': 'eventCallbacks', 'type': 'ExtensionEventCallbackCollection'}, - 'fallback_base_uri': {'key': 'fallbackBaseUri', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, - 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, - 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, - 'scopes': {'key': 'scopes', 'type': '[str]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'install_state': {'key': 'installState', 'type': 'InstalledExtensionState'}, - 'last_published': {'key': 'lastPublished', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'registration_id': {'key': 'registrationId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) - self.extension_id = extension_id - self.extension_name = extension_name - self.files = files - self.flags = flags - self.install_state = install_state - self.last_published = last_published - self.publisher_id = publisher_id - self.publisher_name = publisher_name - self.registration_id = registration_id - self.version = version diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension_query.py b/vsts/vsts/extension_management/v4_1/models/installed_extension_query.py deleted file mode 100644 index 8b1bafdb..00000000 --- a/vsts/vsts/extension_management/v4_1/models/installed_extension_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionQuery(Model): - """InstalledExtensionQuery. - - :param asset_types: - :type asset_types: list of str - :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` - """ - - _attribute_map = { - 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, - 'monikers': {'key': 'monikers', 'type': '[ExtensionIdentifier]'} - } - - def __init__(self, asset_types=None, monikers=None): - super(InstalledExtensionQuery, self).__init__() - self.asset_types = asset_types - self.monikers = monikers diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension_state.py b/vsts/vsts/extension_management/v4_1/models/installed_extension_state.py deleted file mode 100644 index fe748304..00000000 --- a/vsts/vsts/extension_management/v4_1/models/installed_extension_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionState(Model): - """InstalledExtensionState. - - :param flags: States of an installed extension - :type flags: object - :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` - :param last_updated: The time at which this installation was last updated - :type last_updated: datetime - """ - - _attribute_map = { - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_issues': {'key': 'installationIssues', 'type': '[InstalledExtensionStateIssue]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'} - } - - def __init__(self, flags=None, installation_issues=None, last_updated=None): - super(InstalledExtensionState, self).__init__() - self.flags = flags - self.installation_issues = installation_issues - self.last_updated = last_updated diff --git a/vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py b/vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py deleted file mode 100644 index e66bb556..00000000 --- a/vsts/vsts/extension_management/v4_1/models/installed_extension_state_issue.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstalledExtensionStateIssue(Model): - """InstalledExtensionStateIssue. - - :param message: The error message - :type message: str - :param source: Source of the installation issue, for example "Demands" - :type source: str - :param type: Installation issue type (Warning, Error) - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, source=None, type=None): - super(InstalledExtensionStateIssue, self).__init__() - self.message = message - self.source = source - self.type = type diff --git a/vsts/vsts/extension_management/v4_1/models/licensing_override.py b/vsts/vsts/extension_management/v4_1/models/licensing_override.py deleted file mode 100644 index 7812d57f..00000000 --- a/vsts/vsts/extension_management/v4_1/models/licensing_override.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LicensingOverride(Model): - """LicensingOverride. - - :param behavior: How the inclusion of this contribution should change based on licensing - :type behavior: object - :param id: Fully qualified contribution id which we want to define licensing behavior for - :type id: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, behavior=None, id=None): - super(LicensingOverride, self).__init__() - self.behavior = behavior - self.id = id diff --git a/vsts/vsts/extension_management/v4_1/models/published_extension.py b/vsts/vsts/extension_management/v4_1/models/published_extension.py deleted file mode 100644 index c31aa66a..00000000 --- a/vsts/vsts/extension_management/v4_1/models/published_extension.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishedExtension(Model): - """PublishedExtension. - - :param categories: - :type categories: list of str - :param deployment_type: - :type deployment_type: object - :param display_name: - :type display_name: str - :param extension_id: - :type extension_id: str - :param extension_name: - :type extension_name: str - :param flags: - :type flags: object - :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` - :param last_updated: - :type last_updated: datetime - :param long_description: - :type long_description: str - :param published_date: Date on which the extension was first uploaded. - :type published_date: datetime - :param publisher: - :type publisher: :class:`PublisherFacts ` - :param release_date: Date on which the extension first went public. - :type release_date: datetime - :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` - :param short_description: - :type short_description: str - :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` - :param tags: - :type tags: list of str - :param versions: - :type versions: list of :class:`ExtensionVersion ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[str]'}, - 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'long_description': {'key': 'longDescription', 'type': 'str'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, - 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, - 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} - } - - def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): - super(PublishedExtension, self).__init__() - self.categories = categories - self.deployment_type = deployment_type - self.display_name = display_name - self.extension_id = extension_id - self.extension_name = extension_name - self.flags = flags - self.installation_targets = installation_targets - self.last_updated = last_updated - self.long_description = long_description - self.published_date = published_date - self.publisher = publisher - self.release_date = release_date - self.shared_with = shared_with - self.short_description = short_description - self.statistics = statistics - self.tags = tags - self.versions = versions diff --git a/vsts/vsts/extension_management/v4_1/models/publisher_facts.py b/vsts/vsts/extension_management/v4_1/models/publisher_facts.py deleted file mode 100644 index 979b6d8d..00000000 --- a/vsts/vsts/extension_management/v4_1/models/publisher_facts.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherFacts(Model): - """PublisherFacts. - - :param display_name: - :type display_name: str - :param flags: - :type flags: object - :param publisher_id: - :type publisher_id: str - :param publisher_name: - :type publisher_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): - super(PublisherFacts, self).__init__() - self.display_name = display_name - self.flags = flags - self.publisher_id = publisher_id - self.publisher_name = publisher_name diff --git a/vsts/vsts/extension_management/v4_1/models/reference_links.py b/vsts/vsts/extension_management/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/extension_management/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/extension_management/v4_1/models/requested_extension.py b/vsts/vsts/extension_management/v4_1/models/requested_extension.py deleted file mode 100644 index 6b951240..00000000 --- a/vsts/vsts/extension_management/v4_1/models/requested_extension.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RequestedExtension(Model): - """RequestedExtension. - - :param extension_name: The unique name of the extension - :type extension_name: str - :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` - :param publisher_display_name: DisplayName of the publisher that owns the extension being published. - :type publisher_display_name: str - :param publisher_name: Represents the Publisher of the requested extension - :type publisher_name: str - :param request_count: The total number of requests for an extension - :type request_count: int - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'extension_requests': {'key': 'extensionRequests', 'type': '[ExtensionRequest]'}, - 'publisher_display_name': {'key': 'publisherDisplayName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'request_count': {'key': 'requestCount', 'type': 'int'} - } - - def __init__(self, extension_name=None, extension_requests=None, publisher_display_name=None, publisher_name=None, request_count=None): - super(RequestedExtension, self).__init__() - self.extension_name = extension_name - self.extension_requests = extension_requests - self.publisher_display_name = publisher_display_name - self.publisher_name = publisher_name - self.request_count = request_count diff --git a/vsts/vsts/extension_management/v4_1/models/user_extension_policy.py b/vsts/vsts/extension_management/v4_1/models/user_extension_policy.py deleted file mode 100644 index cf4b9e5d..00000000 --- a/vsts/vsts/extension_management/v4_1/models/user_extension_policy.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserExtensionPolicy(Model): - """UserExtensionPolicy. - - :param display_name: User display name that this policy refers to - :type display_name: str - :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` - :param user_id: User id that this policy refers to - :type user_id: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'permissions': {'key': 'permissions', 'type': 'ExtensionPolicy'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, display_name=None, permissions=None, user_id=None): - super(UserExtensionPolicy, self).__init__() - self.display_name = display_name - self.permissions = permissions - self.user_id = user_id diff --git a/vsts/vsts/feature_availability/__init__.py b/vsts/vsts/feature_availability/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/feature_availability/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_availability/v4_0/__init__.py b/vsts/vsts/feature_availability/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/feature_availability/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py b/vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py deleted file mode 100644 index 3eb826e6..00000000 --- a/vsts/vsts/feature_availability/v4_0/models/feature_flag_patch.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeatureFlagPatch(Model): - """FeatureFlagPatch. - - :param state: - :type state: str - """ - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, state=None): - super(FeatureFlagPatch, self).__init__() - self.state = state diff --git a/vsts/vsts/feature_availability/v4_1/__init__.py b/vsts/vsts/feature_availability/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/feature_availability/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_availability/v4_1/models/__init__.py b/vsts/vsts/feature_availability/v4_1/models/__init__.py deleted file mode 100644 index 926dca8c..00000000 --- a/vsts/vsts/feature_availability/v4_1/models/__init__.py +++ /dev/null @@ -1,15 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .feature_flag import FeatureFlag -from .feature_flag_patch import FeatureFlagPatch - -__all__ = [ - 'FeatureFlag', - 'FeatureFlagPatch', -] diff --git a/vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py b/vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py deleted file mode 100644 index 3eb826e6..00000000 --- a/vsts/vsts/feature_availability/v4_1/models/feature_flag_patch.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeatureFlagPatch(Model): - """FeatureFlagPatch. - - :param state: - :type state: str - """ - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, state=None): - super(FeatureFlagPatch, self).__init__() - self.state = state diff --git a/vsts/vsts/feature_management/__init__.py b/vsts/vsts/feature_management/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/feature_management/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_management/v4_0/__init__.py b/vsts/vsts/feature_management/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/feature_management/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature.py deleted file mode 100644 index f709a16a..00000000 --- a/vsts/vsts/feature_management/v4_0/models/contributed_feature.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeature(Model): - """ContributedFeature. - - :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` - :param default_state: If true, the feature is enabled unless overridden at some scope - :type default_state: bool - :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` - :param description: The description of the feature - :type description: str - :param id: The full contribution id of the feature - :type id: str - :param name: The friendly name of the feature - :type name: str - :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` - :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` - :param service_instance_type: The service instance id of the service that owns this feature - :type service_instance_type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_state': {'key': 'defaultState', 'type': 'bool'}, - 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, - 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} - } - - def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): - super(ContributedFeature, self).__init__() - self._links = _links - self.default_state = default_state - self.default_value_rules = default_value_rules - self.description = description - self.id = id - self.name = name - self.override_rules = override_rules - self.scopes = scopes - self.service_instance_type = service_instance_type diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py deleted file mode 100644 index 9366312e..00000000 --- a/vsts/vsts/feature_management/v4_0/models/contributed_feature_setting_scope.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureSettingScope(Model): - """ContributedFeatureSettingScope. - - :param setting_scope: The name of the settings scope to use when reading/writing the setting - :type setting_scope: str - :param user_scoped: Whether this is a user-scope or this is a host-wide (all users) setting - :type user_scoped: bool - """ - - _attribute_map = { - 'setting_scope': {'key': 'settingScope', 'type': 'str'}, - 'user_scoped': {'key': 'userScoped', 'type': 'bool'} - } - - def __init__(self, setting_scope=None, user_scoped=None): - super(ContributedFeatureSettingScope, self).__init__() - self.setting_scope = setting_scope - self.user_scoped = user_scoped diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py deleted file mode 100644 index aeeee1e8..00000000 --- a/vsts/vsts/feature_management/v4_0/models/contributed_feature_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureState(Model): - """ContributedFeatureState. - - :param feature_id: The full contribution id of the feature - :type feature_id: str - :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` - :param state: The current state of this feature - :type state: object - """ - - _attribute_map = { - 'feature_id': {'key': 'featureId', 'type': 'str'}, - 'scope': {'key': 'scope', 'type': 'ContributedFeatureSettingScope'}, - 'state': {'key': 'state', 'type': 'object'} - } - - def __init__(self, feature_id=None, scope=None, state=None): - super(ContributedFeatureState, self).__init__() - self.feature_id = feature_id - self.scope = scope - self.state = state diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py deleted file mode 100644 index 97191e09..00000000 --- a/vsts/vsts/feature_management/v4_0/models/contributed_feature_state_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureStateQuery(Model): - """ContributedFeatureStateQuery. - - :param feature_ids: The list of feature ids to query - :type feature_ids: list of str - :param feature_states: The query result containing the current feature states for each of the queried feature ids - :type feature_states: dict - :param scope_values: A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes) - :type scope_values: dict - """ - - _attribute_map = { - 'feature_ids': {'key': 'featureIds', 'type': '[str]'}, - 'feature_states': {'key': 'featureStates', 'type': '{ContributedFeatureState}'}, - 'scope_values': {'key': 'scopeValues', 'type': '{str}'} - } - - def __init__(self, feature_ids=None, feature_states=None, scope_values=None): - super(ContributedFeatureStateQuery, self).__init__() - self.feature_ids = feature_ids - self.feature_states = feature_states - self.scope_values = scope_values diff --git a/vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py b/vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py deleted file mode 100644 index ea654f08..00000000 --- a/vsts/vsts/feature_management/v4_0/models/contributed_feature_value_rule.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureValueRule(Model): - """ContributedFeatureValueRule. - - :param name: Name of the IContributedFeatureValuePlugin to run - :type name: str - :param properties: Properties to feed to the IContributedFeatureValuePlugin - :type properties: dict - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'} - } - - def __init__(self, name=None, properties=None): - super(ContributedFeatureValueRule, self).__init__() - self.name = name - self.properties = properties diff --git a/vsts/vsts/feature_management/v4_0/models/reference_links.py b/vsts/vsts/feature_management/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/feature_management/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/feature_management/v4_1/__init__.py b/vsts/vsts/feature_management/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/feature_management/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature.py deleted file mode 100644 index 9bd35b24..00000000 --- a/vsts/vsts/feature_management/v4_1/models/contributed_feature.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeature(Model): - """ContributedFeature. - - :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` - :param default_state: If true, the feature is enabled unless overridden at some scope - :type default_state: bool - :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` - :param description: The description of the feature - :type description: str - :param id: The full contribution id of the feature - :type id: str - :param name: The friendly name of the feature - :type name: str - :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` - :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` - :param service_instance_type: The service instance id of the service that owns this feature - :type service_instance_type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_state': {'key': 'defaultState', 'type': 'bool'}, - 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, - 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} - } - - def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): - super(ContributedFeature, self).__init__() - self._links = _links - self.default_state = default_state - self.default_value_rules = default_value_rules - self.description = description - self.id = id - self.name = name - self.override_rules = override_rules - self.scopes = scopes - self.service_instance_type = service_instance_type diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py deleted file mode 100644 index 9366312e..00000000 --- a/vsts/vsts/feature_management/v4_1/models/contributed_feature_setting_scope.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureSettingScope(Model): - """ContributedFeatureSettingScope. - - :param setting_scope: The name of the settings scope to use when reading/writing the setting - :type setting_scope: str - :param user_scoped: Whether this is a user-scope or this is a host-wide (all users) setting - :type user_scoped: bool - """ - - _attribute_map = { - 'setting_scope': {'key': 'settingScope', 'type': 'str'}, - 'user_scoped': {'key': 'userScoped', 'type': 'bool'} - } - - def __init__(self, setting_scope=None, user_scoped=None): - super(ContributedFeatureSettingScope, self).__init__() - self.setting_scope = setting_scope - self.user_scoped = user_scoped diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py deleted file mode 100644 index 2e4f7e09..00000000 --- a/vsts/vsts/feature_management/v4_1/models/contributed_feature_state.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureState(Model): - """ContributedFeatureState. - - :param feature_id: The full contribution id of the feature - :type feature_id: str - :param overridden: True if the effective state was set by an override rule (indicating that the state cannot be managed by the end user) - :type overridden: bool - :param reason: Reason that the state was set (by a plugin/rule). - :type reason: str - :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` - :param state: The current state of this feature - :type state: object - """ - - _attribute_map = { - 'feature_id': {'key': 'featureId', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'scope': {'key': 'scope', 'type': 'ContributedFeatureSettingScope'}, - 'state': {'key': 'state', 'type': 'object'} - } - - def __init__(self, feature_id=None, overridden=None, reason=None, scope=None, state=None): - super(ContributedFeatureState, self).__init__() - self.feature_id = feature_id - self.overridden = overridden - self.reason = reason - self.scope = scope - self.state = state diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py deleted file mode 100644 index 97191e09..00000000 --- a/vsts/vsts/feature_management/v4_1/models/contributed_feature_state_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureStateQuery(Model): - """ContributedFeatureStateQuery. - - :param feature_ids: The list of feature ids to query - :type feature_ids: list of str - :param feature_states: The query result containing the current feature states for each of the queried feature ids - :type feature_states: dict - :param scope_values: A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes) - :type scope_values: dict - """ - - _attribute_map = { - 'feature_ids': {'key': 'featureIds', 'type': '[str]'}, - 'feature_states': {'key': 'featureStates', 'type': '{ContributedFeatureState}'}, - 'scope_values': {'key': 'scopeValues', 'type': '{str}'} - } - - def __init__(self, feature_ids=None, feature_states=None, scope_values=None): - super(ContributedFeatureStateQuery, self).__init__() - self.feature_ids = feature_ids - self.feature_states = feature_states - self.scope_values = scope_values diff --git a/vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py b/vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py deleted file mode 100644 index ea654f08..00000000 --- a/vsts/vsts/feature_management/v4_1/models/contributed_feature_value_rule.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ContributedFeatureValueRule(Model): - """ContributedFeatureValueRule. - - :param name: Name of the IContributedFeatureValuePlugin to run - :type name: str - :param properties: Properties to feed to the IContributedFeatureValuePlugin - :type properties: dict - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'} - } - - def __init__(self, name=None, properties=None): - super(ContributedFeatureValueRule, self).__init__() - self.name = name - self.properties = properties diff --git a/vsts/vsts/feature_management/v4_1/models/reference_links.py b/vsts/vsts/feature_management/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/feature_management/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/feed/__init__.py b/vsts/vsts/feed/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/feed/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed/v4_1/__init__.py b/vsts/vsts/feed/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/feed/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed/v4_1/models/__init__.py b/vsts/vsts/feed/v4_1/models/__init__.py deleted file mode 100644 index d1013d41..00000000 --- a/vsts/vsts/feed/v4_1/models/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .feed import Feed -from .feed_change import FeedChange -from .feed_changes_response import FeedChangesResponse -from .feed_core import FeedCore -from .feed_permission import FeedPermission -from .feed_retention_policy import FeedRetentionPolicy -from .feed_update import FeedUpdate -from .feed_view import FeedView -from .global_permission import GlobalPermission -from .json_patch_operation import JsonPatchOperation -from .minimal_package_version import MinimalPackageVersion -from .package import Package -from .package_change import PackageChange -from .package_changes_response import PackageChangesResponse -from .package_dependency import PackageDependency -from .package_file import PackageFile -from .package_version import PackageVersion -from .package_version_change import PackageVersionChange -from .protocol_metadata import ProtocolMetadata -from .recycle_bin_package_version import RecycleBinPackageVersion -from .reference_links import ReferenceLinks -from .upstream_source import UpstreamSource - -__all__ = [ - 'Feed', - 'FeedChange', - 'FeedChangesResponse', - 'FeedCore', - 'FeedPermission', - 'FeedRetentionPolicy', - 'FeedUpdate', - 'FeedView', - 'GlobalPermission', - 'JsonPatchOperation', - 'MinimalPackageVersion', - 'Package', - 'PackageChange', - 'PackageChangesResponse', - 'PackageDependency', - 'PackageFile', - 'PackageVersion', - 'PackageVersionChange', - 'ProtocolMetadata', - 'RecycleBinPackageVersion', - 'ReferenceLinks', - 'UpstreamSource', -] diff --git a/vsts/vsts/feed/v4_1/models/feed.py b/vsts/vsts/feed/v4_1/models/feed.py deleted file mode 100644 index 9e2cd8e1..00000000 --- a/vsts/vsts/feed/v4_1/models/feed.py +++ /dev/null @@ -1,93 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .feed_core import FeedCore - - -class Feed(FeedCore): - """Feed. - - :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream - :type allow_upstream_name_conflict: bool - :param capabilities: - :type capabilities: object - :param fully_qualified_id: - :type fully_qualified_id: str - :param fully_qualified_name: - :type fully_qualified_name: str - :param id: - :type id: str - :param is_read_only: - :type is_read_only: bool - :param name: - :type name: str - :param upstream_enabled: If set, the feed can proxy packages from an upstream feed - :type upstream_enabled: bool - :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. - :type upstream_sources: list of :class:`UpstreamSource ` - :param view: - :type view: :class:`FeedView ` - :param view_id: - :type view_id: str - :param view_name: - :type view_name: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param badges_enabled: - :type badges_enabled: bool - :param default_view_id: - :type default_view_id: str - :param deleted_date: - :type deleted_date: datetime - :param description: - :type description: str - :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions - :type hide_deleted_package_versions: bool - :param permissions: - :type permissions: list of :class:`FeedPermission ` - :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. - :type upstream_enabled_changed_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, - 'capabilities': {'key': 'capabilities', 'type': 'object'}, - 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, - 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, - 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, - 'view': {'key': 'view', 'type': 'FeedView'}, - 'view_id': {'key': 'viewId', 'type': 'str'}, - 'view_name': {'key': 'viewName', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, - 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, - 'permissions': {'key': 'permissions', 'type': '[FeedPermission]'}, - 'upstream_enabled_changed_date': {'key': 'upstreamEnabledChangedDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None, _links=None, badges_enabled=None, default_view_id=None, deleted_date=None, description=None, hide_deleted_package_versions=None, permissions=None, upstream_enabled_changed_date=None, url=None): - super(Feed, self).__init__(allow_upstream_name_conflict=allow_upstream_name_conflict, capabilities=capabilities, fully_qualified_id=fully_qualified_id, fully_qualified_name=fully_qualified_name, id=id, is_read_only=is_read_only, name=name, upstream_enabled=upstream_enabled, upstream_sources=upstream_sources, view=view, view_id=view_id, view_name=view_name) - self._links = _links - self.badges_enabled = badges_enabled - self.default_view_id = default_view_id - self.deleted_date = deleted_date - self.description = description - self.hide_deleted_package_versions = hide_deleted_package_versions - self.permissions = permissions - self.upstream_enabled_changed_date = upstream_enabled_changed_date - self.url = url diff --git a/vsts/vsts/feed/v4_1/models/feed_change.py b/vsts/vsts/feed/v4_1/models/feed_change.py deleted file mode 100644 index d492f13d..00000000 --- a/vsts/vsts/feed/v4_1/models/feed_change.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeedChange(Model): - """FeedChange. - - :param change_type: - :type change_type: object - :param feed: - :type feed: :class:`Feed ` - :param feed_continuation_token: - :type feed_continuation_token: long - :param latest_package_continuation_token: - :type latest_package_continuation_token: long - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'feed': {'key': 'feed', 'type': 'Feed'}, - 'feed_continuation_token': {'key': 'feedContinuationToken', 'type': 'long'}, - 'latest_package_continuation_token': {'key': 'latestPackageContinuationToken', 'type': 'long'} - } - - def __init__(self, change_type=None, feed=None, feed_continuation_token=None, latest_package_continuation_token=None): - super(FeedChange, self).__init__() - self.change_type = change_type - self.feed = feed - self.feed_continuation_token = feed_continuation_token - self.latest_package_continuation_token = latest_package_continuation_token diff --git a/vsts/vsts/feed/v4_1/models/feed_changes_response.py b/vsts/vsts/feed/v4_1/models/feed_changes_response.py deleted file mode 100644 index 7ff57cf2..00000000 --- a/vsts/vsts/feed/v4_1/models/feed_changes_response.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeedChangesResponse(Model): - """FeedChangesResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param count: - :type count: int - :param feed_changes: - :type feed_changes: list of :class:`FeedChange ` - :param next_feed_continuation_token: - :type next_feed_continuation_token: long - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'count': {'key': 'count', 'type': 'int'}, - 'feed_changes': {'key': 'feedChanges', 'type': '[FeedChange]'}, - 'next_feed_continuation_token': {'key': 'nextFeedContinuationToken', 'type': 'long'} - } - - def __init__(self, _links=None, count=None, feed_changes=None, next_feed_continuation_token=None): - super(FeedChangesResponse, self).__init__() - self._links = _links - self.count = count - self.feed_changes = feed_changes - self.next_feed_continuation_token = next_feed_continuation_token diff --git a/vsts/vsts/feed/v4_1/models/feed_core.py b/vsts/vsts/feed/v4_1/models/feed_core.py deleted file mode 100644 index a0c9a4c2..00000000 --- a/vsts/vsts/feed/v4_1/models/feed_core.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeedCore(Model): - """FeedCore. - - :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream - :type allow_upstream_name_conflict: bool - :param capabilities: - :type capabilities: object - :param fully_qualified_id: - :type fully_qualified_id: str - :param fully_qualified_name: - :type fully_qualified_name: str - :param id: - :type id: str - :param is_read_only: - :type is_read_only: bool - :param name: - :type name: str - :param upstream_enabled: If set, the feed can proxy packages from an upstream feed - :type upstream_enabled: bool - :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. - :type upstream_sources: list of :class:`UpstreamSource ` - :param view: - :type view: :class:`FeedView ` - :param view_id: - :type view_id: str - :param view_name: - :type view_name: str - """ - - _attribute_map = { - 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, - 'capabilities': {'key': 'capabilities', 'type': 'object'}, - 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, - 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, - 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, - 'view': {'key': 'view', 'type': 'FeedView'}, - 'view_id': {'key': 'viewId', 'type': 'str'}, - 'view_name': {'key': 'viewName', 'type': 'str'} - } - - def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None): - super(FeedCore, self).__init__() - self.allow_upstream_name_conflict = allow_upstream_name_conflict - self.capabilities = capabilities - self.fully_qualified_id = fully_qualified_id - self.fully_qualified_name = fully_qualified_name - self.id = id - self.is_read_only = is_read_only - self.name = name - self.upstream_enabled = upstream_enabled - self.upstream_sources = upstream_sources - self.view = view - self.view_id = view_id - self.view_name = view_name diff --git a/vsts/vsts/feed/v4_1/models/feed_permission.py b/vsts/vsts/feed/v4_1/models/feed_permission.py deleted file mode 100644 index b3823a07..00000000 --- a/vsts/vsts/feed/v4_1/models/feed_permission.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeedPermission(Model): - """FeedPermission. - - :param display_name: Display name for the identity - :type display_name: str - :param identity_descriptor: - :type identity_descriptor: :class:`str ` - :param identity_id: - :type identity_id: str - :param role: - :type role: object - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, - 'identity_id': {'key': 'identityId', 'type': 'str'}, - 'role': {'key': 'role', 'type': 'object'} - } - - def __init__(self, display_name=None, identity_descriptor=None, identity_id=None, role=None): - super(FeedPermission, self).__init__() - self.display_name = display_name - self.identity_descriptor = identity_descriptor - self.identity_id = identity_id - self.role = role diff --git a/vsts/vsts/feed/v4_1/models/feed_retention_policy.py b/vsts/vsts/feed/v4_1/models/feed_retention_policy.py deleted file mode 100644 index fa30d342..00000000 --- a/vsts/vsts/feed/v4_1/models/feed_retention_policy.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeedRetentionPolicy(Model): - """FeedRetentionPolicy. - - :param age_limit_in_days: - :type age_limit_in_days: int - :param count_limit: - :type count_limit: int - """ - - _attribute_map = { - 'age_limit_in_days': {'key': 'ageLimitInDays', 'type': 'int'}, - 'count_limit': {'key': 'countLimit', 'type': 'int'} - } - - def __init__(self, age_limit_in_days=None, count_limit=None): - super(FeedRetentionPolicy, self).__init__() - self.age_limit_in_days = age_limit_in_days - self.count_limit = count_limit diff --git a/vsts/vsts/feed/v4_1/models/feed_update.py b/vsts/vsts/feed/v4_1/models/feed_update.py deleted file mode 100644 index d656de18..00000000 --- a/vsts/vsts/feed/v4_1/models/feed_update.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeedUpdate(Model): - """FeedUpdate. - - :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream - :type allow_upstream_name_conflict: bool - :param badges_enabled: - :type badges_enabled: bool - :param default_view_id: - :type default_view_id: str - :param description: - :type description: str - :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions - :type hide_deleted_package_versions: bool - :param id: - :type id: str - :param name: - :type name: str - :param upstream_enabled: - :type upstream_enabled: bool - :param upstream_sources: - :type upstream_sources: list of :class:`UpstreamSource ` - """ - - _attribute_map = { - 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, - 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, - 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, - 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'} - } - - def __init__(self, allow_upstream_name_conflict=None, badges_enabled=None, default_view_id=None, description=None, hide_deleted_package_versions=None, id=None, name=None, upstream_enabled=None, upstream_sources=None): - super(FeedUpdate, self).__init__() - self.allow_upstream_name_conflict = allow_upstream_name_conflict - self.badges_enabled = badges_enabled - self.default_view_id = default_view_id - self.description = description - self.hide_deleted_package_versions = hide_deleted_package_versions - self.id = id - self.name = name - self.upstream_enabled = upstream_enabled - self.upstream_sources = upstream_sources diff --git a/vsts/vsts/feed/v4_1/models/feed_view.py b/vsts/vsts/feed/v4_1/models/feed_view.py deleted file mode 100644 index bad05dd2..00000000 --- a/vsts/vsts/feed/v4_1/models/feed_view.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FeedView(Model): - """FeedView. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: str - :param name: - :type name: str - :param type: - :type type: object - :param url: - :type url: str - :param visibility: - :type visibility: object - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, _links=None, id=None, name=None, type=None, url=None, visibility=None): - super(FeedView, self).__init__() - self._links = _links - self.id = id - self.name = name - self.type = type - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/feed/v4_1/models/global_permission.py b/vsts/vsts/feed/v4_1/models/global_permission.py deleted file mode 100644 index e2e179fe..00000000 --- a/vsts/vsts/feed/v4_1/models/global_permission.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GlobalPermission(Model): - """GlobalPermission. - - :param identity_descriptor: - :type identity_descriptor: :class:`str ` - :param role: - :type role: object - """ - - _attribute_map = { - 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, - 'role': {'key': 'role', 'type': 'object'} - } - - def __init__(self, identity_descriptor=None, role=None): - super(GlobalPermission, self).__init__() - self.identity_descriptor = identity_descriptor - self.role = role diff --git a/vsts/vsts/feed/v4_1/models/json_patch_operation.py b/vsts/vsts/feed/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/feed/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/feed/v4_1/models/minimal_package_version.py b/vsts/vsts/feed/v4_1/models/minimal_package_version.py deleted file mode 100644 index 4f1fd3e2..00000000 --- a/vsts/vsts/feed/v4_1/models/minimal_package_version.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MinimalPackageVersion(Model): - """MinimalPackageVersion. - - :param direct_upstream_source_id: - :type direct_upstream_source_id: str - :param id: - :type id: str - :param is_cached_version: - :type is_cached_version: bool - :param is_deleted: - :type is_deleted: bool - :param is_latest: - :type is_latest: bool - :param is_listed: - :type is_listed: bool - :param normalized_version: The normalized version representing the identity of a package version - :type normalized_version: str - :param package_description: - :type package_description: str - :param publish_date: - :type publish_date: datetime - :param storage_id: - :type storage_id: str - :param version: The display version of the package version - :type version: str - :param views: - :type views: list of :class:`FeedView ` - """ - - _attribute_map = { - 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_latest': {'key': 'isLatest', 'type': 'bool'}, - 'is_listed': {'key': 'isListed', 'type': 'bool'}, - 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, - 'package_description': {'key': 'packageDescription', 'type': 'str'}, - 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, - 'storage_id': {'key': 'storageId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'views': {'key': 'views', 'type': '[FeedView]'} - } - - def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None): - super(MinimalPackageVersion, self).__init__() - self.direct_upstream_source_id = direct_upstream_source_id - self.id = id - self.is_cached_version = is_cached_version - self.is_deleted = is_deleted - self.is_latest = is_latest - self.is_listed = is_listed - self.normalized_version = normalized_version - self.package_description = package_description - self.publish_date = publish_date - self.storage_id = storage_id - self.version = version - self.views = views diff --git a/vsts/vsts/feed/v4_1/models/package.py b/vsts/vsts/feed/v4_1/models/package.py deleted file mode 100644 index bbbde325..00000000 --- a/vsts/vsts/feed/v4_1/models/package.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Package(Model): - """Package. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: str - :param is_cached: - :type is_cached: bool - :param name: The display name of the package - :type name: str - :param normalized_name: The normalized name representing the identity of this package for this protocol type - :type normalized_name: str - :param protocol_type: - :type protocol_type: str - :param star_count: - :type star_count: int - :param url: - :type url: str - :param versions: - :type versions: list of :class:`MinimalPackageVersion ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_cached': {'key': 'isCached', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'normalized_name': {'key': 'normalizedName', 'type': 'str'}, - 'protocol_type': {'key': 'protocolType', 'type': 'str'}, - 'star_count': {'key': 'starCount', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[MinimalPackageVersion]'} - } - - def __init__(self, _links=None, id=None, is_cached=None, name=None, normalized_name=None, protocol_type=None, star_count=None, url=None, versions=None): - super(Package, self).__init__() - self._links = _links - self.id = id - self.is_cached = is_cached - self.name = name - self.normalized_name = normalized_name - self.protocol_type = protocol_type - self.star_count = star_count - self.url = url - self.versions = versions diff --git a/vsts/vsts/feed/v4_1/models/package_change.py b/vsts/vsts/feed/v4_1/models/package_change.py deleted file mode 100644 index 4c4641d6..00000000 --- a/vsts/vsts/feed/v4_1/models/package_change.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageChange(Model): - """PackageChange. - - :param package: - :type package: :class:`Package ` - :param package_version_change: - :type package_version_change: :class:`PackageVersionChange ` - """ - - _attribute_map = { - 'package': {'key': 'package', 'type': 'Package'}, - 'package_version_change': {'key': 'packageVersionChange', 'type': 'PackageVersionChange'} - } - - def __init__(self, package=None, package_version_change=None): - super(PackageChange, self).__init__() - self.package = package - self.package_version_change = package_version_change diff --git a/vsts/vsts/feed/v4_1/models/package_changes_response.py b/vsts/vsts/feed/v4_1/models/package_changes_response.py deleted file mode 100644 index a16cdce0..00000000 --- a/vsts/vsts/feed/v4_1/models/package_changes_response.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageChangesResponse(Model): - """PackageChangesResponse. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param count: - :type count: int - :param next_package_continuation_token: - :type next_package_continuation_token: long - :param package_changes: - :type package_changes: list of :class:`PackageChange ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'count': {'key': 'count', 'type': 'int'}, - 'next_package_continuation_token': {'key': 'nextPackageContinuationToken', 'type': 'long'}, - 'package_changes': {'key': 'packageChanges', 'type': '[PackageChange]'} - } - - def __init__(self, _links=None, count=None, next_package_continuation_token=None, package_changes=None): - super(PackageChangesResponse, self).__init__() - self._links = _links - self.count = count - self.next_package_continuation_token = next_package_continuation_token - self.package_changes = package_changes diff --git a/vsts/vsts/feed/v4_1/models/package_dependency.py b/vsts/vsts/feed/v4_1/models/package_dependency.py deleted file mode 100644 index 4e143549..00000000 --- a/vsts/vsts/feed/v4_1/models/package_dependency.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageDependency(Model): - """PackageDependency. - - :param group: - :type group: str - :param package_name: - :type package_name: str - :param version_range: - :type version_range: str - """ - - _attribute_map = { - 'group': {'key': 'group', 'type': 'str'}, - 'package_name': {'key': 'packageName', 'type': 'str'}, - 'version_range': {'key': 'versionRange', 'type': 'str'} - } - - def __init__(self, group=None, package_name=None, version_range=None): - super(PackageDependency, self).__init__() - self.group = group - self.package_name = package_name - self.version_range = version_range diff --git a/vsts/vsts/feed/v4_1/models/package_file.py b/vsts/vsts/feed/v4_1/models/package_file.py deleted file mode 100644 index e7972056..00000000 --- a/vsts/vsts/feed/v4_1/models/package_file.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageFile(Model): - """PackageFile. - - :param children: - :type children: list of :class:`PackageFile ` - :param name: - :type name: str - :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` - """ - - _attribute_map = { - 'children': {'key': 'children', 'type': '[PackageFile]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'} - } - - def __init__(self, children=None, name=None, protocol_metadata=None): - super(PackageFile, self).__init__() - self.children = children - self.name = name - self.protocol_metadata = protocol_metadata diff --git a/vsts/vsts/feed/v4_1/models/package_version.py b/vsts/vsts/feed/v4_1/models/package_version.py deleted file mode 100644 index e02ac581..00000000 --- a/vsts/vsts/feed/v4_1/models/package_version.py +++ /dev/null @@ -1,105 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .minimal_package_version import MinimalPackageVersion - - -class PackageVersion(MinimalPackageVersion): - """PackageVersion. - - :param direct_upstream_source_id: - :type direct_upstream_source_id: str - :param id: - :type id: str - :param is_cached_version: - :type is_cached_version: bool - :param is_deleted: - :type is_deleted: bool - :param is_latest: - :type is_latest: bool - :param is_listed: - :type is_listed: bool - :param normalized_version: The normalized version representing the identity of a package version - :type normalized_version: str - :param package_description: - :type package_description: str - :param publish_date: - :type publish_date: datetime - :param storage_id: - :type storage_id: str - :param version: The display version of the package version - :type version: str - :param views: - :type views: list of :class:`FeedView ` - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: str - :param deleted_date: - :type deleted_date: datetime - :param dependencies: - :type dependencies: list of :class:`PackageDependency ` - :param description: - :type description: str - :param files: - :type files: list of :class:`PackageFile ` - :param other_versions: - :type other_versions: list of :class:`MinimalPackageVersion ` - :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` - :param source_chain: - :type source_chain: list of :class:`UpstreamSource ` - :param summary: - :type summary: str - :param tags: - :type tags: list of str - :param url: - :type url: str - """ - - _attribute_map = { - 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_latest': {'key': 'isLatest', 'type': 'bool'}, - 'is_listed': {'key': 'isListed', 'type': 'bool'}, - 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, - 'package_description': {'key': 'packageDescription', 'type': 'str'}, - 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, - 'storage_id': {'key': 'storageId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'views': {'key': 'views', 'type': '[FeedView]'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[PackageFile]'}, - 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, - 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, - 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, - 'summary': {'key': 'summary', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None): - super(PackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views) - self._links = _links - self.author = author - self.deleted_date = deleted_date - self.dependencies = dependencies - self.description = description - self.files = files - self.other_versions = other_versions - self.protocol_metadata = protocol_metadata - self.source_chain = source_chain - self.summary = summary - self.tags = tags - self.url = url diff --git a/vsts/vsts/feed/v4_1/models/package_version_change.py b/vsts/vsts/feed/v4_1/models/package_version_change.py deleted file mode 100644 index 871d7a0a..00000000 --- a/vsts/vsts/feed/v4_1/models/package_version_change.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageVersionChange(Model): - """PackageVersionChange. - - :param change_type: - :type change_type: object - :param continuation_token: - :type continuation_token: long - :param package_version: - :type package_version: :class:`PackageVersion ` - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'continuation_token': {'key': 'continuationToken', 'type': 'long'}, - 'package_version': {'key': 'packageVersion', 'type': 'PackageVersion'} - } - - def __init__(self, change_type=None, continuation_token=None, package_version=None): - super(PackageVersionChange, self).__init__() - self.change_type = change_type - self.continuation_token = continuation_token - self.package_version = package_version diff --git a/vsts/vsts/feed/v4_1/models/protocol_metadata.py b/vsts/vsts/feed/v4_1/models/protocol_metadata.py deleted file mode 100644 index 8034342c..00000000 --- a/vsts/vsts/feed/v4_1/models/protocol_metadata.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProtocolMetadata(Model): - """ProtocolMetadata. - - :param data: - :type data: object - :param schema_version: - :type schema_version: int - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'object'}, - 'schema_version': {'key': 'schemaVersion', 'type': 'int'} - } - - def __init__(self, data=None, schema_version=None): - super(ProtocolMetadata, self).__init__() - self.data = data - self.schema_version = schema_version diff --git a/vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py b/vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py deleted file mode 100644 index 52f7eb19..00000000 --- a/vsts/vsts/feed/v4_1/models/recycle_bin_package_version.py +++ /dev/null @@ -1,97 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .package_version import PackageVersion - - -class RecycleBinPackageVersion(PackageVersion): - """RecycleBinPackageVersion. - - :param direct_upstream_source_id: - :type direct_upstream_source_id: str - :param id: - :type id: str - :param is_cached_version: - :type is_cached_version: bool - :param is_deleted: - :type is_deleted: bool - :param is_latest: - :type is_latest: bool - :param is_listed: - :type is_listed: bool - :param normalized_version: The normalized version representing the identity of a package version - :type normalized_version: str - :param package_description: - :type package_description: str - :param publish_date: - :type publish_date: datetime - :param storage_id: - :type storage_id: str - :param version: The display version of the package version - :type version: str - :param views: - :type views: list of :class:`FeedView ` - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: str - :param deleted_date: - :type deleted_date: datetime - :param dependencies: - :type dependencies: list of :class:`PackageDependency ` - :param description: - :type description: str - :param files: - :type files: list of :class:`PackageFile ` - :param other_versions: - :type other_versions: list of :class:`MinimalPackageVersion ` - :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` - :param source_chain: - :type source_chain: list of :class:`UpstreamSource ` - :param summary: - :type summary: str - :param tags: - :type tags: list of str - :param url: - :type url: str - :param scheduled_permanent_delete_date: - :type scheduled_permanent_delete_date: datetime - """ - - _attribute_map = { - 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_latest': {'key': 'isLatest', 'type': 'bool'}, - 'is_listed': {'key': 'isListed', 'type': 'bool'}, - 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, - 'package_description': {'key': 'packageDescription', 'type': 'str'}, - 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, - 'storage_id': {'key': 'storageId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'views': {'key': 'views', 'type': '[FeedView]'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[PackageFile]'}, - 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, - 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, - 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, - 'summary': {'key': 'summary', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'scheduled_permanent_delete_date': {'key': 'scheduledPermanentDeleteDate', 'type': 'iso-8601'} - } - - def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None, scheduled_permanent_delete_date=None): - super(RecycleBinPackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views, _links=_links, author=author, deleted_date=deleted_date, dependencies=dependencies, description=description, files=files, other_versions=other_versions, protocol_metadata=protocol_metadata, source_chain=source_chain, summary=summary, tags=tags, url=url) - self.scheduled_permanent_delete_date = scheduled_permanent_delete_date diff --git a/vsts/vsts/feed/v4_1/models/reference_links.py b/vsts/vsts/feed/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/feed/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/feed/v4_1/models/upstream_source.py b/vsts/vsts/feed/v4_1/models/upstream_source.py deleted file mode 100644 index 18e619c8..00000000 --- a/vsts/vsts/feed/v4_1/models/upstream_source.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpstreamSource(Model): - """UpstreamSource. - - :param deleted_date: - :type deleted_date: datetime - :param id: - :type id: str - :param internal_upstream_collection_id: - :type internal_upstream_collection_id: str - :param internal_upstream_feed_id: - :type internal_upstream_feed_id: str - :param internal_upstream_view_id: - :type internal_upstream_view_id: str - :param location: - :type location: str - :param name: - :type name: str - :param protocol: - :type protocol: str - :param upstream_source_type: - :type upstream_source_type: object - """ - - _attribute_map = { - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'internal_upstream_collection_id': {'key': 'internalUpstreamCollectionId', 'type': 'str'}, - 'internal_upstream_feed_id': {'key': 'internalUpstreamFeedId', 'type': 'str'}, - 'internal_upstream_view_id': {'key': 'internalUpstreamViewId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'protocol': {'key': 'protocol', 'type': 'str'}, - 'upstream_source_type': {'key': 'upstreamSourceType', 'type': 'object'} - } - - def __init__(self, deleted_date=None, id=None, internal_upstream_collection_id=None, internal_upstream_feed_id=None, internal_upstream_view_id=None, location=None, name=None, protocol=None, upstream_source_type=None): - super(UpstreamSource, self).__init__() - self.deleted_date = deleted_date - self.id = id - self.internal_upstream_collection_id = internal_upstream_collection_id - self.internal_upstream_feed_id = internal_upstream_feed_id - self.internal_upstream_view_id = internal_upstream_view_id - self.location = location - self.name = name - self.protocol = protocol - self.upstream_source_type = upstream_source_type diff --git a/vsts/vsts/feed_token/__init__.py b/vsts/vsts/feed_token/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/feed_token/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/feed_token/v4_1/__init__.py b/vsts/vsts/feed_token/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/feed_token/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/__init__.py b/vsts/vsts/file_container/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/file_container/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/v4_0/__init__.py b/vsts/vsts/file_container/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/file_container/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/v4_0/models/file_container.py b/vsts/vsts/file_container/v4_0/models/file_container.py deleted file mode 100644 index 977d427e..00000000 --- a/vsts/vsts/file_container/v4_0/models/file_container.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FileContainer(Model): - """FileContainer. - - :param artifact_uri: Uri of the artifact associated with the container. - :type artifact_uri: str - :param content_location: Download Url for the content of this item. - :type content_location: str - :param created_by: Owner. - :type created_by: str - :param date_created: Creation date. - :type date_created: datetime - :param description: Description. - :type description: str - :param id: Id. - :type id: long - :param item_location: Location of the item resource. - :type item_location: str - :param locator_path: ItemStore Locator for this container. - :type locator_path: str - :param name: Name. - :type name: str - :param options: Options the container can have. - :type options: object - :param scope_identifier: Project Id. - :type scope_identifier: str - :param security_token: Security token of the artifact associated with the container. - :type security_token: str - :param signing_key_id: Identifier of the optional encryption key. - :type signing_key_id: str - :param size: Total size of the files in bytes. - :type size: long - """ - - _attribute_map = { - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'content_location': {'key': 'contentLocation', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'long'}, - 'item_location': {'key': 'itemLocation', 'type': 'str'}, - 'locator_path': {'key': 'locatorPath', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': 'object'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, - 'security_token': {'key': 'securityToken', 'type': 'str'}, - 'signing_key_id': {'key': 'signingKeyId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'} - } - - def __init__(self, artifact_uri=None, content_location=None, created_by=None, date_created=None, description=None, id=None, item_location=None, locator_path=None, name=None, options=None, scope_identifier=None, security_token=None, signing_key_id=None, size=None): - super(FileContainer, self).__init__() - self.artifact_uri = artifact_uri - self.content_location = content_location - self.created_by = created_by - self.date_created = date_created - self.description = description - self.id = id - self.item_location = item_location - self.locator_path = locator_path - self.name = name - self.options = options - self.scope_identifier = scope_identifier - self.security_token = security_token - self.signing_key_id = signing_key_id - self.size = size diff --git a/vsts/vsts/file_container/v4_1/__init__.py b/vsts/vsts/file_container/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/file_container/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/file_container/v4_1/models/__init__.py b/vsts/vsts/file_container/v4_1/models/__init__.py deleted file mode 100644 index 09bce04e..00000000 --- a/vsts/vsts/file_container/v4_1/models/__init__.py +++ /dev/null @@ -1,15 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .file_container import FileContainer -from .file_container_item import FileContainerItem - -__all__ = [ - 'FileContainer', - 'FileContainerItem', -] diff --git a/vsts/vsts/file_container/v4_1/models/file_container.py b/vsts/vsts/file_container/v4_1/models/file_container.py deleted file mode 100644 index 977d427e..00000000 --- a/vsts/vsts/file_container/v4_1/models/file_container.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FileContainer(Model): - """FileContainer. - - :param artifact_uri: Uri of the artifact associated with the container. - :type artifact_uri: str - :param content_location: Download Url for the content of this item. - :type content_location: str - :param created_by: Owner. - :type created_by: str - :param date_created: Creation date. - :type date_created: datetime - :param description: Description. - :type description: str - :param id: Id. - :type id: long - :param item_location: Location of the item resource. - :type item_location: str - :param locator_path: ItemStore Locator for this container. - :type locator_path: str - :param name: Name. - :type name: str - :param options: Options the container can have. - :type options: object - :param scope_identifier: Project Id. - :type scope_identifier: str - :param security_token: Security token of the artifact associated with the container. - :type security_token: str - :param signing_key_id: Identifier of the optional encryption key. - :type signing_key_id: str - :param size: Total size of the files in bytes. - :type size: long - """ - - _attribute_map = { - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'content_location': {'key': 'contentLocation', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'long'}, - 'item_location': {'key': 'itemLocation', 'type': 'str'}, - 'locator_path': {'key': 'locatorPath', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': 'object'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, - 'security_token': {'key': 'securityToken', 'type': 'str'}, - 'signing_key_id': {'key': 'signingKeyId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'} - } - - def __init__(self, artifact_uri=None, content_location=None, created_by=None, date_created=None, description=None, id=None, item_location=None, locator_path=None, name=None, options=None, scope_identifier=None, security_token=None, signing_key_id=None, size=None): - super(FileContainer, self).__init__() - self.artifact_uri = artifact_uri - self.content_location = content_location - self.created_by = created_by - self.date_created = date_created - self.description = description - self.id = id - self.item_location = item_location - self.locator_path = locator_path - self.name = name - self.options = options - self.scope_identifier = scope_identifier - self.security_token = security_token - self.signing_key_id = signing_key_id - self.size = size diff --git a/vsts/vsts/gallery/__init__.py b/vsts/vsts/gallery/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/gallery/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/gallery/v4_0/__init__.py b/vsts/vsts/gallery/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/gallery/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/gallery/v4_0/models/__init__.py b/vsts/vsts/gallery/v4_0/models/__init__.py deleted file mode 100644 index 129f227d..00000000 --- a/vsts/vsts/gallery/v4_0/models/__init__.py +++ /dev/null @@ -1,115 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .acquisition_operation import AcquisitionOperation -from .acquisition_options import AcquisitionOptions -from .answers import Answers -from .asset_details import AssetDetails -from .azure_publisher import AzurePublisher -from .azure_rest_api_request_model import AzureRestApiRequestModel -from .categories_result import CategoriesResult -from .category_language_title import CategoryLanguageTitle -from .concern import Concern -from .event_counts import EventCounts -from .extension_acquisition_request import ExtensionAcquisitionRequest -from .extension_badge import ExtensionBadge -from .extension_category import ExtensionCategory -from .extension_daily_stat import ExtensionDailyStat -from .extension_daily_stats import ExtensionDailyStats -from .extension_event import ExtensionEvent -from .extension_events import ExtensionEvents -from .extension_file import ExtensionFile -from .extension_filter_result import ExtensionFilterResult -from .extension_filter_result_metadata import ExtensionFilterResultMetadata -from .extension_package import ExtensionPackage -from .extension_query import ExtensionQuery -from .extension_query_result import ExtensionQueryResult -from .extension_share import ExtensionShare -from .extension_statistic import ExtensionStatistic -from .extension_statistic_update import ExtensionStatisticUpdate -from .extension_version import ExtensionVersion -from .filter_criteria import FilterCriteria -from .installation_target import InstallationTarget -from .metadata_item import MetadataItem -from .notifications_data import NotificationsData -from .product_categories_result import ProductCategoriesResult -from .product_category import ProductCategory -from .published_extension import PublishedExtension -from .publisher import Publisher -from .publisher_facts import PublisherFacts -from .publisher_filter_result import PublisherFilterResult -from .publisher_query import PublisherQuery -from .publisher_query_result import PublisherQueryResult -from .qn_aItem import QnAItem -from .query_filter import QueryFilter -from .question import Question -from .questions_result import QuestionsResult -from .rating_count_per_rating import RatingCountPerRating -from .response import Response -from .review import Review -from .review_patch import ReviewPatch -from .review_reply import ReviewReply -from .reviews_result import ReviewsResult -from .review_summary import ReviewSummary -from .user_identity_ref import UserIdentityRef -from .user_reported_concern import UserReportedConcern - -__all__ = [ - 'AcquisitionOperation', - 'AcquisitionOptions', - 'Answers', - 'AssetDetails', - 'AzurePublisher', - 'AzureRestApiRequestModel', - 'CategoriesResult', - 'CategoryLanguageTitle', - 'Concern', - 'EventCounts', - 'ExtensionAcquisitionRequest', - 'ExtensionBadge', - 'ExtensionCategory', - 'ExtensionDailyStat', - 'ExtensionDailyStats', - 'ExtensionEvent', - 'ExtensionEvents', - 'ExtensionFile', - 'ExtensionFilterResult', - 'ExtensionFilterResultMetadata', - 'ExtensionPackage', - 'ExtensionQuery', - 'ExtensionQueryResult', - 'ExtensionShare', - 'ExtensionStatistic', - 'ExtensionStatisticUpdate', - 'ExtensionVersion', - 'FilterCriteria', - 'InstallationTarget', - 'MetadataItem', - 'NotificationsData', - 'ProductCategoriesResult', - 'ProductCategory', - 'PublishedExtension', - 'Publisher', - 'PublisherFacts', - 'PublisherFilterResult', - 'PublisherQuery', - 'PublisherQueryResult', - 'QnAItem', - 'QueryFilter', - 'Question', - 'QuestionsResult', - 'RatingCountPerRating', - 'Response', - 'Review', - 'ReviewPatch', - 'ReviewReply', - 'ReviewsResult', - 'ReviewSummary', - 'UserIdentityRef', - 'UserReportedConcern', -] diff --git a/vsts/vsts/gallery/v4_0/models/acquisition_operation.py b/vsts/vsts/gallery/v4_0/models/acquisition_operation.py deleted file mode 100644 index bd2e4ef2..00000000 --- a/vsts/vsts/gallery/v4_0/models/acquisition_operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOperation(Model): - """AcquisitionOperation. - - :param operation_state: State of the the AcquisitionOperation for the current user - :type operation_state: object - :param operation_type: AcquisitionOperationType: install, request, buy, etc... - :type operation_type: object - :param reason: Optional reason to justify current state. Typically used with Disallow state. - :type reason: str - """ - - _attribute_map = { - 'operation_state': {'key': 'operationState', 'type': 'object'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'str'} - } - - def __init__(self, operation_state=None, operation_type=None, reason=None): - super(AcquisitionOperation, self).__init__() - self.operation_state = operation_state - self.operation_type = operation_type - self.reason = reason diff --git a/vsts/vsts/gallery/v4_0/models/acquisition_options.py b/vsts/vsts/gallery/v4_0/models/acquisition_options.py deleted file mode 100644 index e3af2e91..00000000 --- a/vsts/vsts/gallery/v4_0/models/acquisition_options.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOptions(Model): - """AcquisitionOptions. - - :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` - :param item_id: The item id that this options refer to - :type item_id: str - :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` - :param target: The target that this options refer to - :type target: str - """ - - _attribute_map = { - 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, default_operation=None, item_id=None, operations=None, target=None): - super(AcquisitionOptions, self).__init__() - self.default_operation = default_operation - self.item_id = item_id - self.operations = operations - self.target = target diff --git a/vsts/vsts/gallery/v4_0/models/answers.py b/vsts/vsts/gallery/v4_0/models/answers.py deleted file mode 100644 index 0f9a70e0..00000000 --- a/vsts/vsts/gallery/v4_0/models/answers.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Answers(Model): - """Answers. - - :param vSMarketplace_extension_name: Gets or sets the vs marketplace extension name - :type vSMarketplace_extension_name: str - :param vSMarketplace_publisher_name: Gets or sets the vs marketplace publsiher name - :type vSMarketplace_publisher_name: str - """ - - _attribute_map = { - 'vSMarketplace_extension_name': {'key': 'vSMarketplaceExtensionName', 'type': 'str'}, - 'vSMarketplace_publisher_name': {'key': 'vSMarketplacePublisherName', 'type': 'str'} - } - - def __init__(self, vSMarketplace_extension_name=None, vSMarketplace_publisher_name=None): - super(Answers, self).__init__() - self.vSMarketplace_extension_name = vSMarketplace_extension_name - self.vSMarketplace_publisher_name = vSMarketplace_publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/asset_details.py b/vsts/vsts/gallery/v4_0/models/asset_details.py deleted file mode 100644 index 7117e138..00000000 --- a/vsts/vsts/gallery/v4_0/models/asset_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AssetDetails(Model): - """AssetDetails. - - :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` - :param publisher_natural_identifier: Gets or sets the VS publisher Id - :type publisher_natural_identifier: str - """ - - _attribute_map = { - 'answers': {'key': 'answers', 'type': 'Answers'}, - 'publisher_natural_identifier': {'key': 'publisherNaturalIdentifier', 'type': 'str'} - } - - def __init__(self, answers=None, publisher_natural_identifier=None): - super(AssetDetails, self).__init__() - self.answers = answers - self.publisher_natural_identifier = publisher_natural_identifier diff --git a/vsts/vsts/gallery/v4_0/models/azure_publisher.py b/vsts/vsts/gallery/v4_0/models/azure_publisher.py deleted file mode 100644 index 26b6240c..00000000 --- a/vsts/vsts/gallery/v4_0/models/azure_publisher.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzurePublisher(Model): - """AzurePublisher. - - :param azure_publisher_id: - :type azure_publisher_id: str - :param publisher_name: - :type publisher_name: str - """ - - _attribute_map = { - 'azure_publisher_id': {'key': 'azurePublisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, azure_publisher_id=None, publisher_name=None): - super(AzurePublisher, self).__init__() - self.azure_publisher_id = azure_publisher_id - self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py b/vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py deleted file mode 100644 index f0b8a542..00000000 --- a/vsts/vsts/gallery/v4_0/models/azure_rest_api_request_model.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzureRestApiRequestModel(Model): - """AzureRestApiRequestModel. - - :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` - :param asset_id: Gets or sets the asset id - :type asset_id: str - :param asset_version: Gets or sets the asset version - :type asset_version: long - :param customer_support_email: Gets or sets the customer support email - :type customer_support_email: str - :param integration_contact_email: Gets or sets the integration contact email - :type integration_contact_email: str - :param operation: Gets or sets the asset version - :type operation: str - :param plan_id: Gets or sets the plan identifier if any. - :type plan_id: str - :param publisher_id: Gets or sets the publisher id - :type publisher_id: str - :param type: Gets or sets the resource type - :type type: str - """ - - _attribute_map = { - 'asset_details': {'key': 'assetDetails', 'type': 'AssetDetails'}, - 'asset_id': {'key': 'assetId', 'type': 'str'}, - 'asset_version': {'key': 'assetVersion', 'type': 'long'}, - 'customer_support_email': {'key': 'customerSupportEmail', 'type': 'str'}, - 'integration_contact_email': {'key': 'integrationContactEmail', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, asset_details=None, asset_id=None, asset_version=None, customer_support_email=None, integration_contact_email=None, operation=None, plan_id=None, publisher_id=None, type=None): - super(AzureRestApiRequestModel, self).__init__() - self.asset_details = asset_details - self.asset_id = asset_id - self.asset_version = asset_version - self.customer_support_email = customer_support_email - self.integration_contact_email = integration_contact_email - self.operation = operation - self.plan_id = plan_id - self.publisher_id = publisher_id - self.type = type diff --git a/vsts/vsts/gallery/v4_0/models/categories_result.py b/vsts/vsts/gallery/v4_0/models/categories_result.py deleted file mode 100644 index 0d861115..00000000 --- a/vsts/vsts/gallery/v4_0/models/categories_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CategoriesResult(Model): - """CategoriesResult. - - :param categories: - :type categories: list of :class:`ExtensionCategory ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[ExtensionCategory]'} - } - - def __init__(self, categories=None): - super(CategoriesResult, self).__init__() - self.categories = categories diff --git a/vsts/vsts/gallery/v4_0/models/category_language_title.py b/vsts/vsts/gallery/v4_0/models/category_language_title.py deleted file mode 100644 index af873077..00000000 --- a/vsts/vsts/gallery/v4_0/models/category_language_title.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CategoryLanguageTitle(Model): - """CategoryLanguageTitle. - - :param lang: The language for which the title is applicable - :type lang: str - :param lcid: The language culture id of the lang parameter - :type lcid: int - :param title: Actual title to be shown on the UI - :type title: str - """ - - _attribute_map = { - 'lang': {'key': 'lang', 'type': 'str'}, - 'lcid': {'key': 'lcid', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, lang=None, lcid=None, title=None): - super(CategoryLanguageTitle, self).__init__() - self.lang = lang - self.lcid = lcid - self.title = title diff --git a/vsts/vsts/gallery/v4_0/models/concern.py b/vsts/vsts/gallery/v4_0/models/concern.py deleted file mode 100644 index ebab8a2a..00000000 --- a/vsts/vsts/gallery/v4_0/models/concern.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .qn_aItem import QnAItem - - -class Concern(QnAItem): - """Concern. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - :param category: Category of the concern - :type category: object - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'}, - 'category': {'key': 'category', 'type': 'object'} - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, category=None): - super(Concern, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) - self.category = category diff --git a/vsts/vsts/gallery/v4_0/models/event_counts.py b/vsts/vsts/gallery/v4_0/models/event_counts.py deleted file mode 100644 index 8955ef7d..00000000 --- a/vsts/vsts/gallery/v4_0/models/event_counts.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventCounts(Model): - """EventCounts. - - :param average_rating: Average rating on the day for extension - :type average_rating: int - :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) - :type buy_count: int - :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) - :type connected_buy_count: int - :param connected_install_count: Number of times the extension was installed in connected scenario (applies only to VSTS extensions) - :type connected_install_count: int - :param install_count: Number of times the extension was installed - :type install_count: long - :param try_count: Number of times the extension was installed as a trial (applies only to VSTS extensions) - :type try_count: int - :param uninstall_count: Number of times the extension was uninstalled (applies only to VSTS extensions) - :type uninstall_count: int - :param web_download_count: Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs) - :type web_download_count: long - :param web_page_views: Number of detail page views - :type web_page_views: long - """ - - _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'int'}, - 'buy_count': {'key': 'buyCount', 'type': 'int'}, - 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, - 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, - 'install_count': {'key': 'installCount', 'type': 'long'}, - 'try_count': {'key': 'tryCount', 'type': 'int'}, - 'uninstall_count': {'key': 'uninstallCount', 'type': 'int'}, - 'web_download_count': {'key': 'webDownloadCount', 'type': 'long'}, - 'web_page_views': {'key': 'webPageViews', 'type': 'long'} - } - - def __init__(self, average_rating=None, buy_count=None, connected_buy_count=None, connected_install_count=None, install_count=None, try_count=None, uninstall_count=None, web_download_count=None, web_page_views=None): - super(EventCounts, self).__init__() - self.average_rating = average_rating - self.buy_count = buy_count - self.connected_buy_count = connected_buy_count - self.connected_install_count = connected_install_count - self.install_count = install_count - self.try_count = try_count - self.uninstall_count = uninstall_count - self.web_download_count = web_download_count - self.web_page_views = web_page_views diff --git a/vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py b/vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py deleted file mode 100644 index 593b33e0..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_acquisition_request.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAcquisitionRequest(Model): - """ExtensionAcquisitionRequest. - - :param assignment_type: How the item is being assigned - :type assignment_type: object - :param billing_id: The id of the subscription used for purchase - :type billing_id: str - :param item_id: The marketplace id (publisherName.extensionName) for the item - :type item_id: str - :param operation_type: The type of operation, such as install, request, purchase - :type operation_type: object - :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` - :param quantity: How many licenses should be purchased - :type quantity: int - :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id - :type targets: list of str - """ - - _attribute_map = { - 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, - 'billing_id': {'key': 'billingId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'quantity': {'key': 'quantity', 'type': 'int'}, - 'targets': {'key': 'targets', 'type': '[str]'} - } - - def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None, targets=None): - super(ExtensionAcquisitionRequest, self).__init__() - self.assignment_type = assignment_type - self.billing_id = billing_id - self.item_id = item_id - self.operation_type = operation_type - self.properties = properties - self.quantity = quantity - self.targets = targets diff --git a/vsts/vsts/gallery/v4_0/models/extension_badge.py b/vsts/vsts/gallery/v4_0/models/extension_badge.py deleted file mode 100644 index bcb0fa1c..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_badge.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionBadge(Model): - """ExtensionBadge. - - :param description: - :type description: str - :param img_uri: - :type img_uri: str - :param link: - :type link: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'img_uri': {'key': 'imgUri', 'type': 'str'}, - 'link': {'key': 'link', 'type': 'str'} - } - - def __init__(self, description=None, img_uri=None, link=None): - super(ExtensionBadge, self).__init__() - self.description = description - self.img_uri = img_uri - self.link = link diff --git a/vsts/vsts/gallery/v4_0/models/extension_category.py b/vsts/vsts/gallery/v4_0/models/extension_category.py deleted file mode 100644 index 6fda47d4..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_category.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionCategory(Model): - """ExtensionCategory. - - :param associated_products: The name of the products with which this category is associated to. - :type associated_products: list of str - :param category_id: - :type category_id: int - :param category_name: This is the internal name for a category - :type category_name: str - :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles - :type language: str - :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` - :param parent_category_name: This is the internal name of the parent if this is associated with a parent - :type parent_category_name: str - """ - - _attribute_map = { - 'associated_products': {'key': 'associatedProducts', 'type': '[str]'}, - 'category_id': {'key': 'categoryId', 'type': 'int'}, - 'category_name': {'key': 'categoryName', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'language_titles': {'key': 'languageTitles', 'type': '[CategoryLanguageTitle]'}, - 'parent_category_name': {'key': 'parentCategoryName', 'type': 'str'} - } - - def __init__(self, associated_products=None, category_id=None, category_name=None, language=None, language_titles=None, parent_category_name=None): - super(ExtensionCategory, self).__init__() - self.associated_products = associated_products - self.category_id = category_id - self.category_name = category_name - self.language = language - self.language_titles = language_titles - self.parent_category_name = parent_category_name diff --git a/vsts/vsts/gallery/v4_0/models/extension_daily_stat.py b/vsts/vsts/gallery/v4_0/models/extension_daily_stat.py deleted file mode 100644 index cda19c87..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_daily_stat.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDailyStat(Model): - """ExtensionDailyStat. - - :param counts: Stores the event counts - :type counts: :class:`EventCounts ` - :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. - :type extended_stats: dict - :param statistic_date: Timestamp of this data point - :type statistic_date: datetime - :param version: Version of the extension - :type version: str - """ - - _attribute_map = { - 'counts': {'key': 'counts', 'type': 'EventCounts'}, - 'extended_stats': {'key': 'extendedStats', 'type': '{object}'}, - 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, counts=None, extended_stats=None, statistic_date=None, version=None): - super(ExtensionDailyStat, self).__init__() - self.counts = counts - self.extended_stats = extended_stats - self.statistic_date = statistic_date - self.version = version diff --git a/vsts/vsts/gallery/v4_0/models/extension_daily_stats.py b/vsts/vsts/gallery/v4_0/models/extension_daily_stats.py deleted file mode 100644 index 4d654b65..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_daily_stats.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDailyStats(Model): - """ExtensionDailyStats. - - :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` - :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. - :type extension_id: str - :param extension_name: Name of the extension - :type extension_name: str - :param publisher_name: Name of the publisher - :type publisher_name: str - :param stat_count: Count of stats - :type stat_count: int - """ - - _attribute_map = { - 'daily_stats': {'key': 'dailyStats', 'type': '[ExtensionDailyStat]'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'stat_count': {'key': 'statCount', 'type': 'int'} - } - - def __init__(self, daily_stats=None, extension_id=None, extension_name=None, publisher_name=None, stat_count=None): - super(ExtensionDailyStats, self).__init__() - self.daily_stats = daily_stats - self.extension_id = extension_id - self.extension_name = extension_name - self.publisher_name = publisher_name - self.stat_count = stat_count diff --git a/vsts/vsts/gallery/v4_0/models/extension_event.py b/vsts/vsts/gallery/v4_0/models/extension_event.py deleted file mode 100644 index be955bb4..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_event.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEvent(Model): - """ExtensionEvent. - - :param id: Id which identifies each data point uniquely - :type id: long - :param properties: - :type properties: :class:`object ` - :param statistic_date: Timestamp of when the event occurred - :type statistic_date: datetime - :param version: Version of the extension - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'long'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, properties=None, statistic_date=None, version=None): - super(ExtensionEvent, self).__init__() - self.id = id - self.properties = properties - self.statistic_date = statistic_date - self.version = version diff --git a/vsts/vsts/gallery/v4_0/models/extension_events.py b/vsts/vsts/gallery/v4_0/models/extension_events.py deleted file mode 100644 index e63f0c32..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_events.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEvents(Model): - """ExtensionEvents. - - :param events: Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event - :type events: dict - :param extension_id: Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go. - :type extension_id: str - :param extension_name: Name of the extension - :type extension_name: str - :param publisher_name: Name of the publisher - :type publisher_name: str - """ - - _attribute_map = { - 'events': {'key': 'events', 'type': '{[ExtensionEvent]}'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, events=None, extension_id=None, extension_name=None, publisher_name=None): - super(ExtensionEvents, self).__init__() - self.events = events - self.extension_id = extension_id - self.extension_name = extension_name - self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/extension_file.py b/vsts/vsts/gallery/v4_0/models/extension_file.py deleted file mode 100644 index 1b505e97..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_file.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFile(Model): - """ExtensionFile. - - :param asset_type: - :type asset_type: str - :param language: - :type language: str - :param source: - :type source: str - """ - - _attribute_map = { - 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'} - } - - def __init__(self, asset_type=None, language=None, source=None): - super(ExtensionFile, self).__init__() - self.asset_type = asset_type - self.language = language - self.source = source diff --git a/vsts/vsts/gallery/v4_0/models/extension_filter_result.py b/vsts/vsts/gallery/v4_0/models/extension_filter_result.py deleted file mode 100644 index 02bbaea8..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_filter_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFilterResult(Model): - """ExtensionFilterResult. - - :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` - :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. - :type paging_token: str - :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, - 'paging_token': {'key': 'pagingToken', 'type': 'str'}, - 'result_metadata': {'key': 'resultMetadata', 'type': '[ExtensionFilterResultMetadata]'} - } - - def __init__(self, extensions=None, paging_token=None, result_metadata=None): - super(ExtensionFilterResult, self).__init__() - self.extensions = extensions - self.paging_token = paging_token - self.result_metadata = result_metadata diff --git a/vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py b/vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py deleted file mode 100644 index 9ef9cfa9..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_filter_result_metadata.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFilterResultMetadata(Model): - """ExtensionFilterResultMetadata. - - :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` - :param metadata_type: Defines the category of metadata items - :type metadata_type: str - """ - - _attribute_map = { - 'metadata_items': {'key': 'metadataItems', 'type': '[MetadataItem]'}, - 'metadata_type': {'key': 'metadataType', 'type': 'str'} - } - - def __init__(self, metadata_items=None, metadata_type=None): - super(ExtensionFilterResultMetadata, self).__init__() - self.metadata_items = metadata_items - self.metadata_type = metadata_type diff --git a/vsts/vsts/gallery/v4_0/models/extension_package.py b/vsts/vsts/gallery/v4_0/models/extension_package.py deleted file mode 100644 index 384cdb0a..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_package.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionPackage(Model): - """ExtensionPackage. - - :param extension_manifest: Base 64 encoded extension package - :type extension_manifest: str - """ - - _attribute_map = { - 'extension_manifest': {'key': 'extensionManifest', 'type': 'str'} - } - - def __init__(self, extension_manifest=None): - super(ExtensionPackage, self).__init__() - self.extension_manifest = extension_manifest diff --git a/vsts/vsts/gallery/v4_0/models/extension_query.py b/vsts/vsts/gallery/v4_0/models/extension_query.py deleted file mode 100644 index cb319743..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionQuery(Model): - """ExtensionQuery. - - :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. - :type asset_types: list of str - :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` - :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. - :type flags: object - """ - - _attribute_map = { - 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, - 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, - 'flags': {'key': 'flags', 'type': 'object'} - } - - def __init__(self, asset_types=None, filters=None, flags=None): - super(ExtensionQuery, self).__init__() - self.asset_types = asset_types - self.filters = filters - self.flags = flags diff --git a/vsts/vsts/gallery/v4_0/models/extension_query_result.py b/vsts/vsts/gallery/v4_0/models/extension_query_result.py deleted file mode 100644 index 424cec9c..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionQueryResult(Model): - """ExtensionQueryResult. - - :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[ExtensionFilterResult]'} - } - - def __init__(self, results=None): - super(ExtensionQueryResult, self).__init__() - self.results = results diff --git a/vsts/vsts/gallery/v4_0/models/extension_share.py b/vsts/vsts/gallery/v4_0/models/extension_share.py deleted file mode 100644 index acc81ef0..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_share.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionShare(Model): - """ExtensionShare. - - :param id: - :type id: str - :param name: - :type name: str - :param type: - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, id=None, name=None, type=None): - super(ExtensionShare, self).__init__() - self.id = id - self.name = name - self.type = type diff --git a/vsts/vsts/gallery/v4_0/models/extension_statistic.py b/vsts/vsts/gallery/v4_0/models/extension_statistic.py deleted file mode 100644 index 3929b9e6..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_statistic.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionStatistic(Model): - """ExtensionStatistic. - - :param statistic_name: - :type statistic_name: str - :param value: - :type value: float - """ - - _attribute_map = { - 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'float'} - } - - def __init__(self, statistic_name=None, value=None): - super(ExtensionStatistic, self).__init__() - self.statistic_name = statistic_name - self.value = value diff --git a/vsts/vsts/gallery/v4_0/models/extension_statistic_update.py b/vsts/vsts/gallery/v4_0/models/extension_statistic_update.py deleted file mode 100644 index 3152877e..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_statistic_update.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionStatisticUpdate(Model): - """ExtensionStatisticUpdate. - - :param extension_name: - :type extension_name: str - :param operation: - :type operation: object - :param publisher_name: - :type publisher_name: str - :param statistic: - :type statistic: :class:`ExtensionStatistic ` - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'statistic': {'key': 'statistic', 'type': 'ExtensionStatistic'} - } - - def __init__(self, extension_name=None, operation=None, publisher_name=None, statistic=None): - super(ExtensionStatisticUpdate, self).__init__() - self.extension_name = extension_name - self.operation = operation - self.publisher_name = publisher_name - self.statistic = statistic diff --git a/vsts/vsts/gallery/v4_0/models/extension_version.py b/vsts/vsts/gallery/v4_0/models/extension_version.py deleted file mode 100644 index aa660e03..00000000 --- a/vsts/vsts/gallery/v4_0/models/extension_version.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionVersion(Model): - """ExtensionVersion. - - :param asset_uri: - :type asset_uri: str - :param badges: - :type badges: list of :class:`ExtensionBadge ` - :param fallback_asset_uri: - :type fallback_asset_uri: str - :param files: - :type files: list of :class:`ExtensionFile ` - :param flags: - :type flags: object - :param last_updated: - :type last_updated: datetime - :param properties: - :type properties: list of { key: str; value: str } - :param validation_result_message: - :type validation_result_message: str - :param version: - :type version: str - :param version_description: - :type version_description: str - """ - - _attribute_map = { - 'asset_uri': {'key': 'assetUri', 'type': 'str'}, - 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, - 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, - 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_description': {'key': 'versionDescription', 'type': 'str'} - } - - def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): - super(ExtensionVersion, self).__init__() - self.asset_uri = asset_uri - self.badges = badges - self.fallback_asset_uri = fallback_asset_uri - self.files = files - self.flags = flags - self.last_updated = last_updated - self.properties = properties - self.validation_result_message = validation_result_message - self.version = version - self.version_description = version_description diff --git a/vsts/vsts/gallery/v4_0/models/filter_criteria.py b/vsts/vsts/gallery/v4_0/models/filter_criteria.py deleted file mode 100644 index 7002c78e..00000000 --- a/vsts/vsts/gallery/v4_0/models/filter_criteria.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FilterCriteria(Model): - """FilterCriteria. - - :param filter_type: - :type filter_type: int - :param value: The value used in the match based on the filter type. - :type value: str - """ - - _attribute_map = { - 'filter_type': {'key': 'filterType', 'type': 'int'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, filter_type=None, value=None): - super(FilterCriteria, self).__init__() - self.filter_type = filter_type - self.value = value diff --git a/vsts/vsts/gallery/v4_0/models/installation_target.py b/vsts/vsts/gallery/v4_0/models/installation_target.py deleted file mode 100644 index 4d622d4a..00000000 --- a/vsts/vsts/gallery/v4_0/models/installation_target.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstallationTarget(Model): - """InstallationTarget. - - :param target: - :type target: str - :param target_version: - :type target_version: str - """ - - _attribute_map = { - 'target': {'key': 'target', 'type': 'str'}, - 'target_version': {'key': 'targetVersion', 'type': 'str'} - } - - def __init__(self, target=None, target_version=None): - super(InstallationTarget, self).__init__() - self.target = target - self.target_version = target_version diff --git a/vsts/vsts/gallery/v4_0/models/metadata_item.py b/vsts/vsts/gallery/v4_0/models/metadata_item.py deleted file mode 100644 index c2a8bd96..00000000 --- a/vsts/vsts/gallery/v4_0/models/metadata_item.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetadataItem(Model): - """MetadataItem. - - :param count: The count of the metadata item - :type count: int - :param name: The name of the metadata item - :type name: str - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, count=None, name=None): - super(MetadataItem, self).__init__() - self.count = count - self.name = name diff --git a/vsts/vsts/gallery/v4_0/models/notifications_data.py b/vsts/vsts/gallery/v4_0/models/notifications_data.py deleted file mode 100644 index 6decf547..00000000 --- a/vsts/vsts/gallery/v4_0/models/notifications_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationsData(Model): - """NotificationsData. - - :param data: Notification data needed - :type data: dict - :param identities: List of users who should get the notification - :type identities: dict - :param type: Type of Mail Notification.Can be Qna , review or CustomerContact - :type type: object - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'identities': {'key': 'identities', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, data=None, identities=None, type=None): - super(NotificationsData, self).__init__() - self.data = data - self.identities = identities - self.type = type diff --git a/vsts/vsts/gallery/v4_0/models/product_categories_result.py b/vsts/vsts/gallery/v4_0/models/product_categories_result.py deleted file mode 100644 index 2ea2955b..00000000 --- a/vsts/vsts/gallery/v4_0/models/product_categories_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProductCategoriesResult(Model): - """ProductCategoriesResult. - - :param categories: - :type categories: list of :class:`ProductCategory ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[ProductCategory]'} - } - - def __init__(self, categories=None): - super(ProductCategoriesResult, self).__init__() - self.categories = categories diff --git a/vsts/vsts/gallery/v4_0/models/product_category.py b/vsts/vsts/gallery/v4_0/models/product_category.py deleted file mode 100644 index 20083775..00000000 --- a/vsts/vsts/gallery/v4_0/models/product_category.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProductCategory(Model): - """ProductCategory. - - :param children: - :type children: list of :class:`ProductCategory ` - :param has_children: Indicator whether this is a leaf or there are children under this category - :type has_children: bool - :param id: Individual Guid of the Category - :type id: str - :param title: Category Title in the requested language - :type title: str - """ - - _attribute_map = { - 'children': {'key': 'children', 'type': '[ProductCategory]'}, - 'has_children': {'key': 'hasChildren', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, children=None, has_children=None, id=None, title=None): - super(ProductCategory, self).__init__() - self.children = children - self.has_children = has_children - self.id = id - self.title = title diff --git a/vsts/vsts/gallery/v4_0/models/published_extension.py b/vsts/vsts/gallery/v4_0/models/published_extension.py deleted file mode 100644 index 19e6caf1..00000000 --- a/vsts/vsts/gallery/v4_0/models/published_extension.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishedExtension(Model): - """PublishedExtension. - - :param categories: - :type categories: list of str - :param deployment_type: - :type deployment_type: object - :param display_name: - :type display_name: str - :param extension_id: - :type extension_id: str - :param extension_name: - :type extension_name: str - :param flags: - :type flags: object - :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` - :param last_updated: - :type last_updated: datetime - :param long_description: - :type long_description: str - :param published_date: Date on which the extension was first uploaded. - :type published_date: datetime - :param publisher: - :type publisher: :class:`PublisherFacts ` - :param release_date: Date on which the extension first went public. - :type release_date: datetime - :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` - :param short_description: - :type short_description: str - :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` - :param tags: - :type tags: list of str - :param versions: - :type versions: list of :class:`ExtensionVersion ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[str]'}, - 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'long_description': {'key': 'longDescription', 'type': 'str'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, - 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, - 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} - } - - def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): - super(PublishedExtension, self).__init__() - self.categories = categories - self.deployment_type = deployment_type - self.display_name = display_name - self.extension_id = extension_id - self.extension_name = extension_name - self.flags = flags - self.installation_targets = installation_targets - self.last_updated = last_updated - self.long_description = long_description - self.published_date = published_date - self.publisher = publisher - self.release_date = release_date - self.shared_with = shared_with - self.short_description = short_description - self.statistics = statistics - self.tags = tags - self.versions = versions diff --git a/vsts/vsts/gallery/v4_0/models/publisher.py b/vsts/vsts/gallery/v4_0/models/publisher.py deleted file mode 100644 index 6850a11a..00000000 --- a/vsts/vsts/gallery/v4_0/models/publisher.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Publisher(Model): - """Publisher. - - :param display_name: - :type display_name: str - :param email_address: - :type email_address: list of str - :param extensions: - :type extensions: list of :class:`PublishedExtension ` - :param flags: - :type flags: object - :param last_updated: - :type last_updated: datetime - :param long_description: - :type long_description: str - :param publisher_id: - :type publisher_id: str - :param publisher_name: - :type publisher_name: str - :param short_description: - :type short_description: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'email_address': {'key': 'emailAddress', 'type': '[str]'}, - 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'long_description': {'key': 'longDescription', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'} - } - - def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): - super(Publisher, self).__init__() - self.display_name = display_name - self.email_address = email_address - self.extensions = extensions - self.flags = flags - self.last_updated = last_updated - self.long_description = long_description - self.publisher_id = publisher_id - self.publisher_name = publisher_name - self.short_description = short_description diff --git a/vsts/vsts/gallery/v4_0/models/publisher_facts.py b/vsts/vsts/gallery/v4_0/models/publisher_facts.py deleted file mode 100644 index 979b6d8d..00000000 --- a/vsts/vsts/gallery/v4_0/models/publisher_facts.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherFacts(Model): - """PublisherFacts. - - :param display_name: - :type display_name: str - :param flags: - :type flags: object - :param publisher_id: - :type publisher_id: str - :param publisher_name: - :type publisher_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): - super(PublisherFacts, self).__init__() - self.display_name = display_name - self.flags = flags - self.publisher_id = publisher_id - self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_0/models/publisher_filter_result.py b/vsts/vsts/gallery/v4_0/models/publisher_filter_result.py deleted file mode 100644 index 3637cdff..00000000 --- a/vsts/vsts/gallery/v4_0/models/publisher_filter_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherFilterResult(Model): - """PublisherFilterResult. - - :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` - """ - - _attribute_map = { - 'publishers': {'key': 'publishers', 'type': '[Publisher]'} - } - - def __init__(self, publishers=None): - super(PublisherFilterResult, self).__init__() - self.publishers = publishers diff --git a/vsts/vsts/gallery/v4_0/models/publisher_query.py b/vsts/vsts/gallery/v4_0/models/publisher_query.py deleted file mode 100644 index 06b16a75..00000000 --- a/vsts/vsts/gallery/v4_0/models/publisher_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherQuery(Model): - """PublisherQuery. - - :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` - :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. - :type flags: object - """ - - _attribute_map = { - 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, - 'flags': {'key': 'flags', 'type': 'object'} - } - - def __init__(self, filters=None, flags=None): - super(PublisherQuery, self).__init__() - self.filters = filters - self.flags = flags diff --git a/vsts/vsts/gallery/v4_0/models/publisher_query_result.py b/vsts/vsts/gallery/v4_0/models/publisher_query_result.py deleted file mode 100644 index 345da4e3..00000000 --- a/vsts/vsts/gallery/v4_0/models/publisher_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherQueryResult(Model): - """PublisherQueryResult. - - :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[PublisherFilterResult]'} - } - - def __init__(self, results=None): - super(PublisherQueryResult, self).__init__() - self.results = results diff --git a/vsts/vsts/gallery/v4_0/models/qn_aItem.py b/vsts/vsts/gallery/v4_0/models/qn_aItem.py deleted file mode 100644 index 4b081f4b..00000000 --- a/vsts/vsts/gallery/v4_0/models/qn_aItem.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QnAItem(Model): - """QnAItem. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'} - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): - super(QnAItem, self).__init__() - self.created_date = created_date - self.id = id - self.status = status - self.text = text - self.updated_date = updated_date - self.user = user diff --git a/vsts/vsts/gallery/v4_0/models/query_filter.py b/vsts/vsts/gallery/v4_0/models/query_filter.py deleted file mode 100644 index df36e671..00000000 --- a/vsts/vsts/gallery/v4_0/models/query_filter.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueryFilter(Model): - """QueryFilter. - - :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` - :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. - :type direction: object - :param page_number: The page number requested by the user. If not provided 1 is assumed by default. - :type page_number: int - :param page_size: The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits. - :type page_size: int - :param paging_token: The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embeded in the token. - :type paging_token: str - :param sort_by: Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only. - :type sort_by: int - :param sort_order: Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value - :type sort_order: int - """ - - _attribute_map = { - 'criteria': {'key': 'criteria', 'type': '[FilterCriteria]'}, - 'direction': {'key': 'direction', 'type': 'object'}, - 'page_number': {'key': 'pageNumber', 'type': 'int'}, - 'page_size': {'key': 'pageSize', 'type': 'int'}, - 'paging_token': {'key': 'pagingToken', 'type': 'str'}, - 'sort_by': {'key': 'sortBy', 'type': 'int'}, - 'sort_order': {'key': 'sortOrder', 'type': 'int'} - } - - def __init__(self, criteria=None, direction=None, page_number=None, page_size=None, paging_token=None, sort_by=None, sort_order=None): - super(QueryFilter, self).__init__() - self.criteria = criteria - self.direction = direction - self.page_number = page_number - self.page_size = page_size - self.paging_token = paging_token - self.sort_by = sort_by - self.sort_order = sort_order diff --git a/vsts/vsts/gallery/v4_0/models/question.py b/vsts/vsts/gallery/v4_0/models/question.py deleted file mode 100644 index e81fbbb9..00000000 --- a/vsts/vsts/gallery/v4_0/models/question.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .qn_aItem import QnAItem - - -class Question(QnAItem): - """Question. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'}, - 'responses': {'key': 'responses', 'type': '[Response]'} - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, responses=None): - super(Question, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) - self.responses = responses diff --git a/vsts/vsts/gallery/v4_0/models/questions_result.py b/vsts/vsts/gallery/v4_0/models/questions_result.py deleted file mode 100644 index fb12ed60..00000000 --- a/vsts/vsts/gallery/v4_0/models/questions_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QuestionsResult(Model): - """QuestionsResult. - - :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) - :type has_more_questions: bool - :param questions: List of the QnA threads - :type questions: list of :class:`Question ` - """ - - _attribute_map = { - 'has_more_questions': {'key': 'hasMoreQuestions', 'type': 'bool'}, - 'questions': {'key': 'questions', 'type': '[Question]'} - } - - def __init__(self, has_more_questions=None, questions=None): - super(QuestionsResult, self).__init__() - self.has_more_questions = has_more_questions - self.questions = questions diff --git a/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py deleted file mode 100644 index 6d6cd4b9..00000000 --- a/vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RatingCountPerRating(Model): - """RatingCountPerRating. - - :param rating: Rating value - :type rating: str - :param rating_count: Count of total ratings - :type rating_count: long - """ - - _attribute_map = { - 'rating': {'key': 'rating', 'type': 'str'}, - 'rating_count': {'key': 'ratingCount', 'type': 'long'} - } - - def __init__(self, rating=None, rating_count=None): - super(RatingCountPerRating, self).__init__() - self.rating = rating - self.rating_count = rating_count diff --git a/vsts/vsts/gallery/v4_0/models/response.py b/vsts/vsts/gallery/v4_0/models/response.py deleted file mode 100644 index 627fba8d..00000000 --- a/vsts/vsts/gallery/v4_0/models/response.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .qn_aItem import QnAItem - - -class Response(QnAItem): - """Response. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'}, - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): - super(Response, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) diff --git a/vsts/vsts/gallery/v4_0/models/review.py b/vsts/vsts/gallery/v4_0/models/review.py deleted file mode 100644 index a38fda77..00000000 --- a/vsts/vsts/gallery/v4_0/models/review.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Review(Model): - """Review. - - :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` - :param id: Unique identifier of a review item - :type id: long - :param is_deleted: Flag for soft deletion - :type is_deleted: bool - :param is_ignored: - :type is_ignored: bool - :param product_version: Version of the product for which review was submitted - :type product_version: str - :param rating: Rating procided by the user - :type rating: str - :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` - :param text: Text description of the review - :type text: str - :param title: Title of the review - :type title: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user_display_name: Name of the user - :type user_display_name: str - :param user_id: Id of the user who submitted the review - :type user_id: str - """ - - _attribute_map = { - 'admin_reply': {'key': 'adminReply', 'type': 'ReviewReply'}, - 'id': {'key': 'id', 'type': 'long'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, - 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'rating': {'key': 'rating', 'type': 'str'}, - 'reply': {'key': 'reply', 'type': 'ReviewReply'}, - 'text': {'key': 'text', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user_display_name': {'key': 'userDisplayName', 'type': 'str'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, admin_reply=None, id=None, is_deleted=None, is_ignored=None, product_version=None, rating=None, reply=None, text=None, title=None, updated_date=None, user_display_name=None, user_id=None): - super(Review, self).__init__() - self.admin_reply = admin_reply - self.id = id - self.is_deleted = is_deleted - self.is_ignored = is_ignored - self.product_version = product_version - self.rating = rating - self.reply = reply - self.text = text - self.title = title - self.updated_date = updated_date - self.user_display_name = user_display_name - self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_0/models/review_patch.py b/vsts/vsts/gallery/v4_0/models/review_patch.py deleted file mode 100644 index 52e988fd..00000000 --- a/vsts/vsts/gallery/v4_0/models/review_patch.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewPatch(Model): - """ReviewPatch. - - :param operation: Denotes the patch operation type - :type operation: object - :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` - :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` - """ - - _attribute_map = { - 'operation': {'key': 'operation', 'type': 'object'}, - 'reported_concern': {'key': 'reportedConcern', 'type': 'UserReportedConcern'}, - 'review_item': {'key': 'reviewItem', 'type': 'Review'} - } - - def __init__(self, operation=None, reported_concern=None, review_item=None): - super(ReviewPatch, self).__init__() - self.operation = operation - self.reported_concern = reported_concern - self.review_item = review_item diff --git a/vsts/vsts/gallery/v4_0/models/review_reply.py b/vsts/vsts/gallery/v4_0/models/review_reply.py deleted file mode 100644 index bcf4f5a7..00000000 --- a/vsts/vsts/gallery/v4_0/models/review_reply.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewReply(Model): - """ReviewReply. - - :param id: Id of the reply - :type id: long - :param is_deleted: Flag for soft deletion - :type is_deleted: bool - :param product_version: Version of the product when the reply was submitted or updated - :type product_version: str - :param reply_text: Content of the reply - :type reply_text: str - :param review_id: Id of the review, to which this reply belongs - :type review_id: long - :param title: Title of the reply - :type title: str - :param updated_date: Date the reply was submitted or updated - :type updated_date: datetime - :param user_id: Id of the user who left the reply - :type user_id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'long'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'reply_text': {'key': 'replyText', 'type': 'str'}, - 'review_id': {'key': 'reviewId', 'type': 'long'}, - 'title': {'key': 'title', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, id=None, is_deleted=None, product_version=None, reply_text=None, review_id=None, title=None, updated_date=None, user_id=None): - super(ReviewReply, self).__init__() - self.id = id - self.is_deleted = is_deleted - self.product_version = product_version - self.reply_text = reply_text - self.review_id = review_id - self.title = title - self.updated_date = updated_date - self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_0/models/review_summary.py b/vsts/vsts/gallery/v4_0/models/review_summary.py deleted file mode 100644 index be100341..00000000 --- a/vsts/vsts/gallery/v4_0/models/review_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewSummary(Model): - """ReviewSummary. - - :param average_rating: Average Rating - :type average_rating: int - :param rating_count: Count of total ratings - :type rating_count: long - :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` - """ - - _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'int'}, - 'rating_count': {'key': 'ratingCount', 'type': 'long'}, - 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} - } - - def __init__(self, average_rating=None, rating_count=None, rating_split=None): - super(ReviewSummary, self).__init__() - self.average_rating = average_rating - self.rating_count = rating_count - self.rating_split = rating_split diff --git a/vsts/vsts/gallery/v4_0/models/reviews_result.py b/vsts/vsts/gallery/v4_0/models/reviews_result.py deleted file mode 100644 index 3d579678..00000000 --- a/vsts/vsts/gallery/v4_0/models/reviews_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewsResult(Model): - """ReviewsResult. - - :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) - :type has_more_reviews: bool - :param reviews: List of reviews - :type reviews: list of :class:`Review ` - :param total_review_count: Count of total review items - :type total_review_count: long - """ - - _attribute_map = { - 'has_more_reviews': {'key': 'hasMoreReviews', 'type': 'bool'}, - 'reviews': {'key': 'reviews', 'type': '[Review]'}, - 'total_review_count': {'key': 'totalReviewCount', 'type': 'long'} - } - - def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None): - super(ReviewsResult, self).__init__() - self.has_more_reviews = has_more_reviews - self.reviews = reviews - self.total_review_count = total_review_count diff --git a/vsts/vsts/gallery/v4_0/models/user_identity_ref.py b/vsts/vsts/gallery/v4_0/models/user_identity_ref.py deleted file mode 100644 index d70a734d..00000000 --- a/vsts/vsts/gallery/v4_0/models/user_identity_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserIdentityRef(Model): - """UserIdentityRef. - - :param display_name: User display name - :type display_name: str - :param id: User VSID - :type id: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None): - super(UserIdentityRef, self).__init__() - self.display_name = display_name - self.id = id diff --git a/vsts/vsts/gallery/v4_0/models/user_reported_concern.py b/vsts/vsts/gallery/v4_0/models/user_reported_concern.py deleted file mode 100644 index 739c0b76..00000000 --- a/vsts/vsts/gallery/v4_0/models/user_reported_concern.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserReportedConcern(Model): - """UserReportedConcern. - - :param category: Category of the concern - :type category: object - :param concern_text: User comment associated with the report - :type concern_text: str - :param review_id: Id of the review which was reported - :type review_id: long - :param submitted_date: Date the report was submitted - :type submitted_date: datetime - :param user_id: Id of the user who reported a review - :type user_id: str - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'object'}, - 'concern_text': {'key': 'concernText', 'type': 'str'}, - 'review_id': {'key': 'reviewId', 'type': 'long'}, - 'submitted_date': {'key': 'submittedDate', 'type': 'iso-8601'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, category=None, concern_text=None, review_id=None, submitted_date=None, user_id=None): - super(UserReportedConcern, self).__init__() - self.category = category - self.concern_text = concern_text - self.review_id = review_id - self.submitted_date = submitted_date - self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_1/__init__.py b/vsts/vsts/gallery/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/gallery/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/gallery/v4_1/models/__init__.py b/vsts/vsts/gallery/v4_1/models/__init__.py deleted file mode 100644 index 39d656a4..00000000 --- a/vsts/vsts/gallery/v4_1/models/__init__.py +++ /dev/null @@ -1,129 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .acquisition_operation import AcquisitionOperation -from .acquisition_options import AcquisitionOptions -from .answers import Answers -from .asset_details import AssetDetails -from .azure_publisher import AzurePublisher -from .azure_rest_api_request_model import AzureRestApiRequestModel -from .categories_result import CategoriesResult -from .category_language_title import CategoryLanguageTitle -from .concern import Concern -from .event_counts import EventCounts -from .extension_acquisition_request import ExtensionAcquisitionRequest -from .extension_badge import ExtensionBadge -from .extension_category import ExtensionCategory -from .extension_daily_stat import ExtensionDailyStat -from .extension_daily_stats import ExtensionDailyStats -from .extension_draft import ExtensionDraft -from .extension_draft_asset import ExtensionDraftAsset -from .extension_draft_patch import ExtensionDraftPatch -from .extension_event import ExtensionEvent -from .extension_events import ExtensionEvents -from .extension_file import ExtensionFile -from .extension_filter_result import ExtensionFilterResult -from .extension_filter_result_metadata import ExtensionFilterResultMetadata -from .extension_package import ExtensionPackage -from .extension_payload import ExtensionPayload -from .extension_query import ExtensionQuery -from .extension_query_result import ExtensionQueryResult -from .extension_share import ExtensionShare -from .extension_statistic import ExtensionStatistic -from .extension_statistic_update import ExtensionStatisticUpdate -from .extension_version import ExtensionVersion -from .filter_criteria import FilterCriteria -from .installation_target import InstallationTarget -from .metadata_item import MetadataItem -from .notifications_data import NotificationsData -from .product_categories_result import ProductCategoriesResult -from .product_category import ProductCategory -from .published_extension import PublishedExtension -from .publisher import Publisher -from .publisher_base import PublisherBase -from .publisher_facts import PublisherFacts -from .publisher_filter_result import PublisherFilterResult -from .publisher_query import PublisherQuery -from .publisher_query_result import PublisherQueryResult -from .qn_aItem import QnAItem -from .query_filter import QueryFilter -from .question import Question -from .questions_result import QuestionsResult -from .rating_count_per_rating import RatingCountPerRating -from .reference_links import ReferenceLinks -from .response import Response -from .review import Review -from .review_patch import ReviewPatch -from .review_reply import ReviewReply -from .reviews_result import ReviewsResult -from .review_summary import ReviewSummary -from .unpackaged_extension_data import UnpackagedExtensionData -from .user_identity_ref import UserIdentityRef -from .user_reported_concern import UserReportedConcern - -__all__ = [ - 'AcquisitionOperation', - 'AcquisitionOptions', - 'Answers', - 'AssetDetails', - 'AzurePublisher', - 'AzureRestApiRequestModel', - 'CategoriesResult', - 'CategoryLanguageTitle', - 'Concern', - 'EventCounts', - 'ExtensionAcquisitionRequest', - 'ExtensionBadge', - 'ExtensionCategory', - 'ExtensionDailyStat', - 'ExtensionDailyStats', - 'ExtensionDraft', - 'ExtensionDraftAsset', - 'ExtensionDraftPatch', - 'ExtensionEvent', - 'ExtensionEvents', - 'ExtensionFile', - 'ExtensionFilterResult', - 'ExtensionFilterResultMetadata', - 'ExtensionPackage', - 'ExtensionPayload', - 'ExtensionQuery', - 'ExtensionQueryResult', - 'ExtensionShare', - 'ExtensionStatistic', - 'ExtensionStatisticUpdate', - 'ExtensionVersion', - 'FilterCriteria', - 'InstallationTarget', - 'MetadataItem', - 'NotificationsData', - 'ProductCategoriesResult', - 'ProductCategory', - 'PublishedExtension', - 'Publisher', - 'PublisherBase', - 'PublisherFacts', - 'PublisherFilterResult', - 'PublisherQuery', - 'PublisherQueryResult', - 'QnAItem', - 'QueryFilter', - 'Question', - 'QuestionsResult', - 'RatingCountPerRating', - 'ReferenceLinks', - 'Response', - 'Review', - 'ReviewPatch', - 'ReviewReply', - 'ReviewsResult', - 'ReviewSummary', - 'UnpackagedExtensionData', - 'UserIdentityRef', - 'UserReportedConcern', -] diff --git a/vsts/vsts/gallery/v4_1/models/acquisition_operation.py b/vsts/vsts/gallery/v4_1/models/acquisition_operation.py deleted file mode 100644 index bd2e4ef2..00000000 --- a/vsts/vsts/gallery/v4_1/models/acquisition_operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOperation(Model): - """AcquisitionOperation. - - :param operation_state: State of the the AcquisitionOperation for the current user - :type operation_state: object - :param operation_type: AcquisitionOperationType: install, request, buy, etc... - :type operation_type: object - :param reason: Optional reason to justify current state. Typically used with Disallow state. - :type reason: str - """ - - _attribute_map = { - 'operation_state': {'key': 'operationState', 'type': 'object'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'str'} - } - - def __init__(self, operation_state=None, operation_type=None, reason=None): - super(AcquisitionOperation, self).__init__() - self.operation_state = operation_state - self.operation_type = operation_type - self.reason = reason diff --git a/vsts/vsts/gallery/v4_1/models/acquisition_options.py b/vsts/vsts/gallery/v4_1/models/acquisition_options.py deleted file mode 100644 index 4010a168..00000000 --- a/vsts/vsts/gallery/v4_1/models/acquisition_options.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AcquisitionOptions(Model): - """AcquisitionOptions. - - :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` - :param item_id: The item id that this options refer to - :type item_id: str - :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` - :param target: The target that this options refer to - :type target: str - """ - - _attribute_map = { - 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, default_operation=None, item_id=None, operations=None, target=None): - super(AcquisitionOptions, self).__init__() - self.default_operation = default_operation - self.item_id = item_id - self.operations = operations - self.target = target diff --git a/vsts/vsts/gallery/v4_1/models/answers.py b/vsts/vsts/gallery/v4_1/models/answers.py deleted file mode 100644 index 0f9a70e0..00000000 --- a/vsts/vsts/gallery/v4_1/models/answers.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Answers(Model): - """Answers. - - :param vSMarketplace_extension_name: Gets or sets the vs marketplace extension name - :type vSMarketplace_extension_name: str - :param vSMarketplace_publisher_name: Gets or sets the vs marketplace publsiher name - :type vSMarketplace_publisher_name: str - """ - - _attribute_map = { - 'vSMarketplace_extension_name': {'key': 'vSMarketplaceExtensionName', 'type': 'str'}, - 'vSMarketplace_publisher_name': {'key': 'vSMarketplacePublisherName', 'type': 'str'} - } - - def __init__(self, vSMarketplace_extension_name=None, vSMarketplace_publisher_name=None): - super(Answers, self).__init__() - self.vSMarketplace_extension_name = vSMarketplace_extension_name - self.vSMarketplace_publisher_name = vSMarketplace_publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/asset_details.py b/vsts/vsts/gallery/v4_1/models/asset_details.py deleted file mode 100644 index a6b0c8a9..00000000 --- a/vsts/vsts/gallery/v4_1/models/asset_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AssetDetails(Model): - """AssetDetails. - - :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` - :param publisher_natural_identifier: Gets or sets the VS publisher Id - :type publisher_natural_identifier: str - """ - - _attribute_map = { - 'answers': {'key': 'answers', 'type': 'Answers'}, - 'publisher_natural_identifier': {'key': 'publisherNaturalIdentifier', 'type': 'str'} - } - - def __init__(self, answers=None, publisher_natural_identifier=None): - super(AssetDetails, self).__init__() - self.answers = answers - self.publisher_natural_identifier = publisher_natural_identifier diff --git a/vsts/vsts/gallery/v4_1/models/azure_publisher.py b/vsts/vsts/gallery/v4_1/models/azure_publisher.py deleted file mode 100644 index 26b6240c..00000000 --- a/vsts/vsts/gallery/v4_1/models/azure_publisher.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzurePublisher(Model): - """AzurePublisher. - - :param azure_publisher_id: - :type azure_publisher_id: str - :param publisher_name: - :type publisher_name: str - """ - - _attribute_map = { - 'azure_publisher_id': {'key': 'azurePublisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, azure_publisher_id=None, publisher_name=None): - super(AzurePublisher, self).__init__() - self.azure_publisher_id = azure_publisher_id - self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py b/vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py deleted file mode 100644 index cde6c199..00000000 --- a/vsts/vsts/gallery/v4_1/models/azure_rest_api_request_model.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzureRestApiRequestModel(Model): - """AzureRestApiRequestModel. - - :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` - :param asset_id: Gets or sets the asset id - :type asset_id: str - :param asset_version: Gets or sets the asset version - :type asset_version: long - :param customer_support_email: Gets or sets the customer support email - :type customer_support_email: str - :param integration_contact_email: Gets or sets the integration contact email - :type integration_contact_email: str - :param operation: Gets or sets the asset version - :type operation: str - :param plan_id: Gets or sets the plan identifier if any. - :type plan_id: str - :param publisher_id: Gets or sets the publisher id - :type publisher_id: str - :param type: Gets or sets the resource type - :type type: str - """ - - _attribute_map = { - 'asset_details': {'key': 'assetDetails', 'type': 'AssetDetails'}, - 'asset_id': {'key': 'assetId', 'type': 'str'}, - 'asset_version': {'key': 'assetVersion', 'type': 'long'}, - 'customer_support_email': {'key': 'customerSupportEmail', 'type': 'str'}, - 'integration_contact_email': {'key': 'integrationContactEmail', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, asset_details=None, asset_id=None, asset_version=None, customer_support_email=None, integration_contact_email=None, operation=None, plan_id=None, publisher_id=None, type=None): - super(AzureRestApiRequestModel, self).__init__() - self.asset_details = asset_details - self.asset_id = asset_id - self.asset_version = asset_version - self.customer_support_email = customer_support_email - self.integration_contact_email = integration_contact_email - self.operation = operation - self.plan_id = plan_id - self.publisher_id = publisher_id - self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/categories_result.py b/vsts/vsts/gallery/v4_1/models/categories_result.py deleted file mode 100644 index 35d47965..00000000 --- a/vsts/vsts/gallery/v4_1/models/categories_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CategoriesResult(Model): - """CategoriesResult. - - :param categories: - :type categories: list of :class:`ExtensionCategory ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[ExtensionCategory]'} - } - - def __init__(self, categories=None): - super(CategoriesResult, self).__init__() - self.categories = categories diff --git a/vsts/vsts/gallery/v4_1/models/category_language_title.py b/vsts/vsts/gallery/v4_1/models/category_language_title.py deleted file mode 100644 index af873077..00000000 --- a/vsts/vsts/gallery/v4_1/models/category_language_title.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CategoryLanguageTitle(Model): - """CategoryLanguageTitle. - - :param lang: The language for which the title is applicable - :type lang: str - :param lcid: The language culture id of the lang parameter - :type lcid: int - :param title: Actual title to be shown on the UI - :type title: str - """ - - _attribute_map = { - 'lang': {'key': 'lang', 'type': 'str'}, - 'lcid': {'key': 'lcid', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, lang=None, lcid=None, title=None): - super(CategoryLanguageTitle, self).__init__() - self.lang = lang - self.lcid = lcid - self.title = title diff --git a/vsts/vsts/gallery/v4_1/models/concern.py b/vsts/vsts/gallery/v4_1/models/concern.py deleted file mode 100644 index e57c4a17..00000000 --- a/vsts/vsts/gallery/v4_1/models/concern.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .qn_aItem import QnAItem - - -class Concern(QnAItem): - """Concern. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - :param category: Category of the concern - :type category: object - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'}, - 'category': {'key': 'category', 'type': 'object'} - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, category=None): - super(Concern, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) - self.category = category diff --git a/vsts/vsts/gallery/v4_1/models/event_counts.py b/vsts/vsts/gallery/v4_1/models/event_counts.py deleted file mode 100644 index 8955ef7d..00000000 --- a/vsts/vsts/gallery/v4_1/models/event_counts.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventCounts(Model): - """EventCounts. - - :param average_rating: Average rating on the day for extension - :type average_rating: int - :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) - :type buy_count: int - :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) - :type connected_buy_count: int - :param connected_install_count: Number of times the extension was installed in connected scenario (applies only to VSTS extensions) - :type connected_install_count: int - :param install_count: Number of times the extension was installed - :type install_count: long - :param try_count: Number of times the extension was installed as a trial (applies only to VSTS extensions) - :type try_count: int - :param uninstall_count: Number of times the extension was uninstalled (applies only to VSTS extensions) - :type uninstall_count: int - :param web_download_count: Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs) - :type web_download_count: long - :param web_page_views: Number of detail page views - :type web_page_views: long - """ - - _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'int'}, - 'buy_count': {'key': 'buyCount', 'type': 'int'}, - 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, - 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, - 'install_count': {'key': 'installCount', 'type': 'long'}, - 'try_count': {'key': 'tryCount', 'type': 'int'}, - 'uninstall_count': {'key': 'uninstallCount', 'type': 'int'}, - 'web_download_count': {'key': 'webDownloadCount', 'type': 'long'}, - 'web_page_views': {'key': 'webPageViews', 'type': 'long'} - } - - def __init__(self, average_rating=None, buy_count=None, connected_buy_count=None, connected_install_count=None, install_count=None, try_count=None, uninstall_count=None, web_download_count=None, web_page_views=None): - super(EventCounts, self).__init__() - self.average_rating = average_rating - self.buy_count = buy_count - self.connected_buy_count = connected_buy_count - self.connected_install_count = connected_install_count - self.install_count = install_count - self.try_count = try_count - self.uninstall_count = uninstall_count - self.web_download_count = web_download_count - self.web_page_views = web_page_views diff --git a/vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py b/vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py deleted file mode 100644 index f5faa45c..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_acquisition_request.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAcquisitionRequest(Model): - """ExtensionAcquisitionRequest. - - :param assignment_type: How the item is being assigned - :type assignment_type: object - :param billing_id: The id of the subscription used for purchase - :type billing_id: str - :param item_id: The marketplace id (publisherName.extensionName) for the item - :type item_id: str - :param operation_type: The type of operation, such as install, request, purchase - :type operation_type: object - :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` - :param quantity: How many licenses should be purchased - :type quantity: int - :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id - :type targets: list of str - """ - - _attribute_map = { - 'assignment_type': {'key': 'assignmentType', 'type': 'object'}, - 'billing_id': {'key': 'billingId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'object'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'quantity': {'key': 'quantity', 'type': 'int'}, - 'targets': {'key': 'targets', 'type': '[str]'} - } - - def __init__(self, assignment_type=None, billing_id=None, item_id=None, operation_type=None, properties=None, quantity=None, targets=None): - super(ExtensionAcquisitionRequest, self).__init__() - self.assignment_type = assignment_type - self.billing_id = billing_id - self.item_id = item_id - self.operation_type = operation_type - self.properties = properties - self.quantity = quantity - self.targets = targets diff --git a/vsts/vsts/gallery/v4_1/models/extension_badge.py b/vsts/vsts/gallery/v4_1/models/extension_badge.py deleted file mode 100644 index bcb0fa1c..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_badge.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionBadge(Model): - """ExtensionBadge. - - :param description: - :type description: str - :param img_uri: - :type img_uri: str - :param link: - :type link: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'img_uri': {'key': 'imgUri', 'type': 'str'}, - 'link': {'key': 'link', 'type': 'str'} - } - - def __init__(self, description=None, img_uri=None, link=None): - super(ExtensionBadge, self).__init__() - self.description = description - self.img_uri = img_uri - self.link = link diff --git a/vsts/vsts/gallery/v4_1/models/extension_category.py b/vsts/vsts/gallery/v4_1/models/extension_category.py deleted file mode 100644 index f95a77e2..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_category.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionCategory(Model): - """ExtensionCategory. - - :param associated_products: The name of the products with which this category is associated to. - :type associated_products: list of str - :param category_id: - :type category_id: int - :param category_name: This is the internal name for a category - :type category_name: str - :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles - :type language: str - :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` - :param parent_category_name: This is the internal name of the parent if this is associated with a parent - :type parent_category_name: str - """ - - _attribute_map = { - 'associated_products': {'key': 'associatedProducts', 'type': '[str]'}, - 'category_id': {'key': 'categoryId', 'type': 'int'}, - 'category_name': {'key': 'categoryName', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'language_titles': {'key': 'languageTitles', 'type': '[CategoryLanguageTitle]'}, - 'parent_category_name': {'key': 'parentCategoryName', 'type': 'str'} - } - - def __init__(self, associated_products=None, category_id=None, category_name=None, language=None, language_titles=None, parent_category_name=None): - super(ExtensionCategory, self).__init__() - self.associated_products = associated_products - self.category_id = category_id - self.category_name = category_name - self.language = language - self.language_titles = language_titles - self.parent_category_name = parent_category_name diff --git a/vsts/vsts/gallery/v4_1/models/extension_daily_stat.py b/vsts/vsts/gallery/v4_1/models/extension_daily_stat.py deleted file mode 100644 index 97d2d15e..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_daily_stat.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDailyStat(Model): - """ExtensionDailyStat. - - :param counts: Stores the event counts - :type counts: :class:`EventCounts ` - :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. - :type extended_stats: dict - :param statistic_date: Timestamp of this data point - :type statistic_date: datetime - :param version: Version of the extension - :type version: str - """ - - _attribute_map = { - 'counts': {'key': 'counts', 'type': 'EventCounts'}, - 'extended_stats': {'key': 'extendedStats', 'type': '{object}'}, - 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, counts=None, extended_stats=None, statistic_date=None, version=None): - super(ExtensionDailyStat, self).__init__() - self.counts = counts - self.extended_stats = extended_stats - self.statistic_date = statistic_date - self.version = version diff --git a/vsts/vsts/gallery/v4_1/models/extension_daily_stats.py b/vsts/vsts/gallery/v4_1/models/extension_daily_stats.py deleted file mode 100644 index 068a7efa..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_daily_stats.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDailyStats(Model): - """ExtensionDailyStats. - - :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` - :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. - :type extension_id: str - :param extension_name: Name of the extension - :type extension_name: str - :param publisher_name: Name of the publisher - :type publisher_name: str - :param stat_count: Count of stats - :type stat_count: int - """ - - _attribute_map = { - 'daily_stats': {'key': 'dailyStats', 'type': '[ExtensionDailyStat]'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'stat_count': {'key': 'statCount', 'type': 'int'} - } - - def __init__(self, daily_stats=None, extension_id=None, extension_name=None, publisher_name=None, stat_count=None): - super(ExtensionDailyStats, self).__init__() - self.daily_stats = daily_stats - self.extension_id = extension_id - self.extension_name = extension_name - self.publisher_name = publisher_name - self.stat_count = stat_count diff --git a/vsts/vsts/gallery/v4_1/models/extension_draft.py b/vsts/vsts/gallery/v4_1/models/extension_draft.py deleted file mode 100644 index b7618003..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_draft.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDraft(Model): - """ExtensionDraft. - - :param assets: - :type assets: list of :class:`ExtensionDraftAsset ` - :param created_date: - :type created_date: datetime - :param draft_state: - :type draft_state: object - :param extension_name: - :type extension_name: str - :param id: - :type id: str - :param last_updated: - :type last_updated: datetime - :param payload: - :type payload: :class:`ExtensionPayload ` - :param product: - :type product: str - :param publisher_name: - :type publisher_name: str - :param validation_errors: - :type validation_errors: list of { key: str; value: str } - :param validation_warnings: - :type validation_warnings: list of { key: str; value: str } - """ - - _attribute_map = { - 'assets': {'key': 'assets', 'type': '[ExtensionDraftAsset]'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'draft_state': {'key': 'draftState', 'type': 'object'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'payload': {'key': 'payload', 'type': 'ExtensionPayload'}, - 'product': {'key': 'product', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[{ key: str; value: str }]'}, - 'validation_warnings': {'key': 'validationWarnings', 'type': '[{ key: str; value: str }]'} - } - - def __init__(self, assets=None, created_date=None, draft_state=None, extension_name=None, id=None, last_updated=None, payload=None, product=None, publisher_name=None, validation_errors=None, validation_warnings=None): - super(ExtensionDraft, self).__init__() - self.assets = assets - self.created_date = created_date - self.draft_state = draft_state - self.extension_name = extension_name - self.id = id - self.last_updated = last_updated - self.payload = payload - self.product = product - self.publisher_name = publisher_name - self.validation_errors = validation_errors - self.validation_warnings = validation_warnings diff --git a/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py b/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py deleted file mode 100644 index 695659a0..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_draft_asset.py +++ /dev/null @@ -1,30 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .extension_file import ExtensionFile - - -class ExtensionDraftAsset(ExtensionFile): - """ExtensionDraftAsset. - - :param asset_type: - :type asset_type: str - :param language: - :type language: str - :param source: - :type source: str - """ - - _attribute_map = { - 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'}, - } - - def __init__(self, asset_type=None, language=None, source=None): - super(ExtensionDraftAsset, self).__init__(asset_type=asset_type, language=language, source=source) diff --git a/vsts/vsts/gallery/v4_1/models/extension_draft_patch.py b/vsts/vsts/gallery/v4_1/models/extension_draft_patch.py deleted file mode 100644 index ccccb24d..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_draft_patch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionDraftPatch(Model): - """ExtensionDraftPatch. - - :param extension_data: - :type extension_data: :class:`UnpackagedExtensionData ` - :param operation: - :type operation: object - """ - - _attribute_map = { - 'extension_data': {'key': 'extensionData', 'type': 'UnpackagedExtensionData'}, - 'operation': {'key': 'operation', 'type': 'object'} - } - - def __init__(self, extension_data=None, operation=None): - super(ExtensionDraftPatch, self).__init__() - self.extension_data = extension_data - self.operation = operation diff --git a/vsts/vsts/gallery/v4_1/models/extension_event.py b/vsts/vsts/gallery/v4_1/models/extension_event.py deleted file mode 100644 index 64ad2b04..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_event.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEvent(Model): - """ExtensionEvent. - - :param id: Id which identifies each data point uniquely - :type id: long - :param properties: - :type properties: :class:`object ` - :param statistic_date: Timestamp of when the event occurred - :type statistic_date: datetime - :param version: Version of the extension - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'long'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'statistic_date': {'key': 'statisticDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, properties=None, statistic_date=None, version=None): - super(ExtensionEvent, self).__init__() - self.id = id - self.properties = properties - self.statistic_date = statistic_date - self.version = version diff --git a/vsts/vsts/gallery/v4_1/models/extension_events.py b/vsts/vsts/gallery/v4_1/models/extension_events.py deleted file mode 100644 index e63f0c32..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_events.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionEvents(Model): - """ExtensionEvents. - - :param events: Generic container for events data. The dictionary key denotes the type of event and the list contains properties related to that event - :type events: dict - :param extension_id: Id of the extension, this will never be sent back to the client. This field will mainly be used when EMS calls into Gallery REST API to update install/uninstall events for various extensions in one go. - :type extension_id: str - :param extension_name: Name of the extension - :type extension_name: str - :param publisher_name: Name of the publisher - :type publisher_name: str - """ - - _attribute_map = { - 'events': {'key': 'events', 'type': '{[ExtensionEvent]}'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, events=None, extension_id=None, extension_name=None, publisher_name=None): - super(ExtensionEvents, self).__init__() - self.events = events - self.extension_id = extension_id - self.extension_name = extension_name - self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/extension_file.py b/vsts/vsts/gallery/v4_1/models/extension_file.py deleted file mode 100644 index 1b505e97..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_file.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFile(Model): - """ExtensionFile. - - :param asset_type: - :type asset_type: str - :param language: - :type language: str - :param source: - :type source: str - """ - - _attribute_map = { - 'asset_type': {'key': 'assetType', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'str'} - } - - def __init__(self, asset_type=None, language=None, source=None): - super(ExtensionFile, self).__init__() - self.asset_type = asset_type - self.language = language - self.source = source diff --git a/vsts/vsts/gallery/v4_1/models/extension_filter_result.py b/vsts/vsts/gallery/v4_1/models/extension_filter_result.py deleted file mode 100644 index 80fe7546..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_filter_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFilterResult(Model): - """ExtensionFilterResult. - - :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` - :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. - :type paging_token: str - :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, - 'paging_token': {'key': 'pagingToken', 'type': 'str'}, - 'result_metadata': {'key': 'resultMetadata', 'type': '[ExtensionFilterResultMetadata]'} - } - - def __init__(self, extensions=None, paging_token=None, result_metadata=None): - super(ExtensionFilterResult, self).__init__() - self.extensions = extensions - self.paging_token = paging_token - self.result_metadata = result_metadata diff --git a/vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py b/vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py deleted file mode 100644 index cf43173b..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_filter_result_metadata.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionFilterResultMetadata(Model): - """ExtensionFilterResultMetadata. - - :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` - :param metadata_type: Defines the category of metadata items - :type metadata_type: str - """ - - _attribute_map = { - 'metadata_items': {'key': 'metadataItems', 'type': '[MetadataItem]'}, - 'metadata_type': {'key': 'metadataType', 'type': 'str'} - } - - def __init__(self, metadata_items=None, metadata_type=None): - super(ExtensionFilterResultMetadata, self).__init__() - self.metadata_items = metadata_items - self.metadata_type = metadata_type diff --git a/vsts/vsts/gallery/v4_1/models/extension_package.py b/vsts/vsts/gallery/v4_1/models/extension_package.py deleted file mode 100644 index 384cdb0a..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_package.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionPackage(Model): - """ExtensionPackage. - - :param extension_manifest: Base 64 encoded extension package - :type extension_manifest: str - """ - - _attribute_map = { - 'extension_manifest': {'key': 'extensionManifest', 'type': 'str'} - } - - def __init__(self, extension_manifest=None): - super(ExtensionPackage, self).__init__() - self.extension_manifest = extension_manifest diff --git a/vsts/vsts/gallery/v4_1/models/extension_payload.py b/vsts/vsts/gallery/v4_1/models/extension_payload.py deleted file mode 100644 index e742a825..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_payload.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionPayload(Model): - """ExtensionPayload. - - :param description: - :type description: str - :param display_name: - :type display_name: str - :param file_name: - :type file_name: str - :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` - :param is_signed_by_microsoft: - :type is_signed_by_microsoft: bool - :param is_valid: - :type is_valid: bool - :param metadata: - :type metadata: list of { key: str; value: str } - :param type: - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, - 'is_signed_by_microsoft': {'key': 'isSignedByMicrosoft', 'type': 'bool'}, - 'is_valid': {'key': 'isValid', 'type': 'bool'}, - 'metadata': {'key': 'metadata', 'type': '[{ key: str; value: str }]'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, display_name=None, file_name=None, installation_targets=None, is_signed_by_microsoft=None, is_valid=None, metadata=None, type=None): - super(ExtensionPayload, self).__init__() - self.description = description - self.display_name = display_name - self.file_name = file_name - self.installation_targets = installation_targets - self.is_signed_by_microsoft = is_signed_by_microsoft - self.is_valid = is_valid - self.metadata = metadata - self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/extension_query.py b/vsts/vsts/gallery/v4_1/models/extension_query.py deleted file mode 100644 index f50ffb23..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionQuery(Model): - """ExtensionQuery. - - :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. - :type asset_types: list of str - :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` - :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. - :type flags: object - """ - - _attribute_map = { - 'asset_types': {'key': 'assetTypes', 'type': '[str]'}, - 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, - 'flags': {'key': 'flags', 'type': 'object'} - } - - def __init__(self, asset_types=None, filters=None, flags=None): - super(ExtensionQuery, self).__init__() - self.asset_types = asset_types - self.filters = filters - self.flags = flags diff --git a/vsts/vsts/gallery/v4_1/models/extension_query_result.py b/vsts/vsts/gallery/v4_1/models/extension_query_result.py deleted file mode 100644 index 4daa1a57..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionQueryResult(Model): - """ExtensionQueryResult. - - :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[ExtensionFilterResult]'} - } - - def __init__(self, results=None): - super(ExtensionQueryResult, self).__init__() - self.results = results diff --git a/vsts/vsts/gallery/v4_1/models/extension_share.py b/vsts/vsts/gallery/v4_1/models/extension_share.py deleted file mode 100644 index acc81ef0..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_share.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionShare(Model): - """ExtensionShare. - - :param id: - :type id: str - :param name: - :type name: str - :param type: - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, id=None, name=None, type=None): - super(ExtensionShare, self).__init__() - self.id = id - self.name = name - self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/extension_statistic.py b/vsts/vsts/gallery/v4_1/models/extension_statistic.py deleted file mode 100644 index 3929b9e6..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_statistic.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionStatistic(Model): - """ExtensionStatistic. - - :param statistic_name: - :type statistic_name: str - :param value: - :type value: float - """ - - _attribute_map = { - 'statistic_name': {'key': 'statisticName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'float'} - } - - def __init__(self, statistic_name=None, value=None): - super(ExtensionStatistic, self).__init__() - self.statistic_name = statistic_name - self.value = value diff --git a/vsts/vsts/gallery/v4_1/models/extension_statistic_update.py b/vsts/vsts/gallery/v4_1/models/extension_statistic_update.py deleted file mode 100644 index 82adba31..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_statistic_update.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionStatisticUpdate(Model): - """ExtensionStatisticUpdate. - - :param extension_name: - :type extension_name: str - :param operation: - :type operation: object - :param publisher_name: - :type publisher_name: str - :param statistic: - :type statistic: :class:`ExtensionStatistic ` - """ - - _attribute_map = { - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'statistic': {'key': 'statistic', 'type': 'ExtensionStatistic'} - } - - def __init__(self, extension_name=None, operation=None, publisher_name=None, statistic=None): - super(ExtensionStatisticUpdate, self).__init__() - self.extension_name = extension_name - self.operation = operation - self.publisher_name = publisher_name - self.statistic = statistic diff --git a/vsts/vsts/gallery/v4_1/models/extension_version.py b/vsts/vsts/gallery/v4_1/models/extension_version.py deleted file mode 100644 index 256768eb..00000000 --- a/vsts/vsts/gallery/v4_1/models/extension_version.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionVersion(Model): - """ExtensionVersion. - - :param asset_uri: - :type asset_uri: str - :param badges: - :type badges: list of :class:`ExtensionBadge ` - :param fallback_asset_uri: - :type fallback_asset_uri: str - :param files: - :type files: list of :class:`ExtensionFile ` - :param flags: - :type flags: object - :param last_updated: - :type last_updated: datetime - :param properties: - :type properties: list of { key: str; value: str } - :param validation_result_message: - :type validation_result_message: str - :param version: - :type version: str - :param version_description: - :type version_description: str - """ - - _attribute_map = { - 'asset_uri': {'key': 'assetUri', 'type': 'str'}, - 'badges': {'key': 'badges', 'type': '[ExtensionBadge]'}, - 'fallback_asset_uri': {'key': 'fallbackAssetUri', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[ExtensionFile]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': '[{ key: str; value: str }]'}, - 'validation_result_message': {'key': 'validationResultMessage', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_description': {'key': 'versionDescription', 'type': 'str'} - } - - def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=None, flags=None, last_updated=None, properties=None, validation_result_message=None, version=None, version_description=None): - super(ExtensionVersion, self).__init__() - self.asset_uri = asset_uri - self.badges = badges - self.fallback_asset_uri = fallback_asset_uri - self.files = files - self.flags = flags - self.last_updated = last_updated - self.properties = properties - self.validation_result_message = validation_result_message - self.version = version - self.version_description = version_description diff --git a/vsts/vsts/gallery/v4_1/models/filter_criteria.py b/vsts/vsts/gallery/v4_1/models/filter_criteria.py deleted file mode 100644 index 7002c78e..00000000 --- a/vsts/vsts/gallery/v4_1/models/filter_criteria.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FilterCriteria(Model): - """FilterCriteria. - - :param filter_type: - :type filter_type: int - :param value: The value used in the match based on the filter type. - :type value: str - """ - - _attribute_map = { - 'filter_type': {'key': 'filterType', 'type': 'int'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, filter_type=None, value=None): - super(FilterCriteria, self).__init__() - self.filter_type = filter_type - self.value = value diff --git a/vsts/vsts/gallery/v4_1/models/installation_target.py b/vsts/vsts/gallery/v4_1/models/installation_target.py deleted file mode 100644 index 4d622d4a..00000000 --- a/vsts/vsts/gallery/v4_1/models/installation_target.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InstallationTarget(Model): - """InstallationTarget. - - :param target: - :type target: str - :param target_version: - :type target_version: str - """ - - _attribute_map = { - 'target': {'key': 'target', 'type': 'str'}, - 'target_version': {'key': 'targetVersion', 'type': 'str'} - } - - def __init__(self, target=None, target_version=None): - super(InstallationTarget, self).__init__() - self.target = target - self.target_version = target_version diff --git a/vsts/vsts/gallery/v4_1/models/metadata_item.py b/vsts/vsts/gallery/v4_1/models/metadata_item.py deleted file mode 100644 index c2a8bd96..00000000 --- a/vsts/vsts/gallery/v4_1/models/metadata_item.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetadataItem(Model): - """MetadataItem. - - :param count: The count of the metadata item - :type count: int - :param name: The name of the metadata item - :type name: str - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, count=None, name=None): - super(MetadataItem, self).__init__() - self.count = count - self.name = name diff --git a/vsts/vsts/gallery/v4_1/models/notifications_data.py b/vsts/vsts/gallery/v4_1/models/notifications_data.py deleted file mode 100644 index 6decf547..00000000 --- a/vsts/vsts/gallery/v4_1/models/notifications_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationsData(Model): - """NotificationsData. - - :param data: Notification data needed - :type data: dict - :param identities: List of users who should get the notification - :type identities: dict - :param type: Type of Mail Notification.Can be Qna , review or CustomerContact - :type type: object - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'identities': {'key': 'identities', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, data=None, identities=None, type=None): - super(NotificationsData, self).__init__() - self.data = data - self.identities = identities - self.type = type diff --git a/vsts/vsts/gallery/v4_1/models/product_categories_result.py b/vsts/vsts/gallery/v4_1/models/product_categories_result.py deleted file mode 100644 index 3c2b7201..00000000 --- a/vsts/vsts/gallery/v4_1/models/product_categories_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProductCategoriesResult(Model): - """ProductCategoriesResult. - - :param categories: - :type categories: list of :class:`ProductCategory ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[ProductCategory]'} - } - - def __init__(self, categories=None): - super(ProductCategoriesResult, self).__init__() - self.categories = categories diff --git a/vsts/vsts/gallery/v4_1/models/product_category.py b/vsts/vsts/gallery/v4_1/models/product_category.py deleted file mode 100644 index b157ca81..00000000 --- a/vsts/vsts/gallery/v4_1/models/product_category.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProductCategory(Model): - """ProductCategory. - - :param children: - :type children: list of :class:`ProductCategory ` - :param has_children: Indicator whether this is a leaf or there are children under this category - :type has_children: bool - :param id: Individual Guid of the Category - :type id: str - :param title: Category Title in the requested language - :type title: str - """ - - _attribute_map = { - 'children': {'key': 'children', 'type': '[ProductCategory]'}, - 'has_children': {'key': 'hasChildren', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, children=None, has_children=None, id=None, title=None): - super(ProductCategory, self).__init__() - self.children = children - self.has_children = has_children - self.id = id - self.title = title diff --git a/vsts/vsts/gallery/v4_1/models/published_extension.py b/vsts/vsts/gallery/v4_1/models/published_extension.py deleted file mode 100644 index 00dd659e..00000000 --- a/vsts/vsts/gallery/v4_1/models/published_extension.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishedExtension(Model): - """PublishedExtension. - - :param categories: - :type categories: list of str - :param deployment_type: - :type deployment_type: object - :param display_name: - :type display_name: str - :param extension_id: - :type extension_id: str - :param extension_name: - :type extension_name: str - :param flags: - :type flags: object - :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` - :param last_updated: - :type last_updated: datetime - :param long_description: - :type long_description: str - :param published_date: Date on which the extension was first uploaded. - :type published_date: datetime - :param publisher: - :type publisher: :class:`PublisherFacts ` - :param release_date: Date on which the extension first went public. - :type release_date: datetime - :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` - :param short_description: - :type short_description: str - :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` - :param tags: - :type tags: list of str - :param versions: - :type versions: list of :class:`ExtensionVersion ` - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[str]'}, - 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'long_description': {'key': 'longDescription', 'type': 'str'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'publisher': {'key': 'publisher', 'type': 'PublisherFacts'}, - 'release_date': {'key': 'releaseDate', 'type': 'iso-8601'}, - 'shared_with': {'key': 'sharedWith', 'type': '[ExtensionShare]'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': '[ExtensionStatistic]'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'versions': {'key': 'versions', 'type': '[ExtensionVersion]'} - } - - def __init__(self, categories=None, deployment_type=None, display_name=None, extension_id=None, extension_name=None, flags=None, installation_targets=None, last_updated=None, long_description=None, published_date=None, publisher=None, release_date=None, shared_with=None, short_description=None, statistics=None, tags=None, versions=None): - super(PublishedExtension, self).__init__() - self.categories = categories - self.deployment_type = deployment_type - self.display_name = display_name - self.extension_id = extension_id - self.extension_name = extension_name - self.flags = flags - self.installation_targets = installation_targets - self.last_updated = last_updated - self.long_description = long_description - self.published_date = published_date - self.publisher = publisher - self.release_date = release_date - self.shared_with = shared_with - self.short_description = short_description - self.statistics = statistics - self.tags = tags - self.versions = versions diff --git a/vsts/vsts/gallery/v4_1/models/publisher.py b/vsts/vsts/gallery/v4_1/models/publisher.py deleted file mode 100644 index e9bdf8cc..00000000 --- a/vsts/vsts/gallery/v4_1/models/publisher.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .publisher_base import PublisherBase - - -class Publisher(PublisherBase): - """Publisher. - - :param display_name: - :type display_name: str - :param email_address: - :type email_address: list of str - :param extensions: - :type extensions: list of :class:`PublishedExtension ` - :param flags: - :type flags: object - :param last_updated: - :type last_updated: datetime - :param long_description: - :type long_description: str - :param publisher_id: - :type publisher_id: str - :param publisher_name: - :type publisher_name: str - :param short_description: - :type short_description: str - :param _links: - :type _links: :class:`ReferenceLinks ` - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'email_address': {'key': 'emailAddress', 'type': '[str]'}, - 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'long_description': {'key': 'longDescription', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'} - } - - def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, _links=None): - super(Publisher, self).__init__(display_name=display_name, email_address=email_address, extensions=extensions, flags=flags, last_updated=last_updated, long_description=long_description, publisher_id=publisher_id, publisher_name=publisher_name, short_description=short_description) - self._links = _links diff --git a/vsts/vsts/gallery/v4_1/models/publisher_base.py b/vsts/vsts/gallery/v4_1/models/publisher_base.py deleted file mode 100644 index 8e740801..00000000 --- a/vsts/vsts/gallery/v4_1/models/publisher_base.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherBase(Model): - """PublisherBase. - - :param display_name: - :type display_name: str - :param email_address: - :type email_address: list of str - :param extensions: - :type extensions: list of :class:`PublishedExtension ` - :param flags: - :type flags: object - :param last_updated: - :type last_updated: datetime - :param long_description: - :type long_description: str - :param publisher_id: - :type publisher_id: str - :param publisher_name: - :type publisher_name: str - :param short_description: - :type short_description: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'email_address': {'key': 'emailAddress', 'type': '[str]'}, - 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, - 'long_description': {'key': 'longDescription', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'} - } - - def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): - super(PublisherBase, self).__init__() - self.display_name = display_name - self.email_address = email_address - self.extensions = extensions - self.flags = flags - self.last_updated = last_updated - self.long_description = long_description - self.publisher_id = publisher_id - self.publisher_name = publisher_name - self.short_description = short_description diff --git a/vsts/vsts/gallery/v4_1/models/publisher_facts.py b/vsts/vsts/gallery/v4_1/models/publisher_facts.py deleted file mode 100644 index 979b6d8d..00000000 --- a/vsts/vsts/gallery/v4_1/models/publisher_facts.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherFacts(Model): - """PublisherFacts. - - :param display_name: - :type display_name: str - :param flags: - :type flags: object - :param publisher_id: - :type publisher_id: str - :param publisher_name: - :type publisher_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'} - } - - def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_name=None): - super(PublisherFacts, self).__init__() - self.display_name = display_name - self.flags = flags - self.publisher_id = publisher_id - self.publisher_name = publisher_name diff --git a/vsts/vsts/gallery/v4_1/models/publisher_filter_result.py b/vsts/vsts/gallery/v4_1/models/publisher_filter_result.py deleted file mode 100644 index 734b014a..00000000 --- a/vsts/vsts/gallery/v4_1/models/publisher_filter_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherFilterResult(Model): - """PublisherFilterResult. - - :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` - """ - - _attribute_map = { - 'publishers': {'key': 'publishers', 'type': '[Publisher]'} - } - - def __init__(self, publishers=None): - super(PublisherFilterResult, self).__init__() - self.publishers = publishers diff --git a/vsts/vsts/gallery/v4_1/models/publisher_query.py b/vsts/vsts/gallery/v4_1/models/publisher_query.py deleted file mode 100644 index 5cef13f1..00000000 --- a/vsts/vsts/gallery/v4_1/models/publisher_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherQuery(Model): - """PublisherQuery. - - :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` - :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. - :type flags: object - """ - - _attribute_map = { - 'filters': {'key': 'filters', 'type': '[QueryFilter]'}, - 'flags': {'key': 'flags', 'type': 'object'} - } - - def __init__(self, filters=None, flags=None): - super(PublisherQuery, self).__init__() - self.filters = filters - self.flags = flags diff --git a/vsts/vsts/gallery/v4_1/models/publisher_query_result.py b/vsts/vsts/gallery/v4_1/models/publisher_query_result.py deleted file mode 100644 index 34f74a80..00000000 --- a/vsts/vsts/gallery/v4_1/models/publisher_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherQueryResult(Model): - """PublisherQueryResult. - - :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[PublisherFilterResult]'} - } - - def __init__(self, results=None): - super(PublisherQueryResult, self).__init__() - self.results = results diff --git a/vsts/vsts/gallery/v4_1/models/qn_aItem.py b/vsts/vsts/gallery/v4_1/models/qn_aItem.py deleted file mode 100644 index f7f5981c..00000000 --- a/vsts/vsts/gallery/v4_1/models/qn_aItem.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QnAItem(Model): - """QnAItem. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'} - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): - super(QnAItem, self).__init__() - self.created_date = created_date - self.id = id - self.status = status - self.text = text - self.updated_date = updated_date - self.user = user diff --git a/vsts/vsts/gallery/v4_1/models/query_filter.py b/vsts/vsts/gallery/v4_1/models/query_filter.py deleted file mode 100644 index 3d560edf..00000000 --- a/vsts/vsts/gallery/v4_1/models/query_filter.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueryFilter(Model): - """QueryFilter. - - :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` - :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. - :type direction: object - :param page_number: The page number requested by the user. If not provided 1 is assumed by default. - :type page_number: int - :param page_size: The page size defines the number of results the caller wants for this filter. The count can't exceed the overall query size limits. - :type page_size: int - :param paging_token: The paging token is a distinct type of filter and the other filter fields are ignored. The paging token represents the continuation of a previously executed query. The information about where in the result and what fields are being filtered are embeded in the token. - :type paging_token: str - :param sort_by: Defines the type of sorting to be applied on the results. The page slice is cut of the sorted results only. - :type sort_by: int - :param sort_order: Defines the order of sorting, 1 for Ascending, 2 for Descending, else default ordering based on the SortBy value - :type sort_order: int - """ - - _attribute_map = { - 'criteria': {'key': 'criteria', 'type': '[FilterCriteria]'}, - 'direction': {'key': 'direction', 'type': 'object'}, - 'page_number': {'key': 'pageNumber', 'type': 'int'}, - 'page_size': {'key': 'pageSize', 'type': 'int'}, - 'paging_token': {'key': 'pagingToken', 'type': 'str'}, - 'sort_by': {'key': 'sortBy', 'type': 'int'}, - 'sort_order': {'key': 'sortOrder', 'type': 'int'} - } - - def __init__(self, criteria=None, direction=None, page_number=None, page_size=None, paging_token=None, sort_by=None, sort_order=None): - super(QueryFilter, self).__init__() - self.criteria = criteria - self.direction = direction - self.page_number = page_number - self.page_size = page_size - self.paging_token = paging_token - self.sort_by = sort_by - self.sort_order = sort_order diff --git a/vsts/vsts/gallery/v4_1/models/question.py b/vsts/vsts/gallery/v4_1/models/question.py deleted file mode 100644 index d7a43ea5..00000000 --- a/vsts/vsts/gallery/v4_1/models/question.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .qn_aItem import QnAItem - - -class Question(QnAItem): - """Question. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'}, - 'responses': {'key': 'responses', 'type': '[Response]'} - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None, responses=None): - super(Question, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) - self.responses = responses diff --git a/vsts/vsts/gallery/v4_1/models/questions_result.py b/vsts/vsts/gallery/v4_1/models/questions_result.py deleted file mode 100644 index edb5fb37..00000000 --- a/vsts/vsts/gallery/v4_1/models/questions_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QuestionsResult(Model): - """QuestionsResult. - - :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) - :type has_more_questions: bool - :param questions: List of the QnA threads - :type questions: list of :class:`Question ` - """ - - _attribute_map = { - 'has_more_questions': {'key': 'hasMoreQuestions', 'type': 'bool'}, - 'questions': {'key': 'questions', 'type': '[Question]'} - } - - def __init__(self, has_more_questions=None, questions=None): - super(QuestionsResult, self).__init__() - self.has_more_questions = has_more_questions - self.questions = questions diff --git a/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py b/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py deleted file mode 100644 index 6d6cd4b9..00000000 --- a/vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RatingCountPerRating(Model): - """RatingCountPerRating. - - :param rating: Rating value - :type rating: str - :param rating_count: Count of total ratings - :type rating_count: long - """ - - _attribute_map = { - 'rating': {'key': 'rating', 'type': 'str'}, - 'rating_count': {'key': 'ratingCount', 'type': 'long'} - } - - def __init__(self, rating=None, rating_count=None): - super(RatingCountPerRating, self).__init__() - self.rating = rating - self.rating_count = rating_count diff --git a/vsts/vsts/gallery/v4_1/models/reference_links.py b/vsts/vsts/gallery/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/gallery/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/gallery/v4_1/models/response.py b/vsts/vsts/gallery/v4_1/models/response.py deleted file mode 100644 index d5535dc1..00000000 --- a/vsts/vsts/gallery/v4_1/models/response.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .qn_aItem import QnAItem - - -class Response(QnAItem): - """Response. - - :param created_date: Time when the review was first created - :type created_date: datetime - :param id: Unique identifier of a QnA item - :type id: long - :param status: Get status of item - :type status: object - :param text: Text description of the QnA item - :type text: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user: User details for the item. - :type user: :class:`UserIdentityRef ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'object'}, - 'text': {'key': 'text', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user': {'key': 'user', 'type': 'UserIdentityRef'}, - } - - def __init__(self, created_date=None, id=None, status=None, text=None, updated_date=None, user=None): - super(Response, self).__init__(created_date=created_date, id=id, status=status, text=text, updated_date=updated_date, user=user) diff --git a/vsts/vsts/gallery/v4_1/models/review.py b/vsts/vsts/gallery/v4_1/models/review.py deleted file mode 100644 index 092c7c55..00000000 --- a/vsts/vsts/gallery/v4_1/models/review.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Review(Model): - """Review. - - :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` - :param id: Unique identifier of a review item - :type id: long - :param is_deleted: Flag for soft deletion - :type is_deleted: bool - :param is_ignored: - :type is_ignored: bool - :param product_version: Version of the product for which review was submitted - :type product_version: str - :param rating: Rating procided by the user - :type rating: str - :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` - :param text: Text description of the review - :type text: str - :param title: Title of the review - :type title: str - :param updated_date: Time when the review was edited/updated - :type updated_date: datetime - :param user_display_name: Name of the user - :type user_display_name: str - :param user_id: Id of the user who submitted the review - :type user_id: str - """ - - _attribute_map = { - 'admin_reply': {'key': 'adminReply', 'type': 'ReviewReply'}, - 'id': {'key': 'id', 'type': 'long'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_ignored': {'key': 'isIgnored', 'type': 'bool'}, - 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'rating': {'key': 'rating', 'type': 'str'}, - 'reply': {'key': 'reply', 'type': 'ReviewReply'}, - 'text': {'key': 'text', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user_display_name': {'key': 'userDisplayName', 'type': 'str'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, admin_reply=None, id=None, is_deleted=None, is_ignored=None, product_version=None, rating=None, reply=None, text=None, title=None, updated_date=None, user_display_name=None, user_id=None): - super(Review, self).__init__() - self.admin_reply = admin_reply - self.id = id - self.is_deleted = is_deleted - self.is_ignored = is_ignored - self.product_version = product_version - self.rating = rating - self.reply = reply - self.text = text - self.title = title - self.updated_date = updated_date - self.user_display_name = user_display_name - self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_1/models/review_patch.py b/vsts/vsts/gallery/v4_1/models/review_patch.py deleted file mode 100644 index 3540826e..00000000 --- a/vsts/vsts/gallery/v4_1/models/review_patch.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewPatch(Model): - """ReviewPatch. - - :param operation: Denotes the patch operation type - :type operation: object - :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` - :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` - """ - - _attribute_map = { - 'operation': {'key': 'operation', 'type': 'object'}, - 'reported_concern': {'key': 'reportedConcern', 'type': 'UserReportedConcern'}, - 'review_item': {'key': 'reviewItem', 'type': 'Review'} - } - - def __init__(self, operation=None, reported_concern=None, review_item=None): - super(ReviewPatch, self).__init__() - self.operation = operation - self.reported_concern = reported_concern - self.review_item = review_item diff --git a/vsts/vsts/gallery/v4_1/models/review_reply.py b/vsts/vsts/gallery/v4_1/models/review_reply.py deleted file mode 100644 index bcf4f5a7..00000000 --- a/vsts/vsts/gallery/v4_1/models/review_reply.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewReply(Model): - """ReviewReply. - - :param id: Id of the reply - :type id: long - :param is_deleted: Flag for soft deletion - :type is_deleted: bool - :param product_version: Version of the product when the reply was submitted or updated - :type product_version: str - :param reply_text: Content of the reply - :type reply_text: str - :param review_id: Id of the review, to which this reply belongs - :type review_id: long - :param title: Title of the reply - :type title: str - :param updated_date: Date the reply was submitted or updated - :type updated_date: datetime - :param user_id: Id of the user who left the reply - :type user_id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'long'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'product_version': {'key': 'productVersion', 'type': 'str'}, - 'reply_text': {'key': 'replyText', 'type': 'str'}, - 'review_id': {'key': 'reviewId', 'type': 'long'}, - 'title': {'key': 'title', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, id=None, is_deleted=None, product_version=None, reply_text=None, review_id=None, title=None, updated_date=None, user_id=None): - super(ReviewReply, self).__init__() - self.id = id - self.is_deleted = is_deleted - self.product_version = product_version - self.reply_text = reply_text - self.review_id = review_id - self.title = title - self.updated_date = updated_date - self.user_id = user_id diff --git a/vsts/vsts/gallery/v4_1/models/review_summary.py b/vsts/vsts/gallery/v4_1/models/review_summary.py deleted file mode 100644 index 24c9bad4..00000000 --- a/vsts/vsts/gallery/v4_1/models/review_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewSummary(Model): - """ReviewSummary. - - :param average_rating: Average Rating - :type average_rating: int - :param rating_count: Count of total ratings - :type rating_count: long - :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` - """ - - _attribute_map = { - 'average_rating': {'key': 'averageRating', 'type': 'int'}, - 'rating_count': {'key': 'ratingCount', 'type': 'long'}, - 'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'} - } - - def __init__(self, average_rating=None, rating_count=None, rating_split=None): - super(ReviewSummary, self).__init__() - self.average_rating = average_rating - self.rating_count = rating_count - self.rating_split = rating_split diff --git a/vsts/vsts/gallery/v4_1/models/reviews_result.py b/vsts/vsts/gallery/v4_1/models/reviews_result.py deleted file mode 100644 index b10b0f76..00000000 --- a/vsts/vsts/gallery/v4_1/models/reviews_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReviewsResult(Model): - """ReviewsResult. - - :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) - :type has_more_reviews: bool - :param reviews: List of reviews - :type reviews: list of :class:`Review ` - :param total_review_count: Count of total review items - :type total_review_count: long - """ - - _attribute_map = { - 'has_more_reviews': {'key': 'hasMoreReviews', 'type': 'bool'}, - 'reviews': {'key': 'reviews', 'type': '[Review]'}, - 'total_review_count': {'key': 'totalReviewCount', 'type': 'long'} - } - - def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None): - super(ReviewsResult, self).__init__() - self.has_more_reviews = has_more_reviews - self.reviews = reviews - self.total_review_count = total_review_count diff --git a/vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py b/vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py deleted file mode 100644 index df42d073..00000000 --- a/vsts/vsts/gallery/v4_1/models/unpackaged_extension_data.py +++ /dev/null @@ -1,85 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UnpackagedExtensionData(Model): - """UnpackagedExtensionData. - - :param categories: - :type categories: list of str - :param description: - :type description: str - :param display_name: - :type display_name: str - :param draft_id: - :type draft_id: str - :param extension_name: - :type extension_name: str - :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` - :param is_converted_to_markdown: - :type is_converted_to_markdown: bool - :param pricing_category: - :type pricing_category: str - :param product: - :type product: str - :param publisher_name: - :type publisher_name: str - :param qn_aEnabled: - :type qn_aEnabled: bool - :param referral_url: - :type referral_url: str - :param repository_url: - :type repository_url: str - :param tags: - :type tags: list of str - :param version: - :type version: str - :param vsix_id: - :type vsix_id: str - """ - - _attribute_map = { - 'categories': {'key': 'categories', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'draft_id': {'key': 'draftId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, - 'is_converted_to_markdown': {'key': 'isConvertedToMarkdown', 'type': 'bool'}, - 'pricing_category': {'key': 'pricingCategory', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'qn_aEnabled': {'key': 'qnAEnabled', 'type': 'bool'}, - 'referral_url': {'key': 'referralUrl', 'type': 'str'}, - 'repository_url': {'key': 'repositoryUrl', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'version': {'key': 'version', 'type': 'str'}, - 'vsix_id': {'key': 'vsixId', 'type': 'str'} - } - - def __init__(self, categories=None, description=None, display_name=None, draft_id=None, extension_name=None, installation_targets=None, is_converted_to_markdown=None, pricing_category=None, product=None, publisher_name=None, qn_aEnabled=None, referral_url=None, repository_url=None, tags=None, version=None, vsix_id=None): - super(UnpackagedExtensionData, self).__init__() - self.categories = categories - self.description = description - self.display_name = display_name - self.draft_id = draft_id - self.extension_name = extension_name - self.installation_targets = installation_targets - self.is_converted_to_markdown = is_converted_to_markdown - self.pricing_category = pricing_category - self.product = product - self.publisher_name = publisher_name - self.qn_aEnabled = qn_aEnabled - self.referral_url = referral_url - self.repository_url = repository_url - self.tags = tags - self.version = version - self.vsix_id = vsix_id diff --git a/vsts/vsts/gallery/v4_1/models/user_identity_ref.py b/vsts/vsts/gallery/v4_1/models/user_identity_ref.py deleted file mode 100644 index d70a734d..00000000 --- a/vsts/vsts/gallery/v4_1/models/user_identity_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserIdentityRef(Model): - """UserIdentityRef. - - :param display_name: User display name - :type display_name: str - :param id: User VSID - :type id: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None): - super(UserIdentityRef, self).__init__() - self.display_name = display_name - self.id = id diff --git a/vsts/vsts/gallery/v4_1/models/user_reported_concern.py b/vsts/vsts/gallery/v4_1/models/user_reported_concern.py deleted file mode 100644 index 739c0b76..00000000 --- a/vsts/vsts/gallery/v4_1/models/user_reported_concern.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserReportedConcern(Model): - """UserReportedConcern. - - :param category: Category of the concern - :type category: object - :param concern_text: User comment associated with the report - :type concern_text: str - :param review_id: Id of the review which was reported - :type review_id: long - :param submitted_date: Date the report was submitted - :type submitted_date: datetime - :param user_id: Id of the user who reported a review - :type user_id: str - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'object'}, - 'concern_text': {'key': 'concernText', 'type': 'str'}, - 'review_id': {'key': 'reviewId', 'type': 'long'}, - 'submitted_date': {'key': 'submittedDate', 'type': 'iso-8601'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, category=None, concern_text=None, review_id=None, submitted_date=None, user_id=None): - super(UserReportedConcern, self).__init__() - self.category = category - self.concern_text = concern_text - self.review_id = review_id - self.submitted_date = submitted_date - self.user_id = user_id diff --git a/vsts/vsts/git/__init__.py b/vsts/vsts/git/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/git/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/git/v4_0/__init__.py b/vsts/vsts/git/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/git/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/git/v4_0/models/__init__.py b/vsts/vsts/git/v4_0/models/__init__.py deleted file mode 100644 index bd74c956..00000000 --- a/vsts/vsts/git/v4_0/models/__init__.py +++ /dev/null @@ -1,197 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .associated_work_item import AssociatedWorkItem -from .attachment import Attachment -from .change import Change -from .comment import Comment -from .comment_iteration_context import CommentIterationContext -from .comment_position import CommentPosition -from .comment_thread import CommentThread -from .comment_thread_context import CommentThreadContext -from .comment_tracking_criteria import CommentTrackingCriteria -from .file_content_metadata import FileContentMetadata -from .git_annotated_tag import GitAnnotatedTag -from .git_async_ref_operation import GitAsyncRefOperation -from .git_async_ref_operation_detail import GitAsyncRefOperationDetail -from .git_async_ref_operation_parameters import GitAsyncRefOperationParameters -from .git_async_ref_operation_source import GitAsyncRefOperationSource -from .git_base_version_descriptor import GitBaseVersionDescriptor -from .git_blob_ref import GitBlobRef -from .git_branch_stats import GitBranchStats -from .git_cherry_pick import GitCherryPick -from .git_commit import GitCommit -from .git_commit_changes import GitCommitChanges -from .git_commit_diffs import GitCommitDiffs -from .git_commit_ref import GitCommitRef -from .git_conflict import GitConflict -from .git_deleted_repository import GitDeletedRepository -from .git_file_paths_collection import GitFilePathsCollection -from .git_fork_operation_status_detail import GitForkOperationStatusDetail -from .git_fork_ref import GitForkRef -from .git_fork_sync_request import GitForkSyncRequest -from .git_fork_sync_request_parameters import GitForkSyncRequestParameters -from .git_import_git_source import GitImportGitSource -from .git_import_request import GitImportRequest -from .git_import_request_parameters import GitImportRequestParameters -from .git_import_status_detail import GitImportStatusDetail -from .git_import_tfvc_source import GitImportTfvcSource -from .git_item import GitItem -from .git_item_descriptor import GitItemDescriptor -from .git_item_request_data import GitItemRequestData -from .git_merge_origin_ref import GitMergeOriginRef -from .git_object import GitObject -from .git_pull_request import GitPullRequest -from .git_pull_request_change import GitPullRequestChange -from .git_pull_request_comment_thread import GitPullRequestCommentThread -from .git_pull_request_comment_thread_context import GitPullRequestCommentThreadContext -from .git_pull_request_completion_options import GitPullRequestCompletionOptions -from .git_pull_request_iteration import GitPullRequestIteration -from .git_pull_request_iteration_changes import GitPullRequestIterationChanges -from .git_pull_request_merge_options import GitPullRequestMergeOptions -from .git_pull_request_query import GitPullRequestQuery -from .git_pull_request_query_input import GitPullRequestQueryInput -from .git_pull_request_search_criteria import GitPullRequestSearchCriteria -from .git_pull_request_status import GitPullRequestStatus -from .git_push import GitPush -from .git_push_ref import GitPushRef -from .git_push_search_criteria import GitPushSearchCriteria -from .git_query_branch_stats_criteria import GitQueryBranchStatsCriteria -from .git_query_commits_criteria import GitQueryCommitsCriteria -from .git_ref import GitRef -from .git_ref_favorite import GitRefFavorite -from .git_ref_update import GitRefUpdate -from .git_ref_update_result import GitRefUpdateResult -from .git_repository import GitRepository -from .git_repository_create_options import GitRepositoryCreateOptions -from .git_repository_ref import GitRepositoryRef -from .git_repository_stats import GitRepositoryStats -from .git_revert import GitRevert -from .git_status import GitStatus -from .git_status_context import GitStatusContext -from .git_suggestion import GitSuggestion -from .git_target_version_descriptor import GitTargetVersionDescriptor -from .git_template import GitTemplate -from .git_tree_diff import GitTreeDiff -from .git_tree_diff_entry import GitTreeDiffEntry -from .git_tree_diff_response import GitTreeDiffResponse -from .git_tree_entry_ref import GitTreeEntryRef -from .git_tree_ref import GitTreeRef -from .git_user_date import GitUserDate -from .git_version_descriptor import GitVersionDescriptor -from .global_git_repository_key import GlobalGitRepositoryKey -from .identity_ref import IdentityRef -from .identity_ref_with_vote import IdentityRefWithVote -from .import_repository_validation import ImportRepositoryValidation -from .item_content import ItemContent -from .item_model import ItemModel -from .reference_links import ReferenceLinks -from .resource_ref import ResourceRef -from .share_notification_context import ShareNotificationContext -from .source_to_target_ref import SourceToTargetRef -from .team_project_collection_reference import TeamProjectCollectionReference -from .team_project_reference import TeamProjectReference -from .vsts_info import VstsInfo -from .web_api_create_tag_request_data import WebApiCreateTagRequestData -from .web_api_tag_definition import WebApiTagDefinition - -__all__ = [ - 'AssociatedWorkItem', - 'Attachment', - 'Change', - 'Comment', - 'CommentIterationContext', - 'CommentPosition', - 'CommentThread', - 'CommentThreadContext', - 'CommentTrackingCriteria', - 'FileContentMetadata', - 'GitAnnotatedTag', - 'GitAsyncRefOperation', - 'GitAsyncRefOperationDetail', - 'GitAsyncRefOperationParameters', - 'GitAsyncRefOperationSource', - 'GitBaseVersionDescriptor', - 'GitBlobRef', - 'GitBranchStats', - 'GitCherryPick', - 'GitCommit', - 'GitCommitChanges', - 'GitCommitDiffs', - 'GitCommitRef', - 'GitConflict', - 'GitDeletedRepository', - 'GitFilePathsCollection', - 'GitForkOperationStatusDetail', - 'GitForkRef', - 'GitForkSyncRequest', - 'GitForkSyncRequestParameters', - 'GitImportGitSource', - 'GitImportRequest', - 'GitImportRequestParameters', - 'GitImportStatusDetail', - 'GitImportTfvcSource', - 'GitItem', - 'GitItemDescriptor', - 'GitItemRequestData', - 'GitMergeOriginRef', - 'GitObject', - 'GitPullRequest', - 'GitPullRequestChange', - 'GitPullRequestCommentThread', - 'GitPullRequestCommentThreadContext', - 'GitPullRequestCompletionOptions', - 'GitPullRequestIteration', - 'GitPullRequestIterationChanges', - 'GitPullRequestMergeOptions', - 'GitPullRequestQuery', - 'GitPullRequestQueryInput', - 'GitPullRequestSearchCriteria', - 'GitPullRequestStatus', - 'GitPush', - 'GitPushRef', - 'GitPushSearchCriteria', - 'GitQueryBranchStatsCriteria', - 'GitQueryCommitsCriteria', - 'GitRef', - 'GitRefFavorite', - 'GitRefUpdate', - 'GitRefUpdateResult', - 'GitRepository', - 'GitRepositoryCreateOptions', - 'GitRepositoryRef', - 'GitRepositoryStats', - 'GitRevert', - 'GitStatus', - 'GitStatusContext', - 'GitSuggestion', - 'GitTargetVersionDescriptor', - 'GitTemplate', - 'GitTreeDiff', - 'GitTreeDiffEntry', - 'GitTreeDiffResponse', - 'GitTreeEntryRef', - 'GitTreeRef', - 'GitUserDate', - 'GitVersionDescriptor', - 'GlobalGitRepositoryKey', - 'IdentityRef', - 'IdentityRefWithVote', - 'ImportRepositoryValidation', - 'ItemContent', - 'ItemModel', - 'ReferenceLinks', - 'ResourceRef', - 'ShareNotificationContext', - 'SourceToTargetRef', - 'TeamProjectCollectionReference', - 'TeamProjectReference', - 'VstsInfo', - 'WebApiCreateTagRequestData', - 'WebApiTagDefinition', -] diff --git a/vsts/vsts/git/v4_0/models/associated_work_item.py b/vsts/vsts/git/v4_0/models/associated_work_item.py deleted file mode 100644 index c34ac428..00000000 --- a/vsts/vsts/git/v4_0/models/associated_work_item.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AssociatedWorkItem(Model): - """AssociatedWorkItem. - - :param assigned_to: - :type assigned_to: str - :param id: - :type id: int - :param state: - :type state: str - :param title: - :type title: str - :param url: REST url - :type url: str - :param web_url: - :type web_url: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): - super(AssociatedWorkItem, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.state = state - self.title = title - self.url = url - self.web_url = web_url - self.work_item_type = work_item_type diff --git a/vsts/vsts/git/v4_0/models/attachment.py b/vsts/vsts/git/v4_0/models/attachment.py deleted file mode 100644 index 519408af..00000000 --- a/vsts/vsts/git/v4_0/models/attachment.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Attachment(Model): - """Attachment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: The person that uploaded this attachment - :type author: :class:`IdentityRef ` - :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. - :type content_hash: str - :param created_date: The time the attachment was uploaded - :type created_date: datetime - :param description: The description of the attachment, can be null. - :type description: str - :param display_name: The display name of the attachment, can't be null or empty. - :type display_name: str - :param id: Id of the code review attachment - :type id: int - :param properties: - :type properties: :class:`object ` - :param url: The url to download the content of the attachment - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'content_hash': {'key': 'contentHash', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, author=None, content_hash=None, created_date=None, description=None, display_name=None, id=None, properties=None, url=None): - super(Attachment, self).__init__() - self._links = _links - self.author = author - self.content_hash = content_hash - self.created_date = created_date - self.description = description - self.display_name = display_name - self.id = id - self.properties = properties - self.url = url diff --git a/vsts/vsts/git/v4_0/models/change.py b/vsts/vsts/git/v4_0/models/change.py deleted file mode 100644 index cd0aa11d..00000000 --- a/vsts/vsts/git/v4_0/models/change.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param change_type: - :type change_type: object - :param item: - :type item: object - :param new_content: - :type new_content: :class:`ItemContent ` - :param source_server_item: - :type source_server_item: str - :param url: - :type url: str - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'item': {'key': 'item', 'type': 'object'}, - 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, - 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): - super(Change, self).__init__() - self.change_type = change_type - self.item = item - self.new_content = new_content - self.source_server_item = source_server_item - self.url = url diff --git a/vsts/vsts/git/v4_0/models/comment.py b/vsts/vsts/git/v4_0/models/comment.py deleted file mode 100644 index b516cc6c..00000000 --- a/vsts/vsts/git/v4_0/models/comment.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Comment(Model): - """Comment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: The author of the pull request comment. - :type author: :class:`IdentityRef ` - :param comment_type: Determines what kind of comment when it was created. - :type comment_type: object - :param content: The comment's content. - :type content: str - :param id: The pull request comment id. It always starts from 1. - :type id: int - :param is_deleted: Marks if this comment was soft-deleted. - :type is_deleted: bool - :param last_content_updated_date: The date a comment content was last updated. - :type last_content_updated_date: datetime - :param last_updated_date: The date a comment was last updated. - :type last_updated_date: datetime - :param parent_comment_id: The pull request comment id of the parent comment. This is used for replies - :type parent_comment_id: int - :param published_date: The date a comment was first published. - :type published_date: datetime - :param users_liked: A list of the users who've liked this comment. - :type users_liked: list of :class:`IdentityRef ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'comment_type': {'key': 'commentType', 'type': 'object'}, - 'content': {'key': 'content', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_content_updated_date': {'key': 'lastContentUpdatedDate', 'type': 'iso-8601'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'parent_comment_id': {'key': 'parentCommentId', 'type': 'int'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'users_liked': {'key': 'usersLiked', 'type': '[IdentityRef]'} - } - - def __init__(self, _links=None, author=None, comment_type=None, content=None, id=None, is_deleted=None, last_content_updated_date=None, last_updated_date=None, parent_comment_id=None, published_date=None, users_liked=None): - super(Comment, self).__init__() - self._links = _links - self.author = author - self.comment_type = comment_type - self.content = content - self.id = id - self.is_deleted = is_deleted - self.last_content_updated_date = last_content_updated_date - self.last_updated_date = last_updated_date - self.parent_comment_id = parent_comment_id - self.published_date = published_date - self.users_liked = users_liked diff --git a/vsts/vsts/git/v4_0/models/comment_iteration_context.py b/vsts/vsts/git/v4_0/models/comment_iteration_context.py deleted file mode 100644 index 674d3c5a..00000000 --- a/vsts/vsts/git/v4_0/models/comment_iteration_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentIterationContext(Model): - """CommentIterationContext. - - :param first_comparing_iteration: First comparing iteration Id. Minimum value is 1. - :type first_comparing_iteration: int - :param second_comparing_iteration: Second comparing iteration Id. Minimum value is 1. - :type second_comparing_iteration: int - """ - - _attribute_map = { - 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, - 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} - } - - def __init__(self, first_comparing_iteration=None, second_comparing_iteration=None): - super(CommentIterationContext, self).__init__() - self.first_comparing_iteration = first_comparing_iteration - self.second_comparing_iteration = second_comparing_iteration diff --git a/vsts/vsts/git/v4_0/models/comment_position.py b/vsts/vsts/git/v4_0/models/comment_position.py deleted file mode 100644 index a8e38acd..00000000 --- a/vsts/vsts/git/v4_0/models/comment_position.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentPosition(Model): - """CommentPosition. - - :param line: Position line starting with one. - :type line: int - :param offset: Position offset starting with zero. - :type offset: int - """ - - _attribute_map = { - 'line': {'key': 'line', 'type': 'int'}, - 'offset': {'key': 'offset', 'type': 'int'} - } - - def __init__(self, line=None, offset=None): - super(CommentPosition, self).__init__() - self.line = line - self.offset = offset diff --git a/vsts/vsts/git/v4_0/models/comment_thread.py b/vsts/vsts/git/v4_0/models/comment_thread.py deleted file mode 100644 index f3ab99d9..00000000 --- a/vsts/vsts/git/v4_0/models/comment_thread.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentThread(Model): - """CommentThread. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param comments: A list of the comments. - :type comments: list of :class:`Comment ` - :param id: The comment thread id. - :type id: int - :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted - :type is_deleted: bool - :param last_updated_date: The time this thread was last updated. - :type last_updated_date: datetime - :param properties: A list of (optional) thread properties. - :type properties: :class:`object ` - :param published_date: The time this thread was published. - :type published_date: datetime - :param status: The status of the comment thread. - :type status: object - :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comments': {'key': 'comments', 'type': '[Comment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'} - } - - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): - super(CommentThread, self).__init__() - self._links = _links - self.comments = comments - self.id = id - self.is_deleted = is_deleted - self.last_updated_date = last_updated_date - self.properties = properties - self.published_date = published_date - self.status = status - self.thread_context = thread_context diff --git a/vsts/vsts/git/v4_0/models/comment_thread_context.py b/vsts/vsts/git/v4_0/models/comment_thread_context.py deleted file mode 100644 index cb264f7e..00000000 --- a/vsts/vsts/git/v4_0/models/comment_thread_context.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentThreadContext(Model): - """CommentThreadContext. - - :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. - :type file_path: str - :param left_file_end: Position of last character of the comment in left file. - :type left_file_end: :class:`CommentPosition ` - :param left_file_start: Position of first character of the comment in left file. - :type left_file_start: :class:`CommentPosition ` - :param right_file_end: Position of last character of the comment in right file. - :type right_file_end: :class:`CommentPosition ` - :param right_file_start: Position of first character of the comment in right file. - :type right_file_start: :class:`CommentPosition ` - """ - - _attribute_map = { - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'left_file_end': {'key': 'leftFileEnd', 'type': 'CommentPosition'}, - 'left_file_start': {'key': 'leftFileStart', 'type': 'CommentPosition'}, - 'right_file_end': {'key': 'rightFileEnd', 'type': 'CommentPosition'}, - 'right_file_start': {'key': 'rightFileStart', 'type': 'CommentPosition'} - } - - def __init__(self, file_path=None, left_file_end=None, left_file_start=None, right_file_end=None, right_file_start=None): - super(CommentThreadContext, self).__init__() - self.file_path = file_path - self.left_file_end = left_file_end - self.left_file_start = left_file_start - self.right_file_end = right_file_end - self.right_file_start = right_file_start diff --git a/vsts/vsts/git/v4_0/models/comment_tracking_criteria.py b/vsts/vsts/git/v4_0/models/comment_tracking_criteria.py deleted file mode 100644 index e9407863..00000000 --- a/vsts/vsts/git/v4_0/models/comment_tracking_criteria.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentTrackingCriteria(Model): - """CommentTrackingCriteria. - - :param first_comparing_iteration: The first comparing iteration being viewed. Threads will be tracked if this is greater than 0. - :type first_comparing_iteration: int - :param orig_left_file_end: Original position of last character of the comment in left file. - :type orig_left_file_end: :class:`CommentPosition ` - :param orig_left_file_start: Original position of first character of the comment in left file. - :type orig_left_file_start: :class:`CommentPosition ` - :param orig_right_file_end: Original position of last character of the comment in right file. - :type orig_right_file_end: :class:`CommentPosition ` - :param orig_right_file_start: Original position of first character of the comment in right file. - :type orig_right_file_start: :class:`CommentPosition ` - :param second_comparing_iteration: The second comparing iteration being viewed. Threads will be tracked if this is greater than 0. - :type second_comparing_iteration: int - """ - - _attribute_map = { - 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, - 'orig_left_file_end': {'key': 'origLeftFileEnd', 'type': 'CommentPosition'}, - 'orig_left_file_start': {'key': 'origLeftFileStart', 'type': 'CommentPosition'}, - 'orig_right_file_end': {'key': 'origRightFileEnd', 'type': 'CommentPosition'}, - 'orig_right_file_start': {'key': 'origRightFileStart', 'type': 'CommentPosition'}, - 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} - } - - def __init__(self, first_comparing_iteration=None, orig_left_file_end=None, orig_left_file_start=None, orig_right_file_end=None, orig_right_file_start=None, second_comparing_iteration=None): - super(CommentTrackingCriteria, self).__init__() - self.first_comparing_iteration = first_comparing_iteration - self.orig_left_file_end = orig_left_file_end - self.orig_left_file_start = orig_left_file_start - self.orig_right_file_end = orig_right_file_end - self.orig_right_file_start = orig_right_file_start - self.second_comparing_iteration = second_comparing_iteration diff --git a/vsts/vsts/git/v4_0/models/file_content_metadata.py b/vsts/vsts/git/v4_0/models/file_content_metadata.py deleted file mode 100644 index d2d6667d..00000000 --- a/vsts/vsts/git/v4_0/models/file_content_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FileContentMetadata(Model): - """FileContentMetadata. - - :param content_type: - :type content_type: str - :param encoding: - :type encoding: int - :param extension: - :type extension: str - :param file_name: - :type file_name: str - :param is_binary: - :type is_binary: bool - :param is_image: - :type is_image: bool - :param vs_link: - :type vs_link: str - """ - - _attribute_map = { - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'encoding': {'key': 'encoding', 'type': 'int'}, - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'is_binary': {'key': 'isBinary', 'type': 'bool'}, - 'is_image': {'key': 'isImage', 'type': 'bool'}, - 'vs_link': {'key': 'vsLink', 'type': 'str'} - } - - def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): - super(FileContentMetadata, self).__init__() - self.content_type = content_type - self.encoding = encoding - self.extension = extension - self.file_name = file_name - self.is_binary = is_binary - self.is_image = is_image - self.vs_link = vs_link diff --git a/vsts/vsts/git/v4_0/models/git_annotated_tag.py b/vsts/vsts/git/v4_0/models/git_annotated_tag.py deleted file mode 100644 index 6a9aaf45..00000000 --- a/vsts/vsts/git/v4_0/models/git_annotated_tag.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAnnotatedTag(Model): - """GitAnnotatedTag. - - :param message: Tagging Message - :type message: str - :param name: - :type name: str - :param object_id: - :type object_id: str - :param tagged_by: User name, Email and date of tagging - :type tagged_by: :class:`GitUserDate ` - :param tagged_object: Tagged git object - :type tagged_object: :class:`GitObject ` - :param url: - :type url: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'tagged_by': {'key': 'taggedBy', 'type': 'GitUserDate'}, - 'tagged_object': {'key': 'taggedObject', 'type': 'GitObject'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, message=None, name=None, object_id=None, tagged_by=None, tagged_object=None, url=None): - super(GitAnnotatedTag, self).__init__() - self.message = message - self.name = name - self.object_id = object_id - self.tagged_by = tagged_by - self.tagged_object = tagged_object - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_async_ref_operation.py b/vsts/vsts/git/v4_0/models/git_async_ref_operation.py deleted file mode 100644 index f9763339..00000000 --- a/vsts/vsts/git/v4_0/models/git_async_ref_operation.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperation(Model): - """GitAsyncRefOperation. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` - :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` - :param status: - :type status: object - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, - 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None): - super(GitAsyncRefOperation, self).__init__() - self._links = _links - self.detailed_status = detailed_status - self.parameters = parameters - self.status = status - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py b/vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py deleted file mode 100644 index dd80ba0a..00000000 --- a/vsts/vsts/git/v4_0/models/git_async_ref_operation_detail.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperationDetail(Model): - """GitAsyncRefOperationDetail. - - :param conflict: - :type conflict: bool - :param current_commit_id: - :type current_commit_id: str - :param failure_message: - :type failure_message: str - :param progress: - :type progress: float - :param status: - :type status: object - :param timedout: - :type timedout: bool - """ - - _attribute_map = { - 'conflict': {'key': 'conflict', 'type': 'bool'}, - 'current_commit_id': {'key': 'currentCommitId', 'type': 'str'}, - 'failure_message': {'key': 'failureMessage', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'float'}, - 'status': {'key': 'status', 'type': 'object'}, - 'timedout': {'key': 'timedout', 'type': 'bool'} - } - - def __init__(self, conflict=None, current_commit_id=None, failure_message=None, progress=None, status=None, timedout=None): - super(GitAsyncRefOperationDetail, self).__init__() - self.conflict = conflict - self.current_commit_id = current_commit_id - self.failure_message = failure_message - self.progress = progress - self.status = status - self.timedout = timedout diff --git a/vsts/vsts/git/v4_0/models/git_async_ref_operation_parameters.py b/vsts/vsts/git/v4_0/models/git_async_ref_operation_parameters.py deleted file mode 100644 index bc98c96f..00000000 --- a/vsts/vsts/git/v4_0/models/git_async_ref_operation_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperationParameters(Model): - """GitAsyncRefOperationParameters. - - :param generated_ref_name: - :type generated_ref_name: str - :param onto_ref_name: - :type onto_ref_name: str - :param repository: - :type repository: :class:`GitRepository ` - :param source: - :type source: :class:`GitAsyncRefOperationSource ` - """ - - _attribute_map = { - 'generated_ref_name': {'key': 'generatedRefName', 'type': 'str'}, - 'onto_ref_name': {'key': 'ontoRefName', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'source': {'key': 'source', 'type': 'GitAsyncRefOperationSource'} - } - - def __init__(self, generated_ref_name=None, onto_ref_name=None, repository=None, source=None): - super(GitAsyncRefOperationParameters, self).__init__() - self.generated_ref_name = generated_ref_name - self.onto_ref_name = onto_ref_name - self.repository = repository - self.source = source diff --git a/vsts/vsts/git/v4_0/models/git_async_ref_operation_source.py b/vsts/vsts/git/v4_0/models/git_async_ref_operation_source.py deleted file mode 100644 index 46831949..00000000 --- a/vsts/vsts/git/v4_0/models/git_async_ref_operation_source.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperationSource(Model): - """GitAsyncRefOperationSource. - - :param commit_list: - :type commit_list: list of :class:`GitCommitRef ` - :param pull_request_id: - :type pull_request_id: int - """ - - _attribute_map = { - 'commit_list': {'key': 'commitList', 'type': '[GitCommitRef]'}, - 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} - } - - def __init__(self, commit_list=None, pull_request_id=None): - super(GitAsyncRefOperationSource, self).__init__() - self.commit_list = commit_list - self.pull_request_id = pull_request_id diff --git a/vsts/vsts/git/v4_0/models/git_base_version_descriptor.py b/vsts/vsts/git/v4_0/models/git_base_version_descriptor.py deleted file mode 100644 index d922e638..00000000 --- a/vsts/vsts/git/v4_0/models/git_base_version_descriptor.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_version_descriptor import GitVersionDescriptor - - -class GitBaseVersionDescriptor(GitVersionDescriptor): - """GitBaseVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - :param base_version: Version string identifier (name of tag/branch, SHA1 of commit) - :type base_version: str - :param base_version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type base_version_options: object - :param base_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type base_version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'}, - 'base_version': {'key': 'baseVersion', 'type': 'str'}, - 'base_version_options': {'key': 'baseVersionOptions', 'type': 'object'}, - 'base_version_type': {'key': 'baseVersionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None, base_version=None, base_version_options=None, base_version_type=None): - super(GitBaseVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) - self.base_version = base_version - self.base_version_options = base_version_options - self.base_version_type = base_version_type diff --git a/vsts/vsts/git/v4_0/models/git_blob_ref.py b/vsts/vsts/git/v4_0/models/git_blob_ref.py deleted file mode 100644 index 81c546c6..00000000 --- a/vsts/vsts/git/v4_0/models/git_blob_ref.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitBlobRef(Model): - """GitBlobRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param object_id: SHA1 hash of git object - :type object_id: str - :param size: Size of blob content (in bytes) - :type size: long - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, object_id=None, size=None, url=None): - super(GitBlobRef, self).__init__() - self._links = _links - self.object_id = object_id - self.size = size - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_branch_stats.py b/vsts/vsts/git/v4_0/models/git_branch_stats.py deleted file mode 100644 index 88629a1b..00000000 --- a/vsts/vsts/git/v4_0/models/git_branch_stats.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitBranchStats(Model): - """GitBranchStats. - - :param ahead_count: - :type ahead_count: int - :param behind_count: - :type behind_count: int - :param commit: - :type commit: :class:`GitCommitRef ` - :param is_base_version: - :type is_base_version: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, - 'behind_count': {'key': 'behindCount', 'type': 'int'}, - 'commit': {'key': 'commit', 'type': 'GitCommitRef'}, - 'is_base_version': {'key': 'isBaseVersion', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, ahead_count=None, behind_count=None, commit=None, is_base_version=None, name=None): - super(GitBranchStats, self).__init__() - self.ahead_count = ahead_count - self.behind_count = behind_count - self.commit = commit - self.is_base_version = is_base_version - self.name = name diff --git a/vsts/vsts/git/v4_0/models/git_cherry_pick.py b/vsts/vsts/git/v4_0/models/git_cherry_pick.py deleted file mode 100644 index c211ad1f..00000000 --- a/vsts/vsts/git/v4_0/models/git_cherry_pick.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_async_ref_operation import GitAsyncRefOperation - - -class GitCherryPick(GitAsyncRefOperation): - """GitCherryPick. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` - :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` - :param status: - :type status: object - :param url: - :type url: str - :param cherry_pick_id: - :type cherry_pick_id: int - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, - 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'cherry_pick_id': {'key': 'cherryPickId', 'type': 'int'} - } - - def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, cherry_pick_id=None): - super(GitCherryPick, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) - self.cherry_pick_id = cherry_pick_id diff --git a/vsts/vsts/git/v4_0/models/git_commit.py b/vsts/vsts/git/v4_0/models/git_commit.py deleted file mode 100644 index f6df7bfd..00000000 --- a/vsts/vsts/git/v4_0/models/git_commit.py +++ /dev/null @@ -1,68 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_commit_ref import GitCommitRef - - -class GitCommit(GitCommitRef): - """GitCommit. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`GitUserDate ` - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param commit_id: - :type commit_id: str - :param committer: - :type committer: :class:`GitUserDate ` - :param parents: - :type parents: list of str - :param remote_url: - :type remote_url: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - :param work_items: - :type work_items: list of :class:`ResourceRef ` - :param push: - :type push: :class:`GitPushRef ` - :param tree_id: - :type tree_id: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'parents': {'key': 'parents', 'type': '[str]'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'}, - 'push': {'key': 'push', 'type': 'GitPushRef'}, - 'tree_id': {'key': 'treeId', 'type': 'str'} - } - - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None, push=None, tree_id=None): - super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) - self.push = push - self.tree_id = tree_id diff --git a/vsts/vsts/git/v4_0/models/git_commit_changes.py b/vsts/vsts/git/v4_0/models/git_commit_changes.py deleted file mode 100644 index 2c3fc537..00000000 --- a/vsts/vsts/git/v4_0/models/git_commit_changes.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitCommitChanges(Model): - """GitCommitChanges. - - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - """ - - _attribute_map = { - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'} - } - - def __init__(self, change_counts=None, changes=None): - super(GitCommitChanges, self).__init__() - self.change_counts = change_counts - self.changes = changes diff --git a/vsts/vsts/git/v4_0/models/git_commit_diffs.py b/vsts/vsts/git/v4_0/models/git_commit_diffs.py deleted file mode 100644 index bd85ac82..00000000 --- a/vsts/vsts/git/v4_0/models/git_commit_diffs.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitCommitDiffs(Model): - """GitCommitDiffs. - - :param ahead_count: - :type ahead_count: int - :param all_changes_included: - :type all_changes_included: bool - :param base_commit: - :type base_commit: str - :param behind_count: - :type behind_count: int - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param common_commit: - :type common_commit: str - :param target_commit: - :type target_commit: str - """ - - _attribute_map = { - 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, - 'all_changes_included': {'key': 'allChangesIncluded', 'type': 'bool'}, - 'base_commit': {'key': 'baseCommit', 'type': 'str'}, - 'behind_count': {'key': 'behindCount', 'type': 'int'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'common_commit': {'key': 'commonCommit', 'type': 'str'}, - 'target_commit': {'key': 'targetCommit', 'type': 'str'} - } - - def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None, behind_count=None, change_counts=None, changes=None, common_commit=None, target_commit=None): - super(GitCommitDiffs, self).__init__() - self.ahead_count = ahead_count - self.all_changes_included = all_changes_included - self.base_commit = base_commit - self.behind_count = behind_count - self.change_counts = change_counts - self.changes = changes - self.common_commit = common_commit - self.target_commit = target_commit diff --git a/vsts/vsts/git/v4_0/models/git_commit_ref.py b/vsts/vsts/git/v4_0/models/git_commit_ref.py deleted file mode 100644 index ef019e14..00000000 --- a/vsts/vsts/git/v4_0/models/git_commit_ref.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitCommitRef(Model): - """GitCommitRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`GitUserDate ` - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param commit_id: - :type commit_id: str - :param committer: - :type committer: :class:`GitUserDate ` - :param parents: - :type parents: list of str - :param remote_url: - :type remote_url: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - :param work_items: - :type work_items: list of :class:`ResourceRef ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'parents': {'key': 'parents', 'type': '[str]'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} - } - - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): - super(GitCommitRef, self).__init__() - self._links = _links - self.author = author - self.change_counts = change_counts - self.changes = changes - self.comment = comment - self.comment_truncated = comment_truncated - self.commit_id = commit_id - self.committer = committer - self.parents = parents - self.remote_url = remote_url - self.statuses = statuses - self.url = url - self.work_items = work_items diff --git a/vsts/vsts/git/v4_0/models/git_conflict.py b/vsts/vsts/git/v4_0/models/git_conflict.py deleted file mode 100644 index 79766c04..00000000 --- a/vsts/vsts/git/v4_0/models/git_conflict.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitConflict(Model): - """GitConflict. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param conflict_id: - :type conflict_id: int - :param conflict_path: - :type conflict_path: str - :param conflict_type: - :type conflict_type: object - :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` - :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` - :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` - :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` - :param resolution_error: - :type resolution_error: object - :param resolution_status: - :type resolution_status: object - :param resolved_by: - :type resolved_by: :class:`IdentityRef ` - :param resolved_date: - :type resolved_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'conflict_id': {'key': 'conflictId', 'type': 'int'}, - 'conflict_path': {'key': 'conflictPath', 'type': 'str'}, - 'conflict_type': {'key': 'conflictType', 'type': 'object'}, - 'merge_base_commit': {'key': 'mergeBaseCommit', 'type': 'GitCommitRef'}, - 'merge_origin': {'key': 'mergeOrigin', 'type': 'GitMergeOriginRef'}, - 'merge_source_commit': {'key': 'mergeSourceCommit', 'type': 'GitCommitRef'}, - 'merge_target_commit': {'key': 'mergeTargetCommit', 'type': 'GitCommitRef'}, - 'resolution_error': {'key': 'resolutionError', 'type': 'object'}, - 'resolution_status': {'key': 'resolutionStatus', 'type': 'object'}, - 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'}, - 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, conflict_id=None, conflict_path=None, conflict_type=None, merge_base_commit=None, merge_origin=None, merge_source_commit=None, merge_target_commit=None, resolution_error=None, resolution_status=None, resolved_by=None, resolved_date=None, url=None): - super(GitConflict, self).__init__() - self._links = _links - self.conflict_id = conflict_id - self.conflict_path = conflict_path - self.conflict_type = conflict_type - self.merge_base_commit = merge_base_commit - self.merge_origin = merge_origin - self.merge_source_commit = merge_source_commit - self.merge_target_commit = merge_target_commit - self.resolution_error = resolution_error - self.resolution_status = resolution_status - self.resolved_by = resolved_by - self.resolved_date = resolved_date - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_deleted_repository.py b/vsts/vsts/git/v4_0/models/git_deleted_repository.py deleted file mode 100644 index a51bb682..00000000 --- a/vsts/vsts/git/v4_0/models/git_deleted_repository.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitDeletedRepository(Model): - """GitDeletedRepository. - - :param created_date: - :type created_date: datetime - :param deleted_by: - :type deleted_by: :class:`IdentityRef ` - :param deleted_date: - :type deleted_date: datetime - :param id: - :type id: str - :param name: - :type name: str - :param project: - :type project: :class:`TeamProjectReference ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'} - } - - def __init__(self, created_date=None, deleted_by=None, deleted_date=None, id=None, name=None, project=None): - super(GitDeletedRepository, self).__init__() - self.created_date = created_date - self.deleted_by = deleted_by - self.deleted_date = deleted_date - self.id = id - self.name = name - self.project = project diff --git a/vsts/vsts/git/v4_0/models/git_file_paths_collection.py b/vsts/vsts/git/v4_0/models/git_file_paths_collection.py deleted file mode 100644 index 9d0863d6..00000000 --- a/vsts/vsts/git/v4_0/models/git_file_paths_collection.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitFilePathsCollection(Model): - """GitFilePathsCollection. - - :param commit_id: - :type commit_id: str - :param paths: - :type paths: list of str - :param url: - :type url: str - """ - - _attribute_map = { - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, commit_id=None, paths=None, url=None): - super(GitFilePathsCollection, self).__init__() - self.commit_id = commit_id - self.paths = paths - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_fork_operation_status_detail.py b/vsts/vsts/git/v4_0/models/git_fork_operation_status_detail.py deleted file mode 100644 index ce438967..00000000 --- a/vsts/vsts/git/v4_0/models/git_fork_operation_status_detail.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitForkOperationStatusDetail(Model): - """GitForkOperationStatusDetail. - - :param all_steps: All valid steps for the forking process - :type all_steps: list of str - :param current_step: Index into AllSteps for the current step - :type current_step: int - :param error_message: Error message if the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'all_steps': {'key': 'allSteps', 'type': '[str]'}, - 'current_step': {'key': 'currentStep', 'type': 'int'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'} - } - - def __init__(self, all_steps=None, current_step=None, error_message=None): - super(GitForkOperationStatusDetail, self).__init__() - self.all_steps = all_steps - self.current_step = current_step - self.error_message = error_message diff --git a/vsts/vsts/git/v4_0/models/git_fork_ref.py b/vsts/vsts/git/v4_0/models/git_fork_ref.py deleted file mode 100644 index ac966f79..00000000 --- a/vsts/vsts/git/v4_0/models/git_fork_ref.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_ref import GitRef - - -class GitForkRef(GitRef): - """GitForkRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param is_locked: - :type is_locked: bool - :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` - :param name: - :type name: str - :param object_id: - :type object_id: str - :param peeled_object_id: - :type peeled_object_id: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - :param repository: - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): - super(GitForkRef, self).__init__(_links=_links, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) - self.repository = repository diff --git a/vsts/vsts/git/v4_0/models/git_fork_sync_request.py b/vsts/vsts/git/v4_0/models/git_fork_sync_request.py deleted file mode 100644 index 82d11ed3..00000000 --- a/vsts/vsts/git/v4_0/models/git_fork_sync_request.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitForkSyncRequest(Model): - """GitForkSyncRequest. - - :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` - :param operation_id: Unique identifier for the operation. - :type operation_id: int - :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` - :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` - :param status: - :type status: object - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitForkOperationStatusDetail'}, - 'operation_id': {'key': 'operationId', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, - 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, _links=None, detailed_status=None, operation_id=None, source=None, source_to_target_refs=None, status=None): - super(GitForkSyncRequest, self).__init__() - self._links = _links - self.detailed_status = detailed_status - self.operation_id = operation_id - self.source = source - self.source_to_target_refs = source_to_target_refs - self.status = status diff --git a/vsts/vsts/git/v4_0/models/git_fork_sync_request_parameters.py b/vsts/vsts/git/v4_0/models/git_fork_sync_request_parameters.py deleted file mode 100644 index 25c51324..00000000 --- a/vsts/vsts/git/v4_0/models/git_fork_sync_request_parameters.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitForkSyncRequestParameters(Model): - """GitForkSyncRequestParameters. - - :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` - :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` - """ - - _attribute_map = { - 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, - 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'} - } - - def __init__(self, source=None, source_to_target_refs=None): - super(GitForkSyncRequestParameters, self).__init__() - self.source = source - self.source_to_target_refs = source_to_target_refs diff --git a/vsts/vsts/git/v4_0/models/git_import_git_source.py b/vsts/vsts/git/v4_0/models/git_import_git_source.py deleted file mode 100644 index bc20b2b8..00000000 --- a/vsts/vsts/git/v4_0/models/git_import_git_source.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportGitSource(Model): - """GitImportGitSource. - - :param overwrite: Tells if this is a sync request or not - :type overwrite: bool - :param url: Url for the source repo - :type url: str - """ - - _attribute_map = { - 'overwrite': {'key': 'overwrite', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, overwrite=None, url=None): - super(GitImportGitSource, self).__init__() - self.overwrite = overwrite - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_import_request.py b/vsts/vsts/git/v4_0/models/git_import_request.py deleted file mode 100644 index b68fb658..00000000 --- a/vsts/vsts/git/v4_0/models/git_import_request.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportRequest(Model): - """GitImportRequest. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitImportStatusDetail ` - :param import_request_id: - :type import_request_id: int - :param parameters: Parameters for creating an import request - :type parameters: :class:`GitImportRequestParameters ` - :param repository: - :type repository: :class:`GitRepository ` - :param status: - :type status: object - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitImportStatusDetail'}, - 'import_request_id': {'key': 'importRequestId', 'type': 'int'}, - 'parameters': {'key': 'parameters', 'type': 'GitImportRequestParameters'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, detailed_status=None, import_request_id=None, parameters=None, repository=None, status=None, url=None): - super(GitImportRequest, self).__init__() - self._links = _links - self.detailed_status = detailed_status - self.import_request_id = import_request_id - self.parameters = parameters - self.repository = repository - self.status = status - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_import_request_parameters.py b/vsts/vsts/git/v4_0/models/git_import_request_parameters.py deleted file mode 100644 index f03b5016..00000000 --- a/vsts/vsts/git/v4_0/models/git_import_request_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportRequestParameters(Model): - """GitImportRequestParameters. - - :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done - :type delete_service_endpoint_after_import_is_done: bool - :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` - :param service_endpoint_id: Service Endpoint for connection to external endpoint - :type service_endpoint_id: str - :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` - """ - - _attribute_map = { - 'delete_service_endpoint_after_import_is_done': {'key': 'deleteServiceEndpointAfterImportIsDone', 'type': 'bool'}, - 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, - 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'}, - 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'} - } - - def __init__(self, delete_service_endpoint_after_import_is_done=None, git_source=None, service_endpoint_id=None, tfvc_source=None): - super(GitImportRequestParameters, self).__init__() - self.delete_service_endpoint_after_import_is_done = delete_service_endpoint_after_import_is_done - self.git_source = git_source - self.service_endpoint_id = service_endpoint_id - self.tfvc_source = tfvc_source diff --git a/vsts/vsts/git/v4_0/models/git_import_status_detail.py b/vsts/vsts/git/v4_0/models/git_import_status_detail.py deleted file mode 100644 index 00589c5d..00000000 --- a/vsts/vsts/git/v4_0/models/git_import_status_detail.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportStatusDetail(Model): - """GitImportStatusDetail. - - :param all_steps: - :type all_steps: list of str - :param current_step: - :type current_step: int - :param error_message: - :type error_message: str - """ - - _attribute_map = { - 'all_steps': {'key': 'allSteps', 'type': '[str]'}, - 'current_step': {'key': 'currentStep', 'type': 'int'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'} - } - - def __init__(self, all_steps=None, current_step=None, error_message=None): - super(GitImportStatusDetail, self).__init__() - self.all_steps = all_steps - self.current_step = current_step - self.error_message = error_message diff --git a/vsts/vsts/git/v4_0/models/git_import_tfvc_source.py b/vsts/vsts/git/v4_0/models/git_import_tfvc_source.py deleted file mode 100644 index 57f185fc..00000000 --- a/vsts/vsts/git/v4_0/models/git_import_tfvc_source.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportTfvcSource(Model): - """GitImportTfvcSource. - - :param import_history: Set true to import History, false otherwise - :type import_history: bool - :param import_history_duration_in_days: Get history for last n days (max allowed value is 180 days) - :type import_history_duration_in_days: int - :param path: Path which we want to import (this can be copied from Path Control in Explorer) - :type path: str - """ - - _attribute_map = { - 'import_history': {'key': 'importHistory', 'type': 'bool'}, - 'import_history_duration_in_days': {'key': 'importHistoryDurationInDays', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, import_history=None, import_history_duration_in_days=None, path=None): - super(GitImportTfvcSource, self).__init__() - self.import_history = import_history - self.import_history_duration_in_days = import_history_duration_in_days - self.path = path diff --git a/vsts/vsts/git/v4_0/models/git_item.py b/vsts/vsts/git/v4_0/models/git_item.py deleted file mode 100644 index 0af3c7a8..00000000 --- a/vsts/vsts/git/v4_0/models/git_item.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .item_model import ItemModel - - -class GitItem(ItemModel): - """GitItem. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - :param commit_id: SHA1 of commit item was fetched at - :type commit_id: str - :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) - :type git_object_type: object - :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` - :param object_id: Git object id - :type object_id: str - :param original_object_id: Git object id - :type original_object_id: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, - 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): - super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) - self.commit_id = commit_id - self.git_object_type = git_object_type - self.latest_processed_change = latest_processed_change - self.object_id = object_id - self.original_object_id = original_object_id diff --git a/vsts/vsts/git/v4_0/models/git_item_descriptor.py b/vsts/vsts/git/v4_0/models/git_item_descriptor.py deleted file mode 100644 index 3995a564..00000000 --- a/vsts/vsts/git/v4_0/models/git_item_descriptor.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitItemDescriptor(Model): - """GitItemDescriptor. - - :param path: Path to item - :type path: str - :param recursion_level: Specifies whether to include children (OneLevel), all descendants (Full), or None - :type recursion_level: object - :param version: Version string (interpretation based on VersionType defined in subclass - :type version: str - :param version_options: Version modifiers (e.g. previous) - :type version_options: object - :param version_type: How to interpret version (branch,tag,commit) - :type version_type: object - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, path=None, recursion_level=None, version=None, version_options=None, version_type=None): - super(GitItemDescriptor, self).__init__() - self.path = path - self.recursion_level = recursion_level - self.version = version - self.version_options = version_options - self.version_type = version_type diff --git a/vsts/vsts/git/v4_0/models/git_item_request_data.py b/vsts/vsts/git/v4_0/models/git_item_request_data.py deleted file mode 100644 index 4e2f4341..00000000 --- a/vsts/vsts/git/v4_0/models/git_item_request_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitItemRequestData(Model): - """GitItemRequestData. - - :param include_content_metadata: Whether to include metadata for all items - :type include_content_metadata: bool - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` - :param latest_processed_change: Whether to include shallow ref to commit that last changed each item - :type latest_processed_change: bool - """ - - _attribute_map = { - 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_descriptors': {'key': 'itemDescriptors', 'type': '[GitItemDescriptor]'}, - 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'bool'} - } - - def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None, latest_processed_change=None): - super(GitItemRequestData, self).__init__() - self.include_content_metadata = include_content_metadata - self.include_links = include_links - self.item_descriptors = item_descriptors - self.latest_processed_change = latest_processed_change diff --git a/vsts/vsts/git/v4_0/models/git_merge_origin_ref.py b/vsts/vsts/git/v4_0/models/git_merge_origin_ref.py deleted file mode 100644 index de5b7b63..00000000 --- a/vsts/vsts/git/v4_0/models/git_merge_origin_ref.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitMergeOriginRef(Model): - """GitMergeOriginRef. - - :param pull_request_id: - :type pull_request_id: int - """ - - _attribute_map = { - 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} - } - - def __init__(self, pull_request_id=None): - super(GitMergeOriginRef, self).__init__() - self.pull_request_id = pull_request_id diff --git a/vsts/vsts/git/v4_0/models/git_object.py b/vsts/vsts/git/v4_0/models/git_object.py deleted file mode 100644 index 7521188c..00000000 --- a/vsts/vsts/git/v4_0/models/git_object.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitObject(Model): - """GitObject. - - :param object_id: Git object id - :type object_id: str - :param object_type: Type of object (Commit, Tree, Blob, Tag) - :type object_type: object - """ - - _attribute_map = { - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'object'} - } - - def __init__(self, object_id=None, object_type=None): - super(GitObject, self).__init__() - self.object_id = object_id - self.object_type = object_type diff --git a/vsts/vsts/git/v4_0/models/git_pull_request.py b/vsts/vsts/git/v4_0/models/git_pull_request.py deleted file mode 100644 index baafdfe2..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request.py +++ /dev/null @@ -1,153 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequest(Model): - """GitPullRequest. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param artifact_id: - :type artifact_id: str - :param auto_complete_set_by: - :type auto_complete_set_by: :class:`IdentityRef ` - :param closed_by: - :type closed_by: :class:`IdentityRef ` - :param closed_date: - :type closed_date: datetime - :param code_review_id: - :type code_review_id: int - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param completion_options: - :type completion_options: :class:`GitPullRequestCompletionOptions ` - :param completion_queue_time: - :type completion_queue_time: datetime - :param created_by: - :type created_by: :class:`IdentityRef ` - :param creation_date: - :type creation_date: datetime - :param description: - :type description: str - :param fork_source: - :type fork_source: :class:`GitForkRef ` - :param labels: - :type labels: list of :class:`WebApiTagDefinition ` - :param last_merge_commit: - :type last_merge_commit: :class:`GitCommitRef ` - :param last_merge_source_commit: - :type last_merge_source_commit: :class:`GitCommitRef ` - :param last_merge_target_commit: - :type last_merge_target_commit: :class:`GitCommitRef ` - :param merge_failure_message: - :type merge_failure_message: str - :param merge_failure_type: - :type merge_failure_type: object - :param merge_id: - :type merge_id: str - :param merge_options: - :type merge_options: :class:`GitPullRequestMergeOptions ` - :param merge_status: - :type merge_status: object - :param pull_request_id: - :type pull_request_id: int - :param remote_url: - :type remote_url: str - :param repository: - :type repository: :class:`GitRepository ` - :param reviewers: - :type reviewers: list of :class:`IdentityRefWithVote ` - :param source_ref_name: - :type source_ref_name: str - :param status: - :type status: object - :param supports_iterations: - :type supports_iterations: bool - :param target_ref_name: - :type target_ref_name: str - :param title: - :type title: str - :param url: - :type url: str - :param work_item_refs: - :type work_item_refs: list of :class:`ResourceRef ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'auto_complete_set_by': {'key': 'autoCompleteSetBy', 'type': 'IdentityRef'}, - 'closed_by': {'key': 'closedBy', 'type': 'IdentityRef'}, - 'closed_date': {'key': 'closedDate', 'type': 'iso-8601'}, - 'code_review_id': {'key': 'codeReviewId', 'type': 'int'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'completion_options': {'key': 'completionOptions', 'type': 'GitPullRequestCompletionOptions'}, - 'completion_queue_time': {'key': 'completionQueueTime', 'type': 'iso-8601'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fork_source': {'key': 'forkSource', 'type': 'GitForkRef'}, - 'labels': {'key': 'labels', 'type': '[WebApiTagDefinition]'}, - 'last_merge_commit': {'key': 'lastMergeCommit', 'type': 'GitCommitRef'}, - 'last_merge_source_commit': {'key': 'lastMergeSourceCommit', 'type': 'GitCommitRef'}, - 'last_merge_target_commit': {'key': 'lastMergeTargetCommit', 'type': 'GitCommitRef'}, - 'merge_failure_message': {'key': 'mergeFailureMessage', 'type': 'str'}, - 'merge_failure_type': {'key': 'mergeFailureType', 'type': 'object'}, - 'merge_id': {'key': 'mergeId', 'type': 'str'}, - 'merge_options': {'key': 'mergeOptions', 'type': 'GitPullRequestMergeOptions'}, - 'merge_status': {'key': 'mergeStatus', 'type': 'object'}, - 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'reviewers': {'key': 'reviewers', 'type': '[IdentityRefWithVote]'}, - 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'supports_iterations': {'key': 'supportsIterations', 'type': 'bool'}, - 'target_ref_name': {'key': 'targetRefName', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_item_refs': {'key': 'workItemRefs', 'type': '[ResourceRef]'} - } - - def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): - super(GitPullRequest, self).__init__() - self._links = _links - self.artifact_id = artifact_id - self.auto_complete_set_by = auto_complete_set_by - self.closed_by = closed_by - self.closed_date = closed_date - self.code_review_id = code_review_id - self.commits = commits - self.completion_options = completion_options - self.completion_queue_time = completion_queue_time - self.created_by = created_by - self.creation_date = creation_date - self.description = description - self.fork_source = fork_source - self.labels = labels - self.last_merge_commit = last_merge_commit - self.last_merge_source_commit = last_merge_source_commit - self.last_merge_target_commit = last_merge_target_commit - self.merge_failure_message = merge_failure_message - self.merge_failure_type = merge_failure_type - self.merge_id = merge_id - self.merge_options = merge_options - self.merge_status = merge_status - self.pull_request_id = pull_request_id - self.remote_url = remote_url - self.repository = repository - self.reviewers = reviewers - self.source_ref_name = source_ref_name - self.status = status - self.supports_iterations = supports_iterations - self.target_ref_name = target_ref_name - self.title = title - self.url = url - self.work_item_refs = work_item_refs diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_change.py b/vsts/vsts/git/v4_0/models/git_pull_request_change.py deleted file mode 100644 index b8333c17..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_change.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestChange(Model): - """GitPullRequestChange. - - :param change_tracking_id: Id used to track files through multiple changes - :type change_tracking_id: int - """ - - _attribute_map = { - 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'} - } - - def __init__(self, change_tracking_id=None): - super(GitPullRequestChange, self).__init__() - self.change_tracking_id = change_tracking_id diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_comment_thread.py b/vsts/vsts/git/v4_0/models/git_pull_request_comment_thread.py deleted file mode 100644 index b6cc3580..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_comment_thread.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .comment_thread import CommentThread - - -class GitPullRequestCommentThread(CommentThread): - """GitPullRequestCommentThread. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param comments: A list of the comments. - :type comments: list of :class:`Comment ` - :param id: The comment thread id. - :type id: int - :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted - :type is_deleted: bool - :param last_updated_date: The time this thread was last updated. - :type last_updated_date: datetime - :param properties: A list of (optional) thread properties. - :type properties: :class:`object ` - :param published_date: The time this thread was published. - :type published_date: datetime - :param status: The status of the comment thread. - :type status: object - :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` - :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comments': {'key': 'comments', 'type': '[Comment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'}, - 'pull_request_thread_context': {'key': 'pullRequestThreadContext', 'type': 'GitPullRequestCommentThreadContext'} - } - - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): - super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) - self.pull_request_thread_context = pull_request_thread_context diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_comment_thread_context.py b/vsts/vsts/git/v4_0/models/git_pull_request_comment_thread_context.py deleted file mode 100644 index 62f9c749..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_comment_thread_context.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestCommentThreadContext(Model): - """GitPullRequestCommentThreadContext. - - :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. - :type change_tracking_id: int - :param iteration_context: Specify comparing iteration Ids when a comment thread is added while comparing 2 iterations. - :type iteration_context: :class:`CommentIterationContext ` - :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` - """ - - _attribute_map = { - 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'}, - 'iteration_context': {'key': 'iterationContext', 'type': 'CommentIterationContext'}, - 'tracking_criteria': {'key': 'trackingCriteria', 'type': 'CommentTrackingCriteria'} - } - - def __init__(self, change_tracking_id=None, iteration_context=None, tracking_criteria=None): - super(GitPullRequestCommentThreadContext, self).__init__() - self.change_tracking_id = change_tracking_id - self.iteration_context = iteration_context - self.tracking_criteria = tracking_criteria diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_completion_options.py b/vsts/vsts/git/v4_0/models/git_pull_request_completion_options.py deleted file mode 100644 index 1d1c2f6c..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_completion_options.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestCompletionOptions(Model): - """GitPullRequestCompletionOptions. - - :param bypass_policy: - :type bypass_policy: bool - :param bypass_reason: - :type bypass_reason: str - :param delete_source_branch: - :type delete_source_branch: bool - :param merge_commit_message: - :type merge_commit_message: str - :param squash_merge: - :type squash_merge: bool - :param transition_work_items: - :type transition_work_items: bool - """ - - _attribute_map = { - 'bypass_policy': {'key': 'bypassPolicy', 'type': 'bool'}, - 'bypass_reason': {'key': 'bypassReason', 'type': 'str'}, - 'delete_source_branch': {'key': 'deleteSourceBranch', 'type': 'bool'}, - 'merge_commit_message': {'key': 'mergeCommitMessage', 'type': 'str'}, - 'squash_merge': {'key': 'squashMerge', 'type': 'bool'}, - 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'} - } - - def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None): - super(GitPullRequestCompletionOptions, self).__init__() - self.bypass_policy = bypass_policy - self.bypass_reason = bypass_reason - self.delete_source_branch = delete_source_branch - self.merge_commit_message = merge_commit_message - self.squash_merge = squash_merge - self.transition_work_items = transition_work_items diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_iteration.py b/vsts/vsts/git/v4_0/models/git_pull_request_iteration.py deleted file mode 100644 index 91c67038..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_iteration.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestIteration(Model): - """GitPullRequestIteration. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`IdentityRef ` - :param change_list: - :type change_list: list of :class:`GitPullRequestChange ` - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param common_ref_commit: - :type common_ref_commit: :class:`GitCommitRef ` - :param created_date: - :type created_date: datetime - :param description: - :type description: str - :param has_more_commits: - :type has_more_commits: bool - :param id: - :type id: int - :param push: - :type push: :class:`GitPushRef ` - :param reason: - :type reason: object - :param source_ref_commit: - :type source_ref_commit: :class:`GitCommitRef ` - :param target_ref_commit: - :type target_ref_commit: :class:`GitCommitRef ` - :param updated_date: - :type updated_date: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'change_list': {'key': 'changeList', 'type': '[GitPullRequestChange]'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'common_ref_commit': {'key': 'commonRefCommit', 'type': 'GitCommitRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'has_more_commits': {'key': 'hasMoreCommits', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'push': {'key': 'push', 'type': 'GitPushRef'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'source_ref_commit': {'key': 'sourceRefCommit', 'type': 'GitCommitRef'}, - 'target_ref_commit': {'key': 'targetRefCommit', 'type': 'GitCommitRef'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): - super(GitPullRequestIteration, self).__init__() - self._links = _links - self.author = author - self.change_list = change_list - self.commits = commits - self.common_ref_commit = common_ref_commit - self.created_date = created_date - self.description = description - self.has_more_commits = has_more_commits - self.id = id - self.push = push - self.reason = reason - self.source_ref_commit = source_ref_commit - self.target_ref_commit = target_ref_commit - self.updated_date = updated_date diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_iteration_changes.py b/vsts/vsts/git/v4_0/models/git_pull_request_iteration_changes.py deleted file mode 100644 index f815be81..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_iteration_changes.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestIterationChanges(Model): - """GitPullRequestIterationChanges. - - :param change_entries: - :type change_entries: list of :class:`GitPullRequestChange ` - :param next_skip: - :type next_skip: int - :param next_top: - :type next_top: int - """ - - _attribute_map = { - 'change_entries': {'key': 'changeEntries', 'type': '[GitPullRequestChange]'}, - 'next_skip': {'key': 'nextSkip', 'type': 'int'}, - 'next_top': {'key': 'nextTop', 'type': 'int'} - } - - def __init__(self, change_entries=None, next_skip=None, next_top=None): - super(GitPullRequestIterationChanges, self).__init__() - self.change_entries = change_entries - self.next_skip = next_skip - self.next_top = next_top diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_merge_options.py b/vsts/vsts/git/v4_0/models/git_pull_request_merge_options.py deleted file mode 100644 index f3fa8aa2..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_merge_options.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestMergeOptions(Model): - """GitPullRequestMergeOptions. - - :param disable_renames: - :type disable_renames: bool - """ - - _attribute_map = { - 'disable_renames': {'key': 'disableRenames', 'type': 'bool'} - } - - def __init__(self, disable_renames=None): - super(GitPullRequestMergeOptions, self).__init__() - self.disable_renames = disable_renames diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_query.py b/vsts/vsts/git/v4_0/models/git_pull_request_query.py deleted file mode 100644 index 8210f2dd..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestQuery(Model): - """GitPullRequestQuery. - - :param queries: The query to perform - :type queries: list of :class:`GitPullRequestQueryInput ` - :param results: The results of the query - :type results: list of {[GitPullRequest]} - """ - - _attribute_map = { - 'queries': {'key': 'queries', 'type': '[GitPullRequestQueryInput]'}, - 'results': {'key': 'results', 'type': '[{[GitPullRequest]}]'} - } - - def __init__(self, queries=None, results=None): - super(GitPullRequestQuery, self).__init__() - self.queries = queries - self.results = results diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_query_input.py b/vsts/vsts/git/v4_0/models/git_pull_request_query_input.py deleted file mode 100644 index 8e25bc93..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_query_input.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestQueryInput(Model): - """GitPullRequestQueryInput. - - :param items: The list commit ids to search for. - :type items: list of str - :param type: The type of query to perform - :type type: object - """ - - _attribute_map = { - 'items': {'key': 'items', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, items=None, type=None): - super(GitPullRequestQueryInput, self).__init__() - self.items = items - self.type = type diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_search_criteria.py b/vsts/vsts/git/v4_0/models/git_pull_request_search_criteria.py deleted file mode 100644 index 79e0edb0..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_search_criteria.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestSearchCriteria(Model): - """GitPullRequestSearchCriteria. - - :param creator_id: - :type creator_id: str - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param repository_id: - :type repository_id: str - :param reviewer_id: - :type reviewer_id: str - :param source_ref_name: - :type source_ref_name: str - :param source_repository_id: - :type source_repository_id: str - :param status: - :type status: object - :param target_ref_name: - :type target_ref_name: str - """ - - _attribute_map = { - 'creator_id': {'key': 'creatorId', 'type': 'str'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'reviewer_id': {'key': 'reviewerId', 'type': 'str'}, - 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, - 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'target_ref_name': {'key': 'targetRefName', 'type': 'str'} - } - - def __init__(self, creator_id=None, include_links=None, repository_id=None, reviewer_id=None, source_ref_name=None, source_repository_id=None, status=None, target_ref_name=None): - super(GitPullRequestSearchCriteria, self).__init__() - self.creator_id = creator_id - self.include_links = include_links - self.repository_id = repository_id - self.reviewer_id = reviewer_id - self.source_ref_name = source_ref_name - self.source_repository_id = source_repository_id - self.status = status - self.target_ref_name = target_ref_name diff --git a/vsts/vsts/git/v4_0/models/git_pull_request_status.py b/vsts/vsts/git/v4_0/models/git_pull_request_status.py deleted file mode 100644 index 72b44879..00000000 --- a/vsts/vsts/git/v4_0/models/git_pull_request_status.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_status import GitStatus - - -class GitPullRequestStatus(GitStatus): - """GitPullRequestStatus. - - :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` - :param context: Context of the status. - :type context: :class:`GitStatusContext ` - :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` - :param creation_date: Creation date and time of the status. - :type creation_date: datetime - :param description: Status description. Typically describes current state of the status. - :type description: str - :param id: Status identifier. - :type id: int - :param state: State of the status. - :type state: object - :param target_url: URL with status details. - :type target_url: str - :param updated_date: Last update date and time of the status. - :type updated_date: datetime - :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. - :type iteration_id: int - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'context': {'key': 'context', 'type': 'GitStatusContext'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'target_url': {'key': 'targetUrl', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'} - } - - def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None, iteration_id=None): - super(GitPullRequestStatus, self).__init__(_links=_links, context=context, created_by=created_by, creation_date=creation_date, description=description, id=id, state=state, target_url=target_url, updated_date=updated_date) - self.iteration_id = iteration_id diff --git a/vsts/vsts/git/v4_0/models/git_push.py b/vsts/vsts/git/v4_0/models/git_push.py deleted file mode 100644 index 5eba60c9..00000000 --- a/vsts/vsts/git/v4_0/models/git_push.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_push_ref import GitPushRef - - -class GitPush(GitPushRef): - """GitPush. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: :class:`IdentityRef ` - :param push_id: - :type push_id: int - :param url: - :type url: str - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` - :param repository: - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): - super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) - self.commits = commits - self.ref_updates = ref_updates - self.repository = repository diff --git a/vsts/vsts/git/v4_0/models/git_push_ref.py b/vsts/vsts/git/v4_0/models/git_push_ref.py deleted file mode 100644 index 39019790..00000000 --- a/vsts/vsts/git/v4_0/models/git_push_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPushRef(Model): - """GitPushRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: :class:`IdentityRef ` - :param push_id: - :type push_id: int - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): - super(GitPushRef, self).__init__() - self._links = _links - self.date = date - self.push_correlation_id = push_correlation_id - self.pushed_by = pushed_by - self.push_id = push_id - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_push_search_criteria.py b/vsts/vsts/git/v4_0/models/git_push_search_criteria.py deleted file mode 100644 index db9526a5..00000000 --- a/vsts/vsts/git/v4_0/models/git_push_search_criteria.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPushSearchCriteria(Model): - """GitPushSearchCriteria. - - :param from_date: - :type from_date: datetime - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param include_ref_updates: - :type include_ref_updates: bool - :param pusher_id: - :type pusher_id: str - :param ref_name: - :type ref_name: str - :param to_date: - :type to_date: datetime - """ - - _attribute_map = { - 'from_date': {'key': 'fromDate', 'type': 'iso-8601'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'include_ref_updates': {'key': 'includeRefUpdates', 'type': 'bool'}, - 'pusher_id': {'key': 'pusherId', 'type': 'str'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'to_date': {'key': 'toDate', 'type': 'iso-8601'} - } - - def __init__(self, from_date=None, include_links=None, include_ref_updates=None, pusher_id=None, ref_name=None, to_date=None): - super(GitPushSearchCriteria, self).__init__() - self.from_date = from_date - self.include_links = include_links - self.include_ref_updates = include_ref_updates - self.pusher_id = pusher_id - self.ref_name = ref_name - self.to_date = to_date diff --git a/vsts/vsts/git/v4_0/models/git_query_branch_stats_criteria.py b/vsts/vsts/git/v4_0/models/git_query_branch_stats_criteria.py deleted file mode 100644 index eabfdfdd..00000000 --- a/vsts/vsts/git/v4_0/models/git_query_branch_stats_criteria.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitQueryBranchStatsCriteria(Model): - """GitQueryBranchStatsCriteria. - - :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` - :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` - """ - - _attribute_map = { - 'base_commit': {'key': 'baseCommit', 'type': 'GitVersionDescriptor'}, - 'target_commits': {'key': 'targetCommits', 'type': '[GitVersionDescriptor]'} - } - - def __init__(self, base_commit=None, target_commits=None): - super(GitQueryBranchStatsCriteria, self).__init__() - self.base_commit = base_commit - self.target_commits = target_commits diff --git a/vsts/vsts/git/v4_0/models/git_query_commits_criteria.py b/vsts/vsts/git/v4_0/models/git_query_commits_criteria.py deleted file mode 100644 index 7f3a5a17..00000000 --- a/vsts/vsts/git/v4_0/models/git_query_commits_criteria.py +++ /dev/null @@ -1,85 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitQueryCommitsCriteria(Model): - """GitQueryCommitsCriteria. - - :param skip: Number of entries to skip - :type skip: int - :param top: Maximum number of entries to retrieve - :type top: int - :param author: Alias or display name of the author - :type author: str - :param compare_version: If provided, the earliest commit in the graph to search - :type compare_version: :class:`GitVersionDescriptor ` - :param exclude_deletes: If true, don't include delete history entries - :type exclude_deletes: bool - :param from_commit_id: If provided, a lower bound for filtering commits alphabetically - :type from_commit_id: str - :param from_date: If provided, only include history entries created after this date (string) - :type from_date: str - :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null. - :type history_mode: object - :param ids: If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters. - :type ids: list of str - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param include_work_items: Whether to include linked work items - :type include_work_items: bool - :param item_path: Path of item to search under - :type item_path: str - :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` - :param to_commit_id: If provided, an upper bound for filtering commits alphabetically - :type to_commit_id: str - :param to_date: If provided, only include history entries created before this date (string) - :type to_date: str - :param user: Alias or display name of the committer - :type user: str - """ - - _attribute_map = { - 'skip': {'key': '$skip', 'type': 'int'}, - 'top': {'key': '$top', 'type': 'int'}, - 'author': {'key': 'author', 'type': 'str'}, - 'compare_version': {'key': 'compareVersion', 'type': 'GitVersionDescriptor'}, - 'exclude_deletes': {'key': 'excludeDeletes', 'type': 'bool'}, - 'from_commit_id': {'key': 'fromCommitId', 'type': 'str'}, - 'from_date': {'key': 'fromDate', 'type': 'str'}, - 'history_mode': {'key': 'historyMode', 'type': 'object'}, - 'ids': {'key': 'ids', 'type': '[str]'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, - 'item_path': {'key': 'itemPath', 'type': 'str'}, - 'item_version': {'key': 'itemVersion', 'type': 'GitVersionDescriptor'}, - 'to_commit_id': {'key': 'toCommitId', 'type': 'str'}, - 'to_date': {'key': 'toDate', 'type': 'str'}, - 'user': {'key': 'user', 'type': 'str'} - } - - def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): - super(GitQueryCommitsCriteria, self).__init__() - self.skip = skip - self.top = top - self.author = author - self.compare_version = compare_version - self.exclude_deletes = exclude_deletes - self.from_commit_id = from_commit_id - self.from_date = from_date - self.history_mode = history_mode - self.ids = ids - self.include_links = include_links - self.include_work_items = include_work_items - self.item_path = item_path - self.item_version = item_version - self.to_commit_id = to_commit_id - self.to_date = to_date - self.user = user diff --git a/vsts/vsts/git/v4_0/models/git_ref.py b/vsts/vsts/git/v4_0/models/git_ref.py deleted file mode 100644 index 2d4b53d6..00000000 --- a/vsts/vsts/git/v4_0/models/git_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRef(Model): - """GitRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param is_locked: - :type is_locked: bool - :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` - :param name: - :type name: str - :param object_id: - :type object_id: str - :param peeled_object_id: - :type peeled_object_id: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): - super(GitRef, self).__init__() - self._links = _links - self.is_locked = is_locked - self.is_locked_by = is_locked_by - self.name = name - self.object_id = object_id - self.peeled_object_id = peeled_object_id - self.statuses = statuses - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_ref_favorite.py b/vsts/vsts/git/v4_0/models/git_ref_favorite.py deleted file mode 100644 index d1f2d359..00000000 --- a/vsts/vsts/git/v4_0/models/git_ref_favorite.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRefFavorite(Model): - """GitRefFavorite. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: int - :param identity_id: - :type identity_id: str - :param name: - :type name: str - :param repository_id: - :type repository_id: str - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'identity_id': {'key': 'identityId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, identity_id=None, name=None, repository_id=None, type=None, url=None): - super(GitRefFavorite, self).__init__() - self._links = _links - self.id = id - self.identity_id = identity_id - self.name = name - self.repository_id = repository_id - self.type = type - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_ref_update.py b/vsts/vsts/git/v4_0/models/git_ref_update.py deleted file mode 100644 index 6c10c600..00000000 --- a/vsts/vsts/git/v4_0/models/git_ref_update.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRefUpdate(Model): - """GitRefUpdate. - - :param is_locked: - :type is_locked: bool - :param name: - :type name: str - :param new_object_id: - :type new_object_id: str - :param old_object_id: - :type old_object_id: str - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, - 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): - super(GitRefUpdate, self).__init__() - self.is_locked = is_locked - self.name = name - self.new_object_id = new_object_id - self.old_object_id = old_object_id - self.repository_id = repository_id diff --git a/vsts/vsts/git/v4_0/models/git_ref_update_result.py b/vsts/vsts/git/v4_0/models/git_ref_update_result.py deleted file mode 100644 index d4b42d8d..00000000 --- a/vsts/vsts/git/v4_0/models/git_ref_update_result.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRefUpdateResult(Model): - """GitRefUpdateResult. - - :param custom_message: Custom message for the result object For instance, Reason for failing. - :type custom_message: str - :param is_locked: Whether the ref is locked or not - :type is_locked: bool - :param name: Ref name - :type name: str - :param new_object_id: New object ID - :type new_object_id: str - :param old_object_id: Old object ID - :type old_object_id: str - :param rejected_by: Name of the plugin that rejected the updated. - :type rejected_by: str - :param repository_id: Repository ID - :type repository_id: str - :param success: True if the ref update succeeded, false otherwise - :type success: bool - :param update_status: Status of the update from the TFS server. - :type update_status: object - """ - - _attribute_map = { - 'custom_message': {'key': 'customMessage', 'type': 'str'}, - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, - 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, - 'rejected_by': {'key': 'rejectedBy', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'success': {'key': 'success', 'type': 'bool'}, - 'update_status': {'key': 'updateStatus', 'type': 'object'} - } - - def __init__(self, custom_message=None, is_locked=None, name=None, new_object_id=None, old_object_id=None, rejected_by=None, repository_id=None, success=None, update_status=None): - super(GitRefUpdateResult, self).__init__() - self.custom_message = custom_message - self.is_locked = is_locked - self.name = name - self.new_object_id = new_object_id - self.old_object_id = old_object_id - self.rejected_by = rejected_by - self.repository_id = repository_id - self.success = success - self.update_status = update_status diff --git a/vsts/vsts/git/v4_0/models/git_repository.py b/vsts/vsts/git/v4_0/models/git_repository.py deleted file mode 100644 index 8c2ce70c..00000000 --- a/vsts/vsts/git/v4_0/models/git_repository.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepository(Model): - """GitRepository. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param default_branch: - :type default_branch: str - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param url: - :type url: str - :param valid_remote_urls: - :type valid_remote_urls: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} - } - - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): - super(GitRepository, self).__init__() - self._links = _links - self.default_branch = default_branch - self.id = id - self.is_fork = is_fork - self.name = name - self.parent_repository = parent_repository - self.project = project - self.remote_url = remote_url - self.url = url - self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/git/v4_0/models/git_repository_create_options.py b/vsts/vsts/git/v4_0/models/git_repository_create_options.py deleted file mode 100644 index 13db6bdf..00000000 --- a/vsts/vsts/git/v4_0/models/git_repository_create_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryCreateOptions(Model): - """GitRepositoryCreateOptions. - - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: :class:`TeamProjectReference ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'} - } - - def __init__(self, name=None, parent_repository=None, project=None): - super(GitRepositoryCreateOptions, self).__init__() - self.name = name - self.parent_repository = parent_repository - self.project = project diff --git a/vsts/vsts/git/v4_0/models/git_repository_ref.py b/vsts/vsts/git/v4_0/models/git_repository_ref.py deleted file mode 100644 index 9eb0911b..00000000 --- a/vsts/vsts/git/v4_0/models/git_repository_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryRef(Model): - """GitRepositoryRef. - - :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` - :param id: - :type id: str - :param name: - :type name: str - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param url: - :type url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): - super(GitRepositoryRef, self).__init__() - self.collection = collection - self.id = id - self.name = name - self.project = project - self.remote_url = remote_url - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_repository_stats.py b/vsts/vsts/git/v4_0/models/git_repository_stats.py deleted file mode 100644 index 0ea95e41..00000000 --- a/vsts/vsts/git/v4_0/models/git_repository_stats.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryStats(Model): - """GitRepositoryStats. - - :param active_pull_requests_count: - :type active_pull_requests_count: int - :param branches_count: - :type branches_count: int - :param commits_count: - :type commits_count: int - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'active_pull_requests_count': {'key': 'activePullRequestsCount', 'type': 'int'}, - 'branches_count': {'key': 'branchesCount', 'type': 'int'}, - 'commits_count': {'key': 'commitsCount', 'type': 'int'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, active_pull_requests_count=None, branches_count=None, commits_count=None, repository_id=None): - super(GitRepositoryStats, self).__init__() - self.active_pull_requests_count = active_pull_requests_count - self.branches_count = branches_count - self.commits_count = commits_count - self.repository_id = repository_id diff --git a/vsts/vsts/git/v4_0/models/git_revert.py b/vsts/vsts/git/v4_0/models/git_revert.py deleted file mode 100644 index 8d3c0cc6..00000000 --- a/vsts/vsts/git/v4_0/models/git_revert.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_async_ref_operation import GitAsyncRefOperation - - -class GitRevert(GitAsyncRefOperation): - """GitRevert. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` - :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` - :param status: - :type status: object - :param url: - :type url: str - :param revert_id: - :type revert_id: int - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, - 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'revert_id': {'key': 'revertId', 'type': 'int'} - } - - def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, revert_id=None): - super(GitRevert, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) - self.revert_id = revert_id diff --git a/vsts/vsts/git/v4_0/models/git_status.py b/vsts/vsts/git/v4_0/models/git_status.py deleted file mode 100644 index 0d283da7..00000000 --- a/vsts/vsts/git/v4_0/models/git_status.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitStatus(Model): - """GitStatus. - - :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` - :param context: Context of the status. - :type context: :class:`GitStatusContext ` - :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` - :param creation_date: Creation date and time of the status. - :type creation_date: datetime - :param description: Status description. Typically describes current state of the status. - :type description: str - :param id: Status identifier. - :type id: int - :param state: State of the status. - :type state: object - :param target_url: URL with status details. - :type target_url: str - :param updated_date: Last update date and time of the status. - :type updated_date: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'context': {'key': 'context', 'type': 'GitStatusContext'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'target_url': {'key': 'targetUrl', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): - super(GitStatus, self).__init__() - self._links = _links - self.context = context - self.created_by = created_by - self.creation_date = creation_date - self.description = description - self.id = id - self.state = state - self.target_url = target_url - self.updated_date = updated_date diff --git a/vsts/vsts/git/v4_0/models/git_status_context.py b/vsts/vsts/git/v4_0/models/git_status_context.py deleted file mode 100644 index cf40205f..00000000 --- a/vsts/vsts/git/v4_0/models/git_status_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitStatusContext(Model): - """GitStatusContext. - - :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. - :type genre: str - :param name: Name identifier of the status, cannot be null or empty. - :type name: str - """ - - _attribute_map = { - 'genre': {'key': 'genre', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, genre=None, name=None): - super(GitStatusContext, self).__init__() - self.genre = genre - self.name = name diff --git a/vsts/vsts/git/v4_0/models/git_suggestion.py b/vsts/vsts/git/v4_0/models/git_suggestion.py deleted file mode 100644 index 8ef8ed46..00000000 --- a/vsts/vsts/git/v4_0/models/git_suggestion.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitSuggestion(Model): - """GitSuggestion. - - :param properties: - :type properties: dict - :param type: - :type type: str - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, properties=None, type=None): - super(GitSuggestion, self).__init__() - self.properties = properties - self.type = type diff --git a/vsts/vsts/git/v4_0/models/git_target_version_descriptor.py b/vsts/vsts/git/v4_0/models/git_target_version_descriptor.py deleted file mode 100644 index 61bc2e33..00000000 --- a/vsts/vsts/git/v4_0/models/git_target_version_descriptor.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_version_descriptor import GitVersionDescriptor - - -class GitTargetVersionDescriptor(GitVersionDescriptor): - """GitTargetVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - :param target_version: Version string identifier (name of tag/branch, SHA1 of commit) - :type target_version: str - :param target_version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type target_version_options: object - :param target_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type target_version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'}, - 'target_version': {'key': 'targetVersion', 'type': 'str'}, - 'target_version_options': {'key': 'targetVersionOptions', 'type': 'object'}, - 'target_version_type': {'key': 'targetVersionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None, target_version=None, target_version_options=None, target_version_type=None): - super(GitTargetVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) - self.target_version = target_version - self.target_version_options = target_version_options - self.target_version_type = target_version_type diff --git a/vsts/vsts/git/v4_0/models/git_template.py b/vsts/vsts/git/v4_0/models/git_template.py deleted file mode 100644 index fbe26c8a..00000000 --- a/vsts/vsts/git/v4_0/models/git_template.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTemplate(Model): - """GitTemplate. - - :param name: Name of the Template - :type name: str - :param type: Type of the Template - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, name=None, type=None): - super(GitTemplate, self).__init__() - self.name = name - self.type = type diff --git a/vsts/vsts/git/v4_0/models/git_tree_diff.py b/vsts/vsts/git/v4_0/models/git_tree_diff.py deleted file mode 100644 index ece6ac5b..00000000 --- a/vsts/vsts/git/v4_0/models/git_tree_diff.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeDiff(Model): - """GitTreeDiff. - - :param base_tree_id: ObjectId of the base tree of this diff. - :type base_tree_id: str - :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` - :param target_tree_id: ObjectId of the target tree of this diff. - :type target_tree_id: str - :param url: REST Url to this resource. - :type url: str - """ - - _attribute_map = { - 'base_tree_id': {'key': 'baseTreeId', 'type': 'str'}, - 'diff_entries': {'key': 'diffEntries', 'type': '[GitTreeDiffEntry]'}, - 'target_tree_id': {'key': 'targetTreeId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, base_tree_id=None, diff_entries=None, target_tree_id=None, url=None): - super(GitTreeDiff, self).__init__() - self.base_tree_id = base_tree_id - self.diff_entries = diff_entries - self.target_tree_id = target_tree_id - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_tree_diff_entry.py b/vsts/vsts/git/v4_0/models/git_tree_diff_entry.py deleted file mode 100644 index b75431e3..00000000 --- a/vsts/vsts/git/v4_0/models/git_tree_diff_entry.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeDiffEntry(Model): - """GitTreeDiffEntry. - - :param base_object_id: SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds. - :type base_object_id: str - :param change_type: Type of change that affected this entry. - :type change_type: object - :param object_type: Object type of the tree entry. Blob, Tree or Commit("submodule") - :type object_type: object - :param path: Relative path in base and target trees. - :type path: str - :param target_object_id: SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes. - :type target_object_id: str - """ - - _attribute_map = { - 'base_object_id': {'key': 'baseObjectId', 'type': 'str'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'object_type': {'key': 'objectType', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'target_object_id': {'key': 'targetObjectId', 'type': 'str'} - } - - def __init__(self, base_object_id=None, change_type=None, object_type=None, path=None, target_object_id=None): - super(GitTreeDiffEntry, self).__init__() - self.base_object_id = base_object_id - self.change_type = change_type - self.object_type = object_type - self.path = path - self.target_object_id = target_object_id diff --git a/vsts/vsts/git/v4_0/models/git_tree_diff_response.py b/vsts/vsts/git/v4_0/models/git_tree_diff_response.py deleted file mode 100644 index e8cd9a18..00000000 --- a/vsts/vsts/git/v4_0/models/git_tree_diff_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeDiffResponse(Model): - """GitTreeDiffResponse. - - :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. - :type continuation_token: list of str - :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, - 'tree_diff': {'key': 'treeDiff', 'type': 'GitTreeDiff'} - } - - def __init__(self, continuation_token=None, tree_diff=None): - super(GitTreeDiffResponse, self).__init__() - self.continuation_token = continuation_token - self.tree_diff = tree_diff diff --git a/vsts/vsts/git/v4_0/models/git_tree_entry_ref.py b/vsts/vsts/git/v4_0/models/git_tree_entry_ref.py deleted file mode 100644 index 0440423c..00000000 --- a/vsts/vsts/git/v4_0/models/git_tree_entry_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeEntryRef(Model): - """GitTreeEntryRef. - - :param git_object_type: Blob or tree - :type git_object_type: object - :param mode: Mode represented as octal string - :type mode: str - :param object_id: SHA1 hash of git object - :type object_id: str - :param relative_path: Path relative to parent tree object - :type relative_path: str - :param size: Size of content - :type size: long - :param url: url to retrieve tree or blob - :type url: str - """ - - _attribute_map = { - 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, - 'mode': {'key': 'mode', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'relative_path': {'key': 'relativePath', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, git_object_type=None, mode=None, object_id=None, relative_path=None, size=None, url=None): - super(GitTreeEntryRef, self).__init__() - self.git_object_type = git_object_type - self.mode = mode - self.object_id = object_id - self.relative_path = relative_path - self.size = size - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_tree_ref.py b/vsts/vsts/git/v4_0/models/git_tree_ref.py deleted file mode 100644 index b6d0612c..00000000 --- a/vsts/vsts/git/v4_0/models/git_tree_ref.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeRef(Model): - """GitTreeRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param object_id: SHA1 hash of git object - :type object_id: str - :param size: Sum of sizes of all children - :type size: long - :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` - :param url: Url to tree - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'tree_entries': {'key': 'treeEntries', 'type': '[GitTreeEntryRef]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, object_id=None, size=None, tree_entries=None, url=None): - super(GitTreeRef, self).__init__() - self._links = _links - self.object_id = object_id - self.size = size - self.tree_entries = tree_entries - self.url = url diff --git a/vsts/vsts/git/v4_0/models/git_user_date.py b/vsts/vsts/git/v4_0/models/git_user_date.py deleted file mode 100644 index 9199afd0..00000000 --- a/vsts/vsts/git/v4_0/models/git_user_date.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitUserDate(Model): - """GitUserDate. - - :param date: - :type date: datetime - :param email: - :type email: str - :param name: - :type name: str - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'email': {'key': 'email', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, date=None, email=None, name=None): - super(GitUserDate, self).__init__() - self.date = date - self.email = email - self.name = name diff --git a/vsts/vsts/git/v4_0/models/git_version_descriptor.py b/vsts/vsts/git/v4_0/models/git_version_descriptor.py deleted file mode 100644 index 919fc237..00000000 --- a/vsts/vsts/git/v4_0/models/git_version_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitVersionDescriptor(Model): - """GitVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None): - super(GitVersionDescriptor, self).__init__() - self.version = version - self.version_options = version_options - self.version_type = version_type diff --git a/vsts/vsts/git/v4_0/models/global_git_repository_key.py b/vsts/vsts/git/v4_0/models/global_git_repository_key.py deleted file mode 100644 index 8e466ace..00000000 --- a/vsts/vsts/git/v4_0/models/global_git_repository_key.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GlobalGitRepositoryKey(Model): - """GlobalGitRepositoryKey. - - :param collection_id: - :type collection_id: str - :param project_id: - :type project_id: str - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'collection_id': {'key': 'collectionId', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, collection_id=None, project_id=None, repository_id=None): - super(GlobalGitRepositoryKey, self).__init__() - self.collection_id = collection_id - self.project_id = project_id - self.repository_id = repository_id diff --git a/vsts/vsts/git/v4_0/models/identity_ref.py b/vsts/vsts/git/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/git/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/git/v4_0/models/identity_ref_with_vote.py b/vsts/vsts/git/v4_0/models/identity_ref_with_vote.py deleted file mode 100644 index e990e4cc..00000000 --- a/vsts/vsts/git/v4_0/models/identity_ref_with_vote.py +++ /dev/null @@ -1,67 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_ref import IdentityRef - - -class IdentityRefWithVote(IdentityRef): - """IdentityRefWithVote. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - :param is_required: - :type is_required: bool - :param reviewer_url: - :type reviewer_url: str - :param vote: - :type vote: int - :param voted_for: - :type voted_for: list of :class:`IdentityRefWithVote ` - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'reviewer_url': {'key': 'reviewerUrl', 'type': 'str'}, - 'vote': {'key': 'vote', 'type': 'int'}, - 'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): - super(IdentityRefWithVote, self).__init__(directory_alias=directory_alias, display_name=display_name, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) - self.is_required = is_required - self.reviewer_url = reviewer_url - self.vote = vote - self.voted_for = voted_for diff --git a/vsts/vsts/git/v4_0/models/import_repository_validation.py b/vsts/vsts/git/v4_0/models/import_repository_validation.py deleted file mode 100644 index 82d46ab6..00000000 --- a/vsts/vsts/git/v4_0/models/import_repository_validation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ImportRepositoryValidation(Model): - """ImportRepositoryValidation. - - :param git_source: - :type git_source: :class:`GitImportGitSource ` - :param password: - :type password: str - :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` - :param username: - :type username: str - """ - - _attribute_map = { - 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, - 'password': {'key': 'password', 'type': 'str'}, - 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'}, - 'username': {'key': 'username', 'type': 'str'} - } - - def __init__(self, git_source=None, password=None, tfvc_source=None, username=None): - super(ImportRepositoryValidation, self).__init__() - self.git_source = git_source - self.password = password - self.tfvc_source = tfvc_source - self.username = username diff --git a/vsts/vsts/git/v4_0/models/item_content.py b/vsts/vsts/git/v4_0/models/item_content.py deleted file mode 100644 index f5cfaef1..00000000 --- a/vsts/vsts/git/v4_0/models/item_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemContent(Model): - """ItemContent. - - :param content: - :type content: str - :param content_type: - :type content_type: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'object'} - } - - def __init__(self, content=None, content_type=None): - super(ItemContent, self).__init__() - self.content = content - self.content_type = content_type diff --git a/vsts/vsts/git/v4_0/models/item_model.py b/vsts/vsts/git/v4_0/models/item_model.py deleted file mode 100644 index 447b8b3d..00000000 --- a/vsts/vsts/git/v4_0/models/item_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemModel(Model): - """ItemModel. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): - super(ItemModel, self).__init__() - self._links = _links - self.content_metadata = content_metadata - self.is_folder = is_folder - self.is_sym_link = is_sym_link - self.path = path - self.url = url diff --git a/vsts/vsts/git/v4_0/models/reference_links.py b/vsts/vsts/git/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/git/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/git/v4_0/models/resource_ref.py b/vsts/vsts/git/v4_0/models/resource_ref.py deleted file mode 100644 index 903e57ee..00000000 --- a/vsts/vsts/git/v4_0/models/resource_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceRef(Model): - """ResourceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(ResourceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/git/v4_0/models/share_notification_context.py b/vsts/vsts/git/v4_0/models/share_notification_context.py deleted file mode 100644 index d71ee9e9..00000000 --- a/vsts/vsts/git/v4_0/models/share_notification_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ShareNotificationContext(Model): - """ShareNotificationContext. - - :param message: Optional user note or message. - :type message: str - :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'receivers': {'key': 'receivers', 'type': '[IdentityRef]'} - } - - def __init__(self, message=None, receivers=None): - super(ShareNotificationContext, self).__init__() - self.message = message - self.receivers = receivers diff --git a/vsts/vsts/git/v4_0/models/source_to_target_ref.py b/vsts/vsts/git/v4_0/models/source_to_target_ref.py deleted file mode 100644 index f2364a3f..00000000 --- a/vsts/vsts/git/v4_0/models/source_to_target_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SourceToTargetRef(Model): - """SourceToTargetRef. - - :param source_ref: The source ref to copy. For example, refs/heads/master. - :type source_ref: str - :param target_ref: The target ref to update. For example, refs/heads/master - :type target_ref: str - """ - - _attribute_map = { - 'source_ref': {'key': 'sourceRef', 'type': 'str'}, - 'target_ref': {'key': 'targetRef', 'type': 'str'} - } - - def __init__(self, source_ref=None, target_ref=None): - super(SourceToTargetRef, self).__init__() - self.source_ref = source_ref - self.target_ref = target_ref diff --git a/vsts/vsts/git/v4_0/models/team_project_collection_reference.py b/vsts/vsts/git/v4_0/models/team_project_collection_reference.py deleted file mode 100644 index 6f4a596a..00000000 --- a/vsts/vsts/git/v4_0/models/team_project_collection_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectCollectionReference(Model): - """TeamProjectCollectionReference. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(TeamProjectCollectionReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/git/v4_0/models/team_project_reference.py b/vsts/vsts/git/v4_0/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/git/v4_0/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/git/v4_0/models/vsts_info.py b/vsts/vsts/git/v4_0/models/vsts_info.py deleted file mode 100644 index d0a8d627..00000000 --- a/vsts/vsts/git/v4_0/models/vsts_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VstsInfo(Model): - """VstsInfo. - - :param collection: - :type collection: :class:`TeamProjectCollectionReference ` - :param repository: - :type repository: :class:`GitRepository ` - :param server_url: - :type server_url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'server_url': {'key': 'serverUrl', 'type': 'str'} - } - - def __init__(self, collection=None, repository=None, server_url=None): - super(VstsInfo, self).__init__() - self.collection = collection - self.repository = repository - self.server_url = server_url diff --git a/vsts/vsts/git/v4_0/models/web_api_create_tag_request_data.py b/vsts/vsts/git/v4_0/models/web_api_create_tag_request_data.py deleted file mode 100644 index 0e05b51f..00000000 --- a/vsts/vsts/git/v4_0/models/web_api_create_tag_request_data.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiCreateTagRequestData(Model): - """WebApiCreateTagRequestData. - - :param name: - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, name=None): - super(WebApiCreateTagRequestData, self).__init__() - self.name = name diff --git a/vsts/vsts/git/v4_0/models/web_api_tag_definition.py b/vsts/vsts/git/v4_0/models/web_api_tag_definition.py deleted file mode 100644 index 8abca484..00000000 --- a/vsts/vsts/git/v4_0/models/web_api_tag_definition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiTagDefinition(Model): - """WebApiTagDefinition. - - :param active: - :type active: bool - :param id: - :type id: str - :param name: - :type name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'active': {'key': 'active', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, active=None, id=None, name=None, url=None): - super(WebApiTagDefinition, self).__init__() - self.active = active - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/git/v4_1/__init__.py b/vsts/vsts/git/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/git/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/git/v4_1/models/__init__.py b/vsts/vsts/git/v4_1/models/__init__.py deleted file mode 100644 index 529b1baa..00000000 --- a/vsts/vsts/git/v4_1/models/__init__.py +++ /dev/null @@ -1,203 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .attachment import Attachment -from .change import Change -from .comment import Comment -from .comment_iteration_context import CommentIterationContext -from .comment_position import CommentPosition -from .comment_thread import CommentThread -from .comment_thread_context import CommentThreadContext -from .comment_tracking_criteria import CommentTrackingCriteria -from .file_content_metadata import FileContentMetadata -from .git_annotated_tag import GitAnnotatedTag -from .git_async_ref_operation import GitAsyncRefOperation -from .git_async_ref_operation_detail import GitAsyncRefOperationDetail -from .git_async_ref_operation_parameters import GitAsyncRefOperationParameters -from .git_async_ref_operation_source import GitAsyncRefOperationSource -from .git_base_version_descriptor import GitBaseVersionDescriptor -from .git_blob_ref import GitBlobRef -from .git_branch_stats import GitBranchStats -from .git_cherry_pick import GitCherryPick -from .git_commit import GitCommit -from .git_commit_changes import GitCommitChanges -from .git_commit_diffs import GitCommitDiffs -from .git_commit_ref import GitCommitRef -from .git_conflict import GitConflict -from .git_conflict_update_result import GitConflictUpdateResult -from .git_deleted_repository import GitDeletedRepository -from .git_file_paths_collection import GitFilePathsCollection -from .git_fork_operation_status_detail import GitForkOperationStatusDetail -from .git_fork_ref import GitForkRef -from .git_fork_sync_request import GitForkSyncRequest -from .git_fork_sync_request_parameters import GitForkSyncRequestParameters -from .git_import_git_source import GitImportGitSource -from .git_import_request import GitImportRequest -from .git_import_request_parameters import GitImportRequestParameters -from .git_import_status_detail import GitImportStatusDetail -from .git_import_tfvc_source import GitImportTfvcSource -from .git_item import GitItem -from .git_item_descriptor import GitItemDescriptor -from .git_item_request_data import GitItemRequestData -from .git_merge_origin_ref import GitMergeOriginRef -from .git_object import GitObject -from .git_pull_request import GitPullRequest -from .git_pull_request_change import GitPullRequestChange -from .git_pull_request_comment_thread import GitPullRequestCommentThread -from .git_pull_request_comment_thread_context import GitPullRequestCommentThreadContext -from .git_pull_request_completion_options import GitPullRequestCompletionOptions -from .git_pull_request_iteration import GitPullRequestIteration -from .git_pull_request_iteration_changes import GitPullRequestIterationChanges -from .git_pull_request_merge_options import GitPullRequestMergeOptions -from .git_pull_request_query import GitPullRequestQuery -from .git_pull_request_query_input import GitPullRequestQueryInput -from .git_pull_request_search_criteria import GitPullRequestSearchCriteria -from .git_pull_request_status import GitPullRequestStatus -from .git_push import GitPush -from .git_push_ref import GitPushRef -from .git_push_search_criteria import GitPushSearchCriteria -from .git_query_branch_stats_criteria import GitQueryBranchStatsCriteria -from .git_query_commits_criteria import GitQueryCommitsCriteria -from .git_recycle_bin_repository_details import GitRecycleBinRepositoryDetails -from .git_ref import GitRef -from .git_ref_favorite import GitRefFavorite -from .git_ref_update import GitRefUpdate -from .git_ref_update_result import GitRefUpdateResult -from .git_repository import GitRepository -from .git_repository_create_options import GitRepositoryCreateOptions -from .git_repository_ref import GitRepositoryRef -from .git_repository_stats import GitRepositoryStats -from .git_revert import GitRevert -from .git_status import GitStatus -from .git_status_context import GitStatusContext -from .git_suggestion import GitSuggestion -from .git_target_version_descriptor import GitTargetVersionDescriptor -from .git_template import GitTemplate -from .git_tree_diff import GitTreeDiff -from .git_tree_diff_entry import GitTreeDiffEntry -from .git_tree_diff_response import GitTreeDiffResponse -from .git_tree_entry_ref import GitTreeEntryRef -from .git_tree_ref import GitTreeRef -from .git_user_date import GitUserDate -from .git_version_descriptor import GitVersionDescriptor -from .global_git_repository_key import GlobalGitRepositoryKey -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .identity_ref_with_vote import IdentityRefWithVote -from .import_repository_validation import ImportRepositoryValidation -from .item_content import ItemContent -from .item_model import ItemModel -from .json_patch_operation import JsonPatchOperation -from .reference_links import ReferenceLinks -from .resource_ref import ResourceRef -from .share_notification_context import ShareNotificationContext -from .source_to_target_ref import SourceToTargetRef -from .team_project_collection_reference import TeamProjectCollectionReference -from .team_project_reference import TeamProjectReference -from .vsts_info import VstsInfo -from .web_api_create_tag_request_data import WebApiCreateTagRequestData -from .web_api_tag_definition import WebApiTagDefinition - -__all__ = [ - 'Attachment', - 'Change', - 'Comment', - 'CommentIterationContext', - 'CommentPosition', - 'CommentThread', - 'CommentThreadContext', - 'CommentTrackingCriteria', - 'FileContentMetadata', - 'GitAnnotatedTag', - 'GitAsyncRefOperation', - 'GitAsyncRefOperationDetail', - 'GitAsyncRefOperationParameters', - 'GitAsyncRefOperationSource', - 'GitBaseVersionDescriptor', - 'GitBlobRef', - 'GitBranchStats', - 'GitCherryPick', - 'GitCommit', - 'GitCommitChanges', - 'GitCommitDiffs', - 'GitCommitRef', - 'GitConflict', - 'GitConflictUpdateResult', - 'GitDeletedRepository', - 'GitFilePathsCollection', - 'GitForkOperationStatusDetail', - 'GitForkRef', - 'GitForkSyncRequest', - 'GitForkSyncRequestParameters', - 'GitImportGitSource', - 'GitImportRequest', - 'GitImportRequestParameters', - 'GitImportStatusDetail', - 'GitImportTfvcSource', - 'GitItem', - 'GitItemDescriptor', - 'GitItemRequestData', - 'GitMergeOriginRef', - 'GitObject', - 'GitPullRequest', - 'GitPullRequestChange', - 'GitPullRequestCommentThread', - 'GitPullRequestCommentThreadContext', - 'GitPullRequestCompletionOptions', - 'GitPullRequestIteration', - 'GitPullRequestIterationChanges', - 'GitPullRequestMergeOptions', - 'GitPullRequestQuery', - 'GitPullRequestQueryInput', - 'GitPullRequestSearchCriteria', - 'GitPullRequestStatus', - 'GitPush', - 'GitPushRef', - 'GitPushSearchCriteria', - 'GitQueryBranchStatsCriteria', - 'GitQueryCommitsCriteria', - 'GitRecycleBinRepositoryDetails', - 'GitRef', - 'GitRefFavorite', - 'GitRefUpdate', - 'GitRefUpdateResult', - 'GitRepository', - 'GitRepositoryCreateOptions', - 'GitRepositoryRef', - 'GitRepositoryStats', - 'GitRevert', - 'GitStatus', - 'GitStatusContext', - 'GitSuggestion', - 'GitTargetVersionDescriptor', - 'GitTemplate', - 'GitTreeDiff', - 'GitTreeDiffEntry', - 'GitTreeDiffResponse', - 'GitTreeEntryRef', - 'GitTreeRef', - 'GitUserDate', - 'GitVersionDescriptor', - 'GlobalGitRepositoryKey', - 'GraphSubjectBase', - 'IdentityRef', - 'IdentityRefWithVote', - 'ImportRepositoryValidation', - 'ItemContent', - 'ItemModel', - 'JsonPatchOperation', - 'ReferenceLinks', - 'ResourceRef', - 'ShareNotificationContext', - 'SourceToTargetRef', - 'TeamProjectCollectionReference', - 'TeamProjectReference', - 'VstsInfo', - 'WebApiCreateTagRequestData', - 'WebApiTagDefinition', -] diff --git a/vsts/vsts/git/v4_1/models/attachment.py b/vsts/vsts/git/v4_1/models/attachment.py deleted file mode 100644 index 1bc88d51..00000000 --- a/vsts/vsts/git/v4_1/models/attachment.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Attachment(Model): - """Attachment. - - :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` - :param author: The person that uploaded this attachment. - :type author: :class:`IdentityRef ` - :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. - :type content_hash: str - :param created_date: The time the attachment was uploaded. - :type created_date: datetime - :param description: The description of the attachment. - :type description: str - :param display_name: The display name of the attachment. Can't be null or empty. - :type display_name: str - :param id: Id of the attachment. - :type id: int - :param properties: Extended properties. - :type properties: :class:`object ` - :param url: The url to download the content of the attachment. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'content_hash': {'key': 'contentHash', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, author=None, content_hash=None, created_date=None, description=None, display_name=None, id=None, properties=None, url=None): - super(Attachment, self).__init__() - self._links = _links - self.author = author - self.content_hash = content_hash - self.created_date = created_date - self.description = description - self.display_name = display_name - self.id = id - self.properties = properties - self.url = url diff --git a/vsts/vsts/git/v4_1/models/change.py b/vsts/vsts/git/v4_1/models/change.py deleted file mode 100644 index 6a5921f0..00000000 --- a/vsts/vsts/git/v4_1/models/change.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param change_type: The type of change that was made to the item. - :type change_type: object - :param item: Current version. - :type item: object - :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` - :param source_server_item: Path of the item on the server. - :type source_server_item: str - :param url: URL to retrieve the item. - :type url: str - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'item': {'key': 'item', 'type': 'object'}, - 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, - 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): - super(Change, self).__init__() - self.change_type = change_type - self.item = item - self.new_content = new_content - self.source_server_item = source_server_item - self.url = url diff --git a/vsts/vsts/git/v4_1/models/comment.py b/vsts/vsts/git/v4_1/models/comment.py deleted file mode 100644 index a5546dc0..00000000 --- a/vsts/vsts/git/v4_1/models/comment.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Comment(Model): - """Comment. - - :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` - :param author: The author of the comment. - :type author: :class:`IdentityRef ` - :param comment_type: The comment type at the time of creation. - :type comment_type: object - :param content: The comment content. - :type content: str - :param id: The comment ID. IDs start at 1 and are unique to a pull request. - :type id: int - :param is_deleted: Whether or not this comment was soft-deleted. - :type is_deleted: bool - :param last_content_updated_date: The date the comment's content was last updated. - :type last_content_updated_date: datetime - :param last_updated_date: The date the comment was last updated. - :type last_updated_date: datetime - :param parent_comment_id: The ID of the parent comment. This is used for replies. - :type parent_comment_id: int - :param published_date: The date the comment was first published. - :type published_date: datetime - :param users_liked: A list of the users who have liked this comment. - :type users_liked: list of :class:`IdentityRef ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'comment_type': {'key': 'commentType', 'type': 'object'}, - 'content': {'key': 'content', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_content_updated_date': {'key': 'lastContentUpdatedDate', 'type': 'iso-8601'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'parent_comment_id': {'key': 'parentCommentId', 'type': 'int'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'users_liked': {'key': 'usersLiked', 'type': '[IdentityRef]'} - } - - def __init__(self, _links=None, author=None, comment_type=None, content=None, id=None, is_deleted=None, last_content_updated_date=None, last_updated_date=None, parent_comment_id=None, published_date=None, users_liked=None): - super(Comment, self).__init__() - self._links = _links - self.author = author - self.comment_type = comment_type - self.content = content - self.id = id - self.is_deleted = is_deleted - self.last_content_updated_date = last_content_updated_date - self.last_updated_date = last_updated_date - self.parent_comment_id = parent_comment_id - self.published_date = published_date - self.users_liked = users_liked diff --git a/vsts/vsts/git/v4_1/models/comment_iteration_context.py b/vsts/vsts/git/v4_1/models/comment_iteration_context.py deleted file mode 100644 index 39ce2354..00000000 --- a/vsts/vsts/git/v4_1/models/comment_iteration_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentIterationContext(Model): - """CommentIterationContext. - - :param first_comparing_iteration: The iteration of the file on the left side of the diff when the thread was created. If this value is equal to SecondComparingIteration, then this version is the common commit between the source and target branches of the pull request. - :type first_comparing_iteration: int - :param second_comparing_iteration: The iteration of the file on the right side of the diff when the thread was created. - :type second_comparing_iteration: int - """ - - _attribute_map = { - 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, - 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} - } - - def __init__(self, first_comparing_iteration=None, second_comparing_iteration=None): - super(CommentIterationContext, self).__init__() - self.first_comparing_iteration = first_comparing_iteration - self.second_comparing_iteration = second_comparing_iteration diff --git a/vsts/vsts/git/v4_1/models/comment_position.py b/vsts/vsts/git/v4_1/models/comment_position.py deleted file mode 100644 index 4e1dead2..00000000 --- a/vsts/vsts/git/v4_1/models/comment_position.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentPosition(Model): - """CommentPosition. - - :param line: The line number of a thread's position. Starts at 1. - :type line: int - :param offset: The character offset of a thread's position inside of a line. Starts at 0. - :type offset: int - """ - - _attribute_map = { - 'line': {'key': 'line', 'type': 'int'}, - 'offset': {'key': 'offset', 'type': 'int'} - } - - def __init__(self, line=None, offset=None): - super(CommentPosition, self).__init__() - self.line = line - self.offset = offset diff --git a/vsts/vsts/git/v4_1/models/comment_thread.py b/vsts/vsts/git/v4_1/models/comment_thread.py deleted file mode 100644 index 9cb6d0f4..00000000 --- a/vsts/vsts/git/v4_1/models/comment_thread.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentThread(Model): - """CommentThread. - - :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` - :param comments: A list of the comments. - :type comments: list of :class:`Comment ` - :param id: The comment thread id. - :type id: int - :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. - :type is_deleted: bool - :param last_updated_date: The time this thread was last updated. - :type last_updated_date: datetime - :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` - :param published_date: The time this thread was published. - :type published_date: datetime - :param status: The status of the comment thread. - :type status: object - :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comments': {'key': 'comments', 'type': '[Comment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'} - } - - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): - super(CommentThread, self).__init__() - self._links = _links - self.comments = comments - self.id = id - self.is_deleted = is_deleted - self.last_updated_date = last_updated_date - self.properties = properties - self.published_date = published_date - self.status = status - self.thread_context = thread_context diff --git a/vsts/vsts/git/v4_1/models/comment_thread_context.py b/vsts/vsts/git/v4_1/models/comment_thread_context.py deleted file mode 100644 index ab02bda7..00000000 --- a/vsts/vsts/git/v4_1/models/comment_thread_context.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentThreadContext(Model): - """CommentThreadContext. - - :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. - :type file_path: str - :param left_file_end: Position of last character of the thread's span in left file. - :type left_file_end: :class:`CommentPosition ` - :param left_file_start: Position of first character of the thread's span in left file. - :type left_file_start: :class:`CommentPosition ` - :param right_file_end: Position of last character of the thread's span in right file. - :type right_file_end: :class:`CommentPosition ` - :param right_file_start: Position of first character of the thread's span in right file. - :type right_file_start: :class:`CommentPosition ` - """ - - _attribute_map = { - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'left_file_end': {'key': 'leftFileEnd', 'type': 'CommentPosition'}, - 'left_file_start': {'key': 'leftFileStart', 'type': 'CommentPosition'}, - 'right_file_end': {'key': 'rightFileEnd', 'type': 'CommentPosition'}, - 'right_file_start': {'key': 'rightFileStart', 'type': 'CommentPosition'} - } - - def __init__(self, file_path=None, left_file_end=None, left_file_start=None, right_file_end=None, right_file_start=None): - super(CommentThreadContext, self).__init__() - self.file_path = file_path - self.left_file_end = left_file_end - self.left_file_start = left_file_start - self.right_file_end = right_file_end - self.right_file_start = right_file_start diff --git a/vsts/vsts/git/v4_1/models/comment_tracking_criteria.py b/vsts/vsts/git/v4_1/models/comment_tracking_criteria.py deleted file mode 100644 index f6adc4e0..00000000 --- a/vsts/vsts/git/v4_1/models/comment_tracking_criteria.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CommentTrackingCriteria(Model): - """CommentTrackingCriteria. - - :param first_comparing_iteration: The iteration of the file on the left side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. - :type first_comparing_iteration: int - :param orig_file_path: Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. - :type orig_file_path: str - :param orig_left_file_end: Original position of last character of the thread's span in left file. - :type orig_left_file_end: :class:`CommentPosition ` - :param orig_left_file_start: Original position of first character of the thread's span in left file. - :type orig_left_file_start: :class:`CommentPosition ` - :param orig_right_file_end: Original position of last character of the thread's span in right file. - :type orig_right_file_end: :class:`CommentPosition ` - :param orig_right_file_start: Original position of first character of the thread's span in right file. - :type orig_right_file_start: :class:`CommentPosition ` - :param second_comparing_iteration: The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. - :type second_comparing_iteration: int - """ - - _attribute_map = { - 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, - 'orig_file_path': {'key': 'origFilePath', 'type': 'str'}, - 'orig_left_file_end': {'key': 'origLeftFileEnd', 'type': 'CommentPosition'}, - 'orig_left_file_start': {'key': 'origLeftFileStart', 'type': 'CommentPosition'}, - 'orig_right_file_end': {'key': 'origRightFileEnd', 'type': 'CommentPosition'}, - 'orig_right_file_start': {'key': 'origRightFileStart', 'type': 'CommentPosition'}, - 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} - } - - def __init__(self, first_comparing_iteration=None, orig_file_path=None, orig_left_file_end=None, orig_left_file_start=None, orig_right_file_end=None, orig_right_file_start=None, second_comparing_iteration=None): - super(CommentTrackingCriteria, self).__init__() - self.first_comparing_iteration = first_comparing_iteration - self.orig_file_path = orig_file_path - self.orig_left_file_end = orig_left_file_end - self.orig_left_file_start = orig_left_file_start - self.orig_right_file_end = orig_right_file_end - self.orig_right_file_start = orig_right_file_start - self.second_comparing_iteration = second_comparing_iteration diff --git a/vsts/vsts/git/v4_1/models/file_content_metadata.py b/vsts/vsts/git/v4_1/models/file_content_metadata.py deleted file mode 100644 index d2d6667d..00000000 --- a/vsts/vsts/git/v4_1/models/file_content_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FileContentMetadata(Model): - """FileContentMetadata. - - :param content_type: - :type content_type: str - :param encoding: - :type encoding: int - :param extension: - :type extension: str - :param file_name: - :type file_name: str - :param is_binary: - :type is_binary: bool - :param is_image: - :type is_image: bool - :param vs_link: - :type vs_link: str - """ - - _attribute_map = { - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'encoding': {'key': 'encoding', 'type': 'int'}, - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'is_binary': {'key': 'isBinary', 'type': 'bool'}, - 'is_image': {'key': 'isImage', 'type': 'bool'}, - 'vs_link': {'key': 'vsLink', 'type': 'str'} - } - - def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): - super(FileContentMetadata, self).__init__() - self.content_type = content_type - self.encoding = encoding - self.extension = extension - self.file_name = file_name - self.is_binary = is_binary - self.is_image = is_image - self.vs_link = vs_link diff --git a/vsts/vsts/git/v4_1/models/git_annotated_tag.py b/vsts/vsts/git/v4_1/models/git_annotated_tag.py deleted file mode 100644 index 22bc01ae..00000000 --- a/vsts/vsts/git/v4_1/models/git_annotated_tag.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAnnotatedTag(Model): - """GitAnnotatedTag. - - :param message: The tagging Message - :type message: str - :param name: The name of the annotated tag. - :type name: str - :param object_id: The objectId (Sha1Id) of the tag. - :type object_id: str - :param tagged_by: User info and date of tagging. - :type tagged_by: :class:`GitUserDate ` - :param tagged_object: Tagged git object. - :type tagged_object: :class:`GitObject ` - :param url: - :type url: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'tagged_by': {'key': 'taggedBy', 'type': 'GitUserDate'}, - 'tagged_object': {'key': 'taggedObject', 'type': 'GitObject'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, message=None, name=None, object_id=None, tagged_by=None, tagged_object=None, url=None): - super(GitAnnotatedTag, self).__init__() - self.message = message - self.name = name - self.object_id = object_id - self.tagged_by = tagged_by - self.tagged_object = tagged_object - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_async_ref_operation.py b/vsts/vsts/git/v4_1/models/git_async_ref_operation.py deleted file mode 100644 index 717e9c30..00000000 --- a/vsts/vsts/git/v4_1/models/git_async_ref_operation.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperation(Model): - """GitAsyncRefOperation. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` - :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` - :param status: - :type status: object - :param url: A URL that can be used to make further requests for status about the operation - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, - 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None): - super(GitAsyncRefOperation, self).__init__() - self._links = _links - self.detailed_status = detailed_status - self.parameters = parameters - self.status = status - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py b/vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py deleted file mode 100644 index 6da55de6..00000000 --- a/vsts/vsts/git/v4_1/models/git_async_ref_operation_detail.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperationDetail(Model): - """GitAsyncRefOperationDetail. - - :param conflict: Indicates if there was a conflict generated when trying to cherry pick or revert the changes. - :type conflict: bool - :param current_commit_id: The current commit from the list of commits that are being cherry picked or reverted. - :type current_commit_id: str - :param failure_message: Detailed information about why the cherry pick or revert failed to complete. - :type failure_message: str - :param progress: A number between 0 and 1 indicating the percent complete of the operation. - :type progress: float - :param status: Provides a status code that indicates the reason the cherry pick or revert failed. - :type status: object - :param timedout: Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation. - :type timedout: bool - """ - - _attribute_map = { - 'conflict': {'key': 'conflict', 'type': 'bool'}, - 'current_commit_id': {'key': 'currentCommitId', 'type': 'str'}, - 'failure_message': {'key': 'failureMessage', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'float'}, - 'status': {'key': 'status', 'type': 'object'}, - 'timedout': {'key': 'timedout', 'type': 'bool'} - } - - def __init__(self, conflict=None, current_commit_id=None, failure_message=None, progress=None, status=None, timedout=None): - super(GitAsyncRefOperationDetail, self).__init__() - self.conflict = conflict - self.current_commit_id = current_commit_id - self.failure_message = failure_message - self.progress = progress - self.status = status - self.timedout = timedout diff --git a/vsts/vsts/git/v4_1/models/git_async_ref_operation_parameters.py b/vsts/vsts/git/v4_1/models/git_async_ref_operation_parameters.py deleted file mode 100644 index 5ef419b1..00000000 --- a/vsts/vsts/git/v4_1/models/git_async_ref_operation_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperationParameters(Model): - """GitAsyncRefOperationParameters. - - :param generated_ref_name: Proposed target branch name for the cherry pick or revert operation. - :type generated_ref_name: str - :param onto_ref_name: The target branch for the cherry pick or revert operation. - :type onto_ref_name: str - :param repository: The git repository for the cherry pick or revert operation. - :type repository: :class:`GitRepository ` - :param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). - :type source: :class:`GitAsyncRefOperationSource ` - """ - - _attribute_map = { - 'generated_ref_name': {'key': 'generatedRefName', 'type': 'str'}, - 'onto_ref_name': {'key': 'ontoRefName', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'source': {'key': 'source', 'type': 'GitAsyncRefOperationSource'} - } - - def __init__(self, generated_ref_name=None, onto_ref_name=None, repository=None, source=None): - super(GitAsyncRefOperationParameters, self).__init__() - self.generated_ref_name = generated_ref_name - self.onto_ref_name = onto_ref_name - self.repository = repository - self.source = source diff --git a/vsts/vsts/git/v4_1/models/git_async_ref_operation_source.py b/vsts/vsts/git/v4_1/models/git_async_ref_operation_source.py deleted file mode 100644 index 202f7e5e..00000000 --- a/vsts/vsts/git/v4_1/models/git_async_ref_operation_source.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitAsyncRefOperationSource(Model): - """GitAsyncRefOperationSource. - - :param commit_list: A list of commits to cherry pick or revert - :type commit_list: list of :class:`GitCommitRef ` - :param pull_request_id: Id of the pull request to cherry pick or revert - :type pull_request_id: int - """ - - _attribute_map = { - 'commit_list': {'key': 'commitList', 'type': '[GitCommitRef]'}, - 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} - } - - def __init__(self, commit_list=None, pull_request_id=None): - super(GitAsyncRefOperationSource, self).__init__() - self.commit_list = commit_list - self.pull_request_id = pull_request_id diff --git a/vsts/vsts/git/v4_1/models/git_base_version_descriptor.py b/vsts/vsts/git/v4_1/models/git_base_version_descriptor.py deleted file mode 100644 index d922e638..00000000 --- a/vsts/vsts/git/v4_1/models/git_base_version_descriptor.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_version_descriptor import GitVersionDescriptor - - -class GitBaseVersionDescriptor(GitVersionDescriptor): - """GitBaseVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - :param base_version: Version string identifier (name of tag/branch, SHA1 of commit) - :type base_version: str - :param base_version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type base_version_options: object - :param base_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type base_version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'}, - 'base_version': {'key': 'baseVersion', 'type': 'str'}, - 'base_version_options': {'key': 'baseVersionOptions', 'type': 'object'}, - 'base_version_type': {'key': 'baseVersionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None, base_version=None, base_version_options=None, base_version_type=None): - super(GitBaseVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) - self.base_version = base_version - self.base_version_options = base_version_options - self.base_version_type = base_version_type diff --git a/vsts/vsts/git/v4_1/models/git_blob_ref.py b/vsts/vsts/git/v4_1/models/git_blob_ref.py deleted file mode 100644 index aa965e38..00000000 --- a/vsts/vsts/git/v4_1/models/git_blob_ref.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitBlobRef(Model): - """GitBlobRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param object_id: SHA1 hash of git object - :type object_id: str - :param size: Size of blob content (in bytes) - :type size: long - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, object_id=None, size=None, url=None): - super(GitBlobRef, self).__init__() - self._links = _links - self.object_id = object_id - self.size = size - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_branch_stats.py b/vsts/vsts/git/v4_1/models/git_branch_stats.py deleted file mode 100644 index f8a6ab31..00000000 --- a/vsts/vsts/git/v4_1/models/git_branch_stats.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitBranchStats(Model): - """GitBranchStats. - - :param ahead_count: Number of commits ahead. - :type ahead_count: int - :param behind_count: Number of commits behind. - :type behind_count: int - :param commit: Current commit. - :type commit: :class:`GitCommitRef ` - :param is_base_version: True if this is the result for the base version. - :type is_base_version: bool - :param name: Name of the ref. - :type name: str - """ - - _attribute_map = { - 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, - 'behind_count': {'key': 'behindCount', 'type': 'int'}, - 'commit': {'key': 'commit', 'type': 'GitCommitRef'}, - 'is_base_version': {'key': 'isBaseVersion', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, ahead_count=None, behind_count=None, commit=None, is_base_version=None, name=None): - super(GitBranchStats, self).__init__() - self.ahead_count = ahead_count - self.behind_count = behind_count - self.commit = commit - self.is_base_version = is_base_version - self.name = name diff --git a/vsts/vsts/git/v4_1/models/git_cherry_pick.py b/vsts/vsts/git/v4_1/models/git_cherry_pick.py deleted file mode 100644 index c4b396f6..00000000 --- a/vsts/vsts/git/v4_1/models/git_cherry_pick.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_async_ref_operation import GitAsyncRefOperation - - -class GitCherryPick(GitAsyncRefOperation): - """GitCherryPick. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` - :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` - :param status: - :type status: object - :param url: A URL that can be used to make further requests for status about the operation - :type url: str - :param cherry_pick_id: - :type cherry_pick_id: int - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, - 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'cherry_pick_id': {'key': 'cherryPickId', 'type': 'int'} - } - - def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, cherry_pick_id=None): - super(GitCherryPick, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) - self.cherry_pick_id = cherry_pick_id diff --git a/vsts/vsts/git/v4_1/models/git_commit.py b/vsts/vsts/git/v4_1/models/git_commit.py deleted file mode 100644 index a00dcbb4..00000000 --- a/vsts/vsts/git/v4_1/models/git_commit.py +++ /dev/null @@ -1,68 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_commit_ref import GitCommitRef - - -class GitCommit(GitCommitRef): - """GitCommit. - - :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` - :param author: Author of the commit. - :type author: :class:`GitUserDate ` - :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: dict - :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` - :param comment: Comment or message of the commit. - :type comment: str - :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. - :type comment_truncated: bool - :param commit_id: ID (SHA-1) of the commit. - :type commit_id: str - :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` - :param parents: An enumeration of the parent commit IDs for this commit. - :type parents: list of str - :param remote_url: Remote URL path to the commit. - :type remote_url: str - :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` - :param url: REST URL for this resource. - :type url: str - :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` - :param push: - :type push: :class:`GitPushRef ` - :param tree_id: - :type tree_id: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'parents': {'key': 'parents', 'type': '[str]'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'}, - 'push': {'key': 'push', 'type': 'GitPushRef'}, - 'tree_id': {'key': 'treeId', 'type': 'str'} - } - - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None, push=None, tree_id=None): - super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) - self.push = push - self.tree_id = tree_id diff --git a/vsts/vsts/git/v4_1/models/git_commit_changes.py b/vsts/vsts/git/v4_1/models/git_commit_changes.py deleted file mode 100644 index 9d82a623..00000000 --- a/vsts/vsts/git/v4_1/models/git_commit_changes.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitCommitChanges(Model): - """GitCommitChanges. - - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - """ - - _attribute_map = { - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'} - } - - def __init__(self, change_counts=None, changes=None): - super(GitCommitChanges, self).__init__() - self.change_counts = change_counts - self.changes = changes diff --git a/vsts/vsts/git/v4_1/models/git_commit_diffs.py b/vsts/vsts/git/v4_1/models/git_commit_diffs.py deleted file mode 100644 index a6836a10..00000000 --- a/vsts/vsts/git/v4_1/models/git_commit_diffs.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitCommitDiffs(Model): - """GitCommitDiffs. - - :param ahead_count: - :type ahead_count: int - :param all_changes_included: - :type all_changes_included: bool - :param base_commit: - :type base_commit: str - :param behind_count: - :type behind_count: int - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param common_commit: - :type common_commit: str - :param target_commit: - :type target_commit: str - """ - - _attribute_map = { - 'ahead_count': {'key': 'aheadCount', 'type': 'int'}, - 'all_changes_included': {'key': 'allChangesIncluded', 'type': 'bool'}, - 'base_commit': {'key': 'baseCommit', 'type': 'str'}, - 'behind_count': {'key': 'behindCount', 'type': 'int'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'common_commit': {'key': 'commonCommit', 'type': 'str'}, - 'target_commit': {'key': 'targetCommit', 'type': 'str'} - } - - def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None, behind_count=None, change_counts=None, changes=None, common_commit=None, target_commit=None): - super(GitCommitDiffs, self).__init__() - self.ahead_count = ahead_count - self.all_changes_included = all_changes_included - self.base_commit = base_commit - self.behind_count = behind_count - self.change_counts = change_counts - self.changes = changes - self.common_commit = common_commit - self.target_commit = target_commit diff --git a/vsts/vsts/git/v4_1/models/git_commit_ref.py b/vsts/vsts/git/v4_1/models/git_commit_ref.py deleted file mode 100644 index 5278e92e..00000000 --- a/vsts/vsts/git/v4_1/models/git_commit_ref.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitCommitRef(Model): - """GitCommitRef. - - :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` - :param author: Author of the commit. - :type author: :class:`GitUserDate ` - :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: dict - :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` - :param comment: Comment or message of the commit. - :type comment: str - :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. - :type comment_truncated: bool - :param commit_id: ID (SHA-1) of the commit. - :type commit_id: str - :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` - :param parents: An enumeration of the parent commit IDs for this commit. - :type parents: list of str - :param remote_url: Remote URL path to the commit. - :type remote_url: str - :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` - :param url: REST URL for this resource. - :type url: str - :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'parents': {'key': 'parents', 'type': '[str]'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} - } - - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): - super(GitCommitRef, self).__init__() - self._links = _links - self.author = author - self.change_counts = change_counts - self.changes = changes - self.comment = comment - self.comment_truncated = comment_truncated - self.commit_id = commit_id - self.committer = committer - self.parents = parents - self.remote_url = remote_url - self.statuses = statuses - self.url = url - self.work_items = work_items diff --git a/vsts/vsts/git/v4_1/models/git_conflict.py b/vsts/vsts/git/v4_1/models/git_conflict.py deleted file mode 100644 index 018a9afe..00000000 --- a/vsts/vsts/git/v4_1/models/git_conflict.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitConflict(Model): - """GitConflict. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param conflict_id: - :type conflict_id: int - :param conflict_path: - :type conflict_path: str - :param conflict_type: - :type conflict_type: object - :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` - :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` - :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` - :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` - :param resolution_error: - :type resolution_error: object - :param resolution_status: - :type resolution_status: object - :param resolved_by: - :type resolved_by: :class:`IdentityRef ` - :param resolved_date: - :type resolved_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'conflict_id': {'key': 'conflictId', 'type': 'int'}, - 'conflict_path': {'key': 'conflictPath', 'type': 'str'}, - 'conflict_type': {'key': 'conflictType', 'type': 'object'}, - 'merge_base_commit': {'key': 'mergeBaseCommit', 'type': 'GitCommitRef'}, - 'merge_origin': {'key': 'mergeOrigin', 'type': 'GitMergeOriginRef'}, - 'merge_source_commit': {'key': 'mergeSourceCommit', 'type': 'GitCommitRef'}, - 'merge_target_commit': {'key': 'mergeTargetCommit', 'type': 'GitCommitRef'}, - 'resolution_error': {'key': 'resolutionError', 'type': 'object'}, - 'resolution_status': {'key': 'resolutionStatus', 'type': 'object'}, - 'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'}, - 'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, conflict_id=None, conflict_path=None, conflict_type=None, merge_base_commit=None, merge_origin=None, merge_source_commit=None, merge_target_commit=None, resolution_error=None, resolution_status=None, resolved_by=None, resolved_date=None, url=None): - super(GitConflict, self).__init__() - self._links = _links - self.conflict_id = conflict_id - self.conflict_path = conflict_path - self.conflict_type = conflict_type - self.merge_base_commit = merge_base_commit - self.merge_origin = merge_origin - self.merge_source_commit = merge_source_commit - self.merge_target_commit = merge_target_commit - self.resolution_error = resolution_error - self.resolution_status = resolution_status - self.resolved_by = resolved_by - self.resolved_date = resolved_date - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_conflict_update_result.py b/vsts/vsts/git/v4_1/models/git_conflict_update_result.py deleted file mode 100644 index b60af798..00000000 --- a/vsts/vsts/git/v4_1/models/git_conflict_update_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitConflictUpdateResult(Model): - """GitConflictUpdateResult. - - :param conflict_id: Conflict ID that was provided by input - :type conflict_id: int - :param custom_message: Reason for failing - :type custom_message: str - :param updated_conflict: New state of the conflict after updating - :type updated_conflict: :class:`GitConflict ` - :param update_status: Status of the update on the server - :type update_status: object - """ - - _attribute_map = { - 'conflict_id': {'key': 'conflictId', 'type': 'int'}, - 'custom_message': {'key': 'customMessage', 'type': 'str'}, - 'updated_conflict': {'key': 'updatedConflict', 'type': 'GitConflict'}, - 'update_status': {'key': 'updateStatus', 'type': 'object'} - } - - def __init__(self, conflict_id=None, custom_message=None, updated_conflict=None, update_status=None): - super(GitConflictUpdateResult, self).__init__() - self.conflict_id = conflict_id - self.custom_message = custom_message - self.updated_conflict = updated_conflict - self.update_status = update_status diff --git a/vsts/vsts/git/v4_1/models/git_deleted_repository.py b/vsts/vsts/git/v4_1/models/git_deleted_repository.py deleted file mode 100644 index c6710b55..00000000 --- a/vsts/vsts/git/v4_1/models/git_deleted_repository.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitDeletedRepository(Model): - """GitDeletedRepository. - - :param created_date: - :type created_date: datetime - :param deleted_by: - :type deleted_by: :class:`IdentityRef ` - :param deleted_date: - :type deleted_date: datetime - :param id: - :type id: str - :param name: - :type name: str - :param project: - :type project: :class:`TeamProjectReference ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'} - } - - def __init__(self, created_date=None, deleted_by=None, deleted_date=None, id=None, name=None, project=None): - super(GitDeletedRepository, self).__init__() - self.created_date = created_date - self.deleted_by = deleted_by - self.deleted_date = deleted_date - self.id = id - self.name = name - self.project = project diff --git a/vsts/vsts/git/v4_1/models/git_file_paths_collection.py b/vsts/vsts/git/v4_1/models/git_file_paths_collection.py deleted file mode 100644 index 9d0863d6..00000000 --- a/vsts/vsts/git/v4_1/models/git_file_paths_collection.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitFilePathsCollection(Model): - """GitFilePathsCollection. - - :param commit_id: - :type commit_id: str - :param paths: - :type paths: list of str - :param url: - :type url: str - """ - - _attribute_map = { - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, commit_id=None, paths=None, url=None): - super(GitFilePathsCollection, self).__init__() - self.commit_id = commit_id - self.paths = paths - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_fork_operation_status_detail.py b/vsts/vsts/git/v4_1/models/git_fork_operation_status_detail.py deleted file mode 100644 index ce438967..00000000 --- a/vsts/vsts/git/v4_1/models/git_fork_operation_status_detail.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitForkOperationStatusDetail(Model): - """GitForkOperationStatusDetail. - - :param all_steps: All valid steps for the forking process - :type all_steps: list of str - :param current_step: Index into AllSteps for the current step - :type current_step: int - :param error_message: Error message if the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'all_steps': {'key': 'allSteps', 'type': '[str]'}, - 'current_step': {'key': 'currentStep', 'type': 'int'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'} - } - - def __init__(self, all_steps=None, current_step=None, error_message=None): - super(GitForkOperationStatusDetail, self).__init__() - self.all_steps = all_steps - self.current_step = current_step - self.error_message = error_message diff --git a/vsts/vsts/git/v4_1/models/git_fork_ref.py b/vsts/vsts/git/v4_1/models/git_fork_ref.py deleted file mode 100644 index b5f8b9f0..00000000 --- a/vsts/vsts/git/v4_1/models/git_fork_ref.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_ref import GitRef - - -class GitForkRef(GitRef): - """GitForkRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param creator: - :type creator: :class:`IdentityRef ` - :param is_locked: - :type is_locked: bool - :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` - :param name: - :type name: str - :param object_id: - :type object_id: str - :param peeled_object_id: - :type peeled_object_id: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - :param repository: The repository ID of the fork. - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'creator': {'key': 'creator', 'type': 'IdentityRef'}, - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): - super(GitForkRef, self).__init__(_links=_links, creator=creator, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) - self.repository = repository diff --git a/vsts/vsts/git/v4_1/models/git_fork_sync_request.py b/vsts/vsts/git/v4_1/models/git_fork_sync_request.py deleted file mode 100644 index 4630508a..00000000 --- a/vsts/vsts/git/v4_1/models/git_fork_sync_request.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitForkSyncRequest(Model): - """GitForkSyncRequest. - - :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` - :param operation_id: Unique identifier for the operation. - :type operation_id: int - :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` - :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` - :param status: - :type status: object - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitForkOperationStatusDetail'}, - 'operation_id': {'key': 'operationId', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, - 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, _links=None, detailed_status=None, operation_id=None, source=None, source_to_target_refs=None, status=None): - super(GitForkSyncRequest, self).__init__() - self._links = _links - self.detailed_status = detailed_status - self.operation_id = operation_id - self.source = source - self.source_to_target_refs = source_to_target_refs - self.status = status diff --git a/vsts/vsts/git/v4_1/models/git_fork_sync_request_parameters.py b/vsts/vsts/git/v4_1/models/git_fork_sync_request_parameters.py deleted file mode 100644 index 6aee27ed..00000000 --- a/vsts/vsts/git/v4_1/models/git_fork_sync_request_parameters.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitForkSyncRequestParameters(Model): - """GitForkSyncRequestParameters. - - :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` - :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` - """ - - _attribute_map = { - 'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'}, - 'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'} - } - - def __init__(self, source=None, source_to_target_refs=None): - super(GitForkSyncRequestParameters, self).__init__() - self.source = source - self.source_to_target_refs = source_to_target_refs diff --git a/vsts/vsts/git/v4_1/models/git_import_git_source.py b/vsts/vsts/git/v4_1/models/git_import_git_source.py deleted file mode 100644 index bc20b2b8..00000000 --- a/vsts/vsts/git/v4_1/models/git_import_git_source.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportGitSource(Model): - """GitImportGitSource. - - :param overwrite: Tells if this is a sync request or not - :type overwrite: bool - :param url: Url for the source repo - :type url: str - """ - - _attribute_map = { - 'overwrite': {'key': 'overwrite', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, overwrite=None, url=None): - super(GitImportGitSource, self).__init__() - self.overwrite = overwrite - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_import_request.py b/vsts/vsts/git/v4_1/models/git_import_request.py deleted file mode 100644 index 694e1fc0..00000000 --- a/vsts/vsts/git/v4_1/models/git_import_request.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportRequest(Model): - """GitImportRequest. - - :param _links: Links to related resources. - :type _links: :class:`ReferenceLinks ` - :param detailed_status: Detailed status of the import, including the current step and an error message, if applicable. - :type detailed_status: :class:`GitImportStatusDetail ` - :param import_request_id: The unique identifier for this import request. - :type import_request_id: int - :param parameters: Parameters for creating the import request. - :type parameters: :class:`GitImportRequestParameters ` - :param repository: The target repository for this import. - :type repository: :class:`GitRepository ` - :param status: Current status of the import. - :type status: object - :param url: A link back to this import request resource. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitImportStatusDetail'}, - 'import_request_id': {'key': 'importRequestId', 'type': 'int'}, - 'parameters': {'key': 'parameters', 'type': 'GitImportRequestParameters'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, detailed_status=None, import_request_id=None, parameters=None, repository=None, status=None, url=None): - super(GitImportRequest, self).__init__() - self._links = _links - self.detailed_status = detailed_status - self.import_request_id = import_request_id - self.parameters = parameters - self.repository = repository - self.status = status - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_import_request_parameters.py b/vsts/vsts/git/v4_1/models/git_import_request_parameters.py deleted file mode 100644 index 62485b9e..00000000 --- a/vsts/vsts/git/v4_1/models/git_import_request_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportRequestParameters(Model): - """GitImportRequestParameters. - - :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done - :type delete_service_endpoint_after_import_is_done: bool - :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` - :param service_endpoint_id: Service Endpoint for connection to external endpoint - :type service_endpoint_id: str - :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` - """ - - _attribute_map = { - 'delete_service_endpoint_after_import_is_done': {'key': 'deleteServiceEndpointAfterImportIsDone', 'type': 'bool'}, - 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, - 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'}, - 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'} - } - - def __init__(self, delete_service_endpoint_after_import_is_done=None, git_source=None, service_endpoint_id=None, tfvc_source=None): - super(GitImportRequestParameters, self).__init__() - self.delete_service_endpoint_after_import_is_done = delete_service_endpoint_after_import_is_done - self.git_source = git_source - self.service_endpoint_id = service_endpoint_id - self.tfvc_source = tfvc_source diff --git a/vsts/vsts/git/v4_1/models/git_import_status_detail.py b/vsts/vsts/git/v4_1/models/git_import_status_detail.py deleted file mode 100644 index 5bb83114..00000000 --- a/vsts/vsts/git/v4_1/models/git_import_status_detail.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportStatusDetail(Model): - """GitImportStatusDetail. - - :param all_steps: All valid steps for the import process - :type all_steps: list of str - :param current_step: Index into AllSteps for the current step - :type current_step: int - :param error_message: Error message if the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'all_steps': {'key': 'allSteps', 'type': '[str]'}, - 'current_step': {'key': 'currentStep', 'type': 'int'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'} - } - - def __init__(self, all_steps=None, current_step=None, error_message=None): - super(GitImportStatusDetail, self).__init__() - self.all_steps = all_steps - self.current_step = current_step - self.error_message = error_message diff --git a/vsts/vsts/git/v4_1/models/git_import_tfvc_source.py b/vsts/vsts/git/v4_1/models/git_import_tfvc_source.py deleted file mode 100644 index 57f185fc..00000000 --- a/vsts/vsts/git/v4_1/models/git_import_tfvc_source.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitImportTfvcSource(Model): - """GitImportTfvcSource. - - :param import_history: Set true to import History, false otherwise - :type import_history: bool - :param import_history_duration_in_days: Get history for last n days (max allowed value is 180 days) - :type import_history_duration_in_days: int - :param path: Path which we want to import (this can be copied from Path Control in Explorer) - :type path: str - """ - - _attribute_map = { - 'import_history': {'key': 'importHistory', 'type': 'bool'}, - 'import_history_duration_in_days': {'key': 'importHistoryDurationInDays', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, import_history=None, import_history_duration_in_days=None, path=None): - super(GitImportTfvcSource, self).__init__() - self.import_history = import_history - self.import_history_duration_in_days = import_history_duration_in_days - self.path = path diff --git a/vsts/vsts/git/v4_1/models/git_item.py b/vsts/vsts/git/v4_1/models/git_item.py deleted file mode 100644 index 8b5dd309..00000000 --- a/vsts/vsts/git/v4_1/models/git_item.py +++ /dev/null @@ -1,62 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .item_model import ItemModel - - -class GitItem(ItemModel): - """GitItem. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content: - :type content: str - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - :param commit_id: SHA1 of commit item was fetched at - :type commit_id: str - :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) - :type git_object_type: object - :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` - :param object_id: Git object id - :type object_id: str - :param original_object_id: Git object id - :type original_object_id: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content': {'key': 'content', 'type': 'str'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, - 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} - } - - def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): - super(GitItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) - self.commit_id = commit_id - self.git_object_type = git_object_type - self.latest_processed_change = latest_processed_change - self.object_id = object_id - self.original_object_id = original_object_id diff --git a/vsts/vsts/git/v4_1/models/git_item_descriptor.py b/vsts/vsts/git/v4_1/models/git_item_descriptor.py deleted file mode 100644 index 3995a564..00000000 --- a/vsts/vsts/git/v4_1/models/git_item_descriptor.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitItemDescriptor(Model): - """GitItemDescriptor. - - :param path: Path to item - :type path: str - :param recursion_level: Specifies whether to include children (OneLevel), all descendants (Full), or None - :type recursion_level: object - :param version: Version string (interpretation based on VersionType defined in subclass - :type version: str - :param version_options: Version modifiers (e.g. previous) - :type version_options: object - :param version_type: How to interpret version (branch,tag,commit) - :type version_type: object - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, path=None, recursion_level=None, version=None, version_options=None, version_type=None): - super(GitItemDescriptor, self).__init__() - self.path = path - self.recursion_level = recursion_level - self.version = version - self.version_options = version_options - self.version_type = version_type diff --git a/vsts/vsts/git/v4_1/models/git_item_request_data.py b/vsts/vsts/git/v4_1/models/git_item_request_data.py deleted file mode 100644 index 4b3c504f..00000000 --- a/vsts/vsts/git/v4_1/models/git_item_request_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitItemRequestData(Model): - """GitItemRequestData. - - :param include_content_metadata: Whether to include metadata for all items - :type include_content_metadata: bool - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` - :param latest_processed_change: Whether to include shallow ref to commit that last changed each item - :type latest_processed_change: bool - """ - - _attribute_map = { - 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_descriptors': {'key': 'itemDescriptors', 'type': '[GitItemDescriptor]'}, - 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'bool'} - } - - def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None, latest_processed_change=None): - super(GitItemRequestData, self).__init__() - self.include_content_metadata = include_content_metadata - self.include_links = include_links - self.item_descriptors = item_descriptors - self.latest_processed_change = latest_processed_change diff --git a/vsts/vsts/git/v4_1/models/git_merge_origin_ref.py b/vsts/vsts/git/v4_1/models/git_merge_origin_ref.py deleted file mode 100644 index de5b7b63..00000000 --- a/vsts/vsts/git/v4_1/models/git_merge_origin_ref.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitMergeOriginRef(Model): - """GitMergeOriginRef. - - :param pull_request_id: - :type pull_request_id: int - """ - - _attribute_map = { - 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'} - } - - def __init__(self, pull_request_id=None): - super(GitMergeOriginRef, self).__init__() - self.pull_request_id = pull_request_id diff --git a/vsts/vsts/git/v4_1/models/git_object.py b/vsts/vsts/git/v4_1/models/git_object.py deleted file mode 100644 index 39f048af..00000000 --- a/vsts/vsts/git/v4_1/models/git_object.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitObject(Model): - """GitObject. - - :param object_id: Object Id (Sha1Id). - :type object_id: str - :param object_type: Type of object (Commit, Tree, Blob, Tag) - :type object_type: object - """ - - _attribute_map = { - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'object'} - } - - def __init__(self, object_id=None, object_type=None): - super(GitObject, self).__init__() - self.object_id = object_id - self.object_type = object_type diff --git a/vsts/vsts/git/v4_1/models/git_pull_request.py b/vsts/vsts/git/v4_1/models/git_pull_request.py deleted file mode 100644 index ee3288aa..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request.py +++ /dev/null @@ -1,153 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequest(Model): - """GitPullRequest. - - :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` - :param artifact_id: A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}``` - :type artifact_id: str - :param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it. - :type auto_complete_set_by: :class:`IdentityRef ` - :param closed_by: The user who closed the pull request. - :type closed_by: :class:`IdentityRef ` - :param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally). - :type closed_date: datetime - :param code_review_id: The code review ID of the pull request. Used internally. - :type code_review_id: int - :param commits: The commits contained in the pull request. - :type commits: list of :class:`GitCommitRef ` - :param completion_options: Options which affect how the pull request will be merged when it is completed. - :type completion_options: :class:`GitPullRequestCompletionOptions ` - :param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally. - :type completion_queue_time: datetime - :param created_by: The identity of the user who created the pull request. - :type created_by: :class:`IdentityRef ` - :param creation_date: The date when the pull request was created. - :type creation_date: datetime - :param description: The description of the pull request. - :type description: str - :param fork_source: If this is a PR from a fork this will contain information about its source. - :type fork_source: :class:`GitForkRef ` - :param labels: The labels associated with the pull request. - :type labels: list of :class:`WebApiTagDefinition ` - :param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. - :type last_merge_commit: :class:`GitCommitRef ` - :param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge. - :type last_merge_source_commit: :class:`GitCommitRef ` - :param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge. - :type last_merge_target_commit: :class:`GitCommitRef ` - :param merge_failure_message: If set, pull request merge failed for this reason. - :type merge_failure_message: str - :param merge_failure_type: The type of failure (if any) of the pull request merge. - :type merge_failure_type: object - :param merge_id: The ID of the job used to run the pull request merge. Used internally. - :type merge_id: str - :param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. - :type merge_options: :class:`GitPullRequestMergeOptions ` - :param merge_status: The current status of the pull request merge. - :type merge_status: object - :param pull_request_id: The ID of the pull request. - :type pull_request_id: int - :param remote_url: Used internally. - :type remote_url: str - :param repository: The repository containing the target branch of the pull request. - :type repository: :class:`GitRepository ` - :param reviewers: A list of reviewers on the pull request along with the state of their votes. - :type reviewers: list of :class:`IdentityRefWithVote ` - :param source_ref_name: The name of the source branch of the pull request. - :type source_ref_name: str - :param status: The status of the pull request. - :type status: object - :param supports_iterations: If true, this pull request supports multiple iterations. Iteration support means individual pushes to the source branch of the pull request can be reviewed and comments left in one iteration will be tracked across future iterations. - :type supports_iterations: bool - :param target_ref_name: The name of the target branch of the pull request. - :type target_ref_name: str - :param title: The title of the pull request. - :type title: str - :param url: Used internally. - :type url: str - :param work_item_refs: Any work item references associated with this pull request. - :type work_item_refs: list of :class:`ResourceRef ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'auto_complete_set_by': {'key': 'autoCompleteSetBy', 'type': 'IdentityRef'}, - 'closed_by': {'key': 'closedBy', 'type': 'IdentityRef'}, - 'closed_date': {'key': 'closedDate', 'type': 'iso-8601'}, - 'code_review_id': {'key': 'codeReviewId', 'type': 'int'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'completion_options': {'key': 'completionOptions', 'type': 'GitPullRequestCompletionOptions'}, - 'completion_queue_time': {'key': 'completionQueueTime', 'type': 'iso-8601'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fork_source': {'key': 'forkSource', 'type': 'GitForkRef'}, - 'labels': {'key': 'labels', 'type': '[WebApiTagDefinition]'}, - 'last_merge_commit': {'key': 'lastMergeCommit', 'type': 'GitCommitRef'}, - 'last_merge_source_commit': {'key': 'lastMergeSourceCommit', 'type': 'GitCommitRef'}, - 'last_merge_target_commit': {'key': 'lastMergeTargetCommit', 'type': 'GitCommitRef'}, - 'merge_failure_message': {'key': 'mergeFailureMessage', 'type': 'str'}, - 'merge_failure_type': {'key': 'mergeFailureType', 'type': 'object'}, - 'merge_id': {'key': 'mergeId', 'type': 'str'}, - 'merge_options': {'key': 'mergeOptions', 'type': 'GitPullRequestMergeOptions'}, - 'merge_status': {'key': 'mergeStatus', 'type': 'object'}, - 'pull_request_id': {'key': 'pullRequestId', 'type': 'int'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'reviewers': {'key': 'reviewers', 'type': '[IdentityRefWithVote]'}, - 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'supports_iterations': {'key': 'supportsIterations', 'type': 'bool'}, - 'target_ref_name': {'key': 'targetRefName', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_item_refs': {'key': 'workItemRefs', 'type': '[ResourceRef]'} - } - - def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): - super(GitPullRequest, self).__init__() - self._links = _links - self.artifact_id = artifact_id - self.auto_complete_set_by = auto_complete_set_by - self.closed_by = closed_by - self.closed_date = closed_date - self.code_review_id = code_review_id - self.commits = commits - self.completion_options = completion_options - self.completion_queue_time = completion_queue_time - self.created_by = created_by - self.creation_date = creation_date - self.description = description - self.fork_source = fork_source - self.labels = labels - self.last_merge_commit = last_merge_commit - self.last_merge_source_commit = last_merge_source_commit - self.last_merge_target_commit = last_merge_target_commit - self.merge_failure_message = merge_failure_message - self.merge_failure_type = merge_failure_type - self.merge_id = merge_id - self.merge_options = merge_options - self.merge_status = merge_status - self.pull_request_id = pull_request_id - self.remote_url = remote_url - self.repository = repository - self.reviewers = reviewers - self.source_ref_name = source_ref_name - self.status = status - self.supports_iterations = supports_iterations - self.target_ref_name = target_ref_name - self.title = title - self.url = url - self.work_item_refs = work_item_refs diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_change.py b/vsts/vsts/git/v4_1/models/git_pull_request_change.py deleted file mode 100644 index b2530216..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_change.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestChange(Model): - """GitPullRequestChange. - - :param change_tracking_id: ID used to track files through multiple changes. - :type change_tracking_id: int - """ - - _attribute_map = { - 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'} - } - - def __init__(self, change_tracking_id=None): - super(GitPullRequestChange, self).__init__() - self.change_tracking_id = change_tracking_id diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_comment_thread.py b/vsts/vsts/git/v4_1/models/git_pull_request_comment_thread.py deleted file mode 100644 index 99164041..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_comment_thread.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .comment_thread import CommentThread - - -class GitPullRequestCommentThread(CommentThread): - """GitPullRequestCommentThread. - - :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` - :param comments: A list of the comments. - :type comments: list of :class:`Comment ` - :param id: The comment thread id. - :type id: int - :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. - :type is_deleted: bool - :param last_updated_date: The time this thread was last updated. - :type last_updated_date: datetime - :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` - :param published_date: The time this thread was published. - :type published_date: datetime - :param status: The status of the comment thread. - :type status: object - :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` - :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comments': {'key': 'comments', 'type': '[Comment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'}, - 'pull_request_thread_context': {'key': 'pullRequestThreadContext', 'type': 'GitPullRequestCommentThreadContext'} - } - - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): - super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) - self.pull_request_thread_context = pull_request_thread_context diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_comment_thread_context.py b/vsts/vsts/git/v4_1/models/git_pull_request_comment_thread_context.py deleted file mode 100644 index c0173cf5..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_comment_thread_context.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestCommentThreadContext(Model): - """GitPullRequestCommentThreadContext. - - :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. - :type change_tracking_id: int - :param iteration_context: The iteration context being viewed when the thread was created. - :type iteration_context: :class:`CommentIterationContext ` - :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` - """ - - _attribute_map = { - 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'}, - 'iteration_context': {'key': 'iterationContext', 'type': 'CommentIterationContext'}, - 'tracking_criteria': {'key': 'trackingCriteria', 'type': 'CommentTrackingCriteria'} - } - - def __init__(self, change_tracking_id=None, iteration_context=None, tracking_criteria=None): - super(GitPullRequestCommentThreadContext, self).__init__() - self.change_tracking_id = change_tracking_id - self.iteration_context = iteration_context - self.tracking_criteria = tracking_criteria diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py b/vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py deleted file mode 100644 index 6c16e9d4..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_completion_options.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestCompletionOptions(Model): - """GitPullRequestCompletionOptions. - - :param bypass_policy: If true, policies will be explicitly bypassed while the pull request is completed. - :type bypass_policy: bool - :param bypass_reason: If policies are bypassed, this reason is stored as to why bypass was used. - :type bypass_reason: str - :param delete_source_branch: If true, the source branch of the pull request will be deleted after completion. - :type delete_source_branch: bool - :param merge_commit_message: If set, this will be used as the commit message of the merge commit. - :type merge_commit_message: str - :param squash_merge: If true, the commits in the pull request will be squash-merged into the specified target branch on completion. - :type squash_merge: bool - :param transition_work_items: If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved) - :type transition_work_items: bool - :param triggered_by_auto_complete: If true, the current completion attempt was triggered via auto-complete. Used internally. - :type triggered_by_auto_complete: bool - """ - - _attribute_map = { - 'bypass_policy': {'key': 'bypassPolicy', 'type': 'bool'}, - 'bypass_reason': {'key': 'bypassReason', 'type': 'str'}, - 'delete_source_branch': {'key': 'deleteSourceBranch', 'type': 'bool'}, - 'merge_commit_message': {'key': 'mergeCommitMessage', 'type': 'str'}, - 'squash_merge': {'key': 'squashMerge', 'type': 'bool'}, - 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'}, - 'triggered_by_auto_complete': {'key': 'triggeredByAutoComplete', 'type': 'bool'} - } - - def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None, triggered_by_auto_complete=None): - super(GitPullRequestCompletionOptions, self).__init__() - self.bypass_policy = bypass_policy - self.bypass_reason = bypass_reason - self.delete_source_branch = delete_source_branch - self.merge_commit_message = merge_commit_message - self.squash_merge = squash_merge - self.transition_work_items = transition_work_items - self.triggered_by_auto_complete = triggered_by_auto_complete diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_iteration.py b/vsts/vsts/git/v4_1/models/git_pull_request_iteration.py deleted file mode 100644 index 4814062e..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_iteration.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestIteration(Model): - """GitPullRequestIteration. - - :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` - :param author: Author of the pull request iteration. - :type author: :class:`IdentityRef ` - :param change_list: Changes included with the pull request iteration. - :type change_list: list of :class:`GitPullRequestChange ` - :param commits: The commits included with the pull request iteration. - :type commits: list of :class:`GitCommitRef ` - :param common_ref_commit: The first common Git commit of the source and target refs. - :type common_ref_commit: :class:`GitCommitRef ` - :param created_date: The creation date of the pull request iteration. - :type created_date: datetime - :param description: Description of the pull request iteration. - :type description: str - :param has_more_commits: Indicates if the Commits property contains a truncated list of commits in this pull request iteration. - :type has_more_commits: bool - :param id: ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request. - :type id: int - :param push: The Git push information associated with this pull request iteration. - :type push: :class:`GitPushRef ` - :param reason: The reason for which the pull request iteration was created. - :type reason: object - :param source_ref_commit: The source Git commit of this iteration. - :type source_ref_commit: :class:`GitCommitRef ` - :param target_ref_commit: The target Git commit of this iteration. - :type target_ref_commit: :class:`GitCommitRef ` - :param updated_date: The updated date of the pull request iteration. - :type updated_date: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'change_list': {'key': 'changeList', 'type': '[GitPullRequestChange]'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'common_ref_commit': {'key': 'commonRefCommit', 'type': 'GitCommitRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'has_more_commits': {'key': 'hasMoreCommits', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'push': {'key': 'push', 'type': 'GitPushRef'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'source_ref_commit': {'key': 'sourceRefCommit', 'type': 'GitCommitRef'}, - 'target_ref_commit': {'key': 'targetRefCommit', 'type': 'GitCommitRef'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): - super(GitPullRequestIteration, self).__init__() - self._links = _links - self.author = author - self.change_list = change_list - self.commits = commits - self.common_ref_commit = common_ref_commit - self.created_date = created_date - self.description = description - self.has_more_commits = has_more_commits - self.id = id - self.push = push - self.reason = reason - self.source_ref_commit = source_ref_commit - self.target_ref_commit = target_ref_commit - self.updated_date = updated_date diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_iteration_changes.py b/vsts/vsts/git/v4_1/models/git_pull_request_iteration_changes.py deleted file mode 100644 index 56cc5534..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_iteration_changes.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestIterationChanges(Model): - """GitPullRequestIterationChanges. - - :param change_entries: Changes made in the iteration. - :type change_entries: list of :class:`GitPullRequestChange ` - :param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. - :type next_skip: int - :param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes. - :type next_top: int - """ - - _attribute_map = { - 'change_entries': {'key': 'changeEntries', 'type': '[GitPullRequestChange]'}, - 'next_skip': {'key': 'nextSkip', 'type': 'int'}, - 'next_top': {'key': 'nextTop', 'type': 'int'} - } - - def __init__(self, change_entries=None, next_skip=None, next_top=None): - super(GitPullRequestIterationChanges, self).__init__() - self.change_entries = change_entries - self.next_skip = next_skip - self.next_top = next_top diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py b/vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py deleted file mode 100644 index f2a86044..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_merge_options.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestMergeOptions(Model): - """GitPullRequestMergeOptions. - - :param detect_rename_false_positives: - :type detect_rename_false_positives: bool - :param disable_renames: If true, rename detection will not be performed during the merge. - :type disable_renames: bool - """ - - _attribute_map = { - 'detect_rename_false_positives': {'key': 'detectRenameFalsePositives', 'type': 'bool'}, - 'disable_renames': {'key': 'disableRenames', 'type': 'bool'} - } - - def __init__(self, detect_rename_false_positives=None, disable_renames=None): - super(GitPullRequestMergeOptions, self).__init__() - self.detect_rename_false_positives = detect_rename_false_positives - self.disable_renames = disable_renames diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_query.py b/vsts/vsts/git/v4_1/models/git_pull_request_query.py deleted file mode 100644 index e557ed21..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestQuery(Model): - """GitPullRequestQuery. - - :param queries: The queries to perform. - :type queries: list of :class:`GitPullRequestQueryInput ` - :param results: The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. - :type results: list of {[GitPullRequest]} - """ - - _attribute_map = { - 'queries': {'key': 'queries', 'type': '[GitPullRequestQueryInput]'}, - 'results': {'key': 'results', 'type': '[{[GitPullRequest]}]'} - } - - def __init__(self, queries=None, results=None): - super(GitPullRequestQuery, self).__init__() - self.queries = queries - self.results = results diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_query_input.py b/vsts/vsts/git/v4_1/models/git_pull_request_query_input.py deleted file mode 100644 index f6f614a3..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_query_input.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestQueryInput(Model): - """GitPullRequestQueryInput. - - :param items: The list of commit IDs to search for. - :type items: list of str - :param type: The type of query to perform. - :type type: object - """ - - _attribute_map = { - 'items': {'key': 'items', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, items=None, type=None): - super(GitPullRequestQueryInput, self).__init__() - self.items = items - self.type = type diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_search_criteria.py b/vsts/vsts/git/v4_1/models/git_pull_request_search_criteria.py deleted file mode 100644 index 4550d42c..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_search_criteria.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPullRequestSearchCriteria(Model): - """GitPullRequestSearchCriteria. - - :param creator_id: If set, search for pull requests that were created by this identity. - :type creator_id: str - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param repository_id: If set, search for pull requests whose target branch is in this repository. - :type repository_id: str - :param reviewer_id: If set, search for pull requests that have this identity as a reviewer. - :type reviewer_id: str - :param source_ref_name: If set, search for pull requests from this branch. - :type source_ref_name: str - :param source_repository_id: If set, search for pull requests whose source branch is in this repository. - :type source_repository_id: str - :param status: If set, search for pull requests that are in this state. - :type status: object - :param target_ref_name: If set, search for pull requests into this branch. - :type target_ref_name: str - """ - - _attribute_map = { - 'creator_id': {'key': 'creatorId', 'type': 'str'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'reviewer_id': {'key': 'reviewerId', 'type': 'str'}, - 'source_ref_name': {'key': 'sourceRefName', 'type': 'str'}, - 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'target_ref_name': {'key': 'targetRefName', 'type': 'str'} - } - - def __init__(self, creator_id=None, include_links=None, repository_id=None, reviewer_id=None, source_ref_name=None, source_repository_id=None, status=None, target_ref_name=None): - super(GitPullRequestSearchCriteria, self).__init__() - self.creator_id = creator_id - self.include_links = include_links - self.repository_id = repository_id - self.reviewer_id = reviewer_id - self.source_ref_name = source_ref_name - self.source_repository_id = source_repository_id - self.status = status - self.target_ref_name = target_ref_name diff --git a/vsts/vsts/git/v4_1/models/git_pull_request_status.py b/vsts/vsts/git/v4_1/models/git_pull_request_status.py deleted file mode 100644 index 60115ed5..00000000 --- a/vsts/vsts/git/v4_1/models/git_pull_request_status.py +++ /dev/null @@ -1,56 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_status import GitStatus - - -class GitPullRequestStatus(GitStatus): - """GitPullRequestStatus. - - :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` - :param context: Context of the status. - :type context: :class:`GitStatusContext ` - :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` - :param creation_date: Creation date and time of the status. - :type creation_date: datetime - :param description: Status description. Typically describes current state of the status. - :type description: str - :param id: Status identifier. - :type id: int - :param state: State of the status. - :type state: object - :param target_url: URL with status details. - :type target_url: str - :param updated_date: Last update date and time of the status. - :type updated_date: datetime - :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. - :type iteration_id: int - :param properties: Custom properties of the status. - :type properties: :class:`object ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'context': {'key': 'context', 'type': 'GitStatusContext'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'target_url': {'key': 'targetUrl', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'} - } - - def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None, iteration_id=None, properties=None): - super(GitPullRequestStatus, self).__init__(_links=_links, context=context, created_by=created_by, creation_date=creation_date, description=description, id=id, state=state, target_url=target_url, updated_date=updated_date) - self.iteration_id = iteration_id - self.properties = properties diff --git a/vsts/vsts/git/v4_1/models/git_push.py b/vsts/vsts/git/v4_1/models/git_push.py deleted file mode 100644 index 90c52e16..00000000 --- a/vsts/vsts/git/v4_1/models/git_push.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_push_ref import GitPushRef - - -class GitPush(GitPushRef): - """GitPush. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: :class:`IdentityRef ` - :param push_id: - :type push_id: int - :param url: - :type url: str - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` - :param repository: - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): - super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) - self.commits = commits - self.ref_updates = ref_updates - self.repository = repository diff --git a/vsts/vsts/git/v4_1/models/git_push_ref.py b/vsts/vsts/git/v4_1/models/git_push_ref.py deleted file mode 100644 index 12ee92fc..00000000 --- a/vsts/vsts/git/v4_1/models/git_push_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPushRef(Model): - """GitPushRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: :class:`IdentityRef ` - :param push_id: - :type push_id: int - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): - super(GitPushRef, self).__init__() - self._links = _links - self.date = date - self.push_correlation_id = push_correlation_id - self.pushed_by = pushed_by - self.push_id = push_id - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_push_search_criteria.py b/vsts/vsts/git/v4_1/models/git_push_search_criteria.py deleted file mode 100644 index db9526a5..00000000 --- a/vsts/vsts/git/v4_1/models/git_push_search_criteria.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPushSearchCriteria(Model): - """GitPushSearchCriteria. - - :param from_date: - :type from_date: datetime - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param include_ref_updates: - :type include_ref_updates: bool - :param pusher_id: - :type pusher_id: str - :param ref_name: - :type ref_name: str - :param to_date: - :type to_date: datetime - """ - - _attribute_map = { - 'from_date': {'key': 'fromDate', 'type': 'iso-8601'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'include_ref_updates': {'key': 'includeRefUpdates', 'type': 'bool'}, - 'pusher_id': {'key': 'pusherId', 'type': 'str'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'to_date': {'key': 'toDate', 'type': 'iso-8601'} - } - - def __init__(self, from_date=None, include_links=None, include_ref_updates=None, pusher_id=None, ref_name=None, to_date=None): - super(GitPushSearchCriteria, self).__init__() - self.from_date = from_date - self.include_links = include_links - self.include_ref_updates = include_ref_updates - self.pusher_id = pusher_id - self.ref_name = ref_name - self.to_date = to_date diff --git a/vsts/vsts/git/v4_1/models/git_query_branch_stats_criteria.py b/vsts/vsts/git/v4_1/models/git_query_branch_stats_criteria.py deleted file mode 100644 index 758ac676..00000000 --- a/vsts/vsts/git/v4_1/models/git_query_branch_stats_criteria.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitQueryBranchStatsCriteria(Model): - """GitQueryBranchStatsCriteria. - - :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` - :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` - """ - - _attribute_map = { - 'base_commit': {'key': 'baseCommit', 'type': 'GitVersionDescriptor'}, - 'target_commits': {'key': 'targetCommits', 'type': '[GitVersionDescriptor]'} - } - - def __init__(self, base_commit=None, target_commits=None): - super(GitQueryBranchStatsCriteria, self).__init__() - self.base_commit = base_commit - self.target_commits = target_commits diff --git a/vsts/vsts/git/v4_1/models/git_query_commits_criteria.py b/vsts/vsts/git/v4_1/models/git_query_commits_criteria.py deleted file mode 100644 index 4309866d..00000000 --- a/vsts/vsts/git/v4_1/models/git_query_commits_criteria.py +++ /dev/null @@ -1,85 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitQueryCommitsCriteria(Model): - """GitQueryCommitsCriteria. - - :param skip: Number of entries to skip - :type skip: int - :param top: Maximum number of entries to retrieve - :type top: int - :param author: Alias or display name of the author - :type author: str - :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. - :type compare_version: :class:`GitVersionDescriptor ` - :param exclude_deletes: If true, don't include delete history entries - :type exclude_deletes: bool - :param from_commit_id: If provided, a lower bound for filtering commits alphabetically - :type from_commit_id: str - :param from_date: If provided, only include history entries created after this date (string) - :type from_date: str - :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null. - :type history_mode: object - :param ids: If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters. - :type ids: list of str - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param include_work_items: Whether to include linked work items - :type include_work_items: bool - :param item_path: Path of item to search under - :type item_path: str - :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` - :param to_commit_id: If provided, an upper bound for filtering commits alphabetically - :type to_commit_id: str - :param to_date: If provided, only include history entries created before this date (string) - :type to_date: str - :param user: Alias or display name of the committer - :type user: str - """ - - _attribute_map = { - 'skip': {'key': '$skip', 'type': 'int'}, - 'top': {'key': '$top', 'type': 'int'}, - 'author': {'key': 'author', 'type': 'str'}, - 'compare_version': {'key': 'compareVersion', 'type': 'GitVersionDescriptor'}, - 'exclude_deletes': {'key': 'excludeDeletes', 'type': 'bool'}, - 'from_commit_id': {'key': 'fromCommitId', 'type': 'str'}, - 'from_date': {'key': 'fromDate', 'type': 'str'}, - 'history_mode': {'key': 'historyMode', 'type': 'object'}, - 'ids': {'key': 'ids', 'type': '[str]'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, - 'item_path': {'key': 'itemPath', 'type': 'str'}, - 'item_version': {'key': 'itemVersion', 'type': 'GitVersionDescriptor'}, - 'to_commit_id': {'key': 'toCommitId', 'type': 'str'}, - 'to_date': {'key': 'toDate', 'type': 'str'}, - 'user': {'key': 'user', 'type': 'str'} - } - - def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): - super(GitQueryCommitsCriteria, self).__init__() - self.skip = skip - self.top = top - self.author = author - self.compare_version = compare_version - self.exclude_deletes = exclude_deletes - self.from_commit_id = from_commit_id - self.from_date = from_date - self.history_mode = history_mode - self.ids = ids - self.include_links = include_links - self.include_work_items = include_work_items - self.item_path = item_path - self.item_version = item_version - self.to_commit_id = to_commit_id - self.to_date = to_date - self.user = user diff --git a/vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py b/vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py deleted file mode 100644 index 25c5516e..00000000 --- a/vsts/vsts/git/v4_1/models/git_recycle_bin_repository_details.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRecycleBinRepositoryDetails(Model): - """GitRecycleBinRepositoryDetails. - - :param deleted: Setting to false will undo earlier deletion and restore the repository. - :type deleted: bool - """ - - _attribute_map = { - 'deleted': {'key': 'deleted', 'type': 'bool'} - } - - def __init__(self, deleted=None): - super(GitRecycleBinRepositoryDetails, self).__init__() - self.deleted = deleted diff --git a/vsts/vsts/git/v4_1/models/git_ref.py b/vsts/vsts/git/v4_1/models/git_ref.py deleted file mode 100644 index 3da3c2ec..00000000 --- a/vsts/vsts/git/v4_1/models/git_ref.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRef(Model): - """GitRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param creator: - :type creator: :class:`IdentityRef ` - :param is_locked: - :type is_locked: bool - :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` - :param name: - :type name: str - :param object_id: - :type object_id: str - :param peeled_object_id: - :type peeled_object_id: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'creator': {'key': 'creator', 'type': 'IdentityRef'}, - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): - super(GitRef, self).__init__() - self._links = _links - self.creator = creator - self.is_locked = is_locked - self.is_locked_by = is_locked_by - self.name = name - self.object_id = object_id - self.peeled_object_id = peeled_object_id - self.statuses = statuses - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_ref_favorite.py b/vsts/vsts/git/v4_1/models/git_ref_favorite.py deleted file mode 100644 index cef6f3fc..00000000 --- a/vsts/vsts/git/v4_1/models/git_ref_favorite.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRefFavorite(Model): - """GitRefFavorite. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: int - :param identity_id: - :type identity_id: str - :param name: - :type name: str - :param repository_id: - :type repository_id: str - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'identity_id': {'key': 'identityId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, identity_id=None, name=None, repository_id=None, type=None, url=None): - super(GitRefFavorite, self).__init__() - self._links = _links - self.id = id - self.identity_id = identity_id - self.name = name - self.repository_id = repository_id - self.type = type - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_ref_update.py b/vsts/vsts/git/v4_1/models/git_ref_update.py deleted file mode 100644 index 6c10c600..00000000 --- a/vsts/vsts/git/v4_1/models/git_ref_update.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRefUpdate(Model): - """GitRefUpdate. - - :param is_locked: - :type is_locked: bool - :param name: - :type name: str - :param new_object_id: - :type new_object_id: str - :param old_object_id: - :type old_object_id: str - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, - 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): - super(GitRefUpdate, self).__init__() - self.is_locked = is_locked - self.name = name - self.new_object_id = new_object_id - self.old_object_id = old_object_id - self.repository_id = repository_id diff --git a/vsts/vsts/git/v4_1/models/git_ref_update_result.py b/vsts/vsts/git/v4_1/models/git_ref_update_result.py deleted file mode 100644 index d4b42d8d..00000000 --- a/vsts/vsts/git/v4_1/models/git_ref_update_result.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRefUpdateResult(Model): - """GitRefUpdateResult. - - :param custom_message: Custom message for the result object For instance, Reason for failing. - :type custom_message: str - :param is_locked: Whether the ref is locked or not - :type is_locked: bool - :param name: Ref name - :type name: str - :param new_object_id: New object ID - :type new_object_id: str - :param old_object_id: Old object ID - :type old_object_id: str - :param rejected_by: Name of the plugin that rejected the updated. - :type rejected_by: str - :param repository_id: Repository ID - :type repository_id: str - :param success: True if the ref update succeeded, false otherwise - :type success: bool - :param update_status: Status of the update from the TFS server. - :type update_status: object - """ - - _attribute_map = { - 'custom_message': {'key': 'customMessage', 'type': 'str'}, - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, - 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, - 'rejected_by': {'key': 'rejectedBy', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'success': {'key': 'success', 'type': 'bool'}, - 'update_status': {'key': 'updateStatus', 'type': 'object'} - } - - def __init__(self, custom_message=None, is_locked=None, name=None, new_object_id=None, old_object_id=None, rejected_by=None, repository_id=None, success=None, update_status=None): - super(GitRefUpdateResult, self).__init__() - self.custom_message = custom_message - self.is_locked = is_locked - self.name = name - self.new_object_id = new_object_id - self.old_object_id = old_object_id - self.rejected_by = rejected_by - self.repository_id = repository_id - self.success = success - self.update_status = update_status diff --git a/vsts/vsts/git/v4_1/models/git_repository.py b/vsts/vsts/git/v4_1/models/git_repository.py deleted file mode 100644 index 5950c196..00000000 --- a/vsts/vsts/git/v4_1/models/git_repository.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepository(Model): - """GitRepository. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param default_branch: - :type default_branch: str - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param ssh_url: - :type ssh_url: str - :param url: - :type url: str - :param valid_remote_urls: - :type valid_remote_urls: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} - } - - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): - super(GitRepository, self).__init__() - self._links = _links - self.default_branch = default_branch - self.id = id - self.is_fork = is_fork - self.name = name - self.parent_repository = parent_repository - self.project = project - self.remote_url = remote_url - self.ssh_url = ssh_url - self.url = url - self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/git/v4_1/models/git_repository_create_options.py b/vsts/vsts/git/v4_1/models/git_repository_create_options.py deleted file mode 100644 index c219de4b..00000000 --- a/vsts/vsts/git/v4_1/models/git_repository_create_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryCreateOptions(Model): - """GitRepositoryCreateOptions. - - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: :class:`TeamProjectReference ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'} - } - - def __init__(self, name=None, parent_repository=None, project=None): - super(GitRepositoryCreateOptions, self).__init__() - self.name = name - self.parent_repository = parent_repository - self.project = project diff --git a/vsts/vsts/git/v4_1/models/git_repository_ref.py b/vsts/vsts/git/v4_1/models/git_repository_ref.py deleted file mode 100644 index 1f3dd3f1..00000000 --- a/vsts/vsts/git/v4_1/models/git_repository_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryRef(Model): - """GitRepositoryRef. - - :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param ssh_url: - :type ssh_url: str - :param url: - :type url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): - super(GitRepositoryRef, self).__init__() - self.collection = collection - self.id = id - self.is_fork = is_fork - self.name = name - self.project = project - self.remote_url = remote_url - self.ssh_url = ssh_url - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_repository_stats.py b/vsts/vsts/git/v4_1/models/git_repository_stats.py deleted file mode 100644 index 0ea95e41..00000000 --- a/vsts/vsts/git/v4_1/models/git_repository_stats.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryStats(Model): - """GitRepositoryStats. - - :param active_pull_requests_count: - :type active_pull_requests_count: int - :param branches_count: - :type branches_count: int - :param commits_count: - :type commits_count: int - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'active_pull_requests_count': {'key': 'activePullRequestsCount', 'type': 'int'}, - 'branches_count': {'key': 'branchesCount', 'type': 'int'}, - 'commits_count': {'key': 'commitsCount', 'type': 'int'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, active_pull_requests_count=None, branches_count=None, commits_count=None, repository_id=None): - super(GitRepositoryStats, self).__init__() - self.active_pull_requests_count = active_pull_requests_count - self.branches_count = branches_count - self.commits_count = commits_count - self.repository_id = repository_id diff --git a/vsts/vsts/git/v4_1/models/git_revert.py b/vsts/vsts/git/v4_1/models/git_revert.py deleted file mode 100644 index 454be085..00000000 --- a/vsts/vsts/git/v4_1/models/git_revert.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_async_ref_operation import GitAsyncRefOperation - - -class GitRevert(GitAsyncRefOperation): - """GitRevert. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` - :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` - :param status: - :type status: object - :param url: A URL that can be used to make further requests for status about the operation - :type url: str - :param revert_id: - :type revert_id: int - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'}, - 'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'revert_id': {'key': 'revertId', 'type': 'int'} - } - - def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, revert_id=None): - super(GitRevert, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url) - self.revert_id = revert_id diff --git a/vsts/vsts/git/v4_1/models/git_status.py b/vsts/vsts/git/v4_1/models/git_status.py deleted file mode 100644 index f662717a..00000000 --- a/vsts/vsts/git/v4_1/models/git_status.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitStatus(Model): - """GitStatus. - - :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` - :param context: Context of the status. - :type context: :class:`GitStatusContext ` - :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` - :param creation_date: Creation date and time of the status. - :type creation_date: datetime - :param description: Status description. Typically describes current state of the status. - :type description: str - :param id: Status identifier. - :type id: int - :param state: State of the status. - :type state: object - :param target_url: URL with status details. - :type target_url: str - :param updated_date: Last update date and time of the status. - :type updated_date: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'context': {'key': 'context', 'type': 'GitStatusContext'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'target_url': {'key': 'targetUrl', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): - super(GitStatus, self).__init__() - self._links = _links - self.context = context - self.created_by = created_by - self.creation_date = creation_date - self.description = description - self.id = id - self.state = state - self.target_url = target_url - self.updated_date = updated_date diff --git a/vsts/vsts/git/v4_1/models/git_status_context.py b/vsts/vsts/git/v4_1/models/git_status_context.py deleted file mode 100644 index cf40205f..00000000 --- a/vsts/vsts/git/v4_1/models/git_status_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitStatusContext(Model): - """GitStatusContext. - - :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. - :type genre: str - :param name: Name identifier of the status, cannot be null or empty. - :type name: str - """ - - _attribute_map = { - 'genre': {'key': 'genre', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, genre=None, name=None): - super(GitStatusContext, self).__init__() - self.genre = genre - self.name = name diff --git a/vsts/vsts/git/v4_1/models/git_suggestion.py b/vsts/vsts/git/v4_1/models/git_suggestion.py deleted file mode 100644 index 6a6a297a..00000000 --- a/vsts/vsts/git/v4_1/models/git_suggestion.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitSuggestion(Model): - """GitSuggestion. - - :param properties: Specific properties describing the suggestion. - :type properties: dict - :param type: The type of suggestion (e.g. pull request). - :type type: str - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, properties=None, type=None): - super(GitSuggestion, self).__init__() - self.properties = properties - self.type = type diff --git a/vsts/vsts/git/v4_1/models/git_target_version_descriptor.py b/vsts/vsts/git/v4_1/models/git_target_version_descriptor.py deleted file mode 100644 index 61bc2e33..00000000 --- a/vsts/vsts/git/v4_1/models/git_target_version_descriptor.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_version_descriptor import GitVersionDescriptor - - -class GitTargetVersionDescriptor(GitVersionDescriptor): - """GitTargetVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - :param target_version: Version string identifier (name of tag/branch, SHA1 of commit) - :type target_version: str - :param target_version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type target_version_options: object - :param target_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type target_version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'}, - 'target_version': {'key': 'targetVersion', 'type': 'str'}, - 'target_version_options': {'key': 'targetVersionOptions', 'type': 'object'}, - 'target_version_type': {'key': 'targetVersionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None, target_version=None, target_version_options=None, target_version_type=None): - super(GitTargetVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type) - self.target_version = target_version - self.target_version_options = target_version_options - self.target_version_type = target_version_type diff --git a/vsts/vsts/git/v4_1/models/git_template.py b/vsts/vsts/git/v4_1/models/git_template.py deleted file mode 100644 index fbe26c8a..00000000 --- a/vsts/vsts/git/v4_1/models/git_template.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTemplate(Model): - """GitTemplate. - - :param name: Name of the Template - :type name: str - :param type: Type of the Template - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, name=None, type=None): - super(GitTemplate, self).__init__() - self.name = name - self.type = type diff --git a/vsts/vsts/git/v4_1/models/git_tree_diff.py b/vsts/vsts/git/v4_1/models/git_tree_diff.py deleted file mode 100644 index c305ff1f..00000000 --- a/vsts/vsts/git/v4_1/models/git_tree_diff.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeDiff(Model): - """GitTreeDiff. - - :param base_tree_id: ObjectId of the base tree of this diff. - :type base_tree_id: str - :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` - :param target_tree_id: ObjectId of the target tree of this diff. - :type target_tree_id: str - :param url: REST Url to this resource. - :type url: str - """ - - _attribute_map = { - 'base_tree_id': {'key': 'baseTreeId', 'type': 'str'}, - 'diff_entries': {'key': 'diffEntries', 'type': '[GitTreeDiffEntry]'}, - 'target_tree_id': {'key': 'targetTreeId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, base_tree_id=None, diff_entries=None, target_tree_id=None, url=None): - super(GitTreeDiff, self).__init__() - self.base_tree_id = base_tree_id - self.diff_entries = diff_entries - self.target_tree_id = target_tree_id - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_tree_diff_entry.py b/vsts/vsts/git/v4_1/models/git_tree_diff_entry.py deleted file mode 100644 index b75431e3..00000000 --- a/vsts/vsts/git/v4_1/models/git_tree_diff_entry.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeDiffEntry(Model): - """GitTreeDiffEntry. - - :param base_object_id: SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds. - :type base_object_id: str - :param change_type: Type of change that affected this entry. - :type change_type: object - :param object_type: Object type of the tree entry. Blob, Tree or Commit("submodule") - :type object_type: object - :param path: Relative path in base and target trees. - :type path: str - :param target_object_id: SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes. - :type target_object_id: str - """ - - _attribute_map = { - 'base_object_id': {'key': 'baseObjectId', 'type': 'str'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'object_type': {'key': 'objectType', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'target_object_id': {'key': 'targetObjectId', 'type': 'str'} - } - - def __init__(self, base_object_id=None, change_type=None, object_type=None, path=None, target_object_id=None): - super(GitTreeDiffEntry, self).__init__() - self.base_object_id = base_object_id - self.change_type = change_type - self.object_type = object_type - self.path = path - self.target_object_id = target_object_id diff --git a/vsts/vsts/git/v4_1/models/git_tree_diff_response.py b/vsts/vsts/git/v4_1/models/git_tree_diff_response.py deleted file mode 100644 index 0c7f81a5..00000000 --- a/vsts/vsts/git/v4_1/models/git_tree_diff_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeDiffResponse(Model): - """GitTreeDiffResponse. - - :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. - :type continuation_token: list of str - :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, - 'tree_diff': {'key': 'treeDiff', 'type': 'GitTreeDiff'} - } - - def __init__(self, continuation_token=None, tree_diff=None): - super(GitTreeDiffResponse, self).__init__() - self.continuation_token = continuation_token - self.tree_diff = tree_diff diff --git a/vsts/vsts/git/v4_1/models/git_tree_entry_ref.py b/vsts/vsts/git/v4_1/models/git_tree_entry_ref.py deleted file mode 100644 index 0440423c..00000000 --- a/vsts/vsts/git/v4_1/models/git_tree_entry_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeEntryRef(Model): - """GitTreeEntryRef. - - :param git_object_type: Blob or tree - :type git_object_type: object - :param mode: Mode represented as octal string - :type mode: str - :param object_id: SHA1 hash of git object - :type object_id: str - :param relative_path: Path relative to parent tree object - :type relative_path: str - :param size: Size of content - :type size: long - :param url: url to retrieve tree or blob - :type url: str - """ - - _attribute_map = { - 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, - 'mode': {'key': 'mode', 'type': 'str'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'relative_path': {'key': 'relativePath', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, git_object_type=None, mode=None, object_id=None, relative_path=None, size=None, url=None): - super(GitTreeEntryRef, self).__init__() - self.git_object_type = git_object_type - self.mode = mode - self.object_id = object_id - self.relative_path = relative_path - self.size = size - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_tree_ref.py b/vsts/vsts/git/v4_1/models/git_tree_ref.py deleted file mode 100644 index a2d385d9..00000000 --- a/vsts/vsts/git/v4_1/models/git_tree_ref.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTreeRef(Model): - """GitTreeRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param object_id: SHA1 hash of git object - :type object_id: str - :param size: Sum of sizes of all children - :type size: long - :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` - :param url: Url to tree - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'tree_entries': {'key': 'treeEntries', 'type': '[GitTreeEntryRef]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, object_id=None, size=None, tree_entries=None, url=None): - super(GitTreeRef, self).__init__() - self._links = _links - self.object_id = object_id - self.size = size - self.tree_entries = tree_entries - self.url = url diff --git a/vsts/vsts/git/v4_1/models/git_user_date.py b/vsts/vsts/git/v4_1/models/git_user_date.py deleted file mode 100644 index 60bebffa..00000000 --- a/vsts/vsts/git/v4_1/models/git_user_date.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitUserDate(Model): - """GitUserDate. - - :param date: Date of the Git operation. - :type date: datetime - :param email: Email address of the user performing the Git operation. - :type email: str - :param name: Name of the user performing the Git operation. - :type name: str - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'email': {'key': 'email', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, date=None, email=None, name=None): - super(GitUserDate, self).__init__() - self.date = date - self.email = email - self.name = name diff --git a/vsts/vsts/git/v4_1/models/git_version_descriptor.py b/vsts/vsts/git/v4_1/models/git_version_descriptor.py deleted file mode 100644 index 919fc237..00000000 --- a/vsts/vsts/git/v4_1/models/git_version_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitVersionDescriptor(Model): - """GitVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None): - super(GitVersionDescriptor, self).__init__() - self.version = version - self.version_options = version_options - self.version_type = version_type diff --git a/vsts/vsts/git/v4_1/models/global_git_repository_key.py b/vsts/vsts/git/v4_1/models/global_git_repository_key.py deleted file mode 100644 index 696cbdec..00000000 --- a/vsts/vsts/git/v4_1/models/global_git_repository_key.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GlobalGitRepositoryKey(Model): - """GlobalGitRepositoryKey. - - :param collection_id: Team Project Collection ID of the collection for the repository. - :type collection_id: str - :param project_id: Team Project ID of the project for the repository. - :type project_id: str - :param repository_id: ID of the repository. - :type repository_id: str - """ - - _attribute_map = { - 'collection_id': {'key': 'collectionId', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, collection_id=None, project_id=None, repository_id=None): - super(GlobalGitRepositoryKey, self).__init__() - self.collection_id = collection_id - self.project_id = project_id - self.repository_id = repository_id diff --git a/vsts/vsts/git/v4_1/models/graph_subject_base.py b/vsts/vsts/git/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/git/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/git/v4_1/models/identity_ref.py b/vsts/vsts/git/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/git/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/git/v4_1/models/identity_ref_with_vote.py b/vsts/vsts/git/v4_1/models/identity_ref_with_vote.py deleted file mode 100644 index 30be999e..00000000 --- a/vsts/vsts/git/v4_1/models/identity_ref_with_vote.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_ref import IdentityRef - - -class IdentityRefWithVote(IdentityRef): - """IdentityRefWithVote. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param is_required: Indicates if this is a required reviewer for this pull request.
Branches can have policies that require particular reviewers are required for pull requests. - :type is_required: bool - :param reviewer_url: URL to retrieve information about this identity - :type reviewer_url: str - :param vote: Vote on a pull request:
10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected - :type vote: int - :param voted_for: Groups or teams that that this reviewer contributed to.
Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes. - :type voted_for: list of :class:`IdentityRefWithVote ` - """ - - _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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'reviewer_url': {'key': 'reviewerUrl', 'type': 'str'}, - 'vote': {'key': 'vote', 'type': 'int'}, - 'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'} - } - - 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, profile_url=None, unique_name=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): - super(IdentityRefWithVote, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) - self.is_required = is_required - self.reviewer_url = reviewer_url - self.vote = vote - self.voted_for = voted_for diff --git a/vsts/vsts/git/v4_1/models/import_repository_validation.py b/vsts/vsts/git/v4_1/models/import_repository_validation.py deleted file mode 100644 index ef525499..00000000 --- a/vsts/vsts/git/v4_1/models/import_repository_validation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ImportRepositoryValidation(Model): - """ImportRepositoryValidation. - - :param git_source: - :type git_source: :class:`GitImportGitSource ` - :param password: - :type password: str - :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` - :param username: - :type username: str - """ - - _attribute_map = { - 'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'}, - 'password': {'key': 'password', 'type': 'str'}, - 'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'}, - 'username': {'key': 'username', 'type': 'str'} - } - - def __init__(self, git_source=None, password=None, tfvc_source=None, username=None): - super(ImportRepositoryValidation, self).__init__() - self.git_source = git_source - self.password = password - self.tfvc_source = tfvc_source - self.username = username diff --git a/vsts/vsts/git/v4_1/models/item_content.py b/vsts/vsts/git/v4_1/models/item_content.py deleted file mode 100644 index f5cfaef1..00000000 --- a/vsts/vsts/git/v4_1/models/item_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemContent(Model): - """ItemContent. - - :param content: - :type content: str - :param content_type: - :type content_type: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'object'} - } - - def __init__(self, content=None, content_type=None): - super(ItemContent, self).__init__() - self.content = content - self.content_type = content_type diff --git a/vsts/vsts/git/v4_1/models/item_model.py b/vsts/vsts/git/v4_1/models/item_model.py deleted file mode 100644 index f77a2638..00000000 --- a/vsts/vsts/git/v4_1/models/item_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemModel(Model): - """ItemModel. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content: - :type content: str - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content': {'key': 'content', 'type': 'str'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): - super(ItemModel, self).__init__() - self._links = _links - self.content = content - self.content_metadata = content_metadata - self.is_folder = is_folder - self.is_sym_link = is_sym_link - self.path = path - self.url = url diff --git a/vsts/vsts/git/v4_1/models/json_patch_operation.py b/vsts/vsts/git/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/git/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/git/v4_1/models/reference_links.py b/vsts/vsts/git/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/git/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/git/v4_1/models/resource_ref.py b/vsts/vsts/git/v4_1/models/resource_ref.py deleted file mode 100644 index 903e57ee..00000000 --- a/vsts/vsts/git/v4_1/models/resource_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceRef(Model): - """ResourceRef. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(ResourceRef, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/git/v4_1/models/share_notification_context.py b/vsts/vsts/git/v4_1/models/share_notification_context.py deleted file mode 100644 index ff08aad1..00000000 --- a/vsts/vsts/git/v4_1/models/share_notification_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ShareNotificationContext(Model): - """ShareNotificationContext. - - :param message: Optional user note or message. - :type message: str - :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'receivers': {'key': 'receivers', 'type': '[IdentityRef]'} - } - - def __init__(self, message=None, receivers=None): - super(ShareNotificationContext, self).__init__() - self.message = message - self.receivers = receivers diff --git a/vsts/vsts/git/v4_1/models/source_to_target_ref.py b/vsts/vsts/git/v4_1/models/source_to_target_ref.py deleted file mode 100644 index 8da6b8a2..00000000 --- a/vsts/vsts/git/v4_1/models/source_to_target_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SourceToTargetRef(Model): - """SourceToTargetRef. - - :param source_ref: The source ref to copy. For example, refs/heads/master. - :type source_ref: str - :param target_ref: The target ref to update. For example, refs/heads/master. - :type target_ref: str - """ - - _attribute_map = { - 'source_ref': {'key': 'sourceRef', 'type': 'str'}, - 'target_ref': {'key': 'targetRef', 'type': 'str'} - } - - def __init__(self, source_ref=None, target_ref=None): - super(SourceToTargetRef, self).__init__() - self.source_ref = source_ref - self.target_ref = target_ref diff --git a/vsts/vsts/git/v4_1/models/team_project_collection_reference.py b/vsts/vsts/git/v4_1/models/team_project_collection_reference.py deleted file mode 100644 index 6f4a596a..00000000 --- a/vsts/vsts/git/v4_1/models/team_project_collection_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectCollectionReference(Model): - """TeamProjectCollectionReference. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(TeamProjectCollectionReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/git/v4_1/models/team_project_reference.py b/vsts/vsts/git/v4_1/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/git/v4_1/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/git/v4_1/models/vsts_info.py b/vsts/vsts/git/v4_1/models/vsts_info.py deleted file mode 100644 index 1b494d28..00000000 --- a/vsts/vsts/git/v4_1/models/vsts_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VstsInfo(Model): - """VstsInfo. - - :param collection: - :type collection: :class:`TeamProjectCollectionReference ` - :param repository: - :type repository: :class:`GitRepository ` - :param server_url: - :type server_url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'server_url': {'key': 'serverUrl', 'type': 'str'} - } - - def __init__(self, collection=None, repository=None, server_url=None): - super(VstsInfo, self).__init__() - self.collection = collection - self.repository = repository - self.server_url = server_url diff --git a/vsts/vsts/git/v4_1/models/web_api_create_tag_request_data.py b/vsts/vsts/git/v4_1/models/web_api_create_tag_request_data.py deleted file mode 100644 index 9cf2bd29..00000000 --- a/vsts/vsts/git/v4_1/models/web_api_create_tag_request_data.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiCreateTagRequestData(Model): - """WebApiCreateTagRequestData. - - :param name: Name of the tag definition that will be created. - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, name=None): - super(WebApiCreateTagRequestData, self).__init__() - self.name = name diff --git a/vsts/vsts/git/v4_1/models/web_api_tag_definition.py b/vsts/vsts/git/v4_1/models/web_api_tag_definition.py deleted file mode 100644 index 4780adf3..00000000 --- a/vsts/vsts/git/v4_1/models/web_api_tag_definition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WebApiTagDefinition(Model): - """WebApiTagDefinition. - - :param active: Whether or not the tag definition is active. - :type active: bool - :param id: ID of the tag definition. - :type id: str - :param name: The name of the tag definition. - :type name: str - :param url: Resource URL for the Tag Definition. - :type url: str - """ - - _attribute_map = { - 'active': {'key': 'active', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, active=None, id=None, name=None, url=None): - super(WebApiTagDefinition, self).__init__() - self.active = active - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/graph/__init__.py b/vsts/vsts/graph/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/graph/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/graph/v4_1/__init__.py b/vsts/vsts/graph/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/graph/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/graph/v4_1/models/__init__.py b/vsts/vsts/graph/v4_1/models/__init__.py deleted file mode 100644 index 824cbcb1..00000000 --- a/vsts/vsts/graph/v4_1/models/__init__.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_cache_policies import GraphCachePolicies -from .graph_descriptor_result import GraphDescriptorResult -from .graph_global_extended_property_batch import GraphGlobalExtendedPropertyBatch -from .graph_group import GraphGroup -from .graph_group_creation_context import GraphGroupCreationContext -from .graph_member import GraphMember -from .graph_membership import GraphMembership -from .graph_membership_state import GraphMembershipState -from .graph_membership_traversal import GraphMembershipTraversal -from .graph_scope import GraphScope -from .graph_scope_creation_context import GraphScopeCreationContext -from .graph_storage_key_result import GraphStorageKeyResult -from .graph_subject import GraphSubject -from .graph_subject_base import GraphSubjectBase -from .graph_subject_lookup import GraphSubjectLookup -from .graph_subject_lookup_key import GraphSubjectLookupKey -from .graph_user import GraphUser -from .graph_user_creation_context import GraphUserCreationContext -from .identity_key_map import IdentityKeyMap -from .json_patch_operation import JsonPatchOperation -from .paged_graph_groups import PagedGraphGroups -from .paged_graph_users import PagedGraphUsers -from .reference_links import ReferenceLinks - -__all__ = [ - 'GraphCachePolicies', - 'GraphDescriptorResult', - 'GraphGlobalExtendedPropertyBatch', - 'GraphGroup', - 'GraphGroupCreationContext', - 'GraphMember', - 'GraphMembership', - 'GraphMembershipState', - 'GraphMembershipTraversal', - 'GraphScope', - 'GraphScopeCreationContext', - 'GraphStorageKeyResult', - 'GraphSubject', - 'GraphSubjectBase', - 'GraphSubjectLookup', - 'GraphSubjectLookupKey', - 'GraphUser', - 'GraphUserCreationContext', - 'IdentityKeyMap', - 'JsonPatchOperation', - 'PagedGraphGroups', - 'PagedGraphUsers', - 'ReferenceLinks', -] diff --git a/vsts/vsts/graph/v4_1/models/graph_cache_policies.py b/vsts/vsts/graph/v4_1/models/graph_cache_policies.py deleted file mode 100644 index 808f2d65..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_cache_policies.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphCachePolicies(Model): - """GraphCachePolicies. - - :param cache_size: Size of the cache - :type cache_size: int - """ - - _attribute_map = { - 'cache_size': {'key': 'cacheSize', 'type': 'int'} - } - - def __init__(self, cache_size=None): - super(GraphCachePolicies, self).__init__() - self.cache_size = cache_size diff --git a/vsts/vsts/graph/v4_1/models/graph_descriptor_result.py b/vsts/vsts/graph/v4_1/models/graph_descriptor_result.py deleted file mode 100644 index 8b1c1830..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_descriptor_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphDescriptorResult(Model): - """GraphDescriptorResult. - - :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. - :type _links: :class:`ReferenceLinks ` - :param value: - :type value: :class:`str ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, _links=None, value=None): - super(GraphDescriptorResult, self).__init__() - self._links = _links - self.value = value diff --git a/vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py b/vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py deleted file mode 100644 index d1212778..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_global_extended_property_batch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphGlobalExtendedPropertyBatch(Model): - """GraphGlobalExtendedPropertyBatch. - - :param property_name_filters: - :type property_name_filters: list of str - :param subject_descriptors: - :type subject_descriptors: list of :class:`str ` - """ - - _attribute_map = { - 'property_name_filters': {'key': 'propertyNameFilters', 'type': '[str]'}, - 'subject_descriptors': {'key': 'subjectDescriptors', 'type': '[str]'} - } - - def __init__(self, property_name_filters=None, subject_descriptors=None): - super(GraphGlobalExtendedPropertyBatch, self).__init__() - self.property_name_filters = property_name_filters - self.subject_descriptors = subject_descriptors diff --git a/vsts/vsts/graph/v4_1/models/graph_group.py b/vsts/vsts/graph/v4_1/models/graph_group.py deleted file mode 100644 index c693a34a..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_group.py +++ /dev/null @@ -1,101 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_member import GraphMember - - -class GraphGroup(GraphMember): - """GraphGroup. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. - :type principal_name: str - :param description: A short phrase to help human readers disambiguate groups with similar names - :type description: str - :param is_cross_project: - :type is_cross_project: bool - :param is_deleted: - :type is_deleted: bool - :param is_global_scope: - :type is_global_scope: bool - :param is_restricted_visible: - :type is_restricted_visible: bool - :param local_scope_id: - :type local_scope_id: str - :param scope_id: - :type scope_id: str - :param scope_name: - :type scope_name: str - :param scope_type: - :type scope_type: str - :param securing_host_id: - :type securing_host_id: str - :param special_type: - :type special_type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, - 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, - 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, - 'scope_id': {'key': 'scopeId', 'type': 'str'}, - 'scope_name': {'key': 'scopeName', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'str'}, - 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, - 'special_type': {'key': 'specialType', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): - super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) - self.description = description - self.is_cross_project = is_cross_project - self.is_deleted = is_deleted - self.is_global_scope = is_global_scope - self.is_restricted_visible = is_restricted_visible - self.local_scope_id = local_scope_id - self.scope_id = scope_id - self.scope_name = scope_name - self.scope_type = scope_type - self.securing_host_id = securing_host_id - self.special_type = special_type diff --git a/vsts/vsts/graph/v4_1/models/graph_group_creation_context.py b/vsts/vsts/graph/v4_1/models/graph_group_creation_context.py deleted file mode 100644 index cc6599ae..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_group_creation_context.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphGroupCreationContext(Model): - """GraphGroupCreationContext. - - :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created group - :type storage_key: str - """ - - _attribute_map = { - 'storage_key': {'key': 'storageKey', 'type': 'str'} - } - - def __init__(self, storage_key=None): - super(GraphGroupCreationContext, self).__init__() - self.storage_key = storage_key diff --git a/vsts/vsts/graph/v4_1/models/graph_member.py b/vsts/vsts/graph/v4_1/models/graph_member.py deleted file mode 100644 index 9d1cbd65..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_member.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject import GraphSubject - - -class GraphMember(GraphSubject): - """GraphMember. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. - :type principal_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'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): - super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) - self.cuid = cuid - self.domain = domain - self.mail_address = mail_address - self.principal_name = principal_name diff --git a/vsts/vsts/graph/v4_1/models/graph_membership.py b/vsts/vsts/graph/v4_1/models/graph_membership.py deleted file mode 100644 index 4b3568f0..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_membership.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphMembership(Model): - """GraphMembership. - - :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. - :type _links: :class:`ReferenceLinks ` - :param container_descriptor: - :type container_descriptor: str - :param member_descriptor: - :type member_descriptor: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'container_descriptor': {'key': 'containerDescriptor', 'type': 'str'}, - 'member_descriptor': {'key': 'memberDescriptor', 'type': 'str'} - } - - def __init__(self, _links=None, container_descriptor=None, member_descriptor=None): - super(GraphMembership, self).__init__() - self._links = _links - self.container_descriptor = container_descriptor - self.member_descriptor = member_descriptor diff --git a/vsts/vsts/graph/v4_1/models/graph_membership_state.py b/vsts/vsts/graph/v4_1/models/graph_membership_state.py deleted file mode 100644 index 678d57ae..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_membership_state.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphMembershipState(Model): - """GraphMembershipState. - - :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. - :type _links: :class:`ReferenceLinks ` - :param active: When true, the membership is active - :type active: bool - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'active': {'key': 'active', 'type': 'bool'} - } - - def __init__(self, _links=None, active=None): - super(GraphMembershipState, self).__init__() - self._links = _links - self.active = active diff --git a/vsts/vsts/graph/v4_1/models/graph_membership_traversal.py b/vsts/vsts/graph/v4_1/models/graph_membership_traversal.py deleted file mode 100644 index e92bf3a9..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_membership_traversal.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphMembershipTraversal(Model): - """GraphMembershipTraversal. - - :param incompleteness_reason: Reason why the subject could not be traversed completely - :type incompleteness_reason: str - :param is_complete: When true, the subject is traversed completely - :type is_complete: bool - :param subject_descriptor: The traversed subject descriptor - :type subject_descriptor: :class:`str ` - :param traversed_subject_ids: Subject descriptor ids of the traversed members - :type traversed_subject_ids: list of str - :param traversed_subjects: Subject descriptors of the traversed members - :type traversed_subjects: list of :class:`str ` - """ - - _attribute_map = { - 'incompleteness_reason': {'key': 'incompletenessReason', 'type': 'str'}, - 'is_complete': {'key': 'isComplete', 'type': 'bool'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'traversed_subject_ids': {'key': 'traversedSubjectIds', 'type': '[str]'}, - 'traversed_subjects': {'key': 'traversedSubjects', 'type': '[str]'} - } - - def __init__(self, incompleteness_reason=None, is_complete=None, subject_descriptor=None, traversed_subject_ids=None, traversed_subjects=None): - super(GraphMembershipTraversal, self).__init__() - self.incompleteness_reason = incompleteness_reason - self.is_complete = is_complete - self.subject_descriptor = subject_descriptor - self.traversed_subject_ids = traversed_subject_ids - self.traversed_subjects = traversed_subjects diff --git a/vsts/vsts/graph/v4_1/models/graph_scope.py b/vsts/vsts/graph/v4_1/models/graph_scope.py deleted file mode 100644 index 1944d6da..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_scope.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject import GraphSubject - - -class GraphScope(GraphSubject): - """GraphScope. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param administrator_descriptor: The subject descriptor that references the administrators group for this scope. Only members of this group can change the contents of this scope or assign other users permissions to access this scope. - :type administrator_descriptor: str - :param is_global: When true, this scope is also a securing host for one or more scopes. - :type is_global: bool - :param parent_descriptor: The subject descriptor for the closest account or organization in the ancestor tree of this scope. - :type parent_descriptor: str - :param scope_type: The type of this scope. Typically ServiceHost or TeamProject. - :type scope_type: object - :param securing_host_descriptor: The subject descriptor for the containing organization in the ancestor tree of this scope. - :type securing_host_descriptor: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'administrator_descriptor': {'key': 'administratorDescriptor', 'type': 'str'}, - 'is_global': {'key': 'isGlobal', 'type': 'bool'}, - 'parent_descriptor': {'key': 'parentDescriptor', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'object'}, - 'securing_host_descriptor': {'key': 'securingHostDescriptor', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, administrator_descriptor=None, is_global=None, parent_descriptor=None, scope_type=None, securing_host_descriptor=None): - super(GraphScope, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) - self.administrator_descriptor = administrator_descriptor - self.is_global = is_global - self.parent_descriptor = parent_descriptor - self.scope_type = scope_type - self.securing_host_descriptor = securing_host_descriptor diff --git a/vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py b/vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py deleted file mode 100644 index 9ce86d32..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_scope_creation_context.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphScopeCreationContext(Model): - """GraphScopeCreationContext. - - :param admin_group_description: Set this field to override the default description of this scope's admin group. - :type admin_group_description: str - :param admin_group_name: All scopes have an Administrator Group that controls access to the contents of the scope. Set this field to use a non-default group name for that administrators group. - :type admin_group_name: str - :param creator_id: Set this optional field if this scope is created on behalf of a user other than the user making the request. This should be the Id of the user that is not the requester. - :type creator_id: str - :param name: The scope must be provided with a unique name within the parent scope. This means the created scope can have a parent or child with the same name, but no siblings with the same name. - :type name: str - :param scope_type: The type of scope being created. - :type scope_type: object - :param storage_key: An optional ID that uniquely represents the scope within it's parent scope. If this parameter is not provided, Vsts will generate on automatically. - :type storage_key: str - """ - - _attribute_map = { - 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, - 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, - 'creator_id': {'key': 'creatorId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'object'}, - 'storage_key': {'key': 'storageKey', 'type': 'str'} - } - - def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, name=None, scope_type=None, storage_key=None): - super(GraphScopeCreationContext, self).__init__() - self.admin_group_description = admin_group_description - self.admin_group_name = admin_group_name - self.creator_id = creator_id - self.name = name - self.scope_type = scope_type - self.storage_key = storage_key diff --git a/vsts/vsts/graph/v4_1/models/graph_storage_key_result.py b/vsts/vsts/graph/v4_1/models/graph_storage_key_result.py deleted file mode 100644 index 3710831d..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_storage_key_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphStorageKeyResult(Model): - """GraphStorageKeyResult. - - :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. - :type _links: :class:`ReferenceLinks ` - :param value: - :type value: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, _links=None, value=None): - super(GraphStorageKeyResult, self).__init__() - self._links = _links - self.value = value diff --git a/vsts/vsts/graph/v4_1/models/graph_subject.py b/vsts/vsts/graph/v4_1/models/graph_subject.py deleted file mode 100644 index 76a0c3c6..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_subject.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class GraphSubject(GraphSubjectBase): - """GraphSubject. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): - super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) - self.legacy_descriptor = legacy_descriptor - self.origin = origin - self.origin_id = origin_id - self.subject_kind = subject_kind diff --git a/vsts/vsts/graph/v4_1/models/graph_subject_base.py b/vsts/vsts/graph/v4_1/models/graph_subject_base.py deleted file mode 100644 index f009486f..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/graph/v4_1/models/graph_subject_lookup.py b/vsts/vsts/graph/v4_1/models/graph_subject_lookup.py deleted file mode 100644 index 4b1816e9..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_subject_lookup.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectLookup(Model): - """GraphSubjectLookup. - - :param lookup_keys: - :type lookup_keys: list of :class:`GraphSubjectLookupKey ` - """ - - _attribute_map = { - 'lookup_keys': {'key': 'lookupKeys', 'type': '[GraphSubjectLookupKey]'} - } - - def __init__(self, lookup_keys=None): - super(GraphSubjectLookup, self).__init__() - self.lookup_keys = lookup_keys diff --git a/vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py b/vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py deleted file mode 100644 index 2c444d40..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_subject_lookup_key.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectLookupKey(Model): - """GraphSubjectLookupKey. - - :param descriptor: - :type descriptor: :class:`str ` - """ - - _attribute_map = { - 'descriptor': {'key': 'descriptor', 'type': 'str'} - } - - def __init__(self, descriptor=None): - super(GraphSubjectLookupKey, self).__init__() - self.descriptor = descriptor diff --git a/vsts/vsts/graph/v4_1/models/graph_user.py b/vsts/vsts/graph/v4_1/models/graph_user.py deleted file mode 100644 index 9e4bdd8a..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_user.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_member import GraphMember - - -class GraphUser(GraphMember): - """GraphUser. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. - :type principal_name: str - :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. - :type meta_type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'meta_type': {'key': 'metaType', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): - super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) - self.meta_type = meta_type diff --git a/vsts/vsts/graph/v4_1/models/graph_user_creation_context.py b/vsts/vsts/graph/v4_1/models/graph_user_creation_context.py deleted file mode 100644 index 216655a0..00000000 --- a/vsts/vsts/graph/v4_1/models/graph_user_creation_context.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphUserCreationContext(Model): - """GraphUserCreationContext. - - :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created user - :type storage_key: str - """ - - _attribute_map = { - 'storage_key': {'key': 'storageKey', 'type': 'str'} - } - - def __init__(self, storage_key=None): - super(GraphUserCreationContext, self).__init__() - self.storage_key = storage_key diff --git a/vsts/vsts/graph/v4_1/models/identity_key_map.py b/vsts/vsts/graph/v4_1/models/identity_key_map.py deleted file mode 100644 index 05c08952..00000000 --- a/vsts/vsts/graph/v4_1/models/identity_key_map.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityKeyMap(Model): - """IdentityKeyMap. - - :param cuid: - :type cuid: str - :param storage_key: - :type storage_key: str - :param subject_type: - :type subject_type: str - """ - - _attribute_map = { - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'storage_key': {'key': 'storageKey', 'type': 'str'}, - 'subject_type': {'key': 'subjectType', 'type': 'str'} - } - - def __init__(self, cuid=None, storage_key=None, subject_type=None): - super(IdentityKeyMap, self).__init__() - self.cuid = cuid - self.storage_key = storage_key - self.subject_type = subject_type diff --git a/vsts/vsts/graph/v4_1/models/json_patch_operation.py b/vsts/vsts/graph/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/graph/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/graph/v4_1/models/paged_graph_groups.py b/vsts/vsts/graph/v4_1/models/paged_graph_groups.py deleted file mode 100644 index da7422e4..00000000 --- a/vsts/vsts/graph/v4_1/models/paged_graph_groups.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PagedGraphGroups(Model): - """PagedGraphGroups. - - :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. - :type continuation_token: list of str - :param graph_groups: The enumerable list of groups found within a page. - :type graph_groups: list of :class:`GraphGroup ` - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, - 'graph_groups': {'key': 'graphGroups', 'type': '[GraphGroup]'} - } - - def __init__(self, continuation_token=None, graph_groups=None): - super(PagedGraphGroups, self).__init__() - self.continuation_token = continuation_token - self.graph_groups = graph_groups diff --git a/vsts/vsts/graph/v4_1/models/paged_graph_users.py b/vsts/vsts/graph/v4_1/models/paged_graph_users.py deleted file mode 100644 index f7061aa1..00000000 --- a/vsts/vsts/graph/v4_1/models/paged_graph_users.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PagedGraphUsers(Model): - """PagedGraphUsers. - - :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. - :type continuation_token: list of str - :param graph_users: The enumerable set of users found within a page. - :type graph_users: list of :class:`GraphUser ` - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, - 'graph_users': {'key': 'graphUsers', 'type': '[GraphUser]'} - } - - def __init__(self, continuation_token=None, graph_users=None): - super(PagedGraphUsers, self).__init__() - self.continuation_token = continuation_token - self.graph_users = graph_users diff --git a/vsts/vsts/graph/v4_1/models/reference_links.py b/vsts/vsts/graph/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/graph/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/identity/__init__.py b/vsts/vsts/identity/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/identity/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/identity/v4_0/__init__.py b/vsts/vsts/identity/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/identity/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/identity/v4_0/models/__init__.py b/vsts/vsts/identity/v4_0/models/__init__.py deleted file mode 100644 index 1580aa8a..00000000 --- a/vsts/vsts/identity/v4_0/models/__init__.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_token_result import AccessTokenResult -from .authorization_grant import AuthorizationGrant -from .changed_identities import ChangedIdentities -from .changed_identities_context import ChangedIdentitiesContext -from .create_scope_info import CreateScopeInfo -from .framework_identity_info import FrameworkIdentityInfo -from .group_membership import GroupMembership -from .identity import Identity -from .identity_batch_info import IdentityBatchInfo -from .identity_scope import IdentityScope -from .identity_self import IdentitySelf -from .identity_snapshot import IdentitySnapshot -from .identity_update_data import IdentityUpdateData -from .json_web_token import JsonWebToken -from .refresh_token_grant import RefreshTokenGrant -from .tenant_info import TenantInfo - -__all__ = [ - 'AccessTokenResult', - 'AuthorizationGrant', - 'ChangedIdentities', - 'ChangedIdentitiesContext', - 'CreateScopeInfo', - 'FrameworkIdentityInfo', - 'GroupMembership', - 'Identity', - 'IdentityBatchInfo', - 'IdentityScope', - 'IdentitySelf', - 'IdentitySnapshot', - 'IdentityUpdateData', - 'JsonWebToken', - 'RefreshTokenGrant', - 'TenantInfo', -] diff --git a/vsts/vsts/identity/v4_0/models/access_token_result.py b/vsts/vsts/identity/v4_0/models/access_token_result.py deleted file mode 100644 index 7ec13e88..00000000 --- a/vsts/vsts/identity/v4_0/models/access_token_result.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessTokenResult(Model): - """AccessTokenResult. - - :param access_token: - :type access_token: :class:`JsonWebToken ` - :param access_token_error: - :type access_token_error: object - :param authorization_id: - :type authorization_id: str - :param error_description: - :type error_description: str - :param has_error: - :type has_error: bool - :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` - :param token_type: - :type token_type: str - :param valid_to: - :type valid_to: datetime - """ - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'JsonWebToken'}, - 'access_token_error': {'key': 'accessTokenError', 'type': 'object'}, - 'authorization_id': {'key': 'authorizationId', 'type': 'str'}, - 'error_description': {'key': 'errorDescription', 'type': 'str'}, - 'has_error': {'key': 'hasError', 'type': 'bool'}, - 'refresh_token': {'key': 'refreshToken', 'type': 'RefreshTokenGrant'}, - 'token_type': {'key': 'tokenType', 'type': 'str'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} - } - - def __init__(self, access_token=None, access_token_error=None, authorization_id=None, error_description=None, has_error=None, refresh_token=None, token_type=None, valid_to=None): - super(AccessTokenResult, self).__init__() - self.access_token = access_token - self.access_token_error = access_token_error - self.authorization_id = authorization_id - self.error_description = error_description - self.has_error = has_error - self.refresh_token = refresh_token - self.token_type = token_type - self.valid_to = valid_to diff --git a/vsts/vsts/identity/v4_0/models/authorization_grant.py b/vsts/vsts/identity/v4_0/models/authorization_grant.py deleted file mode 100644 index 6d7b7404..00000000 --- a/vsts/vsts/identity/v4_0/models/authorization_grant.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthorizationGrant(Model): - """AuthorizationGrant. - - :param grant_type: - :type grant_type: object - """ - - _attribute_map = { - 'grant_type': {'key': 'grantType', 'type': 'object'} - } - - def __init__(self, grant_type=None): - super(AuthorizationGrant, self).__init__() - self.grant_type = grant_type diff --git a/vsts/vsts/identity/v4_0/models/changed_identities.py b/vsts/vsts/identity/v4_0/models/changed_identities.py deleted file mode 100644 index 1cb58d93..00000000 --- a/vsts/vsts/identity/v4_0/models/changed_identities.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ChangedIdentities(Model): - """ChangedIdentities. - - :param identities: Changed Identities - :type identities: list of :class:`Identity ` - :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` - """ - - _attribute_map = { - 'identities': {'key': 'identities', 'type': '[Identity]'}, - 'sequence_context': {'key': 'sequenceContext', 'type': 'ChangedIdentitiesContext'} - } - - def __init__(self, identities=None, sequence_context=None): - super(ChangedIdentities, self).__init__() - self.identities = identities - self.sequence_context = sequence_context diff --git a/vsts/vsts/identity/v4_0/models/changed_identities_context.py b/vsts/vsts/identity/v4_0/models/changed_identities_context.py deleted file mode 100644 index 7ac79f49..00000000 --- a/vsts/vsts/identity/v4_0/models/changed_identities_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ChangedIdentitiesContext(Model): - """ChangedIdentitiesContext. - - :param group_sequence_id: Last Group SequenceId - :type group_sequence_id: int - :param identity_sequence_id: Last Identity SequenceId - :type identity_sequence_id: int - """ - - _attribute_map = { - 'group_sequence_id': {'key': 'groupSequenceId', 'type': 'int'}, - 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'} - } - - def __init__(self, group_sequence_id=None, identity_sequence_id=None): - super(ChangedIdentitiesContext, self).__init__() - self.group_sequence_id = group_sequence_id - self.identity_sequence_id = identity_sequence_id diff --git a/vsts/vsts/identity/v4_0/models/create_scope_info.py b/vsts/vsts/identity/v4_0/models/create_scope_info.py deleted file mode 100644 index f838990f..00000000 --- a/vsts/vsts/identity/v4_0/models/create_scope_info.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreateScopeInfo(Model): - """CreateScopeInfo. - - :param admin_group_description: - :type admin_group_description: str - :param admin_group_name: - :type admin_group_name: str - :param creator_id: - :type creator_id: str - :param parent_scope_id: - :type parent_scope_id: str - :param scope_name: - :type scope_name: str - :param scope_type: - :type scope_type: object - """ - - _attribute_map = { - 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, - 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, - 'creator_id': {'key': 'creatorId', 'type': 'str'}, - 'parent_scope_id': {'key': 'parentScopeId', 'type': 'str'}, - 'scope_name': {'key': 'scopeName', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'object'} - } - - def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, parent_scope_id=None, scope_name=None, scope_type=None): - super(CreateScopeInfo, self).__init__() - self.admin_group_description = admin_group_description - self.admin_group_name = admin_group_name - self.creator_id = creator_id - self.parent_scope_id = parent_scope_id - self.scope_name = scope_name - self.scope_type = scope_type diff --git a/vsts/vsts/identity/v4_0/models/framework_identity_info.py b/vsts/vsts/identity/v4_0/models/framework_identity_info.py deleted file mode 100644 index 984ead3c..00000000 --- a/vsts/vsts/identity/v4_0/models/framework_identity_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FrameworkIdentityInfo(Model): - """FrameworkIdentityInfo. - - :param display_name: - :type display_name: str - :param identifier: - :type identifier: str - :param identity_type: - :type identity_type: object - :param role: - :type role: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'identity_type': {'key': 'identityType', 'type': 'object'}, - 'role': {'key': 'role', 'type': 'str'} - } - - def __init__(self, display_name=None, identifier=None, identity_type=None, role=None): - super(FrameworkIdentityInfo, self).__init__() - self.display_name = display_name - self.identifier = identifier - self.identity_type = identity_type - self.role = role diff --git a/vsts/vsts/identity/v4_0/models/group_membership.py b/vsts/vsts/identity/v4_0/models/group_membership.py deleted file mode 100644 index 4728df3e..00000000 --- a/vsts/vsts/identity/v4_0/models/group_membership.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GroupMembership(Model): - """GroupMembership. - - :param active: - :type active: bool - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param queried_id: - :type queried_id: str - """ - - _attribute_map = { - 'active': {'key': 'active', 'type': 'bool'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'queried_id': {'key': 'queriedId', 'type': 'str'} - } - - def __init__(self, active=None, descriptor=None, id=None, queried_id=None): - super(GroupMembership, self).__init__() - self.active = active - self.descriptor = descriptor - self.id = id - self.queried_id = queried_id diff --git a/vsts/vsts/identity/v4_0/models/identity.py b/vsts/vsts/identity/v4_0/models/identity.py deleted file mode 100644 index 3ab07faa..00000000 --- a/vsts/vsts/identity/v4_0/models/identity.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Identity(Model): - """Identity. - - :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - :type custom_display_name: str - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_container: - :type is_container: bool - :param master_id: - :type master_id: str - :param member_ids: - :type member_ids: list of str - :param member_of: - :type member_of: list of :class:`str ` - :param members: - :type members: list of :class:`str ` - :param meta_type_id: - :type meta_type_id: int - :param properties: - :type properties: :class:`object ` - :param provider_display_name: The display name for the identity as specified by the source identity provider. - :type provider_display_name: str - :param resource_version: - :type resource_version: int - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - :param unique_user_id: - :type unique_user_id: int - """ - - _attribute_map = { - 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'master_id': {'key': 'masterId', 'type': 'str'}, - 'member_ids': {'key': 'memberIds', 'type': '[str]'}, - 'member_of': {'key': 'memberOf', 'type': '[str]'}, - 'members': {'key': 'members', 'type': '[str]'}, - 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} - } - - def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__() - self.custom_display_name = custom_display_name - self.descriptor = descriptor - self.id = id - self.is_active = is_active - self.is_container = is_container - self.master_id = master_id - self.member_ids = member_ids - self.member_of = member_of - self.members = members - self.meta_type_id = meta_type_id - self.properties = properties - self.provider_display_name = provider_display_name - self.resource_version = resource_version - self.subject_descriptor = subject_descriptor - self.unique_user_id = unique_user_id diff --git a/vsts/vsts/identity/v4_0/models/identity_batch_info.py b/vsts/vsts/identity/v4_0/models/identity_batch_info.py deleted file mode 100644 index 5e1798c0..00000000 --- a/vsts/vsts/identity/v4_0/models/identity_batch_info.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityBatchInfo(Model): - """IdentityBatchInfo. - - :param descriptors: - :type descriptors: list of :class:`str ` - :param identity_ids: - :type identity_ids: list of str - :param include_restricted_visibility: - :type include_restricted_visibility: bool - :param property_names: - :type property_names: list of str - :param query_membership: - :type query_membership: object - """ - - _attribute_map = { - 'descriptors': {'key': 'descriptors', 'type': '[str]'}, - 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, - 'include_restricted_visibility': {'key': 'includeRestrictedVisibility', 'type': 'bool'}, - 'property_names': {'key': 'propertyNames', 'type': '[str]'}, - 'query_membership': {'key': 'queryMembership', 'type': 'object'} - } - - def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None): - super(IdentityBatchInfo, self).__init__() - self.descriptors = descriptors - self.identity_ids = identity_ids - self.include_restricted_visibility = include_restricted_visibility - self.property_names = property_names - self.query_membership = query_membership diff --git a/vsts/vsts/identity/v4_0/models/identity_scope.py b/vsts/vsts/identity/v4_0/models/identity_scope.py deleted file mode 100644 index 6cb63a09..00000000 --- a/vsts/vsts/identity/v4_0/models/identity_scope.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityScope(Model): - """IdentityScope. - - :param administrators: - :type administrators: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_global: - :type is_global: bool - :param local_scope_id: - :type local_scope_id: str - :param name: - :type name: str - :param parent_id: - :type parent_id: str - :param scope_type: - :type scope_type: object - :param securing_host_id: - :type securing_host_id: str - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - """ - - _attribute_map = { - 'administrators': {'key': 'administrators', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_global': {'key': 'isGlobal', 'type': 'bool'}, - 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_id': {'key': 'parentId', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'object'}, - 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'} - } - - def __init__(self, administrators=None, id=None, is_active=None, is_global=None, local_scope_id=None, name=None, parent_id=None, scope_type=None, securing_host_id=None, subject_descriptor=None): - super(IdentityScope, self).__init__() - self.administrators = administrators - self.id = id - self.is_active = is_active - self.is_global = is_global - self.local_scope_id = local_scope_id - self.name = name - self.parent_id = parent_id - self.scope_type = scope_type - self.securing_host_id = securing_host_id - self.subject_descriptor = subject_descriptor diff --git a/vsts/vsts/identity/v4_0/models/identity_self.py b/vsts/vsts/identity/v4_0/models/identity_self.py deleted file mode 100644 index e4f90f43..00000000 --- a/vsts/vsts/identity/v4_0/models/identity_self.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentitySelf(Model): - """IdentitySelf. - - :param account_name: - :type account_name: str - :param display_name: - :type display_name: str - :param id: - :type id: str - :param tenants: - :type tenants: list of :class:`TenantInfo ` - """ - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'tenants': {'key': 'tenants', 'type': '[TenantInfo]'} - } - - def __init__(self, account_name=None, display_name=None, id=None, tenants=None): - super(IdentitySelf, self).__init__() - self.account_name = account_name - self.display_name = display_name - self.id = id - self.tenants = tenants diff --git a/vsts/vsts/identity/v4_0/models/identity_snapshot.py b/vsts/vsts/identity/v4_0/models/identity_snapshot.py deleted file mode 100644 index 59229d1a..00000000 --- a/vsts/vsts/identity/v4_0/models/identity_snapshot.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentitySnapshot(Model): - """IdentitySnapshot. - - :param groups: - :type groups: list of :class:`Identity ` - :param identity_ids: - :type identity_ids: list of str - :param memberships: - :type memberships: list of :class:`GroupMembership ` - :param scope_id: - :type scope_id: str - :param scopes: - :type scopes: list of :class:`IdentityScope ` - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Identity]'}, - 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, - 'memberships': {'key': 'memberships', 'type': '[GroupMembership]'}, - 'scope_id': {'key': 'scopeId', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[IdentityScope]'} - } - - def __init__(self, groups=None, identity_ids=None, memberships=None, scope_id=None, scopes=None): - super(IdentitySnapshot, self).__init__() - self.groups = groups - self.identity_ids = identity_ids - self.memberships = memberships - self.scope_id = scope_id - self.scopes = scopes diff --git a/vsts/vsts/identity/v4_0/models/identity_update_data.py b/vsts/vsts/identity/v4_0/models/identity_update_data.py deleted file mode 100644 index 70c2eb75..00000000 --- a/vsts/vsts/identity/v4_0/models/identity_update_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityUpdateData(Model): - """IdentityUpdateData. - - :param id: - :type id: str - :param index: - :type index: int - :param updated: - :type updated: bool - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'index': {'key': 'index', 'type': 'int'}, - 'updated': {'key': 'updated', 'type': 'bool'} - } - - def __init__(self, id=None, index=None, updated=None): - super(IdentityUpdateData, self).__init__() - self.id = id - self.index = index - self.updated = updated diff --git a/vsts/vsts/identity/v4_0/models/json_web_token.py b/vsts/vsts/identity/v4_0/models/json_web_token.py deleted file mode 100644 index 03adaafc..00000000 --- a/vsts/vsts/identity/v4_0/models/json_web_token.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonWebToken(Model): - """JsonWebToken. - - """ - - _attribute_map = { - } - - def __init__(self): - super(JsonWebToken, self).__init__() diff --git a/vsts/vsts/identity/v4_0/models/refresh_token_grant.py b/vsts/vsts/identity/v4_0/models/refresh_token_grant.py deleted file mode 100644 index 05a13501..00000000 --- a/vsts/vsts/identity/v4_0/models/refresh_token_grant.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .authorization_grant import AuthorizationGrant - - -class RefreshTokenGrant(AuthorizationGrant): - """RefreshTokenGrant. - - :param grant_type: - :type grant_type: object - :param jwt: - :type jwt: :class:`JsonWebToken ` - """ - - _attribute_map = { - 'grant_type': {'key': 'grantType', 'type': 'object'}, - 'jwt': {'key': 'jwt', 'type': 'JsonWebToken'} - } - - def __init__(self, grant_type=None, jwt=None): - super(RefreshTokenGrant, self).__init__(grant_type=grant_type) - self.jwt = jwt diff --git a/vsts/vsts/identity/v4_0/models/tenant_info.py b/vsts/vsts/identity/v4_0/models/tenant_info.py deleted file mode 100644 index 79f0ef44..00000000 --- a/vsts/vsts/identity/v4_0/models/tenant_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TenantInfo(Model): - """TenantInfo. - - :param home_tenant: - :type home_tenant: bool - :param tenant_id: - :type tenant_id: str - :param tenant_name: - :type tenant_name: str - """ - - _attribute_map = { - 'home_tenant': {'key': 'homeTenant', 'type': 'bool'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'tenant_name': {'key': 'tenantName', 'type': 'str'} - } - - def __init__(self, home_tenant=None, tenant_id=None, tenant_name=None): - super(TenantInfo, self).__init__() - self.home_tenant = home_tenant - self.tenant_id = tenant_id - self.tenant_name = tenant_name diff --git a/vsts/vsts/identity/v4_1/__init__.py b/vsts/vsts/identity/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/identity/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/identity/v4_1/models/__init__.py b/vsts/vsts/identity/v4_1/models/__init__.py deleted file mode 100644 index 08a68e1a..00000000 --- a/vsts/vsts/identity/v4_1/models/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_token_result import AccessTokenResult -from .authorization_grant import AuthorizationGrant -from .changed_identities import ChangedIdentities -from .changed_identities_context import ChangedIdentitiesContext -from .create_scope_info import CreateScopeInfo -from .framework_identity_info import FrameworkIdentityInfo -from .group_membership import GroupMembership -from .identity import Identity -from .identity_base import IdentityBase -from .identity_batch_info import IdentityBatchInfo -from .identity_scope import IdentityScope -from .identity_self import IdentitySelf -from .identity_snapshot import IdentitySnapshot -from .identity_update_data import IdentityUpdateData -from .json_web_token import JsonWebToken -from .refresh_token_grant import RefreshTokenGrant -from .tenant_info import TenantInfo - -__all__ = [ - 'AccessTokenResult', - 'AuthorizationGrant', - 'ChangedIdentities', - 'ChangedIdentitiesContext', - 'CreateScopeInfo', - 'FrameworkIdentityInfo', - 'GroupMembership', - 'Identity', - 'IdentityBase', - 'IdentityBatchInfo', - 'IdentityScope', - 'IdentitySelf', - 'IdentitySnapshot', - 'IdentityUpdateData', - 'JsonWebToken', - 'RefreshTokenGrant', - 'TenantInfo', -] diff --git a/vsts/vsts/identity/v4_1/models/access_token_result.py b/vsts/vsts/identity/v4_1/models/access_token_result.py deleted file mode 100644 index 958f43bb..00000000 --- a/vsts/vsts/identity/v4_1/models/access_token_result.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessTokenResult(Model): - """AccessTokenResult. - - :param access_token: - :type access_token: :class:`JsonWebToken ` - :param access_token_error: - :type access_token_error: object - :param authorization_id: - :type authorization_id: str - :param error_description: - :type error_description: str - :param has_error: - :type has_error: bool - :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` - :param token_type: - :type token_type: str - :param valid_to: - :type valid_to: datetime - """ - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'JsonWebToken'}, - 'access_token_error': {'key': 'accessTokenError', 'type': 'object'}, - 'authorization_id': {'key': 'authorizationId', 'type': 'str'}, - 'error_description': {'key': 'errorDescription', 'type': 'str'}, - 'has_error': {'key': 'hasError', 'type': 'bool'}, - 'refresh_token': {'key': 'refreshToken', 'type': 'RefreshTokenGrant'}, - 'token_type': {'key': 'tokenType', 'type': 'str'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} - } - - def __init__(self, access_token=None, access_token_error=None, authorization_id=None, error_description=None, has_error=None, refresh_token=None, token_type=None, valid_to=None): - super(AccessTokenResult, self).__init__() - self.access_token = access_token - self.access_token_error = access_token_error - self.authorization_id = authorization_id - self.error_description = error_description - self.has_error = has_error - self.refresh_token = refresh_token - self.token_type = token_type - self.valid_to = valid_to diff --git a/vsts/vsts/identity/v4_1/models/authorization_grant.py b/vsts/vsts/identity/v4_1/models/authorization_grant.py deleted file mode 100644 index 6d7b7404..00000000 --- a/vsts/vsts/identity/v4_1/models/authorization_grant.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthorizationGrant(Model): - """AuthorizationGrant. - - :param grant_type: - :type grant_type: object - """ - - _attribute_map = { - 'grant_type': {'key': 'grantType', 'type': 'object'} - } - - def __init__(self, grant_type=None): - super(AuthorizationGrant, self).__init__() - self.grant_type = grant_type diff --git a/vsts/vsts/identity/v4_1/models/changed_identities.py b/vsts/vsts/identity/v4_1/models/changed_identities.py deleted file mode 100644 index 32b30a32..00000000 --- a/vsts/vsts/identity/v4_1/models/changed_identities.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ChangedIdentities(Model): - """ChangedIdentities. - - :param identities: Changed Identities - :type identities: list of :class:`Identity ` - :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` - """ - - _attribute_map = { - 'identities': {'key': 'identities', 'type': '[Identity]'}, - 'sequence_context': {'key': 'sequenceContext', 'type': 'ChangedIdentitiesContext'} - } - - def __init__(self, identities=None, sequence_context=None): - super(ChangedIdentities, self).__init__() - self.identities = identities - self.sequence_context = sequence_context diff --git a/vsts/vsts/identity/v4_1/models/changed_identities_context.py b/vsts/vsts/identity/v4_1/models/changed_identities_context.py deleted file mode 100644 index 7ac79f49..00000000 --- a/vsts/vsts/identity/v4_1/models/changed_identities_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ChangedIdentitiesContext(Model): - """ChangedIdentitiesContext. - - :param group_sequence_id: Last Group SequenceId - :type group_sequence_id: int - :param identity_sequence_id: Last Identity SequenceId - :type identity_sequence_id: int - """ - - _attribute_map = { - 'group_sequence_id': {'key': 'groupSequenceId', 'type': 'int'}, - 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'} - } - - def __init__(self, group_sequence_id=None, identity_sequence_id=None): - super(ChangedIdentitiesContext, self).__init__() - self.group_sequence_id = group_sequence_id - self.identity_sequence_id = identity_sequence_id diff --git a/vsts/vsts/identity/v4_1/models/create_scope_info.py b/vsts/vsts/identity/v4_1/models/create_scope_info.py deleted file mode 100644 index f838990f..00000000 --- a/vsts/vsts/identity/v4_1/models/create_scope_info.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreateScopeInfo(Model): - """CreateScopeInfo. - - :param admin_group_description: - :type admin_group_description: str - :param admin_group_name: - :type admin_group_name: str - :param creator_id: - :type creator_id: str - :param parent_scope_id: - :type parent_scope_id: str - :param scope_name: - :type scope_name: str - :param scope_type: - :type scope_type: object - """ - - _attribute_map = { - 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, - 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, - 'creator_id': {'key': 'creatorId', 'type': 'str'}, - 'parent_scope_id': {'key': 'parentScopeId', 'type': 'str'}, - 'scope_name': {'key': 'scopeName', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'object'} - } - - def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, parent_scope_id=None, scope_name=None, scope_type=None): - super(CreateScopeInfo, self).__init__() - self.admin_group_description = admin_group_description - self.admin_group_name = admin_group_name - self.creator_id = creator_id - self.parent_scope_id = parent_scope_id - self.scope_name = scope_name - self.scope_type = scope_type diff --git a/vsts/vsts/identity/v4_1/models/framework_identity_info.py b/vsts/vsts/identity/v4_1/models/framework_identity_info.py deleted file mode 100644 index 984ead3c..00000000 --- a/vsts/vsts/identity/v4_1/models/framework_identity_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FrameworkIdentityInfo(Model): - """FrameworkIdentityInfo. - - :param display_name: - :type display_name: str - :param identifier: - :type identifier: str - :param identity_type: - :type identity_type: object - :param role: - :type role: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'identity_type': {'key': 'identityType', 'type': 'object'}, - 'role': {'key': 'role', 'type': 'str'} - } - - def __init__(self, display_name=None, identifier=None, identity_type=None, role=None): - super(FrameworkIdentityInfo, self).__init__() - self.display_name = display_name - self.identifier = identifier - self.identity_type = identity_type - self.role = role diff --git a/vsts/vsts/identity/v4_1/models/group_membership.py b/vsts/vsts/identity/v4_1/models/group_membership.py deleted file mode 100644 index 8a0d801b..00000000 --- a/vsts/vsts/identity/v4_1/models/group_membership.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GroupMembership(Model): - """GroupMembership. - - :param active: - :type active: bool - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param queried_id: - :type queried_id: str - """ - - _attribute_map = { - 'active': {'key': 'active', 'type': 'bool'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'queried_id': {'key': 'queriedId', 'type': 'str'} - } - - def __init__(self, active=None, descriptor=None, id=None, queried_id=None): - super(GroupMembership, self).__init__() - self.active = active - self.descriptor = descriptor - self.id = id - self.queried_id = queried_id diff --git a/vsts/vsts/identity/v4_1/models/identity.py b/vsts/vsts/identity/v4_1/models/identity.py deleted file mode 100644 index 018ffb12..00000000 --- a/vsts/vsts/identity/v4_1/models/identity.py +++ /dev/null @@ -1,66 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_base import IdentityBase - - -class Identity(IdentityBase): - """Identity. - - :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - :type custom_display_name: str - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_container: - :type is_container: bool - :param master_id: - :type master_id: str - :param member_ids: - :type member_ids: list of str - :param member_of: - :type member_of: list of :class:`str ` - :param members: - :type members: list of :class:`str ` - :param meta_type_id: - :type meta_type_id: int - :param properties: - :type properties: :class:`object ` - :param provider_display_name: The display name for the identity as specified by the source identity provider. - :type provider_display_name: str - :param resource_version: - :type resource_version: int - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - :param unique_user_id: - :type unique_user_id: int - """ - - _attribute_map = { - 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'master_id': {'key': 'masterId', 'type': 'str'}, - 'member_ids': {'key': 'memberIds', 'type': '[str]'}, - 'member_of': {'key': 'memberOf', 'type': '[str]'}, - 'members': {'key': 'members', 'type': '[str]'}, - 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, - } - - def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) diff --git a/vsts/vsts/identity/v4_1/models/identity_base.py b/vsts/vsts/identity/v4_1/models/identity_base.py deleted file mode 100644 index 8b0b49f8..00000000 --- a/vsts/vsts/identity/v4_1/models/identity_base.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityBase(Model): - """IdentityBase. - - :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - :type custom_display_name: str - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_container: - :type is_container: bool - :param master_id: - :type master_id: str - :param member_ids: - :type member_ids: list of str - :param member_of: - :type member_of: list of :class:`str ` - :param members: - :type members: list of :class:`str ` - :param meta_type_id: - :type meta_type_id: int - :param properties: - :type properties: :class:`object ` - :param provider_display_name: The display name for the identity as specified by the source identity provider. - :type provider_display_name: str - :param resource_version: - :type resource_version: int - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - :param unique_user_id: - :type unique_user_id: int - """ - - _attribute_map = { - 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'master_id': {'key': 'masterId', 'type': 'str'}, - 'member_ids': {'key': 'memberIds', 'type': '[str]'}, - 'member_of': {'key': 'memberOf', 'type': '[str]'}, - 'members': {'key': 'members', 'type': '[str]'}, - 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} - } - - def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(IdentityBase, self).__init__() - self.custom_display_name = custom_display_name - self.descriptor = descriptor - self.id = id - self.is_active = is_active - self.is_container = is_container - self.master_id = master_id - self.member_ids = member_ids - self.member_of = member_of - self.members = members - self.meta_type_id = meta_type_id - self.properties = properties - self.provider_display_name = provider_display_name - self.resource_version = resource_version - self.subject_descriptor = subject_descriptor - self.unique_user_id = unique_user_id diff --git a/vsts/vsts/identity/v4_1/models/identity_batch_info.py b/vsts/vsts/identity/v4_1/models/identity_batch_info.py deleted file mode 100644 index 527e9a8e..00000000 --- a/vsts/vsts/identity/v4_1/models/identity_batch_info.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityBatchInfo(Model): - """IdentityBatchInfo. - - :param descriptors: - :type descriptors: list of :class:`str ` - :param identity_ids: - :type identity_ids: list of str - :param include_restricted_visibility: - :type include_restricted_visibility: bool - :param property_names: - :type property_names: list of str - :param query_membership: - :type query_membership: object - """ - - _attribute_map = { - 'descriptors': {'key': 'descriptors', 'type': '[str]'}, - 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, - 'include_restricted_visibility': {'key': 'includeRestrictedVisibility', 'type': 'bool'}, - 'property_names': {'key': 'propertyNames', 'type': '[str]'}, - 'query_membership': {'key': 'queryMembership', 'type': 'object'} - } - - def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None): - super(IdentityBatchInfo, self).__init__() - self.descriptors = descriptors - self.identity_ids = identity_ids - self.include_restricted_visibility = include_restricted_visibility - self.property_names = property_names - self.query_membership = query_membership diff --git a/vsts/vsts/identity/v4_1/models/identity_scope.py b/vsts/vsts/identity/v4_1/models/identity_scope.py deleted file mode 100644 index 046f11e1..00000000 --- a/vsts/vsts/identity/v4_1/models/identity_scope.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityScope(Model): - """IdentityScope. - - :param administrators: - :type administrators: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_global: - :type is_global: bool - :param local_scope_id: - :type local_scope_id: str - :param name: - :type name: str - :param parent_id: - :type parent_id: str - :param scope_type: - :type scope_type: object - :param securing_host_id: - :type securing_host_id: str - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - """ - - _attribute_map = { - 'administrators': {'key': 'administrators', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_global': {'key': 'isGlobal', 'type': 'bool'}, - 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_id': {'key': 'parentId', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'object'}, - 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'} - } - - def __init__(self, administrators=None, id=None, is_active=None, is_global=None, local_scope_id=None, name=None, parent_id=None, scope_type=None, securing_host_id=None, subject_descriptor=None): - super(IdentityScope, self).__init__() - self.administrators = administrators - self.id = id - self.is_active = is_active - self.is_global = is_global - self.local_scope_id = local_scope_id - self.name = name - self.parent_id = parent_id - self.scope_type = scope_type - self.securing_host_id = securing_host_id - self.subject_descriptor = subject_descriptor diff --git a/vsts/vsts/identity/v4_1/models/identity_self.py b/vsts/vsts/identity/v4_1/models/identity_self.py deleted file mode 100644 index daa61649..00000000 --- a/vsts/vsts/identity/v4_1/models/identity_self.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentitySelf(Model): - """IdentitySelf. - - :param account_name: - :type account_name: str - :param display_name: - :type display_name: str - :param id: - :type id: str - :param tenants: - :type tenants: list of :class:`TenantInfo ` - """ - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'tenants': {'key': 'tenants', 'type': '[TenantInfo]'} - } - - def __init__(self, account_name=None, display_name=None, id=None, tenants=None): - super(IdentitySelf, self).__init__() - self.account_name = account_name - self.display_name = display_name - self.id = id - self.tenants = tenants diff --git a/vsts/vsts/identity/v4_1/models/identity_snapshot.py b/vsts/vsts/identity/v4_1/models/identity_snapshot.py deleted file mode 100644 index dbba580b..00000000 --- a/vsts/vsts/identity/v4_1/models/identity_snapshot.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentitySnapshot(Model): - """IdentitySnapshot. - - :param groups: - :type groups: list of :class:`Identity ` - :param identity_ids: - :type identity_ids: list of str - :param memberships: - :type memberships: list of :class:`GroupMembership ` - :param scope_id: - :type scope_id: str - :param scopes: - :type scopes: list of :class:`IdentityScope ` - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Identity]'}, - 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, - 'memberships': {'key': 'memberships', 'type': '[GroupMembership]'}, - 'scope_id': {'key': 'scopeId', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[IdentityScope]'} - } - - def __init__(self, groups=None, identity_ids=None, memberships=None, scope_id=None, scopes=None): - super(IdentitySnapshot, self).__init__() - self.groups = groups - self.identity_ids = identity_ids - self.memberships = memberships - self.scope_id = scope_id - self.scopes = scopes diff --git a/vsts/vsts/identity/v4_1/models/identity_update_data.py b/vsts/vsts/identity/v4_1/models/identity_update_data.py deleted file mode 100644 index 70c2eb75..00000000 --- a/vsts/vsts/identity/v4_1/models/identity_update_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityUpdateData(Model): - """IdentityUpdateData. - - :param id: - :type id: str - :param index: - :type index: int - :param updated: - :type updated: bool - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'index': {'key': 'index', 'type': 'int'}, - 'updated': {'key': 'updated', 'type': 'bool'} - } - - def __init__(self, id=None, index=None, updated=None): - super(IdentityUpdateData, self).__init__() - self.id = id - self.index = index - self.updated = updated diff --git a/vsts/vsts/identity/v4_1/models/json_web_token.py b/vsts/vsts/identity/v4_1/models/json_web_token.py deleted file mode 100644 index 03adaafc..00000000 --- a/vsts/vsts/identity/v4_1/models/json_web_token.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonWebToken(Model): - """JsonWebToken. - - """ - - _attribute_map = { - } - - def __init__(self): - super(JsonWebToken, self).__init__() diff --git a/vsts/vsts/identity/v4_1/models/refresh_token_grant.py b/vsts/vsts/identity/v4_1/models/refresh_token_grant.py deleted file mode 100644 index 1ce08212..00000000 --- a/vsts/vsts/identity/v4_1/models/refresh_token_grant.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .authorization_grant import AuthorizationGrant - - -class RefreshTokenGrant(AuthorizationGrant): - """RefreshTokenGrant. - - :param grant_type: - :type grant_type: object - :param jwt: - :type jwt: :class:`JsonWebToken ` - """ - - _attribute_map = { - 'grant_type': {'key': 'grantType', 'type': 'object'}, - 'jwt': {'key': 'jwt', 'type': 'JsonWebToken'} - } - - def __init__(self, grant_type=None, jwt=None): - super(RefreshTokenGrant, self).__init__(grant_type=grant_type) - self.jwt = jwt diff --git a/vsts/vsts/identity/v4_1/models/tenant_info.py b/vsts/vsts/identity/v4_1/models/tenant_info.py deleted file mode 100644 index 79f0ef44..00000000 --- a/vsts/vsts/identity/v4_1/models/tenant_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TenantInfo(Model): - """TenantInfo. - - :param home_tenant: - :type home_tenant: bool - :param tenant_id: - :type tenant_id: str - :param tenant_name: - :type tenant_name: str - """ - - _attribute_map = { - 'home_tenant': {'key': 'homeTenant', 'type': 'bool'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'tenant_name': {'key': 'tenantName', 'type': 'str'} - } - - def __init__(self, home_tenant=None, tenant_id=None, tenant_name=None): - super(TenantInfo, self).__init__() - self.home_tenant = home_tenant - self.tenant_id = tenant_id - self.tenant_name = tenant_name diff --git a/vsts/vsts/licensing/__init__.py b/vsts/vsts/licensing/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/licensing/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/licensing/v4_0/__init__.py b/vsts/vsts/licensing/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/licensing/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/licensing/v4_0/models/__init__.py b/vsts/vsts/licensing/v4_0/models/__init__.py deleted file mode 100644 index f915040d..00000000 --- a/vsts/vsts/licensing/v4_0/models/__init__.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .account_entitlement import AccountEntitlement -from .account_entitlement_update_model import AccountEntitlementUpdateModel -from .account_license_extension_usage import AccountLicenseExtensionUsage -from .account_license_usage import AccountLicenseUsage -from .account_rights import AccountRights -from .account_user_license import AccountUserLicense -from .client_rights_container import ClientRightsContainer -from .extension_assignment import ExtensionAssignment -from .extension_assignment_details import ExtensionAssignmentDetails -from .extension_license_data import ExtensionLicenseData -from .extension_operation_result import ExtensionOperationResult -from .extension_rights_result import ExtensionRightsResult -from .extension_source import ExtensionSource -from .identity_ref import IdentityRef -from .iUsage_right import IUsageRight -from .license import License -from .msdn_entitlement import MsdnEntitlement - -__all__ = [ - 'AccountEntitlement', - 'AccountEntitlementUpdateModel', - 'AccountLicenseExtensionUsage', - 'AccountLicenseUsage', - 'AccountRights', - 'AccountUserLicense', - 'ClientRightsContainer', - 'ExtensionAssignment', - 'ExtensionAssignmentDetails', - 'ExtensionLicenseData', - 'ExtensionOperationResult', - 'ExtensionRightsResult', - 'ExtensionSource', - 'IdentityRef', - 'IUsageRight', - 'License', - 'MsdnEntitlement', -] diff --git a/vsts/vsts/licensing/v4_0/models/account_entitlement.py b/vsts/vsts/licensing/v4_0/models/account_entitlement.py deleted file mode 100644 index b79c1218..00000000 --- a/vsts/vsts/licensing/v4_0/models/account_entitlement.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountEntitlement(Model): - """AccountEntitlement. - - :param account_id: Gets or sets the id of the account to which the license belongs - :type account_id: str - :param assignment_date: Gets or sets the date the license was assigned - :type assignment_date: datetime - :param assignment_source: Assignment Source - :type assignment_source: object - :param last_accessed_date: Gets or sets the date of the user last sign-in to this account - :type last_accessed_date: datetime - :param license: - :type license: :class:`License ` - :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` - :param status: The status of the user in the account - :type status: object - :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` - :param user_id: Gets the id of the user to which the license belongs - :type user_id: str - """ - - _attribute_map = { - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, - 'license': {'key': 'license', 'type': 'License'}, - 'rights': {'key': 'rights', 'type': 'AccountRights'}, - 'status': {'key': 'status', 'type': 'object'}, - 'user': {'key': 'user', 'type': 'IdentityRef'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, rights=None, status=None, user=None, user_id=None): - super(AccountEntitlement, self).__init__() - self.account_id = account_id - self.assignment_date = assignment_date - self.assignment_source = assignment_source - self.last_accessed_date = last_accessed_date - self.license = license - self.rights = rights - self.status = status - self.user = user - self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py b/vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py deleted file mode 100644 index e2708836..00000000 --- a/vsts/vsts/licensing/v4_0/models/account_entitlement_update_model.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountEntitlementUpdateModel(Model): - """AccountEntitlementUpdateModel. - - :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` - """ - - _attribute_map = { - 'license': {'key': 'license', 'type': 'License'} - } - - def __init__(self, license=None): - super(AccountEntitlementUpdateModel, self).__init__() - self.license = license diff --git a/vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py b/vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py deleted file mode 100644 index 2f33edca..00000000 --- a/vsts/vsts/licensing/v4_0/models/account_license_extension_usage.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountLicenseExtensionUsage(Model): - """AccountLicenseExtensionUsage. - - :param extension_id: - :type extension_id: str - :param extension_name: - :type extension_name: str - :param included_quantity: - :type included_quantity: int - :param is_trial: - :type is_trial: bool - :param minimum_license_required: - :type minimum_license_required: object - :param msdn_used_count: - :type msdn_used_count: int - :param provisioned_count: - :type provisioned_count: int - :param remaining_trial_days: - :type remaining_trial_days: int - :param trial_expiry_date: - :type trial_expiry_date: datetime - :param used_count: - :type used_count: int - """ - - _attribute_map = { - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, - 'is_trial': {'key': 'isTrial', 'type': 'bool'}, - 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, - 'msdn_used_count': {'key': 'msdnUsedCount', 'type': 'int'}, - 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, - 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, - 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'}, - 'used_count': {'key': 'usedCount', 'type': 'int'} - } - - def __init__(self, extension_id=None, extension_name=None, included_quantity=None, is_trial=None, minimum_license_required=None, msdn_used_count=None, provisioned_count=None, remaining_trial_days=None, trial_expiry_date=None, used_count=None): - super(AccountLicenseExtensionUsage, self).__init__() - self.extension_id = extension_id - self.extension_name = extension_name - self.included_quantity = included_quantity - self.is_trial = is_trial - self.minimum_license_required = minimum_license_required - self.msdn_used_count = msdn_used_count - self.provisioned_count = provisioned_count - self.remaining_trial_days = remaining_trial_days - self.trial_expiry_date = trial_expiry_date - self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_0/models/account_license_usage.py b/vsts/vsts/licensing/v4_0/models/account_license_usage.py deleted file mode 100644 index 4fa792ae..00000000 --- a/vsts/vsts/licensing/v4_0/models/account_license_usage.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountLicenseUsage(Model): - """AccountLicenseUsage. - - :param license: - :type license: :class:`AccountUserLicense ` - :param provisioned_count: - :type provisioned_count: int - :param used_count: - :type used_count: int - """ - - _attribute_map = { - 'license': {'key': 'license', 'type': 'AccountUserLicense'}, - 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, - 'used_count': {'key': 'usedCount', 'type': 'int'} - } - - def __init__(self, license=None, provisioned_count=None, used_count=None): - super(AccountLicenseUsage, self).__init__() - self.license = license - self.provisioned_count = provisioned_count - self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_0/models/account_rights.py b/vsts/vsts/licensing/v4_0/models/account_rights.py deleted file mode 100644 index 2906e32b..00000000 --- a/vsts/vsts/licensing/v4_0/models/account_rights.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountRights(Model): - """AccountRights. - - :param level: - :type level: object - :param reason: - :type reason: str - """ - - _attribute_map = { - 'level': {'key': 'level', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'str'} - } - - def __init__(self, level=None, reason=None): - super(AccountRights, self).__init__() - self.level = level - self.reason = reason diff --git a/vsts/vsts/licensing/v4_0/models/account_user_license.py b/vsts/vsts/licensing/v4_0/models/account_user_license.py deleted file mode 100644 index d633f698..00000000 --- a/vsts/vsts/licensing/v4_0/models/account_user_license.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountUserLicense(Model): - """AccountUserLicense. - - :param license: - :type license: int - :param source: - :type source: object - """ - - _attribute_map = { - 'license': {'key': 'license', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'} - } - - def __init__(self, license=None, source=None): - super(AccountUserLicense, self).__init__() - self.license = license - self.source = source diff --git a/vsts/vsts/licensing/v4_0/models/client_rights_container.py b/vsts/vsts/licensing/v4_0/models/client_rights_container.py deleted file mode 100644 index 1df6e821..00000000 --- a/vsts/vsts/licensing/v4_0/models/client_rights_container.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ClientRightsContainer(Model): - """ClientRightsContainer. - - :param certificate_bytes: - :type certificate_bytes: str - :param token: - :type token: str - """ - - _attribute_map = { - 'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'} - } - - def __init__(self, certificate_bytes=None, token=None): - super(ClientRightsContainer, self).__init__() - self.certificate_bytes = certificate_bytes - self.token = token diff --git a/vsts/vsts/licensing/v4_0/models/extension_assignment.py b/vsts/vsts/licensing/v4_0/models/extension_assignment.py deleted file mode 100644 index 708b77bb..00000000 --- a/vsts/vsts/licensing/v4_0/models/extension_assignment.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAssignment(Model): - """ExtensionAssignment. - - :param extension_gallery_id: Gets or sets the extension ID to assign. - :type extension_gallery_id: str - :param is_auto_assignment: Set to true if this a auto assignment scenario. - :type is_auto_assignment: bool - :param licensing_source: Gets or sets the licensing source. - :type licensing_source: object - :param user_ids: Gets or sets the user IDs to assign the extension to. - :type user_ids: list of str - """ - - _attribute_map = { - 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, - 'is_auto_assignment': {'key': 'isAutoAssignment', 'type': 'bool'}, - 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, - 'user_ids': {'key': 'userIds', 'type': '[str]'} - } - - def __init__(self, extension_gallery_id=None, is_auto_assignment=None, licensing_source=None, user_ids=None): - super(ExtensionAssignment, self).__init__() - self.extension_gallery_id = extension_gallery_id - self.is_auto_assignment = is_auto_assignment - self.licensing_source = licensing_source - self.user_ids = user_ids diff --git a/vsts/vsts/licensing/v4_0/models/extension_assignment_details.py b/vsts/vsts/licensing/v4_0/models/extension_assignment_details.py deleted file mode 100644 index 2ce0a970..00000000 --- a/vsts/vsts/licensing/v4_0/models/extension_assignment_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAssignmentDetails(Model): - """ExtensionAssignmentDetails. - - :param assignment_status: - :type assignment_status: object - :param source_collection_name: - :type source_collection_name: str - """ - - _attribute_map = { - 'assignment_status': {'key': 'assignmentStatus', 'type': 'object'}, - 'source_collection_name': {'key': 'sourceCollectionName', 'type': 'str'} - } - - def __init__(self, assignment_status=None, source_collection_name=None): - super(ExtensionAssignmentDetails, self).__init__() - self.assignment_status = assignment_status - self.source_collection_name = source_collection_name diff --git a/vsts/vsts/licensing/v4_0/models/extension_license_data.py b/vsts/vsts/licensing/v4_0/models/extension_license_data.py deleted file mode 100644 index 0e088a4f..00000000 --- a/vsts/vsts/licensing/v4_0/models/extension_license_data.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionLicenseData(Model): - """ExtensionLicenseData. - - :param created_date: - :type created_date: datetime - :param extension_id: - :type extension_id: str - :param is_free: - :type is_free: bool - :param minimum_required_access_level: - :type minimum_required_access_level: object - :param updated_date: - :type updated_date: datetime - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'is_free': {'key': 'isFree', 'type': 'bool'}, - 'minimum_required_access_level': {'key': 'minimumRequiredAccessLevel', 'type': 'object'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, created_date=None, extension_id=None, is_free=None, minimum_required_access_level=None, updated_date=None): - super(ExtensionLicenseData, self).__init__() - self.created_date = created_date - self.extension_id = extension_id - self.is_free = is_free - self.minimum_required_access_level = minimum_required_access_level - self.updated_date = updated_date diff --git a/vsts/vsts/licensing/v4_0/models/extension_operation_result.py b/vsts/vsts/licensing/v4_0/models/extension_operation_result.py deleted file mode 100644 index e04aa817..00000000 --- a/vsts/vsts/licensing/v4_0/models/extension_operation_result.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionOperationResult(Model): - """ExtensionOperationResult. - - :param account_id: - :type account_id: str - :param extension_id: - :type extension_id: str - :param message: - :type message: str - :param operation: - :type operation: object - :param result: - :type result: object - :param user_id: - :type user_id: str - """ - - _attribute_map = { - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'result': {'key': 'result', 'type': 'object'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, account_id=None, extension_id=None, message=None, operation=None, result=None, user_id=None): - super(ExtensionOperationResult, self).__init__() - self.account_id = account_id - self.extension_id = extension_id - self.message = message - self.operation = operation - self.result = result - self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_0/models/extension_rights_result.py b/vsts/vsts/licensing/v4_0/models/extension_rights_result.py deleted file mode 100644 index 185249fe..00000000 --- a/vsts/vsts/licensing/v4_0/models/extension_rights_result.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionRightsResult(Model): - """ExtensionRightsResult. - - :param entitled_extensions: - :type entitled_extensions: list of str - :param host_id: - :type host_id: str - :param reason: - :type reason: str - :param reason_code: - :type reason_code: object - :param result_code: - :type result_code: object - """ - - _attribute_map = { - 'entitled_extensions': {'key': 'entitledExtensions', 'type': '[str]'}, - 'host_id': {'key': 'hostId', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'reason_code': {'key': 'reasonCode', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'object'} - } - - def __init__(self, entitled_extensions=None, host_id=None, reason=None, reason_code=None, result_code=None): - super(ExtensionRightsResult, self).__init__() - self.entitled_extensions = entitled_extensions - self.host_id = host_id - self.reason = reason - self.reason_code = reason_code - self.result_code = result_code diff --git a/vsts/vsts/licensing/v4_0/models/extension_source.py b/vsts/vsts/licensing/v4_0/models/extension_source.py deleted file mode 100644 index 6a1409e5..00000000 --- a/vsts/vsts/licensing/v4_0/models/extension_source.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionSource(Model): - """ExtensionSource. - - :param assignment_source: Assignment Source - :type assignment_source: object - :param extension_gallery_id: extension Identifier - :type extension_gallery_id: str - :param licensing_source: The licensing source of the extension. Account, Msdn, ect. - :type licensing_source: object - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, - 'licensing_source': {'key': 'licensingSource', 'type': 'object'} - } - - def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_source=None): - super(ExtensionSource, self).__init__() - self.assignment_source = assignment_source - self.extension_gallery_id = extension_gallery_id - self.licensing_source = licensing_source diff --git a/vsts/vsts/licensing/v4_0/models/iUsage_right.py b/vsts/vsts/licensing/v4_0/models/iUsage_right.py deleted file mode 100644 index d35c93c7..00000000 --- a/vsts/vsts/licensing/v4_0/models/iUsage_right.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IUsageRight(Model): - """IUsageRight. - - :param attributes: Rights data - :type attributes: dict - :param expiration_date: Rights expiration - :type expiration_date: datetime - :param name: Name, uniquely identifying a usage right - :type name: str - :param version: Version - :type version: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, attributes=None, expiration_date=None, name=None, version=None): - super(IUsageRight, self).__init__() - self.attributes = attributes - self.expiration_date = expiration_date - self.name = name - self.version = version diff --git a/vsts/vsts/licensing/v4_0/models/identity_ref.py b/vsts/vsts/licensing/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/licensing/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/licensing/v4_0/models/license.py b/vsts/vsts/licensing/v4_0/models/license.py deleted file mode 100644 index 6e381f36..00000000 --- a/vsts/vsts/licensing/v4_0/models/license.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class License(Model): - """License. - - :param source: Gets the source of the license - :type source: object - """ - - _attribute_map = { - 'source': {'key': 'source', 'type': 'object'} - } - - def __init__(self, source=None): - super(License, self).__init__() - self.source = source diff --git a/vsts/vsts/licensing/v4_0/models/msdn_entitlement.py b/vsts/vsts/licensing/v4_0/models/msdn_entitlement.py deleted file mode 100644 index 3fee52a8..00000000 --- a/vsts/vsts/licensing/v4_0/models/msdn_entitlement.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MsdnEntitlement(Model): - """MsdnEntitlement. - - :param entitlement_code: Entilement id assigned to Entitlement in Benefits Database. - :type entitlement_code: str - :param entitlement_name: Entitlement Name e.g. Downloads, Chat. - :type entitlement_name: str - :param entitlement_type: Type of Entitlement e.g. Downloads, Chat. - :type entitlement_type: str - :param is_activated: Entitlement activation status - :type is_activated: bool - :param is_entitlement_available: Entitlement availability - :type is_entitlement_available: bool - :param subscription_channel: Write MSDN Channel into CRCT (Retail,MPN,VL,BizSpark,DreamSpark,MCT,FTE,Technet,WebsiteSpark,Other) - :type subscription_channel: str - :param subscription_expiration_date: Subscription Expiration Date. - :type subscription_expiration_date: datetime - :param subscription_id: Subscription id which identifies the subscription itself. This is the Benefit Detail Guid from BMS. - :type subscription_id: str - :param subscription_level_code: Identifier of the subscription or benefit level. - :type subscription_level_code: str - :param subscription_level_name: Name of subscription level. - :type subscription_level_name: str - :param subscription_status: Subscription Status Code (ACT, PND, INA ...). - :type subscription_status: str - """ - - _attribute_map = { - 'entitlement_code': {'key': 'entitlementCode', 'type': 'str'}, - 'entitlement_name': {'key': 'entitlementName', 'type': 'str'}, - 'entitlement_type': {'key': 'entitlementType', 'type': 'str'}, - 'is_activated': {'key': 'isActivated', 'type': 'bool'}, - 'is_entitlement_available': {'key': 'isEntitlementAvailable', 'type': 'bool'}, - 'subscription_channel': {'key': 'subscriptionChannel', 'type': 'str'}, - 'subscription_expiration_date': {'key': 'subscriptionExpirationDate', 'type': 'iso-8601'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'subscription_level_code': {'key': 'subscriptionLevelCode', 'type': 'str'}, - 'subscription_level_name': {'key': 'subscriptionLevelName', 'type': 'str'}, - 'subscription_status': {'key': 'subscriptionStatus', 'type': 'str'} - } - - def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_type=None, is_activated=None, is_entitlement_available=None, subscription_channel=None, subscription_expiration_date=None, subscription_id=None, subscription_level_code=None, subscription_level_name=None, subscription_status=None): - super(MsdnEntitlement, self).__init__() - self.entitlement_code = entitlement_code - self.entitlement_name = entitlement_name - self.entitlement_type = entitlement_type - self.is_activated = is_activated - self.is_entitlement_available = is_entitlement_available - self.subscription_channel = subscription_channel - self.subscription_expiration_date = subscription_expiration_date - self.subscription_id = subscription_id - self.subscription_level_code = subscription_level_code - self.subscription_level_name = subscription_level_name - self.subscription_status = subscription_status diff --git a/vsts/vsts/licensing/v4_1/__init__.py b/vsts/vsts/licensing/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/licensing/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/licensing/v4_1/models/__init__.py b/vsts/vsts/licensing/v4_1/models/__init__.py deleted file mode 100644 index fcbb5647..00000000 --- a/vsts/vsts/licensing/v4_1/models/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .account_entitlement import AccountEntitlement -from .account_entitlement_update_model import AccountEntitlementUpdateModel -from .account_license_extension_usage import AccountLicenseExtensionUsage -from .account_license_usage import AccountLicenseUsage -from .account_rights import AccountRights -from .account_user_license import AccountUserLicense -from .client_rights_container import ClientRightsContainer -from .extension_assignment import ExtensionAssignment -from .extension_assignment_details import ExtensionAssignmentDetails -from .extension_license_data import ExtensionLicenseData -from .extension_operation_result import ExtensionOperationResult -from .extension_rights_result import ExtensionRightsResult -from .extension_source import ExtensionSource -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .license import License -from .msdn_entitlement import MsdnEntitlement -from .reference_links import ReferenceLinks - -__all__ = [ - 'AccountEntitlement', - 'AccountEntitlementUpdateModel', - 'AccountLicenseExtensionUsage', - 'AccountLicenseUsage', - 'AccountRights', - 'AccountUserLicense', - 'ClientRightsContainer', - 'ExtensionAssignment', - 'ExtensionAssignmentDetails', - 'ExtensionLicenseData', - 'ExtensionOperationResult', - 'ExtensionRightsResult', - 'ExtensionSource', - 'GraphSubjectBase', - 'IdentityRef', - 'License', - 'MsdnEntitlement', - 'ReferenceLinks', -] diff --git a/vsts/vsts/licensing/v4_1/models/account_entitlement.py b/vsts/vsts/licensing/v4_1/models/account_entitlement.py deleted file mode 100644 index f66f89da..00000000 --- a/vsts/vsts/licensing/v4_1/models/account_entitlement.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountEntitlement(Model): - """AccountEntitlement. - - :param account_id: Gets or sets the id of the account to which the license belongs - :type account_id: str - :param assignment_date: Gets or sets the date the license was assigned - :type assignment_date: datetime - :param assignment_source: Assignment Source - :type assignment_source: object - :param last_accessed_date: Gets or sets the date of the user last sign-in to this account - :type last_accessed_date: datetime - :param license: - :type license: :class:`License ` - :param origin: Licensing origin - :type origin: object - :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` - :param status: The status of the user in the account - :type status: object - :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` - :param user_id: Gets the id of the user to which the license belongs - :type user_id: str - """ - - _attribute_map = { - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, - 'license': {'key': 'license', 'type': 'License'}, - 'origin': {'key': 'origin', 'type': 'object'}, - 'rights': {'key': 'rights', 'type': 'AccountRights'}, - 'status': {'key': 'status', 'type': 'object'}, - 'user': {'key': 'user', 'type': 'IdentityRef'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, origin=None, rights=None, status=None, user=None, user_id=None): - super(AccountEntitlement, self).__init__() - self.account_id = account_id - self.assignment_date = assignment_date - self.assignment_source = assignment_source - self.last_accessed_date = last_accessed_date - self.license = license - self.origin = origin - self.rights = rights - self.status = status - self.user = user - self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py b/vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py deleted file mode 100644 index f3848f5a..00000000 --- a/vsts/vsts/licensing/v4_1/models/account_entitlement_update_model.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountEntitlementUpdateModel(Model): - """AccountEntitlementUpdateModel. - - :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` - """ - - _attribute_map = { - 'license': {'key': 'license', 'type': 'License'} - } - - def __init__(self, license=None): - super(AccountEntitlementUpdateModel, self).__init__() - self.license = license diff --git a/vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py b/vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py deleted file mode 100644 index 2f33edca..00000000 --- a/vsts/vsts/licensing/v4_1/models/account_license_extension_usage.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountLicenseExtensionUsage(Model): - """AccountLicenseExtensionUsage. - - :param extension_id: - :type extension_id: str - :param extension_name: - :type extension_name: str - :param included_quantity: - :type included_quantity: int - :param is_trial: - :type is_trial: bool - :param minimum_license_required: - :type minimum_license_required: object - :param msdn_used_count: - :type msdn_used_count: int - :param provisioned_count: - :type provisioned_count: int - :param remaining_trial_days: - :type remaining_trial_days: int - :param trial_expiry_date: - :type trial_expiry_date: datetime - :param used_count: - :type used_count: int - """ - - _attribute_map = { - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, - 'is_trial': {'key': 'isTrial', 'type': 'bool'}, - 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, - 'msdn_used_count': {'key': 'msdnUsedCount', 'type': 'int'}, - 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, - 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, - 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'}, - 'used_count': {'key': 'usedCount', 'type': 'int'} - } - - def __init__(self, extension_id=None, extension_name=None, included_quantity=None, is_trial=None, minimum_license_required=None, msdn_used_count=None, provisioned_count=None, remaining_trial_days=None, trial_expiry_date=None, used_count=None): - super(AccountLicenseExtensionUsage, self).__init__() - self.extension_id = extension_id - self.extension_name = extension_name - self.included_quantity = included_quantity - self.is_trial = is_trial - self.minimum_license_required = minimum_license_required - self.msdn_used_count = msdn_used_count - self.provisioned_count = provisioned_count - self.remaining_trial_days = remaining_trial_days - self.trial_expiry_date = trial_expiry_date - self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_1/models/account_license_usage.py b/vsts/vsts/licensing/v4_1/models/account_license_usage.py deleted file mode 100644 index ec797e7e..00000000 --- a/vsts/vsts/licensing/v4_1/models/account_license_usage.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountLicenseUsage(Model): - """AccountLicenseUsage. - - :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) - :type disabled_count: int - :param license: - :type license: :class:`AccountUserLicense ` - :param pending_provisioned_count: Amount that will be purchased in the next billing cycle - :type pending_provisioned_count: int - :param provisioned_count: Amount that has been purchased - :type provisioned_count: int - :param used_count: Amount currently being used. - :type used_count: int - """ - - _attribute_map = { - 'disabled_count': {'key': 'disabledCount', 'type': 'int'}, - 'license': {'key': 'license', 'type': 'AccountUserLicense'}, - 'pending_provisioned_count': {'key': 'pendingProvisionedCount', 'type': 'int'}, - 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, - 'used_count': {'key': 'usedCount', 'type': 'int'} - } - - def __init__(self, disabled_count=None, license=None, pending_provisioned_count=None, provisioned_count=None, used_count=None): - super(AccountLicenseUsage, self).__init__() - self.disabled_count = disabled_count - self.license = license - self.pending_provisioned_count = pending_provisioned_count - self.provisioned_count = provisioned_count - self.used_count = used_count diff --git a/vsts/vsts/licensing/v4_1/models/account_rights.py b/vsts/vsts/licensing/v4_1/models/account_rights.py deleted file mode 100644 index 2906e32b..00000000 --- a/vsts/vsts/licensing/v4_1/models/account_rights.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountRights(Model): - """AccountRights. - - :param level: - :type level: object - :param reason: - :type reason: str - """ - - _attribute_map = { - 'level': {'key': 'level', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'str'} - } - - def __init__(self, level=None, reason=None): - super(AccountRights, self).__init__() - self.level = level - self.reason = reason diff --git a/vsts/vsts/licensing/v4_1/models/account_user_license.py b/vsts/vsts/licensing/v4_1/models/account_user_license.py deleted file mode 100644 index d633f698..00000000 --- a/vsts/vsts/licensing/v4_1/models/account_user_license.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountUserLicense(Model): - """AccountUserLicense. - - :param license: - :type license: int - :param source: - :type source: object - """ - - _attribute_map = { - 'license': {'key': 'license', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'} - } - - def __init__(self, license=None, source=None): - super(AccountUserLicense, self).__init__() - self.license = license - self.source = source diff --git a/vsts/vsts/licensing/v4_1/models/client_rights_container.py b/vsts/vsts/licensing/v4_1/models/client_rights_container.py deleted file mode 100644 index 1df6e821..00000000 --- a/vsts/vsts/licensing/v4_1/models/client_rights_container.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ClientRightsContainer(Model): - """ClientRightsContainer. - - :param certificate_bytes: - :type certificate_bytes: str - :param token: - :type token: str - """ - - _attribute_map = { - 'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'} - } - - def __init__(self, certificate_bytes=None, token=None): - super(ClientRightsContainer, self).__init__() - self.certificate_bytes = certificate_bytes - self.token = token diff --git a/vsts/vsts/licensing/v4_1/models/extension_assignment.py b/vsts/vsts/licensing/v4_1/models/extension_assignment.py deleted file mode 100644 index 708b77bb..00000000 --- a/vsts/vsts/licensing/v4_1/models/extension_assignment.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAssignment(Model): - """ExtensionAssignment. - - :param extension_gallery_id: Gets or sets the extension ID to assign. - :type extension_gallery_id: str - :param is_auto_assignment: Set to true if this a auto assignment scenario. - :type is_auto_assignment: bool - :param licensing_source: Gets or sets the licensing source. - :type licensing_source: object - :param user_ids: Gets or sets the user IDs to assign the extension to. - :type user_ids: list of str - """ - - _attribute_map = { - 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, - 'is_auto_assignment': {'key': 'isAutoAssignment', 'type': 'bool'}, - 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, - 'user_ids': {'key': 'userIds', 'type': '[str]'} - } - - def __init__(self, extension_gallery_id=None, is_auto_assignment=None, licensing_source=None, user_ids=None): - super(ExtensionAssignment, self).__init__() - self.extension_gallery_id = extension_gallery_id - self.is_auto_assignment = is_auto_assignment - self.licensing_source = licensing_source - self.user_ids = user_ids diff --git a/vsts/vsts/licensing/v4_1/models/extension_assignment_details.py b/vsts/vsts/licensing/v4_1/models/extension_assignment_details.py deleted file mode 100644 index 2ce0a970..00000000 --- a/vsts/vsts/licensing/v4_1/models/extension_assignment_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionAssignmentDetails(Model): - """ExtensionAssignmentDetails. - - :param assignment_status: - :type assignment_status: object - :param source_collection_name: - :type source_collection_name: str - """ - - _attribute_map = { - 'assignment_status': {'key': 'assignmentStatus', 'type': 'object'}, - 'source_collection_name': {'key': 'sourceCollectionName', 'type': 'str'} - } - - def __init__(self, assignment_status=None, source_collection_name=None): - super(ExtensionAssignmentDetails, self).__init__() - self.assignment_status = assignment_status - self.source_collection_name = source_collection_name diff --git a/vsts/vsts/licensing/v4_1/models/extension_license_data.py b/vsts/vsts/licensing/v4_1/models/extension_license_data.py deleted file mode 100644 index 0e088a4f..00000000 --- a/vsts/vsts/licensing/v4_1/models/extension_license_data.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionLicenseData(Model): - """ExtensionLicenseData. - - :param created_date: - :type created_date: datetime - :param extension_id: - :type extension_id: str - :param is_free: - :type is_free: bool - :param minimum_required_access_level: - :type minimum_required_access_level: object - :param updated_date: - :type updated_date: datetime - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'is_free': {'key': 'isFree', 'type': 'bool'}, - 'minimum_required_access_level': {'key': 'minimumRequiredAccessLevel', 'type': 'object'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, created_date=None, extension_id=None, is_free=None, minimum_required_access_level=None, updated_date=None): - super(ExtensionLicenseData, self).__init__() - self.created_date = created_date - self.extension_id = extension_id - self.is_free = is_free - self.minimum_required_access_level = minimum_required_access_level - self.updated_date = updated_date diff --git a/vsts/vsts/licensing/v4_1/models/extension_operation_result.py b/vsts/vsts/licensing/v4_1/models/extension_operation_result.py deleted file mode 100644 index e04aa817..00000000 --- a/vsts/vsts/licensing/v4_1/models/extension_operation_result.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionOperationResult(Model): - """ExtensionOperationResult. - - :param account_id: - :type account_id: str - :param extension_id: - :type extension_id: str - :param message: - :type message: str - :param operation: - :type operation: object - :param result: - :type result: object - :param user_id: - :type user_id: str - """ - - _attribute_map = { - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'result': {'key': 'result', 'type': 'object'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, account_id=None, extension_id=None, message=None, operation=None, result=None, user_id=None): - super(ExtensionOperationResult, self).__init__() - self.account_id = account_id - self.extension_id = extension_id - self.message = message - self.operation = operation - self.result = result - self.user_id = user_id diff --git a/vsts/vsts/licensing/v4_1/models/extension_rights_result.py b/vsts/vsts/licensing/v4_1/models/extension_rights_result.py deleted file mode 100644 index 185249fe..00000000 --- a/vsts/vsts/licensing/v4_1/models/extension_rights_result.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionRightsResult(Model): - """ExtensionRightsResult. - - :param entitled_extensions: - :type entitled_extensions: list of str - :param host_id: - :type host_id: str - :param reason: - :type reason: str - :param reason_code: - :type reason_code: object - :param result_code: - :type result_code: object - """ - - _attribute_map = { - 'entitled_extensions': {'key': 'entitledExtensions', 'type': '[str]'}, - 'host_id': {'key': 'hostId', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'reason_code': {'key': 'reasonCode', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'object'} - } - - def __init__(self, entitled_extensions=None, host_id=None, reason=None, reason_code=None, result_code=None): - super(ExtensionRightsResult, self).__init__() - self.entitled_extensions = entitled_extensions - self.host_id = host_id - self.reason = reason - self.reason_code = reason_code - self.result_code = result_code diff --git a/vsts/vsts/licensing/v4_1/models/extension_source.py b/vsts/vsts/licensing/v4_1/models/extension_source.py deleted file mode 100644 index 6a1409e5..00000000 --- a/vsts/vsts/licensing/v4_1/models/extension_source.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExtensionSource(Model): - """ExtensionSource. - - :param assignment_source: Assignment Source - :type assignment_source: object - :param extension_gallery_id: extension Identifier - :type extension_gallery_id: str - :param licensing_source: The licensing source of the extension. Account, Msdn, ect. - :type licensing_source: object - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'}, - 'licensing_source': {'key': 'licensingSource', 'type': 'object'} - } - - def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_source=None): - super(ExtensionSource, self).__init__() - self.assignment_source = assignment_source - self.extension_gallery_id = extension_gallery_id - self.licensing_source = licensing_source diff --git a/vsts/vsts/licensing/v4_1/models/graph_subject_base.py b/vsts/vsts/licensing/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/licensing/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/licensing/v4_1/models/identity_ref.py b/vsts/vsts/licensing/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/licensing/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/licensing/v4_1/models/license.py b/vsts/vsts/licensing/v4_1/models/license.py deleted file mode 100644 index 6e381f36..00000000 --- a/vsts/vsts/licensing/v4_1/models/license.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class License(Model): - """License. - - :param source: Gets the source of the license - :type source: object - """ - - _attribute_map = { - 'source': {'key': 'source', 'type': 'object'} - } - - def __init__(self, source=None): - super(License, self).__init__() - self.source = source diff --git a/vsts/vsts/licensing/v4_1/models/msdn_entitlement.py b/vsts/vsts/licensing/v4_1/models/msdn_entitlement.py deleted file mode 100644 index 3fee52a8..00000000 --- a/vsts/vsts/licensing/v4_1/models/msdn_entitlement.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MsdnEntitlement(Model): - """MsdnEntitlement. - - :param entitlement_code: Entilement id assigned to Entitlement in Benefits Database. - :type entitlement_code: str - :param entitlement_name: Entitlement Name e.g. Downloads, Chat. - :type entitlement_name: str - :param entitlement_type: Type of Entitlement e.g. Downloads, Chat. - :type entitlement_type: str - :param is_activated: Entitlement activation status - :type is_activated: bool - :param is_entitlement_available: Entitlement availability - :type is_entitlement_available: bool - :param subscription_channel: Write MSDN Channel into CRCT (Retail,MPN,VL,BizSpark,DreamSpark,MCT,FTE,Technet,WebsiteSpark,Other) - :type subscription_channel: str - :param subscription_expiration_date: Subscription Expiration Date. - :type subscription_expiration_date: datetime - :param subscription_id: Subscription id which identifies the subscription itself. This is the Benefit Detail Guid from BMS. - :type subscription_id: str - :param subscription_level_code: Identifier of the subscription or benefit level. - :type subscription_level_code: str - :param subscription_level_name: Name of subscription level. - :type subscription_level_name: str - :param subscription_status: Subscription Status Code (ACT, PND, INA ...). - :type subscription_status: str - """ - - _attribute_map = { - 'entitlement_code': {'key': 'entitlementCode', 'type': 'str'}, - 'entitlement_name': {'key': 'entitlementName', 'type': 'str'}, - 'entitlement_type': {'key': 'entitlementType', 'type': 'str'}, - 'is_activated': {'key': 'isActivated', 'type': 'bool'}, - 'is_entitlement_available': {'key': 'isEntitlementAvailable', 'type': 'bool'}, - 'subscription_channel': {'key': 'subscriptionChannel', 'type': 'str'}, - 'subscription_expiration_date': {'key': 'subscriptionExpirationDate', 'type': 'iso-8601'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'subscription_level_code': {'key': 'subscriptionLevelCode', 'type': 'str'}, - 'subscription_level_name': {'key': 'subscriptionLevelName', 'type': 'str'}, - 'subscription_status': {'key': 'subscriptionStatus', 'type': 'str'} - } - - def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_type=None, is_activated=None, is_entitlement_available=None, subscription_channel=None, subscription_expiration_date=None, subscription_id=None, subscription_level_code=None, subscription_level_name=None, subscription_status=None): - super(MsdnEntitlement, self).__init__() - self.entitlement_code = entitlement_code - self.entitlement_name = entitlement_name - self.entitlement_type = entitlement_type - self.is_activated = is_activated - self.is_entitlement_available = is_entitlement_available - self.subscription_channel = subscription_channel - self.subscription_expiration_date = subscription_expiration_date - self.subscription_id = subscription_id - self.subscription_level_code = subscription_level_code - self.subscription_level_name = subscription_level_name - self.subscription_status = subscription_status diff --git a/vsts/vsts/licensing/v4_1/models/reference_links.py b/vsts/vsts/licensing/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/licensing/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/location/__init__.py b/vsts/vsts/location/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/location/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/location/v4_0/__init__.py b/vsts/vsts/location/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/location/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/location/v4_0/models/__init__.py b/vsts/vsts/location/v4_0/models/__init__.py deleted file mode 100644 index dbde91d7..00000000 --- a/vsts/vsts/location/v4_0/models/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_mapping import AccessMapping -from .connection_data import ConnectionData -from .identity import Identity -from .location_mapping import LocationMapping -from .location_service_data import LocationServiceData -from .resource_area_info import ResourceAreaInfo -from .service_definition import ServiceDefinition - -__all__ = [ - 'AccessMapping', - 'ConnectionData', - 'Identity', - 'LocationMapping', - 'LocationServiceData', - 'ResourceAreaInfo', - 'ServiceDefinition', -] diff --git a/vsts/vsts/location/v4_0/models/access_mapping.py b/vsts/vsts/location/v4_0/models/access_mapping.py deleted file mode 100644 index 7734bec7..00000000 --- a/vsts/vsts/location/v4_0/models/access_mapping.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessMapping(Model): - """AccessMapping. - - :param access_point: - :type access_point: str - :param display_name: - :type display_name: str - :param moniker: - :type moniker: str - :param service_owner: The service which owns this access mapping e.g. TFS, ELS, etc. - :type service_owner: str - :param virtual_directory: Part of the access mapping which applies context after the access point of the server. - :type virtual_directory: str - """ - - _attribute_map = { - 'access_point': {'key': 'accessPoint', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'moniker': {'key': 'moniker', 'type': 'str'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, - 'virtual_directory': {'key': 'virtualDirectory', 'type': 'str'} - } - - def __init__(self, access_point=None, display_name=None, moniker=None, service_owner=None, virtual_directory=None): - super(AccessMapping, self).__init__() - self.access_point = access_point - self.display_name = display_name - self.moniker = moniker - self.service_owner = service_owner - self.virtual_directory = virtual_directory diff --git a/vsts/vsts/location/v4_0/models/connection_data.py b/vsts/vsts/location/v4_0/models/connection_data.py deleted file mode 100644 index 85d70a0b..00000000 --- a/vsts/vsts/location/v4_0/models/connection_data.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ConnectionData(Model): - """ConnectionData. - - :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` - :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` - :param deployment_id: The id for the server. - :type deployment_id: str - :param instance_id: The instance id for this host. - :type instance_id: str - :param last_user_access: The last user access for this instance. Null if not requested specifically. - :type last_user_access: datetime - :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` - :param web_application_relative_directory: The virtual directory of the host we are talking to. - :type web_application_relative_directory: str - """ - - _attribute_map = { - 'authenticated_user': {'key': 'authenticatedUser', 'type': 'Identity'}, - 'authorized_user': {'key': 'authorizedUser', 'type': 'Identity'}, - 'deployment_id': {'key': 'deploymentId', 'type': 'str'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - 'last_user_access': {'key': 'lastUserAccess', 'type': 'iso-8601'}, - 'location_service_data': {'key': 'locationServiceData', 'type': 'LocationServiceData'}, - 'web_application_relative_directory': {'key': 'webApplicationRelativeDirectory', 'type': 'str'} - } - - def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): - super(ConnectionData, self).__init__() - self.authenticated_user = authenticated_user - self.authorized_user = authorized_user - self.deployment_id = deployment_id - self.instance_id = instance_id - self.last_user_access = last_user_access - self.location_service_data = location_service_data - self.web_application_relative_directory = web_application_relative_directory diff --git a/vsts/vsts/location/v4_0/models/identity.py b/vsts/vsts/location/v4_0/models/identity.py deleted file mode 100644 index 36327d2b..00000000 --- a/vsts/vsts/location/v4_0/models/identity.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Identity(Model): - """Identity. - - :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - :type custom_display_name: str - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_container: - :type is_container: bool - :param master_id: - :type master_id: str - :param member_ids: - :type member_ids: list of str - :param member_of: - :type member_of: list of :class:`str ` - :param members: - :type members: list of :class:`str ` - :param meta_type_id: - :type meta_type_id: int - :param properties: - :type properties: :class:`object ` - :param provider_display_name: The display name for the identity as specified by the source identity provider. - :type provider_display_name: str - :param resource_version: - :type resource_version: int - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - :param unique_user_id: - :type unique_user_id: int - """ - - _attribute_map = { - 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'master_id': {'key': 'masterId', 'type': 'str'}, - 'member_ids': {'key': 'memberIds', 'type': '[str]'}, - 'member_of': {'key': 'memberOf', 'type': '[str]'}, - 'members': {'key': 'members', 'type': '[str]'}, - 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} - } - - def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__() - self.custom_display_name = custom_display_name - self.descriptor = descriptor - self.id = id - self.is_active = is_active - self.is_container = is_container - self.master_id = master_id - self.member_ids = member_ids - self.member_of = member_of - self.members = members - self.meta_type_id = meta_type_id - self.properties = properties - self.provider_display_name = provider_display_name - self.resource_version = resource_version - self.subject_descriptor = subject_descriptor - self.unique_user_id = unique_user_id diff --git a/vsts/vsts/location/v4_0/models/location_mapping.py b/vsts/vsts/location/v4_0/models/location_mapping.py deleted file mode 100644 index 945f49dd..00000000 --- a/vsts/vsts/location/v4_0/models/location_mapping.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LocationMapping(Model): - """LocationMapping. - - :param access_mapping_moniker: - :type access_mapping_moniker: str - :param location: - :type location: str - """ - - _attribute_map = { - 'access_mapping_moniker': {'key': 'accessMappingMoniker', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'} - } - - def __init__(self, access_mapping_moniker=None, location=None): - super(LocationMapping, self).__init__() - self.access_mapping_moniker = access_mapping_moniker - self.location = location diff --git a/vsts/vsts/location/v4_0/models/location_service_data.py b/vsts/vsts/location/v4_0/models/location_service_data.py deleted file mode 100644 index 72027dd7..00000000 --- a/vsts/vsts/location/v4_0/models/location_service_data.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LocationServiceData(Model): - """LocationServiceData. - - :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` - :param client_cache_fresh: Data that the location service holds. - :type client_cache_fresh: bool - :param client_cache_time_to_live: The time to live on the location service cache. - :type client_cache_time_to_live: int - :param default_access_mapping_moniker: The default access mapping moniker for the server. - :type default_access_mapping_moniker: str - :param last_change_id: The obsolete id for the last change that took place on the server (use LastChangeId64). - :type last_change_id: int - :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. - :type last_change_id64: long - :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` - :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) - :type service_owner: str - """ - - _attribute_map = { - 'access_mappings': {'key': 'accessMappings', 'type': '[AccessMapping]'}, - 'client_cache_fresh': {'key': 'clientCacheFresh', 'type': 'bool'}, - 'client_cache_time_to_live': {'key': 'clientCacheTimeToLive', 'type': 'int'}, - 'default_access_mapping_moniker': {'key': 'defaultAccessMappingMoniker', 'type': 'str'}, - 'last_change_id': {'key': 'lastChangeId', 'type': 'int'}, - 'last_change_id64': {'key': 'lastChangeId64', 'type': 'long'}, - 'service_definitions': {'key': 'serviceDefinitions', 'type': '[ServiceDefinition]'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'} - } - - def __init__(self, access_mappings=None, client_cache_fresh=None, client_cache_time_to_live=None, default_access_mapping_moniker=None, last_change_id=None, last_change_id64=None, service_definitions=None, service_owner=None): - super(LocationServiceData, self).__init__() - self.access_mappings = access_mappings - self.client_cache_fresh = client_cache_fresh - self.client_cache_time_to_live = client_cache_time_to_live - self.default_access_mapping_moniker = default_access_mapping_moniker - self.last_change_id = last_change_id - self.last_change_id64 = last_change_id64 - self.service_definitions = service_definitions - self.service_owner = service_owner diff --git a/vsts/vsts/location/v4_0/models/resource_area_info.py b/vsts/vsts/location/v4_0/models/resource_area_info.py deleted file mode 100644 index c2816fbe..00000000 --- a/vsts/vsts/location/v4_0/models/resource_area_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceAreaInfo(Model): - """ResourceAreaInfo. - - :param id: - :type id: str - :param location_url: - :type location_url: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location_url': {'key': 'locationUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, location_url=None, name=None): - super(ResourceAreaInfo, self).__init__() - self.id = id - self.location_url = location_url - self.name = name diff --git a/vsts/vsts/location/v4_0/models/service_definition.py b/vsts/vsts/location/v4_0/models/service_definition.py deleted file mode 100644 index 8201cd26..00000000 --- a/vsts/vsts/location/v4_0/models/service_definition.py +++ /dev/null @@ -1,93 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceDefinition(Model): - """ServiceDefinition. - - :param description: - :type description: str - :param display_name: - :type display_name: str - :param identifier: - :type identifier: str - :param inherit_level: - :type inherit_level: object - :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` - :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. - :type max_version: str - :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. - :type min_version: str - :param parent_identifier: - :type parent_identifier: str - :param parent_service_type: - :type parent_service_type: str - :param properties: - :type properties: :class:`object ` - :param relative_path: - :type relative_path: str - :param relative_to_setting: - :type relative_to_setting: object - :param released_version: The latest version of this resource location that is in "Release" (non-preview) mode. Copied from ApiResourceLocation. - :type released_version: str - :param resource_version: The current resource version supported by this resource location. Copied from ApiResourceLocation. - :type resource_version: int - :param service_owner: The service which owns this definition e.g. TFS, ELS, etc. - :type service_owner: str - :param service_type: - :type service_type: str - :param status: - :type status: object - :param tool_id: - :type tool_id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'inherit_level': {'key': 'inheritLevel', 'type': 'object'}, - 'location_mappings': {'key': 'locationMappings', 'type': '[LocationMapping]'}, - 'max_version': {'key': 'maxVersion', 'type': 'str'}, - 'min_version': {'key': 'minVersion', 'type': 'str'}, - 'parent_identifier': {'key': 'parentIdentifier', 'type': 'str'}, - 'parent_service_type': {'key': 'parentServiceType', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'relative_path': {'key': 'relativePath', 'type': 'str'}, - 'relative_to_setting': {'key': 'relativeToSetting', 'type': 'object'}, - 'released_version': {'key': 'releasedVersion', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, - 'service_type': {'key': 'serviceType', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tool_id': {'key': 'toolId', 'type': 'str'} - } - - def __init__(self, description=None, display_name=None, identifier=None, inherit_level=None, location_mappings=None, max_version=None, min_version=None, parent_identifier=None, parent_service_type=None, properties=None, relative_path=None, relative_to_setting=None, released_version=None, resource_version=None, service_owner=None, service_type=None, status=None, tool_id=None): - super(ServiceDefinition, self).__init__() - self.description = description - self.display_name = display_name - self.identifier = identifier - self.inherit_level = inherit_level - self.location_mappings = location_mappings - self.max_version = max_version - self.min_version = min_version - self.parent_identifier = parent_identifier - self.parent_service_type = parent_service_type - self.properties = properties - self.relative_path = relative_path - self.relative_to_setting = relative_to_setting - self.released_version = released_version - self.resource_version = resource_version - self.service_owner = service_owner - self.service_type = service_type - self.status = status - self.tool_id = tool_id diff --git a/vsts/vsts/location/v4_1/__init__.py b/vsts/vsts/location/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/location/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/location/v4_1/models/__init__.py b/vsts/vsts/location/v4_1/models/__init__.py deleted file mode 100644 index 61ed73d1..00000000 --- a/vsts/vsts/location/v4_1/models/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_mapping import AccessMapping -from .connection_data import ConnectionData -from .identity import Identity -from .identity_base import IdentityBase -from .location_mapping import LocationMapping -from .location_service_data import LocationServiceData -from .resource_area_info import ResourceAreaInfo -from .service_definition import ServiceDefinition - -__all__ = [ - 'AccessMapping', - 'ConnectionData', - 'Identity', - 'IdentityBase', - 'LocationMapping', - 'LocationServiceData', - 'ResourceAreaInfo', - 'ServiceDefinition', -] diff --git a/vsts/vsts/location/v4_1/models/access_mapping.py b/vsts/vsts/location/v4_1/models/access_mapping.py deleted file mode 100644 index 7734bec7..00000000 --- a/vsts/vsts/location/v4_1/models/access_mapping.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessMapping(Model): - """AccessMapping. - - :param access_point: - :type access_point: str - :param display_name: - :type display_name: str - :param moniker: - :type moniker: str - :param service_owner: The service which owns this access mapping e.g. TFS, ELS, etc. - :type service_owner: str - :param virtual_directory: Part of the access mapping which applies context after the access point of the server. - :type virtual_directory: str - """ - - _attribute_map = { - 'access_point': {'key': 'accessPoint', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'moniker': {'key': 'moniker', 'type': 'str'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, - 'virtual_directory': {'key': 'virtualDirectory', 'type': 'str'} - } - - def __init__(self, access_point=None, display_name=None, moniker=None, service_owner=None, virtual_directory=None): - super(AccessMapping, self).__init__() - self.access_point = access_point - self.display_name = display_name - self.moniker = moniker - self.service_owner = service_owner - self.virtual_directory = virtual_directory diff --git a/vsts/vsts/location/v4_1/models/connection_data.py b/vsts/vsts/location/v4_1/models/connection_data.py deleted file mode 100644 index 513b677d..00000000 --- a/vsts/vsts/location/v4_1/models/connection_data.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ConnectionData(Model): - """ConnectionData. - - :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` - :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` - :param deployment_id: The id for the server. - :type deployment_id: str - :param instance_id: The instance id for this host. - :type instance_id: str - :param last_user_access: The last user access for this instance. Null if not requested specifically. - :type last_user_access: datetime - :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` - :param web_application_relative_directory: The virtual directory of the host we are talking to. - :type web_application_relative_directory: str - """ - - _attribute_map = { - 'authenticated_user': {'key': 'authenticatedUser', 'type': 'Identity'}, - 'authorized_user': {'key': 'authorizedUser', 'type': 'Identity'}, - 'deployment_id': {'key': 'deploymentId', 'type': 'str'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - 'last_user_access': {'key': 'lastUserAccess', 'type': 'iso-8601'}, - 'location_service_data': {'key': 'locationServiceData', 'type': 'LocationServiceData'}, - 'web_application_relative_directory': {'key': 'webApplicationRelativeDirectory', 'type': 'str'} - } - - def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): - super(ConnectionData, self).__init__() - self.authenticated_user = authenticated_user - self.authorized_user = authorized_user - self.deployment_id = deployment_id - self.instance_id = instance_id - self.last_user_access = last_user_access - self.location_service_data = location_service_data - self.web_application_relative_directory = web_application_relative_directory diff --git a/vsts/vsts/location/v4_1/models/identity.py b/vsts/vsts/location/v4_1/models/identity.py deleted file mode 100644 index 96628e6c..00000000 --- a/vsts/vsts/location/v4_1/models/identity.py +++ /dev/null @@ -1,66 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_base import IdentityBase - - -class Identity(IdentityBase): - """Identity. - - :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - :type custom_display_name: str - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_container: - :type is_container: bool - :param master_id: - :type master_id: str - :param member_ids: - :type member_ids: list of str - :param member_of: - :type member_of: list of :class:`str ` - :param members: - :type members: list of :class:`str ` - :param meta_type_id: - :type meta_type_id: int - :param properties: - :type properties: :class:`object ` - :param provider_display_name: The display name for the identity as specified by the source identity provider. - :type provider_display_name: str - :param resource_version: - :type resource_version: int - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - :param unique_user_id: - :type unique_user_id: int - """ - - _attribute_map = { - 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'master_id': {'key': 'masterId', 'type': 'str'}, - 'member_ids': {'key': 'memberIds', 'type': '[str]'}, - 'member_of': {'key': 'memberOf', 'type': '[str]'}, - 'members': {'key': 'members', 'type': '[str]'}, - 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, - } - - def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) diff --git a/vsts/vsts/location/v4_1/models/identity_base.py b/vsts/vsts/location/v4_1/models/identity_base.py deleted file mode 100644 index 1e601308..00000000 --- a/vsts/vsts/location/v4_1/models/identity_base.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityBase(Model): - """IdentityBase. - - :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - :type custom_display_name: str - :param descriptor: - :type descriptor: :class:`str ` - :param id: - :type id: str - :param is_active: - :type is_active: bool - :param is_container: - :type is_container: bool - :param master_id: - :type master_id: str - :param member_ids: - :type member_ids: list of str - :param member_of: - :type member_of: list of :class:`str ` - :param members: - :type members: list of :class:`str ` - :param meta_type_id: - :type meta_type_id: int - :param properties: - :type properties: :class:`object ` - :param provider_display_name: The display name for the identity as specified by the source identity provider. - :type provider_display_name: str - :param resource_version: - :type resource_version: int - :param subject_descriptor: - :type subject_descriptor: :class:`str ` - :param unique_user_id: - :type unique_user_id: int - """ - - _attribute_map = { - 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'master_id': {'key': 'masterId', 'type': 'str'}, - 'member_ids': {'key': 'memberIds', 'type': '[str]'}, - 'member_of': {'key': 'memberOf', 'type': '[str]'}, - 'members': {'key': 'members', 'type': '[str]'}, - 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, - 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} - } - - def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(IdentityBase, self).__init__() - self.custom_display_name = custom_display_name - self.descriptor = descriptor - self.id = id - self.is_active = is_active - self.is_container = is_container - self.master_id = master_id - self.member_ids = member_ids - self.member_of = member_of - self.members = members - self.meta_type_id = meta_type_id - self.properties = properties - self.provider_display_name = provider_display_name - self.resource_version = resource_version - self.subject_descriptor = subject_descriptor - self.unique_user_id = unique_user_id diff --git a/vsts/vsts/location/v4_1/models/location_mapping.py b/vsts/vsts/location/v4_1/models/location_mapping.py deleted file mode 100644 index 945f49dd..00000000 --- a/vsts/vsts/location/v4_1/models/location_mapping.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LocationMapping(Model): - """LocationMapping. - - :param access_mapping_moniker: - :type access_mapping_moniker: str - :param location: - :type location: str - """ - - _attribute_map = { - 'access_mapping_moniker': {'key': 'accessMappingMoniker', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'} - } - - def __init__(self, access_mapping_moniker=None, location=None): - super(LocationMapping, self).__init__() - self.access_mapping_moniker = access_mapping_moniker - self.location = location diff --git a/vsts/vsts/location/v4_1/models/location_service_data.py b/vsts/vsts/location/v4_1/models/location_service_data.py deleted file mode 100644 index 122cf2fb..00000000 --- a/vsts/vsts/location/v4_1/models/location_service_data.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LocationServiceData(Model): - """LocationServiceData. - - :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` - :param client_cache_fresh: Data that the location service holds. - :type client_cache_fresh: bool - :param client_cache_time_to_live: The time to live on the location service cache. - :type client_cache_time_to_live: int - :param default_access_mapping_moniker: The default access mapping moniker for the server. - :type default_access_mapping_moniker: str - :param last_change_id: The obsolete id for the last change that took place on the server (use LastChangeId64). - :type last_change_id: int - :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. - :type last_change_id64: long - :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` - :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) - :type service_owner: str - """ - - _attribute_map = { - 'access_mappings': {'key': 'accessMappings', 'type': '[AccessMapping]'}, - 'client_cache_fresh': {'key': 'clientCacheFresh', 'type': 'bool'}, - 'client_cache_time_to_live': {'key': 'clientCacheTimeToLive', 'type': 'int'}, - 'default_access_mapping_moniker': {'key': 'defaultAccessMappingMoniker', 'type': 'str'}, - 'last_change_id': {'key': 'lastChangeId', 'type': 'int'}, - 'last_change_id64': {'key': 'lastChangeId64', 'type': 'long'}, - 'service_definitions': {'key': 'serviceDefinitions', 'type': '[ServiceDefinition]'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'} - } - - def __init__(self, access_mappings=None, client_cache_fresh=None, client_cache_time_to_live=None, default_access_mapping_moniker=None, last_change_id=None, last_change_id64=None, service_definitions=None, service_owner=None): - super(LocationServiceData, self).__init__() - self.access_mappings = access_mappings - self.client_cache_fresh = client_cache_fresh - self.client_cache_time_to_live = client_cache_time_to_live - self.default_access_mapping_moniker = default_access_mapping_moniker - self.last_change_id = last_change_id - self.last_change_id64 = last_change_id64 - self.service_definitions = service_definitions - self.service_owner = service_owner diff --git a/vsts/vsts/location/v4_1/models/resource_area_info.py b/vsts/vsts/location/v4_1/models/resource_area_info.py deleted file mode 100644 index c2816fbe..00000000 --- a/vsts/vsts/location/v4_1/models/resource_area_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceAreaInfo(Model): - """ResourceAreaInfo. - - :param id: - :type id: str - :param location_url: - :type location_url: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location_url': {'key': 'locationUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, location_url=None, name=None): - super(ResourceAreaInfo, self).__init__() - self.id = id - self.location_url = location_url - self.name = name diff --git a/vsts/vsts/location/v4_1/models/service_definition.py b/vsts/vsts/location/v4_1/models/service_definition.py deleted file mode 100644 index 8684205a..00000000 --- a/vsts/vsts/location/v4_1/models/service_definition.py +++ /dev/null @@ -1,93 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceDefinition(Model): - """ServiceDefinition. - - :param description: - :type description: str - :param display_name: - :type display_name: str - :param identifier: - :type identifier: str - :param inherit_level: - :type inherit_level: object - :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` - :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. - :type max_version: str - :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. - :type min_version: str - :param parent_identifier: - :type parent_identifier: str - :param parent_service_type: - :type parent_service_type: str - :param properties: - :type properties: :class:`object ` - :param relative_path: - :type relative_path: str - :param relative_to_setting: - :type relative_to_setting: object - :param released_version: The latest version of this resource location that is in "Release" (non-preview) mode. Copied from ApiResourceLocation. - :type released_version: str - :param resource_version: The current resource version supported by this resource location. Copied from ApiResourceLocation. - :type resource_version: int - :param service_owner: The service which owns this definition e.g. TFS, ELS, etc. - :type service_owner: str - :param service_type: - :type service_type: str - :param status: - :type status: object - :param tool_id: - :type tool_id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'inherit_level': {'key': 'inheritLevel', 'type': 'object'}, - 'location_mappings': {'key': 'locationMappings', 'type': '[LocationMapping]'}, - 'max_version': {'key': 'maxVersion', 'type': 'str'}, - 'min_version': {'key': 'minVersion', 'type': 'str'}, - 'parent_identifier': {'key': 'parentIdentifier', 'type': 'str'}, - 'parent_service_type': {'key': 'parentServiceType', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'relative_path': {'key': 'relativePath', 'type': 'str'}, - 'relative_to_setting': {'key': 'relativeToSetting', 'type': 'object'}, - 'released_version': {'key': 'releasedVersion', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, - 'service_type': {'key': 'serviceType', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tool_id': {'key': 'toolId', 'type': 'str'} - } - - def __init__(self, description=None, display_name=None, identifier=None, inherit_level=None, location_mappings=None, max_version=None, min_version=None, parent_identifier=None, parent_service_type=None, properties=None, relative_path=None, relative_to_setting=None, released_version=None, resource_version=None, service_owner=None, service_type=None, status=None, tool_id=None): - super(ServiceDefinition, self).__init__() - self.description = description - self.display_name = display_name - self.identifier = identifier - self.inherit_level = inherit_level - self.location_mappings = location_mappings - self.max_version = max_version - self.min_version = min_version - self.parent_identifier = parent_identifier - self.parent_service_type = parent_service_type - self.properties = properties - self.relative_path = relative_path - self.relative_to_setting = relative_to_setting - self.released_version = released_version - self.resource_version = resource_version - self.service_owner = service_owner - self.service_type = service_type - self.status = status - self.tool_id = tool_id diff --git a/vsts/vsts/maven/__init__.py b/vsts/vsts/maven/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/maven/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/maven/v4_1/__init__.py b/vsts/vsts/maven/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/maven/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/maven/v4_1/models/__init__.py b/vsts/vsts/maven/v4_1/models/__init__.py deleted file mode 100644 index 4bbced57..00000000 --- a/vsts/vsts/maven/v4_1/models/__init__.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .batch_operation_data import BatchOperationData -from .maven_minimal_package_details import MavenMinimalPackageDetails -from .maven_package import MavenPackage -from .maven_packages_batch_request import MavenPackagesBatchRequest -from .maven_package_version_deletion_state import MavenPackageVersionDeletionState -from .maven_pom_build import MavenPomBuild -from .maven_pom_ci import MavenPomCi -from .maven_pom_ci_notifier import MavenPomCiNotifier -from .maven_pom_dependency import MavenPomDependency -from .maven_pom_dependency_management import MavenPomDependencyManagement -from .maven_pom_gav import MavenPomGav -from .maven_pom_issue_management import MavenPomIssueManagement -from .maven_pom_license import MavenPomLicense -from .maven_pom_mailing_list import MavenPomMailingList -from .maven_pom_metadata import MavenPomMetadata -from .maven_pom_organization import MavenPomOrganization -from .maven_pom_parent import MavenPomParent -from .maven_pom_person import MavenPomPerson -from .maven_pom_scm import MavenPomScm -from .maven_recycle_bin_package_version_details import MavenRecycleBinPackageVersionDetails -from .package import Package -from .plugin import Plugin -from .plugin_configuration import PluginConfiguration -from .reference_link import ReferenceLink -from .reference_links import ReferenceLinks - -__all__ = [ - 'BatchOperationData', - 'MavenMinimalPackageDetails', - 'MavenPackage', - 'MavenPackagesBatchRequest', - 'MavenPackageVersionDeletionState', - 'MavenPomBuild', - 'MavenPomCi', - 'MavenPomCiNotifier', - 'MavenPomDependency', - 'MavenPomDependencyManagement', - 'MavenPomGav', - 'MavenPomIssueManagement', - 'MavenPomLicense', - 'MavenPomMailingList', - 'MavenPomMetadata', - 'MavenPomOrganization', - 'MavenPomParent', - 'MavenPomPerson', - 'MavenPomScm', - 'MavenRecycleBinPackageVersionDetails', - 'Package', - 'Plugin', - 'PluginConfiguration', - 'ReferenceLink', - 'ReferenceLinks', -] diff --git a/vsts/vsts/maven/v4_1/models/batch_operation_data.py b/vsts/vsts/maven/v4_1/models/batch_operation_data.py deleted file mode 100644 index a084ef44..00000000 --- a/vsts/vsts/maven/v4_1/models/batch_operation_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BatchOperationData(Model): - """BatchOperationData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(BatchOperationData, self).__init__() diff --git a/vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py b/vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py deleted file mode 100644 index 2533d9ac..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_minimal_package_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenMinimalPackageDetails(Model): - """MavenMinimalPackageDetails. - - :param artifact: Package artifact ID - :type artifact: str - :param group: Package group ID - :type group: str - :param version: Package version - :type version: str - """ - - _attribute_map = { - 'artifact': {'key': 'artifact', 'type': 'str'}, - 'group': {'key': 'group', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, artifact=None, group=None, version=None): - super(MavenMinimalPackageDetails, self).__init__() - self.artifact = artifact - self.group = group - self.version = version diff --git a/vsts/vsts/maven/v4_1/models/maven_package.py b/vsts/vsts/maven/v4_1/models/maven_package.py deleted file mode 100644 index b83b6b7b..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_package.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPackage(Model): - """MavenPackage. - - :param artifact_id: - :type artifact_id: str - :param artifact_index: - :type artifact_index: :class:`ReferenceLink ` - :param artifact_metadata: - :type artifact_metadata: :class:`ReferenceLink ` - :param deleted_date: - :type deleted_date: datetime - :param files: - :type files: :class:`ReferenceLinks ` - :param group_id: - :type group_id: str - :param pom: - :type pom: :class:`MavenPomMetadata ` - :param requested_file: - :type requested_file: :class:`ReferenceLink ` - :param snapshot_metadata: - :type snapshot_metadata: :class:`ReferenceLink ` - :param version: - :type version: str - :param versions: - :type versions: :class:`ReferenceLinks ` - :param versions_index: - :type versions_index: :class:`ReferenceLink ` - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'artifact_index': {'key': 'artifactIndex', 'type': 'ReferenceLink'}, - 'artifact_metadata': {'key': 'artifactMetadata', 'type': 'ReferenceLink'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'files': {'key': 'files', 'type': 'ReferenceLinks'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'pom': {'key': 'pom', 'type': 'MavenPomMetadata'}, - 'requested_file': {'key': 'requestedFile', 'type': 'ReferenceLink'}, - 'snapshot_metadata': {'key': 'snapshotMetadata', 'type': 'ReferenceLink'}, - 'version': {'key': 'version', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': 'ReferenceLinks'}, - 'versions_index': {'key': 'versionsIndex', 'type': 'ReferenceLink'} - } - - def __init__(self, artifact_id=None, artifact_index=None, artifact_metadata=None, deleted_date=None, files=None, group_id=None, pom=None, requested_file=None, snapshot_metadata=None, version=None, versions=None, versions_index=None): - super(MavenPackage, self).__init__() - self.artifact_id = artifact_id - self.artifact_index = artifact_index - self.artifact_metadata = artifact_metadata - self.deleted_date = deleted_date - self.files = files - self.group_id = group_id - self.pom = pom - self.requested_file = requested_file - self.snapshot_metadata = snapshot_metadata - self.version = version - self.versions = versions - self.versions_index = versions_index diff --git a/vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py b/vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py deleted file mode 100644 index 805d4594..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_package_version_deletion_state.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPackageVersionDeletionState(Model): - """MavenPackageVersionDeletionState. - - :param artifact_id: - :type artifact_id: str - :param deleted_date: - :type deleted_date: datetime - :param group_id: - :type group_id: str - :param version: - :type version: str - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, artifact_id=None, deleted_date=None, group_id=None, version=None): - super(MavenPackageVersionDeletionState, self).__init__() - self.artifact_id = artifact_id - self.deleted_date = deleted_date - self.group_id = group_id - self.version = version diff --git a/vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py b/vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py deleted file mode 100644 index c43e4bf8..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_packages_batch_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPackagesBatchRequest(Model): - """MavenPackagesBatchRequest. - - :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` - :param operation: Type of operation that needs to be performed on packages. - :type operation: object - :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MavenMinimalPackageDetails ` - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'BatchOperationData'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'packages': {'key': 'packages', 'type': '[MavenMinimalPackageDetails]'} - } - - def __init__(self, data=None, operation=None, packages=None): - super(MavenPackagesBatchRequest, self).__init__() - self.data = data - self.operation = operation - self.packages = packages diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_build.py b/vsts/vsts/maven/v4_1/models/maven_pom_build.py deleted file mode 100644 index d27b8032..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_build.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomBuild(Model): - """MavenPomBuild. - - :param plugins: - :type plugins: list of :class:`Plugin ` - """ - - _attribute_map = { - 'plugins': {'key': 'plugins', 'type': '[Plugin]'} - } - - def __init__(self, plugins=None): - super(MavenPomBuild, self).__init__() - self.plugins = plugins diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_ci.py b/vsts/vsts/maven/v4_1/models/maven_pom_ci.py deleted file mode 100644 index 7d121636..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_ci.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomCi(Model): - """MavenPomCi. - - :param notifiers: - :type notifiers: list of :class:`MavenPomCiNotifier ` - :param system: - :type system: str - :param url: - :type url: str - """ - - _attribute_map = { - 'notifiers': {'key': 'notifiers', 'type': '[MavenPomCiNotifier]'}, - 'system': {'key': 'system', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, notifiers=None, system=None, url=None): - super(MavenPomCi, self).__init__() - self.notifiers = notifiers - self.system = system - self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py b/vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py deleted file mode 100644 index f840c1ef..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_ci_notifier.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomCiNotifier(Model): - """MavenPomCiNotifier. - - :param configuration: - :type configuration: list of str - :param send_on_error: - :type send_on_error: str - :param send_on_failure: - :type send_on_failure: str - :param send_on_success: - :type send_on_success: str - :param send_on_warning: - :type send_on_warning: str - :param type: - :type type: str - """ - - _attribute_map = { - 'configuration': {'key': 'configuration', 'type': '[str]'}, - 'send_on_error': {'key': 'sendOnError', 'type': 'str'}, - 'send_on_failure': {'key': 'sendOnFailure', 'type': 'str'}, - 'send_on_success': {'key': 'sendOnSuccess', 'type': 'str'}, - 'send_on_warning': {'key': 'sendOnWarning', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, configuration=None, send_on_error=None, send_on_failure=None, send_on_success=None, send_on_warning=None, type=None): - super(MavenPomCiNotifier, self).__init__() - self.configuration = configuration - self.send_on_error = send_on_error - self.send_on_failure = send_on_failure - self.send_on_success = send_on_success - self.send_on_warning = send_on_warning - self.type = type diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_dependency.py b/vsts/vsts/maven/v4_1/models/maven_pom_dependency.py deleted file mode 100644 index ce1e088a..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_dependency.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .maven_pom_gav import MavenPomGav - - -class MavenPomDependency(MavenPomGav): - """MavenPomDependency. - - :param artifact_id: - :type artifact_id: str - :param group_id: - :type group_id: str - :param version: - :type version: str - :param optional: - :type optional: bool - :param scope: - :type scope: str - :param type: - :type type: str - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'optional': {'key': 'optional', 'type': 'bool'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, artifact_id=None, group_id=None, version=None, optional=None, scope=None, type=None): - super(MavenPomDependency, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) - self.optional = optional - self.scope = scope - self.type = type diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py b/vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py deleted file mode 100644 index 7e470feb..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_dependency_management.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomDependencyManagement(Model): - """MavenPomDependencyManagement. - - :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` - """ - - _attribute_map = { - 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'} - } - - def __init__(self, dependencies=None): - super(MavenPomDependencyManagement, self).__init__() - self.dependencies = dependencies diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_gav.py b/vsts/vsts/maven/v4_1/models/maven_pom_gav.py deleted file mode 100644 index e1b80925..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_gav.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomGav(Model): - """MavenPomGav. - - :param artifact_id: - :type artifact_id: str - :param group_id: - :type group_id: str - :param version: - :type version: str - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, artifact_id=None, group_id=None, version=None): - super(MavenPomGav, self).__init__() - self.artifact_id = artifact_id - self.group_id = group_id - self.version = version diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py b/vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py deleted file mode 100644 index 10d7e624..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_issue_management.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomIssueManagement(Model): - """MavenPomIssueManagement. - - :param system: - :type system: str - :param url: - :type url: str - """ - - _attribute_map = { - 'system': {'key': 'system', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, system=None, url=None): - super(MavenPomIssueManagement, self).__init__() - self.system = system - self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_license.py b/vsts/vsts/maven/v4_1/models/maven_pom_license.py deleted file mode 100644 index db989647..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_license.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .maven_pom_organization import MavenPomOrganization - - -class MavenPomLicense(MavenPomOrganization): - """MavenPomLicense. - - :param name: - :type name: str - :param url: - :type url: str - :param distribution: - :type distribution: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'distribution': {'key': 'distribution', 'type': 'str'} - } - - def __init__(self, name=None, url=None, distribution=None): - super(MavenPomLicense, self).__init__(name=name, url=url) - self.distribution = distribution diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py b/vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py deleted file mode 100644 index 58a7db92..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_mailing_list.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomMailingList(Model): - """MavenPomMailingList. - - :param archive: - :type archive: str - :param name: - :type name: str - :param other_archives: - :type other_archives: list of str - :param post: - :type post: str - :param subscribe: - :type subscribe: str - :param unsubscribe: - :type unsubscribe: str - """ - - _attribute_map = { - 'archive': {'key': 'archive', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'other_archives': {'key': 'otherArchives', 'type': '[str]'}, - 'post': {'key': 'post', 'type': 'str'}, - 'subscribe': {'key': 'subscribe', 'type': 'str'}, - 'unsubscribe': {'key': 'unsubscribe', 'type': 'str'} - } - - def __init__(self, archive=None, name=None, other_archives=None, post=None, subscribe=None, unsubscribe=None): - super(MavenPomMailingList, self).__init__() - self.archive = archive - self.name = name - self.other_archives = other_archives - self.post = post - self.subscribe = subscribe - self.unsubscribe = unsubscribe diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_metadata.py b/vsts/vsts/maven/v4_1/models/maven_pom_metadata.py deleted file mode 100644 index 0e8a7a47..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_metadata.py +++ /dev/null @@ -1,114 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .maven_pom_gav import MavenPomGav - - -class MavenPomMetadata(MavenPomGav): - """MavenPomMetadata. - - :param artifact_id: - :type artifact_id: str - :param group_id: - :type group_id: str - :param version: - :type version: str - :param build: - :type build: :class:`MavenPomBuild ` - :param ci_management: - :type ci_management: :class:`MavenPomCi ` - :param contributors: - :type contributors: list of :class:`MavenPomPerson ` - :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` - :param dependency_management: - :type dependency_management: :class:`MavenPomDependencyManagement ` - :param description: - :type description: str - :param developers: - :type developers: list of :class:`MavenPomPerson ` - :param inception_year: - :type inception_year: str - :param issue_management: - :type issue_management: :class:`MavenPomIssueManagement ` - :param licenses: - :type licenses: list of :class:`MavenPomLicense ` - :param mailing_lists: - :type mailing_lists: list of :class:`MavenPomMailingList ` - :param model_version: - :type model_version: str - :param modules: - :type modules: list of str - :param name: - :type name: str - :param organization: - :type organization: :class:`MavenPomOrganization ` - :param packaging: - :type packaging: str - :param parent: - :type parent: :class:`MavenPomParent ` - :param prerequisites: - :type prerequisites: dict - :param properties: - :type properties: dict - :param scm: - :type scm: :class:`MavenPomScm ` - :param url: - :type url: str - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'build': {'key': 'build', 'type': 'MavenPomBuild'}, - 'ci_management': {'key': 'ciManagement', 'type': 'MavenPomCi'}, - 'contributors': {'key': 'contributors', 'type': '[MavenPomPerson]'}, - 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'}, - 'dependency_management': {'key': 'dependencyManagement', 'type': 'MavenPomDependencyManagement'}, - 'description': {'key': 'description', 'type': 'str'}, - 'developers': {'key': 'developers', 'type': '[MavenPomPerson]'}, - 'inception_year': {'key': 'inceptionYear', 'type': 'str'}, - 'issue_management': {'key': 'issueManagement', 'type': 'MavenPomIssueManagement'}, - 'licenses': {'key': 'licenses', 'type': '[MavenPomLicense]'}, - 'mailing_lists': {'key': 'mailingLists', 'type': '[MavenPomMailingList]'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - 'modules': {'key': 'modules', 'type': '[str]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'organization': {'key': 'organization', 'type': 'MavenPomOrganization'}, - 'packaging': {'key': 'packaging', 'type': 'str'}, - 'parent': {'key': 'parent', 'type': 'MavenPomParent'}, - 'prerequisites': {'key': 'prerequisites', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'scm': {'key': 'scm', 'type': 'MavenPomScm'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, artifact_id=None, group_id=None, version=None, build=None, ci_management=None, contributors=None, dependencies=None, dependency_management=None, description=None, developers=None, inception_year=None, issue_management=None, licenses=None, mailing_lists=None, model_version=None, modules=None, name=None, organization=None, packaging=None, parent=None, prerequisites=None, properties=None, scm=None, url=None): - super(MavenPomMetadata, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) - self.build = build - self.ci_management = ci_management - self.contributors = contributors - self.dependencies = dependencies - self.dependency_management = dependency_management - self.description = description - self.developers = developers - self.inception_year = inception_year - self.issue_management = issue_management - self.licenses = licenses - self.mailing_lists = mailing_lists - self.model_version = model_version - self.modules = modules - self.name = name - self.organization = organization - self.packaging = packaging - self.parent = parent - self.prerequisites = prerequisites - self.properties = properties - self.scm = scm - self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_organization.py b/vsts/vsts/maven/v4_1/models/maven_pom_organization.py deleted file mode 100644 index 27d47322..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_organization.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomOrganization(Model): - """MavenPomOrganization. - - :param name: - :type name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, url=None): - super(MavenPomOrganization, self).__init__() - self.name = name - self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_parent.py b/vsts/vsts/maven/v4_1/models/maven_pom_parent.py deleted file mode 100644 index 794b7032..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_parent.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .maven_pom_gav import MavenPomGav - - -class MavenPomParent(MavenPomGav): - """MavenPomParent. - - :param artifact_id: - :type artifact_id: str - :param group_id: - :type group_id: str - :param version: - :type version: str - :param relative_path: - :type relative_path: str - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'relative_path': {'key': 'relativePath', 'type': 'str'} - } - - def __init__(self, artifact_id=None, group_id=None, version=None, relative_path=None): - super(MavenPomParent, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) - self.relative_path = relative_path diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_person.py b/vsts/vsts/maven/v4_1/models/maven_pom_person.py deleted file mode 100644 index 36defcf9..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_person.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomPerson(Model): - """MavenPomPerson. - - :param email: - :type email: str - :param id: - :type id: str - :param name: - :type name: str - :param organization: - :type organization: str - :param organization_url: - :type organization_url: str - :param roles: - :type roles: list of str - :param timezone: - :type timezone: str - :param url: - :type url: str - """ - - _attribute_map = { - 'email': {'key': 'email', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'organization': {'key': 'organization', 'type': 'str'}, - 'organization_url': {'key': 'organizationUrl', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[str]'}, - 'timezone': {'key': 'timezone', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, email=None, id=None, name=None, organization=None, organization_url=None, roles=None, timezone=None, url=None): - super(MavenPomPerson, self).__init__() - self.email = email - self.id = id - self.name = name - self.organization = organization - self.organization_url = organization_url - self.roles = roles - self.timezone = timezone - self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_pom_scm.py b/vsts/vsts/maven/v4_1/models/maven_pom_scm.py deleted file mode 100644 index 4efb7580..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_pom_scm.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenPomScm(Model): - """MavenPomScm. - - :param connection: - :type connection: str - :param developer_connection: - :type developer_connection: str - :param tag: - :type tag: str - :param url: - :type url: str - """ - - _attribute_map = { - 'connection': {'key': 'connection', 'type': 'str'}, - 'developer_connection': {'key': 'developerConnection', 'type': 'str'}, - 'tag': {'key': 'tag', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, connection=None, developer_connection=None, tag=None, url=None): - super(MavenPomScm, self).__init__() - self.connection = connection - self.developer_connection = developer_connection - self.tag = tag - self.url = url diff --git a/vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py b/vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py deleted file mode 100644 index 6c1213f2..00000000 --- a/vsts/vsts/maven/v4_1/models/maven_recycle_bin_package_version_details.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MavenRecycleBinPackageVersionDetails(Model): - """MavenRecycleBinPackageVersionDetails. - - :param deleted: Setting to false will undo earlier deletion and restore the package to feed. - :type deleted: bool - """ - - _attribute_map = { - 'deleted': {'key': 'deleted', 'type': 'bool'} - } - - def __init__(self, deleted=None): - super(MavenRecycleBinPackageVersionDetails, self).__init__() - self.deleted = deleted diff --git a/vsts/vsts/maven/v4_1/models/package.py b/vsts/vsts/maven/v4_1/models/package.py deleted file mode 100644 index ce16c013..00000000 --- a/vsts/vsts/maven/v4_1/models/package.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Package(Model): - """Package. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param deleted_date: If and when the package was deleted - :type deleted_date: datetime - :param id: - :type id: str - :param name: The display name of the package - :type name: str - :param permanently_deleted_date: If and when the package was permanently deleted. - :type permanently_deleted_date: datetime - :param version: The version of the package - :type version: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): - super(Package, self).__init__() - self._links = _links - self.deleted_date = deleted_date - self.id = id - self.name = name - self.permanently_deleted_date = permanently_deleted_date - self.version = version diff --git a/vsts/vsts/maven/v4_1/models/plugin.py b/vsts/vsts/maven/v4_1/models/plugin.py deleted file mode 100644 index 08d67f5d..00000000 --- a/vsts/vsts/maven/v4_1/models/plugin.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .maven_pom_gav import MavenPomGav - - -class Plugin(MavenPomGav): - """Plugin. - - :param artifact_id: - :type artifact_id: str - :param group_id: - :type group_id: str - :param version: - :type version: str - :param configuration: - :type configuration: :class:`PluginConfiguration ` - """ - - _attribute_map = { - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'PluginConfiguration'} - } - - def __init__(self, artifact_id=None, group_id=None, version=None, configuration=None): - super(Plugin, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) - self.configuration = configuration diff --git a/vsts/vsts/maven/v4_1/models/plugin_configuration.py b/vsts/vsts/maven/v4_1/models/plugin_configuration.py deleted file mode 100644 index 8e95ead8..00000000 --- a/vsts/vsts/maven/v4_1/models/plugin_configuration.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PluginConfiguration(Model): - """PluginConfiguration. - - :param goal_prefix: - :type goal_prefix: str - """ - - _attribute_map = { - 'goal_prefix': {'key': 'goalPrefix', 'type': 'str'} - } - - def __init__(self, goal_prefix=None): - super(PluginConfiguration, self).__init__() - self.goal_prefix = goal_prefix diff --git a/vsts/vsts/maven/v4_1/models/reference_link.py b/vsts/vsts/maven/v4_1/models/reference_link.py deleted file mode 100644 index 6f7c82bc..00000000 --- a/vsts/vsts/maven/v4_1/models/reference_link.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLink(Model): - """ReferenceLink. - - :param href: - :type href: str - """ - - _attribute_map = { - 'href': {'key': 'href', 'type': 'str'} - } - - def __init__(self, href=None): - super(ReferenceLink, self).__init__() - self.href = href diff --git a/vsts/vsts/maven/v4_1/models/reference_links.py b/vsts/vsts/maven/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/maven/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/member_entitlement_management/__init__.py b/vsts/vsts/member_entitlement_management/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/member_entitlement_management/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/member_entitlement_management/v4_0/__init__.py b/vsts/vsts/member_entitlement_management/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/__init__.py b/vsts/vsts/member_entitlement_management/v4_0/models/__init__.py deleted file mode 100644 index 1499c62b..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_level import AccessLevel -from .base_operation_result import BaseOperationResult -from .extension import Extension -from .graph_group import GraphGroup -from .graph_member import GraphMember -from .graph_subject import GraphSubject -from .group import Group -from .group_entitlement import GroupEntitlement -from .group_entitlement_operation_reference import GroupEntitlementOperationReference -from .group_operation_result import GroupOperationResult -from .json_patch_operation import JsonPatchOperation -from .member_entitlement import MemberEntitlement -from .member_entitlement_operation_reference import MemberEntitlementOperationReference -from .member_entitlements_patch_response import MemberEntitlementsPatchResponse -from .member_entitlements_post_response import MemberEntitlementsPostResponse -from .member_entitlements_response_base import MemberEntitlementsResponseBase -from .operation_reference import OperationReference -from .operation_result import OperationResult -from .project_entitlement import ProjectEntitlement -from .project_ref import ProjectRef -from .reference_links import ReferenceLinks -from .team_ref import TeamRef - -__all__ = [ - 'AccessLevel', - 'BaseOperationResult', - 'Extension', - 'GraphGroup', - 'GraphMember', - 'GraphSubject', - 'Group', - 'GroupEntitlement', - 'GroupEntitlementOperationReference', - 'GroupOperationResult', - 'JsonPatchOperation', - 'MemberEntitlement', - 'MemberEntitlementOperationReference', - 'MemberEntitlementsPatchResponse', - 'MemberEntitlementsPostResponse', - 'MemberEntitlementsResponseBase', - 'OperationReference', - 'OperationResult', - 'ProjectEntitlement', - 'ProjectRef', - 'ReferenceLinks', - 'TeamRef', -] diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/access_level.py b/vsts/vsts/member_entitlement_management/v4_0/models/access_level.py deleted file mode 100644 index 90488c17..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/access_level.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessLevel(Model): - """AccessLevel. - - :param account_license_type: - :type account_license_type: object - :param assignment_source: - :type assignment_source: object - :param license_display_name: - :type license_display_name: str - :param licensing_source: - :type licensing_source: object - :param msdn_license_type: - :type msdn_license_type: object - :param status: - :type status: object - :param status_message: - :type status_message: str - """ - - _attribute_map = { - 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, - 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, - 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'} - } - - def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): - super(AccessLevel, self).__init__() - self.account_license_type = account_license_type - self.assignment_source = assignment_source - self.license_display_name = license_display_name - self.licensing_source = licensing_source - self.msdn_license_type = msdn_license_type - self.status = status - self.status_message = status_message diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/base_operation_result.py b/vsts/vsts/member_entitlement_management/v4_0/models/base_operation_result.py deleted file mode 100644 index 843f13fc..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/base_operation_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BaseOperationResult(Model): - """BaseOperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'} - } - - def __init__(self, errors=None, is_success=None): - super(BaseOperationResult, self).__init__() - self.errors = errors - self.is_success = is_success diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/extension.py b/vsts/vsts/member_entitlement_management/v4_0/models/extension.py deleted file mode 100644 index 8d037ee6..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/extension.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Extension(Model): - """Extension. - - :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule - :type assignment_source: object - :param id: Gallery Id of the Extension - :type id: str - :param name: Friendly name of this extension - :type name: str - :param source: Source of this extension assignment. Ex: msdn, account, none, ect. - :type source: object - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'object'} - } - - def __init__(self, assignment_source=None, id=None, name=None, source=None): - super(Extension, self).__init__() - self.assignment_source = assignment_source - self.id = id - self.name = name - self.source = source diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py b/vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py deleted file mode 100644 index babb06a7..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/graph_group.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_member import GraphMember - - -class GraphGroup(GraphMember): - """GraphGroup. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. - :type principal_name: str - :param description: A short phrase to help human readers disambiguate groups with similar names - :type description: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None, description=None): - super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url, domain=domain, mail_address=mail_address, principal_name=principal_name) - self.description = description diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py b/vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py deleted file mode 100644 index fb9dc497..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/graph_member.py +++ /dev/null @@ -1,54 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject import GraphSubject - - -class GraphMember(GraphSubject): - """GraphMember. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. - :type principal_name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None): - super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url) - self.domain = domain - self.mail_address = mail_address - self.principal_name = principal_name diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py b/vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py deleted file mode 100644 index f970efd0..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/graph_subject.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubject(Model): - """GraphSubject. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None): - super(GraphSubject, self).__init__() - self._links = _links - self.descriptor = descriptor - self.display_name = display_name - self.origin = origin - self.origin_id = origin_id - self.subject_kind = subject_kind - self.url = url diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/group.py b/vsts/vsts/member_entitlement_management/v4_0/models/group.py deleted file mode 100644 index a8f1a156..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/group.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Group(Model): - """Group. - - :param display_name: - :type display_name: str - :param group_type: - :type group_type: object - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'group_type': {'key': 'groupType', 'type': 'object'} - } - - def __init__(self, display_name=None, group_type=None): - super(Group, self).__init__() - self.display_name = display_name - self.group_type = group_type diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py b/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py deleted file mode 100644 index 8d663451..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GroupEntitlement(Model): - """GroupEntitlement. - - :param extension_rules: Extension Rules - :type extension_rules: list of :class:`Extension ` - :param group: Member reference - :type group: :class:`GraphGroup ` - :param id: The unique identifier which matches the Id of the GraphMember - :type id: str - :param license_rule: License Rule - :type license_rule: :class:`AccessLevel ` - :param project_entitlements: Relation between a project and the member's effective permissions in that project - :type project_entitlements: list of :class:`ProjectEntitlement ` - :param status: - :type status: object - """ - - _attribute_map = { - 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, - 'group': {'key': 'group', 'type': 'GraphGroup'}, - 'id': {'key': 'id', 'type': 'str'}, - 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, - 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, extension_rules=None, group=None, id=None, license_rule=None, project_entitlements=None, status=None): - super(GroupEntitlement, self).__init__() - self.extension_rules = extension_rules - self.group = group - self.id = id - self.license_rule = license_rule - self.project_entitlements = project_entitlements - self.status = status diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py deleted file mode 100644 index 6a348095..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/group_entitlement_operation_reference.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .operation_reference import OperationReference - - -class GroupEntitlementOperationReference(OperationReference): - """GroupEntitlementOperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - :param completed: Operation completed with success or failure - :type completed: bool - :param have_results_succeeded: True if all operations were successful - :type have_results_succeeded: bool - :param results: List of results for each operation - :type results: list of :class:`GroupOperationResult ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'completed': {'key': 'completed', 'type': 'bool'}, - 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, - 'results': {'key': 'results', 'type': '[GroupOperationResult]'} - } - - def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): - super(GroupEntitlementOperationReference, self).__init__(id=id, status=status, url=url) - self.completed = completed - self.have_results_succeeded = have_results_succeeded - self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py b/vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py deleted file mode 100644 index b3e2adab..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/group_operation_result.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .base_operation_result import BaseOperationResult - - -class GroupOperationResult(BaseOperationResult): - """GroupOperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - :param group_id: Identifier of the Group being acted upon - :type group_id: str - :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'GroupEntitlement'} - } - - def __init__(self, errors=None, is_success=None, group_id=None, result=None): - super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) - self.group_id = group_id - self.result = result diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py b/vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py deleted file mode 100644 index 7a1ec3c7..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MemberEntitlement(Model): - """MemberEntitlement. - - :param access_level: Member's access level denoted by a license - :type access_level: :class:`AccessLevel ` - :param extensions: Member's extensions - :type extensions: list of :class:`Extension ` - :param group_assignments: GroupEntitlements that this member belongs to - :type group_assignments: list of :class:`GroupEntitlement ` - :param id: The unique identifier which matches the Id of the GraphMember - :type id: str - :param last_accessed_date: Date the Member last access the collection - :type last_accessed_date: datetime - :param member: Member reference - :type member: :class:`GraphMember ` - :param project_entitlements: Relation between a project and the member's effective permissions in that project - :type project_entitlements: list of :class:`ProjectEntitlement ` - """ - - _attribute_map = { - 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, - 'member': {'key': 'member', 'type': 'GraphMember'}, - 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'} - } - - def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, member=None, project_entitlements=None): - super(MemberEntitlement, self).__init__() - self.access_level = access_level - self.extensions = extensions - self.group_assignments = group_assignments - self.id = id - self.last_accessed_date = last_accessed_date - self.member = member - self.project_entitlements = project_entitlements diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py deleted file mode 100644 index 50ba8021..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlement_operation_reference.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .operation_reference import OperationReference - - -class MemberEntitlementOperationReference(OperationReference): - """MemberEntitlementOperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - :param completed: Operation completed with success or failure - :type completed: bool - :param have_results_succeeded: True if all operations were successful - :type have_results_succeeded: bool - :param results: List of results for each operation - :type results: list of :class:`OperationResult ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'completed': {'key': 'completed', 'type': 'bool'}, - 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, - 'results': {'key': 'results', 'type': '[OperationResult]'} - } - - def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): - super(MemberEntitlementOperationReference, self).__init__(id=id, status=status, url=url) - self.completed = completed - self.have_results_succeeded = have_results_succeeded - self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py deleted file mode 100644 index d95b35cc..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_patch_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase - - -class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): - """MemberEntitlementsPatchResponse. - - :param is_success: True if all operations were successful - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` - :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, - 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} - } - - def __init__(self, is_success=None, member_entitlement=None, operation_results=None): - super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) - self.operation_results = operation_results diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py deleted file mode 100644 index c4c1f122..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_post_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase - - -class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): - """MemberEntitlementsPostResponse. - - :param is_success: True if all operations were successful - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` - :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, - 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} - } - - def __init__(self, is_success=None, member_entitlement=None, operation_result=None): - super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) - self.operation_result = operation_result diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py b/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py deleted file mode 100644 index ba588156..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/member_entitlements_response_base.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MemberEntitlementsResponseBase(Model): - """MemberEntitlementsResponseBase. - - :param is_success: True if all operations were successful - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} - } - - def __init__(self, is_success=None, member_entitlement=None): - super(MemberEntitlementsResponseBase, self).__init__() - self.is_success = is_success - self.member_entitlement = member_entitlement diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py b/vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py deleted file mode 100644 index fb73a6c6..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/operation_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationReference(Model): - """OperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, status=None, url=None): - super(OperationReference, self).__init__() - self.id = id - self.status = status - self.url = url diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py b/vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py deleted file mode 100644 index 59f1744f..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/operation_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationResult(Model): - """OperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - :param member_id: Identifier of the Member being acted upon - :type member_id: str - :param result: Result of the MemberEntitlement after the operation - :type result: :class:`MemberEntitlement ` - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_id': {'key': 'memberId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'MemberEntitlement'} - } - - def __init__(self, errors=None, is_success=None, member_id=None, result=None): - super(OperationResult, self).__init__() - self.errors = errors - self.is_success = is_success - self.member_id = member_id - self.result = result diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py b/vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py deleted file mode 100644 index ceb1ae33..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/project_entitlement.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectEntitlement(Model): - """ProjectEntitlement. - - :param assignment_source: - :type assignment_source: object - :param group: - :type group: :class:`Group ` - :param is_project_permission_inherited: - :type is_project_permission_inherited: bool - :param project_ref: - :type project_ref: :class:`ProjectRef ` - :param team_refs: - :type team_refs: list of :class:`TeamRef ` - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'group': {'key': 'group', 'type': 'Group'}, - 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, - 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, - 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} - } - - def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_ref=None, team_refs=None): - super(ProjectEntitlement, self).__init__() - self.assignment_source = assignment_source - self.group = group - self.is_project_permission_inherited = is_project_permission_inherited - self.project_ref = project_ref - self.team_refs = team_refs diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/project_ref.py b/vsts/vsts/member_entitlement_management/v4_0/models/project_ref.py deleted file mode 100644 index 847ba331..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/project_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectRef(Model): - """ProjectRef. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectRef, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/reference_links.py b/vsts/vsts/member_entitlement_management/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py b/vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py deleted file mode 100644 index 2e6a6e36..00000000 --- a/vsts/vsts/member_entitlement_management/v4_0/models/team_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamRef(Model): - """TeamRef. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(TeamRef, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/member_entitlement_management/v4_1/__init__.py b/vsts/vsts/member_entitlement_management/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/__init__.py b/vsts/vsts/member_entitlement_management/v4_1/models/__init__.py deleted file mode 100644 index 97f1a285..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/__init__.py +++ /dev/null @@ -1,83 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_level import AccessLevel -from .base_operation_result import BaseOperationResult -from .extension import Extension -from .extension_summary_data import ExtensionSummaryData -from .graph_group import GraphGroup -from .graph_member import GraphMember -from .graph_subject import GraphSubject -from .graph_subject_base import GraphSubjectBase -from .graph_user import GraphUser -from .group import Group -from .group_entitlement import GroupEntitlement -from .group_entitlement_operation_reference import GroupEntitlementOperationReference -from .group_operation_result import GroupOperationResult -from .group_option import GroupOption -from .json_patch_operation import JsonPatchOperation -from .license_summary_data import LicenseSummaryData -from .member_entitlement import MemberEntitlement -from .member_entitlement_operation_reference import MemberEntitlementOperationReference -from .member_entitlements_patch_response import MemberEntitlementsPatchResponse -from .member_entitlements_post_response import MemberEntitlementsPostResponse -from .member_entitlements_response_base import MemberEntitlementsResponseBase -from .operation_reference import OperationReference -from .operation_result import OperationResult -from .paged_graph_member_list import PagedGraphMemberList -from .project_entitlement import ProjectEntitlement -from .project_ref import ProjectRef -from .reference_links import ReferenceLinks -from .summary_data import SummaryData -from .team_ref import TeamRef -from .user_entitlement import UserEntitlement -from .user_entitlement_operation_reference import UserEntitlementOperationReference -from .user_entitlement_operation_result import UserEntitlementOperationResult -from .user_entitlements_patch_response import UserEntitlementsPatchResponse -from .user_entitlements_post_response import UserEntitlementsPostResponse -from .user_entitlements_response_base import UserEntitlementsResponseBase -from .users_summary import UsersSummary - -__all__ = [ - 'AccessLevel', - 'BaseOperationResult', - 'Extension', - 'ExtensionSummaryData', - 'GraphGroup', - 'GraphMember', - 'GraphSubject', - 'GraphSubjectBase', - 'GraphUser', - 'Group', - 'GroupEntitlement', - 'GroupEntitlementOperationReference', - 'GroupOperationResult', - 'GroupOption', - 'JsonPatchOperation', - 'LicenseSummaryData', - 'MemberEntitlement', - 'MemberEntitlementOperationReference', - 'MemberEntitlementsPatchResponse', - 'MemberEntitlementsPostResponse', - 'MemberEntitlementsResponseBase', - 'OperationReference', - 'OperationResult', - 'PagedGraphMemberList', - 'ProjectEntitlement', - 'ProjectRef', - 'ReferenceLinks', - 'SummaryData', - 'TeamRef', - 'UserEntitlement', - 'UserEntitlementOperationReference', - 'UserEntitlementOperationResult', - 'UserEntitlementsPatchResponse', - 'UserEntitlementsPostResponse', - 'UserEntitlementsResponseBase', - 'UsersSummary', -] diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/access_level.py b/vsts/vsts/member_entitlement_management/v4_1/models/access_level.py deleted file mode 100644 index 827a40c0..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/access_level.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessLevel(Model): - """AccessLevel. - - :param account_license_type: Type of Account License (e.g. Express, Stakeholder etc.) - :type account_license_type: object - :param assignment_source: Assignment Source of the License (e.g. Group, Unknown etc. - :type assignment_source: object - :param license_display_name: Display name of the License - :type license_display_name: str - :param licensing_source: Licensing Source (e.g. Account. MSDN etc.) - :type licensing_source: object - :param msdn_license_type: Type of MSDN License (e.g. Visual Studio Professional, Visual Studio Enterprise etc.) - :type msdn_license_type: object - :param status: User status in the account - :type status: object - :param status_message: Status message. - :type status_message: str - """ - - _attribute_map = { - 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, - 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, - 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'} - } - - def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): - super(AccessLevel, self).__init__() - self.account_license_type = account_license_type - self.assignment_source = assignment_source - self.license_display_name = license_display_name - self.licensing_source = licensing_source - self.msdn_license_type = msdn_license_type - self.status = status - self.status_message = status_message diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py deleted file mode 100644 index 843f13fc..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/base_operation_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BaseOperationResult(Model): - """BaseOperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'} - } - - def __init__(self, errors=None, is_success=None): - super(BaseOperationResult, self).__init__() - self.errors = errors - self.is_success = is_success diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/extension.py b/vsts/vsts/member_entitlement_management/v4_1/models/extension.py deleted file mode 100644 index 6d1963cf..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/extension.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Extension(Model): - """Extension. - - :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule. - :type assignment_source: object - :param id: Gallery Id of the Extension. - :type id: str - :param name: Friendly name of this extension. - :type name: str - :param source: Source of this extension assignment. Ex: msdn, account, none, etc. - :type source: object - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'object'} - } - - def __init__(self, assignment_source=None, id=None, name=None, source=None): - super(Extension, self).__init__() - self.assignment_source = assignment_source - self.id = id - self.name = name - self.source = source diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py b/vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py deleted file mode 100644 index ec0de188..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .summary_data import SummaryData - - -class ExtensionSummaryData(SummaryData): - """ExtensionSummaryData. - - :param assigned: Count of Licenses already assigned. - :type assigned: int - :param available: Available Count. - :type available: int - :param included_quantity: Quantity - :type included_quantity: int - :param total: Total Count. - :type total: int - :param assigned_through_subscription: Count of Extension Licenses assigned to users through msdn. - :type assigned_through_subscription: int - :param extension_id: Gallery Id of the Extension - :type extension_id: str - :param extension_name: Friendly name of this extension - :type extension_name: str - :param is_trial_version: Whether its a Trial Version. - :type is_trial_version: bool - :param minimum_license_required: Minimum License Required for the Extension. - :type minimum_license_required: object - :param remaining_trial_days: Days remaining for the Trial to expire. - :type remaining_trial_days: int - :param trial_expiry_date: Date on which the Trial expires. - :type trial_expiry_date: datetime - """ - - _attribute_map = { - 'assigned': {'key': 'assigned', 'type': 'int'}, - 'available': {'key': 'available', 'type': 'int'}, - 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, - 'total': {'key': 'total', 'type': 'int'}, - 'assigned_through_subscription': {'key': 'assignedThroughSubscription', 'type': 'int'}, - 'extension_id': {'key': 'extensionId', 'type': 'str'}, - 'extension_name': {'key': 'extensionName', 'type': 'str'}, - 'is_trial_version': {'key': 'isTrialVersion', 'type': 'bool'}, - 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, - 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, - 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'} - } - - def __init__(self, assigned=None, available=None, included_quantity=None, total=None, assigned_through_subscription=None, extension_id=None, extension_name=None, is_trial_version=None, minimum_license_required=None, remaining_trial_days=None, trial_expiry_date=None): - super(ExtensionSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) - self.assigned_through_subscription = assigned_through_subscription - self.extension_id = extension_id - self.extension_name = extension_name - self.is_trial_version = is_trial_version - self.minimum_license_required = minimum_license_required - self.remaining_trial_days = remaining_trial_days - self.trial_expiry_date = trial_expiry_date diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py deleted file mode 100644 index c28da383..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/graph_group.py +++ /dev/null @@ -1,101 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_member import GraphMember - - -class GraphGroup(GraphMember): - """GraphGroup. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. - :type principal_name: str - :param description: A short phrase to help human readers disambiguate groups with similar names - :type description: str - :param is_cross_project: - :type is_cross_project: bool - :param is_deleted: - :type is_deleted: bool - :param is_global_scope: - :type is_global_scope: bool - :param is_restricted_visible: - :type is_restricted_visible: bool - :param local_scope_id: - :type local_scope_id: str - :param scope_id: - :type scope_id: str - :param scope_name: - :type scope_name: str - :param scope_type: - :type scope_type: str - :param securing_host_id: - :type securing_host_id: str - :param special_type: - :type special_type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, - 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, - 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, - 'scope_id': {'key': 'scopeId', 'type': 'str'}, - 'scope_name': {'key': 'scopeName', 'type': 'str'}, - 'scope_type': {'key': 'scopeType', 'type': 'str'}, - 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, - 'special_type': {'key': 'specialType', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): - super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) - self.description = description - self.is_cross_project = is_cross_project - self.is_deleted = is_deleted - self.is_global_scope = is_global_scope - self.is_restricted_visible = is_restricted_visible - self.local_scope_id = local_scope_id - self.scope_id = scope_id - self.scope_name = scope_name - self.scope_type = scope_type - self.securing_host_id = securing_host_id - self.special_type = special_type diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py deleted file mode 100644 index 7f518143..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/graph_member.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject import GraphSubject - - -class GraphMember(GraphSubject): - """GraphMember. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. - :type principal_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'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): - super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) - self.cuid = cuid - self.domain = domain - self.mail_address = mail_address - self.principal_name = principal_name diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py deleted file mode 100644 index 3d92d54c..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class GraphSubject(GraphSubjectBase): - """GraphSubject. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): - super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) - self.legacy_descriptor = legacy_descriptor - self.origin = origin - self.origin_id = origin_id - self.subject_kind = subject_kind diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py b/vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py deleted file mode 100644 index e04a89ed..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/graph_user.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_member import GraphMember - - -class GraphUser(GraphMember): - """GraphUser. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. - :type legacy_descriptor: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. - :type principal_name: str - :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. - :type meta_type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'meta_type': {'key': 'metaType', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): - super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) - self.meta_type = meta_type diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group.py b/vsts/vsts/member_entitlement_management/v4_1/models/group.py deleted file mode 100644 index 8bb6729e..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/group.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Group(Model): - """Group. - - :param display_name: Display Name of the Group - :type display_name: str - :param group_type: Group Type - :type group_type: object - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'group_type': {'key': 'groupType', 'type': 'object'} - } - - def __init__(self, display_name=None, group_type=None): - super(Group, self).__init__() - self.display_name = display_name - self.group_type = group_type diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py deleted file mode 100644 index 3a3d6c94..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GroupEntitlement(Model): - """GroupEntitlement. - - :param extension_rules: Extension Rules. - :type extension_rules: list of :class:`Extension ` - :param group: Member reference. - :type group: :class:`GraphGroup ` - :param id: The unique identifier which matches the Id of the GraphMember. - :type id: str - :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). - :type last_executed: datetime - :param license_rule: License Rule. - :type license_rule: :class:`AccessLevel ` - :param members: Group members. Only used when creating a new group. - :type members: list of :class:`UserEntitlement ` - :param project_entitlements: Relation between a project and the member's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` - :param status: The status of the group rule. - :type status: object - """ - - _attribute_map = { - 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, - 'group': {'key': 'group', 'type': 'GraphGroup'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_executed': {'key': 'lastExecuted', 'type': 'iso-8601'}, - 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, - 'members': {'key': 'members', 'type': '[UserEntitlement]'}, - 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, extension_rules=None, group=None, id=None, last_executed=None, license_rule=None, members=None, project_entitlements=None, status=None): - super(GroupEntitlement, self).__init__() - self.extension_rules = extension_rules - self.group = group - self.id = id - self.last_executed = last_executed - self.license_rule = license_rule - self.members = members - self.project_entitlements = project_entitlements - self.status = status diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py deleted file mode 100644 index 1ce5575e..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/group_entitlement_operation_reference.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .operation_reference import OperationReference - - -class GroupEntitlementOperationReference(OperationReference): - """GroupEntitlementOperationReference. - - :param id: Unique identifier for the operation. - :type id: str - :param plugin_id: Unique identifier for the plugin. - :type plugin_id: str - :param status: The current status of the operation. - :type status: object - :param url: URL to get the full operation object. - :type url: str - :param completed: Operation completed with success or failure. - :type completed: bool - :param have_results_succeeded: True if all operations were successful. - :type have_results_succeeded: bool - :param results: List of results for each operation. - :type results: list of :class:`GroupOperationResult ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'plugin_id': {'key': 'pluginId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'completed': {'key': 'completed', 'type': 'bool'}, - 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, - 'results': {'key': 'results', 'type': '[GroupOperationResult]'} - } - - def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): - super(GroupEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) - self.completed = completed - self.have_results_succeeded = have_results_succeeded - self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py deleted file mode 100644 index 67bb685d..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/group_operation_result.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .base_operation_result import BaseOperationResult - - -class GroupOperationResult(BaseOperationResult): - """GroupOperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - :param group_id: Identifier of the Group being acted upon - :type group_id: str - :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'GroupEntitlement'} - } - - def __init__(self, errors=None, is_success=None, group_id=None, result=None): - super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) - self.group_id = group_id - self.result = result diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/group_option.py b/vsts/vsts/member_entitlement_management/v4_1/models/group_option.py deleted file mode 100644 index 6d56eebc..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/group_option.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GroupOption(Model): - """GroupOption. - - :param access_level: Access Level - :type access_level: :class:`AccessLevel ` - :param group: Group - :type group: :class:`Group ` - """ - - _attribute_map = { - 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, - 'group': {'key': 'group', 'type': 'Group'} - } - - def __init__(self, access_level=None, group=None): - super(GroupOption, self).__init__() - self.access_level = access_level - self.group = group diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py b/vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py b/vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py deleted file mode 100644 index acd6d6eb..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/license_summary_data.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .summary_data import SummaryData - - -class LicenseSummaryData(SummaryData): - """LicenseSummaryData. - - :param assigned: Count of Licenses already assigned. - :type assigned: int - :param available: Available Count. - :type available: int - :param included_quantity: Quantity - :type included_quantity: int - :param total: Total Count. - :type total: int - :param account_license_type: Type of Account License. - :type account_license_type: object - :param disabled: Count of Disabled Licenses. - :type disabled: int - :param is_purchasable: Designates if this license quantity can be changed through purchase - :type is_purchasable: bool - :param license_name: Name of the License. - :type license_name: str - :param msdn_license_type: Type of MSDN License. - :type msdn_license_type: object - :param next_billing_date: Specifies the date when billing will charge for paid licenses - :type next_billing_date: datetime - :param source: Source of the License. - :type source: object - :param total_after_next_billing_date: Total license count after next billing cycle - :type total_after_next_billing_date: int - """ - - _attribute_map = { - 'assigned': {'key': 'assigned', 'type': 'int'}, - 'available': {'key': 'available', 'type': 'int'}, - 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, - 'total': {'key': 'total', 'type': 'int'}, - 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, - 'disabled': {'key': 'disabled', 'type': 'int'}, - 'is_purchasable': {'key': 'isPurchasable', 'type': 'bool'}, - 'license_name': {'key': 'licenseName', 'type': 'str'}, - 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, - 'next_billing_date': {'key': 'nextBillingDate', 'type': 'iso-8601'}, - 'source': {'key': 'source', 'type': 'object'}, - 'total_after_next_billing_date': {'key': 'totalAfterNextBillingDate', 'type': 'int'} - } - - def __init__(self, assigned=None, available=None, included_quantity=None, total=None, account_license_type=None, disabled=None, is_purchasable=None, license_name=None, msdn_license_type=None, next_billing_date=None, source=None, total_after_next_billing_date=None): - super(LicenseSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) - self.account_license_type = account_license_type - self.disabled = disabled - self.is_purchasable = is_purchasable - self.license_name = license_name - self.msdn_license_type = msdn_license_type - self.next_billing_date = next_billing_date - self.source = source - self.total_after_next_billing_date = total_after_next_billing_date diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py deleted file mode 100644 index 897d3ad3..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement.py +++ /dev/null @@ -1,46 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .user_entitlement import UserEntitlement - - -class MemberEntitlement(UserEntitlement): - """MemberEntitlement. - - :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` - :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` - :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` - :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. - :type id: str - :param last_accessed_date: [Readonly] Date the user last accessed the collection. - :type last_accessed_date: datetime - :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` - :param user: User reference. - :type user: :class:`GraphUser ` - :param member: Member reference - :type member: :class:`GraphMember ` - """ - - _attribute_map = { - 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, - 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, - 'user': {'key': 'user', 'type': 'GraphUser'}, - 'member': {'key': 'member', 'type': 'GraphMember'} - } - - def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None, member=None): - super(MemberEntitlement, self).__init__(access_level=access_level, extensions=extensions, group_assignments=group_assignments, id=id, last_accessed_date=last_accessed_date, project_entitlements=project_entitlements, user=user) - self.member = member diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py deleted file mode 100644 index a07854bd..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlement_operation_reference.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .operation_reference import OperationReference - - -class MemberEntitlementOperationReference(OperationReference): - """MemberEntitlementOperationReference. - - :param id: Unique identifier for the operation. - :type id: str - :param plugin_id: Unique identifier for the plugin. - :type plugin_id: str - :param status: The current status of the operation. - :type status: object - :param url: URL to get the full operation object. - :type url: str - :param completed: Operation completed with success or failure - :type completed: bool - :param have_results_succeeded: True if all operations were successful - :type have_results_succeeded: bool - :param results: List of results for each operation - :type results: list of :class:`OperationResult ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'plugin_id': {'key': 'pluginId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'completed': {'key': 'completed', 'type': 'bool'}, - 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, - 'results': {'key': 'results', 'type': '[OperationResult]'} - } - - def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): - super(MemberEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) - self.completed = completed - self.have_results_succeeded = have_results_succeeded - self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py deleted file mode 100644 index c5f20a5e..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_patch_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase - - -class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): - """MemberEntitlementsPatchResponse. - - :param is_success: True if all operations were successful. - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` - :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, - 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} - } - - def __init__(self, is_success=None, member_entitlement=None, operation_results=None): - super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) - self.operation_results = operation_results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py deleted file mode 100644 index ab88e7fd..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_post_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .member_entitlements_response_base import MemberEntitlementsResponseBase - - -class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): - """MemberEntitlementsPostResponse. - - :param is_success: True if all operations were successful. - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` - :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, - 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} - } - - def __init__(self, is_success=None, member_entitlement=None, operation_result=None): - super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) - self.operation_result = operation_result diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py b/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py deleted file mode 100644 index 241ca3f0..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/member_entitlements_response_base.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MemberEntitlementsResponseBase(Model): - """MemberEntitlementsResponseBase. - - :param is_success: True if all operations were successful. - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} - } - - def __init__(self, is_success=None, member_entitlement=None): - super(MemberEntitlementsResponseBase, self).__init__() - self.is_success = is_success - self.member_entitlement = member_entitlement diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py deleted file mode 100644 index cdbef013..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/operation_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationReference(Model): - """OperationReference. - - :param id: Unique identifier for the operation. - :type id: str - :param plugin_id: Unique identifier for the plugin. - :type plugin_id: str - :param status: The current status of the operation. - :type status: object - :param url: URL to get the full operation object. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'plugin_id': {'key': 'pluginId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, plugin_id=None, status=None, url=None): - super(OperationReference, self).__init__() - self.id = id - self.plugin_id = plugin_id - self.status = status - self.url = url diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py deleted file mode 100644 index 7624a6f9..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/operation_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationResult(Model): - """OperationResult. - - :param errors: List of error codes paired with their corresponding error messages. - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation. - :type is_success: bool - :param member_id: Identifier of the Member being acted upon. - :type member_id: str - :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`MemberEntitlement ` - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_id': {'key': 'memberId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'MemberEntitlement'} - } - - def __init__(self, errors=None, is_success=None, member_id=None, result=None): - super(OperationResult, self).__init__() - self.errors = errors - self.is_success = is_success - self.member_id = member_id - self.result = result diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/paged_graph_member_list.py b/vsts/vsts/member_entitlement_management/v4_1/models/paged_graph_member_list.py deleted file mode 100644 index 99ca90c5..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/paged_graph_member_list.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PagedGraphMemberList(Model): - """PagedGraphMemberList. - - :param continuation_token: - :type continuation_token: str - :param members: - :type members: list of :class:`UserEntitlement ` - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'members': {'key': 'members', 'type': '[UserEntitlement]'} - } - - def __init__(self, continuation_token=None, members=None): - super(PagedGraphMemberList, self).__init__() - self.continuation_token = continuation_token - self.members = members diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py deleted file mode 100644 index e443fcc4..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/project_entitlement.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectEntitlement(Model): - """ProjectEntitlement. - - :param assignment_source: Assignment Source (e.g. Group or Unknown). - :type assignment_source: object - :param group: Project Group (e.g. Contributor, Reader etc.) - :type group: :class:`Group ` - :param is_project_permission_inherited: Whether the user is inheriting permissions to a project through a VSTS or AAD group membership. - :type is_project_permission_inherited: bool - :param project_ref: Project Ref - :type project_ref: :class:`ProjectRef ` - :param team_refs: Team Ref. - :type team_refs: list of :class:`TeamRef ` - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'group': {'key': 'group', 'type': 'Group'}, - 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, - 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, - 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} - } - - def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_ref=None, team_refs=None): - super(ProjectEntitlement, self).__init__() - self.assignment_source = assignment_source - self.group = group - self.is_project_permission_inherited = is_project_permission_inherited - self.project_ref = project_ref - self.team_refs = team_refs diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py b/vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py deleted file mode 100644 index f25727c4..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/project_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectRef(Model): - """ProjectRef. - - :param id: Project ID. - :type id: str - :param name: Project Name. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectRef, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py b/vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py b/vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py deleted file mode 100644 index 8bb32cea..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/summary_data.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SummaryData(Model): - """SummaryData. - - :param assigned: Count of Licenses already assigned. - :type assigned: int - :param available: Available Count. - :type available: int - :param included_quantity: Quantity - :type included_quantity: int - :param total: Total Count. - :type total: int - """ - - _attribute_map = { - 'assigned': {'key': 'assigned', 'type': 'int'}, - 'available': {'key': 'available', 'type': 'int'}, - 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, - 'total': {'key': 'total', 'type': 'int'} - } - - def __init__(self, assigned=None, available=None, included_quantity=None, total=None): - super(SummaryData, self).__init__() - self.assigned = assigned - self.available = available - self.included_quantity = included_quantity - self.total = total diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py b/vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py deleted file mode 100644 index 56471504..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/team_ref.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamRef(Model): - """TeamRef. - - :param id: Team ID - :type id: str - :param name: Team Name - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(TeamRef, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py deleted file mode 100644 index e1b27dfa..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserEntitlement(Model): - """UserEntitlement. - - :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` - :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` - :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` - :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. - :type id: str - :param last_accessed_date: [Readonly] Date the user last accessed the collection. - :type last_accessed_date: datetime - :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` - :param user: User reference. - :type user: :class:`GraphUser ` - """ - - _attribute_map = { - 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, - 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, - 'user': {'key': 'user', 'type': 'GraphUser'} - } - - def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None): - super(UserEntitlement, self).__init__() - self.access_level = access_level - self.extensions = extensions - self.group_assignments = group_assignments - self.id = id - self.last_accessed_date = last_accessed_date - self.project_entitlements = project_entitlements - self.user = user diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py deleted file mode 100644 index 96ef406e..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .operation_reference import OperationReference - - -class UserEntitlementOperationReference(OperationReference): - """UserEntitlementOperationReference. - - :param id: Unique identifier for the operation. - :type id: str - :param plugin_id: Unique identifier for the plugin. - :type plugin_id: str - :param status: The current status of the operation. - :type status: object - :param url: URL to get the full operation object. - :type url: str - :param completed: Operation completed with success or failure. - :type completed: bool - :param have_results_succeeded: True if all operations were successful. - :type have_results_succeeded: bool - :param results: List of results for each operation. - :type results: list of :class:`UserEntitlementOperationResult ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'plugin_id': {'key': 'pluginId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'completed': {'key': 'completed', 'type': 'bool'}, - 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, - 'results': {'key': 'results', 'type': '[UserEntitlementOperationResult]'} - } - - def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): - super(UserEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) - self.completed = completed - self.have_results_succeeded = have_results_succeeded - self.results = results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py deleted file mode 100644 index 0edad338..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserEntitlementOperationResult(Model): - """UserEntitlementOperationResult. - - :param errors: List of error codes paired with their corresponding error messages. - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation. - :type is_success: bool - :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`UserEntitlement ` - :param user_id: Identifier of the Member being acted upon. - :type user_id: str - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'result': {'key': 'result', 'type': 'UserEntitlement'}, - 'user_id': {'key': 'userId', 'type': 'str'} - } - - def __init__(self, errors=None, is_success=None, result=None, user_id=None): - super(UserEntitlementOperationResult, self).__init__() - self.errors = errors - self.is_success = is_success - self.result = result - self.user_id = user_id diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py deleted file mode 100644 index c4e5ff12..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_patch_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .user_entitlements_response_base import UserEntitlementsResponseBase - - -class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): - """UserEntitlementsPatchResponse. - - :param is_success: True if all operations were successful. - :type is_success: bool - :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` - :param operation_results: List of results for each operation. - :type operation_results: list of :class:`UserEntitlementOperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, - 'operation_results': {'key': 'operationResults', 'type': '[UserEntitlementOperationResult]'} - } - - def __init__(self, is_success=None, user_entitlement=None, operation_results=None): - super(UserEntitlementsPatchResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) - self.operation_results = operation_results diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py deleted file mode 100644 index 7977340b..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_post_response.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .user_entitlements_response_base import UserEntitlementsResponseBase - - -class UserEntitlementsPostResponse(UserEntitlementsResponseBase): - """UserEntitlementsPostResponse. - - :param is_success: True if all operations were successful. - :type is_success: bool - :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` - :param operation_result: Operation result. - :type operation_result: :class:`UserEntitlementOperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, - 'operation_result': {'key': 'operationResult', 'type': 'UserEntitlementOperationResult'} - } - - def __init__(self, is_success=None, user_entitlement=None, operation_result=None): - super(UserEntitlementsPostResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) - self.operation_result = operation_result diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py b/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py deleted file mode 100644 index 8e02e53f..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/user_entitlements_response_base.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UserEntitlementsResponseBase(Model): - """UserEntitlementsResponseBase. - - :param is_success: True if all operations were successful. - :type is_success: bool - :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'} - } - - def __init__(self, is_success=None, user_entitlement=None): - super(UserEntitlementsResponseBase, self).__init__() - self.is_success = is_success - self.user_entitlement = user_entitlement diff --git a/vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py b/vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py deleted file mode 100644 index 2105e094..00000000 --- a/vsts/vsts/member_entitlement_management/v4_1/models/users_summary.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UsersSummary(Model): - """UsersSummary. - - :param available_access_levels: Available Access Levels. - :type available_access_levels: list of :class:`AccessLevel ` - :param extensions: Summary of Extensions in the account. - :type extensions: list of :class:`ExtensionSummaryData ` - :param group_options: Group Options. - :type group_options: list of :class:`GroupOption ` - :param licenses: Summary of Licenses in the Account. - :type licenses: list of :class:`LicenseSummaryData ` - :param project_refs: Summary of Projects in the Account. - :type project_refs: list of :class:`ProjectRef ` - """ - - _attribute_map = { - 'available_access_levels': {'key': 'availableAccessLevels', 'type': '[AccessLevel]'}, - 'extensions': {'key': 'extensions', 'type': '[ExtensionSummaryData]'}, - 'group_options': {'key': 'groupOptions', 'type': '[GroupOption]'}, - 'licenses': {'key': 'licenses', 'type': '[LicenseSummaryData]'}, - 'project_refs': {'key': 'projectRefs', 'type': '[ProjectRef]'} - } - - def __init__(self, available_access_levels=None, extensions=None, group_options=None, licenses=None, project_refs=None): - super(UsersSummary, self).__init__() - self.available_access_levels = available_access_levels - self.extensions = extensions - self.group_options = group_options - self.licenses = licenses - self.project_refs = project_refs diff --git a/vsts/vsts/models/__init__.py b/vsts/vsts/models/__init__.py deleted file mode 100644 index 1ac30840..00000000 --- a/vsts/vsts/models/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .api_resource_location import ApiResourceLocation -from ..customer_intelligence.v4_0.models.customer_intelligence_event import CustomerIntelligenceEvent -from .improper_exception import ImproperException -from ..location.v4_0.models.resource_area_info import ResourceAreaInfo -from .system_exception import SystemException -from .vss_json_collection_wrapper_base import VssJsonCollectionWrapperBase -from .vss_json_collection_wrapper import VssJsonCollectionWrapper -from .wrapped_exception import WrappedException - -__all__ = [ - 'ApiResourceLocation', - 'CustomerIntelligenceEvent', - 'ImproperException', - 'ResourceAreaInfo', - 'SystemException', - 'VssJsonCollectionWrapperBase', - 'VssJsonCollectionWrapper', - 'WrappedException' -] diff --git a/vsts/vsts/models/api_resource_location.py b/vsts/vsts/models/api_resource_location.py deleted file mode 100644 index c45b01c7..00000000 --- a/vsts/vsts/models/api_resource_location.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApiResourceLocation(Model): - """ApiResourceLocation. - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'area': {'key': 'area', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'route_template': {'key': 'routeTemplate', 'type': 'str'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, - 'min_version': {'key': 'minVersion', 'type': 'float'}, - 'max_version': {'key': 'maxVersion', 'type': 'float'}, - 'released_version': {'key': 'releasedVersion', 'type': 'str'}, - } - - def __init__(self, id=None, area=None, resource_name=None, - route_template=None, resource_version=None, - min_version=None, max_version=None, - released_version=None): - super(ApiResourceLocation, self).__init__() - self.id = id - self.area = area - self.resource_name = resource_name - self.route_template = route_template - self.resource_version = resource_version - self.min_version = min_version - self.max_version = max_version - self.released_version = released_version diff --git a/vsts/vsts/models/improper_exception.py b/vsts/vsts/models/improper_exception.py deleted file mode 100644 index 771ba338..00000000 --- a/vsts/vsts/models/improper_exception.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ImproperException(Model): - """ImproperException. - :param message: - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'Message', 'type': 'str'} - } - - def __init__(self, message=None): - super(ImproperException, self).__init__() - self.message = message diff --git a/vsts/vsts/models/system_exception.py b/vsts/vsts/models/system_exception.py deleted file mode 100644 index 7659b93b..00000000 --- a/vsts/vsts/models/system_exception.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SystemException(Model): - """SystemException. - :param class_name: - :type class_name: str - :param inner_exception: - :type inner_exception: :class:`SystemException ` - :param message: - :type message: str - """ - - _attribute_map = { - 'class_name': {'key': 'ClassName', 'type': 'str'}, - 'message': {'key': 'Message', 'type': 'str'}, - 'inner_exception': {'key': 'InnerException', 'type': 'SystemException'} - } - - def __init__(self, class_name=None, message=None, inner_exception=None): - super(SystemException, self).__init__() - self.class_name = class_name - self.message = message - self.inner_exception = inner_exception diff --git a/vsts/vsts/models/vss_json_collection_wrapper.py b/vsts/vsts/models/vss_json_collection_wrapper.py deleted file mode 100644 index 45245a58..00000000 --- a/vsts/vsts/models/vss_json_collection_wrapper.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .vss_json_collection_wrapper_base import VssJsonCollectionWrapperBase - - -class VssJsonCollectionWrapper(VssJsonCollectionWrapperBase): - """VssJsonCollectionWrapper. - - :param count: - :type count: int - :param value: - :type value: object - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, count=None, value=None): - super(VssJsonCollectionWrapper, self).__init__(count=count) - self.value = value diff --git a/vsts/vsts/models/vss_json_collection_wrapper_base.py b/vsts/vsts/models/vss_json_collection_wrapper_base.py deleted file mode 100644 index 82460267..00000000 --- a/vsts/vsts/models/vss_json_collection_wrapper_base.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VssJsonCollectionWrapperBase(Model): - """VssJsonCollectionWrapperBase. - - :param count: - :type count: int - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'} - } - - def __init__(self, count=None): - super(VssJsonCollectionWrapperBase, self).__init__() - self.count = count diff --git a/vsts/vsts/models/wrapped_exception.py b/vsts/vsts/models/wrapped_exception.py deleted file mode 100644 index 537deb0c..00000000 --- a/vsts/vsts/models/wrapped_exception.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WrappedException(Model): - """WrappedException. - :param exception_id: - :type exception_id: str - :param inner_exception: - :type inner_exception: :class:`WrappedException ` - :param message: - :type message: str - :param type_name: - :type type_name: str - :param type_key: - :type type_key: str - :param error_code: - :type error_code: int - :param event_id: - :type event_id: int - :param custom_properties: - :type custom_properties: dict - """ - - _attribute_map = { - 'exception_id': {'key': '$id', 'type': 'str'}, - 'inner_exception': {'key': 'innerException', 'type': 'WrappedException'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type_name': {'key': 'typeName', 'type': 'str'}, - 'type_key': {'key': 'typeKey', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'event_id': {'key': 'eventId', 'type': 'int'}, - 'custom_properties': {'key': 'customProperties', 'type': '{object}'} - } - - def __init__(self, exception_id=None, inner_exception=None, message=None, - type_name=None, type_key=None, error_code=None, event_id=None, custom_properties=None): - super(WrappedException, self).__init__() - self.exception_id = exception_id - self.inner_exception = inner_exception - self.message = message - self.type_name = type_name - self.type_key = type_key - self.error_code = error_code - self.event_id = event_id - self.custom_properties = custom_properties diff --git a/vsts/vsts/notification/__init__.py b/vsts/vsts/notification/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/notification/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/notification/v4_0/__init__.py b/vsts/vsts/notification/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/notification/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/notification/v4_0/models/__init__.py b/vsts/vsts/notification/v4_0/models/__init__.py deleted file mode 100644 index 56c91337..00000000 --- a/vsts/vsts/notification/v4_0/models/__init__.py +++ /dev/null @@ -1,113 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .artifact_filter import ArtifactFilter -from .base_subscription_filter import BaseSubscriptionFilter -from .batch_notification_operation import BatchNotificationOperation -from .event_actor import EventActor -from .event_scope import EventScope -from .events_evaluation_result import EventsEvaluationResult -from .expression_filter_clause import ExpressionFilterClause -from .expression_filter_group import ExpressionFilterGroup -from .expression_filter_model import ExpressionFilterModel -from .field_input_values import FieldInputValues -from .field_values_query import FieldValuesQuery -from .identity_ref import IdentityRef -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .input_values_query import InputValuesQuery -from .iSubscription_channel import ISubscriptionChannel -from .iSubscription_filter import ISubscriptionFilter -from .notification_event_field import NotificationEventField -from .notification_event_field_operator import NotificationEventFieldOperator -from .notification_event_field_type import NotificationEventFieldType -from .notification_event_publisher import NotificationEventPublisher -from .notification_event_role import NotificationEventRole -from .notification_event_type import NotificationEventType -from .notification_event_type_category import NotificationEventTypeCategory -from .notification_query_condition import NotificationQueryCondition -from .notification_reason import NotificationReason -from .notifications_evaluation_result import NotificationsEvaluationResult -from .notification_statistic import NotificationStatistic -from .notification_statistics_query import NotificationStatisticsQuery -from .notification_statistics_query_conditions import NotificationStatisticsQueryConditions -from .notification_subscriber import NotificationSubscriber -from .notification_subscriber_update_parameters import NotificationSubscriberUpdateParameters -from .notification_subscription import NotificationSubscription -from .notification_subscription_create_parameters import NotificationSubscriptionCreateParameters -from .notification_subscription_template import NotificationSubscriptionTemplate -from .notification_subscription_update_parameters import NotificationSubscriptionUpdateParameters -from .operator_constraint import OperatorConstraint -from .reference_links import ReferenceLinks -from .subscription_admin_settings import SubscriptionAdminSettings -from .subscription_channel_with_address import SubscriptionChannelWithAddress -from .subscription_evaluation_request import SubscriptionEvaluationRequest -from .subscription_evaluation_result import SubscriptionEvaluationResult -from .subscription_evaluation_settings import SubscriptionEvaluationSettings -from .subscription_management import SubscriptionManagement -from .subscription_query import SubscriptionQuery -from .subscription_query_condition import SubscriptionQueryCondition -from .subscription_scope import SubscriptionScope -from .subscription_user_settings import SubscriptionUserSettings -from .value_definition import ValueDefinition -from .vss_notification_event import VssNotificationEvent - -__all__ = [ - 'ArtifactFilter', - 'BaseSubscriptionFilter', - 'BatchNotificationOperation', - 'EventActor', - 'EventScope', - 'EventsEvaluationResult', - 'ExpressionFilterClause', - 'ExpressionFilterGroup', - 'ExpressionFilterModel', - 'FieldInputValues', - 'FieldValuesQuery', - 'IdentityRef', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'ISubscriptionChannel', - 'ISubscriptionFilter', - 'NotificationEventField', - 'NotificationEventFieldOperator', - 'NotificationEventFieldType', - 'NotificationEventPublisher', - 'NotificationEventRole', - 'NotificationEventType', - 'NotificationEventTypeCategory', - 'NotificationQueryCondition', - 'NotificationReason', - 'NotificationsEvaluationResult', - 'NotificationStatistic', - 'NotificationStatisticsQuery', - 'NotificationStatisticsQueryConditions', - 'NotificationSubscriber', - 'NotificationSubscriberUpdateParameters', - 'NotificationSubscription', - 'NotificationSubscriptionCreateParameters', - 'NotificationSubscriptionTemplate', - 'NotificationSubscriptionUpdateParameters', - 'OperatorConstraint', - 'ReferenceLinks', - 'SubscriptionAdminSettings', - 'SubscriptionChannelWithAddress', - 'SubscriptionEvaluationRequest', - 'SubscriptionEvaluationResult', - 'SubscriptionEvaluationSettings', - 'SubscriptionManagement', - 'SubscriptionQuery', - 'SubscriptionQueryCondition', - 'SubscriptionScope', - 'SubscriptionUserSettings', - 'ValueDefinition', - 'VssNotificationEvent', -] diff --git a/vsts/vsts/notification/v4_0/models/artifact_filter.py b/vsts/vsts/notification/v4_0/models/artifact_filter.py deleted file mode 100644 index 633c1aff..00000000 --- a/vsts/vsts/notification/v4_0/models/artifact_filter.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .base_subscription_filter import BaseSubscriptionFilter - - -class ArtifactFilter(BaseSubscriptionFilter): - """ArtifactFilter. - - :param event_type: - :type event_type: str - :param artifact_id: - :type artifact_id: str - :param artifact_type: - :type artifact_type: str - :param artifact_uri: - :type artifact_uri: str - :param type: - :type type: str - """ - - _attribute_map = { - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'artifact_type': {'key': 'artifactType', 'type': 'str'}, - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, event_type=None, artifact_id=None, artifact_type=None, artifact_uri=None, type=None): - super(ArtifactFilter, self).__init__(event_type=event_type) - self.artifact_id = artifact_id - self.artifact_type = artifact_type - self.artifact_uri = artifact_uri - self.type = type diff --git a/vsts/vsts/notification/v4_0/models/base_subscription_filter.py b/vsts/vsts/notification/v4_0/models/base_subscription_filter.py deleted file mode 100644 index 64cfbeca..00000000 --- a/vsts/vsts/notification/v4_0/models/base_subscription_filter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BaseSubscriptionFilter(Model): - """BaseSubscriptionFilter. - - :param event_type: - :type event_type: str - :param type: - :type type: str - """ - - _attribute_map = { - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, event_type=None, type=None): - super(BaseSubscriptionFilter, self).__init__() - self.event_type = event_type - self.type = type diff --git a/vsts/vsts/notification/v4_0/models/batch_notification_operation.py b/vsts/vsts/notification/v4_0/models/batch_notification_operation.py deleted file mode 100644 index e8040157..00000000 --- a/vsts/vsts/notification/v4_0/models/batch_notification_operation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BatchNotificationOperation(Model): - """BatchNotificationOperation. - - :param notification_operation: - :type notification_operation: object - :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` - """ - - _attribute_map = { - 'notification_operation': {'key': 'notificationOperation', 'type': 'object'}, - 'notification_query_conditions': {'key': 'notificationQueryConditions', 'type': '[NotificationQueryCondition]'} - } - - def __init__(self, notification_operation=None, notification_query_conditions=None): - super(BatchNotificationOperation, self).__init__() - self.notification_operation = notification_operation - self.notification_query_conditions = notification_query_conditions diff --git a/vsts/vsts/notification/v4_0/models/event_actor.py b/vsts/vsts/notification/v4_0/models/event_actor.py deleted file mode 100644 index 00258294..00000000 --- a/vsts/vsts/notification/v4_0/models/event_actor.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventActor(Model): - """EventActor. - - :param id: Required: This is the identity of the user for the specified role. - :type id: str - :param role: Required: The event specific name of a role. - :type role: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'role': {'key': 'role', 'type': 'str'} - } - - def __init__(self, id=None, role=None): - super(EventActor, self).__init__() - self.id = id - self.role = role diff --git a/vsts/vsts/notification/v4_0/models/event_scope.py b/vsts/vsts/notification/v4_0/models/event_scope.py deleted file mode 100644 index e15c58fd..00000000 --- a/vsts/vsts/notification/v4_0/models/event_scope.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventScope(Model): - """EventScope. - - :param id: Required: This is the identity of the scope for the type. - :type id: str - :param type: Required: The event specific type of a scope. - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, id=None, type=None): - super(EventScope, self).__init__() - self.id = id - self.type = type diff --git a/vsts/vsts/notification/v4_0/models/events_evaluation_result.py b/vsts/vsts/notification/v4_0/models/events_evaluation_result.py deleted file mode 100644 index cf73a07d..00000000 --- a/vsts/vsts/notification/v4_0/models/events_evaluation_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventsEvaluationResult(Model): - """EventsEvaluationResult. - - :param count: Count of events evaluated. - :type count: int - :param matched_count: Count of matched events. - :type matched_count: int - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'matched_count': {'key': 'matchedCount', 'type': 'int'} - } - - def __init__(self, count=None, matched_count=None): - super(EventsEvaluationResult, self).__init__() - self.count = count - self.matched_count = matched_count diff --git a/vsts/vsts/notification/v4_0/models/expression_filter_clause.py b/vsts/vsts/notification/v4_0/models/expression_filter_clause.py deleted file mode 100644 index 908ba993..00000000 --- a/vsts/vsts/notification/v4_0/models/expression_filter_clause.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExpressionFilterClause(Model): - """ExpressionFilterClause. - - :param field_name: - :type field_name: str - :param index: The order in which this clause appeared in the filter query - :type index: int - :param logical_operator: Logical Operator 'AND', 'OR' or NULL (only for the first clause in the filter) - :type logical_operator: str - :param operator: - :type operator: str - :param value: - :type value: str - """ - - _attribute_map = { - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'index': {'key': 'index', 'type': 'int'}, - 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): - super(ExpressionFilterClause, self).__init__() - self.field_name = field_name - self.index = index - self.logical_operator = logical_operator - self.operator = operator - self.value = value diff --git a/vsts/vsts/notification/v4_0/models/expression_filter_group.py b/vsts/vsts/notification/v4_0/models/expression_filter_group.py deleted file mode 100644 index d7c493bf..00000000 --- a/vsts/vsts/notification/v4_0/models/expression_filter_group.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExpressionFilterGroup(Model): - """ExpressionFilterGroup. - - :param end: The index of the last FilterClause in this group - :type end: int - :param level: Level of the group, since groups can be nested for each nested group the level will increase by 1 - :type level: int - :param start: The index of the first FilterClause in this group - :type start: int - """ - - _attribute_map = { - 'end': {'key': 'end', 'type': 'int'}, - 'level': {'key': 'level', 'type': 'int'}, - 'start': {'key': 'start', 'type': 'int'} - } - - def __init__(self, end=None, level=None, start=None): - super(ExpressionFilterGroup, self).__init__() - self.end = end - self.level = level - self.start = start diff --git a/vsts/vsts/notification/v4_0/models/expression_filter_model.py b/vsts/vsts/notification/v4_0/models/expression_filter_model.py deleted file mode 100644 index 9e483cb0..00000000 --- a/vsts/vsts/notification/v4_0/models/expression_filter_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExpressionFilterModel(Model): - """ExpressionFilterModel. - - :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` - :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` - :param max_group_level: Max depth of the Subscription tree - :type max_group_level: int - """ - - _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[ExpressionFilterClause]'}, - 'groups': {'key': 'groups', 'type': '[ExpressionFilterGroup]'}, - 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} - } - - def __init__(self, clauses=None, groups=None, max_group_level=None): - super(ExpressionFilterModel, self).__init__() - self.clauses = clauses - self.groups = groups - self.max_group_level = max_group_level diff --git a/vsts/vsts/notification/v4_0/models/field_input_values.py b/vsts/vsts/notification/v4_0/models/field_input_values.py deleted file mode 100644 index 4cfdea93..00000000 --- a/vsts/vsts/notification/v4_0/models/field_input_values.py +++ /dev/null @@ -1,46 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .input_values import InputValues - - -class FieldInputValues(InputValues): - """FieldInputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - :param operators: - :type operators: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, - 'operators': {'key': 'operators', 'type': 'str'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): - super(FieldInputValues, self).__init__(default_value=default_value, error=error, input_id=input_id, is_disabled=is_disabled, is_limited_to_possible_values=is_limited_to_possible_values, is_read_only=is_read_only, possible_values=possible_values) - self.operators = operators diff --git a/vsts/vsts/notification/v4_0/models/field_values_query.py b/vsts/vsts/notification/v4_0/models/field_values_query.py deleted file mode 100644 index f878970a..00000000 --- a/vsts/vsts/notification/v4_0/models/field_values_query.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .input_values_query import InputValuesQuery - - -class FieldValuesQuery(InputValuesQuery): - """FieldValuesQuery. - - :param current_values: - :type current_values: dict - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - :param input_values: - :type input_values: list of :class:`FieldInputValues ` - :param scope: - :type scope: str - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'resource': {'key': 'resource', 'type': 'object'}, - 'input_values': {'key': 'inputValues', 'type': '[FieldInputValues]'}, - 'scope': {'key': 'scope', 'type': 'str'} - } - - def __init__(self, current_values=None, resource=None, input_values=None, scope=None): - super(FieldValuesQuery, self).__init__(current_values=current_values, resource=resource) - self.input_values = input_values - self.scope = scope diff --git a/vsts/vsts/notification/v4_0/models/iSubscription_channel.py b/vsts/vsts/notification/v4_0/models/iSubscription_channel.py deleted file mode 100644 index 9f8ed3c5..00000000 --- a/vsts/vsts/notification/v4_0/models/iSubscription_channel.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ISubscriptionChannel(Model): - """ISubscriptionChannel. - - :param type: - :type type: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, type=None): - super(ISubscriptionChannel, self).__init__() - self.type = type diff --git a/vsts/vsts/notification/v4_0/models/iSubscription_filter.py b/vsts/vsts/notification/v4_0/models/iSubscription_filter.py deleted file mode 100644 index c90034ca..00000000 --- a/vsts/vsts/notification/v4_0/models/iSubscription_filter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ISubscriptionFilter(Model): - """ISubscriptionFilter. - - :param event_type: - :type event_type: str - :param type: - :type type: str - """ - - _attribute_map = { - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, event_type=None, type=None): - super(ISubscriptionFilter, self).__init__() - self.event_type = event_type - self.type = type diff --git a/vsts/vsts/notification/v4_0/models/identity_ref.py b/vsts/vsts/notification/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/notification/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/notification/v4_0/models/input_value.py b/vsts/vsts/notification/v4_0/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/notification/v4_0/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/notification/v4_0/models/input_values.py b/vsts/vsts/notification/v4_0/models/input_values.py deleted file mode 100644 index 15d047fe..00000000 --- a/vsts/vsts/notification/v4_0/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/notification/v4_0/models/input_values_query.py b/vsts/vsts/notification/v4_0/models/input_values_query.py deleted file mode 100644 index 26e4c954..00000000 --- a/vsts/vsts/notification/v4_0/models/input_values_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource diff --git a/vsts/vsts/notification/v4_0/models/notification_event_field.py b/vsts/vsts/notification/v4_0/models/notification_event_field.py deleted file mode 100644 index f0154e29..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_event_field.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventField(Model): - """NotificationEventField. - - :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` - :param id: Gets or sets the unique identifier of this field. - :type id: str - :param name: Gets or sets the name of this field. - :type name: str - :param path: Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML - :type path: str - :param supported_scopes: Gets or sets the scopes that this field supports. If not specified then the event type scopes apply. - :type supported_scopes: list of str - """ - - _attribute_map = { - 'field_type': {'key': 'fieldType', 'type': 'NotificationEventFieldType'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} - } - - def __init__(self, field_type=None, id=None, name=None, path=None, supported_scopes=None): - super(NotificationEventField, self).__init__() - self.field_type = field_type - self.id = id - self.name = name - self.path = path - self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_0/models/notification_event_field_operator.py b/vsts/vsts/notification/v4_0/models/notification_event_field_operator.py deleted file mode 100644 index 20593c7d..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_event_field_operator.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventFieldOperator(Model): - """NotificationEventFieldOperator. - - :param display_name: Gets or sets the display name of an operator - :type display_name: str - :param id: Gets or sets the id of an operator - :type id: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None): - super(NotificationEventFieldOperator, self).__init__() - self.display_name = display_name - self.id = id diff --git a/vsts/vsts/notification/v4_0/models/notification_event_field_type.py b/vsts/vsts/notification/v4_0/models/notification_event_field_type.py deleted file mode 100644 index d92b825d..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_event_field_type.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventFieldType(Model): - """NotificationEventFieldType. - - :param id: Gets or sets the unique identifier of this field type. - :type id: str - :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` - :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` - :param subscription_field_type: - :type subscription_field_type: object - :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operator_constraints': {'key': 'operatorConstraints', 'type': '[OperatorConstraint]'}, - 'operators': {'key': 'operators', 'type': '[NotificationEventFieldOperator]'}, - 'subscription_field_type': {'key': 'subscriptionFieldType', 'type': 'object'}, - 'value': {'key': 'value', 'type': 'ValueDefinition'} - } - - def __init__(self, id=None, operator_constraints=None, operators=None, subscription_field_type=None, value=None): - super(NotificationEventFieldType, self).__init__() - self.id = id - self.operator_constraints = operator_constraints - self.operators = operators - self.subscription_field_type = subscription_field_type - self.value = value diff --git a/vsts/vsts/notification/v4_0/models/notification_event_publisher.py b/vsts/vsts/notification/v4_0/models/notification_event_publisher.py deleted file mode 100644 index 1d9da751..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_event_publisher.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventPublisher(Model): - """NotificationEventPublisher. - - :param id: - :type id: str - :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_management_info': {'key': 'subscriptionManagementInfo', 'type': 'SubscriptionManagement'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, subscription_management_info=None, url=None): - super(NotificationEventPublisher, self).__init__() - self.id = id - self.subscription_management_info = subscription_management_info - self.url = url diff --git a/vsts/vsts/notification/v4_0/models/notification_event_role.py b/vsts/vsts/notification/v4_0/models/notification_event_role.py deleted file mode 100644 index 51f4c866..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_event_role.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventRole(Model): - """NotificationEventRole. - - :param id: Gets or sets an Id for that role, this id is used by the event. - :type id: str - :param name: Gets or sets the Name for that role, this name is used for UI display. - :type name: str - :param supports_groups: Gets or sets whether this role can be a group or just an individual user - :type supports_groups: bool - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'supports_groups': {'key': 'supportsGroups', 'type': 'bool'} - } - - def __init__(self, id=None, name=None, supports_groups=None): - super(NotificationEventRole, self).__init__() - self.id = id - self.name = name - self.supports_groups = supports_groups diff --git a/vsts/vsts/notification/v4_0/models/notification_event_type.py b/vsts/vsts/notification/v4_0/models/notification_event_type.py deleted file mode 100644 index 17edad39..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_event_type.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventType(Model): - """NotificationEventType. - - :param category: - :type category: :class:`NotificationEventTypeCategory ` - :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa - :type color: str - :param custom_subscriptions_allowed: - :type custom_subscriptions_allowed: bool - :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` - :param fields: - :type fields: dict - :param has_initiator: - :type has_initiator: bool - :param icon: Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class - :type icon: str - :param id: Gets or sets the unique identifier of this event definition. - :type id: str - :param name: Gets or sets the name of this event definition. - :type name: str - :param roles: - :type roles: list of :class:`NotificationEventRole ` - :param supported_scopes: Gets or sets the scopes that this event type supports - :type supported_scopes: list of str - :param url: Gets or sets the rest end point to get this event type details (fields, fields types) - :type url: str - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'NotificationEventTypeCategory'}, - 'color': {'key': 'color', 'type': 'str'}, - 'custom_subscriptions_allowed': {'key': 'customSubscriptionsAllowed', 'type': 'bool'}, - 'event_publisher': {'key': 'eventPublisher', 'type': 'NotificationEventPublisher'}, - 'fields': {'key': 'fields', 'type': '{NotificationEventField}'}, - 'has_initiator': {'key': 'hasInitiator', 'type': 'bool'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[NotificationEventRole]'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, category=None, color=None, custom_subscriptions_allowed=None, event_publisher=None, fields=None, has_initiator=None, icon=None, id=None, name=None, roles=None, supported_scopes=None, url=None): - super(NotificationEventType, self).__init__() - self.category = category - self.color = color - self.custom_subscriptions_allowed = custom_subscriptions_allowed - self.event_publisher = event_publisher - self.fields = fields - self.has_initiator = has_initiator - self.icon = icon - self.id = id - self.name = name - self.roles = roles - self.supported_scopes = supported_scopes - self.url = url diff --git a/vsts/vsts/notification/v4_0/models/notification_query_condition.py b/vsts/vsts/notification/v4_0/models/notification_query_condition.py deleted file mode 100644 index 1c1b3aaf..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_query_condition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationQueryCondition(Model): - """NotificationQueryCondition. - - :param event_initiator: - :type event_initiator: str - :param event_type: - :type event_type: str - :param subscriber: - :type subscriber: str - :param subscription_id: - :type subscription_id: str - """ - - _attribute_map = { - 'event_initiator': {'key': 'eventInitiator', 'type': 'str'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'subscriber': {'key': 'subscriber', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, event_initiator=None, event_type=None, subscriber=None, subscription_id=None): - super(NotificationQueryCondition, self).__init__() - self.event_initiator = event_initiator - self.event_type = event_type - self.subscriber = subscriber - self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_0/models/notification_reason.py b/vsts/vsts/notification/v4_0/models/notification_reason.py deleted file mode 100644 index 17bc7357..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_reason.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationReason(Model): - """NotificationReason. - - :param notification_reason_type: - :type notification_reason_type: object - :param target_identities: - :type target_identities: list of :class:`IdentityRef ` - """ - - _attribute_map = { - 'notification_reason_type': {'key': 'notificationReasonType', 'type': 'object'}, - 'target_identities': {'key': 'targetIdentities', 'type': '[IdentityRef]'} - } - - def __init__(self, notification_reason_type=None, target_identities=None): - super(NotificationReason, self).__init__() - self.notification_reason_type = notification_reason_type - self.target_identities = target_identities diff --git a/vsts/vsts/notification/v4_0/models/notification_statistic.py b/vsts/vsts/notification/v4_0/models/notification_statistic.py deleted file mode 100644 index b045ca40..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_statistic.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationStatistic(Model): - """NotificationStatistic. - - :param date: - :type date: datetime - :param hit_count: - :type hit_count: int - :param path: - :type path: str - :param type: - :type type: object - :param user: - :type user: :class:`IdentityRef ` - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'hit_count': {'key': 'hitCount', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'user': {'key': 'user', 'type': 'IdentityRef'} - } - - def __init__(self, date=None, hit_count=None, path=None, type=None, user=None): - super(NotificationStatistic, self).__init__() - self.date = date - self.hit_count = hit_count - self.path = path - self.type = type - self.user = user diff --git a/vsts/vsts/notification/v4_0/models/notification_statistics_query.py b/vsts/vsts/notification/v4_0/models/notification_statistics_query.py deleted file mode 100644 index 1b81a70d..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_statistics_query.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationStatisticsQuery(Model): - """NotificationStatisticsQuery. - - :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[NotificationStatisticsQueryConditions]'} - } - - def __init__(self, conditions=None): - super(NotificationStatisticsQuery, self).__init__() - self.conditions = conditions diff --git a/vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py b/vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py deleted file mode 100644 index 075c4233..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_statistics_query_conditions.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationStatisticsQueryConditions(Model): - """NotificationStatisticsQueryConditions. - - :param end_date: - :type end_date: datetime - :param hit_count_minimum: - :type hit_count_minimum: int - :param path: - :type path: str - :param start_date: - :type start_date: datetime - :param type: - :type type: object - :param user: - :type user: :class:`IdentityRef ` - """ - - _attribute_map = { - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'hit_count_minimum': {'key': 'hitCountMinimum', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'object'}, - 'user': {'key': 'user', 'type': 'IdentityRef'} - } - - def __init__(self, end_date=None, hit_count_minimum=None, path=None, start_date=None, type=None, user=None): - super(NotificationStatisticsQueryConditions, self).__init__() - self.end_date = end_date - self.hit_count_minimum = hit_count_minimum - self.path = path - self.start_date = start_date - self.type = type - self.user = user diff --git a/vsts/vsts/notification/v4_0/models/notification_subscriber.py b/vsts/vsts/notification/v4_0/models/notification_subscriber.py deleted file mode 100644 index fa488c80..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_subscriber.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriber(Model): - """NotificationSubscriber. - - :param delivery_preference: Indicates how the subscriber should be notified by default. - :type delivery_preference: object - :param flags: - :type flags: object - :param id: Identifier of the subscriber. - :type id: str - :param preferred_email_address: Preferred email address of the subscriber. A null or empty value indicates no preferred email address has been set. - :type preferred_email_address: str - """ - - _attribute_map = { - 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} - } - - def __init__(self, delivery_preference=None, flags=None, id=None, preferred_email_address=None): - super(NotificationSubscriber, self).__init__() - self.delivery_preference = delivery_preference - self.flags = flags - self.id = id - self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py b/vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py deleted file mode 100644 index 68ca80ff..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_subscriber_update_parameters.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriberUpdateParameters(Model): - """NotificationSubscriberUpdateParameters. - - :param delivery_preference: New delivery preference for the subscriber (indicates how the subscriber should be notified). - :type delivery_preference: object - :param preferred_email_address: New preferred email address for the subscriber. Specify an empty string to clear the current address. - :type preferred_email_address: str - """ - - _attribute_map = { - 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, - 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} - } - - def __init__(self, delivery_preference=None, preferred_email_address=None): - super(NotificationSubscriberUpdateParameters, self).__init__() - self.delivery_preference = delivery_preference - self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription.py b/vsts/vsts/notification/v4_0/models/notification_subscription.py deleted file mode 100644 index 818f7dd9..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_subscription.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscription(Model): - """NotificationSubscription. - - :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` - :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` - :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` - :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. - :type description: str - :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts - :type extended_properties: dict - :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` - :param flags: Read-only indicators that further describe the subscription. - :type flags: object - :param id: Subscription identifier. - :type id: str - :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` - :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. - :type modified_date: datetime - :param permissions: The permissions the user have for this subscriptions. - :type permissions: object - :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` - :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. - :type status: object - :param status_message: Message that provides more details about the status of the subscription. - :type status_message: str - :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` - :param url: REST API URL of the subscriotion. - :type url: str - :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, - 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, - 'description': {'key': 'description', 'type': 'str'}, - 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'permissions': {'key': 'permissions', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, - 'status': {'key': 'status', 'type': 'object'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} - } - - def __init__(self, _links=None, admin_settings=None, channel=None, description=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): - super(NotificationSubscription, self).__init__() - self._links = _links - self.admin_settings = admin_settings - self.channel = channel - self.description = description - self.extended_properties = extended_properties - self.filter = filter - self.flags = flags - self.id = id - self.last_modified_by = last_modified_by - self.modified_date = modified_date - self.permissions = permissions - self.scope = scope - self.status = status - self.status_message = status_message - self.subscriber = subscriber - self.url = url - self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py b/vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py deleted file mode 100644 index 1d8f01d7..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_subscription_create_parameters.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriptionCreateParameters(Model): - """NotificationSubscriptionCreateParameters. - - :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` - :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. - :type description: str - :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` - :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` - :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` - """ - - _attribute_map = { - 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, - 'description': {'key': 'description', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, - 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'} - } - - def __init__(self, channel=None, description=None, filter=None, scope=None, subscriber=None): - super(NotificationSubscriptionCreateParameters, self).__init__() - self.channel = channel - self.description = description - self.filter = filter - self.scope = scope - self.subscriber = subscriber diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription_template.py b/vsts/vsts/notification/v4_0/models/notification_subscription_template.py deleted file mode 100644 index a7db31fd..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_subscription_template.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriptionTemplate(Model): - """NotificationSubscriptionTemplate. - - :param description: - :type description: str - :param filter: - :type filter: :class:`ISubscriptionFilter ` - :param id: - :type id: str - :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` - :param type: - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'id': {'key': 'id', 'type': 'str'}, - 'notification_event_information': {'key': 'notificationEventInformation', 'type': 'NotificationEventType'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, filter=None, id=None, notification_event_information=None, type=None): - super(NotificationSubscriptionTemplate, self).__init__() - self.description = description - self.filter = filter - self.id = id - self.notification_event_information = notification_event_information - self.type = type diff --git a/vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py b/vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py deleted file mode 100644 index d2ecee78..00000000 --- a/vsts/vsts/notification/v4_0/models/notification_subscription_update_parameters.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriptionUpdateParameters(Model): - """NotificationSubscriptionUpdateParameters. - - :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` - :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` - :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. - :type description: str - :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` - :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` - :param status: Updated status for the subscription. Typically used to enable or disable a subscription. - :type status: object - :param status_message: Optional message that provides more details about the updated status. - :type status_message: str - :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` - """ - - _attribute_map = { - 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, - 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, - 'description': {'key': 'description', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, - 'status': {'key': 'status', 'type': 'object'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} - } - - def __init__(self, admin_settings=None, channel=None, description=None, filter=None, scope=None, status=None, status_message=None, user_settings=None): - super(NotificationSubscriptionUpdateParameters, self).__init__() - self.admin_settings = admin_settings - self.channel = channel - self.description = description - self.filter = filter - self.scope = scope - self.status = status - self.status_message = status_message - self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py b/vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py deleted file mode 100644 index 3fe8febc..00000000 --- a/vsts/vsts/notification/v4_0/models/notifications_evaluation_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationsEvaluationResult(Model): - """NotificationsEvaluationResult. - - :param count: Count of generated notifications - :type count: int - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'} - } - - def __init__(self, count=None): - super(NotificationsEvaluationResult, self).__init__() - self.count = count diff --git a/vsts/vsts/notification/v4_0/models/operator_constraint.py b/vsts/vsts/notification/v4_0/models/operator_constraint.py deleted file mode 100644 index f5041e41..00000000 --- a/vsts/vsts/notification/v4_0/models/operator_constraint.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperatorConstraint(Model): - """OperatorConstraint. - - :param operator: - :type operator: str - :param supported_scopes: Gets or sets the list of scopes that this type supports. - :type supported_scopes: list of str - """ - - _attribute_map = { - 'operator': {'key': 'operator', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} - } - - def __init__(self, operator=None, supported_scopes=None): - super(OperatorConstraint, self).__init__() - self.operator = operator - self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_0/models/reference_links.py b/vsts/vsts/notification/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/notification/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/notification/v4_0/models/subscription_admin_settings.py b/vsts/vsts/notification/v4_0/models/subscription_admin_settings.py deleted file mode 100644 index bb257d6a..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_admin_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionAdminSettings(Model): - """SubscriptionAdminSettings. - - :param block_user_opt_out: If true, members of the group subscribed to the associated subscription cannot opt (choose not to get notified) - :type block_user_opt_out: bool - """ - - _attribute_map = { - 'block_user_opt_out': {'key': 'blockUserOptOut', 'type': 'bool'} - } - - def __init__(self, block_user_opt_out=None): - super(SubscriptionAdminSettings, self).__init__() - self.block_user_opt_out = block_user_opt_out diff --git a/vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py b/vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py deleted file mode 100644 index c5d7f620..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_channel_with_address.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionChannelWithAddress(Model): - """SubscriptionChannelWithAddress. - - :param address: - :type address: str - :param type: - :type type: str - :param use_custom_address: - :type use_custom_address: bool - """ - - _attribute_map = { - 'address': {'key': 'address', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_custom_address': {'key': 'useCustomAddress', 'type': 'bool'} - } - - def __init__(self, address=None, type=None, use_custom_address=None): - super(SubscriptionChannelWithAddress, self).__init__() - self.address = address - self.type = type - self.use_custom_address = use_custom_address diff --git a/vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py b/vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py deleted file mode 100644 index 1de14b6f..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_evaluation_request.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionEvaluationRequest(Model): - """SubscriptionEvaluationRequest. - - :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date - :type min_events_created_date: datetime - :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` - """ - - _attribute_map = { - 'min_events_created_date': {'key': 'minEventsCreatedDate', 'type': 'iso-8601'}, - 'subscription_create_parameters': {'key': 'subscriptionCreateParameters', 'type': 'NotificationSubscriptionCreateParameters'} - } - - def __init__(self, min_events_created_date=None, subscription_create_parameters=None): - super(SubscriptionEvaluationRequest, self).__init__() - self.min_events_created_date = min_events_created_date - self.subscription_create_parameters = subscription_create_parameters diff --git a/vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py b/vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py deleted file mode 100644 index 4a278a9c..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_evaluation_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionEvaluationResult(Model): - """SubscriptionEvaluationResult. - - :param evaluation_job_status: Subscription evaluation job status - :type evaluation_job_status: object - :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` - :param id: The requestId which is the subscription evaluation jobId - :type id: str - :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` - """ - - _attribute_map = { - 'evaluation_job_status': {'key': 'evaluationJobStatus', 'type': 'object'}, - 'events': {'key': 'events', 'type': 'EventsEvaluationResult'}, - 'id': {'key': 'id', 'type': 'str'}, - 'notifications': {'key': 'notifications', 'type': 'NotificationsEvaluationResult'} - } - - def __init__(self, evaluation_job_status=None, events=None, id=None, notifications=None): - super(SubscriptionEvaluationResult, self).__init__() - self.evaluation_job_status = evaluation_job_status - self.events = events - self.id = id - self.notifications = notifications diff --git a/vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py b/vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py deleted file mode 100644 index 2afc0946..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_evaluation_settings.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionEvaluationSettings(Model): - """SubscriptionEvaluationSettings. - - :param enabled: Indicates whether subscription evaluation before saving is enabled or not - :type enabled: bool - :param interval: Time interval to check on subscription evaluation job in seconds - :type interval: int - :param threshold: Threshold on the number of notifications for considering a subscription too noisy - :type threshold: int - :param time_out: Time out for the subscription evaluation check in seconds - :type time_out: int - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'interval': {'key': 'interval', 'type': 'int'}, - 'threshold': {'key': 'threshold', 'type': 'int'}, - 'time_out': {'key': 'timeOut', 'type': 'int'} - } - - def __init__(self, enabled=None, interval=None, threshold=None, time_out=None): - super(SubscriptionEvaluationSettings, self).__init__() - self.enabled = enabled - self.interval = interval - self.threshold = threshold - self.time_out = time_out diff --git a/vsts/vsts/notification/v4_0/models/subscription_management.py b/vsts/vsts/notification/v4_0/models/subscription_management.py deleted file mode 100644 index 92f047de..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_management.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionManagement(Model): - """SubscriptionManagement. - - :param service_instance_type: - :type service_instance_type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, service_instance_type=None, url=None): - super(SubscriptionManagement, self).__init__() - self.service_instance_type = service_instance_type - self.url = url diff --git a/vsts/vsts/notification/v4_0/models/subscription_query.py b/vsts/vsts/notification/v4_0/models/subscription_query.py deleted file mode 100644 index 898b8ae3..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionQuery(Model): - """SubscriptionQuery. - - :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` - :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. - :type query_flags: object - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[SubscriptionQueryCondition]'}, - 'query_flags': {'key': 'queryFlags', 'type': 'object'} - } - - def __init__(self, conditions=None, query_flags=None): - super(SubscriptionQuery, self).__init__() - self.conditions = conditions - self.query_flags = query_flags diff --git a/vsts/vsts/notification/v4_0/models/subscription_query_condition.py b/vsts/vsts/notification/v4_0/models/subscription_query_condition.py deleted file mode 100644 index 29679811..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_query_condition.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionQueryCondition(Model): - """SubscriptionQueryCondition. - - :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` - :param flags: Flags to specify the the type subscriptions to query for. - :type flags: object - :param scope: Scope that matching subscriptions must have. - :type scope: str - :param subscriber_id: ID of the subscriber (user or group) that matching subscriptions must be subscribed to. - :type subscriber_id: str - :param subscription_id: ID of the subscription to query for. - :type subscription_id: str - """ - - _attribute_map = { - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, filter=None, flags=None, scope=None, subscriber_id=None, subscription_id=None): - super(SubscriptionQueryCondition, self).__init__() - self.filter = filter - self.flags = flags - self.scope = scope - self.subscriber_id = subscriber_id - self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_0/models/subscription_scope.py b/vsts/vsts/notification/v4_0/models/subscription_scope.py deleted file mode 100644 index 50575042..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_scope.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .event_scope import EventScope - - -class SubscriptionScope(EventScope): - """SubscriptionScope. - - :param id: Required: This is the identity of the scope for the type. - :type id: str - :param type: Required: The event specific type of a scope. - :type type: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, type=None, name=None): - super(SubscriptionScope, self).__init__(id=id, type=type) - self.name = name diff --git a/vsts/vsts/notification/v4_0/models/subscription_user_settings.py b/vsts/vsts/notification/v4_0/models/subscription_user_settings.py deleted file mode 100644 index ae1d2e4b..00000000 --- a/vsts/vsts/notification/v4_0/models/subscription_user_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionUserSettings(Model): - """SubscriptionUserSettings. - - :param opted_out: Indicates whether the user will receive notifications for the associated group subscription. - :type opted_out: bool - """ - - _attribute_map = { - 'opted_out': {'key': 'optedOut', 'type': 'bool'} - } - - def __init__(self, opted_out=None): - super(SubscriptionUserSettings, self).__init__() - self.opted_out = opted_out diff --git a/vsts/vsts/notification/v4_0/models/value_definition.py b/vsts/vsts/notification/v4_0/models/value_definition.py deleted file mode 100644 index 0a03fdf0..00000000 --- a/vsts/vsts/notification/v4_0/models/value_definition.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ValueDefinition(Model): - """ValueDefinition. - - :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` - :param end_point: Gets or sets the rest end point. - :type end_point: str - :param result_template: Gets or sets the result template. - :type result_template: str - """ - - _attribute_map = { - 'data_source': {'key': 'dataSource', 'type': '[InputValue]'}, - 'end_point': {'key': 'endPoint', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'} - } - - def __init__(self, data_source=None, end_point=None, result_template=None): - super(ValueDefinition, self).__init__() - self.data_source = data_source - self.end_point = end_point - self.result_template = result_template diff --git a/vsts/vsts/notification/v4_0/models/vss_notification_event.py b/vsts/vsts/notification/v4_0/models/vss_notification_event.py deleted file mode 100644 index 3c71d927..00000000 --- a/vsts/vsts/notification/v4_0/models/vss_notification_event.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VssNotificationEvent(Model): - """VssNotificationEvent. - - :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` - :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. - :type artifact_uris: list of str - :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. - :type data: object - :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. - :type event_type: str - :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` - """ - - _attribute_map = { - 'actors': {'key': 'actors', 'type': '[EventActor]'}, - 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, - 'data': {'key': 'data', 'type': 'object'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[EventScope]'} - } - - def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): - super(VssNotificationEvent, self).__init__() - self.actors = actors - self.artifact_uris = artifact_uris - self.data = data - self.event_type = event_type - self.scopes = scopes diff --git a/vsts/vsts/notification/v4_1/__init__.py b/vsts/vsts/notification/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/notification/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/notification/v4_1/models/__init__.py b/vsts/vsts/notification/v4_1/models/__init__.py deleted file mode 100644 index f51b3477..00000000 --- a/vsts/vsts/notification/v4_1/models/__init__.py +++ /dev/null @@ -1,127 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .artifact_filter import ArtifactFilter -from .base_subscription_filter import BaseSubscriptionFilter -from .batch_notification_operation import BatchNotificationOperation -from .event_actor import EventActor -from .event_scope import EventScope -from .events_evaluation_result import EventsEvaluationResult -from .expression_filter_clause import ExpressionFilterClause -from .expression_filter_group import ExpressionFilterGroup -from .expression_filter_model import ExpressionFilterModel -from .field_input_values import FieldInputValues -from .field_values_query import FieldValuesQuery -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .iNotification_diagnostic_log import INotificationDiagnosticLog -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .input_values_query import InputValuesQuery -from .iSubscription_channel import ISubscriptionChannel -from .iSubscription_filter import ISubscriptionFilter -from .notification_diagnostic_log_message import NotificationDiagnosticLogMessage -from .notification_event_field import NotificationEventField -from .notification_event_field_operator import NotificationEventFieldOperator -from .notification_event_field_type import NotificationEventFieldType -from .notification_event_publisher import NotificationEventPublisher -from .notification_event_role import NotificationEventRole -from .notification_event_type import NotificationEventType -from .notification_event_type_category import NotificationEventTypeCategory -from .notification_query_condition import NotificationQueryCondition -from .notification_reason import NotificationReason -from .notifications_evaluation_result import NotificationsEvaluationResult -from .notification_statistic import NotificationStatistic -from .notification_statistics_query import NotificationStatisticsQuery -from .notification_statistics_query_conditions import NotificationStatisticsQueryConditions -from .notification_subscriber import NotificationSubscriber -from .notification_subscriber_update_parameters import NotificationSubscriberUpdateParameters -from .notification_subscription import NotificationSubscription -from .notification_subscription_create_parameters import NotificationSubscriptionCreateParameters -from .notification_subscription_template import NotificationSubscriptionTemplate -from .notification_subscription_update_parameters import NotificationSubscriptionUpdateParameters -from .operator_constraint import OperatorConstraint -from .reference_links import ReferenceLinks -from .subscription_admin_settings import SubscriptionAdminSettings -from .subscription_channel_with_address import SubscriptionChannelWithAddress -from .subscription_diagnostics import SubscriptionDiagnostics -from .subscription_evaluation_request import SubscriptionEvaluationRequest -from .subscription_evaluation_result import SubscriptionEvaluationResult -from .subscription_evaluation_settings import SubscriptionEvaluationSettings -from .subscription_management import SubscriptionManagement -from .subscription_query import SubscriptionQuery -from .subscription_query_condition import SubscriptionQueryCondition -from .subscription_scope import SubscriptionScope -from .subscription_tracing import SubscriptionTracing -from .subscription_user_settings import SubscriptionUserSettings -from .update_subscripiton_diagnostics_parameters import UpdateSubscripitonDiagnosticsParameters -from .update_subscripiton_tracing_parameters import UpdateSubscripitonTracingParameters -from .value_definition import ValueDefinition -from .vss_notification_event import VssNotificationEvent - -__all__ = [ - 'ArtifactFilter', - 'BaseSubscriptionFilter', - 'BatchNotificationOperation', - 'EventActor', - 'EventScope', - 'EventsEvaluationResult', - 'ExpressionFilterClause', - 'ExpressionFilterGroup', - 'ExpressionFilterModel', - 'FieldInputValues', - 'FieldValuesQuery', - 'GraphSubjectBase', - 'IdentityRef', - 'INotificationDiagnosticLog', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'ISubscriptionChannel', - 'ISubscriptionFilter', - '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', -] diff --git a/vsts/vsts/notification/v4_1/models/artifact_filter.py b/vsts/vsts/notification/v4_1/models/artifact_filter.py deleted file mode 100644 index 633c1aff..00000000 --- a/vsts/vsts/notification/v4_1/models/artifact_filter.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .base_subscription_filter import BaseSubscriptionFilter - - -class ArtifactFilter(BaseSubscriptionFilter): - """ArtifactFilter. - - :param event_type: - :type event_type: str - :param artifact_id: - :type artifact_id: str - :param artifact_type: - :type artifact_type: str - :param artifact_uri: - :type artifact_uri: str - :param type: - :type type: str - """ - - _attribute_map = { - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'artifact_type': {'key': 'artifactType', 'type': 'str'}, - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, event_type=None, artifact_id=None, artifact_type=None, artifact_uri=None, type=None): - super(ArtifactFilter, self).__init__(event_type=event_type) - self.artifact_id = artifact_id - self.artifact_type = artifact_type - self.artifact_uri = artifact_uri - self.type = type diff --git a/vsts/vsts/notification/v4_1/models/base_subscription_filter.py b/vsts/vsts/notification/v4_1/models/base_subscription_filter.py deleted file mode 100644 index 64cfbeca..00000000 --- a/vsts/vsts/notification/v4_1/models/base_subscription_filter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BaseSubscriptionFilter(Model): - """BaseSubscriptionFilter. - - :param event_type: - :type event_type: str - :param type: - :type type: str - """ - - _attribute_map = { - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, event_type=None, type=None): - super(BaseSubscriptionFilter, self).__init__() - self.event_type = event_type - self.type = type diff --git a/vsts/vsts/notification/v4_1/models/batch_notification_operation.py b/vsts/vsts/notification/v4_1/models/batch_notification_operation.py deleted file mode 100644 index 70185702..00000000 --- a/vsts/vsts/notification/v4_1/models/batch_notification_operation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BatchNotificationOperation(Model): - """BatchNotificationOperation. - - :param notification_operation: - :type notification_operation: object - :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` - """ - - _attribute_map = { - 'notification_operation': {'key': 'notificationOperation', 'type': 'object'}, - 'notification_query_conditions': {'key': 'notificationQueryConditions', 'type': '[NotificationQueryCondition]'} - } - - def __init__(self, notification_operation=None, notification_query_conditions=None): - super(BatchNotificationOperation, self).__init__() - self.notification_operation = notification_operation - self.notification_query_conditions = notification_query_conditions diff --git a/vsts/vsts/notification/v4_1/models/event_actor.py b/vsts/vsts/notification/v4_1/models/event_actor.py deleted file mode 100644 index 00258294..00000000 --- a/vsts/vsts/notification/v4_1/models/event_actor.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventActor(Model): - """EventActor. - - :param id: Required: This is the identity of the user for the specified role. - :type id: str - :param role: Required: The event specific name of a role. - :type role: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'role': {'key': 'role', 'type': 'str'} - } - - def __init__(self, id=None, role=None): - super(EventActor, self).__init__() - self.id = id - self.role = role diff --git a/vsts/vsts/notification/v4_1/models/event_scope.py b/vsts/vsts/notification/v4_1/models/event_scope.py deleted file mode 100644 index 9a5d7bc4..00000000 --- a/vsts/vsts/notification/v4_1/models/event_scope.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventScope(Model): - """EventScope. - - :param id: Required: This is the identity of the scope for the type. - :type id: str - :param name: Optional: The display name of the scope - :type name: str - :param type: Required: The event specific type of a scope. - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, id=None, name=None, type=None): - super(EventScope, self).__init__() - self.id = id - self.name = name - self.type = type diff --git a/vsts/vsts/notification/v4_1/models/events_evaluation_result.py b/vsts/vsts/notification/v4_1/models/events_evaluation_result.py deleted file mode 100644 index cf73a07d..00000000 --- a/vsts/vsts/notification/v4_1/models/events_evaluation_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventsEvaluationResult(Model): - """EventsEvaluationResult. - - :param count: Count of events evaluated. - :type count: int - :param matched_count: Count of matched events. - :type matched_count: int - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'matched_count': {'key': 'matchedCount', 'type': 'int'} - } - - def __init__(self, count=None, matched_count=None): - super(EventsEvaluationResult, self).__init__() - self.count = count - self.matched_count = matched_count diff --git a/vsts/vsts/notification/v4_1/models/expression_filter_clause.py b/vsts/vsts/notification/v4_1/models/expression_filter_clause.py deleted file mode 100644 index 908ba993..00000000 --- a/vsts/vsts/notification/v4_1/models/expression_filter_clause.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExpressionFilterClause(Model): - """ExpressionFilterClause. - - :param field_name: - :type field_name: str - :param index: The order in which this clause appeared in the filter query - :type index: int - :param logical_operator: Logical Operator 'AND', 'OR' or NULL (only for the first clause in the filter) - :type logical_operator: str - :param operator: - :type operator: str - :param value: - :type value: str - """ - - _attribute_map = { - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'index': {'key': 'index', 'type': 'int'}, - 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): - super(ExpressionFilterClause, self).__init__() - self.field_name = field_name - self.index = index - self.logical_operator = logical_operator - self.operator = operator - self.value = value diff --git a/vsts/vsts/notification/v4_1/models/expression_filter_group.py b/vsts/vsts/notification/v4_1/models/expression_filter_group.py deleted file mode 100644 index d7c493bf..00000000 --- a/vsts/vsts/notification/v4_1/models/expression_filter_group.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExpressionFilterGroup(Model): - """ExpressionFilterGroup. - - :param end: The index of the last FilterClause in this group - :type end: int - :param level: Level of the group, since groups can be nested for each nested group the level will increase by 1 - :type level: int - :param start: The index of the first FilterClause in this group - :type start: int - """ - - _attribute_map = { - 'end': {'key': 'end', 'type': 'int'}, - 'level': {'key': 'level', 'type': 'int'}, - 'start': {'key': 'start', 'type': 'int'} - } - - def __init__(self, end=None, level=None, start=None): - super(ExpressionFilterGroup, self).__init__() - self.end = end - self.level = level - self.start = start diff --git a/vsts/vsts/notification/v4_1/models/expression_filter_model.py b/vsts/vsts/notification/v4_1/models/expression_filter_model.py deleted file mode 100644 index 00302d55..00000000 --- a/vsts/vsts/notification/v4_1/models/expression_filter_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExpressionFilterModel(Model): - """ExpressionFilterModel. - - :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` - :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` - :param max_group_level: Max depth of the Subscription tree - :type max_group_level: int - """ - - _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[ExpressionFilterClause]'}, - 'groups': {'key': 'groups', 'type': '[ExpressionFilterGroup]'}, - 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} - } - - def __init__(self, clauses=None, groups=None, max_group_level=None): - super(ExpressionFilterModel, self).__init__() - self.clauses = clauses - self.groups = groups - self.max_group_level = max_group_level diff --git a/vsts/vsts/notification/v4_1/models/field_input_values.py b/vsts/vsts/notification/v4_1/models/field_input_values.py deleted file mode 100644 index 58ad4a3a..00000000 --- a/vsts/vsts/notification/v4_1/models/field_input_values.py +++ /dev/null @@ -1,46 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .input_values import InputValues - - -class FieldInputValues(InputValues): - """FieldInputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - :param operators: - :type operators: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}, - 'operators': {'key': 'operators', 'type': 'str'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None, operators=None): - super(FieldInputValues, self).__init__(default_value=default_value, error=error, input_id=input_id, is_disabled=is_disabled, is_limited_to_possible_values=is_limited_to_possible_values, is_read_only=is_read_only, possible_values=possible_values) - self.operators = operators diff --git a/vsts/vsts/notification/v4_1/models/field_values_query.py b/vsts/vsts/notification/v4_1/models/field_values_query.py deleted file mode 100644 index 0c09e828..00000000 --- a/vsts/vsts/notification/v4_1/models/field_values_query.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .input_values_query import InputValuesQuery - - -class FieldValuesQuery(InputValuesQuery): - """FieldValuesQuery. - - :param current_values: - :type current_values: dict - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - :param input_values: - :type input_values: list of :class:`FieldInputValues ` - :param scope: - :type scope: str - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'resource': {'key': 'resource', 'type': 'object'}, - 'input_values': {'key': 'inputValues', 'type': '[FieldInputValues]'}, - 'scope': {'key': 'scope', 'type': 'str'} - } - - def __init__(self, current_values=None, resource=None, input_values=None, scope=None): - super(FieldValuesQuery, self).__init__(current_values=current_values, resource=resource) - self.input_values = input_values - self.scope = scope diff --git a/vsts/vsts/notification/v4_1/models/graph_subject_base.py b/vsts/vsts/notification/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/notification/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py b/vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py deleted file mode 100644 index 818cbf45..00000000 --- a/vsts/vsts/notification/v4_1/models/iNotification_diagnostic_log.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class INotificationDiagnosticLog(Model): - """INotificationDiagnosticLog. - - :param activity_id: - :type activity_id: str - :param description: - :type description: str - :param end_time: - :type end_time: datetime - :param id: - :type id: str - :param log_type: - :type log_type: str - :param messages: - :type messages: list of :class:`NotificationDiagnosticLogMessage ` - :param properties: - :type properties: dict - :param source: - :type source: str - :param start_time: - :type start_time: datetime - """ - - _attribute_map = { - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'log_type': {'key': 'logType', 'type': 'str'}, - 'messages': {'key': 'messages', 'type': '[NotificationDiagnosticLogMessage]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'source': {'key': 'source', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'} - } - - def __init__(self, activity_id=None, description=None, end_time=None, id=None, log_type=None, messages=None, properties=None, source=None, start_time=None): - super(INotificationDiagnosticLog, self).__init__() - self.activity_id = activity_id - self.description = description - self.end_time = end_time - self.id = id - self.log_type = log_type - self.messages = messages - self.properties = properties - self.source = source - self.start_time = start_time diff --git a/vsts/vsts/notification/v4_1/models/iSubscription_channel.py b/vsts/vsts/notification/v4_1/models/iSubscription_channel.py deleted file mode 100644 index 9f8ed3c5..00000000 --- a/vsts/vsts/notification/v4_1/models/iSubscription_channel.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ISubscriptionChannel(Model): - """ISubscriptionChannel. - - :param type: - :type type: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, type=None): - super(ISubscriptionChannel, self).__init__() - self.type = type diff --git a/vsts/vsts/notification/v4_1/models/iSubscription_filter.py b/vsts/vsts/notification/v4_1/models/iSubscription_filter.py deleted file mode 100644 index c90034ca..00000000 --- a/vsts/vsts/notification/v4_1/models/iSubscription_filter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ISubscriptionFilter(Model): - """ISubscriptionFilter. - - :param event_type: - :type event_type: str - :param type: - :type type: str - """ - - _attribute_map = { - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, event_type=None, type=None): - super(ISubscriptionFilter, self).__init__() - self.event_type = event_type - self.type = type diff --git a/vsts/vsts/notification/v4_1/models/identity_ref.py b/vsts/vsts/notification/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/notification/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/notification/v4_1/models/input_value.py b/vsts/vsts/notification/v4_1/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/notification/v4_1/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/notification/v4_1/models/input_values.py b/vsts/vsts/notification/v4_1/models/input_values.py deleted file mode 100644 index 69472f8d..00000000 --- a/vsts/vsts/notification/v4_1/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/notification/v4_1/models/input_values_error.py b/vsts/vsts/notification/v4_1/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/notification/v4_1/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/notification/v4_1/models/input_values_query.py b/vsts/vsts/notification/v4_1/models/input_values_query.py deleted file mode 100644 index 97687a61..00000000 --- a/vsts/vsts/notification/v4_1/models/input_values_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource diff --git a/vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py b/vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py deleted file mode 100644 index 07be349a..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_diagnostic_log_message.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationDiagnosticLogMessage(Model): - """NotificationDiagnosticLogMessage. - - :param level: Corresponds to .Net TraceLevel enumeration - :type level: int - :param message: - :type message: str - :param time: - :type time: object - """ - - _attribute_map = { - 'level': {'key': 'level', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'time': {'key': 'time', 'type': 'object'} - } - - def __init__(self, level=None, message=None, time=None): - super(NotificationDiagnosticLogMessage, self).__init__() - self.level = level - self.message = message - self.time = time diff --git a/vsts/vsts/notification/v4_1/models/notification_event_field.py b/vsts/vsts/notification/v4_1/models/notification_event_field.py deleted file mode 100644 index 84ef1e97..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_event_field.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventField(Model): - """NotificationEventField. - - :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` - :param id: Gets or sets the unique identifier of this field. - :type id: str - :param name: Gets or sets the name of this field. - :type name: str - :param path: Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML - :type path: str - :param supported_scopes: Gets or sets the scopes that this field supports. If not specified then the event type scopes apply. - :type supported_scopes: list of str - """ - - _attribute_map = { - 'field_type': {'key': 'fieldType', 'type': 'NotificationEventFieldType'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} - } - - def __init__(self, field_type=None, id=None, name=None, path=None, supported_scopes=None): - super(NotificationEventField, self).__init__() - self.field_type = field_type - self.id = id - self.name = name - self.path = path - self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_1/models/notification_event_field_operator.py b/vsts/vsts/notification/v4_1/models/notification_event_field_operator.py deleted file mode 100644 index 20593c7d..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_event_field_operator.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventFieldOperator(Model): - """NotificationEventFieldOperator. - - :param display_name: Gets or sets the display name of an operator - :type display_name: str - :param id: Gets or sets the id of an operator - :type id: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None): - super(NotificationEventFieldOperator, self).__init__() - self.display_name = display_name - self.id = id diff --git a/vsts/vsts/notification/v4_1/models/notification_event_field_type.py b/vsts/vsts/notification/v4_1/models/notification_event_field_type.py deleted file mode 100644 index e0877416..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_event_field_type.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventFieldType(Model): - """NotificationEventFieldType. - - :param id: Gets or sets the unique identifier of this field type. - :type id: str - :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` - :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` - :param subscription_field_type: - :type subscription_field_type: object - :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operator_constraints': {'key': 'operatorConstraints', 'type': '[OperatorConstraint]'}, - 'operators': {'key': 'operators', 'type': '[NotificationEventFieldOperator]'}, - 'subscription_field_type': {'key': 'subscriptionFieldType', 'type': 'object'}, - 'value': {'key': 'value', 'type': 'ValueDefinition'} - } - - def __init__(self, id=None, operator_constraints=None, operators=None, subscription_field_type=None, value=None): - super(NotificationEventFieldType, self).__init__() - self.id = id - self.operator_constraints = operator_constraints - self.operators = operators - self.subscription_field_type = subscription_field_type - self.value = value diff --git a/vsts/vsts/notification/v4_1/models/notification_event_publisher.py b/vsts/vsts/notification/v4_1/models/notification_event_publisher.py deleted file mode 100644 index de394a80..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_event_publisher.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventPublisher(Model): - """NotificationEventPublisher. - - :param id: - :type id: str - :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_management_info': {'key': 'subscriptionManagementInfo', 'type': 'SubscriptionManagement'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, subscription_management_info=None, url=None): - super(NotificationEventPublisher, self).__init__() - self.id = id - self.subscription_management_info = subscription_management_info - self.url = url diff --git a/vsts/vsts/notification/v4_1/models/notification_event_role.py b/vsts/vsts/notification/v4_1/models/notification_event_role.py deleted file mode 100644 index 51f4c866..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_event_role.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventRole(Model): - """NotificationEventRole. - - :param id: Gets or sets an Id for that role, this id is used by the event. - :type id: str - :param name: Gets or sets the Name for that role, this name is used for UI display. - :type name: str - :param supports_groups: Gets or sets whether this role can be a group or just an individual user - :type supports_groups: bool - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'supports_groups': {'key': 'supportsGroups', 'type': 'bool'} - } - - def __init__(self, id=None, name=None, supports_groups=None): - super(NotificationEventRole, self).__init__() - self.id = id - self.name = name - self.supports_groups = supports_groups diff --git a/vsts/vsts/notification/v4_1/models/notification_event_type.py b/vsts/vsts/notification/v4_1/models/notification_event_type.py deleted file mode 100644 index 339375f2..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_event_type.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventType(Model): - """NotificationEventType. - - :param category: - :type category: :class:`NotificationEventTypeCategory ` - :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa - :type color: str - :param custom_subscriptions_allowed: - :type custom_subscriptions_allowed: bool - :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` - :param fields: - :type fields: dict - :param has_initiator: - :type has_initiator: bool - :param icon: Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class - :type icon: str - :param id: Gets or sets the unique identifier of this event definition. - :type id: str - :param name: Gets or sets the name of this event definition. - :type name: str - :param roles: - :type roles: list of :class:`NotificationEventRole ` - :param supported_scopes: Gets or sets the scopes that this event type supports - :type supported_scopes: list of str - :param url: Gets or sets the rest end point to get this event type details (fields, fields types) - :type url: str - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'NotificationEventTypeCategory'}, - 'color': {'key': 'color', 'type': 'str'}, - 'custom_subscriptions_allowed': {'key': 'customSubscriptionsAllowed', 'type': 'bool'}, - 'event_publisher': {'key': 'eventPublisher', 'type': 'NotificationEventPublisher'}, - 'fields': {'key': 'fields', 'type': '{NotificationEventField}'}, - 'has_initiator': {'key': 'hasInitiator', 'type': 'bool'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[NotificationEventRole]'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, category=None, color=None, custom_subscriptions_allowed=None, event_publisher=None, fields=None, has_initiator=None, icon=None, id=None, name=None, roles=None, supported_scopes=None, url=None): - super(NotificationEventType, self).__init__() - self.category = category - self.color = color - self.custom_subscriptions_allowed = custom_subscriptions_allowed - self.event_publisher = event_publisher - self.fields = fields - self.has_initiator = has_initiator - self.icon = icon - self.id = id - self.name = name - self.roles = roles - self.supported_scopes = supported_scopes - self.url = url diff --git a/vsts/vsts/notification/v4_1/models/notification_event_type_category.py b/vsts/vsts/notification/v4_1/models/notification_event_type_category.py deleted file mode 100644 index 0d3040b6..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_event_type_category.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationEventTypeCategory(Model): - """NotificationEventTypeCategory. - - :param id: Gets or sets the unique identifier of this category. - :type id: str - :param name: Gets or sets the friendly name of this category. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(NotificationEventTypeCategory, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/notification/v4_1/models/notification_query_condition.py b/vsts/vsts/notification/v4_1/models/notification_query_condition.py deleted file mode 100644 index 1c1b3aaf..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_query_condition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationQueryCondition(Model): - """NotificationQueryCondition. - - :param event_initiator: - :type event_initiator: str - :param event_type: - :type event_type: str - :param subscriber: - :type subscriber: str - :param subscription_id: - :type subscription_id: str - """ - - _attribute_map = { - 'event_initiator': {'key': 'eventInitiator', 'type': 'str'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'subscriber': {'key': 'subscriber', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, event_initiator=None, event_type=None, subscriber=None, subscription_id=None): - super(NotificationQueryCondition, self).__init__() - self.event_initiator = event_initiator - self.event_type = event_type - self.subscriber = subscriber - self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_1/models/notification_reason.py b/vsts/vsts/notification/v4_1/models/notification_reason.py deleted file mode 100644 index 5769f688..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_reason.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationReason(Model): - """NotificationReason. - - :param notification_reason_type: - :type notification_reason_type: object - :param target_identities: - :type target_identities: list of :class:`IdentityRef ` - """ - - _attribute_map = { - 'notification_reason_type': {'key': 'notificationReasonType', 'type': 'object'}, - 'target_identities': {'key': 'targetIdentities', 'type': '[IdentityRef]'} - } - - def __init__(self, notification_reason_type=None, target_identities=None): - super(NotificationReason, self).__init__() - self.notification_reason_type = notification_reason_type - self.target_identities = target_identities diff --git a/vsts/vsts/notification/v4_1/models/notification_statistic.py b/vsts/vsts/notification/v4_1/models/notification_statistic.py deleted file mode 100644 index 17e6ba89..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_statistic.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationStatistic(Model): - """NotificationStatistic. - - :param date: - :type date: datetime - :param hit_count: - :type hit_count: int - :param path: - :type path: str - :param type: - :type type: object - :param user: - :type user: :class:`IdentityRef ` - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'hit_count': {'key': 'hitCount', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'user': {'key': 'user', 'type': 'IdentityRef'} - } - - def __init__(self, date=None, hit_count=None, path=None, type=None, user=None): - super(NotificationStatistic, self).__init__() - self.date = date - self.hit_count = hit_count - self.path = path - self.type = type - self.user = user diff --git a/vsts/vsts/notification/v4_1/models/notification_statistics_query.py b/vsts/vsts/notification/v4_1/models/notification_statistics_query.py deleted file mode 100644 index 9a7b9310..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_statistics_query.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationStatisticsQuery(Model): - """NotificationStatisticsQuery. - - :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[NotificationStatisticsQueryConditions]'} - } - - def __init__(self, conditions=None): - super(NotificationStatisticsQuery, self).__init__() - self.conditions = conditions diff --git a/vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py b/vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py deleted file mode 100644 index 663c00e8..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_statistics_query_conditions.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationStatisticsQueryConditions(Model): - """NotificationStatisticsQueryConditions. - - :param end_date: - :type end_date: datetime - :param hit_count_minimum: - :type hit_count_minimum: int - :param path: - :type path: str - :param start_date: - :type start_date: datetime - :param type: - :type type: object - :param user: - :type user: :class:`IdentityRef ` - """ - - _attribute_map = { - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'hit_count_minimum': {'key': 'hitCountMinimum', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'object'}, - 'user': {'key': 'user', 'type': 'IdentityRef'} - } - - def __init__(self, end_date=None, hit_count_minimum=None, path=None, start_date=None, type=None, user=None): - super(NotificationStatisticsQueryConditions, self).__init__() - self.end_date = end_date - self.hit_count_minimum = hit_count_minimum - self.path = path - self.start_date = start_date - self.type = type - self.user = user diff --git a/vsts/vsts/notification/v4_1/models/notification_subscriber.py b/vsts/vsts/notification/v4_1/models/notification_subscriber.py deleted file mode 100644 index fa488c80..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_subscriber.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriber(Model): - """NotificationSubscriber. - - :param delivery_preference: Indicates how the subscriber should be notified by default. - :type delivery_preference: object - :param flags: - :type flags: object - :param id: Identifier of the subscriber. - :type id: str - :param preferred_email_address: Preferred email address of the subscriber. A null or empty value indicates no preferred email address has been set. - :type preferred_email_address: str - """ - - _attribute_map = { - 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} - } - - def __init__(self, delivery_preference=None, flags=None, id=None, preferred_email_address=None): - super(NotificationSubscriber, self).__init__() - self.delivery_preference = delivery_preference - self.flags = flags - self.id = id - self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py b/vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py deleted file mode 100644 index 68ca80ff..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_subscriber_update_parameters.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriberUpdateParameters(Model): - """NotificationSubscriberUpdateParameters. - - :param delivery_preference: New delivery preference for the subscriber (indicates how the subscriber should be notified). - :type delivery_preference: object - :param preferred_email_address: New preferred email address for the subscriber. Specify an empty string to clear the current address. - :type preferred_email_address: str - """ - - _attribute_map = { - 'delivery_preference': {'key': 'deliveryPreference', 'type': 'object'}, - 'preferred_email_address': {'key': 'preferredEmailAddress', 'type': 'str'} - } - - def __init__(self, delivery_preference=None, preferred_email_address=None): - super(NotificationSubscriberUpdateParameters, self).__init__() - self.delivery_preference = delivery_preference - self.preferred_email_address = preferred_email_address diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription.py b/vsts/vsts/notification/v4_1/models/notification_subscription.py deleted file mode 100644 index 46030af2..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_subscription.py +++ /dev/null @@ -1,93 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscription(Model): - """NotificationSubscription. - - :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` - :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` - :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` - :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. - :type description: str - :param diagnostics: Diagnostics for this subscription. - :type diagnostics: :class:`SubscriptionDiagnostics ` - :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts - :type extended_properties: dict - :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` - :param flags: Read-only indicators that further describe the subscription. - :type flags: object - :param id: Subscription identifier. - :type id: str - :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` - :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. - :type modified_date: datetime - :param permissions: The permissions the user have for this subscriptions. - :type permissions: object - :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` - :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. - :type status: object - :param status_message: Message that provides more details about the status of the subscription. - :type status_message: str - :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` - :param url: REST API URL of the subscriotion. - :type url: str - :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, - 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, - 'description': {'key': 'description', 'type': 'str'}, - 'diagnostics': {'key': 'diagnostics', 'type': 'SubscriptionDiagnostics'}, - 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'permissions': {'key': 'permissions', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, - 'status': {'key': 'status', 'type': 'object'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} - } - - def __init__(self, _links=None, admin_settings=None, channel=None, description=None, diagnostics=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): - super(NotificationSubscription, self).__init__() - self._links = _links - self.admin_settings = admin_settings - self.channel = channel - self.description = description - self.diagnostics = diagnostics - self.extended_properties = extended_properties - self.filter = filter - self.flags = flags - self.id = id - self.last_modified_by = last_modified_by - self.modified_date = modified_date - self.permissions = permissions - self.scope = scope - self.status = status - self.status_message = status_message - self.subscriber = subscriber - self.url = url - self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py b/vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py deleted file mode 100644 index 4b894a18..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_subscription_create_parameters.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriptionCreateParameters(Model): - """NotificationSubscriptionCreateParameters. - - :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` - :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. - :type description: str - :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` - :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` - :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` - """ - - _attribute_map = { - 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, - 'description': {'key': 'description', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, - 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'} - } - - def __init__(self, channel=None, description=None, filter=None, scope=None, subscriber=None): - super(NotificationSubscriptionCreateParameters, self).__init__() - self.channel = channel - self.description = description - self.filter = filter - self.scope = scope - self.subscriber = subscriber diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription_template.py b/vsts/vsts/notification/v4_1/models/notification_subscription_template.py deleted file mode 100644 index d6cc39e5..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_subscription_template.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriptionTemplate(Model): - """NotificationSubscriptionTemplate. - - :param description: - :type description: str - :param filter: - :type filter: :class:`ISubscriptionFilter ` - :param id: - :type id: str - :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` - :param type: - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'id': {'key': 'id', 'type': 'str'}, - 'notification_event_information': {'key': 'notificationEventInformation', 'type': 'NotificationEventType'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, filter=None, id=None, notification_event_information=None, type=None): - super(NotificationSubscriptionTemplate, self).__init__() - self.description = description - self.filter = filter - self.id = id - self.notification_event_information = notification_event_information - self.type = type diff --git a/vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py b/vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py deleted file mode 100644 index 7d9a60aa..00000000 --- a/vsts/vsts/notification/v4_1/models/notification_subscription_update_parameters.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSubscriptionUpdateParameters(Model): - """NotificationSubscriptionUpdateParameters. - - :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` - :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` - :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. - :type description: str - :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` - :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` - :param status: Updated status for the subscription. Typically used to enable or disable a subscription. - :type status: object - :param status_message: Optional message that provides more details about the updated status. - :type status_message: str - :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` - """ - - _attribute_map = { - 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, - 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, - 'description': {'key': 'description', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'scope': {'key': 'scope', 'type': 'SubscriptionScope'}, - 'status': {'key': 'status', 'type': 'object'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} - } - - def __init__(self, admin_settings=None, channel=None, description=None, filter=None, scope=None, status=None, status_message=None, user_settings=None): - super(NotificationSubscriptionUpdateParameters, self).__init__() - self.admin_settings = admin_settings - self.channel = channel - self.description = description - self.filter = filter - self.scope = scope - self.status = status - self.status_message = status_message - self.user_settings = user_settings diff --git a/vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py b/vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py deleted file mode 100644 index 3fe8febc..00000000 --- a/vsts/vsts/notification/v4_1/models/notifications_evaluation_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationsEvaluationResult(Model): - """NotificationsEvaluationResult. - - :param count: Count of generated notifications - :type count: int - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'} - } - - def __init__(self, count=None): - super(NotificationsEvaluationResult, self).__init__() - self.count = count diff --git a/vsts/vsts/notification/v4_1/models/operator_constraint.py b/vsts/vsts/notification/v4_1/models/operator_constraint.py deleted file mode 100644 index f5041e41..00000000 --- a/vsts/vsts/notification/v4_1/models/operator_constraint.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperatorConstraint(Model): - """OperatorConstraint. - - :param operator: - :type operator: str - :param supported_scopes: Gets or sets the list of scopes that this type supports. - :type supported_scopes: list of str - """ - - _attribute_map = { - 'operator': {'key': 'operator', 'type': 'str'}, - 'supported_scopes': {'key': 'supportedScopes', 'type': '[str]'} - } - - def __init__(self, operator=None, supported_scopes=None): - super(OperatorConstraint, self).__init__() - self.operator = operator - self.supported_scopes = supported_scopes diff --git a/vsts/vsts/notification/v4_1/models/reference_links.py b/vsts/vsts/notification/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/notification/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/notification/v4_1/models/subscription_admin_settings.py b/vsts/vsts/notification/v4_1/models/subscription_admin_settings.py deleted file mode 100644 index bb257d6a..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_admin_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionAdminSettings(Model): - """SubscriptionAdminSettings. - - :param block_user_opt_out: If true, members of the group subscribed to the associated subscription cannot opt (choose not to get notified) - :type block_user_opt_out: bool - """ - - _attribute_map = { - 'block_user_opt_out': {'key': 'blockUserOptOut', 'type': 'bool'} - } - - def __init__(self, block_user_opt_out=None): - super(SubscriptionAdminSettings, self).__init__() - self.block_user_opt_out = block_user_opt_out diff --git a/vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py b/vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py deleted file mode 100644 index c5d7f620..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_channel_with_address.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionChannelWithAddress(Model): - """SubscriptionChannelWithAddress. - - :param address: - :type address: str - :param type: - :type type: str - :param use_custom_address: - :type use_custom_address: bool - """ - - _attribute_map = { - 'address': {'key': 'address', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_custom_address': {'key': 'useCustomAddress', 'type': 'bool'} - } - - def __init__(self, address=None, type=None, use_custom_address=None): - super(SubscriptionChannelWithAddress, self).__init__() - self.address = address - self.type = type - self.use_custom_address = use_custom_address diff --git a/vsts/vsts/notification/v4_1/models/subscription_diagnostics.py b/vsts/vsts/notification/v4_1/models/subscription_diagnostics.py deleted file mode 100644 index 78792b01..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_diagnostics.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionDiagnostics(Model): - """SubscriptionDiagnostics. - - :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` - :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` - :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` - """ - - _attribute_map = { - 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, - 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, - 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} - } - - def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): - super(SubscriptionDiagnostics, self).__init__() - self.delivery_results = delivery_results - self.delivery_tracing = delivery_tracing - self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py b/vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py deleted file mode 100644 index 7735679c..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_evaluation_request.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionEvaluationRequest(Model): - """SubscriptionEvaluationRequest. - - :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date - :type min_events_created_date: datetime - :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` - """ - - _attribute_map = { - 'min_events_created_date': {'key': 'minEventsCreatedDate', 'type': 'iso-8601'}, - 'subscription_create_parameters': {'key': 'subscriptionCreateParameters', 'type': 'NotificationSubscriptionCreateParameters'} - } - - def __init__(self, min_events_created_date=None, subscription_create_parameters=None): - super(SubscriptionEvaluationRequest, self).__init__() - self.min_events_created_date = min_events_created_date - self.subscription_create_parameters = subscription_create_parameters diff --git a/vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py b/vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py deleted file mode 100644 index 0896d2c3..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_evaluation_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionEvaluationResult(Model): - """SubscriptionEvaluationResult. - - :param evaluation_job_status: Subscription evaluation job status - :type evaluation_job_status: object - :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` - :param id: The requestId which is the subscription evaluation jobId - :type id: str - :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` - """ - - _attribute_map = { - 'evaluation_job_status': {'key': 'evaluationJobStatus', 'type': 'object'}, - 'events': {'key': 'events', 'type': 'EventsEvaluationResult'}, - 'id': {'key': 'id', 'type': 'str'}, - 'notifications': {'key': 'notifications', 'type': 'NotificationsEvaluationResult'} - } - - def __init__(self, evaluation_job_status=None, events=None, id=None, notifications=None): - super(SubscriptionEvaluationResult, self).__init__() - self.evaluation_job_status = evaluation_job_status - self.events = events - self.id = id - self.notifications = notifications diff --git a/vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py b/vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py deleted file mode 100644 index 2afc0946..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_evaluation_settings.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionEvaluationSettings(Model): - """SubscriptionEvaluationSettings. - - :param enabled: Indicates whether subscription evaluation before saving is enabled or not - :type enabled: bool - :param interval: Time interval to check on subscription evaluation job in seconds - :type interval: int - :param threshold: Threshold on the number of notifications for considering a subscription too noisy - :type threshold: int - :param time_out: Time out for the subscription evaluation check in seconds - :type time_out: int - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'interval': {'key': 'interval', 'type': 'int'}, - 'threshold': {'key': 'threshold', 'type': 'int'}, - 'time_out': {'key': 'timeOut', 'type': 'int'} - } - - def __init__(self, enabled=None, interval=None, threshold=None, time_out=None): - super(SubscriptionEvaluationSettings, self).__init__() - self.enabled = enabled - self.interval = interval - self.threshold = threshold - self.time_out = time_out diff --git a/vsts/vsts/notification/v4_1/models/subscription_management.py b/vsts/vsts/notification/v4_1/models/subscription_management.py deleted file mode 100644 index 92f047de..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_management.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionManagement(Model): - """SubscriptionManagement. - - :param service_instance_type: - :type service_instance_type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, service_instance_type=None, url=None): - super(SubscriptionManagement, self).__init__() - self.service_instance_type = service_instance_type - self.url = url diff --git a/vsts/vsts/notification/v4_1/models/subscription_query.py b/vsts/vsts/notification/v4_1/models/subscription_query.py deleted file mode 100644 index 10ee7b00..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_query.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionQuery(Model): - """SubscriptionQuery. - - :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` - :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. - :type query_flags: object - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[SubscriptionQueryCondition]'}, - 'query_flags': {'key': 'queryFlags', 'type': 'object'} - } - - def __init__(self, conditions=None, query_flags=None): - super(SubscriptionQuery, self).__init__() - self.conditions = conditions - self.query_flags = query_flags diff --git a/vsts/vsts/notification/v4_1/models/subscription_query_condition.py b/vsts/vsts/notification/v4_1/models/subscription_query_condition.py deleted file mode 100644 index 90080ee2..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_query_condition.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionQueryCondition(Model): - """SubscriptionQueryCondition. - - :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` - :param flags: Flags to specify the the type subscriptions to query for. - :type flags: object - :param scope: Scope that matching subscriptions must have. - :type scope: str - :param subscriber_id: ID of the subscriber (user or group) that matching subscriptions must be subscribed to. - :type subscriber_id: str - :param subscription_id: ID of the subscription to query for. - :type subscription_id: str - """ - - _attribute_map = { - 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, - 'flags': {'key': 'flags', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, filter=None, flags=None, scope=None, subscriber_id=None, subscription_id=None): - super(SubscriptionQueryCondition, self).__init__() - self.filter = filter - self.flags = flags - self.scope = scope - self.subscriber_id = subscriber_id - self.subscription_id = subscription_id diff --git a/vsts/vsts/notification/v4_1/models/subscription_scope.py b/vsts/vsts/notification/v4_1/models/subscription_scope.py deleted file mode 100644 index 63d16770..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_scope.py +++ /dev/null @@ -1,30 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .event_scope import EventScope - - -class SubscriptionScope(EventScope): - """SubscriptionScope. - - :param id: Required: This is the identity of the scope for the type. - :type id: str - :param name: Optional: The display name of the scope - :type name: str - :param type: Required: The event specific type of a scope. - :type type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, id=None, name=None, type=None): - super(SubscriptionScope, self).__init__(id=id, name=name, type=type) diff --git a/vsts/vsts/notification/v4_1/models/subscription_tracing.py b/vsts/vsts/notification/v4_1/models/subscription_tracing.py deleted file mode 100644 index 3f0ac917..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_tracing.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionTracing(Model): - """SubscriptionTracing. - - :param enabled: - :type enabled: bool - :param end_date: Trace until the specified end date. - :type end_date: datetime - :param max_traced_entries: The maximum number of result details to trace. - :type max_traced_entries: int - :param start_date: The date and time tracing started. - :type start_date: datetime - :param traced_entries: Trace until remaining count reaches 0. - :type traced_entries: int - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} - } - - def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): - super(SubscriptionTracing, self).__init__() - self.enabled = enabled - self.end_date = end_date - self.max_traced_entries = max_traced_entries - self.start_date = start_date - self.traced_entries = traced_entries diff --git a/vsts/vsts/notification/v4_1/models/subscription_user_settings.py b/vsts/vsts/notification/v4_1/models/subscription_user_settings.py deleted file mode 100644 index ae1d2e4b..00000000 --- a/vsts/vsts/notification/v4_1/models/subscription_user_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionUserSettings(Model): - """SubscriptionUserSettings. - - :param opted_out: Indicates whether the user will receive notifications for the associated group subscription. - :type opted_out: bool - """ - - _attribute_map = { - 'opted_out': {'key': 'optedOut', 'type': 'bool'} - } - - def __init__(self, opted_out=None): - super(SubscriptionUserSettings, self).__init__() - self.opted_out = opted_out diff --git a/vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py b/vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py deleted file mode 100644 index da3e2dbd..00000000 --- a/vsts/vsts/notification/v4_1/models/update_subscripiton_diagnostics_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdateSubscripitonDiagnosticsParameters(Model): - """UpdateSubscripitonDiagnosticsParameters. - - :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` - :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` - :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` - """ - - _attribute_map = { - 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, - 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, - 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} - } - - def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): - super(UpdateSubscripitonDiagnosticsParameters, self).__init__() - self.delivery_results = delivery_results - self.delivery_tracing = delivery_tracing - self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py b/vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py deleted file mode 100644 index 13f3ef64..00000000 --- a/vsts/vsts/notification/v4_1/models/update_subscripiton_tracing_parameters.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdateSubscripitonTracingParameters(Model): - """UpdateSubscripitonTracingParameters. - - :param enabled: - :type enabled: bool - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'} - } - - def __init__(self, enabled=None): - super(UpdateSubscripitonTracingParameters, self).__init__() - self.enabled = enabled diff --git a/vsts/vsts/notification/v4_1/models/value_definition.py b/vsts/vsts/notification/v4_1/models/value_definition.py deleted file mode 100644 index 5ea1d0f0..00000000 --- a/vsts/vsts/notification/v4_1/models/value_definition.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ValueDefinition(Model): - """ValueDefinition. - - :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` - :param end_point: Gets or sets the rest end point. - :type end_point: str - :param result_template: Gets or sets the result template. - :type result_template: str - """ - - _attribute_map = { - 'data_source': {'key': 'dataSource', 'type': '[InputValue]'}, - 'end_point': {'key': 'endPoint', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'} - } - - def __init__(self, data_source=None, end_point=None, result_template=None): - super(ValueDefinition, self).__init__() - self.data_source = data_source - self.end_point = end_point - self.result_template = result_template diff --git a/vsts/vsts/notification/v4_1/models/vss_notification_event.py b/vsts/vsts/notification/v4_1/models/vss_notification_event.py deleted file mode 100644 index fcc6ea1b..00000000 --- a/vsts/vsts/notification/v4_1/models/vss_notification_event.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VssNotificationEvent(Model): - """VssNotificationEvent. - - :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` - :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. - :type artifact_uris: list of str - :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. - :type data: object - :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. - :type event_type: str - :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` - """ - - _attribute_map = { - 'actors': {'key': 'actors', 'type': '[EventActor]'}, - 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, - 'data': {'key': 'data', 'type': 'object'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[EventScope]'} - } - - def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): - super(VssNotificationEvent, self).__init__() - self.actors = actors - self.artifact_uris = artifact_uris - self.data = data - self.event_type = event_type - self.scopes = scopes diff --git a/vsts/vsts/npm/__init__.py b/vsts/vsts/npm/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/npm/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/npm/v4_1/__init__.py b/vsts/vsts/npm/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/npm/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/npm/v4_1/models/__init__.py b/vsts/vsts/npm/v4_1/models/__init__.py deleted file mode 100644 index 2d041972..00000000 --- a/vsts/vsts/npm/v4_1/models/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .batch_deprecate_data import BatchDeprecateData -from .batch_operation_data import BatchOperationData -from .json_patch_operation import JsonPatchOperation -from .minimal_package_details import MinimalPackageDetails -from .npm_packages_batch_request import NpmPackagesBatchRequest -from .npm_package_version_deletion_state import NpmPackageVersionDeletionState -from .npm_recycle_bin_package_version_details import NpmRecycleBinPackageVersionDetails -from .package import Package -from .package_version_details import PackageVersionDetails -from .reference_links import ReferenceLinks -from .upstream_source_info import UpstreamSourceInfo - -__all__ = [ - 'BatchDeprecateData', - 'BatchOperationData', - 'JsonPatchOperation', - 'MinimalPackageDetails', - 'NpmPackagesBatchRequest', - 'NpmPackageVersionDeletionState', - 'NpmRecycleBinPackageVersionDetails', - 'Package', - 'PackageVersionDetails', - 'ReferenceLinks', - 'UpstreamSourceInfo', -] diff --git a/vsts/vsts/npm/v4_1/models/batch_deprecate_data.py b/vsts/vsts/npm/v4_1/models/batch_deprecate_data.py deleted file mode 100644 index a5a9c582..00000000 --- a/vsts/vsts/npm/v4_1/models/batch_deprecate_data.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .batch_operation_data import BatchOperationData - - -class BatchDeprecateData(BatchOperationData): - """BatchDeprecateData. - - :param message: Deprecate message that will be added to packages - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(BatchDeprecateData, self).__init__() - self.message = message diff --git a/vsts/vsts/npm/v4_1/models/batch_operation_data.py b/vsts/vsts/npm/v4_1/models/batch_operation_data.py deleted file mode 100644 index a084ef44..00000000 --- a/vsts/vsts/npm/v4_1/models/batch_operation_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BatchOperationData(Model): - """BatchOperationData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(BatchOperationData, self).__init__() diff --git a/vsts/vsts/npm/v4_1/models/json_patch_operation.py b/vsts/vsts/npm/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/npm/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/npm/v4_1/models/minimal_package_details.py b/vsts/vsts/npm/v4_1/models/minimal_package_details.py deleted file mode 100644 index 11c55e98..00000000 --- a/vsts/vsts/npm/v4_1/models/minimal_package_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MinimalPackageDetails(Model): - """MinimalPackageDetails. - - :param id: Package name. - :type id: str - :param version: Package version. - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, version=None): - super(MinimalPackageDetails, self).__init__() - self.id = id - self.version = version diff --git a/vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py b/vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py deleted file mode 100644 index 542768ce..00000000 --- a/vsts/vsts/npm/v4_1/models/npm_package_version_deletion_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NpmPackageVersionDeletionState(Model): - """NpmPackageVersionDeletionState. - - :param name: - :type name: str - :param unpublished_date: - :type unpublished_date: datetime - :param version: - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, name=None, unpublished_date=None, version=None): - super(NpmPackageVersionDeletionState, self).__init__() - self.name = name - self.unpublished_date = unpublished_date - self.version = version diff --git a/vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py b/vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py deleted file mode 100644 index 5fd8e453..00000000 --- a/vsts/vsts/npm/v4_1/models/npm_packages_batch_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NpmPackagesBatchRequest(Model): - """NpmPackagesBatchRequest. - - :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` - :param operation: Type of operation that needs to be performed on packages. - :type operation: object - :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'BatchOperationData'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} - } - - def __init__(self, data=None, operation=None, packages=None): - super(NpmPackagesBatchRequest, self).__init__() - self.data = data - self.operation = operation - self.packages = packages diff --git a/vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py b/vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py deleted file mode 100644 index 26177326..00000000 --- a/vsts/vsts/npm/v4_1/models/npm_recycle_bin_package_version_details.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NpmRecycleBinPackageVersionDetails(Model): - """NpmRecycleBinPackageVersionDetails. - - :param deleted: Setting to false will undo earlier deletion and restore the package to feed. - :type deleted: bool - """ - - _attribute_map = { - 'deleted': {'key': 'deleted', 'type': 'bool'} - } - - def __init__(self, deleted=None): - super(NpmRecycleBinPackageVersionDetails, self).__init__() - self.deleted = deleted diff --git a/vsts/vsts/npm/v4_1/models/package.py b/vsts/vsts/npm/v4_1/models/package.py deleted file mode 100644 index 94b3d6fc..00000000 --- a/vsts/vsts/npm/v4_1/models/package.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Package(Model): - """Package. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param deprecate_message: Deprecated message, if any, for the package - :type deprecate_message: str - :param id: - :type id: str - :param name: The display name of the package - :type name: str - :param permanently_deleted_date: If and when the package was permanently deleted. - :type permanently_deleted_date: datetime - :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` - :param unpublished_date: If and when the package was deleted - :type unpublished_date: datetime - :param version: The version of the package - :type version: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, - 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, - 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, _links=None, deprecate_message=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, unpublished_date=None, version=None): - super(Package, self).__init__() - self._links = _links - self.deprecate_message = deprecate_message - self.id = id - self.name = name - self.permanently_deleted_date = permanently_deleted_date - self.source_chain = source_chain - self.unpublished_date = unpublished_date - self.version = version diff --git a/vsts/vsts/npm/v4_1/models/package_version_details.py b/vsts/vsts/npm/v4_1/models/package_version_details.py deleted file mode 100644 index a249cb23..00000000 --- a/vsts/vsts/npm/v4_1/models/package_version_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageVersionDetails(Model): - """PackageVersionDetails. - - :param deprecate_message: Indicates the deprecate message of a package version - :type deprecate_message: str - :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` - """ - - _attribute_map = { - 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, - 'views': {'key': 'views', 'type': 'JsonPatchOperation'} - } - - def __init__(self, deprecate_message=None, views=None): - super(PackageVersionDetails, self).__init__() - self.deprecate_message = deprecate_message - self.views = views diff --git a/vsts/vsts/npm/v4_1/models/reference_links.py b/vsts/vsts/npm/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/npm/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/npm/v4_1/models/upstream_source_info.py b/vsts/vsts/npm/v4_1/models/upstream_source_info.py deleted file mode 100644 index a49464e6..00000000 --- a/vsts/vsts/npm/v4_1/models/upstream_source_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpstreamSourceInfo(Model): - """UpstreamSourceInfo. - - :param id: - :type id: str - :param location: - :type location: str - :param name: - :type name: str - :param source_type: - :type source_type: object - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source_type': {'key': 'sourceType', 'type': 'object'} - } - - def __init__(self, id=None, location=None, name=None, source_type=None): - super(UpstreamSourceInfo, self).__init__() - self.id = id - self.location = location - self.name = name - self.source_type = source_type diff --git a/vsts/vsts/nuget/__init__.py b/vsts/vsts/nuget/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/nuget/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/nuget/v4_1/__init__.py b/vsts/vsts/nuget/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/nuget/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/nuget/v4_1/models/__init__.py b/vsts/vsts/nuget/v4_1/models/__init__.py deleted file mode 100644 index e468377f..00000000 --- a/vsts/vsts/nuget/v4_1/models/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .batch_list_data import BatchListData -from .batch_operation_data import BatchOperationData -from .json_patch_operation import JsonPatchOperation -from .minimal_package_details import MinimalPackageDetails -from .nuGet_packages_batch_request import NuGetPackagesBatchRequest -from .nuGet_package_version_deletion_state import NuGetPackageVersionDeletionState -from .nuGet_recycle_bin_package_version_details import NuGetRecycleBinPackageVersionDetails -from .package import Package -from .package_version_details import PackageVersionDetails -from .reference_links import ReferenceLinks - -__all__ = [ - 'BatchListData', - 'BatchOperationData', - 'JsonPatchOperation', - 'MinimalPackageDetails', - 'NuGetPackagesBatchRequest', - 'NuGetPackageVersionDeletionState', - 'NuGetRecycleBinPackageVersionDetails', - 'Package', - 'PackageVersionDetails', - 'ReferenceLinks', -] diff --git a/vsts/vsts/nuget/v4_1/models/batch_list_data.py b/vsts/vsts/nuget/v4_1/models/batch_list_data.py deleted file mode 100644 index 713ee62a..00000000 --- a/vsts/vsts/nuget/v4_1/models/batch_list_data.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .batch_operation_data import BatchOperationData - - -class BatchListData(BatchOperationData): - """BatchListData. - - :param listed: The desired listed status for the package versions. - :type listed: bool - """ - - _attribute_map = { - 'listed': {'key': 'listed', 'type': 'bool'} - } - - def __init__(self, listed=None): - super(BatchListData, self).__init__() - self.listed = listed diff --git a/vsts/vsts/nuget/v4_1/models/batch_operation_data.py b/vsts/vsts/nuget/v4_1/models/batch_operation_data.py deleted file mode 100644 index a084ef44..00000000 --- a/vsts/vsts/nuget/v4_1/models/batch_operation_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BatchOperationData(Model): - """BatchOperationData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(BatchOperationData, self).__init__() diff --git a/vsts/vsts/nuget/v4_1/models/json_patch_operation.py b/vsts/vsts/nuget/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/nuget/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/nuget/v4_1/models/minimal_package_details.py b/vsts/vsts/nuget/v4_1/models/minimal_package_details.py deleted file mode 100644 index 11c55e98..00000000 --- a/vsts/vsts/nuget/v4_1/models/minimal_package_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MinimalPackageDetails(Model): - """MinimalPackageDetails. - - :param id: Package name. - :type id: str - :param version: Package version. - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, version=None): - super(MinimalPackageDetails, self).__init__() - self.id = id - self.version = version diff --git a/vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py b/vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py deleted file mode 100644 index 3b06a248..00000000 --- a/vsts/vsts/nuget/v4_1/models/nuGet_package_version_deletion_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NuGetPackageVersionDeletionState(Model): - """NuGetPackageVersionDeletionState. - - :param deleted_date: - :type deleted_date: datetime - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, deleted_date=None, name=None, version=None): - super(NuGetPackageVersionDeletionState, self).__init__() - self.deleted_date = deleted_date - self.name = name - self.version = version diff --git a/vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py b/vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py deleted file mode 100644 index 7885fbd7..00000000 --- a/vsts/vsts/nuget/v4_1/models/nuGet_packages_batch_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NuGetPackagesBatchRequest(Model): - """NuGetPackagesBatchRequest. - - :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` - :param operation: Type of operation that needs to be performed on packages. - :type operation: object - :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'BatchOperationData'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} - } - - def __init__(self, data=None, operation=None, packages=None): - super(NuGetPackagesBatchRequest, self).__init__() - self.data = data - self.operation = operation - self.packages = packages diff --git a/vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py b/vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py deleted file mode 100644 index f55a4bfa..00000000 --- a/vsts/vsts/nuget/v4_1/models/nuGet_recycle_bin_package_version_details.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NuGetRecycleBinPackageVersionDetails(Model): - """NuGetRecycleBinPackageVersionDetails. - - :param deleted: Setting to false will undo earlier deletion and restore the package to feed. - :type deleted: bool - """ - - _attribute_map = { - 'deleted': {'key': 'deleted', 'type': 'bool'} - } - - def __init__(self, deleted=None): - super(NuGetRecycleBinPackageVersionDetails, self).__init__() - self.deleted = deleted diff --git a/vsts/vsts/nuget/v4_1/models/package.py b/vsts/vsts/nuget/v4_1/models/package.py deleted file mode 100644 index d69b1ffb..00000000 --- a/vsts/vsts/nuget/v4_1/models/package.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Package(Model): - """Package. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param deleted_date: If and when the package was deleted - :type deleted_date: datetime - :param id: - :type id: str - :param name: The display name of the package - :type name: str - :param permanently_deleted_date: If and when the package was permanently deleted. - :type permanently_deleted_date: datetime - :param version: The version of the package - :type version: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): - super(Package, self).__init__() - self._links = _links - self.deleted_date = deleted_date - self.id = id - self.name = name - self.permanently_deleted_date = permanently_deleted_date - self.version = version diff --git a/vsts/vsts/nuget/v4_1/models/package_version_details.py b/vsts/vsts/nuget/v4_1/models/package_version_details.py deleted file mode 100644 index 0d3ca486..00000000 --- a/vsts/vsts/nuget/v4_1/models/package_version_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageVersionDetails(Model): - """PackageVersionDetails. - - :param listed: Indicates the listing state of a package - :type listed: bool - :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` - """ - - _attribute_map = { - 'listed': {'key': 'listed', 'type': 'bool'}, - 'views': {'key': 'views', 'type': 'JsonPatchOperation'} - } - - def __init__(self, listed=None, views=None): - super(PackageVersionDetails, self).__init__() - self.listed = listed - self.views = views diff --git a/vsts/vsts/nuget/v4_1/models/reference_links.py b/vsts/vsts/nuget/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/nuget/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/operations/__init__.py b/vsts/vsts/operations/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/operations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/operations/v4_0/__init__.py b/vsts/vsts/operations/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/operations/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/operations/v4_0/models/operation_reference.py b/vsts/vsts/operations/v4_0/models/operation_reference.py deleted file mode 100644 index fb73a6c6..00000000 --- a/vsts/vsts/operations/v4_0/models/operation_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationReference(Model): - """OperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, status=None, url=None): - super(OperationReference, self).__init__() - self.id = id - self.status = status - self.url = url diff --git a/vsts/vsts/operations/v4_0/models/reference_links.py b/vsts/vsts/operations/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/operations/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/operations/v4_1/__init__.py b/vsts/vsts/operations/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/operations/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/operations/v4_1/models/operation_reference.py b/vsts/vsts/operations/v4_1/models/operation_reference.py deleted file mode 100644 index cdbef013..00000000 --- a/vsts/vsts/operations/v4_1/models/operation_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationReference(Model): - """OperationReference. - - :param id: Unique identifier for the operation. - :type id: str - :param plugin_id: Unique identifier for the plugin. - :type plugin_id: str - :param status: The current status of the operation. - :type status: object - :param url: URL to get the full operation object. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'plugin_id': {'key': 'pluginId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, plugin_id=None, status=None, url=None): - super(OperationReference, self).__init__() - self.id = id - self.plugin_id = plugin_id - self.status = status - self.url = url diff --git a/vsts/vsts/operations/v4_1/models/operation_result_reference.py b/vsts/vsts/operations/v4_1/models/operation_result_reference.py deleted file mode 100644 index 0b7a0e28..00000000 --- a/vsts/vsts/operations/v4_1/models/operation_result_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OperationResultReference(Model): - """OperationResultReference. - - :param result_url: URL to the operation result. - :type result_url: str - """ - - _attribute_map = { - 'result_url': {'key': 'resultUrl', 'type': 'str'} - } - - def __init__(self, result_url=None): - super(OperationResultReference, self).__init__() - self.result_url = result_url diff --git a/vsts/vsts/operations/v4_1/models/reference_links.py b/vsts/vsts/operations/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/operations/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/policy/__init__.py b/vsts/vsts/policy/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/policy/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/policy/v4_0/__init__.py b/vsts/vsts/policy/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/policy/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/policy/v4_0/models/__init__.py b/vsts/vsts/policy/v4_0/models/__init__.py deleted file mode 100644 index 15df3183..00000000 --- a/vsts/vsts/policy/v4_0/models/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_ref import IdentityRef -from .policy_configuration import PolicyConfiguration -from .policy_configuration_ref import PolicyConfigurationRef -from .policy_evaluation_record import PolicyEvaluationRecord -from .policy_type import PolicyType -from .policy_type_ref import PolicyTypeRef -from .reference_links import ReferenceLinks -from .versioned_policy_configuration_ref import VersionedPolicyConfigurationRef - -__all__ = [ - 'IdentityRef', - 'PolicyConfiguration', - 'PolicyConfigurationRef', - 'PolicyEvaluationRecord', - 'PolicyType', - 'PolicyTypeRef', - 'ReferenceLinks', - 'VersionedPolicyConfigurationRef', -] diff --git a/vsts/vsts/policy/v4_0/models/identity_ref.py b/vsts/vsts/policy/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/policy/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/policy/v4_0/models/policy_configuration.py b/vsts/vsts/policy/v4_0/models/policy_configuration.py deleted file mode 100644 index 444fb2f7..00000000 --- a/vsts/vsts/policy/v4_0/models/policy_configuration.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .versioned_policy_configuration_ref import VersionedPolicyConfigurationRef - - -class PolicyConfiguration(VersionedPolicyConfigurationRef): - """PolicyConfiguration. - - :param id: - :type id: int - :param type: - :type type: :class:`PolicyTypeRef ` - :param url: - :type url: str - :param revision: - :type revision: int - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_date: - :type created_date: datetime - :param is_blocking: - :type is_blocking: bool - :param is_deleted: - :type is_deleted: bool - :param is_enabled: - :type is_enabled: bool - :param settings: - :type settings: :class:`object ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'is_blocking': {'key': 'isBlocking', 'type': 'bool'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'settings': {'key': 'settings', 'type': 'object'} - } - - def __init__(self, id=None, type=None, url=None, revision=None, _links=None, created_by=None, created_date=None, is_blocking=None, is_deleted=None, is_enabled=None, settings=None): - super(PolicyConfiguration, self).__init__(id=id, type=type, url=url, revision=revision) - self._links = _links - self.created_by = created_by - self.created_date = created_date - self.is_blocking = is_blocking - self.is_deleted = is_deleted - self.is_enabled = is_enabled - self.settings = settings diff --git a/vsts/vsts/policy/v4_0/models/policy_configuration_ref.py b/vsts/vsts/policy/v4_0/models/policy_configuration_ref.py deleted file mode 100644 index 069f41bf..00000000 --- a/vsts/vsts/policy/v4_0/models/policy_configuration_ref.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PolicyConfigurationRef(Model): - """PolicyConfigurationRef. - - :param id: - :type id: int - :param type: - :type type: :class:`PolicyTypeRef ` - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, type=None, url=None): - super(PolicyConfigurationRef, self).__init__() - self.id = id - self.type = type - self.url = url diff --git a/vsts/vsts/policy/v4_0/models/policy_evaluation_record.py b/vsts/vsts/policy/v4_0/models/policy_evaluation_record.py deleted file mode 100644 index 8ca910ea..00000000 --- a/vsts/vsts/policy/v4_0/models/policy_evaluation_record.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PolicyEvaluationRecord(Model): - """PolicyEvaluationRecord. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param artifact_id: - :type artifact_id: str - :param completed_date: - :type completed_date: datetime - :param configuration: - :type configuration: :class:`PolicyConfiguration ` - :param context: - :type context: :class:`object ` - :param evaluation_id: - :type evaluation_id: str - :param started_date: - :type started_date: datetime - :param status: - :type status: object - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'configuration': {'key': 'configuration', 'type': 'PolicyConfiguration'}, - 'context': {'key': 'context', 'type': 'object'}, - 'evaluation_id': {'key': 'evaluationId', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, _links=None, artifact_id=None, completed_date=None, configuration=None, context=None, evaluation_id=None, started_date=None, status=None): - super(PolicyEvaluationRecord, self).__init__() - self._links = _links - self.artifact_id = artifact_id - self.completed_date = completed_date - self.configuration = configuration - self.context = context - self.evaluation_id = evaluation_id - self.started_date = started_date - self.status = status diff --git a/vsts/vsts/policy/v4_0/models/policy_type.py b/vsts/vsts/policy/v4_0/models/policy_type.py deleted file mode 100644 index b63adbd0..00000000 --- a/vsts/vsts/policy/v4_0/models/policy_type.py +++ /dev/null @@ -1,38 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .policy_type_ref import PolicyTypeRef - - -class PolicyType(PolicyTypeRef): - """PolicyType. - - :param display_name: - :type display_name: str - :param id: - :type id: str - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None, url=None, _links=None, description=None): - super(PolicyType, self).__init__(display_name=display_name, id=id, url=url) - self._links = _links - self.description = description diff --git a/vsts/vsts/policy/v4_0/models/policy_type_ref.py b/vsts/vsts/policy/v4_0/models/policy_type_ref.py deleted file mode 100644 index bc9e52f9..00000000 --- a/vsts/vsts/policy/v4_0/models/policy_type_ref.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PolicyTypeRef(Model): - """PolicyTypeRef. - - :param display_name: - :type display_name: str - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None, url=None): - super(PolicyTypeRef, self).__init__() - self.display_name = display_name - self.id = id - self.url = url diff --git a/vsts/vsts/policy/v4_0/models/reference_links.py b/vsts/vsts/policy/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/policy/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/policy/v4_0/models/versioned_policy_configuration_ref.py b/vsts/vsts/policy/v4_0/models/versioned_policy_configuration_ref.py deleted file mode 100644 index 89ad8bba..00000000 --- a/vsts/vsts/policy/v4_0/models/versioned_policy_configuration_ref.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .policy_configuration_ref import PolicyConfigurationRef - - -class VersionedPolicyConfigurationRef(PolicyConfigurationRef): - """VersionedPolicyConfigurationRef. - - :param id: - :type id: int - :param type: - :type type: :class:`PolicyTypeRef ` - :param url: - :type url: str - :param revision: - :type revision: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, id=None, type=None, url=None, revision=None): - super(VersionedPolicyConfigurationRef, self).__init__(id=id, type=type, url=url) - self.revision = revision diff --git a/vsts/vsts/policy/v4_1/__init__.py b/vsts/vsts/policy/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/policy/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/policy/v4_1/models/__init__.py b/vsts/vsts/policy/v4_1/models/__init__.py deleted file mode 100644 index a1e4a4bc..00000000 --- a/vsts/vsts/policy/v4_1/models/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .policy_configuration import PolicyConfiguration -from .policy_configuration_ref import PolicyConfigurationRef -from .policy_evaluation_record import PolicyEvaluationRecord -from .policy_type import PolicyType -from .policy_type_ref import PolicyTypeRef -from .reference_links import ReferenceLinks -from .versioned_policy_configuration_ref import VersionedPolicyConfigurationRef - -__all__ = [ - 'GraphSubjectBase', - 'IdentityRef', - 'PolicyConfiguration', - 'PolicyConfigurationRef', - 'PolicyEvaluationRecord', - 'PolicyType', - 'PolicyTypeRef', - 'ReferenceLinks', - 'VersionedPolicyConfigurationRef', -] diff --git a/vsts/vsts/policy/v4_1/models/graph_subject_base.py b/vsts/vsts/policy/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/policy/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/policy/v4_1/models/identity_ref.py b/vsts/vsts/policy/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/policy/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/policy/v4_1/models/policy_configuration.py b/vsts/vsts/policy/v4_1/models/policy_configuration.py deleted file mode 100644 index 7b6445a6..00000000 --- a/vsts/vsts/policy/v4_1/models/policy_configuration.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .versioned_policy_configuration_ref import VersionedPolicyConfigurationRef - - -class PolicyConfiguration(VersionedPolicyConfigurationRef): - """PolicyConfiguration. - - :param id: The policy configuration ID. - :type id: int - :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` - :param url: The URL where the policy configuration can be retrieved. - :type url: str - :param revision: The policy configuration revision ID. - :type revision: int - :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` - :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` - :param created_date: The date and time when the policy was created. - :type created_date: datetime - :param is_blocking: Indicates whether the policy is blocking. - :type is_blocking: bool - :param is_deleted: Indicates whether the policy has been (soft) deleted. - :type is_deleted: bool - :param is_enabled: Indicates whether the policy is enabled. - :type is_enabled: bool - :param settings: The policy configuration settings. - :type settings: :class:`object ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'is_blocking': {'key': 'isBlocking', 'type': 'bool'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'settings': {'key': 'settings', 'type': 'object'} - } - - def __init__(self, id=None, type=None, url=None, revision=None, _links=None, created_by=None, created_date=None, is_blocking=None, is_deleted=None, is_enabled=None, settings=None): - super(PolicyConfiguration, self).__init__(id=id, type=type, url=url, revision=revision) - self._links = _links - self.created_by = created_by - self.created_date = created_date - self.is_blocking = is_blocking - self.is_deleted = is_deleted - self.is_enabled = is_enabled - self.settings = settings diff --git a/vsts/vsts/policy/v4_1/models/policy_configuration_ref.py b/vsts/vsts/policy/v4_1/models/policy_configuration_ref.py deleted file mode 100644 index ac5c5608..00000000 --- a/vsts/vsts/policy/v4_1/models/policy_configuration_ref.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PolicyConfigurationRef(Model): - """PolicyConfigurationRef. - - :param id: The policy configuration ID. - :type id: int - :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` - :param url: The URL where the policy configuration can be retrieved. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, type=None, url=None): - super(PolicyConfigurationRef, self).__init__() - self.id = id - self.type = type - self.url = url diff --git a/vsts/vsts/policy/v4_1/models/policy_evaluation_record.py b/vsts/vsts/policy/v4_1/models/policy_evaluation_record.py deleted file mode 100644 index 27f43c0c..00000000 --- a/vsts/vsts/policy/v4_1/models/policy_evaluation_record.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PolicyEvaluationRecord(Model): - """PolicyEvaluationRecord. - - :param _links: Links to other related objects - :type _links: :class:`ReferenceLinks ` - :param artifact_id: A string which uniquely identifies the target of a policy evaluation. - :type artifact_id: str - :param completed_date: Time when this policy finished evaluating on this pull request. - :type completed_date: datetime - :param configuration: Contains all configuration data for the policy which is being evaluated. - :type configuration: :class:`PolicyConfiguration ` - :param context: Internal context data of this policy evaluation. - :type context: :class:`object ` - :param evaluation_id: Guid which uniquely identifies this evaluation record (one policy running on one pull request). - :type evaluation_id: str - :param started_date: Time when this policy was first evaluated on this pull request. - :type started_date: datetime - :param status: Status of the policy (Running, Approved, Failed, etc.) - :type status: object - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifact_id': {'key': 'artifactId', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'configuration': {'key': 'configuration', 'type': 'PolicyConfiguration'}, - 'context': {'key': 'context', 'type': 'object'}, - 'evaluation_id': {'key': 'evaluationId', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, _links=None, artifact_id=None, completed_date=None, configuration=None, context=None, evaluation_id=None, started_date=None, status=None): - super(PolicyEvaluationRecord, self).__init__() - self._links = _links - self.artifact_id = artifact_id - self.completed_date = completed_date - self.configuration = configuration - self.context = context - self.evaluation_id = evaluation_id - self.started_date = started_date - self.status = status diff --git a/vsts/vsts/policy/v4_1/models/policy_type.py b/vsts/vsts/policy/v4_1/models/policy_type.py deleted file mode 100644 index c4d045f9..00000000 --- a/vsts/vsts/policy/v4_1/models/policy_type.py +++ /dev/null @@ -1,38 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .policy_type_ref import PolicyTypeRef - - -class PolicyType(PolicyTypeRef): - """PolicyType. - - :param display_name: Display name of the policy type. - :type display_name: str - :param id: The policy type ID. - :type id: str - :param url: The URL where the policy type can be retrieved. - :type url: str - :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` - :param description: Detailed description of the policy type. - :type description: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None, url=None, _links=None, description=None): - super(PolicyType, self).__init__(display_name=display_name, id=id, url=url) - self._links = _links - self.description = description diff --git a/vsts/vsts/policy/v4_1/models/policy_type_ref.py b/vsts/vsts/policy/v4_1/models/policy_type_ref.py deleted file mode 100644 index 916b3afb..00000000 --- a/vsts/vsts/policy/v4_1/models/policy_type_ref.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PolicyTypeRef(Model): - """PolicyTypeRef. - - :param display_name: Display name of the policy type. - :type display_name: str - :param id: The policy type ID. - :type id: str - :param url: The URL where the policy type can be retrieved. - :type url: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None, url=None): - super(PolicyTypeRef, self).__init__() - self.display_name = display_name - self.id = id - self.url = url diff --git a/vsts/vsts/policy/v4_1/models/reference_links.py b/vsts/vsts/policy/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/policy/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/policy/v4_1/models/versioned_policy_configuration_ref.py b/vsts/vsts/policy/v4_1/models/versioned_policy_configuration_ref.py deleted file mode 100644 index 8b0a16da..00000000 --- a/vsts/vsts/policy/v4_1/models/versioned_policy_configuration_ref.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .policy_configuration_ref import PolicyConfigurationRef - - -class VersionedPolicyConfigurationRef(PolicyConfigurationRef): - """VersionedPolicyConfigurationRef. - - :param id: The policy configuration ID. - :type id: int - :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` - :param url: The URL where the policy configuration can be retrieved. - :type url: str - :param revision: The policy configuration revision ID. - :type revision: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, id=None, type=None, url=None, revision=None): - super(VersionedPolicyConfigurationRef, self).__init__(id=id, type=type, url=url) - self.revision = revision diff --git a/vsts/vsts/profile/__init__.py b/vsts/vsts/profile/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/profile/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/profile/v4_1/__init__.py b/vsts/vsts/profile/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/profile/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/profile/v4_1/models/__init__.py b/vsts/vsts/profile/v4_1/models/__init__.py deleted file mode 100644 index d983592f..00000000 --- a/vsts/vsts/profile/v4_1/models/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .attribute_descriptor import AttributeDescriptor -from .attributes_container import AttributesContainer -from .avatar import Avatar -from .core_profile_attribute import CoreProfileAttribute -from .create_profile_context import CreateProfileContext -from .geo_region import GeoRegion -from .profile import Profile -from .profile_attribute import ProfileAttribute -from .profile_attribute_base import ProfileAttributeBase -from .profile_region import ProfileRegion -from .profile_regions import ProfileRegions -from .remote_profile import RemoteProfile - -__all__ = [ - 'AttributeDescriptor', - 'AttributesContainer', - 'Avatar', - 'CoreProfileAttribute', - 'CreateProfileContext', - 'GeoRegion', - 'Profile', - 'ProfileAttribute', - 'ProfileAttributeBase', - 'ProfileRegion', - 'ProfileRegions', - 'RemoteProfile', -] diff --git a/vsts/vsts/profile/v4_1/models/attribute_descriptor.py b/vsts/vsts/profile/v4_1/models/attribute_descriptor.py deleted file mode 100644 index 99251036..00000000 --- a/vsts/vsts/profile/v4_1/models/attribute_descriptor.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AttributeDescriptor(Model): - """AttributeDescriptor. - - :param attribute_name: - :type attribute_name: str - :param container_name: - :type container_name: str - """ - - _attribute_map = { - 'attribute_name': {'key': 'attributeName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'} - } - - def __init__(self, attribute_name=None, container_name=None): - super(AttributeDescriptor, self).__init__() - self.attribute_name = attribute_name - self.container_name = container_name diff --git a/vsts/vsts/profile/v4_1/models/attributes_container.py b/vsts/vsts/profile/v4_1/models/attributes_container.py deleted file mode 100644 index 1a13d77f..00000000 --- a/vsts/vsts/profile/v4_1/models/attributes_container.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AttributesContainer(Model): - """AttributesContainer. - - :param attributes: - :type attributes: dict - :param container_name: - :type container_name: str - :param revision: - :type revision: int - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{ProfileAttribute}'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, attributes=None, container_name=None, revision=None): - super(AttributesContainer, self).__init__() - self.attributes = attributes - self.container_name = container_name - self.revision = revision diff --git a/vsts/vsts/profile/v4_1/models/avatar.py b/vsts/vsts/profile/v4_1/models/avatar.py deleted file mode 100644 index ffd52989..00000000 --- a/vsts/vsts/profile/v4_1/models/avatar.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Avatar(Model): - """Avatar. - - :param is_auto_generated: - :type is_auto_generated: bool - :param size: - :type size: object - :param time_stamp: - :type time_stamp: datetime - :param value: - :type value: str - """ - - _attribute_map = { - 'is_auto_generated': {'key': 'isAutoGenerated', 'type': 'bool'}, - 'size': {'key': 'size', 'type': 'object'}, - 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_auto_generated=None, size=None, time_stamp=None, value=None): - super(Avatar, self).__init__() - self.is_auto_generated = is_auto_generated - self.size = size - self.time_stamp = time_stamp - self.value = value diff --git a/vsts/vsts/profile/v4_1/models/core_profile_attribute.py b/vsts/vsts/profile/v4_1/models/core_profile_attribute.py deleted file mode 100644 index 850d7271..00000000 --- a/vsts/vsts/profile/v4_1/models/core_profile_attribute.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .profile_attribute_base import ProfileAttributeBase - - -class CoreProfileAttribute(ProfileAttributeBase): - """CoreProfileAttribute. - - """ - - _attribute_map = { - } - - def __init__(self): - super(CoreProfileAttribute, self).__init__() diff --git a/vsts/vsts/profile/v4_1/models/create_profile_context.py b/vsts/vsts/profile/v4_1/models/create_profile_context.py deleted file mode 100644 index b9adf7da..00000000 --- a/vsts/vsts/profile/v4_1/models/create_profile_context.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreateProfileContext(Model): - """CreateProfileContext. - - :param cIData: - :type cIData: dict - :param contact_with_offers: - :type contact_with_offers: bool - :param country_name: - :type country_name: str - :param display_name: - :type display_name: str - :param email_address: - :type email_address: str - :param has_account: - :type has_account: bool - :param language: - :type language: str - :param phone_number: - :type phone_number: str - :param profile_state: - :type profile_state: object - """ - - _attribute_map = { - 'cIData': {'key': 'cIData', 'type': '{object}'}, - 'contact_with_offers': {'key': 'contactWithOffers', 'type': 'bool'}, - 'country_name': {'key': 'countryName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'email_address': {'key': 'emailAddress', 'type': 'str'}, - 'has_account': {'key': 'hasAccount', 'type': 'bool'}, - 'language': {'key': 'language', 'type': 'str'}, - 'phone_number': {'key': 'phoneNumber', 'type': 'str'}, - 'profile_state': {'key': 'profileState', 'type': 'object'} - } - - def __init__(self, cIData=None, contact_with_offers=None, country_name=None, display_name=None, email_address=None, has_account=None, language=None, phone_number=None, profile_state=None): - super(CreateProfileContext, self).__init__() - self.cIData = cIData - self.contact_with_offers = contact_with_offers - self.country_name = country_name - self.display_name = display_name - self.email_address = email_address - self.has_account = has_account - self.language = language - self.phone_number = phone_number - self.profile_state = profile_state diff --git a/vsts/vsts/profile/v4_1/models/geo_region.py b/vsts/vsts/profile/v4_1/models/geo_region.py deleted file mode 100644 index 3de7a2f7..00000000 --- a/vsts/vsts/profile/v4_1/models/geo_region.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GeoRegion(Model): - """GeoRegion. - - :param region_code: - :type region_code: str - """ - - _attribute_map = { - 'region_code': {'key': 'regionCode', 'type': 'str'} - } - - def __init__(self, region_code=None): - super(GeoRegion, self).__init__() - self.region_code = region_code diff --git a/vsts/vsts/profile/v4_1/models/profile.py b/vsts/vsts/profile/v4_1/models/profile.py deleted file mode 100644 index bb3eb861..00000000 --- a/vsts/vsts/profile/v4_1/models/profile.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Profile(Model): - """Profile. - - :param application_container: - :type application_container: :class:`AttributesContainer ` - :param core_attributes: - :type core_attributes: dict - :param core_revision: - :type core_revision: int - :param id: - :type id: str - :param profile_state: - :type profile_state: object - :param revision: - :type revision: int - :param time_stamp: - :type time_stamp: datetime - """ - - _attribute_map = { - 'application_container': {'key': 'applicationContainer', 'type': 'AttributesContainer'}, - 'core_attributes': {'key': 'coreAttributes', 'type': '{CoreProfileAttribute}'}, - 'core_revision': {'key': 'coreRevision', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'profile_state': {'key': 'profileState', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'} - } - - def __init__(self, application_container=None, core_attributes=None, core_revision=None, id=None, profile_state=None, revision=None, time_stamp=None): - super(Profile, self).__init__() - self.application_container = application_container - self.core_attributes = core_attributes - self.core_revision = core_revision - self.id = id - self.profile_state = profile_state - self.revision = revision - self.time_stamp = time_stamp diff --git a/vsts/vsts/profile/v4_1/models/profile_attribute.py b/vsts/vsts/profile/v4_1/models/profile_attribute.py deleted file mode 100644 index f3acaf37..00000000 --- a/vsts/vsts/profile/v4_1/models/profile_attribute.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .profile_attribute_base import ProfileAttributeBase - - -class ProfileAttribute(ProfileAttributeBase): - """ProfileAttribute. - - """ - - _attribute_map = { - } - - def __init__(self): - super(ProfileAttribute, self).__init__() diff --git a/vsts/vsts/profile/v4_1/models/profile_attribute_base.py b/vsts/vsts/profile/v4_1/models/profile_attribute_base.py deleted file mode 100644 index a424e07b..00000000 --- a/vsts/vsts/profile/v4_1/models/profile_attribute_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProfileAttributeBase(Model): - """ProfileAttributeBase. - - :param descriptor: - :type descriptor: :class:`AttributeDescriptor ` - :param revision: - :type revision: int - :param time_stamp: - :type time_stamp: datetime - :param value: - :type value: object - """ - - _attribute_map = { - 'descriptor': {'key': 'descriptor', 'type': 'AttributeDescriptor'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, descriptor=None, revision=None, time_stamp=None, value=None): - super(ProfileAttributeBase, self).__init__() - self.descriptor = descriptor - self.revision = revision - self.time_stamp = time_stamp - self.value = value diff --git a/vsts/vsts/profile/v4_1/models/profile_region.py b/vsts/vsts/profile/v4_1/models/profile_region.py deleted file mode 100644 index 063a3061..00000000 --- a/vsts/vsts/profile/v4_1/models/profile_region.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProfileRegion(Model): - """ProfileRegion. - - :param code: The two-letter code defined in ISO 3166 for the country/region. - :type code: str - :param name: Localized country/region name - :type name: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, code=None, name=None): - super(ProfileRegion, self).__init__() - self.code = code - self.name = name diff --git a/vsts/vsts/profile/v4_1/models/profile_regions.py b/vsts/vsts/profile/v4_1/models/profile_regions.py deleted file mode 100644 index 69e784ff..00000000 --- a/vsts/vsts/profile/v4_1/models/profile_regions.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProfileRegions(Model): - """ProfileRegions. - - :param notice_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of notice - :type notice_contact_consent_requirement_regions: list of str - :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out - :type opt_out_contact_consent_requirement_regions: list of str - :param regions: List of country/regions - :type regions: list of :class:`ProfileRegion ` - """ - - _attribute_map = { - 'notice_contact_consent_requirement_regions': {'key': 'noticeContactConsentRequirementRegions', 'type': '[str]'}, - 'opt_out_contact_consent_requirement_regions': {'key': 'optOutContactConsentRequirementRegions', 'type': '[str]'}, - 'regions': {'key': 'regions', 'type': '[ProfileRegion]'} - } - - def __init__(self, notice_contact_consent_requirement_regions=None, opt_out_contact_consent_requirement_regions=None, regions=None): - super(ProfileRegions, self).__init__() - self.notice_contact_consent_requirement_regions = notice_contact_consent_requirement_regions - self.opt_out_contact_consent_requirement_regions = opt_out_contact_consent_requirement_regions - self.regions = regions diff --git a/vsts/vsts/profile/v4_1/models/remote_profile.py b/vsts/vsts/profile/v4_1/models/remote_profile.py deleted file mode 100644 index 330a2186..00000000 --- a/vsts/vsts/profile/v4_1/models/remote_profile.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RemoteProfile(Model): - """RemoteProfile. - - :param avatar: - :type avatar: str - :param country_code: - :type country_code: str - :param display_name: - :type display_name: str - :param email_address: Primary contact email from from MSA/AAD - :type email_address: str - """ - - _attribute_map = { - 'avatar': {'key': 'avatar', 'type': 'str'}, - 'country_code': {'key': 'countryCode', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'email_address': {'key': 'emailAddress', 'type': 'str'} - } - - def __init__(self, avatar=None, country_code=None, display_name=None, email_address=None): - super(RemoteProfile, self).__init__() - self.avatar = avatar - self.country_code = country_code - self.display_name = display_name - self.email_address = email_address diff --git a/vsts/vsts/project_analysis/__init__.py b/vsts/vsts/project_analysis/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/project_analysis/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/project_analysis/v4_0/__init__.py b/vsts/vsts/project_analysis/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/project_analysis/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/project_analysis/v4_0/models/__init__.py b/vsts/vsts/project_analysis/v4_0/models/__init__.py deleted file mode 100644 index dc7da909..00000000 --- a/vsts/vsts/project_analysis/v4_0/models/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .code_change_trend_item import CodeChangeTrendItem -from .language_statistics import LanguageStatistics -from .project_activity_metrics import ProjectActivityMetrics -from .project_language_analytics import ProjectLanguageAnalytics -from .repository_language_analytics import RepositoryLanguageAnalytics - -__all__ = [ - 'CodeChangeTrendItem', - 'LanguageStatistics', - 'ProjectActivityMetrics', - 'ProjectLanguageAnalytics', - 'RepositoryLanguageAnalytics', -] diff --git a/vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py b/vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py deleted file mode 100644 index 805629d0..00000000 --- a/vsts/vsts/project_analysis/v4_0/models/code_change_trend_item.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeChangeTrendItem(Model): - """CodeChangeTrendItem. - - :param time: - :type time: datetime - :param value: - :type value: int - """ - - _attribute_map = { - 'time': {'key': 'time', 'type': 'iso-8601'}, - 'value': {'key': 'value', 'type': 'int'} - } - - def __init__(self, time=None, value=None): - super(CodeChangeTrendItem, self).__init__() - self.time = time - self.value = value diff --git a/vsts/vsts/project_analysis/v4_0/models/language_statistics.py b/vsts/vsts/project_analysis/v4_0/models/language_statistics.py deleted file mode 100644 index f9c09cd7..00000000 --- a/vsts/vsts/project_analysis/v4_0/models/language_statistics.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LanguageStatistics(Model): - """LanguageStatistics. - - :param bytes: - :type bytes: long - :param bytes_percentage: - :type bytes_percentage: float - :param files: - :type files: int - :param files_percentage: - :type files_percentage: float - :param name: - :type name: str - :param weighted_bytes_percentage: - :type weighted_bytes_percentage: float - """ - - _attribute_map = { - 'bytes': {'key': 'bytes', 'type': 'long'}, - 'bytes_percentage': {'key': 'bytesPercentage', 'type': 'float'}, - 'files': {'key': 'files', 'type': 'int'}, - 'files_percentage': {'key': 'filesPercentage', 'type': 'float'}, - 'name': {'key': 'name', 'type': 'str'}, - 'weighted_bytes_percentage': {'key': 'weightedBytesPercentage', 'type': 'float'} - } - - def __init__(self, bytes=None, bytes_percentage=None, files=None, files_percentage=None, name=None, weighted_bytes_percentage=None): - super(LanguageStatistics, self).__init__() - self.bytes = bytes - self.bytes_percentage = bytes_percentage - self.files = files - self.files_percentage = files_percentage - self.name = name - self.weighted_bytes_percentage = weighted_bytes_percentage diff --git a/vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py b/vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py deleted file mode 100644 index c0aeb27b..00000000 --- a/vsts/vsts/project_analysis/v4_0/models/project_activity_metrics.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectActivityMetrics(Model): - """ProjectActivityMetrics. - - :param authors_count: - :type authors_count: int - :param code_changes_count: - :type code_changes_count: int - :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` - :param project_id: - :type project_id: str - :param pull_requests_completed_count: - :type pull_requests_completed_count: int - :param pull_requests_created_count: - :type pull_requests_created_count: int - """ - - _attribute_map = { - 'authors_count': {'key': 'authorsCount', 'type': 'int'}, - 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, - 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'pull_requests_completed_count': {'key': 'pullRequestsCompletedCount', 'type': 'int'}, - 'pull_requests_created_count': {'key': 'pullRequestsCreatedCount', 'type': 'int'} - } - - def __init__(self, authors_count=None, code_changes_count=None, code_changes_trend=None, project_id=None, pull_requests_completed_count=None, pull_requests_created_count=None): - super(ProjectActivityMetrics, self).__init__() - self.authors_count = authors_count - self.code_changes_count = code_changes_count - self.code_changes_trend = code_changes_trend - self.project_id = project_id - self.pull_requests_completed_count = pull_requests_completed_count - self.pull_requests_created_count = pull_requests_created_count diff --git a/vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py b/vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py deleted file mode 100644 index b1870566..00000000 --- a/vsts/vsts/project_analysis/v4_0/models/project_language_analytics.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectLanguageAnalytics(Model): - """ProjectLanguageAnalytics. - - :param id: - :type id: str - :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` - :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` - :param result_phase: - :type result_phase: object - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, - 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, - 'result_phase': {'key': 'resultPhase', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): - super(ProjectLanguageAnalytics, self).__init__() - self.id = id - self.language_breakdown = language_breakdown - self.repository_language_analytics = repository_language_analytics - self.result_phase = result_phase - self.url = url diff --git a/vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py b/vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py deleted file mode 100644 index dd797c46..00000000 --- a/vsts/vsts/project_analysis/v4_0/models/repository_language_analytics.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RepositoryLanguageAnalytics(Model): - """RepositoryLanguageAnalytics. - - :param id: - :type id: str - :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` - :param name: - :type name: str - :param result_phase: - :type result_phase: object - :param updated_time: - :type updated_time: datetime - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'result_phase': {'key': 'resultPhase', 'type': 'object'}, - 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} - } - - def __init__(self, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): - super(RepositoryLanguageAnalytics, self).__init__() - self.id = id - self.language_breakdown = language_breakdown - self.name = name - self.result_phase = result_phase - self.updated_time = updated_time diff --git a/vsts/vsts/project_analysis/v4_1/__init__.py b/vsts/vsts/project_analysis/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/project_analysis/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/project_analysis/v4_1/models/__init__.py b/vsts/vsts/project_analysis/v4_1/models/__init__.py deleted file mode 100644 index 34df4d66..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .code_change_trend_item import CodeChangeTrendItem -from .language_metrics_secured_object import LanguageMetricsSecuredObject -from .language_statistics import LanguageStatistics -from .project_activity_metrics import ProjectActivityMetrics -from .project_language_analytics import ProjectLanguageAnalytics -from .repository_activity_metrics import RepositoryActivityMetrics -from .repository_language_analytics import RepositoryLanguageAnalytics - -__all__ = [ - 'CodeChangeTrendItem', - 'LanguageMetricsSecuredObject', - 'LanguageStatistics', - 'ProjectActivityMetrics', - 'ProjectLanguageAnalytics', - 'RepositoryActivityMetrics', - 'RepositoryLanguageAnalytics', -] diff --git a/vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py b/vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py deleted file mode 100644 index 805629d0..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/code_change_trend_item.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeChangeTrendItem(Model): - """CodeChangeTrendItem. - - :param time: - :type time: datetime - :param value: - :type value: int - """ - - _attribute_map = { - 'time': {'key': 'time', 'type': 'iso-8601'}, - 'value': {'key': 'value', 'type': 'int'} - } - - def __init__(self, time=None, value=None): - super(CodeChangeTrendItem, self).__init__() - self.time = time - self.value = value diff --git a/vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py b/vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py deleted file mode 100644 index 5b919b79..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/language_metrics_secured_object.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LanguageMetricsSecuredObject(Model): - """LanguageMetricsSecuredObject. - - :param namespace_id: - :type namespace_id: str - :param project_id: - :type project_id: str - :param required_permissions: - :type required_permissions: int - """ - - _attribute_map = { - 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'} - } - - def __init__(self, namespace_id=None, project_id=None, required_permissions=None): - super(LanguageMetricsSecuredObject, self).__init__() - self.namespace_id = namespace_id - self.project_id = project_id - self.required_permissions = required_permissions diff --git a/vsts/vsts/project_analysis/v4_1/models/language_statistics.py b/vsts/vsts/project_analysis/v4_1/models/language_statistics.py deleted file mode 100644 index b794d617..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/language_statistics.py +++ /dev/null @@ -1,50 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .language_metrics_secured_object import LanguageMetricsSecuredObject - - -class LanguageStatistics(LanguageMetricsSecuredObject): - """LanguageStatistics. - - :param namespace_id: - :type namespace_id: str - :param project_id: - :type project_id: str - :param required_permissions: - :type required_permissions: int - :param bytes: - :type bytes: long - :param files: - :type files: int - :param files_percentage: - :type files_percentage: float - :param language_percentage: - :type language_percentage: float - :param name: - :type name: str - """ - - _attribute_map = { - 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, - 'bytes': {'key': 'bytes', 'type': 'long'}, - 'files': {'key': 'files', 'type': 'int'}, - 'files_percentage': {'key': 'filesPercentage', 'type': 'float'}, - 'language_percentage': {'key': 'languagePercentage', 'type': 'float'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, namespace_id=None, project_id=None, required_permissions=None, bytes=None, files=None, files_percentage=None, language_percentage=None, name=None): - super(LanguageStatistics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) - self.bytes = bytes - self.files = files - self.files_percentage = files_percentage - self.language_percentage = language_percentage - self.name = name diff --git a/vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py b/vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py deleted file mode 100644 index 2b0ce812..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/project_activity_metrics.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectActivityMetrics(Model): - """ProjectActivityMetrics. - - :param authors_count: - :type authors_count: int - :param code_changes_count: - :type code_changes_count: int - :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` - :param project_id: - :type project_id: str - :param pull_requests_completed_count: - :type pull_requests_completed_count: int - :param pull_requests_created_count: - :type pull_requests_created_count: int - """ - - _attribute_map = { - 'authors_count': {'key': 'authorsCount', 'type': 'int'}, - 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, - 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'pull_requests_completed_count': {'key': 'pullRequestsCompletedCount', 'type': 'int'}, - 'pull_requests_created_count': {'key': 'pullRequestsCreatedCount', 'type': 'int'} - } - - def __init__(self, authors_count=None, code_changes_count=None, code_changes_trend=None, project_id=None, pull_requests_completed_count=None, pull_requests_created_count=None): - super(ProjectActivityMetrics, self).__init__() - self.authors_count = authors_count - self.code_changes_count = code_changes_count - self.code_changes_trend = code_changes_trend - self.project_id = project_id - self.pull_requests_completed_count = pull_requests_completed_count - self.pull_requests_created_count = pull_requests_created_count diff --git a/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py b/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py deleted file mode 100644 index 284e8f99..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/project_language_analytics.py +++ /dev/null @@ -1,50 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .language_metrics_secured_object import LanguageMetricsSecuredObject - - -class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): - """ProjectLanguageAnalytics. - - :param namespace_id: - :type namespace_id: str - :param project_id: - :type project_id: str - :param required_permissions: - :type required_permissions: int - :param id: - :type id: str - :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` - :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` - :param result_phase: - :type result_phase: object - :param url: - :type url: str - """ - - _attribute_map = { - 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, - 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, - 'result_phase': {'key': 'resultPhase', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): - super(ProjectLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) - self.id = id - self.language_breakdown = language_breakdown - self.repository_language_analytics = repository_language_analytics - self.result_phase = result_phase - self.url = url diff --git a/vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py b/vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py deleted file mode 100644 index 0d3d9381..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/repository_activity_metrics.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RepositoryActivityMetrics(Model): - """RepositoryActivityMetrics. - - :param code_changes_count: - :type code_changes_count: int - :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, - 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, code_changes_count=None, code_changes_trend=None, repository_id=None): - super(RepositoryActivityMetrics, self).__init__() - self.code_changes_count = code_changes_count - self.code_changes_trend = code_changes_trend - self.repository_id = repository_id diff --git a/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py b/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py deleted file mode 100644 index 52799cc6..00000000 --- a/vsts/vsts/project_analysis/v4_1/models/repository_language_analytics.py +++ /dev/null @@ -1,50 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .language_metrics_secured_object import LanguageMetricsSecuredObject - - -class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): - """RepositoryLanguageAnalytics. - - :param namespace_id: - :type namespace_id: str - :param project_id: - :type project_id: str - :param required_permissions: - :type required_permissions: int - :param id: - :type id: str - :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` - :param name: - :type name: str - :param result_phase: - :type result_phase: object - :param updated_time: - :type updated_time: datetime - """ - - _attribute_map = { - 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'result_phase': {'key': 'resultPhase', 'type': 'object'}, - 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} - } - - def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): - super(RepositoryLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) - self.id = id - self.language_breakdown = language_breakdown - self.name = name - self.result_phase = result_phase - self.updated_time = updated_time diff --git a/vsts/vsts/release/__init__.py b/vsts/vsts/release/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/release/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/release/v4_0/__init__.py b/vsts/vsts/release/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/release/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/release/v4_0/models/__init__.py b/vsts/vsts/release/v4_0/models/__init__.py deleted file mode 100644 index 75948885..00000000 --- a/vsts/vsts/release/v4_0/models/__init__.py +++ /dev/null @@ -1,171 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .agent_artifact_definition import AgentArtifactDefinition -from .approval_options import ApprovalOptions -from .artifact import Artifact -from .artifact_metadata import ArtifactMetadata -from .artifact_source_reference import ArtifactSourceReference -from .artifact_type_definition import ArtifactTypeDefinition -from .artifact_version import ArtifactVersion -from .artifact_version_query_result import ArtifactVersionQueryResult -from .auto_trigger_issue import AutoTriggerIssue -from .build_version import BuildVersion -from .change import Change -from .condition import Condition -from .configuration_variable_value import ConfigurationVariableValue -from .data_source_binding_base import DataSourceBindingBase -from .definition_environment_reference import DefinitionEnvironmentReference -from .deployment import Deployment -from .deployment_attempt import DeploymentAttempt -from .deployment_job import DeploymentJob -from .deployment_query_parameters import DeploymentQueryParameters -from .email_recipients import EmailRecipients -from .environment_execution_policy import EnvironmentExecutionPolicy -from .environment_options import EnvironmentOptions -from .environment_retention_policy import EnvironmentRetentionPolicy -from .favorite_item import FavoriteItem -from .folder import Folder -from .identity_ref import IdentityRef -from .input_descriptor import InputDescriptor -from .input_validation import InputValidation -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .input_values_query import InputValuesQuery -from .issue import Issue -from .mail_message import MailMessage -from .manual_intervention import ManualIntervention -from .manual_intervention_update_metadata import ManualInterventionUpdateMetadata -from .metric import Metric -from .process_parameters import ProcessParameters -from .project_reference import ProjectReference -from .queued_release_data import QueuedReleaseData -from .reference_links import ReferenceLinks -from .release import Release -from .release_approval import ReleaseApproval -from .release_approval_history import ReleaseApprovalHistory -from .release_condition import ReleaseCondition -from .release_definition import ReleaseDefinition -from .release_definition_approvals import ReleaseDefinitionApprovals -from .release_definition_approval_step import ReleaseDefinitionApprovalStep -from .release_definition_deploy_step import ReleaseDefinitionDeployStep -from .release_definition_environment import ReleaseDefinitionEnvironment -from .release_definition_environment_step import ReleaseDefinitionEnvironmentStep -from .release_definition_environment_summary import ReleaseDefinitionEnvironmentSummary -from .release_definition_environment_template import ReleaseDefinitionEnvironmentTemplate -from .release_definition_revision import ReleaseDefinitionRevision -from .release_definition_shallow_reference import ReleaseDefinitionShallowReference -from .release_definition_summary import ReleaseDefinitionSummary -from .release_deploy_phase import ReleaseDeployPhase -from .release_environment import ReleaseEnvironment -from .release_environment_shallow_reference import ReleaseEnvironmentShallowReference -from .release_environment_update_metadata import ReleaseEnvironmentUpdateMetadata -from .release_reference import ReleaseReference -from .release_revision import ReleaseRevision -from .release_schedule import ReleaseSchedule -from .release_settings import ReleaseSettings -from .release_shallow_reference import ReleaseShallowReference -from .release_start_metadata import ReleaseStartMetadata -from .release_task import ReleaseTask -from .release_update_metadata import ReleaseUpdateMetadata -from .release_work_item_ref import ReleaseWorkItemRef -from .retention_policy import RetentionPolicy -from .retention_settings import RetentionSettings -from .summary_mail_section import SummaryMailSection -from .task_input_definition_base import TaskInputDefinitionBase -from .task_input_validation import TaskInputValidation -from .task_source_definition_base import TaskSourceDefinitionBase -from .variable_group import VariableGroup -from .variable_group_provider_data import VariableGroupProviderData -from .variable_value import VariableValue -from .workflow_task import WorkflowTask -from .workflow_task_reference import WorkflowTaskReference - -__all__ = [ - 'AgentArtifactDefinition', - 'ApprovalOptions', - 'Artifact', - 'ArtifactMetadata', - 'ArtifactSourceReference', - 'ArtifactTypeDefinition', - 'ArtifactVersion', - 'ArtifactVersionQueryResult', - 'AutoTriggerIssue', - 'BuildVersion', - 'Change', - 'Condition', - 'ConfigurationVariableValue', - 'DataSourceBindingBase', - 'DefinitionEnvironmentReference', - 'Deployment', - 'DeploymentAttempt', - 'DeploymentJob', - 'DeploymentQueryParameters', - 'EmailRecipients', - 'EnvironmentExecutionPolicy', - 'EnvironmentOptions', - 'EnvironmentRetentionPolicy', - 'FavoriteItem', - 'Folder', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Issue', - 'MailMessage', - 'ManualIntervention', - 'ManualInterventionUpdateMetadata', - 'Metric', - 'ProcessParameters', - 'ProjectReference', - 'QueuedReleaseData', - 'ReferenceLinks', - 'Release', - 'ReleaseApproval', - 'ReleaseApprovalHistory', - 'ReleaseCondition', - 'ReleaseDefinition', - 'ReleaseDefinitionApprovals', - 'ReleaseDefinitionApprovalStep', - 'ReleaseDefinitionDeployStep', - 'ReleaseDefinitionEnvironment', - 'ReleaseDefinitionEnvironmentStep', - 'ReleaseDefinitionEnvironmentSummary', - 'ReleaseDefinitionEnvironmentTemplate', - 'ReleaseDefinitionRevision', - 'ReleaseDefinitionShallowReference', - 'ReleaseDefinitionSummary', - 'ReleaseDeployPhase', - 'ReleaseEnvironment', - 'ReleaseEnvironmentShallowReference', - 'ReleaseEnvironmentUpdateMetadata', - 'ReleaseReference', - 'ReleaseRevision', - 'ReleaseSchedule', - 'ReleaseSettings', - 'ReleaseShallowReference', - 'ReleaseStartMetadata', - 'ReleaseTask', - 'ReleaseUpdateMetadata', - 'ReleaseWorkItemRef', - 'RetentionPolicy', - 'RetentionSettings', - 'SummaryMailSection', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskSourceDefinitionBase', - 'VariableGroup', - 'VariableGroupProviderData', - 'VariableValue', - 'WorkflowTask', - 'WorkflowTaskReference', -] diff --git a/vsts/vsts/release/v4_0/models/agent_artifact_definition.py b/vsts/vsts/release/v4_0/models/agent_artifact_definition.py deleted file mode 100644 index 8e2ec362..00000000 --- a/vsts/vsts/release/v4_0/models/agent_artifact_definition.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentArtifactDefinition(Model): - """AgentArtifactDefinition. - - :param alias: - :type alias: str - :param artifact_type: - :type artifact_type: object - :param details: - :type details: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'artifact_type': {'key': 'artifactType', 'type': 'object'}, - 'details': {'key': 'details', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): - super(AgentArtifactDefinition, self).__init__() - self.alias = alias - self.artifact_type = artifact_type - self.details = details - self.name = name - self.version = version diff --git a/vsts/vsts/release/v4_0/models/approval_options.py b/vsts/vsts/release/v4_0/models/approval_options.py deleted file mode 100644 index 088817f9..00000000 --- a/vsts/vsts/release/v4_0/models/approval_options.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ApprovalOptions(Model): - """ApprovalOptions. - - :param auto_triggered_and_previous_environment_approved_can_be_skipped: - :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool - :param enforce_identity_revalidation: - :type enforce_identity_revalidation: bool - :param release_creator_can_be_approver: - :type release_creator_can_be_approver: bool - :param required_approver_count: - :type required_approver_count: int - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, - 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, - 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, - 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): - super(ApprovalOptions, self).__init__() - self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped - self.enforce_identity_revalidation = enforce_identity_revalidation - self.release_creator_can_be_approver = release_creator_can_be_approver - self.required_approver_count = required_approver_count - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_0/models/artifact.py b/vsts/vsts/release/v4_0/models/artifact.py deleted file mode 100644 index 4bdf46a5..00000000 --- a/vsts/vsts/release/v4_0/models/artifact.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Artifact(Model): - """Artifact. - - :param alias: Gets or sets alias. - :type alias: str - :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} - :type definition_reference: dict - :param is_primary: Gets or sets as artifact is primary or not. - :type is_primary: bool - :param source_id: - :type source_id: str - :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. - :type type: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, - 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): - super(Artifact, self).__init__() - self.alias = alias - self.definition_reference = definition_reference - self.is_primary = is_primary - self.source_id = source_id - self.type = type diff --git a/vsts/vsts/release/v4_0/models/artifact_metadata.py b/vsts/vsts/release/v4_0/models/artifact_metadata.py deleted file mode 100644 index 0e27dc22..00000000 --- a/vsts/vsts/release/v4_0/models/artifact_metadata.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactMetadata(Model): - """ArtifactMetadata. - - :param alias: Sets alias of artifact. - :type alias: str - :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. - :type instance_reference: :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} - } - - def __init__(self, alias=None, instance_reference=None): - super(ArtifactMetadata, self).__init__() - self.alias = alias - self.instance_reference = instance_reference diff --git a/vsts/vsts/release/v4_0/models/artifact_source_reference.py b/vsts/vsts/release/v4_0/models/artifact_source_reference.py deleted file mode 100644 index 7f1fefd8..00000000 --- a/vsts/vsts/release/v4_0/models/artifact_source_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactSourceReference(Model): - """ArtifactSourceReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ArtifactSourceReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/release/v4_0/models/artifact_type_definition.py b/vsts/vsts/release/v4_0/models/artifact_type_definition.py deleted file mode 100644 index 9abc5029..00000000 --- a/vsts/vsts/release/v4_0/models/artifact_type_definition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactTypeDefinition(Model): - """ArtifactTypeDefinition. - - :param display_name: - :type display_name: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: - :type name: str - :param unique_source_identifier: - :type unique_source_identifier: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} - } - - def __init__(self, display_name=None, input_descriptors=None, name=None, unique_source_identifier=None): - super(ArtifactTypeDefinition, self).__init__() - self.display_name = display_name - self.input_descriptors = input_descriptors - self.name = name - self.unique_source_identifier = unique_source_identifier diff --git a/vsts/vsts/release/v4_0/models/artifact_version.py b/vsts/vsts/release/v4_0/models/artifact_version.py deleted file mode 100644 index 4ed1d574..00000000 --- a/vsts/vsts/release/v4_0/models/artifact_version.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactVersion(Model): - """ArtifactVersion. - - :param alias: - :type alias: str - :param default_version: - :type default_version: :class:`BuildVersion ` - :param error_message: - :type error_message: str - :param source_id: - :type source_id: str - :param versions: - :type versions: list of :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[BuildVersion]'} - } - - def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): - super(ArtifactVersion, self).__init__() - self.alias = alias - self.default_version = default_version - self.error_message = error_message - self.source_id = source_id - self.versions = versions diff --git a/vsts/vsts/release/v4_0/models/artifact_version_query_result.py b/vsts/vsts/release/v4_0/models/artifact_version_query_result.py deleted file mode 100644 index 4201e360..00000000 --- a/vsts/vsts/release/v4_0/models/artifact_version_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactVersionQueryResult(Model): - """ArtifactVersionQueryResult. - - :param artifact_versions: - :type artifact_versions: list of :class:`ArtifactVersion ` - """ - - _attribute_map = { - 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} - } - - def __init__(self, artifact_versions=None): - super(ArtifactVersionQueryResult, self).__init__() - self.artifact_versions = artifact_versions diff --git a/vsts/vsts/release/v4_0/models/auto_trigger_issue.py b/vsts/vsts/release/v4_0/models/auto_trigger_issue.py deleted file mode 100644 index bd1c7f65..00000000 --- a/vsts/vsts/release/v4_0/models/auto_trigger_issue.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AutoTriggerIssue(Model): - """AutoTriggerIssue. - - :param issue: - :type issue: :class:`Issue ` - :param issue_source: - :type issue_source: object - :param project: - :type project: :class:`ProjectReference ` - :param release_definition_reference: - :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` - :param release_trigger_type: - :type release_trigger_type: object - """ - - _attribute_map = { - 'issue': {'key': 'issue', 'type': 'Issue'}, - 'issue_source': {'key': 'issueSource', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} - } - - def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): - super(AutoTriggerIssue, self).__init__() - self.issue = issue - self.issue_source = issue_source - self.project = project - self.release_definition_reference = release_definition_reference - self.release_trigger_type = release_trigger_type diff --git a/vsts/vsts/release/v4_0/models/build_version.py b/vsts/vsts/release/v4_0/models/build_version.py deleted file mode 100644 index 519cef9b..00000000 --- a/vsts/vsts/release/v4_0/models/build_version.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildVersion(Model): - """BuildVersion. - - :param id: - :type id: str - :param name: - :type name: str - :param source_branch: - :type source_branch: str - :param source_repository_id: - :type source_repository_id: str - :param source_repository_type: - :type source_repository_type: str - :param source_version: - :type source_version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, - 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, - 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'} - } - - def __init__(self, id=None, name=None, source_branch=None, source_repository_id=None, source_repository_type=None, source_version=None): - super(BuildVersion, self).__init__() - self.id = id - self.name = name - self.source_branch = source_branch - self.source_repository_id = source_repository_id - self.source_repository_type = source_repository_type - self.source_version = source_version diff --git a/vsts/vsts/release/v4_0/models/change.py b/vsts/vsts/release/v4_0/models/change.py deleted file mode 100644 index 0e46a7ee..00000000 --- a/vsts/vsts/release/v4_0/models/change.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param author: The author of the change. - :type author: :class:`IdentityRef ` - :param change_type: The type of change. "commit", "changeset", etc. - :type change_type: str - :param display_uri: The location of a user-friendly representation of the resource. - :type display_uri: str - :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. - :type id: str - :param location: The location of the full representation of the resource. - :type location: str - :param message: A description of the change. This might be a commit message or changeset description. - :type message: str - :param timestamp: A timestamp for the change. - :type timestamp: datetime - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'display_uri': {'key': 'displayUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} - } - - def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, timestamp=None): - super(Change, self).__init__() - self.author = author - self.change_type = change_type - self.display_uri = display_uri - self.id = id - self.location = location - self.message = message - self.timestamp = timestamp diff --git a/vsts/vsts/release/v4_0/models/condition.py b/vsts/vsts/release/v4_0/models/condition.py deleted file mode 100644 index 6cbd8186..00000000 --- a/vsts/vsts/release/v4_0/models/condition.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Condition(Model): - """Condition. - - :param condition_type: - :type condition_type: object - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, name=None, value=None): - super(Condition, self).__init__() - self.condition_type = condition_type - self.name = name - self.value = value diff --git a/vsts/vsts/release/v4_0/models/configuration_variable_value.py b/vsts/vsts/release/v4_0/models/configuration_variable_value.py deleted file mode 100644 index 4db7217a..00000000 --- a/vsts/vsts/release/v4_0/models/configuration_variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ConfigurationVariableValue(Model): - """ConfigurationVariableValue. - - :param is_secret: Gets or sets as variable is secret or not. - :type is_secret: bool - :param value: Gets or sets value of the configuration variable. - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(ConfigurationVariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/release/v4_0/models/data_source_binding_base.py b/vsts/vsts/release/v4_0/models/data_source_binding_base.py deleted file mode 100644 index e2c6e8d5..00000000 --- a/vsts/vsts/release/v4_0/models/data_source_binding_base.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: - :type data_source_name: str - :param endpoint_id: - :type endpoint_id: str - :param endpoint_url: - :type endpoint_url: str - :param parameters: - :type parameters: dict - :param result_selector: - :type result_selector: str - :param result_template: - :type result_template: str - :param target: - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target diff --git a/vsts/vsts/release/v4_0/models/definition_environment_reference.py b/vsts/vsts/release/v4_0/models/definition_environment_reference.py deleted file mode 100644 index 06c56140..00000000 --- a/vsts/vsts/release/v4_0/models/definition_environment_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DefinitionEnvironmentReference(Model): - """DefinitionEnvironmentReference. - - :param definition_environment_id: - :type definition_environment_id: int - :param definition_environment_name: - :type definition_environment_name: str - :param release_definition_id: - :type release_definition_id: int - :param release_definition_name: - :type release_definition_name: str - """ - - _attribute_map = { - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, - 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, - 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} - } - - def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): - super(DefinitionEnvironmentReference, self).__init__() - self.definition_environment_id = definition_environment_id - self.definition_environment_name = definition_environment_name - self.release_definition_id = release_definition_id - self.release_definition_name = release_definition_name diff --git a/vsts/vsts/release/v4_0/models/deployment.py b/vsts/vsts/release/v4_0/models/deployment.py deleted file mode 100644 index 71018e34..00000000 --- a/vsts/vsts/release/v4_0/models/deployment.py +++ /dev/null @@ -1,101 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Deployment(Model): - """Deployment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param attempt: - :type attempt: int - :param conditions: - :type conditions: list of :class:`Condition ` - :param definition_environment_id: - :type definition_environment_id: int - :param deployment_status: - :type deployment_status: object - :param id: - :type id: int - :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: - :type last_modified_on: datetime - :param operation_status: - :type operation_status: object - :param post_deploy_approvals: - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_deploy_approvals: - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param queued_on: - :type queued_on: datetime - :param reason: - :type reason: object - :param release: - :type release: :class:`ReleaseReference ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param requested_by: - :type requested_by: :class:`IdentityRef ` - :param requested_for: - :type requested_for: :class:`IdentityRef ` - :param scheduled_deployment_time: - :type scheduled_deployment_time: datetime - :param started_on: - :type started_on: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, attempt=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): - super(Deployment, self).__init__() - self._links = _links - self.attempt = attempt - self.conditions = conditions - self.definition_environment_id = definition_environment_id - self.deployment_status = deployment_status - self.id = id - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.post_deploy_approvals = post_deploy_approvals - self.pre_deploy_approvals = pre_deploy_approvals - self.queued_on = queued_on - self.reason = reason - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.requested_by = requested_by - self.requested_for = requested_for - self.scheduled_deployment_time = scheduled_deployment_time - self.started_on = started_on diff --git a/vsts/vsts/release/v4_0/models/deployment_attempt.py b/vsts/vsts/release/v4_0/models/deployment_attempt.py deleted file mode 100644 index 106b3e43..00000000 --- a/vsts/vsts/release/v4_0/models/deployment_attempt.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentAttempt(Model): - """DeploymentAttempt. - - :param attempt: - :type attempt: int - :param deployment_id: - :type deployment_id: int - :param error_log: Error log to show any unexpected error that occurred during executing deploy step - :type error_log: str - :param has_started: Specifies whether deployment has started or not - :type has_started: bool - :param id: - :type id: int - :param job: - :type job: :class:`ReleaseTask ` - :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: - :type last_modified_on: datetime - :param operation_status: - :type operation_status: object - :param queued_on: - :type queued_on: datetime - :param reason: - :type reason: object - :param release_deploy_phases: - :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` - :param requested_by: - :type requested_by: :class:`IdentityRef ` - :param requested_for: - :type requested_for: :class:`IdentityRef ` - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'has_started': {'key': 'hasStarted', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): - super(DeploymentAttempt, self).__init__() - self.attempt = attempt - self.deployment_id = deployment_id - self.error_log = error_log - self.has_started = has_started - self.id = id - self.job = job - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.queued_on = queued_on - self.reason = reason - self.release_deploy_phases = release_deploy_phases - self.requested_by = requested_by - self.requested_for = requested_for - self.run_plan_id = run_plan_id - self.status = status - self.tasks = tasks diff --git a/vsts/vsts/release/v4_0/models/deployment_job.py b/vsts/vsts/release/v4_0/models/deployment_job.py deleted file mode 100644 index 562ebaba..00000000 --- a/vsts/vsts/release/v4_0/models/deployment_job.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentJob(Model): - """DeploymentJob. - - :param job: - :type job: :class:`ReleaseTask ` - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, job=None, tasks=None): - super(DeploymentJob, self).__init__() - self.job = job - self.tasks = tasks diff --git a/vsts/vsts/release/v4_0/models/deployment_query_parameters.py b/vsts/vsts/release/v4_0/models/deployment_query_parameters.py deleted file mode 100644 index b257efe0..00000000 --- a/vsts/vsts/release/v4_0/models/deployment_query_parameters.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentQueryParameters(Model): - """DeploymentQueryParameters. - - :param artifact_source_id: - :type artifact_source_id: str - :param artifact_type_id: - :type artifact_type_id: str - :param artifact_versions: - :type artifact_versions: list of str - :param deployment_status: - :type deployment_status: object - :param environments: - :type environments: list of :class:`DefinitionEnvironmentReference ` - :param expands: - :type expands: object - :param is_deleted: - :type is_deleted: bool - :param latest_deployments_only: - :type latest_deployments_only: bool - :param max_deployments_per_environment: - :type max_deployments_per_environment: int - :param max_modified_time: - :type max_modified_time: datetime - :param min_modified_time: - :type min_modified_time: datetime - :param operation_status: - :type operation_status: object - :param query_order: - :type query_order: object - """ - - _attribute_map = { - 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, - 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, - 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, - 'expands': {'key': 'expands', 'type': 'object'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, - 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, - 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, - 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'query_order': {'key': 'queryOrder', 'type': 'object'} - } - - def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None): - super(DeploymentQueryParameters, self).__init__() - self.artifact_source_id = artifact_source_id - self.artifact_type_id = artifact_type_id - self.artifact_versions = artifact_versions - self.deployment_status = deployment_status - self.environments = environments - self.expands = expands - self.is_deleted = is_deleted - self.latest_deployments_only = latest_deployments_only - self.max_deployments_per_environment = max_deployments_per_environment - self.max_modified_time = max_modified_time - self.min_modified_time = min_modified_time - self.operation_status = operation_status - self.query_order = query_order diff --git a/vsts/vsts/release/v4_0/models/email_recipients.py b/vsts/vsts/release/v4_0/models/email_recipients.py deleted file mode 100644 index 349b8915..00000000 --- a/vsts/vsts/release/v4_0/models/email_recipients.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EmailRecipients(Model): - """EmailRecipients. - - :param email_addresses: - :type email_addresses: list of str - :param tfs_ids: - :type tfs_ids: list of str - """ - - _attribute_map = { - 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, - 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} - } - - def __init__(self, email_addresses=None, tfs_ids=None): - super(EmailRecipients, self).__init__() - self.email_addresses = email_addresses - self.tfs_ids = tfs_ids diff --git a/vsts/vsts/release/v4_0/models/environment_execution_policy.py b/vsts/vsts/release/v4_0/models/environment_execution_policy.py deleted file mode 100644 index 5085c836..00000000 --- a/vsts/vsts/release/v4_0/models/environment_execution_policy.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EnvironmentExecutionPolicy(Model): - """EnvironmentExecutionPolicy. - - :param concurrency_count: This policy decides, how many environments would be with Environment Runner. - :type concurrency_count: int - :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. - :type queue_depth_count: int - """ - - _attribute_map = { - 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, - 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} - } - - def __init__(self, concurrency_count=None, queue_depth_count=None): - super(EnvironmentExecutionPolicy, self).__init__() - self.concurrency_count = concurrency_count - self.queue_depth_count = queue_depth_count diff --git a/vsts/vsts/release/v4_0/models/environment_options.py b/vsts/vsts/release/v4_0/models/environment_options.py deleted file mode 100644 index e4afe484..00000000 --- a/vsts/vsts/release/v4_0/models/environment_options.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EnvironmentOptions(Model): - """EnvironmentOptions. - - :param email_notification_type: - :type email_notification_type: str - :param email_recipients: - :type email_recipients: str - :param enable_access_token: - :type enable_access_token: bool - :param publish_deployment_status: - :type publish_deployment_status: bool - :param skip_artifacts_download: - :type skip_artifacts_download: bool - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, - 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, - 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, - 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, - 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): - super(EnvironmentOptions, self).__init__() - self.email_notification_type = email_notification_type - self.email_recipients = email_recipients - self.enable_access_token = enable_access_token - self.publish_deployment_status = publish_deployment_status - self.skip_artifacts_download = skip_artifacts_download - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_0/models/environment_retention_policy.py b/vsts/vsts/release/v4_0/models/environment_retention_policy.py deleted file mode 100644 index a391f806..00000000 --- a/vsts/vsts/release/v4_0/models/environment_retention_policy.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EnvironmentRetentionPolicy(Model): - """EnvironmentRetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - :param releases_to_keep: - :type releases_to_keep: int - :param retain_build: - :type retain_build: bool - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, - 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, - 'retain_build': {'key': 'retainBuild', 'type': 'bool'} - } - - def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): - super(EnvironmentRetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep - self.releases_to_keep = releases_to_keep - self.retain_build = retain_build diff --git a/vsts/vsts/release/v4_0/models/favorite_item.py b/vsts/vsts/release/v4_0/models/favorite_item.py deleted file mode 100644 index 94bdd0be..00000000 --- a/vsts/vsts/release/v4_0/models/favorite_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FavoriteItem(Model): - """FavoriteItem. - - :param data: Application specific data for the entry - :type data: str - :param id: Unique Id of the the entry - :type id: str - :param name: Display text for favorite entry - :type name: str - :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder - :type type: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, data=None, id=None, name=None, type=None): - super(FavoriteItem, self).__init__() - self.data = data - self.id = id - self.name = name - self.type = type diff --git a/vsts/vsts/release/v4_0/models/folder.py b/vsts/vsts/release/v4_0/models/folder.py deleted file mode 100644 index 5d60e06d..00000000 --- a/vsts/vsts/release/v4_0/models/folder.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Folder(Model): - """Folder. - - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: - :type created_on: datetime - :param description: - :type description: str - :param last_changed_by: - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: - :type last_changed_date: datetime - :param path: - :type path: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): - super(Folder, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.path = path diff --git a/vsts/vsts/release/v4_0/models/identity_ref.py b/vsts/vsts/release/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/release/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/release/v4_0/models/input_descriptor.py b/vsts/vsts/release/v4_0/models/input_descriptor.py deleted file mode 100644 index 860efdcc..00000000 --- a/vsts/vsts/release/v4_0/models/input_descriptor.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values diff --git a/vsts/vsts/release/v4_0/models/input_validation.py b/vsts/vsts/release/v4_0/models/input_validation.py deleted file mode 100644 index f2f1a434..00000000 --- a/vsts/vsts/release/v4_0/models/input_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/release/v4_0/models/input_value.py b/vsts/vsts/release/v4_0/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/release/v4_0/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/release/v4_0/models/input_values.py b/vsts/vsts/release/v4_0/models/input_values.py deleted file mode 100644 index 15d047fe..00000000 --- a/vsts/vsts/release/v4_0/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/release/v4_0/models/input_values_error.py b/vsts/vsts/release/v4_0/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/release/v4_0/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/release/v4_0/models/input_values_query.py b/vsts/vsts/release/v4_0/models/input_values_query.py deleted file mode 100644 index 26e4c954..00000000 --- a/vsts/vsts/release/v4_0/models/input_values_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource diff --git a/vsts/vsts/release/v4_0/models/issue.py b/vsts/vsts/release/v4_0/models/issue.py deleted file mode 100644 index 0e31522e..00000000 --- a/vsts/vsts/release/v4_0/models/issue.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Issue(Model): - """Issue. - - :param issue_type: - :type issue_type: str - :param message: - :type message: str - """ - - _attribute_map = { - 'issue_type': {'key': 'issueType', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, issue_type=None, message=None): - super(Issue, self).__init__() - self.issue_type = issue_type - self.message = message diff --git a/vsts/vsts/release/v4_0/models/mail_message.py b/vsts/vsts/release/v4_0/models/mail_message.py deleted file mode 100644 index 90450f0a..00000000 --- a/vsts/vsts/release/v4_0/models/mail_message.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MailMessage(Model): - """MailMessage. - - :param body: - :type body: str - :param cC: - :type cC: :class:`EmailRecipients ` - :param in_reply_to: - :type in_reply_to: str - :param message_id: - :type message_id: str - :param reply_by: - :type reply_by: datetime - :param reply_to: - :type reply_to: :class:`EmailRecipients ` - :param sections: - :type sections: list of MailSectionType - :param sender_type: - :type sender_type: object - :param subject: - :type subject: str - :param to: - :type to: :class:`EmailRecipients ` - """ - - _attribute_map = { - 'body': {'key': 'body', 'type': 'str'}, - 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, - 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'str'}, - 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, - 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, - 'sections': {'key': 'sections', 'type': '[object]'}, - 'sender_type': {'key': 'senderType', 'type': 'object'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'to': {'key': 'to', 'type': 'EmailRecipients'} - } - - def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): - super(MailMessage, self).__init__() - self.body = body - self.cC = cC - self.in_reply_to = in_reply_to - self.message_id = message_id - self.reply_by = reply_by - self.reply_to = reply_to - self.sections = sections - self.sender_type = sender_type - self.subject = subject - self.to = to diff --git a/vsts/vsts/release/v4_0/models/manual_intervention.py b/vsts/vsts/release/v4_0/models/manual_intervention.py deleted file mode 100644 index 86d5efb2..00000000 --- a/vsts/vsts/release/v4_0/models/manual_intervention.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ManualIntervention(Model): - """ManualIntervention. - - :param approver: - :type approver: :class:`IdentityRef ` - :param comments: - :type comments: str - :param created_on: - :type created_on: datetime - :param id: - :type id: int - :param instructions: - :type instructions: str - :param modified_on: - :type modified_on: datetime - :param name: - :type name: str - :param release: - :type release: :class:`ReleaseShallowReference ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param status: - :type status: object - :param task_instance_id: - :type task_instance_id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'instructions': {'key': 'instructions', 'type': 'str'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): - super(ManualIntervention, self).__init__() - self.approver = approver - self.comments = comments - self.created_on = created_on - self.id = id - self.instructions = instructions - self.modified_on = modified_on - self.name = name - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.status = status - self.task_instance_id = task_instance_id - self.url = url diff --git a/vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py b/vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py deleted file mode 100644 index 1358617e..00000000 --- a/vsts/vsts/release/v4_0/models/manual_intervention_update_metadata.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ManualInterventionUpdateMetadata(Model): - """ManualInterventionUpdateMetadata. - - :param comment: - :type comment: str - :param status: - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, status=None): - super(ManualInterventionUpdateMetadata, self).__init__() - self.comment = comment - self.status = status diff --git a/vsts/vsts/release/v4_0/models/metric.py b/vsts/vsts/release/v4_0/models/metric.py deleted file mode 100644 index bb95c93e..00000000 --- a/vsts/vsts/release/v4_0/models/metric.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Metric(Model): - """Metric. - - :param name: - :type name: str - :param value: - :type value: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'} - } - - def __init__(self, name=None, value=None): - super(Metric, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/release/v4_0/models/process_parameters.py b/vsts/vsts/release/v4_0/models/process_parameters.py deleted file mode 100644 index f6903143..00000000 --- a/vsts/vsts/release/v4_0/models/process_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessParameters(Model): - """ProcessParameters. - - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` - :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` - """ - - _attribute_map = { - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} - } - - def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): - super(ProcessParameters, self).__init__() - self.data_source_bindings = data_source_bindings - self.inputs = inputs - self.source_definitions = source_definitions diff --git a/vsts/vsts/release/v4_0/models/project_reference.py b/vsts/vsts/release/v4_0/models/project_reference.py deleted file mode 100644 index fee185de..00000000 --- a/vsts/vsts/release/v4_0/models/project_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param id: Gets the unique identifier of this field. - :type id: str - :param name: Gets name of project. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/release/v4_0/models/queued_release_data.py b/vsts/vsts/release/v4_0/models/queued_release_data.py deleted file mode 100644 index 892670ff..00000000 --- a/vsts/vsts/release/v4_0/models/queued_release_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueuedReleaseData(Model): - """QueuedReleaseData. - - :param project_id: - :type project_id: str - :param queue_position: - :type queue_position: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, project_id=None, queue_position=None, release_id=None): - super(QueuedReleaseData, self).__init__() - self.project_id = project_id - self.queue_position = queue_position - self.release_id = release_id diff --git a/vsts/vsts/release/v4_0/models/reference_links.py b/vsts/vsts/release/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/release/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/release/v4_0/models/release.py b/vsts/vsts/release/v4_0/models/release.py deleted file mode 100644 index e5741a08..00000000 --- a/vsts/vsts/release/v4_0/models/release.py +++ /dev/null @@ -1,121 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Release(Model): - """Release. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_snapshot_revision: Gets revision number of definition snapshot. - :type definition_snapshot_revision: int - :param description: Gets or sets description of release. - :type description: str - :param environments: Gets list of environments. - :type environments: list of :class:`ReleaseEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param keep_forever: Whether to exclude the release from retention policies. - :type keep_forever: bool - :param logs_container_url: Gets logs container url. - :type logs_container_url: str - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param pool_name: Gets pool name. - :type pool_name: str - :param project_reference: Gets or sets project reference. - :type project_reference: :class:`ProjectReference ` - :param properties: - :type properties: :class:`object ` - :param reason: Gets reason of release. - :type reason: object - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_name_format: Gets release name format. - :type release_name_format: str - :param status: Gets status. - :type status: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param url: - :type url: str - :param variable_groups: Gets the list of variable groups. - :type variable_groups: list of :class:`VariableGroup ` - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_name': {'key': 'poolName', 'type': 'str'}, - 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, url=None, variable_groups=None, variables=None): - super(Release, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.definition_snapshot_revision = definition_snapshot_revision - self.description = description - self.environments = environments - self.id = id - self.keep_forever = keep_forever - self.logs_container_url = logs_container_url - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.pool_name = pool_name - self.project_reference = project_reference - self.properties = properties - self.reason = reason - self.release_definition = release_definition - self.release_name_format = release_name_format - self.status = status - self.tags = tags - self.url = url - self.variable_groups = variable_groups - self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/release_approval.py b/vsts/vsts/release/v4_0/models/release_approval.py deleted file mode 100644 index f08fdff8..00000000 --- a/vsts/vsts/release/v4_0/models/release_approval.py +++ /dev/null @@ -1,97 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseApproval(Model): - """ReleaseApproval. - - :param approval_type: Gets or sets the type of approval. - :type approval_type: object - :param approved_by: Gets the identity who approved. - :type approved_by: :class:`IdentityRef ` - :param approver: Gets or sets the identity who should approve. - :type approver: :class:`IdentityRef ` - :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. - :type attempt: int - :param comments: Gets or sets comments for approval. - :type comments: str - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param history: Gets history which specifies all approvals associated with this approval. - :type history: list of :class:`ReleaseApprovalHistory ` - :param id: Gets the unique identifier of this field. - :type id: int - :param is_automated: Gets or sets as approval is automated or not. - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. - :type rank: int - :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param revision: Gets the revision number. - :type revision: int - :param status: Gets or sets the status of the approval. - :type status: object - :param trial_number: - :type trial_number: int - :param url: Gets url to access the approval. - :type url: str - """ - - _attribute_map = { - 'approval_type': {'key': 'approvalType', 'type': 'object'}, - 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'object'}, - 'trial_number': {'key': 'trialNumber', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): - super(ReleaseApproval, self).__init__() - self.approval_type = approval_type - self.approved_by = approved_by - self.approver = approver - self.attempt = attempt - self.comments = comments - self.created_on = created_on - self.history = history - self.id = id - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.modified_on = modified_on - self.rank = rank - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.revision = revision - self.status = status - self.trial_number = trial_number - self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_approval_history.py b/vsts/vsts/release/v4_0/models/release_approval_history.py deleted file mode 100644 index d0af43e9..00000000 --- a/vsts/vsts/release/v4_0/models/release_approval_history.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseApprovalHistory(Model): - """ReleaseApprovalHistory. - - :param approver: - :type approver: :class:`IdentityRef ` - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param comments: - :type comments: str - :param created_on: - :type created_on: datetime - :param modified_on: - :type modified_on: datetime - :param revision: - :type revision: int - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): - super(ReleaseApprovalHistory, self).__init__() - self.approver = approver - self.changed_by = changed_by - self.comments = comments - self.created_on = created_on - self.modified_on = modified_on - self.revision = revision diff --git a/vsts/vsts/release/v4_0/models/release_condition.py b/vsts/vsts/release/v4_0/models/release_condition.py deleted file mode 100644 index b5bd67cd..00000000 --- a/vsts/vsts/release/v4_0/models/release_condition.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .condition import Condition - - -class ReleaseCondition(Condition): - """ReleaseCondition. - - :param condition_type: - :type condition_type: object - :param name: - :type name: str - :param value: - :type value: str - :param result: - :type result: bool - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'bool'} - } - - def __init__(self, condition_type=None, name=None, value=None, result=None): - super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) - self.result = result diff --git a/vsts/vsts/release/v4_0/models/release_definition.py b/vsts/vsts/release/v4_0/models/release_definition.py deleted file mode 100644 index 14ec8fa5..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition.py +++ /dev/null @@ -1,113 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinition(Model): - """ReleaseDefinition. - - :param _links: Gets links to access the release definition. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets the description. - :type description: str - :param environments: Gets or sets the list of environments. - :type environments: list of :class:`ReleaseDefinitionEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param last_release: Gets the reference of last release. - :type last_release: :class:`ReleaseReference ` - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets the name. - :type name: str - :param path: Gets or sets the path. - :type path: str - :param properties: Gets or sets properties. - :type properties: :class:`object ` - :param release_name_format: Gets or sets the release name format. - :type release_name_format: str - :param retention_policy: - :type retention_policy: :class:`RetentionPolicy ` - :param revision: Gets the revision number. - :type revision: int - :param source: Gets or sets source of release definition. - :type source: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param triggers: Gets or sets the list of triggers. - :type triggers: list of :class:`object ` - :param url: Gets url to access the release definition. - :type url: str - :param variable_groups: Gets or sets the list of variable groups. - :type variable_groups: list of int - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): - super(ReleaseDefinition, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.description = description - self.environments = environments - self.id = id - self.last_release = last_release - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.path = path - self.properties = properties - self.release_name_format = release_name_format - self.retention_policy = retention_policy - self.revision = revision - self.source = source - self.tags = tags - self.triggers = triggers - self.url = url - self.variable_groups = variable_groups - self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/release_definition_approval_step.py b/vsts/vsts/release/v4_0/models/release_definition_approval_step.py deleted file mode 100644 index bd56c822..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_approval_step.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep - - -class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionApprovalStep. - - :param id: - :type id: int - :param approver: - :type approver: :class:`IdentityRef ` - :param is_automated: - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param rank: - :type rank: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'} - } - - def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): - super(ReleaseDefinitionApprovalStep, self).__init__(id=id) - self.approver = approver - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.rank = rank diff --git a/vsts/vsts/release/v4_0/models/release_definition_approvals.py b/vsts/vsts/release/v4_0/models/release_definition_approvals.py deleted file mode 100644 index 765f7708..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_approvals.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionApprovals(Model): - """ReleaseDefinitionApprovals. - - :param approval_options: - :type approval_options: :class:`ApprovalOptions ` - :param approvals: - :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` - """ - - _attribute_map = { - 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, - 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} - } - - def __init__(self, approval_options=None, approvals=None): - super(ReleaseDefinitionApprovals, self).__init__() - self.approval_options = approval_options - self.approvals = approvals diff --git a/vsts/vsts/release/v4_0/models/release_definition_deploy_step.py b/vsts/vsts/release/v4_0/models/release_definition_deploy_step.py deleted file mode 100644 index ecad0f43..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_deploy_step.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep - - -class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionDeployStep. - - :param id: - :type id: int - :param tasks: The list of steps for this definition. - :type tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, id=None, tasks=None): - super(ReleaseDefinitionDeployStep, self).__init__(id=id) - self.tasks = tasks diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment.py b/vsts/vsts/release/v4_0/models/release_definition_environment.py deleted file mode 100644 index d936d5ae..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_environment.py +++ /dev/null @@ -1,97 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironment(Model): - """ReleaseDefinitionEnvironment. - - :param conditions: - :type conditions: list of :class:`Condition ` - :param demands: - :type demands: list of :class:`object ` - :param deploy_phases: - :type deploy_phases: list of :class:`object ` - :param deploy_step: - :type deploy_step: :class:`ReleaseDefinitionDeployStep ` - :param environment_options: - :type environment_options: :class:`EnvironmentOptions ` - :param execution_policy: - :type execution_policy: :class:`EnvironmentExecutionPolicy ` - :param id: - :type id: int - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param post_deploy_approvals: - :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param pre_deploy_approvals: - :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param process_parameters: - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param queue_id: - :type queue_id: int - :param rank: - :type rank: int - :param retention_policy: - :type retention_policy: :class:`EnvironmentRetentionPolicy ` - :param run_options: - :type run_options: dict - :param schedules: - :type schedules: list of :class:`ReleaseSchedule ` - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, - 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'run_options': {'key': 'runOptions', 'type': '{str}'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, pre_deploy_approvals=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variables=None): - super(ReleaseDefinitionEnvironment, self).__init__() - self.conditions = conditions - self.demands = demands - self.deploy_phases = deploy_phases - self.deploy_step = deploy_step - self.environment_options = environment_options - self.execution_policy = execution_policy - self.id = id - self.name = name - self.owner = owner - self.post_deploy_approvals = post_deploy_approvals - self.pre_deploy_approvals = pre_deploy_approvals - self.process_parameters = process_parameters - self.properties = properties - self.queue_id = queue_id - self.rank = rank - self.retention_policy = retention_policy - self.run_options = run_options - self.schedules = schedules - self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment_step.py b/vsts/vsts/release/v4_0/models/release_definition_environment_step.py deleted file mode 100644 index f013f154..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_environment_step.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironmentStep(Model): - """ReleaseDefinitionEnvironmentStep. - - :param id: - :type id: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, id=None): - super(ReleaseDefinitionEnvironmentStep, self).__init__() - self.id = id diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment_summary.py b/vsts/vsts/release/v4_0/models/release_definition_environment_summary.py deleted file mode 100644 index 337ca819..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_environment_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironmentSummary(Model): - """ReleaseDefinitionEnvironmentSummary. - - :param id: - :type id: int - :param last_releases: - :type last_releases: list of :class:`ReleaseShallowReference ` - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, last_releases=None, name=None): - super(ReleaseDefinitionEnvironmentSummary, self).__init__() - self.id = id - self.last_releases = last_releases - self.name = name diff --git a/vsts/vsts/release/v4_0/models/release_definition_environment_template.py b/vsts/vsts/release/v4_0/models/release_definition_environment_template.py deleted file mode 100644 index 203f2634..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_environment_template.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironmentTemplate(Model): - """ReleaseDefinitionEnvironmentTemplate. - - :param can_delete: - :type can_delete: bool - :param category: - :type category: str - :param description: - :type description: str - :param environment: - :type environment: :class:`ReleaseDefinitionEnvironment ` - :param icon_task_id: - :type icon_task_id: str - :param icon_uri: - :type icon_uri: str - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'icon_uri': {'key': 'iconUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, name=None): - super(ReleaseDefinitionEnvironmentTemplate, self).__init__() - self.can_delete = can_delete - self.category = category - self.description = description - self.environment = environment - self.icon_task_id = icon_task_id - self.icon_uri = icon_uri - self.id = id - self.name = name diff --git a/vsts/vsts/release/v4_0/models/release_definition_revision.py b/vsts/vsts/release/v4_0/models/release_definition_revision.py deleted file mode 100644 index 1235a505..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_revision.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionRevision(Model): - """ReleaseDefinitionRevision. - - :param api_version: Gets api-version for revision object. - :type api_version: str - :param changed_by: Gets the identity who did change. - :type changed_by: :class:`IdentityRef ` - :param changed_date: Gets date on which it got changed. - :type changed_date: datetime - :param change_type: Gets type of change. - :type change_type: object - :param comment: Gets comments for revision. - :type comment: str - :param definition_id: Get id of the definition. - :type definition_id: int - :param definition_url: Gets definition url. - :type definition_url: str - :param revision: Get revision number of the definition. - :type revision: int - """ - - _attribute_map = { - 'api_version': {'key': 'apiVersion', 'type': 'str'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): - super(ReleaseDefinitionRevision, self).__init__() - self.api_version = api_version - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.definition_id = definition_id - self.definition_url = definition_url - self.revision = revision diff --git a/vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py b/vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py deleted file mode 100644 index cab430f1..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_shallow_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionShallowReference(Model): - """ReleaseDefinitionShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release definition. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release definition. - :type id: int - :param name: Gets or sets the name of the release definition. - :type name: str - :param url: Gets the REST API url to access the release definition. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseDefinitionShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_definition_summary.py b/vsts/vsts/release/v4_0/models/release_definition_summary.py deleted file mode 100644 index 49c53def..00000000 --- a/vsts/vsts/release/v4_0/models/release_definition_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionSummary(Model): - """ReleaseDefinitionSummary. - - :param environments: - :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param releases: - :type releases: list of :class:`Release ` - """ - - _attribute_map = { - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'releases': {'key': 'releases', 'type': '[Release]'} - } - - def __init__(self, environments=None, release_definition=None, releases=None): - super(ReleaseDefinitionSummary, self).__init__() - self.environments = environments - self.release_definition = release_definition - self.releases = releases diff --git a/vsts/vsts/release/v4_0/models/release_deploy_phase.py b/vsts/vsts/release/v4_0/models/release_deploy_phase.py deleted file mode 100644 index cda1082e..00000000 --- a/vsts/vsts/release/v4_0/models/release_deploy_phase.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDeployPhase(Model): - """ReleaseDeployPhase. - - :param deployment_jobs: - :type deployment_jobs: list of :class:`DeploymentJob ` - :param error_log: - :type error_log: str - :param id: - :type id: int - :param manual_interventions: - :type manual_interventions: list of :class:`ManualIntervention ` - :param phase_type: - :type phase_type: object - :param rank: - :type rank: int - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - """ - - _attribute_map = { - 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, - 'phase_type': {'key': 'phaseType', 'type': 'object'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, phase_type=None, rank=None, run_plan_id=None, status=None): - super(ReleaseDeployPhase, self).__init__() - self.deployment_jobs = deployment_jobs - self.error_log = error_log - self.id = id - self.manual_interventions = manual_interventions - self.phase_type = phase_type - self.rank = rank - self.run_plan_id = run_plan_id - self.status = status diff --git a/vsts/vsts/release/v4_0/models/release_environment.py b/vsts/vsts/release/v4_0/models/release_environment.py deleted file mode 100644 index f7f5f3d8..00000000 --- a/vsts/vsts/release/v4_0/models/release_environment.py +++ /dev/null @@ -1,145 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironment(Model): - """ReleaseEnvironment. - - :param conditions: Gets list of conditions. - :type conditions: list of :class:`ReleaseCondition ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_environment_id: Gets definition environment id. - :type definition_environment_id: int - :param demands: Gets demands. - :type demands: list of :class:`object ` - :param deploy_phases_snapshot: Gets list of deploy phases snapshot. - :type deploy_phases_snapshot: list of :class:`object ` - :param deploy_steps: Gets deploy steps. - :type deploy_steps: list of :class:`DeploymentAttempt ` - :param environment_options: Gets environment options. - :type environment_options: :class:`EnvironmentOptions ` - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param next_scheduled_utc_time: Gets next scheduled UTC time. - :type next_scheduled_utc_time: datetime - :param owner: Gets the identity who is owner for release environment. - :type owner: :class:`IdentityRef ` - :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. - :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param post_deploy_approvals: Gets list of post deploy approvals. - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. - :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param pre_deploy_approvals: Gets list of pre deploy approvals. - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param process_parameters: Gets process parameters. - :type process_parameters: :class:`ProcessParameters ` - :param queue_id: Gets queue id. - :type queue_id: int - :param rank: Gets rank. - :type rank: int - :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_created_by: Gets the identity who created release. - :type release_created_by: :class:`IdentityRef ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_description: Gets release description. - :type release_description: str - :param release_id: Gets release id. - :type release_id: int - :param scheduled_deployment_time: Gets schedule deployment time of release environment. - :type scheduled_deployment_time: datetime - :param schedules: Gets list of schedules. - :type schedules: list of :class:`ReleaseSchedule ` - :param status: Gets environment status. - :type status: object - :param time_to_deploy: Gets time to deploy. - :type time_to_deploy: float - :param trigger_reason: Gets trigger reason. - :type trigger_reason: str - :param variables: Gets the dictionary of variables. - :type variables: dict - :param workflow_tasks: Gets list of workflow tasks. - :type workflow_tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, - 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_description': {'key': 'releaseDescription', 'type': 'str'}, - 'release_id': {'key': 'releaseId', 'type': 'int'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'status': {'key': 'status', 'type': 'object'}, - 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, - 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, - 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variables=None, workflow_tasks=None): - super(ReleaseEnvironment, self).__init__() - self.conditions = conditions - self.created_on = created_on - self.definition_environment_id = definition_environment_id - self.demands = demands - self.deploy_phases_snapshot = deploy_phases_snapshot - self.deploy_steps = deploy_steps - self.environment_options = environment_options - self.id = id - self.modified_on = modified_on - self.name = name - self.next_scheduled_utc_time = next_scheduled_utc_time - self.owner = owner - self.post_approvals_snapshot = post_approvals_snapshot - self.post_deploy_approvals = post_deploy_approvals - self.pre_approvals_snapshot = pre_approvals_snapshot - self.pre_deploy_approvals = pre_deploy_approvals - self.process_parameters = process_parameters - self.queue_id = queue_id - self.rank = rank - self.release = release - self.release_created_by = release_created_by - self.release_definition = release_definition - self.release_description = release_description - self.release_id = release_id - self.scheduled_deployment_time = scheduled_deployment_time - self.schedules = schedules - self.status = status - self.time_to_deploy = time_to_deploy - self.trigger_reason = trigger_reason - self.variables = variables - self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py b/vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py deleted file mode 100644 index e1f0ca55..00000000 --- a/vsts/vsts/release/v4_0/models/release_environment_shallow_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironmentShallowReference(Model): - """ReleaseEnvironmentShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release environment. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release environment. - :type id: int - :param name: Gets or sets the name of the release environment. - :type name: str - :param url: Gets the REST API url to access the release environment. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseEnvironmentShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_environment_update_metadata.py b/vsts/vsts/release/v4_0/models/release_environment_update_metadata.py deleted file mode 100644 index df5c0fed..00000000 --- a/vsts/vsts/release/v4_0/models/release_environment_update_metadata.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironmentUpdateMetadata(Model): - """ReleaseEnvironmentUpdateMetadata. - - :param comment: Gets or sets comment. - :type comment: str - :param scheduled_deployment_time: Gets or sets scheduled deployment time. - :type scheduled_deployment_time: datetime - :param status: Gets or sets status of environment. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, scheduled_deployment_time=None, status=None): - super(ReleaseEnvironmentUpdateMetadata, self).__init__() - self.comment = comment - self.scheduled_deployment_time = scheduled_deployment_time - self.status = status diff --git a/vsts/vsts/release/v4_0/models/release_reference.py b/vsts/vsts/release/v4_0/models/release_reference.py deleted file mode 100644 index 7dc00b17..00000000 --- a/vsts/vsts/release/v4_0/models/release_reference.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseReference(Model): - """ReleaseReference. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param created_by: Gets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param name: Gets name of release. - :type name: str - :param reason: Gets reason for release. - :type reason: object - :param release_definition: Gets release definition shallow reference. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param url: - :type url: str - :param web_access_uri: - :type web_access_uri: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} - } - - def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): - super(ReleaseReference, self).__init__() - self._links = _links - self.artifacts = artifacts - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.name = name - self.reason = reason - self.release_definition = release_definition - self.url = url - self.web_access_uri = web_access_uri diff --git a/vsts/vsts/release/v4_0/models/release_revision.py b/vsts/vsts/release/v4_0/models/release_revision.py deleted file mode 100644 index 437dc373..00000000 --- a/vsts/vsts/release/v4_0/models/release_revision.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseRevision(Model): - """ReleaseRevision. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param change_details: - :type change_details: str - :param change_type: - :type change_type: str - :param comment: - :type comment: str - :param definition_snapshot_revision: - :type definition_snapshot_revision: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_details': {'key': 'changeDetails', 'type': 'str'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): - super(ReleaseRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_details = change_details - self.change_type = change_type - self.comment = comment - self.definition_snapshot_revision = definition_snapshot_revision - self.release_id = release_id diff --git a/vsts/vsts/release/v4_0/models/release_schedule.py b/vsts/vsts/release/v4_0/models/release_schedule.py deleted file mode 100644 index ac0b3f86..00000000 --- a/vsts/vsts/release/v4_0/models/release_schedule.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseSchedule(Model): - """ReleaseSchedule. - - :param days_to_release: Days of the week to release - :type days_to_release: object - :param job_id: Team Foundation Job Definition Job Id - :type job_id: str - :param start_hours: Local time zone hour to start - :type start_hours: int - :param start_minutes: Local time zone minute to start - :type start_minutes: int - :param time_zone_id: Time zone Id of release schedule, such as 'UTC' - :type time_zone_id: str - """ - - _attribute_map = { - 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_hours': {'key': 'startHours', 'type': 'int'}, - 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, - 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} - } - - def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): - super(ReleaseSchedule, self).__init__() - self.days_to_release = days_to_release - self.job_id = job_id - self.start_hours = start_hours - self.start_minutes = start_minutes - self.time_zone_id = time_zone_id diff --git a/vsts/vsts/release/v4_0/models/release_settings.py b/vsts/vsts/release/v4_0/models/release_settings.py deleted file mode 100644 index b139d649..00000000 --- a/vsts/vsts/release/v4_0/models/release_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseSettings(Model): - """ReleaseSettings. - - :param retention_settings: - :type retention_settings: :class:`RetentionSettings ` - """ - - _attribute_map = { - 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} - } - - def __init__(self, retention_settings=None): - super(ReleaseSettings, self).__init__() - self.retention_settings = retention_settings diff --git a/vsts/vsts/release/v4_0/models/release_shallow_reference.py b/vsts/vsts/release/v4_0/models/release_shallow_reference.py deleted file mode 100644 index 172de396..00000000 --- a/vsts/vsts/release/v4_0/models/release_shallow_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseShallowReference(Model): - """ReleaseShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release. - :type id: int - :param name: Gets or sets the name of the release. - :type name: str - :param url: Gets the REST API url to access the release. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/release/v4_0/models/release_start_metadata.py b/vsts/vsts/release/v4_0/models/release_start_metadata.py deleted file mode 100644 index 626534c8..00000000 --- a/vsts/vsts/release/v4_0/models/release_start_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseStartMetadata(Model): - """ReleaseStartMetadata. - - :param artifacts: Sets list of artifact to create a release. - :type artifacts: list of :class:`ArtifactMetadata ` - :param definition_id: Sets definition Id to create a release. - :type definition_id: int - :param description: Sets description to create a release. - :type description: str - :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. - :type is_draft: bool - :param manual_environments: Sets list of environments to manual as condition. - :type manual_environments: list of str - :param properties: - :type properties: :class:`object ` - :param reason: Sets reason to create a release. - :type reason: object - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_draft': {'key': 'isDraft', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'} - } - - def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): - super(ReleaseStartMetadata, self).__init__() - self.artifacts = artifacts - self.definition_id = definition_id - self.description = description - self.is_draft = is_draft - self.manual_environments = manual_environments - self.properties = properties - self.reason = reason diff --git a/vsts/vsts/release/v4_0/models/release_task.py b/vsts/vsts/release/v4_0/models/release_task.py deleted file mode 100644 index 153b051a..00000000 --- a/vsts/vsts/release/v4_0/models/release_task.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseTask(Model): - """ReleaseTask. - - :param agent_name: - :type agent_name: str - :param date_ended: - :type date_ended: datetime - :param date_started: - :type date_started: datetime - :param finish_time: - :type finish_time: datetime - :param id: - :type id: int - :param issues: - :type issues: list of :class:`Issue ` - :param line_count: - :type line_count: long - :param log_url: - :type log_url: str - :param name: - :type name: str - :param percent_complete: - :type percent_complete: int - :param rank: - :type rank: int - :param start_time: - :type start_time: datetime - :param status: - :type status: object - :param task: - :type task: :class:`WorkflowTaskReference ` - :param timeline_record_id: - :type timeline_record_id: str - """ - - _attribute_map = { - 'agent_name': {'key': 'agentName', 'type': 'str'}, - 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, - 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'line_count': {'key': 'lineCount', 'type': 'long'}, - 'log_url': {'key': 'logUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, - 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} - } - - def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): - super(ReleaseTask, self).__init__() - self.agent_name = agent_name - self.date_ended = date_ended - self.date_started = date_started - self.finish_time = finish_time - self.id = id - self.issues = issues - self.line_count = line_count - self.log_url = log_url - self.name = name - self.percent_complete = percent_complete - self.rank = rank - self.start_time = start_time - self.status = status - self.task = task - self.timeline_record_id = timeline_record_id diff --git a/vsts/vsts/release/v4_0/models/release_update_metadata.py b/vsts/vsts/release/v4_0/models/release_update_metadata.py deleted file mode 100644 index 24cad449..00000000 --- a/vsts/vsts/release/v4_0/models/release_update_metadata.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseUpdateMetadata(Model): - """ReleaseUpdateMetadata. - - :param comment: Sets comment for release. - :type comment: str - :param keep_forever: Set 'true' to exclude the release from retention policies. - :type keep_forever: bool - :param manual_environments: Sets list of manual environments. - :type manual_environments: list of str - :param status: Sets status of the release. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): - super(ReleaseUpdateMetadata, self).__init__() - self.comment = comment - self.keep_forever = keep_forever - self.manual_environments = manual_environments - self.status = status diff --git a/vsts/vsts/release/v4_0/models/release_work_item_ref.py b/vsts/vsts/release/v4_0/models/release_work_item_ref.py deleted file mode 100644 index 9891d5a0..00000000 --- a/vsts/vsts/release/v4_0/models/release_work_item_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseWorkItemRef(Model): - """ReleaseWorkItemRef. - - :param assignee: - :type assignee: str - :param id: - :type id: str - :param state: - :type state: str - :param title: - :type title: str - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'assignee': {'key': 'assignee', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): - super(ReleaseWorkItemRef, self).__init__() - self.assignee = assignee - self.id = id - self.state = state - self.title = title - self.type = type - self.url = url diff --git a/vsts/vsts/release/v4_0/models/retention_policy.py b/vsts/vsts/release/v4_0/models/retention_policy.py deleted file mode 100644 index e070b170..00000000 --- a/vsts/vsts/release/v4_0/models/retention_policy.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RetentionPolicy(Model): - """RetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} - } - - def __init__(self, days_to_keep=None): - super(RetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep diff --git a/vsts/vsts/release/v4_0/models/retention_settings.py b/vsts/vsts/release/v4_0/models/retention_settings.py deleted file mode 100644 index a2a23aa1..00000000 --- a/vsts/vsts/release/v4_0/models/retention_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RetentionSettings(Model): - """RetentionSettings. - - :param days_to_keep_deleted_releases: - :type days_to_keep_deleted_releases: int - :param default_environment_retention_policy: - :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - :param maximum_environment_retention_policy: - :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - """ - - _attribute_map = { - 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, - 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} - } - - def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): - super(RetentionSettings, self).__init__() - self.days_to_keep_deleted_releases = days_to_keep_deleted_releases - self.default_environment_retention_policy = default_environment_retention_policy - self.maximum_environment_retention_policy = maximum_environment_retention_policy diff --git a/vsts/vsts/release/v4_0/models/summary_mail_section.py b/vsts/vsts/release/v4_0/models/summary_mail_section.py deleted file mode 100644 index b8f6a8ea..00000000 --- a/vsts/vsts/release/v4_0/models/summary_mail_section.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SummaryMailSection(Model): - """SummaryMailSection. - - :param html_content: - :type html_content: str - :param rank: - :type rank: int - :param section_type: - :type section_type: object - :param title: - :type title: str - """ - - _attribute_map = { - 'html_content': {'key': 'htmlContent', 'type': 'str'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'section_type': {'key': 'sectionType', 'type': 'object'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, html_content=None, rank=None, section_type=None, title=None): - super(SummaryMailSection, self).__init__() - self.html_content = html_content - self.rank = rank - self.section_type = section_type - self.title = title diff --git a/vsts/vsts/release/v4_0/models/task_input_definition_base.py b/vsts/vsts/release/v4_0/models/task_input_definition_base.py deleted file mode 100644 index 1f33183e..00000000 --- a/vsts/vsts/release/v4_0/models/task_input_definition_base.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule diff --git a/vsts/vsts/release/v4_0/models/task_input_validation.py b/vsts/vsts/release/v4_0/models/task_input_validation.py deleted file mode 100644 index 42524013..00000000 --- a/vsts/vsts/release/v4_0/models/task_input_validation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message diff --git a/vsts/vsts/release/v4_0/models/task_source_definition_base.py b/vsts/vsts/release/v4_0/models/task_source_definition_base.py deleted file mode 100644 index c8a6b6d6..00000000 --- a/vsts/vsts/release/v4_0/models/task_source_definition_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target diff --git a/vsts/vsts/release/v4_0/models/variable_group.py b/vsts/vsts/release/v4_0/models/variable_group.py deleted file mode 100644 index 827408a1..00000000 --- a/vsts/vsts/release/v4_0/models/variable_group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroup(Model): - """VariableGroup. - - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets name. - :type name: str - :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` - :param type: Gets or sets type. - :type type: str - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'} - } - - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): - super(VariableGroup, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.provider_data = provider_data - self.type = type - self.variables = variables diff --git a/vsts/vsts/release/v4_0/models/variable_group_provider_data.py b/vsts/vsts/release/v4_0/models/variable_group_provider_data.py deleted file mode 100644 index b86942f1..00000000 --- a/vsts/vsts/release/v4_0/models/variable_group_provider_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroupProviderData(Model): - """VariableGroupProviderData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/release/v4_0/models/variable_value.py b/vsts/vsts/release/v4_0/models/variable_value.py deleted file mode 100644 index 035049c0..00000000 --- a/vsts/vsts/release/v4_0/models/variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/release/v4_0/models/workflow_task.py b/vsts/vsts/release/v4_0/models/workflow_task.py deleted file mode 100644 index 14ef134c..00000000 --- a/vsts/vsts/release/v4_0/models/workflow_task.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkflowTask(Model): - """WorkflowTask. - - :param always_run: - :type always_run: bool - :param condition: - :type condition: str - :param continue_on_error: - :type continue_on_error: bool - :param definition_type: - :type definition_type: str - :param enabled: - :type enabled: bool - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param override_inputs: - :type override_inputs: dict - :param ref_name: - :type ref_name: str - :param task_id: - :type task_id: str - :param timeout_in_minutes: - :type timeout_in_minutes: int - :param version: - :type version: str - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): - super(WorkflowTask, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.definition_type = definition_type - self.enabled = enabled - self.inputs = inputs - self.name = name - self.override_inputs = override_inputs - self.ref_name = ref_name - self.task_id = task_id - self.timeout_in_minutes = timeout_in_minutes - self.version = version diff --git a/vsts/vsts/release/v4_0/models/workflow_task_reference.py b/vsts/vsts/release/v4_0/models/workflow_task_reference.py deleted file mode 100644 index 0a99eab3..00000000 --- a/vsts/vsts/release/v4_0/models/workflow_task_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkflowTaskReference(Model): - """WorkflowTaskReference. - - :param id: - :type id: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, name=None, version=None): - super(WorkflowTaskReference, self).__init__() - self.id = id - self.name = name - self.version = version diff --git a/vsts/vsts/release/v4_0/release_client.py b/vsts/vsts/release/v4_0/release_client.py deleted file mode 100644 index 2ba06910..00000000 --- a/vsts/vsts/release/v4_0/release_client.py +++ /dev/null @@ -1,1689 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 ...vss_client import VssClient -from . import models - - -class ReleaseClient(VssClient): - """Release - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' - - def get_agent_artifact_definitions(self, project, release_id): - """GetAgentArtifactDefinitions. - [Preview API] Returns the artifact details that automation agent requires - :param str project: Project ID or project name - :param int release_id: - :rtype: [AgentArtifactDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='f2571c27-bf50-4938-b396-32d109ddef26', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[AgentArtifactDefinition]', self._unwrap_collection(response)) - - def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): - """GetApprovals. - [Preview API] Get a list of approvals - :param str project: Project ID or project name - :param str assigned_to_filter: Approvals assigned to this user. - :param str status_filter: Approvals with this status. Default is 'pending'. - :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. - :param str type_filter: Approval with this type. - :param int top: Number of approvals to get. Default is 50. - :param int continuation_token: Gets the approvals after the continuation token provided. - :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. - :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. - :rtype: [ReleaseApproval] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if assigned_to_filter is not None: - query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if release_ids_filter is not None: - release_ids_filter = ",".join(map(str, release_ids_filter)) - query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') - if type_filter is not None: - query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if include_my_group_approvals is not None: - query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') - response = self._send(http_method='GET', - location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) - - def get_approval_history(self, project, approval_step_id): - """GetApprovalHistory. - [Preview API] Get approval history. - :param str project: Project ID or project name - :param int approval_step_id: Id of the approval. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_step_id is not None: - route_values['approvalStepId'] = self._serialize.url('approval_step_id', approval_step_id, 'int') - response = self._send(http_method='GET', - location_id='250c7158-852e-4130-a00f-a0cce9b72d05', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ReleaseApproval', response) - - def get_approval(self, project, approval_id, include_history=None): - """GetApproval. - [Preview API] Get an approval. - :param str project: Project ID or project name - :param int approval_id: Id of the approval. - :param bool include_history: 'true' to include history of the approval. Default is 'false'. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_id is not None: - route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') - query_parameters = {} - if include_history is not None: - query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') - response = self._send(http_method='GET', - location_id='9328e074-59fb-465a-89d9-b09c82ee5109', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseApproval', response) - - def update_release_approval(self, approval, project, approval_id): - """UpdateReleaseApproval. - [Preview API] Update status of an approval - :param :class:` ` approval: ReleaseApproval object having status, approver and comments. - :param str project: Project ID or project name - :param int approval_id: Id of the approval. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_id is not None: - route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') - content = self._serialize.body(approval, 'ReleaseApproval') - response = self._send(http_method='PATCH', - location_id='9328e074-59fb-465a-89d9-b09c82ee5109', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ReleaseApproval', response) - - def update_release_approvals(self, approvals, project): - """UpdateReleaseApprovals. - [Preview API] - :param [ReleaseApproval] approvals: - :param str project: Project ID or project name - :rtype: [ReleaseApproval] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(approvals, '[ReleaseApproval]') - response = self._send(http_method='PATCH', - location_id='c957584a-82aa-4131-8222-6d47f78bfa7a', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) - - def get_auto_trigger_issues(self, artifact_type, source_id, artifact_version_id): - """GetAutoTriggerIssues. - [Preview API] - :param str artifact_type: - :param str source_id: - :param str artifact_version_id: - :rtype: [AutoTriggerIssue] - """ - query_parameters = {} - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - if artifact_version_id is not None: - query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') - response = self._send(http_method='GET', - location_id='c1a68497-69da-40fb-9423-cab19cfeeca9', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) - - def get_release_changes(self, project, release_id, base_release_id=None, top=None): - """GetReleaseChanges. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int base_release_id: - :param int top: - :rtype: [Change] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if base_release_id is not None: - query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='8dcf9fe9-ca37-4113-8ee1-37928e98407c', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Change]', self._unwrap_collection(response)) - - def get_definition_environments(self, project, task_group_id=None, property_filters=None): - """GetDefinitionEnvironments. - [Preview API] - :param str project: Project ID or project name - :param str task_group_id: - :param [str] property_filters: - :rtype: [DefinitionEnvironmentReference] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if task_group_id is not None: - query_parameters['taskGroupId'] = self._serialize.query('task_group_id', task_group_id, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='12b5d21a-f54c-430e-a8c1-7515d196890e', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[DefinitionEnvironmentReference]', self._unwrap_collection(response)) - - def create_release_definition(self, release_definition, project): - """CreateReleaseDefinition. - [Preview API] Create a release definition - :param :class:` ` release_definition: release definition object to create. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='POST', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def delete_release_definition(self, project, definition_id): - """DeleteReleaseDefinition. - [Preview API] Delete a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - self._send(http_method='DELETE', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values) - - def get_release_definition(self, project, definition_id, property_filters=None): - """GetReleaseDefinition. - [Preview API] Get a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinition', response) - - def get_release_definition_revision(self, project, definition_id, revision, **kwargs): - """GetReleaseDefinitionRevision. - [Preview API] Get release definition of a given revision. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param int revision: Revision number of the release definition. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if revision is not None: - query_parameters['revision'] = self._serialize.query('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None): - """GetReleaseDefinitions. - [Preview API] Get a list of release definitions. - :param str project: Project ID or project name - :param str search_text: Get release definitions with names starting with searchText. - :param str expand: The properties that should be expanded in the list of Release definitions. - :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param int top: Number of release definitions to get. - :param str continuation_token: Gets the release definitions after the continuation token provided. - :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. - :param str path: Gets the release definitions under the specified path. - :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. - :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. - :rtype: [ReleaseDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if artifact_source_id is not None: - query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if path is not None: - query_parameters['path'] = self._serialize.query('path', path, 'str') - if is_exact_name_match is not None: - query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if definition_id_filter is not None: - definition_id_filter = ",".join(definition_id_filter) - query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) - - def update_release_definition(self, release_definition, project): - """UpdateReleaseDefinition. - [Preview API] Update a release definition. - :param :class:` ` release_definition: Release definition object to update. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='PUT', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None): - """GetDeployments. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :param int definition_environment_id: - :param str created_by: - :param datetime min_modified_time: - :param datetime max_modified_time: - :param str deployment_status: - :param str operation_status: - :param bool latest_attempts_only: - :param str query_order: - :param int top: - :param int continuation_token: - :param str created_for: - :rtype: [Deployment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if min_modified_time is not None: - query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') - if max_modified_time is not None: - query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') - if deployment_status is not None: - query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') - if operation_status is not None: - query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') - if latest_attempts_only is not None: - query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if created_for is not None: - query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') - response = self._send(http_method='GET', - location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Deployment]', self._unwrap_collection(response)) - - def get_deployments_for_multiple_environments(self, query_parameters, project): - """GetDeploymentsForMultipleEnvironments. - [Preview API] - :param :class:` ` query_parameters: - :param str project: Project ID or project name - :rtype: [Deployment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(query_parameters, 'DeploymentQueryParameters') - response = self._send(http_method='POST', - location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[Deployment]', self._unwrap_collection(response)) - - def get_release_environment(self, project, release_id, environment_id): - """GetReleaseEnvironment. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - response = self._send(http_method='GET', - location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', - version='4.0-preview.4', - route_values=route_values) - return self._deserialize('ReleaseEnvironment', response) - - def update_release_environment(self, environment_update_data, project, release_id, environment_id): - """UpdateReleaseEnvironment. - [Preview API] Update the status of a release environment - :param :class:` ` environment_update_data: Environment update meta data. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('ReleaseEnvironment', response) - - def create_definition_environment_template(self, template, project): - """CreateDefinitionEnvironmentTemplate. - [Preview API] - :param :class:` ` template: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(template, 'ReleaseDefinitionEnvironmentTemplate') - response = self._send(http_method='POST', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) - - def delete_definition_environment_template(self, project, template_id): - """DeleteDefinitionEnvironmentTemplate. - [Preview API] - :param str project: Project ID or project name - :param str template_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if template_id is not None: - query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') - self._send(http_method='DELETE', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters) - - def get_definition_environment_template(self, project, template_id): - """GetDefinitionEnvironmentTemplate. - [Preview API] - :param str project: Project ID or project name - :param str template_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if template_id is not None: - query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') - response = self._send(http_method='GET', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) - - def list_definition_environment_templates(self, project): - """ListDefinitionEnvironmentTemplates. - [Preview API] - :param str project: Project ID or project name - :rtype: [ReleaseDefinitionEnvironmentTemplate] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values) - return self._deserialize('[ReleaseDefinitionEnvironmentTemplate]', self._unwrap_collection(response)) - - def create_favorites(self, favorite_items, project, scope, identity_id=None): - """CreateFavorites. - [Preview API] - :param [FavoriteItem] favorite_items: - :param str project: Project ID or project name - :param str scope: - :param str identity_id: - :rtype: [FavoriteItem] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if scope is not None: - route_values['scope'] = self._serialize.url('scope', scope, 'str') - query_parameters = {} - if identity_id is not None: - query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') - content = self._serialize.body(favorite_items, '[FavoriteItem]') - response = self._send(http_method='POST', - location_id='938f7222-9acb-48fe-b8a3-4eda04597171', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) - - def delete_favorites(self, project, scope, identity_id=None, favorite_item_ids=None): - """DeleteFavorites. - [Preview API] - :param str project: Project ID or project name - :param str scope: - :param str identity_id: - :param str favorite_item_ids: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if scope is not None: - route_values['scope'] = self._serialize.url('scope', scope, 'str') - query_parameters = {} - if identity_id is not None: - query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') - if favorite_item_ids is not None: - query_parameters['favoriteItemIds'] = self._serialize.query('favorite_item_ids', favorite_item_ids, 'str') - self._send(http_method='DELETE', - location_id='938f7222-9acb-48fe-b8a3-4eda04597171', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - - def get_favorites(self, project, scope, identity_id=None): - """GetFavorites. - [Preview API] - :param str project: Project ID or project name - :param str scope: - :param str identity_id: - :rtype: [FavoriteItem] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if scope is not None: - route_values['scope'] = self._serialize.url('scope', scope, 'str') - query_parameters = {} - if identity_id is not None: - query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') - response = self._send(http_method='GET', - location_id='938f7222-9acb-48fe-b8a3-4eda04597171', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) - - def create_folder(self, folder, project, path): - """CreateFolder. - [Preview API] Creates a new folder - :param :class:` ` folder: - :param str project: Project ID or project name - :param str path: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - content = self._serialize.body(folder, 'Folder') - response = self._send(http_method='POST', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Folder', response) - - def delete_folder(self, project, path): - """DeleteFolder. - [Preview API] Deletes a definition folder for given folder name and path and all it's existing definitions - :param str project: Project ID or project name - :param str path: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - self._send(http_method='DELETE', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values) - - def get_folders(self, project, path=None, query_order=None): - """GetFolders. - [Preview API] Gets folders - :param str project: Project ID or project name - :param str path: - :param str query_order: - :rtype: [Folder] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - query_parameters = {} - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - response = self._send(http_method='GET', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Folder]', self._unwrap_collection(response)) - - def update_folder(self, folder, project, path): - """UpdateFolder. - [Preview API] Updates an existing folder at given existing path - :param :class:` ` folder: - :param str project: Project ID or project name - :param str path: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - content = self._serialize.body(folder, 'Folder') - response = self._send(http_method='PATCH', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Folder', response) - - def get_release_history(self, project, release_id): - """GetReleaseHistory. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :rtype: [ReleaseRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='23f461c8-629a-4144-a076-3054fa5f268a', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseRevision]', self._unwrap_collection(response)) - - def get_input_values(self, query, project): - """GetInputValues. - [Preview API] - :param :class:` ` query: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(query, 'InputValuesQuery') - response = self._send(http_method='POST', - location_id='71dd499b-317d-45ea-9134-140ea1932b5e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('InputValuesQuery', response) - - def get_issues(self, project, build_id, source_id=None): - """GetIssues. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param str source_id: - :rtype: [AutoTriggerIssue] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if build_id is not None: - route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') - query_parameters = {} - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - response = self._send(http_method='GET', - location_id='cd42261a-f5c6-41c8-9259-f078989b9f25', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) - - def get_log(self, project, release_id, environment_id, task_id, attempt_id=None, **kwargs): - """GetLog. - [Preview API] Gets logs - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :param int task_id: ReleaseTask Id for the log. - :param int attempt_id: Id of the attempt. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') - query_parameters = {} - if attempt_id is not None: - query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') - response = self._send(http_method='GET', - location_id='e71ba1ed-c0a4-4a28-a61f-2dd5f68cf3fd', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_logs(self, project, release_id, **kwargs): - """GetLogs. - [Preview API] Get logs for a release Id. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', - version='4.0-preview.2', - route_values=route_values, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, **kwargs): - """GetTaskLog. - [Preview API] Gets the task log of a release as a plain text file. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :param int release_deploy_phase_id: Release deploy phase Id. - :param int task_id: ReleaseTask Id for the log. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if release_deploy_phase_id is not None: - route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') - response = self._send(http_method='GET', - location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', - version='4.0-preview.2', - route_values=route_values, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_manual_intervention(self, project, release_id, manual_intervention_id): - """GetManualIntervention. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int manual_intervention_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ManualIntervention', response) - - def get_manual_interventions(self, project, release_id): - """GetManualInterventions. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :rtype: [ManualIntervention] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) - - def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): - """UpdateManualIntervention. - [Preview API] - :param :class:` ` manual_intervention_update_metadata: - :param str project: Project ID or project name - :param int release_id: - :param int manual_intervention_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ManualIntervention', response) - - def get_metrics(self, project, min_metrics_time=None): - """GetMetrics. - [Preview API] - :param str project: Project ID or project name - :param datetime min_metrics_time: - :rtype: [Metric] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if min_metrics_time is not None: - query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') - response = self._send(http_method='GET', - location_id='cd1502bb-3c73-4e11-80a6-d11308dceae5', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Metric]', self._unwrap_collection(response)) - - def get_release_projects(self, artifact_type, artifact_source_id): - """GetReleaseProjects. - [Preview API] - :param str artifact_type: - :param str artifact_source_id: - :rtype: [ProjectReference] - """ - query_parameters = {} - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if artifact_source_id is not None: - query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') - response = self._send(http_method='GET', - location_id='917ace4a-79d1-45a7-987c-7be4db4268fa', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[ProjectReference]', self._unwrap_collection(response)) - - def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None): - """GetReleases. - [Preview API] Get a list of releases - :param str project: Project ID or project name - :param int definition_id: Releases from this release definition Id. - :param int definition_environment_id: - :param str search_text: Releases with names starting with searchText. - :param str created_by: Releases created by this user. - :param str status_filter: Releases that have this status. - :param int environment_status_filter: - :param datetime min_created_time: Releases that were created after this time. - :param datetime max_created_time: Releases that were created before this time. - :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. - :param int top: Number of releases to get. Default is 50. - :param int continuation_token: Gets the releases after the continuation token provided. - :param str expand: The property that should be expanded in the list of releases. - :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. - :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. - :param bool is_deleted: Gets the soft deleted releases, if true. - :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :rtype: [Release] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if environment_status_filter is not None: - query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') - if min_created_time is not None: - query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') - if max_created_time is not None: - query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type_id is not None: - query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - if artifact_version_id is not None: - query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') - if source_branch_filter is not None: - query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') - if is_deleted is not None: - query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Release]', self._unwrap_collection(response)) - - def create_release(self, release_start_metadata, project): - """CreateRelease. - [Preview API] Create a release. - :param :class:` ` release_start_metadata: Metadata to create a release. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') - response = self._send(http_method='POST', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def delete_release(self, project, release_id, comment=None): - """DeleteRelease. - [Preview API] Soft delete a release - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param str comment: Comment for deleting a release. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if comment is not None: - query_parameters['comment'] = self._serialize.query('comment', comment, 'str') - self._send(http_method='DELETE', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - - def get_release(self, project, release_id, include_all_approvals=None, property_filters=None): - """GetRelease. - [Preview API] Get a Release - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param bool include_all_approvals: Include all approvals in the result. Default is 'true'. - :param [str] property_filters: A comma-delimited list of properties to include in the results. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if include_all_approvals is not None: - query_parameters['includeAllApprovals'] = self._serialize.query('include_all_approvals', include_all_approvals, 'bool') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('Release', response) - - def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): - """GetReleaseDefinitionSummary. - [Preview API] Get release summary of a given definition Id. - :param str project: Project ID or project name - :param int definition_id: Id of the definition to get release summary. - :param int release_count: Count of releases to be included in summary. - :param bool include_artifact: Include artifact details.Default is 'false'. - :param [int] definition_environment_ids_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if release_count is not None: - query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') - if include_artifact is not None: - query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') - if definition_environment_ids_filter is not None: - definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) - query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinitionSummary', response) - - def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): - """GetReleaseRevision. - [Preview API] Get release for a given revision number. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int definition_snapshot_revision: Definition snapshot revision number. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if definition_snapshot_revision is not None: - query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def undelete_release(self, project, release_id, comment): - """UndeleteRelease. - [Preview API] Undelete a soft deleted release. - :param str project: Project ID or project name - :param int release_id: Id of release to be undeleted. - :param str comment: Any comment for undeleting. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if comment is not None: - query_parameters['comment'] = self._serialize.query('comment', comment, 'str') - self._send(http_method='PUT', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - - def update_release(self, release, project, release_id): - """UpdateRelease. - [Preview API] Update a complete release object. - :param :class:` ` release: Release object for update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release, 'Release') - response = self._send(http_method='PUT', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def update_release_resource(self, release_update_metadata, project, release_id): - """UpdateReleaseResource. - [Preview API] Update few properties of a release. - :param :class:` ` release_update_metadata: Properties of release to update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def get_release_settings(self, project): - """GetReleaseSettings. - [Preview API] Gets the release settings - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ReleaseSettings', response) - - def update_release_settings(self, release_settings, project): - """UpdateReleaseSettings. - [Preview API] Updates the release settings - :param :class:` ` release_settings: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_settings, 'ReleaseSettings') - response = self._send(http_method='PUT', - location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ReleaseSettings', response) - - def get_definition_revision(self, project, definition_id, revision, **kwargs): - """GetDefinitionRevision. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :param int revision: - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - if revision is not None: - route_values['revision'] = self._serialize.url('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.0-preview.1', - route_values=route_values, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_release_definition_history(self, project, definition_id): - """GetReleaseDefinitionHistory. - [Preview API] Get revision history for a release definition - :param str project: Project ID or project name - :param int definition_id: Id of the definition. - :rtype: [ReleaseDefinitionRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) - - def get_summary_mail_sections(self, project, release_id): - """GetSummaryMailSections. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :rtype: [SummaryMailSection] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='224e92b2-8d13-4c14-b120-13d877c516f8', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[SummaryMailSection]', self._unwrap_collection(response)) - - def send_summary_mail(self, mail_message, project, release_id): - """SendSummaryMail. - [Preview API] - :param :class:` ` mail_message: - :param str project: Project ID or project name - :param int release_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(mail_message, 'MailMessage') - self._send(http_method='POST', - location_id='224e92b2-8d13-4c14-b120-13d877c516f8', - version='4.0-preview.1', - route_values=route_values, - content=content) - - def get_source_branches(self, project, definition_id): - """GetSourceBranches. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='0e5def23-78b3-461f-8198-1558f25041c8', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_definition_tag(self, project, release_definition_id, tag): - """AddDefinitionTag. - [Preview API] Adds a tag to a definition - :param str project: Project ID or project name - :param int release_definition_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='PATCH', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_definition_tags(self, tags, project, release_definition_id): - """AddDefinitionTags. - [Preview API] Adds multiple tags to a definition - :param [str] tags: - :param str project: Project ID or project name - :param int release_definition_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - content = self._serialize.body(tags, '[str]') - response = self._send(http_method='POST', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def delete_definition_tag(self, project, release_definition_id, tag): - """DeleteDefinitionTag. - [Preview API] Deletes a tag from a definition - :param str project: Project ID or project name - :param int release_definition_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='DELETE', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_definition_tags(self, project, release_definition_id): - """GetDefinitionTags. - [Preview API] Gets the tags for a definition - :param str project: Project ID or project name - :param int release_definition_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - response = self._send(http_method='GET', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_release_tag(self, project, release_id, tag): - """AddReleaseTag. - [Preview API] Adds a tag to a releaseId - :param str project: Project ID or project name - :param int release_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='PATCH', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_release_tags(self, tags, project, release_id): - """AddReleaseTags. - [Preview API] Adds tag to a release - :param [str] tags: - :param str project: Project ID or project name - :param int release_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(tags, '[str]') - response = self._send(http_method='POST', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def delete_release_tag(self, project, release_id, tag): - """DeleteReleaseTag. - [Preview API] Deletes a tag from a release - :param str project: Project ID or project name - :param int release_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='DELETE', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_release_tags(self, project, release_id): - """GetReleaseTags. - [Preview API] Gets the tags for a release - :param str project: Project ID or project name - :param int release_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_tags(self, project): - """GetTags. - [Preview API] - :param str project: Project ID or project name - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='86cee25a-68ba-4ba3-9171-8ad6ffc6df93', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_tasks(self, project, release_id, environment_id, attempt_id=None): - """GetTasks. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int attempt_id: - :rtype: [ReleaseTask] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - query_parameters = {} - if attempt_id is not None: - query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') - response = self._send(http_method='GET', - location_id='36b276e0-3c70-4320-a63c-1a2e1466a0d1', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) - - def get_tasks_for_task_group(self, project, release_id, environment_id, release_deploy_phase_id): - """GetTasksForTaskGroup. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int release_deploy_phase_id: - :rtype: [ReleaseTask] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if release_deploy_phase_id is not None: - route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') - response = self._send(http_method='GET', - location_id='4259191d-4b0a-4409-9fb3-09f22ab9bc47', - version='4.0-preview.2', - route_values=route_values) - return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) - - def get_artifact_type_definitions(self, project): - """GetArtifactTypeDefinitions. - [Preview API] - :param str project: Project ID or project name - :rtype: [ArtifactTypeDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='8efc2a3c-1fc8-4f6d-9822-75e98cecb48f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ArtifactTypeDefinition]', self._unwrap_collection(response)) - - def get_artifact_versions(self, project, release_definition_id): - """GetArtifactVersions. - [Preview API] - :param str project: Project ID or project name - :param int release_definition_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if release_definition_id is not None: - query_parameters['releaseDefinitionId'] = self._serialize.query('release_definition_id', release_definition_id, 'int') - response = self._send(http_method='GET', - location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ArtifactVersionQueryResult', response) - - def get_artifact_versions_for_sources(self, artifacts, project): - """GetArtifactVersionsForSources. - [Preview API] - :param [Artifact] artifacts: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(artifacts, '[Artifact]') - response = self._send(http_method='POST', - location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ArtifactVersionQueryResult', response) - - def get_release_work_items_refs(self, project, release_id, base_release_id=None, top=None): - """GetReleaseWorkItemsRefs. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int base_release_id: - :param int top: - :rtype: [ReleaseWorkItemRef] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if base_release_id is not None: - query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='4f165cc0-875c-4768-b148-f12f78769fab', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseWorkItemRef]', self._unwrap_collection(response)) - diff --git a/vsts/vsts/release/v4_1/__init__.py b/vsts/vsts/release/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/release/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/release/v4_1/models/__init__.py b/vsts/vsts/release/v4_1/models/__init__.py deleted file mode 100644 index 3e374145..00000000 --- a/vsts/vsts/release/v4_1/models/__init__.py +++ /dev/null @@ -1,189 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .agent_artifact_definition import AgentArtifactDefinition -from .approval_options import ApprovalOptions -from .artifact import Artifact -from .artifact_metadata import ArtifactMetadata -from .artifact_source_reference import ArtifactSourceReference -from .artifact_type_definition import ArtifactTypeDefinition -from .artifact_version import ArtifactVersion -from .artifact_version_query_result import ArtifactVersionQueryResult -from .authorization_header import AuthorizationHeader -from .auto_trigger_issue import AutoTriggerIssue -from .build_version import BuildVersion -from .change import Change -from .condition import Condition -from .configuration_variable_value import ConfigurationVariableValue -from .data_source_binding_base import DataSourceBindingBase -from .definition_environment_reference import DefinitionEnvironmentReference -from .deployment import Deployment -from .deployment_attempt import DeploymentAttempt -from .deployment_job import DeploymentJob -from .deployment_query_parameters import DeploymentQueryParameters -from .email_recipients import EmailRecipients -from .environment_execution_policy import EnvironmentExecutionPolicy -from .environment_options import EnvironmentOptions -from .environment_retention_policy import EnvironmentRetentionPolicy -from .favorite_item import FavoriteItem -from .folder import Folder -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .input_descriptor import InputDescriptor -from .input_validation import InputValidation -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .input_values_query import InputValuesQuery -from .issue import Issue -from .mail_message import MailMessage -from .manual_intervention import ManualIntervention -from .manual_intervention_update_metadata import ManualInterventionUpdateMetadata -from .metric import Metric -from .pipeline_process import PipelineProcess -from .process_parameters import ProcessParameters -from .project_reference import ProjectReference -from .queued_release_data import QueuedReleaseData -from .reference_links import ReferenceLinks -from .release import Release -from .release_approval import ReleaseApproval -from .release_approval_history import ReleaseApprovalHistory -from .release_condition import ReleaseCondition -from .release_definition import ReleaseDefinition -from .release_definition_approvals import ReleaseDefinitionApprovals -from .release_definition_approval_step import ReleaseDefinitionApprovalStep -from .release_definition_deploy_step import ReleaseDefinitionDeployStep -from .release_definition_environment import ReleaseDefinitionEnvironment -from .release_definition_environment_step import ReleaseDefinitionEnvironmentStep -from .release_definition_environment_summary import ReleaseDefinitionEnvironmentSummary -from .release_definition_environment_template import ReleaseDefinitionEnvironmentTemplate -from .release_definition_gate import ReleaseDefinitionGate -from .release_definition_gates_options import ReleaseDefinitionGatesOptions -from .release_definition_gates_step import ReleaseDefinitionGatesStep -from .release_definition_revision import ReleaseDefinitionRevision -from .release_definition_shallow_reference import ReleaseDefinitionShallowReference -from .release_definition_summary import ReleaseDefinitionSummary -from .release_definition_undelete_parameter import ReleaseDefinitionUndeleteParameter -from .release_deploy_phase import ReleaseDeployPhase -from .release_environment import ReleaseEnvironment -from .release_environment_shallow_reference import ReleaseEnvironmentShallowReference -from .release_environment_update_metadata import ReleaseEnvironmentUpdateMetadata -from .release_gates import ReleaseGates -from .release_reference import ReleaseReference -from .release_revision import ReleaseRevision -from .release_schedule import ReleaseSchedule -from .release_settings import ReleaseSettings -from .release_shallow_reference import ReleaseShallowReference -from .release_start_metadata import ReleaseStartMetadata -from .release_task import ReleaseTask -from .release_task_attachment import ReleaseTaskAttachment -from .release_update_metadata import ReleaseUpdateMetadata -from .release_work_item_ref import ReleaseWorkItemRef -from .retention_policy import RetentionPolicy -from .retention_settings import RetentionSettings -from .summary_mail_section import SummaryMailSection -from .task_input_definition_base import TaskInputDefinitionBase -from .task_input_validation import TaskInputValidation -from .task_source_definition_base import TaskSourceDefinitionBase -from .variable_group import VariableGroup -from .variable_group_provider_data import VariableGroupProviderData -from .variable_value import VariableValue -from .workflow_task import WorkflowTask -from .workflow_task_reference import WorkflowTaskReference - -__all__ = [ - 'AgentArtifactDefinition', - 'ApprovalOptions', - 'Artifact', - 'ArtifactMetadata', - 'ArtifactSourceReference', - 'ArtifactTypeDefinition', - 'ArtifactVersion', - 'ArtifactVersionQueryResult', - 'AuthorizationHeader', - 'AutoTriggerIssue', - 'BuildVersion', - 'Change', - 'Condition', - 'ConfigurationVariableValue', - 'DataSourceBindingBase', - 'DefinitionEnvironmentReference', - 'Deployment', - 'DeploymentAttempt', - 'DeploymentJob', - 'DeploymentQueryParameters', - 'EmailRecipients', - 'EnvironmentExecutionPolicy', - 'EnvironmentOptions', - 'EnvironmentRetentionPolicy', - 'FavoriteItem', - 'Folder', - 'GraphSubjectBase', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Issue', - 'MailMessage', - 'ManualIntervention', - 'ManualInterventionUpdateMetadata', - 'Metric', - 'PipelineProcess', - 'ProcessParameters', - 'ProjectReference', - 'QueuedReleaseData', - 'ReferenceLinks', - 'Release', - 'ReleaseApproval', - 'ReleaseApprovalHistory', - 'ReleaseCondition', - 'ReleaseDefinition', - 'ReleaseDefinitionApprovals', - 'ReleaseDefinitionApprovalStep', - 'ReleaseDefinitionDeployStep', - 'ReleaseDefinitionEnvironment', - 'ReleaseDefinitionEnvironmentStep', - 'ReleaseDefinitionEnvironmentSummary', - 'ReleaseDefinitionEnvironmentTemplate', - 'ReleaseDefinitionGate', - 'ReleaseDefinitionGatesOptions', - 'ReleaseDefinitionGatesStep', - 'ReleaseDefinitionRevision', - 'ReleaseDefinitionShallowReference', - 'ReleaseDefinitionSummary', - 'ReleaseDefinitionUndeleteParameter', - 'ReleaseDeployPhase', - 'ReleaseEnvironment', - 'ReleaseEnvironmentShallowReference', - 'ReleaseEnvironmentUpdateMetadata', - 'ReleaseGates', - 'ReleaseReference', - 'ReleaseRevision', - 'ReleaseSchedule', - 'ReleaseSettings', - 'ReleaseShallowReference', - 'ReleaseStartMetadata', - 'ReleaseTask', - 'ReleaseTaskAttachment', - 'ReleaseUpdateMetadata', - 'ReleaseWorkItemRef', - 'RetentionPolicy', - 'RetentionSettings', - 'SummaryMailSection', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskSourceDefinitionBase', - 'VariableGroup', - 'VariableGroupProviderData', - 'VariableValue', - 'WorkflowTask', - 'WorkflowTaskReference', -] diff --git a/vsts/vsts/release/v4_1/models/agent_artifact_definition.py b/vsts/vsts/release/v4_1/models/agent_artifact_definition.py deleted file mode 100644 index 8e2ec362..00000000 --- a/vsts/vsts/release/v4_1/models/agent_artifact_definition.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentArtifactDefinition(Model): - """AgentArtifactDefinition. - - :param alias: - :type alias: str - :param artifact_type: - :type artifact_type: object - :param details: - :type details: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'artifact_type': {'key': 'artifactType', 'type': 'object'}, - 'details': {'key': 'details', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): - super(AgentArtifactDefinition, self).__init__() - self.alias = alias - self.artifact_type = artifact_type - self.details = details - self.name = name - self.version = version diff --git a/vsts/vsts/release/v4_1/models/approval_options.py b/vsts/vsts/release/v4_1/models/approval_options.py deleted file mode 100644 index 4a0ad1b8..00000000 --- a/vsts/vsts/release/v4_1/models/approval_options.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ApprovalOptions(Model): - """ApprovalOptions. - - :param auto_triggered_and_previous_environment_approved_can_be_skipped: - :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool - :param enforce_identity_revalidation: - :type enforce_identity_revalidation: bool - :param execution_order: - :type execution_order: object - :param release_creator_can_be_approver: - :type release_creator_can_be_approver: bool - :param required_approver_count: - :type required_approver_count: int - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, - 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, - 'execution_order': {'key': 'executionOrder', 'type': 'object'}, - 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, - 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, execution_order=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): - super(ApprovalOptions, self).__init__() - self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped - self.enforce_identity_revalidation = enforce_identity_revalidation - self.execution_order = execution_order - self.release_creator_can_be_approver = release_creator_can_be_approver - self.required_approver_count = required_approver_count - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_1/models/artifact.py b/vsts/vsts/release/v4_1/models/artifact.py deleted file mode 100644 index 4bdf46a5..00000000 --- a/vsts/vsts/release/v4_1/models/artifact.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Artifact(Model): - """Artifact. - - :param alias: Gets or sets alias. - :type alias: str - :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} - :type definition_reference: dict - :param is_primary: Gets or sets as artifact is primary or not. - :type is_primary: bool - :param source_id: - :type source_id: str - :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. - :type type: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, - 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): - super(Artifact, self).__init__() - self.alias = alias - self.definition_reference = definition_reference - self.is_primary = is_primary - self.source_id = source_id - self.type = type diff --git a/vsts/vsts/release/v4_1/models/artifact_metadata.py b/vsts/vsts/release/v4_1/models/artifact_metadata.py deleted file mode 100644 index 1acf2b3e..00000000 --- a/vsts/vsts/release/v4_1/models/artifact_metadata.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactMetadata(Model): - """ArtifactMetadata. - - :param alias: Sets alias of artifact. - :type alias: str - :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. - :type instance_reference: :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} - } - - def __init__(self, alias=None, instance_reference=None): - super(ArtifactMetadata, self).__init__() - self.alias = alias - self.instance_reference = instance_reference diff --git a/vsts/vsts/release/v4_1/models/artifact_source_reference.py b/vsts/vsts/release/v4_1/models/artifact_source_reference.py deleted file mode 100644 index 7f1fefd8..00000000 --- a/vsts/vsts/release/v4_1/models/artifact_source_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactSourceReference(Model): - """ArtifactSourceReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ArtifactSourceReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/release/v4_1/models/artifact_type_definition.py b/vsts/vsts/release/v4_1/models/artifact_type_definition.py deleted file mode 100644 index c5afc1c1..00000000 --- a/vsts/vsts/release/v4_1/models/artifact_type_definition.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactTypeDefinition(Model): - """ArtifactTypeDefinition. - - :param display_name: - :type display_name: str - :param endpoint_type_id: - :type endpoint_type_id: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: - :type name: str - :param unique_source_identifier: - :type unique_source_identifier: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'endpoint_type_id': {'key': 'endpointTypeId', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} - } - - def __init__(self, display_name=None, endpoint_type_id=None, input_descriptors=None, name=None, unique_source_identifier=None): - super(ArtifactTypeDefinition, self).__init__() - self.display_name = display_name - self.endpoint_type_id = endpoint_type_id - self.input_descriptors = input_descriptors - self.name = name - self.unique_source_identifier = unique_source_identifier diff --git a/vsts/vsts/release/v4_1/models/artifact_version.py b/vsts/vsts/release/v4_1/models/artifact_version.py deleted file mode 100644 index 463e08b4..00000000 --- a/vsts/vsts/release/v4_1/models/artifact_version.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactVersion(Model): - """ArtifactVersion. - - :param alias: - :type alias: str - :param default_version: - :type default_version: :class:`BuildVersion ` - :param error_message: - :type error_message: str - :param source_id: - :type source_id: str - :param versions: - :type versions: list of :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[BuildVersion]'} - } - - def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): - super(ArtifactVersion, self).__init__() - self.alias = alias - self.default_version = default_version - self.error_message = error_message - self.source_id = source_id - self.versions = versions diff --git a/vsts/vsts/release/v4_1/models/artifact_version_query_result.py b/vsts/vsts/release/v4_1/models/artifact_version_query_result.py deleted file mode 100644 index 8be98135..00000000 --- a/vsts/vsts/release/v4_1/models/artifact_version_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactVersionQueryResult(Model): - """ArtifactVersionQueryResult. - - :param artifact_versions: - :type artifact_versions: list of :class:`ArtifactVersion ` - """ - - _attribute_map = { - 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} - } - - def __init__(self, artifact_versions=None): - super(ArtifactVersionQueryResult, self).__init__() - self.artifact_versions = artifact_versions diff --git a/vsts/vsts/release/v4_1/models/authorization_header.py b/vsts/vsts/release/v4_1/models/authorization_header.py deleted file mode 100644 index 015e6775..00000000 --- a/vsts/vsts/release/v4_1/models/authorization_header.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthorizationHeader(Model): - """AuthorizationHeader. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(AuthorizationHeader, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/release/v4_1/models/auto_trigger_issue.py b/vsts/vsts/release/v4_1/models/auto_trigger_issue.py deleted file mode 100644 index d564858d..00000000 --- a/vsts/vsts/release/v4_1/models/auto_trigger_issue.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AutoTriggerIssue(Model): - """AutoTriggerIssue. - - :param issue: - :type issue: :class:`Issue ` - :param issue_source: - :type issue_source: object - :param project: - :type project: :class:`ProjectReference ` - :param release_definition_reference: - :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` - :param release_trigger_type: - :type release_trigger_type: object - """ - - _attribute_map = { - 'issue': {'key': 'issue', 'type': 'Issue'}, - 'issue_source': {'key': 'issueSource', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} - } - - def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): - super(AutoTriggerIssue, self).__init__() - self.issue = issue - self.issue_source = issue_source - self.project = project - self.release_definition_reference = release_definition_reference - self.release_trigger_type = release_trigger_type diff --git a/vsts/vsts/release/v4_1/models/build_version.py b/vsts/vsts/release/v4_1/models/build_version.py deleted file mode 100644 index 945389d1..00000000 --- a/vsts/vsts/release/v4_1/models/build_version.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildVersion(Model): - """BuildVersion. - - :param commit_message: - :type commit_message: str - :param id: - :type id: str - :param name: - :type name: str - :param source_branch: - :type source_branch: str - :param source_pull_request_id: PullRequestId or Commit Id for the Pull Request for which the release will publish status - :type source_pull_request_id: str - :param source_repository_id: - :type source_repository_id: str - :param source_repository_type: - :type source_repository_type: str - :param source_version: - :type source_version: str - """ - - _attribute_map = { - 'commit_message': {'key': 'commitMessage', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, - 'source_pull_request_id': {'key': 'sourcePullRequestId', 'type': 'str'}, - 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, - 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'} - } - - def __init__(self, commit_message=None, id=None, name=None, source_branch=None, source_pull_request_id=None, source_repository_id=None, source_repository_type=None, source_version=None): - super(BuildVersion, self).__init__() - self.commit_message = commit_message - self.id = id - self.name = name - self.source_branch = source_branch - self.source_pull_request_id = source_pull_request_id - self.source_repository_id = source_repository_id - self.source_repository_type = source_repository_type - self.source_version = source_version diff --git a/vsts/vsts/release/v4_1/models/change.py b/vsts/vsts/release/v4_1/models/change.py deleted file mode 100644 index fbe01e1b..00000000 --- a/vsts/vsts/release/v4_1/models/change.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param author: The author of the change. - :type author: :class:`IdentityRef ` - :param change_type: The type of change. "commit", "changeset", etc. - :type change_type: str - :param display_uri: The location of a user-friendly representation of the resource. - :type display_uri: str - :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. - :type id: str - :param location: The location of the full representation of the resource. - :type location: str - :param message: A description of the change. This might be a commit message or changeset description. - :type message: str - :param pusher: The person or process that pushed the change. - :type pusher: str - :param timestamp: A timestamp for the change. - :type timestamp: datetime - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'display_uri': {'key': 'displayUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'pusher': {'key': 'pusher', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} - } - - def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, pusher=None, timestamp=None): - super(Change, self).__init__() - self.author = author - self.change_type = change_type - self.display_uri = display_uri - self.id = id - self.location = location - self.message = message - self.pusher = pusher - self.timestamp = timestamp diff --git a/vsts/vsts/release/v4_1/models/condition.py b/vsts/vsts/release/v4_1/models/condition.py deleted file mode 100644 index 93cc3057..00000000 --- a/vsts/vsts/release/v4_1/models/condition.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Condition(Model): - """Condition. - - :param condition_type: Gets or sets the condition type. - :type condition_type: object - :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. - :type name: str - :param value: Gets or set value of the condition. - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, name=None, value=None): - super(Condition, self).__init__() - self.condition_type = condition_type - self.name = name - self.value = value diff --git a/vsts/vsts/release/v4_1/models/configuration_variable_value.py b/vsts/vsts/release/v4_1/models/configuration_variable_value.py deleted file mode 100644 index 4db7217a..00000000 --- a/vsts/vsts/release/v4_1/models/configuration_variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ConfigurationVariableValue(Model): - """ConfigurationVariableValue. - - :param is_secret: Gets or sets as variable is secret or not. - :type is_secret: bool - :param value: Gets or sets value of the configuration variable. - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(ConfigurationVariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/release/v4_1/models/data_source_binding_base.py b/vsts/vsts/release/v4_1/models/data_source_binding_base.py deleted file mode 100644 index 04638445..00000000 --- a/vsts/vsts/release/v4_1/models/data_source_binding_base.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: Gets or sets the name of the data source. - :type data_source_name: str - :param endpoint_id: Gets or sets the endpoint Id. - :type endpoint_id: str - :param endpoint_url: Gets or sets the url of the service endpoint. - :type endpoint_url: str - :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets or sets the parameters for the data source. - :type parameters: dict - :param result_selector: Gets or sets the result selector. - :type result_selector: str - :param result_template: Gets or sets the result template. - :type result_template: str - :param target: Gets or sets the target of the data source. - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.headers = headers - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target diff --git a/vsts/vsts/release/v4_1/models/definition_environment_reference.py b/vsts/vsts/release/v4_1/models/definition_environment_reference.py deleted file mode 100644 index 06c56140..00000000 --- a/vsts/vsts/release/v4_1/models/definition_environment_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DefinitionEnvironmentReference(Model): - """DefinitionEnvironmentReference. - - :param definition_environment_id: - :type definition_environment_id: int - :param definition_environment_name: - :type definition_environment_name: str - :param release_definition_id: - :type release_definition_id: int - :param release_definition_name: - :type release_definition_name: str - """ - - _attribute_map = { - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, - 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, - 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} - } - - def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): - super(DefinitionEnvironmentReference, self).__init__() - self.definition_environment_id = definition_environment_id - self.definition_environment_name = definition_environment_name - self.release_definition_id = release_definition_id - self.release_definition_name = release_definition_name diff --git a/vsts/vsts/release/v4_1/models/deployment.py b/vsts/vsts/release/v4_1/models/deployment.py deleted file mode 100644 index 8cb4a228..00000000 --- a/vsts/vsts/release/v4_1/models/deployment.py +++ /dev/null @@ -1,105 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Deployment(Model): - """Deployment. - - :param _links: Gets links to access the deployment. - :type _links: :class:`ReferenceLinks ` - :param attempt: Gets attempt number. - :type attempt: int - :param completed_on: Gets the date on which deployment is complete. - :type completed_on: datetime - :param conditions: Gets the list of condition associated with deployment. - :type conditions: list of :class:`Condition ` - :param definition_environment_id: Gets release definition environment id. - :type definition_environment_id: int - :param deployment_status: Gets status of the deployment. - :type deployment_status: object - :param id: Gets the unique identifier for deployment. - :type id: int - :param last_modified_by: Gets the identity who last modified the deployment. - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: Gets the date on which deployment is last modified. - :type last_modified_on: datetime - :param operation_status: Gets operation status of deployment. - :type operation_status: object - :param post_deploy_approvals: Gets list of PostDeployApprovals. - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_deploy_approvals: Gets list of PreDeployApprovals. - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param queued_on: Gets the date on which deployment is queued. - :type queued_on: datetime - :param reason: Gets reason of deployment. - :type reason: object - :param release: Gets the reference of release. - :type release: :class:`ReleaseReference ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which the deployment is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which the deployment is associated. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param requested_by: Gets the identity who requested. - :type requested_by: :class:`IdentityRef ` - :param requested_for: Gets the identity for whom deployment is requested. - :type requested_for: :class:`IdentityRef ` - :param scheduled_deployment_time: Gets the date on which deployment is scheduled. - :type scheduled_deployment_time: datetime - :param started_on: Gets the date on which deployment is started. - :type started_on: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'completed_on': {'key': 'completedOn', 'type': 'iso-8601'}, - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, attempt=None, completed_on=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): - super(Deployment, self).__init__() - self._links = _links - self.attempt = attempt - self.completed_on = completed_on - self.conditions = conditions - self.definition_environment_id = definition_environment_id - self.deployment_status = deployment_status - self.id = id - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.post_deploy_approvals = post_deploy_approvals - self.pre_deploy_approvals = pre_deploy_approvals - self.queued_on = queued_on - self.reason = reason - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.requested_by = requested_by - self.requested_for = requested_for - self.scheduled_deployment_time = scheduled_deployment_time - self.started_on = started_on diff --git a/vsts/vsts/release/v4_1/models/deployment_attempt.py b/vsts/vsts/release/v4_1/models/deployment_attempt.py deleted file mode 100644 index 9f2bf5e1..00000000 --- a/vsts/vsts/release/v4_1/models/deployment_attempt.py +++ /dev/null @@ -1,101 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentAttempt(Model): - """DeploymentAttempt. - - :param attempt: - :type attempt: int - :param deployment_id: - :type deployment_id: int - :param error_log: Error log to show any unexpected error that occurred during executing deploy step - :type error_log: str - :param has_started: Specifies whether deployment has started or not - :type has_started: bool - :param id: - :type id: int - :param issues: All the issues related to the deployment - :type issues: list of :class:`Issue ` - :param job: - :type job: :class:`ReleaseTask ` - :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: - :type last_modified_on: datetime - :param operation_status: - :type operation_status: object - :param post_deployment_gates: - :type post_deployment_gates: :class:`ReleaseGates ` - :param pre_deployment_gates: - :type pre_deployment_gates: :class:`ReleaseGates ` - :param queued_on: - :type queued_on: datetime - :param reason: - :type reason: object - :param release_deploy_phases: - :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` - :param requested_by: - :type requested_by: :class:`IdentityRef ` - :param requested_for: - :type requested_for: :class:`IdentityRef ` - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'has_started': {'key': 'hasStarted', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseGates'}, - 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseGates'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, issues=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): - super(DeploymentAttempt, self).__init__() - self.attempt = attempt - self.deployment_id = deployment_id - self.error_log = error_log - self.has_started = has_started - self.id = id - self.issues = issues - self.job = job - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.post_deployment_gates = post_deployment_gates - self.pre_deployment_gates = pre_deployment_gates - self.queued_on = queued_on - self.reason = reason - self.release_deploy_phases = release_deploy_phases - self.requested_by = requested_by - self.requested_for = requested_for - self.run_plan_id = run_plan_id - self.status = status - self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/deployment_job.py b/vsts/vsts/release/v4_1/models/deployment_job.py deleted file mode 100644 index 8bd40749..00000000 --- a/vsts/vsts/release/v4_1/models/deployment_job.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentJob(Model): - """DeploymentJob. - - :param job: - :type job: :class:`ReleaseTask ` - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, job=None, tasks=None): - super(DeploymentJob, self).__init__() - self.job = job - self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/deployment_query_parameters.py b/vsts/vsts/release/v4_1/models/deployment_query_parameters.py deleted file mode 100644 index bc54c0ec..00000000 --- a/vsts/vsts/release/v4_1/models/deployment_query_parameters.py +++ /dev/null @@ -1,85 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentQueryParameters(Model): - """DeploymentQueryParameters. - - :param artifact_source_id: - :type artifact_source_id: str - :param artifact_type_id: - :type artifact_type_id: str - :param artifact_versions: - :type artifact_versions: list of str - :param deployments_per_environment: - :type deployments_per_environment: int - :param deployment_status: - :type deployment_status: object - :param environments: - :type environments: list of :class:`DefinitionEnvironmentReference ` - :param expands: - :type expands: object - :param is_deleted: - :type is_deleted: bool - :param latest_deployments_only: - :type latest_deployments_only: bool - :param max_deployments_per_environment: - :type max_deployments_per_environment: int - :param max_modified_time: - :type max_modified_time: datetime - :param min_modified_time: - :type min_modified_time: datetime - :param operation_status: - :type operation_status: object - :param query_order: - :type query_order: object - :param query_type: - :type query_type: object - :param source_branch: - :type source_branch: str - """ - - _attribute_map = { - 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, - 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, - 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, - 'deployments_per_environment': {'key': 'deploymentsPerEnvironment', 'type': 'int'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, - 'expands': {'key': 'expands', 'type': 'object'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, - 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, - 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, - 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'query_order': {'key': 'queryOrder', 'type': 'object'}, - 'query_type': {'key': 'queryType', 'type': 'object'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'} - } - - def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployments_per_environment=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None, query_type=None, source_branch=None): - super(DeploymentQueryParameters, self).__init__() - self.artifact_source_id = artifact_source_id - self.artifact_type_id = artifact_type_id - self.artifact_versions = artifact_versions - self.deployments_per_environment = deployments_per_environment - self.deployment_status = deployment_status - self.environments = environments - self.expands = expands - self.is_deleted = is_deleted - self.latest_deployments_only = latest_deployments_only - self.max_deployments_per_environment = max_deployments_per_environment - self.max_modified_time = max_modified_time - self.min_modified_time = min_modified_time - self.operation_status = operation_status - self.query_order = query_order - self.query_type = query_type - self.source_branch = source_branch diff --git a/vsts/vsts/release/v4_1/models/email_recipients.py b/vsts/vsts/release/v4_1/models/email_recipients.py deleted file mode 100644 index 349b8915..00000000 --- a/vsts/vsts/release/v4_1/models/email_recipients.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EmailRecipients(Model): - """EmailRecipients. - - :param email_addresses: - :type email_addresses: list of str - :param tfs_ids: - :type tfs_ids: list of str - """ - - _attribute_map = { - 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, - 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} - } - - def __init__(self, email_addresses=None, tfs_ids=None): - super(EmailRecipients, self).__init__() - self.email_addresses = email_addresses - self.tfs_ids = tfs_ids diff --git a/vsts/vsts/release/v4_1/models/environment_execution_policy.py b/vsts/vsts/release/v4_1/models/environment_execution_policy.py deleted file mode 100644 index 5085c836..00000000 --- a/vsts/vsts/release/v4_1/models/environment_execution_policy.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EnvironmentExecutionPolicy(Model): - """EnvironmentExecutionPolicy. - - :param concurrency_count: This policy decides, how many environments would be with Environment Runner. - :type concurrency_count: int - :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. - :type queue_depth_count: int - """ - - _attribute_map = { - 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, - 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} - } - - def __init__(self, concurrency_count=None, queue_depth_count=None): - super(EnvironmentExecutionPolicy, self).__init__() - self.concurrency_count = concurrency_count - self.queue_depth_count = queue_depth_count diff --git a/vsts/vsts/release/v4_1/models/environment_options.py b/vsts/vsts/release/v4_1/models/environment_options.py deleted file mode 100644 index 497bf25d..00000000 --- a/vsts/vsts/release/v4_1/models/environment_options.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EnvironmentOptions(Model): - """EnvironmentOptions. - - :param auto_link_work_items: - :type auto_link_work_items: bool - :param badge_enabled: - :type badge_enabled: bool - :param email_notification_type: - :type email_notification_type: str - :param email_recipients: - :type email_recipients: str - :param enable_access_token: - :type enable_access_token: bool - :param publish_deployment_status: - :type publish_deployment_status: bool - :param skip_artifacts_download: - :type skip_artifacts_download: bool - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'auto_link_work_items': {'key': 'autoLinkWorkItems', 'type': 'bool'}, - 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, - 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, - 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, - 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, - 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, - 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, auto_link_work_items=None, badge_enabled=None, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): - super(EnvironmentOptions, self).__init__() - self.auto_link_work_items = auto_link_work_items - self.badge_enabled = badge_enabled - self.email_notification_type = email_notification_type - self.email_recipients = email_recipients - self.enable_access_token = enable_access_token - self.publish_deployment_status = publish_deployment_status - self.skip_artifacts_download = skip_artifacts_download - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/release/v4_1/models/environment_retention_policy.py b/vsts/vsts/release/v4_1/models/environment_retention_policy.py deleted file mode 100644 index a391f806..00000000 --- a/vsts/vsts/release/v4_1/models/environment_retention_policy.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EnvironmentRetentionPolicy(Model): - """EnvironmentRetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - :param releases_to_keep: - :type releases_to_keep: int - :param retain_build: - :type retain_build: bool - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, - 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, - 'retain_build': {'key': 'retainBuild', 'type': 'bool'} - } - - def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): - super(EnvironmentRetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep - self.releases_to_keep = releases_to_keep - self.retain_build = retain_build diff --git a/vsts/vsts/release/v4_1/models/favorite_item.py b/vsts/vsts/release/v4_1/models/favorite_item.py deleted file mode 100644 index 94bdd0be..00000000 --- a/vsts/vsts/release/v4_1/models/favorite_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FavoriteItem(Model): - """FavoriteItem. - - :param data: Application specific data for the entry - :type data: str - :param id: Unique Id of the the entry - :type id: str - :param name: Display text for favorite entry - :type name: str - :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder - :type type: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, data=None, id=None, name=None, type=None): - super(FavoriteItem, self).__init__() - self.data = data - self.id = id - self.name = name - self.type = type diff --git a/vsts/vsts/release/v4_1/models/folder.py b/vsts/vsts/release/v4_1/models/folder.py deleted file mode 100644 index 46d77b5f..00000000 --- a/vsts/vsts/release/v4_1/models/folder.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Folder(Model): - """Folder. - - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: - :type created_on: datetime - :param description: - :type description: str - :param last_changed_by: - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: - :type last_changed_date: datetime - :param path: - :type path: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): - super(Folder, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.path = path diff --git a/vsts/vsts/release/v4_1/models/graph_subject_base.py b/vsts/vsts/release/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/release/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/release/v4_1/models/identity_ref.py b/vsts/vsts/release/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/release/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/release/v4_1/models/input_descriptor.py b/vsts/vsts/release/v4_1/models/input_descriptor.py deleted file mode 100644 index da334836..00000000 --- a/vsts/vsts/release/v4_1/models/input_descriptor.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values diff --git a/vsts/vsts/release/v4_1/models/input_validation.py b/vsts/vsts/release/v4_1/models/input_validation.py deleted file mode 100644 index f2f1a434..00000000 --- a/vsts/vsts/release/v4_1/models/input_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/release/v4_1/models/input_value.py b/vsts/vsts/release/v4_1/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/release/v4_1/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/release/v4_1/models/input_values.py b/vsts/vsts/release/v4_1/models/input_values.py deleted file mode 100644 index 69472f8d..00000000 --- a/vsts/vsts/release/v4_1/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/release/v4_1/models/input_values_error.py b/vsts/vsts/release/v4_1/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/release/v4_1/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/release/v4_1/models/input_values_query.py b/vsts/vsts/release/v4_1/models/input_values_query.py deleted file mode 100644 index 97687a61..00000000 --- a/vsts/vsts/release/v4_1/models/input_values_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource diff --git a/vsts/vsts/release/v4_1/models/issue.py b/vsts/vsts/release/v4_1/models/issue.py deleted file mode 100644 index 0e31522e..00000000 --- a/vsts/vsts/release/v4_1/models/issue.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Issue(Model): - """Issue. - - :param issue_type: - :type issue_type: str - :param message: - :type message: str - """ - - _attribute_map = { - 'issue_type': {'key': 'issueType', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, issue_type=None, message=None): - super(Issue, self).__init__() - self.issue_type = issue_type - self.message = message diff --git a/vsts/vsts/release/v4_1/models/mail_message.py b/vsts/vsts/release/v4_1/models/mail_message.py deleted file mode 100644 index 2ea90a37..00000000 --- a/vsts/vsts/release/v4_1/models/mail_message.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MailMessage(Model): - """MailMessage. - - :param body: - :type body: str - :param cC: - :type cC: :class:`EmailRecipients ` - :param in_reply_to: - :type in_reply_to: str - :param message_id: - :type message_id: str - :param reply_by: - :type reply_by: datetime - :param reply_to: - :type reply_to: :class:`EmailRecipients ` - :param sections: - :type sections: list of MailSectionType - :param sender_type: - :type sender_type: object - :param subject: - :type subject: str - :param to: - :type to: :class:`EmailRecipients ` - """ - - _attribute_map = { - 'body': {'key': 'body', 'type': 'str'}, - 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, - 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'str'}, - 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, - 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, - 'sections': {'key': 'sections', 'type': '[object]'}, - 'sender_type': {'key': 'senderType', 'type': 'object'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'to': {'key': 'to', 'type': 'EmailRecipients'} - } - - def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): - super(MailMessage, self).__init__() - self.body = body - self.cC = cC - self.in_reply_to = in_reply_to - self.message_id = message_id - self.reply_by = reply_by - self.reply_to = reply_to - self.sections = sections - self.sender_type = sender_type - self.subject = subject - self.to = to diff --git a/vsts/vsts/release/v4_1/models/manual_intervention.py b/vsts/vsts/release/v4_1/models/manual_intervention.py deleted file mode 100644 index baaf0124..00000000 --- a/vsts/vsts/release/v4_1/models/manual_intervention.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ManualIntervention(Model): - """ManualIntervention. - - :param approver: Gets or sets the identity who should approve. - :type approver: :class:`IdentityRef ` - :param comments: Gets or sets comments for approval. - :type comments: str - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param id: Gets the unique identifier for manual intervention. - :type id: int - :param instructions: Gets or sets instructions for approval. - :type instructions: str - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets the name. - :type name: str - :param release: Gets releaseReference for manual intervention. - :type release: :class:`ReleaseShallowReference ` - :param release_definition: Gets releaseDefinitionReference for manual intervention. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference for manual intervention. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param status: Gets or sets the status of the manual intervention. - :type status: object - :param task_instance_id: Get task instance identifier. - :type task_instance_id: str - :param url: Gets url to access the manual intervention. - :type url: str - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'instructions': {'key': 'instructions', 'type': 'str'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): - super(ManualIntervention, self).__init__() - self.approver = approver - self.comments = comments - self.created_on = created_on - self.id = id - self.instructions = instructions - self.modified_on = modified_on - self.name = name - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.status = status - self.task_instance_id = task_instance_id - self.url = url diff --git a/vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py b/vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py deleted file mode 100644 index 7e5f445f..00000000 --- a/vsts/vsts/release/v4_1/models/manual_intervention_update_metadata.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ManualInterventionUpdateMetadata(Model): - """ManualInterventionUpdateMetadata. - - :param comment: Sets the comment for manual intervention update. - :type comment: str - :param status: Sets the status of the manual intervention. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, status=None): - super(ManualInterventionUpdateMetadata, self).__init__() - self.comment = comment - self.status = status diff --git a/vsts/vsts/release/v4_1/models/metric.py b/vsts/vsts/release/v4_1/models/metric.py deleted file mode 100644 index bb95c93e..00000000 --- a/vsts/vsts/release/v4_1/models/metric.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Metric(Model): - """Metric. - - :param name: - :type name: str - :param value: - :type value: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'} - } - - def __init__(self, name=None, value=None): - super(Metric, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/release/v4_1/models/pipeline_process.py b/vsts/vsts/release/v4_1/models/pipeline_process.py deleted file mode 100644 index 5614dbad..00000000 --- a/vsts/vsts/release/v4_1/models/pipeline_process.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PipelineProcess(Model): - """PipelineProcess. - - :param type: - :type type: object - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, type=None): - super(PipelineProcess, self).__init__() - self.type = type diff --git a/vsts/vsts/release/v4_1/models/process_parameters.py b/vsts/vsts/release/v4_1/models/process_parameters.py deleted file mode 100644 index 657d9485..00000000 --- a/vsts/vsts/release/v4_1/models/process_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessParameters(Model): - """ProcessParameters. - - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` - :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` - """ - - _attribute_map = { - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} - } - - def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): - super(ProcessParameters, self).__init__() - self.data_source_bindings = data_source_bindings - self.inputs = inputs - self.source_definitions = source_definitions diff --git a/vsts/vsts/release/v4_1/models/project_reference.py b/vsts/vsts/release/v4_1/models/project_reference.py deleted file mode 100644 index fee185de..00000000 --- a/vsts/vsts/release/v4_1/models/project_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param id: Gets the unique identifier of this field. - :type id: str - :param name: Gets name of project. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/release/v4_1/models/queued_release_data.py b/vsts/vsts/release/v4_1/models/queued_release_data.py deleted file mode 100644 index 892670ff..00000000 --- a/vsts/vsts/release/v4_1/models/queued_release_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueuedReleaseData(Model): - """QueuedReleaseData. - - :param project_id: - :type project_id: str - :param queue_position: - :type queue_position: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, project_id=None, queue_position=None, release_id=None): - super(QueuedReleaseData, self).__init__() - self.project_id = project_id - self.queue_position = queue_position - self.release_id = release_id diff --git a/vsts/vsts/release/v4_1/models/reference_links.py b/vsts/vsts/release/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/release/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/release/v4_1/models/release.py b/vsts/vsts/release/v4_1/models/release.py deleted file mode 100644 index 2776ad93..00000000 --- a/vsts/vsts/release/v4_1/models/release.py +++ /dev/null @@ -1,125 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Release(Model): - """Release. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_snapshot_revision: Gets revision number of definition snapshot. - :type definition_snapshot_revision: int - :param description: Gets or sets description of release. - :type description: str - :param environments: Gets list of environments. - :type environments: list of :class:`ReleaseEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param keep_forever: Whether to exclude the release from retention policies. - :type keep_forever: bool - :param logs_container_url: Gets logs container url. - :type logs_container_url: str - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param pool_name: Gets pool name. - :type pool_name: str - :param project_reference: Gets or sets project reference. - :type project_reference: :class:`ProjectReference ` - :param properties: - :type properties: :class:`object ` - :param reason: Gets reason of release. - :type reason: object - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_name_format: Gets release name format. - :type release_name_format: str - :param status: Gets status. - :type status: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param triggering_artifact_alias: - :type triggering_artifact_alias: str - :param url: - :type url: str - :param variable_groups: Gets the list of variable groups. - :type variable_groups: list of :class:`VariableGroup ` - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_name': {'key': 'poolName', 'type': 'str'}, - 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggering_artifact_alias': {'key': 'triggeringArtifactAlias', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, triggering_artifact_alias=None, url=None, variable_groups=None, variables=None): - super(Release, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.definition_snapshot_revision = definition_snapshot_revision - self.description = description - self.environments = environments - self.id = id - self.keep_forever = keep_forever - self.logs_container_url = logs_container_url - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.pool_name = pool_name - self.project_reference = project_reference - self.properties = properties - self.reason = reason - self.release_definition = release_definition - self.release_name_format = release_name_format - self.status = status - self.tags = tags - self.triggering_artifact_alias = triggering_artifact_alias - self.url = url - self.variable_groups = variable_groups - self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/release_approval.py b/vsts/vsts/release/v4_1/models/release_approval.py deleted file mode 100644 index b560b210..00000000 --- a/vsts/vsts/release/v4_1/models/release_approval.py +++ /dev/null @@ -1,97 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseApproval(Model): - """ReleaseApproval. - - :param approval_type: Gets or sets the type of approval. - :type approval_type: object - :param approved_by: Gets the identity who approved. - :type approved_by: :class:`IdentityRef ` - :param approver: Gets or sets the identity who should approve. - :type approver: :class:`IdentityRef ` - :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. - :type attempt: int - :param comments: Gets or sets comments for approval. - :type comments: str - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param history: Gets history which specifies all approvals associated with this approval. - :type history: list of :class:`ReleaseApprovalHistory ` - :param id: Gets the unique identifier of this field. - :type id: int - :param is_automated: Gets or sets as approval is automated or not. - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. - :type rank: int - :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param revision: Gets the revision number. - :type revision: int - :param status: Gets or sets the status of the approval. - :type status: object - :param trial_number: - :type trial_number: int - :param url: Gets url to access the approval. - :type url: str - """ - - _attribute_map = { - 'approval_type': {'key': 'approvalType', 'type': 'object'}, - 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'object'}, - 'trial_number': {'key': 'trialNumber', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): - super(ReleaseApproval, self).__init__() - self.approval_type = approval_type - self.approved_by = approved_by - self.approver = approver - self.attempt = attempt - self.comments = comments - self.created_on = created_on - self.history = history - self.id = id - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.modified_on = modified_on - self.rank = rank - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.revision = revision - self.status = status - self.trial_number = trial_number - self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_approval_history.py b/vsts/vsts/release/v4_1/models/release_approval_history.py deleted file mode 100644 index 80e2b748..00000000 --- a/vsts/vsts/release/v4_1/models/release_approval_history.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseApprovalHistory(Model): - """ReleaseApprovalHistory. - - :param approver: - :type approver: :class:`IdentityRef ` - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param comments: - :type comments: str - :param created_on: - :type created_on: datetime - :param modified_on: - :type modified_on: datetime - :param revision: - :type revision: int - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): - super(ReleaseApprovalHistory, self).__init__() - self.approver = approver - self.changed_by = changed_by - self.comments = comments - self.created_on = created_on - self.modified_on = modified_on - self.revision = revision diff --git a/vsts/vsts/release/v4_1/models/release_condition.py b/vsts/vsts/release/v4_1/models/release_condition.py deleted file mode 100644 index 899e6493..00000000 --- a/vsts/vsts/release/v4_1/models/release_condition.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .condition import Condition - - -class ReleaseCondition(Condition): - """ReleaseCondition. - - :param condition_type: Gets or sets the condition type. - :type condition_type: object - :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. - :type name: str - :param value: Gets or set value of the condition. - :type value: str - :param result: - :type result: bool - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'bool'} - } - - def __init__(self, condition_type=None, name=None, value=None, result=None): - super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) - self.result = result diff --git a/vsts/vsts/release/v4_1/models/release_definition.py b/vsts/vsts/release/v4_1/models/release_definition.py deleted file mode 100644 index 46e10e3e..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition.py +++ /dev/null @@ -1,121 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinition(Model): - """ReleaseDefinition. - - :param _links: Gets links to access the release definition. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets the description. - :type description: str - :param environments: Gets or sets the list of environments. - :type environments: list of :class:`ReleaseDefinitionEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param is_deleted: Whether release definition is deleted. - :type is_deleted: bool - :param last_release: Gets the reference of last release. - :type last_release: :class:`ReleaseReference ` - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets the name. - :type name: str - :param path: Gets or sets the path. - :type path: str - :param pipeline_process: Gets or sets pipeline process. - :type pipeline_process: :class:`PipelineProcess ` - :param properties: Gets or sets properties. - :type properties: :class:`object ` - :param release_name_format: Gets or sets the release name format. - :type release_name_format: str - :param retention_policy: - :type retention_policy: :class:`RetentionPolicy ` - :param revision: Gets the revision number. - :type revision: int - :param source: Gets or sets source of release definition. - :type source: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param triggers: Gets or sets the list of triggers. - :type triggers: list of :class:`object ` - :param url: Gets url to access the release definition. - :type url: str - :param variable_groups: Gets or sets the list of variable groups. - :type variable_groups: list of int - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'pipeline_process': {'key': 'pipelineProcess', 'type': 'PipelineProcess'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, pipeline_process=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): - super(ReleaseDefinition, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.description = description - self.environments = environments - self.id = id - self.is_deleted = is_deleted - self.last_release = last_release - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.path = path - self.pipeline_process = pipeline_process - self.properties = properties - self.release_name_format = release_name_format - self.retention_policy = retention_policy - self.revision = revision - self.source = source - self.tags = tags - self.triggers = triggers - self.url = url - self.variable_groups = variable_groups - self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/release_definition_approval_step.py b/vsts/vsts/release/v4_1/models/release_definition_approval_step.py deleted file mode 100644 index 11401a39..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_approval_step.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep - - -class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionApprovalStep. - - :param id: - :type id: int - :param approver: - :type approver: :class:`IdentityRef ` - :param is_automated: - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param rank: - :type rank: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'} - } - - def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): - super(ReleaseDefinitionApprovalStep, self).__init__(id=id) - self.approver = approver - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.rank = rank diff --git a/vsts/vsts/release/v4_1/models/release_definition_approvals.py b/vsts/vsts/release/v4_1/models/release_definition_approvals.py deleted file mode 100644 index 507ae5d0..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_approvals.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionApprovals(Model): - """ReleaseDefinitionApprovals. - - :param approval_options: - :type approval_options: :class:`ApprovalOptions ` - :param approvals: - :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` - """ - - _attribute_map = { - 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, - 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} - } - - def __init__(self, approval_options=None, approvals=None): - super(ReleaseDefinitionApprovals, self).__init__() - self.approval_options = approval_options - self.approvals = approvals diff --git a/vsts/vsts/release/v4_1/models/release_definition_deploy_step.py b/vsts/vsts/release/v4_1/models/release_definition_deploy_step.py deleted file mode 100644 index 90beaa78..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_deploy_step.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .release_definition_environment_step import ReleaseDefinitionEnvironmentStep - - -class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionDeployStep. - - :param id: - :type id: int - :param tasks: The list of steps for this definition. - :type tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, id=None, tasks=None): - super(ReleaseDefinitionDeployStep, self).__init__(id=id) - self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment.py b/vsts/vsts/release/v4_1/models/release_definition_environment.py deleted file mode 100644 index c73463df..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_environment.py +++ /dev/null @@ -1,113 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironment(Model): - """ReleaseDefinitionEnvironment. - - :param badge_url: - :type badge_url: str - :param conditions: - :type conditions: list of :class:`Condition ` - :param demands: - :type demands: list of :class:`object ` - :param deploy_phases: - :type deploy_phases: list of :class:`object ` - :param deploy_step: - :type deploy_step: :class:`ReleaseDefinitionDeployStep ` - :param environment_options: - :type environment_options: :class:`EnvironmentOptions ` - :param execution_policy: - :type execution_policy: :class:`EnvironmentExecutionPolicy ` - :param id: - :type id: int - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param post_deploy_approvals: - :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param post_deployment_gates: - :type post_deployment_gates: :class:`ReleaseDefinitionGatesStep ` - :param pre_deploy_approvals: - :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param pre_deployment_gates: - :type pre_deployment_gates: :class:`ReleaseDefinitionGatesStep ` - :param process_parameters: - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param queue_id: - :type queue_id: int - :param rank: - :type rank: int - :param retention_policy: - :type retention_policy: :class:`EnvironmentRetentionPolicy ` - :param run_options: - :type run_options: dict - :param schedules: - :type schedules: list of :class:`ReleaseSchedule ` - :param variable_groups: - :type variable_groups: list of int - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'badge_url': {'key': 'badgeUrl', 'type': 'str'}, - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, - 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'run_options': {'key': 'runOptions', 'type': '{str}'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, badge_url=None, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): - super(ReleaseDefinitionEnvironment, self).__init__() - self.badge_url = badge_url - self.conditions = conditions - self.demands = demands - self.deploy_phases = deploy_phases - self.deploy_step = deploy_step - self.environment_options = environment_options - self.execution_policy = execution_policy - self.id = id - self.name = name - self.owner = owner - self.post_deploy_approvals = post_deploy_approvals - self.post_deployment_gates = post_deployment_gates - self.pre_deploy_approvals = pre_deploy_approvals - self.pre_deployment_gates = pre_deployment_gates - self.process_parameters = process_parameters - self.properties = properties - self.queue_id = queue_id - self.rank = rank - self.retention_policy = retention_policy - self.run_options = run_options - self.schedules = schedules - self.variable_groups = variable_groups - self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment_step.py b/vsts/vsts/release/v4_1/models/release_definition_environment_step.py deleted file mode 100644 index f013f154..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_environment_step.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironmentStep(Model): - """ReleaseDefinitionEnvironmentStep. - - :param id: - :type id: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, id=None): - super(ReleaseDefinitionEnvironmentStep, self).__init__() - self.id = id diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment_summary.py b/vsts/vsts/release/v4_1/models/release_definition_environment_summary.py deleted file mode 100644 index 9d54e386..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_environment_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironmentSummary(Model): - """ReleaseDefinitionEnvironmentSummary. - - :param id: - :type id: int - :param last_releases: - :type last_releases: list of :class:`ReleaseShallowReference ` - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, last_releases=None, name=None): - super(ReleaseDefinitionEnvironmentSummary, self).__init__() - self.id = id - self.last_releases = last_releases - self.name = name diff --git a/vsts/vsts/release/v4_1/models/release_definition_environment_template.py b/vsts/vsts/release/v4_1/models/release_definition_environment_template.py deleted file mode 100644 index 2ed07976..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_environment_template.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionEnvironmentTemplate(Model): - """ReleaseDefinitionEnvironmentTemplate. - - :param can_delete: - :type can_delete: bool - :param category: - :type category: str - :param description: - :type description: str - :param environment: - :type environment: :class:`ReleaseDefinitionEnvironment ` - :param icon_task_id: - :type icon_task_id: str - :param icon_uri: - :type icon_uri: str - :param id: - :type id: str - :param is_deleted: - :type is_deleted: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'icon_uri': {'key': 'iconUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, is_deleted=None, name=None): - super(ReleaseDefinitionEnvironmentTemplate, self).__init__() - self.can_delete = can_delete - self.category = category - self.description = description - self.environment = environment - self.icon_task_id = icon_task_id - self.icon_uri = icon_uri - self.id = id - self.is_deleted = is_deleted - self.name = name diff --git a/vsts/vsts/release/v4_1/models/release_definition_gate.py b/vsts/vsts/release/v4_1/models/release_definition_gate.py deleted file mode 100644 index 7e8e44c7..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_gate.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionGate(Model): - """ReleaseDefinitionGate. - - :param tasks: - :type tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, tasks=None): - super(ReleaseDefinitionGate, self).__init__() - self.tasks = tasks diff --git a/vsts/vsts/release/v4_1/models/release_definition_gates_options.py b/vsts/vsts/release/v4_1/models/release_definition_gates_options.py deleted file mode 100644 index eb309367..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_gates_options.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionGatesOptions(Model): - """ReleaseDefinitionGatesOptions. - - :param is_enabled: - :type is_enabled: bool - :param sampling_interval: - :type sampling_interval: int - :param stabilization_time: - :type stabilization_time: int - :param timeout: - :type timeout: int - """ - - _attribute_map = { - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, - 'stabilization_time': {'key': 'stabilizationTime', 'type': 'int'}, - 'timeout': {'key': 'timeout', 'type': 'int'} - } - - def __init__(self, is_enabled=None, sampling_interval=None, stabilization_time=None, timeout=None): - super(ReleaseDefinitionGatesOptions, self).__init__() - self.is_enabled = is_enabled - self.sampling_interval = sampling_interval - self.stabilization_time = stabilization_time - self.timeout = timeout diff --git a/vsts/vsts/release/v4_1/models/release_definition_gates_step.py b/vsts/vsts/release/v4_1/models/release_definition_gates_step.py deleted file mode 100644 index cc3526e4..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_gates_step.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionGatesStep(Model): - """ReleaseDefinitionGatesStep. - - :param gates: - :type gates: list of :class:`ReleaseDefinitionGate ` - :param gates_options: - :type gates_options: :class:`ReleaseDefinitionGatesOptions ` - :param id: - :type id: int - """ - - _attribute_map = { - 'gates': {'key': 'gates', 'type': '[ReleaseDefinitionGate]'}, - 'gates_options': {'key': 'gatesOptions', 'type': 'ReleaseDefinitionGatesOptions'}, - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, gates=None, gates_options=None, id=None): - super(ReleaseDefinitionGatesStep, self).__init__() - self.gates = gates - self.gates_options = gates_options - self.id = id diff --git a/vsts/vsts/release/v4_1/models/release_definition_revision.py b/vsts/vsts/release/v4_1/models/release_definition_revision.py deleted file mode 100644 index 4434da86..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_revision.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionRevision(Model): - """ReleaseDefinitionRevision. - - :param api_version: Gets api-version for revision object. - :type api_version: str - :param changed_by: Gets the identity who did change. - :type changed_by: :class:`IdentityRef ` - :param changed_date: Gets date on which it got changed. - :type changed_date: datetime - :param change_type: Gets type of change. - :type change_type: object - :param comment: Gets comments for revision. - :type comment: str - :param definition_id: Get id of the definition. - :type definition_id: int - :param definition_url: Gets definition url. - :type definition_url: str - :param revision: Get revision number of the definition. - :type revision: int - """ - - _attribute_map = { - 'api_version': {'key': 'apiVersion', 'type': 'str'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): - super(ReleaseDefinitionRevision, self).__init__() - self.api_version = api_version - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.definition_id = definition_id - self.definition_url = definition_url - self.revision = revision diff --git a/vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py b/vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py deleted file mode 100644 index 7670d370..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_shallow_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionShallowReference(Model): - """ReleaseDefinitionShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release definition. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release definition. - :type id: int - :param name: Gets or sets the name of the release definition. - :type name: str - :param url: Gets the REST API url to access the release definition. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseDefinitionShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_definition_summary.py b/vsts/vsts/release/v4_1/models/release_definition_summary.py deleted file mode 100644 index 9139d942..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionSummary(Model): - """ReleaseDefinitionSummary. - - :param environments: - :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param releases: - :type releases: list of :class:`Release ` - """ - - _attribute_map = { - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'releases': {'key': 'releases', 'type': '[Release]'} - } - - def __init__(self, environments=None, release_definition=None, releases=None): - super(ReleaseDefinitionSummary, self).__init__() - self.environments = environments - self.release_definition = release_definition - self.releases = releases diff --git a/vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py b/vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py deleted file mode 100644 index 24dca3de..00000000 --- a/vsts/vsts/release/v4_1/models/release_definition_undelete_parameter.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDefinitionUndeleteParameter(Model): - """ReleaseDefinitionUndeleteParameter. - - :param comment: Gets or sets comment. - :type comment: str - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'} - } - - def __init__(self, comment=None): - super(ReleaseDefinitionUndeleteParameter, self).__init__() - self.comment = comment diff --git a/vsts/vsts/release/v4_1/models/release_deploy_phase.py b/vsts/vsts/release/v4_1/models/release_deploy_phase.py deleted file mode 100644 index 9c56f011..00000000 --- a/vsts/vsts/release/v4_1/models/release_deploy_phase.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseDeployPhase(Model): - """ReleaseDeployPhase. - - :param deployment_jobs: - :type deployment_jobs: list of :class:`DeploymentJob ` - :param error_log: - :type error_log: str - :param id: - :type id: int - :param manual_interventions: - :type manual_interventions: list of :class:`ManualIntervention ` - :param name: - :type name: str - :param phase_id: - :type phase_id: str - :param phase_type: - :type phase_type: object - :param rank: - :type rank: int - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - """ - - _attribute_map = { - 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'phase_id': {'key': 'phaseId', 'type': 'str'}, - 'phase_type': {'key': 'phaseType', 'type': 'object'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, name=None, phase_id=None, phase_type=None, rank=None, run_plan_id=None, status=None): - super(ReleaseDeployPhase, self).__init__() - self.deployment_jobs = deployment_jobs - self.error_log = error_log - self.id = id - self.manual_interventions = manual_interventions - self.name = name - self.phase_id = phase_id - self.phase_type = phase_type - self.rank = rank - self.run_plan_id = run_plan_id - self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_environment.py b/vsts/vsts/release/v4_1/models/release_environment.py deleted file mode 100644 index 25df3671..00000000 --- a/vsts/vsts/release/v4_1/models/release_environment.py +++ /dev/null @@ -1,157 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironment(Model): - """ReleaseEnvironment. - - :param conditions: Gets list of conditions. - :type conditions: list of :class:`ReleaseCondition ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_environment_id: Gets definition environment id. - :type definition_environment_id: int - :param demands: Gets demands. - :type demands: list of :class:`object ` - :param deploy_phases_snapshot: Gets list of deploy phases snapshot. - :type deploy_phases_snapshot: list of :class:`object ` - :param deploy_steps: Gets deploy steps. - :type deploy_steps: list of :class:`DeploymentAttempt ` - :param environment_options: Gets environment options. - :type environment_options: :class:`EnvironmentOptions ` - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param next_scheduled_utc_time: Gets next scheduled UTC time. - :type next_scheduled_utc_time: datetime - :param owner: Gets the identity who is owner for release environment. - :type owner: :class:`IdentityRef ` - :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. - :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param post_deploy_approvals: Gets list of post deploy approvals. - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param post_deployment_gates_snapshot: - :type post_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` - :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. - :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param pre_deploy_approvals: Gets list of pre deploy approvals. - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_deployment_gates_snapshot: - :type pre_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` - :param process_parameters: Gets process parameters. - :type process_parameters: :class:`ProcessParameters ` - :param queue_id: Gets queue id. - :type queue_id: int - :param rank: Gets rank. - :type rank: int - :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_created_by: Gets the identity who created release. - :type release_created_by: :class:`IdentityRef ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_description: Gets release description. - :type release_description: str - :param release_id: Gets release id. - :type release_id: int - :param scheduled_deployment_time: Gets schedule deployment time of release environment. - :type scheduled_deployment_time: datetime - :param schedules: Gets list of schedules. - :type schedules: list of :class:`ReleaseSchedule ` - :param status: Gets environment status. - :type status: object - :param time_to_deploy: Gets time to deploy. - :type time_to_deploy: float - :param trigger_reason: Gets trigger reason. - :type trigger_reason: str - :param variable_groups: Gets the list of variable groups. - :type variable_groups: list of :class:`VariableGroup ` - :param variables: Gets the dictionary of variables. - :type variables: dict - :param workflow_tasks: Gets list of workflow tasks. - :type workflow_tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, - 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'post_deployment_gates_snapshot': {'key': 'postDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, - 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_deployment_gates_snapshot': {'key': 'preDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_description': {'key': 'releaseDescription', 'type': 'str'}, - 'release_id': {'key': 'releaseId', 'type': 'int'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'status': {'key': 'status', 'type': 'object'}, - 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, - 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, - 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, post_deployment_gates_snapshot=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, pre_deployment_gates_snapshot=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variable_groups=None, variables=None, workflow_tasks=None): - super(ReleaseEnvironment, self).__init__() - self.conditions = conditions - self.created_on = created_on - self.definition_environment_id = definition_environment_id - self.demands = demands - self.deploy_phases_snapshot = deploy_phases_snapshot - self.deploy_steps = deploy_steps - self.environment_options = environment_options - self.id = id - self.modified_on = modified_on - self.name = name - self.next_scheduled_utc_time = next_scheduled_utc_time - self.owner = owner - self.post_approvals_snapshot = post_approvals_snapshot - self.post_deploy_approvals = post_deploy_approvals - self.post_deployment_gates_snapshot = post_deployment_gates_snapshot - self.pre_approvals_snapshot = pre_approvals_snapshot - self.pre_deploy_approvals = pre_deploy_approvals - self.pre_deployment_gates_snapshot = pre_deployment_gates_snapshot - self.process_parameters = process_parameters - self.queue_id = queue_id - self.rank = rank - self.release = release - self.release_created_by = release_created_by - self.release_definition = release_definition - self.release_description = release_description - self.release_id = release_id - self.scheduled_deployment_time = scheduled_deployment_time - self.schedules = schedules - self.status = status - self.time_to_deploy = time_to_deploy - self.trigger_reason = trigger_reason - self.variable_groups = variable_groups - self.variables = variables - self.workflow_tasks = workflow_tasks diff --git a/vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py b/vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py deleted file mode 100644 index fb04defc..00000000 --- a/vsts/vsts/release/v4_1/models/release_environment_shallow_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironmentShallowReference(Model): - """ReleaseEnvironmentShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release environment. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release environment. - :type id: int - :param name: Gets or sets the name of the release environment. - :type name: str - :param url: Gets the REST API url to access the release environment. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseEnvironmentShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_environment_update_metadata.py b/vsts/vsts/release/v4_1/models/release_environment_update_metadata.py deleted file mode 100644 index df5c0fed..00000000 --- a/vsts/vsts/release/v4_1/models/release_environment_update_metadata.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironmentUpdateMetadata(Model): - """ReleaseEnvironmentUpdateMetadata. - - :param comment: Gets or sets comment. - :type comment: str - :param scheduled_deployment_time: Gets or sets scheduled deployment time. - :type scheduled_deployment_time: datetime - :param status: Gets or sets status of environment. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, scheduled_deployment_time=None, status=None): - super(ReleaseEnvironmentUpdateMetadata, self).__init__() - self.comment = comment - self.scheduled_deployment_time = scheduled_deployment_time - self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_gates.py b/vsts/vsts/release/v4_1/models/release_gates.py deleted file mode 100644 index 91d493fe..00000000 --- a/vsts/vsts/release/v4_1/models/release_gates.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseGates(Model): - """ReleaseGates. - - :param deployment_jobs: - :type deployment_jobs: list of :class:`DeploymentJob ` - :param id: - :type id: int - :param last_modified_on: - :type last_modified_on: datetime - :param run_plan_id: - :type run_plan_id: str - :param stabilization_completed_on: - :type stabilization_completed_on: datetime - :param started_on: - :type started_on: datetime - :param status: - :type status: object - """ - - _attribute_map = { - 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'stabilization_completed_on': {'key': 'stabilizationCompletedOn', 'type': 'iso-8601'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, deployment_jobs=None, id=None, last_modified_on=None, run_plan_id=None, stabilization_completed_on=None, started_on=None, status=None): - super(ReleaseGates, self).__init__() - self.deployment_jobs = deployment_jobs - self.id = id - self.last_modified_on = last_modified_on - self.run_plan_id = run_plan_id - self.stabilization_completed_on = stabilization_completed_on - self.started_on = started_on - self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_reference.py b/vsts/vsts/release/v4_1/models/release_reference.py deleted file mode 100644 index 9f014153..00000000 --- a/vsts/vsts/release/v4_1/models/release_reference.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseReference(Model): - """ReleaseReference. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param created_by: Gets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param name: Gets name of release. - :type name: str - :param reason: Gets reason for release. - :type reason: object - :param release_definition: Gets release definition shallow reference. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param url: - :type url: str - :param web_access_uri: - :type web_access_uri: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} - } - - def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): - super(ReleaseReference, self).__init__() - self._links = _links - self.artifacts = artifacts - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.name = name - self.reason = reason - self.release_definition = release_definition - self.url = url - self.web_access_uri = web_access_uri diff --git a/vsts/vsts/release/v4_1/models/release_revision.py b/vsts/vsts/release/v4_1/models/release_revision.py deleted file mode 100644 index 970a85ae..00000000 --- a/vsts/vsts/release/v4_1/models/release_revision.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseRevision(Model): - """ReleaseRevision. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param change_details: - :type change_details: str - :param change_type: - :type change_type: str - :param comment: - :type comment: str - :param definition_snapshot_revision: - :type definition_snapshot_revision: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_details': {'key': 'changeDetails', 'type': 'str'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): - super(ReleaseRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_details = change_details - self.change_type = change_type - self.comment = comment - self.definition_snapshot_revision = definition_snapshot_revision - self.release_id = release_id diff --git a/vsts/vsts/release/v4_1/models/release_schedule.py b/vsts/vsts/release/v4_1/models/release_schedule.py deleted file mode 100644 index ac0b3f86..00000000 --- a/vsts/vsts/release/v4_1/models/release_schedule.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseSchedule(Model): - """ReleaseSchedule. - - :param days_to_release: Days of the week to release - :type days_to_release: object - :param job_id: Team Foundation Job Definition Job Id - :type job_id: str - :param start_hours: Local time zone hour to start - :type start_hours: int - :param start_minutes: Local time zone minute to start - :type start_minutes: int - :param time_zone_id: Time zone Id of release schedule, such as 'UTC' - :type time_zone_id: str - """ - - _attribute_map = { - 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_hours': {'key': 'startHours', 'type': 'int'}, - 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, - 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} - } - - def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): - super(ReleaseSchedule, self).__init__() - self.days_to_release = days_to_release - self.job_id = job_id - self.start_hours = start_hours - self.start_minutes = start_minutes - self.time_zone_id = time_zone_id diff --git a/vsts/vsts/release/v4_1/models/release_settings.py b/vsts/vsts/release/v4_1/models/release_settings.py deleted file mode 100644 index d653e694..00000000 --- a/vsts/vsts/release/v4_1/models/release_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseSettings(Model): - """ReleaseSettings. - - :param retention_settings: - :type retention_settings: :class:`RetentionSettings ` - """ - - _attribute_map = { - 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} - } - - def __init__(self, retention_settings=None): - super(ReleaseSettings, self).__init__() - self.retention_settings = retention_settings diff --git a/vsts/vsts/release/v4_1/models/release_shallow_reference.py b/vsts/vsts/release/v4_1/models/release_shallow_reference.py deleted file mode 100644 index beb09a38..00000000 --- a/vsts/vsts/release/v4_1/models/release_shallow_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseShallowReference(Model): - """ReleaseShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release. - :type id: int - :param name: Gets or sets the name of the release. - :type name: str - :param url: Gets the REST API url to access the release. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/release/v4_1/models/release_start_metadata.py b/vsts/vsts/release/v4_1/models/release_start_metadata.py deleted file mode 100644 index 0cf25dc4..00000000 --- a/vsts/vsts/release/v4_1/models/release_start_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseStartMetadata(Model): - """ReleaseStartMetadata. - - :param artifacts: Sets list of artifact to create a release. - :type artifacts: list of :class:`ArtifactMetadata ` - :param definition_id: Sets definition Id to create a release. - :type definition_id: int - :param description: Sets description to create a release. - :type description: str - :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. - :type is_draft: bool - :param manual_environments: Sets list of environments to manual as condition. - :type manual_environments: list of str - :param properties: - :type properties: :class:`object ` - :param reason: Sets reason to create a release. - :type reason: object - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_draft': {'key': 'isDraft', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'} - } - - def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): - super(ReleaseStartMetadata, self).__init__() - self.artifacts = artifacts - self.definition_id = definition_id - self.description = description - self.is_draft = is_draft - self.manual_environments = manual_environments - self.properties = properties - self.reason = reason diff --git a/vsts/vsts/release/v4_1/models/release_task.py b/vsts/vsts/release/v4_1/models/release_task.py deleted file mode 100644 index 62213335..00000000 --- a/vsts/vsts/release/v4_1/models/release_task.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseTask(Model): - """ReleaseTask. - - :param agent_name: - :type agent_name: str - :param date_ended: - :type date_ended: datetime - :param date_started: - :type date_started: datetime - :param finish_time: - :type finish_time: datetime - :param id: - :type id: int - :param issues: - :type issues: list of :class:`Issue ` - :param line_count: - :type line_count: long - :param log_url: - :type log_url: str - :param name: - :type name: str - :param percent_complete: - :type percent_complete: int - :param rank: - :type rank: int - :param start_time: - :type start_time: datetime - :param status: - :type status: object - :param task: - :type task: :class:`WorkflowTaskReference ` - :param timeline_record_id: - :type timeline_record_id: str - """ - - _attribute_map = { - 'agent_name': {'key': 'agentName', 'type': 'str'}, - 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, - 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'line_count': {'key': 'lineCount', 'type': 'long'}, - 'log_url': {'key': 'logUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, - 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} - } - - def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): - super(ReleaseTask, self).__init__() - self.agent_name = agent_name - self.date_ended = date_ended - self.date_started = date_started - self.finish_time = finish_time - self.id = id - self.issues = issues - self.line_count = line_count - self.log_url = log_url - self.name = name - self.percent_complete = percent_complete - self.rank = rank - self.start_time = start_time - self.status = status - self.task = task - self.timeline_record_id = timeline_record_id diff --git a/vsts/vsts/release/v4_1/models/release_task_attachment.py b/vsts/vsts/release/v4_1/models/release_task_attachment.py deleted file mode 100644 index 58a8b52d..00000000 --- a/vsts/vsts/release/v4_1/models/release_task_attachment.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseTaskAttachment(Model): - """ReleaseTaskAttachment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_on: - :type created_on: datetime - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_on: - :type modified_on: datetime - :param name: - :type name: str - :param record_id: - :type record_id: str - :param timeline_id: - :type timeline_id: str - :param type: - :type type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'record_id': {'key': 'recordId', 'type': 'str'}, - 'timeline_id': {'key': 'timelineId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, _links=None, created_on=None, modified_by=None, modified_on=None, name=None, record_id=None, timeline_id=None, type=None): - super(ReleaseTaskAttachment, self).__init__() - self._links = _links - self.created_on = created_on - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.record_id = record_id - self.timeline_id = timeline_id - self.type = type diff --git a/vsts/vsts/release/v4_1/models/release_update_metadata.py b/vsts/vsts/release/v4_1/models/release_update_metadata.py deleted file mode 100644 index 24cad449..00000000 --- a/vsts/vsts/release/v4_1/models/release_update_metadata.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseUpdateMetadata(Model): - """ReleaseUpdateMetadata. - - :param comment: Sets comment for release. - :type comment: str - :param keep_forever: Set 'true' to exclude the release from retention policies. - :type keep_forever: bool - :param manual_environments: Sets list of manual environments. - :type manual_environments: list of str - :param status: Sets status of the release. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): - super(ReleaseUpdateMetadata, self).__init__() - self.comment = comment - self.keep_forever = keep_forever - self.manual_environments = manual_environments - self.status = status diff --git a/vsts/vsts/release/v4_1/models/release_work_item_ref.py b/vsts/vsts/release/v4_1/models/release_work_item_ref.py deleted file mode 100644 index 9891d5a0..00000000 --- a/vsts/vsts/release/v4_1/models/release_work_item_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseWorkItemRef(Model): - """ReleaseWorkItemRef. - - :param assignee: - :type assignee: str - :param id: - :type id: str - :param state: - :type state: str - :param title: - :type title: str - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'assignee': {'key': 'assignee', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): - super(ReleaseWorkItemRef, self).__init__() - self.assignee = assignee - self.id = id - self.state = state - self.title = title - self.type = type - self.url = url diff --git a/vsts/vsts/release/v4_1/models/retention_policy.py b/vsts/vsts/release/v4_1/models/retention_policy.py deleted file mode 100644 index e070b170..00000000 --- a/vsts/vsts/release/v4_1/models/retention_policy.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RetentionPolicy(Model): - """RetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} - } - - def __init__(self, days_to_keep=None): - super(RetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep diff --git a/vsts/vsts/release/v4_1/models/retention_settings.py b/vsts/vsts/release/v4_1/models/retention_settings.py deleted file mode 100644 index ceb96feb..00000000 --- a/vsts/vsts/release/v4_1/models/retention_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RetentionSettings(Model): - """RetentionSettings. - - :param days_to_keep_deleted_releases: - :type days_to_keep_deleted_releases: int - :param default_environment_retention_policy: - :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - :param maximum_environment_retention_policy: - :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - """ - - _attribute_map = { - 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, - 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} - } - - def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): - super(RetentionSettings, self).__init__() - self.days_to_keep_deleted_releases = days_to_keep_deleted_releases - self.default_environment_retention_policy = default_environment_retention_policy - self.maximum_environment_retention_policy = maximum_environment_retention_policy diff --git a/vsts/vsts/release/v4_1/models/summary_mail_section.py b/vsts/vsts/release/v4_1/models/summary_mail_section.py deleted file mode 100644 index b8f6a8ea..00000000 --- a/vsts/vsts/release/v4_1/models/summary_mail_section.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SummaryMailSection(Model): - """SummaryMailSection. - - :param html_content: - :type html_content: str - :param rank: - :type rank: int - :param section_type: - :type section_type: object - :param title: - :type title: str - """ - - _attribute_map = { - 'html_content': {'key': 'htmlContent', 'type': 'str'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'section_type': {'key': 'sectionType', 'type': 'object'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, html_content=None, rank=None, section_type=None, title=None): - super(SummaryMailSection, self).__init__() - self.html_content = html_content - self.rank = rank - self.section_type = section_type - self.title = title diff --git a/vsts/vsts/release/v4_1/models/task_input_definition_base.py b/vsts/vsts/release/v4_1/models/task_input_definition_base.py deleted file mode 100644 index 1b4e68ff..00000000 --- a/vsts/vsts/release/v4_1/models/task_input_definition_base.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param aliases: - :type aliases: list of str - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'aliases': {'key': 'aliases', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.aliases = aliases - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule diff --git a/vsts/vsts/release/v4_1/models/task_input_validation.py b/vsts/vsts/release/v4_1/models/task_input_validation.py deleted file mode 100644 index 42524013..00000000 --- a/vsts/vsts/release/v4_1/models/task_input_validation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message diff --git a/vsts/vsts/release/v4_1/models/task_source_definition_base.py b/vsts/vsts/release/v4_1/models/task_source_definition_base.py deleted file mode 100644 index c8a6b6d6..00000000 --- a/vsts/vsts/release/v4_1/models/task_source_definition_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target diff --git a/vsts/vsts/release/v4_1/models/variable_group.py b/vsts/vsts/release/v4_1/models/variable_group.py deleted file mode 100644 index 64db6038..00000000 --- a/vsts/vsts/release/v4_1/models/variable_group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroup(Model): - """VariableGroup. - - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets name. - :type name: str - :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` - :param type: Gets or sets type. - :type type: str - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'} - } - - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): - super(VariableGroup, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.provider_data = provider_data - self.type = type - self.variables = variables diff --git a/vsts/vsts/release/v4_1/models/variable_group_provider_data.py b/vsts/vsts/release/v4_1/models/variable_group_provider_data.py deleted file mode 100644 index b86942f1..00000000 --- a/vsts/vsts/release/v4_1/models/variable_group_provider_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroupProviderData(Model): - """VariableGroupProviderData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/release/v4_1/models/variable_value.py b/vsts/vsts/release/v4_1/models/variable_value.py deleted file mode 100644 index 035049c0..00000000 --- a/vsts/vsts/release/v4_1/models/variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/release/v4_1/models/workflow_task.py b/vsts/vsts/release/v4_1/models/workflow_task.py deleted file mode 100644 index 14ef134c..00000000 --- a/vsts/vsts/release/v4_1/models/workflow_task.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkflowTask(Model): - """WorkflowTask. - - :param always_run: - :type always_run: bool - :param condition: - :type condition: str - :param continue_on_error: - :type continue_on_error: bool - :param definition_type: - :type definition_type: str - :param enabled: - :type enabled: bool - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param override_inputs: - :type override_inputs: dict - :param ref_name: - :type ref_name: str - :param task_id: - :type task_id: str - :param timeout_in_minutes: - :type timeout_in_minutes: int - :param version: - :type version: str - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): - super(WorkflowTask, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.definition_type = definition_type - self.enabled = enabled - self.inputs = inputs - self.name = name - self.override_inputs = override_inputs - self.ref_name = ref_name - self.task_id = task_id - self.timeout_in_minutes = timeout_in_minutes - self.version = version diff --git a/vsts/vsts/release/v4_1/models/workflow_task_reference.py b/vsts/vsts/release/v4_1/models/workflow_task_reference.py deleted file mode 100644 index 0a99eab3..00000000 --- a/vsts/vsts/release/v4_1/models/workflow_task_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkflowTaskReference(Model): - """WorkflowTaskReference. - - :param id: - :type id: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, name=None, version=None): - super(WorkflowTaskReference, self).__init__() - self.id = id - self.name = name - self.version = version diff --git a/vsts/vsts/release/v4_1/release_client.py b/vsts/vsts/release/v4_1/release_client.py deleted file mode 100644 index 7c4b252a..00000000 --- a/vsts/vsts/release/v4_1/release_client.py +++ /dev/null @@ -1,782 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 ...vss_client import VssClient -from . import models - - -class ReleaseClient(VssClient): - """Release - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' - - def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): - """GetApprovals. - [Preview API] Get a list of approvals - :param str project: Project ID or project name - :param str assigned_to_filter: Approvals assigned to this user. - :param str status_filter: Approvals with this status. Default is 'pending'. - :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. - :param str type_filter: Approval with this type. - :param int top: Number of approvals to get. Default is 50. - :param int continuation_token: Gets the approvals after the continuation token provided. - :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. - :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. - :rtype: [ReleaseApproval] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if assigned_to_filter is not None: - query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if release_ids_filter is not None: - release_ids_filter = ",".join(map(str, release_ids_filter)) - query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') - if type_filter is not None: - query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if include_my_group_approvals is not None: - query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') - response = self._send(http_method='GET', - location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) - - def update_release_approval(self, approval, project, approval_id): - """UpdateReleaseApproval. - [Preview API] Update status of an approval - :param :class:` ` approval: ReleaseApproval object having status, approver and comments. - :param str project: Project ID or project name - :param int approval_id: Id of the approval. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_id is not None: - route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') - content = self._serialize.body(approval, 'ReleaseApproval') - response = self._send(http_method='PATCH', - location_id='9328e074-59fb-465a-89d9-b09c82ee5109', - version='4.1-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseApproval', response) - - def get_task_attachment_content(self, project, release_id, environment_id, attempt_id, timeline_id, record_id, type, name, **kwargs): - """GetTaskAttachmentContent. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int attempt_id: - :param str timeline_id: - :param str record_id: - :param str type: - :param str name: - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if attempt_id is not None: - route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') - if timeline_id is not None: - route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') - if record_id is not None: - route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - if name is not None: - route_values['name'] = self._serialize.url('name', name, 'str') - response = self._send(http_method='GET', - location_id='c4071f6d-3697-46ca-858e-8b10ff09e52f', - version='4.1-preview.1', - route_values=route_values, - accept_media_type='application/octet-stream') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_attachments(self, project, release_id, environment_id, attempt_id, timeline_id, type): - """GetTaskAttachments. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int attempt_id: - :param str timeline_id: - :param str type: - :rtype: [ReleaseTaskAttachment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if attempt_id is not None: - route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') - if timeline_id is not None: - route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - response = self._send(http_method='GET', - location_id='214111ee-2415-4df2-8ed2-74417f7d61f9', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseTaskAttachment]', self._unwrap_collection(response)) - - def create_release_definition(self, release_definition, project): - """CreateReleaseDefinition. - [Preview API] Create a release definition - :param :class:` ` release_definition: release definition object to create. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='POST', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def delete_release_definition(self, project, definition_id, comment=None, force_delete=None): - """DeleteReleaseDefinition. - [Preview API] Delete a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param str comment: Comment for deleting a release definition. - :param bool force_delete: 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if comment is not None: - query_parameters['comment'] = self._serialize.query('comment', comment, 'str') - if force_delete is not None: - query_parameters['forceDelete'] = self._serialize.query('force_delete', force_delete, 'bool') - self._send(http_method='DELETE', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - - def get_release_definition(self, project, definition_id, property_filters=None): - """GetReleaseDefinition. - [Preview API] Get a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinition', response) - - def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None, is_deleted=None): - """GetReleaseDefinitions. - [Preview API] Get a list of release definitions. - :param str project: Project ID or project name - :param str search_text: Get release definitions with names starting with searchText. - :param str expand: The properties that should be expanded in the list of Release definitions. - :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param int top: Number of release definitions to get. - :param str continuation_token: Gets the release definitions after the continuation token provided. - :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. - :param str path: Gets the release definitions under the specified path. - :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. - :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. - :param bool is_deleted: 'true' to get release definitions that has been deleted. Default is 'false' - :rtype: [ReleaseDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if artifact_source_id is not None: - query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if path is not None: - query_parameters['path'] = self._serialize.query('path', path, 'str') - if is_exact_name_match is not None: - query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if definition_id_filter is not None: - definition_id_filter = ",".join(definition_id_filter) - query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') - if is_deleted is not None: - query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) - - def update_release_definition(self, release_definition, project): - """UpdateReleaseDefinition. - [Preview API] Update a release definition. - :param :class:` ` release_definition: Release definition object to update. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='PUT', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None, min_started_time=None, max_started_time=None): - """GetDeployments. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :param int definition_environment_id: - :param str created_by: - :param datetime min_modified_time: - :param datetime max_modified_time: - :param str deployment_status: - :param str operation_status: - :param bool latest_attempts_only: - :param str query_order: - :param int top: - :param int continuation_token: - :param str created_for: - :param datetime min_started_time: - :param datetime max_started_time: - :rtype: [Deployment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if min_modified_time is not None: - query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') - if max_modified_time is not None: - query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') - if deployment_status is not None: - query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') - if operation_status is not None: - query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') - if latest_attempts_only is not None: - query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if created_for is not None: - query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') - if min_started_time is not None: - query_parameters['minStartedTime'] = self._serialize.query('min_started_time', min_started_time, 'iso-8601') - if max_started_time is not None: - query_parameters['maxStartedTime'] = self._serialize.query('max_started_time', max_started_time, 'iso-8601') - response = self._send(http_method='GET', - location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Deployment]', self._unwrap_collection(response)) - - def update_release_environment(self, environment_update_data, project, release_id, environment_id): - """UpdateReleaseEnvironment. - [Preview API] Update the status of a release environment - :param :class:` ` environment_update_data: Environment update meta data. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', - version='4.1-preview.5', - route_values=route_values, - content=content) - return self._deserialize('ReleaseEnvironment', response) - - def get_logs(self, project, release_id, **kwargs): - """GetLogs. - [Preview API] Get logs for a release Id. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', - version='4.1-preview.2', - route_values=route_values, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None, **kwargs): - """GetTaskLog. - [Preview API] Gets the task log of a release as a plain text file. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :param int release_deploy_phase_id: Release deploy phase Id. - :param int task_id: ReleaseTask Id for the log. - :param long start_line: Starting line number for logs - :param long end_line: Ending line number for logs - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if release_deploy_phase_id is not None: - route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') - query_parameters = {} - if start_line is not None: - query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') - if end_line is not None: - query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') - response = self._send(http_method='GET', - location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_manual_intervention(self, project, release_id, manual_intervention_id): - """GetManualIntervention. - [Preview API] Get manual intervention for a given release and manual intervention id. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int manual_intervention_id: Id of the manual intervention. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('ManualIntervention', response) - - def get_manual_interventions(self, project, release_id): - """GetManualInterventions. - [Preview API] List all manual interventions for a given release. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :rtype: [ManualIntervention] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) - - def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): - """UpdateManualIntervention. - [Preview API] Update manual intervention. - :param :class:` ` manual_intervention_update_metadata: Meta data to update manual intervention. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int manual_intervention_id: Id of the manual intervention. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ManualIntervention', response) - - def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None, release_id_filter=None): - """GetReleases. - [Preview API] Get a list of releases - :param str project: Project ID or project name - :param int definition_id: Releases from this release definition Id. - :param int definition_environment_id: - :param str search_text: Releases with names starting with searchText. - :param str created_by: Releases created by this user. - :param str status_filter: Releases that have this status. - :param int environment_status_filter: - :param datetime min_created_time: Releases that were created after this time. - :param datetime max_created_time: Releases that were created before this time. - :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. - :param int top: Number of releases to get. Default is 50. - :param int continuation_token: Gets the releases after the continuation token provided. - :param str expand: The property that should be expanded in the list of releases. - :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. - :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. - :param bool is_deleted: Gets the soft deleted releases, if true. - :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :param [int] release_id_filter: A comma-delimited list of releases Ids. Only releases with these Ids will be returned. - :rtype: [Release] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if environment_status_filter is not None: - query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') - if min_created_time is not None: - query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') - if max_created_time is not None: - query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type_id is not None: - query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - if artifact_version_id is not None: - query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') - if source_branch_filter is not None: - query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') - if is_deleted is not None: - query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if release_id_filter is not None: - release_id_filter = ",".join(map(str, release_id_filter)) - query_parameters['releaseIdFilter'] = self._serialize.query('release_id_filter', release_id_filter, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Release]', self._unwrap_collection(response)) - - def create_release(self, release_start_metadata, project): - """CreateRelease. - [Preview API] Create a release. - :param :class:` ` release_start_metadata: Metadata to create a release. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') - response = self._send(http_method='POST', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def get_release(self, project, release_id, approval_filters=None, property_filters=None): - """GetRelease. - [Preview API] Get a Release - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default - :param [str] property_filters: A comma-delimited list of properties to include in the results. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if approval_filters is not None: - query_parameters['approvalFilters'] = self._serialize.query('approval_filters', approval_filters, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('Release', response) - - def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): - """GetReleaseDefinitionSummary. - [Preview API] Get release summary of a given definition Id. - :param str project: Project ID or project name - :param int definition_id: Id of the definition to get release summary. - :param int release_count: Count of releases to be included in summary. - :param bool include_artifact: Include artifact details.Default is 'false'. - :param [int] definition_environment_ids_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if release_count is not None: - query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') - if include_artifact is not None: - query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') - if definition_environment_ids_filter is not None: - definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) - query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinitionSummary', response) - - def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): - """GetReleaseRevision. - [Preview API] Get release for a given revision number. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int definition_snapshot_revision: Definition snapshot revision number. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if definition_snapshot_revision is not None: - query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def update_release(self, release, project, release_id): - """UpdateRelease. - [Preview API] Update a complete release object. - :param :class:` ` release: Release object for update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release, 'Release') - response = self._send(http_method='PUT', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def update_release_resource(self, release_update_metadata, project, release_id): - """UpdateReleaseResource. - [Preview API] Update few properties of a release. - :param :class:` ` release_update_metadata: Properties of release to update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def get_definition_revision(self, project, definition_id, revision, **kwargs): - """GetDefinitionRevision. - [Preview API] Get release definition for a given definitionId and revision - :param str project: Project ID or project name - :param int definition_id: Id of the definition. - :param int revision: Id of the revision. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - if revision is not None: - route_values['revision'] = self._serialize.url('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.1-preview.1', - route_values=route_values, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_release_definition_history(self, project, definition_id): - """GetReleaseDefinitionHistory. - [Preview API] Get revision history for a release definition - :param str project: Project ID or project name - :param int definition_id: Id of the definition. - :rtype: [ReleaseDefinitionRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) - diff --git a/vsts/vsts/security/__init__.py b/vsts/vsts/security/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/security/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/security/v4_0/__init__.py b/vsts/vsts/security/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/security/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/security/v4_0/models/__init__.py b/vsts/vsts/security/v4_0/models/__init__.py deleted file mode 100644 index fe4c0453..00000000 --- a/vsts/vsts/security/v4_0/models/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_control_entry import AccessControlEntry -from .access_control_list import AccessControlList -from .access_control_lists_collection import AccessControlListsCollection -from .ace_extended_information import AceExtendedInformation -from .action_definition import ActionDefinition -from .permission_evaluation import PermissionEvaluation -from .permission_evaluation_batch import PermissionEvaluationBatch -from .security_namespace_description import SecurityNamespaceDescription - -__all__ = [ - 'AccessControlEntry', - 'AccessControlList', - 'AccessControlListsCollection', - 'AceExtendedInformation', - 'ActionDefinition', - 'PermissionEvaluation', - 'PermissionEvaluationBatch', - 'SecurityNamespaceDescription', -] diff --git a/vsts/vsts/security/v4_0/models/access_control_entry.py b/vsts/vsts/security/v4_0/models/access_control_entry.py deleted file mode 100644 index f524a101..00000000 --- a/vsts/vsts/security/v4_0/models/access_control_entry.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessControlEntry(Model): - """AccessControlEntry. - - :param allow: The set of permission bits that represent the actions that the associated descriptor is allowed to perform. - :type allow: int - :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. - :type deny: int - :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` - :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` - """ - - _attribute_map = { - 'allow': {'key': 'allow', 'type': 'int'}, - 'deny': {'key': 'deny', 'type': 'int'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AceExtendedInformation'} - } - - def __init__(self, allow=None, deny=None, descriptor=None, extended_info=None): - super(AccessControlEntry, self).__init__() - self.allow = allow - self.deny = deny - self.descriptor = descriptor - self.extended_info = extended_info diff --git a/vsts/vsts/security/v4_0/models/access_control_list.py b/vsts/vsts/security/v4_0/models/access_control_list.py deleted file mode 100644 index 24bf1bc1..00000000 --- a/vsts/vsts/security/v4_0/models/access_control_list.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessControlList(Model): - """AccessControlList. - - :param aces_dictionary: Storage of permissions keyed on the identity the permission is for. - :type aces_dictionary: dict - :param include_extended_info: True if this ACL holds ACEs that have extended information. - :type include_extended_info: bool - :param inherit_permissions: True if the given token inherits permissions from parents. - :type inherit_permissions: bool - :param token: The token that this AccessControlList is for. - :type token: str - """ - - _attribute_map = { - 'aces_dictionary': {'key': 'acesDictionary', 'type': '{AccessControlEntry}'}, - 'include_extended_info': {'key': 'includeExtendedInfo', 'type': 'bool'}, - 'inherit_permissions': {'key': 'inheritPermissions', 'type': 'bool'}, - 'token': {'key': 'token', 'type': 'str'} - } - - def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_permissions=None, token=None): - super(AccessControlList, self).__init__() - self.aces_dictionary = aces_dictionary - self.include_extended_info = include_extended_info - self.inherit_permissions = inherit_permissions - self.token = token diff --git a/vsts/vsts/security/v4_0/models/access_control_lists_collection.py b/vsts/vsts/security/v4_0/models/access_control_lists_collection.py deleted file mode 100644 index c6ecd6d0..00000000 --- a/vsts/vsts/security/v4_0/models/access_control_lists_collection.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessControlListsCollection(Model): - """AccessControlListsCollection. - - """ - - _attribute_map = { - } - - def __init__(self): - super(AccessControlListsCollection, self).__init__() diff --git a/vsts/vsts/security/v4_0/models/ace_extended_information.py b/vsts/vsts/security/v4_0/models/ace_extended_information.py deleted file mode 100644 index 9c639473..00000000 --- a/vsts/vsts/security/v4_0/models/ace_extended_information.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AceExtendedInformation(Model): - """AceExtendedInformation. - - :param effective_allow: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. - :type effective_allow: int - :param effective_deny: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. - :type effective_deny: int - :param inherited_allow: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. - :type inherited_allow: int - :param inherited_deny: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. - :type inherited_deny: int - """ - - _attribute_map = { - 'effective_allow': {'key': 'effectiveAllow', 'type': 'int'}, - 'effective_deny': {'key': 'effectiveDeny', 'type': 'int'}, - 'inherited_allow': {'key': 'inheritedAllow', 'type': 'int'}, - 'inherited_deny': {'key': 'inheritedDeny', 'type': 'int'} - } - - def __init__(self, effective_allow=None, effective_deny=None, inherited_allow=None, inherited_deny=None): - super(AceExtendedInformation, self).__init__() - self.effective_allow = effective_allow - self.effective_deny = effective_deny - self.inherited_allow = inherited_allow - self.inherited_deny = inherited_deny diff --git a/vsts/vsts/security/v4_0/models/action_definition.py b/vsts/vsts/security/v4_0/models/action_definition.py deleted file mode 100644 index 87b96fd9..00000000 --- a/vsts/vsts/security/v4_0/models/action_definition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ActionDefinition(Model): - """ActionDefinition. - - :param bit: The bit mask integer for this action. Must be a power of 2. - :type bit: int - :param display_name: The localized display name for this action. - :type display_name: str - :param name: The non-localized name for this action. - :type name: str - :param namespace_id: The namespace that this action belongs to. This will only be used for reading from the database. - :type namespace_id: str - """ - - _attribute_map = { - 'bit': {'key': 'bit', 'type': 'int'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'namespace_id': {'key': 'namespaceId', 'type': 'str'} - } - - def __init__(self, bit=None, display_name=None, name=None, namespace_id=None): - super(ActionDefinition, self).__init__() - self.bit = bit - self.display_name = display_name - self.name = name - self.namespace_id = namespace_id diff --git a/vsts/vsts/security/v4_0/models/permission_evaluation.py b/vsts/vsts/security/v4_0/models/permission_evaluation.py deleted file mode 100644 index 85764cf6..00000000 --- a/vsts/vsts/security/v4_0/models/permission_evaluation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PermissionEvaluation(Model): - """PermissionEvaluation. - - :param permissions: Permission bit for this evaluated permission. - :type permissions: int - :param security_namespace_id: Security namespace identifier for this evaluated permission. - :type security_namespace_id: str - :param token: Security namespace-specific token for this evaluated permission. - :type token: str - :param value: Permission evaluation value. - :type value: bool - """ - - _attribute_map = { - 'permissions': {'key': 'permissions', 'type': 'int'}, - 'security_namespace_id': {'key': 'securityNamespaceId', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'bool'} - } - - def __init__(self, permissions=None, security_namespace_id=None, token=None, value=None): - super(PermissionEvaluation, self).__init__() - self.permissions = permissions - self.security_namespace_id = security_namespace_id - self.token = token - self.value = value diff --git a/vsts/vsts/security/v4_0/models/permission_evaluation_batch.py b/vsts/vsts/security/v4_0/models/permission_evaluation_batch.py deleted file mode 100644 index b43422f9..00000000 --- a/vsts/vsts/security/v4_0/models/permission_evaluation_batch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PermissionEvaluationBatch(Model): - """PermissionEvaluationBatch. - - :param always_allow_administrators: - :type always_allow_administrators: bool - :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` - """ - - _attribute_map = { - 'always_allow_administrators': {'key': 'alwaysAllowAdministrators', 'type': 'bool'}, - 'evaluations': {'key': 'evaluations', 'type': '[PermissionEvaluation]'} - } - - def __init__(self, always_allow_administrators=None, evaluations=None): - super(PermissionEvaluationBatch, self).__init__() - self.always_allow_administrators = always_allow_administrators - self.evaluations = evaluations diff --git a/vsts/vsts/security/v4_0/models/security_namespace_description.py b/vsts/vsts/security/v4_0/models/security_namespace_description.py deleted file mode 100644 index afe85130..00000000 --- a/vsts/vsts/security/v4_0/models/security_namespace_description.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SecurityNamespaceDescription(Model): - """SecurityNamespaceDescription. - - :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` - :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. - :type dataspace_category: str - :param display_name: This localized name for this namespace. - :type display_name: str - :param element_length: If the security tokens this namespace will be operating on need to be split on certain character lengths to determine its elements, that length should be specified here. If not, this value will be -1. - :type element_length: int - :param extension_type: This is the type of the extension that should be loaded from the plugins directory for extending this security namespace. - :type extension_type: str - :param is_remotable: If true, the security namespace is remotable, allowing another service to proxy the namespace. - :type is_remotable: bool - :param name: This non-localized for this namespace. - :type name: str - :param namespace_id: The unique identifier for this namespace. - :type namespace_id: str - :param read_permission: The permission bits needed by a user in order to read security data on the Security Namespace. - :type read_permission: int - :param separator_value: If the security tokens this namespace will be operating on need to be split on certain characters to determine its elements that character should be specified here. If not, this value will be the null character. - :type separator_value: str - :param structure_value: Used to send information about the structure of the security namespace over the web service. - :type structure_value: int - :param system_bit_mask: The bits reserved by system store - :type system_bit_mask: int - :param use_token_translator: If true, the security service will expect an ISecurityDataspaceTokenTranslator plugin to exist for this namespace - :type use_token_translator: bool - :param write_permission: The permission bits needed by a user in order to modify security data on the Security Namespace. - :type write_permission: int - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[ActionDefinition]'}, - 'dataspace_category': {'key': 'dataspaceCategory', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'element_length': {'key': 'elementLength', 'type': 'int'}, - 'extension_type': {'key': 'extensionType', 'type': 'str'}, - 'is_remotable': {'key': 'isRemotable', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, - 'read_permission': {'key': 'readPermission', 'type': 'int'}, - 'separator_value': {'key': 'separatorValue', 'type': 'str'}, - 'structure_value': {'key': 'structureValue', 'type': 'int'}, - 'system_bit_mask': {'key': 'systemBitMask', 'type': 'int'}, - 'use_token_translator': {'key': 'useTokenTranslator', 'type': 'bool'}, - 'write_permission': {'key': 'writePermission', 'type': 'int'} - } - - def __init__(self, actions=None, dataspace_category=None, display_name=None, element_length=None, extension_type=None, is_remotable=None, name=None, namespace_id=None, read_permission=None, separator_value=None, structure_value=None, system_bit_mask=None, use_token_translator=None, write_permission=None): - super(SecurityNamespaceDescription, self).__init__() - self.actions = actions - self.dataspace_category = dataspace_category - self.display_name = display_name - self.element_length = element_length - self.extension_type = extension_type - self.is_remotable = is_remotable - self.name = name - self.namespace_id = namespace_id - self.read_permission = read_permission - self.separator_value = separator_value - self.structure_value = structure_value - self.system_bit_mask = system_bit_mask - self.use_token_translator = use_token_translator - self.write_permission = write_permission diff --git a/vsts/vsts/security/v4_1/__init__.py b/vsts/vsts/security/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/security/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/security/v4_1/models/__init__.py b/vsts/vsts/security/v4_1/models/__init__.py deleted file mode 100644 index fe4c0453..00000000 --- a/vsts/vsts/security/v4_1/models/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .access_control_entry import AccessControlEntry -from .access_control_list import AccessControlList -from .access_control_lists_collection import AccessControlListsCollection -from .ace_extended_information import AceExtendedInformation -from .action_definition import ActionDefinition -from .permission_evaluation import PermissionEvaluation -from .permission_evaluation_batch import PermissionEvaluationBatch -from .security_namespace_description import SecurityNamespaceDescription - -__all__ = [ - 'AccessControlEntry', - 'AccessControlList', - 'AccessControlListsCollection', - 'AceExtendedInformation', - 'ActionDefinition', - 'PermissionEvaluation', - 'PermissionEvaluationBatch', - 'SecurityNamespaceDescription', -] diff --git a/vsts/vsts/security/v4_1/models/access_control_entry.py b/vsts/vsts/security/v4_1/models/access_control_entry.py deleted file mode 100644 index f7b4921f..00000000 --- a/vsts/vsts/security/v4_1/models/access_control_entry.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessControlEntry(Model): - """AccessControlEntry. - - :param allow: The set of permission bits that represent the actions that the associated descriptor is allowed to perform. - :type allow: int - :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. - :type deny: int - :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` - :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` - """ - - _attribute_map = { - 'allow': {'key': 'allow', 'type': 'int'}, - 'deny': {'key': 'deny', 'type': 'int'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AceExtendedInformation'} - } - - def __init__(self, allow=None, deny=None, descriptor=None, extended_info=None): - super(AccessControlEntry, self).__init__() - self.allow = allow - self.deny = deny - self.descriptor = descriptor - self.extended_info = extended_info diff --git a/vsts/vsts/security/v4_1/models/access_control_list.py b/vsts/vsts/security/v4_1/models/access_control_list.py deleted file mode 100644 index 24bf1bc1..00000000 --- a/vsts/vsts/security/v4_1/models/access_control_list.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessControlList(Model): - """AccessControlList. - - :param aces_dictionary: Storage of permissions keyed on the identity the permission is for. - :type aces_dictionary: dict - :param include_extended_info: True if this ACL holds ACEs that have extended information. - :type include_extended_info: bool - :param inherit_permissions: True if the given token inherits permissions from parents. - :type inherit_permissions: bool - :param token: The token that this AccessControlList is for. - :type token: str - """ - - _attribute_map = { - 'aces_dictionary': {'key': 'acesDictionary', 'type': '{AccessControlEntry}'}, - 'include_extended_info': {'key': 'includeExtendedInfo', 'type': 'bool'}, - 'inherit_permissions': {'key': 'inheritPermissions', 'type': 'bool'}, - 'token': {'key': 'token', 'type': 'str'} - } - - def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_permissions=None, token=None): - super(AccessControlList, self).__init__() - self.aces_dictionary = aces_dictionary - self.include_extended_info = include_extended_info - self.inherit_permissions = inherit_permissions - self.token = token diff --git a/vsts/vsts/security/v4_1/models/access_control_lists_collection.py b/vsts/vsts/security/v4_1/models/access_control_lists_collection.py deleted file mode 100644 index c6ecd6d0..00000000 --- a/vsts/vsts/security/v4_1/models/access_control_lists_collection.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessControlListsCollection(Model): - """AccessControlListsCollection. - - """ - - _attribute_map = { - } - - def __init__(self): - super(AccessControlListsCollection, self).__init__() diff --git a/vsts/vsts/security/v4_1/models/ace_extended_information.py b/vsts/vsts/security/v4_1/models/ace_extended_information.py deleted file mode 100644 index 9c639473..00000000 --- a/vsts/vsts/security/v4_1/models/ace_extended_information.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AceExtendedInformation(Model): - """AceExtendedInformation. - - :param effective_allow: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. - :type effective_allow: int - :param effective_deny: This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. - :type effective_deny: int - :param inherited_allow: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. - :type inherited_allow: int - :param inherited_deny: These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. - :type inherited_deny: int - """ - - _attribute_map = { - 'effective_allow': {'key': 'effectiveAllow', 'type': 'int'}, - 'effective_deny': {'key': 'effectiveDeny', 'type': 'int'}, - 'inherited_allow': {'key': 'inheritedAllow', 'type': 'int'}, - 'inherited_deny': {'key': 'inheritedDeny', 'type': 'int'} - } - - def __init__(self, effective_allow=None, effective_deny=None, inherited_allow=None, inherited_deny=None): - super(AceExtendedInformation, self).__init__() - self.effective_allow = effective_allow - self.effective_deny = effective_deny - self.inherited_allow = inherited_allow - self.inherited_deny = inherited_deny diff --git a/vsts/vsts/security/v4_1/models/action_definition.py b/vsts/vsts/security/v4_1/models/action_definition.py deleted file mode 100644 index 87b96fd9..00000000 --- a/vsts/vsts/security/v4_1/models/action_definition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ActionDefinition(Model): - """ActionDefinition. - - :param bit: The bit mask integer for this action. Must be a power of 2. - :type bit: int - :param display_name: The localized display name for this action. - :type display_name: str - :param name: The non-localized name for this action. - :type name: str - :param namespace_id: The namespace that this action belongs to. This will only be used for reading from the database. - :type namespace_id: str - """ - - _attribute_map = { - 'bit': {'key': 'bit', 'type': 'int'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'namespace_id': {'key': 'namespaceId', 'type': 'str'} - } - - def __init__(self, bit=None, display_name=None, name=None, namespace_id=None): - super(ActionDefinition, self).__init__() - self.bit = bit - self.display_name = display_name - self.name = name - self.namespace_id = namespace_id diff --git a/vsts/vsts/security/v4_1/models/permission_evaluation.py b/vsts/vsts/security/v4_1/models/permission_evaluation.py deleted file mode 100644 index 85764cf6..00000000 --- a/vsts/vsts/security/v4_1/models/permission_evaluation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PermissionEvaluation(Model): - """PermissionEvaluation. - - :param permissions: Permission bit for this evaluated permission. - :type permissions: int - :param security_namespace_id: Security namespace identifier for this evaluated permission. - :type security_namespace_id: str - :param token: Security namespace-specific token for this evaluated permission. - :type token: str - :param value: Permission evaluation value. - :type value: bool - """ - - _attribute_map = { - 'permissions': {'key': 'permissions', 'type': 'int'}, - 'security_namespace_id': {'key': 'securityNamespaceId', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'bool'} - } - - def __init__(self, permissions=None, security_namespace_id=None, token=None, value=None): - super(PermissionEvaluation, self).__init__() - self.permissions = permissions - self.security_namespace_id = security_namespace_id - self.token = token - self.value = value diff --git a/vsts/vsts/security/v4_1/models/permission_evaluation_batch.py b/vsts/vsts/security/v4_1/models/permission_evaluation_batch.py deleted file mode 100644 index ae6b6dc5..00000000 --- a/vsts/vsts/security/v4_1/models/permission_evaluation_batch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PermissionEvaluationBatch(Model): - """PermissionEvaluationBatch. - - :param always_allow_administrators: - :type always_allow_administrators: bool - :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` - """ - - _attribute_map = { - 'always_allow_administrators': {'key': 'alwaysAllowAdministrators', 'type': 'bool'}, - 'evaluations': {'key': 'evaluations', 'type': '[PermissionEvaluation]'} - } - - def __init__(self, always_allow_administrators=None, evaluations=None): - super(PermissionEvaluationBatch, self).__init__() - self.always_allow_administrators = always_allow_administrators - self.evaluations = evaluations diff --git a/vsts/vsts/security/v4_1/models/security_namespace_description.py b/vsts/vsts/security/v4_1/models/security_namespace_description.py deleted file mode 100644 index 40faea8e..00000000 --- a/vsts/vsts/security/v4_1/models/security_namespace_description.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SecurityNamespaceDescription(Model): - """SecurityNamespaceDescription. - - :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` - :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. - :type dataspace_category: str - :param display_name: This localized name for this namespace. - :type display_name: str - :param element_length: If the security tokens this namespace will be operating on need to be split on certain character lengths to determine its elements, that length should be specified here. If not, this value will be -1. - :type element_length: int - :param extension_type: This is the type of the extension that should be loaded from the plugins directory for extending this security namespace. - :type extension_type: str - :param is_remotable: If true, the security namespace is remotable, allowing another service to proxy the namespace. - :type is_remotable: bool - :param name: This non-localized for this namespace. - :type name: str - :param namespace_id: The unique identifier for this namespace. - :type namespace_id: str - :param read_permission: The permission bits needed by a user in order to read security data on the Security Namespace. - :type read_permission: int - :param separator_value: If the security tokens this namespace will be operating on need to be split on certain characters to determine its elements that character should be specified here. If not, this value will be the null character. - :type separator_value: str - :param structure_value: Used to send information about the structure of the security namespace over the web service. - :type structure_value: int - :param system_bit_mask: The bits reserved by system store - :type system_bit_mask: int - :param use_token_translator: If true, the security service will expect an ISecurityDataspaceTokenTranslator plugin to exist for this namespace - :type use_token_translator: bool - :param write_permission: The permission bits needed by a user in order to modify security data on the Security Namespace. - :type write_permission: int - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[ActionDefinition]'}, - 'dataspace_category': {'key': 'dataspaceCategory', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'element_length': {'key': 'elementLength', 'type': 'int'}, - 'extension_type': {'key': 'extensionType', 'type': 'str'}, - 'is_remotable': {'key': 'isRemotable', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, - 'read_permission': {'key': 'readPermission', 'type': 'int'}, - 'separator_value': {'key': 'separatorValue', 'type': 'str'}, - 'structure_value': {'key': 'structureValue', 'type': 'int'}, - 'system_bit_mask': {'key': 'systemBitMask', 'type': 'int'}, - 'use_token_translator': {'key': 'useTokenTranslator', 'type': 'bool'}, - 'write_permission': {'key': 'writePermission', 'type': 'int'} - } - - def __init__(self, actions=None, dataspace_category=None, display_name=None, element_length=None, extension_type=None, is_remotable=None, name=None, namespace_id=None, read_permission=None, separator_value=None, structure_value=None, system_bit_mask=None, use_token_translator=None, write_permission=None): - super(SecurityNamespaceDescription, self).__init__() - self.actions = actions - self.dataspace_category = dataspace_category - self.display_name = display_name - self.element_length = element_length - self.extension_type = extension_type - self.is_remotable = is_remotable - self.name = name - self.namespace_id = namespace_id - self.read_permission = read_permission - self.separator_value = separator_value - self.structure_value = structure_value - self.system_bit_mask = system_bit_mask - self.use_token_translator = use_token_translator - self.write_permission = write_permission diff --git a/vsts/vsts/service_endpoint/__init__.py b/vsts/vsts/service_endpoint/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/service_endpoint/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_endpoint/v4_1/__init__.py b/vsts/vsts/service_endpoint/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/service_endpoint/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_endpoint/v4_1/models/__init__.py b/vsts/vsts/service_endpoint/v4_1/models/__init__.py deleted file mode 100644 index 47ad6d93..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/__init__.py +++ /dev/null @@ -1,75 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .authentication_scheme_reference import AuthenticationSchemeReference -from .authorization_header import AuthorizationHeader -from .client_certificate import ClientCertificate -from .data_source import DataSource -from .data_source_binding import DataSourceBinding -from .data_source_binding_base import DataSourceBindingBase -from .data_source_details import DataSourceDetails -from .dependency_binding import DependencyBinding -from .dependency_data import DependencyData -from .depends_on import DependsOn -from .endpoint_authorization import EndpointAuthorization -from .endpoint_url import EndpointUrl -from .graph_subject_base import GraphSubjectBase -from .help_link import HelpLink -from .identity_ref import IdentityRef -from .input_descriptor import InputDescriptor -from .input_validation import InputValidation -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .reference_links import ReferenceLinks -from .result_transformation_details import ResultTransformationDetails -from .service_endpoint import ServiceEndpoint -from .service_endpoint_authentication_scheme import ServiceEndpointAuthenticationScheme -from .service_endpoint_details import ServiceEndpointDetails -from .service_endpoint_execution_data import ServiceEndpointExecutionData -from .service_endpoint_execution_owner import ServiceEndpointExecutionOwner -from .service_endpoint_execution_record import ServiceEndpointExecutionRecord -from .service_endpoint_execution_records_input import ServiceEndpointExecutionRecordsInput -from .service_endpoint_request import ServiceEndpointRequest -from .service_endpoint_request_result import ServiceEndpointRequestResult -from .service_endpoint_type import ServiceEndpointType - -__all__ = [ - 'AuthenticationSchemeReference', - 'AuthorizationHeader', - 'ClientCertificate', - 'DataSource', - 'DataSourceBinding', - 'DataSourceBindingBase', - 'DataSourceDetails', - 'DependencyBinding', - 'DependencyData', - 'DependsOn', - 'EndpointAuthorization', - 'EndpointUrl', - 'GraphSubjectBase', - 'HelpLink', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'ReferenceLinks', - 'ResultTransformationDetails', - 'ServiceEndpoint', - 'ServiceEndpointAuthenticationScheme', - 'ServiceEndpointDetails', - 'ServiceEndpointExecutionData', - 'ServiceEndpointExecutionOwner', - 'ServiceEndpointExecutionRecord', - 'ServiceEndpointExecutionRecordsInput', - 'ServiceEndpointRequest', - 'ServiceEndpointRequestResult', - 'ServiceEndpointType', -] diff --git a/vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py b/vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py deleted file mode 100644 index 8dbe5a63..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/authentication_scheme_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthenticationSchemeReference(Model): - """AuthenticationSchemeReference. - - :param inputs: - :type inputs: dict - :param type: - :type type: str - """ - - _attribute_map = { - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, inputs=None, type=None): - super(AuthenticationSchemeReference, self).__init__() - self.inputs = inputs - self.type = type diff --git a/vsts/vsts/service_endpoint/v4_1/models/authorization_header.py b/vsts/vsts/service_endpoint/v4_1/models/authorization_header.py deleted file mode 100644 index 3657c7a3..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/authorization_header.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthorizationHeader(Model): - """AuthorizationHeader. - - :param name: Gets or sets the name of authorization header. - :type name: str - :param value: Gets or sets the value of authorization header. - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(AuthorizationHeader, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/client_certificate.py b/vsts/vsts/service_endpoint/v4_1/models/client_certificate.py deleted file mode 100644 index 2eebb4c2..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/client_certificate.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ClientCertificate(Model): - """ClientCertificate. - - :param value: Gets or sets the value of client certificate. - :type value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, value=None): - super(ClientCertificate, self).__init__() - self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source.py b/vsts/vsts/service_endpoint/v4_1/models/data_source.py deleted file mode 100644 index f63688d7..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/data_source.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSource(Model): - """DataSource. - - :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` - :param endpoint_url: - :type endpoint_url: str - :param headers: - :type headers: list of :class:`AuthorizationHeader ` - :param name: - :type name: str - :param resource_url: - :type resource_url: str - :param result_selector: - :type result_selector: str - """ - - _attribute_map = { - 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'} - } - - def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): - super(DataSource, self).__init__() - self.authentication_scheme = authentication_scheme - self.endpoint_url = endpoint_url - self.headers = headers - self.name = name - self.resource_url = resource_url - self.result_selector = result_selector diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py b/vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py deleted file mode 100644 index 75c33203..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/data_source_binding.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .data_source_binding_base import DataSourceBindingBase - - -class DataSourceBinding(DataSourceBindingBase): - """DataSourceBinding. - - :param data_source_name: Gets or sets the name of the data source. - :type data_source_name: str - :param endpoint_id: Gets or sets the endpoint Id. - :type endpoint_id: str - :param endpoint_url: Gets or sets the url of the service endpoint. - :type endpoint_url: str - :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets or sets the parameters for the data source. - :type parameters: dict - :param result_selector: Gets or sets the result selector. - :type result_selector: str - :param result_template: Gets or sets the result template. - :type result_template: str - :param target: Gets or sets the target of the data source. - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py b/vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py deleted file mode 100644 index 04638445..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/data_source_binding_base.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: Gets or sets the name of the data source. - :type data_source_name: str - :param endpoint_id: Gets or sets the endpoint Id. - :type endpoint_id: str - :param endpoint_url: Gets or sets the url of the service endpoint. - :type endpoint_url: str - :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets or sets the parameters for the data source. - :type parameters: dict - :param result_selector: Gets or sets the result selector. - :type result_selector: str - :param result_template: Gets or sets the result template. - :type result_template: str - :param target: Gets or sets the target of the data source. - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.headers = headers - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target diff --git a/vsts/vsts/service_endpoint/v4_1/models/data_source_details.py b/vsts/vsts/service_endpoint/v4_1/models/data_source_details.py deleted file mode 100644 index 020ed38a..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/data_source_details.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceDetails(Model): - """DataSourceDetails. - - :param data_source_name: Gets or sets the data source name. - :type data_source_name: str - :param data_source_url: Gets or sets the data source url. - :type data_source_url: str - :param headers: Gets or sets the request headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets the parameters of data source. - :type parameters: dict - :param resource_url: Gets or sets the resource url of data source. - :type resource_url: str - :param result_selector: Gets or sets the result selector. - :type result_selector: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'} - } - - def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): - super(DataSourceDetails, self).__init__() - self.data_source_name = data_source_name - self.data_source_url = data_source_url - self.headers = headers - self.parameters = parameters - self.resource_url = resource_url - self.result_selector = result_selector diff --git a/vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py b/vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py deleted file mode 100644 index e8eb3ac1..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/dependency_binding.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependencyBinding(Model): - """DependencyBinding. - - :param key: - :type key: str - :param value: - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, key=None, value=None): - super(DependencyBinding, self).__init__() - self.key = key - self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/dependency_data.py b/vsts/vsts/service_endpoint/v4_1/models/dependency_data.py deleted file mode 100644 index 3faa1790..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/dependency_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependencyData(Model): - """DependencyData. - - :param input: - :type input: str - :param map: - :type map: list of { key: str; value: [{ key: str; value: str }] } - """ - - _attribute_map = { - 'input': {'key': 'input', 'type': 'str'}, - 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} - } - - def __init__(self, input=None, map=None): - super(DependencyData, self).__init__() - self.input = input - self.map = map diff --git a/vsts/vsts/service_endpoint/v4_1/models/depends_on.py b/vsts/vsts/service_endpoint/v4_1/models/depends_on.py deleted file mode 100644 index 8180b206..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/depends_on.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependsOn(Model): - """DependsOn. - - :param input: - :type input: str - :param map: - :type map: list of :class:`DependencyBinding ` - """ - - _attribute_map = { - 'input': {'key': 'input', 'type': 'str'}, - 'map': {'key': 'map', 'type': '[DependencyBinding]'} - } - - def __init__(self, input=None, map=None): - super(DependsOn, self).__init__() - self.input = input - self.map = map diff --git a/vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py b/vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py deleted file mode 100644 index 6fc33ab8..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/endpoint_authorization.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EndpointAuthorization(Model): - """EndpointAuthorization. - - :param parameters: Gets or sets the parameters for the selected authorization scheme. - :type parameters: dict - :param scheme: Gets or sets the scheme used for service endpoint authentication. - :type scheme: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'scheme': {'key': 'scheme', 'type': 'str'} - } - - def __init__(self, parameters=None, scheme=None): - super(EndpointAuthorization, self).__init__() - self.parameters = parameters - self.scheme = scheme diff --git a/vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py b/vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py deleted file mode 100644 index bf46276d..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/endpoint_url.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EndpointUrl(Model): - """EndpointUrl. - - :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` - :param display_name: Gets or sets the display name of service endpoint url. - :type display_name: str - :param help_text: Gets or sets the help text of service endpoint url. - :type help_text: str - :param is_visible: Gets or sets the visibility of service endpoint url. - :type is_visible: str - :param value: Gets or sets the value of service endpoint url. - :type value: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'help_text': {'key': 'helpText', 'type': 'str'}, - 'is_visible': {'key': 'isVisible', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): - super(EndpointUrl, self).__init__() - self.depends_on = depends_on - self.display_name = display_name - self.help_text = help_text - self.is_visible = is_visible - self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py b/vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/service_endpoint/v4_1/models/help_link.py b/vsts/vsts/service_endpoint/v4_1/models/help_link.py deleted file mode 100644 index b48e4910..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/help_link.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class HelpLink(Model): - """HelpLink. - - :param text: - :type text: str - :param url: - :type url: str - """ - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, text=None, url=None): - super(HelpLink, self).__init__() - self.text = text - self.url = url diff --git a/vsts/vsts/service_endpoint/v4_1/models/identity_ref.py b/vsts/vsts/service_endpoint/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py b/vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py deleted file mode 100644 index da334836..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/input_descriptor.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_validation.py b/vsts/vsts/service_endpoint/v4_1/models/input_validation.py deleted file mode 100644 index f2f1a434..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/input_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_value.py b/vsts/vsts/service_endpoint/v4_1/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_values.py b/vsts/vsts/service_endpoint/v4_1/models/input_values.py deleted file mode 100644 index 69472f8d..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/service_endpoint/v4_1/models/input_values_error.py b/vsts/vsts/service_endpoint/v4_1/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/service_endpoint/v4_1/models/reference_links.py b/vsts/vsts/service_endpoint/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py b/vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py deleted file mode 100644 index 9464fc3d..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/result_transformation_details.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResultTransformationDetails(Model): - """ResultTransformationDetails. - - :param result_template: Gets or sets the template for result transformation. - :type result_template: str - """ - - _attribute_map = { - 'result_template': {'key': 'resultTemplate', 'type': 'str'} - } - - def __init__(self, result_template=None): - super(ResultTransformationDetails, self).__init__() - self.result_template = result_template diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py deleted file mode 100644 index edaa4404..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpoint(Model): - """ServiceEndpoint. - - :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` - :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` - :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` - :param data: - :type data: dict - :param description: Gets or sets the description of endpoint. - :type description: str - :param group_scope_id: - :type group_scope_id: str - :param id: Gets or sets the identifier of this endpoint. - :type id: str - :param is_ready: EndPoint state indictor - :type is_ready: bool - :param name: Gets or sets the friendly name of the endpoint. - :type name: str - :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` - :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` - :param type: Gets or sets the type of the endpoint. - :type type: str - :param url: Gets or sets the url of the endpoint. - :type url: str - """ - - _attribute_map = { - 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, - 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_ready': {'key': 'isReady', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): - super(ServiceEndpoint, self).__init__() - self.administrators_group = administrators_group - self.authorization = authorization - self.created_by = created_by - self.data = data - self.description = description - self.group_scope_id = group_scope_id - self.id = id - self.is_ready = is_ready - self.name = name - self.operation_status = operation_status - self.readers_group = readers_group - self.type = type - self.url = url diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py deleted file mode 100644 index 00dec063..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_authentication_scheme.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointAuthenticationScheme(Model): - """ServiceEndpointAuthenticationScheme. - - :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` - :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` - :param display_name: Gets or sets the display name for the service endpoint authentication scheme. - :type display_name: str - :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` - :param scheme: Gets or sets the scheme for service endpoint authentication. - :type scheme: str - """ - - _attribute_map = { - 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, - 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'scheme': {'key': 'scheme', 'type': 'str'} - } - - def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): - super(ServiceEndpointAuthenticationScheme, self).__init__() - self.authorization_headers = authorization_headers - self.client_certificates = client_certificates - self.display_name = display_name - self.input_descriptors = input_descriptors - self.scheme = scheme diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py deleted file mode 100644 index 9b048d3d..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_details.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointDetails(Model): - """ServiceEndpointDetails. - - :param authorization: Gets or sets the authorization of service endpoint. - :type authorization: :class:`EndpointAuthorization ` - :param data: Gets or sets the data of service endpoint. - :type data: dict - :param type: Gets or sets the type of service endpoint. - :type type: str - :param url: Gets or sets the connection url of service endpoint. - :type url: str - """ - - _attribute_map = { - 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, authorization=None, data=None, type=None, url=None): - super(ServiceEndpointDetails, self).__init__() - self.authorization = authorization - self.data = data - self.type = type - self.url = url diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py deleted file mode 100644 index d2281025..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_data.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionData(Model): - """ServiceEndpointExecutionData. - - :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`ServiceEndpointExecutionOwner ` - :param finish_time: Gets the finish time of service endpoint execution. - :type finish_time: datetime - :param id: Gets the Id of service endpoint execution data. - :type id: long - :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`ServiceEndpointExecutionOwner ` - :param plan_type: Gets the plan type of service endpoint execution data. - :type plan_type: str - :param result: Gets the result of service endpoint execution. - :type result: object - :param start_time: Gets the start time of service endpoint execution. - :type start_time: datetime - """ - - _attribute_map = { - 'definition': {'key': 'definition', 'type': 'ServiceEndpointExecutionOwner'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'owner': {'key': 'owner', 'type': 'ServiceEndpointExecutionOwner'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'} - } - - def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): - super(ServiceEndpointExecutionData, self).__init__() - self.definition = definition - self.finish_time = finish_time - self.id = id - self.owner = owner - self.plan_type = plan_type - self.result = result - self.start_time = start_time diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py deleted file mode 100644 index f72bd02d..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_owner.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionOwner(Model): - """ServiceEndpointExecutionOwner. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: Gets or sets the Id of service endpoint execution owner. - :type id: int - :param name: Gets or sets the name of service endpoint execution owner. - :type name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None): - super(ServiceEndpointExecutionOwner, self).__init__() - self._links = _links - self.id = id - self.name = name diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py deleted file mode 100644 index 3aae5e95..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_record.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionRecord(Model): - """ServiceEndpointExecutionRecord. - - :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_id: Gets the Id of service endpoint. - :type endpoint_id: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'} - } - - def __init__(self, data=None, endpoint_id=None): - super(ServiceEndpointExecutionRecord, self).__init__() - self.data = data - self.endpoint_id = endpoint_id diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py deleted file mode 100644 index 04924f8f..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_execution_records_input.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionRecordsInput(Model): - """ServiceEndpointExecutionRecordsInput. - - :param data: - :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_ids: - :type endpoint_ids: list of str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, - 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} - } - - def __init__(self, data=None, endpoint_ids=None): - super(ServiceEndpointExecutionRecordsInput, self).__init__() - self.data = data - self.endpoint_ids = endpoint_ids diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py deleted file mode 100644 index 457231d0..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointRequest(Model): - """ServiceEndpointRequest. - - :param data_source_details: Gets or sets the data source details for the service endpoint request. - :type data_source_details: :class:`DataSourceDetails ` - :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. - :type result_transformation_details: :class:`ResultTransformationDetails ` - :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. - :type service_endpoint_details: :class:`ServiceEndpointDetails ` - """ - - _attribute_map = { - 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, - 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, - 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} - } - - def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): - super(ServiceEndpointRequest, self).__init__() - self.data_source_details = data_source_details - self.result_transformation_details = result_transformation_details - self.service_endpoint_details = service_endpoint_details diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py deleted file mode 100644 index 2da31abf..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_request_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointRequestResult(Model): - """ServiceEndpointRequestResult. - - :param error_message: Gets or sets the error message of the service endpoint request result. - :type error_message: str - :param result: Gets or sets the result of service endpoint request. - :type result: :class:`object ` - :param status_code: Gets or sets the status code of the service endpoint request result. - :type status_code: object - """ - - _attribute_map = { - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'status_code': {'key': 'statusCode', 'type': 'object'} - } - - def __init__(self, error_message=None, result=None, status_code=None): - super(ServiceEndpointRequestResult, self).__init__() - self.error_message = error_message - self.result = result - self.status_code = status_code diff --git a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py b/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py deleted file mode 100644 index c5fea2fa..00000000 --- a/vsts/vsts/service_endpoint/v4_1/models/service_endpoint_type.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointType(Model): - """ServiceEndpointType. - - :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` - :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` - :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` - :param description: Gets or sets the description of service endpoint type. - :type description: str - :param display_name: Gets or sets the display name of service endpoint type. - :type display_name: str - :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` - :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` - :param help_mark_down: - :type help_mark_down: str - :param icon_url: Gets or sets the icon url of service endpoint type. - :type icon_url: str - :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets or sets the name of service endpoint type. - :type name: str - :param trusted_hosts: Trusted hosts of a service endpoint type. - :type trusted_hosts: list of str - :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. - :type ui_contribution_id: str - """ - - _attribute_map = { - 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, - 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, - 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, - 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, - 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} - } - - def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): - super(ServiceEndpointType, self).__init__() - self.authentication_schemes = authentication_schemes - self.data_sources = data_sources - self.dependency_data = dependency_data - self.description = description - self.display_name = display_name - self.endpoint_url = endpoint_url - self.help_link = help_link - self.help_mark_down = help_mark_down - self.icon_url = icon_url - self.input_descriptors = input_descriptors - self.name = name - self.trusted_hosts = trusted_hosts - self.ui_contribution_id = ui_contribution_id diff --git a/vsts/vsts/service_hooks/__init__.py b/vsts/vsts/service_hooks/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/service_hooks/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_hooks/v4_0/__init__.py b/vsts/vsts/service_hooks/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/service_hooks/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_hooks/v4_0/models/__init__.py b/vsts/vsts/service_hooks/v4_0/models/__init__.py deleted file mode 100644 index 30e3e5ee..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/__init__.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .consumer import Consumer -from .consumer_action import ConsumerAction -from .event import Event -from .event_type_descriptor import EventTypeDescriptor -from .external_configuration_descriptor import ExternalConfigurationDescriptor -from .formatted_event_message import FormattedEventMessage -from .identity_ref import IdentityRef -from .input_descriptor import InputDescriptor -from .input_filter import InputFilter -from .input_filter_condition import InputFilterCondition -from .input_validation import InputValidation -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .input_values_query import InputValuesQuery -from .notification import Notification -from .notification_details import NotificationDetails -from .notification_results_summary_detail import NotificationResultsSummaryDetail -from .notifications_query import NotificationsQuery -from .notification_summary import NotificationSummary -from .publisher import Publisher -from .publisher_event import PublisherEvent -from .publishers_query import PublishersQuery -from .reference_links import ReferenceLinks -from .resource_container import ResourceContainer -from .session_token import SessionToken -from .subscription import Subscription -from .subscriptions_query import SubscriptionsQuery -from .versioned_resource import VersionedResource - -__all__ = [ - 'Consumer', - 'ConsumerAction', - 'Event', - 'EventTypeDescriptor', - 'ExternalConfigurationDescriptor', - 'FormattedEventMessage', - 'IdentityRef', - 'InputDescriptor', - 'InputFilter', - 'InputFilterCondition', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Notification', - 'NotificationDetails', - 'NotificationResultsSummaryDetail', - 'NotificationsQuery', - 'NotificationSummary', - 'Publisher', - 'PublisherEvent', - 'PublishersQuery', - 'ReferenceLinks', - 'ResourceContainer', - 'SessionToken', - 'Subscription', - 'SubscriptionsQuery', - 'VersionedResource', -] diff --git a/vsts/vsts/service_hooks/v4_0/models/consumer.py b/vsts/vsts/service_hooks/v4_0/models/consumer.py deleted file mode 100644 index 39ccb20f..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/consumer.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Consumer(Model): - """Consumer. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` - :param authentication_type: Gets or sets this consumer's authentication type. - :type authentication_type: object - :param description: Gets or sets this consumer's localized description. - :type description: str - :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` - :param id: Gets or sets this consumer's identifier. - :type id: str - :param image_url: Gets or sets this consumer's image URL, if any. - :type image_url: str - :param information_url: Gets or sets this consumer's information URL, if any. - :type information_url: str - :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets or sets this consumer's localized name. - :type name: str - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'actions': {'key': 'actions', 'type': '[ConsumerAction]'}, - 'authentication_type': {'key': 'authenticationType', 'type': 'object'}, - 'description': {'key': 'description', 'type': 'str'}, - 'external_configuration': {'key': 'externalConfiguration', 'type': 'ExternalConfigurationDescriptor'}, - 'id': {'key': 'id', 'type': 'str'}, - 'image_url': {'key': 'imageUrl', 'type': 'str'}, - 'information_url': {'key': 'informationUrl', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, actions=None, authentication_type=None, description=None, external_configuration=None, id=None, image_url=None, information_url=None, input_descriptors=None, name=None, url=None): - super(Consumer, self).__init__() - self._links = _links - self.actions = actions - self.authentication_type = authentication_type - self.description = description - self.external_configuration = external_configuration - self.id = id - self.image_url = image_url - self.information_url = information_url - self.input_descriptors = input_descriptors - self.name = name - self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/consumer_action.py b/vsts/vsts/service_hooks/v4_0/models/consumer_action.py deleted file mode 100644 index 34960000..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/consumer_action.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ConsumerAction(Model): - """ConsumerAction. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. - :type allow_resource_version_override: bool - :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. - :type consumer_id: str - :param description: Gets or sets this action's localized description. - :type description: str - :param id: Gets or sets this action's identifier. - :type id: str - :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets or sets this action's localized name. - :type name: str - :param supported_event_types: Gets or sets this action's supported event identifiers. - :type supported_event_types: list of str - :param supported_resource_versions: Gets or sets this action's supported resource versions. - :type supported_resource_versions: dict - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allow_resource_version_override': {'key': 'allowResourceVersionOverride', 'type': 'bool'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'supported_event_types': {'key': 'supportedEventTypes', 'type': '[str]'}, - 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '{[str]}'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, allow_resource_version_override=None, consumer_id=None, description=None, id=None, input_descriptors=None, name=None, supported_event_types=None, supported_resource_versions=None, url=None): - super(ConsumerAction, self).__init__() - self._links = _links - self.allow_resource_version_override = allow_resource_version_override - self.consumer_id = consumer_id - self.description = description - self.id = id - self.input_descriptors = input_descriptors - self.name = name - self.supported_event_types = supported_event_types - self.supported_resource_versions = supported_resource_versions - self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/event.py b/vsts/vsts/service_hooks/v4_0/models/event.py deleted file mode 100644 index a4e448f9..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/event.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Event(Model): - """Event. - - :param created_date: Gets or sets the UTC-based date and time that this event was created. - :type created_date: datetime - :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` - :param event_type: Gets or sets the type of this event. - :type event_type: str - :param id: Gets or sets the unique identifier of this event. - :type id: str - :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` - :param publisher_id: Gets or sets the identifier of the publisher that raised this event. - :type publisher_id: str - :param resource: Gets or sets the data associated with this event. - :type resource: object - :param resource_containers: Gets or sets the resource containers. - :type resource_containers: dict - :param resource_version: Gets or sets the version of the data associated with this event. - :type resource_version: str - :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'detailed_message': {'key': 'detailedMessage', 'type': 'FormattedEventMessage'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'FormattedEventMessage'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'object'}, - 'resource_containers': {'key': 'resourceContainers', 'type': '{ResourceContainer}'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, - 'session_token': {'key': 'sessionToken', 'type': 'SessionToken'} - } - - def __init__(self, created_date=None, detailed_message=None, event_type=None, id=None, message=None, publisher_id=None, resource=None, resource_containers=None, resource_version=None, session_token=None): - super(Event, self).__init__() - self.created_date = created_date - self.detailed_message = detailed_message - self.event_type = event_type - self.id = id - self.message = message - self.publisher_id = publisher_id - self.resource = resource - self.resource_containers = resource_containers - self.resource_version = resource_version - self.session_token = session_token diff --git a/vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py b/vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py deleted file mode 100644 index 18e95e09..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/event_type_descriptor.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventTypeDescriptor(Model): - """EventTypeDescriptor. - - :param description: A localized description of the event type - :type description: str - :param id: A unique id for the event type - :type id: str - :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: A localized friendly name for the event type - :type name: str - :param publisher_id: A unique id for the publisher of this event type - :type publisher_id: str - :param supported_resource_versions: Supported versions for the event's resource payloads. - :type supported_resource_versions: list of str - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, input_descriptors=None, name=None, publisher_id=None, supported_resource_versions=None, url=None): - super(EventTypeDescriptor, self).__init__() - self.description = description - self.id = id - self.input_descriptors = input_descriptors - self.name = name - self.publisher_id = publisher_id - self.supported_resource_versions = supported_resource_versions - self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py b/vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py deleted file mode 100644 index c2ab4f98..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/external_configuration_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExternalConfigurationDescriptor(Model): - """ExternalConfigurationDescriptor. - - :param create_subscription_url: Url of the site to create this type of subscription. - :type create_subscription_url: str - :param edit_subscription_property_name: The name of an input property that contains the URL to edit a subscription. - :type edit_subscription_property_name: str - :param hosted_only: True if the external configuration applies only to hosted. - :type hosted_only: bool - """ - - _attribute_map = { - 'create_subscription_url': {'key': 'createSubscriptionUrl', 'type': 'str'}, - 'edit_subscription_property_name': {'key': 'editSubscriptionPropertyName', 'type': 'str'}, - 'hosted_only': {'key': 'hostedOnly', 'type': 'bool'} - } - - def __init__(self, create_subscription_url=None, edit_subscription_property_name=None, hosted_only=None): - super(ExternalConfigurationDescriptor, self).__init__() - self.create_subscription_url = create_subscription_url - self.edit_subscription_property_name = edit_subscription_property_name - self.hosted_only = hosted_only diff --git a/vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py b/vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py deleted file mode 100644 index 7d513262..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/formatted_event_message.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FormattedEventMessage(Model): - """FormattedEventMessage. - - :param html: Gets or sets the html format of the message - :type html: str - :param markdown: Gets or sets the markdown format of the message - :type markdown: str - :param text: Gets or sets the raw text of the message - :type text: str - """ - - _attribute_map = { - 'html': {'key': 'html', 'type': 'str'}, - 'markdown': {'key': 'markdown', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'} - } - - def __init__(self, html=None, markdown=None, text=None): - super(FormattedEventMessage, self).__init__() - self.html = html - self.markdown = markdown - self.text = text diff --git a/vsts/vsts/service_hooks/v4_0/models/identity_ref.py b/vsts/vsts/service_hooks/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/input_descriptor.py b/vsts/vsts/service_hooks/v4_0/models/input_descriptor.py deleted file mode 100644 index 860efdcc..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_descriptor.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values diff --git a/vsts/vsts/service_hooks/v4_0/models/input_filter.py b/vsts/vsts/service_hooks/v4_0/models/input_filter.py deleted file mode 100644 index e13adab6..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_filter.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputFilter(Model): - """InputFilter. - - :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[InputFilterCondition]'} - } - - def __init__(self, conditions=None): - super(InputFilter, self).__init__() - self.conditions = conditions diff --git a/vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py b/vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py deleted file mode 100644 index 1a514738..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_filter_condition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputFilterCondition(Model): - """InputFilterCondition. - - :param case_sensitive: Whether or not to do a case sensitive match - :type case_sensitive: bool - :param input_id: The Id of the input to filter on - :type input_id: str - :param input_value: The "expected" input value to compare with the actual input value - :type input_value: str - :param operator: The operator applied between the expected and actual input value - :type operator: object - """ - - _attribute_map = { - 'case_sensitive': {'key': 'caseSensitive', 'type': 'bool'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'input_value': {'key': 'inputValue', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'object'} - } - - def __init__(self, case_sensitive=None, input_id=None, input_value=None, operator=None): - super(InputFilterCondition, self).__init__() - self.case_sensitive = case_sensitive - self.input_id = input_id - self.input_value = input_value - self.operator = operator diff --git a/vsts/vsts/service_hooks/v4_0/models/input_validation.py b/vsts/vsts/service_hooks/v4_0/models/input_validation.py deleted file mode 100644 index f2f1a434..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/service_hooks/v4_0/models/input_value.py b/vsts/vsts/service_hooks/v4_0/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/service_hooks/v4_0/models/input_values.py b/vsts/vsts/service_hooks/v4_0/models/input_values.py deleted file mode 100644 index 15d047fe..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/service_hooks/v4_0/models/input_values_error.py b/vsts/vsts/service_hooks/v4_0/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/service_hooks/v4_0/models/input_values_query.py b/vsts/vsts/service_hooks/v4_0/models/input_values_query.py deleted file mode 100644 index 26e4c954..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/input_values_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource diff --git a/vsts/vsts/service_hooks/v4_0/models/notification.py b/vsts/vsts/service_hooks/v4_0/models/notification.py deleted file mode 100644 index 6e6c71af..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/notification.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Notification(Model): - """Notification. - - :param created_date: Gets or sets date and time that this result was created. - :type created_date: datetime - :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` - :param event_id: The event id associated with this notification - :type event_id: str - :param id: The notification id - :type id: int - :param modified_date: Gets or sets date and time that this result was last modified. - :type modified_date: datetime - :param result: Result of the notification - :type result: object - :param status: Status of the notification - :type status: object - :param subscriber_id: The subscriber Id associated with this notification. This is the last identity who touched in the subscription. In case of test notifications it can be the tester if the subscription is not created yet. - :type subscriber_id: str - :param subscription_id: The subscription id associated with this notification - :type subscription_id: str - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'details': {'key': 'details', 'type': 'NotificationDetails'}, - 'event_id': {'key': 'eventId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'result': {'key': 'result', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'}, - 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, created_date=None, details=None, event_id=None, id=None, modified_date=None, result=None, status=None, subscriber_id=None, subscription_id=None): - super(Notification, self).__init__() - self.created_date = created_date - self.details = details - self.event_id = event_id - self.id = id - self.modified_date = modified_date - self.result = result - self.status = status - self.subscriber_id = subscriber_id - self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_0/models/notification_details.py b/vsts/vsts/service_hooks/v4_0/models/notification_details.py deleted file mode 100644 index 9f037e35..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/notification_details.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationDetails(Model): - """NotificationDetails. - - :param completed_date: Gets or sets the time that this notification was completed (response received from the consumer) - :type completed_date: datetime - :param consumer_action_id: Gets or sets this notification detail's consumer action identifier. - :type consumer_action_id: str - :param consumer_id: Gets or sets this notification detail's consumer identifier. - :type consumer_id: str - :param consumer_inputs: Gets or sets this notification detail's consumer inputs. - :type consumer_inputs: dict - :param dequeued_date: Gets or sets the time that this notification was dequeued for processing - :type dequeued_date: datetime - :param error_detail: Gets or sets this notification detail's error detail. - :type error_detail: str - :param error_message: Gets or sets this notification detail's error message. - :type error_message: str - :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` - :param event_type: Gets or sets this notification detail's event type. - :type event_type: str - :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) - :type processed_date: datetime - :param publisher_id: Gets or sets this notification detail's publisher identifier. - :type publisher_id: str - :param publisher_inputs: Gets or sets this notification detail's publisher inputs. - :type publisher_inputs: dict - :param queued_date: Gets or sets the time that this notification was queued (created) - :type queued_date: datetime - :param request: Gets or sets this notification detail's request. - :type request: str - :param request_attempts: Number of requests attempted to be sent to the consumer - :type request_attempts: int - :param request_duration: Duration of the request to the consumer in seconds - :type request_duration: float - :param response: Gets or sets this notification detail's reponse. - :type response: str - """ - - _attribute_map = { - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, - 'dequeued_date': {'key': 'dequeuedDate', 'type': 'iso-8601'}, - 'error_detail': {'key': 'errorDetail', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'event': {'key': 'event', 'type': 'Event'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'processed_date': {'key': 'processedDate', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, - 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, - 'request': {'key': 'request', 'type': 'str'}, - 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, - 'request_duration': {'key': 'requestDuration', 'type': 'float'}, - 'response': {'key': 'response', 'type': 'str'} - } - - def __init__(self, completed_date=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, dequeued_date=None, error_detail=None, error_message=None, event=None, event_type=None, processed_date=None, publisher_id=None, publisher_inputs=None, queued_date=None, request=None, request_attempts=None, request_duration=None, response=None): - super(NotificationDetails, self).__init__() - self.completed_date = completed_date - self.consumer_action_id = consumer_action_id - self.consumer_id = consumer_id - self.consumer_inputs = consumer_inputs - self.dequeued_date = dequeued_date - self.error_detail = error_detail - self.error_message = error_message - self.event = event - self.event_type = event_type - self.processed_date = processed_date - self.publisher_id = publisher_id - self.publisher_inputs = publisher_inputs - self.queued_date = queued_date - self.request = request - self.request_attempts = request_attempts - self.request_duration = request_duration - self.response = response diff --git a/vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py b/vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py deleted file mode 100644 index eb8819fa..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/notification_results_summary_detail.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationResultsSummaryDetail(Model): - """NotificationResultsSummaryDetail. - - :param notification_count: Count of notification sent out with a matching result. - :type notification_count: int - :param result: Result of the notification - :type result: object - """ - - _attribute_map = { - 'notification_count': {'key': 'notificationCount', 'type': 'int'}, - 'result': {'key': 'result', 'type': 'object'} - } - - def __init__(self, notification_count=None, result=None): - super(NotificationResultsSummaryDetail, self).__init__() - self.notification_count = notification_count - self.result = result diff --git a/vsts/vsts/service_hooks/v4_0/models/notification_summary.py b/vsts/vsts/service_hooks/v4_0/models/notification_summary.py deleted file mode 100644 index b212ac0a..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/notification_summary.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSummary(Model): - """NotificationSummary. - - :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` - :param subscription_id: The subscription id associated with this notification - :type subscription_id: str - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[NotificationResultsSummaryDetail]'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, results=None, subscription_id=None): - super(NotificationSummary, self).__init__() - self.results = results - self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_0/models/notifications_query.py b/vsts/vsts/service_hooks/v4_0/models/notifications_query.py deleted file mode 100644 index 5c70f4a7..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/notifications_query.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationsQuery(Model): - """NotificationsQuery. - - :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` - :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. - :type include_details: bool - :param max_created_date: Optional maximum date at which the notification was created - :type max_created_date: datetime - :param max_results: Optional maximum number of overall results to include - :type max_results: int - :param max_results_per_subscription: Optional maximum number of results for each subscription. Only takes effect when a list of subscription ids is supplied in the query. - :type max_results_per_subscription: int - :param min_created_date: Optional minimum date at which the notification was created - :type min_created_date: datetime - :param publisher_id: Optional publisher id to restrict the results to - :type publisher_id: str - :param results: Results from the query - :type results: list of :class:`Notification ` - :param result_type: Optional notification result type to filter results to - :type result_type: object - :param status: Optional notification status to filter results to - :type status: object - :param subscription_ids: Optional list of subscription ids to restrict the results to - :type subscription_ids: list of str - :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` - """ - - _attribute_map = { - 'associated_subscriptions': {'key': 'associatedSubscriptions', 'type': '[Subscription]'}, - 'include_details': {'key': 'includeDetails', 'type': 'bool'}, - 'max_created_date': {'key': 'maxCreatedDate', 'type': 'iso-8601'}, - 'max_results': {'key': 'maxResults', 'type': 'int'}, - 'max_results_per_subscription': {'key': 'maxResultsPerSubscription', 'type': 'int'}, - 'min_created_date': {'key': 'minCreatedDate', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'results': {'key': 'results', 'type': '[Notification]'}, - 'result_type': {'key': 'resultType', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'}, - 'subscription_ids': {'key': 'subscriptionIds', 'type': '[str]'}, - 'summary': {'key': 'summary', 'type': '[NotificationSummary]'} - } - - def __init__(self, associated_subscriptions=None, include_details=None, max_created_date=None, max_results=None, max_results_per_subscription=None, min_created_date=None, publisher_id=None, results=None, result_type=None, status=None, subscription_ids=None, summary=None): - super(NotificationsQuery, self).__init__() - self.associated_subscriptions = associated_subscriptions - self.include_details = include_details - self.max_created_date = max_created_date - self.max_results = max_results - self.max_results_per_subscription = max_results_per_subscription - self.min_created_date = min_created_date - self.publisher_id = publisher_id - self.results = results - self.result_type = result_type - self.status = status - self.subscription_ids = subscription_ids - self.summary = summary diff --git a/vsts/vsts/service_hooks/v4_0/models/publisher.py b/vsts/vsts/service_hooks/v4_0/models/publisher.py deleted file mode 100644 index 7ebd4d78..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/publisher.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Publisher(Model): - """Publisher. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param description: Gets this publisher's localized description. - :type description: str - :param id: Gets this publisher's identifier. - :type id: str - :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets this publisher's localized name. - :type name: str - :param service_instance_type: The service instance type of the first party publisher. - :type service_instance_type: str - :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'supported_events': {'key': 'supportedEvents', 'type': '[EventTypeDescriptor]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, description=None, id=None, input_descriptors=None, name=None, service_instance_type=None, supported_events=None, url=None): - super(Publisher, self).__init__() - self._links = _links - self.description = description - self.id = id - self.input_descriptors = input_descriptors - self.name = name - self.service_instance_type = service_instance_type - self.supported_events = supported_events - self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/publisher_event.py b/vsts/vsts/service_hooks/v4_0/models/publisher_event.py deleted file mode 100644 index 91e4c2e0..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/publisher_event.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherEvent(Model): - """PublisherEvent. - - :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. - :type diagnostics: dict - :param event: The event being published - :type event: :class:`Event ` - :param notification_id: Gets or sets the id of the notification. - :type notification_id: int - :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` - :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` - :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` - """ - - _attribute_map = { - 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, - 'event': {'key': 'event', 'type': 'Event'}, - 'notification_id': {'key': 'notificationId', 'type': 'int'}, - 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, - 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, - 'subscription': {'key': 'subscription', 'type': 'Subscription'} - } - - def __init__(self, diagnostics=None, event=None, notification_id=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): - super(PublisherEvent, self).__init__() - self.diagnostics = diagnostics - self.event = event - self.notification_id = notification_id - self.other_resource_versions = other_resource_versions - self.publisher_input_filters = publisher_input_filters - self.subscription = subscription diff --git a/vsts/vsts/service_hooks/v4_0/models/publishers_query.py b/vsts/vsts/service_hooks/v4_0/models/publishers_query.py deleted file mode 100644 index e75169b9..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/publishers_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishersQuery(Model): - """PublishersQuery. - - :param publisher_ids: Optional list of publisher ids to restrict the results to - :type publisher_ids: list of str - :param publisher_inputs: Filter for publisher inputs - :type publisher_inputs: dict - :param results: Results from the query - :type results: list of :class:`Publisher ` - """ - - _attribute_map = { - 'publisher_ids': {'key': 'publisherIds', 'type': '[str]'}, - 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, - 'results': {'key': 'results', 'type': '[Publisher]'} - } - - def __init__(self, publisher_ids=None, publisher_inputs=None, results=None): - super(PublishersQuery, self).__init__() - self.publisher_ids = publisher_ids - self.publisher_inputs = publisher_inputs - self.results = results diff --git a/vsts/vsts/service_hooks/v4_0/models/reference_links.py b/vsts/vsts/service_hooks/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/service_hooks/v4_0/models/resource_container.py b/vsts/vsts/service_hooks/v4_0/models/resource_container.py deleted file mode 100644 index 593a8f5d..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/resource_container.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceContainer(Model): - """ResourceContainer. - - :param base_url: Gets or sets the container's base URL, i.e. the URL of the host (collection, application, or deploument) containing the container resource. - :type base_url: str - :param id: Gets or sets the container's specific Id. - :type id: str - :param name: Gets or sets the container's name. - :type name: str - :param url: Gets or sets the container's REST API URL. - :type url: str - """ - - _attribute_map = { - 'base_url': {'key': 'baseUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, base_url=None, id=None, name=None, url=None): - super(ResourceContainer, self).__init__() - self.base_url = base_url - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/session_token.py b/vsts/vsts/service_hooks/v4_0/models/session_token.py deleted file mode 100644 index 4f2df67f..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/session_token.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SessionToken(Model): - """SessionToken. - - :param error: The error message in case of error - :type error: str - :param token: The access token - :type token: str - :param valid_to: The expiration date in UTC - :type valid_to: datetime - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} - } - - def __init__(self, error=None, token=None, valid_to=None): - super(SessionToken, self).__init__() - self.error = error - self.token = token - self.valid_to = valid_to diff --git a/vsts/vsts/service_hooks/v4_0/models/subscription.py b/vsts/vsts/service_hooks/v4_0/models/subscription.py deleted file mode 100644 index 148bfe38..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/subscription.py +++ /dev/null @@ -1,97 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Subscription(Model): - """Subscription. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param action_description: - :type action_description: str - :param consumer_action_id: - :type consumer_action_id: str - :param consumer_id: - :type consumer_id: str - :param consumer_inputs: Consumer input values - :type consumer_inputs: dict - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_date: - :type created_date: datetime - :param event_description: - :type event_description: str - :param event_type: - :type event_type: str - :param id: - :type id: str - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_date: - :type modified_date: datetime - :param probation_retries: - :type probation_retries: str - :param publisher_id: - :type publisher_id: str - :param publisher_inputs: Publisher input values - :type publisher_inputs: dict - :param resource_version: - :type resource_version: str - :param status: - :type status: object - :param subscriber: - :type subscriber: :class:`IdentityRef ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'action_description': {'key': 'actionDescription', 'type': 'str'}, - 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'event_description': {'key': 'eventDescription', 'type': 'str'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'probation_retries': {'key': 'probationRetries', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, action_description=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, created_by=None, created_date=None, event_description=None, event_type=None, id=None, modified_by=None, modified_date=None, probation_retries=None, publisher_id=None, publisher_inputs=None, resource_version=None, status=None, subscriber=None, url=None): - super(Subscription, self).__init__() - self._links = _links - self.action_description = action_description - self.consumer_action_id = consumer_action_id - self.consumer_id = consumer_id - self.consumer_inputs = consumer_inputs - self.created_by = created_by - self.created_date = created_date - self.event_description = event_description - self.event_type = event_type - self.id = id - self.modified_by = modified_by - self.modified_date = modified_date - self.probation_retries = probation_retries - self.publisher_id = publisher_id - self.publisher_inputs = publisher_inputs - self.resource_version = resource_version - self.status = status - self.subscriber = subscriber - self.url = url diff --git a/vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py b/vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py deleted file mode 100644 index 6287a494..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/subscriptions_query.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionsQuery(Model): - """SubscriptionsQuery. - - :param consumer_action_id: Optional consumer action id to restrict the results to (null for any) - :type consumer_action_id: str - :param consumer_id: Optional consumer id to restrict the results to (null for any) - :type consumer_id: str - :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` - :param event_type: Optional event type id to restrict the results to (null for any) - :type event_type: str - :param publisher_id: Optional publisher id to restrict the results to (null for any) - :type publisher_id: str - :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` - :param results: Results from the query - :type results: list of :class:`Subscription ` - :param subscriber_id: Optional subscriber filter. - :type subscriber_id: str - """ - - _attribute_map = { - 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'consumer_input_filters': {'key': 'consumerInputFilters', 'type': '[InputFilter]'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, - 'results': {'key': 'results', 'type': '[Subscription]'}, - 'subscriber_id': {'key': 'subscriberId', 'type': 'str'} - } - - def __init__(self, consumer_action_id=None, consumer_id=None, consumer_input_filters=None, event_type=None, publisher_id=None, publisher_input_filters=None, results=None, subscriber_id=None): - super(SubscriptionsQuery, self).__init__() - self.consumer_action_id = consumer_action_id - self.consumer_id = consumer_id - self.consumer_input_filters = consumer_input_filters - self.event_type = event_type - self.publisher_id = publisher_id - self.publisher_input_filters = publisher_input_filters - self.results = results - self.subscriber_id = subscriber_id diff --git a/vsts/vsts/service_hooks/v4_0/models/versioned_resource.py b/vsts/vsts/service_hooks/v4_0/models/versioned_resource.py deleted file mode 100644 index c55dbd04..00000000 --- a/vsts/vsts/service_hooks/v4_0/models/versioned_resource.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VersionedResource(Model): - """VersionedResource. - - :param compatible_with: Gets or sets the reference to the compatible version. - :type compatible_with: str - :param resource: Gets or sets the resource data. - :type resource: object - :param resource_version: Gets or sets the version of the resource data. - :type resource_version: str - """ - - _attribute_map = { - 'compatible_with': {'key': 'compatibleWith', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'object'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'str'} - } - - def __init__(self, compatible_with=None, resource=None, resource_version=None): - super(VersionedResource, self).__init__() - self.compatible_with = compatible_with - self.resource = resource - self.resource_version = resource_version diff --git a/vsts/vsts/service_hooks/v4_1/__init__.py b/vsts/vsts/service_hooks/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/service_hooks/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/service_hooks/v4_1/models/__init__.py b/vsts/vsts/service_hooks/v4_1/models/__init__.py deleted file mode 100644 index 5548104e..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .consumer import Consumer -from .consumer_action import ConsumerAction -from .event import Event -from .event_type_descriptor import EventTypeDescriptor -from .external_configuration_descriptor import ExternalConfigurationDescriptor -from .formatted_event_message import FormattedEventMessage -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .input_descriptor import InputDescriptor -from .input_filter import InputFilter -from .input_filter_condition import InputFilterCondition -from .input_validation import InputValidation -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .input_values_query import InputValuesQuery -from .notification import Notification -from .notification_details import NotificationDetails -from .notification_results_summary_detail import NotificationResultsSummaryDetail -from .notifications_query import NotificationsQuery -from .notification_summary import NotificationSummary -from .publisher import Publisher -from .publisher_event import PublisherEvent -from .publishers_query import PublishersQuery -from .reference_links import ReferenceLinks -from .resource_container import ResourceContainer -from .session_token import SessionToken -from .subscription import Subscription -from .subscription_diagnostics import SubscriptionDiagnostics -from .subscriptions_query import SubscriptionsQuery -from .subscription_tracing import SubscriptionTracing -from .update_subscripiton_diagnostics_parameters import UpdateSubscripitonDiagnosticsParameters -from .update_subscripiton_tracing_parameters import UpdateSubscripitonTracingParameters -from .versioned_resource import VersionedResource - -__all__ = [ - 'Consumer', - 'ConsumerAction', - 'Event', - 'EventTypeDescriptor', - 'ExternalConfigurationDescriptor', - 'FormattedEventMessage', - 'GraphSubjectBase', - 'IdentityRef', - 'InputDescriptor', - 'InputFilter', - 'InputFilterCondition', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Notification', - 'NotificationDetails', - 'NotificationResultsSummaryDetail', - 'NotificationsQuery', - 'NotificationSummary', - 'Publisher', - 'PublisherEvent', - 'PublishersQuery', - 'ReferenceLinks', - 'ResourceContainer', - 'SessionToken', - 'Subscription', - 'SubscriptionDiagnostics', - 'SubscriptionsQuery', - 'SubscriptionTracing', - 'UpdateSubscripitonDiagnosticsParameters', - 'UpdateSubscripitonTracingParameters', - 'VersionedResource', -] diff --git a/vsts/vsts/service_hooks/v4_1/models/consumer.py b/vsts/vsts/service_hooks/v4_1/models/consumer.py deleted file mode 100644 index 93077591..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/consumer.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Consumer(Model): - """Consumer. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` - :param authentication_type: Gets or sets this consumer's authentication type. - :type authentication_type: object - :param description: Gets or sets this consumer's localized description. - :type description: str - :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` - :param id: Gets or sets this consumer's identifier. - :type id: str - :param image_url: Gets or sets this consumer's image URL, if any. - :type image_url: str - :param information_url: Gets or sets this consumer's information URL, if any. - :type information_url: str - :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets or sets this consumer's localized name. - :type name: str - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'actions': {'key': 'actions', 'type': '[ConsumerAction]'}, - 'authentication_type': {'key': 'authenticationType', 'type': 'object'}, - 'description': {'key': 'description', 'type': 'str'}, - 'external_configuration': {'key': 'externalConfiguration', 'type': 'ExternalConfigurationDescriptor'}, - 'id': {'key': 'id', 'type': 'str'}, - 'image_url': {'key': 'imageUrl', 'type': 'str'}, - 'information_url': {'key': 'informationUrl', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, actions=None, authentication_type=None, description=None, external_configuration=None, id=None, image_url=None, information_url=None, input_descriptors=None, name=None, url=None): - super(Consumer, self).__init__() - self._links = _links - self.actions = actions - self.authentication_type = authentication_type - self.description = description - self.external_configuration = external_configuration - self.id = id - self.image_url = image_url - self.information_url = information_url - self.input_descriptors = input_descriptors - self.name = name - self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/consumer_action.py b/vsts/vsts/service_hooks/v4_1/models/consumer_action.py deleted file mode 100644 index c1e08907..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/consumer_action.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ConsumerAction(Model): - """ConsumerAction. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. - :type allow_resource_version_override: bool - :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. - :type consumer_id: str - :param description: Gets or sets this action's localized description. - :type description: str - :param id: Gets or sets this action's identifier. - :type id: str - :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets or sets this action's localized name. - :type name: str - :param supported_event_types: Gets or sets this action's supported event identifiers. - :type supported_event_types: list of str - :param supported_resource_versions: Gets or sets this action's supported resource versions. - :type supported_resource_versions: dict - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allow_resource_version_override': {'key': 'allowResourceVersionOverride', 'type': 'bool'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'supported_event_types': {'key': 'supportedEventTypes', 'type': '[str]'}, - 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '{[str]}'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, allow_resource_version_override=None, consumer_id=None, description=None, id=None, input_descriptors=None, name=None, supported_event_types=None, supported_resource_versions=None, url=None): - super(ConsumerAction, self).__init__() - self._links = _links - self.allow_resource_version_override = allow_resource_version_override - self.consumer_id = consumer_id - self.description = description - self.id = id - self.input_descriptors = input_descriptors - self.name = name - self.supported_event_types = supported_event_types - self.supported_resource_versions = supported_resource_versions - self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/event.py b/vsts/vsts/service_hooks/v4_1/models/event.py deleted file mode 100644 index 36d8845b..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/event.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Event(Model): - """Event. - - :param created_date: Gets or sets the UTC-based date and time that this event was created. - :type created_date: datetime - :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` - :param event_type: Gets or sets the type of this event. - :type event_type: str - :param id: Gets or sets the unique identifier of this event. - :type id: str - :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` - :param publisher_id: Gets or sets the identifier of the publisher that raised this event. - :type publisher_id: str - :param resource: Gets or sets the data associated with this event. - :type resource: object - :param resource_containers: Gets or sets the resource containers. - :type resource_containers: dict - :param resource_version: Gets or sets the version of the data associated with this event. - :type resource_version: str - :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'detailed_message': {'key': 'detailedMessage', 'type': 'FormattedEventMessage'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'FormattedEventMessage'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'object'}, - 'resource_containers': {'key': 'resourceContainers', 'type': '{ResourceContainer}'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, - 'session_token': {'key': 'sessionToken', 'type': 'SessionToken'} - } - - def __init__(self, created_date=None, detailed_message=None, event_type=None, id=None, message=None, publisher_id=None, resource=None, resource_containers=None, resource_version=None, session_token=None): - super(Event, self).__init__() - self.created_date = created_date - self.detailed_message = detailed_message - self.event_type = event_type - self.id = id - self.message = message - self.publisher_id = publisher_id - self.resource = resource - self.resource_containers = resource_containers - self.resource_version = resource_version - self.session_token = session_token diff --git a/vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py b/vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py deleted file mode 100644 index a6dac171..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/event_type_descriptor.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EventTypeDescriptor(Model): - """EventTypeDescriptor. - - :param description: A localized description of the event type - :type description: str - :param id: A unique id for the event type - :type id: str - :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: A localized friendly name for the event type - :type name: str - :param publisher_id: A unique id for the publisher of this event type - :type publisher_id: str - :param supported_resource_versions: Supported versions for the event's resource payloads. - :type supported_resource_versions: list of str - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'supported_resource_versions': {'key': 'supportedResourceVersions', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, input_descriptors=None, name=None, publisher_id=None, supported_resource_versions=None, url=None): - super(EventTypeDescriptor, self).__init__() - self.description = description - self.id = id - self.input_descriptors = input_descriptors - self.name = name - self.publisher_id = publisher_id - self.supported_resource_versions = supported_resource_versions - self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py b/vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py deleted file mode 100644 index c2ab4f98..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/external_configuration_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ExternalConfigurationDescriptor(Model): - """ExternalConfigurationDescriptor. - - :param create_subscription_url: Url of the site to create this type of subscription. - :type create_subscription_url: str - :param edit_subscription_property_name: The name of an input property that contains the URL to edit a subscription. - :type edit_subscription_property_name: str - :param hosted_only: True if the external configuration applies only to hosted. - :type hosted_only: bool - """ - - _attribute_map = { - 'create_subscription_url': {'key': 'createSubscriptionUrl', 'type': 'str'}, - 'edit_subscription_property_name': {'key': 'editSubscriptionPropertyName', 'type': 'str'}, - 'hosted_only': {'key': 'hostedOnly', 'type': 'bool'} - } - - def __init__(self, create_subscription_url=None, edit_subscription_property_name=None, hosted_only=None): - super(ExternalConfigurationDescriptor, self).__init__() - self.create_subscription_url = create_subscription_url - self.edit_subscription_property_name = edit_subscription_property_name - self.hosted_only = hosted_only diff --git a/vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py b/vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py deleted file mode 100644 index 7d513262..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/formatted_event_message.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FormattedEventMessage(Model): - """FormattedEventMessage. - - :param html: Gets or sets the html format of the message - :type html: str - :param markdown: Gets or sets the markdown format of the message - :type markdown: str - :param text: Gets or sets the raw text of the message - :type text: str - """ - - _attribute_map = { - 'html': {'key': 'html', 'type': 'str'}, - 'markdown': {'key': 'markdown', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'} - } - - def __init__(self, html=None, markdown=None, text=None): - super(FormattedEventMessage, self).__init__() - self.html = html - self.markdown = markdown - self.text = text diff --git a/vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py b/vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/service_hooks/v4_1/models/identity_ref.py b/vsts/vsts/service_hooks/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/service_hooks/v4_1/models/input_descriptor.py b/vsts/vsts/service_hooks/v4_1/models/input_descriptor.py deleted file mode 100644 index da334836..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_descriptor.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values diff --git a/vsts/vsts/service_hooks/v4_1/models/input_filter.py b/vsts/vsts/service_hooks/v4_1/models/input_filter.py deleted file mode 100644 index 91d219dc..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_filter.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputFilter(Model): - """InputFilter. - - :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[InputFilterCondition]'} - } - - def __init__(self, conditions=None): - super(InputFilter, self).__init__() - self.conditions = conditions diff --git a/vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py b/vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py deleted file mode 100644 index 1a514738..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_filter_condition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputFilterCondition(Model): - """InputFilterCondition. - - :param case_sensitive: Whether or not to do a case sensitive match - :type case_sensitive: bool - :param input_id: The Id of the input to filter on - :type input_id: str - :param input_value: The "expected" input value to compare with the actual input value - :type input_value: str - :param operator: The operator applied between the expected and actual input value - :type operator: object - """ - - _attribute_map = { - 'case_sensitive': {'key': 'caseSensitive', 'type': 'bool'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'input_value': {'key': 'inputValue', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'object'} - } - - def __init__(self, case_sensitive=None, input_id=None, input_value=None, operator=None): - super(InputFilterCondition, self).__init__() - self.case_sensitive = case_sensitive - self.input_id = input_id - self.input_value = input_value - self.operator = operator diff --git a/vsts/vsts/service_hooks/v4_1/models/input_validation.py b/vsts/vsts/service_hooks/v4_1/models/input_validation.py deleted file mode 100644 index f2f1a434..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/service_hooks/v4_1/models/input_value.py b/vsts/vsts/service_hooks/v4_1/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/service_hooks/v4_1/models/input_values.py b/vsts/vsts/service_hooks/v4_1/models/input_values.py deleted file mode 100644 index 69472f8d..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/service_hooks/v4_1/models/input_values_error.py b/vsts/vsts/service_hooks/v4_1/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/service_hooks/v4_1/models/input_values_query.py b/vsts/vsts/service_hooks/v4_1/models/input_values_query.py deleted file mode 100644 index 97687a61..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/input_values_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource diff --git a/vsts/vsts/service_hooks/v4_1/models/notification.py b/vsts/vsts/service_hooks/v4_1/models/notification.py deleted file mode 100644 index 0bcbd8b5..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/notification.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Notification(Model): - """Notification. - - :param created_date: Gets or sets date and time that this result was created. - :type created_date: datetime - :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` - :param event_id: The event id associated with this notification - :type event_id: str - :param id: The notification id - :type id: int - :param modified_date: Gets or sets date and time that this result was last modified. - :type modified_date: datetime - :param result: Result of the notification - :type result: object - :param status: Status of the notification - :type status: object - :param subscriber_id: The subscriber Id associated with this notification. This is the last identity who touched in the subscription. In case of test notifications it can be the tester if the subscription is not created yet. - :type subscriber_id: str - :param subscription_id: The subscription id associated with this notification - :type subscription_id: str - """ - - _attribute_map = { - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'details': {'key': 'details', 'type': 'NotificationDetails'}, - 'event_id': {'key': 'eventId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'result': {'key': 'result', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'}, - 'subscriber_id': {'key': 'subscriberId', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, created_date=None, details=None, event_id=None, id=None, modified_date=None, result=None, status=None, subscriber_id=None, subscription_id=None): - super(Notification, self).__init__() - self.created_date = created_date - self.details = details - self.event_id = event_id - self.id = id - self.modified_date = modified_date - self.result = result - self.status = status - self.subscriber_id = subscriber_id - self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_1/models/notification_details.py b/vsts/vsts/service_hooks/v4_1/models/notification_details.py deleted file mode 100644 index 59f5977f..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/notification_details.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationDetails(Model): - """NotificationDetails. - - :param completed_date: Gets or sets the time that this notification was completed (response received from the consumer) - :type completed_date: datetime - :param consumer_action_id: Gets or sets this notification detail's consumer action identifier. - :type consumer_action_id: str - :param consumer_id: Gets or sets this notification detail's consumer identifier. - :type consumer_id: str - :param consumer_inputs: Gets or sets this notification detail's consumer inputs. - :type consumer_inputs: dict - :param dequeued_date: Gets or sets the time that this notification was dequeued for processing - :type dequeued_date: datetime - :param error_detail: Gets or sets this notification detail's error detail. - :type error_detail: str - :param error_message: Gets or sets this notification detail's error message. - :type error_message: str - :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` - :param event_type: Gets or sets this notification detail's event type. - :type event_type: str - :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) - :type processed_date: datetime - :param publisher_id: Gets or sets this notification detail's publisher identifier. - :type publisher_id: str - :param publisher_inputs: Gets or sets this notification detail's publisher inputs. - :type publisher_inputs: dict - :param queued_date: Gets or sets the time that this notification was queued (created) - :type queued_date: datetime - :param request: Gets or sets this notification detail's request. - :type request: str - :param request_attempts: Number of requests attempted to be sent to the consumer - :type request_attempts: int - :param request_duration: Duration of the request to the consumer in seconds - :type request_duration: float - :param response: Gets or sets this notification detail's reponse. - :type response: str - """ - - _attribute_map = { - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, - 'dequeued_date': {'key': 'dequeuedDate', 'type': 'iso-8601'}, - 'error_detail': {'key': 'errorDetail', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'event': {'key': 'event', 'type': 'Event'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'processed_date': {'key': 'processedDate', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, - 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, - 'request': {'key': 'request', 'type': 'str'}, - 'request_attempts': {'key': 'requestAttempts', 'type': 'int'}, - 'request_duration': {'key': 'requestDuration', 'type': 'float'}, - 'response': {'key': 'response', 'type': 'str'} - } - - def __init__(self, completed_date=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, dequeued_date=None, error_detail=None, error_message=None, event=None, event_type=None, processed_date=None, publisher_id=None, publisher_inputs=None, queued_date=None, request=None, request_attempts=None, request_duration=None, response=None): - super(NotificationDetails, self).__init__() - self.completed_date = completed_date - self.consumer_action_id = consumer_action_id - self.consumer_id = consumer_id - self.consumer_inputs = consumer_inputs - self.dequeued_date = dequeued_date - self.error_detail = error_detail - self.error_message = error_message - self.event = event - self.event_type = event_type - self.processed_date = processed_date - self.publisher_id = publisher_id - self.publisher_inputs = publisher_inputs - self.queued_date = queued_date - self.request = request - self.request_attempts = request_attempts - self.request_duration = request_duration - self.response = response diff --git a/vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py b/vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py deleted file mode 100644 index eb8819fa..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/notification_results_summary_detail.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationResultsSummaryDetail(Model): - """NotificationResultsSummaryDetail. - - :param notification_count: Count of notification sent out with a matching result. - :type notification_count: int - :param result: Result of the notification - :type result: object - """ - - _attribute_map = { - 'notification_count': {'key': 'notificationCount', 'type': 'int'}, - 'result': {'key': 'result', 'type': 'object'} - } - - def __init__(self, notification_count=None, result=None): - super(NotificationResultsSummaryDetail, self).__init__() - self.notification_count = notification_count - self.result = result diff --git a/vsts/vsts/service_hooks/v4_1/models/notification_summary.py b/vsts/vsts/service_hooks/v4_1/models/notification_summary.py deleted file mode 100644 index 30ad4809..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/notification_summary.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationSummary(Model): - """NotificationSummary. - - :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` - :param subscription_id: The subscription id associated with this notification - :type subscription_id: str - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': '[NotificationResultsSummaryDetail]'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'} - } - - def __init__(self, results=None, subscription_id=None): - super(NotificationSummary, self).__init__() - self.results = results - self.subscription_id = subscription_id diff --git a/vsts/vsts/service_hooks/v4_1/models/notifications_query.py b/vsts/vsts/service_hooks/v4_1/models/notifications_query.py deleted file mode 100644 index 6f7cd92a..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/notifications_query.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NotificationsQuery(Model): - """NotificationsQuery. - - :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` - :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. - :type include_details: bool - :param max_created_date: Optional maximum date at which the notification was created - :type max_created_date: datetime - :param max_results: Optional maximum number of overall results to include - :type max_results: int - :param max_results_per_subscription: Optional maximum number of results for each subscription. Only takes effect when a list of subscription ids is supplied in the query. - :type max_results_per_subscription: int - :param min_created_date: Optional minimum date at which the notification was created - :type min_created_date: datetime - :param publisher_id: Optional publisher id to restrict the results to - :type publisher_id: str - :param results: Results from the query - :type results: list of :class:`Notification ` - :param result_type: Optional notification result type to filter results to - :type result_type: object - :param status: Optional notification status to filter results to - :type status: object - :param subscription_ids: Optional list of subscription ids to restrict the results to - :type subscription_ids: list of str - :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` - """ - - _attribute_map = { - 'associated_subscriptions': {'key': 'associatedSubscriptions', 'type': '[Subscription]'}, - 'include_details': {'key': 'includeDetails', 'type': 'bool'}, - 'max_created_date': {'key': 'maxCreatedDate', 'type': 'iso-8601'}, - 'max_results': {'key': 'maxResults', 'type': 'int'}, - 'max_results_per_subscription': {'key': 'maxResultsPerSubscription', 'type': 'int'}, - 'min_created_date': {'key': 'minCreatedDate', 'type': 'iso-8601'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'results': {'key': 'results', 'type': '[Notification]'}, - 'result_type': {'key': 'resultType', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'}, - 'subscription_ids': {'key': 'subscriptionIds', 'type': '[str]'}, - 'summary': {'key': 'summary', 'type': '[NotificationSummary]'} - } - - def __init__(self, associated_subscriptions=None, include_details=None, max_created_date=None, max_results=None, max_results_per_subscription=None, min_created_date=None, publisher_id=None, results=None, result_type=None, status=None, subscription_ids=None, summary=None): - super(NotificationsQuery, self).__init__() - self.associated_subscriptions = associated_subscriptions - self.include_details = include_details - self.max_created_date = max_created_date - self.max_results = max_results - self.max_results_per_subscription = max_results_per_subscription - self.min_created_date = min_created_date - self.publisher_id = publisher_id - self.results = results - self.result_type = result_type - self.status = status - self.subscription_ids = subscription_ids - self.summary = summary diff --git a/vsts/vsts/service_hooks/v4_1/models/publisher.py b/vsts/vsts/service_hooks/v4_1/models/publisher.py deleted file mode 100644 index 065981f8..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/publisher.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Publisher(Model): - """Publisher. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param description: Gets this publisher's localized description. - :type description: str - :param id: Gets this publisher's identifier. - :type id: str - :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets this publisher's localized name. - :type name: str - :param service_instance_type: The service instance type of the first party publisher. - :type service_instance_type: str - :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` - :param url: The url for this resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, - 'supported_events': {'key': 'supportedEvents', 'type': '[EventTypeDescriptor]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, description=None, id=None, input_descriptors=None, name=None, service_instance_type=None, supported_events=None, url=None): - super(Publisher, self).__init__() - self._links = _links - self.description = description - self.id = id - self.input_descriptors = input_descriptors - self.name = name - self.service_instance_type = service_instance_type - self.supported_events = supported_events - self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/publisher_event.py b/vsts/vsts/service_hooks/v4_1/models/publisher_event.py deleted file mode 100644 index 56ceb122..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/publisher_event.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublisherEvent(Model): - """PublisherEvent. - - :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. - :type diagnostics: dict - :param event: The event being published - :type event: :class:`Event ` - :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` - :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` - :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` - """ - - _attribute_map = { - 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, - 'event': {'key': 'event', 'type': 'Event'}, - 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, - 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, - 'subscription': {'key': 'subscription', 'type': 'Subscription'} - } - - def __init__(self, diagnostics=None, event=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): - super(PublisherEvent, self).__init__() - self.diagnostics = diagnostics - self.event = event - self.other_resource_versions = other_resource_versions - self.publisher_input_filters = publisher_input_filters - self.subscription = subscription diff --git a/vsts/vsts/service_hooks/v4_1/models/publishers_query.py b/vsts/vsts/service_hooks/v4_1/models/publishers_query.py deleted file mode 100644 index 27ace09c..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/publishers_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishersQuery(Model): - """PublishersQuery. - - :param publisher_ids: Optional list of publisher ids to restrict the results to - :type publisher_ids: list of str - :param publisher_inputs: Filter for publisher inputs - :type publisher_inputs: dict - :param results: Results from the query - :type results: list of :class:`Publisher ` - """ - - _attribute_map = { - 'publisher_ids': {'key': 'publisherIds', 'type': '[str]'}, - 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, - 'results': {'key': 'results', 'type': '[Publisher]'} - } - - def __init__(self, publisher_ids=None, publisher_inputs=None, results=None): - super(PublishersQuery, self).__init__() - self.publisher_ids = publisher_ids - self.publisher_inputs = publisher_inputs - self.results = results diff --git a/vsts/vsts/service_hooks/v4_1/models/reference_links.py b/vsts/vsts/service_hooks/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/service_hooks/v4_1/models/resource_container.py b/vsts/vsts/service_hooks/v4_1/models/resource_container.py deleted file mode 100644 index 593a8f5d..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/resource_container.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceContainer(Model): - """ResourceContainer. - - :param base_url: Gets or sets the container's base URL, i.e. the URL of the host (collection, application, or deploument) containing the container resource. - :type base_url: str - :param id: Gets or sets the container's specific Id. - :type id: str - :param name: Gets or sets the container's name. - :type name: str - :param url: Gets or sets the container's REST API URL. - :type url: str - """ - - _attribute_map = { - 'base_url': {'key': 'baseUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, base_url=None, id=None, name=None, url=None): - super(ResourceContainer, self).__init__() - self.base_url = base_url - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/session_token.py b/vsts/vsts/service_hooks/v4_1/models/session_token.py deleted file mode 100644 index 4f2df67f..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/session_token.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SessionToken(Model): - """SessionToken. - - :param error: The error message in case of error - :type error: str - :param token: The access token - :type token: str - :param valid_to: The expiration date in UTC - :type valid_to: datetime - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'}, - 'valid_to': {'key': 'validTo', 'type': 'iso-8601'} - } - - def __init__(self, error=None, token=None, valid_to=None): - super(SessionToken, self).__init__() - self.error = error - self.token = token - self.valid_to = valid_to diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription.py b/vsts/vsts/service_hooks/v4_1/models/subscription.py deleted file mode 100644 index 751de397..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/subscription.py +++ /dev/null @@ -1,97 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Subscription(Model): - """Subscription. - - :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` - :param action_description: - :type action_description: str - :param consumer_action_id: - :type consumer_action_id: str - :param consumer_id: - :type consumer_id: str - :param consumer_inputs: Consumer input values - :type consumer_inputs: dict - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_date: - :type created_date: datetime - :param event_description: - :type event_description: str - :param event_type: - :type event_type: str - :param id: - :type id: str - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_date: - :type modified_date: datetime - :param probation_retries: - :type probation_retries: str - :param publisher_id: - :type publisher_id: str - :param publisher_inputs: Publisher input values - :type publisher_inputs: dict - :param resource_version: - :type resource_version: str - :param status: - :type status: object - :param subscriber: - :type subscriber: :class:`IdentityRef ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'action_description': {'key': 'actionDescription', 'type': 'str'}, - 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'consumer_inputs': {'key': 'consumerInputs', 'type': '{str}'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'event_description': {'key': 'eventDescription', 'type': 'str'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'probation_retries': {'key': 'probationRetries', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_inputs': {'key': 'publisherInputs', 'type': '{str}'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'subscriber': {'key': 'subscriber', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, action_description=None, consumer_action_id=None, consumer_id=None, consumer_inputs=None, created_by=None, created_date=None, event_description=None, event_type=None, id=None, modified_by=None, modified_date=None, probation_retries=None, publisher_id=None, publisher_inputs=None, resource_version=None, status=None, subscriber=None, url=None): - super(Subscription, self).__init__() - self._links = _links - self.action_description = action_description - self.consumer_action_id = consumer_action_id - self.consumer_id = consumer_id - self.consumer_inputs = consumer_inputs - self.created_by = created_by - self.created_date = created_date - self.event_description = event_description - self.event_type = event_type - self.id = id - self.modified_by = modified_by - self.modified_date = modified_date - self.probation_retries = probation_retries - self.publisher_id = publisher_id - self.publisher_inputs = publisher_inputs - self.resource_version = resource_version - self.status = status - self.subscriber = subscriber - self.url = url diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py b/vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py deleted file mode 100644 index 77fb0ca6..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/subscription_diagnostics.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionDiagnostics(Model): - """SubscriptionDiagnostics. - - :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` - :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` - :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` - """ - - _attribute_map = { - 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, - 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, - 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} - } - - def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): - super(SubscriptionDiagnostics, self).__init__() - self.delivery_results = delivery_results - self.delivery_tracing = delivery_tracing - self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py b/vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py deleted file mode 100644 index 3f0ac917..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/subscription_tracing.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionTracing(Model): - """SubscriptionTracing. - - :param enabled: - :type enabled: bool - :param end_date: Trace until the specified end date. - :type end_date: datetime - :param max_traced_entries: The maximum number of result details to trace. - :type max_traced_entries: int - :param start_date: The date and time tracing started. - :type start_date: datetime - :param traced_entries: Trace until remaining count reaches 0. - :type traced_entries: int - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} - } - - def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): - super(SubscriptionTracing, self).__init__() - self.enabled = enabled - self.end_date = end_date - self.max_traced_entries = max_traced_entries - self.start_date = start_date - self.traced_entries = traced_entries diff --git a/vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py b/vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py deleted file mode 100644 index 262e8bec..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/subscriptions_query.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SubscriptionsQuery(Model): - """SubscriptionsQuery. - - :param consumer_action_id: Optional consumer action id to restrict the results to (null for any) - :type consumer_action_id: str - :param consumer_id: Optional consumer id to restrict the results to (null for any) - :type consumer_id: str - :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` - :param event_type: Optional event type id to restrict the results to (null for any) - :type event_type: str - :param publisher_id: Optional publisher id to restrict the results to (null for any) - :type publisher_id: str - :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` - :param results: Results from the query - :type results: list of :class:`Subscription ` - :param subscriber_id: Optional subscriber filter. - :type subscriber_id: str - """ - - _attribute_map = { - 'consumer_action_id': {'key': 'consumerActionId', 'type': 'str'}, - 'consumer_id': {'key': 'consumerId', 'type': 'str'}, - 'consumer_input_filters': {'key': 'consumerInputFilters', 'type': '[InputFilter]'}, - 'event_type': {'key': 'eventType', 'type': 'str'}, - 'publisher_id': {'key': 'publisherId', 'type': 'str'}, - 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, - 'results': {'key': 'results', 'type': '[Subscription]'}, - 'subscriber_id': {'key': 'subscriberId', 'type': 'str'} - } - - def __init__(self, consumer_action_id=None, consumer_id=None, consumer_input_filters=None, event_type=None, publisher_id=None, publisher_input_filters=None, results=None, subscriber_id=None): - super(SubscriptionsQuery, self).__init__() - self.consumer_action_id = consumer_action_id - self.consumer_id = consumer_id - self.consumer_input_filters = consumer_input_filters - self.event_type = event_type - self.publisher_id = publisher_id - self.publisher_input_filters = publisher_input_filters - self.results = results - self.subscriber_id = subscriber_id diff --git a/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py b/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py deleted file mode 100644 index 814661a3..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_diagnostics_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdateSubscripitonDiagnosticsParameters(Model): - """UpdateSubscripitonDiagnosticsParameters. - - :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` - :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` - :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` - """ - - _attribute_map = { - 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, - 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, - 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} - } - - def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): - super(UpdateSubscripitonDiagnosticsParameters, self).__init__() - self.delivery_results = delivery_results - self.delivery_tracing = delivery_tracing - self.evaluation_tracing = evaluation_tracing diff --git a/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py b/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py deleted file mode 100644 index 13f3ef64..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/update_subscripiton_tracing_parameters.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdateSubscripitonTracingParameters(Model): - """UpdateSubscripitonTracingParameters. - - :param enabled: - :type enabled: bool - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'} - } - - def __init__(self, enabled=None): - super(UpdateSubscripitonTracingParameters, self).__init__() - self.enabled = enabled diff --git a/vsts/vsts/service_hooks/v4_1/models/versioned_resource.py b/vsts/vsts/service_hooks/v4_1/models/versioned_resource.py deleted file mode 100644 index c55dbd04..00000000 --- a/vsts/vsts/service_hooks/v4_1/models/versioned_resource.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VersionedResource(Model): - """VersionedResource. - - :param compatible_with: Gets or sets the reference to the compatible version. - :type compatible_with: str - :param resource: Gets or sets the resource data. - :type resource: object - :param resource_version: Gets or sets the version of the resource data. - :type resource_version: str - """ - - _attribute_map = { - 'compatible_with': {'key': 'compatibleWith', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'object'}, - 'resource_version': {'key': 'resourceVersion', 'type': 'str'} - } - - def __init__(self, compatible_with=None, resource=None, resource_version=None): - super(VersionedResource, self).__init__() - self.compatible_with = compatible_with - self.resource = resource - self.resource_version = resource_version diff --git a/vsts/vsts/settings/__init__.py b/vsts/vsts/settings/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/settings/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/settings/v4_0/__init__.py b/vsts/vsts/settings/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/settings/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/settings/v4_0/settings_client.py b/vsts/vsts/settings/v4_0/settings_client.py deleted file mode 100644 index 7bfe6356..00000000 --- a/vsts/vsts/settings/v4_0/settings_client.py +++ /dev/null @@ -1,143 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 ...vss_client import VssClient - - -class SettingsClient(VssClient): - """Settings - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(SettingsClient, self).__init__(base_url, creds) - self._serialize = Serializer() - self._deserialize = Deserializer() - - resource_area_identifier = None - - def get_entries(self, user_scope, key=None): - """GetEntries. - [Preview API] Get all setting entries for the given user/all-users scope - :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. - :param str key: Optional key under which to filter all the entries - :rtype: {object} - """ - route_values = {} - if user_scope is not None: - route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') - if key is not None: - route_values['key'] = self._serialize.url('key', key, 'str') - response = self._send(http_method='GET', - location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('{object}', self._unwrap_collection(response)) - - def remove_entries(self, user_scope, key): - """RemoveEntries. - [Preview API] Remove the entry or entries under the specified path - :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. - :param str key: Root key of the entry or entries to remove - """ - route_values = {} - if user_scope is not None: - route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') - if key is not None: - route_values['key'] = self._serialize.url('key', key, 'str') - self._send(http_method='DELETE', - location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.0-preview.1', - route_values=route_values) - - def set_entries(self, entries, user_scope): - """SetEntries. - [Preview API] Set the specified setting entry values for the given user/all-users scope - :param {object} entries: The entries to set - :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. - """ - route_values = {} - if user_scope is not None: - route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') - content = self._serialize.body(entries, '{object}') - self._send(http_method='PATCH', - location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.0-preview.1', - route_values=route_values, - content=content) - - def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): - """GetEntriesForScope. - [Preview API] Get all setting entries for the given named scope - :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. - :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") - :param str scope_value: Value of the scope (e.g. the project or team id) - :param str key: Optional key under which to filter all the entries - :rtype: {object} - """ - route_values = {} - if user_scope is not None: - route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') - if scope_name is not None: - route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if key is not None: - route_values['key'] = self._serialize.url('key', key, 'str') - response = self._send(http_method='GET', - location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('{object}', self._unwrap_collection(response)) - - def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): - """RemoveEntriesForScope. - [Preview API] Remove the entry or entries under the specified path - :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. - :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") - :param str scope_value: Value of the scope (e.g. the project or team id) - :param str key: Root key of the entry or entries to remove - """ - route_values = {} - if user_scope is not None: - route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') - if scope_name is not None: - route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if key is not None: - route_values['key'] = self._serialize.url('key', key, 'str') - self._send(http_method='DELETE', - location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.0-preview.1', - route_values=route_values) - - def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): - """SetEntriesForScope. - [Preview API] Set the specified entries for the given named scope - :param {object} entries: The entries to set - :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. - :param str scope_name: Scope at which to set the settings on (e.g. "project" or "team") - :param str scope_value: Value of the scope (e.g. the project or team id) - """ - route_values = {} - if user_scope is not None: - route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') - if scope_name is not None: - route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - content = self._serialize.body(entries, '{object}') - self._send(http_method='PATCH', - location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.0-preview.1', - route_values=route_values, - content=content) - diff --git a/vsts/vsts/settings/v4_1/__init__.py b/vsts/vsts/settings/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/settings/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/symbol/__init__.py b/vsts/vsts/symbol/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/symbol/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/symbol/v4_1/__init__.py b/vsts/vsts/symbol/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/symbol/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/symbol/v4_1/models/__init__.py b/vsts/vsts/symbol/v4_1/models/__init__.py deleted file mode 100644 index 56b178f9..00000000 --- a/vsts/vsts/symbol/v4_1/models/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .debug_entry import DebugEntry -from .debug_entry_create_batch import DebugEntryCreateBatch -from .json_blob_block_hash import JsonBlobBlockHash -from .json_blob_identifier import JsonBlobIdentifier -from .json_blob_identifier_with_blocks import JsonBlobIdentifierWithBlocks -from .request import Request -from .resource_base import ResourceBase - -__all__ = [ - 'DebugEntry', - 'DebugEntryCreateBatch', - 'JsonBlobBlockHash', - 'JsonBlobIdentifier', - 'JsonBlobIdentifierWithBlocks', - 'Request', - 'ResourceBase', -] diff --git a/vsts/vsts/symbol/v4_1/models/debug_entry.py b/vsts/vsts/symbol/v4_1/models/debug_entry.py deleted file mode 100644 index 777fdf4d..00000000 --- a/vsts/vsts/symbol/v4_1/models/debug_entry.py +++ /dev/null @@ -1,64 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .resource_base import ResourceBase - - -class DebugEntry(ResourceBase): - """DebugEntry. - - :param created_by: The ID of user who created this item. Optional. - :type created_by: str - :param created_date: The date time when this item is created. Optional. - :type created_date: datetime - :param id: An identifier for this item. Optional. - :type id: str - :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. - :type storage_eTag: str - :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. - :type url: str - :param blob_details: - :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` - :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. - :type blob_identifier: :class:`JsonBlobIdentifier ` - :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. - :type blob_uri: str - :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. - :type client_key: str - :param information_level: The information level this debug entry contains. - :type information_level: object - :param request_id: The identifier of symbol request to which this debug entry belongs. - :type request_id: str - :param status: The status of debug entry. - :type status: object - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'blob_details': {'key': 'blobDetails', 'type': 'JsonBlobIdentifierWithBlocks'}, - 'blob_identifier': {'key': 'blobIdentifier', 'type': 'JsonBlobIdentifier'}, - 'blob_uri': {'key': 'blobUri', 'type': 'str'}, - 'client_key': {'key': 'clientKey', 'type': 'str'}, - 'information_level': {'key': 'informationLevel', 'type': 'object'}, - 'request_id': {'key': 'requestId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, blob_details=None, blob_identifier=None, blob_uri=None, client_key=None, information_level=None, request_id=None, status=None): - super(DebugEntry, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) - self.blob_details = blob_details - self.blob_identifier = blob_identifier - self.blob_uri = blob_uri - self.client_key = client_key - self.information_level = information_level - self.request_id = request_id - self.status = status diff --git a/vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py b/vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py deleted file mode 100644 index e7b6cfb0..00000000 --- a/vsts/vsts/symbol/v4_1/models/debug_entry_create_batch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DebugEntryCreateBatch(Model): - """DebugEntryCreateBatch. - - :param create_behavior: Defines what to do when a debug entry in the batch already exists. - :type create_behavior: object - :param debug_entries: The debug entries. - :type debug_entries: list of :class:`DebugEntry ` - """ - - _attribute_map = { - 'create_behavior': {'key': 'createBehavior', 'type': 'object'}, - 'debug_entries': {'key': 'debugEntries', 'type': '[DebugEntry]'} - } - - def __init__(self, create_behavior=None, debug_entries=None): - super(DebugEntryCreateBatch, self).__init__() - self.create_behavior = create_behavior - self.debug_entries = debug_entries diff --git a/vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py b/vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py deleted file mode 100644 index 8b75829d..00000000 --- a/vsts/vsts/symbol/v4_1/models/json_blob_block_hash.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonBlobBlockHash(Model): - """JsonBlobBlockHash. - - :param hash_bytes: - :type hash_bytes: str - """ - - _attribute_map = { - 'hash_bytes': {'key': 'hashBytes', 'type': 'str'} - } - - def __init__(self, hash_bytes=None): - super(JsonBlobBlockHash, self).__init__() - self.hash_bytes = hash_bytes diff --git a/vsts/vsts/symbol/v4_1/models/json_blob_identifier.py b/vsts/vsts/symbol/v4_1/models/json_blob_identifier.py deleted file mode 100644 index 56470141..00000000 --- a/vsts/vsts/symbol/v4_1/models/json_blob_identifier.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonBlobIdentifier(Model): - """JsonBlobIdentifier. - - :param identifier_value: - :type identifier_value: str - """ - - _attribute_map = { - 'identifier_value': {'key': 'identifierValue', 'type': 'str'} - } - - def __init__(self, identifier_value=None): - super(JsonBlobIdentifier, self).__init__() - self.identifier_value = identifier_value diff --git a/vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py b/vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py deleted file mode 100644 index a098770a..00000000 --- a/vsts/vsts/symbol/v4_1/models/json_blob_identifier_with_blocks.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonBlobIdentifierWithBlocks(Model): - """JsonBlobIdentifierWithBlocks. - - :param block_hashes: - :type block_hashes: list of :class:`JsonBlobBlockHash ` - :param identifier_value: - :type identifier_value: str - """ - - _attribute_map = { - 'block_hashes': {'key': 'blockHashes', 'type': '[JsonBlobBlockHash]'}, - 'identifier_value': {'key': 'identifierValue', 'type': 'str'} - } - - def __init__(self, block_hashes=None, identifier_value=None): - super(JsonBlobIdentifierWithBlocks, self).__init__() - self.block_hashes = block_hashes - self.identifier_value = identifier_value diff --git a/vsts/vsts/symbol/v4_1/models/request.py b/vsts/vsts/symbol/v4_1/models/request.py deleted file mode 100644 index 851ed33b..00000000 --- a/vsts/vsts/symbol/v4_1/models/request.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .resource_base import ResourceBase - - -class Request(ResourceBase): - """Request. - - :param created_by: The ID of user who created this item. Optional. - :type created_by: str - :param created_date: The date time when this item is created. Optional. - :type created_date: datetime - :param id: An identifier for this item. Optional. - :type id: str - :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. - :type storage_eTag: str - :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. - :type url: str - :param description: An optional human-facing description. - :type description: str - :param expiration_date: An optional expiration date for the request. The request will become inaccessible and get deleted after the date, regardless of its status. On an HTTP POST, if expiration date is null/missing, the server will assign a default expiration data (30 days unless overwridden in the registry at the account level). On PATCH, if expiration date is null/missing, the behavior is to not change whatever the request's current expiration date is. - :type expiration_date: datetime - :param name: A human-facing name for the request. Required on POST, ignored on PATCH. - :type name: str - :param status: The status for this request. - :type status: object - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, description=None, expiration_date=None, name=None, status=None): - super(Request, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) - self.description = description - self.expiration_date = expiration_date - self.name = name - self.status = status diff --git a/vsts/vsts/symbol/v4_1/models/resource_base.py b/vsts/vsts/symbol/v4_1/models/resource_base.py deleted file mode 100644 index 540382ec..00000000 --- a/vsts/vsts/symbol/v4_1/models/resource_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceBase(Model): - """ResourceBase. - - :param created_by: The ID of user who created this item. Optional. - :type created_by: str - :param created_date: The date time when this item is created. Optional. - :type created_date: datetime - :param id: An identifier for this item. Optional. - :type id: str - :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. - :type storage_eTag: str - :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. - :type url: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None): - super(ResourceBase, self).__init__() - self.created_by = created_by - self.created_date = created_date - self.id = id - self.storage_eTag = storage_eTag - self.url = url diff --git a/vsts/vsts/task/__init__.py b/vsts/vsts/task/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/task/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task/v4_0/__init__.py b/vsts/vsts/task/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/task/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task/v4_0/models/__init__.py b/vsts/vsts/task/v4_0/models/__init__.py deleted file mode 100644 index f21600b9..00000000 --- a/vsts/vsts/task/v4_0/models/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .issue import Issue -from .job_option import JobOption -from .mask_hint import MaskHint -from .plan_environment import PlanEnvironment -from .project_reference import ProjectReference -from .reference_links import ReferenceLinks -from .task_attachment import TaskAttachment -from .task_log import TaskLog -from .task_log_reference import TaskLogReference -from .task_orchestration_container import TaskOrchestrationContainer -from .task_orchestration_item import TaskOrchestrationItem -from .task_orchestration_owner import TaskOrchestrationOwner -from .task_orchestration_plan import TaskOrchestrationPlan -from .task_orchestration_plan_groups_queue_metrics import TaskOrchestrationPlanGroupsQueueMetrics -from .task_orchestration_plan_reference import TaskOrchestrationPlanReference -from .task_orchestration_queued_plan import TaskOrchestrationQueuedPlan -from .task_orchestration_queued_plan_group import TaskOrchestrationQueuedPlanGroup -from .task_reference import TaskReference -from .timeline import Timeline -from .timeline_record import TimelineRecord -from .timeline_reference import TimelineReference -from .variable_value import VariableValue - -__all__ = [ - 'Issue', - 'JobOption', - 'MaskHint', - 'PlanEnvironment', - 'ProjectReference', - 'ReferenceLinks', - 'TaskAttachment', - 'TaskLog', - 'TaskLogReference', - 'TaskOrchestrationContainer', - 'TaskOrchestrationItem', - 'TaskOrchestrationOwner', - 'TaskOrchestrationPlan', - 'TaskOrchestrationPlanGroupsQueueMetrics', - 'TaskOrchestrationPlanReference', - 'TaskOrchestrationQueuedPlan', - 'TaskOrchestrationQueuedPlanGroup', - 'TaskReference', - 'Timeline', - 'TimelineRecord', - 'TimelineReference', - 'VariableValue', -] diff --git a/vsts/vsts/task/v4_0/models/issue.py b/vsts/vsts/task/v4_0/models/issue.py deleted file mode 100644 index 02b96b6e..00000000 --- a/vsts/vsts/task/v4_0/models/issue.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Issue(Model): - """Issue. - - :param category: - :type category: str - :param data: - :type data: dict - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'str'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, category=None, data=None, message=None, type=None): - super(Issue, self).__init__() - self.category = category - self.data = data - self.message = message - self.type = type diff --git a/vsts/vsts/task/v4_0/models/job_option.py b/vsts/vsts/task/v4_0/models/job_option.py deleted file mode 100644 index 223a3167..00000000 --- a/vsts/vsts/task/v4_0/models/job_option.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JobOption(Model): - """JobOption. - - :param data: - :type data: dict - :param id: Gets the id of the option. - :type id: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{str}'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, data=None, id=None): - super(JobOption, self).__init__() - self.data = data - self.id = id diff --git a/vsts/vsts/task/v4_0/models/mask_hint.py b/vsts/vsts/task/v4_0/models/mask_hint.py deleted file mode 100644 index 9fa07965..00000000 --- a/vsts/vsts/task/v4_0/models/mask_hint.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MaskHint(Model): - """MaskHint. - - :param type: - :type type: object - :param value: - :type value: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'object'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, type=None, value=None): - super(MaskHint, self).__init__() - self.type = type - self.value = value diff --git a/vsts/vsts/task/v4_0/models/plan_environment.py b/vsts/vsts/task/v4_0/models/plan_environment.py deleted file mode 100644 index a0b58aaa..00000000 --- a/vsts/vsts/task/v4_0/models/plan_environment.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PlanEnvironment(Model): - """PlanEnvironment. - - :param mask: - :type mask: list of :class:`MaskHint ` - :param options: - :type options: dict - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'mask': {'key': 'mask', 'type': '[MaskHint]'}, - 'options': {'key': 'options', 'type': '{JobOption}'}, - 'variables': {'key': 'variables', 'type': '{str}'} - } - - def __init__(self, mask=None, options=None, variables=None): - super(PlanEnvironment, self).__init__() - self.mask = mask - self.options = options - self.variables = variables diff --git a/vsts/vsts/task/v4_0/models/project_reference.py b/vsts/vsts/task/v4_0/models/project_reference.py deleted file mode 100644 index 8fd6ad8e..00000000 --- a/vsts/vsts/task/v4_0/models/project_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/task/v4_0/models/reference_links.py b/vsts/vsts/task/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/task/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/task/v4_0/models/task_attachment.py b/vsts/vsts/task/v4_0/models/task_attachment.py deleted file mode 100644 index 28b013b2..00000000 --- a/vsts/vsts/task/v4_0/models/task_attachment.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAttachment(Model): - """TaskAttachment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_on: - :type created_on: datetime - :param last_changed_by: - :type last_changed_by: str - :param last_changed_on: - :type last_changed_on: datetime - :param name: - :type name: str - :param record_id: - :type record_id: str - :param timeline_id: - :type timeline_id: str - :param type: - :type type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'record_id': {'key': 'recordId', 'type': 'str'}, - 'timeline_id': {'key': 'timelineId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, _links=None, created_on=None, last_changed_by=None, last_changed_on=None, name=None, record_id=None, timeline_id=None, type=None): - super(TaskAttachment, self).__init__() - self._links = _links - self.created_on = created_on - self.last_changed_by = last_changed_by - self.last_changed_on = last_changed_on - self.name = name - self.record_id = record_id - self.timeline_id = timeline_id - self.type = type diff --git a/vsts/vsts/task/v4_0/models/task_log.py b/vsts/vsts/task/v4_0/models/task_log.py deleted file mode 100644 index 491146e9..00000000 --- a/vsts/vsts/task/v4_0/models/task_log.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_log_reference import TaskLogReference - - -class TaskLog(TaskLogReference): - """TaskLog. - - :param id: - :type id: int - :param location: - :type location: str - :param created_on: - :type created_on: datetime - :param index_location: - :type index_location: str - :param last_changed_on: - :type last_changed_on: datetime - :param line_count: - :type line_count: long - :param path: - :type path: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'location': {'key': 'location', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'index_location': {'key': 'indexLocation', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'line_count': {'key': 'lineCount', 'type': 'long'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, id=None, location=None, created_on=None, index_location=None, last_changed_on=None, line_count=None, path=None): - super(TaskLog, self).__init__(id=id, location=location) - self.created_on = created_on - self.index_location = index_location - self.last_changed_on = last_changed_on - self.line_count = line_count - self.path = path diff --git a/vsts/vsts/task/v4_0/models/task_log_reference.py b/vsts/vsts/task/v4_0/models/task_log_reference.py deleted file mode 100644 index f544e25e..00000000 --- a/vsts/vsts/task/v4_0/models/task_log_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskLogReference(Model): - """TaskLogReference. - - :param id: - :type id: int - :param location: - :type location: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'location': {'key': 'location', 'type': 'str'} - } - - def __init__(self, id=None, location=None): - super(TaskLogReference, self).__init__() - self.id = id - self.location = location diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_container.py b/vsts/vsts/task/v4_0/models/task_orchestration_container.py deleted file mode 100644 index 88ab4fcc..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_container.py +++ /dev/null @@ -1,48 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_orchestration_item import TaskOrchestrationItem - - -class TaskOrchestrationContainer(TaskOrchestrationItem): - """TaskOrchestrationContainer. - - :param item_type: - :type item_type: object - :param children: - :type children: list of :class:`TaskOrchestrationItem ` - :param continue_on_error: - :type continue_on_error: bool - :param data: - :type data: dict - :param max_concurrency: - :type max_concurrency: int - :param parallel: - :type parallel: bool - :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` - """ - - _attribute_map = { - 'item_type': {'key': 'itemType', 'type': 'object'}, - 'children': {'key': 'children', 'type': '[TaskOrchestrationItem]'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'max_concurrency': {'key': 'maxConcurrency', 'type': 'int'}, - 'parallel': {'key': 'parallel', 'type': 'bool'}, - 'rollback': {'key': 'rollback', 'type': 'TaskOrchestrationContainer'} - } - - def __init__(self, item_type=None, children=None, continue_on_error=None, data=None, max_concurrency=None, parallel=None, rollback=None): - super(TaskOrchestrationContainer, self).__init__(item_type=item_type) - self.children = children - self.continue_on_error = continue_on_error - self.data = data - self.max_concurrency = max_concurrency - self.parallel = parallel - self.rollback = rollback diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_item.py b/vsts/vsts/task/v4_0/models/task_orchestration_item.py deleted file mode 100644 index e65ab5e6..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_item.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationItem(Model): - """TaskOrchestrationItem. - - :param item_type: - :type item_type: object - """ - - _attribute_map = { - 'item_type': {'key': 'itemType', 'type': 'object'} - } - - def __init__(self, item_type=None): - super(TaskOrchestrationItem, self).__init__() - self.item_type = item_type diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_owner.py b/vsts/vsts/task/v4_0/models/task_orchestration_owner.py deleted file mode 100644 index fe2ec448..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_owner.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationOwner(Model): - """TaskOrchestrationOwner. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None): - super(TaskOrchestrationOwner, self).__init__() - self._links = _links - self.id = id - self.name = name diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_plan.py b/vsts/vsts/task/v4_0/models/task_orchestration_plan.py deleted file mode 100644 index 4a812d3f..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_plan.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_orchestration_plan_reference import TaskOrchestrationPlanReference - - -class TaskOrchestrationPlan(TaskOrchestrationPlanReference): - """TaskOrchestrationPlan. - - :param artifact_location: - :type artifact_location: str - :param artifact_uri: - :type artifact_uri: str - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_id: - :type plan_id: str - :param plan_type: - :type plan_type: str - :param scope_identifier: - :type scope_identifier: str - :param version: - :type version: int - :param environment: - :type environment: :class:`PlanEnvironment ` - :param finish_time: - :type finish_time: datetime - :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` - :param plan_group: - :type plan_group: str - :param requested_by_id: - :type requested_by_id: str - :param requested_for_id: - :type requested_for_id: str - :param result: - :type result: object - :param result_code: - :type result_code: str - :param start_time: - :type start_time: datetime - :param state: - :type state: object - :param timeline: - :type timeline: :class:`TimelineReference ` - """ - - _attribute_map = { - 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'int'}, - 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, - 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} - } - - def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, plan_group=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): - super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) - self.environment = environment - self.finish_time = finish_time - self.implementation = implementation - self.plan_group = plan_group - self.requested_by_id = requested_by_id - self.requested_for_id = requested_for_id - self.result = result - self.result_code = result_code - self.start_time = start_time - self.state = state - self.timeline = timeline diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py b/vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py deleted file mode 100644 index 90bcfd29..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_plan_groups_queue_metrics.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationPlanGroupsQueueMetrics(Model): - """TaskOrchestrationPlanGroupsQueueMetrics. - - :param count: - :type count: int - :param status: - :type status: object - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, count=None, status=None): - super(TaskOrchestrationPlanGroupsQueueMetrics, self).__init__() - self.count = count - self.status = status diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py b/vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py deleted file mode 100644 index b5ec0b09..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_plan_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationPlanReference(Model): - """TaskOrchestrationPlanReference. - - :param artifact_location: - :type artifact_location: str - :param artifact_uri: - :type artifact_uri: str - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_id: - :type plan_id: str - :param plan_type: - :type plan_type: str - :param scope_identifier: - :type scope_identifier: str - :param version: - :type version: int - """ - - _attribute_map = { - 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'int'} - } - - def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): - super(TaskOrchestrationPlanReference, self).__init__() - self.artifact_location = artifact_location - self.artifact_uri = artifact_uri - self.definition = definition - self.owner = owner - self.plan_id = plan_id - self.plan_type = plan_type - self.scope_identifier = scope_identifier - self.version = version diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py b/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py deleted file mode 100644 index c06421b3..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationQueuedPlan(Model): - """TaskOrchestrationQueuedPlan. - - :param assign_time: - :type assign_time: datetime - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_group: - :type plan_group: str - :param plan_id: - :type plan_id: str - :param pool_id: - :type pool_id: int - :param queue_position: - :type queue_position: int - :param queue_time: - :type queue_time: datetime - :param scope_identifier: - :type scope_identifier: str - """ - - _attribute_map = { - 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'pool_id': {'key': 'poolId', 'type': 'int'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'} - } - - def __init__(self, assign_time=None, definition=None, owner=None, plan_group=None, plan_id=None, pool_id=None, queue_position=None, queue_time=None, scope_identifier=None): - super(TaskOrchestrationQueuedPlan, self).__init__() - self.assign_time = assign_time - self.definition = definition - self.owner = owner - self.plan_group = plan_group - self.plan_id = plan_id - self.pool_id = pool_id - self.queue_position = queue_position - self.queue_time = queue_time - self.scope_identifier = scope_identifier diff --git a/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py b/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py deleted file mode 100644 index 60069a93..00000000 --- a/vsts/vsts/task/v4_0/models/task_orchestration_queued_plan_group.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationQueuedPlanGroup(Model): - """TaskOrchestrationQueuedPlanGroup. - - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_group: - :type plan_group: str - :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` - :param project: - :type project: :class:`ProjectReference ` - :param queue_position: - :type queue_position: int - """ - - _attribute_map = { - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'plans': {'key': 'plans', 'type': '[TaskOrchestrationQueuedPlan]'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'} - } - - def __init__(self, definition=None, owner=None, plan_group=None, plans=None, project=None, queue_position=None): - super(TaskOrchestrationQueuedPlanGroup, self).__init__() - self.definition = definition - self.owner = owner - self.plan_group = plan_group - self.plans = plans - self.project = project - self.queue_position = queue_position diff --git a/vsts/vsts/task/v4_0/models/task_reference.py b/vsts/vsts/task/v4_0/models/task_reference.py deleted file mode 100644 index 3ff1dd7b..00000000 --- a/vsts/vsts/task/v4_0/models/task_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskReference(Model): - """TaskReference. - - :param id: - :type id: str - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, inputs=None, name=None, version=None): - super(TaskReference, self).__init__() - self.id = id - self.inputs = inputs - self.name = name - self.version = version diff --git a/vsts/vsts/task/v4_0/models/timeline.py b/vsts/vsts/task/v4_0/models/timeline.py deleted file mode 100644 index 95dc6c3e..00000000 --- a/vsts/vsts/task/v4_0/models/timeline.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .timeline_reference import TimelineReference - - -class Timeline(TimelineReference): - """Timeline. - - :param change_id: - :type change_id: int - :param id: - :type id: str - :param location: - :type location: str - :param last_changed_by: - :type last_changed_by: str - :param last_changed_on: - :type last_changed_on: datetime - :param records: - :type records: list of :class:`TimelineRecord ` - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'records': {'key': 'records', 'type': '[TimelineRecord]'} - } - - def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, last_changed_on=None, records=None): - super(Timeline, self).__init__(change_id=change_id, id=id, location=location) - self.last_changed_by = last_changed_by - self.last_changed_on = last_changed_on - self.records = records diff --git a/vsts/vsts/task/v4_0/models/timeline_record.py b/vsts/vsts/task/v4_0/models/timeline_record.py deleted file mode 100644 index d1297125..00000000 --- a/vsts/vsts/task/v4_0/models/timeline_record.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineRecord(Model): - """TimelineRecord. - - :param change_id: - :type change_id: int - :param current_operation: - :type current_operation: str - :param details: - :type details: :class:`TimelineReference ` - :param error_count: - :type error_count: int - :param finish_time: - :type finish_time: datetime - :param id: - :type id: str - :param issues: - :type issues: list of :class:`Issue ` - :param last_modified: - :type last_modified: datetime - :param location: - :type location: str - :param log: - :type log: :class:`TaskLogReference ` - :param name: - :type name: str - :param order: - :type order: int - :param parent_id: - :type parent_id: str - :param percent_complete: - :type percent_complete: int - :param ref_name: - :type ref_name: str - :param result: - :type result: object - :param result_code: - :type result_code: str - :param start_time: - :type start_time: datetime - :param state: - :type state: object - :param task: - :type task: :class:`TaskReference ` - :param type: - :type type: str - :param variables: - :type variables: dict - :param warning_count: - :type warning_count: int - :param worker_name: - :type worker_name: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'current_operation': {'key': 'currentOperation', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'TimelineReference'}, - 'error_count': {'key': 'errorCount', 'type': 'int'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'location': {'key': 'location', 'type': 'str'}, - 'log': {'key': 'log', 'type': 'TaskLogReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'parent_id': {'key': 'parentId', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'TaskReference'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'}, - 'warning_count': {'key': 'warningCount', 'type': 'int'}, - 'worker_name': {'key': 'workerName', 'type': 'str'} - } - - def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): - super(TimelineRecord, self).__init__() - self.change_id = change_id - self.current_operation = current_operation - self.details = details - self.error_count = error_count - self.finish_time = finish_time - self.id = id - self.issues = issues - self.last_modified = last_modified - self.location = location - self.log = log - self.name = name - self.order = order - self.parent_id = parent_id - self.percent_complete = percent_complete - self.ref_name = ref_name - self.result = result - self.result_code = result_code - self.start_time = start_time - self.state = state - self.task = task - self.type = type - self.variables = variables - self.warning_count = warning_count - self.worker_name = worker_name diff --git a/vsts/vsts/task/v4_0/models/timeline_reference.py b/vsts/vsts/task/v4_0/models/timeline_reference.py deleted file mode 100644 index 8755a8c4..00000000 --- a/vsts/vsts/task/v4_0/models/timeline_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineReference(Model): - """TimelineReference. - - :param change_id: - :type change_id: int - :param id: - :type id: str - :param location: - :type location: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'} - } - - def __init__(self, change_id=None, id=None, location=None): - super(TimelineReference, self).__init__() - self.change_id = change_id - self.id = id - self.location = location diff --git a/vsts/vsts/task/v4_0/models/variable_value.py b/vsts/vsts/task/v4_0/models/variable_value.py deleted file mode 100644 index 035049c0..00000000 --- a/vsts/vsts/task/v4_0/models/variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/task/v4_1/__init__.py b/vsts/vsts/task/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/task/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task/v4_1/models/__init__.py b/vsts/vsts/task/v4_1/models/__init__.py deleted file mode 100644 index f21600b9..00000000 --- a/vsts/vsts/task/v4_1/models/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .issue import Issue -from .job_option import JobOption -from .mask_hint import MaskHint -from .plan_environment import PlanEnvironment -from .project_reference import ProjectReference -from .reference_links import ReferenceLinks -from .task_attachment import TaskAttachment -from .task_log import TaskLog -from .task_log_reference import TaskLogReference -from .task_orchestration_container import TaskOrchestrationContainer -from .task_orchestration_item import TaskOrchestrationItem -from .task_orchestration_owner import TaskOrchestrationOwner -from .task_orchestration_plan import TaskOrchestrationPlan -from .task_orchestration_plan_groups_queue_metrics import TaskOrchestrationPlanGroupsQueueMetrics -from .task_orchestration_plan_reference import TaskOrchestrationPlanReference -from .task_orchestration_queued_plan import TaskOrchestrationQueuedPlan -from .task_orchestration_queued_plan_group import TaskOrchestrationQueuedPlanGroup -from .task_reference import TaskReference -from .timeline import Timeline -from .timeline_record import TimelineRecord -from .timeline_reference import TimelineReference -from .variable_value import VariableValue - -__all__ = [ - 'Issue', - 'JobOption', - 'MaskHint', - 'PlanEnvironment', - 'ProjectReference', - 'ReferenceLinks', - 'TaskAttachment', - 'TaskLog', - 'TaskLogReference', - 'TaskOrchestrationContainer', - 'TaskOrchestrationItem', - 'TaskOrchestrationOwner', - 'TaskOrchestrationPlan', - 'TaskOrchestrationPlanGroupsQueueMetrics', - 'TaskOrchestrationPlanReference', - 'TaskOrchestrationQueuedPlan', - 'TaskOrchestrationQueuedPlanGroup', - 'TaskReference', - 'Timeline', - 'TimelineRecord', - 'TimelineReference', - 'VariableValue', -] diff --git a/vsts/vsts/task/v4_1/models/issue.py b/vsts/vsts/task/v4_1/models/issue.py deleted file mode 100644 index 02b96b6e..00000000 --- a/vsts/vsts/task/v4_1/models/issue.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Issue(Model): - """Issue. - - :param category: - :type category: str - :param data: - :type data: dict - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'str'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, category=None, data=None, message=None, type=None): - super(Issue, self).__init__() - self.category = category - self.data = data - self.message = message - self.type = type diff --git a/vsts/vsts/task/v4_1/models/job_option.py b/vsts/vsts/task/v4_1/models/job_option.py deleted file mode 100644 index 223a3167..00000000 --- a/vsts/vsts/task/v4_1/models/job_option.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JobOption(Model): - """JobOption. - - :param data: - :type data: dict - :param id: Gets the id of the option. - :type id: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{str}'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, data=None, id=None): - super(JobOption, self).__init__() - self.data = data - self.id = id diff --git a/vsts/vsts/task/v4_1/models/mask_hint.py b/vsts/vsts/task/v4_1/models/mask_hint.py deleted file mode 100644 index 9fa07965..00000000 --- a/vsts/vsts/task/v4_1/models/mask_hint.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MaskHint(Model): - """MaskHint. - - :param type: - :type type: object - :param value: - :type value: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'object'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, type=None, value=None): - super(MaskHint, self).__init__() - self.type = type - self.value = value diff --git a/vsts/vsts/task/v4_1/models/plan_environment.py b/vsts/vsts/task/v4_1/models/plan_environment.py deleted file mode 100644 index c39fc3a5..00000000 --- a/vsts/vsts/task/v4_1/models/plan_environment.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PlanEnvironment(Model): - """PlanEnvironment. - - :param mask: - :type mask: list of :class:`MaskHint ` - :param options: - :type options: dict - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'mask': {'key': 'mask', 'type': '[MaskHint]'}, - 'options': {'key': 'options', 'type': '{JobOption}'}, - 'variables': {'key': 'variables', 'type': '{str}'} - } - - def __init__(self, mask=None, options=None, variables=None): - super(PlanEnvironment, self).__init__() - self.mask = mask - self.options = options - self.variables = variables diff --git a/vsts/vsts/task/v4_1/models/project_reference.py b/vsts/vsts/task/v4_1/models/project_reference.py deleted file mode 100644 index 8fd6ad8e..00000000 --- a/vsts/vsts/task/v4_1/models/project_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/task/v4_1/models/reference_links.py b/vsts/vsts/task/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/task/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/task/v4_1/models/task_attachment.py b/vsts/vsts/task/v4_1/models/task_attachment.py deleted file mode 100644 index 8ac213bc..00000000 --- a/vsts/vsts/task/v4_1/models/task_attachment.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAttachment(Model): - """TaskAttachment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_on: - :type created_on: datetime - :param last_changed_by: - :type last_changed_by: str - :param last_changed_on: - :type last_changed_on: datetime - :param name: - :type name: str - :param record_id: - :type record_id: str - :param timeline_id: - :type timeline_id: str - :param type: - :type type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'record_id': {'key': 'recordId', 'type': 'str'}, - 'timeline_id': {'key': 'timelineId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, _links=None, created_on=None, last_changed_by=None, last_changed_on=None, name=None, record_id=None, timeline_id=None, type=None): - super(TaskAttachment, self).__init__() - self._links = _links - self.created_on = created_on - self.last_changed_by = last_changed_by - self.last_changed_on = last_changed_on - self.name = name - self.record_id = record_id - self.timeline_id = timeline_id - self.type = type diff --git a/vsts/vsts/task/v4_1/models/task_log.py b/vsts/vsts/task/v4_1/models/task_log.py deleted file mode 100644 index 491146e9..00000000 --- a/vsts/vsts/task/v4_1/models/task_log.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_log_reference import TaskLogReference - - -class TaskLog(TaskLogReference): - """TaskLog. - - :param id: - :type id: int - :param location: - :type location: str - :param created_on: - :type created_on: datetime - :param index_location: - :type index_location: str - :param last_changed_on: - :type last_changed_on: datetime - :param line_count: - :type line_count: long - :param path: - :type path: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'location': {'key': 'location', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'index_location': {'key': 'indexLocation', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'line_count': {'key': 'lineCount', 'type': 'long'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, id=None, location=None, created_on=None, index_location=None, last_changed_on=None, line_count=None, path=None): - super(TaskLog, self).__init__(id=id, location=location) - self.created_on = created_on - self.index_location = index_location - self.last_changed_on = last_changed_on - self.line_count = line_count - self.path = path diff --git a/vsts/vsts/task/v4_1/models/task_log_reference.py b/vsts/vsts/task/v4_1/models/task_log_reference.py deleted file mode 100644 index f544e25e..00000000 --- a/vsts/vsts/task/v4_1/models/task_log_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskLogReference(Model): - """TaskLogReference. - - :param id: - :type id: int - :param location: - :type location: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'location': {'key': 'location', 'type': 'str'} - } - - def __init__(self, id=None, location=None): - super(TaskLogReference, self).__init__() - self.id = id - self.location = location diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_container.py b/vsts/vsts/task/v4_1/models/task_orchestration_container.py deleted file mode 100644 index 6e091970..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_container.py +++ /dev/null @@ -1,48 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_orchestration_item import TaskOrchestrationItem - - -class TaskOrchestrationContainer(TaskOrchestrationItem): - """TaskOrchestrationContainer. - - :param item_type: - :type item_type: object - :param children: - :type children: list of :class:`TaskOrchestrationItem ` - :param continue_on_error: - :type continue_on_error: bool - :param data: - :type data: dict - :param max_concurrency: - :type max_concurrency: int - :param parallel: - :type parallel: bool - :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` - """ - - _attribute_map = { - 'item_type': {'key': 'itemType', 'type': 'object'}, - 'children': {'key': 'children', 'type': '[TaskOrchestrationItem]'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'max_concurrency': {'key': 'maxConcurrency', 'type': 'int'}, - 'parallel': {'key': 'parallel', 'type': 'bool'}, - 'rollback': {'key': 'rollback', 'type': 'TaskOrchestrationContainer'} - } - - def __init__(self, item_type=None, children=None, continue_on_error=None, data=None, max_concurrency=None, parallel=None, rollback=None): - super(TaskOrchestrationContainer, self).__init__(item_type=item_type) - self.children = children - self.continue_on_error = continue_on_error - self.data = data - self.max_concurrency = max_concurrency - self.parallel = parallel - self.rollback = rollback diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_item.py b/vsts/vsts/task/v4_1/models/task_orchestration_item.py deleted file mode 100644 index e65ab5e6..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_item.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationItem(Model): - """TaskOrchestrationItem. - - :param item_type: - :type item_type: object - """ - - _attribute_map = { - 'item_type': {'key': 'itemType', 'type': 'object'} - } - - def __init__(self, item_type=None): - super(TaskOrchestrationItem, self).__init__() - self.item_type = item_type diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_owner.py b/vsts/vsts/task/v4_1/models/task_orchestration_owner.py deleted file mode 100644 index c7831775..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_owner.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationOwner(Model): - """TaskOrchestrationOwner. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None): - super(TaskOrchestrationOwner, self).__init__() - self._links = _links - self.id = id - self.name = name diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_plan.py b/vsts/vsts/task/v4_1/models/task_orchestration_plan.py deleted file mode 100644 index 0f888ae5..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_plan.py +++ /dev/null @@ -1,88 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_orchestration_plan_reference import TaskOrchestrationPlanReference - - -class TaskOrchestrationPlan(TaskOrchestrationPlanReference): - """TaskOrchestrationPlan. - - :param artifact_location: - :type artifact_location: str - :param artifact_uri: - :type artifact_uri: str - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_group: - :type plan_group: str - :param plan_id: - :type plan_id: str - :param plan_type: - :type plan_type: str - :param scope_identifier: - :type scope_identifier: str - :param version: - :type version: int - :param environment: - :type environment: :class:`PlanEnvironment ` - :param finish_time: - :type finish_time: datetime - :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` - :param requested_by_id: - :type requested_by_id: str - :param requested_for_id: - :type requested_for_id: str - :param result: - :type result: object - :param result_code: - :type result_code: str - :param start_time: - :type start_time: datetime - :param state: - :type state: object - :param timeline: - :type timeline: :class:`TimelineReference ` - """ - - _attribute_map = { - 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'int'}, - 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, - 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, - 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} - } - - def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): - super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_group=plan_group, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) - self.environment = environment - self.finish_time = finish_time - self.implementation = implementation - self.requested_by_id = requested_by_id - self.requested_for_id = requested_for_id - self.result = result - self.result_code = result_code - self.start_time = start_time - self.state = state - self.timeline = timeline diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py b/vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py deleted file mode 100644 index 90bcfd29..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_plan_groups_queue_metrics.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationPlanGroupsQueueMetrics(Model): - """TaskOrchestrationPlanGroupsQueueMetrics. - - :param count: - :type count: int - :param status: - :type status: object - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, count=None, status=None): - super(TaskOrchestrationPlanGroupsQueueMetrics, self).__init__() - self.count = count - self.status = status diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py b/vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py deleted file mode 100644 index 9dd58580..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_plan_reference.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationPlanReference(Model): - """TaskOrchestrationPlanReference. - - :param artifact_location: - :type artifact_location: str - :param artifact_uri: - :type artifact_uri: str - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_group: - :type plan_group: str - :param plan_id: - :type plan_id: str - :param plan_type: - :type plan_type: str - :param scope_identifier: - :type scope_identifier: str - :param version: - :type version: int - """ - - _attribute_map = { - 'artifact_location': {'key': 'artifactLocation', 'type': 'str'}, - 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'int'} - } - - def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): - super(TaskOrchestrationPlanReference, self).__init__() - self.artifact_location = artifact_location - self.artifact_uri = artifact_uri - self.definition = definition - self.owner = owner - self.plan_group = plan_group - self.plan_id = plan_id - self.plan_type = plan_type - self.scope_identifier = scope_identifier - self.version = version diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py b/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py deleted file mode 100644 index e6d8ee60..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationQueuedPlan(Model): - """TaskOrchestrationQueuedPlan. - - :param assign_time: - :type assign_time: datetime - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_group: - :type plan_group: str - :param plan_id: - :type plan_id: str - :param pool_id: - :type pool_id: int - :param queue_position: - :type queue_position: int - :param queue_time: - :type queue_time: datetime - :param scope_identifier: - :type scope_identifier: str - """ - - _attribute_map = { - 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'pool_id': {'key': 'poolId', 'type': 'int'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'} - } - - def __init__(self, assign_time=None, definition=None, owner=None, plan_group=None, plan_id=None, pool_id=None, queue_position=None, queue_time=None, scope_identifier=None): - super(TaskOrchestrationQueuedPlan, self).__init__() - self.assign_time = assign_time - self.definition = definition - self.owner = owner - self.plan_group = plan_group - self.plan_id = plan_id - self.pool_id = pool_id - self.queue_position = queue_position - self.queue_time = queue_time - self.scope_identifier = scope_identifier diff --git a/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py b/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py deleted file mode 100644 index 1c0219a5..00000000 --- a/vsts/vsts/task/v4_1/models/task_orchestration_queued_plan_group.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationQueuedPlanGroup(Model): - """TaskOrchestrationQueuedPlanGroup. - - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_group: - :type plan_group: str - :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` - :param project: - :type project: :class:`ProjectReference ` - :param queue_position: - :type queue_position: int - """ - - _attribute_map = { - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'plans': {'key': 'plans', 'type': '[TaskOrchestrationQueuedPlan]'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'} - } - - def __init__(self, definition=None, owner=None, plan_group=None, plans=None, project=None, queue_position=None): - super(TaskOrchestrationQueuedPlanGroup, self).__init__() - self.definition = definition - self.owner = owner - self.plan_group = plan_group - self.plans = plans - self.project = project - self.queue_position = queue_position diff --git a/vsts/vsts/task/v4_1/models/task_reference.py b/vsts/vsts/task/v4_1/models/task_reference.py deleted file mode 100644 index 3ff1dd7b..00000000 --- a/vsts/vsts/task/v4_1/models/task_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskReference(Model): - """TaskReference. - - :param id: - :type id: str - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, inputs=None, name=None, version=None): - super(TaskReference, self).__init__() - self.id = id - self.inputs = inputs - self.name = name - self.version = version diff --git a/vsts/vsts/task/v4_1/models/timeline.py b/vsts/vsts/task/v4_1/models/timeline.py deleted file mode 100644 index c4f9f1b3..00000000 --- a/vsts/vsts/task/v4_1/models/timeline.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .timeline_reference import TimelineReference - - -class Timeline(TimelineReference): - """Timeline. - - :param change_id: - :type change_id: int - :param id: - :type id: str - :param location: - :type location: str - :param last_changed_by: - :type last_changed_by: str - :param last_changed_on: - :type last_changed_on: datetime - :param records: - :type records: list of :class:`TimelineRecord ` - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, - 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, - 'records': {'key': 'records', 'type': '[TimelineRecord]'} - } - - def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, last_changed_on=None, records=None): - super(Timeline, self).__init__(change_id=change_id, id=id, location=location) - self.last_changed_by = last_changed_by - self.last_changed_on = last_changed_on - self.records = records diff --git a/vsts/vsts/task/v4_1/models/timeline_record.py b/vsts/vsts/task/v4_1/models/timeline_record.py deleted file mode 100644 index 455e8bf0..00000000 --- a/vsts/vsts/task/v4_1/models/timeline_record.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineRecord(Model): - """TimelineRecord. - - :param change_id: - :type change_id: int - :param current_operation: - :type current_operation: str - :param details: - :type details: :class:`TimelineReference ` - :param error_count: - :type error_count: int - :param finish_time: - :type finish_time: datetime - :param id: - :type id: str - :param issues: - :type issues: list of :class:`Issue ` - :param last_modified: - :type last_modified: datetime - :param location: - :type location: str - :param log: - :type log: :class:`TaskLogReference ` - :param name: - :type name: str - :param order: - :type order: int - :param parent_id: - :type parent_id: str - :param percent_complete: - :type percent_complete: int - :param ref_name: - :type ref_name: str - :param result: - :type result: object - :param result_code: - :type result_code: str - :param start_time: - :type start_time: datetime - :param state: - :type state: object - :param task: - :type task: :class:`TaskReference ` - :param type: - :type type: str - :param variables: - :type variables: dict - :param warning_count: - :type warning_count: int - :param worker_name: - :type worker_name: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'current_operation': {'key': 'currentOperation', 'type': 'str'}, - 'details': {'key': 'details', 'type': 'TimelineReference'}, - 'error_count': {'key': 'errorCount', 'type': 'int'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'location': {'key': 'location', 'type': 'str'}, - 'log': {'key': 'log', 'type': 'TaskLogReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'parent_id': {'key': 'parentId', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'TaskReference'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'}, - 'warning_count': {'key': 'warningCount', 'type': 'int'}, - 'worker_name': {'key': 'workerName', 'type': 'str'} - } - - def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): - super(TimelineRecord, self).__init__() - self.change_id = change_id - self.current_operation = current_operation - self.details = details - self.error_count = error_count - self.finish_time = finish_time - self.id = id - self.issues = issues - self.last_modified = last_modified - self.location = location - self.log = log - self.name = name - self.order = order - self.parent_id = parent_id - self.percent_complete = percent_complete - self.ref_name = ref_name - self.result = result - self.result_code = result_code - self.start_time = start_time - self.state = state - self.task = task - self.type = type - self.variables = variables - self.warning_count = warning_count - self.worker_name = worker_name diff --git a/vsts/vsts/task/v4_1/models/timeline_reference.py b/vsts/vsts/task/v4_1/models/timeline_reference.py deleted file mode 100644 index 8755a8c4..00000000 --- a/vsts/vsts/task/v4_1/models/timeline_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineReference(Model): - """TimelineReference. - - :param change_id: - :type change_id: int - :param id: - :type id: str - :param location: - :type location: str - """ - - _attribute_map = { - 'change_id': {'key': 'changeId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'} - } - - def __init__(self, change_id=None, id=None, location=None): - super(TimelineReference, self).__init__() - self.change_id = change_id - self.id = id - self.location = location diff --git a/vsts/vsts/task/v4_1/models/variable_value.py b/vsts/vsts/task/v4_1/models/variable_value.py deleted file mode 100644 index 035049c0..00000000 --- a/vsts/vsts/task/v4_1/models/variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/task_agent/__init__.py b/vsts/vsts/task_agent/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/task_agent/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task_agent/v4_0/__init__.py b/vsts/vsts/task_agent/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/task_agent/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task_agent/v4_0/models/__init__.py b/vsts/vsts/task_agent/v4_0/models/__init__.py deleted file mode 100644 index fa9ad95d..00000000 --- a/vsts/vsts/task_agent/v4_0/models/__init__.py +++ /dev/null @@ -1,189 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .aad_oauth_token_request import AadOauthTokenRequest -from .aad_oauth_token_result import AadOauthTokenResult -from .authorization_header import AuthorizationHeader -from .azure_subscription import AzureSubscription -from .azure_subscription_query_result import AzureSubscriptionQueryResult -from .data_source import DataSource -from .data_source_binding import DataSourceBinding -from .data_source_binding_base import DataSourceBindingBase -from .data_source_details import DataSourceDetails -from .dependency_binding import DependencyBinding -from .dependency_data import DependencyData -from .depends_on import DependsOn -from .deployment_group import DeploymentGroup -from .deployment_group_metrics import DeploymentGroupMetrics -from .deployment_group_reference import DeploymentGroupReference -from .deployment_machine import DeploymentMachine -from .deployment_machine_group import DeploymentMachineGroup -from .deployment_machine_group_reference import DeploymentMachineGroupReference -from .endpoint_authorization import EndpointAuthorization -from .endpoint_url import EndpointUrl -from .help_link import HelpLink -from .identity_ref import IdentityRef -from .input_descriptor import InputDescriptor -from .input_validation import InputValidation -from .input_validation_request import InputValidationRequest -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .metrics_column_meta_data import MetricsColumnMetaData -from .metrics_columns_header import MetricsColumnsHeader -from .metrics_row import MetricsRow -from .package_metadata import PackageMetadata -from .package_version import PackageVersion -from .project_reference import ProjectReference -from .publish_task_group_metadata import PublishTaskGroupMetadata -from .reference_links import ReferenceLinks -from .result_transformation_details import ResultTransformationDetails -from .secure_file import SecureFile -from .service_endpoint import ServiceEndpoint -from .service_endpoint_authentication_scheme import ServiceEndpointAuthenticationScheme -from .service_endpoint_details import ServiceEndpointDetails -from .service_endpoint_execution_data import ServiceEndpointExecutionData -from .service_endpoint_execution_record import ServiceEndpointExecutionRecord -from .service_endpoint_execution_records_input import ServiceEndpointExecutionRecordsInput -from .service_endpoint_request import ServiceEndpointRequest -from .service_endpoint_request_result import ServiceEndpointRequestResult -from .service_endpoint_type import ServiceEndpointType -from .task_agent import TaskAgent -from .task_agent_authorization import TaskAgentAuthorization -from .task_agent_job_request import TaskAgentJobRequest -from .task_agent_message import TaskAgentMessage -from .task_agent_pool import TaskAgentPool -from .task_agent_pool_maintenance_definition import TaskAgentPoolMaintenanceDefinition -from .task_agent_pool_maintenance_job import TaskAgentPoolMaintenanceJob -from .task_agent_pool_maintenance_job_target_agent import TaskAgentPoolMaintenanceJobTargetAgent -from .task_agent_pool_maintenance_options import TaskAgentPoolMaintenanceOptions -from .task_agent_pool_maintenance_retention_policy import TaskAgentPoolMaintenanceRetentionPolicy -from .task_agent_pool_maintenance_schedule import TaskAgentPoolMaintenanceSchedule -from .task_agent_pool_reference import TaskAgentPoolReference -from .task_agent_public_key import TaskAgentPublicKey -from .task_agent_queue import TaskAgentQueue -from .task_agent_reference import TaskAgentReference -from .task_agent_session import TaskAgentSession -from .task_agent_session_key import TaskAgentSessionKey -from .task_agent_update import TaskAgentUpdate -from .task_agent_update_reason import TaskAgentUpdateReason -from .task_definition import TaskDefinition -from .task_definition_endpoint import TaskDefinitionEndpoint -from .task_definition_reference import TaskDefinitionReference -from .task_execution import TaskExecution -from .task_group import TaskGroup -from .task_group_definition import TaskGroupDefinition -from .task_group_revision import TaskGroupRevision -from .task_group_step import TaskGroupStep -from .task_hub_license_details import TaskHubLicenseDetails -from .task_input_definition import TaskInputDefinition -from .task_input_definition_base import TaskInputDefinitionBase -from .task_input_validation import TaskInputValidation -from .task_orchestration_owner import TaskOrchestrationOwner -from .task_output_variable import TaskOutputVariable -from .task_package_metadata import TaskPackageMetadata -from .task_reference import TaskReference -from .task_source_definition import TaskSourceDefinition -from .task_source_definition_base import TaskSourceDefinitionBase -from .task_version import TaskVersion -from .validation_item import ValidationItem -from .variable_group import VariableGroup -from .variable_group_provider_data import VariableGroupProviderData -from .variable_value import VariableValue - -__all__ = [ - 'AadOauthTokenRequest', - 'AadOauthTokenResult', - 'AuthorizationHeader', - 'AzureSubscription', - 'AzureSubscriptionQueryResult', - 'DataSource', - 'DataSourceBinding', - 'DataSourceBindingBase', - 'DataSourceDetails', - 'DependencyBinding', - 'DependencyData', - 'DependsOn', - 'DeploymentGroup', - 'DeploymentGroupMetrics', - 'DeploymentGroupReference', - 'DeploymentMachine', - 'DeploymentMachineGroup', - 'DeploymentMachineGroupReference', - 'EndpointAuthorization', - 'EndpointUrl', - 'HelpLink', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValidationRequest', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'MetricsColumnMetaData', - 'MetricsColumnsHeader', - 'MetricsRow', - 'PackageMetadata', - 'PackageVersion', - 'ProjectReference', - 'PublishTaskGroupMetadata', - 'ReferenceLinks', - 'ResultTransformationDetails', - 'SecureFile', - 'ServiceEndpoint', - 'ServiceEndpointAuthenticationScheme', - 'ServiceEndpointDetails', - 'ServiceEndpointExecutionData', - 'ServiceEndpointExecutionRecord', - 'ServiceEndpointExecutionRecordsInput', - 'ServiceEndpointRequest', - 'ServiceEndpointRequestResult', - 'ServiceEndpointType', - 'TaskAgent', - 'TaskAgentAuthorization', - 'TaskAgentJobRequest', - 'TaskAgentMessage', - 'TaskAgentPool', - 'TaskAgentPoolMaintenanceDefinition', - 'TaskAgentPoolMaintenanceJob', - 'TaskAgentPoolMaintenanceJobTargetAgent', - 'TaskAgentPoolMaintenanceOptions', - 'TaskAgentPoolMaintenanceRetentionPolicy', - 'TaskAgentPoolMaintenanceSchedule', - 'TaskAgentPoolReference', - 'TaskAgentPublicKey', - 'TaskAgentQueue', - 'TaskAgentReference', - 'TaskAgentSession', - 'TaskAgentSessionKey', - 'TaskAgentUpdate', - 'TaskAgentUpdateReason', - 'TaskDefinition', - 'TaskDefinitionEndpoint', - 'TaskDefinitionReference', - 'TaskExecution', - 'TaskGroup', - 'TaskGroupDefinition', - 'TaskGroupRevision', - 'TaskGroupStep', - 'TaskHubLicenseDetails', - 'TaskInputDefinition', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskOrchestrationOwner', - 'TaskOutputVariable', - 'TaskPackageMetadata', - 'TaskReference', - 'TaskSourceDefinition', - 'TaskSourceDefinitionBase', - 'TaskVersion', - 'ValidationItem', - 'VariableGroup', - 'VariableGroupProviderData', - 'VariableValue', -] diff --git a/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py b/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py deleted file mode 100644 index e5ad3183..00000000 --- a/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_request.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AadOauthTokenRequest(Model): - """AadOauthTokenRequest. - - :param refresh: - :type refresh: bool - :param resource: - :type resource: str - :param tenant_id: - :type tenant_id: str - :param token: - :type token: str - """ - - _attribute_map = { - 'refresh': {'key': 'refresh', 'type': 'bool'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'} - } - - def __init__(self, refresh=None, resource=None, tenant_id=None, token=None): - super(AadOauthTokenRequest, self).__init__() - self.refresh = refresh - self.resource = resource - self.tenant_id = tenant_id - self.token = token diff --git a/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py b/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py deleted file mode 100644 index b3cd8c2e..00000000 --- a/vsts/vsts/task_agent/v4_0/models/aad_oauth_token_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AadOauthTokenResult(Model): - """AadOauthTokenResult. - - :param access_token: - :type access_token: str - :param refresh_token_cache: - :type refresh_token_cache: str - """ - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'str'}, - 'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'} - } - - def __init__(self, access_token=None, refresh_token_cache=None): - super(AadOauthTokenResult, self).__init__() - self.access_token = access_token - self.refresh_token_cache = refresh_token_cache diff --git a/vsts/vsts/task_agent/v4_0/models/authorization_header.py b/vsts/vsts/task_agent/v4_0/models/authorization_header.py deleted file mode 100644 index 015e6775..00000000 --- a/vsts/vsts/task_agent/v4_0/models/authorization_header.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthorizationHeader(Model): - """AuthorizationHeader. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(AuthorizationHeader, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/azure_subscription.py b/vsts/vsts/task_agent/v4_0/models/azure_subscription.py deleted file mode 100644 index ffd4994d..00000000 --- a/vsts/vsts/task_agent/v4_0/models/azure_subscription.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzureSubscription(Model): - """AzureSubscription. - - :param display_name: - :type display_name: str - :param subscription_id: - :type subscription_id: str - :param subscription_tenant_id: - :type subscription_tenant_id: str - :param subscription_tenant_name: - :type subscription_tenant_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, - 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} - } - - def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): - super(AzureSubscription, self).__init__() - self.display_name = display_name - self.subscription_id = subscription_id - self.subscription_tenant_id = subscription_tenant_id - self.subscription_tenant_name = subscription_tenant_name diff --git a/vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py b/vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py deleted file mode 100644 index 97759cfc..00000000 --- a/vsts/vsts/task_agent/v4_0/models/azure_subscription_query_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzureSubscriptionQueryResult(Model): - """AzureSubscriptionQueryResult. - - :param error_message: - :type error_message: str - :param value: - :type value: list of :class:`AzureSubscription ` - """ - - _attribute_map = { - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[AzureSubscription]'} - } - - def __init__(self, error_message=None, value=None): - super(AzureSubscriptionQueryResult, self).__init__() - self.error_message = error_message - self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/data_source.py b/vsts/vsts/task_agent/v4_0/models/data_source.py deleted file mode 100644 index 0c24d5c3..00000000 --- a/vsts/vsts/task_agent/v4_0/models/data_source.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSource(Model): - """DataSource. - - :param endpoint_url: - :type endpoint_url: str - :param name: - :type name: str - :param resource_url: - :type resource_url: str - :param result_selector: - :type result_selector: str - """ - - _attribute_map = { - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'} - } - - def __init__(self, endpoint_url=None, name=None, resource_url=None, result_selector=None): - super(DataSource, self).__init__() - self.endpoint_url = endpoint_url - self.name = name - self.resource_url = resource_url - self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_0/models/data_source_binding.py b/vsts/vsts/task_agent/v4_0/models/data_source_binding.py deleted file mode 100644 index c71d590d..00000000 --- a/vsts/vsts/task_agent/v4_0/models/data_source_binding.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .data_source_binding_base import DataSourceBindingBase - - -class DataSourceBinding(DataSourceBindingBase): - """DataSourceBinding. - - :param data_source_name: - :type data_source_name: str - :param endpoint_id: - :type endpoint_id: str - :param endpoint_url: - :type endpoint_url: str - :param parameters: - :type parameters: dict - :param result_selector: - :type result_selector: str - :param result_template: - :type result_template: str - :param target: - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) diff --git a/vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py b/vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py deleted file mode 100644 index e2c6e8d5..00000000 --- a/vsts/vsts/task_agent/v4_0/models/data_source_binding_base.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: - :type data_source_name: str - :param endpoint_id: - :type endpoint_id: str - :param endpoint_url: - :type endpoint_url: str - :param parameters: - :type parameters: dict - :param result_selector: - :type result_selector: str - :param result_template: - :type result_template: str - :param target: - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target diff --git a/vsts/vsts/task_agent/v4_0/models/data_source_details.py b/vsts/vsts/task_agent/v4_0/models/data_source_details.py deleted file mode 100644 index 11123d04..00000000 --- a/vsts/vsts/task_agent/v4_0/models/data_source_details.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceDetails(Model): - """DataSourceDetails. - - :param data_source_name: - :type data_source_name: str - :param data_source_url: - :type data_source_url: str - :param parameters: - :type parameters: dict - :param resource_url: - :type resource_url: str - :param result_selector: - :type result_selector: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'} - } - - def __init__(self, data_source_name=None, data_source_url=None, parameters=None, resource_url=None, result_selector=None): - super(DataSourceDetails, self).__init__() - self.data_source_name = data_source_name - self.data_source_url = data_source_url - self.parameters = parameters - self.resource_url = resource_url - self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_0/models/dependency_binding.py b/vsts/vsts/task_agent/v4_0/models/dependency_binding.py deleted file mode 100644 index e8eb3ac1..00000000 --- a/vsts/vsts/task_agent/v4_0/models/dependency_binding.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependencyBinding(Model): - """DependencyBinding. - - :param key: - :type key: str - :param value: - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, key=None, value=None): - super(DependencyBinding, self).__init__() - self.key = key - self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/dependency_data.py b/vsts/vsts/task_agent/v4_0/models/dependency_data.py deleted file mode 100644 index 3faa1790..00000000 --- a/vsts/vsts/task_agent/v4_0/models/dependency_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependencyData(Model): - """DependencyData. - - :param input: - :type input: str - :param map: - :type map: list of { key: str; value: [{ key: str; value: str }] } - """ - - _attribute_map = { - 'input': {'key': 'input', 'type': 'str'}, - 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} - } - - def __init__(self, input=None, map=None): - super(DependencyData, self).__init__() - self.input = input - self.map = map diff --git a/vsts/vsts/task_agent/v4_0/models/depends_on.py b/vsts/vsts/task_agent/v4_0/models/depends_on.py deleted file mode 100644 index df3eb111..00000000 --- a/vsts/vsts/task_agent/v4_0/models/depends_on.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependsOn(Model): - """DependsOn. - - :param input: - :type input: str - :param map: - :type map: list of :class:`DependencyBinding ` - """ - - _attribute_map = { - 'input': {'key': 'input', 'type': 'str'}, - 'map': {'key': 'map', 'type': '[DependencyBinding]'} - } - - def __init__(self, input=None, map=None): - super(DependsOn, self).__init__() - self.input = input - self.map = map diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_group.py b/vsts/vsts/task_agent/v4_0/models/deployment_group.py deleted file mode 100644 index dc4a1432..00000000 --- a/vsts/vsts/task_agent/v4_0/models/deployment_group.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .deployment_group_reference import DeploymentGroupReference - - -class DeploymentGroup(DeploymentGroupReference): - """DeploymentGroup. - - :param id: - :type id: int - :param name: - :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` - :param description: - :type description: str - :param machine_count: - :type machine_count: int - :param machines: - :type machines: list of :class:`DeploymentMachine ` - :param machine_tags: - :type machine_tags: list of str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'description': {'key': 'description', 'type': 'str'}, - 'machine_count': {'key': 'machineCount', 'type': 'int'}, - 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, - 'machine_tags': {'key': 'machineTags', 'type': '[str]'} - } - - def __init__(self, id=None, name=None, pool=None, project=None, description=None, machine_count=None, machines=None, machine_tags=None): - super(DeploymentGroup, self).__init__(id=id, name=name, pool=pool, project=project) - self.description = description - self.machine_count = machine_count - self.machines = machines - self.machine_tags = machine_tags diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py b/vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py deleted file mode 100644 index b4081350..00000000 --- a/vsts/vsts/task_agent/v4_0/models/deployment_group_metrics.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentGroupMetrics(Model): - """DeploymentGroupMetrics. - - :param columns_header: - :type columns_header: :class:`MetricsColumnsHeader ` - :param deployment_group: - :type deployment_group: :class:`DeploymentGroupReference ` - :param rows: - :type rows: list of :class:`MetricsRow ` - """ - - _attribute_map = { - 'columns_header': {'key': 'columnsHeader', 'type': 'MetricsColumnsHeader'}, - 'deployment_group': {'key': 'deploymentGroup', 'type': 'DeploymentGroupReference'}, - 'rows': {'key': 'rows', 'type': '[MetricsRow]'} - } - - def __init__(self, columns_header=None, deployment_group=None, rows=None): - super(DeploymentGroupMetrics, self).__init__() - self.columns_header = columns_header - self.deployment_group = deployment_group - self.rows = rows diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py b/vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py deleted file mode 100644 index 5baac38f..00000000 --- a/vsts/vsts/task_agent/v4_0/models/deployment_group_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentGroupReference(Model): - """DeploymentGroupReference. - - :param id: - :type id: int - :param name: - :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'} - } - - def __init__(self, id=None, name=None, pool=None, project=None): - super(DeploymentGroupReference, self).__init__() - self.id = id - self.name = name - self.pool = pool - self.project = project diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_machine.py b/vsts/vsts/task_agent/v4_0/models/deployment_machine.py deleted file mode 100644 index 243eea37..00000000 --- a/vsts/vsts/task_agent/v4_0/models/deployment_machine.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentMachine(Model): - """DeploymentMachine. - - :param agent: - :type agent: :class:`TaskAgent ` - :param id: - :type id: int - :param tags: - :type tags: list of str - """ - - _attribute_map = { - 'agent': {'key': 'agent', 'type': 'TaskAgent'}, - 'id': {'key': 'id', 'type': 'int'}, - 'tags': {'key': 'tags', 'type': '[str]'} - } - - def __init__(self, agent=None, id=None, tags=None): - super(DeploymentMachine, self).__init__() - self.agent = agent - self.id = id - self.tags = tags diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py b/vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py deleted file mode 100644 index 045bb631..00000000 --- a/vsts/vsts/task_agent/v4_0/models/deployment_machine_group.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .deployment_machine_group_reference import DeploymentMachineGroupReference - - -class DeploymentMachineGroup(DeploymentMachineGroupReference): - """DeploymentMachineGroup. - - :param id: - :type id: int - :param name: - :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` - :param machines: - :type machines: list of :class:`DeploymentMachine ` - :param size: - :type size: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, - 'size': {'key': 'size', 'type': 'int'} - } - - def __init__(self, id=None, name=None, pool=None, project=None, machines=None, size=None): - super(DeploymentMachineGroup, self).__init__(id=id, name=name, pool=pool, project=project) - self.machines = machines - self.size = size diff --git a/vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py b/vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py deleted file mode 100644 index f5ae9bbd..00000000 --- a/vsts/vsts/task_agent/v4_0/models/deployment_machine_group_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentMachineGroupReference(Model): - """DeploymentMachineGroupReference. - - :param id: - :type id: int - :param name: - :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'} - } - - def __init__(self, id=None, name=None, pool=None, project=None): - super(DeploymentMachineGroupReference, self).__init__() - self.id = id - self.name = name - self.pool = pool - self.project = project diff --git a/vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py b/vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py deleted file mode 100644 index 5a8f642c..00000000 --- a/vsts/vsts/task_agent/v4_0/models/endpoint_authorization.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EndpointAuthorization(Model): - """EndpointAuthorization. - - :param parameters: - :type parameters: dict - :param scheme: - :type scheme: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'scheme': {'key': 'scheme', 'type': 'str'} - } - - def __init__(self, parameters=None, scheme=None): - super(EndpointAuthorization, self).__init__() - self.parameters = parameters - self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_0/models/endpoint_url.py b/vsts/vsts/task_agent/v4_0/models/endpoint_url.py deleted file mode 100644 index 9eddf9c3..00000000 --- a/vsts/vsts/task_agent/v4_0/models/endpoint_url.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EndpointUrl(Model): - """EndpointUrl. - - :param depends_on: - :type depends_on: :class:`DependsOn ` - :param display_name: - :type display_name: str - :param help_text: - :type help_text: str - :param is_visible: - :type is_visible: str - :param value: - :type value: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'help_text': {'key': 'helpText', 'type': 'str'}, - 'is_visible': {'key': 'isVisible', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): - super(EndpointUrl, self).__init__() - self.depends_on = depends_on - self.display_name = display_name - self.help_text = help_text - self.is_visible = is_visible - self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/help_link.py b/vsts/vsts/task_agent/v4_0/models/help_link.py deleted file mode 100644 index b48e4910..00000000 --- a/vsts/vsts/task_agent/v4_0/models/help_link.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class HelpLink(Model): - """HelpLink. - - :param text: - :type text: str - :param url: - :type url: str - """ - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, text=None, url=None): - super(HelpLink, self).__init__() - self.text = text - self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/identity_ref.py b/vsts/vsts/task_agent/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/task_agent/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/input_descriptor.py b/vsts/vsts/task_agent/v4_0/models/input_descriptor.py deleted file mode 100644 index 860efdcc..00000000 --- a/vsts/vsts/task_agent/v4_0/models/input_descriptor.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values diff --git a/vsts/vsts/task_agent/v4_0/models/input_validation.py b/vsts/vsts/task_agent/v4_0/models/input_validation.py deleted file mode 100644 index f2f1a434..00000000 --- a/vsts/vsts/task_agent/v4_0/models/input_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/task_agent/v4_0/models/input_validation_request.py b/vsts/vsts/task_agent/v4_0/models/input_validation_request.py deleted file mode 100644 index 74fb2e1f..00000000 --- a/vsts/vsts/task_agent/v4_0/models/input_validation_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidationRequest(Model): - """InputValidationRequest. - - :param inputs: - :type inputs: dict - """ - - _attribute_map = { - 'inputs': {'key': 'inputs', 'type': '{ValidationItem}'} - } - - def __init__(self, inputs=None): - super(InputValidationRequest, self).__init__() - self.inputs = inputs diff --git a/vsts/vsts/task_agent/v4_0/models/input_value.py b/vsts/vsts/task_agent/v4_0/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/task_agent/v4_0/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/input_values.py b/vsts/vsts/task_agent/v4_0/models/input_values.py deleted file mode 100644 index 15d047fe..00000000 --- a/vsts/vsts/task_agent/v4_0/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/task_agent/v4_0/models/input_values_error.py b/vsts/vsts/task_agent/v4_0/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/task_agent/v4_0/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py b/vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py deleted file mode 100644 index 8fde3da2..00000000 --- a/vsts/vsts/task_agent/v4_0/models/metrics_column_meta_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetricsColumnMetaData(Model): - """MetricsColumnMetaData. - - :param column_name: - :type column_name: str - :param column_value_type: - :type column_value_type: str - """ - - _attribute_map = { - 'column_name': {'key': 'columnName', 'type': 'str'}, - 'column_value_type': {'key': 'columnValueType', 'type': 'str'} - } - - def __init__(self, column_name=None, column_value_type=None): - super(MetricsColumnMetaData, self).__init__() - self.column_name = column_name - self.column_value_type = column_value_type diff --git a/vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py b/vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py deleted file mode 100644 index 420f235f..00000000 --- a/vsts/vsts/task_agent/v4_0/models/metrics_columns_header.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetricsColumnsHeader(Model): - """MetricsColumnsHeader. - - :param dimensions: - :type dimensions: list of :class:`MetricsColumnMetaData ` - :param metrics: - :type metrics: list of :class:`MetricsColumnMetaData ` - """ - - _attribute_map = { - 'dimensions': {'key': 'dimensions', 'type': '[MetricsColumnMetaData]'}, - 'metrics': {'key': 'metrics', 'type': '[MetricsColumnMetaData]'} - } - - def __init__(self, dimensions=None, metrics=None): - super(MetricsColumnsHeader, self).__init__() - self.dimensions = dimensions - self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_0/models/metrics_row.py b/vsts/vsts/task_agent/v4_0/models/metrics_row.py deleted file mode 100644 index 225673ad..00000000 --- a/vsts/vsts/task_agent/v4_0/models/metrics_row.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetricsRow(Model): - """MetricsRow. - - :param dimensions: - :type dimensions: list of str - :param metrics: - :type metrics: list of str - """ - - _attribute_map = { - 'dimensions': {'key': 'dimensions', 'type': '[str]'}, - 'metrics': {'key': 'metrics', 'type': '[str]'} - } - - def __init__(self, dimensions=None, metrics=None): - super(MetricsRow, self).__init__() - self.dimensions = dimensions - self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_0/models/package_metadata.py b/vsts/vsts/task_agent/v4_0/models/package_metadata.py deleted file mode 100644 index 8c5124bf..00000000 --- a/vsts/vsts/task_agent/v4_0/models/package_metadata.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageMetadata(Model): - """PackageMetadata. - - :param created_on: The date the package was created - :type created_on: datetime - :param download_url: A direct link to download the package. - :type download_url: str - :param filename: The UI uses this to display instructions, i.e. "unzip MyAgent.zip" - :type filename: str - :param hash_value: MD5 hash as a base64 string - :type hash_value: str - :param info_url: A link to documentation - :type info_url: str - :param platform: The platform (win7, linux, etc.) - :type platform: str - :param type: The type of package (e.g. "agent") - :type type: str - :param version: The package version. - :type version: :class:`PackageVersion ` - """ - - _attribute_map = { - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'download_url': {'key': 'downloadUrl', 'type': 'str'}, - 'filename': {'key': 'filename', 'type': 'str'}, - 'hash_value': {'key': 'hashValue', 'type': 'str'}, - 'info_url': {'key': 'infoUrl', 'type': 'str'}, - 'platform': {'key': 'platform', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'PackageVersion'} - } - - def __init__(self, created_on=None, download_url=None, filename=None, hash_value=None, info_url=None, platform=None, type=None, version=None): - super(PackageMetadata, self).__init__() - self.created_on = created_on - self.download_url = download_url - self.filename = filename - self.hash_value = hash_value - self.info_url = info_url - self.platform = platform - self.type = type - self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/package_version.py b/vsts/vsts/task_agent/v4_0/models/package_version.py deleted file mode 100644 index 3742cdc0..00000000 --- a/vsts/vsts/task_agent/v4_0/models/package_version.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageVersion(Model): - """PackageVersion. - - :param major: - :type major: int - :param minor: - :type minor: int - :param patch: - :type patch: int - """ - - _attribute_map = { - 'major': {'key': 'major', 'type': 'int'}, - 'minor': {'key': 'minor', 'type': 'int'}, - 'patch': {'key': 'patch', 'type': 'int'} - } - - def __init__(self, major=None, minor=None, patch=None): - super(PackageVersion, self).__init__() - self.major = major - self.minor = minor - self.patch = patch diff --git a/vsts/vsts/task_agent/v4_0/models/project_reference.py b/vsts/vsts/task_agent/v4_0/models/project_reference.py deleted file mode 100644 index 8fd6ad8e..00000000 --- a/vsts/vsts/task_agent/v4_0/models/project_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py b/vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py deleted file mode 100644 index 527821b5..00000000 --- a/vsts/vsts/task_agent/v4_0/models/publish_task_group_metadata.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishTaskGroupMetadata(Model): - """PublishTaskGroupMetadata. - - :param comment: - :type comment: str - :param parent_definition_revision: - :type parent_definition_revision: int - :param preview: - :type preview: bool - :param task_group_id: - :type task_group_id: str - :param task_group_revision: - :type task_group_revision: int - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'parent_definition_revision': {'key': 'parentDefinitionRevision', 'type': 'int'}, - 'preview': {'key': 'preview', 'type': 'bool'}, - 'task_group_id': {'key': 'taskGroupId', 'type': 'str'}, - 'task_group_revision': {'key': 'taskGroupRevision', 'type': 'int'} - } - - def __init__(self, comment=None, parent_definition_revision=None, preview=None, task_group_id=None, task_group_revision=None): - super(PublishTaskGroupMetadata, self).__init__() - self.comment = comment - self.parent_definition_revision = parent_definition_revision - self.preview = preview - self.task_group_id = task_group_id - self.task_group_revision = task_group_revision diff --git a/vsts/vsts/task_agent/v4_0/models/reference_links.py b/vsts/vsts/task_agent/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/task_agent/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/task_agent/v4_0/models/result_transformation_details.py b/vsts/vsts/task_agent/v4_0/models/result_transformation_details.py deleted file mode 100644 index eff9b132..00000000 --- a/vsts/vsts/task_agent/v4_0/models/result_transformation_details.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResultTransformationDetails(Model): - """ResultTransformationDetails. - - :param result_template: - :type result_template: str - """ - - _attribute_map = { - 'result_template': {'key': 'resultTemplate', 'type': 'str'} - } - - def __init__(self, result_template=None): - super(ResultTransformationDetails, self).__init__() - self.result_template = result_template diff --git a/vsts/vsts/task_agent/v4_0/models/secure_file.py b/vsts/vsts/task_agent/v4_0/models/secure_file.py deleted file mode 100644 index b570efc5..00000000 --- a/vsts/vsts/task_agent/v4_0/models/secure_file.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SecureFile(Model): - """SecureFile. - - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: - :type created_on: datetime - :param id: - :type id: str - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_on: - :type modified_on: datetime - :param name: - :type name: str - :param properties: - :type properties: dict - :param ticket: - :type ticket: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'ticket': {'key': 'ticket', 'type': 'str'} - } - - def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, modified_on=None, name=None, properties=None, ticket=None): - super(SecureFile, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.properties = properties - self.ticket = ticket diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint.py deleted file mode 100644 index 6e1d91cf..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpoint(Model): - """ServiceEndpoint. - - :param administrators_group: - :type administrators_group: :class:`IdentityRef ` - :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` - :param created_by: The Gets or sets Identity reference for the user who created the Service endpoint - :type created_by: :class:`IdentityRef ` - :param data: - :type data: dict - :param description: Gets or Sets description of endpoint - :type description: str - :param group_scope_id: - :type group_scope_id: str - :param id: Gets or sets the identifier of this endpoint. - :type id: str - :param is_ready: EndPoint state indictor - :type is_ready: bool - :param name: Gets or sets the friendly name of the endpoint. - :type name: str - :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` - :param readers_group: - :type readers_group: :class:`IdentityRef ` - :param type: Gets or sets the type of the endpoint. - :type type: str - :param url: Gets or sets the url of the endpoint. - :type url: str - """ - - _attribute_map = { - 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, - 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_ready': {'key': 'isReady', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): - super(ServiceEndpoint, self).__init__() - self.administrators_group = administrators_group - self.authorization = authorization - self.created_by = created_by - self.data = data - self.description = description - self.group_scope_id = group_scope_id - self.id = id - self.is_ready = is_ready - self.name = name - self.operation_status = operation_status - self.readers_group = readers_group - self.type = type - self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py deleted file mode 100644 index 0eb2ccc0..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_authentication_scheme.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointAuthenticationScheme(Model): - """ServiceEndpointAuthenticationScheme. - - :param authorization_headers: - :type authorization_headers: list of :class:`AuthorizationHeader ` - :param display_name: - :type display_name: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` - :param scheme: - :type scheme: str - """ - - _attribute_map = { - 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'scheme': {'key': 'scheme', 'type': 'str'} - } - - def __init__(self, authorization_headers=None, display_name=None, input_descriptors=None, scheme=None): - super(ServiceEndpointAuthenticationScheme, self).__init__() - self.authorization_headers = authorization_headers - self.display_name = display_name - self.input_descriptors = input_descriptors - self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py deleted file mode 100644 index 7f45faac..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_details.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointDetails(Model): - """ServiceEndpointDetails. - - :param authorization: - :type authorization: :class:`EndpointAuthorization ` - :param data: - :type data: dict - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, authorization=None, data=None, type=None, url=None): - super(ServiceEndpointDetails, self).__init__() - self.authorization = authorization - self.data = data - self.type = type - self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py deleted file mode 100644 index bb835c35..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_data.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionData(Model): - """ServiceEndpointExecutionData. - - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param finish_time: - :type finish_time: datetime - :param id: - :type id: long - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_type: - :type plan_type: str - :param result: - :type result: object - :param start_time: - :type start_time: datetime - """ - - _attribute_map = { - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'} - } - - def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): - super(ServiceEndpointExecutionData, self).__init__() - self.definition = definition - self.finish_time = finish_time - self.id = id - self.owner = owner - self.plan_type = plan_type - self.result = result - self.start_time = start_time diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py deleted file mode 100644 index 1bbbffe6..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_record.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionRecord(Model): - """ServiceEndpointExecutionRecord. - - :param data: - :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_id: - :type endpoint_id: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'} - } - - def __init__(self, data=None, endpoint_id=None): - super(ServiceEndpointExecutionRecord, self).__init__() - self.data = data - self.endpoint_id = endpoint_id diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py deleted file mode 100644 index 0329e350..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_execution_records_input.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionRecordsInput(Model): - """ServiceEndpointExecutionRecordsInput. - - :param data: - :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_ids: - :type endpoint_ids: list of str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, - 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} - } - - def __init__(self, data=None, endpoint_ids=None): - super(ServiceEndpointExecutionRecordsInput, self).__init__() - self.data = data - self.endpoint_ids = endpoint_ids diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py deleted file mode 100644 index 20f7b6ef..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointRequest(Model): - """ServiceEndpointRequest. - - :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` - :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` - :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` - """ - - _attribute_map = { - 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, - 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, - 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} - } - - def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): - super(ServiceEndpointRequest, self).__init__() - self.data_source_details = data_source_details - self.result_transformation_details = result_transformation_details - self.service_endpoint_details = service_endpoint_details diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py deleted file mode 100644 index 28d4d094..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_request_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointRequestResult(Model): - """ServiceEndpointRequestResult. - - :param error_message: - :type error_message: str - :param result: - :type result: :class:`object ` - :param status_code: - :type status_code: object - """ - - _attribute_map = { - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'status_code': {'key': 'statusCode', 'type': 'object'} - } - - def __init__(self, error_message=None, result=None, status_code=None): - super(ServiceEndpointRequestResult, self).__init__() - self.error_message = error_message - self.result = result - self.status_code = status_code diff --git a/vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py b/vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py deleted file mode 100644 index b03c1f24..00000000 --- a/vsts/vsts/task_agent/v4_0/models/service_endpoint_type.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointType(Model): - """ServiceEndpointType. - - :param authentication_schemes: - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` - :param data_sources: - :type data_sources: list of :class:`DataSource ` - :param dependency_data: - :type dependency_data: list of :class:`DependencyData ` - :param description: - :type description: str - :param display_name: - :type display_name: str - :param endpoint_url: - :type endpoint_url: :class:`EndpointUrl ` - :param help_link: - :type help_link: :class:`HelpLink ` - :param help_mark_down: - :type help_mark_down: str - :param icon_url: - :type icon_url: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: - :type name: str - """ - - _attribute_map = { - 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, - 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, - 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, - 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None): - super(ServiceEndpointType, self).__init__() - self.authentication_schemes = authentication_schemes - self.data_sources = data_sources - self.dependency_data = dependency_data - self.description = description - self.display_name = display_name - self.endpoint_url = endpoint_url - self.help_link = help_link - self.help_mark_down = help_mark_down - self.icon_url = icon_url - self.input_descriptors = input_descriptors - self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent.py b/vsts/vsts/task_agent/v4_0/models/task_agent.py deleted file mode 100644 index 231787dc..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent.py +++ /dev/null @@ -1,75 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_agent_reference import TaskAgentReference - - -class TaskAgent(TaskAgentReference): - """TaskAgent. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. - :type enabled: bool - :param id: Gets the identifier of the agent. - :type id: int - :param name: Gets the name of the agent. - :type name: str - :param status: Gets the current connectivity status of the agent. - :type status: object - :param version: Gets the version of the agent. - :type version: str - :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` - :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` - :param created_on: Gets the date on which this agent was created. - :type created_on: datetime - :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. - :type max_parallelism: int - :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` - :param properties: - :type properties: :class:`object ` - :param status_changed_on: Gets the date on which the last connectivity status change occurred. - :type status_changed_on: datetime - :param system_capabilities: - :type system_capabilities: dict - :param user_capabilities: - :type user_capabilities: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'}, - 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, - 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, - 'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'status_changed_on': {'key': 'statusChangedOn', 'type': 'iso-8601'}, - 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'}, - 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} - } - - def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): - super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, status=status, version=version) - self.assigned_request = assigned_request - self.authorization = authorization - self.created_on = created_on - self.max_parallelism = max_parallelism - self.pending_update = pending_update - self.properties = properties - self.status_changed_on = status_changed_on - self.system_capabilities = system_capabilities - self.user_capabilities = user_capabilities diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py b/vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py deleted file mode 100644 index b30ced21..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_authorization.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentAuthorization(Model): - """TaskAgentAuthorization. - - :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. - :type authorization_url: str - :param client_id: Gets or sets the client identifier for this agent. - :type client_id: str - :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` - """ - - _attribute_map = { - 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} - } - - def __init__(self, authorization_url=None, client_id=None, public_key=None): - super(TaskAgentAuthorization, self).__init__() - self.authorization_url = authorization_url - self.client_id = client_id - self.public_key = public_key diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py b/vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py deleted file mode 100644 index 51343a5f..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_job_request.py +++ /dev/null @@ -1,101 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentJobRequest(Model): - """TaskAgentJobRequest. - - :param assign_time: - :type assign_time: datetime - :param data: - :type data: dict - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param demands: - :type demands: list of :class:`object ` - :param finish_time: - :type finish_time: datetime - :param host_id: - :type host_id: str - :param job_id: - :type job_id: str - :param job_name: - :type job_name: str - :param locked_until: - :type locked_until: datetime - :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_id: - :type plan_id: str - :param plan_type: - :type plan_type: str - :param queue_time: - :type queue_time: datetime - :param receive_time: - :type receive_time: datetime - :param request_id: - :type request_id: long - :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` - :param result: - :type result: object - :param scope_id: - :type scope_id: str - :param service_owner: - :type service_owner: str - """ - - _attribute_map = { - 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'host_id': {'key': 'hostId', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'job_name': {'key': 'jobName', 'type': 'str'}, - 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, - 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'}, - 'request_id': {'key': 'requestId', 'type': 'long'}, - 'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'}, - 'result': {'key': 'result', 'type': 'object'}, - 'scope_id': {'key': 'scopeId', 'type': 'str'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'} - } - - def __init__(self, assign_time=None, data=None, definition=None, demands=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_id=None, plan_type=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): - super(TaskAgentJobRequest, self).__init__() - self.assign_time = assign_time - self.data = data - self.definition = definition - self.demands = demands - self.finish_time = finish_time - self.host_id = host_id - self.job_id = job_id - self.job_name = job_name - self.locked_until = locked_until - self.matched_agents = matched_agents - self.owner = owner - self.plan_id = plan_id - self.plan_type = plan_type - self.queue_time = queue_time - self.receive_time = receive_time - self.request_id = request_id - self.reserved_agent = reserved_agent - self.result = result - self.scope_id = scope_id - self.service_owner = service_owner diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_message.py b/vsts/vsts/task_agent/v4_0/models/task_agent_message.py deleted file mode 100644 index f51c30e1..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_message.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentMessage(Model): - """TaskAgentMessage. - - :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. - :type body: str - :param iV: Gets or sets the intialization vector used to encrypt this message. - :type iV: str - :param message_id: Gets or sets the message identifier. - :type message_id: long - :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. - :type message_type: str - """ - - _attribute_map = { - 'body': {'key': 'body', 'type': 'str'}, - 'iV': {'key': 'iV', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'long'}, - 'message_type': {'key': 'messageType', 'type': 'str'} - } - - def __init__(self, body=None, iV=None, message_id=None, message_type=None): - super(TaskAgentMessage, self).__init__() - self.body = body - self.iV = iV - self.message_id = message_id - self.message_type = message_type diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool.py deleted file mode 100644 index f74bd876..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool.py +++ /dev/null @@ -1,56 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_agent_pool_reference import TaskAgentPoolReference - - -class TaskAgentPool(TaskAgentPoolReference): - """TaskAgentPool. - - :param id: - :type id: int - :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. - :type is_hosted: bool - :param name: - :type name: str - :param pool_type: Gets or sets the type of the pool - :type pool_type: object - :param scope: - :type scope: str - :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. - :type auto_provision: bool - :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets the date/time of the pool creation. - :type created_on: datetime - :param properties: - :type properties: :class:`object ` - :param size: Gets the current size of the pool. - :type size: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_type': {'key': 'poolType', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'size': {'key': 'size', 'type': 'int'} - } - - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, auto_provision=None, created_by=None, created_on=None, properties=None, size=None): - super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope) - self.auto_provision = auto_provision - self.created_by = created_by - self.created_on = created_on - self.properties = properties - self.size = size diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py deleted file mode 100644 index be8c1134..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_definition.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceDefinition(Model): - """TaskAgentPoolMaintenanceDefinition. - - :param enabled: Enable maintenance - :type enabled: bool - :param id: Id - :type id: int - :param job_timeout_in_minutes: Maintenance job timeout per agent - :type job_timeout_in_minutes: int - :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time - :type max_concurrent_agents_percentage: int - :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` - :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` - :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` - :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'max_concurrent_agents_percentage': {'key': 'maxConcurrentAgentsPercentage', 'type': 'int'}, - 'options': {'key': 'options', 'type': 'TaskAgentPoolMaintenanceOptions'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'TaskAgentPoolMaintenanceRetentionPolicy'}, - 'schedule_setting': {'key': 'scheduleSetting', 'type': 'TaskAgentPoolMaintenanceSchedule'} - } - - def __init__(self, enabled=None, id=None, job_timeout_in_minutes=None, max_concurrent_agents_percentage=None, options=None, pool=None, retention_policy=None, schedule_setting=None): - super(TaskAgentPoolMaintenanceDefinition, self).__init__() - self.enabled = enabled - self.id = id - self.job_timeout_in_minutes = job_timeout_in_minutes - self.max_concurrent_agents_percentage = max_concurrent_agents_percentage - self.options = options - self.pool = pool - self.retention_policy = retention_policy - self.schedule_setting = schedule_setting diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py deleted file mode 100644 index ecc14bac..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceJob(Model): - """TaskAgentPoolMaintenanceJob. - - :param definition_id: The maintenance definition for the maintenance job - :type definition_id: int - :param error_count: The total error counts during the maintenance job - :type error_count: int - :param finish_time: Time that the maintenance job was completed - :type finish_time: datetime - :param job_id: Id of the maintenance job - :type job_id: int - :param logs_download_url: The log download url for the maintenance job - :type logs_download_url: str - :param orchestration_id: Orchestration/Plan Id for the maintenance job - :type orchestration_id: str - :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` - :param queue_time: Time that the maintenance job was queued - :type queue_time: datetime - :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` - :param result: The maintenance job result - :type result: object - :param start_time: Time that the maintenance job was started - :type start_time: datetime - :param status: Status of the maintenance job - :type status: object - :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` - :param warning_count: The total warning counts during the maintenance job - :type warning_count: int - """ - - _attribute_map = { - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'error_count': {'key': 'errorCount', 'type': 'int'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'int'}, - 'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'}, - 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'result': {'key': 'result', 'type': 'object'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'}, - 'warning_count': {'key': 'warningCount', 'type': 'int'} - } - - def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None): - super(TaskAgentPoolMaintenanceJob, self).__init__() - self.definition_id = definition_id - self.error_count = error_count - self.finish_time = finish_time - self.job_id = job_id - self.logs_download_url = logs_download_url - self.orchestration_id = orchestration_id - self.pool = pool - self.queue_time = queue_time - self.requested_by = requested_by - self.result = result - self.start_time = start_time - self.status = status - self.target_agents = target_agents - self.warning_count = warning_count diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py deleted file mode 100644 index f55a5246..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_job_target_agent.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceJobTargetAgent(Model): - """TaskAgentPoolMaintenanceJobTargetAgent. - - :param agent: - :type agent: :class:`TaskAgentReference ` - :param job_id: - :type job_id: int - :param result: - :type result: object - :param status: - :type status: object - """ - - _attribute_map = { - 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, - 'job_id': {'key': 'jobId', 'type': 'int'}, - 'result': {'key': 'result', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, agent=None, job_id=None, result=None, status=None): - super(TaskAgentPoolMaintenanceJobTargetAgent, self).__init__() - self.agent = agent - self.job_id = job_id - self.result = result - self.status = status diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py deleted file mode 100644 index 7c6690dd..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_options.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceOptions(Model): - """TaskAgentPoolMaintenanceOptions. - - :param working_directory_expiration_in_days: time to consider a System.DefaultWorkingDirectory is stale - :type working_directory_expiration_in_days: int - """ - - _attribute_map = { - 'working_directory_expiration_in_days': {'key': 'workingDirectoryExpirationInDays', 'type': 'int'} - } - - def __init__(self, working_directory_expiration_in_days=None): - super(TaskAgentPoolMaintenanceOptions, self).__init__() - self.working_directory_expiration_in_days = working_directory_expiration_in_days diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py deleted file mode 100644 index 4f9c1434..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_retention_policy.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceRetentionPolicy(Model): - """TaskAgentPoolMaintenanceRetentionPolicy. - - :param number_of_history_records_to_keep: Number of records to keep for maintenance job executed with this definition. - :type number_of_history_records_to_keep: int - """ - - _attribute_map = { - 'number_of_history_records_to_keep': {'key': 'numberOfHistoryRecordsToKeep', 'type': 'int'} - } - - def __init__(self, number_of_history_records_to_keep=None): - super(TaskAgentPoolMaintenanceRetentionPolicy, self).__init__() - self.number_of_history_records_to_keep = number_of_history_records_to_keep diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py deleted file mode 100644 index 4395a005..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_maintenance_schedule.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceSchedule(Model): - """TaskAgentPoolMaintenanceSchedule. - - :param days_to_build: Days for a build (flags enum for days of the week) - :type days_to_build: object - :param schedule_job_id: The Job Id of the Scheduled job that will queue the pool maintenance job. - :type schedule_job_id: str - :param start_hours: Local timezone hour to start - :type start_hours: int - :param start_minutes: Local timezone minute to start - :type start_minutes: int - :param time_zone_id: Time zone of the build schedule (string representation of the time zone id) - :type time_zone_id: str - """ - - _attribute_map = { - 'days_to_build': {'key': 'daysToBuild', 'type': 'object'}, - 'schedule_job_id': {'key': 'scheduleJobId', 'type': 'str'}, - 'start_hours': {'key': 'startHours', 'type': 'int'}, - 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, - 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} - } - - def __init__(self, days_to_build=None, schedule_job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): - super(TaskAgentPoolMaintenanceSchedule, self).__init__() - self.days_to_build = days_to_build - self.schedule_job_id = schedule_job_id - self.start_hours = start_hours - self.start_minutes = start_minutes - self.time_zone_id = time_zone_id diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py b/vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py deleted file mode 100644 index d553c3af..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_pool_reference.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolReference(Model): - """TaskAgentPoolReference. - - :param id: - :type id: int - :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. - :type is_hosted: bool - :param name: - :type name: str - :param pool_type: Gets or sets the type of the pool - :type pool_type: object - :param scope: - :type scope: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_type': {'key': 'poolType', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'str'} - } - - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None): - super(TaskAgentPoolReference, self).__init__() - self.id = id - self.is_hosted = is_hosted - self.name = name - self.pool_type = pool_type - self.scope = scope diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py deleted file mode 100644 index 80517d1f..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_public_key.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPublicKey(Model): - """TaskAgentPublicKey. - - :param exponent: Gets or sets the exponent for the public key. - :type exponent: str - :param modulus: Gets or sets the modulus for the public key. - :type modulus: str - """ - - _attribute_map = { - 'exponent': {'key': 'exponent', 'type': 'str'}, - 'modulus': {'key': 'modulus', 'type': 'str'} - } - - def __init__(self, exponent=None, modulus=None): - super(TaskAgentPublicKey, self).__init__() - self.exponent = exponent - self.modulus = modulus diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_queue.py b/vsts/vsts/task_agent/v4_0/models/task_agent_queue.py deleted file mode 100644 index ec4e341b..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_queue.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentQueue(Model): - """TaskAgentQueue. - - :param id: - :type id: int - :param name: - :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project_id: - :type project_id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project_id': {'key': 'projectId', 'type': 'str'} - } - - def __init__(self, id=None, name=None, pool=None, project_id=None): - super(TaskAgentQueue, self).__init__() - self.id = id - self.name = name - self.pool = pool - self.project_id = project_id diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_reference.py b/vsts/vsts/task_agent/v4_0/models/task_agent_reference.py deleted file mode 100644 index b608b2f1..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_reference.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentReference(Model): - """TaskAgentReference. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. - :type enabled: bool - :param id: Gets the identifier of the agent. - :type id: int - :param name: Gets the name of the agent. - :type name: str - :param status: Gets the current connectivity status of the agent. - :type status: object - :param version: Gets the version of the agent. - :type version: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None): - super(TaskAgentReference, self).__init__() - self._links = _links - self.enabled = enabled - self.id = id - self.name = name - self.status = status - self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_session.py b/vsts/vsts/task_agent/v4_0/models/task_agent_session.py deleted file mode 100644 index 64e9410c..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_session.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentSession(Model): - """TaskAgentSession. - - :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` - :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` - :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. - :type owner_name: str - :param session_id: Gets the unique identifier for this session. - :type session_id: str - :param system_capabilities: - :type system_capabilities: dict - """ - - _attribute_map = { - 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, - 'encryption_key': {'key': 'encryptionKey', 'type': 'TaskAgentSessionKey'}, - 'owner_name': {'key': 'ownerName', 'type': 'str'}, - 'session_id': {'key': 'sessionId', 'type': 'str'}, - 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'} - } - - def __init__(self, agent=None, encryption_key=None, owner_name=None, session_id=None, system_capabilities=None): - super(TaskAgentSession, self).__init__() - self.agent = agent - self.encryption_key = encryption_key - self.owner_name = owner_name - self.session_id = session_id - self.system_capabilities = system_capabilities diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py deleted file mode 100644 index 55304a88..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_session_key.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentSessionKey(Model): - """TaskAgentSessionKey. - - :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. - :type encrypted: bool - :param value: Gets or sets the symmetric key value. - :type value: str - """ - - _attribute_map = { - 'encrypted': {'key': 'encrypted', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, encrypted=None, value=None): - super(TaskAgentSessionKey, self).__init__() - self.encrypted = encrypted - self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_update.py b/vsts/vsts/task_agent/v4_0/models/task_agent_update.py deleted file mode 100644 index 45eb7da6..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_update.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentUpdate(Model): - """TaskAgentUpdate. - - :param current_state: The current state of this agent update - :type current_state: str - :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` - :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` - :param request_time: Gets the date on which this agent update was requested. - :type request_time: datetime - :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` - :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` - """ - - _attribute_map = { - 'current_state': {'key': 'currentState', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'TaskAgentUpdateReason'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'request_time': {'key': 'requestTime', 'type': 'iso-8601'}, - 'source_version': {'key': 'sourceVersion', 'type': 'PackageVersion'}, - 'target_version': {'key': 'targetVersion', 'type': 'PackageVersion'} - } - - def __init__(self, current_state=None, reason=None, requested_by=None, request_time=None, source_version=None, target_version=None): - super(TaskAgentUpdate, self).__init__() - self.current_state = current_state - self.reason = reason - self.requested_by = requested_by - self.request_time = request_time - self.source_version = source_version - self.target_version = target_version diff --git a/vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py b/vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py deleted file mode 100644 index 7d04a89f..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_agent_update_reason.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentUpdateReason(Model): - """TaskAgentUpdateReason. - - :param code: - :type code: object - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'object'} - } - - def __init__(self, code=None): - super(TaskAgentUpdateReason, self).__init__() - self.code = code diff --git a/vsts/vsts/task_agent/v4_0/models/task_definition.py b/vsts/vsts/task_agent/v4_0/models/task_definition.py deleted file mode 100644 index 4a3294f8..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_definition.py +++ /dev/null @@ -1,161 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinition(Model): - """TaskDefinition. - - :param agent_execution: - :type agent_execution: :class:`TaskExecution ` - :param author: - :type author: str - :param category: - :type category: str - :param contents_uploaded: - :type contents_uploaded: bool - :param contribution_identifier: - :type contribution_identifier: str - :param contribution_version: - :type contribution_version: str - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` - :param definition_type: - :type definition_type: str - :param demands: - :type demands: list of :class:`object ` - :param deprecated: - :type deprecated: bool - :param description: - :type description: str - :param disabled: - :type disabled: bool - :param execution: - :type execution: dict - :param friendly_name: - :type friendly_name: str - :param groups: - :type groups: list of :class:`TaskGroupDefinition ` - :param help_mark_down: - :type help_mark_down: str - :param host_type: - :type host_type: str - :param icon_url: - :type icon_url: str - :param id: - :type id: str - :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` - :param instance_name_format: - :type instance_name_format: str - :param minimum_agent_version: - :type minimum_agent_version: str - :param name: - :type name: str - :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` - :param package_location: - :type package_location: str - :param package_type: - :type package_type: str - :param preview: - :type preview: bool - :param release_notes: - :type release_notes: str - :param runs_on: - :type runs_on: list of str - :param satisfies: - :type satisfies: list of str - :param server_owned: - :type server_owned: bool - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` - :param source_location: - :type source_location: str - :param version: - :type version: :class:`TaskVersion ` - :param visibility: - :type visibility: list of str - """ - - _attribute_map = { - 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, - 'author': {'key': 'author', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, - 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, - 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deprecated': {'key': 'deprecated', 'type': 'bool'}, - 'description': {'key': 'description', 'type': 'str'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'execution': {'key': 'execution', 'type': '{object}'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'host_type': {'key': 'hostType', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, - 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, - 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, - 'package_location': {'key': 'packageLocation', 'type': 'str'}, - 'package_type': {'key': 'packageType', 'type': 'str'}, - 'preview': {'key': 'preview', 'type': 'bool'}, - 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, - 'runs_on': {'key': 'runsOn', 'type': '[str]'}, - 'satisfies': {'key': 'satisfies', 'type': '[str]'}, - 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'TaskVersion'}, - 'visibility': {'key': 'visibility', 'type': '[str]'} - } - - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): - super(TaskDefinition, self).__init__() - self.agent_execution = agent_execution - self.author = author - self.category = category - self.contents_uploaded = contents_uploaded - self.contribution_identifier = contribution_identifier - self.contribution_version = contribution_version - self.data_source_bindings = data_source_bindings - self.definition_type = definition_type - self.demands = demands - self.deprecated = deprecated - self.description = description - self.disabled = disabled - self.execution = execution - self.friendly_name = friendly_name - self.groups = groups - self.help_mark_down = help_mark_down - self.host_type = host_type - self.icon_url = icon_url - self.id = id - self.inputs = inputs - self.instance_name_format = instance_name_format - self.minimum_agent_version = minimum_agent_version - self.name = name - self.output_variables = output_variables - self.package_location = package_location - self.package_type = package_type - self.preview = preview - self.release_notes = release_notes - self.runs_on = runs_on - self.satisfies = satisfies - self.server_owned = server_owned - self.source_definitions = source_definitions - self.source_location = source_location - self.version = version - self.visibility = visibility diff --git a/vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py b/vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py deleted file mode 100644 index ee2aea05..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_definition_endpoint.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinitionEndpoint(Model): - """TaskDefinitionEndpoint. - - :param connection_id: An ID that identifies a service connection to be used for authenticating endpoint requests. - :type connection_id: str - :param key_selector: An Json based keyselector to filter response returned by fetching the endpoint Url.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. The following keyselector defines an Json for extracting nodes named 'ServiceName'. endpoint.KeySelector = "jsonpath://ServiceName"; - :type key_selector: str - :param scope: The scope as understood by Connected Services. Essentialy, a project-id for now. - :type scope: str - :param selector: An XPath/Json based selector to filter response returned by fetching the endpoint Url. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". The following selector defines an XPath for extracting nodes named 'ServiceName'. endpoint.Selector = "xpath://ServiceName"; - :type selector: str - :param task_id: TaskId that this endpoint belongs to. - :type task_id: str - :param url: URL to GET. - :type url: str - """ - - _attribute_map = { - 'connection_id': {'key': 'connectionId', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, connection_id=None, key_selector=None, scope=None, selector=None, task_id=None, url=None): - super(TaskDefinitionEndpoint, self).__init__() - self.connection_id = connection_id - self.key_selector = key_selector - self.scope = scope - self.selector = selector - self.task_id = task_id - self.url = url diff --git a/vsts/vsts/task_agent/v4_0/models/task_definition_reference.py b/vsts/vsts/task_agent/v4_0/models/task_definition_reference.py deleted file mode 100644 index ffc8dc2d..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_definition_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinitionReference(Model): - """TaskDefinitionReference. - - :param definition_type: Gets or sets the definition type. Values can be 'task' or 'metaTask'. - :type definition_type: str - :param id: Gets or sets the unique identifier of task. - :type id: str - :param version_spec: Gets or sets the version specification of task. - :type version_spec: str - """ - - _attribute_map = { - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'version_spec': {'key': 'versionSpec', 'type': 'str'} - } - - def __init__(self, definition_type=None, id=None, version_spec=None): - super(TaskDefinitionReference, self).__init__() - self.definition_type = definition_type - self.id = id - self.version_spec = version_spec diff --git a/vsts/vsts/task_agent/v4_0/models/task_execution.py b/vsts/vsts/task_agent/v4_0/models/task_execution.py deleted file mode 100644 index 16428d39..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_execution.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskExecution(Model): - """TaskExecution. - - :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` - :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } - :type platform_instructions: dict - """ - - _attribute_map = { - 'exec_task': {'key': 'execTask', 'type': 'TaskReference'}, - 'platform_instructions': {'key': 'platformInstructions', 'type': '{{str}}'} - } - - def __init__(self, exec_task=None, platform_instructions=None): - super(TaskExecution, self).__init__() - self.exec_task = exec_task - self.platform_instructions = platform_instructions diff --git a/vsts/vsts/task_agent/v4_0/models/task_group.py b/vsts/vsts/task_agent/v4_0/models/task_group.py deleted file mode 100644 index 6bb5cc70..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_group.py +++ /dev/null @@ -1,166 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_definition import TaskDefinition - - -class TaskGroup(TaskDefinition): - """TaskGroup. - - :param agent_execution: - :type agent_execution: :class:`TaskExecution ` - :param author: - :type author: str - :param category: - :type category: str - :param contents_uploaded: - :type contents_uploaded: bool - :param contribution_identifier: - :type contribution_identifier: str - :param contribution_version: - :type contribution_version: str - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` - :param definition_type: - :type definition_type: str - :param demands: - :type demands: list of :class:`object ` - :param deprecated: - :type deprecated: bool - :param description: - :type description: str - :param disabled: - :type disabled: bool - :param execution: - :type execution: dict - :param friendly_name: - :type friendly_name: str - :param groups: - :type groups: list of :class:`TaskGroupDefinition ` - :param help_mark_down: - :type help_mark_down: str - :param host_type: - :type host_type: str - :param icon_url: - :type icon_url: str - :param id: - :type id: str - :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` - :param instance_name_format: - :type instance_name_format: str - :param minimum_agent_version: - :type minimum_agent_version: str - :param name: - :type name: str - :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` - :param package_location: - :type package_location: str - :param package_type: - :type package_type: str - :param preview: - :type preview: bool - :param release_notes: - :type release_notes: str - :param runs_on: - :type runs_on: list of str - :param satisfies: - :type satisfies: list of str - :param server_owned: - :type server_owned: bool - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` - :param source_location: - :type source_location: str - :param version: - :type version: :class:`TaskVersion ` - :param visibility: - :type visibility: list of str - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets or sets date on which it got created. - :type created_on: datetime - :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. - :type deleted: bool - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets or sets date on which it got modified. - :type modified_on: datetime - :param owner: Gets or sets the owner. - :type owner: str - :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. - :type parent_definition_id: str - :param revision: Gets or sets revision. - :type revision: int - :param tasks: - :type tasks: list of :class:`TaskGroupStep ` - """ - - _attribute_map = { - 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, - 'author': {'key': 'author', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, - 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, - 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deprecated': {'key': 'deprecated', 'type': 'bool'}, - 'description': {'key': 'description', 'type': 'str'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'execution': {'key': 'execution', 'type': '{object}'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'host_type': {'key': 'hostType', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, - 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, - 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, - 'package_location': {'key': 'packageLocation', 'type': 'str'}, - 'package_type': {'key': 'packageType', 'type': 'str'}, - 'preview': {'key': 'preview', 'type': 'bool'}, - 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, - 'runs_on': {'key': 'runsOn', 'type': '[str]'}, - 'satisfies': {'key': 'satisfies', 'type': '[str]'}, - 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'TaskVersion'}, - 'visibility': {'key': 'visibility', 'type': '[str]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'deleted': {'key': 'deleted', 'type': 'bool'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'str'}, - 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} - } - - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): - super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.deleted = deleted - self.modified_by = modified_by - self.modified_on = modified_on - self.owner = owner - self.parent_definition_id = parent_definition_id - self.revision = revision - self.tasks = tasks diff --git a/vsts/vsts/task_agent/v4_0/models/task_group_definition.py b/vsts/vsts/task_agent/v4_0/models/task_group_definition.py deleted file mode 100644 index 603bf5d7..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_group_definition.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupDefinition(Model): - """TaskGroupDefinition. - - :param display_name: - :type display_name: str - :param is_expanded: - :type is_expanded: bool - :param name: - :type name: str - :param tags: - :type tags: list of str - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, display_name=None, is_expanded=None, name=None, tags=None, visible_rule=None): - super(TaskGroupDefinition, self).__init__() - self.display_name = display_name - self.is_expanded = is_expanded - self.name = name - self.tags = tags - self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_0/models/task_group_revision.py b/vsts/vsts/task_agent/v4_0/models/task_group_revision.py deleted file mode 100644 index b732c9de..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_group_revision.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupRevision(Model): - """TaskGroupRevision. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param change_type: - :type change_type: object - :param comment: - :type comment: str - :param file_id: - :type file_id: int - :param revision: - :type revision: int - :param task_group_id: - :type task_group_id: str - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'task_group_id': {'key': 'taskGroupId', 'type': 'str'} - } - - def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, file_id=None, revision=None, task_group_id=None): - super(TaskGroupRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.file_id = file_id - self.revision = revision - self.task_group_id = task_group_id diff --git a/vsts/vsts/task_agent/v4_0/models/task_group_step.py b/vsts/vsts/task_agent/v4_0/models/task_group_step.py deleted file mode 100644 index bbb6d51e..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_group_step.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupStep(Model): - """TaskGroupStep. - - :param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise. - :type always_run: bool - :param condition: - :type condition: str - :param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise. - :type continue_on_error: bool - :param display_name: Gets or sets the display name. - :type display_name: str - :param enabled: Gets or sets as task is enabled or not. - :type enabled: bool - :param inputs: Gets or sets dictionary of inputs. - :type inputs: dict - :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` - :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): - super(TaskGroupStep, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.display_name = display_name - self.enabled = enabled - self.inputs = inputs - self.task = task - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py b/vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py deleted file mode 100644 index 7632a7ec..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_hub_license_details.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskHubLicenseDetails(Model): - """TaskHubLicenseDetails. - - :param enterprise_users_count: - :type enterprise_users_count: int - :param free_hosted_license_count: - :type free_hosted_license_count: int - :param free_license_count: - :type free_license_count: int - :param has_license_count_ever_updated: - :type has_license_count_ever_updated: bool - :param hosted_agent_minutes_free_count: - :type hosted_agent_minutes_free_count: int - :param hosted_agent_minutes_used_count: - :type hosted_agent_minutes_used_count: int - :param msdn_users_count: - :type msdn_users_count: int - :param purchased_hosted_license_count: - :type purchased_hosted_license_count: int - :param purchased_license_count: - :type purchased_license_count: int - :param total_license_count: - :type total_license_count: int - """ - - _attribute_map = { - 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, - 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, - 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, - 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, - 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, - 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, - 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, - 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, - 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, - 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} - } - - def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): - super(TaskHubLicenseDetails, self).__init__() - self.enterprise_users_count = enterprise_users_count - self.free_hosted_license_count = free_hosted_license_count - self.free_license_count = free_license_count - self.has_license_count_ever_updated = has_license_count_ever_updated - self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count - self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count - self.msdn_users_count = msdn_users_count - self.purchased_hosted_license_count = purchased_hosted_license_count - self.purchased_license_count = purchased_license_count - self.total_license_count = total_license_count diff --git a/vsts/vsts/task_agent/v4_0/models/task_input_definition.py b/vsts/vsts/task_agent/v4_0/models/task_input_definition.py deleted file mode 100644 index f3c31fb8..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_input_definition.py +++ /dev/null @@ -1,54 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_input_definition_base import TaskInputDefinitionBase - - -class TaskInputDefinition(TaskInputDefinitionBase): - """TaskInputDefinition. - - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'}, - } - - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinition, self).__init__(default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) diff --git a/vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py b/vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py deleted file mode 100644 index 1f33183e..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_input_definition_base.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_0/models/task_input_validation.py b/vsts/vsts/task_agent/v4_0/models/task_input_validation.py deleted file mode 100644 index 42524013..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_input_validation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message diff --git a/vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py b/vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py deleted file mode 100644 index 8f16499e..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_orchestration_owner.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationOwner(Model): - """TaskOrchestrationOwner. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None): - super(TaskOrchestrationOwner, self).__init__() - self._links = _links - self.id = id - self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/task_output_variable.py b/vsts/vsts/task_agent/v4_0/models/task_output_variable.py deleted file mode 100644 index 6bd50c8d..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_output_variable.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOutputVariable(Model): - """TaskOutputVariable. - - :param description: - :type description: str - :param name: - :type name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, description=None, name=None): - super(TaskOutputVariable, self).__init__() - self.description = description - self.name = name diff --git a/vsts/vsts/task_agent/v4_0/models/task_package_metadata.py b/vsts/vsts/task_agent/v4_0/models/task_package_metadata.py deleted file mode 100644 index 635fda1b..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_package_metadata.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskPackageMetadata(Model): - """TaskPackageMetadata. - - :param type: Gets the name of the package. - :type type: str - :param url: Gets the url of the package. - :type url: str - :param version: Gets the version of the package. - :type version: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, type=None, url=None, version=None): - super(TaskPackageMetadata, self).__init__() - self.type = type - self.url = url - self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/task_reference.py b/vsts/vsts/task_agent/v4_0/models/task_reference.py deleted file mode 100644 index 3ff1dd7b..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskReference(Model): - """TaskReference. - - :param id: - :type id: str - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, inputs=None, name=None, version=None): - super(TaskReference, self).__init__() - self.id = id - self.inputs = inputs - self.name = name - self.version = version diff --git a/vsts/vsts/task_agent/v4_0/models/task_source_definition.py b/vsts/vsts/task_agent/v4_0/models/task_source_definition.py deleted file mode 100644 index 96f5576b..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_source_definition.py +++ /dev/null @@ -1,36 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_source_definition_base import TaskSourceDefinitionBase - - -class TaskSourceDefinition(TaskSourceDefinitionBase): - """TaskSourceDefinition. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinition, self).__init__(auth_key=auth_key, endpoint=endpoint, key_selector=key_selector, selector=selector, target=target) diff --git a/vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py b/vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py deleted file mode 100644 index c8a6b6d6..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_source_definition_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target diff --git a/vsts/vsts/task_agent/v4_0/models/task_version.py b/vsts/vsts/task_agent/v4_0/models/task_version.py deleted file mode 100644 index 3d4c89ee..00000000 --- a/vsts/vsts/task_agent/v4_0/models/task_version.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskVersion(Model): - """TaskVersion. - - :param is_test: - :type is_test: bool - :param major: - :type major: int - :param minor: - :type minor: int - :param patch: - :type patch: int - """ - - _attribute_map = { - 'is_test': {'key': 'isTest', 'type': 'bool'}, - 'major': {'key': 'major', 'type': 'int'}, - 'minor': {'key': 'minor', 'type': 'int'}, - 'patch': {'key': 'patch', 'type': 'int'} - } - - def __init__(self, is_test=None, major=None, minor=None, patch=None): - super(TaskVersion, self).__init__() - self.is_test = is_test - self.major = major - self.minor = minor - self.patch = patch diff --git a/vsts/vsts/task_agent/v4_0/models/validation_item.py b/vsts/vsts/task_agent/v4_0/models/validation_item.py deleted file mode 100644 index c7ba5083..00000000 --- a/vsts/vsts/task_agent/v4_0/models/validation_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ValidationItem(Model): - """ValidationItem. - - :param is_valid: Tells whether the current input is valid or not - :type is_valid: bool - :param reason: Reason for input validation failure - :type reason: str - :param type: Type of validation item - :type type: str - :param value: Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master') - :type value: str - """ - - _attribute_map = { - 'is_valid': {'key': 'isValid', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_valid=None, reason=None, type=None, value=None): - super(ValidationItem, self).__init__() - self.is_valid = is_valid - self.reason = reason - self.type = type - self.value = value diff --git a/vsts/vsts/task_agent/v4_0/models/variable_group.py b/vsts/vsts/task_agent/v4_0/models/variable_group.py deleted file mode 100644 index ddda80d7..00000000 --- a/vsts/vsts/task_agent/v4_0/models/variable_group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroup(Model): - """VariableGroup. - - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: - :type created_on: datetime - :param description: - :type description: str - :param id: - :type id: int - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_on: - :type modified_on: datetime - :param name: - :type name: str - :param provider_data: - :type provider_data: :class:`VariableGroupProviderData ` - :param type: - :type type: str - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'} - } - - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): - super(VariableGroup, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.provider_data = provider_data - self.type = type - self.variables = variables diff --git a/vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py b/vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py deleted file mode 100644 index b86942f1..00000000 --- a/vsts/vsts/task_agent/v4_0/models/variable_group_provider_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroupProviderData(Model): - """VariableGroupProviderData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/task_agent/v4_0/models/variable_value.py b/vsts/vsts/task_agent/v4_0/models/variable_value.py deleted file mode 100644 index 035049c0..00000000 --- a/vsts/vsts/task_agent/v4_0/models/variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/__init__.py b/vsts/vsts/task_agent/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/task_agent/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/task_agent/v4_1/models/__init__.py b/vsts/vsts/task_agent/v4_1/models/__init__.py deleted file mode 100644 index 93b24edf..00000000 --- a/vsts/vsts/task_agent/v4_1/models/__init__.py +++ /dev/null @@ -1,221 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .aad_oauth_token_request import AadOauthTokenRequest -from .aad_oauth_token_result import AadOauthTokenResult -from .authentication_scheme_reference import AuthenticationSchemeReference -from .authorization_header import AuthorizationHeader -from .azure_subscription import AzureSubscription -from .azure_subscription_query_result import AzureSubscriptionQueryResult -from .client_certificate import ClientCertificate -from .data_source import DataSource -from .data_source_binding import DataSourceBinding -from .data_source_binding_base import DataSourceBindingBase -from .data_source_details import DataSourceDetails -from .dependency_binding import DependencyBinding -from .dependency_data import DependencyData -from .depends_on import DependsOn -from .deployment_group import DeploymentGroup -from .deployment_group_create_parameter import DeploymentGroupCreateParameter -from .deployment_group_create_parameter_pool_property import DeploymentGroupCreateParameterPoolProperty -from .deployment_group_metrics import DeploymentGroupMetrics -from .deployment_group_reference import DeploymentGroupReference -from .deployment_group_update_parameter import DeploymentGroupUpdateParameter -from .deployment_machine import DeploymentMachine -from .deployment_machine_group import DeploymentMachineGroup -from .deployment_machine_group_reference import DeploymentMachineGroupReference -from .deployment_pool_summary import DeploymentPoolSummary -from .deployment_target_update_parameter import DeploymentTargetUpdateParameter -from .endpoint_authorization import EndpointAuthorization -from .endpoint_url import EndpointUrl -from .graph_subject_base import GraphSubjectBase -from .help_link import HelpLink -from .identity_ref import IdentityRef -from .input_descriptor import InputDescriptor -from .input_validation import InputValidation -from .input_validation_request import InputValidationRequest -from .input_value import InputValue -from .input_values import InputValues -from .input_values_error import InputValuesError -from .metrics_column_meta_data import MetricsColumnMetaData -from .metrics_columns_header import MetricsColumnsHeader -from .metrics_row import MetricsRow -from .oAuth_configuration import OAuthConfiguration -from .oAuth_configuration_params import OAuthConfigurationParams -from .package_metadata import PackageMetadata -from .package_version import PackageVersion -from .project_reference import ProjectReference -from .publish_task_group_metadata import PublishTaskGroupMetadata -from .reference_links import ReferenceLinks -from .resource_usage import ResourceUsage -from .result_transformation_details import ResultTransformationDetails -from .secure_file import SecureFile -from .service_endpoint import ServiceEndpoint -from .service_endpoint_authentication_scheme import ServiceEndpointAuthenticationScheme -from .service_endpoint_details import ServiceEndpointDetails -from .service_endpoint_execution_data import ServiceEndpointExecutionData -from .service_endpoint_execution_record import ServiceEndpointExecutionRecord -from .service_endpoint_execution_records_input import ServiceEndpointExecutionRecordsInput -from .service_endpoint_request import ServiceEndpointRequest -from .service_endpoint_request_result import ServiceEndpointRequestResult -from .service_endpoint_type import ServiceEndpointType -from .task_agent import TaskAgent -from .task_agent_authorization import TaskAgentAuthorization -from .task_agent_delay_source import TaskAgentDelaySource -from .task_agent_job_request import TaskAgentJobRequest -from .task_agent_message import TaskAgentMessage -from .task_agent_pool import TaskAgentPool -from .task_agent_pool_maintenance_definition import TaskAgentPoolMaintenanceDefinition -from .task_agent_pool_maintenance_job import TaskAgentPoolMaintenanceJob -from .task_agent_pool_maintenance_job_target_agent import TaskAgentPoolMaintenanceJobTargetAgent -from .task_agent_pool_maintenance_options import TaskAgentPoolMaintenanceOptions -from .task_agent_pool_maintenance_retention_policy import TaskAgentPoolMaintenanceRetentionPolicy -from .task_agent_pool_maintenance_schedule import TaskAgentPoolMaintenanceSchedule -from .task_agent_pool_reference import TaskAgentPoolReference -from .task_agent_public_key import TaskAgentPublicKey -from .task_agent_queue import TaskAgentQueue -from .task_agent_reference import TaskAgentReference -from .task_agent_session import TaskAgentSession -from .task_agent_session_key import TaskAgentSessionKey -from .task_agent_update import TaskAgentUpdate -from .task_agent_update_reason import TaskAgentUpdateReason -from .task_definition import TaskDefinition -from .task_definition_endpoint import TaskDefinitionEndpoint -from .task_definition_reference import TaskDefinitionReference -from .task_execution import TaskExecution -from .task_group import TaskGroup -from .task_group_create_parameter import TaskGroupCreateParameter -from .task_group_definition import TaskGroupDefinition -from .task_group_revision import TaskGroupRevision -from .task_group_step import TaskGroupStep -from .task_group_update_parameter import TaskGroupUpdateParameter -from .task_hub_license_details import TaskHubLicenseDetails -from .task_input_definition import TaskInputDefinition -from .task_input_definition_base import TaskInputDefinitionBase -from .task_input_validation import TaskInputValidation -from .task_orchestration_owner import TaskOrchestrationOwner -from .task_orchestration_plan_group import TaskOrchestrationPlanGroup -from .task_output_variable import TaskOutputVariable -from .task_package_metadata import TaskPackageMetadata -from .task_reference import TaskReference -from .task_source_definition import TaskSourceDefinition -from .task_source_definition_base import TaskSourceDefinitionBase -from .task_version import TaskVersion -from .validation_item import ValidationItem -from .variable_group import VariableGroup -from .variable_group_parameters import VariableGroupParameters -from .variable_group_provider_data import VariableGroupProviderData -from .variable_value import VariableValue - -__all__ = [ - 'AadOauthTokenRequest', - 'AadOauthTokenResult', - 'AuthenticationSchemeReference', - 'AuthorizationHeader', - 'AzureSubscription', - 'AzureSubscriptionQueryResult', - 'ClientCertificate', - 'DataSource', - 'DataSourceBinding', - 'DataSourceBindingBase', - 'DataSourceDetails', - 'DependencyBinding', - 'DependencyData', - 'DependsOn', - 'DeploymentGroup', - 'DeploymentGroupCreateParameter', - 'DeploymentGroupCreateParameterPoolProperty', - 'DeploymentGroupMetrics', - 'DeploymentGroupReference', - 'DeploymentGroupUpdateParameter', - 'DeploymentMachine', - 'DeploymentMachineGroup', - 'DeploymentMachineGroupReference', - 'DeploymentPoolSummary', - 'DeploymentTargetUpdateParameter', - 'EndpointAuthorization', - 'EndpointUrl', - 'GraphSubjectBase', - 'HelpLink', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValidationRequest', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'MetricsColumnMetaData', - 'MetricsColumnsHeader', - 'MetricsRow', - 'OAuthConfiguration', - 'OAuthConfigurationParams', - 'PackageMetadata', - 'PackageVersion', - 'ProjectReference', - 'PublishTaskGroupMetadata', - 'ReferenceLinks', - 'ResourceUsage', - 'ResultTransformationDetails', - 'SecureFile', - 'ServiceEndpoint', - 'ServiceEndpointAuthenticationScheme', - 'ServiceEndpointDetails', - 'ServiceEndpointExecutionData', - 'ServiceEndpointExecutionRecord', - 'ServiceEndpointExecutionRecordsInput', - 'ServiceEndpointRequest', - 'ServiceEndpointRequestResult', - 'ServiceEndpointType', - 'TaskAgent', - 'TaskAgentAuthorization', - 'TaskAgentDelaySource', - 'TaskAgentJobRequest', - 'TaskAgentMessage', - 'TaskAgentPool', - 'TaskAgentPoolMaintenanceDefinition', - 'TaskAgentPoolMaintenanceJob', - 'TaskAgentPoolMaintenanceJobTargetAgent', - 'TaskAgentPoolMaintenanceOptions', - 'TaskAgentPoolMaintenanceRetentionPolicy', - 'TaskAgentPoolMaintenanceSchedule', - 'TaskAgentPoolReference', - 'TaskAgentPublicKey', - 'TaskAgentQueue', - 'TaskAgentReference', - 'TaskAgentSession', - 'TaskAgentSessionKey', - 'TaskAgentUpdate', - 'TaskAgentUpdateReason', - 'TaskDefinition', - 'TaskDefinitionEndpoint', - 'TaskDefinitionReference', - 'TaskExecution', - 'TaskGroup', - 'TaskGroupCreateParameter', - 'TaskGroupDefinition', - 'TaskGroupRevision', - 'TaskGroupStep', - 'TaskGroupUpdateParameter', - 'TaskHubLicenseDetails', - 'TaskInputDefinition', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskOrchestrationOwner', - 'TaskOrchestrationPlanGroup', - 'TaskOutputVariable', - 'TaskPackageMetadata', - 'TaskReference', - 'TaskSourceDefinition', - 'TaskSourceDefinitionBase', - 'TaskVersion', - 'ValidationItem', - 'VariableGroup', - 'VariableGroupParameters', - 'VariableGroupProviderData', - 'VariableValue', -] diff --git a/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py b/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py deleted file mode 100644 index e5ad3183..00000000 --- a/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_request.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AadOauthTokenRequest(Model): - """AadOauthTokenRequest. - - :param refresh: - :type refresh: bool - :param resource: - :type resource: str - :param tenant_id: - :type tenant_id: str - :param token: - :type token: str - """ - - _attribute_map = { - 'refresh': {'key': 'refresh', 'type': 'bool'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'token': {'key': 'token', 'type': 'str'} - } - - def __init__(self, refresh=None, resource=None, tenant_id=None, token=None): - super(AadOauthTokenRequest, self).__init__() - self.refresh = refresh - self.resource = resource - self.tenant_id = tenant_id - self.token = token diff --git a/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py b/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py deleted file mode 100644 index b3cd8c2e..00000000 --- a/vsts/vsts/task_agent/v4_1/models/aad_oauth_token_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AadOauthTokenResult(Model): - """AadOauthTokenResult. - - :param access_token: - :type access_token: str - :param refresh_token_cache: - :type refresh_token_cache: str - """ - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'str'}, - 'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'} - } - - def __init__(self, access_token=None, refresh_token_cache=None): - super(AadOauthTokenResult, self).__init__() - self.access_token = access_token - self.refresh_token_cache = refresh_token_cache diff --git a/vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py b/vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py deleted file mode 100644 index 8dbe5a63..00000000 --- a/vsts/vsts/task_agent/v4_1/models/authentication_scheme_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthenticationSchemeReference(Model): - """AuthenticationSchemeReference. - - :param inputs: - :type inputs: dict - :param type: - :type type: str - """ - - _attribute_map = { - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, inputs=None, type=None): - super(AuthenticationSchemeReference, self).__init__() - self.inputs = inputs - self.type = type diff --git a/vsts/vsts/task_agent/v4_1/models/authorization_header.py b/vsts/vsts/task_agent/v4_1/models/authorization_header.py deleted file mode 100644 index 3657c7a3..00000000 --- a/vsts/vsts/task_agent/v4_1/models/authorization_header.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AuthorizationHeader(Model): - """AuthorizationHeader. - - :param name: Gets or sets the name of authorization header. - :type name: str - :param value: Gets or sets the value of authorization header. - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(AuthorizationHeader, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/azure_subscription.py b/vsts/vsts/task_agent/v4_1/models/azure_subscription.py deleted file mode 100644 index ffd4994d..00000000 --- a/vsts/vsts/task_agent/v4_1/models/azure_subscription.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzureSubscription(Model): - """AzureSubscription. - - :param display_name: - :type display_name: str - :param subscription_id: - :type subscription_id: str - :param subscription_tenant_id: - :type subscription_tenant_id: str - :param subscription_tenant_name: - :type subscription_tenant_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, - 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} - } - - def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): - super(AzureSubscription, self).__init__() - self.display_name = display_name - self.subscription_id = subscription_id - self.subscription_tenant_id = subscription_tenant_id - self.subscription_tenant_name = subscription_tenant_name diff --git a/vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py b/vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py deleted file mode 100644 index 9af8f64a..00000000 --- a/vsts/vsts/task_agent/v4_1/models/azure_subscription_query_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AzureSubscriptionQueryResult(Model): - """AzureSubscriptionQueryResult. - - :param error_message: - :type error_message: str - :param value: - :type value: list of :class:`AzureSubscription ` - """ - - _attribute_map = { - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[AzureSubscription]'} - } - - def __init__(self, error_message=None, value=None): - super(AzureSubscriptionQueryResult, self).__init__() - self.error_message = error_message - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/client_certificate.py b/vsts/vsts/task_agent/v4_1/models/client_certificate.py deleted file mode 100644 index 2eebb4c2..00000000 --- a/vsts/vsts/task_agent/v4_1/models/client_certificate.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ClientCertificate(Model): - """ClientCertificate. - - :param value: Gets or sets the value of client certificate. - :type value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, value=None): - super(ClientCertificate, self).__init__() - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/data_source.py b/vsts/vsts/task_agent/v4_1/models/data_source.py deleted file mode 100644 index c4a22dda..00000000 --- a/vsts/vsts/task_agent/v4_1/models/data_source.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSource(Model): - """DataSource. - - :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` - :param endpoint_url: - :type endpoint_url: str - :param headers: - :type headers: list of :class:`AuthorizationHeader ` - :param name: - :type name: str - :param resource_url: - :type resource_url: str - :param result_selector: - :type result_selector: str - """ - - _attribute_map = { - 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'} - } - - def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): - super(DataSource, self).__init__() - self.authentication_scheme = authentication_scheme - self.endpoint_url = endpoint_url - self.headers = headers - self.name = name - self.resource_url = resource_url - self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_binding.py b/vsts/vsts/task_agent/v4_1/models/data_source_binding.py deleted file mode 100644 index c4867160..00000000 --- a/vsts/vsts/task_agent/v4_1/models/data_source_binding.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .data_source_binding_base import DataSourceBindingBase - - -class DataSourceBinding(DataSourceBindingBase): - """DataSourceBinding. - - :param data_source_name: Gets or sets the name of the data source. - :type data_source_name: str - :param endpoint_id: Gets or sets the endpoint Id. - :type endpoint_id: str - :param endpoint_url: Gets or sets the url of the service endpoint. - :type endpoint_url: str - :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets or sets the parameters for the data source. - :type parameters: dict - :param result_selector: Gets or sets the result selector. - :type result_selector: str - :param result_template: Gets or sets the result template. - :type result_template: str - :param target: Gets or sets the target of the data source. - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py b/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py deleted file mode 100644 index 04638445..00000000 --- a/vsts/vsts/task_agent/v4_1/models/data_source_binding_base.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: Gets or sets the name of the data source. - :type data_source_name: str - :param endpoint_id: Gets or sets the endpoint Id. - :type endpoint_id: str - :param endpoint_url: Gets or sets the url of the service endpoint. - :type endpoint_url: str - :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets or sets the parameters for the data source. - :type parameters: dict - :param result_selector: Gets or sets the result selector. - :type result_selector: str - :param result_template: Gets or sets the result template. - :type result_template: str - :param target: Gets or sets the target of the data source. - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.headers = headers - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target diff --git a/vsts/vsts/task_agent/v4_1/models/data_source_details.py b/vsts/vsts/task_agent/v4_1/models/data_source_details.py deleted file mode 100644 index 268e2a09..00000000 --- a/vsts/vsts/task_agent/v4_1/models/data_source_details.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DataSourceDetails(Model): - """DataSourceDetails. - - :param data_source_name: - :type data_source_name: str - :param data_source_url: - :type data_source_url: str - :param headers: - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: - :type parameters: dict - :param resource_url: - :type resource_url: str - :param result_selector: - :type result_selector: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'} - } - - def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): - super(DataSourceDetails, self).__init__() - self.data_source_name = data_source_name - self.data_source_url = data_source_url - self.headers = headers - self.parameters = parameters - self.resource_url = resource_url - self.result_selector = result_selector diff --git a/vsts/vsts/task_agent/v4_1/models/dependency_binding.py b/vsts/vsts/task_agent/v4_1/models/dependency_binding.py deleted file mode 100644 index e8eb3ac1..00000000 --- a/vsts/vsts/task_agent/v4_1/models/dependency_binding.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependencyBinding(Model): - """DependencyBinding. - - :param key: - :type key: str - :param value: - :type value: str - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, key=None, value=None): - super(DependencyBinding, self).__init__() - self.key = key - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/dependency_data.py b/vsts/vsts/task_agent/v4_1/models/dependency_data.py deleted file mode 100644 index 3faa1790..00000000 --- a/vsts/vsts/task_agent/v4_1/models/dependency_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependencyData(Model): - """DependencyData. - - :param input: - :type input: str - :param map: - :type map: list of { key: str; value: [{ key: str; value: str }] } - """ - - _attribute_map = { - 'input': {'key': 'input', 'type': 'str'}, - 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} - } - - def __init__(self, input=None, map=None): - super(DependencyData, self).__init__() - self.input = input - self.map = map diff --git a/vsts/vsts/task_agent/v4_1/models/depends_on.py b/vsts/vsts/task_agent/v4_1/models/depends_on.py deleted file mode 100644 index 6528c212..00000000 --- a/vsts/vsts/task_agent/v4_1/models/depends_on.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DependsOn(Model): - """DependsOn. - - :param input: - :type input: str - :param map: - :type map: list of :class:`DependencyBinding ` - """ - - _attribute_map = { - 'input': {'key': 'input', 'type': 'str'}, - 'map': {'key': 'map', 'type': '[DependencyBinding]'} - } - - def __init__(self, input=None, map=None): - super(DependsOn, self).__init__() - self.input = input - self.map = map diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group.py b/vsts/vsts/task_agent/v4_1/models/deployment_group.py deleted file mode 100644 index 54f7c88b..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .deployment_group_reference import DeploymentGroupReference - - -class DeploymentGroup(DeploymentGroupReference): - """DeploymentGroup. - - :param id: Deployment group identifier. - :type id: int - :param name: Name of the deployment group. - :type name: str - :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` - :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` - :param description: Description of the deployment group. - :type description: str - :param machine_count: Number of deployment targets in the deployment group. - :type machine_count: int - :param machines: List of deployment targets in the deployment group. - :type machines: list of :class:`DeploymentMachine ` - :param machine_tags: List of unique tags across all deployment targets in the deployment group. - :type machine_tags: list of str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'description': {'key': 'description', 'type': 'str'}, - 'machine_count': {'key': 'machineCount', 'type': 'int'}, - 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, - 'machine_tags': {'key': 'machineTags', 'type': '[str]'} - } - - def __init__(self, id=None, name=None, pool=None, project=None, description=None, machine_count=None, machines=None, machine_tags=None): - super(DeploymentGroup, self).__init__(id=id, name=name, pool=pool, project=project) - self.description = description - self.machine_count = machine_count - self.machines = machines - self.machine_tags = machine_tags diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py deleted file mode 100644 index 940d316b..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentGroupCreateParameter(Model): - """DeploymentGroupCreateParameter. - - :param description: Description of the deployment group. - :type description: str - :param name: Name of the deployment group. - :type name: str - :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. - :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` - :param pool_id: Identifier of the deployment pool in which deployment agents are registered. - :type pool_id: int - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'DeploymentGroupCreateParameterPoolProperty'}, - 'pool_id': {'key': 'poolId', 'type': 'int'} - } - - def __init__(self, description=None, name=None, pool=None, pool_id=None): - super(DeploymentGroupCreateParameter, self).__init__() - self.description = description - self.name = name - self.pool = pool - self.pool_id = pool_id diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py deleted file mode 100644 index 8d907622..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group_create_parameter_pool_property.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentGroupCreateParameterPoolProperty(Model): - """DeploymentGroupCreateParameterPoolProperty. - - :param id: Deployment pool identifier. - :type id: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, id=None): - super(DeploymentGroupCreateParameterPoolProperty, self).__init__() - self.id = id diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py deleted file mode 100644 index d6edc350..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group_metrics.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentGroupMetrics(Model): - """DeploymentGroupMetrics. - - :param columns_header: List of deployment group properties. And types of metrics provided for those properties. - :type columns_header: :class:`MetricsColumnsHeader ` - :param deployment_group: Deployment group. - :type deployment_group: :class:`DeploymentGroupReference ` - :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. - :type rows: list of :class:`MetricsRow ` - """ - - _attribute_map = { - 'columns_header': {'key': 'columnsHeader', 'type': 'MetricsColumnsHeader'}, - 'deployment_group': {'key': 'deploymentGroup', 'type': 'DeploymentGroupReference'}, - 'rows': {'key': 'rows', 'type': '[MetricsRow]'} - } - - def __init__(self, columns_header=None, deployment_group=None, rows=None): - super(DeploymentGroupMetrics, self).__init__() - self.columns_header = columns_header - self.deployment_group = deployment_group - self.rows = rows diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py deleted file mode 100644 index 2e9bc655..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentGroupReference(Model): - """DeploymentGroupReference. - - :param id: Deployment group identifier. - :type id: int - :param name: Name of the deployment group. - :type name: str - :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` - :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'} - } - - def __init__(self, id=None, name=None, pool=None, project=None): - super(DeploymentGroupReference, self).__init__() - self.id = id - self.name = name - self.pool = pool - self.project = project diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py b/vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py deleted file mode 100644 index 9d2737e9..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_group_update_parameter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentGroupUpdateParameter(Model): - """DeploymentGroupUpdateParameter. - - :param description: Description of the deployment group. - :type description: str - :param name: Name of the deployment group. - :type name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, description=None, name=None): - super(DeploymentGroupUpdateParameter, self).__init__() - self.description = description - self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_machine.py b/vsts/vsts/task_agent/v4_1/models/deployment_machine.py deleted file mode 100644 index b13fcafa..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_machine.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentMachine(Model): - """DeploymentMachine. - - :param agent: Deployment agent. - :type agent: :class:`TaskAgent ` - :param id: Deployment target Identifier. - :type id: int - :param tags: Tags of the deployment target. - :type tags: list of str - """ - - _attribute_map = { - 'agent': {'key': 'agent', 'type': 'TaskAgent'}, - 'id': {'key': 'id', 'type': 'int'}, - 'tags': {'key': 'tags', 'type': '[str]'} - } - - def __init__(self, agent=None, id=None, tags=None): - super(DeploymentMachine, self).__init__() - self.agent = agent - self.id = id - self.tags = tags diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py b/vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py deleted file mode 100644 index 56c2c9aa..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_machine_group.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .deployment_machine_group_reference import DeploymentMachineGroupReference - - -class DeploymentMachineGroup(DeploymentMachineGroupReference): - """DeploymentMachineGroup. - - :param id: - :type id: int - :param name: - :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` - :param machines: - :type machines: list of :class:`DeploymentMachine ` - :param size: - :type size: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'machines': {'key': 'machines', 'type': '[DeploymentMachine]'}, - 'size': {'key': 'size', 'type': 'int'} - } - - def __init__(self, id=None, name=None, pool=None, project=None, machines=None, size=None): - super(DeploymentMachineGroup, self).__init__(id=id, name=name, pool=pool, project=project) - self.machines = machines - self.size = size diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py b/vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py deleted file mode 100644 index 9af86b4f..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_machine_group_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentMachineGroupReference(Model): - """DeploymentMachineGroupReference. - - :param id: - :type id: int - :param name: - :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project': {'key': 'project', 'type': 'ProjectReference'} - } - - def __init__(self, id=None, name=None, pool=None, project=None): - super(DeploymentMachineGroupReference, self).__init__() - self.id = id - self.name = name - self.pool = pool - self.project = project diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py b/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py deleted file mode 100644 index 50a96b60..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_pool_summary.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentPoolSummary(Model): - """DeploymentPoolSummary. - - :param deployment_groups: List of deployment groups referring to the deployment pool. - :type deployment_groups: list of :class:`DeploymentGroupReference ` - :param offline_agents_count: Number of deployment agents that are offline. - :type offline_agents_count: int - :param online_agents_count: Number of deployment agents that are online. - :type online_agents_count: int - :param pool: Deployment pool. - :type pool: :class:`TaskAgentPoolReference ` - """ - - _attribute_map = { - 'deployment_groups': {'key': 'deploymentGroups', 'type': '[DeploymentGroupReference]'}, - 'offline_agents_count': {'key': 'offlineAgentsCount', 'type': 'int'}, - 'online_agents_count': {'key': 'onlineAgentsCount', 'type': 'int'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'} - } - - def __init__(self, deployment_groups=None, offline_agents_count=None, online_agents_count=None, pool=None): - super(DeploymentPoolSummary, self).__init__() - self.deployment_groups = deployment_groups - self.offline_agents_count = offline_agents_count - self.online_agents_count = online_agents_count - self.pool = pool diff --git a/vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py b/vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py deleted file mode 100644 index 76de415b..00000000 --- a/vsts/vsts/task_agent/v4_1/models/deployment_target_update_parameter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DeploymentTargetUpdateParameter(Model): - """DeploymentTargetUpdateParameter. - - :param id: Identifier of the deployment target. - :type id: int - :param tags: - :type tags: list of str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'tags': {'key': 'tags', 'type': '[str]'} - } - - def __init__(self, id=None, tags=None): - super(DeploymentTargetUpdateParameter, self).__init__() - self.id = id - self.tags = tags diff --git a/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py b/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py deleted file mode 100644 index 6fc33ab8..00000000 --- a/vsts/vsts/task_agent/v4_1/models/endpoint_authorization.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EndpointAuthorization(Model): - """EndpointAuthorization. - - :param parameters: Gets or sets the parameters for the selected authorization scheme. - :type parameters: dict - :param scheme: Gets or sets the scheme used for service endpoint authentication. - :type scheme: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'scheme': {'key': 'scheme', 'type': 'str'} - } - - def __init__(self, parameters=None, scheme=None): - super(EndpointAuthorization, self).__init__() - self.parameters = parameters - self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_1/models/endpoint_url.py b/vsts/vsts/task_agent/v4_1/models/endpoint_url.py deleted file mode 100644 index c1bc7ceb..00000000 --- a/vsts/vsts/task_agent/v4_1/models/endpoint_url.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class EndpointUrl(Model): - """EndpointUrl. - - :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` - :param display_name: Gets or sets the display name of service endpoint url. - :type display_name: str - :param help_text: Gets or sets the help text of service endpoint url. - :type help_text: str - :param is_visible: Gets or sets the visibility of service endpoint url. - :type is_visible: str - :param value: Gets or sets the value of service endpoint url. - :type value: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'help_text': {'key': 'helpText', 'type': 'str'}, - 'is_visible': {'key': 'isVisible', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): - super(EndpointUrl, self).__init__() - self.depends_on = depends_on - self.display_name = display_name - self.help_text = help_text - self.is_visible = is_visible - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/graph_subject_base.py b/vsts/vsts/task_agent/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/task_agent/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/task_agent/v4_1/models/help_link.py b/vsts/vsts/task_agent/v4_1/models/help_link.py deleted file mode 100644 index b48e4910..00000000 --- a/vsts/vsts/task_agent/v4_1/models/help_link.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class HelpLink(Model): - """HelpLink. - - :param text: - :type text: str - :param url: - :type url: str - """ - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, text=None, url=None): - super(HelpLink, self).__init__() - self.text = text - self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/identity_ref.py b/vsts/vsts/task_agent/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/task_agent/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/task_agent/v4_1/models/input_descriptor.py b/vsts/vsts/task_agent/v4_1/models/input_descriptor.py deleted file mode 100644 index da334836..00000000 --- a/vsts/vsts/task_agent/v4_1/models/input_descriptor.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values diff --git a/vsts/vsts/task_agent/v4_1/models/input_validation.py b/vsts/vsts/task_agent/v4_1/models/input_validation.py deleted file mode 100644 index f2f1a434..00000000 --- a/vsts/vsts/task_agent/v4_1/models/input_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message diff --git a/vsts/vsts/task_agent/v4_1/models/input_validation_request.py b/vsts/vsts/task_agent/v4_1/models/input_validation_request.py deleted file mode 100644 index 74fb2e1f..00000000 --- a/vsts/vsts/task_agent/v4_1/models/input_validation_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValidationRequest(Model): - """InputValidationRequest. - - :param inputs: - :type inputs: dict - """ - - _attribute_map = { - 'inputs': {'key': 'inputs', 'type': '{ValidationItem}'} - } - - def __init__(self, inputs=None): - super(InputValidationRequest, self).__init__() - self.inputs = inputs diff --git a/vsts/vsts/task_agent/v4_1/models/input_value.py b/vsts/vsts/task_agent/v4_1/models/input_value.py deleted file mode 100644 index 1b13b2e8..00000000 --- a/vsts/vsts/task_agent/v4_1/models/input_value.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/input_values.py b/vsts/vsts/task_agent/v4_1/models/input_values.py deleted file mode 100644 index 69472f8d..00000000 --- a/vsts/vsts/task_agent/v4_1/models/input_values.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values diff --git a/vsts/vsts/task_agent/v4_1/models/input_values_error.py b/vsts/vsts/task_agent/v4_1/models/input_values_error.py deleted file mode 100644 index e534ff53..00000000 --- a/vsts/vsts/task_agent/v4_1/models/input_values_error.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py b/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py deleted file mode 100644 index 242e669c..00000000 --- a/vsts/vsts/task_agent/v4_1/models/metrics_column_meta_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetricsColumnMetaData(Model): - """MetricsColumnMetaData. - - :param column_name: Name. - :type column_name: str - :param column_value_type: Data type. - :type column_value_type: str - """ - - _attribute_map = { - 'column_name': {'key': 'columnName', 'type': 'str'}, - 'column_value_type': {'key': 'columnValueType', 'type': 'str'} - } - - def __init__(self, column_name=None, column_value_type=None): - super(MetricsColumnMetaData, self).__init__() - self.column_name = column_name - self.column_value_type = column_value_type diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py b/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py deleted file mode 100644 index 70cda63d..00000000 --- a/vsts/vsts/task_agent/v4_1/models/metrics_columns_header.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetricsColumnsHeader(Model): - """MetricsColumnsHeader. - - :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState - :type dimensions: list of :class:`MetricsColumnMetaData ` - :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. - :type metrics: list of :class:`MetricsColumnMetaData ` - """ - - _attribute_map = { - 'dimensions': {'key': 'dimensions', 'type': '[MetricsColumnMetaData]'}, - 'metrics': {'key': 'metrics', 'type': '[MetricsColumnMetaData]'} - } - - def __init__(self, dimensions=None, metrics=None): - super(MetricsColumnsHeader, self).__init__() - self.dimensions = dimensions - self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_1/models/metrics_row.py b/vsts/vsts/task_agent/v4_1/models/metrics_row.py deleted file mode 100644 index 4aabc669..00000000 --- a/vsts/vsts/task_agent/v4_1/models/metrics_row.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class MetricsRow(Model): - """MetricsRow. - - :param dimensions: The values of the properties mentioned as 'Dimensions' in column header. E.g. 1: For a property 'LastJobStatus' - metrics will be provided for 'passed', 'failed', etc. E.g. 2: For a property 'TargetState' - metrics will be provided for 'online', 'offline' targets. - :type dimensions: list of str - :param metrics: Metrics in serialized format. Should be deserialized based on the data type provided in header. - :type metrics: list of str - """ - - _attribute_map = { - 'dimensions': {'key': 'dimensions', 'type': '[str]'}, - 'metrics': {'key': 'metrics', 'type': '[str]'} - } - - def __init__(self, dimensions=None, metrics=None): - super(MetricsRow, self).__init__() - self.dimensions = dimensions - self.metrics = metrics diff --git a/vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py b/vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py deleted file mode 100644 index 97faf738..00000000 --- a/vsts/vsts/task_agent/v4_1/models/oAuth_configuration.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OAuthConfiguration(Model): - """OAuthConfiguration. - - :param client_id: Gets or sets the ClientId - :type client_id: str - :param client_secret: Gets or sets the ClientSecret - :type client_secret: str - :param created_by: Gets or sets the identity who created the config. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets or sets the time when config was created. - :type created_on: datetime - :param endpoint_type: Gets or sets the type of the endpoint. - :type endpoint_type: str - :param id: Gets or sets the unique identifier of this field - :type id: int - :param modified_by: Gets or sets the identity who modified the config. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets or sets the time when variable group was modified - :type modified_on: datetime - :param name: Gets or sets the name - :type name: str - :param url: Gets or sets the Url - :type url: str - """ - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, client_id=None, client_secret=None, created_by=None, created_on=None, endpoint_type=None, id=None, modified_by=None, modified_on=None, name=None, url=None): - super(OAuthConfiguration, self).__init__() - self.client_id = client_id - self.client_secret = client_secret - self.created_by = created_by - self.created_on = created_on - self.endpoint_type = endpoint_type - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py b/vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py deleted file mode 100644 index 96a20eae..00000000 --- a/vsts/vsts/task_agent/v4_1/models/oAuth_configuration_params.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class OAuthConfigurationParams(Model): - """OAuthConfigurationParams. - - :param client_id: Gets or sets the ClientId - :type client_id: str - :param client_secret: Gets or sets the ClientSecret - :type client_secret: str - :param endpoint_type: Gets or sets the type of the endpoint. - :type endpoint_type: str - :param name: Gets or sets the name - :type name: str - :param url: Gets or sets the Url - :type url: str - """ - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, client_id=None, client_secret=None, endpoint_type=None, name=None, url=None): - super(OAuthConfigurationParams, self).__init__() - self.client_id = client_id - self.client_secret = client_secret - self.endpoint_type = endpoint_type - self.name = name - self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/package_metadata.py b/vsts/vsts/task_agent/v4_1/models/package_metadata.py deleted file mode 100644 index b0053f54..00000000 --- a/vsts/vsts/task_agent/v4_1/models/package_metadata.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageMetadata(Model): - """PackageMetadata. - - :param created_on: The date the package was created - :type created_on: datetime - :param download_url: A direct link to download the package. - :type download_url: str - :param filename: The UI uses this to display instructions, i.e. "unzip MyAgent.zip" - :type filename: str - :param hash_value: MD5 hash as a base64 string - :type hash_value: str - :param info_url: A link to documentation - :type info_url: str - :param platform: The platform (win7, linux, etc.) - :type platform: str - :param type: The type of package (e.g. "agent") - :type type: str - :param version: The package version. - :type version: :class:`PackageVersion ` - """ - - _attribute_map = { - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'download_url': {'key': 'downloadUrl', 'type': 'str'}, - 'filename': {'key': 'filename', 'type': 'str'}, - 'hash_value': {'key': 'hashValue', 'type': 'str'}, - 'info_url': {'key': 'infoUrl', 'type': 'str'}, - 'platform': {'key': 'platform', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'PackageVersion'} - } - - def __init__(self, created_on=None, download_url=None, filename=None, hash_value=None, info_url=None, platform=None, type=None, version=None): - super(PackageMetadata, self).__init__() - self.created_on = created_on - self.download_url = download_url - self.filename = filename - self.hash_value = hash_value - self.info_url = info_url - self.platform = platform - self.type = type - self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/package_version.py b/vsts/vsts/task_agent/v4_1/models/package_version.py deleted file mode 100644 index 3742cdc0..00000000 --- a/vsts/vsts/task_agent/v4_1/models/package_version.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PackageVersion(Model): - """PackageVersion. - - :param major: - :type major: int - :param minor: - :type minor: int - :param patch: - :type patch: int - """ - - _attribute_map = { - 'major': {'key': 'major', 'type': 'int'}, - 'minor': {'key': 'minor', 'type': 'int'}, - 'patch': {'key': 'patch', 'type': 'int'} - } - - def __init__(self, major=None, minor=None, patch=None): - super(PackageVersion, self).__init__() - self.major = major - self.minor = minor - self.patch = patch diff --git a/vsts/vsts/task_agent/v4_1/models/project_reference.py b/vsts/vsts/task_agent/v4_1/models/project_reference.py deleted file mode 100644 index 8fd6ad8e..00000000 --- a/vsts/vsts/task_agent/v4_1/models/project_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py b/vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py deleted file mode 100644 index 527821b5..00000000 --- a/vsts/vsts/task_agent/v4_1/models/publish_task_group_metadata.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PublishTaskGroupMetadata(Model): - """PublishTaskGroupMetadata. - - :param comment: - :type comment: str - :param parent_definition_revision: - :type parent_definition_revision: int - :param preview: - :type preview: bool - :param task_group_id: - :type task_group_id: str - :param task_group_revision: - :type task_group_revision: int - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'parent_definition_revision': {'key': 'parentDefinitionRevision', 'type': 'int'}, - 'preview': {'key': 'preview', 'type': 'bool'}, - 'task_group_id': {'key': 'taskGroupId', 'type': 'str'}, - 'task_group_revision': {'key': 'taskGroupRevision', 'type': 'int'} - } - - def __init__(self, comment=None, parent_definition_revision=None, preview=None, task_group_id=None, task_group_revision=None): - super(PublishTaskGroupMetadata, self).__init__() - self.comment = comment - self.parent_definition_revision = parent_definition_revision - self.preview = preview - self.task_group_id = task_group_id - self.task_group_revision = task_group_revision diff --git a/vsts/vsts/task_agent/v4_1/models/reference_links.py b/vsts/vsts/task_agent/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/task_agent/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/task_agent/v4_1/models/resource_usage.py b/vsts/vsts/task_agent/v4_1/models/resource_usage.py deleted file mode 100644 index 3f00cf3a..00000000 --- a/vsts/vsts/task_agent/v4_1/models/resource_usage.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResourceUsage(Model): - """ResourceUsage. - - :param running_plan_groups: - :type running_plan_groups: list of :class:`TaskOrchestrationPlanGroup ` - :param total_count: - :type total_count: int - :param used_count: - :type used_count: int - """ - - _attribute_map = { - 'running_plan_groups': {'key': 'runningPlanGroups', 'type': '[TaskOrchestrationPlanGroup]'}, - 'total_count': {'key': 'totalCount', 'type': 'int'}, - 'used_count': {'key': 'usedCount', 'type': 'int'} - } - - def __init__(self, running_plan_groups=None, total_count=None, used_count=None): - super(ResourceUsage, self).__init__() - self.running_plan_groups = running_plan_groups - self.total_count = total_count - self.used_count = used_count diff --git a/vsts/vsts/task_agent/v4_1/models/result_transformation_details.py b/vsts/vsts/task_agent/v4_1/models/result_transformation_details.py deleted file mode 100644 index eff9b132..00000000 --- a/vsts/vsts/task_agent/v4_1/models/result_transformation_details.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResultTransformationDetails(Model): - """ResultTransformationDetails. - - :param result_template: - :type result_template: str - """ - - _attribute_map = { - 'result_template': {'key': 'resultTemplate', 'type': 'str'} - } - - def __init__(self, result_template=None): - super(ResultTransformationDetails, self).__init__() - self.result_template = result_template diff --git a/vsts/vsts/task_agent/v4_1/models/secure_file.py b/vsts/vsts/task_agent/v4_1/models/secure_file.py deleted file mode 100644 index a1826cf8..00000000 --- a/vsts/vsts/task_agent/v4_1/models/secure_file.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SecureFile(Model): - """SecureFile. - - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: - :type created_on: datetime - :param id: - :type id: str - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_on: - :type modified_on: datetime - :param name: - :type name: str - :param properties: - :type properties: dict - :param ticket: - :type ticket: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'ticket': {'key': 'ticket', 'type': 'str'} - } - - def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, modified_on=None, name=None, properties=None, ticket=None): - super(SecureFile, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.properties = properties - self.ticket = ticket diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint.py deleted file mode 100644 index 67b32233..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpoint(Model): - """ServiceEndpoint. - - :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` - :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` - :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` - :param data: - :type data: dict - :param description: Gets or sets the description of endpoint. - :type description: str - :param group_scope_id: - :type group_scope_id: str - :param id: Gets or sets the identifier of this endpoint. - :type id: str - :param is_ready: EndPoint state indictor - :type is_ready: bool - :param name: Gets or sets the friendly name of the endpoint. - :type name: str - :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` - :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` - :param type: Gets or sets the type of the endpoint. - :type type: str - :param url: Gets or sets the url of the endpoint. - :type url: str - """ - - _attribute_map = { - 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, - 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_ready': {'key': 'isReady', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): - super(ServiceEndpoint, self).__init__() - self.administrators_group = administrators_group - self.authorization = authorization - self.created_by = created_by - self.data = data - self.description = description - self.group_scope_id = group_scope_id - self.id = id - self.is_ready = is_ready - self.name = name - self.operation_status = operation_status - self.readers_group = readers_group - self.type = type - self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py deleted file mode 100644 index 580b49bc..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_authentication_scheme.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointAuthenticationScheme(Model): - """ServiceEndpointAuthenticationScheme. - - :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` - :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` - :param display_name: Gets or sets the display name for the service endpoint authentication scheme. - :type display_name: str - :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` - :param scheme: Gets or sets the scheme for service endpoint authentication. - :type scheme: str - """ - - _attribute_map = { - 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, - 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'scheme': {'key': 'scheme', 'type': 'str'} - } - - def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): - super(ServiceEndpointAuthenticationScheme, self).__init__() - self.authorization_headers = authorization_headers - self.client_certificates = client_certificates - self.display_name = display_name - self.input_descriptors = input_descriptors - self.scheme = scheme diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py deleted file mode 100644 index ea14503a..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_details.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointDetails(Model): - """ServiceEndpointDetails. - - :param authorization: - :type authorization: :class:`EndpointAuthorization ` - :param data: - :type data: dict - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, authorization=None, data=None, type=None, url=None): - super(ServiceEndpointDetails, self).__init__() - self.authorization = authorization - self.data = data - self.type = type - self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py deleted file mode 100644 index 0d4063ff..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_data.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionData(Model): - """ServiceEndpointExecutionData. - - :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`TaskOrchestrationOwner ` - :param finish_time: Gets the finish time of service endpoint execution. - :type finish_time: datetime - :param id: Gets the Id of service endpoint execution data. - :type id: long - :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_type: Gets the plan type of service endpoint execution data. - :type plan_type: str - :param result: Gets the result of service endpoint execution. - :type result: object - :param start_time: Gets the start time of service endpoint execution. - :type start_time: datetime - """ - - _attribute_map = { - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'long'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'} - } - - def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): - super(ServiceEndpointExecutionData, self).__init__() - self.definition = definition - self.finish_time = finish_time - self.id = id - self.owner = owner - self.plan_type = plan_type - self.result = result - self.start_time = start_time diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py deleted file mode 100644 index 8bd39125..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_record.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionRecord(Model): - """ServiceEndpointExecutionRecord. - - :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_id: Gets the Id of service endpoint. - :type endpoint_id: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'} - } - - def __init__(self, data=None, endpoint_id=None): - super(ServiceEndpointExecutionRecord, self).__init__() - self.data = data - self.endpoint_id = endpoint_id diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py deleted file mode 100644 index 50ddbf4a..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_execution_records_input.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointExecutionRecordsInput(Model): - """ServiceEndpointExecutionRecordsInput. - - :param data: - :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_ids: - :type endpoint_ids: list of str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, - 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} - } - - def __init__(self, data=None, endpoint_ids=None): - super(ServiceEndpointExecutionRecordsInput, self).__init__() - self.data = data - self.endpoint_ids = endpoint_ids diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py deleted file mode 100644 index e1ff2b36..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointRequest(Model): - """ServiceEndpointRequest. - - :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` - :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` - :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` - """ - - _attribute_map = { - 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, - 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, - 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} - } - - def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): - super(ServiceEndpointRequest, self).__init__() - self.data_source_details = data_source_details - self.result_transformation_details = result_transformation_details - self.service_endpoint_details = service_endpoint_details diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py deleted file mode 100644 index b8b3b2a5..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_request_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointRequestResult(Model): - """ServiceEndpointRequestResult. - - :param error_message: - :type error_message: str - :param result: - :type result: :class:`object ` - :param status_code: - :type status_code: object - """ - - _attribute_map = { - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'object'}, - 'status_code': {'key': 'statusCode', 'type': 'object'} - } - - def __init__(self, error_message=None, result=None, status_code=None): - super(ServiceEndpointRequestResult, self).__init__() - self.error_message = error_message - self.result = result - self.status_code = status_code diff --git a/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py b/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py deleted file mode 100644 index 8b0f011c..00000000 --- a/vsts/vsts/task_agent/v4_1/models/service_endpoint_type.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ServiceEndpointType(Model): - """ServiceEndpointType. - - :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` - :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` - :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` - :param description: Gets or sets the description of service endpoint type. - :type description: str - :param display_name: Gets or sets the display name of service endpoint type. - :type display_name: str - :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` - :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` - :param help_mark_down: - :type help_mark_down: str - :param icon_url: Gets or sets the icon url of service endpoint type. - :type icon_url: str - :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: Gets or sets the name of service endpoint type. - :type name: str - :param trusted_hosts: Trusted hosts of a service endpoint type. - :type trusted_hosts: list of str - :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. - :type ui_contribution_id: str - """ - - _attribute_map = { - 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, - 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, - 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, - 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, - 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} - } - - def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): - super(ServiceEndpointType, self).__init__() - self.authentication_schemes = authentication_schemes - self.data_sources = data_sources - self.dependency_data = dependency_data - self.description = description - self.display_name = display_name - self.endpoint_url = endpoint_url - self.help_link = help_link - self.help_mark_down = help_mark_down - self.icon_url = icon_url - self.input_descriptors = input_descriptors - self.name = name - self.trusted_hosts = trusted_hosts - self.ui_contribution_id = ui_contribution_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent.py b/vsts/vsts/task_agent/v4_1/models/task_agent.py deleted file mode 100644 index 8596aaba..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent.py +++ /dev/null @@ -1,82 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_agent_reference import TaskAgentReference - - -class TaskAgent(TaskAgentReference): - """TaskAgent. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. - :type enabled: bool - :param id: Gets the identifier of the agent. - :type id: int - :param name: Gets the name of the agent. - :type name: str - :param oSDescription: Gets the OS of the agent. - :type oSDescription: str - :param status: Gets the current connectivity status of the agent. - :type status: object - :param version: Gets the version of the agent. - :type version: str - :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` - :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` - :param created_on: Gets the date on which this agent was created. - :type created_on: datetime - :param last_completed_request: Gets the last request which was completed by this agent. - :type last_completed_request: :class:`TaskAgentJobRequest ` - :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. - :type max_parallelism: int - :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` - :param properties: - :type properties: :class:`object ` - :param status_changed_on: Gets the date on which the last connectivity status change occurred. - :type status_changed_on: datetime - :param system_capabilities: - :type system_capabilities: dict - :param user_capabilities: - :type user_capabilities: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'}, - 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, - 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'last_completed_request': {'key': 'lastCompletedRequest', 'type': 'TaskAgentJobRequest'}, - 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, - 'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'status_changed_on': {'key': 'statusChangedOn', 'type': 'iso-8601'}, - 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'}, - 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} - } - - def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): - super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, oSDescription=oSDescription, status=status, version=version) - self.assigned_request = assigned_request - self.authorization = authorization - self.created_on = created_on - self.last_completed_request = last_completed_request - self.max_parallelism = max_parallelism - self.pending_update = pending_update - self.properties = properties - self.status_changed_on = status_changed_on - self.system_capabilities = system_capabilities - self.user_capabilities = user_capabilities diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py b/vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py deleted file mode 100644 index 5c2f5418..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_authorization.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentAuthorization(Model): - """TaskAgentAuthorization. - - :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. - :type authorization_url: str - :param client_id: Gets or sets the client identifier for this agent. - :type client_id: str - :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` - """ - - _attribute_map = { - 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} - } - - def __init__(self, authorization_url=None, client_id=None, public_key=None): - super(TaskAgentAuthorization, self).__init__() - self.authorization_url = authorization_url - self.client_id = client_id - self.public_key = public_key diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py b/vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py deleted file mode 100644 index 44b09997..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_delay_source.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentDelaySource(Model): - """TaskAgentDelaySource. - - :param delays: - :type delays: list of object - :param task_agent: - :type task_agent: :class:`TaskAgentReference ` - """ - - _attribute_map = { - 'delays': {'key': 'delays', 'type': '[object]'}, - 'task_agent': {'key': 'taskAgent', 'type': 'TaskAgentReference'} - } - - def __init__(self, delays=None, task_agent=None): - super(TaskAgentDelaySource, self).__init__() - self.delays = delays - self.task_agent = task_agent diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py b/vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py deleted file mode 100644 index 69cf1e71..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_job_request.py +++ /dev/null @@ -1,121 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentJobRequest(Model): - """TaskAgentJobRequest. - - :param agent_delays: - :type agent_delays: list of :class:`TaskAgentDelaySource ` - :param assign_time: - :type assign_time: datetime - :param data: - :type data: dict - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param demands: - :type demands: list of :class:`object ` - :param expected_duration: - :type expected_duration: object - :param finish_time: - :type finish_time: datetime - :param host_id: - :type host_id: str - :param job_id: - :type job_id: str - :param job_name: - :type job_name: str - :param locked_until: - :type locked_until: datetime - :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_group: - :type plan_group: str - :param plan_id: - :type plan_id: str - :param plan_type: - :type plan_type: str - :param pool_id: - :type pool_id: int - :param queue_id: - :type queue_id: int - :param queue_time: - :type queue_time: datetime - :param receive_time: - :type receive_time: datetime - :param request_id: - :type request_id: long - :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` - :param result: - :type result: object - :param scope_id: - :type scope_id: str - :param service_owner: - :type service_owner: str - """ - - _attribute_map = { - 'agent_delays': {'key': 'agentDelays', 'type': '[TaskAgentDelaySource]'}, - 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, - 'data': {'key': 'data', 'type': '{str}'}, - 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'expected_duration': {'key': 'expectedDuration', 'type': 'object'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'host_id': {'key': 'hostId', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'job_name': {'key': 'jobName', 'type': 'str'}, - 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, - 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, - 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'str'}, - 'plan_type': {'key': 'planType', 'type': 'str'}, - 'pool_id': {'key': 'poolId', 'type': 'int'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'}, - 'request_id': {'key': 'requestId', 'type': 'long'}, - 'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'}, - 'result': {'key': 'result', 'type': 'object'}, - 'scope_id': {'key': 'scopeId', 'type': 'str'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'} - } - - def __init__(self, agent_delays=None, assign_time=None, data=None, definition=None, demands=None, expected_duration=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_group=None, plan_id=None, plan_type=None, pool_id=None, queue_id=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): - super(TaskAgentJobRequest, self).__init__() - self.agent_delays = agent_delays - self.assign_time = assign_time - self.data = data - self.definition = definition - self.demands = demands - self.expected_duration = expected_duration - self.finish_time = finish_time - self.host_id = host_id - self.job_id = job_id - self.job_name = job_name - self.locked_until = locked_until - self.matched_agents = matched_agents - self.owner = owner - self.plan_group = plan_group - self.plan_id = plan_id - self.plan_type = plan_type - self.pool_id = pool_id - self.queue_id = queue_id - self.queue_time = queue_time - self.receive_time = receive_time - self.request_id = request_id - self.reserved_agent = reserved_agent - self.result = result - self.scope_id = scope_id - self.service_owner = service_owner diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_message.py b/vsts/vsts/task_agent/v4_1/models/task_agent_message.py deleted file mode 100644 index f51c30e1..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_message.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentMessage(Model): - """TaskAgentMessage. - - :param body: Gets or sets the body of the message. If the IV property is provided the body will need to be decrypted using the TaskAgentSession.EncryptionKey value in addition to the IV. - :type body: str - :param iV: Gets or sets the intialization vector used to encrypt this message. - :type iV: str - :param message_id: Gets or sets the message identifier. - :type message_id: long - :param message_type: Gets or sets the message type, describing the data contract found in TaskAgentMessage.Body. - :type message_type: str - """ - - _attribute_map = { - 'body': {'key': 'body', 'type': 'str'}, - 'iV': {'key': 'iV', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'long'}, - 'message_type': {'key': 'messageType', 'type': 'str'} - } - - def __init__(self, body=None, iV=None, message_id=None, message_type=None): - super(TaskAgentMessage, self).__init__() - self.body = body - self.iV = iV - self.message_id = message_id - self.message_type = message_type diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py deleted file mode 100644 index 137808dc..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_agent_pool_reference import TaskAgentPoolReference - - -class TaskAgentPool(TaskAgentPoolReference): - """TaskAgentPool. - - :param id: - :type id: int - :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. - :type is_hosted: bool - :param name: - :type name: str - :param pool_type: Gets or sets the type of the pool - :type pool_type: object - :param scope: - :type scope: str - :param size: Gets the current size of the pool. - :type size: int - :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. - :type auto_provision: bool - :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets the date/time of the pool creation. - :type created_on: datetime - :param owner: Gets the identity who owns or administrates this pool. - :type owner: :class:`IdentityRef ` - :param properties: - :type properties: :class:`object ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_type': {'key': 'poolType', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'int'}, - 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'properties': {'key': 'properties', 'type': 'object'} - } - - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, auto_provision=None, created_by=None, created_on=None, owner=None, properties=None): - super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope, size=size) - self.auto_provision = auto_provision - self.created_by = created_by - self.created_on = created_on - self.owner = owner - self.properties = properties diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py deleted file mode 100644 index 39aef023..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_definition.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceDefinition(Model): - """TaskAgentPoolMaintenanceDefinition. - - :param enabled: Enable maintenance - :type enabled: bool - :param id: Id - :type id: int - :param job_timeout_in_minutes: Maintenance job timeout per agent - :type job_timeout_in_minutes: int - :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time - :type max_concurrent_agents_percentage: int - :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` - :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` - :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` - :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'max_concurrent_agents_percentage': {'key': 'maxConcurrentAgentsPercentage', 'type': 'int'}, - 'options': {'key': 'options', 'type': 'TaskAgentPoolMaintenanceOptions'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'TaskAgentPoolMaintenanceRetentionPolicy'}, - 'schedule_setting': {'key': 'scheduleSetting', 'type': 'TaskAgentPoolMaintenanceSchedule'} - } - - def __init__(self, enabled=None, id=None, job_timeout_in_minutes=None, max_concurrent_agents_percentage=None, options=None, pool=None, retention_policy=None, schedule_setting=None): - super(TaskAgentPoolMaintenanceDefinition, self).__init__() - self.enabled = enabled - self.id = id - self.job_timeout_in_minutes = job_timeout_in_minutes - self.max_concurrent_agents_percentage = max_concurrent_agents_percentage - self.options = options - self.pool = pool - self.retention_policy = retention_policy - self.schedule_setting = schedule_setting diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py deleted file mode 100644 index b7545248..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceJob(Model): - """TaskAgentPoolMaintenanceJob. - - :param definition_id: The maintenance definition for the maintenance job - :type definition_id: int - :param error_count: The total error counts during the maintenance job - :type error_count: int - :param finish_time: Time that the maintenance job was completed - :type finish_time: datetime - :param job_id: Id of the maintenance job - :type job_id: int - :param logs_download_url: The log download url for the maintenance job - :type logs_download_url: str - :param orchestration_id: Orchestration/Plan Id for the maintenance job - :type orchestration_id: str - :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` - :param queue_time: Time that the maintenance job was queued - :type queue_time: datetime - :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` - :param result: The maintenance job result - :type result: object - :param start_time: Time that the maintenance job was started - :type start_time: datetime - :param status: Status of the maintenance job - :type status: object - :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` - :param warning_count: The total warning counts during the maintenance job - :type warning_count: int - """ - - _attribute_map = { - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'error_count': {'key': 'errorCount', 'type': 'int'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'int'}, - 'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'}, - 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'result': {'key': 'result', 'type': 'object'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'}, - 'warning_count': {'key': 'warningCount', 'type': 'int'} - } - - def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None): - super(TaskAgentPoolMaintenanceJob, self).__init__() - self.definition_id = definition_id - self.error_count = error_count - self.finish_time = finish_time - self.job_id = job_id - self.logs_download_url = logs_download_url - self.orchestration_id = orchestration_id - self.pool = pool - self.queue_time = queue_time - self.requested_by = requested_by - self.result = result - self.start_time = start_time - self.status = status - self.target_agents = target_agents - self.warning_count = warning_count diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py deleted file mode 100644 index eb8f80e5..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_job_target_agent.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceJobTargetAgent(Model): - """TaskAgentPoolMaintenanceJobTargetAgent. - - :param agent: - :type agent: :class:`TaskAgentReference ` - :param job_id: - :type job_id: int - :param result: - :type result: object - :param status: - :type status: object - """ - - _attribute_map = { - 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, - 'job_id': {'key': 'jobId', 'type': 'int'}, - 'result': {'key': 'result', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, agent=None, job_id=None, result=None, status=None): - super(TaskAgentPoolMaintenanceJobTargetAgent, self).__init__() - self.agent = agent - self.job_id = job_id - self.result = result - self.status = status diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py deleted file mode 100644 index 7c6690dd..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_options.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceOptions(Model): - """TaskAgentPoolMaintenanceOptions. - - :param working_directory_expiration_in_days: time to consider a System.DefaultWorkingDirectory is stale - :type working_directory_expiration_in_days: int - """ - - _attribute_map = { - 'working_directory_expiration_in_days': {'key': 'workingDirectoryExpirationInDays', 'type': 'int'} - } - - def __init__(self, working_directory_expiration_in_days=None): - super(TaskAgentPoolMaintenanceOptions, self).__init__() - self.working_directory_expiration_in_days = working_directory_expiration_in_days diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py deleted file mode 100644 index 4f9c1434..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_retention_policy.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceRetentionPolicy(Model): - """TaskAgentPoolMaintenanceRetentionPolicy. - - :param number_of_history_records_to_keep: Number of records to keep for maintenance job executed with this definition. - :type number_of_history_records_to_keep: int - """ - - _attribute_map = { - 'number_of_history_records_to_keep': {'key': 'numberOfHistoryRecordsToKeep', 'type': 'int'} - } - - def __init__(self, number_of_history_records_to_keep=None): - super(TaskAgentPoolMaintenanceRetentionPolicy, self).__init__() - self.number_of_history_records_to_keep = number_of_history_records_to_keep diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py deleted file mode 100644 index 4395a005..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_maintenance_schedule.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolMaintenanceSchedule(Model): - """TaskAgentPoolMaintenanceSchedule. - - :param days_to_build: Days for a build (flags enum for days of the week) - :type days_to_build: object - :param schedule_job_id: The Job Id of the Scheduled job that will queue the pool maintenance job. - :type schedule_job_id: str - :param start_hours: Local timezone hour to start - :type start_hours: int - :param start_minutes: Local timezone minute to start - :type start_minutes: int - :param time_zone_id: Time zone of the build schedule (string representation of the time zone id) - :type time_zone_id: str - """ - - _attribute_map = { - 'days_to_build': {'key': 'daysToBuild', 'type': 'object'}, - 'schedule_job_id': {'key': 'scheduleJobId', 'type': 'str'}, - 'start_hours': {'key': 'startHours', 'type': 'int'}, - 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, - 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} - } - - def __init__(self, days_to_build=None, schedule_job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): - super(TaskAgentPoolMaintenanceSchedule, self).__init__() - self.days_to_build = days_to_build - self.schedule_job_id = schedule_job_id - self.start_hours = start_hours - self.start_minutes = start_minutes - self.time_zone_id = time_zone_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py b/vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py deleted file mode 100644 index 4857a3f1..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_pool_reference.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPoolReference(Model): - """TaskAgentPoolReference. - - :param id: - :type id: int - :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. - :type is_hosted: bool - :param name: - :type name: str - :param pool_type: Gets or sets the type of the pool - :type pool_type: object - :param scope: - :type scope: str - :param size: Gets the current size of the pool. - :type size: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_type': {'key': 'poolType', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'int'} - } - - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None): - super(TaskAgentPoolReference, self).__init__() - self.id = id - self.is_hosted = is_hosted - self.name = name - self.pool_type = pool_type - self.scope = scope - self.size = size diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py deleted file mode 100644 index 80517d1f..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_public_key.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentPublicKey(Model): - """TaskAgentPublicKey. - - :param exponent: Gets or sets the exponent for the public key. - :type exponent: str - :param modulus: Gets or sets the modulus for the public key. - :type modulus: str - """ - - _attribute_map = { - 'exponent': {'key': 'exponent', 'type': 'str'}, - 'modulus': {'key': 'modulus', 'type': 'str'} - } - - def __init__(self, exponent=None, modulus=None): - super(TaskAgentPublicKey, self).__init__() - self.exponent = exponent - self.modulus = modulus diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_queue.py b/vsts/vsts/task_agent/v4_1/models/task_agent_queue.py deleted file mode 100644 index 9e0e0891..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_queue.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentQueue(Model): - """TaskAgentQueue. - - :param id: Id of the queue - :type id: int - :param name: Name of the queue - :type name: str - :param pool: Pool reference for this queue - :type pool: :class:`TaskAgentPoolReference ` - :param project_id: Project Id - :type project_id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, - 'project_id': {'key': 'projectId', 'type': 'str'} - } - - def __init__(self, id=None, name=None, pool=None, project_id=None): - super(TaskAgentQueue, self).__init__() - self.id = id - self.name = name - self.pool = pool - self.project_id = project_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_reference.py b/vsts/vsts/task_agent/v4_1/models/task_agent_reference.py deleted file mode 100644 index a58ba2b1..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_reference.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentReference(Model): - """TaskAgentReference. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. - :type enabled: bool - :param id: Gets the identifier of the agent. - :type id: int - :param name: Gets the name of the agent. - :type name: str - :param oSDescription: Gets the OS of the agent. - :type oSDescription: str - :param status: Gets the current connectivity status of the agent. - :type status: object - :param version: Gets the version of the agent. - :type version: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None): - super(TaskAgentReference, self).__init__() - self._links = _links - self.enabled = enabled - self.id = id - self.name = name - self.oSDescription = oSDescription - self.status = status - self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_session.py b/vsts/vsts/task_agent/v4_1/models/task_agent_session.py deleted file mode 100644 index 6baeb102..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_session.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentSession(Model): - """TaskAgentSession. - - :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` - :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` - :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. - :type owner_name: str - :param session_id: Gets the unique identifier for this session. - :type session_id: str - :param system_capabilities: - :type system_capabilities: dict - """ - - _attribute_map = { - 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, - 'encryption_key': {'key': 'encryptionKey', 'type': 'TaskAgentSessionKey'}, - 'owner_name': {'key': 'ownerName', 'type': 'str'}, - 'session_id': {'key': 'sessionId', 'type': 'str'}, - 'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'} - } - - def __init__(self, agent=None, encryption_key=None, owner_name=None, session_id=None, system_capabilities=None): - super(TaskAgentSession, self).__init__() - self.agent = agent - self.encryption_key = encryption_key - self.owner_name = owner_name - self.session_id = session_id - self.system_capabilities = system_capabilities diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py b/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py deleted file mode 100644 index 55304a88..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_session_key.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentSessionKey(Model): - """TaskAgentSessionKey. - - :param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the RSA key exchanged with the server during registration. - :type encrypted: bool - :param value: Gets or sets the symmetric key value. - :type value: str - """ - - _attribute_map = { - 'encrypted': {'key': 'encrypted', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, encrypted=None, value=None): - super(TaskAgentSessionKey, self).__init__() - self.encrypted = encrypted - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_update.py b/vsts/vsts/task_agent/v4_1/models/task_agent_update.py deleted file mode 100644 index ac377f67..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_update.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentUpdate(Model): - """TaskAgentUpdate. - - :param current_state: The current state of this agent update - :type current_state: str - :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` - :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` - :param request_time: Gets the date on which this agent update was requested. - :type request_time: datetime - :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` - :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` - """ - - _attribute_map = { - 'current_state': {'key': 'currentState', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'TaskAgentUpdateReason'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'request_time': {'key': 'requestTime', 'type': 'iso-8601'}, - 'source_version': {'key': 'sourceVersion', 'type': 'PackageVersion'}, - 'target_version': {'key': 'targetVersion', 'type': 'PackageVersion'} - } - - def __init__(self, current_state=None, reason=None, requested_by=None, request_time=None, source_version=None, target_version=None): - super(TaskAgentUpdate, self).__init__() - self.current_state = current_state - self.reason = reason - self.requested_by = requested_by - self.request_time = request_time - self.source_version = source_version - self.target_version = target_version diff --git a/vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py b/vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py deleted file mode 100644 index 7d04a89f..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_agent_update_reason.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskAgentUpdateReason(Model): - """TaskAgentUpdateReason. - - :param code: - :type code: object - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'object'} - } - - def __init__(self, code=None): - super(TaskAgentUpdateReason, self).__init__() - self.code = code diff --git a/vsts/vsts/task_agent/v4_1/models/task_definition.py b/vsts/vsts/task_agent/v4_1/models/task_definition.py deleted file mode 100644 index 43791c03..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_definition.py +++ /dev/null @@ -1,161 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinition(Model): - """TaskDefinition. - - :param agent_execution: - :type agent_execution: :class:`TaskExecution ` - :param author: - :type author: str - :param category: - :type category: str - :param contents_uploaded: - :type contents_uploaded: bool - :param contribution_identifier: - :type contribution_identifier: str - :param contribution_version: - :type contribution_version: str - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` - :param definition_type: - :type definition_type: str - :param demands: - :type demands: list of :class:`object ` - :param deprecated: - :type deprecated: bool - :param description: - :type description: str - :param disabled: - :type disabled: bool - :param execution: - :type execution: dict - :param friendly_name: - :type friendly_name: str - :param groups: - :type groups: list of :class:`TaskGroupDefinition ` - :param help_mark_down: - :type help_mark_down: str - :param host_type: - :type host_type: str - :param icon_url: - :type icon_url: str - :param id: - :type id: str - :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` - :param instance_name_format: - :type instance_name_format: str - :param minimum_agent_version: - :type minimum_agent_version: str - :param name: - :type name: str - :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` - :param package_location: - :type package_location: str - :param package_type: - :type package_type: str - :param preview: - :type preview: bool - :param release_notes: - :type release_notes: str - :param runs_on: - :type runs_on: list of str - :param satisfies: - :type satisfies: list of str - :param server_owned: - :type server_owned: bool - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` - :param source_location: - :type source_location: str - :param version: - :type version: :class:`TaskVersion ` - :param visibility: - :type visibility: list of str - """ - - _attribute_map = { - 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, - 'author': {'key': 'author', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, - 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, - 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deprecated': {'key': 'deprecated', 'type': 'bool'}, - 'description': {'key': 'description', 'type': 'str'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'execution': {'key': 'execution', 'type': '{object}'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'host_type': {'key': 'hostType', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, - 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, - 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, - 'package_location': {'key': 'packageLocation', 'type': 'str'}, - 'package_type': {'key': 'packageType', 'type': 'str'}, - 'preview': {'key': 'preview', 'type': 'bool'}, - 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, - 'runs_on': {'key': 'runsOn', 'type': '[str]'}, - 'satisfies': {'key': 'satisfies', 'type': '[str]'}, - 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'TaskVersion'}, - 'visibility': {'key': 'visibility', 'type': '[str]'} - } - - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): - super(TaskDefinition, self).__init__() - self.agent_execution = agent_execution - self.author = author - self.category = category - self.contents_uploaded = contents_uploaded - self.contribution_identifier = contribution_identifier - self.contribution_version = contribution_version - self.data_source_bindings = data_source_bindings - self.definition_type = definition_type - self.demands = demands - self.deprecated = deprecated - self.description = description - self.disabled = disabled - self.execution = execution - self.friendly_name = friendly_name - self.groups = groups - self.help_mark_down = help_mark_down - self.host_type = host_type - self.icon_url = icon_url - self.id = id - self.inputs = inputs - self.instance_name_format = instance_name_format - self.minimum_agent_version = minimum_agent_version - self.name = name - self.output_variables = output_variables - self.package_location = package_location - self.package_type = package_type - self.preview = preview - self.release_notes = release_notes - self.runs_on = runs_on - self.satisfies = satisfies - self.server_owned = server_owned - self.source_definitions = source_definitions - self.source_location = source_location - self.version = version - self.visibility = visibility diff --git a/vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py b/vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py deleted file mode 100644 index ee2aea05..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_definition_endpoint.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinitionEndpoint(Model): - """TaskDefinitionEndpoint. - - :param connection_id: An ID that identifies a service connection to be used for authenticating endpoint requests. - :type connection_id: str - :param key_selector: An Json based keyselector to filter response returned by fetching the endpoint Url.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. The following keyselector defines an Json for extracting nodes named 'ServiceName'. endpoint.KeySelector = "jsonpath://ServiceName"; - :type key_selector: str - :param scope: The scope as understood by Connected Services. Essentialy, a project-id for now. - :type scope: str - :param selector: An XPath/Json based selector to filter response returned by fetching the endpoint Url. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". The following selector defines an XPath for extracting nodes named 'ServiceName'. endpoint.Selector = "xpath://ServiceName"; - :type selector: str - :param task_id: TaskId that this endpoint belongs to. - :type task_id: str - :param url: URL to GET. - :type url: str - """ - - _attribute_map = { - 'connection_id': {'key': 'connectionId', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'scope': {'key': 'scope', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, connection_id=None, key_selector=None, scope=None, selector=None, task_id=None, url=None): - super(TaskDefinitionEndpoint, self).__init__() - self.connection_id = connection_id - self.key_selector = key_selector - self.scope = scope - self.selector = selector - self.task_id = task_id - self.url = url diff --git a/vsts/vsts/task_agent/v4_1/models/task_definition_reference.py b/vsts/vsts/task_agent/v4_1/models/task_definition_reference.py deleted file mode 100644 index ffc8dc2d..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_definition_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskDefinitionReference(Model): - """TaskDefinitionReference. - - :param definition_type: Gets or sets the definition type. Values can be 'task' or 'metaTask'. - :type definition_type: str - :param id: Gets or sets the unique identifier of task. - :type id: str - :param version_spec: Gets or sets the version specification of task. - :type version_spec: str - """ - - _attribute_map = { - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'version_spec': {'key': 'versionSpec', 'type': 'str'} - } - - def __init__(self, definition_type=None, id=None, version_spec=None): - super(TaskDefinitionReference, self).__init__() - self.definition_type = definition_type - self.id = id - self.version_spec = version_spec diff --git a/vsts/vsts/task_agent/v4_1/models/task_execution.py b/vsts/vsts/task_agent/v4_1/models/task_execution.py deleted file mode 100644 index d23d780d..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_execution.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskExecution(Model): - """TaskExecution. - - :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` - :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } - :type platform_instructions: dict - """ - - _attribute_map = { - 'exec_task': {'key': 'execTask', 'type': 'TaskReference'}, - 'platform_instructions': {'key': 'platformInstructions', 'type': '{{str}}'} - } - - def __init__(self, exec_task=None, platform_instructions=None): - super(TaskExecution, self).__init__() - self.exec_task = exec_task - self.platform_instructions = platform_instructions diff --git a/vsts/vsts/task_agent/v4_1/models/task_group.py b/vsts/vsts/task_agent/v4_1/models/task_group.py deleted file mode 100644 index 0a71354c..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_group.py +++ /dev/null @@ -1,166 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_definition import TaskDefinition - - -class TaskGroup(TaskDefinition): - """TaskGroup. - - :param agent_execution: - :type agent_execution: :class:`TaskExecution ` - :param author: - :type author: str - :param category: - :type category: str - :param contents_uploaded: - :type contents_uploaded: bool - :param contribution_identifier: - :type contribution_identifier: str - :param contribution_version: - :type contribution_version: str - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` - :param definition_type: - :type definition_type: str - :param demands: - :type demands: list of :class:`object ` - :param deprecated: - :type deprecated: bool - :param description: - :type description: str - :param disabled: - :type disabled: bool - :param execution: - :type execution: dict - :param friendly_name: - :type friendly_name: str - :param groups: - :type groups: list of :class:`TaskGroupDefinition ` - :param help_mark_down: - :type help_mark_down: str - :param host_type: - :type host_type: str - :param icon_url: - :type icon_url: str - :param id: - :type id: str - :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` - :param instance_name_format: - :type instance_name_format: str - :param minimum_agent_version: - :type minimum_agent_version: str - :param name: - :type name: str - :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` - :param package_location: - :type package_location: str - :param package_type: - :type package_type: str - :param preview: - :type preview: bool - :param release_notes: - :type release_notes: str - :param runs_on: - :type runs_on: list of str - :param satisfies: - :type satisfies: list of str - :param server_owned: - :type server_owned: bool - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` - :param source_location: - :type source_location: str - :param version: - :type version: :class:`TaskVersion ` - :param visibility: - :type visibility: list of str - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets or sets date on which it got created. - :type created_on: datetime - :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. - :type deleted: bool - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets or sets date on which it got modified. - :type modified_on: datetime - :param owner: Gets or sets the owner. - :type owner: str - :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. - :type parent_definition_id: str - :param revision: Gets or sets revision. - :type revision: int - :param tasks: Gets or sets the tasks. - :type tasks: list of :class:`TaskGroupStep ` - """ - - _attribute_map = { - 'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'}, - 'author': {'key': 'author', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'}, - 'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'}, - 'contribution_version': {'key': 'contributionVersion', 'type': 'str'}, - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deprecated': {'key': 'deprecated', 'type': 'bool'}, - 'description': {'key': 'description', 'type': 'str'}, - 'disabled': {'key': 'disabled', 'type': 'bool'}, - 'execution': {'key': 'execution', 'type': '{object}'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'host_type': {'key': 'hostType', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, - 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, - 'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, - 'package_location': {'key': 'packageLocation', 'type': 'str'}, - 'package_type': {'key': 'packageType', 'type': 'str'}, - 'preview': {'key': 'preview', 'type': 'bool'}, - 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, - 'runs_on': {'key': 'runsOn', 'type': '[str]'}, - 'satisfies': {'key': 'satisfies', 'type': '[str]'}, - 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, - 'source_location': {'key': 'sourceLocation', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'TaskVersion'}, - 'visibility': {'key': 'visibility', 'type': '[str]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'deleted': {'key': 'deleted', 'type': 'bool'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'str'}, - 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} - } - - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): - super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.deleted = deleted - self.modified_by = modified_by - self.modified_on = modified_on - self.owner = owner - self.parent_definition_id = parent_definition_id - self.revision = revision - self.tasks = tasks diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py b/vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py deleted file mode 100644 index ecc20c8a..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_group_create_parameter.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupCreateParameter(Model): - """TaskGroupCreateParameter. - - :param author: Sets author name of the task group. - :type author: str - :param category: Sets category of the task group. - :type category: str - :param description: Sets description of the task group. - :type description: str - :param friendly_name: Sets friendly name of the task group. - :type friendly_name: str - :param icon_url: Sets url icon of the task group. - :type icon_url: str - :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` - :param instance_name_format: Sets display name of the task group. - :type instance_name_format: str - :param name: Sets name of the task group. - :type name: str - :param parent_definition_id: Sets parent task group Id. This is used while creating a draft task group. - :type parent_definition_id: str - :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. - :type runs_on: list of str - :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` - :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, - 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, - 'runs_on': {'key': 'runsOn', 'type': '[str]'}, - 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, - 'version': {'key': 'version', 'type': 'TaskVersion'} - } - - def __init__(self, author=None, category=None, description=None, friendly_name=None, icon_url=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, runs_on=None, tasks=None, version=None): - super(TaskGroupCreateParameter, self).__init__() - self.author = author - self.category = category - self.description = description - self.friendly_name = friendly_name - self.icon_url = icon_url - self.inputs = inputs - self.instance_name_format = instance_name_format - self.name = name - self.parent_definition_id = parent_definition_id - self.runs_on = runs_on - self.tasks = tasks - self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_definition.py b/vsts/vsts/task_agent/v4_1/models/task_group_definition.py deleted file mode 100644 index 603bf5d7..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_group_definition.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupDefinition(Model): - """TaskGroupDefinition. - - :param display_name: - :type display_name: str - :param is_expanded: - :type is_expanded: bool - :param name: - :type name: str - :param tags: - :type tags: list of str - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, display_name=None, is_expanded=None, name=None, tags=None, visible_rule=None): - super(TaskGroupDefinition, self).__init__() - self.display_name = display_name - self.is_expanded = is_expanded - self.name = name - self.tags = tags - self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_revision.py b/vsts/vsts/task_agent/v4_1/models/task_group_revision.py deleted file mode 100644 index fff39c34..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_group_revision.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupRevision(Model): - """TaskGroupRevision. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param change_type: - :type change_type: object - :param comment: - :type comment: str - :param file_id: - :type file_id: int - :param revision: - :type revision: int - :param task_group_id: - :type task_group_id: str - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'task_group_id': {'key': 'taskGroupId', 'type': 'str'} - } - - def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, file_id=None, revision=None, task_group_id=None): - super(TaskGroupRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.file_id = file_id - self.revision = revision - self.task_group_id = task_group_id diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_step.py b/vsts/vsts/task_agent/v4_1/models/task_group_step.py deleted file mode 100644 index 78d907ff..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_group_step.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupStep(Model): - """TaskGroupStep. - - :param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise. - :type always_run: bool - :param condition: Gets or sets condition for the task. - :type condition: str - :param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise. - :type continue_on_error: bool - :param display_name: Gets or sets the display name. - :type display_name: str - :param enabled: Gets or sets as task is enabled or not. - :type enabled: bool - :param inputs: Gets or sets dictionary of inputs. - :type inputs: dict - :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` - :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): - super(TaskGroupStep, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.display_name = display_name - self.enabled = enabled - self.inputs = inputs - self.task = task - self.timeout_in_minutes = timeout_in_minutes diff --git a/vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py b/vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py deleted file mode 100644 index 140f25d9..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_group_update_parameter.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskGroupUpdateParameter(Model): - """TaskGroupUpdateParameter. - - :param author: Sets author name of the task group. - :type author: str - :param category: Sets category of the task group. - :type category: str - :param comment: Sets comment of the task group. - :type comment: str - :param description: Sets description of the task group. - :type description: str - :param friendly_name: Sets friendly name of the task group. - :type friendly_name: str - :param icon_url: Sets url icon of the task group. - :type icon_url: str - :param id: Sets the unique identifier of this field. - :type id: str - :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` - :param instance_name_format: Sets display name of the task group. - :type instance_name_format: str - :param name: Sets name of the task group. - :type name: str - :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. - :type parent_definition_id: str - :param revision: Sets revision of the task group. - :type revision: int - :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. - :type runs_on: list of str - :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` - :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, - 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'runs_on': {'key': 'runsOn', 'type': '[str]'}, - 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, - 'version': {'key': 'version', 'type': 'TaskVersion'} - } - - def __init__(self, author=None, category=None, comment=None, description=None, friendly_name=None, icon_url=None, id=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, revision=None, runs_on=None, tasks=None, version=None): - super(TaskGroupUpdateParameter, self).__init__() - self.author = author - self.category = category - self.comment = comment - self.description = description - self.friendly_name = friendly_name - self.icon_url = icon_url - self.id = id - self.inputs = inputs - self.instance_name_format = instance_name_format - self.name = name - self.parent_definition_id = parent_definition_id - self.revision = revision - self.runs_on = runs_on - self.tasks = tasks - self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py b/vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py deleted file mode 100644 index 7632a7ec..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_hub_license_details.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskHubLicenseDetails(Model): - """TaskHubLicenseDetails. - - :param enterprise_users_count: - :type enterprise_users_count: int - :param free_hosted_license_count: - :type free_hosted_license_count: int - :param free_license_count: - :type free_license_count: int - :param has_license_count_ever_updated: - :type has_license_count_ever_updated: bool - :param hosted_agent_minutes_free_count: - :type hosted_agent_minutes_free_count: int - :param hosted_agent_minutes_used_count: - :type hosted_agent_minutes_used_count: int - :param msdn_users_count: - :type msdn_users_count: int - :param purchased_hosted_license_count: - :type purchased_hosted_license_count: int - :param purchased_license_count: - :type purchased_license_count: int - :param total_license_count: - :type total_license_count: int - """ - - _attribute_map = { - 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, - 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, - 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, - 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, - 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, - 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, - 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, - 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, - 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, - 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} - } - - def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): - super(TaskHubLicenseDetails, self).__init__() - self.enterprise_users_count = enterprise_users_count - self.free_hosted_license_count = free_hosted_license_count - self.free_license_count = free_license_count - self.has_license_count_ever_updated = has_license_count_ever_updated - self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count - self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count - self.msdn_users_count = msdn_users_count - self.purchased_hosted_license_count = purchased_hosted_license_count - self.purchased_license_count = purchased_license_count - self.total_license_count = total_license_count diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_definition.py b/vsts/vsts/task_agent/v4_1/models/task_input_definition.py deleted file mode 100644 index 3bc463ce..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_input_definition.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_input_definition_base import TaskInputDefinitionBase - - -class TaskInputDefinition(TaskInputDefinitionBase): - """TaskInputDefinition. - - :param aliases: - :type aliases: list of str - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'aliases': {'key': 'aliases', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'}, - } - - def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinition, self).__init__(aliases=aliases, default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py deleted file mode 100644 index 1b4e68ff..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_input_definition_base.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param aliases: - :type aliases: list of str - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'aliases': {'key': 'aliases', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.aliases = aliases - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule diff --git a/vsts/vsts/task_agent/v4_1/models/task_input_validation.py b/vsts/vsts/task_agent/v4_1/models/task_input_validation.py deleted file mode 100644 index 42524013..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_input_validation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message diff --git a/vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py b/vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py deleted file mode 100644 index ffba19a6..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_orchestration_owner.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationOwner(Model): - """TaskOrchestrationOwner. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None): - super(TaskOrchestrationOwner, self).__init__() - self._links = _links - self.id = id - self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py b/vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py deleted file mode 100644 index 2109cc96..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_orchestration_plan_group.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOrchestrationPlanGroup(Model): - """TaskOrchestrationPlanGroup. - - :param plan_group: - :type plan_group: str - :param project: - :type project: :class:`ProjectReference ` - :param running_requests: - :type running_requests: list of :class:`TaskAgentJobRequest ` - """ - - _attribute_map = { - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'running_requests': {'key': 'runningRequests', 'type': '[TaskAgentJobRequest]'} - } - - def __init__(self, plan_group=None, project=None, running_requests=None): - super(TaskOrchestrationPlanGroup, self).__init__() - self.plan_group = plan_group - self.project = project - self.running_requests = running_requests diff --git a/vsts/vsts/task_agent/v4_1/models/task_output_variable.py b/vsts/vsts/task_agent/v4_1/models/task_output_variable.py deleted file mode 100644 index 6bd50c8d..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_output_variable.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskOutputVariable(Model): - """TaskOutputVariable. - - :param description: - :type description: str - :param name: - :type name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, description=None, name=None): - super(TaskOutputVariable, self).__init__() - self.description = description - self.name = name diff --git a/vsts/vsts/task_agent/v4_1/models/task_package_metadata.py b/vsts/vsts/task_agent/v4_1/models/task_package_metadata.py deleted file mode 100644 index 635fda1b..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_package_metadata.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskPackageMetadata(Model): - """TaskPackageMetadata. - - :param type: Gets the name of the package. - :type type: str - :param url: Gets the url of the package. - :type url: str - :param version: Gets the version of the package. - :type version: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, type=None, url=None, version=None): - super(TaskPackageMetadata, self).__init__() - self.type = type - self.url = url - self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_reference.py b/vsts/vsts/task_agent/v4_1/models/task_reference.py deleted file mode 100644 index 3ff1dd7b..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskReference(Model): - """TaskReference. - - :param id: - :type id: str - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, inputs=None, name=None, version=None): - super(TaskReference, self).__init__() - self.id = id - self.inputs = inputs - self.name = name - self.version = version diff --git a/vsts/vsts/task_agent/v4_1/models/task_source_definition.py b/vsts/vsts/task_agent/v4_1/models/task_source_definition.py deleted file mode 100644 index 96f5576b..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_source_definition.py +++ /dev/null @@ -1,36 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .task_source_definition_base import TaskSourceDefinitionBase - - -class TaskSourceDefinition(TaskSourceDefinitionBase): - """TaskSourceDefinition. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinition, self).__init__(auth_key=auth_key, endpoint=endpoint, key_selector=key_selector, selector=selector, target=target) diff --git a/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py b/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py deleted file mode 100644 index c8a6b6d6..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_source_definition_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target diff --git a/vsts/vsts/task_agent/v4_1/models/task_version.py b/vsts/vsts/task_agent/v4_1/models/task_version.py deleted file mode 100644 index 3d4c89ee..00000000 --- a/vsts/vsts/task_agent/v4_1/models/task_version.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TaskVersion(Model): - """TaskVersion. - - :param is_test: - :type is_test: bool - :param major: - :type major: int - :param minor: - :type minor: int - :param patch: - :type patch: int - """ - - _attribute_map = { - 'is_test': {'key': 'isTest', 'type': 'bool'}, - 'major': {'key': 'major', 'type': 'int'}, - 'minor': {'key': 'minor', 'type': 'int'}, - 'patch': {'key': 'patch', 'type': 'int'} - } - - def __init__(self, is_test=None, major=None, minor=None, patch=None): - super(TaskVersion, self).__init__() - self.is_test = is_test - self.major = major - self.minor = minor - self.patch = patch diff --git a/vsts/vsts/task_agent/v4_1/models/validation_item.py b/vsts/vsts/task_agent/v4_1/models/validation_item.py deleted file mode 100644 index c7ba5083..00000000 --- a/vsts/vsts/task_agent/v4_1/models/validation_item.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ValidationItem(Model): - """ValidationItem. - - :param is_valid: Tells whether the current input is valid or not - :type is_valid: bool - :param reason: Reason for input validation failure - :type reason: str - :param type: Type of validation item - :type type: str - :param value: Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master') - :type value: str - """ - - _attribute_map = { - 'is_valid': {'key': 'isValid', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_valid=None, reason=None, type=None, value=None): - super(ValidationItem, self).__init__() - self.is_valid = is_valid - self.reason = reason - self.type = type - self.value = value diff --git a/vsts/vsts/task_agent/v4_1/models/variable_group.py b/vsts/vsts/task_agent/v4_1/models/variable_group.py deleted file mode 100644 index fa38154c..00000000 --- a/vsts/vsts/task_agent/v4_1/models/variable_group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroup(Model): - """VariableGroup. - - :param created_by: Gets or sets the identity who created the variable group. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets or sets the time when variable group was created. - :type created_on: datetime - :param description: Gets or sets description of the variable group. - :type description: str - :param id: Gets or sets id of the variable group. - :type id: int - :param modified_by: Gets or sets the identity who modified the variable group. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets or sets the time when variable group was modified - :type modified_on: datetime - :param name: Gets or sets name of the variable group. - :type name: str - :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` - :param type: Gets or sets type of the variable group. - :type type: str - :param variables: Gets or sets variables contained in the variable group. - :type variables: dict - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'} - } - - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): - super(VariableGroup, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.provider_data = provider_data - self.type = type - self.variables = variables diff --git a/vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py b/vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py deleted file mode 100644 index 0628f80d..00000000 --- a/vsts/vsts/task_agent/v4_1/models/variable_group_parameters.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroupParameters(Model): - """VariableGroupParameters. - - :param description: Sets description of the variable group. - :type description: str - :param name: Sets name of the variable group. - :type name: str - :param provider_data: Sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` - :param type: Sets type of the variable group. - :type type: str - :param variables: Sets variables contained in the variable group. - :type variables: dict - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'} - } - - def __init__(self, description=None, name=None, provider_data=None, type=None, variables=None): - super(VariableGroupParameters, self).__init__() - self.description = description - self.name = name - self.provider_data = provider_data - self.type = type - self.variables = variables diff --git a/vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py b/vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py deleted file mode 100644 index b86942f1..00000000 --- a/vsts/vsts/task_agent/v4_1/models/variable_group_provider_data.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableGroupProviderData(Model): - """VariableGroupProviderData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(VariableGroupProviderData, self).__init__() diff --git a/vsts/vsts/task_agent/v4_1/models/variable_value.py b/vsts/vsts/task_agent/v4_1/models/variable_value.py deleted file mode 100644 index 035049c0..00000000 --- a/vsts/vsts/task_agent/v4_1/models/variable_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value diff --git a/vsts/vsts/test/__init__.py b/vsts/vsts/test/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/test/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/test/v4_0/__init__.py b/vsts/vsts/test/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/test/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/test/v4_0/models/__init__.py b/vsts/vsts/test/v4_0/models/__init__.py deleted file mode 100644 index 2dacf2e7..00000000 --- a/vsts/vsts/test/v4_0/models/__init__.py +++ /dev/null @@ -1,197 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .aggregated_data_for_result_trend import AggregatedDataForResultTrend -from .aggregated_results_analysis import AggregatedResultsAnalysis -from .aggregated_results_by_outcome import AggregatedResultsByOutcome -from .aggregated_results_difference import AggregatedResultsDifference -from .build_configuration import BuildConfiguration -from .build_coverage import BuildCoverage -from .build_reference import BuildReference -from .clone_operation_information import CloneOperationInformation -from .clone_options import CloneOptions -from .clone_statistics import CloneStatistics -from .code_coverage_data import CodeCoverageData -from .code_coverage_statistics import CodeCoverageStatistics -from .code_coverage_summary import CodeCoverageSummary -from .coverage_statistics import CoverageStatistics -from .custom_test_field import CustomTestField -from .custom_test_field_definition import CustomTestFieldDefinition -from .dtl_environment_details import DtlEnvironmentDetails -from .failing_since import FailingSince -from .function_coverage import FunctionCoverage -from .identity_ref import IdentityRef -from .last_result_details import LastResultDetails -from .linked_work_items_query import LinkedWorkItemsQuery -from .linked_work_items_query_result import LinkedWorkItemsQueryResult -from .module_coverage import ModuleCoverage -from .name_value_pair import NameValuePair -from .plan_update_model import PlanUpdateModel -from .point_assignment import PointAssignment -from .points_filter import PointsFilter -from .point_update_model import PointUpdateModel -from .property_bag import PropertyBag -from .query_model import QueryModel -from .release_environment_definition_reference import ReleaseEnvironmentDefinitionReference -from .release_reference import ReleaseReference -from .result_retention_settings import ResultRetentionSettings -from .results_filter import ResultsFilter -from .run_create_model import RunCreateModel -from .run_filter import RunFilter -from .run_statistic import RunStatistic -from .run_update_model import RunUpdateModel -from .shallow_reference import ShallowReference -from .shared_step_model import SharedStepModel -from .suite_create_model import SuiteCreateModel -from .suite_entry import SuiteEntry -from .suite_entry_update_model import SuiteEntryUpdateModel -from .suite_test_case import SuiteTestCase -from .team_context import TeamContext -from .team_project_reference import TeamProjectReference -from .test_action_result_model import TestActionResultModel -from .test_attachment import TestAttachment -from .test_attachment_reference import TestAttachmentReference -from .test_attachment_request_model import TestAttachmentRequestModel -from .test_case_result import TestCaseResult -from .test_case_result_attachment_model import TestCaseResultAttachmentModel -from .test_case_result_identifier import TestCaseResultIdentifier -from .test_case_result_update_model import TestCaseResultUpdateModel -from .test_configuration import TestConfiguration -from .test_environment import TestEnvironment -from .test_failure_details import TestFailureDetails -from .test_failures_analysis import TestFailuresAnalysis -from .test_iteration_details_model import TestIterationDetailsModel -from .test_message_log_details import TestMessageLogDetails -from .test_method import TestMethod -from .test_operation_reference import TestOperationReference -from .test_plan import TestPlan -from .test_plan_clone_request import TestPlanCloneRequest -from .test_point import TestPoint -from .test_points_query import TestPointsQuery -from .test_resolution_state import TestResolutionState -from .test_result_create_model import TestResultCreateModel -from .test_result_document import TestResultDocument -from .test_result_history import TestResultHistory -from .test_result_history_details_for_group import TestResultHistoryDetailsForGroup -from .test_result_model_base import TestResultModelBase -from .test_result_parameter_model import TestResultParameterModel -from .test_result_payload import TestResultPayload -from .test_results_context import TestResultsContext -from .test_results_details import TestResultsDetails -from .test_results_details_for_group import TestResultsDetailsForGroup -from .test_results_query import TestResultsQuery -from .test_result_summary import TestResultSummary -from .test_result_trend_filter import TestResultTrendFilter -from .test_run import TestRun -from .test_run_coverage import TestRunCoverage -from .test_run_statistic import TestRunStatistic -from .test_session import TestSession -from .test_settings import TestSettings -from .test_suite import TestSuite -from .test_suite_clone_request import TestSuiteCloneRequest -from .test_summary_for_work_item import TestSummaryForWorkItem -from .test_to_work_item_links import TestToWorkItemLinks -from .test_variable import TestVariable -from .work_item_reference import WorkItemReference -from .work_item_to_test_links import WorkItemToTestLinks - -__all__ = [ - 'AggregatedDataForResultTrend', - 'AggregatedResultsAnalysis', - 'AggregatedResultsByOutcome', - 'AggregatedResultsDifference', - 'BuildConfiguration', - 'BuildCoverage', - 'BuildReference', - 'CloneOperationInformation', - 'CloneOptions', - 'CloneStatistics', - 'CodeCoverageData', - 'CodeCoverageStatistics', - 'CodeCoverageSummary', - 'CoverageStatistics', - 'CustomTestField', - 'CustomTestFieldDefinition', - 'DtlEnvironmentDetails', - 'FailingSince', - 'FunctionCoverage', - 'IdentityRef', - 'LastResultDetails', - 'LinkedWorkItemsQuery', - 'LinkedWorkItemsQueryResult', - 'ModuleCoverage', - 'NameValuePair', - 'PlanUpdateModel', - 'PointAssignment', - 'PointsFilter', - 'PointUpdateModel', - 'PropertyBag', - 'QueryModel', - 'ReleaseEnvironmentDefinitionReference', - 'ReleaseReference', - 'ResultRetentionSettings', - 'ResultsFilter', - 'RunCreateModel', - 'RunFilter', - 'RunStatistic', - 'RunUpdateModel', - 'ShallowReference', - 'SharedStepModel', - 'SuiteCreateModel', - 'SuiteEntry', - 'SuiteEntryUpdateModel', - 'SuiteTestCase', - 'TeamContext', - 'TeamProjectReference', - 'TestActionResultModel', - 'TestAttachment', - 'TestAttachmentReference', - 'TestAttachmentRequestModel', - 'TestCaseResult', - 'TestCaseResultAttachmentModel', - 'TestCaseResultIdentifier', - 'TestCaseResultUpdateModel', - 'TestConfiguration', - 'TestEnvironment', - 'TestFailureDetails', - 'TestFailuresAnalysis', - 'TestIterationDetailsModel', - 'TestMessageLogDetails', - 'TestMethod', - 'TestOperationReference', - 'TestPlan', - 'TestPlanCloneRequest', - 'TestPoint', - 'TestPointsQuery', - 'TestResolutionState', - 'TestResultCreateModel', - 'TestResultDocument', - 'TestResultHistory', - 'TestResultHistoryDetailsForGroup', - 'TestResultModelBase', - 'TestResultParameterModel', - 'TestResultPayload', - 'TestResultsContext', - 'TestResultsDetails', - 'TestResultsDetailsForGroup', - 'TestResultsQuery', - 'TestResultSummary', - 'TestResultTrendFilter', - 'TestRun', - 'TestRunCoverage', - 'TestRunStatistic', - 'TestSession', - 'TestSettings', - 'TestSuite', - 'TestSuiteCloneRequest', - 'TestSummaryForWorkItem', - 'TestToWorkItemLinks', - 'TestVariable', - 'WorkItemReference', - 'WorkItemToTestLinks', -] diff --git a/vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py b/vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py deleted file mode 100644 index 00c3e706..00000000 --- a/vsts/vsts/test/v4_0/models/aggregated_data_for_result_trend.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedDataForResultTrend(Model): - """AggregatedDataForResultTrend. - - :param duration: This is tests execution duration. - :type duration: object - :param results_by_outcome: - :type results_by_outcome: dict - :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` - :param total_tests: - :type total_tests: int - """ - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'object'}, - 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'} - } - - def __init__(self, duration=None, results_by_outcome=None, test_results_context=None, total_tests=None): - super(AggregatedDataForResultTrend, self).__init__() - self.duration = duration - self.results_by_outcome = results_by_outcome - self.test_results_context = test_results_context - self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_0/models/aggregated_results_analysis.py b/vsts/vsts/test/v4_0/models/aggregated_results_analysis.py deleted file mode 100644 index c1dfdb1c..00000000 --- a/vsts/vsts/test/v4_0/models/aggregated_results_analysis.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsAnalysis(Model): - """AggregatedResultsAnalysis. - - :param duration: - :type duration: object - :param not_reported_results_by_outcome: - :type not_reported_results_by_outcome: dict - :param previous_context: - :type previous_context: :class:`TestResultsContext ` - :param results_by_outcome: - :type results_by_outcome: dict - :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` - :param total_tests: - :type total_tests: int - """ - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'object'}, - 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, - 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'} - } - - def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, total_tests=None): - super(AggregatedResultsAnalysis, self).__init__() - self.duration = duration - self.not_reported_results_by_outcome = not_reported_results_by_outcome - self.previous_context = previous_context - self.results_by_outcome = results_by_outcome - self.results_difference = results_difference - self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py b/vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py deleted file mode 100644 index 609f8dc2..00000000 --- a/vsts/vsts/test/v4_0/models/aggregated_results_by_outcome.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsByOutcome(Model): - """AggregatedResultsByOutcome. - - :param count: - :type count: int - :param duration: - :type duration: object - :param group_by_field: - :type group_by_field: str - :param group_by_value: - :type group_by_value: object - :param outcome: - :type outcome: object - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration': {'key': 'duration', 'type': 'object'}, - 'group_by_field': {'key': 'groupByField', 'type': 'str'}, - 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'outcome': {'key': 'outcome', 'type': 'object'} - } - - def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None): - super(AggregatedResultsByOutcome, self).__init__() - self.count = count - self.duration = duration - self.group_by_field = group_by_field - self.group_by_value = group_by_value - self.outcome = outcome diff --git a/vsts/vsts/test/v4_0/models/aggregated_results_difference.py b/vsts/vsts/test/v4_0/models/aggregated_results_difference.py deleted file mode 100644 index 5bc4af42..00000000 --- a/vsts/vsts/test/v4_0/models/aggregated_results_difference.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsDifference(Model): - """AggregatedResultsDifference. - - :param increase_in_duration: - :type increase_in_duration: object - :param increase_in_failures: - :type increase_in_failures: int - :param increase_in_other_tests: - :type increase_in_other_tests: int - :param increase_in_passed_tests: - :type increase_in_passed_tests: int - :param increase_in_total_tests: - :type increase_in_total_tests: int - """ - - _attribute_map = { - 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, - 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, - 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, - 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, - 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} - } - - def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): - super(AggregatedResultsDifference, self).__init__() - self.increase_in_duration = increase_in_duration - self.increase_in_failures = increase_in_failures - self.increase_in_other_tests = increase_in_other_tests - self.increase_in_passed_tests = increase_in_passed_tests - self.increase_in_total_tests = increase_in_total_tests diff --git a/vsts/vsts/test/v4_0/models/build_configuration.py b/vsts/vsts/test/v4_0/models/build_configuration.py deleted file mode 100644 index 59498af4..00000000 --- a/vsts/vsts/test/v4_0/models/build_configuration.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildConfiguration(Model): - """BuildConfiguration. - - :param branch_name: - :type branch_name: str - :param build_definition_id: - :type build_definition_id: int - :param flavor: - :type flavor: str - :param id: - :type id: int - :param number: - :type number: str - :param platform: - :type platform: str - :param project: - :type project: :class:`ShallowReference ` - :param repository_id: - :type repository_id: int - :param source_version: - :type source_version: str - :param uri: - :type uri: str - """ - - _attribute_map = { - 'branch_name': {'key': 'branchName', 'type': 'str'}, - 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, - 'flavor': {'key': 'flavor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'number': {'key': 'number', 'type': 'str'}, - 'platform': {'key': 'platform', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'repository_id': {'key': 'repositoryId', 'type': 'int'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): - super(BuildConfiguration, self).__init__() - self.branch_name = branch_name - self.build_definition_id = build_definition_id - self.flavor = flavor - self.id = id - self.number = number - self.platform = platform - self.project = project - self.repository_id = repository_id - self.source_version = source_version - self.uri = uri diff --git a/vsts/vsts/test/v4_0/models/build_coverage.py b/vsts/vsts/test/v4_0/models/build_coverage.py deleted file mode 100644 index 350643c8..00000000 --- a/vsts/vsts/test/v4_0/models/build_coverage.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildCoverage(Model): - """BuildCoverage. - - :param code_coverage_file_url: - :type code_coverage_file_url: str - :param configuration: - :type configuration: :class:`BuildConfiguration ` - :param last_error: - :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: - :type state: str - """ - - _attribute_map = { - 'code_coverage_file_url': {'key': 'codeCoverageFileUrl', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'BuildConfiguration'}, - 'last_error': {'key': 'lastError', 'type': 'str'}, - 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, code_coverage_file_url=None, configuration=None, last_error=None, modules=None, state=None): - super(BuildCoverage, self).__init__() - self.code_coverage_file_url = code_coverage_file_url - self.configuration = configuration - self.last_error = last_error - self.modules = modules - self.state = state diff --git a/vsts/vsts/test/v4_0/models/build_reference.py b/vsts/vsts/test/v4_0/models/build_reference.py deleted file mode 100644 index 0abda1e9..00000000 --- a/vsts/vsts/test/v4_0/models/build_reference.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildReference(Model): - """BuildReference. - - :param branch_name: - :type branch_name: str - :param build_system: - :type build_system: str - :param definition_id: - :type definition_id: int - :param id: - :type id: int - :param number: - :type number: str - :param repository_id: - :type repository_id: str - :param uri: - :type uri: str - """ - - _attribute_map = { - 'branch_name': {'key': 'branchName', 'type': 'str'}, - 'build_system': {'key': 'buildSystem', 'type': 'str'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'int'}, - 'number': {'key': 'number', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, branch_name=None, build_system=None, definition_id=None, id=None, number=None, repository_id=None, uri=None): - super(BuildReference, self).__init__() - self.branch_name = branch_name - self.build_system = build_system - self.definition_id = definition_id - self.id = id - self.number = number - self.repository_id = repository_id - self.uri = uri diff --git a/vsts/vsts/test/v4_0/models/clone_operation_information.py b/vsts/vsts/test/v4_0/models/clone_operation_information.py deleted file mode 100644 index 5852d43f..00000000 --- a/vsts/vsts/test/v4_0/models/clone_operation_information.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CloneOperationInformation(Model): - """CloneOperationInformation. - - :param clone_statistics: - :type clone_statistics: :class:`CloneStatistics ` - :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue - :type completion_date: datetime - :param creation_date: DateTime when the operation was started - :type creation_date: datetime - :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` - :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` - :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` - :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. - :type message: str - :param op_id: The ID of the operation - :type op_id: int - :param result_object_type: The type of the object generated as a result of the Clone operation - :type result_object_type: object - :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` - :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` - :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` - :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete - :type state: object - :param url: Url for geting the clone information - :type url: str - """ - - _attribute_map = { - 'clone_statistics': {'key': 'cloneStatistics', 'type': 'CloneStatistics'}, - 'completion_date': {'key': 'completionDate', 'type': 'iso-8601'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'destination_object': {'key': 'destinationObject', 'type': 'ShallowReference'}, - 'destination_plan': {'key': 'destinationPlan', 'type': 'ShallowReference'}, - 'destination_project': {'key': 'destinationProject', 'type': 'ShallowReference'}, - 'message': {'key': 'message', 'type': 'str'}, - 'op_id': {'key': 'opId', 'type': 'int'}, - 'result_object_type': {'key': 'resultObjectType', 'type': 'object'}, - 'source_object': {'key': 'sourceObject', 'type': 'ShallowReference'}, - 'source_plan': {'key': 'sourcePlan', 'type': 'ShallowReference'}, - 'source_project': {'key': 'sourceProject', 'type': 'ShallowReference'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, clone_statistics=None, completion_date=None, creation_date=None, destination_object=None, destination_plan=None, destination_project=None, message=None, op_id=None, result_object_type=None, source_object=None, source_plan=None, source_project=None, state=None, url=None): - super(CloneOperationInformation, self).__init__() - self.clone_statistics = clone_statistics - self.completion_date = completion_date - self.creation_date = creation_date - self.destination_object = destination_object - self.destination_plan = destination_plan - self.destination_project = destination_project - self.message = message - self.op_id = op_id - self.result_object_type = result_object_type - self.source_object = source_object - self.source_plan = source_plan - self.source_project = source_project - self.state = state - self.url = url diff --git a/vsts/vsts/test/v4_0/models/clone_options.py b/vsts/vsts/test/v4_0/models/clone_options.py deleted file mode 100644 index f048c1c9..00000000 --- a/vsts/vsts/test/v4_0/models/clone_options.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CloneOptions(Model): - """CloneOptions. - - :param clone_requirements: If set to true requirements will be cloned - :type clone_requirements: bool - :param copy_all_suites: copy all suites from a source plan - :type copy_all_suites: bool - :param copy_ancestor_hierarchy: copy ancestor hieracrchy - :type copy_ancestor_hierarchy: bool - :param destination_work_item_type: Name of the workitem type of the clone - :type destination_work_item_type: str - :param override_parameters: Key value pairs where the key value is overridden by the value. - :type override_parameters: dict - :param related_link_comment: Comment on the link that will link the new clone test case to the original Set null for no comment - :type related_link_comment: str - """ - - _attribute_map = { - 'clone_requirements': {'key': 'cloneRequirements', 'type': 'bool'}, - 'copy_all_suites': {'key': 'copyAllSuites', 'type': 'bool'}, - 'copy_ancestor_hierarchy': {'key': 'copyAncestorHierarchy', 'type': 'bool'}, - 'destination_work_item_type': {'key': 'destinationWorkItemType', 'type': 'str'}, - 'override_parameters': {'key': 'overrideParameters', 'type': '{str}'}, - 'related_link_comment': {'key': 'relatedLinkComment', 'type': 'str'} - } - - def __init__(self, clone_requirements=None, copy_all_suites=None, copy_ancestor_hierarchy=None, destination_work_item_type=None, override_parameters=None, related_link_comment=None): - super(CloneOptions, self).__init__() - self.clone_requirements = clone_requirements - self.copy_all_suites = copy_all_suites - self.copy_ancestor_hierarchy = copy_ancestor_hierarchy - self.destination_work_item_type = destination_work_item_type - self.override_parameters = override_parameters - self.related_link_comment = related_link_comment diff --git a/vsts/vsts/test/v4_0/models/clone_statistics.py b/vsts/vsts/test/v4_0/models/clone_statistics.py deleted file mode 100644 index f3ba75a3..00000000 --- a/vsts/vsts/test/v4_0/models/clone_statistics.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CloneStatistics(Model): - """CloneStatistics. - - :param cloned_requirements_count: Number of Requirments cloned so far. - :type cloned_requirements_count: int - :param cloned_shared_steps_count: Number of shared steps cloned so far. - :type cloned_shared_steps_count: int - :param cloned_test_cases_count: Number of test cases cloned so far - :type cloned_test_cases_count: int - :param total_requirements_count: Total number of requirements to be cloned - :type total_requirements_count: int - :param total_test_cases_count: Total number of test cases to be cloned - :type total_test_cases_count: int - """ - - _attribute_map = { - 'cloned_requirements_count': {'key': 'clonedRequirementsCount', 'type': 'int'}, - 'cloned_shared_steps_count': {'key': 'clonedSharedStepsCount', 'type': 'int'}, - 'cloned_test_cases_count': {'key': 'clonedTestCasesCount', 'type': 'int'}, - 'total_requirements_count': {'key': 'totalRequirementsCount', 'type': 'int'}, - 'total_test_cases_count': {'key': 'totalTestCasesCount', 'type': 'int'} - } - - def __init__(self, cloned_requirements_count=None, cloned_shared_steps_count=None, cloned_test_cases_count=None, total_requirements_count=None, total_test_cases_count=None): - super(CloneStatistics, self).__init__() - self.cloned_requirements_count = cloned_requirements_count - self.cloned_shared_steps_count = cloned_shared_steps_count - self.cloned_test_cases_count = cloned_test_cases_count - self.total_requirements_count = total_requirements_count - self.total_test_cases_count = total_test_cases_count diff --git a/vsts/vsts/test/v4_0/models/code_coverage_data.py b/vsts/vsts/test/v4_0/models/code_coverage_data.py deleted file mode 100644 index 9bd2578b..00000000 --- a/vsts/vsts/test/v4_0/models/code_coverage_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeCoverageData(Model): - """CodeCoverageData. - - :param build_flavor: Flavor of build for which data is retrieved/published - :type build_flavor: str - :param build_platform: Platform of build for which data is retrieved/published - :type build_platform: str - :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` - """ - - _attribute_map = { - 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, - 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, - 'coverage_stats': {'key': 'coverageStats', 'type': '[CodeCoverageStatistics]'} - } - - def __init__(self, build_flavor=None, build_platform=None, coverage_stats=None): - super(CodeCoverageData, self).__init__() - self.build_flavor = build_flavor - self.build_platform = build_platform - self.coverage_stats = coverage_stats diff --git a/vsts/vsts/test/v4_0/models/code_coverage_statistics.py b/vsts/vsts/test/v4_0/models/code_coverage_statistics.py deleted file mode 100644 index ccc562ad..00000000 --- a/vsts/vsts/test/v4_0/models/code_coverage_statistics.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeCoverageStatistics(Model): - """CodeCoverageStatistics. - - :param covered: Covered units - :type covered: int - :param delta: Delta of coverage - :type delta: float - :param is_delta_available: Is delta valid - :type is_delta_available: bool - :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) - :type label: str - :param position: Position of label - :type position: int - :param total: Total units - :type total: int - """ - - _attribute_map = { - 'covered': {'key': 'covered', 'type': 'int'}, - 'delta': {'key': 'delta', 'type': 'float'}, - 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'total': {'key': 'total', 'type': 'int'} - } - - def __init__(self, covered=None, delta=None, is_delta_available=None, label=None, position=None, total=None): - super(CodeCoverageStatistics, self).__init__() - self.covered = covered - self.delta = delta - self.is_delta_available = is_delta_available - self.label = label - self.position = position - self.total = total diff --git a/vsts/vsts/test/v4_0/models/code_coverage_summary.py b/vsts/vsts/test/v4_0/models/code_coverage_summary.py deleted file mode 100644 index 4e4a1cf4..00000000 --- a/vsts/vsts/test/v4_0/models/code_coverage_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeCoverageSummary(Model): - """CodeCoverageSummary. - - :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` - :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` - :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'coverage_data': {'key': 'coverageData', 'type': '[CodeCoverageData]'}, - 'delta_build': {'key': 'deltaBuild', 'type': 'ShallowReference'} - } - - def __init__(self, build=None, coverage_data=None, delta_build=None): - super(CodeCoverageSummary, self).__init__() - self.build = build - self.coverage_data = coverage_data - self.delta_build = delta_build diff --git a/vsts/vsts/test/v4_0/models/coverage_statistics.py b/vsts/vsts/test/v4_0/models/coverage_statistics.py deleted file mode 100644 index 7b7704db..00000000 --- a/vsts/vsts/test/v4_0/models/coverage_statistics.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CoverageStatistics(Model): - """CoverageStatistics. - - :param blocks_covered: - :type blocks_covered: int - :param blocks_not_covered: - :type blocks_not_covered: int - :param lines_covered: - :type lines_covered: int - :param lines_not_covered: - :type lines_not_covered: int - :param lines_partially_covered: - :type lines_partially_covered: int - """ - - _attribute_map = { - 'blocks_covered': {'key': 'blocksCovered', 'type': 'int'}, - 'blocks_not_covered': {'key': 'blocksNotCovered', 'type': 'int'}, - 'lines_covered': {'key': 'linesCovered', 'type': 'int'}, - 'lines_not_covered': {'key': 'linesNotCovered', 'type': 'int'}, - 'lines_partially_covered': {'key': 'linesPartiallyCovered', 'type': 'int'} - } - - def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=None, lines_not_covered=None, lines_partially_covered=None): - super(CoverageStatistics, self).__init__() - self.blocks_covered = blocks_covered - self.blocks_not_covered = blocks_not_covered - self.lines_covered = lines_covered - self.lines_not_covered = lines_not_covered - self.lines_partially_covered = lines_partially_covered diff --git a/vsts/vsts/test/v4_0/models/custom_test_field.py b/vsts/vsts/test/v4_0/models/custom_test_field.py deleted file mode 100644 index 80ba7cf1..00000000 --- a/vsts/vsts/test/v4_0/models/custom_test_field.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CustomTestField(Model): - """CustomTestField. - - :param field_name: - :type field_name: str - :param value: - :type value: object - """ - - _attribute_map = { - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, field_name=None, value=None): - super(CustomTestField, self).__init__() - self.field_name = field_name - self.value = value diff --git a/vsts/vsts/test/v4_0/models/custom_test_field_definition.py b/vsts/vsts/test/v4_0/models/custom_test_field_definition.py deleted file mode 100644 index bbb7e2a4..00000000 --- a/vsts/vsts/test/v4_0/models/custom_test_field_definition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CustomTestFieldDefinition(Model): - """CustomTestFieldDefinition. - - :param field_id: - :type field_id: int - :param field_name: - :type field_name: str - :param field_type: - :type field_type: object - :param scope: - :type scope: object - """ - - _attribute_map = { - 'field_id': {'key': 'fieldId', 'type': 'int'}, - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'field_type': {'key': 'fieldType', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'object'} - } - - def __init__(self, field_id=None, field_name=None, field_type=None, scope=None): - super(CustomTestFieldDefinition, self).__init__() - self.field_id = field_id - self.field_name = field_name - self.field_type = field_type - self.scope = scope diff --git a/vsts/vsts/test/v4_0/models/dtl_environment_details.py b/vsts/vsts/test/v4_0/models/dtl_environment_details.py deleted file mode 100644 index 25bebb48..00000000 --- a/vsts/vsts/test/v4_0/models/dtl_environment_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DtlEnvironmentDetails(Model): - """DtlEnvironmentDetails. - - :param csm_content: - :type csm_content: str - :param csm_parameters: - :type csm_parameters: str - :param subscription_name: - :type subscription_name: str - """ - - _attribute_map = { - 'csm_content': {'key': 'csmContent', 'type': 'str'}, - 'csm_parameters': {'key': 'csmParameters', 'type': 'str'}, - 'subscription_name': {'key': 'subscriptionName', 'type': 'str'} - } - - def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None): - super(DtlEnvironmentDetails, self).__init__() - self.csm_content = csm_content - self.csm_parameters = csm_parameters - self.subscription_name = subscription_name diff --git a/vsts/vsts/test/v4_0/models/failing_since.py b/vsts/vsts/test/v4_0/models/failing_since.py deleted file mode 100644 index 5c5a348f..00000000 --- a/vsts/vsts/test/v4_0/models/failing_since.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FailingSince(Model): - """FailingSince. - - :param build: - :type build: :class:`BuildReference ` - :param date: - :type date: datetime - :param release: - :type release: :class:`ReleaseReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'BuildReference'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'} - } - - def __init__(self, build=None, date=None, release=None): - super(FailingSince, self).__init__() - self.build = build - self.date = date - self.release = release diff --git a/vsts/vsts/test/v4_0/models/function_coverage.py b/vsts/vsts/test/v4_0/models/function_coverage.py deleted file mode 100644 index 6fcc8d0a..00000000 --- a/vsts/vsts/test/v4_0/models/function_coverage.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FunctionCoverage(Model): - """FunctionCoverage. - - :param class_: - :type class_: str - :param name: - :type name: str - :param namespace: - :type namespace: str - :param source_file: - :type source_file: str - :param statistics: - :type statistics: :class:`CoverageStatistics ` - """ - - _attribute_map = { - 'class_': {'key': 'class', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'source_file': {'key': 'sourceFile', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} - } - - def __init__(self, class_=None, name=None, namespace=None, source_file=None, statistics=None): - super(FunctionCoverage, self).__init__() - self.class_ = class_ - self.name = name - self.namespace = namespace - self.source_file = source_file - self.statistics = statistics diff --git a/vsts/vsts/test/v4_0/models/identity_ref.py b/vsts/vsts/test/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/test/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/test/v4_0/models/last_result_details.py b/vsts/vsts/test/v4_0/models/last_result_details.py deleted file mode 100644 index 688561f1..00000000 --- a/vsts/vsts/test/v4_0/models/last_result_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LastResultDetails(Model): - """LastResultDetails. - - :param date_completed: - :type date_completed: datetime - :param duration: - :type duration: long - :param run_by: - :type run_by: :class:`IdentityRef ` - """ - - _attribute_map = { - 'date_completed': {'key': 'dateCompleted', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'long'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'} - } - - def __init__(self, date_completed=None, duration=None, run_by=None): - super(LastResultDetails, self).__init__() - self.date_completed = date_completed - self.duration = duration - self.run_by = run_by diff --git a/vsts/vsts/test/v4_0/models/linked_work_items_query.py b/vsts/vsts/test/v4_0/models/linked_work_items_query.py deleted file mode 100644 index a9d0c50e..00000000 --- a/vsts/vsts/test/v4_0/models/linked_work_items_query.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LinkedWorkItemsQuery(Model): - """LinkedWorkItemsQuery. - - :param automated_test_names: - :type automated_test_names: list of str - :param plan_id: - :type plan_id: int - :param point_ids: - :type point_ids: list of int - :param suite_ids: - :type suite_ids: list of int - :param test_case_ids: - :type test_case_ids: list of int - :param work_item_category: - :type work_item_category: str - """ - - _attribute_map = { - 'automated_test_names': {'key': 'automatedTestNames', 'type': '[str]'}, - 'plan_id': {'key': 'planId', 'type': 'int'}, - 'point_ids': {'key': 'pointIds', 'type': '[int]'}, - 'suite_ids': {'key': 'suiteIds', 'type': '[int]'}, - 'test_case_ids': {'key': 'testCaseIds', 'type': '[int]'}, - 'work_item_category': {'key': 'workItemCategory', 'type': 'str'} - } - - def __init__(self, automated_test_names=None, plan_id=None, point_ids=None, suite_ids=None, test_case_ids=None, work_item_category=None): - super(LinkedWorkItemsQuery, self).__init__() - self.automated_test_names = automated_test_names - self.plan_id = plan_id - self.point_ids = point_ids - self.suite_ids = suite_ids - self.test_case_ids = test_case_ids - self.work_item_category = work_item_category diff --git a/vsts/vsts/test/v4_0/models/linked_work_items_query_result.py b/vsts/vsts/test/v4_0/models/linked_work_items_query_result.py deleted file mode 100644 index 77e64896..00000000 --- a/vsts/vsts/test/v4_0/models/linked_work_items_query_result.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LinkedWorkItemsQueryResult(Model): - """LinkedWorkItemsQueryResult. - - :param automated_test_name: - :type automated_test_name: str - :param plan_id: - :type plan_id: int - :param point_id: - :type point_id: int - :param suite_id: - :type suite_id: int - :param test_case_id: - :type test_case_id: int - :param work_items: - :type work_items: list of :class:`WorkItemReference ` - """ - - _attribute_map = { - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'int'}, - 'point_id': {'key': 'pointId', 'type': 'int'}, - 'suite_id': {'key': 'suiteId', 'type': 'int'}, - 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, - 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} - } - - def __init__(self, automated_test_name=None, plan_id=None, point_id=None, suite_id=None, test_case_id=None, work_items=None): - super(LinkedWorkItemsQueryResult, self).__init__() - self.automated_test_name = automated_test_name - self.plan_id = plan_id - self.point_id = point_id - self.suite_id = suite_id - self.test_case_id = test_case_id - self.work_items = work_items diff --git a/vsts/vsts/test/v4_0/models/module_coverage.py b/vsts/vsts/test/v4_0/models/module_coverage.py deleted file mode 100644 index ea11fd81..00000000 --- a/vsts/vsts/test/v4_0/models/module_coverage.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ModuleCoverage(Model): - """ModuleCoverage. - - :param block_count: - :type block_count: int - :param block_data: - :type block_data: str - :param functions: - :type functions: list of :class:`FunctionCoverage ` - :param name: - :type name: str - :param signature: - :type signature: str - :param signature_age: - :type signature_age: int - :param statistics: - :type statistics: :class:`CoverageStatistics ` - """ - - _attribute_map = { - 'block_count': {'key': 'blockCount', 'type': 'int'}, - 'block_data': {'key': 'blockData', 'type': 'str'}, - 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'signature': {'key': 'signature', 'type': 'str'}, - 'signature_age': {'key': 'signatureAge', 'type': 'int'}, - 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} - } - - def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): - super(ModuleCoverage, self).__init__() - self.block_count = block_count - self.block_data = block_data - self.functions = functions - self.name = name - self.signature = signature - self.signature_age = signature_age - self.statistics = statistics diff --git a/vsts/vsts/test/v4_0/models/name_value_pair.py b/vsts/vsts/test/v4_0/models/name_value_pair.py deleted file mode 100644 index 0c71209a..00000000 --- a/vsts/vsts/test/v4_0/models/name_value_pair.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NameValuePair(Model): - """NameValuePair. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(NameValuePair, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/test/v4_0/models/plan_update_model.py b/vsts/vsts/test/v4_0/models/plan_update_model.py deleted file mode 100644 index ce3f6232..00000000 --- a/vsts/vsts/test/v4_0/models/plan_update_model.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PlanUpdateModel(Model): - """PlanUpdateModel. - - :param area: - :type area: :class:`ShallowReference ` - :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` - :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` - :param configuration_ids: - :type configuration_ids: list of int - :param description: - :type description: str - :param end_date: - :type end_date: str - :param iteration: - :type iteration: str - :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` - :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param start_date: - :type start_date: str - :param state: - :type state: str - :param status: - :type status: str - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, - 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, - 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'end_date': {'key': 'endDate', 'type': 'str'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, - 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, - 'start_date': {'key': 'startDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'} - } - - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): - super(PlanUpdateModel, self).__init__() - self.area = area - self.automated_test_environment = automated_test_environment - self.automated_test_settings = automated_test_settings - self.build = build - self.build_definition = build_definition - self.configuration_ids = configuration_ids - self.description = description - self.end_date = end_date - self.iteration = iteration - self.manual_test_environment = manual_test_environment - self.manual_test_settings = manual_test_settings - self.name = name - self.owner = owner - self.release_environment_definition = release_environment_definition - self.start_date = start_date - self.state = state - self.status = status diff --git a/vsts/vsts/test/v4_0/models/point_assignment.py b/vsts/vsts/test/v4_0/models/point_assignment.py deleted file mode 100644 index ca5da1bd..00000000 --- a/vsts/vsts/test/v4_0/models/point_assignment.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PointAssignment(Model): - """PointAssignment. - - :param configuration: - :type configuration: :class:`ShallowReference ` - :param tester: - :type tester: :class:`IdentityRef ` - """ - - _attribute_map = { - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'tester': {'key': 'tester', 'type': 'IdentityRef'} - } - - def __init__(self, configuration=None, tester=None): - super(PointAssignment, self).__init__() - self.configuration = configuration - self.tester = tester diff --git a/vsts/vsts/test/v4_0/models/point_update_model.py b/vsts/vsts/test/v4_0/models/point_update_model.py deleted file mode 100644 index d2960aaf..00000000 --- a/vsts/vsts/test/v4_0/models/point_update_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PointUpdateModel(Model): - """PointUpdateModel. - - :param outcome: - :type outcome: str - :param reset_to_active: - :type reset_to_active: bool - :param tester: - :type tester: :class:`IdentityRef ` - """ - - _attribute_map = { - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'reset_to_active': {'key': 'resetToActive', 'type': 'bool'}, - 'tester': {'key': 'tester', 'type': 'IdentityRef'} - } - - def __init__(self, outcome=None, reset_to_active=None, tester=None): - super(PointUpdateModel, self).__init__() - self.outcome = outcome - self.reset_to_active = reset_to_active - self.tester = tester diff --git a/vsts/vsts/test/v4_0/models/points_filter.py b/vsts/vsts/test/v4_0/models/points_filter.py deleted file mode 100644 index 5e6d156e..00000000 --- a/vsts/vsts/test/v4_0/models/points_filter.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PointsFilter(Model): - """PointsFilter. - - :param configuration_names: - :type configuration_names: list of str - :param testcase_ids: - :type testcase_ids: list of int - :param testers: - :type testers: list of :class:`IdentityRef ` - """ - - _attribute_map = { - 'configuration_names': {'key': 'configurationNames', 'type': '[str]'}, - 'testcase_ids': {'key': 'testcaseIds', 'type': '[int]'}, - 'testers': {'key': 'testers', 'type': '[IdentityRef]'} - } - - def __init__(self, configuration_names=None, testcase_ids=None, testers=None): - super(PointsFilter, self).__init__() - self.configuration_names = configuration_names - self.testcase_ids = testcase_ids - self.testers = testers diff --git a/vsts/vsts/test/v4_0/models/property_bag.py b/vsts/vsts/test/v4_0/models/property_bag.py deleted file mode 100644 index 40505531..00000000 --- a/vsts/vsts/test/v4_0/models/property_bag.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PropertyBag(Model): - """PropertyBag. - - :param bag: Generic store for test session data - :type bag: dict - """ - - _attribute_map = { - 'bag': {'key': 'bag', 'type': '{str}'} - } - - def __init__(self, bag=None): - super(PropertyBag, self).__init__() - self.bag = bag diff --git a/vsts/vsts/test/v4_0/models/query_model.py b/vsts/vsts/test/v4_0/models/query_model.py deleted file mode 100644 index 31f521ca..00000000 --- a/vsts/vsts/test/v4_0/models/query_model.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueryModel(Model): - """QueryModel. - - :param query: - :type query: str - """ - - _attribute_map = { - 'query': {'key': 'query', 'type': 'str'} - } - - def __init__(self, query=None): - super(QueryModel, self).__init__() - self.query = query diff --git a/vsts/vsts/test/v4_0/models/release_environment_definition_reference.py b/vsts/vsts/test/v4_0/models/release_environment_definition_reference.py deleted file mode 100644 index 8cc15033..00000000 --- a/vsts/vsts/test/v4_0/models/release_environment_definition_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironmentDefinitionReference(Model): - """ReleaseEnvironmentDefinitionReference. - - :param definition_id: - :type definition_id: int - :param environment_definition_id: - :type environment_definition_id: int - """ - - _attribute_map = { - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'} - } - - def __init__(self, definition_id=None, environment_definition_id=None): - super(ReleaseEnvironmentDefinitionReference, self).__init__() - self.definition_id = definition_id - self.environment_definition_id = environment_definition_id diff --git a/vsts/vsts/test/v4_0/models/release_reference.py b/vsts/vsts/test/v4_0/models/release_reference.py deleted file mode 100644 index 370c7131..00000000 --- a/vsts/vsts/test/v4_0/models/release_reference.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseReference(Model): - """ReleaseReference. - - :param definition_id: - :type definition_id: int - :param environment_definition_id: - :type environment_definition_id: int - :param environment_definition_name: - :type environment_definition_name: str - :param environment_id: - :type environment_id: int - :param environment_name: - :type environment_name: str - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, - 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, - 'environment_id': {'key': 'environmentId', 'type': 'int'}, - 'environment_name': {'key': 'environmentName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): - super(ReleaseReference, self).__init__() - self.definition_id = definition_id - self.environment_definition_id = environment_definition_id - self.environment_definition_name = environment_definition_name - self.environment_id = environment_id - self.environment_name = environment_name - self.id = id - self.name = name diff --git a/vsts/vsts/test/v4_0/models/result_retention_settings.py b/vsts/vsts/test/v4_0/models/result_retention_settings.py deleted file mode 100644 index 3ab844d0..00000000 --- a/vsts/vsts/test/v4_0/models/result_retention_settings.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResultRetentionSettings(Model): - """ResultRetentionSettings. - - :param automated_results_retention_duration: - :type automated_results_retention_duration: int - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param manual_results_retention_duration: - :type manual_results_retention_duration: int - """ - - _attribute_map = { - 'automated_results_retention_duration': {'key': 'automatedResultsRetentionDuration', 'type': 'int'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'manual_results_retention_duration': {'key': 'manualResultsRetentionDuration', 'type': 'int'} - } - - def __init__(self, automated_results_retention_duration=None, last_updated_by=None, last_updated_date=None, manual_results_retention_duration=None): - super(ResultRetentionSettings, self).__init__() - self.automated_results_retention_duration = automated_results_retention_duration - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.manual_results_retention_duration = manual_results_retention_duration diff --git a/vsts/vsts/test/v4_0/models/results_filter.py b/vsts/vsts/test/v4_0/models/results_filter.py deleted file mode 100644 index 66d0fccc..00000000 --- a/vsts/vsts/test/v4_0/models/results_filter.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResultsFilter(Model): - """ResultsFilter. - - :param automated_test_name: - :type automated_test_name: str - :param branch: - :type branch: str - :param group_by: - :type group_by: str - :param max_complete_date: - :type max_complete_date: datetime - :param results_count: - :type results_count: int - :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` - :param trend_days: - :type trend_days: int - """ - - _attribute_map = { - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'branch': {'key': 'branch', 'type': 'str'}, - 'group_by': {'key': 'groupBy', 'type': 'str'}, - 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, - 'results_count': {'key': 'resultsCount', 'type': 'int'}, - 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, - 'trend_days': {'key': 'trendDays', 'type': 'int'} - } - - def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_results_context=None, trend_days=None): - super(ResultsFilter, self).__init__() - self.automated_test_name = automated_test_name - self.branch = branch - self.group_by = group_by - self.max_complete_date = max_complete_date - self.results_count = results_count - self.test_results_context = test_results_context - self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_0/models/run_create_model.py b/vsts/vsts/test/v4_0/models/run_create_model.py deleted file mode 100644 index 75621ba7..00000000 --- a/vsts/vsts/test/v4_0/models/run_create_model.py +++ /dev/null @@ -1,145 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunCreateModel(Model): - """RunCreateModel. - - :param automated: - :type automated: bool - :param build: - :type build: :class:`ShallowReference ` - :param build_drop_location: - :type build_drop_location: str - :param build_flavor: - :type build_flavor: str - :param build_platform: - :type build_platform: str - :param comment: - :type comment: str - :param complete_date: - :type complete_date: str - :param configuration_ids: - :type configuration_ids: list of int - :param controller: - :type controller: str - :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_test_environment: - :type dtl_test_environment: :class:`ShallowReference ` - :param due_date: - :type due_date: str - :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` - :param error_message: - :type error_message: str - :param filter: - :type filter: :class:`RunFilter ` - :param iteration: - :type iteration: str - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param plan: - :type plan: :class:`ShallowReference ` - :param point_ids: - :type point_ids: list of int - :param release_environment_uri: - :type release_environment_uri: str - :param release_uri: - :type release_uri: str - :param run_timeout: - :type run_timeout: object - :param source_workflow: - :type source_workflow: str - :param start_date: - :type start_date: str - :param state: - :type state: str - :param test_configurations_mapping: - :type test_configurations_mapping: str - :param test_environment_id: - :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` - :param type: - :type type: str - """ - - _attribute_map = { - 'automated': {'key': 'automated', 'type': 'bool'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, - 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, - 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'complete_date': {'key': 'completeDate', 'type': 'str'}, - 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, - 'controller': {'key': 'controller', 'type': 'str'}, - 'custom_test_fields': {'key': 'customTestFields', 'type': '[CustomTestField]'}, - 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, - 'dtl_test_environment': {'key': 'dtlTestEnvironment', 'type': 'ShallowReference'}, - 'due_date': {'key': 'dueDate', 'type': 'str'}, - 'environment_details': {'key': 'environmentDetails', 'type': 'DtlEnvironmentDetails'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'RunFilter'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'plan': {'key': 'plan', 'type': 'ShallowReference'}, - 'point_ids': {'key': 'pointIds', 'type': '[int]'}, - 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, - 'release_uri': {'key': 'releaseUri', 'type': 'str'}, - 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, - 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, - 'start_date': {'key': 'startDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_configurations_mapping': {'key': 'testConfigurationsMapping', 'type': 'str'}, - 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, - 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): - super(RunCreateModel, self).__init__() - self.automated = automated - self.build = build - self.build_drop_location = build_drop_location - self.build_flavor = build_flavor - self.build_platform = build_platform - self.comment = comment - self.complete_date = complete_date - self.configuration_ids = configuration_ids - self.controller = controller - self.custom_test_fields = custom_test_fields - self.dtl_aut_environment = dtl_aut_environment - self.dtl_test_environment = dtl_test_environment - self.due_date = due_date - self.environment_details = environment_details - self.error_message = error_message - self.filter = filter - self.iteration = iteration - self.name = name - self.owner = owner - self.plan = plan - self.point_ids = point_ids - self.release_environment_uri = release_environment_uri - self.release_uri = release_uri - self.run_timeout = run_timeout - self.source_workflow = source_workflow - self.start_date = start_date - self.state = state - self.test_configurations_mapping = test_configurations_mapping - self.test_environment_id = test_environment_id - self.test_settings = test_settings - self.type = type diff --git a/vsts/vsts/test/v4_0/models/run_filter.py b/vsts/vsts/test/v4_0/models/run_filter.py deleted file mode 100644 index 55ba8921..00000000 --- a/vsts/vsts/test/v4_0/models/run_filter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunFilter(Model): - """RunFilter. - - :param source_filter: filter for the test case sources (test containers) - :type source_filter: str - :param test_case_filter: filter for the test cases - :type test_case_filter: str - """ - - _attribute_map = { - 'source_filter': {'key': 'sourceFilter', 'type': 'str'}, - 'test_case_filter': {'key': 'testCaseFilter', 'type': 'str'} - } - - def __init__(self, source_filter=None, test_case_filter=None): - super(RunFilter, self).__init__() - self.source_filter = source_filter - self.test_case_filter = test_case_filter diff --git a/vsts/vsts/test/v4_0/models/run_statistic.py b/vsts/vsts/test/v4_0/models/run_statistic.py deleted file mode 100644 index 358d5699..00000000 --- a/vsts/vsts/test/v4_0/models/run_statistic.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunStatistic(Model): - """RunStatistic. - - :param count: - :type count: int - :param outcome: - :type outcome: str - :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` - :param state: - :type state: str - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'TestResolutionState'}, - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, count=None, outcome=None, resolution_state=None, state=None): - super(RunStatistic, self).__init__() - self.count = count - self.outcome = outcome - self.resolution_state = resolution_state - self.state = state diff --git a/vsts/vsts/test/v4_0/models/run_update_model.py b/vsts/vsts/test/v4_0/models/run_update_model.py deleted file mode 100644 index 655d1966..00000000 --- a/vsts/vsts/test/v4_0/models/run_update_model.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunUpdateModel(Model): - """RunUpdateModel. - - :param build: - :type build: :class:`ShallowReference ` - :param build_drop_location: - :type build_drop_location: str - :param build_flavor: - :type build_flavor: str - :param build_platform: - :type build_platform: str - :param comment: - :type comment: str - :param completed_date: - :type completed_date: str - :param controller: - :type controller: str - :param delete_in_progress_results: - :type delete_in_progress_results: bool - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` - :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` - :param due_date: - :type due_date: str - :param error_message: - :type error_message: str - :param iteration: - :type iteration: str - :param log_entries: - :type log_entries: list of :class:`TestMessageLogDetails ` - :param name: - :type name: str - :param release_environment_uri: - :type release_environment_uri: str - :param release_uri: - :type release_uri: str - :param source_workflow: - :type source_workflow: str - :param started_date: - :type started_date: str - :param state: - :type state: str - :param substate: - :type substate: object - :param test_environment_id: - :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, - 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, - 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'str'}, - 'controller': {'key': 'controller', 'type': 'str'}, - 'delete_in_progress_results': {'key': 'deleteInProgressResults', 'type': 'bool'}, - 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment_details': {'key': 'dtlEnvironmentDetails', 'type': 'DtlEnvironmentDetails'}, - 'due_date': {'key': 'dueDate', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'log_entries': {'key': 'logEntries', 'type': '[TestMessageLogDetails]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, - 'release_uri': {'key': 'releaseUri', 'type': 'str'}, - 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'substate': {'key': 'substate', 'type': 'object'}, - 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, - 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'} - } - - def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): - super(RunUpdateModel, self).__init__() - self.build = build - self.build_drop_location = build_drop_location - self.build_flavor = build_flavor - self.build_platform = build_platform - self.comment = comment - self.completed_date = completed_date - self.controller = controller - self.delete_in_progress_results = delete_in_progress_results - self.dtl_aut_environment = dtl_aut_environment - self.dtl_environment = dtl_environment - self.dtl_environment_details = dtl_environment_details - self.due_date = due_date - self.error_message = error_message - self.iteration = iteration - self.log_entries = log_entries - self.name = name - self.release_environment_uri = release_environment_uri - self.release_uri = release_uri - self.source_workflow = source_workflow - self.started_date = started_date - self.state = state - self.substate = substate - self.test_environment_id = test_environment_id - self.test_settings = test_settings diff --git a/vsts/vsts/test/v4_0/models/shallow_reference.py b/vsts/vsts/test/v4_0/models/shallow_reference.py deleted file mode 100644 index d4cffc81..00000000 --- a/vsts/vsts/test/v4_0/models/shallow_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ShallowReference(Model): - """ShallowReference. - - :param id: Id of the resource - :type id: str - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(ShallowReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/test/v4_0/models/shared_step_model.py b/vsts/vsts/test/v4_0/models/shared_step_model.py deleted file mode 100644 index 07333033..00000000 --- a/vsts/vsts/test/v4_0/models/shared_step_model.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SharedStepModel(Model): - """SharedStepModel. - - :param id: - :type id: int - :param revision: - :type revision: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, id=None, revision=None): - super(SharedStepModel, self).__init__() - self.id = id - self.revision = revision diff --git a/vsts/vsts/test/v4_0/models/suite_create_model.py b/vsts/vsts/test/v4_0/models/suite_create_model.py deleted file mode 100644 index cbcd78dd..00000000 --- a/vsts/vsts/test/v4_0/models/suite_create_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteCreateModel(Model): - """SuiteCreateModel. - - :param name: - :type name: str - :param query_string: - :type query_string: str - :param requirement_ids: - :type requirement_ids: list of int - :param suite_type: - :type suite_type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'query_string': {'key': 'queryString', 'type': 'str'}, - 'requirement_ids': {'key': 'requirementIds', 'type': '[int]'}, - 'suite_type': {'key': 'suiteType', 'type': 'str'} - } - - def __init__(self, name=None, query_string=None, requirement_ids=None, suite_type=None): - super(SuiteCreateModel, self).__init__() - self.name = name - self.query_string = query_string - self.requirement_ids = requirement_ids - self.suite_type = suite_type diff --git a/vsts/vsts/test/v4_0/models/suite_entry.py b/vsts/vsts/test/v4_0/models/suite_entry.py deleted file mode 100644 index 2f6dade3..00000000 --- a/vsts/vsts/test/v4_0/models/suite_entry.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteEntry(Model): - """SuiteEntry. - - :param child_suite_id: Id of child suite in a suite - :type child_suite_id: int - :param sequence_number: Sequence number for the test case or child suite in the suite - :type sequence_number: int - :param suite_id: Id for the suite - :type suite_id: int - :param test_case_id: Id of a test case in a suite - :type test_case_id: int - """ - - _attribute_map = { - 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, - 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, - 'suite_id': {'key': 'suiteId', 'type': 'int'}, - 'test_case_id': {'key': 'testCaseId', 'type': 'int'} - } - - def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, test_case_id=None): - super(SuiteEntry, self).__init__() - self.child_suite_id = child_suite_id - self.sequence_number = sequence_number - self.suite_id = suite_id - self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_0/models/suite_entry_update_model.py b/vsts/vsts/test/v4_0/models/suite_entry_update_model.py deleted file mode 100644 index afcb6f04..00000000 --- a/vsts/vsts/test/v4_0/models/suite_entry_update_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteEntryUpdateModel(Model): - """SuiteEntryUpdateModel. - - :param child_suite_id: Id of child suite in a suite - :type child_suite_id: int - :param sequence_number: Updated sequence number for the test case or child suite in the suite - :type sequence_number: int - :param test_case_id: Id of a test case in a suite - :type test_case_id: int - """ - - _attribute_map = { - 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, - 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, - 'test_case_id': {'key': 'testCaseId', 'type': 'int'} - } - - def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None): - super(SuiteEntryUpdateModel, self).__init__() - self.child_suite_id = child_suite_id - self.sequence_number = sequence_number - self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_0/models/suite_test_case.py b/vsts/vsts/test/v4_0/models/suite_test_case.py deleted file mode 100644 index a4cf3f09..00000000 --- a/vsts/vsts/test/v4_0/models/suite_test_case.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteTestCase(Model): - """SuiteTestCase. - - :param point_assignments: - :type point_assignments: list of :class:`PointAssignment ` - :param test_case: - :type test_case: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'point_assignments': {'key': 'pointAssignments', 'type': '[PointAssignment]'}, - 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'} - } - - def __init__(self, point_assignments=None, test_case=None): - super(SuiteTestCase, self).__init__() - self.point_assignments = point_assignments - self.test_case = test_case diff --git a/vsts/vsts/test/v4_0/models/team_context.py b/vsts/vsts/test/v4_0/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/test/v4_0/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/test/v4_0/models/team_project_reference.py b/vsts/vsts/test/v4_0/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/test/v4_0/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/test/v4_0/models/test_action_result_model.py b/vsts/vsts/test/v4_0/models/test_action_result_model.py deleted file mode 100644 index 43807c93..00000000 --- a/vsts/vsts/test/v4_0/models/test_action_result_model.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .test_result_model_base import TestResultModelBase - - -class TestActionResultModel(TestResultModelBase): - """TestActionResultModel. - - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param outcome: - :type outcome: str - :param started_date: - :type started_date: datetime - :param action_path: - :type action_path: str - :param iteration_id: - :type iteration_id: int - :param shared_step_model: - :type shared_step_model: :class:`SharedStepModel ` - :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" - :type step_identifier: str - :param url: - :type url: str - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'action_path': {'key': 'actionPath', 'type': 'str'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'}, - 'shared_step_model': {'key': 'sharedStepModel', 'type': 'SharedStepModel'}, - 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None, action_path=None, iteration_id=None, shared_step_model=None, step_identifier=None, url=None): - super(TestActionResultModel, self).__init__(comment=comment, completed_date=completed_date, duration_in_ms=duration_in_ms, error_message=error_message, outcome=outcome, started_date=started_date) - self.action_path = action_path - self.iteration_id = iteration_id - self.shared_step_model = shared_step_model - self.step_identifier = step_identifier - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_attachment.py b/vsts/vsts/test/v4_0/models/test_attachment.py deleted file mode 100644 index fa2cc043..00000000 --- a/vsts/vsts/test/v4_0/models/test_attachment.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestAttachment(Model): - """TestAttachment. - - :param attachment_type: - :type attachment_type: object - :param comment: - :type comment: str - :param created_date: - :type created_date: datetime - :param file_name: - :type file_name: str - :param id: - :type id: int - :param url: - :type url: str - """ - - _attribute_map = { - 'attachment_type': {'key': 'attachmentType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, url=None): - super(TestAttachment, self).__init__() - self.attachment_type = attachment_type - self.comment = comment - self.created_date = created_date - self.file_name = file_name - self.id = id - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_attachment_reference.py b/vsts/vsts/test/v4_0/models/test_attachment_reference.py deleted file mode 100644 index c5fbe1c7..00000000 --- a/vsts/vsts/test/v4_0/models/test_attachment_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestAttachmentReference(Model): - """TestAttachmentReference. - - :param id: - :type id: int - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(TestAttachmentReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_attachment_request_model.py b/vsts/vsts/test/v4_0/models/test_attachment_request_model.py deleted file mode 100644 index bfe9d645..00000000 --- a/vsts/vsts/test/v4_0/models/test_attachment_request_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestAttachmentRequestModel(Model): - """TestAttachmentRequestModel. - - :param attachment_type: - :type attachment_type: str - :param comment: - :type comment: str - :param file_name: - :type file_name: str - :param stream: - :type stream: str - """ - - _attribute_map = { - 'attachment_type': {'key': 'attachmentType', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'stream': {'key': 'stream', 'type': 'str'} - } - - def __init__(self, attachment_type=None, comment=None, file_name=None, stream=None): - super(TestAttachmentRequestModel, self).__init__() - self.attachment_type = attachment_type - self.comment = comment - self.file_name = file_name - self.stream = stream diff --git a/vsts/vsts/test/v4_0/models/test_case_result.py b/vsts/vsts/test/v4_0/models/test_case_result.py deleted file mode 100644 index 93c5dcec..00000000 --- a/vsts/vsts/test/v4_0/models/test_case_result.py +++ /dev/null @@ -1,205 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResult(Model): - """TestCaseResult. - - :param afn_strip_id: - :type afn_strip_id: int - :param area: - :type area: :class:`ShallowReference ` - :param associated_bugs: - :type associated_bugs: list of :class:`ShallowReference ` - :param automated_test_id: - :type automated_test_id: str - :param automated_test_name: - :type automated_test_name: str - :param automated_test_storage: - :type automated_test_storage: str - :param automated_test_type: - :type automated_test_type: str - :param automated_test_type_id: - :type automated_test_type_id: str - :param build: - :type build: :class:`ShallowReference ` - :param build_reference: - :type build_reference: :class:`BuildReference ` - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param computer_name: - :type computer_name: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param created_date: - :type created_date: datetime - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param failing_since: - :type failing_since: :class:`FailingSince ` - :param failure_type: - :type failure_type: str - :param id: - :type id: int - :param iteration_details: - :type iteration_details: list of :class:`TestIterationDetailsModel ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param outcome: - :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param priority: - :type priority: int - :param project: - :type project: :class:`ShallowReference ` - :param release: - :type release: :class:`ShallowReference ` - :param release_reference: - :type release_reference: :class:`ReleaseReference ` - :param reset_count: - :type reset_count: int - :param resolution_state: - :type resolution_state: str - :param resolution_state_id: - :type resolution_state_id: int - :param revision: - :type revision: int - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: - :type stack_trace: str - :param started_date: - :type started_date: datetime - :param state: - :type state: str - :param test_case: - :type test_case: :class:`ShallowReference ` - :param test_case_reference_id: - :type test_case_reference_id: int - :param test_case_title: - :type test_case_title: str - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param test_point: - :type test_point: :class:`ShallowReference ` - :param test_run: - :type test_run: :class:`ShallowReference ` - :param test_suite: - :type test_suite: :class:`ShallowReference ` - :param url: - :type url: str - """ - - _attribute_map = { - 'afn_strip_id': {'key': 'afnStripId', 'type': 'int'}, - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'associated_bugs': {'key': 'associatedBugs', 'type': '[ShallowReference]'}, - 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, - 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, - 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_reference': {'key': 'buildReference', 'type': 'BuildReference'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'iteration_details': {'key': 'iterationDetails', 'type': '[TestIterationDetailsModel]'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'release': {'key': 'release', 'type': 'ShallowReference'}, - 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, - 'reset_count': {'key': 'resetCount', 'type': 'int'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, - 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, - 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, - 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, - 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, - 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, - 'test_run': {'key': 'testRun', 'type': 'ShallowReference'}, - 'test_suite': {'key': 'testSuite', 'type': 'ShallowReference'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): - super(TestCaseResult, self).__init__() - self.afn_strip_id = afn_strip_id - self.area = area - self.associated_bugs = associated_bugs - self.automated_test_id = automated_test_id - self.automated_test_name = automated_test_name - self.automated_test_storage = automated_test_storage - self.automated_test_type = automated_test_type - self.automated_test_type_id = automated_test_type_id - self.build = build - self.build_reference = build_reference - self.comment = comment - self.completed_date = completed_date - self.computer_name = computer_name - self.configuration = configuration - self.created_date = created_date - self.custom_fields = custom_fields - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.failing_since = failing_since - self.failure_type = failure_type - self.id = id - self.iteration_details = iteration_details - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.outcome = outcome - self.owner = owner - self.priority = priority - self.project = project - self.release = release - self.release_reference = release_reference - self.reset_count = reset_count - self.resolution_state = resolution_state - self.resolution_state_id = resolution_state_id - self.revision = revision - self.run_by = run_by - self.stack_trace = stack_trace - self.started_date = started_date - self.state = state - self.test_case = test_case - self.test_case_reference_id = test_case_reference_id - self.test_case_title = test_case_title - self.test_plan = test_plan - self.test_point = test_point - self.test_run = test_run - self.test_suite = test_suite - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py b/vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py deleted file mode 100644 index 7a7412e9..00000000 --- a/vsts/vsts/test/v4_0/models/test_case_result_attachment_model.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResultAttachmentModel(Model): - """TestCaseResultAttachmentModel. - - :param id: - :type id: int - :param iteration_id: - :type iteration_id: int - :param name: - :type name: str - :param size: - :type size: long - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): - super(TestCaseResultAttachmentModel, self).__init__() - self.id = id - self.iteration_id = iteration_id - self.name = name - self.size = size - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_case_result_identifier.py b/vsts/vsts/test/v4_0/models/test_case_result_identifier.py deleted file mode 100644 index b88a489d..00000000 --- a/vsts/vsts/test/v4_0/models/test_case_result_identifier.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResultIdentifier(Model): - """TestCaseResultIdentifier. - - :param test_result_id: - :type test_result_id: int - :param test_run_id: - :type test_run_id: int - """ - - _attribute_map = { - 'test_result_id': {'key': 'testResultId', 'type': 'int'}, - 'test_run_id': {'key': 'testRunId', 'type': 'int'} - } - - def __init__(self, test_result_id=None, test_run_id=None): - super(TestCaseResultIdentifier, self).__init__() - self.test_result_id = test_result_id - self.test_run_id = test_run_id diff --git a/vsts/vsts/test/v4_0/models/test_case_result_update_model.py b/vsts/vsts/test/v4_0/models/test_case_result_update_model.py deleted file mode 100644 index df2fc186..00000000 --- a/vsts/vsts/test/v4_0/models/test_case_result_update_model.py +++ /dev/null @@ -1,93 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResultUpdateModel(Model): - """TestCaseResultUpdateModel. - - :param associated_work_items: - :type associated_work_items: list of int - :param automated_test_type_id: - :type automated_test_type_id: str - :param comment: - :type comment: str - :param completed_date: - :type completed_date: str - :param computer_name: - :type computer_name: str - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: - :type duration_in_ms: str - :param error_message: - :type error_message: str - :param failure_type: - :type failure_type: str - :param outcome: - :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param resolution_state: - :type resolution_state: str - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: - :type stack_trace: str - :param started_date: - :type started_date: str - :param state: - :type state: str - :param test_case_priority: - :type test_case_priority: str - :param test_result: - :type test_result: :class:`ShallowReference ` - """ - - _attribute_map = { - 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, - 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, - 'test_result': {'key': 'testResult', 'type': 'ShallowReference'} - } - - def __init__(self, associated_work_items=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case_priority=None, test_result=None): - super(TestCaseResultUpdateModel, self).__init__() - self.associated_work_items = associated_work_items - self.automated_test_type_id = automated_test_type_id - self.comment = comment - self.completed_date = completed_date - self.computer_name = computer_name - self.custom_fields = custom_fields - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.failure_type = failure_type - self.outcome = outcome - self.owner = owner - self.resolution_state = resolution_state - self.run_by = run_by - self.stack_trace = stack_trace - self.started_date = started_date - self.state = state - self.test_case_priority = test_case_priority - self.test_result = test_result diff --git a/vsts/vsts/test/v4_0/models/test_configuration.py b/vsts/vsts/test/v4_0/models/test_configuration.py deleted file mode 100644 index b2b5aba6..00000000 --- a/vsts/vsts/test/v4_0/models/test_configuration.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestConfiguration(Model): - """TestConfiguration. - - :param area: Area of the configuration - :type area: :class:`ShallowReference ` - :param description: Description of the configuration - :type description: str - :param id: Id of the configuration - :type id: int - :param is_default: Is the configuration a default for the test plans - :type is_default: bool - :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: Last Updated Data - :type last_updated_date: datetime - :param name: Name of the configuration - :type name: str - :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` - :param revision: Revision of the the configuration - :type revision: int - :param state: State of the configuration - :type state: object - :param url: Url of Configuration Resource - :type url: str - :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[NameValuePair]'} - } - - def __init__(self, area=None, description=None, id=None, is_default=None, last_updated_by=None, last_updated_date=None, name=None, project=None, revision=None, state=None, url=None, values=None): - super(TestConfiguration, self).__init__() - self.area = area - self.description = description - self.id = id - self.is_default = is_default - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.name = name - self.project = project - self.revision = revision - self.state = state - self.url = url - self.values = values diff --git a/vsts/vsts/test/v4_0/models/test_environment.py b/vsts/vsts/test/v4_0/models/test_environment.py deleted file mode 100644 index f8876fd0..00000000 --- a/vsts/vsts/test/v4_0/models/test_environment.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestEnvironment(Model): - """TestEnvironment. - - :param environment_id: - :type environment_id: str - :param environment_name: - :type environment_name: str - """ - - _attribute_map = { - 'environment_id': {'key': 'environmentId', 'type': 'str'}, - 'environment_name': {'key': 'environmentName', 'type': 'str'} - } - - def __init__(self, environment_id=None, environment_name=None): - super(TestEnvironment, self).__init__() - self.environment_id = environment_id - self.environment_name = environment_name diff --git a/vsts/vsts/test/v4_0/models/test_failure_details.py b/vsts/vsts/test/v4_0/models/test_failure_details.py deleted file mode 100644 index 1f2fef0f..00000000 --- a/vsts/vsts/test/v4_0/models/test_failure_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestFailureDetails(Model): - """TestFailureDetails. - - :param count: - :type count: int - :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'test_results': {'key': 'testResults', 'type': '[TestCaseResultIdentifier]'} - } - - def __init__(self, count=None, test_results=None): - super(TestFailureDetails, self).__init__() - self.count = count - self.test_results = test_results diff --git a/vsts/vsts/test/v4_0/models/test_failures_analysis.py b/vsts/vsts/test/v4_0/models/test_failures_analysis.py deleted file mode 100644 index 7ac08ac6..00000000 --- a/vsts/vsts/test/v4_0/models/test_failures_analysis.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestFailuresAnalysis(Model): - """TestFailuresAnalysis. - - :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` - :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` - :param new_failures: - :type new_failures: :class:`TestFailureDetails ` - :param previous_context: - :type previous_context: :class:`TestResultsContext ` - """ - - _attribute_map = { - 'existing_failures': {'key': 'existingFailures', 'type': 'TestFailureDetails'}, - 'fixed_tests': {'key': 'fixedTests', 'type': 'TestFailureDetails'}, - 'new_failures': {'key': 'newFailures', 'type': 'TestFailureDetails'}, - 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'} - } - - def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, previous_context=None): - super(TestFailuresAnalysis, self).__init__() - self.existing_failures = existing_failures - self.fixed_tests = fixed_tests - self.new_failures = new_failures - self.previous_context = previous_context diff --git a/vsts/vsts/test/v4_0/models/test_iteration_details_model.py b/vsts/vsts/test/v4_0/models/test_iteration_details_model.py deleted file mode 100644 index 3c7da148..00000000 --- a/vsts/vsts/test/v4_0/models/test_iteration_details_model.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestIterationDetailsModel(Model): - """TestIterationDetailsModel. - - :param action_results: - :type action_results: list of :class:`TestActionResultModel ` - :param attachments: - :type attachments: list of :class:`TestCaseResultAttachmentModel ` - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param id: - :type id: int - :param outcome: - :type outcome: str - :param parameters: - :type parameters: list of :class:`TestResultParameterModel ` - :param started_date: - :type started_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - 'action_results': {'key': 'actionResults', 'type': '[TestActionResultModel]'}, - 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[TestResultParameterModel]'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, action_results=None, attachments=None, comment=None, completed_date=None, duration_in_ms=None, error_message=None, id=None, outcome=None, parameters=None, started_date=None, url=None): - super(TestIterationDetailsModel, self).__init__() - self.action_results = action_results - self.attachments = attachments - self.comment = comment - self.completed_date = completed_date - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.id = id - self.outcome = outcome - self.parameters = parameters - self.started_date = started_date - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_message_log_details.py b/vsts/vsts/test/v4_0/models/test_message_log_details.py deleted file mode 100644 index 75553733..00000000 --- a/vsts/vsts/test/v4_0/models/test_message_log_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestMessageLogDetails(Model): - """TestMessageLogDetails. - - :param date_created: Date when the resource is created - :type date_created: datetime - :param entry_id: Id of the resource - :type entry_id: int - :param message: Message of the resource - :type message: str - """ - - _attribute_map = { - 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, - 'entry_id': {'key': 'entryId', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, date_created=None, entry_id=None, message=None): - super(TestMessageLogDetails, self).__init__() - self.date_created = date_created - self.entry_id = entry_id - self.message = message diff --git a/vsts/vsts/test/v4_0/models/test_method.py b/vsts/vsts/test/v4_0/models/test_method.py deleted file mode 100644 index ee92559b..00000000 --- a/vsts/vsts/test/v4_0/models/test_method.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestMethod(Model): - """TestMethod. - - :param container: - :type container: str - :param name: - :type name: str - """ - - _attribute_map = { - 'container': {'key': 'container', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, container=None, name=None): - super(TestMethod, self).__init__() - self.container = container - self.name = name diff --git a/vsts/vsts/test/v4_0/models/test_operation_reference.py b/vsts/vsts/test/v4_0/models/test_operation_reference.py deleted file mode 100644 index 47e57808..00000000 --- a/vsts/vsts/test/v4_0/models/test_operation_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestOperationReference(Model): - """TestOperationReference. - - :param id: - :type id: str - :param status: - :type status: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, status=None, url=None): - super(TestOperationReference, self).__init__() - self.id = id - self.status = status - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_plan.py b/vsts/vsts/test/v4_0/models/test_plan.py deleted file mode 100644 index 718f0e44..00000000 --- a/vsts/vsts/test/v4_0/models/test_plan.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPlan(Model): - """TestPlan. - - :param area: - :type area: :class:`ShallowReference ` - :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` - :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` - :param client_url: - :type client_url: str - :param description: - :type description: str - :param end_date: - :type end_date: datetime - :param id: - :type id: int - :param iteration: - :type iteration: str - :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` - :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param previous_build: - :type previous_build: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param revision: - :type revision: int - :param root_suite: - :type root_suite: :class:`ShallowReference ` - :param start_date: - :type start_date: datetime - :param state: - :type state: str - :param updated_by: - :type updated_by: :class:`IdentityRef ` - :param updated_date: - :type updated_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, - 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, - 'client_url': {'key': 'clientUrl', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, - 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'previous_build': {'key': 'previousBuild', 'type': 'ShallowReference'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): - super(TestPlan, self).__init__() - self.area = area - self.automated_test_environment = automated_test_environment - self.automated_test_settings = automated_test_settings - self.build = build - self.build_definition = build_definition - self.client_url = client_url - self.description = description - self.end_date = end_date - self.id = id - self.iteration = iteration - self.manual_test_environment = manual_test_environment - self.manual_test_settings = manual_test_settings - self.name = name - self.owner = owner - self.previous_build = previous_build - self.project = project - self.release_environment_definition = release_environment_definition - self.revision = revision - self.root_suite = root_suite - self.start_date = start_date - self.state = state - self.updated_by = updated_by - self.updated_date = updated_date - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_plan_clone_request.py b/vsts/vsts/test/v4_0/models/test_plan_clone_request.py deleted file mode 100644 index 549c2b89..00000000 --- a/vsts/vsts/test/v4_0/models/test_plan_clone_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPlanCloneRequest(Model): - """TestPlanCloneRequest. - - :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` - :param options: - :type options: :class:`CloneOptions ` - :param suite_ids: - :type suite_ids: list of int - """ - - _attribute_map = { - 'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'TestPlan'}, - 'options': {'key': 'options', 'type': 'CloneOptions'}, - 'suite_ids': {'key': 'suiteIds', 'type': '[int]'} - } - - def __init__(self, destination_test_plan=None, options=None, suite_ids=None): - super(TestPlanCloneRequest, self).__init__() - self.destination_test_plan = destination_test_plan - self.options = options - self.suite_ids = suite_ids diff --git a/vsts/vsts/test/v4_0/models/test_point.py b/vsts/vsts/test/v4_0/models/test_point.py deleted file mode 100644 index efb3c5d9..00000000 --- a/vsts/vsts/test/v4_0/models/test_point.py +++ /dev/null @@ -1,109 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPoint(Model): - """TestPoint. - - :param assigned_to: - :type assigned_to: :class:`IdentityRef ` - :param automated: - :type automated: bool - :param comment: - :type comment: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param failure_type: - :type failure_type: str - :param id: - :type id: int - :param last_resolution_state_id: - :type last_resolution_state_id: int - :param last_result: - :type last_result: :class:`ShallowReference ` - :param last_result_details: - :type last_result_details: :class:`LastResultDetails ` - :param last_result_state: - :type last_result_state: str - :param last_run_build_number: - :type last_run_build_number: str - :param last_test_run: - :type last_test_run: :class:`ShallowReference ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param outcome: - :type outcome: str - :param revision: - :type revision: int - :param state: - :type state: str - :param suite: - :type suite: :class:`ShallowReference ` - :param test_case: - :type test_case: :class:`WorkItemReference ` - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param url: - :type url: str - :param work_item_properties: - :type work_item_properties: list of object - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'}, - 'automated': {'key': 'automated', 'type': 'bool'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, - 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, - 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, - 'last_result_state': {'key': 'lastResultState', 'type': 'str'}, - 'last_run_build_number': {'key': 'lastRunBuildNumber', 'type': 'str'}, - 'last_test_run': {'key': 'lastTestRun', 'type': 'ShallowReference'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'suite': {'key': 'suite', 'type': 'ShallowReference'}, - 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'}, - 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} - } - - def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): - super(TestPoint, self).__init__() - self.assigned_to = assigned_to - self.automated = automated - self.comment = comment - self.configuration = configuration - self.failure_type = failure_type - self.id = id - self.last_resolution_state_id = last_resolution_state_id - self.last_result = last_result - self.last_result_details = last_result_details - self.last_result_state = last_result_state - self.last_run_build_number = last_run_build_number - self.last_test_run = last_test_run - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.outcome = outcome - self.revision = revision - self.state = state - self.suite = suite - self.test_case = test_case - self.test_plan = test_plan - self.url = url - self.work_item_properties = work_item_properties diff --git a/vsts/vsts/test/v4_0/models/test_points_query.py b/vsts/vsts/test/v4_0/models/test_points_query.py deleted file mode 100644 index a4736aa3..00000000 --- a/vsts/vsts/test/v4_0/models/test_points_query.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPointsQuery(Model): - """TestPointsQuery. - - :param order_by: - :type order_by: str - :param points: - :type points: list of :class:`TestPoint ` - :param points_filter: - :type points_filter: :class:`PointsFilter ` - :param wit_fields: - :type wit_fields: list of str - """ - - _attribute_map = { - 'order_by': {'key': 'orderBy', 'type': 'str'}, - 'points': {'key': 'points', 'type': '[TestPoint]'}, - 'points_filter': {'key': 'pointsFilter', 'type': 'PointsFilter'}, - 'wit_fields': {'key': 'witFields', 'type': '[str]'} - } - - def __init__(self, order_by=None, points=None, points_filter=None, wit_fields=None): - super(TestPointsQuery, self).__init__() - self.order_by = order_by - self.points = points - self.points_filter = points_filter - self.wit_fields = wit_fields diff --git a/vsts/vsts/test/v4_0/models/test_resolution_state.py b/vsts/vsts/test/v4_0/models/test_resolution_state.py deleted file mode 100644 index ad49929e..00000000 --- a/vsts/vsts/test/v4_0/models/test_resolution_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResolutionState(Model): - """TestResolutionState. - - :param id: - :type id: int - :param name: - :type name: str - :param project: - :type project: :class:`ShallowReference ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'} - } - - def __init__(self, id=None, name=None, project=None): - super(TestResolutionState, self).__init__() - self.id = id - self.name = name - self.project = project diff --git a/vsts/vsts/test/v4_0/models/test_result_create_model.py b/vsts/vsts/test/v4_0/models/test_result_create_model.py deleted file mode 100644 index f5d41d85..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_create_model.py +++ /dev/null @@ -1,125 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultCreateModel(Model): - """TestResultCreateModel. - - :param area: - :type area: :class:`ShallowReference ` - :param associated_work_items: - :type associated_work_items: list of int - :param automated_test_id: - :type automated_test_id: str - :param automated_test_name: - :type automated_test_name: str - :param automated_test_storage: - :type automated_test_storage: str - :param automated_test_type: - :type automated_test_type: str - :param automated_test_type_id: - :type automated_test_type_id: str - :param comment: - :type comment: str - :param completed_date: - :type completed_date: str - :param computer_name: - :type computer_name: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: - :type duration_in_ms: str - :param error_message: - :type error_message: str - :param failure_type: - :type failure_type: str - :param outcome: - :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param resolution_state: - :type resolution_state: str - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: - :type stack_trace: str - :param started_date: - :type started_date: str - :param state: - :type state: str - :param test_case: - :type test_case: :class:`ShallowReference ` - :param test_case_priority: - :type test_case_priority: str - :param test_case_title: - :type test_case_title: str - :param test_point: - :type test_point: :class:`ShallowReference ` - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, - 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, - 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, - 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, - 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, - 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, - 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'} - } - - def __init__(self, area=None, associated_work_items=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_priority=None, test_case_title=None, test_point=None): - super(TestResultCreateModel, self).__init__() - self.area = area - self.associated_work_items = associated_work_items - self.automated_test_id = automated_test_id - self.automated_test_name = automated_test_name - self.automated_test_storage = automated_test_storage - self.automated_test_type = automated_test_type - self.automated_test_type_id = automated_test_type_id - self.comment = comment - self.completed_date = completed_date - self.computer_name = computer_name - self.configuration = configuration - self.custom_fields = custom_fields - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.failure_type = failure_type - self.outcome = outcome - self.owner = owner - self.resolution_state = resolution_state - self.run_by = run_by - self.stack_trace = stack_trace - self.started_date = started_date - self.state = state - self.test_case = test_case - self.test_case_priority = test_case_priority - self.test_case_title = test_case_title - self.test_point = test_point diff --git a/vsts/vsts/test/v4_0/models/test_result_document.py b/vsts/vsts/test/v4_0/models/test_result_document.py deleted file mode 100644 index c84140f2..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_document.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultDocument(Model): - """TestResultDocument. - - :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` - :param payload: - :type payload: :class:`TestResultPayload ` - """ - - _attribute_map = { - 'operation_reference': {'key': 'operationReference', 'type': 'TestOperationReference'}, - 'payload': {'key': 'payload', 'type': 'TestResultPayload'} - } - - def __init__(self, operation_reference=None, payload=None): - super(TestResultDocument, self).__init__() - self.operation_reference = operation_reference - self.payload = payload diff --git a/vsts/vsts/test/v4_0/models/test_result_history.py b/vsts/vsts/test/v4_0/models/test_result_history.py deleted file mode 100644 index a2352617..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_history.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultHistory(Model): - """TestResultHistory. - - :param group_by_field: - :type group_by_field: str - :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` - """ - - _attribute_map = { - 'group_by_field': {'key': 'groupByField', 'type': 'str'}, - 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryDetailsForGroup]'} - } - - def __init__(self, group_by_field=None, results_for_group=None): - super(TestResultHistory, self).__init__() - self.group_by_field = group_by_field - self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py b/vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py deleted file mode 100644 index fa696fe9..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_history_details_for_group.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultHistoryDetailsForGroup(Model): - """TestResultHistoryDetailsForGroup. - - :param group_by_value: - :type group_by_value: object - :param latest_result: - :type latest_result: :class:`TestCaseResult ` - """ - - _attribute_map = { - 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'latest_result': {'key': 'latestResult', 'type': 'TestCaseResult'} - } - - def __init__(self, group_by_value=None, latest_result=None): - super(TestResultHistoryDetailsForGroup, self).__init__() - self.group_by_value = group_by_value - self.latest_result = latest_result diff --git a/vsts/vsts/test/v4_0/models/test_result_model_base.py b/vsts/vsts/test/v4_0/models/test_result_model_base.py deleted file mode 100644 index 1c2b428b..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_model_base.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultModelBase(Model): - """TestResultModelBase. - - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param outcome: - :type outcome: str - :param started_date: - :type started_date: datetime - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} - } - - def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None): - super(TestResultModelBase, self).__init__() - self.comment = comment - self.completed_date = completed_date - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.outcome = outcome - self.started_date = started_date diff --git a/vsts/vsts/test/v4_0/models/test_result_parameter_model.py b/vsts/vsts/test/v4_0/models/test_result_parameter_model.py deleted file mode 100644 index 39efe2cd..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_parameter_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultParameterModel(Model): - """TestResultParameterModel. - - :param action_path: - :type action_path: str - :param iteration_id: - :type iteration_id: int - :param parameter_name: - :type parameter_name: str - :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" - :type step_identifier: str - :param url: - :type url: str - :param value: - :type value: str - """ - - _attribute_map = { - 'action_path': {'key': 'actionPath', 'type': 'str'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'}, - 'parameter_name': {'key': 'parameterName', 'type': 'str'}, - 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, action_path=None, iteration_id=None, parameter_name=None, step_identifier=None, url=None, value=None): - super(TestResultParameterModel, self).__init__() - self.action_path = action_path - self.iteration_id = iteration_id - self.parameter_name = parameter_name - self.step_identifier = step_identifier - self.url = url - self.value = value diff --git a/vsts/vsts/test/v4_0/models/test_result_payload.py b/vsts/vsts/test/v4_0/models/test_result_payload.py deleted file mode 100644 index 22f3d447..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_payload.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultPayload(Model): - """TestResultPayload. - - :param comment: - :type comment: str - :param name: - :type name: str - :param stream: - :type stream: str - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'stream': {'key': 'stream', 'type': 'str'} - } - - def __init__(self, comment=None, name=None, stream=None): - super(TestResultPayload, self).__init__() - self.comment = comment - self.name = name - self.stream = stream diff --git a/vsts/vsts/test/v4_0/models/test_result_summary.py b/vsts/vsts/test/v4_0/models/test_result_summary.py deleted file mode 100644 index b9ae4391..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_summary.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultSummary(Model): - """TestResultSummary. - - :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` - :param team_project: - :type team_project: :class:`TeamProjectReference ` - :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` - :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` - """ - - _attribute_map = { - 'aggregated_results_analysis': {'key': 'aggregatedResultsAnalysis', 'type': 'AggregatedResultsAnalysis'}, - 'team_project': {'key': 'teamProject', 'type': 'TeamProjectReference'}, - 'test_failures': {'key': 'testFailures', 'type': 'TestFailuresAnalysis'}, - 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'} - } - - def __init__(self, aggregated_results_analysis=None, team_project=None, test_failures=None, test_results_context=None): - super(TestResultSummary, self).__init__() - self.aggregated_results_analysis = aggregated_results_analysis - self.team_project = team_project - self.test_failures = test_failures - self.test_results_context = test_results_context diff --git a/vsts/vsts/test/v4_0/models/test_result_trend_filter.py b/vsts/vsts/test/v4_0/models/test_result_trend_filter.py deleted file mode 100644 index 8cb60290..00000000 --- a/vsts/vsts/test/v4_0/models/test_result_trend_filter.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultTrendFilter(Model): - """TestResultTrendFilter. - - :param branch_names: - :type branch_names: list of str - :param build_count: - :type build_count: int - :param definition_ids: - :type definition_ids: list of int - :param env_definition_ids: - :type env_definition_ids: list of int - :param max_complete_date: - :type max_complete_date: datetime - :param publish_context: - :type publish_context: str - :param test_run_titles: - :type test_run_titles: list of str - :param trend_days: - :type trend_days: int - """ - - _attribute_map = { - 'branch_names': {'key': 'branchNames', 'type': '[str]'}, - 'build_count': {'key': 'buildCount', 'type': 'int'}, - 'definition_ids': {'key': 'definitionIds', 'type': '[int]'}, - 'env_definition_ids': {'key': 'envDefinitionIds', 'type': '[int]'}, - 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, - 'publish_context': {'key': 'publishContext', 'type': 'str'}, - 'test_run_titles': {'key': 'testRunTitles', 'type': '[str]'}, - 'trend_days': {'key': 'trendDays', 'type': 'int'} - } - - def __init__(self, branch_names=None, build_count=None, definition_ids=None, env_definition_ids=None, max_complete_date=None, publish_context=None, test_run_titles=None, trend_days=None): - super(TestResultTrendFilter, self).__init__() - self.branch_names = branch_names - self.build_count = build_count - self.definition_ids = definition_ids - self.env_definition_ids = env_definition_ids - self.max_complete_date = max_complete_date - self.publish_context = publish_context - self.test_run_titles = test_run_titles - self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_0/models/test_results_context.py b/vsts/vsts/test/v4_0/models/test_results_context.py deleted file mode 100644 index 2c5ed74f..00000000 --- a/vsts/vsts/test/v4_0/models/test_results_context.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsContext(Model): - """TestResultsContext. - - :param build: - :type build: :class:`BuildReference ` - :param context_type: - :type context_type: object - :param release: - :type release: :class:`ReleaseReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'BuildReference'}, - 'context_type': {'key': 'contextType', 'type': 'object'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'} - } - - def __init__(self, build=None, context_type=None, release=None): - super(TestResultsContext, self).__init__() - self.build = build - self.context_type = context_type - self.release = release diff --git a/vsts/vsts/test/v4_0/models/test_results_details.py b/vsts/vsts/test/v4_0/models/test_results_details.py deleted file mode 100644 index fe8f16aa..00000000 --- a/vsts/vsts/test/v4_0/models/test_results_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsDetails(Model): - """TestResultsDetails. - - :param group_by_field: - :type group_by_field: str - :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` - """ - - _attribute_map = { - 'group_by_field': {'key': 'groupByField', 'type': 'str'}, - 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultsDetailsForGroup]'} - } - - def __init__(self, group_by_field=None, results_for_group=None): - super(TestResultsDetails, self).__init__() - self.group_by_field = group_by_field - self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_0/models/test_results_details_for_group.py b/vsts/vsts/test/v4_0/models/test_results_details_for_group.py deleted file mode 100644 index e5858e91..00000000 --- a/vsts/vsts/test/v4_0/models/test_results_details_for_group.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsDetailsForGroup(Model): - """TestResultsDetailsForGroup. - - :param group_by_value: - :type group_by_value: object - :param results: - :type results: list of :class:`TestCaseResult ` - :param results_count_by_outcome: - :type results_count_by_outcome: dict - """ - - _attribute_map = { - 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'results': {'key': 'results', 'type': '[TestCaseResult]'}, - 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'} - } - - def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None): - super(TestResultsDetailsForGroup, self).__init__() - self.group_by_value = group_by_value - self.results = results - self.results_count_by_outcome = results_count_by_outcome diff --git a/vsts/vsts/test/v4_0/models/test_results_query.py b/vsts/vsts/test/v4_0/models/test_results_query.py deleted file mode 100644 index c366a404..00000000 --- a/vsts/vsts/test/v4_0/models/test_results_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsQuery(Model): - """TestResultsQuery. - - :param fields: - :type fields: list of str - :param results: - :type results: list of :class:`TestCaseResult ` - :param results_filter: - :type results_filter: :class:`ResultsFilter ` - """ - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[str]'}, - 'results': {'key': 'results', 'type': '[TestCaseResult]'}, - 'results_filter': {'key': 'resultsFilter', 'type': 'ResultsFilter'} - } - - def __init__(self, fields=None, results=None, results_filter=None): - super(TestResultsQuery, self).__init__() - self.fields = fields - self.results = results - self.results_filter = results_filter diff --git a/vsts/vsts/test/v4_0/models/test_run.py b/vsts/vsts/test/v4_0/models/test_run.py deleted file mode 100644 index 3a2a742f..00000000 --- a/vsts/vsts/test/v4_0/models/test_run.py +++ /dev/null @@ -1,193 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRun(Model): - """TestRun. - - :param build: - :type build: :class:`ShallowReference ` - :param build_configuration: - :type build_configuration: :class:`BuildConfiguration ` - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param controller: - :type controller: str - :param created_date: - :type created_date: datetime - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param drop_location: - :type drop_location: str - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` - :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` - :param due_date: - :type due_date: datetime - :param error_message: - :type error_message: str - :param filter: - :type filter: :class:`RunFilter ` - :param id: - :type id: int - :param incomplete_tests: - :type incomplete_tests: int - :param is_automated: - :type is_automated: bool - :param iteration: - :type iteration: str - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param name: - :type name: str - :param not_applicable_tests: - :type not_applicable_tests: int - :param owner: - :type owner: :class:`IdentityRef ` - :param passed_tests: - :type passed_tests: int - :param phase: - :type phase: str - :param plan: - :type plan: :class:`ShallowReference ` - :param post_process_state: - :type post_process_state: str - :param project: - :type project: :class:`ShallowReference ` - :param release: - :type release: :class:`ReleaseReference ` - :param release_environment_uri: - :type release_environment_uri: str - :param release_uri: - :type release_uri: str - :param revision: - :type revision: int - :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` - :param started_date: - :type started_date: datetime - :param state: - :type state: str - :param substate: - :type substate: object - :param test_environment: - :type test_environment: :class:`TestEnvironment ` - :param test_message_log_id: - :type test_message_log_id: int - :param test_settings: - :type test_settings: :class:`ShallowReference ` - :param total_tests: - :type total_tests: int - :param unanalyzed_tests: - :type unanalyzed_tests: int - :param url: - :type url: str - :param web_access_url: - :type web_access_url: str - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_configuration': {'key': 'buildConfiguration', 'type': 'BuildConfiguration'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'controller': {'key': 'controller', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'drop_location': {'key': 'dropLocation', 'type': 'str'}, - 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment_creation_details': {'key': 'dtlEnvironmentCreationDetails', 'type': 'DtlEnvironmentDetails'}, - 'due_date': {'key': 'dueDate', 'type': 'iso-8601'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'RunFilter'}, - 'id': {'key': 'id', 'type': 'int'}, - 'incomplete_tests': {'key': 'incompleteTests', 'type': 'int'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'not_applicable_tests': {'key': 'notApplicableTests', 'type': 'int'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'passed_tests': {'key': 'passedTests', 'type': 'int'}, - 'phase': {'key': 'phase', 'type': 'str'}, - 'plan': {'key': 'plan', 'type': 'ShallowReference'}, - 'post_process_state': {'key': 'postProcessState', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'}, - 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, - 'release_uri': {'key': 'releaseUri', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'substate': {'key': 'substate', 'type': 'object'}, - 'test_environment': {'key': 'testEnvironment', 'type': 'TestEnvironment'}, - 'test_message_log_id': {'key': 'testMessageLogId', 'type': 'int'}, - 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'}, - 'unanalyzed_tests': {'key': 'unanalyzedTests', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_access_url': {'key': 'webAccessUrl', 'type': 'str'} - } - - def __init__(self, build=None, build_configuration=None, comment=None, completed_date=None, controller=None, created_date=None, custom_fields=None, drop_location=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_creation_details=None, due_date=None, error_message=None, filter=None, id=None, incomplete_tests=None, is_automated=None, iteration=None, last_updated_by=None, last_updated_date=None, name=None, not_applicable_tests=None, owner=None, passed_tests=None, phase=None, plan=None, post_process_state=None, project=None, release=None, release_environment_uri=None, release_uri=None, revision=None, run_statistics=None, started_date=None, state=None, substate=None, test_environment=None, test_message_log_id=None, test_settings=None, total_tests=None, unanalyzed_tests=None, url=None, web_access_url=None): - super(TestRun, self).__init__() - self.build = build - self.build_configuration = build_configuration - self.comment = comment - self.completed_date = completed_date - self.controller = controller - self.created_date = created_date - self.custom_fields = custom_fields - self.drop_location = drop_location - self.dtl_aut_environment = dtl_aut_environment - self.dtl_environment = dtl_environment - self.dtl_environment_creation_details = dtl_environment_creation_details - self.due_date = due_date - self.error_message = error_message - self.filter = filter - self.id = id - self.incomplete_tests = incomplete_tests - self.is_automated = is_automated - self.iteration = iteration - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.name = name - self.not_applicable_tests = not_applicable_tests - self.owner = owner - self.passed_tests = passed_tests - self.phase = phase - self.plan = plan - self.post_process_state = post_process_state - self.project = project - self.release = release - self.release_environment_uri = release_environment_uri - self.release_uri = release_uri - self.revision = revision - self.run_statistics = run_statistics - self.started_date = started_date - self.state = state - self.substate = substate - self.test_environment = test_environment - self.test_message_log_id = test_message_log_id - self.test_settings = test_settings - self.total_tests = total_tests - self.unanalyzed_tests = unanalyzed_tests - self.url = url - self.web_access_url = web_access_url diff --git a/vsts/vsts/test/v4_0/models/test_run_coverage.py b/vsts/vsts/test/v4_0/models/test_run_coverage.py deleted file mode 100644 index f4914e74..00000000 --- a/vsts/vsts/test/v4_0/models/test_run_coverage.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunCoverage(Model): - """TestRunCoverage. - - :param last_error: - :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: - :type state: str - :param test_run: - :type test_run: :class:`ShallowReference ` - """ - - _attribute_map = { - 'last_error': {'key': 'lastError', 'type': 'str'}, - 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_run': {'key': 'testRun', 'type': 'ShallowReference'} - } - - def __init__(self, last_error=None, modules=None, state=None, test_run=None): - super(TestRunCoverage, self).__init__() - self.last_error = last_error - self.modules = modules - self.state = state - self.test_run = test_run diff --git a/vsts/vsts/test/v4_0/models/test_run_statistic.py b/vsts/vsts/test/v4_0/models/test_run_statistic.py deleted file mode 100644 index 8684e151..00000000 --- a/vsts/vsts/test/v4_0/models/test_run_statistic.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunStatistic(Model): - """TestRunStatistic. - - :param run: - :type run: :class:`ShallowReference ` - :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` - """ - - _attribute_map = { - 'run': {'key': 'run', 'type': 'ShallowReference'}, - 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'} - } - - def __init__(self, run=None, run_statistics=None): - super(TestRunStatistic, self).__init__() - self.run = run - self.run_statistics = run_statistics diff --git a/vsts/vsts/test/v4_0/models/test_session.py b/vsts/vsts/test/v4_0/models/test_session.py deleted file mode 100644 index 45ffabea..00000000 --- a/vsts/vsts/test/v4_0/models/test_session.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSession(Model): - """TestSession. - - :param area: Area path of the test session - :type area: :class:`ShallowReference ` - :param comment: Comments in the test session - :type comment: str - :param end_date: Duration of the session - :type end_date: datetime - :param id: Id of the test session - :type id: int - :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: Last updated date - :type last_updated_date: datetime - :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` - :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` - :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` - :param revision: Revision of the test session - :type revision: int - :param source: Source of the test session - :type source: object - :param start_date: Start date - :type start_date: datetime - :param state: State of the test session - :type state: object - :param title: Title of the test session - :type title: str - :param url: Url of Test Session Resource - :type url: str - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'property_bag': {'key': 'propertyBag', 'type': 'PropertyBag'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, area=None, comment=None, end_date=None, id=None, last_updated_by=None, last_updated_date=None, owner=None, project=None, property_bag=None, revision=None, source=None, start_date=None, state=None, title=None, url=None): - super(TestSession, self).__init__() - self.area = area - self.comment = comment - self.end_date = end_date - self.id = id - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.owner = owner - self.project = project - self.property_bag = property_bag - self.revision = revision - self.source = source - self.start_date = start_date - self.state = state - self.title = title - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_settings.py b/vsts/vsts/test/v4_0/models/test_settings.py deleted file mode 100644 index 4cf25582..00000000 --- a/vsts/vsts/test/v4_0/models/test_settings.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSettings(Model): - """TestSettings. - - :param area_path: Area path required to create test settings - :type area_path: str - :param description: Description of the test settings. Used in create test settings. - :type description: str - :param is_public: Indicates if the tests settings is public or private.Used in create test settings. - :type is_public: bool - :param machine_roles: Xml string of machine roles. Used in create test settings. - :type machine_roles: str - :param test_settings_content: Test settings content. - :type test_settings_content: str - :param test_settings_id: Test settings id. - :type test_settings_id: int - :param test_settings_name: Test settings name. - :type test_settings_name: str - """ - - _attribute_map = { - 'area_path': {'key': 'areaPath', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, - 'machine_roles': {'key': 'machineRoles', 'type': 'str'}, - 'test_settings_content': {'key': 'testSettingsContent', 'type': 'str'}, - 'test_settings_id': {'key': 'testSettingsId', 'type': 'int'}, - 'test_settings_name': {'key': 'testSettingsName', 'type': 'str'} - } - - def __init__(self, area_path=None, description=None, is_public=None, machine_roles=None, test_settings_content=None, test_settings_id=None, test_settings_name=None): - super(TestSettings, self).__init__() - self.area_path = area_path - self.description = description - self.is_public = is_public - self.machine_roles = machine_roles - self.test_settings_content = test_settings_content - self.test_settings_id = test_settings_id - self.test_settings_name = test_settings_name diff --git a/vsts/vsts/test/v4_0/models/test_suite.py b/vsts/vsts/test/v4_0/models/test_suite.py deleted file mode 100644 index 2e10d73b..00000000 --- a/vsts/vsts/test/v4_0/models/test_suite.py +++ /dev/null @@ -1,113 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSuite(Model): - """TestSuite. - - :param area_uri: - :type area_uri: str - :param children: - :type children: list of :class:`TestSuite ` - :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` - :param id: - :type id: int - :param inherit_default_configurations: - :type inherit_default_configurations: bool - :param last_error: - :type last_error: str - :param last_populated_date: - :type last_populated_date: datetime - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param name: - :type name: str - :param parent: - :type parent: :class:`ShallowReference ` - :param plan: - :type plan: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param query_string: - :type query_string: str - :param requirement_id: - :type requirement_id: int - :param revision: - :type revision: int - :param state: - :type state: str - :param suites: - :type suites: list of :class:`ShallowReference ` - :param suite_type: - :type suite_type: str - :param test_case_count: - :type test_case_count: int - :param test_cases_url: - :type test_cases_url: str - :param text: - :type text: str - :param url: - :type url: str - """ - - _attribute_map = { - 'area_uri': {'key': 'areaUri', 'type': 'str'}, - 'children': {'key': 'children', 'type': '[TestSuite]'}, - 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, - 'last_error': {'key': 'lastError', 'type': 'str'}, - 'last_populated_date': {'key': 'lastPopulatedDate', 'type': 'iso-8601'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent': {'key': 'parent', 'type': 'ShallowReference'}, - 'plan': {'key': 'plan', 'type': 'ShallowReference'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'query_string': {'key': 'queryString', 'type': 'str'}, - 'requirement_id': {'key': 'requirementId', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'suites': {'key': 'suites', 'type': '[ShallowReference]'}, - 'suite_type': {'key': 'suiteType', 'type': 'str'}, - 'test_case_count': {'key': 'testCaseCount', 'type': 'int'}, - 'test_cases_url': {'key': 'testCasesUrl', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, area_uri=None, children=None, default_configurations=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): - super(TestSuite, self).__init__() - self.area_uri = area_uri - self.children = children - self.default_configurations = default_configurations - self.id = id - self.inherit_default_configurations = inherit_default_configurations - self.last_error = last_error - self.last_populated_date = last_populated_date - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.name = name - self.parent = parent - self.plan = plan - self.project = project - self.query_string = query_string - self.requirement_id = requirement_id - self.revision = revision - self.state = state - self.suites = suites - self.suite_type = suite_type - self.test_case_count = test_case_count - self.test_cases_url = test_cases_url - self.text = text - self.url = url diff --git a/vsts/vsts/test/v4_0/models/test_suite_clone_request.py b/vsts/vsts/test/v4_0/models/test_suite_clone_request.py deleted file mode 100644 index 29d26111..00000000 --- a/vsts/vsts/test/v4_0/models/test_suite_clone_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSuiteCloneRequest(Model): - """TestSuiteCloneRequest. - - :param clone_options: - :type clone_options: :class:`CloneOptions ` - :param destination_suite_id: - :type destination_suite_id: int - :param destination_suite_project_name: - :type destination_suite_project_name: str - """ - - _attribute_map = { - 'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'}, - 'destination_suite_id': {'key': 'destinationSuiteId', 'type': 'int'}, - 'destination_suite_project_name': {'key': 'destinationSuiteProjectName', 'type': 'str'} - } - - def __init__(self, clone_options=None, destination_suite_id=None, destination_suite_project_name=None): - super(TestSuiteCloneRequest, self).__init__() - self.clone_options = clone_options - self.destination_suite_id = destination_suite_id - self.destination_suite_project_name = destination_suite_project_name diff --git a/vsts/vsts/test/v4_0/models/test_summary_for_work_item.py b/vsts/vsts/test/v4_0/models/test_summary_for_work_item.py deleted file mode 100644 index c2d4d664..00000000 --- a/vsts/vsts/test/v4_0/models/test_summary_for_work_item.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSummaryForWorkItem(Model): - """TestSummaryForWorkItem. - - :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` - :param work_item: - :type work_item: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'summary': {'key': 'summary', 'type': 'AggregatedDataForResultTrend'}, - 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} - } - - def __init__(self, summary=None, work_item=None): - super(TestSummaryForWorkItem, self).__init__() - self.summary = summary - self.work_item = work_item diff --git a/vsts/vsts/test/v4_0/models/test_to_work_item_links.py b/vsts/vsts/test/v4_0/models/test_to_work_item_links.py deleted file mode 100644 index 80eb6f10..00000000 --- a/vsts/vsts/test/v4_0/models/test_to_work_item_links.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestToWorkItemLinks(Model): - """TestToWorkItemLinks. - - :param test: - :type test: :class:`TestMethod ` - :param work_items: - :type work_items: list of :class:`WorkItemReference ` - """ - - _attribute_map = { - 'test': {'key': 'test', 'type': 'TestMethod'}, - 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} - } - - def __init__(self, test=None, work_items=None): - super(TestToWorkItemLinks, self).__init__() - self.test = test - self.work_items = work_items diff --git a/vsts/vsts/test/v4_0/models/test_variable.py b/vsts/vsts/test/v4_0/models/test_variable.py deleted file mode 100644 index c6fbcb04..00000000 --- a/vsts/vsts/test/v4_0/models/test_variable.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestVariable(Model): - """TestVariable. - - :param description: Description of the test variable - :type description: str - :param id: Id of the test variable - :type id: int - :param name: Name of the test variable - :type name: str - :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` - :param revision: Revision - :type revision: int - :param url: Url of the test variable - :type url: str - :param values: List of allowed values - :type values: list of str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[str]'} - } - - def __init__(self, description=None, id=None, name=None, project=None, revision=None, url=None, values=None): - super(TestVariable, self).__init__() - self.description = description - self.id = id - self.name = name - self.project = project - self.revision = revision - self.url = url - self.values = values diff --git a/vsts/vsts/test/v4_0/models/work_item_reference.py b/vsts/vsts/test/v4_0/models/work_item_reference.py deleted file mode 100644 index 1bff259b..00000000 --- a/vsts/vsts/test/v4_0/models/work_item_reference.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemReference(Model): - """WorkItemReference. - - :param id: - :type id: str - :param name: - :type name: str - :param type: - :type type: str - :param url: - :type url: str - :param web_url: - :type web_url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'} - } - - def __init__(self, id=None, name=None, type=None, url=None, web_url=None): - super(WorkItemReference, self).__init__() - self.id = id - self.name = name - self.type = type - self.url = url - self.web_url = web_url diff --git a/vsts/vsts/test/v4_0/models/work_item_to_test_links.py b/vsts/vsts/test/v4_0/models/work_item_to_test_links.py deleted file mode 100644 index aa4aedca..00000000 --- a/vsts/vsts/test/v4_0/models/work_item_to_test_links.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemToTestLinks(Model): - """WorkItemToTestLinks. - - :param tests: - :type tests: list of :class:`TestMethod ` - :param work_item: - :type work_item: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'tests': {'key': 'tests', 'type': '[TestMethod]'}, - 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} - } - - def __init__(self, tests=None, work_item=None): - super(WorkItemToTestLinks, self).__init__() - self.tests = tests - self.work_item = work_item diff --git a/vsts/vsts/test/v4_1/__init__.py b/vsts/vsts/test/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/test/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/test/v4_1/models/__init__.py b/vsts/vsts/test/v4_1/models/__init__.py deleted file mode 100644 index edc3f32d..00000000 --- a/vsts/vsts/test/v4_1/models/__init__.py +++ /dev/null @@ -1,213 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .aggregated_data_for_result_trend import AggregatedDataForResultTrend -from .aggregated_results_analysis import AggregatedResultsAnalysis -from .aggregated_results_by_outcome import AggregatedResultsByOutcome -from .aggregated_results_difference import AggregatedResultsDifference -from .aggregated_runs_by_state import AggregatedRunsByState -from .build_configuration import BuildConfiguration -from .build_coverage import BuildCoverage -from .build_reference import BuildReference -from .clone_operation_information import CloneOperationInformation -from .clone_options import CloneOptions -from .clone_statistics import CloneStatistics -from .code_coverage_data import CodeCoverageData -from .code_coverage_statistics import CodeCoverageStatistics -from .code_coverage_summary import CodeCoverageSummary -from .coverage_statistics import CoverageStatistics -from .custom_test_field import CustomTestField -from .custom_test_field_definition import CustomTestFieldDefinition -from .dtl_environment_details import DtlEnvironmentDetails -from .failing_since import FailingSince -from .field_details_for_test_results import FieldDetailsForTestResults -from .function_coverage import FunctionCoverage -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .last_result_details import LastResultDetails -from .linked_work_items_query import LinkedWorkItemsQuery -from .linked_work_items_query_result import LinkedWorkItemsQueryResult -from .module_coverage import ModuleCoverage -from .name_value_pair import NameValuePair -from .plan_update_model import PlanUpdateModel -from .point_assignment import PointAssignment -from .points_filter import PointsFilter -from .point_update_model import PointUpdateModel -from .property_bag import PropertyBag -from .query_model import QueryModel -from .reference_links import ReferenceLinks -from .release_environment_definition_reference import ReleaseEnvironmentDefinitionReference -from .release_reference import ReleaseReference -from .result_retention_settings import ResultRetentionSettings -from .results_filter import ResultsFilter -from .run_create_model import RunCreateModel -from .run_filter import RunFilter -from .run_statistic import RunStatistic -from .run_update_model import RunUpdateModel -from .shallow_reference import ShallowReference -from .shallow_test_case_result import ShallowTestCaseResult -from .shared_step_model import SharedStepModel -from .suite_create_model import SuiteCreateModel -from .suite_entry import SuiteEntry -from .suite_entry_update_model import SuiteEntryUpdateModel -from .suite_test_case import SuiteTestCase -from .suite_update_model import SuiteUpdateModel -from .team_context import TeamContext -from .team_project_reference import TeamProjectReference -from .test_action_result_model import TestActionResultModel -from .test_attachment import TestAttachment -from .test_attachment_reference import TestAttachmentReference -from .test_attachment_request_model import TestAttachmentRequestModel -from .test_case_result import TestCaseResult -from .test_case_result_attachment_model import TestCaseResultAttachmentModel -from .test_case_result_identifier import TestCaseResultIdentifier -from .test_case_result_update_model import TestCaseResultUpdateModel -from .test_configuration import TestConfiguration -from .test_environment import TestEnvironment -from .test_failure_details import TestFailureDetails -from .test_failures_analysis import TestFailuresAnalysis -from .test_iteration_details_model import TestIterationDetailsModel -from .test_message_log_details import TestMessageLogDetails -from .test_method import TestMethod -from .test_operation_reference import TestOperationReference -from .test_plan import TestPlan -from .test_plan_clone_request import TestPlanCloneRequest -from .test_point import TestPoint -from .test_points_query import TestPointsQuery -from .test_resolution_state import TestResolutionState -from .test_result_create_model import TestResultCreateModel -from .test_result_document import TestResultDocument -from .test_result_history import TestResultHistory -from .test_result_history_details_for_group import TestResultHistoryDetailsForGroup -from .test_result_model_base import TestResultModelBase -from .test_result_parameter_model import TestResultParameterModel -from .test_result_payload import TestResultPayload -from .test_results_context import TestResultsContext -from .test_results_details import TestResultsDetails -from .test_results_details_for_group import TestResultsDetailsForGroup -from .test_results_groups_for_build import TestResultsGroupsForBuild -from .test_results_groups_for_release import TestResultsGroupsForRelease -from .test_results_query import TestResultsQuery -from .test_result_summary import TestResultSummary -from .test_result_trend_filter import TestResultTrendFilter -from .test_run import TestRun -from .test_run_coverage import TestRunCoverage -from .test_run_statistic import TestRunStatistic -from .test_session import TestSession -from .test_settings import TestSettings -from .test_suite import TestSuite -from .test_suite_clone_request import TestSuiteCloneRequest -from .test_summary_for_work_item import TestSummaryForWorkItem -from .test_to_work_item_links import TestToWorkItemLinks -from .test_variable import TestVariable -from .work_item_reference import WorkItemReference -from .work_item_to_test_links import WorkItemToTestLinks - -__all__ = [ - 'AggregatedDataForResultTrend', - 'AggregatedResultsAnalysis', - 'AggregatedResultsByOutcome', - 'AggregatedResultsDifference', - 'AggregatedRunsByState', - 'BuildConfiguration', - 'BuildCoverage', - 'BuildReference', - 'CloneOperationInformation', - 'CloneOptions', - 'CloneStatistics', - 'CodeCoverageData', - 'CodeCoverageStatistics', - 'CodeCoverageSummary', - 'CoverageStatistics', - 'CustomTestField', - 'CustomTestFieldDefinition', - 'DtlEnvironmentDetails', - 'FailingSince', - 'FieldDetailsForTestResults', - 'FunctionCoverage', - 'GraphSubjectBase', - 'IdentityRef', - 'LastResultDetails', - 'LinkedWorkItemsQuery', - 'LinkedWorkItemsQueryResult', - 'ModuleCoverage', - 'NameValuePair', - 'PlanUpdateModel', - 'PointAssignment', - 'PointsFilter', - 'PointUpdateModel', - 'PropertyBag', - 'QueryModel', - 'ReferenceLinks', - 'ReleaseEnvironmentDefinitionReference', - 'ReleaseReference', - 'ResultRetentionSettings', - 'ResultsFilter', - 'RunCreateModel', - 'RunFilter', - 'RunStatistic', - 'RunUpdateModel', - 'ShallowReference', - 'ShallowTestCaseResult', - 'SharedStepModel', - 'SuiteCreateModel', - 'SuiteEntry', - 'SuiteEntryUpdateModel', - 'SuiteTestCase', - 'SuiteUpdateModel', - 'TeamContext', - 'TeamProjectReference', - 'TestActionResultModel', - 'TestAttachment', - 'TestAttachmentReference', - 'TestAttachmentRequestModel', - 'TestCaseResult', - 'TestCaseResultAttachmentModel', - 'TestCaseResultIdentifier', - 'TestCaseResultUpdateModel', - 'TestConfiguration', - 'TestEnvironment', - 'TestFailureDetails', - 'TestFailuresAnalysis', - 'TestIterationDetailsModel', - 'TestMessageLogDetails', - 'TestMethod', - 'TestOperationReference', - 'TestPlan', - 'TestPlanCloneRequest', - 'TestPoint', - 'TestPointsQuery', - 'TestResolutionState', - 'TestResultCreateModel', - 'TestResultDocument', - 'TestResultHistory', - 'TestResultHistoryDetailsForGroup', - 'TestResultModelBase', - 'TestResultParameterModel', - 'TestResultPayload', - 'TestResultsContext', - 'TestResultsDetails', - 'TestResultsDetailsForGroup', - 'TestResultsGroupsForBuild', - 'TestResultsGroupsForRelease', - 'TestResultsQuery', - 'TestResultSummary', - 'TestResultTrendFilter', - 'TestRun', - 'TestRunCoverage', - 'TestRunStatistic', - 'TestSession', - 'TestSettings', - 'TestSuite', - 'TestSuiteCloneRequest', - 'TestSummaryForWorkItem', - 'TestToWorkItemLinks', - 'TestVariable', - 'WorkItemReference', - 'WorkItemToTestLinks', -] diff --git a/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py b/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py deleted file mode 100644 index 2328b2ae..00000000 --- a/vsts/vsts/test/v4_1/models/aggregated_data_for_result_trend.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedDataForResultTrend(Model): - """AggregatedDataForResultTrend. - - :param duration: This is tests execution duration. - :type duration: object - :param results_by_outcome: - :type results_by_outcome: dict - :param run_summary_by_state: - :type run_summary_by_state: dict - :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` - :param total_tests: - :type total_tests: int - """ - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'object'}, - 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, - 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'} - } - - def __init__(self, duration=None, results_by_outcome=None, run_summary_by_state=None, test_results_context=None, total_tests=None): - super(AggregatedDataForResultTrend, self).__init__() - self.duration = duration - self.results_by_outcome = results_by_outcome - self.run_summary_by_state = run_summary_by_state - self.test_results_context = test_results_context - self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py b/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py deleted file mode 100644 index d0e2fb82..00000000 --- a/vsts/vsts/test/v4_1/models/aggregated_results_analysis.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsAnalysis(Model): - """AggregatedResultsAnalysis. - - :param duration: - :type duration: object - :param not_reported_results_by_outcome: - :type not_reported_results_by_outcome: dict - :param previous_context: - :type previous_context: :class:`TestResultsContext ` - :param results_by_outcome: - :type results_by_outcome: dict - :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` - :param run_summary_by_state: - :type run_summary_by_state: dict - :param total_tests: - :type total_tests: int - """ - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'object'}, - 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, - 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, - 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, - 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'} - } - - def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): - super(AggregatedResultsAnalysis, self).__init__() - self.duration = duration - self.not_reported_results_by_outcome = not_reported_results_by_outcome - self.previous_context = previous_context - self.results_by_outcome = results_by_outcome - self.results_difference = results_difference - self.run_summary_by_state = run_summary_by_state - self.total_tests = total_tests diff --git a/vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py b/vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py deleted file mode 100644 index e31fbdde..00000000 --- a/vsts/vsts/test/v4_1/models/aggregated_results_by_outcome.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsByOutcome(Model): - """AggregatedResultsByOutcome. - - :param count: - :type count: int - :param duration: - :type duration: object - :param group_by_field: - :type group_by_field: str - :param group_by_value: - :type group_by_value: object - :param outcome: - :type outcome: object - :param rerun_result_count: - :type rerun_result_count: int - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration': {'key': 'duration', 'type': 'object'}, - 'group_by_field': {'key': 'groupByField', 'type': 'str'}, - 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'outcome': {'key': 'outcome', 'type': 'object'}, - 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} - } - - def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): - super(AggregatedResultsByOutcome, self).__init__() - self.count = count - self.duration = duration - self.group_by_field = group_by_field - self.group_by_value = group_by_value - self.outcome = outcome - self.rerun_result_count = rerun_result_count diff --git a/vsts/vsts/test/v4_1/models/aggregated_results_difference.py b/vsts/vsts/test/v4_1/models/aggregated_results_difference.py deleted file mode 100644 index 5bc4af42..00000000 --- a/vsts/vsts/test/v4_1/models/aggregated_results_difference.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedResultsDifference(Model): - """AggregatedResultsDifference. - - :param increase_in_duration: - :type increase_in_duration: object - :param increase_in_failures: - :type increase_in_failures: int - :param increase_in_other_tests: - :type increase_in_other_tests: int - :param increase_in_passed_tests: - :type increase_in_passed_tests: int - :param increase_in_total_tests: - :type increase_in_total_tests: int - """ - - _attribute_map = { - 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, - 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, - 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, - 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, - 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} - } - - def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): - super(AggregatedResultsDifference, self).__init__() - self.increase_in_duration = increase_in_duration - self.increase_in_failures = increase_in_failures - self.increase_in_other_tests = increase_in_other_tests - self.increase_in_passed_tests = increase_in_passed_tests - self.increase_in_total_tests = increase_in_total_tests diff --git a/vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py b/vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py deleted file mode 100644 index 04398b82..00000000 --- a/vsts/vsts/test/v4_1/models/aggregated_runs_by_state.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AggregatedRunsByState(Model): - """AggregatedRunsByState. - - :param runs_count: - :type runs_count: int - :param state: - :type state: object - """ - - _attribute_map = { - 'runs_count': {'key': 'runsCount', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'} - } - - def __init__(self, runs_count=None, state=None): - super(AggregatedRunsByState, self).__init__() - self.runs_count = runs_count - self.state = state diff --git a/vsts/vsts/test/v4_1/models/build_configuration.py b/vsts/vsts/test/v4_1/models/build_configuration.py deleted file mode 100644 index 970b738b..00000000 --- a/vsts/vsts/test/v4_1/models/build_configuration.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildConfiguration(Model): - """BuildConfiguration. - - :param branch_name: - :type branch_name: str - :param build_definition_id: - :type build_definition_id: int - :param flavor: - :type flavor: str - :param id: - :type id: int - :param number: - :type number: str - :param platform: - :type platform: str - :param project: - :type project: :class:`ShallowReference ` - :param repository_id: - :type repository_id: int - :param source_version: - :type source_version: str - :param uri: - :type uri: str - """ - - _attribute_map = { - 'branch_name': {'key': 'branchName', 'type': 'str'}, - 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, - 'flavor': {'key': 'flavor', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'number': {'key': 'number', 'type': 'str'}, - 'platform': {'key': 'platform', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'repository_id': {'key': 'repositoryId', 'type': 'int'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): - super(BuildConfiguration, self).__init__() - self.branch_name = branch_name - self.build_definition_id = build_definition_id - self.flavor = flavor - self.id = id - self.number = number - self.platform = platform - self.project = project - self.repository_id = repository_id - self.source_version = source_version - self.uri = uri diff --git a/vsts/vsts/test/v4_1/models/build_coverage.py b/vsts/vsts/test/v4_1/models/build_coverage.py deleted file mode 100644 index a1dc8ed2..00000000 --- a/vsts/vsts/test/v4_1/models/build_coverage.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildCoverage(Model): - """BuildCoverage. - - :param code_coverage_file_url: - :type code_coverage_file_url: str - :param configuration: - :type configuration: :class:`BuildConfiguration ` - :param last_error: - :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: - :type state: str - """ - - _attribute_map = { - 'code_coverage_file_url': {'key': 'codeCoverageFileUrl', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'BuildConfiguration'}, - 'last_error': {'key': 'lastError', 'type': 'str'}, - 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, code_coverage_file_url=None, configuration=None, last_error=None, modules=None, state=None): - super(BuildCoverage, self).__init__() - self.code_coverage_file_url = code_coverage_file_url - self.configuration = configuration - self.last_error = last_error - self.modules = modules - self.state = state diff --git a/vsts/vsts/test/v4_1/models/build_reference.py b/vsts/vsts/test/v4_1/models/build_reference.py deleted file mode 100644 index 0abda1e9..00000000 --- a/vsts/vsts/test/v4_1/models/build_reference.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BuildReference(Model): - """BuildReference. - - :param branch_name: - :type branch_name: str - :param build_system: - :type build_system: str - :param definition_id: - :type definition_id: int - :param id: - :type id: int - :param number: - :type number: str - :param repository_id: - :type repository_id: str - :param uri: - :type uri: str - """ - - _attribute_map = { - 'branch_name': {'key': 'branchName', 'type': 'str'}, - 'build_system': {'key': 'buildSystem', 'type': 'str'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'int'}, - 'number': {'key': 'number', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'} - } - - def __init__(self, branch_name=None, build_system=None, definition_id=None, id=None, number=None, repository_id=None, uri=None): - super(BuildReference, self).__init__() - self.branch_name = branch_name - self.build_system = build_system - self.definition_id = definition_id - self.id = id - self.number = number - self.repository_id = repository_id - self.uri = uri diff --git a/vsts/vsts/test/v4_1/models/clone_operation_information.py b/vsts/vsts/test/v4_1/models/clone_operation_information.py deleted file mode 100644 index a80a88e0..00000000 --- a/vsts/vsts/test/v4_1/models/clone_operation_information.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CloneOperationInformation(Model): - """CloneOperationInformation. - - :param clone_statistics: - :type clone_statistics: :class:`CloneStatistics ` - :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue - :type completion_date: datetime - :param creation_date: DateTime when the operation was started - :type creation_date: datetime - :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` - :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` - :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` - :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. - :type message: str - :param op_id: The ID of the operation - :type op_id: int - :param result_object_type: The type of the object generated as a result of the Clone operation - :type result_object_type: object - :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` - :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` - :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` - :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete - :type state: object - :param url: Url for geting the clone information - :type url: str - """ - - _attribute_map = { - 'clone_statistics': {'key': 'cloneStatistics', 'type': 'CloneStatistics'}, - 'completion_date': {'key': 'completionDate', 'type': 'iso-8601'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'destination_object': {'key': 'destinationObject', 'type': 'ShallowReference'}, - 'destination_plan': {'key': 'destinationPlan', 'type': 'ShallowReference'}, - 'destination_project': {'key': 'destinationProject', 'type': 'ShallowReference'}, - 'message': {'key': 'message', 'type': 'str'}, - 'op_id': {'key': 'opId', 'type': 'int'}, - 'result_object_type': {'key': 'resultObjectType', 'type': 'object'}, - 'source_object': {'key': 'sourceObject', 'type': 'ShallowReference'}, - 'source_plan': {'key': 'sourcePlan', 'type': 'ShallowReference'}, - 'source_project': {'key': 'sourceProject', 'type': 'ShallowReference'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, clone_statistics=None, completion_date=None, creation_date=None, destination_object=None, destination_plan=None, destination_project=None, message=None, op_id=None, result_object_type=None, source_object=None, source_plan=None, source_project=None, state=None, url=None): - super(CloneOperationInformation, self).__init__() - self.clone_statistics = clone_statistics - self.completion_date = completion_date - self.creation_date = creation_date - self.destination_object = destination_object - self.destination_plan = destination_plan - self.destination_project = destination_project - self.message = message - self.op_id = op_id - self.result_object_type = result_object_type - self.source_object = source_object - self.source_plan = source_plan - self.source_project = source_project - self.state = state - self.url = url diff --git a/vsts/vsts/test/v4_1/models/clone_options.py b/vsts/vsts/test/v4_1/models/clone_options.py deleted file mode 100644 index f048c1c9..00000000 --- a/vsts/vsts/test/v4_1/models/clone_options.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CloneOptions(Model): - """CloneOptions. - - :param clone_requirements: If set to true requirements will be cloned - :type clone_requirements: bool - :param copy_all_suites: copy all suites from a source plan - :type copy_all_suites: bool - :param copy_ancestor_hierarchy: copy ancestor hieracrchy - :type copy_ancestor_hierarchy: bool - :param destination_work_item_type: Name of the workitem type of the clone - :type destination_work_item_type: str - :param override_parameters: Key value pairs where the key value is overridden by the value. - :type override_parameters: dict - :param related_link_comment: Comment on the link that will link the new clone test case to the original Set null for no comment - :type related_link_comment: str - """ - - _attribute_map = { - 'clone_requirements': {'key': 'cloneRequirements', 'type': 'bool'}, - 'copy_all_suites': {'key': 'copyAllSuites', 'type': 'bool'}, - 'copy_ancestor_hierarchy': {'key': 'copyAncestorHierarchy', 'type': 'bool'}, - 'destination_work_item_type': {'key': 'destinationWorkItemType', 'type': 'str'}, - 'override_parameters': {'key': 'overrideParameters', 'type': '{str}'}, - 'related_link_comment': {'key': 'relatedLinkComment', 'type': 'str'} - } - - def __init__(self, clone_requirements=None, copy_all_suites=None, copy_ancestor_hierarchy=None, destination_work_item_type=None, override_parameters=None, related_link_comment=None): - super(CloneOptions, self).__init__() - self.clone_requirements = clone_requirements - self.copy_all_suites = copy_all_suites - self.copy_ancestor_hierarchy = copy_ancestor_hierarchy - self.destination_work_item_type = destination_work_item_type - self.override_parameters = override_parameters - self.related_link_comment = related_link_comment diff --git a/vsts/vsts/test/v4_1/models/clone_statistics.py b/vsts/vsts/test/v4_1/models/clone_statistics.py deleted file mode 100644 index f3ba75a3..00000000 --- a/vsts/vsts/test/v4_1/models/clone_statistics.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CloneStatistics(Model): - """CloneStatistics. - - :param cloned_requirements_count: Number of Requirments cloned so far. - :type cloned_requirements_count: int - :param cloned_shared_steps_count: Number of shared steps cloned so far. - :type cloned_shared_steps_count: int - :param cloned_test_cases_count: Number of test cases cloned so far - :type cloned_test_cases_count: int - :param total_requirements_count: Total number of requirements to be cloned - :type total_requirements_count: int - :param total_test_cases_count: Total number of test cases to be cloned - :type total_test_cases_count: int - """ - - _attribute_map = { - 'cloned_requirements_count': {'key': 'clonedRequirementsCount', 'type': 'int'}, - 'cloned_shared_steps_count': {'key': 'clonedSharedStepsCount', 'type': 'int'}, - 'cloned_test_cases_count': {'key': 'clonedTestCasesCount', 'type': 'int'}, - 'total_requirements_count': {'key': 'totalRequirementsCount', 'type': 'int'}, - 'total_test_cases_count': {'key': 'totalTestCasesCount', 'type': 'int'} - } - - def __init__(self, cloned_requirements_count=None, cloned_shared_steps_count=None, cloned_test_cases_count=None, total_requirements_count=None, total_test_cases_count=None): - super(CloneStatistics, self).__init__() - self.cloned_requirements_count = cloned_requirements_count - self.cloned_shared_steps_count = cloned_shared_steps_count - self.cloned_test_cases_count = cloned_test_cases_count - self.total_requirements_count = total_requirements_count - self.total_test_cases_count = total_test_cases_count diff --git a/vsts/vsts/test/v4_1/models/code_coverage_data.py b/vsts/vsts/test/v4_1/models/code_coverage_data.py deleted file mode 100644 index 0c88e782..00000000 --- a/vsts/vsts/test/v4_1/models/code_coverage_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeCoverageData(Model): - """CodeCoverageData. - - :param build_flavor: Flavor of build for which data is retrieved/published - :type build_flavor: str - :param build_platform: Platform of build for which data is retrieved/published - :type build_platform: str - :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` - """ - - _attribute_map = { - 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, - 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, - 'coverage_stats': {'key': 'coverageStats', 'type': '[CodeCoverageStatistics]'} - } - - def __init__(self, build_flavor=None, build_platform=None, coverage_stats=None): - super(CodeCoverageData, self).__init__() - self.build_flavor = build_flavor - self.build_platform = build_platform - self.coverage_stats = coverage_stats diff --git a/vsts/vsts/test/v4_1/models/code_coverage_statistics.py b/vsts/vsts/test/v4_1/models/code_coverage_statistics.py deleted file mode 100644 index ccc562ad..00000000 --- a/vsts/vsts/test/v4_1/models/code_coverage_statistics.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeCoverageStatistics(Model): - """CodeCoverageStatistics. - - :param covered: Covered units - :type covered: int - :param delta: Delta of coverage - :type delta: float - :param is_delta_available: Is delta valid - :type is_delta_available: bool - :param label: Label of coverage data ("Blocks", "Statements", "Modules", etc.) - :type label: str - :param position: Position of label - :type position: int - :param total: Total units - :type total: int - """ - - _attribute_map = { - 'covered': {'key': 'covered', 'type': 'int'}, - 'delta': {'key': 'delta', 'type': 'float'}, - 'is_delta_available': {'key': 'isDeltaAvailable', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'int'}, - 'total': {'key': 'total', 'type': 'int'} - } - - def __init__(self, covered=None, delta=None, is_delta_available=None, label=None, position=None, total=None): - super(CodeCoverageStatistics, self).__init__() - self.covered = covered - self.delta = delta - self.is_delta_available = is_delta_available - self.label = label - self.position = position - self.total = total diff --git a/vsts/vsts/test/v4_1/models/code_coverage_summary.py b/vsts/vsts/test/v4_1/models/code_coverage_summary.py deleted file mode 100644 index 0938ea34..00000000 --- a/vsts/vsts/test/v4_1/models/code_coverage_summary.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CodeCoverageSummary(Model): - """CodeCoverageSummary. - - :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` - :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` - :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'coverage_data': {'key': 'coverageData', 'type': '[CodeCoverageData]'}, - 'delta_build': {'key': 'deltaBuild', 'type': 'ShallowReference'} - } - - def __init__(self, build=None, coverage_data=None, delta_build=None): - super(CodeCoverageSummary, self).__init__() - self.build = build - self.coverage_data = coverage_data - self.delta_build = delta_build diff --git a/vsts/vsts/test/v4_1/models/coverage_statistics.py b/vsts/vsts/test/v4_1/models/coverage_statistics.py deleted file mode 100644 index 7b7704db..00000000 --- a/vsts/vsts/test/v4_1/models/coverage_statistics.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CoverageStatistics(Model): - """CoverageStatistics. - - :param blocks_covered: - :type blocks_covered: int - :param blocks_not_covered: - :type blocks_not_covered: int - :param lines_covered: - :type lines_covered: int - :param lines_not_covered: - :type lines_not_covered: int - :param lines_partially_covered: - :type lines_partially_covered: int - """ - - _attribute_map = { - 'blocks_covered': {'key': 'blocksCovered', 'type': 'int'}, - 'blocks_not_covered': {'key': 'blocksNotCovered', 'type': 'int'}, - 'lines_covered': {'key': 'linesCovered', 'type': 'int'}, - 'lines_not_covered': {'key': 'linesNotCovered', 'type': 'int'}, - 'lines_partially_covered': {'key': 'linesPartiallyCovered', 'type': 'int'} - } - - def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=None, lines_not_covered=None, lines_partially_covered=None): - super(CoverageStatistics, self).__init__() - self.blocks_covered = blocks_covered - self.blocks_not_covered = blocks_not_covered - self.lines_covered = lines_covered - self.lines_not_covered = lines_not_covered - self.lines_partially_covered = lines_partially_covered diff --git a/vsts/vsts/test/v4_1/models/custom_test_field.py b/vsts/vsts/test/v4_1/models/custom_test_field.py deleted file mode 100644 index 80ba7cf1..00000000 --- a/vsts/vsts/test/v4_1/models/custom_test_field.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CustomTestField(Model): - """CustomTestField. - - :param field_name: - :type field_name: str - :param value: - :type value: object - """ - - _attribute_map = { - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, field_name=None, value=None): - super(CustomTestField, self).__init__() - self.field_name = field_name - self.value = value diff --git a/vsts/vsts/test/v4_1/models/custom_test_field_definition.py b/vsts/vsts/test/v4_1/models/custom_test_field_definition.py deleted file mode 100644 index bbb7e2a4..00000000 --- a/vsts/vsts/test/v4_1/models/custom_test_field_definition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CustomTestFieldDefinition(Model): - """CustomTestFieldDefinition. - - :param field_id: - :type field_id: int - :param field_name: - :type field_name: str - :param field_type: - :type field_type: object - :param scope: - :type scope: object - """ - - _attribute_map = { - 'field_id': {'key': 'fieldId', 'type': 'int'}, - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'field_type': {'key': 'fieldType', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'object'} - } - - def __init__(self, field_id=None, field_name=None, field_type=None, scope=None): - super(CustomTestFieldDefinition, self).__init__() - self.field_id = field_id - self.field_name = field_name - self.field_type = field_type - self.scope = scope diff --git a/vsts/vsts/test/v4_1/models/dtl_environment_details.py b/vsts/vsts/test/v4_1/models/dtl_environment_details.py deleted file mode 100644 index 25bebb48..00000000 --- a/vsts/vsts/test/v4_1/models/dtl_environment_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DtlEnvironmentDetails(Model): - """DtlEnvironmentDetails. - - :param csm_content: - :type csm_content: str - :param csm_parameters: - :type csm_parameters: str - :param subscription_name: - :type subscription_name: str - """ - - _attribute_map = { - 'csm_content': {'key': 'csmContent', 'type': 'str'}, - 'csm_parameters': {'key': 'csmParameters', 'type': 'str'}, - 'subscription_name': {'key': 'subscriptionName', 'type': 'str'} - } - - def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None): - super(DtlEnvironmentDetails, self).__init__() - self.csm_content = csm_content - self.csm_parameters = csm_parameters - self.subscription_name = subscription_name diff --git a/vsts/vsts/test/v4_1/models/failing_since.py b/vsts/vsts/test/v4_1/models/failing_since.py deleted file mode 100644 index e7e9bb1c..00000000 --- a/vsts/vsts/test/v4_1/models/failing_since.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FailingSince(Model): - """FailingSince. - - :param build: - :type build: :class:`BuildReference ` - :param date: - :type date: datetime - :param release: - :type release: :class:`ReleaseReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'BuildReference'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'} - } - - def __init__(self, build=None, date=None, release=None): - super(FailingSince, self).__init__() - self.build = build - self.date = date - self.release = release diff --git a/vsts/vsts/test/v4_1/models/field_details_for_test_results.py b/vsts/vsts/test/v4_1/models/field_details_for_test_results.py deleted file mode 100644 index 1f466b74..00000000 --- a/vsts/vsts/test/v4_1/models/field_details_for_test_results.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldDetailsForTestResults(Model): - """FieldDetailsForTestResults. - - :param field_name: Group by field name - :type field_name: str - :param groups_for_field: Group by field values - :type groups_for_field: list of object - """ - - _attribute_map = { - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'groups_for_field': {'key': 'groupsForField', 'type': '[object]'} - } - - def __init__(self, field_name=None, groups_for_field=None): - super(FieldDetailsForTestResults, self).__init__() - self.field_name = field_name - self.groups_for_field = groups_for_field diff --git a/vsts/vsts/test/v4_1/models/function_coverage.py b/vsts/vsts/test/v4_1/models/function_coverage.py deleted file mode 100644 index 166f947f..00000000 --- a/vsts/vsts/test/v4_1/models/function_coverage.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FunctionCoverage(Model): - """FunctionCoverage. - - :param class_: - :type class_: str - :param name: - :type name: str - :param namespace: - :type namespace: str - :param source_file: - :type source_file: str - :param statistics: - :type statistics: :class:`CoverageStatistics ` - """ - - _attribute_map = { - 'class_': {'key': 'class', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'source_file': {'key': 'sourceFile', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} - } - - def __init__(self, class_=None, name=None, namespace=None, source_file=None, statistics=None): - super(FunctionCoverage, self).__init__() - self.class_ = class_ - self.name = name - self.namespace = namespace - self.source_file = source_file - self.statistics = statistics diff --git a/vsts/vsts/test/v4_1/models/graph_subject_base.py b/vsts/vsts/test/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/test/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/test/v4_1/models/identity_ref.py b/vsts/vsts/test/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/test/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/test/v4_1/models/last_result_details.py b/vsts/vsts/test/v4_1/models/last_result_details.py deleted file mode 100644 index 32968581..00000000 --- a/vsts/vsts/test/v4_1/models/last_result_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LastResultDetails(Model): - """LastResultDetails. - - :param date_completed: - :type date_completed: datetime - :param duration: - :type duration: long - :param run_by: - :type run_by: :class:`IdentityRef ` - """ - - _attribute_map = { - 'date_completed': {'key': 'dateCompleted', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'long'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'} - } - - def __init__(self, date_completed=None, duration=None, run_by=None): - super(LastResultDetails, self).__init__() - self.date_completed = date_completed - self.duration = duration - self.run_by = run_by diff --git a/vsts/vsts/test/v4_1/models/linked_work_items_query.py b/vsts/vsts/test/v4_1/models/linked_work_items_query.py deleted file mode 100644 index a9d0c50e..00000000 --- a/vsts/vsts/test/v4_1/models/linked_work_items_query.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LinkedWorkItemsQuery(Model): - """LinkedWorkItemsQuery. - - :param automated_test_names: - :type automated_test_names: list of str - :param plan_id: - :type plan_id: int - :param point_ids: - :type point_ids: list of int - :param suite_ids: - :type suite_ids: list of int - :param test_case_ids: - :type test_case_ids: list of int - :param work_item_category: - :type work_item_category: str - """ - - _attribute_map = { - 'automated_test_names': {'key': 'automatedTestNames', 'type': '[str]'}, - 'plan_id': {'key': 'planId', 'type': 'int'}, - 'point_ids': {'key': 'pointIds', 'type': '[int]'}, - 'suite_ids': {'key': 'suiteIds', 'type': '[int]'}, - 'test_case_ids': {'key': 'testCaseIds', 'type': '[int]'}, - 'work_item_category': {'key': 'workItemCategory', 'type': 'str'} - } - - def __init__(self, automated_test_names=None, plan_id=None, point_ids=None, suite_ids=None, test_case_ids=None, work_item_category=None): - super(LinkedWorkItemsQuery, self).__init__() - self.automated_test_names = automated_test_names - self.plan_id = plan_id - self.point_ids = point_ids - self.suite_ids = suite_ids - self.test_case_ids = test_case_ids - self.work_item_category = work_item_category diff --git a/vsts/vsts/test/v4_1/models/linked_work_items_query_result.py b/vsts/vsts/test/v4_1/models/linked_work_items_query_result.py deleted file mode 100644 index 0b82bfc6..00000000 --- a/vsts/vsts/test/v4_1/models/linked_work_items_query_result.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class LinkedWorkItemsQueryResult(Model): - """LinkedWorkItemsQueryResult. - - :param automated_test_name: - :type automated_test_name: str - :param plan_id: - :type plan_id: int - :param point_id: - :type point_id: int - :param suite_id: - :type suite_id: int - :param test_case_id: - :type test_case_id: int - :param work_items: - :type work_items: list of :class:`WorkItemReference ` - """ - - _attribute_map = { - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'plan_id': {'key': 'planId', 'type': 'int'}, - 'point_id': {'key': 'pointId', 'type': 'int'}, - 'suite_id': {'key': 'suiteId', 'type': 'int'}, - 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, - 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} - } - - def __init__(self, automated_test_name=None, plan_id=None, point_id=None, suite_id=None, test_case_id=None, work_items=None): - super(LinkedWorkItemsQueryResult, self).__init__() - self.automated_test_name = automated_test_name - self.plan_id = plan_id - self.point_id = point_id - self.suite_id = suite_id - self.test_case_id = test_case_id - self.work_items = work_items diff --git a/vsts/vsts/test/v4_1/models/module_coverage.py b/vsts/vsts/test/v4_1/models/module_coverage.py deleted file mode 100644 index 648a13a9..00000000 --- a/vsts/vsts/test/v4_1/models/module_coverage.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ModuleCoverage(Model): - """ModuleCoverage. - - :param block_count: - :type block_count: int - :param block_data: - :type block_data: str - :param functions: - :type functions: list of :class:`FunctionCoverage ` - :param name: - :type name: str - :param signature: - :type signature: str - :param signature_age: - :type signature_age: int - :param statistics: - :type statistics: :class:`CoverageStatistics ` - """ - - _attribute_map = { - 'block_count': {'key': 'blockCount', 'type': 'int'}, - 'block_data': {'key': 'blockData', 'type': 'str'}, - 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'signature': {'key': 'signature', 'type': 'str'}, - 'signature_age': {'key': 'signatureAge', 'type': 'int'}, - 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} - } - - def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): - super(ModuleCoverage, self).__init__() - self.block_count = block_count - self.block_data = block_data - self.functions = functions - self.name = name - self.signature = signature - self.signature_age = signature_age - self.statistics = statistics diff --git a/vsts/vsts/test/v4_1/models/name_value_pair.py b/vsts/vsts/test/v4_1/models/name_value_pair.py deleted file mode 100644 index 0c71209a..00000000 --- a/vsts/vsts/test/v4_1/models/name_value_pair.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class NameValuePair(Model): - """NameValuePair. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(NameValuePair, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/test/v4_1/models/plan_update_model.py b/vsts/vsts/test/v4_1/models/plan_update_model.py deleted file mode 100644 index 871d9971..00000000 --- a/vsts/vsts/test/v4_1/models/plan_update_model.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PlanUpdateModel(Model): - """PlanUpdateModel. - - :param area: - :type area: :class:`ShallowReference ` - :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` - :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` - :param configuration_ids: - :type configuration_ids: list of int - :param description: - :type description: str - :param end_date: - :type end_date: str - :param iteration: - :type iteration: str - :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` - :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param start_date: - :type start_date: str - :param state: - :type state: str - :param status: - :type status: str - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, - 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, - 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'end_date': {'key': 'endDate', 'type': 'str'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, - 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, - 'start_date': {'key': 'startDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'} - } - - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): - super(PlanUpdateModel, self).__init__() - self.area = area - self.automated_test_environment = automated_test_environment - self.automated_test_settings = automated_test_settings - self.build = build - self.build_definition = build_definition - self.configuration_ids = configuration_ids - self.description = description - self.end_date = end_date - self.iteration = iteration - self.manual_test_environment = manual_test_environment - self.manual_test_settings = manual_test_settings - self.name = name - self.owner = owner - self.release_environment_definition = release_environment_definition - self.start_date = start_date - self.state = state - self.status = status diff --git a/vsts/vsts/test/v4_1/models/point_assignment.py b/vsts/vsts/test/v4_1/models/point_assignment.py deleted file mode 100644 index c8018a1c..00000000 --- a/vsts/vsts/test/v4_1/models/point_assignment.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PointAssignment(Model): - """PointAssignment. - - :param configuration: - :type configuration: :class:`ShallowReference ` - :param tester: - :type tester: :class:`IdentityRef ` - """ - - _attribute_map = { - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'tester': {'key': 'tester', 'type': 'IdentityRef'} - } - - def __init__(self, configuration=None, tester=None): - super(PointAssignment, self).__init__() - self.configuration = configuration - self.tester = tester diff --git a/vsts/vsts/test/v4_1/models/point_update_model.py b/vsts/vsts/test/v4_1/models/point_update_model.py deleted file mode 100644 index 537ea684..00000000 --- a/vsts/vsts/test/v4_1/models/point_update_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PointUpdateModel(Model): - """PointUpdateModel. - - :param outcome: - :type outcome: str - :param reset_to_active: - :type reset_to_active: bool - :param tester: - :type tester: :class:`IdentityRef ` - """ - - _attribute_map = { - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'reset_to_active': {'key': 'resetToActive', 'type': 'bool'}, - 'tester': {'key': 'tester', 'type': 'IdentityRef'} - } - - def __init__(self, outcome=None, reset_to_active=None, tester=None): - super(PointUpdateModel, self).__init__() - self.outcome = outcome - self.reset_to_active = reset_to_active - self.tester = tester diff --git a/vsts/vsts/test/v4_1/models/points_filter.py b/vsts/vsts/test/v4_1/models/points_filter.py deleted file mode 100644 index 10c32746..00000000 --- a/vsts/vsts/test/v4_1/models/points_filter.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PointsFilter(Model): - """PointsFilter. - - :param configuration_names: - :type configuration_names: list of str - :param testcase_ids: - :type testcase_ids: list of int - :param testers: - :type testers: list of :class:`IdentityRef ` - """ - - _attribute_map = { - 'configuration_names': {'key': 'configurationNames', 'type': '[str]'}, - 'testcase_ids': {'key': 'testcaseIds', 'type': '[int]'}, - 'testers': {'key': 'testers', 'type': '[IdentityRef]'} - } - - def __init__(self, configuration_names=None, testcase_ids=None, testers=None): - super(PointsFilter, self).__init__() - self.configuration_names = configuration_names - self.testcase_ids = testcase_ids - self.testers = testers diff --git a/vsts/vsts/test/v4_1/models/property_bag.py b/vsts/vsts/test/v4_1/models/property_bag.py deleted file mode 100644 index 40505531..00000000 --- a/vsts/vsts/test/v4_1/models/property_bag.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PropertyBag(Model): - """PropertyBag. - - :param bag: Generic store for test session data - :type bag: dict - """ - - _attribute_map = { - 'bag': {'key': 'bag', 'type': '{str}'} - } - - def __init__(self, bag=None): - super(PropertyBag, self).__init__() - self.bag = bag diff --git a/vsts/vsts/test/v4_1/models/query_model.py b/vsts/vsts/test/v4_1/models/query_model.py deleted file mode 100644 index 31f521ca..00000000 --- a/vsts/vsts/test/v4_1/models/query_model.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueryModel(Model): - """QueryModel. - - :param query: - :type query: str - """ - - _attribute_map = { - 'query': {'key': 'query', 'type': 'str'} - } - - def __init__(self, query=None): - super(QueryModel, self).__init__() - self.query = query diff --git a/vsts/vsts/test/v4_1/models/reference_links.py b/vsts/vsts/test/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/test/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/test/v4_1/models/release_environment_definition_reference.py b/vsts/vsts/test/v4_1/models/release_environment_definition_reference.py deleted file mode 100644 index 8cc15033..00000000 --- a/vsts/vsts/test/v4_1/models/release_environment_definition_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseEnvironmentDefinitionReference(Model): - """ReleaseEnvironmentDefinitionReference. - - :param definition_id: - :type definition_id: int - :param environment_definition_id: - :type environment_definition_id: int - """ - - _attribute_map = { - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'} - } - - def __init__(self, definition_id=None, environment_definition_id=None): - super(ReleaseEnvironmentDefinitionReference, self).__init__() - self.definition_id = definition_id - self.environment_definition_id = environment_definition_id diff --git a/vsts/vsts/test/v4_1/models/release_reference.py b/vsts/vsts/test/v4_1/models/release_reference.py deleted file mode 100644 index 370c7131..00000000 --- a/vsts/vsts/test/v4_1/models/release_reference.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReleaseReference(Model): - """ReleaseReference. - - :param definition_id: - :type definition_id: int - :param environment_definition_id: - :type environment_definition_id: int - :param environment_definition_name: - :type environment_definition_name: str - :param environment_id: - :type environment_id: int - :param environment_name: - :type environment_name: str - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, - 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, - 'environment_id': {'key': 'environmentId', 'type': 'int'}, - 'environment_name': {'key': 'environmentName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): - super(ReleaseReference, self).__init__() - self.definition_id = definition_id - self.environment_definition_id = environment_definition_id - self.environment_definition_name = environment_definition_name - self.environment_id = environment_id - self.environment_name = environment_name - self.id = id - self.name = name diff --git a/vsts/vsts/test/v4_1/models/result_retention_settings.py b/vsts/vsts/test/v4_1/models/result_retention_settings.py deleted file mode 100644 index acd8852c..00000000 --- a/vsts/vsts/test/v4_1/models/result_retention_settings.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResultRetentionSettings(Model): - """ResultRetentionSettings. - - :param automated_results_retention_duration: - :type automated_results_retention_duration: int - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param manual_results_retention_duration: - :type manual_results_retention_duration: int - """ - - _attribute_map = { - 'automated_results_retention_duration': {'key': 'automatedResultsRetentionDuration', 'type': 'int'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'manual_results_retention_duration': {'key': 'manualResultsRetentionDuration', 'type': 'int'} - } - - def __init__(self, automated_results_retention_duration=None, last_updated_by=None, last_updated_date=None, manual_results_retention_duration=None): - super(ResultRetentionSettings, self).__init__() - self.automated_results_retention_duration = automated_results_retention_duration - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.manual_results_retention_duration = manual_results_retention_duration diff --git a/vsts/vsts/test/v4_1/models/results_filter.py b/vsts/vsts/test/v4_1/models/results_filter.py deleted file mode 100644 index 139a5be1..00000000 --- a/vsts/vsts/test/v4_1/models/results_filter.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ResultsFilter(Model): - """ResultsFilter. - - :param automated_test_name: - :type automated_test_name: str - :param branch: - :type branch: str - :param group_by: - :type group_by: str - :param max_complete_date: - :type max_complete_date: datetime - :param results_count: - :type results_count: int - :param test_case_reference_ids: - :type test_case_reference_ids: list of int - :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` - :param trend_days: - :type trend_days: int - """ - - _attribute_map = { - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'branch': {'key': 'branch', 'type': 'str'}, - 'group_by': {'key': 'groupBy', 'type': 'str'}, - 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, - 'results_count': {'key': 'resultsCount', 'type': 'int'}, - 'test_case_reference_ids': {'key': 'testCaseReferenceIds', 'type': '[int]'}, - 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, - 'trend_days': {'key': 'trendDays', 'type': 'int'} - } - - def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_case_reference_ids=None, test_results_context=None, trend_days=None): - super(ResultsFilter, self).__init__() - self.automated_test_name = automated_test_name - self.branch = branch - self.group_by = group_by - self.max_complete_date = max_complete_date - self.results_count = results_count - self.test_case_reference_ids = test_case_reference_ids - self.test_results_context = test_results_context - self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_1/models/run_create_model.py b/vsts/vsts/test/v4_1/models/run_create_model.py deleted file mode 100644 index 61f71c0d..00000000 --- a/vsts/vsts/test/v4_1/models/run_create_model.py +++ /dev/null @@ -1,145 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunCreateModel(Model): - """RunCreateModel. - - :param automated: - :type automated: bool - :param build: - :type build: :class:`ShallowReference ` - :param build_drop_location: - :type build_drop_location: str - :param build_flavor: - :type build_flavor: str - :param build_platform: - :type build_platform: str - :param comment: - :type comment: str - :param complete_date: - :type complete_date: str - :param configuration_ids: - :type configuration_ids: list of int - :param controller: - :type controller: str - :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_test_environment: - :type dtl_test_environment: :class:`ShallowReference ` - :param due_date: - :type due_date: str - :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` - :param error_message: - :type error_message: str - :param filter: - :type filter: :class:`RunFilter ` - :param iteration: - :type iteration: str - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param plan: - :type plan: :class:`ShallowReference ` - :param point_ids: - :type point_ids: list of int - :param release_environment_uri: - :type release_environment_uri: str - :param release_uri: - :type release_uri: str - :param run_timeout: - :type run_timeout: object - :param source_workflow: - :type source_workflow: str - :param start_date: - :type start_date: str - :param state: - :type state: str - :param test_configurations_mapping: - :type test_configurations_mapping: str - :param test_environment_id: - :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` - :param type: - :type type: str - """ - - _attribute_map = { - 'automated': {'key': 'automated', 'type': 'bool'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, - 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, - 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'complete_date': {'key': 'completeDate', 'type': 'str'}, - 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, - 'controller': {'key': 'controller', 'type': 'str'}, - 'custom_test_fields': {'key': 'customTestFields', 'type': '[CustomTestField]'}, - 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, - 'dtl_test_environment': {'key': 'dtlTestEnvironment', 'type': 'ShallowReference'}, - 'due_date': {'key': 'dueDate', 'type': 'str'}, - 'environment_details': {'key': 'environmentDetails', 'type': 'DtlEnvironmentDetails'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'RunFilter'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'plan': {'key': 'plan', 'type': 'ShallowReference'}, - 'point_ids': {'key': 'pointIds', 'type': '[int]'}, - 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, - 'release_uri': {'key': 'releaseUri', 'type': 'str'}, - 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, - 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, - 'start_date': {'key': 'startDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_configurations_mapping': {'key': 'testConfigurationsMapping', 'type': 'str'}, - 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, - 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): - super(RunCreateModel, self).__init__() - self.automated = automated - self.build = build - self.build_drop_location = build_drop_location - self.build_flavor = build_flavor - self.build_platform = build_platform - self.comment = comment - self.complete_date = complete_date - self.configuration_ids = configuration_ids - self.controller = controller - self.custom_test_fields = custom_test_fields - self.dtl_aut_environment = dtl_aut_environment - self.dtl_test_environment = dtl_test_environment - self.due_date = due_date - self.environment_details = environment_details - self.error_message = error_message - self.filter = filter - self.iteration = iteration - self.name = name - self.owner = owner - self.plan = plan - self.point_ids = point_ids - self.release_environment_uri = release_environment_uri - self.release_uri = release_uri - self.run_timeout = run_timeout - self.source_workflow = source_workflow - self.start_date = start_date - self.state = state - self.test_configurations_mapping = test_configurations_mapping - self.test_environment_id = test_environment_id - self.test_settings = test_settings - self.type = type diff --git a/vsts/vsts/test/v4_1/models/run_filter.py b/vsts/vsts/test/v4_1/models/run_filter.py deleted file mode 100644 index 55ba8921..00000000 --- a/vsts/vsts/test/v4_1/models/run_filter.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunFilter(Model): - """RunFilter. - - :param source_filter: filter for the test case sources (test containers) - :type source_filter: str - :param test_case_filter: filter for the test cases - :type test_case_filter: str - """ - - _attribute_map = { - 'source_filter': {'key': 'sourceFilter', 'type': 'str'}, - 'test_case_filter': {'key': 'testCaseFilter', 'type': 'str'} - } - - def __init__(self, source_filter=None, test_case_filter=None): - super(RunFilter, self).__init__() - self.source_filter = source_filter - self.test_case_filter = test_case_filter diff --git a/vsts/vsts/test/v4_1/models/run_statistic.py b/vsts/vsts/test/v4_1/models/run_statistic.py deleted file mode 100644 index 45601aec..00000000 --- a/vsts/vsts/test/v4_1/models/run_statistic.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunStatistic(Model): - """RunStatistic. - - :param count: - :type count: int - :param outcome: - :type outcome: str - :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` - :param state: - :type state: str - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'TestResolutionState'}, - 'state': {'key': 'state', 'type': 'str'} - } - - def __init__(self, count=None, outcome=None, resolution_state=None, state=None): - super(RunStatistic, self).__init__() - self.count = count - self.outcome = outcome - self.resolution_state = resolution_state - self.state = state diff --git a/vsts/vsts/test/v4_1/models/run_update_model.py b/vsts/vsts/test/v4_1/models/run_update_model.py deleted file mode 100644 index 589291c4..00000000 --- a/vsts/vsts/test/v4_1/models/run_update_model.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RunUpdateModel(Model): - """RunUpdateModel. - - :param build: - :type build: :class:`ShallowReference ` - :param build_drop_location: - :type build_drop_location: str - :param build_flavor: - :type build_flavor: str - :param build_platform: - :type build_platform: str - :param comment: - :type comment: str - :param completed_date: - :type completed_date: str - :param controller: - :type controller: str - :param delete_in_progress_results: - :type delete_in_progress_results: bool - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` - :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` - :param due_date: - :type due_date: str - :param error_message: - :type error_message: str - :param iteration: - :type iteration: str - :param log_entries: - :type log_entries: list of :class:`TestMessageLogDetails ` - :param name: - :type name: str - :param release_environment_uri: - :type release_environment_uri: str - :param release_uri: - :type release_uri: str - :param source_workflow: - :type source_workflow: str - :param started_date: - :type started_date: str - :param state: - :type state: str - :param substate: - :type substate: object - :param test_environment_id: - :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, - 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, - 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'str'}, - 'controller': {'key': 'controller', 'type': 'str'}, - 'delete_in_progress_results': {'key': 'deleteInProgressResults', 'type': 'bool'}, - 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment_details': {'key': 'dtlEnvironmentDetails', 'type': 'DtlEnvironmentDetails'}, - 'due_date': {'key': 'dueDate', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'log_entries': {'key': 'logEntries', 'type': '[TestMessageLogDetails]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, - 'release_uri': {'key': 'releaseUri', 'type': 'str'}, - 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'substate': {'key': 'substate', 'type': 'object'}, - 'test_environment_id': {'key': 'testEnvironmentId', 'type': 'str'}, - 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'} - } - - def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): - super(RunUpdateModel, self).__init__() - self.build = build - self.build_drop_location = build_drop_location - self.build_flavor = build_flavor - self.build_platform = build_platform - self.comment = comment - self.completed_date = completed_date - self.controller = controller - self.delete_in_progress_results = delete_in_progress_results - self.dtl_aut_environment = dtl_aut_environment - self.dtl_environment = dtl_environment - self.dtl_environment_details = dtl_environment_details - self.due_date = due_date - self.error_message = error_message - self.iteration = iteration - self.log_entries = log_entries - self.name = name - self.release_environment_uri = release_environment_uri - self.release_uri = release_uri - self.source_workflow = source_workflow - self.started_date = started_date - self.state = state - self.substate = substate - self.test_environment_id = test_environment_id - self.test_settings = test_settings diff --git a/vsts/vsts/test/v4_1/models/shallow_reference.py b/vsts/vsts/test/v4_1/models/shallow_reference.py deleted file mode 100644 index d4cffc81..00000000 --- a/vsts/vsts/test/v4_1/models/shallow_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ShallowReference(Model): - """ShallowReference. - - :param id: Id of the resource - :type id: str - :param name: Name of the linked resource (definition name, controller name, etc.) - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(ShallowReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/test/v4_1/models/shallow_test_case_result.py b/vsts/vsts/test/v4_1/models/shallow_test_case_result.py deleted file mode 100644 index fec1156f..00000000 --- a/vsts/vsts/test/v4_1/models/shallow_test_case_result.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ShallowTestCaseResult(Model): - """ShallowTestCaseResult. - - :param automated_test_storage: - :type automated_test_storage: str - :param id: - :type id: int - :param is_re_run: - :type is_re_run: bool - :param outcome: - :type outcome: str - :param owner: - :type owner: str - :param priority: - :type priority: int - :param ref_id: - :type ref_id: int - :param run_id: - :type run_id: int - :param test_case_title: - :type test_case_title: str - """ - - _attribute_map = { - 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_re_run': {'key': 'isReRun', 'type': 'bool'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'ref_id': {'key': 'refId', 'type': 'int'}, - 'run_id': {'key': 'runId', 'type': 'int'}, - 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'} - } - - def __init__(self, automated_test_storage=None, id=None, is_re_run=None, outcome=None, owner=None, priority=None, ref_id=None, run_id=None, test_case_title=None): - super(ShallowTestCaseResult, self).__init__() - self.automated_test_storage = automated_test_storage - self.id = id - self.is_re_run = is_re_run - self.outcome = outcome - self.owner = owner - self.priority = priority - self.ref_id = ref_id - self.run_id = run_id - self.test_case_title = test_case_title diff --git a/vsts/vsts/test/v4_1/models/shared_step_model.py b/vsts/vsts/test/v4_1/models/shared_step_model.py deleted file mode 100644 index 07333033..00000000 --- a/vsts/vsts/test/v4_1/models/shared_step_model.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SharedStepModel(Model): - """SharedStepModel. - - :param id: - :type id: int - :param revision: - :type revision: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, id=None, revision=None): - super(SharedStepModel, self).__init__() - self.id = id - self.revision = revision diff --git a/vsts/vsts/test/v4_1/models/suite_create_model.py b/vsts/vsts/test/v4_1/models/suite_create_model.py deleted file mode 100644 index cbcd78dd..00000000 --- a/vsts/vsts/test/v4_1/models/suite_create_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteCreateModel(Model): - """SuiteCreateModel. - - :param name: - :type name: str - :param query_string: - :type query_string: str - :param requirement_ids: - :type requirement_ids: list of int - :param suite_type: - :type suite_type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'query_string': {'key': 'queryString', 'type': 'str'}, - 'requirement_ids': {'key': 'requirementIds', 'type': '[int]'}, - 'suite_type': {'key': 'suiteType', 'type': 'str'} - } - - def __init__(self, name=None, query_string=None, requirement_ids=None, suite_type=None): - super(SuiteCreateModel, self).__init__() - self.name = name - self.query_string = query_string - self.requirement_ids = requirement_ids - self.suite_type = suite_type diff --git a/vsts/vsts/test/v4_1/models/suite_entry.py b/vsts/vsts/test/v4_1/models/suite_entry.py deleted file mode 100644 index 2f6dade3..00000000 --- a/vsts/vsts/test/v4_1/models/suite_entry.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteEntry(Model): - """SuiteEntry. - - :param child_suite_id: Id of child suite in a suite - :type child_suite_id: int - :param sequence_number: Sequence number for the test case or child suite in the suite - :type sequence_number: int - :param suite_id: Id for the suite - :type suite_id: int - :param test_case_id: Id of a test case in a suite - :type test_case_id: int - """ - - _attribute_map = { - 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, - 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, - 'suite_id': {'key': 'suiteId', 'type': 'int'}, - 'test_case_id': {'key': 'testCaseId', 'type': 'int'} - } - - def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, test_case_id=None): - super(SuiteEntry, self).__init__() - self.child_suite_id = child_suite_id - self.sequence_number = sequence_number - self.suite_id = suite_id - self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_1/models/suite_entry_update_model.py b/vsts/vsts/test/v4_1/models/suite_entry_update_model.py deleted file mode 100644 index afcb6f04..00000000 --- a/vsts/vsts/test/v4_1/models/suite_entry_update_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteEntryUpdateModel(Model): - """SuiteEntryUpdateModel. - - :param child_suite_id: Id of child suite in a suite - :type child_suite_id: int - :param sequence_number: Updated sequence number for the test case or child suite in the suite - :type sequence_number: int - :param test_case_id: Id of a test case in a suite - :type test_case_id: int - """ - - _attribute_map = { - 'child_suite_id': {'key': 'childSuiteId', 'type': 'int'}, - 'sequence_number': {'key': 'sequenceNumber', 'type': 'int'}, - 'test_case_id': {'key': 'testCaseId', 'type': 'int'} - } - - def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None): - super(SuiteEntryUpdateModel, self).__init__() - self.child_suite_id = child_suite_id - self.sequence_number = sequence_number - self.test_case_id = test_case_id diff --git a/vsts/vsts/test/v4_1/models/suite_test_case.py b/vsts/vsts/test/v4_1/models/suite_test_case.py deleted file mode 100644 index 33004848..00000000 --- a/vsts/vsts/test/v4_1/models/suite_test_case.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteTestCase(Model): - """SuiteTestCase. - - :param point_assignments: - :type point_assignments: list of :class:`PointAssignment ` - :param test_case: - :type test_case: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'point_assignments': {'key': 'pointAssignments', 'type': '[PointAssignment]'}, - 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'} - } - - def __init__(self, point_assignments=None, test_case=None): - super(SuiteTestCase, self).__init__() - self.point_assignments = point_assignments - self.test_case = test_case diff --git a/vsts/vsts/test/v4_1/models/suite_update_model.py b/vsts/vsts/test/v4_1/models/suite_update_model.py deleted file mode 100644 index ae660eee..00000000 --- a/vsts/vsts/test/v4_1/models/suite_update_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class SuiteUpdateModel(Model): - """SuiteUpdateModel. - - :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` - :param default_testers: - :type default_testers: list of :class:`ShallowReference ` - :param inherit_default_configurations: - :type inherit_default_configurations: bool - :param name: - :type name: str - :param parent: - :type parent: :class:`ShallowReference ` - :param query_string: - :type query_string: str - """ - - _attribute_map = { - 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, - 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, - 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent': {'key': 'parent', 'type': 'ShallowReference'}, - 'query_string': {'key': 'queryString', 'type': 'str'} - } - - def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent=None, query_string=None): - super(SuiteUpdateModel, self).__init__() - self.default_configurations = default_configurations - self.default_testers = default_testers - self.inherit_default_configurations = inherit_default_configurations - self.name = name - self.parent = parent - self.query_string = query_string diff --git a/vsts/vsts/test/v4_1/models/team_context.py b/vsts/vsts/test/v4_1/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/test/v4_1/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/test/v4_1/models/team_project_reference.py b/vsts/vsts/test/v4_1/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/test/v4_1/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/test/v4_1/models/test_action_result_model.py b/vsts/vsts/test/v4_1/models/test_action_result_model.py deleted file mode 100644 index 64a39225..00000000 --- a/vsts/vsts/test/v4_1/models/test_action_result_model.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .test_result_model_base import TestResultModelBase - - -class TestActionResultModel(TestResultModelBase): - """TestActionResultModel. - - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param outcome: - :type outcome: str - :param started_date: - :type started_date: datetime - :param action_path: - :type action_path: str - :param iteration_id: - :type iteration_id: int - :param shared_step_model: - :type shared_step_model: :class:`SharedStepModel ` - :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" - :type step_identifier: str - :param url: - :type url: str - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'action_path': {'key': 'actionPath', 'type': 'str'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'}, - 'shared_step_model': {'key': 'sharedStepModel', 'type': 'SharedStepModel'}, - 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None, action_path=None, iteration_id=None, shared_step_model=None, step_identifier=None, url=None): - super(TestActionResultModel, self).__init__(comment=comment, completed_date=completed_date, duration_in_ms=duration_in_ms, error_message=error_message, outcome=outcome, started_date=started_date) - self.action_path = action_path - self.iteration_id = iteration_id - self.shared_step_model = shared_step_model - self.step_identifier = step_identifier - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_attachment.py b/vsts/vsts/test/v4_1/models/test_attachment.py deleted file mode 100644 index 908c2d12..00000000 --- a/vsts/vsts/test/v4_1/models/test_attachment.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestAttachment(Model): - """TestAttachment. - - :param attachment_type: - :type attachment_type: object - :param comment: - :type comment: str - :param created_date: - :type created_date: datetime - :param file_name: - :type file_name: str - :param id: - :type id: int - :param size: - :type size: long - :param url: - :type url: str - """ - - _attribute_map = { - 'attachment_type': {'key': 'attachmentType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'size': {'key': 'size', 'type': 'long'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, size=None, url=None): - super(TestAttachment, self).__init__() - self.attachment_type = attachment_type - self.comment = comment - self.created_date = created_date - self.file_name = file_name - self.id = id - self.size = size - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_attachment_reference.py b/vsts/vsts/test/v4_1/models/test_attachment_reference.py deleted file mode 100644 index c5fbe1c7..00000000 --- a/vsts/vsts/test/v4_1/models/test_attachment_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestAttachmentReference(Model): - """TestAttachmentReference. - - :param id: - :type id: int - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(TestAttachmentReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_attachment_request_model.py b/vsts/vsts/test/v4_1/models/test_attachment_request_model.py deleted file mode 100644 index bfe9d645..00000000 --- a/vsts/vsts/test/v4_1/models/test_attachment_request_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestAttachmentRequestModel(Model): - """TestAttachmentRequestModel. - - :param attachment_type: - :type attachment_type: str - :param comment: - :type comment: str - :param file_name: - :type file_name: str - :param stream: - :type stream: str - """ - - _attribute_map = { - 'attachment_type': {'key': 'attachmentType', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'stream': {'key': 'stream', 'type': 'str'} - } - - def __init__(self, attachment_type=None, comment=None, file_name=None, stream=None): - super(TestAttachmentRequestModel, self).__init__() - self.attachment_type = attachment_type - self.comment = comment - self.file_name = file_name - self.stream = stream diff --git a/vsts/vsts/test/v4_1/models/test_case_result.py b/vsts/vsts/test/v4_1/models/test_case_result.py deleted file mode 100644 index 6daff435..00000000 --- a/vsts/vsts/test/v4_1/models/test_case_result.py +++ /dev/null @@ -1,205 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResult(Model): - """TestCaseResult. - - :param afn_strip_id: - :type afn_strip_id: int - :param area: - :type area: :class:`ShallowReference ` - :param associated_bugs: - :type associated_bugs: list of :class:`ShallowReference ` - :param automated_test_id: - :type automated_test_id: str - :param automated_test_name: - :type automated_test_name: str - :param automated_test_storage: - :type automated_test_storage: str - :param automated_test_type: - :type automated_test_type: str - :param automated_test_type_id: - :type automated_test_type_id: str - :param build: - :type build: :class:`ShallowReference ` - :param build_reference: - :type build_reference: :class:`BuildReference ` - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param computer_name: - :type computer_name: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param created_date: - :type created_date: datetime - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param failing_since: - :type failing_since: :class:`FailingSince ` - :param failure_type: - :type failure_type: str - :param id: - :type id: int - :param iteration_details: - :type iteration_details: list of :class:`TestIterationDetailsModel ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param outcome: - :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param priority: - :type priority: int - :param project: - :type project: :class:`ShallowReference ` - :param release: - :type release: :class:`ShallowReference ` - :param release_reference: - :type release_reference: :class:`ReleaseReference ` - :param reset_count: - :type reset_count: int - :param resolution_state: - :type resolution_state: str - :param resolution_state_id: - :type resolution_state_id: int - :param revision: - :type revision: int - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: - :type stack_trace: str - :param started_date: - :type started_date: datetime - :param state: - :type state: str - :param test_case: - :type test_case: :class:`ShallowReference ` - :param test_case_reference_id: - :type test_case_reference_id: int - :param test_case_title: - :type test_case_title: str - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param test_point: - :type test_point: :class:`ShallowReference ` - :param test_run: - :type test_run: :class:`ShallowReference ` - :param test_suite: - :type test_suite: :class:`ShallowReference ` - :param url: - :type url: str - """ - - _attribute_map = { - 'afn_strip_id': {'key': 'afnStripId', 'type': 'int'}, - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'associated_bugs': {'key': 'associatedBugs', 'type': '[ShallowReference]'}, - 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, - 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, - 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_reference': {'key': 'buildReference', 'type': 'BuildReference'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'failing_since': {'key': 'failingSince', 'type': 'FailingSince'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'iteration_details': {'key': 'iterationDetails', 'type': '[TestIterationDetailsModel]'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'release': {'key': 'release', 'type': 'ShallowReference'}, - 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, - 'reset_count': {'key': 'resetCount', 'type': 'int'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, - 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, - 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, - 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, - 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, - 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, - 'test_run': {'key': 'testRun', 'type': 'ShallowReference'}, - 'test_suite': {'key': 'testSuite', 'type': 'ShallowReference'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): - super(TestCaseResult, self).__init__() - self.afn_strip_id = afn_strip_id - self.area = area - self.associated_bugs = associated_bugs - self.automated_test_id = automated_test_id - self.automated_test_name = automated_test_name - self.automated_test_storage = automated_test_storage - self.automated_test_type = automated_test_type - self.automated_test_type_id = automated_test_type_id - self.build = build - self.build_reference = build_reference - self.comment = comment - self.completed_date = completed_date - self.computer_name = computer_name - self.configuration = configuration - self.created_date = created_date - self.custom_fields = custom_fields - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.failing_since = failing_since - self.failure_type = failure_type - self.id = id - self.iteration_details = iteration_details - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.outcome = outcome - self.owner = owner - self.priority = priority - self.project = project - self.release = release - self.release_reference = release_reference - self.reset_count = reset_count - self.resolution_state = resolution_state - self.resolution_state_id = resolution_state_id - self.revision = revision - self.run_by = run_by - self.stack_trace = stack_trace - self.started_date = started_date - self.state = state - self.test_case = test_case - self.test_case_reference_id = test_case_reference_id - self.test_case_title = test_case_title - self.test_plan = test_plan - self.test_point = test_point - self.test_run = test_run - self.test_suite = test_suite - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py b/vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py deleted file mode 100644 index 7a7412e9..00000000 --- a/vsts/vsts/test/v4_1/models/test_case_result_attachment_model.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResultAttachmentModel(Model): - """TestCaseResultAttachmentModel. - - :param id: - :type id: int - :param iteration_id: - :type iteration_id: int - :param name: - :type name: str - :param size: - :type size: long - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): - super(TestCaseResultAttachmentModel, self).__init__() - self.id = id - self.iteration_id = iteration_id - self.name = name - self.size = size - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_case_result_identifier.py b/vsts/vsts/test/v4_1/models/test_case_result_identifier.py deleted file mode 100644 index b88a489d..00000000 --- a/vsts/vsts/test/v4_1/models/test_case_result_identifier.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResultIdentifier(Model): - """TestCaseResultIdentifier. - - :param test_result_id: - :type test_result_id: int - :param test_run_id: - :type test_run_id: int - """ - - _attribute_map = { - 'test_result_id': {'key': 'testResultId', 'type': 'int'}, - 'test_run_id': {'key': 'testRunId', 'type': 'int'} - } - - def __init__(self, test_result_id=None, test_run_id=None): - super(TestCaseResultIdentifier, self).__init__() - self.test_result_id = test_result_id - self.test_run_id = test_run_id diff --git a/vsts/vsts/test/v4_1/models/test_case_result_update_model.py b/vsts/vsts/test/v4_1/models/test_case_result_update_model.py deleted file mode 100644 index af1ecc54..00000000 --- a/vsts/vsts/test/v4_1/models/test_case_result_update_model.py +++ /dev/null @@ -1,93 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestCaseResultUpdateModel(Model): - """TestCaseResultUpdateModel. - - :param associated_work_items: - :type associated_work_items: list of int - :param automated_test_type_id: - :type automated_test_type_id: str - :param comment: - :type comment: str - :param completed_date: - :type completed_date: str - :param computer_name: - :type computer_name: str - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: - :type duration_in_ms: str - :param error_message: - :type error_message: str - :param failure_type: - :type failure_type: str - :param outcome: - :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param resolution_state: - :type resolution_state: str - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: - :type stack_trace: str - :param started_date: - :type started_date: str - :param state: - :type state: str - :param test_case_priority: - :type test_case_priority: str - :param test_result: - :type test_result: :class:`ShallowReference ` - """ - - _attribute_map = { - 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, - 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, - 'test_result': {'key': 'testResult', 'type': 'ShallowReference'} - } - - def __init__(self, associated_work_items=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case_priority=None, test_result=None): - super(TestCaseResultUpdateModel, self).__init__() - self.associated_work_items = associated_work_items - self.automated_test_type_id = automated_test_type_id - self.comment = comment - self.completed_date = completed_date - self.computer_name = computer_name - self.custom_fields = custom_fields - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.failure_type = failure_type - self.outcome = outcome - self.owner = owner - self.resolution_state = resolution_state - self.run_by = run_by - self.stack_trace = stack_trace - self.started_date = started_date - self.state = state - self.test_case_priority = test_case_priority - self.test_result = test_result diff --git a/vsts/vsts/test/v4_1/models/test_configuration.py b/vsts/vsts/test/v4_1/models/test_configuration.py deleted file mode 100644 index 5b4d53eb..00000000 --- a/vsts/vsts/test/v4_1/models/test_configuration.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestConfiguration(Model): - """TestConfiguration. - - :param area: Area of the configuration - :type area: :class:`ShallowReference ` - :param description: Description of the configuration - :type description: str - :param id: Id of the configuration - :type id: int - :param is_default: Is the configuration a default for the test plans - :type is_default: bool - :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: Last Updated Data - :type last_updated_date: datetime - :param name: Name of the configuration - :type name: str - :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` - :param revision: Revision of the the configuration - :type revision: int - :param state: State of the configuration - :type state: object - :param url: Url of Configuration Resource - :type url: str - :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[NameValuePair]'} - } - - def __init__(self, area=None, description=None, id=None, is_default=None, last_updated_by=None, last_updated_date=None, name=None, project=None, revision=None, state=None, url=None, values=None): - super(TestConfiguration, self).__init__() - self.area = area - self.description = description - self.id = id - self.is_default = is_default - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.name = name - self.project = project - self.revision = revision - self.state = state - self.url = url - self.values = values diff --git a/vsts/vsts/test/v4_1/models/test_environment.py b/vsts/vsts/test/v4_1/models/test_environment.py deleted file mode 100644 index f8876fd0..00000000 --- a/vsts/vsts/test/v4_1/models/test_environment.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestEnvironment(Model): - """TestEnvironment. - - :param environment_id: - :type environment_id: str - :param environment_name: - :type environment_name: str - """ - - _attribute_map = { - 'environment_id': {'key': 'environmentId', 'type': 'str'}, - 'environment_name': {'key': 'environmentName', 'type': 'str'} - } - - def __init__(self, environment_id=None, environment_name=None): - super(TestEnvironment, self).__init__() - self.environment_id = environment_id - self.environment_name = environment_name diff --git a/vsts/vsts/test/v4_1/models/test_failure_details.py b/vsts/vsts/test/v4_1/models/test_failure_details.py deleted file mode 100644 index c44af0ec..00000000 --- a/vsts/vsts/test/v4_1/models/test_failure_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestFailureDetails(Model): - """TestFailureDetails. - - :param count: - :type count: int - :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'test_results': {'key': 'testResults', 'type': '[TestCaseResultIdentifier]'} - } - - def __init__(self, count=None, test_results=None): - super(TestFailureDetails, self).__init__() - self.count = count - self.test_results = test_results diff --git a/vsts/vsts/test/v4_1/models/test_failures_analysis.py b/vsts/vsts/test/v4_1/models/test_failures_analysis.py deleted file mode 100644 index 459ffb7b..00000000 --- a/vsts/vsts/test/v4_1/models/test_failures_analysis.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestFailuresAnalysis(Model): - """TestFailuresAnalysis. - - :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` - :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` - :param new_failures: - :type new_failures: :class:`TestFailureDetails ` - :param previous_context: - :type previous_context: :class:`TestResultsContext ` - """ - - _attribute_map = { - 'existing_failures': {'key': 'existingFailures', 'type': 'TestFailureDetails'}, - 'fixed_tests': {'key': 'fixedTests', 'type': 'TestFailureDetails'}, - 'new_failures': {'key': 'newFailures', 'type': 'TestFailureDetails'}, - 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'} - } - - def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, previous_context=None): - super(TestFailuresAnalysis, self).__init__() - self.existing_failures = existing_failures - self.fixed_tests = fixed_tests - self.new_failures = new_failures - self.previous_context = previous_context diff --git a/vsts/vsts/test/v4_1/models/test_iteration_details_model.py b/vsts/vsts/test/v4_1/models/test_iteration_details_model.py deleted file mode 100644 index fe070b9a..00000000 --- a/vsts/vsts/test/v4_1/models/test_iteration_details_model.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestIterationDetailsModel(Model): - """TestIterationDetailsModel. - - :param action_results: - :type action_results: list of :class:`TestActionResultModel ` - :param attachments: - :type attachments: list of :class:`TestCaseResultAttachmentModel ` - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param id: - :type id: int - :param outcome: - :type outcome: str - :param parameters: - :type parameters: list of :class:`TestResultParameterModel ` - :param started_date: - :type started_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - 'action_results': {'key': 'actionResults', 'type': '[TestActionResultModel]'}, - 'attachments': {'key': 'attachments', 'type': '[TestCaseResultAttachmentModel]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[TestResultParameterModel]'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, action_results=None, attachments=None, comment=None, completed_date=None, duration_in_ms=None, error_message=None, id=None, outcome=None, parameters=None, started_date=None, url=None): - super(TestIterationDetailsModel, self).__init__() - self.action_results = action_results - self.attachments = attachments - self.comment = comment - self.completed_date = completed_date - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.id = id - self.outcome = outcome - self.parameters = parameters - self.started_date = started_date - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_message_log_details.py b/vsts/vsts/test/v4_1/models/test_message_log_details.py deleted file mode 100644 index 75553733..00000000 --- a/vsts/vsts/test/v4_1/models/test_message_log_details.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestMessageLogDetails(Model): - """TestMessageLogDetails. - - :param date_created: Date when the resource is created - :type date_created: datetime - :param entry_id: Id of the resource - :type entry_id: int - :param message: Message of the resource - :type message: str - """ - - _attribute_map = { - 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, - 'entry_id': {'key': 'entryId', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, date_created=None, entry_id=None, message=None): - super(TestMessageLogDetails, self).__init__() - self.date_created = date_created - self.entry_id = entry_id - self.message = message diff --git a/vsts/vsts/test/v4_1/models/test_method.py b/vsts/vsts/test/v4_1/models/test_method.py deleted file mode 100644 index ee92559b..00000000 --- a/vsts/vsts/test/v4_1/models/test_method.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestMethod(Model): - """TestMethod. - - :param container: - :type container: str - :param name: - :type name: str - """ - - _attribute_map = { - 'container': {'key': 'container', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, container=None, name=None): - super(TestMethod, self).__init__() - self.container = container - self.name = name diff --git a/vsts/vsts/test/v4_1/models/test_operation_reference.py b/vsts/vsts/test/v4_1/models/test_operation_reference.py deleted file mode 100644 index 47e57808..00000000 --- a/vsts/vsts/test/v4_1/models/test_operation_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestOperationReference(Model): - """TestOperationReference. - - :param id: - :type id: str - :param status: - :type status: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, status=None, url=None): - super(TestOperationReference, self).__init__() - self.id = id - self.status = status - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_plan.py b/vsts/vsts/test/v4_1/models/test_plan.py deleted file mode 100644 index a6f7c665..00000000 --- a/vsts/vsts/test/v4_1/models/test_plan.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPlan(Model): - """TestPlan. - - :param area: - :type area: :class:`ShallowReference ` - :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` - :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` - :param client_url: - :type client_url: str - :param description: - :type description: str - :param end_date: - :type end_date: datetime - :param id: - :type id: int - :param iteration: - :type iteration: str - :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` - :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param previous_build: - :type previous_build: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param revision: - :type revision: int - :param root_suite: - :type root_suite: :class:`ShallowReference ` - :param start_date: - :type start_date: datetime - :param state: - :type state: str - :param updated_by: - :type updated_by: :class:`IdentityRef ` - :param updated_date: - :type updated_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'}, - 'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'}, - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_definition': {'key': 'buildDefinition', 'type': 'ShallowReference'}, - 'client_url': {'key': 'clientUrl', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'}, - 'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'previous_build': {'key': 'previousBuild', 'type': 'ShallowReference'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): - super(TestPlan, self).__init__() - self.area = area - self.automated_test_environment = automated_test_environment - self.automated_test_settings = automated_test_settings - self.build = build - self.build_definition = build_definition - self.client_url = client_url - self.description = description - self.end_date = end_date - self.id = id - self.iteration = iteration - self.manual_test_environment = manual_test_environment - self.manual_test_settings = manual_test_settings - self.name = name - self.owner = owner - self.previous_build = previous_build - self.project = project - self.release_environment_definition = release_environment_definition - self.revision = revision - self.root_suite = root_suite - self.start_date = start_date - self.state = state - self.updated_by = updated_by - self.updated_date = updated_date - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_plan_clone_request.py b/vsts/vsts/test/v4_1/models/test_plan_clone_request.py deleted file mode 100644 index e4a2542a..00000000 --- a/vsts/vsts/test/v4_1/models/test_plan_clone_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPlanCloneRequest(Model): - """TestPlanCloneRequest. - - :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` - :param options: - :type options: :class:`CloneOptions ` - :param suite_ids: - :type suite_ids: list of int - """ - - _attribute_map = { - 'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'TestPlan'}, - 'options': {'key': 'options', 'type': 'CloneOptions'}, - 'suite_ids': {'key': 'suiteIds', 'type': '[int]'} - } - - def __init__(self, destination_test_plan=None, options=None, suite_ids=None): - super(TestPlanCloneRequest, self).__init__() - self.destination_test_plan = destination_test_plan - self.options = options - self.suite_ids = suite_ids diff --git a/vsts/vsts/test/v4_1/models/test_point.py b/vsts/vsts/test/v4_1/models/test_point.py deleted file mode 100644 index 2e3445a1..00000000 --- a/vsts/vsts/test/v4_1/models/test_point.py +++ /dev/null @@ -1,109 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPoint(Model): - """TestPoint. - - :param assigned_to: - :type assigned_to: :class:`IdentityRef ` - :param automated: - :type automated: bool - :param comment: - :type comment: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param failure_type: - :type failure_type: str - :param id: - :type id: int - :param last_resolution_state_id: - :type last_resolution_state_id: int - :param last_result: - :type last_result: :class:`ShallowReference ` - :param last_result_details: - :type last_result_details: :class:`LastResultDetails ` - :param last_result_state: - :type last_result_state: str - :param last_run_build_number: - :type last_run_build_number: str - :param last_test_run: - :type last_test_run: :class:`ShallowReference ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param outcome: - :type outcome: str - :param revision: - :type revision: int - :param state: - :type state: str - :param suite: - :type suite: :class:`ShallowReference ` - :param test_case: - :type test_case: :class:`WorkItemReference ` - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param url: - :type url: str - :param work_item_properties: - :type work_item_properties: list of object - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'}, - 'automated': {'key': 'automated', 'type': 'bool'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, - 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, - 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, - 'last_result_state': {'key': 'lastResultState', 'type': 'str'}, - 'last_run_build_number': {'key': 'lastRunBuildNumber', 'type': 'str'}, - 'last_test_run': {'key': 'lastTestRun', 'type': 'ShallowReference'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'suite': {'key': 'suite', 'type': 'ShallowReference'}, - 'test_case': {'key': 'testCase', 'type': 'WorkItemReference'}, - 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} - } - - def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): - super(TestPoint, self).__init__() - self.assigned_to = assigned_to - self.automated = automated - self.comment = comment - self.configuration = configuration - self.failure_type = failure_type - self.id = id - self.last_resolution_state_id = last_resolution_state_id - self.last_result = last_result - self.last_result_details = last_result_details - self.last_result_state = last_result_state - self.last_run_build_number = last_run_build_number - self.last_test_run = last_test_run - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.outcome = outcome - self.revision = revision - self.state = state - self.suite = suite - self.test_case = test_case - self.test_plan = test_plan - self.url = url - self.work_item_properties = work_item_properties diff --git a/vsts/vsts/test/v4_1/models/test_points_query.py b/vsts/vsts/test/v4_1/models/test_points_query.py deleted file mode 100644 index 6e6d5cfd..00000000 --- a/vsts/vsts/test/v4_1/models/test_points_query.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestPointsQuery(Model): - """TestPointsQuery. - - :param order_by: - :type order_by: str - :param points: - :type points: list of :class:`TestPoint ` - :param points_filter: - :type points_filter: :class:`PointsFilter ` - :param wit_fields: - :type wit_fields: list of str - """ - - _attribute_map = { - 'order_by': {'key': 'orderBy', 'type': 'str'}, - 'points': {'key': 'points', 'type': '[TestPoint]'}, - 'points_filter': {'key': 'pointsFilter', 'type': 'PointsFilter'}, - 'wit_fields': {'key': 'witFields', 'type': '[str]'} - } - - def __init__(self, order_by=None, points=None, points_filter=None, wit_fields=None): - super(TestPointsQuery, self).__init__() - self.order_by = order_by - self.points = points - self.points_filter = points_filter - self.wit_fields = wit_fields diff --git a/vsts/vsts/test/v4_1/models/test_resolution_state.py b/vsts/vsts/test/v4_1/models/test_resolution_state.py deleted file mode 100644 index 2404771f..00000000 --- a/vsts/vsts/test/v4_1/models/test_resolution_state.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResolutionState(Model): - """TestResolutionState. - - :param id: - :type id: int - :param name: - :type name: str - :param project: - :type project: :class:`ShallowReference ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'} - } - - def __init__(self, id=None, name=None, project=None): - super(TestResolutionState, self).__init__() - self.id = id - self.name = name - self.project = project diff --git a/vsts/vsts/test/v4_1/models/test_result_create_model.py b/vsts/vsts/test/v4_1/models/test_result_create_model.py deleted file mode 100644 index ba77983a..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_create_model.py +++ /dev/null @@ -1,125 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultCreateModel(Model): - """TestResultCreateModel. - - :param area: - :type area: :class:`ShallowReference ` - :param associated_work_items: - :type associated_work_items: list of int - :param automated_test_id: - :type automated_test_id: str - :param automated_test_name: - :type automated_test_name: str - :param automated_test_storage: - :type automated_test_storage: str - :param automated_test_type: - :type automated_test_type: str - :param automated_test_type_id: - :type automated_test_type_id: str - :param comment: - :type comment: str - :param completed_date: - :type completed_date: str - :param computer_name: - :type computer_name: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: - :type duration_in_ms: str - :param error_message: - :type error_message: str - :param failure_type: - :type failure_type: str - :param outcome: - :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param resolution_state: - :type resolution_state: str - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: - :type stack_trace: str - :param started_date: - :type started_date: str - :param state: - :type state: str - :param test_case: - :type test_case: :class:`ShallowReference ` - :param test_case_priority: - :type test_case_priority: str - :param test_case_title: - :type test_case_title: str - :param test_point: - :type test_point: :class:`ShallowReference ` - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'associated_work_items': {'key': 'associatedWorkItems', 'type': '[int]'}, - 'automated_test_id': {'key': 'automatedTestId', 'type': 'str'}, - 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, - 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, - 'automated_test_type': {'key': 'automatedTestType', 'type': 'str'}, - 'automated_test_type_id': {'key': 'automatedTestTypeId', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'failure_type': {'key': 'failureType', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, - 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, - 'test_case_priority': {'key': 'testCasePriority', 'type': 'str'}, - 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, - 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'} - } - - def __init__(self, area=None, associated_work_items=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, duration_in_ms=None, error_message=None, failure_type=None, outcome=None, owner=None, resolution_state=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_priority=None, test_case_title=None, test_point=None): - super(TestResultCreateModel, self).__init__() - self.area = area - self.associated_work_items = associated_work_items - self.automated_test_id = automated_test_id - self.automated_test_name = automated_test_name - self.automated_test_storage = automated_test_storage - self.automated_test_type = automated_test_type - self.automated_test_type_id = automated_test_type_id - self.comment = comment - self.completed_date = completed_date - self.computer_name = computer_name - self.configuration = configuration - self.custom_fields = custom_fields - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.failure_type = failure_type - self.outcome = outcome - self.owner = owner - self.resolution_state = resolution_state - self.run_by = run_by - self.stack_trace = stack_trace - self.started_date = started_date - self.state = state - self.test_case = test_case - self.test_case_priority = test_case_priority - self.test_case_title = test_case_title - self.test_point = test_point diff --git a/vsts/vsts/test/v4_1/models/test_result_document.py b/vsts/vsts/test/v4_1/models/test_result_document.py deleted file mode 100644 index d57f0422..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_document.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultDocument(Model): - """TestResultDocument. - - :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` - :param payload: - :type payload: :class:`TestResultPayload ` - """ - - _attribute_map = { - 'operation_reference': {'key': 'operationReference', 'type': 'TestOperationReference'}, - 'payload': {'key': 'payload', 'type': 'TestResultPayload'} - } - - def __init__(self, operation_reference=None, payload=None): - super(TestResultDocument, self).__init__() - self.operation_reference = operation_reference - self.payload = payload diff --git a/vsts/vsts/test/v4_1/models/test_result_history.py b/vsts/vsts/test/v4_1/models/test_result_history.py deleted file mode 100644 index dee0f0b4..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_history.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultHistory(Model): - """TestResultHistory. - - :param group_by_field: - :type group_by_field: str - :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` - """ - - _attribute_map = { - 'group_by_field': {'key': 'groupByField', 'type': 'str'}, - 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryDetailsForGroup]'} - } - - def __init__(self, group_by_field=None, results_for_group=None): - super(TestResultHistory, self).__init__() - self.group_by_field = group_by_field - self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py b/vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py deleted file mode 100644 index 701513b1..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_history_details_for_group.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultHistoryDetailsForGroup(Model): - """TestResultHistoryDetailsForGroup. - - :param group_by_value: - :type group_by_value: object - :param latest_result: - :type latest_result: :class:`TestCaseResult ` - """ - - _attribute_map = { - 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'latest_result': {'key': 'latestResult', 'type': 'TestCaseResult'} - } - - def __init__(self, group_by_value=None, latest_result=None): - super(TestResultHistoryDetailsForGroup, self).__init__() - self.group_by_value = group_by_value - self.latest_result = latest_result diff --git a/vsts/vsts/test/v4_1/models/test_result_model_base.py b/vsts/vsts/test/v4_1/models/test_result_model_base.py deleted file mode 100644 index 1c2b428b..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_model_base.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultModelBase(Model): - """TestResultModelBase. - - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param duration_in_ms: - :type duration_in_ms: float - :param error_message: - :type error_message: str - :param outcome: - :type outcome: str - :param started_date: - :type started_date: datetime - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'outcome': {'key': 'outcome', 'type': 'str'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'} - } - - def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error_message=None, outcome=None, started_date=None): - super(TestResultModelBase, self).__init__() - self.comment = comment - self.completed_date = completed_date - self.duration_in_ms = duration_in_ms - self.error_message = error_message - self.outcome = outcome - self.started_date = started_date diff --git a/vsts/vsts/test/v4_1/models/test_result_parameter_model.py b/vsts/vsts/test/v4_1/models/test_result_parameter_model.py deleted file mode 100644 index 39efe2cd..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_parameter_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultParameterModel(Model): - """TestResultParameterModel. - - :param action_path: - :type action_path: str - :param iteration_id: - :type iteration_id: int - :param parameter_name: - :type parameter_name: str - :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" - :type step_identifier: str - :param url: - :type url: str - :param value: - :type value: str - """ - - _attribute_map = { - 'action_path': {'key': 'actionPath', 'type': 'str'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'}, - 'parameter_name': {'key': 'parameterName', 'type': 'str'}, - 'step_identifier': {'key': 'stepIdentifier', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, action_path=None, iteration_id=None, parameter_name=None, step_identifier=None, url=None, value=None): - super(TestResultParameterModel, self).__init__() - self.action_path = action_path - self.iteration_id = iteration_id - self.parameter_name = parameter_name - self.step_identifier = step_identifier - self.url = url - self.value = value diff --git a/vsts/vsts/test/v4_1/models/test_result_payload.py b/vsts/vsts/test/v4_1/models/test_result_payload.py deleted file mode 100644 index 22f3d447..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_payload.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultPayload(Model): - """TestResultPayload. - - :param comment: - :type comment: str - :param name: - :type name: str - :param stream: - :type stream: str - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'stream': {'key': 'stream', 'type': 'str'} - } - - def __init__(self, comment=None, name=None, stream=None): - super(TestResultPayload, self).__init__() - self.comment = comment - self.name = name - self.stream = stream diff --git a/vsts/vsts/test/v4_1/models/test_result_summary.py b/vsts/vsts/test/v4_1/models/test_result_summary.py deleted file mode 100644 index 417b5920..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_summary.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultSummary(Model): - """TestResultSummary. - - :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` - :param team_project: - :type team_project: :class:`TeamProjectReference ` - :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` - :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` - """ - - _attribute_map = { - 'aggregated_results_analysis': {'key': 'aggregatedResultsAnalysis', 'type': 'AggregatedResultsAnalysis'}, - 'team_project': {'key': 'teamProject', 'type': 'TeamProjectReference'}, - 'test_failures': {'key': 'testFailures', 'type': 'TestFailuresAnalysis'}, - 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'} - } - - def __init__(self, aggregated_results_analysis=None, team_project=None, test_failures=None, test_results_context=None): - super(TestResultSummary, self).__init__() - self.aggregated_results_analysis = aggregated_results_analysis - self.team_project = team_project - self.test_failures = test_failures - self.test_results_context = test_results_context diff --git a/vsts/vsts/test/v4_1/models/test_result_trend_filter.py b/vsts/vsts/test/v4_1/models/test_result_trend_filter.py deleted file mode 100644 index 8cb60290..00000000 --- a/vsts/vsts/test/v4_1/models/test_result_trend_filter.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultTrendFilter(Model): - """TestResultTrendFilter. - - :param branch_names: - :type branch_names: list of str - :param build_count: - :type build_count: int - :param definition_ids: - :type definition_ids: list of int - :param env_definition_ids: - :type env_definition_ids: list of int - :param max_complete_date: - :type max_complete_date: datetime - :param publish_context: - :type publish_context: str - :param test_run_titles: - :type test_run_titles: list of str - :param trend_days: - :type trend_days: int - """ - - _attribute_map = { - 'branch_names': {'key': 'branchNames', 'type': '[str]'}, - 'build_count': {'key': 'buildCount', 'type': 'int'}, - 'definition_ids': {'key': 'definitionIds', 'type': '[int]'}, - 'env_definition_ids': {'key': 'envDefinitionIds', 'type': '[int]'}, - 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, - 'publish_context': {'key': 'publishContext', 'type': 'str'}, - 'test_run_titles': {'key': 'testRunTitles', 'type': '[str]'}, - 'trend_days': {'key': 'trendDays', 'type': 'int'} - } - - def __init__(self, branch_names=None, build_count=None, definition_ids=None, env_definition_ids=None, max_complete_date=None, publish_context=None, test_run_titles=None, trend_days=None): - super(TestResultTrendFilter, self).__init__() - self.branch_names = branch_names - self.build_count = build_count - self.definition_ids = definition_ids - self.env_definition_ids = env_definition_ids - self.max_complete_date = max_complete_date - self.publish_context = publish_context - self.test_run_titles = test_run_titles - self.trend_days = trend_days diff --git a/vsts/vsts/test/v4_1/models/test_results_context.py b/vsts/vsts/test/v4_1/models/test_results_context.py deleted file mode 100644 index 18dce445..00000000 --- a/vsts/vsts/test/v4_1/models/test_results_context.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsContext(Model): - """TestResultsContext. - - :param build: - :type build: :class:`BuildReference ` - :param context_type: - :type context_type: object - :param release: - :type release: :class:`ReleaseReference ` - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'BuildReference'}, - 'context_type': {'key': 'contextType', 'type': 'object'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'} - } - - def __init__(self, build=None, context_type=None, release=None): - super(TestResultsContext, self).__init__() - self.build = build - self.context_type = context_type - self.release = release diff --git a/vsts/vsts/test/v4_1/models/test_results_details.py b/vsts/vsts/test/v4_1/models/test_results_details.py deleted file mode 100644 index ce736c99..00000000 --- a/vsts/vsts/test/v4_1/models/test_results_details.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsDetails(Model): - """TestResultsDetails. - - :param group_by_field: - :type group_by_field: str - :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` - """ - - _attribute_map = { - 'group_by_field': {'key': 'groupByField', 'type': 'str'}, - 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultsDetailsForGroup]'} - } - - def __init__(self, group_by_field=None, results_for_group=None): - super(TestResultsDetails, self).__init__() - self.group_by_field = group_by_field - self.results_for_group = results_for_group diff --git a/vsts/vsts/test/v4_1/models/test_results_details_for_group.py b/vsts/vsts/test/v4_1/models/test_results_details_for_group.py deleted file mode 100644 index 0fb54cd5..00000000 --- a/vsts/vsts/test/v4_1/models/test_results_details_for_group.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsDetailsForGroup(Model): - """TestResultsDetailsForGroup. - - :param group_by_value: - :type group_by_value: object - :param results: - :type results: list of :class:`TestCaseResult ` - :param results_count_by_outcome: - :type results_count_by_outcome: dict - """ - - _attribute_map = { - 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'results': {'key': 'results', 'type': '[TestCaseResult]'}, - 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'} - } - - def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None): - super(TestResultsDetailsForGroup, self).__init__() - self.group_by_value = group_by_value - self.results = results - self.results_count_by_outcome = results_count_by_outcome diff --git a/vsts/vsts/test/v4_1/models/test_results_groups_for_build.py b/vsts/vsts/test/v4_1/models/test_results_groups_for_build.py deleted file mode 100644 index 39f95d9d..00000000 --- a/vsts/vsts/test/v4_1/models/test_results_groups_for_build.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsGroupsForBuild(Model): - """TestResultsGroupsForBuild. - - :param build_id: BuildId for which groupby result is fetched. - :type build_id: int - :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` - """ - - _attribute_map = { - 'build_id': {'key': 'buildId', 'type': 'int'}, - 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'} - } - - def __init__(self, build_id=None, fields=None): - super(TestResultsGroupsForBuild, self).__init__() - self.build_id = build_id - self.fields = fields diff --git a/vsts/vsts/test/v4_1/models/test_results_groups_for_release.py b/vsts/vsts/test/v4_1/models/test_results_groups_for_release.py deleted file mode 100644 index e5170efc..00000000 --- a/vsts/vsts/test/v4_1/models/test_results_groups_for_release.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsGroupsForRelease(Model): - """TestResultsGroupsForRelease. - - :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` - :param release_env_id: Release Environment Id for which groupby result is fetched. - :type release_env_id: int - :param release_id: ReleaseId for which groupby result is fetched. - :type release_id: int - """ - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'}, - 'release_env_id': {'key': 'releaseEnvId', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, fields=None, release_env_id=None, release_id=None): - super(TestResultsGroupsForRelease, self).__init__() - self.fields = fields - self.release_env_id = release_env_id - self.release_id = release_id diff --git a/vsts/vsts/test/v4_1/models/test_results_query.py b/vsts/vsts/test/v4_1/models/test_results_query.py deleted file mode 100644 index 4c77d384..00000000 --- a/vsts/vsts/test/v4_1/models/test_results_query.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestResultsQuery(Model): - """TestResultsQuery. - - :param fields: - :type fields: list of str - :param results: - :type results: list of :class:`TestCaseResult ` - :param results_filter: - :type results_filter: :class:`ResultsFilter ` - """ - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[str]'}, - 'results': {'key': 'results', 'type': '[TestCaseResult]'}, - 'results_filter': {'key': 'resultsFilter', 'type': 'ResultsFilter'} - } - - def __init__(self, fields=None, results=None, results_filter=None): - super(TestResultsQuery, self).__init__() - self.fields = fields - self.results = results - self.results_filter = results_filter diff --git a/vsts/vsts/test/v4_1/models/test_run.py b/vsts/vsts/test/v4_1/models/test_run.py deleted file mode 100644 index 18a9d654..00000000 --- a/vsts/vsts/test/v4_1/models/test_run.py +++ /dev/null @@ -1,193 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRun(Model): - """TestRun. - - :param build: - :type build: :class:`ShallowReference ` - :param build_configuration: - :type build_configuration: :class:`BuildConfiguration ` - :param comment: - :type comment: str - :param completed_date: - :type completed_date: datetime - :param controller: - :type controller: str - :param created_date: - :type created_date: datetime - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param drop_location: - :type drop_location: str - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` - :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` - :param due_date: - :type due_date: datetime - :param error_message: - :type error_message: str - :param filter: - :type filter: :class:`RunFilter ` - :param id: - :type id: int - :param incomplete_tests: - :type incomplete_tests: int - :param is_automated: - :type is_automated: bool - :param iteration: - :type iteration: str - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param name: - :type name: str - :param not_applicable_tests: - :type not_applicable_tests: int - :param owner: - :type owner: :class:`IdentityRef ` - :param passed_tests: - :type passed_tests: int - :param phase: - :type phase: str - :param plan: - :type plan: :class:`ShallowReference ` - :param post_process_state: - :type post_process_state: str - :param project: - :type project: :class:`ShallowReference ` - :param release: - :type release: :class:`ReleaseReference ` - :param release_environment_uri: - :type release_environment_uri: str - :param release_uri: - :type release_uri: str - :param revision: - :type revision: int - :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` - :param started_date: - :type started_date: datetime - :param state: - :type state: str - :param substate: - :type substate: object - :param test_environment: - :type test_environment: :class:`TestEnvironment ` - :param test_message_log_id: - :type test_message_log_id: int - :param test_settings: - :type test_settings: :class:`ShallowReference ` - :param total_tests: - :type total_tests: int - :param unanalyzed_tests: - :type unanalyzed_tests: int - :param url: - :type url: str - :param web_access_url: - :type web_access_url: str - """ - - _attribute_map = { - 'build': {'key': 'build', 'type': 'ShallowReference'}, - 'build_configuration': {'key': 'buildConfiguration', 'type': 'BuildConfiguration'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, - 'controller': {'key': 'controller', 'type': 'str'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, - 'drop_location': {'key': 'dropLocation', 'type': 'str'}, - 'dtl_aut_environment': {'key': 'dtlAutEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment': {'key': 'dtlEnvironment', 'type': 'ShallowReference'}, - 'dtl_environment_creation_details': {'key': 'dtlEnvironmentCreationDetails', 'type': 'DtlEnvironmentDetails'}, - 'due_date': {'key': 'dueDate', 'type': 'iso-8601'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'filter': {'key': 'filter', 'type': 'RunFilter'}, - 'id': {'key': 'id', 'type': 'int'}, - 'incomplete_tests': {'key': 'incompleteTests', 'type': 'int'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'iteration': {'key': 'iteration', 'type': 'str'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'not_applicable_tests': {'key': 'notApplicableTests', 'type': 'int'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'passed_tests': {'key': 'passedTests', 'type': 'int'}, - 'phase': {'key': 'phase', 'type': 'str'}, - 'plan': {'key': 'plan', 'type': 'ShallowReference'}, - 'post_process_state': {'key': 'postProcessState', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'}, - 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, - 'release_uri': {'key': 'releaseUri', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'}, - 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'substate': {'key': 'substate', 'type': 'object'}, - 'test_environment': {'key': 'testEnvironment', 'type': 'TestEnvironment'}, - 'test_message_log_id': {'key': 'testMessageLogId', 'type': 'int'}, - 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'}, - 'total_tests': {'key': 'totalTests', 'type': 'int'}, - 'unanalyzed_tests': {'key': 'unanalyzedTests', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_access_url': {'key': 'webAccessUrl', 'type': 'str'} - } - - def __init__(self, build=None, build_configuration=None, comment=None, completed_date=None, controller=None, created_date=None, custom_fields=None, drop_location=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_creation_details=None, due_date=None, error_message=None, filter=None, id=None, incomplete_tests=None, is_automated=None, iteration=None, last_updated_by=None, last_updated_date=None, name=None, not_applicable_tests=None, owner=None, passed_tests=None, phase=None, plan=None, post_process_state=None, project=None, release=None, release_environment_uri=None, release_uri=None, revision=None, run_statistics=None, started_date=None, state=None, substate=None, test_environment=None, test_message_log_id=None, test_settings=None, total_tests=None, unanalyzed_tests=None, url=None, web_access_url=None): - super(TestRun, self).__init__() - self.build = build - self.build_configuration = build_configuration - self.comment = comment - self.completed_date = completed_date - self.controller = controller - self.created_date = created_date - self.custom_fields = custom_fields - self.drop_location = drop_location - self.dtl_aut_environment = dtl_aut_environment - self.dtl_environment = dtl_environment - self.dtl_environment_creation_details = dtl_environment_creation_details - self.due_date = due_date - self.error_message = error_message - self.filter = filter - self.id = id - self.incomplete_tests = incomplete_tests - self.is_automated = is_automated - self.iteration = iteration - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.name = name - self.not_applicable_tests = not_applicable_tests - self.owner = owner - self.passed_tests = passed_tests - self.phase = phase - self.plan = plan - self.post_process_state = post_process_state - self.project = project - self.release = release - self.release_environment_uri = release_environment_uri - self.release_uri = release_uri - self.revision = revision - self.run_statistics = run_statistics - self.started_date = started_date - self.state = state - self.substate = substate - self.test_environment = test_environment - self.test_message_log_id = test_message_log_id - self.test_settings = test_settings - self.total_tests = total_tests - self.unanalyzed_tests = unanalyzed_tests - self.url = url - self.web_access_url = web_access_url diff --git a/vsts/vsts/test/v4_1/models/test_run_coverage.py b/vsts/vsts/test/v4_1/models/test_run_coverage.py deleted file mode 100644 index bc4dd047..00000000 --- a/vsts/vsts/test/v4_1/models/test_run_coverage.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunCoverage(Model): - """TestRunCoverage. - - :param last_error: - :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: - :type state: str - :param test_run: - :type test_run: :class:`ShallowReference ` - """ - - _attribute_map = { - 'last_error': {'key': 'lastError', 'type': 'str'}, - 'modules': {'key': 'modules', 'type': '[ModuleCoverage]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'test_run': {'key': 'testRun', 'type': 'ShallowReference'} - } - - def __init__(self, last_error=None, modules=None, state=None, test_run=None): - super(TestRunCoverage, self).__init__() - self.last_error = last_error - self.modules = modules - self.state = state - self.test_run = test_run diff --git a/vsts/vsts/test/v4_1/models/test_run_statistic.py b/vsts/vsts/test/v4_1/models/test_run_statistic.py deleted file mode 100644 index b5885316..00000000 --- a/vsts/vsts/test/v4_1/models/test_run_statistic.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestRunStatistic(Model): - """TestRunStatistic. - - :param run: - :type run: :class:`ShallowReference ` - :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` - """ - - _attribute_map = { - 'run': {'key': 'run', 'type': 'ShallowReference'}, - 'run_statistics': {'key': 'runStatistics', 'type': '[RunStatistic]'} - } - - def __init__(self, run=None, run_statistics=None): - super(TestRunStatistic, self).__init__() - self.run = run - self.run_statistics = run_statistics diff --git a/vsts/vsts/test/v4_1/models/test_session.py b/vsts/vsts/test/v4_1/models/test_session.py deleted file mode 100644 index 8b06b612..00000000 --- a/vsts/vsts/test/v4_1/models/test_session.py +++ /dev/null @@ -1,81 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSession(Model): - """TestSession. - - :param area: Area path of the test session - :type area: :class:`ShallowReference ` - :param comment: Comments in the test session - :type comment: str - :param end_date: Duration of the session - :type end_date: datetime - :param id: Id of the test session - :type id: int - :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: Last updated date - :type last_updated_date: datetime - :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` - :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` - :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` - :param revision: Revision of the test session - :type revision: int - :param source: Source of the test session - :type source: object - :param start_date: Start date - :type start_date: datetime - :param state: State of the test session - :type state: object - :param title: Title of the test session - :type title: str - :param url: Url of Test Session Resource - :type url: str - """ - - _attribute_map = { - 'area': {'key': 'area', 'type': 'ShallowReference'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'property_bag': {'key': 'propertyBag', 'type': 'PropertyBag'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'object'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, area=None, comment=None, end_date=None, id=None, last_updated_by=None, last_updated_date=None, owner=None, project=None, property_bag=None, revision=None, source=None, start_date=None, state=None, title=None, url=None): - super(TestSession, self).__init__() - self.area = area - self.comment = comment - self.end_date = end_date - self.id = id - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.owner = owner - self.project = project - self.property_bag = property_bag - self.revision = revision - self.source = source - self.start_date = start_date - self.state = state - self.title = title - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_settings.py b/vsts/vsts/test/v4_1/models/test_settings.py deleted file mode 100644 index 4cf25582..00000000 --- a/vsts/vsts/test/v4_1/models/test_settings.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSettings(Model): - """TestSettings. - - :param area_path: Area path required to create test settings - :type area_path: str - :param description: Description of the test settings. Used in create test settings. - :type description: str - :param is_public: Indicates if the tests settings is public or private.Used in create test settings. - :type is_public: bool - :param machine_roles: Xml string of machine roles. Used in create test settings. - :type machine_roles: str - :param test_settings_content: Test settings content. - :type test_settings_content: str - :param test_settings_id: Test settings id. - :type test_settings_id: int - :param test_settings_name: Test settings name. - :type test_settings_name: str - """ - - _attribute_map = { - 'area_path': {'key': 'areaPath', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, - 'machine_roles': {'key': 'machineRoles', 'type': 'str'}, - 'test_settings_content': {'key': 'testSettingsContent', 'type': 'str'}, - 'test_settings_id': {'key': 'testSettingsId', 'type': 'int'}, - 'test_settings_name': {'key': 'testSettingsName', 'type': 'str'} - } - - def __init__(self, area_path=None, description=None, is_public=None, machine_roles=None, test_settings_content=None, test_settings_id=None, test_settings_name=None): - super(TestSettings, self).__init__() - self.area_path = area_path - self.description = description - self.is_public = is_public - self.machine_roles = machine_roles - self.test_settings_content = test_settings_content - self.test_settings_id = test_settings_id - self.test_settings_name = test_settings_name diff --git a/vsts/vsts/test/v4_1/models/test_suite.py b/vsts/vsts/test/v4_1/models/test_suite.py deleted file mode 100644 index be0ef32e..00000000 --- a/vsts/vsts/test/v4_1/models/test_suite.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSuite(Model): - """TestSuite. - - :param area_uri: - :type area_uri: str - :param children: - :type children: list of :class:`TestSuite ` - :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` - :param default_testers: - :type default_testers: list of :class:`ShallowReference ` - :param id: - :type id: int - :param inherit_default_configurations: - :type inherit_default_configurations: bool - :param last_error: - :type last_error: str - :param last_populated_date: - :type last_populated_date: datetime - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: - :type last_updated_date: datetime - :param name: - :type name: str - :param parent: - :type parent: :class:`ShallowReference ` - :param plan: - :type plan: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param query_string: - :type query_string: str - :param requirement_id: - :type requirement_id: int - :param revision: - :type revision: int - :param state: - :type state: str - :param suites: - :type suites: list of :class:`ShallowReference ` - :param suite_type: - :type suite_type: str - :param test_case_count: - :type test_case_count: int - :param test_cases_url: - :type test_cases_url: str - :param text: - :type text: str - :param url: - :type url: str - """ - - _attribute_map = { - 'area_uri': {'key': 'areaUri', 'type': 'str'}, - 'children': {'key': 'children', 'type': '[TestSuite]'}, - 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, - 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, - 'last_error': {'key': 'lastError', 'type': 'str'}, - 'last_populated_date': {'key': 'lastPopulatedDate', 'type': 'iso-8601'}, - 'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'}, - 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent': {'key': 'parent', 'type': 'ShallowReference'}, - 'plan': {'key': 'plan', 'type': 'ShallowReference'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'query_string': {'key': 'queryString', 'type': 'str'}, - 'requirement_id': {'key': 'requirementId', 'type': 'int'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'suites': {'key': 'suites', 'type': '[ShallowReference]'}, - 'suite_type': {'key': 'suiteType', 'type': 'str'}, - 'test_case_count': {'key': 'testCaseCount', 'type': 'int'}, - 'test_cases_url': {'key': 'testCasesUrl', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, area_uri=None, children=None, default_configurations=None, default_testers=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): - super(TestSuite, self).__init__() - self.area_uri = area_uri - self.children = children - self.default_configurations = default_configurations - self.default_testers = default_testers - self.id = id - self.inherit_default_configurations = inherit_default_configurations - self.last_error = last_error - self.last_populated_date = last_populated_date - self.last_updated_by = last_updated_by - self.last_updated_date = last_updated_date - self.name = name - self.parent = parent - self.plan = plan - self.project = project - self.query_string = query_string - self.requirement_id = requirement_id - self.revision = revision - self.state = state - self.suites = suites - self.suite_type = suite_type - self.test_case_count = test_case_count - self.test_cases_url = test_cases_url - self.text = text - self.url = url diff --git a/vsts/vsts/test/v4_1/models/test_suite_clone_request.py b/vsts/vsts/test/v4_1/models/test_suite_clone_request.py deleted file mode 100644 index b17afed5..00000000 --- a/vsts/vsts/test/v4_1/models/test_suite_clone_request.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSuiteCloneRequest(Model): - """TestSuiteCloneRequest. - - :param clone_options: - :type clone_options: :class:`CloneOptions ` - :param destination_suite_id: - :type destination_suite_id: int - :param destination_suite_project_name: - :type destination_suite_project_name: str - """ - - _attribute_map = { - 'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'}, - 'destination_suite_id': {'key': 'destinationSuiteId', 'type': 'int'}, - 'destination_suite_project_name': {'key': 'destinationSuiteProjectName', 'type': 'str'} - } - - def __init__(self, clone_options=None, destination_suite_id=None, destination_suite_project_name=None): - super(TestSuiteCloneRequest, self).__init__() - self.clone_options = clone_options - self.destination_suite_id = destination_suite_id - self.destination_suite_project_name = destination_suite_project_name diff --git a/vsts/vsts/test/v4_1/models/test_summary_for_work_item.py b/vsts/vsts/test/v4_1/models/test_summary_for_work_item.py deleted file mode 100644 index 701ef130..00000000 --- a/vsts/vsts/test/v4_1/models/test_summary_for_work_item.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestSummaryForWorkItem(Model): - """TestSummaryForWorkItem. - - :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` - :param work_item: - :type work_item: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'summary': {'key': 'summary', 'type': 'AggregatedDataForResultTrend'}, - 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} - } - - def __init__(self, summary=None, work_item=None): - super(TestSummaryForWorkItem, self).__init__() - self.summary = summary - self.work_item = work_item diff --git a/vsts/vsts/test/v4_1/models/test_to_work_item_links.py b/vsts/vsts/test/v4_1/models/test_to_work_item_links.py deleted file mode 100644 index 402a5bb4..00000000 --- a/vsts/vsts/test/v4_1/models/test_to_work_item_links.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestToWorkItemLinks(Model): - """TestToWorkItemLinks. - - :param test: - :type test: :class:`TestMethod ` - :param work_items: - :type work_items: list of :class:`WorkItemReference ` - """ - - _attribute_map = { - 'test': {'key': 'test', 'type': 'TestMethod'}, - 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} - } - - def __init__(self, test=None, work_items=None): - super(TestToWorkItemLinks, self).__init__() - self.test = test - self.work_items = work_items diff --git a/vsts/vsts/test/v4_1/models/test_variable.py b/vsts/vsts/test/v4_1/models/test_variable.py deleted file mode 100644 index 9f27a0b1..00000000 --- a/vsts/vsts/test/v4_1/models/test_variable.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TestVariable(Model): - """TestVariable. - - :param description: Description of the test variable - :type description: str - :param id: Id of the test variable - :type id: int - :param name: Name of the test variable - :type name: str - :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` - :param revision: Revision - :type revision: int - :param url: Url of the test variable - :type url: str - :param values: List of allowed values - :type values: list of str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[str]'} - } - - def __init__(self, description=None, id=None, name=None, project=None, revision=None, url=None, values=None): - super(TestVariable, self).__init__() - self.description = description - self.id = id - self.name = name - self.project = project - self.revision = revision - self.url = url - self.values = values diff --git a/vsts/vsts/test/v4_1/models/work_item_reference.py b/vsts/vsts/test/v4_1/models/work_item_reference.py deleted file mode 100644 index 1bff259b..00000000 --- a/vsts/vsts/test/v4_1/models/work_item_reference.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemReference(Model): - """WorkItemReference. - - :param id: - :type id: str - :param name: - :type name: str - :param type: - :type type: str - :param url: - :type url: str - :param web_url: - :type web_url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'} - } - - def __init__(self, id=None, name=None, type=None, url=None, web_url=None): - super(WorkItemReference, self).__init__() - self.id = id - self.name = name - self.type = type - self.url = url - self.web_url = web_url diff --git a/vsts/vsts/test/v4_1/models/work_item_to_test_links.py b/vsts/vsts/test/v4_1/models/work_item_to_test_links.py deleted file mode 100644 index a76898ec..00000000 --- a/vsts/vsts/test/v4_1/models/work_item_to_test_links.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemToTestLinks(Model): - """WorkItemToTestLinks. - - :param tests: - :type tests: list of :class:`TestMethod ` - :param work_item: - :type work_item: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'tests': {'key': 'tests', 'type': '[TestMethod]'}, - 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} - } - - def __init__(self, tests=None, work_item=None): - super(WorkItemToTestLinks, self).__init__() - self.tests = tests - self.work_item = work_item diff --git a/vsts/vsts/tfvc/__init__.py b/vsts/vsts/tfvc/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/tfvc/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/tfvc/v4_0/__init__.py b/vsts/vsts/tfvc/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/tfvc/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/tfvc/v4_0/models/__init__.py b/vsts/vsts/tfvc/v4_0/models/__init__.py deleted file mode 100644 index d49eca21..00000000 --- a/vsts/vsts/tfvc/v4_0/models/__init__.py +++ /dev/null @@ -1,83 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .associated_work_item import AssociatedWorkItem -from .change import Change -from .checkin_note import CheckinNote -from .file_content_metadata import FileContentMetadata -from .git_repository import GitRepository -from .git_repository_ref import GitRepositoryRef -from .identity_ref import IdentityRef -from .item_content import ItemContent -from .item_model import ItemModel -from .reference_links import ReferenceLinks -from .team_project_collection_reference import TeamProjectCollectionReference -from .team_project_reference import TeamProjectReference -from .tfvc_branch import TfvcBranch -from .tfvc_branch_mapping import TfvcBranchMapping -from .tfvc_branch_ref import TfvcBranchRef -from .tfvc_change import TfvcChange -from .tfvc_changeset import TfvcChangeset -from .tfvc_changeset_ref import TfvcChangesetRef -from .tfvc_changeset_search_criteria import TfvcChangesetSearchCriteria -from .tfvc_changesets_request_data import TfvcChangesetsRequestData -from .tfvc_item import TfvcItem -from .tfvc_item_descriptor import TfvcItemDescriptor -from .tfvc_item_request_data import TfvcItemRequestData -from .tfvc_label import TfvcLabel -from .tfvc_label_ref import TfvcLabelRef -from .tfvc_label_request_data import TfvcLabelRequestData -from .tfvc_merge_source import TfvcMergeSource -from .tfvc_policy_failure_info import TfvcPolicyFailureInfo -from .tfvc_policy_override_info import TfvcPolicyOverrideInfo -from .tfvc_shallow_branch_ref import TfvcShallowBranchRef -from .tfvc_shelveset import TfvcShelveset -from .tfvc_shelveset_ref import TfvcShelvesetRef -from .tfvc_shelveset_request_data import TfvcShelvesetRequestData -from .tfvc_version_descriptor import TfvcVersionDescriptor -from .version_control_project_info import VersionControlProjectInfo -from .vsts_info import VstsInfo - -__all__ = [ - 'AssociatedWorkItem', - 'Change', - 'CheckinNote', - 'FileContentMetadata', - 'GitRepository', - 'GitRepositoryRef', - 'IdentityRef', - 'ItemContent', - 'ItemModel', - 'ReferenceLinks', - 'TeamProjectCollectionReference', - 'TeamProjectReference', - 'TfvcBranch', - 'TfvcBranchMapping', - 'TfvcBranchRef', - 'TfvcChange', - 'TfvcChangeset', - 'TfvcChangesetRef', - 'TfvcChangesetSearchCriteria', - 'TfvcChangesetsRequestData', - 'TfvcItem', - 'TfvcItemDescriptor', - 'TfvcItemRequestData', - 'TfvcLabel', - 'TfvcLabelRef', - 'TfvcLabelRequestData', - 'TfvcMergeSource', - 'TfvcPolicyFailureInfo', - 'TfvcPolicyOverrideInfo', - 'TfvcShallowBranchRef', - 'TfvcShelveset', - 'TfvcShelvesetRef', - 'TfvcShelvesetRequestData', - 'TfvcVersionDescriptor', - 'VersionControlProjectInfo', - 'VstsInfo', -] diff --git a/vsts/vsts/tfvc/v4_0/models/associated_work_item.py b/vsts/vsts/tfvc/v4_0/models/associated_work_item.py deleted file mode 100644 index c34ac428..00000000 --- a/vsts/vsts/tfvc/v4_0/models/associated_work_item.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AssociatedWorkItem(Model): - """AssociatedWorkItem. - - :param assigned_to: - :type assigned_to: str - :param id: - :type id: int - :param state: - :type state: str - :param title: - :type title: str - :param url: REST url - :type url: str - :param web_url: - :type web_url: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): - super(AssociatedWorkItem, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.state = state - self.title = title - self.url = url - self.web_url = web_url - self.work_item_type = work_item_type diff --git a/vsts/vsts/tfvc/v4_0/models/change.py b/vsts/vsts/tfvc/v4_0/models/change.py deleted file mode 100644 index 08955451..00000000 --- a/vsts/vsts/tfvc/v4_0/models/change.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param change_type: - :type change_type: object - :param item: - :type item: object - :param new_content: - :type new_content: :class:`ItemContent ` - :param source_server_item: - :type source_server_item: str - :param url: - :type url: str - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'item': {'key': 'item', 'type': 'object'}, - 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, - 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): - super(Change, self).__init__() - self.change_type = change_type - self.item = item - self.new_content = new_content - self.source_server_item = source_server_item - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/checkin_note.py b/vsts/vsts/tfvc/v4_0/models/checkin_note.py deleted file mode 100644 index d92f9bae..00000000 --- a/vsts/vsts/tfvc/v4_0/models/checkin_note.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CheckinNote(Model): - """CheckinNote. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(CheckinNote, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/tfvc/v4_0/models/file_content_metadata.py b/vsts/vsts/tfvc/v4_0/models/file_content_metadata.py deleted file mode 100644 index d2d6667d..00000000 --- a/vsts/vsts/tfvc/v4_0/models/file_content_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FileContentMetadata(Model): - """FileContentMetadata. - - :param content_type: - :type content_type: str - :param encoding: - :type encoding: int - :param extension: - :type extension: str - :param file_name: - :type file_name: str - :param is_binary: - :type is_binary: bool - :param is_image: - :type is_image: bool - :param vs_link: - :type vs_link: str - """ - - _attribute_map = { - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'encoding': {'key': 'encoding', 'type': 'int'}, - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'is_binary': {'key': 'isBinary', 'type': 'bool'}, - 'is_image': {'key': 'isImage', 'type': 'bool'}, - 'vs_link': {'key': 'vsLink', 'type': 'str'} - } - - def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): - super(FileContentMetadata, self).__init__() - self.content_type = content_type - self.encoding = encoding - self.extension = extension - self.file_name = file_name - self.is_binary = is_binary - self.is_image = is_image - self.vs_link = vs_link diff --git a/vsts/vsts/tfvc/v4_0/models/git_repository.py b/vsts/vsts/tfvc/v4_0/models/git_repository.py deleted file mode 100644 index 261c6cfd..00000000 --- a/vsts/vsts/tfvc/v4_0/models/git_repository.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepository(Model): - """GitRepository. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param default_branch: - :type default_branch: str - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param url: - :type url: str - :param valid_remote_urls: - :type valid_remote_urls: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} - } - - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): - super(GitRepository, self).__init__() - self._links = _links - self.default_branch = default_branch - self.id = id - self.is_fork = is_fork - self.name = name - self.parent_repository = parent_repository - self.project = project - self.remote_url = remote_url - self.url = url - self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/tfvc/v4_0/models/git_repository_ref.py b/vsts/vsts/tfvc/v4_0/models/git_repository_ref.py deleted file mode 100644 index 6aa28bf9..00000000 --- a/vsts/vsts/tfvc/v4_0/models/git_repository_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryRef(Model): - """GitRepositoryRef. - - :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` - :param id: - :type id: str - :param name: - :type name: str - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param url: - :type url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): - super(GitRepositoryRef, self).__init__() - self.collection = collection - self.id = id - self.name = name - self.project = project - self.remote_url = remote_url - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/identity_ref.py b/vsts/vsts/tfvc/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/tfvc/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/item_content.py b/vsts/vsts/tfvc/v4_0/models/item_content.py deleted file mode 100644 index f5cfaef1..00000000 --- a/vsts/vsts/tfvc/v4_0/models/item_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemContent(Model): - """ItemContent. - - :param content: - :type content: str - :param content_type: - :type content_type: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'object'} - } - - def __init__(self, content=None, content_type=None): - super(ItemContent, self).__init__() - self.content = content - self.content_type = content_type diff --git a/vsts/vsts/tfvc/v4_0/models/item_model.py b/vsts/vsts/tfvc/v4_0/models/item_model.py deleted file mode 100644 index 162cef06..00000000 --- a/vsts/vsts/tfvc/v4_0/models/item_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemModel(Model): - """ItemModel. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): - super(ItemModel, self).__init__() - self._links = _links - self.content_metadata = content_metadata - self.is_folder = is_folder - self.is_sym_link = is_sym_link - self.path = path - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/reference_links.py b/vsts/vsts/tfvc/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/tfvc/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py b/vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py deleted file mode 100644 index 6f4a596a..00000000 --- a/vsts/vsts/tfvc/v4_0/models/team_project_collection_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectCollectionReference(Model): - """TeamProjectCollectionReference. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(TeamProjectCollectionReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/team_project_reference.py b/vsts/vsts/tfvc/v4_0/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/tfvc/v4_0/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_branch.py b/vsts/vsts/tfvc/v4_0/models/tfvc_branch.py deleted file mode 100644 index 5c697345..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_branch.py +++ /dev/null @@ -1,58 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_branch_ref import TfvcBranchRef - - -class TfvcBranch(TfvcBranchRef): - """TfvcBranch. - - :param path: - :type path: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_date: - :type created_date: datetime - :param description: - :type description: str - :param is_deleted: - :type is_deleted: bool - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - :param children: - :type children: list of :class:`TfvcBranch ` - :param mappings: - :type mappings: list of :class:`TfvcBranchMapping ` - :param parent: - :type parent: :class:`TfvcShallowBranchRef ` - :param related_branches: - :type related_branches: list of :class:`TfvcShallowBranchRef ` - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'children': {'key': 'children', 'type': '[TfvcBranch]'}, - 'mappings': {'key': 'mappings', 'type': '[TfvcBranchMapping]'}, - 'parent': {'key': 'parent', 'type': 'TfvcShallowBranchRef'}, - 'related_branches': {'key': 'relatedBranches', 'type': '[TfvcShallowBranchRef]'} - } - - def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None, children=None, mappings=None, parent=None, related_branches=None): - super(TfvcBranch, self).__init__(path=path, _links=_links, created_date=created_date, description=description, is_deleted=is_deleted, owner=owner, url=url) - self.children = children - self.mappings = mappings - self.parent = parent - self.related_branches = related_branches diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py b/vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py deleted file mode 100644 index b6972b37..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_branch_mapping.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcBranchMapping(Model): - """TfvcBranchMapping. - - :param depth: - :type depth: str - :param server_item: - :type server_item: str - :param type: - :type type: str - """ - - _attribute_map = { - 'depth': {'key': 'depth', 'type': 'str'}, - 'server_item': {'key': 'serverItem', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, depth=None, server_item=None, type=None): - super(TfvcBranchMapping, self).__init__() - self.depth = depth - self.server_item = server_item - self.type = type diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py deleted file mode 100644 index a7aeccec..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_branch_ref.py +++ /dev/null @@ -1,48 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_shallow_branch_ref import TfvcShallowBranchRef - - -class TfvcBranchRef(TfvcShallowBranchRef): - """TfvcBranchRef. - - :param path: - :type path: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_date: - :type created_date: datetime - :param description: - :type description: str - :param is_deleted: - :type is_deleted: bool - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None): - super(TfvcBranchRef, self).__init__(path=path) - self._links = _links - self.created_date = created_date - self.description = description - self.is_deleted = is_deleted - self.owner = owner - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_change.py b/vsts/vsts/tfvc/v4_0/models/tfvc_change.py deleted file mode 100644 index ecb43a6d..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_change.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .change import Change - - -class TfvcChange(Change): - """TfvcChange. - - :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` - :param pending_version: Version at which a (shelved) change was pended against - :type pending_version: int - """ - - _attribute_map = { - 'merge_sources': {'key': 'mergeSources', 'type': '[TfvcMergeSource]'}, - 'pending_version': {'key': 'pendingVersion', 'type': 'int'} - } - - def __init__(self, merge_sources=None, pending_version=None): - super(TfvcChange, self).__init__() - self.merge_sources = merge_sources - self.pending_version = pending_version diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py deleted file mode 100644 index f06bc078..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_changeset_ref import TfvcChangesetRef - - -class TfvcChangeset(TfvcChangesetRef): - """TfvcChangeset. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`IdentityRef ` - :param changeset_id: - :type changeset_id: int - :param checked_in_by: - :type checked_in_by: :class:`IdentityRef ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param created_date: - :type created_date: datetime - :param url: - :type url: str - :param account_id: - :type account_id: str - :param changes: - :type changes: list of :class:`TfvcChange ` - :param checkin_notes: - :type checkin_notes: list of :class:`CheckinNote ` - :param collection_id: - :type collection_id: str - :param has_more_changes: - :type has_more_changes: bool - :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` - :param team_project_ids: - :type team_project_ids: list of str - :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'changeset_id': {'key': 'changesetId', 'type': 'int'}, - 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, - 'checkin_notes': {'key': 'checkinNotes', 'type': '[CheckinNote]'}, - 'collection_id': {'key': 'collectionId', 'type': 'str'}, - 'has_more_changes': {'key': 'hasMoreChanges', 'type': 'bool'}, - 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, - 'team_project_ids': {'key': 'teamProjectIds', 'type': '[str]'}, - 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} - } - - def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None, account_id=None, changes=None, checkin_notes=None, collection_id=None, has_more_changes=None, policy_override=None, team_project_ids=None, work_items=None): - super(TfvcChangeset, self).__init__(_links=_links, author=author, changeset_id=changeset_id, checked_in_by=checked_in_by, comment=comment, comment_truncated=comment_truncated, created_date=created_date, url=url) - self.account_id = account_id - self.changes = changes - self.checkin_notes = checkin_notes - self.collection_id = collection_id - self.has_more_changes = has_more_changes - self.policy_override = policy_override - self.team_project_ids = team_project_ids - self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py deleted file mode 100644 index 4bfb9e4b..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcChangesetRef(Model): - """TfvcChangesetRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`IdentityRef ` - :param changeset_id: - :type changeset_id: int - :param checked_in_by: - :type checked_in_by: :class:`IdentityRef ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param created_date: - :type created_date: datetime - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'changeset_id': {'key': 'changesetId', 'type': 'int'}, - 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None): - super(TfvcChangesetRef, self).__init__() - self._links = _links - self.author = author - self.changeset_id = changeset_id - self.checked_in_by = checked_in_by - self.comment = comment - self.comment_truncated = comment_truncated - self.created_date = created_date - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py deleted file mode 100644 index 41d556ef..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_changeset_search_criteria.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcChangesetSearchCriteria(Model): - """TfvcChangesetSearchCriteria. - - :param author: Alias or display name of user who made the changes - :type author: str - :param follow_renames: Whether or not to follow renames for the given item being queried - :type follow_renames: bool - :param from_date: If provided, only include changesets created after this date (string) Think of a better name for this. - :type from_date: str - :param from_id: If provided, only include changesets after this changesetID - :type from_id: int - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_path: Path of item to search under - :type item_path: str - :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. - :type to_date: str - :param to_id: If provided, a version descriptor for the latest change list to include - :type to_id: int - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'str'}, - 'follow_renames': {'key': 'followRenames', 'type': 'bool'}, - 'from_date': {'key': 'fromDate', 'type': 'str'}, - 'from_id': {'key': 'fromId', 'type': 'int'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_path': {'key': 'itemPath', 'type': 'str'}, - 'to_date': {'key': 'toDate', 'type': 'str'}, - 'to_id': {'key': 'toId', 'type': 'int'} - } - - def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): - super(TfvcChangesetSearchCriteria, self).__init__() - self.author = author - self.follow_renames = follow_renames - self.from_date = from_date - self.from_id = from_id - self.include_links = include_links - self.item_path = item_path - self.to_date = to_date - self.to_id = to_id diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py deleted file mode 100644 index de3973ec..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_changesets_request_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcChangesetsRequestData(Model): - """TfvcChangesetsRequestData. - - :param changeset_ids: - :type changeset_ids: list of int - :param comment_length: - :type comment_length: int - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - """ - - _attribute_map = { - 'changeset_ids': {'key': 'changesetIds', 'type': '[int]'}, - 'comment_length': {'key': 'commentLength', 'type': 'int'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'} - } - - def __init__(self, changeset_ids=None, comment_length=None, include_links=None): - super(TfvcChangesetsRequestData, self).__init__() - self.changeset_ids = changeset_ids - self.comment_length = comment_length - self.include_links = include_links diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_item.py b/vsts/vsts/tfvc/v4_0/models/tfvc_item.py deleted file mode 100644 index 1d56665a..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_item.py +++ /dev/null @@ -1,67 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .item_model import ItemModel - - -class TfvcItem(ItemModel): - """TfvcItem. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - :param change_date: - :type change_date: datetime - :param deletion_id: - :type deletion_id: int - :param hash_value: MD5 hash as a base 64 string, applies to files only. - :type hash_value: str - :param is_branch: - :type is_branch: bool - :param is_pending_change: - :type is_pending_change: bool - :param size: The size of the file, if applicable. - :type size: long - :param version: - :type version: int - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, - 'deletion_id': {'key': 'deletionId', 'type': 'int'}, - 'hash_value': {'key': 'hashValue', 'type': 'str'}, - 'is_branch': {'key': 'isBranch', 'type': 'bool'}, - 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, - 'size': {'key': 'size', 'type': 'long'}, - 'version': {'key': 'version', 'type': 'int'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): - super(TfvcItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) - self.change_date = change_date - self.deletion_id = deletion_id - self.hash_value = hash_value - self.is_branch = is_branch - self.is_pending_change = is_pending_change - self.size = size - self.version = version diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py b/vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py deleted file mode 100644 index 47a3306c..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_item_descriptor.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcItemDescriptor(Model): - """TfvcItemDescriptor. - - :param path: - :type path: str - :param recursion_level: - :type recursion_level: object - :param version: - :type version: str - :param version_option: - :type version_option: object - :param version_type: - :type version_type: object - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_option': {'key': 'versionOption', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, path=None, recursion_level=None, version=None, version_option=None, version_type=None): - super(TfvcItemDescriptor, self).__init__() - self.path = path - self.recursion_level = recursion_level - self.version = version - self.version_option = version_option - self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py deleted file mode 100644 index da451a19..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_item_request_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcItemRequestData(Model): - """TfvcItemRequestData. - - :param include_content_metadata: If true, include metadata about the file type - :type include_content_metadata: bool - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` - """ - - _attribute_map = { - 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_descriptors': {'key': 'itemDescriptors', 'type': '[TfvcItemDescriptor]'} - } - - def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None): - super(TfvcItemRequestData, self).__init__() - self.include_content_metadata = include_content_metadata - self.include_links = include_links - self.item_descriptors = item_descriptors diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_label.py b/vsts/vsts/tfvc/v4_0/models/tfvc_label.py deleted file mode 100644 index eda6f281..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_label.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_label_ref import TfvcLabelRef - - -class TfvcLabel(TfvcLabelRef): - """TfvcLabel. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: int - :param label_scope: - :type label_scope: str - :param modified_date: - :type modified_date: datetime - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - :param items: - :type items: list of :class:`TfvcItem ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'label_scope': {'key': 'labelScope', 'type': 'str'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[TfvcItem]'} - } - - def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None, items=None): - super(TfvcLabel, self).__init__(_links=_links, description=description, id=id, label_scope=label_scope, modified_date=modified_date, name=name, owner=owner, url=url) - self.items = items diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py deleted file mode 100644 index be3d4e3f..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_label_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcLabelRef(Model): - """TfvcLabelRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: int - :param label_scope: - :type label_scope: str - :param modified_date: - :type modified_date: datetime - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'label_scope': {'key': 'labelScope', 'type': 'str'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None): - super(TfvcLabelRef, self).__init__() - self._links = _links - self.description = description - self.id = id - self.label_scope = label_scope - self.modified_date = modified_date - self.name = name - self.owner = owner - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py deleted file mode 100644 index bd8d12cc..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_label_request_data.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcLabelRequestData(Model): - """TfvcLabelRequestData. - - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_label_filter: - :type item_label_filter: str - :param label_scope: - :type label_scope: str - :param max_item_count: - :type max_item_count: int - :param name: - :type name: str - :param owner: - :type owner: str - """ - - _attribute_map = { - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_label_filter': {'key': 'itemLabelFilter', 'type': 'str'}, - 'label_scope': {'key': 'labelScope', 'type': 'str'}, - 'max_item_count': {'key': 'maxItemCount', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'str'} - } - - def __init__(self, include_links=None, item_label_filter=None, label_scope=None, max_item_count=None, name=None, owner=None): - super(TfvcLabelRequestData, self).__init__() - self.include_links = include_links - self.item_label_filter = item_label_filter - self.label_scope = label_scope - self.max_item_count = max_item_count - self.name = name - self.owner = owner diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py b/vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py deleted file mode 100644 index 8516dbd5..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_merge_source.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcMergeSource(Model): - """TfvcMergeSource. - - :param is_rename: Indicates if this a rename source. If false, it is a merge source. - :type is_rename: bool - :param server_item: The server item of the merge source - :type server_item: str - :param version_from: Start of the version range - :type version_from: int - :param version_to: End of the version range - :type version_to: int - """ - - _attribute_map = { - 'is_rename': {'key': 'isRename', 'type': 'bool'}, - 'server_item': {'key': 'serverItem', 'type': 'str'}, - 'version_from': {'key': 'versionFrom', 'type': 'int'}, - 'version_to': {'key': 'versionTo', 'type': 'int'} - } - - def __init__(self, is_rename=None, server_item=None, version_from=None, version_to=None): - super(TfvcMergeSource, self).__init__() - self.is_rename = is_rename - self.server_item = server_item - self.version_from = version_from - self.version_to = version_to diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py b/vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py deleted file mode 100644 index 72ab75d8..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_policy_failure_info.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcPolicyFailureInfo(Model): - """TfvcPolicyFailureInfo. - - :param message: - :type message: str - :param policy_name: - :type policy_name: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'} - } - - def __init__(self, message=None, policy_name=None): - super(TfvcPolicyFailureInfo, self).__init__() - self.message = message - self.policy_name = policy_name diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py b/vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py deleted file mode 100644 index d009cb8c..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_policy_override_info.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcPolicyOverrideInfo(Model): - """TfvcPolicyOverrideInfo. - - :param comment: - :type comment: str - :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'policy_failures': {'key': 'policyFailures', 'type': '[TfvcPolicyFailureInfo]'} - } - - def __init__(self, comment=None, policy_failures=None): - super(TfvcPolicyOverrideInfo, self).__init__() - self.comment = comment - self.policy_failures = policy_failures diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py deleted file mode 100644 index 66fc8e75..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_shallow_branch_ref.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcShallowBranchRef(Model): - """TfvcShallowBranchRef. - - :param path: - :type path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, path=None): - super(TfvcShallowBranchRef, self).__init__() - self.path = path diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py deleted file mode 100644 index 42f245b7..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_shelveset_ref import TfvcShelvesetRef - - -class TfvcShelveset(TfvcShelvesetRef): - """TfvcShelveset. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param created_date: - :type created_date: datetime - :param id: - :type id: str - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - :param changes: - :type changes: list of :class:`TfvcChange ` - :param notes: - :type notes: list of :class:`CheckinNote ` - :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` - :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, - 'notes': {'key': 'notes', 'type': '[CheckinNote]'}, - 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, - 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} - } - - def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None, changes=None, notes=None, policy_override=None, work_items=None): - super(TfvcShelveset, self).__init__(_links=_links, comment=comment, comment_truncated=comment_truncated, created_date=created_date, id=id, name=name, owner=owner, url=url) - self.changes = changes - self.notes = notes - self.policy_override = policy_override - self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py deleted file mode 100644 index 40d39c85..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcShelvesetRef(Model): - """TfvcShelvesetRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param created_date: - :type created_date: datetime - :param id: - :type id: str - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None): - super(TfvcShelvesetRef, self).__init__() - self._links = _links - self.comment = comment - self.comment_truncated = comment_truncated - self.created_date = created_date - self.id = id - self.name = name - self.owner = owner - self.url = url diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py b/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py deleted file mode 100644 index 4d9c1442..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_shelveset_request_data.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcShelvesetRequestData(Model): - """TfvcShelvesetRequestData. - - :param include_details: Whether to include policyOverride and notes Only applies when requesting a single deep shelveset - :type include_details: bool - :param include_links: Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset. - :type include_links: bool - :param include_work_items: Whether to include workItems - :type include_work_items: bool - :param max_change_count: Max number of changes to include - :type max_change_count: int - :param max_comment_length: Max length of comment - :type max_comment_length: int - :param name: Shelveset's name - :type name: str - :param owner: Owner's ID. Could be a name or a guid. - :type owner: str - """ - - _attribute_map = { - 'include_details': {'key': 'includeDetails', 'type': 'bool'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, - 'max_change_count': {'key': 'maxChangeCount', 'type': 'int'}, - 'max_comment_length': {'key': 'maxCommentLength', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'str'} - } - - def __init__(self, include_details=None, include_links=None, include_work_items=None, max_change_count=None, max_comment_length=None, name=None, owner=None): - super(TfvcShelvesetRequestData, self).__init__() - self.include_details = include_details - self.include_links = include_links - self.include_work_items = include_work_items - self.max_change_count = max_change_count - self.max_comment_length = max_comment_length - self.name = name - self.owner = owner diff --git a/vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py b/vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py deleted file mode 100644 index 13187560..00000000 --- a/vsts/vsts/tfvc/v4_0/models/tfvc_version_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcVersionDescriptor(Model): - """TfvcVersionDescriptor. - - :param version: - :type version: str - :param version_option: - :type version_option: object - :param version_type: - :type version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_option': {'key': 'versionOption', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, version=None, version_option=None, version_type=None): - super(TfvcVersionDescriptor, self).__init__() - self.version = version - self.version_option = version_option - self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_0/models/version_control_project_info.py b/vsts/vsts/tfvc/v4_0/models/version_control_project_info.py deleted file mode 100644 index 28ec52e6..00000000 --- a/vsts/vsts/tfvc/v4_0/models/version_control_project_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VersionControlProjectInfo(Model): - """VersionControlProjectInfo. - - :param default_source_control_type: - :type default_source_control_type: object - :param project: - :type project: :class:`TeamProjectReference ` - :param supports_git: - :type supports_git: bool - :param supports_tFVC: - :type supports_tFVC: bool - """ - - _attribute_map = { - 'default_source_control_type': {'key': 'defaultSourceControlType', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'supports_git': {'key': 'supportsGit', 'type': 'bool'}, - 'supports_tFVC': {'key': 'supportsTFVC', 'type': 'bool'} - } - - def __init__(self, default_source_control_type=None, project=None, supports_git=None, supports_tFVC=None): - super(VersionControlProjectInfo, self).__init__() - self.default_source_control_type = default_source_control_type - self.project = project - self.supports_git = supports_git - self.supports_tFVC = supports_tFVC diff --git a/vsts/vsts/tfvc/v4_0/models/vsts_info.py b/vsts/vsts/tfvc/v4_0/models/vsts_info.py deleted file mode 100644 index abeb98e8..00000000 --- a/vsts/vsts/tfvc/v4_0/models/vsts_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VstsInfo(Model): - """VstsInfo. - - :param collection: - :type collection: :class:`TeamProjectCollectionReference ` - :param repository: - :type repository: :class:`GitRepository ` - :param server_url: - :type server_url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'server_url': {'key': 'serverUrl', 'type': 'str'} - } - - def __init__(self, collection=None, repository=None, server_url=None): - super(VstsInfo, self).__init__() - self.collection = collection - self.repository = repository - self.server_url = server_url diff --git a/vsts/vsts/tfvc/v4_1/__init__.py b/vsts/vsts/tfvc/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/tfvc/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/tfvc/v4_1/models/__init__.py b/vsts/vsts/tfvc/v4_1/models/__init__.py deleted file mode 100644 index 54666a57..00000000 --- a/vsts/vsts/tfvc/v4_1/models/__init__.py +++ /dev/null @@ -1,85 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .associated_work_item import AssociatedWorkItem -from .change import Change -from .checkin_note import CheckinNote -from .file_content_metadata import FileContentMetadata -from .git_repository import GitRepository -from .git_repository_ref import GitRepositoryRef -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .item_content import ItemContent -from .item_model import ItemModel -from .reference_links import ReferenceLinks -from .team_project_collection_reference import TeamProjectCollectionReference -from .team_project_reference import TeamProjectReference -from .tfvc_branch import TfvcBranch -from .tfvc_branch_mapping import TfvcBranchMapping -from .tfvc_branch_ref import TfvcBranchRef -from .tfvc_change import TfvcChange -from .tfvc_changeset import TfvcChangeset -from .tfvc_changeset_ref import TfvcChangesetRef -from .tfvc_changeset_search_criteria import TfvcChangesetSearchCriteria -from .tfvc_changesets_request_data import TfvcChangesetsRequestData -from .tfvc_item import TfvcItem -from .tfvc_item_descriptor import TfvcItemDescriptor -from .tfvc_item_request_data import TfvcItemRequestData -from .tfvc_label import TfvcLabel -from .tfvc_label_ref import TfvcLabelRef -from .tfvc_label_request_data import TfvcLabelRequestData -from .tfvc_merge_source import TfvcMergeSource -from .tfvc_policy_failure_info import TfvcPolicyFailureInfo -from .tfvc_policy_override_info import TfvcPolicyOverrideInfo -from .tfvc_shallow_branch_ref import TfvcShallowBranchRef -from .tfvc_shelveset import TfvcShelveset -from .tfvc_shelveset_ref import TfvcShelvesetRef -from .tfvc_shelveset_request_data import TfvcShelvesetRequestData -from .tfvc_version_descriptor import TfvcVersionDescriptor -from .version_control_project_info import VersionControlProjectInfo -from .vsts_info import VstsInfo - -__all__ = [ - 'AssociatedWorkItem', - 'Change', - 'CheckinNote', - 'FileContentMetadata', - 'GitRepository', - 'GitRepositoryRef', - 'GraphSubjectBase', - 'IdentityRef', - 'ItemContent', - 'ItemModel', - 'ReferenceLinks', - 'TeamProjectCollectionReference', - 'TeamProjectReference', - 'TfvcBranch', - 'TfvcBranchMapping', - 'TfvcBranchRef', - 'TfvcChange', - 'TfvcChangeset', - 'TfvcChangesetRef', - 'TfvcChangesetSearchCriteria', - 'TfvcChangesetsRequestData', - 'TfvcItem', - 'TfvcItemDescriptor', - 'TfvcItemRequestData', - 'TfvcLabel', - 'TfvcLabelRef', - 'TfvcLabelRequestData', - 'TfvcMergeSource', - 'TfvcPolicyFailureInfo', - 'TfvcPolicyOverrideInfo', - 'TfvcShallowBranchRef', - 'TfvcShelveset', - 'TfvcShelvesetRef', - 'TfvcShelvesetRequestData', - 'TfvcVersionDescriptor', - 'VersionControlProjectInfo', - 'VstsInfo', -] diff --git a/vsts/vsts/tfvc/v4_1/models/associated_work_item.py b/vsts/vsts/tfvc/v4_1/models/associated_work_item.py deleted file mode 100644 index 1f491dad..00000000 --- a/vsts/vsts/tfvc/v4_1/models/associated_work_item.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AssociatedWorkItem(Model): - """AssociatedWorkItem. - - :param assigned_to: - :type assigned_to: str - :param id: Id of associated the work item. - :type id: int - :param state: - :type state: str - :param title: - :type title: str - :param url: REST Url of the work item. - :type url: str - :param web_url: - :type web_url: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): - super(AssociatedWorkItem, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.state = state - self.title = title - self.url = url - self.web_url = web_url - self.work_item_type = work_item_type diff --git a/vsts/vsts/tfvc/v4_1/models/change.py b/vsts/vsts/tfvc/v4_1/models/change.py deleted file mode 100644 index 833f8744..00000000 --- a/vsts/vsts/tfvc/v4_1/models/change.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param change_type: The type of change that was made to the item. - :type change_type: object - :param item: Current version. - :type item: object - :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` - :param source_server_item: Path of the item on the server. - :type source_server_item: str - :param url: URL to retrieve the item. - :type url: str - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'item': {'key': 'item', 'type': 'object'}, - 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, - 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): - super(Change, self).__init__() - self.change_type = change_type - self.item = item - self.new_content = new_content - self.source_server_item = source_server_item - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/checkin_note.py b/vsts/vsts/tfvc/v4_1/models/checkin_note.py deleted file mode 100644 index d92f9bae..00000000 --- a/vsts/vsts/tfvc/v4_1/models/checkin_note.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CheckinNote(Model): - """CheckinNote. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(CheckinNote, self).__init__() - self.name = name - self.value = value diff --git a/vsts/vsts/tfvc/v4_1/models/file_content_metadata.py b/vsts/vsts/tfvc/v4_1/models/file_content_metadata.py deleted file mode 100644 index d2d6667d..00000000 --- a/vsts/vsts/tfvc/v4_1/models/file_content_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FileContentMetadata(Model): - """FileContentMetadata. - - :param content_type: - :type content_type: str - :param encoding: - :type encoding: int - :param extension: - :type extension: str - :param file_name: - :type file_name: str - :param is_binary: - :type is_binary: bool - :param is_image: - :type is_image: bool - :param vs_link: - :type vs_link: str - """ - - _attribute_map = { - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'encoding': {'key': 'encoding', 'type': 'int'}, - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'is_binary': {'key': 'isBinary', 'type': 'bool'}, - 'is_image': {'key': 'isImage', 'type': 'bool'}, - 'vs_link': {'key': 'vsLink', 'type': 'str'} - } - - def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): - super(FileContentMetadata, self).__init__() - self.content_type = content_type - self.encoding = encoding - self.extension = extension - self.file_name = file_name - self.is_binary = is_binary - self.is_image = is_image - self.vs_link = vs_link diff --git a/vsts/vsts/tfvc/v4_1/models/git_repository.py b/vsts/vsts/tfvc/v4_1/models/git_repository.py deleted file mode 100644 index cbc542ed..00000000 --- a/vsts/vsts/tfvc/v4_1/models/git_repository.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepository(Model): - """GitRepository. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param default_branch: - :type default_branch: str - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param ssh_url: - :type ssh_url: str - :param url: - :type url: str - :param valid_remote_urls: - :type valid_remote_urls: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} - } - - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): - super(GitRepository, self).__init__() - self._links = _links - self.default_branch = default_branch - self.id = id - self.is_fork = is_fork - self.name = name - self.parent_repository = parent_repository - self.project = project - self.remote_url = remote_url - self.ssh_url = ssh_url - self.url = url - self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/tfvc/v4_1/models/git_repository_ref.py b/vsts/vsts/tfvc/v4_1/models/git_repository_ref.py deleted file mode 100644 index caa8c101..00000000 --- a/vsts/vsts/tfvc/v4_1/models/git_repository_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryRef(Model): - """GitRepositoryRef. - - :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param project: - :type project: :class:`TeamProjectReference ` - :param remote_url: - :type remote_url: str - :param ssh_url: - :type ssh_url: str - :param url: - :type url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): - super(GitRepositoryRef, self).__init__() - self.collection = collection - self.id = id - self.is_fork = is_fork - self.name = name - self.project = project - self.remote_url = remote_url - self.ssh_url = ssh_url - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/graph_subject_base.py b/vsts/vsts/tfvc/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/tfvc/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/tfvc/v4_1/models/identity_ref.py b/vsts/vsts/tfvc/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/tfvc/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/tfvc/v4_1/models/item_content.py b/vsts/vsts/tfvc/v4_1/models/item_content.py deleted file mode 100644 index f5cfaef1..00000000 --- a/vsts/vsts/tfvc/v4_1/models/item_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemContent(Model): - """ItemContent. - - :param content: - :type content: str - :param content_type: - :type content_type: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'object'} - } - - def __init__(self, content=None, content_type=None): - super(ItemContent, self).__init__() - self.content = content - self.content_type = content_type diff --git a/vsts/vsts/tfvc/v4_1/models/item_model.py b/vsts/vsts/tfvc/v4_1/models/item_model.py deleted file mode 100644 index e346b148..00000000 --- a/vsts/vsts/tfvc/v4_1/models/item_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemModel(Model): - """ItemModel. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content: - :type content: str - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content': {'key': 'content', 'type': 'str'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): - super(ItemModel, self).__init__() - self._links = _links - self.content = content - self.content_metadata = content_metadata - self.is_folder = is_folder - self.is_sym_link = is_sym_link - self.path = path - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/reference_links.py b/vsts/vsts/tfvc/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/tfvc/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py b/vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py deleted file mode 100644 index 6f4a596a..00000000 --- a/vsts/vsts/tfvc/v4_1/models/team_project_collection_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectCollectionReference(Model): - """TeamProjectCollectionReference. - - :param id: Collection Id. - :type id: str - :param name: Collection Name. - :type name: str - :param url: Collection REST Url. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(TeamProjectCollectionReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/team_project_reference.py b/vsts/vsts/tfvc/v4_1/models/team_project_reference.py deleted file mode 100644 index fa79d465..00000000 --- a/vsts/vsts/tfvc/v4_1/models/team_project_reference.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamProjectReference(Model): - """TeamProjectReference. - - :param abbreviation: Project abbreviation. - :type abbreviation: str - :param description: The project's description (if any). - :type description: str - :param id: Project identifier. - :type id: str - :param name: Project name. - :type name: str - :param revision: Project revision. - :type revision: long - :param state: Project state. - :type state: object - :param url: Url to the full version of the object. - :type url: str - :param visibility: Project visibility. - :type visibility: object - """ - - _attribute_map = { - 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'long'}, - 'state': {'key': 'state', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'object'} - } - - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): - super(TeamProjectReference, self).__init__() - self.abbreviation = abbreviation - self.description = description - self.id = id - self.name = name - self.revision = revision - self.state = state - self.url = url - self.visibility = visibility diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_branch.py b/vsts/vsts/tfvc/v4_1/models/tfvc_branch.py deleted file mode 100644 index d8e7a214..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_branch.py +++ /dev/null @@ -1,58 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_branch_ref import TfvcBranchRef - - -class TfvcBranch(TfvcBranchRef): - """TfvcBranch. - - :param path: Path for the branch. - :type path: str - :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` - :param created_date: Creation date of the branch. - :type created_date: datetime - :param description: Description of the branch. - :type description: str - :param is_deleted: Is the branch deleted? - :type is_deleted: bool - :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` - :param url: URL to retrieve the item. - :type url: str - :param children: List of children for the branch. - :type children: list of :class:`TfvcBranch ` - :param mappings: List of branch mappings. - :type mappings: list of :class:`TfvcBranchMapping ` - :param parent: Path of the branch's parent. - :type parent: :class:`TfvcShallowBranchRef ` - :param related_branches: List of paths of the related branches. - :type related_branches: list of :class:`TfvcShallowBranchRef ` - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'children': {'key': 'children', 'type': '[TfvcBranch]'}, - 'mappings': {'key': 'mappings', 'type': '[TfvcBranchMapping]'}, - 'parent': {'key': 'parent', 'type': 'TfvcShallowBranchRef'}, - 'related_branches': {'key': 'relatedBranches', 'type': '[TfvcShallowBranchRef]'} - } - - def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None, children=None, mappings=None, parent=None, related_branches=None): - super(TfvcBranch, self).__init__(path=path, _links=_links, created_date=created_date, description=description, is_deleted=is_deleted, owner=owner, url=url) - self.children = children - self.mappings = mappings - self.parent = parent - self.related_branches = related_branches diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py b/vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py deleted file mode 100644 index 0e0bf579..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_branch_mapping.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcBranchMapping(Model): - """TfvcBranchMapping. - - :param depth: Depth of the branch. - :type depth: str - :param server_item: Server item for the branch. - :type server_item: str - :param type: Type of the branch. - :type type: str - """ - - _attribute_map = { - 'depth': {'key': 'depth', 'type': 'str'}, - 'server_item': {'key': 'serverItem', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, depth=None, server_item=None, type=None): - super(TfvcBranchMapping, self).__init__() - self.depth = depth - self.server_item = server_item - self.type = type diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py deleted file mode 100644 index cf094f99..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_branch_ref.py +++ /dev/null @@ -1,48 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_shallow_branch_ref import TfvcShallowBranchRef - - -class TfvcBranchRef(TfvcShallowBranchRef): - """TfvcBranchRef. - - :param path: Path for the branch. - :type path: str - :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` - :param created_date: Creation date of the branch. - :type created_date: datetime - :param description: Description of the branch. - :type description: str - :param is_deleted: Is the branch deleted? - :type is_deleted: bool - :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` - :param url: URL to retrieve the item. - :type url: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, path=None, _links=None, created_date=None, description=None, is_deleted=None, owner=None, url=None): - super(TfvcBranchRef, self).__init__(path=path) - self._links = _links - self.created_date = created_date - self.description = description - self.is_deleted = is_deleted - self.owner = owner - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_change.py b/vsts/vsts/tfvc/v4_1/models/tfvc_change.py deleted file mode 100644 index 9880c769..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_change.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .change import Change - - -class TfvcChange(Change): - """TfvcChange. - - :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` - :param pending_version: Version at which a (shelved) change was pended against - :type pending_version: int - """ - - _attribute_map = { - 'merge_sources': {'key': 'mergeSources', 'type': '[TfvcMergeSource]'}, - 'pending_version': {'key': 'pendingVersion', 'type': 'int'} - } - - def __init__(self, merge_sources=None, pending_version=None): - super(TfvcChange, self).__init__() - self.merge_sources = merge_sources - self.pending_version = pending_version diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py deleted file mode 100644 index 76850429..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_changeset_ref import TfvcChangesetRef - - -class TfvcChangeset(TfvcChangesetRef): - """TfvcChangeset. - - :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` - :param author: Alias or display name of user - :type author: :class:`IdentityRef ` - :param changeset_id: Id of the changeset. - :type changeset_id: int - :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` - :param comment: Comment for the changeset. - :type comment: str - :param comment_truncated: Was the Comment result truncated? - :type comment_truncated: bool - :param created_date: Creation date of the changeset. - :type created_date: datetime - :param url: URL to retrieve the item. - :type url: str - :param account_id: Account Id of the changeset. - :type account_id: str - :param changes: List of associated changes. - :type changes: list of :class:`TfvcChange ` - :param checkin_notes: Checkin Notes for the changeset. - :type checkin_notes: list of :class:`CheckinNote ` - :param collection_id: Collection Id of the changeset. - :type collection_id: str - :param has_more_changes: Are more changes available. - :type has_more_changes: bool - :param policy_override: Policy Override for the changeset. - :type policy_override: :class:`TfvcPolicyOverrideInfo ` - :param team_project_ids: Team Project Ids for the changeset. - :type team_project_ids: list of str - :param work_items: List of work items associated with the changeset. - :type work_items: list of :class:`AssociatedWorkItem ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'changeset_id': {'key': 'changesetId', 'type': 'int'}, - 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, - 'checkin_notes': {'key': 'checkinNotes', 'type': '[CheckinNote]'}, - 'collection_id': {'key': 'collectionId', 'type': 'str'}, - 'has_more_changes': {'key': 'hasMoreChanges', 'type': 'bool'}, - 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, - 'team_project_ids': {'key': 'teamProjectIds', 'type': '[str]'}, - 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} - } - - def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None, account_id=None, changes=None, checkin_notes=None, collection_id=None, has_more_changes=None, policy_override=None, team_project_ids=None, work_items=None): - super(TfvcChangeset, self).__init__(_links=_links, author=author, changeset_id=changeset_id, checked_in_by=checked_in_by, comment=comment, comment_truncated=comment_truncated, created_date=created_date, url=url) - self.account_id = account_id - self.changes = changes - self.checkin_notes = checkin_notes - self.collection_id = collection_id - self.has_more_changes = has_more_changes - self.policy_override = policy_override - self.team_project_ids = team_project_ids - self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py deleted file mode 100644 index ae48f998..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcChangesetRef(Model): - """TfvcChangesetRef. - - :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` - :param author: Alias or display name of user - :type author: :class:`IdentityRef ` - :param changeset_id: Id of the changeset. - :type changeset_id: int - :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` - :param comment: Comment for the changeset. - :type comment: str - :param comment_truncated: Was the Comment result truncated? - :type comment_truncated: bool - :param created_date: Creation date of the changeset. - :type created_date: datetime - :param url: URL to retrieve the item. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'changeset_id': {'key': 'changesetId', 'type': 'int'}, - 'checked_in_by': {'key': 'checkedInBy', 'type': 'IdentityRef'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, author=None, changeset_id=None, checked_in_by=None, comment=None, comment_truncated=None, created_date=None, url=None): - super(TfvcChangesetRef, self).__init__() - self._links = _links - self.author = author - self.changeset_id = changeset_id - self.checked_in_by = checked_in_by - self.comment = comment - self.comment_truncated = comment_truncated - self.created_date = created_date - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py deleted file mode 100644 index 41d556ef..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_changeset_search_criteria.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcChangesetSearchCriteria(Model): - """TfvcChangesetSearchCriteria. - - :param author: Alias or display name of user who made the changes - :type author: str - :param follow_renames: Whether or not to follow renames for the given item being queried - :type follow_renames: bool - :param from_date: If provided, only include changesets created after this date (string) Think of a better name for this. - :type from_date: str - :param from_id: If provided, only include changesets after this changesetID - :type from_id: int - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_path: Path of item to search under - :type item_path: str - :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. - :type to_date: str - :param to_id: If provided, a version descriptor for the latest change list to include - :type to_id: int - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'str'}, - 'follow_renames': {'key': 'followRenames', 'type': 'bool'}, - 'from_date': {'key': 'fromDate', 'type': 'str'}, - 'from_id': {'key': 'fromId', 'type': 'int'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_path': {'key': 'itemPath', 'type': 'str'}, - 'to_date': {'key': 'toDate', 'type': 'str'}, - 'to_id': {'key': 'toId', 'type': 'int'} - } - - def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): - super(TfvcChangesetSearchCriteria, self).__init__() - self.author = author - self.follow_renames = follow_renames - self.from_date = from_date - self.from_id = from_id - self.include_links = include_links - self.item_path = item_path - self.to_date = to_date - self.to_id = to_id diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py deleted file mode 100644 index 2f22a642..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_changesets_request_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcChangesetsRequestData(Model): - """TfvcChangesetsRequestData. - - :param changeset_ids: List of changeset Ids. - :type changeset_ids: list of int - :param comment_length: Length of the comment. - :type comment_length: int - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - """ - - _attribute_map = { - 'changeset_ids': {'key': 'changesetIds', 'type': '[int]'}, - 'comment_length': {'key': 'commentLength', 'type': 'int'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'} - } - - def __init__(self, changeset_ids=None, comment_length=None, include_links=None): - super(TfvcChangesetsRequestData, self).__init__() - self.changeset_ids = changeset_ids - self.comment_length = comment_length - self.include_links = include_links diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_item.py b/vsts/vsts/tfvc/v4_1/models/tfvc_item.py deleted file mode 100644 index 7d30e4fd..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_item.py +++ /dev/null @@ -1,70 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .item_model import ItemModel - - -class TfvcItem(ItemModel): - """TfvcItem. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param content: - :type content: str - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - :param change_date: - :type change_date: datetime - :param deletion_id: - :type deletion_id: int - :param hash_value: MD5 hash as a base 64 string, applies to files only. - :type hash_value: str - :param is_branch: - :type is_branch: bool - :param is_pending_change: - :type is_pending_change: bool - :param size: The size of the file, if applicable. - :type size: long - :param version: - :type version: int - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content': {'key': 'content', 'type': 'str'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, - 'deletion_id': {'key': 'deletionId', 'type': 'int'}, - 'hash_value': {'key': 'hashValue', 'type': 'str'}, - 'is_branch': {'key': 'isBranch', 'type': 'bool'}, - 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, - 'size': {'key': 'size', 'type': 'long'}, - 'version': {'key': 'version', 'type': 'int'} - } - - def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): - super(TfvcItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) - self.change_date = change_date - self.deletion_id = deletion_id - self.hash_value = hash_value - self.is_branch = is_branch - self.is_pending_change = is_pending_change - self.size = size - self.version = version diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py b/vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py deleted file mode 100644 index 47a3306c..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_item_descriptor.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcItemDescriptor(Model): - """TfvcItemDescriptor. - - :param path: - :type path: str - :param recursion_level: - :type recursion_level: object - :param version: - :type version: str - :param version_option: - :type version_option: object - :param version_type: - :type version_type: object - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'recursion_level': {'key': 'recursionLevel', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'str'}, - 'version_option': {'key': 'versionOption', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, path=None, recursion_level=None, version=None, version_option=None, version_type=None): - super(TfvcItemDescriptor, self).__init__() - self.path = path - self.recursion_level = recursion_level - self.version = version - self.version_option = version_option - self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py deleted file mode 100644 index 981cd2bb..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_item_request_data.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcItemRequestData(Model): - """TfvcItemRequestData. - - :param include_content_metadata: If true, include metadata about the file type - :type include_content_metadata: bool - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` - """ - - _attribute_map = { - 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_descriptors': {'key': 'itemDescriptors', 'type': '[TfvcItemDescriptor]'} - } - - def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None): - super(TfvcItemRequestData, self).__init__() - self.include_content_metadata = include_content_metadata - self.include_links = include_links - self.item_descriptors = item_descriptors diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_label.py b/vsts/vsts/tfvc/v4_1/models/tfvc_label.py deleted file mode 100644 index c4c6c477..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_label.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_label_ref import TfvcLabelRef - - -class TfvcLabel(TfvcLabelRef): - """TfvcLabel. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: int - :param label_scope: - :type label_scope: str - :param modified_date: - :type modified_date: datetime - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - :param items: - :type items: list of :class:`TfvcItem ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'label_scope': {'key': 'labelScope', 'type': 'str'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[TfvcItem]'} - } - - def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None, items=None): - super(TfvcLabel, self).__init__(_links=_links, description=description, id=id, label_scope=label_scope, modified_date=modified_date, name=name, owner=owner, url=url) - self.items = items diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py deleted file mode 100644 index d614f0fb..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_label_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcLabelRef(Model): - """TfvcLabelRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: int - :param label_scope: - :type label_scope: str - :param modified_date: - :type modified_date: datetime - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'label_scope': {'key': 'labelScope', 'type': 'str'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, description=None, id=None, label_scope=None, modified_date=None, name=None, owner=None, url=None): - super(TfvcLabelRef, self).__init__() - self._links = _links - self.description = description - self.id = id - self.label_scope = label_scope - self.modified_date = modified_date - self.name = name - self.owner = owner - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py deleted file mode 100644 index bd8d12cc..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_label_request_data.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcLabelRequestData(Model): - """TfvcLabelRequestData. - - :param include_links: Whether to include the _links field on the shallow references - :type include_links: bool - :param item_label_filter: - :type item_label_filter: str - :param label_scope: - :type label_scope: str - :param max_item_count: - :type max_item_count: int - :param name: - :type name: str - :param owner: - :type owner: str - """ - - _attribute_map = { - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'item_label_filter': {'key': 'itemLabelFilter', 'type': 'str'}, - 'label_scope': {'key': 'labelScope', 'type': 'str'}, - 'max_item_count': {'key': 'maxItemCount', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'str'} - } - - def __init__(self, include_links=None, item_label_filter=None, label_scope=None, max_item_count=None, name=None, owner=None): - super(TfvcLabelRequestData, self).__init__() - self.include_links = include_links - self.item_label_filter = item_label_filter - self.label_scope = label_scope - self.max_item_count = max_item_count - self.name = name - self.owner = owner diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py b/vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py deleted file mode 100644 index 8516dbd5..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_merge_source.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcMergeSource(Model): - """TfvcMergeSource. - - :param is_rename: Indicates if this a rename source. If false, it is a merge source. - :type is_rename: bool - :param server_item: The server item of the merge source - :type server_item: str - :param version_from: Start of the version range - :type version_from: int - :param version_to: End of the version range - :type version_to: int - """ - - _attribute_map = { - 'is_rename': {'key': 'isRename', 'type': 'bool'}, - 'server_item': {'key': 'serverItem', 'type': 'str'}, - 'version_from': {'key': 'versionFrom', 'type': 'int'}, - 'version_to': {'key': 'versionTo', 'type': 'int'} - } - - def __init__(self, is_rename=None, server_item=None, version_from=None, version_to=None): - super(TfvcMergeSource, self).__init__() - self.is_rename = is_rename - self.server_item = server_item - self.version_from = version_from - self.version_to = version_to diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py b/vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py deleted file mode 100644 index 72ab75d8..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_policy_failure_info.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcPolicyFailureInfo(Model): - """TfvcPolicyFailureInfo. - - :param message: - :type message: str - :param policy_name: - :type policy_name: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'} - } - - def __init__(self, message=None, policy_name=None): - super(TfvcPolicyFailureInfo, self).__init__() - self.message = message - self.policy_name = policy_name diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py b/vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py deleted file mode 100644 index 9477c03a..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_policy_override_info.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcPolicyOverrideInfo(Model): - """TfvcPolicyOverrideInfo. - - :param comment: - :type comment: str - :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'policy_failures': {'key': 'policyFailures', 'type': '[TfvcPolicyFailureInfo]'} - } - - def __init__(self, comment=None, policy_failures=None): - super(TfvcPolicyOverrideInfo, self).__init__() - self.comment = comment - self.policy_failures = policy_failures diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py deleted file mode 100644 index 3c863aa0..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_shallow_branch_ref.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcShallowBranchRef(Model): - """TfvcShallowBranchRef. - - :param path: Path for the branch. - :type path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, path=None): - super(TfvcShallowBranchRef, self).__init__() - self.path = path diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py deleted file mode 100644 index 9562f3f6..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .tfvc_shelveset_ref import TfvcShelvesetRef - - -class TfvcShelveset(TfvcShelvesetRef): - """TfvcShelveset. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param created_date: - :type created_date: datetime - :param id: - :type id: str - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - :param changes: - :type changes: list of :class:`TfvcChange ` - :param notes: - :type notes: list of :class:`CheckinNote ` - :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` - :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'}, - 'changes': {'key': 'changes', 'type': '[TfvcChange]'}, - 'notes': {'key': 'notes', 'type': '[CheckinNote]'}, - 'policy_override': {'key': 'policyOverride', 'type': 'TfvcPolicyOverrideInfo'}, - 'work_items': {'key': 'workItems', 'type': '[AssociatedWorkItem]'} - } - - def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None, changes=None, notes=None, policy_override=None, work_items=None): - super(TfvcShelveset, self).__init__(_links=_links, comment=comment, comment_truncated=comment_truncated, created_date=created_date, id=id, name=name, owner=owner, url=url) - self.changes = changes - self.notes = notes - self.policy_override = policy_override - self.work_items = work_items diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py deleted file mode 100644 index 10a96a20..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcShelvesetRef(Model): - """TfvcShelvesetRef. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param created_date: - :type created_date: datetime - :param id: - :type id: str - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, comment=None, comment_truncated=None, created_date=None, id=None, name=None, owner=None, url=None): - super(TfvcShelvesetRef, self).__init__() - self._links = _links - self.comment = comment - self.comment_truncated = comment_truncated - self.created_date = created_date - self.id = id - self.name = name - self.owner = owner - self.url = url diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py b/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py deleted file mode 100644 index 4d9c1442..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_shelveset_request_data.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcShelvesetRequestData(Model): - """TfvcShelvesetRequestData. - - :param include_details: Whether to include policyOverride and notes Only applies when requesting a single deep shelveset - :type include_details: bool - :param include_links: Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset. - :type include_links: bool - :param include_work_items: Whether to include workItems - :type include_work_items: bool - :param max_change_count: Max number of changes to include - :type max_change_count: int - :param max_comment_length: Max length of comment - :type max_comment_length: int - :param name: Shelveset's name - :type name: str - :param owner: Owner's ID. Could be a name or a guid. - :type owner: str - """ - - _attribute_map = { - 'include_details': {'key': 'includeDetails', 'type': 'bool'}, - 'include_links': {'key': 'includeLinks', 'type': 'bool'}, - 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, - 'max_change_count': {'key': 'maxChangeCount', 'type': 'int'}, - 'max_comment_length': {'key': 'maxCommentLength', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'str'} - } - - def __init__(self, include_details=None, include_links=None, include_work_items=None, max_change_count=None, max_comment_length=None, name=None, owner=None): - super(TfvcShelvesetRequestData, self).__init__() - self.include_details = include_details - self.include_links = include_links - self.include_work_items = include_work_items - self.max_change_count = max_change_count - self.max_comment_length = max_comment_length - self.name = name - self.owner = owner diff --git a/vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py b/vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py deleted file mode 100644 index 13187560..00000000 --- a/vsts/vsts/tfvc/v4_1/models/tfvc_version_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TfvcVersionDescriptor(Model): - """TfvcVersionDescriptor. - - :param version: - :type version: str - :param version_option: - :type version_option: object - :param version_type: - :type version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_option': {'key': 'versionOption', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, version=None, version_option=None, version_type=None): - super(TfvcVersionDescriptor, self).__init__() - self.version = version - self.version_option = version_option - self.version_type = version_type diff --git a/vsts/vsts/tfvc/v4_1/models/version_control_project_info.py b/vsts/vsts/tfvc/v4_1/models/version_control_project_info.py deleted file mode 100644 index 3ec9fc3d..00000000 --- a/vsts/vsts/tfvc/v4_1/models/version_control_project_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VersionControlProjectInfo(Model): - """VersionControlProjectInfo. - - :param default_source_control_type: - :type default_source_control_type: object - :param project: - :type project: :class:`TeamProjectReference ` - :param supports_git: - :type supports_git: bool - :param supports_tFVC: - :type supports_tFVC: bool - """ - - _attribute_map = { - 'default_source_control_type': {'key': 'defaultSourceControlType', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'supports_git': {'key': 'supportsGit', 'type': 'bool'}, - 'supports_tFVC': {'key': 'supportsTFVC', 'type': 'bool'} - } - - def __init__(self, default_source_control_type=None, project=None, supports_git=None, supports_tFVC=None): - super(VersionControlProjectInfo, self).__init__() - self.default_source_control_type = default_source_control_type - self.project = project - self.supports_git = supports_git - self.supports_tFVC = supports_tFVC diff --git a/vsts/vsts/tfvc/v4_1/models/vsts_info.py b/vsts/vsts/tfvc/v4_1/models/vsts_info.py deleted file mode 100644 index 294db212..00000000 --- a/vsts/vsts/tfvc/v4_1/models/vsts_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class VstsInfo(Model): - """VstsInfo. - - :param collection: - :type collection: :class:`TeamProjectCollectionReference ` - :param repository: - :type repository: :class:`GitRepository ` - :param server_url: - :type server_url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'}, - 'server_url': {'key': 'serverUrl', 'type': 'str'} - } - - def __init__(self, collection=None, repository=None, server_url=None): - super(VstsInfo, self).__init__() - self.collection = collection - self.repository = repository - self.server_url = server_url diff --git a/vsts/vsts/wiki/__init__.py b/vsts/vsts/wiki/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/wiki/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/wiki/v4_0/__init__.py b/vsts/vsts/wiki/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/wiki/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/wiki/v4_0/models/__init__.py b/vsts/vsts/wiki/v4_0/models/__init__.py deleted file mode 100644 index c8bdedff..00000000 --- a/vsts/vsts/wiki/v4_0/models/__init__.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .change import Change -from .file_content_metadata import FileContentMetadata -from .git_commit_ref import GitCommitRef -from .git_item import GitItem -from .git_push import GitPush -from .git_push_ref import GitPushRef -from .git_ref_update import GitRefUpdate -from .git_repository import GitRepository -from .git_repository_ref import GitRepositoryRef -from .git_status import GitStatus -from .git_status_context import GitStatusContext -from .git_template import GitTemplate -from .git_user_date import GitUserDate -from .git_version_descriptor import GitVersionDescriptor -from .item_content import ItemContent -from .item_model import ItemModel -from .wiki_attachment import WikiAttachment -from .wiki_attachment_change import WikiAttachmentChange -from .wiki_attachment_response import WikiAttachmentResponse -from .wiki_change import WikiChange -from .wiki_page import WikiPage -from .wiki_page_change import WikiPageChange -from .wiki_repository import WikiRepository -from .wiki_update import WikiUpdate - -__all__ = [ - 'Change', - 'FileContentMetadata', - 'GitCommitRef', - 'GitItem', - 'GitPush', - 'GitPushRef', - 'GitRefUpdate', - 'GitRepository', - 'GitRepositoryRef', - 'GitStatus', - 'GitStatusContext', - 'GitTemplate', - 'GitUserDate', - 'GitVersionDescriptor', - 'ItemContent', - 'ItemModel', - 'WikiAttachment', - 'WikiAttachmentChange', - 'WikiAttachmentResponse', - 'WikiChange', - 'WikiPage', - 'WikiPageChange', - 'WikiRepository', - 'WikiUpdate', -] diff --git a/vsts/vsts/wiki/v4_0/models/change.py b/vsts/vsts/wiki/v4_0/models/change.py deleted file mode 100644 index 576fb635..00000000 --- a/vsts/vsts/wiki/v4_0/models/change.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param change_type: - :type change_type: object - :param item: - :type item: :class:`GitItem ` - :param new_content: - :type new_content: :class:`ItemContent ` - :param source_server_item: - :type source_server_item: str - :param url: - :type url: str - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'item': {'key': 'item', 'type': 'GitItem'}, - 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, - 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): - super(Change, self).__init__() - self.change_type = change_type - self.item = item - self.new_content = new_content - self.source_server_item = source_server_item - self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/file_content_metadata.py b/vsts/vsts/wiki/v4_0/models/file_content_metadata.py deleted file mode 100644 index d2d6667d..00000000 --- a/vsts/vsts/wiki/v4_0/models/file_content_metadata.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FileContentMetadata(Model): - """FileContentMetadata. - - :param content_type: - :type content_type: str - :param encoding: - :type encoding: int - :param extension: - :type extension: str - :param file_name: - :type file_name: str - :param is_binary: - :type is_binary: bool - :param is_image: - :type is_image: bool - :param vs_link: - :type vs_link: str - """ - - _attribute_map = { - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'encoding': {'key': 'encoding', 'type': 'int'}, - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'is_binary': {'key': 'isBinary', 'type': 'bool'}, - 'is_image': {'key': 'isImage', 'type': 'bool'}, - 'vs_link': {'key': 'vsLink', 'type': 'str'} - } - - def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): - super(FileContentMetadata, self).__init__() - self.content_type = content_type - self.encoding = encoding - self.extension = extension - self.file_name = file_name - self.is_binary = is_binary - self.is_image = is_image - self.vs_link = vs_link diff --git a/vsts/vsts/wiki/v4_0/models/git_commit_ref.py b/vsts/vsts/wiki/v4_0/models/git_commit_ref.py deleted file mode 100644 index 21d8ab03..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_commit_ref.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitCommitRef(Model): - """GitCommitRef. - - :param _links: - :type _links: ReferenceLinks - :param author: - :type author: :class:`GitUserDate ` - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param commit_id: - :type commit_id: str - :param committer: - :type committer: :class:`GitUserDate ` - :param parents: - :type parents: list of str - :param remote_url: - :type remote_url: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - :param work_items: - :type work_items: list of ResourceRef - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'parents': {'key': 'parents', 'type': '[str]'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} - } - - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): - super(GitCommitRef, self).__init__() - self._links = _links - self.author = author - self.change_counts = change_counts - self.changes = changes - self.comment = comment - self.comment_truncated = comment_truncated - self.commit_id = commit_id - self.committer = committer - self.parents = parents - self.remote_url = remote_url - self.statuses = statuses - self.url = url - self.work_items = work_items diff --git a/vsts/vsts/wiki/v4_0/models/git_item.py b/vsts/vsts/wiki/v4_0/models/git_item.py deleted file mode 100644 index e4b8086d..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_item.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .item_model import ItemModel - - -class GitItem(ItemModel): - """GitItem. - - :param _links: - :type _links: ReferenceLinks - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - :param commit_id: SHA1 of commit item was fetched at - :type commit_id: str - :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) - :type git_object_type: object - :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` - :param object_id: Git object id - :type object_id: str - :param original_object_id: Git object id - :type original_object_id: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, - 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): - super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) - self.commit_id = commit_id - self.git_object_type = git_object_type - self.latest_processed_change = latest_processed_change - self.object_id = object_id - self.original_object_id = original_object_id diff --git a/vsts/vsts/wiki/v4_0/models/git_push.py b/vsts/vsts/wiki/v4_0/models/git_push.py deleted file mode 100644 index f0015a6d..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_push.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_push_ref import GitPushRef - - -class GitPush(GitPushRef): - """GitPush. - - :param _links: - :type _links: ReferenceLinks - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: IdentityRef - :param push_id: - :type push_id: int - :param url: - :type url: str - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` - :param repository: - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): - super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) - self.commits = commits - self.ref_updates = ref_updates - self.repository = repository diff --git a/vsts/vsts/wiki/v4_0/models/git_push_ref.py b/vsts/vsts/wiki/v4_0/models/git_push_ref.py deleted file mode 100644 index 9376eaf8..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_push_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitPushRef(Model): - """GitPushRef. - - :param _links: - :type _links: ReferenceLinks - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: IdentityRef - :param push_id: - :type push_id: int - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): - super(GitPushRef, self).__init__() - self._links = _links - self.date = date - self.push_correlation_id = push_correlation_id - self.pushed_by = pushed_by - self.push_id = push_id - self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/git_ref_update.py b/vsts/vsts/wiki/v4_0/models/git_ref_update.py deleted file mode 100644 index 6c10c600..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_ref_update.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRefUpdate(Model): - """GitRefUpdate. - - :param is_locked: - :type is_locked: bool - :param name: - :type name: str - :param new_object_id: - :type new_object_id: str - :param old_object_id: - :type old_object_id: str - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, - 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): - super(GitRefUpdate, self).__init__() - self.is_locked = is_locked - self.name = name - self.new_object_id = new_object_id - self.old_object_id = old_object_id - self.repository_id = repository_id diff --git a/vsts/vsts/wiki/v4_0/models/git_repository.py b/vsts/vsts/wiki/v4_0/models/git_repository.py deleted file mode 100644 index cc72d987..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_repository.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepository(Model): - """GitRepository. - - :param _links: - :type _links: ReferenceLinks - :param default_branch: - :type default_branch: str - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: TeamProjectReference - :param remote_url: - :type remote_url: str - :param url: - :type url: str - :param valid_remote_urls: - :type valid_remote_urls: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} - } - - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): - super(GitRepository, self).__init__() - self._links = _links - self.default_branch = default_branch - self.id = id - self.is_fork = is_fork - self.name = name - self.parent_repository = parent_repository - self.project = project - self.remote_url = remote_url - self.url = url - self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/wiki/v4_0/models/git_repository_ref.py b/vsts/vsts/wiki/v4_0/models/git_repository_ref.py deleted file mode 100644 index e733805a..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_repository_ref.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryRef(Model): - """GitRepositoryRef. - - :param collection: Team Project Collection where this Fork resides - :type collection: TeamProjectCollectionReference - :param id: - :type id: str - :param name: - :type name: str - :param project: - :type project: TeamProjectReference - :param remote_url: - :type remote_url: str - :param url: - :type url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): - super(GitRepositoryRef, self).__init__() - self.collection = collection - self.id = id - self.name = name - self.project = project - self.remote_url = remote_url - self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/git_status.py b/vsts/vsts/wiki/v4_0/models/git_status.py deleted file mode 100644 index 8b80e0e0..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_status.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitStatus(Model): - """GitStatus. - - :param _links: Reference links. - :type _links: ReferenceLinks - :param context: Context of the status. - :type context: :class:`GitStatusContext ` - :param created_by: Identity that created the status. - :type created_by: IdentityRef - :param creation_date: Creation date and time of the status. - :type creation_date: datetime - :param description: Status description. Typically describes current state of the status. - :type description: str - :param id: Status identifier. - :type id: int - :param state: State of the status. - :type state: object - :param target_url: URL with status details. - :type target_url: str - :param updated_date: Last update date and time of the status. - :type updated_date: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'context': {'key': 'context', 'type': 'GitStatusContext'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'target_url': {'key': 'targetUrl', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): - super(GitStatus, self).__init__() - self._links = _links - self.context = context - self.created_by = created_by - self.creation_date = creation_date - self.description = description - self.id = id - self.state = state - self.target_url = target_url - self.updated_date = updated_date diff --git a/vsts/vsts/wiki/v4_0/models/git_status_context.py b/vsts/vsts/wiki/v4_0/models/git_status_context.py deleted file mode 100644 index cf40205f..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_status_context.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitStatusContext(Model): - """GitStatusContext. - - :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. - :type genre: str - :param name: Name identifier of the status, cannot be null or empty. - :type name: str - """ - - _attribute_map = { - 'genre': {'key': 'genre', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, genre=None, name=None): - super(GitStatusContext, self).__init__() - self.genre = genre - self.name = name diff --git a/vsts/vsts/wiki/v4_0/models/git_template.py b/vsts/vsts/wiki/v4_0/models/git_template.py deleted file mode 100644 index fbe26c8a..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_template.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitTemplate(Model): - """GitTemplate. - - :param name: Name of the Template - :type name: str - :param type: Type of the Template - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, name=None, type=None): - super(GitTemplate, self).__init__() - self.name = name - self.type = type diff --git a/vsts/vsts/wiki/v4_0/models/git_user_date.py b/vsts/vsts/wiki/v4_0/models/git_user_date.py deleted file mode 100644 index 9199afd0..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_user_date.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitUserDate(Model): - """GitUserDate. - - :param date: - :type date: datetime - :param email: - :type email: str - :param name: - :type name: str - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'email': {'key': 'email', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, date=None, email=None, name=None): - super(GitUserDate, self).__init__() - self.date = date - self.email = email - self.name = name diff --git a/vsts/vsts/wiki/v4_0/models/git_version_descriptor.py b/vsts/vsts/wiki/v4_0/models/git_version_descriptor.py deleted file mode 100644 index 919fc237..00000000 --- a/vsts/vsts/wiki/v4_0/models/git_version_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitVersionDescriptor(Model): - """GitVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None): - super(GitVersionDescriptor, self).__init__() - self.version = version - self.version_options = version_options - self.version_type = version_type diff --git a/vsts/vsts/wiki/v4_0/models/item_content.py b/vsts/vsts/wiki/v4_0/models/item_content.py deleted file mode 100644 index f5cfaef1..00000000 --- a/vsts/vsts/wiki/v4_0/models/item_content.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemContent(Model): - """ItemContent. - - :param content: - :type content: str - :param content_type: - :type content_type: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'object'} - } - - def __init__(self, content=None, content_type=None): - super(ItemContent, self).__init__() - self.content = content - self.content_type = content_type diff --git a/vsts/vsts/wiki/v4_0/models/item_model.py b/vsts/vsts/wiki/v4_0/models/item_model.py deleted file mode 100644 index 49e0c98e..00000000 --- a/vsts/vsts/wiki/v4_0/models/item_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ItemModel(Model): - """ItemModel. - - :param _links: - :type _links: ReferenceLinks - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): - super(ItemModel, self).__init__() - self._links = _links - self.content_metadata = content_metadata - self.is_folder = is_folder - self.is_sym_link = is_sym_link - self.path = path - self.url = url diff --git a/vsts/vsts/wiki/v4_0/models/wiki_attachment.py b/vsts/vsts/wiki/v4_0/models/wiki_attachment.py deleted file mode 100644 index 2a1c03dc..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_attachment.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiAttachment(Model): - """WikiAttachment. - - :param name: Name of the wiki attachment file. - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, name=None): - super(WikiAttachment, self).__init__() - self.name = name diff --git a/vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py b/vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py deleted file mode 100644 index 1f1975e1..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_attachment_change.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .wiki_change import WikiChange - - -class WikiAttachmentChange(WikiChange): - """WikiAttachmentChange. - - :param overwrite_content_if_existing: Defines whether the content of an existing attachment is to be overwriten or not. If true, the content of the attachment is overwritten on an existing attachment. If attachment non-existing, new attachment is created. If false, exception is thrown if an attachment with same name exists. - :type overwrite_content_if_existing: bool - """ - - _attribute_map = { - 'overwrite_content_if_existing': {'key': 'overwriteContentIfExisting', 'type': 'bool'} - } - - def __init__(self, overwrite_content_if_existing=None): - super(WikiAttachmentChange, self).__init__() - self.overwrite_content_if_existing = overwrite_content_if_existing diff --git a/vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py b/vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py deleted file mode 100644 index b8c805ea..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_attachment_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiAttachmentResponse(Model): - """WikiAttachmentResponse. - - :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` - :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the head commit of wiki repository after the corresponding attachments API call. - :type eTag: list of str - """ - - _attribute_map = { - 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, - 'eTag': {'key': 'eTag', 'type': '[str]'} - } - - def __init__(self, attachment=None, eTag=None): - super(WikiAttachmentResponse, self).__init__() - self.attachment = attachment - self.eTag = eTag diff --git a/vsts/vsts/wiki/v4_0/models/wiki_change.py b/vsts/vsts/wiki/v4_0/models/wiki_change.py deleted file mode 100644 index 64311489..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_change.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiChange(Model): - """WikiChange. - - :param change_type: ChangeType associated with the item in this change. - :type change_type: object - :param content: New content of the item. - :type content: str - :param item: Item that is subject to this change. - :type item: object - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'content': {'key': 'content', 'type': 'str'}, - 'item': {'key': 'item', 'type': 'object'} - } - - def __init__(self, change_type=None, content=None, item=None): - super(WikiChange, self).__init__() - self.change_type = change_type - self.content = content - self.item = item diff --git a/vsts/vsts/wiki/v4_0/models/wiki_page.py b/vsts/vsts/wiki/v4_0/models/wiki_page.py deleted file mode 100644 index 232e92f1..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_page.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiPage(Model): - """WikiPage. - - :param depth: The depth in terms of level in the hierarchy. - :type depth: int - :param git_item_path: The path of the item corresponding to the wiki page stored in the backing Git repository. This is populated only in the response of the wiki pages GET API. - :type git_item_path: str - :param is_non_conformant: Flag to denote if a page is non-conforming, i.e. 1) if the name doesn't match our norms. 2) if the page does not have a valid entry in the appropriate order file. - :type is_non_conformant: bool - :param is_parent_page: Returns true if this page has child pages under its path. - :type is_parent_page: bool - :param order: Order associated with the page with respect to other pages in the same hierarchy level. - :type order: int - :param path: Path of the wiki page. - :type path: str - """ - - _attribute_map = { - 'depth': {'key': 'depth', 'type': 'int'}, - 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, - 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, - 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, depth=None, git_item_path=None, is_non_conformant=None, is_parent_page=None, order=None, path=None): - super(WikiPage, self).__init__() - self.depth = depth - self.git_item_path = git_item_path - self.is_non_conformant = is_non_conformant - self.is_parent_page = is_parent_page - self.order = order - self.path = path diff --git a/vsts/vsts/wiki/v4_0/models/wiki_page_change.py b/vsts/vsts/wiki/v4_0/models/wiki_page_change.py deleted file mode 100644 index 2e67ce59..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_page_change.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .wiki_change import WikiChange - - -class WikiPageChange(WikiChange): - """WikiPageChange. - - :param original_order: Original order of the page to be provided in case of reorder or rename. - :type original_order: int - :param original_path: Original path of the page to be provided in case of rename. - :type original_path: str - """ - - _attribute_map = { - 'original_order': {'key': 'originalOrder', 'type': 'int'}, - 'original_path': {'key': 'originalPath', 'type': 'str'} - } - - def __init__(self, original_order=None, original_path=None): - super(WikiPageChange, self).__init__() - self.original_order = original_order - self.original_path = original_path diff --git a/vsts/vsts/wiki/v4_0/models/wiki_repository.py b/vsts/vsts/wiki/v4_0/models/wiki_repository.py deleted file mode 100644 index e97b4c37..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_repository.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiRepository(Model): - """WikiRepository. - - :param head_commit: The head commit associated with the git repository backing up the wiki. - :type head_commit: str - :param id: The ID of the wiki which is same as the ID of the Git repository that it is backed by. - :type id: str - :param repository: The git repository that backs up the wiki. - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - 'head_commit': {'key': 'headCommit', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, head_commit=None, id=None, repository=None): - super(WikiRepository, self).__init__() - self.head_commit = head_commit - self.id = id - self.repository = repository diff --git a/vsts/vsts/wiki/v4_0/models/wiki_update.py b/vsts/vsts/wiki/v4_0/models/wiki_update.py deleted file mode 100644 index 65af35cf..00000000 --- a/vsts/vsts/wiki/v4_0/models/wiki_update.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiUpdate(Model): - """WikiUpdate. - - :param associated_git_push: Git push object associated with this wiki update object. This is populated only in the response of the wiki updates POST API. - :type associated_git_push: :class:`GitPush ` - :param attachment_changes: List of attachment change objects that is to be associated with this update. - :type attachment_changes: list of :class:`WikiAttachmentChange ` - :param comment: Comment to be associated with this update. - :type comment: str - :param head_commit: Headcommit of the of the repository. - :type head_commit: str - :param page_change: Page change object associated with this update. - :type page_change: :class:`WikiPageChange ` - """ - - _attribute_map = { - 'associated_git_push': {'key': 'associatedGitPush', 'type': 'GitPush'}, - 'attachment_changes': {'key': 'attachmentChanges', 'type': '[WikiAttachmentChange]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'head_commit': {'key': 'headCommit', 'type': 'str'}, - 'page_change': {'key': 'pageChange', 'type': 'WikiPageChange'} - } - - def __init__(self, associated_git_push=None, attachment_changes=None, comment=None, head_commit=None, page_change=None): - super(WikiUpdate, self).__init__() - self.associated_git_push = associated_git_push - self.attachment_changes = attachment_changes - self.comment = comment - self.head_commit = head_commit - self.page_change = page_change diff --git a/vsts/vsts/wiki/v4_1/__init__.py b/vsts/vsts/wiki/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/wiki/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/wiki/v4_1/models/__init__.py b/vsts/vsts/wiki/v4_1/models/__init__.py deleted file mode 100644 index 577cd9f5..00000000 --- a/vsts/vsts/wiki/v4_1/models/__init__.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .git_repository import GitRepository -from .git_repository_ref import GitRepositoryRef -from .git_version_descriptor import GitVersionDescriptor -from .wiki_attachment import WikiAttachment -from .wiki_attachment_response import WikiAttachmentResponse -from .wiki_create_base_parameters import WikiCreateBaseParameters -from .wiki_create_parameters_v2 import WikiCreateParametersV2 -from .wiki_page import WikiPage -from .wiki_page_create_or_update_parameters import WikiPageCreateOrUpdateParameters -from .wiki_page_move import WikiPageMove -from .wiki_page_move_parameters import WikiPageMoveParameters -from .wiki_page_move_response import WikiPageMoveResponse -from .wiki_page_response import WikiPageResponse -from .wiki_page_view_stats import WikiPageViewStats -from .wiki_update_parameters import WikiUpdateParameters -from .wiki_v2 import WikiV2 - -__all__ = [ - 'GitRepository', - 'GitRepositoryRef', - 'GitVersionDescriptor', - 'WikiAttachment', - 'WikiAttachmentResponse', - 'WikiCreateBaseParameters', - 'WikiCreateParametersV2', - 'WikiPage', - 'WikiPageCreateOrUpdateParameters', - 'WikiPageMove', - 'WikiPageMoveParameters', - 'WikiPageMoveResponse', - 'WikiPageResponse', - 'WikiPageViewStats', - 'WikiUpdateParameters', - 'WikiV2', -] diff --git a/vsts/vsts/wiki/v4_1/models/git_repository.py b/vsts/vsts/wiki/v4_1/models/git_repository.py deleted file mode 100644 index 34eacb65..00000000 --- a/vsts/vsts/wiki/v4_1/models/git_repository.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepository(Model): - """GitRepository. - - :param _links: - :type _links: ReferenceLinks - :param default_branch: - :type default_branch: str - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: TeamProjectReference - :param remote_url: - :type remote_url: str - :param ssh_url: - :type ssh_url: str - :param url: - :type url: str - :param valid_remote_urls: - :type valid_remote_urls: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} - } - - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): - super(GitRepository, self).__init__() - self._links = _links - self.default_branch = default_branch - self.id = id - self.is_fork = is_fork - self.name = name - self.parent_repository = parent_repository - self.project = project - self.remote_url = remote_url - self.ssh_url = ssh_url - self.url = url - self.valid_remote_urls = valid_remote_urls diff --git a/vsts/vsts/wiki/v4_1/models/git_repository_ref.py b/vsts/vsts/wiki/v4_1/models/git_repository_ref.py deleted file mode 100644 index 7d099cfb..00000000 --- a/vsts/vsts/wiki/v4_1/models/git_repository_ref.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitRepositoryRef(Model): - """GitRepositoryRef. - - :param collection: Team Project Collection where this Fork resides - :type collection: TeamProjectCollectionReference - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param project: - :type project: TeamProjectReference - :param remote_url: - :type remote_url: str - :param ssh_url: - :type ssh_url: str - :param url: - :type url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): - super(GitRepositoryRef, self).__init__() - self.collection = collection - self.id = id - self.is_fork = is_fork - self.name = name - self.project = project - self.remote_url = remote_url - self.ssh_url = ssh_url - self.url = url diff --git a/vsts/vsts/wiki/v4_1/models/git_version_descriptor.py b/vsts/vsts/wiki/v4_1/models/git_version_descriptor.py deleted file mode 100644 index 919fc237..00000000 --- a/vsts/vsts/wiki/v4_1/models/git_version_descriptor.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GitVersionDescriptor(Model): - """GitVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None): - super(GitVersionDescriptor, self).__init__() - self.version = version - self.version_options = version_options - self.version_type = version_type diff --git a/vsts/vsts/wiki/v4_1/models/wiki_attachment.py b/vsts/vsts/wiki/v4_1/models/wiki_attachment.py deleted file mode 100644 index 3107c280..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_attachment.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiAttachment(Model): - """WikiAttachment. - - :param name: Name of the wiki attachment file. - :type name: str - :param path: Path of the wiki attachment file. - :type path: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, name=None, path=None): - super(WikiAttachment, self).__init__() - self.name = name - self.path = path diff --git a/vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py b/vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py deleted file mode 100644 index a227df6a..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_attachment_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiAttachmentResponse(Model): - """WikiAttachmentResponse. - - :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` - :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. - :type eTag: list of str - """ - - _attribute_map = { - 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, - 'eTag': {'key': 'eTag', 'type': '[str]'} - } - - def __init__(self, attachment=None, eTag=None): - super(WikiAttachmentResponse, self).__init__() - self.attachment = attachment - self.eTag = eTag diff --git a/vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py deleted file mode 100644 index 7aa99870..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_create_base_parameters.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiCreateBaseParameters(Model): - """WikiCreateBaseParameters. - - :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. - :type mapped_path: str - :param name: Wiki name. - :type name: str - :param project_id: ID of the project in which the wiki is to be created. - :type project_id: str - :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. - :type repository_id: str - :param type: Type of the wiki. - :type type: object - """ - - _attribute_map = { - 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None): - super(WikiCreateBaseParameters, self).__init__() - self.mapped_path = mapped_path - self.name = name - self.project_id = project_id - self.repository_id = repository_id - self.type = type diff --git a/vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py b/vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py deleted file mode 100644 index 776f09e0..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_create_parameters_v2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .wiki_create_base_parameters import WikiCreateBaseParameters - - -class WikiCreateParametersV2(WikiCreateBaseParameters): - """WikiCreateParametersV2. - - :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. - :type mapped_path: str - :param name: Wiki name. - :type name: str - :param project_id: ID of the project in which the wiki is to be created. - :type project_id: str - :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. - :type repository_id: str - :param type: Type of the wiki. - :type type: object - :param version: Version of the wiki. Not required for ProjectWiki type. - :type version: :class:`GitVersionDescriptor ` - """ - - _attribute_map = { - 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'version': {'key': 'version', 'type': 'GitVersionDescriptor'} - } - - def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, version=None): - super(WikiCreateParametersV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) - self.version = version diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page.py b/vsts/vsts/wiki/v4_1/models/wiki_page.py deleted file mode 100644 index ae2d58d9..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_page.py +++ /dev/null @@ -1,56 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .wiki_page_create_or_update_parameters import WikiPageCreateOrUpdateParameters - - -class WikiPage(WikiPageCreateOrUpdateParameters): - """WikiPage. - - :param content: Content of the wiki page. - :type content: str - :param git_item_path: Path of the git item corresponding to the wiki page stored in the backing Git repository. - :type git_item_path: str - :param is_non_conformant: True if a page is non-conforming, i.e. 1) if the name doesn't match page naming standards. 2) if the page does not have a valid entry in the appropriate order file. - :type is_non_conformant: bool - :param is_parent_page: True if this page has subpages under its path. - :type is_parent_page: bool - :param order: Order of the wiki page, relative to other pages in the same hierarchy level. - :type order: int - :param path: Path of the wiki page. - :type path: str - :param remote_url: Remote web url to the wiki page. - :type remote_url: str - :param sub_pages: List of subpages of the current page. - :type sub_pages: list of :class:`WikiPage ` - :param url: REST url for this wiki page. - :type url: str - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, - 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, - 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, - 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'sub_pages': {'key': 'subPages', 'type': '[WikiPage]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, content=None, git_item_path=None, is_non_conformant=None, is_parent_page=None, order=None, path=None, remote_url=None, sub_pages=None, url=None): - super(WikiPage, self).__init__(content=content) - self.git_item_path = git_item_path - self.is_non_conformant = is_non_conformant - self.is_parent_page = is_parent_page - self.order = order - self.path = path - self.remote_url = remote_url - self.sub_pages = sub_pages - self.url = url diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py deleted file mode 100644 index 25dd0ae7..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_page_create_or_update_parameters.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiPageCreateOrUpdateParameters(Model): - """WikiPageCreateOrUpdateParameters. - - :param content: Content of the wiki page. - :type content: str - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'} - } - - def __init__(self, content=None): - super(WikiPageCreateOrUpdateParameters, self).__init__() - self.content = content diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_move.py b/vsts/vsts/wiki/v4_1/models/wiki_page_move.py deleted file mode 100644 index 25f98288..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_page_move.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .wiki_page_move_parameters import WikiPageMoveParameters - - -class WikiPageMove(WikiPageMoveParameters): - """WikiPageMove. - - :param new_order: New order of the wiki page. - :type new_order: int - :param new_path: New path of the wiki page. - :type new_path: str - :param path: Current path of the wiki page. - :type path: str - :param page: Resultant page of this page move operation. - :type page: :class:`WikiPage ` - """ - - _attribute_map = { - 'new_order': {'key': 'newOrder', 'type': 'int'}, - 'new_path': {'key': 'newPath', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'page': {'key': 'page', 'type': 'WikiPage'} - } - - def __init__(self, new_order=None, new_path=None, path=None, page=None): - super(WikiPageMove, self).__init__(new_order=new_order, new_path=new_path, path=path) - self.page = page diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py deleted file mode 100644 index bd705fc4..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_page_move_parameters.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiPageMoveParameters(Model): - """WikiPageMoveParameters. - - :param new_order: New order of the wiki page. - :type new_order: int - :param new_path: New path of the wiki page. - :type new_path: str - :param path: Current path of the wiki page. - :type path: str - """ - - _attribute_map = { - 'new_order': {'key': 'newOrder', 'type': 'int'}, - 'new_path': {'key': 'newPath', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, new_order=None, new_path=None, path=None): - super(WikiPageMoveParameters, self).__init__() - self.new_order = new_order - self.new_path = new_path - self.path = path diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py b/vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py deleted file mode 100644 index fc7e472f..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_page_move_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiPageMoveResponse(Model): - """WikiPageMoveResponse. - - :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. - :type eTag: list of str - :param page_move: Defines properties for wiki page move. - :type page_move: :class:`WikiPageMove ` - """ - - _attribute_map = { - 'eTag': {'key': 'eTag', 'type': '[str]'}, - 'page_move': {'key': 'pageMove', 'type': 'WikiPageMove'} - } - - def __init__(self, eTag=None, page_move=None): - super(WikiPageMoveResponse, self).__init__() - self.eTag = eTag - self.page_move = page_move diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_response.py b/vsts/vsts/wiki/v4_1/models/wiki_page_response.py deleted file mode 100644 index 73c9fec2..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_page_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiPageResponse(Model): - """WikiPageResponse. - - :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. - :type eTag: list of str - :param page: Defines properties for wiki page. - :type page: :class:`WikiPage ` - """ - - _attribute_map = { - 'eTag': {'key': 'eTag', 'type': '[str]'}, - 'page': {'key': 'page', 'type': 'WikiPage'} - } - - def __init__(self, eTag=None, page=None): - super(WikiPageResponse, self).__init__() - self.eTag = eTag - self.page = page diff --git a/vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py b/vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py deleted file mode 100644 index c8903b4f..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_page_view_stats.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiPageViewStats(Model): - """WikiPageViewStats. - - :param count: Wiki page view count. - :type count: int - :param last_viewed_time: Wiki page last viewed time. - :type last_viewed_time: datetime - :param path: Wiki page path. - :type path: str - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'last_viewed_time': {'key': 'lastViewedTime', 'type': 'iso-8601'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, count=None, last_viewed_time=None, path=None): - super(WikiPageViewStats, self).__init__() - self.count = count - self.last_viewed_time = last_viewed_time - self.path = path diff --git a/vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py b/vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py deleted file mode 100644 index fbd4b5d4..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_update_parameters.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WikiUpdateParameters(Model): - """WikiUpdateParameters. - - :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` - """ - - _attribute_map = { - 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} - } - - def __init__(self, versions=None): - super(WikiUpdateParameters, self).__init__() - self.versions = versions diff --git a/vsts/vsts/wiki/v4_1/models/wiki_v2.py b/vsts/vsts/wiki/v4_1/models/wiki_v2.py deleted file mode 100644 index 8c6c1db9..00000000 --- a/vsts/vsts/wiki/v4_1/models/wiki_v2.py +++ /dev/null @@ -1,56 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .wiki_create_base_parameters import WikiCreateBaseParameters - - -class WikiV2(WikiCreateBaseParameters): - """WikiV2. - - :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. - :type mapped_path: str - :param name: Wiki name. - :type name: str - :param project_id: ID of the project in which the wiki is to be created. - :type project_id: str - :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. - :type repository_id: str - :param type: Type of the wiki. - :type type: object - :param id: ID of the wiki. - :type id: str - :param properties: Properties of the wiki. - :type properties: dict - :param remote_url: Remote web url to the wiki. - :type remote_url: str - :param url: REST url for this wiki. - :type url: str - :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` - """ - - _attribute_map = { - 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} - } - - def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, id=None, properties=None, remote_url=None, url=None, versions=None): - super(WikiV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) - self.id = id - self.properties = properties - self.remote_url = remote_url - self.url = url - self.versions = versions diff --git a/vsts/vsts/work/__init__.py b/vsts/vsts/work/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/work/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work/v4_0/__init__.py b/vsts/vsts/work/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work/v4_0/models/__init__.py b/vsts/vsts/work/v4_0/models/__init__.py deleted file mode 100644 index 0082346f..00000000 --- a/vsts/vsts/work/v4_0/models/__init__.py +++ /dev/null @@ -1,127 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .activity import Activity -from .backlog_column import BacklogColumn -from .backlog_configuration import BacklogConfiguration -from .backlog_fields import BacklogFields -from .backlog_level import BacklogLevel -from .backlog_level_configuration import BacklogLevelConfiguration -from .board import Board -from .board_card_rule_settings import BoardCardRuleSettings -from .board_card_settings import BoardCardSettings -from .board_chart import BoardChart -from .board_chart_reference import BoardChartReference -from .board_column import BoardColumn -from .board_fields import BoardFields -from .board_filter_settings import BoardFilterSettings -from .board_reference import BoardReference -from .board_row import BoardRow -from .board_suggested_value import BoardSuggestedValue -from .board_user_settings import BoardUserSettings -from .capacity_patch import CapacityPatch -from .category_configuration import CategoryConfiguration -from .create_plan import CreatePlan -from .date_range import DateRange -from .delivery_view_data import DeliveryViewData -from .field_reference import FieldReference -from .filter_clause import FilterClause -from .filter_group import FilterGroup -from .filter_model import FilterModel -from .identity_ref import IdentityRef -from .member import Member -from .parent_child_wIMap import ParentChildWIMap -from .plan import Plan -from .plan_view_data import PlanViewData -from .process_configuration import ProcessConfiguration -from .reference_links import ReferenceLinks -from .rule import Rule -from .team_context import TeamContext -from .team_field_value import TeamFieldValue -from .team_field_values import TeamFieldValues -from .team_field_values_patch import TeamFieldValuesPatch -from .team_iteration_attributes import TeamIterationAttributes -from .team_member_capacity import TeamMemberCapacity -from .team_setting import TeamSetting -from .team_settings_data_contract_base import TeamSettingsDataContractBase -from .team_settings_days_off import TeamSettingsDaysOff -from .team_settings_days_off_patch import TeamSettingsDaysOffPatch -from .team_settings_iteration import TeamSettingsIteration -from .team_settings_patch import TeamSettingsPatch -from .timeline_criteria_status import TimelineCriteriaStatus -from .timeline_iteration_status import TimelineIterationStatus -from .timeline_team_data import TimelineTeamData -from .timeline_team_iteration import TimelineTeamIteration -from .timeline_team_status import TimelineTeamStatus -from .update_plan import UpdatePlan -from .work_item_color import WorkItemColor -from .work_item_field_reference import WorkItemFieldReference -from .work_item_tracking_resource_reference import WorkItemTrackingResourceReference -from .work_item_type_reference import WorkItemTypeReference -from .work_item_type_state_info import WorkItemTypeStateInfo - -__all__ = [ - 'Activity', - 'BacklogColumn', - 'BacklogConfiguration', - 'BacklogFields', - 'BacklogLevel', - 'BacklogLevelConfiguration', - 'Board', - 'BoardCardRuleSettings', - 'BoardCardSettings', - 'BoardChart', - 'BoardChartReference', - 'BoardColumn', - 'BoardFields', - 'BoardFilterSettings', - 'BoardReference', - 'BoardRow', - 'BoardSuggestedValue', - 'BoardUserSettings', - 'CapacityPatch', - 'CategoryConfiguration', - 'CreatePlan', - 'DateRange', - 'DeliveryViewData', - 'FieldReference', - 'FilterClause', - 'FilterGroup', - 'FilterModel', - 'IdentityRef', - 'Member', - 'ParentChildWIMap', - 'Plan', - 'PlanViewData', - 'ProcessConfiguration', - 'ReferenceLinks', - 'Rule', - 'TeamContext', - 'TeamFieldValue', - 'TeamFieldValues', - 'TeamFieldValuesPatch', - 'TeamIterationAttributes', - 'TeamMemberCapacity', - 'TeamSetting', - 'TeamSettingsDataContractBase', - 'TeamSettingsDaysOff', - 'TeamSettingsDaysOffPatch', - 'TeamSettingsIteration', - 'TeamSettingsPatch', - 'TimelineCriteriaStatus', - 'TimelineIterationStatus', - 'TimelineTeamData', - 'TimelineTeamIteration', - 'TimelineTeamStatus', - 'UpdatePlan', - 'WorkItemColor', - 'WorkItemFieldReference', - 'WorkItemTrackingResourceReference', - 'WorkItemTypeReference', - 'WorkItemTypeStateInfo', -] diff --git a/vsts/vsts/work/v4_0/models/activity.py b/vsts/vsts/work/v4_0/models/activity.py deleted file mode 100644 index a0496d0e..00000000 --- a/vsts/vsts/work/v4_0/models/activity.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Activity(Model): - """Activity. - - :param capacity_per_day: - :type capacity_per_day: int - :param name: - :type name: str - """ - - _attribute_map = { - 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, capacity_per_day=None, name=None): - super(Activity, self).__init__() - self.capacity_per_day = capacity_per_day - self.name = name diff --git a/vsts/vsts/work/v4_0/models/backlog_column.py b/vsts/vsts/work/v4_0/models/backlog_column.py deleted file mode 100644 index c8858fae..00000000 --- a/vsts/vsts/work/v4_0/models/backlog_column.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogColumn(Model): - """BacklogColumn. - - :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` - :param width: - :type width: int - """ - - _attribute_map = { - 'column_field_reference': {'key': 'columnFieldReference', 'type': 'WorkItemFieldReference'}, - 'width': {'key': 'width', 'type': 'int'} - } - - def __init__(self, column_field_reference=None, width=None): - super(BacklogColumn, self).__init__() - self.column_field_reference = column_field_reference - self.width = width diff --git a/vsts/vsts/work/v4_0/models/backlog_configuration.py b/vsts/vsts/work/v4_0/models/backlog_configuration.py deleted file mode 100644 index be40efb5..00000000 --- a/vsts/vsts/work/v4_0/models/backlog_configuration.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogConfiguration(Model): - """BacklogConfiguration. - - :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` - :param bugs_behavior: Bugs behavior - :type bugs_behavior: object - :param hidden_backlogs: Hidden Backlog - :type hidden_backlogs: list of str - :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` - :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` - :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` - :param url: - :type url: str - :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` - """ - - _attribute_map = { - 'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'}, - 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, - 'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'}, - 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'}, - 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'}, - 'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'} - } - - def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): - super(BacklogConfiguration, self).__init__() - self.backlog_fields = backlog_fields - self.bugs_behavior = bugs_behavior - self.hidden_backlogs = hidden_backlogs - self.portfolio_backlogs = portfolio_backlogs - self.requirement_backlog = requirement_backlog - self.task_backlog = task_backlog - self.url = url - self.work_item_type_mapped_states = work_item_type_mapped_states diff --git a/vsts/vsts/work/v4_0/models/backlog_fields.py b/vsts/vsts/work/v4_0/models/backlog_fields.py deleted file mode 100644 index 0aa2c795..00000000 --- a/vsts/vsts/work/v4_0/models/backlog_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogFields(Model): - """BacklogFields. - - :param type_fields: Field Type (e.g. Order, Activity) to Field Reference Name map - :type type_fields: dict - """ - - _attribute_map = { - 'type_fields': {'key': 'typeFields', 'type': '{str}'} - } - - def __init__(self, type_fields=None): - super(BacklogFields, self).__init__() - self.type_fields = type_fields diff --git a/vsts/vsts/work/v4_0/models/backlog_level.py b/vsts/vsts/work/v4_0/models/backlog_level.py deleted file mode 100644 index aaad0af8..00000000 --- a/vsts/vsts/work/v4_0/models/backlog_level.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogLevel(Model): - """BacklogLevel. - - :param category_reference_name: Reference name of the corresponding WIT category - :type category_reference_name: str - :param plural_name: Plural name for the backlog level - :type plural_name: str - :param work_item_states: Collection of work item states that are included in the plan. The server will filter to only these work item types. - :type work_item_states: list of str - :param work_item_types: Collection of valid workitem type names for the given backlog level - :type work_item_types: list of str - """ - - _attribute_map = { - 'category_reference_name': {'key': 'categoryReferenceName', 'type': 'str'}, - 'plural_name': {'key': 'pluralName', 'type': 'str'}, - 'work_item_states': {'key': 'workItemStates', 'type': '[str]'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[str]'} - } - - def __init__(self, category_reference_name=None, plural_name=None, work_item_states=None, work_item_types=None): - super(BacklogLevel, self).__init__() - self.category_reference_name = category_reference_name - self.plural_name = plural_name - self.work_item_states = work_item_states - self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_0/models/backlog_level_configuration.py b/vsts/vsts/work/v4_0/models/backlog_level_configuration.py deleted file mode 100644 index 62a2328d..00000000 --- a/vsts/vsts/work/v4_0/models/backlog_level_configuration.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogLevelConfiguration(Model): - """BacklogLevelConfiguration. - - :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` - :param color: Color for the backlog level - :type color: str - :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` - :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` - :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) - :type id: str - :param name: Backlog Name - :type name: str - :param rank: Backlog Rank (Taskbacklog is 0) - :type rank: int - :param work_item_count_limit: Max number of work items to show in the given backlog - :type work_item_count_limit: int - :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` - """ - - _attribute_map = { - 'add_panel_fields': {'key': 'addPanelFields', 'type': '[WorkItemFieldReference]'}, - 'color': {'key': 'color', 'type': 'str'}, - 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, - 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} - } - - def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, name=None, rank=None, work_item_count_limit=None, work_item_types=None): - super(BacklogLevelConfiguration, self).__init__() - self.add_panel_fields = add_panel_fields - self.color = color - self.column_fields = column_fields - self.default_work_item_type = default_work_item_type - self.id = id - self.name = name - self.rank = rank - self.work_item_count_limit = work_item_count_limit - self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_0/models/board.py b/vsts/vsts/work/v4_0/models/board.py deleted file mode 100644 index 4ffae814..00000000 --- a/vsts/vsts/work/v4_0/models/board.py +++ /dev/null @@ -1,62 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .board_reference import BoardReference - - -class Board(BoardReference): - """Board. - - :param id: Id of the resource - :type id: str - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param allowed_mappings: - :type allowed_mappings: dict - :param can_edit: - :type can_edit: bool - :param columns: - :type columns: list of :class:`BoardColumn ` - :param fields: - :type fields: :class:`BoardFields ` - :param is_valid: - :type is_valid: bool - :param revision: - :type revision: int - :param rows: - :type rows: list of :class:`BoardRow ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allowed_mappings': {'key': 'allowedMappings', 'type': '{{[str]}}'}, - 'can_edit': {'key': 'canEdit', 'type': 'bool'}, - 'columns': {'key': 'columns', 'type': '[BoardColumn]'}, - 'fields': {'key': 'fields', 'type': 'BoardFields'}, - 'is_valid': {'key': 'isValid', 'type': 'bool'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'rows': {'key': 'rows', 'type': '[BoardRow]'} - } - - def __init__(self, id=None, name=None, url=None, _links=None, allowed_mappings=None, can_edit=None, columns=None, fields=None, is_valid=None, revision=None, rows=None): - super(Board, self).__init__(id=id, name=name, url=url) - self._links = _links - self.allowed_mappings = allowed_mappings - self.can_edit = can_edit - self.columns = columns - self.fields = fields - self.is_valid = is_valid - self.revision = revision - self.rows = rows diff --git a/vsts/vsts/work/v4_0/models/board_card_rule_settings.py b/vsts/vsts/work/v4_0/models/board_card_rule_settings.py deleted file mode 100644 index c5848fb5..00000000 --- a/vsts/vsts/work/v4_0/models/board_card_rule_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardCardRuleSettings(Model): - """BoardCardRuleSettings. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param rules: - :type rules: dict - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'rules': {'key': 'rules', 'type': '{[Rule]}'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, rules=None, url=None): - super(BoardCardRuleSettings, self).__init__() - self._links = _links - self.rules = rules - self.url = url diff --git a/vsts/vsts/work/v4_0/models/board_card_settings.py b/vsts/vsts/work/v4_0/models/board_card_settings.py deleted file mode 100644 index 77861a9d..00000000 --- a/vsts/vsts/work/v4_0/models/board_card_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardCardSettings(Model): - """BoardCardSettings. - - :param cards: - :type cards: dict - """ - - _attribute_map = { - 'cards': {'key': 'cards', 'type': '{[FieldSetting]}'} - } - - def __init__(self, cards=None): - super(BoardCardSettings, self).__init__() - self.cards = cards diff --git a/vsts/vsts/work/v4_0/models/board_chart.py b/vsts/vsts/work/v4_0/models/board_chart.py deleted file mode 100644 index 64275056..00000000 --- a/vsts/vsts/work/v4_0/models/board_chart.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .board_chart_reference import BoardChartReference - - -class BoardChart(BoardChartReference): - """BoardChart. - - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` - :param settings: The settings for the resource - :type settings: dict - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'settings': {'key': 'settings', 'type': '{object}'} - } - - def __init__(self, name=None, url=None, _links=None, settings=None): - super(BoardChart, self).__init__(name=name, url=url) - self._links = _links - self.settings = settings diff --git a/vsts/vsts/work/v4_0/models/board_chart_reference.py b/vsts/vsts/work/v4_0/models/board_chart_reference.py deleted file mode 100644 index 382d9bfc..00000000 --- a/vsts/vsts/work/v4_0/models/board_chart_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardChartReference(Model): - """BoardChartReference. - - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, url=None): - super(BoardChartReference, self).__init__() - self.name = name - self.url = url diff --git a/vsts/vsts/work/v4_0/models/board_column.py b/vsts/vsts/work/v4_0/models/board_column.py deleted file mode 100644 index e994435b..00000000 --- a/vsts/vsts/work/v4_0/models/board_column.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardColumn(Model): - """BoardColumn. - - :param column_type: - :type column_type: object - :param description: - :type description: str - :param id: - :type id: str - :param is_split: - :type is_split: bool - :param item_limit: - :type item_limit: int - :param name: - :type name: str - :param state_mappings: - :type state_mappings: dict - """ - - _attribute_map = { - 'column_type': {'key': 'columnType', 'type': 'object'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_split': {'key': 'isSplit', 'type': 'bool'}, - 'item_limit': {'key': 'itemLimit', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'state_mappings': {'key': 'stateMappings', 'type': '{str}'} - } - - def __init__(self, column_type=None, description=None, id=None, is_split=None, item_limit=None, name=None, state_mappings=None): - super(BoardColumn, self).__init__() - self.column_type = column_type - self.description = description - self.id = id - self.is_split = is_split - self.item_limit = item_limit - self.name = name - self.state_mappings = state_mappings diff --git a/vsts/vsts/work/v4_0/models/board_fields.py b/vsts/vsts/work/v4_0/models/board_fields.py deleted file mode 100644 index 988ebe21..00000000 --- a/vsts/vsts/work/v4_0/models/board_fields.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardFields(Model): - """BoardFields. - - :param column_field: - :type column_field: :class:`FieldReference ` - :param done_field: - :type done_field: :class:`FieldReference ` - :param row_field: - :type row_field: :class:`FieldReference ` - """ - - _attribute_map = { - 'column_field': {'key': 'columnField', 'type': 'FieldReference'}, - 'done_field': {'key': 'doneField', 'type': 'FieldReference'}, - 'row_field': {'key': 'rowField', 'type': 'FieldReference'} - } - - def __init__(self, column_field=None, done_field=None, row_field=None): - super(BoardFields, self).__init__() - self.column_field = column_field - self.done_field = done_field - self.row_field = row_field diff --git a/vsts/vsts/work/v4_0/models/board_filter_settings.py b/vsts/vsts/work/v4_0/models/board_filter_settings.py deleted file mode 100644 index 500883d4..00000000 --- a/vsts/vsts/work/v4_0/models/board_filter_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardFilterSettings(Model): - """BoardFilterSettings. - - :param criteria: - :type criteria: :class:`FilterModel ` - :param parent_work_item_ids: - :type parent_work_item_ids: list of int - :param query_text: - :type query_text: str - """ - - _attribute_map = { - 'criteria': {'key': 'criteria', 'type': 'FilterModel'}, - 'parent_work_item_ids': {'key': 'parentWorkItemIds', 'type': '[int]'}, - 'query_text': {'key': 'queryText', 'type': 'str'} - } - - def __init__(self, criteria=None, parent_work_item_ids=None, query_text=None): - super(BoardFilterSettings, self).__init__() - self.criteria = criteria - self.parent_work_item_ids = parent_work_item_ids - self.query_text = query_text diff --git a/vsts/vsts/work/v4_0/models/board_reference.py b/vsts/vsts/work/v4_0/models/board_reference.py deleted file mode 100644 index 6380e11e..00000000 --- a/vsts/vsts/work/v4_0/models/board_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardReference(Model): - """BoardReference. - - :param id: Id of the resource - :type id: str - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(BoardReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/work/v4_0/models/board_row.py b/vsts/vsts/work/v4_0/models/board_row.py deleted file mode 100644 index 313e4810..00000000 --- a/vsts/vsts/work/v4_0/models/board_row.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardRow(Model): - """BoardRow. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(BoardRow, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/work/v4_0/models/board_suggested_value.py b/vsts/vsts/work/v4_0/models/board_suggested_value.py deleted file mode 100644 index 058045af..00000000 --- a/vsts/vsts/work/v4_0/models/board_suggested_value.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardSuggestedValue(Model): - """BoardSuggestedValue. - - :param name: - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, name=None): - super(BoardSuggestedValue, self).__init__() - self.name = name diff --git a/vsts/vsts/work/v4_0/models/board_user_settings.py b/vsts/vsts/work/v4_0/models/board_user_settings.py deleted file mode 100644 index d20fbc57..00000000 --- a/vsts/vsts/work/v4_0/models/board_user_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardUserSettings(Model): - """BoardUserSettings. - - :param auto_refresh_state: - :type auto_refresh_state: bool - """ - - _attribute_map = { - 'auto_refresh_state': {'key': 'autoRefreshState', 'type': 'bool'} - } - - def __init__(self, auto_refresh_state=None): - super(BoardUserSettings, self).__init__() - self.auto_refresh_state = auto_refresh_state diff --git a/vsts/vsts/work/v4_0/models/capacity_patch.py b/vsts/vsts/work/v4_0/models/capacity_patch.py deleted file mode 100644 index dbd8c31d..00000000 --- a/vsts/vsts/work/v4_0/models/capacity_patch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CapacityPatch(Model): - """CapacityPatch. - - :param activities: - :type activities: list of :class:`Activity ` - :param days_off: - :type days_off: list of :class:`DateRange ` - """ - - _attribute_map = { - 'activities': {'key': 'activities', 'type': '[Activity]'}, - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} - } - - def __init__(self, activities=None, days_off=None): - super(CapacityPatch, self).__init__() - self.activities = activities - self.days_off = days_off diff --git a/vsts/vsts/work/v4_0/models/category_configuration.py b/vsts/vsts/work/v4_0/models/category_configuration.py deleted file mode 100644 index 2a986338..00000000 --- a/vsts/vsts/work/v4_0/models/category_configuration.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CategoryConfiguration(Model): - """CategoryConfiguration. - - :param name: Name - :type name: str - :param reference_name: Category Reference Name - :type reference_name: str - :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} - } - - def __init__(self, name=None, reference_name=None, work_item_types=None): - super(CategoryConfiguration, self).__init__() - self.name = name - self.reference_name = reference_name - self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_0/models/create_plan.py b/vsts/vsts/work/v4_0/models/create_plan.py deleted file mode 100644 index e0fe8aa2..00000000 --- a/vsts/vsts/work/v4_0/models/create_plan.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreatePlan(Model): - """CreatePlan. - - :param description: Description of the plan - :type description: str - :param name: Name of the plan to create. - :type name: str - :param properties: Plan properties. - :type properties: object - :param type: Type of plan to create. - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, properties=None, type=None): - super(CreatePlan, self).__init__() - self.description = description - self.name = name - self.properties = properties - self.type = type diff --git a/vsts/vsts/work/v4_0/models/date_range.py b/vsts/vsts/work/v4_0/models/date_range.py deleted file mode 100644 index 94694335..00000000 --- a/vsts/vsts/work/v4_0/models/date_range.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DateRange(Model): - """DateRange. - - :param end: End of the date range. - :type end: datetime - :param start: Start of the date range. - :type start: datetime - """ - - _attribute_map = { - 'end': {'key': 'end', 'type': 'iso-8601'}, - 'start': {'key': 'start', 'type': 'iso-8601'} - } - - def __init__(self, end=None, start=None): - super(DateRange, self).__init__() - self.end = end - self.start = start diff --git a/vsts/vsts/work/v4_0/models/delivery_view_data.py b/vsts/vsts/work/v4_0/models/delivery_view_data.py deleted file mode 100644 index 459e1fb2..00000000 --- a/vsts/vsts/work/v4_0/models/delivery_view_data.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .plan_view_data import PlanViewData - - -class DeliveryViewData(PlanViewData): - """DeliveryViewData. - - :param id: - :type id: str - :param revision: - :type revision: int - :param child_id_to_parent_id_map: Work item child id to parenet id map - :type child_id_to_parent_id_map: dict - :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` - :param end_date: The end date of the delivery view data - :type end_date: datetime - :param start_date: The start date for the delivery view data - :type start_date: datetime - :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'}, - 'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'teams': {'key': 'teams', 'type': '[TimelineTeamData]'} - } - - def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None): - super(DeliveryViewData, self).__init__(id=id, revision=revision) - self.child_id_to_parent_id_map = child_id_to_parent_id_map - self.criteria_status = criteria_status - self.end_date = end_date - self.start_date = start_date - self.teams = teams diff --git a/vsts/vsts/work/v4_0/models/field_reference.py b/vsts/vsts/work/v4_0/models/field_reference.py deleted file mode 100644 index 6741b93e..00000000 --- a/vsts/vsts/work/v4_0/models/field_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldReference(Model): - """FieldReference. - - :param reference_name: fieldRefName for the field - :type reference_name: str - :param url: Full http link to more information about the field - :type url: str - """ - - _attribute_map = { - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, reference_name=None, url=None): - super(FieldReference, self).__init__() - self.reference_name = reference_name - self.url = url diff --git a/vsts/vsts/work/v4_0/models/filter_clause.py b/vsts/vsts/work/v4_0/models/filter_clause.py deleted file mode 100644 index 1bb06642..00000000 --- a/vsts/vsts/work/v4_0/models/filter_clause.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FilterClause(Model): - """FilterClause. - - :param field_name: - :type field_name: str - :param index: - :type index: int - :param logical_operator: - :type logical_operator: str - :param operator: - :type operator: str - :param value: - :type value: str - """ - - _attribute_map = { - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'index': {'key': 'index', 'type': 'int'}, - 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): - super(FilterClause, self).__init__() - self.field_name = field_name - self.index = index - self.logical_operator = logical_operator - self.operator = operator - self.value = value diff --git a/vsts/vsts/work/v4_0/models/filter_group.py b/vsts/vsts/work/v4_0/models/filter_group.py deleted file mode 100644 index b7f7142e..00000000 --- a/vsts/vsts/work/v4_0/models/filter_group.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FilterGroup(Model): - """FilterGroup. - - :param end: - :type end: int - :param level: - :type level: int - :param start: - :type start: int - """ - - _attribute_map = { - 'end': {'key': 'end', 'type': 'int'}, - 'level': {'key': 'level', 'type': 'int'}, - 'start': {'key': 'start', 'type': 'int'} - } - - def __init__(self, end=None, level=None, start=None): - super(FilterGroup, self).__init__() - self.end = end - self.level = level - self.start = start diff --git a/vsts/vsts/work/v4_0/models/filter_model.py b/vsts/vsts/work/v4_0/models/filter_model.py deleted file mode 100644 index bb6acce6..00000000 --- a/vsts/vsts/work/v4_0/models/filter_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FilterModel(Model): - """FilterModel. - - :param clauses: - :type clauses: list of :class:`FilterClause ` - :param groups: - :type groups: list of :class:`FilterGroup ` - :param max_group_level: - :type max_group_level: int - """ - - _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, - 'groups': {'key': 'groups', 'type': '[FilterGroup]'}, - 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} - } - - def __init__(self, clauses=None, groups=None, max_group_level=None): - super(FilterModel, self).__init__() - self.clauses = clauses - self.groups = groups - self.max_group_level = max_group_level diff --git a/vsts/vsts/work/v4_0/models/identity_ref.py b/vsts/vsts/work/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/work/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/work/v4_0/models/member.py b/vsts/vsts/work/v4_0/models/member.py deleted file mode 100644 index 27ca2b67..00000000 --- a/vsts/vsts/work/v4_0/models/member.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Member(Model): - """Member. - - :param display_name: - :type display_name: str - :param id: - :type id: str - :param image_url: - :type image_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'image_url': {'key': 'imageUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None, image_url=None, unique_name=None, url=None): - super(Member, self).__init__() - self.display_name = display_name - self.id = id - self.image_url = image_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/work/v4_0/models/parent_child_wIMap.py b/vsts/vsts/work/v4_0/models/parent_child_wIMap.py deleted file mode 100644 index 87678f18..00000000 --- a/vsts/vsts/work/v4_0/models/parent_child_wIMap.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ParentChildWIMap(Model): - """ParentChildWIMap. - - :param child_work_item_ids: - :type child_work_item_ids: list of int - :param id: - :type id: int - :param title: - :type title: str - """ - - _attribute_map = { - 'child_work_item_ids': {'key': 'childWorkItemIds', 'type': '[int]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, child_work_item_ids=None, id=None, title=None): - super(ParentChildWIMap, self).__init__() - self.child_work_item_ids = child_work_item_ids - self.id = id - self.title = title diff --git a/vsts/vsts/work/v4_0/models/plan.py b/vsts/vsts/work/v4_0/models/plan.py deleted file mode 100644 index 05e3b2fd..00000000 --- a/vsts/vsts/work/v4_0/models/plan.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Plan(Model): - """Plan. - - :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` - :param created_date: Date when the plan was created - :type created_date: datetime - :param description: Description of the plan - :type description: str - :param id: Id of the plan - :type id: str - :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` - :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. - :type modified_date: datetime - :param name: Name of the plan - :type name: str - :param properties: The PlanPropertyCollection instance associated with the plan. These are dependent on the type of the plan. For example, DeliveryTimelineView, it would be of type DeliveryViewPropertyCollection. - :type properties: object - :param revision: Revision of the plan. Used to safeguard users from overwriting each other's changes. - :type revision: int - :param type: Type of the plan - :type type: object - :param url: The resource url to locate the plan via rest api - :type url: str - :param user_permissions: Bit flag indicating set of permissions a user has to the plan. - :type user_permissions: object - """ - - _attribute_map = { - 'created_by_identity': {'key': 'createdByIdentity', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'modified_by_identity': {'key': 'modifiedByIdentity', 'type': 'IdentityRef'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'user_permissions': {'key': 'userPermissions', 'type': 'object'} - } - - def __init__(self, created_by_identity=None, created_date=None, description=None, id=None, modified_by_identity=None, modified_date=None, name=None, properties=None, revision=None, type=None, url=None, user_permissions=None): - super(Plan, self).__init__() - self.created_by_identity = created_by_identity - self.created_date = created_date - self.description = description - self.id = id - self.modified_by_identity = modified_by_identity - self.modified_date = modified_date - self.name = name - self.properties = properties - self.revision = revision - self.type = type - self.url = url - self.user_permissions = user_permissions diff --git a/vsts/vsts/work/v4_0/models/plan_view_data.py b/vsts/vsts/work/v4_0/models/plan_view_data.py deleted file mode 100644 index fb99dc33..00000000 --- a/vsts/vsts/work/v4_0/models/plan_view_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PlanViewData(Model): - """PlanViewData. - - :param id: - :type id: str - :param revision: - :type revision: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, id=None, revision=None): - super(PlanViewData, self).__init__() - self.id = id - self.revision = revision diff --git a/vsts/vsts/work/v4_0/models/process_configuration.py b/vsts/vsts/work/v4_0/models/process_configuration.py deleted file mode 100644 index d6aad164..00000000 --- a/vsts/vsts/work/v4_0/models/process_configuration.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessConfiguration(Model): - """ProcessConfiguration. - - :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` - :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` - :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` - :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` - :param type_fields: Type fields for the process configuration - :type type_fields: dict - :param url: - :type url: str - """ - - _attribute_map = { - 'bug_work_items': {'key': 'bugWorkItems', 'type': 'CategoryConfiguration'}, - 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[CategoryConfiguration]'}, - 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'CategoryConfiguration'}, - 'task_backlog': {'key': 'taskBacklog', 'type': 'CategoryConfiguration'}, - 'type_fields': {'key': 'typeFields', 'type': '{WorkItemFieldReference}'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, bug_work_items=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, type_fields=None, url=None): - super(ProcessConfiguration, self).__init__() - self.bug_work_items = bug_work_items - self.portfolio_backlogs = portfolio_backlogs - self.requirement_backlog = requirement_backlog - self.task_backlog = task_backlog - self.type_fields = type_fields - self.url = url diff --git a/vsts/vsts/work/v4_0/models/reference_links.py b/vsts/vsts/work/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/work/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/work/v4_0/models/rule.py b/vsts/vsts/work/v4_0/models/rule.py deleted file mode 100644 index fad6907a..00000000 --- a/vsts/vsts/work/v4_0/models/rule.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Rule(Model): - """Rule. - - :param clauses: - :type clauses: list of :class:`FilterClause ` - :param filter: - :type filter: str - :param is_enabled: - :type is_enabled: str - :param name: - :type name: str - :param settings: - :type settings: dict - """ - - _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, - 'filter': {'key': 'filter', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': '{str}'} - } - - def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): - super(Rule, self).__init__() - self.clauses = clauses - self.filter = filter - self.is_enabled = is_enabled - self.name = name - self.settings = settings diff --git a/vsts/vsts/work/v4_0/models/team_context.py b/vsts/vsts/work/v4_0/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/work/v4_0/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/work/v4_0/models/team_field_value.py b/vsts/vsts/work/v4_0/models/team_field_value.py deleted file mode 100644 index 08d7ad84..00000000 --- a/vsts/vsts/work/v4_0/models/team_field_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamFieldValue(Model): - """TeamFieldValue. - - :param include_children: - :type include_children: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'include_children': {'key': 'includeChildren', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, include_children=None, value=None): - super(TeamFieldValue, self).__init__() - self.include_children = include_children - self.value = value diff --git a/vsts/vsts/work/v4_0/models/team_field_values.py b/vsts/vsts/work/v4_0/models/team_field_values.py deleted file mode 100644 index 52254b57..00000000 --- a/vsts/vsts/work/v4_0/models/team_field_values.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamFieldValues(TeamSettingsDataContractBase): - """TeamFieldValues. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param default_value: The default team field value - :type default_value: str - :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` - :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'field': {'key': 'field', 'type': 'FieldReference'}, - 'values': {'key': 'values', 'type': '[TeamFieldValue]'} - } - - def __init__(self, _links=None, url=None, default_value=None, field=None, values=None): - super(TeamFieldValues, self).__init__(_links=_links, url=url) - self.default_value = default_value - self.field = field - self.values = values diff --git a/vsts/vsts/work/v4_0/models/team_field_values_patch.py b/vsts/vsts/work/v4_0/models/team_field_values_patch.py deleted file mode 100644 index acc13dbb..00000000 --- a/vsts/vsts/work/v4_0/models/team_field_values_patch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamFieldValuesPatch(Model): - """TeamFieldValuesPatch. - - :param default_value: - :type default_value: str - :param values: - :type values: list of :class:`TeamFieldValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[TeamFieldValue]'} - } - - def __init__(self, default_value=None, values=None): - super(TeamFieldValuesPatch, self).__init__() - self.default_value = default_value - self.values = values diff --git a/vsts/vsts/work/v4_0/models/team_iteration_attributes.py b/vsts/vsts/work/v4_0/models/team_iteration_attributes.py deleted file mode 100644 index 1529ee88..00000000 --- a/vsts/vsts/work/v4_0/models/team_iteration_attributes.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamIterationAttributes(Model): - """TeamIterationAttributes. - - :param finish_date: - :type finish_date: datetime - :param start_date: - :type start_date: datetime - """ - - _attribute_map = { - 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'} - } - - def __init__(self, finish_date=None, start_date=None): - super(TeamIterationAttributes, self).__init__() - self.finish_date = finish_date - self.start_date = start_date diff --git a/vsts/vsts/work/v4_0/models/team_member_capacity.py b/vsts/vsts/work/v4_0/models/team_member_capacity.py deleted file mode 100644 index eed15795..00000000 --- a/vsts/vsts/work/v4_0/models/team_member_capacity.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamMemberCapacity(TeamSettingsDataContractBase): - """TeamMemberCapacity. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` - :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` - :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'activities': {'key': 'activities', 'type': '[Activity]'}, - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'}, - 'team_member': {'key': 'teamMember', 'type': 'Member'} - } - - def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None): - super(TeamMemberCapacity, self).__init__(_links=_links, url=url) - self.activities = activities - self.days_off = days_off - self.team_member = team_member diff --git a/vsts/vsts/work/v4_0/models/team_setting.py b/vsts/vsts/work/v4_0/models/team_setting.py deleted file mode 100644 index 66afb55d..00000000 --- a/vsts/vsts/work/v4_0/models/team_setting.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamSetting(TeamSettingsDataContractBase): - """TeamSetting. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` - :param backlog_visibilities: Information about categories that are visible on the backlog. - :type backlog_visibilities: dict - :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) - :type bugs_behavior: object - :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` - :param default_iteration_macro: Default Iteration macro (if any) - :type default_iteration_macro: str - :param working_days: Days that the team is working - :type working_days: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'backlog_iteration': {'key': 'backlogIteration', 'type': 'TeamSettingsIteration'}, - 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, - 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, - 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, - 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[object]'} - } - - def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): - super(TeamSetting, self).__init__(_links=_links, url=url) - self.backlog_iteration = backlog_iteration - self.backlog_visibilities = backlog_visibilities - self.bugs_behavior = bugs_behavior - self.default_iteration = default_iteration - self.default_iteration_macro = default_iteration_macro - self.working_days = working_days diff --git a/vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py b/vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py deleted file mode 100644 index c490b84d..00000000 --- a/vsts/vsts/work/v4_0/models/team_settings_data_contract_base.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamSettingsDataContractBase(Model): - """TeamSettingsDataContractBase. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, url=None): - super(TeamSettingsDataContractBase, self).__init__() - self._links = _links - self.url = url diff --git a/vsts/vsts/work/v4_0/models/team_settings_days_off.py b/vsts/vsts/work/v4_0/models/team_settings_days_off.py deleted file mode 100644 index 7bc53a90..00000000 --- a/vsts/vsts/work/v4_0/models/team_settings_days_off.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamSettingsDaysOff(TeamSettingsDataContractBase): - """TeamSettingsDaysOff. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param days_off: - :type days_off: list of :class:`DateRange ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} - } - - def __init__(self, _links=None, url=None, days_off=None): - super(TeamSettingsDaysOff, self).__init__(_links=_links, url=url) - self.days_off = days_off diff --git a/vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py b/vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py deleted file mode 100644 index 1a40dd34..00000000 --- a/vsts/vsts/work/v4_0/models/team_settings_days_off_patch.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamSettingsDaysOffPatch(Model): - """TeamSettingsDaysOffPatch. - - :param days_off: - :type days_off: list of :class:`DateRange ` - """ - - _attribute_map = { - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} - } - - def __init__(self, days_off=None): - super(TeamSettingsDaysOffPatch, self).__init__() - self.days_off = days_off diff --git a/vsts/vsts/work/v4_0/models/team_settings_iteration.py b/vsts/vsts/work/v4_0/models/team_settings_iteration.py deleted file mode 100644 index 633f536c..00000000 --- a/vsts/vsts/work/v4_0/models/team_settings_iteration.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamSettingsIteration(TeamSettingsDataContractBase): - """TeamSettingsIteration. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` - :param id: Id of the resource - :type id: str - :param name: Name of the resource - :type name: str - :param path: Relative path of the iteration - :type path: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'attributes': {'key': 'attributes', 'type': 'TeamIterationAttributes'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, _links=None, url=None, attributes=None, id=None, name=None, path=None): - super(TeamSettingsIteration, self).__init__(_links=_links, url=url) - self.attributes = attributes - self.id = id - self.name = name - self.path = path diff --git a/vsts/vsts/work/v4_0/models/team_settings_patch.py b/vsts/vsts/work/v4_0/models/team_settings_patch.py deleted file mode 100644 index da9da2dc..00000000 --- a/vsts/vsts/work/v4_0/models/team_settings_patch.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamSettingsPatch(Model): - """TeamSettingsPatch. - - :param backlog_iteration: - :type backlog_iteration: str - :param backlog_visibilities: - :type backlog_visibilities: dict - :param bugs_behavior: - :type bugs_behavior: object - :param default_iteration: - :type default_iteration: str - :param default_iteration_macro: - :type default_iteration_macro: str - :param working_days: - :type working_days: list of str - """ - - _attribute_map = { - 'backlog_iteration': {'key': 'backlogIteration', 'type': 'str'}, - 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, - 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, - 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, - 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[object]'} - } - - def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): - super(TeamSettingsPatch, self).__init__() - self.backlog_iteration = backlog_iteration - self.backlog_visibilities = backlog_visibilities - self.bugs_behavior = bugs_behavior - self.default_iteration = default_iteration - self.default_iteration_macro = default_iteration_macro - self.working_days = working_days diff --git a/vsts/vsts/work/v4_0/models/timeline_criteria_status.py b/vsts/vsts/work/v4_0/models/timeline_criteria_status.py deleted file mode 100644 index d34fc208..00000000 --- a/vsts/vsts/work/v4_0/models/timeline_criteria_status.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineCriteriaStatus(Model): - """TimelineCriteriaStatus. - - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, type=None): - super(TimelineCriteriaStatus, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/work/v4_0/models/timeline_iteration_status.py b/vsts/vsts/work/v4_0/models/timeline_iteration_status.py deleted file mode 100644 index 56ad40fb..00000000 --- a/vsts/vsts/work/v4_0/models/timeline_iteration_status.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineIterationStatus(Model): - """TimelineIterationStatus. - - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, type=None): - super(TimelineIterationStatus, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/work/v4_0/models/timeline_team_data.py b/vsts/vsts/work/v4_0/models/timeline_team_data.py deleted file mode 100644 index 6d29a511..00000000 --- a/vsts/vsts/work/v4_0/models/timeline_team_data.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineTeamData(Model): - """TimelineTeamData. - - :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` - :param field_reference_names: The field reference names of the work item data - :type field_reference_names: list of str - :param id: The id of the team - :type id: str - :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. - :type is_expanded: bool - :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` - :param name: The name of the team - :type name: str - :param order_by_field: The order by field name of this team - :type order_by_field: str - :param partially_paged_field_reference_names: The field reference names of the partially paged work items, such as ID, WorkItemType - :type partially_paged_field_reference_names: list of str - :param project_id: The project id the team belongs team - :type project_id: str - :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` - :param team_field_default_value: The team field default value - :type team_field_default_value: str - :param team_field_name: The team field name of this team - :type team_field_name: str - :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` - :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` - """ - - _attribute_map = { - 'backlog': {'key': 'backlog', 'type': 'BacklogLevel'}, - 'field_reference_names': {'key': 'fieldReferenceNames', 'type': '[str]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, - 'iterations': {'key': 'iterations', 'type': '[TimelineTeamIteration]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order_by_field': {'key': 'orderByField', 'type': 'str'}, - 'partially_paged_field_reference_names': {'key': 'partiallyPagedFieldReferenceNames', 'type': '[str]'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'TimelineTeamStatus'}, - 'team_field_default_value': {'key': 'teamFieldDefaultValue', 'type': 'str'}, - 'team_field_name': {'key': 'teamFieldName', 'type': 'str'}, - 'team_field_values': {'key': 'teamFieldValues', 'type': '[TeamFieldValue]'}, - 'work_item_type_colors': {'key': 'workItemTypeColors', 'type': '[WorkItemColor]'} - } - - def __init__(self, backlog=None, field_reference_names=None, id=None, is_expanded=None, iterations=None, name=None, order_by_field=None, partially_paged_field_reference_names=None, project_id=None, status=None, team_field_default_value=None, team_field_name=None, team_field_values=None, work_item_type_colors=None): - super(TimelineTeamData, self).__init__() - self.backlog = backlog - self.field_reference_names = field_reference_names - self.id = id - self.is_expanded = is_expanded - self.iterations = iterations - self.name = name - self.order_by_field = order_by_field - self.partially_paged_field_reference_names = partially_paged_field_reference_names - self.project_id = project_id - self.status = status - self.team_field_default_value = team_field_default_value - self.team_field_name = team_field_name - self.team_field_values = team_field_values - self.work_item_type_colors = work_item_type_colors diff --git a/vsts/vsts/work/v4_0/models/timeline_team_iteration.py b/vsts/vsts/work/v4_0/models/timeline_team_iteration.py deleted file mode 100644 index 36b8eaaf..00000000 --- a/vsts/vsts/work/v4_0/models/timeline_team_iteration.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineTeamIteration(Model): - """TimelineTeamIteration. - - :param finish_date: The end date of the iteration - :type finish_date: datetime - :param name: The iteration name - :type name: str - :param partially_paged_work_items: All the partially paged workitems in this iteration. - :type partially_paged_work_items: list of [object] - :param path: The iteration path - :type path: str - :param start_date: The start date of the iteration - :type start_date: datetime - :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` - :param work_items: The work items that have been paged in this iteration - :type work_items: list of [object] - """ - - _attribute_map = { - 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'partially_paged_work_items': {'key': 'partiallyPagedWorkItems', 'type': '[[object]]'}, - 'path': {'key': 'path', 'type': 'str'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'TimelineIterationStatus'}, - 'work_items': {'key': 'workItems', 'type': '[[object]]'} - } - - def __init__(self, finish_date=None, name=None, partially_paged_work_items=None, path=None, start_date=None, status=None, work_items=None): - super(TimelineTeamIteration, self).__init__() - self.finish_date = finish_date - self.name = name - self.partially_paged_work_items = partially_paged_work_items - self.path = path - self.start_date = start_date - self.status = status - self.work_items = work_items diff --git a/vsts/vsts/work/v4_0/models/timeline_team_status.py b/vsts/vsts/work/v4_0/models/timeline_team_status.py deleted file mode 100644 index ba0e89d1..00000000 --- a/vsts/vsts/work/v4_0/models/timeline_team_status.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineTeamStatus(Model): - """TimelineTeamStatus. - - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, type=None): - super(TimelineTeamStatus, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/work/v4_0/models/update_plan.py b/vsts/vsts/work/v4_0/models/update_plan.py deleted file mode 100644 index 901ad0ed..00000000 --- a/vsts/vsts/work/v4_0/models/update_plan.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdatePlan(Model): - """UpdatePlan. - - :param description: Description of the plan - :type description: str - :param name: Name of the plan to create. - :type name: str - :param properties: Plan properties. - :type properties: object - :param revision: Revision of the plan that was updated - the value used here should match the one the server gave the client in the Plan. - :type revision: int - :param type: Type of the plan - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, properties=None, revision=None, type=None): - super(UpdatePlan, self).__init__() - self.description = description - self.name = name - self.properties = properties - self.revision = revision - self.type = type diff --git a/vsts/vsts/work/v4_0/models/work_item_color.py b/vsts/vsts/work/v4_0/models/work_item_color.py deleted file mode 100644 index 7d2c9de7..00000000 --- a/vsts/vsts/work/v4_0/models/work_item_color.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemColor(Model): - """WorkItemColor. - - :param icon: - :type icon: str - :param primary_color: - :type primary_color: str - :param work_item_type_name: - :type work_item_type_name: str - """ - - _attribute_map = { - 'icon': {'key': 'icon', 'type': 'str'}, - 'primary_color': {'key': 'primaryColor', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, icon=None, primary_color=None, work_item_type_name=None): - super(WorkItemColor, self).__init__() - self.icon = icon - self.primary_color = primary_color - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work/v4_0/models/work_item_field_reference.py b/vsts/vsts/work/v4_0/models/work_item_field_reference.py deleted file mode 100644 index 625dbfdf..00000000 --- a/vsts/vsts/work/v4_0/models/work_item_field_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldReference(Model): - """WorkItemFieldReference. - - :param name: - :type name: str - :param reference_name: - :type reference_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None, url=None): - super(WorkItemFieldReference, self).__init__() - self.name = name - self.reference_name = reference_name - self.url = url diff --git a/vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py b/vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py deleted file mode 100644 index de9a728b..00000000 --- a/vsts/vsts/work/v4_0/models/work_item_tracking_resource_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTrackingResourceReference(Model): - """WorkItemTrackingResourceReference. - - :param url: - :type url: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, url=None): - super(WorkItemTrackingResourceReference, self).__init__() - self.url = url diff --git a/vsts/vsts/work/v4_0/models/work_item_type_reference.py b/vsts/vsts/work/v4_0/models/work_item_type_reference.py deleted file mode 100644 index 29f8ec5b..00000000 --- a/vsts/vsts/work/v4_0/models/work_item_type_reference.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference - - -class WorkItemTypeReference(WorkItemTrackingResourceReference): - """WorkItemTypeReference. - - :param url: - :type url: str - :param name: - :type name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, url=None, name=None): - super(WorkItemTypeReference, self).__init__(url=url) - self.name = name diff --git a/vsts/vsts/work/v4_0/models/work_item_type_state_info.py b/vsts/vsts/work/v4_0/models/work_item_type_state_info.py deleted file mode 100644 index 7ff5045e..00000000 --- a/vsts/vsts/work/v4_0/models/work_item_type_state_info.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeStateInfo(Model): - """WorkItemTypeStateInfo. - - :param states: State name to state category map - :type states: dict - :param work_item_type_name: Work Item type name - :type work_item_type_name: str - """ - - _attribute_map = { - 'states': {'key': 'states', 'type': '{str}'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, states=None, work_item_type_name=None): - super(WorkItemTypeStateInfo, self).__init__() - self.states = states - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work/v4_1/__init__.py b/vsts/vsts/work/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work/v4_1/models/__init__.py b/vsts/vsts/work/v4_1/models/__init__.py deleted file mode 100644 index 067d31b1..00000000 --- a/vsts/vsts/work/v4_1/models/__init__.py +++ /dev/null @@ -1,131 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .activity import Activity -from .backlog_column import BacklogColumn -from .backlog_configuration import BacklogConfiguration -from .backlog_fields import BacklogFields -from .backlog_level import BacklogLevel -from .backlog_level_configuration import BacklogLevelConfiguration -from .backlog_level_work_items import BacklogLevelWorkItems -from .board import Board -from .board_card_rule_settings import BoardCardRuleSettings -from .board_card_settings import BoardCardSettings -from .board_chart import BoardChart -from .board_chart_reference import BoardChartReference -from .board_column import BoardColumn -from .board_fields import BoardFields -from .board_reference import BoardReference -from .board_row import BoardRow -from .board_suggested_value import BoardSuggestedValue -from .board_user_settings import BoardUserSettings -from .capacity_patch import CapacityPatch -from .category_configuration import CategoryConfiguration -from .create_plan import CreatePlan -from .date_range import DateRange -from .delivery_view_data import DeliveryViewData -from .field_reference import FieldReference -from .filter_clause import FilterClause -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .iteration_work_items import IterationWorkItems -from .member import Member -from .parent_child_wIMap import ParentChildWIMap -from .plan import Plan -from .plan_view_data import PlanViewData -from .process_configuration import ProcessConfiguration -from .reference_links import ReferenceLinks -from .rule import Rule -from .team_context import TeamContext -from .team_field_value import TeamFieldValue -from .team_field_values import TeamFieldValues -from .team_field_values_patch import TeamFieldValuesPatch -from .team_iteration_attributes import TeamIterationAttributes -from .team_member_capacity import TeamMemberCapacity -from .team_setting import TeamSetting -from .team_settings_data_contract_base import TeamSettingsDataContractBase -from .team_settings_days_off import TeamSettingsDaysOff -from .team_settings_days_off_patch import TeamSettingsDaysOffPatch -from .team_settings_iteration import TeamSettingsIteration -from .team_settings_patch import TeamSettingsPatch -from .timeline_criteria_status import TimelineCriteriaStatus -from .timeline_iteration_status import TimelineIterationStatus -from .timeline_team_data import TimelineTeamData -from .timeline_team_iteration import TimelineTeamIteration -from .timeline_team_status import TimelineTeamStatus -from .update_plan import UpdatePlan -from .work_item_color import WorkItemColor -from .work_item_field_reference import WorkItemFieldReference -from .work_item_link import WorkItemLink -from .work_item_reference import WorkItemReference -from .work_item_tracking_resource_reference import WorkItemTrackingResourceReference -from .work_item_type_reference import WorkItemTypeReference -from .work_item_type_state_info import WorkItemTypeStateInfo - -__all__ = [ - 'Activity', - 'BacklogColumn', - 'BacklogConfiguration', - 'BacklogFields', - 'BacklogLevel', - 'BacklogLevelConfiguration', - 'BacklogLevelWorkItems', - 'Board', - 'BoardCardRuleSettings', - 'BoardCardSettings', - 'BoardChart', - 'BoardChartReference', - 'BoardColumn', - 'BoardFields', - 'BoardReference', - 'BoardRow', - 'BoardSuggestedValue', - 'BoardUserSettings', - 'CapacityPatch', - 'CategoryConfiguration', - 'CreatePlan', - 'DateRange', - 'DeliveryViewData', - 'FieldReference', - 'FilterClause', - 'GraphSubjectBase', - 'IdentityRef', - 'IterationWorkItems', - 'Member', - 'ParentChildWIMap', - 'Plan', - 'PlanViewData', - 'ProcessConfiguration', - 'ReferenceLinks', - 'Rule', - 'TeamContext', - 'TeamFieldValue', - 'TeamFieldValues', - 'TeamFieldValuesPatch', - 'TeamIterationAttributes', - 'TeamMemberCapacity', - 'TeamSetting', - 'TeamSettingsDataContractBase', - 'TeamSettingsDaysOff', - 'TeamSettingsDaysOffPatch', - 'TeamSettingsIteration', - 'TeamSettingsPatch', - 'TimelineCriteriaStatus', - 'TimelineIterationStatus', - 'TimelineTeamData', - 'TimelineTeamIteration', - 'TimelineTeamStatus', - 'UpdatePlan', - 'WorkItemColor', - 'WorkItemFieldReference', - 'WorkItemLink', - 'WorkItemReference', - 'WorkItemTrackingResourceReference', - 'WorkItemTypeReference', - 'WorkItemTypeStateInfo', -] diff --git a/vsts/vsts/work/v4_1/models/activity.py b/vsts/vsts/work/v4_1/models/activity.py deleted file mode 100644 index a0496d0e..00000000 --- a/vsts/vsts/work/v4_1/models/activity.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Activity(Model): - """Activity. - - :param capacity_per_day: - :type capacity_per_day: int - :param name: - :type name: str - """ - - _attribute_map = { - 'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, capacity_per_day=None, name=None): - super(Activity, self).__init__() - self.capacity_per_day = capacity_per_day - self.name = name diff --git a/vsts/vsts/work/v4_1/models/backlog_column.py b/vsts/vsts/work/v4_1/models/backlog_column.py deleted file mode 100644 index e66106f7..00000000 --- a/vsts/vsts/work/v4_1/models/backlog_column.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogColumn(Model): - """BacklogColumn. - - :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` - :param width: - :type width: int - """ - - _attribute_map = { - 'column_field_reference': {'key': 'columnFieldReference', 'type': 'WorkItemFieldReference'}, - 'width': {'key': 'width', 'type': 'int'} - } - - def __init__(self, column_field_reference=None, width=None): - super(BacklogColumn, self).__init__() - self.column_field_reference = column_field_reference - self.width = width diff --git a/vsts/vsts/work/v4_1/models/backlog_configuration.py b/vsts/vsts/work/v4_1/models/backlog_configuration.py deleted file mode 100644 index f579fae2..00000000 --- a/vsts/vsts/work/v4_1/models/backlog_configuration.py +++ /dev/null @@ -1,53 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogConfiguration(Model): - """BacklogConfiguration. - - :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` - :param bugs_behavior: Bugs behavior - :type bugs_behavior: object - :param hidden_backlogs: Hidden Backlog - :type hidden_backlogs: list of str - :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` - :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` - :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` - :param url: - :type url: str - :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` - """ - - _attribute_map = { - 'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'}, - 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, - 'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'}, - 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'}, - 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'}, - 'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'} - } - - def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): - super(BacklogConfiguration, self).__init__() - self.backlog_fields = backlog_fields - self.bugs_behavior = bugs_behavior - self.hidden_backlogs = hidden_backlogs - self.portfolio_backlogs = portfolio_backlogs - self.requirement_backlog = requirement_backlog - self.task_backlog = task_backlog - self.url = url - self.work_item_type_mapped_states = work_item_type_mapped_states diff --git a/vsts/vsts/work/v4_1/models/backlog_fields.py b/vsts/vsts/work/v4_1/models/backlog_fields.py deleted file mode 100644 index 0aa2c795..00000000 --- a/vsts/vsts/work/v4_1/models/backlog_fields.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogFields(Model): - """BacklogFields. - - :param type_fields: Field Type (e.g. Order, Activity) to Field Reference Name map - :type type_fields: dict - """ - - _attribute_map = { - 'type_fields': {'key': 'typeFields', 'type': '{str}'} - } - - def __init__(self, type_fields=None): - super(BacklogFields, self).__init__() - self.type_fields = type_fields diff --git a/vsts/vsts/work/v4_1/models/backlog_level.py b/vsts/vsts/work/v4_1/models/backlog_level.py deleted file mode 100644 index aaad0af8..00000000 --- a/vsts/vsts/work/v4_1/models/backlog_level.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogLevel(Model): - """BacklogLevel. - - :param category_reference_name: Reference name of the corresponding WIT category - :type category_reference_name: str - :param plural_name: Plural name for the backlog level - :type plural_name: str - :param work_item_states: Collection of work item states that are included in the plan. The server will filter to only these work item types. - :type work_item_states: list of str - :param work_item_types: Collection of valid workitem type names for the given backlog level - :type work_item_types: list of str - """ - - _attribute_map = { - 'category_reference_name': {'key': 'categoryReferenceName', 'type': 'str'}, - 'plural_name': {'key': 'pluralName', 'type': 'str'}, - 'work_item_states': {'key': 'workItemStates', 'type': '[str]'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[str]'} - } - - def __init__(self, category_reference_name=None, plural_name=None, work_item_states=None, work_item_types=None): - super(BacklogLevel, self).__init__() - self.category_reference_name = category_reference_name - self.plural_name = plural_name - self.work_item_states = work_item_states - self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_1/models/backlog_level_configuration.py b/vsts/vsts/work/v4_1/models/backlog_level_configuration.py deleted file mode 100644 index 970bf259..00000000 --- a/vsts/vsts/work/v4_1/models/backlog_level_configuration.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogLevelConfiguration(Model): - """BacklogLevelConfiguration. - - :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` - :param color: Color for the backlog level - :type color: str - :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` - :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` - :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) - :type id: str - :param is_hidden: Indicates whether the backlog level is hidden - :type is_hidden: bool - :param name: Backlog Name - :type name: str - :param rank: Backlog Rank (Taskbacklog is 0) - :type rank: int - :param type: The type of this backlog level - :type type: object - :param work_item_count_limit: Max number of work items to show in the given backlog - :type work_item_count_limit: int - :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` - """ - - _attribute_map = { - 'add_panel_fields': {'key': 'addPanelFields', 'type': '[WorkItemFieldReference]'}, - 'color': {'key': 'color', 'type': 'str'}, - 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, - 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_hidden': {'key': 'isHidden', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} - } - - def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, is_hidden=None, name=None, rank=None, type=None, work_item_count_limit=None, work_item_types=None): - super(BacklogLevelConfiguration, self).__init__() - self.add_panel_fields = add_panel_fields - self.color = color - self.column_fields = column_fields - self.default_work_item_type = default_work_item_type - self.id = id - self.is_hidden = is_hidden - self.name = name - self.rank = rank - self.type = type - self.work_item_count_limit = work_item_count_limit - self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_1/models/backlog_level_work_items.py b/vsts/vsts/work/v4_1/models/backlog_level_work_items.py deleted file mode 100644 index 4a9681e9..00000000 --- a/vsts/vsts/work/v4_1/models/backlog_level_work_items.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BacklogLevelWorkItems(Model): - """BacklogLevelWorkItems. - - :param work_items: A list of work items within a backlog level - :type work_items: list of :class:`WorkItemLink ` - """ - - _attribute_map = { - 'work_items': {'key': 'workItems', 'type': '[WorkItemLink]'} - } - - def __init__(self, work_items=None): - super(BacklogLevelWorkItems, self).__init__() - self.work_items = work_items diff --git a/vsts/vsts/work/v4_1/models/board.py b/vsts/vsts/work/v4_1/models/board.py deleted file mode 100644 index 04b9107e..00000000 --- a/vsts/vsts/work/v4_1/models/board.py +++ /dev/null @@ -1,62 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .board_reference import BoardReference - - -class Board(BoardReference): - """Board. - - :param id: Id of the resource - :type id: str - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param allowed_mappings: - :type allowed_mappings: dict - :param can_edit: - :type can_edit: bool - :param columns: - :type columns: list of :class:`BoardColumn ` - :param fields: - :type fields: :class:`BoardFields ` - :param is_valid: - :type is_valid: bool - :param revision: - :type revision: int - :param rows: - :type rows: list of :class:`BoardRow ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'allowed_mappings': {'key': 'allowedMappings', 'type': '{{[str]}}'}, - 'can_edit': {'key': 'canEdit', 'type': 'bool'}, - 'columns': {'key': 'columns', 'type': '[BoardColumn]'}, - 'fields': {'key': 'fields', 'type': 'BoardFields'}, - 'is_valid': {'key': 'isValid', 'type': 'bool'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'rows': {'key': 'rows', 'type': '[BoardRow]'} - } - - def __init__(self, id=None, name=None, url=None, _links=None, allowed_mappings=None, can_edit=None, columns=None, fields=None, is_valid=None, revision=None, rows=None): - super(Board, self).__init__(id=id, name=name, url=url) - self._links = _links - self.allowed_mappings = allowed_mappings - self.can_edit = can_edit - self.columns = columns - self.fields = fields - self.is_valid = is_valid - self.revision = revision - self.rows = rows diff --git a/vsts/vsts/work/v4_1/models/board_card_rule_settings.py b/vsts/vsts/work/v4_1/models/board_card_rule_settings.py deleted file mode 100644 index dcd66935..00000000 --- a/vsts/vsts/work/v4_1/models/board_card_rule_settings.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardCardRuleSettings(Model): - """BoardCardRuleSettings. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param rules: - :type rules: dict - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'rules': {'key': 'rules', 'type': '{[Rule]}'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, rules=None, url=None): - super(BoardCardRuleSettings, self).__init__() - self._links = _links - self.rules = rules - self.url = url diff --git a/vsts/vsts/work/v4_1/models/board_card_settings.py b/vsts/vsts/work/v4_1/models/board_card_settings.py deleted file mode 100644 index 77861a9d..00000000 --- a/vsts/vsts/work/v4_1/models/board_card_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardCardSettings(Model): - """BoardCardSettings. - - :param cards: - :type cards: dict - """ - - _attribute_map = { - 'cards': {'key': 'cards', 'type': '{[FieldSetting]}'} - } - - def __init__(self, cards=None): - super(BoardCardSettings, self).__init__() - self.cards = cards diff --git a/vsts/vsts/work/v4_1/models/board_chart.py b/vsts/vsts/work/v4_1/models/board_chart.py deleted file mode 100644 index 05294f0f..00000000 --- a/vsts/vsts/work/v4_1/models/board_chart.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .board_chart_reference import BoardChartReference - - -class BoardChart(BoardChartReference): - """BoardChart. - - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` - :param settings: The settings for the resource - :type settings: dict - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'settings': {'key': 'settings', 'type': '{object}'} - } - - def __init__(self, name=None, url=None, _links=None, settings=None): - super(BoardChart, self).__init__(name=name, url=url) - self._links = _links - self.settings = settings diff --git a/vsts/vsts/work/v4_1/models/board_chart_reference.py b/vsts/vsts/work/v4_1/models/board_chart_reference.py deleted file mode 100644 index 382d9bfc..00000000 --- a/vsts/vsts/work/v4_1/models/board_chart_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardChartReference(Model): - """BoardChartReference. - - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, url=None): - super(BoardChartReference, self).__init__() - self.name = name - self.url = url diff --git a/vsts/vsts/work/v4_1/models/board_column.py b/vsts/vsts/work/v4_1/models/board_column.py deleted file mode 100644 index e994435b..00000000 --- a/vsts/vsts/work/v4_1/models/board_column.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardColumn(Model): - """BoardColumn. - - :param column_type: - :type column_type: object - :param description: - :type description: str - :param id: - :type id: str - :param is_split: - :type is_split: bool - :param item_limit: - :type item_limit: int - :param name: - :type name: str - :param state_mappings: - :type state_mappings: dict - """ - - _attribute_map = { - 'column_type': {'key': 'columnType', 'type': 'object'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_split': {'key': 'isSplit', 'type': 'bool'}, - 'item_limit': {'key': 'itemLimit', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'state_mappings': {'key': 'stateMappings', 'type': '{str}'} - } - - def __init__(self, column_type=None, description=None, id=None, is_split=None, item_limit=None, name=None, state_mappings=None): - super(BoardColumn, self).__init__() - self.column_type = column_type - self.description = description - self.id = id - self.is_split = is_split - self.item_limit = item_limit - self.name = name - self.state_mappings = state_mappings diff --git a/vsts/vsts/work/v4_1/models/board_fields.py b/vsts/vsts/work/v4_1/models/board_fields.py deleted file mode 100644 index 97888618..00000000 --- a/vsts/vsts/work/v4_1/models/board_fields.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardFields(Model): - """BoardFields. - - :param column_field: - :type column_field: :class:`FieldReference ` - :param done_field: - :type done_field: :class:`FieldReference ` - :param row_field: - :type row_field: :class:`FieldReference ` - """ - - _attribute_map = { - 'column_field': {'key': 'columnField', 'type': 'FieldReference'}, - 'done_field': {'key': 'doneField', 'type': 'FieldReference'}, - 'row_field': {'key': 'rowField', 'type': 'FieldReference'} - } - - def __init__(self, column_field=None, done_field=None, row_field=None): - super(BoardFields, self).__init__() - self.column_field = column_field - self.done_field = done_field - self.row_field = row_field diff --git a/vsts/vsts/work/v4_1/models/board_reference.py b/vsts/vsts/work/v4_1/models/board_reference.py deleted file mode 100644 index 6380e11e..00000000 --- a/vsts/vsts/work/v4_1/models/board_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardReference(Model): - """BoardReference. - - :param id: Id of the resource - :type id: str - :param name: Name of the resource - :type name: str - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, name=None, url=None): - super(BoardReference, self).__init__() - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/work/v4_1/models/board_row.py b/vsts/vsts/work/v4_1/models/board_row.py deleted file mode 100644 index 313e4810..00000000 --- a/vsts/vsts/work/v4_1/models/board_row.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardRow(Model): - """BoardRow. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(BoardRow, self).__init__() - self.id = id - self.name = name diff --git a/vsts/vsts/work/v4_1/models/board_suggested_value.py b/vsts/vsts/work/v4_1/models/board_suggested_value.py deleted file mode 100644 index 058045af..00000000 --- a/vsts/vsts/work/v4_1/models/board_suggested_value.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardSuggestedValue(Model): - """BoardSuggestedValue. - - :param name: - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, name=None): - super(BoardSuggestedValue, self).__init__() - self.name = name diff --git a/vsts/vsts/work/v4_1/models/board_user_settings.py b/vsts/vsts/work/v4_1/models/board_user_settings.py deleted file mode 100644 index d20fbc57..00000000 --- a/vsts/vsts/work/v4_1/models/board_user_settings.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BoardUserSettings(Model): - """BoardUserSettings. - - :param auto_refresh_state: - :type auto_refresh_state: bool - """ - - _attribute_map = { - 'auto_refresh_state': {'key': 'autoRefreshState', 'type': 'bool'} - } - - def __init__(self, auto_refresh_state=None): - super(BoardUserSettings, self).__init__() - self.auto_refresh_state = auto_refresh_state diff --git a/vsts/vsts/work/v4_1/models/capacity_patch.py b/vsts/vsts/work/v4_1/models/capacity_patch.py deleted file mode 100644 index 1f27eb84..00000000 --- a/vsts/vsts/work/v4_1/models/capacity_patch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CapacityPatch(Model): - """CapacityPatch. - - :param activities: - :type activities: list of :class:`Activity ` - :param days_off: - :type days_off: list of :class:`DateRange ` - """ - - _attribute_map = { - 'activities': {'key': 'activities', 'type': '[Activity]'}, - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} - } - - def __init__(self, activities=None, days_off=None): - super(CapacityPatch, self).__init__() - self.activities = activities - self.days_off = days_off diff --git a/vsts/vsts/work/v4_1/models/category_configuration.py b/vsts/vsts/work/v4_1/models/category_configuration.py deleted file mode 100644 index ffab97a3..00000000 --- a/vsts/vsts/work/v4_1/models/category_configuration.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CategoryConfiguration(Model): - """CategoryConfiguration. - - :param name: Name - :type name: str - :param reference_name: Category Reference Name - :type reference_name: str - :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} - } - - def __init__(self, name=None, reference_name=None, work_item_types=None): - super(CategoryConfiguration, self).__init__() - self.name = name - self.reference_name = reference_name - self.work_item_types = work_item_types diff --git a/vsts/vsts/work/v4_1/models/create_plan.py b/vsts/vsts/work/v4_1/models/create_plan.py deleted file mode 100644 index e0fe8aa2..00000000 --- a/vsts/vsts/work/v4_1/models/create_plan.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreatePlan(Model): - """CreatePlan. - - :param description: Description of the plan - :type description: str - :param name: Name of the plan to create. - :type name: str - :param properties: Plan properties. - :type properties: object - :param type: Type of plan to create. - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, properties=None, type=None): - super(CreatePlan, self).__init__() - self.description = description - self.name = name - self.properties = properties - self.type = type diff --git a/vsts/vsts/work/v4_1/models/date_range.py b/vsts/vsts/work/v4_1/models/date_range.py deleted file mode 100644 index 94694335..00000000 --- a/vsts/vsts/work/v4_1/models/date_range.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class DateRange(Model): - """DateRange. - - :param end: End of the date range. - :type end: datetime - :param start: Start of the date range. - :type start: datetime - """ - - _attribute_map = { - 'end': {'key': 'end', 'type': 'iso-8601'}, - 'start': {'key': 'start', 'type': 'iso-8601'} - } - - def __init__(self, end=None, start=None): - super(DateRange, self).__init__() - self.end = end - self.start = start diff --git a/vsts/vsts/work/v4_1/models/delivery_view_data.py b/vsts/vsts/work/v4_1/models/delivery_view_data.py deleted file mode 100644 index 24424d5f..00000000 --- a/vsts/vsts/work/v4_1/models/delivery_view_data.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .plan_view_data import PlanViewData - - -class DeliveryViewData(PlanViewData): - """DeliveryViewData. - - :param id: - :type id: str - :param revision: - :type revision: int - :param child_id_to_parent_id_map: Work item child id to parenet id map - :type child_id_to_parent_id_map: dict - :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` - :param end_date: The end date of the delivery view data - :type end_date: datetime - :param start_date: The start date for the delivery view data - :type start_date: datetime - :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'}, - 'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'teams': {'key': 'teams', 'type': '[TimelineTeamData]'} - } - - def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None): - super(DeliveryViewData, self).__init__(id=id, revision=revision) - self.child_id_to_parent_id_map = child_id_to_parent_id_map - self.criteria_status = criteria_status - self.end_date = end_date - self.start_date = start_date - self.teams = teams diff --git a/vsts/vsts/work/v4_1/models/field_reference.py b/vsts/vsts/work/v4_1/models/field_reference.py deleted file mode 100644 index 6741b93e..00000000 --- a/vsts/vsts/work/v4_1/models/field_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldReference(Model): - """FieldReference. - - :param reference_name: fieldRefName for the field - :type reference_name: str - :param url: Full http link to more information about the field - :type url: str - """ - - _attribute_map = { - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, reference_name=None, url=None): - super(FieldReference, self).__init__() - self.reference_name = reference_name - self.url = url diff --git a/vsts/vsts/work/v4_1/models/filter_clause.py b/vsts/vsts/work/v4_1/models/filter_clause.py deleted file mode 100644 index 1bb06642..00000000 --- a/vsts/vsts/work/v4_1/models/filter_clause.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FilterClause(Model): - """FilterClause. - - :param field_name: - :type field_name: str - :param index: - :type index: int - :param logical_operator: - :type logical_operator: str - :param operator: - :type operator: str - :param value: - :type value: str - """ - - _attribute_map = { - 'field_name': {'key': 'fieldName', 'type': 'str'}, - 'index': {'key': 'index', 'type': 'int'}, - 'logical_operator': {'key': 'logicalOperator', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None): - super(FilterClause, self).__init__() - self.field_name = field_name - self.index = index - self.logical_operator = logical_operator - self.operator = operator - self.value = value diff --git a/vsts/vsts/work/v4_1/models/graph_subject_base.py b/vsts/vsts/work/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/work/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/work/v4_1/models/identity_ref.py b/vsts/vsts/work/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/work/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/work/v4_1/models/iteration_work_items.py b/vsts/vsts/work/v4_1/models/iteration_work_items.py deleted file mode 100644 index 7fee83de..00000000 --- a/vsts/vsts/work/v4_1/models/iteration_work_items.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class IterationWorkItems(TeamSettingsDataContractBase): - """IterationWorkItems. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param work_item_relations: Work item relations - :type work_item_relations: list of :class:`WorkItemLink ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'} - } - - def __init__(self, _links=None, url=None, work_item_relations=None): - super(IterationWorkItems, self).__init__(_links=_links, url=url) - self.work_item_relations = work_item_relations diff --git a/vsts/vsts/work/v4_1/models/member.py b/vsts/vsts/work/v4_1/models/member.py deleted file mode 100644 index 27ca2b67..00000000 --- a/vsts/vsts/work/v4_1/models/member.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Member(Model): - """Member. - - :param display_name: - :type display_name: str - :param id: - :type id: str - :param image_url: - :type image_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'image_url': {'key': 'imageUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, display_name=None, id=None, image_url=None, unique_name=None, url=None): - super(Member, self).__init__() - self.display_name = display_name - self.id = id - self.image_url = image_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/work/v4_1/models/parent_child_wIMap.py b/vsts/vsts/work/v4_1/models/parent_child_wIMap.py deleted file mode 100644 index 87678f18..00000000 --- a/vsts/vsts/work/v4_1/models/parent_child_wIMap.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ParentChildWIMap(Model): - """ParentChildWIMap. - - :param child_work_item_ids: - :type child_work_item_ids: list of int - :param id: - :type id: int - :param title: - :type title: str - """ - - _attribute_map = { - 'child_work_item_ids': {'key': 'childWorkItemIds', 'type': '[int]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, child_work_item_ids=None, id=None, title=None): - super(ParentChildWIMap, self).__init__() - self.child_work_item_ids = child_work_item_ids - self.id = id - self.title = title diff --git a/vsts/vsts/work/v4_1/models/plan.py b/vsts/vsts/work/v4_1/models/plan.py deleted file mode 100644 index f86b5833..00000000 --- a/vsts/vsts/work/v4_1/models/plan.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Plan(Model): - """Plan. - - :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` - :param created_date: Date when the plan was created - :type created_date: datetime - :param description: Description of the plan - :type description: str - :param id: Id of the plan - :type id: str - :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` - :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. - :type modified_date: datetime - :param name: Name of the plan - :type name: str - :param properties: The PlanPropertyCollection instance associated with the plan. These are dependent on the type of the plan. For example, DeliveryTimelineView, it would be of type DeliveryViewPropertyCollection. - :type properties: object - :param revision: Revision of the plan. Used to safeguard users from overwriting each other's changes. - :type revision: int - :param type: Type of the plan - :type type: object - :param url: The resource url to locate the plan via rest api - :type url: str - :param user_permissions: Bit flag indicating set of permissions a user has to the plan. - :type user_permissions: object - """ - - _attribute_map = { - 'created_by_identity': {'key': 'createdByIdentity', 'type': 'IdentityRef'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'modified_by_identity': {'key': 'modifiedByIdentity', 'type': 'IdentityRef'}, - 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'user_permissions': {'key': 'userPermissions', 'type': 'object'} - } - - def __init__(self, created_by_identity=None, created_date=None, description=None, id=None, modified_by_identity=None, modified_date=None, name=None, properties=None, revision=None, type=None, url=None, user_permissions=None): - super(Plan, self).__init__() - self.created_by_identity = created_by_identity - self.created_date = created_date - self.description = description - self.id = id - self.modified_by_identity = modified_by_identity - self.modified_date = modified_date - self.name = name - self.properties = properties - self.revision = revision - self.type = type - self.url = url - self.user_permissions = user_permissions diff --git a/vsts/vsts/work/v4_1/models/plan_view_data.py b/vsts/vsts/work/v4_1/models/plan_view_data.py deleted file mode 100644 index fb99dc33..00000000 --- a/vsts/vsts/work/v4_1/models/plan_view_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PlanViewData(Model): - """PlanViewData. - - :param id: - :type id: str - :param revision: - :type revision: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, id=None, revision=None): - super(PlanViewData, self).__init__() - self.id = id - self.revision = revision diff --git a/vsts/vsts/work/v4_1/models/process_configuration.py b/vsts/vsts/work/v4_1/models/process_configuration.py deleted file mode 100644 index 5ca2d3e1..00000000 --- a/vsts/vsts/work/v4_1/models/process_configuration.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessConfiguration(Model): - """ProcessConfiguration. - - :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` - :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` - :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` - :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` - :param type_fields: Type fields for the process configuration - :type type_fields: dict - :param url: - :type url: str - """ - - _attribute_map = { - 'bug_work_items': {'key': 'bugWorkItems', 'type': 'CategoryConfiguration'}, - 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[CategoryConfiguration]'}, - 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'CategoryConfiguration'}, - 'task_backlog': {'key': 'taskBacklog', 'type': 'CategoryConfiguration'}, - 'type_fields': {'key': 'typeFields', 'type': '{WorkItemFieldReference}'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, bug_work_items=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, type_fields=None, url=None): - super(ProcessConfiguration, self).__init__() - self.bug_work_items = bug_work_items - self.portfolio_backlogs = portfolio_backlogs - self.requirement_backlog = requirement_backlog - self.task_backlog = task_backlog - self.type_fields = type_fields - self.url = url diff --git a/vsts/vsts/work/v4_1/models/reference_links.py b/vsts/vsts/work/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/work/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/work/v4_1/models/rule.py b/vsts/vsts/work/v4_1/models/rule.py deleted file mode 100644 index 82788cc2..00000000 --- a/vsts/vsts/work/v4_1/models/rule.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Rule(Model): - """Rule. - - :param clauses: - :type clauses: list of :class:`FilterClause ` - :param filter: - :type filter: str - :param is_enabled: - :type is_enabled: str - :param name: - :type name: str - :param settings: - :type settings: dict - """ - - _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, - 'filter': {'key': 'filter', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': '{str}'} - } - - def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None): - super(Rule, self).__init__() - self.clauses = clauses - self.filter = filter - self.is_enabled = is_enabled - self.name = name - self.settings = settings diff --git a/vsts/vsts/work/v4_1/models/team_context.py b/vsts/vsts/work/v4_1/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/work/v4_1/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/work/v4_1/models/team_field_value.py b/vsts/vsts/work/v4_1/models/team_field_value.py deleted file mode 100644 index 08d7ad84..00000000 --- a/vsts/vsts/work/v4_1/models/team_field_value.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamFieldValue(Model): - """TeamFieldValue. - - :param include_children: - :type include_children: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'include_children': {'key': 'includeChildren', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, include_children=None, value=None): - super(TeamFieldValue, self).__init__() - self.include_children = include_children - self.value = value diff --git a/vsts/vsts/work/v4_1/models/team_field_values.py b/vsts/vsts/work/v4_1/models/team_field_values.py deleted file mode 100644 index 12e5bec7..00000000 --- a/vsts/vsts/work/v4_1/models/team_field_values.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamFieldValues(TeamSettingsDataContractBase): - """TeamFieldValues. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param default_value: The default team field value - :type default_value: str - :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` - :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'field': {'key': 'field', 'type': 'FieldReference'}, - 'values': {'key': 'values', 'type': '[TeamFieldValue]'} - } - - def __init__(self, _links=None, url=None, default_value=None, field=None, values=None): - super(TeamFieldValues, self).__init__(_links=_links, url=url) - self.default_value = default_value - self.field = field - self.values = values diff --git a/vsts/vsts/work/v4_1/models/team_field_values_patch.py b/vsts/vsts/work/v4_1/models/team_field_values_patch.py deleted file mode 100644 index 68c735e9..00000000 --- a/vsts/vsts/work/v4_1/models/team_field_values_patch.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamFieldValuesPatch(Model): - """TeamFieldValuesPatch. - - :param default_value: - :type default_value: str - :param values: - :type values: list of :class:`TeamFieldValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[TeamFieldValue]'} - } - - def __init__(self, default_value=None, values=None): - super(TeamFieldValuesPatch, self).__init__() - self.default_value = default_value - self.values = values diff --git a/vsts/vsts/work/v4_1/models/team_iteration_attributes.py b/vsts/vsts/work/v4_1/models/team_iteration_attributes.py deleted file mode 100644 index 10427d6b..00000000 --- a/vsts/vsts/work/v4_1/models/team_iteration_attributes.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamIterationAttributes(Model): - """TeamIterationAttributes. - - :param finish_date: - :type finish_date: datetime - :param start_date: - :type start_date: datetime - :param time_frame: - :type time_frame: object - """ - - _attribute_map = { - 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'time_frame': {'key': 'timeFrame', 'type': 'object'} - } - - def __init__(self, finish_date=None, start_date=None, time_frame=None): - super(TeamIterationAttributes, self).__init__() - self.finish_date = finish_date - self.start_date = start_date - self.time_frame = time_frame diff --git a/vsts/vsts/work/v4_1/models/team_member_capacity.py b/vsts/vsts/work/v4_1/models/team_member_capacity.py deleted file mode 100644 index fd391fb8..00000000 --- a/vsts/vsts/work/v4_1/models/team_member_capacity.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamMemberCapacity(TeamSettingsDataContractBase): - """TeamMemberCapacity. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` - :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` - :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'activities': {'key': 'activities', 'type': '[Activity]'}, - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'}, - 'team_member': {'key': 'teamMember', 'type': 'Member'} - } - - def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None): - super(TeamMemberCapacity, self).__init__(_links=_links, url=url) - self.activities = activities - self.days_off = days_off - self.team_member = team_member diff --git a/vsts/vsts/work/v4_1/models/team_setting.py b/vsts/vsts/work/v4_1/models/team_setting.py deleted file mode 100644 index 8b0b0914..00000000 --- a/vsts/vsts/work/v4_1/models/team_setting.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamSetting(TeamSettingsDataContractBase): - """TeamSetting. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` - :param backlog_visibilities: Information about categories that are visible on the backlog. - :type backlog_visibilities: dict - :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) - :type bugs_behavior: object - :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` - :param default_iteration_macro: Default Iteration macro (if any) - :type default_iteration_macro: str - :param working_days: Days that the team is working - :type working_days: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'backlog_iteration': {'key': 'backlogIteration', 'type': 'TeamSettingsIteration'}, - 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, - 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, - 'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'}, - 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[object]'} - } - - def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): - super(TeamSetting, self).__init__(_links=_links, url=url) - self.backlog_iteration = backlog_iteration - self.backlog_visibilities = backlog_visibilities - self.bugs_behavior = bugs_behavior - self.default_iteration = default_iteration - self.default_iteration_macro = default_iteration_macro - self.working_days = working_days diff --git a/vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py b/vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py deleted file mode 100644 index a8a5e6f1..00000000 --- a/vsts/vsts/work/v4_1/models/team_settings_data_contract_base.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamSettingsDataContractBase(Model): - """TeamSettingsDataContractBase. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, url=None): - super(TeamSettingsDataContractBase, self).__init__() - self._links = _links - self.url = url diff --git a/vsts/vsts/work/v4_1/models/team_settings_days_off.py b/vsts/vsts/work/v4_1/models/team_settings_days_off.py deleted file mode 100644 index 947095d0..00000000 --- a/vsts/vsts/work/v4_1/models/team_settings_days_off.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamSettingsDaysOff(TeamSettingsDataContractBase): - """TeamSettingsDaysOff. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param days_off: - :type days_off: list of :class:`DateRange ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} - } - - def __init__(self, _links=None, url=None, days_off=None): - super(TeamSettingsDaysOff, self).__init__(_links=_links, url=url) - self.days_off = days_off diff --git a/vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py b/vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py deleted file mode 100644 index 4e669e6d..00000000 --- a/vsts/vsts/work/v4_1/models/team_settings_days_off_patch.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamSettingsDaysOffPatch(Model): - """TeamSettingsDaysOffPatch. - - :param days_off: - :type days_off: list of :class:`DateRange ` - """ - - _attribute_map = { - 'days_off': {'key': 'daysOff', 'type': '[DateRange]'} - } - - def __init__(self, days_off=None): - super(TeamSettingsDaysOffPatch, self).__init__() - self.days_off = days_off diff --git a/vsts/vsts/work/v4_1/models/team_settings_iteration.py b/vsts/vsts/work/v4_1/models/team_settings_iteration.py deleted file mode 100644 index 6fa928c6..00000000 --- a/vsts/vsts/work/v4_1/models/team_settings_iteration.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .team_settings_data_contract_base import TeamSettingsDataContractBase - - -class TeamSettingsIteration(TeamSettingsDataContractBase): - """TeamSettingsIteration. - - :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` - :param url: Full http link to the resource - :type url: str - :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` - :param id: Id of the resource - :type id: str - :param name: Name of the resource - :type name: str - :param path: Relative path of the iteration - :type path: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'url': {'key': 'url', 'type': 'str'}, - 'attributes': {'key': 'attributes', 'type': 'TeamIterationAttributes'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, _links=None, url=None, attributes=None, id=None, name=None, path=None): - super(TeamSettingsIteration, self).__init__(_links=_links, url=url) - self.attributes = attributes - self.id = id - self.name = name - self.path = path diff --git a/vsts/vsts/work/v4_1/models/team_settings_patch.py b/vsts/vsts/work/v4_1/models/team_settings_patch.py deleted file mode 100644 index e80371d6..00000000 --- a/vsts/vsts/work/v4_1/models/team_settings_patch.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamSettingsPatch(Model): - """TeamSettingsPatch. - - :param backlog_iteration: - :type backlog_iteration: str - :param backlog_visibilities: - :type backlog_visibilities: dict - :param bugs_behavior: - :type bugs_behavior: object - :param default_iteration: - :type default_iteration: str - :param default_iteration_macro: - :type default_iteration_macro: str - :param working_days: - :type working_days: list of str - """ - - _attribute_map = { - 'backlog_iteration': {'key': 'backlogIteration', 'type': 'str'}, - 'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'}, - 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, - 'default_iteration': {'key': 'defaultIteration', 'type': 'str'}, - 'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'}, - 'working_days': {'key': 'workingDays', 'type': '[object]'} - } - - def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None): - super(TeamSettingsPatch, self).__init__() - self.backlog_iteration = backlog_iteration - self.backlog_visibilities = backlog_visibilities - self.bugs_behavior = bugs_behavior - self.default_iteration = default_iteration - self.default_iteration_macro = default_iteration_macro - self.working_days = working_days diff --git a/vsts/vsts/work/v4_1/models/timeline_criteria_status.py b/vsts/vsts/work/v4_1/models/timeline_criteria_status.py deleted file mode 100644 index d34fc208..00000000 --- a/vsts/vsts/work/v4_1/models/timeline_criteria_status.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineCriteriaStatus(Model): - """TimelineCriteriaStatus. - - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, type=None): - super(TimelineCriteriaStatus, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/work/v4_1/models/timeline_iteration_status.py b/vsts/vsts/work/v4_1/models/timeline_iteration_status.py deleted file mode 100644 index 56ad40fb..00000000 --- a/vsts/vsts/work/v4_1/models/timeline_iteration_status.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineIterationStatus(Model): - """TimelineIterationStatus. - - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, type=None): - super(TimelineIterationStatus, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/work/v4_1/models/timeline_team_data.py b/vsts/vsts/work/v4_1/models/timeline_team_data.py deleted file mode 100644 index c05a77f5..00000000 --- a/vsts/vsts/work/v4_1/models/timeline_team_data.py +++ /dev/null @@ -1,77 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineTeamData(Model): - """TimelineTeamData. - - :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` - :param field_reference_names: The field reference names of the work item data - :type field_reference_names: list of str - :param id: The id of the team - :type id: str - :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. - :type is_expanded: bool - :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` - :param name: The name of the team - :type name: str - :param order_by_field: The order by field name of this team - :type order_by_field: str - :param partially_paged_field_reference_names: The field reference names of the partially paged work items, such as ID, WorkItemType - :type partially_paged_field_reference_names: list of str - :param project_id: The project id the team belongs team - :type project_id: str - :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` - :param team_field_default_value: The team field default value - :type team_field_default_value: str - :param team_field_name: The team field name of this team - :type team_field_name: str - :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` - :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` - """ - - _attribute_map = { - 'backlog': {'key': 'backlog', 'type': 'BacklogLevel'}, - 'field_reference_names': {'key': 'fieldReferenceNames', 'type': '[str]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_expanded': {'key': 'isExpanded', 'type': 'bool'}, - 'iterations': {'key': 'iterations', 'type': '[TimelineTeamIteration]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order_by_field': {'key': 'orderByField', 'type': 'str'}, - 'partially_paged_field_reference_names': {'key': 'partiallyPagedFieldReferenceNames', 'type': '[str]'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'TimelineTeamStatus'}, - 'team_field_default_value': {'key': 'teamFieldDefaultValue', 'type': 'str'}, - 'team_field_name': {'key': 'teamFieldName', 'type': 'str'}, - 'team_field_values': {'key': 'teamFieldValues', 'type': '[TeamFieldValue]'}, - 'work_item_type_colors': {'key': 'workItemTypeColors', 'type': '[WorkItemColor]'} - } - - def __init__(self, backlog=None, field_reference_names=None, id=None, is_expanded=None, iterations=None, name=None, order_by_field=None, partially_paged_field_reference_names=None, project_id=None, status=None, team_field_default_value=None, team_field_name=None, team_field_values=None, work_item_type_colors=None): - super(TimelineTeamData, self).__init__() - self.backlog = backlog - self.field_reference_names = field_reference_names - self.id = id - self.is_expanded = is_expanded - self.iterations = iterations - self.name = name - self.order_by_field = order_by_field - self.partially_paged_field_reference_names = partially_paged_field_reference_names - self.project_id = project_id - self.status = status - self.team_field_default_value = team_field_default_value - self.team_field_name = team_field_name - self.team_field_values = team_field_values - self.work_item_type_colors = work_item_type_colors diff --git a/vsts/vsts/work/v4_1/models/timeline_team_iteration.py b/vsts/vsts/work/v4_1/models/timeline_team_iteration.py deleted file mode 100644 index bd289370..00000000 --- a/vsts/vsts/work/v4_1/models/timeline_team_iteration.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineTeamIteration(Model): - """TimelineTeamIteration. - - :param finish_date: The end date of the iteration - :type finish_date: datetime - :param name: The iteration name - :type name: str - :param partially_paged_work_items: All the partially paged workitems in this iteration. - :type partially_paged_work_items: list of [object] - :param path: The iteration path - :type path: str - :param start_date: The start date of the iteration - :type start_date: datetime - :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` - :param work_items: The work items that have been paged in this iteration - :type work_items: list of [object] - """ - - _attribute_map = { - 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'partially_paged_work_items': {'key': 'partiallyPagedWorkItems', 'type': '[[object]]'}, - 'path': {'key': 'path', 'type': 'str'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'TimelineIterationStatus'}, - 'work_items': {'key': 'workItems', 'type': '[[object]]'} - } - - def __init__(self, finish_date=None, name=None, partially_paged_work_items=None, path=None, start_date=None, status=None, work_items=None): - super(TimelineTeamIteration, self).__init__() - self.finish_date = finish_date - self.name = name - self.partially_paged_work_items = partially_paged_work_items - self.path = path - self.start_date = start_date - self.status = status - self.work_items = work_items diff --git a/vsts/vsts/work/v4_1/models/timeline_team_status.py b/vsts/vsts/work/v4_1/models/timeline_team_status.py deleted file mode 100644 index ba0e89d1..00000000 --- a/vsts/vsts/work/v4_1/models/timeline_team_status.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TimelineTeamStatus(Model): - """TimelineTeamStatus. - - :param message: - :type message: str - :param type: - :type type: object - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, message=None, type=None): - super(TimelineTeamStatus, self).__init__() - self.message = message - self.type = type diff --git a/vsts/vsts/work/v4_1/models/update_plan.py b/vsts/vsts/work/v4_1/models/update_plan.py deleted file mode 100644 index 901ad0ed..00000000 --- a/vsts/vsts/work/v4_1/models/update_plan.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdatePlan(Model): - """UpdatePlan. - - :param description: Description of the plan - :type description: str - :param name: Name of the plan to create. - :type name: str - :param properties: Plan properties. - :type properties: object - :param revision: Revision of the plan that was updated - the value used here should match the one the server gave the client in the Plan. - :type revision: int - :param type: Type of the plan - :type type: object - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, description=None, name=None, properties=None, revision=None, type=None): - super(UpdatePlan, self).__init__() - self.description = description - self.name = name - self.properties = properties - self.revision = revision - self.type = type diff --git a/vsts/vsts/work/v4_1/models/work_item_color.py b/vsts/vsts/work/v4_1/models/work_item_color.py deleted file mode 100644 index 7d2c9de7..00000000 --- a/vsts/vsts/work/v4_1/models/work_item_color.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemColor(Model): - """WorkItemColor. - - :param icon: - :type icon: str - :param primary_color: - :type primary_color: str - :param work_item_type_name: - :type work_item_type_name: str - """ - - _attribute_map = { - 'icon': {'key': 'icon', 'type': 'str'}, - 'primary_color': {'key': 'primaryColor', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, icon=None, primary_color=None, work_item_type_name=None): - super(WorkItemColor, self).__init__() - self.icon = icon - self.primary_color = primary_color - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work/v4_1/models/work_item_field_reference.py b/vsts/vsts/work/v4_1/models/work_item_field_reference.py deleted file mode 100644 index 29ebbbf2..00000000 --- a/vsts/vsts/work/v4_1/models/work_item_field_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldReference(Model): - """WorkItemFieldReference. - - :param name: The name of the field. - :type name: str - :param reference_name: The reference name of the field. - :type reference_name: str - :param url: The REST URL of the resource. - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None, url=None): - super(WorkItemFieldReference, self).__init__() - self.name = name - self.reference_name = reference_name - self.url = url diff --git a/vsts/vsts/work/v4_1/models/work_item_link.py b/vsts/vsts/work/v4_1/models/work_item_link.py deleted file mode 100644 index 1ad7bd5b..00000000 --- a/vsts/vsts/work/v4_1/models/work_item_link.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemLink(Model): - """WorkItemLink. - - :param rel: The type of link. - :type rel: str - :param source: The source work item. - :type source: :class:`WorkItemReference ` - :param target: The target work item. - :type target: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'rel': {'key': 'rel', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'WorkItemReference'}, - 'target': {'key': 'target', 'type': 'WorkItemReference'} - } - - def __init__(self, rel=None, source=None, target=None): - super(WorkItemLink, self).__init__() - self.rel = rel - self.source = source - self.target = target diff --git a/vsts/vsts/work/v4_1/models/work_item_reference.py b/vsts/vsts/work/v4_1/models/work_item_reference.py deleted file mode 100644 index 748e2243..00000000 --- a/vsts/vsts/work/v4_1/models/work_item_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemReference(Model): - """WorkItemReference. - - :param id: Work item ID. - :type id: int - :param url: REST API URL of the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py b/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py deleted file mode 100644 index de9a728b..00000000 --- a/vsts/vsts/work/v4_1/models/work_item_tracking_resource_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTrackingResourceReference(Model): - """WorkItemTrackingResourceReference. - - :param url: - :type url: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, url=None): - super(WorkItemTrackingResourceReference, self).__init__() - self.url = url diff --git a/vsts/vsts/work/v4_1/models/work_item_type_reference.py b/vsts/vsts/work/v4_1/models/work_item_type_reference.py deleted file mode 100644 index 8757dc1d..00000000 --- a/vsts/vsts/work/v4_1/models/work_item_type_reference.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference - - -class WorkItemTypeReference(WorkItemTrackingResourceReference): - """WorkItemTypeReference. - - :param url: - :type url: str - :param name: Name of the work item type. - :type name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, url=None, name=None): - super(WorkItemTypeReference, self).__init__(url=url) - self.name = name diff --git a/vsts/vsts/work/v4_1/models/work_item_type_state_info.py b/vsts/vsts/work/v4_1/models/work_item_type_state_info.py deleted file mode 100644 index 7ff5045e..00000000 --- a/vsts/vsts/work/v4_1/models/work_item_type_state_info.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeStateInfo(Model): - """WorkItemTypeStateInfo. - - :param states: State name to state category map - :type states: dict - :param work_item_type_name: Work Item type name - :type work_item_type_name: str - """ - - _attribute_map = { - 'states': {'key': 'states', 'type': '{str}'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, states=None, work_item_type_name=None): - super(WorkItemTypeStateInfo, self).__init__() - self.states = states - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/__init__.py b/vsts/vsts/work_item_tracking/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/work_item_tracking/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking/v4_0/__init__.py b/vsts/vsts/work_item_tracking/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking/v4_0/models/__init__.py b/vsts/vsts/work_item_tracking/v4_0/models/__init__.py deleted file mode 100644 index be116758..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/__init__.py +++ /dev/null @@ -1,141 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .account_my_work_result import AccountMyWorkResult -from .account_recent_activity_work_item_model import AccountRecentActivityWorkItemModel -from .account_recent_mention_work_item_model import AccountRecentMentionWorkItemModel -from .account_work_work_item_model import AccountWorkWorkItemModel -from .artifact_uri_query import ArtifactUriQuery -from .artifact_uri_query_result import ArtifactUriQueryResult -from .attachment_reference import AttachmentReference -from .field_dependent_rule import FieldDependentRule -from .fields_to_evaluate import FieldsToEvaluate -from .identity_ref import IdentityRef -from .identity_reference import IdentityReference -from .json_patch_operation import JsonPatchOperation -from .link import Link -from .project_work_item_state_colors import ProjectWorkItemStateColors -from .provisioning_result import ProvisioningResult -from .query_hierarchy_item import QueryHierarchyItem -from .query_hierarchy_items_result import QueryHierarchyItemsResult -from .reference_links import ReferenceLinks -from .reporting_work_item_link import ReportingWorkItemLink -from .reporting_work_item_links_batch import ReportingWorkItemLinksBatch -from .reporting_work_item_revisions_batch import ReportingWorkItemRevisionsBatch -from .reporting_work_item_revisions_filter import ReportingWorkItemRevisionsFilter -from .streamed_batch import StreamedBatch -from .team_context import TeamContext -from .wiql import Wiql -from .work_artifact_link import WorkArtifactLink -from .work_item import WorkItem -from .work_item_classification_node import WorkItemClassificationNode -from .work_item_comment import WorkItemComment -from .work_item_comments import WorkItemComments -from .work_item_delete import WorkItemDelete -from .work_item_delete_reference import WorkItemDeleteReference -from .work_item_delete_shallow_reference import WorkItemDeleteShallowReference -from .work_item_delete_update import WorkItemDeleteUpdate -from .work_item_field import WorkItemField -from .work_item_field_operation import WorkItemFieldOperation -from .work_item_field_reference import WorkItemFieldReference -from .work_item_field_update import WorkItemFieldUpdate -from .work_item_history import WorkItemHistory -from .work_item_icon import WorkItemIcon -from .work_item_link import WorkItemLink -from .work_item_query_clause import WorkItemQueryClause -from .work_item_query_result import WorkItemQueryResult -from .work_item_query_sort_column import WorkItemQuerySortColumn -from .work_item_reference import WorkItemReference -from .work_item_relation import WorkItemRelation -from .work_item_relation_type import WorkItemRelationType -from .work_item_relation_updates import WorkItemRelationUpdates -from .work_item_state_color import WorkItemStateColor -from .work_item_state_transition import WorkItemStateTransition -from .work_item_template import WorkItemTemplate -from .work_item_template_reference import WorkItemTemplateReference -from .work_item_tracking_reference import WorkItemTrackingReference -from .work_item_tracking_resource import WorkItemTrackingResource -from .work_item_tracking_resource_reference import WorkItemTrackingResourceReference -from .work_item_type import WorkItemType -from .work_item_type_category import WorkItemTypeCategory -from .work_item_type_color import WorkItemTypeColor -from .work_item_type_color_and_icon import WorkItemTypeColorAndIcon -from .work_item_type_field_instance import WorkItemTypeFieldInstance -from .work_item_type_reference import WorkItemTypeReference -from .work_item_type_state_colors import WorkItemTypeStateColors -from .work_item_type_template import WorkItemTypeTemplate -from .work_item_type_template_update_model import WorkItemTypeTemplateUpdateModel -from .work_item_update import WorkItemUpdate - -__all__ = [ - 'AccountMyWorkResult', - 'AccountRecentActivityWorkItemModel', - 'AccountRecentMentionWorkItemModel', - 'AccountWorkWorkItemModel', - 'ArtifactUriQuery', - 'ArtifactUriQueryResult', - 'AttachmentReference', - 'FieldDependentRule', - 'FieldsToEvaluate', - 'IdentityRef', - 'IdentityReference', - 'JsonPatchOperation', - 'Link', - 'ProjectWorkItemStateColors', - 'ProvisioningResult', - 'QueryHierarchyItem', - 'QueryHierarchyItemsResult', - 'ReferenceLinks', - 'ReportingWorkItemLink', - 'ReportingWorkItemLinksBatch', - 'ReportingWorkItemRevisionsBatch', - 'ReportingWorkItemRevisionsFilter', - 'StreamedBatch', - 'TeamContext', - 'Wiql', - 'WorkArtifactLink', - 'WorkItem', - 'WorkItemClassificationNode', - 'WorkItemComment', - 'WorkItemComments', - 'WorkItemDelete', - 'WorkItemDeleteReference', - 'WorkItemDeleteShallowReference', - 'WorkItemDeleteUpdate', - 'WorkItemField', - 'WorkItemFieldOperation', - 'WorkItemFieldReference', - 'WorkItemFieldUpdate', - 'WorkItemHistory', - 'WorkItemIcon', - 'WorkItemLink', - 'WorkItemQueryClause', - 'WorkItemQueryResult', - 'WorkItemQuerySortColumn', - 'WorkItemReference', - 'WorkItemRelation', - 'WorkItemRelationType', - 'WorkItemRelationUpdates', - 'WorkItemStateColor', - 'WorkItemStateTransition', - 'WorkItemTemplate', - 'WorkItemTemplateReference', - 'WorkItemTrackingReference', - 'WorkItemTrackingResource', - 'WorkItemTrackingResourceReference', - 'WorkItemType', - 'WorkItemTypeCategory', - 'WorkItemTypeColor', - 'WorkItemTypeColorAndIcon', - 'WorkItemTypeFieldInstance', - 'WorkItemTypeReference', - 'WorkItemTypeStateColors', - 'WorkItemTypeTemplate', - 'WorkItemTypeTemplateUpdateModel', - 'WorkItemUpdate', -] diff --git a/vsts/vsts/work_item_tracking/v4_0/models/account_my_work_result.py b/vsts/vsts/work_item_tracking/v4_0/models/account_my_work_result.py deleted file mode 100644 index b11684b7..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/account_my_work_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountMyWorkResult(Model): - """AccountMyWorkResult. - - :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit - :type query_size_limit_exceeded: bool - :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` - """ - - _attribute_map = { - 'query_size_limit_exceeded': {'key': 'querySizeLimitExceeded', 'type': 'bool'}, - 'work_item_details': {'key': 'workItemDetails', 'type': '[AccountWorkWorkItemModel]'} - } - - def __init__(self, query_size_limit_exceeded=None, work_item_details=None): - super(AccountMyWorkResult, self).__init__() - self.query_size_limit_exceeded = query_size_limit_exceeded - self.work_item_details = work_item_details diff --git a/vsts/vsts/work_item_tracking/v4_0/models/account_recent_activity_work_item_model.py b/vsts/vsts/work_item_tracking/v4_0/models/account_recent_activity_work_item_model.py deleted file mode 100644 index ac42f453..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/account_recent_activity_work_item_model.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountRecentActivityWorkItemModel(Model): - """AccountRecentActivityWorkItemModel. - - :param activity_date: Date of the last Activity by the user - :type activity_date: datetime - :param activity_type: Type of the activity - :type activity_type: object - :param assigned_to: Assigned To - :type assigned_to: str - :param changed_date: Last changed date of the work item - :type changed_date: datetime - :param id: Work Item Id - :type id: int - :param identity_id: TeamFoundationId of the user this activity belongs to - :type identity_id: str - :param state: State of the work item - :type state: str - :param team_project: Team project the work item belongs to - :type team_project: str - :param title: Title of the work item - :type title: str - :param work_item_type: Type of Work Item - :type work_item_type: str - """ - - _attribute_map = { - 'activity_date': {'key': 'activityDate', 'type': 'iso-8601'}, - 'activity_type': {'key': 'activityType', 'type': 'object'}, - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'identity_id': {'key': 'identityId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'team_project': {'key': 'teamProject', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, activity_date=None, activity_type=None, assigned_to=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None): - super(AccountRecentActivityWorkItemModel, self).__init__() - self.activity_date = activity_date - self.activity_type = activity_type - self.assigned_to = assigned_to - self.changed_date = changed_date - self.id = id - self.identity_id = identity_id - self.state = state - self.team_project = team_project - self.title = title - self.work_item_type = work_item_type diff --git a/vsts/vsts/work_item_tracking/v4_0/models/account_recent_mention_work_item_model.py b/vsts/vsts/work_item_tracking/v4_0/models/account_recent_mention_work_item_model.py deleted file mode 100644 index cd9bd1d4..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/account_recent_mention_work_item_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountRecentMentionWorkItemModel(Model): - """AccountRecentMentionWorkItemModel. - - :param assigned_to: Assigned To - :type assigned_to: str - :param id: Work Item Id - :type id: int - :param mentioned_date_field: Lastest date that the user were mentioned - :type mentioned_date_field: datetime - :param state: State of the work item - :type state: str - :param team_project: Team project the work item belongs to - :type team_project: str - :param title: Title of the work item - :type title: str - :param work_item_type: Type of Work Item - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'mentioned_date_field': {'key': 'mentionedDateField', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'team_project': {'key': 'teamProject', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, mentioned_date_field=None, state=None, team_project=None, title=None, work_item_type=None): - super(AccountRecentMentionWorkItemModel, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.mentioned_date_field = mentioned_date_field - self.state = state - self.team_project = team_project - self.title = title - self.work_item_type = work_item_type diff --git a/vsts/vsts/work_item_tracking/v4_0/models/account_work_work_item_model.py b/vsts/vsts/work_item_tracking/v4_0/models/account_work_work_item_model.py deleted file mode 100644 index 6cb04c84..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/account_work_work_item_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountWorkWorkItemModel(Model): - """AccountWorkWorkItemModel. - - :param assigned_to: - :type assigned_to: str - :param changed_date: - :type changed_date: datetime - :param id: - :type id: int - :param state: - :type state: str - :param team_project: - :type team_project: str - :param title: - :type title: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'team_project': {'key': 'teamProject', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, changed_date=None, id=None, state=None, team_project=None, title=None, work_item_type=None): - super(AccountWorkWorkItemModel, self).__init__() - self.assigned_to = assigned_to - self.changed_date = changed_date - self.id = id - self.state = state - self.team_project = team_project - self.title = title - self.work_item_type = work_item_type diff --git a/vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query.py b/vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query.py deleted file mode 100644 index 227aa0b6..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactUriQuery(Model): - """ArtifactUriQuery. - - :param artifact_uris: - :type artifact_uris: list of str - """ - - _attribute_map = { - 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'} - } - - def __init__(self, artifact_uris=None): - super(ArtifactUriQuery, self).__init__() - self.artifact_uris = artifact_uris diff --git a/vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query_result.py b/vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query_result.py deleted file mode 100644 index a7d9b67f..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/artifact_uri_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactUriQueryResult(Model): - """ArtifactUriQueryResult. - - :param artifact_uris_query_result: - :type artifact_uris_query_result: dict - """ - - _attribute_map = { - 'artifact_uris_query_result': {'key': 'artifactUrisQueryResult', 'type': '{[WorkItemReference]}'} - } - - def __init__(self, artifact_uris_query_result=None): - super(ArtifactUriQueryResult, self).__init__() - self.artifact_uris_query_result = artifact_uris_query_result diff --git a/vsts/vsts/work_item_tracking/v4_0/models/attachment_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/attachment_reference.py deleted file mode 100644 index b05f6c11..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/attachment_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AttachmentReference(Model): - """AttachmentReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(AttachmentReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/field_dependent_rule.py b/vsts/vsts/work_item_tracking/v4_0/models/field_dependent_rule.py deleted file mode 100644 index 9f83c976..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/field_dependent_rule.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class FieldDependentRule(WorkItemTrackingResource): - """FieldDependentRule. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param dependent_fields: - :type dependent_fields: list of :class:`WorkItemFieldReference ` - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'} - } - - def __init__(self, url=None, _links=None, dependent_fields=None): - super(FieldDependentRule, self).__init__(url=url, _links=_links) - self.dependent_fields = dependent_fields diff --git a/vsts/vsts/work_item_tracking/v4_0/models/fields_to_evaluate.py b/vsts/vsts/work_item_tracking/v4_0/models/fields_to_evaluate.py deleted file mode 100644 index b0c3cb2c..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/fields_to_evaluate.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldsToEvaluate(Model): - """FieldsToEvaluate. - - :param fields: - :type fields: list of str - :param field_updates: - :type field_updates: dict - :param field_values: - :type field_values: dict - :param rules_from: - :type rules_from: list of str - """ - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[str]'}, - 'field_updates': {'key': 'fieldUpdates', 'type': '{object}'}, - 'field_values': {'key': 'fieldValues', 'type': '{object}'}, - 'rules_from': {'key': 'rulesFrom', 'type': '[str]'} - } - - def __init__(self, fields=None, field_updates=None, field_values=None, rules_from=None): - super(FieldsToEvaluate, self).__init__() - self.fields = fields - self.field_updates = field_updates - self.field_values = field_values - self.rules_from = rules_from diff --git a/vsts/vsts/work_item_tracking/v4_0/models/identity_ref.py b/vsts/vsts/work_item_tracking/v4_0/models/identity_ref.py deleted file mode 100644 index 40c776c5..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/identity_ref.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/identity_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/identity_reference.py deleted file mode 100644 index 29c2e6ee..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/identity_reference.py +++ /dev/null @@ -1,56 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_ref import IdentityRef - - -class IdentityReference(IdentityRef): - """IdentityReference. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - :param id: - :type id: str - :param name: Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version - :type name: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, id=None, name=None): - super(IdentityReference, self).__init__(directory_alias=directory_alias, display_name=display_name, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) - self.id = id - self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/json_patch_operation.py b/vsts/vsts/work_item_tracking/v4_0/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_0/models/link.py b/vsts/vsts/work_item_tracking/v4_0/models/link.py deleted file mode 100644 index 3de1815d..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/link.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Link(Model): - """Link. - - :param attributes: - :type attributes: dict - :param rel: - :type rel: str - :param url: - :type url: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, attributes=None, rel=None, url=None): - super(Link, self).__init__() - self.attributes = attributes - self.rel = rel - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/project_work_item_state_colors.py b/vsts/vsts/work_item_tracking/v4_0/models/project_work_item_state_colors.py deleted file mode 100644 index 31111254..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/project_work_item_state_colors.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectWorkItemStateColors(Model): - """ProjectWorkItemStateColors. - - :param project_name: Project name - :type project_name: str - :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` - """ - - _attribute_map = { - 'project_name': {'key': 'projectName', 'type': 'str'}, - 'work_item_type_state_colors': {'key': 'workItemTypeStateColors', 'type': '[WorkItemTypeStateColors]'} - } - - def __init__(self, project_name=None, work_item_type_state_colors=None): - super(ProjectWorkItemStateColors, self).__init__() - self.project_name = project_name - self.work_item_type_state_colors = work_item_type_state_colors diff --git a/vsts/vsts/work_item_tracking/v4_0/models/provisioning_result.py b/vsts/vsts/work_item_tracking/v4_0/models/provisioning_result.py deleted file mode 100644 index 983ec8e5..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/provisioning_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProvisioningResult(Model): - """ProvisioningResult. - - :param provisioning_import_events: - :type provisioning_import_events: list of str - """ - - _attribute_map = { - 'provisioning_import_events': {'key': 'provisioningImportEvents', 'type': '[str]'} - } - - def __init__(self, provisioning_import_events=None): - super(ProvisioningResult, self).__init__() - self.provisioning_import_events = provisioning_import_events diff --git a/vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_item.py b/vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_item.py deleted file mode 100644 index b0c0dc3f..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_item.py +++ /dev/null @@ -1,115 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class QueryHierarchyItem(WorkItemTrackingResource): - """QueryHierarchyItem. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param children: - :type children: list of :class:`QueryHierarchyItem ` - :param clauses: - :type clauses: :class:`WorkItemQueryClause ` - :param columns: - :type columns: list of :class:`WorkItemFieldReference ` - :param created_by: - :type created_by: :class:`IdentityReference ` - :param created_date: - :type created_date: datetime - :param filter_options: - :type filter_options: object - :param has_children: - :type has_children: bool - :param id: - :type id: str - :param is_deleted: - :type is_deleted: bool - :param is_folder: - :type is_folder: bool - :param is_invalid_syntax: - :type is_invalid_syntax: bool - :param is_public: - :type is_public: bool - :param last_modified_by: - :type last_modified_by: :class:`IdentityReference ` - :param last_modified_date: - :type last_modified_date: datetime - :param link_clauses: - :type link_clauses: :class:`WorkItemQueryClause ` - :param name: - :type name: str - :param path: - :type path: str - :param query_type: - :type query_type: object - :param sort_columns: - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param source_clauses: - :type source_clauses: :class:`WorkItemQueryClause ` - :param target_clauses: - :type target_clauses: :class:`WorkItemQueryClause ` - :param wiql: - :type wiql: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'children': {'key': 'children', 'type': '[QueryHierarchyItem]'}, - 'clauses': {'key': 'clauses', 'type': 'WorkItemQueryClause'}, - 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityReference'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'filter_options': {'key': 'filterOptions', 'type': 'object'}, - 'has_children': {'key': 'hasChildren', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_invalid_syntax': {'key': 'isInvalidSyntax', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityReference'}, - 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, - 'link_clauses': {'key': 'linkClauses', 'type': 'WorkItemQueryClause'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'query_type': {'key': 'queryType', 'type': 'object'}, - 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, - 'source_clauses': {'key': 'sourceClauses', 'type': 'WorkItemQueryClause'}, - 'target_clauses': {'key': 'targetClauses', 'type': 'WorkItemQueryClause'}, - 'wiql': {'key': 'wiql', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): - super(QueryHierarchyItem, self).__init__(url=url, _links=_links) - self.children = children - self.clauses = clauses - self.columns = columns - self.created_by = created_by - self.created_date = created_date - self.filter_options = filter_options - self.has_children = has_children - self.id = id - self.is_deleted = is_deleted - self.is_folder = is_folder - self.is_invalid_syntax = is_invalid_syntax - self.is_public = is_public - self.last_modified_by = last_modified_by - self.last_modified_date = last_modified_date - self.link_clauses = link_clauses - self.name = name - self.path = path - self.query_type = query_type - self.sort_columns = sort_columns - self.source_clauses = source_clauses - self.target_clauses = target_clauses - self.wiql = wiql diff --git a/vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_items_result.py b/vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_items_result.py deleted file mode 100644 index 76f1d64a..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/query_hierarchy_items_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueryHierarchyItemsResult(Model): - """QueryHierarchyItemsResult. - - :param count: - :type count: int - :param has_more: - :type has_more: bool - :param value: - :type value: list of :class:`QueryHierarchyItem ` - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'has_more': {'key': 'hasMore', 'type': 'bool'}, - 'value': {'key': 'value', 'type': '[QueryHierarchyItem]'} - } - - def __init__(self, count=None, has_more=None, value=None): - super(QueryHierarchyItemsResult, self).__init__() - self.count = count - self.has_more = has_more - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_0/models/reference_links.py b/vsts/vsts/work_item_tracking/v4_0/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_link.py b/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_link.py deleted file mode 100644 index def0a49d..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_link.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReportingWorkItemLink(Model): - """ReportingWorkItemLink. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param changed_operation: - :type changed_operation: object - :param comment: - :type comment: str - :param is_active: - :type is_active: bool - :param link_type: - :type link_type: str - :param rel: - :type rel: str - :param source_id: - :type source_id: int - :param target_id: - :type target_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'changed_operation': {'key': 'changedOperation', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'link_type': {'key': 'linkType', 'type': 'str'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'int'}, - 'target_id': {'key': 'targetId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, changed_operation=None, comment=None, is_active=None, link_type=None, rel=None, source_id=None, target_id=None): - super(ReportingWorkItemLink, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.changed_operation = changed_operation - self.comment = comment - self.is_active = is_active - self.link_type = link_type - self.rel = rel - self.source_id = source_id - self.target_id = target_id diff --git a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_links_batch.py b/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_links_batch.py deleted file mode 100644 index 525223a2..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_links_batch.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .streamed_batch import StreamedBatch - - -class ReportingWorkItemLinksBatch(StreamedBatch): - """ReportingWorkItemLinksBatch. - - """ - - _attribute_map = { - } - - def __init__(self): - super(ReportingWorkItemLinksBatch, self).__init__() diff --git a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_batch.py b/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_batch.py deleted file mode 100644 index 5c401a3d..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_batch.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .streamed_batch import StreamedBatch - - -class ReportingWorkItemRevisionsBatch(StreamedBatch): - """ReportingWorkItemRevisionsBatch. - - """ - - _attribute_map = { - } - - def __init__(self): - super(ReportingWorkItemRevisionsBatch, self).__init__() diff --git a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_filter.py b/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_filter.py deleted file mode 100644 index be8e5148..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/reporting_work_item_revisions_filter.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReportingWorkItemRevisionsFilter(Model): - """ReportingWorkItemRevisionsFilter. - - :param fields: A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. - :type fields: list of str - :param include_deleted: Include deleted work item in the result. - :type include_deleted: bool - :param include_identity_ref: Return an identity reference instead of a string value for identity fields. - :type include_identity_ref: bool - :param include_latest_only: Include only the latest version of a work item, skipping over all previous revisions of the work item. - :type include_latest_only: bool - :param include_tag_ref: Include tag reference instead of string value for System.Tags field - :type include_tag_ref: bool - :param types: A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. - :type types: list of str - """ - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[str]'}, - 'include_deleted': {'key': 'includeDeleted', 'type': 'bool'}, - 'include_identity_ref': {'key': 'includeIdentityRef', 'type': 'bool'}, - 'include_latest_only': {'key': 'includeLatestOnly', 'type': 'bool'}, - 'include_tag_ref': {'key': 'includeTagRef', 'type': 'bool'}, - 'types': {'key': 'types', 'type': '[str]'} - } - - def __init__(self, fields=None, include_deleted=None, include_identity_ref=None, include_latest_only=None, include_tag_ref=None, types=None): - super(ReportingWorkItemRevisionsFilter, self).__init__() - self.fields = fields - self.include_deleted = include_deleted - self.include_identity_ref = include_identity_ref - self.include_latest_only = include_latest_only - self.include_tag_ref = include_tag_ref - self.types = types diff --git a/vsts/vsts/work_item_tracking/v4_0/models/streamed_batch.py b/vsts/vsts/work_item_tracking/v4_0/models/streamed_batch.py deleted file mode 100644 index 06713ff2..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/streamed_batch.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class StreamedBatch(Model): - """StreamedBatch. - - :param continuation_token: - :type continuation_token: str - :param is_last_batch: - :type is_last_batch: bool - :param next_link: - :type next_link: str - :param values: - :type values: list of object - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'is_last_batch': {'key': 'isLastBatch', 'type': 'bool'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[object]'} - } - - def __init__(self, continuation_token=None, is_last_batch=None, next_link=None, values=None): - super(StreamedBatch, self).__init__() - self.continuation_token = continuation_token - self.is_last_batch = is_last_batch - self.next_link = next_link - self.values = values diff --git a/vsts/vsts/work_item_tracking/v4_0/models/team_context.py b/vsts/vsts/work_item_tracking/v4_0/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/work_item_tracking/v4_0/models/wiql.py b/vsts/vsts/work_item_tracking/v4_0/models/wiql.py deleted file mode 100644 index 963d17e3..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/wiql.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Wiql(Model): - """Wiql. - - :param query: - :type query: str - """ - - _attribute_map = { - 'query': {'key': 'query', 'type': 'str'} - } - - def __init__(self, query=None): - super(Wiql, self).__init__() - self.query = query diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_artifact_link.py b/vsts/vsts/work_item_tracking/v4_0/models/work_artifact_link.py deleted file mode 100644 index 5ce77abe..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_artifact_link.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkArtifactLink(Model): - """WorkArtifactLink. - - :param artifact_type: - :type artifact_type: str - :param link_type: - :type link_type: str - :param tool_type: - :type tool_type: str - """ - - _attribute_map = { - 'artifact_type': {'key': 'artifactType', 'type': 'str'}, - 'link_type': {'key': 'linkType', 'type': 'str'}, - 'tool_type': {'key': 'toolType', 'type': 'str'} - } - - def __init__(self, artifact_type=None, link_type=None, tool_type=None): - super(WorkArtifactLink, self).__init__() - self.artifact_type = artifact_type - self.link_type = link_type - self.tool_type = tool_type diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item.py deleted file mode 100644 index f31fcdfb..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItem(WorkItemTrackingResource): - """WorkItem. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param fields: - :type fields: dict - :param id: - :type id: int - :param relations: - :type relations: list of :class:`WorkItemRelation ` - :param rev: - :type rev: int - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'fields': {'key': 'fields', 'type': '{object}'}, - 'id': {'key': 'id', 'type': 'int'}, - 'relations': {'key': 'relations', 'type': '[WorkItemRelation]'}, - 'rev': {'key': 'rev', 'type': 'int'} - } - - def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None): - super(WorkItem, self).__init__(url=url, _links=_links) - self.fields = fields - self.id = id - self.relations = relations - self.rev = rev diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_classification_node.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_classification_node.py deleted file mode 100644 index 1864398d..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_classification_node.py +++ /dev/null @@ -1,51 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemClassificationNode(WorkItemTrackingResource): - """WorkItemClassificationNode. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param attributes: - :type attributes: dict - :param children: - :type children: list of :class:`WorkItemClassificationNode ` - :param id: - :type id: int - :param identifier: - :type identifier: str - :param name: - :type name: str - :param structure_type: - :type structure_type: object - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'children': {'key': 'children', 'type': '[WorkItemClassificationNode]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'structure_type': {'key': 'structureType', 'type': 'object'} - } - - def __init__(self, url=None, _links=None, attributes=None, children=None, id=None, identifier=None, name=None, structure_type=None): - super(WorkItemClassificationNode, self).__init__(url=url, _links=_links) - self.attributes = attributes - self.children = children - self.id = id - self.identifier = identifier - self.name = name - self.structure_type = structure_type diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_comment.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_comment.py deleted file mode 100644 index 398a4a01..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_comment.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemComment(WorkItemTrackingResource): - """WorkItemComment. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param revised_by: - :type revised_by: :class:`IdentityReference ` - :param revised_date: - :type revised_date: datetime - :param revision: - :type revision: int - :param text: - :type text: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, - 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'text': {'key': 'text', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, revised_by=None, revised_date=None, revision=None, text=None): - super(WorkItemComment, self).__init__(url=url, _links=_links) - self.revised_by = revised_by - self.revised_date = revised_date - self.revision = revision - self.text = text diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_comments.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_comments.py deleted file mode 100644 index 5fab0ced..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_comments.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemComments(Model): - """WorkItemComments. - - :param comments: - :type comments: list of :class:`WorkItemComment ` - :param count: - :type count: int - :param from_revision_count: - :type from_revision_count: int - :param total_count: - :type total_count: int - """ - - _attribute_map = { - 'comments': {'key': 'comments', 'type': '[WorkItemComment]'}, - 'count': {'key': 'count', 'type': 'int'}, - 'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'}, - 'total_count': {'key': 'totalCount', 'type': 'int'} - } - - def __init__(self, comments=None, count=None, from_revision_count=None, total_count=None): - super(WorkItemComments, self).__init__() - self.comments = comments - self.count = count - self.from_revision_count = from_revision_count - self.total_count = total_count diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete.py deleted file mode 100644 index d1a6686e..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_delete_reference import WorkItemDeleteReference - - -class WorkItemDelete(WorkItemDeleteReference): - """WorkItemDelete. - - :param code: - :type code: int - :param deleted_by: - :type deleted_by: str - :param deleted_date: - :type deleted_date: str - :param id: - :type id: int - :param message: - :type message: str - :param name: - :type name: str - :param project: - :type project: str - :param type: - :type type: str - :param url: - :type url: str - :param resource: - :type resource: :class:`WorkItem ` - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'WorkItem'} - } - - def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None, resource=None): - super(WorkItemDelete, self).__init__(code=code, deleted_by=deleted_by, deleted_date=deleted_date, id=id, message=message, name=name, project=project, type=type, url=url) - self.resource = resource diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_reference.py deleted file mode 100644 index 60ccf011..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_reference.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemDeleteReference(Model): - """WorkItemDeleteReference. - - :param code: - :type code: int - :param deleted_by: - :type deleted_by: str - :param deleted_date: - :type deleted_date: str - :param id: - :type id: int - :param message: - :type message: str - :param name: - :type name: str - :param project: - :type project: str - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None): - super(WorkItemDeleteReference, self).__init__() - self.code = code - self.deleted_by = deleted_by - self.deleted_date = deleted_date - self.id = id - self.message = message - self.name = name - self.project = project - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_shallow_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_shallow_reference.py deleted file mode 100644 index 9aab4bb1..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_shallow_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemDeleteShallowReference(Model): - """WorkItemDeleteShallowReference. - - :param id: - :type id: int - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemDeleteShallowReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_update.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_update.py deleted file mode 100644 index 7ac3b8d5..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_delete_update.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemDeleteUpdate(Model): - """WorkItemDeleteUpdate. - - :param is_deleted: - :type is_deleted: bool - """ - - _attribute_map = { - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'} - } - - def __init__(self, is_deleted=None): - super(WorkItemDeleteUpdate, self).__init__() - self.is_deleted = is_deleted diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_field.py deleted file mode 100644 index be716c99..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field.py +++ /dev/null @@ -1,63 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemField(WorkItemTrackingResource): - """WorkItemField. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param is_identity: - :type is_identity: bool - :param is_picklist: - :type is_picklist: bool - :param is_picklist_suggested: - :type is_picklist_suggested: bool - :param name: - :type name: str - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param supported_operations: - :type supported_operations: list of :class:`WorkItemFieldOperation ` - :param type: - :type type: object - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, - 'is_picklist': {'key': 'isPicklist', 'type': 'bool'}, - 'is_picklist_suggested': {'key': 'isPicklistSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'supported_operations': {'key': 'supportedOperations', 'type': '[WorkItemFieldOperation]'}, - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, url=None, _links=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, name=None, read_only=None, reference_name=None, supported_operations=None, type=None): - super(WorkItemField, self).__init__(url=url, _links=_links) - self.description = description - self.is_identity = is_identity - self.is_picklist = is_picklist - self.is_picklist_suggested = is_picklist_suggested - self.name = name - self.read_only = read_only - self.reference_name = reference_name - self.supported_operations = supported_operations - self.type = type diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_operation.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_operation.py deleted file mode 100644 index 2fd56f17..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_operation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldOperation(Model): - """WorkItemFieldOperation. - - :param name: - :type name: str - :param reference_name: - :type reference_name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None): - super(WorkItemFieldOperation, self).__init__() - self.name = name - self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_reference.py deleted file mode 100644 index 625dbfdf..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldReference(Model): - """WorkItemFieldReference. - - :param name: - :type name: str - :param reference_name: - :type reference_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None, url=None): - super(WorkItemFieldReference, self).__init__() - self.name = name - self.reference_name = reference_name - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_update.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_update.py deleted file mode 100644 index 3160cd29..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_field_update.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldUpdate(Model): - """WorkItemFieldUpdate. - - :param new_value: - :type new_value: object - :param old_value: - :type old_value: object - """ - - _attribute_map = { - 'new_value': {'key': 'newValue', 'type': 'object'}, - 'old_value': {'key': 'oldValue', 'type': 'object'} - } - - def __init__(self, new_value=None, old_value=None): - super(WorkItemFieldUpdate, self).__init__() - self.new_value = new_value - self.old_value = old_value diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_history.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_history.py deleted file mode 100644 index 1c11baf3..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_history.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemHistory(WorkItemTrackingResource): - """WorkItemHistory. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param rev: - :type rev: int - :param revised_by: - :type revised_by: :class:`IdentityReference ` - :param revised_date: - :type revised_date: datetime - :param value: - :type value: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'rev': {'key': 'rev', 'type': 'int'}, - 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, - 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, rev=None, revised_by=None, revised_date=None, value=None): - super(WorkItemHistory, self).__init__(url=url, _links=_links) - self.rev = rev - self.revised_by = revised_by - self.revised_date = revised_date - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_icon.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_icon.py deleted file mode 100644 index 426e8f58..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_icon.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemIcon(Model): - """WorkItemIcon. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemIcon, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_link.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_link.py deleted file mode 100644 index abf2d833..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_link.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemLink(Model): - """WorkItemLink. - - :param rel: - :type rel: str - :param source: - :type source: :class:`WorkItemReference ` - :param target: - :type target: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'rel': {'key': 'rel', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'WorkItemReference'}, - 'target': {'key': 'target', 'type': 'WorkItemReference'} - } - - def __init__(self, rel=None, source=None, target=None): - super(WorkItemLink, self).__init__() - self.rel = rel - self.source = source - self.target = target diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_clause.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_clause.py deleted file mode 100644 index 5b845e6e..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_clause.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemQueryClause(Model): - """WorkItemQueryClause. - - :param clauses: - :type clauses: list of :class:`WorkItemQueryClause ` - :param field: - :type field: :class:`WorkItemFieldReference ` - :param field_value: - :type field_value: :class:`WorkItemFieldReference ` - :param is_field_value: - :type is_field_value: bool - :param logical_operator: - :type logical_operator: object - :param operator: - :type operator: :class:`WorkItemFieldOperation ` - :param value: - :type value: str - """ - - _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[WorkItemQueryClause]'}, - 'field': {'key': 'field', 'type': 'WorkItemFieldReference'}, - 'field_value': {'key': 'fieldValue', 'type': 'WorkItemFieldReference'}, - 'is_field_value': {'key': 'isFieldValue', 'type': 'bool'}, - 'logical_operator': {'key': 'logicalOperator', 'type': 'object'}, - 'operator': {'key': 'operator', 'type': 'WorkItemFieldOperation'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, clauses=None, field=None, field_value=None, is_field_value=None, logical_operator=None, operator=None, value=None): - super(WorkItemQueryClause, self).__init__() - self.clauses = clauses - self.field = field - self.field_value = field_value - self.is_field_value = is_field_value - self.logical_operator = logical_operator - self.operator = operator - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_result.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_result.py deleted file mode 100644 index 79a17cc4..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_result.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemQueryResult(Model): - """WorkItemQueryResult. - - :param as_of: - :type as_of: datetime - :param columns: - :type columns: list of :class:`WorkItemFieldReference ` - :param query_result_type: - :type query_result_type: object - :param query_type: - :type query_type: object - :param sort_columns: - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param work_item_relations: - :type work_item_relations: list of :class:`WorkItemLink ` - :param work_items: - :type work_items: list of :class:`WorkItemReference ` - """ - - _attribute_map = { - 'as_of': {'key': 'asOf', 'type': 'iso-8601'}, - 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, - 'query_result_type': {'key': 'queryResultType', 'type': 'object'}, - 'query_type': {'key': 'queryType', 'type': 'object'}, - 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, - 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'}, - 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} - } - - def __init__(self, as_of=None, columns=None, query_result_type=None, query_type=None, sort_columns=None, work_item_relations=None, work_items=None): - super(WorkItemQueryResult, self).__init__() - self.as_of = as_of - self.columns = columns - self.query_result_type = query_result_type - self.query_type = query_type - self.sort_columns = sort_columns - self.work_item_relations = work_item_relations - self.work_items = work_items diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_sort_column.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_sort_column.py deleted file mode 100644 index 1203e993..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_query_sort_column.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemQuerySortColumn(Model): - """WorkItemQuerySortColumn. - - :param descending: - :type descending: bool - :param field: - :type field: :class:`WorkItemFieldReference ` - """ - - _attribute_map = { - 'descending': {'key': 'descending', 'type': 'bool'}, - 'field': {'key': 'field', 'type': 'WorkItemFieldReference'} - } - - def __init__(self, descending=None, field=None): - super(WorkItemQuerySortColumn, self).__init__() - self.descending = descending - self.field = field diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_reference.py deleted file mode 100644 index c9f2ee35..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemReference(Model): - """WorkItemReference. - - :param id: - :type id: int - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation.py deleted file mode 100644 index 081ad541..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation.py +++ /dev/null @@ -1,30 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .link import Link - - -class WorkItemRelation(Link): - """WorkItemRelation. - - :param attributes: - :type attributes: dict - :param rel: - :type rel: str - :param url: - :type url: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, attributes=None, rel=None, url=None): - super(WorkItemRelation, self).__init__(attributes=attributes, rel=rel, url=url) diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_type.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_type.py deleted file mode 100644 index 9192153b..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_type.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_reference import WorkItemTrackingReference - - -class WorkItemRelationType(WorkItemTrackingReference): - """WorkItemRelationType. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param name: - :type name: str - :param reference_name: - :type reference_name: str - :param attributes: - :type attributes: dict - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'attributes': {'key': 'attributes', 'type': '{object}'} - } - - def __init__(self, url=None, _links=None, name=None, reference_name=None, attributes=None): - super(WorkItemRelationType, self).__init__(url=url, _links=_links, name=name, reference_name=reference_name) - self.attributes = attributes diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_updates.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_updates.py deleted file mode 100644 index ba6739e5..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_relation_updates.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemRelationUpdates(Model): - """WorkItemRelationUpdates. - - :param added: - :type added: list of :class:`WorkItemRelation ` - :param removed: - :type removed: list of :class:`WorkItemRelation ` - :param updated: - :type updated: list of :class:`WorkItemRelation ` - """ - - _attribute_map = { - 'added': {'key': 'added', 'type': '[WorkItemRelation]'}, - 'removed': {'key': 'removed', 'type': '[WorkItemRelation]'}, - 'updated': {'key': 'updated', 'type': '[WorkItemRelation]'} - } - - def __init__(self, added=None, removed=None, updated=None): - super(WorkItemRelationUpdates, self).__init__() - self.added = added - self.removed = removed - self.updated = updated diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_state_color.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_state_color.py deleted file mode 100644 index 360fe743..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_state_color.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateColor(Model): - """WorkItemStateColor. - - :param color: Color value - :type color: str - :param name: Work item type state name - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, name=None): - super(WorkItemStateColor, self).__init__() - self.color = color - self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_state_transition.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_state_transition.py deleted file mode 100644 index 911a53f3..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_state_transition.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateTransition(Model): - """WorkItemStateTransition. - - :param actions: - :type actions: list of str - :param to: - :type to: str - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[str]'}, - 'to': {'key': 'to', 'type': 'str'} - } - - def __init__(self, actions=None, to=None): - super(WorkItemStateTransition, self).__init__() - self.actions = actions - self.to = to diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_template.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_template.py deleted file mode 100644 index b456dbdc..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_template.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_template_reference import WorkItemTemplateReference - - -class WorkItemTemplate(WorkItemTemplateReference): - """WorkItemTemplate. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: str - :param name: - :type name: str - :param work_item_type_name: - :type work_item_type_name: str - :param fields: - :type fields: dict - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '{str}'} - } - - def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None, fields=None): - super(WorkItemTemplate, self).__init__(url=url, _links=_links, description=description, id=id, name=name, work_item_type_name=work_item_type_name) - self.fields = fields diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_template_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_template_reference.py deleted file mode 100644 index 672d9c17..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_template_reference.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemTemplateReference(WorkItemTrackingResource): - """WorkItemTemplateReference. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: - :type description: str - :param id: - :type id: str - :param name: - :type name: str - :param work_item_type_name: - :type work_item_type_name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None): - super(WorkItemTemplateReference, self).__init__(url=url, _links=_links) - self.description = description - self.id = id - self.name = name - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_reference.py deleted file mode 100644 index b74bee0c..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_reference.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemTrackingReference(WorkItemTrackingResource): - """WorkItemTrackingReference. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param name: - :type name: str - :param reference_name: - :type reference_name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, name=None, reference_name=None): - super(WorkItemTrackingReference, self).__init__(url=url, _links=_links) - self.name = name - self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource.py deleted file mode 100644 index 19f3d6d6..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference - - -class WorkItemTrackingResource(WorkItemTrackingResourceReference): - """WorkItemTrackingResource. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'} - } - - def __init__(self, url=None, _links=None): - super(WorkItemTrackingResource, self).__init__(url=url) - self._links = _links diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource_reference.py deleted file mode 100644 index de9a728b..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_tracking_resource_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTrackingResourceReference(Model): - """WorkItemTrackingResourceReference. - - :param url: - :type url: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, url=None): - super(WorkItemTrackingResourceReference, self).__init__() - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type.py deleted file mode 100644 index fb9fe1ef..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemType(WorkItemTrackingResource): - """WorkItemType. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param color: - :type color: str - :param description: - :type description: str - :param field_instances: - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` - :param fields: - :type fields: list of :class:`WorkItemTypeFieldInstance ` - :param icon: - :type icon: :class:`WorkItemIcon ` - :param name: - :type name: str - :param transitions: - :type transitions: dict - :param xml_form: - :type xml_form: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'field_instances': {'key': 'fieldInstances', 'type': '[WorkItemTypeFieldInstance]'}, - 'fields': {'key': 'fields', 'type': '[WorkItemTypeFieldInstance]'}, - 'icon': {'key': 'icon', 'type': 'WorkItemIcon'}, - 'name': {'key': 'name', 'type': 'str'}, - 'transitions': {'key': 'transitions', 'type': '{[WorkItemStateTransition]}'}, - 'xml_form': {'key': 'xmlForm', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, name=None, transitions=None, xml_form=None): - super(WorkItemType, self).__init__(url=url, _links=_links) - self.color = color - self.description = description - self.field_instances = field_instances - self.fields = fields - self.icon = icon - self.name = name - self.transitions = transitions - self.xml_form = xml_form diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_category.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_category.py deleted file mode 100644 index 5581bc08..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_category.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemTypeCategory(WorkItemTrackingResource): - """WorkItemTypeCategory. - - :param url: - :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param default_work_item_type: - :type default_work_item_type: :class:`WorkItemTypeReference ` - :param name: - :type name: str - :param reference_name: - :type reference_name: str - :param work_item_types: - :type work_item_types: list of :class:`WorkItemTypeReference ` - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} - } - - def __init__(self, url=None, _links=None, default_work_item_type=None, name=None, reference_name=None, work_item_types=None): - super(WorkItemTypeCategory, self).__init__(url=url, _links=_links) - self.default_work_item_type = default_work_item_type - self.name = name - self.reference_name = reference_name - self.work_item_types = work_item_types diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color.py deleted file mode 100644 index 13d95615..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeColor(Model): - """WorkItemTypeColor. - - :param primary_color: - :type primary_color: str - :param secondary_color: - :type secondary_color: str - :param work_item_type_name: - :type work_item_type_name: str - """ - - _attribute_map = { - 'primary_color': {'key': 'primaryColor', 'type': 'str'}, - 'secondary_color': {'key': 'secondaryColor', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, primary_color=None, secondary_color=None, work_item_type_name=None): - super(WorkItemTypeColor, self).__init__() - self.primary_color = primary_color - self.secondary_color = secondary_color - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color_and_icon.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color_and_icon.py deleted file mode 100644 index 195ac573..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_color_and_icon.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeColorAndIcon(Model): - """WorkItemTypeColorAndIcon. - - :param color: - :type color: str - :param icon: - :type icon: str - :param work_item_type_name: - :type work_item_type_name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, color=None, icon=None, work_item_type_name=None): - super(WorkItemTypeColorAndIcon, self).__init__() - self.color = color - self.icon = icon - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_field_instance.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_field_instance.py deleted file mode 100644 index 91eb5881..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_field_instance.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_field_reference import WorkItemFieldReference - - -class WorkItemTypeFieldInstance(WorkItemFieldReference): - """WorkItemTypeFieldInstance. - - :param name: - :type name: str - :param reference_name: - :type reference_name: str - :param url: - :type url: str - :param always_required: - :type always_required: bool - :param field: - :type field: :class:`WorkItemFieldReference ` - :param help_text: - :type help_text: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, - 'field': {'key': 'field', 'type': 'WorkItemFieldReference'}, - 'help_text': {'key': 'helpText', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None, url=None, always_required=None, field=None, help_text=None): - super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url) - self.always_required = always_required - self.field = field - self.help_text = help_text diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_reference.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_reference.py deleted file mode 100644 index 29f8ec5b..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_reference.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference - - -class WorkItemTypeReference(WorkItemTrackingResourceReference): - """WorkItemTypeReference. - - :param url: - :type url: str - :param name: - :type name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, url=None, name=None): - super(WorkItemTypeReference, self).__init__(url=url) - self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_state_colors.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_state_colors.py deleted file mode 100644 index b0a24fde..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_state_colors.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeStateColors(Model): - """WorkItemTypeStateColors. - - :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` - :param work_item_type_name: Work item type name - :type work_item_type_name: str - """ - - _attribute_map = { - 'state_colors': {'key': 'stateColors', 'type': '[WorkItemStateColor]'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, state_colors=None, work_item_type_name=None): - super(WorkItemTypeStateColors, self).__init__() - self.state_colors = state_colors - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template.py deleted file mode 100644 index af36b022..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeTemplate(Model): - """WorkItemTypeTemplate. - - :param template: - :type template: str - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'str'} - } - - def __init__(self, template=None): - super(WorkItemTypeTemplate, self).__init__() - self.template = template diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template_update_model.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template_update_model.py deleted file mode 100644 index 71863f76..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_type_template_update_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeTemplateUpdateModel(Model): - """WorkItemTypeTemplateUpdateModel. - - :param action_type: - :type action_type: object - :param methodology: - :type methodology: str - :param template: - :type template: str - :param template_type: - :type template_type: object - """ - - _attribute_map = { - 'action_type': {'key': 'actionType', 'type': 'object'}, - 'methodology': {'key': 'methodology', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, - 'template_type': {'key': 'templateType', 'type': 'object'} - } - - def __init__(self, action_type=None, methodology=None, template=None, template_type=None): - super(WorkItemTypeTemplateUpdateModel, self).__init__() - self.action_type = action_type - self.methodology = methodology - self.template = template - self.template_type = template_type diff --git a/vsts/vsts/work_item_tracking/v4_0/models/work_item_update.py b/vsts/vsts/work_item_tracking/v4_0/models/work_item_update.py deleted file mode 100644 index c2ba7ccf..00000000 --- a/vsts/vsts/work_item_tracking/v4_0/models/work_item_update.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference - - -class WorkItemUpdate(WorkItemTrackingResourceReference): - """WorkItemUpdate. - - :param url: - :type url: str - :param fields: - :type fields: dict - :param id: - :type id: int - :param relations: - :type relations: :class:`WorkItemRelationUpdates ` - :param rev: - :type rev: int - :param revised_by: - :type revised_by: :class:`IdentityReference ` - :param revised_date: - :type revised_date: datetime - :param work_item_id: - :type work_item_id: int - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '{WorkItemFieldUpdate}'}, - 'id': {'key': 'id', 'type': 'int'}, - 'relations': {'key': 'relations', 'type': 'WorkItemRelationUpdates'}, - 'rev': {'key': 'rev', 'type': 'int'}, - 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, - 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, - 'work_item_id': {'key': 'workItemId', 'type': 'int'} - } - - def __init__(self, url=None, fields=None, id=None, relations=None, rev=None, revised_by=None, revised_date=None, work_item_id=None): - super(WorkItemUpdate, self).__init__(url=url) - self.fields = fields - self.id = id - self.relations = relations - self.rev = rev - self.revised_by = revised_by - self.revised_date = revised_date - self.work_item_id = work_item_id diff --git a/vsts/vsts/work_item_tracking/v4_1/__init__.py b/vsts/vsts/work_item_tracking/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking/v4_1/models/__init__.py deleted file mode 100644 index 6e41be02..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/__init__.py +++ /dev/null @@ -1,149 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .account_my_work_result import AccountMyWorkResult -from .account_recent_activity_work_item_model import AccountRecentActivityWorkItemModel -from .account_recent_mention_work_item_model import AccountRecentMentionWorkItemModel -from .account_work_work_item_model import AccountWorkWorkItemModel -from .artifact_uri_query import ArtifactUriQuery -from .artifact_uri_query_result import ArtifactUriQueryResult -from .attachment_reference import AttachmentReference -from .field_dependent_rule import FieldDependentRule -from .fields_to_evaluate import FieldsToEvaluate -from .graph_subject_base import GraphSubjectBase -from .identity_ref import IdentityRef -from .identity_reference import IdentityReference -from .json_patch_operation import JsonPatchOperation -from .link import Link -from .project_work_item_state_colors import ProjectWorkItemStateColors -from .provisioning_result import ProvisioningResult -from .query_hierarchy_item import QueryHierarchyItem -from .query_hierarchy_items_result import QueryHierarchyItemsResult -from .reference_links import ReferenceLinks -from .reporting_work_item_link import ReportingWorkItemLink -from .reporting_work_item_links_batch import ReportingWorkItemLinksBatch -from .reporting_work_item_revisions_batch import ReportingWorkItemRevisionsBatch -from .reporting_work_item_revisions_filter import ReportingWorkItemRevisionsFilter -from .streamed_batch import StreamedBatch -from .team_context import TeamContext -from .wiql import Wiql -from .work_artifact_link import WorkArtifactLink -from .work_item import WorkItem -from .work_item_classification_node import WorkItemClassificationNode -from .work_item_comment import WorkItemComment -from .work_item_comments import WorkItemComments -from .work_item_delete import WorkItemDelete -from .work_item_delete_reference import WorkItemDeleteReference -from .work_item_delete_shallow_reference import WorkItemDeleteShallowReference -from .work_item_delete_update import WorkItemDeleteUpdate -from .work_item_field import WorkItemField -from .work_item_field_operation import WorkItemFieldOperation -from .work_item_field_reference import WorkItemFieldReference -from .work_item_field_update import WorkItemFieldUpdate -from .work_item_history import WorkItemHistory -from .work_item_icon import WorkItemIcon -from .work_item_link import WorkItemLink -from .work_item_next_state_on_transition import WorkItemNextStateOnTransition -from .work_item_query_clause import WorkItemQueryClause -from .work_item_query_result import WorkItemQueryResult -from .work_item_query_sort_column import WorkItemQuerySortColumn -from .work_item_reference import WorkItemReference -from .work_item_relation import WorkItemRelation -from .work_item_relation_type import WorkItemRelationType -from .work_item_relation_updates import WorkItemRelationUpdates -from .work_item_state_color import WorkItemStateColor -from .work_item_state_transition import WorkItemStateTransition -from .work_item_template import WorkItemTemplate -from .work_item_template_reference import WorkItemTemplateReference -from .work_item_tracking_reference import WorkItemTrackingReference -from .work_item_tracking_resource import WorkItemTrackingResource -from .work_item_tracking_resource_reference import WorkItemTrackingResourceReference -from .work_item_type import WorkItemType -from .work_item_type_category import WorkItemTypeCategory -from .work_item_type_color import WorkItemTypeColor -from .work_item_type_color_and_icon import WorkItemTypeColorAndIcon -from .work_item_type_field_instance import WorkItemTypeFieldInstance -from .work_item_type_field_instance_base import WorkItemTypeFieldInstanceBase -from .work_item_type_field_with_references import WorkItemTypeFieldWithReferences -from .work_item_type_reference import WorkItemTypeReference -from .work_item_type_state_colors import WorkItemTypeStateColors -from .work_item_type_template import WorkItemTypeTemplate -from .work_item_type_template_update_model import WorkItemTypeTemplateUpdateModel -from .work_item_update import WorkItemUpdate - -__all__ = [ - 'AccountMyWorkResult', - 'AccountRecentActivityWorkItemModel', - 'AccountRecentMentionWorkItemModel', - 'AccountWorkWorkItemModel', - 'ArtifactUriQuery', - 'ArtifactUriQueryResult', - 'AttachmentReference', - 'FieldDependentRule', - 'FieldsToEvaluate', - 'GraphSubjectBase', - 'IdentityRef', - 'IdentityReference', - 'JsonPatchOperation', - 'Link', - 'ProjectWorkItemStateColors', - 'ProvisioningResult', - 'QueryHierarchyItem', - 'QueryHierarchyItemsResult', - 'ReferenceLinks', - 'ReportingWorkItemLink', - 'ReportingWorkItemLinksBatch', - 'ReportingWorkItemRevisionsBatch', - 'ReportingWorkItemRevisionsFilter', - 'StreamedBatch', - 'TeamContext', - 'Wiql', - 'WorkArtifactLink', - 'WorkItem', - 'WorkItemClassificationNode', - 'WorkItemComment', - 'WorkItemComments', - 'WorkItemDelete', - 'WorkItemDeleteReference', - 'WorkItemDeleteShallowReference', - 'WorkItemDeleteUpdate', - 'WorkItemField', - 'WorkItemFieldOperation', - 'WorkItemFieldReference', - 'WorkItemFieldUpdate', - 'WorkItemHistory', - 'WorkItemIcon', - 'WorkItemLink', - 'WorkItemNextStateOnTransition', - 'WorkItemQueryClause', - 'WorkItemQueryResult', - 'WorkItemQuerySortColumn', - 'WorkItemReference', - 'WorkItemRelation', - 'WorkItemRelationType', - 'WorkItemRelationUpdates', - 'WorkItemStateColor', - 'WorkItemStateTransition', - 'WorkItemTemplate', - 'WorkItemTemplateReference', - 'WorkItemTrackingReference', - 'WorkItemTrackingResource', - 'WorkItemTrackingResourceReference', - 'WorkItemType', - 'WorkItemTypeCategory', - 'WorkItemTypeColor', - 'WorkItemTypeColorAndIcon', - 'WorkItemTypeFieldInstance', - 'WorkItemTypeFieldInstanceBase', - 'WorkItemTypeFieldWithReferences', - 'WorkItemTypeReference', - 'WorkItemTypeStateColors', - 'WorkItemTypeTemplate', - 'WorkItemTypeTemplateUpdateModel', - 'WorkItemUpdate', -] diff --git a/vsts/vsts/work_item_tracking/v4_1/models/account_my_work_result.py b/vsts/vsts/work_item_tracking/v4_1/models/account_my_work_result.py deleted file mode 100644 index 39d22a57..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/account_my_work_result.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountMyWorkResult(Model): - """AccountMyWorkResult. - - :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit - :type query_size_limit_exceeded: bool - :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` - """ - - _attribute_map = { - 'query_size_limit_exceeded': {'key': 'querySizeLimitExceeded', 'type': 'bool'}, - 'work_item_details': {'key': 'workItemDetails', 'type': '[AccountWorkWorkItemModel]'} - } - - def __init__(self, query_size_limit_exceeded=None, work_item_details=None): - super(AccountMyWorkResult, self).__init__() - self.query_size_limit_exceeded = query_size_limit_exceeded - self.work_item_details = work_item_details diff --git a/vsts/vsts/work_item_tracking/v4_1/models/account_recent_activity_work_item_model.py b/vsts/vsts/work_item_tracking/v4_1/models/account_recent_activity_work_item_model.py deleted file mode 100644 index ac42f453..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/account_recent_activity_work_item_model.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountRecentActivityWorkItemModel(Model): - """AccountRecentActivityWorkItemModel. - - :param activity_date: Date of the last Activity by the user - :type activity_date: datetime - :param activity_type: Type of the activity - :type activity_type: object - :param assigned_to: Assigned To - :type assigned_to: str - :param changed_date: Last changed date of the work item - :type changed_date: datetime - :param id: Work Item Id - :type id: int - :param identity_id: TeamFoundationId of the user this activity belongs to - :type identity_id: str - :param state: State of the work item - :type state: str - :param team_project: Team project the work item belongs to - :type team_project: str - :param title: Title of the work item - :type title: str - :param work_item_type: Type of Work Item - :type work_item_type: str - """ - - _attribute_map = { - 'activity_date': {'key': 'activityDate', 'type': 'iso-8601'}, - 'activity_type': {'key': 'activityType', 'type': 'object'}, - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'identity_id': {'key': 'identityId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'team_project': {'key': 'teamProject', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, activity_date=None, activity_type=None, assigned_to=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None): - super(AccountRecentActivityWorkItemModel, self).__init__() - self.activity_date = activity_date - self.activity_type = activity_type - self.assigned_to = assigned_to - self.changed_date = changed_date - self.id = id - self.identity_id = identity_id - self.state = state - self.team_project = team_project - self.title = title - self.work_item_type = work_item_type diff --git a/vsts/vsts/work_item_tracking/v4_1/models/account_recent_mention_work_item_model.py b/vsts/vsts/work_item_tracking/v4_1/models/account_recent_mention_work_item_model.py deleted file mode 100644 index cd9bd1d4..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/account_recent_mention_work_item_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountRecentMentionWorkItemModel(Model): - """AccountRecentMentionWorkItemModel. - - :param assigned_to: Assigned To - :type assigned_to: str - :param id: Work Item Id - :type id: int - :param mentioned_date_field: Lastest date that the user were mentioned - :type mentioned_date_field: datetime - :param state: State of the work item - :type state: str - :param team_project: Team project the work item belongs to - :type team_project: str - :param title: Title of the work item - :type title: str - :param work_item_type: Type of Work Item - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'mentioned_date_field': {'key': 'mentionedDateField', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'team_project': {'key': 'teamProject', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, mentioned_date_field=None, state=None, team_project=None, title=None, work_item_type=None): - super(AccountRecentMentionWorkItemModel, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.mentioned_date_field = mentioned_date_field - self.state = state - self.team_project = team_project - self.title = title - self.work_item_type = work_item_type diff --git a/vsts/vsts/work_item_tracking/v4_1/models/account_work_work_item_model.py b/vsts/vsts/work_item_tracking/v4_1/models/account_work_work_item_model.py deleted file mode 100644 index 6cb04c84..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/account_work_work_item_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccountWorkWorkItemModel(Model): - """AccountWorkWorkItemModel. - - :param assigned_to: - :type assigned_to: str - :param changed_date: - :type changed_date: datetime - :param id: - :type id: int - :param state: - :type state: str - :param team_project: - :type team_project: str - :param title: - :type title: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'team_project': {'key': 'teamProject', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, changed_date=None, id=None, state=None, team_project=None, title=None, work_item_type=None): - super(AccountWorkWorkItemModel, self).__init__() - self.assigned_to = assigned_to - self.changed_date = changed_date - self.id = id - self.state = state - self.team_project = team_project - self.title = title - self.work_item_type = work_item_type diff --git a/vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query.py b/vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query.py deleted file mode 100644 index 8353b779..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactUriQuery(Model): - """ArtifactUriQuery. - - :param artifact_uris: List of artifact URIs to use for querying work items. - :type artifact_uris: list of str - """ - - _attribute_map = { - 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'} - } - - def __init__(self, artifact_uris=None): - super(ArtifactUriQuery, self).__init__() - self.artifact_uris = artifact_uris diff --git a/vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query_result.py b/vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query_result.py deleted file mode 100644 index bf996b14..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/artifact_uri_query_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ArtifactUriQueryResult(Model): - """ArtifactUriQueryResult. - - :param artifact_uris_query_result: A Dictionary that maps a list of work item references to the given list of artifact URI. - :type artifact_uris_query_result: dict - """ - - _attribute_map = { - 'artifact_uris_query_result': {'key': 'artifactUrisQueryResult', 'type': '{[WorkItemReference]}'} - } - - def __init__(self, artifact_uris_query_result=None): - super(ArtifactUriQueryResult, self).__init__() - self.artifact_uris_query_result = artifact_uris_query_result diff --git a/vsts/vsts/work_item_tracking/v4_1/models/attachment_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/attachment_reference.py deleted file mode 100644 index b05f6c11..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/attachment_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AttachmentReference(Model): - """AttachmentReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(AttachmentReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/field_dependent_rule.py b/vsts/vsts/work_item_tracking/v4_1/models/field_dependent_rule.py deleted file mode 100644 index 126f8f95..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/field_dependent_rule.py +++ /dev/null @@ -1,31 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class FieldDependentRule(WorkItemTrackingResource): - """FieldDependentRule. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param dependent_fields: The dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'} - } - - def __init__(self, url=None, _links=None, dependent_fields=None): - super(FieldDependentRule, self).__init__(url=url, _links=_links) - self.dependent_fields = dependent_fields diff --git a/vsts/vsts/work_item_tracking/v4_1/models/fields_to_evaluate.py b/vsts/vsts/work_item_tracking/v4_1/models/fields_to_evaluate.py deleted file mode 100644 index 5dcd2fd3..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/fields_to_evaluate.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldsToEvaluate(Model): - """FieldsToEvaluate. - - :param fields: List of fields to evaluate. - :type fields: list of str - :param field_updates: Updated field values to evaluate. - :type field_updates: dict - :param field_values: Initial field values. - :type field_values: dict - :param rules_from: URL of the work item type for which the rules need to be executed. - :type rules_from: list of str - """ - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[str]'}, - 'field_updates': {'key': 'fieldUpdates', 'type': '{object}'}, - 'field_values': {'key': 'fieldValues', 'type': '{object}'}, - 'rules_from': {'key': 'rulesFrom', 'type': '[str]'} - } - - def __init__(self, fields=None, field_updates=None, field_values=None, rules_from=None): - super(FieldsToEvaluate, self).__init__() - self.fields = fields - self.field_updates = field_updates - self.field_values = field_values - self.rules_from = rules_from diff --git a/vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py b/vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py deleted file mode 100644 index f8b8d21a..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/graph_subject_base.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 diff --git a/vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py b/vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py deleted file mode 100644 index c4c35ad5..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/identity_ref.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .graph_subject_base import GraphSubjectBase - - -class IdentityRef(GraphSubjectBase): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py deleted file mode 100644 index 35d909ef..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/identity_reference.py +++ /dev/null @@ -1,62 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .identity_ref import IdentityRef - - -class IdentityReference(IdentityRef): - """IdentityReference. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param directory_alias: - :type directory_alias: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param id: - :type id: str - :param name: Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version - :type 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'}, - 'image_url': {'key': 'imageUrl', 'type': 'str'}, - 'inactive': {'key': 'inactive', 'type': 'bool'}, - 'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'}, - 'is_container': {'key': 'isContainer', 'type': 'bool'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, id=None, name=None): - super(IdentityReference, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) - self.id = id - self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/json_patch_operation.py b/vsts/vsts/work_item_tracking/v4_1/models/json_patch_operation.py deleted file mode 100644 index 7d45b0f6..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/json_patch_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_1/models/link.py b/vsts/vsts/work_item_tracking/v4_1/models/link.py deleted file mode 100644 index 1cfccded..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/link.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Link(Model): - """Link. - - :param attributes: Collection of link attributes. - :type attributes: dict - :param rel: Relation type. - :type rel: str - :param url: Link url. - :type url: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, attributes=None, rel=None, url=None): - super(Link, self).__init__() - self.attributes = attributes - self.rel = rel - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/project_work_item_state_colors.py b/vsts/vsts/work_item_tracking/v4_1/models/project_work_item_state_colors.py deleted file mode 100644 index 7931e5de..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/project_work_item_state_colors.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectWorkItemStateColors(Model): - """ProjectWorkItemStateColors. - - :param project_name: Project name - :type project_name: str - :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` - """ - - _attribute_map = { - 'project_name': {'key': 'projectName', 'type': 'str'}, - 'work_item_type_state_colors': {'key': 'workItemTypeStateColors', 'type': '[WorkItemTypeStateColors]'} - } - - def __init__(self, project_name=None, work_item_type_state_colors=None): - super(ProjectWorkItemStateColors, self).__init__() - self.project_name = project_name - self.work_item_type_state_colors = work_item_type_state_colors diff --git a/vsts/vsts/work_item_tracking/v4_1/models/provisioning_result.py b/vsts/vsts/work_item_tracking/v4_1/models/provisioning_result.py deleted file mode 100644 index 0d1dc1de..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/provisioning_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProvisioningResult(Model): - """ProvisioningResult. - - :param provisioning_import_events: Details about of the provisioning import events. - :type provisioning_import_events: list of str - """ - - _attribute_map = { - 'provisioning_import_events': {'key': 'provisioningImportEvents', 'type': '[str]'} - } - - def __init__(self, provisioning_import_events=None): - super(ProvisioningResult, self).__init__() - self.provisioning_import_events = provisioning_import_events diff --git a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py deleted file mode 100644 index d6bc200b..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_item.py +++ /dev/null @@ -1,127 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class QueryHierarchyItem(WorkItemTrackingResource): - """QueryHierarchyItem. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param children: The child query items inside a query folder. - :type children: list of :class:`QueryHierarchyItem ` - :param clauses: The clauses for a flat query. - :type clauses: :class:`WorkItemQueryClause ` - :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` - :param created_by: The identity who created the query item. - :type created_by: :class:`IdentityReference ` - :param created_date: When the query item was created. - :type created_date: datetime - :param filter_options: The link query mode. - :type filter_options: object - :param has_children: If this is a query folder, indicates if it contains any children. - :type has_children: bool - :param id: The id of the query item. - :type id: str - :param is_deleted: Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it. - :type is_deleted: bool - :param is_folder: Indicates if this is a query folder or a query. - :type is_folder: bool - :param is_invalid_syntax: Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path. - :type is_invalid_syntax: bool - :param is_public: Indicates if this query item is public or private. - :type is_public: bool - :param last_executed_by: The identity who last ran the query. - :type last_executed_by: :class:`IdentityReference ` - :param last_executed_date: When the query was last run. - :type last_executed_date: datetime - :param last_modified_by: The identity who last modified the query item. - :type last_modified_by: :class:`IdentityReference ` - :param last_modified_date: When the query item was last modified. - :type last_modified_date: datetime - :param link_clauses: The link query clause. - :type link_clauses: :class:`WorkItemQueryClause ` - :param name: The name of the query item. - :type name: str - :param path: The path of the query item. - :type path: str - :param query_recursion_option: The recursion option for use in a tree query. - :type query_recursion_option: object - :param query_type: The type of query. - :type query_type: object - :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param source_clauses: The source clauses in a tree or one-hop link query. - :type source_clauses: :class:`WorkItemQueryClause ` - :param target_clauses: The target clauses in a tree or one-hop link query. - :type target_clauses: :class:`WorkItemQueryClause ` - :param wiql: The WIQL text of the query - :type wiql: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'children': {'key': 'children', 'type': '[QueryHierarchyItem]'}, - 'clauses': {'key': 'clauses', 'type': 'WorkItemQueryClause'}, - 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityReference'}, - 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, - 'filter_options': {'key': 'filterOptions', 'type': 'object'}, - 'has_children': {'key': 'hasChildren', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_invalid_syntax': {'key': 'isInvalidSyntax', 'type': 'bool'}, - 'is_public': {'key': 'isPublic', 'type': 'bool'}, - 'last_executed_by': {'key': 'lastExecutedBy', 'type': 'IdentityReference'}, - 'last_executed_date': {'key': 'lastExecutedDate', 'type': 'iso-8601'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityReference'}, - 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, - 'link_clauses': {'key': 'linkClauses', 'type': 'WorkItemQueryClause'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'query_recursion_option': {'key': 'queryRecursionOption', 'type': 'object'}, - 'query_type': {'key': 'queryType', 'type': 'object'}, - 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, - 'source_clauses': {'key': 'sourceClauses', 'type': 'WorkItemQueryClause'}, - 'target_clauses': {'key': 'targetClauses', 'type': 'WorkItemQueryClause'}, - 'wiql': {'key': 'wiql', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_executed_by=None, last_executed_date=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_recursion_option=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): - super(QueryHierarchyItem, self).__init__(url=url, _links=_links) - self.children = children - self.clauses = clauses - self.columns = columns - self.created_by = created_by - self.created_date = created_date - self.filter_options = filter_options - self.has_children = has_children - self.id = id - self.is_deleted = is_deleted - self.is_folder = is_folder - self.is_invalid_syntax = is_invalid_syntax - self.is_public = is_public - self.last_executed_by = last_executed_by - self.last_executed_date = last_executed_date - self.last_modified_by = last_modified_by - self.last_modified_date = last_modified_date - self.link_clauses = link_clauses - self.name = name - self.path = path - self.query_recursion_option = query_recursion_option - self.query_type = query_type - self.sort_columns = sort_columns - self.source_clauses = source_clauses - self.target_clauses = target_clauses - self.wiql = wiql diff --git a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py b/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py deleted file mode 100644 index c1c8e0a8..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/query_hierarchy_items_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class QueryHierarchyItemsResult(Model): - """QueryHierarchyItemsResult. - - :param count: The count of items. - :type count: int - :param has_more: Indicates if the max return limit was hit but there are still more items - :type has_more: bool - :param value: The list of items - :type value: list of :class:`QueryHierarchyItem ` - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'has_more': {'key': 'hasMore', 'type': 'bool'}, - 'value': {'key': 'value', 'type': '[QueryHierarchyItem]'} - } - - def __init__(self, count=None, has_more=None, value=None): - super(QueryHierarchyItemsResult, self).__init__() - self.count = count - self.has_more = has_more - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_1/models/reference_links.py b/vsts/vsts/work_item_tracking/v4_1/models/reference_links.py deleted file mode 100644 index 54f03acd..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/reference_links.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links diff --git a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_link.py b/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_link.py deleted file mode 100644 index acbfd840..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_link.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReportingWorkItemLink(Model): - """ReportingWorkItemLink. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param changed_operation: - :type changed_operation: object - :param comment: - :type comment: str - :param is_active: - :type is_active: bool - :param link_type: - :type link_type: str - :param rel: - :type rel: str - :param source_id: - :type source_id: int - :param target_id: - :type target_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'changed_operation': {'key': 'changedOperation', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'link_type': {'key': 'linkType', 'type': 'str'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'int'}, - 'target_id': {'key': 'targetId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, changed_operation=None, comment=None, is_active=None, link_type=None, rel=None, source_id=None, target_id=None): - super(ReportingWorkItemLink, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.changed_operation = changed_operation - self.comment = comment - self.is_active = is_active - self.link_type = link_type - self.rel = rel - self.source_id = source_id - self.target_id = target_id diff --git a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_links_batch.py b/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_links_batch.py deleted file mode 100644 index 525223a2..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_links_batch.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .streamed_batch import StreamedBatch - - -class ReportingWorkItemLinksBatch(StreamedBatch): - """ReportingWorkItemLinksBatch. - - """ - - _attribute_map = { - } - - def __init__(self): - super(ReportingWorkItemLinksBatch, self).__init__() diff --git a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_batch.py b/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_batch.py deleted file mode 100644 index 5c401a3d..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_batch.py +++ /dev/null @@ -1,21 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .streamed_batch import StreamedBatch - - -class ReportingWorkItemRevisionsBatch(StreamedBatch): - """ReportingWorkItemRevisionsBatch. - - """ - - _attribute_map = { - } - - def __init__(self): - super(ReportingWorkItemRevisionsBatch, self).__init__() diff --git a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_filter.py b/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_filter.py deleted file mode 100644 index be8e5148..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/reporting_work_item_revisions_filter.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ReportingWorkItemRevisionsFilter(Model): - """ReportingWorkItemRevisionsFilter. - - :param fields: A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. - :type fields: list of str - :param include_deleted: Include deleted work item in the result. - :type include_deleted: bool - :param include_identity_ref: Return an identity reference instead of a string value for identity fields. - :type include_identity_ref: bool - :param include_latest_only: Include only the latest version of a work item, skipping over all previous revisions of the work item. - :type include_latest_only: bool - :param include_tag_ref: Include tag reference instead of string value for System.Tags field - :type include_tag_ref: bool - :param types: A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. - :type types: list of str - """ - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[str]'}, - 'include_deleted': {'key': 'includeDeleted', 'type': 'bool'}, - 'include_identity_ref': {'key': 'includeIdentityRef', 'type': 'bool'}, - 'include_latest_only': {'key': 'includeLatestOnly', 'type': 'bool'}, - 'include_tag_ref': {'key': 'includeTagRef', 'type': 'bool'}, - 'types': {'key': 'types', 'type': '[str]'} - } - - def __init__(self, fields=None, include_deleted=None, include_identity_ref=None, include_latest_only=None, include_tag_ref=None, types=None): - super(ReportingWorkItemRevisionsFilter, self).__init__() - self.fields = fields - self.include_deleted = include_deleted - self.include_identity_ref = include_identity_ref - self.include_latest_only = include_latest_only - self.include_tag_ref = include_tag_ref - self.types = types diff --git a/vsts/vsts/work_item_tracking/v4_1/models/streamed_batch.py b/vsts/vsts/work_item_tracking/v4_1/models/streamed_batch.py deleted file mode 100644 index 06713ff2..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/streamed_batch.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class StreamedBatch(Model): - """StreamedBatch. - - :param continuation_token: - :type continuation_token: str - :param is_last_batch: - :type is_last_batch: bool - :param next_link: - :type next_link: str - :param values: - :type values: list of object - """ - - _attribute_map = { - 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'is_last_batch': {'key': 'isLastBatch', 'type': 'bool'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[object]'} - } - - def __init__(self, continuation_token=None, is_last_batch=None, next_link=None, values=None): - super(StreamedBatch, self).__init__() - self.continuation_token = continuation_token - self.is_last_batch = is_last_batch - self.next_link = next_link - self.values = values diff --git a/vsts/vsts/work_item_tracking/v4_1/models/team_context.py b/vsts/vsts/work_item_tracking/v4_1/models/team_context.py deleted file mode 100644 index 18418ce7..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/team_context.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class TeamContext(Model): - """TeamContext. - - :param project: The team project Id or name. Ignored if ProjectId is set. - :type project: str - :param project_id: The Team Project ID. Required if Project is not set. - :type project_id: str - :param team: The Team Id or name. Ignored if TeamId is set. - :type team: str - :param team_id: The Team Id - :type team_id: str - """ - - _attribute_map = { - 'project': {'key': 'project', 'type': 'str'}, - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'team': {'key': 'team', 'type': 'str'}, - 'team_id': {'key': 'teamId', 'type': 'str'} - } - - def __init__(self, project=None, project_id=None, team=None, team_id=None): - super(TeamContext, self).__init__() - self.project = project - self.project_id = project_id - self.team = team - self.team_id = team_id diff --git a/vsts/vsts/work_item_tracking/v4_1/models/wiql.py b/vsts/vsts/work_item_tracking/v4_1/models/wiql.py deleted file mode 100644 index 9cf1b515..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/wiql.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Wiql(Model): - """Wiql. - - :param query: The text of the WIQL query - :type query: str - """ - - _attribute_map = { - 'query': {'key': 'query', 'type': 'str'} - } - - def __init__(self, query=None): - super(Wiql, self).__init__() - self.query = query diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_artifact_link.py b/vsts/vsts/work_item_tracking/v4_1/models/work_artifact_link.py deleted file mode 100644 index 7b73e52c..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_artifact_link.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkArtifactLink(Model): - """WorkArtifactLink. - - :param artifact_type: Target artifact type. - :type artifact_type: str - :param link_type: Outbound link type. - :type link_type: str - :param tool_type: Target tool type. - :type tool_type: str - """ - - _attribute_map = { - 'artifact_type': {'key': 'artifactType', 'type': 'str'}, - 'link_type': {'key': 'linkType', 'type': 'str'}, - 'tool_type': {'key': 'toolType', 'type': 'str'} - } - - def __init__(self, artifact_type=None, link_type=None, tool_type=None): - super(WorkArtifactLink, self).__init__() - self.artifact_type = artifact_type - self.link_type = link_type - self.tool_type = tool_type diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item.py deleted file mode 100644 index 3d8d61d1..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItem(WorkItemTrackingResource): - """WorkItem. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param fields: Map of field and values for the work item. - :type fields: dict - :param id: The work item ID. - :type id: int - :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` - :param rev: Revision number of the work item. - :type rev: int - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'fields': {'key': 'fields', 'type': '{object}'}, - 'id': {'key': 'id', 'type': 'int'}, - 'relations': {'key': 'relations', 'type': '[WorkItemRelation]'}, - 'rev': {'key': 'rev', 'type': 'int'} - } - - def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None): - super(WorkItem, self).__init__(url=url, _links=_links) - self.fields = fields - self.id = id - self.relations = relations - self.rev = rev diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_classification_node.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_classification_node.py deleted file mode 100644 index 9e98f26e..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_classification_node.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemClassificationNode(WorkItemTrackingResource): - """WorkItemClassificationNode. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. - :type attributes: dict - :param children: List of child nodes fetched. - :type children: list of :class:`WorkItemClassificationNode ` - :param has_children: Flag that indicates if the classification node has any child nodes. - :type has_children: bool - :param id: Integer ID of the classification node. - :type id: int - :param identifier: GUID ID of the classification node. - :type identifier: str - :param name: Name of the classification node. - :type name: str - :param structure_type: Node structure type. - :type structure_type: object - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'children': {'key': 'children', 'type': '[WorkItemClassificationNode]'}, - 'has_children': {'key': 'hasChildren', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'structure_type': {'key': 'structureType', 'type': 'object'} - } - - def __init__(self, url=None, _links=None, attributes=None, children=None, has_children=None, id=None, identifier=None, name=None, structure_type=None): - super(WorkItemClassificationNode, self).__init__(url=url, _links=_links) - self.attributes = attributes - self.children = children - self.has_children = has_children - self.id = id - self.identifier = identifier - self.name = name - self.structure_type = structure_type diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py deleted file mode 100644 index 662c9838..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comment.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemComment(WorkItemTrackingResource): - """WorkItemComment. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param revised_by: Identity of user who added the comment. - :type revised_by: :class:`IdentityReference ` - :param revised_date: The date of comment. - :type revised_date: datetime - :param revision: The work item revision number. - :type revision: int - :param text: The text of the comment. - :type text: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, - 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'text': {'key': 'text', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, revised_by=None, revised_date=None, revision=None, text=None): - super(WorkItemComment, self).__init__(url=url, _links=_links) - self.revised_by = revised_by - self.revised_date = revised_date - self.revision = revision - self.text = text diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py deleted file mode 100644 index 6463b857..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_comments.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemComments(WorkItemTrackingResource): - """WorkItemComments. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param comments: Comments collection. - :type comments: list of :class:`WorkItemComment ` - :param count: The count of comments. - :type count: int - :param from_revision_count: Count of comments from the revision. - :type from_revision_count: int - :param total_count: Total count of comments. - :type total_count: int - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'comments': {'key': 'comments', 'type': '[WorkItemComment]'}, - 'count': {'key': 'count', 'type': 'int'}, - 'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'}, - 'total_count': {'key': 'totalCount', 'type': 'int'} - } - - def __init__(self, url=None, _links=None, comments=None, count=None, from_revision_count=None, total_count=None): - super(WorkItemComments, self).__init__(url=url, _links=_links) - self.comments = comments - self.count = count - self.from_revision_count = from_revision_count - self.total_count = total_count diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete.py deleted file mode 100644 index 76968794..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete.py +++ /dev/null @@ -1,52 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_delete_reference import WorkItemDeleteReference - - -class WorkItemDelete(WorkItemDeleteReference): - """WorkItemDelete. - - :param code: The HTTP status code for work item operation in a batch request. - :type code: int - :param deleted_by: The user who deleted the work item type. - :type deleted_by: str - :param deleted_date: The work item deletion date. - :type deleted_date: str - :param id: Work item ID. - :type id: int - :param message: The exception message for work item operation in a batch request. - :type message: str - :param name: Name or title of the work item. - :type name: str - :param project: Parent project of the deleted work item. - :type project: str - :param type: Type of work item. - :type type: str - :param url: REST API URL of the resource - :type url: str - :param resource: The work item object that was deleted. - :type resource: :class:`WorkItem ` - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'WorkItem'} - } - - def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None, resource=None): - super(WorkItemDelete, self).__init__(code=code, deleted_by=deleted_by, deleted_date=deleted_date, id=id, message=message, name=name, project=project, type=type, url=url) - self.resource = resource diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_reference.py deleted file mode 100644 index 025e3c6d..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_reference.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemDeleteReference(Model): - """WorkItemDeleteReference. - - :param code: The HTTP status code for work item operation in a batch request. - :type code: int - :param deleted_by: The user who deleted the work item type. - :type deleted_by: str - :param deleted_date: The work item deletion date. - :type deleted_date: str - :param id: Work item ID. - :type id: int - :param message: The exception message for work item operation in a batch request. - :type message: str - :param name: Name or title of the work item. - :type name: str - :param project: Parent project of the deleted work item. - :type project: str - :param type: Type of work item. - :type type: str - :param url: REST API URL of the resource - :type url: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'deleted_by': {'key': 'deletedBy', 'type': 'str'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, message=None, name=None, project=None, type=None, url=None): - super(WorkItemDeleteReference, self).__init__() - self.code = code - self.deleted_by = deleted_by - self.deleted_date = deleted_date - self.id = id - self.message = message - self.name = name - self.project = project - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py deleted file mode 100644 index 64f529b1..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_shallow_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemDeleteShallowReference(Model): - """WorkItemDeleteShallowReference. - - :param id: Work item ID. - :type id: int - :param url: REST API URL of the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemDeleteShallowReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_update.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_update.py deleted file mode 100644 index ec79c030..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_delete_update.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemDeleteUpdate(Model): - """WorkItemDeleteUpdate. - - :param is_deleted: Sets a value indicating whether this work item is deleted. - :type is_deleted: bool - """ - - _attribute_map = { - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'} - } - - def __init__(self, is_deleted=None): - super(WorkItemDeleteUpdate, self).__init__() - self.is_deleted = is_deleted diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_field.py deleted file mode 100644 index 8963da50..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field.py +++ /dev/null @@ -1,67 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemField(WorkItemTrackingResource): - """WorkItemField. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param description: The description of the field. - :type description: str - :param is_identity: Indicates whether this field is an identity field. - :type is_identity: bool - :param is_picklist: Indicates whether this instance is picklist. - :type is_picklist: bool - :param is_picklist_suggested: Indicates whether this instance is a suggested picklist . - :type is_picklist_suggested: bool - :param name: The name of the field. - :type name: str - :param read_only: Indicates whether the field is [read only]. - :type read_only: bool - :param reference_name: The reference name of the field. - :type reference_name: str - :param supported_operations: The supported operations on this field. - :type supported_operations: list of :class:`WorkItemFieldOperation ` - :param type: The type of the field. - :type type: object - :param usage: The usage of the field. - :type usage: object - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, - 'is_picklist': {'key': 'isPicklist', 'type': 'bool'}, - 'is_picklist_suggested': {'key': 'isPicklistSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'supported_operations': {'key': 'supportedOperations', 'type': '[WorkItemFieldOperation]'}, - 'type': {'key': 'type', 'type': 'object'}, - 'usage': {'key': 'usage', 'type': 'object'} - } - - def __init__(self, url=None, _links=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, name=None, read_only=None, reference_name=None, supported_operations=None, type=None, usage=None): - super(WorkItemField, self).__init__(url=url, _links=_links) - self.description = description - self.is_identity = is_identity - self.is_picklist = is_picklist - self.is_picklist_suggested = is_picklist_suggested - self.name = name - self.read_only = read_only - self.reference_name = reference_name - self.supported_operations = supported_operations - self.type = type - self.usage = usage diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_operation.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_operation.py deleted file mode 100644 index fe59903a..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_operation.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldOperation(Model): - """WorkItemFieldOperation. - - :param name: Name of the operation. - :type name: str - :param reference_name: Reference name of the operation. - :type reference_name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None): - super(WorkItemFieldOperation, self).__init__() - self.name = name - self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_reference.py deleted file mode 100644 index 29ebbbf2..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldReference(Model): - """WorkItemFieldReference. - - :param name: The name of the field. - :type name: str - :param reference_name: The reference name of the field. - :type reference_name: str - :param url: The REST URL of the resource. - :type url: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None, url=None): - super(WorkItemFieldReference, self).__init__() - self.name = name - self.reference_name = reference_name - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_update.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_update.py deleted file mode 100644 index 2b83b0fb..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_field_update.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemFieldUpdate(Model): - """WorkItemFieldUpdate. - - :param new_value: The new value of the field. - :type new_value: object - :param old_value: The old value of the field. - :type old_value: object - """ - - _attribute_map = { - 'new_value': {'key': 'newValue', 'type': 'object'}, - 'old_value': {'key': 'oldValue', 'type': 'object'} - } - - def __init__(self, new_value=None, old_value=None): - super(WorkItemFieldUpdate, self).__init__() - self.new_value = new_value - self.old_value = old_value diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_history.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_history.py deleted file mode 100644 index 60a120f4..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_history.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemHistory(WorkItemTrackingResource): - """WorkItemHistory. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param rev: - :type rev: int - :param revised_by: - :type revised_by: :class:`IdentityReference ` - :param revised_date: - :type revised_date: datetime - :param value: - :type value: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'rev': {'key': 'rev', 'type': 'int'}, - 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, - 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, rev=None, revised_by=None, revised_date=None, value=None): - super(WorkItemHistory, self).__init__(url=url, _links=_links) - self.rev = rev - self.revised_by = revised_by - self.revised_date = revised_date - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_icon.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_icon.py deleted file mode 100644 index 8473466a..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_icon.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemIcon(Model): - """WorkItemIcon. - - :param id: The identifier of the icon. - :type id: str - :param url: The REST URL of the resource. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemIcon, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py deleted file mode 100644 index fa4794a9..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_link.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemLink(Model): - """WorkItemLink. - - :param rel: The type of link. - :type rel: str - :param source: The source work item. - :type source: :class:`WorkItemReference ` - :param target: The target work item. - :type target: :class:`WorkItemReference ` - """ - - _attribute_map = { - 'rel': {'key': 'rel', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'WorkItemReference'}, - 'target': {'key': 'target', 'type': 'WorkItemReference'} - } - - def __init__(self, rel=None, source=None, target=None): - super(WorkItemLink, self).__init__() - self.rel = rel - self.source = source - self.target = target diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_next_state_on_transition.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_next_state_on_transition.py deleted file mode 100644 index f81c85b7..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_next_state_on_transition.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemNextStateOnTransition(Model): - """WorkItemNextStateOnTransition. - - :param error_code: Error code if there is no next state transition possible. - :type error_code: str - :param id: Work item ID. - :type id: int - :param message: Error message if there is no next state transition possible. - :type message: str - :param state_on_transition: Name of the next state on transition. - :type state_on_transition: str - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'state_on_transition': {'key': 'stateOnTransition', 'type': 'str'} - } - - def __init__(self, error_code=None, id=None, message=None, state_on_transition=None): - super(WorkItemNextStateOnTransition, self).__init__() - self.error_code = error_code - self.id = id - self.message = message - self.state_on_transition = state_on_transition diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py deleted file mode 100644 index 6e298ecb..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_clause.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemQueryClause(Model): - """WorkItemQueryClause. - - :param clauses: Child clauses if the current clause is a logical operator - :type clauses: list of :class:`WorkItemQueryClause ` - :param field: Field associated with condition - :type field: :class:`WorkItemFieldReference ` - :param field_value: Right side of the condition when a field to field comparison - :type field_value: :class:`WorkItemFieldReference ` - :param is_field_value: Determines if this is a field to field comparison - :type is_field_value: bool - :param logical_operator: Logical operator separating the condition clause - :type logical_operator: object - :param operator: The field operator - :type operator: :class:`WorkItemFieldOperation ` - :param value: Right side of the condition when a field to value comparison - :type value: str - """ - - _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[WorkItemQueryClause]'}, - 'field': {'key': 'field', 'type': 'WorkItemFieldReference'}, - 'field_value': {'key': 'fieldValue', 'type': 'WorkItemFieldReference'}, - 'is_field_value': {'key': 'isFieldValue', 'type': 'bool'}, - 'logical_operator': {'key': 'logicalOperator', 'type': 'object'}, - 'operator': {'key': 'operator', 'type': 'WorkItemFieldOperation'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, clauses=None, field=None, field_value=None, is_field_value=None, logical_operator=None, operator=None, value=None): - super(WorkItemQueryClause, self).__init__() - self.clauses = clauses - self.field = field - self.field_value = field_value - self.is_field_value = is_field_value - self.logical_operator = logical_operator - self.operator = operator - self.value = value diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py deleted file mode 100644 index d51e21c4..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_result.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemQueryResult(Model): - """WorkItemQueryResult. - - :param as_of: The date the query was run in the context of. - :type as_of: datetime - :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` - :param query_result_type: The result type - :type query_result_type: object - :param query_type: The type of the query - :type query_type: object - :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param work_item_relations: The work item links returned by the query. - :type work_item_relations: list of :class:`WorkItemLink ` - :param work_items: The work items returned by the query. - :type work_items: list of :class:`WorkItemReference ` - """ - - _attribute_map = { - 'as_of': {'key': 'asOf', 'type': 'iso-8601'}, - 'columns': {'key': 'columns', 'type': '[WorkItemFieldReference]'}, - 'query_result_type': {'key': 'queryResultType', 'type': 'object'}, - 'query_type': {'key': 'queryType', 'type': 'object'}, - 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, - 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'}, - 'work_items': {'key': 'workItems', 'type': '[WorkItemReference]'} - } - - def __init__(self, as_of=None, columns=None, query_result_type=None, query_type=None, sort_columns=None, work_item_relations=None, work_items=None): - super(WorkItemQueryResult, self).__init__() - self.as_of = as_of - self.columns = columns - self.query_result_type = query_result_type - self.query_type = query_type - self.sort_columns = sort_columns - self.work_item_relations = work_item_relations - self.work_items = work_items diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py deleted file mode 100644 index 1811b845..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_query_sort_column.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemQuerySortColumn(Model): - """WorkItemQuerySortColumn. - - :param descending: The direction to sort by. - :type descending: bool - :param field: A work item field. - :type field: :class:`WorkItemFieldReference ` - """ - - _attribute_map = { - 'descending': {'key': 'descending', 'type': 'bool'}, - 'field': {'key': 'field', 'type': 'WorkItemFieldReference'} - } - - def __init__(self, descending=None, field=None): - super(WorkItemQuerySortColumn, self).__init__() - self.descending = descending - self.field = field diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_reference.py deleted file mode 100644 index 748e2243..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemReference(Model): - """WorkItemReference. - - :param id: Work item ID. - :type id: int - :param url: REST API URL of the resource - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation.py deleted file mode 100644 index 9eff8a82..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation.py +++ /dev/null @@ -1,30 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .link import Link - - -class WorkItemRelation(Link): - """WorkItemRelation. - - :param attributes: Collection of link attributes. - :type attributes: dict - :param rel: Relation type. - :type rel: str - :param url: Link url. - :type url: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, attributes=None, rel=None, url=None): - super(WorkItemRelation, self).__init__(attributes=attributes, rel=rel, url=url) diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_type.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_type.py deleted file mode 100644 index f04f57e9..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_type.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_reference import WorkItemTrackingReference - - -class WorkItemRelationType(WorkItemTrackingReference): - """WorkItemRelationType. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param name: The name. - :type name: str - :param reference_name: The reference name. - :type reference_name: str - :param attributes: The collection of relation type attributes. - :type attributes: dict - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'attributes': {'key': 'attributes', 'type': '{object}'} - } - - def __init__(self, url=None, _links=None, name=None, reference_name=None, attributes=None): - super(WorkItemRelationType, self).__init__(url=url, _links=_links, name=name, reference_name=reference_name) - self.attributes = attributes diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_updates.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_updates.py deleted file mode 100644 index cc5c9ac2..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_relation_updates.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemRelationUpdates(Model): - """WorkItemRelationUpdates. - - :param added: List of newly added relations. - :type added: list of :class:`WorkItemRelation ` - :param removed: List of removed relations. - :type removed: list of :class:`WorkItemRelation ` - :param updated: List of updated relations. - :type updated: list of :class:`WorkItemRelation ` - """ - - _attribute_map = { - 'added': {'key': 'added', 'type': '[WorkItemRelation]'}, - 'removed': {'key': 'removed', 'type': '[WorkItemRelation]'}, - 'updated': {'key': 'updated', 'type': '[WorkItemRelation]'} - } - - def __init__(self, added=None, removed=None, updated=None): - super(WorkItemRelationUpdates, self).__init__() - self.added = added - self.removed = removed - self.updated = updated diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py deleted file mode 100644 index 239ebb0b..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_color.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateColor(Model): - """WorkItemStateColor. - - :param category: Category of state - :type category: str - :param color: Color value - :type color: str - :param name: Work item type state name - :type name: str - """ - - _attribute_map = { - 'category': {'key': 'category', 'type': 'str'}, - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, category=None, color=None, name=None): - super(WorkItemStateColor, self).__init__() - self.category = category - self.color = color - self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_transition.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_transition.py deleted file mode 100644 index a712bbc2..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_state_transition.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateTransition(Model): - """WorkItemStateTransition. - - :param actions: Gets a list of actions needed to transition to that state. - :type actions: list of str - :param to: Name of the next state. - :type to: str - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[str]'}, - 'to': {'key': 'to', 'type': 'str'} - } - - def __init__(self, actions=None, to=None): - super(WorkItemStateTransition, self).__init__() - self.actions = actions - self.to = to diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_template.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_template.py deleted file mode 100644 index c9cb3c3f..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_template.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_template_reference import WorkItemTemplateReference - - -class WorkItemTemplate(WorkItemTemplateReference): - """WorkItemTemplate. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param description: The description of the work item template. - :type description: str - :param id: The identifier of the work item template. - :type id: str - :param name: The name of the work item template. - :type name: str - :param work_item_type_name: The name of the work item type. - :type work_item_type_name: str - :param fields: Mapping of field and its templated value. - :type fields: dict - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '{str}'} - } - - def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None, fields=None): - super(WorkItemTemplate, self).__init__(url=url, _links=_links, description=description, id=id, name=name, work_item_type_name=work_item_type_name) - self.fields = fields diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_template_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_template_reference.py deleted file mode 100644 index 2be411cd..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_template_reference.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemTemplateReference(WorkItemTrackingResource): - """WorkItemTemplateReference. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param description: The description of the work item template. - :type description: str - :param id: The identifier of the work item template. - :type id: str - :param name: The name of the work item template. - :type name: str - :param work_item_type_name: The name of the work item type. - :type work_item_type_name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None): - super(WorkItemTemplateReference, self).__init__(url=url, _links=_links) - self.description = description - self.id = id - self.name = name - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_reference.py deleted file mode 100644 index 21f33d10..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_reference.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemTrackingReference(WorkItemTrackingResource): - """WorkItemTrackingReference. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param name: The name. - :type name: str - :param reference_name: The reference name. - :type reference_name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, name=None, reference_name=None): - super(WorkItemTrackingReference, self).__init__(url=url, _links=_links) - self.name = name - self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource.py deleted file mode 100644 index ab6aad07..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference - - -class WorkItemTrackingResource(WorkItemTrackingResourceReference): - """WorkItemTrackingResource. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'} - } - - def __init__(self, url=None, _links=None): - super(WorkItemTrackingResource, self).__init__(url=url) - self._links = _links diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource_reference.py deleted file mode 100644 index de9a728b..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_tracking_resource_reference.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTrackingResourceReference(Model): - """WorkItemTrackingResourceReference. - - :param url: - :type url: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, url=None): - super(WorkItemTrackingResourceReference, self).__init__() - self.url = url diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py deleted file mode 100644 index 2dbb8e69..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type.py +++ /dev/null @@ -1,67 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemType(WorkItemTrackingResource): - """WorkItemType. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param color: The color. - :type color: str - :param description: The description of the work item type. - :type description: str - :param field_instances: The fields that exist on the work item type. - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` - :param fields: The fields that exist on the work item type. - :type fields: list of :class:`WorkItemTypeFieldInstance ` - :param icon: The icon of the work item type. - :type icon: :class:`WorkItemIcon ` - :param is_disabled: True if work item type is disabled - :type is_disabled: bool - :param name: Gets the name of the work item type. - :type name: str - :param reference_name: The reference name of the work item type. - :type reference_name: str - :param transitions: Gets the various state transition mappings in the work item type. - :type transitions: dict - :param xml_form: The XML form. - :type xml_form: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'field_instances': {'key': 'fieldInstances', 'type': '[WorkItemTypeFieldInstance]'}, - 'fields': {'key': 'fields', 'type': '[WorkItemTypeFieldInstance]'}, - 'icon': {'key': 'icon', 'type': 'WorkItemIcon'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'transitions': {'key': 'transitions', 'type': '{[WorkItemStateTransition]}'}, - 'xml_form': {'key': 'xmlForm', 'type': 'str'} - } - - def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, is_disabled=None, name=None, reference_name=None, transitions=None, xml_form=None): - super(WorkItemType, self).__init__(url=url, _links=_links) - self.color = color - self.description = description - self.field_instances = field_instances - self.fields = fields - self.icon = icon - self.is_disabled = is_disabled - self.name = name - self.reference_name = reference_name - self.transitions = transitions - self.xml_form = xml_form diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_category.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_category.py deleted file mode 100644 index cbab1415..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_category.py +++ /dev/null @@ -1,43 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemTypeCategory(WorkItemTrackingResource): - """WorkItemTypeCategory. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param default_work_item_type: Gets or sets the default type of the work item. - :type default_work_item_type: :class:`WorkItemTypeReference ` - :param name: The name of the category. - :type name: str - :param reference_name: The reference name of the category. - :type reference_name: str - :param work_item_types: The work item types that belond to the category. - :type work_item_types: list of :class:`WorkItemTypeReference ` - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} - } - - def __init__(self, url=None, _links=None, default_work_item_type=None, name=None, reference_name=None, work_item_types=None): - super(WorkItemTypeCategory, self).__init__(url=url, _links=_links) - self.default_work_item_type = default_work_item_type - self.name = name - self.reference_name = reference_name - self.work_item_types = work_item_types diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color.py deleted file mode 100644 index a92a1ffc..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeColor(Model): - """WorkItemTypeColor. - - :param primary_color: Gets or sets the color of the primary. - :type primary_color: str - :param secondary_color: Gets or sets the color of the secondary. - :type secondary_color: str - :param work_item_type_name: The name of the work item type. - :type work_item_type_name: str - """ - - _attribute_map = { - 'primary_color': {'key': 'primaryColor', 'type': 'str'}, - 'secondary_color': {'key': 'secondaryColor', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, primary_color=None, secondary_color=None, work_item_type_name=None): - super(WorkItemTypeColor, self).__init__() - self.primary_color = primary_color - self.secondary_color = secondary_color - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color_and_icon.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color_and_icon.py deleted file mode 100644 index e64cce99..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_color_and_icon.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeColorAndIcon(Model): - """WorkItemTypeColorAndIcon. - - :param color: The color of the work item type in hex format. - :type color: str - :param icon: Tthe work item type icon. - :type icon: str - :param work_item_type_name: The name of the work item type. - :type work_item_type_name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, color=None, icon=None, work_item_type_name=None): - super(WorkItemTypeColorAndIcon, self).__init__() - self.color = color - self.icon = icon - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py deleted file mode 100644 index f7547d21..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_type_field_instance_base import WorkItemTypeFieldInstanceBase - - -class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): - """WorkItemTypeFieldInstance. - - :param name: The name of the field. - :type name: str - :param reference_name: The reference name of the field. - :type reference_name: str - :param url: The REST URL of the resource. - :type url: str - :param always_required: Indicates whether field value is always required. - :type always_required: bool - :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` - :param help_text: Gets the help text for the field. - :type help_text: str - :param allowed_values: The list of field allowed values. - :type allowed_values: list of str - :param default_value: Represents the default value of the field. - :type default_value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, - 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, - 'help_text': {'key': 'helpText', 'type': 'str'}, - 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): - super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) - self.allowed_values = allowed_values - self.default_value = default_value diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py deleted file mode 100644 index 62f83ad4..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_instance_base.py +++ /dev/null @@ -1,42 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_field_reference import WorkItemFieldReference - - -class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): - """WorkItemTypeFieldInstanceBase. - - :param name: The name of the field. - :type name: str - :param reference_name: The reference name of the field. - :type reference_name: str - :param url: The REST URL of the resource. - :type url: str - :param always_required: Indicates whether field value is always required. - :type always_required: bool - :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` - :param help_text: Gets the help text for the field. - :type help_text: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, - 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, - 'help_text': {'key': 'helpText', 'type': 'str'} - } - - def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None): - super(WorkItemTypeFieldInstanceBase, self).__init__(name=name, reference_name=reference_name, url=url) - self.always_required = always_required - self.dependent_fields = dependent_fields - self.help_text = help_text diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py deleted file mode 100644 index 6606255d..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_field_with_references.py +++ /dev/null @@ -1,47 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_type_field_instance_base import WorkItemTypeFieldInstanceBase - - -class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): - """WorkItemTypeFieldWithReferences. - - :param name: The name of the field. - :type name: str - :param reference_name: The reference name of the field. - :type reference_name: str - :param url: The REST URL of the resource. - :type url: str - :param always_required: Indicates whether field value is always required. - :type always_required: bool - :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` - :param help_text: Gets the help text for the field. - :type help_text: str - :param allowed_values: The list of field allowed values. - :type allowed_values: list of object - :param default_value: Represents the default value of the field. - :type default_value: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, - 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, - 'help_text': {'key': 'helpText', 'type': 'str'}, - 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, - 'default_value': {'key': 'defaultValue', 'type': 'object'} - } - - def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): - super(WorkItemTypeFieldWithReferences, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) - self.allowed_values = allowed_values - self.default_value = default_value diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_reference.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_reference.py deleted file mode 100644 index 8757dc1d..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_reference.py +++ /dev/null @@ -1,28 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource_reference import WorkItemTrackingResourceReference - - -class WorkItemTypeReference(WorkItemTrackingResourceReference): - """WorkItemTypeReference. - - :param url: - :type url: str - :param name: Name of the work item type. - :type name: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, url=None, name=None): - super(WorkItemTypeReference, self).__init__(url=url) - self.name = name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_state_colors.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_state_colors.py deleted file mode 100644 index 956e6e87..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_state_colors.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeStateColors(Model): - """WorkItemTypeStateColors. - - :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` - :param work_item_type_name: Work item type name - :type work_item_type_name: str - """ - - _attribute_map = { - 'state_colors': {'key': 'stateColors', 'type': '[WorkItemStateColor]'}, - 'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'} - } - - def __init__(self, state_colors=None, work_item_type_name=None): - super(WorkItemTypeStateColors, self).__init__() - self.state_colors = state_colors - self.work_item_type_name = work_item_type_name diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template.py deleted file mode 100644 index f85f1b7e..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeTemplate(Model): - """WorkItemTypeTemplate. - - :param template: XML template in string format. - :type template: str - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'str'} - } - - def __init__(self, template=None): - super(WorkItemTypeTemplate, self).__init__() - self.template = template diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template_update_model.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template_update_model.py deleted file mode 100644 index 1ea4e525..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_type_template_update_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeTemplateUpdateModel(Model): - """WorkItemTypeTemplateUpdateModel. - - :param action_type: Describes the type of the action for the update request. - :type action_type: object - :param methodology: Methodology to which the template belongs, eg. Agile, Scrum, CMMI. - :type methodology: str - :param template: String representation of the work item type template. - :type template: str - :param template_type: The type of the template described in the request body. - :type template_type: object - """ - - _attribute_map = { - 'action_type': {'key': 'actionType', 'type': 'object'}, - 'methodology': {'key': 'methodology', 'type': 'str'}, - 'template': {'key': 'template', 'type': 'str'}, - 'template_type': {'key': 'templateType', 'type': 'object'} - } - - def __init__(self, action_type=None, methodology=None, template=None, template_type=None): - super(WorkItemTypeTemplateUpdateModel, self).__init__() - self.action_type = action_type - self.methodology = methodology - self.template = template - self.template_type = template_type diff --git a/vsts/vsts/work_item_tracking/v4_1/models/work_item_update.py b/vsts/vsts/work_item_tracking/v4_1/models/work_item_update.py deleted file mode 100644 index 3a96caab..00000000 --- a/vsts/vsts/work_item_tracking/v4_1/models/work_item_update.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .work_item_tracking_resource import WorkItemTrackingResource - - -class WorkItemUpdate(WorkItemTrackingResource): - """WorkItemUpdate. - - :param url: - :type url: str - :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` - :param fields: List of updates to fields. - :type fields: dict - :param id: ID of update. - :type id: int - :param relations: List of updates to relations. - :type relations: :class:`WorkItemRelationUpdates ` - :param rev: The revision number of work item update. - :type rev: int - :param revised_by: Identity for the work item update. - :type revised_by: :class:`IdentityReference ` - :param revised_date: The work item updates revision date. - :type revised_date: datetime - :param work_item_id: The work item ID. - :type work_item_id: int - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'fields': {'key': 'fields', 'type': '{WorkItemFieldUpdate}'}, - 'id': {'key': 'id', 'type': 'int'}, - 'relations': {'key': 'relations', 'type': 'WorkItemRelationUpdates'}, - 'rev': {'key': 'rev', 'type': 'int'}, - 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, - 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, - 'work_item_id': {'key': 'workItemId', 'type': 'int'} - } - - def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None, revised_by=None, revised_date=None, work_item_id=None): - super(WorkItemUpdate, self).__init__(url=url, _links=_links) - self.fields = fields - self.id = id - self.relations = relations - self.rev = rev - self.revised_by = revised_by - self.revised_date = revised_date - self.work_item_id = work_item_id diff --git a/vsts/vsts/work_item_tracking_process/__init__.py b/vsts/vsts/work_item_tracking_process/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/work_item_tracking_process/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process/v4_0/__init__.py b/vsts/vsts/work_item_tracking_process/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py b/vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py deleted file mode 100644 index 7c228e9f..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .control import Control -from .create_process_model import CreateProcessModel -from .extension import Extension -from .field_model import FieldModel -from .field_rule_model import FieldRuleModel -from .form_layout import FormLayout -from .group import Group -from .page import Page -from .process_model import ProcessModel -from .process_properties import ProcessProperties -from .project_reference import ProjectReference -from .rule_action_model import RuleActionModel -from .rule_condition_model import RuleConditionModel -from .section import Section -from .update_process_model import UpdateProcessModel -from .wit_contribution import WitContribution -from .work_item_behavior import WorkItemBehavior -from .work_item_behavior_field import WorkItemBehaviorField -from .work_item_behavior_reference import WorkItemBehaviorReference -from .work_item_state_result_model import WorkItemStateResultModel -from .work_item_type_behavior import WorkItemTypeBehavior -from .work_item_type_model import WorkItemTypeModel - -__all__ = [ - 'Control', - 'CreateProcessModel', - 'Extension', - 'FieldModel', - 'FieldRuleModel', - 'FormLayout', - 'Group', - 'Page', - 'ProcessModel', - 'ProcessProperties', - 'ProjectReference', - 'RuleActionModel', - 'RuleConditionModel', - 'Section', - 'UpdateProcessModel', - 'WitContribution', - 'WorkItemBehavior', - 'WorkItemBehaviorField', - 'WorkItemBehaviorReference', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeModel', -] diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/control.py b/vsts/vsts/work_item_tracking_process/v4_0/models/control.py deleted file mode 100644 index ee7eb2a4..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/control.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py deleted file mode 100644 index d3b132eb..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/create_process_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreateProcessModel(Model): - """CreateProcessModel. - - :param description: - :type description: str - :param name: - :type name: str - :param parent_process_type_id: - :type parent_process_type_id: str - :param reference_name: - :type reference_name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): - super(CreateProcessModel, self).__init__() - self.description = description - self.name = name - self.parent_process_type_id = parent_process_type_id - self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/extension.py b/vsts/vsts/work_item_tracking_process/v4_0/models/extension.py deleted file mode 100644 index 7bab24e6..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/extension.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py deleted file mode 100644 index c744fe2f..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/field_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldModel(Model): - """FieldModel. - - :param description: - :type description: str - :param id: - :type id: str - :param is_identity: - :type is_identity: bool - :param name: - :type name: str - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.is_identity = is_identity - self.name = name - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py deleted file mode 100644 index d368bb61..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/field_rule_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldRuleModel(Model): - """FieldRuleModel. - - :param actions: - :type actions: list of :class:`RuleActionModel ` - :param conditions: - :type conditions: list of :class:`RuleConditionModel ` - :param friendly_name: - :type friendly_name: str - :param id: - :type id: str - :param is_disabled: - :type is_disabled: bool - :param is_system: - :type is_system: bool - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, - 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_system': {'key': 'isSystem', 'type': 'bool'} - } - - def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): - super(FieldRuleModel, self).__init__() - self.actions = actions - self.conditions = conditions - self.friendly_name = friendly_name - self.id = id - self.is_disabled = is_disabled - self.is_system = is_system diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py b/vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py deleted file mode 100644 index 755e5cde..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/form_layout.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/group.py b/vsts/vsts/work_item_tracking_process/v4_0/models/group.py deleted file mode 100644 index 72b75d16..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/page.py b/vsts/vsts/work_item_tracking_process/v4_0/models/page.py deleted file mode 100644 index 0939a8a4..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/page.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py deleted file mode 100644 index 07cee5ea..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/process_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessModel(Model): - """ProcessModel. - - :param description: - :type description: str - :param name: - :type name: str - :param projects: - :type projects: list of :class:`ProjectReference ` - :param properties: - :type properties: :class:`ProcessProperties ` - :param reference_name: - :type reference_name: str - :param type_id: - :type type_id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, - 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'type_id': {'key': 'typeId', 'type': 'str'} - } - - def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): - super(ProcessModel, self).__init__() - self.description = description - self.name = name - self.projects = projects - self.properties = properties - self.reference_name = reference_name - self.type_id = type_id diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py b/vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py deleted file mode 100644 index deb736dc..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/process_properties.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessProperties(Model): - """ProcessProperties. - - :param class_: - :type class_: object - :param is_default: - :type is_default: bool - :param is_enabled: - :type is_enabled: bool - :param parent_process_type_id: - :type parent_process_type_id: str - :param version: - :type version: str - """ - - _attribute_map = { - 'class_': {'key': 'class', 'type': 'object'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): - super(ProcessProperties, self).__init__() - self.class_ = class_ - self.is_default = is_default - self.is_enabled = is_enabled - self.parent_process_type_id = parent_process_type_id - self.version = version diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py b/vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py deleted file mode 100644 index 11749e0a..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/project_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param description: - :type description: str - :param id: - :type id: str - :param name: - :type name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, url=None): - super(ProjectReference, self).__init__() - self.description = description - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py deleted file mode 100644 index 7096b198..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/rule_action_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RuleActionModel(Model): - """RuleActionModel. - - :param action_type: - :type action_type: str - :param target_field: - :type target_field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'action_type': {'key': 'actionType', 'type': 'str'}, - 'target_field': {'key': 'targetField', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, action_type=None, target_field=None, value=None): - super(RuleActionModel, self).__init__() - self.action_type = action_type - self.target_field = target_field - self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py deleted file mode 100644 index 6006a69b..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/rule_condition_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RuleConditionModel(Model): - """RuleConditionModel. - - :param condition_type: - :type condition_type: str - :param field: - :type field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'str'}, - 'field': {'key': 'field', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, field=None, value=None): - super(RuleConditionModel, self).__init__() - self.condition_type = condition_type - self.field = field - self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/section.py b/vsts/vsts/work_item_tracking_process/v4_0/models/section.py deleted file mode 100644 index 28a1c008..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/section.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py deleted file mode 100644 index 74650ef8..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/update_process_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdateProcessModel(Model): - """UpdateProcessModel. - - :param description: - :type description: str - :param is_default: - :type is_default: bool - :param is_enabled: - :type is_enabled: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, description=None, is_default=None, is_enabled=None, name=None): - super(UpdateProcessModel, self).__init__() - self.description = description - self.is_default = is_default - self.is_enabled = is_enabled - self.name = name diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py deleted file mode 100644 index ca76fd0a..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/wit_contribution.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py deleted file mode 100644 index c0dae1f4..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehavior(Model): - """WorkItemBehavior. - - :param abstract: - :type abstract: bool - :param color: - :type color: str - :param description: - :type description: str - :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` - :param id: - :type id: str - :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: - :type name: str - :param overriden: - :type overriden: bool - :param rank: - :type rank: int - :param url: - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overriden': {'key': 'overriden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): - super(WorkItemBehavior, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.fields = fields - self.id = id - self.inherits = inherits - self.name = name - self.overriden = overriden - self.rank = rank - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py deleted file mode 100644 index 4e7804fe..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_field.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehaviorField(Model): - """WorkItemBehaviorField. - - :param behavior_field_id: - :type behavior_field_id: str - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior_field_id=None, id=None, url=None): - super(WorkItemBehaviorField, self).__init__() - self.behavior_field_id = behavior_field_id - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py deleted file mode 100644 index 7c35db76..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_behavior_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py deleted file mode 100644 index 8021cf25..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_state_result_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: - :type color: str - :param hidden: - :type hidden: bool - :param id: - :type id: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - :param url: - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py deleted file mode 100644 index 1dd481a0..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_behavior.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py deleted file mode 100644 index 7146e6c4..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_0/models/work_item_type_model.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: - :type class_: object - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param id: - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: - :type is_disabled: bool - :param layout: - :type layout: :class:`FormLayout ` - :param name: - :type name: str - :param states: - :type states: list of :class:`WorkItemStateResultModel ` - :param url: - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/__init__.py b/vsts/vsts/work_item_tracking_process/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py deleted file mode 100644 index 7c228e9f..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/__init__.py +++ /dev/null @@ -1,55 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .control import Control -from .create_process_model import CreateProcessModel -from .extension import Extension -from .field_model import FieldModel -from .field_rule_model import FieldRuleModel -from .form_layout import FormLayout -from .group import Group -from .page import Page -from .process_model import ProcessModel -from .process_properties import ProcessProperties -from .project_reference import ProjectReference -from .rule_action_model import RuleActionModel -from .rule_condition_model import RuleConditionModel -from .section import Section -from .update_process_model import UpdateProcessModel -from .wit_contribution import WitContribution -from .work_item_behavior import WorkItemBehavior -from .work_item_behavior_field import WorkItemBehaviorField -from .work_item_behavior_reference import WorkItemBehaviorReference -from .work_item_state_result_model import WorkItemStateResultModel -from .work_item_type_behavior import WorkItemTypeBehavior -from .work_item_type_model import WorkItemTypeModel - -__all__ = [ - 'Control', - 'CreateProcessModel', - 'Extension', - 'FieldModel', - 'FieldRuleModel', - 'FormLayout', - 'Group', - 'Page', - 'ProcessModel', - 'ProcessProperties', - 'ProjectReference', - 'RuleActionModel', - 'RuleConditionModel', - 'Section', - 'UpdateProcessModel', - 'WitContribution', - 'WorkItemBehavior', - 'WorkItemBehaviorField', - 'WorkItemBehaviorReference', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeModel', -] diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/control.py b/vsts/vsts/work_item_tracking_process/v4_1/models/control.py deleted file mode 100644 index 491ca1ad..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/control.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py deleted file mode 100644 index 4c2424c5..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/create_process_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CreateProcessModel(Model): - """CreateProcessModel. - - :param description: Description of the process - :type description: str - :param name: Name of the process - :type name: str - :param parent_process_type_id: The ID of the parent process - :type parent_process_type_id: str - :param reference_name: Reference name of the process - :type reference_name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): - super(CreateProcessModel, self).__init__() - self.description = description - self.name = name - self.parent_process_type_id = parent_process_type_id - self.reference_name = reference_name diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/extension.py b/vsts/vsts/work_item_tracking_process/v4_1/models/extension.py deleted file mode 100644 index 7bab24e6..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/extension.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py deleted file mode 100644 index c744fe2f..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/field_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldModel(Model): - """FieldModel. - - :param description: - :type description: str - :param id: - :type id: str - :param is_identity: - :type is_identity: bool - :param name: - :type name: str - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.is_identity = is_identity - self.name = name - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py deleted file mode 100644 index c3e7e366..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/field_rule_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldRuleModel(Model): - """FieldRuleModel. - - :param actions: - :type actions: list of :class:`RuleActionModel ` - :param conditions: - :type conditions: list of :class:`RuleConditionModel ` - :param friendly_name: - :type friendly_name: str - :param id: - :type id: str - :param is_disabled: - :type is_disabled: bool - :param is_system: - :type is_system: bool - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, - 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_system': {'key': 'isSystem', 'type': 'bool'} - } - - def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): - super(FieldRuleModel, self).__init__() - self.actions = actions - self.conditions = conditions - self.friendly_name = friendly_name - self.id = id - self.is_disabled = is_disabled - self.is_system = is_system diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py b/vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py deleted file mode 100644 index 14c97ff8..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/form_layout.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/group.py b/vsts/vsts/work_item_tracking_process/v4_1/models/group.py deleted file mode 100644 index 5cb7fbdd..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/page.py b/vsts/vsts/work_item_tracking_process/v4_1/models/page.py deleted file mode 100644 index 010972ca..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/page.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py deleted file mode 100644 index 477269c6..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/process_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessModel(Model): - """ProcessModel. - - :param description: Description of the process - :type description: str - :param name: Name of the process - :type name: str - :param projects: Projects in this process - :type projects: list of :class:`ProjectReference ` - :param properties: Properties of the process - :type properties: :class:`ProcessProperties ` - :param reference_name: Reference name of the process - :type reference_name: str - :param type_id: The ID of the process - :type type_id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, - 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'type_id': {'key': 'typeId', 'type': 'str'} - } - - def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): - super(ProcessModel, self).__init__() - self.description = description - self.name = name - self.projects = projects - self.properties = properties - self.reference_name = reference_name - self.type_id = type_id diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py b/vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py deleted file mode 100644 index d7831766..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/process_properties.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessProperties(Model): - """ProcessProperties. - - :param class_: Class of the process - :type class_: object - :param is_default: Is the process default process - :type is_default: bool - :param is_enabled: Is the process enabled - :type is_enabled: bool - :param parent_process_type_id: ID of the parent process - :type parent_process_type_id: str - :param version: Version of the process - :type version: str - """ - - _attribute_map = { - 'class_': {'key': 'class', 'type': 'object'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): - super(ProcessProperties, self).__init__() - self.class_ = class_ - self.is_default = is_default - self.is_enabled = is_enabled - self.parent_process_type_id = parent_process_type_id - self.version = version diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py b/vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py deleted file mode 100644 index a0956259..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/project_reference.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProjectReference(Model): - """ProjectReference. - - :param description: Description of the project - :type description: str - :param id: The ID of the project - :type id: str - :param name: Name of the project - :type name: str - :param url: Url of the project - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, url=None): - super(ProjectReference, self).__init__() - self.description = description - self.id = id - self.name = name - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py deleted file mode 100644 index 7096b198..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/rule_action_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RuleActionModel(Model): - """RuleActionModel. - - :param action_type: - :type action_type: str - :param target_field: - :type target_field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'action_type': {'key': 'actionType', 'type': 'str'}, - 'target_field': {'key': 'targetField', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, action_type=None, target_field=None, value=None): - super(RuleActionModel, self).__init__() - self.action_type = action_type - self.target_field = target_field - self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py deleted file mode 100644 index 6006a69b..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/rule_condition_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class RuleConditionModel(Model): - """RuleConditionModel. - - :param condition_type: - :type condition_type: str - :param field: - :type field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'str'}, - 'field': {'key': 'field', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, field=None, value=None): - super(RuleConditionModel, self).__init__() - self.condition_type = condition_type - self.field = field - self.value = value diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/section.py b/vsts/vsts/work_item_tracking_process/v4_1/models/section.py deleted file mode 100644 index 42424062..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/section.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py deleted file mode 100644 index 74650ef8..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/update_process_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class UpdateProcessModel(Model): - """UpdateProcessModel. - - :param description: - :type description: str - :param is_default: - :type is_default: bool - :param is_enabled: - :type is_enabled: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, description=None, is_default=None, is_enabled=None, name=None): - super(UpdateProcessModel, self).__init__() - self.description = description - self.is_default = is_default - self.is_enabled = is_enabled - self.name = name diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py deleted file mode 100644 index ca76fd0a..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/wit_contribution.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py deleted file mode 100644 index d38833f6..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehavior(Model): - """WorkItemBehavior. - - :param abstract: - :type abstract: bool - :param color: - :type color: str - :param description: - :type description: str - :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` - :param id: - :type id: str - :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: - :type name: str - :param overriden: - :type overriden: bool - :param rank: - :type rank: int - :param url: - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overriden': {'key': 'overriden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): - super(WorkItemBehavior, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.fields = fields - self.id = id - self.inherits = inherits - self.name = name - self.overriden = overriden - self.rank = rank - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py deleted file mode 100644 index 4e7804fe..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_field.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehaviorField(Model): - """WorkItemBehaviorField. - - :param behavior_field_id: - :type behavior_field_id: str - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior_field_id=None, id=None, url=None): - super(WorkItemBehaviorField, self).__init__() - self.behavior_field_id = behavior_field_id - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py deleted file mode 100644 index 7c35db76..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_behavior_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py deleted file mode 100644 index 8021cf25..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_state_result_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: - :type color: str - :param hidden: - :type hidden: bool - :param id: - :type id: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - :param url: - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py deleted file mode 100644 index 769c34bc..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_behavior.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url diff --git a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py deleted file mode 100644 index d70f8632..00000000 --- a/vsts/vsts/work_item_tracking_process/v4_1/models/work_item_type_model.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: - :type class_: object - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param id: - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: - :type is_disabled: bool - :param layout: - :type layout: :class:`FormLayout ` - :param name: - :type name: str - :param states: - :type states: list of :class:`WorkItemStateResultModel ` - :param url: - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py deleted file mode 100644 index a15d4f6e..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/__init__.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .behavior_create_model import BehaviorCreateModel -from .behavior_model import BehaviorModel -from .behavior_replace_model import BehaviorReplaceModel -from .control import Control -from .extension import Extension -from .field_model import FieldModel -from .field_update import FieldUpdate -from .form_layout import FormLayout -from .group import Group -from .hide_state_model import HideStateModel -from .page import Page -from .pick_list_item_model import PickListItemModel -from .pick_list_metadata_model import PickListMetadataModel -from .pick_list_model import PickListModel -from .section import Section -from .wit_contribution import WitContribution -from .work_item_behavior_reference import WorkItemBehaviorReference -from .work_item_state_input_model import WorkItemStateInputModel -from .work_item_state_result_model import WorkItemStateResultModel -from .work_item_type_behavior import WorkItemTypeBehavior -from .work_item_type_field_model import WorkItemTypeFieldModel -from .work_item_type_model import WorkItemTypeModel -from .work_item_type_update_model import WorkItemTypeUpdateModel - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py deleted file mode 100644 index 03bd7bd1..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_create_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorCreateModel(Model): - """BehaviorCreateModel. - - :param color: Color - :type color: str - :param inherits: Parent behavior id - :type inherits: str - :param name: Name of the behavior - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, inherits=None, name=None): - super(BehaviorCreateModel, self).__init__() - self.color = color - self.inherits = inherits - self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py deleted file mode 100644 index b6649a46..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_model.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorModel(Model): - """BehaviorModel. - - :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) - :type abstract: bool - :param color: Color - :type color: str - :param description: Description - :type description: str - :param id: Behavior Id - :type id: str - :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: Behavior Name - :type name: str - :param overridden: Is the behavior overrides a behavior from system process - :type overridden: bool - :param rank: Rank - :type rank: int - :param url: - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): - super(BehaviorModel, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.id = id - self.inherits = inherits - self.name = name - self.overridden = overridden - self.rank = rank - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py deleted file mode 100644 index 2f788288..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/behavior_replace_model.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorReplaceModel(Model): - """BehaviorReplaceModel. - - :param color: Color - :type color: str - :param name: Behavior Name - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, name=None): - super(BehaviorReplaceModel, self).__init__() - self.color = color - self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py deleted file mode 100644 index ee7eb2a4..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/control.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py deleted file mode 100644 index 7bab24e6..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/extension.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py deleted file mode 100644 index 19410826..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldModel(Model): - """FieldModel. - - :param description: - :type description: str - :param id: - :type id: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.name = name - self.pick_list = pick_list - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py deleted file mode 100644 index fee524e6..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/field_update.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldUpdate(Model): - """FieldUpdate. - - :param description: - :type description: str - :param id: - :type id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, description=None, id=None): - super(FieldUpdate, self).__init__() - self.description = description - self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py deleted file mode 100644 index 755e5cde..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/form_layout.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py deleted file mode 100644 index 72b75d16..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py deleted file mode 100644 index 46dfa638..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/hide_state_model.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class HideStateModel(Model): - """HideStateModel. - - :param hidden: - :type hidden: bool - """ - - _attribute_map = { - 'hidden': {'key': 'hidden', 'type': 'bool'} - } - - def __init__(self, hidden=None): - super(HideStateModel, self).__init__() - self.hidden = hidden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py deleted file mode 100644 index 0939a8a4..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/page.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py deleted file mode 100644 index 3d2384ac..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_item_model.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PickListItemModel(Model): - """PickListItemModel. - - :param id: - :type id: str - :param value: - :type value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, id=None, value=None): - super(PickListItemModel, self).__init__() - self.id = id - self.value = value diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py deleted file mode 100644 index aa47088c..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_metadata_model.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PickListMetadataModel(Model): - """PickListMetadataModel. - - :param id: - :type id: str - :param is_suggested: - :type is_suggested: bool - :param name: - :type name: str - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): - super(PickListMetadataModel, self).__init__() - self.id = id - self.is_suggested = is_suggested - self.name = name - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py deleted file mode 100644 index ddf10446..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/pick_list_model.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .pick_list_metadata_model import PickListMetadataModel - - -class PickListModel(PickListMetadataModel): - """PickListModel. - - :param id: - :type id: str - :param is_suggested: - :type is_suggested: bool - :param name: - :type name: str - :param type: - :type type: str - :param url: - :type url: str - :param items: - :type items: list of :class:`PickListItemModel ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[PickListItemModel]'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): - super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) - self.items = items diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py deleted file mode 100644 index 28a1c008..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/section.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py deleted file mode 100644 index ca76fd0a..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/wit_contribution.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py deleted file mode 100644 index 7c35db76..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_behavior_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py deleted file mode 100644 index 6a92e6b2..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_input_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateInputModel(Model): - """WorkItemStateInputModel. - - :param color: - :type color: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'} - } - - def __init__(self, color=None, name=None, order=None, state_category=None): - super(WorkItemStateInputModel, self).__init__() - self.color = color - self.name = name - self.order = order - self.state_category = state_category diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py deleted file mode 100644 index 8021cf25..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_state_result_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: - :type color: str - :param hidden: - :type hidden: bool - :param id: - :type id: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - :param url: - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py deleted file mode 100644 index 1dd481a0..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_behavior.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py deleted file mode 100644 index c2da1b17..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_field_model.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeFieldModel(Model): - """WorkItemTypeFieldModel. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py deleted file mode 100644 index 7146e6c4..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_model.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: - :type class_: object - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param id: - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: - :type is_disabled: bool - :param layout: - :type layout: :class:`FormLayout ` - :param name: - :type name: str - :param states: - :type states: list of :class:`WorkItemStateResultModel ` - :param url: - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py deleted file mode 100644 index 6b8be2f4..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_0/models/work_item_type_update_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeUpdateModel(Model): - """WorkItemTypeUpdateModel. - - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param is_disabled: - :type is_disabled: bool - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} - } - - def __init__(self, color=None, description=None, icon=None, is_disabled=None): - super(WorkItemTypeUpdateModel, self).__init__() - self.color = color - self.description = description - self.icon = icon - self.is_disabled = is_disabled diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py deleted file mode 100644 index a15d4f6e..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/__init__.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .behavior_create_model import BehaviorCreateModel -from .behavior_model import BehaviorModel -from .behavior_replace_model import BehaviorReplaceModel -from .control import Control -from .extension import Extension -from .field_model import FieldModel -from .field_update import FieldUpdate -from .form_layout import FormLayout -from .group import Group -from .hide_state_model import HideStateModel -from .page import Page -from .pick_list_item_model import PickListItemModel -from .pick_list_metadata_model import PickListMetadataModel -from .pick_list_model import PickListModel -from .section import Section -from .wit_contribution import WitContribution -from .work_item_behavior_reference import WorkItemBehaviorReference -from .work_item_state_input_model import WorkItemStateInputModel -from .work_item_state_result_model import WorkItemStateResultModel -from .work_item_type_behavior import WorkItemTypeBehavior -from .work_item_type_field_model import WorkItemTypeFieldModel -from .work_item_type_model import WorkItemTypeModel -from .work_item_type_update_model import WorkItemTypeUpdateModel - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py deleted file mode 100644 index 03bd7bd1..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_create_model.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorCreateModel(Model): - """BehaviorCreateModel. - - :param color: Color - :type color: str - :param inherits: Parent behavior id - :type inherits: str - :param name: Name of the behavior - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, inherits=None, name=None): - super(BehaviorCreateModel, self).__init__() - self.color = color - self.inherits = inherits - self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py deleted file mode 100644 index 6221f0b5..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_model.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorModel(Model): - """BehaviorModel. - - :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) - :type abstract: bool - :param color: Color - :type color: str - :param description: Description - :type description: str - :param id: Behavior Id - :type id: str - :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: Behavior Name - :type name: str - :param overridden: Is the behavior overrides a behavior from system process - :type overridden: bool - :param rank: Rank - :type rank: int - :param url: Url of the behavior - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): - super(BehaviorModel, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.id = id - self.inherits = inherits - self.name = name - self.overridden = overridden - self.rank = rank - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py deleted file mode 100644 index 2f788288..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/behavior_replace_model.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorReplaceModel(Model): - """BehaviorReplaceModel. - - :param color: Color - :type color: str - :param name: Behavior Name - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, name=None): - super(BehaviorReplaceModel, self).__init__() - self.color = color - self.name = name diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py deleted file mode 100644 index 491ca1ad..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py +++ /dev/null @@ -1,73 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py deleted file mode 100644 index 7bab24e6..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/extension.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py deleted file mode 100644 index 20fc4505..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_model.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldModel(Model): - """FieldModel. - - :param description: Description about field - :type description: str - :param id: ID of the field - :type id: str - :param name: Name of the field - :type name: str - :param pick_list: Reference to picklist in this field - :type pick_list: :class:`PickListMetadataModel ` - :param type: Type of field - :type type: object - :param url: Url to the field - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.name = name - self.pick_list = pick_list - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py deleted file mode 100644 index fee524e6..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/field_update.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FieldUpdate(Model): - """FieldUpdate. - - :param description: - :type description: str - :param id: - :type id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, description=None, id=None): - super(FieldUpdate, self).__init__() - self.description = description - self.id = id diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py deleted file mode 100644 index 14c97ff8..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/form_layout.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py deleted file mode 100644 index 5cb7fbdd..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/group.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py deleted file mode 100644 index 46dfa638..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/hide_state_model.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class HideStateModel(Model): - """HideStateModel. - - :param hidden: - :type hidden: bool - """ - - _attribute_map = { - 'hidden': {'key': 'hidden', 'type': 'bool'} - } - - def __init__(self, hidden=None): - super(HideStateModel, self).__init__() - self.hidden = hidden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py deleted file mode 100644 index 010972ca..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/page.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py deleted file mode 100644 index 3d2384ac..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_item_model.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PickListItemModel(Model): - """PickListItemModel. - - :param id: - :type id: str - :param value: - :type value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, id=None, value=None): - super(PickListItemModel, self).__init__() - self.id = id - self.value = value diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py deleted file mode 100644 index 9d7a3df7..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_metadata_model.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class PickListMetadataModel(Model): - """PickListMetadataModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): - super(PickListMetadataModel, self).__init__() - self.id = id - self.is_suggested = is_suggested - self.name = name - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py deleted file mode 100644 index 6bdccb78..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/pick_list_model.py +++ /dev/null @@ -1,40 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .pick_list_metadata_model import PickListMetadataModel - - -class PickListModel(PickListMetadataModel): - """PickListModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - :param items: A list of PicklistItemModel - :type items: list of :class:`PickListItemModel ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[PickListItemModel]'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): - super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) - self.items = items diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py deleted file mode 100644 index 42424062..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/section.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py deleted file mode 100644 index ca76fd0a..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/wit_contribution.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py deleted file mode 100644 index 1425c7ac..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_behavior_reference.py +++ /dev/null @@ -1,29 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: The ID of the reference behavior - :type id: str - :param url: The url of the reference behavior - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py deleted file mode 100644 index a6d0b07a..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_input_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateInputModel(Model): - """WorkItemStateInputModel. - - :param color: Color of the state - :type color: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'} - } - - def __init__(self, color=None, name=None, order=None, state_category=None): - super(WorkItemStateInputModel, self).__init__() - self.color = color - self.name = name - self.order = order - self.state_category = state_category diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py deleted file mode 100644 index 9d4adb9e..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_state_result_model.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: Color of the state - :type color: str - :param hidden: Is the state hidden - :type hidden: bool - :param id: The ID of the State - :type id: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - :param url: Url of the state - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py deleted file mode 100644 index 769c34bc..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_behavior.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py deleted file mode 100644 index 3f9aa388..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_field_model.py +++ /dev/null @@ -1,57 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeFieldModel(Model): - """WorkItemTypeFieldModel. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py deleted file mode 100644 index c7c7fa17..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_model.py +++ /dev/null @@ -1,69 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: Behaviors of the work item type - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: Class of the work item type - :type class_: object - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param id: The ID of the work item type - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: Is work item type disabled - :type is_disabled: bool - :param layout: Layout of the work item type - :type layout: :class:`FormLayout ` - :param name: Name of the work item type - :type name: str - :param states: States of the work item type - :type states: list of :class:`WorkItemStateResultModel ` - :param url: Url of the work item type - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url diff --git a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py b/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py deleted file mode 100644 index 858af78d..00000000 --- a/vsts/vsts/work_item_tracking_process_definitions/v4_1/models/work_item_type_update_model.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class WorkItemTypeUpdateModel(Model): - """WorkItemTypeUpdateModel. - - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param is_disabled: Is the workitem type to be disabled - :type is_disabled: bool - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} - } - - def __init__(self, color=None, description=None, icon=None, is_disabled=None): - super(WorkItemTypeUpdateModel, self).__init__() - self.color = color - self.description = description - self.icon = icon - self.is_disabled = is_disabled diff --git a/vsts/vsts/work_item_tracking_process_template/__init__.py b/vsts/vsts/work_item_tracking_process_template/__init__.py deleted file mode 100644 index f885a96e..00000000 --- a/vsts/vsts/work_item_tracking_process_template/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py deleted file mode 100644 index 81330e29..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/models/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .admin_behavior import AdminBehavior -from .admin_behavior_field import AdminBehaviorField -from .check_template_existence_result import CheckTemplateExistenceResult -from .process_import_result import ProcessImportResult -from .process_promote_status import ProcessPromoteStatus -from .validation_issue import ValidationIssue - -__all__ = [ - 'AdminBehavior', - 'AdminBehaviorField', - 'CheckTemplateExistenceResult', - 'ProcessImportResult', - 'ProcessPromoteStatus', - 'ValidationIssue', -] diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py deleted file mode 100644 index a0312319..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AdminBehavior(Model): - """AdminBehavior. - - :param abstract: - :type abstract: bool - :param color: - :type color: str - :param custom: - :type custom: bool - :param description: - :type description: str - :param fields: - :type fields: list of :class:`AdminBehaviorField ` - :param id: - :type id: str - :param inherits: - :type inherits: str - :param name: - :type name: str - :param overriden: - :type overriden: bool - :param rank: - :type rank: int - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'custom': {'key': 'custom', 'type': 'bool'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '[AdminBehaviorField]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overriden': {'key': 'overriden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'} - } - - def __init__(self, abstract=None, color=None, custom=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None): - super(AdminBehavior, self).__init__() - self.abstract = abstract - self.color = color - self.custom = custom - self.description = description - self.fields = fields - self.id = id - self.inherits = inherits - self.name = name - self.overriden = overriden - self.rank = rank diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py deleted file mode 100644 index 628c388f..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/models/admin_behavior_field.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AdminBehaviorField(Model): - """AdminBehaviorField. - - :param behavior_field_id: - :type behavior_field_id: str - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, behavior_field_id=None, id=None, name=None): - super(AdminBehaviorField, self).__init__() - self.behavior_field_id = behavior_field_id - self.id = id - self.name = name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py deleted file mode 100644 index a40cedd5..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/models/check_template_existence_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CheckTemplateExistenceResult(Model): - """CheckTemplateExistenceResult. - - :param does_template_exist: - :type does_template_exist: bool - :param existing_template_name: - :type existing_template_name: str - :param existing_template_type_id: - :type existing_template_type_id: str - :param requested_template_name: - :type requested_template_name: str - """ - - _attribute_map = { - 'does_template_exist': {'key': 'doesTemplateExist', 'type': 'bool'}, - 'existing_template_name': {'key': 'existingTemplateName', 'type': 'str'}, - 'existing_template_type_id': {'key': 'existingTemplateTypeId', 'type': 'str'}, - 'requested_template_name': {'key': 'requestedTemplateName', 'type': 'str'} - } - - def __init__(self, does_template_exist=None, existing_template_name=None, existing_template_type_id=None, requested_template_name=None): - super(CheckTemplateExistenceResult, self).__init__() - self.does_template_exist = does_template_exist - self.existing_template_name = existing_template_name - self.existing_template_type_id = existing_template_type_id - self.requested_template_name = requested_template_name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py deleted file mode 100644 index 189dfa21..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_import_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessImportResult(Model): - """ProcessImportResult. - - :param help_url: - :type help_url: str - :param id: - :type id: str - :param promote_job_id: - :type promote_job_id: str - :param validation_results: - :type validation_results: list of :class:`ValidationIssue ` - """ - - _attribute_map = { - 'help_url': {'key': 'helpUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'promote_job_id': {'key': 'promoteJobId', 'type': 'str'}, - 'validation_results': {'key': 'validationResults', 'type': '[ValidationIssue]'} - } - - def __init__(self, help_url=None, id=None, promote_job_id=None, validation_results=None): - super(ProcessImportResult, self).__init__() - self.help_url = help_url - self.id = id - self.promote_job_id = promote_job_id - self.validation_results = validation_results diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py deleted file mode 100644 index bf64aa29..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/models/process_promote_status.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessPromoteStatus(Model): - """ProcessPromoteStatus. - - :param complete: - :type complete: int - :param id: - :type id: str - :param message: - :type message: str - :param pending: - :type pending: int - :param remaining_retries: - :type remaining_retries: int - :param successful: - :type successful: bool - """ - - _attribute_map = { - 'complete': {'key': 'complete', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'pending': {'key': 'pending', 'type': 'int'}, - 'remaining_retries': {'key': 'remainingRetries', 'type': 'int'}, - 'successful': {'key': 'successful', 'type': 'bool'} - } - - def __init__(self, complete=None, id=None, message=None, pending=None, remaining_retries=None, successful=None): - super(ProcessPromoteStatus, self).__init__() - self.complete = complete - self.id = id - self.message = message - self.pending = pending - self.remaining_retries = remaining_retries - self.successful = successful diff --git a/vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py b/vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py deleted file mode 100644 index db8df249..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_0/models/validation_issue.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ValidationIssue(Model): - """ValidationIssue. - - :param description: - :type description: str - :param file: - :type file: str - :param help_link: - :type help_link: str - :param issue_type: - :type issue_type: object - :param line: - :type line: int - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'file': {'key': 'file', 'type': 'str'}, - 'help_link': {'key': 'helpLink', 'type': 'str'}, - 'issue_type': {'key': 'issueType', 'type': 'object'}, - 'line': {'key': 'line', 'type': 'int'} - } - - def __init__(self, description=None, file=None, help_link=None, issue_type=None, line=None): - super(ValidationIssue, self).__init__() - self.description = description - self.file = file - self.help_link = help_link - self.issue_type = issue_type - self.line = line diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py deleted file mode 100644 index b19525a6..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------------------------- diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py deleted file mode 100644 index 81330e29..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/models/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .admin_behavior import AdminBehavior -from .admin_behavior_field import AdminBehaviorField -from .check_template_existence_result import CheckTemplateExistenceResult -from .process_import_result import ProcessImportResult -from .process_promote_status import ProcessPromoteStatus -from .validation_issue import ValidationIssue - -__all__ = [ - 'AdminBehavior', - 'AdminBehaviorField', - 'CheckTemplateExistenceResult', - 'ProcessImportResult', - 'ProcessPromoteStatus', - 'ValidationIssue', -] diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py deleted file mode 100644 index aad238df..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior.py +++ /dev/null @@ -1,61 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AdminBehavior(Model): - """AdminBehavior. - - :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type). - :type abstract: bool - :param color: The color associated with the behavior. - :type color: str - :param custom: Indicates if the behavior is custom. - :type custom: bool - :param description: The description of the behavior. - :type description: str - :param fields: List of behavior fields. - :type fields: list of :class:`AdminBehaviorField ` - :param id: Behavior ID. - :type id: str - :param inherits: Parent behavior reference. - :type inherits: str - :param name: The behavior name. - :type name: str - :param overriden: Is the behavior overrides a behavior from system process. - :type overriden: bool - :param rank: The rank. - :type rank: int - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'custom': {'key': 'custom', 'type': 'bool'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '[AdminBehaviorField]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overriden': {'key': 'overriden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'} - } - - def __init__(self, abstract=None, color=None, custom=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None): - super(AdminBehavior, self).__init__() - self.abstract = abstract - self.color = color - self.custom = custom - self.description = description - self.fields = fields - self.id = id - self.inherits = inherits - self.name = name - self.overriden = overriden - self.rank = rank diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py deleted file mode 100644 index 8cea2e2e..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/models/admin_behavior_field.py +++ /dev/null @@ -1,33 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AdminBehaviorField(Model): - """AdminBehaviorField. - - :param behavior_field_id: The behavior field identifier. - :type behavior_field_id: str - :param id: The behavior ID. - :type id: str - :param name: The behavior name. - :type name: str - """ - - _attribute_map = { - 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, behavior_field_id=None, id=None, name=None): - super(AdminBehaviorField, self).__init__() - self.behavior_field_id = behavior_field_id - self.id = id - self.name = name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py deleted file mode 100644 index b489ede0..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/models/check_template_existence_result.py +++ /dev/null @@ -1,37 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class CheckTemplateExistenceResult(Model): - """CheckTemplateExistenceResult. - - :param does_template_exist: Indicates whether a template exists. - :type does_template_exist: bool - :param existing_template_name: The name of the existing template. - :type existing_template_name: str - :param existing_template_type_id: The existing template type identifier. - :type existing_template_type_id: str - :param requested_template_name: The name of the requested template. - :type requested_template_name: str - """ - - _attribute_map = { - 'does_template_exist': {'key': 'doesTemplateExist', 'type': 'bool'}, - 'existing_template_name': {'key': 'existingTemplateName', 'type': 'str'}, - 'existing_template_type_id': {'key': 'existingTemplateTypeId', 'type': 'str'}, - 'requested_template_name': {'key': 'requestedTemplateName', 'type': 'str'} - } - - def __init__(self, does_template_exist=None, existing_template_name=None, existing_template_type_id=None, requested_template_name=None): - super(CheckTemplateExistenceResult, self).__init__() - self.does_template_exist = does_template_exist - self.existing_template_name = existing_template_name - self.existing_template_type_id = existing_template_type_id - self.requested_template_name = requested_template_name diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py deleted file mode 100644 index ae9d911e..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_import_result.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessImportResult(Model): - """ProcessImportResult. - - :param help_url: Help URL. - :type help_url: str - :param id: ID of the import operation. - :type id: str - :param is_new: Whether this imported process is new. - :type is_new: bool - :param promote_job_id: The promote job identifier. - :type promote_job_id: str - :param validation_results: The list of validation results. - :type validation_results: list of :class:`ValidationIssue ` - """ - - _attribute_map = { - 'help_url': {'key': 'helpUrl', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_new': {'key': 'isNew', 'type': 'bool'}, - 'promote_job_id': {'key': 'promoteJobId', 'type': 'str'}, - 'validation_results': {'key': 'validationResults', 'type': '[ValidationIssue]'} - } - - def __init__(self, help_url=None, id=None, is_new=None, promote_job_id=None, validation_results=None): - super(ProcessImportResult, self).__init__() - self.help_url = help_url - self.id = id - self.is_new = is_new - self.promote_job_id = promote_job_id - self.validation_results = validation_results diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py deleted file mode 100644 index 8810ad85..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/models/process_promote_status.py +++ /dev/null @@ -1,45 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ProcessPromoteStatus(Model): - """ProcessPromoteStatus. - - :param complete: Number of projects for which promote is complete. - :type complete: int - :param id: ID of the promote operation. - :type id: str - :param message: The error message assoicated with the promote operation. The string will be empty if there are no errors. - :type message: str - :param pending: Number of projects for which promote is pending. - :type pending: int - :param remaining_retries: The remaining retries. - :type remaining_retries: int - :param successful: True if promote finished all the projects successfully. False if still inprogress or any project promote failed. - :type successful: bool - """ - - _attribute_map = { - 'complete': {'key': 'complete', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'pending': {'key': 'pending', 'type': 'int'}, - 'remaining_retries': {'key': 'remainingRetries', 'type': 'int'}, - 'successful': {'key': 'successful', 'type': 'bool'} - } - - def __init__(self, complete=None, id=None, message=None, pending=None, remaining_retries=None, successful=None): - super(ProcessPromoteStatus, self).__init__() - self.complete = complete - self.id = id - self.message = message - self.pending = pending - self.remaining_retries = remaining_retries - self.successful = successful diff --git a/vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py b/vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py deleted file mode 100644 index db8df249..00000000 --- a/vsts/vsts/work_item_tracking_process_template/v4_1/models/validation_issue.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class ValidationIssue(Model): - """ValidationIssue. - - :param description: - :type description: str - :param file: - :type file: str - :param help_link: - :type help_link: str - :param issue_type: - :type issue_type: object - :param line: - :type line: int - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'file': {'key': 'file', 'type': 'str'}, - 'help_link': {'key': 'helpLink', 'type': 'str'}, - 'issue_type': {'key': 'issueType', 'type': 'object'}, - 'line': {'key': 'line', 'type': 'int'} - } - - def __init__(self, description=None, file=None, help_link=None, issue_type=None, line=None): - super(ValidationIssue, self).__init__() - self.description = description - self.file = file - self.help_link = help_link - self.issue_type = issue_type - self.line = line From e7df9e5c24dbab3d08d2a180295363ba116036b7 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 11 Feb 2019 19:56:27 -0500 Subject: [PATCH 099/191] fix up doc strings --- .../devops/v4_0/accounts/accounts_client.py | 6 +- .../azure/devops/v4_0/accounts/models.py | 6 +- .../azure/devops/v4_0/build/build_client.py | 68 ++-- .../azure/devops/v4_0/build/models.py | 168 ++++---- .../contributions/contributions_client.py | 10 +- .../azure/devops/v4_0/contributions/models.py | 52 +-- .../azure/devops/v4_0/core/core_client.py | 42 +- azure-devops/azure/devops/v4_0/core/models.py | 22 +- .../devops/v4_0/dashboard/dashboard_client.py | 70 ++-- .../azure/devops/v4_0/dashboard/models.py | 60 +-- .../extension_management_client.py | 38 +- .../v4_0/extension_management/models.py | 82 ++-- .../feature_availability_client.py | 10 +- .../feature_management_client.py | 26 +- .../devops/v4_0/feature_management/models.py | 10 +- .../file_container/file_container_client.py | 2 +- .../devops/v4_0/gallery/gallery_client.py | 98 ++--- .../azure/devops/v4_0/gallery/models.py | 84 ++-- .../azure/devops/v4_0/git/git_client_base.py | 182 ++++----- azure-devops/azure/devops/v4_0/git/models.py | 300 +++++++------- .../devops/v4_0/identity/identity_client.py | 46 +-- .../azure/devops/v4_0/identity/models.py | 36 +- .../devops/v4_0/licensing/licensing_client.py | 20 +- .../azure/devops/v4_0/licensing/models.py | 10 +- .../devops/v4_0/location/location_client.py | 8 +- .../azure/devops/v4_0/location/models.py | 24 +- .../member_entitlement_management_client.py | 26 +- .../member_entitlement_management/models.py | 48 +-- .../azure/devops/v4_0/notification/models.py | 96 ++--- .../v4_0/notification/notification_client.py | 26 +- .../azure/devops/v4_0/operations/models.py | 2 +- .../v4_0/operations/operations_client.py | 2 +- .../azure/devops/v4_0/policy/models.py | 20 +- .../azure/devops/v4_0/policy/policy_client.py | 18 +- .../devops/v4_0/project_analysis/models.py | 8 +- .../project_analysis_client.py | 4 +- .../azure/devops/v4_0/security/models.py | 8 +- .../devops/v4_0/security/security_client.py | 12 +- .../azure/devops/v4_0/service_hooks/models.py | 74 ++-- .../service_hooks/service_hooks_client.py | 40 +- azure-devops/azure/devops/v4_0/task/models.py | 46 +-- .../azure/devops/v4_0/task/task_client.py | 24 +- .../azure/devops/v4_0/task_agent/models.py | 210 +++++----- .../v4_0/task_agent/task_agent_client.py | 178 ++++----- azure-devops/azure/devops/v4_0/test/models.py | 360 ++++++++--------- .../azure/devops/v4_0/test/test_client.py | 152 +++---- azure-devops/azure/devops/v4_0/tfvc/models.py | 94 ++--- .../azure/devops/v4_0/tfvc/tfvc_client.py | 42 +- azure-devops/azure/devops/v4_0/wiki/models.py | 38 +- .../azure/devops/v4_0/wiki/wiki_client.py | 20 +- azure-devops/azure/devops/v4_0/work/models.py | 114 +++--- .../azure/devops/v4_0/work/work_client.py | 134 +++---- .../devops/v4_0/work_item_tracking/models.py | 116 +++--- .../work_item_tracking_client.py | 118 +++--- .../v4_0/work_item_tracking_process/models.py | 38 +- .../work_item_tracking_process_client.py | 26 +- .../models.py | 34 +- ...tem_tracking_process_definitions_client.py | 106 ++--- .../models.py | 4 +- ...k_item_tracking_process_template_client.py | 8 +- .../azure/devops/v4_1/accounts/models.py | 6 +- .../azure/devops/v4_1/build/build_client.py | 71 ++-- .../azure/devops/v4_1/build/models.py | 214 +++++----- .../cloud_load_test/cloud_load_test_client.py | 40 +- .../devops/v4_1/cloud_load_test/models.py | 92 ++--- .../contributions/contributions_client.py | 10 +- .../azure/devops/v4_1/contributions/models.py | 58 +-- .../azure/devops/v4_1/core/core_client.py | 38 +- azure-devops/azure/devops/v4_1/core/models.py | 28 +- .../devops/v4_1/dashboard/dashboard_client.py | 70 ++-- .../azure/devops/v4_1/dashboard/models.py | 60 +-- .../extension_management_client.py | 8 +- .../v4_1/extension_management/models.py | 92 ++--- .../feature_availability_client.py | 10 +- .../feature_management_client.py | 26 +- .../devops/v4_1/feature_management/models.py | 10 +- .../azure/devops/v4_1/feed/feed_client.py | 40 +- azure-devops/azure/devops/v4_1/feed/models.py | 74 ++-- .../file_container/file_container_client.py | 2 +- .../devops/v4_1/gallery/gallery_client.py | 118 +++--- .../azure/devops/v4_1/gallery/models.py | 98 ++--- .../azure/devops/v4_1/git/git_client_base.py | 194 ++++----- azure-devops/azure/devops/v4_1/git/models.py | 314 +++++++-------- .../azure/devops/v4_1/graph/graph_client.py | 32 +- .../azure/devops/v4_1/graph/models.py | 36 +- .../devops/v4_1/identity/identity_client.py | 46 +-- .../azure/devops/v4_1/identity/models.py | 46 +-- .../devops/v4_1/licensing/licensing_client.py | 20 +- .../azure/devops/v4_1/licensing/models.py | 14 +- .../devops/v4_1/location/location_client.py | 10 +- .../azure/devops/v4_1/location/models.py | 34 +- .../azure/devops/v4_1/maven/maven_client.py | 6 +- .../azure/devops/v4_1/maven/models.py | 54 +-- .../member_entitlement_management_client.py | 30 +- .../member_entitlement_management/models.py | 96 ++--- .../azure/devops/v4_1/notification/models.py | 116 +++--- .../v4_1/notification/notification_client.py | 34 +- azure-devops/azure/devops/v4_1/npm/models.py | 10 +- .../azure/devops/v4_1/npm/npm_client.py | 26 +- .../azure/devops/v4_1/nuGet/models.py | 8 +- .../azure/devops/v4_1/nuGet/nuGet_client.py | 12 +- .../azure/devops/v4_1/operations/models.py | 4 +- .../v4_1/operations/operations_client.py | 2 +- .../azure/devops/v4_1/policy/models.py | 24 +- .../azure/devops/v4_1/policy/policy_client.py | 18 +- .../azure/devops/v4_1/profile/models.py | 6 +- .../devops/v4_1/profile/profile_client.py | 2 +- .../devops/v4_1/project_analysis/models.py | 10 +- .../project_analysis_client.py | 6 +- .../azure/devops/v4_1/security/models.py | 8 +- .../devops/v4_1/security/security_client.py | 10 +- .../devops/v4_1/service_endpoint/models.py | 74 ++-- .../service_endpoint_client.py | 14 +- .../azure/devops/v4_1/service_hooks/models.py | 90 ++--- .../service_hooks/service_hooks_client.py | 46 +-- .../azure/devops/v4_1/symbol/models.py | 8 +- .../azure/devops/v4_1/symbol/symbol_client.py | 20 +- azure-devops/azure/devops/v4_1/task/models.py | 46 +-- .../azure/devops/v4_1/task/task_client.py | 18 +- .../azure/devops/v4_1/task_agent/models.py | 264 ++++++------ .../v4_1/task_agent/task_agent_client.py | 30 +- azure-devops/azure/devops/v4_1/test/models.py | 376 +++++++++--------- .../azure/devops/v4_1/test/test_client.py | 156 ++++---- azure-devops/azure/devops/v4_1/tfvc/models.py | 98 ++--- .../azure/devops/v4_1/tfvc/tfvc_client.py | 42 +- azure-devops/azure/devops/v4_1/wiki/models.py | 18 +- .../azure/devops/v4_1/wiki/wiki_client.py | 32 +- azure-devops/azure/devops/v4_1/work/models.py | 122 +++--- .../azure/devops/v4_1/work/work_client.py | 148 +++---- .../devops/v4_1/work_item_tracking/models.py | 132 +++--- .../work_item_tracking_client.py | 110 ++--- .../v4_1/work_item_tracking_process/models.py | 38 +- .../work_item_tracking_process_client.py | 26 +- .../models.py | 34 +- ...tem_tracking_process_definitions_client.py | 106 ++--- .../models.py | 4 +- ...k_item_tracking_process_template_client.py | 8 +- vsts/vsts/_file_cache.py | 176 -------- vsts/vsts/exceptions.py | 41 -- vsts/vsts/vss_client.py | 275 ------------- vsts/vsts/vss_client_configuration.py | 17 - vsts/vsts/vss_connection.py | 104 ----- 142 files changed, 4090 insertions(+), 4702 deletions(-) delete mode 100644 vsts/vsts/_file_cache.py delete mode 100644 vsts/vsts/exceptions.py delete mode 100644 vsts/vsts/vss_client.py delete mode 100644 vsts/vsts/vss_client_configuration.py delete mode 100644 vsts/vsts/vss_connection.py diff --git a/azure-devops/azure/devops/v4_0/accounts/accounts_client.py b/azure-devops/azure/devops/v4_0/accounts/accounts_client.py index c6d88079..d2686cdc 100644 --- a/azure-devops/azure/devops/v4_0/accounts/accounts_client.py +++ b/azure-devops/azure/devops/v4_0/accounts/accounts_client.py @@ -27,9 +27,9 @@ def __init__(self, base_url=None, creds=None): def create_account(self, info, use_precreated=None): """CreateAccount. - :param :class:` ` info: + :param :class:` ` info: :param bool use_precreated: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if use_precreated is not None: @@ -45,7 +45,7 @@ def create_account(self, info, use_precreated=None): def get_account(self, account_id): """GetAccount. :param str account_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if account_id is not None: diff --git a/azure-devops/azure/devops/v4_0/accounts/models.py b/azure-devops/azure/devops/v4_0/accounts/models.py index affc91d3..972b8919 100644 --- a/azure-devops/azure/devops/v4_0/accounts/models.py +++ b/azure-devops/azure/devops/v4_0/accounts/models.py @@ -41,7 +41,7 @@ class Account(Model): :param organization_name: Organization that created the account :type organization_name: str :param properties: Extended properties - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_reason: Reason for current status :type status_reason: str """ @@ -95,9 +95,9 @@ class AccountCreateInfoInternal(Model): :param organization: :type organization: str :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` + :type preferences: :class:`AccountPreferencesInternal ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param service_definitions: :type service_definitions: list of { key: str; value: str } """ diff --git a/azure-devops/azure/devops/v4_0/build/build_client.py b/azure-devops/azure/devops/v4_0/build/build_client.py index a11bde81..6424bd96 100644 --- a/azure-devops/azure/devops/v4_0/build/build_client.py +++ b/azure-devops/azure/devops/v4_0/build/build_client.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def create_artifact(self, artifact, build_id, project=None): """CreateArtifact. Associates an artifact with a build - :param :class:` ` artifact: + :param :class:` ` artifact: :param int build_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -52,7 +52,7 @@ def get_artifact(self, build_id, artifact_name, project=None): :param int build_id: :param str artifact_name: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -144,7 +144,7 @@ def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): :param str repo_type: :param str repo_id: :param str branch_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -211,7 +211,7 @@ def get_build(self, build_id, project=None, property_filters=None): :param int build_id: :param str project: Project ID or project name :param str property_filters: A comma-delimited list of properties to include in the results - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -313,11 +313,11 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket=None): """QueueBuild. Queues a build - :param :class:` ` build: + :param :class:` ` build: :param str project: Project ID or project name :param bool ignore_warnings: :param str check_in_ticket: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -339,10 +339,10 @@ def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket def update_build(self, build, build_id, project=None): """UpdateBuild. Updates a build - :param :class:` ` build: + :param :class:` ` build: :param int build_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -434,7 +434,7 @@ def get_build_controller(self, controller_id): """GetBuildController. Gets a controller :param int controller_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if controller_id is not None: @@ -463,11 +463,11 @@ def get_build_controllers(self, name=None): def create_definition(self, definition, project=None, definition_to_clone_id=None, definition_to_clone_revision=None): """CreateDefinition. Creates a new definition - :param :class:` ` definition: + :param :class:` ` definition: :param str project: Project ID or project name :param int definition_to_clone_id: :param int definition_to_clone_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -511,7 +511,7 @@ def get_definition(self, definition_id, project=None, revision=None, min_metrics :param datetime min_metrics_time: :param [str] property_filters: :param bool include_latest_builds: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -598,12 +598,12 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. Updates an existing definition - :param :class:` ` definition: + :param :class:` ` definition: :param int definition_id: :param str project: Project ID or project name :param int secrets_source_definition_id: :param int secrets_source_definition_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -627,10 +627,10 @@ def update_definition(self, definition, definition_id, project=None, secrets_sou def create_folder(self, folder, project, path): """CreateFolder. [Preview API] Creates a new folder - :param :class:` ` folder: + :param :class:` ` folder: :param str project: Project ID or project name :param str path: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -687,10 +687,10 @@ def get_folders(self, project, path=None, query_order=None): def update_folder(self, folder, project, path): """UpdateFolder. [Preview API] Updates an existing folder at given existing path - :param :class:` ` folder: + :param :class:` ` folder: :param str project: Project ID or project name :param str path: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -876,7 +876,7 @@ def get_build_properties(self, project, build_id, filter=None): :param str project: Project ID or project name :param int build_id: The build id. :param [str] filter: Filter to specific properties. Defaults to all properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -897,10 +897,10 @@ def get_build_properties(self, project, build_id, filter=None): def update_build_properties(self, document, project, build_id): """UpdateBuildProperties. [Preview API] Updates properties for a build. - :param :class:`<[JsonPatchOperation]> ` document: + :param :class:`<[JsonPatchOperation]> ` document: :param str project: Project ID or project name :param int build_id: The build id. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -922,7 +922,7 @@ def get_definition_properties(self, project, definition_id, filter=None): :param str project: Project ID or project name :param int definition_id: The definition id. :param [str] filter: Filter to specific properties. Defaults to all properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -943,10 +943,10 @@ def get_definition_properties(self, project, definition_id, filter=None): def update_definition_properties(self, document, project, definition_id): """UpdateDefinitionProperties. [Preview API] Updates properties for a definition. - :param :class:`<[JsonPatchOperation]> ` document: + :param :class:`<[JsonPatchOperation]> ` document: :param str project: Project ID or project name :param int definition_id: The definition id. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -968,7 +968,7 @@ def get_build_report(self, project, build_id, type=None): :param str project: Project ID or project name :param int build_id: :param str type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1016,7 +1016,7 @@ def get_build_report_html_content(self, project, build_id, type=None, **kwargs): def get_resource_usage(self): """GetResourceUsage. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='3813d06c-9e36-4ea1-aac3-61a485d60e3d', @@ -1044,7 +1044,7 @@ def get_definition_revisions(self, project, definition_id): def get_build_settings(self): """GetBuildSettings. Gets the build settings - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', @@ -1054,8 +1054,8 @@ def get_build_settings(self): def update_build_settings(self, settings): """UpdateBuildSettings. Updates the build settings - :param :class:` ` settings: - :rtype: :class:` ` + :param :class:` ` settings: + :rtype: :class:` ` """ content = self._serialize.body(settings, 'BuildSettings') response = self._send(http_method='PATCH', @@ -1267,7 +1267,7 @@ def get_template(self, project, template_id): Gets definition template filtered by id :param str project: Project ID or project name :param str template_id: Id of the requested template. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1298,10 +1298,10 @@ def get_templates(self, project): def save_template(self, template, project, template_id): """SaveTemplate. Saves a definition template - :param :class:` ` template: + :param :class:` ` template: :param str project: Project ID or project name :param str template_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1324,7 +1324,7 @@ def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None :param str timeline_id: :param int change_id: :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_0/build/models.py b/azure-devops/azure/devops/v4_0/build/models.py index eb2cd18a..ecff5208 100644 --- a/azure-devops/azure/devops/v4_0/build/models.py +++ b/azure-devops/azure/devops/v4_0/build/models.py @@ -13,13 +13,13 @@ class AgentPoolQueue(Model): """AgentPoolQueue. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Id of the resource :type id: int :param name: Name of the linked resource (definition name, controller name, etc.) :type name: str :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param url: Full http link to the resource :type url: str """ @@ -45,7 +45,7 @@ class ArtifactResource(Model): """ArtifactResource. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param data: The type-specific resource data. For example, "#/10002/5/drop", "$/drops/5", "\\myshare\myfolder\mydrops\5" :type data: str :param download_url: Link to the resource. This might include things like query parameters to download as a zip file @@ -81,25 +81,25 @@ class Build(Model): """Build. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param build_number: Build number/name of the build :type build_number: str :param build_number_revision: Build number revision :type build_number_revision: int :param controller: The build controller. This should only be set if the definition type is Xaml. - :type controller: :class:`BuildController ` + :type controller: :class:`BuildController ` :param definition: The definition associated with the build - :type definition: :class:`DefinitionReference ` + :type definition: :class:`DefinitionReference ` :param deleted: Indicates whether the build has been deleted. :type deleted: bool :param deleted_by: Process or person that deleted the build - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: Date the build was deleted :type deleted_date: datetime :param deleted_reason: Description of how the build was deleted :type deleted_reason: str :param demands: Demands - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param finish_time: Time that the build was completed :type finish_time: datetime :param id: Id of the build @@ -107,27 +107,27 @@ class Build(Model): :param keep_forever: :type keep_forever: bool :param last_changed_by: Process or person that last changed the build - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: Date the build was last changed :type last_changed_date: datetime :param logs: Log location of the build - :type logs: :class:`BuildLogReference ` + :type logs: :class:`BuildLogReference ` :param orchestration_plan: Orchestration plan for the build - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` :param parameters: Parameters for the build :type parameters: str :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` + :type plans: list of :class:`TaskOrchestrationPlanReference ` :param priority: The build's priority :type priority: object :param project: The team project - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param quality: Quality of the xaml build (good, bad, etc.) :type quality: str :param queue: The queue. This should only be set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param queue_options: Queue option of the build. :type queue_options: object :param queue_position: The current position of the build in the queue @@ -137,11 +137,11 @@ class Build(Model): :param reason: Reason that the build was created :type reason: object :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param requested_by: The identity that queued the build - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param requested_for: The identity on whose behalf the build was queued - :type requested_for: :class:`IdentityRef ` + :type requested_for: :class:`IdentityRef ` :param result: The build result :type result: object :param retained_by_release: Specifies if Build should be retained by Release @@ -163,7 +163,7 @@ class Build(Model): :param url: REST url of the build :type url: str :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` + :type validation_results: list of :class:`BuildRequestValidationResult ` """ _attribute_map = { @@ -265,7 +265,7 @@ class BuildArtifact(Model): :param name: The name of the artifact :type name: str :param resource: The actual resource - :type resource: :class:`ArtifactResource ` + :type resource: :class:`ArtifactResource ` """ _attribute_map = { @@ -305,7 +305,7 @@ class BuildDefinitionRevision(Model): """BuildDefinitionRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -361,7 +361,7 @@ class BuildDefinitionStep(Model): :param ref_name: :type ref_name: str :param task: - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: :type timeout_in_minutes: int """ @@ -411,7 +411,7 @@ class BuildDefinitionTemplate(Model): :param name: :type name: str :param template: - :type template: :class:`BuildDefinition ` + :type template: :class:`BuildDefinition ` """ _attribute_map = { @@ -455,7 +455,7 @@ class BuildDefinitionTemplate3_2(Model): :param name: :type name: str :param template: - :type template: :class:`BuildDefinition3_2 ` + :type template: :class:`BuildDefinition3_2 ` """ _attribute_map = { @@ -561,7 +561,7 @@ class BuildOption(Model): """BuildOption. :param definition: - :type definition: :class:`BuildOptionDefinitionReference ` + :type definition: :class:`BuildOptionDefinitionReference ` :param enabled: :type enabled: bool :param inputs: @@ -795,9 +795,9 @@ class BuildSettings(Model): :param days_to_keep_deleted_builds_before_destroy: :type days_to_keep_deleted_builds_before_destroy: int :param default_retention_policy: - :type default_retention_policy: :class:`RetentionPolicy ` + :type default_retention_policy: :class:`RetentionPolicy ` :param maximum_retention_policy: - :type maximum_retention_policy: :class:`RetentionPolicy ` + :type maximum_retention_policy: :class:`RetentionPolicy ` """ _attribute_map = { @@ -817,7 +817,7 @@ class Change(Model): """Change. :param author: The author of the change. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param display_uri: The location of a user-friendly representation of the resource. :type display_uri: str :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. @@ -909,7 +909,7 @@ class DefinitionReference(Model): :param path: The path this definitions belongs to :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: If builds can be queued from this definition :type queue_status: object :param revision: The definition revision number. @@ -969,19 +969,19 @@ class Folder(Model): """Folder. :param created_by: Process or person who created the folder - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Creation date of the folder :type created_on: datetime :param description: The description of the folder :type description: str :param last_changed_by: Process or person that last changed the folder - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: Date the folder was last changed :type last_changed_date: datetime :param path: The path of the folder :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -1117,11 +1117,11 @@ class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :type data_source_bindings: list of :class:`DataSourceBindingBase ` :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` + :type inputs: list of :class:`TaskInputDefinitionBase ` :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` """ _attribute_map = { @@ -1283,7 +1283,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -1461,13 +1461,13 @@ class TimelineRecord(Model): """TimelineRecord. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param change_id: :type change_id: int :param current_operation: :type current_operation: str :param details: - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: :type error_count: int :param finish_time: @@ -1475,11 +1475,11 @@ class TimelineRecord(Model): :param id: :type id: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: :type last_modified: datetime :param log: - :type log: :class:`BuildLogReference ` + :type log: :class:`BuildLogReference ` :param name: :type name: str :param order: @@ -1497,7 +1497,7 @@ class TimelineRecord(Model): :param state: :type state: object :param task: - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: :type type: str :param url: @@ -1655,7 +1655,7 @@ class BuildController(XamlBuildControllerReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: The date the controller was created. :type created_date: datetime :param description: The description of the controller. @@ -1706,7 +1706,7 @@ class BuildDefinitionReference(DefinitionReference): :param path: The path this definitions belongs to :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: If builds can be queued from this definition :type queue_status: object :param revision: The definition revision number. @@ -1718,17 +1718,17 @@ class BuildDefinitionReference(DefinitionReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -1801,9 +1801,9 @@ class BuildOptionDefinition(BuildOptionDefinitionReference): :param description: :type description: str :param groups: - :type groups: list of :class:`BuildOptionGroupDefinition ` + :type groups: list of :class:`BuildOptionGroupDefinition ` :param inputs: - :type inputs: list of :class:`BuildOptionInputDefinition ` + :type inputs: list of :class:`BuildOptionInputDefinition ` :param name: :type name: str :param ordinal: @@ -1842,7 +1842,7 @@ class Timeline(TimelineReference): :param last_changed_on: :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -1904,7 +1904,7 @@ class BuildDefinition(BuildDefinitionReference): :param path: The path this definitions belongs to :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: If builds can be queued from this definition :type queue_status: object :param revision: The definition revision number. @@ -1916,17 +1916,17 @@ class BuildDefinition(BuildDefinitionReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition :type badge_enabled: bool :param build_number_format: The build number format @@ -1934,7 +1934,7 @@ class BuildDefinition(BuildDefinitionReference): :param comment: The comment entered when saving the definition :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description :type description: str :param drop_location: The drop location for the definition @@ -1946,27 +1946,27 @@ class BuildDefinition(BuildDefinitionReference): :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition :type job_timeout_in_minutes: int :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`object ` + :type process: :class:`object ` :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` + :type variable_groups: list of :class:`VariableGroup ` :param variables: :type variables: dict """ @@ -2048,7 +2048,7 @@ class BuildDefinition3_2(BuildDefinitionReference): :param path: The path this definitions belongs to :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: If builds can be queued from this definition :type queue_status: object :param revision: The definition revision number. @@ -2060,27 +2060,27 @@ class BuildDefinition3_2(BuildDefinitionReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition :type badge_enabled: bool :param build: - :type build: list of :class:`BuildDefinitionStep ` + :type build: list of :class:`BuildDefinitionStep ` :param build_number_format: The build number format :type build_number_format: str :param comment: The comment entered when saving the definition :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description :type description: str :param drop_location: The drop location for the definition @@ -2092,23 +2092,23 @@ class BuildDefinition3_2(BuildDefinitionReference): :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition :type job_timeout_in_minutes: int :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ diff --git a/azure-devops/azure/devops/v4_0/contributions/contributions_client.py b/azure-devops/azure/devops/v4_0/contributions/contributions_client.py index b60499b9..14b3ce23 100644 --- a/azure-devops/azure/devops/v4_0/contributions/contributions_client.py +++ b/azure-devops/azure/devops/v4_0/contributions/contributions_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def query_contribution_nodes(self, query): """QueryContributionNodes. [Preview API] Query for contribution nodes and provider details according the parameters in the passed in query object. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributionNodeQuery') response = self._send(http_method='POST', @@ -41,8 +41,8 @@ def query_contribution_nodes(self, query): def query_data_providers(self, query): """QueryDataProviders. [Preview API] - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'DataProviderQuery') response = self._send(http_method='POST', @@ -80,7 +80,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: :param str extension_name: :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: diff --git a/azure-devops/azure/devops/v4_0/contributions/models.py b/azure-devops/azure/devops/v4_0/contributions/models.py index 721de8ae..91a5e32b 100644 --- a/azure-devops/azure/devops/v4_0/contributions/models.py +++ b/azure-devops/azure/devops/v4_0/contributions/models.py @@ -43,7 +43,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter class :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -242,7 +242,7 @@ class DataProviderQuery(Model): """DataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str """ @@ -268,7 +268,7 @@ class DataProviderResult(Model): :param exceptions: Set of exceptions that occurred resolving the data providers. :type exceptions: dict :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` + :type resolved_providers: list of :class:`ResolvedDataProvider ` :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers :type shared_data: dict """ @@ -310,19 +310,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -374,7 +374,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -392,19 +392,19 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param scopes: List of all oauth scopes required by this extension @@ -448,19 +448,19 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param scopes: List of all oauth scopes required by this extension @@ -472,11 +472,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -533,7 +533,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -625,7 +625,7 @@ class SerializedContributionNode(Model): :param children: List of ids for contributions which are children to the current contribution. :type children: list of str :param contribution: Contribution associated with this node. - :type contribution: :class:`Contribution ` + :type contribution: :class:`Contribution ` :param parents: List of ids for contributions which are parents to the current contribution. :type parents: list of str """ @@ -647,7 +647,7 @@ class ClientDataProviderQuery(DataProviderQuery): """ClientDataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. @@ -675,11 +675,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type diff --git a/azure-devops/azure/devops/v4_0/core/core_client.py b/azure-devops/azure/devops/v4_0/core/core_client.py index deff49f6..f1b79b17 100644 --- a/azure-devops/azure/devops/v4_0/core/core_client.py +++ b/azure-devops/azure/devops/v4_0/core/core_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_connected_service(self, connected_service_creation_data, project_id): """CreateConnectedService. [Preview API] - :param :class:` ` connected_service_creation_data: + :param :class:` ` connected_service_creation_data: :param str project_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -48,7 +48,7 @@ def get_connected_service_details(self, project_id, name): [Preview API] :param str project_id: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -84,7 +84,7 @@ def get_connected_services(self, project_id, kind=None): def create_identity_mru(self, mru_data, mru_name): """CreateIdentityMru. [Preview API] - :param :class:` ` mru_data: + :param :class:` ` mru_data: :param str mru_name: """ route_values = {} @@ -115,7 +115,7 @@ def get_identity_mru(self, mru_name): def update_identity_mru(self, mru_data, mru_name): """UpdateIdentityMru. [Preview API] - :param :class:` ` mru_data: + :param :class:` ` mru_data: :param str mru_name: """ route_values = {} @@ -157,7 +157,7 @@ def get_process_by_id(self, process_id): """GetProcessById. Retrieve process by id :param str process_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -182,7 +182,7 @@ def get_project_collection(self, collection_id): """GetProjectCollection. Get project collection with the specified id or name. :param str collection_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if collection_id is not None: @@ -232,7 +232,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non :param str project_id: :param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false). :param bool include_history: Search within renamed projects (that had such name in the past). - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -276,8 +276,8 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke def queue_create_project(self, project_to_create): """QueueCreateProject. Queue a project creation. - :param :class:` ` project_to_create: The project to create. - :rtype: :class:` ` + :param :class:` ` project_to_create: The project to create. + :rtype: :class:` ` """ content = self._serialize.body(project_to_create, 'TeamProject') response = self._send(http_method='POST', @@ -290,7 +290,7 @@ def queue_delete_project(self, project_id): """QueueDeleteProject. Queue a project deletion. :param str project_id: The project id of the project to delete. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -304,9 +304,9 @@ def queue_delete_project(self, project_id): def update_project(self, project_update, project_id): """UpdateProject. Update an existing project's name, abbreviation, or description. - :param :class:` ` project_update: The updates for the project. + :param :class:` ` project_update: The updates for the project. :param str project_id: The project id of the project to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -344,7 +344,7 @@ def set_project_properties(self, project_id, patch_document): """SetProjectProperties. [Preview API] Create, update, and delete team project properties. :param str project_id: The team project ID. - :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. + :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. """ route_values = {} if project_id is not None: @@ -360,8 +360,8 @@ def set_project_properties(self, project_id, patch_document): def create_or_update_proxy(self, proxy): """CreateOrUpdateProxy. [Preview API] - :param :class:` ` proxy: - :rtype: :class:` ` + :param :class:` ` proxy: + :rtype: :class:` ` """ content = self._serialize.body(proxy, 'Proxy') response = self._send(http_method='PUT', @@ -404,9 +404,9 @@ def get_proxies(self, proxy_url=None): def create_team(self, team, project_id): """CreateTeam. Creates a team - :param :class:` ` team: The team data used to create the team. + :param :class:` ` team: The team data used to create the team. :param str project_id: The name or id (GUID) of the team project in which to create the team. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -440,7 +440,7 @@ def get_team(self, project_id, team_id): Gets a team :param str project_id: :param str team_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -478,10 +478,10 @@ def get_teams(self, project_id, top=None, skip=None): def update_team(self, team_data, project_id, team_id): """UpdateTeam. Updates a team's name and/or description - :param :class:` ` team_data: + :param :class:` ` team_data: :param str project_id: The name or id (GUID) of the team project containing the team to update. :param str team_id: The name of id of the team to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: diff --git a/azure-devops/azure/devops/v4_0/core/models.py b/azure-devops/azure/devops/v4_0/core/models.py index f0232590..3c6d36ca 100644 --- a/azure-devops/azure/devops/v4_0/core/models.py +++ b/azure-devops/azure/devops/v4_0/core/models.py @@ -163,7 +163,7 @@ class ProjectInfo(Model): :param name: :type name: str :param properties: - :type properties: list of :class:`ProjectProperty ` + :type properties: list of :class:`ProjectProperty ` :param revision: Current revision of the project :type revision: long :param state: @@ -229,7 +229,7 @@ class Proxy(Model): """Proxy. :param authorization: - :type authorization: :class:`ProxyAuthorization ` + :type authorization: :class:`ProxyAuthorization ` :param description: This is a description string :type description: str :param friendly_name: The friendly name of the server @@ -273,9 +273,9 @@ class ProxyAuthorization(Model): :param client_id: Gets or sets the client identifier for this proxy. :type client_id: str :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` + :type identity: :class:`str ` :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` + :type public_key: :class:`PublicKey ` """ _attribute_map = { @@ -449,7 +449,7 @@ class Process(ProcessReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -499,11 +499,11 @@ class TeamProject(TeamProjectReference): :param visibility: Project visibility. :type visibility: object :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param capabilities: Set of capabilities this project has (such as process template & version control). :type capabilities: dict :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` + :type default_team: :class:`WebApiTeamRef ` """ _attribute_map = { @@ -537,7 +537,7 @@ class TeamProjectCollection(TeamProjectCollectionReference): :param url: Collection REST Url. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Project collection description. :type description: str :param state: Project collection state. @@ -566,7 +566,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param url: :type url: str :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` + :type authenticated_by: :class:`IdentityRef ` :param description: Extra description on the service. :type description: str :param friendly_name: Friendly Name of service connection @@ -576,7 +576,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param kind: The kind of service. :type kind: str :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com :type service_uri: str """ @@ -611,7 +611,7 @@ class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): :param url: :type url: str :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` + :type connected_service_meta_data: :class:`WebApiConnectedService ` :param credentials_xml: Credential info :type credentials_xml: str :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com diff --git a/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py b/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py index 687858fc..20b652b7 100644 --- a/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py +++ b/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_dashboard(self, dashboard, team_context): """CreateDashboard. [Preview API] - :param :class:` ` dashboard: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` dashboard: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -60,7 +60,7 @@ def create_dashboard(self, dashboard, team_context): def delete_dashboard(self, team_context, dashboard_id): """DeleteDashboard. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: """ project = None @@ -90,9 +90,9 @@ def delete_dashboard(self, team_context, dashboard_id): def get_dashboard(self, team_context, dashboard_id): """GetDashboard. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -122,8 +122,8 @@ def get_dashboard(self, team_context, dashboard_id): def get_dashboards(self, team_context): """GetDashboards. [Preview API] - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -151,10 +151,10 @@ def get_dashboards(self, team_context): def replace_dashboard(self, dashboard, team_context, dashboard_id): """ReplaceDashboard. [Preview API] - :param :class:` ` dashboard: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` dashboard: + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -186,9 +186,9 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): def replace_dashboards(self, group, team_context): """ReplaceDashboards. [Preview API] - :param :class:` ` group: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` group: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -218,10 +218,10 @@ def replace_dashboards(self, group, team_context): def create_widget(self, widget, team_context, dashboard_id): """CreateWidget. [Preview API] - :param :class:` ` widget: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -253,10 +253,10 @@ def create_widget(self, widget, team_context, dashboard_id): def delete_widget(self, team_context, dashboard_id, widget_id): """DeleteWidget. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: :param str widget_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -288,10 +288,10 @@ def delete_widget(self, team_context, dashboard_id, widget_id): def get_widget(self, team_context, dashboard_id, widget_id): """GetWidget. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: :param str widget_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -323,10 +323,10 @@ def get_widget(self, team_context, dashboard_id, widget_id): def get_widgets(self, team_context, dashboard_id, eTag=None): """GetWidgets. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -359,11 +359,11 @@ def get_widgets(self, team_context, dashboard_id, eTag=None): def replace_widget(self, widget, team_context, dashboard_id, widget_id): """ReplaceWidget. [Preview API] - :param :class:` ` widget: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: :param str widget_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -398,10 +398,10 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): """ReplaceWidgets. [Preview API] :param [Widget] widgets: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -436,11 +436,11 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): def update_widget(self, widget, team_context, dashboard_id, widget_id): """UpdateWidget. [Preview API] - :param :class:` ` widget: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: :param str widget_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -475,10 +475,10 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): """UpdateWidgets. [Preview API] :param [Widget] widgets: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -514,7 +514,7 @@ def get_widget_metadata(self, contribution_id): """GetWidgetMetadata. [Preview API] :param str contribution_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if contribution_id is not None: @@ -529,7 +529,7 @@ def get_widget_types(self, scope): """GetWidgetTypes. [Preview API] Returns available widgets in alphabetical order. :param str scope: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope is not None: diff --git a/azure-devops/azure/devops/v4_0/dashboard/models.py b/azure-devops/azure/devops/v4_0/dashboard/models.py index 7f6d937c..0ff06d35 100644 --- a/azure-devops/azure/devops/v4_0/dashboard/models.py +++ b/azure-devops/azure/devops/v4_0/dashboard/models.py @@ -13,7 +13,7 @@ class Dashboard(Model): """Dashboard. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param eTag: @@ -31,7 +31,7 @@ class Dashboard(Model): :param url: :type url: str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -65,9 +65,9 @@ class DashboardGroup(Model): """DashboardGroup. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dashboard_entries: - :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :type dashboard_entries: list of :class:`DashboardGroupEntry ` :param permission: :type permission: object :param url: @@ -93,7 +93,7 @@ class DashboardGroupEntry(Dashboard): """DashboardGroupEntry. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param eTag: @@ -111,7 +111,7 @@ class DashboardGroupEntry(Dashboard): :param url: :type url: str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -135,7 +135,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): """DashboardGroupEntryResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param eTag: @@ -153,7 +153,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -177,7 +177,7 @@ class DashboardResponse(DashboardGroupEntry): """DashboardResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param eTag: @@ -195,7 +195,7 @@ class DashboardResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -311,9 +311,9 @@ class Widget(Model): """Widget. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. :type artifact_id: str :param configuration_contribution_id: @@ -325,7 +325,7 @@ class Widget(Model): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -335,19 +335,19 @@ class Widget(Model): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -407,7 +407,7 @@ class WidgetMetadata(Model): """WidgetMetadata. :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. :type analytics_service_required: bool :param catalog_icon_url: Resource for an icon in the widget catalog. @@ -435,7 +435,7 @@ class WidgetMetadata(Model): :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. For V1, only "pull" model widgets can be provided from the catalog. :type is_visible_from_catalog: bool :param lightbox_options: Opt-in lightbox properties - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: Resource for a loading placeholder image on dashboard :type loading_image_url: str :param name: User facing name of the widget type. Each widget must use a unique value here. @@ -505,7 +505,7 @@ class WidgetMetadataResponse(Model): :param uri: :type uri: str :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` + :type widget_metadata: :class:`WidgetMetadata ` """ _attribute_map = { @@ -543,9 +543,9 @@ class WidgetResponse(Widget): """WidgetResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. :type artifact_id: str :param configuration_contribution_id: @@ -557,7 +557,7 @@ class WidgetResponse(Widget): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -567,19 +567,19 @@ class WidgetResponse(Widget): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -640,7 +640,7 @@ class WidgetsVersionedList(Model): :param eTag: :type eTag: list of str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -658,11 +658,11 @@ class WidgetTypesResponse(Model): """WidgetTypesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param uri: :type uri: str :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` + :type widget_types: list of :class:`WidgetMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py b/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py index db00f3e8..d84a785f 100644 --- a/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py +++ b/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py @@ -31,7 +31,7 @@ def get_acquisition_options(self, item_id, test_commerce=None, is_free_or_trial_ :param str item_id: :param bool test_commerce: :param bool is_free_or_trial_install: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if item_id is not None: @@ -49,8 +49,8 @@ def get_acquisition_options(self, item_id, test_commerce=None, is_free_or_trial_ def request_acquisition(self, acquisition_request): """RequestAcquisition. [Preview API] - :param :class:` ` acquisition_request: - :rtype: :class:` ` + :param :class:` ` acquisition_request: + :rtype: :class:` ` """ content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') response = self._send(http_method='POST', @@ -65,7 +65,7 @@ def register_authorization(self, publisher_name, extension_name, registration_id :param str publisher_name: :param str extension_name: :param str registration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -83,13 +83,13 @@ def register_authorization(self, publisher_name, extension_name, registration_id def create_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): """CreateDocumentByName. [Preview API] - :param :class:` ` doc: + :param :class:` ` doc: :param str publisher_name: :param str extension_name: :param str scope_type: :param str scope_value: :param str collection_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -147,7 +147,7 @@ def get_document_by_name(self, publisher_name, extension_name, scope_type, scope :param str scope_value: :param str collection_name: :param str document_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -198,13 +198,13 @@ def get_documents_by_name(self, publisher_name, extension_name, scope_type, scop def set_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): """SetDocumentByName. [Preview API] - :param :class:` ` doc: + :param :class:` ` doc: :param str publisher_name: :param str extension_name: :param str scope_type: :param str scope_value: :param str collection_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -228,13 +228,13 @@ def set_document_by_name(self, doc, publisher_name, extension_name, scope_type, def update_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): """UpdateDocumentByName. [Preview API] - :param :class:` ` doc: + :param :class:` ` doc: :param str publisher_name: :param str extension_name: :param str scope_type: :param str scope_value: :param str collection_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -258,7 +258,7 @@ def update_document_by_name(self, doc, publisher_name, extension_name, scope_typ def query_collections_by_name(self, collection_query, publisher_name, extension_name): """QueryCollectionsByName. [Preview API] - :param :class:` ` collection_query: + :param :class:` ` collection_query: :param str publisher_name: :param str extension_name: :rtype: [ExtensionDataCollection] @@ -300,7 +300,7 @@ def get_states(self, include_disabled=None, include_errors=None, include_install def query_extensions(self, query): """QueryExtensions. [Preview API] - :param :class:` ` query: + :param :class:` ` query: :rtype: [InstalledExtension] """ content = self._serialize.body(query, 'InstalledExtensionQuery') @@ -338,8 +338,8 @@ def get_installed_extensions(self, include_disabled_extensions=None, include_err def update_installed_extension(self, extension): """UpdateInstalledExtension. [Preview API] - :param :class:` ` extension: - :rtype: :class:` ` + :param :class:` ` extension: + :rtype: :class:` ` """ content = self._serialize.body(extension, 'InstalledExtension') response = self._send(http_method='PATCH', @@ -354,7 +354,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: :param str extension_name: :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -378,7 +378,7 @@ def install_extension_by_name(self, publisher_name, extension_name, version=None :param str publisher_name: :param str extension_name: :param str version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -421,7 +421,7 @@ def get_policies(self, user_id): """GetPolicies. [Preview API] :param str user_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -519,7 +519,7 @@ def request_extension(self, publisher_name, extension_name, request_message): :param str publisher_name: :param str extension_name: :param str request_message: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: diff --git a/azure-devops/azure/devops/v4_0/extension_management/models.py b/azure-devops/azure/devops/v4_0/extension_management/models.py index f9b5b4f9..b89228ed 100644 --- a/azure-devops/azure/devops/v4_0/extension_management/models.py +++ b/azure-devops/azure/devops/v4_0/extension_management/models.py @@ -19,7 +19,7 @@ class AcquisitionOperation(Model): :param reason: Optional reason to justify current state. Typically used with Disallow state. :type reason: str :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` """ _attribute_map = { @@ -61,11 +61,11 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param target: The target that this options refer to :type target: str """ @@ -119,7 +119,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter class :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -214,7 +214,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int """ @@ -288,7 +288,7 @@ class ExtensionDataCollection(Model): :param collection_name: The name of the collection :type collection_name: str :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` + :type documents: list of :class:`object ` :param scope_type: The type of the collection's scope, such as Default or User :type scope_type: str :param scope_value: The value of the collection's scope, such as Current or Me @@ -314,7 +314,7 @@ class ExtensionDataCollectionQuery(Model): """ExtensionDataCollectionQuery. :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` + :type collections: list of :class:`ExtensionDataCollection ` """ _attribute_map = { @@ -346,19 +346,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -430,7 +430,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -448,19 +448,19 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param scopes: List of all oauth scopes required by this extension @@ -526,7 +526,7 @@ class ExtensionRequest(Model): :param request_date: Date at which the request was made :type request_date: datetime :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_message: Optional message supplied by the requester justifying the request :type request_message: str :param request_state: Represents the state of the request @@ -534,7 +534,7 @@ class ExtensionRequest(Model): :param resolve_date: Date at which the request was resolved :type resolve_date: datetime :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` """ _attribute_map = { @@ -608,11 +608,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -732,19 +732,19 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param scopes: List of all oauth scopes required by this extension @@ -756,11 +756,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -817,7 +817,7 @@ class InstalledExtensionQuery(Model): :param asset_types: :type asset_types: list of str :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` + :type monikers: list of :class:`ExtensionIdentifier ` """ _attribute_map = { @@ -837,7 +837,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -915,7 +915,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -923,19 +923,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1013,7 +1013,7 @@ class RequestedExtension(Model): :param extension_name: The unique name of the extension :type extension_name: str :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` + :type extension_requests: list of :class:`ExtensionRequest ` :param publisher_display_name: DisplayName of the publisher that owns the extension being published. :type publisher_display_name: str :param publisher_name: Represents the Publisher of the requested extension @@ -1045,7 +1045,7 @@ class UserExtensionPolicy(Model): :param display_name: User display name that this policy refers to :type display_name: str :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` + :type permissions: :class:`ExtensionPolicy ` :param user_id: User id that this policy refers to :type user_id: str """ @@ -1073,11 +1073,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -1110,7 +1110,7 @@ class ExtensionState(InstalledExtensionState): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime :param extension_name: diff --git a/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py b/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py index 1ad94057..6a062eae 100644 --- a/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py +++ b/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py @@ -44,7 +44,7 @@ def get_feature_flag_by_name(self, name): """GetFeatureFlagByName. [Preview API] Retrieve information on a single feature flag and its current states :param str name: The name of the feature to retrieve - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -60,7 +60,7 @@ def get_feature_flag_by_name_and_user_email(self, name, user_email): [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_email: The email of the user to check - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -80,7 +80,7 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_id: The id of the user to check - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -98,12 +98,12 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): """UpdateFeatureFlag. [Preview API] Change the state of an individual feature flag for a name - :param :class:` ` state: State that should be set + :param :class:` ` state: State that should be set :param str name: The name of the feature to change :param str user_email: :param bool check_feature_exists: Checks if the feature exists before setting the state :param bool set_at_application_level_also: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: diff --git a/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py b/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py index 80c3d362..4dfe2688 100644 --- a/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py +++ b/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py @@ -29,7 +29,7 @@ def get_feature(self, feature_id): """GetFeature. [Preview API] Get a specific feature by its id :param str feature_id: The contribution id of the feature - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -60,7 +60,7 @@ def get_feature_state(self, feature_id, user_scope): [Preview API] Get the state of the specified feature for the given user/all-users scope :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -76,12 +76,12 @@ def get_feature_state(self, feature_id, user_scope): def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): """SetFeatureState. [Preview API] Set the state of a feature - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -109,7 +109,7 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -129,14 +129,14 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): """SetFeatureStateForScope. [Preview API] Set the state of a feature at a specific scope - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -164,8 +164,8 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam def query_feature_states(self, query): """QueryFeatureStates. [Preview API] Get the effective state for a list of feature ids - :param :class:` ` query: Features to query along with current scope values - :rtype: :class:` ` + :param :class:` ` query: Features to query along with current scope values + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', @@ -177,9 +177,9 @@ def query_feature_states(self, query): def query_feature_states_for_default_scope(self, query, user_scope): """QueryFeatureStatesForDefaultScope. [Preview API] Get the states of the specified features for the default scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -195,11 +195,11 @@ def query_feature_states_for_default_scope(self, query, user_scope): def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): """QueryFeatureStatesForNamedScope. [Preview API] Get the states of the specified features for the specific named scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: :param str scope_name: :param str scope_value: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: diff --git a/azure-devops/azure/devops/v4_0/feature_management/models.py b/azure-devops/azure/devops/v4_0/feature_management/models.py index 185e6ef4..081d7a1e 100644 --- a/azure-devops/azure/devops/v4_0/feature_management/models.py +++ b/azure-devops/azure/devops/v4_0/feature_management/models.py @@ -13,11 +13,11 @@ class ContributedFeature(Model): """ContributedFeature. :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_state: If true, the feature is enabled unless overridden at some scope :type default_state: bool :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` :param description: The description of the feature :type description: str :param id: The full contribution id of the feature @@ -25,9 +25,9 @@ class ContributedFeature(Model): :param name: The friendly name of the feature :type name: str :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` + :type override_rules: list of :class:`ContributedFeatureValueRule ` :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` + :type scopes: list of :class:`ContributedFeatureSettingScope ` :param service_instance_type: The service instance id of the service that owns this feature :type service_instance_type: str """ @@ -83,7 +83,7 @@ class ContributedFeatureState(Model): :param feature_id: The full contribution id of the feature :type feature_id: str :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` + :type scope: :class:`ContributedFeatureSettingScope ` :param state: The current state of this feature :type state: object """ diff --git a/azure-devops/azure/devops/v4_0/file_container/file_container_client.py b/azure-devops/azure/devops/v4_0/file_container/file_container_client.py index 0bc3b5b8..a9b7427a 100644 --- a/azure-devops/azure/devops/v4_0/file_container/file_container_client.py +++ b/azure-devops/azure/devops/v4_0/file_container/file_container_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_items(self, items, container_id, scope=None): """CreateItems. [Preview API] Creates the specified items in in the referenced container. - :param :class:` ` items: + :param :class:` ` items: :param int container_id: :param str scope: A guid representing the scope of the container. This is often the project id. :rtype: [FileContainerItem] diff --git a/azure-devops/azure/devops/v4_0/gallery/gallery_client.py b/azure-devops/azure/devops/v4_0/gallery/gallery_client.py index 06e93f3c..afed0c7b 100644 --- a/azure-devops/azure/devops/v4_0/gallery/gallery_client.py +++ b/azure-devops/azure/devops/v4_0/gallery/gallery_client.py @@ -102,7 +102,7 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No :param str installation_target: :param bool test_commerce: :param bool is_free_or_trial_install: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if item_id is not None: @@ -124,8 +124,8 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No def request_acquisition(self, acquisition_request): """RequestAcquisition. [Preview API] - :param :class:` ` acquisition_request: - :rtype: :class:` ` + :param :class:` ` acquisition_request: + :rtype: :class:` ` """ content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') response = self._send(http_method='POST', @@ -244,7 +244,7 @@ def associate_azure_publisher(self, publisher_name, azure_publisher_id): [Preview API] :param str publisher_name: :param str azure_publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -263,7 +263,7 @@ def query_associated_azure_publisher(self, publisher_name): """QueryAssociatedAzurePublisher. [Preview API] :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -295,7 +295,7 @@ def get_category_details(self, category_name, languages=None, product=None): :param str category_name: :param str languages: :param str product: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if category_name is not None: @@ -322,7 +322,7 @@ def get_category_tree(self, product, category_id, lcid=None, source=None, produc :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -356,7 +356,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -414,7 +414,7 @@ def get_extension_events(self, publisher_name, extension_name, count=None, after :param datetime after_date: Fetch events that occurred on or after this date :param str include: Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events :param str include_property: Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -451,9 +451,9 @@ def publish_extension_events(self, extension_events): def query_extensions(self, extension_query, account_token=None): """QueryExtensions. [Preview API] - :param :class:` ` extension_query: + :param :class:` ` extension_query: :param str account_token: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if account_token is not None: @@ -470,7 +470,7 @@ def create_extension(self, upload_stream, **kwargs): """CreateExtension. [Preview API] :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ if "callback" in kwargs: callback = kwargs["callback"] @@ -508,7 +508,7 @@ def get_extension_by_id(self, extension_id, version=None, flags=None): :param str extension_id: :param str version: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -529,7 +529,7 @@ def update_extension_by_id(self, extension_id): """UpdateExtensionById. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -545,7 +545,7 @@ def create_extension_with_publisher(self, upload_stream, publisher_name, **kwarg [Preview API] :param object upload_stream: Stream to upload :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -592,7 +592,7 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None :param str version: :param str flags: :param str account_token: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -619,7 +619,7 @@ def update_extension(self, upload_stream, publisher_name, extension_name, **kwar :param object upload_stream: Stream to upload :param str publisher_name: :param str extension_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -645,7 +645,7 @@ def update_extension_properties(self, publisher_name, extension_name, flags): :param str publisher_name: :param str extension_name: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -665,7 +665,7 @@ def update_extension_properties(self, publisher_name, extension_name, flags): def extension_validator(self, azure_rest_api_request_model): """ExtensionValidator. [Preview API] - :param :class:` ` azure_rest_api_request_model: + :param :class:` ` azure_rest_api_request_model: """ content = self._serialize.body(azure_rest_api_request_model, 'AzureRestApiRequestModel') self._send(http_method='POST', @@ -676,7 +676,7 @@ def extension_validator(self, azure_rest_api_request_model): def send_notifications(self, notification_data): """SendNotifications. [Preview API] Send Notification - :param :class:` ` notification_data: Denoting the data needed to send notification + :param :class:` ` notification_data: Denoting the data needed to send notification """ content = self._serialize.body(notification_data, 'NotificationsData') self._send(http_method='POST', @@ -761,8 +761,8 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty def query_publishers(self, publisher_query): """QueryPublishers. [Preview API] - :param :class:` ` publisher_query: - :rtype: :class:` ` + :param :class:` ` publisher_query: + :rtype: :class:` ` """ content = self._serialize.body(publisher_query, 'PublisherQuery') response = self._send(http_method='POST', @@ -774,8 +774,8 @@ def query_publishers(self, publisher_query): def create_publisher(self, publisher): """CreatePublisher. [Preview API] - :param :class:` ` publisher: - :rtype: :class:` ` + :param :class:` ` publisher: + :rtype: :class:` ` """ content = self._serialize.body(publisher, 'Publisher') response = self._send(http_method='POST', @@ -802,7 +802,7 @@ def get_publisher(self, publisher_name, flags=None): [Preview API] :param str publisher_name: :param int flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -820,9 +820,9 @@ def get_publisher(self, publisher_name, flags=None): def update_publisher(self, publisher, publisher_name): """UpdatePublisher. [Preview API] - :param :class:` ` publisher: + :param :class:` ` publisher: :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -843,7 +843,7 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a :param int count: Number of questions to retrieve (defaults to 10). :param int page: Page number from which set of questions are to be retrieved. :param datetime after_date: If provided, results questions are returned which were posted after this date - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -867,11 +867,11 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a def report_question(self, concern, pub_name, ext_name, question_id): """ReportQuestion. [Preview API] Flags a concern with an existing question for an extension. - :param :class:` ` concern: User reported concern with a question for the extension. + :param :class:` ` concern: User reported concern with a question for the extension. :param str pub_name: Name of the publisher who published the extension. :param str ext_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -891,10 +891,10 @@ def report_question(self, concern, pub_name, ext_name, question_id): def create_question(self, question, publisher_name, extension_name): """CreateQuestion. [Preview API] Creates a new question for an extension. - :param :class:` ` question: Question to be created for the extension. + :param :class:` ` question: Question to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -931,11 +931,11 @@ def delete_question(self, publisher_name, extension_name, question_id): def update_question(self, question, publisher_name, extension_name, question_id): """UpdateQuestion. [Preview API] Updates an existing question for an extension. - :param :class:` ` question: Updated question to be set for the extension. + :param :class:` ` question: Updated question to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -955,11 +955,11 @@ def update_question(self, question, publisher_name, extension_name, question_id) def create_response(self, response, publisher_name, extension_name, question_id): """CreateResponse. [Preview API] Creates a new response for a given question for an extension. - :param :class:` ` response: Response to be created for the extension. + :param :class:` ` response: Response to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be created for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1001,12 +1001,12 @@ def delete_response(self, publisher_name, extension_name, question_id, response_ def update_response(self, response, publisher_name, extension_name, question_id, response_id): """UpdateResponse. [Preview API] Updates an existing response for a given question for an extension. - :param :class:` ` response: Updated response to be set for the extension. + :param :class:` ` response: Updated response to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be updated for the extension. :param long response_id: Identifier of the response which has to be updated. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1063,7 +1063,7 @@ def get_reviews(self, publisher_name, extension_name, count=None, filter_options :param str filter_options: FilterOptions to filter out empty reviews etcetera, defaults to none :param datetime before_date: Use if you want to fetch reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1093,7 +1093,7 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N :param str ext_name: Name of the extension :param datetime before_date: Use if you want to fetch summary of reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch summary of reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1115,10 +1115,10 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N def create_review(self, review, pub_name, ext_name): """CreateReview. [Preview API] Creates a new review for an extension - :param :class:` ` review: Review to be created for the extension + :param :class:` ` review: Review to be created for the extension :param str pub_name: Name of the publisher who published the extension :param str ext_name: Name of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1155,11 +1155,11 @@ def delete_review(self, pub_name, ext_name, review_id): def update_review(self, review_patch, pub_name, ext_name, review_id): """UpdateReview. [Preview API] Updates or Flags a review - :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review + :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review :param str pub_name: Name of the pubilsher who published the extension :param str ext_name: Name of the extension :param long review_id: Id of the review which needs to be updated - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1179,8 +1179,8 @@ def update_review(self, review_patch, pub_name, ext_name, review_id): def create_category(self, category): """CreateCategory. [Preview API] - :param :class:` ` category: - :rtype: :class:` ` + :param :class:` ` category: + :rtype: :class:` ` """ content = self._serialize.body(category, 'ExtensionCategory') response = self._send(http_method='POST', @@ -1259,7 +1259,7 @@ def get_signing_key(self, key_type): def update_extension_statistics(self, extension_statistics_update, publisher_name, extension_name): """UpdateExtensionStatistics. [Preview API] - :param :class:` ` extension_statistics_update: + :param :class:` ` extension_statistics_update: :param str publisher_name: :param str extension_name: """ @@ -1283,7 +1283,7 @@ def get_extension_daily_stats(self, publisher_name, extension_name, days=None, a :param int days: :param str aggregate: :param datetime after_date: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1310,7 +1310,7 @@ def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, ve :param str publisher_name: Name of the publisher :param str extension_name: Name of the extension :param str version: Version of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: diff --git a/azure-devops/azure/devops/v4_0/gallery/models.py b/azure-devops/azure/devops/v4_0/gallery/models.py index 4ae12976..e6a74063 100644 --- a/azure-devops/azure/devops/v4_0/gallery/models.py +++ b/azure-devops/azure/devops/v4_0/gallery/models.py @@ -37,11 +37,11 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param target: The target that this options refer to :type target: str """ @@ -85,7 +85,7 @@ class AssetDetails(Model): """AssetDetails. :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` + :type answers: :class:`Answers ` :param publisher_natural_identifier: Gets or sets the VS publisher Id :type publisher_natural_identifier: str """ @@ -125,7 +125,7 @@ class AzureRestApiRequestModel(Model): """AzureRestApiRequestModel. :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` + :type asset_details: :class:`AssetDetails ` :param asset_id: Gets or sets the asset id :type asset_id: str :param asset_version: Gets or sets the asset version @@ -173,7 +173,7 @@ class CategoriesResult(Model): """CategoriesResult. :param categories: - :type categories: list of :class:`ExtensionCategory ` + :type categories: list of :class:`ExtensionCategory ` """ _attribute_map = { @@ -269,7 +269,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id @@ -333,7 +333,7 @@ class ExtensionCategory(Model): :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles :type language: str :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` + :type language_titles: list of :class:`CategoryLanguageTitle ` :param parent_category_name: This is the internal name of the parent if this is associated with a parent :type parent_category_name: str """ @@ -361,7 +361,7 @@ class ExtensionDailyStat(Model): """ExtensionDailyStat. :param counts: Stores the event counts - :type counts: :class:`EventCounts ` + :type counts: :class:`EventCounts ` :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. :type extended_stats: dict :param statistic_date: Timestamp of this data point @@ -389,7 +389,7 @@ class ExtensionDailyStats(Model): """ExtensionDailyStats. :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` + :type daily_stats: list of :class:`ExtensionDailyStat ` :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. :type extension_id: str :param extension_name: Name of the extension @@ -423,7 +423,7 @@ class ExtensionEvent(Model): :param id: Id which identifies each data point uniquely :type id: long :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param statistic_date: Timestamp of when the event occurred :type statistic_date: datetime :param version: Version of the extension @@ -501,11 +501,11 @@ class ExtensionFilterResult(Model): """ExtensionFilterResult. :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. :type paging_token: str :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` """ _attribute_map = { @@ -525,7 +525,7 @@ class ExtensionFilterResultMetadata(Model): """ExtensionFilterResultMetadata. :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` + :type metadata_items: list of :class:`MetadataItem ` :param metadata_type: Defines the category of metadata items :type metadata_type: str """ @@ -563,7 +563,7 @@ class ExtensionQuery(Model): :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. :type asset_types: list of str :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. :type flags: object """ @@ -585,7 +585,7 @@ class ExtensionQueryResult(Model): """ExtensionQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` + :type results: list of :class:`ExtensionFilterResult ` """ _attribute_map = { @@ -651,7 +651,7 @@ class ExtensionStatisticUpdate(Model): :param publisher_name: :type publisher_name: str :param statistic: - :type statistic: :class:`ExtensionStatistic ` + :type statistic: :class:`ExtensionStatistic ` """ _attribute_map = { @@ -675,11 +675,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -809,7 +809,7 @@ class ProductCategoriesResult(Model): """ProductCategoriesResult. :param categories: - :type categories: list of :class:`ProductCategory ` + :type categories: list of :class:`ProductCategory ` """ _attribute_map = { @@ -825,7 +825,7 @@ class ProductCategory(Model): """ProductCategory. :param children: - :type children: list of :class:`ProductCategory ` + :type children: list of :class:`ProductCategory ` :param has_children: Indicator whether this is a leaf or there are children under this category :type has_children: bool :param id: Individual Guid of the Category @@ -865,7 +865,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -873,19 +873,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -937,7 +937,7 @@ class Publisher(Model): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1009,7 +1009,7 @@ class PublisherFilterResult(Model): """PublisherFilterResult. :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` + :type publishers: list of :class:`Publisher ` """ _attribute_map = { @@ -1025,7 +1025,7 @@ class PublisherQuery(Model): """PublisherQuery. :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. :type flags: object """ @@ -1045,7 +1045,7 @@ class PublisherQueryResult(Model): """PublisherQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` + :type results: list of :class:`PublisherFilterResult ` """ _attribute_map = { @@ -1071,7 +1071,7 @@ class QnAItem(Model): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class QueryFilter(Model): """QueryFilter. :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` + :type criteria: list of :class:`FilterCriteria ` :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. :type direction: object :param page_number: The page number requested by the user. If not provided 1 is assumed by default. @@ -1147,9 +1147,9 @@ class Question(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` + :type responses: list of :class:`Response ` """ _attribute_map = { @@ -1173,7 +1173,7 @@ class QuestionsResult(Model): :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) :type has_more_questions: bool :param questions: List of the QnA threads - :type questions: list of :class:`Question ` + :type questions: list of :class:`Question ` """ _attribute_map = { @@ -1221,7 +1221,7 @@ class Response(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1241,7 +1241,7 @@ class Review(Model): """Review. :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` + :type admin_reply: :class:`ReviewReply ` :param id: Unique identifier of a review item :type id: long :param is_deleted: Flag for soft deletion @@ -1253,7 +1253,7 @@ class Review(Model): :param rating: Rating procided by the user :type rating: str :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` + :type reply: :class:`ReviewReply ` :param text: Text description of the review :type text: str :param title: Title of the review @@ -1303,9 +1303,9 @@ class ReviewPatch(Model): :param operation: Denotes the patch operation type :type operation: object :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` + :type reported_concern: :class:`UserReportedConcern ` :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` + :type review_item: :class:`Review ` """ _attribute_map = { @@ -1371,7 +1371,7 @@ class ReviewsResult(Model): :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) :type has_more_reviews: bool :param reviews: List of reviews - :type reviews: list of :class:`Review ` + :type reviews: list of :class:`Review ` :param total_review_count: Count of total review items :type total_review_count: long """ @@ -1397,7 +1397,7 @@ class ReviewSummary(Model): :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` + :type rating_split: list of :class:`RatingCountPerRating ` """ _attribute_map = { @@ -1479,7 +1479,7 @@ class Concern(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param category: Category of the concern :type category: object """ diff --git a/azure-devops/azure/devops/v4_0/git/git_client_base.py b/azure-devops/azure/devops/v4_0/git/git_client_base.py index ab3665c6..cec91471 100644 --- a/azure-devops/azure/devops/v4_0/git/git_client_base.py +++ b/azure-devops/azure/devops/v4_0/git/git_client_base.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def create_annotated_tag(self, tag_object, project, repository_id): """CreateAnnotatedTag. [Preview API] Create an annotated tag - :param :class:` ` tag_object: Object containing details of tag to be created + :param :class:` ` tag_object: Object containing details of tag to be created :param str project: Project ID or project name :param str repository_id: Friendly name or guid of repository - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -52,7 +52,7 @@ def get_annotated_tag(self, project, repository_id, object_id): :param str project: Project ID or project name :param str repository_id: :param str object_id: Sha1 of annotated tag to be returned - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -75,7 +75,7 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N :param str project: Project ID or project name :param bool download: :param str file_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -201,8 +201,8 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= :param str repository_id: Friendly name or guid of repository :param str name: Name of the branch :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -231,7 +231,7 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None Retrieve statistics about all branches within a repository. :param str repository_id: Friendly name or guid of repository :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: + :param :class:` ` base_version_descriptor: :rtype: [GitBranchStats] """ route_values = {} @@ -257,7 +257,7 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None def get_branch_stats_batch(self, search_criteria, repository_id, project=None): """GetBranchStatsBatch. Retrieve statistics for multiple commits - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :param str repository_id: Friendly name or guid of repository :param str project: Project ID or project name :rtype: [GitBranchStats] @@ -283,7 +283,7 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non :param str project: Project ID or project name :param int top: The maximum number of changes to return. :param int skip: The number of changes to skip. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -307,10 +307,10 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non def create_cherry_pick(self, cherry_pick_to_create, project, repository_id): """CreateCherryPick. [Preview API] - :param :class:` ` cherry_pick_to_create: + :param :class:` ` cherry_pick_to_create: :param str project: Project ID or project name :param str repository_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -331,7 +331,7 @@ def get_cherry_pick(self, project, cherry_pick_id, repository_id): :param str project: Project ID or project name :param int cherry_pick_id: :param str repository_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -352,7 +352,7 @@ def get_cherry_pick_for_ref_name(self, project, repository_id, ref_name): :param str project: Project ID or project name :param str repository_id: :param str ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -377,9 +377,9 @@ def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, :param bool diff_common_commit: :param int top: Maximum number of changes to return :param int skip: Number of changes to skip - :param :class:` ` base_version_descriptor: - :param :class:` ` target_version_descriptor: - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: + :param :class:` ` target_version_descriptor: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -421,7 +421,7 @@ def get_commit(self, commit_id, repository_id, project=None, change_count=None): :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name :param int change_count: The number of changes to include in the result. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -444,7 +444,7 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t """GetCommits. Retrieve git commits for a project :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :param str project: Project ID or project name :param int skip: :param int top: @@ -545,7 +545,7 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): """GetCommitsBatch. Retrieve git commits for a project - :param :class:` ` search_criteria: Search options + :param :class:` ` search_criteria: Search options :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name :param int skip: @@ -618,11 +618,11 @@ def get_forks(self, repository_name_or_id, collection_id, project=None, include_ def create_fork_sync_request(self, sync_params, repository_name_or_id, project=None, include_links=None): """CreateForkSyncRequest. [Preview API] Request that another repository's refs be fetched into this one. - :param :class:` ` sync_params: Source repository and ref mapping. + :param :class:` ` sync_params: Source repository and ref mapping. :param str repository_name_or_id: ID or name of the repository. :param str project: Project ID or project name :param bool include_links: True to include links - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -648,7 +648,7 @@ def get_fork_sync_request(self, repository_name_or_id, fork_sync_operation_id, p :param int fork_sync_operation_id: OperationId of the sync request. :param str project: Project ID or project name :param bool include_links: True to include links. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -696,10 +696,10 @@ def get_fork_sync_requests(self, repository_name_or_id, project=None, include_ab def create_import_request(self, import_request, project, repository_id): """CreateImportRequest. [Preview API] Create an import request - :param :class:` ` import_request: + :param :class:` ` import_request: :param str project: Project ID or project name :param str repository_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -720,7 +720,7 @@ def get_import_request(self, project, repository_id, import_request_id): :param str project: Project ID or project name :param str repository_id: :param int import_request_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -761,11 +761,11 @@ def query_import_requests(self, project, repository_id, include_abandoned=None): def update_import_request(self, import_request_to_update, project, repository_id, import_request_id): """UpdateImportRequest. [Preview API] Update an import request - :param :class:` ` import_request_to_update: + :param :class:` ` import_request_to_update: :param str project: Project ID or project name :param str repository_id: :param int import_request_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -793,8 +793,8 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: - :param :class:` ` version_descriptor: - :rtype: :class:` ` + :param :class:` ` version_descriptor: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -839,7 +839,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: object """ route_values = {} @@ -890,7 +890,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve :param bool latest_processed_change: :param bool download: :param bool include_links: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: [GitItem] """ route_values = {} @@ -936,7 +936,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: object """ route_values = {} @@ -987,7 +987,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur :param bool include_content_metadata: :param bool latest_processed_change: :param bool download: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: object """ route_values = {} @@ -1030,7 +1030,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur def get_items_batch(self, request_data, repository_id, project=None): """GetItemsBatch. Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path - :param :class:` ` request_data: + :param :class:` ` request_data: :param str repository_id: :param str project: Project ID or project name :rtype: [[GitItem]] @@ -1056,7 +1056,7 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques :param str repository_id: :param int pull_request_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1312,7 +1312,7 @@ def get_pull_request_iteration_changes(self, repository_id, pull_request_id, ite :param int top: :param int skip: :param int compare_to: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1343,7 +1343,7 @@ def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_i :param int pull_request_id: :param int iteration_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1388,12 +1388,12 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No def create_pull_request_iteration_status(self, status, repository_id, pull_request_id, iteration_id, project=None): """CreatePullRequestIterationStatus. [Preview API] Create a pull request status on the iteration. This method will have the same result as CreatePullRequestStatus with specified iterationId in the request body. - :param :class:` ` status: Pull request status to create. + :param :class:` ` status: Pull request status to create. :param str repository_id: ID of the repository the pull request belongs to. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1420,7 +1420,7 @@ def get_pull_request_iteration_status(self, repository_id, pull_request_id, iter :param int iteration_id: ID of the pull request iteration. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1466,12 +1466,12 @@ def get_pull_request_iteration_statuses(self, repository_id, pull_request_id, it def create_pull_request_label(self, label, repository_id, pull_request_id, project=None, project_id=None): """CreatePullRequestLabel. [Preview API] - :param :class:` ` label: + :param :class:` ` label: :param str repository_id: :param int pull_request_id: :param str project: Project ID or project name :param str project_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1527,7 +1527,7 @@ def get_pull_request_label(self, repository_id, pull_request_id, label_id_or_nam :param str label_id_or_name: :param str project: Project ID or project name :param str project_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1577,10 +1577,10 @@ def get_pull_request_labels(self, repository_id, pull_request_id, project=None, def get_pull_request_query(self, queries, repository_id, project=None): """GetPullRequestQuery. Query for pull requests - :param :class:` ` queries: + :param :class:` ` queries: :param str repository_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1598,12 +1598,12 @@ def get_pull_request_query(self, queries, repository_id, project=None): def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, reviewer_id, project=None): """CreatePullRequestReviewer. Adds a reviewer to a git pull request - :param :class:` ` reviewer: + :param :class:` ` reviewer: :param str repository_id: :param int pull_request_id: :param str reviewer_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1675,7 +1675,7 @@ def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, :param int pull_request_id: :param str reviewer_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1739,7 +1739,7 @@ def get_pull_request_by_id(self, pull_request_id): """GetPullRequestById. Get a pull request using its ID :param int pull_request_id: the Id of the pull request - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pull_request_id is not None: @@ -1754,7 +1754,7 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len """GetPullRequestsByProject. Query pull requests by project :param str project: Project ID or project name - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :param int max_comment_length: :param int skip: :param int top: @@ -1797,11 +1797,11 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): """CreatePullRequest. Create a git pull request - :param :class:` ` git_pull_request_to_create: + :param :class:` ` git_pull_request_to_create: :param str repository_id: :param str project: Project ID or project name :param bool supports_iterations: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1831,7 +1831,7 @@ def get_pull_request(self, repository_id, pull_request_id, project=None, max_com :param int top: :param bool include_commits: :param bool include_work_item_refs: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1862,7 +1862,7 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co """GetPullRequests. Query for pull requests :param str repository_id: - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :param str project: Project ID or project name :param int max_comment_length: :param int skip: @@ -1908,11 +1908,11 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): """UpdatePullRequest. Updates a pull request - :param :class:` ` git_pull_request_to_update: + :param :class:` ` git_pull_request_to_update: :param str repository_id: :param int pull_request_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1932,7 +1932,7 @@ def update_pull_request(self, git_pull_request_to_update, repository_id, pull_re def share_pull_request(self, user_message, repository_id, pull_request_id, project=None): """SharePullRequest. [Preview API] - :param :class:` ` user_message: + :param :class:` ` user_message: :param str repository_id: :param int pull_request_id: :param str project: Project ID or project name @@ -1954,11 +1954,11 @@ def share_pull_request(self, user_message, repository_id, pull_request_id, proje def create_pull_request_status(self, status, repository_id, pull_request_id, project=None): """CreatePullRequestStatus. [Preview API] Create a pull request status. - :param :class:` ` status: Pull request status to create. + :param :class:` ` status: Pull request status to create. :param str repository_id: ID of the repository the pull request belongs to. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1982,7 +1982,7 @@ def get_pull_request_status(self, repository_id, pull_request_id, status_id, pro :param int pull_request_id: ID of the pull request. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2023,12 +2023,12 @@ def get_pull_request_statuses(self, repository_id, pull_request_id, project=None def create_comment(self, comment, repository_id, pull_request_id, thread_id, project=None): """CreateComment. Create a pull request review comment - :param :class:` ` comment: + :param :class:` ` comment: :param str repository_id: :param int pull_request_id: :param int thread_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2080,7 +2080,7 @@ def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, pro :param int thread_id: :param int comment_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2126,13 +2126,13 @@ def get_comments(self, repository_id, pull_request_id, thread_id, project=None): def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): """UpdateComment. Update a pull request review comment thread - :param :class:` ` comment: + :param :class:` ` comment: :param str repository_id: :param int pull_request_id: :param int thread_id: :param int comment_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2156,11 +2156,11 @@ def update_comment(self, comment, repository_id, pull_request_id, thread_id, com def create_thread(self, comment_thread, repository_id, pull_request_id, project=None): """CreateThread. Create a pull request review comment thread - :param :class:` ` comment_thread: + :param :class:` ` comment_thread: :param str repository_id: :param int pull_request_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2186,7 +2186,7 @@ def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, pro :param str project: Project ID or project name :param int iteration: :param int base_iteration: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2241,12 +2241,12 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): """UpdateThread. Update a pull request review comment thread - :param :class:` ` comment_thread: + :param :class:` ` comment_thread: :param str repository_id: :param int pull_request_id: :param int thread_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2289,10 +2289,10 @@ def get_pull_request_work_items(self, repository_id, pull_request_id, project=No def create_push(self, push, repository_id, project=None): """CreatePush. Push changes to the repository. - :param :class:` ` push: + :param :class:` ` push: :param str repository_id: The id or friendly name of the repository. To use the friendly name, a project-scoped route must be used. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2315,7 +2315,7 @@ def get_push(self, repository_id, push_id, project=None, include_commits=None, i :param str project: Project ID or project name :param int include_commits: The number of commits to include in the result. :param bool include_ref_updates: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2343,7 +2343,7 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr :param str project: Project ID or project name :param int skip: :param int top: - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :rtype: [GitPush] """ route_values = {} @@ -2407,12 +2407,12 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): """UpdateRef. - :param :class:` ` new_ref_info: + :param :class:` ` new_ref_info: :param str repository_id: :param str filter: :param str project: Project ID or project name :param str project_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2462,9 +2462,9 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) def create_favorite(self, favorite, project): """CreateFavorite. [Preview API] Creates a ref favorite - :param :class:` ` favorite: + :param :class:` ` favorite: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2498,7 +2498,7 @@ def get_ref_favorite(self, project, favorite_id): [Preview API] :param str project: Project ID or project name :param int favorite_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2537,10 +2537,10 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): def create_repository(self, git_repository_to_create, project=None, source_ref=None): """CreateRepository. Create a git repository - :param :class:` ` git_repository_to_create: + :param :class:` ` git_repository_to_create: :param str project: Project ID or project name :param str source_ref: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2601,7 +2601,7 @@ def get_repository(self, repository_id, project=None, include_parent=None): :param str repository_id: :param str project: Project ID or project name :param bool include_parent: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2621,10 +2621,10 @@ def get_repository(self, repository_id, project=None, include_parent=None): def update_repository(self, new_repository_info, repository_id, project=None): """UpdateRepository. Updates the Git repository with the single populated change in the specified repository information. - :param :class:` ` new_repository_info: + :param :class:` ` new_repository_info: :param str repository_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2642,10 +2642,10 @@ def update_repository(self, new_repository_info, repository_id, project=None): def create_revert(self, revert_to_create, project, repository_id): """CreateRevert. [Preview API] - :param :class:` ` revert_to_create: + :param :class:` ` revert_to_create: :param str project: Project ID or project name :param str repository_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2666,7 +2666,7 @@ def get_revert(self, project, revert_id, repository_id): :param str project: Project ID or project name :param int revert_id: :param str repository_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2687,7 +2687,7 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): :param str project: Project ID or project name :param str repository_id: :param str ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2706,11 +2706,11 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): def create_commit_status(self, git_commit_status_to_create, commit_id, repository_id, project=None): """CreateCommitStatus. - :param :class:` ` git_commit_status_to_create: + :param :class:` ` git_commit_status_to_create: :param str commit_id: :param str repository_id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2784,7 +2784,7 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive :param str project_id: :param bool recursive: :param str file_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_0/git/models.py b/azure-devops/azure/devops/v4_0/git/models.py index dbec31e4..171fad8e 100644 --- a/azure-devops/azure/devops/v4_0/git/models.py +++ b/azure-devops/azure/devops/v4_0/git/models.py @@ -53,9 +53,9 @@ class Attachment(Model): """Attachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The person that uploaded this attachment - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. :type content_hash: str :param created_date: The time the attachment was uploaded @@ -67,7 +67,7 @@ class Attachment(Model): :param id: Id of the code review attachment :type id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param url: The url to download the content of the attachment :type url: str """ @@ -105,7 +105,7 @@ class Change(Model): :param item: :type item: object :param new_content: - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: :type source_server_item: str :param url: @@ -133,9 +133,9 @@ class Comment(Model): """Comment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The author of the pull request comment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param comment_type: Determines what kind of comment when it was created. :type comment_type: object :param content: The comment's content. @@ -153,7 +153,7 @@ class Comment(Model): :param published_date: The date a comment was first published. :type published_date: datetime :param users_liked: A list of the users who've liked this comment. - :type users_liked: list of :class:`IdentityRef ` + :type users_liked: list of :class:`IdentityRef ` """ _attribute_map = { @@ -229,9 +229,9 @@ class CommentThread(Model): """CommentThread. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted @@ -239,13 +239,13 @@ class CommentThread(Model): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: A list of (optional) thread properties. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` """ _attribute_map = { @@ -279,13 +279,13 @@ class CommentThreadContext(Model): :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. :type file_path: str :param left_file_end: Position of last character of the comment in left file. - :type left_file_end: :class:`CommentPosition ` + :type left_file_end: :class:`CommentPosition ` :param left_file_start: Position of first character of the comment in left file. - :type left_file_start: :class:`CommentPosition ` + :type left_file_start: :class:`CommentPosition ` :param right_file_end: Position of last character of the comment in right file. - :type right_file_end: :class:`CommentPosition ` + :type right_file_end: :class:`CommentPosition ` :param right_file_start: Position of first character of the comment in right file. - :type right_file_start: :class:`CommentPosition ` + :type right_file_start: :class:`CommentPosition ` """ _attribute_map = { @@ -311,13 +311,13 @@ class CommentTrackingCriteria(Model): :param first_comparing_iteration: The first comparing iteration being viewed. Threads will be tracked if this is greater than 0. :type first_comparing_iteration: int :param orig_left_file_end: Original position of last character of the comment in left file. - :type orig_left_file_end: :class:`CommentPosition ` + :type orig_left_file_end: :class:`CommentPosition ` :param orig_left_file_start: Original position of first character of the comment in left file. - :type orig_left_file_start: :class:`CommentPosition ` + :type orig_left_file_start: :class:`CommentPosition ` :param orig_right_file_end: Original position of last character of the comment in right file. - :type orig_right_file_end: :class:`CommentPosition ` + :type orig_right_file_end: :class:`CommentPosition ` :param orig_right_file_start: Original position of first character of the comment in right file. - :type orig_right_file_start: :class:`CommentPosition ` + :type orig_right_file_start: :class:`CommentPosition ` :param second_comparing_iteration: The second comparing iteration being viewed. Threads will be tracked if this is greater than 0. :type second_comparing_iteration: int """ @@ -391,9 +391,9 @@ class GitAnnotatedTag(Model): :param object_id: :type object_id: str :param tagged_by: User name, Email and date of tagging - :type tagged_by: :class:`GitUserDate ` + :type tagged_by: :class:`GitUserDate ` :param tagged_object: Tagged git object - :type tagged_object: :class:`GitObject ` + :type tagged_object: :class:`GitObject ` :param url: :type url: str """ @@ -421,11 +421,11 @@ class GitAsyncRefOperation(Model): """GitAsyncRefOperation. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: @@ -493,9 +493,9 @@ class GitAsyncRefOperationParameters(Model): :param onto_ref_name: :type onto_ref_name: str :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param source: - :type source: :class:`GitAsyncRefOperationSource ` + :type source: :class:`GitAsyncRefOperationSource ` """ _attribute_map = { @@ -517,7 +517,7 @@ class GitAsyncRefOperationSource(Model): """GitAsyncRefOperationSource. :param commit_list: - :type commit_list: list of :class:`GitCommitRef ` + :type commit_list: list of :class:`GitCommitRef ` :param pull_request_id: :type pull_request_id: int """ @@ -537,7 +537,7 @@ class GitBlobRef(Model): """GitBlobRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Size of blob content (in bytes) @@ -569,7 +569,7 @@ class GitBranchStats(Model): :param behind_count: :type behind_count: int :param commit: - :type commit: :class:`GitCommitRef ` + :type commit: :class:`GitCommitRef ` :param is_base_version: :type is_base_version: bool :param name: @@ -597,11 +597,11 @@ class GitCherryPick(GitAsyncRefOperation): """GitCherryPick. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: @@ -630,7 +630,7 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` """ _attribute_map = { @@ -658,7 +658,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -692,13 +692,13 @@ class GitCommitRef(Model): """GitCommitRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: :type comment: str :param comment_truncated: @@ -706,17 +706,17 @@ class GitCommitRef(Model): :param commit_id: :type commit_id: str :param committer: - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: :type parents: list of str :param remote_url: :type remote_url: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param work_items: - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` """ _attribute_map = { @@ -756,7 +756,7 @@ class GitConflict(Model): """GitConflict. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param conflict_id: :type conflict_id: int :param conflict_path: @@ -764,19 +764,19 @@ class GitConflict(Model): :param conflict_type: :type conflict_type: object :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` + :type merge_base_commit: :class:`GitCommitRef ` :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` + :type merge_origin: :class:`GitMergeOriginRef ` :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` + :type merge_source_commit: :class:`GitCommitRef ` :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` + :type merge_target_commit: :class:`GitCommitRef ` :param resolution_error: :type resolution_error: object :param resolution_status: :type resolution_status: object :param resolved_by: - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` :param resolved_date: :type resolved_date: datetime :param url: @@ -822,7 +822,7 @@ class GitDeletedRepository(Model): :param created_date: :type created_date: datetime :param deleted_by: - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: :type deleted_date: datetime :param id: @@ -830,7 +830,7 @@ class GitDeletedRepository(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -904,15 +904,15 @@ class GitForkSyncRequest(Model): """GitForkSyncRequest. :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` + :type detailed_status: :class:`GitForkOperationStatusDetail ` :param operation_id: Unique identifier for the operation. :type operation_id: int :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` :param status: :type status: object """ @@ -940,9 +940,9 @@ class GitForkSyncRequestParameters(Model): """GitForkSyncRequestParameters. :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` """ _attribute_map = { @@ -980,15 +980,15 @@ class GitImportRequest(Model): """GitImportRequest. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitImportStatusDetail ` + :type detailed_status: :class:`GitImportStatusDetail ` :param import_request_id: :type import_request_id: int :param parameters: Parameters for creating an import request - :type parameters: :class:`GitImportRequestParameters ` + :type parameters: :class:`GitImportRequestParameters ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param status: :type status: object :param url: @@ -1022,11 +1022,11 @@ class GitImportRequestParameters(Model): :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done :type delete_service_endpoint_after_import_is_done: bool :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param service_endpoint_id: Service Endpoint for connection to external endpoint :type service_endpoint_id: str :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` """ _attribute_map = { @@ -1132,7 +1132,7 @@ class GitItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` + :type item_descriptors: list of :class:`GitItemDescriptor ` :param latest_processed_change: Whether to include shallow ref to commit that last changed each item :type latest_processed_change: bool """ @@ -1192,39 +1192,39 @@ class GitPullRequest(Model): """GitPullRequest. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: :type artifact_id: str :param auto_complete_set_by: - :type auto_complete_set_by: :class:`IdentityRef ` + :type auto_complete_set_by: :class:`IdentityRef ` :param closed_by: - :type closed_by: :class:`IdentityRef ` + :type closed_by: :class:`IdentityRef ` :param closed_date: :type closed_date: datetime :param code_review_id: :type code_review_id: int :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param completion_options: - :type completion_options: :class:`GitPullRequestCompletionOptions ` + :type completion_options: :class:`GitPullRequestCompletionOptions ` :param completion_queue_time: :type completion_queue_time: datetime :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: :type creation_date: datetime :param description: :type description: str :param fork_source: - :type fork_source: :class:`GitForkRef ` + :type fork_source: :class:`GitForkRef ` :param labels: - :type labels: list of :class:`WebApiTagDefinition ` + :type labels: list of :class:`WebApiTagDefinition ` :param last_merge_commit: - :type last_merge_commit: :class:`GitCommitRef ` + :type last_merge_commit: :class:`GitCommitRef ` :param last_merge_source_commit: - :type last_merge_source_commit: :class:`GitCommitRef ` + :type last_merge_source_commit: :class:`GitCommitRef ` :param last_merge_target_commit: - :type last_merge_target_commit: :class:`GitCommitRef ` + :type last_merge_target_commit: :class:`GitCommitRef ` :param merge_failure_message: :type merge_failure_message: str :param merge_failure_type: @@ -1232,7 +1232,7 @@ class GitPullRequest(Model): :param merge_id: :type merge_id: str :param merge_options: - :type merge_options: :class:`GitPullRequestMergeOptions ` + :type merge_options: :class:`GitPullRequestMergeOptions ` :param merge_status: :type merge_status: object :param pull_request_id: @@ -1240,9 +1240,9 @@ class GitPullRequest(Model): :param remote_url: :type remote_url: str :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param reviewers: - :type reviewers: list of :class:`IdentityRefWithVote ` + :type reviewers: list of :class:`IdentityRefWithVote ` :param source_ref_name: :type source_ref_name: str :param status: @@ -1256,7 +1256,7 @@ class GitPullRequest(Model): :param url: :type url: str :param work_item_refs: - :type work_item_refs: list of :class:`ResourceRef ` + :type work_item_refs: list of :class:`ResourceRef ` """ _attribute_map = { @@ -1336,9 +1336,9 @@ class GitPullRequestCommentThread(CommentThread): """GitPullRequestCommentThread. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted @@ -1346,15 +1346,15 @@ class GitPullRequestCommentThread(CommentThread): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: A list of (optional) thread properties. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` """ _attribute_map = { @@ -1381,9 +1381,9 @@ class GitPullRequestCommentThreadContext(Model): :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. :type change_tracking_id: int :param iteration_context: Specify comparing iteration Ids when a comment thread is added while comparing 2 iterations. - :type iteration_context: :class:`CommentIterationContext ` + :type iteration_context: :class:`CommentIterationContext ` :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` + :type tracking_criteria: :class:`CommentTrackingCriteria ` """ _attribute_map = { @@ -1439,15 +1439,15 @@ class GitPullRequestIteration(Model): """GitPullRequestIteration. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param change_list: - :type change_list: list of :class:`GitPullRequestChange ` + :type change_list: list of :class:`GitPullRequestChange ` :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param common_ref_commit: - :type common_ref_commit: :class:`GitCommitRef ` + :type common_ref_commit: :class:`GitCommitRef ` :param created_date: :type created_date: datetime :param description: @@ -1457,13 +1457,13 @@ class GitPullRequestIteration(Model): :param id: :type id: int :param push: - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param reason: :type reason: object :param source_ref_commit: - :type source_ref_commit: :class:`GitCommitRef ` + :type source_ref_commit: :class:`GitCommitRef ` :param target_ref_commit: - :type target_ref_commit: :class:`GitCommitRef ` + :type target_ref_commit: :class:`GitCommitRef ` :param updated_date: :type updated_date: datetime """ @@ -1507,7 +1507,7 @@ class GitPullRequestIterationChanges(Model): """GitPullRequestIterationChanges. :param change_entries: - :type change_entries: list of :class:`GitPullRequestChange ` + :type change_entries: list of :class:`GitPullRequestChange ` :param next_skip: :type next_skip: int :param next_top: @@ -1547,7 +1547,7 @@ class GitPullRequestQuery(Model): """GitPullRequestQuery. :param queries: The query to perform - :type queries: list of :class:`GitPullRequestQueryInput ` + :type queries: list of :class:`GitPullRequestQueryInput ` :param results: The results of the query :type results: list of {[GitPullRequest]} """ @@ -1631,13 +1631,13 @@ class GitPushRef(Model): """GitPushRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: @@ -1703,9 +1703,9 @@ class GitQueryBranchStatsCriteria(Model): """GitQueryBranchStatsCriteria. :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` + :type base_commit: :class:`GitVersionDescriptor ` :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` + :type target_commits: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -1729,7 +1729,7 @@ class GitQueryCommitsCriteria(Model): :param author: Alias or display name of the author :type author: str :param compare_version: If provided, the earliest commit in the graph to search - :type compare_version: :class:`GitVersionDescriptor ` + :type compare_version: :class:`GitVersionDescriptor ` :param exclude_deletes: If true, don't include delete history entries :type exclude_deletes: bool :param from_commit_id: If provided, a lower bound for filtering commits alphabetically @@ -1747,7 +1747,7 @@ class GitQueryCommitsCriteria(Model): :param item_path: Path of item to search under :type item_path: str :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` + :type item_version: :class:`GitVersionDescriptor ` :param to_commit_id: If provided, an upper bound for filtering commits alphabetically :type to_commit_id: str :param to_date: If provided, only include history entries created before this date (string) @@ -1799,11 +1799,11 @@ class GitRef(Model): """GitRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -1811,7 +1811,7 @@ class GitRef(Model): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str """ @@ -1843,7 +1843,7 @@ class GitRefFavorite(Model): """GitRefFavorite. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param identity_id: @@ -1963,7 +1963,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -1973,9 +1973,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param url: @@ -2017,9 +2017,9 @@ class GitRepositoryCreateOptions(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -2039,13 +2039,13 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param url: @@ -2103,11 +2103,11 @@ class GitRevert(GitAsyncRefOperation): """GitRevert. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: @@ -2134,11 +2134,11 @@ class GitStatus(Model): """GitStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -2244,7 +2244,7 @@ class GitTreeDiff(Model): :param base_tree_id: ObjectId of the base tree of this diff. :type base_tree_id: str :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` + :type diff_entries: list of :class:`GitTreeDiffEntry ` :param target_tree_id: ObjectId of the target tree of this diff. :type target_tree_id: str :param url: REST Url to this resource. @@ -2304,7 +2304,7 @@ class GitTreeDiffResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: list of str :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` + :type tree_diff: :class:`GitTreeDiff ` """ _attribute_map = { @@ -2358,13 +2358,13 @@ class GitTreeRef(Model): """GitTreeRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Sum of sizes of all children :type size: long :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` + :type tree_entries: list of :class:`GitTreeEntryRef ` :param url: Url to tree :type url: str """ @@ -2540,7 +2540,7 @@ class IdentityRefWithVote(IdentityRef): :param vote: :type vote: int :param voted_for: - :type voted_for: list of :class:`IdentityRefWithVote ` + :type voted_for: list of :class:`IdentityRefWithVote ` """ _attribute_map = { @@ -2572,11 +2572,11 @@ class ImportRepositoryValidation(Model): """ImportRepositoryValidation. :param git_source: - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param password: :type password: str :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` :param username: :type username: str """ @@ -2620,9 +2620,9 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -2694,7 +2694,7 @@ class ShareNotificationContext(Model): :param message: Optional user note or message. :type message: str :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` + :type receivers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -2800,9 +2800,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -2901,13 +2901,13 @@ class GitCommit(GitCommitRef): """GitCommit. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: :type comment: str :param comment_truncated: @@ -2915,19 +2915,19 @@ class GitCommit(GitCommitRef): :param commit_id: :type commit_id: str :param committer: - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: :type parents: list of str :param remote_url: :type remote_url: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param work_items: - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` :param push: - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param tree_id: :type tree_id: str """ @@ -2960,11 +2960,11 @@ class GitForkRef(GitRef): """GitForkRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -2972,11 +2972,11 @@ class GitForkRef(GitRef): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3000,9 +3000,9 @@ class GitItem(ItemModel): """GitItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -3016,7 +3016,7 @@ class GitItem(ItemModel): :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) :type git_object_type: object :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` + :type latest_processed_change: :class:`GitCommitRef ` :param object_id: Git object id :type object_id: str :param original_object_id: Git object id @@ -3050,11 +3050,11 @@ class GitPullRequestStatus(GitStatus): """GitPullRequestStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -3093,23 +3093,23 @@ class GitPush(GitPushRef): """GitPush. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: :type url: str :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` + :type ref_updates: list of :class:`GitRefUpdate ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/identity/identity_client.py b/azure-devops/azure/devops/v4_0/identity/identity_client.py index ad037e5c..f5e5084c 100644 --- a/azure-devops/azure/devops/v4_0/identity/identity_client.py +++ b/azure-devops/azure/devops/v4_0/identity/identity_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def create_or_bind_with_claims(self, source_identity): """CreateOrBindWithClaims. [Preview API] - :param :class:` ` source_identity: - :rtype: :class:` ` + :param :class:` ` source_identity: + :rtype: :class:` ` """ content = self._serialize.body(source_identity, 'Identity') response = self._send(http_method='PUT', @@ -43,7 +43,7 @@ def get_descriptor_by_id(self, id, is_master_id=None): [Preview API] :param str id: :param bool is_master_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -60,7 +60,7 @@ def get_descriptor_by_id(self, id, is_master_id=None): def create_groups(self, container): """CreateGroups. - :param :class:` ` container: + :param :class:` ` container: :rtype: [Identity] """ content = self._serialize.body(container, 'object') @@ -110,7 +110,7 @@ def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id :param int identity_sequence_id: :param int group_sequence_id: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if identity_sequence_id is not None: @@ -199,7 +199,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): :param str identity_id: :param str query_membership: :param str properties: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if identity_id is not None: @@ -218,7 +218,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): def update_identities(self, identities): """UpdateIdentities. - :param :class:` ` identities: + :param :class:` ` identities: :rtype: [IdentityUpdateData] """ content = self._serialize.body(identities, 'VssJsonCollectionWrapper') @@ -230,7 +230,7 @@ def update_identities(self, identities): def update_identity(self, identity, identity_id): """UpdateIdentity. - :param :class:` ` identity: + :param :class:` ` identity: :param str identity_id: """ route_values = {} @@ -245,8 +245,8 @@ def update_identity(self, identity, identity_id): def create_identity(self, framework_identity_info): """CreateIdentity. - :param :class:` ` framework_identity_info: - :rtype: :class:` ` + :param :class:` ` framework_identity_info: + :rtype: :class:` ` """ content = self._serialize.body(framework_identity_info, 'FrameworkIdentityInfo') response = self._send(http_method='PUT', @@ -258,7 +258,7 @@ def create_identity(self, framework_identity_info): def read_identity_batch(self, batch_info): """ReadIdentityBatch. [Preview API] - :param :class:` ` batch_info: + :param :class:` ` batch_info: :rtype: [Identity] """ content = self._serialize.body(batch_info, 'IdentityBatchInfo') @@ -272,7 +272,7 @@ def get_identity_snapshot(self, scope_id): """GetIdentitySnapshot. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -296,7 +296,7 @@ def get_max_sequence_id(self): def get_self(self): """GetSelf. Read identity of the home tenant request user. - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='4bb02b5b-c120-4be2-b68e-21f7c50a4b82', @@ -327,7 +327,7 @@ def read_member(self, container_id, member_id, query_membership=None): :param str container_id: :param str member_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if container_id is not None: @@ -388,7 +388,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): :param str member_id: :param str container_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if member_id is not None: @@ -428,9 +428,9 @@ def read_members_of(self, member_id, query_membership=None): def create_scope(self, info, scope_id): """CreateScope. [Preview API] - :param :class:` ` info: + :param :class:` ` info: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -460,7 +460,7 @@ def get_scope_by_id(self, scope_id): """GetScopeById. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -475,7 +475,7 @@ def get_scope_by_name(self, scope_name): """GetScopeByName. [Preview API] :param str scope_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_name is not None: @@ -489,7 +489,7 @@ def get_scope_by_name(self, scope_name): def rename_scope(self, rename_scope, scope_id): """RenameScope. [Preview API] - :param :class:` ` rename_scope: + :param :class:` ` rename_scope: :param str scope_id: """ route_values = {} @@ -505,7 +505,7 @@ def rename_scope(self, rename_scope, scope_id): def get_signed_in_token(self): """GetSignedInToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='6074ff18-aaad-4abb-a41e-5c75f6178057', @@ -515,7 +515,7 @@ def get_signed_in_token(self): def get_signout_token(self): """GetSignoutToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='be39e83c-7529-45e9-9c67-0410885880da', @@ -526,7 +526,7 @@ def get_tenant(self, tenant_id): """GetTenant. [Preview API] :param str tenant_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if tenant_id is not None: diff --git a/azure-devops/azure/devops/v4_0/identity/models.py b/azure-devops/azure/devops/v4_0/identity/models.py index e57d11f8..527c8fe9 100644 --- a/azure-devops/azure/devops/v4_0/identity/models.py +++ b/azure-devops/azure/devops/v4_0/identity/models.py @@ -13,7 +13,7 @@ class AccessTokenResult(Model): """AccessTokenResult. :param access_token: - :type access_token: :class:`JsonWebToken ` + :type access_token: :class:`JsonWebToken ` :param access_token_error: :type access_token_error: object :param authorization_id: @@ -23,7 +23,7 @@ class AccessTokenResult(Model): :param has_error: :type has_error: bool :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` + :type refresh_token: :class:`RefreshTokenGrant ` :param token_type: :type token_type: str :param valid_to: @@ -73,9 +73,9 @@ class ChangedIdentities(Model): """ChangedIdentities. :param identities: Changed Identities - :type identities: list of :class:`Identity ` + :type identities: list of :class:`Identity ` :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` + :type sequence_context: :class:`ChangedIdentitiesContext ` """ _attribute_map = { @@ -179,7 +179,7 @@ class GroupMembership(Model): :param active: :type active: bool :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param queried_id: @@ -207,7 +207,7 @@ class Identity(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -219,19 +219,19 @@ class Identity(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -277,7 +277,7 @@ class IdentityBatchInfo(Model): """IdentityBatchInfo. :param descriptors: - :type descriptors: list of :class:`str ` + :type descriptors: list of :class:`str ` :param identity_ids: :type identity_ids: list of str :param include_restricted_visibility: @@ -309,7 +309,7 @@ class IdentityScope(Model): """IdentityScope. :param administrators: - :type administrators: :class:`str ` + :type administrators: :class:`str ` :param id: :type id: str :param is_active: @@ -327,7 +327,7 @@ class IdentityScope(Model): :param securing_host_id: :type securing_host_id: str :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` """ _attribute_map = { @@ -367,7 +367,7 @@ class IdentitySelf(Model): :param id: :type id: str :param tenants: - :type tenants: list of :class:`TenantInfo ` + :type tenants: list of :class:`TenantInfo ` """ _attribute_map = { @@ -389,15 +389,15 @@ class IdentitySnapshot(Model): """IdentitySnapshot. :param groups: - :type groups: list of :class:`Identity ` + :type groups: list of :class:`Identity ` :param identity_ids: :type identity_ids: list of str :param memberships: - :type memberships: list of :class:`GroupMembership ` + :type memberships: list of :class:`GroupMembership ` :param scope_id: :type scope_id: str :param scopes: - :type scopes: list of :class:`IdentityScope ` + :type scopes: list of :class:`IdentityScope ` """ _attribute_map = { @@ -459,7 +459,7 @@ class RefreshTokenGrant(AuthorizationGrant): :param grant_type: :type grant_type: object :param jwt: - :type jwt: :class:`JsonWebToken ` + :type jwt: :class:`JsonWebToken ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/licensing/licensing_client.py b/azure-devops/azure/devops/v4_0/licensing/licensing_client.py index 36ce8e79..a78bbcac 100644 --- a/azure-devops/azure/devops/v4_0/licensing/licensing_client.py +++ b/azure-devops/azure/devops/v4_0/licensing/licensing_client.py @@ -60,7 +60,7 @@ def get_client_rights(self, right_name=None, product_version=None, edition=None, :param bool include_certificate: :param str canary: :param str machine_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if right_name is not None: @@ -89,7 +89,7 @@ def assign_available_account_entitlement(self, user_id): """AssignAvailableAccountEntitlement. [Preview API] Assign an available entitilement to a user :param str user_id: The user to which to assign the entitilement - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if user_id is not None: @@ -103,7 +103,7 @@ def assign_available_account_entitlement(self, user_id): def get_account_entitlement(self): """GetAccountEntitlement. [Preview API] Gets the account entitlement of the current user it is mapped to _apis/licensing/entitlements/me so specifically is looking for the user of the request - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', @@ -113,9 +113,9 @@ def get_account_entitlement(self): def assign_account_entitlement_for_user(self, body, user_id): """AssignAccountEntitlementForUser. [Preview API] Assign an explicit account entitlement - :param :class:` ` body: The update model for the entitlement + :param :class:` ` body: The update model for the entitlement :param str user_id: The id of the user - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -146,7 +146,7 @@ def get_account_entitlement_for_user(self, user_id, determine_rights=None): [Preview API] Get the entitlements for a user :param str user_id: The id of the user :param bool determine_rights: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -230,7 +230,7 @@ def get_extension_status_for_users(self, extension_id): def assign_extension_to_users(self, body): """AssignExtensionToUsers. [Preview API] Assigns the access to the given extension for a given list of users - :param :class:` ` body: The extension assignment details. + :param :class:` ` body: The extension assignment details. :rtype: [ExtensionOperationResult] """ content = self._serialize.body(body, 'ExtensionAssignment') @@ -272,7 +272,7 @@ def get_extension_license_data(self, extension_id): """GetExtensionLicenseData. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -286,7 +286,7 @@ def get_extension_license_data(self, extension_id): def register_extension_license(self, extension_license_data): """RegisterExtensionLicense. [Preview API] - :param :class:` ` extension_license_data: + :param :class:` ` extension_license_data: :rtype: bool """ content = self._serialize.body(extension_license_data, 'ExtensionLicenseData') @@ -312,7 +312,7 @@ def compute_extension_rights(self, ids): def get_extension_rights(self): """GetExtensionRights. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', diff --git a/azure-devops/azure/devops/v4_0/licensing/models.py b/azure-devops/azure/devops/v4_0/licensing/models.py index 7c1ddb49..de1b386c 100644 --- a/azure-devops/azure/devops/v4_0/licensing/models.py +++ b/azure-devops/azure/devops/v4_0/licensing/models.py @@ -21,13 +21,13 @@ class AccountEntitlement(Model): :param last_accessed_date: Gets or sets the date of the user last sign-in to this account :type last_accessed_date: datetime :param license: - :type license: :class:`License ` + :type license: :class:`License ` :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` + :type rights: :class:`AccountRights ` :param status: The status of the user in the account :type status: object :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` :param user_id: Gets the id of the user to which the license belongs :type user_id: str """ @@ -61,7 +61,7 @@ class AccountEntitlementUpdateModel(Model): """AccountEntitlementUpdateModel. :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` + :type license: :class:`License ` """ _attribute_map = { @@ -129,7 +129,7 @@ class AccountLicenseUsage(Model): """AccountLicenseUsage. :param license: - :type license: :class:`AccountUserLicense ` + :type license: :class:`AccountUserLicense ` :param provisioned_count: :type provisioned_count: int :param used_count: diff --git a/azure-devops/azure/devops/v4_0/location/location_client.py b/azure-devops/azure/devops/v4_0/location/location_client.py index 49e69f2a..18d81eea 100644 --- a/azure-devops/azure/devops/v4_0/location/location_client.py +++ b/azure-devops/azure/devops/v4_0/location/location_client.py @@ -31,7 +31,7 @@ def get_connection_data(self, connect_options=None, last_change_id=None, last_ch :param str connect_options: :param int last_change_id: Obsolete 32-bit LastChangeId :param long last_change_id64: Non-truncated 64-bit LastChangeId - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if connect_options is not None: @@ -50,7 +50,7 @@ def get_resource_area(self, area_id): """GetResourceArea. [Preview API] :param str area_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if area_id is not None: @@ -93,7 +93,7 @@ def get_service_definition(self, service_type, identifier, allow_fault_in=None): :param str service_type: :param str identifier: :param bool allow_fault_in: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if service_type is not None: @@ -128,7 +128,7 @@ def get_service_definitions(self, service_type=None): def update_service_definitions(self, service_definitions): """UpdateServiceDefinitions. [Preview API] - :param :class:` ` service_definitions: + :param :class:` ` service_definitions: """ content = self._serialize.body(service_definitions, 'VssJsonCollectionWrapper') self._send(http_method='PATCH', diff --git a/azure-devops/azure/devops/v4_0/location/models.py b/azure-devops/azure/devops/v4_0/location/models.py index c5447324..3abed1f5 100644 --- a/azure-devops/azure/devops/v4_0/location/models.py +++ b/azure-devops/azure/devops/v4_0/location/models.py @@ -45,9 +45,9 @@ class ConnectionData(Model): """ConnectionData. :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` + :type authenticated_user: :class:`Identity ` :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` + :type authorized_user: :class:`Identity ` :param deployment_id: The id for the server. :type deployment_id: str :param instance_id: The instance id for this host. @@ -55,7 +55,7 @@ class ConnectionData(Model): :param last_user_access: The last user access for this instance. Null if not requested specifically. :type last_user_access: datetime :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` + :type location_service_data: :class:`LocationServiceData ` :param web_application_relative_directory: The virtual directory of the host we are talking to. :type web_application_relative_directory: str """ @@ -87,7 +87,7 @@ class Identity(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -99,19 +99,19 @@ class Identity(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -177,7 +177,7 @@ class LocationServiceData(Model): """LocationServiceData. :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` + :type access_mappings: list of :class:`AccessMapping ` :param client_cache_fresh: Data that the location service holds. :type client_cache_fresh: bool :param client_cache_time_to_live: The time to live on the location service cache. @@ -189,7 +189,7 @@ class LocationServiceData(Model): :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. :type last_change_id64: long :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` + :type service_definitions: list of :class:`ServiceDefinition ` :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) :type service_owner: str """ @@ -253,7 +253,7 @@ class ServiceDefinition(Model): :param inherit_level: :type inherit_level: object :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` + :type location_mappings: list of :class:`LocationMapping ` :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. :type max_version: str :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. @@ -263,7 +263,7 @@ class ServiceDefinition(Model): :param parent_service_type: :type parent_service_type: str :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param relative_path: :type relative_path: str :param relative_to_setting: diff --git a/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py b/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py index 2edd46f5..ad3291cb 100644 --- a/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py +++ b/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def add_group_entitlement(self, group_entitlement, rule_option=None): """AddGroupEntitlement. [Preview API] Used to add members to a project in an account. It adds them to groups, assigns licenses, and assigns extensions. - :param :class:` ` group_entitlement: Member model for where to add the member and what licenses and extensions they should receive. + :param :class:` ` group_entitlement: Member model for where to add the member and what licenses and extensions they should receive. :param str rule_option: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if rule_option is not None: @@ -48,7 +48,7 @@ def delete_group_entitlement(self, group_id, rule_option=None): [Preview API] Deletes members from an account :param str group_id: memberId of the member to be removed. :param str rule_option: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -67,7 +67,7 @@ def get_group_entitlement(self, group_id): """GetGroupEntitlement. [Preview API] Used to get a group entitlement and its current rules :param str group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -91,10 +91,10 @@ def get_group_entitlements(self): def update_group_entitlement(self, document, group_id, rule_option=None): """UpdateGroupEntitlement. [Preview API] Used to edit a member in an account. Edits groups, licenses, and extensions. - :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used + :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used :param str group_id: member Id of the member to be edit :param str rule_option: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -115,8 +115,8 @@ def update_group_entitlement(self, document, group_id, rule_option=None): def add_member_entitlement(self, member_entitlement): """AddMemberEntitlement. [Preview API] Used to add members to a project in an account. It adds them to project groups, assigns licenses, and assigns extensions. - :param :class:` ` member_entitlement: Member model for where to add the member and what licenses and extensions they should receive. - :rtype: :class:` ` + :param :class:` ` member_entitlement: Member model for where to add the member and what licenses and extensions they should receive. + :rtype: :class:` ` """ content = self._serialize.body(member_entitlement, 'MemberEntitlement') response = self._send(http_method='POST', @@ -142,7 +142,7 @@ def get_member_entitlement(self, member_id): """GetMemberEntitlement. [Preview API] Used to get member entitlement information in an account :param str member_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if member_id is not None: @@ -180,9 +180,9 @@ def get_member_entitlements(self, top, skip, filter=None, select=None): def update_member_entitlement(self, document, member_id): """UpdateMemberEntitlement. [Preview API] Used to edit a member in an account. Edits groups, licenses, and extensions. - :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used + :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used :param str member_id: member Id of the member to be edit - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if member_id is not None: @@ -199,8 +199,8 @@ def update_member_entitlement(self, document, member_id): def update_member_entitlements(self, document): """UpdateMemberEntitlements. [Preview API] Used to edit multiple members in an account. Edits groups, licenses, and extensions. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatch document - :rtype: :class:` ` + :param :class:`<[JsonPatchOperation]> ` document: JsonPatch document + :rtype: :class:` ` """ content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', diff --git a/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py b/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py index 2e8821ac..ba45742d 100644 --- a/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py +++ b/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py @@ -101,7 +101,7 @@ class GraphSubject(Model): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -161,15 +161,15 @@ class GroupEntitlement(Model): """GroupEntitlement. :param extension_rules: Extension Rules - :type extension_rules: list of :class:`Extension ` + :type extension_rules: list of :class:`Extension ` :param group: Member reference - :type group: :class:`GraphGroup ` + :type group: :class:`GraphGroup ` :param id: The unique identifier which matches the Id of the GraphMember :type id: str :param license_rule: License Rule - :type license_rule: :class:`AccessLevel ` + :type license_rule: :class:`AccessLevel ` :param project_entitlements: Relation between a project and the member's effective permissions in that project - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param status: :type status: object """ @@ -203,7 +203,7 @@ class GroupOperationResult(BaseOperationResult): :param group_id: Identifier of the Group being acted upon :type group_id: str :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` + :type result: :class:`GroupEntitlement ` """ _attribute_map = { @@ -251,19 +251,19 @@ class MemberEntitlement(Model): """MemberEntitlement. :param access_level: Member's access level denoted by a license - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param extensions: Member's extensions - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: GroupEntitlements that this member belongs to - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the GraphMember :type id: str :param last_accessed_date: Date the Member last access the collection :type last_accessed_date: datetime :param member: Member reference - :type member: :class:`GraphMember ` + :type member: :class:`GraphMember ` :param project_entitlements: Relation between a project and the member's effective permissions in that project - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` """ _attribute_map = { @@ -293,7 +293,7 @@ class MemberEntitlementsResponseBase(Model): :param is_success: True if all operations were successful :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` """ _attribute_map = { @@ -341,7 +341,7 @@ class OperationResult(Model): :param member_id: Identifier of the Member being acted upon :type member_id: str :param result: Result of the MemberEntitlement after the operation - :type result: :class:`MemberEntitlement ` + :type result: :class:`MemberEntitlement ` """ _attribute_map = { @@ -365,13 +365,13 @@ class ProjectEntitlement(Model): :param assignment_source: :type assignment_source: object :param group: - :type group: :class:`Group ` + :type group: :class:`Group ` :param is_project_permission_inherited: :type is_project_permission_inherited: bool :param project_ref: - :type project_ref: :class:`ProjectRef ` + :type project_ref: :class:`ProjectRef ` :param team_refs: - :type team_refs: list of :class:`TeamRef ` + :type team_refs: list of :class:`TeamRef ` """ _attribute_map = { @@ -451,7 +451,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -506,7 +506,7 @@ class GroupEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful :type have_results_succeeded: bool :param results: List of results for each operation - :type results: list of :class:`GroupOperationResult ` + :type results: list of :class:`GroupOperationResult ` """ _attribute_map = { @@ -539,7 +539,7 @@ class MemberEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful :type have_results_succeeded: bool :param results: List of results for each operation - :type results: list of :class:`OperationResult ` + :type results: list of :class:`OperationResult ` """ _attribute_map = { @@ -564,9 +564,9 @@ class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` + :type operation_results: list of :class:`OperationResult ` """ _attribute_map = { @@ -586,9 +586,9 @@ class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` + :type operation_result: :class:`OperationResult ` """ _attribute_map = { @@ -606,7 +606,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v4_0/notification/models.py b/azure-devops/azure/devops/v4_0/notification/models.py index 8d20a7a9..7942a7b1 100644 --- a/azure-devops/azure/devops/v4_0/notification/models.py +++ b/azure-devops/azure/devops/v4_0/notification/models.py @@ -35,7 +35,7 @@ class BatchNotificationOperation(Model): :param notification_operation: :type notification_operation: object :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` """ _attribute_map = { @@ -169,9 +169,9 @@ class ExpressionFilterModel(Model): """ExpressionFilterModel. :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` + :type clauses: list of :class:`ExpressionFilterClause ` :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` + :type groups: list of :class:`ExpressionFilterGroup ` :param max_group_level: Max depth of the Subscription tree :type max_group_level: int """ @@ -271,7 +271,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -281,7 +281,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -327,7 +327,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -385,7 +385,7 @@ class NotificationEventField(Model): """NotificationEventField. :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` + :type field_type: :class:`NotificationEventFieldType ` :param id: Gets or sets the unique identifier of this field. :type id: str :param name: Gets or sets the name of this field. @@ -439,13 +439,13 @@ class NotificationEventFieldType(Model): :param id: Gets or sets the unique identifier of this field type. :type id: str :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` + :type operator_constraints: list of :class:`OperatorConstraint ` :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` + :type operators: list of :class:`NotificationEventFieldOperator ` :param subscription_field_type: :type subscription_field_type: object :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` + :type value: :class:`ValueDefinition ` """ _attribute_map = { @@ -471,7 +471,7 @@ class NotificationEventPublisher(Model): :param id: :type id: str :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` + :type subscription_management_info: :class:`SubscriptionManagement ` :param url: :type url: str """ @@ -517,13 +517,13 @@ class NotificationEventType(Model): """NotificationEventType. :param category: - :type category: :class:`NotificationEventTypeCategory ` + :type category: :class:`NotificationEventTypeCategory ` :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa :type color: str :param custom_subscriptions_allowed: :type custom_subscriptions_allowed: bool :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` + :type event_publisher: :class:`NotificationEventPublisher ` :param fields: :type fields: dict :param has_initiator: @@ -535,7 +535,7 @@ class NotificationEventType(Model): :param name: Gets or sets the name of this event definition. :type name: str :param roles: - :type roles: list of :class:`NotificationEventRole ` + :type roles: list of :class:`NotificationEventRole ` :param supported_scopes: Gets or sets the scopes that this event type supports :type supported_scopes: list of str :param url: Gets or sets the rest end point to get this event type details (fields, fields types) @@ -627,7 +627,7 @@ class NotificationReason(Model): :param notification_reason_type: :type notification_reason_type: object :param target_identities: - :type target_identities: list of :class:`IdentityRef ` + :type target_identities: list of :class:`IdentityRef ` """ _attribute_map = { @@ -669,7 +669,7 @@ class NotificationStatistic(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -693,7 +693,7 @@ class NotificationStatisticsQuery(Model): """NotificationStatisticsQuery. :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` """ _attribute_map = { @@ -719,7 +719,7 @@ class NotificationStatisticsQueryConditions(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -793,39 +793,39 @@ class NotificationSubscription(Model): """NotificationSubscription. :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts :type extended_properties: dict :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Read-only indicators that further describe the subscription. :type flags: object :param id: Subscription identifier. :type id: str :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. :type modified_date: datetime :param permissions: The permissions the user have for this subscriptions. :type permissions: object :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. :type status: object :param status_message: Message that provides more details about the status of the subscription. :type status_message: str :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: REST API URL of the subscriotion. :type url: str :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -873,15 +873,15 @@ class NotificationSubscriptionCreateParameters(Model): """NotificationSubscriptionCreateParameters. :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` """ _attribute_map = { @@ -907,11 +907,11 @@ class NotificationSubscriptionTemplate(Model): :param description: :type description: str :param filter: - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param id: :type id: str :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` + :type notification_event_information: :class:`NotificationEventType ` :param type: :type type: object """ @@ -937,21 +937,21 @@ class NotificationSubscriptionUpdateParameters(Model): """NotificationSubscriptionUpdateParameters. :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Updated status for the subscription. Typically used to enable or disable a subscription. :type status: object :param status_message: Optional message that provides more details about the updated status. :type status_message: str :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1059,7 +1059,7 @@ class SubscriptionEvaluationRequest(Model): :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date :type min_events_created_date: datetime :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` """ _attribute_map = { @@ -1079,11 +1079,11 @@ class SubscriptionEvaluationResult(Model): :param evaluation_job_status: Subscription evaluation job status :type evaluation_job_status: object :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` + :type events: :class:`EventsEvaluationResult ` :param id: The requestId which is the subscription evaluation jobId :type id: str :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` + :type notifications: :class:`NotificationsEvaluationResult ` """ _attribute_map = { @@ -1153,7 +1153,7 @@ class SubscriptionQuery(Model): """SubscriptionQuery. :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` + :type conditions: list of :class:`SubscriptionQueryCondition ` :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. :type query_flags: object """ @@ -1173,7 +1173,7 @@ class SubscriptionQueryCondition(Model): """SubscriptionQueryCondition. :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Flags to specify the the type subscriptions to query for. :type flags: object :param scope: Scope that matching subscriptions must have. @@ -1243,7 +1243,7 @@ class ValueDefinition(Model): """ValueDefinition. :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` + :type data_source: list of :class:`InputValue ` :param end_point: Gets or sets the rest end point. :type end_point: str :param result_template: Gets or sets the result template. @@ -1267,7 +1267,7 @@ class VssNotificationEvent(Model): """VssNotificationEvent. :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` + :type actors: list of :class:`EventActor ` :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. :type artifact_uris: list of str :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. @@ -1275,7 +1275,7 @@ class VssNotificationEvent(Model): :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. :type event_type: str :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` + :type scopes: list of :class:`EventScope ` """ _attribute_map = { @@ -1332,7 +1332,7 @@ class FieldInputValues(InputValues): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1342,7 +1342,7 @@ class FieldInputValues(InputValues): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` :param operators: :type operators: str """ @@ -1371,7 +1371,7 @@ class FieldValuesQuery(InputValuesQuery): :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object :param input_values: - :type input_values: list of :class:`FieldInputValues ` + :type input_values: list of :class:`FieldInputValues ` :param scope: :type scope: str """ diff --git a/azure-devops/azure/devops/v4_0/notification/notification_client.py b/azure-devops/azure/devops/v4_0/notification/notification_client.py index a85f525b..3f9ee1f4 100644 --- a/azure-devops/azure/devops/v4_0/notification/notification_client.py +++ b/azure-devops/azure/devops/v4_0/notification/notification_client.py @@ -29,7 +29,7 @@ def get_event_type(self, event_type): """GetEventType. [Preview API] Get a specific event type. :param str event_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if event_type is not None: @@ -59,7 +59,7 @@ def get_notification_reasons(self, notification_id): """GetNotificationReasons. [Preview API] :param int notification_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if notification_id is not None: @@ -89,7 +89,7 @@ def get_subscriber(self, subscriber_id): """GetSubscriber. [Preview API] :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: @@ -103,9 +103,9 @@ def get_subscriber(self, subscriber_id): def update_subscriber(self, update_parameters, subscriber_id): """UpdateSubscriber. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: @@ -121,7 +121,7 @@ def update_subscriber(self, update_parameters, subscriber_id): def query_subscriptions(self, subscription_query): """QuerySubscriptions. [Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions. - :param :class:` ` subscription_query: + :param :class:` ` subscription_query: :rtype: [NotificationSubscription] """ content = self._serialize.body(subscription_query, 'SubscriptionQuery') @@ -134,8 +134,8 @@ def query_subscriptions(self, subscription_query): def create_subscription(self, create_parameters): """CreateSubscription. [Preview API] Create a new subscription. - :param :class:` ` create_parameters: - :rtype: :class:` ` + :param :class:` ` create_parameters: + :rtype: :class:` ` """ content = self._serialize.body(create_parameters, 'NotificationSubscriptionCreateParameters') response = self._send(http_method='POST', @@ -162,7 +162,7 @@ def get_subscription(self, subscription_id, query_flags=None): [Preview API] Get a notification subscription by its ID. :param str subscription_id: :param str query_flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -202,9 +202,9 @@ def list_subscriptions(self, target_id=None, ids=None, query_flags=None): def update_subscription(self, update_parameters, subscription_id): """UpdateSubscription. [Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more. - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -220,10 +220,10 @@ def update_subscription(self, update_parameters, subscription_id): def update_subscription_user_settings(self, user_settings, subscription_id, user_id=None): """UpdateSubscriptionUserSettings. [Preview API] Update the specified users' settings for the specified subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. This API is typically used to opt in or out of a shared subscription. - :param :class:` ` user_settings: + :param :class:` ` user_settings: :param str subscription_id: :param str user_id: ID of the user or "me" to indicate the calling user - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: diff --git a/azure-devops/azure/devops/v4_0/operations/models.py b/azure-devops/azure/devops/v4_0/operations/models.py index 1dc3f0ad..886e89ae 100644 --- a/azure-devops/azure/devops/v4_0/operations/models.py +++ b/azure-devops/azure/devops/v4_0/operations/models.py @@ -59,7 +59,7 @@ class Operation(OperationReference): :param url: Url to get the full object. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param result_message: The result message which is generally not set. :type result_message: str """ diff --git a/azure-devops/azure/devops/v4_0/operations/operations_client.py b/azure-devops/azure/devops/v4_0/operations/operations_client.py index aae3a467..9e95d5f4 100644 --- a/azure-devops/azure/devops/v4_0/operations/operations_client.py +++ b/azure-devops/azure/devops/v4_0/operations/operations_client.py @@ -29,7 +29,7 @@ def get_operation(self, operation_id): """GetOperation. Gets an operation from the the Id. :param str operation_id: The id for the operation. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if operation_id is not None: diff --git a/azure-devops/azure/devops/v4_0/policy/models.py b/azure-devops/azure/devops/v4_0/policy/models.py index 6cb62fbb..570a1938 100644 --- a/azure-devops/azure/devops/v4_0/policy/models.py +++ b/azure-devops/azure/devops/v4_0/policy/models.py @@ -67,7 +67,7 @@ class PolicyConfigurationRef(Model): :param id: :type id: int :param type: - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: :type url: str """ @@ -89,15 +89,15 @@ class PolicyEvaluationRecord(Model): """PolicyEvaluationRecord. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: :type artifact_id: str :param completed_date: :type completed_date: datetime :param configuration: - :type configuration: :class:`PolicyConfiguration ` + :type configuration: :class:`PolicyConfiguration ` :param context: - :type context: :class:`object ` + :type context: :class:`object ` :param evaluation_id: :type evaluation_id: str :param started_date: @@ -175,7 +175,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: :type id: int :param type: - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: :type url: str :param revision: @@ -200,15 +200,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: :type id: int :param type: - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: :type url: str :param revision: :type revision: int :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param is_blocking: @@ -218,7 +218,7 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param is_enabled: :type is_enabled: bool :param settings: - :type settings: :class:`object ` + :type settings: :class:`object ` """ _attribute_map = { @@ -256,7 +256,7 @@ class PolicyType(PolicyTypeRef): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str """ diff --git a/azure-devops/azure/devops/v4_0/policy/policy_client.py b/azure-devops/azure/devops/v4_0/policy/policy_client.py index 46f79ec8..2819fabe 100644 --- a/azure-devops/azure/devops/v4_0/policy/policy_client.py +++ b/azure-devops/azure/devops/v4_0/policy/policy_client.py @@ -27,10 +27,10 @@ def __init__(self, base_url=None, creds=None): def create_policy_configuration(self, configuration, project, configuration_id=None): """CreatePolicyConfiguration. - :param :class:` ` configuration: + :param :class:` ` configuration: :param str project: Project ID or project name :param int configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -64,7 +64,7 @@ def get_policy_configuration(self, project, configuration_id): """GetPolicyConfiguration. :param str project: Project ID or project name :param int configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -98,10 +98,10 @@ def get_policy_configurations(self, project, scope=None): def update_policy_configuration(self, configuration, project, configuration_id): """UpdatePolicyConfiguration. - :param :class:` ` configuration: + :param :class:` ` configuration: :param str project: Project ID or project name :param int configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -121,7 +121,7 @@ def get_policy_evaluation(self, project, evaluation_id): [Preview API] :param str project: Project ID or project name :param str evaluation_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -139,7 +139,7 @@ def requeue_policy_evaluation(self, project, evaluation_id): [Preview API] :param str project: Project ID or project name :param str evaluation_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -186,7 +186,7 @@ def get_policy_configuration_revision(self, project, configuration_id, revision_ :param str project: Project ID or project name :param int configuration_id: :param int revision_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -230,7 +230,7 @@ def get_policy_type(self, project, type_id): """GetPolicyType. :param str project: Project ID or project name :param str type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_0/project_analysis/models.py b/azure-devops/azure/devops/v4_0/project_analysis/models.py index 1d18e7d5..68f1ab91 100644 --- a/azure-devops/azure/devops/v4_0/project_analysis/models.py +++ b/azure-devops/azure/devops/v4_0/project_analysis/models.py @@ -73,7 +73,7 @@ class ProjectActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param project_id: :type project_id: str :param pull_requests_completed_count: @@ -107,9 +107,9 @@ class ProjectLanguageAnalytics(Model): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` :param result_phase: :type result_phase: object :param url: @@ -139,7 +139,7 @@ class RepositoryLanguageAnalytics(Model): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param name: :type name: str :param result_phase: diff --git a/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py b/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py index 4d9f79fd..ca3c93af 100644 --- a/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py +++ b/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py @@ -29,7 +29,7 @@ def get_project_language_analytics(self, project): """GetProjectLanguageAnalytics. [Preview API] :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -46,7 +46,7 @@ def get_project_activity_metrics(self, project, from_date, aggregation_type): :param str project: Project ID or project name :param datetime from_date: :param str aggregation_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_0/security/models.py b/azure-devops/azure/devops/v4_0/security/models.py index 2d9d9414..6f275837 100644 --- a/azure-devops/azure/devops/v4_0/security/models.py +++ b/azure-devops/azure/devops/v4_0/security/models.py @@ -17,9 +17,9 @@ class AccessControlEntry(Model): :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. :type deny: int :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` + :type extended_info: :class:`AceExtendedInformation ` """ _attribute_map = { @@ -155,7 +155,7 @@ class PermissionEvaluationBatch(Model): :param always_allow_administrators: :type always_allow_administrators: bool :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` + :type evaluations: list of :class:`PermissionEvaluation ` """ _attribute_map = { @@ -173,7 +173,7 @@ class SecurityNamespaceDescription(Model): """SecurityNamespaceDescription. :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` + :type actions: list of :class:`ActionDefinition ` :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. :type dataspace_category: str :param display_name: This localized name for this namespace. diff --git a/azure-devops/azure/devops/v4_0/security/security_client.py b/azure-devops/azure/devops/v4_0/security/security_client.py index b75af75d..100735fe 100644 --- a/azure-devops/azure/devops/v4_0/security/security_client.py +++ b/azure-devops/azure/devops/v4_0/security/security_client.py @@ -49,7 +49,7 @@ def remove_access_control_entries(self, security_namespace_id, token=None, descr def set_access_control_entries(self, container, security_namespace_id): """SetAccessControlEntries. - :param :class:` ` container: + :param :class:` ` container: :param str security_namespace_id: :rtype: [AccessControlEntry] """ @@ -116,7 +116,7 @@ def remove_access_control_lists(self, security_namespace_id, tokens=None, recurs def set_access_control_lists(self, access_control_lists, security_namespace_id): """SetAccessControlLists. - :param :class:` ` access_control_lists: + :param :class:` ` access_control_lists: :param str security_namespace_id: """ route_values = {} @@ -132,8 +132,8 @@ def set_access_control_lists(self, access_control_lists, security_namespace_id): def has_permissions_batch(self, eval_batch): """HasPermissionsBatch. Perform a batch of "has permission" checks. This methods does not aggregate the results nor does it shortcircut if one of the permissions evaluates to false. - :param :class:` ` eval_batch: - :rtype: :class:` ` + :param :class:` ` eval_batch: + :rtype: :class:` ` """ content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') response = self._send(http_method='POST', @@ -176,7 +176,7 @@ def remove_permission(self, security_namespace_id, permissions=None, token=None, :param int permissions: :param str token: :param str descriptor: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if security_namespace_id is not None: @@ -216,7 +216,7 @@ def query_security_namespaces(self, security_namespace_id, local_only=None): def set_inherit_flag(self, container, security_namespace_id): """SetInheritFlag. - :param :class:` ` container: + :param :class:` ` container: :param str security_namespace_id: """ route_values = {} diff --git a/azure-devops/azure/devops/v4_0/service_hooks/models.py b/azure-devops/azure/devops/v4_0/service_hooks/models.py index 24239505..d0853bf8 100644 --- a/azure-devops/azure/devops/v4_0/service_hooks/models.py +++ b/azure-devops/azure/devops/v4_0/service_hooks/models.py @@ -13,15 +13,15 @@ class Consumer(Model): """Consumer. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` + :type actions: list of :class:`ConsumerAction ` :param authentication_type: Gets or sets this consumer's authentication type. :type authentication_type: object :param description: Gets or sets this consumer's localized description. :type description: str :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :type external_configuration: :class:`ExternalConfigurationDescriptor ` :param id: Gets or sets this consumer's identifier. :type id: str :param image_url: Gets or sets this consumer's image URL, if any. @@ -29,7 +29,7 @@ class Consumer(Model): :param information_url: Gets or sets this consumer's information URL, if any. :type information_url: str :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this consumer's localized name. :type name: str :param url: The url for this resource @@ -69,7 +69,7 @@ class ConsumerAction(Model): """ConsumerAction. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. :type allow_resource_version_override: bool :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. @@ -79,7 +79,7 @@ class ConsumerAction(Model): :param id: Gets or sets this action's identifier. :type id: str :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this action's localized name. :type name: str :param supported_event_types: Gets or sets this action's supported event identifiers. @@ -123,13 +123,13 @@ class Event(Model): :param created_date: Gets or sets the UTC-based date and time that this event was created. :type created_date: datetime :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` + :type detailed_message: :class:`FormattedEventMessage ` :param event_type: Gets or sets the type of this event. :type event_type: str :param id: Gets or sets the unique identifier of this event. :type id: str :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` + :type message: :class:`FormattedEventMessage ` :param publisher_id: Gets or sets the identifier of the publisher that raised this event. :type publisher_id: str :param resource: Gets or sets the data associated with this event. @@ -139,7 +139,7 @@ class Event(Model): :param resource_version: Gets or sets the version of the data associated with this event. :type resource_version: str :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` + :type session_token: :class:`SessionToken ` """ _attribute_map = { @@ -177,7 +177,7 @@ class EventTypeDescriptor(Model): :param id: A unique id for the event type :type id: str :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: A localized friendly name for the event type :type name: str :param publisher_id: A unique id for the publisher of this event type @@ -335,11 +335,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -381,7 +381,7 @@ class InputFilter(Model): """InputFilter. :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` + :type conditions: list of :class:`InputFilterCondition ` """ _attribute_map = { @@ -495,7 +495,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -505,7 +505,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -551,7 +551,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -575,7 +575,7 @@ class Notification(Model): :param created_date: Gets or sets date and time that this result was created. :type created_date: datetime :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` + :type details: :class:`NotificationDetails ` :param event_id: The event id associated with this notification :type event_id: str :param id: The notification id @@ -635,7 +635,7 @@ class NotificationDetails(Model): :param error_message: Gets or sets this notification detail's error message. :type error_message: str :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` + :type event: :class:`Event ` :param event_type: Gets or sets this notification detail's event type. :type event_type: str :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) @@ -721,7 +721,7 @@ class NotificationsQuery(Model): """NotificationsQuery. :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` + :type associated_subscriptions: list of :class:`Subscription ` :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. :type include_details: bool :param max_created_date: Optional maximum date at which the notification was created @@ -735,7 +735,7 @@ class NotificationsQuery(Model): :param publisher_id: Optional publisher id to restrict the results to :type publisher_id: str :param results: Results from the query - :type results: list of :class:`Notification ` + :type results: list of :class:`Notification ` :param result_type: Optional notification result type to filter results to :type result_type: object :param status: Optional notification status to filter results to @@ -743,7 +743,7 @@ class NotificationsQuery(Model): :param subscription_ids: Optional list of subscription ids to restrict the results to :type subscription_ids: list of str :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` + :type summary: list of :class:`NotificationSummary ` """ _attribute_map = { @@ -781,7 +781,7 @@ class NotificationSummary(Model): """NotificationSummary. :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` + :type results: list of :class:`NotificationResultsSummaryDetail ` :param subscription_id: The subscription id associated with this notification :type subscription_id: str """ @@ -801,19 +801,19 @@ class Publisher(Model): """Publisher. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Gets this publisher's localized description. :type description: str :param id: Gets this publisher's identifier. :type id: str :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets this publisher's localized name. :type name: str :param service_instance_type: The service instance type of the first party publisher. :type service_instance_type: str :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` + :type supported_events: list of :class:`EventTypeDescriptor ` :param url: The url for this resource :type url: str """ @@ -847,15 +847,15 @@ class PublisherEvent(Model): :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. :type diagnostics: dict :param event: The event being published - :type event: :class:`Event ` + :type event: :class:`Event ` :param notification_id: Gets or sets the id of the notification. :type notification_id: int :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` + :type other_resource_versions: list of :class:`VersionedResource ` :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` + :type subscription: :class:`Subscription ` """ _attribute_map = { @@ -885,7 +885,7 @@ class PublishersQuery(Model): :param publisher_inputs: Filter for publisher inputs :type publisher_inputs: dict :param results: Results from the query - :type results: list of :class:`Publisher ` + :type results: list of :class:`Publisher ` """ _attribute_map = { @@ -973,7 +973,7 @@ class Subscription(Model): """Subscription. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param action_description: :type action_description: str :param consumer_action_id: @@ -983,7 +983,7 @@ class Subscription(Model): :param consumer_inputs: Consumer input values :type consumer_inputs: dict :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param event_description: @@ -993,7 +993,7 @@ class Subscription(Model): :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: :type modified_date: datetime :param probation_retries: @@ -1007,7 +1007,7 @@ class Subscription(Model): :param status: :type status: object :param subscriber: - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: :type url: str """ @@ -1065,15 +1065,15 @@ class SubscriptionsQuery(Model): :param consumer_id: Optional consumer id to restrict the results to (null for any) :type consumer_id: str :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` + :type consumer_input_filters: list of :class:`InputFilter ` :param event_type: Optional event type id to restrict the results to (null for any) :type event_type: str :param publisher_id: Optional publisher id to restrict the results to (null for any) :type publisher_id: str :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param results: Results from the query - :type results: list of :class:`Subscription ` + :type results: list of :class:`Subscription ` :param subscriber_id: Optional subscriber filter. :type subscriber_id: str """ diff --git a/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py index a4f50f40..fbfeb5f6 100644 --- a/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py +++ b/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py @@ -30,7 +30,7 @@ def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None :param str consumer_id: :param str consumer_action_id: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -70,7 +70,7 @@ def get_consumer(self, consumer_id, publisher_id=None): """GetConsumer. :param str consumer_id: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -103,7 +103,7 @@ def get_event_type(self, publisher_id, event_type_id): """GetEventType. :param str publisher_id: :param str event_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -151,7 +151,7 @@ def get_notification(self, subscription_id, notification_id): """GetNotification. :param str subscription_id: :param int notification_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -191,8 +191,8 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu def query_notifications(self, query): """QueryNotifications. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') response = self._send(http_method='POST', @@ -203,9 +203,9 @@ def query_notifications(self, query): def query_input_values(self, input_values_query, publisher_id): """QueryInputValues. - :param :class:` ` input_values_query: + :param :class:` ` input_values_query: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -221,7 +221,7 @@ def query_input_values(self, input_values_query, publisher_id): def get_publisher(self, publisher_id): """GetPublisher. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -243,8 +243,8 @@ def list_publishers(self): def query_publishers(self, query): """QueryPublishers. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') response = self._send(http_method='POST', @@ -255,8 +255,8 @@ def query_publishers(self, query): def create_subscription(self, subscription): """CreateSubscription. - :param :class:` ` subscription: - :rtype: :class:` ` + :param :class:` ` subscription: + :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='POST', @@ -280,7 +280,7 @@ def delete_subscription(self, subscription_id): def get_subscription(self, subscription_id): """GetSubscription. :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -316,9 +316,9 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. - :param :class:` ` subscription: + :param :class:` ` subscription: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -333,8 +333,8 @@ def replace_subscription(self, subscription, subscription_id=None): def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') response = self._send(http_method='POST', @@ -345,9 +345,9 @@ def create_subscriptions_query(self, query): def create_test_notification(self, test_notification, use_real_data=None): """CreateTestNotification. - :param :class:` ` test_notification: + :param :class:` ` test_notification: :param bool use_real_data: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if use_real_data is not None: diff --git a/azure-devops/azure/devops/v4_0/task/models.py b/azure-devops/azure/devops/v4_0/task/models.py index 25e1f68b..5387157a 100644 --- a/azure-devops/azure/devops/v4_0/task/models.py +++ b/azure-devops/azure/devops/v4_0/task/models.py @@ -81,7 +81,7 @@ class PlanEnvironment(Model): """PlanEnvironment. :param mask: - :type mask: list of :class:`MaskHint ` + :type mask: list of :class:`MaskHint ` :param options: :type options: dict :param variables: @@ -141,7 +141,7 @@ class TaskAttachment(Model): """TaskAttachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_on: :type created_on: datetime :param last_changed_by: @@ -221,7 +221,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -269,9 +269,9 @@ class TaskOrchestrationPlanReference(Model): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_id: :type plan_id: str :param plan_type: @@ -311,9 +311,9 @@ class TaskOrchestrationQueuedPlan(Model): :param assign_time: :type assign_time: datetime :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -357,15 +357,15 @@ class TaskOrchestrationQueuedPlanGroup(Model): """TaskOrchestrationQueuedPlanGroup. :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param queue_position: :type queue_position: int """ @@ -425,7 +425,7 @@ class TimelineRecord(Model): :param current_operation: :type current_operation: str :param details: - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: :type error_count: int :param finish_time: @@ -433,13 +433,13 @@ class TimelineRecord(Model): :param id: :type id: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: :type last_modified: datetime :param location: :type location: str :param log: - :type log: :class:`TaskLogReference ` + :type log: :class:`TaskLogReference ` :param name: :type name: str :param order: @@ -459,7 +459,7 @@ class TimelineRecord(Model): :param state: :type state: object :param task: - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: :type type: str :param variables: @@ -613,7 +613,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param item_type: :type item_type: object :param children: - :type children: list of :class:`TaskOrchestrationItem ` + :type children: list of :class:`TaskOrchestrationItem ` :param continue_on_error: :type continue_on_error: bool :param data: @@ -623,7 +623,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param parallel: :type parallel: bool :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` + :type rollback: :class:`TaskOrchestrationContainer ` """ _attribute_map = { @@ -654,9 +654,9 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_id: :type plan_id: str :param plan_type: @@ -666,11 +666,11 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param version: :type version: int :param environment: - :type environment: :class:`PlanEnvironment ` + :type environment: :class:`PlanEnvironment ` :param finish_time: :type finish_time: datetime :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` + :type implementation: :class:`TaskOrchestrationContainer ` :param plan_group: :type plan_group: str :param requested_by_id: @@ -686,7 +686,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param state: :type state: object :param timeline: - :type timeline: :class:`TimelineReference ` + :type timeline: :class:`TimelineReference ` """ _attribute_map = { @@ -740,7 +740,7 @@ class Timeline(TimelineReference): :param last_changed_on: :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/task/task_client.py b/azure-devops/azure/devops/v4_0/task/task_client.py index d373d83c..caf3bcf9 100644 --- a/azure-devops/azure/devops/v4_0/task/task_client.py +++ b/azure-devops/azure/devops/v4_0/task/task_client.py @@ -60,7 +60,7 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -100,7 +100,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -193,7 +193,7 @@ def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, reco def append_timeline_record_feed(self, lines, scope_identifier, hub_name, plan_id, timeline_id, record_id): """AppendTimelineRecordFeed. - :param :class:` ` lines: + :param :class:` ` lines: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -225,7 +225,7 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: :param int log_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -251,11 +251,11 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, def create_log(self, log, scope_identifier, hub_name, plan_id): """CreateLog. - :param :class:` ` log: + :param :class:` ` log: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -373,7 +373,7 @@ def get_queued_plan_group(self, scope_identifier, hub_name, plan_group): :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_group: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -393,7 +393,7 @@ def get_plan(self, scope_identifier, hub_name, plan_id): :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -438,7 +438,7 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): """UpdateRecords. - :param :class:` ` records: + :param :class:` ` records: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -464,11 +464,11 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): """CreateTimeline. - :param :class:` ` timeline: + :param :class:` ` timeline: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -514,7 +514,7 @@ def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_ :param str timeline_id: :param int change_id: :param bool include_records: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: diff --git a/azure-devops/azure/devops/v4_0/task_agent/models.py b/azure-devops/azure/devops/v4_0/task_agent/models.py index 96a9cf69..7c0e2367 100644 --- a/azure-devops/azure/devops/v4_0/task_agent/models.py +++ b/azure-devops/azure/devops/v4_0/task_agent/models.py @@ -111,7 +111,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -271,7 +271,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -289,11 +289,11 @@ class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. :param columns_header: - :type columns_header: :class:`MetricsColumnsHeader ` + :type columns_header: :class:`MetricsColumnsHeader ` :param deployment_group: - :type deployment_group: :class:`DeploymentGroupReference ` + :type deployment_group: :class:`DeploymentGroupReference ` :param rows: - :type rows: list of :class:`MetricsRow ` + :type rows: list of :class:`MetricsRow ` """ _attribute_map = { @@ -317,9 +317,9 @@ class DeploymentGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -341,7 +341,7 @@ class DeploymentMachine(Model): """DeploymentMachine. :param agent: - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: :type id: int :param tags: @@ -369,9 +369,9 @@ class DeploymentMachineGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -413,7 +413,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: :type display_name: str :param help_text: @@ -539,11 +539,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -671,7 +671,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -681,7 +681,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -745,9 +745,9 @@ class MetricsColumnsHeader(Model): """MetricsColumnsHeader. :param dimensions: - :type dimensions: list of :class:`MetricsColumnMetaData ` + :type dimensions: list of :class:`MetricsColumnMetaData ` :param metrics: - :type metrics: list of :class:`MetricsColumnMetaData ` + :type metrics: list of :class:`MetricsColumnMetaData ` """ _attribute_map = { @@ -799,7 +799,7 @@ class PackageMetadata(Model): :param type: The type of package (e.g. "agent") :type type: str :param version: The package version. - :type version: :class:`PackageVersion ` + :type version: :class:`PackageVersion ` """ _attribute_map = { @@ -937,13 +937,13 @@ class SecureFile(Model): """SecureFile. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: @@ -981,11 +981,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: The Gets or sets Identity reference for the user who created the Service endpoint - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or Sets description of endpoint @@ -999,9 +999,9 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param readers_group: - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1045,11 +1045,11 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param display_name: :type display_name: str :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: :type scheme: str """ @@ -1073,7 +1073,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: :type data: dict :param type: @@ -1101,13 +1101,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param finish_time: :type finish_time: datetime :param id: :type id: long :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_type: :type plan_type: str :param result: @@ -1141,7 +1141,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: :type endpoint_id: str """ @@ -1161,7 +1161,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1181,11 +1181,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1207,7 +1207,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: :type error_message: str :param result: - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: :type status_code: object """ @@ -1229,25 +1229,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: :type description: str :param display_name: :type display_name: str :param endpoint_url: - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: :type icon_url: str :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: :type name: str """ @@ -1289,7 +1289,7 @@ class TaskAgentAuthorization(Model): :param client_id: Gets or sets the client identifier for this agent. :type client_id: str :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` + :type public_key: :class:`TaskAgentPublicKey ` """ _attribute_map = { @@ -1313,9 +1313,9 @@ class TaskAgentJobRequest(Model): :param data: :type data: dict :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param finish_time: :type finish_time: datetime :param host_id: @@ -1327,9 +1327,9 @@ class TaskAgentJobRequest(Model): :param locked_until: :type locked_until: datetime :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` + :type matched_agents: list of :class:`TaskAgentReference ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_id: :type plan_id: str :param plan_type: @@ -1341,7 +1341,7 @@ class TaskAgentJobRequest(Model): :param request_id: :type request_id: long :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` + :type reserved_agent: :class:`TaskAgentReference ` :param result: :type result: object :param scope_id: @@ -1437,13 +1437,13 @@ class TaskAgentPoolMaintenanceDefinition(Model): :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time :type max_concurrent_agents_percentage: int :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :type options: :class:`TaskAgentPoolMaintenanceOptions ` :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` """ _attribute_map = { @@ -1485,11 +1485,11 @@ class TaskAgentPoolMaintenanceJob(Model): :param orchestration_id: Orchestration/Plan Id for the maintenance job :type orchestration_id: str :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param queue_time: Time that the maintenance job was queued :type queue_time: datetime :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param result: The maintenance job result :type result: object :param start_time: Time that the maintenance job was started @@ -1497,7 +1497,7 @@ class TaskAgentPoolMaintenanceJob(Model): :param status: Status of the maintenance job :type status: object :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` :param warning_count: The total warning counts during the maintenance job :type warning_count: int """ @@ -1541,7 +1541,7 @@ class TaskAgentPoolMaintenanceJobTargetAgent(Model): """TaskAgentPoolMaintenanceJobTargetAgent. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param job_id: :type job_id: int :param result: @@ -1689,7 +1689,7 @@ class TaskAgentQueue(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project_id: :type project_id: str """ @@ -1713,7 +1713,7 @@ class TaskAgentReference(Model): """TaskAgentReference. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. @@ -1749,9 +1749,9 @@ class TaskAgentSession(Model): """TaskAgentSession. :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` + :type encryption_key: :class:`TaskAgentSessionKey ` :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. :type owner_name: str :param session_id: Gets the unique identifier for this session. @@ -1803,15 +1803,15 @@ class TaskAgentUpdate(Model): :param current_state: The current state of this agent update :type current_state: str :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` + :type reason: :class:`TaskAgentUpdateReason ` :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_time: Gets the date on which this agent update was requested. :type request_time: datetime :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` + :type source_version: :class:`PackageVersion ` :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` + :type target_version: :class:`PackageVersion ` """ _attribute_map = { @@ -1853,7 +1853,7 @@ class TaskDefinition(Model): """TaskDefinition. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -1865,11 +1865,11 @@ class TaskDefinition(Model): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -1881,7 +1881,7 @@ class TaskDefinition(Model): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -1891,7 +1891,7 @@ class TaskDefinition(Model): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -1899,7 +1899,7 @@ class TaskDefinition(Model): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -1915,11 +1915,11 @@ class TaskDefinition(Model): :param server_owned: :type server_owned: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str """ @@ -2065,7 +2065,7 @@ class TaskExecution(Model): """TaskExecution. :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` + :type exec_task: :class:`TaskReference ` :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } :type platform_instructions: dict """ @@ -2085,7 +2085,7 @@ class TaskGroup(TaskDefinition): """TaskGroup. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2097,11 +2097,11 @@ class TaskGroup(TaskDefinition): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2113,7 +2113,7 @@ class TaskGroup(TaskDefinition): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2123,7 +2123,7 @@ class TaskGroup(TaskDefinition): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2131,7 +2131,7 @@ class TaskGroup(TaskDefinition): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -2147,23 +2147,23 @@ class TaskGroup(TaskDefinition): :param server_owned: :type server_owned: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str :param comment: Gets or sets comment. :type comment: str :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets date on which it got created. :type created_on: datetime :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. :type deleted: bool :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets date on which it got modified. :type modified_on: datetime :param owner: Gets or sets the owner. @@ -2173,7 +2173,7 @@ class TaskGroup(TaskDefinition): :param revision: Gets or sets revision. :type revision: int :param tasks: - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` """ _attribute_map = { @@ -2274,7 +2274,7 @@ class TaskGroupRevision(Model): """TaskGroupRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -2326,7 +2326,7 @@ class TaskGroupStep(Model): :param inputs: Gets or sets dictionary of inputs. :type inputs: dict :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. :type timeout_in_minutes: int """ @@ -2428,7 +2428,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -2486,7 +2486,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -2670,7 +2670,7 @@ class VariableGroup(Model): """VariableGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param description: @@ -2678,13 +2678,13 @@ class VariableGroup(Model): :param id: :type id: int :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: :type name: str :param provider_data: - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: :type type: str :param variables: @@ -2791,15 +2791,15 @@ class DeploymentGroup(DeploymentGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param description: :type description: str :param machine_count: :type machine_count: int :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param machine_tags: :type machine_tags: list of str """ @@ -2831,11 +2831,11 @@ class DeploymentMachineGroup(DeploymentMachineGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param size: :type size: int """ @@ -2859,7 +2859,7 @@ class TaskAgent(TaskAgentReference): """TaskAgent. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. @@ -2871,17 +2871,17 @@ class TaskAgent(TaskAgentReference): :param version: Gets the version of the agent. :type version: str :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` + :type assigned_request: :class:`TaskAgentJobRequest ` :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` + :type authorization: :class:`TaskAgentAuthorization ` :param created_on: Gets the date on which this agent was created. :type created_on: datetime :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. :type max_parallelism: int :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` + :type pending_update: :class:`TaskAgentUpdate ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_changed_on: Gets the date on which the last connectivity status change occurred. :type status_changed_on: datetime :param system_capabilities: @@ -2937,11 +2937,11 @@ class TaskAgentPool(TaskAgentPoolReference): :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. :type auto_provision: bool :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param size: Gets the current size of the pool. :type size: int """ @@ -2990,7 +2990,7 @@ class TaskInputDefinition(TaskInputDefinitionBase): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ diff --git a/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py b/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py index 4e5e4cc1..3f8e76c9 100644 --- a/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py +++ b/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py @@ -27,9 +27,9 @@ def __init__(self, base_url=None, creds=None): def add_agent(self, agent, pool_id): """AddAgent. - :param :class:` ` agent: + :param :class:` ` agent: :param int pool_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -64,7 +64,7 @@ def get_agent(self, pool_id, agent_id, include_capabilities=None, include_assign :param bool include_capabilities: :param bool include_assigned_request: :param [str] property_filters: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -121,10 +121,10 @@ def get_agents(self, pool_id, agent_name=None, include_capabilities=None, includ def replace_agent(self, agent, pool_id, agent_id): """ReplaceAgent. - :param :class:` ` agent: + :param :class:` ` agent: :param int pool_id: :param int agent_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -141,10 +141,10 @@ def replace_agent(self, agent, pool_id, agent_id): def update_agent(self, agent, pool_id, agent_id): """UpdateAgent. - :param :class:` ` agent: + :param :class:` ` agent: :param int pool_id: :param int agent_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -162,7 +162,7 @@ def update_agent(self, agent, pool_id, agent_id): def get_azure_subscriptions(self): """GetAzureSubscriptions. [Preview API] Returns list of azure subscriptions - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='bcd6189c-0303-471f-a8e1-acb22b74d700', @@ -190,9 +190,9 @@ def generate_deployment_group_access_token(self, project, deployment_group_id): def add_deployment_group(self, deployment_group, project): """AddDeploymentGroup. [Preview API] - :param :class:` ` deployment_group: + :param :class:` ` deployment_group: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -228,7 +228,7 @@ def get_deployment_group(self, project, deployment_group_id, action_filter=None, :param int deployment_group_id: :param str action_filter: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -286,10 +286,10 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N def update_deployment_group(self, deployment_group, project, deployment_group_id): """UpdateDeploymentGroup. [Preview API] - :param :class:` ` deployment_group: + :param :class:` ` deployment_group: :param str project: Project ID or project name :param int deployment_group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -402,7 +402,7 @@ def refresh_deployment_machines(self, project, deployment_group_id): def query_endpoint(self, endpoint): """QueryEndpoint. Proxy for a GET request defined by an 'endpoint'. The request is authorized using a service connection. The response is filtered using an XPath/Json based selector. - :param :class:` ` endpoint: Describes the URL to fetch. + :param :class:` ` endpoint: Describes the URL to fetch. :rtype: [str] """ content = self._serialize.body(endpoint, 'TaskDefinitionEndpoint') @@ -438,7 +438,7 @@ def get_service_endpoint_execution_records(self, project, endpoint_id, top=None) def add_service_endpoint_execution_records(self, input, project): """AddServiceEndpointExecutionRecords. [Preview API] - :param :class:` ` input: + :param :class:` ` input: :param str project: Project ID or project name :rtype: [ServiceEndpointExecutionRecord] """ @@ -459,7 +459,7 @@ def get_task_hub_license_details(self, hub_name, include_enterprise_users_count= :param str hub_name: :param bool include_enterprise_users_count: :param bool include_hosted_agent_minutes_count: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if hub_name is not None: @@ -479,9 +479,9 @@ def get_task_hub_license_details(self, hub_name, include_enterprise_users_count= def update_task_hub_license_details(self, task_hub_license_details, hub_name): """UpdateTaskHubLicenseDetails. [Preview API] - :param :class:` ` task_hub_license_details: + :param :class:` ` task_hub_license_details: :param str hub_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if hub_name is not None: @@ -497,8 +497,8 @@ def update_task_hub_license_details(self, task_hub_license_details, hub_name): def validate_inputs(self, input_validation_request): """ValidateInputs. [Preview API] - :param :class:` ` input_validation_request: - :rtype: :class:` ` + :param :class:` ` input_validation_request: + :rtype: :class:` ` """ content = self._serialize.body(input_validation_request, 'InputValidationRequest') response = self._send(http_method='POST', @@ -534,7 +534,7 @@ def get_agent_request(self, pool_id, request_id): """GetAgentRequest. :param int pool_id: :param long request_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -616,9 +616,9 @@ def get_agent_requests_for_plan(self, pool_id, plan_id, job_id=None): def queue_agent_request(self, request, pool_id): """QueueAgentRequest. - :param :class:` ` request: + :param :class:` ` request: :param int pool_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -633,11 +633,11 @@ def queue_agent_request(self, request, pool_id): def update_agent_request(self, request, pool_id, request_id, lock_token): """UpdateAgentRequest. - :param :class:` ` request: + :param :class:` ` request: :param int pool_id: :param long request_id: :param str lock_token: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -677,9 +677,9 @@ def generate_deployment_machine_group_access_token(self, project, machine_group_ def add_deployment_machine_group(self, machine_group, project): """AddDeploymentMachineGroup. [Preview API] - :param :class:` ` machine_group: + :param :class:` ` machine_group: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -714,7 +714,7 @@ def get_deployment_machine_group(self, project, machine_group_id, action_filter= :param str project: Project ID or project name :param int machine_group_id: :param str action_filter: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -757,10 +757,10 @@ def get_deployment_machine_groups(self, project, machine_group_name=None, action def update_deployment_machine_group(self, machine_group, project, machine_group_id): """UpdateDeploymentMachineGroup. [Preview API] - :param :class:` ` machine_group: + :param :class:` ` machine_group: :param str project: Project ID or project name :param int machine_group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -823,10 +823,10 @@ def update_deployment_machine_group_machines(self, deployment_machines, project, def add_deployment_machine(self, machine, project, deployment_group_id): """AddDeploymentMachine. [Preview API] - :param :class:` ` machine: + :param :class:` ` machine: :param str project: Project ID or project name :param int deployment_group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -867,7 +867,7 @@ def get_deployment_machine(self, project, deployment_group_id, machine_id, expan :param int deployment_group_id: :param int machine_id: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -919,11 +919,11 @@ def get_deployment_machines(self, project, deployment_group_id, tags=None, name= def replace_deployment_machine(self, machine, project, deployment_group_id, machine_id): """ReplaceDeploymentMachine. [Preview API] - :param :class:` ` machine: + :param :class:` ` machine: :param str project: Project ID or project name :param int deployment_group_id: :param int machine_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -943,11 +943,11 @@ def replace_deployment_machine(self, machine, project, deployment_group_id, mach def update_deployment_machine(self, machine, project, deployment_group_id, machine_id): """UpdateDeploymentMachine. [Preview API] - :param :class:` ` machine: + :param :class:` ` machine: :param str project: Project ID or project name :param int deployment_group_id: :param int machine_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -988,9 +988,9 @@ def update_deployment_machines(self, machines, project, deployment_group_id): def create_agent_pool_maintenance_definition(self, definition, pool_id): """CreateAgentPoolMaintenanceDefinition. [Preview API] - :param :class:` ` definition: + :param :class:` ` definition: :param int pool_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1024,7 +1024,7 @@ def get_agent_pool_maintenance_definition(self, pool_id, definition_id): [Preview API] :param int pool_id: :param int definition_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1055,10 +1055,10 @@ def get_agent_pool_maintenance_definitions(self, pool_id): def update_agent_pool_maintenance_definition(self, definition, pool_id, definition_id): """UpdateAgentPoolMaintenanceDefinition. [Preview API] - :param :class:` ` definition: + :param :class:` ` definition: :param int pool_id: :param int definition_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1094,7 +1094,7 @@ def get_agent_pool_maintenance_job(self, pool_id, job_id): [Preview API] :param int pool_id: :param int job_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1153,9 +1153,9 @@ def get_agent_pool_maintenance_jobs(self, pool_id, definition_id=None): def queue_agent_pool_maintenance_job(self, job, pool_id): """QueueAgentPoolMaintenanceJob. [Preview API] - :param :class:` ` job: + :param :class:` ` job: :param int pool_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1171,10 +1171,10 @@ def queue_agent_pool_maintenance_job(self, job, pool_id): def update_agent_pool_maintenance_job(self, job, pool_id, job_id): """UpdateAgentPoolMaintenanceJob. [Preview API] - :param :class:` ` job: + :param :class:` ` job: :param int pool_id: :param int job_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1214,7 +1214,7 @@ def get_message(self, pool_id, session_id, last_message_id=None): :param int pool_id: :param str session_id: :param long last_message_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1262,7 +1262,7 @@ def refresh_agents(self, pool_id): def send_message(self, message, pool_id, request_id): """SendMessage. - :param :class:` ` message: + :param :class:` ` message: :param int pool_id: :param long request_id: """ @@ -1285,7 +1285,7 @@ def get_package(self, package_type, platform, version): :param str package_type: :param str platform: :param str version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if package_type is not None: @@ -1339,8 +1339,8 @@ def get_agent_pool_roles(self, pool_id=None): def add_agent_pool(self, pool): """AddAgentPool. - :param :class:` ` pool: - :rtype: :class:` ` + :param :class:` ` pool: + :rtype: :class:` ` """ content = self._serialize.body(pool, 'TaskAgentPool') response = self._send(http_method='POST', @@ -1366,7 +1366,7 @@ def get_agent_pool(self, pool_id, properties=None, action_filter=None): :param int pool_id: :param [str] properties: :param str action_filter: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1410,9 +1410,9 @@ def get_agent_pools(self, pool_name=None, properties=None, pool_type=None, actio def update_agent_pool(self, pool, pool_id): """UpdateAgentPool. - :param :class:` ` pool: + :param :class:` ` pool: :param int pool_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1443,9 +1443,9 @@ def get_agent_queue_roles(self, queue_id=None): def add_agent_queue(self, queue, project=None): """AddAgentQueue. [Preview API] - :param :class:` ` queue: + :param :class:` ` queue: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1493,7 +1493,7 @@ def get_agent_queue(self, queue_id, project=None, action_filter=None): :param int queue_id: :param str project: Project ID or project name :param str action_filter: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1604,7 +1604,7 @@ def get_secure_file(self, project, secure_file_id, include_download_ticket=None) :param str project: Project ID or project name :param str secure_file_id: The unique secure file Id :param bool include_download_ticket: If includeDownloadTicket is true and the caller has permissions, a download ticket is included in the response. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1697,10 +1697,10 @@ def query_secure_files_by_properties(self, condition, project, name_pattern=None def update_secure_file(self, secure_file, project, secure_file_id): """UpdateSecureFile. [Preview API] Update the name or properties of an existing secure file - :param :class:` ` secure_file: The secure file with updated name and/or properties + :param :class:` ` secure_file: The secure file with updated name and/or properties :param str project: Project ID or project name :param str secure_file_id: The unique secure file Id - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1739,7 +1739,7 @@ def upload_secure_file(self, upload_stream, project, name, **kwargs): :param object upload_stream: Stream to upload :param str project: Project ID or project name :param str name: Name of the file to upload - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1764,10 +1764,10 @@ def upload_secure_file(self, upload_stream, project, name, **kwargs): def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): """ExecuteServiceEndpointRequest. [Preview API] - :param :class:` ` service_endpoint_request: + :param :class:` ` service_endpoint_request: :param str project: Project ID or project name :param str endpoint_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1787,9 +1787,9 @@ def execute_service_endpoint_request(self, service_endpoint_request, project, en def create_service_endpoint(self, endpoint, project): """CreateServiceEndpoint. [Preview API] - :param :class:` ` endpoint: + :param :class:` ` endpoint: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1823,7 +1823,7 @@ def get_service_endpoint_details(self, project, endpoint_id): [Preview API] :param str project: Project ID or project name :param str endpoint_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1870,11 +1870,11 @@ def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): """UpdateServiceEndpoint. [Preview API] - :param :class:` ` endpoint: + :param :class:` ` endpoint: :param str project: Project ID or project name :param str endpoint_id: :param str operation: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1931,9 +1931,9 @@ def get_service_endpoint_types(self, type=None, scheme=None): def create_agent_session(self, session, pool_id): """CreateAgentSession. - :param :class:` ` session: + :param :class:` ` session: :param int pool_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -1964,9 +1964,9 @@ def delete_agent_session(self, pool_id, session_id): def add_task_group(self, task_group, project): """AddTaskGroup. [Preview API] Create a task group. - :param :class:` ` task_group: Task group object to create. + :param :class:` ` task_group: Task group object to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2007,7 +2007,7 @@ def get_task_group(self, project, task_group_id, version_spec, expanded=None): :param str task_group_id: :param str version_spec: :param bool expanded: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2086,7 +2086,7 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi def publish_preview_task_group(self, task_group, project, task_group_id, disable_prior_versions=None): """PublishPreviewTaskGroup. [Preview API] - :param :class:` ` task_group: + :param :class:` ` task_group: :param str project: Project ID or project name :param str task_group_id: :param bool disable_prior_versions: @@ -2112,7 +2112,7 @@ def publish_preview_task_group(self, task_group, project, task_group_id, disable def publish_task_group(self, task_group_metadata, project, parent_task_group_id): """PublishTaskGroup. [Preview API] - :param :class:` ` task_group_metadata: + :param :class:` ` task_group_metadata: :param str project: Project ID or project name :param str parent_task_group_id: :rtype: [TaskGroup] @@ -2135,7 +2135,7 @@ def publish_task_group(self, task_group_metadata, project, parent_task_group_id) def undelete_task_group(self, task_group, project): """UndeleteTaskGroup. [Preview API] - :param :class:` ` task_group: + :param :class:` ` task_group: :param str project: Project ID or project name :rtype: [TaskGroup] """ @@ -2153,9 +2153,9 @@ def undelete_task_group(self, task_group, project): def update_task_group(self, task_group, project): """UpdateTaskGroup. [Preview API] Update a task group. - :param :class:` ` task_group: Task group to update. + :param :class:` ` task_group: Task group to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2216,7 +2216,7 @@ def get_task_definition(self, task_id, version_string, visibility=None, scope_lo :param str version_string: :param [str] visibility: :param bool scope_local: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if task_id is not None: @@ -2263,7 +2263,7 @@ def update_agent_update_state(self, pool_id, agent_id, current_state): :param int pool_id: :param int agent_id: :param str current_state: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -2285,7 +2285,7 @@ def update_agent_user_capabilities(self, user_capabilities, pool_id, agent_id): :param {str} user_capabilities: :param int pool_id: :param int agent_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pool_id is not None: @@ -2303,9 +2303,9 @@ def update_agent_user_capabilities(self, user_capabilities, pool_id, agent_id): def add_variable_group(self, group, project): """AddVariableGroup. [Preview API] - :param :class:` ` group: + :param :class:` ` group: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2339,7 +2339,7 @@ def get_variable_group(self, project, group_id): [Preview API] :param str project: Project ID or project name :param int group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2399,10 +2399,10 @@ def get_variable_groups_by_id(self, project, group_ids): def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. [Preview API] - :param :class:` ` group: + :param :class:` ` group: :param str project: Project ID or project name :param int group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2420,8 +2420,8 @@ def update_variable_group(self, group, project, group_id): def acquire_access_token(self, authentication_request): """AcquireAccessToken. [Preview API] - :param :class:` ` authentication_request: - :rtype: :class:` ` + :param :class:` ` authentication_request: + :rtype: :class:` ` """ content = self._serialize.body(authentication_request, 'AadOauthTokenRequest') response = self._send(http_method='POST', diff --git a/azure-devops/azure/devops/v4_0/test/models.py b/azure-devops/azure/devops/v4_0/test/models.py index 57f95b62..8e4610ce 100644 --- a/azure-devops/azure/devops/v4_0/test/models.py +++ b/azure-devops/azure/devops/v4_0/test/models.py @@ -17,7 +17,7 @@ class AggregatedDataForResultTrend(Model): :param results_by_outcome: :type results_by_outcome: dict :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_tests: :type total_tests: int """ @@ -45,11 +45,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param total_tests: :type total_tests: int """ @@ -153,7 +153,7 @@ class BuildConfiguration(Model): :param platform: :type platform: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param repository_id: :type repository_id: int :param source_version: @@ -195,11 +195,11 @@ class BuildCoverage(Model): :param code_coverage_file_url: :type code_coverage_file_url: str :param configuration: - :type configuration: :class:`BuildConfiguration ` + :type configuration: :class:`BuildConfiguration ` :param last_error: :type last_error: str :param modules: - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: :type state: str """ @@ -265,17 +265,17 @@ class CloneOperationInformation(Model): """CloneOperationInformation. :param clone_statistics: - :type clone_statistics: :class:`CloneStatistics ` + :type clone_statistics: :class:`CloneStatistics ` :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue :type completion_date: datetime :param creation_date: DateTime when the operation was started :type creation_date: datetime :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` + :type destination_object: :class:`ShallowReference ` :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` + :type destination_plan: :class:`ShallowReference ` :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` + :type destination_project: :class:`ShallowReference ` :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. :type message: str :param op_id: The ID of the operation @@ -283,11 +283,11 @@ class CloneOperationInformation(Model): :param result_object_type: The type of the object generated as a result of the Clone operation :type result_object_type: object :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` + :type source_object: :class:`ShallowReference ` :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` + :type source_plan: :class:`ShallowReference ` :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` + :type source_project: :class:`ShallowReference ` :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete :type state: object :param url: Url for geting the clone information @@ -405,7 +405,7 @@ class CodeCoverageData(Model): :param build_platform: Platform of build for which data is retrieved/published :type build_platform: str :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` + :type coverage_stats: list of :class:`CodeCoverageStatistics ` """ _attribute_map = { @@ -461,11 +461,11 @@ class CodeCoverageSummary(Model): """CodeCoverageSummary. :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` + :type coverage_data: list of :class:`CodeCoverageData ` :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` + :type delta_build: :class:`ShallowReference ` """ _attribute_map = { @@ -589,11 +589,11 @@ class FailingSince(Model): """FailingSince. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param date: :type date: datetime :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -621,7 +621,7 @@ class FunctionCoverage(Model): :param source_file: :type source_file: str :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -701,7 +701,7 @@ class LastResultDetails(Model): :param duration: :type duration: long :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` """ _attribute_map = { @@ -767,7 +767,7 @@ class LinkedWorkItemsQueryResult(Model): :param test_case_id: :type test_case_id: int :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -797,7 +797,7 @@ class ModuleCoverage(Model): :param block_data: :type block_data: str :param functions: - :type functions: list of :class:`FunctionCoverage ` + :type functions: list of :class:`FunctionCoverage ` :param name: :type name: str :param signature: @@ -805,7 +805,7 @@ class ModuleCoverage(Model): :param signature_age: :type signature_age: int :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -853,15 +853,15 @@ class PlanUpdateModel(Model): """PlanUpdateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param configuration_ids: :type configuration_ids: list of int :param description: @@ -871,15 +871,15 @@ class PlanUpdateModel(Model): :param iteration: :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param start_date: :type start_date: str :param state: @@ -933,9 +933,9 @@ class PointAssignment(Model): """PointAssignment. :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param tester: - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -957,7 +957,7 @@ class PointsFilter(Model): :param testcase_ids: :type testcase_ids: list of int :param testers: - :type testers: list of :class:`IdentityRef ` + :type testers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -981,7 +981,7 @@ class PointUpdateModel(Model): :param reset_to_active: :type reset_to_active: bool :param tester: - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1095,7 +1095,7 @@ class ResultRetentionSettings(Model): :param automated_results_retention_duration: :type automated_results_retention_duration: int :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param manual_results_retention_duration: @@ -1131,7 +1131,7 @@ class ResultsFilter(Model): :param results_count: :type results_count: int :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param trend_days: :type trend_days: int """ @@ -1163,7 +1163,7 @@ class RunCreateModel(Model): :param automated: :type automated: bool :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: @@ -1179,27 +1179,27 @@ class RunCreateModel(Model): :param controller: :type controller: str :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` + :type custom_test_fields: list of :class:`CustomTestField ` :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_test_environment: - :type dtl_test_environment: :class:`ShallowReference ` + :type dtl_test_environment: :class:`ShallowReference ` :param due_date: :type due_date: str :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` + :type environment_details: :class:`DtlEnvironmentDetails ` :param error_message: :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param iteration: :type iteration: str :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param plan: - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param point_ids: :type point_ids: list of int :param release_environment_uri: @@ -1219,7 +1219,7 @@ class RunCreateModel(Model): :param test_environment_id: :type test_environment_id: str :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param type: :type type: str """ @@ -1321,7 +1321,7 @@ class RunStatistic(Model): :param outcome: :type outcome: str :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` + :type resolution_state: :class:`TestResolutionState ` :param state: :type state: str """ @@ -1345,7 +1345,7 @@ class RunUpdateModel(Model): """RunUpdateModel. :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: @@ -1361,11 +1361,11 @@ class RunUpdateModel(Model): :param delete_in_progress_results: :type delete_in_progress_results: bool :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` :param due_date: :type due_date: str :param error_message: @@ -1373,7 +1373,7 @@ class RunUpdateModel(Model): :param iteration: :type iteration: str :param log_entries: - :type log_entries: list of :class:`TestMessageLogDetails ` + :type log_entries: list of :class:`TestMessageLogDetails ` :param name: :type name: str :param release_environment_uri: @@ -1391,7 +1391,7 @@ class RunUpdateModel(Model): :param test_environment_id: :type test_environment_id: str :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` """ _attribute_map = { @@ -1577,9 +1577,9 @@ class SuiteTestCase(Model): """SuiteTestCase. :param point_assignments: - :type point_assignments: list of :class:`PointAssignment ` + :type point_assignments: list of :class:`PointAssignment ` :param test_case: - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` """ _attribute_map = { @@ -1755,9 +1755,9 @@ class TestCaseResult(Model): :param afn_strip_id: :type afn_strip_id: int :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_bugs: - :type associated_bugs: list of :class:`ShallowReference ` + :type associated_bugs: list of :class:`ShallowReference ` :param automated_test_id: :type automated_test_id: str :param automated_test_name: @@ -1769,9 +1769,9 @@ class TestCaseResult(Model): :param automated_test_type_id: :type automated_test_type_id: str :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_reference: - :type build_reference: :class:`BuildReference ` + :type build_reference: :class:`BuildReference ` :param comment: :type comment: str :param completed_date: @@ -1779,39 +1779,39 @@ class TestCaseResult(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: float :param error_message: :type error_message: str :param failing_since: - :type failing_since: :class:`FailingSince ` + :type failing_since: :class:`FailingSince ` :param failure_type: :type failure_type: str :param id: :type id: int :param iteration_details: - :type iteration_details: list of :class:`TestIterationDetailsModel ` + :type iteration_details: list of :class:`TestIterationDetailsModel ` :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param priority: :type priority: int :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ShallowReference ` + :type release: :class:`ShallowReference ` :param release_reference: - :type release_reference: :class:`ReleaseReference ` + :type release_reference: :class:`ReleaseReference ` :param reset_count: :type reset_count: int :param resolution_state: @@ -1821,7 +1821,7 @@ class TestCaseResult(Model): :param revision: :type revision: int :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -1829,19 +1829,19 @@ class TestCaseResult(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_reference_id: :type test_case_reference_id: int :param test_case_title: :type test_case_title: str :param test_plan: - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` :param test_run: - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` :param test_suite: - :type test_suite: :class:`ShallowReference ` + :type test_suite: :class:`ShallowReference ` :param url: :type url: str """ @@ -2011,7 +2011,7 @@ class TestCaseResultUpdateModel(Model): :param computer_name: :type computer_name: str :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2021,11 +2021,11 @@ class TestCaseResultUpdateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2035,7 +2035,7 @@ class TestCaseResultUpdateModel(Model): :param test_case_priority: :type test_case_priority: str :param test_result: - :type test_result: :class:`ShallowReference ` + :type test_result: :class:`ShallowReference ` """ _attribute_map = { @@ -2085,7 +2085,7 @@ class TestConfiguration(Model): """TestConfiguration. :param area: Area of the configuration - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param description: Description of the configuration :type description: str :param id: Id of the configuration @@ -2093,13 +2093,13 @@ class TestConfiguration(Model): :param is_default: Is the configuration a default for the test plans :type is_default: bool :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last Updated Data :type last_updated_date: datetime :param name: Name of the configuration :type name: str :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision of the the configuration :type revision: int :param state: State of the configuration @@ -2107,7 +2107,7 @@ class TestConfiguration(Model): :param url: Url of Configuration Resource :type url: str :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` + :type values: list of :class:`NameValuePair ` """ _attribute_map = { @@ -2167,7 +2167,7 @@ class TestFailureDetails(Model): :param count: :type count: int :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` + :type test_results: list of :class:`TestCaseResultIdentifier ` """ _attribute_map = { @@ -2185,13 +2185,13 @@ class TestFailuresAnalysis(Model): """TestFailuresAnalysis. :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` + :type existing_failures: :class:`TestFailureDetails ` :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` + :type fixed_tests: :class:`TestFailureDetails ` :param new_failures: - :type new_failures: :class:`TestFailureDetails ` + :type new_failures: :class:`TestFailureDetails ` :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -2213,9 +2213,9 @@ class TestIterationDetailsModel(Model): """TestIterationDetailsModel. :param action_results: - :type action_results: list of :class:`TestActionResultModel ` + :type action_results: list of :class:`TestActionResultModel ` :param attachments: - :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :type attachments: list of :class:`TestCaseResultAttachmentModel ` :param comment: :type comment: str :param completed_date: @@ -2229,7 +2229,7 @@ class TestIterationDetailsModel(Model): :param outcome: :type outcome: str :param parameters: - :type parameters: list of :class:`TestResultParameterModel ` + :type parameters: list of :class:`TestResultParameterModel ` :param started_date: :type started_date: datetime :param url: @@ -2337,15 +2337,15 @@ class TestPlan(Model): """TestPlan. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param client_url: :type client_url: str :param description: @@ -2357,29 +2357,29 @@ class TestPlan(Model): :param iteration: :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param previous_build: - :type previous_build: :class:`ShallowReference ` + :type previous_build: :class:`ShallowReference ` :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param revision: :type revision: int :param root_suite: - :type root_suite: :class:`ShallowReference ` + :type root_suite: :class:`ShallowReference ` :param start_date: :type start_date: datetime :param state: :type state: str :param updated_by: - :type updated_by: :class:`IdentityRef ` + :type updated_by: :class:`IdentityRef ` :param updated_date: :type updated_date: datetime :param url: @@ -2445,9 +2445,9 @@ class TestPlanCloneRequest(Model): """TestPlanCloneRequest. :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` + :type destination_test_plan: :class:`TestPlan ` :param options: - :type options: :class:`CloneOptions ` + :type options: :class:`CloneOptions ` :param suite_ids: :type suite_ids: list of int """ @@ -2469,13 +2469,13 @@ class TestPoint(Model): """TestPoint. :param assigned_to: - :type assigned_to: :class:`IdentityRef ` + :type assigned_to: :class:`IdentityRef ` :param automated: :type automated: bool :param comment: :type comment: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param failure_type: :type failure_type: str :param id: @@ -2483,17 +2483,17 @@ class TestPoint(Model): :param last_resolution_state_id: :type last_resolution_state_id: int :param last_result: - :type last_result: :class:`ShallowReference ` + :type last_result: :class:`ShallowReference ` :param last_result_details: - :type last_result_details: :class:`LastResultDetails ` + :type last_result_details: :class:`LastResultDetails ` :param last_result_state: :type last_result_state: str :param last_run_build_number: :type last_run_build_number: str :param last_test_run: - :type last_test_run: :class:`ShallowReference ` + :type last_test_run: :class:`ShallowReference ` :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param outcome: @@ -2503,11 +2503,11 @@ class TestPoint(Model): :param state: :type state: str :param suite: - :type suite: :class:`ShallowReference ` + :type suite: :class:`ShallowReference ` :param test_case: - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` :param test_plan: - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param url: :type url: str :param work_item_properties: @@ -2571,9 +2571,9 @@ class TestPointsQuery(Model): :param order_by: :type order_by: str :param points: - :type points: list of :class:`TestPoint ` + :type points: list of :class:`TestPoint ` :param points_filter: - :type points_filter: :class:`PointsFilter ` + :type points_filter: :class:`PointsFilter ` :param wit_fields: :type wit_fields: list of str """ @@ -2601,7 +2601,7 @@ class TestResolutionState(Model): :param name: :type name: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` """ _attribute_map = { @@ -2621,7 +2621,7 @@ class TestResultCreateModel(Model): """TestResultCreateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_work_items: :type associated_work_items: list of int :param automated_test_id: @@ -2641,9 +2641,9 @@ class TestResultCreateModel(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2653,11 +2653,11 @@ class TestResultCreateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2665,13 +2665,13 @@ class TestResultCreateModel(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_priority: :type test_case_priority: str :param test_case_title: :type test_case_title: str :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` """ _attribute_map = { @@ -2737,9 +2737,9 @@ class TestResultDocument(Model): """TestResultDocument. :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` + :type operation_reference: :class:`TestOperationReference ` :param payload: - :type payload: :class:`TestResultPayload ` + :type payload: :class:`TestResultPayload ` """ _attribute_map = { @@ -2759,7 +2759,7 @@ class TestResultHistory(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` """ _attribute_map = { @@ -2779,7 +2779,7 @@ class TestResultHistoryDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param latest_result: - :type latest_result: :class:`TestCaseResult ` + :type latest_result: :class:`TestCaseResult ` """ _attribute_map = { @@ -2893,11 +2893,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -2919,7 +2919,7 @@ class TestResultsDetails(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` """ _attribute_map = { @@ -2939,7 +2939,7 @@ class TestResultsDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_count_by_outcome: :type results_count_by_outcome: dict """ @@ -2963,9 +2963,9 @@ class TestResultsQuery(Model): :param fields: :type fields: list of str :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_filter: - :type results_filter: :class:`ResultsFilter ` + :type results_filter: :class:`ResultsFilter ` """ _attribute_map = { @@ -2985,13 +2985,13 @@ class TestResultSummary(Model): """TestResultSummary. :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` :param team_project: - :type team_project: :class:`TeamProjectReference ` + :type team_project: :class:`TeamProjectReference ` :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` + :type test_failures: :class:`TestFailuresAnalysis ` :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -3057,9 +3057,9 @@ class TestRun(Model): """TestRun. :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_configuration: - :type build_configuration: :class:`BuildConfiguration ` + :type build_configuration: :class:`BuildConfiguration ` :param comment: :type comment: str :param completed_date: @@ -3069,21 +3069,21 @@ class TestRun(Model): :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param drop_location: :type drop_location: str :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` :param due_date: :type due_date: datetime :param error_message: :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param id: :type id: int :param incomplete_tests: @@ -3093,7 +3093,7 @@ class TestRun(Model): :param iteration: :type iteration: str :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param name: @@ -3101,19 +3101,19 @@ class TestRun(Model): :param not_applicable_tests: :type not_applicable_tests: int :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param passed_tests: :type passed_tests: int :param phase: :type phase: str :param plan: - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param post_process_state: :type post_process_state: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` :param release_environment_uri: :type release_environment_uri: str :param release_uri: @@ -3121,7 +3121,7 @@ class TestRun(Model): :param revision: :type revision: int :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` :param started_date: :type started_date: datetime :param state: @@ -3129,11 +3129,11 @@ class TestRun(Model): :param substate: :type substate: object :param test_environment: - :type test_environment: :class:`TestEnvironment ` + :type test_environment: :class:`TestEnvironment ` :param test_message_log_id: :type test_message_log_id: int :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param total_tests: :type total_tests: int :param unanalyzed_tests: @@ -3243,11 +3243,11 @@ class TestRunCoverage(Model): :param last_error: :type last_error: str :param modules: - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: :type state: str :param test_run: - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` """ _attribute_map = { @@ -3269,9 +3269,9 @@ class TestRunStatistic(Model): """TestRunStatistic. :param run: - :type run: :class:`ShallowReference ` + :type run: :class:`ShallowReference ` :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` """ _attribute_map = { @@ -3289,7 +3289,7 @@ class TestSession(Model): """TestSession. :param area: Area path of the test session - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param comment: Comments in the test session :type comment: str :param end_date: Duration of the session @@ -3297,15 +3297,15 @@ class TestSession(Model): :param id: Id of the test session :type id: int :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` + :type property_bag: :class:`PropertyBag ` :param revision: Revision of the test session :type revision: int :param source: Source of the test session @@ -3403,9 +3403,9 @@ class TestSuite(Model): :param area_uri: :type area_uri: str :param children: - :type children: list of :class:`TestSuite ` + :type children: list of :class:`TestSuite ` :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` + :type default_configurations: list of :class:`ShallowReference ` :param id: :type id: int :param inherit_default_configurations: @@ -3415,17 +3415,17 @@ class TestSuite(Model): :param last_populated_date: :type last_populated_date: datetime :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param name: :type name: str :param parent: - :type parent: :class:`ShallowReference ` + :type parent: :class:`ShallowReference ` :param plan: - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param query_string: :type query_string: str :param requirement_id: @@ -3435,7 +3435,7 @@ class TestSuite(Model): :param state: :type state: str :param suites: - :type suites: list of :class:`ShallowReference ` + :type suites: list of :class:`ShallowReference ` :param suite_type: :type suite_type: str :param test_case_count: @@ -3505,7 +3505,7 @@ class TestSuiteCloneRequest(Model): """TestSuiteCloneRequest. :param clone_options: - :type clone_options: :class:`CloneOptions ` + :type clone_options: :class:`CloneOptions ` :param destination_suite_id: :type destination_suite_id: int :param destination_suite_project_name: @@ -3529,9 +3529,9 @@ class TestSummaryForWorkItem(Model): """TestSummaryForWorkItem. :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` + :type summary: :class:`AggregatedDataForResultTrend ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -3549,9 +3549,9 @@ class TestToWorkItemLinks(Model): """TestToWorkItemLinks. :param test: - :type test: :class:`TestMethod ` + :type test: :class:`TestMethod ` :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -3575,7 +3575,7 @@ class TestVariable(Model): :param name: Name of the test variable :type name: str :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision :type revision: int :param url: Url of the test variable @@ -3641,9 +3641,9 @@ class WorkItemToTestLinks(Model): """WorkItemToTestLinks. :param tests: - :type tests: list of :class:`TestMethod ` + :type tests: list of :class:`TestMethod ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -3677,7 +3677,7 @@ class TestActionResultModel(TestResultModelBase): :param iteration_id: :type iteration_id: int :param shared_step_model: - :type shared_step_model: :class:`SharedStepModel ` + :type shared_step_model: :class:`SharedStepModel ` :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str :param url: diff --git a/azure-devops/azure/devops/v4_0/test/test_client.py b/azure-devops/azure/devops/v4_0/test/test_client.py index c110776c..c82fa91b 100644 --- a/azure-devops/azure/devops/v4_0/test/test_client.py +++ b/azure-devops/azure/devops/v4_0/test/test_client.py @@ -54,13 +54,13 @@ def get_action_results(self, project, run_id, test_case_result_id, iteration_id, def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): """CreateTestIterationResultAttachment. [Preview API] - :param :class:` ` attachment_request_model: + :param :class:` ` attachment_request_model: :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: :param int iteration_id: :param str action_path: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -86,11 +86,11 @@ def create_test_iteration_result_attachment(self, attachment_request_model, proj def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): """CreateTestResultAttachment. [Preview API] - :param :class:` ` attachment_request_model: + :param :class:` ` attachment_request_model: :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -189,10 +189,10 @@ def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, a def create_test_run_attachment(self, attachment_request_model, project, run_id): """CreateTestRunAttachment. [Preview API] - :param :class:` ` attachment_request_model: + :param :class:` ` attachment_request_model: :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -304,7 +304,7 @@ def get_clone_information(self, project, clone_operation_id, include_details=Non :param str project: Project ID or project name :param int clone_operation_id: :param bool include_details: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -324,10 +324,10 @@ def get_clone_information(self, project, clone_operation_id, include_details=Non def clone_test_plan(self, clone_request_body, project, plan_id): """CloneTestPlan. [Preview API] - :param :class:` ` clone_request_body: + :param :class:` ` clone_request_body: :param str project: Project ID or project name :param int plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -345,11 +345,11 @@ def clone_test_plan(self, clone_request_body, project, plan_id): def clone_test_suite(self, clone_request_body, project, plan_id, source_suite_id): """CloneTestSuite. [Preview API] - :param :class:` ` clone_request_body: + :param :class:` ` clone_request_body: :param str project: Project ID or project name :param int plan_id: :param int source_suite_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -395,7 +395,7 @@ def get_code_coverage_summary(self, project, build_id, delta_build_id=None): :param str project: Project ID or project name :param int build_id: :param int delta_build_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -415,7 +415,7 @@ def get_code_coverage_summary(self, project, build_id, delta_build_id=None): def update_code_coverage_summary(self, coverage_data, project, build_id): """UpdateCodeCoverageSummary. [Preview API] http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary - :param :class:` ` coverage_data: + :param :class:` ` coverage_data: :param str project: Project ID or project name :param int build_id: """ @@ -459,9 +459,9 @@ def get_test_run_code_coverage(self, project, run_id, flags): def create_test_configuration(self, test_configuration, project): """CreateTestConfiguration. [Preview API] - :param :class:` ` test_configuration: + :param :class:` ` test_configuration: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -495,7 +495,7 @@ def get_test_configuration_by_id(self, project, test_configuration_id): [Preview API] :param str project: Project ID or project name :param int test_configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -540,10 +540,10 @@ def get_test_configurations(self, project, skip=None, top=None, continuation_tok def update_test_configuration(self, test_configuration, project, test_configuration_id): """UpdateTestConfiguration. [Preview API] - :param :class:` ` test_configuration: + :param :class:` ` test_configuration: :param str project: Project ID or project name :param int test_configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -599,9 +599,9 @@ def query_custom_fields(self, project, scope_filter): def query_test_result_history(self, filter, project): """QueryTestResultHistory. [Preview API] - :param :class:` ` filter: + :param :class:` ` filter: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -621,7 +621,7 @@ def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, :param int test_case_result_id: :param int iteration_id: :param bool include_action_results: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -670,7 +670,7 @@ def get_test_iterations(self, project, run_id, test_case_result_id, include_acti def get_linked_work_items_by_query(self, work_item_query, project): """GetLinkedWorkItemsByQuery. [Preview API] - :param :class:` ` work_item_query: + :param :class:` ` work_item_query: :param str project: Project ID or project name :rtype: [LinkedWorkItemsQueryResult] """ @@ -733,9 +733,9 @@ def get_result_parameters(self, project, run_id, test_case_result_id, iteration_ def create_test_plan(self, test_plan, project): """CreateTestPlan. - :param :class:` ` test_plan: + :param :class:` ` test_plan: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -767,7 +767,7 @@ def get_plan_by_id(self, project, plan_id): """GetPlanById. :param str project: Project ID or project name :param int plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -813,10 +813,10 @@ def get_plans(self, project, owner=None, skip=None, top=None, include_plan_detai def update_test_plan(self, plan_update_model, project, plan_id): """UpdateTestPlan. - :param :class:` ` plan_update_model: + :param :class:` ` plan_update_model: :param str project: Project ID or project name :param int plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -838,7 +838,7 @@ def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): :param int suite_id: :param int point_ids: :param str wit_fields: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -904,7 +904,7 @@ def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_ def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): """UpdateTestPoints. - :param :class:` ` point_update_model: + :param :class:` ` point_update_model: :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -931,11 +931,11 @@ def update_test_points(self, point_update_model, project, plan_id, suite_id, poi def get_points_by_query(self, query, project, skip=None, top=None): """GetPointsByQuery. [Preview API] - :param :class:` ` query: + :param :class:` ` query: :param str project: Project ID or project name :param int skip: :param int top: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -963,7 +963,7 @@ def get_test_result_details_for_build(self, project, build_id, publish_context=N :param str group_by: :param str filter: :param str orderby: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -996,7 +996,7 @@ def get_test_result_details_for_release(self, project, release_id, release_env_i :param str group_by: :param str filter: :param str orderby: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1024,10 +1024,10 @@ def get_test_result_details_for_release(self, project, release_id, release_env_i def publish_test_result_document(self, document, project, run_id): """PublishTestResultDocument. [Preview API] - :param :class:` ` document: + :param :class:` ` document: :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1046,7 +1046,7 @@ def get_result_retention_settings(self, project): """GetResultRetentionSettings. [Preview API] :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1060,9 +1060,9 @@ def get_result_retention_settings(self, project): def update_result_retention_settings(self, retention_settings, project): """UpdateResultRetentionSettings. [Preview API] - :param :class:` ` retention_settings: + :param :class:` ` retention_settings: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1101,7 +1101,7 @@ def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to :param int run_id: :param int test_case_result_id: :param str details_to_include: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1171,9 +1171,9 @@ def update_test_results(self, results, project, run_id): def get_test_results_by_query(self, query, project): """GetTestResultsByQuery. [Preview API] - :param :class:` ` query: + :param :class:` ` query: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1193,8 +1193,8 @@ def query_test_results_report_for_build(self, project, build_id, publish_context :param int build_id: :param str publish_context: :param bool include_failure_details: - :param :class:` ` build_to_compare: - :rtype: :class:` ` + :param :class:` ` build_to_compare: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1236,8 +1236,8 @@ def query_test_results_report_for_release(self, project, release_id, release_env :param int release_env_id: :param str publish_context: :param bool include_failure_details: - :param :class:` ` release_to_compare: - :rtype: :class:` ` + :param :class:` ` release_to_compare: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1294,7 +1294,7 @@ def query_test_results_summary_for_releases(self, releases, project): def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): """QueryTestSummaryByRequirement. [Preview API] - :param :class:` ` results_context: + :param :class:` ` results_context: :param str project: Project ID or project name :param [int] work_item_ids: :rtype: [TestSummaryForWorkItem] @@ -1318,7 +1318,7 @@ def query_test_summary_by_requirement(self, results_context, project, work_item_ def query_result_trend_for_build(self, filter, project): """QueryResultTrendForBuild. [Preview API] - :param :class:` ` filter: + :param :class:` ` filter: :param str project: Project ID or project name :rtype: [AggregatedDataForResultTrend] """ @@ -1336,7 +1336,7 @@ def query_result_trend_for_build(self, filter, project): def query_result_trend_for_release(self, filter, project): """QueryResultTrendForRelease. [Preview API] - :param :class:` ` filter: + :param :class:` ` filter: :param str project: Project ID or project name :rtype: [AggregatedDataForResultTrend] """ @@ -1355,7 +1355,7 @@ def get_test_run_statistics(self, project, run_id): """GetTestRunStatistics. :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1370,9 +1370,9 @@ def get_test_run_statistics(self, project, run_id): def create_test_run(self, test_run, project): """CreateTestRun. - :param :class:` ` test_run: + :param :class:` ` test_run: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1404,7 +1404,7 @@ def get_test_run_by_id(self, project, run_id): """GetTestRunById. :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1523,10 +1523,10 @@ def query_test_runs(self, project, state, min_completed_date=None, max_completed def update_test_run(self, run_update_model, project, run_id): """UpdateTestRun. - :param :class:` ` run_update_model: + :param :class:` ` run_update_model: :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1544,9 +1544,9 @@ def update_test_run(self, run_update_model, project, run_id): def create_test_session(self, test_session, team_context): """CreateTestSession. [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1576,7 +1576,7 @@ def create_test_session(self, test_session, team_context): def get_test_sessions(self, team_context, period=None, all_sessions=None, include_all_properties=None, source=None, include_only_completed_sessions=None): """GetTestSessions. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param int period: :param bool all_sessions: :param bool include_all_properties: @@ -1622,9 +1622,9 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ def update_test_session(self, test_session, team_context): """UpdateTestSession. [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1752,7 +1752,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): :param int plan_id: :param int suite_id: :param int test_case_ids: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1815,7 +1815,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case def create_test_suite(self, test_suite, project, plan_id, suite_id): """CreateTestSuite. - :param :class:` ` test_suite: + :param :class:` ` test_suite: :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1860,7 +1860,7 @@ def get_test_suite_by_id(self, project, plan_id, suite_id, include_child_suites= :param int plan_id: :param int suite_id: :param bool include_child_suites: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1912,11 +1912,11 @@ def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=N def update_test_suite(self, suite_update_model, project, plan_id, suite_id): """UpdateTestSuite. - :param :class:` ` suite_update_model: + :param :class:` ` suite_update_model: :param str project: Project ID or project name :param int plan_id: :param int suite_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1965,7 +1965,7 @@ def delete_test_case(self, project, test_case_id): def create_test_settings(self, test_settings, project): """CreateTestSettings. - :param :class:` ` test_settings: + :param :class:` ` test_settings: :param str project: Project ID or project name :rtype: int """ @@ -1999,7 +1999,7 @@ def get_test_settings_by_id(self, project, test_settings_id): """GetTestSettingsById. :param str project: Project ID or project name :param int test_settings_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2015,9 +2015,9 @@ def get_test_settings_by_id(self, project, test_settings_id): def create_test_variable(self, test_variable, project): """CreateTestVariable. [Preview API] - :param :class:` ` test_variable: + :param :class:` ` test_variable: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2051,7 +2051,7 @@ def get_test_variable_by_id(self, project, test_variable_id): [Preview API] :param str project: Project ID or project name :param int test_variable_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2090,10 +2090,10 @@ def get_test_variables(self, project, skip=None, top=None): def update_test_variable(self, test_variable, project, test_variable_id): """UpdateTestVariable. [Preview API] - :param :class:` ` test_variable: + :param :class:` ` test_variable: :param str project: Project ID or project name :param int test_variable_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2111,9 +2111,9 @@ def update_test_variable(self, test_variable, project, test_variable_id): def add_work_item_to_test_links(self, work_item_to_test_links, project): """AddWorkItemToTestLinks. [Preview API] - :param :class:` ` work_item_to_test_links: + :param :class:` ` work_item_to_test_links: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2154,7 +2154,7 @@ def query_test_method_linked_work_items(self, project, test_name): [Preview API] :param str project: Project ID or project name :param str test_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_0/tfvc/models.py b/azure-devops/azure/devops/v4_0/tfvc/models.py index 94418249..1d88aed2 100644 --- a/azure-devops/azure/devops/v4_0/tfvc/models.py +++ b/azure-devops/azure/devops/v4_0/tfvc/models.py @@ -57,7 +57,7 @@ class Change(Model): :param item: :type item: object :param new_content: - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: :type source_server_item: str :param url: @@ -145,7 +145,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -155,9 +155,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param url: @@ -197,13 +197,13 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param url: @@ -305,9 +305,9 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -449,7 +449,7 @@ class TfvcChange(Change): """TfvcChange. :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` + :type merge_sources: list of :class:`TfvcMergeSource ` :param pending_version: Version at which a (shelved) change was pended against :type pending_version: int """ @@ -469,13 +469,13 @@ class TfvcChangesetRef(Model): """TfvcChangesetRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: :type changeset_id: int :param checked_in_by: - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: :type comment: str :param comment_truncated: @@ -581,9 +581,9 @@ class TfvcItem(ItemModel): """TfvcItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -675,7 +675,7 @@ class TfvcItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` + :type item_descriptors: list of :class:`TfvcItemDescriptor ` """ _attribute_map = { @@ -695,7 +695,7 @@ class TfvcLabelRef(Model): """TfvcLabelRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -707,7 +707,7 @@ class TfvcLabelRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -825,7 +825,7 @@ class TfvcPolicyOverrideInfo(Model): :param comment: :type comment: str :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` """ _attribute_map = { @@ -859,7 +859,7 @@ class TfvcShelvesetRef(Model): """TfvcShelvesetRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -871,7 +871,7 @@ class TfvcShelvesetRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -969,7 +969,7 @@ class VersionControlProjectInfo(Model): :param default_source_control_type: :type default_source_control_type: object :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param supports_git: :type supports_git: bool :param supports_tFVC: @@ -995,9 +995,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -1021,7 +1021,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param path: :type path: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: :type created_date: datetime :param description: @@ -1029,7 +1029,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param is_deleted: :type is_deleted: bool :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -1058,13 +1058,13 @@ class TfvcChangeset(TfvcChangesetRef): """TfvcChangeset. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: :type changeset_id: int :param checked_in_by: - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: :type comment: str :param comment_truncated: @@ -1076,19 +1076,19 @@ class TfvcChangeset(TfvcChangesetRef): :param account_id: :type account_id: str :param changes: - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param checkin_notes: - :type checkin_notes: list of :class:`CheckinNote ` + :type checkin_notes: list of :class:`CheckinNote ` :param collection_id: :type collection_id: str :param has_more_changes: :type has_more_changes: bool :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param team_project_ids: :type team_project_ids: list of str :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1126,7 +1126,7 @@ class TfvcLabel(TfvcLabelRef): """TfvcLabel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -1138,11 +1138,11 @@ class TfvcLabel(TfvcLabelRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param items: - :type items: list of :class:`TfvcItem ` + :type items: list of :class:`TfvcItem ` """ _attribute_map = { @@ -1166,7 +1166,7 @@ class TfvcShelveset(TfvcShelvesetRef): """TfvcShelveset. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -1178,17 +1178,17 @@ class TfvcShelveset(TfvcShelvesetRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param changes: - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param notes: - :type notes: list of :class:`CheckinNote ` + :type notes: list of :class:`CheckinNote ` :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1220,7 +1220,7 @@ class TfvcBranch(TfvcBranchRef): :param path: :type path: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: :type created_date: datetime :param description: @@ -1228,17 +1228,17 @@ class TfvcBranch(TfvcBranchRef): :param is_deleted: :type is_deleted: bool :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param children: - :type children: list of :class:`TfvcBranch ` + :type children: list of :class:`TfvcBranch ` :param mappings: - :type mappings: list of :class:`TfvcBranchMapping ` + :type mappings: list of :class:`TfvcBranchMapping ` :param parent: - :type parent: :class:`TfvcShallowBranchRef ` + :type parent: :class:`TfvcShallowBranchRef ` :param related_branches: - :type related_branches: list of :class:`TfvcShallowBranchRef ` + :type related_branches: list of :class:`TfvcShallowBranchRef ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py b/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py index d3ca9ae0..8b87db5c 100644 --- a/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py +++ b/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py @@ -32,7 +32,7 @@ def get_branch(self, path, project=None, include_parent=None, include_children=N :param str project: Project ID or project name :param bool include_parent: :param bool include_children: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -132,9 +132,9 @@ def get_changeset_changes(self, id=None, skip=None, top=None): def create_changeset(self, changeset, project=None): """CreateChangeset. Create a new changeset. - :param :class:` ` changeset: + :param :class:` ` changeset: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -160,8 +160,8 @@ def get_changeset(self, id, project=None, max_change_count=None, include_details :param int skip: :param int top: :param str orderby: - :param :class:` ` search_criteria: - :rtype: :class:` ` + :param :class:` ` search_criteria: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -217,7 +217,7 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N :param int skip: :param int top: :param str orderby: - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :rtype: [TfvcChangesetRef] """ route_values = {} @@ -258,7 +258,7 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N def get_batched_changesets(self, changesets_request_data): """GetBatchedChangesets. - :param :class:` ` changesets_request_data: + :param :class:` ` changesets_request_data: :rtype: [TfvcChangesetRef] """ content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') @@ -285,7 +285,7 @@ def get_changeset_work_items(self, id=None): def get_items_batch(self, item_request_data, project=None): """GetItemsBatch. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: [[TfvcItem]] """ @@ -303,7 +303,7 @@ def get_items_batch(self, item_request_data, project=None): def get_items_batch_zip(self, item_request_data, project=None, **kwargs): """GetItemsBatchZip. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: object """ @@ -332,8 +332,8 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path :param bool download: :param str scope_path: :param str recursion_level: - :param :class:` ` version_descriptor: - :rtype: :class:` ` + :param :class:` ` version_descriptor: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -372,7 +372,7 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc :param bool download: :param str scope_path: :param str recursion_level: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: object """ route_values = {} @@ -415,7 +415,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include :param str scope_path: :param str recursion_level: :param bool include_links: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: [TfvcItem] """ route_values = {} @@ -451,7 +451,7 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope :param bool download: :param str scope_path: :param str recursion_level: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: object """ route_values = {} @@ -496,7 +496,7 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ :param bool download: :param str scope_path: :param str recursion_level: - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: object """ route_values = {} @@ -559,9 +559,9 @@ def get_label(self, label_id, request_data, project=None): """GetLabel. Get a single deep label. :param str label_id: Unique identifier of label - :param :class:` ` request_data: maxItemCount + :param :class:` ` request_data: maxItemCount :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -592,7 +592,7 @@ def get_label(self, label_id, request_data, project=None): def get_labels(self, request_data, project=None, top=None, skip=None): """GetLabels. Get a collection of shallow label references. - :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter + :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter :param str project: Project ID or project name :param int top: Max number of labels to return :param int skip: Number of labels to skip @@ -651,8 +651,8 @@ def get_shelveset(self, shelveset_id, request_data=None): """GetShelveset. Get a single deep shelveset. :param str shelveset_id: Shelveset's unique ID - :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength - :rtype: :class:` ` + :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength + :rtype: :class:` ` """ query_parameters = {} if shelveset_id is not None: @@ -681,7 +681,7 @@ def get_shelveset(self, shelveset_id, request_data=None): def get_shelvesets(self, request_data=None, top=None, skip=None): """GetShelvesets. Return a collection of shallow shelveset references. - :param :class:` ` request_data: name, owner, and maxCommentLength + :param :class:` ` request_data: name, owner, and maxCommentLength :param int top: Max number of shelvesets to return :param int skip: Number of shelvesets to skip :rtype: [TfvcShelvesetRef] diff --git a/azure-devops/azure/devops/v4_0/wiki/models.py b/azure-devops/azure/devops/v4_0/wiki/models.py index 99a4920b..6b0ec124 100644 --- a/azure-devops/azure/devops/v4_0/wiki/models.py +++ b/azure-devops/azure/devops/v4_0/wiki/models.py @@ -15,9 +15,9 @@ class Change(Model): :param change_type: :type change_type: object :param item: - :type item: :class:`GitItem ` + :type item: :class:`GitItem ` :param new_content: - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: :type source_server_item: str :param url: @@ -87,11 +87,11 @@ class GitCommitRef(Model): :param _links: :type _links: ReferenceLinks :param author: - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: :type comment: str :param comment_truncated: @@ -99,13 +99,13 @@ class GitCommitRef(Model): :param commit_id: :type commit_id: str :param committer: - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: :type parents: list of str :param remote_url: :type remote_url: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param work_items: @@ -227,7 +227,7 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: :type project: TeamProjectReference :param remote_url: @@ -307,7 +307,7 @@ class GitStatus(Model): :param _links: Reference links. :type _links: ReferenceLinks :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. :type created_by: IdentityRef :param creation_date: Creation date and time of the status. @@ -463,7 +463,7 @@ class ItemModel(Model): :param _links: :type _links: ReferenceLinks :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -513,7 +513,7 @@ class WikiAttachmentResponse(Model): """WikiAttachmentResponse. :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` + :type attachment: :class:`WikiAttachment ` :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the head commit of wiki repository after the corresponding attachments API call. :type eTag: list of str """ @@ -617,7 +617,7 @@ class WikiRepository(Model): :param id: The ID of the wiki which is same as the ID of the Git repository that it is backed by. :type id: str :param repository: The git repository that backs up the wiki. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -637,15 +637,15 @@ class WikiUpdate(Model): """WikiUpdate. :param associated_git_push: Git push object associated with this wiki update object. This is populated only in the response of the wiki updates POST API. - :type associated_git_push: :class:`GitPush ` + :type associated_git_push: :class:`GitPush ` :param attachment_changes: List of attachment change objects that is to be associated with this update. - :type attachment_changes: list of :class:`WikiAttachmentChange ` + :type attachment_changes: list of :class:`WikiAttachmentChange ` :param comment: Comment to be associated with this update. :type comment: str :param head_commit: Headcommit of the of the repository. :type head_commit: str :param page_change: Page change object associated with this update. - :type page_change: :class:`WikiPageChange ` + :type page_change: :class:`WikiPageChange ` """ _attribute_map = { @@ -671,7 +671,7 @@ class GitItem(ItemModel): :param _links: :type _links: ReferenceLinks :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -685,7 +685,7 @@ class GitItem(ItemModel): :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) :type git_object_type: object :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` + :type latest_processed_change: :class:`GitCommitRef ` :param object_id: Git object id :type object_id: str :param original_object_id: Git object id @@ -731,11 +731,11 @@ class GitPush(GitPushRef): :param url: :type url: str :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` + :type ref_updates: list of :class:`GitRefUpdate ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/wiki/wiki_client.py b/azure-devops/azure/devops/v4_0/wiki/wiki_client.py index c71a120a..f3fc1d1b 100644 --- a/azure-devops/azure/devops/v4_0/wiki/wiki_client.py +++ b/azure-devops/azure/devops/v4_0/wiki/wiki_client.py @@ -32,7 +32,7 @@ def create_attachment(self, upload_stream, project, wiki_id, name, **kwargs): :param str project: Project ID or project name :param str wiki_id: ID of the wiki in which the attachment is to be created. :param str name: Name of the attachment that is to be created. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -65,7 +65,7 @@ def get_attachment(self, project, wiki_id, name): :param str project: Project ID or project name :param str wiki_id: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -92,7 +92,7 @@ def get_pages(self, project, wiki_id, path=None, recursion_level=None, version_d :param str wiki_id: ID of the wiki from which the page is to be retrieved. :param str path: Path from which the pages are to retrieved. :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). - :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). + :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). :rtype: [WikiPage] """ route_values = {} @@ -126,7 +126,7 @@ def get_page_text(self, project, wiki_id, path=None, recursion_level=None, versi :param str wiki_id: ID of the wiki from which the page is to be retrieved. :param str path: Path from which the pages are to retrieved. :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). - :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). + :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). :rtype: object """ route_values = {} @@ -165,7 +165,7 @@ def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, versio :param str wiki_id: ID of the wiki from which the page is to be retrieved. :param str path: Path from which the pages are to retrieved. :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). - :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). + :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). :rtype: object """ route_values = {} @@ -200,11 +200,11 @@ def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, versio def create_update(self, update, project, wiki_id, version_descriptor=None): """CreateUpdate. [Preview API] Use this API to create, edit, delete and reorder a wiki page and also to add attachments to a wiki page. For every successful wiki update creation a Git push is made to the backing Git repository. The data corresponding to that Git push is added in the response of this API. - :param :class:` ` update: + :param :class:` ` update: :param str project: Project ID or project name :param str wiki_id: ID of the wiki in which the update is to be made. - :param :class:` ` version_descriptor: Version descriptor for the version on which the update is to be made. Defaults to default branch (Optional). - :rtype: :class:` ` + :param :class:` ` version_descriptor: Version descriptor for the version on which the update is to be made. Defaults to default branch (Optional). + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -231,9 +231,9 @@ def create_update(self, update, project, wiki_id, version_descriptor=None): def create_wiki(self, wiki_to_create, project=None): """CreateWiki. [Preview API] Creates a backing git repository and does the intialization of the wiki for the given project. - :param :class:` ` wiki_to_create: Object containing name of the wiki to be created and the ID of the project in which the wiki is to be created. The provided name will also be used in the name of the backing git repository. If this is empty, the name will be auto generated. + :param :class:` ` wiki_to_create: Object containing name of the wiki to be created and the ID of the project in which the wiki is to be created. The provided name will also be used in the name of the backing git repository. If this is empty, the name will be auto generated. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_0/work/models.py b/azure-devops/azure/devops/v4_0/work/models.py index 909d8d76..7bfff349 100644 --- a/azure-devops/azure/devops/v4_0/work/models.py +++ b/azure-devops/azure/devops/v4_0/work/models.py @@ -33,7 +33,7 @@ class BacklogColumn(Model): """BacklogColumn. :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` + :type column_field_reference: :class:`WorkItemFieldReference ` :param width: :type width: int """ @@ -53,21 +53,21 @@ class BacklogConfiguration(Model): """BacklogConfiguration. :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` + :type backlog_fields: :class:`BacklogFields ` :param bugs_behavior: Bugs behavior :type bugs_behavior: object :param hidden_backlogs: Hidden Backlog :type hidden_backlogs: list of str :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :type requirement_backlog: :class:`BacklogLevelConfiguration ` :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` + :type task_backlog: :class:`BacklogLevelConfiguration ` :param url: :type url: str :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` """ _attribute_map = { @@ -141,13 +141,13 @@ class BacklogLevelConfiguration(Model): """BacklogLevelConfiguration. :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :type add_panel_fields: list of :class:`WorkItemFieldReference ` :param color: Color for the backlog level :type color: str :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` + :type column_fields: list of :class:`BacklogColumn ` :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) :type id: str :param name: Backlog Name @@ -157,7 +157,7 @@ class BacklogLevelConfiguration(Model): :param work_item_count_limit: Max number of work items to show in the given backlog :type work_item_count_limit: int :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -189,7 +189,7 @@ class BoardCardRuleSettings(Model): """BoardCardRuleSettings. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rules: :type rules: dict :param url: @@ -289,11 +289,11 @@ class BoardFields(Model): """BoardFields. :param column_field: - :type column_field: :class:`FieldReference ` + :type column_field: :class:`FieldReference ` :param done_field: - :type done_field: :class:`FieldReference ` + :type done_field: :class:`FieldReference ` :param row_field: - :type row_field: :class:`FieldReference ` + :type row_field: :class:`FieldReference ` """ _attribute_map = { @@ -313,7 +313,7 @@ class BoardFilterSettings(Model): """BoardFilterSettings. :param criteria: - :type criteria: :class:`FilterModel ` + :type criteria: :class:`FilterModel ` :param parent_work_item_ids: :type parent_work_item_ids: list of int :param query_text: @@ -413,9 +413,9 @@ class CapacityPatch(Model): """CapacityPatch. :param activities: - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -437,7 +437,7 @@ class CategoryConfiguration(Model): :param reference_name: Category Reference Name :type reference_name: str :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -581,9 +581,9 @@ class FilterModel(Model): """FilterModel. :param clauses: - :type clauses: list of :class:`FilterClause ` + :type clauses: list of :class:`FilterClause ` :param groups: - :type groups: list of :class:`FilterGroup ` + :type groups: list of :class:`FilterGroup ` :param max_group_level: :type max_group_level: int """ @@ -713,7 +713,7 @@ class Plan(Model): """Plan. :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` + :type created_by_identity: :class:`IdentityRef ` :param created_date: Date when the plan was created :type created_date: datetime :param description: Description of the plan @@ -721,7 +721,7 @@ class Plan(Model): :param id: Id of the plan :type id: str :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` + :type modified_by_identity: :class:`IdentityRef ` :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. :type modified_date: datetime :param name: Name of the plan @@ -793,13 +793,13 @@ class ProcessConfiguration(Model): """ProcessConfiguration. :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` + :type bug_work_items: :class:`CategoryConfiguration ` :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` + :type requirement_backlog: :class:`CategoryConfiguration ` :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` + :type task_backlog: :class:`CategoryConfiguration ` :param type_fields: Type fields for the process configuration :type type_fields: dict :param url: @@ -845,7 +845,7 @@ class Rule(Model): """Rule. :param clauses: - :type clauses: list of :class:`FilterClause ` + :type clauses: list of :class:`FilterClause ` :param filter: :type filter: str :param is_enabled: @@ -927,7 +927,7 @@ class TeamFieldValuesPatch(Model): :param default_value: :type default_value: str :param values: - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -965,7 +965,7 @@ class TeamSettingsDataContractBase(Model): """TeamSettingsDataContractBase. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str """ @@ -985,11 +985,11 @@ class TeamSettingsDaysOff(TeamSettingsDataContractBase): """TeamSettingsDaysOff. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1007,7 +1007,7 @@ class TeamSettingsDaysOffPatch(Model): """TeamSettingsDaysOffPatch. :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1023,11 +1023,11 @@ class TeamSettingsIteration(TeamSettingsDataContractBase): """TeamSettingsIteration. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` + :type attributes: :class:`TeamIterationAttributes ` :param id: Id of the resource :type id: str :param name: Name of the resource @@ -1133,7 +1133,7 @@ class TimelineTeamData(Model): """TimelineTeamData. :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` + :type backlog: :class:`BacklogLevel ` :param field_reference_names: The field reference names of the work item data :type field_reference_names: list of str :param id: The id of the team @@ -1141,7 +1141,7 @@ class TimelineTeamData(Model): :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. :type is_expanded: bool :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` + :type iterations: list of :class:`TimelineTeamIteration ` :param name: The name of the team :type name: str :param order_by_field: The order by field name of this team @@ -1151,15 +1151,15 @@ class TimelineTeamData(Model): :param project_id: The project id the team belongs team :type project_id: str :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` + :type status: :class:`TimelineTeamStatus ` :param team_field_default_value: The team field default value :type team_field_default_value: str :param team_field_name: The team field name of this team :type team_field_name: str :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` + :type team_field_values: list of :class:`TeamFieldValue ` :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` + :type work_item_type_colors: list of :class:`WorkItemColor ` """ _attribute_map = { @@ -1211,7 +1211,7 @@ class TimelineTeamIteration(Model): :param start_date: The start date of the iteration :type start_date: datetime :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` + :type status: :class:`TimelineIterationStatus ` :param work_items: The work items that have been paged in this iteration :type work_items: list of [object] """ @@ -1402,21 +1402,21 @@ class Board(BoardReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_mappings: :type allowed_mappings: dict :param can_edit: :type can_edit: bool :param columns: - :type columns: list of :class:`BoardColumn ` + :type columns: list of :class:`BoardColumn ` :param fields: - :type fields: :class:`BoardFields ` + :type fields: :class:`BoardFields ` :param is_valid: :type is_valid: bool :param revision: :type revision: int :param rows: - :type rows: list of :class:`BoardRow ` + :type rows: list of :class:`BoardRow ` """ _attribute_map = { @@ -1453,7 +1453,7 @@ class BoardChart(BoardChartReference): :param url: Full http link to the resource :type url: str :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param settings: The settings for the resource :type settings: dict """ @@ -1481,13 +1481,13 @@ class DeliveryViewData(PlanViewData): :param child_id_to_parent_id_map: Work item child id to parenet id map :type child_id_to_parent_id_map: dict :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` + :type criteria_status: :class:`TimelineCriteriaStatus ` :param end_date: The end date of the delivery view data :type end_date: datetime :param start_date: The start date for the delivery view data :type start_date: datetime :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` + :type teams: list of :class:`TimelineTeamData ` """ _attribute_map = { @@ -1513,15 +1513,15 @@ class TeamFieldValues(TeamSettingsDataContractBase): """TeamFieldValues. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param default_value: The default team field value :type default_value: str :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` + :type field: :class:`FieldReference ` :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1543,15 +1543,15 @@ class TeamMemberCapacity(TeamSettingsDataContractBase): """TeamMemberCapacity. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` + :type team_member: :class:`Member ` """ _attribute_map = { @@ -1573,17 +1573,17 @@ class TeamSetting(TeamSettingsDataContractBase): """TeamSetting. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` + :type backlog_iteration: :class:`TeamSettingsIteration ` :param backlog_visibilities: Information about categories that are visible on the backlog. :type backlog_visibilities: dict :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) :type bugs_behavior: object :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` + :type default_iteration: :class:`TeamSettingsIteration ` :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working diff --git a/azure-devops/azure/devops/v4_0/work/work_client.py b/azure-devops/azure/devops/v4_0/work/work_client.py index 5fe28bf8..bd0cd425 100644 --- a/azure-devops/azure/devops/v4_0/work/work_client.py +++ b/azure-devops/azure/devops/v4_0/work/work_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def get_backlog_configurations(self, team_context): """GetBacklogConfigurations. [Preview API] - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -71,7 +71,7 @@ def get_column_suggested_values(self, project=None): def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): """GetBoardMappingParentItems. [Preview API] Returns the list of parent field filter model for the given list of workitem ids - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str child_backlog_context_category_ref_name: :param [int] workitem_ids: :rtype: [ParentChildWIMap] @@ -123,9 +123,9 @@ def get_row_suggested_values(self, project=None): def get_board(self, team_context, id): """GetBoard. Get board - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -155,7 +155,7 @@ def get_board(self, team_context, id): def get_boards(self, team_context): """GetBoards. Get boards - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :rtype: [BoardReference] """ project = None @@ -185,7 +185,7 @@ def set_board_options(self, options, team_context, id): """SetBoardOptions. Update board options :param {str} options: options to updated - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either category plural name (Eg:"Stories") or guid :rtype: {str} """ @@ -219,9 +219,9 @@ def set_board_options(self, options, team_context, id): def get_board_user_settings(self, team_context, board): """GetBoardUserSettings. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -252,9 +252,9 @@ def update_board_user_settings(self, board_user_settings, team_context, board): """UpdateBoardUserSettings. [Preview API] Update board user settings for the board id :param {str} board_user_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -285,7 +285,7 @@ def update_board_user_settings(self, board_user_settings, team_context, board): def get_capacities(self, team_context, iteration_id): """GetCapacities. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: :rtype: [TeamMemberCapacity] """ @@ -316,10 +316,10 @@ def get_capacities(self, team_context, iteration_id): def get_capacity(self, team_context, iteration_id, team_member_id): """GetCapacity. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: :param str team_member_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -351,7 +351,7 @@ def get_capacity(self, team_context, iteration_id, team_member_id): def replace_capacities(self, capacities, team_context, iteration_id): """ReplaceCapacities. :param [TeamMemberCapacity] capacities: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: :rtype: [TeamMemberCapacity] """ @@ -384,11 +384,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): def update_capacity(self, patch, team_context, iteration_id, team_member_id): """UpdateCapacity. - :param :class:` ` patch: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation :param str iteration_id: :param str team_member_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -422,9 +422,9 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): def get_board_card_rule_settings(self, team_context, board): """GetBoardCardRuleSettings. [Preview API] Get board card Rule settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -454,10 +454,10 @@ def get_board_card_rule_settings(self, team_context, board): def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): """UpdateBoardCardRuleSettings. [Preview API] Update board card Rule settings for the board id or board by name - :param :class:` ` board_card_rule_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` board_card_rule_settings: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -489,9 +489,9 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context def get_board_card_settings(self, team_context, board): """GetBoardCardSettings. Get board card settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -521,10 +521,10 @@ def get_board_card_settings(self, team_context, board): def update_board_card_settings(self, board_card_settings_to_save, team_context, board): """UpdateBoardCardSettings. Update board card settings for the board id or board by name - :param :class:` ` board_card_settings_to_save: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` board_card_settings_to_save: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -556,10 +556,10 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, def get_board_chart(self, team_context, board, name): """GetBoardChart. Get a board chart - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -591,7 +591,7 @@ def get_board_chart(self, team_context, board, name): def get_board_charts(self, team_context, board): """GetBoardCharts. Get board charts - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :rtype: [BoardChartReference] """ @@ -623,11 +623,11 @@ def get_board_charts(self, team_context, board): def update_board_chart(self, chart, team_context, board, name): """UpdateBoardChart. Update a board chart - :param :class:` ` chart: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` chart: + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -660,7 +660,7 @@ def update_board_chart(self, chart, team_context, board, name): def get_board_columns(self, team_context, board): """GetBoardColumns. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: :rtype: [BoardColumn] """ @@ -692,7 +692,7 @@ def get_board_columns(self, team_context, board): def update_board_columns(self, board_columns, team_context, board): """UpdateBoardColumns. :param [BoardColumn] board_columns: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: :rtype: [BoardColumn] """ @@ -731,7 +731,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. :param datetime start_date: The start date of timeline :param datetime end_date: The end date of timeline - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -754,7 +754,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None def delete_team_iteration(self, team_context, id): """DeleteTeamIteration. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: """ project = None @@ -783,9 +783,9 @@ def delete_team_iteration(self, team_context, id): def get_team_iteration(self, team_context, id): """GetTeamIteration. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -814,7 +814,7 @@ def get_team_iteration(self, team_context, id): def get_team_iterations(self, team_context, timeframe=None): """GetTeamIterations. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str timeframe: :rtype: [TeamSettingsIteration] """ @@ -847,9 +847,9 @@ def get_team_iterations(self, team_context, timeframe=None): def post_team_iteration(self, iteration, team_context): """PostTeamIteration. - :param :class:` ` iteration: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` iteration: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -879,9 +879,9 @@ def post_team_iteration(self, iteration, team_context): def create_plan(self, posted_plan, project): """CreatePlan. [Preview API] Add a new plan for the team - :param :class:` ` posted_plan: Plan definition + :param :class:` ` posted_plan: Plan definition :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -915,7 +915,7 @@ def get_plan(self, project, id): [Preview API] Get the information for the specified plan :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -946,10 +946,10 @@ def get_plans(self, project): def update_plan(self, updated_plan, project, id): """UpdatePlan. [Preview API] Update the information for the specified plan - :param :class:` ` updated_plan: Plan definition to be updated + :param :class:` ` updated_plan: Plan definition to be updated :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -968,7 +968,7 @@ def get_process_configuration(self, project): """GetProcessConfiguration. [Preview API] :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -981,7 +981,7 @@ def get_process_configuration(self, project): def get_board_rows(self, team_context, board): """GetBoardRows. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: :rtype: [BoardRow] """ @@ -1013,7 +1013,7 @@ def get_board_rows(self, team_context, board): def update_board_rows(self, board_rows, team_context, board): """UpdateBoardRows. :param [BoardRow] board_rows: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: :rtype: [BoardRow] """ @@ -1046,9 +1046,9 @@ def update_board_rows(self, board_rows, team_context, board): def get_team_days_off(self, team_context, iteration_id): """GetTeamDaysOff. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1077,10 +1077,10 @@ def get_team_days_off(self, team_context, iteration_id): def update_team_days_off(self, days_off_patch, team_context, iteration_id): """UpdateTeamDaysOff. - :param :class:` ` days_off_patch: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` days_off_patch: + :param :class:` ` team_context: The team context for the operation :param str iteration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1111,8 +1111,8 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): def get_team_field_values(self, team_context): """GetTeamFieldValues. - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1139,9 +1139,9 @@ def get_team_field_values(self, team_context): def update_team_field_values(self, patch, team_context): """UpdateTeamFieldValues. - :param :class:` ` patch: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1170,8 +1170,8 @@ def update_team_field_values(self, patch, team_context): def get_team_settings(self, team_context): """GetTeamSettings. - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1198,9 +1198,9 @@ def get_team_settings(self, team_context): def update_team_settings(self, team_settings_patch, team_context): """UpdateTeamSettings. - :param :class:` ` team_settings_patch: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_settings_patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking/models.py index 051e7ac1..492f8f2d 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking/models.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking/models.py @@ -15,7 +15,7 @@ class AccountMyWorkResult(Model): :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit :type query_size_limit_exceeded: bool :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` """ _attribute_map = { @@ -398,7 +398,7 @@ class ProjectWorkItemStateColors(Model): :param project_name: Project name :type project_name: str :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` """ _attribute_map = { @@ -436,7 +436,7 @@ class QueryHierarchyItemsResult(Model): :param has_more: :type has_more: bool :param value: - :type value: list of :class:`QueryHierarchyItem ` + :type value: list of :class:`QueryHierarchyItem ` """ _attribute_map = { @@ -472,7 +472,7 @@ class ReportingWorkItemLink(Model): """ReportingWorkItemLink. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param changed_operation: @@ -652,7 +652,7 @@ class WorkItemComments(Model): """WorkItemComments. :param comments: - :type comments: list of :class:`WorkItemComment ` + :type comments: list of :class:`WorkItemComment ` :param count: :type count: int :param from_revision_count: @@ -850,9 +850,9 @@ class WorkItemLink(Model): :param rel: :type rel: str :param source: - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -872,17 +872,17 @@ class WorkItemQueryClause(Model): """WorkItemQueryClause. :param clauses: - :type clauses: list of :class:`WorkItemQueryClause ` + :type clauses: list of :class:`WorkItemQueryClause ` :param field: - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` :param field_value: - :type field_value: :class:`WorkItemFieldReference ` + :type field_value: :class:`WorkItemFieldReference ` :param is_field_value: :type is_field_value: bool :param logical_operator: :type logical_operator: object :param operator: - :type operator: :class:`WorkItemFieldOperation ` + :type operator: :class:`WorkItemFieldOperation ` :param value: :type value: str """ @@ -914,17 +914,17 @@ class WorkItemQueryResult(Model): :param as_of: :type as_of: datetime :param columns: - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param query_result_type: :type query_result_type: object :param query_type: :type query_type: object :param sort_columns: - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param work_item_relations: - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -954,7 +954,7 @@ class WorkItemQuerySortColumn(Model): :param descending: :type descending: bool :param field: - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1013,11 +1013,11 @@ class WorkItemRelationUpdates(Model): """WorkItemRelationUpdates. :param added: - :type added: list of :class:`WorkItemRelation ` + :type added: list of :class:`WorkItemRelation ` :param removed: - :type removed: list of :class:`WorkItemRelation ` + :type removed: list of :class:`WorkItemRelation ` :param updated: - :type updated: list of :class:`WorkItemRelation ` + :type updated: list of :class:`WorkItemRelation ` """ _attribute_map = { @@ -1149,7 +1149,7 @@ class WorkItemTypeFieldInstance(WorkItemFieldReference): :param always_required: :type always_required: bool :param field: - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` :param help_text: :type help_text: str """ @@ -1193,7 +1193,7 @@ class WorkItemTypeStateColors(Model): """WorkItemTypeStateColors. :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` + :type state_colors: list of :class:`WorkItemStateColor ` :param work_item_type_name: Work item type name :type work_item_type_name: str """ @@ -1263,11 +1263,11 @@ class WorkItemUpdate(WorkItemTrackingResourceReference): :param id: :type id: int :param relations: - :type relations: :class:`WorkItemRelationUpdates ` + :type relations: :class:`WorkItemRelationUpdates ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param work_item_id: @@ -1342,7 +1342,7 @@ class WorkItemDelete(WorkItemDeleteReference): :param url: :type url: str :param resource: - :type resource: :class:`WorkItem ` + :type resource: :class:`WorkItem ` """ _attribute_map = { @@ -1369,7 +1369,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1388,17 +1388,17 @@ class WorkItemType(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param color: :type color: str :param description: :type description: str :param field_instances: - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` :param fields: - :type fields: list of :class:`WorkItemTypeFieldInstance ` + :type fields: list of :class:`WorkItemTypeFieldInstance ` :param icon: - :type icon: :class:`WorkItemIcon ` + :type icon: :class:`WorkItemIcon ` :param name: :type name: str :param transitions: @@ -1438,15 +1438,15 @@ class WorkItemTypeCategory(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_work_item_type: - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param name: :type name: str :param reference_name: :type reference_name: str :param work_item_types: - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -1472,9 +1472,9 @@ class FieldDependentRule(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dependent_fields: - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1494,15 +1494,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param children: - :type children: list of :class:`QueryHierarchyItem ` + :type children: list of :class:`QueryHierarchyItem ` :param clauses: - :type clauses: :class:`WorkItemQueryClause ` + :type clauses: :class:`WorkItemQueryClause ` :param columns: - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param created_by: - :type created_by: :class:`IdentityReference ` + :type created_by: :class:`IdentityReference ` :param created_date: :type created_date: datetime :param filter_options: @@ -1520,11 +1520,11 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param is_public: :type is_public: bool :param last_modified_by: - :type last_modified_by: :class:`IdentityReference ` + :type last_modified_by: :class:`IdentityReference ` :param last_modified_date: :type last_modified_date: datetime :param link_clauses: - :type link_clauses: :class:`WorkItemQueryClause ` + :type link_clauses: :class:`WorkItemQueryClause ` :param name: :type name: str :param path: @@ -1532,11 +1532,11 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param query_type: :type query_type: object :param sort_columns: - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param source_clauses: - :type source_clauses: :class:`WorkItemQueryClause ` + :type source_clauses: :class:`WorkItemQueryClause ` :param target_clauses: - :type target_clauses: :class:`WorkItemQueryClause ` + :type target_clauses: :class:`WorkItemQueryClause ` :param wiql: :type wiql: str """ @@ -1600,13 +1600,13 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: :type fields: dict :param id: :type id: int :param relations: - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: :type rev: int """ @@ -1634,11 +1634,11 @@ class WorkItemClassificationNode(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attributes: :type attributes: dict :param children: - :type children: list of :class:`WorkItemClassificationNode ` + :type children: list of :class:`WorkItemClassificationNode ` :param id: :type id: int :param identifier: @@ -1676,9 +1676,9 @@ class WorkItemComment(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param revision: @@ -1710,7 +1710,7 @@ class WorkItemField(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param is_identity: @@ -1726,7 +1726,7 @@ class WorkItemField(WorkItemTrackingResource): :param reference_name: :type reference_name: str :param supported_operations: - :type supported_operations: list of :class:`WorkItemFieldOperation ` + :type supported_operations: list of :class:`WorkItemFieldOperation ` :param type: :type type: object """ @@ -1764,11 +1764,11 @@ class WorkItemHistory(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param value: @@ -1798,7 +1798,7 @@ class WorkItemTemplateReference(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -1832,7 +1832,7 @@ class WorkItemTrackingReference(WorkItemTrackingResource): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: :type name: str :param reference_name: @@ -1858,7 +1858,7 @@ class WorkItemRelationType(WorkItemTrackingReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: :type name: str :param reference_name: @@ -1886,7 +1886,7 @@ class WorkItemTemplate(WorkItemTemplateReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py index 7ede6d11..4a380db0 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py @@ -38,8 +38,8 @@ def get_work_artifact_link_types(self): def get_work_item_ids_for_artifact_uris(self, artifact_uri_query): """GetWorkItemIdsForArtifactUris. [Preview API] Gets the results of the work item ids linked to the artifact uri - :param :class:` ` artifact_uri_query: List of artifact uris. - :rtype: :class:` ` + :param :class:` ` artifact_uri_query: List of artifact uris. + :rtype: :class:` ` """ content = self._serialize.body(artifact_uri_query, 'ArtifactUriQuery') response = self._send(http_method='POST', @@ -55,7 +55,7 @@ def create_attachment(self, upload_stream, file_name=None, upload_type=None, are :param str file_name: :param str upload_type: :param str area_path: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if file_name is not None: @@ -148,11 +148,11 @@ def get_root_nodes(self, project, depth=None): def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. - :param :class:` ` posted_node: + :param :class:` ` posted_node: :param str project: Project ID or project name :param TreeStructureGroup structure_group: :param str path: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -198,7 +198,7 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non :param TreeStructureGroup structure_group: :param str path: :param int depth: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -219,11 +219,11 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non def update_classification_node(self, posted_node, project, structure_group, path=None): """UpdateClassificationNode. - :param :class:` ` posted_node: + :param :class:` ` posted_node: :param str project: Project ID or project name :param TreeStructureGroup structure_group: :param str path: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -245,7 +245,7 @@ def get_comment(self, id, revision): [Preview API] Returns comment for a work item at the specified revision :param int id: :param int revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -265,7 +265,7 @@ def get_comments(self, id, from_revision=None, top=None, order=None): :param int from_revision: Revision from which comments are to be fetched :param int top: The number of comments to return :param str order: Ascending or descending by revision id - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -304,7 +304,7 @@ def get_field(self, field_name_or_ref_name, project=None): Gets information on a specific field. :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -339,7 +339,7 @@ def get_fields(self, project=None, expand=None): def update_field(self, work_item_field, field_name_or_ref_name, project=None): """UpdateField. - :param :class:` ` work_item_field: + :param :class:` ` work_item_field: :param str field_name_or_ref_name: :param str project: Project ID or project name """ @@ -358,10 +358,10 @@ def update_field(self, work_item_field, field_name_or_ref_name, project=None): def create_query(self, posted_query, project, query): """CreateQuery. Creates a query, or moves a query. - :param :class:` ` posted_query: The query to create. + :param :class:` ` posted_query: The query to create. :param str project: Project ID or project name :param str query: The parent path for the query to create. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -425,7 +425,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non :param str expand: :param int depth: :param bool include_deleted: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -454,7 +454,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted :param int top: :param str expand: :param bool include_deleted: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -477,11 +477,11 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted def update_query(self, query_update, project, query, undelete_descendants=None): """UpdateQuery. - :param :class:` ` query_update: + :param :class:` ` query_update: :param str project: Project ID or project name :param str query: :param bool undelete_descendants: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -521,7 +521,7 @@ def get_deleted_work_item(self, id, project=None): [Preview API] :param int id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -573,10 +573,10 @@ def get_deleted_work_items(self, ids, project=None): def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. [Preview API] - :param :class:` ` payload: + :param :class:` ` payload: :param int id: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -597,7 +597,7 @@ def get_revision(self, id, revision_number, expand=None): :param int id: :param int revision_number: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -643,7 +643,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): def evaluate_rules_on_field(self, rule_engine_input): """EvaluateRulesOnField. Validates the fields values. - :param :class:` ` rule_engine_input: + :param :class:` ` rule_engine_input: """ content = self._serialize.body(rule_engine_input, 'FieldsToEvaluate') self._send(http_method='POST', @@ -654,9 +654,9 @@ def evaluate_rules_on_field(self, rule_engine_input): def create_template(self, template, team_context): """CreateTemplate. [Preview API] Creates a template - :param :class:` ` template: Template contents - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` template: Template contents + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -686,7 +686,7 @@ def create_template(self, template, team_context): def get_templates(self, team_context, workitemtypename=None): """GetTemplates. [Preview API] Gets template - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str workitemtypename: Optional, When specified returns templates for given Work item type. :rtype: [WorkItemTemplateReference] """ @@ -720,7 +720,7 @@ def get_templates(self, team_context, workitemtypename=None): def delete_template(self, team_context, template_id): """DeleteTemplate. [Preview API] Deletes the template with given id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id """ project = None @@ -750,9 +750,9 @@ def delete_template(self, team_context, template_id): def get_template(self, team_context, template_id): """GetTemplate. [Preview API] Gets the template with specified id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -782,10 +782,10 @@ def get_template(self, team_context, template_id): def replace_template(self, template_content, team_context, template_id): """ReplaceTemplate. [Preview API] Replace template contents - :param :class:` ` template_content: Template contents to replace with - :param :class:` ` team_context: The team context for the operation + :param :class:` ` template_content: Template contents to replace with + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -819,7 +819,7 @@ def get_update(self, id, update_number): Returns a single update for a work item :param int id: :param int update_number: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -858,11 +858,11 @@ def get_updates(self, id, top=None, skip=None): def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. Gets the results of the query. - :param :class:` ` wiql: The query containing the wiql. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` wiql: The query containing the wiql. + :param :class:` ` team_context: The team context for the operation :param bool time_precision: :param int top: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -899,7 +899,7 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): """GetQueryResultCount. Gets the results of the query by id. :param str id: The query id. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: :rtype: int """ @@ -936,9 +936,9 @@ def query_by_id(self, id, team_context=None, time_precision=None): """QueryById. Gets the results of the query by id. :param str id: The query id. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -975,7 +975,7 @@ def get_work_item_icon_json(self, icon, color=None, v=None): :param str icon: :param str color: :param int v: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if icon is not None: @@ -1037,7 +1037,7 @@ def get_reporting_links(self, project=None, types=None, continuation_token=None, :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. :param str continuation_token: Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. :param datetime start_date_time: Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1061,7 +1061,7 @@ def get_relation_type(self, relation): """GetRelationType. Gets the work item relation types. :param str relation: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if relation is not None: @@ -1096,7 +1096,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co :param bool include_latest_only: Return only the latest revisions of work items, skipping all historical revisions :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1134,12 +1134,12 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): """ReadReportingRevisionsPost. Get a batch of work item revisions - :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format + :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1164,7 +1164,7 @@ def delete_work_item(self, id, destroy=None): """DeleteWorkItem. :param int id: :param bool destroy: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -1186,7 +1186,7 @@ def get_work_item(self, id, fields=None, as_of=None, expand=None): :param [str] fields: :param datetime as_of: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -1238,12 +1238,12 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy def update_work_item(self, document, id, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. Updates a single work item - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -1268,13 +1268,13 @@ def update_work_item(self, document, id, validate_only=None, bypass_rules=None, def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): """CreateWorkItem. Creates a single work item - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item :param str project: Project ID or project name :param str type: The work item type of the work item to create :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1306,7 +1306,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= :param str fields: :param datetime as_of: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1347,7 +1347,7 @@ def get_work_item_type_category(self, project, category): Returns a the deltas between work item revisions :param str project: Project ID or project name :param str category: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1365,7 +1365,7 @@ def get_work_item_type(self, project, type): Returns a the deltas between work item revisions :param str project: Project ID or project name :param str type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1399,7 +1399,7 @@ def get_dependent_fields(self, project, type, field): :param str project: Project ID or project name :param str type: :param str field: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1438,7 +1438,7 @@ def export_work_item_type_definition(self, project=None, type=None, export_globa :param str project: Project ID or project name :param str type: :param bool export_global_lists: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1458,9 +1458,9 @@ def export_work_item_type_definition(self, project=None, type=None, export_globa def update_work_item_type_definition(self, update_model, project=None): """UpdateWorkItemTypeDefinition. Add/updates a work item type - :param :class:` ` update_model: + :param :class:` ` update_model: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py index 7e71504b..65c82e01 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py @@ -13,7 +13,7 @@ class Control(Model): """Control. :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param control_type: Type of the control. :type control_type: str :param height: Height of the control, for html controls. @@ -157,9 +157,9 @@ class FieldRuleModel(Model): """FieldRuleModel. :param actions: - :type actions: list of :class:`RuleActionModel ` + :type actions: list of :class:`RuleActionModel ` :param conditions: - :type conditions: list of :class:`RuleConditionModel ` + :type conditions: list of :class:`RuleConditionModel ` :param friendly_name: :type friendly_name: str :param id: @@ -193,11 +193,11 @@ class FormLayout(Model): """FormLayout. :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` + :type pages: list of :class:`Page ` :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` + :type system_controls: list of :class:`Control ` """ _attribute_map = { @@ -217,9 +217,9 @@ class Group(Model): """Group. :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` + :type controls: list of :class:`Control ` :param height: The height for the contribution. :type height: int :param id: The id for the layout node. @@ -269,7 +269,7 @@ class Page(Model): """Page. :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param id: The id for the layout node. :type id: str :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. @@ -287,7 +287,7 @@ class Page(Model): :param page_type: The icon for the page. :type page_type: object :param sections: The sections of the page. - :type sections: list of :class:`Section ` + :type sections: list of :class:`Section ` :param visible: A value indicating if the page should be hidden or not. :type visible: bool """ @@ -329,9 +329,9 @@ class ProcessModel(Model): :param name: :type name: str :param projects: - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param properties: - :type properties: :class:`ProcessProperties ` + :type properties: :class:`ProcessProperties ` :param reference_name: :type reference_name: str :param type_id: @@ -469,7 +469,7 @@ class Section(Model): """Section. :param groups: - :type groups: list of :class:`Group ` + :type groups: list of :class:`Group ` :param id: The id for the layout node. :type id: str :param overridden: A value indicating whether this layout node has been overridden by a child layout. @@ -555,11 +555,11 @@ class WorkItemBehavior(Model): :param description: :type description: str :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` + :type fields: list of :class:`WorkItemBehaviorField ` :param id: :type id: str :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` + :type inherits: :class:`WorkItemBehaviorReference ` :param name: :type name: str :param overriden: @@ -685,7 +685,7 @@ class WorkItemTypeBehavior(Model): """WorkItemTypeBehavior. :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` + :type behavior: :class:`WorkItemBehaviorReference ` :param is_default: :type is_default: bool :param url: @@ -709,7 +709,7 @@ class WorkItemTypeModel(Model): """WorkItemTypeModel. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param class_: :type class_: object :param color: @@ -725,11 +725,11 @@ class WorkItemTypeModel(Model): :param is_disabled: :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: :type name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: :type url: str """ diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py index 8bf7b14e..eda9ea00 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py @@ -31,7 +31,7 @@ def get_behavior(self, process_id, behavior_ref_name, expand=None): :param str process_id: :param str behavior_ref_name: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -104,8 +104,8 @@ def get_work_item_type_fields(self, process_id, wit_ref_name): def create_process(self, create_request): """CreateProcess. [Preview API] - :param :class:` ` create_request: - :rtype: :class:` ` + :param :class:` ` create_request: + :rtype: :class:` ` """ content = self._serialize.body(create_request, 'CreateProcessModel') response = self._send(http_method='POST', @@ -132,7 +132,7 @@ def get_process_by_id(self, process_type_id, expand=None): [Preview API] :param str process_type_id: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -165,9 +165,9 @@ def get_processes(self, expand=None): def update_process(self, update_request, process_type_id): """UpdateProcess. [Preview API] - :param :class:` ` update_request: + :param :class:` ` update_request: :param str process_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -183,10 +183,10 @@ def update_process(self, update_request, process_type_id): def add_work_item_type_rule(self, field_rule, process_id, wit_ref_name): """AddWorkItemTypeRule. [Preview API] - :param :class:` ` field_rule: + :param :class:` ` field_rule: :param str process_id: :param str wit_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -226,7 +226,7 @@ def get_work_item_type_rule(self, process_id, wit_ref_name, rule_id): :param str process_id: :param str wit_ref_name: :param str rule_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -262,11 +262,11 @@ def get_work_item_type_rules(self, process_id, wit_ref_name): def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): """UpdateWorkItemTypeRule. [Preview API] - :param :class:` ` field_rule: + :param :class:` ` field_rule: :param str process_id: :param str wit_ref_name: :param str rule_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -289,7 +289,7 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): :param str process_id: :param str wit_ref_name: :param str state_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -328,7 +328,7 @@ def get_work_item_type(self, process_id, wit_ref_name, expand=None): :param str process_id: :param str wit_ref_name: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py index 6fa7ba0f..7f5a4d7d 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py @@ -45,7 +45,7 @@ class BehaviorModel(Model): :param id: Behavior Id :type id: str :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` + :type inherits: :class:`WorkItemBehaviorReference ` :param name: Behavior Name :type name: str :param overridden: Is the behavior overrides a behavior from system process @@ -105,7 +105,7 @@ class Control(Model): """Control. :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param control_type: Type of the control. :type control_type: str :param height: Height of the control, for html controls. @@ -191,7 +191,7 @@ class FieldModel(Model): :param name: :type name: str :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` + :type pick_list: :class:`PickListMetadataModel ` :param type: :type type: object :param url: @@ -241,11 +241,11 @@ class FormLayout(Model): """FormLayout. :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` + :type pages: list of :class:`Page ` :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` + :type system_controls: list of :class:`Control ` """ _attribute_map = { @@ -265,9 +265,9 @@ class Group(Model): """Group. :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` + :type controls: list of :class:`Control ` :param height: The height for the contribution. :type height: int :param id: The id for the layout node. @@ -333,7 +333,7 @@ class Page(Model): """Page. :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param id: The id for the layout node. :type id: str :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. @@ -351,7 +351,7 @@ class Page(Model): :param page_type: The icon for the page. :type page_type: object :param sections: The sections of the page. - :type sections: list of :class:`Section ` + :type sections: list of :class:`Section ` :param visible: A value indicating if the page should be hidden or not. :type visible: bool """ @@ -451,7 +451,7 @@ class PickListModel(PickListMetadataModel): :param url: :type url: str :param items: - :type items: list of :class:`PickListItemModel ` + :type items: list of :class:`PickListItemModel ` """ _attribute_map = { @@ -472,7 +472,7 @@ class Section(Model): """Section. :param groups: - :type groups: list of :class:`Group ` + :type groups: list of :class:`Group ` :param id: The id for the layout node. :type id: str :param overridden: A value indicating whether this layout node has been overridden by a child layout. @@ -612,7 +612,7 @@ class WorkItemTypeBehavior(Model): """WorkItemTypeBehavior. :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` + :type behavior: :class:`WorkItemBehaviorReference ` :param is_default: :type is_default: bool :param url: @@ -642,7 +642,7 @@ class WorkItemTypeFieldModel(Model): :param name: :type name: str :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` + :type pick_list: :class:`PickListMetadataModel ` :param read_only: :type read_only: bool :param reference_name: @@ -684,7 +684,7 @@ class WorkItemTypeModel(Model): """WorkItemTypeModel. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param class_: :type class_: object :param color: @@ -700,11 +700,11 @@ class WorkItemTypeModel(Model): :param is_disabled: :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: :type name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: :type url: str """ diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py index 812241f3..315b5464 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_behavior(self, behavior, process_id): """CreateBehavior. [Preview API] - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -64,7 +64,7 @@ def get_behavior(self, process_id, behavior_id): [Preview API] :param str process_id: :param str behavior_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -95,10 +95,10 @@ def get_behaviors(self, process_id): def replace_behavior(self, behavior_data, process_id, behavior_id): """ReplaceBehavior. [Preview API] - :param :class:` ` behavior_data: + :param :class:` ` behavior_data: :param str process_id: :param str behavior_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -116,11 +116,11 @@ def replace_behavior(self, behavior_data, process_id, behavior_id): def add_control_to_group(self, control, process_id, wit_ref_name, group_id): """AddControlToGroup. [Preview API] Creates a control, giving it an id, and adds it to the group. So far, the only controls that don't know how to generate their own ids are control extensions. - :param :class:` ` control: + :param :class:` ` control: :param str process_id: :param str wit_ref_name: :param str group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -140,12 +140,12 @@ def add_control_to_group(self, control, process_id, wit_ref_name, group_id): def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): """EditControl. [Preview API] - :param :class:` ` control: + :param :class:` ` control: :param str process_id: :param str wit_ref_name: :param str group_id: :param str control_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -189,13 +189,13 @@ def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_ def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): """SetControlInGroup. [Preview API] Puts a control withan id into a group. Controls backed by fields can generate their own id. - :param :class:` ` control: + :param :class:` ` control: :param str process_id: :param str wit_ref_name: :param str group_id: :param str control_id: :param str remove_from_group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -221,9 +221,9 @@ def set_control_in_group(self, control, process_id, wit_ref_name, group_id, cont def create_field(self, field, process_id): """CreateField. [Preview API] - :param :class:` ` field: + :param :class:` ` field: :param str process_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -239,9 +239,9 @@ def create_field(self, field, process_id): def update_field(self, field, process_id): """UpdateField. [Preview API] - :param :class:` ` field: + :param :class:` ` field: :param str process_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -257,12 +257,12 @@ def update_field(self, field, process_id): def add_group(self, group, process_id, wit_ref_name, page_id, section_id): """AddGroup. [Preview API] - :param :class:` ` group: + :param :class:` ` group: :param str process_id: :param str wit_ref_name: :param str page_id: :param str section_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -284,13 +284,13 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): """EditGroup. [Preview API] - :param :class:` ` group: + :param :class:` ` group: :param str process_id: :param str wit_ref_name: :param str page_id: :param str section_id: :param str group_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -339,7 +339,7 @@ def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): """SetGroupInPage. [Preview API] - :param :class:` ` group: + :param :class:` ` group: :param str process_id: :param str wit_ref_name: :param str page_id: @@ -347,7 +347,7 @@ def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id :param str group_id: :param str remove_from_page_id: :param str remove_from_section_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -377,14 +377,14 @@ def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): """SetGroupInSection. [Preview API] - :param :class:` ` group: + :param :class:` ` group: :param str process_id: :param str wit_ref_name: :param str page_id: :param str section_id: :param str group_id: :param str remove_from_section_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -414,7 +414,7 @@ def get_form_layout(self, process_id, wit_ref_name): [Preview API] :param str process_id: :param str wit_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -440,8 +440,8 @@ def get_lists_metadata(self): def create_list(self, picklist): """CreateList. [Preview API] - :param :class:` ` picklist: - :rtype: :class:` ` + :param :class:` ` picklist: + :rtype: :class:` ` """ content = self._serialize.body(picklist, 'PickListModel') response = self._send(http_method='POST', @@ -467,7 +467,7 @@ def get_list(self, list_id): """GetList. [Preview API] :param str list_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -481,9 +481,9 @@ def get_list(self, list_id): def update_list(self, picklist, list_id): """UpdateList. [Preview API] - :param :class:` ` picklist: + :param :class:` ` picklist: :param str list_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -499,10 +499,10 @@ def update_list(self, picklist, list_id): def add_page(self, page, process_id, wit_ref_name): """AddPage. [Preview API] - :param :class:` ` page: + :param :class:` ` page: :param str process_id: :param str wit_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -520,10 +520,10 @@ def add_page(self, page, process_id, wit_ref_name): def edit_page(self, page, process_id, wit_ref_name): """EditPage. [Preview API] - :param :class:` ` page: + :param :class:` ` page: :param str process_id: :param str wit_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -560,10 +560,10 @@ def remove_page(self, process_id, wit_ref_name, page_id): def create_state_definition(self, state_model, process_id, wit_ref_name): """CreateStateDefinition. [Preview API] - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: :param str wit_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -603,7 +603,7 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): :param str process_id: :param str wit_ref_name: :param str state_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -639,11 +639,11 @@ def get_state_definitions(self, process_id, wit_ref_name): def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. [Preview API] - :param :class:` ` hide_state_model: + :param :class:` ` hide_state_model: :param str process_id: :param str wit_ref_name: :param str state_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -663,11 +663,11 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): """UpdateStateDefinition. [Preview API] - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: :param str wit_ref_name: :param str state_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -687,10 +687,10 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """AddBehaviorToWorkItemType. [Preview API] - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: :param str wit_ref_name_for_behaviors: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -711,7 +711,7 @@ def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors :param str process_id: :param str wit_ref_name_for_behaviors: :param str behavior_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -766,10 +766,10 @@ def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behav def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """UpdateBehaviorToWorkItemType. [Preview API] - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: :param str wit_ref_name_for_behaviors: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -787,9 +787,9 @@ def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_f def create_work_item_type(self, work_item_type, process_id): """CreateWorkItemType. [Preview API] - :param :class:` ` work_item_type: + :param :class:` ` work_item_type: :param str process_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -824,7 +824,7 @@ def get_work_item_type(self, process_id, wit_ref_name, expand=None): :param str process_id: :param str wit_ref_name: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -864,10 +864,10 @@ def get_work_item_types(self, process_id, expand=None): def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateWorkItemType. [Preview API] - :param :class:` ` work_item_type_update: + :param :class:` ` work_item_type_update: :param str process_id: :param str wit_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -885,10 +885,10 @@ def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name) def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): """AddFieldToWorkItemType. [Preview API] - :param :class:` ` field: + :param :class:` ` field: :param str process_id: :param str wit_ref_name_for_fields: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -909,7 +909,7 @@ def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_re :param str process_id: :param str wit_ref_name_for_fields: :param str field_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py index aa93b5cf..2574e6ea 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py @@ -21,7 +21,7 @@ class AdminBehavior(Model): :param description: :type description: str :param fields: - :type fields: list of :class:`AdminBehaviorField ` + :type fields: list of :class:`AdminBehaviorField ` :param id: :type id: str :param inherits: @@ -123,7 +123,7 @@ class ProcessImportResult(Model): :param promote_job_id: :type promote_job_id: str :param validation_results: - :type validation_results: list of :class:`ValidationIssue ` + :type validation_results: list of :class:`ValidationIssue ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py index c8108669..88b819b2 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py +++ b/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py @@ -30,7 +30,7 @@ def get_behavior(self, process_id, behavior_ref_name): [Preview API] :param str process_id: :param str behavior_ref_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -64,7 +64,7 @@ def check_template_existence(self, upload_stream, **kwargs): """CheckTemplateExistence. [Preview API] Check if process template exists :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'CheckTemplateExistence' @@ -109,7 +109,7 @@ def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs) [Preview API] :param object upload_stream: Stream to upload :param bool ignore_warnings: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'Import' @@ -134,7 +134,7 @@ def import_process_template_status(self, id): """ImportProcessTemplateStatus. [Preview API] Whether promote has completed for the specified promote job id :param str id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'Status' diff --git a/azure-devops/azure/devops/v4_1/accounts/models.py b/azure-devops/azure/devops/v4_1/accounts/models.py index 53aafc20..d0d16210 100644 --- a/azure-devops/azure/devops/v4_1/accounts/models.py +++ b/azure-devops/azure/devops/v4_1/accounts/models.py @@ -41,7 +41,7 @@ class Account(Model): :param organization_name: Organization that created the account :type organization_name: str :param properties: Extended properties - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_reason: Reason for current status :type status_reason: str """ @@ -95,9 +95,9 @@ class AccountCreateInfoInternal(Model): :param organization: :type organization: str :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` + :type preferences: :class:`AccountPreferencesInternal ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param service_definitions: :type service_definitions: list of { key: str; value: str } """ diff --git a/azure-devops/azure/devops/v4_1/build/build_client.py b/azure-devops/azure/devops/v4_1/build/build_client.py index f61229a3..f6b4823d 100644 --- a/azure-devops/azure/devops/v4_1/build/build_client.py +++ b/azure-devops/azure/devops/v4_1/build/build_client.py @@ -10,6 +10,7 @@ from ...client import Client from . import models + class BuildClient(Client): """Build :param str base_url: Service URL @@ -27,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def create_artifact(self, artifact, build_id, project=None): """CreateArtifact. Associates an artifact with a build. - :param :class:` ` artifact: The artifact. + :param :class:` ` artifact: The artifact. :param int build_id: The ID of the build. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -51,7 +52,7 @@ def get_artifact(self, build_id, artifact_name, project=None): :param int build_id: The ID of the build. :param str artifact_name: The name of the artifact. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -226,7 +227,7 @@ def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): :param str repo_type: The repository type. :param str repo_id: The repository ID. :param str branch_name: The branch name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -293,7 +294,7 @@ def get_build(self, build_id, project=None, property_filters=None): :param int build_id: :param str project: Project ID or project name :param str property_filters: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -395,11 +396,11 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket=None): """QueueBuild. Queues a build - :param :class:` ` build: + :param :class:` ` build: :param str project: Project ID or project name :param bool ignore_warnings: :param str check_in_ticket: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -421,10 +422,10 @@ def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket def update_build(self, build, build_id, project=None): """UpdateBuild. Updates a build. - :param :class:` ` build: The build. + :param :class:` ` build: The build. :param int build_id: The ID of the build. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -516,7 +517,7 @@ def get_build_controller(self, controller_id): """GetBuildController. Gets a controller :param int controller_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if controller_id is not None: @@ -545,11 +546,11 @@ def get_build_controllers(self, name=None): def create_definition(self, definition, project=None, definition_to_clone_id=None, definition_to_clone_revision=None): """CreateDefinition. Creates a new definition. - :param :class:` ` definition: The definition. + :param :class:` ` definition: The definition. :param str project: Project ID or project name :param int definition_to_clone_id: :param int definition_to_clone_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -593,7 +594,7 @@ def get_definition(self, definition_id, project=None, revision=None, min_metrics :param datetime min_metrics_time: If specified, indicates the date from which metrics should be included. :param [str] property_filters: A comma-delimited list of properties to include in the results. :param bool include_latest_builds: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -680,12 +681,12 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. Updates an existing definition. - :param :class:` ` definition: The new version of the defintion. + :param :class:` ` definition: The new version of the defintion. :param int definition_id: The ID of the definition. :param str project: Project ID or project name :param int secrets_source_definition_id: :param int secrets_source_definition_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -746,10 +747,10 @@ def get_file_contents(self, project, provider_name, service_endpoint_id=None, re def create_folder(self, folder, project, path): """CreateFolder. [Preview API] Creates a new folder. - :param :class:` ` folder: The folder. + :param :class:` ` folder: The folder. :param str project: Project ID or project name :param str path: The full path of the folder. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -806,10 +807,10 @@ def get_folders(self, project, path=None, query_order=None): def update_folder(self, folder, project, path): """UpdateFolder. [Preview API] Updates an existing folder at given existing path - :param :class:` ` folder: The new version of the folder. + :param :class:` ` folder: The new version of the folder. :param str project: Project ID or project name :param str path: The full path to the folder. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1027,7 +1028,7 @@ def get_build_properties(self, project, build_id, filter=None): :param str project: Project ID or project name :param int build_id: The ID of the build. :param [str] filter: A comma-delimited list of properties. If specified, filters to these specific properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1048,10 +1049,10 @@ def get_build_properties(self, project, build_id, filter=None): def update_build_properties(self, document, project, build_id): """UpdateBuildProperties. [Preview API] Updates properties for a build. - :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. + :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. :param str project: Project ID or project name :param int build_id: The ID of the build. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1073,7 +1074,7 @@ def get_definition_properties(self, project, definition_id, filter=None): :param str project: Project ID or project name :param int definition_id: The ID of the definition. :param [str] filter: A comma-delimited list of properties. If specified, filters to these specific properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1094,10 +1095,10 @@ def get_definition_properties(self, project, definition_id, filter=None): def update_definition_properties(self, document, project, definition_id): """UpdateDefinitionProperties. [Preview API] Updates properties for a definition. - :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. + :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. :param str project: Project ID or project name :param int definition_id: The ID of the definition. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1119,7 +1120,7 @@ def get_build_report(self, project, build_id, type=None): :param str project: Project ID or project name :param int build_id: The ID of the build. :param str type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1174,7 +1175,7 @@ def list_repositories(self, project, provider_name, service_endpoint_id=None, re :param str result_set: 'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set. :param bool page_results: If set to true, this will limit the set of results and will return a continuation token to continue the query. :param str continuation_token: When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1202,7 +1203,7 @@ def list_repositories(self, project, provider_name, service_endpoint_id=None, re def get_resource_usage(self): """GetResourceUsage. [Preview API] Gets information about build resources in the system. - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='3813d06c-9e36-4ea1-aac3-61a485d60e3d', @@ -1230,7 +1231,7 @@ def get_definition_revisions(self, project, definition_id): def get_build_settings(self): """GetBuildSettings. Gets the build settings. - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', @@ -1240,8 +1241,8 @@ def get_build_settings(self): def update_build_settings(self, settings): """UpdateBuildSettings. Updates the build settings. - :param :class:` ` settings: The new settings. - :rtype: :class:` ` + :param :class:` ` settings: The new settings. + :rtype: :class:` ` """ content = self._serialize.body(settings, 'BuildSettings') response = self._send(http_method='PATCH', @@ -1468,7 +1469,7 @@ def get_template(self, project, template_id): Gets a specific build definition template. :param str project: Project ID or project name :param str template_id: The ID of the requested template. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1499,10 +1500,10 @@ def get_templates(self, project): def save_template(self, template, project, template_id): """SaveTemplate. Updates an existing build definition template. - :param :class:` ` template: The new version of the template. + :param :class:` ` template: The new version of the template. :param str project: Project ID or project name :param str template_id: The ID of the template. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1580,7 +1581,7 @@ def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None :param str timeline_id: :param int change_id: :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/build/models.py b/azure-devops/azure/devops/v4_1/build/models.py index 73acfb1c..691cb814 100644 --- a/azure-devops/azure/devops/v4_1/build/models.py +++ b/azure-devops/azure/devops/v4_1/build/models.py @@ -13,13 +13,13 @@ class AgentPoolQueue(Model): """AgentPoolQueue. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: The ID of the queue. :type id: int :param name: The name of the queue. :type name: str :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param url: The full http link to the resource. :type url: str """ @@ -49,11 +49,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param run_summary_by_state: :type run_summary_by_state: dict :param total_tests: @@ -173,7 +173,7 @@ class ArtifactResource(Model): """ArtifactResource. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param data: Type-specific data about the artifact. :type data: str :param download_ticket: A secret that can be sent in a request header to retrieve an artifact anonymously. Valid for a limited amount of time. Optional. @@ -253,7 +253,7 @@ class Attachment(Model): """Attachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name of the attachment. :type name: str """ @@ -293,25 +293,25 @@ class Build(Model): """Build. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param build_number: The build number/name of the build. :type build_number: str :param build_number_revision: The build number revision. :type build_number_revision: int :param controller: The build controller. This is only set if the definition type is Xaml. - :type controller: :class:`BuildController ` + :type controller: :class:`BuildController ` :param definition: The definition associated with the build. - :type definition: :class:`DefinitionReference ` + :type definition: :class:`DefinitionReference ` :param deleted: Indicates whether the build has been deleted. :type deleted: bool :param deleted_by: The identity of the process or person that deleted the build. - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: The date the build was deleted. :type deleted_date: datetime :param deleted_reason: The description of how the build was deleted. :type deleted_reason: str :param demands: A list of demands that represents the agent capabilities required by this build. - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param finish_time: The time that the build was completed. :type finish_time: datetime :param id: The ID of the build. @@ -319,27 +319,27 @@ class Build(Model): :param keep_forever: Indicates whether the build should be skipped by retention policies. :type keep_forever: bool :param last_changed_by: The identity representing the process or person that last changed the build. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the build was last changed. :type last_changed_date: datetime :param logs: Information about the build logs. - :type logs: :class:`BuildLogReference ` + :type logs: :class:`BuildLogReference ` :param orchestration_plan: The orchestration plan for the build. - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` :param parameters: The parameters for the build. :type parameters: str :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` + :type plans: list of :class:`TaskOrchestrationPlanReference ` :param priority: The build's priority. :type priority: object :param project: The team project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param quality: The quality of the xaml build (good, bad, etc.) :type quality: str :param queue: The queue. This is only set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param queue_options: Additional options for queueing the build. :type queue_options: object :param queue_position: The current position of the build in the queue. @@ -349,11 +349,11 @@ class Build(Model): :param reason: The reason that the build was created. :type reason: object :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param requested_by: The identity that queued the build. - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param requested_for: The identity on whose behalf the build was queued. - :type requested_for: :class:`IdentityRef ` + :type requested_for: :class:`IdentityRef ` :param result: The build result. :type result: object :param retained_by_release: Indicates whether the build is retained by a release. @@ -369,7 +369,7 @@ class Build(Model): :param tags: :type tags: list of str :param triggered_by_build: The build that triggered this build via a Build completion trigger. - :type triggered_by_build: :class:`Build ` + :type triggered_by_build: :class:`Build ` :param trigger_info: Sourceprovider-specific information about what triggered the build :type trigger_info: dict :param uri: The URI of the build. @@ -377,7 +377,7 @@ class Build(Model): :param url: The REST URL of the build. :type url: str :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` + :type validation_results: list of :class:`BuildRequestValidationResult ` """ _attribute_map = { @@ -481,7 +481,7 @@ class BuildArtifact(Model): :param name: The name of the artifact. :type name: str :param resource: The actual resource. - :type resource: :class:`ArtifactResource ` + :type resource: :class:`ArtifactResource ` """ _attribute_map = { @@ -521,7 +521,7 @@ class BuildDefinitionRevision(Model): """BuildDefinitionRevision. :param changed_by: The identity of the person or process that changed the definition. - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: The date and time that the definition was changed. :type changed_date: datetime :param change_type: The change type (add, edit, delete). @@ -577,7 +577,7 @@ class BuildDefinitionStep(Model): :param ref_name: The reference name for this step. :type ref_name: str :param task: The task associated with this step. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: The time, in minutes, that this step is allowed to run. :type timeout_in_minutes: int """ @@ -629,7 +629,7 @@ class BuildDefinitionTemplate(Model): :param name: The name of the template. :type name: str :param template: The actual template. - :type template: :class:`BuildDefinition ` + :type template: :class:`BuildDefinition ` """ _attribute_map = { @@ -677,7 +677,7 @@ class BuildDefinitionTemplate3_2(Model): :param name: :type name: str :param template: - :type template: :class:`BuildDefinition3_2 ` + :type template: :class:`BuildDefinition3_2 ` """ _attribute_map = { @@ -785,7 +785,7 @@ class BuildOption(Model): """BuildOption. :param definition: A reference to the build option. - :type definition: :class:`BuildOptionDefinitionReference ` + :type definition: :class:`BuildOptionDefinitionReference ` :param enabled: Indicates whether the behavior is enabled. :type enabled: bool :param inputs: @@ -1019,9 +1019,9 @@ class BuildSettings(Model): :param days_to_keep_deleted_builds_before_destroy: The number of days to keep records of deleted builds. :type days_to_keep_deleted_builds_before_destroy: int :param default_retention_policy: The default retention policy. - :type default_retention_policy: :class:`RetentionPolicy ` + :type default_retention_policy: :class:`RetentionPolicy ` :param maximum_retention_policy: The maximum retention policy. - :type maximum_retention_policy: :class:`RetentionPolicy ` + :type maximum_retention_policy: :class:`RetentionPolicy ` """ _attribute_map = { @@ -1041,7 +1041,7 @@ class Change(Model): """Change. :param author: The author of the change. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param display_uri: The location of a user-friendly representation of the resource. :type display_uri: str :param id: The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. @@ -1095,7 +1095,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -1141,7 +1141,7 @@ class DefinitionReference(Model): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -1201,19 +1201,19 @@ class Folder(Model): """Folder. :param created_by: The process or person who created the folder. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: The date the folder was created. :type created_on: datetime :param description: The description. :type description: str :param last_changed_by: The process or person that last changed the folder. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the folder was last changed. :type last_changed_date: datetime :param path: The full path. :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -1241,7 +1241,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1269,7 +1269,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1381,11 +1381,11 @@ class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :type data_source_bindings: list of :class:`DataSourceBindingBase ` :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` + :type inputs: list of :class:`TaskInputDefinitionBase ` :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` """ _attribute_map = { @@ -1549,7 +1549,7 @@ class SourceProviderAttributes(Model): :param supported_capabilities: The capabilities supported by this source provider. :type supported_capabilities: dict :param supported_triggers: The types of triggers supported by this source provider. - :type supported_triggers: list of :class:`SupportedTrigger ` + :type supported_triggers: list of :class:`SupportedTrigger ` """ _attribute_map = { @@ -1573,7 +1573,7 @@ class SourceRepositories(Model): :param page_length: The number of repositories requested for each page :type page_length: int :param repositories: A list of repositories - :type repositories: list of :class:`SourceRepository ` + :type repositories: list of :class:`SourceRepository ` :param total_page_count: The total number of pages, or '-1' if unknown :type total_page_count: int """ @@ -1761,7 +1761,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -1941,11 +1941,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -1965,13 +1965,13 @@ class TimelineRecord(Model): """TimelineRecord. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param change_id: The change ID. :type change_id: int :param current_operation: A string that indicates the current operation. :type current_operation: str :param details: A reference to a sub-timeline. - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: The number of errors produced by this operation. :type error_count: int :param finish_time: The finish time. @@ -1979,11 +1979,11 @@ class TimelineRecord(Model): :param id: The ID of the record. :type id: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: The time the record was last modified. :type last_modified: datetime :param log: A reference to the log produced by this operation. - :type log: :class:`BuildLogReference ` + :type log: :class:`BuildLogReference ` :param name: The name. :type name: str :param order: An ordinal value relative to other records. @@ -2001,7 +2001,7 @@ class TimelineRecord(Model): :param state: The state of the record. :type state: object :param task: A reference to the task represented by this timeline record. - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: The type of the record. :type type: str :param url: The REST URL of the timeline record. @@ -2159,7 +2159,7 @@ class BuildController(XamlBuildControllerReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: The date the controller was created. :type created_date: datetime :param description: The description of the controller. @@ -2210,7 +2210,7 @@ class BuildDefinitionReference(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2222,23 +2222,23 @@ class BuildDefinitionReference(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2288,7 +2288,7 @@ class BuildDefinitionReference3_2(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2300,19 +2300,19 @@ class BuildDefinitionReference3_2(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2387,9 +2387,9 @@ class BuildOptionDefinition(BuildOptionDefinitionReference): :param description: The description. :type description: str :param groups: The list of input groups defined for the build option. - :type groups: list of :class:`BuildOptionGroupDefinition ` + :type groups: list of :class:`BuildOptionGroupDefinition ` :param inputs: The list of inputs defined for the build option. - :type inputs: list of :class:`BuildOptionInputDefinition ` + :type inputs: list of :class:`BuildOptionInputDefinition ` :param name: The name of the build option. :type name: str :param ordinal: A value that indicates the relative order in which the behavior should be applied. @@ -2428,7 +2428,7 @@ class Timeline(TimelineReference): :param last_changed_on: The time the timeline was last changed. :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -2490,7 +2490,7 @@ class BuildDefinition(BuildDefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2502,23 +2502,23 @@ class BuildDefinition(BuildDefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition. :type badge_enabled: bool :param build_number_format: The build number format. @@ -2526,7 +2526,7 @@ class BuildDefinition(BuildDefinitionReference): :param comment: A save-time comment for the definition. :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description. :type description: str :param drop_location: The drop location for the definition. @@ -2538,23 +2538,23 @@ class BuildDefinition(BuildDefinitionReference): :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. :type job_timeout_in_minutes: int :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`object ` + :type process: :class:`object ` :param process_parameters: The process parameters for this definition. - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` + :type variable_groups: list of :class:`VariableGroup ` :param variables: :type variables: dict """ @@ -2635,7 +2635,7 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2647,29 +2647,29 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition :type badge_enabled: bool :param build: - :type build: list of :class:`BuildDefinitionStep ` + :type build: list of :class:`BuildDefinitionStep ` :param build_number_format: The build number format :type build_number_format: str :param comment: The comment entered when saving the definition :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description :type description: str :param drop_location: The drop location for the definition @@ -2681,23 +2681,23 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition :type job_timeout_in_minutes: int :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ diff --git a/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py b/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py index 48a591d6..059a0630 100644 --- a/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py +++ b/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py @@ -27,8 +27,8 @@ def __init__(self, base_url=None, creds=None): def create_agent_group(self, group): """CreateAgentGroup. - :param :class:` ` group: Agent group to be created - :rtype: :class:` ` + :param :class:` ` group: Agent group to be created + :rtype: :class:` ` """ content = self._serialize.body(group, 'AgentGroup') response = self._send(http_method='POST', @@ -106,7 +106,7 @@ def get_static_agents(self, agent_group_id, agent_name=None): def get_application(self, application_id): """GetApplication. :param str application_id: Filter by APM application identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if application_id is not None: @@ -172,9 +172,9 @@ def get_application_counters(self, application_id=None, plugintype=None): def get_counter_samples(self, counter_sample_query_details, test_run_id): """GetCounterSamples. - :param :class:` ` counter_sample_query_details: + :param :class:` ` counter_sample_query_details: :param str test_run_id: The test run identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -193,7 +193,7 @@ def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detail :param str type: Filter for the particular type of errors. :param str sub_type: Filter for a particular subtype of errors. You should not provide error subtype without error type. :param bool detailed: To include the details of test errors such as messagetext, request, stacktrace, testcasename, scenarioname, and lasterrordate. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -229,7 +229,7 @@ def get_test_run_messages(self, test_run_id): def get_plugin(self, type): """GetPlugin. :param str type: Currently ApplicationInsights is the only available plugin type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if type is not None: @@ -252,7 +252,7 @@ def get_plugins(self): def get_load_test_result(self, test_run_id): """GetLoadTestResult. :param str test_run_id: The test run identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -265,8 +265,8 @@ def get_load_test_result(self, test_run_id): def create_test_definition(self, test_definition): """CreateTestDefinition. - :param :class:` ` test_definition: Test definition to be created - :rtype: :class:` ` + :param :class:` ` test_definition: Test definition to be created + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='POST', @@ -278,7 +278,7 @@ def create_test_definition(self, test_definition): def get_test_definition(self, test_definition_id): """GetTestDefinition. :param str test_definition_id: The test definition identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_definition_id is not None: @@ -311,8 +311,8 @@ def get_test_definitions(self, from_date=None, to_date=None, top=None): def update_test_definition(self, test_definition): """UpdateTestDefinition. - :param :class:` ` test_definition: - :rtype: :class:` ` + :param :class:` ` test_definition: + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='PUT', @@ -323,8 +323,8 @@ def update_test_definition(self, test_definition): def create_test_drop(self, web_test_drop): """CreateTestDrop. - :param :class:` ` web_test_drop: Test drop to be created - :rtype: :class:` ` + :param :class:` ` web_test_drop: Test drop to be created + :rtype: :class:` ` """ content = self._serialize.body(web_test_drop, 'Microsoft.VisualStudio.TestService.WebApiModel.TestDrop') response = self._send(http_method='POST', @@ -336,7 +336,7 @@ def create_test_drop(self, web_test_drop): def get_test_drop(self, test_drop_id): """GetTestDrop. :param str test_drop_id: The test drop identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_drop_id is not None: @@ -349,8 +349,8 @@ def get_test_drop(self, test_drop_id): def create_test_run(self, web_test_run): """CreateTestRun. - :param :class:` ` web_test_run: - :rtype: :class:` ` + :param :class:` ` web_test_run: + :rtype: :class:` ` """ content = self._serialize.body(web_test_run, 'TestRun') response = self._send(http_method='POST', @@ -362,7 +362,7 @@ def create_test_run(self, web_test_run): def get_test_run(self, test_run_id): """GetTestRun. :param str test_run_id: Unique ID of the test run - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -417,7 +417,7 @@ def get_test_runs(self, name=None, requested_by=None, status=None, run_type=None def update_test_run(self, web_test_run, test_run_id): """UpdateTestRun. - :param :class:` ` web_test_run: + :param :class:` ` web_test_run: :param str test_run_id: """ route_values = {} diff --git a/azure-devops/azure/devops/v4_1/cloud_load_test/models.py b/azure-devops/azure/devops/v4_1/cloud_load_test/models.py index b81300f8..b91a3b46 100644 --- a/azure-devops/azure/devops/v4_1/cloud_load_test/models.py +++ b/azure-devops/azure/devops/v4_1/cloud_load_test/models.py @@ -21,9 +21,9 @@ class AgentGroup(Model): :param group_name: :type group_name: str :param machine_access_data: - :type machine_access_data: list of :class:`AgentGroupAccessData ` + :type machine_access_data: list of :class:`AgentGroupAccessData ` :param machine_configuration: - :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` :param tenant_id: :type tenant_id: str """ @@ -267,7 +267,7 @@ class CounterInstanceSamples(Model): :param next_refresh_time: :type next_refresh_time: datetime :param values: - :type values: list of :class:`CounterSample ` + :type values: list of :class:`CounterSample ` """ _attribute_map = { @@ -371,7 +371,7 @@ class CounterSamplesResult(Model): :param total_samples_count: :type total_samples_count: int :param values: - :type values: list of :class:`CounterInstanceSamples ` + :type values: list of :class:`CounterInstanceSamples ` """ _attribute_map = { @@ -511,13 +511,13 @@ class LoadTestDefinition(Model): :param agent_count: :type agent_count: int :param browser_mixs: - :type browser_mixs: list of :class:`BrowserMix ` + :type browser_mixs: list of :class:`BrowserMix ` :param core_count: :type core_count: int :param cores_per_agent: :type cores_per_agent: int :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_pattern_name: :type load_pattern_name: str :param load_test_name: @@ -573,7 +573,7 @@ class LoadTestErrors(Model): :param occurrences: :type occurrences: int :param types: - :type types: list of :class:`object ` + :type types: list of :class:`object ` :param url: :type url: str """ @@ -639,7 +639,7 @@ class OverridableRunSettings(Model): :param load_generator_machines_type: :type load_generator_machines_type: object :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` """ _attribute_map = { @@ -663,7 +663,7 @@ class PageSummary(Model): :param percentage_pages_meeting_goal: :type percentage_pages_meeting_goal: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -703,7 +703,7 @@ class RequestSummary(Model): :param passed_requests: :type passed_requests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param requests_per_sec: :type requests_per_sec: float :param request_url: @@ -791,7 +791,7 @@ class SubType(Model): :param count: :type count: int :param error_detail_list: - :type error_detail_list: list of :class:`ErrorDetails ` + :type error_detail_list: list of :class:`ErrorDetails ` :param occurrences: :type occurrences: int :param sub_type_name: @@ -841,13 +841,13 @@ class TenantDetails(Model): """TenantDetails. :param access_details: - :type access_details: list of :class:`AgentGroupAccessData ` + :type access_details: list of :class:`AgentGroupAccessData ` :param id: :type id: str :param static_machines: - :type static_machines: list of :class:`WebApiTestMachine ` + :type static_machines: list of :class:`WebApiTestMachine ` :param user_load_agent_input: - :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` :param user_load_agent_resources_uri: :type user_load_agent_resources_uri: str :param valid_geo_locations: @@ -877,7 +877,7 @@ class TestDefinitionBasic(Model): """TestDefinitionBasic. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -921,7 +921,7 @@ class TestDrop(Model): """TestDrop. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_date: :type created_date: datetime :param drop_type: @@ -929,7 +929,7 @@ class TestDrop(Model): :param id: :type id: str :param load_test_definition: - :type load_test_definition: :class:`LoadTestDefinition ` + :type load_test_definition: :class:`LoadTestDefinition ` :param test_run_id: :type test_run_id: str """ @@ -979,9 +979,9 @@ class TestResults(Model): :param cloud_load_test_solution_url: :type cloud_load_test_solution_url: str :param counter_groups: - :type counter_groups: list of :class:`CounterGroup ` + :type counter_groups: list of :class:`CounterGroup ` :param diagnostics: - :type diagnostics: :class:`Diagnostics ` + :type diagnostics: :class:`Diagnostics ` :param results_url: :type results_url: str """ @@ -1005,23 +1005,23 @@ class TestResultsSummary(Model): """TestResultsSummary. :param overall_page_summary: - :type overall_page_summary: :class:`PageSummary ` + :type overall_page_summary: :class:`PageSummary ` :param overall_request_summary: - :type overall_request_summary: :class:`RequestSummary ` + :type overall_request_summary: :class:`RequestSummary ` :param overall_scenario_summary: - :type overall_scenario_summary: :class:`ScenarioSummary ` + :type overall_scenario_summary: :class:`ScenarioSummary ` :param overall_test_summary: - :type overall_test_summary: :class:`TestSummary ` + :type overall_test_summary: :class:`TestSummary ` :param overall_transaction_summary: - :type overall_transaction_summary: :class:`TransactionSummary ` + :type overall_transaction_summary: :class:`TransactionSummary ` :param top_slow_pages: - :type top_slow_pages: list of :class:`PageSummary ` + :type top_slow_pages: list of :class:`PageSummary ` :param top_slow_requests: - :type top_slow_requests: list of :class:`RequestSummary ` + :type top_slow_requests: list of :class:`RequestSummary ` :param top_slow_tests: - :type top_slow_tests: list of :class:`TestSummary ` + :type top_slow_tests: list of :class:`TestSummary ` :param top_slow_transactions: - :type top_slow_transactions: list of :class:`TransactionSummary ` + :type top_slow_transactions: list of :class:`TransactionSummary ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class TestRunBasic(Model): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1107,7 +1107,7 @@ class TestRunBasic(Model): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1173,7 +1173,7 @@ class TestRunCounterInstance(Model): :param part_of_counter_groups: :type part_of_counter_groups: list of str :param summary_data: - :type summary_data: :class:`WebInstanceSummaryData ` + :type summary_data: :class:`WebInstanceSummaryData ` :param unique_name: :type unique_name: str """ @@ -1287,7 +1287,7 @@ class TestSummary(Model): :param passed_tests: :type passed_tests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1325,7 +1325,7 @@ class TransactionSummary(Model): :param average_transaction_time: :type average_transaction_time: float :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1365,7 +1365,7 @@ class WebApiLoadTestMachineInput(Model): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType """ @@ -1433,7 +1433,7 @@ class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType :param agent_group_name: @@ -1530,7 +1530,7 @@ class TestDefinition(TestDefinitionBasic): """TestDefinition. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -1548,15 +1548,15 @@ class TestDefinition(TestDefinitionBasic): :param description: :type description: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_definition_source: :type load_test_definition_source: str :param run_settings: - :type run_settings: :class:`LoadTestRunSettings ` + :type run_settings: :class:`LoadTestRunSettings ` :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` :param test_details: - :type test_details: :class:`LoadTest ` + :type test_details: :class:`LoadTest ` """ _attribute_map = { @@ -1602,7 +1602,7 @@ class TestRun(TestRunBasic): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1612,7 +1612,7 @@ class TestRun(TestRunBasic): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1620,7 +1620,7 @@ class TestRun(TestRunBasic): :param url: :type url: str :param abort_message: - :type abort_message: :class:`TestRunAbortMessage ` + :type abort_message: :class:`TestRunAbortMessage ` :param aut_initialization_error: :type aut_initialization_error: bool :param chargeable: @@ -1650,11 +1650,11 @@ class TestRun(TestRunBasic): :param sub_state: :type sub_state: object :param supersede_run_settings: - :type supersede_run_settings: :class:`OverridableRunSettings ` + :type supersede_run_settings: :class:`OverridableRunSettings ` :param test_drop: - :type test_drop: :class:`TestDropRef ` + :type test_drop: :class:`TestDropRef ` :param test_settings: - :type test_settings: :class:`TestSettings ` + :type test_settings: :class:`TestSettings ` :param warm_up_started_date: :type warm_up_started_date: datetime :param web_result_url: diff --git a/azure-devops/azure/devops/v4_1/contributions/contributions_client.py b/azure-devops/azure/devops/v4_1/contributions/contributions_client.py index d049063c..bc347d06 100644 --- a/azure-devops/azure/devops/v4_1/contributions/contributions_client.py +++ b/azure-devops/azure/devops/v4_1/contributions/contributions_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def query_contribution_nodes(self, query): """QueryContributionNodes. [Preview API] Query for contribution nodes and provider details according the parameters in the passed in query object. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributionNodeQuery') response = self._send(http_method='POST', @@ -41,10 +41,10 @@ def query_contribution_nodes(self, query): def query_data_providers(self, query, scope_name=None, scope_value=None): """QueryDataProviders. [Preview API] - :param :class:` ` query: + :param :class:` ` query: :param str scope_name: :param str scope_value: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_name is not None: @@ -88,7 +88,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: :param str extension_name: :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: diff --git a/azure-devops/azure/devops/v4_1/contributions/models.py b/azure-devops/azure/devops/v4_1/contributions/models.py index 1a230aeb..fe3bfff6 100644 --- a/azure-devops/azure/devops/v4_1/contributions/models.py +++ b/azure-devops/azure/devops/v4_1/contributions/models.py @@ -19,7 +19,7 @@ class ClientContribution(Model): :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -51,7 +51,7 @@ class ClientContributionNode(Model): :param children: List of ids for contributions which are children to the current contribution. :type children: list of str :param contribution: Contribution associated with this node. - :type contribution: :class:`ClientContribution ` + :type contribution: :class:`ClientContribution ` :param parents: List of ids for contributions which are parents to the current contribution. :type parents: list of str """ @@ -133,7 +133,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -306,7 +306,7 @@ class DataProviderQuery(Model): """DataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str """ @@ -332,7 +332,7 @@ class DataProviderResult(Model): :param exceptions: Set of exceptions that occurred resolving the data providers. :type exceptions: dict :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` + :type resolved_providers: list of :class:`ResolvedDataProvider ` :param scope_name: Scope name applied to this data provider result. :type scope_name: str :param scope_value: Scope value applied to this data provider result. @@ -382,19 +382,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -446,7 +446,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -464,21 +464,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -528,21 +528,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -556,11 +556,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -619,7 +619,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -709,7 +709,7 @@ class ClientDataProviderQuery(DataProviderQuery): """ClientDataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. @@ -737,11 +737,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) diff --git a/azure-devops/azure/devops/v4_1/core/core_client.py b/azure-devops/azure/devops/v4_1/core/core_client.py index df3ca1ad..b283d626 100644 --- a/azure-devops/azure/devops/v4_1/core/core_client.py +++ b/azure-devops/azure/devops/v4_1/core/core_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_connected_service(self, connected_service_creation_data, project_id): """CreateConnectedService. [Preview API] - :param :class:` ` connected_service_creation_data: + :param :class:` ` connected_service_creation_data: :param str project_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -48,7 +48,7 @@ def get_connected_service_details(self, project_id, name): [Preview API] :param str project_id: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -111,7 +111,7 @@ def get_process_by_id(self, process_id): """GetProcessById. Get a process by ID. :param str process_id: ID for a process. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -136,7 +136,7 @@ def get_project_collection(self, collection_id): """GetProjectCollection. Get project collection with the specified id or name. :param str collection_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if collection_id is not None: @@ -186,7 +186,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non :param str project_id: :param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false). :param bool include_history: Search within renamed projects (that had such name in the past). - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -230,8 +230,8 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke def queue_create_project(self, project_to_create): """QueueCreateProject. Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status. - :param :class:` ` project_to_create: The project to create. - :rtype: :class:` ` + :param :class:` ` project_to_create: The project to create. + :rtype: :class:` ` """ content = self._serialize.body(project_to_create, 'TeamProject') response = self._send(http_method='POST', @@ -244,7 +244,7 @@ def queue_delete_project(self, project_id): """QueueDeleteProject. Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. :param str project_id: The project id of the project to delete. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -258,9 +258,9 @@ def queue_delete_project(self, project_id): def update_project(self, project_update, project_id): """UpdateProject. Update an existing project's name, abbreviation, or description. - :param :class:` ` project_update: The updates for the project. + :param :class:` ` project_update: The updates for the project. :param str project_id: The project id of the project to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -298,7 +298,7 @@ def set_project_properties(self, project_id, patch_document): """SetProjectProperties. [Preview API] Create, update, and delete team project properties. :param str project_id: The team project ID. - :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. + :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. """ route_values = {} if project_id is not None: @@ -314,8 +314,8 @@ def set_project_properties(self, project_id, patch_document): def create_or_update_proxy(self, proxy): """CreateOrUpdateProxy. [Preview API] - :param :class:` ` proxy: - :rtype: :class:` ` + :param :class:` ` proxy: + :rtype: :class:` ` """ content = self._serialize.body(proxy, 'Proxy') response = self._send(http_method='PUT', @@ -358,9 +358,9 @@ def get_proxies(self, proxy_url=None): def create_team(self, team, project_id): """CreateTeam. Create a team in a team project. - :param :class:` ` team: The team data used to create the team. + :param :class:` ` team: The team data used to create the team. :param str project_id: The name or ID (GUID) of the team project in which to create the team. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -394,7 +394,7 @@ def get_team(self, project_id, team_id): Get a specific team. :param str project_id: The name or ID (GUID) of the team project containing the team. :param str team_id: The name or ID (GUID) of the team. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -436,10 +436,10 @@ def get_teams(self, project_id, mine=None, top=None, skip=None): def update_team(self, team_data, project_id, team_id): """UpdateTeam. Update a team's name and/or description. - :param :class:` ` team_data: + :param :class:` ` team_data: :param str project_id: The name or ID (GUID) of the team project containing the team to update. :param str team_id: The name of ID of the team to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: diff --git a/azure-devops/azure/devops/v4_1/core/models.py b/azure-devops/azure/devops/v4_1/core/models.py index 2d38f15b..1e6dc07b 100644 --- a/azure-devops/azure/devops/v4_1/core/models.py +++ b/azure-devops/azure/devops/v4_1/core/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -57,7 +57,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -199,7 +199,7 @@ class ProjectInfo(Model): :param name: :type name: str :param properties: - :type properties: list of :class:`ProjectProperty ` + :type properties: list of :class:`ProjectProperty ` :param revision: Current revision of the project :type revision: long :param state: @@ -265,7 +265,7 @@ class Proxy(Model): """Proxy. :param authorization: - :type authorization: :class:`ProxyAuthorization ` + :type authorization: :class:`ProxyAuthorization ` :param description: This is a description string :type description: str :param friendly_name: The friendly name of the server @@ -309,9 +309,9 @@ class ProxyAuthorization(Model): :param client_id: Gets or sets the client identifier for this proxy. :type client_id: str :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` + :type identity: :class:`str ` :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` + :type public_key: :class:`PublicKey ` """ _attribute_map = { @@ -369,7 +369,7 @@ class TeamMember(Model): """TeamMember. :param identity: - :type identity: :class:`IdentityRef ` + :type identity: :class:`IdentityRef ` :param is_team_admin: :type is_team_admin: bool """ @@ -505,7 +505,7 @@ class Process(ProcessReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -555,11 +555,11 @@ class TeamProject(TeamProjectReference): :param visibility: Project visibility. :type visibility: object :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param capabilities: Set of capabilities this project has (such as process template & version control). :type capabilities: dict :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` + :type default_team: :class:`WebApiTeamRef ` """ _attribute_map = { @@ -593,7 +593,7 @@ class TeamProjectCollection(TeamProjectCollectionReference): :param url: Collection REST Url. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Project collection description. :type description: str :param state: Project collection state. @@ -622,7 +622,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param url: :type url: str :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` + :type authenticated_by: :class:`IdentityRef ` :param description: Extra description on the service. :type description: str :param friendly_name: Friendly Name of service connection @@ -632,7 +632,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param kind: The kind of service. :type kind: str :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com :type service_uri: str """ @@ -667,7 +667,7 @@ class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): :param url: :type url: str :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` + :type connected_service_meta_data: :class:`WebApiConnectedService ` :param credentials_xml: Credential info :type credentials_xml: str :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com diff --git a/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py b/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py index 25baaa5c..270cca85 100644 --- a/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py +++ b/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_dashboard(self, dashboard, team_context): """CreateDashboard. [Preview API] Create the supplied dashboard. - :param :class:` ` dashboard: The initial state of the dashboard - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` dashboard: The initial state of the dashboard + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -60,7 +60,7 @@ def create_dashboard(self, dashboard, team_context): def delete_dashboard(self, team_context, dashboard_id): """DeleteDashboard. [Preview API] Delete a dashboard given its ID. This also deletes the widgets associated with this dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard to delete. """ project = None @@ -90,9 +90,9 @@ def delete_dashboard(self, team_context, dashboard_id): def get_dashboard(self, team_context, dashboard_id): """GetDashboard. [Preview API] Get a dashboard by its ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -122,8 +122,8 @@ def get_dashboard(self, team_context, dashboard_id): def get_dashboards(self, team_context): """GetDashboards. [Preview API] Get a list of dashboards. - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -151,10 +151,10 @@ def get_dashboards(self, team_context): def replace_dashboard(self, dashboard, team_context, dashboard_id): """ReplaceDashboard. [Preview API] Replace configuration for the specified dashboard. - :param :class:` ` dashboard: The Configuration of the dashboard to replace. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` dashboard: The Configuration of the dashboard to replace. + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard to replace. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -186,9 +186,9 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): def replace_dashboards(self, group, team_context): """ReplaceDashboards. [Preview API] Update the name and position of dashboards in the supplied group, and remove omitted dashboards. Does not modify dashboard content. - :param :class:` ` group: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` group: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -218,10 +218,10 @@ def replace_dashboards(self, group, team_context): def create_widget(self, widget, team_context, dashboard_id): """CreateWidget. [Preview API] Create a widget on the specified dashboard. - :param :class:` ` widget: State of the widget to add - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: State of the widget to add + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of dashboard the widget will be added to. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -253,10 +253,10 @@ def create_widget(self, widget, team_context, dashboard_id): def delete_widget(self, team_context, dashboard_id, widget_id): """DeleteWidget. [Preview API] Delete the specified widget. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to update. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -288,10 +288,10 @@ def delete_widget(self, team_context, dashboard_id, widget_id): def get_widget(self, team_context, dashboard_id, widget_id): """GetWidget. [Preview API] Get the current state of the specified widget. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to read. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -323,10 +323,10 @@ def get_widget(self, team_context, dashboard_id, widget_id): def get_widgets(self, team_context, dashboard_id, eTag=None): """GetWidgets. [Preview API] Get widgets contained on the specified dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard to read. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -359,11 +359,11 @@ def get_widgets(self, team_context, dashboard_id, eTag=None): def replace_widget(self, widget, team_context, dashboard_id, widget_id): """ReplaceWidget. [Preview API] Override the state of the specified widget. - :param :class:` ` widget: State to be written for the widget. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: State to be written for the widget. + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to update. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -398,10 +398,10 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): """ReplaceWidgets. [Preview API] Replace the widgets on specified dashboard with the supplied widgets. :param [Widget] widgets: Revised state of widgets to store for the dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the Dashboard to modify. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -436,11 +436,11 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): def update_widget(self, widget, team_context, dashboard_id, widget_id): """UpdateWidget. [Preview API] Perform a partial update of the specified widget. - :param :class:` ` widget: Description of the widget changes to apply. All non-null fields will be replaced. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: Description of the widget changes to apply. All non-null fields will be replaced. + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to update. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -475,10 +475,10 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): """UpdateWidgets. [Preview API] Update the supplied widgets on the dashboard using supplied state. State of existing Widgets not passed in the widget list is preserved. :param [Widget] widgets: The set of widget states to update on the dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the Dashboard to modify. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -514,7 +514,7 @@ def get_widget_metadata(self, contribution_id): """GetWidgetMetadata. [Preview API] Get the widget metadata satisfying the specified contribution ID. :param str contribution_id: The ID of Contribution for the Widget - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if contribution_id is not None: @@ -529,7 +529,7 @@ def get_widget_types(self, scope): """GetWidgetTypes. [Preview API] Get all available widget metadata in alphabetical order. :param str scope: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope is not None: diff --git a/azure-devops/azure/devops/v4_1/dashboard/models.py b/azure-devops/azure/devops/v4_1/dashboard/models.py index 51d9cace..b99430c4 100644 --- a/azure-devops/azure/devops/v4_1/dashboard/models.py +++ b/azure-devops/azure/devops/v4_1/dashboard/models.py @@ -13,7 +13,7 @@ class Dashboard(Model): """Dashboard. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -31,7 +31,7 @@ class Dashboard(Model): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -65,9 +65,9 @@ class DashboardGroup(Model): """DashboardGroup. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dashboard_entries: A list of Dashboards held by the Dashboard Group - :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :type dashboard_entries: list of :class:`DashboardGroupEntry ` :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. :type permission: object :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. @@ -97,7 +97,7 @@ class DashboardGroupEntry(Dashboard): """DashboardGroupEntry. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -115,7 +115,7 @@ class DashboardGroupEntry(Dashboard): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -139,7 +139,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): """DashboardGroupEntryResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -157,7 +157,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -181,7 +181,7 @@ class DashboardResponse(DashboardGroupEntry): """DashboardResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -199,7 +199,7 @@ class DashboardResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -315,9 +315,9 @@ class Widget(Model): """Widget. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -331,7 +331,7 @@ class Widget(Model): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -341,19 +341,19 @@ class Widget(Model): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -415,7 +415,7 @@ class WidgetMetadata(Model): """WidgetMetadata. :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. :type analytics_service_required: bool :param catalog_icon_url: Resource for an icon in the widget catalog. @@ -443,7 +443,7 @@ class WidgetMetadata(Model): :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. :type is_visible_from_catalog: bool :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: Resource for a loading placeholder image on dashboard :type loading_image_url: str :param name: User facing name of the widget type. Each widget must use a unique value here. @@ -513,7 +513,7 @@ class WidgetMetadataResponse(Model): :param uri: :type uri: str :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` + :type widget_metadata: :class:`WidgetMetadata ` """ _attribute_map = { @@ -551,9 +551,9 @@ class WidgetResponse(Widget): """WidgetResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -567,7 +567,7 @@ class WidgetResponse(Widget): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -577,19 +577,19 @@ class WidgetResponse(Widget): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -651,7 +651,7 @@ class WidgetsVersionedList(Model): :param eTag: :type eTag: list of str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -669,11 +669,11 @@ class WidgetTypesResponse(Model): """WidgetTypesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param uri: :type uri: str :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` + :type widget_types: list of :class:`WidgetMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py b/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py index 3be56941..15eb4792 100644 --- a/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py +++ b/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py @@ -53,8 +53,8 @@ def get_installed_extensions(self, include_disabled_extensions=None, include_err def update_installed_extension(self, extension): """UpdateInstalledExtension. [Preview API] Update an installed extension. Typically this API is used to enable or disable an extension. - :param :class:` ` extension: - :rtype: :class:` ` + :param :class:` ` extension: + :rtype: :class:` ` """ content = self._serialize.body(extension, 'InstalledExtension') response = self._send(http_method='PATCH', @@ -69,7 +69,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: Name of the publisher. Example: "fabrikam". :param str extension_name: Name of the extension. Example: "ops-tools". :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -93,7 +93,7 @@ def install_extension_by_name(self, publisher_name, extension_name, version=None :param str publisher_name: Name of the publisher. Example: "fabrikam". :param str extension_name: Name of the extension. Example: "ops-tools". :param str version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: diff --git a/azure-devops/azure/devops/v4_1/extension_management/models.py b/azure-devops/azure/devops/v4_1/extension_management/models.py index 9046797a..1a15f8ec 100644 --- a/azure-devops/azure/devops/v4_1/extension_management/models.py +++ b/azure-devops/azure/devops/v4_1/extension_management/models.py @@ -19,7 +19,7 @@ class AcquisitionOperation(Model): :param reason: Optional reason to justify current state. Typically used with Disallow state. :type reason: str :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` """ _attribute_map = { @@ -61,13 +61,13 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param target: The target that this options refer to :type target: str """ @@ -125,7 +125,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -222,7 +222,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int """ @@ -296,7 +296,7 @@ class ExtensionDataCollection(Model): :param collection_name: The name of the collection :type collection_name: str :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` + :type documents: list of :class:`object ` :param scope_type: The type of the collection's scope, such as Default or User :type scope_type: str :param scope_value: The value of the collection's scope, such as Current or Me @@ -322,7 +322,7 @@ class ExtensionDataCollectionQuery(Model): """ExtensionDataCollectionQuery. :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` + :type collections: list of :class:`ExtensionDataCollection ` """ _attribute_map = { @@ -354,19 +354,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -438,7 +438,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -456,21 +456,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -542,7 +542,7 @@ class ExtensionRequest(Model): :param request_date: Date at which the request was made :type request_date: datetime :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_message: Optional message supplied by the requester justifying the request :type request_message: str :param request_state: Represents the state of the request @@ -550,7 +550,7 @@ class ExtensionRequest(Model): :param resolve_date: Date at which the request was resolved :type resolve_date: datetime :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` """ _attribute_map = { @@ -624,11 +624,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -674,7 +674,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -702,7 +702,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -780,21 +780,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -808,11 +808,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -871,7 +871,7 @@ class InstalledExtensionQuery(Model): :param asset_types: :type asset_types: list of str :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` + :type monikers: list of :class:`ExtensionIdentifier ` """ _attribute_map = { @@ -891,7 +891,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -969,7 +969,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -977,19 +977,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1083,7 +1083,7 @@ class RequestedExtension(Model): :param extension_name: The unique name of the extension :type extension_name: str :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` + :type extension_requests: list of :class:`ExtensionRequest ` :param publisher_display_name: DisplayName of the publisher that owns the extension being published. :type publisher_display_name: str :param publisher_name: Represents the Publisher of the requested extension @@ -1115,7 +1115,7 @@ class UserExtensionPolicy(Model): :param display_name: User display name that this policy refers to :type display_name: str :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` + :type permissions: :class:`ExtensionPolicy ` :param user_id: User id that this policy refers to :type user_id: str """ @@ -1143,11 +1143,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) @@ -1184,7 +1184,7 @@ class ExtensionState(InstalledExtensionState): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime :param extension_name: diff --git a/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py b/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py index d3499fc8..ed661219 100644 --- a/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py +++ b/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py @@ -44,7 +44,7 @@ def get_feature_flag_by_name(self, name): """GetFeatureFlagByName. [Preview API] Retrieve information on a single feature flag and its current states :param str name: The name of the feature to retrieve - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -60,7 +60,7 @@ def get_feature_flag_by_name_and_user_email(self, name, user_email): [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_email: The email of the user to check - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -80,7 +80,7 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_id: The id of the user to check - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -98,12 +98,12 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): """UpdateFeatureFlag. [Preview API] Change the state of an individual feature flag for a name - :param :class:` ` state: State that should be set + :param :class:` ` state: State that should be set :param str name: The name of the feature to change :param str user_email: :param bool check_feature_exists: Checks if the feature exists before setting the state :param bool set_at_application_level_also: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: diff --git a/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py b/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py index 337fb74c..6ea020af 100644 --- a/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py +++ b/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py @@ -29,7 +29,7 @@ def get_feature(self, feature_id): """GetFeature. [Preview API] Get a specific feature by its id :param str feature_id: The contribution id of the feature - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -60,7 +60,7 @@ def get_feature_state(self, feature_id, user_scope): [Preview API] Get the state of the specified feature for the given user/all-users scope :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -76,12 +76,12 @@ def get_feature_state(self, feature_id, user_scope): def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): """SetFeatureState. [Preview API] Set the state of a feature - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -109,7 +109,7 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -129,14 +129,14 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): """SetFeatureStateForScope. [Preview API] Set the state of a feature at a specific scope - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -164,8 +164,8 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam def query_feature_states(self, query): """QueryFeatureStates. [Preview API] Get the effective state for a list of feature ids - :param :class:` ` query: Features to query along with current scope values - :rtype: :class:` ` + :param :class:` ` query: Features to query along with current scope values + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', @@ -177,9 +177,9 @@ def query_feature_states(self, query): def query_feature_states_for_default_scope(self, query, user_scope): """QueryFeatureStatesForDefaultScope. [Preview API] Get the states of the specified features for the default scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -195,11 +195,11 @@ def query_feature_states_for_default_scope(self, query, user_scope): def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): """QueryFeatureStatesForNamedScope. [Preview API] Get the states of the specified features for the specific named scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: :param str scope_name: :param str scope_value: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: diff --git a/azure-devops/azure/devops/v4_1/feature_management/models.py b/azure-devops/azure/devops/v4_1/feature_management/models.py index 69e41d7a..e926d9c7 100644 --- a/azure-devops/azure/devops/v4_1/feature_management/models.py +++ b/azure-devops/azure/devops/v4_1/feature_management/models.py @@ -13,11 +13,11 @@ class ContributedFeature(Model): """ContributedFeature. :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_state: If true, the feature is enabled unless overridden at some scope :type default_state: bool :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` :param description: The description of the feature :type description: str :param id: The full contribution id of the feature @@ -25,9 +25,9 @@ class ContributedFeature(Model): :param name: The friendly name of the feature :type name: str :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` + :type override_rules: list of :class:`ContributedFeatureValueRule ` :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` + :type scopes: list of :class:`ContributedFeatureSettingScope ` :param service_instance_type: The service instance id of the service that owns this feature :type service_instance_type: str """ @@ -87,7 +87,7 @@ class ContributedFeatureState(Model): :param reason: Reason that the state was set (by a plugin/rule). :type reason: str :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` + :type scope: :class:`ContributedFeatureSettingScope ` :param state: The current state of this feature :type state: object """ diff --git a/azure-devops/azure/devops/v4_1/feed/feed_client.py b/azure-devops/azure/devops/v4_1/feed/feed_client.py index b3a559e1..0e5e6933 100644 --- a/azure-devops/azure/devops/v4_1/feed/feed_client.py +++ b/azure-devops/azure/devops/v4_1/feed/feed_client.py @@ -47,7 +47,7 @@ def get_feed_change(self, feed_id): """GetFeedChange. [Preview API] :param str feed_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -64,7 +64,7 @@ def get_feed_changes(self, include_deleted=None, continuation_token=None, batch_ :param bool include_deleted: :param long continuation_token: :param int batch_size: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if include_deleted is not None: @@ -82,8 +82,8 @@ def get_feed_changes(self, include_deleted=None, continuation_token=None, batch_ def create_feed(self, feed): """CreateFeed. [Preview API] - :param :class:` ` feed: - :rtype: :class:` ` + :param :class:` ` feed: + :rtype: :class:` ` """ content = self._serialize.body(feed, 'Feed') response = self._send(http_method='POST', @@ -110,7 +110,7 @@ def get_feed(self, feed_id, include_deleted_upstreams=None): [Preview API] :param str feed_id: :param bool include_deleted_upstreams: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -146,9 +146,9 @@ def get_feeds(self, feed_role=None, include_deleted_upstreams=None): def update_feed(self, feed, feed_id): """UpdateFeed. [Preview API] - :param :class:` ` feed: + :param :class:` ` feed: :param str feed_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -190,7 +190,7 @@ def get_package_changes(self, feed_id, continuation_token=None, batch_size=None) :param str feed_id: :param long continuation_token: :param int batch_size: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -218,7 +218,7 @@ def get_package(self, feed_id, package_id, include_all_versions=None, include_ur :param bool is_release: :param bool include_deleted: :param bool include_description: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -351,7 +351,7 @@ def get_recycle_bin_package(self, feed_id, package_id, include_urls=None): :param str feed_id: :param str package_id: :param bool include_urls: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -410,7 +410,7 @@ def get_recycle_bin_package_version(self, feed_id, package_id, package_version_i :param str package_id: :param str package_version_id: :param bool include_urls: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -469,7 +469,7 @@ def get_feed_retention_policies(self, feed_id): """GetFeedRetentionPolicies. [Preview API] :param str feed_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -483,9 +483,9 @@ def get_feed_retention_policies(self, feed_id): def set_feed_retention_policies(self, policy, feed_id): """SetFeedRetentionPolicies. [Preview API] - :param :class:` ` policy: + :param :class:` ` policy: :param str feed_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -507,7 +507,7 @@ def get_package_version(self, feed_id, package_id, package_version_id, include_u :param bool include_urls: :param bool is_listed: :param bool is_deleted: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -562,9 +562,9 @@ def get_package_versions(self, feed_id, package_id, include_urls=None, is_listed def create_feed_view(self, view, feed_id): """CreateFeedView. [Preview API] - :param :class:` ` view: + :param :class:` ` view: :param str feed_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -598,7 +598,7 @@ def get_feed_view(self, feed_id, view_id): [Preview API] :param str feed_id: :param str view_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -629,10 +629,10 @@ def get_feed_views(self, feed_id): def update_feed_view(self, view, feed_id, view_id): """UpdateFeedView. [Preview API] - :param :class:` ` view: + :param :class:` ` view: :param str feed_id: :param str view_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: diff --git a/azure-devops/azure/devops/v4_1/feed/models.py b/azure-devops/azure/devops/v4_1/feed/models.py index 0f6d21d2..2c9d3c85 100644 --- a/azure-devops/azure/devops/v4_1/feed/models.py +++ b/azure-devops/azure/devops/v4_1/feed/models.py @@ -15,7 +15,7 @@ class FeedChange(Model): :param change_type: :type change_type: object :param feed: - :type feed: :class:`Feed ` + :type feed: :class:`Feed ` :param feed_continuation_token: :type feed_continuation_token: long :param latest_package_continuation_token: @@ -41,11 +41,11 @@ class FeedChangesResponse(Model): """FeedChangesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param count: :type count: int :param feed_changes: - :type feed_changes: list of :class:`FeedChange ` + :type feed_changes: list of :class:`FeedChange ` :param next_feed_continuation_token: :type next_feed_continuation_token: long """ @@ -85,9 +85,9 @@ class FeedCore(Model): :param upstream_enabled: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` :param view: - :type view: :class:`FeedView ` + :type view: :class:`FeedView ` :param view_id: :type view_id: str :param view_name: @@ -131,7 +131,7 @@ class FeedPermission(Model): :param display_name: Display name for the identity :type display_name: str :param identity_descriptor: - :type identity_descriptor: :class:`str ` + :type identity_descriptor: :class:`str ` :param identity_id: :type identity_id: str :param role: @@ -193,7 +193,7 @@ class FeedUpdate(Model): :param upstream_enabled: :type upstream_enabled: bool :param upstream_sources: - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` """ _attribute_map = { @@ -225,7 +225,7 @@ class FeedView(Model): """FeedView. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: str :param name: @@ -261,7 +261,7 @@ class GlobalPermission(Model): """GlobalPermission. :param identity_descriptor: - :type identity_descriptor: :class:`str ` + :type identity_descriptor: :class:`str ` :param role: :type role: object """ @@ -331,7 +331,7 @@ class MinimalPackageVersion(Model): :param version: The display version of the package version :type version: str :param views: - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` """ _attribute_map = { @@ -369,7 +369,7 @@ class Package(Model): """Package. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: str :param is_cached: @@ -385,7 +385,7 @@ class Package(Model): :param url: :type url: str :param versions: - :type versions: list of :class:`MinimalPackageVersion ` + :type versions: list of :class:`MinimalPackageVersion ` """ _attribute_map = { @@ -417,9 +417,9 @@ class PackageChange(Model): """PackageChange. :param package: - :type package: :class:`Package ` + :type package: :class:`Package ` :param package_version_change: - :type package_version_change: :class:`PackageVersionChange ` + :type package_version_change: :class:`PackageVersionChange ` """ _attribute_map = { @@ -437,13 +437,13 @@ class PackageChangesResponse(Model): """PackageChangesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param count: :type count: int :param next_package_continuation_token: :type next_package_continuation_token: long :param package_changes: - :type package_changes: list of :class:`PackageChange ` + :type package_changes: list of :class:`PackageChange ` """ _attribute_map = { @@ -489,11 +489,11 @@ class PackageFile(Model): """PackageFile. :param children: - :type children: list of :class:`PackageFile ` + :type children: list of :class:`PackageFile ` :param name: :type name: str :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` """ _attribute_map = { @@ -535,25 +535,25 @@ class PackageVersion(MinimalPackageVersion): :param version: The display version of the package version :type version: str :param views: - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: :type author: str :param deleted_date: :type deleted_date: datetime :param dependencies: - :type dependencies: list of :class:`PackageDependency ` + :type dependencies: list of :class:`PackageDependency ` :param description: :type description: str :param files: - :type files: list of :class:`PackageFile ` + :type files: list of :class:`PackageFile ` :param other_versions: - :type other_versions: list of :class:`MinimalPackageVersion ` + :type other_versions: list of :class:`MinimalPackageVersion ` :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` :param source_chain: - :type source_chain: list of :class:`UpstreamSource ` + :type source_chain: list of :class:`UpstreamSource ` :param summary: :type summary: str :param tags: @@ -613,7 +613,7 @@ class PackageVersionChange(Model): :param continuation_token: :type continuation_token: long :param package_version: - :type package_version: :class:`PackageVersion ` + :type package_version: :class:`PackageVersion ` """ _attribute_map = { @@ -675,25 +675,25 @@ class RecycleBinPackageVersion(PackageVersion): :param version: The display version of the package version :type version: str :param views: - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: :type author: str :param deleted_date: :type deleted_date: datetime :param dependencies: - :type dependencies: list of :class:`PackageDependency ` + :type dependencies: list of :class:`PackageDependency ` :param description: :type description: str :param files: - :type files: list of :class:`PackageFile ` + :type files: list of :class:`PackageFile ` :param other_versions: - :type other_versions: list of :class:`MinimalPackageVersion ` + :type other_versions: list of :class:`MinimalPackageVersion ` :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` :param source_chain: - :type source_chain: list of :class:`UpstreamSource ` + :type source_chain: list of :class:`UpstreamSource ` :param summary: :type summary: str :param tags: @@ -821,15 +821,15 @@ class Feed(FeedCore): :param upstream_enabled: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` :param view: - :type view: :class:`FeedView ` + :type view: :class:`FeedView ` :param view_id: :type view_id: str :param view_name: :type view_name: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param badges_enabled: :type badges_enabled: bool :param default_view_id: @@ -841,7 +841,7 @@ class Feed(FeedCore): :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions :type hide_deleted_package_versions: bool :param permissions: - :type permissions: list of :class:`FeedPermission ` + :type permissions: list of :class:`FeedPermission ` :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. :type upstream_enabled_changed_date: datetime :param url: diff --git a/azure-devops/azure/devops/v4_1/file_container/file_container_client.py b/azure-devops/azure/devops/v4_1/file_container/file_container_client.py index 82565a4b..1f830881 100644 --- a/azure-devops/azure/devops/v4_1/file_container/file_container_client.py +++ b/azure-devops/azure/devops/v4_1/file_container/file_container_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_items(self, items, container_id, scope=None): """CreateItems. [Preview API] Creates the specified items in in the referenced container. - :param :class:` ` items: + :param :class:` ` items: :param int container_id: :param str scope: A guid representing the scope of the container. This is often the project id. :rtype: [FileContainerItem] diff --git a/azure-devops/azure/devops/v4_1/gallery/gallery_client.py b/azure-devops/azure/devops/v4_1/gallery/gallery_client.py index e32d1464..11b85579 100644 --- a/azure-devops/azure/devops/v4_1/gallery/gallery_client.py +++ b/azure-devops/azure/devops/v4_1/gallery/gallery_client.py @@ -102,7 +102,7 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No :param str installation_target: :param bool test_commerce: :param bool is_free_or_trial_install: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if item_id is not None: @@ -124,8 +124,8 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No def request_acquisition(self, acquisition_request): """RequestAcquisition. [Preview API] - :param :class:` ` acquisition_request: - :rtype: :class:` ` + :param :class:` ` acquisition_request: + :rtype: :class:` ` """ content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') response = self._send(http_method='POST', @@ -244,7 +244,7 @@ def associate_azure_publisher(self, publisher_name, azure_publisher_id): [Preview API] :param str publisher_name: :param str azure_publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -263,7 +263,7 @@ def query_associated_azure_publisher(self, publisher_name): """QueryAssociatedAzurePublisher. [Preview API] :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -295,7 +295,7 @@ def get_category_details(self, category_name, languages=None, product=None): :param str category_name: :param str languages: :param str product: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if category_name is not None: @@ -322,7 +322,7 @@ def get_category_tree(self, product, category_id, lcid=None, source=None, produc :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -356,7 +356,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -410,7 +410,7 @@ def create_draft_for_edit_extension(self, publisher_name, extension_name): [Preview API] :param str publisher_name: :param str extension_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -426,11 +426,11 @@ def create_draft_for_edit_extension(self, publisher_name, extension_name): def perform_edit_extension_draft_operation(self, draft_patch, publisher_name, extension_name, draft_id): """PerformEditExtensionDraftOperation. [Preview API] - :param :class:` ` draft_patch: + :param :class:` ` draft_patch: :param str publisher_name: :param str extension_name: :param str draft_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -455,7 +455,7 @@ def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_na :param str extension_name: :param str draft_id: :param String file_name: Header to pass the filename of the uploaded data - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -485,7 +485,7 @@ def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, exte :param str extension_name: :param str draft_id: :param str asset_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -516,7 +516,7 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, :param str publisher_name: :param String product: Header to pass the product type of the payload file :param String file_name: Header to pass the filename of the uploaded data - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -537,10 +537,10 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, def perform_new_extension_draft_operation(self, draft_patch, publisher_name, draft_id): """PerformNewExtensionDraftOperation. [Preview API] - :param :class:` ` draft_patch: + :param :class:` ` draft_patch: :param str publisher_name: :param str draft_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -562,7 +562,7 @@ def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_nam :param str publisher_name: :param str draft_id: :param String file_name: Header to pass the filename of the uploaded data - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -589,7 +589,7 @@ def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft :param str publisher_name: :param str draft_id: :param str asset_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -677,7 +677,7 @@ def get_extension_events(self, publisher_name, extension_name, count=None, after :param datetime after_date: Fetch events that occurred on or after this date :param str include: Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events :param str include_property: Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -714,9 +714,9 @@ def publish_extension_events(self, extension_events): def query_extensions(self, extension_query, account_token=None): """QueryExtensions. [Preview API] - :param :class:` ` extension_query: + :param :class:` ` extension_query: :param str account_token: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if account_token is not None: @@ -733,7 +733,7 @@ def create_extension(self, upload_stream, **kwargs): """CreateExtension. [Preview API] :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ if "callback" in kwargs: callback = kwargs["callback"] @@ -771,7 +771,7 @@ def get_extension_by_id(self, extension_id, version=None, flags=None): :param str extension_id: :param str version: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -792,7 +792,7 @@ def update_extension_by_id(self, extension_id): """UpdateExtensionById. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -808,7 +808,7 @@ def create_extension_with_publisher(self, upload_stream, publisher_name, **kwarg [Preview API] :param object upload_stream: Stream to upload :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -855,7 +855,7 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None :param str version: :param str flags: :param str account_token: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -882,7 +882,7 @@ def update_extension(self, upload_stream, publisher_name, extension_name, **kwar :param object upload_stream: Stream to upload :param str publisher_name: :param str extension_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -908,7 +908,7 @@ def update_extension_properties(self, publisher_name, extension_name, flags): :param str publisher_name: :param str extension_name: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -928,7 +928,7 @@ def update_extension_properties(self, publisher_name, extension_name, flags): def extension_validator(self, azure_rest_api_request_model): """ExtensionValidator. [Preview API] - :param :class:` ` azure_rest_api_request_model: + :param :class:` ` azure_rest_api_request_model: """ content = self._serialize.body(azure_rest_api_request_model, 'AzureRestApiRequestModel') self._send(http_method='POST', @@ -939,7 +939,7 @@ def extension_validator(self, azure_rest_api_request_model): def send_notifications(self, notification_data): """SendNotifications. [Preview API] Send Notification - :param :class:` ` notification_data: Denoting the data needed to send notification + :param :class:` ` notification_data: Denoting the data needed to send notification """ content = self._serialize.body(notification_data, 'NotificationsData') self._send(http_method='POST', @@ -1096,8 +1096,8 @@ def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, def query_publishers(self, publisher_query): """QueryPublishers. [Preview API] - :param :class:` ` publisher_query: - :rtype: :class:` ` + :param :class:` ` publisher_query: + :rtype: :class:` ` """ content = self._serialize.body(publisher_query, 'PublisherQuery') response = self._send(http_method='POST', @@ -1109,8 +1109,8 @@ def query_publishers(self, publisher_query): def create_publisher(self, publisher): """CreatePublisher. [Preview API] - :param :class:` ` publisher: - :rtype: :class:` ` + :param :class:` ` publisher: + :rtype: :class:` ` """ content = self._serialize.body(publisher, 'Publisher') response = self._send(http_method='POST', @@ -1137,7 +1137,7 @@ def get_publisher(self, publisher_name, flags=None): [Preview API] :param str publisher_name: :param int flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1155,9 +1155,9 @@ def get_publisher(self, publisher_name, flags=None): def update_publisher(self, publisher, publisher_name): """UpdatePublisher. [Preview API] - :param :class:` ` publisher: + :param :class:` ` publisher: :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1178,7 +1178,7 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a :param int count: Number of questions to retrieve (defaults to 10). :param int page: Page number from which set of questions are to be retrieved. :param datetime after_date: If provided, results questions are returned which were posted after this date - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1202,11 +1202,11 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a def report_question(self, concern, pub_name, ext_name, question_id): """ReportQuestion. [Preview API] Flags a concern with an existing question for an extension. - :param :class:` ` concern: User reported concern with a question for the extension. + :param :class:` ` concern: User reported concern with a question for the extension. :param str pub_name: Name of the publisher who published the extension. :param str ext_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1226,10 +1226,10 @@ def report_question(self, concern, pub_name, ext_name, question_id): def create_question(self, question, publisher_name, extension_name): """CreateQuestion. [Preview API] Creates a new question for an extension. - :param :class:` ` question: Question to be created for the extension. + :param :class:` ` question: Question to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1266,11 +1266,11 @@ def delete_question(self, publisher_name, extension_name, question_id): def update_question(self, question, publisher_name, extension_name, question_id): """UpdateQuestion. [Preview API] Updates an existing question for an extension. - :param :class:` ` question: Updated question to be set for the extension. + :param :class:` ` question: Updated question to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1290,11 +1290,11 @@ def update_question(self, question, publisher_name, extension_name, question_id) def create_response(self, response, publisher_name, extension_name, question_id): """CreateResponse. [Preview API] Creates a new response for a given question for an extension. - :param :class:` ` response: Response to be created for the extension. + :param :class:` ` response: Response to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be created for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1336,12 +1336,12 @@ def delete_response(self, publisher_name, extension_name, question_id, response_ def update_response(self, response, publisher_name, extension_name, question_id, response_id): """UpdateResponse. [Preview API] Updates an existing response for a given question for an extension. - :param :class:` ` response: Updated response to be set for the extension. + :param :class:` ` response: Updated response to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be updated for the extension. :param long response_id: Identifier of the response which has to be updated. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1398,7 +1398,7 @@ def get_reviews(self, publisher_name, extension_name, count=None, filter_options :param str filter_options: FilterOptions to filter out empty reviews etcetera, defaults to none :param datetime before_date: Use if you want to fetch reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1428,7 +1428,7 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N :param str ext_name: Name of the extension :param datetime before_date: Use if you want to fetch summary of reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch summary of reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1450,10 +1450,10 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N def create_review(self, review, pub_name, ext_name): """CreateReview. [Preview API] Creates a new review for an extension - :param :class:` ` review: Review to be created for the extension + :param :class:` ` review: Review to be created for the extension :param str pub_name: Name of the publisher who published the extension :param str ext_name: Name of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1490,11 +1490,11 @@ def delete_review(self, pub_name, ext_name, review_id): def update_review(self, review_patch, pub_name, ext_name, review_id): """UpdateReview. [Preview API] Updates or Flags a review - :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review + :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review :param str pub_name: Name of the pubilsher who published the extension :param str ext_name: Name of the extension :param long review_id: Id of the review which needs to be updated - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1514,8 +1514,8 @@ def update_review(self, review_patch, pub_name, ext_name, review_id): def create_category(self, category): """CreateCategory. [Preview API] - :param :class:` ` category: - :rtype: :class:` ` + :param :class:` ` category: + :rtype: :class:` ` """ content = self._serialize.body(category, 'ExtensionCategory') response = self._send(http_method='POST', @@ -1594,7 +1594,7 @@ def get_signing_key(self, key_type): def update_extension_statistics(self, extension_statistics_update, publisher_name, extension_name): """UpdateExtensionStatistics. [Preview API] - :param :class:` ` extension_statistics_update: + :param :class:` ` extension_statistics_update: :param str publisher_name: :param str extension_name: """ @@ -1618,7 +1618,7 @@ def get_extension_daily_stats(self, publisher_name, extension_name, days=None, a :param int days: :param str aggregate: :param datetime after_date: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1645,7 +1645,7 @@ def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, ve :param str publisher_name: Name of the publisher :param str extension_name: Name of the extension :param str version: Version of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: diff --git a/azure-devops/azure/devops/v4_1/gallery/models.py b/azure-devops/azure/devops/v4_1/gallery/models.py index 32016c22..21a3e8ae 100644 --- a/azure-devops/azure/devops/v4_1/gallery/models.py +++ b/azure-devops/azure/devops/v4_1/gallery/models.py @@ -37,11 +37,11 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param target: The target that this options refer to :type target: str """ @@ -85,7 +85,7 @@ class AssetDetails(Model): """AssetDetails. :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` + :type answers: :class:`Answers ` :param publisher_natural_identifier: Gets or sets the VS publisher Id :type publisher_natural_identifier: str """ @@ -125,7 +125,7 @@ class AzureRestApiRequestModel(Model): """AzureRestApiRequestModel. :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` + :type asset_details: :class:`AssetDetails ` :param asset_id: Gets or sets the asset id :type asset_id: str :param asset_version: Gets or sets the asset version @@ -173,7 +173,7 @@ class CategoriesResult(Model): """CategoriesResult. :param categories: - :type categories: list of :class:`ExtensionCategory ` + :type categories: list of :class:`ExtensionCategory ` """ _attribute_map = { @@ -269,7 +269,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id @@ -333,7 +333,7 @@ class ExtensionCategory(Model): :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles :type language: str :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` + :type language_titles: list of :class:`CategoryLanguageTitle ` :param parent_category_name: This is the internal name of the parent if this is associated with a parent :type parent_category_name: str """ @@ -361,7 +361,7 @@ class ExtensionDailyStat(Model): """ExtensionDailyStat. :param counts: Stores the event counts - :type counts: :class:`EventCounts ` + :type counts: :class:`EventCounts ` :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. :type extended_stats: dict :param statistic_date: Timestamp of this data point @@ -389,7 +389,7 @@ class ExtensionDailyStats(Model): """ExtensionDailyStats. :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` + :type daily_stats: list of :class:`ExtensionDailyStat ` :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. :type extension_id: str :param extension_name: Name of the extension @@ -421,7 +421,7 @@ class ExtensionDraft(Model): """ExtensionDraft. :param assets: - :type assets: list of :class:`ExtensionDraftAsset ` + :type assets: list of :class:`ExtensionDraftAsset ` :param created_date: :type created_date: datetime :param draft_state: @@ -433,7 +433,7 @@ class ExtensionDraft(Model): :param last_updated: :type last_updated: datetime :param payload: - :type payload: :class:`ExtensionPayload ` + :type payload: :class:`ExtensionPayload ` :param product: :type product: str :param publisher_name: @@ -477,7 +477,7 @@ class ExtensionDraftPatch(Model): """ExtensionDraftPatch. :param extension_data: - :type extension_data: :class:`UnpackagedExtensionData ` + :type extension_data: :class:`UnpackagedExtensionData ` :param operation: :type operation: object """ @@ -499,7 +499,7 @@ class ExtensionEvent(Model): :param id: Id which identifies each data point uniquely :type id: long :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param statistic_date: Timestamp of when the event occurred :type statistic_date: datetime :param version: Version of the extension @@ -577,11 +577,11 @@ class ExtensionFilterResult(Model): """ExtensionFilterResult. :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. :type paging_token: str :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` """ _attribute_map = { @@ -601,7 +601,7 @@ class ExtensionFilterResultMetadata(Model): """ExtensionFilterResultMetadata. :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` + :type metadata_items: list of :class:`MetadataItem ` :param metadata_type: Defines the category of metadata items :type metadata_type: str """ @@ -643,7 +643,7 @@ class ExtensionPayload(Model): :param file_name: :type file_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param is_signed_by_microsoft: :type is_signed_by_microsoft: bool :param is_valid: @@ -683,7 +683,7 @@ class ExtensionQuery(Model): :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. :type asset_types: list of str :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. :type flags: object """ @@ -705,7 +705,7 @@ class ExtensionQueryResult(Model): """ExtensionQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` + :type results: list of :class:`ExtensionFilterResult ` """ _attribute_map = { @@ -771,7 +771,7 @@ class ExtensionStatisticUpdate(Model): :param publisher_name: :type publisher_name: str :param statistic: - :type statistic: :class:`ExtensionStatistic ` + :type statistic: :class:`ExtensionStatistic ` """ _attribute_map = { @@ -795,11 +795,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -929,7 +929,7 @@ class ProductCategoriesResult(Model): """ProductCategoriesResult. :param categories: - :type categories: list of :class:`ProductCategory ` + :type categories: list of :class:`ProductCategory ` """ _attribute_map = { @@ -945,7 +945,7 @@ class ProductCategory(Model): """ProductCategory. :param children: - :type children: list of :class:`ProductCategory ` + :type children: list of :class:`ProductCategory ` :param has_children: Indicator whether this is a leaf or there are children under this category :type has_children: bool :param id: Individual Guid of the Category @@ -985,7 +985,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -993,19 +993,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1057,7 +1057,7 @@ class PublisherBase(Model): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1129,7 +1129,7 @@ class PublisherFilterResult(Model): """PublisherFilterResult. :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` + :type publishers: list of :class:`Publisher ` """ _attribute_map = { @@ -1145,7 +1145,7 @@ class PublisherQuery(Model): """PublisherQuery. :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. :type flags: object """ @@ -1165,7 +1165,7 @@ class PublisherQueryResult(Model): """PublisherQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` + :type results: list of :class:`PublisherFilterResult ` """ _attribute_map = { @@ -1191,7 +1191,7 @@ class QnAItem(Model): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1217,7 +1217,7 @@ class QueryFilter(Model): """QueryFilter. :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` + :type criteria: list of :class:`FilterCriteria ` :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. :type direction: object :param page_number: The page number requested by the user. If not provided 1 is assumed by default. @@ -1267,9 +1267,9 @@ class Question(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` + :type responses: list of :class:`Response ` """ _attribute_map = { @@ -1293,7 +1293,7 @@ class QuestionsResult(Model): :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) :type has_more_questions: bool :param questions: List of the QnA threads - :type questions: list of :class:`Question ` + :type questions: list of :class:`Question ` """ _attribute_map = { @@ -1357,7 +1357,7 @@ class Response(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1377,7 +1377,7 @@ class Review(Model): """Review. :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` + :type admin_reply: :class:`ReviewReply ` :param id: Unique identifier of a review item :type id: long :param is_deleted: Flag for soft deletion @@ -1389,7 +1389,7 @@ class Review(Model): :param rating: Rating procided by the user :type rating: str :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` + :type reply: :class:`ReviewReply ` :param text: Text description of the review :type text: str :param title: Title of the review @@ -1439,9 +1439,9 @@ class ReviewPatch(Model): :param operation: Denotes the patch operation type :type operation: object :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` + :type reported_concern: :class:`UserReportedConcern ` :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` + :type review_item: :class:`Review ` """ _attribute_map = { @@ -1507,7 +1507,7 @@ class ReviewsResult(Model): :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) :type has_more_reviews: bool :param reviews: List of reviews - :type reviews: list of :class:`Review ` + :type reviews: list of :class:`Review ` :param total_review_count: Count of total review items :type total_review_count: long """ @@ -1533,7 +1533,7 @@ class ReviewSummary(Model): :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` + :type rating_split: list of :class:`RatingCountPerRating ` """ _attribute_map = { @@ -1563,7 +1563,7 @@ class UnpackagedExtensionData(Model): :param extension_name: :type extension_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param is_converted_to_markdown: :type is_converted_to_markdown: bool :param pricing_category: @@ -1691,7 +1691,7 @@ class Concern(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param category: Category of the concern :type category: object """ @@ -1740,7 +1740,7 @@ class Publisher(PublisherBase): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1754,7 +1754,7 @@ class Publisher(PublisherBase): :param short_description: :type short_description: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/git/git_client_base.py b/azure-devops/azure/devops/v4_1/git/git_client_base.py index b9863254..3b6b27b3 100644 --- a/azure-devops/azure/devops/v4_1/git/git_client_base.py +++ b/azure-devops/azure/devops/v4_1/git/git_client_base.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def create_annotated_tag(self, tag_object, project, repository_id): """CreateAnnotatedTag. [Preview API] Create an annotated tag. - :param :class:` ` tag_object: Object containing details of tag to be created. + :param :class:` ` tag_object: Object containing details of tag to be created. :param str project: Project ID or project name :param str repository_id: ID or name of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -52,7 +52,7 @@ def get_annotated_tag(self, project, repository_id, object_id): :param str project: Project ID or project name :param str repository_id: ID or name of the repository. :param str object_id: ObjectId (Sha1Id) of tag to get. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -75,7 +75,7 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N :param str project: Project ID or project name :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip :param str file_name: Provide a fileName to use for a download. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -201,8 +201,8 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= :param str repository_id: The name or ID of the repository. :param str name: Name of the branch. :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -231,7 +231,7 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None Retrieve statistics about all branches within a repository. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. :rtype: [GitBranchStats] """ route_values = {} @@ -262,7 +262,7 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non :param str project: Project ID or project name :param int top: The maximum number of changes to return. :param int skip: The number of changes to skip. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -286,10 +286,10 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non def create_cherry_pick(self, cherry_pick_to_create, project, repository_id): """CreateCherryPick. [Preview API] Cherry pick a specific commit or commits that are associated to a pull request into a new branch. - :param :class:` ` cherry_pick_to_create: + :param :class:` ` cherry_pick_to_create: :param str project: Project ID or project name :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -310,7 +310,7 @@ def get_cherry_pick(self, project, cherry_pick_id, repository_id): :param str project: Project ID or project name :param int cherry_pick_id: ID of the cherry pick. :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -331,7 +331,7 @@ def get_cherry_pick_for_ref_name(self, project, repository_id, ref_name): :param str project: Project ID or project name :param str repository_id: ID of the repository. :param str ref_name: The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -356,9 +356,9 @@ def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, :param bool diff_common_commit: :param int top: Maximum number of changes to return. Defaults to 100. :param int skip: Number of changes to skip - :param :class:` ` base_version_descriptor: Base item version. Compared against target item version to find changes in between. - :param :class:` ` target_version_descriptor: Target item version to use for finding the diffs. Compared against base item version to find changes in between. - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: Base item version. Compared against target item version to find changes in between. + :param :class:` ` target_version_descriptor: Target item version to use for finding the diffs. Compared against base item version to find changes in between. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -400,7 +400,7 @@ def get_commit(self, commit_id, repository_id, project=None, change_count=None): :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name :param int change_count: The number of changes to include in the result. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -423,7 +423,7 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t """GetCommits. Retrieve git commits for a project :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :param str project: Project ID or project name :param int skip: :param int top: @@ -524,7 +524,7 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): """GetCommitsBatch. Retrieve git commits for a project matching the search criteria - :param :class:` ` search_criteria: Search options + :param :class:` ` search_criteria: Search options :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param int skip: Number of commits to skip. @@ -597,11 +597,11 @@ def get_forks(self, repository_name_or_id, collection_id, project=None, include_ def create_fork_sync_request(self, sync_params, repository_name_or_id, project=None, include_links=None): """CreateForkSyncRequest. [Preview API] Request that another repository's refs be fetched into this one. - :param :class:` ` sync_params: Source repository and ref mapping. + :param :class:` ` sync_params: Source repository and ref mapping. :param str repository_name_or_id: The name or ID of the repository. :param str project: Project ID or project name :param bool include_links: True to include links - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -627,7 +627,7 @@ def get_fork_sync_request(self, repository_name_or_id, fork_sync_operation_id, p :param int fork_sync_operation_id: OperationId of the sync request. :param str project: Project ID or project name :param bool include_links: True to include links. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -675,10 +675,10 @@ def get_fork_sync_requests(self, repository_name_or_id, project=None, include_ab def create_import_request(self, import_request, project, repository_id): """CreateImportRequest. [Preview API] Create an import request. - :param :class:` ` import_request: The import request to create. + :param :class:` ` import_request: The import request to create. :param str project: Project ID or project name :param str repository_id: The name or ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -699,7 +699,7 @@ def get_import_request(self, project, repository_id, import_request_id): :param str project: Project ID or project name :param str repository_id: The name or ID of the repository. :param int import_request_id: The unique identifier for the import request. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -740,11 +740,11 @@ def query_import_requests(self, project, repository_id, include_abandoned=None): def update_import_request(self, import_request_to_update, project, repository_id, import_request_id): """UpdateImportRequest. [Preview API] Retry or abandon a failed import request. - :param :class:` ` import_request_to_update: The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned. + :param :class:` ` import_request_to_update: The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned. :param str project: Project ID or project name :param str repository_id: The name or ID of the repository. :param int import_request_id: The unique identifier for the import request to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -772,9 +772,9 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -821,7 +821,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -875,7 +875,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. :param bool include_links: Set to true to include links to items. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :rtype: [GitItem] """ route_values = {} @@ -921,7 +921,7 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -975,7 +975,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -1021,7 +1021,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur def get_items_batch(self, request_data, repository_id, project=None): """GetItemsBatch. Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path - :param :class:` ` request_data: Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references. + :param :class:` ` request_data: Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references. :param str repository_id: The name or ID of the repository :param str project: Project ID or project name :rtype: [[GitItem]] @@ -1079,7 +1079,7 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1336,7 +1336,7 @@ def get_pull_request_iteration_changes(self, repository_id, pull_request_id, ite :param int top: Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000. :param int skip: Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100. :param int compare_to: ID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1368,7 +1368,7 @@ def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_i :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration to return. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1414,12 +1414,12 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No def create_pull_request_iteration_status(self, status, repository_id, pull_request_id, iteration_id, project=None): """CreatePullRequestIterationStatus. [Preview API] Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body. - :param :class:` ` status: Pull request status to create. + :param :class:` ` status: Pull request status to create. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1471,7 +1471,7 @@ def get_pull_request_iteration_status(self, repository_id, pull_request_id, iter :param int iteration_id: ID of the pull request iteration. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1517,7 +1517,7 @@ def get_pull_request_iteration_statuses(self, repository_id, pull_request_id, it def update_pull_request_iteration_statuses(self, patch_document, repository_id, pull_request_id, iteration_id, project=None): """UpdatePullRequestIterationStatuses. [Preview API] Update pull request iteration statuses collection. The only supported operation type is `remove`. - :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. + :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. @@ -1543,12 +1543,12 @@ def update_pull_request_iteration_statuses(self, patch_document, repository_id, def create_pull_request_label(self, label, repository_id, pull_request_id, project=None, project_id=None): """CreatePullRequestLabel. [Preview API] Create a label for a specified pull request. The only required field is the name of the new label. - :param :class:` ` label: Label to assign to the pull request. + :param :class:` ` label: Label to assign to the pull request. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :param str project_id: Project ID or project name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1604,7 +1604,7 @@ def get_pull_request_label(self, repository_id, pull_request_id, label_id_or_nam :param str label_id_or_name: The name or ID of the label requested. :param str project: Project ID or project name :param str project_id: Project ID or project name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1657,7 +1657,7 @@ def get_pull_request_properties(self, repository_id, pull_request_id, project=No :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1675,11 +1675,11 @@ def get_pull_request_properties(self, repository_id, pull_request_id, project=No def update_pull_request_properties(self, patch_document, repository_id, pull_request_id, project=None): """UpdatePullRequestProperties. [Preview API] Create or update pull request external properties. The patch operation can be `add`, `replace` or `remove`. For `add` operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For `replace` operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For `remove` operation, the path cannot be empty. If the path does not exist, no action will be performed. - :param :class:`<[JsonPatchOperation]> ` patch_document: Properties to add, replace or remove in JSON Patch format. + :param :class:`<[JsonPatchOperation]> ` patch_document: Properties to add, replace or remove in JSON Patch format. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1700,10 +1700,10 @@ def update_pull_request_properties(self, patch_document, repository_id, pull_req def get_pull_request_query(self, queries, repository_id, project=None): """GetPullRequestQuery. This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests. - :param :class:` ` queries: The list of queries to perform. + :param :class:` ` queries: The list of queries to perform. :param str repository_id: ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1721,12 +1721,12 @@ def get_pull_request_query(self, queries, repository_id, project=None): def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, reviewer_id, project=None): """CreatePullRequestReviewer. Add a reviewer to a pull request or cast a vote. - :param :class:` ` reviewer: Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero. + :param :class:` ` reviewer: Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str reviewer_id: ID of the reviewer. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1798,7 +1798,7 @@ def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, :param int pull_request_id: ID of the pull request. :param str reviewer_id: ID of the reviewer. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1862,7 +1862,7 @@ def get_pull_request_by_id(self, pull_request_id): """GetPullRequestById. Retrieve a pull request. :param int pull_request_id: The ID of the pull request to retrieve. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pull_request_id is not None: @@ -1877,7 +1877,7 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len """GetPullRequestsByProject. Retrieve all pull requests matching a specified criteria. :param str project: Project ID or project name - :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. :param int max_comment_length: Not used. :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. :param int top: The number of pull requests to retrieve. @@ -1920,11 +1920,11 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): """CreatePullRequest. Create a pull request. - :param :class:` ` git_pull_request_to_create: The pull request to create. + :param :class:` ` git_pull_request_to_create: The pull request to create. :param str repository_id: The repository ID of the pull request's target branch. :param str project: Project ID or project name :param bool supports_iterations: If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1954,7 +1954,7 @@ def get_pull_request(self, repository_id, pull_request_id, project=None, max_com :param int top: Not used. :param bool include_commits: If true, the pull request will be returned with the associated commits. :param bool include_work_item_refs: If true, the pull request will be returned with the associated work item references. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1985,7 +1985,7 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co """GetPullRequests. Retrieve all pull requests matching a specified criteria. :param str repository_id: The repository ID of the pull request's target branch. - :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. :param str project: Project ID or project name :param int max_comment_length: Not used. :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. @@ -2031,11 +2031,11 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): """UpdatePullRequest. Update a pull request. - :param :class:` ` git_pull_request_to_update: The pull request content to update. + :param :class:` ` git_pull_request_to_update: The pull request content to update. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: The ID of the pull request to retrieve. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2055,7 +2055,7 @@ def update_pull_request(self, git_pull_request_to_update, repository_id, pull_re def share_pull_request(self, user_message, repository_id, pull_request_id, project=None): """SharePullRequest. [Preview API] Sends an e-mail notification about a specific pull request to a set of recipients - :param :class:` ` user_message: + :param :class:` ` user_message: :param str repository_id: ID of the git repository. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -2077,11 +2077,11 @@ def share_pull_request(self, user_message, repository_id, pull_request_id, proje def create_pull_request_status(self, status, repository_id, pull_request_id, project=None): """CreatePullRequestStatus. [Preview API] Create a pull request status. - :param :class:` ` status: Pull request status to create. + :param :class:` ` status: Pull request status to create. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2127,7 +2127,7 @@ def get_pull_request_status(self, repository_id, pull_request_id, status_id, pro :param int pull_request_id: ID of the pull request. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2168,7 +2168,7 @@ def get_pull_request_statuses(self, repository_id, pull_request_id, project=None def update_pull_request_statuses(self, patch_document, repository_id, pull_request_id, project=None): """UpdatePullRequestStatuses. [Preview API] Update pull request statuses collection. The only supported operation type is `remove`. - :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. + :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -2191,12 +2191,12 @@ def update_pull_request_statuses(self, patch_document, repository_id, pull_reque def create_comment(self, comment, repository_id, pull_request_id, thread_id, project=None): """CreateComment. Create a comment on a specific thread in a pull request. - :param :class:` ` comment: The comment to create. + :param :class:` ` comment: The comment to create. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2248,7 +2248,7 @@ def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, pro :param int thread_id: ID of the thread that the desired comment is in. :param int comment_id: ID of the comment. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2294,13 +2294,13 @@ def get_comments(self, repository_id, pull_request_id, thread_id, project=None): def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): """UpdateComment. Update a comment associated with a specific thread in a pull request. - :param :class:` ` comment: The comment content that should be updated. + :param :class:` ` comment: The comment content that should be updated. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. :param int comment_id: ID of the comment to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2324,11 +2324,11 @@ def update_comment(self, comment, repository_id, pull_request_id, thread_id, com def create_thread(self, comment_thread, repository_id, pull_request_id, project=None): """CreateThread. Create a thread in a pull request. - :param :class:` ` comment_thread: The thread to create. Thread must contain at least one comment. + :param :class:` ` comment_thread: The thread to create. Thread must contain at least one comment. :param str repository_id: Repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2354,7 +2354,7 @@ def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, pro :param str project: Project ID or project name :param int iteration: If specified, thread position will be tracked using this iteration as the right side of the diff. :param int base_iteration: If specified, thread position will be tracked using this iteration as the left side of the diff. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2409,12 +2409,12 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): """UpdateThread. Update a thread in a pull request. - :param :class:` ` comment_thread: The thread content that should be updated. + :param :class:` ` comment_thread: The thread content that should be updated. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2457,10 +2457,10 @@ def get_pull_request_work_item_refs(self, repository_id, pull_request_id, projec def create_push(self, push, repository_id, project=None): """CreatePush. Push changes to the repository. - :param :class:` ` push: + :param :class:` ` push: :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2483,7 +2483,7 @@ def get_push(self, repository_id, push_id, project=None, include_commits=None, i :param str project: Project ID or project name :param int include_commits: The number of commits to include in the result. :param bool include_ref_updates: If true, include the list of refs that were updated by the push. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2511,7 +2511,7 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr :param str project: Project ID or project name :param int skip: Number of pushes to skip. :param int top: Number of pushes to return. - :param :class:` ` search_criteria: Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references. + :param :class:` ` search_criteria: Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references. :rtype: [GitPush] """ route_values = {} @@ -2578,10 +2578,10 @@ def get_recycle_bin_repositories(self, project): def restore_repository_from_recycle_bin(self, repository_details, project, repository_id): """RestoreRepositoryFromRecycleBin. [Preview API] Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable. - :param :class:` ` repository_details: + :param :class:` ` repository_details: :param str project: Project ID or project name :param str repository_id: The ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2628,12 +2628,12 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): """UpdateRef. Lock or Unlock a branch. - :param :class:` ` new_ref_info: The ref update action (lock/unlock) to perform + :param :class:` ` new_ref_info: The ref update action (lock/unlock) to perform :param str repository_id: The name or ID of the repository. :param str filter: The name of the branch to lock/unlock :param str project: Project ID or project name :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2683,9 +2683,9 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) def create_favorite(self, favorite, project): """CreateFavorite. [Preview API] Creates a ref favorite - :param :class:` ` favorite: The ref favorite to create. + :param :class:` ` favorite: The ref favorite to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2719,7 +2719,7 @@ def get_ref_favorite(self, project, favorite_id): [Preview API] Gets the refs favorite for a favorite Id. :param str project: Project ID or project name :param int favorite_id: The Id of the requested ref favorite. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2758,10 +2758,10 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): def create_repository(self, git_repository_to_create, project=None, source_ref=None): """CreateRepository. Create a git repository in a team project. - :param :class:` ` git_repository_to_create: Specify the repo name, team project and/or parent repository + :param :class:` ` git_repository_to_create: Specify the repo name, team project and/or parent repository :param str project: Project ID or project name :param str source_ref: [optional] Specify the source refs to use while creating a fork repo - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2826,7 +2826,7 @@ def get_repository(self, repository_id, project=None, include_parent=None): :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param bool include_parent: [optional] True to include parent repository. The default value is false. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2846,10 +2846,10 @@ def get_repository(self, repository_id, project=None, include_parent=None): def update_repository(self, new_repository_info, repository_id, project=None): """UpdateRepository. Updates the Git repository with either a new repo name or a new default branch. - :param :class:` ` new_repository_info: Specify a new repo name or a new default branch of the repository + :param :class:` ` new_repository_info: Specify a new repo name or a new default branch of the repository :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2867,10 +2867,10 @@ def update_repository(self, new_repository_info, repository_id, project=None): def create_revert(self, revert_to_create, project, repository_id): """CreateRevert. [Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request. - :param :class:` ` revert_to_create: + :param :class:` ` revert_to_create: :param str project: Project ID or project name :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2891,7 +2891,7 @@ def get_revert(self, project, revert_id, repository_id): :param str project: Project ID or project name :param int revert_id: ID of the revert operation. :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2912,7 +2912,7 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): :param str project: Project ID or project name :param str repository_id: ID of the repository. :param str ref_name: The GitAsyncRefOperationParameters generatedRefName used for the revert operation. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2932,11 +2932,11 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): def create_commit_status(self, git_commit_status_to_create, commit_id, repository_id, project=None): """CreateCommitStatus. Create Git commit status. - :param :class:` ` git_commit_status_to_create: Git commit status object to create. + :param :class:` ` git_commit_status_to_create: Git commit status object to create. :param str commit_id: ID of the Git commit. :param str repository_id: ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -3012,7 +3012,7 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive :param str project_id: Project Id. :param bool recursive: Search recursively. Include trees underneath this tree. Default is false. :param str file_name: Name to use if a .zip file is returned. Default is the object ID. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/git/models.py b/azure-devops/azure/devops/v4_1/git/models.py index 5477aea3..d2ae4847 100644 --- a/azure-devops/azure/devops/v4_1/git/models.py +++ b/azure-devops/azure/devops/v4_1/git/models.py @@ -13,9 +13,9 @@ class Attachment(Model): """Attachment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The person that uploaded this attachment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. :type content_hash: str :param created_date: The time the attachment was uploaded. @@ -27,7 +27,7 @@ class Attachment(Model): :param id: Id of the attachment. :type id: int :param properties: Extended properties. - :type properties: :class:`object ` + :type properties: :class:`object ` :param url: The url to download the content of the attachment. :type url: str """ @@ -65,7 +65,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -93,9 +93,9 @@ class Comment(Model): """Comment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The author of the comment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param comment_type: The comment type at the time of creation. :type comment_type: object :param content: The comment content. @@ -113,7 +113,7 @@ class Comment(Model): :param published_date: The date the comment was first published. :type published_date: datetime :param users_liked: A list of the users who have liked this comment. - :type users_liked: list of :class:`IdentityRef ` + :type users_liked: list of :class:`IdentityRef ` """ _attribute_map = { @@ -189,9 +189,9 @@ class CommentThread(Model): """CommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. @@ -199,13 +199,13 @@ class CommentThread(Model): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` """ _attribute_map = { @@ -239,13 +239,13 @@ class CommentThreadContext(Model): :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. :type file_path: str :param left_file_end: Position of last character of the thread's span in left file. - :type left_file_end: :class:`CommentPosition ` + :type left_file_end: :class:`CommentPosition ` :param left_file_start: Position of first character of the thread's span in left file. - :type left_file_start: :class:`CommentPosition ` + :type left_file_start: :class:`CommentPosition ` :param right_file_end: Position of last character of the thread's span in right file. - :type right_file_end: :class:`CommentPosition ` + :type right_file_end: :class:`CommentPosition ` :param right_file_start: Position of first character of the thread's span in right file. - :type right_file_start: :class:`CommentPosition ` + :type right_file_start: :class:`CommentPosition ` """ _attribute_map = { @@ -273,13 +273,13 @@ class CommentTrackingCriteria(Model): :param orig_file_path: Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. :type orig_file_path: str :param orig_left_file_end: Original position of last character of the thread's span in left file. - :type orig_left_file_end: :class:`CommentPosition ` + :type orig_left_file_end: :class:`CommentPosition ` :param orig_left_file_start: Original position of first character of the thread's span in left file. - :type orig_left_file_start: :class:`CommentPosition ` + :type orig_left_file_start: :class:`CommentPosition ` :param orig_right_file_end: Original position of last character of the thread's span in right file. - :type orig_right_file_end: :class:`CommentPosition ` + :type orig_right_file_end: :class:`CommentPosition ` :param orig_right_file_start: Original position of first character of the thread's span in right file. - :type orig_right_file_start: :class:`CommentPosition ` + :type orig_right_file_start: :class:`CommentPosition ` :param second_comparing_iteration: The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. :type second_comparing_iteration: int """ @@ -355,9 +355,9 @@ class GitAnnotatedTag(Model): :param object_id: The objectId (Sha1Id) of the tag. :type object_id: str :param tagged_by: User info and date of tagging. - :type tagged_by: :class:`GitUserDate ` + :type tagged_by: :class:`GitUserDate ` :param tagged_object: Tagged git object. - :type tagged_object: :class:`GitObject ` + :type tagged_object: :class:`GitObject ` :param url: :type url: str """ @@ -385,11 +385,11 @@ class GitAsyncRefOperation(Model): """GitAsyncRefOperation. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -457,9 +457,9 @@ class GitAsyncRefOperationParameters(Model): :param onto_ref_name: The target branch for the cherry pick or revert operation. :type onto_ref_name: str :param repository: The git repository for the cherry pick or revert operation. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). - :type source: :class:`GitAsyncRefOperationSource ` + :type source: :class:`GitAsyncRefOperationSource ` """ _attribute_map = { @@ -481,7 +481,7 @@ class GitAsyncRefOperationSource(Model): """GitAsyncRefOperationSource. :param commit_list: A list of commits to cherry pick or revert - :type commit_list: list of :class:`GitCommitRef ` + :type commit_list: list of :class:`GitCommitRef ` :param pull_request_id: Id of the pull request to cherry pick or revert :type pull_request_id: int """ @@ -501,7 +501,7 @@ class GitBlobRef(Model): """GitBlobRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Size of blob content (in bytes) @@ -533,7 +533,7 @@ class GitBranchStats(Model): :param behind_count: Number of commits behind. :type behind_count: int :param commit: Current commit. - :type commit: :class:`GitCommitRef ` + :type commit: :class:`GitCommitRef ` :param is_base_version: True if this is the result for the base version. :type is_base_version: bool :param name: Name of the ref. @@ -561,11 +561,11 @@ class GitCherryPick(GitAsyncRefOperation): """GitCherryPick. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -594,7 +594,7 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` """ _attribute_map = { @@ -622,7 +622,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -656,13 +656,13 @@ class GitCommitRef(Model): """GitCommitRef. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -670,17 +670,17 @@ class GitCommitRef(Model): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` """ _attribute_map = { @@ -720,7 +720,7 @@ class GitConflict(Model): """GitConflict. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param conflict_id: :type conflict_id: int :param conflict_path: @@ -728,19 +728,19 @@ class GitConflict(Model): :param conflict_type: :type conflict_type: object :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` + :type merge_base_commit: :class:`GitCommitRef ` :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` + :type merge_origin: :class:`GitMergeOriginRef ` :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` + :type merge_source_commit: :class:`GitCommitRef ` :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` + :type merge_target_commit: :class:`GitCommitRef ` :param resolution_error: :type resolution_error: object :param resolution_status: :type resolution_status: object :param resolved_by: - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` :param resolved_date: :type resolved_date: datetime :param url: @@ -788,7 +788,7 @@ class GitConflictUpdateResult(Model): :param custom_message: Reason for failing :type custom_message: str :param updated_conflict: New state of the conflict after updating - :type updated_conflict: :class:`GitConflict ` + :type updated_conflict: :class:`GitConflict ` :param update_status: Status of the update on the server :type update_status: object """ @@ -814,7 +814,7 @@ class GitDeletedRepository(Model): :param created_date: :type created_date: datetime :param deleted_by: - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: :type deleted_date: datetime :param id: @@ -822,7 +822,7 @@ class GitDeletedRepository(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -896,15 +896,15 @@ class GitForkSyncRequest(Model): """GitForkSyncRequest. :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` + :type detailed_status: :class:`GitForkOperationStatusDetail ` :param operation_id: Unique identifier for the operation. :type operation_id: int :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` :param status: :type status: object """ @@ -932,9 +932,9 @@ class GitForkSyncRequestParameters(Model): """GitForkSyncRequestParameters. :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` """ _attribute_map = { @@ -972,15 +972,15 @@ class GitImportRequest(Model): """GitImportRequest. :param _links: Links to related resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: Detailed status of the import, including the current step and an error message, if applicable. - :type detailed_status: :class:`GitImportStatusDetail ` + :type detailed_status: :class:`GitImportStatusDetail ` :param import_request_id: The unique identifier for this import request. :type import_request_id: int :param parameters: Parameters for creating the import request. - :type parameters: :class:`GitImportRequestParameters ` + :type parameters: :class:`GitImportRequestParameters ` :param repository: The target repository for this import. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param status: Current status of the import. :type status: object :param url: A link back to this import request resource. @@ -1014,11 +1014,11 @@ class GitImportRequestParameters(Model): :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done :type delete_service_endpoint_after_import_is_done: bool :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param service_endpoint_id: Service Endpoint for connection to external endpoint :type service_endpoint_id: str :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` """ _attribute_map = { @@ -1124,7 +1124,7 @@ class GitItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` + :type item_descriptors: list of :class:`GitItemDescriptor ` :param latest_processed_change: Whether to include shallow ref to commit that last changed each item :type latest_processed_change: bool """ @@ -1184,39 +1184,39 @@ class GitPullRequest(Model): """GitPullRequest. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}``` :type artifact_id: str :param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it. - :type auto_complete_set_by: :class:`IdentityRef ` + :type auto_complete_set_by: :class:`IdentityRef ` :param closed_by: The user who closed the pull request. - :type closed_by: :class:`IdentityRef ` + :type closed_by: :class:`IdentityRef ` :param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally). :type closed_date: datetime :param code_review_id: The code review ID of the pull request. Used internally. :type code_review_id: int :param commits: The commits contained in the pull request. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param completion_options: Options which affect how the pull request will be merged when it is completed. - :type completion_options: :class:`GitPullRequestCompletionOptions ` + :type completion_options: :class:`GitPullRequestCompletionOptions ` :param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally. :type completion_queue_time: datetime :param created_by: The identity of the user who created the pull request. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: The date when the pull request was created. :type creation_date: datetime :param description: The description of the pull request. :type description: str :param fork_source: If this is a PR from a fork this will contain information about its source. - :type fork_source: :class:`GitForkRef ` + :type fork_source: :class:`GitForkRef ` :param labels: The labels associated with the pull request. - :type labels: list of :class:`WebApiTagDefinition ` + :type labels: list of :class:`WebApiTagDefinition ` :param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. - :type last_merge_commit: :class:`GitCommitRef ` + :type last_merge_commit: :class:`GitCommitRef ` :param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge. - :type last_merge_source_commit: :class:`GitCommitRef ` + :type last_merge_source_commit: :class:`GitCommitRef ` :param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge. - :type last_merge_target_commit: :class:`GitCommitRef ` + :type last_merge_target_commit: :class:`GitCommitRef ` :param merge_failure_message: If set, pull request merge failed for this reason. :type merge_failure_message: str :param merge_failure_type: The type of failure (if any) of the pull request merge. @@ -1224,7 +1224,7 @@ class GitPullRequest(Model): :param merge_id: The ID of the job used to run the pull request merge. Used internally. :type merge_id: str :param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. - :type merge_options: :class:`GitPullRequestMergeOptions ` + :type merge_options: :class:`GitPullRequestMergeOptions ` :param merge_status: The current status of the pull request merge. :type merge_status: object :param pull_request_id: The ID of the pull request. @@ -1232,9 +1232,9 @@ class GitPullRequest(Model): :param remote_url: Used internally. :type remote_url: str :param repository: The repository containing the target branch of the pull request. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param reviewers: A list of reviewers on the pull request along with the state of their votes. - :type reviewers: list of :class:`IdentityRefWithVote ` + :type reviewers: list of :class:`IdentityRefWithVote ` :param source_ref_name: The name of the source branch of the pull request. :type source_ref_name: str :param status: The status of the pull request. @@ -1248,7 +1248,7 @@ class GitPullRequest(Model): :param url: Used internally. :type url: str :param work_item_refs: Any work item references associated with this pull request. - :type work_item_refs: list of :class:`ResourceRef ` + :type work_item_refs: list of :class:`ResourceRef ` """ _attribute_map = { @@ -1328,9 +1328,9 @@ class GitPullRequestCommentThread(CommentThread): """GitPullRequestCommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. @@ -1338,15 +1338,15 @@ class GitPullRequestCommentThread(CommentThread): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` """ _attribute_map = { @@ -1373,9 +1373,9 @@ class GitPullRequestCommentThreadContext(Model): :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. :type change_tracking_id: int :param iteration_context: The iteration context being viewed when the thread was created. - :type iteration_context: :class:`CommentIterationContext ` + :type iteration_context: :class:`CommentIterationContext ` :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` + :type tracking_criteria: :class:`CommentTrackingCriteria ` """ _attribute_map = { @@ -1435,15 +1435,15 @@ class GitPullRequestIteration(Model): """GitPullRequestIteration. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the pull request iteration. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param change_list: Changes included with the pull request iteration. - :type change_list: list of :class:`GitPullRequestChange ` + :type change_list: list of :class:`GitPullRequestChange ` :param commits: The commits included with the pull request iteration. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param common_ref_commit: The first common Git commit of the source and target refs. - :type common_ref_commit: :class:`GitCommitRef ` + :type common_ref_commit: :class:`GitCommitRef ` :param created_date: The creation date of the pull request iteration. :type created_date: datetime :param description: Description of the pull request iteration. @@ -1453,13 +1453,13 @@ class GitPullRequestIteration(Model): :param id: ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request. :type id: int :param push: The Git push information associated with this pull request iteration. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param reason: The reason for which the pull request iteration was created. :type reason: object :param source_ref_commit: The source Git commit of this iteration. - :type source_ref_commit: :class:`GitCommitRef ` + :type source_ref_commit: :class:`GitCommitRef ` :param target_ref_commit: The target Git commit of this iteration. - :type target_ref_commit: :class:`GitCommitRef ` + :type target_ref_commit: :class:`GitCommitRef ` :param updated_date: The updated date of the pull request iteration. :type updated_date: datetime """ @@ -1503,7 +1503,7 @@ class GitPullRequestIterationChanges(Model): """GitPullRequestIterationChanges. :param change_entries: Changes made in the iteration. - :type change_entries: list of :class:`GitPullRequestChange ` + :type change_entries: list of :class:`GitPullRequestChange ` :param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. :type next_skip: int :param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes. @@ -1547,7 +1547,7 @@ class GitPullRequestQuery(Model): """GitPullRequestQuery. :param queries: The queries to perform. - :type queries: list of :class:`GitPullRequestQueryInput ` + :type queries: list of :class:`GitPullRequestQueryInput ` :param results: The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. :type results: list of {[GitPullRequest]} """ @@ -1631,13 +1631,13 @@ class GitPushRef(Model): """GitPushRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: @@ -1703,9 +1703,9 @@ class GitQueryBranchStatsCriteria(Model): """GitQueryBranchStatsCriteria. :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` + :type base_commit: :class:`GitVersionDescriptor ` :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` + :type target_commits: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -1729,7 +1729,7 @@ class GitQueryCommitsCriteria(Model): :param author: Alias or display name of the author :type author: str :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. - :type compare_version: :class:`GitVersionDescriptor ` + :type compare_version: :class:`GitVersionDescriptor ` :param exclude_deletes: If true, don't include delete history entries :type exclude_deletes: bool :param from_commit_id: If provided, a lower bound for filtering commits alphabetically @@ -1747,7 +1747,7 @@ class GitQueryCommitsCriteria(Model): :param item_path: Path of item to search under :type item_path: str :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` + :type item_version: :class:`GitVersionDescriptor ` :param to_commit_id: If provided, an upper bound for filtering commits alphabetically :type to_commit_id: str :param to_date: If provided, only include history entries created before this date (string) @@ -1815,13 +1815,13 @@ class GitRef(Model): """GitRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -1829,7 +1829,7 @@ class GitRef(Model): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str """ @@ -1863,7 +1863,7 @@ class GitRefFavorite(Model): """GitRefFavorite. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param identity_id: @@ -1983,7 +1983,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -1993,9 +1993,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -2041,9 +2041,9 @@ class GitRepositoryCreateOptions(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -2063,7 +2063,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -2071,7 +2071,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -2135,11 +2135,11 @@ class GitRevert(GitAsyncRefOperation): """GitRevert. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -2166,11 +2166,11 @@ class GitStatus(Model): """GitStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -2276,7 +2276,7 @@ class GitTreeDiff(Model): :param base_tree_id: ObjectId of the base tree of this diff. :type base_tree_id: str :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` + :type diff_entries: list of :class:`GitTreeDiffEntry ` :param target_tree_id: ObjectId of the target tree of this diff. :type target_tree_id: str :param url: REST Url to this resource. @@ -2336,7 +2336,7 @@ class GitTreeDiffResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: list of str :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` + :type tree_diff: :class:`GitTreeDiff ` """ _attribute_map = { @@ -2390,13 +2390,13 @@ class GitTreeRef(Model): """GitTreeRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Sum of sizes of all children :type size: long :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` + :type tree_entries: list of :class:`GitTreeEntryRef ` :param url: Url to tree :type url: str """ @@ -2494,7 +2494,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2522,7 +2522,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2578,7 +2578,7 @@ class IdentityRefWithVote(IdentityRef): """IdentityRefWithVote. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2608,7 +2608,7 @@ class IdentityRefWithVote(IdentityRef): :param vote: Vote on a pull request:
10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected :type vote: int :param voted_for: Groups or teams that that this reviewer contributed to.
Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes. - :type voted_for: list of :class:`IdentityRefWithVote ` + :type voted_for: list of :class:`IdentityRefWithVote ` """ _attribute_map = { @@ -2642,11 +2642,11 @@ class ImportRepositoryValidation(Model): """ImportRepositoryValidation. :param git_source: - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param password: :type password: str :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` :param username: :type username: str """ @@ -2690,11 +2690,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -2796,7 +2796,7 @@ class ShareNotificationContext(Model): :param message: Optional user note or message. :type message: str :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` + :type receivers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -2902,9 +2902,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -3003,13 +3003,13 @@ class GitCommit(GitCommitRef): """GitCommit. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -3017,19 +3017,19 @@ class GitCommit(GitCommitRef): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` :param push: - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param tree_id: :type tree_id: str """ @@ -3062,13 +3062,13 @@ class GitForkRef(GitRef): """GitForkRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -3076,11 +3076,11 @@ class GitForkRef(GitRef): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param repository: The repository ID of the fork. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3105,11 +3105,11 @@ class GitItem(ItemModel): """GitItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -3123,7 +3123,7 @@ class GitItem(ItemModel): :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) :type git_object_type: object :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` + :type latest_processed_change: :class:`GitCommitRef ` :param object_id: Git object id :type object_id: str :param original_object_id: Git object id @@ -3158,11 +3158,11 @@ class GitPullRequestStatus(GitStatus): """GitPullRequestStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -3178,7 +3178,7 @@ class GitPullRequestStatus(GitStatus): :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. :type iteration_id: int :param properties: Custom properties of the status. - :type properties: :class:`object ` + :type properties: :class:`object ` """ _attribute_map = { @@ -3205,23 +3205,23 @@ class GitPush(GitPushRef): """GitPush. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: :type url: str :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` + :type ref_updates: list of :class:`GitRefUpdate ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/graph/graph_client.py b/azure-devops/azure/devops/v4_1/graph/graph_client.py index 804240bb..0903ee7e 100644 --- a/azure-devops/azure/devops/v4_1/graph/graph_client.py +++ b/azure-devops/azure/devops/v4_1/graph/graph_client.py @@ -29,7 +29,7 @@ def get_descriptor(self, storage_key): """GetDescriptor. [Preview API] Resolve a storage key to a descriptor :param str storage_key: Storage key of the subject (user, group, scope, etc.) to resolve - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if storage_key is not None: @@ -43,10 +43,10 @@ def get_descriptor(self, storage_key): def create_group(self, creation_context, scope_descriptor=None, group_descriptors=None): """CreateGroup. [Preview API] Create a new VSTS group or materialize an existing AAD group. - :param :class:` ` creation_context: The subset of the full graph group used to uniquely find the graph subject in an external provider. + :param :class:` ` creation_context: The subset of the full graph group used to uniquely find the graph subject in an external provider. :param str scope_descriptor: A descriptor referencing the scope (collection, project) in which the group should be created. If omitted, will be created in the scope of the enclosing account or organization. Valid only for VSTS groups. :param [str] group_descriptors: A comma separated list of descriptors referencing groups you want the graph group to join - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_descriptor is not None: @@ -79,7 +79,7 @@ def get_group(self, group_descriptor): """GetGroup. [Preview API] Get a group by its descriptor. :param str group_descriptor: The descriptor of the desired graph group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_descriptor is not None: @@ -96,7 +96,7 @@ def list_groups(self, scope_descriptor=None, subject_types=None, continuation_to :param str scope_descriptor: Specify a non-default scope (collection, project) to search for groups. :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. Microsoft.IdentityModel.Claims.ClaimsIdentity :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_descriptor is not None: @@ -119,8 +119,8 @@ def update_group(self, group_descriptor, patch_document): """UpdateGroup. [Preview API] Update the properties of a VSTS group. :param str group_descriptor: The descriptor of the group to modify. - :param :class:`<[JsonPatchOperation]> ` patch_document: The JSON+Patch document containing the fields to alter. - :rtype: :class:` ` + :param :class:`<[JsonPatchOperation]> ` patch_document: The JSON+Patch document containing the fields to alter. + :rtype: :class:` ` """ route_values = {} if group_descriptor is not None: @@ -139,7 +139,7 @@ def add_membership(self, subject_descriptor, container_descriptor): [Preview API] Create a new membership between a container and subject. :param str subject_descriptor: A descriptor to a group or user that can be the child subject in the relationship. :param str container_descriptor: A descriptor to a group that can be the container in the relationship. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: @@ -173,7 +173,7 @@ def get_membership(self, subject_descriptor, container_descriptor): [Preview API] Get a membership relationship between a container and subject. :param str subject_descriptor: A descriptor to the child subject in the relationship. :param str container_descriptor: A descriptor to the container in the relationship. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: @@ -229,7 +229,7 @@ def get_membership_state(self, subject_descriptor): """GetMembershipState. [Preview API] Check whether a subject is active or inactive. :param str subject_descriptor: Descriptor of the subject (user, group, scope, etc.) to check state of - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: @@ -244,7 +244,7 @@ def get_storage_key(self, subject_descriptor): """GetStorageKey. [Preview API] Resolve a descriptor to a storage key. :param str subject_descriptor: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: @@ -258,7 +258,7 @@ def get_storage_key(self, subject_descriptor): def lookup_subjects(self, subject_lookup): """LookupSubjects. [Preview API] Resolve descriptors to users, groups or scopes (Subjects) in a batch. - :param :class:` ` subject_lookup: A list of descriptors that specifies a subset of subjects to retrieve. Each descriptor uniquely identifies the subject across all instance scopes, but only at a single point in time. + :param :class:` ` subject_lookup: A list of descriptors that specifies a subset of subjects to retrieve. Each descriptor uniquely identifies the subject across all instance scopes, but only at a single point in time. :rtype: {GraphSubject} """ content = self._serialize.body(subject_lookup, 'GraphSubjectLookup') @@ -271,9 +271,9 @@ def lookup_subjects(self, subject_lookup): def create_user(self, creation_context, group_descriptors=None): """CreateUser. [Preview API] Materialize an existing AAD or MSA user into the VSTS account. - :param :class:` ` creation_context: The subset of the full graph user used to uniquely find the graph subject in an external provider. + :param :class:` ` creation_context: The subset of the full graph user used to uniquely find the graph subject in an external provider. :param [str] group_descriptors: A comma separated list of descriptors of groups you want the graph user to join - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if group_descriptors is not None: @@ -304,7 +304,7 @@ def get_user(self, user_descriptor): """GetUser. [Preview API] Get a user by its descriptor. :param str user_descriptor: The descriptor of the desired user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_descriptor is not None: @@ -320,7 +320,7 @@ def list_users(self, subject_types=None, continuation_token=None): [Preview API] Get a list of all users in a given scope. :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. msa’, ‘aad’, ‘svc’ (service identity), ‘imp’ (imported identity), etc. :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if subject_types is not None: diff --git a/azure-devops/azure/devops/v4_1/graph/models.py b/azure-devops/azure/devops/v4_1/graph/models.py index 109829f7..b18136b8 100644 --- a/azure-devops/azure/devops/v4_1/graph/models.py +++ b/azure-devops/azure/devops/v4_1/graph/models.py @@ -29,9 +29,9 @@ class GraphDescriptorResult(Model): """GraphDescriptorResult. :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: - :type value: :class:`str ` + :type value: :class:`str ` """ _attribute_map = { @@ -51,7 +51,7 @@ class GraphGlobalExtendedPropertyBatch(Model): :param property_name_filters: :type property_name_filters: list of str :param subject_descriptors: - :type subject_descriptors: list of :class:`str ` + :type subject_descriptors: list of :class:`str ` """ _attribute_map = { @@ -85,7 +85,7 @@ class GraphMembership(Model): """GraphMembership. :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param container_descriptor: :type container_descriptor: str :param member_descriptor: @@ -109,7 +109,7 @@ class GraphMembershipState(Model): """GraphMembershipState. :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param active: When true, the membership is active :type active: bool """ @@ -133,11 +133,11 @@ class GraphMembershipTraversal(Model): :param is_complete: When true, the subject is traversed completely :type is_complete: bool :param subject_descriptor: The traversed subject descriptor - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param traversed_subject_ids: Subject descriptor ids of the traversed members :type traversed_subject_ids: list of str :param traversed_subjects: Subject descriptors of the traversed members - :type traversed_subjects: list of :class:`str ` + :type traversed_subjects: list of :class:`str ` """ _attribute_map = { @@ -197,7 +197,7 @@ class GraphStorageKeyResult(Model): """GraphStorageKeyResult. :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: :type value: str """ @@ -217,7 +217,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -245,7 +245,7 @@ class GraphSubjectLookup(Model): """GraphSubjectLookup. :param lookup_keys: - :type lookup_keys: list of :class:`GraphSubjectLookupKey ` + :type lookup_keys: list of :class:`GraphSubjectLookupKey ` """ _attribute_map = { @@ -261,7 +261,7 @@ class GraphSubjectLookupKey(Model): """GraphSubjectLookupKey. :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` """ _attribute_map = { @@ -347,7 +347,7 @@ class PagedGraphGroups(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_groups: The enumerable list of groups found within a page. - :type graph_groups: list of :class:`GraphGroup ` + :type graph_groups: list of :class:`GraphGroup ` """ _attribute_map = { @@ -367,7 +367,7 @@ class PagedGraphUsers(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_users: The enumerable set of users found within a page. - :type graph_users: list of :class:`GraphUser ` + :type graph_users: list of :class:`GraphUser ` """ _attribute_map = { @@ -401,7 +401,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -441,7 +441,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -493,7 +493,7 @@ class GraphScope(GraphSubject): """GraphScope. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -549,7 +549,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -601,7 +601,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v4_1/identity/identity_client.py b/azure-devops/azure/devops/v4_1/identity/identity_client.py index 066644a8..c413ed60 100644 --- a/azure-devops/azure/devops/v4_1/identity/identity_client.py +++ b/azure-devops/azure/devops/v4_1/identity/identity_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def create_or_bind_with_claims(self, source_identity): """CreateOrBindWithClaims. [Preview API] - :param :class:` ` source_identity: - :rtype: :class:` ` + :param :class:` ` source_identity: + :rtype: :class:` ` """ content = self._serialize.body(source_identity, 'Identity') response = self._send(http_method='PUT', @@ -43,7 +43,7 @@ def get_descriptor_by_id(self, id, is_master_id=None): [Preview API] :param str id: :param bool is_master_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -60,7 +60,7 @@ def get_descriptor_by_id(self, id, is_master_id=None): def create_groups(self, container): """CreateGroups. - :param :class:` ` container: + :param :class:` ` container: :rtype: [Identity] """ content = self._serialize.body(container, 'object') @@ -110,7 +110,7 @@ def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id :param int identity_sequence_id: :param int group_sequence_id: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if identity_sequence_id is not None: @@ -199,7 +199,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): :param str identity_id: :param str query_membership: :param str properties: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if identity_id is not None: @@ -218,7 +218,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): def update_identities(self, identities): """UpdateIdentities. - :param :class:` ` identities: + :param :class:` ` identities: :rtype: [IdentityUpdateData] """ content = self._serialize.body(identities, 'VssJsonCollectionWrapper') @@ -230,7 +230,7 @@ def update_identities(self, identities): def update_identity(self, identity, identity_id): """UpdateIdentity. - :param :class:` ` identity: + :param :class:` ` identity: :param str identity_id: """ route_values = {} @@ -245,8 +245,8 @@ def update_identity(self, identity, identity_id): def create_identity(self, framework_identity_info): """CreateIdentity. - :param :class:` ` framework_identity_info: - :rtype: :class:` ` + :param :class:` ` framework_identity_info: + :rtype: :class:` ` """ content = self._serialize.body(framework_identity_info, 'FrameworkIdentityInfo') response = self._send(http_method='PUT', @@ -258,7 +258,7 @@ def create_identity(self, framework_identity_info): def read_identity_batch(self, batch_info): """ReadIdentityBatch. [Preview API] - :param :class:` ` batch_info: + :param :class:` ` batch_info: :rtype: [Identity] """ content = self._serialize.body(batch_info, 'IdentityBatchInfo') @@ -272,7 +272,7 @@ def get_identity_snapshot(self, scope_id): """GetIdentitySnapshot. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -296,7 +296,7 @@ def get_max_sequence_id(self): def get_self(self): """GetSelf. Read identity of the home tenant request user. - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='4bb02b5b-c120-4be2-b68e-21f7c50a4b82', @@ -327,7 +327,7 @@ def read_member(self, container_id, member_id, query_membership=None): :param str container_id: :param str member_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if container_id is not None: @@ -388,7 +388,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): :param str member_id: :param str container_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if member_id is not None: @@ -428,9 +428,9 @@ def read_members_of(self, member_id, query_membership=None): def create_scope(self, info, scope_id): """CreateScope. [Preview API] - :param :class:` ` info: + :param :class:` ` info: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -460,7 +460,7 @@ def get_scope_by_id(self, scope_id): """GetScopeById. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -475,7 +475,7 @@ def get_scope_by_name(self, scope_name): """GetScopeByName. [Preview API] :param str scope_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_name is not None: @@ -489,7 +489,7 @@ def get_scope_by_name(self, scope_name): def rename_scope(self, rename_scope, scope_id): """RenameScope. [Preview API] - :param :class:` ` rename_scope: + :param :class:` ` rename_scope: :param str scope_id: """ route_values = {} @@ -505,7 +505,7 @@ def rename_scope(self, rename_scope, scope_id): def get_signed_in_token(self): """GetSignedInToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='6074ff18-aaad-4abb-a41e-5c75f6178057', @@ -515,7 +515,7 @@ def get_signed_in_token(self): def get_signout_token(self): """GetSignoutToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='be39e83c-7529-45e9-9c67-0410885880da', @@ -526,7 +526,7 @@ def get_tenant(self, tenant_id): """GetTenant. [Preview API] :param str tenant_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if tenant_id is not None: diff --git a/azure-devops/azure/devops/v4_1/identity/models.py b/azure-devops/azure/devops/v4_1/identity/models.py index 8ab273c7..c0f6a7de 100644 --- a/azure-devops/azure/devops/v4_1/identity/models.py +++ b/azure-devops/azure/devops/v4_1/identity/models.py @@ -13,7 +13,7 @@ class AccessTokenResult(Model): """AccessTokenResult. :param access_token: - :type access_token: :class:`JsonWebToken ` + :type access_token: :class:`JsonWebToken ` :param access_token_error: :type access_token_error: object :param authorization_id: @@ -23,7 +23,7 @@ class AccessTokenResult(Model): :param has_error: :type has_error: bool :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` + :type refresh_token: :class:`RefreshTokenGrant ` :param token_type: :type token_type: str :param valid_to: @@ -73,9 +73,9 @@ class ChangedIdentities(Model): """ChangedIdentities. :param identities: Changed Identities - :type identities: list of :class:`Identity ` + :type identities: list of :class:`Identity ` :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` + :type sequence_context: :class:`ChangedIdentitiesContext ` """ _attribute_map = { @@ -179,7 +179,7 @@ class GroupMembership(Model): :param active: :type active: bool :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param queried_id: @@ -207,7 +207,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -219,19 +219,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -277,7 +277,7 @@ class IdentityBatchInfo(Model): """IdentityBatchInfo. :param descriptors: - :type descriptors: list of :class:`str ` + :type descriptors: list of :class:`str ` :param identity_ids: :type identity_ids: list of str :param include_restricted_visibility: @@ -309,7 +309,7 @@ class IdentityScope(Model): """IdentityScope. :param administrators: - :type administrators: :class:`str ` + :type administrators: :class:`str ` :param id: :type id: str :param is_active: @@ -327,7 +327,7 @@ class IdentityScope(Model): :param securing_host_id: :type securing_host_id: str :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` """ _attribute_map = { @@ -367,7 +367,7 @@ class IdentitySelf(Model): :param id: :type id: str :param tenants: - :type tenants: list of :class:`TenantInfo ` + :type tenants: list of :class:`TenantInfo ` """ _attribute_map = { @@ -389,15 +389,15 @@ class IdentitySnapshot(Model): """IdentitySnapshot. :param groups: - :type groups: list of :class:`Identity ` + :type groups: list of :class:`Identity ` :param identity_ids: :type identity_ids: list of str :param memberships: - :type memberships: list of :class:`GroupMembership ` + :type memberships: list of :class:`GroupMembership ` :param scope_id: :type scope_id: str :param scopes: - :type scopes: list of :class:`IdentityScope ` + :type scopes: list of :class:`IdentityScope ` """ _attribute_map = { @@ -459,7 +459,7 @@ class RefreshTokenGrant(AuthorizationGrant): :param grant_type: :type grant_type: object :param jwt: - :type jwt: :class:`JsonWebToken ` + :type jwt: :class:`JsonWebToken ` """ _attribute_map = { @@ -502,7 +502,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -514,19 +514,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v4_1/licensing/licensing_client.py b/azure-devops/azure/devops/v4_1/licensing/licensing_client.py index cae35939..0fd15cc0 100644 --- a/azure-devops/azure/devops/v4_1/licensing/licensing_client.py +++ b/azure-devops/azure/devops/v4_1/licensing/licensing_client.py @@ -60,7 +60,7 @@ def get_client_rights(self, right_name=None, product_version=None, edition=None, :param bool include_certificate: :param str canary: :param str machine_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if right_name is not None: @@ -91,7 +91,7 @@ def assign_available_account_entitlement(self, user_id, dont_notify_user=None, o :param str user_id: The user to which to assign the entitilement :param bool dont_notify_user: :param str origin: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if user_id is not None: @@ -109,7 +109,7 @@ def assign_available_account_entitlement(self, user_id, dont_notify_user=None, o def get_account_entitlement(self): """GetAccountEntitlement. [Preview API] Gets the account entitlement of the current user it is mapped to _apis/licensing/entitlements/me so specifically is looking for the user of the request - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', @@ -137,11 +137,11 @@ def get_account_entitlements(self, top=None, skip=None): def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=None, origin=None): """AssignAccountEntitlementForUser. [Preview API] Assign an explicit account entitlement - :param :class:` ` body: The update model for the entitlement + :param :class:` ` body: The update model for the entitlement :param str user_id: The id of the user :param bool dont_notify_user: :param str origin: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -178,7 +178,7 @@ def get_account_entitlement_for_user(self, user_id, determine_rights=None): [Preview API] Get the entitlements for a user :param str user_id: The id of the user :param bool determine_rights: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -278,7 +278,7 @@ def get_extension_status_for_users(self, extension_id): def assign_extension_to_users(self, body): """AssignExtensionToUsers. [Preview API] Assigns the access to the given extension for a given list of users - :param :class:` ` body: The extension assignment details. + :param :class:` ` body: The extension assignment details. :rtype: [ExtensionOperationResult] """ content = self._serialize.body(body, 'ExtensionAssignment') @@ -320,7 +320,7 @@ def get_extension_license_data(self, extension_id): """GetExtensionLicenseData. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -334,7 +334,7 @@ def get_extension_license_data(self, extension_id): def register_extension_license(self, extension_license_data): """RegisterExtensionLicense. [Preview API] - :param :class:` ` extension_license_data: + :param :class:` ` extension_license_data: :rtype: bool """ content = self._serialize.body(extension_license_data, 'ExtensionLicenseData') @@ -360,7 +360,7 @@ def compute_extension_rights(self, ids): def get_extension_rights(self): """GetExtensionRights. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', diff --git a/azure-devops/azure/devops/v4_1/licensing/models.py b/azure-devops/azure/devops/v4_1/licensing/models.py index 27385f2b..b00cbae7 100644 --- a/azure-devops/azure/devops/v4_1/licensing/models.py +++ b/azure-devops/azure/devops/v4_1/licensing/models.py @@ -21,15 +21,15 @@ class AccountEntitlement(Model): :param last_accessed_date: Gets or sets the date of the user last sign-in to this account :type last_accessed_date: datetime :param license: - :type license: :class:`License ` + :type license: :class:`License ` :param origin: Licensing origin :type origin: object :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` + :type rights: :class:`AccountRights ` :param status: The status of the user in the account :type status: object :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` :param user_id: Gets the id of the user to which the license belongs :type user_id: str """ @@ -65,7 +65,7 @@ class AccountEntitlementUpdateModel(Model): """AccountEntitlementUpdateModel. :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` + :type license: :class:`License ` """ _attribute_map = { @@ -135,7 +135,7 @@ class AccountLicenseUsage(Model): :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) :type disabled_count: int :param license: - :type license: :class:`AccountUserLicense ` + :type license: :class:`AccountUserLicense ` :param pending_provisioned_count: Amount that will be purchased in the next billing cycle :type pending_provisioned_count: int :param provisioned_count: Amount that has been purchased @@ -397,7 +397,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -425,7 +425,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v4_1/location/location_client.py b/azure-devops/azure/devops/v4_1/location/location_client.py index 5f3fe109..e8f2df0d 100644 --- a/azure-devops/azure/devops/v4_1/location/location_client.py +++ b/azure-devops/azure/devops/v4_1/location/location_client.py @@ -31,7 +31,7 @@ def get_connection_data(self, connect_options=None, last_change_id=None, last_ch :param str connect_options: :param int last_change_id: Obsolete 32-bit LastChangeId :param long last_change_id64: Non-truncated 64-bit LastChangeId - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if connect_options is not None: @@ -52,7 +52,7 @@ def get_resource_area(self, area_id, organization_name=None, account_name=None): :param str area_id: :param str organization_name: :param str account_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if area_id is not None: @@ -74,7 +74,7 @@ def get_resource_area_by_host(self, area_id, host_id): [Preview API] :param str area_id: :param str host_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if area_id is not None: @@ -145,7 +145,7 @@ def get_service_definition(self, service_type, identifier, allow_fault_in=None, :param str identifier: :param bool allow_fault_in: If true, we will attempt to fault in a host instance mapping if in SPS. :param bool preview_fault_in: If true, we will calculate and return a host instance mapping, but not persist it. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if service_type is not None: @@ -182,7 +182,7 @@ def get_service_definitions(self, service_type=None): def update_service_definitions(self, service_definitions): """UpdateServiceDefinitions. [Preview API] - :param :class:` ` service_definitions: + :param :class:` ` service_definitions: """ content = self._serialize.body(service_definitions, 'VssJsonCollectionWrapper') self._send(http_method='PATCH', diff --git a/azure-devops/azure/devops/v4_1/location/models.py b/azure-devops/azure/devops/v4_1/location/models.py index fb08dbd7..2377352d 100644 --- a/azure-devops/azure/devops/v4_1/location/models.py +++ b/azure-devops/azure/devops/v4_1/location/models.py @@ -45,9 +45,9 @@ class ConnectionData(Model): """ConnectionData. :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` + :type authenticated_user: :class:`Identity ` :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` + :type authorized_user: :class:`Identity ` :param deployment_id: The id for the server. :type deployment_id: str :param instance_id: The instance id for this host. @@ -55,7 +55,7 @@ class ConnectionData(Model): :param last_user_access: The last user access for this instance. Null if not requested specifically. :type last_user_access: datetime :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` + :type location_service_data: :class:`LocationServiceData ` :param web_application_relative_directory: The virtual directory of the host we are talking to. :type web_application_relative_directory: str """ @@ -87,7 +87,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -99,19 +99,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -177,7 +177,7 @@ class LocationServiceData(Model): """LocationServiceData. :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` + :type access_mappings: list of :class:`AccessMapping ` :param client_cache_fresh: Data that the location service holds. :type client_cache_fresh: bool :param client_cache_time_to_live: The time to live on the location service cache. @@ -189,7 +189,7 @@ class LocationServiceData(Model): :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. :type last_change_id64: long :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` + :type service_definitions: list of :class:`ServiceDefinition ` :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) :type service_owner: str """ @@ -253,7 +253,7 @@ class ServiceDefinition(Model): :param inherit_level: :type inherit_level: object :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` + :type location_mappings: list of :class:`LocationMapping ` :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. :type max_version: str :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. @@ -263,7 +263,7 @@ class ServiceDefinition(Model): :param parent_service_type: :type parent_service_type: str :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param relative_path: :type relative_path: str :param relative_to_setting: @@ -331,7 +331,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -343,19 +343,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v4_1/maven/maven_client.py b/azure-devops/azure/devops/v4_1/maven/maven_client.py index e2a7f94d..fa895b04 100644 --- a/azure-devops/azure/devops/v4_1/maven/maven_client.py +++ b/azure-devops/azure/devops/v4_1/maven/maven_client.py @@ -54,7 +54,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed, group_id, artifact :param str group_id: :param str artifact_id: :param str version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed is not None: @@ -74,7 +74,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed, group_id, artifact def restore_package_version_from_recycle_bin(self, package_version_details, feed, group_id, artifact_id, version): """RestorePackageVersionFromRecycleBin. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed: :param str group_id: :param str artifact_id: @@ -104,7 +104,7 @@ def get_package_version(self, feed, group_id, artifact_id, version, show_deleted :param str artifact_id: :param str version: :param bool show_deleted: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed is not None: diff --git a/azure-devops/azure/devops/v4_1/maven/models.py b/azure-devops/azure/devops/v4_1/maven/models.py index 2b9b2581..07255d27 100644 --- a/azure-devops/azure/devops/v4_1/maven/models.py +++ b/azure-devops/azure/devops/v4_1/maven/models.py @@ -51,27 +51,27 @@ class MavenPackage(Model): :param artifact_id: :type artifact_id: str :param artifact_index: - :type artifact_index: :class:`ReferenceLink ` + :type artifact_index: :class:`ReferenceLink ` :param artifact_metadata: - :type artifact_metadata: :class:`ReferenceLink ` + :type artifact_metadata: :class:`ReferenceLink ` :param deleted_date: :type deleted_date: datetime :param files: - :type files: :class:`ReferenceLinks ` + :type files: :class:`ReferenceLinks ` :param group_id: :type group_id: str :param pom: - :type pom: :class:`MavenPomMetadata ` + :type pom: :class:`MavenPomMetadata ` :param requested_file: - :type requested_file: :class:`ReferenceLink ` + :type requested_file: :class:`ReferenceLink ` :param snapshot_metadata: - :type snapshot_metadata: :class:`ReferenceLink ` + :type snapshot_metadata: :class:`ReferenceLink ` :param version: :type version: str :param versions: - :type versions: :class:`ReferenceLinks ` + :type versions: :class:`ReferenceLinks ` :param versions_index: - :type versions_index: :class:`ReferenceLink ` + :type versions_index: :class:`ReferenceLink ` """ _attribute_map = { @@ -109,11 +109,11 @@ class MavenPackagesBatchRequest(Model): """MavenPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MavenMinimalPackageDetails ` + :type packages: list of :class:`MavenMinimalPackageDetails ` """ _attribute_map = { @@ -161,7 +161,7 @@ class MavenPomBuild(Model): """MavenPomBuild. :param plugins: - :type plugins: list of :class:`Plugin ` + :type plugins: list of :class:`Plugin ` """ _attribute_map = { @@ -177,7 +177,7 @@ class MavenPomCi(Model): """MavenPomCi. :param notifiers: - :type notifiers: list of :class:`MavenPomCiNotifier ` + :type notifiers: list of :class:`MavenPomCiNotifier ` :param system: :type system: str :param url: @@ -237,7 +237,7 @@ class MavenPomDependencyManagement(Model): """MavenPomDependencyManagement. :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` """ _attribute_map = { @@ -339,27 +339,27 @@ class MavenPomMetadata(MavenPomGav): :param version: :type version: str :param build: - :type build: :class:`MavenPomBuild ` + :type build: :class:`MavenPomBuild ` :param ci_management: - :type ci_management: :class:`MavenPomCi ` + :type ci_management: :class:`MavenPomCi ` :param contributors: - :type contributors: list of :class:`MavenPomPerson ` + :type contributors: list of :class:`MavenPomPerson ` :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` :param dependency_management: - :type dependency_management: :class:`MavenPomDependencyManagement ` + :type dependency_management: :class:`MavenPomDependencyManagement ` :param description: :type description: str :param developers: - :type developers: list of :class:`MavenPomPerson ` + :type developers: list of :class:`MavenPomPerson ` :param inception_year: :type inception_year: str :param issue_management: - :type issue_management: :class:`MavenPomIssueManagement ` + :type issue_management: :class:`MavenPomIssueManagement ` :param licenses: - :type licenses: list of :class:`MavenPomLicense ` + :type licenses: list of :class:`MavenPomLicense ` :param mailing_lists: - :type mailing_lists: list of :class:`MavenPomMailingList ` + :type mailing_lists: list of :class:`MavenPomMailingList ` :param model_version: :type model_version: str :param modules: @@ -367,17 +367,17 @@ class MavenPomMetadata(MavenPomGav): :param name: :type name: str :param organization: - :type organization: :class:`MavenPomOrganization ` + :type organization: :class:`MavenPomOrganization ` :param packaging: :type packaging: str :param parent: - :type parent: :class:`MavenPomParent ` + :type parent: :class:`MavenPomParent ` :param prerequisites: :type prerequisites: dict :param properties: :type properties: dict :param scm: - :type scm: :class:`MavenPomScm ` + :type scm: :class:`MavenPomScm ` :param url: :type url: str """ @@ -571,7 +571,7 @@ class Package(Model): """Package. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted :type deleted_date: datetime :param id: @@ -613,7 +613,7 @@ class Plugin(MavenPomGav): :param version: :type version: str :param configuration: - :type configuration: :class:`PluginConfiguration ` + :type configuration: :class:`PluginConfiguration ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py b/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py index ad5cc5ee..7430f4af 100644 --- a/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py +++ b/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def add_group_entitlement(self, group_entitlement, rule_option=None): """AddGroupEntitlement. [Preview API] Create a group entitlement with license rule, extension rule. - :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups + :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be created and applied to it’s members (default option) or just be tested - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if rule_option is not None: @@ -49,7 +49,7 @@ def delete_group_entitlement(self, group_id, rule_option=None, remove_group_memb :param str group_id: ID of the group to delete. :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be deleted and the changes are applied to it’s members (default option) or just be tested :param bool remove_group_membership: Optional parameter that specifies whether the group with the given ID should be removed from all other groups - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -70,7 +70,7 @@ def get_group_entitlement(self, group_id): """GetGroupEntitlement. [Preview API] Get a group entitlement. :param str group_id: ID of the group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -94,10 +94,10 @@ def get_group_entitlements(self): def update_group_entitlement(self, document, group_id, rule_option=None): """UpdateGroupEntitlement. [Preview API] Update entitlements (License Rule, Extensions Rule, Project memberships etc.) for a group. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. :param str group_id: ID of the group. :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be updated and the changes are applied to it’s members (default option) or just be tested - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -137,7 +137,7 @@ def get_group_members(self, group_id, max_results=None, paging_token=None): :param str group_id: Id of the Group. :param int max_results: Maximum number of results to retrieve. :param str paging_token: Paging Token from the previous page fetched. If the 'pagingToken' is null, the results would be fetched from the begining of the Members List. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -173,8 +173,8 @@ def remove_member_from_group(self, group_id, member_id): def add_user_entitlement(self, user_entitlement): """AddUserEntitlement. [Preview API] Add a user, assign license and extensions and make them a member of a project group in an account. - :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. - :rtype: :class:` ` + :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. + :rtype: :class:` ` """ content = self._serialize.body(user_entitlement, 'UserEntitlement') response = self._send(http_method='POST', @@ -210,9 +210,9 @@ def get_user_entitlements(self, top=None, skip=None, filter=None, select=None): def update_user_entitlements(self, document, do_not_send_invite_for_new_users=None): """UpdateUserEntitlements. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. :param bool do_not_send_invite_for_new_users: Whether to send email invites to new users or not - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if do_not_send_invite_for_new_users is not None: @@ -243,7 +243,7 @@ def get_user_entitlement(self, user_id): """GetUserEntitlement. [Preview API] Get User Entitlement for a user. :param str user_id: ID of the user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -257,9 +257,9 @@ def get_user_entitlement(self, user_id): def update_user_entitlement(self, document, user_id): """UpdateUserEntitlement. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for a user. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. :param str user_id: ID of the user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -277,7 +277,7 @@ def get_users_summary(self, select=None): """GetUsersSummary. [Preview API] Get summary of Licenses, Extension, Projects, Groups and their assignments in the collection. :param str select: Comma (",") separated list of properties to select. Supported property names are {AccessLevels, Licenses, Extensions, Projects, Groups}. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if select is not None: diff --git a/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py b/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py index 74f9472e..49c3672b 100644 --- a/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py +++ b/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py @@ -101,7 +101,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -149,19 +149,19 @@ class GroupEntitlement(Model): """GroupEntitlement. :param extension_rules: Extension Rules. - :type extension_rules: list of :class:`Extension ` + :type extension_rules: list of :class:`Extension ` :param group: Member reference. - :type group: :class:`GraphGroup ` + :type group: :class:`GraphGroup ` :param id: The unique identifier which matches the Id of the GraphMember. :type id: str :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). :type last_executed: datetime :param license_rule: License Rule. - :type license_rule: :class:`AccessLevel ` + :type license_rule: :class:`AccessLevel ` :param members: Group members. Only used when creating a new group. - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` :param project_entitlements: Relation between a project and the member's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param status: The status of the group rule. :type status: object """ @@ -199,7 +199,7 @@ class GroupOperationResult(BaseOperationResult): :param group_id: Identifier of the Group being acted upon :type group_id: str :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` + :type result: :class:`GroupEntitlement ` """ _attribute_map = { @@ -219,9 +219,9 @@ class GroupOption(Model): """GroupOption. :param access_level: Access Level - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param group: Group - :type group: :class:`Group ` + :type group: :class:`Group ` """ _attribute_map = { @@ -269,7 +269,7 @@ class MemberEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` """ _attribute_map = { @@ -321,7 +321,7 @@ class OperationResult(Model): :param member_id: Identifier of the Member being acted upon. :type member_id: str :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`MemberEntitlement ` + :type result: :class:`MemberEntitlement ` """ _attribute_map = { @@ -345,7 +345,7 @@ class PagedGraphMemberList(Model): :param continuation_token: :type continuation_token: str :param members: - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` """ _attribute_map = { @@ -365,13 +365,13 @@ class ProjectEntitlement(Model): :param assignment_source: Assignment Source (e.g. Group or Unknown). :type assignment_source: object :param group: Project Group (e.g. Contributor, Reader etc.) - :type group: :class:`Group ` + :type group: :class:`Group ` :param is_project_permission_inherited: Whether the user is inheriting permissions to a project through a VSTS or AAD group membership. :type is_project_permission_inherited: bool :param project_ref: Project Ref - :type project_ref: :class:`ProjectRef ` + :type project_ref: :class:`ProjectRef ` :param team_refs: Team Ref. - :type team_refs: list of :class:`TeamRef ` + :type team_refs: list of :class:`TeamRef ` """ _attribute_map = { @@ -479,19 +479,19 @@ class UserEntitlement(Model): """UserEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` """ _attribute_map = { @@ -531,7 +531,7 @@ class UserEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`UserEntitlementOperationResult ` + :type results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -559,7 +559,7 @@ class UserEntitlementOperationResult(Model): :param is_success: Success status of the operation. :type is_success: bool :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`UserEntitlement ` + :type result: :class:`UserEntitlement ` :param user_id: Identifier of the Member being acted upon. :type user_id: str """ @@ -585,7 +585,7 @@ class UserEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` """ _attribute_map = { @@ -603,15 +603,15 @@ class UsersSummary(Model): """UsersSummary. :param available_access_levels: Available Access Levels. - :type available_access_levels: list of :class:`AccessLevel ` + :type available_access_levels: list of :class:`AccessLevel ` :param extensions: Summary of Extensions in the account. - :type extensions: list of :class:`ExtensionSummaryData ` + :type extensions: list of :class:`ExtensionSummaryData ` :param group_options: Group Options. - :type group_options: list of :class:`GroupOption ` + :type group_options: list of :class:`GroupOption ` :param licenses: Summary of Licenses in the Account. - :type licenses: list of :class:`LicenseSummaryData ` + :type licenses: list of :class:`LicenseSummaryData ` :param project_refs: Summary of Projects in the Account. - :type project_refs: list of :class:`ProjectRef ` + :type project_refs: list of :class:`ProjectRef ` """ _attribute_map = { @@ -687,7 +687,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -739,7 +739,7 @@ class GroupEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`GroupOperationResult ` + :type results: list of :class:`GroupOperationResult ` """ _attribute_map = { @@ -819,21 +819,21 @@ class MemberEntitlement(UserEntitlement): """MemberEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` :param member: Member reference - :type member: :class:`GraphMember ` + :type member: :class:`GraphMember ` """ _attribute_map = { @@ -868,7 +868,7 @@ class MemberEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful :type have_results_succeeded: bool :param results: List of results for each operation - :type results: list of :class:`OperationResult ` + :type results: list of :class:`OperationResult ` """ _attribute_map = { @@ -894,9 +894,9 @@ class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` + :type operation_results: list of :class:`OperationResult ` """ _attribute_map = { @@ -916,9 +916,9 @@ class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` + :type operation_result: :class:`OperationResult ` """ _attribute_map = { @@ -938,9 +938,9 @@ class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_results: List of results for each operation. - :type operation_results: list of :class:`UserEntitlementOperationResult ` + :type operation_results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -960,9 +960,9 @@ class UserEntitlementsPostResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_result: Operation result. - :type operation_result: :class:`UserEntitlementOperationResult ` + :type operation_result: :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -980,7 +980,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1032,7 +1032,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1084,7 +1084,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v4_1/notification/models.py b/azure-devops/azure/devops/v4_1/notification/models.py index 2aa66c74..7aeb0069 100644 --- a/azure-devops/azure/devops/v4_1/notification/models.py +++ b/azure-devops/azure/devops/v4_1/notification/models.py @@ -35,7 +35,7 @@ class BatchNotificationOperation(Model): :param notification_operation: :type notification_operation: object :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` """ _attribute_map = { @@ -173,9 +173,9 @@ class ExpressionFilterModel(Model): """ExpressionFilterModel. :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` + :type clauses: list of :class:`ExpressionFilterClause ` :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` + :type groups: list of :class:`ExpressionFilterGroup ` :param max_group_level: Max depth of the Subscription tree :type max_group_level: int """ @@ -197,7 +197,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -225,7 +225,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -291,7 +291,7 @@ class INotificationDiagnosticLog(Model): :param log_type: :type log_type: str :param messages: - :type messages: list of :class:`NotificationDiagnosticLogMessage ` + :type messages: list of :class:`NotificationDiagnosticLogMessage ` :param properties: :type properties: dict :param source: @@ -355,7 +355,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -365,7 +365,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -411,7 +411,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -493,7 +493,7 @@ class NotificationEventField(Model): """NotificationEventField. :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` + :type field_type: :class:`NotificationEventFieldType ` :param id: Gets or sets the unique identifier of this field. :type id: str :param name: Gets or sets the name of this field. @@ -547,13 +547,13 @@ class NotificationEventFieldType(Model): :param id: Gets or sets the unique identifier of this field type. :type id: str :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` + :type operator_constraints: list of :class:`OperatorConstraint ` :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` + :type operators: list of :class:`NotificationEventFieldOperator ` :param subscription_field_type: :type subscription_field_type: object :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` + :type value: :class:`ValueDefinition ` """ _attribute_map = { @@ -579,7 +579,7 @@ class NotificationEventPublisher(Model): :param id: :type id: str :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` + :type subscription_management_info: :class:`SubscriptionManagement ` :param url: :type url: str """ @@ -625,13 +625,13 @@ class NotificationEventType(Model): """NotificationEventType. :param category: - :type category: :class:`NotificationEventTypeCategory ` + :type category: :class:`NotificationEventTypeCategory ` :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa :type color: str :param custom_subscriptions_allowed: :type custom_subscriptions_allowed: bool :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` + :type event_publisher: :class:`NotificationEventPublisher ` :param fields: :type fields: dict :param has_initiator: @@ -643,7 +643,7 @@ class NotificationEventType(Model): :param name: Gets or sets the name of this event definition. :type name: str :param roles: - :type roles: list of :class:`NotificationEventRole ` + :type roles: list of :class:`NotificationEventRole ` :param supported_scopes: Gets or sets the scopes that this event type supports :type supported_scopes: list of str :param url: Gets or sets the rest end point to get this event type details (fields, fields types) @@ -735,7 +735,7 @@ class NotificationReason(Model): :param notification_reason_type: :type notification_reason_type: object :param target_identities: - :type target_identities: list of :class:`IdentityRef ` + :type target_identities: list of :class:`IdentityRef ` """ _attribute_map = { @@ -777,7 +777,7 @@ class NotificationStatistic(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -801,7 +801,7 @@ class NotificationStatisticsQuery(Model): """NotificationStatisticsQuery. :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` """ _attribute_map = { @@ -827,7 +827,7 @@ class NotificationStatisticsQueryConditions(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -901,41 +901,41 @@ class NotificationSubscription(Model): """NotificationSubscription. :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param diagnostics: Diagnostics for this subscription. - :type diagnostics: :class:`SubscriptionDiagnostics ` + :type diagnostics: :class:`SubscriptionDiagnostics ` :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts :type extended_properties: dict :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Read-only indicators that further describe the subscription. :type flags: object :param id: Subscription identifier. :type id: str :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. :type modified_date: datetime :param permissions: The permissions the user have for this subscriptions. :type permissions: object :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. :type status: object :param status_message: Message that provides more details about the status of the subscription. :type status_message: str :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: REST API URL of the subscriotion. :type url: str :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -985,15 +985,15 @@ class NotificationSubscriptionCreateParameters(Model): """NotificationSubscriptionCreateParameters. :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` """ _attribute_map = { @@ -1019,11 +1019,11 @@ class NotificationSubscriptionTemplate(Model): :param description: :type description: str :param filter: - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param id: :type id: str :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` + :type notification_event_information: :class:`NotificationEventType ` :param type: :type type: object """ @@ -1049,21 +1049,21 @@ class NotificationSubscriptionUpdateParameters(Model): """NotificationSubscriptionUpdateParameters. :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Updated status for the subscription. Typically used to enable or disable a subscription. :type status: object :param status_message: Optional message that provides more details about the updated status. :type status_message: str :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1169,11 +1169,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1195,7 +1195,7 @@ class SubscriptionEvaluationRequest(Model): :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date :type min_events_created_date: datetime :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` """ _attribute_map = { @@ -1215,11 +1215,11 @@ class SubscriptionEvaluationResult(Model): :param evaluation_job_status: Subscription evaluation job status :type evaluation_job_status: object :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` + :type events: :class:`EventsEvaluationResult ` :param id: The requestId which is the subscription evaluation jobId :type id: str :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` + :type notifications: :class:`NotificationsEvaluationResult ` """ _attribute_map = { @@ -1289,7 +1289,7 @@ class SubscriptionQuery(Model): """SubscriptionQuery. :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` + :type conditions: list of :class:`SubscriptionQueryCondition ` :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. :type query_flags: object """ @@ -1309,7 +1309,7 @@ class SubscriptionQueryCondition(Model): """SubscriptionQueryCondition. :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Flags to specify the the type subscriptions to query for. :type flags: object :param scope: Scope that matching subscriptions must have. @@ -1410,11 +1410,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { @@ -1450,7 +1450,7 @@ class ValueDefinition(Model): """ValueDefinition. :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` + :type data_source: list of :class:`InputValue ` :param end_point: Gets or sets the rest end point. :type end_point: str :param result_template: Gets or sets the result template. @@ -1474,7 +1474,7 @@ class VssNotificationEvent(Model): """VssNotificationEvent. :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` + :type actors: list of :class:`EventActor ` :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. :type artifact_uris: list of str :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. @@ -1482,7 +1482,7 @@ class VssNotificationEvent(Model): :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. :type event_type: str :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` + :type scopes: list of :class:`EventScope ` """ _attribute_map = { @@ -1539,7 +1539,7 @@ class FieldInputValues(InputValues): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1549,7 +1549,7 @@ class FieldInputValues(InputValues): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` :param operators: :type operators: str """ @@ -1578,7 +1578,7 @@ class FieldValuesQuery(InputValuesQuery): :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object :param input_values: - :type input_values: list of :class:`FieldInputValues ` + :type input_values: list of :class:`FieldInputValues ` :param scope: :type scope: str """ diff --git a/azure-devops/azure/devops/v4_1/notification/notification_client.py b/azure-devops/azure/devops/v4_1/notification/notification_client.py index 03ae1167..58c162ca 100644 --- a/azure-devops/azure/devops/v4_1/notification/notification_client.py +++ b/azure-devops/azure/devops/v4_1/notification/notification_client.py @@ -55,7 +55,7 @@ def get_subscription_diagnostics(self, subscription_id): """GetSubscriptionDiagnostics. [Preview API] :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -69,9 +69,9 @@ def get_subscription_diagnostics(self, subscription_id): def update_subscription_diagnostics(self, update_parameters, subscription_id): """UpdateSubscriptionDiagnostics. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -87,8 +87,8 @@ def update_subscription_diagnostics(self, update_parameters, subscription_id): def publish_event(self, notification_event): """PublishEvent. [Preview API] Publish an event. - :param :class:` ` notification_event: - :rtype: :class:` ` + :param :class:` ` notification_event: + :rtype: :class:` ` """ content = self._serialize.body(notification_event, 'VssNotificationEvent') response = self._send(http_method='POST', @@ -101,7 +101,7 @@ def get_event_type(self, event_type): """GetEventType. [Preview API] Get a specific event type. :param str event_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if event_type is not None: @@ -131,7 +131,7 @@ def get_subscriber(self, subscriber_id): """GetSubscriber. [Preview API] :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: @@ -145,9 +145,9 @@ def get_subscriber(self, subscriber_id): def update_subscriber(self, update_parameters, subscriber_id): """UpdateSubscriber. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: @@ -163,7 +163,7 @@ def update_subscriber(self, update_parameters, subscriber_id): def query_subscriptions(self, subscription_query): """QuerySubscriptions. [Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions. - :param :class:` ` subscription_query: + :param :class:` ` subscription_query: :rtype: [NotificationSubscription] """ content = self._serialize.body(subscription_query, 'SubscriptionQuery') @@ -176,8 +176,8 @@ def query_subscriptions(self, subscription_query): def create_subscription(self, create_parameters): """CreateSubscription. [Preview API] Create a new subscription. - :param :class:` ` create_parameters: - :rtype: :class:` ` + :param :class:` ` create_parameters: + :rtype: :class:` ` """ content = self._serialize.body(create_parameters, 'NotificationSubscriptionCreateParameters') response = self._send(http_method='POST', @@ -204,7 +204,7 @@ def get_subscription(self, subscription_id, query_flags=None): [Preview API] Get a notification subscription by its ID. :param str subscription_id: :param str query_flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -244,9 +244,9 @@ def list_subscriptions(self, target_id=None, ids=None, query_flags=None): def update_subscription(self, update_parameters, subscription_id): """UpdateSubscription. [Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more. - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -272,10 +272,10 @@ def get_subscription_templates(self): def update_subscription_user_settings(self, user_settings, subscription_id, user_id): """UpdateSubscriptionUserSettings. [Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. - :param :class:` ` user_settings: + :param :class:` ` user_settings: :param str subscription_id: :param str user_id: ID of the user - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: diff --git a/azure-devops/azure/devops/v4_1/npm/models.py b/azure-devops/azure/devops/v4_1/npm/models.py index ef0d58ae..660439b8 100644 --- a/azure-devops/azure/devops/v4_1/npm/models.py +++ b/azure-devops/azure/devops/v4_1/npm/models.py @@ -73,11 +73,11 @@ class NpmPackagesBatchRequest(Model): """NpmPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -137,7 +137,7 @@ class Package(Model): """Package. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deprecate_message: Deprecated message, if any, for the package :type deprecate_message: str :param id: @@ -147,7 +147,7 @@ class Package(Model): :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` + :type source_chain: list of :class:`UpstreamSourceInfo ` :param unpublished_date: If and when the package was deleted :type unpublished_date: datetime :param version: The version of the package @@ -183,7 +183,7 @@ class PackageVersionDetails(Model): :param deprecate_message: Indicates the deprecate message of a package version :type deprecate_message: str :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/npm/npm_client.py b/azure-devops/azure/devops/v4_1/npm/npm_client.py index 9e5f4c28..915622d8 100644 --- a/azure-devops/azure/devops/v4_1/npm/npm_client.py +++ b/azure-devops/azure/devops/v4_1/npm/npm_client.py @@ -83,7 +83,7 @@ def get_content_unscoped_package(self, feed_id, package_name, package_version, * def update_packages(self, batch_request, feed_id): """UpdatePackages. [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. - :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. :param str feed_id: Feed which contains the packages to update. """ route_values = {} @@ -180,7 +180,7 @@ def get_scoped_package_version_metadata_from_recycle_bin(self, feed_id, package_ :param str package_scope: :param str unscoped_package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -200,7 +200,7 @@ def get_scoped_package_version_metadata_from_recycle_bin(self, feed_id, package_ def restore_scoped_package_version_from_recycle_bin(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): """RestoreScopedPackageVersionFromRecycleBin. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_scope: :param str unscoped_package_name: @@ -247,7 +247,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p :param str feed_id: :param str package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -265,7 +265,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_name: :param str package_version: @@ -291,7 +291,7 @@ def get_scoped_package_info(self, feed_id, package_scope, unscoped_package_name, :param str package_scope: :param str unscoped_package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -315,7 +315,7 @@ def unpublish_scoped_package(self, feed_id, package_scope, unscoped_package_name :param str package_scope: :param str unscoped_package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -335,12 +335,12 @@ def unpublish_scoped_package(self, feed_id, package_scope, unscoped_package_name def update_scoped_package(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): """UpdateScopedPackage. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_scope: :param str unscoped_package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -365,7 +365,7 @@ def get_package_info(self, feed_id, package_name, package_version): :param str feed_id: :param str package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -386,7 +386,7 @@ def unpublish_package(self, feed_id, package_name, package_version): :param str feed_id: :param str package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -404,11 +404,11 @@ def unpublish_package(self, feed_id, package_name, package_version): def update_package(self, package_version_details, feed_id, package_name, package_version): """UpdatePackage. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: diff --git a/azure-devops/azure/devops/v4_1/nuGet/models.py b/azure-devops/azure/devops/v4_1/nuGet/models.py index 9b81cffa..1d6f623f 100644 --- a/azure-devops/azure/devops/v4_1/nuGet/models.py +++ b/azure-devops/azure/devops/v4_1/nuGet/models.py @@ -73,11 +73,11 @@ class NuGetPackagesBatchRequest(Model): """NuGetPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -137,7 +137,7 @@ class Package(Model): """Package. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted :type deleted_date: datetime :param id: @@ -175,7 +175,7 @@ class PackageVersionDetails(Model): :param listed: Indicates the listing state of a package :type listed: bool :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py b/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py index 77f06d14..590d2886 100644 --- a/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py +++ b/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py @@ -54,7 +54,7 @@ def download_package(self, feed_id, package_name, package_version, source_protoc def update_package_versions(self, batch_request, feed_id): """UpdatePackageVersions. [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. - :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. :param str feed_id: Feed which contains the packages to update. """ route_values = {} @@ -92,7 +92,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p :param str feed_id: :param str package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -110,7 +110,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_name: :param str package_version: @@ -135,7 +135,7 @@ def delete_package_version(self, feed_id, package_name, package_version): :param str feed_id: :param str package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -157,7 +157,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet :param str package_name: :param str package_version: :param bool show_deleted: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -179,7 +179,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_name: :param str package_version: diff --git a/azure-devops/azure/devops/v4_1/operations/models.py b/azure-devops/azure/devops/v4_1/operations/models.py index f5ad25ff..9bc77538 100644 --- a/azure-devops/azure/devops/v4_1/operations/models.py +++ b/azure-devops/azure/devops/v4_1/operations/models.py @@ -81,13 +81,13 @@ class Operation(OperationReference): :param url: URL to get the full operation object. :type url: str :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_message: Detailed messaged about the status of an operation. :type detailed_message: str :param result_message: Result message for an operation. :type result_message: str :param result_url: URL to the operation result. - :type result_url: :class:`OperationResultReference ` + :type result_url: :class:`OperationResultReference ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/operations/operations_client.py b/azure-devops/azure/devops/v4_1/operations/operations_client.py index e4528977..9a1bcd7b 100644 --- a/azure-devops/azure/devops/v4_1/operations/operations_client.py +++ b/azure-devops/azure/devops/v4_1/operations/operations_client.py @@ -30,7 +30,7 @@ def get_operation(self, operation_id, plugin_id=None): Gets an operation from the the operationId using the given pluginId. :param str operation_id: The ID for the operation. :param str plugin_id: The ID for the plugin. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if operation_id is not None: diff --git a/azure-devops/azure/devops/v4_1/policy/models.py b/azure-devops/azure/devops/v4_1/policy/models.py index 5fde3adf..4efbb429 100644 --- a/azure-devops/azure/devops/v4_1/policy/models.py +++ b/azure-devops/azure/devops/v4_1/policy/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -41,7 +41,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -99,7 +99,7 @@ class PolicyConfigurationRef(Model): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -121,15 +121,15 @@ class PolicyEvaluationRecord(Model): """PolicyEvaluationRecord. :param _links: Links to other related objects - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies the target of a policy evaluation. :type artifact_id: str :param completed_date: Time when this policy finished evaluating on this pull request. :type completed_date: datetime :param configuration: Contains all configuration data for the policy which is being evaluated. - :type configuration: :class:`PolicyConfiguration ` + :type configuration: :class:`PolicyConfiguration ` :param context: Internal context data of this policy evaluation. - :type context: :class:`object ` + :type context: :class:`object ` :param evaluation_id: Guid which uniquely identifies this evaluation record (one policy running on one pull request). :type evaluation_id: str :param started_date: Time when this policy was first evaluated on this pull request. @@ -207,7 +207,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. @@ -232,15 +232,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. :type revision: int :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The date and time when the policy was created. :type created_date: datetime :param is_blocking: Indicates whether the policy is blocking. @@ -250,7 +250,7 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param is_enabled: Indicates whether the policy is enabled. :type is_enabled: bool :param settings: The policy configuration settings. - :type settings: :class:`object ` + :type settings: :class:`object ` """ _attribute_map = { @@ -288,7 +288,7 @@ class PolicyType(PolicyTypeRef): :param url: The URL where the policy type can be retrieved. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Detailed description of the policy type. :type description: str """ diff --git a/azure-devops/azure/devops/v4_1/policy/policy_client.py b/azure-devops/azure/devops/v4_1/policy/policy_client.py index 18f5bdfb..d476afb6 100644 --- a/azure-devops/azure/devops/v4_1/policy/policy_client.py +++ b/azure-devops/azure/devops/v4_1/policy/policy_client.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def create_policy_configuration(self, configuration, project, configuration_id=None): """CreatePolicyConfiguration. Create a policy configuration of a given policy type. - :param :class:` ` configuration: The policy configuration to create. + :param :class:` ` configuration: The policy configuration to create. :param str project: Project ID or project name :param int configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -67,7 +67,7 @@ def get_policy_configuration(self, project, configuration_id): Get a policy configuration by its ID. :param str project: Project ID or project name :param int configuration_id: ID of the policy configuration - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -106,10 +106,10 @@ def get_policy_configurations(self, project, scope=None, policy_type=None): def update_policy_configuration(self, configuration, project, configuration_id): """UpdatePolicyConfiguration. Update a policy configuration by its ID. - :param :class:` ` configuration: The policy configuration to update. + :param :class:` ` configuration: The policy configuration to update. :param str project: Project ID or project name :param int configuration_id: ID of the existing policy configuration to be updated. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -129,7 +129,7 @@ def get_policy_evaluation(self, project, evaluation_id): [Preview API] Gets the present evaluation state of a policy. :param str project: Project ID or project name :param str evaluation_id: ID of the policy evaluation to be retrieved. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -147,7 +147,7 @@ def requeue_policy_evaluation(self, project, evaluation_id): [Preview API] Requeue the policy evaluation. :param str project: Project ID or project name :param str evaluation_id: ID of the policy evaluation to be retrieved. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -195,7 +195,7 @@ def get_policy_configuration_revision(self, project, configuration_id, revision_ :param str project: Project ID or project name :param int configuration_id: The policy configuration ID. :param int revision_id: The revision ID. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -241,7 +241,7 @@ def get_policy_type(self, project, type_id): Retrieve a specific policy type by ID. :param str project: Project ID or project name :param str type_id: The policy ID. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/profile/models.py b/azure-devops/azure/devops/v4_1/profile/models.py index 817392ae..da7f12fd 100644 --- a/azure-devops/azure/devops/v4_1/profile/models.py +++ b/azure-devops/azure/devops/v4_1/profile/models.py @@ -149,7 +149,7 @@ class Profile(Model): """Profile. :param application_container: - :type application_container: :class:`AttributesContainer ` + :type application_container: :class:`AttributesContainer ` :param core_attributes: :type core_attributes: dict :param core_revision: @@ -189,7 +189,7 @@ class ProfileAttributeBase(Model): """ProfileAttributeBase. :param descriptor: - :type descriptor: :class:`AttributeDescriptor ` + :type descriptor: :class:`AttributeDescriptor ` :param revision: :type revision: int :param time_stamp: @@ -241,7 +241,7 @@ class ProfileRegions(Model): :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out :type opt_out_contact_consent_requirement_regions: list of str :param regions: List of country/regions - :type regions: list of :class:`ProfileRegion ` + :type regions: list of :class:`ProfileRegion ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/profile/profile_client.py b/azure-devops/azure/devops/v4_1/profile/profile_client.py index 9e58d261..c04ac57c 100644 --- a/azure-devops/azure/devops/v4_1/profile/profile_client.py +++ b/azure-devops/azure/devops/v4_1/profile/profile_client.py @@ -34,7 +34,7 @@ def get_profile(self, id, details=None, with_attributes=None, partition=None, co :param str partition: :param str core_attributes: :param bool force_refresh: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: diff --git a/azure-devops/azure/devops/v4_1/project_analysis/models.py b/azure-devops/azure/devops/v4_1/project_analysis/models.py index 18038c39..ad10ab75 100644 --- a/azure-devops/azure/devops/v4_1/project_analysis/models.py +++ b/azure-devops/azure/devops/v4_1/project_analysis/models.py @@ -102,7 +102,7 @@ class ProjectActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param project_id: :type project_id: str :param pull_requests_completed_count: @@ -142,9 +142,9 @@ class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` :param result_phase: :type result_phase: object :param url: @@ -177,7 +177,7 @@ class RepositoryActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param repository_id: :type repository_id: str """ @@ -207,7 +207,7 @@ class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param name: :type name: str :param result_phase: diff --git a/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py b/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py index b37fd827..7632bf7d 100644 --- a/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py +++ b/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py @@ -29,7 +29,7 @@ def get_project_language_analytics(self, project): """GetProjectLanguageAnalytics. [Preview API] :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -46,7 +46,7 @@ def get_project_activity_metrics(self, project, from_date, aggregation_type): :param str project: Project ID or project name :param datetime from_date: :param str aggregation_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -99,7 +99,7 @@ def get_repository_activity_metrics(self, project, repository_id, from_date, agg :param str repository_id: :param datetime from_date: :param str aggregation_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/security/models.py b/azure-devops/azure/devops/v4_1/security/models.py index 67305b91..76824770 100644 --- a/azure-devops/azure/devops/v4_1/security/models.py +++ b/azure-devops/azure/devops/v4_1/security/models.py @@ -17,9 +17,9 @@ class AccessControlEntry(Model): :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. :type deny: int :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` + :type extended_info: :class:`AceExtendedInformation ` """ _attribute_map = { @@ -155,7 +155,7 @@ class PermissionEvaluationBatch(Model): :param always_allow_administrators: :type always_allow_administrators: bool :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` + :type evaluations: list of :class:`PermissionEvaluation ` """ _attribute_map = { @@ -173,7 +173,7 @@ class SecurityNamespaceDescription(Model): """SecurityNamespaceDescription. :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` + :type actions: list of :class:`ActionDefinition ` :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. :type dataspace_category: str :param display_name: This localized name for this namespace. diff --git a/azure-devops/azure/devops/v4_1/security/security_client.py b/azure-devops/azure/devops/v4_1/security/security_client.py index 15fcb2c2..171605bd 100644 --- a/azure-devops/azure/devops/v4_1/security/security_client.py +++ b/azure-devops/azure/devops/v4_1/security/security_client.py @@ -51,7 +51,7 @@ def remove_access_control_entries(self, security_namespace_id, token=None, descr def set_access_control_entries(self, container, security_namespace_id): """SetAccessControlEntries. Add or update ACEs in the ACL for the provided token. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. - :param :class:` ` container: + :param :class:` ` container: :param str security_namespace_id: :rtype: [AccessControlEntry] """ @@ -121,7 +121,7 @@ def remove_access_control_lists(self, security_namespace_id, tokens=None, recurs def set_access_control_lists(self, access_control_lists, security_namespace_id): """SetAccessControlLists. Create one or more access control lists. - :param :class:` ` access_control_lists: + :param :class:` ` access_control_lists: :param str security_namespace_id: Security namespace identifier. """ route_values = {} @@ -137,8 +137,8 @@ def set_access_control_lists(self, access_control_lists, security_namespace_id): def has_permissions_batch(self, eval_batch): """HasPermissionsBatch. Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false. - :param :class:` ` eval_batch: The set of evaluation requests. - :rtype: :class:` ` + :param :class:` ` eval_batch: The set of evaluation requests. + :rtype: :class:` ` """ content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') response = self._send(http_method='POST', @@ -183,7 +183,7 @@ def remove_permission(self, security_namespace_id, permissions=None, token=None, :param int permissions: Permissions to remove. :param str token: Security token to remove permissions for. :param str descriptor: Identity descriptor of the user to remove permissions for. Defaults to the caller. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if security_namespace_id is not None: diff --git a/azure-devops/azure/devops/v4_1/service_endpoint/models.py b/azure-devops/azure/devops/v4_1/service_endpoint/models.py index 3995e8c7..46eed4fe 100644 --- a/azure-devops/azure/devops/v4_1/service_endpoint/models.py +++ b/azure-devops/azure/devops/v4_1/service_endpoint/models.py @@ -69,11 +69,11 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param name: :type name: str :param resource_url: @@ -111,7 +111,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -153,7 +153,7 @@ class DataSourceDetails(Model): :param data_source_url: Gets or sets the data source url. :type data_source_url: str :param headers: Gets or sets the request headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: Gets the parameters of data source. :type parameters: dict :param resource_url: Gets or sets the resource url of data source. @@ -227,7 +227,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -265,7 +265,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -297,7 +297,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -345,7 +345,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -423,11 +423,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -539,7 +539,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -549,7 +549,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -625,11 +625,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -643,9 +643,9 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -689,13 +689,13 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -721,7 +721,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: Gets or sets the authorization of service endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: Gets or sets the data of service endpoint. :type data: dict :param type: Gets or sets the type of service endpoint. @@ -749,13 +749,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`ServiceEndpointExecutionOwner ` + :type definition: :class:`ServiceEndpointExecutionOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`ServiceEndpointExecutionOwner ` + :type owner: :class:`ServiceEndpointExecutionOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -789,7 +789,7 @@ class ServiceEndpointExecutionOwner(Model): """ServiceEndpointExecutionOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Gets or sets the Id of service endpoint execution owner. :type id: int :param name: Gets or sets the name of service endpoint execution owner. @@ -813,7 +813,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -833,7 +833,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -853,11 +853,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: Gets or sets the data source details for the service endpoint request. - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -879,7 +879,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: Gets or sets the error message of the service endpoint request result. :type error_message: str :param result: Gets or sets the result of service endpoint request. - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: Gets or sets the status code of the service endpoint request result. :type status_code: object """ @@ -901,25 +901,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -971,7 +971,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. diff --git a/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py b/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py index 87fffa38..076f4045 100644 --- a/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py +++ b/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): """ExecuteServiceEndpointRequest. [Preview API] Proxy for a GET request defined by a service endpoint. - :param :class:` ` service_endpoint_request: Service endpoint request. + :param :class:` ` service_endpoint_request: Service endpoint request. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -51,9 +51,9 @@ def execute_service_endpoint_request(self, service_endpoint_request, project, en def create_service_endpoint(self, endpoint, project): """CreateServiceEndpoint. [Preview API] Create a service endpoint. - :param :class:` ` endpoint: Service endpoint to create. + :param :class:` ` endpoint: Service endpoint to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -87,7 +87,7 @@ def get_service_endpoint_details(self, project, endpoint_id): [Preview API] Get the service endpoint details. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -165,11 +165,11 @@ def get_service_endpoints_by_names(self, project, endpoint_names, type=None, aut def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): """UpdateServiceEndpoint. [Preview API] Update a service endpoint. - :param :class:` ` endpoint: Service endpoint to update. + :param :class:` ` endpoint: Service endpoint to update. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint to update. :param str operation: Operation for the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/service_hooks/models.py b/azure-devops/azure/devops/v4_1/service_hooks/models.py index cb2aa03f..20747e15 100644 --- a/azure-devops/azure/devops/v4_1/service_hooks/models.py +++ b/azure-devops/azure/devops/v4_1/service_hooks/models.py @@ -13,15 +13,15 @@ class Consumer(Model): """Consumer. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` + :type actions: list of :class:`ConsumerAction ` :param authentication_type: Gets or sets this consumer's authentication type. :type authentication_type: object :param description: Gets or sets this consumer's localized description. :type description: str :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :type external_configuration: :class:`ExternalConfigurationDescriptor ` :param id: Gets or sets this consumer's identifier. :type id: str :param image_url: Gets or sets this consumer's image URL, if any. @@ -29,7 +29,7 @@ class Consumer(Model): :param information_url: Gets or sets this consumer's information URL, if any. :type information_url: str :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this consumer's localized name. :type name: str :param url: The url for this resource @@ -69,7 +69,7 @@ class ConsumerAction(Model): """ConsumerAction. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. :type allow_resource_version_override: bool :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. @@ -79,7 +79,7 @@ class ConsumerAction(Model): :param id: Gets or sets this action's identifier. :type id: str :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this action's localized name. :type name: str :param supported_event_types: Gets or sets this action's supported event identifiers. @@ -123,13 +123,13 @@ class Event(Model): :param created_date: Gets or sets the UTC-based date and time that this event was created. :type created_date: datetime :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` + :type detailed_message: :class:`FormattedEventMessage ` :param event_type: Gets or sets the type of this event. :type event_type: str :param id: Gets or sets the unique identifier of this event. :type id: str :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` + :type message: :class:`FormattedEventMessage ` :param publisher_id: Gets or sets the identifier of the publisher that raised this event. :type publisher_id: str :param resource: Gets or sets the data associated with this event. @@ -139,7 +139,7 @@ class Event(Model): :param resource_version: Gets or sets the version of the data associated with this event. :type resource_version: str :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` + :type session_token: :class:`SessionToken ` """ _attribute_map = { @@ -177,7 +177,7 @@ class EventTypeDescriptor(Model): :param id: A unique id for the event type :type id: str :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: A localized friendly name for the event type :type name: str :param publisher_id: A unique id for the publisher of this event type @@ -261,7 +261,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -289,7 +289,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -367,11 +367,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -413,7 +413,7 @@ class InputFilter(Model): """InputFilter. :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` + :type conditions: list of :class:`InputFilterCondition ` """ _attribute_map = { @@ -527,7 +527,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -537,7 +537,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -583,7 +583,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -607,7 +607,7 @@ class Notification(Model): :param created_date: Gets or sets date and time that this result was created. :type created_date: datetime :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` + :type details: :class:`NotificationDetails ` :param event_id: The event id associated with this notification :type event_id: str :param id: The notification id @@ -667,7 +667,7 @@ class NotificationDetails(Model): :param error_message: Gets or sets this notification detail's error message. :type error_message: str :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` + :type event: :class:`Event ` :param event_type: Gets or sets this notification detail's event type. :type event_type: str :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) @@ -753,7 +753,7 @@ class NotificationsQuery(Model): """NotificationsQuery. :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` + :type associated_subscriptions: list of :class:`Subscription ` :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. :type include_details: bool :param max_created_date: Optional maximum date at which the notification was created @@ -767,7 +767,7 @@ class NotificationsQuery(Model): :param publisher_id: Optional publisher id to restrict the results to :type publisher_id: str :param results: Results from the query - :type results: list of :class:`Notification ` + :type results: list of :class:`Notification ` :param result_type: Optional notification result type to filter results to :type result_type: object :param status: Optional notification status to filter results to @@ -775,7 +775,7 @@ class NotificationsQuery(Model): :param subscription_ids: Optional list of subscription ids to restrict the results to :type subscription_ids: list of str :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` + :type summary: list of :class:`NotificationSummary ` """ _attribute_map = { @@ -813,7 +813,7 @@ class NotificationSummary(Model): """NotificationSummary. :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` + :type results: list of :class:`NotificationResultsSummaryDetail ` :param subscription_id: The subscription id associated with this notification :type subscription_id: str """ @@ -833,19 +833,19 @@ class Publisher(Model): """Publisher. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Gets this publisher's localized description. :type description: str :param id: Gets this publisher's identifier. :type id: str :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets this publisher's localized name. :type name: str :param service_instance_type: The service instance type of the first party publisher. :type service_instance_type: str :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` + :type supported_events: list of :class:`EventTypeDescriptor ` :param url: The url for this resource :type url: str """ @@ -879,13 +879,13 @@ class PublisherEvent(Model): :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. :type diagnostics: dict :param event: The event being published - :type event: :class:`Event ` + :type event: :class:`Event ` :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` + :type other_resource_versions: list of :class:`VersionedResource ` :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` + :type subscription: :class:`Subscription ` """ _attribute_map = { @@ -913,7 +913,7 @@ class PublishersQuery(Model): :param publisher_inputs: Filter for publisher inputs :type publisher_inputs: dict :param results: Results from the query - :type results: list of :class:`Publisher ` + :type results: list of :class:`Publisher ` """ _attribute_map = { @@ -1001,7 +1001,7 @@ class Subscription(Model): """Subscription. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param action_description: :type action_description: str :param consumer_action_id: @@ -1011,7 +1011,7 @@ class Subscription(Model): :param consumer_inputs: Consumer input values :type consumer_inputs: dict :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param event_description: @@ -1021,7 +1021,7 @@ class Subscription(Model): :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: :type modified_date: datetime :param probation_retries: @@ -1035,7 +1035,7 @@ class Subscription(Model): :param status: :type status: object :param subscriber: - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: :type url: str """ @@ -1089,11 +1089,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1117,15 +1117,15 @@ class SubscriptionsQuery(Model): :param consumer_id: Optional consumer id to restrict the results to (null for any) :type consumer_id: str :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` + :type consumer_input_filters: list of :class:`InputFilter ` :param event_type: Optional event type id to restrict the results to (null for any) :type event_type: str :param publisher_id: Optional publisher id to restrict the results to (null for any) :type publisher_id: str :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param results: Results from the query - :type results: list of :class:`Subscription ` + :type results: list of :class:`Subscription ` :param subscriber_id: Optional subscriber filter. :type subscriber_id: str """ @@ -1189,11 +1189,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py index fd5f6f00..3c2470bc 100644 --- a/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py +++ b/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py @@ -31,7 +31,7 @@ def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None :param str consumer_id: ID for a consumer. :param str consumer_action_id: ID for a consumerActionId. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -73,7 +73,7 @@ def get_consumer(self, consumer_id, publisher_id=None): Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. :param str consumer_id: ID for a consumer. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -107,7 +107,7 @@ def get_subscription_diagnostics(self, subscription_id): """GetSubscriptionDiagnostics. [Preview API] :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -121,9 +121,9 @@ def get_subscription_diagnostics(self, subscription_id): def update_subscription_diagnostics(self, update_parameters, subscription_id): """UpdateSubscriptionDiagnostics. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -141,7 +141,7 @@ def get_event_type(self, publisher_id, event_type_id): Get a specific event type. :param str publisher_id: ID for a publisher. :param str event_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -174,7 +174,7 @@ def get_notification(self, subscription_id, notification_id): Get a specific notification for a subscription. :param str subscription_id: ID for a subscription. :param int notification_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -216,8 +216,8 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu def query_notifications(self, query): """QueryNotifications. Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') response = self._send(http_method='POST', @@ -228,9 +228,9 @@ def query_notifications(self, query): def query_input_values(self, input_values_query, publisher_id): """QueryInputValues. - :param :class:` ` input_values_query: + :param :class:` ` input_values_query: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -247,7 +247,7 @@ def get_publisher(self, publisher_id): """GetPublisher. Get a specific service hooks publisher. :param str publisher_id: ID for a publisher. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -271,8 +271,8 @@ def list_publishers(self): def query_publishers(self, query): """QueryPublishers. Query for service hook publishers. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') response = self._send(http_method='POST', @@ -284,8 +284,8 @@ def query_publishers(self, query): def create_subscription(self, subscription): """CreateSubscription. Create a subscription. - :param :class:` ` subscription: Subscription to be created. - :rtype: :class:` ` + :param :class:` ` subscription: Subscription to be created. + :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='POST', @@ -311,7 +311,7 @@ def get_subscription(self, subscription_id): """GetSubscription. Get a specific service hooks subscription. :param str subscription_id: ID for a subscription. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -349,9 +349,9 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. Update a subscription. ID for a subscription that you wish to update. - :param :class:` ` subscription: + :param :class:` ` subscription: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -367,8 +367,8 @@ def replace_subscription(self, subscription, subscription_id=None): def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. Query for service hook subscriptions. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') response = self._send(http_method='POST', @@ -380,9 +380,9 @@ def create_subscriptions_query(self, query): def create_test_notification(self, test_notification, use_real_data=None): """CreateTestNotification. Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. - :param :class:` ` test_notification: + :param :class:` ` test_notification: :param bool use_real_data: Only allow testing with real data in existing subscriptions. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if use_real_data is not None: diff --git a/azure-devops/azure/devops/v4_1/symbol/models.py b/azure-devops/azure/devops/v4_1/symbol/models.py index 4259cf69..98b1913d 100644 --- a/azure-devops/azure/devops/v4_1/symbol/models.py +++ b/azure-devops/azure/devops/v4_1/symbol/models.py @@ -15,7 +15,7 @@ class DebugEntryCreateBatch(Model): :param create_behavior: Defines what to do when a debug entry in the batch already exists. :type create_behavior: object :param debug_entries: The debug entries. - :type debug_entries: list of :class:`DebugEntry ` + :type debug_entries: list of :class:`DebugEntry ` """ _attribute_map = { @@ -65,7 +65,7 @@ class JsonBlobIdentifierWithBlocks(Model): """JsonBlobIdentifierWithBlocks. :param block_hashes: - :type block_hashes: list of :class:`JsonBlobBlockHash ` + :type block_hashes: list of :class:`JsonBlobBlockHash ` :param identifier_value: :type identifier_value: str """ @@ -127,9 +127,9 @@ class DebugEntry(ResourceBase): :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. :type url: str :param blob_details: - :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` + :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. - :type blob_identifier: :class:`JsonBlobIdentifier ` + :type blob_identifier: :class:`JsonBlobIdentifier ` :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. :type blob_uri: str :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. diff --git a/azure-devops/azure/devops/v4_1/symbol/symbol_client.py b/azure-devops/azure/devops/v4_1/symbol/symbol_client.py index 1465caed..3dda9736 100644 --- a/azure-devops/azure/devops/v4_1/symbol/symbol_client.py +++ b/azure-devops/azure/devops/v4_1/symbol/symbol_client.py @@ -59,8 +59,8 @@ def head_client(self): def create_requests(self, request_to_create): """CreateRequests. [Preview API] Create a new symbol request. - :param :class:` ` request_to_create: The symbol request to create. - :rtype: :class:` ` + :param :class:` ` request_to_create: The symbol request to create. + :rtype: :class:` ` """ content = self._serialize.body(request_to_create, 'Request') response = self._send(http_method='POST', @@ -72,7 +72,7 @@ def create_requests(self, request_to_create): def create_requests_request_id_debug_entries(self, batch, request_id, collection): """CreateRequestsRequestIdDebugEntries. [Preview API] Create debug entries for a symbol request as specified by its identifier. - :param :class:` ` batch: A batch that contains debug entries to create. + :param :class:` ` batch: A batch that contains debug entries to create. :param str request_id: The symbol request identifier. :param str collection: A valid debug entry collection name. Must be "debugentries". :rtype: [DebugEntry] @@ -95,7 +95,7 @@ def create_requests_request_id_debug_entries(self, batch, request_id, collection def create_requests_request_name_debug_entries(self, batch, request_name, collection): """CreateRequestsRequestNameDebugEntries. [Preview API] Create debug entries for a symbol request as specified by its name. - :param :class:` ` batch: A batch that contains debug entries to create. + :param :class:` ` batch: A batch that contains debug entries to create. :param str request_name: :param str collection: A valid debug entry collection name. Must be "debugentries". :rtype: [DebugEntry] @@ -151,7 +151,7 @@ def get_requests_request_id(self, request_id): """GetRequestsRequestId. [Preview API] Get a symbol request by request identifier. :param str request_id: The symbol request identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if request_id is not None: @@ -166,7 +166,7 @@ def get_requests_request_name(self, request_name): """GetRequestsRequestName. [Preview API] Get a symbol request by request name. :param str request_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if request_name is not None: @@ -180,9 +180,9 @@ def get_requests_request_name(self, request_name): def update_requests_request_id(self, update_request, request_id): """UpdateRequestsRequestId. [Preview API] Update a symbol request by request identifier. - :param :class:` ` update_request: The symbol request. + :param :class:` ` update_request: The symbol request. :param str request_id: The symbol request identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if request_id is not None: @@ -198,9 +198,9 @@ def update_requests_request_id(self, update_request, request_id): def update_requests_request_name(self, update_request, request_name): """UpdateRequestsRequestName. [Preview API] Update a symbol request by request name. - :param :class:` ` update_request: The symbol request. + :param :class:` ` update_request: The symbol request. :param str request_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if request_name is not None: diff --git a/azure-devops/azure/devops/v4_1/task/models.py b/azure-devops/azure/devops/v4_1/task/models.py index 65ee51ff..464984e4 100644 --- a/azure-devops/azure/devops/v4_1/task/models.py +++ b/azure-devops/azure/devops/v4_1/task/models.py @@ -81,7 +81,7 @@ class PlanEnvironment(Model): """PlanEnvironment. :param mask: - :type mask: list of :class:`MaskHint ` + :type mask: list of :class:`MaskHint ` :param options: :type options: dict :param variables: @@ -141,7 +141,7 @@ class TaskAttachment(Model): """TaskAttachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_on: :type created_on: datetime :param last_changed_by: @@ -221,7 +221,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -269,9 +269,9 @@ class TaskOrchestrationPlanReference(Model): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -315,9 +315,9 @@ class TaskOrchestrationQueuedPlan(Model): :param assign_time: :type assign_time: datetime :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -361,15 +361,15 @@ class TaskOrchestrationQueuedPlanGroup(Model): """TaskOrchestrationQueuedPlanGroup. :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param queue_position: :type queue_position: int """ @@ -429,7 +429,7 @@ class TimelineRecord(Model): :param current_operation: :type current_operation: str :param details: - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: :type error_count: int :param finish_time: @@ -437,13 +437,13 @@ class TimelineRecord(Model): :param id: :type id: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: :type last_modified: datetime :param location: :type location: str :param log: - :type log: :class:`TaskLogReference ` + :type log: :class:`TaskLogReference ` :param name: :type name: str :param order: @@ -463,7 +463,7 @@ class TimelineRecord(Model): :param state: :type state: object :param task: - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: :type type: str :param variables: @@ -617,7 +617,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param item_type: :type item_type: object :param children: - :type children: list of :class:`TaskOrchestrationItem ` + :type children: list of :class:`TaskOrchestrationItem ` :param continue_on_error: :type continue_on_error: bool :param data: @@ -627,7 +627,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param parallel: :type parallel: bool :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` + :type rollback: :class:`TaskOrchestrationContainer ` """ _attribute_map = { @@ -658,9 +658,9 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -672,11 +672,11 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param version: :type version: int :param environment: - :type environment: :class:`PlanEnvironment ` + :type environment: :class:`PlanEnvironment ` :param finish_time: :type finish_time: datetime :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` + :type implementation: :class:`TaskOrchestrationContainer ` :param requested_by_id: :type requested_by_id: str :param requested_for_id: @@ -690,7 +690,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param state: :type state: object :param timeline: - :type timeline: :class:`TimelineReference ` + :type timeline: :class:`TimelineReference ` """ _attribute_map = { @@ -743,7 +743,7 @@ class Timeline(TimelineReference): :param last_changed_on: :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/task/task_client.py b/azure-devops/azure/devops/v4_1/task/task_client.py index a60046f3..3095620b 100644 --- a/azure-devops/azure/devops/v4_1/task/task_client.py +++ b/azure-devops/azure/devops/v4_1/task/task_client.py @@ -60,7 +60,7 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -100,7 +100,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -198,7 +198,7 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: :param int log_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -224,11 +224,11 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, def create_log(self, log, scope_identifier, hub_name, plan_id): """CreateLog. - :param :class:` ` log: + :param :class:` ` log: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -326,7 +326,7 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): """UpdateRecords. - :param :class:` ` records: + :param :class:` ` records: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -352,11 +352,11 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): """CreateTimeline. - :param :class:` ` timeline: + :param :class:` ` timeline: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -402,7 +402,7 @@ def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_ :param str timeline_id: :param int change_id: :param bool include_records: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: diff --git a/azure-devops/azure/devops/v4_1/task_agent/models.py b/azure-devops/azure/devops/v4_1/task_agent/models.py index 4453828a..f950d4a9 100644 --- a/azure-devops/azure/devops/v4_1/task_agent/models.py +++ b/azure-devops/azure/devops/v4_1/task_agent/models.py @@ -131,7 +131,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -165,11 +165,11 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param name: :type name: str :param resource_url: @@ -207,7 +207,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -249,7 +249,7 @@ class DataSourceDetails(Model): :param data_source_url: :type data_source_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: :type parameters: dict :param resource_url: @@ -323,7 +323,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -345,7 +345,7 @@ class DeploymentGroupCreateParameter(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. - :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` :param pool_id: Identifier of the deployment pool in which deployment agents are registered. :type pool_id: int """ @@ -385,11 +385,11 @@ class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. :param columns_header: List of deployment group properties. And types of metrics provided for those properties. - :type columns_header: :class:`MetricsColumnsHeader ` + :type columns_header: :class:`MetricsColumnsHeader ` :param deployment_group: Deployment group. - :type deployment_group: :class:`DeploymentGroupReference ` + :type deployment_group: :class:`DeploymentGroupReference ` :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. - :type rows: list of :class:`MetricsRow ` + :type rows: list of :class:`MetricsRow ` """ _attribute_map = { @@ -413,9 +413,9 @@ class DeploymentGroupReference(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -457,7 +457,7 @@ class DeploymentMachine(Model): """DeploymentMachine. :param agent: Deployment agent. - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: Deployment target Identifier. :type id: int :param tags: Tags of the deployment target. @@ -485,9 +485,9 @@ class DeploymentMachineGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -509,13 +509,13 @@ class DeploymentPoolSummary(Model): """DeploymentPoolSummary. :param deployment_groups: List of deployment groups referring to the deployment pool. - :type deployment_groups: list of :class:`DeploymentGroupReference ` + :type deployment_groups: list of :class:`DeploymentGroupReference ` :param offline_agents_count: Number of deployment agents that are offline. :type offline_agents_count: int :param online_agents_count: Number of deployment agents that are online. :type online_agents_count: int :param pool: Deployment pool. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` """ _attribute_map = { @@ -577,7 +577,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -609,7 +609,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -657,7 +657,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -735,11 +735,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -867,7 +867,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -877,7 +877,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -941,9 +941,9 @@ class MetricsColumnsHeader(Model): """MetricsColumnsHeader. :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState - :type dimensions: list of :class:`MetricsColumnMetaData ` + :type dimensions: list of :class:`MetricsColumnMetaData ` :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. - :type metrics: list of :class:`MetricsColumnMetaData ` + :type metrics: list of :class:`MetricsColumnMetaData ` """ _attribute_map = { @@ -985,7 +985,7 @@ class OAuthConfiguration(Model): :param client_secret: Gets or sets the ClientSecret :type client_secret: str :param created_by: Gets or sets the identity who created the config. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when config was created. :type created_on: datetime :param endpoint_type: Gets or sets the type of the endpoint. @@ -993,7 +993,7 @@ class OAuthConfiguration(Model): :param id: Gets or sets the unique identifier of this field :type id: int :param modified_by: Gets or sets the identity who modified the config. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets the name @@ -1079,7 +1079,7 @@ class PackageMetadata(Model): :param type: The type of package (e.g. "agent") :type type: str :param version: The package version. - :type version: :class:`PackageVersion ` + :type version: :class:`PackageVersion ` """ _attribute_map = { @@ -1201,7 +1201,7 @@ class ResourceUsage(Model): """ResourceUsage. :param running_plan_groups: - :type running_plan_groups: list of :class:`TaskOrchestrationPlanGroup ` + :type running_plan_groups: list of :class:`TaskOrchestrationPlanGroup ` :param total_count: :type total_count: int :param used_count: @@ -1241,13 +1241,13 @@ class SecureFile(Model): """SecureFile. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: @@ -1285,11 +1285,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -1303,9 +1303,9 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1349,13 +1349,13 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -1381,7 +1381,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: :type data: dict :param type: @@ -1409,13 +1409,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1449,7 +1449,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1469,7 +1469,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1489,11 +1489,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1515,7 +1515,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: :type error_message: str :param result: - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: :type status_code: object """ @@ -1537,25 +1537,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1605,7 +1605,7 @@ class TaskAgentAuthorization(Model): :param client_id: Gets or sets the client identifier for this agent. :type client_id: str :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` + :type public_key: :class:`TaskAgentPublicKey ` """ _attribute_map = { @@ -1627,7 +1627,7 @@ class TaskAgentDelaySource(Model): :param delays: :type delays: list of object :param task_agent: - :type task_agent: :class:`TaskAgentReference ` + :type task_agent: :class:`TaskAgentReference ` """ _attribute_map = { @@ -1645,15 +1645,15 @@ class TaskAgentJobRequest(Model): """TaskAgentJobRequest. :param agent_delays: - :type agent_delays: list of :class:`TaskAgentDelaySource ` + :type agent_delays: list of :class:`TaskAgentDelaySource ` :param assign_time: :type assign_time: datetime :param data: :type data: dict :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param expected_duration: :type expected_duration: object :param finish_time: @@ -1667,9 +1667,9 @@ class TaskAgentJobRequest(Model): :param locked_until: :type locked_until: datetime :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` + :type matched_agents: list of :class:`TaskAgentReference ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -1687,7 +1687,7 @@ class TaskAgentJobRequest(Model): :param request_id: :type request_id: long :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` + :type reserved_agent: :class:`TaskAgentReference ` :param result: :type result: object :param scope_id: @@ -1793,13 +1793,13 @@ class TaskAgentPoolMaintenanceDefinition(Model): :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time :type max_concurrent_agents_percentage: int :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :type options: :class:`TaskAgentPoolMaintenanceOptions ` :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` """ _attribute_map = { @@ -1841,11 +1841,11 @@ class TaskAgentPoolMaintenanceJob(Model): :param orchestration_id: Orchestration/Plan Id for the maintenance job :type orchestration_id: str :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param queue_time: Time that the maintenance job was queued :type queue_time: datetime :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param result: The maintenance job result :type result: object :param start_time: Time that the maintenance job was started @@ -1853,7 +1853,7 @@ class TaskAgentPoolMaintenanceJob(Model): :param status: Status of the maintenance job :type status: object :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` :param warning_count: The total warning counts during the maintenance job :type warning_count: int """ @@ -1897,7 +1897,7 @@ class TaskAgentPoolMaintenanceJobTargetAgent(Model): """TaskAgentPoolMaintenanceJobTargetAgent. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param job_id: :type job_id: int :param result: @@ -2049,7 +2049,7 @@ class TaskAgentQueue(Model): :param name: Name of the queue :type name: str :param pool: Pool reference for this queue - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project_id: Project Id :type project_id: str """ @@ -2073,7 +2073,7 @@ class TaskAgentReference(Model): """TaskAgentReference. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. @@ -2113,9 +2113,9 @@ class TaskAgentSession(Model): """TaskAgentSession. :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` + :type encryption_key: :class:`TaskAgentSessionKey ` :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. :type owner_name: str :param session_id: Gets the unique identifier for this session. @@ -2167,15 +2167,15 @@ class TaskAgentUpdate(Model): :param current_state: The current state of this agent update :type current_state: str :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` + :type reason: :class:`TaskAgentUpdateReason ` :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_time: Gets the date on which this agent update was requested. :type request_time: datetime :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` + :type source_version: :class:`PackageVersion ` :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` + :type target_version: :class:`PackageVersion ` """ _attribute_map = { @@ -2217,7 +2217,7 @@ class TaskDefinition(Model): """TaskDefinition. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2229,11 +2229,11 @@ class TaskDefinition(Model): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2245,7 +2245,7 @@ class TaskDefinition(Model): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2255,7 +2255,7 @@ class TaskDefinition(Model): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2263,7 +2263,7 @@ class TaskDefinition(Model): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -2279,11 +2279,11 @@ class TaskDefinition(Model): :param server_owned: :type server_owned: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str """ @@ -2429,7 +2429,7 @@ class TaskExecution(Model): """TaskExecution. :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` + :type exec_task: :class:`TaskReference ` :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } :type platform_instructions: dict """ @@ -2449,7 +2449,7 @@ class TaskGroup(TaskDefinition): """TaskGroup. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2461,11 +2461,11 @@ class TaskGroup(TaskDefinition): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2477,7 +2477,7 @@ class TaskGroup(TaskDefinition): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2487,7 +2487,7 @@ class TaskGroup(TaskDefinition): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2495,7 +2495,7 @@ class TaskGroup(TaskDefinition): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -2511,23 +2511,23 @@ class TaskGroup(TaskDefinition): :param server_owned: :type server_owned: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str :param comment: Gets or sets comment. :type comment: str :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets date on which it got created. :type created_on: datetime :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. :type deleted: bool :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets date on which it got modified. :type modified_on: datetime :param owner: Gets or sets the owner. @@ -2537,7 +2537,7 @@ class TaskGroup(TaskDefinition): :param revision: Gets or sets revision. :type revision: int :param tasks: Gets or sets the tasks. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` """ _attribute_map = { @@ -2616,7 +2616,7 @@ class TaskGroupCreateParameter(Model): :param icon_url: Sets url icon of the task group. :type icon_url: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -2626,9 +2626,9 @@ class TaskGroupCreateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -2698,7 +2698,7 @@ class TaskGroupRevision(Model): """TaskGroupRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -2750,7 +2750,7 @@ class TaskGroupStep(Model): :param inputs: Gets or sets dictionary of inputs. :type inputs: dict :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. :type timeout_in_minutes: int """ @@ -2796,7 +2796,7 @@ class TaskGroupUpdateParameter(Model): :param id: Sets the unique identifier of this field. :type id: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -2808,9 +2808,9 @@ class TaskGroupUpdateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -2926,7 +2926,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -2986,7 +2986,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -3012,9 +3012,9 @@ class TaskOrchestrationPlanGroup(Model): :param plan_group: :type plan_group: str :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param running_requests: - :type running_requests: list of :class:`TaskAgentJobRequest ` + :type running_requests: list of :class:`TaskAgentJobRequest ` """ _attribute_map = { @@ -3194,7 +3194,7 @@ class VariableGroup(Model): """VariableGroup. :param created_by: Gets or sets the identity who created the variable group. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when variable group was created. :type created_on: datetime :param description: Gets or sets description of the variable group. @@ -3202,13 +3202,13 @@ class VariableGroup(Model): :param id: Gets or sets id of the variable group. :type id: int :param modified_by: Gets or sets the identity who modified the variable group. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets name of the variable group. :type name: str :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Gets or sets type of the variable group. :type type: str :param variables: Gets or sets variables contained in the variable group. @@ -3250,7 +3250,7 @@ class VariableGroupParameters(Model): :param name: Sets name of the variable group. :type name: str :param provider_data: Sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Sets type of the variable group. :type type: str :param variables: Sets variables contained in the variable group. @@ -3316,7 +3316,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -3350,15 +3350,15 @@ class DeploymentGroup(DeploymentGroupReference): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param description: Description of the deployment group. :type description: str :param machine_count: Number of deployment targets in the deployment group. :type machine_count: int :param machines: List of deployment targets in the deployment group. - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param machine_tags: List of unique tags across all deployment targets in the deployment group. :type machine_tags: list of str """ @@ -3390,11 +3390,11 @@ class DeploymentMachineGroup(DeploymentMachineGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param size: :type size: int """ @@ -3418,7 +3418,7 @@ class TaskAgent(TaskAgentReference): """TaskAgent. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. @@ -3432,19 +3432,19 @@ class TaskAgent(TaskAgentReference): :param version: Gets the version of the agent. :type version: str :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` + :type assigned_request: :class:`TaskAgentJobRequest ` :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` + :type authorization: :class:`TaskAgentAuthorization ` :param created_on: Gets the date on which this agent was created. :type created_on: datetime :param last_completed_request: Gets the last request which was completed by this agent. - :type last_completed_request: :class:`TaskAgentJobRequest ` + :type last_completed_request: :class:`TaskAgentJobRequest ` :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. :type max_parallelism: int :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` + :type pending_update: :class:`TaskAgentUpdate ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_changed_on: Gets the date on which the last connectivity status change occurred. :type status_changed_on: datetime :param system_capabilities: @@ -3505,13 +3505,13 @@ class TaskAgentPool(TaskAgentPoolReference): :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. :type auto_provision: bool :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime :param owner: Gets the identity who owns or administrates this pool. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` """ _attribute_map = { @@ -3561,7 +3561,7 @@ class TaskInputDefinition(TaskInputDefinitionBase): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ diff --git a/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py b/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py index b446155c..00584386 100644 --- a/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py +++ b/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def add_deployment_group(self, deployment_group, project): """AddDeploymentGroup. [Preview API] Create a deployment group. - :param :class:` ` deployment_group: Deployment group to create. + :param :class:` ` deployment_group: Deployment group to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -66,7 +66,7 @@ def get_deployment_group(self, project, deployment_group_id, action_filter=None, :param int deployment_group_id: ID of the deployment group. :param str action_filter: Get the deployment group only if this action can be performed on it. :param str expand: Include these additional details in the returned object. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -124,10 +124,10 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N def update_deployment_group(self, deployment_group, project, deployment_group_id): """UpdateDeploymentGroup. [Preview API] Update a deployment group. - :param :class:` ` deployment_group: Deployment group to update. + :param :class:` ` deployment_group: Deployment group to update. :param str project: Project ID or project name :param int deployment_group_id: ID of the deployment group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -168,7 +168,7 @@ def get_deployment_target(self, project, deployment_group_id, target_id, expand= :param int deployment_group_id: ID of the deployment group to which deployment target belongs. :param int target_id: ID of the deployment target to return. :param str expand: Include these additional details in the returned objects. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -256,9 +256,9 @@ def update_deployment_targets(self, machines, project, deployment_group_id): def add_task_group(self, task_group, project): """AddTaskGroup. [Preview API] Create a task group. - :param :class:` ` task_group: Task group object to create. + :param :class:` ` task_group: Task group object to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -333,10 +333,10 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi def update_task_group(self, task_group, project, task_group_id=None): """UpdateTaskGroup. [Preview API] Update a task group. - :param :class:` ` task_group: Task group to update. + :param :class:` ` task_group: Task group to update. :param str project: Project ID or project name :param str task_group_id: Id of the task group to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -354,9 +354,9 @@ def update_task_group(self, task_group, project, task_group_id=None): def add_variable_group(self, group, project): """AddVariableGroup. [Preview API] Add a variable group. - :param :class:` ` group: Variable group to add. + :param :class:` ` group: Variable group to add. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -390,7 +390,7 @@ def get_variable_group(self, project, group_id): [Preview API] Get a variable group. :param str project: Project ID or project name :param int group_id: Id of the variable group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -459,10 +459,10 @@ def get_variable_groups_by_id(self, project, group_ids): def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. [Preview API] Update a variable group. - :param :class:` ` group: Variable group to update. + :param :class:` ` group: Variable group to update. :param str project: Project ID or project name :param int group_id: Id of the variable group to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/test/models.py b/azure-devops/azure/devops/v4_1/test/models.py index 84c4ba8b..f4afa186 100644 --- a/azure-devops/azure/devops/v4_1/test/models.py +++ b/azure-devops/azure/devops/v4_1/test/models.py @@ -19,7 +19,7 @@ class AggregatedDataForResultTrend(Model): :param run_summary_by_state: :type run_summary_by_state: dict :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_tests: :type total_tests: int """ @@ -49,11 +49,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param run_summary_by_state: :type run_summary_by_state: dict :param total_tests: @@ -185,7 +185,7 @@ class BuildConfiguration(Model): :param platform: :type platform: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param repository_id: :type repository_id: int :param source_version: @@ -227,11 +227,11 @@ class BuildCoverage(Model): :param code_coverage_file_url: :type code_coverage_file_url: str :param configuration: - :type configuration: :class:`BuildConfiguration ` + :type configuration: :class:`BuildConfiguration ` :param last_error: :type last_error: str :param modules: - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: :type state: str """ @@ -297,17 +297,17 @@ class CloneOperationInformation(Model): """CloneOperationInformation. :param clone_statistics: - :type clone_statistics: :class:`CloneStatistics ` + :type clone_statistics: :class:`CloneStatistics ` :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue :type completion_date: datetime :param creation_date: DateTime when the operation was started :type creation_date: datetime :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` + :type destination_object: :class:`ShallowReference ` :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` + :type destination_plan: :class:`ShallowReference ` :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` + :type destination_project: :class:`ShallowReference ` :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. :type message: str :param op_id: The ID of the operation @@ -315,11 +315,11 @@ class CloneOperationInformation(Model): :param result_object_type: The type of the object generated as a result of the Clone operation :type result_object_type: object :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` + :type source_object: :class:`ShallowReference ` :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` + :type source_plan: :class:`ShallowReference ` :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` + :type source_project: :class:`ShallowReference ` :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete :type state: object :param url: Url for geting the clone information @@ -437,7 +437,7 @@ class CodeCoverageData(Model): :param build_platform: Platform of build for which data is retrieved/published :type build_platform: str :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` + :type coverage_stats: list of :class:`CodeCoverageStatistics ` """ _attribute_map = { @@ -493,11 +493,11 @@ class CodeCoverageSummary(Model): """CodeCoverageSummary. :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` + :type coverage_data: list of :class:`CodeCoverageData ` :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` + :type delta_build: :class:`ShallowReference ` """ _attribute_map = { @@ -621,11 +621,11 @@ class FailingSince(Model): """FailingSince. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param date: :type date: datetime :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -673,7 +673,7 @@ class FunctionCoverage(Model): :param source_file: :type source_file: str :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -697,7 +697,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -725,7 +725,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -785,7 +785,7 @@ class LastResultDetails(Model): :param duration: :type duration: long :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` """ _attribute_map = { @@ -851,7 +851,7 @@ class LinkedWorkItemsQueryResult(Model): :param test_case_id: :type test_case_id: int :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -881,7 +881,7 @@ class ModuleCoverage(Model): :param block_data: :type block_data: str :param functions: - :type functions: list of :class:`FunctionCoverage ` + :type functions: list of :class:`FunctionCoverage ` :param name: :type name: str :param signature: @@ -889,7 +889,7 @@ class ModuleCoverage(Model): :param signature_age: :type signature_age: int :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -937,15 +937,15 @@ class PlanUpdateModel(Model): """PlanUpdateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param configuration_ids: :type configuration_ids: list of int :param description: @@ -955,15 +955,15 @@ class PlanUpdateModel(Model): :param iteration: :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param start_date: :type start_date: str :param state: @@ -1017,9 +1017,9 @@ class PointAssignment(Model): """PointAssignment. :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param tester: - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1041,7 +1041,7 @@ class PointsFilter(Model): :param testcase_ids: :type testcase_ids: list of int :param testers: - :type testers: list of :class:`IdentityRef ` + :type testers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -1065,7 +1065,7 @@ class PointUpdateModel(Model): :param reset_to_active: :type reset_to_active: bool :param tester: - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1195,7 +1195,7 @@ class ResultRetentionSettings(Model): :param automated_results_retention_duration: :type automated_results_retention_duration: int :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param manual_results_retention_duration: @@ -1233,7 +1233,7 @@ class ResultsFilter(Model): :param test_case_reference_ids: :type test_case_reference_ids: list of int :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param trend_days: :type trend_days: int """ @@ -1267,7 +1267,7 @@ class RunCreateModel(Model): :param automated: :type automated: bool :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: @@ -1283,27 +1283,27 @@ class RunCreateModel(Model): :param controller: :type controller: str :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` + :type custom_test_fields: list of :class:`CustomTestField ` :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_test_environment: - :type dtl_test_environment: :class:`ShallowReference ` + :type dtl_test_environment: :class:`ShallowReference ` :param due_date: :type due_date: str :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` + :type environment_details: :class:`DtlEnvironmentDetails ` :param error_message: :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param iteration: :type iteration: str :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param plan: - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param point_ids: :type point_ids: list of int :param release_environment_uri: @@ -1323,7 +1323,7 @@ class RunCreateModel(Model): :param test_environment_id: :type test_environment_id: str :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param type: :type type: str """ @@ -1425,7 +1425,7 @@ class RunStatistic(Model): :param outcome: :type outcome: str :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` + :type resolution_state: :class:`TestResolutionState ` :param state: :type state: str """ @@ -1449,7 +1449,7 @@ class RunUpdateModel(Model): """RunUpdateModel. :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: @@ -1465,11 +1465,11 @@ class RunUpdateModel(Model): :param delete_in_progress_results: :type delete_in_progress_results: bool :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` :param due_date: :type due_date: str :param error_message: @@ -1477,7 +1477,7 @@ class RunUpdateModel(Model): :param iteration: :type iteration: str :param log_entries: - :type log_entries: list of :class:`TestMessageLogDetails ` + :type log_entries: list of :class:`TestMessageLogDetails ` :param name: :type name: str :param release_environment_uri: @@ -1495,7 +1495,7 @@ class RunUpdateModel(Model): :param test_environment_id: :type test_environment_id: str :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` """ _attribute_map = { @@ -1729,9 +1729,9 @@ class SuiteTestCase(Model): """SuiteTestCase. :param point_assignments: - :type point_assignments: list of :class:`PointAssignment ` + :type point_assignments: list of :class:`PointAssignment ` :param test_case: - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` """ _attribute_map = { @@ -1749,15 +1749,15 @@ class SuiteUpdateModel(Model): """SuiteUpdateModel. :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` + :type default_configurations: list of :class:`ShallowReference ` :param default_testers: - :type default_testers: list of :class:`ShallowReference ` + :type default_testers: list of :class:`ShallowReference ` :param inherit_default_configurations: :type inherit_default_configurations: bool :param name: :type name: str :param parent: - :type parent: :class:`ShallowReference ` + :type parent: :class:`ShallowReference ` :param query_string: :type query_string: str """ @@ -1947,9 +1947,9 @@ class TestCaseResult(Model): :param afn_strip_id: :type afn_strip_id: int :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_bugs: - :type associated_bugs: list of :class:`ShallowReference ` + :type associated_bugs: list of :class:`ShallowReference ` :param automated_test_id: :type automated_test_id: str :param automated_test_name: @@ -1961,9 +1961,9 @@ class TestCaseResult(Model): :param automated_test_type_id: :type automated_test_type_id: str :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_reference: - :type build_reference: :class:`BuildReference ` + :type build_reference: :class:`BuildReference ` :param comment: :type comment: str :param completed_date: @@ -1971,39 +1971,39 @@ class TestCaseResult(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: float :param error_message: :type error_message: str :param failing_since: - :type failing_since: :class:`FailingSince ` + :type failing_since: :class:`FailingSince ` :param failure_type: :type failure_type: str :param id: :type id: int :param iteration_details: - :type iteration_details: list of :class:`TestIterationDetailsModel ` + :type iteration_details: list of :class:`TestIterationDetailsModel ` :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param priority: :type priority: int :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ShallowReference ` + :type release: :class:`ShallowReference ` :param release_reference: - :type release_reference: :class:`ReleaseReference ` + :type release_reference: :class:`ReleaseReference ` :param reset_count: :type reset_count: int :param resolution_state: @@ -2013,7 +2013,7 @@ class TestCaseResult(Model): :param revision: :type revision: int :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2021,19 +2021,19 @@ class TestCaseResult(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_reference_id: :type test_case_reference_id: int :param test_case_title: :type test_case_title: str :param test_plan: - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` :param test_run: - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` :param test_suite: - :type test_suite: :class:`ShallowReference ` + :type test_suite: :class:`ShallowReference ` :param url: :type url: str """ @@ -2203,7 +2203,7 @@ class TestCaseResultUpdateModel(Model): :param computer_name: :type computer_name: str :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2213,11 +2213,11 @@ class TestCaseResultUpdateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2227,7 +2227,7 @@ class TestCaseResultUpdateModel(Model): :param test_case_priority: :type test_case_priority: str :param test_result: - :type test_result: :class:`ShallowReference ` + :type test_result: :class:`ShallowReference ` """ _attribute_map = { @@ -2277,7 +2277,7 @@ class TestConfiguration(Model): """TestConfiguration. :param area: Area of the configuration - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param description: Description of the configuration :type description: str :param id: Id of the configuration @@ -2285,13 +2285,13 @@ class TestConfiguration(Model): :param is_default: Is the configuration a default for the test plans :type is_default: bool :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last Updated Data :type last_updated_date: datetime :param name: Name of the configuration :type name: str :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision of the the configuration :type revision: int :param state: State of the configuration @@ -2299,7 +2299,7 @@ class TestConfiguration(Model): :param url: Url of Configuration Resource :type url: str :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` + :type values: list of :class:`NameValuePair ` """ _attribute_map = { @@ -2359,7 +2359,7 @@ class TestFailureDetails(Model): :param count: :type count: int :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` + :type test_results: list of :class:`TestCaseResultIdentifier ` """ _attribute_map = { @@ -2377,13 +2377,13 @@ class TestFailuresAnalysis(Model): """TestFailuresAnalysis. :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` + :type existing_failures: :class:`TestFailureDetails ` :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` + :type fixed_tests: :class:`TestFailureDetails ` :param new_failures: - :type new_failures: :class:`TestFailureDetails ` + :type new_failures: :class:`TestFailureDetails ` :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -2405,9 +2405,9 @@ class TestIterationDetailsModel(Model): """TestIterationDetailsModel. :param action_results: - :type action_results: list of :class:`TestActionResultModel ` + :type action_results: list of :class:`TestActionResultModel ` :param attachments: - :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :type attachments: list of :class:`TestCaseResultAttachmentModel ` :param comment: :type comment: str :param completed_date: @@ -2421,7 +2421,7 @@ class TestIterationDetailsModel(Model): :param outcome: :type outcome: str :param parameters: - :type parameters: list of :class:`TestResultParameterModel ` + :type parameters: list of :class:`TestResultParameterModel ` :param started_date: :type started_date: datetime :param url: @@ -2529,15 +2529,15 @@ class TestPlan(Model): """TestPlan. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param client_url: :type client_url: str :param description: @@ -2549,29 +2549,29 @@ class TestPlan(Model): :param iteration: :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param previous_build: - :type previous_build: :class:`ShallowReference ` + :type previous_build: :class:`ShallowReference ` :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param revision: :type revision: int :param root_suite: - :type root_suite: :class:`ShallowReference ` + :type root_suite: :class:`ShallowReference ` :param start_date: :type start_date: datetime :param state: :type state: str :param updated_by: - :type updated_by: :class:`IdentityRef ` + :type updated_by: :class:`IdentityRef ` :param updated_date: :type updated_date: datetime :param url: @@ -2637,9 +2637,9 @@ class TestPlanCloneRequest(Model): """TestPlanCloneRequest. :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` + :type destination_test_plan: :class:`TestPlan ` :param options: - :type options: :class:`CloneOptions ` + :type options: :class:`CloneOptions ` :param suite_ids: :type suite_ids: list of int """ @@ -2661,13 +2661,13 @@ class TestPoint(Model): """TestPoint. :param assigned_to: - :type assigned_to: :class:`IdentityRef ` + :type assigned_to: :class:`IdentityRef ` :param automated: :type automated: bool :param comment: :type comment: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param failure_type: :type failure_type: str :param id: @@ -2675,17 +2675,17 @@ class TestPoint(Model): :param last_resolution_state_id: :type last_resolution_state_id: int :param last_result: - :type last_result: :class:`ShallowReference ` + :type last_result: :class:`ShallowReference ` :param last_result_details: - :type last_result_details: :class:`LastResultDetails ` + :type last_result_details: :class:`LastResultDetails ` :param last_result_state: :type last_result_state: str :param last_run_build_number: :type last_run_build_number: str :param last_test_run: - :type last_test_run: :class:`ShallowReference ` + :type last_test_run: :class:`ShallowReference ` :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param outcome: @@ -2695,11 +2695,11 @@ class TestPoint(Model): :param state: :type state: str :param suite: - :type suite: :class:`ShallowReference ` + :type suite: :class:`ShallowReference ` :param test_case: - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` :param test_plan: - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param url: :type url: str :param work_item_properties: @@ -2763,9 +2763,9 @@ class TestPointsQuery(Model): :param order_by: :type order_by: str :param points: - :type points: list of :class:`TestPoint ` + :type points: list of :class:`TestPoint ` :param points_filter: - :type points_filter: :class:`PointsFilter ` + :type points_filter: :class:`PointsFilter ` :param wit_fields: :type wit_fields: list of str """ @@ -2793,7 +2793,7 @@ class TestResolutionState(Model): :param name: :type name: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` """ _attribute_map = { @@ -2813,7 +2813,7 @@ class TestResultCreateModel(Model): """TestResultCreateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_work_items: :type associated_work_items: list of int :param automated_test_id: @@ -2833,9 +2833,9 @@ class TestResultCreateModel(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2845,11 +2845,11 @@ class TestResultCreateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2857,13 +2857,13 @@ class TestResultCreateModel(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_priority: :type test_case_priority: str :param test_case_title: :type test_case_title: str :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` """ _attribute_map = { @@ -2929,9 +2929,9 @@ class TestResultDocument(Model): """TestResultDocument. :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` + :type operation_reference: :class:`TestOperationReference ` :param payload: - :type payload: :class:`TestResultPayload ` + :type payload: :class:`TestResultPayload ` """ _attribute_map = { @@ -2951,7 +2951,7 @@ class TestResultHistory(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` """ _attribute_map = { @@ -2971,7 +2971,7 @@ class TestResultHistoryDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param latest_result: - :type latest_result: :class:`TestCaseResult ` + :type latest_result: :class:`TestCaseResult ` """ _attribute_map = { @@ -3085,11 +3085,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -3111,7 +3111,7 @@ class TestResultsDetails(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` """ _attribute_map = { @@ -3131,7 +3131,7 @@ class TestResultsDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_count_by_outcome: :type results_count_by_outcome: dict """ @@ -3155,7 +3155,7 @@ class TestResultsGroupsForBuild(Model): :param build_id: BuildId for which groupby result is fetched. :type build_id: int :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` """ _attribute_map = { @@ -3173,7 +3173,7 @@ class TestResultsGroupsForRelease(Model): """TestResultsGroupsForRelease. :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` :param release_env_id: Release Environment Id for which groupby result is fetched. :type release_env_id: int :param release_id: ReleaseId for which groupby result is fetched. @@ -3199,9 +3199,9 @@ class TestResultsQuery(Model): :param fields: :type fields: list of str :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_filter: - :type results_filter: :class:`ResultsFilter ` + :type results_filter: :class:`ResultsFilter ` """ _attribute_map = { @@ -3221,13 +3221,13 @@ class TestResultSummary(Model): """TestResultSummary. :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` :param team_project: - :type team_project: :class:`TeamProjectReference ` + :type team_project: :class:`TeamProjectReference ` :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` + :type test_failures: :class:`TestFailuresAnalysis ` :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -3293,9 +3293,9 @@ class TestRun(Model): """TestRun. :param build: - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_configuration: - :type build_configuration: :class:`BuildConfiguration ` + :type build_configuration: :class:`BuildConfiguration ` :param comment: :type comment: str :param completed_date: @@ -3305,21 +3305,21 @@ class TestRun(Model): :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param drop_location: :type drop_location: str :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` :param due_date: :type due_date: datetime :param error_message: :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param id: :type id: int :param incomplete_tests: @@ -3329,7 +3329,7 @@ class TestRun(Model): :param iteration: :type iteration: str :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param name: @@ -3337,19 +3337,19 @@ class TestRun(Model): :param not_applicable_tests: :type not_applicable_tests: int :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param passed_tests: :type passed_tests: int :param phase: :type phase: str :param plan: - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param post_process_state: :type post_process_state: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` :param release_environment_uri: :type release_environment_uri: str :param release_uri: @@ -3357,7 +3357,7 @@ class TestRun(Model): :param revision: :type revision: int :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` :param started_date: :type started_date: datetime :param state: @@ -3365,11 +3365,11 @@ class TestRun(Model): :param substate: :type substate: object :param test_environment: - :type test_environment: :class:`TestEnvironment ` + :type test_environment: :class:`TestEnvironment ` :param test_message_log_id: :type test_message_log_id: int :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param total_tests: :type total_tests: int :param unanalyzed_tests: @@ -3479,11 +3479,11 @@ class TestRunCoverage(Model): :param last_error: :type last_error: str :param modules: - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: :type state: str :param test_run: - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` """ _attribute_map = { @@ -3505,9 +3505,9 @@ class TestRunStatistic(Model): """TestRunStatistic. :param run: - :type run: :class:`ShallowReference ` + :type run: :class:`ShallowReference ` :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` """ _attribute_map = { @@ -3525,7 +3525,7 @@ class TestSession(Model): """TestSession. :param area: Area path of the test session - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param comment: Comments in the test session :type comment: str :param end_date: Duration of the session @@ -3533,15 +3533,15 @@ class TestSession(Model): :param id: Id of the test session :type id: int :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` + :type property_bag: :class:`PropertyBag ` :param revision: Revision of the test session :type revision: int :param source: Source of the test session @@ -3639,11 +3639,11 @@ class TestSuite(Model): :param area_uri: :type area_uri: str :param children: - :type children: list of :class:`TestSuite ` + :type children: list of :class:`TestSuite ` :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` + :type default_configurations: list of :class:`ShallowReference ` :param default_testers: - :type default_testers: list of :class:`ShallowReference ` + :type default_testers: list of :class:`ShallowReference ` :param id: :type id: int :param inherit_default_configurations: @@ -3653,17 +3653,17 @@ class TestSuite(Model): :param last_populated_date: :type last_populated_date: datetime :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: :type last_updated_date: datetime :param name: :type name: str :param parent: - :type parent: :class:`ShallowReference ` + :type parent: :class:`ShallowReference ` :param plan: - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param query_string: :type query_string: str :param requirement_id: @@ -3673,7 +3673,7 @@ class TestSuite(Model): :param state: :type state: str :param suites: - :type suites: list of :class:`ShallowReference ` + :type suites: list of :class:`ShallowReference ` :param suite_type: :type suite_type: str :param test_case_count: @@ -3745,7 +3745,7 @@ class TestSuiteCloneRequest(Model): """TestSuiteCloneRequest. :param clone_options: - :type clone_options: :class:`CloneOptions ` + :type clone_options: :class:`CloneOptions ` :param destination_suite_id: :type destination_suite_id: int :param destination_suite_project_name: @@ -3769,9 +3769,9 @@ class TestSummaryForWorkItem(Model): """TestSummaryForWorkItem. :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` + :type summary: :class:`AggregatedDataForResultTrend ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -3789,9 +3789,9 @@ class TestToWorkItemLinks(Model): """TestToWorkItemLinks. :param test: - :type test: :class:`TestMethod ` + :type test: :class:`TestMethod ` :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -3815,7 +3815,7 @@ class TestVariable(Model): :param name: Name of the test variable :type name: str :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision :type revision: int :param url: Url of the test variable @@ -3881,9 +3881,9 @@ class WorkItemToTestLinks(Model): """WorkItemToTestLinks. :param tests: - :type tests: list of :class:`TestMethod ` + :type tests: list of :class:`TestMethod ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -3917,7 +3917,7 @@ class TestActionResultModel(TestResultModelBase): :param iteration_id: :type iteration_id: int :param shared_step_model: - :type shared_step_model: :class:`SharedStepModel ` + :type shared_step_model: :class:`SharedStepModel ` :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str :param url: diff --git a/azure-devops/azure/devops/v4_1/test/test_client.py b/azure-devops/azure/devops/v4_1/test/test_client.py index eba0f2ea..ef308f06 100644 --- a/azure-devops/azure/devops/v4_1/test/test_client.py +++ b/azure-devops/azure/devops/v4_1/test/test_client.py @@ -54,13 +54,13 @@ def get_action_results(self, project, run_id, test_case_result_id, iteration_id, def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): """CreateTestIterationResultAttachment. [Preview API] - :param :class:` ` attachment_request_model: + :param :class:` ` attachment_request_model: :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: :param int iteration_id: :param str action_path: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -86,11 +86,11 @@ def create_test_iteration_result_attachment(self, attachment_request_model, proj def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): """CreateTestResultAttachment. [Preview API] - :param :class:` ` attachment_request_model: + :param :class:` ` attachment_request_model: :param str project: Project ID or project name :param int run_id: :param int test_case_result_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -189,10 +189,10 @@ def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, a def create_test_run_attachment(self, attachment_request_model, project, run_id): """CreateTestRunAttachment. [Preview API] - :param :class:` ` attachment_request_model: + :param :class:` ` attachment_request_model: :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -304,7 +304,7 @@ def get_clone_information(self, project, clone_operation_id, include_details=Non :param str project: Project ID or project name :param int clone_operation_id: :param bool include_details: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -324,10 +324,10 @@ def get_clone_information(self, project, clone_operation_id, include_details=Non def clone_test_plan(self, clone_request_body, project, plan_id): """CloneTestPlan. [Preview API] - :param :class:` ` clone_request_body: + :param :class:` ` clone_request_body: :param str project: Project ID or project name :param int plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -345,11 +345,11 @@ def clone_test_plan(self, clone_request_body, project, plan_id): def clone_test_suite(self, clone_request_body, project, plan_id, source_suite_id): """CloneTestSuite. [Preview API] - :param :class:` ` clone_request_body: + :param :class:` ` clone_request_body: :param str project: Project ID or project name :param int plan_id: :param int source_suite_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -395,7 +395,7 @@ def get_code_coverage_summary(self, project, build_id, delta_build_id=None): :param str project: Project ID or project name :param int build_id: :param int delta_build_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -415,7 +415,7 @@ def get_code_coverage_summary(self, project, build_id, delta_build_id=None): def update_code_coverage_summary(self, coverage_data, project, build_id): """UpdateCodeCoverageSummary. [Preview API] http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary - :param :class:` ` coverage_data: + :param :class:` ` coverage_data: :param str project: Project ID or project name :param int build_id: """ @@ -459,9 +459,9 @@ def get_test_run_code_coverage(self, project, run_id, flags): def create_test_configuration(self, test_configuration, project): """CreateTestConfiguration. [Preview API] - :param :class:` ` test_configuration: + :param :class:` ` test_configuration: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -495,7 +495,7 @@ def get_test_configuration_by_id(self, project, test_configuration_id): [Preview API] :param str project: Project ID or project name :param int test_configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -540,10 +540,10 @@ def get_test_configurations(self, project, skip=None, top=None, continuation_tok def update_test_configuration(self, test_configuration, project, test_configuration_id): """UpdateTestConfiguration. [Preview API] - :param :class:` ` test_configuration: + :param :class:` ` test_configuration: :param str project: Project ID or project name :param int test_configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -599,9 +599,9 @@ def query_custom_fields(self, project, scope_filter): def query_test_result_history(self, filter, project): """QueryTestResultHistory. [Preview API] - :param :class:` ` filter: + :param :class:` ` filter: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -621,7 +621,7 @@ def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, :param int test_case_result_id: :param int iteration_id: :param bool include_action_results: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -670,7 +670,7 @@ def get_test_iterations(self, project, run_id, test_case_result_id, include_acti def get_linked_work_items_by_query(self, work_item_query, project): """GetLinkedWorkItemsByQuery. [Preview API] - :param :class:` ` work_item_query: + :param :class:` ` work_item_query: :param str project: Project ID or project name :rtype: [LinkedWorkItemsQueryResult] """ @@ -733,9 +733,9 @@ def get_result_parameters(self, project, run_id, test_case_result_id, iteration_ def create_test_plan(self, test_plan, project): """CreateTestPlan. - :param :class:` ` test_plan: + :param :class:` ` test_plan: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -767,7 +767,7 @@ def get_plan_by_id(self, project, plan_id): """GetPlanById. :param str project: Project ID or project name :param int plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -813,10 +813,10 @@ def get_plans(self, project, owner=None, skip=None, top=None, include_plan_detai def update_test_plan(self, plan_update_model, project, plan_id): """UpdateTestPlan. - :param :class:` ` plan_update_model: + :param :class:` ` plan_update_model: :param str project: Project ID or project name :param int plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -838,7 +838,7 @@ def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): :param int suite_id: :param int point_ids: :param str wit_fields: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -904,7 +904,7 @@ def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_ def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): """UpdateTestPoints. - :param :class:` ` point_update_model: + :param :class:` ` point_update_model: :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -931,11 +931,11 @@ def update_test_points(self, point_update_model, project, plan_id, suite_id, poi def get_points_by_query(self, query, project, skip=None, top=None): """GetPointsByQuery. [Preview API] - :param :class:` ` query: + :param :class:` ` query: :param str project: Project ID or project name :param int skip: :param int top: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -965,7 +965,7 @@ def get_test_result_details_for_build(self, project, build_id, publish_context=N :param str orderby: :param bool should_include_results: :param bool query_run_summary_for_in_progress: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1004,7 +1004,7 @@ def get_test_result_details_for_release(self, project, release_id, release_env_i :param str orderby: :param bool should_include_results: :param bool query_run_summary_for_in_progress: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1036,10 +1036,10 @@ def get_test_result_details_for_release(self, project, release_id, release_env_i def publish_test_result_document(self, document, project, run_id): """PublishTestResultDocument. [Preview API] - :param :class:` ` document: + :param :class:` ` document: :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1061,7 +1061,7 @@ def get_result_groups_by_build(self, project, build_id, publish_context, fields= :param int build_id: :param str publish_context: :param [str] fields: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1089,7 +1089,7 @@ def get_result_groups_by_release(self, project, release_id, publish_context, rel :param str publish_context: :param int release_env_id: :param [str] fields: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1115,7 +1115,7 @@ def get_result_retention_settings(self, project): """GetResultRetentionSettings. [Preview API] :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1129,9 +1129,9 @@ def get_result_retention_settings(self, project): def update_result_retention_settings(self, retention_settings, project): """UpdateResultRetentionSettings. [Preview API] - :param :class:` ` retention_settings: + :param :class:` ` retention_settings: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1170,7 +1170,7 @@ def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to :param int run_id: :param int test_case_result_id: :param str details_to_include: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1245,9 +1245,9 @@ def update_test_results(self, results, project, run_id): def get_test_results_by_query(self, query, project): """GetTestResultsByQuery. [Preview API] - :param :class:` ` query: + :param :class:` ` query: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1267,8 +1267,8 @@ def query_test_results_report_for_build(self, project, build_id, publish_context :param int build_id: :param str publish_context: :param bool include_failure_details: - :param :class:` ` build_to_compare: - :rtype: :class:` ` + :param :class:` ` build_to_compare: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1310,8 +1310,8 @@ def query_test_results_report_for_release(self, project, release_id, release_env :param int release_env_id: :param str publish_context: :param bool include_failure_details: - :param :class:` ` release_to_compare: - :rtype: :class:` ` + :param :class:` ` release_to_compare: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1368,7 +1368,7 @@ def query_test_results_summary_for_releases(self, releases, project): def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): """QueryTestSummaryByRequirement. [Preview API] - :param :class:` ` results_context: + :param :class:` ` results_context: :param str project: Project ID or project name :param [int] work_item_ids: :rtype: [TestSummaryForWorkItem] @@ -1392,7 +1392,7 @@ def query_test_summary_by_requirement(self, results_context, project, work_item_ def query_result_trend_for_build(self, filter, project): """QueryResultTrendForBuild. [Preview API] - :param :class:` ` filter: + :param :class:` ` filter: :param str project: Project ID or project name :rtype: [AggregatedDataForResultTrend] """ @@ -1410,7 +1410,7 @@ def query_result_trend_for_build(self, filter, project): def query_result_trend_for_release(self, filter, project): """QueryResultTrendForRelease. [Preview API] - :param :class:` ` filter: + :param :class:` ` filter: :param str project: Project ID or project name :rtype: [AggregatedDataForResultTrend] """ @@ -1429,7 +1429,7 @@ def get_test_run_statistics(self, project, run_id): """GetTestRunStatistics. :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1444,9 +1444,9 @@ def get_test_run_statistics(self, project, run_id): def create_test_run(self, test_run, project): """CreateTestRun. - :param :class:` ` test_run: + :param :class:` ` test_run: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1478,7 +1478,7 @@ def get_test_run_by_id(self, project, run_id): """GetTestRunById. :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1605,10 +1605,10 @@ def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, def update_test_run(self, run_update_model, project, run_id): """UpdateTestRun. - :param :class:` ` run_update_model: + :param :class:` ` run_update_model: :param str project: Project ID or project name :param int run_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1626,9 +1626,9 @@ def update_test_run(self, run_update_model, project, run_id): def create_test_session(self, test_session, team_context): """CreateTestSession. [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1658,7 +1658,7 @@ def create_test_session(self, test_session, team_context): def get_test_sessions(self, team_context, period=None, all_sessions=None, include_all_properties=None, source=None, include_only_completed_sessions=None): """GetTestSessions. [Preview API] - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param int period: :param bool all_sessions: :param bool include_all_properties: @@ -1704,9 +1704,9 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ def update_test_session(self, test_session, team_context): """UpdateTestSession. [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` test_session: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1834,7 +1834,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): :param int plan_id: :param int suite_id: :param int test_case_ids: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1897,7 +1897,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case def create_test_suite(self, test_suite, project, plan_id, suite_id): """CreateTestSuite. - :param :class:` ` test_suite: + :param :class:` ` test_suite: :param str project: Project ID or project name :param int plan_id: :param int suite_id: @@ -1942,7 +1942,7 @@ def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): :param int plan_id: :param int suite_id: :param int expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1994,11 +1994,11 @@ def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top def update_test_suite(self, suite_update_model, project, plan_id, suite_id): """UpdateTestSuite. - :param :class:` ` suite_update_model: + :param :class:` ` suite_update_model: :param str project: Project ID or project name :param int plan_id: :param int suite_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2047,7 +2047,7 @@ def delete_test_case(self, project, test_case_id): def create_test_settings(self, test_settings, project): """CreateTestSettings. - :param :class:` ` test_settings: + :param :class:` ` test_settings: :param str project: Project ID or project name :rtype: int """ @@ -2081,7 +2081,7 @@ def get_test_settings_by_id(self, project, test_settings_id): """GetTestSettingsById. :param str project: Project ID or project name :param int test_settings_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2097,9 +2097,9 @@ def get_test_settings_by_id(self, project, test_settings_id): def create_test_variable(self, test_variable, project): """CreateTestVariable. [Preview API] - :param :class:` ` test_variable: + :param :class:` ` test_variable: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2133,7 +2133,7 @@ def get_test_variable_by_id(self, project, test_variable_id): [Preview API] :param str project: Project ID or project name :param int test_variable_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2172,10 +2172,10 @@ def get_test_variables(self, project, skip=None, top=None): def update_test_variable(self, test_variable, project, test_variable_id): """UpdateTestVariable. [Preview API] - :param :class:` ` test_variable: + :param :class:` ` test_variable: :param str project: Project ID or project name :param int test_variable_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2193,9 +2193,9 @@ def update_test_variable(self, test_variable, project, test_variable_id): def add_work_item_to_test_links(self, work_item_to_test_links, project): """AddWorkItemToTestLinks. [Preview API] - :param :class:` ` work_item_to_test_links: + :param :class:` ` work_item_to_test_links: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2236,7 +2236,7 @@ def query_test_method_linked_work_items(self, project, test_name): [Preview API] :param str project: Project ID or project name :param str test_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/tfvc/models.py b/azure-devops/azure/devops/v4_1/tfvc/models.py index 68c9a455..23ed06e7 100644 --- a/azure-devops/azure/devops/v4_1/tfvc/models.py +++ b/azure-devops/azure/devops/v4_1/tfvc/models.py @@ -57,7 +57,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -145,7 +145,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -155,9 +155,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -201,7 +201,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -209,7 +209,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -245,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -349,11 +349,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -497,7 +497,7 @@ class TfvcChange(Change): """TfvcChange. :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` + :type merge_sources: list of :class:`TfvcMergeSource ` :param pending_version: Version at which a (shelved) change was pended against :type pending_version: int """ @@ -517,13 +517,13 @@ class TfvcChangesetRef(Model): """TfvcChangesetRef. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -629,11 +629,11 @@ class TfvcItem(ItemModel): """TfvcItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -726,7 +726,7 @@ class TfvcItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` + :type item_descriptors: list of :class:`TfvcItemDescriptor ` """ _attribute_map = { @@ -746,7 +746,7 @@ class TfvcLabelRef(Model): """TfvcLabelRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -758,7 +758,7 @@ class TfvcLabelRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -876,7 +876,7 @@ class TfvcPolicyOverrideInfo(Model): :param comment: :type comment: str :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` """ _attribute_map = { @@ -910,7 +910,7 @@ class TfvcShelvesetRef(Model): """TfvcShelvesetRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -922,7 +922,7 @@ class TfvcShelvesetRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -1020,7 +1020,7 @@ class VersionControlProjectInfo(Model): :param default_source_control_type: :type default_source_control_type: object :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param supports_git: :type supports_git: bool :param supports_tFVC: @@ -1046,9 +1046,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -1072,7 +1072,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1080,7 +1080,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str """ @@ -1109,13 +1109,13 @@ class TfvcChangeset(TfvcChangesetRef): """TfvcChangeset. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -1127,19 +1127,19 @@ class TfvcChangeset(TfvcChangesetRef): :param account_id: Account Id of the changeset. :type account_id: str :param changes: List of associated changes. - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param checkin_notes: Checkin Notes for the changeset. - :type checkin_notes: list of :class:`CheckinNote ` + :type checkin_notes: list of :class:`CheckinNote ` :param collection_id: Collection Id of the changeset. :type collection_id: str :param has_more_changes: Are more changes available. :type has_more_changes: bool :param policy_override: Policy Override for the changeset. - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param team_project_ids: Team Project Ids for the changeset. :type team_project_ids: list of str :param work_items: List of work items associated with the changeset. - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1177,7 +1177,7 @@ class TfvcLabel(TfvcLabelRef): """TfvcLabel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -1189,11 +1189,11 @@ class TfvcLabel(TfvcLabelRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param items: - :type items: list of :class:`TfvcItem ` + :type items: list of :class:`TfvcItem ` """ _attribute_map = { @@ -1217,7 +1217,7 @@ class TfvcShelveset(TfvcShelvesetRef): """TfvcShelveset. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -1229,17 +1229,17 @@ class TfvcShelveset(TfvcShelvesetRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param changes: - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param notes: - :type notes: list of :class:`CheckinNote ` + :type notes: list of :class:`CheckinNote ` :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1271,7 +1271,7 @@ class TfvcBranch(TfvcBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1279,17 +1279,17 @@ class TfvcBranch(TfvcBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str :param children: List of children for the branch. - :type children: list of :class:`TfvcBranch ` + :type children: list of :class:`TfvcBranch ` :param mappings: List of branch mappings. - :type mappings: list of :class:`TfvcBranchMapping ` + :type mappings: list of :class:`TfvcBranchMapping ` :param parent: Path of the branch's parent. - :type parent: :class:`TfvcShallowBranchRef ` + :type parent: :class:`TfvcShallowBranchRef ` :param related_branches: List of paths of the related branches. - :type related_branches: list of :class:`TfvcShallowBranchRef ` + :type related_branches: list of :class:`TfvcShallowBranchRef ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py b/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py index 1e0187a9..58d66239 100644 --- a/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py +++ b/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py @@ -32,7 +32,7 @@ def get_branch(self, path, project=None, include_parent=None, include_children=N :param str project: Project ID or project name :param bool include_parent: Return the parent branch, if there is one. Default: False :param bool include_children: Return child branches, if there are any. Default: False - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -132,9 +132,9 @@ def get_changeset_changes(self, id=None, skip=None, top=None): def create_changeset(self, changeset, project=None): """CreateChangeset. Create a new changeset. - :param :class:` ` changeset: + :param :class:` ` changeset: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -160,8 +160,8 @@ def get_changeset(self, id, project=None, max_change_count=None, include_details :param int skip: Number of results to skip. Default: null :param int top: The maximum number of results to return. Default: null :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. - :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null - :rtype: :class:` ` + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -217,7 +217,7 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N :param int skip: Number of results to skip. Default: null :param int top: The maximum number of results to return. Default: null :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. - :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null :rtype: [TfvcChangesetRef] """ route_values = {} @@ -259,7 +259,7 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N def get_batched_changesets(self, changesets_request_data): """GetBatchedChangesets. Returns changesets for a given list of changeset Ids. - :param :class:` ` changesets_request_data: List of changeset IDs. + :param :class:` ` changesets_request_data: List of changeset IDs. :rtype: [TfvcChangesetRef] """ content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') @@ -287,7 +287,7 @@ def get_changeset_work_items(self, id=None): def get_items_batch(self, item_request_data, project=None): """GetItemsBatch. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: [[TfvcItem]] """ @@ -305,7 +305,7 @@ def get_items_batch(self, item_request_data, project=None): def get_items_batch_zip(self, item_request_data, project=None, **kwargs): """GetItemsBatchZip. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: object """ @@ -334,9 +334,9 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -377,7 +377,7 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -423,7 +423,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). :param bool include_links: True to include links. - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: [TfvcItem] """ route_values = {} @@ -459,7 +459,7 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -507,7 +507,7 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -573,9 +573,9 @@ def get_label(self, label_id, request_data, project=None): """GetLabel. Get a single deep label. :param str label_id: Unique identifier of label - :param :class:` ` request_data: maxItemCount + :param :class:` ` request_data: maxItemCount :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -606,7 +606,7 @@ def get_label(self, label_id, request_data, project=None): def get_labels(self, request_data, project=None, top=None, skip=None): """GetLabels. Get a collection of shallow label references. - :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter + :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter :param str project: Project ID or project name :param int top: Max number of labels to return :param int skip: Number of labels to skip @@ -665,8 +665,8 @@ def get_shelveset(self, shelveset_id, request_data=None): """GetShelveset. Get a single deep shelveset. :param str shelveset_id: Shelveset's unique ID - :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength - :rtype: :class:` ` + :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength + :rtype: :class:` ` """ query_parameters = {} if shelveset_id is not None: @@ -695,7 +695,7 @@ def get_shelveset(self, shelveset_id, request_data=None): def get_shelvesets(self, request_data=None, top=None, skip=None): """GetShelvesets. Return a collection of shallow shelveset references. - :param :class:` ` request_data: name, owner, and maxCommentLength + :param :class:` ` request_data: name, owner, and maxCommentLength :param int top: Max number of shelvesets to return :param int skip: Number of shelvesets to skip :rtype: [TfvcShelvesetRef] diff --git a/azure-devops/azure/devops/v4_1/wiki/models.py b/azure-devops/azure/devops/v4_1/wiki/models.py index 3ad37278..a70bd269 100644 --- a/azure-devops/azure/devops/v4_1/wiki/models.py +++ b/azure-devops/azure/devops/v4_1/wiki/models.py @@ -23,7 +23,7 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: :type project: TeamProjectReference :param remote_url: @@ -157,7 +157,7 @@ class WikiAttachmentResponse(Model): """WikiAttachmentResponse. :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` + :type attachment: :class:`WikiAttachment ` :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. :type eTag: list of str """ @@ -219,7 +219,7 @@ class WikiCreateParametersV2(WikiCreateBaseParameters): :param type: Type of the wiki. :type type: object :param version: Version of the wiki. Not required for ProjectWiki type. - :type version: :class:`GitVersionDescriptor ` + :type version: :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -282,7 +282,7 @@ class WikiPageMoveResponse(Model): :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. :type eTag: list of str :param page_move: Defines properties for wiki page move. - :type page_move: :class:`WikiPageMove ` + :type page_move: :class:`WikiPageMove ` """ _attribute_map = { @@ -302,7 +302,7 @@ class WikiPageResponse(Model): :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. :type eTag: list of str :param page: Defines properties for wiki page. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { @@ -344,7 +344,7 @@ class WikiUpdateParameters(Model): """WikiUpdateParameters. :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -378,7 +378,7 @@ class WikiV2(WikiCreateBaseParameters): :param url: REST url for this wiki. :type url: str :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -421,7 +421,7 @@ class WikiPage(WikiPageCreateOrUpdateParameters): :param remote_url: Remote web url to the wiki page. :type remote_url: str :param sub_pages: List of subpages of the current page. - :type sub_pages: list of :class:`WikiPage ` + :type sub_pages: list of :class:`WikiPage ` :param url: REST url for this wiki page. :type url: str """ @@ -460,7 +460,7 @@ class WikiPageMove(WikiPageMoveParameters): :param path: Current path of the wiki page. :type path: str :param page: Resultant page of this page move operation. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/wiki/wiki_client.py b/azure-devops/azure/devops/v4_1/wiki/wiki_client.py index f67453d0..ea554500 100644 --- a/azure-devops/azure/devops/v4_1/wiki/wiki_client.py +++ b/azure-devops/azure/devops/v4_1/wiki/wiki_client.py @@ -32,7 +32,7 @@ def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwa :param str project: Project ID or project name :param str wiki_identifier: Wiki Id or name. :param str name: Wiki attachment name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -60,11 +60,11 @@ def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwa def create_page_move(self, page_move_parameters, project, wiki_identifier, comment=None): """CreatePageMove. Creates a page move operation that updates the path and order of the page as provided in the parameters. - :param :class:` ` page_move_parameters: Page more operation parameters. + :param :class:` ` page_move_parameters: Page more operation parameters. :param str project: Project ID or project name :param str wiki_identifier: Wiki Id or name. :param str comment: Comment that is to be associated with this page move. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -89,13 +89,13 @@ def create_page_move(self, page_move_parameters, project, wiki_identifier, comme def create_or_update_page(self, parameters, project, wiki_identifier, path, version, comment=None): """CreateOrUpdatePage. Creates or edits a wiki page. - :param :class:` ` parameters: Wiki create or update operation parameters. + :param :class:` ` parameters: Wiki create or update operation parameters. :param str project: Project ID or project name :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param String version: Version of the page on which the change is to be made. Mandatory for `Edit` scenario. To be populated in the If-Match header of the request. :param str comment: Comment to be associated with the page operation. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -126,7 +126,7 @@ def delete_page(self, project, wiki_identifier, path, comment=None): :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str comment: Comment to be associated with this page delete. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -155,9 +155,9 @@ def get_page(self, project, wiki_identifier, path=None, recursion_level=None, ve :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). - :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -195,7 +195,7 @@ def get_page_text(self, project, wiki_identifier, path=None, recursion_level=Non :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). - :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) :rtype: object """ @@ -237,7 +237,7 @@ def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). - :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) :rtype: object """ @@ -275,9 +275,9 @@ def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None def create_wiki(self, wiki_create_params, project=None): """CreateWiki. Creates the wiki resource. - :param :class:` ` wiki_create_params: Parameters for the wiki creation. + :param :class:` ` wiki_create_params: Parameters for the wiki creation. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -295,7 +295,7 @@ def delete_wiki(self, wiki_identifier, project=None): Deletes the wiki corresponding to the wiki name or Id provided. :param str wiki_identifier: Wiki name or Id. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -328,7 +328,7 @@ def get_wiki(self, wiki_identifier, project=None): Gets the wiki corresponding to the wiki name or Id provided. :param str wiki_identifier: Wiki name or id. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -344,10 +344,10 @@ def get_wiki(self, wiki_identifier, project=None): def update_wiki(self, update_parameters, wiki_identifier, project=None): """UpdateWiki. Updates the wiki corresponding to the wiki Id or name provided using the update parameters. - :param :class:` ` update_parameters: Update parameters. + :param :class:` ` update_parameters: Update parameters. :param str wiki_identifier: Wiki name or Id. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/work/models.py b/azure-devops/azure/devops/v4_1/work/models.py index 1090626d..c99b3788 100644 --- a/azure-devops/azure/devops/v4_1/work/models.py +++ b/azure-devops/azure/devops/v4_1/work/models.py @@ -33,7 +33,7 @@ class BacklogColumn(Model): """BacklogColumn. :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` + :type column_field_reference: :class:`WorkItemFieldReference ` :param width: :type width: int """ @@ -53,21 +53,21 @@ class BacklogConfiguration(Model): """BacklogConfiguration. :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` + :type backlog_fields: :class:`BacklogFields ` :param bugs_behavior: Bugs behavior :type bugs_behavior: object :param hidden_backlogs: Hidden Backlog :type hidden_backlogs: list of str :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :type requirement_backlog: :class:`BacklogLevelConfiguration ` :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` + :type task_backlog: :class:`BacklogLevelConfiguration ` :param url: :type url: str :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` """ _attribute_map = { @@ -141,13 +141,13 @@ class BacklogLevelConfiguration(Model): """BacklogLevelConfiguration. :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :type add_panel_fields: list of :class:`WorkItemFieldReference ` :param color: Color for the backlog level :type color: str :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` + :type column_fields: list of :class:`BacklogColumn ` :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) :type id: str :param is_hidden: Indicates whether the backlog level is hidden @@ -161,7 +161,7 @@ class BacklogLevelConfiguration(Model): :param work_item_count_limit: Max number of work items to show in the given backlog :type work_item_count_limit: int :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -197,7 +197,7 @@ class BacklogLevelWorkItems(Model): """BacklogLevelWorkItems. :param work_items: A list of work items within a backlog level - :type work_items: list of :class:`WorkItemLink ` + :type work_items: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -213,7 +213,7 @@ class BoardCardRuleSettings(Model): """BoardCardRuleSettings. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rules: :type rules: dict :param url: @@ -313,11 +313,11 @@ class BoardFields(Model): """BoardFields. :param column_field: - :type column_field: :class:`FieldReference ` + :type column_field: :class:`FieldReference ` :param done_field: - :type done_field: :class:`FieldReference ` + :type done_field: :class:`FieldReference ` :param row_field: - :type row_field: :class:`FieldReference ` + :type row_field: :class:`FieldReference ` """ _attribute_map = { @@ -413,9 +413,9 @@ class CapacityPatch(Model): """CapacityPatch. :param activities: - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -437,7 +437,7 @@ class CategoryConfiguration(Model): :param reference_name: Category Reference Name :type reference_name: str :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -557,7 +557,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -585,7 +585,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -697,7 +697,7 @@ class Plan(Model): """Plan. :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` + :type created_by_identity: :class:`IdentityRef ` :param created_date: Date when the plan was created :type created_date: datetime :param description: Description of the plan @@ -705,7 +705,7 @@ class Plan(Model): :param id: Id of the plan :type id: str :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` + :type modified_by_identity: :class:`IdentityRef ` :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. :type modified_date: datetime :param name: Name of the plan @@ -777,13 +777,13 @@ class ProcessConfiguration(Model): """ProcessConfiguration. :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` + :type bug_work_items: :class:`CategoryConfiguration ` :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` + :type requirement_backlog: :class:`CategoryConfiguration ` :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` + :type task_backlog: :class:`CategoryConfiguration ` :param type_fields: Type fields for the process configuration :type type_fields: dict :param url: @@ -829,7 +829,7 @@ class Rule(Model): """Rule. :param clauses: - :type clauses: list of :class:`FilterClause ` + :type clauses: list of :class:`FilterClause ` :param filter: :type filter: str :param is_enabled: @@ -911,7 +911,7 @@ class TeamFieldValuesPatch(Model): :param default_value: :type default_value: str :param values: - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -953,7 +953,7 @@ class TeamSettingsDataContractBase(Model): """TeamSettingsDataContractBase. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str """ @@ -973,11 +973,11 @@ class TeamSettingsDaysOff(TeamSettingsDataContractBase): """TeamSettingsDaysOff. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -995,7 +995,7 @@ class TeamSettingsDaysOffPatch(Model): """TeamSettingsDaysOffPatch. :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1011,11 +1011,11 @@ class TeamSettingsIteration(TeamSettingsDataContractBase): """TeamSettingsIteration. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` + :type attributes: :class:`TeamIterationAttributes ` :param id: Id of the resource :type id: str :param name: Name of the resource @@ -1121,7 +1121,7 @@ class TimelineTeamData(Model): """TimelineTeamData. :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` + :type backlog: :class:`BacklogLevel ` :param field_reference_names: The field reference names of the work item data :type field_reference_names: list of str :param id: The id of the team @@ -1129,7 +1129,7 @@ class TimelineTeamData(Model): :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. :type is_expanded: bool :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` + :type iterations: list of :class:`TimelineTeamIteration ` :param name: The name of the team :type name: str :param order_by_field: The order by field name of this team @@ -1139,15 +1139,15 @@ class TimelineTeamData(Model): :param project_id: The project id the team belongs team :type project_id: str :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` + :type status: :class:`TimelineTeamStatus ` :param team_field_default_value: The team field default value :type team_field_default_value: str :param team_field_name: The team field name of this team :type team_field_name: str :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` + :type team_field_values: list of :class:`TeamFieldValue ` :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` + :type work_item_type_colors: list of :class:`WorkItemColor ` """ _attribute_map = { @@ -1199,7 +1199,7 @@ class TimelineTeamIteration(Model): :param start_date: The start date of the iteration :type start_date: datetime :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` + :type status: :class:`TimelineIterationStatus ` :param work_items: The work items that have been paged in this iteration :type work_items: list of [object] """ @@ -1331,9 +1331,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -1434,21 +1434,21 @@ class Board(BoardReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_mappings: :type allowed_mappings: dict :param can_edit: :type can_edit: bool :param columns: - :type columns: list of :class:`BoardColumn ` + :type columns: list of :class:`BoardColumn ` :param fields: - :type fields: :class:`BoardFields ` + :type fields: :class:`BoardFields ` :param is_valid: :type is_valid: bool :param revision: :type revision: int :param rows: - :type rows: list of :class:`BoardRow ` + :type rows: list of :class:`BoardRow ` """ _attribute_map = { @@ -1485,7 +1485,7 @@ class BoardChart(BoardChartReference): :param url: Full http link to the resource :type url: str :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param settings: The settings for the resource :type settings: dict """ @@ -1513,13 +1513,13 @@ class DeliveryViewData(PlanViewData): :param child_id_to_parent_id_map: Work item child id to parenet id map :type child_id_to_parent_id_map: dict :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` + :type criteria_status: :class:`TimelineCriteriaStatus ` :param end_date: The end date of the delivery view data :type end_date: datetime :param start_date: The start date for the delivery view data :type start_date: datetime :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` + :type teams: list of :class:`TimelineTeamData ` """ _attribute_map = { @@ -1545,11 +1545,11 @@ class IterationWorkItems(TeamSettingsDataContractBase): """IterationWorkItems. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param work_item_relations: Work item relations - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -1567,15 +1567,15 @@ class TeamFieldValues(TeamSettingsDataContractBase): """TeamFieldValues. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param default_value: The default team field value :type default_value: str :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` + :type field: :class:`FieldReference ` :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1597,15 +1597,15 @@ class TeamMemberCapacity(TeamSettingsDataContractBase): """TeamMemberCapacity. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` + :type team_member: :class:`Member ` """ _attribute_map = { @@ -1627,17 +1627,17 @@ class TeamSetting(TeamSettingsDataContractBase): """TeamSetting. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` + :type backlog_iteration: :class:`TeamSettingsIteration ` :param backlog_visibilities: Information about categories that are visible on the backlog. :type backlog_visibilities: dict :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) :type bugs_behavior: object :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` + :type default_iteration: :class:`TeamSettingsIteration ` :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working diff --git a/azure-devops/azure/devops/v4_1/work/work_client.py b/azure-devops/azure/devops/v4_1/work/work_client.py index 2f03c3a6..9089f47e 100644 --- a/azure-devops/azure/devops/v4_1/work/work_client.py +++ b/azure-devops/azure/devops/v4_1/work/work_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def get_backlog_configurations(self, team_context): """GetBacklogConfigurations. Gets backlog configuration for a team - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -57,9 +57,9 @@ def get_backlog_configurations(self, team_context): def get_backlog_level_work_items(self, team_context, backlog_id): """GetBacklogLevelWorkItems. [Preview API] Get a list of work items within a backlog level - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str backlog_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -89,9 +89,9 @@ def get_backlog_level_work_items(self, team_context, backlog_id): def get_backlog(self, team_context, id): """GetBacklog. [Preview API] Get a backlog level - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: The id of the backlog level - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -121,7 +121,7 @@ def get_backlog(self, team_context, id): def get_backlogs(self, team_context): """GetBacklogs. [Preview API] List all backlog levels - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :rtype: [BacklogLevelConfiguration] """ project = None @@ -165,7 +165,7 @@ def get_column_suggested_values(self, project=None): def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): """GetBoardMappingParentItems. [Preview API] Returns the list of parent field filter model for the given list of workitem ids - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str child_backlog_context_category_ref_name: :param [int] workitem_ids: :rtype: [ParentChildWIMap] @@ -218,9 +218,9 @@ def get_row_suggested_values(self, project=None): def get_board(self, team_context, id): """GetBoard. Get board - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -250,7 +250,7 @@ def get_board(self, team_context, id): def get_boards(self, team_context): """GetBoards. Get boards - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :rtype: [BoardReference] """ project = None @@ -280,7 +280,7 @@ def set_board_options(self, options, team_context, id): """SetBoardOptions. Update board options :param {str} options: options to updated - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either category plural name (Eg:"Stories") or guid :rtype: {str} """ @@ -314,9 +314,9 @@ def set_board_options(self, options, team_context, id): def get_board_user_settings(self, team_context, board): """GetBoardUserSettings. [Preview API] Get board user settings for a board id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Board ID or Name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -347,9 +347,9 @@ def update_board_user_settings(self, board_user_settings, team_context, board): """UpdateBoardUserSettings. [Preview API] Update board user settings for the board id :param {str} board_user_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -381,7 +381,7 @@ def update_board_user_settings(self, board_user_settings, team_context, board): def get_capacities(self, team_context, iteration_id): """GetCapacities. Get a team's capacity - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :rtype: [TeamMemberCapacity] """ @@ -413,10 +413,10 @@ def get_capacities(self, team_context, iteration_id): def get_capacity(self, team_context, iteration_id, team_member_id): """GetCapacity. Get a team member's capacity - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :param str team_member_id: ID of the team member - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -449,7 +449,7 @@ def replace_capacities(self, capacities, team_context, iteration_id): """ReplaceCapacities. Replace a team's capacity :param [TeamMemberCapacity] capacities: Team capacity to replace - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :rtype: [TeamMemberCapacity] """ @@ -483,11 +483,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): def update_capacity(self, patch, team_context, iteration_id, team_member_id): """UpdateCapacity. Update a team member's capacity - :param :class:` ` patch: Updated capacity - :param :class:` ` team_context: The team context for the operation + :param :class:` ` patch: Updated capacity + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :param str team_member_id: ID of the team member - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -521,9 +521,9 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): def get_board_card_rule_settings(self, team_context, board): """GetBoardCardRuleSettings. Get board card Rule settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -553,10 +553,10 @@ def get_board_card_rule_settings(self, team_context, board): def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): """UpdateBoardCardRuleSettings. Update board card Rule settings for the board id or board by name - :param :class:` ` board_card_rule_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` board_card_rule_settings: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -588,9 +588,9 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context def get_board_card_settings(self, team_context, board): """GetBoardCardSettings. Get board card settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -620,10 +620,10 @@ def get_board_card_settings(self, team_context, board): def update_board_card_settings(self, board_card_settings_to_save, team_context, board): """UpdateBoardCardSettings. Update board card settings for the board id or board by name - :param :class:` ` board_card_settings_to_save: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` board_card_settings_to_save: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -655,10 +655,10 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, def get_board_chart(self, team_context, board, name): """GetBoardChart. Get a board chart - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -690,7 +690,7 @@ def get_board_chart(self, team_context, board, name): def get_board_charts(self, team_context, board): """GetBoardCharts. Get board charts - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :rtype: [BoardChartReference] """ @@ -722,11 +722,11 @@ def get_board_charts(self, team_context, board): def update_board_chart(self, chart, team_context, board, name): """UpdateBoardChart. Update a board chart - :param :class:` ` chart: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` chart: + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -760,7 +760,7 @@ def update_board_chart(self, chart, team_context, board, name): def get_board_columns(self, team_context, board): """GetBoardColumns. Get columns on a board - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardColumn] """ @@ -793,7 +793,7 @@ def update_board_columns(self, board_columns, team_context, board): """UpdateBoardColumns. Update columns on a board :param [BoardColumn] board_columns: List of board columns to update - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardColumn] """ @@ -832,7 +832,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. :param datetime start_date: The start date of timeline :param datetime end_date: The end date of timeline - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -856,7 +856,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None def delete_team_iteration(self, team_context, id): """DeleteTeamIteration. Delete a team's iteration by iterationId - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: ID of the iteration """ project = None @@ -886,9 +886,9 @@ def delete_team_iteration(self, team_context, id): def get_team_iteration(self, team_context, id): """GetTeamIteration. Get team's iteration by iterationId - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -918,7 +918,7 @@ def get_team_iteration(self, team_context, id): def get_team_iterations(self, team_context, timeframe=None): """GetTeamIterations. Get a team's iterations using timeframe filter - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str timeframe: A filter for which iterations are returned based on relative time. Only Current is supported currently. :rtype: [TeamSettingsIteration] """ @@ -952,9 +952,9 @@ def get_team_iterations(self, team_context, timeframe=None): def post_team_iteration(self, iteration, team_context): """PostTeamIteration. Add an iteration to the team - :param :class:` ` iteration: Iteration to add - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` iteration: Iteration to add + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -984,9 +984,9 @@ def post_team_iteration(self, iteration, team_context): def create_plan(self, posted_plan, project): """CreatePlan. Add a new plan for the team - :param :class:` ` posted_plan: Plan definition + :param :class:` ` posted_plan: Plan definition :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1020,7 +1020,7 @@ def get_plan(self, project, id): Get the information for the specified plan :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1051,10 +1051,10 @@ def get_plans(self, project): def update_plan(self, updated_plan, project, id): """UpdatePlan. Update the information for the specified plan - :param :class:` ` updated_plan: Plan definition to be updated + :param :class:` ` updated_plan: Plan definition to be updated :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1073,7 +1073,7 @@ def get_process_configuration(self, project): """GetProcessConfiguration. [Preview API] Get process configuration :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1087,7 +1087,7 @@ def get_process_configuration(self, project): def get_board_rows(self, team_context, board): """GetBoardRows. Get rows on a board - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardRow] """ @@ -1120,7 +1120,7 @@ def update_board_rows(self, board_rows, team_context, board): """UpdateBoardRows. Update rows on a board :param [BoardRow] board_rows: List of board rows to update - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardRow] """ @@ -1154,9 +1154,9 @@ def update_board_rows(self, board_rows, team_context, board): def get_team_days_off(self, team_context, iteration_id): """GetTeamDaysOff. Get team's days off for an iteration - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1186,10 +1186,10 @@ def get_team_days_off(self, team_context, iteration_id): def update_team_days_off(self, days_off_patch, team_context, iteration_id): """UpdateTeamDaysOff. Set a team's days off for an iteration - :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates - :param :class:` ` team_context: The team context for the operation + :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1221,8 +1221,8 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): def get_team_field_values(self, team_context): """GetTeamFieldValues. Get a collection of team field values - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1250,9 +1250,9 @@ def get_team_field_values(self, team_context): def update_team_field_values(self, patch, team_context): """UpdateTeamFieldValues. Update team field values - :param :class:` ` patch: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1282,8 +1282,8 @@ def update_team_field_values(self, patch, team_context): def get_team_settings(self, team_context): """GetTeamSettings. Get a team's settings - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1311,9 +1311,9 @@ def get_team_settings(self, team_context): def update_team_settings(self, team_settings_patch, team_context): """UpdateTeamSettings. Update a team's settings - :param :class:` ` team_settings_patch: TeamSettings changes - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_settings_patch: TeamSettings changes + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1343,9 +1343,9 @@ def update_team_settings(self, team_settings_patch, team_context): def get_iteration_work_items(self, team_context, iteration_id): """GetIterationWorkItems. [Preview API] Get work items for iteration - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking/models.py index 8816d729..3e450e84 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking/models.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking/models.py @@ -15,7 +15,7 @@ class AccountMyWorkResult(Model): :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit :type query_size_limit_exceeded: bool :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` """ _attribute_map = { @@ -245,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -329,7 +329,7 @@ class IdentityReference(IdentityRef): """IdentityReference. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -436,7 +436,7 @@ class ProjectWorkItemStateColors(Model): :param project_name: Project name :type project_name: str :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` """ _attribute_map = { @@ -474,7 +474,7 @@ class QueryHierarchyItemsResult(Model): :param has_more: Indicates if the max return limit was hit but there are still more items :type has_more: bool :param value: The list of items - :type value: list of :class:`QueryHierarchyItem ` + :type value: list of :class:`QueryHierarchyItem ` """ _attribute_map = { @@ -510,7 +510,7 @@ class ReportingWorkItemLink(Model): """ReportingWorkItemLink. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param changed_operation: @@ -860,9 +860,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -910,17 +910,17 @@ class WorkItemQueryClause(Model): """WorkItemQueryClause. :param clauses: Child clauses if the current clause is a logical operator - :type clauses: list of :class:`WorkItemQueryClause ` + :type clauses: list of :class:`WorkItemQueryClause ` :param field: Field associated with condition - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` :param field_value: Right side of the condition when a field to field comparison - :type field_value: :class:`WorkItemFieldReference ` + :type field_value: :class:`WorkItemFieldReference ` :param is_field_value: Determines if this is a field to field comparison :type is_field_value: bool :param logical_operator: Logical operator separating the condition clause :type logical_operator: object :param operator: The field operator - :type operator: :class:`WorkItemFieldOperation ` + :type operator: :class:`WorkItemFieldOperation ` :param value: Right side of the condition when a field to value comparison :type value: str """ @@ -952,17 +952,17 @@ class WorkItemQueryResult(Model): :param as_of: The date the query was run in the context of. :type as_of: datetime :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param query_result_type: The result type :type query_result_type: object :param query_type: The type of the query :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param work_item_relations: The work item links returned by the query. - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` :param work_items: The work items returned by the query. - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -992,7 +992,7 @@ class WorkItemQuerySortColumn(Model): :param descending: The direction to sort by. :type descending: bool :param field: A work item field. - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1051,11 +1051,11 @@ class WorkItemRelationUpdates(Model): """WorkItemRelationUpdates. :param added: List of newly added relations. - :type added: list of :class:`WorkItemRelation ` + :type added: list of :class:`WorkItemRelation ` :param removed: List of removed relations. - :type removed: list of :class:`WorkItemRelation ` + :type removed: list of :class:`WorkItemRelation ` :param updated: List of updated relations. - :type updated: list of :class:`WorkItemRelation ` + :type updated: list of :class:`WorkItemRelation ` """ _attribute_map = { @@ -1191,7 +1191,7 @@ class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str """ @@ -1224,7 +1224,7 @@ class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1273,7 +1273,7 @@ class WorkItemTypeStateColors(Model): """WorkItemTypeStateColors. :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` + :type state_colors: list of :class:`WorkItemStateColor ` :param work_item_type_name: Work item type name :type work_item_type_name: str """ @@ -1379,7 +1379,7 @@ class WorkItemDelete(WorkItemDeleteReference): :param url: REST API URL of the resource :type url: str :param resource: The work item object that was deleted. - :type resource: :class:`WorkItem ` + :type resource: :class:`WorkItem ` """ _attribute_map = { @@ -1406,7 +1406,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1425,17 +1425,17 @@ class WorkItemType(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param color: The color. :type color: str :param description: The description of the work item type. :type description: str :param field_instances: The fields that exist on the work item type. - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` :param fields: The fields that exist on the work item type. - :type fields: list of :class:`WorkItemTypeFieldInstance ` + :type fields: list of :class:`WorkItemTypeFieldInstance ` :param icon: The icon of the work item type. - :type icon: :class:`WorkItemIcon ` + :type icon: :class:`WorkItemIcon ` :param is_disabled: True if work item type is disabled :type is_disabled: bool :param name: Gets the name of the work item type. @@ -1483,15 +1483,15 @@ class WorkItemTypeCategory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_work_item_type: Gets or sets the default type of the work item. - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param name: The name of the category. :type name: str :param reference_name: The reference name of the category. :type reference_name: str :param work_item_types: The work item types that belond to the category. - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -1523,7 +1523,7 @@ class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1555,17 +1555,17 @@ class WorkItemUpdate(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: List of updates to fields. :type fields: dict :param id: ID of update. :type id: int :param relations: List of updates to relations. - :type relations: :class:`WorkItemRelationUpdates ` + :type relations: :class:`WorkItemRelationUpdates ` :param rev: The revision number of work item update. :type rev: int :param revised_by: Identity for the work item update. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The work item updates revision date. :type revised_date: datetime :param work_item_id: The work item ID. @@ -1601,9 +1601,9 @@ class FieldDependentRule(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dependent_fields: The dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1623,15 +1623,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param children: The child query items inside a query folder. - :type children: list of :class:`QueryHierarchyItem ` + :type children: list of :class:`QueryHierarchyItem ` :param clauses: The clauses for a flat query. - :type clauses: :class:`WorkItemQueryClause ` + :type clauses: :class:`WorkItemQueryClause ` :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param created_by: The identity who created the query item. - :type created_by: :class:`IdentityReference ` + :type created_by: :class:`IdentityReference ` :param created_date: When the query item was created. :type created_date: datetime :param filter_options: The link query mode. @@ -1649,15 +1649,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param is_public: Indicates if this query item is public or private. :type is_public: bool :param last_executed_by: The identity who last ran the query. - :type last_executed_by: :class:`IdentityReference ` + :type last_executed_by: :class:`IdentityReference ` :param last_executed_date: When the query was last run. :type last_executed_date: datetime :param last_modified_by: The identity who last modified the query item. - :type last_modified_by: :class:`IdentityReference ` + :type last_modified_by: :class:`IdentityReference ` :param last_modified_date: When the query item was last modified. :type last_modified_date: datetime :param link_clauses: The link query clause. - :type link_clauses: :class:`WorkItemQueryClause ` + :type link_clauses: :class:`WorkItemQueryClause ` :param name: The name of the query item. :type name: str :param path: The path of the query item. @@ -1667,11 +1667,11 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param query_type: The type of query. :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param source_clauses: The source clauses in a tree or one-hop link query. - :type source_clauses: :class:`WorkItemQueryClause ` + :type source_clauses: :class:`WorkItemQueryClause ` :param target_clauses: The target clauses in a tree or one-hop link query. - :type target_clauses: :class:`WorkItemQueryClause ` + :type target_clauses: :class:`WorkItemQueryClause ` :param wiql: The WIQL text of the query :type wiql: str """ @@ -1741,13 +1741,13 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ @@ -1775,11 +1775,11 @@ class WorkItemClassificationNode(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. :type attributes: dict :param children: List of child nodes fetched. - :type children: list of :class:`WorkItemClassificationNode ` + :type children: list of :class:`WorkItemClassificationNode ` :param has_children: Flag that indicates if the classification node has any child nodes. :type has_children: bool :param id: Integer ID of the classification node. @@ -1821,9 +1821,9 @@ class WorkItemComment(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param revised_by: Identity of user who added the comment. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The date of comment. :type revised_date: datetime :param revision: The work item revision number. @@ -1855,9 +1855,9 @@ class WorkItemComments(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: Comments collection. - :type comments: list of :class:`WorkItemComment ` + :type comments: list of :class:`WorkItemComment ` :param count: The count of comments. :type count: int :param from_revision_count: Count of comments from the revision. @@ -1889,7 +1889,7 @@ class WorkItemField(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the field. :type description: str :param is_identity: Indicates whether this field is an identity field. @@ -1905,7 +1905,7 @@ class WorkItemField(WorkItemTrackingResource): :param reference_name: The reference name of the field. :type reference_name: str :param supported_operations: The supported operations on this field. - :type supported_operations: list of :class:`WorkItemFieldOperation ` + :type supported_operations: list of :class:`WorkItemFieldOperation ` :param type: The type of the field. :type type: object :param usage: The usage of the field. @@ -1947,11 +1947,11 @@ class WorkItemHistory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param value: @@ -1981,7 +1981,7 @@ class WorkItemTemplateReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. @@ -2015,7 +2015,7 @@ class WorkItemTrackingReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2041,7 +2041,7 @@ class WorkItemRelationType(WorkItemTrackingReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2069,7 +2069,7 @@ class WorkItemTemplate(WorkItemTemplateReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py index d8e1d692..2434e79e 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py @@ -38,9 +38,9 @@ def get_work_artifact_link_types(self): def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): """QueryWorkItemsForArtifactUris. [Preview API] Queries work items linked to a given list of artifact URI. - :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. + :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -61,7 +61,7 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ :param str file_name: The name of the file :param str upload_type: Attachment upload type: Simple or Chunked :param str area_path: Target project Area Path - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -199,11 +199,11 @@ def get_root_nodes(self, project, depth=None): def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. Create new or update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -251,7 +251,7 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. :param int depth: Depth of children to fetch. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -273,11 +273,11 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non def update_classification_node(self, posted_node, project, structure_group, path=None): """UpdateClassificationNode. Update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -300,7 +300,7 @@ def get_comment(self, id, revision, project=None): :param int id: Work item id :param int revision: Revision for which the comment need to be fetched :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -323,7 +323,7 @@ def get_comments(self, id, project=None, from_revision=None, top=None, order=Non :param int from_revision: Revision from which comments are to be fetched (default is 1) :param int top: The number of comments to return (default is 200) :param str order: Ascending or descending by revision id (default is ascending) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -365,7 +365,7 @@ def get_field(self, field_name_or_ref_name, project=None): Gets information on a specific field. :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -401,7 +401,7 @@ def get_fields(self, project=None, expand=None): def update_field(self, work_item_field, field_name_or_ref_name, project=None): """UpdateField. Updates the field. - :param :class:` ` work_item_field: New field definition + :param :class:` ` work_item_field: New field definition :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name """ @@ -420,10 +420,10 @@ def update_field(self, work_item_field, field_name_or_ref_name, project=None): def create_query(self, posted_query, project, query): """CreateQuery. Creates a query, or moves a query. - :param :class:` ` posted_query: The query to create. + :param :class:` ` posted_query: The query to create. :param str project: Project ID or project name :param str query: The parent path for the query to create. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -488,7 +488,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. :param int depth: In the folder of queries, return child queries and folders to this depth. :param bool include_deleted: Include deleted queries and folders - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -517,7 +517,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted :param int top: The number of queries to return (Default is 50 and maximum is 200). :param str expand: :param bool include_deleted: Include deleted queries and folders - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -541,11 +541,11 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted def update_query(self, query_update, project, query, undelete_descendants=None): """UpdateQuery. Update a query or a folder. This allows you to update, rename and move queries and folders. - :param :class:` ` query_update: The query to update. + :param :class:` ` query_update: The query to update. :param str project: Project ID or project name :param str query: The path for the query to update. :param bool undelete_descendants: Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -585,7 +585,7 @@ def get_deleted_work_item(self, id, project=None): Gets a deleted work item from Recycle Bin. :param int id: ID of the work item to be returned :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -637,10 +637,10 @@ def get_deleted_work_item_shallow_references(self, project=None): def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. Restores the deleted work item from Recycle Bin. - :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false + :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false :param int id: ID of the work item to be restored :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -661,7 +661,7 @@ def get_revision(self, id, revision_number, expand=None): :param int id: :param int revision_number: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -707,9 +707,9 @@ def get_revisions(self, id, top=None, skip=None, expand=None): def create_template(self, template, team_context): """CreateTemplate. [Preview API] Creates a template - :param :class:` ` template: Template contents - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` template: Template contents + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -739,7 +739,7 @@ def create_template(self, template, team_context): def get_templates(self, team_context, workitemtypename=None): """GetTemplates. [Preview API] Gets template - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str workitemtypename: Optional, When specified returns templates for given Work item type. :rtype: [WorkItemTemplateReference] """ @@ -773,7 +773,7 @@ def get_templates(self, team_context, workitemtypename=None): def delete_template(self, team_context, template_id): """DeleteTemplate. [Preview API] Deletes the template with given id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id """ project = None @@ -803,9 +803,9 @@ def delete_template(self, team_context, template_id): def get_template(self, team_context, template_id): """GetTemplate. [Preview API] Gets the template with specified id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -835,10 +835,10 @@ def get_template(self, team_context, template_id): def replace_template(self, template_content, team_context, template_id): """ReplaceTemplate. [Preview API] Replace template contents - :param :class:` ` template_content: Template contents to replace with - :param :class:` ` team_context: The team context for the operation + :param :class:` ` template_content: Template contents to replace with + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -872,7 +872,7 @@ def get_update(self, id, update_number): Returns a single update for a work item :param int id: :param int update_number: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -911,11 +911,11 @@ def get_updates(self, id, top=None, skip=None): def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. Gets the results of the query given its WIQL. - :param :class:` ` wiql: The query containing the WIQL. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` wiql: The query containing the WIQL. + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -952,7 +952,7 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): """GetQueryResultCount. Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :rtype: int """ @@ -989,9 +989,9 @@ def query_by_id(self, id, team_context=None, time_precision=None): """QueryById. Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1028,7 +1028,7 @@ def get_work_item_icon_json(self, icon, color=None, v=None): :param str icon: The name of the icon :param str color: The 6-digit hex color for the icon :param int v: The version of the icon (used only for cache invalidation) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if icon is not None: @@ -1091,7 +1091,7 @@ def get_reporting_links_by_link_type(self, project=None, link_types=None, types= :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. :param str continuation_token: Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. :param datetime start_date_time: Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1118,7 +1118,7 @@ def get_relation_type(self, relation): """GetRelationType. Gets the work item relation type definition. :param str relation: The relation name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if relation is not None: @@ -1154,7 +1154,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed :param int max_page_size: The maximum number of results to return in this batch - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1194,12 +1194,12 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): """ReadReportingRevisionsPost. Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. - :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format + :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1223,13 +1223,13 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): """CreateWorkItem. Creates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item :param str project: Project ID or project name :param str type: The work item type of the work item to create :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1261,7 +1261,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= :param str fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1288,7 +1288,7 @@ def delete_work_item(self, id, project=None, destroy=None): :param int id: ID of the work item to be deleted :param str project: Project ID or project name :param bool destroy: Optional parameter, if set to true, the work item is deleted permanently - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1313,7 +1313,7 @@ def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1372,13 +1372,13 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. Updates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update :param str project: Project ID or project name :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1441,7 +1441,7 @@ def get_work_item_type_category(self, project, category): Get specific work item type category by name. :param str project: Project ID or project name :param str category: The category name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1459,7 +1459,7 @@ def get_work_item_type(self, project, type): Returns a work item type definition. :param str project: Project ID or project name :param str type: Work item type name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1517,7 +1517,7 @@ def get_work_item_type_field_with_references(self, project, type, field, expand= :param str type: Work item type. :param str field: :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py index e24c08cf..c0c5f17a 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py @@ -13,7 +13,7 @@ class Control(Model): """Control. :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param control_type: Type of the control. :type control_type: str :param height: Height of the control, for html controls. @@ -157,9 +157,9 @@ class FieldRuleModel(Model): """FieldRuleModel. :param actions: - :type actions: list of :class:`RuleActionModel ` + :type actions: list of :class:`RuleActionModel ` :param conditions: - :type conditions: list of :class:`RuleConditionModel ` + :type conditions: list of :class:`RuleConditionModel ` :param friendly_name: :type friendly_name: str :param id: @@ -193,11 +193,11 @@ class FormLayout(Model): """FormLayout. :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` + :type pages: list of :class:`Page ` :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` + :type system_controls: list of :class:`Control ` """ _attribute_map = { @@ -217,9 +217,9 @@ class Group(Model): """Group. :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` + :type controls: list of :class:`Control ` :param height: The height for the contribution. :type height: int :param id: The id for the layout node. @@ -269,7 +269,7 @@ class Page(Model): """Page. :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param id: The id for the layout node. :type id: str :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. @@ -287,7 +287,7 @@ class Page(Model): :param page_type: The icon for the page. :type page_type: object :param sections: The sections of the page. - :type sections: list of :class:`Section ` + :type sections: list of :class:`Section ` :param visible: A value indicating if the page should be hidden or not. :type visible: bool """ @@ -329,9 +329,9 @@ class ProcessModel(Model): :param name: Name of the process :type name: str :param projects: Projects in this process - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param properties: Properties of the process - :type properties: :class:`ProcessProperties ` + :type properties: :class:`ProcessProperties ` :param reference_name: Reference name of the process :type reference_name: str :param type_id: The ID of the process @@ -469,7 +469,7 @@ class Section(Model): """Section. :param groups: - :type groups: list of :class:`Group ` + :type groups: list of :class:`Group ` :param id: The id for the layout node. :type id: str :param overridden: A value indicating whether this layout node has been overridden by a child layout. @@ -555,11 +555,11 @@ class WorkItemBehavior(Model): :param description: :type description: str :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` + :type fields: list of :class:`WorkItemBehaviorField ` :param id: :type id: str :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` + :type inherits: :class:`WorkItemBehaviorReference ` :param name: :type name: str :param overriden: @@ -685,7 +685,7 @@ class WorkItemTypeBehavior(Model): """WorkItemTypeBehavior. :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` + :type behavior: :class:`WorkItemBehaviorReference ` :param is_default: :type is_default: bool :param url: @@ -709,7 +709,7 @@ class WorkItemTypeModel(Model): """WorkItemTypeModel. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param class_: :type class_: object :param color: @@ -725,11 +725,11 @@ class WorkItemTypeModel(Model): :param is_disabled: :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: :type name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: :type url: str """ diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py index 414ec295..8dd1ca6f 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py @@ -31,7 +31,7 @@ def get_behavior(self, process_id, behavior_ref_name, expand=None): :param str process_id: The ID of the process :param str behavior_ref_name: Reference name of the behavior :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -104,8 +104,8 @@ def get_work_item_type_fields(self, process_id, wit_ref_name): def create_process(self, create_request): """CreateProcess. [Preview API] Creates a process. - :param :class:` ` create_request: - :rtype: :class:` ` + :param :class:` ` create_request: + :rtype: :class:` ` """ content = self._serialize.body(create_request, 'CreateProcessModel') response = self._send(http_method='POST', @@ -132,7 +132,7 @@ def get_process_by_id(self, process_type_id, expand=None): [Preview API] Returns a single process of a specified ID. :param str process_type_id: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -165,9 +165,9 @@ def get_processes(self, expand=None): def update_process(self, update_request, process_type_id): """UpdateProcess. [Preview API] Updates a process of a specific ID. - :param :class:` ` update_request: + :param :class:` ` update_request: :param str process_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -183,10 +183,10 @@ def update_process(self, update_request, process_type_id): def add_work_item_type_rule(self, field_rule, process_id, wit_ref_name): """AddWorkItemTypeRule. [Preview API] Adds a rule to work item type in the process. - :param :class:` ` field_rule: + :param :class:` ` field_rule: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -226,7 +226,7 @@ def get_work_item_type_rule(self, process_id, wit_ref_name, rule_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -262,11 +262,11 @@ def get_work_item_type_rules(self, process_id, wit_ref_name): def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): """UpdateWorkItemTypeRule. [Preview API] Updates a rule in the work item type of the process. - :param :class:` ` field_rule: + :param :class:` ` field_rule: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -289,7 +289,7 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -328,7 +328,7 @@ def get_work_item_type(self, process_id, wit_ref_name, expand=None): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py index 99a429fb..86ce037b 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py @@ -45,7 +45,7 @@ class BehaviorModel(Model): :param id: Behavior Id :type id: str :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` + :type inherits: :class:`WorkItemBehaviorReference ` :param name: Behavior Name :type name: str :param overridden: Is the behavior overrides a behavior from system process @@ -105,7 +105,7 @@ class Control(Model): """Control. :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param control_type: Type of the control. :type control_type: str :param height: Height of the control, for html controls. @@ -191,7 +191,7 @@ class FieldModel(Model): :param name: Name of the field :type name: str :param pick_list: Reference to picklist in this field - :type pick_list: :class:`PickListMetadataModel ` + :type pick_list: :class:`PickListMetadataModel ` :param type: Type of field :type type: object :param url: Url to the field @@ -241,11 +241,11 @@ class FormLayout(Model): """FormLayout. :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` + :type pages: list of :class:`Page ` :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` + :type system_controls: list of :class:`Control ` """ _attribute_map = { @@ -265,9 +265,9 @@ class Group(Model): """Group. :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` + :type controls: list of :class:`Control ` :param height: The height for the contribution. :type height: int :param id: The id for the layout node. @@ -333,7 +333,7 @@ class Page(Model): """Page. :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param id: The id for the layout node. :type id: str :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. @@ -351,7 +351,7 @@ class Page(Model): :param page_type: The icon for the page. :type page_type: object :param sections: The sections of the page. - :type sections: list of :class:`Section ` + :type sections: list of :class:`Section ` :param visible: A value indicating if the page should be hidden or not. :type visible: bool """ @@ -451,7 +451,7 @@ class PickListModel(PickListMetadataModel): :param url: Url of the picklist :type url: str :param items: A list of PicklistItemModel - :type items: list of :class:`PickListItemModel ` + :type items: list of :class:`PickListItemModel ` """ _attribute_map = { @@ -472,7 +472,7 @@ class Section(Model): """Section. :param groups: - :type groups: list of :class:`Group ` + :type groups: list of :class:`Group ` :param id: The id for the layout node. :type id: str :param overridden: A value indicating whether this layout node has been overridden by a child layout. @@ -612,7 +612,7 @@ class WorkItemTypeBehavior(Model): """WorkItemTypeBehavior. :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` + :type behavior: :class:`WorkItemBehaviorReference ` :param is_default: :type is_default: bool :param url: @@ -642,7 +642,7 @@ class WorkItemTypeFieldModel(Model): :param name: :type name: str :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` + :type pick_list: :class:`PickListMetadataModel ` :param read_only: :type read_only: bool :param reference_name: @@ -684,7 +684,7 @@ class WorkItemTypeModel(Model): """WorkItemTypeModel. :param behaviors: Behaviors of the work item type - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param class_: Class of the work item type :type class_: object :param color: Color of the work item type @@ -700,11 +700,11 @@ class WorkItemTypeModel(Model): :param is_disabled: Is work item type disabled :type is_disabled: bool :param layout: Layout of the work item type - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: Name of the work item type :type name: str :param states: States of the work item type - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: Url of the work item type :type url: str """ diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py index 9957bd42..00197784 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_behavior(self, behavior, process_id): """CreateBehavior. [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -64,7 +64,7 @@ def get_behavior(self, process_id, behavior_id): [Preview API] Returns a single behavior in the process. :param str process_id: The ID of the process :param str behavior_id: The ID of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -95,10 +95,10 @@ def get_behaviors(self, process_id): def replace_behavior(self, behavior_data, process_id, behavior_id): """ReplaceBehavior. [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: + :param :class:` ` behavior_data: :param str process_id: The ID of the process :param str behavior_id: The ID of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -116,11 +116,11 @@ def replace_behavior(self, behavior_data, process_id, behavior_id): def add_control_to_group(self, control, process_id, wit_ref_name, group_id): """AddControlToGroup. [Preview API] Creates a control in a group - :param :class:` ` control: The control + :param :class:` ` control: The control :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str group_id: The ID of the group to add the control to - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -140,12 +140,12 @@ def add_control_to_group(self, control, process_id, wit_ref_name, group_id): def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): """EditControl. [Preview API] Updates a control on the work item form - :param :class:` ` control: The updated control + :param :class:` ` control: The updated control :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str group_id: The ID of the group :param str control_id: The ID of the control - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -189,13 +189,13 @@ def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_ def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): """SetControlInGroup. [Preview API] Moves a control to a new group - :param :class:` ` control: The control + :param :class:` ` control: The control :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str group_id: The ID of the group to move the control to :param str control_id: The id of the control :param str remove_from_group_id: The group to remove the control from - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -221,9 +221,9 @@ def set_control_in_group(self, control, process_id, wit_ref_name, group_id, cont def create_field(self, field, process_id): """CreateField. [Preview API] Creates a single field in the process. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -239,9 +239,9 @@ def create_field(self, field, process_id): def update_field(self, field, process_id): """UpdateField. [Preview API] Updates a given field in the process. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -257,12 +257,12 @@ def update_field(self, field, process_id): def add_group(self, group, process_id, wit_ref_name, page_id, section_id): """AddGroup. [Preview API] Adds a group to the work item form - :param :class:` ` group: The group + :param :class:` ` group: The group :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str page_id: The ID of the page to add the group to :param str section_id: The ID of the section to add the group to - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -284,13 +284,13 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): """EditGroup. [Preview API] Updates a group in the work item form - :param :class:` ` group: The updated group + :param :class:` ` group: The updated group :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str page_id: The ID of the page the group is in :param str section_id: The ID of the section the group is in :param str group_id: The ID of the group - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -339,7 +339,7 @@ def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): """SetGroupInPage. [Preview API] Moves a group to a different page and section - :param :class:` ` group: The updated group + :param :class:` ` group: The updated group :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str page_id: The ID of the page the group is in @@ -347,7 +347,7 @@ def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id :param str group_id: The ID of the group :param str remove_from_page_id: ID of the page to remove the group from :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -377,14 +377,14 @@ def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): """SetGroupInSection. [Preview API] Moves a group to a different section - :param :class:` ` group: The updated group + :param :class:` ` group: The updated group :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str page_id: The ID of the page the group is in :param str section_id: The ID of the section the group is in :param str group_id: The ID of the group :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -414,7 +414,7 @@ def get_form_layout(self, process_id, wit_ref_name): [Preview API] Gets the form layout :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -440,8 +440,8 @@ def get_lists_metadata(self): def create_list(self, picklist): """CreateList. [Preview API] Creates a picklist. - :param :class:` ` picklist: - :rtype: :class:` ` + :param :class:` ` picklist: + :rtype: :class:` ` """ content = self._serialize.body(picklist, 'PickListModel') response = self._send(http_method='POST', @@ -467,7 +467,7 @@ def get_list(self, list_id): """GetList. [Preview API] Returns a picklist. :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -481,9 +481,9 @@ def get_list(self, list_id): def update_list(self, picklist, list_id): """UpdateList. [Preview API] Updates a list. - :param :class:` ` picklist: + :param :class:` ` picklist: :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -499,10 +499,10 @@ def update_list(self, picklist, list_id): def add_page(self, page, process_id, wit_ref_name): """AddPage. [Preview API] Adds a page to the work item form - :param :class:` ` page: The page + :param :class:` ` page: The page :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -520,10 +520,10 @@ def add_page(self, page, process_id, wit_ref_name): def edit_page(self, page, process_id, wit_ref_name): """EditPage. [Preview API] Updates a page on the work item form - :param :class:` ` page: The page + :param :class:` ` page: The page :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -560,10 +560,10 @@ def remove_page(self, process_id, wit_ref_name, page_id): def create_state_definition(self, state_model, process_id, wit_ref_name): """CreateStateDefinition. [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -603,7 +603,7 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -639,11 +639,11 @@ def get_state_definitions(self, process_id, wit_ref_name): def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. [Preview API] Hides a state definition in the work item type of the process. - :param :class:` ` hide_state_model: + :param :class:` ` hide_state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -663,11 +663,11 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): """UpdateStateDefinition. [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -687,10 +687,10 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """AddBehaviorToWorkItemType. [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -711,7 +711,7 @@ def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -766,10 +766,10 @@ def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behav def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """UpdateBehaviorToWorkItemType. [Preview API] Updates a behavior for the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -787,9 +787,9 @@ def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_f def create_work_item_type(self, work_item_type, process_id): """CreateWorkItemType. [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: + :param :class:` ` work_item_type: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -824,7 +824,7 @@ def get_work_item_type(self, process_id, wit_ref_name, expand=None): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -864,10 +864,10 @@ def get_work_item_types(self, process_id, expand=None): def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateWorkItemType. [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: + :param :class:` ` work_item_type_update: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -885,10 +885,10 @@ def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name) def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): """AddFieldToWorkItemType. [Preview API] Adds a field to the work item type in the process. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process :param str wit_ref_name_for_fields: Work item type reference name for the field - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -909,7 +909,7 @@ def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_re :param str process_id: The ID of the process :param str wit_ref_name_for_fields: Work item type reference name for fields :param str field_ref_name: The reference name of the field - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py index 54c46fb2..e325a012 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py @@ -21,7 +21,7 @@ class AdminBehavior(Model): :param description: The description of the behavior. :type description: str :param fields: List of behavior fields. - :type fields: list of :class:`AdminBehaviorField ` + :type fields: list of :class:`AdminBehaviorField ` :param id: Behavior ID. :type id: str :param inherits: Parent behavior reference. @@ -125,7 +125,7 @@ class ProcessImportResult(Model): :param promote_job_id: The promote job identifier. :type promote_job_id: str :param validation_results: The list of validation results. - :type validation_results: list of :class:`ValidationIssue ` + :type validation_results: list of :class:`ValidationIssue ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py index 54fbe9b2..9a3ddc7d 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py +++ b/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py @@ -30,7 +30,7 @@ def get_behavior(self, process_id, behavior_ref_name): [Preview API] Returns a behavior for the process. :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -64,7 +64,7 @@ def check_template_existence(self, upload_stream, **kwargs): """CheckTemplateExistence. [Preview API] Check if process template exists. :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'CheckTemplateExistence' @@ -107,7 +107,7 @@ def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs) [Preview API] Imports a process from zip file. :param object upload_stream: Stream to upload :param bool ignore_warnings: Default value is false - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'Import' @@ -132,7 +132,7 @@ def import_process_template_status(self, id): """ImportProcessTemplateStatus. [Preview API] Tells whether promote has completed for the specified promote job ID. :param str id: The ID of the promote job operation - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: diff --git a/vsts/vsts/_file_cache.py b/vsts/vsts/_file_cache.py deleted file mode 100644 index c8ff1a5c..00000000 --- a/vsts/vsts/_file_cache.py +++ /dev/null @@ -1,176 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -import base64 -import json -import logging -import os -import time -try: - import collections.abc as collections -except ImportError: - import collections - - -logger = logging.getLogger(__name__) - - -class FileCache(collections.MutableMapping): - """A simple dict-like class that is backed by a JSON file. - - All direct modifications will save the file. Indirect modifications should - be followed by a call to `save_with_retry` or `save`. - """ - - def __init__(self, file_name, max_age=0): - super(FileCache, self).__init__() - self.file_name = file_name - self.max_age = max_age - self.data = {} - self.initial_load_occurred = False - - def load(self): - self.data = {} - try: - if os.path.isfile(self.file_name): - if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.time(): - logger.debug('Cache file expired: %s', file=self.file_name) - os.remove(self.file_name) - else: - logger.debug('Loading cache file: %s', self.file_name) - self.data = get_file_json(self.file_name, throw_on_empty=False) or {} - else: - logger.debug('Cache file does not exist: %s', self.file_name) - except Exception as ex: - logger.debug(ex, exc_info=True) - # file is missing or corrupt so attempt to delete it - try: - os.remove(self.file_name) - except Exception as ex2: - logger.debug(ex2, exc_info=True) - self.initial_load_occurred = True - - def save(self): - self._check_for_initial_load() - self._save() - - def _save(self): - if self.file_name: - with os.fdopen(os.open(self.file_name, os.O_RDWR | os.O_CREAT | os.O_TRUNC, 0o600), 'w+') as cred_file: - cred_file.write(json.dumps(self.data)) - - def save_with_retry(self, retries=5): - self._check_for_initial_load() - for _ in range(retries - 1): - try: - self.save() - break - except OSError: - time.sleep(0.1) - else: - self.save() - - def clear(self): - if os.path.isfile(self.file_name): - logger.info("Deleting file: " + self.file_name) - os.remove(self.file_name) - else: - logger.info("File does not exist: " + self.file_name) - - def get(self, key, default=None): - self._check_for_initial_load() - return self.data.get(key, default) - - def __getitem__(self, key): - self._check_for_initial_load() - return self.data.setdefault(key, {}) - - def __setitem__(self, key, value): - self._check_for_initial_load() - self.data[key] = value - self.save_with_retry() - - def __delitem__(self, key): - self._check_for_initial_load() - del self.data[key] - self.save_with_retry() - - def __iter__(self): - self._check_for_initial_load() - return iter(self.data) - - def __len__(self): - self._check_for_initial_load() - return len(self.data) - - def _check_for_initial_load(self): - if not self.initial_load_occurred: - self.load() - - -def get_cache_dir(): - vsts_cache_dir = os.getenv('VSTS_CACHE_DIR', None) or os.path.expanduser(os.path.join('~', '.vsts', 'python-sdk', - 'cache')) - if not os.path.exists(vsts_cache_dir): - os.makedirs(vsts_cache_dir) - return vsts_cache_dir - - -DEFAULT_MAX_AGE = 3600 * 12 # 12 hours -DEFAULT_CACHE_DIR = get_cache_dir() - - -def get_cache(name, max_age=DEFAULT_MAX_AGE, cache_dir=DEFAULT_CACHE_DIR): - file_name = os.path.join(cache_dir, name + '.json') - return FileCache(file_name, max_age) - - -OPTIONS_CACHE = get_cache('options') -RESOURCE_CACHE = get_cache('resources') - - -# Code below this point from azure-cli-core -# https://github.com/Azure/azure-cli/blob/master/src/azure-cli-core/azure/cli/core/util.py - -def get_file_json(file_path, throw_on_empty=True, preserve_order=False): - content = read_file_content(file_path) - if not content and not throw_on_empty: - return None - return shell_safe_json_parse(content, preserve_order) - - -def read_file_content(file_path, allow_binary=False): - from codecs import open as codecs_open - # Note, always put 'utf-8-sig' first, so that BOM in WinOS won't cause trouble. - for encoding in ['utf-8-sig', 'utf-8', 'utf-16', 'utf-16le', 'utf-16be']: - try: - with codecs_open(file_path, encoding=encoding) as f: - logger.debug("attempting to read file %s as %s", file_path, encoding) - return f.read() - except UnicodeDecodeError: - if allow_binary: - with open(file_path, 'rb') as input_file: - logger.debug("attempting to read file %s as binary", file_path) - return base64.b64encode(input_file.read()).decode("utf-8") - else: - raise - except UnicodeError: - pass - - raise ValueError('Failed to decode file {} - unknown decoding'.format(file_path)) - - -def shell_safe_json_parse(json_or_dict_string, preserve_order=False): - """ Allows the passing of JSON or Python dictionary strings. This is needed because certain - JSON strings in CMD shell are not received in main's argv. This allows the user to specify - the alternative notation, which does not have this problem (but is technically not JSON). """ - try: - if not preserve_order: - return json.loads(json_or_dict_string) - from collections import OrderedDict - return json.loads(json_or_dict_string, object_pairs_hook=OrderedDict) - except ValueError: - import ast - return ast.literal_eval(json_or_dict_string) diff --git a/vsts/vsts/exceptions.py b/vsts/vsts/exceptions.py deleted file mode 100644 index 955c630d..00000000 --- a/vsts/vsts/exceptions.py +++ /dev/null @@ -1,41 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - ClientRequestError, - AuthenticationError, -) - - -class VstsClientError(ClientException): - pass - - -class VstsAuthenticationError(AuthenticationError): - pass - - -class VstsClientRequestError(ClientRequestError): - pass - - -class VstsServiceError(VstsClientRequestError): - """VstsServiceError. - """ - - def __init__(self, wrapped_exception): - self.inner_exception = None - if wrapped_exception.inner_exception is not None: - self.inner_exception = VstsServiceError(wrapped_exception.inner_exception) - super(VstsServiceError, self).__init__(message=wrapped_exception.message, - inner_exception=self.inner_exception) - self.message = wrapped_exception.message - self.exception_id = wrapped_exception.exception_id - self.type_name = wrapped_exception.type_name - self.type_key = wrapped_exception.type_key - self.error_code = wrapped_exception.error_code - self.event_id = wrapped_exception.event_id - self.custom_properties = wrapped_exception.custom_properties diff --git a/vsts/vsts/vss_client.py b/vsts/vsts/vss_client.py deleted file mode 100644 index 29b4283a..00000000 --- a/vsts/vsts/vss_client.py +++ /dev/null @@ -1,275 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from __future__ import print_function - -import logging -import os -import re -import uuid - -from msrest import Deserializer, Serializer -from msrest.exceptions import DeserializationError, SerializationError -from msrest.universal_http import ClientRequest -from msrest.service_client import ServiceClient -from .exceptions import VstsAuthenticationError, VstsClientRequestError, VstsServiceError -from .vss_client_configuration import VssClientConfiguration -from . import models -from ._file_cache import OPTIONS_CACHE as OPTIONS_FILE_CACHE - - -logger = logging.getLogger(__name__) - - -class VssClient(object): - """VssClient. - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - self.config = VssClientConfiguration(base_url) - self.config.credentials = creds - self._client = ServiceClient(creds, config=self.config) - _base_client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._base_deserialize = Deserializer(_base_client_models) - self._base_serialize = Serializer(_base_client_models) - self._all_host_types_locations = None - self._locations = None - self._suppress_fedauth_redirect = True - self._force_msa_pass_through = True - self.normalized_url = VssClient._normalize_url(base_url) - - def add_user_agent(self, user_agent): - if user_agent is not None: - self.config.add_user_agent(user_agent) - - def _send_request(self, request, headers=None, content=None, **operation_config): - """Prepare and send request object according to configuration. - :param ClientRequest request: The request object to be sent. - :param dict headers: Any headers to add to the request. - :param content: Any body data to add to the request. - :param config: Any specific config overrides - """ - if TRACE_ENV_VAR in os.environ and os.environ[TRACE_ENV_VAR] == 'true': - print(request.method + ' ' + request.url) - logger.debug('%s %s', request.method, request.url) - logger.debug('Request content: %s', content) - response = self._client.send(request=request, headers=headers, - content=content, **operation_config) - logger.debug('Response content: %s', response.content) - if response.status_code < 200 or response.status_code >= 300: - self._handle_error(request, response) - return response - - def _send(self, http_method, location_id, version, route_values=None, - query_parameters=None, content=None, media_type='application/json', accept_media_type='application/json'): - request = self._create_request_message(http_method=http_method, - location_id=location_id, - route_values=route_values, - query_parameters=query_parameters) - negotiated_version = self._negotiate_request_version( - self._get_resource_location(location_id), - version) - - if version != negotiated_version: - logger.info("Negotiated api version from '%s' down to '%s'. This means the client is newer than the server.", - version, - negotiated_version) - else: - logger.debug("Api version '%s'", negotiated_version) - - # Construct headers - headers = {'Content-Type': media_type + '; charset=utf-8', - 'Accept': accept_media_type + ';api-version=' + negotiated_version} - if self.config.additional_headers is not None: - for key in self.config.additional_headers: - headers[key] = self.config.additional_headers[key] - if self._suppress_fedauth_redirect: - headers['X-TFS-FedAuthRedirect'] = 'Suppress' - if self._force_msa_pass_through: - headers['X-VSS-ForceMsaPassThrough'] = 'true' - if VssClient._session_header_key in VssClient._session_data and VssClient._session_header_key not in headers: - headers[VssClient._session_header_key] = VssClient._session_data[VssClient._session_header_key] - response = self._send_request(request=request, headers=headers, content=content) - if VssClient._session_header_key in response.headers: - VssClient._session_data[VssClient._session_header_key] = response.headers[VssClient._session_header_key] - return response - - def _unwrap_collection(self, response): - if response.headers.get("transfer-encoding") == 'chunked': - wrapper = self._base_deserialize.deserialize_data(response.json(), 'VssJsonCollectionWrapper') - else: - wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) - collection = wrapper.value - return collection - - def _create_request_message(self, http_method, location_id, route_values=None, - query_parameters=None): - location = self._get_resource_location(location_id) - if location is None: - raise ValueError('API resource location ' + location_id + ' is not registered on ' - + self.config.base_url + '.') - if route_values is None: - route_values = {} - route_values['area'] = location.area - route_values['resource'] = location.resource_name - route_template = self._remove_optional_route_parameters(location.route_template, - route_values) - logger.debug('Route template: %s', location.route_template) - url = self._client.format_url(route_template, **route_values) - request = ClientRequest(method=http_method, url=self._client.format_url(url)) - if query_parameters: - request.format_parameters(query_parameters) - return request - - @staticmethod - def _remove_optional_route_parameters(route_template, route_values): - new_template = '' - route_template = route_template.replace('{*', '{') - for path_segment in route_template.split('/'): - if (len(path_segment) <= 2 or not path_segment[0] == '{' - or not path_segment[len(path_segment) - 1] == '}' - or path_segment[1:len(path_segment) - 1] in route_values): - new_template = new_template + '/' + path_segment - return new_template - - def _get_resource_location(self, location_id): - if self.config.base_url not in VssClient._locations_cache: - VssClient._locations_cache[self.config.base_url] = self._get_resource_locations(all_host_types=False) - for location in VssClient._locations_cache[self.config.base_url]: - if location.id == location_id: - return location - - def _get_resource_locations(self, all_host_types): - # Check local client's cached Options first - if all_host_types: - if self._all_host_types_locations is not None: - return self._all_host_types_locations - elif self._locations is not None: - return self._locations - - # Next check for options cached on disk - if not all_host_types and OPTIONS_FILE_CACHE[self.normalized_url]: - try: - logger.debug('File cache hit for options on: %s', self.normalized_url) - self._locations = self._base_deserialize.deserialize_data(OPTIONS_FILE_CACHE[self.normalized_url], - '[ApiResourceLocation]') - return self._locations - except DeserializationError as ex: - logger.debug(ex, exc_info=True) - else: - logger.debug('File cache miss for options on: %s', self.normalized_url) - - # Last resort, make the call to the server - options_uri = self._combine_url(self.config.base_url, '_apis') - request = ClientRequest(method='OPTIONS', url=self._client.format_url(options_uri)) - if all_host_types: - query_parameters = {'allHostTypes': True} - request.format_parameters(query_parameters) - headers = {'Accept': 'application/json'} - if self._suppress_fedauth_redirect: - headers['X-TFS-FedAuthRedirect'] = 'Suppress' - if self._force_msa_pass_through: - headers['X-VSS-ForceMsaPassThrough'] = 'true' - response = self._send_request(request, headers=headers) - wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) - if wrapper is None: - raise VstsClientRequestError("Failed to retrieve resource locations from: {}".format(options_uri)) - collection = wrapper.value - returned_locations = self._base_deserialize('[ApiResourceLocation]', - collection) - if all_host_types: - self._all_host_types_locations = returned_locations - else: - self._locations = returned_locations - try: - OPTIONS_FILE_CACHE[self.normalized_url] = wrapper.value - except SerializationError as ex: - logger.debug(ex, exc_info=True) - return returned_locations - - @staticmethod - def _negotiate_request_version(location, version): - if location is None or version is None: - return version - pattern = r'(\d+(\.\d)?)(-preview(.(\d+))?)?' - match = re.match(pattern, version) - requested_api_version = match.group(1) - if requested_api_version is not None: - requested_api_version = float(requested_api_version) - if location.min_version > requested_api_version: - # Client is older than the server. The server no longer supports this - # resource (deprecated). - return - elif location.max_version < requested_api_version: - # Client is newer than the server. Negotiate down to the latest version - # on the server - negotiated_version = str(location.max_version) - if float(location.released_version) < location.max_version: - negotiated_version += '-preview' - return negotiated_version - else: - # We can send at the requested api version. Make sure the resource version - # is not bigger than what the server supports - negotiated_version = str(requested_api_version) - is_preview = match.group(3) is not None - if is_preview: - negotiated_version += '-preview' - if match.group(5) is not None: - if location.resource_version < int(match.group(5)): - negotiated_version += '.' + str(location.resource_version) - else: - negotiated_version += '.' + match.group(5) - return negotiated_version - - @staticmethod - def _combine_url(part1, part2): - return part1.rstrip('/') + '/' + part2.strip('/') - - def _handle_error(self, request, response): - content_type = response.headers.get('Content-Type') - error_message = '' - if content_type is None or content_type.find('text/plain') < 0: - try: - wrapped_exception = self._base_deserialize('WrappedException', response) - if wrapped_exception is not None and wrapped_exception.message is not None: - raise VstsServiceError(wrapped_exception) - else: - # System exceptions from controllers are not returning wrapped exceptions. - # Following code is to handle this unusual exception json case. - # TODO: dig into this. - collection_wrapper = self._base_deserialize('VssJsonCollectionWrapper', response) - if collection_wrapper is not None and collection_wrapper.value is not None: - wrapped_exception = self._base_deserialize('ImproperException', collection_wrapper.value) - if wrapped_exception is not None and wrapped_exception.message is not None: - raise VstsClientRequestError(wrapped_exception.message) - # if we get here we still have not raised an exception, try to deserialize as a System Exception - system_exception = self._base_deserialize('SystemException', response) - if system_exception is not None and system_exception.message is not None: - raise VstsClientRequestError(system_exception.message) - except DeserializationError: - pass - elif response.content is not None: - error_message = response.content.decode("utf-8") + ' ' - if response.status_code == 401: - full_message_format = '{error_message}The requested resource requires user authentication: {url}' - raise VstsAuthenticationError(full_message_format.format(error_message=error_message, - url=request.url)) - else: - full_message_format = '{error_message}Operation returned an invalid status code of {status_code}.' - raise VstsClientRequestError(full_message_format.format(error_message=error_message, - status_code=response.status_code)) - - @staticmethod - def _normalize_url(url): - return url.rstrip('/').lower() - - _locations_cache = {} - _session_header_key = 'X-TFS-Session' - _session_data = {_session_header_key: str(uuid.uuid4())} - - -TRACE_ENV_VAR = 'vsts_python_print_urls' diff --git a/vsts/vsts/vss_client_configuration.py b/vsts/vsts/vss_client_configuration.py deleted file mode 100644 index 1e4001a3..00000000 --- a/vsts/vsts/vss_client_configuration.py +++ /dev/null @@ -1,17 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from msrest import Configuration -from .version import VERSION - - -class VssClientConfiguration(Configuration): - def __init__(self, base_url=None): - if not base_url: - raise ValueError('base_url is required.') - base_url = base_url.rstrip('/') - super(VssClientConfiguration, self).__init__(base_url) - self.add_user_agent('vsts/{}'.format(VERSION)) - self.additional_headers = {} diff --git a/vsts/vsts/vss_connection.py b/vsts/vsts/vss_connection.py deleted file mode 100644 index bcba321a..00000000 --- a/vsts/vsts/vss_connection.py +++ /dev/null @@ -1,104 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -import logging - -from msrest.service_client import ServiceClient -from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE -from .exceptions import VstsClientRequestError -from .location.v4_0.location_client import LocationClient -from .vss_client_configuration import VssClientConfiguration - -logger = logging.getLogger(__name__) - - -class VssConnection(object): - """VssConnection. - """ - - def __init__(self, base_url=None, creds=None, user_agent=None): - self._config = VssClientConfiguration(base_url) - self._addition_user_agent = user_agent - if user_agent is not None: - self._config.add_user_agent(user_agent) - self._client = ServiceClient(creds, self._config) - self._client_cache = {} - self.base_url = base_url - self._creds = creds - self._resource_areas = None - - def get_client(self, client_type): - """get_client. - """ - if client_type not in self._client_cache: - client_class = self._get_class(client_type) - self._client_cache[client_type] = self._get_client_instance(client_class) - return self._client_cache[client_type] - - @staticmethod - def _get_class(full_class_name): - parts = full_class_name.split('.') - module_name = ".".join(parts[:-1]) - imported = __import__(module_name) - for comp in parts[1:]: - imported = getattr(imported, comp) - return imported - - def _get_client_instance(self, client_class): - url = self._get_url_for_client_instance(client_class) - client = client_class(url, self._creds) - client.add_user_agent(self._addition_user_agent) - return client - - def _get_url_for_client_instance(self, client_class): - resource_id = client_class.resource_area_identifier - if resource_id is None: - return self.base_url - else: - resource_areas = self._get_resource_areas() - if resource_areas is None: - raise VstsClientRequestError(('Failed to retrieve resource areas ' - + 'from server: {url}').format(url=self.base_url)) - if not resource_areas: - # For OnPrem environments we get an empty list. - return self.base_url - for resource_area in resource_areas: - if resource_area.id.lower() == resource_id.lower(): - return resource_area.location_url - raise VstsClientRequestError(('Could not find information for resource area {id} ' - + 'from server: {url}').format(id=resource_id, - url=self.base_url)) - - def authenticate(self): - self._get_resource_areas(force=True) - - def _get_resource_areas(self, force=False): - if self._resource_areas is None or force: - location_client = LocationClient(self.base_url, self._creds) - if not force and RESOURCE_FILE_CACHE[location_client.normalized_url]: - try: - logger.debug('File cache hit for resources on: %s', location_client.normalized_url) - self._resource_areas = location_client._base_deserialize.deserialize_data(RESOURCE_FILE_CACHE[location_client.normalized_url], - '[ResourceAreaInfo]') - return self._resource_areas - except Exception as ex: - logger.debug(ex, exc_info=True) - elif not force: - logger.debug('File cache miss for resources on: %s', location_client.normalized_url) - self._resource_areas = location_client.get_resource_areas() - if self._resource_areas is None: - # For OnPrem environments we get an empty collection wrapper. - self._resource_areas = [] - try: - serialized = location_client._base_serialize.serialize_data(self._resource_areas, - '[ResourceAreaInfo]') - RESOURCE_FILE_CACHE[location_client.normalized_url] = serialized - except Exception as ex: - logger.debug(ex, exc_info=True) - return self._resource_areas - - @staticmethod - def _combine_url(part1, part2): - return part1.rstrip('/') + '/' + part2.strip('/') From 8823a37319ef7cc0501e734f84f828361e715b37 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 11 Feb 2019 20:02:31 -0500 Subject: [PATCH 100/191] temp fix for readme sample, until we add factory --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 943f593a..6da9af9f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ pip install vsts To use the API, establish a connection using a [personal access token](https://docs.microsoft.com/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=vsts) and the URL to your Azure DevOps organization. Then get a client from the connection and make API calls. ```python -from vsts.vss_connection import VssConnection +from azure.devops.connection import Connection from msrest.authentication import BasicAuthentication import pprint @@ -27,10 +27,10 @@ organization_url = 'https://dev.azure.com/YOURORG' # Create a connection to the org credentials = BasicAuthentication('', personal_access_token) -connection = VssConnection(base_url=organization_url, creds=credentials) +connection = Connection(base_url=organization_url, creds=credentials) # Get a client (the "core" client provides access to projects, teams, etc) -core_client = connection.get_client('vsts.core.v4_0.core_client.CoreClient') +core_client = connection.get_client('azure.devops.v4_0.core.core_client.CoreClient') # Get the list of projects in the org projects = core_client.get_projects() From e207807a5229db0872ce26829018007342cb2b3b Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 11 Feb 2019 20:34:12 -0500 Subject: [PATCH 101/191] Fix .gitignore --- .gitignore | 7 +- azure-devops/azure/devops/_models.py | 4 +- .../azure/devops/v4_0/release/__init__.py | 92 + .../azure/devops/v4_0/release/models.py | 3104 +++++++++++++++ .../devops/v4_0/release/release_client.py | 1689 ++++++++ .../azure/devops/v4_0/settings/__init__.py | 12 + .../devops/v4_0/settings/settings_client.py | 143 + .../azure/devops/v4_1/release/__init__.py | 101 + .../azure/devops/v4_1/release/models.py | 3465 +++++++++++++++++ .../devops/v4_1/release/release_client.py | 782 ++++ test.py | 107 + 11 files changed, 9501 insertions(+), 5 deletions(-) create mode 100644 azure-devops/azure/devops/v4_0/release/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/release/models.py create mode 100644 azure-devops/azure/devops/v4_0/release/release_client.py create mode 100644 azure-devops/azure/devops/v4_0/settings/__init__.py create mode 100644 azure-devops/azure/devops/v4_0/settings/settings_client.py create mode 100644 azure-devops/azure/devops/v4_1/release/__init__.py create mode 100644 azure-devops/azure/devops/v4_1/release/models.py create mode 100644 azure-devops/azure/devops/v4_1/release/release_client.py create mode 100644 test.py diff --git a/.gitignore b/.gitignore index e74518b7..6b0ad0d6 100644 --- a/.gitignore +++ b/.gitignore @@ -288,7 +288,7 @@ __pycache__/ # Telerik's JustMock configuration file *.jmconfig -# BizTalk build output +# BizTalk build outputv *.btp.cs *.btm.cs *.odx.cs @@ -296,5 +296,6 @@ __pycache__/ .vscode/ vsts/build/bdist.win32/ -# don't ignore release managment client -!vsts/vsts/release +# don't ignore release management client +!azure-devops/azure/devops/v4_0/release +!azure-devops/azure/devops/v4_1/release diff --git a/azure-devops/azure/devops/_models.py b/azure-devops/azure/devops/_models.py index b5486596..58f904ae 100644 --- a/azure-devops/azure/devops/_models.py +++ b/azure-devops/azure/devops/_models.py @@ -106,7 +106,7 @@ class SystemException(Model): :param class_name: :type class_name: str :param inner_exception: - :type inner_exception: :class:`SystemException ` + :type inner_exception: :class:`SystemException` :param message: :type message: str """ @@ -164,7 +164,7 @@ class WrappedException(Model): :param exception_id: :type exception_id: str :param inner_exception: - :type inner_exception: :class:`WrappedException ` + :type inner_exception: :class:`WrappedException` :param message: :type message: str :param type_name: diff --git a/azure-devops/azure/devops/v4_0/release/__init__.py b/azure-devops/azure/devops/v4_0/release/__init__.py new file mode 100644 index 00000000..0ac6221c --- /dev/null +++ b/azure-devops/azure/devops/v4_0/release/__init__.py @@ -0,0 +1,92 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'FavoriteItem', + 'Folder', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', +] diff --git a/azure-devops/azure/devops/v4_0/release/models.py b/azure-devops/azure/devops/v4_0/release/models.py new file mode 100644 index 00000000..0e42237d --- /dev/null +++ b/azure-devops/azure/devops/v4_0/release/models.py @@ -0,0 +1,3104 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentArtifactDefinition(Model): + """AgentArtifactDefinition. + + :param alias: + :type alias: str + :param artifact_type: + :type artifact_type: object + :param details: + :type details: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'object'}, + 'details': {'key': 'details', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): + super(AgentArtifactDefinition, self).__init__() + self.alias = alias + self.artifact_type = artifact_type + self.details = details + self.name = name + self.version = version + + +class ApprovalOptions(Model): + """ApprovalOptions. + + :param auto_triggered_and_previous_environment_approved_can_be_skipped: + :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool + :param enforce_identity_revalidation: + :type enforce_identity_revalidation: bool + :param release_creator_can_be_approver: + :type release_creator_can_be_approver: bool + :param required_approver_count: + :type required_approver_count: int + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, + 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, + 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, + 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): + super(ApprovalOptions, self).__init__() + self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped + self.enforce_identity_revalidation = enforce_identity_revalidation + self.release_creator_can_be_approver = release_creator_can_be_approver + self.required_approver_count = required_approver_count + self.timeout_in_minutes = timeout_in_minutes + + +class Artifact(Model): + """Artifact. + + :param alias: Gets or sets alias. + :type alias: str + :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} + :type definition_reference: dict + :param is_primary: Gets or sets as artifact is primary or not. + :type is_primary: bool + :param source_id: + :type source_id: str + :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. + :type type: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): + super(Artifact, self).__init__() + self.alias = alias + self.definition_reference = definition_reference + self.is_primary = is_primary + self.source_id = source_id + self.type = type + + +class ArtifactMetadata(Model): + """ArtifactMetadata. + + :param alias: Sets alias of artifact. + :type alias: str + :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. + :type instance_reference: :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} + } + + def __init__(self, alias=None, instance_reference=None): + super(ArtifactMetadata, self).__init__() + self.alias = alias + self.instance_reference = instance_reference + + +class ArtifactSourceReference(Model): + """ArtifactSourceReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ArtifactSourceReference, self).__init__() + self.id = id + self.name = name + + +class ArtifactTypeDefinition(Model): + """ArtifactTypeDefinition. + + :param display_name: + :type display_name: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + :param unique_source_identifier: + :type unique_source_identifier: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} + } + + def __init__(self, display_name=None, input_descriptors=None, name=None, unique_source_identifier=None): + super(ArtifactTypeDefinition, self).__init__() + self.display_name = display_name + self.input_descriptors = input_descriptors + self.name = name + self.unique_source_identifier = unique_source_identifier + + +class ArtifactVersion(Model): + """ArtifactVersion. + + :param alias: + :type alias: str + :param default_version: + :type default_version: :class:`BuildVersion ` + :param error_message: + :type error_message: str + :param source_id: + :type source_id: str + :param versions: + :type versions: list of :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[BuildVersion]'} + } + + def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): + super(ArtifactVersion, self).__init__() + self.alias = alias + self.default_version = default_version + self.error_message = error_message + self.source_id = source_id + self.versions = versions + + +class ArtifactVersionQueryResult(Model): + """ArtifactVersionQueryResult. + + :param artifact_versions: + :type artifact_versions: list of :class:`ArtifactVersion ` + """ + + _attribute_map = { + 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} + } + + def __init__(self, artifact_versions=None): + super(ArtifactVersionQueryResult, self).__init__() + self.artifact_versions = artifact_versions + + +class AutoTriggerIssue(Model): + """AutoTriggerIssue. + + :param issue: + :type issue: :class:`Issue ` + :param issue_source: + :type issue_source: object + :param project: + :type project: :class:`ProjectReference ` + :param release_definition_reference: + :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` + :param release_trigger_type: + :type release_trigger_type: object + """ + + _attribute_map = { + 'issue': {'key': 'issue', 'type': 'Issue'}, + 'issue_source': {'key': 'issueSource', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} + } + + def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): + super(AutoTriggerIssue, self).__init__() + self.issue = issue + self.issue_source = issue_source + self.project = project + self.release_definition_reference = release_definition_reference + self.release_trigger_type = release_trigger_type + + +class BuildVersion(Model): + """BuildVersion. + + :param id: + :type id: str + :param name: + :type name: str + :param source_branch: + :type source_branch: str + :param source_repository_id: + :type source_repository_id: str + :param source_repository_type: + :type source_repository_type: str + :param source_version: + :type source_version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'} + } + + def __init__(self, id=None, name=None, source_branch=None, source_repository_id=None, source_repository_type=None, source_version=None): + super(BuildVersion, self).__init__() + self.id = id + self.name = name + self.source_branch = source_branch + self.source_repository_id = source_repository_id + self.source_repository_type = source_repository_type + self.source_version = source_version + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param change_type: The type of change. "commit", "changeset", etc. + :type change_type: str + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: A description of the change. This might be a commit message or changeset description. + :type message: str + :param timestamp: A timestamp for the change. + :type timestamp: datetime + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} + } + + def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, timestamp=None): + super(Change, self).__init__() + self.author = author + self.change_type = change_type + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.timestamp = timestamp + + +class Condition(Model): + """Condition. + + :param condition_type: + :type condition_type: object + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, name=None, value=None): + super(Condition, self).__init__() + self.condition_type = condition_type + self.name = name + self.value = value + + +class ConfigurationVariableValue(Model): + """ConfigurationVariableValue. + + :param is_secret: Gets or sets as variable is secret or not. + :type is_secret: bool + :param value: Gets or sets value of the configuration variable. + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(ConfigurationVariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: + :type data_source_name: str + :param endpoint_id: + :type endpoint_id: str + :param endpoint_url: + :type endpoint_url: str + :param parameters: + :type parameters: dict + :param result_selector: + :type result_selector: str + :param result_template: + :type result_template: str + :param target: + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DefinitionEnvironmentReference(Model): + """DefinitionEnvironmentReference. + + :param definition_environment_id: + :type definition_environment_id: int + :param definition_environment_name: + :type definition_environment_name: str + :param release_definition_id: + :type release_definition_id: int + :param release_definition_name: + :type release_definition_name: str + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} + } + + def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): + super(DefinitionEnvironmentReference, self).__init__() + self.definition_environment_id = definition_environment_id + self.definition_environment_name = definition_environment_name + self.release_definition_id = release_definition_id + self.release_definition_name = release_definition_name + + +class Deployment(Model): + """Deployment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param attempt: + :type attempt: int + :param conditions: + :type conditions: list of :class:`Condition ` + :param definition_environment_id: + :type definition_environment_id: int + :param deployment_status: + :type deployment_status: object + :param id: + :type id: int + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param operation_status: + :type operation_status: object + :param post_deploy_approvals: + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deploy_approvals: + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param queued_on: + :type queued_on: datetime + :param reason: + :type reason: object + :param release: + :type release: :class:`ReleaseReference ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param requested_by: + :type requested_by: :class:`IdentityRef ` + :param requested_for: + :type requested_for: :class:`IdentityRef ` + :param scheduled_deployment_time: + :type scheduled_deployment_time: datetime + :param started_on: + :type started_on: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, attempt=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): + super(Deployment, self).__init__() + self._links = _links + self.attempt = attempt + self.conditions = conditions + self.definition_environment_id = definition_environment_id + self.deployment_status = deployment_status + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.queued_on = queued_on + self.reason = reason + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.requested_by = requested_by + self.requested_for = requested_for + self.scheduled_deployment_time = scheduled_deployment_time + self.started_on = started_on + + +class DeploymentAttempt(Model): + """DeploymentAttempt. + + :param attempt: + :type attempt: int + :param deployment_id: + :type deployment_id: int + :param error_log: Error log to show any unexpected error that occurred during executing deploy step + :type error_log: str + :param has_started: Specifies whether deployment has started or not + :type has_started: bool + :param id: + :type id: int + :param job: + :type job: :class:`ReleaseTask ` + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param operation_status: + :type operation_status: object + :param queued_on: + :type queued_on: datetime + :param reason: + :type reason: object + :param release_deploy_phases: + :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` + :param requested_by: + :type requested_by: :class:`IdentityRef ` + :param requested_for: + :type requested_for: :class:`IdentityRef ` + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'has_started': {'key': 'hasStarted', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): + super(DeploymentAttempt, self).__init__() + self.attempt = attempt + self.deployment_id = deployment_id + self.error_log = error_log + self.has_started = has_started + self.id = id + self.job = job + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.queued_on = queued_on + self.reason = reason + self.release_deploy_phases = release_deploy_phases + self.requested_by = requested_by + self.requested_for = requested_for + self.run_plan_id = run_plan_id + self.status = status + self.tasks = tasks + + +class DeploymentJob(Model): + """DeploymentJob. + + :param job: + :type job: :class:`ReleaseTask ` + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, job=None, tasks=None): + super(DeploymentJob, self).__init__() + self.job = job + self.tasks = tasks + + +class DeploymentQueryParameters(Model): + """DeploymentQueryParameters. + + :param artifact_source_id: + :type artifact_source_id: str + :param artifact_type_id: + :type artifact_type_id: str + :param artifact_versions: + :type artifact_versions: list of str + :param deployment_status: + :type deployment_status: object + :param environments: + :type environments: list of :class:`DefinitionEnvironmentReference ` + :param expands: + :type expands: object + :param is_deleted: + :type is_deleted: bool + :param latest_deployments_only: + :type latest_deployments_only: bool + :param max_deployments_per_environment: + :type max_deployments_per_environment: int + :param max_modified_time: + :type max_modified_time: datetime + :param min_modified_time: + :type min_modified_time: datetime + :param operation_status: + :type operation_status: object + :param query_order: + :type query_order: object + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, + 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, + 'expands': {'key': 'expands', 'type': 'object'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, + 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, + 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, + 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'query_order': {'key': 'queryOrder', 'type': 'object'} + } + + def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None): + super(DeploymentQueryParameters, self).__init__() + self.artifact_source_id = artifact_source_id + self.artifact_type_id = artifact_type_id + self.artifact_versions = artifact_versions + self.deployment_status = deployment_status + self.environments = environments + self.expands = expands + self.is_deleted = is_deleted + self.latest_deployments_only = latest_deployments_only + self.max_deployments_per_environment = max_deployments_per_environment + self.max_modified_time = max_modified_time + self.min_modified_time = min_modified_time + self.operation_status = operation_status + self.query_order = query_order + + +class EmailRecipients(Model): + """EmailRecipients. + + :param email_addresses: + :type email_addresses: list of str + :param tfs_ids: + :type tfs_ids: list of str + """ + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} + } + + def __init__(self, email_addresses=None, tfs_ids=None): + super(EmailRecipients, self).__init__() + self.email_addresses = email_addresses + self.tfs_ids = tfs_ids + + +class EnvironmentExecutionPolicy(Model): + """EnvironmentExecutionPolicy. + + :param concurrency_count: This policy decides, how many environments would be with Environment Runner. + :type concurrency_count: int + :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. + :type queue_depth_count: int + """ + + _attribute_map = { + 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, + 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} + } + + def __init__(self, concurrency_count=None, queue_depth_count=None): + super(EnvironmentExecutionPolicy, self).__init__() + self.concurrency_count = concurrency_count + self.queue_depth_count = queue_depth_count + + +class EnvironmentOptions(Model): + """EnvironmentOptions. + + :param email_notification_type: + :type email_notification_type: str + :param email_recipients: + :type email_recipients: str + :param enable_access_token: + :type enable_access_token: bool + :param publish_deployment_status: + :type publish_deployment_status: bool + :param skip_artifacts_download: + :type skip_artifacts_download: bool + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, + 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, + 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, + 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, + 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): + super(EnvironmentOptions, self).__init__() + self.email_notification_type = email_notification_type + self.email_recipients = email_recipients + self.enable_access_token = enable_access_token + self.publish_deployment_status = publish_deployment_status + self.skip_artifacts_download = skip_artifacts_download + self.timeout_in_minutes = timeout_in_minutes + + +class EnvironmentRetentionPolicy(Model): + """EnvironmentRetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + :param releases_to_keep: + :type releases_to_keep: int + :param retain_build: + :type retain_build: bool + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, + 'retain_build': {'key': 'retainBuild', 'type': 'bool'} + } + + def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): + super(EnvironmentRetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + self.releases_to_keep = releases_to_keep + self.retain_build = retain_build + + +class FavoriteItem(Model): + """FavoriteItem. + + :param data: Application specific data for the entry + :type data: str + :param id: Unique Id of the the entry + :type id: str + :param name: Display text for favorite entry + :type name: str + :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder + :type type: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, data=None, id=None, name=None, type=None): + super(FavoriteItem, self).__init__() + self.data = data + self.id = id + self.name = name + self.type = type + + +class Folder(Model): + """Folder. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param last_changed_by: + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: + :type last_changed_date: datetime + :param path: + :type path: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path + + +class IdentityRef(Model): + """IdentityRef. + + :param directory_alias: + :type directory_alias: str + :param display_name: + :type display_name: 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 profile_url: + :type profile_url: str + :param unique_name: + :type unique_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + 'display_name': {'key': 'displayName', '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'}, + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): + super(IdentityRef, self).__init__() + self.directory_alias = directory_alias + self.display_name = display_name + self.id = id + self.image_url = image_url + self.inactive = inactive + self.is_aad_identity = is_aad_identity + self.is_container = is_container + self.profile_url = profile_url + self.unique_name = unique_name + self.url = url + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class Issue(Model): + """Issue. + + :param issue_type: + :type issue_type: str + :param message: + :type message: str + """ + + _attribute_map = { + 'issue_type': {'key': 'issueType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, issue_type=None, message=None): + super(Issue, self).__init__() + self.issue_type = issue_type + self.message = message + + +class MailMessage(Model): + """MailMessage. + + :param body: + :type body: str + :param cC: + :type cC: :class:`EmailRecipients ` + :param in_reply_to: + :type in_reply_to: str + :param message_id: + :type message_id: str + :param reply_by: + :type reply_by: datetime + :param reply_to: + :type reply_to: :class:`EmailRecipients ` + :param sections: + :type sections: list of MailSectionType + :param sender_type: + :type sender_type: object + :param subject: + :type subject: str + :param to: + :type to: :class:`EmailRecipients ` + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, + 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, + 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, + 'sections': {'key': 'sections', 'type': '[object]'}, + 'sender_type': {'key': 'senderType', 'type': 'object'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'to': {'key': 'to', 'type': 'EmailRecipients'} + } + + def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): + super(MailMessage, self).__init__() + self.body = body + self.cC = cC + self.in_reply_to = in_reply_to + self.message_id = message_id + self.reply_by = reply_by + self.reply_to = reply_to + self.sections = sections + self.sender_type = sender_type + self.subject = subject + self.to = to + + +class ManualIntervention(Model): + """ManualIntervention. + + :param approver: + :type approver: :class:`IdentityRef ` + :param comments: + :type comments: str + :param created_on: + :type created_on: datetime + :param id: + :type id: int + :param instructions: + :type instructions: str + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param release: + :type release: :class:`ReleaseShallowReference ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param status: + :type status: object + :param task_instance_id: + :type task_instance_id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'instructions': {'key': 'instructions', 'type': 'str'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): + super(ManualIntervention, self).__init__() + self.approver = approver + self.comments = comments + self.created_on = created_on + self.id = id + self.instructions = instructions + self.modified_on = modified_on + self.name = name + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.status = status + self.task_instance_id = task_instance_id + self.url = url + + +class ManualInterventionUpdateMetadata(Model): + """ManualInterventionUpdateMetadata. + + :param comment: + :type comment: str + :param status: + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, status=None): + super(ManualInterventionUpdateMetadata, self).__init__() + self.comment = comment + self.status = status + + +class Metric(Model): + """Metric. + + :param name: + :type name: str + :param value: + :type value: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, name=None, value=None): + super(Metric, self).__init__() + self.name = name + self.value = value + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions + + +class ProjectReference(Model): + """ProjectReference. + + :param id: Gets the unique identifier of this field. + :type id: str + :param name: Gets name of project. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class QueuedReleaseData(Model): + """QueuedReleaseData. + + :param project_id: + :type project_id: str + :param queue_position: + :type queue_position: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, project_id=None, queue_position=None, release_id=None): + super(QueuedReleaseData, self).__init__() + self.project_id = project_id + self.queue_position = queue_position + self.release_id = release_id + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Release(Model): + """Release. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_snapshot_revision: Gets revision number of definition snapshot. + :type definition_snapshot_revision: int + :param description: Gets or sets description of release. + :type description: str + :param environments: Gets list of environments. + :type environments: list of :class:`ReleaseEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param keep_forever: Whether to exclude the release from retention policies. + :type keep_forever: bool + :param logs_container_url: Gets logs container url. + :type logs_container_url: str + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param pool_name: Gets pool name. + :type pool_name: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param properties: + :type properties: :class:`object ` + :param reason: Gets reason of release. + :type reason: object + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_name_format: Gets release name format. + :type release_name_format: str + :param status: Gets status. + :type status: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param url: + :type url: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_name': {'key': 'poolName', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, url=None, variable_groups=None, variables=None): + super(Release, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.definition_snapshot_revision = definition_snapshot_revision + self.description = description + self.environments = environments + self.id = id + self.keep_forever = keep_forever + self.logs_container_url = logs_container_url + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.pool_name = pool_name + self.project_reference = project_reference + self.properties = properties + self.reason = reason + self.release_definition = release_definition + self.release_name_format = release_name_format + self.status = status + self.tags = tags + self.url = url + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseApproval(Model): + """ReleaseApproval. + + :param approval_type: Gets or sets the type of approval. + :type approval_type: object + :param approved_by: Gets the identity who approved. + :type approved_by: :class:`IdentityRef ` + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. + :type attempt: int + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param history: Gets history which specifies all approvals associated with this approval. + :type history: list of :class:`ReleaseApprovalHistory ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_automated: Gets or sets as approval is automated or not. + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. + :type rank: int + :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param revision: Gets the revision number. + :type revision: int + :param status: Gets or sets the status of the approval. + :type status: object + :param trial_number: + :type trial_number: int + :param url: Gets url to access the approval. + :type url: str + """ + + _attribute_map = { + 'approval_type': {'key': 'approvalType', 'type': 'object'}, + 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'}, + 'trial_number': {'key': 'trialNumber', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): + super(ReleaseApproval, self).__init__() + self.approval_type = approval_type + self.approved_by = approved_by + self.approver = approver + self.attempt = attempt + self.comments = comments + self.created_on = created_on + self.history = history + self.id = id + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.modified_on = modified_on + self.rank = rank + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.revision = revision + self.status = status + self.trial_number = trial_number + self.url = url + + +class ReleaseApprovalHistory(Model): + """ReleaseApprovalHistory. + + :param approver: + :type approver: :class:`IdentityRef ` + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param comments: + :type comments: str + :param created_on: + :type created_on: datetime + :param modified_on: + :type modified_on: datetime + :param revision: + :type revision: int + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): + super(ReleaseApprovalHistory, self).__init__() + self.approver = approver + self.changed_by = changed_by + self.comments = comments + self.created_on = created_on + self.modified_on = modified_on + self.revision = revision + + +class ReleaseCondition(Condition): + """ReleaseCondition. + + :param condition_type: + :type condition_type: object + :param name: + :type name: str + :param value: + :type value: str + :param result: + :type result: bool + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'bool'} + } + + def __init__(self, condition_type=None, name=None, value=None, result=None): + super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) + self.result = result + + +class ReleaseDefinition(Model): + """ReleaseDefinition. + + :param _links: Gets links to access the release definition. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets the description. + :type description: str + :param environments: Gets or sets the list of environments. + :type environments: list of :class:`ReleaseDefinitionEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param last_release: Gets the reference of last release. + :type last_release: :class:`ReleaseReference ` + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param path: Gets or sets the path. + :type path: str + :param properties: Gets or sets properties. + :type properties: :class:`object ` + :param release_name_format: Gets or sets the release name format. + :type release_name_format: str + :param retention_policy: + :type retention_policy: :class:`RetentionPolicy ` + :param revision: Gets the revision number. + :type revision: int + :param source: Gets or sets source of release definition. + :type source: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggers: Gets or sets the list of triggers. + :type triggers: list of :class:`object ` + :param url: Gets url to access the release definition. + :type url: str + :param variable_groups: Gets or sets the list of variable groups. + :type variable_groups: list of int + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): + super(ReleaseDefinition, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.description = description + self.environments = environments + self.id = id + self.last_release = last_release + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.path = path + self.properties = properties + self.release_name_format = release_name_format + self.retention_policy = retention_policy + self.revision = revision + self.source = source + self.tags = tags + self.triggers = triggers + self.url = url + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseDefinitionApprovals(Model): + """ReleaseDefinitionApprovals. + + :param approval_options: + :type approval_options: :class:`ApprovalOptions ` + :param approvals: + :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` + """ + + _attribute_map = { + 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, + 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} + } + + def __init__(self, approval_options=None, approvals=None): + super(ReleaseDefinitionApprovals, self).__init__() + self.approval_options = approval_options + self.approvals = approvals + + +class ReleaseDefinitionEnvironment(Model): + """ReleaseDefinitionEnvironment. + + :param conditions: + :type conditions: list of :class:`Condition ` + :param demands: + :type demands: list of :class:`object ` + :param deploy_phases: + :type deploy_phases: list of :class:`object ` + :param deploy_step: + :type deploy_step: :class:`ReleaseDefinitionDeployStep ` + :param environment_options: + :type environment_options: :class:`EnvironmentOptions ` + :param execution_policy: + :type execution_policy: :class:`EnvironmentExecutionPolicy ` + :param id: + :type id: int + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param post_deploy_approvals: + :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: + :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param process_parameters: + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param queue_id: + :type queue_id: int + :param rank: + :type rank: int + :param retention_policy: + :type retention_policy: :class:`EnvironmentRetentionPolicy ` + :param run_options: + :type run_options: dict + :param schedules: + :type schedules: list of :class:`ReleaseSchedule ` + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, + 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'run_options': {'key': 'runOptions', 'type': '{str}'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, pre_deploy_approvals=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variables=None): + super(ReleaseDefinitionEnvironment, self).__init__() + self.conditions = conditions + self.demands = demands + self.deploy_phases = deploy_phases + self.deploy_step = deploy_step + self.environment_options = environment_options + self.execution_policy = execution_policy + self.id = id + self.name = name + self.owner = owner + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.process_parameters = process_parameters + self.properties = properties + self.queue_id = queue_id + self.rank = rank + self.retention_policy = retention_policy + self.run_options = run_options + self.schedules = schedules + self.variables = variables + + +class ReleaseDefinitionEnvironmentStep(Model): + """ReleaseDefinitionEnvironmentStep. + + :param id: + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(ReleaseDefinitionEnvironmentStep, self).__init__() + self.id = id + + +class ReleaseDefinitionEnvironmentSummary(Model): + """ReleaseDefinitionEnvironmentSummary. + + :param id: + :type id: int + :param last_releases: + :type last_releases: list of :class:`ReleaseShallowReference ` + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, last_releases=None, name=None): + super(ReleaseDefinitionEnvironmentSummary, self).__init__() + self.id = id + self.last_releases = last_releases + self.name = name + + +class ReleaseDefinitionEnvironmentTemplate(Model): + """ReleaseDefinitionEnvironmentTemplate. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param description: + :type description: str + :param environment: + :type environment: :class:`ReleaseDefinitionEnvironment ` + :param icon_task_id: + :type icon_task_id: str + :param icon_uri: + :type icon_uri: str + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, name=None): + super(ReleaseDefinitionEnvironmentTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.environment = environment + self.icon_task_id = icon_task_id + self.icon_uri = icon_uri + self.id = id + self.name = name + + +class ReleaseDefinitionRevision(Model): + """ReleaseDefinitionRevision. + + :param api_version: Gets api-version for revision object. + :type api_version: str + :param changed_by: Gets the identity who did change. + :type changed_by: :class:`IdentityRef ` + :param changed_date: Gets date on which it got changed. + :type changed_date: datetime + :param change_type: Gets type of change. + :type change_type: object + :param comment: Gets comments for revision. + :type comment: str + :param definition_id: Get id of the definition. + :type definition_id: int + :param definition_url: Gets definition url. + :type definition_url: str + :param revision: Get revision number of the definition. + :type revision: int + """ + + _attribute_map = { + 'api_version': {'key': 'apiVersion', 'type': 'str'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): + super(ReleaseDefinitionRevision, self).__init__() + self.api_version = api_version + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_id = definition_id + self.definition_url = definition_url + self.revision = revision + + +class ReleaseDefinitionShallowReference(Model): + """ReleaseDefinitionShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param url: Gets the REST API url to access the release definition. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseDefinitionShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseDefinitionSummary(Model): + """ReleaseDefinitionSummary. + + :param environments: + :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param releases: + :type releases: list of :class:`Release ` + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'releases': {'key': 'releases', 'type': '[Release]'} + } + + def __init__(self, environments=None, release_definition=None, releases=None): + super(ReleaseDefinitionSummary, self).__init__() + self.environments = environments + self.release_definition = release_definition + self.releases = releases + + +class ReleaseDeployPhase(Model): + """ReleaseDeployPhase. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param error_log: + :type error_log: str + :param id: + :type id: int + :param manual_interventions: + :type manual_interventions: list of :class:`ManualIntervention ` + :param phase_type: + :type phase_type: object + :param rank: + :type rank: int + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, phase_type=None, rank=None, run_plan_id=None, status=None): + super(ReleaseDeployPhase, self).__init__() + self.deployment_jobs = deployment_jobs + self.error_log = error_log + self.id = id + self.manual_interventions = manual_interventions + self.phase_type = phase_type + self.rank = rank + self.run_plan_id = run_plan_id + self.status = status + + +class ReleaseEnvironment(Model): + """ReleaseEnvironment. + + :param conditions: Gets list of conditions. + :type conditions: list of :class:`ReleaseCondition ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_environment_id: Gets definition environment id. + :type definition_environment_id: int + :param demands: Gets demands. + :type demands: list of :class:`object ` + :param deploy_phases_snapshot: Gets list of deploy phases snapshot. + :type deploy_phases_snapshot: list of :class:`object ` + :param deploy_steps: Gets deploy steps. + :type deploy_steps: list of :class:`DeploymentAttempt ` + :param environment_options: Gets environment options. + :type environment_options: :class:`EnvironmentOptions ` + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param next_scheduled_utc_time: Gets next scheduled UTC time. + :type next_scheduled_utc_time: datetime + :param owner: Gets the identity who is owner for release environment. + :type owner: :class:`IdentityRef ` + :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. + :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param post_deploy_approvals: Gets list of post deploy approvals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. + :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: Gets list of pre deploy approvals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param process_parameters: Gets process parameters. + :type process_parameters: :class:`ProcessParameters ` + :param queue_id: Gets queue id. + :type queue_id: int + :param rank: Gets rank. + :type rank: int + :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_created_by: Gets the identity who created release. + :type release_created_by: :class:`IdentityRef ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_description: Gets release description. + :type release_description: str + :param release_id: Gets release id. + :type release_id: int + :param scheduled_deployment_time: Gets schedule deployment time of release environment. + :type scheduled_deployment_time: datetime + :param schedules: Gets list of schedules. + :type schedules: list of :class:`ReleaseSchedule ` + :param status: Gets environment status. + :type status: object + :param time_to_deploy: Gets time to deploy. + :type time_to_deploy: float + :param trigger_reason: Gets trigger reason. + :type trigger_reason: str + :param variables: Gets the dictionary of variables. + :type variables: dict + :param workflow_tasks: Gets list of workflow tasks. + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, + 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_description': {'key': 'releaseDescription', 'type': 'str'}, + 'release_id': {'key': 'releaseId', 'type': 'int'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'status': {'key': 'status', 'type': 'object'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, + 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variables=None, workflow_tasks=None): + super(ReleaseEnvironment, self).__init__() + self.conditions = conditions + self.created_on = created_on + self.definition_environment_id = definition_environment_id + self.demands = demands + self.deploy_phases_snapshot = deploy_phases_snapshot + self.deploy_steps = deploy_steps + self.environment_options = environment_options + self.id = id + self.modified_on = modified_on + self.name = name + self.next_scheduled_utc_time = next_scheduled_utc_time + self.owner = owner + self.post_approvals_snapshot = post_approvals_snapshot + self.post_deploy_approvals = post_deploy_approvals + self.pre_approvals_snapshot = pre_approvals_snapshot + self.pre_deploy_approvals = pre_deploy_approvals + self.process_parameters = process_parameters + self.queue_id = queue_id + self.rank = rank + self.release = release + self.release_created_by = release_created_by + self.release_definition = release_definition + self.release_description = release_description + self.release_id = release_id + self.scheduled_deployment_time = scheduled_deployment_time + self.schedules = schedules + self.status = status + self.time_to_deploy = time_to_deploy + self.trigger_reason = trigger_reason + self.variables = variables + self.workflow_tasks = workflow_tasks + + +class ReleaseEnvironmentShallowReference(Model): + """ReleaseEnvironmentShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release environment. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release environment. + :type id: int + :param name: Gets or sets the name of the release environment. + :type name: str + :param url: Gets the REST API url to access the release environment. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseEnvironmentShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseEnvironmentUpdateMetadata(Model): + """ReleaseEnvironmentUpdateMetadata. + + :param comment: Gets or sets comment. + :type comment: str + :param scheduled_deployment_time: Gets or sets scheduled deployment time. + :type scheduled_deployment_time: datetime + :param status: Gets or sets status of environment. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, scheduled_deployment_time=None, status=None): + super(ReleaseEnvironmentUpdateMetadata, self).__init__() + self.comment = comment + self.scheduled_deployment_time = scheduled_deployment_time + self.status = status + + +class ReleaseReference(Model): + """ReleaseReference. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param created_by: Gets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param name: Gets name of release. + :type name: str + :param reason: Gets reason for release. + :type reason: object + :param release_definition: Gets release definition shallow reference. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param url: + :type url: str + :param web_access_uri: + :type web_access_uri: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} + } + + def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): + super(ReleaseReference, self).__init__() + self._links = _links + self.artifacts = artifacts + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.name = name + self.reason = reason + self.release_definition = release_definition + self.url = url + self.web_access_uri = web_access_uri + + +class ReleaseRevision(Model): + """ReleaseRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_details: + :type change_details: str + :param change_type: + :type change_type: str + :param comment: + :type comment: str + :param definition_snapshot_revision: + :type definition_snapshot_revision: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_details': {'key': 'changeDetails', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): + super(ReleaseRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_details = change_details + self.change_type = change_type + self.comment = comment + self.definition_snapshot_revision = definition_snapshot_revision + self.release_id = release_id + + +class ReleaseSchedule(Model): + """ReleaseSchedule. + + :param days_to_release: Days of the week to release + :type days_to_release: object + :param job_id: Team Foundation Job Definition Job Id + :type job_id: str + :param start_hours: Local time zone hour to start + :type start_hours: int + :param start_minutes: Local time zone minute to start + :type start_minutes: int + :param time_zone_id: Time zone Id of release schedule, such as 'UTC' + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(ReleaseSchedule, self).__init__() + self.days_to_release = days_to_release + self.job_id = job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id + + +class ReleaseSettings(Model): + """ReleaseSettings. + + :param retention_settings: + :type retention_settings: :class:`RetentionSettings ` + """ + + _attribute_map = { + 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} + } + + def __init__(self, retention_settings=None): + super(ReleaseSettings, self).__init__() + self.retention_settings = retention_settings + + +class ReleaseShallowReference(Model): + """ReleaseShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release. + :type id: int + :param name: Gets or sets the name of the release. + :type name: str + :param url: Gets the REST API url to access the release. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseStartMetadata(Model): + """ReleaseStartMetadata. + + :param artifacts: Sets list of artifact to create a release. + :type artifacts: list of :class:`ArtifactMetadata ` + :param definition_id: Sets definition Id to create a release. + :type definition_id: int + :param description: Sets description to create a release. + :type description: str + :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. + :type is_draft: bool + :param manual_environments: Sets list of environments to manual as condition. + :type manual_environments: list of str + :param properties: + :type properties: :class:`object ` + :param reason: Sets reason to create a release. + :type reason: object + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'} + } + + def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): + super(ReleaseStartMetadata, self).__init__() + self.artifacts = artifacts + self.definition_id = definition_id + self.description = description + self.is_draft = is_draft + self.manual_environments = manual_environments + self.properties = properties + self.reason = reason + + +class ReleaseTask(Model): + """ReleaseTask. + + :param agent_name: + :type agent_name: str + :param date_ended: + :type date_ended: datetime + :param date_started: + :type date_started: datetime + :param finish_time: + :type finish_time: datetime + :param id: + :type id: int + :param issues: + :type issues: list of :class:`Issue ` + :param line_count: + :type line_count: long + :param log_url: + :type log_url: str + :param name: + :type name: str + :param percent_complete: + :type percent_complete: int + :param rank: + :type rank: int + :param start_time: + :type start_time: datetime + :param status: + :type status: object + :param task: + :type task: :class:`WorkflowTaskReference ` + :param timeline_record_id: + :type timeline_record_id: str + """ + + _attribute_map = { + 'agent_name': {'key': 'agentName', 'type': 'str'}, + 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, + 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'log_url': {'key': 'logUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, + 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} + } + + def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): + super(ReleaseTask, self).__init__() + self.agent_name = agent_name + self.date_ended = date_ended + self.date_started = date_started + self.finish_time = finish_time + self.id = id + self.issues = issues + self.line_count = line_count + self.log_url = log_url + self.name = name + self.percent_complete = percent_complete + self.rank = rank + self.start_time = start_time + self.status = status + self.task = task + self.timeline_record_id = timeline_record_id + + +class ReleaseUpdateMetadata(Model): + """ReleaseUpdateMetadata. + + :param comment: Sets comment for release. + :type comment: str + :param keep_forever: Set 'true' to exclude the release from retention policies. + :type keep_forever: bool + :param manual_environments: Sets list of manual environments. + :type manual_environments: list of str + :param status: Sets status of the release. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): + super(ReleaseUpdateMetadata, self).__init__() + self.comment = comment + self.keep_forever = keep_forever + self.manual_environments = manual_environments + self.status = status + + +class ReleaseWorkItemRef(Model): + """ReleaseWorkItemRef. + + :param assignee: + :type assignee: str + :param id: + :type id: str + :param state: + :type state: str + :param title: + :type title: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'assignee': {'key': 'assignee', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): + super(ReleaseWorkItemRef, self).__init__() + self.assignee = assignee + self.id = id + self.state = state + self.title = title + self.type = type + self.url = url + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} + } + + def __init__(self, days_to_keep=None): + super(RetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + + +class RetentionSettings(Model): + """RetentionSettings. + + :param days_to_keep_deleted_releases: + :type days_to_keep_deleted_releases: int + :param default_environment_retention_policy: + :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + :param maximum_environment_retention_policy: + :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, + 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): + super(RetentionSettings, self).__init__() + self.days_to_keep_deleted_releases = days_to_keep_deleted_releases + self.default_environment_retention_policy = default_environment_retention_policy + self.maximum_environment_retention_policy = maximum_environment_retention_policy + + +class SummaryMailSection(Model): + """SummaryMailSection. + + :param html_content: + :type html_content: str + :param rank: + :type rank: int + :param section_type: + :type section_type: object + :param title: + :type title: str + """ + + _attribute_map = { + 'html_content': {'key': 'htmlContent', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'section_type': {'key': 'sectionType', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, html_content=None, rank=None, section_type=None, title=None): + super(SummaryMailSection, self).__init__() + self.html_content = html_content + self.rank = rank + self.section_type = section_type + self.title = title + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets name. + :type name: str + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type. + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class WorkflowTask(Model): + """WorkflowTask. + + :param always_run: + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: + :type continue_on_error: bool + :param definition_type: + :type definition_type: str + :param enabled: + :type enabled: bool + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param override_inputs: + :type override_inputs: dict + :param ref_name: + :type ref_name: str + :param task_id: + :type task_id: str + :param timeout_in_minutes: + :type timeout_in_minutes: int + :param version: + :type version: str + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): + super(WorkflowTask, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.definition_type = definition_type + self.enabled = enabled + self.inputs = inputs + self.name = name + self.override_inputs = override_inputs + self.ref_name = ref_name + self.task_id = task_id + self.timeout_in_minutes = timeout_in_minutes + self.version = version + + +class WorkflowTaskReference(Model): + """WorkflowTaskReference. + + :param id: + :type id: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(WorkflowTaskReference, self).__init__() + self.id = id + self.name = name + self.version = version + + +class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionApprovalStep. + + :param id: + :type id: int + :param approver: + :type approver: :class:`IdentityRef ` + :param is_automated: + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param rank: + :type rank: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): + super(ReleaseDefinitionApprovalStep, self).__init__(id=id) + self.approver = approver + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.rank = rank + + +class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionDeployStep. + + :param id: + :type id: int + :param tasks: The list of steps for this definition. + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, id=None, tasks=None): + super(ReleaseDefinitionDeployStep, self).__init__(id=id) + self.tasks = tasks + + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'FavoriteItem', + 'Folder', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', +] diff --git a/azure-devops/azure/devops/v4_0/release/release_client.py b/azure-devops/azure/devops/v4_0/release/release_client.py new file mode 100644 index 00000000..02e18fc7 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/release/release_client.py @@ -0,0 +1,1689 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ReleaseClient(Client): + """Release + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' + + def get_agent_artifact_definitions(self, project, release_id): + """GetAgentArtifactDefinitions. + [Preview API] Returns the artifact details that automation agent requires + :param str project: Project ID or project name + :param int release_id: + :rtype: [AgentArtifactDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='f2571c27-bf50-4938-b396-32d109ddef26', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[AgentArtifactDefinition]', self._unwrap_collection(response)) + + def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): + """GetApprovals. + [Preview API] Get a list of approvals + :param str project: Project ID or project name + :param str assigned_to_filter: Approvals assigned to this user. + :param str status_filter: Approvals with this status. Default is 'pending'. + :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. + :param str type_filter: Approval with this type. + :param int top: Number of approvals to get. Default is 50. + :param int continuation_token: Gets the approvals after the continuation token provided. + :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. + :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if assigned_to_filter is not None: + query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if release_ids_filter is not None: + release_ids_filter = ",".join(map(str, release_ids_filter)) + query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') + if type_filter is not None: + query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if include_my_group_approvals is not None: + query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') + response = self._send(http_method='GET', + location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) + + def get_approval_history(self, project, approval_step_id): + """GetApprovalHistory. + [Preview API] Get approval history. + :param str project: Project ID or project name + :param int approval_step_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_step_id is not None: + route_values['approvalStepId'] = self._serialize.url('approval_step_id', approval_step_id, 'int') + response = self._send(http_method='GET', + location_id='250c7158-852e-4130-a00f-a0cce9b72d05', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ReleaseApproval', response) + + def get_approval(self, project, approval_id, include_history=None): + """GetApproval. + [Preview API] Get an approval. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :param bool include_history: 'true' to include history of the approval. Default is 'false'. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + query_parameters = {} + if include_history is not None: + query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') + response = self._send(http_method='GET', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseApproval', response) + + def update_release_approval(self, approval, project, approval_id): + """UpdateReleaseApproval. + [Preview API] Update status of an approval + :param :class:` ` approval: ReleaseApproval object having status, approver and comments. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + content = self._serialize.body(approval, 'ReleaseApproval') + response = self._send(http_method='PATCH', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReleaseApproval', response) + + def update_release_approvals(self, approvals, project): + """UpdateReleaseApprovals. + [Preview API] + :param [ReleaseApproval] approvals: + :param str project: Project ID or project name + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(approvals, '[ReleaseApproval]') + response = self._send(http_method='PATCH', + location_id='c957584a-82aa-4131-8222-6d47f78bfa7a', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) + + def get_auto_trigger_issues(self, artifact_type, source_id, artifact_version_id): + """GetAutoTriggerIssues. + [Preview API] + :param str artifact_type: + :param str source_id: + :param str artifact_version_id: + :rtype: [AutoTriggerIssue] + """ + query_parameters = {} + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + response = self._send(http_method='GET', + location_id='c1a68497-69da-40fb-9423-cab19cfeeca9', + version='4.0-preview.1', + query_parameters=query_parameters) + return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) + + def get_release_changes(self, project, release_id, base_release_id=None, top=None): + """GetReleaseChanges. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int base_release_id: + :param int top: + :rtype: [Change] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if base_release_id is not None: + query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='8dcf9fe9-ca37-4113-8ee1-37928e98407c', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Change]', self._unwrap_collection(response)) + + def get_definition_environments(self, project, task_group_id=None, property_filters=None): + """GetDefinitionEnvironments. + [Preview API] + :param str project: Project ID or project name + :param str task_group_id: + :param [str] property_filters: + :rtype: [DefinitionEnvironmentReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if task_group_id is not None: + query_parameters['taskGroupId'] = self._serialize.query('task_group_id', task_group_id, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='12b5d21a-f54c-430e-a8c1-7515d196890e', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[DefinitionEnvironmentReference]', self._unwrap_collection(response)) + + def create_release_definition(self, release_definition, project): + """CreateReleaseDefinition. + [Preview API] Create a release definition + :param :class:` ` release_definition: release definition object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='POST', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def delete_release_definition(self, project, definition_id): + """DeleteReleaseDefinition. + [Preview API] Delete a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + self._send(http_method='DELETE', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values) + + def get_release_definition(self, project, definition_id, property_filters=None): + """GetReleaseDefinition. + [Preview API] Get a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinition', response) + + def get_release_definition_revision(self, project, definition_id, revision, **kwargs): + """GetReleaseDefinitionRevision. + [Preview API] Get release definition of a given revision. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param int revision: Revision number of the release definition. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if revision is not None: + query_parameters['revision'] = self._serialize.query('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None): + """GetReleaseDefinitions. + [Preview API] Get a list of release definitions. + :param str project: Project ID or project name + :param str search_text: Get release definitions with names starting with searchText. + :param str expand: The properties that should be expanded in the list of Release definitions. + :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param int top: Number of release definitions to get. + :param str continuation_token: Gets the release definitions after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. + :param str path: Gets the release definitions under the specified path. + :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. + :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. + :rtype: [ReleaseDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if is_exact_name_match is not None: + query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if definition_id_filter is not None: + definition_id_filter = ",".join(definition_id_filter) + query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) + + def update_release_definition(self, release_definition, project): + """UpdateReleaseDefinition. + [Preview API] Update a release definition. + :param :class:` ` release_definition: Release definition object to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='PUT', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.0-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None): + """GetDeployments. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :param int definition_environment_id: + :param str created_by: + :param datetime min_modified_time: + :param datetime max_modified_time: + :param str deployment_status: + :param str operation_status: + :param bool latest_attempts_only: + :param str query_order: + :param int top: + :param int continuation_token: + :param str created_for: + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if min_modified_time is not None: + query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') + if max_modified_time is not None: + query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') + if deployment_status is not None: + query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') + if operation_status is not None: + query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') + if latest_attempts_only is not None: + query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if created_for is not None: + query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + response = self._send(http_method='GET', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) + + def get_deployments_for_multiple_environments(self, query_parameters, project): + """GetDeploymentsForMultipleEnvironments. + [Preview API] + :param :class:` ` query_parameters: + :param str project: Project ID or project name + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query_parameters, 'DeploymentQueryParameters') + response = self._send(http_method='POST', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) + + def get_release_environment(self, project, release_id, environment_id): + """GetReleaseEnvironment. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + response = self._send(http_method='GET', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='4.0-preview.4', + route_values=route_values) + return self._deserialize('ReleaseEnvironment', response) + + def update_release_environment(self, environment_update_data, project, release_id, environment_id): + """UpdateReleaseEnvironment. + [Preview API] Update the status of a release environment + :param :class:` ` environment_update_data: Environment update meta data. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('ReleaseEnvironment', response) + + def create_definition_environment_template(self, template, project): + """CreateDefinitionEnvironmentTemplate. + [Preview API] + :param :class:` ` template: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(template, 'ReleaseDefinitionEnvironmentTemplate') + response = self._send(http_method='POST', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) + + def delete_definition_environment_template(self, project, template_id): + """DeleteDefinitionEnvironmentTemplate. + [Preview API] + :param str project: Project ID or project name + :param str template_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if template_id is not None: + query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') + self._send(http_method='DELETE', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + + def get_definition_environment_template(self, project, template_id): + """GetDefinitionEnvironmentTemplate. + [Preview API] + :param str project: Project ID or project name + :param str template_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if template_id is not None: + query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') + response = self._send(http_method='GET', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) + + def list_definition_environment_templates(self, project): + """ListDefinitionEnvironmentTemplates. + [Preview API] + :param str project: Project ID or project name + :rtype: [ReleaseDefinitionEnvironmentTemplate] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='6b03b696-824e-4479-8eb2-6644a51aba89', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('[ReleaseDefinitionEnvironmentTemplate]', self._unwrap_collection(response)) + + def create_favorites(self, favorite_items, project, scope, identity_id=None): + """CreateFavorites. + [Preview API] + :param [FavoriteItem] favorite_items: + :param str project: Project ID or project name + :param str scope: + :param str identity_id: + :rtype: [FavoriteItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if scope is not None: + route_values['scope'] = self._serialize.url('scope', scope, 'str') + query_parameters = {} + if identity_id is not None: + query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') + content = self._serialize.body(favorite_items, '[FavoriteItem]') + response = self._send(http_method='POST', + location_id='938f7222-9acb-48fe-b8a3-4eda04597171', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) + + def delete_favorites(self, project, scope, identity_id=None, favorite_item_ids=None): + """DeleteFavorites. + [Preview API] + :param str project: Project ID or project name + :param str scope: + :param str identity_id: + :param str favorite_item_ids: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if scope is not None: + route_values['scope'] = self._serialize.url('scope', scope, 'str') + query_parameters = {} + if identity_id is not None: + query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') + if favorite_item_ids is not None: + query_parameters['favoriteItemIds'] = self._serialize.query('favorite_item_ids', favorite_item_ids, 'str') + self._send(http_method='DELETE', + location_id='938f7222-9acb-48fe-b8a3-4eda04597171', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_favorites(self, project, scope, identity_id=None): + """GetFavorites. + [Preview API] + :param str project: Project ID or project name + :param str scope: + :param str identity_id: + :rtype: [FavoriteItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if scope is not None: + route_values['scope'] = self._serialize.url('scope', scope, 'str') + query_parameters = {} + if identity_id is not None: + query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') + response = self._send(http_method='GET', + location_id='938f7222-9acb-48fe-b8a3-4eda04597171', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) + + def create_folder(self, folder, project, path): + """CreateFolder. + [Preview API] Creates a new folder + :param :class:` ` folder: + :param str project: Project ID or project name + :param str path: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + content = self._serialize.body(folder, 'Folder') + response = self._send(http_method='POST', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Folder', response) + + def delete_folder(self, project, path): + """DeleteFolder. + [Preview API] Deletes a definition folder for given folder name and path and all it's existing definitions + :param str project: Project ID or project name + :param str path: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + self._send(http_method='DELETE', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values) + + def get_folders(self, project, path=None, query_order=None): + """GetFolders. + [Preview API] Gets folders + :param str project: Project ID or project name + :param str path: + :param str query_order: + :rtype: [Folder] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + query_parameters = {} + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + response = self._send(http_method='GET', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Folder]', self._unwrap_collection(response)) + + def update_folder(self, folder, project, path): + """UpdateFolder. + [Preview API] Updates an existing folder at given existing path + :param :class:` ` folder: + :param str project: Project ID or project name + :param str path: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + content = self._serialize.body(folder, 'Folder') + response = self._send(http_method='PATCH', + location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Folder', response) + + def get_release_history(self, project, release_id): + """GetReleaseHistory. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :rtype: [ReleaseRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='23f461c8-629a-4144-a076-3054fa5f268a', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseRevision]', self._unwrap_collection(response)) + + def get_input_values(self, query, project): + """GetInputValues. + [Preview API] + :param :class:` ` query: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query, 'InputValuesQuery') + response = self._send(http_method='POST', + location_id='71dd499b-317d-45ea-9134-140ea1932b5e', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('InputValuesQuery', response) + + def get_issues(self, project, build_id, source_id=None): + """GetIssues. + [Preview API] + :param str project: Project ID or project name + :param int build_id: + :param str source_id: + :rtype: [AutoTriggerIssue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + response = self._send(http_method='GET', + location_id='cd42261a-f5c6-41c8-9259-f078989b9f25', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) + + def get_log(self, project, release_id, environment_id, task_id, attempt_id=None, **kwargs): + """GetLog. + [Preview API] Gets logs + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int task_id: ReleaseTask Id for the log. + :param int attempt_id: Id of the attempt. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + query_parameters = {} + if attempt_id is not None: + query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') + response = self._send(http_method='GET', + location_id='e71ba1ed-c0a4-4a28-a61f-2dd5f68cf3fd', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_logs(self, project, release_id, **kwargs): + """GetLogs. + [Preview API] Get logs for a release Id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', + version='4.0-preview.2', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, **kwargs): + """GetTaskLog. + [Preview API] Gets the task log of a release as a plain text file. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int release_deploy_phase_id: Release deploy phase Id. + :param int task_id: ReleaseTask Id for the log. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + response = self._send(http_method='GET', + location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', + version='4.0-preview.2', + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_manual_intervention(self, project, release_id, manual_intervention_id): + """GetManualIntervention. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int manual_intervention_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ManualIntervention', response) + + def get_manual_interventions(self, project, release_id): + """GetManualInterventions. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :rtype: [ManualIntervention] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) + + def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): + """UpdateManualIntervention. + [Preview API] + :param :class:` ` manual_intervention_update_metadata: + :param str project: Project ID or project name + :param int release_id: + :param int manual_intervention_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ManualIntervention', response) + + def get_metrics(self, project, min_metrics_time=None): + """GetMetrics. + [Preview API] + :param str project: Project ID or project name + :param datetime min_metrics_time: + :rtype: [Metric] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if min_metrics_time is not None: + query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') + response = self._send(http_method='GET', + location_id='cd1502bb-3c73-4e11-80a6-d11308dceae5', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Metric]', self._unwrap_collection(response)) + + def get_release_projects(self, artifact_type, artifact_source_id): + """GetReleaseProjects. + [Preview API] + :param str artifact_type: + :param str artifact_source_id: + :rtype: [ProjectReference] + """ + query_parameters = {} + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + response = self._send(http_method='GET', + location_id='917ace4a-79d1-45a7-987c-7be4db4268fa', + version='4.0-preview.1', + query_parameters=query_parameters) + return self._deserialize('[ProjectReference]', self._unwrap_collection(response)) + + def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None): + """GetReleases. + [Preview API] Get a list of releases + :param str project: Project ID or project name + :param int definition_id: Releases from this release definition Id. + :param int definition_environment_id: + :param str search_text: Releases with names starting with searchText. + :param str created_by: Releases created by this user. + :param str status_filter: Releases that have this status. + :param int environment_status_filter: + :param datetime min_created_time: Releases that were created after this time. + :param datetime max_created_time: Releases that were created before this time. + :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. + :param int top: Number of releases to get. Default is 50. + :param int continuation_token: Gets the releases after the continuation token provided. + :param str expand: The property that should be expanded in the list of releases. + :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. + :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. + :param bool is_deleted: Gets the soft deleted releases, if true. + :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :rtype: [Release] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if environment_status_filter is not None: + query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') + if min_created_time is not None: + query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') + if max_created_time is not None: + query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type_id is not None: + query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + if source_branch_filter is not None: + query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Release]', self._unwrap_collection(response)) + + def create_release(self, release_start_metadata, project): + """CreateRelease. + [Preview API] Create a release. + :param :class:` ` release_start_metadata: Metadata to create a release. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') + response = self._send(http_method='POST', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def delete_release(self, project, release_id, comment=None): + """DeleteRelease. + [Preview API] Soft delete a release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param str comment: Comment for deleting a release. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + self._send(http_method='DELETE', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + + def get_release(self, project, release_id, include_all_approvals=None, property_filters=None): + """GetRelease. + [Preview API] Get a Release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param bool include_all_approvals: Include all approvals in the result. Default is 'true'. + :param [str] property_filters: A comma-delimited list of properties to include in the results. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if include_all_approvals is not None: + query_parameters['includeAllApprovals'] = self._serialize.query('include_all_approvals', include_all_approvals, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Release', response) + + def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): + """GetReleaseDefinitionSummary. + [Preview API] Get release summary of a given definition Id. + :param str project: Project ID or project name + :param int definition_id: Id of the definition to get release summary. + :param int release_count: Count of releases to be included in summary. + :param bool include_artifact: Include artifact details.Default is 'false'. + :param [int] definition_environment_ids_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if release_count is not None: + query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') + if include_artifact is not None: + query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') + if definition_environment_ids_filter is not None: + definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) + query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinitionSummary', response) + + def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): + """GetReleaseRevision. + [Preview API] Get release for a given revision number. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int definition_snapshot_revision: Definition snapshot revision number. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if definition_snapshot_revision is not None: + query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def undelete_release(self, project, release_id, comment): + """UndeleteRelease. + [Preview API] Undelete a soft deleted release. + :param str project: Project ID or project name + :param int release_id: Id of release to be undeleted. + :param str comment: Any comment for undeleting. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + query_parameters=query_parameters) + + def update_release(self, release, project, release_id): + """UpdateRelease. + [Preview API] Update a complete release object. + :param :class:` ` release: Release object for update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release, 'Release') + response = self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def update_release_resource(self, release_update_metadata, project, release_id): + """UpdateReleaseResource. + [Preview API] Update few properties of a release. + :param :class:` ` release_update_metadata: Properties of release to update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.0-preview.4', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_release_settings(self, project): + """GetReleaseSettings. + [Preview API] Gets the release settings + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('ReleaseSettings', response) + + def update_release_settings(self, release_settings, project): + """UpdateReleaseSettings. + [Preview API] Updates the release settings + :param :class:` ` release_settings: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_settings, 'ReleaseSettings') + response = self._send(http_method='PUT', + location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReleaseSettings', response) + + def get_definition_revision(self, project, definition_id, revision, **kwargs): + """GetDefinitionRevision. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :param int revision: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + if revision is not None: + route_values['revision'] = self._serialize.url('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.0-preview.1', + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_release_definition_history(self, project, definition_id): + """GetReleaseDefinitionHistory. + [Preview API] Get revision history for a release definition + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :rtype: [ReleaseDefinitionRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) + + def get_summary_mail_sections(self, project, release_id): + """GetSummaryMailSections. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :rtype: [SummaryMailSection] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='224e92b2-8d13-4c14-b120-13d877c516f8', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[SummaryMailSection]', self._unwrap_collection(response)) + + def send_summary_mail(self, mail_message, project, release_id): + """SendSummaryMail. + [Preview API] + :param :class:` ` mail_message: + :param str project: Project ID or project name + :param int release_id: + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(mail_message, 'MailMessage') + self._send(http_method='POST', + location_id='224e92b2-8d13-4c14-b120-13d877c516f8', + version='4.0-preview.1', + route_values=route_values, + content=content) + + def get_source_branches(self, project, definition_id): + """GetSourceBranches. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='0e5def23-78b3-461f-8198-1558f25041c8', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def add_definition_tag(self, project, release_definition_id, tag): + """AddDefinitionTag. + [Preview API] Adds a tag to a definition + :param str project: Project ID or project name + :param int release_definition_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='PATCH', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def add_definition_tags(self, tags, project, release_definition_id): + """AddDefinitionTags. + [Preview API] Adds multiple tags to a definition + :param [str] tags: + :param str project: Project ID or project name + :param int release_definition_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + content = self._serialize.body(tags, '[str]') + response = self._send(http_method='POST', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def delete_definition_tag(self, project, release_definition_id, tag): + """DeleteDefinitionTag. + [Preview API] Deletes a tag from a definition + :param str project: Project ID or project name + :param int release_definition_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='DELETE', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_definition_tags(self, project, release_definition_id): + """GetDefinitionTags. + [Preview API] Gets the tags for a definition + :param str project: Project ID or project name + :param int release_definition_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_definition_id is not None: + route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') + response = self._send(http_method='GET', + location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def add_release_tag(self, project, release_id, tag): + """AddReleaseTag. + [Preview API] Adds a tag to a releaseId + :param str project: Project ID or project name + :param int release_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='PATCH', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def add_release_tags(self, tags, project, release_id): + """AddReleaseTags. + [Preview API] Adds tag to a release + :param [str] tags: + :param str project: Project ID or project name + :param int release_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(tags, '[str]') + response = self._send(http_method='POST', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def delete_release_tag(self, project, release_id, tag): + """DeleteReleaseTag. + [Preview API] Deletes a tag from a release + :param str project: Project ID or project name + :param int release_id: + :param str tag: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='DELETE', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_release_tags(self, project, release_id): + """GetReleaseTags. + [Preview API] Gets the tags for a release + :param str project: Project ID or project name + :param int release_id: + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_tags(self, project): + """GetTags. + [Preview API] + :param str project: Project ID or project name + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='86cee25a-68ba-4ba3-9171-8ad6ffc6df93', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_tasks(self, project, release_id, environment_id, attempt_id=None): + """GetTasks. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :rtype: [ReleaseTask] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + query_parameters = {} + if attempt_id is not None: + query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') + response = self._send(http_method='GET', + location_id='36b276e0-3c70-4320-a63c-1a2e1466a0d1', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) + + def get_tasks_for_task_group(self, project, release_id, environment_id, release_deploy_phase_id): + """GetTasksForTaskGroup. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int release_deploy_phase_id: + :rtype: [ReleaseTask] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + response = self._send(http_method='GET', + location_id='4259191d-4b0a-4409-9fb3-09f22ab9bc47', + version='4.0-preview.2', + route_values=route_values) + return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) + + def get_artifact_type_definitions(self, project): + """GetArtifactTypeDefinitions. + [Preview API] + :param str project: Project ID or project name + :rtype: [ArtifactTypeDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='8efc2a3c-1fc8-4f6d-9822-75e98cecb48f', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('[ArtifactTypeDefinition]', self._unwrap_collection(response)) + + def get_artifact_versions(self, project, release_definition_id): + """GetArtifactVersions. + [Preview API] + :param str project: Project ID or project name + :param int release_definition_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if release_definition_id is not None: + query_parameters['releaseDefinitionId'] = self._serialize.query('release_definition_id', release_definition_id, 'int') + response = self._send(http_method='GET', + location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ArtifactVersionQueryResult', response) + + def get_artifact_versions_for_sources(self, artifacts, project): + """GetArtifactVersionsForSources. + [Preview API] + :param [Artifact] artifacts: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(artifacts, '[Artifact]') + response = self._send(http_method='POST', + location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', + version='4.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ArtifactVersionQueryResult', response) + + def get_release_work_items_refs(self, project, release_id, base_release_id=None, top=None): + """GetReleaseWorkItemsRefs. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int base_release_id: + :param int top: + :rtype: [ReleaseWorkItemRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if base_release_id is not None: + query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='4f165cc0-875c-4768-b148-f12f78769fab', + version='4.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseWorkItemRef]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/v4_0/settings/__init__.py b/azure-devops/azure/devops/v4_0/settings/__init__.py new file mode 100644 index 00000000..cae1d865 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/settings/__init__.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ +] diff --git a/azure-devops/azure/devops/v4_0/settings/settings_client.py b/azure-devops/azure/devops/v4_0/settings/settings_client.py new file mode 100644 index 00000000..6d724c21 --- /dev/null +++ b/azure-devops/azure/devops/v4_0/settings/settings_client.py @@ -0,0 +1,143 @@ +# -------------------------------------------------------------------------------------------- +# 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 + + +class SettingsClient(Client): + """Settings + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SettingsClient, self).__init__(base_url, creds) + self._serialize = Serializer() + self._deserialize = Deserializer() + + resource_area_identifier = None + + def get_entries(self, user_scope, key=None): + """GetEntries. + [Preview API] Get all setting entries for the given user/all-users scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) + + def remove_entries(self, user_scope, key): + """RemoveEntries. + [Preview API] Remove the entry or entries under the specified path + :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. + :param str key: Root key of the entry or entries to remove + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + self._send(http_method='DELETE', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.0-preview.1', + route_values=route_values) + + def set_entries(self, entries, user_scope): + """SetEntries. + [Preview API] Set the specified setting entry values for the given user/all-users scope + :param {object} entries: The entries to set + :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='cd006711-163d-4cd4-a597-b05bad2556ff', + version='4.0-preview.1', + route_values=route_values, + content=content) + + def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): + """GetEntriesForScope. + [Preview API] Get all setting entries for the given named scope + :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str key: Optional key under which to filter all the entries + :rtype: {object} + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + response = self._send(http_method='GET', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.0-preview.1', + route_values=route_values) + return self._deserialize('{object}', self._unwrap_collection(response)) + + def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): + """RemoveEntriesForScope. + [Preview API] Remove the entry or entries under the specified path + :param str user_scope: User-Scope at which to remove the value. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to get the setting for (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + :param str key: Root key of the entry or entries to remove + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + if key is not None: + route_values['key'] = self._serialize.url('key', key, 'str') + self._send(http_method='DELETE', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.0-preview.1', + route_values=route_values) + + def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): + """SetEntriesForScope. + [Preview API] Set the specified entries for the given named scope + :param {object} entries: The entries to set + :param str user_scope: User-Scope at which to set the values. Should be "me" for the current user or "host" for all users. + :param str scope_name: Scope at which to set the settings on (e.g. "project" or "team") + :param str scope_value: Value of the scope (e.g. the project or team id) + """ + route_values = {} + if user_scope is not None: + route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') + content = self._serialize.body(entries, '{object}') + self._send(http_method='PATCH', + location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', + version='4.0-preview.1', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/v4_1/release/__init__.py b/azure-devops/azure/devops/v4_1/release/__init__.py new file mode 100644 index 00000000..f970ff12 --- /dev/null +++ b/azure-devops/azure/devops/v4_1/release/__init__.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'FavoriteItem', + 'Folder', + 'GraphSubjectBase', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'PipelineProcess', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTaskAttachment', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', +] diff --git a/azure-devops/azure/devops/v4_1/release/models.py b/azure-devops/azure/devops/v4_1/release/models.py new file mode 100644 index 00000000..9138905e --- /dev/null +++ b/azure-devops/azure/devops/v4_1/release/models.py @@ -0,0 +1,3465 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentArtifactDefinition(Model): + """AgentArtifactDefinition. + + :param alias: + :type alias: str + :param artifact_type: + :type artifact_type: object + :param details: + :type details: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'object'}, + 'details': {'key': 'details', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): + super(AgentArtifactDefinition, self).__init__() + self.alias = alias + self.artifact_type = artifact_type + self.details = details + self.name = name + self.version = version + + +class ApprovalOptions(Model): + """ApprovalOptions. + + :param auto_triggered_and_previous_environment_approved_can_be_skipped: + :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool + :param enforce_identity_revalidation: + :type enforce_identity_revalidation: bool + :param execution_order: + :type execution_order: object + :param release_creator_can_be_approver: + :type release_creator_can_be_approver: bool + :param required_approver_count: + :type required_approver_count: int + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, + 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, + 'execution_order': {'key': 'executionOrder', 'type': 'object'}, + 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, + 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, execution_order=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): + super(ApprovalOptions, self).__init__() + self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped + self.enforce_identity_revalidation = enforce_identity_revalidation + self.execution_order = execution_order + self.release_creator_can_be_approver = release_creator_can_be_approver + self.required_approver_count = required_approver_count + self.timeout_in_minutes = timeout_in_minutes + + +class Artifact(Model): + """Artifact. + + :param alias: Gets or sets alias. + :type alias: str + :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} + :type definition_reference: dict + :param is_primary: Gets or sets as artifact is primary or not. + :type is_primary: bool + :param source_id: + :type source_id: str + :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. + :type type: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): + super(Artifact, self).__init__() + self.alias = alias + self.definition_reference = definition_reference + self.is_primary = is_primary + self.source_id = source_id + self.type = type + + +class ArtifactMetadata(Model): + """ArtifactMetadata. + + :param alias: Sets alias of artifact. + :type alias: str + :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. + :type instance_reference: :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} + } + + def __init__(self, alias=None, instance_reference=None): + super(ArtifactMetadata, self).__init__() + self.alias = alias + self.instance_reference = instance_reference + + +class ArtifactSourceReference(Model): + """ArtifactSourceReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ArtifactSourceReference, self).__init__() + self.id = id + self.name = name + + +class ArtifactTypeDefinition(Model): + """ArtifactTypeDefinition. + + :param display_name: + :type display_name: str + :param endpoint_type_id: + :type endpoint_type_id: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + :param unique_source_identifier: + :type unique_source_identifier: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_type_id': {'key': 'endpointTypeId', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} + } + + def __init__(self, display_name=None, endpoint_type_id=None, input_descriptors=None, name=None, unique_source_identifier=None): + super(ArtifactTypeDefinition, self).__init__() + self.display_name = display_name + self.endpoint_type_id = endpoint_type_id + self.input_descriptors = input_descriptors + self.name = name + self.unique_source_identifier = unique_source_identifier + + +class ArtifactVersion(Model): + """ArtifactVersion. + + :param alias: + :type alias: str + :param default_version: + :type default_version: :class:`BuildVersion ` + :param error_message: + :type error_message: str + :param source_id: + :type source_id: str + :param versions: + :type versions: list of :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[BuildVersion]'} + } + + def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): + super(ArtifactVersion, self).__init__() + self.alias = alias + self.default_version = default_version + self.error_message = error_message + self.source_id = source_id + self.versions = versions + + +class ArtifactVersionQueryResult(Model): + """ArtifactVersionQueryResult. + + :param artifact_versions: + :type artifact_versions: list of :class:`ArtifactVersion ` + """ + + _attribute_map = { + 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} + } + + def __init__(self, artifact_versions=None): + super(ArtifactVersionQueryResult, self).__init__() + self.artifact_versions = artifact_versions + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class AutoTriggerIssue(Model): + """AutoTriggerIssue. + + :param issue: + :type issue: :class:`Issue ` + :param issue_source: + :type issue_source: object + :param project: + :type project: :class:`ProjectReference ` + :param release_definition_reference: + :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` + :param release_trigger_type: + :type release_trigger_type: object + """ + + _attribute_map = { + 'issue': {'key': 'issue', 'type': 'Issue'}, + 'issue_source': {'key': 'issueSource', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} + } + + def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): + super(AutoTriggerIssue, self).__init__() + self.issue = issue + self.issue_source = issue_source + self.project = project + self.release_definition_reference = release_definition_reference + self.release_trigger_type = release_trigger_type + + +class BuildVersion(Model): + """BuildVersion. + + :param commit_message: + :type commit_message: str + :param id: + :type id: str + :param name: + :type name: str + :param source_branch: + :type source_branch: str + :param source_pull_request_id: PullRequestId or Commit Id for the Pull Request for which the release will publish status + :type source_pull_request_id: str + :param source_repository_id: + :type source_repository_id: str + :param source_repository_type: + :type source_repository_type: str + :param source_version: + :type source_version: str + """ + + _attribute_map = { + 'commit_message': {'key': 'commitMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_pull_request_id': {'key': 'sourcePullRequestId', 'type': 'str'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'} + } + + def __init__(self, commit_message=None, id=None, name=None, source_branch=None, source_pull_request_id=None, source_repository_id=None, source_repository_type=None, source_version=None): + super(BuildVersion, self).__init__() + self.commit_message = commit_message + self.id = id + self.name = name + self.source_branch = source_branch + self.source_pull_request_id = source_pull_request_id + self.source_repository_id = source_repository_id + self.source_repository_type = source_repository_type + self.source_version = source_version + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param change_type: The type of change. "commit", "changeset", etc. + :type change_type: str + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: A description of the change. This might be a commit message or changeset description. + :type message: str + :param pusher: The person or process that pushed the change. + :type pusher: str + :param timestamp: A timestamp for the change. + :type timestamp: datetime + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pusher': {'key': 'pusher', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} + } + + def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, pusher=None, timestamp=None): + super(Change, self).__init__() + self.author = author + self.change_type = change_type + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.pusher = pusher + self.timestamp = timestamp + + +class Condition(Model): + """Condition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, name=None, value=None): + super(Condition, self).__init__() + self.condition_type = condition_type + self.name = name + self.value = value + + +class ConfigurationVariableValue(Model): + """ConfigurationVariableValue. + + :param is_secret: Gets or sets as variable is secret or not. + :type is_secret: bool + :param value: Gets or sets value of the configuration variable. + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(ConfigurationVariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DefinitionEnvironmentReference(Model): + """DefinitionEnvironmentReference. + + :param definition_environment_id: + :type definition_environment_id: int + :param definition_environment_name: + :type definition_environment_name: str + :param release_definition_id: + :type release_definition_id: int + :param release_definition_name: + :type release_definition_name: str + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} + } + + def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): + super(DefinitionEnvironmentReference, self).__init__() + self.definition_environment_id = definition_environment_id + self.definition_environment_name = definition_environment_name + self.release_definition_id = release_definition_id + self.release_definition_name = release_definition_name + + +class Deployment(Model): + """Deployment. + + :param _links: Gets links to access the deployment. + :type _links: :class:`ReferenceLinks ` + :param attempt: Gets attempt number. + :type attempt: int + :param completed_on: Gets the date on which deployment is complete. + :type completed_on: datetime + :param conditions: Gets the list of condition associated with deployment. + :type conditions: list of :class:`Condition ` + :param definition_environment_id: Gets release definition environment id. + :type definition_environment_id: int + :param deployment_status: Gets status of the deployment. + :type deployment_status: object + :param id: Gets the unique identifier for deployment. + :type id: int + :param last_modified_by: Gets the identity who last modified the deployment. + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: Gets the date on which deployment is last modified. + :type last_modified_on: datetime + :param operation_status: Gets operation status of deployment. + :type operation_status: object + :param post_deploy_approvals: Gets list of PostDeployApprovals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deploy_approvals: Gets list of PreDeployApprovals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param queued_on: Gets the date on which deployment is queued. + :type queued_on: datetime + :param reason: Gets reason of deployment. + :type reason: object + :param release: Gets the reference of release. + :type release: :class:`ReleaseReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which the deployment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which the deployment is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param requested_by: Gets the identity who requested. + :type requested_by: :class:`IdentityRef ` + :param requested_for: Gets the identity for whom deployment is requested. + :type requested_for: :class:`IdentityRef ` + :param scheduled_deployment_time: Gets the date on which deployment is scheduled. + :type scheduled_deployment_time: datetime + :param started_on: Gets the date on which deployment is started. + :type started_on: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'completed_on': {'key': 'completedOn', 'type': 'iso-8601'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, attempt=None, completed_on=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): + super(Deployment, self).__init__() + self._links = _links + self.attempt = attempt + self.completed_on = completed_on + self.conditions = conditions + self.definition_environment_id = definition_environment_id + self.deployment_status = deployment_status + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.queued_on = queued_on + self.reason = reason + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.requested_by = requested_by + self.requested_for = requested_for + self.scheduled_deployment_time = scheduled_deployment_time + self.started_on = started_on + + +class DeploymentAttempt(Model): + """DeploymentAttempt. + + :param attempt: + :type attempt: int + :param deployment_id: + :type deployment_id: int + :param error_log: Error log to show any unexpected error that occurred during executing deploy step + :type error_log: str + :param has_started: Specifies whether deployment has started or not + :type has_started: bool + :param id: + :type id: int + :param issues: All the issues related to the deployment + :type issues: list of :class:`Issue ` + :param job: + :type job: :class:`ReleaseTask ` + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param operation_status: + :type operation_status: object + :param post_deployment_gates: + :type post_deployment_gates: :class:`ReleaseGates ` + :param pre_deployment_gates: + :type pre_deployment_gates: :class:`ReleaseGates ` + :param queued_on: + :type queued_on: datetime + :param reason: + :type reason: object + :param release_deploy_phases: + :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` + :param requested_by: + :type requested_by: :class:`IdentityRef ` + :param requested_for: + :type requested_for: :class:`IdentityRef ` + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'has_started': {'key': 'hasStarted', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseGates'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseGates'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, issues=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): + super(DeploymentAttempt, self).__init__() + self.attempt = attempt + self.deployment_id = deployment_id + self.error_log = error_log + self.has_started = has_started + self.id = id + self.issues = issues + self.job = job + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deployment_gates = post_deployment_gates + self.pre_deployment_gates = pre_deployment_gates + self.queued_on = queued_on + self.reason = reason + self.release_deploy_phases = release_deploy_phases + self.requested_by = requested_by + self.requested_for = requested_for + self.run_plan_id = run_plan_id + self.status = status + self.tasks = tasks + + +class DeploymentJob(Model): + """DeploymentJob. + + :param job: + :type job: :class:`ReleaseTask ` + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, job=None, tasks=None): + super(DeploymentJob, self).__init__() + self.job = job + self.tasks = tasks + + +class DeploymentQueryParameters(Model): + """DeploymentQueryParameters. + + :param artifact_source_id: + :type artifact_source_id: str + :param artifact_type_id: + :type artifact_type_id: str + :param artifact_versions: + :type artifact_versions: list of str + :param deployments_per_environment: + :type deployments_per_environment: int + :param deployment_status: + :type deployment_status: object + :param environments: + :type environments: list of :class:`DefinitionEnvironmentReference ` + :param expands: + :type expands: object + :param is_deleted: + :type is_deleted: bool + :param latest_deployments_only: + :type latest_deployments_only: bool + :param max_deployments_per_environment: + :type max_deployments_per_environment: int + :param max_modified_time: + :type max_modified_time: datetime + :param min_modified_time: + :type min_modified_time: datetime + :param operation_status: + :type operation_status: object + :param query_order: + :type query_order: object + :param query_type: + :type query_type: object + :param source_branch: + :type source_branch: str + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, + 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, + 'deployments_per_environment': {'key': 'deploymentsPerEnvironment', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, + 'expands': {'key': 'expands', 'type': 'object'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, + 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, + 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, + 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'query_order': {'key': 'queryOrder', 'type': 'object'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'} + } + + def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployments_per_environment=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None, query_type=None, source_branch=None): + super(DeploymentQueryParameters, self).__init__() + self.artifact_source_id = artifact_source_id + self.artifact_type_id = artifact_type_id + self.artifact_versions = artifact_versions + self.deployments_per_environment = deployments_per_environment + self.deployment_status = deployment_status + self.environments = environments + self.expands = expands + self.is_deleted = is_deleted + self.latest_deployments_only = latest_deployments_only + self.max_deployments_per_environment = max_deployments_per_environment + self.max_modified_time = max_modified_time + self.min_modified_time = min_modified_time + self.operation_status = operation_status + self.query_order = query_order + self.query_type = query_type + self.source_branch = source_branch + + +class EmailRecipients(Model): + """EmailRecipients. + + :param email_addresses: + :type email_addresses: list of str + :param tfs_ids: + :type tfs_ids: list of str + """ + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} + } + + def __init__(self, email_addresses=None, tfs_ids=None): + super(EmailRecipients, self).__init__() + self.email_addresses = email_addresses + self.tfs_ids = tfs_ids + + +class EnvironmentExecutionPolicy(Model): + """EnvironmentExecutionPolicy. + + :param concurrency_count: This policy decides, how many environments would be with Environment Runner. + :type concurrency_count: int + :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. + :type queue_depth_count: int + """ + + _attribute_map = { + 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, + 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} + } + + def __init__(self, concurrency_count=None, queue_depth_count=None): + super(EnvironmentExecutionPolicy, self).__init__() + self.concurrency_count = concurrency_count + self.queue_depth_count = queue_depth_count + + +class EnvironmentOptions(Model): + """EnvironmentOptions. + + :param auto_link_work_items: + :type auto_link_work_items: bool + :param badge_enabled: + :type badge_enabled: bool + :param email_notification_type: + :type email_notification_type: str + :param email_recipients: + :type email_recipients: str + :param enable_access_token: + :type enable_access_token: bool + :param publish_deployment_status: + :type publish_deployment_status: bool + :param skip_artifacts_download: + :type skip_artifacts_download: bool + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_link_work_items': {'key': 'autoLinkWorkItems', 'type': 'bool'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, + 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, + 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, + 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, + 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, + 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_link_work_items=None, badge_enabled=None, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): + super(EnvironmentOptions, self).__init__() + self.auto_link_work_items = auto_link_work_items + self.badge_enabled = badge_enabled + self.email_notification_type = email_notification_type + self.email_recipients = email_recipients + self.enable_access_token = enable_access_token + self.publish_deployment_status = publish_deployment_status + self.skip_artifacts_download = skip_artifacts_download + self.timeout_in_minutes = timeout_in_minutes + + +class EnvironmentRetentionPolicy(Model): + """EnvironmentRetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + :param releases_to_keep: + :type releases_to_keep: int + :param retain_build: + :type retain_build: bool + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, + 'retain_build': {'key': 'retainBuild', 'type': 'bool'} + } + + def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): + super(EnvironmentRetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + self.releases_to_keep = releases_to_keep + self.retain_build = retain_build + + +class FavoriteItem(Model): + """FavoriteItem. + + :param data: Application specific data for the entry + :type data: str + :param id: Unique Id of the the entry + :type id: str + :param name: Display text for favorite entry + :type name: str + :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder + :type type: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, data=None, id=None, name=None, type=None): + super(FavoriteItem, self).__init__() + self.data = data + self.id = id + self.name = name + self.type = type + + +class Folder(Model): + """Folder. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param last_changed_by: + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: + :type last_changed_date: datetime + :param path: + :type path: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 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'}, + '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, 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.profile_url = profile_url + self.unique_name = unique_name + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class Issue(Model): + """Issue. + + :param issue_type: + :type issue_type: str + :param message: + :type message: str + """ + + _attribute_map = { + 'issue_type': {'key': 'issueType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, issue_type=None, message=None): + super(Issue, self).__init__() + self.issue_type = issue_type + self.message = message + + +class MailMessage(Model): + """MailMessage. + + :param body: + :type body: str + :param cC: + :type cC: :class:`EmailRecipients ` + :param in_reply_to: + :type in_reply_to: str + :param message_id: + :type message_id: str + :param reply_by: + :type reply_by: datetime + :param reply_to: + :type reply_to: :class:`EmailRecipients ` + :param sections: + :type sections: list of MailSectionType + :param sender_type: + :type sender_type: object + :param subject: + :type subject: str + :param to: + :type to: :class:`EmailRecipients ` + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, + 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, + 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, + 'sections': {'key': 'sections', 'type': '[object]'}, + 'sender_type': {'key': 'senderType', 'type': 'object'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'to': {'key': 'to', 'type': 'EmailRecipients'} + } + + def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): + super(MailMessage, self).__init__() + self.body = body + self.cC = cC + self.in_reply_to = in_reply_to + self.message_id = message_id + self.reply_by = reply_by + self.reply_to = reply_to + self.sections = sections + self.sender_type = sender_type + self.subject = subject + self.to = to + + +class ManualIntervention(Model): + """ManualIntervention. + + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param id: Gets the unique identifier for manual intervention. + :type id: int + :param instructions: Gets or sets instructions for approval. + :type instructions: str + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param release: Gets releaseReference for manual intervention. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference for manual intervention. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference for manual intervention. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param status: Gets or sets the status of the manual intervention. + :type status: object + :param task_instance_id: Get task instance identifier. + :type task_instance_id: str + :param url: Gets url to access the manual intervention. + :type url: str + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'instructions': {'key': 'instructions', 'type': 'str'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): + super(ManualIntervention, self).__init__() + self.approver = approver + self.comments = comments + self.created_on = created_on + self.id = id + self.instructions = instructions + self.modified_on = modified_on + self.name = name + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.status = status + self.task_instance_id = task_instance_id + self.url = url + + +class ManualInterventionUpdateMetadata(Model): + """ManualInterventionUpdateMetadata. + + :param comment: Sets the comment for manual intervention update. + :type comment: str + :param status: Sets the status of the manual intervention. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, status=None): + super(ManualInterventionUpdateMetadata, self).__init__() + self.comment = comment + self.status = status + + +class Metric(Model): + """Metric. + + :param name: + :type name: str + :param value: + :type value: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, name=None, value=None): + super(Metric, self).__init__() + self.name = name + self.value = value + + +class PipelineProcess(Model): + """PipelineProcess. + + :param type: + :type type: object + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, type=None): + super(PipelineProcess, self).__init__() + self.type = type + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions + + +class ProjectReference(Model): + """ProjectReference. + + :param id: Gets the unique identifier of this field. + :type id: str + :param name: Gets name of project. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class QueuedReleaseData(Model): + """QueuedReleaseData. + + :param project_id: + :type project_id: str + :param queue_position: + :type queue_position: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, project_id=None, queue_position=None, release_id=None): + super(QueuedReleaseData, self).__init__() + self.project_id = project_id + self.queue_position = queue_position + self.release_id = release_id + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Release(Model): + """Release. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_snapshot_revision: Gets revision number of definition snapshot. + :type definition_snapshot_revision: int + :param description: Gets or sets description of release. + :type description: str + :param environments: Gets list of environments. + :type environments: list of :class:`ReleaseEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param keep_forever: Whether to exclude the release from retention policies. + :type keep_forever: bool + :param logs_container_url: Gets logs container url. + :type logs_container_url: str + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param pool_name: Gets pool name. + :type pool_name: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param properties: + :type properties: :class:`object ` + :param reason: Gets reason of release. + :type reason: object + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_name_format: Gets release name format. + :type release_name_format: str + :param status: Gets status. + :type status: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggering_artifact_alias: + :type triggering_artifact_alias: str + :param url: + :type url: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_name': {'key': 'poolName', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggering_artifact_alias': {'key': 'triggeringArtifactAlias', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, triggering_artifact_alias=None, url=None, variable_groups=None, variables=None): + super(Release, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.definition_snapshot_revision = definition_snapshot_revision + self.description = description + self.environments = environments + self.id = id + self.keep_forever = keep_forever + self.logs_container_url = logs_container_url + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.pool_name = pool_name + self.project_reference = project_reference + self.properties = properties + self.reason = reason + self.release_definition = release_definition + self.release_name_format = release_name_format + self.status = status + self.tags = tags + self.triggering_artifact_alias = triggering_artifact_alias + self.url = url + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseApproval(Model): + """ReleaseApproval. + + :param approval_type: Gets or sets the type of approval. + :type approval_type: object + :param approved_by: Gets the identity who approved. + :type approved_by: :class:`IdentityRef ` + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. + :type attempt: int + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param history: Gets history which specifies all approvals associated with this approval. + :type history: list of :class:`ReleaseApprovalHistory ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_automated: Gets or sets as approval is automated or not. + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. + :type rank: int + :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param revision: Gets the revision number. + :type revision: int + :param status: Gets or sets the status of the approval. + :type status: object + :param trial_number: + :type trial_number: int + :param url: Gets url to access the approval. + :type url: str + """ + + _attribute_map = { + 'approval_type': {'key': 'approvalType', 'type': 'object'}, + 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'}, + 'trial_number': {'key': 'trialNumber', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): + super(ReleaseApproval, self).__init__() + self.approval_type = approval_type + self.approved_by = approved_by + self.approver = approver + self.attempt = attempt + self.comments = comments + self.created_on = created_on + self.history = history + self.id = id + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.modified_on = modified_on + self.rank = rank + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.revision = revision + self.status = status + self.trial_number = trial_number + self.url = url + + +class ReleaseApprovalHistory(Model): + """ReleaseApprovalHistory. + + :param approver: + :type approver: :class:`IdentityRef ` + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param comments: + :type comments: str + :param created_on: + :type created_on: datetime + :param modified_on: + :type modified_on: datetime + :param revision: + :type revision: int + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): + super(ReleaseApprovalHistory, self).__init__() + self.approver = approver + self.changed_by = changed_by + self.comments = comments + self.created_on = created_on + self.modified_on = modified_on + self.revision = revision + + +class ReleaseCondition(Condition): + """ReleaseCondition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + :param result: + :type result: bool + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'bool'} + } + + def __init__(self, condition_type=None, name=None, value=None, result=None): + super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) + self.result = result + + +class ReleaseDefinition(Model): + """ReleaseDefinition. + + :param _links: Gets links to access the release definition. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets the description. + :type description: str + :param environments: Gets or sets the list of environments. + :type environments: list of :class:`ReleaseDefinitionEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_deleted: Whether release definition is deleted. + :type is_deleted: bool + :param last_release: Gets the reference of last release. + :type last_release: :class:`ReleaseReference ` + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param path: Gets or sets the path. + :type path: str + :param pipeline_process: Gets or sets pipeline process. + :type pipeline_process: :class:`PipelineProcess ` + :param properties: Gets or sets properties. + :type properties: :class:`object ` + :param release_name_format: Gets or sets the release name format. + :type release_name_format: str + :param retention_policy: + :type retention_policy: :class:`RetentionPolicy ` + :param revision: Gets the revision number. + :type revision: int + :param source: Gets or sets source of release definition. + :type source: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggers: Gets or sets the list of triggers. + :type triggers: list of :class:`object ` + :param url: Gets url to access the release definition. + :type url: str + :param variable_groups: Gets or sets the list of variable groups. + :type variable_groups: list of int + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'pipeline_process': {'key': 'pipelineProcess', 'type': 'PipelineProcess'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, pipeline_process=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): + super(ReleaseDefinition, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.description = description + self.environments = environments + self.id = id + self.is_deleted = is_deleted + self.last_release = last_release + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.path = path + self.pipeline_process = pipeline_process + self.properties = properties + self.release_name_format = release_name_format + self.retention_policy = retention_policy + self.revision = revision + self.source = source + self.tags = tags + self.triggers = triggers + self.url = url + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseDefinitionApprovals(Model): + """ReleaseDefinitionApprovals. + + :param approval_options: + :type approval_options: :class:`ApprovalOptions ` + :param approvals: + :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` + """ + + _attribute_map = { + 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, + 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} + } + + def __init__(self, approval_options=None, approvals=None): + super(ReleaseDefinitionApprovals, self).__init__() + self.approval_options = approval_options + self.approvals = approvals + + +class ReleaseDefinitionEnvironment(Model): + """ReleaseDefinitionEnvironment. + + :param badge_url: + :type badge_url: str + :param conditions: + :type conditions: list of :class:`Condition ` + :param demands: + :type demands: list of :class:`object ` + :param deploy_phases: + :type deploy_phases: list of :class:`object ` + :param deploy_step: + :type deploy_step: :class:`ReleaseDefinitionDeployStep ` + :param environment_options: + :type environment_options: :class:`EnvironmentOptions ` + :param execution_policy: + :type execution_policy: :class:`EnvironmentExecutionPolicy ` + :param id: + :type id: int + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param post_deploy_approvals: + :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param post_deployment_gates: + :type post_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param pre_deploy_approvals: + :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param pre_deployment_gates: + :type pre_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param queue_id: + :type queue_id: int + :param rank: + :type rank: int + :param retention_policy: + :type retention_policy: :class:`EnvironmentRetentionPolicy ` + :param run_options: + :type run_options: dict + :param schedules: + :type schedules: list of :class:`ReleaseSchedule ` + :param variable_groups: + :type variable_groups: list of int + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'badge_url': {'key': 'badgeUrl', 'type': 'str'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, + 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'run_options': {'key': 'runOptions', 'type': '{str}'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, badge_url=None, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): + super(ReleaseDefinitionEnvironment, self).__init__() + self.badge_url = badge_url + self.conditions = conditions + self.demands = demands + self.deploy_phases = deploy_phases + self.deploy_step = deploy_step + self.environment_options = environment_options + self.execution_policy = execution_policy + self.id = id + self.name = name + self.owner = owner + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates = post_deployment_gates + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates = pre_deployment_gates + self.process_parameters = process_parameters + self.properties = properties + self.queue_id = queue_id + self.rank = rank + self.retention_policy = retention_policy + self.run_options = run_options + self.schedules = schedules + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseDefinitionEnvironmentStep(Model): + """ReleaseDefinitionEnvironmentStep. + + :param id: + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(ReleaseDefinitionEnvironmentStep, self).__init__() + self.id = id + + +class ReleaseDefinitionEnvironmentSummary(Model): + """ReleaseDefinitionEnvironmentSummary. + + :param id: + :type id: int + :param last_releases: + :type last_releases: list of :class:`ReleaseShallowReference ` + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, last_releases=None, name=None): + super(ReleaseDefinitionEnvironmentSummary, self).__init__() + self.id = id + self.last_releases = last_releases + self.name = name + + +class ReleaseDefinitionEnvironmentTemplate(Model): + """ReleaseDefinitionEnvironmentTemplate. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param description: + :type description: str + :param environment: + :type environment: :class:`ReleaseDefinitionEnvironment ` + :param icon_task_id: + :type icon_task_id: str + :param icon_uri: + :type icon_uri: str + :param id: + :type id: str + :param is_deleted: + :type is_deleted: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, is_deleted=None, name=None): + super(ReleaseDefinitionEnvironmentTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.environment = environment + self.icon_task_id = icon_task_id + self.icon_uri = icon_uri + self.id = id + self.is_deleted = is_deleted + self.name = name + + +class ReleaseDefinitionGate(Model): + """ReleaseDefinitionGate. + + :param tasks: + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, tasks=None): + super(ReleaseDefinitionGate, self).__init__() + self.tasks = tasks + + +class ReleaseDefinitionGatesOptions(Model): + """ReleaseDefinitionGatesOptions. + + :param is_enabled: + :type is_enabled: bool + :param sampling_interval: + :type sampling_interval: int + :param stabilization_time: + :type stabilization_time: int + :param timeout: + :type timeout: int + """ + + _attribute_map = { + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'stabilization_time': {'key': 'stabilizationTime', 'type': 'int'}, + 'timeout': {'key': 'timeout', 'type': 'int'} + } + + def __init__(self, is_enabled=None, sampling_interval=None, stabilization_time=None, timeout=None): + super(ReleaseDefinitionGatesOptions, self).__init__() + self.is_enabled = is_enabled + self.sampling_interval = sampling_interval + self.stabilization_time = stabilization_time + self.timeout = timeout + + +class ReleaseDefinitionGatesStep(Model): + """ReleaseDefinitionGatesStep. + + :param gates: + :type gates: list of :class:`ReleaseDefinitionGate ` + :param gates_options: + :type gates_options: :class:`ReleaseDefinitionGatesOptions ` + :param id: + :type id: int + """ + + _attribute_map = { + 'gates': {'key': 'gates', 'type': '[ReleaseDefinitionGate]'}, + 'gates_options': {'key': 'gatesOptions', 'type': 'ReleaseDefinitionGatesOptions'}, + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, gates=None, gates_options=None, id=None): + super(ReleaseDefinitionGatesStep, self).__init__() + self.gates = gates + self.gates_options = gates_options + self.id = id + + +class ReleaseDefinitionRevision(Model): + """ReleaseDefinitionRevision. + + :param api_version: Gets api-version for revision object. + :type api_version: str + :param changed_by: Gets the identity who did change. + :type changed_by: :class:`IdentityRef ` + :param changed_date: Gets date on which it got changed. + :type changed_date: datetime + :param change_type: Gets type of change. + :type change_type: object + :param comment: Gets comments for revision. + :type comment: str + :param definition_id: Get id of the definition. + :type definition_id: int + :param definition_url: Gets definition url. + :type definition_url: str + :param revision: Get revision number of the definition. + :type revision: int + """ + + _attribute_map = { + 'api_version': {'key': 'apiVersion', 'type': 'str'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): + super(ReleaseDefinitionRevision, self).__init__() + self.api_version = api_version + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_id = definition_id + self.definition_url = definition_url + self.revision = revision + + +class ReleaseDefinitionShallowReference(Model): + """ReleaseDefinitionShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param url: Gets the REST API url to access the release definition. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseDefinitionShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseDefinitionSummary(Model): + """ReleaseDefinitionSummary. + + :param environments: + :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param releases: + :type releases: list of :class:`Release ` + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'releases': {'key': 'releases', 'type': '[Release]'} + } + + def __init__(self, environments=None, release_definition=None, releases=None): + super(ReleaseDefinitionSummary, self).__init__() + self.environments = environments + self.release_definition = release_definition + self.releases = releases + + +class ReleaseDefinitionUndeleteParameter(Model): + """ReleaseDefinitionUndeleteParameter. + + :param comment: Gets or sets comment. + :type comment: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'} + } + + def __init__(self, comment=None): + super(ReleaseDefinitionUndeleteParameter, self).__init__() + self.comment = comment + + +class ReleaseDeployPhase(Model): + """ReleaseDeployPhase. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param error_log: + :type error_log: str + :param id: + :type id: int + :param manual_interventions: + :type manual_interventions: list of :class:`ManualIntervention ` + :param name: + :type name: str + :param phase_id: + :type phase_id: str + :param phase_type: + :type phase_type: object + :param rank: + :type rank: int + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'phase_id': {'key': 'phaseId', 'type': 'str'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, name=None, phase_id=None, phase_type=None, rank=None, run_plan_id=None, status=None): + super(ReleaseDeployPhase, self).__init__() + self.deployment_jobs = deployment_jobs + self.error_log = error_log + self.id = id + self.manual_interventions = manual_interventions + self.name = name + self.phase_id = phase_id + self.phase_type = phase_type + self.rank = rank + self.run_plan_id = run_plan_id + self.status = status + + +class ReleaseEnvironment(Model): + """ReleaseEnvironment. + + :param conditions: Gets list of conditions. + :type conditions: list of :class:`ReleaseCondition ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_environment_id: Gets definition environment id. + :type definition_environment_id: int + :param demands: Gets demands. + :type demands: list of :class:`object ` + :param deploy_phases_snapshot: Gets list of deploy phases snapshot. + :type deploy_phases_snapshot: list of :class:`object ` + :param deploy_steps: Gets deploy steps. + :type deploy_steps: list of :class:`DeploymentAttempt ` + :param environment_options: Gets environment options. + :type environment_options: :class:`EnvironmentOptions ` + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param next_scheduled_utc_time: Gets next scheduled UTC time. + :type next_scheduled_utc_time: datetime + :param owner: Gets the identity who is owner for release environment. + :type owner: :class:`IdentityRef ` + :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. + :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param post_deploy_approvals: Gets list of post deploy approvals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param post_deployment_gates_snapshot: + :type post_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. + :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: Gets list of pre deploy approvals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deployment_gates_snapshot: + :type pre_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: Gets process parameters. + :type process_parameters: :class:`ProcessParameters ` + :param queue_id: Gets queue id. + :type queue_id: int + :param rank: Gets rank. + :type rank: int + :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_created_by: Gets the identity who created release. + :type release_created_by: :class:`IdentityRef ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_description: Gets release description. + :type release_description: str + :param release_id: Gets release id. + :type release_id: int + :param scheduled_deployment_time: Gets schedule deployment time of release environment. + :type scheduled_deployment_time: datetime + :param schedules: Gets list of schedules. + :type schedules: list of :class:`ReleaseSchedule ` + :param status: Gets environment status. + :type status: object + :param time_to_deploy: Gets time to deploy. + :type time_to_deploy: float + :param trigger_reason: Gets trigger reason. + :type trigger_reason: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets the dictionary of variables. + :type variables: dict + :param workflow_tasks: Gets list of workflow tasks. + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, + 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'post_deployment_gates_snapshot': {'key': 'postDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deployment_gates_snapshot': {'key': 'preDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_description': {'key': 'releaseDescription', 'type': 'str'}, + 'release_id': {'key': 'releaseId', 'type': 'int'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'status': {'key': 'status', 'type': 'object'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, + 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, post_deployment_gates_snapshot=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, pre_deployment_gates_snapshot=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variable_groups=None, variables=None, workflow_tasks=None): + super(ReleaseEnvironment, self).__init__() + self.conditions = conditions + self.created_on = created_on + self.definition_environment_id = definition_environment_id + self.demands = demands + self.deploy_phases_snapshot = deploy_phases_snapshot + self.deploy_steps = deploy_steps + self.environment_options = environment_options + self.id = id + self.modified_on = modified_on + self.name = name + self.next_scheduled_utc_time = next_scheduled_utc_time + self.owner = owner + self.post_approvals_snapshot = post_approvals_snapshot + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates_snapshot = post_deployment_gates_snapshot + self.pre_approvals_snapshot = pre_approvals_snapshot + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates_snapshot = pre_deployment_gates_snapshot + self.process_parameters = process_parameters + self.queue_id = queue_id + self.rank = rank + self.release = release + self.release_created_by = release_created_by + self.release_definition = release_definition + self.release_description = release_description + self.release_id = release_id + self.scheduled_deployment_time = scheduled_deployment_time + self.schedules = schedules + self.status = status + self.time_to_deploy = time_to_deploy + self.trigger_reason = trigger_reason + self.variable_groups = variable_groups + self.variables = variables + self.workflow_tasks = workflow_tasks + + +class ReleaseEnvironmentShallowReference(Model): + """ReleaseEnvironmentShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release environment. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release environment. + :type id: int + :param name: Gets or sets the name of the release environment. + :type name: str + :param url: Gets the REST API url to access the release environment. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseEnvironmentShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseEnvironmentUpdateMetadata(Model): + """ReleaseEnvironmentUpdateMetadata. + + :param comment: Gets or sets comment. + :type comment: str + :param scheduled_deployment_time: Gets or sets scheduled deployment time. + :type scheduled_deployment_time: datetime + :param status: Gets or sets status of environment. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, scheduled_deployment_time=None, status=None): + super(ReleaseEnvironmentUpdateMetadata, self).__init__() + self.comment = comment + self.scheduled_deployment_time = scheduled_deployment_time + self.status = status + + +class ReleaseGates(Model): + """ReleaseGates. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param id: + :type id: int + :param last_modified_on: + :type last_modified_on: datetime + :param run_plan_id: + :type run_plan_id: str + :param stabilization_completed_on: + :type stabilization_completed_on: datetime + :param started_on: + :type started_on: datetime + :param status: + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'stabilization_completed_on': {'key': 'stabilizationCompletedOn', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, id=None, last_modified_on=None, run_plan_id=None, stabilization_completed_on=None, started_on=None, status=None): + super(ReleaseGates, self).__init__() + self.deployment_jobs = deployment_jobs + self.id = id + self.last_modified_on = last_modified_on + self.run_plan_id = run_plan_id + self.stabilization_completed_on = stabilization_completed_on + self.started_on = started_on + self.status = status + + +class ReleaseReference(Model): + """ReleaseReference. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param created_by: Gets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param name: Gets name of release. + :type name: str + :param reason: Gets reason for release. + :type reason: object + :param release_definition: Gets release definition shallow reference. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param url: + :type url: str + :param web_access_uri: + :type web_access_uri: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} + } + + def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): + super(ReleaseReference, self).__init__() + self._links = _links + self.artifacts = artifacts + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.name = name + self.reason = reason + self.release_definition = release_definition + self.url = url + self.web_access_uri = web_access_uri + + +class ReleaseRevision(Model): + """ReleaseRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_details: + :type change_details: str + :param change_type: + :type change_type: str + :param comment: + :type comment: str + :param definition_snapshot_revision: + :type definition_snapshot_revision: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_details': {'key': 'changeDetails', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): + super(ReleaseRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_details = change_details + self.change_type = change_type + self.comment = comment + self.definition_snapshot_revision = definition_snapshot_revision + self.release_id = release_id + + +class ReleaseSchedule(Model): + """ReleaseSchedule. + + :param days_to_release: Days of the week to release + :type days_to_release: object + :param job_id: Team Foundation Job Definition Job Id + :type job_id: str + :param start_hours: Local time zone hour to start + :type start_hours: int + :param start_minutes: Local time zone minute to start + :type start_minutes: int + :param time_zone_id: Time zone Id of release schedule, such as 'UTC' + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(ReleaseSchedule, self).__init__() + self.days_to_release = days_to_release + self.job_id = job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id + + +class ReleaseSettings(Model): + """ReleaseSettings. + + :param retention_settings: + :type retention_settings: :class:`RetentionSettings ` + """ + + _attribute_map = { + 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} + } + + def __init__(self, retention_settings=None): + super(ReleaseSettings, self).__init__() + self.retention_settings = retention_settings + + +class ReleaseShallowReference(Model): + """ReleaseShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release. + :type id: int + :param name: Gets or sets the name of the release. + :type name: str + :param url: Gets the REST API url to access the release. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseStartMetadata(Model): + """ReleaseStartMetadata. + + :param artifacts: Sets list of artifact to create a release. + :type artifacts: list of :class:`ArtifactMetadata ` + :param definition_id: Sets definition Id to create a release. + :type definition_id: int + :param description: Sets description to create a release. + :type description: str + :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. + :type is_draft: bool + :param manual_environments: Sets list of environments to manual as condition. + :type manual_environments: list of str + :param properties: + :type properties: :class:`object ` + :param reason: Sets reason to create a release. + :type reason: object + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'} + } + + def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): + super(ReleaseStartMetadata, self).__init__() + self.artifacts = artifacts + self.definition_id = definition_id + self.description = description + self.is_draft = is_draft + self.manual_environments = manual_environments + self.properties = properties + self.reason = reason + + +class ReleaseTask(Model): + """ReleaseTask. + + :param agent_name: + :type agent_name: str + :param date_ended: + :type date_ended: datetime + :param date_started: + :type date_started: datetime + :param finish_time: + :type finish_time: datetime + :param id: + :type id: int + :param issues: + :type issues: list of :class:`Issue ` + :param line_count: + :type line_count: long + :param log_url: + :type log_url: str + :param name: + :type name: str + :param percent_complete: + :type percent_complete: int + :param rank: + :type rank: int + :param start_time: + :type start_time: datetime + :param status: + :type status: object + :param task: + :type task: :class:`WorkflowTaskReference ` + :param timeline_record_id: + :type timeline_record_id: str + """ + + _attribute_map = { + 'agent_name': {'key': 'agentName', 'type': 'str'}, + 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, + 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'log_url': {'key': 'logUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, + 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} + } + + def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): + super(ReleaseTask, self).__init__() + self.agent_name = agent_name + self.date_ended = date_ended + self.date_started = date_started + self.finish_time = finish_time + self.id = id + self.issues = issues + self.line_count = line_count + self.log_url = log_url + self.name = name + self.percent_complete = percent_complete + self.rank = rank + self.start_time = start_time + self.status = status + self.task = task + self.timeline_record_id = timeline_record_id + + +class ReleaseTaskAttachment(Model): + """ReleaseTaskAttachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_on: + :type created_on: datetime + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param record_id: + :type record_id: str + :param timeline_id: + :type timeline_id: str + :param type: + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, modified_by=None, modified_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(ReleaseTaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type + + +class ReleaseUpdateMetadata(Model): + """ReleaseUpdateMetadata. + + :param comment: Sets comment for release. + :type comment: str + :param keep_forever: Set 'true' to exclude the release from retention policies. + :type keep_forever: bool + :param manual_environments: Sets list of manual environments. + :type manual_environments: list of str + :param status: Sets status of the release. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): + super(ReleaseUpdateMetadata, self).__init__() + self.comment = comment + self.keep_forever = keep_forever + self.manual_environments = manual_environments + self.status = status + + +class ReleaseWorkItemRef(Model): + """ReleaseWorkItemRef. + + :param assignee: + :type assignee: str + :param id: + :type id: str + :param state: + :type state: str + :param title: + :type title: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'assignee': {'key': 'assignee', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): + super(ReleaseWorkItemRef, self).__init__() + self.assignee = assignee + self.id = id + self.state = state + self.title = title + self.type = type + self.url = url + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} + } + + def __init__(self, days_to_keep=None): + super(RetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + + +class RetentionSettings(Model): + """RetentionSettings. + + :param days_to_keep_deleted_releases: + :type days_to_keep_deleted_releases: int + :param default_environment_retention_policy: + :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + :param maximum_environment_retention_policy: + :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, + 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): + super(RetentionSettings, self).__init__() + self.days_to_keep_deleted_releases = days_to_keep_deleted_releases + self.default_environment_retention_policy = default_environment_retention_policy + self.maximum_environment_retention_policy = maximum_environment_retention_policy + + +class SummaryMailSection(Model): + """SummaryMailSection. + + :param html_content: + :type html_content: str + :param rank: + :type rank: int + :param section_type: + :type section_type: object + :param title: + :type title: str + """ + + _attribute_map = { + 'html_content': {'key': 'htmlContent', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'section_type': {'key': 'sectionType', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, html_content=None, rank=None, section_type=None, title=None): + super(SummaryMailSection, self).__init__() + self.html_content = html_content + self.rank = rank + self.section_type = section_type + self.title = title + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets name. + :type name: str + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type. + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class WorkflowTask(Model): + """WorkflowTask. + + :param always_run: + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: + :type continue_on_error: bool + :param definition_type: + :type definition_type: str + :param enabled: + :type enabled: bool + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param override_inputs: + :type override_inputs: dict + :param ref_name: + :type ref_name: str + :param task_id: + :type task_id: str + :param timeout_in_minutes: + :type timeout_in_minutes: int + :param version: + :type version: str + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): + super(WorkflowTask, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.definition_type = definition_type + self.enabled = enabled + self.inputs = inputs + self.name = name + self.override_inputs = override_inputs + self.ref_name = ref_name + self.task_id = task_id + self.timeout_in_minutes = timeout_in_minutes + self.version = version + + +class WorkflowTaskReference(Model): + """WorkflowTaskReference. + + :param id: + :type id: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(WorkflowTaskReference, self).__init__() + self.id = id + self.name = name + self.version = version + + +class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionApprovalStep. + + :param id: + :type id: int + :param approver: + :type approver: :class:`IdentityRef ` + :param is_automated: + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param rank: + :type rank: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): + super(ReleaseDefinitionApprovalStep, self).__init__(id=id) + self.approver = approver + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.rank = rank + + +class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionDeployStep. + + :param id: + :type id: int + :param tasks: The list of steps for this definition. + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, id=None, tasks=None): + super(ReleaseDefinitionDeployStep, self).__init__(id=id) + self.tasks = tasks + + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'FavoriteItem', + 'Folder', + 'GraphSubjectBase', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'PipelineProcess', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTaskAttachment', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', +] diff --git a/azure-devops/azure/devops/v4_1/release/release_client.py b/azure-devops/azure/devops/v4_1/release/release_client.py new file mode 100644 index 00000000..0452209a --- /dev/null +++ b/azure-devops/azure/devops/v4_1/release/release_client.py @@ -0,0 +1,782 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ReleaseClient(Client): + """Release + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' + + def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): + """GetApprovals. + [Preview API] Get a list of approvals + :param str project: Project ID or project name + :param str assigned_to_filter: Approvals assigned to this user. + :param str status_filter: Approvals with this status. Default is 'pending'. + :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. + :param str type_filter: Approval with this type. + :param int top: Number of approvals to get. Default is 50. + :param int continuation_token: Gets the approvals after the continuation token provided. + :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. + :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if assigned_to_filter is not None: + query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if release_ids_filter is not None: + release_ids_filter = ",".join(map(str, release_ids_filter)) + query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') + if type_filter is not None: + query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if include_my_group_approvals is not None: + query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') + response = self._send(http_method='GET', + location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) + + def update_release_approval(self, approval, project, approval_id): + """UpdateReleaseApproval. + [Preview API] Update status of an approval + :param :class:` ` approval: ReleaseApproval object having status, approver and comments. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + content = self._serialize.body(approval, 'ReleaseApproval') + response = self._send(http_method='PATCH', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='4.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseApproval', response) + + def get_task_attachment_content(self, project, release_id, environment_id, attempt_id, timeline_id, record_id, type, name, **kwargs): + """GetTaskAttachmentContent. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='c4071f6d-3697-46ca-858e-8b10ff09e52f', + version='4.1-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_task_attachments(self, project, release_id, environment_id, attempt_id, timeline_id, type): + """GetTaskAttachments. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :param str timeline_id: + :param str type: + :rtype: [ReleaseTaskAttachment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='214111ee-2415-4df2-8ed2-74417f7d61f9', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseTaskAttachment]', self._unwrap_collection(response)) + + def create_release_definition(self, release_definition, project): + """CreateReleaseDefinition. + [Preview API] Create a release definition + :param :class:` ` release_definition: release definition object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='POST', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def delete_release_definition(self, project, definition_id, comment=None, force_delete=None): + """DeleteReleaseDefinition. + [Preview API] Delete a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param str comment: Comment for deleting a release definition. + :param bool force_delete: 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + if force_delete is not None: + query_parameters['forceDelete'] = self._serialize.query('force_delete', force_delete, 'bool') + self._send(http_method='DELETE', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + + def get_release_definition(self, project, definition_id, property_filters=None): + """GetReleaseDefinition. + [Preview API] Get a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinition', response) + + def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None, is_deleted=None): + """GetReleaseDefinitions. + [Preview API] Get a list of release definitions. + :param str project: Project ID or project name + :param str search_text: Get release definitions with names starting with searchText. + :param str expand: The properties that should be expanded in the list of Release definitions. + :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param int top: Number of release definitions to get. + :param str continuation_token: Gets the release definitions after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. + :param str path: Gets the release definitions under the specified path. + :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. + :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. + :param bool is_deleted: 'true' to get release definitions that has been deleted. Default is 'false' + :rtype: [ReleaseDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if is_exact_name_match is not None: + query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if definition_id_filter is not None: + definition_id_filter = ",".join(definition_id_filter) + query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) + + def update_release_definition(self, release_definition, project): + """UpdateReleaseDefinition. + [Preview API] Update a release definition. + :param :class:` ` release_definition: Release definition object to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='PUT', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='4.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None, min_started_time=None, max_started_time=None): + """GetDeployments. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :param int definition_environment_id: + :param str created_by: + :param datetime min_modified_time: + :param datetime max_modified_time: + :param str deployment_status: + :param str operation_status: + :param bool latest_attempts_only: + :param str query_order: + :param int top: + :param int continuation_token: + :param str created_for: + :param datetime min_started_time: + :param datetime max_started_time: + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if min_modified_time is not None: + query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') + if max_modified_time is not None: + query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') + if deployment_status is not None: + query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') + if operation_status is not None: + query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') + if latest_attempts_only is not None: + query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if created_for is not None: + query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + if min_started_time is not None: + query_parameters['minStartedTime'] = self._serialize.query('min_started_time', min_started_time, 'iso-8601') + if max_started_time is not None: + query_parameters['maxStartedTime'] = self._serialize.query('max_started_time', max_started_time, 'iso-8601') + response = self._send(http_method='GET', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) + + def update_release_environment(self, environment_update_data, project, release_id, environment_id): + """UpdateReleaseEnvironment. + [Preview API] Update the status of a release environment + :param :class:` ` environment_update_data: Environment update meta data. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='4.1-preview.5', + route_values=route_values, + content=content) + return self._deserialize('ReleaseEnvironment', response) + + def get_logs(self, project, release_id, **kwargs): + """GetLogs. + [Preview API] Get logs for a release Id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', + version='4.1-preview.2', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None, **kwargs): + """GetTaskLog. + [Preview API] Gets the task log of a release as a plain text file. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int release_deploy_phase_id: Release deploy phase Id. + :param int task_id: ReleaseTask Id for the log. + :param long start_line: Starting line number for logs + :param long end_line: Ending line number for logs + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', + version='4.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_manual_intervention(self, project, release_id, manual_intervention_id): + """GetManualIntervention. + [Preview API] Get manual intervention for a given release and manual intervention id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('ManualIntervention', response) + + def get_manual_interventions(self, project, release_id): + """GetManualInterventions. + [Preview API] List all manual interventions for a given release. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: [ManualIntervention] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) + + def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): + """UpdateManualIntervention. + [Preview API] Update manual intervention. + :param :class:` ` manual_intervention_update_metadata: Meta data to update manual intervention. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='4.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ManualIntervention', response) + + def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None, release_id_filter=None): + """GetReleases. + [Preview API] Get a list of releases + :param str project: Project ID or project name + :param int definition_id: Releases from this release definition Id. + :param int definition_environment_id: + :param str search_text: Releases with names starting with searchText. + :param str created_by: Releases created by this user. + :param str status_filter: Releases that have this status. + :param int environment_status_filter: + :param datetime min_created_time: Releases that were created after this time. + :param datetime max_created_time: Releases that were created before this time. + :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. + :param int top: Number of releases to get. Default is 50. + :param int continuation_token: Gets the releases after the continuation token provided. + :param str expand: The property that should be expanded in the list of releases. + :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. + :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. + :param bool is_deleted: Gets the soft deleted releases, if true. + :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to retrieve. + :param [int] release_id_filter: A comma-delimited list of releases Ids. Only releases with these Ids will be returned. + :rtype: [Release] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if environment_status_filter is not None: + query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') + if min_created_time is not None: + query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') + if max_created_time is not None: + query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type_id is not None: + query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + if source_branch_filter is not None: + query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if release_id_filter is not None: + release_id_filter = ",".join(map(str, release_id_filter)) + query_parameters['releaseIdFilter'] = self._serialize.query('release_id_filter', release_id_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Release]', self._unwrap_collection(response)) + + def create_release(self, release_start_metadata, project): + """CreateRelease. + [Preview API] Create a release. + :param :class:` ` release_start_metadata: Metadata to create a release. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') + response = self._send(http_method='POST', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_release(self, project, release_id, approval_filters=None, property_filters=None): + """GetRelease. + [Preview API] Get a Release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default + :param [str] property_filters: A comma-delimited list of properties to include in the results. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if approval_filters is not None: + query_parameters['approvalFilters'] = self._serialize.query('approval_filters', approval_filters, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Release', response) + + def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): + """GetReleaseDefinitionSummary. + [Preview API] Get release summary of a given definition Id. + :param str project: Project ID or project name + :param int definition_id: Id of the definition to get release summary. + :param int release_count: Count of releases to be included in summary. + :param bool include_artifact: Include artifact details.Default is 'false'. + :param [int] definition_environment_ids_filter: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if release_count is not None: + query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') + if include_artifact is not None: + query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') + if definition_environment_ids_filter is not None: + definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) + query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinitionSummary', response) + + def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): + """GetReleaseRevision. + [Preview API] Get release for a given revision number. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int definition_snapshot_revision: Definition snapshot revision number. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if definition_snapshot_revision is not None: + query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def update_release(self, release, project, release_id): + """UpdateRelease. + [Preview API] Update a complete release object. + :param :class:` ` release: Release object for update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release, 'Release') + response = self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def update_release_resource(self, release_update_metadata, project, release_id): + """UpdateReleaseResource. + [Preview API] Update few properties of a release. + :param :class:` ` release_update_metadata: Properties of release to update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='4.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_definition_revision(self, project, definition_id, revision, **kwargs): + """GetDefinitionRevision. + [Preview API] Get release definition for a given definitionId and revision + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :param int revision: Id of the revision. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + if revision is not None: + route_values['revision'] = self._serialize.url('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.1-preview.1', + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_release_definition_history(self, project, definition_id): + """GetReleaseDefinitionHistory. + [Preview API] Get revision history for a release definition + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :rtype: [ReleaseDefinitionRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='4.1-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) + diff --git a/test.py b/test.py new file mode 100644 index 00000000..480f795c --- /dev/null +++ b/test.py @@ -0,0 +1,107 @@ +from azure.devops.connection import Connection +from msrest.authentication import BasicAuthentication +from azure.devops.v4_1.work_item_tracking.models import * +import pprint +import io +import mmap +import zipfile +from msrest.pipeline import ClientRawResponse +from azure.devops.v4_0.git.git_client import GitClient + +import logging + +logging.basicConfig(level=logging.DEBUG) + +# Fill in with your personal access token and org URL +personal_access_token = 's7y2vnu66eqywexjurlozop74dm4cjyw6k4kxnwt6stz3wvt5svq' +organization_url = 'https://dev.azure.com/vsalmopen' + +# Create a connection to the org +credentials = BasicAuthentication('x', personal_access_token) +connection = Connection(base_url=organization_url, creds=credentials) + +# Get a client (the "core" client provides access to projects, teams, etc) +graph_client = connection.get_client('azure.devops.v4_1.graph.graph_client.GraphClient') + + +personal_access_token2 = 'wwz4hgy23yhzpzwivompixg6tsf27rvmuxgztnxlvy652r3rys7q' +organization_url2 = 'https://dev.azure.com/mseng' +credentials2 = BasicAuthentication('x', personal_access_token2) +connection2 = Connection(base_url=organization_url2, creds=credentials2) +git_client = GitClient(connection2.clients.get_git_client()) + +connection2.clients.connection +x = git_client.get_pull_request_iteration_changes('AzDevNext', 424307, 2, compare_to=1, project='AzureDevOps').as_dict() +pprint.pprint(x['change_entries'][0]) + + +def upload_callback(chunk, response): + pprint.pprint('Uploaded chunk of size: ' + str(len(chunk))) + if response is not None: + pprint.pprint(response.__dict__) + + +def upload_work_item_attachment(wit_client, work_item_id, file_name, callback=upload_callback): + # upload file / create attachment + with open(file_name, 'r+b') as file: + # use mmap, so we don't load entire file in memory at the same time, and so we can start + # streaming before we are done reading the file. + mm = mmap.mmap(file.fileno(), 0) + attachment = wit_client.create_attachment(mm, file_name=file_name, callback=upload_callback) + + # Link Work Item to attachment + patch_document = [ + JsonPatchOperation( + op="add", + path="/relations/-", + value={ + "rel": "AttachedFile", + "url": attachment.url + } + ) + ] + wit_client.update_work_item(patch_document, work_item_id) + + +wit_client = connection.get_client('azure.devops.v4_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') + +upload_work_item_attachment(wit_client, + work_item_id=335, + file_name='SQL transient.xlsx') + +#upload_work_item_attachment(wit_client, +# work_item_id=335, +# file_name='\\\\vsncstor\\Users\\tedchamb\\SQLServer2017-x64-ENU.iso') + + +# groups = graph_client.list_users() + +# pprint.pprint(groups.__dict__) + +# groups = graph_client.list_users(continuation_token=groups.continuation_token) + +# pprint.pprint(groups.__dict__) + +# wit_client: object = connection.get_client('azure.devops.v4_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') +# +# wiql = Wiql() +# wiql.query = "Select [System.Id], [System.Title], [System.State] From WorkItems Where [System.WorkItemType] = 'Task'" +# +# wiql_results = wit_client.query_by_wiql(wiql, top=100).work_items +# if wiql_results: +# pprint.pprint(wiql_results) +# work_items = ( +# wit_client.get_work_item(int(res.id), expand='Relations') for res in wiql_results +# ) +# for work_item in work_items: +# pprint.pprint(work_item) +# if work_item.relations is not None: +# for relation in work_item.relations: +# if relation.rel == 'AttachedFile': +# pprint.pprint(relation.__dict__) +# response = wit_client.get_attachment_zip(relation.url.split('/')[-1], download=True, callback=callback) +# with open(relation.attributes['name'], 'wb') as f: +# for x in response: +# f.write(x) + + From b38ca38b3a34fda9ca355f3932af55b0551e1e3c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 11 Feb 2019 20:35:14 -0500 Subject: [PATCH 102/191] remove test.py --- test.py | 107 -------------------------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index 480f795c..00000000 --- a/test.py +++ /dev/null @@ -1,107 +0,0 @@ -from azure.devops.connection import Connection -from msrest.authentication import BasicAuthentication -from azure.devops.v4_1.work_item_tracking.models import * -import pprint -import io -import mmap -import zipfile -from msrest.pipeline import ClientRawResponse -from azure.devops.v4_0.git.git_client import GitClient - -import logging - -logging.basicConfig(level=logging.DEBUG) - -# Fill in with your personal access token and org URL -personal_access_token = 's7y2vnu66eqywexjurlozop74dm4cjyw6k4kxnwt6stz3wvt5svq' -organization_url = 'https://dev.azure.com/vsalmopen' - -# Create a connection to the org -credentials = BasicAuthentication('x', personal_access_token) -connection = Connection(base_url=organization_url, creds=credentials) - -# Get a client (the "core" client provides access to projects, teams, etc) -graph_client = connection.get_client('azure.devops.v4_1.graph.graph_client.GraphClient') - - -personal_access_token2 = 'wwz4hgy23yhzpzwivompixg6tsf27rvmuxgztnxlvy652r3rys7q' -organization_url2 = 'https://dev.azure.com/mseng' -credentials2 = BasicAuthentication('x', personal_access_token2) -connection2 = Connection(base_url=organization_url2, creds=credentials2) -git_client = GitClient(connection2.clients.get_git_client()) - -connection2.clients.connection -x = git_client.get_pull_request_iteration_changes('AzDevNext', 424307, 2, compare_to=1, project='AzureDevOps').as_dict() -pprint.pprint(x['change_entries'][0]) - - -def upload_callback(chunk, response): - pprint.pprint('Uploaded chunk of size: ' + str(len(chunk))) - if response is not None: - pprint.pprint(response.__dict__) - - -def upload_work_item_attachment(wit_client, work_item_id, file_name, callback=upload_callback): - # upload file / create attachment - with open(file_name, 'r+b') as file: - # use mmap, so we don't load entire file in memory at the same time, and so we can start - # streaming before we are done reading the file. - mm = mmap.mmap(file.fileno(), 0) - attachment = wit_client.create_attachment(mm, file_name=file_name, callback=upload_callback) - - # Link Work Item to attachment - patch_document = [ - JsonPatchOperation( - op="add", - path="/relations/-", - value={ - "rel": "AttachedFile", - "url": attachment.url - } - ) - ] - wit_client.update_work_item(patch_document, work_item_id) - - -wit_client = connection.get_client('azure.devops.v4_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') - -upload_work_item_attachment(wit_client, - work_item_id=335, - file_name='SQL transient.xlsx') - -#upload_work_item_attachment(wit_client, -# work_item_id=335, -# file_name='\\\\vsncstor\\Users\\tedchamb\\SQLServer2017-x64-ENU.iso') - - -# groups = graph_client.list_users() - -# pprint.pprint(groups.__dict__) - -# groups = graph_client.list_users(continuation_token=groups.continuation_token) - -# pprint.pprint(groups.__dict__) - -# wit_client: object = connection.get_client('azure.devops.v4_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') -# -# wiql = Wiql() -# wiql.query = "Select [System.Id], [System.Title], [System.State] From WorkItems Where [System.WorkItemType] = 'Task'" -# -# wiql_results = wit_client.query_by_wiql(wiql, top=100).work_items -# if wiql_results: -# pprint.pprint(wiql_results) -# work_items = ( -# wit_client.get_work_item(int(res.id), expand='Relations') for res in wiql_results -# ) -# for work_item in work_items: -# pprint.pprint(work_item) -# if work_item.relations is not None: -# for relation in work_item.relations: -# if relation.rel == 'AttachedFile': -# pprint.pprint(relation.__dict__) -# response = wit_client.get_attachment_zip(relation.url.split('/')[-1], download=True, callback=callback) -# with open(relation.attributes['name'], 'wb') as f: -# for x in response: -# f.write(x) - - From b219c5aed61bc8626b26aa9cabdab0cf675daaa3 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 11 Feb 2019 23:11:42 -0500 Subject: [PATCH 103/191] Initial commit for version 5.x --- azure-devops/azure/devops/connection.py | 2 +- .../devops/v4_0/accounts/accounts_client.py | 89 - .../extension_management_client.py | 546 --- .../azure/devops/v4_0/git/git_client.py | 42 - .../member_entitlement_management_client.py | 212 - .../member_entitlement_management/models.py | 674 ---- .../project_analysis_client.py | 65 - .../azure/devops/v4_0/release/__init__.py | 92 - .../azure/devops/v4_0/release/models.py | 3104 --------------- .../devops/v4_0/release/release_client.py | 1689 -------- .../v4_0/task_agent/task_agent_client.py | 2466 ------------ .../azure/devops/v4_0/test/test_client.py | 2206 ----------- azure-devops/azure/devops/v4_0/wiki/models.py | 801 ---- .../azure/devops/v4_0/wiki/wiki_client.py | 263 -- .../v4_0/work_item_tracking_process/models.py | 791 ---- .../work_item_tracking_process_client.py | 367 -- .../__init__.py | 35 - .../models.py | 795 ---- ...tem_tracking_process_definitions_client.py | 963 ----- .../azure/devops/v4_1/git/git_client.py | 45 - .../azure/devops/v4_1/release/__init__.py | 101 - .../azure/devops/v4_1/release/models.py | 3465 ----------------- .../devops/v4_1/release/release_client.py | 782 ---- .../v4_1/work_item_tracking_process/models.py | 791 ---- .../work_item_tracking_process_client.py | 367 -- .../__init__.py | 35 - .../models.py | 795 ---- .../azure/devops/{v4_1 => v5_0}/__init__.py | 0 .../{v4_1 => v5_0}/accounts/__init__.py | 0 .../accounts/accounts_client.py | 2 +- .../devops/{v4_1 => v5_0}/accounts/models.py | 6 +- .../azure/devops/v5_0/boards/__init__.py | 38 + .../azure/devops/v5_0/boards/boards_client.py | 27 + .../azure/devops/v5_0/boards/models.py | 644 +++ .../devops/{v4_1 => v5_0}/build/__init__.py | 4 + .../{v4_1 => v5_0}/build/build_client.py | 602 ++- .../devops/{v4_1 => v5_0}/build/models.py | 441 ++- .../{v4_1 => v5_0}/client_trace/__init__.py | 0 .../client_trace/client_trace_client.py | 2 +- .../{v4_1 => v5_0}/client_trace/models.py | 0 .../cloud_load_test/__init__.py | 0 .../cloud_load_test/cloud_load_test_client.py | 98 +- .../devops/v5_0/cloud_load_test/models.py | 1775 +++++++++ .../{v4_1 => v5_0}/contributions/__init__.py | 0 .../contributions/contributions_client.py | 30 +- .../{v4_0 => v5_0}/contributions/models.py | 251 +- .../devops/{v4_1 => v5_0}/core/__init__.py | 0 .../devops/{v4_1 => v5_0}/core/core_client.py | 106 +- .../devops/{v4_1 => v5_0}/core/models.py | 53 +- .../customer_intelligence/__init__.py | 0 .../customer_intelligence_client.py | 2 +- .../customer_intelligence/models.py | 0 .../{v4_1 => v5_0}/dashboard/__init__.py | 0 .../dashboard/dashboard_client.py | 182 +- .../devops/{v4_1 => v5_0}/dashboard/models.py | 60 +- .../extension_management/__init__.py | 0 .../extension_management_client.py | 18 +- .../extension_management/models.py | 104 +- .../feature_availability/__init__.py | 0 .../feature_availability_client.py | 39 +- .../feature_availability/models.py | 0 .../feature_management/__init__.py | 2 + .../feature_management_client.py | 44 +- .../feature_management/models.py | 86 +- .../azure/devops/v5_0/feed/__init__.py | 42 + .../devops/{v4_1 => v5_0}/feed/feed_client.py | 348 +- .../devops/{v4_1 => v5_0}/feed/models.py | 574 ++- .../{v4_1 => v5_0}/feed_token/__init__.py | 0 .../feed_token/feed_token_client.py | 13 +- .../{v4_1 => v5_0}/file_container/__init__.py | 0 .../file_container/file_container_client.py | 10 +- .../{v4_1 => v5_0}/file_container/models.py | 0 .../devops/{v4_1 => v5_0}/gallery/__init__.py | 0 .../{v4_0 => v5_0}/gallery/gallery_client.py | 660 +++- .../devops/{v4_0 => v5_0}/gallery/models.py | 402 +- .../devops/{v4_1 => v5_0}/git/__init__.py | 11 + .../{v4_1 => v5_0}/git/git_client_base.py | 538 +-- .../azure/devops/{v4_1 => v5_0}/git/models.py | 715 +++- .../devops/{v4_1 => v5_0}/graph/__init__.py | 3 +- .../azure/devops/v5_0/graph/graph_client.py | 354 ++ .../devops/{v4_1 => v5_0}/graph/models.py | 151 +- .../{v4_1 => v5_0}/identity/__init__.py | 2 + .../identity/identity_client.py | 130 +- .../devops/{v4_0 => v5_0}/identity/models.py | 202 +- .../{v4_1 => v5_0}/licensing/__init__.py | 0 .../licensing/licensing_client.py | 73 +- .../devops/{v4_1 => v5_0}/licensing/models.py | 26 +- .../{v4_1 => v5_0}/location/__init__.py | 0 .../location/location_client.py | 44 +- .../devops/{v4_0 => v5_0}/location/models.py | 98 +- .../devops/{v4_1 => v5_0}/maven/__init__.py | 3 + .../{v4_1 => v5_0}/maven/maven_client.py | 60 +- .../azure/devops/v5_0/maven/models.py | 818 ++++ .../member_entitlement_management/__init__.py | 1 + .../member_entitlement_management_client.py | 290 ++ .../member_entitlement_management/models.py | 161 +- .../{v4_1 => v5_0}/notification/__init__.py | 4 + .../{v4_1 => v5_0}/notification/models.py | 226 +- .../notification/notification_client.py | 175 +- .../devops/{v4_1 => v5_0}/npm/__init__.py | 0 .../azure/devops/{v4_1 => v5_0}/npm/models.py | 36 +- .../azure/devops/v5_0/npm/npm_client.py | 427 ++ .../devops/{v4_1 => v5_0}/nuGet/__init__.py | 1 + .../devops/{v4_1 => v5_0}/nuGet/models.py | 59 +- .../{v4_1 => v5_0}/nuGet/nuGet_client.py | 90 +- .../{v4_1 => v5_0}/operations/__init__.py | 0 .../{v4_1 => v5_0}/operations/models.py | 4 +- .../operations/operations_client.py | 4 +- .../devops/{v4_1 => v5_0}/policy/__init__.py | 0 .../devops/{v4_1 => v5_0}/policy/models.py | 30 +- .../{v4_1 => v5_0}/policy/policy_client.py | 44 +- .../devops/{v4_1 => v5_0}/profile/__init__.py | 0 .../devops/{v4_1 => v5_0}/profile/models.py | 6 +- .../{v4_1 => v5_0}/profile/profile_client.py | 4 +- .../project_analysis/__init__.py | 0 .../{v4_1 => v5_0}/project_analysis/models.py | 10 +- .../project_analysis_client.py | 14 +- .../azure/devops/v5_0/provenance/__init__.py | 14 + .../azure/devops/v5_0/provenance/models.py | 59 + .../v5_0/provenance/provenance_client.py | 45 + .../azure/devops/v5_0/py_pi_api/__init__.py | 21 + .../azure/devops/v5_0/py_pi_api/models.py | 214 + .../devops/v5_0/py_pi_api/py_pi_api_client.py | 182 + .../{v4_1 => v5_0}/security/__init__.py | 0 .../devops/{v4_1 => v5_0}/security/models.py | 10 +- .../security/security_client.py | 61 +- .../service_endpoint/__init__.py | 7 + .../{v4_1 => v5_0}/service_endpoint/models.py | 390 +- .../service_endpoint_client.py | 53 +- .../{v4_1 => v5_0}/service_hooks/__init__.py | 0 .../{v4_1 => v5_0}/service_hooks/models.py | 106 +- .../service_hooks/service_hooks_client.py | 90 +- .../{v4_1 => v5_0}/settings/__init__.py | 0 .../settings/settings_client.py | 12 +- .../devops/{v4_1 => v5_0}/symbol/__init__.py | 0 .../devops/{v4_1 => v5_0}/symbol/models.py | 8 +- .../{v4_1 => v5_0}/symbol/symbol_client.py | 46 +- .../devops/{v4_1 => v5_0}/task/__init__.py | 2 + .../devops/{v4_0 => v5_0}/task/models.py | 137 +- .../devops/{v4_1 => v5_0}/task/task_client.py | 48 +- .../{v4_1 => v5_0}/task_agent/__init__.py | 18 +- .../{v4_1 => v5_0}/task_agent/models.py | 1034 +++-- .../task_agent/task_agent_client.py | 151 +- .../devops/{v4_1 => v5_0}/test/__init__.py | 7 + .../devops/{v4_1 => v5_0}/test/models.py | 1383 ++++--- .../devops/{v4_1 => v5_0}/test/test_client.py | 1459 +++---- .../devops/{v4_1 => v5_0}/tfvc/__init__.py | 2 + .../devops/{v4_1 => v5_0}/tfvc/models.py | 170 +- .../devops/{v4_1 => v5_0}/tfvc/tfvc_client.py | 92 +- .../devops/v5_0/uPack_packaging/__init__.py | 17 + .../devops/v5_0/uPack_packaging/models.py | 134 + .../uPack_packaging/uPack_packaging_client.py | 93 + .../azure/devops/v5_0/universal/__init__.py | 21 + .../azure/devops/v5_0/universal/models.py | 214 + .../devops/v5_0/universal/universal_client.py | 158 + .../devops/{v4_1 => v5_0}/wiki/__init__.py | 0 .../devops/{v4_1 => v5_0}/wiki/models.py | 30 +- .../devops/{v4_1 => v5_0}/wiki/wiki_client.py | 60 +- .../devops/{v4_1 => v5_0}/work/__init__.py | 5 + .../devops/{v4_1 => v5_0}/work/models.py | 267 +- .../devops/{v4_1 => v5_0}/work/work_client.py | 238 +- .../work_item_tracking/__init__.py | 3 +- .../work_item_tracking/models.py | 270 +- .../work_item_tracking_client.py | 371 +- .../work_item_tracking_process/__init__.py | 21 + .../v5_0/work_item_tracking_process/models.py | 1487 +++++++ .../work_item_tracking_process_client.py | 1143 ++++++ .../__init__.py | 0 .../models.py | 4 +- ...k_item_tracking_process_template_client.py | 60 +- .../azure/devops/{v4_0 => v5_1}/__init__.py | 2 +- .../{v4_0 => v5_1}/accounts/__init__.py | 2 +- .../devops/v5_1/accounts/accounts_client.py | 48 + .../devops/{v4_0 => v5_1}/accounts/models.py | 8 +- .../devops/{v4_0 => v5_1}/build/__init__.py | 23 +- .../{v4_0 => v5_1}/build/build_client.py | 1132 ++++-- .../devops/{v4_0 => v5_1}/build/models.py | 1542 ++++++-- .../client_trace}/__init__.py | 3 +- .../v5_1/client_trace/client_trace_client.py | 38 + .../azure/devops/v5_1/client_trace/models.py | 58 + .../devops/v5_1/cloud_load_test/__init__.py | 60 + .../cloud_load_test/cloud_load_test_client.py | 455 +++ .../{v4_1 => v5_1}/cloud_load_test/models.py | 92 +- .../{v4_0 => v5_1}/contributions/__init__.py | 7 +- .../contributions/contributions_client.py | 18 +- .../{v4_1 => v5_1}/contributions/models.py | 64 +- .../devops/{v4_0 => v5_1}/core/__init__.py | 5 +- .../devops/{v4_0 => v5_1}/core/core_client.py | 268 +- .../devops/{v4_0 => v5_1}/core/models.py | 211 +- .../customer_intelligence/__init__.py | 2 +- .../customer_intelligence_client.py | 4 +- .../customer_intelligence/models.py | 2 +- .../{v4_0 => v5_1}/dashboard/__init__.py | 2 +- .../dashboard/dashboard_client.py | 116 +- .../devops/{v4_0 => v5_1}/dashboard/models.py | 163 +- .../extension_management/__init__.py | 4 +- .../extension_management_client.py | 134 + .../extension_management/models.py | 222 +- .../feature_availability/__init__.py | 2 +- .../feature_availability_client.py | 41 +- .../feature_availability/models.py | 2 +- .../feature_management/__init__.py | 4 +- .../feature_management_client.py | 46 +- .../feature_management/models.py | 98 +- .../devops/{v4_1 => v5_1}/feed/__init__.py | 8 + .../azure/devops/v5_1/feed/feed_client.py | 712 ++++ azure-devops/azure/devops/v5_1/feed/models.py | 1103 ++++++ .../azure/devops/v5_1/feed_token/__init__.py | 11 + .../v5_1/feed_token/feed_token_client.py | 45 + .../{v4_0 => v5_1}/file_container/__init__.py | 2 +- .../file_container/file_container_client.py | 12 +- .../{v4_0 => v5_1}/file_container/models.py | 2 +- .../devops/{v4_0 => v5_1}/gallery/__init__.py | 9 +- .../{v4_1 => v5_1}/gallery/gallery_client.py | 367 +- .../devops/{v4_1 => v5_1}/gallery/models.py | 131 +- .../devops/{v4_0 => v5_1}/git/__init__.py | 19 +- .../{v4_0 => v5_1}/git/git_client_base.py | 1538 +++++--- .../azure/devops/{v4_0 => v5_1}/git/models.py | 1401 ++++--- .../azure/devops/v5_1/graph/__init__.py | 35 + .../{v4_1 => v5_1}/graph/graph_client.py | 83 +- .../azure/devops/v5_1/graph/models.py | 730 ++++ .../{v4_0 => v5_1}/identity/__init__.py | 5 +- .../identity/identity_client.py | 147 +- .../devops/{v4_1 => v5_1}/identity/models.py | 144 +- .../{v4_0 => v5_1}/licensing/__init__.py | 8 +- .../licensing/licensing_client.py | 149 +- .../devops/{v4_0 => v5_1}/licensing/models.py | 309 +- .../{v4_0 => v5_1}/location/__init__.py | 3 +- .../location/location_client.py | 90 +- .../devops/{v4_1 => v5_1}/location/models.py | 40 +- .../azure/devops/v5_1/maven/__init__.py | 40 + .../azure/devops/v5_1/maven/maven_client.py | 149 + .../devops/{v4_1 => v5_1}/maven/models.py | 132 +- .../member_entitlement_management/__init__.py | 17 +- .../member_entitlement_management_client.py | 72 +- .../member_entitlement_management/models.py | 1242 ++++++ .../{v4_0 => v5_1}/notification/__init__.py | 13 +- .../{v4_0 => v5_1}/notification/models.py | 474 ++- .../notification/notification_client.py | 89 +- .../azure/devops/v5_1/npm/__init__.py | 23 + azure-devops/azure/devops/v5_1/npm/models.py | 272 ++ .../devops/{v4_1 => v5_1}/npm/npm_client.py | 178 +- .../azure/devops/v5_1/nuGet/__init__.py | 23 + .../azure/devops/v5_1/nuGet/models.py | 268 ++ .../azure/devops/v5_1/nuGet/nuGet_client.py | 200 + .../{v4_0 => v5_1}/operations/__init__.py | 3 +- .../{v4_0 => v5_1}/operations/models.py | 56 +- .../operations/operations_client.py | 19 +- .../devops/{v4_0 => v5_1}/policy/__init__.py | 3 +- .../devops/{v4_0 => v5_1}/policy/models.py | 165 +- .../{v4_0 => v5_1}/policy/policy_client.py | 96 +- .../azure/devops/v5_1/profile/__init__.py | 15 + .../azure/devops/v5_1/profile/models.py | 76 + .../devops/v5_1/profile/profile_client.py | 52 + .../project_analysis/__init__.py | 4 +- .../{v4_0 => v5_1}/project_analysis/models.py | 119 +- .../project_analysis_client.py | 120 + .../azure/devops/v5_1/provenance/__init__.py | 14 + .../azure/devops/v5_1/provenance/models.py | 59 + .../v5_1/provenance/provenance_client.py | 45 + .../azure/devops/v5_1/py_pi_api/__init__.py | 21 + .../azure/devops/v5_1/py_pi_api/models.py | 214 + .../devops/v5_1/py_pi_api/py_pi_api_client.py | 182 + .../{v4_0 => v5_1}/security/__init__.py | 2 +- .../devops/{v4_0 => v5_1}/security/models.py | 12 +- .../security/security_client.py | 111 +- .../devops/v5_1/service_endpoint/__init__.py | 53 + .../devops/v5_1/service_endpoint/models.py | 1393 +++++++ .../service_endpoint_client.py | 266 ++ .../{v4_0 => v5_1}/service_hooks/__init__.py | 7 +- .../{v4_0 => v5_1}/service_hooks/models.py | 265 +- .../service_hooks/service_hooks_client.py | 190 +- .../azure/devops/v5_1/settings/__init__.py | 11 + .../settings/settings_client.py | 14 +- .../azure/devops/v5_1/symbol/__init__.py | 19 + .../azure/devops/v5_1/symbol/models.py | 222 ++ .../azure/devops/v5_1/symbol/symbol_client.py | 228 ++ .../devops/{v4_0 => v5_1}/task/__init__.py | 4 +- .../devops/{v4_1 => v5_1}/task/models.py | 120 +- .../devops/{v4_0 => v5_1}/task/task_client.py | 172 +- .../{v4_0 => v5_1}/task_agent/__init__.py | 34 +- .../{v4_0 => v5_1}/task_agent/models.py | 1841 +++++++-- .../v5_1/task_agent/task_agent_client.py | 574 +++ .../devops/{v4_0 => v5_1}/test/__init__.py | 18 +- .../devops/{v4_0 => v5_1}/test/models.py | 1716 +++++--- .../azure/devops/v5_1/test/test_client.py | 1237 ++++++ .../devops/{v4_0 => v5_1}/tfvc/__init__.py | 5 +- .../devops/{v4_0 => v5_1}/tfvc/models.py | 376 +- .../devops/{v4_0 => v5_1}/tfvc/tfvc_client.py | 258 +- .../devops/v5_1/uPack_packaging/__init__.py | 17 + .../devops/v5_1/uPack_packaging/models.py | 134 + .../uPack_packaging/uPack_packaging_client.py | 93 + .../azure/devops/v5_1/universal/__init__.py | 21 + .../azure/devops/v5_1/universal/models.py | 214 + .../devops/v5_1/universal/universal_client.py | 158 + .../devops/{v4_0 => v5_1}/wiki/__init__.py | 30 +- azure-devops/azure/devops/v5_1/wiki/models.py | 507 +++ .../azure/devops/v5_1/wiki/wiki_client.py | 528 +++ .../devops/{v4_0 => v5_1}/work/__init__.py | 16 +- .../devops/{v4_0 => v5_1}/work/models.py | 533 ++- .../devops/{v4_0 => v5_1}/work/work_client.py | 423 +- .../work_item_tracking/__init__.py | 12 +- .../work_item_tracking/models.py | 1129 ++++-- .../work_item_tracking_client.py | 934 +++-- .../work_item_tracking_comments/__init__.py | 24 + .../work_item_tracking_comments/models.py | 433 ++ .../work_item_tracking_comments_client.py | 246 ++ .../work_item_tracking_process/__init__.py | 23 +- .../v5_1/work_item_tracking_process/models.py | 1487 +++++++ .../work_item_tracking_process_client.py} | 1070 ++--- .../__init__.py | 2 +- .../models.py | 66 +- ...k_item_tracking_process_template_client.py | 20 +- azure-devops/azure/devops/version.py | 2 +- azure-devops/setup.py | 4 +- scripts/dev_setup.py | 3 - scripts/windows/init.cmd | 2 +- 317 files changed, 44386 insertions(+), 32808 deletions(-) delete mode 100644 azure-devops/azure/devops/v4_0/accounts/accounts_client.py delete mode 100644 azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py delete mode 100644 azure-devops/azure/devops/v4_0/git/git_client.py delete mode 100644 azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py delete mode 100644 azure-devops/azure/devops/v4_0/member_entitlement_management/models.py delete mode 100644 azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py delete mode 100644 azure-devops/azure/devops/v4_0/release/__init__.py delete mode 100644 azure-devops/azure/devops/v4_0/release/models.py delete mode 100644 azure-devops/azure/devops/v4_0/release/release_client.py delete mode 100644 azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py delete mode 100644 azure-devops/azure/devops/v4_0/test/test_client.py delete mode 100644 azure-devops/azure/devops/v4_0/wiki/models.py delete mode 100644 azure-devops/azure/devops/v4_0/wiki/wiki_client.py delete mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py delete mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py delete mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py delete mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py delete mode 100644 azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py delete mode 100644 azure-devops/azure/devops/v4_1/git/git_client.py delete mode 100644 azure-devops/azure/devops/v4_1/release/__init__.py delete mode 100644 azure-devops/azure/devops/v4_1/release/models.py delete mode 100644 azure-devops/azure/devops/v4_1/release/release_client.py delete mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py delete mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py delete mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py delete mode 100644 azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py rename azure-devops/azure/devops/{v4_1 => v5_0}/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/accounts/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/accounts/accounts_client.py (98%) rename azure-devops/azure/devops/{v4_1 => v5_0}/accounts/models.py (97%) create mode 100644 azure-devops/azure/devops/v5_0/boards/__init__.py create mode 100644 azure-devops/azure/devops/v5_0/boards/boards_client.py create mode 100644 azure-devops/azure/devops/v5_0/boards/models.py rename azure-devops/azure/devops/{v4_1 => v5_0}/build/__init__.py (95%) rename azure-devops/azure/devops/{v4_1 => v5_0}/build/build_client.py (80%) rename azure-devops/azure/devops/{v4_1 => v5_0}/build/models.py (86%) rename azure-devops/azure/devops/{v4_1 => v5_0}/client_trace/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/client_trace/client_trace_client.py (97%) rename azure-devops/azure/devops/{v4_1 => v5_0}/client_trace/models.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/cloud_load_test/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/cloud_load_test/cloud_load_test_client.py (86%) create mode 100644 azure-devops/azure/devops/v5_0/cloud_load_test/models.py rename azure-devops/azure/devops/{v4_1 => v5_0}/contributions/__init__.py (100%) rename azure-devops/azure/devops/{v4_0 => v5_0}/contributions/contributions_client.py (80%) rename azure-devops/azure/devops/{v4_0 => v5_0}/contributions/models.py (80%) rename azure-devops/azure/devops/{v4_1 => v5_0}/core/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/core/core_client.py (87%) rename azure-devops/azure/devops/{v4_1 => v5_0}/core/models.py (90%) rename azure-devops/azure/devops/{v4_1 => v5_0}/customer_intelligence/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/customer_intelligence/customer_intelligence_client.py (97%) rename azure-devops/azure/devops/{v4_1 => v5_0}/customer_intelligence/models.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/dashboard/__init__.py (100%) rename azure-devops/azure/devops/{v4_0 => v5_0}/dashboard/dashboard_client.py (75%) rename azure-devops/azure/devops/{v4_1 => v5_0}/dashboard/models.py (95%) rename azure-devops/azure/devops/{v4_1 => v5_0}/extension_management/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/extension_management/extension_management_client.py (93%) rename azure-devops/azure/devops/{v4_1 => v5_0}/extension_management/models.py (93%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feature_availability/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feature_availability/feature_availability_client.py (79%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feature_availability/models.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feature_management/__init__.py (91%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feature_management/feature_management_client.py (90%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feature_management/models.py (68%) create mode 100644 azure-devops/azure/devops/v5_0/feed/__init__.py rename azure-devops/azure/devops/{v4_1 => v5_0}/feed/feed_client.py (61%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feed/models.py (58%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feed_token/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/feed_token/feed_token_client.py (69%) rename azure-devops/azure/devops/{v4_1 => v5_0}/file_container/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/file_container/file_container_client.py (95%) rename azure-devops/azure/devops/{v4_1 => v5_0}/file_container/models.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/gallery/__init__.py (100%) rename azure-devops/azure/devops/{v4_0 => v5_0}/gallery/gallery_client.py (69%) rename azure-devops/azure/devops/{v4_0 => v5_0}/gallery/models.py (79%) rename azure-devops/azure/devops/{v4_1 => v5_0}/git/__init__.py (91%) rename azure-devops/azure/devops/{v4_1 => v5_0}/git/git_client_base.py (90%) rename azure-devops/azure/devops/{v4_1 => v5_0}/git/models.py (83%) rename azure-devops/azure/devops/{v4_1 => v5_0}/graph/__init__.py (95%) create mode 100644 azure-devops/azure/devops/v5_0/graph/graph_client.py rename azure-devops/azure/devops/{v4_1 => v5_0}/graph/models.py (85%) rename azure-devops/azure/devops/{v4_1 => v5_0}/identity/__init__.py (95%) rename azure-devops/azure/devops/{v4_1 => v5_0}/identity/identity_client.py (83%) rename azure-devops/azure/devops/{v4_0 => v5_0}/identity/models.py (65%) rename azure-devops/azure/devops/{v4_1 => v5_0}/licensing/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/licensing/licensing_client.py (88%) rename azure-devops/azure/devops/{v4_1 => v5_0}/licensing/models.py (95%) rename azure-devops/azure/devops/{v4_1 => v5_0}/location/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/location/location_client.py (86%) rename azure-devops/azure/devops/{v4_0 => v5_0}/location/models.py (76%) rename azure-devops/azure/devops/{v4_1 => v5_0}/maven/__init__.py (93%) rename azure-devops/azure/devops/{v4_1 => v5_0}/maven/maven_client.py (76%) create mode 100644 azure-devops/azure/devops/v5_0/maven/models.py rename azure-devops/azure/devops/{v4_1 => v5_0}/member_entitlement_management/__init__.py (98%) create mode 100644 azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py rename azure-devops/azure/devops/{v4_1 => v5_0}/member_entitlement_management/models.py (91%) rename azure-devops/azure/devops/{v4_1 => v5_0}/notification/__init__.py (94%) rename azure-devops/azure/devops/{v4_1 => v5_0}/notification/models.py (88%) rename azure-devops/azure/devops/{v4_0 => v5_0}/notification/notification_client.py (59%) rename azure-devops/azure/devops/{v4_1 => v5_0}/npm/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/npm/models.py (90%) create mode 100644 azure-devops/azure/devops/v5_0/npm/npm_client.py rename azure-devops/azure/devops/{v4_1 => v5_0}/nuGet/__init__.py (97%) rename azure-devops/azure/devops/{v4_1 => v5_0}/nuGet/models.py (77%) rename azure-devops/azure/devops/{v4_1 => v5_0}/nuGet/nuGet_client.py (73%) rename azure-devops/azure/devops/{v4_1 => v5_0}/operations/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/operations/models.py (97%) rename azure-devops/azure/devops/{v4_1 => v5_0}/operations/operations_client.py (95%) rename azure-devops/azure/devops/{v4_1 => v5_0}/policy/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/policy/models.py (92%) rename azure-devops/azure/devops/{v4_1 => v5_0}/policy/policy_client.py (92%) rename azure-devops/azure/devops/{v4_1 => v5_0}/profile/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/profile/models.py (98%) rename azure-devops/azure/devops/{v4_1 => v5_0}/profile/profile_client.py (96%) rename azure-devops/azure/devops/{v4_1 => v5_0}/project_analysis/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/project_analysis/models.py (96%) rename azure-devops/azure/devops/{v4_1 => v5_0}/project_analysis/project_analysis_client.py (93%) create mode 100644 azure-devops/azure/devops/v5_0/provenance/__init__.py create mode 100644 azure-devops/azure/devops/v5_0/provenance/models.py create mode 100644 azure-devops/azure/devops/v5_0/provenance/provenance_client.py create mode 100644 azure-devops/azure/devops/v5_0/py_pi_api/__init__.py create mode 100644 azure-devops/azure/devops/v5_0/py_pi_api/models.py create mode 100644 azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py rename azure-devops/azure/devops/{v4_1 => v5_0}/security/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/security/models.py (97%) rename azure-devops/azure/devops/{v4_1 => v5_0}/security/security_client.py (81%) rename azure-devops/azure/devops/{v4_1 => v5_0}/service_endpoint/__init__.py (87%) rename azure-devops/azure/devops/{v4_1 => v5_0}/service_endpoint/models.py (69%) rename azure-devops/azure/devops/{v4_1 => v5_0}/service_endpoint/service_endpoint_client.py (83%) rename azure-devops/azure/devops/{v4_1 => v5_0}/service_hooks/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/service_hooks/models.py (93%) rename azure-devops/azure/devops/{v4_1 => v5_0}/service_hooks/service_hooks_client.py (88%) rename azure-devops/azure/devops/{v4_1 => v5_0}/settings/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/settings/settings_client.py (96%) rename azure-devops/azure/devops/{v4_1 => v5_0}/symbol/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/symbol/models.py (98%) rename azure-devops/azure/devops/{v4_1 => v5_0}/symbol/symbol_client.py (88%) rename azure-devops/azure/devops/{v4_1 => v5_0}/task/__init__.py (94%) rename azure-devops/azure/devops/{v4_0 => v5_0}/task/models.py (82%) rename azure-devops/azure/devops/{v4_1 => v5_0}/task/task_client.py (94%) rename azure-devops/azure/devops/{v4_1 => v5_0}/task_agent/__init__.py (88%) rename azure-devops/azure/devops/{v4_1 => v5_0}/task_agent/models.py (78%) rename azure-devops/azure/devops/{v4_1 => v5_0}/task_agent/task_agent_client.py (81%) rename azure-devops/azure/devops/{v4_1 => v5_0}/test/__init__.py (94%) rename azure-devops/azure/devops/{v4_1 => v5_0}/test/models.py (73%) rename azure-devops/azure/devops/{v4_1 => v5_0}/test/test_client.py (60%) rename azure-devops/azure/devops/{v4_1 => v5_0}/tfvc/__init__.py (96%) rename azure-devops/azure/devops/{v4_1 => v5_0}/tfvc/models.py (89%) rename azure-devops/azure/devops/{v4_1 => v5_0}/tfvc/tfvc_client.py (93%) create mode 100644 azure-devops/azure/devops/v5_0/uPack_packaging/__init__.py create mode 100644 azure-devops/azure/devops/v5_0/uPack_packaging/models.py create mode 100644 azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py create mode 100644 azure-devops/azure/devops/v5_0/universal/__init__.py create mode 100644 azure-devops/azure/devops/v5_0/universal/models.py create mode 100644 azure-devops/azure/devops/v5_0/universal/universal_client.py rename azure-devops/azure/devops/{v4_1 => v5_0}/wiki/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/wiki/models.py (94%) rename azure-devops/azure/devops/{v4_1 => v5_0}/wiki/wiki_client.py (91%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work/__init__.py (94%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work/models.py (87%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work/work_client.py (88%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work_item_tracking/__init__.py (97%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work_item_tracking/models.py (90%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work_item_tracking/work_item_tracking_client.py (86%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work_item_tracking_process/__init__.py (63%) create mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py create mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py rename azure-devops/azure/devops/{v4_1 => v5_0}/work_item_tracking_process_template/__init__.py (100%) rename azure-devops/azure/devops/{v4_1 => v5_0}/work_item_tracking_process_template/models.py (98%) rename azure-devops/azure/devops/{v4_0 => v5_0}/work_item_tracking_process_template/work_item_tracking_process_template_client.py (77%) rename azure-devops/azure/devops/{v4_0 => v5_1}/__init__.py (82%) rename azure-devops/azure/devops/{v4_0 => v5_1}/accounts/__init__.py (85%) create mode 100644 azure-devops/azure/devops/v5_1/accounts/accounts_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/accounts/models.py (95%) rename azure-devops/azure/devops/{v4_0 => v5_1}/build/__init__.py (73%) rename azure-devops/azure/devops/{v4_0 => v5_1}/build/build_client.py (53%) rename azure-devops/azure/devops/{v4_0 => v5_1}/build/models.py (53%) rename azure-devops/azure/devops/{v4_0/settings => v5_1/client_trace}/__init__.py (80%) create mode 100644 azure-devops/azure/devops/v5_1/client_trace/client_trace_client.py create mode 100644 azure-devops/azure/devops/v5_1/client_trace/models.py create mode 100644 azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py rename azure-devops/azure/devops/{v4_1 => v5_1}/cloud_load_test/models.py (95%) rename azure-devops/azure/devops/{v4_0 => v5_1}/contributions/__init__.py (85%) rename azure-devops/azure/devops/{v4_1 => v5_1}/contributions/contributions_client.py (90%) rename azure-devops/azure/devops/{v4_1 => v5_1}/contributions/models.py (94%) rename azure-devops/azure/devops/{v4_0 => v5_1}/core/__init__.py (86%) rename azure-devops/azure/devops/{v4_0 => v5_1}/core/core_client.py (70%) rename azure-devops/azure/devops/{v4_0 => v5_1}/core/models.py (69%) rename azure-devops/azure/devops/{v4_0 => v5_1}/customer_intelligence/__init__.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/customer_intelligence/customer_intelligence_client.py (91%) rename azure-devops/azure/devops/{v4_0 => v5_1}/customer_intelligence/models.py (92%) rename azure-devops/azure/devops/{v4_0 => v5_1}/dashboard/__init__.py (90%) rename azure-devops/azure/devops/{v4_1 => v5_1}/dashboard/dashboard_client.py (86%) rename azure-devops/azure/devops/{v4_0 => v5_1}/dashboard/models.py (75%) rename azure-devops/azure/devops/{v4_0 => v5_1}/extension_management/__init__.py (91%) create mode 100644 azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/extension_management/models.py (81%) rename azure-devops/azure/devops/{v4_0 => v5_1}/feature_availability/__init__.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/feature_availability/feature_availability_client.py (77%) rename azure-devops/azure/devops/{v4_0 => v5_1}/feature_availability/models.py (94%) rename azure-devops/azure/devops/{v4_0 => v5_1}/feature_management/__init__.py (79%) rename azure-devops/azure/devops/{v4_0 => v5_1}/feature_management/feature_management_client.py (89%) rename azure-devops/azure/devops/{v4_0 => v5_1}/feature_management/models.py (61%) rename azure-devops/azure/devops/{v4_1 => v5_1}/feed/__init__.py (83%) create mode 100644 azure-devops/azure/devops/v5_1/feed/feed_client.py create mode 100644 azure-devops/azure/devops/v5_1/feed/models.py create mode 100644 azure-devops/azure/devops/v5_1/feed_token/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/feed_token/feed_token_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/file_container/__init__.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/file_container/file_container_client.py (94%) rename azure-devops/azure/devops/{v4_0 => v5_1}/file_container/models.py (98%) rename azure-devops/azure/devops/{v4_0 => v5_1}/gallery/__init__.py (86%) rename azure-devops/azure/devops/{v4_1 => v5_1}/gallery/gallery_client.py (87%) rename azure-devops/azure/devops/{v4_1 => v5_1}/gallery/models.py (94%) rename azure-devops/azure/devops/{v4_0 => v5_1}/git/__init__.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/git/git_client_base.py (64%) rename azure-devops/azure/devops/{v4_0 => v5_1}/git/models.py (66%) create mode 100644 azure-devops/azure/devops/v5_1/graph/__init__.py rename azure-devops/azure/devops/{v4_1 => v5_1}/graph/graph_client.py (87%) create mode 100644 azure-devops/azure/devops/v5_1/graph/models.py rename azure-devops/azure/devops/{v4_0 => v5_1}/identity/__init__.py (83%) rename azure-devops/azure/devops/{v4_0 => v5_1}/identity/identity_client.py (81%) rename azure-devops/azure/devops/{v4_1 => v5_1}/identity/models.py (77%) rename azure-devops/azure/devops/{v4_0 => v5_1}/licensing/__init__.py (82%) rename azure-devops/azure/devops/{v4_0 => v5_1}/licensing/licensing_client.py (73%) rename azure-devops/azure/devops/{v4_0 => v5_1}/licensing/models.py (57%) rename azure-devops/azure/devops/{v4_0 => v5_1}/location/__init__.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/location/location_client.py (59%) rename azure-devops/azure/devops/{v4_1 => v5_1}/location/models.py (92%) create mode 100644 azure-devops/azure/devops/v5_1/maven/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/maven/maven_client.py rename azure-devops/azure/devops/{v4_1 => v5_1}/maven/models.py (85%) rename azure-devops/azure/devops/{v4_0 => v5_1}/member_entitlement_management/__init__.py (67%) rename azure-devops/azure/devops/{v4_1 => v5_1}/member_entitlement_management/member_entitlement_management_client.py (87%) create mode 100644 azure-devops/azure/devops/v5_1/member_entitlement_management/models.py rename azure-devops/azure/devops/{v4_0 => v5_1}/notification/__init__.py (80%) rename azure-devops/azure/devops/{v4_0 => v5_1}/notification/models.py (74%) rename azure-devops/azure/devops/{v4_1 => v5_1}/notification/notification_client.py (81%) create mode 100644 azure-devops/azure/devops/v5_1/npm/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/npm/models.py rename azure-devops/azure/devops/{v4_1 => v5_1}/npm/npm_client.py (76%) create mode 100644 azure-devops/azure/devops/v5_1/nuGet/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/nuGet/models.py create mode 100644 azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/operations/__init__.py (81%) rename azure-devops/azure/devops/{v4_0 => v5_1}/operations/models.py (50%) rename azure-devops/azure/devops/{v4_0 => v5_1}/operations/operations_client.py (65%) rename azure-devops/azure/devops/{v4_0 => v5_1}/policy/__init__.py (85%) rename azure-devops/azure/devops/{v4_0 => v5_1}/policy/models.py (52%) rename azure-devops/azure/devops/{v4_0 => v5_1}/policy/policy_client.py (73%) create mode 100644 azure-devops/azure/devops/v5_1/profile/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/profile/models.py create mode 100644 azure-devops/azure/devops/v5_1/profile/profile_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/project_analysis/__init__.py (79%) rename azure-devops/azure/devops/{v4_0 => v5_1}/project_analysis/models.py (52%) create mode 100644 azure-devops/azure/devops/v5_1/project_analysis/project_analysis_client.py create mode 100644 azure-devops/azure/devops/v5_1/provenance/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/provenance/models.py create mode 100644 azure-devops/azure/devops/v5_1/provenance/provenance_client.py create mode 100644 azure-devops/azure/devops/v5_1/py_pi_api/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/py_pi_api/models.py create mode 100644 azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/security/__init__.py (88%) rename azure-devops/azure/devops/{v4_0 => v5_1}/security/models.py (96%) rename azure-devops/azure/devops/{v4_0 => v5_1}/security/security_client.py (66%) create mode 100644 azure-devops/azure/devops/v5_1/service_endpoint/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/service_endpoint/models.py create mode 100644 azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/service_hooks/__init__.py (81%) rename azure-devops/azure/devops/{v4_0 => v5_1}/service_hooks/models.py (80%) rename azure-devops/azure/devops/{v4_0 => v5_1}/service_hooks/service_hooks_client.py (66%) create mode 100644 azure-devops/azure/devops/v5_1/settings/__init__.py rename azure-devops/azure/devops/{v4_0 => v5_1}/settings/settings_client.py (94%) create mode 100644 azure-devops/azure/devops/v5_1/symbol/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/symbol/models.py create mode 100644 azure-devops/azure/devops/v5_1/symbol/symbol_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/task/__init__.py (86%) rename azure-devops/azure/devops/{v4_1 => v5_1}/task/models.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/task/task_client.py (74%) rename azure-devops/azure/devops/{v4_0 => v5_1}/task_agent/__init__.py (72%) rename azure-devops/azure/devops/{v4_0 => v5_1}/task_agent/models.py (58%) create mode 100644 azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/test/__init__.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/test/models.py (66%) create mode 100644 azure-devops/azure/devops/v5_1/test/test_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/tfvc/__init__.py (88%) rename azure-devops/azure/devops/{v4_0 => v5_1}/tfvc/models.py (75%) rename azure-devops/azure/devops/{v4_0 => v5_1}/tfvc/tfvc_client.py (74%) create mode 100644 azure-devops/azure/devops/v5_1/uPack_packaging/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/uPack_packaging/models.py create mode 100644 azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py create mode 100644 azure-devops/azure/devops/v5_1/universal/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/universal/models.py create mode 100644 azure-devops/azure/devops/v5_1/universal/universal_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/wiki/__init__.py (58%) create mode 100644 azure-devops/azure/devops/v5_1/wiki/models.py create mode 100644 azure-devops/azure/devops/v5_1/wiki/wiki_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/work/__init__.py (83%) rename azure-devops/azure/devops/{v4_0 => v5_1}/work/models.py (75%) rename azure-devops/azure/devops/{v4_0 => v5_1}/work/work_client.py (76%) rename azure-devops/azure/devops/{v4_0 => v5_1}/work_item_tracking/__init__.py (84%) rename azure-devops/azure/devops/{v4_0 => v5_1}/work_item_tracking/models.py (58%) rename azure-devops/azure/devops/{v4_0 => v5_1}/work_item_tracking/work_item_tracking_client.py (66%) create mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py create mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py rename azure-devops/azure/devops/{v4_0 => v5_1}/work_item_tracking_process/__init__.py (58%) create mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py rename azure-devops/azure/devops/{v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py => v5_1/work_item_tracking_process/work_item_tracking_process_client.py} (53%) rename azure-devops/azure/devops/{v4_0 => v5_1}/work_item_tracking_process_template/__init__.py (87%) rename azure-devops/azure/devops/{v4_0 => v5_1}/work_item_tracking_process_template/models.py (74%) rename azure-devops/azure/devops/{v4_1 => v5_1}/work_item_tracking_process_template/work_item_tracking_process_template_client.py (91%) diff --git a/azure-devops/azure/devops/connection.py b/azure-devops/azure/devops/connection.py index 60cb4b65..c1afc2ce 100644 --- a/azure-devops/azure/devops/connection.py +++ b/azure-devops/azure/devops/connection.py @@ -8,7 +8,7 @@ from msrest.service_client import ServiceClient from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE from .exceptions import AzureDevOpsClientRequestError -from .v4_0.location.location_client import LocationClient +from .v5_0.location.location_client import LocationClient from .client_configuration import ClientConfiguration logger = logging.getLogger(__name__) diff --git a/azure-devops/azure/devops/v4_0/accounts/accounts_client.py b/azure-devops/azure/devops/v4_0/accounts/accounts_client.py deleted file mode 100644 index d2686cdc..00000000 --- a/azure-devops/azure/devops/v4_0/accounts/accounts_client.py +++ /dev/null @@ -1,89 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class AccountsClient(Client): - """Accounts - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(AccountsClient, 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 = '0d55247a-1c47-4462-9b1f-5e2125590ee6' - - def create_account(self, info, use_precreated=None): - """CreateAccount. - :param :class:` ` info: - :param bool use_precreated: - :rtype: :class:` ` - """ - query_parameters = {} - if use_precreated is not None: - query_parameters['usePrecreated'] = self._serialize.query('use_precreated', use_precreated, 'bool') - content = self._serialize.body(info, 'AccountCreateInfoInternal') - response = self._send(http_method='POST', - location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', - version='4.0', - query_parameters=query_parameters, - content=content) - return self._deserialize('Account', response) - - def get_account(self, account_id): - """GetAccount. - :param str account_id: - :rtype: :class:` ` - """ - route_values = {} - if account_id is not None: - route_values['accountId'] = self._serialize.url('account_id', account_id, 'str') - response = self._send(http_method='GET', - location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', - version='4.0', - route_values=route_values) - return self._deserialize('Account', response) - - def get_accounts(self, owner_id=None, member_id=None, properties=None): - """GetAccounts. - A new version GetAccounts API. Only supports limited set of parameters, returns a list of account ref objects that only contains AccountUrl, AccountName and AccountId information, will use collection host Id as the AccountId. - :param str owner_id: Owner Id to query for - :param str member_id: Member Id to query for - :param str properties: Only support service URL properties - :rtype: [Account] - """ - query_parameters = {} - if owner_id is not None: - query_parameters['ownerId'] = self._serialize.query('owner_id', owner_id, 'str') - if member_id is not None: - query_parameters['memberId'] = self._serialize.query('member_id', member_id, 'str') - if properties is not None: - query_parameters['properties'] = self._serialize.query('properties', properties, 'str') - response = self._send(http_method='GET', - location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', - version='4.0', - query_parameters=query_parameters) - return self._deserialize('[Account]', self._unwrap_collection(response)) - - def get_account_settings(self): - """GetAccountSettings. - [Preview API] - :rtype: {str} - """ - response = self._send(http_method='GET', - location_id='4e012dd4-f8e1-485d-9bb3-c50d83c5b71b', - version='4.0-preview.1') - return self._deserialize('{str}', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py b/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py deleted file mode 100644 index d84a785f..00000000 --- a/azure-devops/azure/devops/v4_0/extension_management/extension_management_client.py +++ /dev/null @@ -1,546 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class ExtensionManagementClient(Client): - """ExtensionManagement - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(ExtensionManagementClient, 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 = '6c2b0933-3600-42ae-bf8b-93d4f7e83594' - - def get_acquisition_options(self, item_id, test_commerce=None, is_free_or_trial_install=None): - """GetAcquisitionOptions. - [Preview API] - :param str item_id: - :param bool test_commerce: - :param bool is_free_or_trial_install: - :rtype: :class:` ` - """ - query_parameters = {} - if item_id is not None: - query_parameters['itemId'] = self._serialize.query('item_id', item_id, 'str') - if test_commerce is not None: - query_parameters['testCommerce'] = self._serialize.query('test_commerce', test_commerce, 'bool') - if is_free_or_trial_install is not None: - query_parameters['isFreeOrTrialInstall'] = self._serialize.query('is_free_or_trial_install', is_free_or_trial_install, 'bool') - response = self._send(http_method='GET', - location_id='288dff58-d13b-468e-9671-0fb754e9398c', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('AcquisitionOptions', response) - - def request_acquisition(self, acquisition_request): - """RequestAcquisition. - [Preview API] - :param :class:` ` acquisition_request: - :rtype: :class:` ` - """ - content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') - response = self._send(http_method='POST', - location_id='da616457-eed3-4672-92d7-18d21f5c1658', - version='4.0-preview.1', - content=content) - return self._deserialize('ExtensionAcquisitionRequest', response) - - def register_authorization(self, publisher_name, extension_name, registration_id): - """RegisterAuthorization. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param str registration_id: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if registration_id is not None: - route_values['registrationId'] = self._serialize.url('registration_id', registration_id, 'str') - response = self._send(http_method='PUT', - location_id='f21cfc80-d2d2-4248-98bb-7820c74c4606', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ExtensionAuthorization', response) - - def create_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): - """CreateDocumentByName. - [Preview API] - :param :class:` ` doc: - :param str publisher_name: - :param str extension_name: - :param str scope_type: - :param str scope_value: - :param str collection_name: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if scope_type is not None: - route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if collection_name is not None: - route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') - content = self._serialize.body(doc, 'object') - response = self._send(http_method='POST', - location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('object', response) - - def delete_document_by_name(self, publisher_name, extension_name, scope_type, scope_value, collection_name, document_id): - """DeleteDocumentByName. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param str scope_type: - :param str scope_value: - :param str collection_name: - :param str document_id: - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if scope_type is not None: - route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if collection_name is not None: - route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') - if document_id is not None: - route_values['documentId'] = self._serialize.url('document_id', document_id, 'str') - self._send(http_method='DELETE', - location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', - version='4.0-preview.1', - route_values=route_values) - - def get_document_by_name(self, publisher_name, extension_name, scope_type, scope_value, collection_name, document_id): - """GetDocumentByName. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param str scope_type: - :param str scope_value: - :param str collection_name: - :param str document_id: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if scope_type is not None: - route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if collection_name is not None: - route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') - if document_id is not None: - route_values['documentId'] = self._serialize.url('document_id', document_id, 'str') - response = self._send(http_method='GET', - location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('object', response) - - def get_documents_by_name(self, publisher_name, extension_name, scope_type, scope_value, collection_name): - """GetDocumentsByName. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param str scope_type: - :param str scope_value: - :param str collection_name: - :rtype: [object] - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if scope_type is not None: - route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if collection_name is not None: - route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') - response = self._send(http_method='GET', - location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[object]', self._unwrap_collection(response)) - - def set_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): - """SetDocumentByName. - [Preview API] - :param :class:` ` doc: - :param str publisher_name: - :param str extension_name: - :param str scope_type: - :param str scope_value: - :param str collection_name: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if scope_type is not None: - route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if collection_name is not None: - route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') - content = self._serialize.body(doc, 'object') - response = self._send(http_method='PUT', - location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('object', response) - - def update_document_by_name(self, doc, publisher_name, extension_name, scope_type, scope_value, collection_name): - """UpdateDocumentByName. - [Preview API] - :param :class:` ` doc: - :param str publisher_name: - :param str extension_name: - :param str scope_type: - :param str scope_value: - :param str collection_name: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if scope_type is not None: - route_values['scopeType'] = self._serialize.url('scope_type', scope_type, 'str') - if scope_value is not None: - route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') - if collection_name is not None: - route_values['collectionName'] = self._serialize.url('collection_name', collection_name, 'str') - content = self._serialize.body(doc, 'object') - response = self._send(http_method='PATCH', - location_id='bbe06c18-1c8b-4fcd-b9c6-1535aaab8749', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('object', response) - - def query_collections_by_name(self, collection_query, publisher_name, extension_name): - """QueryCollectionsByName. - [Preview API] - :param :class:` ` collection_query: - :param str publisher_name: - :param str extension_name: - :rtype: [ExtensionDataCollection] - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - content = self._serialize.body(collection_query, 'ExtensionDataCollectionQuery') - response = self._send(http_method='POST', - location_id='56c331f1-ce53-4318-adfd-4db5c52a7a2e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[ExtensionDataCollection]', self._unwrap_collection(response)) - - def get_states(self, include_disabled=None, include_errors=None, include_installation_issues=None): - """GetStates. - [Preview API] - :param bool include_disabled: - :param bool include_errors: - :param bool include_installation_issues: - :rtype: [ExtensionState] - """ - query_parameters = {} - if include_disabled is not None: - query_parameters['includeDisabled'] = self._serialize.query('include_disabled', include_disabled, 'bool') - if include_errors is not None: - query_parameters['includeErrors'] = self._serialize.query('include_errors', include_errors, 'bool') - if include_installation_issues is not None: - query_parameters['includeInstallationIssues'] = self._serialize.query('include_installation_issues', include_installation_issues, 'bool') - response = self._send(http_method='GET', - location_id='92755d3d-9a8a-42b3-8a4d-87359fe5aa93', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[ExtensionState]', self._unwrap_collection(response)) - - def query_extensions(self, query): - """QueryExtensions. - [Preview API] - :param :class:` ` query: - :rtype: [InstalledExtension] - """ - content = self._serialize.body(query, 'InstalledExtensionQuery') - response = self._send(http_method='POST', - location_id='046c980f-1345-4ce2-bf85-b46d10ff4cfd', - version='4.0-preview.1', - content=content) - return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) - - def get_installed_extensions(self, include_disabled_extensions=None, include_errors=None, asset_types=None, include_installation_issues=None): - """GetInstalledExtensions. - [Preview API] - :param bool include_disabled_extensions: - :param bool include_errors: - :param [str] asset_types: - :param bool include_installation_issues: - :rtype: [InstalledExtension] - """ - query_parameters = {} - if include_disabled_extensions is not None: - query_parameters['includeDisabledExtensions'] = self._serialize.query('include_disabled_extensions', include_disabled_extensions, 'bool') - if include_errors is not None: - query_parameters['includeErrors'] = self._serialize.query('include_errors', include_errors, 'bool') - if asset_types is not None: - asset_types = ":".join(asset_types) - query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') - if include_installation_issues is not None: - query_parameters['includeInstallationIssues'] = self._serialize.query('include_installation_issues', include_installation_issues, 'bool') - response = self._send(http_method='GET', - location_id='275424d0-c844-4fe2-bda6-04933a1357d8', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) - - def update_installed_extension(self, extension): - """UpdateInstalledExtension. - [Preview API] - :param :class:` ` extension: - :rtype: :class:` ` - """ - content = self._serialize.body(extension, 'InstalledExtension') - response = self._send(http_method='PATCH', - location_id='275424d0-c844-4fe2-bda6-04933a1357d8', - version='4.0-preview.1', - content=content) - return self._deserialize('InstalledExtension', response) - - def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): - """GetInstalledExtensionByName. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param [str] asset_types: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - query_parameters = {} - if asset_types is not None: - asset_types = ":".join(asset_types) - query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') - response = self._send(http_method='GET', - location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('InstalledExtension', response) - - def install_extension_by_name(self, publisher_name, extension_name, version=None): - """InstallExtensionByName. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param str version: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if version is not None: - route_values['version'] = self._serialize.url('version', version, 'str') - response = self._send(http_method='POST', - location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('InstalledExtension', response) - - def uninstall_extension_by_name(self, publisher_name, extension_name, reason=None, reason_code=None): - """UninstallExtensionByName. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param str reason: - :param str reason_code: - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - query_parameters = {} - if reason is not None: - query_parameters['reason'] = self._serialize.query('reason', reason, 'str') - if reason_code is not None: - query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') - self._send(http_method='DELETE', - location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - - def get_policies(self, user_id): - """GetPolicies. - [Preview API] - :param str user_id: - :rtype: :class:` ` - """ - route_values = {} - if user_id is not None: - route_values['userId'] = self._serialize.url('user_id', user_id, 'str') - response = self._send(http_method='GET', - location_id='e5cc8c09-407b-4867-8319-2ae3338cbf6f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('UserExtensionPolicy', response) - - def resolve_request(self, reject_message, publisher_name, extension_name, requester_id, state): - """ResolveRequest. - [Preview API] - :param str reject_message: - :param str publisher_name: - :param str extension_name: - :param str requester_id: - :param str state: - :rtype: int - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - if requester_id is not None: - route_values['requesterId'] = self._serialize.url('requester_id', requester_id, 'str') - query_parameters = {} - if state is not None: - query_parameters['state'] = self._serialize.query('state', state, 'str') - content = self._serialize.body(reject_message, 'str') - response = self._send(http_method='PATCH', - location_id='aa93e1f3-511c-4364-8b9c-eb98818f2e0b', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('int', response) - - def get_requests(self): - """GetRequests. - [Preview API] - :rtype: [RequestedExtension] - """ - response = self._send(http_method='GET', - location_id='216b978f-b164-424e-ada2-b77561e842b7', - version='4.0-preview.1') - return self._deserialize('[RequestedExtension]', self._unwrap_collection(response)) - - def resolve_all_requests(self, reject_message, publisher_name, extension_name, state): - """ResolveAllRequests. - [Preview API] - :param str reject_message: - :param str publisher_name: - :param str extension_name: - :param str state: - :rtype: int - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - query_parameters = {} - if state is not None: - query_parameters['state'] = self._serialize.query('state', state, 'str') - content = self._serialize.body(reject_message, 'str') - response = self._send(http_method='PATCH', - location_id='ba93e1f3-511c-4364-8b9c-eb98818f2e0b', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('int', response) - - def delete_request(self, publisher_name, extension_name): - """DeleteRequest. - [Preview API] - :param str publisher_name: - :param str extension_name: - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - self._send(http_method='DELETE', - location_id='f5afca1e-a728-4294-aa2d-4af0173431b5', - version='4.0-preview.1', - route_values=route_values) - - def request_extension(self, publisher_name, extension_name, request_message): - """RequestExtension. - [Preview API] - :param str publisher_name: - :param str extension_name: - :param str request_message: - :rtype: :class:` ` - """ - route_values = {} - if publisher_name is not None: - route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') - if extension_name is not None: - route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') - content = self._serialize.body(request_message, 'str') - response = self._send(http_method='POST', - location_id='f5afca1e-a728-4294-aa2d-4af0173431b5', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('RequestedExtension', response) - - def get_token(self): - """GetToken. - [Preview API] - :rtype: str - """ - response = self._send(http_method='GET', - location_id='3a2e24ed-1d6f-4cb2-9f3b-45a96bbfaf50', - version='4.0-preview.1') - return self._deserialize('str', response) - diff --git a/azure-devops/azure/devops/v4_0/git/git_client.py b/azure-devops/azure/devops/v4_0/git/git_client.py deleted file mode 100644 index b3c9d28f..00000000 --- a/azure-devops/azure/devops/v4_0/git/git_client.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - - -from msrest.universal_http import ClientRequest -from .git_client_base import GitClientBase - - -class GitClient(GitClientBase): - """Git - - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(GitClient, self).__init__(base_url, creds) - - def get_vsts_info(self, relative_remote_url): - url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') - request = ClientRequest(method='GET', url=url) - headers = {'Accept': 'application/json'} - if self._suppress_fedauth_redirect: - headers['X-TFS-FedAuthRedirect'] = 'Suppress' - if self._force_msa_pass_through: - headers['X-VSS-ForceMsaPassThrough'] = 'true' - response = self._send_request(request, headers) - return self._deserialize('VstsInfo', response) - - @staticmethod - def get_vsts_info_by_remote_url(remote_url, credentials, suppress_fedauth_redirect=True): - request = ClientRequest(method='GET', url=remote_url.rstrip('/') + '/vsts/info') - headers = {'Accept': 'application/json'} - if suppress_fedauth_redirect: - headers['X-TFS-FedAuthRedirect'] = 'Suppress' - git_client = GitClient(base_url=remote_url, creds=credentials) - response = git_client._send_request(request, headers) - return git_client._deserialize('VstsInfo', response) diff --git a/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py b/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py deleted file mode 100644 index ad3291cb..00000000 --- a/azure-devops/azure/devops/v4_0/member_entitlement_management/member_entitlement_management_client.py +++ /dev/null @@ -1,212 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class MemberEntitlementManagementClient(Client): - """MemberEntitlementManagement - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(MemberEntitlementManagementClient, 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 = '68ddce18-2501-45f1-a17b-7931a9922690' - - def add_group_entitlement(self, group_entitlement, rule_option=None): - """AddGroupEntitlement. - [Preview API] Used to add members to a project in an account. It adds them to groups, assigns licenses, and assigns extensions. - :param :class:` ` group_entitlement: Member model for where to add the member and what licenses and extensions they should receive. - :param str rule_option: - :rtype: :class:` ` - """ - query_parameters = {} - if rule_option is not None: - query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') - content = self._serialize.body(group_entitlement, 'GroupEntitlement') - response = self._send(http_method='POST', - location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', - version='4.0-preview.1', - query_parameters=query_parameters, - content=content) - return self._deserialize('GroupEntitlementOperationReference', response) - - def delete_group_entitlement(self, group_id, rule_option=None): - """DeleteGroupEntitlement. - [Preview API] Deletes members from an account - :param str group_id: memberId of the member to be removed. - :param str rule_option: - :rtype: :class:` ` - """ - route_values = {} - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if rule_option is not None: - query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') - response = self._send(http_method='DELETE', - location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('GroupEntitlementOperationReference', response) - - def get_group_entitlement(self, group_id): - """GetGroupEntitlement. - [Preview API] Used to get a group entitlement and its current rules - :param str group_id: - :rtype: :class:` ` - """ - route_values = {} - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - response = self._send(http_method='GET', - location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('GroupEntitlement', response) - - def get_group_entitlements(self): - """GetGroupEntitlements. - [Preview API] Used to get group entitlement information in an account - :rtype: [GroupEntitlement] - """ - response = self._send(http_method='GET', - location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', - version='4.0-preview.1') - return self._deserialize('[GroupEntitlement]', self._unwrap_collection(response)) - - def update_group_entitlement(self, document, group_id, rule_option=None): - """UpdateGroupEntitlement. - [Preview API] Used to edit a member in an account. Edits groups, licenses, and extensions. - :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used - :param str group_id: member Id of the member to be edit - :param str rule_option: - :rtype: :class:` ` - """ - route_values = {} - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if rule_option is not None: - query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') - content = self._serialize.body(document, '[JsonPatchOperation]') - response = self._send(http_method='PATCH', - location_id='ec7fb08f-5dcc-481c-9bf6-122001b1caa6', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content, - media_type='application/json-patch+json') - return self._deserialize('GroupEntitlementOperationReference', response) - - def add_member_entitlement(self, member_entitlement): - """AddMemberEntitlement. - [Preview API] Used to add members to a project in an account. It adds them to project groups, assigns licenses, and assigns extensions. - :param :class:` ` member_entitlement: Member model for where to add the member and what licenses and extensions they should receive. - :rtype: :class:` ` - """ - content = self._serialize.body(member_entitlement, 'MemberEntitlement') - response = self._send(http_method='POST', - location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', - version='4.0-preview.1', - content=content) - return self._deserialize('MemberEntitlementsPostResponse', response) - - def delete_member_entitlement(self, member_id): - """DeleteMemberEntitlement. - [Preview API] Deletes members from an account - :param str member_id: memberId of the member to be removed. - """ - route_values = {} - if member_id is not None: - route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') - self._send(http_method='DELETE', - location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', - version='4.0-preview.1', - route_values=route_values) - - def get_member_entitlement(self, member_id): - """GetMemberEntitlement. - [Preview API] Used to get member entitlement information in an account - :param str member_id: - :rtype: :class:` ` - """ - route_values = {} - if member_id is not None: - route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') - response = self._send(http_method='GET', - location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('MemberEntitlement', response) - - def get_member_entitlements(self, top, skip, filter=None, select=None): - """GetMemberEntitlements. - [Preview API] Used to get member entitlement information in an account - :param int top: - :param int skip: - :param str filter: - :param str select: - :rtype: [MemberEntitlement] - """ - query_parameters = {} - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - if skip is not None: - query_parameters['skip'] = self._serialize.query('skip', skip, 'int') - if filter is not None: - query_parameters['filter'] = self._serialize.query('filter', filter, 'str') - if select is not None: - query_parameters['select'] = self._serialize.query('select', select, 'str') - response = self._send(http_method='GET', - location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[MemberEntitlement]', self._unwrap_collection(response)) - - def update_member_entitlement(self, document, member_id): - """UpdateMemberEntitlement. - [Preview API] Used to edit a member in an account. Edits groups, licenses, and extensions. - :param :class:`<[JsonPatchOperation]> ` document: document of operations to be used - :param str member_id: member Id of the member to be edit - :rtype: :class:` ` - """ - route_values = {} - if member_id is not None: - route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') - content = self._serialize.body(document, '[JsonPatchOperation]') - response = self._send(http_method='PATCH', - location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', - version='4.0-preview.1', - route_values=route_values, - content=content, - media_type='application/json-patch+json') - return self._deserialize('MemberEntitlementsPatchResponse', response) - - def update_member_entitlements(self, document): - """UpdateMemberEntitlements. - [Preview API] Used to edit multiple members in an account. Edits groups, licenses, and extensions. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatch document - :rtype: :class:` ` - """ - content = self._serialize.body(document, '[JsonPatchOperation]') - response = self._send(http_method='PATCH', - location_id='1e8cabfb-1fda-461e-860f-eeeae54d06bb', - version='4.0-preview.1', - content=content, - media_type='application/json-patch+json') - return self._deserialize('MemberEntitlementOperationReference', response) - diff --git a/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py b/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py deleted file mode 100644 index ba45742d..00000000 --- a/azure-devops/azure/devops/v4_0/member_entitlement_management/models.py +++ /dev/null @@ -1,674 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AccessLevel(Model): - """AccessLevel. - - :param account_license_type: - :type account_license_type: object - :param assignment_source: - :type assignment_source: object - :param license_display_name: - :type license_display_name: str - :param licensing_source: - :type licensing_source: object - :param msdn_license_type: - :type msdn_license_type: object - :param status: - :type status: object - :param status_message: - :type status_message: str - """ - - _attribute_map = { - 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, - 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, - 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, - 'status': {'key': 'status', 'type': 'object'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'} - } - - def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): - super(AccessLevel, self).__init__() - self.account_license_type = account_license_type - self.assignment_source = assignment_source - self.license_display_name = license_display_name - self.licensing_source = licensing_source - self.msdn_license_type = msdn_license_type - self.status = status - self.status_message = status_message - - -class BaseOperationResult(Model): - """BaseOperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'} - } - - def __init__(self, errors=None, is_success=None): - super(BaseOperationResult, self).__init__() - self.errors = errors - self.is_success = is_success - - -class Extension(Model): - """Extension. - - :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule - :type assignment_source: object - :param id: Gallery Id of the Extension - :type id: str - :param name: Friendly name of this extension - :type name: str - :param source: Source of this extension assignment. Ex: msdn, account, none, ect. - :type source: object - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'object'} - } - - def __init__(self, assignment_source=None, id=None, name=None, source=None): - super(Extension, self).__init__() - self.assignment_source = assignment_source - self.id = id - self.name = name - self.source = source - - -class GraphSubject(Model): - """GraphSubject. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None): - super(GraphSubject, self).__init__() - self._links = _links - self.descriptor = descriptor - self.display_name = display_name - self.origin = origin - self.origin_id = origin_id - self.subject_kind = subject_kind - self.url = url - - -class Group(Model): - """Group. - - :param display_name: - :type display_name: str - :param group_type: - :type group_type: object - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'group_type': {'key': 'groupType', 'type': 'object'} - } - - def __init__(self, display_name=None, group_type=None): - super(Group, self).__init__() - self.display_name = display_name - self.group_type = group_type - - -class GroupEntitlement(Model): - """GroupEntitlement. - - :param extension_rules: Extension Rules - :type extension_rules: list of :class:`Extension ` - :param group: Member reference - :type group: :class:`GraphGroup ` - :param id: The unique identifier which matches the Id of the GraphMember - :type id: str - :param license_rule: License Rule - :type license_rule: :class:`AccessLevel ` - :param project_entitlements: Relation between a project and the member's effective permissions in that project - :type project_entitlements: list of :class:`ProjectEntitlement ` - :param status: - :type status: object - """ - - _attribute_map = { - 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, - 'group': {'key': 'group', 'type': 'GraphGroup'}, - 'id': {'key': 'id', 'type': 'str'}, - 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, - 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, extension_rules=None, group=None, id=None, license_rule=None, project_entitlements=None, status=None): - super(GroupEntitlement, self).__init__() - self.extension_rules = extension_rules - self.group = group - self.id = id - self.license_rule = license_rule - self.project_entitlements = project_entitlements - self.status = status - - -class GroupOperationResult(BaseOperationResult): - """GroupOperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - :param group_id: Identifier of the Group being acted upon - :type group_id: str - :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'group_id': {'key': 'groupId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'GroupEntitlement'} - } - - def __init__(self, errors=None, is_success=None, group_id=None, result=None): - super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) - self.group_id = group_id - self.result = result - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value - - -class MemberEntitlement(Model): - """MemberEntitlement. - - :param access_level: Member's access level denoted by a license - :type access_level: :class:`AccessLevel ` - :param extensions: Member's extensions - :type extensions: list of :class:`Extension ` - :param group_assignments: GroupEntitlements that this member belongs to - :type group_assignments: list of :class:`GroupEntitlement ` - :param id: The unique identifier which matches the Id of the GraphMember - :type id: str - :param last_accessed_date: Date the Member last access the collection - :type last_accessed_date: datetime - :param member: Member reference - :type member: :class:`GraphMember ` - :param project_entitlements: Relation between a project and the member's effective permissions in that project - :type project_entitlements: list of :class:`ProjectEntitlement ` - """ - - _attribute_map = { - 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, - 'member': {'key': 'member', 'type': 'GraphMember'}, - 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'} - } - - def __init__(self, access_level=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, member=None, project_entitlements=None): - super(MemberEntitlement, self).__init__() - self.access_level = access_level - self.extensions = extensions - self.group_assignments = group_assignments - self.id = id - self.last_accessed_date = last_accessed_date - self.member = member - self.project_entitlements = project_entitlements - - -class MemberEntitlementsResponseBase(Model): - """MemberEntitlementsResponseBase. - - :param is_success: True if all operations were successful - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} - } - - def __init__(self, is_success=None, member_entitlement=None): - super(MemberEntitlementsResponseBase, self).__init__() - self.is_success = is_success - self.member_entitlement = member_entitlement - - -class OperationReference(Model): - """OperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, status=None, url=None): - super(OperationReference, self).__init__() - self.id = id - self.status = status - self.url = url - - -class OperationResult(Model): - """OperationResult. - - :param errors: List of error codes paired with their corresponding error messages - :type errors: list of { key: int; value: str } - :param is_success: Success status of the operation - :type is_success: bool - :param member_id: Identifier of the Member being acted upon - :type member_id: str - :param result: Result of the MemberEntitlement after the operation - :type result: :class:`MemberEntitlement ` - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_id': {'key': 'memberId', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'MemberEntitlement'} - } - - def __init__(self, errors=None, is_success=None, member_id=None, result=None): - super(OperationResult, self).__init__() - self.errors = errors - self.is_success = is_success - self.member_id = member_id - self.result = result - - -class ProjectEntitlement(Model): - """ProjectEntitlement. - - :param assignment_source: - :type assignment_source: object - :param group: - :type group: :class:`Group ` - :param is_project_permission_inherited: - :type is_project_permission_inherited: bool - :param project_ref: - :type project_ref: :class:`ProjectRef ` - :param team_refs: - :type team_refs: list of :class:`TeamRef ` - """ - - _attribute_map = { - 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, - 'group': {'key': 'group', 'type': 'Group'}, - 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, - 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, - 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} - } - - def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_ref=None, team_refs=None): - super(ProjectEntitlement, self).__init__() - self.assignment_source = assignment_source - self.group = group - self.is_project_permission_inherited = is_project_permission_inherited - self.project_ref = project_ref - self.team_refs = team_refs - - -class ProjectRef(Model): - """ProjectRef. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectRef, self).__init__() - self.id = id - self.name = name - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links - - -class TeamRef(Model): - """TeamRef. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(TeamRef, self).__init__() - self.id = id - self.name = name - - -class GraphMember(GraphSubject): - """GraphMember. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. - :type principal_name: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None): - super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url) - self.domain = domain - self.mail_address = mail_address - self.principal_name = principal_name - - -class GroupEntitlementOperationReference(OperationReference): - """GroupEntitlementOperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - :param completed: Operation completed with success or failure - :type completed: bool - :param have_results_succeeded: True if all operations were successful - :type have_results_succeeded: bool - :param results: List of results for each operation - :type results: list of :class:`GroupOperationResult ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'completed': {'key': 'completed', 'type': 'bool'}, - 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, - 'results': {'key': 'results', 'type': '[GroupOperationResult]'} - } - - def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): - super(GroupEntitlementOperationReference, self).__init__(id=id, status=status, url=url) - self.completed = completed - self.have_results_succeeded = have_results_succeeded - self.results = results - - -class MemberEntitlementOperationReference(OperationReference): - """MemberEntitlementOperationReference. - - :param id: The identifier for this operation. - :type id: str - :param status: The current status of the operation. - :type status: object - :param url: Url to get the full object. - :type url: str - :param completed: Operation completed with success or failure - :type completed: bool - :param have_results_succeeded: True if all operations were successful - :type have_results_succeeded: bool - :param results: List of results for each operation - :type results: list of :class:`OperationResult ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'}, - 'completed': {'key': 'completed', 'type': 'bool'}, - 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, - 'results': {'key': 'results', 'type': '[OperationResult]'} - } - - def __init__(self, id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): - super(MemberEntitlementOperationReference, self).__init__(id=id, status=status, url=url) - self.completed = completed - self.have_results_succeeded = have_results_succeeded - self.results = results - - -class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): - """MemberEntitlementsPatchResponse. - - :param is_success: True if all operations were successful - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` - :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, - 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} - } - - def __init__(self, is_success=None, member_entitlement=None, operation_results=None): - super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) - self.operation_results = operation_results - - -class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): - """MemberEntitlementsPostResponse. - - :param is_success: True if all operations were successful - :type is_success: bool - :param member_entitlement: Result of the member entitlement after the operations have been applied - :type member_entitlement: :class:`MemberEntitlement ` - :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` - """ - - _attribute_map = { - 'is_success': {'key': 'isSuccess', 'type': 'bool'}, - 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, - 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} - } - - def __init__(self, is_success=None, member_entitlement=None, operation_result=None): - super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) - self.operation_result = operation_result - - -class GraphGroup(GraphMember): - """GraphGroup. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) - :type origin: str - :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. - :type origin_id: str - :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). - :type subject_kind: str - :param url: This url is the full route to the source resource of this graph subject. - :type url: str - :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the name of the directory, for Vsts groups the ScopeId, etc) - :type domain: str - :param mail_address: The email address of record for a given graph member. This may be different than the principal name. - :type mail_address: str - :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by Vsts. - :type principal_name: str - :param description: A short phrase to help human readers disambiguate groups with similar names - :type description: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'descriptor': {'key': 'descriptor', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'origin_id': {'key': 'originId', 'type': 'str'}, - 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'mail_address': {'key': 'mailAddress', 'type': 'str'}, - 'principal_name': {'key': 'principalName', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'} - } - - def __init__(self, _links=None, descriptor=None, display_name=None, origin=None, origin_id=None, subject_kind=None, url=None, domain=None, mail_address=None, principal_name=None, description=None): - super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, origin=origin, origin_id=origin_id, subject_kind=subject_kind, url=url, domain=domain, mail_address=mail_address, principal_name=principal_name) - self.description = description - - -__all__ = [ - 'AccessLevel', - 'BaseOperationResult', - 'Extension', - 'GraphSubject', - 'Group', - 'GroupEntitlement', - 'GroupOperationResult', - 'JsonPatchOperation', - 'MemberEntitlement', - 'MemberEntitlementsResponseBase', - 'OperationReference', - 'OperationResult', - 'ProjectEntitlement', - 'ProjectRef', - 'ReferenceLinks', - 'TeamRef', - 'GraphMember', - 'GroupEntitlementOperationReference', - 'MemberEntitlementOperationReference', - 'MemberEntitlementsPatchResponse', - 'MemberEntitlementsPostResponse', - 'GraphGroup', -] diff --git a/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py b/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py deleted file mode 100644 index ca3c93af..00000000 --- a/azure-devops/azure/devops/v4_0/project_analysis/project_analysis_client.py +++ /dev/null @@ -1,65 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class ProjectAnalysisClient(Client): - """ProjectAnalysis - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(ProjectAnalysisClient, 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 = '7658fa33-b1bf-4580-990f-fac5896773d3' - - def get_project_language_analytics(self, project): - """GetProjectLanguageAnalytics. - [Preview API] - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='5b02a779-1867-433f-90b7-d23ed5e33e57', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ProjectLanguageAnalytics', response) - - def get_project_activity_metrics(self, project, from_date, aggregation_type): - """GetProjectActivityMetrics. - [Preview API] - :param str project: Project ID or project name - :param datetime from_date: - :param str aggregation_type: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if from_date is not None: - query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') - if aggregation_type is not None: - query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') - response = self._send(http_method='GET', - location_id='e40ae584-9ea6-4f06-a7c7-6284651b466b', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ProjectActivityMetrics', response) - diff --git a/azure-devops/azure/devops/v4_0/release/__init__.py b/azure-devops/azure/devops/v4_0/release/__init__.py deleted file mode 100644 index 0ac6221c..00000000 --- a/azure-devops/azure/devops/v4_0/release/__init__.py +++ /dev/null @@ -1,92 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .models import * - -__all__ = [ - 'AgentArtifactDefinition', - 'ApprovalOptions', - 'Artifact', - 'ArtifactMetadata', - 'ArtifactSourceReference', - 'ArtifactTypeDefinition', - 'ArtifactVersion', - 'ArtifactVersionQueryResult', - 'AutoTriggerIssue', - 'BuildVersion', - 'Change', - 'Condition', - 'ConfigurationVariableValue', - 'DataSourceBindingBase', - 'DefinitionEnvironmentReference', - 'Deployment', - 'DeploymentAttempt', - 'DeploymentJob', - 'DeploymentQueryParameters', - 'EmailRecipients', - 'EnvironmentExecutionPolicy', - 'EnvironmentOptions', - 'EnvironmentRetentionPolicy', - 'FavoriteItem', - 'Folder', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Issue', - 'MailMessage', - 'ManualIntervention', - 'ManualInterventionUpdateMetadata', - 'Metric', - 'ProcessParameters', - 'ProjectReference', - 'QueuedReleaseData', - 'ReferenceLinks', - 'Release', - 'ReleaseApproval', - 'ReleaseApprovalHistory', - 'ReleaseCondition', - 'ReleaseDefinition', - 'ReleaseDefinitionApprovals', - 'ReleaseDefinitionApprovalStep', - 'ReleaseDefinitionDeployStep', - 'ReleaseDefinitionEnvironment', - 'ReleaseDefinitionEnvironmentStep', - 'ReleaseDefinitionEnvironmentSummary', - 'ReleaseDefinitionEnvironmentTemplate', - 'ReleaseDefinitionRevision', - 'ReleaseDefinitionShallowReference', - 'ReleaseDefinitionSummary', - 'ReleaseDeployPhase', - 'ReleaseEnvironment', - 'ReleaseEnvironmentShallowReference', - 'ReleaseEnvironmentUpdateMetadata', - 'ReleaseReference', - 'ReleaseRevision', - 'ReleaseSchedule', - 'ReleaseSettings', - 'ReleaseShallowReference', - 'ReleaseStartMetadata', - 'ReleaseTask', - 'ReleaseUpdateMetadata', - 'ReleaseWorkItemRef', - 'RetentionPolicy', - 'RetentionSettings', - 'SummaryMailSection', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskSourceDefinitionBase', - 'VariableGroup', - 'VariableGroupProviderData', - 'VariableValue', - 'WorkflowTask', - 'WorkflowTaskReference', -] diff --git a/azure-devops/azure/devops/v4_0/release/models.py b/azure-devops/azure/devops/v4_0/release/models.py deleted file mode 100644 index 0e42237d..00000000 --- a/azure-devops/azure/devops/v4_0/release/models.py +++ /dev/null @@ -1,3104 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentArtifactDefinition(Model): - """AgentArtifactDefinition. - - :param alias: - :type alias: str - :param artifact_type: - :type artifact_type: object - :param details: - :type details: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'artifact_type': {'key': 'artifactType', 'type': 'object'}, - 'details': {'key': 'details', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): - super(AgentArtifactDefinition, self).__init__() - self.alias = alias - self.artifact_type = artifact_type - self.details = details - self.name = name - self.version = version - - -class ApprovalOptions(Model): - """ApprovalOptions. - - :param auto_triggered_and_previous_environment_approved_can_be_skipped: - :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool - :param enforce_identity_revalidation: - :type enforce_identity_revalidation: bool - :param release_creator_can_be_approver: - :type release_creator_can_be_approver: bool - :param required_approver_count: - :type required_approver_count: int - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, - 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, - 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, - 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): - super(ApprovalOptions, self).__init__() - self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped - self.enforce_identity_revalidation = enforce_identity_revalidation - self.release_creator_can_be_approver = release_creator_can_be_approver - self.required_approver_count = required_approver_count - self.timeout_in_minutes = timeout_in_minutes - - -class Artifact(Model): - """Artifact. - - :param alias: Gets or sets alias. - :type alias: str - :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} - :type definition_reference: dict - :param is_primary: Gets or sets as artifact is primary or not. - :type is_primary: bool - :param source_id: - :type source_id: str - :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. - :type type: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, - 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): - super(Artifact, self).__init__() - self.alias = alias - self.definition_reference = definition_reference - self.is_primary = is_primary - self.source_id = source_id - self.type = type - - -class ArtifactMetadata(Model): - """ArtifactMetadata. - - :param alias: Sets alias of artifact. - :type alias: str - :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. - :type instance_reference: :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} - } - - def __init__(self, alias=None, instance_reference=None): - super(ArtifactMetadata, self).__init__() - self.alias = alias - self.instance_reference = instance_reference - - -class ArtifactSourceReference(Model): - """ArtifactSourceReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ArtifactSourceReference, self).__init__() - self.id = id - self.name = name - - -class ArtifactTypeDefinition(Model): - """ArtifactTypeDefinition. - - :param display_name: - :type display_name: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: - :type name: str - :param unique_source_identifier: - :type unique_source_identifier: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} - } - - def __init__(self, display_name=None, input_descriptors=None, name=None, unique_source_identifier=None): - super(ArtifactTypeDefinition, self).__init__() - self.display_name = display_name - self.input_descriptors = input_descriptors - self.name = name - self.unique_source_identifier = unique_source_identifier - - -class ArtifactVersion(Model): - """ArtifactVersion. - - :param alias: - :type alias: str - :param default_version: - :type default_version: :class:`BuildVersion ` - :param error_message: - :type error_message: str - :param source_id: - :type source_id: str - :param versions: - :type versions: list of :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[BuildVersion]'} - } - - def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): - super(ArtifactVersion, self).__init__() - self.alias = alias - self.default_version = default_version - self.error_message = error_message - self.source_id = source_id - self.versions = versions - - -class ArtifactVersionQueryResult(Model): - """ArtifactVersionQueryResult. - - :param artifact_versions: - :type artifact_versions: list of :class:`ArtifactVersion ` - """ - - _attribute_map = { - 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} - } - - def __init__(self, artifact_versions=None): - super(ArtifactVersionQueryResult, self).__init__() - self.artifact_versions = artifact_versions - - -class AutoTriggerIssue(Model): - """AutoTriggerIssue. - - :param issue: - :type issue: :class:`Issue ` - :param issue_source: - :type issue_source: object - :param project: - :type project: :class:`ProjectReference ` - :param release_definition_reference: - :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` - :param release_trigger_type: - :type release_trigger_type: object - """ - - _attribute_map = { - 'issue': {'key': 'issue', 'type': 'Issue'}, - 'issue_source': {'key': 'issueSource', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} - } - - def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): - super(AutoTriggerIssue, self).__init__() - self.issue = issue - self.issue_source = issue_source - self.project = project - self.release_definition_reference = release_definition_reference - self.release_trigger_type = release_trigger_type - - -class BuildVersion(Model): - """BuildVersion. - - :param id: - :type id: str - :param name: - :type name: str - :param source_branch: - :type source_branch: str - :param source_repository_id: - :type source_repository_id: str - :param source_repository_type: - :type source_repository_type: str - :param source_version: - :type source_version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, - 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, - 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'} - } - - def __init__(self, id=None, name=None, source_branch=None, source_repository_id=None, source_repository_type=None, source_version=None): - super(BuildVersion, self).__init__() - self.id = id - self.name = name - self.source_branch = source_branch - self.source_repository_id = source_repository_id - self.source_repository_type = source_repository_type - self.source_version = source_version - - -class Change(Model): - """Change. - - :param author: The author of the change. - :type author: :class:`IdentityRef ` - :param change_type: The type of change. "commit", "changeset", etc. - :type change_type: str - :param display_uri: The location of a user-friendly representation of the resource. - :type display_uri: str - :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. - :type id: str - :param location: The location of the full representation of the resource. - :type location: str - :param message: A description of the change. This might be a commit message or changeset description. - :type message: str - :param timestamp: A timestamp for the change. - :type timestamp: datetime - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'display_uri': {'key': 'displayUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} - } - - def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, timestamp=None): - super(Change, self).__init__() - self.author = author - self.change_type = change_type - self.display_uri = display_uri - self.id = id - self.location = location - self.message = message - self.timestamp = timestamp - - -class Condition(Model): - """Condition. - - :param condition_type: - :type condition_type: object - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, name=None, value=None): - super(Condition, self).__init__() - self.condition_type = condition_type - self.name = name - self.value = value - - -class ConfigurationVariableValue(Model): - """ConfigurationVariableValue. - - :param is_secret: Gets or sets as variable is secret or not. - :type is_secret: bool - :param value: Gets or sets value of the configuration variable. - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(ConfigurationVariableValue, self).__init__() - self.is_secret = is_secret - self.value = value - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: - :type data_source_name: str - :param endpoint_id: - :type endpoint_id: str - :param endpoint_url: - :type endpoint_url: str - :param parameters: - :type parameters: dict - :param result_selector: - :type result_selector: str - :param result_template: - :type result_template: str - :param target: - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target - - -class DefinitionEnvironmentReference(Model): - """DefinitionEnvironmentReference. - - :param definition_environment_id: - :type definition_environment_id: int - :param definition_environment_name: - :type definition_environment_name: str - :param release_definition_id: - :type release_definition_id: int - :param release_definition_name: - :type release_definition_name: str - """ - - _attribute_map = { - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, - 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, - 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} - } - - def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): - super(DefinitionEnvironmentReference, self).__init__() - self.definition_environment_id = definition_environment_id - self.definition_environment_name = definition_environment_name - self.release_definition_id = release_definition_id - self.release_definition_name = release_definition_name - - -class Deployment(Model): - """Deployment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param attempt: - :type attempt: int - :param conditions: - :type conditions: list of :class:`Condition ` - :param definition_environment_id: - :type definition_environment_id: int - :param deployment_status: - :type deployment_status: object - :param id: - :type id: int - :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: - :type last_modified_on: datetime - :param operation_status: - :type operation_status: object - :param post_deploy_approvals: - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_deploy_approvals: - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param queued_on: - :type queued_on: datetime - :param reason: - :type reason: object - :param release: - :type release: :class:`ReleaseReference ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param requested_by: - :type requested_by: :class:`IdentityRef ` - :param requested_for: - :type requested_for: :class:`IdentityRef ` - :param scheduled_deployment_time: - :type scheduled_deployment_time: datetime - :param started_on: - :type started_on: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, attempt=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): - super(Deployment, self).__init__() - self._links = _links - self.attempt = attempt - self.conditions = conditions - self.definition_environment_id = definition_environment_id - self.deployment_status = deployment_status - self.id = id - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.post_deploy_approvals = post_deploy_approvals - self.pre_deploy_approvals = pre_deploy_approvals - self.queued_on = queued_on - self.reason = reason - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.requested_by = requested_by - self.requested_for = requested_for - self.scheduled_deployment_time = scheduled_deployment_time - self.started_on = started_on - - -class DeploymentAttempt(Model): - """DeploymentAttempt. - - :param attempt: - :type attempt: int - :param deployment_id: - :type deployment_id: int - :param error_log: Error log to show any unexpected error that occurred during executing deploy step - :type error_log: str - :param has_started: Specifies whether deployment has started or not - :type has_started: bool - :param id: - :type id: int - :param job: - :type job: :class:`ReleaseTask ` - :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: - :type last_modified_on: datetime - :param operation_status: - :type operation_status: object - :param queued_on: - :type queued_on: datetime - :param reason: - :type reason: object - :param release_deploy_phases: - :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` - :param requested_by: - :type requested_by: :class:`IdentityRef ` - :param requested_for: - :type requested_for: :class:`IdentityRef ` - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'has_started': {'key': 'hasStarted', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): - super(DeploymentAttempt, self).__init__() - self.attempt = attempt - self.deployment_id = deployment_id - self.error_log = error_log - self.has_started = has_started - self.id = id - self.job = job - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.queued_on = queued_on - self.reason = reason - self.release_deploy_phases = release_deploy_phases - self.requested_by = requested_by - self.requested_for = requested_for - self.run_plan_id = run_plan_id - self.status = status - self.tasks = tasks - - -class DeploymentJob(Model): - """DeploymentJob. - - :param job: - :type job: :class:`ReleaseTask ` - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, job=None, tasks=None): - super(DeploymentJob, self).__init__() - self.job = job - self.tasks = tasks - - -class DeploymentQueryParameters(Model): - """DeploymentQueryParameters. - - :param artifact_source_id: - :type artifact_source_id: str - :param artifact_type_id: - :type artifact_type_id: str - :param artifact_versions: - :type artifact_versions: list of str - :param deployment_status: - :type deployment_status: object - :param environments: - :type environments: list of :class:`DefinitionEnvironmentReference ` - :param expands: - :type expands: object - :param is_deleted: - :type is_deleted: bool - :param latest_deployments_only: - :type latest_deployments_only: bool - :param max_deployments_per_environment: - :type max_deployments_per_environment: int - :param max_modified_time: - :type max_modified_time: datetime - :param min_modified_time: - :type min_modified_time: datetime - :param operation_status: - :type operation_status: object - :param query_order: - :type query_order: object - """ - - _attribute_map = { - 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, - 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, - 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, - 'expands': {'key': 'expands', 'type': 'object'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, - 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, - 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, - 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'query_order': {'key': 'queryOrder', 'type': 'object'} - } - - def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None): - super(DeploymentQueryParameters, self).__init__() - self.artifact_source_id = artifact_source_id - self.artifact_type_id = artifact_type_id - self.artifact_versions = artifact_versions - self.deployment_status = deployment_status - self.environments = environments - self.expands = expands - self.is_deleted = is_deleted - self.latest_deployments_only = latest_deployments_only - self.max_deployments_per_environment = max_deployments_per_environment - self.max_modified_time = max_modified_time - self.min_modified_time = min_modified_time - self.operation_status = operation_status - self.query_order = query_order - - -class EmailRecipients(Model): - """EmailRecipients. - - :param email_addresses: - :type email_addresses: list of str - :param tfs_ids: - :type tfs_ids: list of str - """ - - _attribute_map = { - 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, - 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} - } - - def __init__(self, email_addresses=None, tfs_ids=None): - super(EmailRecipients, self).__init__() - self.email_addresses = email_addresses - self.tfs_ids = tfs_ids - - -class EnvironmentExecutionPolicy(Model): - """EnvironmentExecutionPolicy. - - :param concurrency_count: This policy decides, how many environments would be with Environment Runner. - :type concurrency_count: int - :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. - :type queue_depth_count: int - """ - - _attribute_map = { - 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, - 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} - } - - def __init__(self, concurrency_count=None, queue_depth_count=None): - super(EnvironmentExecutionPolicy, self).__init__() - self.concurrency_count = concurrency_count - self.queue_depth_count = queue_depth_count - - -class EnvironmentOptions(Model): - """EnvironmentOptions. - - :param email_notification_type: - :type email_notification_type: str - :param email_recipients: - :type email_recipients: str - :param enable_access_token: - :type enable_access_token: bool - :param publish_deployment_status: - :type publish_deployment_status: bool - :param skip_artifacts_download: - :type skip_artifacts_download: bool - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, - 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, - 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, - 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, - 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): - super(EnvironmentOptions, self).__init__() - self.email_notification_type = email_notification_type - self.email_recipients = email_recipients - self.enable_access_token = enable_access_token - self.publish_deployment_status = publish_deployment_status - self.skip_artifacts_download = skip_artifacts_download - self.timeout_in_minutes = timeout_in_minutes - - -class EnvironmentRetentionPolicy(Model): - """EnvironmentRetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - :param releases_to_keep: - :type releases_to_keep: int - :param retain_build: - :type retain_build: bool - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, - 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, - 'retain_build': {'key': 'retainBuild', 'type': 'bool'} - } - - def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): - super(EnvironmentRetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep - self.releases_to_keep = releases_to_keep - self.retain_build = retain_build - - -class FavoriteItem(Model): - """FavoriteItem. - - :param data: Application specific data for the entry - :type data: str - :param id: Unique Id of the the entry - :type id: str - :param name: Display text for favorite entry - :type name: str - :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder - :type type: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, data=None, id=None, name=None, type=None): - super(FavoriteItem, self).__init__() - self.data = data - self.id = id - self.name = name - self.type = type - - -class Folder(Model): - """Folder. - - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: - :type created_on: datetime - :param description: - :type description: str - :param last_changed_by: - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: - :type last_changed_date: datetime - :param path: - :type path: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): - super(Folder, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.path = path - - -class IdentityRef(Model): - """IdentityRef. - - :param directory_alias: - :type directory_alias: str - :param display_name: - :type display_name: 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 profile_url: - :type profile_url: str - :param unique_name: - :type unique_name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, - 'display_name': {'key': 'displayName', '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'}, - 'profile_url': {'key': 'profileUrl', 'type': 'str'}, - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() - self.directory_alias = directory_alias - self.display_name = display_name - self.id = id - self.image_url = image_url - self.inactive = inactive - self.is_aad_identity = is_aad_identity - self.is_container = is_container - self.profile_url = profile_url - self.unique_name = unique_name - self.url = url - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource - - -class Issue(Model): - """Issue. - - :param issue_type: - :type issue_type: str - :param message: - :type message: str - """ - - _attribute_map = { - 'issue_type': {'key': 'issueType', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, issue_type=None, message=None): - super(Issue, self).__init__() - self.issue_type = issue_type - self.message = message - - -class MailMessage(Model): - """MailMessage. - - :param body: - :type body: str - :param cC: - :type cC: :class:`EmailRecipients ` - :param in_reply_to: - :type in_reply_to: str - :param message_id: - :type message_id: str - :param reply_by: - :type reply_by: datetime - :param reply_to: - :type reply_to: :class:`EmailRecipients ` - :param sections: - :type sections: list of MailSectionType - :param sender_type: - :type sender_type: object - :param subject: - :type subject: str - :param to: - :type to: :class:`EmailRecipients ` - """ - - _attribute_map = { - 'body': {'key': 'body', 'type': 'str'}, - 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, - 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'str'}, - 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, - 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, - 'sections': {'key': 'sections', 'type': '[object]'}, - 'sender_type': {'key': 'senderType', 'type': 'object'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'to': {'key': 'to', 'type': 'EmailRecipients'} - } - - def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): - super(MailMessage, self).__init__() - self.body = body - self.cC = cC - self.in_reply_to = in_reply_to - self.message_id = message_id - self.reply_by = reply_by - self.reply_to = reply_to - self.sections = sections - self.sender_type = sender_type - self.subject = subject - self.to = to - - -class ManualIntervention(Model): - """ManualIntervention. - - :param approver: - :type approver: :class:`IdentityRef ` - :param comments: - :type comments: str - :param created_on: - :type created_on: datetime - :param id: - :type id: int - :param instructions: - :type instructions: str - :param modified_on: - :type modified_on: datetime - :param name: - :type name: str - :param release: - :type release: :class:`ReleaseShallowReference ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param status: - :type status: object - :param task_instance_id: - :type task_instance_id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'instructions': {'key': 'instructions', 'type': 'str'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): - super(ManualIntervention, self).__init__() - self.approver = approver - self.comments = comments - self.created_on = created_on - self.id = id - self.instructions = instructions - self.modified_on = modified_on - self.name = name - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.status = status - self.task_instance_id = task_instance_id - self.url = url - - -class ManualInterventionUpdateMetadata(Model): - """ManualInterventionUpdateMetadata. - - :param comment: - :type comment: str - :param status: - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, status=None): - super(ManualInterventionUpdateMetadata, self).__init__() - self.comment = comment - self.status = status - - -class Metric(Model): - """Metric. - - :param name: - :type name: str - :param value: - :type value: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'} - } - - def __init__(self, name=None, value=None): - super(Metric, self).__init__() - self.name = name - self.value = value - - -class ProcessParameters(Model): - """ProcessParameters. - - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` - :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` - """ - - _attribute_map = { - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} - } - - def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): - super(ProcessParameters, self).__init__() - self.data_source_bindings = data_source_bindings - self.inputs = inputs - self.source_definitions = source_definitions - - -class ProjectReference(Model): - """ProjectReference. - - :param id: Gets the unique identifier of this field. - :type id: str - :param name: Gets name of project. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name - - -class QueuedReleaseData(Model): - """QueuedReleaseData. - - :param project_id: - :type project_id: str - :param queue_position: - :type queue_position: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, project_id=None, queue_position=None, release_id=None): - super(QueuedReleaseData, self).__init__() - self.project_id = project_id - self.queue_position = queue_position - self.release_id = release_id - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links - - -class Release(Model): - """Release. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_snapshot_revision: Gets revision number of definition snapshot. - :type definition_snapshot_revision: int - :param description: Gets or sets description of release. - :type description: str - :param environments: Gets list of environments. - :type environments: list of :class:`ReleaseEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param keep_forever: Whether to exclude the release from retention policies. - :type keep_forever: bool - :param logs_container_url: Gets logs container url. - :type logs_container_url: str - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param pool_name: Gets pool name. - :type pool_name: str - :param project_reference: Gets or sets project reference. - :type project_reference: :class:`ProjectReference ` - :param properties: - :type properties: :class:`object ` - :param reason: Gets reason of release. - :type reason: object - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_name_format: Gets release name format. - :type release_name_format: str - :param status: Gets status. - :type status: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param url: - :type url: str - :param variable_groups: Gets the list of variable groups. - :type variable_groups: list of :class:`VariableGroup ` - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_name': {'key': 'poolName', 'type': 'str'}, - 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, url=None, variable_groups=None, variables=None): - super(Release, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.definition_snapshot_revision = definition_snapshot_revision - self.description = description - self.environments = environments - self.id = id - self.keep_forever = keep_forever - self.logs_container_url = logs_container_url - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.pool_name = pool_name - self.project_reference = project_reference - self.properties = properties - self.reason = reason - self.release_definition = release_definition - self.release_name_format = release_name_format - self.status = status - self.tags = tags - self.url = url - self.variable_groups = variable_groups - self.variables = variables - - -class ReleaseApproval(Model): - """ReleaseApproval. - - :param approval_type: Gets or sets the type of approval. - :type approval_type: object - :param approved_by: Gets the identity who approved. - :type approved_by: :class:`IdentityRef ` - :param approver: Gets or sets the identity who should approve. - :type approver: :class:`IdentityRef ` - :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. - :type attempt: int - :param comments: Gets or sets comments for approval. - :type comments: str - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param history: Gets history which specifies all approvals associated with this approval. - :type history: list of :class:`ReleaseApprovalHistory ` - :param id: Gets the unique identifier of this field. - :type id: int - :param is_automated: Gets or sets as approval is automated or not. - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. - :type rank: int - :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param revision: Gets the revision number. - :type revision: int - :param status: Gets or sets the status of the approval. - :type status: object - :param trial_number: - :type trial_number: int - :param url: Gets url to access the approval. - :type url: str - """ - - _attribute_map = { - 'approval_type': {'key': 'approvalType', 'type': 'object'}, - 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'object'}, - 'trial_number': {'key': 'trialNumber', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): - super(ReleaseApproval, self).__init__() - self.approval_type = approval_type - self.approved_by = approved_by - self.approver = approver - self.attempt = attempt - self.comments = comments - self.created_on = created_on - self.history = history - self.id = id - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.modified_on = modified_on - self.rank = rank - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.revision = revision - self.status = status - self.trial_number = trial_number - self.url = url - - -class ReleaseApprovalHistory(Model): - """ReleaseApprovalHistory. - - :param approver: - :type approver: :class:`IdentityRef ` - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param comments: - :type comments: str - :param created_on: - :type created_on: datetime - :param modified_on: - :type modified_on: datetime - :param revision: - :type revision: int - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): - super(ReleaseApprovalHistory, self).__init__() - self.approver = approver - self.changed_by = changed_by - self.comments = comments - self.created_on = created_on - self.modified_on = modified_on - self.revision = revision - - -class ReleaseCondition(Condition): - """ReleaseCondition. - - :param condition_type: - :type condition_type: object - :param name: - :type name: str - :param value: - :type value: str - :param result: - :type result: bool - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'bool'} - } - - def __init__(self, condition_type=None, name=None, value=None, result=None): - super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) - self.result = result - - -class ReleaseDefinition(Model): - """ReleaseDefinition. - - :param _links: Gets links to access the release definition. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets the description. - :type description: str - :param environments: Gets or sets the list of environments. - :type environments: list of :class:`ReleaseDefinitionEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param last_release: Gets the reference of last release. - :type last_release: :class:`ReleaseReference ` - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets the name. - :type name: str - :param path: Gets or sets the path. - :type path: str - :param properties: Gets or sets properties. - :type properties: :class:`object ` - :param release_name_format: Gets or sets the release name format. - :type release_name_format: str - :param retention_policy: - :type retention_policy: :class:`RetentionPolicy ` - :param revision: Gets the revision number. - :type revision: int - :param source: Gets or sets source of release definition. - :type source: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param triggers: Gets or sets the list of triggers. - :type triggers: list of :class:`object ` - :param url: Gets url to access the release definition. - :type url: str - :param variable_groups: Gets or sets the list of variable groups. - :type variable_groups: list of int - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): - super(ReleaseDefinition, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.description = description - self.environments = environments - self.id = id - self.last_release = last_release - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.path = path - self.properties = properties - self.release_name_format = release_name_format - self.retention_policy = retention_policy - self.revision = revision - self.source = source - self.tags = tags - self.triggers = triggers - self.url = url - self.variable_groups = variable_groups - self.variables = variables - - -class ReleaseDefinitionApprovals(Model): - """ReleaseDefinitionApprovals. - - :param approval_options: - :type approval_options: :class:`ApprovalOptions ` - :param approvals: - :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` - """ - - _attribute_map = { - 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, - 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} - } - - def __init__(self, approval_options=None, approvals=None): - super(ReleaseDefinitionApprovals, self).__init__() - self.approval_options = approval_options - self.approvals = approvals - - -class ReleaseDefinitionEnvironment(Model): - """ReleaseDefinitionEnvironment. - - :param conditions: - :type conditions: list of :class:`Condition ` - :param demands: - :type demands: list of :class:`object ` - :param deploy_phases: - :type deploy_phases: list of :class:`object ` - :param deploy_step: - :type deploy_step: :class:`ReleaseDefinitionDeployStep ` - :param environment_options: - :type environment_options: :class:`EnvironmentOptions ` - :param execution_policy: - :type execution_policy: :class:`EnvironmentExecutionPolicy ` - :param id: - :type id: int - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param post_deploy_approvals: - :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param pre_deploy_approvals: - :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param process_parameters: - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param queue_id: - :type queue_id: int - :param rank: - :type rank: int - :param retention_policy: - :type retention_policy: :class:`EnvironmentRetentionPolicy ` - :param run_options: - :type run_options: dict - :param schedules: - :type schedules: list of :class:`ReleaseSchedule ` - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, - 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'run_options': {'key': 'runOptions', 'type': '{str}'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, pre_deploy_approvals=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variables=None): - super(ReleaseDefinitionEnvironment, self).__init__() - self.conditions = conditions - self.demands = demands - self.deploy_phases = deploy_phases - self.deploy_step = deploy_step - self.environment_options = environment_options - self.execution_policy = execution_policy - self.id = id - self.name = name - self.owner = owner - self.post_deploy_approvals = post_deploy_approvals - self.pre_deploy_approvals = pre_deploy_approvals - self.process_parameters = process_parameters - self.properties = properties - self.queue_id = queue_id - self.rank = rank - self.retention_policy = retention_policy - self.run_options = run_options - self.schedules = schedules - self.variables = variables - - -class ReleaseDefinitionEnvironmentStep(Model): - """ReleaseDefinitionEnvironmentStep. - - :param id: - :type id: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, id=None): - super(ReleaseDefinitionEnvironmentStep, self).__init__() - self.id = id - - -class ReleaseDefinitionEnvironmentSummary(Model): - """ReleaseDefinitionEnvironmentSummary. - - :param id: - :type id: int - :param last_releases: - :type last_releases: list of :class:`ReleaseShallowReference ` - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, last_releases=None, name=None): - super(ReleaseDefinitionEnvironmentSummary, self).__init__() - self.id = id - self.last_releases = last_releases - self.name = name - - -class ReleaseDefinitionEnvironmentTemplate(Model): - """ReleaseDefinitionEnvironmentTemplate. - - :param can_delete: - :type can_delete: bool - :param category: - :type category: str - :param description: - :type description: str - :param environment: - :type environment: :class:`ReleaseDefinitionEnvironment ` - :param icon_task_id: - :type icon_task_id: str - :param icon_uri: - :type icon_uri: str - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'icon_uri': {'key': 'iconUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, name=None): - super(ReleaseDefinitionEnvironmentTemplate, self).__init__() - self.can_delete = can_delete - self.category = category - self.description = description - self.environment = environment - self.icon_task_id = icon_task_id - self.icon_uri = icon_uri - self.id = id - self.name = name - - -class ReleaseDefinitionRevision(Model): - """ReleaseDefinitionRevision. - - :param api_version: Gets api-version for revision object. - :type api_version: str - :param changed_by: Gets the identity who did change. - :type changed_by: :class:`IdentityRef ` - :param changed_date: Gets date on which it got changed. - :type changed_date: datetime - :param change_type: Gets type of change. - :type change_type: object - :param comment: Gets comments for revision. - :type comment: str - :param definition_id: Get id of the definition. - :type definition_id: int - :param definition_url: Gets definition url. - :type definition_url: str - :param revision: Get revision number of the definition. - :type revision: int - """ - - _attribute_map = { - 'api_version': {'key': 'apiVersion', 'type': 'str'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): - super(ReleaseDefinitionRevision, self).__init__() - self.api_version = api_version - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.definition_id = definition_id - self.definition_url = definition_url - self.revision = revision - - -class ReleaseDefinitionShallowReference(Model): - """ReleaseDefinitionShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release definition. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release definition. - :type id: int - :param name: Gets or sets the name of the release definition. - :type name: str - :param url: Gets the REST API url to access the release definition. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseDefinitionShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url - - -class ReleaseDefinitionSummary(Model): - """ReleaseDefinitionSummary. - - :param environments: - :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param releases: - :type releases: list of :class:`Release ` - """ - - _attribute_map = { - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'releases': {'key': 'releases', 'type': '[Release]'} - } - - def __init__(self, environments=None, release_definition=None, releases=None): - super(ReleaseDefinitionSummary, self).__init__() - self.environments = environments - self.release_definition = release_definition - self.releases = releases - - -class ReleaseDeployPhase(Model): - """ReleaseDeployPhase. - - :param deployment_jobs: - :type deployment_jobs: list of :class:`DeploymentJob ` - :param error_log: - :type error_log: str - :param id: - :type id: int - :param manual_interventions: - :type manual_interventions: list of :class:`ManualIntervention ` - :param phase_type: - :type phase_type: object - :param rank: - :type rank: int - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - """ - - _attribute_map = { - 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, - 'phase_type': {'key': 'phaseType', 'type': 'object'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, phase_type=None, rank=None, run_plan_id=None, status=None): - super(ReleaseDeployPhase, self).__init__() - self.deployment_jobs = deployment_jobs - self.error_log = error_log - self.id = id - self.manual_interventions = manual_interventions - self.phase_type = phase_type - self.rank = rank - self.run_plan_id = run_plan_id - self.status = status - - -class ReleaseEnvironment(Model): - """ReleaseEnvironment. - - :param conditions: Gets list of conditions. - :type conditions: list of :class:`ReleaseCondition ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_environment_id: Gets definition environment id. - :type definition_environment_id: int - :param demands: Gets demands. - :type demands: list of :class:`object ` - :param deploy_phases_snapshot: Gets list of deploy phases snapshot. - :type deploy_phases_snapshot: list of :class:`object ` - :param deploy_steps: Gets deploy steps. - :type deploy_steps: list of :class:`DeploymentAttempt ` - :param environment_options: Gets environment options. - :type environment_options: :class:`EnvironmentOptions ` - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param next_scheduled_utc_time: Gets next scheduled UTC time. - :type next_scheduled_utc_time: datetime - :param owner: Gets the identity who is owner for release environment. - :type owner: :class:`IdentityRef ` - :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. - :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param post_deploy_approvals: Gets list of post deploy approvals. - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. - :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param pre_deploy_approvals: Gets list of pre deploy approvals. - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param process_parameters: Gets process parameters. - :type process_parameters: :class:`ProcessParameters ` - :param queue_id: Gets queue id. - :type queue_id: int - :param rank: Gets rank. - :type rank: int - :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_created_by: Gets the identity who created release. - :type release_created_by: :class:`IdentityRef ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_description: Gets release description. - :type release_description: str - :param release_id: Gets release id. - :type release_id: int - :param scheduled_deployment_time: Gets schedule deployment time of release environment. - :type scheduled_deployment_time: datetime - :param schedules: Gets list of schedules. - :type schedules: list of :class:`ReleaseSchedule ` - :param status: Gets environment status. - :type status: object - :param time_to_deploy: Gets time to deploy. - :type time_to_deploy: float - :param trigger_reason: Gets trigger reason. - :type trigger_reason: str - :param variables: Gets the dictionary of variables. - :type variables: dict - :param workflow_tasks: Gets list of workflow tasks. - :type workflow_tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, - 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_description': {'key': 'releaseDescription', 'type': 'str'}, - 'release_id': {'key': 'releaseId', 'type': 'int'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'status': {'key': 'status', 'type': 'object'}, - 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, - 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, - 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variables=None, workflow_tasks=None): - super(ReleaseEnvironment, self).__init__() - self.conditions = conditions - self.created_on = created_on - self.definition_environment_id = definition_environment_id - self.demands = demands - self.deploy_phases_snapshot = deploy_phases_snapshot - self.deploy_steps = deploy_steps - self.environment_options = environment_options - self.id = id - self.modified_on = modified_on - self.name = name - self.next_scheduled_utc_time = next_scheduled_utc_time - self.owner = owner - self.post_approvals_snapshot = post_approvals_snapshot - self.post_deploy_approvals = post_deploy_approvals - self.pre_approvals_snapshot = pre_approvals_snapshot - self.pre_deploy_approvals = pre_deploy_approvals - self.process_parameters = process_parameters - self.queue_id = queue_id - self.rank = rank - self.release = release - self.release_created_by = release_created_by - self.release_definition = release_definition - self.release_description = release_description - self.release_id = release_id - self.scheduled_deployment_time = scheduled_deployment_time - self.schedules = schedules - self.status = status - self.time_to_deploy = time_to_deploy - self.trigger_reason = trigger_reason - self.variables = variables - self.workflow_tasks = workflow_tasks - - -class ReleaseEnvironmentShallowReference(Model): - """ReleaseEnvironmentShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release environment. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release environment. - :type id: int - :param name: Gets or sets the name of the release environment. - :type name: str - :param url: Gets the REST API url to access the release environment. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseEnvironmentShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url - - -class ReleaseEnvironmentUpdateMetadata(Model): - """ReleaseEnvironmentUpdateMetadata. - - :param comment: Gets or sets comment. - :type comment: str - :param scheduled_deployment_time: Gets or sets scheduled deployment time. - :type scheduled_deployment_time: datetime - :param status: Gets or sets status of environment. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, scheduled_deployment_time=None, status=None): - super(ReleaseEnvironmentUpdateMetadata, self).__init__() - self.comment = comment - self.scheduled_deployment_time = scheduled_deployment_time - self.status = status - - -class ReleaseReference(Model): - """ReleaseReference. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param created_by: Gets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param name: Gets name of release. - :type name: str - :param reason: Gets reason for release. - :type reason: object - :param release_definition: Gets release definition shallow reference. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param url: - :type url: str - :param web_access_uri: - :type web_access_uri: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} - } - - def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): - super(ReleaseReference, self).__init__() - self._links = _links - self.artifacts = artifacts - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.name = name - self.reason = reason - self.release_definition = release_definition - self.url = url - self.web_access_uri = web_access_uri - - -class ReleaseRevision(Model): - """ReleaseRevision. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param change_details: - :type change_details: str - :param change_type: - :type change_type: str - :param comment: - :type comment: str - :param definition_snapshot_revision: - :type definition_snapshot_revision: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_details': {'key': 'changeDetails', 'type': 'str'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): - super(ReleaseRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_details = change_details - self.change_type = change_type - self.comment = comment - self.definition_snapshot_revision = definition_snapshot_revision - self.release_id = release_id - - -class ReleaseSchedule(Model): - """ReleaseSchedule. - - :param days_to_release: Days of the week to release - :type days_to_release: object - :param job_id: Team Foundation Job Definition Job Id - :type job_id: str - :param start_hours: Local time zone hour to start - :type start_hours: int - :param start_minutes: Local time zone minute to start - :type start_minutes: int - :param time_zone_id: Time zone Id of release schedule, such as 'UTC' - :type time_zone_id: str - """ - - _attribute_map = { - 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_hours': {'key': 'startHours', 'type': 'int'}, - 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, - 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} - } - - def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): - super(ReleaseSchedule, self).__init__() - self.days_to_release = days_to_release - self.job_id = job_id - self.start_hours = start_hours - self.start_minutes = start_minutes - self.time_zone_id = time_zone_id - - -class ReleaseSettings(Model): - """ReleaseSettings. - - :param retention_settings: - :type retention_settings: :class:`RetentionSettings ` - """ - - _attribute_map = { - 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} - } - - def __init__(self, retention_settings=None): - super(ReleaseSettings, self).__init__() - self.retention_settings = retention_settings - - -class ReleaseShallowReference(Model): - """ReleaseShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release. - :type id: int - :param name: Gets or sets the name of the release. - :type name: str - :param url: Gets the REST API url to access the release. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url - - -class ReleaseStartMetadata(Model): - """ReleaseStartMetadata. - - :param artifacts: Sets list of artifact to create a release. - :type artifacts: list of :class:`ArtifactMetadata ` - :param definition_id: Sets definition Id to create a release. - :type definition_id: int - :param description: Sets description to create a release. - :type description: str - :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. - :type is_draft: bool - :param manual_environments: Sets list of environments to manual as condition. - :type manual_environments: list of str - :param properties: - :type properties: :class:`object ` - :param reason: Sets reason to create a release. - :type reason: object - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_draft': {'key': 'isDraft', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'} - } - - def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): - super(ReleaseStartMetadata, self).__init__() - self.artifacts = artifacts - self.definition_id = definition_id - self.description = description - self.is_draft = is_draft - self.manual_environments = manual_environments - self.properties = properties - self.reason = reason - - -class ReleaseTask(Model): - """ReleaseTask. - - :param agent_name: - :type agent_name: str - :param date_ended: - :type date_ended: datetime - :param date_started: - :type date_started: datetime - :param finish_time: - :type finish_time: datetime - :param id: - :type id: int - :param issues: - :type issues: list of :class:`Issue ` - :param line_count: - :type line_count: long - :param log_url: - :type log_url: str - :param name: - :type name: str - :param percent_complete: - :type percent_complete: int - :param rank: - :type rank: int - :param start_time: - :type start_time: datetime - :param status: - :type status: object - :param task: - :type task: :class:`WorkflowTaskReference ` - :param timeline_record_id: - :type timeline_record_id: str - """ - - _attribute_map = { - 'agent_name': {'key': 'agentName', 'type': 'str'}, - 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, - 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'line_count': {'key': 'lineCount', 'type': 'long'}, - 'log_url': {'key': 'logUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, - 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} - } - - def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): - super(ReleaseTask, self).__init__() - self.agent_name = agent_name - self.date_ended = date_ended - self.date_started = date_started - self.finish_time = finish_time - self.id = id - self.issues = issues - self.line_count = line_count - self.log_url = log_url - self.name = name - self.percent_complete = percent_complete - self.rank = rank - self.start_time = start_time - self.status = status - self.task = task - self.timeline_record_id = timeline_record_id - - -class ReleaseUpdateMetadata(Model): - """ReleaseUpdateMetadata. - - :param comment: Sets comment for release. - :type comment: str - :param keep_forever: Set 'true' to exclude the release from retention policies. - :type keep_forever: bool - :param manual_environments: Sets list of manual environments. - :type manual_environments: list of str - :param status: Sets status of the release. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): - super(ReleaseUpdateMetadata, self).__init__() - self.comment = comment - self.keep_forever = keep_forever - self.manual_environments = manual_environments - self.status = status - - -class ReleaseWorkItemRef(Model): - """ReleaseWorkItemRef. - - :param assignee: - :type assignee: str - :param id: - :type id: str - :param state: - :type state: str - :param title: - :type title: str - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'assignee': {'key': 'assignee', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): - super(ReleaseWorkItemRef, self).__init__() - self.assignee = assignee - self.id = id - self.state = state - self.title = title - self.type = type - self.url = url - - -class RetentionPolicy(Model): - """RetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} - } - - def __init__(self, days_to_keep=None): - super(RetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep - - -class RetentionSettings(Model): - """RetentionSettings. - - :param days_to_keep_deleted_releases: - :type days_to_keep_deleted_releases: int - :param default_environment_retention_policy: - :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - :param maximum_environment_retention_policy: - :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - """ - - _attribute_map = { - 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, - 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} - } - - def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): - super(RetentionSettings, self).__init__() - self.days_to_keep_deleted_releases = days_to_keep_deleted_releases - self.default_environment_retention_policy = default_environment_retention_policy - self.maximum_environment_retention_policy = maximum_environment_retention_policy - - -class SummaryMailSection(Model): - """SummaryMailSection. - - :param html_content: - :type html_content: str - :param rank: - :type rank: int - :param section_type: - :type section_type: object - :param title: - :type title: str - """ - - _attribute_map = { - 'html_content': {'key': 'htmlContent', 'type': 'str'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'section_type': {'key': 'sectionType', 'type': 'object'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, html_content=None, rank=None, section_type=None, title=None): - super(SummaryMailSection, self).__init__() - self.html_content = html_content - self.rank = rank - self.section_type = section_type - self.title = title - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target - - -class VariableGroup(Model): - """VariableGroup. - - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets name. - :type name: str - :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` - :param type: Gets or sets type. - :type type: str - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'} - } - - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): - super(VariableGroup, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.provider_data = provider_data - self.type = type - self.variables = variables - - -class VariableGroupProviderData(Model): - """VariableGroupProviderData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(VariableGroupProviderData, self).__init__() - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value - - -class WorkflowTask(Model): - """WorkflowTask. - - :param always_run: - :type always_run: bool - :param condition: - :type condition: str - :param continue_on_error: - :type continue_on_error: bool - :param definition_type: - :type definition_type: str - :param enabled: - :type enabled: bool - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param override_inputs: - :type override_inputs: dict - :param ref_name: - :type ref_name: str - :param task_id: - :type task_id: str - :param timeout_in_minutes: - :type timeout_in_minutes: int - :param version: - :type version: str - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): - super(WorkflowTask, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.definition_type = definition_type - self.enabled = enabled - self.inputs = inputs - self.name = name - self.override_inputs = override_inputs - self.ref_name = ref_name - self.task_id = task_id - self.timeout_in_minutes = timeout_in_minutes - self.version = version - - -class WorkflowTaskReference(Model): - """WorkflowTaskReference. - - :param id: - :type id: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, name=None, version=None): - super(WorkflowTaskReference, self).__init__() - self.id = id - self.name = name - self.version = version - - -class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionApprovalStep. - - :param id: - :type id: int - :param approver: - :type approver: :class:`IdentityRef ` - :param is_automated: - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param rank: - :type rank: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'} - } - - def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): - super(ReleaseDefinitionApprovalStep, self).__init__(id=id) - self.approver = approver - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.rank = rank - - -class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionDeployStep. - - :param id: - :type id: int - :param tasks: The list of steps for this definition. - :type tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, id=None, tasks=None): - super(ReleaseDefinitionDeployStep, self).__init__(id=id) - self.tasks = tasks - - -__all__ = [ - 'AgentArtifactDefinition', - 'ApprovalOptions', - 'Artifact', - 'ArtifactMetadata', - 'ArtifactSourceReference', - 'ArtifactTypeDefinition', - 'ArtifactVersion', - 'ArtifactVersionQueryResult', - 'AutoTriggerIssue', - 'BuildVersion', - 'Change', - 'Condition', - 'ConfigurationVariableValue', - 'DataSourceBindingBase', - 'DefinitionEnvironmentReference', - 'Deployment', - 'DeploymentAttempt', - 'DeploymentJob', - 'DeploymentQueryParameters', - 'EmailRecipients', - 'EnvironmentExecutionPolicy', - 'EnvironmentOptions', - 'EnvironmentRetentionPolicy', - 'FavoriteItem', - 'Folder', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Issue', - 'MailMessage', - 'ManualIntervention', - 'ManualInterventionUpdateMetadata', - 'Metric', - 'ProcessParameters', - 'ProjectReference', - 'QueuedReleaseData', - 'ReferenceLinks', - 'Release', - 'ReleaseApproval', - 'ReleaseApprovalHistory', - 'ReleaseCondition', - 'ReleaseDefinition', - 'ReleaseDefinitionApprovals', - 'ReleaseDefinitionEnvironment', - 'ReleaseDefinitionEnvironmentStep', - 'ReleaseDefinitionEnvironmentSummary', - 'ReleaseDefinitionEnvironmentTemplate', - 'ReleaseDefinitionRevision', - 'ReleaseDefinitionShallowReference', - 'ReleaseDefinitionSummary', - 'ReleaseDeployPhase', - 'ReleaseEnvironment', - 'ReleaseEnvironmentShallowReference', - 'ReleaseEnvironmentUpdateMetadata', - 'ReleaseReference', - 'ReleaseRevision', - 'ReleaseSchedule', - 'ReleaseSettings', - 'ReleaseShallowReference', - 'ReleaseStartMetadata', - 'ReleaseTask', - 'ReleaseUpdateMetadata', - 'ReleaseWorkItemRef', - 'RetentionPolicy', - 'RetentionSettings', - 'SummaryMailSection', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskSourceDefinitionBase', - 'VariableGroup', - 'VariableGroupProviderData', - 'VariableValue', - 'WorkflowTask', - 'WorkflowTaskReference', - 'ReleaseDefinitionApprovalStep', - 'ReleaseDefinitionDeployStep', -] diff --git a/azure-devops/azure/devops/v4_0/release/release_client.py b/azure-devops/azure/devops/v4_0/release/release_client.py deleted file mode 100644 index 02e18fc7..00000000 --- a/azure-devops/azure/devops/v4_0/release/release_client.py +++ /dev/null @@ -1,1689 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class ReleaseClient(Client): - """Release - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' - - def get_agent_artifact_definitions(self, project, release_id): - """GetAgentArtifactDefinitions. - [Preview API] Returns the artifact details that automation agent requires - :param str project: Project ID or project name - :param int release_id: - :rtype: [AgentArtifactDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='f2571c27-bf50-4938-b396-32d109ddef26', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[AgentArtifactDefinition]', self._unwrap_collection(response)) - - def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): - """GetApprovals. - [Preview API] Get a list of approvals - :param str project: Project ID or project name - :param str assigned_to_filter: Approvals assigned to this user. - :param str status_filter: Approvals with this status. Default is 'pending'. - :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. - :param str type_filter: Approval with this type. - :param int top: Number of approvals to get. Default is 50. - :param int continuation_token: Gets the approvals after the continuation token provided. - :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. - :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. - :rtype: [ReleaseApproval] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if assigned_to_filter is not None: - query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if release_ids_filter is not None: - release_ids_filter = ",".join(map(str, release_ids_filter)) - query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') - if type_filter is not None: - query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if include_my_group_approvals is not None: - query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') - response = self._send(http_method='GET', - location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) - - def get_approval_history(self, project, approval_step_id): - """GetApprovalHistory. - [Preview API] Get approval history. - :param str project: Project ID or project name - :param int approval_step_id: Id of the approval. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_step_id is not None: - route_values['approvalStepId'] = self._serialize.url('approval_step_id', approval_step_id, 'int') - response = self._send(http_method='GET', - location_id='250c7158-852e-4130-a00f-a0cce9b72d05', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ReleaseApproval', response) - - def get_approval(self, project, approval_id, include_history=None): - """GetApproval. - [Preview API] Get an approval. - :param str project: Project ID or project name - :param int approval_id: Id of the approval. - :param bool include_history: 'true' to include history of the approval. Default is 'false'. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_id is not None: - route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') - query_parameters = {} - if include_history is not None: - query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') - response = self._send(http_method='GET', - location_id='9328e074-59fb-465a-89d9-b09c82ee5109', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseApproval', response) - - def update_release_approval(self, approval, project, approval_id): - """UpdateReleaseApproval. - [Preview API] Update status of an approval - :param :class:` ` approval: ReleaseApproval object having status, approver and comments. - :param str project: Project ID or project name - :param int approval_id: Id of the approval. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_id is not None: - route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') - content = self._serialize.body(approval, 'ReleaseApproval') - response = self._send(http_method='PATCH', - location_id='9328e074-59fb-465a-89d9-b09c82ee5109', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ReleaseApproval', response) - - def update_release_approvals(self, approvals, project): - """UpdateReleaseApprovals. - [Preview API] - :param [ReleaseApproval] approvals: - :param str project: Project ID or project name - :rtype: [ReleaseApproval] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(approvals, '[ReleaseApproval]') - response = self._send(http_method='PATCH', - location_id='c957584a-82aa-4131-8222-6d47f78bfa7a', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) - - def get_auto_trigger_issues(self, artifact_type, source_id, artifact_version_id): - """GetAutoTriggerIssues. - [Preview API] - :param str artifact_type: - :param str source_id: - :param str artifact_version_id: - :rtype: [AutoTriggerIssue] - """ - query_parameters = {} - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - if artifact_version_id is not None: - query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') - response = self._send(http_method='GET', - location_id='c1a68497-69da-40fb-9423-cab19cfeeca9', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) - - def get_release_changes(self, project, release_id, base_release_id=None, top=None): - """GetReleaseChanges. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int base_release_id: - :param int top: - :rtype: [Change] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if base_release_id is not None: - query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='8dcf9fe9-ca37-4113-8ee1-37928e98407c', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Change]', self._unwrap_collection(response)) - - def get_definition_environments(self, project, task_group_id=None, property_filters=None): - """GetDefinitionEnvironments. - [Preview API] - :param str project: Project ID or project name - :param str task_group_id: - :param [str] property_filters: - :rtype: [DefinitionEnvironmentReference] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if task_group_id is not None: - query_parameters['taskGroupId'] = self._serialize.query('task_group_id', task_group_id, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='12b5d21a-f54c-430e-a8c1-7515d196890e', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[DefinitionEnvironmentReference]', self._unwrap_collection(response)) - - def create_release_definition(self, release_definition, project): - """CreateReleaseDefinition. - [Preview API] Create a release definition - :param :class:` ` release_definition: release definition object to create. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='POST', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def delete_release_definition(self, project, definition_id): - """DeleteReleaseDefinition. - [Preview API] Delete a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - self._send(http_method='DELETE', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values) - - def get_release_definition(self, project, definition_id, property_filters=None): - """GetReleaseDefinition. - [Preview API] Get a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinition', response) - - def get_release_definition_revision(self, project, definition_id, revision, **kwargs): - """GetReleaseDefinitionRevision. - [Preview API] Get release definition of a given revision. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param int revision: Revision number of the release definition. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if revision is not None: - query_parameters['revision'] = self._serialize.query('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None): - """GetReleaseDefinitions. - [Preview API] Get a list of release definitions. - :param str project: Project ID or project name - :param str search_text: Get release definitions with names starting with searchText. - :param str expand: The properties that should be expanded in the list of Release definitions. - :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param int top: Number of release definitions to get. - :param str continuation_token: Gets the release definitions after the continuation token provided. - :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. - :param str path: Gets the release definitions under the specified path. - :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. - :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. - :rtype: [ReleaseDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if artifact_source_id is not None: - query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if path is not None: - query_parameters['path'] = self._serialize.query('path', path, 'str') - if is_exact_name_match is not None: - query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if definition_id_filter is not None: - definition_id_filter = ",".join(definition_id_filter) - query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) - - def update_release_definition(self, release_definition, project): - """UpdateReleaseDefinition. - [Preview API] Update a release definition. - :param :class:` ` release_definition: Release definition object to update. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='PUT', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.0-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None): - """GetDeployments. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :param int definition_environment_id: - :param str created_by: - :param datetime min_modified_time: - :param datetime max_modified_time: - :param str deployment_status: - :param str operation_status: - :param bool latest_attempts_only: - :param str query_order: - :param int top: - :param int continuation_token: - :param str created_for: - :rtype: [Deployment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if min_modified_time is not None: - query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') - if max_modified_time is not None: - query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') - if deployment_status is not None: - query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') - if operation_status is not None: - query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') - if latest_attempts_only is not None: - query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if created_for is not None: - query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') - response = self._send(http_method='GET', - location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Deployment]', self._unwrap_collection(response)) - - def get_deployments_for_multiple_environments(self, query_parameters, project): - """GetDeploymentsForMultipleEnvironments. - [Preview API] - :param :class:` ` query_parameters: - :param str project: Project ID or project name - :rtype: [Deployment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(query_parameters, 'DeploymentQueryParameters') - response = self._send(http_method='POST', - location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[Deployment]', self._unwrap_collection(response)) - - def get_release_environment(self, project, release_id, environment_id): - """GetReleaseEnvironment. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - response = self._send(http_method='GET', - location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', - version='4.0-preview.4', - route_values=route_values) - return self._deserialize('ReleaseEnvironment', response) - - def update_release_environment(self, environment_update_data, project, release_id, environment_id): - """UpdateReleaseEnvironment. - [Preview API] Update the status of a release environment - :param :class:` ` environment_update_data: Environment update meta data. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('ReleaseEnvironment', response) - - def create_definition_environment_template(self, template, project): - """CreateDefinitionEnvironmentTemplate. - [Preview API] - :param :class:` ` template: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(template, 'ReleaseDefinitionEnvironmentTemplate') - response = self._send(http_method='POST', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) - - def delete_definition_environment_template(self, project, template_id): - """DeleteDefinitionEnvironmentTemplate. - [Preview API] - :param str project: Project ID or project name - :param str template_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if template_id is not None: - query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') - self._send(http_method='DELETE', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters) - - def get_definition_environment_template(self, project, template_id): - """GetDefinitionEnvironmentTemplate. - [Preview API] - :param str project: Project ID or project name - :param str template_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if template_id is not None: - query_parameters['templateId'] = self._serialize.query('template_id', template_id, 'str') - response = self._send(http_method='GET', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinitionEnvironmentTemplate', response) - - def list_definition_environment_templates(self, project): - """ListDefinitionEnvironmentTemplates. - [Preview API] - :param str project: Project ID or project name - :rtype: [ReleaseDefinitionEnvironmentTemplate] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='6b03b696-824e-4479-8eb2-6644a51aba89', - version='4.0-preview.2', - route_values=route_values) - return self._deserialize('[ReleaseDefinitionEnvironmentTemplate]', self._unwrap_collection(response)) - - def create_favorites(self, favorite_items, project, scope, identity_id=None): - """CreateFavorites. - [Preview API] - :param [FavoriteItem] favorite_items: - :param str project: Project ID or project name - :param str scope: - :param str identity_id: - :rtype: [FavoriteItem] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if scope is not None: - route_values['scope'] = self._serialize.url('scope', scope, 'str') - query_parameters = {} - if identity_id is not None: - query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') - content = self._serialize.body(favorite_items, '[FavoriteItem]') - response = self._send(http_method='POST', - location_id='938f7222-9acb-48fe-b8a3-4eda04597171', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) - - def delete_favorites(self, project, scope, identity_id=None, favorite_item_ids=None): - """DeleteFavorites. - [Preview API] - :param str project: Project ID or project name - :param str scope: - :param str identity_id: - :param str favorite_item_ids: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if scope is not None: - route_values['scope'] = self._serialize.url('scope', scope, 'str') - query_parameters = {} - if identity_id is not None: - query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') - if favorite_item_ids is not None: - query_parameters['favoriteItemIds'] = self._serialize.query('favorite_item_ids', favorite_item_ids, 'str') - self._send(http_method='DELETE', - location_id='938f7222-9acb-48fe-b8a3-4eda04597171', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - - def get_favorites(self, project, scope, identity_id=None): - """GetFavorites. - [Preview API] - :param str project: Project ID or project name - :param str scope: - :param str identity_id: - :rtype: [FavoriteItem] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if scope is not None: - route_values['scope'] = self._serialize.url('scope', scope, 'str') - query_parameters = {} - if identity_id is not None: - query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') - response = self._send(http_method='GET', - location_id='938f7222-9acb-48fe-b8a3-4eda04597171', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[FavoriteItem]', self._unwrap_collection(response)) - - def create_folder(self, folder, project, path): - """CreateFolder. - [Preview API] Creates a new folder - :param :class:` ` folder: - :param str project: Project ID or project name - :param str path: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - content = self._serialize.body(folder, 'Folder') - response = self._send(http_method='POST', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Folder', response) - - def delete_folder(self, project, path): - """DeleteFolder. - [Preview API] Deletes a definition folder for given folder name and path and all it's existing definitions - :param str project: Project ID or project name - :param str path: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - self._send(http_method='DELETE', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values) - - def get_folders(self, project, path=None, query_order=None): - """GetFolders. - [Preview API] Gets folders - :param str project: Project ID or project name - :param str path: - :param str query_order: - :rtype: [Folder] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - query_parameters = {} - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - response = self._send(http_method='GET', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Folder]', self._unwrap_collection(response)) - - def update_folder(self, folder, project, path): - """UpdateFolder. - [Preview API] Updates an existing folder at given existing path - :param :class:` ` folder: - :param str project: Project ID or project name - :param str path: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if path is not None: - route_values['path'] = self._serialize.url('path', path, 'str') - content = self._serialize.body(folder, 'Folder') - response = self._send(http_method='PATCH', - location_id='f7ddf76d-ce0c-4d68-94ff-becaec5d9dea', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Folder', response) - - def get_release_history(self, project, release_id): - """GetReleaseHistory. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :rtype: [ReleaseRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='23f461c8-629a-4144-a076-3054fa5f268a', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseRevision]', self._unwrap_collection(response)) - - def get_input_values(self, query, project): - """GetInputValues. - [Preview API] - :param :class:` ` query: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(query, 'InputValuesQuery') - response = self._send(http_method='POST', - location_id='71dd499b-317d-45ea-9134-140ea1932b5e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('InputValuesQuery', response) - - def get_issues(self, project, build_id, source_id=None): - """GetIssues. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param str source_id: - :rtype: [AutoTriggerIssue] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if build_id is not None: - route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') - query_parameters = {} - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - response = self._send(http_method='GET', - location_id='cd42261a-f5c6-41c8-9259-f078989b9f25', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[AutoTriggerIssue]', self._unwrap_collection(response)) - - def get_log(self, project, release_id, environment_id, task_id, attempt_id=None, **kwargs): - """GetLog. - [Preview API] Gets logs - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :param int task_id: ReleaseTask Id for the log. - :param int attempt_id: Id of the attempt. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') - query_parameters = {} - if attempt_id is not None: - query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') - response = self._send(http_method='GET', - location_id='e71ba1ed-c0a4-4a28-a61f-2dd5f68cf3fd', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_logs(self, project, release_id, **kwargs): - """GetLogs. - [Preview API] Get logs for a release Id. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', - version='4.0-preview.2', - route_values=route_values, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, **kwargs): - """GetTaskLog. - [Preview API] Gets the task log of a release as a plain text file. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :param int release_deploy_phase_id: Release deploy phase Id. - :param int task_id: ReleaseTask Id for the log. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if release_deploy_phase_id is not None: - route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') - response = self._send(http_method='GET', - location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', - version='4.0-preview.2', - route_values=route_values, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_manual_intervention(self, project, release_id, manual_intervention_id): - """GetManualIntervention. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int manual_intervention_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ManualIntervention', response) - - def get_manual_interventions(self, project, release_id): - """GetManualInterventions. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :rtype: [ManualIntervention] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) - - def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): - """UpdateManualIntervention. - [Preview API] - :param :class:` ` manual_intervention_update_metadata: - :param str project: Project ID or project name - :param int release_id: - :param int manual_intervention_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ManualIntervention', response) - - def get_metrics(self, project, min_metrics_time=None): - """GetMetrics. - [Preview API] - :param str project: Project ID or project name - :param datetime min_metrics_time: - :rtype: [Metric] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if min_metrics_time is not None: - query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') - response = self._send(http_method='GET', - location_id='cd1502bb-3c73-4e11-80a6-d11308dceae5', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Metric]', self._unwrap_collection(response)) - - def get_release_projects(self, artifact_type, artifact_source_id): - """GetReleaseProjects. - [Preview API] - :param str artifact_type: - :param str artifact_source_id: - :rtype: [ProjectReference] - """ - query_parameters = {} - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if artifact_source_id is not None: - query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') - response = self._send(http_method='GET', - location_id='917ace4a-79d1-45a7-987c-7be4db4268fa', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[ProjectReference]', self._unwrap_collection(response)) - - def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None): - """GetReleases. - [Preview API] Get a list of releases - :param str project: Project ID or project name - :param int definition_id: Releases from this release definition Id. - :param int definition_environment_id: - :param str search_text: Releases with names starting with searchText. - :param str created_by: Releases created by this user. - :param str status_filter: Releases that have this status. - :param int environment_status_filter: - :param datetime min_created_time: Releases that were created after this time. - :param datetime max_created_time: Releases that were created before this time. - :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. - :param int top: Number of releases to get. Default is 50. - :param int continuation_token: Gets the releases after the continuation token provided. - :param str expand: The property that should be expanded in the list of releases. - :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. - :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. - :param bool is_deleted: Gets the soft deleted releases, if true. - :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :rtype: [Release] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if environment_status_filter is not None: - query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') - if min_created_time is not None: - query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') - if max_created_time is not None: - query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type_id is not None: - query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - if artifact_version_id is not None: - query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') - if source_branch_filter is not None: - query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') - if is_deleted is not None: - query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Release]', self._unwrap_collection(response)) - - def create_release(self, release_start_metadata, project): - """CreateRelease. - [Preview API] Create a release. - :param :class:` ` release_start_metadata: Metadata to create a release. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') - response = self._send(http_method='POST', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def delete_release(self, project, release_id, comment=None): - """DeleteRelease. - [Preview API] Soft delete a release - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param str comment: Comment for deleting a release. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if comment is not None: - query_parameters['comment'] = self._serialize.query('comment', comment, 'str') - self._send(http_method='DELETE', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - - def get_release(self, project, release_id, include_all_approvals=None, property_filters=None): - """GetRelease. - [Preview API] Get a Release - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param bool include_all_approvals: Include all approvals in the result. Default is 'true'. - :param [str] property_filters: A comma-delimited list of properties to include in the results. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if include_all_approvals is not None: - query_parameters['includeAllApprovals'] = self._serialize.query('include_all_approvals', include_all_approvals, 'bool') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('Release', response) - - def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): - """GetReleaseDefinitionSummary. - [Preview API] Get release summary of a given definition Id. - :param str project: Project ID or project name - :param int definition_id: Id of the definition to get release summary. - :param int release_count: Count of releases to be included in summary. - :param bool include_artifact: Include artifact details.Default is 'false'. - :param [int] definition_environment_ids_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if release_count is not None: - query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') - if include_artifact is not None: - query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') - if definition_environment_ids_filter is not None: - definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) - query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinitionSummary', response) - - def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): - """GetReleaseRevision. - [Preview API] Get release for a given revision number. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int definition_snapshot_revision: Definition snapshot revision number. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if definition_snapshot_revision is not None: - query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def undelete_release(self, project, release_id, comment): - """UndeleteRelease. - [Preview API] Undelete a soft deleted release. - :param str project: Project ID or project name - :param int release_id: Id of release to be undeleted. - :param str comment: Any comment for undeleting. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if comment is not None: - query_parameters['comment'] = self._serialize.query('comment', comment, 'str') - self._send(http_method='PUT', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - query_parameters=query_parameters) - - def update_release(self, release, project, release_id): - """UpdateRelease. - [Preview API] Update a complete release object. - :param :class:` ` release: Release object for update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release, 'Release') - response = self._send(http_method='PUT', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def update_release_resource(self, release_update_metadata, project, release_id): - """UpdateReleaseResource. - [Preview API] Update few properties of a release. - :param :class:` ` release_update_metadata: Properties of release to update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def get_release_settings(self, project): - """GetReleaseSettings. - [Preview API] Gets the release settings - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ReleaseSettings', response) - - def update_release_settings(self, release_settings, project): - """UpdateReleaseSettings. - [Preview API] Updates the release settings - :param :class:` ` release_settings: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_settings, 'ReleaseSettings') - response = self._send(http_method='PUT', - location_id='c63c3718-7cfd-41e0-b89b-81c1ca143437', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ReleaseSettings', response) - - def get_definition_revision(self, project, definition_id, revision, **kwargs): - """GetDefinitionRevision. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :param int revision: - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - if revision is not None: - route_values['revision'] = self._serialize.url('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.0-preview.1', - route_values=route_values, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_release_definition_history(self, project, definition_id): - """GetReleaseDefinitionHistory. - [Preview API] Get revision history for a release definition - :param str project: Project ID or project name - :param int definition_id: Id of the definition. - :rtype: [ReleaseDefinitionRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) - - def get_summary_mail_sections(self, project, release_id): - """GetSummaryMailSections. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :rtype: [SummaryMailSection] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='224e92b2-8d13-4c14-b120-13d877c516f8', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[SummaryMailSection]', self._unwrap_collection(response)) - - def send_summary_mail(self, mail_message, project, release_id): - """SendSummaryMail. - [Preview API] - :param :class:` ` mail_message: - :param str project: Project ID or project name - :param int release_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(mail_message, 'MailMessage') - self._send(http_method='POST', - location_id='224e92b2-8d13-4c14-b120-13d877c516f8', - version='4.0-preview.1', - route_values=route_values, - content=content) - - def get_source_branches(self, project, definition_id): - """GetSourceBranches. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='0e5def23-78b3-461f-8198-1558f25041c8', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_definition_tag(self, project, release_definition_id, tag): - """AddDefinitionTag. - [Preview API] Adds a tag to a definition - :param str project: Project ID or project name - :param int release_definition_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='PATCH', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_definition_tags(self, tags, project, release_definition_id): - """AddDefinitionTags. - [Preview API] Adds multiple tags to a definition - :param [str] tags: - :param str project: Project ID or project name - :param int release_definition_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - content = self._serialize.body(tags, '[str]') - response = self._send(http_method='POST', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def delete_definition_tag(self, project, release_definition_id, tag): - """DeleteDefinitionTag. - [Preview API] Deletes a tag from a definition - :param str project: Project ID or project name - :param int release_definition_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='DELETE', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_definition_tags(self, project, release_definition_id): - """GetDefinitionTags. - [Preview API] Gets the tags for a definition - :param str project: Project ID or project name - :param int release_definition_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_definition_id is not None: - route_values['releaseDefinitionId'] = self._serialize.url('release_definition_id', release_definition_id, 'int') - response = self._send(http_method='GET', - location_id='3d21b4c8-c32e-45b2-a7cb-770a369012f4', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_release_tag(self, project, release_id, tag): - """AddReleaseTag. - [Preview API] Adds a tag to a releaseId - :param str project: Project ID or project name - :param int release_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='PATCH', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def add_release_tags(self, tags, project, release_id): - """AddReleaseTags. - [Preview API] Adds tag to a release - :param [str] tags: - :param str project: Project ID or project name - :param int release_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(tags, '[str]') - response = self._send(http_method='POST', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def delete_release_tag(self, project, release_id, tag): - """DeleteReleaseTag. - [Preview API] Deletes a tag from a release - :param str project: Project ID or project name - :param int release_id: - :param str tag: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if tag is not None: - route_values['tag'] = self._serialize.url('tag', tag, 'str') - response = self._send(http_method='DELETE', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_release_tags(self, project, release_id): - """GetReleaseTags. - [Preview API] Gets the tags for a release - :param str project: Project ID or project name - :param int release_id: - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='c5b602b6-d1b3-4363-8a51-94384f78068f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_tags(self, project): - """GetTags. - [Preview API] - :param str project: Project ID or project name - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='86cee25a-68ba-4ba3-9171-8ad6ffc6df93', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_tasks(self, project, release_id, environment_id, attempt_id=None): - """GetTasks. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int attempt_id: - :rtype: [ReleaseTask] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - query_parameters = {} - if attempt_id is not None: - query_parameters['attemptId'] = self._serialize.query('attempt_id', attempt_id, 'int') - response = self._send(http_method='GET', - location_id='36b276e0-3c70-4320-a63c-1a2e1466a0d1', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) - - def get_tasks_for_task_group(self, project, release_id, environment_id, release_deploy_phase_id): - """GetTasksForTaskGroup. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int release_deploy_phase_id: - :rtype: [ReleaseTask] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if release_deploy_phase_id is not None: - route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') - response = self._send(http_method='GET', - location_id='4259191d-4b0a-4409-9fb3-09f22ab9bc47', - version='4.0-preview.2', - route_values=route_values) - return self._deserialize('[ReleaseTask]', self._unwrap_collection(response)) - - def get_artifact_type_definitions(self, project): - """GetArtifactTypeDefinitions. - [Preview API] - :param str project: Project ID or project name - :rtype: [ArtifactTypeDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='8efc2a3c-1fc8-4f6d-9822-75e98cecb48f', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[ArtifactTypeDefinition]', self._unwrap_collection(response)) - - def get_artifact_versions(self, project, release_definition_id): - """GetArtifactVersions. - [Preview API] - :param str project: Project ID or project name - :param int release_definition_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if release_definition_id is not None: - query_parameters['releaseDefinitionId'] = self._serialize.query('release_definition_id', release_definition_id, 'int') - response = self._send(http_method='GET', - location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ArtifactVersionQueryResult', response) - - def get_artifact_versions_for_sources(self, artifacts, project): - """GetArtifactVersionsForSources. - [Preview API] - :param [Artifact] artifacts: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(artifacts, '[Artifact]') - response = self._send(http_method='POST', - location_id='30fc787e-a9e0-4a07-9fbc-3e903aa051d2', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ArtifactVersionQueryResult', response) - - def get_release_work_items_refs(self, project, release_id, base_release_id=None, top=None): - """GetReleaseWorkItemsRefs. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int base_release_id: - :param int top: - :rtype: [ReleaseWorkItemRef] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if base_release_id is not None: - query_parameters['baseReleaseId'] = self._serialize.query('base_release_id', base_release_id, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='4f165cc0-875c-4768-b148-f12f78769fab', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseWorkItemRef]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py b/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py deleted file mode 100644 index 3f8e76c9..00000000 --- a/azure-devops/azure/devops/v4_0/task_agent/task_agent_client.py +++ /dev/null @@ -1,2466 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class TaskAgentClient(Client): - """TaskAgent - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(TaskAgentClient, 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 = 'a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd' - - def add_agent(self, agent, pool_id): - """AddAgent. - :param :class:` ` agent: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(agent, 'TaskAgent') - response = self._send(http_method='POST', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - - def delete_agent(self, pool_id, agent_id): - """DeleteAgent. - :param int pool_id: - :param int agent_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - self._send(http_method='DELETE', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.0', - route_values=route_values) - - def get_agent(self, pool_id, agent_id, include_capabilities=None, include_assigned_request=None, property_filters=None): - """GetAgent. - :param int pool_id: - :param int agent_id: - :param bool include_capabilities: - :param bool include_assigned_request: - :param [str] property_filters: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - query_parameters = {} - if include_capabilities is not None: - query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') - if include_assigned_request is not None: - query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgent', response) - - def get_agents(self, pool_id, agent_name=None, include_capabilities=None, include_assigned_request=None, property_filters=None, demands=None): - """GetAgents. - :param int pool_id: - :param str agent_name: - :param bool include_capabilities: - :param bool include_assigned_request: - :param [str] property_filters: - :param [str] demands: - :rtype: [TaskAgent] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if agent_name is not None: - query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') - if include_capabilities is not None: - query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') - if include_assigned_request is not None: - query_parameters['includeAssignedRequest'] = self._serialize.query('include_assigned_request', include_assigned_request, 'bool') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if demands is not None: - demands = ",".join(demands) - query_parameters['demands'] = self._serialize.query('demands', demands, 'str') - response = self._send(http_method='GET', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgent]', self._unwrap_collection(response)) - - def replace_agent(self, agent, pool_id, agent_id): - """ReplaceAgent. - :param :class:` ` agent: - :param int pool_id: - :param int agent_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - content = self._serialize.body(agent, 'TaskAgent') - response = self._send(http_method='PUT', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - - def update_agent(self, agent, pool_id, agent_id): - """UpdateAgent. - :param :class:` ` agent: - :param int pool_id: - :param int agent_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - content = self._serialize.body(agent, 'TaskAgent') - response = self._send(http_method='PATCH', - location_id='e298ef32-5878-4cab-993c-043836571f42', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - - def get_azure_subscriptions(self): - """GetAzureSubscriptions. - [Preview API] Returns list of azure subscriptions - :rtype: :class:` ` - """ - response = self._send(http_method='GET', - location_id='bcd6189c-0303-471f-a8e1-acb22b74d700', - version='4.0-preview.1') - return self._deserialize('AzureSubscriptionQueryResult', response) - - def generate_deployment_group_access_token(self, project, deployment_group_id): - """GenerateDeploymentGroupAccessToken. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: str - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - response = self._send(http_method='POST', - location_id='3d197ba2-c3e9-4253-882f-0ee2440f8174', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('str', response) - - def add_deployment_group(self, deployment_group, project): - """AddDeploymentGroup. - [Preview API] - :param :class:` ` deployment_group: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(deployment_group, 'DeploymentGroup') - response = self._send(http_method='POST', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentGroup', response) - - def delete_deployment_group(self, project, deployment_group_id): - """DeleteDeploymentGroup. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - self._send(http_method='DELETE', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.0-preview.1', - route_values=route_values) - - def get_deployment_group(self, project, deployment_group_id, action_filter=None, expand=None): - """GetDeploymentGroup. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param str action_filter: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('DeploymentGroup', response) - - def get_deployment_groups(self, project, name=None, action_filter=None, expand=None, continuation_token=None, top=None, ids=None): - """GetDeploymentGroups. - [Preview API] - :param str project: Project ID or project name - :param str name: - :param str action_filter: - :param str expand: - :param str continuation_token: - :param int top: - :param [int] ids: - :rtype: [DeploymentGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if ids is not None: - ids = ",".join(map(str, ids)) - query_parameters['ids'] = self._serialize.query('ids', ids, 'str') - response = self._send(http_method='GET', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[DeploymentGroup]', self._unwrap_collection(response)) - - def update_deployment_group(self, deployment_group, project, deployment_group_id): - """UpdateDeploymentGroup. - [Preview API] - :param :class:` ` deployment_group: - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(deployment_group, 'DeploymentGroup') - response = self._send(http_method='PATCH', - location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentGroup', response) - - def get_deployment_groups_metrics(self, project, deployment_group_name=None, continuation_token=None, top=None): - """GetDeploymentGroupsMetrics. - [Preview API] - :param str project: Project ID or project name - :param str deployment_group_name: - :param str continuation_token: - :param int top: - :rtype: [DeploymentGroupMetrics] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if deployment_group_name is not None: - query_parameters['deploymentGroupName'] = self._serialize.query('deployment_group_name', deployment_group_name, 'str') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='281c6308-427a-49e1-b83a-dac0f4862189', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[DeploymentGroupMetrics]', self._unwrap_collection(response)) - - def get_agent_requests_for_deployment_machine(self, project, deployment_group_id, machine_id, completed_request_count=None): - """GetAgentRequestsForDeploymentMachine. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :param int completed_request_count: - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if machine_id is not None: - query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'int') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='a3540e5b-f0dc-4668-963b-b752459be545', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) - - def get_agent_requests_for_deployment_machines(self, project, deployment_group_id, machine_ids=None, completed_request_count=None): - """GetAgentRequestsForDeploymentMachines. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param [int] machine_ids: - :param int completed_request_count: - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if machine_ids is not None: - machine_ids = ",".join(map(str, machine_ids)) - query_parameters['machineIds'] = self._serialize.query('machine_ids', machine_ids, 'str') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='a3540e5b-f0dc-4668-963b-b752459be545', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) - - def refresh_deployment_machines(self, project, deployment_group_id): - """RefreshDeploymentMachines. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - self._send(http_method='POST', - location_id='91006ac4-0f68-4d82-a2bc-540676bd73ce', - version='4.0-preview.1', - route_values=route_values) - - def query_endpoint(self, endpoint): - """QueryEndpoint. - Proxy for a GET request defined by an 'endpoint'. The request is authorized using a service connection. The response is filtered using an XPath/Json based selector. - :param :class:` ` endpoint: Describes the URL to fetch. - :rtype: [str] - """ - content = self._serialize.body(endpoint, 'TaskDefinitionEndpoint') - response = self._send(http_method='POST', - location_id='f223b809-8c33-4b7d-b53f-07232569b5d6', - version='4.0', - content=content) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): - """GetServiceEndpointExecutionRecords. - [Preview API] - :param str project: Project ID or project name - :param str endpoint_id: - :param int top: - :rtype: [ServiceEndpointExecutionRecord] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') - query_parameters = {} - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='3ad71e20-7586-45f9-a6c8-0342e00835ac', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ServiceEndpointExecutionRecord]', self._unwrap_collection(response)) - - def add_service_endpoint_execution_records(self, input, project): - """AddServiceEndpointExecutionRecords. - [Preview API] - :param :class:` ` input: - :param str project: Project ID or project name - :rtype: [ServiceEndpointExecutionRecord] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(input, 'ServiceEndpointExecutionRecordsInput') - response = self._send(http_method='POST', - location_id='11a45c69-2cce-4ade-a361-c9f5a37239ee', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[ServiceEndpointExecutionRecord]', self._unwrap_collection(response)) - - def get_task_hub_license_details(self, hub_name, include_enterprise_users_count=None, include_hosted_agent_minutes_count=None): - """GetTaskHubLicenseDetails. - [Preview API] - :param str hub_name: - :param bool include_enterprise_users_count: - :param bool include_hosted_agent_minutes_count: - :rtype: :class:` ` - """ - route_values = {} - if hub_name is not None: - route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') - query_parameters = {} - if include_enterprise_users_count is not None: - query_parameters['includeEnterpriseUsersCount'] = self._serialize.query('include_enterprise_users_count', include_enterprise_users_count, 'bool') - if include_hosted_agent_minutes_count is not None: - query_parameters['includeHostedAgentMinutesCount'] = self._serialize.query('include_hosted_agent_minutes_count', include_hosted_agent_minutes_count, 'bool') - response = self._send(http_method='GET', - location_id='f9f0f436-b8a1-4475-9041-1ccdbf8f0128', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskHubLicenseDetails', response) - - def update_task_hub_license_details(self, task_hub_license_details, hub_name): - """UpdateTaskHubLicenseDetails. - [Preview API] - :param :class:` ` task_hub_license_details: - :param str hub_name: - :rtype: :class:` ` - """ - route_values = {} - if hub_name is not None: - route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') - content = self._serialize.body(task_hub_license_details, 'TaskHubLicenseDetails') - response = self._send(http_method='PUT', - location_id='f9f0f436-b8a1-4475-9041-1ccdbf8f0128', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskHubLicenseDetails', response) - - def validate_inputs(self, input_validation_request): - """ValidateInputs. - [Preview API] - :param :class:` ` input_validation_request: - :rtype: :class:` ` - """ - content = self._serialize.body(input_validation_request, 'InputValidationRequest') - response = self._send(http_method='POST', - location_id='58475b1e-adaf-4155-9bc1-e04bf1fff4c2', - version='4.0-preview.1', - content=content) - return self._deserialize('InputValidationRequest', response) - - def delete_agent_request(self, pool_id, request_id, lock_token, result=None): - """DeleteAgentRequest. - :param int pool_id: - :param long request_id: - :param str lock_token: - :param str result: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if request_id is not None: - route_values['requestId'] = self._serialize.url('request_id', request_id, 'long') - query_parameters = {} - if lock_token is not None: - query_parameters['lockToken'] = self._serialize.query('lock_token', lock_token, 'str') - if result is not None: - query_parameters['result'] = self._serialize.query('result', result, 'str') - self._send(http_method='DELETE', - location_id='fc825784-c92a-4299-9221-998a02d1b54f', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - - def get_agent_request(self, pool_id, request_id): - """GetAgentRequest. - :param int pool_id: - :param long request_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if request_id is not None: - route_values['requestId'] = self._serialize.url('request_id', request_id, 'long') - response = self._send(http_method='GET', - location_id='fc825784-c92a-4299-9221-998a02d1b54f', - version='4.0', - route_values=route_values) - return self._deserialize('TaskAgentJobRequest', response) - - def get_agent_requests_for_agent(self, pool_id, agent_id, completed_request_count=None): - """GetAgentRequestsForAgent. - :param int pool_id: - :param int agent_id: - :param int completed_request_count: - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if agent_id is not None: - query_parameters['agentId'] = self._serialize.query('agent_id', agent_id, 'int') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='fc825784-c92a-4299-9221-998a02d1b54f', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) - - def get_agent_requests_for_agents(self, pool_id, agent_ids=None, completed_request_count=None): - """GetAgentRequestsForAgents. - :param int pool_id: - :param [int] agent_ids: - :param int completed_request_count: - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if agent_ids is not None: - agent_ids = ",".join(map(str, agent_ids)) - query_parameters['agentIds'] = self._serialize.query('agent_ids', agent_ids, 'str') - if completed_request_count is not None: - query_parameters['completedRequestCount'] = self._serialize.query('completed_request_count', completed_request_count, 'int') - response = self._send(http_method='GET', - location_id='fc825784-c92a-4299-9221-998a02d1b54f', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) - - def get_agent_requests_for_plan(self, pool_id, plan_id, job_id=None): - """GetAgentRequestsForPlan. - :param int pool_id: - :param str plan_id: - :param str job_id: - :rtype: [TaskAgentJobRequest] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if plan_id is not None: - query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'str') - if job_id is not None: - query_parameters['jobId'] = self._serialize.query('job_id', job_id, 'str') - response = self._send(http_method='GET', - location_id='fc825784-c92a-4299-9221-998a02d1b54f', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgentJobRequest]', self._unwrap_collection(response)) - - def queue_agent_request(self, request, pool_id): - """QueueAgentRequest. - :param :class:` ` request: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(request, 'TaskAgentJobRequest') - response = self._send(http_method='POST', - location_id='fc825784-c92a-4299-9221-998a02d1b54f', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentJobRequest', response) - - def update_agent_request(self, request, pool_id, request_id, lock_token): - """UpdateAgentRequest. - :param :class:` ` request: - :param int pool_id: - :param long request_id: - :param str lock_token: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if request_id is not None: - route_values['requestId'] = self._serialize.url('request_id', request_id, 'long') - query_parameters = {} - if lock_token is not None: - query_parameters['lockToken'] = self._serialize.query('lock_token', lock_token, 'str') - content = self._serialize.body(request, 'TaskAgentJobRequest') - response = self._send(http_method='PATCH', - location_id='fc825784-c92a-4299-9221-998a02d1b54f', - version='4.0', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('TaskAgentJobRequest', response) - - def generate_deployment_machine_group_access_token(self, project, machine_group_id): - """GenerateDeploymentMachineGroupAccessToken. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - :rtype: str - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - response = self._send(http_method='POST', - location_id='f8c7c0de-ac0d-469b-9cb1-c21f72d67693', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('str', response) - - def add_deployment_machine_group(self, machine_group, project): - """AddDeploymentMachineGroup. - [Preview API] - :param :class:` ` machine_group: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(machine_group, 'DeploymentMachineGroup') - response = self._send(http_method='POST', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachineGroup', response) - - def delete_deployment_machine_group(self, project, machine_group_id): - """DeleteDeploymentMachineGroup. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - self._send(http_method='DELETE', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.0-preview.1', - route_values=route_values) - - def get_deployment_machine_group(self, project, machine_group_id, action_filter=None): - """GetDeploymentMachineGroup. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - :param str action_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - query_parameters = {} - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('DeploymentMachineGroup', response) - - def get_deployment_machine_groups(self, project, machine_group_name=None, action_filter=None): - """GetDeploymentMachineGroups. - [Preview API] - :param str project: Project ID or project name - :param str machine_group_name: - :param str action_filter: - :rtype: [DeploymentMachineGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if machine_group_name is not None: - query_parameters['machineGroupName'] = self._serialize.query('machine_group_name', machine_group_name, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[DeploymentMachineGroup]', self._unwrap_collection(response)) - - def update_deployment_machine_group(self, machine_group, project, machine_group_id): - """UpdateDeploymentMachineGroup. - [Preview API] - :param :class:` ` machine_group: - :param str project: Project ID or project name - :param int machine_group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - content = self._serialize.body(machine_group, 'DeploymentMachineGroup') - response = self._send(http_method='PATCH', - location_id='d4adf50f-80c6-4ac8-9ca1-6e4e544286e9', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachineGroup', response) - - def get_deployment_machine_group_machines(self, project, machine_group_id, tag_filters=None): - """GetDeploymentMachineGroupMachines. - [Preview API] - :param str project: Project ID or project name - :param int machine_group_id: - :param [str] tag_filters: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - query_parameters = {} - if tag_filters is not None: - tag_filters = ",".join(tag_filters) - query_parameters['tagFilters'] = self._serialize.query('tag_filters', tag_filters, 'str') - response = self._send(http_method='GET', - location_id='966c3874-c347-4b18-a90c-d509116717fd', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) - - def update_deployment_machine_group_machines(self, deployment_machines, project, machine_group_id): - """UpdateDeploymentMachineGroupMachines. - [Preview API] - :param [DeploymentMachine] deployment_machines: - :param str project: Project ID or project name - :param int machine_group_id: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if machine_group_id is not None: - route_values['machineGroupId'] = self._serialize.url('machine_group_id', machine_group_id, 'int') - content = self._serialize.body(deployment_machines, '[DeploymentMachine]') - response = self._send(http_method='PATCH', - location_id='966c3874-c347-4b18-a90c-d509116717fd', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) - - def add_deployment_machine(self, machine, project, deployment_group_id): - """AddDeploymentMachine. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='POST', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - - def delete_deployment_machine(self, project, deployment_group_id, machine_id): - """DeleteDeploymentMachine. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - self._send(http_method='DELETE', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.0-preview.1', - route_values=route_values) - - def get_deployment_machine(self, project, deployment_group_id, machine_id, expand=None): - """GetDeploymentMachine. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('DeploymentMachine', response) - - def get_deployment_machines(self, project, deployment_group_id, tags=None, name=None, expand=None): - """GetDeploymentMachines. - [Preview API] - :param str project: Project ID or project name - :param int deployment_group_id: - :param [str] tags: - :param str name: - :param str expand: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - query_parameters = {} - if tags is not None: - tags = ",".join(tags) - query_parameters['tags'] = self._serialize.query('tags', tags, 'str') - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) - - def replace_deployment_machine(self, machine, project, deployment_group_id, machine_id): - """ReplaceDeploymentMachine. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='PUT', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - - def update_deployment_machine(self, machine, project, deployment_group_id, machine_id): - """UpdateDeploymentMachine. - [Preview API] - :param :class:` ` machine: - :param str project: Project ID or project name - :param int deployment_group_id: - :param int machine_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - if machine_id is not None: - route_values['machineId'] = self._serialize.url('machine_id', machine_id, 'int') - content = self._serialize.body(machine, 'DeploymentMachine') - response = self._send(http_method='PATCH', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('DeploymentMachine', response) - - def update_deployment_machines(self, machines, project, deployment_group_id): - """UpdateDeploymentMachines. - [Preview API] - :param [DeploymentMachine] machines: - :param str project: Project ID or project name - :param int deployment_group_id: - :rtype: [DeploymentMachine] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if deployment_group_id is not None: - route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') - content = self._serialize.body(machines, '[DeploymentMachine]') - response = self._send(http_method='PATCH', - location_id='6f6d406f-cfe6-409c-9327-7009928077e7', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) - - def create_agent_pool_maintenance_definition(self, definition, pool_id): - """CreateAgentPoolMaintenanceDefinition. - [Preview API] - :param :class:` ` definition: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') - response = self._send(http_method='POST', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) - - def delete_agent_pool_maintenance_definition(self, pool_id, definition_id): - """DeleteAgentPoolMaintenanceDefinition. - [Preview API] - :param int pool_id: - :param int definition_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - self._send(http_method='DELETE', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.0-preview.1', - route_values=route_values) - - def get_agent_pool_maintenance_definition(self, pool_id, definition_id): - """GetAgentPoolMaintenanceDefinition. - [Preview API] - :param int pool_id: - :param int definition_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) - - def get_agent_pool_maintenance_definitions(self, pool_id): - """GetAgentPoolMaintenanceDefinitions. - [Preview API] - :param int pool_id: - :rtype: [TaskAgentPoolMaintenanceDefinition] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - response = self._send(http_method='GET', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[TaskAgentPoolMaintenanceDefinition]', self._unwrap_collection(response)) - - def update_agent_pool_maintenance_definition(self, definition, pool_id, definition_id): - """UpdateAgentPoolMaintenanceDefinition. - [Preview API] - :param :class:` ` definition: - :param int pool_id: - :param int definition_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - content = self._serialize.body(definition, 'TaskAgentPoolMaintenanceDefinition') - response = self._send(http_method='PUT', - location_id='80572e16-58f0-4419-ac07-d19fde32195c', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceDefinition', response) - - def delete_agent_pool_maintenance_job(self, pool_id, job_id): - """DeleteAgentPoolMaintenanceJob. - [Preview API] - :param int pool_id: - :param int job_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - self._send(http_method='DELETE', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.0-preview.1', - route_values=route_values) - - def get_agent_pool_maintenance_job(self, pool_id, job_id): - """GetAgentPoolMaintenanceJob. - [Preview API] - :param int pool_id: - :param int job_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - response = self._send(http_method='GET', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('TaskAgentPoolMaintenanceJob', response) - - def get_agent_pool_maintenance_job_logs(self, pool_id, job_id, **kwargs): - """GetAgentPoolMaintenanceJobLogs. - [Preview API] - :param int pool_id: - :param int job_id: - :rtype: object - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - response = self._send(http_method='GET', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.0-preview.1', - route_values=route_values, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_agent_pool_maintenance_jobs(self, pool_id, definition_id=None): - """GetAgentPoolMaintenanceJobs. - [Preview API] - :param int pool_id: - :param int definition_id: - :rtype: [TaskAgentPoolMaintenanceJob] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgentPoolMaintenanceJob]', self._unwrap_collection(response)) - - def queue_agent_pool_maintenance_job(self, job, pool_id): - """QueueAgentPoolMaintenanceJob. - [Preview API] - :param :class:` ` job: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') - response = self._send(http_method='POST', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceJob', response) - - def update_agent_pool_maintenance_job(self, job, pool_id, job_id): - """UpdateAgentPoolMaintenanceJob. - [Preview API] - :param :class:` ` job: - :param int pool_id: - :param int job_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if job_id is not None: - route_values['jobId'] = self._serialize.url('job_id', job_id, 'int') - content = self._serialize.body(job, 'TaskAgentPoolMaintenanceJob') - response = self._send(http_method='PATCH', - location_id='15e7ab6e-abce-4601-a6d8-e111fe148f46', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPoolMaintenanceJob', response) - - def delete_message(self, pool_id, message_id, session_id): - """DeleteMessage. - :param int pool_id: - :param long message_id: - :param str session_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if message_id is not None: - route_values['messageId'] = self._serialize.url('message_id', message_id, 'long') - query_parameters = {} - if session_id is not None: - query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') - self._send(http_method='DELETE', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - - def get_message(self, pool_id, session_id, last_message_id=None): - """GetMessage. - :param int pool_id: - :param str session_id: - :param long last_message_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if session_id is not None: - query_parameters['sessionId'] = self._serialize.query('session_id', session_id, 'str') - if last_message_id is not None: - query_parameters['lastMessageId'] = self._serialize.query('last_message_id', last_message_id, 'long') - response = self._send(http_method='GET', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgentMessage', response) - - def refresh_agent(self, pool_id, agent_id): - """RefreshAgent. - :param int pool_id: - :param int agent_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if agent_id is not None: - query_parameters['agentId'] = self._serialize.query('agent_id', agent_id, 'int') - self._send(http_method='POST', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - - def refresh_agents(self, pool_id): - """RefreshAgents. - :param int pool_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - self._send(http_method='POST', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.0', - route_values=route_values) - - def send_message(self, message, pool_id, request_id): - """SendMessage. - :param :class:` ` message: - :param int pool_id: - :param long request_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if request_id is not None: - query_parameters['requestId'] = self._serialize.query('request_id', request_id, 'long') - content = self._serialize.body(message, 'TaskAgentMessage') - self._send(http_method='POST', - location_id='c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7', - version='4.0', - route_values=route_values, - query_parameters=query_parameters, - content=content) - - def get_package(self, package_type, platform, version): - """GetPackage. - :param str package_type: - :param str platform: - :param str version: - :rtype: :class:` ` - """ - route_values = {} - if package_type is not None: - route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') - if platform is not None: - route_values['platform'] = self._serialize.url('platform', platform, 'str') - if version is not None: - route_values['version'] = self._serialize.url('version', version, 'str') - response = self._send(http_method='GET', - location_id='8ffcd551-079c-493a-9c02-54346299d144', - version='4.0', - route_values=route_values) - return self._deserialize('PackageMetadata', response) - - def get_packages(self, package_type=None, platform=None, top=None): - """GetPackages. - :param str package_type: - :param str platform: - :param int top: - :rtype: [PackageMetadata] - """ - route_values = {} - if package_type is not None: - route_values['packageType'] = self._serialize.url('package_type', package_type, 'str') - if platform is not None: - route_values['platform'] = self._serialize.url('platform', platform, 'str') - query_parameters = {} - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='8ffcd551-079c-493a-9c02-54346299d144', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[PackageMetadata]', self._unwrap_collection(response)) - - def get_agent_pool_roles(self, pool_id=None): - """GetAgentPoolRoles. - [Preview API] - :param int pool_id: - :rtype: [IdentityRef] - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - response = self._send(http_method='GET', - location_id='381dd2bb-35cf-4103-ae8c-3c815b25763c', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) - - def add_agent_pool(self, pool): - """AddAgentPool. - :param :class:` ` pool: - :rtype: :class:` ` - """ - content = self._serialize.body(pool, 'TaskAgentPool') - response = self._send(http_method='POST', - location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', - version='4.0', - content=content) - return self._deserialize('TaskAgentPool', response) - - def delete_agent_pool(self, pool_id): - """DeleteAgentPool. - :param int pool_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - self._send(http_method='DELETE', - location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', - version='4.0', - route_values=route_values) - - def get_agent_pool(self, pool_id, properties=None, action_filter=None): - """GetAgentPool. - :param int pool_id: - :param [str] properties: - :param str action_filter: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - query_parameters = {} - if properties is not None: - properties = ",".join(properties) - query_parameters['properties'] = self._serialize.query('properties', properties, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgentPool', response) - - def get_agent_pools(self, pool_name=None, properties=None, pool_type=None, action_filter=None): - """GetAgentPools. - :param str pool_name: - :param [str] properties: - :param str pool_type: - :param str action_filter: - :rtype: [TaskAgentPool] - """ - query_parameters = {} - if pool_name is not None: - query_parameters['poolName'] = self._serialize.query('pool_name', pool_name, 'str') - if properties is not None: - properties = ",".join(properties) - query_parameters['properties'] = self._serialize.query('properties', properties, 'str') - if pool_type is not None: - query_parameters['poolType'] = self._serialize.query('pool_type', pool_type, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', - version='4.0', - query_parameters=query_parameters) - return self._deserialize('[TaskAgentPool]', self._unwrap_collection(response)) - - def update_agent_pool(self, pool, pool_id): - """UpdateAgentPool. - :param :class:` ` pool: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(pool, 'TaskAgentPool') - response = self._send(http_method='PATCH', - location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentPool', response) - - def get_agent_queue_roles(self, queue_id=None): - """GetAgentQueueRoles. - [Preview API] - :param int queue_id: - :rtype: [IdentityRef] - """ - route_values = {} - if queue_id is not None: - route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') - response = self._send(http_method='GET', - location_id='b0c6d64d-c9fa-4946-b8de-77de623ee585', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) - - def add_agent_queue(self, queue, project=None): - """AddAgentQueue. - [Preview API] - :param :class:` ` queue: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(queue, 'TaskAgentQueue') - response = self._send(http_method='POST', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentQueue', response) - - def create_team_project(self, project=None): - """CreateTeamProject. - [Preview API] - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - self._send(http_method='PUT', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.0-preview.1', - route_values=route_values) - - def delete_agent_queue(self, queue_id, project=None): - """DeleteAgentQueue. - [Preview API] - :param int queue_id: - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if queue_id is not None: - route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') - self._send(http_method='DELETE', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.0-preview.1', - route_values=route_values) - - def get_agent_queue(self, queue_id, project=None, action_filter=None): - """GetAgentQueue. - [Preview API] - :param int queue_id: - :param str project: Project ID or project name - :param str action_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if queue_id is not None: - route_values['queueId'] = self._serialize.url('queue_id', queue_id, 'int') - query_parameters = {} - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgentQueue', response) - - def get_agent_queues(self, project=None, queue_name=None, action_filter=None): - """GetAgentQueues. - [Preview API] - :param str project: Project ID or project name - :param str queue_name: - :param str action_filter: - :rtype: [TaskAgentQueue] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if queue_name is not None: - query_parameters['queueName'] = self._serialize.query('queue_name', queue_name, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='900fa995-c559-4923-aae7-f8424fe4fbea', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskAgentQueue]', self._unwrap_collection(response)) - - def get_task_group_history(self, project, task_group_id): - """GetTaskGroupHistory. - [Preview API] - :param str project: Project ID or project name - :param str task_group_id: - :rtype: [TaskGroupRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if task_group_id is not None: - route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') - response = self._send(http_method='GET', - location_id='100cc92a-b255-47fa-9ab3-e44a2985a3ac', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[TaskGroupRevision]', self._unwrap_collection(response)) - - def delete_secure_file(self, project, secure_file_id): - """DeleteSecureFile. - [Preview API] Delete a secure file - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - self._send(http_method='DELETE', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values) - - def download_secure_file(self, project, secure_file_id, ticket, download=None, **kwargs): - """DownloadSecureFile. - [Preview API] Download a secure file by Id - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - :param str ticket: A valid download ticket - :param bool download: If download is true, the file is sent as attachement in the response body. If download is false, the response body contains the file stream. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - query_parameters = {} - if ticket is not None: - query_parameters['ticket'] = self._serialize.query('ticket', ticket, 'str') - if download is not None: - query_parameters['download'] = self._serialize.query('download', download, 'bool') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='application/octet-stream') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_secure_file(self, project, secure_file_id, include_download_ticket=None): - """GetSecureFile. - [Preview API] Get a secure file - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - :param bool include_download_ticket: If includeDownloadTicket is true and the caller has permissions, a download ticket is included in the response. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - query_parameters = {} - if include_download_ticket is not None: - query_parameters['includeDownloadTicket'] = self._serialize.query('include_download_ticket', include_download_ticket, 'bool') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('SecureFile', response) - - def get_secure_files(self, project, name_pattern=None, include_download_tickets=None, action_filter=None): - """GetSecureFiles. - [Preview API] Get secure files - :param str project: Project ID or project name - :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. - :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. - :param str action_filter: Filter by secure file permissions for View, Manage or Use action. Defaults to View. - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name_pattern is not None: - query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') - if include_download_tickets is not None: - query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[SecureFile]', self._unwrap_collection(response)) - - def get_secure_files_by_ids(self, project, secure_file_ids, include_download_tickets=None): - """GetSecureFilesByIds. - [Preview API] Get secure files - :param str project: Project ID or project name - :param [str] secure_file_ids: A list of secure file Ids - :param bool include_download_tickets: If includeDownloadTickets is true and the caller has permissions, a download ticket for each secure file is included in the response. - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if secure_file_ids is not None: - secure_file_ids = ",".join(secure_file_ids) - query_parameters['secureFileIds'] = self._serialize.query('secure_file_ids', secure_file_ids, 'str') - if include_download_tickets is not None: - query_parameters['includeDownloadTickets'] = self._serialize.query('include_download_tickets', include_download_tickets, 'bool') - response = self._send(http_method='GET', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[SecureFile]', self._unwrap_collection(response)) - - def query_secure_files_by_properties(self, condition, project, name_pattern=None): - """QuerySecureFilesByProperties. - [Preview API] Query secure files using a name pattern and a condition on file properties. - :param str condition: The main condition syntax is described [here](https://go.microsoft.com/fwlink/?linkid=842996). Use the *property('property-name')* function to access the value of the specified property of a secure file. It returns null if the property is not set. E.g. ``` and( eq( property('devices'), '2' ), in( property('provisioning profile type'), 'ad hoc', 'development' ) ) ``` - :param str project: Project ID or project name - :param str name_pattern: Name of the secure file to match. Can include wildcards to match multiple files. - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name_pattern is not None: - query_parameters['namePattern'] = self._serialize.query('name_pattern', name_pattern, 'str') - content = self._serialize.body(condition, 'str') - response = self._send(http_method='POST', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('[SecureFile]', self._unwrap_collection(response)) - - def update_secure_file(self, secure_file, project, secure_file_id): - """UpdateSecureFile. - [Preview API] Update the name or properties of an existing secure file - :param :class:` ` secure_file: The secure file with updated name and/or properties - :param str project: Project ID or project name - :param str secure_file_id: The unique secure file Id - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if secure_file_id is not None: - route_values['secureFileId'] = self._serialize.url('secure_file_id', secure_file_id, 'str') - content = self._serialize.body(secure_file, 'SecureFile') - response = self._send(http_method='PATCH', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('SecureFile', response) - - def update_secure_files(self, secure_files, project): - """UpdateSecureFiles. - [Preview API] Update properties and/or names of a set of secure files. Files are identified by their IDs. Properties provided override the existing one entirely, i.e. do not merge. - :param [SecureFile] secure_files: A list of secure file objects. Only three field must be populated Id, Name, and Properties. The rest of fields in the object are ignored. - :param str project: Project ID or project name - :rtype: [SecureFile] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(secure_files, '[SecureFile]') - response = self._send(http_method='PATCH', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[SecureFile]', self._unwrap_collection(response)) - - def upload_secure_file(self, upload_stream, project, name, **kwargs): - """UploadSecureFile. - [Preview API] Upload a secure file, include the file stream in the request body - :param object upload_stream: Stream to upload - :param str project: Project ID or project name - :param str name: Name of the file to upload - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - content = self._client.stream_upload(upload_stream, callback=callback) - response = self._send(http_method='POST', - location_id='adcfd8bc-b184-43ba-bd84-7c8c6a2ff421', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content, - media_type='application/octet-stream') - return self._deserialize('SecureFile', response) - - def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): - """ExecuteServiceEndpointRequest. - [Preview API] - :param :class:` ` service_endpoint_request: - :param str project: Project ID or project name - :param str endpoint_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if endpoint_id is not None: - query_parameters['endpointId'] = self._serialize.query('endpoint_id', endpoint_id, 'str') - content = self._serialize.body(service_endpoint_request, 'ServiceEndpointRequest') - response = self._send(http_method='POST', - location_id='f956a7de-d766-43af-81b1-e9e349245634', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('ServiceEndpointRequestResult', response) - - def create_service_endpoint(self, endpoint, project): - """CreateServiceEndpoint. - [Preview API] - :param :class:` ` endpoint: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(endpoint, 'ServiceEndpoint') - response = self._send(http_method='POST', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('ServiceEndpoint', response) - - def delete_service_endpoint(self, project, endpoint_id): - """DeleteServiceEndpoint. - [Preview API] - :param str project: Project ID or project name - :param str endpoint_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') - self._send(http_method='DELETE', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.0-preview.2', - route_values=route_values) - - def get_service_endpoint_details(self, project, endpoint_id): - """GetServiceEndpointDetails. - [Preview API] - :param str project: Project ID or project name - :param str endpoint_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') - response = self._send(http_method='GET', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.0-preview.2', - route_values=route_values) - return self._deserialize('ServiceEndpoint', response) - - def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, include_failed=None): - """GetServiceEndpoints. - [Preview API] - :param str project: Project ID or project name - :param str type: - :param [str] auth_schemes: - :param [str] endpoint_ids: - :param bool include_failed: - :rtype: [ServiceEndpoint] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if type is not None: - query_parameters['type'] = self._serialize.query('type', type, 'str') - if auth_schemes is not None: - auth_schemes = ",".join(auth_schemes) - query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') - if endpoint_ids is not None: - endpoint_ids = ",".join(endpoint_ids) - query_parameters['endpointIds'] = self._serialize.query('endpoint_ids', endpoint_ids, 'str') - if include_failed is not None: - query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') - response = self._send(http_method='GET', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) - - def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): - """UpdateServiceEndpoint. - [Preview API] - :param :class:` ` endpoint: - :param str project: Project ID or project name - :param str endpoint_id: - :param str operation: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if endpoint_id is not None: - route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') - query_parameters = {} - if operation is not None: - query_parameters['operation'] = self._serialize.query('operation', operation, 'str') - content = self._serialize.body(endpoint, 'ServiceEndpoint') - response = self._send(http_method='PUT', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('ServiceEndpoint', response) - - def update_service_endpoints(self, endpoints, project): - """UpdateServiceEndpoints. - [Preview API] - :param [ServiceEndpoint] endpoints: - :param str project: Project ID or project name - :rtype: [ServiceEndpoint] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(endpoints, '[ServiceEndpoint]') - response = self._send(http_method='PUT', - location_id='dca61d2f-3444-410a-b5ec-db2fc4efb4c5', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) - - def get_service_endpoint_types(self, type=None, scheme=None): - """GetServiceEndpointTypes. - [Preview API] - :param str type: - :param str scheme: - :rtype: [ServiceEndpointType] - """ - query_parameters = {} - if type is not None: - query_parameters['type'] = self._serialize.query('type', type, 'str') - if scheme is not None: - query_parameters['scheme'] = self._serialize.query('scheme', scheme, 'str') - response = self._send(http_method='GET', - location_id='7c74af83-8605-45c1-a30b-7a05d5d7f8c1', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[ServiceEndpointType]', self._unwrap_collection(response)) - - def create_agent_session(self, session, pool_id): - """CreateAgentSession. - :param :class:` ` session: - :param int pool_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - content = self._serialize.body(session, 'TaskAgentSession') - response = self._send(http_method='POST', - location_id='134e239e-2df3-4794-a6f6-24f1f19ec8dc', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TaskAgentSession', response) - - def delete_agent_session(self, pool_id, session_id): - """DeleteAgentSession. - :param int pool_id: - :param str session_id: - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if session_id is not None: - route_values['sessionId'] = self._serialize.url('session_id', session_id, 'str') - self._send(http_method='DELETE', - location_id='134e239e-2df3-4794-a6f6-24f1f19ec8dc', - version='4.0', - route_values=route_values) - - def add_task_group(self, task_group, project): - """AddTaskGroup. - [Preview API] Create a task group. - :param :class:` ` task_group: Task group object to create. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(task_group, 'TaskGroup') - response = self._send(http_method='POST', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskGroup', response) - - def delete_task_group(self, project, task_group_id, comment=None): - """DeleteTaskGroup. - [Preview API] Delete a task group. - :param str project: Project ID or project name - :param str task_group_id: Id of the task group to be deleted. - :param str comment: Comments to delete. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if task_group_id is not None: - route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') - query_parameters = {} - if comment is not None: - query_parameters['comment'] = self._serialize.query('comment', comment, 'str') - self._send(http_method='DELETE', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - - def get_task_group(self, project, task_group_id, version_spec, expanded=None): - """GetTaskGroup. - [Preview API] - :param str project: Project ID or project name - :param str task_group_id: - :param str version_spec: - :param bool expanded: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if task_group_id is not None: - route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') - query_parameters = {} - if version_spec is not None: - query_parameters['versionSpec'] = self._serialize.query('version_spec', version_spec, 'str') - if expanded is not None: - query_parameters['expanded'] = self._serialize.query('expanded', expanded, 'bool') - response = self._send(http_method='GET', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskGroup', response) - - def get_task_group_revision(self, project, task_group_id, revision, **kwargs): - """GetTaskGroupRevision. - [Preview API] - :param str project: Project ID or project name - :param str task_group_id: - :param int revision: - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if task_group_id is not None: - route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') - query_parameters = {} - if revision is not None: - query_parameters['revision'] = self._serialize.query('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_filter=None, deleted=None): - """GetTaskGroups. - [Preview API] Get a list of task groups. - :param str project: Project ID or project name - :param str task_group_id: Id of the task group. - :param bool expanded: 'true' to recursively expand task groups. Default is 'false'. - :param str task_id_filter: Guid of the taskId to filter. - :param bool deleted: 'true'to include deleted task groups. Default is 'false'. - :rtype: [TaskGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if task_group_id is not None: - route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') - query_parameters = {} - if expanded is not None: - query_parameters['expanded'] = self._serialize.query('expanded', expanded, 'bool') - if task_id_filter is not None: - query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') - if deleted is not None: - query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') - response = self._send(http_method='GET', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) - - def publish_preview_task_group(self, task_group, project, task_group_id, disable_prior_versions=None): - """PublishPreviewTaskGroup. - [Preview API] - :param :class:` ` task_group: - :param str project: Project ID or project name - :param str task_group_id: - :param bool disable_prior_versions: - :rtype: [TaskGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if task_group_id is not None: - route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') - query_parameters = {} - if disable_prior_versions is not None: - query_parameters['disablePriorVersions'] = self._serialize.query('disable_prior_versions', disable_prior_versions, 'bool') - content = self._serialize.body(task_group, 'TaskGroup') - response = self._send(http_method='PATCH', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) - - def publish_task_group(self, task_group_metadata, project, parent_task_group_id): - """PublishTaskGroup. - [Preview API] - :param :class:` ` task_group_metadata: - :param str project: Project ID or project name - :param str parent_task_group_id: - :rtype: [TaskGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if parent_task_group_id is not None: - query_parameters['parentTaskGroupId'] = self._serialize.query('parent_task_group_id', parent_task_group_id, 'str') - content = self._serialize.body(task_group_metadata, 'PublishTaskGroupMetadata') - response = self._send(http_method='PUT', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) - - def undelete_task_group(self, task_group, project): - """UndeleteTaskGroup. - [Preview API] - :param :class:` ` task_group: - :param str project: Project ID or project name - :rtype: [TaskGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(task_group, 'TaskGroup') - response = self._send(http_method='PATCH', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) - - def update_task_group(self, task_group, project): - """UpdateTaskGroup. - [Preview API] Update a task group. - :param :class:` ` task_group: Task group to update. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(task_group, 'TaskGroup') - response = self._send(http_method='PUT', - location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TaskGroup', response) - - def delete_task_definition(self, task_id): - """DeleteTaskDefinition. - :param str task_id: - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - self._send(http_method='DELETE', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.0', - route_values=route_values) - - def get_task_content_zip(self, task_id, version_string, visibility=None, scope_local=None, **kwargs): - """GetTaskContentZip. - :param str task_id: - :param str version_string: - :param [str] visibility: - :param bool scope_local: - :rtype: object - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - if version_string is not None: - route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') - query_parameters = {} - if visibility is not None: - query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') - if scope_local is not None: - query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') - response = self._send(http_method='GET', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.0', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_definition(self, task_id, version_string, visibility=None, scope_local=None): - """GetTaskDefinition. - :param str task_id: - :param str version_string: - :param [str] visibility: - :param bool scope_local: - :rtype: :class:` ` - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - if version_string is not None: - route_values['versionString'] = self._serialize.url('version_string', version_string, 'str') - query_parameters = {} - if visibility is not None: - query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') - if scope_local is not None: - query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') - response = self._send(http_method='GET', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskDefinition', response) - - def get_task_definitions(self, task_id=None, visibility=None, scope_local=None): - """GetTaskDefinitions. - :param str task_id: - :param [str] visibility: - :param bool scope_local: - :rtype: [TaskDefinition] - """ - route_values = {} - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'str') - query_parameters = {} - if visibility is not None: - query_parameters['visibility'] = self._serialize.query('visibility', visibility, '[str]') - if scope_local is not None: - query_parameters['scopeLocal'] = self._serialize.query('scope_local', scope_local, 'bool') - response = self._send(http_method='GET', - location_id='60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskDefinition]', self._unwrap_collection(response)) - - def update_agent_update_state(self, pool_id, agent_id, current_state): - """UpdateAgentUpdateState. - [Preview API] - :param int pool_id: - :param int agent_id: - :param str current_state: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - query_parameters = {} - if current_state is not None: - query_parameters['currentState'] = self._serialize.query('current_state', current_state, 'str') - response = self._send(http_method='PUT', - location_id='8cc1b02b-ae49-4516-b5ad-4f9b29967c30', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TaskAgent', response) - - def update_agent_user_capabilities(self, user_capabilities, pool_id, agent_id): - """UpdateAgentUserCapabilities. - :param {str} user_capabilities: - :param int pool_id: - :param int agent_id: - :rtype: :class:` ` - """ - route_values = {} - if pool_id is not None: - route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int') - if agent_id is not None: - route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int') - content = self._serialize.body(user_capabilities, '{str}') - response = self._send(http_method='PUT', - location_id='30ba3ada-fedf-4da8-bbb5-dacf2f82e176', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TaskAgent', response) - - def add_variable_group(self, group, project): - """AddVariableGroup. - [Preview API] - :param :class:` ` group: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(group, 'VariableGroup') - response = self._send(http_method='POST', - location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('VariableGroup', response) - - def delete_variable_group(self, project, group_id): - """DeleteVariableGroup. - [Preview API] - :param str project: Project ID or project name - :param int group_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') - self._send(http_method='DELETE', - location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.0-preview.1', - route_values=route_values) - - def get_variable_group(self, project, group_id): - """GetVariableGroup. - [Preview API] - :param str project: Project ID or project name - :param int group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') - response = self._send(http_method='GET', - location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('VariableGroup', response) - - def get_variable_groups(self, project, group_name=None, action_filter=None): - """GetVariableGroups. - [Preview API] - :param str project: Project ID or project name - :param str group_name: - :param str action_filter: - :rtype: [VariableGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if group_name is not None: - query_parameters['groupName'] = self._serialize.query('group_name', group_name, 'str') - if action_filter is not None: - query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') - response = self._send(http_method='GET', - location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) - - def get_variable_groups_by_id(self, project, group_ids): - """GetVariableGroupsById. - [Preview API] - :param str project: Project ID or project name - :param [int] group_ids: - :rtype: [VariableGroup] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if group_ids is not None: - group_ids = ",".join(map(str, group_ids)) - query_parameters['groupIds'] = self._serialize.query('group_ids', group_ids, 'str') - response = self._send(http_method='GET', - location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) - - def update_variable_group(self, group, project, group_id): - """UpdateVariableGroup. - [Preview API] - :param :class:` ` group: - :param str project: Project ID or project name - :param int group_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') - content = self._serialize.body(group, 'VariableGroup') - response = self._send(http_method='PUT', - location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('VariableGroup', response) - - def acquire_access_token(self, authentication_request): - """AcquireAccessToken. - [Preview API] - :param :class:` ` authentication_request: - :rtype: :class:` ` - """ - content = self._serialize.body(authentication_request, 'AadOauthTokenRequest') - response = self._send(http_method='POST', - location_id='9c63205e-3a0f-42a0-ad88-095200f13607', - version='4.0-preview.1', - content=content) - return self._deserialize('AadOauthTokenResult', response) - - def create_aad_oAuth_request(self, tenant_id, redirect_uri, prompt_option=None, complete_callback_payload=None): - """CreateAadOAuthRequest. - [Preview API] - :param str tenant_id: - :param str redirect_uri: - :param str prompt_option: - :param str complete_callback_payload: - :rtype: str - """ - query_parameters = {} - if tenant_id is not None: - query_parameters['tenantId'] = self._serialize.query('tenant_id', tenant_id, 'str') - if redirect_uri is not None: - query_parameters['redirectUri'] = self._serialize.query('redirect_uri', redirect_uri, 'str') - if prompt_option is not None: - query_parameters['promptOption'] = self._serialize.query('prompt_option', prompt_option, 'str') - if complete_callback_payload is not None: - query_parameters['completeCallbackPayload'] = self._serialize.query('complete_callback_payload', complete_callback_payload, 'str') - response = self._send(http_method='POST', - location_id='9c63205e-3a0f-42a0-ad88-095200f13607', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('str', response) - - def get_vsts_aad_tenant_id(self): - """GetVstsAadTenantId. - [Preview API] - :rtype: str - """ - response = self._send(http_method='GET', - location_id='9c63205e-3a0f-42a0-ad88-095200f13607', - version='4.0-preview.1') - return self._deserialize('str', response) - diff --git a/azure-devops/azure/devops/v4_0/test/test_client.py b/azure-devops/azure/devops/v4_0/test/test_client.py deleted file mode 100644 index c82fa91b..00000000 --- a/azure-devops/azure/devops/v4_0/test/test_client.py +++ /dev/null @@ -1,2206 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class TestClient(Client): - """Test - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(TestClient, 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 = 'c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e' - - def get_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): - """GetActionResults. - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param str action_path: - :rtype: [TestActionResultModel] - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - if iteration_id is not None: - route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') - if action_path is not None: - route_values['actionPath'] = self._serialize.url('action_path', action_path, 'str') - response = self._send(http_method='GET', - location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', - version='4.0', - route_values=route_values) - return self._deserialize('[TestActionResultModel]', self._unwrap_collection(response)) - - def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): - """CreateTestIterationResultAttachment. - [Preview API] - :param :class:` ` attachment_request_model: - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param str action_path: - :rtype: :class:` ` - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - query_parameters = {} - if iteration_id is not None: - query_parameters['iterationId'] = self._serialize.query('iteration_id', iteration_id, 'int') - if action_path is not None: - query_parameters['actionPath'] = self._serialize.query('action_path', action_path, 'str') - content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') - response = self._send(http_method='POST', - location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('TestAttachmentReference', response) - - def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): - """CreateTestResultAttachment. - [Preview API] - :param :class:` ` attachment_request_model: - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :rtype: :class:` ` - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') - response = self._send(http_method='POST', - location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestAttachmentReference', response) - - def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id, **kwargs): - """GetTestResultAttachmentContent. - [Preview API] Returns a test result attachment - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int attachment_id: - :rtype: object - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - if attachment_id is not None: - route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') - response = self._send(http_method='GET', - location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.0-preview.1', - route_values=route_values, - accept_media_type='application/octet-stream') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_test_result_attachments(self, project, run_id, test_case_result_id): - """GetTestResultAttachments. - [Preview API] Returns attachment references for test result. - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :rtype: [TestAttachment] - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - response = self._send(http_method='GET', - location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) - - def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id, **kwargs): - """GetTestResultAttachmentZip. - [Preview API] Returns a test result attachment - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int attachment_id: - :rtype: object - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - if attachment_id is not None: - route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') - response = self._send(http_method='GET', - location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.0-preview.1', - route_values=route_values, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def create_test_run_attachment(self, attachment_request_model, project, run_id): - """CreateTestRunAttachment. - [Preview API] - :param :class:` ` attachment_request_model: - :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` - """ - 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') - content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') - response = self._send(http_method='POST', - location_id='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestAttachmentReference', response) - - def get_test_run_attachment_content(self, project, run_id, attachment_id, **kwargs): - """GetTestRunAttachmentContent. - [Preview API] Returns a test run attachment - :param str project: Project ID or project name - :param int run_id: - :param int attachment_id: - :rtype: object - """ - 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') - if attachment_id is not None: - route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') - response = self._send(http_method='GET', - location_id='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.0-preview.1', - route_values=route_values, - accept_media_type='application/octet-stream') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_test_run_attachments(self, project, run_id): - """GetTestRunAttachments. - [Preview API] Returns attachment references for test run. - :param str project: Project ID or project name - :param int run_id: - :rtype: [TestAttachment] - """ - 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='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) - - def get_test_run_attachment_zip(self, project, run_id, attachment_id, **kwargs): - """GetTestRunAttachmentZip. - [Preview API] Returns a test run attachment - :param str project: Project ID or project name - :param int run_id: - :param int attachment_id: - :rtype: object - """ - 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') - if attachment_id is not None: - route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') - response = self._send(http_method='GET', - location_id='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.0-preview.1', - route_values=route_values, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): - """GetBugsLinkedToTestResult. - [Preview API] - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :rtype: [WorkItemReference] - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - response = self._send(http_method='GET', - location_id='6de20ca2-67de-4faf-97fa-38c5d585eb00', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) - - def get_clone_information(self, project, clone_operation_id, include_details=None): - """GetCloneInformation. - [Preview API] - :param str project: Project ID or project name - :param int clone_operation_id: - :param bool include_details: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if clone_operation_id is not None: - route_values['cloneOperationId'] = self._serialize.url('clone_operation_id', clone_operation_id, 'int') - query_parameters = {} - if include_details is not None: - query_parameters['$includeDetails'] = self._serialize.query('include_details', include_details, 'bool') - response = self._send(http_method='GET', - location_id='5b9d6320-abed-47a5-a151-cd6dc3798be6', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('CloneOperationInformation', response) - - def clone_test_plan(self, clone_request_body, project, plan_id): - """CloneTestPlan. - [Preview API] - :param :class:` ` clone_request_body: - :param str project: Project ID or project name - :param int plan_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - content = self._serialize.body(clone_request_body, 'TestPlanCloneRequest') - response = self._send(http_method='POST', - location_id='edc3ef4b-8460-4e86-86fa-8e4f5e9be831', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('CloneOperationInformation', response) - - def clone_test_suite(self, clone_request_body, project, plan_id, source_suite_id): - """CloneTestSuite. - [Preview API] - :param :class:` ` clone_request_body: - :param str project: Project ID or project name - :param int plan_id: - :param int source_suite_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if source_suite_id is not None: - route_values['sourceSuiteId'] = self._serialize.url('source_suite_id', source_suite_id, 'int') - content = self._serialize.body(clone_request_body, 'TestSuiteCloneRequest') - response = self._send(http_method='POST', - location_id='751e4ab5-5bf6-4fb5-9d5d-19ef347662dd', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('CloneOperationInformation', response) - - def get_build_code_coverage(self, project, build_id, flags): - """GetBuildCodeCoverage. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param int flags: - :rtype: [BuildCoverage] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if flags is not None: - query_parameters['flags'] = self._serialize.query('flags', flags, 'int') - response = self._send(http_method='GET', - location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[BuildCoverage]', self._unwrap_collection(response)) - - def get_code_coverage_summary(self, project, build_id, delta_build_id=None): - """GetCodeCoverageSummary. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param int delta_build_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if delta_build_id is not None: - query_parameters['deltaBuildId'] = self._serialize.query('delta_build_id', delta_build_id, 'int') - response = self._send(http_method='GET', - location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('CodeCoverageSummary', response) - - def update_code_coverage_summary(self, coverage_data, project, build_id): - """UpdateCodeCoverageSummary. - [Preview API] http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary - :param :class:` ` coverage_data: - :param str project: Project ID or project name - :param int build_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - content = self._serialize.body(coverage_data, 'CodeCoverageData') - self._send(http_method='POST', - location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - - def get_test_run_code_coverage(self, project, run_id, flags): - """GetTestRunCodeCoverage. - [Preview API] - :param str project: Project ID or project name - :param int run_id: - :param int flags: - :rtype: [TestRunCoverage] - """ - 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') - query_parameters = {} - if flags is not None: - query_parameters['flags'] = self._serialize.query('flags', flags, 'int') - response = self._send(http_method='GET', - location_id='9629116f-3b89-4ed8-b358-d4694efda160', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestRunCoverage]', self._unwrap_collection(response)) - - def create_test_configuration(self, test_configuration, project): - """CreateTestConfiguration. - [Preview API] - :param :class:` ` test_configuration: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(test_configuration, 'TestConfiguration') - response = self._send(http_method='POST', - location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('TestConfiguration', response) - - def delete_test_configuration(self, project, test_configuration_id): - """DeleteTestConfiguration. - [Preview API] - :param str project: Project ID or project name - :param int test_configuration_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_configuration_id is not None: - route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') - self._send(http_method='DELETE', - location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.0-preview.2', - route_values=route_values) - - def get_test_configuration_by_id(self, project, test_configuration_id): - """GetTestConfigurationById. - [Preview API] - :param str project: Project ID or project name - :param int test_configuration_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_configuration_id is not None: - route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') - response = self._send(http_method='GET', - location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.0-preview.2', - route_values=route_values) - return self._deserialize('TestConfiguration', response) - - def get_test_configurations(self, project, skip=None, top=None, continuation_token=None, include_all_properties=None): - """GetTestConfigurations. - [Preview API] - :param str project: Project ID or project name - :param int skip: - :param int top: - :param str continuation_token: - :param bool include_all_properties: - :rtype: [TestConfiguration] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if include_all_properties is not None: - query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') - response = self._send(http_method='GET', - location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestConfiguration]', self._unwrap_collection(response)) - - def update_test_configuration(self, test_configuration, project, test_configuration_id): - """UpdateTestConfiguration. - [Preview API] - :param :class:` ` test_configuration: - :param str project: Project ID or project name - :param int test_configuration_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_configuration_id is not None: - route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') - content = self._serialize.body(test_configuration, 'TestConfiguration') - response = self._send(http_method='PATCH', - location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.0-preview.2', - route_values=route_values, - content=content) - return self._deserialize('TestConfiguration', response) - - def add_custom_fields(self, new_fields, project): - """AddCustomFields. - [Preview API] - :param [CustomTestFieldDefinition] new_fields: - :param str project: Project ID or project name - :rtype: [CustomTestFieldDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(new_fields, '[CustomTestFieldDefinition]') - response = self._send(http_method='POST', - location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) - - def query_custom_fields(self, project, scope_filter): - """QueryCustomFields. - [Preview API] - :param str project: Project ID or project name - :param str scope_filter: - :rtype: [CustomTestFieldDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if scope_filter is not None: - query_parameters['scopeFilter'] = self._serialize.query('scope_filter', scope_filter, 'str') - response = self._send(http_method='GET', - location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) - - def query_test_result_history(self, filter, project): - """QueryTestResultHistory. - [Preview API] - :param :class:` ` filter: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(filter, 'ResultsFilter') - response = self._send(http_method='POST', - location_id='234616f5-429c-4e7b-9192-affd76731dfd', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestResultHistory', response) - - def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, include_action_results=None): - """GetTestIteration. - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param bool include_action_results: - :rtype: :class:` ` - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - if iteration_id is not None: - route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') - query_parameters = {} - if include_action_results is not None: - query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') - response = self._send(http_method='GET', - location_id='73eb9074-3446-4c44-8296-2f811950ff8d', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestIterationDetailsModel', response) - - def get_test_iterations(self, project, run_id, test_case_result_id, include_action_results=None): - """GetTestIterations. - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param bool include_action_results: - :rtype: [TestIterationDetailsModel] - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - query_parameters = {} - if include_action_results is not None: - query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') - response = self._send(http_method='GET', - location_id='73eb9074-3446-4c44-8296-2f811950ff8d', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestIterationDetailsModel]', self._unwrap_collection(response)) - - def get_linked_work_items_by_query(self, work_item_query, project): - """GetLinkedWorkItemsByQuery. - [Preview API] - :param :class:` ` work_item_query: - :param str project: Project ID or project name - :rtype: [LinkedWorkItemsQueryResult] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(work_item_query, 'LinkedWorkItemsQuery') - response = self._send(http_method='POST', - location_id='a4dcb25b-9878-49ea-abfd-e440bd9b1dcd', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[LinkedWorkItemsQueryResult]', self._unwrap_collection(response)) - - def get_test_run_logs(self, project, run_id): - """GetTestRunLogs. - [Preview API] - :param str project: Project ID or project name - :param int run_id: - :rtype: [TestMessageLogDetails] - """ - 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='a1e55200-637e-42e9-a7c0-7e5bfdedb1b3', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[TestMessageLogDetails]', self._unwrap_collection(response)) - - def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): - """GetResultParameters. - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param str param_name: - :rtype: [TestResultParameterModel] - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - if iteration_id is not None: - route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') - query_parameters = {} - if param_name is not None: - query_parameters['paramName'] = self._serialize.query('param_name', param_name, 'str') - response = self._send(http_method='GET', - location_id='7c69810d-3354-4af3-844a-180bd25db08a', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestResultParameterModel]', self._unwrap_collection(response)) - - def create_test_plan(self, test_plan, project): - """CreateTestPlan. - :param :class:` ` test_plan: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(test_plan, 'PlanUpdateModel') - response = self._send(http_method='POST', - location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TestPlan', response) - - def delete_test_plan(self, project, plan_id): - """DeleteTestPlan. - :param str project: Project ID or project name - :param int plan_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - self._send(http_method='DELETE', - location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.0', - route_values=route_values) - - def get_plan_by_id(self, project, plan_id): - """GetPlanById. - :param str project: Project ID or project name - :param int plan_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - response = self._send(http_method='GET', - location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.0', - route_values=route_values) - return self._deserialize('TestPlan', response) - - def get_plans(self, project, owner=None, skip=None, top=None, include_plan_details=None, filter_active_plans=None): - """GetPlans. - :param str project: Project ID or project name - :param str owner: - :param int skip: - :param int top: - :param bool include_plan_details: - :param bool filter_active_plans: - :rtype: [TestPlan] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if owner is not None: - query_parameters['owner'] = self._serialize.query('owner', owner, 'str') - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if include_plan_details is not None: - query_parameters['includePlanDetails'] = self._serialize.query('include_plan_details', include_plan_details, 'bool') - if filter_active_plans is not None: - query_parameters['filterActivePlans'] = self._serialize.query('filter_active_plans', filter_active_plans, 'bool') - response = self._send(http_method='GET', - location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestPlan]', self._unwrap_collection(response)) - - def update_test_plan(self, plan_update_model, project, plan_id): - """UpdateTestPlan. - :param :class:` ` plan_update_model: - :param str project: Project ID or project name - :param int plan_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - content = self._serialize.body(plan_update_model, 'PlanUpdateModel') - response = self._send(http_method='PATCH', - location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TestPlan', response) - - def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): - """GetPoint. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param int point_ids: - :param str wit_fields: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - if point_ids is not None: - route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'int') - query_parameters = {} - if wit_fields is not None: - query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') - response = self._send(http_method='GET', - location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestPoint', response) - - def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_id=None, test_case_id=None, test_point_ids=None, include_point_details=None, skip=None, top=None): - """GetPoints. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str wit_fields: - :param str configuration_id: - :param str test_case_id: - :param str test_point_ids: - :param bool include_point_details: - :param int skip: - :param int top: - :rtype: [TestPoint] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - query_parameters = {} - if wit_fields is not None: - query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') - if configuration_id is not None: - query_parameters['configurationId'] = self._serialize.query('configuration_id', configuration_id, 'str') - if test_case_id is not None: - query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'str') - if test_point_ids is not None: - query_parameters['testPointIds'] = self._serialize.query('test_point_ids', test_point_ids, 'str') - if include_point_details is not None: - query_parameters['includePointDetails'] = self._serialize.query('include_point_details', include_point_details, 'bool') - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestPoint]', self._unwrap_collection(response)) - - def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): - """UpdateTestPoints. - :param :class:` ` point_update_model: - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str point_ids: - :rtype: [TestPoint] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - if point_ids is not None: - route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'str') - content = self._serialize.body(point_update_model, 'PointUpdateModel') - response = self._send(http_method='PATCH', - location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('[TestPoint]', self._unwrap_collection(response)) - - def get_points_by_query(self, query, project, skip=None, top=None): - """GetPointsByQuery. - [Preview API] - :param :class:` ` query: - :param str project: Project ID or project name - :param int skip: - :param int top: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - content = self._serialize.body(query, 'TestPointsQuery') - response = self._send(http_method='POST', - location_id='b4264fd0-a5d1-43e2-82a5-b9c46b7da9ce', - version='4.0-preview.2', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('TestPointsQuery', response) - - def get_test_result_details_for_build(self, project, build_id, publish_context=None, group_by=None, filter=None, orderby=None): - """GetTestResultDetailsForBuild. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param str publish_context: - :param str group_by: - :param str filter: - :param str orderby: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if group_by is not None: - query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') - response = self._send(http_method='GET', - location_id='efb387b0-10d5-42e7-be40-95e06ee9430f', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultsDetails', response) - - def get_test_result_details_for_release(self, project, release_id, release_env_id, publish_context=None, group_by=None, filter=None, orderby=None): - """GetTestResultDetailsForRelease. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int release_env_id: - :param str publish_context: - :param str group_by: - :param str filter: - :param str orderby: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if release_id is not None: - query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') - if release_env_id is not None: - query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if group_by is not None: - query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') - response = self._send(http_method='GET', - location_id='b834ec7e-35bb-450f-a3c8-802e70ca40dd', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultsDetails', response) - - def publish_test_result_document(self, document, project, run_id): - """PublishTestResultDocument. - [Preview API] - :param :class:` ` document: - :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` - """ - 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') - content = self._serialize.body(document, 'TestResultDocument') - response = self._send(http_method='POST', - location_id='370ca04b-8eec-4ca8-8ba3-d24dca228791', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestResultDocument', response) - - def get_result_retention_settings(self, project): - """GetResultRetentionSettings. - [Preview API] - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('ResultRetentionSettings', response) - - def update_result_retention_settings(self, retention_settings, project): - """UpdateResultRetentionSettings. - [Preview API] - :param :class:` ` retention_settings: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(retention_settings, 'ResultRetentionSettings') - response = self._send(http_method='PATCH', - location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ResultRetentionSettings', response) - - def add_test_results_to_test_run(self, results, project, run_id): - """AddTestResultsToTestRun. - :param [TestCaseResult] results: - :param str project: Project ID or project name - :param int run_id: - :rtype: [TestCaseResult] - """ - 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') - content = self._serialize.body(results, '[TestCaseResult]') - response = self._send(http_method='POST', - location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) - - def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): - """GetTestResultById. - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param str details_to_include: - :rtype: :class:` ` - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - query_parameters = {} - if details_to_include is not None: - query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') - response = self._send(http_method='GET', - location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestCaseResult', response) - - def get_test_results(self, project, run_id, details_to_include=None, skip=None, top=None): - """GetTestResults. - :param str project: Project ID or project name - :param int run_id: - :param str details_to_include: - :param int skip: - :param int top: - :rtype: [TestCaseResult] - """ - 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') - query_parameters = {} - if details_to_include is not None: - query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) - - def update_test_results(self, results, project, run_id): - """UpdateTestResults. - :param [TestCaseResult] results: - :param str project: Project ID or project name - :param int run_id: - :rtype: [TestCaseResult] - """ - 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') - content = self._serialize.body(results, '[TestCaseResult]') - response = self._send(http_method='PATCH', - location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) - - def get_test_results_by_query(self, query, project): - """GetTestResultsByQuery. - [Preview API] - :param :class:` ` query: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(query, 'TestResultsQuery') - response = self._send(http_method='POST', - location_id='6711da49-8e6f-4d35-9f73-cef7a3c81a5b', - version='4.0-preview.4', - route_values=route_values, - content=content) - return self._deserialize('TestResultsQuery', response) - - def query_test_results_report_for_build(self, project, build_id, publish_context=None, include_failure_details=None, build_to_compare=None): - """QueryTestResultsReportForBuild. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param str publish_context: - :param bool include_failure_details: - :param :class:` ` build_to_compare: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if include_failure_details is not None: - query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') - if build_to_compare is not None: - if build_to_compare.id is not None: - query_parameters['buildToCompare.id'] = build_to_compare.id - if build_to_compare.definition_id is not None: - query_parameters['buildToCompare.definitionId'] = build_to_compare.definition_id - if build_to_compare.number is not None: - query_parameters['buildToCompare.number'] = build_to_compare.number - if build_to_compare.uri is not None: - query_parameters['buildToCompare.uri'] = build_to_compare.uri - if build_to_compare.build_system is not None: - query_parameters['buildToCompare.buildSystem'] = build_to_compare.build_system - if build_to_compare.branch_name is not None: - query_parameters['buildToCompare.branchName'] = build_to_compare.branch_name - if build_to_compare.repository_id is not None: - query_parameters['buildToCompare.repositoryId'] = build_to_compare.repository_id - response = self._send(http_method='GET', - location_id='000ef77b-fea2-498d-a10d-ad1a037f559f', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultSummary', response) - - def query_test_results_report_for_release(self, project, release_id, release_env_id, publish_context=None, include_failure_details=None, release_to_compare=None): - """QueryTestResultsReportForRelease. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int release_env_id: - :param str publish_context: - :param bool include_failure_details: - :param :class:` ` release_to_compare: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if release_id is not None: - query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') - if release_env_id is not None: - query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if include_failure_details is not None: - query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') - if release_to_compare is not None: - if release_to_compare.id is not None: - query_parameters['releaseToCompare.id'] = release_to_compare.id - if release_to_compare.name is not None: - query_parameters['releaseToCompare.name'] = release_to_compare.name - if release_to_compare.environment_id is not None: - query_parameters['releaseToCompare.environmentId'] = release_to_compare.environment_id - if release_to_compare.environment_name is not None: - query_parameters['releaseToCompare.environmentName'] = release_to_compare.environment_name - if release_to_compare.definition_id is not None: - query_parameters['releaseToCompare.definitionId'] = release_to_compare.definition_id - if release_to_compare.environment_definition_id is not None: - query_parameters['releaseToCompare.environmentDefinitionId'] = release_to_compare.environment_definition_id - if release_to_compare.environment_definition_name is not None: - query_parameters['releaseToCompare.environmentDefinitionName'] = release_to_compare.environment_definition_name - response = self._send(http_method='GET', - location_id='85765790-ac68-494e-b268-af36c3929744', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultSummary', response) - - def query_test_results_summary_for_releases(self, releases, project): - """QueryTestResultsSummaryForReleases. - [Preview API] - :param [ReleaseReference] releases: - :param str project: Project ID or project name - :rtype: [TestResultSummary] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(releases, '[ReleaseReference]') - response = self._send(http_method='POST', - location_id='85765790-ac68-494e-b268-af36c3929744', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[TestResultSummary]', self._unwrap_collection(response)) - - def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): - """QueryTestSummaryByRequirement. - [Preview API] - :param :class:` ` results_context: - :param str project: Project ID or project name - :param [int] work_item_ids: - :rtype: [TestSummaryForWorkItem] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if work_item_ids is not None: - work_item_ids = ",".join(map(str, work_item_ids)) - query_parameters['workItemIds'] = self._serialize.query('work_item_ids', work_item_ids, 'str') - content = self._serialize.body(results_context, 'TestResultsContext') - response = self._send(http_method='POST', - location_id='cd08294e-308d-4460-a46e-4cfdefba0b4b', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('[TestSummaryForWorkItem]', self._unwrap_collection(response)) - - def query_result_trend_for_build(self, filter, project): - """QueryResultTrendForBuild. - [Preview API] - :param :class:` ` filter: - :param str project: Project ID or project name - :rtype: [AggregatedDataForResultTrend] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(filter, 'TestResultTrendFilter') - response = self._send(http_method='POST', - location_id='fbc82a85-0786-4442-88bb-eb0fda6b01b0', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) - - def query_result_trend_for_release(self, filter, project): - """QueryResultTrendForRelease. - [Preview API] - :param :class:` ` filter: - :param str project: Project ID or project name - :rtype: [AggregatedDataForResultTrend] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(filter, 'TestResultTrendFilter') - response = self._send(http_method='POST', - location_id='dd178e93-d8dd-4887-9635-d6b9560b7b6e', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) - - def get_test_run_statistics(self, project, run_id): - """GetTestRunStatistics. - :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` - """ - 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='0a42c424-d764-4a16-a2d5-5c85f87d0ae8', - version='4.0', - route_values=route_values) - return self._deserialize('TestRunStatistic', response) - - def create_test_run(self, test_run, project): - """CreateTestRun. - :param :class:` ` test_run: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(test_run, 'RunCreateModel') - response = self._send(http_method='POST', - location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TestRun', response) - - def delete_test_run(self, project, run_id): - """DeleteTestRun. - :param str project: Project ID or project name - :param int run_id: - """ - 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') - self._send(http_method='DELETE', - location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.0', - route_values=route_values) - - def get_test_run_by_id(self, project, run_id): - """GetTestRunById. - :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` - """ - 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='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.0', - route_values=route_values) - return self._deserialize('TestRun', response) - - def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, plan_id=None, include_run_details=None, automated=None, skip=None, top=None): - """GetTestRuns. - :param str project: Project ID or project name - :param str build_uri: - :param str owner: - :param str tmi_run_id: - :param int plan_id: - :param bool include_run_details: - :param bool automated: - :param int skip: - :param int top: - :rtype: [TestRun] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_uri is not None: - query_parameters['buildUri'] = self._serialize.query('build_uri', build_uri, 'str') - if owner is not None: - query_parameters['owner'] = self._serialize.query('owner', owner, 'str') - if tmi_run_id is not None: - query_parameters['tmiRunId'] = self._serialize.query('tmi_run_id', tmi_run_id, 'str') - if plan_id is not None: - query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'int') - if include_run_details is not None: - query_parameters['includeRunDetails'] = self._serialize.query('include_run_details', include_run_details, 'bool') - if automated is not None: - query_parameters['automated'] = self._serialize.query('automated', automated, 'bool') - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestRun]', self._unwrap_collection(response)) - - def query_test_runs(self, project, state, min_completed_date=None, max_completed_date=None, plan_id=None, is_automated=None, publish_context=None, build_id=None, build_def_id=None, branch_name=None, release_id=None, release_def_id=None, release_env_id=None, release_env_def_id=None, run_title=None, skip=None, top=None): - """QueryTestRuns. - :param str project: Project ID or project name - :param str state: - :param datetime min_completed_date: - :param datetime max_completed_date: - :param int plan_id: - :param bool is_automated: - :param str publish_context: - :param int build_id: - :param int build_def_id: - :param str branch_name: - :param int release_id: - :param int release_def_id: - :param int release_env_id: - :param int release_env_def_id: - :param str run_title: - :param int skip: - :param int top: - :rtype: [TestRun] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if state is not None: - query_parameters['state'] = self._serialize.query('state', state, 'str') - if min_completed_date is not None: - query_parameters['minCompletedDate'] = self._serialize.query('min_completed_date', min_completed_date, 'iso-8601') - if max_completed_date is not None: - query_parameters['maxCompletedDate'] = self._serialize.query('max_completed_date', max_completed_date, 'iso-8601') - if plan_id is not None: - query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'int') - if is_automated is not None: - query_parameters['IsAutomated'] = self._serialize.query('is_automated', is_automated, 'bool') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if build_def_id is not None: - query_parameters['buildDefId'] = self._serialize.query('build_def_id', build_def_id, 'int') - if branch_name is not None: - query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') - if release_id is not None: - query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') - if release_def_id is not None: - query_parameters['releaseDefId'] = self._serialize.query('release_def_id', release_def_id, 'int') - if release_env_id is not None: - query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') - if release_env_def_id is not None: - query_parameters['releaseEnvDefId'] = self._serialize.query('release_env_def_id', release_env_def_id, 'int') - if run_title is not None: - query_parameters['runTitle'] = self._serialize.query('run_title', run_title, 'str') - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestRun]', self._unwrap_collection(response)) - - def update_test_run(self, run_update_model, project, run_id): - """UpdateTestRun. - :param :class:` ` run_update_model: - :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` - """ - 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') - content = self._serialize.body(run_update_model, 'RunUpdateModel') - response = self._send(http_method='PATCH', - location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TestRun', response) - - def create_test_session(self, test_session, team_context): - """CreateTestSession. - [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` - """ - project = None - team = None - if team_context is not None: - if team_context.project_id: - project = team_context.project_id - else: - project = team_context.project - if team_context.team_id: - team = team_context.team_id - else: - team = team_context.team - - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'string') - if team is not None: - route_values['team'] = self._serialize.url('team', team, 'string') - content = self._serialize.body(test_session, 'TestSession') - response = self._send(http_method='POST', - location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestSession', response) - - def get_test_sessions(self, team_context, period=None, all_sessions=None, include_all_properties=None, source=None, include_only_completed_sessions=None): - """GetTestSessions. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :param int period: - :param bool all_sessions: - :param bool include_all_properties: - :param str source: - :param bool include_only_completed_sessions: - :rtype: [TestSession] - """ - project = None - team = None - if team_context is not None: - if team_context.project_id: - project = team_context.project_id - else: - project = team_context.project - if team_context.team_id: - team = team_context.team_id - else: - team = team_context.team - - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'string') - if team is not None: - route_values['team'] = self._serialize.url('team', team, 'string') - query_parameters = {} - if period is not None: - query_parameters['period'] = self._serialize.query('period', period, 'int') - if all_sessions is not None: - query_parameters['allSessions'] = self._serialize.query('all_sessions', all_sessions, 'bool') - if include_all_properties is not None: - query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') - if source is not None: - query_parameters['source'] = self._serialize.query('source', source, 'str') - if include_only_completed_sessions is not None: - query_parameters['includeOnlyCompletedSessions'] = self._serialize.query('include_only_completed_sessions', include_only_completed_sessions, 'bool') - response = self._send(http_method='GET', - location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestSession]', self._unwrap_collection(response)) - - def update_test_session(self, test_session, team_context): - """UpdateTestSession. - [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` - """ - project = None - team = None - if team_context is not None: - if team_context.project_id: - project = team_context.project_id - else: - project = team_context.project - if team_context.team_id: - team = team_context.team_id - else: - team = team_context.team - - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'string') - if team is not None: - route_values['team'] = self._serialize.url('team', team, 'string') - content = self._serialize.body(test_session, 'TestSession') - response = self._send(http_method='PATCH', - location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestSession', response) - - def delete_shared_parameter(self, project, shared_parameter_id): - """DeleteSharedParameter. - [Preview API] - :param str project: Project ID or project name - :param int shared_parameter_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if shared_parameter_id is not None: - route_values['sharedParameterId'] = self._serialize.url('shared_parameter_id', shared_parameter_id, 'int') - self._send(http_method='DELETE', - location_id='8300eeca-0f8c-4eff-a089-d2dda409c41f', - version='4.0-preview.1', - route_values=route_values) - - def delete_shared_step(self, project, shared_step_id): - """DeleteSharedStep. - [Preview API] - :param str project: Project ID or project name - :param int shared_step_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if shared_step_id is not None: - route_values['sharedStepId'] = self._serialize.url('shared_step_id', shared_step_id, 'int') - self._send(http_method='DELETE', - location_id='fabb3cc9-e3f8-40b7-8b62-24cc4b73fccf', - version='4.0-preview.1', - route_values=route_values) - - def get_suite_entries(self, project, suite_id): - """GetSuiteEntries. - [Preview API] - :param str project: Project ID or project name - :param int suite_id: - :rtype: [SuiteEntry] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - response = self._send(http_method='GET', - location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) - - def reorder_suite_entries(self, suite_entries, project, suite_id): - """ReorderSuiteEntries. - [Preview API] - :param [SuiteEntryUpdateModel] suite_entries: - :param str project: Project ID or project name - :param int suite_id: - :rtype: [SuiteEntry] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - content = self._serialize.body(suite_entries, '[SuiteEntryUpdateModel]') - response = self._send(http_method='PATCH', - location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) - - def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): - """AddTestCasesToSuite. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str test_case_ids: - :rtype: [SuiteTestCase] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - if test_case_ids is not None: - route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') - route_values['action'] = 'TestCases' - response = self._send(http_method='POST', - location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.0', - route_values=route_values) - return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) - - def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): - """GetTestCaseById. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param int test_case_ids: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - if test_case_ids is not None: - route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') - route_values['action'] = 'TestCases' - response = self._send(http_method='GET', - location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.0', - route_values=route_values) - return self._deserialize('SuiteTestCase', response) - - def get_test_cases(self, project, plan_id, suite_id): - """GetTestCases. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :rtype: [SuiteTestCase] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - route_values['action'] = 'TestCases' - response = self._send(http_method='GET', - location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.0', - route_values=route_values) - return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) - - def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): - """RemoveTestCasesFromSuiteUrl. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str test_case_ids: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - if test_case_ids is not None: - route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') - route_values['action'] = 'TestCases' - self._send(http_method='DELETE', - location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.0', - route_values=route_values) - - def create_test_suite(self, test_suite, project, plan_id, suite_id): - """CreateTestSuite. - :param :class:` ` test_suite: - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :rtype: [TestSuite] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - content = self._serialize.body(test_suite, 'SuiteCreateModel') - response = self._send(http_method='POST', - location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('[TestSuite]', self._unwrap_collection(response)) - - def delete_test_suite(self, project, plan_id, suite_id): - """DeleteTestSuite. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - self._send(http_method='DELETE', - location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.0', - route_values=route_values) - - def get_test_suite_by_id(self, project, plan_id, suite_id, include_child_suites=None): - """GetTestSuiteById. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param bool include_child_suites: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - query_parameters = {} - if include_child_suites is not None: - query_parameters['includeChildSuites'] = self._serialize.query('include_child_suites', include_child_suites, 'bool') - response = self._send(http_method='GET', - location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestSuite', response) - - def get_test_suites_for_plan(self, project, plan_id, include_suites=None, skip=None, top=None, as_tree_view=None): - """GetTestSuitesForPlan. - :param str project: Project ID or project name - :param int plan_id: - :param bool include_suites: - :param int skip: - :param int top: - :param bool as_tree_view: - :rtype: [TestSuite] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - query_parameters = {} - if include_suites is not None: - query_parameters['includeSuites'] = self._serialize.query('include_suites', include_suites, 'bool') - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if as_tree_view is not None: - query_parameters['$asTreeView'] = self._serialize.query('as_tree_view', as_tree_view, 'bool') - response = self._send(http_method='GET', - location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.0', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestSuite]', self._unwrap_collection(response)) - - def update_test_suite(self, suite_update_model, project, plan_id, suite_id): - """UpdateTestSuite. - :param :class:` ` suite_update_model: - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') - if suite_id is not None: - route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') - content = self._serialize.body(suite_update_model, 'SuiteUpdateModel') - response = self._send(http_method='PATCH', - location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('TestSuite', response) - - def get_suites_by_test_case_id(self, test_case_id): - """GetSuitesByTestCaseId. - :param int test_case_id: - :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='09a6167b-e969-4775-9247-b94cf3819caf', - version='4.0', - query_parameters=query_parameters) - return self._deserialize('[TestSuite]', self._unwrap_collection(response)) - - def delete_test_case(self, project, test_case_id): - """DeleteTestCase. - [Preview API] - :param str project: Project ID or project name - :param int test_case_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_case_id is not None: - route_values['testCaseId'] = self._serialize.url('test_case_id', test_case_id, 'int') - self._send(http_method='DELETE', - location_id='4d472e0f-e32c-4ef8-adf4-a4078772889c', - version='4.0-preview.1', - route_values=route_values) - - def create_test_settings(self, test_settings, project): - """CreateTestSettings. - :param :class:` ` test_settings: - :param str project: Project ID or project name - :rtype: int - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(test_settings, 'TestSettings') - response = self._send(http_method='POST', - location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('int', response) - - def delete_test_settings(self, project, test_settings_id): - """DeleteTestSettings. - :param str project: Project ID or project name - :param int test_settings_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_settings_id is not None: - route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') - self._send(http_method='DELETE', - location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.0', - route_values=route_values) - - def get_test_settings_by_id(self, project, test_settings_id): - """GetTestSettingsById. - :param str project: Project ID or project name - :param int test_settings_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_settings_id is not None: - route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') - response = self._send(http_method='GET', - location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.0', - route_values=route_values) - return self._deserialize('TestSettings', response) - - def create_test_variable(self, test_variable, project): - """CreateTestVariable. - [Preview API] - :param :class:` ` test_variable: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(test_variable, 'TestVariable') - response = self._send(http_method='POST', - location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestVariable', response) - - def delete_test_variable(self, project, test_variable_id): - """DeleteTestVariable. - [Preview API] - :param str project: Project ID or project name - :param int test_variable_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_variable_id is not None: - route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') - self._send(http_method='DELETE', - location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.0-preview.1', - route_values=route_values) - - def get_test_variable_by_id(self, project, test_variable_id): - """GetTestVariableById. - [Preview API] - :param str project: Project ID or project name - :param int test_variable_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_variable_id is not None: - route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') - response = self._send(http_method='GET', - location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('TestVariable', response) - - def get_test_variables(self, project, skip=None, top=None): - """GetTestVariables. - [Preview API] - :param str project: Project ID or project name - :param int skip: - :param int top: - :rtype: [TestVariable] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if skip is not None: - query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - response = self._send(http_method='GET', - location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TestVariable]', self._unwrap_collection(response)) - - def update_test_variable(self, test_variable, project, test_variable_id): - """UpdateTestVariable. - [Preview API] - :param :class:` ` test_variable: - :param str project: Project ID or project name - :param int test_variable_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_variable_id is not None: - route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') - content = self._serialize.body(test_variable, 'TestVariable') - response = self._send(http_method='PATCH', - location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestVariable', response) - - def add_work_item_to_test_links(self, work_item_to_test_links, project): - """AddWorkItemToTestLinks. - [Preview API] - :param :class:` ` work_item_to_test_links: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(work_item_to_test_links, 'WorkItemToTestLinks') - response = self._send(http_method='POST', - location_id='371b1655-ce05-412e-a113-64cc77bb78d2', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemToTestLinks', response) - - def delete_test_method_to_work_item_link(self, project, test_name, work_item_id): - """DeleteTestMethodToWorkItemLink. - [Preview API] - :param str project: Project ID or project name - :param str test_name: - :param int work_item_id: - :rtype: bool - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if test_name is not None: - query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') - if work_item_id is not None: - query_parameters['workItemId'] = self._serialize.query('work_item_id', work_item_id, 'int') - response = self._send(http_method='DELETE', - location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('bool', response) - - def query_test_method_linked_work_items(self, project, test_name): - """QueryTestMethodLinkedWorkItems. - [Preview API] - :param str project: Project ID or project name - :param str test_name: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if test_name is not None: - query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') - response = self._send(http_method='POST', - location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestToWorkItemLinks', response) - - def query_test_result_work_items(self, project, work_item_category, automated_test_name=None, test_case_id=None, max_complete_date=None, days=None, work_item_count=None): - """QueryTestResultWorkItems. - [Preview API] - :param str project: Project ID or project name - :param str work_item_category: - :param str automated_test_name: - :param int test_case_id: - :param datetime max_complete_date: - :param int days: - :param int work_item_count: - :rtype: [WorkItemReference] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if work_item_category is not None: - query_parameters['workItemCategory'] = self._serialize.query('work_item_category', work_item_category, 'str') - if automated_test_name is not None: - query_parameters['automatedTestName'] = self._serialize.query('automated_test_name', automated_test_name, 'str') - if test_case_id is not None: - query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int') - if max_complete_date is not None: - query_parameters['maxCompleteDate'] = self._serialize.query('max_complete_date', max_complete_date, 'iso-8601') - if days is not None: - query_parameters['days'] = self._serialize.query('days', days, 'int') - if work_item_count is not None: - query_parameters['$workItemCount'] = self._serialize.query('work_item_count', work_item_count, 'int') - response = self._send(http_method='GET', - location_id='926ff5dc-137f-45f0-bd51-9412fa9810ce', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_0/wiki/models.py b/azure-devops/azure/devops/v4_0/wiki/models.py deleted file mode 100644 index 6b0ec124..00000000 --- a/azure-devops/azure/devops/v4_0/wiki/models.py +++ /dev/null @@ -1,801 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Change(Model): - """Change. - - :param change_type: - :type change_type: object - :param item: - :type item: :class:`GitItem ` - :param new_content: - :type new_content: :class:`ItemContent ` - :param source_server_item: - :type source_server_item: str - :param url: - :type url: str - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'item': {'key': 'item', 'type': 'GitItem'}, - 'new_content': {'key': 'newContent', 'type': 'ItemContent'}, - 'source_server_item': {'key': 'sourceServerItem', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None): - super(Change, self).__init__() - self.change_type = change_type - self.item = item - self.new_content = new_content - self.source_server_item = source_server_item - self.url = url - - -class FileContentMetadata(Model): - """FileContentMetadata. - - :param content_type: - :type content_type: str - :param encoding: - :type encoding: int - :param extension: - :type extension: str - :param file_name: - :type file_name: str - :param is_binary: - :type is_binary: bool - :param is_image: - :type is_image: bool - :param vs_link: - :type vs_link: str - """ - - _attribute_map = { - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'encoding': {'key': 'encoding', 'type': 'int'}, - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'is_binary': {'key': 'isBinary', 'type': 'bool'}, - 'is_image': {'key': 'isImage', 'type': 'bool'}, - 'vs_link': {'key': 'vsLink', 'type': 'str'} - } - - def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None): - super(FileContentMetadata, self).__init__() - self.content_type = content_type - self.encoding = encoding - self.extension = extension - self.file_name = file_name - self.is_binary = is_binary - self.is_image = is_image - self.vs_link = vs_link - - -class GitCommitRef(Model): - """GitCommitRef. - - :param _links: - :type _links: ReferenceLinks - :param author: - :type author: :class:`GitUserDate ` - :param change_counts: - :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param comment: - :type comment: str - :param comment_truncated: - :type comment_truncated: bool - :param commit_id: - :type commit_id: str - :param committer: - :type committer: :class:`GitUserDate ` - :param parents: - :type parents: list of str - :param remote_url: - :type remote_url: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: - :type url: str - :param work_items: - :type work_items: list of ResourceRef - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'author': {'key': 'author', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, - 'changes': {'key': 'changes', 'type': '[object]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'parents': {'key': 'parents', 'type': '[str]'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} - } - - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): - super(GitCommitRef, self).__init__() - self._links = _links - self.author = author - self.change_counts = change_counts - self.changes = changes - self.comment = comment - self.comment_truncated = comment_truncated - self.commit_id = commit_id - self.committer = committer - self.parents = parents - self.remote_url = remote_url - self.statuses = statuses - self.url = url - self.work_items = work_items - - -class GitPushRef(Model): - """GitPushRef. - - :param _links: - :type _links: ReferenceLinks - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: IdentityRef - :param push_id: - :type push_id: int - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None): - super(GitPushRef, self).__init__() - self._links = _links - self.date = date - self.push_correlation_id = push_correlation_id - self.pushed_by = pushed_by - self.push_id = push_id - self.url = url - - -class GitRefUpdate(Model): - """GitRefUpdate. - - :param is_locked: - :type is_locked: bool - :param name: - :type name: str - :param new_object_id: - :type new_object_id: str - :param old_object_id: - :type old_object_id: str - :param repository_id: - :type repository_id: str - """ - - _attribute_map = { - 'is_locked': {'key': 'isLocked', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'new_object_id': {'key': 'newObjectId', 'type': 'str'}, - 'old_object_id': {'key': 'oldObjectId', 'type': 'str'}, - 'repository_id': {'key': 'repositoryId', 'type': 'str'} - } - - def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None): - super(GitRefUpdate, self).__init__() - self.is_locked = is_locked - self.name = name - self.new_object_id = new_object_id - self.old_object_id = old_object_id - self.repository_id = repository_id - - -class GitRepository(Model): - """GitRepository. - - :param _links: - :type _links: ReferenceLinks - :param default_branch: - :type default_branch: str - :param id: - :type id: str - :param is_fork: True if the repository was created as a fork - :type is_fork: bool - :param name: - :type name: str - :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` - :param project: - :type project: TeamProjectReference - :param remote_url: - :type remote_url: str - :param url: - :type url: str - :param valid_remote_urls: - :type valid_remote_urls: list of str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_fork': {'key': 'isFork', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} - } - - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): - super(GitRepository, self).__init__() - self._links = _links - self.default_branch = default_branch - self.id = id - self.is_fork = is_fork - self.name = name - self.parent_repository = parent_repository - self.project = project - self.remote_url = remote_url - self.url = url - self.valid_remote_urls = valid_remote_urls - - -class GitRepositoryRef(Model): - """GitRepositoryRef. - - :param collection: Team Project Collection where this Fork resides - :type collection: TeamProjectCollectionReference - :param id: - :type id: str - :param name: - :type name: str - :param project: - :type project: TeamProjectReference - :param remote_url: - :type remote_url: str - :param url: - :type url: str - """ - - _attribute_map = { - 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'TeamProjectReference'}, - 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): - super(GitRepositoryRef, self).__init__() - self.collection = collection - self.id = id - self.name = name - self.project = project - self.remote_url = remote_url - self.url = url - - -class GitStatus(Model): - """GitStatus. - - :param _links: Reference links. - :type _links: ReferenceLinks - :param context: Context of the status. - :type context: :class:`GitStatusContext ` - :param created_by: Identity that created the status. - :type created_by: IdentityRef - :param creation_date: Creation date and time of the status. - :type creation_date: datetime - :param description: Status description. Typically describes current state of the status. - :type description: str - :param id: Status identifier. - :type id: int - :param state: State of the status. - :type state: object - :param target_url: URL with status details. - :type target_url: str - :param updated_date: Last update date and time of the status. - :type updated_date: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'context': {'key': 'context', 'type': 'GitStatusContext'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'object'}, - 'target_url': {'key': 'targetUrl', 'type': 'str'}, - 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None): - super(GitStatus, self).__init__() - self._links = _links - self.context = context - self.created_by = created_by - self.creation_date = creation_date - self.description = description - self.id = id - self.state = state - self.target_url = target_url - self.updated_date = updated_date - - -class GitStatusContext(Model): - """GitStatusContext. - - :param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty. - :type genre: str - :param name: Name identifier of the status, cannot be null or empty. - :type name: str - """ - - _attribute_map = { - 'genre': {'key': 'genre', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, genre=None, name=None): - super(GitStatusContext, self).__init__() - self.genre = genre - self.name = name - - -class GitTemplate(Model): - """GitTemplate. - - :param name: Name of the Template - :type name: str - :param type: Type of the Template - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, name=None, type=None): - super(GitTemplate, self).__init__() - self.name = name - self.type = type - - -class GitUserDate(Model): - """GitUserDate. - - :param date: - :type date: datetime - :param email: - :type email: str - :param name: - :type name: str - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'email': {'key': 'email', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, date=None, email=None, name=None): - super(GitUserDate, self).__init__() - self.date = date - self.email = email - self.name = name - - -class GitVersionDescriptor(Model): - """GitVersionDescriptor. - - :param version: Version string identifier (name of tag/branch, SHA1 of commit) - :type version: str - :param version_options: Version options - Specify additional modifiers to version (e.g Previous) - :type version_options: object - :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted - :type version_type: object - """ - - _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'version_options': {'key': 'versionOptions', 'type': 'object'}, - 'version_type': {'key': 'versionType', 'type': 'object'} - } - - def __init__(self, version=None, version_options=None, version_type=None): - super(GitVersionDescriptor, self).__init__() - self.version = version - self.version_options = version_options - self.version_type = version_type - - -class ItemContent(Model): - """ItemContent. - - :param content: - :type content: str - :param content_type: - :type content_type: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'object'} - } - - def __init__(self, content=None, content_type=None): - super(ItemContent, self).__init__() - self.content = content - self.content_type = content_type - - -class ItemModel(Model): - """ItemModel. - - :param _links: - :type _links: ReferenceLinks - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): - super(ItemModel, self).__init__() - self._links = _links - self.content_metadata = content_metadata - self.is_folder = is_folder - self.is_sym_link = is_sym_link - self.path = path - self.url = url - - -class WikiAttachment(Model): - """WikiAttachment. - - :param name: Name of the wiki attachment file. - :type name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, name=None): - super(WikiAttachment, self).__init__() - self.name = name - - -class WikiAttachmentResponse(Model): - """WikiAttachmentResponse. - - :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` - :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the head commit of wiki repository after the corresponding attachments API call. - :type eTag: list of str - """ - - _attribute_map = { - 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, - 'eTag': {'key': 'eTag', 'type': '[str]'} - } - - def __init__(self, attachment=None, eTag=None): - super(WikiAttachmentResponse, self).__init__() - self.attachment = attachment - self.eTag = eTag - - -class WikiChange(Model): - """WikiChange. - - :param change_type: ChangeType associated with the item in this change. - :type change_type: object - :param content: New content of the item. - :type content: str - :param item: Item that is subject to this change. - :type item: object - """ - - _attribute_map = { - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'content': {'key': 'content', 'type': 'str'}, - 'item': {'key': 'item', 'type': 'object'} - } - - def __init__(self, change_type=None, content=None, item=None): - super(WikiChange, self).__init__() - self.change_type = change_type - self.content = content - self.item = item - - -class WikiPage(Model): - """WikiPage. - - :param depth: The depth in terms of level in the hierarchy. - :type depth: int - :param git_item_path: The path of the item corresponding to the wiki page stored in the backing Git repository. This is populated only in the response of the wiki pages GET API. - :type git_item_path: str - :param is_non_conformant: Flag to denote if a page is non-conforming, i.e. 1) if the name doesn't match our norms. 2) if the page does not have a valid entry in the appropriate order file. - :type is_non_conformant: bool - :param is_parent_page: Returns true if this page has child pages under its path. - :type is_parent_page: bool - :param order: Order associated with the page with respect to other pages in the same hierarchy level. - :type order: int - :param path: Path of the wiki page. - :type path: str - """ - - _attribute_map = { - 'depth': {'key': 'depth', 'type': 'int'}, - 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, - 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, - 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, depth=None, git_item_path=None, is_non_conformant=None, is_parent_page=None, order=None, path=None): - super(WikiPage, self).__init__() - self.depth = depth - self.git_item_path = git_item_path - self.is_non_conformant = is_non_conformant - self.is_parent_page = is_parent_page - self.order = order - self.path = path - - -class WikiPageChange(WikiChange): - """WikiPageChange. - - :param original_order: Original order of the page to be provided in case of reorder or rename. - :type original_order: int - :param original_path: Original path of the page to be provided in case of rename. - :type original_path: str - """ - - _attribute_map = { - 'original_order': {'key': 'originalOrder', 'type': 'int'}, - 'original_path': {'key': 'originalPath', 'type': 'str'} - } - - def __init__(self, original_order=None, original_path=None): - super(WikiPageChange, self).__init__() - self.original_order = original_order - self.original_path = original_path - - -class WikiRepository(Model): - """WikiRepository. - - :param head_commit: The head commit associated with the git repository backing up the wiki. - :type head_commit: str - :param id: The ID of the wiki which is same as the ID of the Git repository that it is backed by. - :type id: str - :param repository: The git repository that backs up the wiki. - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - 'head_commit': {'key': 'headCommit', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, head_commit=None, id=None, repository=None): - super(WikiRepository, self).__init__() - self.head_commit = head_commit - self.id = id - self.repository = repository - - -class WikiUpdate(Model): - """WikiUpdate. - - :param associated_git_push: Git push object associated with this wiki update object. This is populated only in the response of the wiki updates POST API. - :type associated_git_push: :class:`GitPush ` - :param attachment_changes: List of attachment change objects that is to be associated with this update. - :type attachment_changes: list of :class:`WikiAttachmentChange ` - :param comment: Comment to be associated with this update. - :type comment: str - :param head_commit: Headcommit of the of the repository. - :type head_commit: str - :param page_change: Page change object associated with this update. - :type page_change: :class:`WikiPageChange ` - """ - - _attribute_map = { - 'associated_git_push': {'key': 'associatedGitPush', 'type': 'GitPush'}, - 'attachment_changes': {'key': 'attachmentChanges', 'type': '[WikiAttachmentChange]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'head_commit': {'key': 'headCommit', 'type': 'str'}, - 'page_change': {'key': 'pageChange', 'type': 'WikiPageChange'} - } - - def __init__(self, associated_git_push=None, attachment_changes=None, comment=None, head_commit=None, page_change=None): - super(WikiUpdate, self).__init__() - self.associated_git_push = associated_git_push - self.attachment_changes = attachment_changes - self.comment = comment - self.head_commit = head_commit - self.page_change = page_change - - -class GitItem(ItemModel): - """GitItem. - - :param _links: - :type _links: ReferenceLinks - :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` - :param is_folder: - :type is_folder: bool - :param is_sym_link: - :type is_sym_link: bool - :param path: - :type path: str - :param url: - :type url: str - :param commit_id: SHA1 of commit item was fetched at - :type commit_id: str - :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) - :type git_object_type: object - :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` - :param object_id: Git object id - :type object_id: str - :param original_object_id: Git object id - :type original_object_id: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, - 'is_folder': {'key': 'isFolder', 'type': 'bool'}, - 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, - 'path': {'key': 'path', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - 'git_object_type': {'key': 'gitObjectType', 'type': 'object'}, - 'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'}, - 'object_id': {'key': 'objectId', 'type': 'str'}, - 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} - } - - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): - super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) - self.commit_id = commit_id - self.git_object_type = git_object_type - self.latest_processed_change = latest_processed_change - self.object_id = object_id - self.original_object_id = original_object_id - - -class GitPush(GitPushRef): - """GitPush. - - :param _links: - :type _links: ReferenceLinks - :param date: - :type date: datetime - :param push_correlation_id: - :type push_correlation_id: str - :param pushed_by: - :type pushed_by: IdentityRef - :param push_id: - :type push_id: int - :param url: - :type url: str - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` - :param repository: - :type repository: :class:`GitRepository ` - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'date': {'key': 'date', 'type': 'iso-8601'}, - 'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'}, - 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, - 'push_id': {'key': 'pushId', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'}, - 'commits': {'key': 'commits', 'type': '[GitCommitRef]'}, - 'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'}, - 'repository': {'key': 'repository', 'type': 'GitRepository'} - } - - def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None): - super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url) - self.commits = commits - self.ref_updates = ref_updates - self.repository = repository - - -class WikiAttachmentChange(WikiChange): - """WikiAttachmentChange. - - :param overwrite_content_if_existing: Defines whether the content of an existing attachment is to be overwriten or not. If true, the content of the attachment is overwritten on an existing attachment. If attachment non-existing, new attachment is created. If false, exception is thrown if an attachment with same name exists. - :type overwrite_content_if_existing: bool - """ - - _attribute_map = { - 'overwrite_content_if_existing': {'key': 'overwriteContentIfExisting', 'type': 'bool'} - } - - def __init__(self, overwrite_content_if_existing=None): - super(WikiAttachmentChange, self).__init__() - self.overwrite_content_if_existing = overwrite_content_if_existing - - -__all__ = [ - 'Change', - 'FileContentMetadata', - 'GitCommitRef', - 'GitPushRef', - 'GitRefUpdate', - 'GitRepository', - 'GitRepositoryRef', - 'GitStatus', - 'GitStatusContext', - 'GitTemplate', - 'GitUserDate', - 'GitVersionDescriptor', - 'ItemContent', - 'ItemModel', - 'WikiAttachment', - 'WikiAttachmentResponse', - 'WikiChange', - 'WikiPage', - 'WikiPageChange', - 'WikiRepository', - 'WikiUpdate', - 'GitItem', - 'GitPush', - 'WikiAttachmentChange', -] diff --git a/azure-devops/azure/devops/v4_0/wiki/wiki_client.py b/azure-devops/azure/devops/v4_0/wiki/wiki_client.py deleted file mode 100644 index f3fc1d1b..00000000 --- a/azure-devops/azure/devops/v4_0/wiki/wiki_client.py +++ /dev/null @@ -1,263 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class WikiClient(Client): - """Wiki - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(WikiClient, 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 = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' - - def create_attachment(self, upload_stream, project, wiki_id, name, **kwargs): - """CreateAttachment. - [Preview API] Use this API to create an attachment in the wiki. - :param object upload_stream: Stream to upload - :param str project: Project ID or project name - :param str wiki_id: ID of the wiki in which the attachment is to be created. - :param str name: Name of the attachment that is to be created. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if wiki_id is not None: - route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') - query_parameters = {} - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - content = self._client.stream_upload(upload_stream, callback=callback) - response = self._send(http_method='PUT', - location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content, - media_type='application/octet-stream') - response_object = models.WikiAttachmentResponse() - response_object.attachment = self._deserialize('WikiAttachment', response) - response_object.eTag = response.headers.get('ETag') - return response_object - - def get_attachment(self, project, wiki_id, name): - """GetAttachment. - [Preview API] Temp API - :param str project: Project ID or project name - :param str wiki_id: - :param str name: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if wiki_id is not None: - route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') - query_parameters = {} - if name is not None: - query_parameters['name'] = self._serialize.query('name', name, 'str') - response = self._send(http_method='GET', - location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - response_object = models.WikiAttachmentResponse() - response_object.attachment = self._deserialize('WikiAttachment', response) - response_object.eTag = response.headers.get('ETag') - return response_object - - def get_pages(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None): - """GetPages. - [Preview API] Gets metadata or content of the wiki pages under the provided page path. - :param str project: Project ID or project name - :param str wiki_id: ID of the wiki from which the page is to be retrieved. - :param str path: Path from which the pages are to retrieved. - :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). - :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). - :rtype: [WikiPage] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if wiki_id is not None: - route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') - query_parameters = {} - if path is not None: - query_parameters['path'] = self._serialize.query('path', path, 'str') - if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') - if version_descriptor is not None: - if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type - if version_descriptor.version is not None: - query_parameters['versionDescriptor.version'] = version_descriptor.version - if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options - response = self._send(http_method='GET', - location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WikiPage]', self._unwrap_collection(response)) - - def get_page_text(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None, **kwargs): - """GetPageText. - [Preview API] Gets metadata or content of the wiki pages under the provided page path. - :param str project: Project ID or project name - :param str wiki_id: ID of the wiki from which the page is to be retrieved. - :param str path: Path from which the pages are to retrieved. - :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). - :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if wiki_id is not None: - route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') - query_parameters = {} - if path is not None: - query_parameters['path'] = self._serialize.query('path', path, 'str') - if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') - if version_descriptor is not None: - if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type - if version_descriptor.version is not None: - query_parameters['versionDescriptor.version'] = version_descriptor.version - if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options - response = self._send(http_method='GET', - location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_page_zip(self, project, wiki_id, path=None, recursion_level=None, version_descriptor=None, **kwargs): - """GetPageZip. - [Preview API] Gets metadata or content of the wiki pages under the provided page path. - :param str project: Project ID or project name - :param str wiki_id: ID of the wiki from which the page is to be retrieved. - :param str path: Path from which the pages are to retrieved. - :param str recursion_level: Recursion level for the page retrieval. Defaults to None (Optional). - :param :class:` ` version_descriptor: Version descriptor for the page. Defaults to default branch (Optional). - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if wiki_id is not None: - route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') - query_parameters = {} - if path is not None: - query_parameters['path'] = self._serialize.query('path', path, 'str') - if recursion_level is not None: - query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') - if version_descriptor is not None: - if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type - if version_descriptor.version is not None: - query_parameters['versionDescriptor.version'] = version_descriptor.version - if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options - response = self._send(http_method='GET', - location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def create_update(self, update, project, wiki_id, version_descriptor=None): - """CreateUpdate. - [Preview API] Use this API to create, edit, delete and reorder a wiki page and also to add attachments to a wiki page. For every successful wiki update creation a Git push is made to the backing Git repository. The data corresponding to that Git push is added in the response of this API. - :param :class:` ` update: - :param str project: Project ID or project name - :param str wiki_id: ID of the wiki in which the update is to be made. - :param :class:` ` version_descriptor: Version descriptor for the version on which the update is to be made. Defaults to default branch (Optional). - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if wiki_id is not None: - route_values['wikiId'] = self._serialize.url('wiki_id', wiki_id, 'str') - query_parameters = {} - if version_descriptor is not None: - if version_descriptor.version_type is not None: - query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type - if version_descriptor.version is not None: - query_parameters['versionDescriptor.version'] = version_descriptor.version - if version_descriptor.version_options is not None: - query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options - content = self._serialize.body(update, 'WikiUpdate') - response = self._send(http_method='POST', - location_id='d015d701-8038-4e7b-8623-3d5ca6813a6c', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('WikiUpdate', response) - - def create_wiki(self, wiki_to_create, project=None): - """CreateWiki. - [Preview API] Creates a backing git repository and does the intialization of the wiki for the given project. - :param :class:` ` wiki_to_create: Object containing name of the wiki to be created and the ID of the project in which the wiki is to be created. The provided name will also be used in the name of the backing git repository. If this is empty, the name will be auto generated. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(wiki_to_create, 'GitRepository') - response = self._send(http_method='POST', - location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WikiRepository', response) - - def get_wikis(self, project=None): - """GetWikis. - [Preview API] Retrieves wiki repositories in a project or collection. - :param str project: Project ID or project name - :rtype: [WikiRepository] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WikiRepository]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py deleted file mode 100644 index 65c82e01..00000000 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process/models.py +++ /dev/null @@ -1,791 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark - - -class CreateProcessModel(Model): - """CreateProcessModel. - - :param description: - :type description: str - :param name: - :type name: str - :param parent_process_type_id: - :type parent_process_type_id: str - :param reference_name: - :type reference_name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): - super(CreateProcessModel, self).__init__() - self.description = description - self.name = name - self.parent_process_type_id = parent_process_type_id - self.reference_name = reference_name - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id - - -class FieldModel(Model): - """FieldModel. - - :param description: - :type description: str - :param id: - :type id: str - :param is_identity: - :type is_identity: bool - :param name: - :type name: str - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.is_identity = is_identity - self.name = name - self.type = type - self.url = url - - -class FieldRuleModel(Model): - """FieldRuleModel. - - :param actions: - :type actions: list of :class:`RuleActionModel ` - :param conditions: - :type conditions: list of :class:`RuleConditionModel ` - :param friendly_name: - :type friendly_name: str - :param id: - :type id: str - :param is_disabled: - :type is_disabled: bool - :param is_system: - :type is_system: bool - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, - 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_system': {'key': 'isSystem', 'type': 'bool'} - } - - def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): - super(FieldRuleModel, self).__init__() - self.actions = actions - self.conditions = conditions - self.friendly_name = friendly_name - self.id = id - self.is_disabled = is_disabled - self.is_system = is_system - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible - - -class ProcessModel(Model): - """ProcessModel. - - :param description: - :type description: str - :param name: - :type name: str - :param projects: - :type projects: list of :class:`ProjectReference ` - :param properties: - :type properties: :class:`ProcessProperties ` - :param reference_name: - :type reference_name: str - :param type_id: - :type type_id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, - 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'type_id': {'key': 'typeId', 'type': 'str'} - } - - def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): - super(ProcessModel, self).__init__() - self.description = description - self.name = name - self.projects = projects - self.properties = properties - self.reference_name = reference_name - self.type_id = type_id - - -class ProcessProperties(Model): - """ProcessProperties. - - :param class_: - :type class_: object - :param is_default: - :type is_default: bool - :param is_enabled: - :type is_enabled: bool - :param parent_process_type_id: - :type parent_process_type_id: str - :param version: - :type version: str - """ - - _attribute_map = { - 'class_': {'key': 'class', 'type': 'object'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): - super(ProcessProperties, self).__init__() - self.class_ = class_ - self.is_default = is_default - self.is_enabled = is_enabled - self.parent_process_type_id = parent_process_type_id - self.version = version - - -class ProjectReference(Model): - """ProjectReference. - - :param description: - :type description: str - :param id: - :type id: str - :param name: - :type name: str - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, url=None): - super(ProjectReference, self).__init__() - self.description = description - self.id = id - self.name = name - self.url = url - - -class RuleActionModel(Model): - """RuleActionModel. - - :param action_type: - :type action_type: str - :param target_field: - :type target_field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'action_type': {'key': 'actionType', 'type': 'str'}, - 'target_field': {'key': 'targetField', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, action_type=None, target_field=None, value=None): - super(RuleActionModel, self).__init__() - self.action_type = action_type - self.target_field = target_field - self.value = value - - -class RuleConditionModel(Model): - """RuleConditionModel. - - :param condition_type: - :type condition_type: str - :param field: - :type field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'str'}, - 'field': {'key': 'field', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, field=None, value=None): - super(RuleConditionModel, self).__init__() - self.condition_type = condition_type - self.field = field - self.value = value - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden - - -class UpdateProcessModel(Model): - """UpdateProcessModel. - - :param description: - :type description: str - :param is_default: - :type is_default: bool - :param is_enabled: - :type is_enabled: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, description=None, is_default=None, is_enabled=None, name=None): - super(UpdateProcessModel, self).__init__() - self.description = description - self.is_default = is_default - self.is_enabled = is_enabled - self.name = name - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item - - -class WorkItemBehavior(Model): - """WorkItemBehavior. - - :param abstract: - :type abstract: bool - :param color: - :type color: str - :param description: - :type description: str - :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` - :param id: - :type id: str - :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: - :type name: str - :param overriden: - :type overriden: bool - :param rank: - :type rank: int - :param url: - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overriden': {'key': 'overriden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): - super(WorkItemBehavior, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.fields = fields - self.id = id - self.inherits = inherits - self.name = name - self.overriden = overriden - self.rank = rank - self.url = url - - -class WorkItemBehaviorField(Model): - """WorkItemBehaviorField. - - :param behavior_field_id: - :type behavior_field_id: str - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior_field_id=None, id=None, url=None): - super(WorkItemBehaviorField, self).__init__() - self.behavior_field_id = behavior_field_id - self.id = id - self.url = url - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: - :type color: str - :param hidden: - :type hidden: bool - :param id: - :type id: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - :param url: - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: - :type class_: object - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param id: - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: - :type is_disabled: bool - :param layout: - :type layout: :class:`FormLayout ` - :param name: - :type name: str - :param states: - :type states: list of :class:`WorkItemStateResultModel ` - :param url: - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url - - -__all__ = [ - 'Control', - 'CreateProcessModel', - 'Extension', - 'FieldModel', - 'FieldRuleModel', - 'FormLayout', - 'Group', - 'Page', - 'ProcessModel', - 'ProcessProperties', - 'ProjectReference', - 'RuleActionModel', - 'RuleConditionModel', - 'Section', - 'UpdateProcessModel', - 'WitContribution', - 'WorkItemBehavior', - 'WorkItemBehaviorField', - 'WorkItemBehaviorReference', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeModel', -] diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py deleted file mode 100644 index eda9ea00..00000000 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process/work_item_tracking_process_client.py +++ /dev/null @@ -1,367 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class WorkItemTrackingClient(Client): - """WorkItemTracking - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(WorkItemTrackingClient, 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_behavior(self, process_id, behavior_ref_name, expand=None): - """GetBehavior. - [Preview API] - :param str process_id: - :param str behavior_ref_name: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemBehavior', response) - - def get_behaviors(self, process_id, expand=None): - """GetBehaviors. - [Preview API] - :param str process_id: - :param str expand: - :rtype: [WorkItemBehavior] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemBehavior]', self._unwrap_collection(response)) - - def get_fields(self, process_id): - """GetFields. - [Preview API] - :param str process_id: - :rtype: [FieldModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - response = self._send(http_method='GET', - location_id='7a0e7a1a-0b34-4ae0-9744-0aaffb7d0ed1', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[FieldModel]', self._unwrap_collection(response)) - - def get_work_item_type_fields(self, process_id, wit_ref_name): - """GetWorkItemTypeFields. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :rtype: [FieldModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[FieldModel]', self._unwrap_collection(response)) - - def create_process(self, create_request): - """CreateProcess. - [Preview API] - :param :class:` ` create_request: - :rtype: :class:` ` - """ - content = self._serialize.body(create_request, 'CreateProcessModel') - response = self._send(http_method='POST', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.0-preview.1', - content=content) - return self._deserialize('ProcessModel', response) - - def delete_process(self, process_type_id): - """DeleteProcess. - [Preview API] - :param str process_type_id: - """ - route_values = {} - if process_type_id is not None: - route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') - self._send(http_method='DELETE', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.0-preview.1', - route_values=route_values) - - def get_process_by_id(self, process_type_id, expand=None): - """GetProcessById. - [Preview API] - :param str process_type_id: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_type_id is not None: - route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ProcessModel', response) - - def get_processes(self, expand=None): - """GetProcesses. - [Preview API] - :param str expand: - :rtype: [ProcessModel] - """ - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[ProcessModel]', self._unwrap_collection(response)) - - def update_process(self, update_request, process_type_id): - """UpdateProcess. - [Preview API] - :param :class:` ` update_request: - :param str process_type_id: - :rtype: :class:` ` - """ - route_values = {} - if process_type_id is not None: - route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') - content = self._serialize.body(update_request, 'UpdateProcessModel') - response = self._send(http_method='PATCH', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ProcessModel', response) - - def add_work_item_type_rule(self, field_rule, process_id, wit_ref_name): - """AddWorkItemTypeRule. - [Preview API] - :param :class:` ` field_rule: - :param str process_id: - :param str wit_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(field_rule, 'FieldRuleModel') - response = self._send(http_method='POST', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldRuleModel', response) - - def delete_work_item_type_rule(self, process_id, wit_ref_name, rule_id): - """DeleteWorkItemTypeRule. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str rule_id: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if rule_id is not None: - route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') - self._send(http_method='DELETE', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.0-preview.1', - route_values=route_values) - - def get_work_item_type_rule(self, process_id, wit_ref_name, rule_id): - """GetWorkItemTypeRule. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str rule_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if rule_id is not None: - route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') - response = self._send(http_method='GET', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('FieldRuleModel', response) - - def get_work_item_type_rules(self, process_id, wit_ref_name): - """GetWorkItemTypeRules. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :rtype: [FieldRuleModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[FieldRuleModel]', self._unwrap_collection(response)) - - def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): - """UpdateWorkItemTypeRule. - [Preview API] - :param :class:` ` field_rule: - :param str process_id: - :param str wit_ref_name: - :param str rule_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if rule_id is not None: - route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') - content = self._serialize.body(field_rule, 'FieldRuleModel') - response = self._send(http_method='PUT', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldRuleModel', response) - - def get_state_definition(self, process_id, wit_ref_name, state_id): - """GetStateDefinition. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str state_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - response = self._send(http_method='GET', - location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemStateResultModel', response) - - def get_state_definitions(self, process_id, wit_ref_name): - """GetStateDefinitions. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :rtype: [WorkItemStateResultModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) - - def get_work_item_type(self, process_id, wit_ref_name, expand=None): - """GetWorkItemType. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemTypeModel', response) - - def get_work_item_types(self, process_id, expand=None): - """GetWorkItemTypes. - [Preview API] - :param str process_id: - :param str expand: - :rtype: [WorkItemTypeModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py deleted file mode 100644 index e287f660..00000000 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .models import * - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py deleted file mode 100644 index 7f5a4d7d..00000000 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/models.py +++ /dev/null @@ -1,795 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorCreateModel(Model): - """BehaviorCreateModel. - - :param color: Color - :type color: str - :param inherits: Parent behavior id - :type inherits: str - :param name: Name of the behavior - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, inherits=None, name=None): - super(BehaviorCreateModel, self).__init__() - self.color = color - self.inherits = inherits - self.name = name - - -class BehaviorModel(Model): - """BehaviorModel. - - :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) - :type abstract: bool - :param color: Color - :type color: str - :param description: Description - :type description: str - :param id: Behavior Id - :type id: str - :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: Behavior Name - :type name: str - :param overridden: Is the behavior overrides a behavior from system process - :type overridden: bool - :param rank: Rank - :type rank: int - :param url: - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): - super(BehaviorModel, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.id = id - self.inherits = inherits - self.name = name - self.overridden = overridden - self.rank = rank - self.url = url - - -class BehaviorReplaceModel(Model): - """BehaviorReplaceModel. - - :param color: Color - :type color: str - :param name: Behavior Name - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, name=None): - super(BehaviorReplaceModel, self).__init__() - self.color = color - self.name = name - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id - - -class FieldModel(Model): - """FieldModel. - - :param description: - :type description: str - :param id: - :type id: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.name = name - self.pick_list = pick_list - self.type = type - self.url = url - - -class FieldUpdate(Model): - """FieldUpdate. - - :param description: - :type description: str - :param id: - :type id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, description=None, id=None): - super(FieldUpdate, self).__init__() - self.description = description - self.id = id - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible - - -class HideStateModel(Model): - """HideStateModel. - - :param hidden: - :type hidden: bool - """ - - _attribute_map = { - 'hidden': {'key': 'hidden', 'type': 'bool'} - } - - def __init__(self, hidden=None): - super(HideStateModel, self).__init__() - self.hidden = hidden - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible - - -class PickListItemModel(Model): - """PickListItemModel. - - :param id: - :type id: str - :param value: - :type value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, id=None, value=None): - super(PickListItemModel, self).__init__() - self.id = id - self.value = value - - -class PickListMetadataModel(Model): - """PickListMetadataModel. - - :param id: - :type id: str - :param is_suggested: - :type is_suggested: bool - :param name: - :type name: str - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): - super(PickListMetadataModel, self).__init__() - self.id = id - self.is_suggested = is_suggested - self.name = name - self.type = type - self.url = url - - -class PickListModel(PickListMetadataModel): - """PickListModel. - - :param id: - :type id: str - :param is_suggested: - :type is_suggested: bool - :param name: - :type name: str - :param type: - :type type: str - :param url: - :type url: str - :param items: - :type items: list of :class:`PickListItemModel ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[PickListItemModel]'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): - super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) - self.items = items - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url - - -class WorkItemStateInputModel(Model): - """WorkItemStateInputModel. - - :param color: - :type color: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'} - } - - def __init__(self, color=None, name=None, order=None, state_category=None): - super(WorkItemStateInputModel, self).__init__() - self.color = color - self.name = name - self.order = order - self.state_category = state_category - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: - :type color: str - :param hidden: - :type hidden: bool - :param id: - :type id: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - :param url: - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url - - -class WorkItemTypeFieldModel(Model): - """WorkItemTypeFieldModel. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: - :type class_: object - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param id: - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: - :type is_disabled: bool - :param layout: - :type layout: :class:`FormLayout ` - :param name: - :type name: str - :param states: - :type states: list of :class:`WorkItemStateResultModel ` - :param url: - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url - - -class WorkItemTypeUpdateModel(Model): - """WorkItemTypeUpdateModel. - - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param is_disabled: - :type is_disabled: bool - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} - } - - def __init__(self, color=None, description=None, icon=None, is_disabled=None): - super(WorkItemTypeUpdateModel, self).__init__() - self.color = color - self.description = description - self.icon = icon - self.is_disabled = is_disabled - - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py deleted file mode 100644 index 315b5464..00000000 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py +++ /dev/null @@ -1,963 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class WorkItemTrackingClient(Client): - """WorkItemTracking - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(WorkItemTrackingClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' - - def create_behavior(self, behavior, process_id): - """CreateBehavior. - [Preview API] - :param :class:` ` behavior: - :param str process_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(behavior, 'BehaviorCreateModel') - response = self._send(http_method='POST', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('BehaviorModel', response) - - def delete_behavior(self, process_id, behavior_id): - """DeleteBehavior. - [Preview API] - :param str process_id: - :param str behavior_id: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - self._send(http_method='DELETE', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.0-preview.1', - route_values=route_values) - - def get_behavior(self, process_id, behavior_id): - """GetBehavior. - [Preview API] - :param str process_id: - :param str behavior_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('BehaviorModel', response) - - def get_behaviors(self, process_id): - """GetBehaviors. - [Preview API] - :param str process_id: - :rtype: [BehaviorModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) - - def replace_behavior(self, behavior_data, process_id, behavior_id): - """ReplaceBehavior. - [Preview API] - :param :class:` ` behavior_data: - :param str process_id: - :param str behavior_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') - response = self._send(http_method='PUT', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('BehaviorModel', response) - - def add_control_to_group(self, control, process_id, wit_ref_name, group_id): - """AddControlToGroup. - [Preview API] Creates a control, giving it an id, and adds it to the group. So far, the only controls that don't know how to generate their own ids are control extensions. - :param :class:` ` control: - :param str process_id: - :param str wit_ref_name: - :param str group_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='POST', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Control', response) - - def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): - """EditControl. - [Preview API] - :param :class:` ` control: - :param str process_id: - :param str wit_ref_name: - :param str group_id: - :param str control_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='PATCH', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Control', response) - - def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): - """RemoveControlFromGroup. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str group_id: - :param str control_id: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - self._send(http_method='DELETE', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.0-preview.1', - route_values=route_values) - - def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): - """SetControlInGroup. - [Preview API] Puts a control withan id into a group. Controls backed by fields can generate their own id. - :param :class:` ` control: - :param str process_id: - :param str wit_ref_name: - :param str group_id: - :param str control_id: - :param str remove_from_group_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - query_parameters = {} - if remove_from_group_id is not None: - query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='PUT', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Control', response) - - def create_field(self, field, process_id): - """CreateField. - [Preview API] - :param :class:` ` field: - :param str process_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldModel') - response = self._send(http_method='POST', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldModel', response) - - def update_field(self, field, process_id): - """UpdateField. - [Preview API] - :param :class:` ` field: - :param str process_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldUpdate') - response = self._send(http_method='PATCH', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldModel', response) - - def add_group(self, group, process_id, wit_ref_name, page_id, section_id): - """AddGroup. - [Preview API] - :param :class:` ` group: - :param str process_id: - :param str wit_ref_name: - :param str page_id: - :param str section_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='POST', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Group', response) - - def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): - """EditGroup. - [Preview API] - :param :class:` ` group: - :param str process_id: - :param str wit_ref_name: - :param str page_id: - :param str section_id: - :param str group_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PATCH', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Group', response) - - def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): - """RemoveGroup. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str page_id: - :param str section_id: - :param str group_id: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - self._send(http_method='DELETE', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.0-preview.1', - route_values=route_values) - - def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): - """SetGroupInPage. - [Preview API] - :param :class:` ` group: - :param str process_id: - :param str wit_ref_name: - :param str page_id: - :param str section_id: - :param str group_id: - :param str remove_from_page_id: - :param str remove_from_section_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_page_id is not None: - query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Group', response) - - def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): - """SetGroupInSection. - [Preview API] - :param :class:` ` group: - :param str process_id: - :param str wit_ref_name: - :param str page_id: - :param str section_id: - :param str group_id: - :param str remove_from_section_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Group', response) - - def get_form_layout(self, process_id, wit_ref_name): - """GetFormLayout. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='3eacc80a-ddca-4404-857a-6331aac99063', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('FormLayout', response) - - def get_lists_metadata(self): - """GetListsMetadata. - [Preview API] - :rtype: [PickListMetadataModel] - """ - response = self._send(http_method='GET', - location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', - version='4.0-preview.1') - return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) - - def create_list(self, picklist): - """CreateList. - [Preview API] - :param :class:` ` picklist: - :rtype: :class:` ` - """ - content = self._serialize.body(picklist, 'PickListModel') - response = self._send(http_method='POST', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.0-preview.1', - content=content) - return self._deserialize('PickListModel', response) - - def delete_list(self, list_id): - """DeleteList. - [Preview API] - :param str list_id: - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - self._send(http_method='DELETE', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.0-preview.1', - route_values=route_values) - - def get_list(self, list_id): - """GetList. - [Preview API] - :param str list_id: - :rtype: :class:` ` - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - response = self._send(http_method='GET', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('PickListModel', response) - - def update_list(self, picklist, list_id): - """UpdateList. - [Preview API] - :param :class:` ` picklist: - :param str list_id: - :rtype: :class:` ` - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - content = self._serialize.body(picklist, 'PickListModel') - response = self._send(http_method='PUT', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('PickListModel', response) - - def add_page(self, page, process_id, wit_ref_name): - """AddPage. - [Preview API] - :param :class:` ` page: - :param str process_id: - :param str wit_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(page, 'Page') - response = self._send(http_method='POST', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Page', response) - - def edit_page(self, page, process_id, wit_ref_name): - """EditPage. - [Preview API] - :param :class:` ` page: - :param str process_id: - :param str wit_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(page, 'Page') - response = self._send(http_method='PATCH', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Page', response) - - def remove_page(self, process_id, wit_ref_name, page_id): - """RemovePage. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str page_id: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - self._send(http_method='DELETE', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='4.0-preview.1', - route_values=route_values) - - def create_state_definition(self, state_model, process_id, wit_ref_name): - """CreateStateDefinition. - [Preview API] - :param :class:` ` state_model: - :param str process_id: - :param str wit_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(state_model, 'WorkItemStateInputModel') - response = self._send(http_method='POST', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def delete_state_definition(self, process_id, wit_ref_name, state_id): - """DeleteStateDefinition. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str state_id: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - self._send(http_method='DELETE', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.0-preview.1', - route_values=route_values) - - def get_state_definition(self, process_id, wit_ref_name, state_id): - """GetStateDefinition. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str state_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemStateResultModel', response) - - def get_state_definitions(self, process_id, wit_ref_name): - """GetStateDefinitions. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :rtype: [WorkItemStateResultModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) - - def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): - """HideStateDefinition. - [Preview API] - :param :class:` ` hide_state_model: - :param str process_id: - :param str wit_ref_name: - :param str state_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - content = self._serialize.body(hide_state_model, 'HideStateModel') - response = self._send(http_method='PUT', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): - """UpdateStateDefinition. - [Preview API] - :param :class:` ` state_model: - :param str process_id: - :param str wit_ref_name: - :param str state_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - content = self._serialize.body(state_model, 'WorkItemStateInputModel') - response = self._send(http_method='PATCH', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """AddBehaviorToWorkItemType. - [Preview API] - :param :class:` ` behavior: - :param str process_id: - :param str wit_ref_name_for_behaviors: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='POST', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """GetBehaviorForWorkItemType. - [Preview API] - :param str process_id: - :param str wit_ref_name_for_behaviors: - :param str behavior_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): - """GetBehaviorsForWorkItemType. - [Preview API] - :param str process_id: - :param str wit_ref_name_for_behaviors: - :rtype: [WorkItemTypeBehavior] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) - - def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """RemoveBehaviorFromWorkItemType. - [Preview API] - :param str process_id: - :param str wit_ref_name_for_behaviors: - :param str behavior_ref_name: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - self._send(http_method='DELETE', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.0-preview.1', - route_values=route_values) - - def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """UpdateBehaviorToWorkItemType. - [Preview API] - :param :class:` ` behavior: - :param str process_id: - :param str wit_ref_name_for_behaviors: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='PATCH', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def create_work_item_type(self, work_item_type, process_id): - """CreateWorkItemType. - [Preview API] - :param :class:` ` work_item_type: - :param str process_id: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(work_item_type, 'WorkItemTypeModel') - response = self._send(http_method='POST', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeModel', response) - - def delete_work_item_type(self, process_id, wit_ref_name): - """DeleteWorkItemType. - [Preview API] - :param str process_id: - :param str wit_ref_name: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - self._send(http_method='DELETE', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.0-preview.1', - route_values=route_values) - - def get_work_item_type(self, process_id, wit_ref_name, expand=None): - """GetWorkItemType. - [Preview API] - :param str process_id: - :param str wit_ref_name: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemTypeModel', response) - - def get_work_item_types(self, process_id, expand=None): - """GetWorkItemTypes. - [Preview API] - :param str process_id: - :param str expand: - :rtype: [WorkItemTypeModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) - - def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): - """UpdateWorkItemType. - [Preview API] - :param :class:` ` work_item_type_update: - :param str process_id: - :param str wit_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') - response = self._send(http_method='PATCH', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeModel', response) - - def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): - """AddFieldToWorkItemType. - [Preview API] - :param :class:` ` field: - :param str process_id: - :param str wit_ref_name_for_fields: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - content = self._serialize.body(field, 'WorkItemTypeFieldModel') - response = self._send(http_method='POST', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeFieldModel', response) - - def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): - """GetWorkItemTypeField. - [Preview API] - :param str process_id: - :param str wit_ref_name_for_fields: - :param str field_ref_name: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') - response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemTypeFieldModel', response) - - def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): - """GetWorkItemTypeFields. - [Preview API] - :param str process_id: - :param str wit_ref_name_for_fields: - :rtype: [WorkItemTypeFieldModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemTypeFieldModel]', self._unwrap_collection(response)) - - def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): - """RemoveFieldFromWorkItemType. - [Preview API] - :param str process_id: - :param str wit_ref_name_for_fields: - :param str field_ref_name: - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') - self._send(http_method='DELETE', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.0-preview.1', - route_values=route_values) - diff --git a/azure-devops/azure/devops/v4_1/git/git_client.py b/azure-devops/azure/devops/v4_1/git/git_client.py deleted file mode 100644 index 83c449ca..00000000 --- a/azure-devops/azure/devops/v4_1/git/git_client.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - - -from msrest.universal_http import ClientRequest -from .git_client_base import GitClientBase - - -class GitClient(GitClientBase): - """Git - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(GitClient, self).__init__(base_url, creds) - - def get_vsts_info(self, relative_remote_url): - url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') - request = ClientRequest(method='GET', url=url) - headers = {'Accept': 'application/json'} - if self._suppress_fedauth_redirect: - headers['X-TFS-FedAuthRedirect'] = 'Suppress' - if self._force_msa_pass_through: - headers['X-VSS-ForceMsaPassThrough'] = 'true' - response = self._send_request(request, headers) - return self._deserialize('VstsInfo', response) - - @staticmethod - def get_vsts_info_by_remote_url(remote_url, credentials, - suppress_fedauth_redirect=True, - force_msa_pass_through=True): - request = ClientRequest(method='GET', url=remote_url.rstrip('/') + '/vsts/info') - headers = {'Accept': 'application/json'} - if suppress_fedauth_redirect: - headers['X-TFS-FedAuthRedirect'] = 'Suppress' - if force_msa_pass_through: - headers['X-VSS-ForceMsaPassThrough'] = 'true' - git_client = GitClient(base_url=remote_url, creds=credentials) - response = git_client._send_request(request, headers) - return git_client._deserialize('VstsInfo', response) diff --git a/azure-devops/azure/devops/v4_1/release/__init__.py b/azure-devops/azure/devops/v4_1/release/__init__.py deleted file mode 100644 index f970ff12..00000000 --- a/azure-devops/azure/devops/v4_1/release/__init__.py +++ /dev/null @@ -1,101 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .models import * - -__all__ = [ - 'AgentArtifactDefinition', - 'ApprovalOptions', - 'Artifact', - 'ArtifactMetadata', - 'ArtifactSourceReference', - 'ArtifactTypeDefinition', - 'ArtifactVersion', - 'ArtifactVersionQueryResult', - 'AuthorizationHeader', - 'AutoTriggerIssue', - 'BuildVersion', - 'Change', - 'Condition', - 'ConfigurationVariableValue', - 'DataSourceBindingBase', - 'DefinitionEnvironmentReference', - 'Deployment', - 'DeploymentAttempt', - 'DeploymentJob', - 'DeploymentQueryParameters', - 'EmailRecipients', - 'EnvironmentExecutionPolicy', - 'EnvironmentOptions', - 'EnvironmentRetentionPolicy', - 'FavoriteItem', - 'Folder', - 'GraphSubjectBase', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Issue', - 'MailMessage', - 'ManualIntervention', - 'ManualInterventionUpdateMetadata', - 'Metric', - 'PipelineProcess', - 'ProcessParameters', - 'ProjectReference', - 'QueuedReleaseData', - 'ReferenceLinks', - 'Release', - 'ReleaseApproval', - 'ReleaseApprovalHistory', - 'ReleaseCondition', - 'ReleaseDefinition', - 'ReleaseDefinitionApprovals', - 'ReleaseDefinitionApprovalStep', - 'ReleaseDefinitionDeployStep', - 'ReleaseDefinitionEnvironment', - 'ReleaseDefinitionEnvironmentStep', - 'ReleaseDefinitionEnvironmentSummary', - 'ReleaseDefinitionEnvironmentTemplate', - 'ReleaseDefinitionGate', - 'ReleaseDefinitionGatesOptions', - 'ReleaseDefinitionGatesStep', - 'ReleaseDefinitionRevision', - 'ReleaseDefinitionShallowReference', - 'ReleaseDefinitionSummary', - 'ReleaseDefinitionUndeleteParameter', - 'ReleaseDeployPhase', - 'ReleaseEnvironment', - 'ReleaseEnvironmentShallowReference', - 'ReleaseEnvironmentUpdateMetadata', - 'ReleaseGates', - 'ReleaseReference', - 'ReleaseRevision', - 'ReleaseSchedule', - 'ReleaseSettings', - 'ReleaseShallowReference', - 'ReleaseStartMetadata', - 'ReleaseTask', - 'ReleaseTaskAttachment', - 'ReleaseUpdateMetadata', - 'ReleaseWorkItemRef', - 'RetentionPolicy', - 'RetentionSettings', - 'SummaryMailSection', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskSourceDefinitionBase', - 'VariableGroup', - 'VariableGroupProviderData', - 'VariableValue', - 'WorkflowTask', - 'WorkflowTaskReference', -] diff --git a/azure-devops/azure/devops/v4_1/release/models.py b/azure-devops/azure/devops/v4_1/release/models.py deleted file mode 100644 index 9138905e..00000000 --- a/azure-devops/azure/devops/v4_1/release/models.py +++ /dev/null @@ -1,3465 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class AgentArtifactDefinition(Model): - """AgentArtifactDefinition. - - :param alias: - :type alias: str - :param artifact_type: - :type artifact_type: object - :param details: - :type details: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'artifact_type': {'key': 'artifactType', 'type': 'object'}, - 'details': {'key': 'details', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): - super(AgentArtifactDefinition, self).__init__() - self.alias = alias - self.artifact_type = artifact_type - self.details = details - self.name = name - self.version = version - - -class ApprovalOptions(Model): - """ApprovalOptions. - - :param auto_triggered_and_previous_environment_approved_can_be_skipped: - :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool - :param enforce_identity_revalidation: - :type enforce_identity_revalidation: bool - :param execution_order: - :type execution_order: object - :param release_creator_can_be_approver: - :type release_creator_can_be_approver: bool - :param required_approver_count: - :type required_approver_count: int - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, - 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, - 'execution_order': {'key': 'executionOrder', 'type': 'object'}, - 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, - 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, execution_order=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): - super(ApprovalOptions, self).__init__() - self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped - self.enforce_identity_revalidation = enforce_identity_revalidation - self.execution_order = execution_order - self.release_creator_can_be_approver = release_creator_can_be_approver - self.required_approver_count = required_approver_count - self.timeout_in_minutes = timeout_in_minutes - - -class Artifact(Model): - """Artifact. - - :param alias: Gets or sets alias. - :type alias: str - :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} - :type definition_reference: dict - :param is_primary: Gets or sets as artifact is primary or not. - :type is_primary: bool - :param source_id: - :type source_id: str - :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. - :type type: str - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, - 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, alias=None, definition_reference=None, is_primary=None, source_id=None, type=None): - super(Artifact, self).__init__() - self.alias = alias - self.definition_reference = definition_reference - self.is_primary = is_primary - self.source_id = source_id - self.type = type - - -class ArtifactMetadata(Model): - """ArtifactMetadata. - - :param alias: Sets alias of artifact. - :type alias: str - :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. - :type instance_reference: :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} - } - - def __init__(self, alias=None, instance_reference=None): - super(ArtifactMetadata, self).__init__() - self.alias = alias - self.instance_reference = instance_reference - - -class ArtifactSourceReference(Model): - """ArtifactSourceReference. - - :param id: - :type id: str - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ArtifactSourceReference, self).__init__() - self.id = id - self.name = name - - -class ArtifactTypeDefinition(Model): - """ArtifactTypeDefinition. - - :param display_name: - :type display_name: str - :param endpoint_type_id: - :type endpoint_type_id: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` - :param name: - :type name: str - :param unique_source_identifier: - :type unique_source_identifier: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'endpoint_type_id': {'key': 'endpointTypeId', 'type': 'str'}, - 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} - } - - def __init__(self, display_name=None, endpoint_type_id=None, input_descriptors=None, name=None, unique_source_identifier=None): - super(ArtifactTypeDefinition, self).__init__() - self.display_name = display_name - self.endpoint_type_id = endpoint_type_id - self.input_descriptors = input_descriptors - self.name = name - self.unique_source_identifier = unique_source_identifier - - -class ArtifactVersion(Model): - """ArtifactVersion. - - :param alias: - :type alias: str - :param default_version: - :type default_version: :class:`BuildVersion ` - :param error_message: - :type error_message: str - :param source_id: - :type source_id: str - :param versions: - :type versions: list of :class:`BuildVersion ` - """ - - _attribute_map = { - 'alias': {'key': 'alias', 'type': 'str'}, - 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[BuildVersion]'} - } - - def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): - super(ArtifactVersion, self).__init__() - self.alias = alias - self.default_version = default_version - self.error_message = error_message - self.source_id = source_id - self.versions = versions - - -class ArtifactVersionQueryResult(Model): - """ArtifactVersionQueryResult. - - :param artifact_versions: - :type artifact_versions: list of :class:`ArtifactVersion ` - """ - - _attribute_map = { - 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} - } - - def __init__(self, artifact_versions=None): - super(ArtifactVersionQueryResult, self).__init__() - self.artifact_versions = artifact_versions - - -class AuthorizationHeader(Model): - """AuthorizationHeader. - - :param name: - :type name: str - :param value: - :type value: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, name=None, value=None): - super(AuthorizationHeader, self).__init__() - self.name = name - self.value = value - - -class AutoTriggerIssue(Model): - """AutoTriggerIssue. - - :param issue: - :type issue: :class:`Issue ` - :param issue_source: - :type issue_source: object - :param project: - :type project: :class:`ProjectReference ` - :param release_definition_reference: - :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` - :param release_trigger_type: - :type release_trigger_type: object - """ - - _attribute_map = { - 'issue': {'key': 'issue', 'type': 'Issue'}, - 'issue_source': {'key': 'issueSource', 'type': 'object'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} - } - - def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): - super(AutoTriggerIssue, self).__init__() - self.issue = issue - self.issue_source = issue_source - self.project = project - self.release_definition_reference = release_definition_reference - self.release_trigger_type = release_trigger_type - - -class BuildVersion(Model): - """BuildVersion. - - :param commit_message: - :type commit_message: str - :param id: - :type id: str - :param name: - :type name: str - :param source_branch: - :type source_branch: str - :param source_pull_request_id: PullRequestId or Commit Id for the Pull Request for which the release will publish status - :type source_pull_request_id: str - :param source_repository_id: - :type source_repository_id: str - :param source_repository_type: - :type source_repository_type: str - :param source_version: - :type source_version: str - """ - - _attribute_map = { - 'commit_message': {'key': 'commitMessage', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, - 'source_pull_request_id': {'key': 'sourcePullRequestId', 'type': 'str'}, - 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, - 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, - 'source_version': {'key': 'sourceVersion', 'type': 'str'} - } - - def __init__(self, commit_message=None, id=None, name=None, source_branch=None, source_pull_request_id=None, source_repository_id=None, source_repository_type=None, source_version=None): - super(BuildVersion, self).__init__() - self.commit_message = commit_message - self.id = id - self.name = name - self.source_branch = source_branch - self.source_pull_request_id = source_pull_request_id - self.source_repository_id = source_repository_id - self.source_repository_type = source_repository_type - self.source_version = source_version - - -class Change(Model): - """Change. - - :param author: The author of the change. - :type author: :class:`IdentityRef ` - :param change_type: The type of change. "commit", "changeset", etc. - :type change_type: str - :param display_uri: The location of a user-friendly representation of the resource. - :type display_uri: str - :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. - :type id: str - :param location: The location of the full representation of the resource. - :type location: str - :param message: A description of the change. This might be a commit message or changeset description. - :type message: str - :param pusher: The person or process that pushed the change. - :type pusher: str - :param timestamp: A timestamp for the change. - :type timestamp: datetime - """ - - _attribute_map = { - 'author': {'key': 'author', 'type': 'IdentityRef'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'display_uri': {'key': 'displayUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'pusher': {'key': 'pusher', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} - } - - def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, pusher=None, timestamp=None): - super(Change, self).__init__() - self.author = author - self.change_type = change_type - self.display_uri = display_uri - self.id = id - self.location = location - self.message = message - self.pusher = pusher - self.timestamp = timestamp - - -class Condition(Model): - """Condition. - - :param condition_type: Gets or sets the condition type. - :type condition_type: object - :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. - :type name: str - :param value: Gets or set value of the condition. - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, name=None, value=None): - super(Condition, self).__init__() - self.condition_type = condition_type - self.name = name - self.value = value - - -class ConfigurationVariableValue(Model): - """ConfigurationVariableValue. - - :param is_secret: Gets or sets as variable is secret or not. - :type is_secret: bool - :param value: Gets or sets value of the configuration variable. - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(ConfigurationVariableValue, self).__init__() - self.is_secret = is_secret - self.value = value - - -class DataSourceBindingBase(Model): - """DataSourceBindingBase. - - :param data_source_name: Gets or sets the name of the data source. - :type data_source_name: str - :param endpoint_id: Gets or sets the endpoint Id. - :type endpoint_id: str - :param endpoint_url: Gets or sets the url of the service endpoint. - :type endpoint_url: str - :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` - :param parameters: Gets or sets the parameters for the data source. - :type parameters: dict - :param result_selector: Gets or sets the result selector. - :type result_selector: str - :param result_template: Gets or sets the result template. - :type result_template: str - :param target: Gets or sets the target of the data source. - :type target: str - """ - - _attribute_map = { - 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, - 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, - 'parameters': {'key': 'parameters', 'type': '{str}'}, - 'result_selector': {'key': 'resultSelector', 'type': 'str'}, - 'result_template': {'key': 'resultTemplate', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBindingBase, self).__init__() - self.data_source_name = data_source_name - self.endpoint_id = endpoint_id - self.endpoint_url = endpoint_url - self.headers = headers - self.parameters = parameters - self.result_selector = result_selector - self.result_template = result_template - self.target = target - - -class DefinitionEnvironmentReference(Model): - """DefinitionEnvironmentReference. - - :param definition_environment_id: - :type definition_environment_id: int - :param definition_environment_name: - :type definition_environment_name: str - :param release_definition_id: - :type release_definition_id: int - :param release_definition_name: - :type release_definition_name: str - """ - - _attribute_map = { - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, - 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, - 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} - } - - def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): - super(DefinitionEnvironmentReference, self).__init__() - self.definition_environment_id = definition_environment_id - self.definition_environment_name = definition_environment_name - self.release_definition_id = release_definition_id - self.release_definition_name = release_definition_name - - -class Deployment(Model): - """Deployment. - - :param _links: Gets links to access the deployment. - :type _links: :class:`ReferenceLinks ` - :param attempt: Gets attempt number. - :type attempt: int - :param completed_on: Gets the date on which deployment is complete. - :type completed_on: datetime - :param conditions: Gets the list of condition associated with deployment. - :type conditions: list of :class:`Condition ` - :param definition_environment_id: Gets release definition environment id. - :type definition_environment_id: int - :param deployment_status: Gets status of the deployment. - :type deployment_status: object - :param id: Gets the unique identifier for deployment. - :type id: int - :param last_modified_by: Gets the identity who last modified the deployment. - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: Gets the date on which deployment is last modified. - :type last_modified_on: datetime - :param operation_status: Gets operation status of deployment. - :type operation_status: object - :param post_deploy_approvals: Gets list of PostDeployApprovals. - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_deploy_approvals: Gets list of PreDeployApprovals. - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param queued_on: Gets the date on which deployment is queued. - :type queued_on: datetime - :param reason: Gets reason of deployment. - :type reason: object - :param release: Gets the reference of release. - :type release: :class:`ReleaseReference ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which the deployment is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which the deployment is associated. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param requested_by: Gets the identity who requested. - :type requested_by: :class:`IdentityRef ` - :param requested_for: Gets the identity for whom deployment is requested. - :type requested_for: :class:`IdentityRef ` - :param scheduled_deployment_time: Gets the date on which deployment is scheduled. - :type scheduled_deployment_time: datetime - :param started_on: Gets the date on which deployment is started. - :type started_on: datetime - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'completed_on': {'key': 'completedOn', 'type': 'iso-8601'}, - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release': {'key': 'release', 'type': 'ReleaseReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} - } - - def __init__(self, _links=None, attempt=None, completed_on=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): - super(Deployment, self).__init__() - self._links = _links - self.attempt = attempt - self.completed_on = completed_on - self.conditions = conditions - self.definition_environment_id = definition_environment_id - self.deployment_status = deployment_status - self.id = id - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.post_deploy_approvals = post_deploy_approvals - self.pre_deploy_approvals = pre_deploy_approvals - self.queued_on = queued_on - self.reason = reason - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.requested_by = requested_by - self.requested_for = requested_for - self.scheduled_deployment_time = scheduled_deployment_time - self.started_on = started_on - - -class DeploymentAttempt(Model): - """DeploymentAttempt. - - :param attempt: - :type attempt: int - :param deployment_id: - :type deployment_id: int - :param error_log: Error log to show any unexpected error that occurred during executing deploy step - :type error_log: str - :param has_started: Specifies whether deployment has started or not - :type has_started: bool - :param id: - :type id: int - :param issues: All the issues related to the deployment - :type issues: list of :class:`Issue ` - :param job: - :type job: :class:`ReleaseTask ` - :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` - :param last_modified_on: - :type last_modified_on: datetime - :param operation_status: - :type operation_status: object - :param post_deployment_gates: - :type post_deployment_gates: :class:`ReleaseGates ` - :param pre_deployment_gates: - :type pre_deployment_gates: :class:`ReleaseGates ` - :param queued_on: - :type queued_on: datetime - :param reason: - :type reason: object - :param release_deploy_phases: - :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` - :param requested_by: - :type requested_by: :class:`IdentityRef ` - :param requested_for: - :type requested_for: :class:`IdentityRef ` - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'has_started': {'key': 'hasStarted', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'int'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseGates'}, - 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseGates'}, - 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, - 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, - 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, issues=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): - super(DeploymentAttempt, self).__init__() - self.attempt = attempt - self.deployment_id = deployment_id - self.error_log = error_log - self.has_started = has_started - self.id = id - self.issues = issues - self.job = job - self.last_modified_by = last_modified_by - self.last_modified_on = last_modified_on - self.operation_status = operation_status - self.post_deployment_gates = post_deployment_gates - self.pre_deployment_gates = pre_deployment_gates - self.queued_on = queued_on - self.reason = reason - self.release_deploy_phases = release_deploy_phases - self.requested_by = requested_by - self.requested_for = requested_for - self.run_plan_id = run_plan_id - self.status = status - self.tasks = tasks - - -class DeploymentJob(Model): - """DeploymentJob. - - :param job: - :type job: :class:`ReleaseTask ` - :param tasks: - :type tasks: list of :class:`ReleaseTask ` - """ - - _attribute_map = { - 'job': {'key': 'job', 'type': 'ReleaseTask'}, - 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} - } - - def __init__(self, job=None, tasks=None): - super(DeploymentJob, self).__init__() - self.job = job - self.tasks = tasks - - -class DeploymentQueryParameters(Model): - """DeploymentQueryParameters. - - :param artifact_source_id: - :type artifact_source_id: str - :param artifact_type_id: - :type artifact_type_id: str - :param artifact_versions: - :type artifact_versions: list of str - :param deployments_per_environment: - :type deployments_per_environment: int - :param deployment_status: - :type deployment_status: object - :param environments: - :type environments: list of :class:`DefinitionEnvironmentReference ` - :param expands: - :type expands: object - :param is_deleted: - :type is_deleted: bool - :param latest_deployments_only: - :type latest_deployments_only: bool - :param max_deployments_per_environment: - :type max_deployments_per_environment: int - :param max_modified_time: - :type max_modified_time: datetime - :param min_modified_time: - :type min_modified_time: datetime - :param operation_status: - :type operation_status: object - :param query_order: - :type query_order: object - :param query_type: - :type query_type: object - :param source_branch: - :type source_branch: str - """ - - _attribute_map = { - 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, - 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, - 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, - 'deployments_per_environment': {'key': 'deploymentsPerEnvironment', 'type': 'int'}, - 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, - 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, - 'expands': {'key': 'expands', 'type': 'object'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, - 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, - 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, - 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, - 'operation_status': {'key': 'operationStatus', 'type': 'object'}, - 'query_order': {'key': 'queryOrder', 'type': 'object'}, - 'query_type': {'key': 'queryType', 'type': 'object'}, - 'source_branch': {'key': 'sourceBranch', 'type': 'str'} - } - - def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployments_per_environment=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None, query_type=None, source_branch=None): - super(DeploymentQueryParameters, self).__init__() - self.artifact_source_id = artifact_source_id - self.artifact_type_id = artifact_type_id - self.artifact_versions = artifact_versions - self.deployments_per_environment = deployments_per_environment - self.deployment_status = deployment_status - self.environments = environments - self.expands = expands - self.is_deleted = is_deleted - self.latest_deployments_only = latest_deployments_only - self.max_deployments_per_environment = max_deployments_per_environment - self.max_modified_time = max_modified_time - self.min_modified_time = min_modified_time - self.operation_status = operation_status - self.query_order = query_order - self.query_type = query_type - self.source_branch = source_branch - - -class EmailRecipients(Model): - """EmailRecipients. - - :param email_addresses: - :type email_addresses: list of str - :param tfs_ids: - :type tfs_ids: list of str - """ - - _attribute_map = { - 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, - 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} - } - - def __init__(self, email_addresses=None, tfs_ids=None): - super(EmailRecipients, self).__init__() - self.email_addresses = email_addresses - self.tfs_ids = tfs_ids - - -class EnvironmentExecutionPolicy(Model): - """EnvironmentExecutionPolicy. - - :param concurrency_count: This policy decides, how many environments would be with Environment Runner. - :type concurrency_count: int - :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. - :type queue_depth_count: int - """ - - _attribute_map = { - 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, - 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} - } - - def __init__(self, concurrency_count=None, queue_depth_count=None): - super(EnvironmentExecutionPolicy, self).__init__() - self.concurrency_count = concurrency_count - self.queue_depth_count = queue_depth_count - - -class EnvironmentOptions(Model): - """EnvironmentOptions. - - :param auto_link_work_items: - :type auto_link_work_items: bool - :param badge_enabled: - :type badge_enabled: bool - :param email_notification_type: - :type email_notification_type: str - :param email_recipients: - :type email_recipients: str - :param enable_access_token: - :type enable_access_token: bool - :param publish_deployment_status: - :type publish_deployment_status: bool - :param skip_artifacts_download: - :type skip_artifacts_download: bool - :param timeout_in_minutes: - :type timeout_in_minutes: int - """ - - _attribute_map = { - 'auto_link_work_items': {'key': 'autoLinkWorkItems', 'type': 'bool'}, - 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, - 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, - 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, - 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, - 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, - 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} - } - - def __init__(self, auto_link_work_items=None, badge_enabled=None, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, skip_artifacts_download=None, timeout_in_minutes=None): - super(EnvironmentOptions, self).__init__() - self.auto_link_work_items = auto_link_work_items - self.badge_enabled = badge_enabled - self.email_notification_type = email_notification_type - self.email_recipients = email_recipients - self.enable_access_token = enable_access_token - self.publish_deployment_status = publish_deployment_status - self.skip_artifacts_download = skip_artifacts_download - self.timeout_in_minutes = timeout_in_minutes - - -class EnvironmentRetentionPolicy(Model): - """EnvironmentRetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - :param releases_to_keep: - :type releases_to_keep: int - :param retain_build: - :type retain_build: bool - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, - 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, - 'retain_build': {'key': 'retainBuild', 'type': 'bool'} - } - - def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): - super(EnvironmentRetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep - self.releases_to_keep = releases_to_keep - self.retain_build = retain_build - - -class FavoriteItem(Model): - """FavoriteItem. - - :param data: Application specific data for the entry - :type data: str - :param id: Unique Id of the the entry - :type id: str - :param name: Display text for favorite entry - :type name: str - :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder - :type type: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, data=None, id=None, name=None, type=None): - super(FavoriteItem, self).__init__() - self.data = data - self.id = id - self.name = name - self.type = type - - -class Folder(Model): - """Folder. - - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: - :type created_on: datetime - :param description: - :type description: str - :param last_changed_by: - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: - :type last_changed_date: datetime - :param path: - :type path: str - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, - 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, - 'path': {'key': 'path', 'type': 'str'} - } - - def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): - super(Folder, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.last_changed_by = last_changed_by - self.last_changed_date = last_changed_date - self.path = path - - -class GraphSubjectBase(Model): - """GraphSubjectBase. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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): - """IdentityRef. - - :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` - :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - :type descriptor: str - :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - :type display_name: str - :param url: This url is the full route to the source resource of this graph subject. - :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 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'}, - '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, 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.profile_url = profile_url - self.unique_name = unique_name - - -class InputDescriptor(Model): - """InputDescriptor. - - :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. - :type dependency_input_ids: list of str - :param description: Description of what this input is used for - :type description: str - :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. - :type group_name: str - :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. - :type has_dynamic_value_information: bool - :param id: Identifier for the subscription input - :type id: str - :param input_mode: Mode in which the value of this input should be entered - :type input_mode: object - :param is_confidential: Gets whether this input is confidential, such as for a password or application key - :type is_confidential: bool - :param name: Localized name which can be shown as a label for the subscription input - :type name: str - :param properties: Custom properties for the input which can be used by the service provider - :type properties: dict - :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. - :type type: str - :param use_in_default_description: Gets whether this input is included in the default generated action description. - :type use_in_default_description: bool - :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` - :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. - :type value_hint: str - :param values: Information about possible values for this input - :type values: :class:`InputValues ` - """ - - _attribute_map = { - 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, - 'description': {'key': 'description', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'input_mode': {'key': 'inputMode', 'type': 'object'}, - 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, - 'type': {'key': 'type', 'type': 'str'}, - 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, - 'validation': {'key': 'validation', 'type': 'InputValidation'}, - 'value_hint': {'key': 'valueHint', 'type': 'str'}, - 'values': {'key': 'values', 'type': 'InputValues'} - } - - def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): - super(InputDescriptor, self).__init__() - self.dependency_input_ids = dependency_input_ids - self.description = description - self.group_name = group_name - self.has_dynamic_value_information = has_dynamic_value_information - self.id = id - self.input_mode = input_mode - self.is_confidential = is_confidential - self.name = name - self.properties = properties - self.type = type - self.use_in_default_description = use_in_default_description - self.validation = validation - self.value_hint = value_hint - self.values = values - - -class InputValidation(Model): - """InputValidation. - - :param data_type: - :type data_type: object - :param is_required: - :type is_required: bool - :param max_length: - :type max_length: int - :param max_value: - :type max_value: decimal - :param min_length: - :type min_length: int - :param min_value: - :type min_value: decimal - :param pattern: - :type pattern: str - :param pattern_mismatch_error_message: - :type pattern_mismatch_error_message: str - """ - - _attribute_map = { - 'data_type': {'key': 'dataType', 'type': 'object'}, - 'is_required': {'key': 'isRequired', 'type': 'bool'}, - 'max_length': {'key': 'maxLength', 'type': 'int'}, - 'max_value': {'key': 'maxValue', 'type': 'decimal'}, - 'min_length': {'key': 'minLength', 'type': 'int'}, - 'min_value': {'key': 'minValue', 'type': 'decimal'}, - 'pattern': {'key': 'pattern', 'type': 'str'}, - 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} - } - - def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): - super(InputValidation, self).__init__() - self.data_type = data_type - self.is_required = is_required - self.max_length = max_length - self.max_value = max_value - self.min_length = min_length - self.min_value = min_value - self.pattern = pattern - self.pattern_mismatch_error_message = pattern_mismatch_error_message - - -class InputValue(Model): - """InputValue. - - :param data: Any other data about this input - :type data: dict - :param display_value: The text to show for the display of this value - :type display_value: str - :param value: The value to store for this input - :type value: str - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': '{object}'}, - 'display_value': {'key': 'displayValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, data=None, display_value=None, value=None): - super(InputValue, self).__init__() - self.data = data - self.display_value = display_value - self.value = value - - -class InputValues(Model): - """InputValues. - - :param default_value: The default value to use for this input - :type default_value: str - :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` - :param input_id: The id of the input - :type input_id: str - :param is_disabled: Should this input be disabled - :type is_disabled: bool - :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) - :type is_limited_to_possible_values: bool - :param is_read_only: Should this input be made read-only - :type is_read_only: bool - :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` - """ - - _attribute_map = { - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'InputValuesError'}, - 'input_id': {'key': 'inputId', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, - 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, - 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} - } - - def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): - super(InputValues, self).__init__() - self.default_value = default_value - self.error = error - self.input_id = input_id - self.is_disabled = is_disabled - self.is_limited_to_possible_values = is_limited_to_possible_values - self.is_read_only = is_read_only - self.possible_values = possible_values - - -class InputValuesError(Model): - """InputValuesError. - - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, message=None): - super(InputValuesError, self).__init__() - self.message = message - - -class InputValuesQuery(Model): - """InputValuesQuery. - - :param current_values: - :type current_values: dict - :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` - :param resource: Subscription containing information about the publisher/consumer and the current input values - :type resource: object - """ - - _attribute_map = { - 'current_values': {'key': 'currentValues', 'type': '{str}'}, - 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, - 'resource': {'key': 'resource', 'type': 'object'} - } - - def __init__(self, current_values=None, input_values=None, resource=None): - super(InputValuesQuery, self).__init__() - self.current_values = current_values - self.input_values = input_values - self.resource = resource - - -class Issue(Model): - """Issue. - - :param issue_type: - :type issue_type: str - :param message: - :type message: str - """ - - _attribute_map = { - 'issue_type': {'key': 'issueType', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, issue_type=None, message=None): - super(Issue, self).__init__() - self.issue_type = issue_type - self.message = message - - -class MailMessage(Model): - """MailMessage. - - :param body: - :type body: str - :param cC: - :type cC: :class:`EmailRecipients ` - :param in_reply_to: - :type in_reply_to: str - :param message_id: - :type message_id: str - :param reply_by: - :type reply_by: datetime - :param reply_to: - :type reply_to: :class:`EmailRecipients ` - :param sections: - :type sections: list of MailSectionType - :param sender_type: - :type sender_type: object - :param subject: - :type subject: str - :param to: - :type to: :class:`EmailRecipients ` - """ - - _attribute_map = { - 'body': {'key': 'body', 'type': 'str'}, - 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, - 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'str'}, - 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, - 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, - 'sections': {'key': 'sections', 'type': '[object]'}, - 'sender_type': {'key': 'senderType', 'type': 'object'}, - 'subject': {'key': 'subject', 'type': 'str'}, - 'to': {'key': 'to', 'type': 'EmailRecipients'} - } - - def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): - super(MailMessage, self).__init__() - self.body = body - self.cC = cC - self.in_reply_to = in_reply_to - self.message_id = message_id - self.reply_by = reply_by - self.reply_to = reply_to - self.sections = sections - self.sender_type = sender_type - self.subject = subject - self.to = to - - -class ManualIntervention(Model): - """ManualIntervention. - - :param approver: Gets or sets the identity who should approve. - :type approver: :class:`IdentityRef ` - :param comments: Gets or sets comments for approval. - :type comments: str - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param id: Gets the unique identifier for manual intervention. - :type id: int - :param instructions: Gets or sets instructions for approval. - :type instructions: str - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets the name. - :type name: str - :param release: Gets releaseReference for manual intervention. - :type release: :class:`ReleaseShallowReference ` - :param release_definition: Gets releaseDefinitionReference for manual intervention. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference for manual intervention. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param status: Gets or sets the status of the manual intervention. - :type status: object - :param task_instance_id: Get task instance identifier. - :type task_instance_id: str - :param url: Gets url to access the manual intervention. - :type url: str - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'instructions': {'key': 'instructions', 'type': 'str'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): - super(ManualIntervention, self).__init__() - self.approver = approver - self.comments = comments - self.created_on = created_on - self.id = id - self.instructions = instructions - self.modified_on = modified_on - self.name = name - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.status = status - self.task_instance_id = task_instance_id - self.url = url - - -class ManualInterventionUpdateMetadata(Model): - """ManualInterventionUpdateMetadata. - - :param comment: Sets the comment for manual intervention update. - :type comment: str - :param status: Sets the status of the manual intervention. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, status=None): - super(ManualInterventionUpdateMetadata, self).__init__() - self.comment = comment - self.status = status - - -class Metric(Model): - """Metric. - - :param name: - :type name: str - :param value: - :type value: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'} - } - - def __init__(self, name=None, value=None): - super(Metric, self).__init__() - self.name = name - self.value = value - - -class PipelineProcess(Model): - """PipelineProcess. - - :param type: - :type type: object - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'object'} - } - - def __init__(self, type=None): - super(PipelineProcess, self).__init__() - self.type = type - - -class ProcessParameters(Model): - """ProcessParameters. - - :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` - :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` - :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` - """ - - _attribute_map = { - 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, - 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, - 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} - } - - def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): - super(ProcessParameters, self).__init__() - self.data_source_bindings = data_source_bindings - self.inputs = inputs - self.source_definitions = source_definitions - - -class ProjectReference(Model): - """ProjectReference. - - :param id: Gets the unique identifier of this field. - :type id: str - :param name: Gets name of project. - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, name=None): - super(ProjectReference, self).__init__() - self.id = id - self.name = name - - -class QueuedReleaseData(Model): - """QueuedReleaseData. - - :param project_id: - :type project_id: str - :param queue_position: - :type queue_position: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'project_id': {'key': 'projectId', 'type': 'str'}, - 'queue_position': {'key': 'queuePosition', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, project_id=None, queue_position=None, release_id=None): - super(QueuedReleaseData, self).__init__() - self.project_id = project_id - self.queue_position = queue_position - self.release_id = release_id - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links - - -class Release(Model): - """Release. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_snapshot_revision: Gets revision number of definition snapshot. - :type definition_snapshot_revision: int - :param description: Gets or sets description of release. - :type description: str - :param environments: Gets list of environments. - :type environments: list of :class:`ReleaseEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param keep_forever: Whether to exclude the release from retention policies. - :type keep_forever: bool - :param logs_container_url: Gets logs container url. - :type logs_container_url: str - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param pool_name: Gets pool name. - :type pool_name: str - :param project_reference: Gets or sets project reference. - :type project_reference: :class:`ProjectReference ` - :param properties: - :type properties: :class:`object ` - :param reason: Gets reason of release. - :type reason: object - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_name_format: Gets release name format. - :type release_name_format: str - :param status: Gets status. - :type status: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param triggering_artifact_alias: - :type triggering_artifact_alias: str - :param url: - :type url: str - :param variable_groups: Gets the list of variable groups. - :type variable_groups: list of :class:`VariableGroup ` - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pool_name': {'key': 'poolName', 'type': 'str'}, - 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggering_artifact_alias': {'key': 'triggeringArtifactAlias', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, triggering_artifact_alias=None, url=None, variable_groups=None, variables=None): - super(Release, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.definition_snapshot_revision = definition_snapshot_revision - self.description = description - self.environments = environments - self.id = id - self.keep_forever = keep_forever - self.logs_container_url = logs_container_url - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.pool_name = pool_name - self.project_reference = project_reference - self.properties = properties - self.reason = reason - self.release_definition = release_definition - self.release_name_format = release_name_format - self.status = status - self.tags = tags - self.triggering_artifact_alias = triggering_artifact_alias - self.url = url - self.variable_groups = variable_groups - self.variables = variables - - -class ReleaseApproval(Model): - """ReleaseApproval. - - :param approval_type: Gets or sets the type of approval. - :type approval_type: object - :param approved_by: Gets the identity who approved. - :type approved_by: :class:`IdentityRef ` - :param approver: Gets or sets the identity who should approve. - :type approver: :class:`IdentityRef ` - :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. - :type attempt: int - :param comments: Gets or sets comments for approval. - :type comments: str - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param history: Gets history which specifies all approvals associated with this approval. - :type history: list of :class:`ReleaseApprovalHistory ` - :param id: Gets the unique identifier of this field. - :type id: int - :param is_automated: Gets or sets as approval is automated or not. - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. - :type rank: int - :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. - :type release_environment: :class:`ReleaseEnvironmentShallowReference ` - :param revision: Gets the revision number. - :type revision: int - :param status: Gets or sets the status of the approval. - :type status: object - :param trial_number: - :type trial_number: int - :param url: Gets url to access the approval. - :type url: str - """ - - _attribute_map = { - 'approval_type': {'key': 'approvalType', 'type': 'object'}, - 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'attempt': {'key': 'attempt', 'type': 'int'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'object'}, - 'trial_number': {'key': 'trialNumber', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): - super(ReleaseApproval, self).__init__() - self.approval_type = approval_type - self.approved_by = approved_by - self.approver = approver - self.attempt = attempt - self.comments = comments - self.created_on = created_on - self.history = history - self.id = id - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.modified_on = modified_on - self.rank = rank - self.release = release - self.release_definition = release_definition - self.release_environment = release_environment - self.revision = revision - self.status = status - self.trial_number = trial_number - self.url = url - - -class ReleaseApprovalHistory(Model): - """ReleaseApprovalHistory. - - :param approver: - :type approver: :class:`IdentityRef ` - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param comments: - :type comments: str - :param created_on: - :type created_on: datetime - :param modified_on: - :type modified_on: datetime - :param revision: - :type revision: int - """ - - _attribute_map = { - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'comments': {'key': 'comments', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): - super(ReleaseApprovalHistory, self).__init__() - self.approver = approver - self.changed_by = changed_by - self.comments = comments - self.created_on = created_on - self.modified_on = modified_on - self.revision = revision - - -class ReleaseCondition(Condition): - """ReleaseCondition. - - :param condition_type: Gets or sets the condition type. - :type condition_type: object - :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. - :type name: str - :param value: Gets or set value of the condition. - :type value: str - :param result: - :type result: bool - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'result': {'key': 'result', 'type': 'bool'} - } - - def __init__(self, condition_type=None, name=None, value=None, result=None): - super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) - self.result = result - - -class ReleaseDefinition(Model): - """ReleaseDefinition. - - :param _links: Gets links to access the release definition. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets or sets the list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param comment: Gets or sets comment. - :type comment: str - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets the description. - :type description: str - :param environments: Gets or sets the list of environments. - :type environments: list of :class:`ReleaseDefinitionEnvironment ` - :param id: Gets the unique identifier of this field. - :type id: int - :param is_deleted: Whether release definition is deleted. - :type is_deleted: bool - :param last_release: Gets the reference of last release. - :type last_release: :class:`ReleaseReference ` - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets the name. - :type name: str - :param path: Gets or sets the path. - :type path: str - :param pipeline_process: Gets or sets pipeline process. - :type pipeline_process: :class:`PipelineProcess ` - :param properties: Gets or sets properties. - :type properties: :class:`object ` - :param release_name_format: Gets or sets the release name format. - :type release_name_format: str - :param retention_policy: - :type retention_policy: :class:`RetentionPolicy ` - :param revision: Gets the revision number. - :type revision: int - :param source: Gets or sets source of release definition. - :type source: object - :param tags: Gets or sets list of tags. - :type tags: list of str - :param triggers: Gets or sets the list of triggers. - :type triggers: list of :class:`object ` - :param url: Gets url to access the release definition. - :type url: str - :param variable_groups: Gets or sets the list of variable groups. - :type variable_groups: list of int - :param variables: Gets or sets the dictionary of variables. - :type variables: dict - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'pipeline_process': {'key': 'pipelineProcess', 'type': 'PipelineProcess'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'revision': {'key': 'revision', 'type': 'int'}, - 'source': {'key': 'source', 'type': 'object'}, - 'tags': {'key': 'tags', 'type': '[str]'}, - 'triggers': {'key': 'triggers', 'type': '[object]'}, - 'url': {'key': 'url', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, id=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, name=None, path=None, pipeline_process=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, url=None, variable_groups=None, variables=None): - super(ReleaseDefinition, self).__init__() - self._links = _links - self.artifacts = artifacts - self.comment = comment - self.created_by = created_by - self.created_on = created_on - self.description = description - self.environments = environments - self.id = id - self.is_deleted = is_deleted - self.last_release = last_release - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.path = path - self.pipeline_process = pipeline_process - self.properties = properties - self.release_name_format = release_name_format - self.retention_policy = retention_policy - self.revision = revision - self.source = source - self.tags = tags - self.triggers = triggers - self.url = url - self.variable_groups = variable_groups - self.variables = variables - - -class ReleaseDefinitionApprovals(Model): - """ReleaseDefinitionApprovals. - - :param approval_options: - :type approval_options: :class:`ApprovalOptions ` - :param approvals: - :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` - """ - - _attribute_map = { - 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, - 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} - } - - def __init__(self, approval_options=None, approvals=None): - super(ReleaseDefinitionApprovals, self).__init__() - self.approval_options = approval_options - self.approvals = approvals - - -class ReleaseDefinitionEnvironment(Model): - """ReleaseDefinitionEnvironment. - - :param badge_url: - :type badge_url: str - :param conditions: - :type conditions: list of :class:`Condition ` - :param demands: - :type demands: list of :class:`object ` - :param deploy_phases: - :type deploy_phases: list of :class:`object ` - :param deploy_step: - :type deploy_step: :class:`ReleaseDefinitionDeployStep ` - :param environment_options: - :type environment_options: :class:`EnvironmentOptions ` - :param execution_policy: - :type execution_policy: :class:`EnvironmentExecutionPolicy ` - :param id: - :type id: int - :param name: - :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param post_deploy_approvals: - :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param post_deployment_gates: - :type post_deployment_gates: :class:`ReleaseDefinitionGatesStep ` - :param pre_deploy_approvals: - :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` - :param pre_deployment_gates: - :type pre_deployment_gates: :class:`ReleaseDefinitionGatesStep ` - :param process_parameters: - :type process_parameters: :class:`ProcessParameters ` - :param properties: - :type properties: :class:`object ` - :param queue_id: - :type queue_id: int - :param rank: - :type rank: int - :param retention_policy: - :type retention_policy: :class:`EnvironmentRetentionPolicy ` - :param run_options: - :type run_options: dict - :param schedules: - :type schedules: list of :class:`ReleaseSchedule ` - :param variable_groups: - :type variable_groups: list of int - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'badge_url': {'key': 'badgeUrl', 'type': 'str'}, - 'conditions': {'key': 'conditions', 'type': '[Condition]'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, - 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'run_options': {'key': 'runOptions', 'type': '{str}'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} - } - - def __init__(self, badge_url=None, conditions=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): - super(ReleaseDefinitionEnvironment, self).__init__() - self.badge_url = badge_url - self.conditions = conditions - self.demands = demands - self.deploy_phases = deploy_phases - self.deploy_step = deploy_step - self.environment_options = environment_options - self.execution_policy = execution_policy - self.id = id - self.name = name - self.owner = owner - self.post_deploy_approvals = post_deploy_approvals - self.post_deployment_gates = post_deployment_gates - self.pre_deploy_approvals = pre_deploy_approvals - self.pre_deployment_gates = pre_deployment_gates - self.process_parameters = process_parameters - self.properties = properties - self.queue_id = queue_id - self.rank = rank - self.retention_policy = retention_policy - self.run_options = run_options - self.schedules = schedules - self.variable_groups = variable_groups - self.variables = variables - - -class ReleaseDefinitionEnvironmentStep(Model): - """ReleaseDefinitionEnvironmentStep. - - :param id: - :type id: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, id=None): - super(ReleaseDefinitionEnvironmentStep, self).__init__() - self.id = id - - -class ReleaseDefinitionEnvironmentSummary(Model): - """ReleaseDefinitionEnvironmentSummary. - - :param id: - :type id: int - :param last_releases: - :type last_releases: list of :class:`ReleaseShallowReference ` - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, id=None, last_releases=None, name=None): - super(ReleaseDefinitionEnvironmentSummary, self).__init__() - self.id = id - self.last_releases = last_releases - self.name = name - - -class ReleaseDefinitionEnvironmentTemplate(Model): - """ReleaseDefinitionEnvironmentTemplate. - - :param can_delete: - :type can_delete: bool - :param category: - :type category: str - :param description: - :type description: str - :param environment: - :type environment: :class:`ReleaseDefinitionEnvironment ` - :param icon_task_id: - :type icon_task_id: str - :param icon_uri: - :type icon_uri: str - :param id: - :type id: str - :param is_deleted: - :type is_deleted: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'category': {'key': 'category', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, - 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, - 'icon_uri': {'key': 'iconUri', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, is_deleted=None, name=None): - super(ReleaseDefinitionEnvironmentTemplate, self).__init__() - self.can_delete = can_delete - self.category = category - self.description = description - self.environment = environment - self.icon_task_id = icon_task_id - self.icon_uri = icon_uri - self.id = id - self.is_deleted = is_deleted - self.name = name - - -class ReleaseDefinitionGate(Model): - """ReleaseDefinitionGate. - - :param tasks: - :type tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, tasks=None): - super(ReleaseDefinitionGate, self).__init__() - self.tasks = tasks - - -class ReleaseDefinitionGatesOptions(Model): - """ReleaseDefinitionGatesOptions. - - :param is_enabled: - :type is_enabled: bool - :param sampling_interval: - :type sampling_interval: int - :param stabilization_time: - :type stabilization_time: int - :param timeout: - :type timeout: int - """ - - _attribute_map = { - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, - 'stabilization_time': {'key': 'stabilizationTime', 'type': 'int'}, - 'timeout': {'key': 'timeout', 'type': 'int'} - } - - def __init__(self, is_enabled=None, sampling_interval=None, stabilization_time=None, timeout=None): - super(ReleaseDefinitionGatesOptions, self).__init__() - self.is_enabled = is_enabled - self.sampling_interval = sampling_interval - self.stabilization_time = stabilization_time - self.timeout = timeout - - -class ReleaseDefinitionGatesStep(Model): - """ReleaseDefinitionGatesStep. - - :param gates: - :type gates: list of :class:`ReleaseDefinitionGate ` - :param gates_options: - :type gates_options: :class:`ReleaseDefinitionGatesOptions ` - :param id: - :type id: int - """ - - _attribute_map = { - 'gates': {'key': 'gates', 'type': '[ReleaseDefinitionGate]'}, - 'gates_options': {'key': 'gatesOptions', 'type': 'ReleaseDefinitionGatesOptions'}, - 'id': {'key': 'id', 'type': 'int'} - } - - def __init__(self, gates=None, gates_options=None, id=None): - super(ReleaseDefinitionGatesStep, self).__init__() - self.gates = gates - self.gates_options = gates_options - self.id = id - - -class ReleaseDefinitionRevision(Model): - """ReleaseDefinitionRevision. - - :param api_version: Gets api-version for revision object. - :type api_version: str - :param changed_by: Gets the identity who did change. - :type changed_by: :class:`IdentityRef ` - :param changed_date: Gets date on which it got changed. - :type changed_date: datetime - :param change_type: Gets type of change. - :type change_type: object - :param comment: Gets comments for revision. - :type comment: str - :param definition_id: Get id of the definition. - :type definition_id: int - :param definition_url: Gets definition url. - :type definition_url: str - :param revision: Get revision number of the definition. - :type revision: int - """ - - _attribute_map = { - 'api_version': {'key': 'apiVersion', 'type': 'str'}, - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_type': {'key': 'changeType', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, - 'revision': {'key': 'revision', 'type': 'int'} - } - - def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): - super(ReleaseDefinitionRevision, self).__init__() - self.api_version = api_version - self.changed_by = changed_by - self.changed_date = changed_date - self.change_type = change_type - self.comment = comment - self.definition_id = definition_id - self.definition_url = definition_url - self.revision = revision - - -class ReleaseDefinitionShallowReference(Model): - """ReleaseDefinitionShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release definition. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release definition. - :type id: int - :param name: Gets or sets the name of the release definition. - :type name: str - :param url: Gets the REST API url to access the release definition. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseDefinitionShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url - - -class ReleaseDefinitionSummary(Model): - """ReleaseDefinitionSummary. - - :param environments: - :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` - :param release_definition: - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param releases: - :type releases: list of :class:`Release ` - """ - - _attribute_map = { - 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'releases': {'key': 'releases', 'type': '[Release]'} - } - - def __init__(self, environments=None, release_definition=None, releases=None): - super(ReleaseDefinitionSummary, self).__init__() - self.environments = environments - self.release_definition = release_definition - self.releases = releases - - -class ReleaseDefinitionUndeleteParameter(Model): - """ReleaseDefinitionUndeleteParameter. - - :param comment: Gets or sets comment. - :type comment: str - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'} - } - - def __init__(self, comment=None): - super(ReleaseDefinitionUndeleteParameter, self).__init__() - self.comment = comment - - -class ReleaseDeployPhase(Model): - """ReleaseDeployPhase. - - :param deployment_jobs: - :type deployment_jobs: list of :class:`DeploymentJob ` - :param error_log: - :type error_log: str - :param id: - :type id: int - :param manual_interventions: - :type manual_interventions: list of :class:`ManualIntervention ` - :param name: - :type name: str - :param phase_id: - :type phase_id: str - :param phase_type: - :type phase_type: object - :param rank: - :type rank: int - :param run_plan_id: - :type run_plan_id: str - :param status: - :type status: object - """ - - _attribute_map = { - 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, - 'error_log': {'key': 'errorLog', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, - 'name': {'key': 'name', 'type': 'str'}, - 'phase_id': {'key': 'phaseId', 'type': 'str'}, - 'phase_type': {'key': 'phaseType', 'type': 'object'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, name=None, phase_id=None, phase_type=None, rank=None, run_plan_id=None, status=None): - super(ReleaseDeployPhase, self).__init__() - self.deployment_jobs = deployment_jobs - self.error_log = error_log - self.id = id - self.manual_interventions = manual_interventions - self.name = name - self.phase_id = phase_id - self.phase_type = phase_type - self.rank = rank - self.run_plan_id = run_plan_id - self.status = status - - -class ReleaseEnvironment(Model): - """ReleaseEnvironment. - - :param conditions: Gets list of conditions. - :type conditions: list of :class:`ReleaseCondition ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param definition_environment_id: Gets definition environment id. - :type definition_environment_id: int - :param demands: Gets demands. - :type demands: list of :class:`object ` - :param deploy_phases_snapshot: Gets list of deploy phases snapshot. - :type deploy_phases_snapshot: list of :class:`object ` - :param deploy_steps: Gets deploy steps. - :type deploy_steps: list of :class:`DeploymentAttempt ` - :param environment_options: Gets environment options. - :type environment_options: :class:`EnvironmentOptions ` - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets name. - :type name: str - :param next_scheduled_utc_time: Gets next scheduled UTC time. - :type next_scheduled_utc_time: datetime - :param owner: Gets the identity who is owner for release environment. - :type owner: :class:`IdentityRef ` - :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. - :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param post_deploy_approvals: Gets list of post deploy approvals. - :type post_deploy_approvals: list of :class:`ReleaseApproval ` - :param post_deployment_gates_snapshot: - :type post_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` - :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. - :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` - :param pre_deploy_approvals: Gets list of pre deploy approvals. - :type pre_deploy_approvals: list of :class:`ReleaseApproval ` - :param pre_deployment_gates_snapshot: - :type pre_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` - :param process_parameters: Gets process parameters. - :type process_parameters: :class:`ProcessParameters ` - :param queue_id: Gets queue id. - :type queue_id: int - :param rank: Gets rank. - :type rank: int - :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. - :type release: :class:`ReleaseShallowReference ` - :param release_created_by: Gets the identity who created release. - :type release_created_by: :class:`IdentityRef ` - :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param release_description: Gets release description. - :type release_description: str - :param release_id: Gets release id. - :type release_id: int - :param scheduled_deployment_time: Gets schedule deployment time of release environment. - :type scheduled_deployment_time: datetime - :param schedules: Gets list of schedules. - :type schedules: list of :class:`ReleaseSchedule ` - :param status: Gets environment status. - :type status: object - :param time_to_deploy: Gets time to deploy. - :type time_to_deploy: float - :param trigger_reason: Gets trigger reason. - :type trigger_reason: str - :param variable_groups: Gets the list of variable groups. - :type variable_groups: list of :class:`VariableGroup ` - :param variables: Gets the dictionary of variables. - :type variables: dict - :param workflow_tasks: Gets list of workflow tasks. - :type workflow_tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, - 'demands': {'key': 'demands', 'type': '[object]'}, - 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, - 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, - 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, - 'owner': {'key': 'owner', 'type': 'IdentityRef'}, - 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, - 'post_deployment_gates_snapshot': {'key': 'postDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, - 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, - 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, - 'pre_deployment_gates_snapshot': {'key': 'preDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, - 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, - 'queue_id': {'key': 'queueId', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, - 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'release_description': {'key': 'releaseDescription', 'type': 'str'}, - 'release_id': {'key': 'releaseId', 'type': 'int'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, - 'status': {'key': 'status', 'type': 'object'}, - 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, - 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, - 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, - 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, - 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, post_deployment_gates_snapshot=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, pre_deployment_gates_snapshot=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variable_groups=None, variables=None, workflow_tasks=None): - super(ReleaseEnvironment, self).__init__() - self.conditions = conditions - self.created_on = created_on - self.definition_environment_id = definition_environment_id - self.demands = demands - self.deploy_phases_snapshot = deploy_phases_snapshot - self.deploy_steps = deploy_steps - self.environment_options = environment_options - self.id = id - self.modified_on = modified_on - self.name = name - self.next_scheduled_utc_time = next_scheduled_utc_time - self.owner = owner - self.post_approvals_snapshot = post_approvals_snapshot - self.post_deploy_approvals = post_deploy_approvals - self.post_deployment_gates_snapshot = post_deployment_gates_snapshot - self.pre_approvals_snapshot = pre_approvals_snapshot - self.pre_deploy_approvals = pre_deploy_approvals - self.pre_deployment_gates_snapshot = pre_deployment_gates_snapshot - self.process_parameters = process_parameters - self.queue_id = queue_id - self.rank = rank - self.release = release - self.release_created_by = release_created_by - self.release_definition = release_definition - self.release_description = release_description - self.release_id = release_id - self.scheduled_deployment_time = scheduled_deployment_time - self.schedules = schedules - self.status = status - self.time_to_deploy = time_to_deploy - self.trigger_reason = trigger_reason - self.variable_groups = variable_groups - self.variables = variables - self.workflow_tasks = workflow_tasks - - -class ReleaseEnvironmentShallowReference(Model): - """ReleaseEnvironmentShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release environment. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release environment. - :type id: int - :param name: Gets or sets the name of the release environment. - :type name: str - :param url: Gets the REST API url to access the release environment. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseEnvironmentShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url - - -class ReleaseEnvironmentUpdateMetadata(Model): - """ReleaseEnvironmentUpdateMetadata. - - :param comment: Gets or sets comment. - :type comment: str - :param scheduled_deployment_time: Gets or sets scheduled deployment time. - :type scheduled_deployment_time: datetime - :param status: Gets or sets status of environment. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, scheduled_deployment_time=None, status=None): - super(ReleaseEnvironmentUpdateMetadata, self).__init__() - self.comment = comment - self.scheduled_deployment_time = scheduled_deployment_time - self.status = status - - -class ReleaseGates(Model): - """ReleaseGates. - - :param deployment_jobs: - :type deployment_jobs: list of :class:`DeploymentJob ` - :param id: - :type id: int - :param last_modified_on: - :type last_modified_on: datetime - :param run_plan_id: - :type run_plan_id: str - :param stabilization_completed_on: - :type stabilization_completed_on: datetime - :param started_on: - :type started_on: datetime - :param status: - :type status: object - """ - - _attribute_map = { - 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, - 'id': {'key': 'id', 'type': 'int'}, - 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, - 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, - 'stabilization_completed_on': {'key': 'stabilizationCompletedOn', 'type': 'iso-8601'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, deployment_jobs=None, id=None, last_modified_on=None, run_plan_id=None, stabilization_completed_on=None, started_on=None, status=None): - super(ReleaseGates, self).__init__() - self.deployment_jobs = deployment_jobs - self.id = id - self.last_modified_on = last_modified_on - self.run_plan_id = run_plan_id - self.stabilization_completed_on = stabilization_completed_on - self.started_on = started_on - self.status = status - - -class ReleaseReference(Model): - """ReleaseReference. - - :param _links: Gets links to access the release. - :type _links: :class:`ReferenceLinks ` - :param artifacts: Gets list of artifacts. - :type artifacts: list of :class:`Artifact ` - :param created_by: Gets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param name: Gets name of release. - :type name: str - :param reason: Gets reason for release. - :type reason: object - :param release_definition: Gets release definition shallow reference. - :type release_definition: :class:`ReleaseDefinitionShallowReference ` - :param url: - :type url: str - :param web_access_uri: - :type web_access_uri: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'name': {'key': 'name', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'object'}, - 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} - } - - def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): - super(ReleaseReference, self).__init__() - self._links = _links - self.artifacts = artifacts - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.name = name - self.reason = reason - self.release_definition = release_definition - self.url = url - self.web_access_uri = web_access_uri - - -class ReleaseRevision(Model): - """ReleaseRevision. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param change_details: - :type change_details: str - :param change_type: - :type change_type: str - :param comment: - :type comment: str - :param definition_snapshot_revision: - :type definition_snapshot_revision: int - :param release_id: - :type release_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'change_details': {'key': 'changeDetails', 'type': 'str'}, - 'change_type': {'key': 'changeType', 'type': 'str'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, - 'release_id': {'key': 'releaseId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): - super(ReleaseRevision, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.change_details = change_details - self.change_type = change_type - self.comment = comment - self.definition_snapshot_revision = definition_snapshot_revision - self.release_id = release_id - - -class ReleaseSchedule(Model): - """ReleaseSchedule. - - :param days_to_release: Days of the week to release - :type days_to_release: object - :param job_id: Team Foundation Job Definition Job Id - :type job_id: str - :param start_hours: Local time zone hour to start - :type start_hours: int - :param start_minutes: Local time zone minute to start - :type start_minutes: int - :param time_zone_id: Time zone Id of release schedule, such as 'UTC' - :type time_zone_id: str - """ - - _attribute_map = { - 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_hours': {'key': 'startHours', 'type': 'int'}, - 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, - 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} - } - - def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): - super(ReleaseSchedule, self).__init__() - self.days_to_release = days_to_release - self.job_id = job_id - self.start_hours = start_hours - self.start_minutes = start_minutes - self.time_zone_id = time_zone_id - - -class ReleaseSettings(Model): - """ReleaseSettings. - - :param retention_settings: - :type retention_settings: :class:`RetentionSettings ` - """ - - _attribute_map = { - 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} - } - - def __init__(self, retention_settings=None): - super(ReleaseSettings, self).__init__() - self.retention_settings = retention_settings - - -class ReleaseShallowReference(Model): - """ReleaseShallowReference. - - :param _links: Gets the links to related resources, APIs, and views for the release. - :type _links: :class:`ReferenceLinks ` - :param id: Gets the unique identifier of release. - :type id: int - :param name: Gets or sets the name of the release. - :type name: str - :param url: Gets the REST API url to access the release. - :type url: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, _links=None, id=None, name=None, url=None): - super(ReleaseShallowReference, self).__init__() - self._links = _links - self.id = id - self.name = name - self.url = url - - -class ReleaseStartMetadata(Model): - """ReleaseStartMetadata. - - :param artifacts: Sets list of artifact to create a release. - :type artifacts: list of :class:`ArtifactMetadata ` - :param definition_id: Sets definition Id to create a release. - :type definition_id: int - :param description: Sets description to create a release. - :type description: str - :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. - :type is_draft: bool - :param manual_environments: Sets list of environments to manual as condition. - :type manual_environments: list of str - :param properties: - :type properties: :class:`object ` - :param reason: Sets reason to create a release. - :type reason: object - """ - - _attribute_map = { - 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, - 'definition_id': {'key': 'definitionId', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'is_draft': {'key': 'isDraft', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'reason': {'key': 'reason', 'type': 'object'} - } - - def __init__(self, artifacts=None, definition_id=None, description=None, is_draft=None, manual_environments=None, properties=None, reason=None): - super(ReleaseStartMetadata, self).__init__() - self.artifacts = artifacts - self.definition_id = definition_id - self.description = description - self.is_draft = is_draft - self.manual_environments = manual_environments - self.properties = properties - self.reason = reason - - -class ReleaseTask(Model): - """ReleaseTask. - - :param agent_name: - :type agent_name: str - :param date_ended: - :type date_ended: datetime - :param date_started: - :type date_started: datetime - :param finish_time: - :type finish_time: datetime - :param id: - :type id: int - :param issues: - :type issues: list of :class:`Issue ` - :param line_count: - :type line_count: long - :param log_url: - :type log_url: str - :param name: - :type name: str - :param percent_complete: - :type percent_complete: int - :param rank: - :type rank: int - :param start_time: - :type start_time: datetime - :param status: - :type status: object - :param task: - :type task: :class:`WorkflowTaskReference ` - :param timeline_record_id: - :type timeline_record_id: str - """ - - _attribute_map = { - 'agent_name': {'key': 'agentName', 'type': 'str'}, - 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, - 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, - 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'int'}, - 'issues': {'key': 'issues', 'type': '[Issue]'}, - 'line_count': {'key': 'lineCount', 'type': 'long'}, - 'log_url': {'key': 'logUrl', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'object'}, - 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, - 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} - } - - def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, start_time=None, status=None, task=None, timeline_record_id=None): - super(ReleaseTask, self).__init__() - self.agent_name = agent_name - self.date_ended = date_ended - self.date_started = date_started - self.finish_time = finish_time - self.id = id - self.issues = issues - self.line_count = line_count - self.log_url = log_url - self.name = name - self.percent_complete = percent_complete - self.rank = rank - self.start_time = start_time - self.status = status - self.task = task - self.timeline_record_id = timeline_record_id - - -class ReleaseTaskAttachment(Model): - """ReleaseTaskAttachment. - - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_on: - :type created_on: datetime - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_on: - :type modified_on: datetime - :param name: - :type name: str - :param record_id: - :type record_id: str - :param timeline_id: - :type timeline_id: str - :param type: - :type type: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'record_id': {'key': 'recordId', 'type': 'str'}, - 'timeline_id': {'key': 'timelineId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'} - } - - def __init__(self, _links=None, created_on=None, modified_by=None, modified_on=None, name=None, record_id=None, timeline_id=None, type=None): - super(ReleaseTaskAttachment, self).__init__() - self._links = _links - self.created_on = created_on - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.record_id = record_id - self.timeline_id = timeline_id - self.type = type - - -class ReleaseUpdateMetadata(Model): - """ReleaseUpdateMetadata. - - :param comment: Sets comment for release. - :type comment: str - :param keep_forever: Set 'true' to exclude the release from retention policies. - :type keep_forever: bool - :param manual_environments: Sets list of manual environments. - :type manual_environments: list of str - :param status: Sets status of the release. - :type status: object - """ - - _attribute_map = { - 'comment': {'key': 'comment', 'type': 'str'}, - 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, - 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, - 'status': {'key': 'status', 'type': 'object'} - } - - def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): - super(ReleaseUpdateMetadata, self).__init__() - self.comment = comment - self.keep_forever = keep_forever - self.manual_environments = manual_environments - self.status = status - - -class ReleaseWorkItemRef(Model): - """ReleaseWorkItemRef. - - :param assignee: - :type assignee: str - :param id: - :type id: str - :param state: - :type state: str - :param title: - :type title: str - :param type: - :type type: str - :param url: - :type url: str - """ - - _attribute_map = { - 'assignee': {'key': 'assignee', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): - super(ReleaseWorkItemRef, self).__init__() - self.assignee = assignee - self.id = id - self.state = state - self.title = title - self.type = type - self.url = url - - -class RetentionPolicy(Model): - """RetentionPolicy. - - :param days_to_keep: - :type days_to_keep: int - """ - - _attribute_map = { - 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} - } - - def __init__(self, days_to_keep=None): - super(RetentionPolicy, self).__init__() - self.days_to_keep = days_to_keep - - -class RetentionSettings(Model): - """RetentionSettings. - - :param days_to_keep_deleted_releases: - :type days_to_keep_deleted_releases: int - :param default_environment_retention_policy: - :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - :param maximum_environment_retention_policy: - :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` - """ - - _attribute_map = { - 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, - 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, - 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} - } - - def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): - super(RetentionSettings, self).__init__() - self.days_to_keep_deleted_releases = days_to_keep_deleted_releases - self.default_environment_retention_policy = default_environment_retention_policy - self.maximum_environment_retention_policy = maximum_environment_retention_policy - - -class SummaryMailSection(Model): - """SummaryMailSection. - - :param html_content: - :type html_content: str - :param rank: - :type rank: int - :param section_type: - :type section_type: object - :param title: - :type title: str - """ - - _attribute_map = { - 'html_content': {'key': 'htmlContent', 'type': 'str'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'section_type': {'key': 'sectionType', 'type': 'object'}, - 'title': {'key': 'title', 'type': 'str'} - } - - def __init__(self, html_content=None, rank=None, section_type=None, title=None): - super(SummaryMailSection, self).__init__() - self.html_content = html_content - self.rank = rank - self.section_type = section_type - self.title = title - - -class TaskInputDefinitionBase(Model): - """TaskInputDefinitionBase. - - :param aliases: - :type aliases: list of str - :param default_value: - :type default_value: str - :param group_name: - :type group_name: str - :param help_mark_down: - :type help_mark_down: str - :param label: - :type label: str - :param name: - :type name: str - :param options: - :type options: dict - :param properties: - :type properties: dict - :param required: - :type required: bool - :param type: - :type type: str - :param validation: - :type validation: :class:`TaskInputValidation ` - :param visible_rule: - :type visible_rule: str - """ - - _attribute_map = { - 'aliases': {'key': 'aliases', 'type': '[str]'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'group_name': {'key': 'groupName', 'type': 'str'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'options': {'key': 'options', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, - 'visible_rule': {'key': 'visibleRule', 'type': 'str'} - } - - def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinitionBase, self).__init__() - self.aliases = aliases - self.default_value = default_value - self.group_name = group_name - self.help_mark_down = help_mark_down - self.label = label - self.name = name - self.options = options - self.properties = properties - self.required = required - self.type = type - self.validation = validation - self.visible_rule = visible_rule - - -class TaskInputValidation(Model): - """TaskInputValidation. - - :param expression: Conditional expression - :type expression: str - :param message: Message explaining how user can correct if validation fails - :type message: str - """ - - _attribute_map = { - 'expression': {'key': 'expression', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'} - } - - def __init__(self, expression=None, message=None): - super(TaskInputValidation, self).__init__() - self.expression = expression - self.message = message - - -class TaskSourceDefinitionBase(Model): - """TaskSourceDefinitionBase. - - :param auth_key: - :type auth_key: str - :param endpoint: - :type endpoint: str - :param key_selector: - :type key_selector: str - :param selector: - :type selector: str - :param target: - :type target: str - """ - - _attribute_map = { - 'auth_key': {'key': 'authKey', 'type': 'str'}, - 'endpoint': {'key': 'endpoint', 'type': 'str'}, - 'key_selector': {'key': 'keySelector', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'} - } - - def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): - super(TaskSourceDefinitionBase, self).__init__() - self.auth_key = auth_key - self.endpoint = endpoint - self.key_selector = key_selector - self.selector = selector - self.target = target - - -class VariableGroup(Model): - """VariableGroup. - - :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets date on which it got created. - :type created_on: datetime - :param description: Gets or sets description. - :type description: str - :param id: Gets the unique identifier of this field. - :type id: int - :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets date on which it got modified. - :type modified_on: datetime - :param name: Gets or sets name. - :type name: str - :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` - :param type: Gets or sets type. - :type type: str - :param variables: - :type variables: dict - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, - 'type': {'key': 'type', 'type': 'str'}, - 'variables': {'key': 'variables', 'type': '{VariableValue}'} - } - - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): - super(VariableGroup, self).__init__() - self.created_by = created_by - self.created_on = created_on - self.description = description - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.provider_data = provider_data - self.type = type - self.variables = variables - - -class VariableGroupProviderData(Model): - """VariableGroupProviderData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(VariableGroupProviderData, self).__init__() - - -class VariableValue(Model): - """VariableValue. - - :param is_secret: - :type is_secret: bool - :param value: - :type value: str - """ - - _attribute_map = { - 'is_secret': {'key': 'isSecret', 'type': 'bool'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, is_secret=None, value=None): - super(VariableValue, self).__init__() - self.is_secret = is_secret - self.value = value - - -class WorkflowTask(Model): - """WorkflowTask. - - :param always_run: - :type always_run: bool - :param condition: - :type condition: str - :param continue_on_error: - :type continue_on_error: bool - :param definition_type: - :type definition_type: str - :param enabled: - :type enabled: bool - :param inputs: - :type inputs: dict - :param name: - :type name: str - :param override_inputs: - :type override_inputs: dict - :param ref_name: - :type ref_name: str - :param task_id: - :type task_id: str - :param timeout_in_minutes: - :type timeout_in_minutes: int - :param version: - :type version: str - """ - - _attribute_map = { - 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, - 'condition': {'key': 'condition', 'type': 'str'}, - 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, - 'definition_type': {'key': 'definitionType', 'type': 'str'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'inputs': {'key': 'inputs', 'type': '{str}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, - 'ref_name': {'key': 'refName', 'type': 'str'}, - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): - super(WorkflowTask, self).__init__() - self.always_run = always_run - self.condition = condition - self.continue_on_error = continue_on_error - self.definition_type = definition_type - self.enabled = enabled - self.inputs = inputs - self.name = name - self.override_inputs = override_inputs - self.ref_name = ref_name - self.task_id = task_id - self.timeout_in_minutes = timeout_in_minutes - self.version = version - - -class WorkflowTaskReference(Model): - """WorkflowTaskReference. - - :param id: - :type id: str - :param name: - :type name: str - :param version: - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, name=None, version=None): - super(WorkflowTaskReference, self).__init__() - self.id = id - self.name = name - self.version = version - - -class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionApprovalStep. - - :param id: - :type id: int - :param approver: - :type approver: :class:`IdentityRef ` - :param is_automated: - :type is_automated: bool - :param is_notification_on: - :type is_notification_on: bool - :param rank: - :type rank: int - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'approver': {'key': 'approver', 'type': 'IdentityRef'}, - 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, - 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'} - } - - def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): - super(ReleaseDefinitionApprovalStep, self).__init__(id=id) - self.approver = approver - self.is_automated = is_automated - self.is_notification_on = is_notification_on - self.rank = rank - - -class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): - """ReleaseDefinitionDeployStep. - - :param id: - :type id: int - :param tasks: The list of steps for this definition. - :type tasks: list of :class:`WorkflowTask ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} - } - - def __init__(self, id=None, tasks=None): - super(ReleaseDefinitionDeployStep, self).__init__(id=id) - self.tasks = tasks - - -__all__ = [ - 'AgentArtifactDefinition', - 'ApprovalOptions', - 'Artifact', - 'ArtifactMetadata', - 'ArtifactSourceReference', - 'ArtifactTypeDefinition', - 'ArtifactVersion', - 'ArtifactVersionQueryResult', - 'AuthorizationHeader', - 'AutoTriggerIssue', - 'BuildVersion', - 'Change', - 'Condition', - 'ConfigurationVariableValue', - 'DataSourceBindingBase', - 'DefinitionEnvironmentReference', - 'Deployment', - 'DeploymentAttempt', - 'DeploymentJob', - 'DeploymentQueryParameters', - 'EmailRecipients', - 'EnvironmentExecutionPolicy', - 'EnvironmentOptions', - 'EnvironmentRetentionPolicy', - 'FavoriteItem', - 'Folder', - 'GraphSubjectBase', - 'IdentityRef', - 'InputDescriptor', - 'InputValidation', - 'InputValue', - 'InputValues', - 'InputValuesError', - 'InputValuesQuery', - 'Issue', - 'MailMessage', - 'ManualIntervention', - 'ManualInterventionUpdateMetadata', - 'Metric', - 'PipelineProcess', - 'ProcessParameters', - 'ProjectReference', - 'QueuedReleaseData', - 'ReferenceLinks', - 'Release', - 'ReleaseApproval', - 'ReleaseApprovalHistory', - 'ReleaseCondition', - 'ReleaseDefinition', - 'ReleaseDefinitionApprovals', - 'ReleaseDefinitionEnvironment', - 'ReleaseDefinitionEnvironmentStep', - 'ReleaseDefinitionEnvironmentSummary', - 'ReleaseDefinitionEnvironmentTemplate', - 'ReleaseDefinitionGate', - 'ReleaseDefinitionGatesOptions', - 'ReleaseDefinitionGatesStep', - 'ReleaseDefinitionRevision', - 'ReleaseDefinitionShallowReference', - 'ReleaseDefinitionSummary', - 'ReleaseDefinitionUndeleteParameter', - 'ReleaseDeployPhase', - 'ReleaseEnvironment', - 'ReleaseEnvironmentShallowReference', - 'ReleaseEnvironmentUpdateMetadata', - 'ReleaseGates', - 'ReleaseReference', - 'ReleaseRevision', - 'ReleaseSchedule', - 'ReleaseSettings', - 'ReleaseShallowReference', - 'ReleaseStartMetadata', - 'ReleaseTask', - 'ReleaseTaskAttachment', - 'ReleaseUpdateMetadata', - 'ReleaseWorkItemRef', - 'RetentionPolicy', - 'RetentionSettings', - 'SummaryMailSection', - 'TaskInputDefinitionBase', - 'TaskInputValidation', - 'TaskSourceDefinitionBase', - 'VariableGroup', - 'VariableGroupProviderData', - 'VariableValue', - 'WorkflowTask', - 'WorkflowTaskReference', - 'ReleaseDefinitionApprovalStep', - 'ReleaseDefinitionDeployStep', -] diff --git a/azure-devops/azure/devops/v4_1/release/release_client.py b/azure-devops/azure/devops/v4_1/release/release_client.py deleted file mode 100644 index 0452209a..00000000 --- a/azure-devops/azure/devops/v4_1/release/release_client.py +++ /dev/null @@ -1,782 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class ReleaseClient(Client): - """Release - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' - - def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): - """GetApprovals. - [Preview API] Get a list of approvals - :param str project: Project ID or project name - :param str assigned_to_filter: Approvals assigned to this user. - :param str status_filter: Approvals with this status. Default is 'pending'. - :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. - :param str type_filter: Approval with this type. - :param int top: Number of approvals to get. Default is 50. - :param int continuation_token: Gets the approvals after the continuation token provided. - :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. - :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. - :rtype: [ReleaseApproval] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if assigned_to_filter is not None: - query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if release_ids_filter is not None: - release_ids_filter = ",".join(map(str, release_ids_filter)) - query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') - if type_filter is not None: - query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') - if top is not None: - query_parameters['top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if include_my_group_approvals is not None: - query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') - response = self._send(http_method='GET', - location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) - - def update_release_approval(self, approval, project, approval_id): - """UpdateReleaseApproval. - [Preview API] Update status of an approval - :param :class:` ` approval: ReleaseApproval object having status, approver and comments. - :param str project: Project ID or project name - :param int approval_id: Id of the approval. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if approval_id is not None: - route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') - content = self._serialize.body(approval, 'ReleaseApproval') - response = self._send(http_method='PATCH', - location_id='9328e074-59fb-465a-89d9-b09c82ee5109', - version='4.1-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseApproval', response) - - def get_task_attachment_content(self, project, release_id, environment_id, attempt_id, timeline_id, record_id, type, name, **kwargs): - """GetTaskAttachmentContent. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int attempt_id: - :param str timeline_id: - :param str record_id: - :param str type: - :param str name: - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if attempt_id is not None: - route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') - if timeline_id is not None: - route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') - if record_id is not None: - route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - if name is not None: - route_values['name'] = self._serialize.url('name', name, 'str') - response = self._send(http_method='GET', - location_id='c4071f6d-3697-46ca-858e-8b10ff09e52f', - version='4.1-preview.1', - route_values=route_values, - accept_media_type='application/octet-stream') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_attachments(self, project, release_id, environment_id, attempt_id, timeline_id, type): - """GetTaskAttachments. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int environment_id: - :param int attempt_id: - :param str timeline_id: - :param str type: - :rtype: [ReleaseTaskAttachment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if attempt_id is not None: - route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') - if timeline_id is not None: - route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - response = self._send(http_method='GET', - location_id='214111ee-2415-4df2-8ed2-74417f7d61f9', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseTaskAttachment]', self._unwrap_collection(response)) - - def create_release_definition(self, release_definition, project): - """CreateReleaseDefinition. - [Preview API] Create a release definition - :param :class:` ` release_definition: release definition object to create. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='POST', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def delete_release_definition(self, project, definition_id, comment=None, force_delete=None): - """DeleteReleaseDefinition. - [Preview API] Delete a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param str comment: Comment for deleting a release definition. - :param bool force_delete: 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'. - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if comment is not None: - query_parameters['comment'] = self._serialize.query('comment', comment, 'str') - if force_delete is not None: - query_parameters['forceDelete'] = self._serialize.query('force_delete', force_delete, 'bool') - self._send(http_method='DELETE', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - - def get_release_definition(self, project, definition_id, property_filters=None): - """GetReleaseDefinition. - [Preview API] Get a release definition. - :param str project: Project ID or project name - :param int definition_id: Id of the release definition. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - query_parameters = {} - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinition', response) - - def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None, is_deleted=None): - """GetReleaseDefinitions. - [Preview API] Get a list of release definitions. - :param str project: Project ID or project name - :param str search_text: Get release definitions with names starting with searchText. - :param str expand: The properties that should be expanded in the list of Release definitions. - :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param int top: Number of release definitions to get. - :param str continuation_token: Gets the release definitions after the continuation token provided. - :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. - :param str path: Gets the release definitions under the specified path. - :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. - :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. - :param bool is_deleted: 'true' to get release definitions that has been deleted. Default is 'false' - :rtype: [ReleaseDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type is not None: - query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') - if artifact_source_id is not None: - query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if path is not None: - query_parameters['path'] = self._serialize.query('path', path, 'str') - if is_exact_name_match is not None: - query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if definition_id_filter is not None: - definition_id_filter = ",".join(definition_id_filter) - query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') - if is_deleted is not None: - query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') - response = self._send(http_method='GET', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) - - def update_release_definition(self, release_definition, project): - """UpdateReleaseDefinition. - [Preview API] Update a release definition. - :param :class:` ` release_definition: Release definition object to update. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_definition, 'ReleaseDefinition') - response = self._send(http_method='PUT', - location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', - version='4.1-preview.3', - route_values=route_values, - content=content) - return self._deserialize('ReleaseDefinition', response) - - def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None, min_started_time=None, max_started_time=None): - """GetDeployments. - [Preview API] - :param str project: Project ID or project name - :param int definition_id: - :param int definition_environment_id: - :param str created_by: - :param datetime min_modified_time: - :param datetime max_modified_time: - :param str deployment_status: - :param str operation_status: - :param bool latest_attempts_only: - :param str query_order: - :param int top: - :param int continuation_token: - :param str created_for: - :param datetime min_started_time: - :param datetime max_started_time: - :rtype: [Deployment] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if min_modified_time is not None: - query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') - if max_modified_time is not None: - query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') - if deployment_status is not None: - query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') - if operation_status is not None: - query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') - if latest_attempts_only is not None: - query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if created_for is not None: - query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') - if min_started_time is not None: - query_parameters['minStartedTime'] = self._serialize.query('min_started_time', min_started_time, 'iso-8601') - if max_started_time is not None: - query_parameters['maxStartedTime'] = self._serialize.query('max_started_time', max_started_time, 'iso-8601') - response = self._send(http_method='GET', - location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Deployment]', self._unwrap_collection(response)) - - def update_release_environment(self, environment_update_data, project, release_id, environment_id): - """UpdateReleaseEnvironment. - [Preview API] Update the status of a release environment - :param :class:` ` environment_update_data: Environment update meta data. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', - version='4.1-preview.5', - route_values=route_values, - content=content) - return self._deserialize('ReleaseEnvironment', response) - - def get_logs(self, project, release_id, **kwargs): - """GetLogs. - [Preview API] Get logs for a release Id. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', - version='4.1-preview.2', - route_values=route_values, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None, **kwargs): - """GetTaskLog. - [Preview API] Gets the task log of a release as a plain text file. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int environment_id: Id of release environment. - :param int release_deploy_phase_id: Release deploy phase Id. - :param int task_id: ReleaseTask Id for the log. - :param long start_line: Starting line number for logs - :param long end_line: Ending line number for logs - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if environment_id is not None: - route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') - if release_deploy_phase_id is not None: - route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') - if task_id is not None: - route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') - query_parameters = {} - if start_line is not None: - query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') - if end_line is not None: - query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') - response = self._send(http_method='GET', - location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', - version='4.1-preview.2', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_manual_intervention(self, project, release_id, manual_intervention_id): - """GetManualIntervention. - [Preview API] Get manual intervention for a given release and manual intervention id. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int manual_intervention_id: Id of the manual intervention. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('ManualIntervention', response) - - def get_manual_interventions(self, project, release_id): - """GetManualInterventions. - [Preview API] List all manual interventions for a given release. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :rtype: [ManualIntervention] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - response = self._send(http_method='GET', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) - - def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): - """UpdateManualIntervention. - [Preview API] Update manual intervention. - :param :class:` ` manual_intervention_update_metadata: Meta data to update manual intervention. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int manual_intervention_id: Id of the manual intervention. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - if manual_intervention_id is not None: - route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') - content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ManualIntervention', response) - - def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None, release_id_filter=None): - """GetReleases. - [Preview API] Get a list of releases - :param str project: Project ID or project name - :param int definition_id: Releases from this release definition Id. - :param int definition_environment_id: - :param str search_text: Releases with names starting with searchText. - :param str created_by: Releases created by this user. - :param str status_filter: Releases that have this status. - :param int environment_status_filter: - :param datetime min_created_time: Releases that were created after this time. - :param datetime max_created_time: Releases that were created before this time. - :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. - :param int top: Number of releases to get. Default is 50. - :param int continuation_token: Gets the releases after the continuation token provided. - :param str expand: The property that should be expanded in the list of releases. - :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. - :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. - :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. - :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. - :param bool is_deleted: Gets the soft deleted releases, if true. - :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. - :param [str] property_filters: A comma-delimited list of extended properties to retrieve. - :param [int] release_id_filter: A comma-delimited list of releases Ids. Only releases with these Ids will be returned. - :rtype: [Release] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if definition_environment_id is not None: - query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') - if search_text is not None: - query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') - if created_by is not None: - query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if environment_status_filter is not None: - query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') - if min_created_time is not None: - query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') - if max_created_time is not None: - query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') - if query_order is not None: - query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if continuation_token is not None: - query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - if artifact_type_id is not None: - query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') - if source_id is not None: - query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') - if artifact_version_id is not None: - query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') - if source_branch_filter is not None: - query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') - if is_deleted is not None: - query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') - if tag_filter is not None: - tag_filter = ",".join(tag_filter) - query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - if release_id_filter is not None: - release_id_filter = ",".join(map(str, release_id_filter)) - query_parameters['releaseIdFilter'] = self._serialize.query('release_id_filter', release_id_filter, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[Release]', self._unwrap_collection(response)) - - def create_release(self, release_start_metadata, project): - """CreateRelease. - [Preview API] Create a release. - :param :class:` ` release_start_metadata: Metadata to create a release. - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') - response = self._send(http_method='POST', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def get_release(self, project, release_id, approval_filters=None, property_filters=None): - """GetRelease. - [Preview API] Get a Release - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default - :param [str] property_filters: A comma-delimited list of properties to include in the results. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if approval_filters is not None: - query_parameters['approvalFilters'] = self._serialize.query('approval_filters', approval_filters, 'str') - if property_filters is not None: - property_filters = ",".join(property_filters) - query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('Release', response) - - def get_release_definition_summary(self, project, definition_id, release_count, include_artifact=None, definition_environment_ids_filter=None): - """GetReleaseDefinitionSummary. - [Preview API] Get release summary of a given definition Id. - :param str project: Project ID or project name - :param int definition_id: Id of the definition to get release summary. - :param int release_count: Count of releases to be included in summary. - :param bool include_artifact: Include artifact details.Default is 'false'. - :param [int] definition_environment_ids_filter: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if definition_id is not None: - query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') - if release_count is not None: - query_parameters['releaseCount'] = self._serialize.query('release_count', release_count, 'int') - if include_artifact is not None: - query_parameters['includeArtifact'] = self._serialize.query('include_artifact', include_artifact, 'bool') - if definition_environment_ids_filter is not None: - definition_environment_ids_filter = ",".join(map(str, definition_environment_ids_filter)) - query_parameters['definitionEnvironmentIdsFilter'] = self._serialize.query('definition_environment_ids_filter', definition_environment_ids_filter, 'str') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ReleaseDefinitionSummary', response) - - def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): - """GetReleaseRevision. - [Preview API] Get release for a given revision number. - :param str project: Project ID or project name - :param int release_id: Id of the release. - :param int definition_snapshot_revision: Definition snapshot revision number. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - query_parameters = {} - if definition_snapshot_revision is not None: - query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') - response = self._send(http_method='GET', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def update_release(self, release, project, release_id): - """UpdateRelease. - [Preview API] Update a complete release object. - :param :class:` ` release: Release object for update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release, 'Release') - response = self._send(http_method='PUT', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def update_release_resource(self, release_update_metadata, project, release_id): - """UpdateReleaseResource. - [Preview API] Update few properties of a release. - :param :class:` ` release_update_metadata: Properties of release to update. - :param str project: Project ID or project name - :param int release_id: Id of the release to update. - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if release_id is not None: - route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') - content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') - response = self._send(http_method='PATCH', - location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', - version='4.1-preview.6', - route_values=route_values, - content=content) - return self._deserialize('Release', response) - - def get_definition_revision(self, project, definition_id, revision, **kwargs): - """GetDefinitionRevision. - [Preview API] Get release definition for a given definitionId and revision - :param str project: Project ID or project name - :param int definition_id: Id of the definition. - :param int revision: Id of the revision. - :rtype: object - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - if revision is not None: - route_values['revision'] = self._serialize.url('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.1-preview.1', - route_values=route_values, - accept_media_type='text/plain') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_release_definition_history(self, project, definition_id): - """GetReleaseDefinitionHistory. - [Preview API] Get revision history for a release definition - :param str project: Project ID or project name - :param int definition_id: Id of the definition. - :rtype: [ReleaseDefinitionRevision] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') - response = self._send(http_method='GET', - location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py deleted file mode 100644 index c0c5f17a..00000000 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process/models.py +++ /dev/null @@ -1,791 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark - - -class CreateProcessModel(Model): - """CreateProcessModel. - - :param description: Description of the process - :type description: str - :param name: Name of the process - :type name: str - :param parent_process_type_id: The ID of the parent process - :type parent_process_type_id: str - :param reference_name: Reference name of the process - :type reference_name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'} - } - - def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): - super(CreateProcessModel, self).__init__() - self.description = description - self.name = name - self.parent_process_type_id = parent_process_type_id - self.reference_name = reference_name - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id - - -class FieldModel(Model): - """FieldModel. - - :param description: - :type description: str - :param id: - :type id: str - :param is_identity: - :type is_identity: bool - :param name: - :type name: str - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.is_identity = is_identity - self.name = name - self.type = type - self.url = url - - -class FieldRuleModel(Model): - """FieldRuleModel. - - :param actions: - :type actions: list of :class:`RuleActionModel ` - :param conditions: - :type conditions: list of :class:`RuleConditionModel ` - :param friendly_name: - :type friendly_name: str - :param id: - :type id: str - :param is_disabled: - :type is_disabled: bool - :param is_system: - :type is_system: bool - """ - - _attribute_map = { - 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, - 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'is_system': {'key': 'isSystem', 'type': 'bool'} - } - - def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): - super(FieldRuleModel, self).__init__() - self.actions = actions - self.conditions = conditions - self.friendly_name = friendly_name - self.id = id - self.is_disabled = is_disabled - self.is_system = is_system - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible - - -class ProcessModel(Model): - """ProcessModel. - - :param description: Description of the process - :type description: str - :param name: Name of the process - :type name: str - :param projects: Projects in this process - :type projects: list of :class:`ProjectReference ` - :param properties: Properties of the process - :type properties: :class:`ProcessProperties ` - :param reference_name: Reference name of the process - :type reference_name: str - :param type_id: The ID of the process - :type type_id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, - 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'type_id': {'key': 'typeId', 'type': 'str'} - } - - def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): - super(ProcessModel, self).__init__() - self.description = description - self.name = name - self.projects = projects - self.properties = properties - self.reference_name = reference_name - self.type_id = type_id - - -class ProcessProperties(Model): - """ProcessProperties. - - :param class_: Class of the process - :type class_: object - :param is_default: Is the process default process - :type is_default: bool - :param is_enabled: Is the process enabled - :type is_enabled: bool - :param parent_process_type_id: ID of the parent process - :type parent_process_type_id: str - :param version: Version of the process - :type version: str - """ - - _attribute_map = { - 'class_': {'key': 'class', 'type': 'object'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): - super(ProcessProperties, self).__init__() - self.class_ = class_ - self.is_default = is_default - self.is_enabled = is_enabled - self.parent_process_type_id = parent_process_type_id - self.version = version - - -class ProjectReference(Model): - """ProjectReference. - - :param description: Description of the project - :type description: str - :param id: The ID of the project - :type id: str - :param name: Name of the project - :type name: str - :param url: Url of the project - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, url=None): - super(ProjectReference, self).__init__() - self.description = description - self.id = id - self.name = name - self.url = url - - -class RuleActionModel(Model): - """RuleActionModel. - - :param action_type: - :type action_type: str - :param target_field: - :type target_field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'action_type': {'key': 'actionType', 'type': 'str'}, - 'target_field': {'key': 'targetField', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, action_type=None, target_field=None, value=None): - super(RuleActionModel, self).__init__() - self.action_type = action_type - self.target_field = target_field - self.value = value - - -class RuleConditionModel(Model): - """RuleConditionModel. - - :param condition_type: - :type condition_type: str - :param field: - :type field: str - :param value: - :type value: str - """ - - _attribute_map = { - 'condition_type': {'key': 'conditionType', 'type': 'str'}, - 'field': {'key': 'field', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, condition_type=None, field=None, value=None): - super(RuleConditionModel, self).__init__() - self.condition_type = condition_type - self.field = field - self.value = value - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden - - -class UpdateProcessModel(Model): - """UpdateProcessModel. - - :param description: - :type description: str - :param is_default: - :type is_default: bool - :param is_enabled: - :type is_enabled: bool - :param name: - :type name: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, description=None, is_default=None, is_enabled=None, name=None): - super(UpdateProcessModel, self).__init__() - self.description = description - self.is_default = is_default - self.is_enabled = is_enabled - self.name = name - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item - - -class WorkItemBehavior(Model): - """WorkItemBehavior. - - :param abstract: - :type abstract: bool - :param color: - :type color: str - :param description: - :type description: str - :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` - :param id: - :type id: str - :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: - :type name: str - :param overriden: - :type overriden: bool - :param rank: - :type rank: int - :param url: - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overriden': {'key': 'overriden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): - super(WorkItemBehavior, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.fields = fields - self.id = id - self.inherits = inherits - self.name = name - self.overriden = overriden - self.rank = rank - self.url = url - - -class WorkItemBehaviorField(Model): - """WorkItemBehaviorField. - - :param behavior_field_id: - :type behavior_field_id: str - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior_field_id=None, id=None, url=None): - super(WorkItemBehaviorField, self).__init__() - self.behavior_field_id = behavior_field_id - self.id = id - self.url = url - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: - :type id: str - :param url: - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: - :type color: str - :param hidden: - :type hidden: bool - :param id: - :type id: str - :param name: - :type name: str - :param order: - :type order: int - :param state_category: - :type state_category: str - :param url: - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: - :type class_: object - :param color: - :type color: str - :param description: - :type description: str - :param icon: - :type icon: str - :param id: - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: - :type is_disabled: bool - :param layout: - :type layout: :class:`FormLayout ` - :param name: - :type name: str - :param states: - :type states: list of :class:`WorkItemStateResultModel ` - :param url: - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url - - -__all__ = [ - 'Control', - 'CreateProcessModel', - 'Extension', - 'FieldModel', - 'FieldRuleModel', - 'FormLayout', - 'Group', - 'Page', - 'ProcessModel', - 'ProcessProperties', - 'ProjectReference', - 'RuleActionModel', - 'RuleConditionModel', - 'Section', - 'UpdateProcessModel', - 'WitContribution', - 'WorkItemBehavior', - 'WorkItemBehaviorField', - 'WorkItemBehaviorReference', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeModel', -] diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py deleted file mode 100644 index 8dd1ca6f..00000000 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process/work_item_tracking_process_client.py +++ /dev/null @@ -1,367 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class WorkItemTrackingClient(Client): - """WorkItemTracking - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(WorkItemTrackingClient, 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_behavior(self, process_id, behavior_ref_name, expand=None): - """GetBehavior. - [Preview API] Returns a behavior of the process. - :param str process_id: The ID of the process - :param str behavior_ref_name: Reference name of the behavior - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemBehavior', response) - - def get_behaviors(self, process_id, expand=None): - """GetBehaviors. - [Preview API] Returns a list of all behaviors in the process. - :param str process_id: The ID of the process - :param str expand: - :rtype: [WorkItemBehavior] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemBehavior]', self._unwrap_collection(response)) - - def get_fields(self, process_id): - """GetFields. - [Preview API] Returns a list of all fields in a process. - :param str process_id: The ID of the process - :rtype: [FieldModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - response = self._send(http_method='GET', - location_id='7a0e7a1a-0b34-4ae0-9744-0aaffb7d0ed1', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[FieldModel]', self._unwrap_collection(response)) - - def get_work_item_type_fields(self, process_id, wit_ref_name): - """GetWorkItemTypeFields. - [Preview API] Returns a list of all fields in a work item type. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: [FieldModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[FieldModel]', self._unwrap_collection(response)) - - def create_process(self, create_request): - """CreateProcess. - [Preview API] Creates a process. - :param :class:` ` create_request: - :rtype: :class:` ` - """ - content = self._serialize.body(create_request, 'CreateProcessModel') - response = self._send(http_method='POST', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.1-preview.1', - content=content) - return self._deserialize('ProcessModel', response) - - def delete_process(self, process_type_id): - """DeleteProcess. - [Preview API] Removes a process of a specific ID. - :param str process_type_id: - """ - route_values = {} - if process_type_id is not None: - route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') - self._send(http_method='DELETE', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.1-preview.1', - route_values=route_values) - - def get_process_by_id(self, process_type_id, expand=None): - """GetProcessById. - [Preview API] Returns a single process of a specified ID. - :param str process_type_id: - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_type_id is not None: - route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('ProcessModel', response) - - def get_processes(self, expand=None): - """GetProcesses. - [Preview API] Returns a list of all processes. - :param str expand: - :rtype: [ProcessModel] - """ - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.1-preview.1', - query_parameters=query_parameters) - return self._deserialize('[ProcessModel]', self._unwrap_collection(response)) - - def update_process(self, update_request, process_type_id): - """UpdateProcess. - [Preview API] Updates a process of a specific ID. - :param :class:` ` update_request: - :param str process_type_id: - :rtype: :class:` ` - """ - route_values = {} - if process_type_id is not None: - route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') - content = self._serialize.body(update_request, 'UpdateProcessModel') - response = self._send(http_method='PATCH', - location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('ProcessModel', response) - - def add_work_item_type_rule(self, field_rule, process_id, wit_ref_name): - """AddWorkItemTypeRule. - [Preview API] Adds a rule to work item type in the process. - :param :class:` ` field_rule: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(field_rule, 'FieldRuleModel') - response = self._send(http_method='POST', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldRuleModel', response) - - def delete_work_item_type_rule(self, process_id, wit_ref_name, rule_id): - """DeleteWorkItemTypeRule. - [Preview API] Removes a rule from the work item type in the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str rule_id: The ID of the rule - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if rule_id is not None: - route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') - self._send(http_method='DELETE', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.1-preview.1', - route_values=route_values) - - def get_work_item_type_rule(self, process_id, wit_ref_name, rule_id): - """GetWorkItemTypeRule. - [Preview API] Returns a single rule in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str rule_id: The ID of the rule - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if rule_id is not None: - route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') - response = self._send(http_method='GET', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('FieldRuleModel', response) - - def get_work_item_type_rules(self, process_id, wit_ref_name): - """GetWorkItemTypeRules. - [Preview API] Returns a list of all rules in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: [FieldRuleModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[FieldRuleModel]', self._unwrap_collection(response)) - - def update_work_item_type_rule(self, field_rule, process_id, wit_ref_name, rule_id): - """UpdateWorkItemTypeRule. - [Preview API] Updates a rule in the work item type of the process. - :param :class:` ` field_rule: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str rule_id: The ID of the rule - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if rule_id is not None: - route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') - content = self._serialize.body(field_rule, 'FieldRuleModel') - response = self._send(http_method='PUT', - location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldRuleModel', response) - - def get_state_definition(self, process_id, wit_ref_name, state_id): - """GetStateDefinition. - [Preview API] Returns a single state definition in a work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: The ID of the state - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - response = self._send(http_method='GET', - location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('WorkItemStateResultModel', response) - - def get_state_definitions(self, process_id, wit_ref_name): - """GetStateDefinitions. - [Preview API] Returns a list of all state definitions in a work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: [WorkItemStateResultModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) - - def get_work_item_type(self, process_id, wit_ref_name, expand=None): - """GetWorkItemType. - [Preview API] Returns a single work item type in a process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemTypeModel', response) - - def get_work_item_types(self, process_id, expand=None): - """GetWorkItemTypes. - [Preview API] Returns a list of all work item types in a process. - :param str process_id: The ID of the process - :param str expand: - :rtype: [WorkItemTypeModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py deleted file mode 100644 index 0713195e..00000000 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .models import * - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py deleted file mode 100644 index 86ce037b..00000000 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/models.py +++ /dev/null @@ -1,795 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorCreateModel(Model): - """BehaviorCreateModel. - - :param color: Color - :type color: str - :param inherits: Parent behavior id - :type inherits: str - :param name: Name of the behavior - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, inherits=None, name=None): - super(BehaviorCreateModel, self).__init__() - self.color = color - self.inherits = inherits - self.name = name - - -class BehaviorModel(Model): - """BehaviorModel. - - :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) - :type abstract: bool - :param color: Color - :type color: str - :param description: Description - :type description: str - :param id: Behavior Id - :type id: str - :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: Behavior Name - :type name: str - :param overridden: Is the behavior overrides a behavior from system process - :type overridden: bool - :param rank: Rank - :type rank: int - :param url: Url of the behavior - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): - super(BehaviorModel, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.id = id - self.inherits = inherits - self.name = name - self.overridden = overridden - self.rank = rank - self.url = url - - -class BehaviorReplaceModel(Model): - """BehaviorReplaceModel. - - :param color: Color - :type color: str - :param name: Behavior Name - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, name=None): - super(BehaviorReplaceModel, self).__init__() - self.color = color - self.name = name - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id - - -class FieldModel(Model): - """FieldModel. - - :param description: Description about field - :type description: str - :param id: ID of the field - :type id: str - :param name: Name of the field - :type name: str - :param pick_list: Reference to picklist in this field - :type pick_list: :class:`PickListMetadataModel ` - :param type: Type of field - :type type: object - :param url: Url to the field - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.name = name - self.pick_list = pick_list - self.type = type - self.url = url - - -class FieldUpdate(Model): - """FieldUpdate. - - :param description: - :type description: str - :param id: - :type id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, description=None, id=None): - super(FieldUpdate, self).__init__() - self.description = description - self.id = id - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible - - -class HideStateModel(Model): - """HideStateModel. - - :param hidden: - :type hidden: bool - """ - - _attribute_map = { - 'hidden': {'key': 'hidden', 'type': 'bool'} - } - - def __init__(self, hidden=None): - super(HideStateModel, self).__init__() - self.hidden = hidden - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible - - -class PickListItemModel(Model): - """PickListItemModel. - - :param id: - :type id: str - :param value: - :type value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, id=None, value=None): - super(PickListItemModel, self).__init__() - self.id = id - self.value = value - - -class PickListMetadataModel(Model): - """PickListMetadataModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): - super(PickListMetadataModel, self).__init__() - self.id = id - self.is_suggested = is_suggested - self.name = name - self.type = type - self.url = url - - -class PickListModel(PickListMetadataModel): - """PickListModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - :param items: A list of PicklistItemModel - :type items: list of :class:`PickListItemModel ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[PickListItemModel]'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): - super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) - self.items = items - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: The ID of the reference behavior - :type id: str - :param url: The url of the reference behavior - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url - - -class WorkItemStateInputModel(Model): - """WorkItemStateInputModel. - - :param color: Color of the state - :type color: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'} - } - - def __init__(self, color=None, name=None, order=None, state_category=None): - super(WorkItemStateInputModel, self).__init__() - self.color = color - self.name = name - self.order = order - self.state_category = state_category - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: Color of the state - :type color: str - :param hidden: Is the state hidden - :type hidden: bool - :param id: The ID of the State - :type id: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - :param url: Url of the state - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url - - -class WorkItemTypeFieldModel(Model): - """WorkItemTypeFieldModel. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: Behaviors of the work item type - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: Class of the work item type - :type class_: object - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param id: The ID of the work item type - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: Is work item type disabled - :type is_disabled: bool - :param layout: Layout of the work item type - :type layout: :class:`FormLayout ` - :param name: Name of the work item type - :type name: str - :param states: States of the work item type - :type states: list of :class:`WorkItemStateResultModel ` - :param url: Url of the work item type - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url - - -class WorkItemTypeUpdateModel(Model): - """WorkItemTypeUpdateModel. - - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param is_disabled: Is the workitem type to be disabled - :type is_disabled: bool - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} - } - - def __init__(self, color=None, description=None, icon=None, is_disabled=None): - super(WorkItemTypeUpdateModel, self).__init__() - self.color = color - self.description = description - self.icon = icon - self.is_disabled = is_disabled - - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v4_1/__init__.py b/azure-devops/azure/devops/v5_0/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/__init__.py rename to azure-devops/azure/devops/v5_0/__init__.py diff --git a/azure-devops/azure/devops/v4_1/accounts/__init__.py b/azure-devops/azure/devops/v5_0/accounts/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/accounts/__init__.py rename to azure-devops/azure/devops/v5_0/accounts/__init__.py diff --git a/azure-devops/azure/devops/v4_1/accounts/accounts_client.py b/azure-devops/azure/devops/v5_0/accounts/accounts_client.py similarity index 98% rename from azure-devops/azure/devops/v4_1/accounts/accounts_client.py rename to azure-devops/azure/devops/v5_0/accounts/accounts_client.py index e077131c..2e44a8e1 100644 --- a/azure-devops/azure/devops/v4_1/accounts/accounts_client.py +++ b/azure-devops/azure/devops/v5_0/accounts/accounts_client.py @@ -42,7 +42,7 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None): query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[Account]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/accounts/models.py b/azure-devops/azure/devops/v5_0/accounts/models.py similarity index 97% rename from azure-devops/azure/devops/v4_1/accounts/models.py rename to azure-devops/azure/devops/v5_0/accounts/models.py index d0d16210..1179b0fc 100644 --- a/azure-devops/azure/devops/v4_1/accounts/models.py +++ b/azure-devops/azure/devops/v5_0/accounts/models.py @@ -41,7 +41,7 @@ class Account(Model): :param organization_name: Organization that created the account :type organization_name: str :param properties: Extended properties - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_reason: Reason for current status :type status_reason: str """ @@ -95,9 +95,9 @@ class AccountCreateInfoInternal(Model): :param organization: :type organization: str :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` + :type preferences: :class:`AccountPreferencesInternal ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param service_definitions: :type service_definitions: list of { key: str; value: str } """ diff --git a/azure-devops/azure/devops/v5_0/boards/__init__.py b/azure-devops/azure/devops/v5_0/boards/__init__.py new file mode 100644 index 00000000..344c3f44 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/boards/__init__.py @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'Board', + 'BoardColumn', + 'BoardColumnBase', + 'BoardColumnCollectionResponse', + 'BoardColumnCreate', + 'BoardColumnResponse', + 'BoardColumnUpdate', + 'BoardItem', + 'BoardItemCollectionResponse', + 'BoardItemIdAndType', + 'BoardItemReference', + 'BoardItemResponse', + 'BoardReference', + 'BoardResponse', + 'BoardRow', + 'BoardRowBase', + 'BoardRowCollectionResponse', + 'BoardRowCreate', + 'BoardRowResponse', + 'BoardRowUpdate', + 'CreateBoard', + 'EntityReference', + 'NewBoardItem', + 'ReferenceLinks', + 'UpdateBoard', + 'UpdateBoardItem', +] diff --git a/azure-devops/azure/devops/v5_0/boards/boards_client.py b/azure-devops/azure/devops/v5_0/boards/boards_client.py new file mode 100644 index 00000000..3ef4bfa0 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/boards/boards_client.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class BoardsClient(Client): + """Boards + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(BoardsClient, 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 = '11635d5f-a4f9-43ea-a48b-d56be43fee0f' + diff --git a/azure-devops/azure/devops/v5_0/boards/models.py b/azure-devops/azure/devops/v5_0/boards/models.py new file mode 100644 index 00000000..927be126 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/boards/models.py @@ -0,0 +1,644 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BoardColumnBase(Model): + """BoardColumnBase. + + :param description: Board column description. + :type description: str + :param name: Name of the column. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(BoardColumnBase, self).__init__() + self.description = description + self.name = name + + +class BoardColumnCollectionResponse(Model): + """BoardColumnCollectionResponse. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param board_columns: The resulting collection of BoardColumn. + :type board_columns: list of :class:`BoardColumn ` + :param eTag: The last change date and time for all the columns in the collection. + :type eTag: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'board_columns': {'key': 'boardColumns', 'type': '[BoardColumn]'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, _links=None, board_columns=None, eTag=None): + super(BoardColumnCollectionResponse, self).__init__() + self._links = _links + self.board_columns = board_columns + self.eTag = eTag + + +class BoardColumnCreate(BoardColumnBase): + """BoardColumnCreate. + + :param description: Board column description. + :type description: str + :param name: Name of the column. + :type name: str + :param next_column_id: Next column identifier or supported directive: $first or $last. + :type next_column_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'next_column_id': {'key': 'nextColumnId', 'type': 'str'} + } + + def __init__(self, description=None, name=None, next_column_id=None): + super(BoardColumnCreate, self).__init__(description=description, name=name) + self.next_column_id = next_column_id + + +class BoardColumnResponse(Model): + """BoardColumnResponse. + + :param board_column: The resulting BoardColumn. + :type board_column: :class:`BoardColumn ` + :param eTag: The last change date and time for all the columns in the collection. + :type eTag: list of str + """ + + _attribute_map = { + 'board_column': {'key': 'boardColumn', 'type': 'BoardColumn'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, board_column=None, eTag=None): + super(BoardColumnResponse, self).__init__() + self.board_column = board_column + self.eTag = eTag + + +class BoardColumnUpdate(BoardColumnCreate): + """BoardColumnUpdate. + + :param description: Board column description. + :type description: str + :param next_column_id: Next column identifier or supported directive: $first or $last. + :type next_column_id: str + :param name: Name of the column. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'next_column_id': {'key': 'nextColumnId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, next_column_id=None, name=None): + super(BoardColumnUpdate, self).__init__(description=description, next_column_id=next_column_id) + self.name = name + + +class BoardItemCollectionResponse(Model): + """BoardItemCollectionResponse. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param board_items: The resulting collection of BoardItem. + :type board_items: list of :class:`BoardItem ` + :param eTag: The last change date and time for all items in the collection. + :type eTag: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'board_items': {'key': 'boardItems', 'type': '[BoardItem]'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, _links=None, board_items=None, eTag=None): + super(BoardItemCollectionResponse, self).__init__() + self._links = _links + self.board_items = board_items + self.eTag = eTag + + +class BoardItemIdAndType(Model): + """BoardItemIdAndType. + + :param item_id: Item id. + :type item_id: str + :param item_type: Item type. + :type item_type: str + """ + + _attribute_map = { + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'} + } + + def __init__(self, item_id=None, item_type=None): + super(BoardItemIdAndType, self).__init__() + self.item_id = item_id + self.item_type = item_type + + +class BoardItemReference(BoardItemIdAndType): + """BoardItemReference. + + :param item_id: Item id. + :type item_id: str + :param item_type: Item type. + :type item_type: str + :param unique_id: Board's unique identifier. Compound identifier generated using the item identifier and item type. + :type unique_id: str + :param url: Full http link to the resource. + :type url: str + """ + + _attribute_map = { + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'}, + 'unique_id': {'key': 'uniqueId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, item_id=None, item_type=None, unique_id=None, url=None): + super(BoardItemReference, self).__init__(item_id=item_id, item_type=item_type) + self.unique_id = unique_id + self.url = url + + +class BoardItemResponse(Model): + """BoardItemResponse. + + :param eTag: The last changed date for the board item. + :type eTag: list of str + :param item: The resulting BoardItem. + :type item: :class:`BoardItem ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'item': {'key': 'item', 'type': 'BoardItem'} + } + + def __init__(self, eTag=None, item=None): + super(BoardItemResponse, self).__init__() + self.eTag = eTag + self.item = item + + +class BoardResponse(Model): + """BoardResponse. + + :param board: The resulting Board. + :type board: :class:`Board ` + :param eTag: The last date and time the board was changed. + :type eTag: list of str + """ + + _attribute_map = { + 'board': {'key': 'board', 'type': 'Board'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, board=None, eTag=None): + super(BoardResponse, self).__init__() + self.board = board + self.eTag = eTag + + +class BoardRowBase(Model): + """BoardRowBase. + + :param name: Row name. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(BoardRowBase, self).__init__() + self.name = name + + +class BoardRowCollectionResponse(Model): + """BoardRowCollectionResponse. + + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param board_rows: The resulting collection of BoardRow. + :type board_rows: list of :class:`BoardRow ` + :param eTag: The last change date and time for all the rows in the collection. + :type eTag: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'board_rows': {'key': 'boardRows', 'type': '[BoardRow]'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, _links=None, board_rows=None, eTag=None): + super(BoardRowCollectionResponse, self).__init__() + self._links = _links + self.board_rows = board_rows + self.eTag = eTag + + +class BoardRowCreate(BoardRowBase): + """BoardRowCreate. + + :param name: Row name. + :type name: str + :param next_row_id: Next row identifier or supported directive: $first or $last. + :type next_row_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'next_row_id': {'key': 'nextRowId', 'type': 'str'} + } + + def __init__(self, name=None, next_row_id=None): + super(BoardRowCreate, self).__init__(name=name) + self.next_row_id = next_row_id + + +class BoardRowResponse(Model): + """BoardRowResponse. + + :param board_row: The resulting collection of BoardRow. + :type board_row: :class:`BoardRow ` + :param eTag: The last change date and time for all the rows in the collection. + :type eTag: list of str + """ + + _attribute_map = { + 'board_row': {'key': 'boardRow', 'type': 'BoardRow'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, board_row=None, eTag=None): + super(BoardRowResponse, self).__init__() + self.board_row = board_row + self.eTag = eTag + + +class BoardRowUpdate(BoardRowCreate): + """BoardRowUpdate. + + :param name: Row name. + :type name: str + :param next_row_id: Next row identifier or supported directive: $first or $last. + :type next_row_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'next_row_id': {'key': 'nextRowId', 'type': 'str'}, + } + + def __init__(self, name=None, next_row_id=None): + super(BoardRowUpdate, self).__init__(name=name, next_row_id=next_row_id) + + +class CreateBoard(Model): + """CreateBoard. + + :param description: Description of the board. + :type description: str + :param name: Name of the board to create. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(CreateBoard, self).__init__() + self.description = description + self.name = name + + +class EntityReference(Model): + """EntityReference. + + :param name: Name of the resource. + :type name: str + :param url: Full http link to the resource. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(EntityReference, self).__init__() + self.name = name + self.url = url + + +class NewBoardItem(BoardItemIdAndType): + """NewBoardItem. + + :param item_id: Item id. + :type item_id: str + :param item_type: Item type. + :type item_type: str + :param column_id: Board column identifier. + :type column_id: str + :param next_item_unique_id: Next item unique identifier or supported directive: $first or $last. + :type next_item_unique_id: str + :param row_id: Board row identifier. + :type row_id: str + """ + + _attribute_map = { + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'}, + 'column_id': {'key': 'columnId', 'type': 'str'}, + 'next_item_unique_id': {'key': 'nextItemUniqueId', 'type': 'str'}, + 'row_id': {'key': 'rowId', 'type': 'str'} + } + + def __init__(self, item_id=None, item_type=None, column_id=None, next_item_unique_id=None, row_id=None): + super(NewBoardItem, self).__init__(item_id=item_id, item_type=item_type) + self.column_id = column_id + self.next_item_unique_id = next_item_unique_id + self.row_id = row_id + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UpdateBoard(Model): + """UpdateBoard. + + :param description: New description of the board. + :type description: str + :param name: New name of the board. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(UpdateBoard, self).__init__() + self.description = description + self.name = name + + +class UpdateBoardItem(Model): + """UpdateBoardItem. + + :param column_id: Board column identifier. + :type column_id: str + :param next_item_unique_id: Next unique item identifier or supported directive: $first or $last. + :type next_item_unique_id: str + :param row_id: Board row identifier. + :type row_id: str + """ + + _attribute_map = { + 'column_id': {'key': 'columnId', 'type': 'str'}, + 'next_item_unique_id': {'key': 'nextItemUniqueId', 'type': 'str'}, + 'row_id': {'key': 'rowId', 'type': 'str'} + } + + def __init__(self, column_id=None, next_item_unique_id=None, row_id=None): + super(UpdateBoardItem, self).__init__() + self.column_id = column_id + self.next_item_unique_id = next_item_unique_id + self.row_id = row_id + + +class BoardColumn(BoardColumnBase): + """BoardColumn. + + :param description: Board column description. + :type description: str + :param name: Name of the column. + :type name: str + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param id: Id of the resource. + :type id: str + :param next_column_id: Next column identifier. + :type next_column_id: str + :param url: Full http link to the resource. + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'next_column_id': {'key': 'nextColumnId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, name=None, _links=None, id=None, next_column_id=None, url=None): + super(BoardColumn, self).__init__(description=description, name=name) + self._links = _links + self.id = id + self.next_column_id = next_column_id + self.url = url + + +class BoardItem(BoardItemReference): + """BoardItem. + + :param item_id: Item id. + :type item_id: str + :param item_type: Item type. + :type item_type: str + :param unique_id: Board's unique identifier. Compound identifier generated using the item identifier and item type. + :type unique_id: str + :param url: Full http link to the resource. + :type url: str + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param board_id: Board id for this item. + :type board_id: int + :param column: Board column id for this item. + :type column: str + :param next_item_unique_id: Next item unique identifier. + :type next_item_unique_id: str + :param row: Board row id for this item. + :type row: str + """ + + _attribute_map = { + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'}, + 'unique_id': {'key': 'uniqueId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'board_id': {'key': 'boardId', 'type': 'int'}, + 'column': {'key': 'column', 'type': 'str'}, + 'next_item_unique_id': {'key': 'nextItemUniqueId', 'type': 'str'}, + 'row': {'key': 'row', 'type': 'str'} + } + + def __init__(self, item_id=None, item_type=None, unique_id=None, url=None, _links=None, board_id=None, column=None, next_item_unique_id=None, row=None): + super(BoardItem, self).__init__(item_id=item_id, item_type=item_type, unique_id=unique_id, url=url) + self._links = _links + self.board_id = board_id + self.column = column + self.next_item_unique_id = next_item_unique_id + self.row = row + + +class BoardReference(EntityReference): + """BoardReference. + + :param name: Name of the resource. + :type name: str + :param url: Full http link to the resource. + :type url: str + :param id: Id of the resource. + :type id: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, name=None, url=None, id=None): + super(BoardReference, self).__init__(name=name, url=url) + self.id = id + + +class BoardRow(BoardRowBase): + """BoardRow. + + :param name: Row name. + :type name: str + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param id: Id of the resource. + :type id: str + :param next_row_id: Next row identifier. + :type next_row_id: str + :param url: Full http link to the resource. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'next_row_id': {'key': 'nextRowId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, _links=None, id=None, next_row_id=None, url=None): + super(BoardRow, self).__init__(name=name) + self._links = _links + self.id = id + self.next_row_id = next_row_id + self.url = url + + +class Board(BoardReference): + """Board. + + :param name: Name of the resource. + :type name: str + :param url: Full http link to the resource. + :type url: str + :param id: Id of the resource. + :type id: int + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param description: Description of the board. + :type description: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'description': {'key': 'description', 'type': 'str'} + } + + def __init__(self, name=None, url=None, id=None, _links=None, description=None): + super(Board, self).__init__(name=name, url=url, id=id) + self._links = _links + self.description = description + + +__all__ = [ + 'BoardColumnBase', + 'BoardColumnCollectionResponse', + 'BoardColumnCreate', + 'BoardColumnResponse', + 'BoardColumnUpdate', + 'BoardItemCollectionResponse', + 'BoardItemIdAndType', + 'BoardItemReference', + 'BoardItemResponse', + 'BoardResponse', + 'BoardRowBase', + 'BoardRowCollectionResponse', + 'BoardRowCreate', + 'BoardRowResponse', + 'BoardRowUpdate', + 'CreateBoard', + 'EntityReference', + 'NewBoardItem', + 'ReferenceLinks', + 'UpdateBoard', + 'UpdateBoardItem', + 'BoardColumn', + 'BoardItem', + 'BoardReference', + 'BoardRow', + 'Board', +] diff --git a/azure-devops/azure/devops/v4_1/build/__init__.py b/azure-devops/azure/devops/v5_0/build/__init__.py similarity index 95% rename from azure-devops/azure/devops/v4_1/build/__init__.py rename to azure-devops/azure/devops/v5_0/build/__init__.py index 78fe898a..84f76767 100644 --- a/azure-devops/azure/devops/v4_1/build/__init__.py +++ b/azure-devops/azure/devops/v5_0/build/__init__.py @@ -13,6 +13,7 @@ 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', 'AggregatedRunsByState', 'ArtifactResource', 'AssociatedWorkItem', @@ -47,6 +48,7 @@ 'Change', 'DataSourceBindingBase', 'DefinitionReference', + 'DefinitionResourceReference', 'Deployment', 'Folder', 'GraphSubjectBase', @@ -54,6 +56,7 @@ 'Issue', 'JsonPatchOperation', 'ProcessParameters', + 'PullRequest', 'ReferenceLinks', 'ReleaseReference', 'RepositoryWebhook', @@ -74,6 +77,7 @@ 'TeamProjectReference', 'TestResultsContext', 'Timeline', + 'TimelineAttempt', 'TimelineRecord', 'TimelineReference', 'VariableGroup', diff --git a/azure-devops/azure/devops/v4_1/build/build_client.py b/azure-devops/azure/devops/v5_0/build/build_client.py similarity index 80% rename from azure-devops/azure/devops/v4_1/build/build_client.py rename to azure-devops/azure/devops/v5_0/build/build_client.py index f6b4823d..47d291c1 100644 --- a/azure-devops/azure/devops/v4_1/build/build_client.py +++ b/azure-devops/azure/devops/v5_0/build/build_client.py @@ -25,13 +25,13 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = '965220d5-5bb9-42cf-8d67-9b146df2a5a4' - def create_artifact(self, artifact, build_id, project=None): + def create_artifact(self, artifact, project, build_id): """CreateArtifact. Associates an artifact with a build. - :param :class:` ` artifact: The artifact. - :param int build_id: The ID of the build. + :param :class:` ` artifact: The artifact. :param str project: Project ID or project name - :rtype: :class:` ` + :param int build_id: The ID of the build. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -41,18 +41,18 @@ def create_artifact(self, artifact, build_id, project=None): content = self._serialize.body(artifact, 'BuildArtifact') response = self._send(http_method='POST', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('BuildArtifact', response) - def get_artifact(self, build_id, artifact_name, project=None): + def get_artifact(self, project, build_id, artifact_name): """GetArtifact. Gets a specific artifact for a build. + :param str project: Project ID or project name :param int build_id: The ID of the build. :param str artifact_name: The name of the artifact. - :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -64,17 +64,17 @@ def get_artifact(self, build_id, artifact_name, project=None): query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildArtifact', response) - def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwargs): + def get_artifact_content_zip(self, project, build_id, artifact_name, **kwargs): """GetArtifactContentZip. Gets a specific artifact for a build. + :param str project: Project ID or project name :param int build_id: The ID of the build. :param str artifact_name: The name of the artifact. - :param str project: Project ID or project name :rtype: object """ route_values = {} @@ -87,7 +87,7 @@ def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwar query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -97,11 +97,11 @@ def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwar callback = None return self._client.stream_download(response, callback=callback) - def get_artifacts(self, build_id, project=None): + def get_artifacts(self, project, build_id): """GetArtifacts. Gets all artifacts for a build. - :param int build_id: The ID of the build. :param str project: Project ID or project name + :param int build_id: The ID of the build. :rtype: [BuildArtifact] """ route_values = {} @@ -111,10 +111,44 @@ def get_artifacts(self, build_id, project=None): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BuildArtifact]', self._unwrap_collection(response)) + def get_file(self, project, build_id, artifact_name, file_id, file_name, **kwargs): + """GetFile. + Gets a file from the build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str artifact_name: The name of the artifact. + :param str file_id: The primary key for the file. + :param str file_name: The name that the file will be set to. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if artifact_name is not None: + query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') + if file_id is not None: + query_parameters['fileId'] = self._serialize.query('file_id', file_id, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + response = self._send(http_method='GET', + location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + def get_attachments(self, project, build_id, type): """GetAttachments. [Preview API] Gets the list of attachments of a specific type that are associated with a build. @@ -132,7 +166,7 @@ def get_attachments(self, project, build_id, type): route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='f2192269-89fa-4f94-baf6-8fb128c55159', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values) return self._deserialize('[Attachment]', self._unwrap_collection(response)) @@ -162,7 +196,7 @@ def get_attachment(self, project, build_id, timeline_id, record_id, type, name, route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='af5122d3-3438-485e-a25a-2dbbfde84ee6', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -171,28 +205,46 @@ def get_attachment(self, project, build_id, timeline_id, record_id, type, name, callback = None return self._client.stream_download(response, callback=callback) - def get_badge(self, project, definition_id, branch_name=None): - """GetBadge. - Gets a badge that indicates the status of the most recent build for a definition. - :param str project: The project ID or name. - :param int definition_id: The ID of the definition. - :param str branch_name: The name of the branch. - :rtype: str + def authorize_project_resources(self, resources, project): + """AuthorizeProjectResources. + [Preview API] + :param [DefinitionResourceReference] resources: + :param str project: Project ID or project name + :rtype: [DefinitionResourceReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(resources, '[DefinitionResourceReference]') + response = self._send(http_method='PATCH', + location_id='398c85bc-81aa-4822-947c-a194a05f0fef', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) + + def get_project_resources(self, project, type=None, id=None): + """GetProjectResources. + [Preview API] + :param str project: Project ID or project name + :param str type: + :param str id: + :rtype: [DefinitionResourceReference] """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') query_parameters = {} - if branch_name is not None: - query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if id is not None: + query_parameters['id'] = self._serialize.query('id', id, 'str') response = self._send(http_method='GET', - location_id='de6a4df8-22cd-44ee-af2d-39f6aa7a4261', - version='4.1', + location_id='398c85bc-81aa-4822-947c-a194a05f0fef', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) - return self._deserialize('str', response) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) def list_branches(self, project, provider_name, service_endpoint_id=None, repository=None): """ListBranches. @@ -215,7 +267,7 @@ def list_branches(self, project, provider_name, service_endpoint_id=None, reposi query_parameters['repository'] = self._serialize.query('repository', repository, 'str') response = self._send(http_method='GET', location_id='e05d4403-9b81-4244-8763-20fde28d1976', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -227,7 +279,7 @@ def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): :param str repo_type: The repository type. :param str repo_id: The repository ID. :param str branch_name: The branch name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -241,7 +293,7 @@ def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') response = self._send(http_method='GET', location_id='21b3b9ce-fad5-4567-9ad0-80679794e003', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildBadge', response) @@ -267,16 +319,16 @@ def get_build_badge_data(self, project, repo_type, repo_id=None, branch_name=Non query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') response = self._send(http_method='GET', location_id='21b3b9ce-fad5-4567-9ad0-80679794e003', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) - def delete_build(self, build_id, project=None): + def delete_build(self, project, build_id): """DeleteBuild. Deletes a build. - :param int build_id: The ID of the build. :param str project: Project ID or project name + :param int build_id: The ID of the build. """ route_values = {} if project is not None: @@ -285,16 +337,16 @@ def delete_build(self, build_id, project=None): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') self._send(http_method='DELETE', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1', + version='5.0', route_values=route_values) - def get_build(self, build_id, project=None, property_filters=None): + def get_build(self, project, build_id, property_filters=None): """GetBuild. Gets a build - :param int build_id: :param str project: Project ID or project name + :param int build_id: :param str property_filters: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -306,12 +358,12 @@ def get_build(self, build_id, project=None, property_filters=None): query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Build', response) - def get_builds(self, project=None, definitions=None, queues=None, build_number=None, min_time=None, max_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): + def get_builds(self, project, definitions=None, queues=None, build_number=None, min_time=None, max_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): """GetBuilds. Gets a list of builds. :param str project: Project ID or project name @@ -388,19 +440,20 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Build]', self._unwrap_collection(response)) - def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket=None): + def queue_build(self, build, project, ignore_warnings=None, check_in_ticket=None, source_build_id=None): """QueueBuild. Queues a build - :param :class:` ` build: + :param :class:` ` build: :param str project: Project ID or project name :param bool ignore_warnings: :param str check_in_ticket: - :rtype: :class:` ` + :param int source_build_id: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -410,37 +463,44 @@ def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket query_parameters['ignoreWarnings'] = self._serialize.query('ignore_warnings', ignore_warnings, 'bool') if check_in_ticket is not None: query_parameters['checkInTicket'] = self._serialize.query('check_in_ticket', check_in_ticket, 'str') + if source_build_id is not None: + query_parameters['sourceBuildId'] = self._serialize.query('source_build_id', source_build_id, 'int') content = self._serialize.body(build, 'Build') response = self._send(http_method='POST', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('Build', response) - def update_build(self, build, build_id, project=None): + def update_build(self, build, project, build_id, retry=None): """UpdateBuild. Updates a build. - :param :class:` ` build: The build. - :param int build_id: The ID of the build. + :param :class:` ` build: The build. :param str project: Project ID or project name - :rtype: :class:` ` + :param int build_id: The ID of the build. + :param bool retry: + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') if build_id is not None: route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if retry is not None: + query_parameters['retry'] = self._serialize.query('retry', retry, 'bool') content = self._serialize.body(build, 'Build') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1', + version='5.0', route_values=route_values, + query_parameters=query_parameters, content=content) return self._deserialize('Build', response) - def update_builds(self, builds, project=None): + def update_builds(self, builds, project): """UpdateBuilds. Updates multiple builds. :param [Build] builds: The builds to update. @@ -453,7 +513,7 @@ def update_builds(self, builds, project=None): content = self._serialize.body(builds, '[Build]') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[Build]', self._unwrap_collection(response)) @@ -482,7 +542,7 @@ def get_build_changes(self, project, build_id, continuation_token=None, top=None query_parameters['includeSourceChange'] = self._serialize.query('include_source_change', include_source_change, 'bool') response = self._send(http_method='GET', location_id='54572c7b-bbd3-45d4-80dc-28be08941620', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Change]', self._unwrap_collection(response)) @@ -508,7 +568,7 @@ def get_changes_between_builds(self, project, from_build_id=None, to_build_id=No query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='f10f0ea5-18a1-43ec-a8fb-2042c7be9b43', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Change]', self._unwrap_collection(response)) @@ -517,14 +577,14 @@ def get_build_controller(self, controller_id): """GetBuildController. Gets a controller :param int controller_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if controller_id is not None: route_values['controllerId'] = self._serialize.url('controller_id', controller_id, 'int') response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('BuildController', response) @@ -539,18 +599,18 @@ def get_build_controllers(self, name=None): query_parameters['name'] = self._serialize.query('name', name, 'str') response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[BuildController]', self._unwrap_collection(response)) - def create_definition(self, definition, project=None, definition_to_clone_id=None, definition_to_clone_revision=None): + def create_definition(self, definition, project, definition_to_clone_id=None, definition_to_clone_revision=None): """CreateDefinition. Creates a new definition. - :param :class:` ` definition: The definition. + :param :class:` ` definition: The definition. :param str project: Project ID or project name :param int definition_to_clone_id: :param int definition_to_clone_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -563,17 +623,17 @@ def create_definition(self, definition, project=None, definition_to_clone_id=Non content = self._serialize.body(definition, 'BuildDefinition') response = self._send(http_method='POST', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('BuildDefinition', response) - def delete_definition(self, definition_id, project=None): + def delete_definition(self, project, definition_id): """DeleteDefinition. Deletes a definition and all associated builds. - :param int definition_id: The ID of the definition. :param str project: Project ID or project name + :param int definition_id: The ID of the definition. """ route_values = {} if project is not None: @@ -582,19 +642,19 @@ def delete_definition(self, definition_id, project=None): route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') self._send(http_method='DELETE', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1', + version='5.0', route_values=route_values) - def get_definition(self, definition_id, project=None, revision=None, min_metrics_time=None, property_filters=None, include_latest_builds=None): + def get_definition(self, project, definition_id, revision=None, min_metrics_time=None, property_filters=None, include_latest_builds=None): """GetDefinition. Gets a definition, optionally at a specific revision. - :param int definition_id: The ID of the definition. :param str project: Project ID or project name + :param int definition_id: The ID of the definition. :param int revision: The revision number to retrieve. If this is not specified, the latest version will be returned. :param datetime min_metrics_time: If specified, indicates the date from which metrics should be included. :param [str] property_filters: A comma-delimited list of properties to include in the results. :param bool include_latest_builds: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -613,12 +673,12 @@ def get_definition(self, definition_id, project=None, revision=None, min_metrics query_parameters['includeLatestBuilds'] = self._serialize.query('include_latest_builds', include_latest_builds, 'bool') response = self._send(http_method='GET', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildDefinition', response) - def get_definitions(self, project=None, name=None, repository_id=None, repository_type=None, query_order=None, top=None, continuation_token=None, min_metrics_time=None, definition_ids=None, path=None, built_after=None, not_built_after=None, include_all_properties=None, include_latest_builds=None, task_id_filter=None): + def get_definitions(self, project, name=None, repository_id=None, repository_type=None, query_order=None, top=None, continuation_token=None, min_metrics_time=None, definition_ids=None, path=None, built_after=None, not_built_after=None, include_all_properties=None, include_latest_builds=None, task_id_filter=None, process_type=None, yaml_filename=None): """GetDefinitions. Gets a list of definitions. :param str project: Project ID or project name @@ -636,6 +696,8 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor :param bool include_all_properties: Indicates whether the full definitions should be returned. By default, shallow representations of the definitions are returned. :param bool include_latest_builds: Indicates whether to return the latest and latest completed builds for this definition. :param str task_id_filter: If specified, filters to definitions that use the specified task. + :param int process_type: If specified, filters to definitions with the given process type. + :param str yaml_filename: If specified, filters to YAML definitions that match the given filename. :rtype: [BuildDefinitionReference] """ route_values = {} @@ -671,22 +733,49 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor query_parameters['includeLatestBuilds'] = self._serialize.query('include_latest_builds', include_latest_builds, 'bool') if task_id_filter is not None: query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') + if process_type is not None: + query_parameters['processType'] = self._serialize.query('process_type', process_type, 'int') + if yaml_filename is not None: + query_parameters['yamlFilename'] = self._serialize.query('yaml_filename', yaml_filename, 'str') response = self._send(http_method='GET', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[BuildDefinitionReference]', self._unwrap_collection(response)) - def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): + def restore_definition(self, project, definition_id, deleted): + """RestoreDefinition. + Restores a deleted definition + :param str project: Project ID or project name + :param int definition_id: The identifier of the definition to restore. + :param bool deleted: When false, restores a deleted definition. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if deleted is not None: + query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + response = self._send(http_method='PATCH', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('BuildDefinition', response) + + def update_definition(self, definition, project, definition_id, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. Updates an existing definition. - :param :class:` ` definition: The new version of the defintion. - :param int definition_id: The ID of the definition. + :param :class:` ` definition: The new version of the defintion. :param str project: Project ID or project name + :param int definition_id: The ID of the definition. :param int secrets_source_definition_id: :param int secrets_source_definition_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -701,7 +790,7 @@ def update_definition(self, definition, definition_id, project=None, secrets_sou content = self._serialize.body(definition, 'BuildDefinition') response = self._send(http_method='PUT', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -734,7 +823,7 @@ def get_file_contents(self, project, provider_name, service_endpoint_id=None, re query_parameters['path'] = self._serialize.query('path', path, 'str') response = self._send(http_method='GET', location_id='29d12225-b1d9-425f-b668-6c594a981313', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -747,10 +836,10 @@ def get_file_contents(self, project, provider_name, service_endpoint_id=None, re def create_folder(self, folder, project, path): """CreateFolder. [Preview API] Creates a new folder. - :param :class:` ` folder: The folder. + :param :class:` ` folder: The folder. :param str project: Project ID or project name :param str path: The full path of the folder. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -760,7 +849,7 @@ def create_folder(self, folder, project, path): content = self._serialize.body(folder, 'Folder') response = self._send(http_method='PUT', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('Folder', response) @@ -778,7 +867,7 @@ def delete_folder(self, project, path): route_values['path'] = self._serialize.url('path', path, 'str') self._send(http_method='DELETE', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values) def get_folders(self, project, path=None, query_order=None): @@ -799,7 +888,7 @@ def get_folders(self, project, path=None, query_order=None): query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Folder]', self._unwrap_collection(response)) @@ -807,10 +896,10 @@ def get_folders(self, project, path=None, query_order=None): def update_folder(self, folder, project, path): """UpdateFolder. [Preview API] Updates an existing folder at given existing path - :param :class:` ` folder: The new version of the folder. + :param :class:` ` folder: The new version of the folder. :param str project: Project ID or project name :param str path: The full path to the folder. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -820,11 +909,34 @@ def update_folder(self, folder, project, path): content = self._serialize.body(folder, 'Folder') response = self._send(http_method='POST', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('Folder', response) + def get_latest_build(self, project, definition, branch_name=None): + """GetLatestBuild. + [Preview API] Gets the latest build for a definition, optionally scoped to a specific branch. + :param str project: Project ID or project name + :param str definition: definition name with optional leading folder path, or the definition id + :param str branch_name: optional parameter that indicates the specific branch to use + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition is not None: + route_values['definition'] = self._serialize.url('definition', definition, 'str') + query_parameters = {} + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + response = self._send(http_method='GET', + location_id='54481611-01f4-47f3-998f-160da0f0c229', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Build', response) + def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): """GetBuildLog. Gets an individual log file for a build. @@ -849,7 +961,7 @@ def get_build_log(self, project, build_id, log_id, start_line=None, end_line=Non query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -883,7 +995,7 @@ def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_li query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -902,7 +1014,7 @@ def get_build_logs(self, project, build_id): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BuildLog]', self._unwrap_collection(response)) @@ -920,8 +1032,42 @@ def get_build_logs_zip(self, project, build_id, **kwargs): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.1', + version='5.0', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_build_log_zip(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): + """GetBuildLogZip. + Gets an individual log file for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param int log_id: The ID of the log file. + :param long start_line: The start line. + :param long end_line: The end line. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', + version='5.0', route_values=route_values, + query_parameters=query_parameters, accept_media_type='application/zip') if "callback" in kwargs: callback = kwargs["callback"] @@ -947,7 +1093,7 @@ def get_project_metrics(self, project, metric_aggregation_type=None, min_metrics query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') response = self._send(http_method='GET', location_id='7433fae7-a6bc-41dc-a6e2-eef9005ce41a', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) @@ -970,7 +1116,7 @@ def get_definition_metrics(self, project, definition_id, min_metrics_time=None): query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') response = self._send(http_method='GET', location_id='d973b939-0ce0-4fec-91d8-da3940fa1827', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) @@ -986,7 +1132,7 @@ def get_build_option_definitions(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='591cb5a4-2d46-4f3a-a697-5cd42b6bd332', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BuildOptionDefinition]', self._unwrap_collection(response)) @@ -1017,7 +1163,7 @@ def get_path_contents(self, project, provider_name, service_endpoint_id=None, re query_parameters['path'] = self._serialize.query('path', path, 'str') response = self._send(http_method='GET', location_id='7944d6fb-df01-4709-920a-7a189aa34037', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[SourceRepositoryItem]', self._unwrap_collection(response)) @@ -1028,7 +1174,7 @@ def get_build_properties(self, project, build_id, filter=None): :param str project: Project ID or project name :param int build_id: The ID of the build. :param [str] filter: A comma-delimited list of properties. If specified, filters to these specific properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1041,7 +1187,7 @@ def get_build_properties(self, project, build_id, filter=None): query_parameters['filter'] = self._serialize.query('filter', filter, 'str') response = self._send(http_method='GET', location_id='0a6312e9-0627-49b7-8083-7d74a64849c9', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -1049,10 +1195,10 @@ def get_build_properties(self, project, build_id, filter=None): def update_build_properties(self, document, project, build_id): """UpdateBuildProperties. [Preview API] Updates properties for a build. - :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. + :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. :param str project: Project ID or project name :param int build_id: The ID of the build. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1062,7 +1208,7 @@ def update_build_properties(self, document, project, build_id): content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='0a6312e9-0627-49b7-8083-7d74a64849c9', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -1074,7 +1220,7 @@ def get_definition_properties(self, project, definition_id, filter=None): :param str project: Project ID or project name :param int definition_id: The ID of the definition. :param [str] filter: A comma-delimited list of properties. If specified, filters to these specific properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1087,7 +1233,7 @@ def get_definition_properties(self, project, definition_id, filter=None): query_parameters['filter'] = self._serialize.query('filter', filter, 'str') response = self._send(http_method='GET', location_id='d9826ad7-2a68-46a9-a6e9-677698777895', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -1095,10 +1241,10 @@ def get_definition_properties(self, project, definition_id, filter=None): def update_definition_properties(self, document, project, definition_id): """UpdateDefinitionProperties. [Preview API] Updates properties for a definition. - :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. + :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. :param str project: Project ID or project name :param int definition_id: The ID of the definition. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1108,19 +1254,48 @@ def update_definition_properties(self, document, project, definition_id): content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='d9826ad7-2a68-46a9-a6e9-677698777895', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') return self._deserialize('object', response) + def get_pull_request(self, project, provider_name, pull_request_id, repository_id=None, service_endpoint_id=None): + """GetPullRequest. + [Preview API] Gets a pull request object from source provider. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str pull_request_id: Vendor-specific id of the pull request. + :param str repository_id: Vendor-specific identifier or the name of the repository that contains the pull request. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'str') + query_parameters = {} + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + response = self._send(http_method='GET', + location_id='d8763ec7-9ff0-4fb4-b2b2-9d757906ff14', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PullRequest', response) + def get_build_report(self, project, build_id, type=None): """GetBuildReport. [Preview API] Gets a build report. :param str project: Project ID or project name :param int build_id: The ID of the build. :param str type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1132,7 +1307,7 @@ def get_build_report(self, project, build_id, type=None): query_parameters['type'] = self._serialize.query('type', type, 'str') response = self._send(http_method='GET', location_id='45bcaa88-67e1-4042-a035-56d3b4a7d44c', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildReportMetadata', response) @@ -1155,7 +1330,7 @@ def get_build_report_html_content(self, project, build_id, type=None, **kwargs): query_parameters['type'] = self._serialize.query('type', type, 'str') response = self._send(http_method='GET', location_id='45bcaa88-67e1-4042-a035-56d3b4a7d44c', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/html') @@ -1175,7 +1350,7 @@ def list_repositories(self, project, provider_name, service_endpoint_id=None, re :param str result_set: 'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set. :param bool page_results: If set to true, this will limit the set of results and will return a continuation token to continue the query. :param str continuation_token: When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1195,19 +1370,58 @@ def list_repositories(self, project, provider_name, service_endpoint_id=None, re query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') response = self._send(http_method='GET', location_id='d44d1680-f978-4834-9b93-8c6e132329c9', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('SourceRepositories', response) + def authorize_definition_resources(self, resources, project, definition_id): + """AuthorizeDefinitionResources. + [Preview API] + :param [DefinitionResourceReference] resources: + :param str project: Project ID or project name + :param int definition_id: + :rtype: [DefinitionResourceReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + content = self._serialize.body(resources, '[DefinitionResourceReference]') + response = self._send(http_method='PATCH', + location_id='ea623316-1967-45eb-89ab-e9e6110cf2d6', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) + + def get_definition_resources(self, project, definition_id): + """GetDefinitionResources. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :rtype: [DefinitionResourceReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='ea623316-1967-45eb-89ab-e9e6110cf2d6', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) + def get_resource_usage(self): """GetResourceUsage. [Preview API] Gets information about build resources in the system. - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='3813d06c-9e36-4ea1-aac3-61a485d60e3d', - version='4.1-preview.2') + version='5.0-preview.2') return self._deserialize('BuildResourceUsage', response) def get_definition_revisions(self, project, definition_id): @@ -1224,30 +1438,40 @@ def get_definition_revisions(self, project, definition_id): route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') response = self._send(http_method='GET', location_id='7c116775-52e5-453e-8c5d-914d9762d8c4', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BuildDefinitionRevision]', self._unwrap_collection(response)) - def get_build_settings(self): + def get_build_settings(self, project=None): """GetBuildSettings. Gets the build settings. - :rtype: :class:` ` + :param str project: Project ID or project name + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', - version='4.1') + version='5.0', + route_values=route_values) return self._deserialize('BuildSettings', response) - def update_build_settings(self, settings): + def update_build_settings(self, settings, project=None): """UpdateBuildSettings. Updates the build settings. - :param :class:` ` settings: The new settings. - :rtype: :class:` ` + :param :class:` ` settings: The new settings. + :param str project: Project ID or project name + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') content = self._serialize.body(settings, 'BuildSettings') response = self._send(http_method='PATCH', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', - version='4.1', + version='5.0', + route_values=route_values, content=content) return self._deserialize('BuildSettings', response) @@ -1262,10 +1486,45 @@ def list_source_providers(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='3ce81729-954f-423d-a581-9fea01d25186', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[SourceProviderAttributes]', self._unwrap_collection(response)) + def get_status_badge(self, project, definition, branch_name=None, stage_name=None, job_name=None, configuration=None, label=None): + """GetStatusBadge. + [Preview API]

Gets the build status for a definition, optionally scoped to a specific branch, stage, job, and configuration.

If there are more than one, then it is required to pass in a stageName value when specifying a jobName, and the same rule then applies for both if passing a configuration parameter.

+ :param str project: Project ID or project name + :param str definition: Either the definition name with optional leading folder path, or the definition id. + :param str branch_name: Only consider the most recent build for this branch. + :param str stage_name: Use this stage within the pipeline to render the status. + :param str job_name: Use this job within a stage of the pipeline to render the status. + :param str configuration: Use this job configuration to render the status + :param str label: Replaces the default text on the left side of the badge. + :rtype: str + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition is not None: + route_values['definition'] = self._serialize.url('definition', definition, 'str') + query_parameters = {} + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if stage_name is not None: + query_parameters['stageName'] = self._serialize.query('stage_name', stage_name, 'str') + if job_name is not None: + query_parameters['jobName'] = self._serialize.query('job_name', job_name, 'str') + if configuration is not None: + query_parameters['configuration'] = self._serialize.query('configuration', configuration, 'str') + if label is not None: + query_parameters['label'] = self._serialize.query('label', label, 'str') + response = self._send(http_method='GET', + location_id='07acfdce-4757-4439-b422-ddd13a2fcc10', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('str', response) + def add_build_tag(self, project, build_id, tag): """AddBuildTag. Adds a tag to a build. @@ -1283,7 +1542,7 @@ def add_build_tag(self, project, build_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='PUT', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1303,7 +1562,7 @@ def add_build_tags(self, tags, project, build_id): content = self._serialize.body(tags, '[str]') response = self._send(http_method='POST', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1325,7 +1584,7 @@ def delete_build_tag(self, project, build_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='DELETE', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1343,7 +1602,7 @@ def get_build_tags(self, project, build_id): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1358,7 +1617,7 @@ def get_tags(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1379,7 +1638,7 @@ def add_definition_tag(self, project, definition_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='PUT', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1399,7 +1658,7 @@ def add_definition_tags(self, tags, project, definition_id): content = self._serialize.body(tags, '[str]') response = self._send(http_method='POST', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1421,7 +1680,7 @@ def delete_definition_tag(self, project, definition_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='DELETE', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1443,7 +1702,7 @@ def get_definition_tags(self, project, definition_id, revision=None): query_parameters['revision'] = self._serialize.query('revision', revision, 'int') response = self._send(http_method='GET', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1461,7 +1720,7 @@ def delete_template(self, project, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') self._send(http_method='DELETE', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1', + version='5.0', route_values=route_values) def get_template(self, project, template_id): @@ -1469,7 +1728,7 @@ def get_template(self, project, template_id): Gets a specific build definition template. :param str project: Project ID or project name :param str template_id: The ID of the requested template. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1478,7 +1737,7 @@ def get_template(self, project, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('BuildDefinitionTemplate', response) @@ -1493,17 +1752,17 @@ def get_templates(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BuildDefinitionTemplate]', self._unwrap_collection(response)) def save_template(self, template, project, template_id): """SaveTemplate. Updates an existing build definition template. - :param :class:` ` template: The new version of the template. + :param :class:` ` template: The new version of the template. :param str project: Project ID or project name :param str template_id: The ID of the template. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1513,66 +1772,11 @@ def save_template(self, template, project, template_id): content = self._serialize.body(template, 'BuildDefinitionTemplate') response = self._send(http_method='PUT', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('BuildDefinitionTemplate', response) - def get_ticketed_artifact_content_zip(self, build_id, project_id, artifact_name, download_ticket, **kwargs): - """GetTicketedArtifactContentZip. - [Preview API] Gets a Zip file of the artifact with the given name for a build. - :param int build_id: The ID of the build. - :param str project_id: The project ID. - :param str artifact_name: The name of the artifact. - :param String download_ticket: A valid ticket that gives permission to download artifacts - :rtype: object - """ - route_values = {} - if build_id is not None: - route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') - query_parameters = {} - if project_id is not None: - query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') - if artifact_name is not None: - query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') - response = self._send(http_method='GET', - location_id='731b7e7a-0b6c-4912-af75-de04fe4899db', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - - def get_ticketed_logs_content_zip(self, build_id, project_id, download_ticket, **kwargs): - """GetTicketedLogsContentZip. - [Preview API] Gets a Zip file of the logs for a given build. - :param int build_id: The ID of the build. - :param str project_id: The project ID. - :param String download_ticket: A valid ticket that gives permission to download the logs. - :rtype: object - """ - route_values = {} - if build_id is not None: - route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') - query_parameters = {} - if project_id is not None: - query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') - response = self._send(http_method='GET', - location_id='917890d1-a6b5-432d-832a-6afcf6bb0734', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - accept_media_type='application/zip') - if "callback" in kwargs: - callback = kwargs["callback"] - else: - callback = None - return self._client.stream_download(response, callback=callback) - def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None, plan_id=None): """GetBuildTimeline. Gets details for a build @@ -1581,7 +1785,7 @@ def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None :param str timeline_id: :param int change_id: :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1597,7 +1801,7 @@ def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='8baac422-4c6e-4de5-8532-db96d92acffa', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Timeline', response) @@ -1624,7 +1828,7 @@ def restore_webhooks(self, trigger_types, project, provider_name, service_endpoi content = self._serialize.body(trigger_types, '[DefinitionTriggerType]') self._send(http_method='POST', location_id='793bceb8-9736-4030-bd2f-fb3ce6d6b478', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1650,7 +1854,7 @@ def list_webhooks(self, project, provider_name, service_endpoint_id=None, reposi query_parameters['repository'] = self._serialize.query('repository', repository, 'str') response = self._send(http_method='GET', location_id='8f20ff82-9498-4812-9f6e-9c01bdc50e99', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[RepositoryWebhook]', self._unwrap_collection(response)) @@ -1673,7 +1877,7 @@ def get_build_work_items_refs(self, project, build_id, top=None): query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) @@ -1698,7 +1902,7 @@ def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, content = self._serialize.body(commit_ids, '[str]') response = self._send(http_method='POST', location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1725,7 +1929,7 @@ def get_work_items_between_builds(self, project, from_build_id, to_build_id, top query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='52ba8915-5518-42e3-a4bb-b0182d159e2d', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/build/models.py b/azure-devops/azure/devops/v5_0/build/models.py similarity index 86% rename from azure-devops/azure/devops/v4_1/build/models.py rename to azure-devops/azure/devops/v5_0/build/models.py index 691cb814..7bcbea28 100644 --- a/azure-devops/azure/devops/v4_1/build/models.py +++ b/azure-devops/azure/devops/v5_0/build/models.py @@ -13,13 +13,13 @@ class AgentPoolQueue(Model): """AgentPoolQueue. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: The ID of the queue. :type id: int :param name: The name of the queue. :type name: str :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param url: The full http link to the resource. :type url: str """ @@ -49,11 +49,13 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_outcome: + :type run_summary_by_outcome: dict :param run_summary_by_state: :type run_summary_by_state: dict :param total_tests: @@ -66,17 +68,19 @@ class AggregatedResultsAnalysis(Model): 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_outcome': {'key': 'runSummaryByOutcome', 'type': '{AggregatedRunsByOutcome}'}, 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, 'total_tests': {'key': 'totalTests', 'type': 'int'} } - def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_outcome=None, run_summary_by_state=None, total_tests=None): super(AggregatedResultsAnalysis, self).__init__() self.duration = duration self.not_reported_results_by_outcome = not_reported_results_by_outcome self.previous_context = previous_context self.results_by_outcome = results_by_outcome self.results_difference = results_difference + self.run_summary_by_outcome = run_summary_by_outcome self.run_summary_by_state = run_summary_by_state self.total_tests = total_tests @@ -149,9 +153,31 @@ def __init__(self, increase_in_duration=None, increase_in_failures=None, increas self.increase_in_total_tests = increase_in_total_tests +class AggregatedRunsByOutcome(Model): + """AggregatedRunsByOutcome. + + :param outcome: + :type outcome: object + :param runs_count: + :type runs_count: int + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'runs_count': {'key': 'runsCount', 'type': 'int'} + } + + def __init__(self, outcome=None, runs_count=None): + super(AggregatedRunsByOutcome, self).__init__() + self.outcome = outcome + self.runs_count = runs_count + + class AggregatedRunsByState(Model): """AggregatedRunsByState. + :param results_by_outcome: + :type results_by_outcome: dict :param runs_count: :type runs_count: int :param state: @@ -159,12 +185,14 @@ class AggregatedRunsByState(Model): """ _attribute_map = { + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, 'runs_count': {'key': 'runsCount', 'type': 'int'}, 'state': {'key': 'state', 'type': 'object'} } - def __init__(self, runs_count=None, state=None): + def __init__(self, results_by_outcome=None, runs_count=None, state=None): super(AggregatedRunsByState, self).__init__() + self.results_by_outcome = results_by_outcome self.runs_count = runs_count self.state = state @@ -173,11 +201,9 @@ class ArtifactResource(Model): """ArtifactResource. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param data: Type-specific data about the artifact. :type data: str - :param download_ticket: A secret that can be sent in a request header to retrieve an artifact anonymously. Valid for a limited amount of time. Optional. - :type download_ticket: str :param download_url: A link to download the resource. :type download_url: str :param properties: Type-specific properties of the artifact. @@ -191,18 +217,16 @@ class ArtifactResource(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'data': {'key': 'data', 'type': 'str'}, - 'download_ticket': {'key': 'downloadTicket', 'type': 'str'}, 'download_url': {'key': 'downloadUrl', 'type': 'str'}, 'properties': {'key': 'properties', 'type': '{str}'}, 'type': {'key': 'type', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, data=None, download_ticket=None, download_url=None, properties=None, type=None, url=None): + def __init__(self, _links=None, data=None, download_url=None, properties=None, type=None, url=None): super(ArtifactResource, self).__init__() self._links = _links self.data = data - self.download_ticket = download_ticket self.download_url = download_url self.properties = properties self.type = type @@ -253,7 +277,7 @@ class Attachment(Model): """Attachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name of the attachment. :type name: str """ @@ -293,25 +317,25 @@ class Build(Model): """Build. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param build_number: The build number/name of the build. :type build_number: str :param build_number_revision: The build number revision. :type build_number_revision: int :param controller: The build controller. This is only set if the definition type is Xaml. - :type controller: :class:`BuildController ` + :type controller: :class:`BuildController ` :param definition: The definition associated with the build. - :type definition: :class:`DefinitionReference ` + :type definition: :class:`DefinitionReference ` :param deleted: Indicates whether the build has been deleted. :type deleted: bool :param deleted_by: The identity of the process or person that deleted the build. - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: The date the build was deleted. :type deleted_date: datetime :param deleted_reason: The description of how the build was deleted. :type deleted_reason: str :param demands: A list of demands that represents the agent capabilities required by this build. - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param finish_time: The time that the build was completed. :type finish_time: datetime :param id: The ID of the build. @@ -319,27 +343,27 @@ class Build(Model): :param keep_forever: Indicates whether the build should be skipped by retention policies. :type keep_forever: bool :param last_changed_by: The identity representing the process or person that last changed the build. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the build was last changed. :type last_changed_date: datetime :param logs: Information about the build logs. - :type logs: :class:`BuildLogReference ` + :type logs: :class:`BuildLogReference ` :param orchestration_plan: The orchestration plan for the build. - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` :param parameters: The parameters for the build. :type parameters: str :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` + :type plans: list of :class:`TaskOrchestrationPlanReference ` :param priority: The build's priority. :type priority: object :param project: The team project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param quality: The quality of the xaml build (good, bad, etc.) :type quality: str :param queue: The queue. This is only set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param queue_options: Additional options for queueing the build. :type queue_options: object :param queue_position: The current position of the build in the queue. @@ -349,11 +373,11 @@ class Build(Model): :param reason: The reason that the build was created. :type reason: object :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param requested_by: The identity that queued the build. - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param requested_for: The identity on whose behalf the build was queued. - :type requested_for: :class:`IdentityRef ` + :type requested_for: :class:`IdentityRef ` :param result: The build result. :type result: object :param retained_by_release: Indicates whether the build is retained by a release. @@ -369,7 +393,7 @@ class Build(Model): :param tags: :type tags: list of str :param triggered_by_build: The build that triggered this build via a Build completion trigger. - :type triggered_by_build: :class:`Build ` + :type triggered_by_build: :class:`Build ` :param trigger_info: Sourceprovider-specific information about what triggered the build :type trigger_info: dict :param uri: The URI of the build. @@ -377,7 +401,7 @@ class Build(Model): :param url: The REST URL of the build. :type url: str :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` + :type validation_results: list of :class:`BuildRequestValidationResult ` """ _attribute_map = { @@ -481,7 +505,7 @@ class BuildArtifact(Model): :param name: The name of the artifact. :type name: str :param resource: The actual resource. - :type resource: :class:`ArtifactResource ` + :type resource: :class:`ArtifactResource ` """ _attribute_map = { @@ -521,7 +545,7 @@ class BuildDefinitionRevision(Model): """BuildDefinitionRevision. :param changed_by: The identity of the person or process that changed the definition. - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: The date and time that the definition was changed. :type changed_date: datetime :param change_type: The change type (add, edit, delete). @@ -577,7 +601,7 @@ class BuildDefinitionStep(Model): :param ref_name: The reference name for this step. :type ref_name: str :param task: The task associated with this step. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: The time, in minutes, that this step is allowed to run. :type timeout_in_minutes: int """ @@ -629,7 +653,7 @@ class BuildDefinitionTemplate(Model): :param name: The name of the template. :type name: str :param template: The actual template. - :type template: :class:`BuildDefinition ` + :type template: :class:`BuildDefinition ` """ _attribute_map = { @@ -677,7 +701,7 @@ class BuildDefinitionTemplate3_2(Model): :param name: :type name: str :param template: - :type template: :class:`BuildDefinition3_2 ` + :type template: :class:`BuildDefinition3_2 ` """ _attribute_map = { @@ -785,7 +809,7 @@ class BuildOption(Model): """BuildOption. :param definition: A reference to the build option. - :type definition: :class:`BuildOptionDefinitionReference ` + :type definition: :class:`BuildOptionDefinitionReference ` :param enabled: Indicates whether the behavior is enabled. :type enabled: bool :param inputs: @@ -1019,9 +1043,9 @@ class BuildSettings(Model): :param days_to_keep_deleted_builds_before_destroy: The number of days to keep records of deleted builds. :type days_to_keep_deleted_builds_before_destroy: int :param default_retention_policy: The default retention policy. - :type default_retention_policy: :class:`RetentionPolicy ` + :type default_retention_policy: :class:`RetentionPolicy ` :param maximum_retention_policy: The maximum retention policy. - :type maximum_retention_policy: :class:`RetentionPolicy ` + :type maximum_retention_policy: :class:`RetentionPolicy ` """ _attribute_map = { @@ -1041,7 +1065,7 @@ class Change(Model): """Change. :param author: The author of the change. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param display_uri: The location of a user-friendly representation of the resource. :type display_uri: str :param id: The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. @@ -1088,6 +1112,10 @@ def __init__(self, author=None, display_uri=None, id=None, location=None, messag class DataSourceBindingBase(Model): """DataSourceBindingBase. + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str :param endpoint_id: Gets or sets the endpoint Id. @@ -1095,7 +1123,9 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -1107,22 +1137,28 @@ class DataSourceBindingBase(Model): """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'} } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None): super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template self.data_source_name = data_source_name self.endpoint_id = endpoint_id self.endpoint_url = endpoint_url self.headers = headers + self.initial_context_template = initial_context_template self.parameters = parameters self.result_selector = result_selector self.result_template = result_template @@ -1141,7 +1177,7 @@ class DefinitionReference(Model): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -1181,6 +1217,34 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non self.url = url +class DefinitionResourceReference(Model): + """DefinitionResourceReference. + + :param authorized: Indicates whether the resource is authorized for use. + :type authorized: bool + :param id: The id of the resource. + :type id: str + :param name: A friendly name for the resource. + :type name: str + :param type: The type of the resource. + :type type: str + """ + + _attribute_map = { + 'authorized': {'key': 'authorized', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, authorized=None, id=None, name=None, type=None): + super(DefinitionResourceReference, self).__init__() + self.authorized = authorized + self.id = id + self.name = name + self.type = type + + class Deployment(Model): """Deployment. @@ -1201,19 +1265,19 @@ class Folder(Model): """Folder. :param created_by: The process or person who created the folder. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: The date the folder was created. :type created_on: datetime :param description: The description. :type description: str :param last_changed_by: The process or person that last changed the folder. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the folder was last changed. :type last_changed_date: datetime :param path: The full path. :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -1241,7 +1305,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1269,7 +1333,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1288,6 +1352,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -1305,11 +1371,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -1317,6 +1384,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -1381,11 +1449,11 @@ class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :type data_source_bindings: list of :class:`DataSourceBindingBase ` :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` + :type inputs: list of :class:`TaskInputDefinitionBase ` :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` """ _attribute_map = { @@ -1401,6 +1469,62 @@ def __init__(self, data_source_bindings=None, inputs=None, source_definitions=No self.source_definitions = source_definitions +class PullRequest(Model): + """PullRequest. + + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the pull request. + :type author: :class:`IdentityRef ` + :param current_state: Current state of the pull request, e.g. open, merged, closed, conflicts, etc. + :type current_state: str + :param description: Description for the pull request. + :type description: str + :param id: Unique identifier for the pull request + :type id: str + :param provider_name: The name of the provider this pull request is associated with. + :type provider_name: str + :param source_branch_ref: Source branch ref of this pull request + :type source_branch_ref: str + :param source_repository_owner: Owner of the source repository of this pull request + :type source_repository_owner: str + :param target_branch_ref: Target branch ref of this pull request + :type target_branch_ref: str + :param target_repository_owner: Owner of the target repository of this pull request + :type target_repository_owner: str + :param title: Title of the pull request. + :type title: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'current_state': {'key': 'currentState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'source_branch_ref': {'key': 'sourceBranchRef', 'type': 'str'}, + 'source_repository_owner': {'key': 'sourceRepositoryOwner', 'type': 'str'}, + 'target_branch_ref': {'key': 'targetBranchRef', 'type': 'str'}, + 'target_repository_owner': {'key': 'targetRepositoryOwner', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, current_state=None, description=None, id=None, provider_name=None, source_branch_ref=None, source_repository_owner=None, target_branch_ref=None, target_repository_owner=None, title=None): + super(PullRequest, self).__init__() + self._links = _links + self.author = author + self.current_state = current_state + self.description = description + self.id = id + self.provider_name = provider_name + self.source_branch_ref = source_branch_ref + self.source_repository_owner = source_repository_owner + self.target_branch_ref = target_branch_ref + self.target_repository_owner = target_repository_owner + self.title = title + + class ReferenceLinks(Model): """ReferenceLinks. @@ -1420,24 +1544,33 @@ def __init__(self, links=None): class ReleaseReference(Model): """ReleaseReference. - :param definition_id: + :param attempt: + :type attempt: int + :param creation_date: + :type creation_date: datetime + :param definition_id: Release definition ID. :type definition_id: int - :param environment_definition_id: + :param environment_creation_date: + :type environment_creation_date: datetime + :param environment_definition_id: Release environment definition ID. :type environment_definition_id: int - :param environment_definition_name: + :param environment_definition_name: Release environment definition name. :type environment_definition_name: str - :param environment_id: + :param environment_id: Release environment ID. :type environment_id: int - :param environment_name: + :param environment_name: Release environment name. :type environment_name: str - :param id: + :param id: Release ID. :type id: int - :param name: + :param name: Release name. :type name: str """ _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_creation_date': {'key': 'environmentCreationDate', 'type': 'iso-8601'}, 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, 'environment_id': {'key': 'environmentId', 'type': 'int'}, @@ -1446,9 +1579,12 @@ class ReleaseReference(Model): 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + def __init__(self, attempt=None, creation_date=None, definition_id=None, environment_creation_date=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): super(ReleaseReference, self).__init__() + self.attempt = attempt + self.creation_date = creation_date self.definition_id = definition_id + self.environment_creation_date = environment_creation_date self.environment_definition_id = environment_definition_id self.environment_definition_name = environment_definition_name self.environment_id = environment_id @@ -1549,7 +1685,7 @@ class SourceProviderAttributes(Model): :param supported_capabilities: The capabilities supported by this source provider. :type supported_capabilities: dict :param supported_triggers: The types of triggers supported by this source provider. - :type supported_triggers: list of :class:`SupportedTrigger ` + :type supported_triggers: list of :class:`SupportedTrigger ` """ _attribute_map = { @@ -1573,7 +1709,7 @@ class SourceRepositories(Model): :param page_length: The number of repositories requested for each page :type page_length: int :param repositories: A list of repositories - :type repositories: list of :class:`SourceRepository ` + :type repositories: list of :class:`SourceRepository ` :param total_page_count: The total number of pages, or '-1' if unknown :type total_page_count: int """ @@ -1761,7 +1897,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -1898,6 +2034,8 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. @@ -1916,6 +2054,7 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -1925,9 +2064,10 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id self.name = name @@ -1941,11 +2081,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -1961,17 +2101,43 @@ def __init__(self, build=None, context_type=None, release=None): self.release = release +class TimelineAttempt(Model): + """TimelineAttempt. + + :param attempt: Gets or sets the attempt of the record. + :type attempt: int + :param record_id: Gets or sets the record identifier located within the specified timeline. + :type record_id: str + :param timeline_id: Gets or sets the timeline identifier which owns the record representing this attempt. + :type timeline_id: str + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'} + } + + def __init__(self, attempt=None, record_id=None, timeline_id=None): + super(TimelineAttempt, self).__init__() + self.attempt = attempt + self.record_id = record_id + self.timeline_id = timeline_id + + class TimelineRecord(Model): """TimelineRecord. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param attempt: + :type attempt: int :param change_id: The change ID. :type change_id: int :param current_operation: A string that indicates the current operation. :type current_operation: str :param details: A reference to a sub-timeline. - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: The number of errors produced by this operation. :type error_count: int :param finish_time: The finish time. @@ -1979,11 +2145,11 @@ class TimelineRecord(Model): :param id: The ID of the record. :type id: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: The time the record was last modified. :type last_modified: datetime :param log: A reference to the log produced by this operation. - :type log: :class:`BuildLogReference ` + :type log: :class:`BuildLogReference ` :param name: The name. :type name: str :param order: An ordinal value relative to other records. @@ -1992,6 +2158,8 @@ class TimelineRecord(Model): :type parent_id: str :param percent_complete: The current completion percentage. :type percent_complete: int + :param previous_attempts: + :type previous_attempts: list of :class:`TimelineAttempt ` :param result: The result. :type result: object :param result_code: The result code. @@ -2001,7 +2169,7 @@ class TimelineRecord(Model): :param state: The state of the record. :type state: object :param task: A reference to the task represented by this timeline record. - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: The type of the record. :type type: str :param url: The REST URL of the timeline record. @@ -2014,6 +2182,7 @@ class TimelineRecord(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, 'change_id': {'key': 'changeId', 'type': 'int'}, 'current_operation': {'key': 'currentOperation', 'type': 'str'}, 'details': {'key': 'details', 'type': 'TimelineReference'}, @@ -2027,6 +2196,7 @@ class TimelineRecord(Model): 'order': {'key': 'order', 'type': 'int'}, 'parent_id': {'key': 'parentId', 'type': 'str'}, 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'previous_attempts': {'key': 'previousAttempts', 'type': '[TimelineAttempt]'}, 'result': {'key': 'result', 'type': 'object'}, 'result_code': {'key': 'resultCode', 'type': 'str'}, 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, @@ -2038,9 +2208,10 @@ class TimelineRecord(Model): 'worker_name': {'key': 'workerName', 'type': 'str'} } - def __init__(self, _links=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): + def __init__(self, _links=None, attempt=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, previous_attempts=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): super(TimelineRecord, self).__init__() self._links = _links + self.attempt = attempt self.change_id = change_id self.current_operation = current_operation self.details = details @@ -2054,6 +2225,7 @@ def __init__(self, _links=None, change_id=None, current_operation=None, details= self.order = order self.parent_id = parent_id self.percent_complete = percent_complete + self.previous_attempts = previous_attempts self.result = result self.result_code = result_code self.start_time = start_time @@ -2092,16 +2264,20 @@ def __init__(self, change_id=None, id=None, url=None): class VariableGroupReference(Model): """VariableGroupReference. + :param alias: The Name of the variable group. + :type alias: str :param id: The ID of the variable group. :type id: int """ _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'} } - def __init__(self, id=None): + def __init__(self, alias=None, id=None): super(VariableGroupReference, self).__init__() + self.alias = alias self.id = id @@ -2159,7 +2335,7 @@ class BuildController(XamlBuildControllerReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: The date the controller was created. :type created_date: datetime :param description: The description of the controller. @@ -2210,7 +2386,7 @@ class BuildDefinitionReference(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2222,23 +2398,23 @@ class BuildDefinitionReference(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2288,7 +2464,7 @@ class BuildDefinitionReference3_2(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2300,19 +2476,19 @@ class BuildDefinitionReference3_2(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2387,9 +2563,9 @@ class BuildOptionDefinition(BuildOptionDefinitionReference): :param description: The description. :type description: str :param groups: The list of input groups defined for the build option. - :type groups: list of :class:`BuildOptionGroupDefinition ` + :type groups: list of :class:`BuildOptionGroupDefinition ` :param inputs: The list of inputs defined for the build option. - :type inputs: list of :class:`BuildOptionInputDefinition ` + :type inputs: list of :class:`BuildOptionInputDefinition ` :param name: The name of the build option. :type name: str :param ordinal: A value that indicates the relative order in which the behavior should be applied. @@ -2428,7 +2604,7 @@ class Timeline(TimelineReference): :param last_changed_on: The time the timeline was last changed. :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -2450,6 +2626,8 @@ def __init__(self, change_id=None, id=None, url=None, last_changed_by=None, last class VariableGroup(VariableGroupReference): """VariableGroup. + :param alias: The Name of the variable group. + :type alias: str :param id: The ID of the variable group. :type id: int :param description: The description. @@ -2463,6 +2641,7 @@ class VariableGroup(VariableGroupReference): """ _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'description': {'key': 'description', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -2470,8 +2649,8 @@ class VariableGroup(VariableGroupReference): 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } - def __init__(self, id=None, description=None, name=None, type=None, variables=None): - super(VariableGroup, self).__init__(id=id) + def __init__(self, alias=None, id=None, description=None, name=None, type=None, variables=None): + super(VariableGroup, self).__init__(alias=alias, id=id) self.description = description self.name = name self.type = type @@ -2490,7 +2669,7 @@ class BuildDefinition(BuildDefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2502,23 +2681,23 @@ class BuildDefinition(BuildDefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition. :type badge_enabled: bool :param build_number_format: The build number format. @@ -2526,7 +2705,7 @@ class BuildDefinition(BuildDefinitionReference): :param comment: A save-time comment for the definition. :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description. :type description: str :param drop_location: The drop location for the definition. @@ -2538,23 +2717,23 @@ class BuildDefinition(BuildDefinitionReference): :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. :type job_timeout_in_minutes: int :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`object ` + :type process: :class:`object ` :param process_parameters: The process parameters for this definition. - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` + :type variable_groups: list of :class:`VariableGroup ` :param variables: :type variables: dict """ @@ -2635,7 +2814,7 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2647,29 +2826,29 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition :type badge_enabled: bool :param build: - :type build: list of :class:`BuildDefinitionStep ` + :type build: list of :class:`BuildDefinitionStep ` :param build_number_format: The build number format :type build_number_format: str :param comment: The comment entered when saving the definition :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description :type description: str :param drop_location: The drop location for the definition @@ -2681,23 +2860,23 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition :type job_timeout_in_minutes: int :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ @@ -2771,6 +2950,7 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', 'AggregatedRunsByState', 'ArtifactResource', 'AssociatedWorkItem', @@ -2798,6 +2978,7 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non 'Change', 'DataSourceBindingBase', 'DefinitionReference', + 'DefinitionResourceReference', 'Deployment', 'Folder', 'GraphSubjectBase', @@ -2805,6 +2986,7 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non 'Issue', 'JsonPatchOperation', 'ProcessParameters', + 'PullRequest', 'ReferenceLinks', 'ReleaseReference', 'RepositoryWebhook', @@ -2824,6 +3006,7 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non 'TaskSourceDefinitionBase', 'TeamProjectReference', 'TestResultsContext', + 'TimelineAttempt', 'TimelineRecord', 'TimelineReference', 'VariableGroupReference', diff --git a/azure-devops/azure/devops/v4_1/client_trace/__init__.py b/azure-devops/azure/devops/v5_0/client_trace/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/client_trace/__init__.py rename to azure-devops/azure/devops/v5_0/client_trace/__init__.py diff --git a/azure-devops/azure/devops/v4_1/client_trace/client_trace_client.py b/azure-devops/azure/devops/v5_0/client_trace/client_trace_client.py similarity index 97% rename from azure-devops/azure/devops/v4_1/client_trace/client_trace_client.py rename to azure-devops/azure/devops/v5_0/client_trace/client_trace_client.py index 932d972c..09ef7538 100644 --- a/azure-devops/azure/devops/v4_1/client_trace/client_trace_client.py +++ b/azure-devops/azure/devops/v5_0/client_trace/client_trace_client.py @@ -33,6 +33,6 @@ def publish_events(self, events): content = self._serialize.body(events, '[ClientTraceEvent]') self._send(http_method='POST', location_id='06bcc74a-1491-4eb8-a0eb-704778f9d041', - version='4.1-preview.1', + version='5.0-preview.1', content=content) diff --git a/azure-devops/azure/devops/v4_1/client_trace/models.py b/azure-devops/azure/devops/v5_0/client_trace/models.py similarity index 100% rename from azure-devops/azure/devops/v4_1/client_trace/models.py rename to azure-devops/azure/devops/v5_0/client_trace/models.py diff --git a/azure-devops/azure/devops/v4_1/cloud_load_test/__init__.py b/azure-devops/azure/devops/v5_0/cloud_load_test/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/cloud_load_test/__init__.py rename to azure-devops/azure/devops/v5_0/cloud_load_test/__init__.py diff --git a/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py b/azure-devops/azure/devops/v5_0/cloud_load_test/cloud_load_test_client.py similarity index 86% rename from azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py rename to azure-devops/azure/devops/v5_0/cloud_load_test/cloud_load_test_client.py index 059a0630..bf232e7e 100644 --- a/azure-devops/azure/devops/v4_1/cloud_load_test/cloud_load_test_client.py +++ b/azure-devops/azure/devops/v5_0/cloud_load_test/cloud_load_test_client.py @@ -27,13 +27,13 @@ def __init__(self, base_url=None, creds=None): def create_agent_group(self, group): """CreateAgentGroup. - :param :class:` ` group: Agent group to be created - :rtype: :class:` ` + :param :class:` ` group: Agent group to be created + :rtype: :class:` ` """ content = self._serialize.body(group, 'AgentGroup') response = self._send(http_method='POST', location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', - version='4.1', + version='5.0', content=content) return self._deserialize('AgentGroup', response) @@ -60,7 +60,7 @@ def get_agent_groups(self, agent_group_id=None, machine_setup_input=None, machin query_parameters['agentGroupName'] = self._serialize.query('agent_group_name', agent_group_name, 'str') response = self._send(http_method='GET', location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -79,7 +79,7 @@ def delete_static_agent(self, agent_group_id, agent_name): query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') response = self._send(http_method='DELETE', location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) @@ -98,7 +98,7 @@ def get_static_agents(self, agent_group_id, agent_name=None): query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') response = self._send(http_method='GET', location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -106,14 +106,14 @@ def get_static_agents(self, agent_group_id, agent_name=None): def get_application(self, application_id): """GetApplication. :param str application_id: Filter by APM application identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if application_id is not None: route_values['applicationId'] = self._serialize.url('application_id', application_id, 'str') response = self._send(http_method='GET', location_id='2c986dce-8e8d-4142-b541-d016d5aff764', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Application', response) @@ -127,7 +127,7 @@ def get_applications(self, type=None): query_parameters['type'] = self._serialize.query('type', type, 'str') response = self._send(http_method='GET', location_id='2c986dce-8e8d-4142-b541-d016d5aff764', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[Application]', self._unwrap_collection(response)) @@ -148,7 +148,7 @@ def get_counters(self, test_run_id, group_names, include_summary=None): query_parameters['includeSummary'] = self._serialize.query('include_summary', include_summary, 'bool') response = self._send(http_method='GET', location_id='29265ea4-b5a5-4b2e-b054-47f5f6f00183', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestRunCounterInstance]', self._unwrap_collection(response)) @@ -166,15 +166,15 @@ def get_application_counters(self, application_id=None, plugintype=None): query_parameters['plugintype'] = self._serialize.query('plugintype', plugintype, 'str') response = self._send(http_method='GET', location_id='c1275ce9-6d26-4bc6-926b-b846502e812d', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[ApplicationCounters]', self._unwrap_collection(response)) def get_counter_samples(self, counter_sample_query_details, test_run_id): """GetCounterSamples. - :param :class:` ` counter_sample_query_details: + :param :class:` ` counter_sample_query_details: :param str test_run_id: The test run identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -182,7 +182,7 @@ def get_counter_samples(self, counter_sample_query_details, test_run_id): content = self._serialize.body(counter_sample_query_details, 'VssJsonCollectionWrapper') response = self._send(http_method='POST', location_id='bad18480-7193-4518-992a-37289c5bb92d', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('CounterSamplesResult', response) @@ -193,7 +193,7 @@ def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detail :param str type: Filter for the particular type of errors. :param str sub_type: Filter for a particular subtype of errors. You should not provide error subtype without error type. :param bool detailed: To include the details of test errors such as messagetext, request, stacktrace, testcasename, scenarioname, and lasterrordate. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -207,7 +207,7 @@ def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detail query_parameters['detailed'] = self._serialize.query('detailed', detailed, 'bool') response = self._send(http_method='GET', location_id='b52025a7-3fb4-4283-8825-7079e75bd402', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('LoadTestErrors', response) @@ -215,28 +215,28 @@ def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detail def get_test_run_messages(self, test_run_id): """GetTestRunMessages. :param str test_run_id: Id of the test run - :rtype: [Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage] + :rtype: [TestRunMessage] """ route_values = {} if test_run_id is not None: route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') response = self._send(http_method='GET', location_id='2e7ba122-f522-4205-845b-2d270e59850a', - version='4.1', + version='5.0', route_values=route_values) - return self._deserialize('[Microsoft.VisualStudio.TestService.WebApiModel.TestRunMessage]', self._unwrap_collection(response)) + return self._deserialize('[TestRunMessage]', self._unwrap_collection(response)) def get_plugin(self, type): """GetPlugin. :param str type: Currently ApplicationInsights is the only available plugin type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if type is not None: route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('ApplicationType', response) @@ -246,46 +246,46 @@ def get_plugins(self): """ response = self._send(http_method='GET', location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', - version='4.1') + version='5.0') return self._deserialize('[ApplicationType]', self._unwrap_collection(response)) def get_load_test_result(self, test_run_id): """GetLoadTestResult. :param str test_run_id: The test run identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') response = self._send(http_method='GET', location_id='5ed69bd8-4557-4cec-9b75-1ad67d0c257b', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TestResults', response) def create_test_definition(self, test_definition): """CreateTestDefinition. - :param :class:` ` test_definition: Test definition to be created - :rtype: :class:` ` + :param :class:` ` test_definition: Test definition to be created + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='POST', location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', - version='4.1', + version='5.0', content=content) return self._deserialize('TestDefinition', response) def get_test_definition(self, test_definition_id): """GetTestDefinition. :param str test_definition_id: The test definition identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_definition_id is not None: route_values['testDefinitionId'] = self._serialize.url('test_definition_id', test_definition_id, 'str') response = self._send(http_method='GET', location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TestDefinition', response) @@ -305,71 +305,71 @@ def get_test_definitions(self, from_date=None, to_date=None, top=None): query_parameters['top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[TestDefinitionBasic]', self._unwrap_collection(response)) def update_test_definition(self, test_definition): """UpdateTestDefinition. - :param :class:` ` test_definition: - :rtype: :class:` ` + :param :class:` ` test_definition: + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='PUT', location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', - version='4.1', + version='5.0', content=content) return self._deserialize('TestDefinition', response) def create_test_drop(self, web_test_drop): """CreateTestDrop. - :param :class:` ` web_test_drop: Test drop to be created - :rtype: :class:` ` + :param :class:` ` web_test_drop: Test drop to be created + :rtype: :class:` ` """ - content = self._serialize.body(web_test_drop, 'Microsoft.VisualStudio.TestService.WebApiModel.TestDrop') + content = self._serialize.body(web_test_drop, 'TestDrop') response = self._send(http_method='POST', location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', - version='4.1', + version='5.0', content=content) - return self._deserialize('Microsoft.VisualStudio.TestService.WebApiModel.TestDrop', response) + return self._deserialize('TestDrop', response) def get_test_drop(self, test_drop_id): """GetTestDrop. :param str test_drop_id: The test drop identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_drop_id is not None: route_values['testDropId'] = self._serialize.url('test_drop_id', test_drop_id, 'str') response = self._send(http_method='GET', location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', - version='4.1', + version='5.0', route_values=route_values) - return self._deserialize('Microsoft.VisualStudio.TestService.WebApiModel.TestDrop', response) + return self._deserialize('TestDrop', response) def create_test_run(self, web_test_run): """CreateTestRun. - :param :class:` ` web_test_run: - :rtype: :class:` ` + :param :class:` ` web_test_run: + :rtype: :class:` ` """ content = self._serialize.body(web_test_run, 'TestRun') response = self._send(http_method='POST', location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', - version='4.1', + version='5.0', content=content) return self._deserialize('TestRun', response) def get_test_run(self, test_run_id): """GetTestRun. :param str test_run_id: Unique ID of the test run - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') response = self._send(http_method='GET', location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TestRun', response) @@ -411,13 +411,13 @@ def get_test_runs(self, name=None, requested_by=None, status=None, run_type=None query_parameters['retentionState'] = self._serialize.query('retention_state', retention_state, 'str') response = self._send(http_method='GET', location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('object', response) def update_test_run(self, web_test_run, test_run_id): """UpdateTestRun. - :param :class:` ` web_test_run: + :param :class:` ` web_test_run: :param str test_run_id: """ route_values = {} @@ -426,7 +426,7 @@ def update_test_run(self, web_test_run, test_run_id): content = self._serialize.body(web_test_run, 'TestRun') self._send(http_method='PATCH', location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', - version='4.1', + version='5.0', route_values=route_values, content=content) diff --git a/azure-devops/azure/devops/v5_0/cloud_load_test/models.py b/azure-devops/azure/devops/v5_0/cloud_load_test/models.py new file mode 100644 index 00000000..728d88a5 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/cloud_load_test/models.py @@ -0,0 +1,1775 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentGroup(Model): + """AgentGroup. + + :param created_by: + :type created_by: IdentityRef + :param creation_time: + :type creation_time: datetime + :param group_id: + :type group_id: str + :param group_name: + :type group_name: str + :param machine_access_data: + :type machine_access_data: list of :class:`AgentGroupAccessData ` + :param machine_configuration: + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :param tenant_id: + :type tenant_id: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'machine_access_data': {'key': 'machineAccessData', 'type': '[AgentGroupAccessData]'}, + 'machine_configuration': {'key': 'machineConfiguration', 'type': 'WebApiUserLoadTestMachineInput'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'} + } + + def __init__(self, created_by=None, creation_time=None, group_id=None, group_name=None, machine_access_data=None, machine_configuration=None, tenant_id=None): + super(AgentGroup, self).__init__() + self.created_by = created_by + self.creation_time = creation_time + self.group_id = group_id + self.group_name = group_name + self.machine_access_data = machine_access_data + self.machine_configuration = machine_configuration + self.tenant_id = tenant_id + + +class AgentGroupAccessData(Model): + """AgentGroupAccessData. + + :param details: + :type details: str + :param storage_connection_string: + :type storage_connection_string: str + :param storage_end_point: + :type storage_end_point: str + :param storage_name: + :type storage_name: str + :param storage_type: + :type storage_type: str + """ + + _attribute_map = { + 'details': {'key': 'details', 'type': 'str'}, + 'storage_connection_string': {'key': 'storageConnectionString', 'type': 'str'}, + 'storage_end_point': {'key': 'storageEndPoint', 'type': 'str'}, + 'storage_name': {'key': 'storageName', 'type': 'str'}, + 'storage_type': {'key': 'storageType', 'type': 'str'} + } + + def __init__(self, details=None, storage_connection_string=None, storage_end_point=None, storage_name=None, storage_type=None): + super(AgentGroupAccessData, self).__init__() + self.details = details + self.storage_connection_string = storage_connection_string + self.storage_end_point = storage_end_point + self.storage_name = storage_name + self.storage_type = storage_type + + +class Application(Model): + """Application. + + :param application_id: + :type application_id: str + :param description: + :type description: str + :param name: + :type name: str + :param path: + :type path: str + :param path_seperator: + :type path_seperator: str + :param type: + :type type: str + :param version: + :type version: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'path_seperator': {'key': 'pathSeperator', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, application_id=None, description=None, name=None, path=None, path_seperator=None, type=None, version=None): + super(Application, self).__init__() + self.application_id = application_id + self.description = description + self.name = name + self.path = path + self.path_seperator = path_seperator + self.type = type + self.version = version + + +class ApplicationCounters(Model): + """ApplicationCounters. + + :param application_id: + :type application_id: str + :param description: + :type description: str + :param id: + :type id: str + :param is_default: + :type is_default: bool + :param name: + :type name: str + :param path: + :type path: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, application_id=None, description=None, id=None, is_default=None, name=None, path=None): + super(ApplicationCounters, self).__init__() + self.application_id = application_id + self.description = description + self.id = id + self.is_default = is_default + self.name = name + self.path = path + + +class ApplicationType(Model): + """ApplicationType. + + :param action_uri_link: + :type action_uri_link: str + :param aut_portal_link: + :type aut_portal_link: str + :param is_enabled: + :type is_enabled: bool + :param max_components_allowed_for_collection: + :type max_components_allowed_for_collection: int + :param max_counters_allowed: + :type max_counters_allowed: int + :param type: + :type type: str + """ + + _attribute_map = { + 'action_uri_link': {'key': 'actionUriLink', 'type': 'str'}, + 'aut_portal_link': {'key': 'autPortalLink', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'max_components_allowed_for_collection': {'key': 'maxComponentsAllowedForCollection', 'type': 'int'}, + 'max_counters_allowed': {'key': 'maxCountersAllowed', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, action_uri_link=None, aut_portal_link=None, is_enabled=None, max_components_allowed_for_collection=None, max_counters_allowed=None, type=None): + super(ApplicationType, self).__init__() + self.action_uri_link = action_uri_link + self.aut_portal_link = aut_portal_link + self.is_enabled = is_enabled + self.max_components_allowed_for_collection = max_components_allowed_for_collection + self.max_counters_allowed = max_counters_allowed + self.type = type + + +class BrowserMix(Model): + """BrowserMix. + + :param browser_name: + :type browser_name: str + :param browser_percentage: + :type browser_percentage: int + """ + + _attribute_map = { + 'browser_name': {'key': 'browserName', 'type': 'str'}, + 'browser_percentage': {'key': 'browserPercentage', 'type': 'int'} + } + + def __init__(self, browser_name=None, browser_percentage=None): + super(BrowserMix, self).__init__() + self.browser_name = browser_name + self.browser_percentage = browser_percentage + + +class CltCustomerIntelligenceData(Model): + """CltCustomerIntelligenceData. + + :param area: + :type area: str + :param feature: + :type feature: str + :param properties: + :type properties: dict + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'str'}, + 'feature': {'key': 'feature', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, area=None, feature=None, properties=None): + super(CltCustomerIntelligenceData, self).__init__() + self.area = area + self.feature = feature + self.properties = properties + + +class CounterGroup(Model): + """CounterGroup. + + :param group_name: + :type group_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, group_name=None, url=None): + super(CounterGroup, self).__init__() + self.group_name = group_name + self.url = url + + +class CounterInstanceSamples(Model): + """CounterInstanceSamples. + + :param count: + :type count: int + :param counter_instance_id: + :type counter_instance_id: str + :param next_refresh_time: + :type next_refresh_time: datetime + :param values: + :type values: list of :class:`CounterSample ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'next_refresh_time': {'key': 'nextRefreshTime', 'type': 'iso-8601'}, + 'values': {'key': 'values', 'type': '[CounterSample]'} + } + + def __init__(self, count=None, counter_instance_id=None, next_refresh_time=None, values=None): + super(CounterInstanceSamples, self).__init__() + self.count = count + self.counter_instance_id = counter_instance_id + self.next_refresh_time = next_refresh_time + self.values = values + + +class CounterSample(Model): + """CounterSample. + + :param base_value: + :type base_value: long + :param computed_value: + :type computed_value: int + :param counter_frequency: + :type counter_frequency: long + :param counter_instance_id: + :type counter_instance_id: str + :param counter_type: + :type counter_type: str + :param interval_end_date: + :type interval_end_date: datetime + :param interval_number: + :type interval_number: int + :param raw_value: + :type raw_value: long + :param system_frequency: + :type system_frequency: long + :param time_stamp: + :type time_stamp: long + """ + + _attribute_map = { + 'base_value': {'key': 'baseValue', 'type': 'long'}, + 'computed_value': {'key': 'computedValue', 'type': 'int'}, + 'counter_frequency': {'key': 'counterFrequency', 'type': 'long'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'counter_type': {'key': 'counterType', 'type': 'str'}, + 'interval_end_date': {'key': 'intervalEndDate', 'type': 'iso-8601'}, + 'interval_number': {'key': 'intervalNumber', 'type': 'int'}, + 'raw_value': {'key': 'rawValue', 'type': 'long'}, + 'system_frequency': {'key': 'systemFrequency', 'type': 'long'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'long'} + } + + def __init__(self, base_value=None, computed_value=None, counter_frequency=None, counter_instance_id=None, counter_type=None, interval_end_date=None, interval_number=None, raw_value=None, system_frequency=None, time_stamp=None): + super(CounterSample, self).__init__() + self.base_value = base_value + self.computed_value = computed_value + self.counter_frequency = counter_frequency + self.counter_instance_id = counter_instance_id + self.counter_type = counter_type + self.interval_end_date = interval_end_date + self.interval_number = interval_number + self.raw_value = raw_value + self.system_frequency = system_frequency + self.time_stamp = time_stamp + + +class CounterSampleQueryDetails(Model): + """CounterSampleQueryDetails. + + :param counter_instance_id: + :type counter_instance_id: str + :param from_interval: + :type from_interval: int + :param to_interval: + :type to_interval: int + """ + + _attribute_map = { + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'from_interval': {'key': 'fromInterval', 'type': 'int'}, + 'to_interval': {'key': 'toInterval', 'type': 'int'} + } + + def __init__(self, counter_instance_id=None, from_interval=None, to_interval=None): + super(CounterSampleQueryDetails, self).__init__() + self.counter_instance_id = counter_instance_id + self.from_interval = from_interval + self.to_interval = to_interval + + +class CounterSamplesResult(Model): + """CounterSamplesResult. + + :param count: + :type count: int + :param max_batch_size: + :type max_batch_size: int + :param total_samples_count: + :type total_samples_count: int + :param values: + :type values: list of :class:`CounterInstanceSamples ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'max_batch_size': {'key': 'maxBatchSize', 'type': 'int'}, + 'total_samples_count': {'key': 'totalSamplesCount', 'type': 'int'}, + 'values': {'key': 'values', 'type': '[CounterInstanceSamples]'} + } + + def __init__(self, count=None, max_batch_size=None, total_samples_count=None, values=None): + super(CounterSamplesResult, self).__init__() + self.count = count + self.max_batch_size = max_batch_size + self.total_samples_count = total_samples_count + self.values = values + + +class Diagnostics(Model): + """Diagnostics. + + :param diagnostic_store_connection_string: + :type diagnostic_store_connection_string: str + :param last_modified_time: + :type last_modified_time: datetime + :param relative_path_to_diagnostic_files: + :type relative_path_to_diagnostic_files: str + """ + + _attribute_map = { + 'diagnostic_store_connection_string': {'key': 'diagnosticStoreConnectionString', 'type': 'str'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'relative_path_to_diagnostic_files': {'key': 'relativePathToDiagnosticFiles', 'type': 'str'} + } + + def __init__(self, diagnostic_store_connection_string=None, last_modified_time=None, relative_path_to_diagnostic_files=None): + super(Diagnostics, self).__init__() + self.diagnostic_store_connection_string = diagnostic_store_connection_string + self.last_modified_time = last_modified_time + self.relative_path_to_diagnostic_files = relative_path_to_diagnostic_files + + +class DropAccessData(Model): + """DropAccessData. + + :param drop_container_url: + :type drop_container_url: str + :param sas_key: + :type sas_key: str + """ + + _attribute_map = { + 'drop_container_url': {'key': 'dropContainerUrl', 'type': 'str'}, + 'sas_key': {'key': 'sasKey', 'type': 'str'} + } + + def __init__(self, drop_container_url=None, sas_key=None): + super(DropAccessData, self).__init__() + self.drop_container_url = drop_container_url + self.sas_key = sas_key + + +class ErrorDetails(Model): + """ErrorDetails. + + :param last_error_date: + :type last_error_date: datetime + :param message_text: + :type message_text: str + :param occurrences: + :type occurrences: int + :param request: + :type request: str + :param scenario_name: + :type scenario_name: str + :param stack_trace: + :type stack_trace: str + :param test_case_name: + :type test_case_name: str + """ + + _attribute_map = { + 'last_error_date': {'key': 'lastErrorDate', 'type': 'iso-8601'}, + 'message_text': {'key': 'messageText', 'type': 'str'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'request': {'key': 'request', 'type': 'str'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'test_case_name': {'key': 'testCaseName', 'type': 'str'} + } + + def __init__(self, last_error_date=None, message_text=None, occurrences=None, request=None, scenario_name=None, stack_trace=None, test_case_name=None): + super(ErrorDetails, self).__init__() + self.last_error_date = last_error_date + self.message_text = message_text + self.occurrences = occurrences + self.request = request + self.scenario_name = scenario_name + self.stack_trace = stack_trace + self.test_case_name = test_case_name + + +class LoadGenerationGeoLocation(Model): + """LoadGenerationGeoLocation. + + :param location: + :type location: str + :param percentage: + :type percentage: int + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'percentage': {'key': 'percentage', 'type': 'int'} + } + + def __init__(self, location=None, percentage=None): + super(LoadGenerationGeoLocation, self).__init__() + self.location = location + self.percentage = percentage + + +class LoadTest(Model): + """LoadTest. + + """ + + _attribute_map = { + } + + def __init__(self): + super(LoadTest, self).__init__() + + +class LoadTestDefinition(Model): + """LoadTestDefinition. + + :param agent_count: + :type agent_count: int + :param browser_mixs: + :type browser_mixs: list of :class:`BrowserMix ` + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_pattern_name: + :type load_pattern_name: str + :param load_test_name: + :type load_test_name: str + :param max_vusers: + :type max_vusers: int + :param run_duration: + :type run_duration: int + :param sampling_rate: + :type sampling_rate: int + :param think_time: + :type think_time: int + :param urls: + :type urls: list of str + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'browser_mixs': {'key': 'browserMixs', 'type': '[BrowserMix]'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_pattern_name': {'key': 'loadPatternName', 'type': 'str'}, + 'load_test_name': {'key': 'loadTestName', 'type': 'str'}, + 'max_vusers': {'key': 'maxVusers', 'type': 'int'}, + 'run_duration': {'key': 'runDuration', 'type': 'int'}, + 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, + 'think_time': {'key': 'thinkTime', 'type': 'int'}, + 'urls': {'key': 'urls', 'type': '[str]'} + } + + def __init__(self, agent_count=None, browser_mixs=None, core_count=None, cores_per_agent=None, load_generation_geo_locations=None, load_pattern_name=None, load_test_name=None, max_vusers=None, run_duration=None, sampling_rate=None, think_time=None, urls=None): + super(LoadTestDefinition, self).__init__() + self.agent_count = agent_count + self.browser_mixs = browser_mixs + self.core_count = core_count + self.cores_per_agent = cores_per_agent + self.load_generation_geo_locations = load_generation_geo_locations + self.load_pattern_name = load_pattern_name + self.load_test_name = load_test_name + self.max_vusers = max_vusers + self.run_duration = run_duration + self.sampling_rate = sampling_rate + self.think_time = think_time + self.urls = urls + + +class LoadTestErrors(Model): + """LoadTestErrors. + + :param count: + :type count: int + :param occurrences: + :type occurrences: int + :param types: + :type types: list of :class:`object ` + :param url: + :type url: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'types': {'key': 'types', 'type': '[object]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, count=None, occurrences=None, types=None, url=None): + super(LoadTestErrors, self).__init__() + self.count = count + self.occurrences = occurrences + self.types = types + self.url = url + + +class LoadTestRunSettings(Model): + """LoadTestRunSettings. + + :param agent_count: + :type agent_count: int + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param duration: + :type duration: int + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param sampling_interval: + :type sampling_interval: int + :param warm_up_duration: + :type warm_up_duration: int + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'int'}, + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'} + } + + def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None): + super(LoadTestRunSettings, self).__init__() + self.agent_count = agent_count + self.core_count = core_count + self.cores_per_agent = cores_per_agent + self.duration = duration + self.load_generator_machines_type = load_generator_machines_type + self.sampling_interval = sampling_interval + self.warm_up_duration = warm_up_duration + + +class OverridableRunSettings(Model): + """OverridableRunSettings. + + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param static_agent_run_settings: + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + """ + + _attribute_map = { + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'} + } + + def __init__(self, load_generator_machines_type=None, static_agent_run_settings=None): + super(OverridableRunSettings, self).__init__() + self.load_generator_machines_type = load_generator_machines_type + self.static_agent_run_settings = static_agent_run_settings + + +class PageSummary(Model): + """PageSummary. + + :param average_page_time: + :type average_page_time: float + :param page_url: + :type page_url: str + :param percentage_pages_meeting_goal: + :type percentage_pages_meeting_goal: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_pages: + :type total_pages: int + """ + + _attribute_map = { + 'average_page_time': {'key': 'averagePageTime', 'type': 'float'}, + 'page_url': {'key': 'pageUrl', 'type': 'str'}, + 'percentage_pages_meeting_goal': {'key': 'percentagePagesMeetingGoal', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_pages': {'key': 'totalPages', 'type': 'int'} + } + + def __init__(self, average_page_time=None, page_url=None, percentage_pages_meeting_goal=None, percentile_data=None, scenario_name=None, test_name=None, total_pages=None): + super(PageSummary, self).__init__() + self.average_page_time = average_page_time + self.page_url = page_url + self.percentage_pages_meeting_goal = percentage_pages_meeting_goal + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_pages = total_pages + + +class RequestSummary(Model): + """RequestSummary. + + :param average_response_time: + :type average_response_time: float + :param failed_requests: + :type failed_requests: int + :param passed_requests: + :type passed_requests: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param requests_per_sec: + :type requests_per_sec: float + :param request_url: + :type request_url: str + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_requests: + :type total_requests: int + """ + + _attribute_map = { + 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, + 'failed_requests': {'key': 'failedRequests', 'type': 'int'}, + 'passed_requests': {'key': 'passedRequests', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'requests_per_sec': {'key': 'requestsPerSec', 'type': 'float'}, + 'request_url': {'key': 'requestUrl', 'type': 'str'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_requests': {'key': 'totalRequests', 'type': 'int'} + } + + def __init__(self, average_response_time=None, failed_requests=None, passed_requests=None, percentile_data=None, requests_per_sec=None, request_url=None, scenario_name=None, test_name=None, total_requests=None): + super(RequestSummary, self).__init__() + self.average_response_time = average_response_time + self.failed_requests = failed_requests + self.passed_requests = passed_requests + self.percentile_data = percentile_data + self.requests_per_sec = requests_per_sec + self.request_url = request_url + self.scenario_name = scenario_name + self.test_name = test_name + self.total_requests = total_requests + + +class ScenarioSummary(Model): + """ScenarioSummary. + + :param max_user_load: + :type max_user_load: int + :param min_user_load: + :type min_user_load: int + :param scenario_name: + :type scenario_name: str + """ + + _attribute_map = { + 'max_user_load': {'key': 'maxUserLoad', 'type': 'int'}, + 'min_user_load': {'key': 'minUserLoad', 'type': 'int'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'} + } + + def __init__(self, max_user_load=None, min_user_load=None, scenario_name=None): + super(ScenarioSummary, self).__init__() + self.max_user_load = max_user_load + self.min_user_load = min_user_load + self.scenario_name = scenario_name + + +class StaticAgentRunSetting(Model): + """StaticAgentRunSetting. + + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param static_agent_group_name: + :type static_agent_group_name: str + """ + + _attribute_map = { + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'static_agent_group_name': {'key': 'staticAgentGroupName', 'type': 'str'} + } + + def __init__(self, load_generator_machines_type=None, static_agent_group_name=None): + super(StaticAgentRunSetting, self).__init__() + self.load_generator_machines_type = load_generator_machines_type + self.static_agent_group_name = static_agent_group_name + + +class SubType(Model): + """SubType. + + :param count: + :type count: int + :param error_detail_list: + :type error_detail_list: list of :class:`ErrorDetails ` + :param occurrences: + :type occurrences: int + :param sub_type_name: + :type sub_type_name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'error_detail_list': {'key': 'errorDetailList', 'type': '[ErrorDetails]'}, + 'occurrences': {'key': 'occurrences', 'type': 'int'}, + 'sub_type_name': {'key': 'subTypeName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, count=None, error_detail_list=None, occurrences=None, sub_type_name=None, url=None): + super(SubType, self).__init__() + self.count = count + self.error_detail_list = error_detail_list + self.occurrences = occurrences + self.sub_type_name = sub_type_name + self.url = url + + +class SummaryPercentileData(Model): + """SummaryPercentileData. + + :param percentile: + :type percentile: int + :param percentile_value: + :type percentile_value: float + """ + + _attribute_map = { + 'percentile': {'key': 'percentile', 'type': 'int'}, + 'percentile_value': {'key': 'percentileValue', 'type': 'float'} + } + + def __init__(self, percentile=None, percentile_value=None): + super(SummaryPercentileData, self).__init__() + self.percentile = percentile + self.percentile_value = percentile_value + + +class TenantDetails(Model): + """TenantDetails. + + :param access_details: + :type access_details: list of :class:`AgentGroupAccessData ` + :param id: + :type id: str + :param static_machines: + :type static_machines: list of :class:`WebApiTestMachine ` + :param user_load_agent_input: + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :param user_load_agent_resources_uri: + :type user_load_agent_resources_uri: str + :param valid_geo_locations: + :type valid_geo_locations: list of str + """ + + _attribute_map = { + 'access_details': {'key': 'accessDetails', 'type': '[AgentGroupAccessData]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'static_machines': {'key': 'staticMachines', 'type': '[WebApiTestMachine]'}, + 'user_load_agent_input': {'key': 'userLoadAgentInput', 'type': 'WebApiUserLoadTestMachineInput'}, + 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, + 'valid_geo_locations': {'key': 'validGeoLocations', 'type': '[str]'} + } + + def __init__(self, access_details=None, id=None, static_machines=None, user_load_agent_input=None, user_load_agent_resources_uri=None, valid_geo_locations=None): + super(TenantDetails, self).__init__() + self.access_details = access_details + self.id = id + self.static_machines = static_machines + self.user_load_agent_input = user_load_agent_input + self.user_load_agent_resources_uri = user_load_agent_resources_uri + self.valid_geo_locations = valid_geo_locations + + +class TestDefinitionBasic(Model): + """TestDefinitionBasic. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param last_modified_by: + :type last_modified_by: IdentityRef + :param last_modified_date: + :type last_modified_date: datetime + :param load_test_type: + :type load_test_type: object + :param name: + :type name: str + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None): + super(TestDefinitionBasic, self).__init__() + self.access_data = access_data + self.created_by = created_by + self.created_date = created_date + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_date = last_modified_date + self.load_test_type = load_test_type + self.name = name + + +class TestDrop(Model): + """TestDrop. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_date: + :type created_date: datetime + :param drop_type: + :type drop_type: str + :param id: + :type id: str + :param load_test_definition: + :type load_test_definition: :class:`LoadTestDefinition ` + :param test_run_id: + :type test_run_id: str + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'drop_type': {'key': 'dropType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_test_definition': {'key': 'loadTestDefinition', 'type': 'LoadTestDefinition'}, + 'test_run_id': {'key': 'testRunId', 'type': 'str'} + } + + def __init__(self, access_data=None, created_date=None, drop_type=None, id=None, load_test_definition=None, test_run_id=None): + super(TestDrop, self).__init__() + self.access_data = access_data + self.created_date = created_date + self.drop_type = drop_type + self.id = id + self.load_test_definition = load_test_definition + self.test_run_id = test_run_id + + +class TestDropRef(Model): + """TestDropRef. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(TestDropRef, self).__init__() + self.id = id + self.url = url + + +class TestResults(Model): + """TestResults. + + :param cloud_load_test_solution_url: + :type cloud_load_test_solution_url: str + :param counter_groups: + :type counter_groups: list of :class:`CounterGroup ` + :param diagnostics: + :type diagnostics: :class:`Diagnostics ` + :param results_url: + :type results_url: str + """ + + _attribute_map = { + 'cloud_load_test_solution_url': {'key': 'cloudLoadTestSolutionUrl', 'type': 'str'}, + 'counter_groups': {'key': 'counterGroups', 'type': '[CounterGroup]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'Diagnostics'}, + 'results_url': {'key': 'resultsUrl', 'type': 'str'} + } + + def __init__(self, cloud_load_test_solution_url=None, counter_groups=None, diagnostics=None, results_url=None): + super(TestResults, self).__init__() + self.cloud_load_test_solution_url = cloud_load_test_solution_url + self.counter_groups = counter_groups + self.diagnostics = diagnostics + self.results_url = results_url + + +class TestResultsSummary(Model): + """TestResultsSummary. + + :param overall_page_summary: + :type overall_page_summary: :class:`PageSummary ` + :param overall_request_summary: + :type overall_request_summary: :class:`RequestSummary ` + :param overall_scenario_summary: + :type overall_scenario_summary: :class:`ScenarioSummary ` + :param overall_test_summary: + :type overall_test_summary: :class:`TestSummary ` + :param overall_transaction_summary: + :type overall_transaction_summary: :class:`TransactionSummary ` + :param top_slow_pages: + :type top_slow_pages: list of :class:`PageSummary ` + :param top_slow_requests: + :type top_slow_requests: list of :class:`RequestSummary ` + :param top_slow_tests: + :type top_slow_tests: list of :class:`TestSummary ` + :param top_slow_transactions: + :type top_slow_transactions: list of :class:`TransactionSummary ` + """ + + _attribute_map = { + 'overall_page_summary': {'key': 'overallPageSummary', 'type': 'PageSummary'}, + 'overall_request_summary': {'key': 'overallRequestSummary', 'type': 'RequestSummary'}, + 'overall_scenario_summary': {'key': 'overallScenarioSummary', 'type': 'ScenarioSummary'}, + 'overall_test_summary': {'key': 'overallTestSummary', 'type': 'TestSummary'}, + 'overall_transaction_summary': {'key': 'overallTransactionSummary', 'type': 'TransactionSummary'}, + 'top_slow_pages': {'key': 'topSlowPages', 'type': '[PageSummary]'}, + 'top_slow_requests': {'key': 'topSlowRequests', 'type': '[RequestSummary]'}, + 'top_slow_tests': {'key': 'topSlowTests', 'type': '[TestSummary]'}, + 'top_slow_transactions': {'key': 'topSlowTransactions', 'type': '[TransactionSummary]'} + } + + def __init__(self, overall_page_summary=None, overall_request_summary=None, overall_scenario_summary=None, overall_test_summary=None, overall_transaction_summary=None, top_slow_pages=None, top_slow_requests=None, top_slow_tests=None, top_slow_transactions=None): + super(TestResultsSummary, self).__init__() + self.overall_page_summary = overall_page_summary + self.overall_request_summary = overall_request_summary + self.overall_scenario_summary = overall_scenario_summary + self.overall_test_summary = overall_test_summary + self.overall_transaction_summary = overall_transaction_summary + self.top_slow_pages = top_slow_pages + self.top_slow_requests = top_slow_requests + self.top_slow_tests = top_slow_tests + self.top_slow_transactions = top_slow_transactions + + +class TestRunAbortMessage(Model): + """TestRunAbortMessage. + + :param action: + :type action: str + :param cause: + :type cause: str + :param details: + :type details: list of str + :param logged_date: + :type logged_date: datetime + :param source: + :type source: str + """ + + _attribute_map = { + 'action': {'key': 'action', 'type': 'str'}, + 'cause': {'key': 'cause', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[str]'}, + 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, action=None, cause=None, details=None, logged_date=None, source=None): + super(TestRunAbortMessage, self).__init__() + self.action = action + self.cause = cause + self.details = details + self.logged_date = logged_date + self.source = source + + +class TestRunBasic(Model): + """TestRunBasic. + + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: IdentityRef + :param deleted_date: + :type deleted_date: datetime + :param finished_date: + :type finished_date: datetime + :param id: + :type id: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_file_name: + :type load_test_file_name: str + :param name: + :type name: str + :param run_number: + :type run_number: int + :param run_source: + :type run_source: str + :param run_specific_details: + :type run_specific_details: :class:`LoadTestRunDetails ` + :param run_type: + :type run_type: object + :param state: + :type state: object + :param url: + :type url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_number': {'key': 'runNumber', 'type': 'int'}, + 'run_source': {'key': 'runSource', 'type': 'str'}, + 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, + 'run_type': {'key': 'runType', 'type': 'object'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None): + super(TestRunBasic, self).__init__() + self.created_by = created_by + self.created_date = created_date + self.deleted_by = deleted_by + self.deleted_date = deleted_date + self.finished_date = finished_date + self.id = id + self.load_generation_geo_locations = load_generation_geo_locations + self.load_test_file_name = load_test_file_name + self.name = name + self.run_number = run_number + self.run_source = run_source + self.run_specific_details = run_specific_details + self.run_type = run_type + self.state = state + self.url = url + + +class TestRunCounterInstance(Model): + """TestRunCounterInstance. + + :param category_name: + :type category_name: str + :param counter_instance_id: + :type counter_instance_id: str + :param counter_name: + :type counter_name: str + :param counter_units: + :type counter_units: str + :param instance_name: + :type instance_name: str + :param is_preselected_counter: + :type is_preselected_counter: bool + :param machine_name: + :type machine_name: str + :param part_of_counter_groups: + :type part_of_counter_groups: list of str + :param summary_data: + :type summary_data: :class:`WebInstanceSummaryData ` + :param unique_name: + :type unique_name: str + """ + + _attribute_map = { + 'category_name': {'key': 'categoryName', 'type': 'str'}, + 'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'}, + 'counter_name': {'key': 'counterName', 'type': 'str'}, + 'counter_units': {'key': 'counterUnits', 'type': 'str'}, + 'instance_name': {'key': 'instanceName', 'type': 'str'}, + 'is_preselected_counter': {'key': 'isPreselectedCounter', 'type': 'bool'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'part_of_counter_groups': {'key': 'partOfCounterGroups', 'type': '[str]'}, + 'summary_data': {'key': 'summaryData', 'type': 'WebInstanceSummaryData'}, + 'unique_name': {'key': 'uniqueName', 'type': 'str'} + } + + def __init__(self, category_name=None, counter_instance_id=None, counter_name=None, counter_units=None, instance_name=None, is_preselected_counter=None, machine_name=None, part_of_counter_groups=None, summary_data=None, unique_name=None): + super(TestRunCounterInstance, self).__init__() + self.category_name = category_name + self.counter_instance_id = counter_instance_id + self.counter_name = counter_name + self.counter_units = counter_units + self.instance_name = instance_name + self.is_preselected_counter = is_preselected_counter + self.machine_name = machine_name + self.part_of_counter_groups = part_of_counter_groups + self.summary_data = summary_data + self.unique_name = unique_name + + +class TestRunMessage(Model): + """TestRunMessage. + + :param agent_id: + :type agent_id: str + :param error_code: + :type error_code: str + :param logged_date: + :type logged_date: datetime + :param message: + :type message: str + :param message_id: + :type message_id: str + :param message_source: + :type message_source: object + :param message_type: + :type message_type: object + :param test_run_id: + :type test_run_id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'agent_id': {'key': 'agentId', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'logged_date': {'key': 'loggedDate', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_source': {'key': 'messageSource', 'type': 'object'}, + 'message_type': {'key': 'messageType', 'type': 'object'}, + 'test_run_id': {'key': 'testRunId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, agent_id=None, error_code=None, logged_date=None, message=None, message_id=None, message_source=None, message_type=None, test_run_id=None, url=None): + super(TestRunMessage, self).__init__() + self.agent_id = agent_id + self.error_code = error_code + self.logged_date = logged_date + self.message = message + self.message_id = message_id + self.message_source = message_source + self.message_type = message_type + self.test_run_id = test_run_id + self.url = url + + +class TestSettings(Model): + """TestSettings. + + :param cleanup_command: + :type cleanup_command: str + :param host_process_platform: + :type host_process_platform: object + :param setup_command: + :type setup_command: str + """ + + _attribute_map = { + 'cleanup_command': {'key': 'cleanupCommand', 'type': 'str'}, + 'host_process_platform': {'key': 'hostProcessPlatform', 'type': 'object'}, + 'setup_command': {'key': 'setupCommand', 'type': 'str'} + } + + def __init__(self, cleanup_command=None, host_process_platform=None, setup_command=None): + super(TestSettings, self).__init__() + self.cleanup_command = cleanup_command + self.host_process_platform = host_process_platform + self.setup_command = setup_command + + +class TestSummary(Model): + """TestSummary. + + :param average_test_time: + :type average_test_time: float + :param failed_tests: + :type failed_tests: int + :param passed_tests: + :type passed_tests: int + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'average_test_time': {'key': 'averageTestTime', 'type': 'float'}, + 'failed_tests': {'key': 'failedTests', 'type': 'int'}, + 'passed_tests': {'key': 'passedTests', 'type': 'int'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, average_test_time=None, failed_tests=None, passed_tests=None, percentile_data=None, scenario_name=None, test_name=None, total_tests=None): + super(TestSummary, self).__init__() + self.average_test_time = average_test_time + self.failed_tests = failed_tests + self.passed_tests = passed_tests + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_tests = total_tests + + +class TransactionSummary(Model): + """TransactionSummary. + + :param average_response_time: + :type average_response_time: float + :param average_transaction_time: + :type average_transaction_time: float + :param percentile_data: + :type percentile_data: list of :class:`SummaryPercentileData ` + :param scenario_name: + :type scenario_name: str + :param test_name: + :type test_name: str + :param total_transactions: + :type total_transactions: int + :param transaction_name: + :type transaction_name: str + """ + + _attribute_map = { + 'average_response_time': {'key': 'averageResponseTime', 'type': 'float'}, + 'average_transaction_time': {'key': 'averageTransactionTime', 'type': 'float'}, + 'percentile_data': {'key': 'percentileData', 'type': '[SummaryPercentileData]'}, + 'scenario_name': {'key': 'scenarioName', 'type': 'str'}, + 'test_name': {'key': 'testName', 'type': 'str'}, + 'total_transactions': {'key': 'totalTransactions', 'type': 'int'}, + 'transaction_name': {'key': 'transactionName', 'type': 'str'} + } + + def __init__(self, average_response_time=None, average_transaction_time=None, percentile_data=None, scenario_name=None, test_name=None, total_transactions=None, transaction_name=None): + super(TransactionSummary, self).__init__() + self.average_response_time = average_response_time + self.average_transaction_time = average_transaction_time + self.percentile_data = percentile_data + self.scenario_name = scenario_name + self.test_name = test_name + self.total_transactions = total_transactions + self.transaction_name = transaction_name + + +class WebApiLoadTestMachineInput(Model): + """WebApiLoadTestMachineInput. + + :param machine_group_id: + :type machine_group_id: str + :param machine_type: + :type machine_type: object + :param setup_configuration: + :type setup_configuration: :class:`WebApiSetupParamaters ` + :param supported_run_types: + :type supported_run_types: list of TestRunType + """ + + _attribute_map = { + 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, + 'machine_type': {'key': 'machineType', 'type': 'object'}, + 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, + 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[object]'} + } + + def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None): + super(WebApiLoadTestMachineInput, self).__init__() + self.machine_group_id = machine_group_id + self.machine_type = machine_type + self.setup_configuration = setup_configuration + self.supported_run_types = supported_run_types + + +class WebApiSetupParamaters(Model): + """WebApiSetupParamaters. + + :param configurations: + :type configurations: dict + """ + + _attribute_map = { + 'configurations': {'key': 'configurations', 'type': '{str}'} + } + + def __init__(self, configurations=None): + super(WebApiSetupParamaters, self).__init__() + self.configurations = configurations + + +class WebApiTestMachine(Model): + """WebApiTestMachine. + + :param last_heart_beat: + :type last_heart_beat: datetime + :param machine_name: + :type machine_name: str + :param status: + :type status: str + """ + + _attribute_map = { + 'last_heart_beat': {'key': 'lastHeartBeat', 'type': 'iso-8601'}, + 'machine_name': {'key': 'machineName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'} + } + + def __init__(self, last_heart_beat=None, machine_name=None, status=None): + super(WebApiTestMachine, self).__init__() + self.last_heart_beat = last_heart_beat + self.machine_name = machine_name + self.status = status + + +class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): + """WebApiUserLoadTestMachineInput. + + :param machine_group_id: + :type machine_group_id: str + :param machine_type: + :type machine_type: object + :param setup_configuration: + :type setup_configuration: :class:`WebApiSetupParamaters ` + :param supported_run_types: + :type supported_run_types: list of TestRunType + :param agent_group_name: + :type agent_group_name: str + :param tenant_id: + :type tenant_id: str + :param user_load_agent_resources_uri: + :type user_load_agent_resources_uri: str + :param vSTSAccount_uri: + :type vSTSAccount_uri: str + """ + + _attribute_map = { + 'machine_group_id': {'key': 'machineGroupId', 'type': 'str'}, + 'machine_type': {'key': 'machineType', 'type': 'object'}, + 'setup_configuration': {'key': 'setupConfiguration', 'type': 'WebApiSetupParamaters'}, + 'supported_run_types': {'key': 'supportedRunTypes', 'type': '[TestRunType]'}, + 'agent_group_name': {'key': 'agentGroupName', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'user_load_agent_resources_uri': {'key': 'userLoadAgentResourcesUri', 'type': 'str'}, + 'vSTSAccount_uri': {'key': 'vSTSAccountUri', 'type': 'str'} + } + + def __init__(self, machine_group_id=None, machine_type=None, setup_configuration=None, supported_run_types=None, agent_group_name=None, tenant_id=None, user_load_agent_resources_uri=None, vSTSAccount_uri=None): + super(WebApiUserLoadTestMachineInput, self).__init__(machine_group_id=machine_group_id, machine_type=machine_type, setup_configuration=setup_configuration, supported_run_types=supported_run_types) + self.agent_group_name = agent_group_name + self.tenant_id = tenant_id + self.user_load_agent_resources_uri = user_load_agent_resources_uri + self.vSTSAccount_uri = vSTSAccount_uri + + +class WebInstanceSummaryData(Model): + """WebInstanceSummaryData. + + :param average: + :type average: float + :param max: + :type max: float + :param min: + :type min: float + """ + + _attribute_map = { + 'average': {'key': 'average', 'type': 'float'}, + 'max': {'key': 'max', 'type': 'float'}, + 'min': {'key': 'min', 'type': 'float'} + } + + def __init__(self, average=None, max=None, min=None): + super(WebInstanceSummaryData, self).__init__() + self.average = average + self.max = max + self.min = min + + +class LoadTestRunDetails(LoadTestRunSettings): + """LoadTestRunDetails. + + :param agent_count: + :type agent_count: int + :param core_count: + :type core_count: int + :param cores_per_agent: + :type cores_per_agent: int + :param duration: + :type duration: int + :param load_generator_machines_type: + :type load_generator_machines_type: object + :param sampling_interval: + :type sampling_interval: int + :param warm_up_duration: + :type warm_up_duration: int + :param virtual_user_count: + :type virtual_user_count: int + """ + + _attribute_map = { + 'agent_count': {'key': 'agentCount', 'type': 'int'}, + 'core_count': {'key': 'coreCount', 'type': 'int'}, + 'cores_per_agent': {'key': 'coresPerAgent', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'int'}, + 'load_generator_machines_type': {'key': 'loadGeneratorMachinesType', 'type': 'object'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'warm_up_duration': {'key': 'warmUpDuration', 'type': 'int'}, + 'virtual_user_count': {'key': 'virtualUserCount', 'type': 'int'} + } + + def __init__(self, agent_count=None, core_count=None, cores_per_agent=None, duration=None, load_generator_machines_type=None, sampling_interval=None, warm_up_duration=None, virtual_user_count=None): + super(LoadTestRunDetails, self).__init__(agent_count=agent_count, core_count=core_count, cores_per_agent=cores_per_agent, duration=duration, load_generator_machines_type=load_generator_machines_type, sampling_interval=sampling_interval, warm_up_duration=warm_up_duration) + self.virtual_user_count = virtual_user_count + + +class TestDefinition(TestDefinitionBasic): + """TestDefinition. + + :param access_data: + :type access_data: :class:`DropAccessData ` + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param id: + :type id: str + :param last_modified_by: + :type last_modified_by: IdentityRef + :param last_modified_date: + :type last_modified_date: datetime + :param load_test_type: + :type load_test_type: object + :param name: + :type name: str + :param description: + :type description: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_definition_source: + :type load_test_definition_source: str + :param run_settings: + :type run_settings: :class:`LoadTestRunSettings ` + :param static_agent_run_settings: + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :param test_details: + :type test_details: :class:`LoadTest ` + """ + + _attribute_map = { + 'access_data': {'key': 'accessData', 'type': 'DropAccessData'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, + 'load_test_type': {'key': 'loadTestType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_definition_source': {'key': 'loadTestDefinitionSource', 'type': 'str'}, + 'run_settings': {'key': 'runSettings', 'type': 'LoadTestRunSettings'}, + 'static_agent_run_settings': {'key': 'staticAgentRunSettings', 'type': 'StaticAgentRunSetting'}, + 'test_details': {'key': 'testDetails', 'type': 'LoadTest'} + } + + def __init__(self, access_data=None, created_by=None, created_date=None, id=None, last_modified_by=None, last_modified_date=None, load_test_type=None, name=None, description=None, load_generation_geo_locations=None, load_test_definition_source=None, run_settings=None, static_agent_run_settings=None, test_details=None): + super(TestDefinition, self).__init__(access_data=access_data, created_by=created_by, created_date=created_date, id=id, last_modified_by=last_modified_by, last_modified_date=last_modified_date, load_test_type=load_test_type, name=name) + self.description = description + self.load_generation_geo_locations = load_generation_geo_locations + self.load_test_definition_source = load_test_definition_source + self.run_settings = run_settings + self.static_agent_run_settings = static_agent_run_settings + self.test_details = test_details + + +class TestRun(TestRunBasic): + """TestRun. + + :param created_by: + :type created_by: IdentityRef + :param created_date: + :type created_date: datetime + :param deleted_by: + :type deleted_by: IdentityRef + :param deleted_date: + :type deleted_date: datetime + :param finished_date: + :type finished_date: datetime + :param id: + :type id: str + :param load_generation_geo_locations: + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :param load_test_file_name: + :type load_test_file_name: str + :param name: + :type name: str + :param run_number: + :type run_number: int + :param run_source: + :type run_source: str + :param run_specific_details: + :type run_specific_details: :class:`LoadTestRunDetails ` + :param run_type: + :type run_type: object + :param state: + :type state: object + :param url: + :type url: str + :param abort_message: + :type abort_message: :class:`TestRunAbortMessage ` + :param aut_initialization_error: + :type aut_initialization_error: bool + :param chargeable: + :type chargeable: bool + :param charged_vUserminutes: + :type charged_vUserminutes: int + :param description: + :type description: str + :param execution_finished_date: + :type execution_finished_date: datetime + :param execution_started_date: + :type execution_started_date: datetime + :param queued_date: + :type queued_date: datetime + :param retention_state: + :type retention_state: object + :param run_source_identifier: + :type run_source_identifier: str + :param run_source_url: + :type run_source_url: str + :param started_by: + :type started_by: IdentityRef + :param started_date: + :type started_date: datetime + :param stopped_by: + :type stopped_by: IdentityRef + :param sub_state: + :type sub_state: object + :param supersede_run_settings: + :type supersede_run_settings: :class:`OverridableRunSettings ` + :param test_drop: + :type test_drop: :class:`TestDropRef ` + :param test_settings: + :type test_settings: :class:`TestSettings ` + :param warm_up_started_date: + :type warm_up_started_date: datetime + :param web_result_url: + :type web_result_url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'load_generation_geo_locations': {'key': 'loadGenerationGeoLocations', 'type': '[LoadGenerationGeoLocation]'}, + 'load_test_file_name': {'key': 'loadTestFileName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'run_number': {'key': 'runNumber', 'type': 'int'}, + 'run_source': {'key': 'runSource', 'type': 'str'}, + 'run_specific_details': {'key': 'runSpecificDetails', 'type': 'LoadTestRunDetails'}, + 'run_type': {'key': 'runType', 'type': 'object'}, + 'state': {'key': 'state', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'abort_message': {'key': 'abortMessage', 'type': 'TestRunAbortMessage'}, + 'aut_initialization_error': {'key': 'autInitializationError', 'type': 'bool'}, + 'chargeable': {'key': 'chargeable', 'type': 'bool'}, + 'charged_vUserminutes': {'key': 'chargedVUserminutes', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'execution_finished_date': {'key': 'executionFinishedDate', 'type': 'iso-8601'}, + 'execution_started_date': {'key': 'executionStartedDate', 'type': 'iso-8601'}, + 'queued_date': {'key': 'queuedDate', 'type': 'iso-8601'}, + 'retention_state': {'key': 'retentionState', 'type': 'object'}, + 'run_source_identifier': {'key': 'runSourceIdentifier', 'type': 'str'}, + 'run_source_url': {'key': 'runSourceUrl', 'type': 'str'}, + 'started_by': {'key': 'startedBy', 'type': 'IdentityRef'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'stopped_by': {'key': 'stoppedBy', 'type': 'IdentityRef'}, + 'sub_state': {'key': 'subState', 'type': 'object'}, + 'supersede_run_settings': {'key': 'supersedeRunSettings', 'type': 'OverridableRunSettings'}, + 'test_drop': {'key': 'testDrop', 'type': 'TestDropRef'}, + 'test_settings': {'key': 'testSettings', 'type': 'TestSettings'}, + 'warm_up_started_date': {'key': 'warmUpStartedDate', 'type': 'iso-8601'}, + 'web_result_url': {'key': 'webResultUrl', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_date=None, finished_date=None, id=None, load_generation_geo_locations=None, load_test_file_name=None, name=None, run_number=None, run_source=None, run_specific_details=None, run_type=None, state=None, url=None, abort_message=None, aut_initialization_error=None, chargeable=None, charged_vUserminutes=None, description=None, execution_finished_date=None, execution_started_date=None, queued_date=None, retention_state=None, run_source_identifier=None, run_source_url=None, started_by=None, started_date=None, stopped_by=None, sub_state=None, supersede_run_settings=None, test_drop=None, test_settings=None, warm_up_started_date=None, web_result_url=None): + super(TestRun, self).__init__(created_by=created_by, created_date=created_date, deleted_by=deleted_by, deleted_date=deleted_date, finished_date=finished_date, id=id, load_generation_geo_locations=load_generation_geo_locations, load_test_file_name=load_test_file_name, name=name, run_number=run_number, run_source=run_source, run_specific_details=run_specific_details, run_type=run_type, state=state, url=url) + self.abort_message = abort_message + self.aut_initialization_error = aut_initialization_error + self.chargeable = chargeable + self.charged_vUserminutes = charged_vUserminutes + self.description = description + self.execution_finished_date = execution_finished_date + self.execution_started_date = execution_started_date + self.queued_date = queued_date + self.retention_state = retention_state + self.run_source_identifier = run_source_identifier + self.run_source_url = run_source_url + self.started_by = started_by + self.started_date = started_date + self.stopped_by = stopped_by + self.sub_state = sub_state + self.supersede_run_settings = supersede_run_settings + self.test_drop = test_drop + self.test_settings = test_settings + self.warm_up_started_date = warm_up_started_date + self.web_result_url = web_result_url + + +__all__ = [ + 'AgentGroup', + 'AgentGroupAccessData', + 'Application', + 'ApplicationCounters', + 'ApplicationType', + 'BrowserMix', + 'CltCustomerIntelligenceData', + 'CounterGroup', + 'CounterInstanceSamples', + 'CounterSample', + 'CounterSampleQueryDetails', + 'CounterSamplesResult', + 'Diagnostics', + 'DropAccessData', + 'ErrorDetails', + 'LoadGenerationGeoLocation', + 'LoadTest', + 'LoadTestDefinition', + 'LoadTestErrors', + 'LoadTestRunSettings', + 'OverridableRunSettings', + 'PageSummary', + 'RequestSummary', + 'ScenarioSummary', + 'StaticAgentRunSetting', + 'SubType', + 'SummaryPercentileData', + 'TenantDetails', + 'TestDefinitionBasic', + 'TestDrop', + 'TestDropRef', + 'TestResults', + 'TestResultsSummary', + 'TestRunAbortMessage', + 'TestRunBasic', + 'TestRunCounterInstance', + 'TestRunMessage', + 'TestSettings', + 'TestSummary', + 'TransactionSummary', + 'WebApiLoadTestMachineInput', + 'WebApiSetupParamaters', + 'WebApiTestMachine', + 'WebApiUserLoadTestMachineInput', + 'WebInstanceSummaryData', + 'LoadTestRunDetails', + 'TestDefinition', + 'TestRun', +] diff --git a/azure-devops/azure/devops/v4_1/contributions/__init__.py b/azure-devops/azure/devops/v5_0/contributions/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/contributions/__init__.py rename to azure-devops/azure/devops/v5_0/contributions/__init__.py diff --git a/azure-devops/azure/devops/v4_0/contributions/contributions_client.py b/azure-devops/azure/devops/v5_0/contributions/contributions_client.py similarity index 80% rename from azure-devops/azure/devops/v4_0/contributions/contributions_client.py rename to azure-devops/azure/devops/v5_0/contributions/contributions_client.py index 14b3ce23..f7bce59c 100644 --- a/azure-devops/azure/devops/v4_0/contributions/contributions_client.py +++ b/azure-devops/azure/devops/v5_0/contributions/contributions_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -28,26 +28,34 @@ def __init__(self, base_url=None, creds=None): def query_contribution_nodes(self, query): """QueryContributionNodes. [Preview API] Query for contribution nodes and provider details according the parameters in the passed in query object. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributionNodeQuery') response = self._send(http_method='POST', location_id='db7f2146-2309-4cee-b39c-c767777a1c55', - version='4.0-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('ContributionNodeQueryResult', response) - def query_data_providers(self, query): + def query_data_providers(self, query, scope_name=None, scope_value=None): """QueryDataProviders. [Preview API] - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :param str scope_name: + :param str scope_value: + :rtype: :class:` ` """ + route_values = {} + if scope_name is not None: + route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str') + if scope_value is not None: + route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') content = self._serialize.body(query, 'DataProviderQuery') response = self._send(http_method='POST', location_id='738368db-35ee-4b85-9f94-77ed34af2b0d', - version='4.0-preview.1', + version='5.0-preview.1', + route_values=route_values, content=content) return self._deserialize('DataProviderResult', response) @@ -70,7 +78,7 @@ def get_installed_extensions(self, contribution_ids=None, include_disabled_apps= query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') response = self._send(http_method='GET', location_id='2648442b-fd63-4b9a-902f-0c913510f139', - version='4.0-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) @@ -80,7 +88,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: :param str extension_name: :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -93,7 +101,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') response = self._send(http_method='GET', location_id='3e2f6668-0798-4dcb-b592-bfe2fa57fde2', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('InstalledExtension', response) diff --git a/azure-devops/azure/devops/v4_0/contributions/models.py b/azure-devops/azure/devops/v5_0/contributions/models.py similarity index 80% rename from azure-devops/azure/devops/v4_0/contributions/models.py rename to azure-devops/azure/devops/v5_0/contributions/models.py index 91a5e32b..900a75bb 100644 --- a/azure-devops/azure/devops/v4_0/contributions/models.py +++ b/azure-devops/azure/devops/v5_0/contributions/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,6 +9,94 @@ from msrest.serialization import Model +class ClientContribution(Model): + """ClientContribution. + + :param description: Description of the contribution/type + :type description: str + :param id: Fully qualified identifier of the contribution/type + :type id: str + :param includes: Includes is a set of contributions that should have this contribution included in their targets list. + :type includes: list of str + :param properties: Properties/attributes of this contribution + :type properties: :class:`object ` + :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) + :type targets: list of str + :param type: Id of the Contribution Type + :type type: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'includes': {'key': 'includes', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'targets': {'key': 'targets', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, description=None, id=None, includes=None, properties=None, targets=None, type=None): + super(ClientContribution, self).__init__() + self.description = description + self.id = id + self.includes = includes + self.properties = properties + self.targets = targets + self.type = type + + +class ClientContributionNode(Model): + """ClientContributionNode. + + :param children: List of ids for contributions which are children to the current contribution. + :type children: list of str + :param contribution: Contribution associated with this node. + :type contribution: :class:`ClientContribution ` + :param parents: List of ids for contributions which are parents to the current contribution. + :type parents: list of str + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[str]'}, + 'contribution': {'key': 'contribution', 'type': 'ClientContribution'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, children=None, contribution=None, parents=None): + super(ClientContributionNode, self).__init__() + self.children = children + self.contribution = contribution + self.parents = parents + + +class ClientContributionProviderDetails(Model): + """ClientContributionProviderDetails. + + :param display_name: Friendly name for the provider. + :type display_name: str + :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes + :type name: str + :param properties: Properties associated with the provider + :type properties: dict + :param version: Version of contributions assoicated with this contribution provider. + :type version: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, display_name=None, name=None, properties=None, version=None): + super(ClientContributionProviderDetails, self).__init__() + self.display_name = display_name + self.name = name + self.properties = properties + self.version = version + + class ContributionBase(Model): """ContributionBase. @@ -38,27 +126,31 @@ class ContributionConstraint(Model): :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). :type group: int + :param id: Fully qualified identifier of a shared constraint + :type id: str :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) :type inverse: bool - :param name: Name of the IContributionFilter class + :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ _attribute_map = { 'group': {'key': 'group', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, 'inverse': {'key': 'inverse', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'object'}, 'relationships': {'key': 'relationships', 'type': '[str]'} } - def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): super(ContributionConstraint, self).__init__() self.group = group + self.id = id self.inverse = inverse self.name = name self.properties = properties @@ -70,6 +162,8 @@ class ContributionNodeQuery(Model): :param contribution_ids: The contribution ids of the nodes to find. :type contribution_ids: list of str + :param data_provider_context: Contextual information that can be leveraged by contribution constraints + :type data_provider_context: :class:`DataProviderContext ` :param include_provider_details: Indicator if contribution provider details should be included in the result. :type include_provider_details: bool :param query_options: Query options tpo be used when fetching ContributionNodes @@ -78,13 +172,15 @@ class ContributionNodeQuery(Model): _attribute_map = { 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'data_provider_context': {'key': 'dataProviderContext', 'type': 'DataProviderContext'}, 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, 'query_options': {'key': 'queryOptions', 'type': 'object'} } - def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): + def __init__(self, contribution_ids=None, data_provider_context=None, include_provider_details=None, query_options=None): super(ContributionNodeQuery, self).__init__() self.contribution_ids = contribution_ids + self.data_provider_context = data_provider_context self.include_provider_details = include_provider_details self.query_options = query_options @@ -99,8 +195,8 @@ class ContributionNodeQueryResult(Model): """ _attribute_map = { - 'nodes': {'key': 'nodes', 'type': '{SerializedContributionNode}'}, - 'provider_details': {'key': 'providerDetails', 'type': '{ContributionProviderDetails}'} + 'nodes': {'key': 'nodes', 'type': '{ClientContributionNode}'}, + 'provider_details': {'key': 'providerDetails', 'type': '{ClientContributionProviderDetails}'} } def __init__(self, nodes=None, provider_details=None): @@ -137,34 +233,6 @@ def __init__(self, description=None, name=None, required=None, type=None): self.type = type -class ContributionProviderDetails(Model): - """ContributionProviderDetails. - - :param display_name: Friendly name for the provider. - :type display_name: str - :param name: Unique identifier for this provider. The provider name can be used to cache the contribution data and refer back to it when looking for changes - :type name: str - :param properties: Properties associated with the provider - :type properties: dict - :param version: Version of contributions assoicated with this contribution provider. - :type version: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, display_name=None, name=None, properties=None, version=None): - super(ContributionProviderDetails, self).__init__() - self.display_name = display_name - self.name = name - self.properties = properties - self.version = version - - class ContributionType(ContributionBase): """ContributionType. @@ -242,7 +310,7 @@ class DataProviderQuery(Model): """DataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str """ @@ -268,7 +336,11 @@ class DataProviderResult(Model): :param exceptions: Set of exceptions that occurred resolving the data providers. :type exceptions: dict :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` + :type resolved_providers: list of :class:`ResolvedDataProvider ` + :param scope_name: Scope name applied to this data provider result. + :type scope_name: str + :param scope_value: Scope value applied to this data provider result. + :type scope_value: str :param shared_data: Property bag of shared data that was contributed to by any of the individual data providers :type shared_data: dict """ @@ -278,15 +350,19 @@ class DataProviderResult(Model): 'data': {'key': 'data', 'type': '{object}'}, 'exceptions': {'key': 'exceptions', 'type': '{DataProviderExceptionDetails}'}, 'resolved_providers': {'key': 'resolvedProviders', 'type': '[ResolvedDataProvider]'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_value': {'key': 'scopeValue', 'type': 'str'}, 'shared_data': {'key': 'sharedData', 'type': '{object}'} } - def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, shared_data=None): + def __init__(self, client_providers=None, data=None, exceptions=None, resolved_providers=None, scope_name=None, scope_value=None, shared_data=None): super(DataProviderResult, self).__init__() self.client_providers = client_providers self.data = data self.exceptions = exceptions self.resolved_providers = resolved_providers + self.scope_name = scope_name + self.scope_value = scope_value self.shared_data = shared_data @@ -310,19 +386,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -374,7 +450,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -391,22 +467,26 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -415,6 +495,7 @@ class ExtensionManifest(Model): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -423,13 +504,15 @@ class ExtensionManifest(Model): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): super(ExtensionManifest, self).__init__() self.base_uri = base_uri + self.constraints = constraints self.contributions = contributions self.contribution_types = contribution_types self.demands = demands @@ -438,6 +521,7 @@ def __init__(self, base_uri=None, contributions=None, contribution_types=None, d self.language = language self.licensing = licensing self.manifest_version = manifest_version + self.restricted_to = restricted_to self.scopes = scopes self.service_instance_type = service_instance_type @@ -447,22 +531,26 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -472,11 +560,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -491,6 +579,7 @@ class InstalledExtension(ExtensionManifest): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -499,6 +588,7 @@ class InstalledExtension(ExtensionManifest): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, 'extension_id': {'key': 'extensionId', 'type': 'str'}, @@ -513,8 +603,8 @@ class InstalledExtension(ExtensionManifest): 'version': {'key': 'version', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) self.extension_id = extension_id self.extension_name = extension_name self.files = files @@ -533,7 +623,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -619,35 +709,11 @@ def __init__(self, duration=None, error=None, id=None): self.id = id -class SerializedContributionNode(Model): - """SerializedContributionNode. - - :param children: List of ids for contributions which are children to the current contribution. - :type children: list of str - :param contribution: Contribution associated with this node. - :type contribution: :class:`Contribution ` - :param parents: List of ids for contributions which are parents to the current contribution. - :type parents: list of str - """ - - _attribute_map = { - 'children': {'key': 'children', 'type': '[str]'}, - 'contribution': {'key': 'contribution', 'type': 'Contribution'}, - 'parents': {'key': 'parents', 'type': '[str]'} - } - - def __init__(self, children=None, contribution=None, parents=None): - super(SerializedContributionNode, self).__init__() - self.children = children - self.contribution = contribution - self.parents = parents - - class ClientDataProviderQuery(DataProviderQuery): """ClientDataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. @@ -675,11 +741,13 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` + :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). + :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -693,26 +761,30 @@ class Contribution(ContributionBase): 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'includes': {'key': 'includes', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'object'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'targets': {'key': 'targets', 'type': '[str]'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) self.constraints = constraints self.includes = includes self.properties = properties + self.restricted_to = restricted_to self.targets = targets self.type = type __all__ = [ + 'ClientContribution', + 'ClientContributionNode', + 'ClientContributionProviderDetails', 'ContributionBase', 'ContributionConstraint', 'ContributionNodeQuery', 'ContributionNodeQueryResult', 'ContributionPropertyDescription', - 'ContributionProviderDetails', 'ContributionType', 'DataProviderContext', 'DataProviderExceptionDetails', @@ -728,7 +800,6 @@ def __init__(self, description=None, id=None, visible_to=None, constraints=None, 'InstalledExtensionStateIssue', 'LicensingOverride', 'ResolvedDataProvider', - 'SerializedContributionNode', 'ClientDataProviderQuery', 'Contribution', ] diff --git a/azure-devops/azure/devops/v4_1/core/__init__.py b/azure-devops/azure/devops/v5_0/core/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/core/__init__.py rename to azure-devops/azure/devops/v5_0/core/__init__.py diff --git a/azure-devops/azure/devops/v4_1/core/core_client.py b/azure-devops/azure/devops/v5_0/core/core_client.py similarity index 87% rename from azure-devops/azure/devops/v4_1/core/core_client.py rename to azure-devops/azure/devops/v5_0/core/core_client.py index b283d626..ff9b2f75 100644 --- a/azure-devops/azure/devops/v4_1/core/core_client.py +++ b/azure-devops/azure/devops/v5_0/core/core_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_connected_service(self, connected_service_creation_data, project_id): """CreateConnectedService. [Preview API] - :param :class:` ` connected_service_creation_data: + :param :class:` ` connected_service_creation_data: :param str project_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -38,7 +38,7 @@ def create_connected_service(self, connected_service_creation_data, project_id): content = self._serialize.body(connected_service_creation_data, 'WebApiConnectedServiceDetails') response = self._send(http_method='POST', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('WebApiConnectedService', response) @@ -48,7 +48,7 @@ def get_connected_service_details(self, project_id, name): [Preview API] :param str project_id: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -57,7 +57,7 @@ def get_connected_service_details(self, project_id, name): route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('WebApiConnectedServiceDetails', response) @@ -76,7 +76,7 @@ def get_connected_services(self, project_id, kind=None): query_parameters['kind'] = self._serialize.query('kind', kind, 'str') response = self._send(http_method='GET', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WebApiConnectedService]', self._unwrap_collection(response)) @@ -102,7 +102,7 @@ def get_team_members_with_extended_properties(self, project_id, team_id, top=Non query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TeamMember]', self._unwrap_collection(response)) @@ -111,14 +111,14 @@ def get_process_by_id(self, process_id): """GetProcessById. Get a process by ID. :param str process_id: ID for a process. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Process', response) @@ -129,21 +129,21 @@ def get_processes(self): """ response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.1') + version='5.0') return self._deserialize('[Process]', self._unwrap_collection(response)) def get_project_collection(self, collection_id): """GetProjectCollection. Get project collection with the specified id or name. :param str collection_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if collection_id is not None: route_values['collectionId'] = self._serialize.url('collection_id', collection_id, 'str') response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TeamProjectCollection', response) @@ -161,32 +161,17 @@ def get_project_collections(self, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[TeamProjectCollectionReference]', self._unwrap_collection(response)) - def get_project_history_entries(self, min_revision=None): - """GetProjectHistoryEntries. - [Preview API] - :param long min_revision: - :rtype: [ProjectInfo] - """ - query_parameters = {} - if min_revision is not None: - query_parameters['minRevision'] = self._serialize.query('min_revision', min_revision, 'long') - response = self._send(http_method='GET', - location_id='6488a877-4749-4954-82ea-7340d36be9f2', - version='4.1-preview.2', - query_parameters=query_parameters) - return self._deserialize('[ProjectInfo]', self._unwrap_collection(response)) - def get_project(self, project_id, include_capabilities=None, include_history=None): """GetProject. Get project with the specified id or name, optionally including capabilities. :param str project_id: :param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false). :param bool include_history: Search within renamed projects (that had such name in the past). - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -198,18 +183,19 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TeamProject', response) - def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None): + def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None, get_default_team_image_url=None): """GetProjects. Get all projects in the organization that the authenticated user has access to. :param str state_filter: Filter on team projects in a specific team project state (default: WellFormed). :param int top: :param int skip: :param str continuation_token: + :param bool get_default_team_image_url: :rtype: [TeamProjectReference] """ query_parameters = {} @@ -221,22 +207,24 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') if continuation_token is not None: query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if get_default_team_image_url is not None: + query_parameters['getDefaultTeamImageUrl'] = self._serialize.query('get_default_team_image_url', get_default_team_image_url, 'bool') response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[TeamProjectReference]', self._unwrap_collection(response)) def queue_create_project(self, project_to_create): """QueueCreateProject. Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status. - :param :class:` ` project_to_create: The project to create. - :rtype: :class:` ` + :param :class:` ` project_to_create: The project to create. + :rtype: :class:` ` """ content = self._serialize.body(project_to_create, 'TeamProject') response = self._send(http_method='POST', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1', + version='5.0', content=content) return self._deserialize('OperationReference', response) @@ -244,23 +232,23 @@ def queue_delete_project(self, project_id): """QueueDeleteProject. Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. :param str project_id: The project id of the project to delete. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') response = self._send(http_method='DELETE', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('OperationReference', response) def update_project(self, project_update, project_id): """UpdateProject. Update an existing project's name, abbreviation, or description. - :param :class:` ` project_update: The updates for the project. + :param :class:` ` project_update: The updates for the project. :param str project_id: The project id of the project to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -268,7 +256,7 @@ def update_project(self, project_update, project_id): content = self._serialize.body(project_update, 'TeamProject') response = self._send(http_method='PATCH', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('OperationReference', response) @@ -289,7 +277,7 @@ def get_project_properties(self, project_id, keys=None): query_parameters['keys'] = self._serialize.query('keys', keys, 'str') response = self._send(http_method='GET', location_id='4976a71a-4487-49aa-8aab-a1eda469037a', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ProjectProperty]', self._unwrap_collection(response)) @@ -298,7 +286,7 @@ def set_project_properties(self, project_id, patch_document): """SetProjectProperties. [Preview API] Create, update, and delete team project properties. :param str project_id: The team project ID. - :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. + :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. """ route_values = {} if project_id is not None: @@ -306,7 +294,7 @@ def set_project_properties(self, project_id, patch_document): content = self._serialize.body(patch_document, '[JsonPatchOperation]') self._send(http_method='PATCH', location_id='4976a71a-4487-49aa-8aab-a1eda469037a', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -314,13 +302,13 @@ def set_project_properties(self, project_id, patch_document): def create_or_update_proxy(self, proxy): """CreateOrUpdateProxy. [Preview API] - :param :class:` ` proxy: - :rtype: :class:` ` + :param :class:` ` proxy: + :rtype: :class:` ` """ content = self._serialize.body(proxy, 'Proxy') response = self._send(http_method='PUT', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', - version='4.1-preview.2', + version='5.0-preview.2', content=content) return self._deserialize('Proxy', response) @@ -337,7 +325,7 @@ def delete_proxy(self, proxy_url, site=None): query_parameters['site'] = self._serialize.query('site', site, 'str') self._send(http_method='DELETE', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', - version='4.1-preview.2', + version='5.0-preview.2', query_parameters=query_parameters) def get_proxies(self, proxy_url=None): @@ -351,16 +339,16 @@ def get_proxies(self, proxy_url=None): query_parameters['proxyUrl'] = self._serialize.query('proxy_url', proxy_url, 'str') response = self._send(http_method='GET', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', - version='4.1-preview.2', + version='5.0-preview.2', query_parameters=query_parameters) return self._deserialize('[Proxy]', self._unwrap_collection(response)) def create_team(self, team, project_id): """CreateTeam. Create a team in a team project. - :param :class:` ` team: The team data used to create the team. + :param :class:` ` team: The team data used to create the team. :param str project_id: The name or ID (GUID) of the team project in which to create the team. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -368,7 +356,7 @@ def create_team(self, team, project_id): content = self._serialize.body(team, 'WebApiTeam') response = self._send(http_method='POST', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('WebApiTeam', response) @@ -386,7 +374,7 @@ def delete_team(self, project_id, team_id): route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') self._send(http_method='DELETE', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1', + version='5.0', route_values=route_values) def get_team(self, project_id, team_id): @@ -394,7 +382,7 @@ def get_team(self, project_id, team_id): Get a specific team. :param str project_id: The name or ID (GUID) of the team project containing the team. :param str team_id: The name or ID (GUID) of the team. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -403,7 +391,7 @@ def get_team(self, project_id, team_id): route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') response = self._send(http_method='GET', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WebApiTeam', response) @@ -428,7 +416,7 @@ def get_teams(self, project_id, mine=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) @@ -436,10 +424,10 @@ def get_teams(self, project_id, mine=None, top=None, skip=None): def update_team(self, team_data, project_id, team_id): """UpdateTeam. Update a team's name and/or description. - :param :class:` ` team_data: + :param :class:` ` team_data: :param str project_id: The name or ID (GUID) of the team project containing the team to update. :param str team_id: The name of ID of the team to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -449,7 +437,7 @@ def update_team(self, team_data, project_id, team_id): content = self._serialize.body(team_data, 'WebApiTeam') response = self._send(http_method='PATCH', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('WebApiTeam', response) @@ -471,7 +459,7 @@ def get_all_teams(self, mine=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='7a4d9ee9-3433-4347-b47a-7a80f1cf307e', - version='4.1-preview.2', + version='5.0-preview.2', query_parameters=query_parameters) return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/core/models.py b/azure-devops/azure/devops/v5_0/core/models.py similarity index 90% rename from azure-devops/azure/devops/v4_1/core/models.py rename to azure-devops/azure/devops/v5_0/core/models.py index 1e6dc07b..ffb38462 100644 --- a/azure-devops/azure/devops/v4_1/core/models.py +++ b/azure-devops/azure/devops/v5_0/core/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -57,7 +57,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -76,6 +76,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -93,11 +95,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -105,6 +108,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -199,7 +203,7 @@ class ProjectInfo(Model): :param name: :type name: str :param properties: - :type properties: list of :class:`ProjectProperty ` + :type properties: list of :class:`ProjectProperty ` :param revision: Current revision of the project :type revision: long :param state: @@ -265,7 +269,7 @@ class Proxy(Model): """Proxy. :param authorization: - :type authorization: :class:`ProxyAuthorization ` + :type authorization: :class:`ProxyAuthorization ` :param description: This is a description string :type description: str :param friendly_name: The friendly name of the server @@ -309,9 +313,9 @@ class ProxyAuthorization(Model): :param client_id: Gets or sets the client identifier for this proxy. :type client_id: str :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` + :type identity: :class:`str ` :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` + :type public_key: :class:`PublicKey ` """ _attribute_map = { @@ -369,7 +373,7 @@ class TeamMember(Model): """TeamMember. :param identity: - :type identity: :class:`IdentityRef ` + :type identity: :class:`IdentityRef ` :param is_team_admin: :type is_team_admin: bool """ @@ -414,6 +418,8 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. @@ -432,6 +438,7 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -441,9 +448,10 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id self.name = name @@ -505,7 +513,7 @@ class Process(ProcessReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -540,6 +548,8 @@ class TeamProject(TeamProjectReference): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. @@ -555,15 +565,16 @@ class TeamProject(TeamProjectReference): :param visibility: Project visibility. :type visibility: object :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param capabilities: Set of capabilities this project has (such as process template & version control). :type capabilities: dict :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` + :type default_team: :class:`WebApiTeamRef ` """ _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -576,8 +587,8 @@ class TeamProject(TeamProjectReference): 'default_team': {'key': 'defaultTeam', 'type': 'WebApiTeamRef'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): - super(TeamProject, self).__init__(abbreviation=abbreviation, description=description, id=id, name=name, revision=revision, state=state, url=url, visibility=visibility) + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): + super(TeamProject, self).__init__(abbreviation=abbreviation, default_team_image_url=default_team_image_url, description=description, id=id, name=name, revision=revision, state=state, url=url, visibility=visibility) self._links = _links self.capabilities = capabilities self.default_team = default_team @@ -593,9 +604,11 @@ class TeamProjectCollection(TeamProjectCollectionReference): :param url: Collection REST Url. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Project collection description. :type description: str + :param process_customization_type: Process customzation type on this collection. It can be Xml or Inherited. + :type process_customization_type: object :param state: Project collection state. :type state: str """ @@ -606,13 +619,15 @@ class TeamProjectCollection(TeamProjectCollectionReference): 'url': {'key': 'url', 'type': 'str'}, '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'description': {'key': 'description', 'type': 'str'}, + 'process_customization_type': {'key': 'processCustomizationType', 'type': 'object'}, 'state': {'key': 'state', 'type': 'str'} } - def __init__(self, id=None, name=None, url=None, _links=None, description=None, state=None): + def __init__(self, id=None, name=None, url=None, _links=None, description=None, process_customization_type=None, state=None): super(TeamProjectCollection, self).__init__(id=id, name=name, url=url) self._links = _links self.description = description + self.process_customization_type = process_customization_type self.state = state @@ -622,7 +637,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param url: :type url: str :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` + :type authenticated_by: :class:`IdentityRef ` :param description: Extra description on the service. :type description: str :param friendly_name: Friendly Name of service connection @@ -632,7 +647,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param kind: The kind of service. :type kind: str :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com :type service_uri: str """ @@ -667,7 +682,7 @@ class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): :param url: :type url: str :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` + :type connected_service_meta_data: :class:`WebApiConnectedService ` :param credentials_xml: Credential info :type credentials_xml: str :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com diff --git a/azure-devops/azure/devops/v4_1/customer_intelligence/__init__.py b/azure-devops/azure/devops/v5_0/customer_intelligence/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/customer_intelligence/__init__.py rename to azure-devops/azure/devops/v5_0/customer_intelligence/__init__.py diff --git a/azure-devops/azure/devops/v4_1/customer_intelligence/customer_intelligence_client.py b/azure-devops/azure/devops/v5_0/customer_intelligence/customer_intelligence_client.py similarity index 97% rename from azure-devops/azure/devops/v4_1/customer_intelligence/customer_intelligence_client.py rename to azure-devops/azure/devops/v5_0/customer_intelligence/customer_intelligence_client.py index afd075e6..9cb2b366 100644 --- a/azure-devops/azure/devops/v4_1/customer_intelligence/customer_intelligence_client.py +++ b/azure-devops/azure/devops/v5_0/customer_intelligence/customer_intelligence_client.py @@ -33,6 +33,6 @@ def publish_events(self, events): content = self._serialize.body(events, '[CustomerIntelligenceEvent]') self._send(http_method='POST', location_id='b5cc35c2-ff2b-491d-a085-24b6e9f396fd', - version='4.1-preview.1', + version='5.0-preview.1', content=content) diff --git a/azure-devops/azure/devops/v4_1/customer_intelligence/models.py b/azure-devops/azure/devops/v5_0/customer_intelligence/models.py similarity index 100% rename from azure-devops/azure/devops/v4_1/customer_intelligence/models.py rename to azure-devops/azure/devops/v5_0/customer_intelligence/models.py diff --git a/azure-devops/azure/devops/v4_1/dashboard/__init__.py b/azure-devops/azure/devops/v5_0/dashboard/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/dashboard/__init__.py rename to azure-devops/azure/devops/v5_0/dashboard/__init__.py diff --git a/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py b/azure-devops/azure/devops/v5_0/dashboard/dashboard_client.py similarity index 75% rename from azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py rename to azure-devops/azure/devops/v5_0/dashboard/dashboard_client.py index 20b652b7..e85c7f73 100644 --- a/azure-devops/azure/devops/v4_0/dashboard/dashboard_client.py +++ b/azure-devops/azure/devops/v5_0/dashboard/dashboard_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,10 +27,10 @@ def __init__(self, base_url=None, creds=None): def create_dashboard(self, dashboard, team_context): """CreateDashboard. - [Preview API] - :param :class:` ` dashboard: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Create the supplied dashboard. + :param :class:` ` dashboard: The initial state of the dashboard + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -52,16 +52,16 @@ def create_dashboard(self, dashboard, team_context): content = self._serialize.body(dashboard, 'Dashboard') response = self._send(http_method='POST', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('Dashboard', response) def delete_dashboard(self, team_context, dashboard_id): """DeleteDashboard. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: + [Preview API] Delete a dashboard given its ID. This also deletes the widgets associated with this dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard to delete. """ project = None team = None @@ -84,15 +84,15 @@ def delete_dashboard(self, team_context, dashboard_id): route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') self._send(http_method='DELETE', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values) def get_dashboard(self, team_context, dashboard_id): """GetDashboard. - [Preview API] - :param :class:` ` team_context: The team context for the operation + [Preview API] Get a dashboard by its ID. + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -115,15 +115,15 @@ def get_dashboard(self, team_context, dashboard_id): route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') response = self._send(http_method='GET', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('Dashboard', response) def get_dashboards(self, team_context): """GetDashboards. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Get a list of dashboards. + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -144,17 +144,17 @@ def get_dashboards(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('DashboardGroup', response) def replace_dashboard(self, dashboard, team_context, dashboard_id): """ReplaceDashboard. - [Preview API] - :param :class:` ` dashboard: - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: - :rtype: :class:` ` + [Preview API] Replace configuration for the specified dashboard. Replaces Widget list on Dashboard, only if property is supplied. + :param :class:` ` dashboard: The Configuration of the dashboard to replace. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard to replace. + :rtype: :class:` ` """ project = None team = None @@ -178,17 +178,17 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): content = self._serialize.body(dashboard, 'Dashboard') response = self._send(http_method='PUT', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('Dashboard', response) def replace_dashboards(self, group, team_context): """ReplaceDashboards. - [Preview API] - :param :class:` ` group: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Update the name and position of dashboards in the supplied group, and remove omitted dashboards. Does not modify dashboard content. + :param :class:` ` group: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -210,18 +210,18 @@ def replace_dashboards(self, group, team_context): content = self._serialize.body(group, 'DashboardGroup') response = self._send(http_method='PUT', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('DashboardGroup', response) def create_widget(self, widget, team_context, dashboard_id): """CreateWidget. - [Preview API] - :param :class:` ` widget: - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: - :rtype: :class:` ` + [Preview API] Create a widget on the specified dashboard. + :param :class:` ` widget: State of the widget to add + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of dashboard the widget will be added to. + :rtype: :class:` ` """ project = None team = None @@ -245,18 +245,18 @@ def create_widget(self, widget, team_context, dashboard_id): content = self._serialize.body(widget, 'Widget') response = self._send(http_method='POST', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('Widget', response) def delete_widget(self, team_context, dashboard_id, widget_id): """DeleteWidget. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: - :param str widget_id: - :rtype: :class:` ` + [Preview API] Delete the specified widget. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to update. + :rtype: :class:` ` """ project = None team = None @@ -281,17 +281,17 @@ def delete_widget(self, team_context, dashboard_id, widget_id): route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') response = self._send(http_method='DELETE', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('Dashboard', response) def get_widget(self, team_context, dashboard_id, widget_id): """GetWidget. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: - :param str widget_id: - :rtype: :class:` ` + [Preview API] Get the current state of the specified widget. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to read. + :rtype: :class:` ` """ project = None team = None @@ -316,17 +316,17 @@ def get_widget(self, team_context, dashboard_id, widget_id): route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') response = self._send(http_method='GET', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('Widget', response) def get_widgets(self, team_context, dashboard_id, eTag=None): """GetWidgets. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: + [Preview API] Get widgets contained on the specified dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard to read. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -349,7 +349,7 @@ def get_widgets(self, team_context, dashboard_id, eTag=None): route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') response = self._send(http_method='GET', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) @@ -358,12 +358,12 @@ def get_widgets(self, team_context, dashboard_id, eTag=None): def replace_widget(self, widget, team_context, dashboard_id, widget_id): """ReplaceWidget. - [Preview API] - :param :class:` ` widget: - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: - :param str widget_id: - :rtype: :class:` ` + [Preview API] Override the state of the specified widget. + :param :class:` ` widget: State to be written for the widget. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to update. + :rtype: :class:` ` """ project = None team = None @@ -389,19 +389,19 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): content = self._serialize.body(widget, 'Widget') response = self._send(http_method='PUT', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('Widget', response) def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): """ReplaceWidgets. - [Preview API] - :param [Widget] widgets: - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: + [Preview API] Replace the widgets on specified dashboard with the supplied widgets. + :param [Widget] widgets: Revised state of widgets to store for the dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the Dashboard to modify. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -425,7 +425,7 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PUT', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) response_object = models.WidgetsVersionedList() @@ -435,12 +435,12 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): def update_widget(self, widget, team_context, dashboard_id, widget_id): """UpdateWidget. - [Preview API] - :param :class:` ` widget: - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: - :param str widget_id: - :rtype: :class:` ` + [Preview API] Perform a partial update of the specified widget. + :param :class:` ` widget: Description of the widget changes to apply. All non-null fields will be replaced. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the dashboard containing the widget. + :param str widget_id: ID of the widget to update. + :rtype: :class:` ` """ project = None team = None @@ -466,19 +466,19 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): content = self._serialize.body(widget, 'Widget') response = self._send(http_method='PATCH', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('Widget', response) def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): """UpdateWidgets. - [Preview API] - :param [Widget] widgets: - :param :class:` ` team_context: The team context for the operation - :param str dashboard_id: + [Preview API] Update the supplied widgets on the dashboard using supplied state. State of existing Widgets not passed in the widget list is preserved. + :param [Widget] widgets: The set of widget states to update on the dashboard. + :param :class:` ` team_context: The team context for the operation + :param str dashboard_id: ID of the Dashboard to modify. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -502,7 +502,7 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PATCH', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) response_object = models.WidgetsVersionedList() @@ -510,33 +510,41 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): response_object.eTag = response.headers.get('ETag') return response_object - def get_widget_metadata(self, contribution_id): + def get_widget_metadata(self, contribution_id, project=None): """GetWidgetMetadata. - [Preview API] - :param str contribution_id: - :rtype: :class:` ` + [Preview API] Get the widget metadata satisfying the specified contribution ID. + :param str contribution_id: The ID of Contribution for the Widget + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if contribution_id is not None: route_values['contributionId'] = self._serialize.url('contribution_id', contribution_id, 'str') response = self._send(http_method='GET', location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('WidgetMetadataResponse', response) - def get_widget_types(self, scope): + def get_widget_types(self, scope, project=None): """GetWidgetTypes. - [Preview API] Returns available widgets in alphabetical order. + [Preview API] Get all available widget metadata in alphabetical order. :param str scope: - :rtype: :class:` ` + :param str project: Project ID or project name + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if scope is not None: query_parameters['$scope'] = self._serialize.query('scope', scope, 'str') response = self._send(http_method='GET', location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', - version='4.0-preview.1', + version='5.0-preview.1', + route_values=route_values, query_parameters=query_parameters) return self._deserialize('WidgetTypesResponse', response) diff --git a/azure-devops/azure/devops/v4_1/dashboard/models.py b/azure-devops/azure/devops/v5_0/dashboard/models.py similarity index 95% rename from azure-devops/azure/devops/v4_1/dashboard/models.py rename to azure-devops/azure/devops/v5_0/dashboard/models.py index b99430c4..2535f60b 100644 --- a/azure-devops/azure/devops/v4_1/dashboard/models.py +++ b/azure-devops/azure/devops/v5_0/dashboard/models.py @@ -13,7 +13,7 @@ class Dashboard(Model): """Dashboard. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -31,7 +31,7 @@ class Dashboard(Model): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -65,9 +65,9 @@ class DashboardGroup(Model): """DashboardGroup. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dashboard_entries: A list of Dashboards held by the Dashboard Group - :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :type dashboard_entries: list of :class:`DashboardGroupEntry ` :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. :type permission: object :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. @@ -97,7 +97,7 @@ class DashboardGroupEntry(Dashboard): """DashboardGroupEntry. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -115,7 +115,7 @@ class DashboardGroupEntry(Dashboard): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -139,7 +139,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): """DashboardGroupEntryResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -157,7 +157,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -181,7 +181,7 @@ class DashboardResponse(DashboardGroupEntry): """DashboardResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -199,7 +199,7 @@ class DashboardResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -315,9 +315,9 @@ class Widget(Model): """Widget. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -331,7 +331,7 @@ class Widget(Model): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -341,19 +341,19 @@ class Widget(Model): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -415,7 +415,7 @@ class WidgetMetadata(Model): """WidgetMetadata. :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. :type analytics_service_required: bool :param catalog_icon_url: Resource for an icon in the widget catalog. @@ -443,7 +443,7 @@ class WidgetMetadata(Model): :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. :type is_visible_from_catalog: bool :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: Resource for a loading placeholder image on dashboard :type loading_image_url: str :param name: User facing name of the widget type. Each widget must use a unique value here. @@ -513,7 +513,7 @@ class WidgetMetadataResponse(Model): :param uri: :type uri: str :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` + :type widget_metadata: :class:`WidgetMetadata ` """ _attribute_map = { @@ -551,9 +551,9 @@ class WidgetResponse(Widget): """WidgetResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -567,7 +567,7 @@ class WidgetResponse(Widget): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -577,19 +577,19 @@ class WidgetResponse(Widget): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -651,7 +651,7 @@ class WidgetsVersionedList(Model): :param eTag: :type eTag: list of str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -669,11 +669,11 @@ class WidgetTypesResponse(Model): """WidgetTypesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param uri: :type uri: str :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` + :type widget_types: list of :class:`WidgetMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/extension_management/__init__.py b/azure-devops/azure/devops/v5_0/extension_management/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/extension_management/__init__.py rename to azure-devops/azure/devops/v5_0/extension_management/__init__.py diff --git a/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py b/azure-devops/azure/devops/v5_0/extension_management/extension_management_client.py similarity index 93% rename from azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py rename to azure-devops/azure/devops/v5_0/extension_management/extension_management_client.py index 15eb4792..3a64c524 100644 --- a/azure-devops/azure/devops/v4_1/extension_management/extension_management_client.py +++ b/azure-devops/azure/devops/v5_0/extension_management/extension_management_client.py @@ -46,20 +46,20 @@ def get_installed_extensions(self, include_disabled_extensions=None, include_err query_parameters['includeInstallationIssues'] = self._serialize.query('include_installation_issues', include_installation_issues, 'bool') response = self._send(http_method='GET', location_id='275424d0-c844-4fe2-bda6-04933a1357d8', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) def update_installed_extension(self, extension): """UpdateInstalledExtension. [Preview API] Update an installed extension. Typically this API is used to enable or disable an extension. - :param :class:` ` extension: - :rtype: :class:` ` + :param :class:` ` extension: + :rtype: :class:` ` """ content = self._serialize.body(extension, 'InstalledExtension') response = self._send(http_method='PATCH', location_id='275424d0-c844-4fe2-bda6-04933a1357d8', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('InstalledExtension', response) @@ -69,7 +69,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: Name of the publisher. Example: "fabrikam". :param str extension_name: Name of the extension. Example: "ops-tools". :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -82,7 +82,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') response = self._send(http_method='GET', location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('InstalledExtension', response) @@ -93,7 +93,7 @@ def install_extension_by_name(self, publisher_name, extension_name, version=None :param str publisher_name: Name of the publisher. Example: "fabrikam". :param str extension_name: Name of the extension. Example: "ops-tools". :param str version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -104,7 +104,7 @@ def install_extension_by_name(self, publisher_name, extension_name, version=None route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='POST', location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('InstalledExtension', response) @@ -128,7 +128,7 @@ def uninstall_extension_by_name(self, publisher_name, extension_name, reason=Non query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') self._send(http_method='DELETE', location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) diff --git a/azure-devops/azure/devops/v4_1/extension_management/models.py b/azure-devops/azure/devops/v5_0/extension_management/models.py similarity index 93% rename from azure-devops/azure/devops/v4_1/extension_management/models.py rename to azure-devops/azure/devops/v5_0/extension_management/models.py index 1a15f8ec..2f3af188 100644 --- a/azure-devops/azure/devops/v4_1/extension_management/models.py +++ b/azure-devops/azure/devops/v5_0/extension_management/models.py @@ -19,7 +19,7 @@ class AcquisitionOperation(Model): :param reason: Optional reason to justify current state. Typically used with Disallow state. :type reason: str :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` """ _attribute_map = { @@ -61,13 +61,13 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param target: The target that this options refer to :type target: str """ @@ -125,7 +125,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -222,7 +222,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int """ @@ -296,7 +296,7 @@ class ExtensionDataCollection(Model): :param collection_name: The name of the collection :type collection_name: str :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` + :type documents: list of :class:`object ` :param scope_type: The type of the collection's scope, such as Default or User :type scope_type: str :param scope_value: The value of the collection's scope, such as Current or Me @@ -322,7 +322,7 @@ class ExtensionDataCollectionQuery(Model): """ExtensionDataCollectionQuery. :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` + :type collections: list of :class:`ExtensionDataCollection ` """ _attribute_map = { @@ -354,19 +354,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -438,7 +438,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -456,21 +456,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -542,7 +542,7 @@ class ExtensionRequest(Model): :param request_date: Date at which the request was made :type request_date: datetime :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_message: Optional message supplied by the requester justifying the request :type request_message: str :param request_state: Represents the state of the request @@ -550,7 +550,7 @@ class ExtensionRequest(Model): :param resolve_date: Date at which the request was resolved :type resolve_date: datetime :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` """ _attribute_map = { @@ -579,6 +579,8 @@ class ExtensionShare(Model): :param id: :type id: str + :param is_org: + :type is_org: bool :param name: :type name: str :param type: @@ -587,13 +589,15 @@ class ExtensionShare(Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'is_org': {'key': 'isOrg', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, id=None, name=None, type=None): + def __init__(self, id=None, is_org=None, name=None, type=None): super(ExtensionShare, self).__init__() self.id = id + self.is_org = is_org self.name = name self.type = type @@ -624,11 +628,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -674,7 +678,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -702,7 +706,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -721,6 +725,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -738,11 +744,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -750,6 +757,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -780,21 +788,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -808,11 +816,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -871,7 +879,7 @@ class InstalledExtensionQuery(Model): :param asset_types: :type asset_types: list of str :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` + :type monikers: list of :class:`ExtensionIdentifier ` """ _attribute_map = { @@ -891,7 +899,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -969,7 +977,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -977,19 +985,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1083,7 +1091,7 @@ class RequestedExtension(Model): :param extension_name: The unique name of the extension :type extension_name: str :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` + :type extension_requests: list of :class:`ExtensionRequest ` :param publisher_display_name: DisplayName of the publisher that owns the extension being published. :type publisher_display_name: str :param publisher_name: Represents the Publisher of the requested extension @@ -1115,7 +1123,7 @@ class UserExtensionPolicy(Model): :param display_name: User display name that this policy refers to :type display_name: str :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` + :type permissions: :class:`ExtensionPolicy ` :param user_id: User id that this policy refers to :type user_id: str """ @@ -1143,11 +1151,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) @@ -1184,7 +1192,7 @@ class ExtensionState(InstalledExtensionState): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime :param extension_name: diff --git a/azure-devops/azure/devops/v4_1/feature_availability/__init__.py b/azure-devops/azure/devops/v5_0/feature_availability/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/feature_availability/__init__.py rename to azure-devops/azure/devops/v5_0/feature_availability/__init__.py diff --git a/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py b/azure-devops/azure/devops/v5_0/feature_availability/feature_availability_client.py similarity index 79% rename from azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py rename to azure-devops/azure/devops/v5_0/feature_availability/feature_availability_client.py index ed661219..2c19b0d9 100644 --- a/azure-devops/azure/devops/v4_1/feature_availability/feature_availability_client.py +++ b/azure-devops/azure/devops/v5_0/feature_availability/feature_availability_client.py @@ -36,31 +36,37 @@ def get_all_feature_flags(self, user_email=None): query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[FeatureFlag]', self._unwrap_collection(response)) - def get_feature_flag_by_name(self, name): + def get_feature_flag_by_name(self, name, check_feature_exists=None): """GetFeatureFlagByName. [Preview API] Retrieve information on a single feature flag and its current states :param str name: The name of the feature to retrieve - :rtype: :class:` ` + :param bool check_feature_exists: Check if feature exists + :rtype: :class:` ` """ route_values = {} if name is not None: route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.1-preview.1', - route_values=route_values) + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('FeatureFlag', response) - def get_feature_flag_by_name_and_user_email(self, name, user_email): + def get_feature_flag_by_name_and_user_email(self, name, user_email, check_feature_exists=None): """GetFeatureFlagByNameAndUserEmail. [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_email: The email of the user to check - :rtype: :class:` ` + :param bool check_feature_exists: Check if feature exists + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -68,19 +74,22 @@ def get_feature_flag_by_name_and_user_email(self, name, user_email): query_parameters = {} if user_email is not None: query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('FeatureFlag', response) - def get_feature_flag_by_name_and_user_id(self, name, user_id): + def get_feature_flag_by_name_and_user_id(self, name, user_id, check_feature_exists=None): """GetFeatureFlagByNameAndUserId. [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_id: The id of the user to check - :rtype: :class:` ` + :param bool check_feature_exists: Check if feature exists + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -88,9 +97,11 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): query_parameters = {} if user_id is not None: query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('FeatureFlag', response) @@ -98,12 +109,12 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): """UpdateFeatureFlag. [Preview API] Change the state of an individual feature flag for a name - :param :class:` ` state: State that should be set + :param :class:` ` state: State that should be set :param str name: The name of the feature to change :param str user_email: :param bool check_feature_exists: Checks if the feature exists before setting the state :param bool set_at_application_level_also: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -118,7 +129,7 @@ def update_feature_flag(self, state, name, user_email=None, check_feature_exists content = self._serialize.body(state, 'FeatureFlagPatch') response = self._send(http_method='PATCH', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) diff --git a/azure-devops/azure/devops/v4_1/feature_availability/models.py b/azure-devops/azure/devops/v5_0/feature_availability/models.py similarity index 100% rename from azure-devops/azure/devops/v4_1/feature_availability/models.py rename to azure-devops/azure/devops/v5_0/feature_availability/models.py diff --git a/azure-devops/azure/devops/v4_1/feature_management/__init__.py b/azure-devops/azure/devops/v5_0/feature_management/__init__.py similarity index 91% rename from azure-devops/azure/devops/v4_1/feature_management/__init__.py rename to azure-devops/azure/devops/v5_0/feature_management/__init__.py index e298ade2..732260e9 100644 --- a/azure-devops/azure/devops/v4_1/feature_management/__init__.py +++ b/azure-devops/azure/devops/v5_0/feature_management/__init__.py @@ -10,6 +10,8 @@ __all__ = [ 'ContributedFeature', + 'ContributedFeatureHandlerSettings', + 'ContributedFeatureListener', 'ContributedFeatureSettingScope', 'ContributedFeatureState', 'ContributedFeatureStateQuery', diff --git a/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py b/azure-devops/azure/devops/v5_0/feature_management/feature_management_client.py similarity index 90% rename from azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py rename to azure-devops/azure/devops/v5_0/feature_management/feature_management_client.py index 6ea020af..cc491ff2 100644 --- a/azure-devops/azure/devops/v4_1/feature_management/feature_management_client.py +++ b/azure-devops/azure/devops/v5_0/feature_management/feature_management_client.py @@ -29,14 +29,14 @@ def get_feature(self, feature_id): """GetFeature. [Preview API] Get a specific feature by its id :param str feature_id: The contribution id of the feature - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') response = self._send(http_method='GET', location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ContributedFeature', response) @@ -51,7 +51,7 @@ def get_features(self, target_contribution_id=None): query_parameters['targetContributionId'] = self._serialize.query('target_contribution_id', target_contribution_id, 'str') response = self._send(http_method='GET', location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[ContributedFeature]', self._unwrap_collection(response)) @@ -60,7 +60,7 @@ def get_feature_state(self, feature_id, user_scope): [Preview API] Get the state of the specified feature for the given user/all-users scope :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -69,19 +69,19 @@ def get_feature_state(self, feature_id, user_scope): route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') response = self._send(http_method='GET', location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ContributedFeatureState', response) def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): """SetFeatureState. [Preview API] Set the state of a feature - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -96,7 +96,7 @@ def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason content = self._serialize.body(feature, 'ContributedFeatureState') response = self._send(http_method='PATCH', location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -109,7 +109,7 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -122,21 +122,21 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') response = self._send(http_method='GET', location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ContributedFeatureState', response) def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): """SetFeatureStateForScope. [Preview API] Set the state of a feature at a specific scope - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -155,7 +155,7 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam content = self._serialize.body(feature, 'ContributedFeatureState') response = self._send(http_method='PATCH', location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -164,22 +164,22 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam def query_feature_states(self, query): """QueryFeatureStates. [Preview API] Get the effective state for a list of feature ids - :param :class:` ` query: Features to query along with current scope values - :rtype: :class:` ` + :param :class:` ` query: Features to query along with current scope values + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', location_id='2b4486ad-122b-400c-ae65-17b6672c1f9d', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('ContributedFeatureStateQuery', response) def query_feature_states_for_default_scope(self, query, user_scope): """QueryFeatureStatesForDefaultScope. [Preview API] Get the states of the specified features for the default scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -187,7 +187,7 @@ def query_feature_states_for_default_scope(self, query, user_scope): content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', location_id='3f810f28-03e2-4239-b0bc-788add3005e5', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('ContributedFeatureStateQuery', response) @@ -195,11 +195,11 @@ def query_feature_states_for_default_scope(self, query, user_scope): def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): """QueryFeatureStatesForNamedScope. [Preview API] Get the states of the specified features for the specific named scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: :param str scope_name: :param str scope_value: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -211,7 +211,7 @@ def query_feature_states_for_named_scope(self, query, user_scope, scope_name, sc content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', location_id='f29e997b-c2da-4d15-8380-765788a1a74c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('ContributedFeatureStateQuery', response) diff --git a/azure-devops/azure/devops/v4_1/feature_management/models.py b/azure-devops/azure/devops/v5_0/feature_management/models.py similarity index 68% rename from azure-devops/azure/devops/v4_1/feature_management/models.py rename to azure-devops/azure/devops/v5_0/feature_management/models.py index e926d9c7..f0735a42 100644 --- a/azure-devops/azure/devops/v4_1/feature_management/models.py +++ b/azure-devops/azure/devops/v5_0/feature_management/models.py @@ -13,23 +13,33 @@ class ContributedFeature(Model): """ContributedFeature. :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_state: If true, the feature is enabled unless overridden at some scope :type default_state: bool :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` :param description: The description of the feature :type description: str + :param feature_properties: Extra properties for the feature + :type feature_properties: dict + :param feature_state_changed_listeners: Handler for listening to setter calls on feature value. These listeners are only invoked after a successful set has occured + :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` :param id: The full contribution id of the feature :type id: str + :param include_as_claim: If this is set to true, then the id for this feature will be added to the list of claims for the request. + :type include_as_claim: bool :param name: The friendly name of the feature :type name: str + :param order: Suggested order to display feature in. + :type order: int :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` + :type override_rules: list of :class:`ContributedFeatureValueRule ` :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` + :type scopes: list of :class:`ContributedFeatureSettingScope ` :param service_instance_type: The service instance id of the service that owns this feature :type service_instance_type: str + :param tags: Tags associated with the feature. + :type tags: list of str """ _attribute_map = { @@ -37,24 +47,72 @@ class ContributedFeature(Model): 'default_state': {'key': 'defaultState', 'type': 'bool'}, 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, 'description': {'key': 'description', 'type': 'str'}, + 'feature_properties': {'key': 'featureProperties', 'type': '{object}'}, + 'feature_state_changed_listeners': {'key': 'featureStateChangedListeners', 'type': '[ContributedFeatureListener]'}, 'id': {'key': 'id', 'type': 'str'}, + 'include_as_claim': {'key': 'includeAsClaim', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'} } - def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): + def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, feature_properties=None, feature_state_changed_listeners=None, id=None, include_as_claim=None, name=None, order=None, override_rules=None, scopes=None, service_instance_type=None, tags=None): super(ContributedFeature, self).__init__() self._links = _links self.default_state = default_state self.default_value_rules = default_value_rules self.description = description + self.feature_properties = feature_properties + self.feature_state_changed_listeners = feature_state_changed_listeners self.id = id + self.include_as_claim = include_as_claim self.name = name + self.order = order self.override_rules = override_rules self.scopes = scopes self.service_instance_type = service_instance_type + self.tags = tags + + +class ContributedFeatureHandlerSettings(Model): + """ContributedFeatureHandlerSettings. + + :param name: Name of the handler to run + :type name: str + :param properties: Properties to feed to the handler + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureHandlerSettings, self).__init__() + self.name = name + self.properties = properties + + +class ContributedFeatureListener(ContributedFeatureHandlerSettings): + """ContributedFeatureListener. + + :param name: Name of the handler to run + :type name: str + :param properties: Properties to feed to the handler + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureListener, self).__init__(name=name, properties=properties) class ContributedFeatureSettingScope(Model): @@ -87,7 +145,7 @@ class ContributedFeatureState(Model): :param reason: Reason that the state was set (by a plugin/rule). :type reason: str :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` + :type scope: :class:`ContributedFeatureSettingScope ` :param state: The current state of this feature :type state: object """ @@ -133,24 +191,22 @@ def __init__(self, feature_ids=None, feature_states=None, scope_values=None): self.scope_values = scope_values -class ContributedFeatureValueRule(Model): +class ContributedFeatureValueRule(ContributedFeatureHandlerSettings): """ContributedFeatureValueRule. - :param name: Name of the IContributedFeatureValuePlugin to run + :param name: Name of the handler to run :type name: str - :param properties: Properties to feed to the IContributedFeatureValuePlugin + :param properties: Properties to feed to the handler :type properties: dict """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'} + 'properties': {'key': 'properties', 'type': '{object}'}, } def __init__(self, name=None, properties=None): - super(ContributedFeatureValueRule, self).__init__() - self.name = name - self.properties = properties + super(ContributedFeatureValueRule, self).__init__(name=name, properties=properties) class ReferenceLinks(Model): @@ -171,6 +227,8 @@ def __init__(self, links=None): __all__ = [ 'ContributedFeature', + 'ContributedFeatureHandlerSettings', + 'ContributedFeatureListener', 'ContributedFeatureSettingScope', 'ContributedFeatureState', 'ContributedFeatureStateQuery', diff --git a/azure-devops/azure/devops/v5_0/feed/__init__.py b/azure-devops/azure/devops/v5_0/feed/__init__.py new file mode 100644 index 00000000..d3278427 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/feed/__init__.py @@ -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 .models import * + +__all__ = [ + 'Feed', + 'FeedBatchData', + 'FeedBatchOperationData', + 'FeedChange', + 'FeedChangesResponse', + 'FeedCore', + 'FeedPermission', + 'FeedRetentionPolicy', + 'FeedUpdate', + 'FeedView', + 'GlobalPermission', + 'JsonPatchOperation', + 'MinimalPackageVersion', + 'Package', + 'PackageChange', + 'PackageChangesResponse', + 'PackageDependency', + 'PackageDownloadMetricsQuery', + 'PackageFile', + 'PackageIdMetrics', + 'PackageVersion', + 'PackageVersionChange', + 'PackageVersionDownloadMetricsQuery', + 'PackageVersionMetrics', + 'PackageVersionProvenance', + 'ProtocolMetadata', + 'Provenance', + 'RecycleBinPackageVersion', + 'ReferenceLinks', + 'UpstreamSource', +] diff --git a/azure-devops/azure/devops/v4_1/feed/feed_client.py b/azure-devops/azure/devops/v5_0/feed/feed_client.py similarity index 61% rename from azure-devops/azure/devops/v4_1/feed/feed_client.py rename to azure-devops/azure/devops/v5_0/feed/feed_client.py index 0e5e6933..f8b0f064 100644 --- a/azure-devops/azure/devops/v4_1/feed/feed_client.py +++ b/azure-devops/azure/devops/v5_0/feed/feed_client.py @@ -27,9 +27,9 @@ def __init__(self, base_url=None, creds=None): def get_badge(self, feed_id, package_id): """GetBadge. - [Preview API] - :param str feed_id: - :param str package_id: + [Preview API] Generate a SVG badge for the latest version of a package. The generated SVG is typically used as the image in an HTML link which takes users to the feed containing the package to accelerate discovery and consumption. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). :rtype: str """ route_values = {} @@ -39,32 +39,32 @@ def get_badge(self, feed_id, package_id): route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') response = self._send(http_method='GET', location_id='61d885fd-10f3-4a55-82b6-476d866b673f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('str', response) def get_feed_change(self, feed_id): """GetFeedChange. - [Preview API] - :param str feed_id: - :rtype: :class:` ` + [Preview API] Query a feed to determine its current state. + :param str feed_id: Name or ID of the feed. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') response = self._send(http_method='GET', location_id='29ba2dad-389a-4661-b5d3-de76397ca05b', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('FeedChange', response) def get_feed_changes(self, include_deleted=None, continuation_token=None, batch_size=None): """GetFeedChanges. - [Preview API] - :param bool include_deleted: - :param long continuation_token: - :param int batch_size: - :rtype: :class:` ` + [Preview API] Query to determine which feeds have changed since the last call, tracked through the provided continuationToken. Only changes to a feed itself are returned and impact the continuationToken, not additions or alterations to packages within the feeds. + :param bool include_deleted: If true, get changes for all feeds including deleted feeds. The default value is false. + :param long continuation_token: A continuation token which acts as a bookmark to a previously retrieved change. This token allows the user to continue retrieving changes in batches, picking up where the previous batch left off. If specified, all the changes that occur strictly after the token will be returned. If not specified or 0, iteration will start with the first change. + :param int batch_size: Number of package changes to fetch. The default value is 1000. The maximum value is 2000. + :rtype: :class:` ` """ query_parameters = {} if include_deleted is not None: @@ -75,42 +75,42 @@ def get_feed_changes(self, include_deleted=None, continuation_token=None, batch_ query_parameters['batchSize'] = self._serialize.query('batch_size', batch_size, 'int') response = self._send(http_method='GET', location_id='29ba2dad-389a-4661-b5d3-de76397ca05b', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('FeedChangesResponse', response) def create_feed(self, feed): """CreateFeed. - [Preview API] - :param :class:` ` feed: - :rtype: :class:` ` + [Preview API] Create a feed, a container for various package types. + :param :class:` ` feed: A JSON object containing both required and optional attributes for the feed. Name is the only required value. + :rtype: :class:` ` """ content = self._serialize.body(feed, 'Feed') response = self._send(http_method='POST', location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('Feed', response) def delete_feed(self, feed_id): """DeleteFeed. - [Preview API] - :param str feed_id: + [Preview API] Remove a feed and all its packages. The action does not result in packages moving to the RecycleBin and is not reversible. + :param str feed_id: Name or Id of the feed. """ route_values = {} if feed_id is not None: route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') self._send(http_method='DELETE', location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_feed(self, feed_id, include_deleted_upstreams=None): """GetFeed. - [Preview API] - :param str feed_id: - :param bool include_deleted_upstreams: - :rtype: :class:` ` + [Preview API] Get the settings for a specific feed. + :param str feed_id: Name or Id of the feed. + :param bool include_deleted_upstreams: Include upstreams that have been deleted in the response. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -120,16 +120,16 @@ def get_feed(self, feed_id, include_deleted_upstreams=None): query_parameters['includeDeletedUpstreams'] = self._serialize.query('include_deleted_upstreams', include_deleted_upstreams, 'bool') response = self._send(http_method='GET', location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Feed', response) def get_feeds(self, feed_role=None, include_deleted_upstreams=None): """GetFeeds. - [Preview API] - :param str feed_role: - :param bool include_deleted_upstreams: + [Preview API] Get all feeds in an account where you have the provided role access. + :param str feed_role: Filter by this role, either Administrator(4), Contributor(3), or Reader(2) level permissions. + :param bool include_deleted_upstreams: Include upstreams that have been deleted in the response. :rtype: [Feed] """ query_parameters = {} @@ -139,16 +139,16 @@ def get_feeds(self, feed_role=None, include_deleted_upstreams=None): query_parameters['includeDeletedUpstreams'] = self._serialize.query('include_deleted_upstreams', include_deleted_upstreams, 'bool') response = self._send(http_method='GET', location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[Feed]', self._unwrap_collection(response)) def update_feed(self, feed, feed_id): """UpdateFeed. - [Preview API] - :param :class:` ` feed: - :param str feed_id: - :rtype: :class:` ` + [Preview API] Change the attributes of a feed. + :param :class:` ` feed: A JSON object containing the feed settings to be updated. + :param str feed_id: Name or Id of the feed. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -156,41 +156,41 @@ def update_feed(self, feed, feed_id): content = self._serialize.body(feed, 'FeedUpdate') response = self._send(http_method='PATCH', location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Feed', response) def get_global_permissions(self): """GetGlobalPermissions. - [Preview API] + [Preview API] Get all service-wide feed creation permissions. :rtype: [GlobalPermission] """ response = self._send(http_method='GET', location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('[GlobalPermission]', self._unwrap_collection(response)) def set_global_permissions(self, global_permissions): """SetGlobalPermissions. - [Preview API] - :param [GlobalPermission] global_permissions: + [Preview API] Set service-wide permissions that govern feed creation. + :param [GlobalPermission] global_permissions: New permissions for the organization. :rtype: [GlobalPermission] """ content = self._serialize.body(global_permissions, '[GlobalPermission]') response = self._send(http_method='PATCH', location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('[GlobalPermission]', self._unwrap_collection(response)) def get_package_changes(self, feed_id, continuation_token=None, batch_size=None): """GetPackageChanges. - [Preview API] - :param str feed_id: - :param long continuation_token: - :param int batch_size: - :rtype: :class:` ` + [Preview API] Get a batch of package changes made to a feed. The changes returned are 'most recent change' so if an Add is followed by an Update before you begin enumerating, you'll only see one change in the batch. While consuming batches using the continuation token, you may see changes to the same package version multiple times if they are happening as you enumerate. + :param str feed_id: Name or Id of the feed. + :param long continuation_token: A continuation token which acts as a bookmark to a previously retrieved change. This token allows the user to continue retrieving changes in batches, picking up where the previous batch left off. If specified, all the changes that occur strictly after the token will be returned. If not specified or 0, iteration will start with the first change. + :param int batch_size: Number of package changes to fetch. The default value is 1000. The maximum value is 2000. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -202,23 +202,23 @@ def get_package_changes(self, feed_id, continuation_token=None, batch_size=None) query_parameters['batchSize'] = self._serialize.query('batch_size', batch_size, 'int') response = self._send(http_method='GET', location_id='323a0631-d083-4005-85ae-035114dfb681', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PackageChangesResponse', response) def get_package(self, feed_id, package_id, include_all_versions=None, include_urls=None, is_listed=None, is_release=None, include_deleted=None, include_description=None): """GetPackage. - [Preview API] - :param str feed_id: - :param str package_id: - :param bool include_all_versions: - :param bool include_urls: - :param bool is_listed: - :param bool is_release: - :param bool include_deleted: - :param bool include_description: - :rtype: :class:` ` + [Preview API] Get details about a specific package. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param bool include_all_versions: True to return all versions of the package in the response. Default is false (latest version only). + :param bool include_urls: True to return REST Urls with the response. Default is True. + :param bool is_listed: Only applicable for NuGet packages, setting it for other package types will result in a 404. If false, delisted package versions will be returned. Use this to filter the response when includeAllVersions is set to true. Default is unset (do not return delisted packages). + :param bool is_release: Only applicable for Nuget packages. Use this to filter the response when includeAllVersions is set to true. Default is True (only return packages without prerelease versioning). + :param bool include_deleted: Return deleted or unpublished versions of packages in the response. Default is False. + :param bool include_description: Return the description for every version of each package in the response. Default is False. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -240,29 +240,29 @@ def get_package(self, feed_id, package_id, include_all_versions=None, include_ur query_parameters['includeDescription'] = self._serialize.query('include_description', include_description, 'bool') response = self._send(http_method='GET', location_id='7a20d846-c929-4acc-9ea2-0d5a7df1b197', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Package', response) def get_packages(self, feed_id, protocol_type=None, package_name_query=None, normalized_package_name=None, include_urls=None, include_all_versions=None, is_listed=None, get_top_package_versions=None, is_release=None, include_description=None, top=None, skip=None, include_deleted=None, is_cached=None, direct_upstream_id=None): """GetPackages. - [Preview API] - :param str feed_id: - :param str protocol_type: - :param str package_name_query: - :param str normalized_package_name: - :param bool include_urls: - :param bool include_all_versions: - :param bool is_listed: - :param bool get_top_package_versions: - :param bool is_release: - :param bool include_description: - :param int top: - :param int skip: - :param bool include_deleted: - :param bool is_cached: - :param str direct_upstream_id: + [Preview API] Get details about all of the packages in the feed. Use the various filters to include or exclude information from the result set. + :param str feed_id: Name or Id of the feed. + :param str protocol_type: One of the supported artifact package types. + :param str package_name_query: Filter to packages that contain the provided string. Characters in the string must conform to the package name constraints. + :param str normalized_package_name: [Obsolete] Used for legacy scenarios and may be removed in future versions. + :param bool include_urls: True to return REST Urls with the response. Default is True. + :param bool include_all_versions: True to return all versions of the package in the response. Default is false (latest version only). + :param bool is_listed: Only applicable for NuGet packages, setting it for other package types will result in a 404. If false, delisted package versions will be returned. Use this to filter the response when includeAllVersions is set to true. Default is unset (do not return delisted packages). + :param bool get_top_package_versions: Changes the behavior of $top and $skip to return all versions of each package up to $top. Must be used in conjunction with includeAllVersions=true + :param bool is_release: Only applicable for Nuget packages. Use this to filter the response when includeAllVersions is set to true. Default is True (only return packages without prerelease versioning). + :param bool include_description: Return the description for every version of each package in the response. Default is False. + :param int top: Get the top N packages (or package versions where getTopPackageVersions=true) + :param int skip: Skip the first N packages (or package versions where getTopPackageVersions=true) + :param bool include_deleted: Return deleted or unpublished versions of packages in the response. Default is False. + :param bool is_cached: [Obsolete] Used for legacy scenarios and may be removed in future versions. + :param str direct_upstream_id: Filter results to return packages from a specific upstream. :rtype: [Package] """ route_values = {} @@ -299,17 +299,18 @@ def get_packages(self, feed_id, protocol_type=None, package_name_query=None, nor query_parameters['directUpstreamId'] = self._serialize.query('direct_upstream_id', direct_upstream_id, 'str') response = self._send(http_method='GET', location_id='7a20d846-c929-4acc-9ea2-0d5a7df1b197', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Package]', self._unwrap_collection(response)) - def get_feed_permissions(self, feed_id, include_ids=None, exclude_inherited_permissions=None): + def get_feed_permissions(self, feed_id, include_ids=None, exclude_inherited_permissions=None, identity_descriptor=None): """GetFeedPermissions. - [Preview API] - :param str feed_id: - :param bool include_ids: - :param bool exclude_inherited_permissions: + [Preview API] Get the permissions for a feed. + :param str feed_id: Name or Id of the feed. + :param bool include_ids: True to include user Ids in the response. Default is false. + :param bool exclude_inherited_permissions: True to only return explicitly set permissions on the feed. Default is false. + :param str identity_descriptor: Filter permissions to the provided identity. :rtype: [FeedPermission] """ route_values = {} @@ -320,18 +321,20 @@ def get_feed_permissions(self, feed_id, include_ids=None, exclude_inherited_perm query_parameters['includeIds'] = self._serialize.query('include_ids', include_ids, 'bool') if exclude_inherited_permissions is not None: query_parameters['excludeInheritedPermissions'] = self._serialize.query('exclude_inherited_permissions', exclude_inherited_permissions, 'bool') + if identity_descriptor is not None: + query_parameters['identityDescriptor'] = self._serialize.query('identity_descriptor', identity_descriptor, 'str') response = self._send(http_method='GET', location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[FeedPermission]', self._unwrap_collection(response)) def set_feed_permissions(self, feed_permission, feed_id): """SetFeedPermissions. - [Preview API] - :param [FeedPermission] feed_permission: - :param str feed_id: + [Preview API] Update the permissions on a feed. + :param [FeedPermission] feed_permission: Permissions to set. + :param str feed_id: Name or Id of the feed. :rtype: [FeedPermission] """ route_values = {} @@ -340,18 +343,39 @@ def set_feed_permissions(self, feed_permission, feed_id): content = self._serialize.body(feed_permission, '[FeedPermission]') response = self._send(http_method='PATCH', location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('[FeedPermission]', self._unwrap_collection(response)) + def get_package_version_provenance(self, feed_id, package_id, package_version_id): + """GetPackageVersionProvenance. + [Preview API] Gets provenance for a package version. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). + :param str package_version_id: Id of the package version (GUID Id, not name). + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + if package_version_id is not None: + route_values['packageVersionId'] = self._serialize.url('package_version_id', package_version_id, 'str') + response = self._send(http_method='GET', + location_id='0aaeabd4-85cd-4686-8a77-8d31c15690b8', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('PackageVersionProvenance', response) + def get_recycle_bin_package(self, feed_id, package_id, include_urls=None): """GetRecycleBinPackage. - [Preview API] - :param str feed_id: - :param str package_id: - :param bool include_urls: - :rtype: :class:` ` + [Preview API] Get information about a package and all its versions within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param bool include_urls: True to return REST Urls with the response. Default is True. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -363,21 +387,21 @@ def get_recycle_bin_package(self, feed_id, package_id, include_urls=None): query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') response = self._send(http_method='GET', location_id='2704e72c-f541-4141-99be-2004b50b05fa', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Package', response) def get_recycle_bin_packages(self, feed_id, protocol_type=None, package_name_query=None, include_urls=None, top=None, skip=None, include_all_versions=None): """GetRecycleBinPackages. - [Preview API] - :param str feed_id: - :param str protocol_type: - :param str package_name_query: - :param bool include_urls: - :param int top: - :param int skip: - :param bool include_all_versions: + [Preview API] Query for packages within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str protocol_type: Type of package (e.g. NuGet, npm, ...). + :param str package_name_query: Filter to packages matching this name. + :param bool include_urls: True to return REST Urls with the response. Default is True. + :param int top: Get the top N packages. + :param int skip: Skip the first N packages. + :param bool include_all_versions: True to return all versions of the package in the response. Default is false (latest version only). :rtype: [Package] """ route_values = {} @@ -398,19 +422,19 @@ def get_recycle_bin_packages(self, feed_id, protocol_type=None, package_name_que query_parameters['includeAllVersions'] = self._serialize.query('include_all_versions', include_all_versions, 'bool') response = self._send(http_method='GET', location_id='2704e72c-f541-4141-99be-2004b50b05fa', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Package]', self._unwrap_collection(response)) def get_recycle_bin_package_version(self, feed_id, package_id, package_version_id, include_urls=None): """GetRecycleBinPackageVersion. - [Preview API] - :param str feed_id: - :param str package_id: - :param str package_version_id: - :param bool include_urls: - :rtype: :class:` ` + [Preview API] Get information about a package version within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param str package_version_id: The package version Id 9guid Id, not the version string). + :param bool include_urls: True to return REST Urls with the response. Default is True. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -424,17 +448,17 @@ def get_recycle_bin_package_version(self, feed_id, package_id, package_version_i query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') response = self._send(http_method='GET', location_id='aceb4be7-8737-4820-834c-4c549e10fdc7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('RecycleBinPackageVersion', response) def get_recycle_bin_package_versions(self, feed_id, package_id, include_urls=None): """GetRecycleBinPackageVersions. - [Preview API] - :param str feed_id: - :param str package_id: - :param bool include_urls: + [Preview API] Get a list of package versions within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param bool include_urls: True to return REST Urls with the response. Default is True. :rtype: [RecycleBinPackageVersion] """ route_values = {} @@ -447,45 +471,45 @@ def get_recycle_bin_package_versions(self, feed_id, package_id, include_urls=Non query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') response = self._send(http_method='GET', location_id='aceb4be7-8737-4820-834c-4c549e10fdc7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[RecycleBinPackageVersion]', self._unwrap_collection(response)) def delete_feed_retention_policies(self, feed_id): """DeleteFeedRetentionPolicies. - [Preview API] - :param str feed_id: + [Preview API] Delete the retention policy for a feed. + :param str feed_id: Name or ID of the feed. """ route_values = {} if feed_id is not None: route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') self._send(http_method='DELETE', location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_feed_retention_policies(self, feed_id): """GetFeedRetentionPolicies. - [Preview API] - :param str feed_id: - :rtype: :class:` ` + [Preview API] Get the retention policy for a feed. + :param str feed_id: Name or ID of the feed. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') response = self._send(http_method='GET', location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('FeedRetentionPolicy', response) def set_feed_retention_policies(self, policy, feed_id): """SetFeedRetentionPolicies. - [Preview API] - :param :class:` ` policy: - :param str feed_id: - :rtype: :class:` ` + [Preview API] Set the retention policy for a feed. + :param :class:` ` policy: Feed retention policy. + :param str feed_id: Name or ID of the feed. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -493,21 +517,21 @@ def set_feed_retention_policies(self, policy, feed_id): content = self._serialize.body(policy, 'FeedRetentionPolicy') response = self._send(http_method='PUT', location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('FeedRetentionPolicy', response) def get_package_version(self, feed_id, package_id, package_version_id, include_urls=None, is_listed=None, is_deleted=None): """GetPackageVersion. - [Preview API] - :param str feed_id: - :param str package_id: - :param str package_version_id: - :param bool include_urls: - :param bool is_listed: - :param bool is_deleted: - :rtype: :class:` ` + [Preview API] Get details about a specific package version. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). + :param str package_version_id: Id of the package version (GUID Id, not name). + :param bool include_urls: True to include urls for each version. Default is true. + :param bool is_listed: Only applicable for NuGet packages. If false, delisted package versions will be returned. + :param bool is_deleted: Return deleted or unpublished versions of packages in the response. Default is unset (do not return deleted versions). + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -525,19 +549,19 @@ def get_package_version(self, feed_id, package_id, package_version_id, include_u query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') response = self._send(http_method='GET', location_id='3b331909-6a86-44cc-b9ec-c1834c35498f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PackageVersion', response) def get_package_versions(self, feed_id, package_id, include_urls=None, is_listed=None, is_deleted=None): """GetPackageVersions. - [Preview API] - :param str feed_id: - :param str package_id: - :param bool include_urls: - :param bool is_listed: - :param bool is_deleted: + [Preview API] Get a list of package versions, optionally filtering by state. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). + :param bool include_urls: True to include urls for each version. Default is true. + :param bool is_listed: Only applicable for NuGet packages. If false, delisted package versions will be returned. + :param bool is_deleted: Return deleted or unpublished versions of packages in the response. Default is unset (do not return deleted versions). :rtype: [PackageVersion] """ route_values = {} @@ -554,17 +578,17 @@ def get_package_versions(self, feed_id, package_id, include_urls=None, is_listed query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') response = self._send(http_method='GET', location_id='3b331909-6a86-44cc-b9ec-c1834c35498f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[PackageVersion]', self._unwrap_collection(response)) def create_feed_view(self, view, feed_id): """CreateFeedView. - [Preview API] - :param :class:` ` view: - :param str feed_id: - :rtype: :class:` ` + [Preview API] Create a new view on the referenced feed. + :param :class:` ` view: View to be created. + :param str feed_id: Name or Id of the feed. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -572,16 +596,16 @@ def create_feed_view(self, view, feed_id): content = self._serialize.body(view, 'FeedView') response = self._send(http_method='POST', location_id='42a8502a-6785-41bc-8c16-89477d930877', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('FeedView', response) def delete_feed_view(self, feed_id, view_id): """DeleteFeedView. - [Preview API] - :param str feed_id: - :param str view_id: + [Preview API] Delete a feed view. + :param str feed_id: Name or Id of the feed. + :param str view_id: Name or Id of the view. """ route_values = {} if feed_id is not None: @@ -590,15 +614,15 @@ def delete_feed_view(self, feed_id, view_id): route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') self._send(http_method='DELETE', location_id='42a8502a-6785-41bc-8c16-89477d930877', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_feed_view(self, feed_id, view_id): """GetFeedView. - [Preview API] - :param str feed_id: - :param str view_id: - :rtype: :class:` ` + [Preview API] Get a view by Id. + :param str feed_id: Name or Id of the feed. + :param str view_id: Name or Id of the view. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -607,14 +631,14 @@ def get_feed_view(self, feed_id, view_id): route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') response = self._send(http_method='GET', location_id='42a8502a-6785-41bc-8c16-89477d930877', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('FeedView', response) def get_feed_views(self, feed_id): """GetFeedViews. - [Preview API] - :param str feed_id: + [Preview API] Get all views for a feed. + :param str feed_id: Name or Id of the feed. :rtype: [FeedView] """ route_values = {} @@ -622,17 +646,17 @@ def get_feed_views(self, feed_id): route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') response = self._send(http_method='GET', location_id='42a8502a-6785-41bc-8c16-89477d930877', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[FeedView]', self._unwrap_collection(response)) def update_feed_view(self, view, feed_id, view_id): """UpdateFeedView. - [Preview API] - :param :class:` ` view: - :param str feed_id: - :param str view_id: - :rtype: :class:` ` + [Preview API] Update a view. + :param :class:` ` view: New settings to apply to the specified view. + :param str feed_id: Name or Id of the feed. + :param str view_id: Name or Id of the view. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -642,7 +666,7 @@ def update_feed_view(self, view, feed_id, view_id): content = self._serialize.body(view, 'FeedView') response = self._send(http_method='PATCH', location_id='42a8502a-6785-41bc-8c16-89477d930877', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('FeedView', response) diff --git a/azure-devops/azure/devops/v4_1/feed/models.py b/azure-devops/azure/devops/v5_0/feed/models.py similarity index 58% rename from azure-devops/azure/devops/v4_1/feed/models.py rename to azure-devops/azure/devops/v5_0/feed/models.py index 2c9d3c85..00f92408 100644 --- a/azure-devops/azure/devops/v4_1/feed/models.py +++ b/azure-devops/azure/devops/v5_0/feed/models.py @@ -9,16 +9,48 @@ from msrest.serialization import Model +class FeedBatchData(Model): + """FeedBatchData. + + :param data: + :type data: :class:`FeedBatchOperationData ` + :param operation: + :type operation: object + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'FeedBatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'} + } + + def __init__(self, data=None, operation=None): + super(FeedBatchData, self).__init__() + self.data = data + self.operation = operation + + +class FeedBatchOperationData(Model): + """FeedBatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(FeedBatchOperationData, self).__init__() + + class FeedChange(Model): """FeedChange. - :param change_type: + :param change_type: The type of operation. :type change_type: object - :param feed: - :type feed: :class:`Feed ` - :param feed_continuation_token: + :param feed: The state of the feed after a after a create, update, or delete operation completed. + :type feed: :class:`Feed ` + :param feed_continuation_token: A token that identifies the next change in the log of changes. :type feed_continuation_token: long - :param latest_package_continuation_token: + :param latest_package_continuation_token: A token that identifies the latest package change for this feed. This can be used to quickly determine if there have been any changes to packages in a specific feed. :type latest_package_continuation_token: long """ @@ -41,12 +73,12 @@ class FeedChangesResponse(Model): """FeedChangesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` - :param count: + :type _links: :class:`ReferenceLinks ` + :param count: The number of changes in this set. :type count: int - :param feed_changes: - :type feed_changes: list of :class:`FeedChange ` - :param next_feed_continuation_token: + :param feed_changes: A container that encapsulates the state of the feed after a create, update, or delete. + :type feed_changes: list of :class:`FeedChange ` + :param next_feed_continuation_token: When iterating through the log of changes this value indicates the value that should be used for the next continuation token. :type next_feed_continuation_token: long """ @@ -68,29 +100,29 @@ def __init__(self, _links=None, count=None, feed_changes=None, next_feed_continu class FeedCore(Model): """FeedCore. - :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :param allow_upstream_name_conflict: OBSOLETE: If set, the feed will allow upload of packages that exist on the upstream :type allow_upstream_name_conflict: bool - :param capabilities: + :param capabilities: Supported capabilities of a feed. :type capabilities: object - :param fully_qualified_id: + :param fully_qualified_id: This will either be the feed GUID or the feed GUID and view GUID depending on how the feed was accessed. :type fully_qualified_id: str - :param fully_qualified_name: + :param fully_qualified_name: Full name of the view, in feed@view format. :type fully_qualified_name: str - :param id: + :param id: A GUID that uniquely identifies this feed. :type id: str - :param is_read_only: + :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str - :param upstream_enabled: If set, the feed can proxy packages from an upstream feed + :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool - :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. - :type upstream_sources: list of :class:`UpstreamSource ` - :param view: - :type view: :class:`FeedView ` - :param view_id: + :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: Definition of the view. + :type view: :class:`FeedView ` + :param view_id: View Id. :type view_id: str - :param view_name: + :param view_name: View name. :type view_name: str """ @@ -128,13 +160,13 @@ def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_q class FeedPermission(Model): """FeedPermission. - :param display_name: Display name for the identity + :param display_name: Display name for the identity. :type display_name: str - :param identity_descriptor: - :type identity_descriptor: :class:`str ` - :param identity_id: + :param identity_descriptor: Identity associated with this role. + :type identity_descriptor: :class:`str ` + :param identity_id: Id of the identity associated with this role. :type identity_id: str - :param role: + :param role: The role for this identity on a feed. :type role: object """ @@ -156,9 +188,9 @@ def __init__(self, display_name=None, identity_descriptor=None, identity_id=None class FeedRetentionPolicy(Model): """FeedRetentionPolicy. - :param age_limit_in_days: + :param age_limit_in_days: Used for legacy scenarios and may be removed in future versions. :type age_limit_in_days: int - :param count_limit: + :param count_limit: Maximum versions to preserve per package and package type. :type count_limit: int """ @@ -178,22 +210,22 @@ class FeedUpdate(Model): :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream :type allow_upstream_name_conflict: bool - :param badges_enabled: + :param badges_enabled: If set, this feed supports generation of package badges. :type badges_enabled: bool - :param default_view_id: + :param default_view_id: The view that the feed administrator has indicated is the default experience for readers. :type default_view_id: str - :param description: + :param description: A description for the feed. Descriptions must not exceed 255 characters. :type description: str :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions :type hide_deleted_package_versions: bool - :param id: + :param id: A GUID that uniquely identifies this feed. :type id: str - :param name: + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str - :param upstream_enabled: + :param upstream_enabled: OBSOLETE: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool - :param upstream_sources: - :type upstream_sources: list of :class:`UpstreamSource ` + :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. + :type upstream_sources: list of :class:`UpstreamSource ` """ _attribute_map = { @@ -224,17 +256,17 @@ def __init__(self, allow_upstream_name_conflict=None, badges_enabled=None, defau class FeedView(Model): """FeedView. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param id: Id of the view. :type id: str - :param name: + :param name: Name of the view. :type name: str - :param type: + :param type: Type of view. :type type: object - :param url: + :param url: Url of the view. :type url: str - :param visibility: + :param visibility: Visibility status of the view. :type visibility: object """ @@ -260,9 +292,9 @@ def __init__(self, _links=None, id=None, name=None, type=None, url=None, visibil class GlobalPermission(Model): """GlobalPermission. - :param identity_descriptor: - :type identity_descriptor: :class:`str ` - :param role: + :param identity_descriptor: Identity of the user with the provided Role. + :type identity_descriptor: :class:`str ` + :param role: Role associated with the Identity. :type role: object """ @@ -308,30 +340,30 @@ def __init__(self, from_=None, op=None, path=None, value=None): class MinimalPackageVersion(Model): """MinimalPackageVersion. - :param direct_upstream_source_id: + :param direct_upstream_source_id: Upstream source this package was ingested from. :type direct_upstream_source_id: str - :param id: + :param id: Id for the package. :type id: str - :param is_cached_version: + :param is_cached_version: [Obsolete] Used for legacy scenarios and may be removed in future versions. :type is_cached_version: bool - :param is_deleted: + :param is_deleted: True if this package has been deleted. :type is_deleted: bool - :param is_latest: + :param is_latest: True if this is the latest version of the package by package type sort order. :type is_latest: bool - :param is_listed: + :param is_listed: (NuGet Only) True if this package is listed. :type is_listed: bool - :param normalized_version: The normalized version representing the identity of a package version + :param normalized_version: Normalized version using normalization rules specific to a package type. :type normalized_version: str - :param package_description: + :param package_description: Package description. :type package_description: str - :param publish_date: + :param publish_date: UTC Date the package was published to the service. :type publish_date: datetime - :param storage_id: + :param storage_id: Internal storage id. :type storage_id: str - :param version: The display version of the package version + :param version: Display version. :type version: str - :param views: - :type views: list of :class:`FeedView ` + :param views: List of views containing this package version. + :type views: list of :class:`FeedView ` """ _attribute_map = { @@ -368,24 +400,24 @@ def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=No class Package(Model): """Package. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param id: Id of the package. :type id: str - :param is_cached: + :param is_cached: Used for legacy scenarios and may be removed in future versions. :type is_cached: bool - :param name: The display name of the package + :param name: The display name of the package. :type name: str - :param normalized_name: The normalized name representing the identity of this package for this protocol type + :param normalized_name: The normalized name representing the identity of this package within its package type. :type normalized_name: str - :param protocol_type: + :param protocol_type: Type of the package. :type protocol_type: str - :param star_count: + :param star_count: [Obsolete] - this field is unused and will be removed in a future release. :type star_count: int - :param url: + :param url: Url for this package. :type url: str - :param versions: - :type versions: list of :class:`MinimalPackageVersion ` + :param versions: All versions for this package within its feed. + :type versions: list of :class:`MinimalPackageVersion ` """ _attribute_map = { @@ -416,10 +448,10 @@ def __init__(self, _links=None, id=None, is_cached=None, name=None, normalized_n class PackageChange(Model): """PackageChange. - :param package: - :type package: :class:`Package ` - :param package_version_change: - :type package_version_change: :class:`PackageVersionChange ` + :param package: Package that was changed. + :type package: :class:`Package ` + :param package_version_change: Change that was performed on a package version. + :type package_version_change: :class:`PackageVersionChange ` """ _attribute_map = { @@ -436,14 +468,14 @@ def __init__(self, package=None, package_version_change=None): class PackageChangesResponse(Model): """PackageChangesResponse. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param count: + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param count: Number of changes in this batch. :type count: int - :param next_package_continuation_token: + :param next_package_continuation_token: Token that should be used in future calls for this feed to retrieve new changes. :type next_package_continuation_token: long - :param package_changes: - :type package_changes: list of :class:`PackageChange ` + :param package_changes: List of changes. + :type package_changes: list of :class:`PackageChange ` """ _attribute_map = { @@ -464,11 +496,11 @@ def __init__(self, _links=None, count=None, next_package_continuation_token=None class PackageDependency(Model): """PackageDependency. - :param group: + :param group: Dependency package group (an optional classification within some package types). :type group: str - :param package_name: + :param package_name: Dependency package name. :type package_name: str - :param version_range: + :param version_range: Dependency package version range. :type version_range: str """ @@ -485,15 +517,31 @@ def __init__(self, group=None, package_name=None, version_range=None): self.version_range = version_range +class PackageDownloadMetricsQuery(Model): + """PackageDownloadMetricsQuery. + + :param package_ids: List of package ids + :type package_ids: list of str + """ + + _attribute_map = { + 'package_ids': {'key': 'packageIds', 'type': '[str]'} + } + + def __init__(self, package_ids=None): + super(PackageDownloadMetricsQuery, self).__init__() + self.package_ids = package_ids + + class PackageFile(Model): """PackageFile. - :param children: - :type children: list of :class:`PackageFile ` - :param name: + :param children: Hierarchical representation of files. + :type children: list of :class:`PackageFile ` + :param name: File name. :type name: str - :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` + :param protocol_metadata: Extended data unique to a specific package type. + :type protocol_metadata: :class:`ProtocolMetadata ` """ _attribute_map = { @@ -509,56 +557,84 @@ def __init__(self, children=None, name=None, protocol_metadata=None): self.protocol_metadata = protocol_metadata +class PackageIdMetrics(Model): + """PackageIdMetrics. + + :param download_count: Total count of downloads per package id. + :type download_count: float + :param download_unique_users: Number of downloads per unique user per package id. + :type download_unique_users: float + :param last_downloaded: UTC date and time when package was last downloaded. + :type last_downloaded: datetime + :param package_id: Package id. + :type package_id: str + """ + + _attribute_map = { + 'download_count': {'key': 'downloadCount', 'type': 'float'}, + 'download_unique_users': {'key': 'downloadUniqueUsers', 'type': 'float'}, + 'last_downloaded': {'key': 'lastDownloaded', 'type': 'iso-8601'}, + 'package_id': {'key': 'packageId', 'type': 'str'} + } + + def __init__(self, download_count=None, download_unique_users=None, last_downloaded=None, package_id=None): + super(PackageIdMetrics, self).__init__() + self.download_count = download_count + self.download_unique_users = download_unique_users + self.last_downloaded = last_downloaded + self.package_id = package_id + + class PackageVersion(MinimalPackageVersion): """PackageVersion. - :param direct_upstream_source_id: + :param direct_upstream_source_id: Upstream source this package was ingested from. :type direct_upstream_source_id: str - :param id: + :param id: Id for the package. :type id: str - :param is_cached_version: + :param is_cached_version: [Obsolete] Used for legacy scenarios and may be removed in future versions. :type is_cached_version: bool - :param is_deleted: + :param is_deleted: True if this package has been deleted. :type is_deleted: bool - :param is_latest: + :param is_latest: True if this is the latest version of the package by package type sort order. :type is_latest: bool - :param is_listed: + :param is_listed: (NuGet Only) True if this package is listed. :type is_listed: bool - :param normalized_version: The normalized version representing the identity of a package version + :param normalized_version: Normalized version using normalization rules specific to a package type. :type normalized_version: str - :param package_description: + :param package_description: Package description. :type package_description: str - :param publish_date: + :param publish_date: UTC Date the package was published to the service. :type publish_date: datetime - :param storage_id: + :param storage_id: Internal storage id. :type storage_id: str - :param version: The display version of the package version + :param version: Display version. :type version: str - :param views: - :type views: list of :class:`FeedView ` - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: + :param views: List of views containing this package version. + :type views: list of :class:`FeedView ` + :param _links: Related links + :type _links: :class:`ReferenceLinks ` + :param author: Package version author. :type author: str - :param deleted_date: + :param deleted_date: UTC date that this package version was deleted. :type deleted_date: datetime - :param dependencies: - :type dependencies: list of :class:`PackageDependency ` - :param description: + :param dependencies: List of dependencies for this package version. + :type dependencies: list of :class:`PackageDependency ` + :param description: Package version description. :type description: str - :param files: - :type files: list of :class:`PackageFile ` - :param other_versions: - :type other_versions: list of :class:`MinimalPackageVersion ` - :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` - :param source_chain: - :type source_chain: list of :class:`UpstreamSource ` - :param summary: + :param files: Files associated with this package version, only relevant for multi-file package types. + :type files: list of :class:`PackageFile ` + :param other_versions: Other versions of this package. + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: Extended data specific to a package type. + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: List of upstream sources through which a package version moved to land in this feed. + :type source_chain: list of :class:`UpstreamSource ` + :param summary: Package version summary. :type summary: str - :param tags: + :param tags: Package version tags. :type tags: list of str - :param url: + :param url: Package version url. :type url: str """ @@ -608,12 +684,12 @@ def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=No class PackageVersionChange(Model): """PackageVersionChange. - :param change_type: + :param change_type: The type of change that was performed. :type change_type: object - :param continuation_token: + :param continuation_token: Token marker for this change, allowing the caller to send this value back to the service and receive changes beyond this one. :type continuation_token: long - :param package_version: - :type package_version: :class:`PackageVersion ` + :param package_version: Package version that was changed. + :type package_version: :class:`PackageVersion ` """ _attribute_map = { @@ -629,12 +705,88 @@ def __init__(self, change_type=None, continuation_token=None, package_version=No self.package_version = package_version +class PackageVersionDownloadMetricsQuery(Model): + """PackageVersionDownloadMetricsQuery. + + :param package_version_ids: List of package version ids + :type package_version_ids: list of str + """ + + _attribute_map = { + 'package_version_ids': {'key': 'packageVersionIds', 'type': '[str]'} + } + + def __init__(self, package_version_ids=None): + super(PackageVersionDownloadMetricsQuery, self).__init__() + self.package_version_ids = package_version_ids + + +class PackageVersionMetrics(Model): + """PackageVersionMetrics. + + :param download_count: Total count of downloads per package version id. + :type download_count: float + :param download_unique_users: Number of downloads per unique user per package version id. + :type download_unique_users: float + :param last_downloaded: UTC date and time when package version was last downloaded. + :type last_downloaded: datetime + :param package_id: Package id. + :type package_id: str + :param package_version_id: Package version id. + :type package_version_id: str + """ + + _attribute_map = { + 'download_count': {'key': 'downloadCount', 'type': 'float'}, + 'download_unique_users': {'key': 'downloadUniqueUsers', 'type': 'float'}, + 'last_downloaded': {'key': 'lastDownloaded', 'type': 'iso-8601'}, + 'package_id': {'key': 'packageId', 'type': 'str'}, + 'package_version_id': {'key': 'packageVersionId', 'type': 'str'} + } + + def __init__(self, download_count=None, download_unique_users=None, last_downloaded=None, package_id=None, package_version_id=None): + super(PackageVersionMetrics, self).__init__() + self.download_count = download_count + self.download_unique_users = download_unique_users + self.last_downloaded = last_downloaded + self.package_id = package_id + self.package_version_id = package_version_id + + +class PackageVersionProvenance(Model): + """PackageVersionProvenance. + + :param feed_id: Name or Id of the feed. + :type feed_id: str + :param package_id: Id of the package (GUID Id, not name). + :type package_id: str + :param package_version_id: Id of the package version (GUID Id, not name). + :type package_version_id: str + :param provenance: Provenance information for this package version. + :type provenance: :class:`Provenance ` + """ + + _attribute_map = { + 'feed_id': {'key': 'feedId', 'type': 'str'}, + 'package_id': {'key': 'packageId', 'type': 'str'}, + 'package_version_id': {'key': 'packageVersionId', 'type': 'str'}, + 'provenance': {'key': 'provenance', 'type': 'Provenance'} + } + + def __init__(self, feed_id=None, package_id=None, package_version_id=None, provenance=None): + super(PackageVersionProvenance, self).__init__() + self.feed_id = feed_id + self.package_id = package_id + self.package_version_id = package_version_id + self.provenance = provenance + + class ProtocolMetadata(Model): """ProtocolMetadata. - :param data: + :param data: Extended metadata for a specific package type, formatted to the associated schema version definition. :type data: object - :param schema_version: + :param schema_version: Schema version. :type schema_version: int """ @@ -649,58 +801,86 @@ def __init__(self, data=None, schema_version=None): self.schema_version = schema_version +class Provenance(Model): + """Provenance. + + :param data: Other provenance data. + :type data: dict + :param provenance_source: Type of provenance source, for example "InternalBuild", "InternalRelease" + :type provenance_source: str + :param publisher_user_identity: Identity of user that published the package + :type publisher_user_identity: str + :param user_agent: HTTP User-Agent used when pushing the package. + :type user_agent: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'provenance_source': {'key': 'provenanceSource', 'type': 'str'}, + 'publisher_user_identity': {'key': 'publisherUserIdentity', 'type': 'str'}, + 'user_agent': {'key': 'userAgent', 'type': 'str'} + } + + def __init__(self, data=None, provenance_source=None, publisher_user_identity=None, user_agent=None): + super(Provenance, self).__init__() + self.data = data + self.provenance_source = provenance_source + self.publisher_user_identity = publisher_user_identity + self.user_agent = user_agent + + class RecycleBinPackageVersion(PackageVersion): """RecycleBinPackageVersion. - :param direct_upstream_source_id: + :param direct_upstream_source_id: Upstream source this package was ingested from. :type direct_upstream_source_id: str - :param id: + :param id: Id for the package. :type id: str - :param is_cached_version: + :param is_cached_version: [Obsolete] Used for legacy scenarios and may be removed in future versions. :type is_cached_version: bool - :param is_deleted: + :param is_deleted: True if this package has been deleted. :type is_deleted: bool - :param is_latest: + :param is_latest: True if this is the latest version of the package by package type sort order. :type is_latest: bool - :param is_listed: + :param is_listed: (NuGet Only) True if this package is listed. :type is_listed: bool - :param normalized_version: The normalized version representing the identity of a package version + :param normalized_version: Normalized version using normalization rules specific to a package type. :type normalized_version: str - :param package_description: + :param package_description: Package description. :type package_description: str - :param publish_date: + :param publish_date: UTC Date the package was published to the service. :type publish_date: datetime - :param storage_id: + :param storage_id: Internal storage id. :type storage_id: str - :param version: The display version of the package version + :param version: Display version. :type version: str - :param views: - :type views: list of :class:`FeedView ` - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: + :param views: List of views containing this package version. + :type views: list of :class:`FeedView ` + :param _links: Related links + :type _links: :class:`ReferenceLinks ` + :param author: Package version author. :type author: str - :param deleted_date: + :param deleted_date: UTC date that this package version was deleted. :type deleted_date: datetime - :param dependencies: - :type dependencies: list of :class:`PackageDependency ` - :param description: + :param dependencies: List of dependencies for this package version. + :type dependencies: list of :class:`PackageDependency ` + :param description: Package version description. :type description: str - :param files: - :type files: list of :class:`PackageFile ` - :param other_versions: - :type other_versions: list of :class:`MinimalPackageVersion ` - :param protocol_metadata: - :type protocol_metadata: :class:`ProtocolMetadata ` - :param source_chain: - :type source_chain: list of :class:`UpstreamSource ` - :param summary: + :param files: Files associated with this package version, only relevant for multi-file package types. + :type files: list of :class:`PackageFile ` + :param other_versions: Other versions of this package. + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: Extended data specific to a package type. + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: List of upstream sources through which a package version moved to land in this feed. + :type source_chain: list of :class:`UpstreamSource ` + :param summary: Package version summary. :type summary: str - :param tags: + :param tags: Package version tags. :type tags: list of str - :param url: + :param url: Package version url. :type url: str - :param scheduled_permanent_delete_date: + :param scheduled_permanent_delete_date: UTC date on which the package will automatically be removed from the recycle bin and permanently deleted. :type scheduled_permanent_delete_date: datetime """ @@ -756,23 +936,23 @@ def __init__(self, links=None): class UpstreamSource(Model): """UpstreamSource. - :param deleted_date: + :param deleted_date: UTC date that this upstream was deleted. :type deleted_date: datetime - :param id: + :param id: Identity of the upstream source. :type id: str - :param internal_upstream_collection_id: + :param internal_upstream_collection_id: For an internal upstream type, track the Azure DevOps organization that contains it. :type internal_upstream_collection_id: str - :param internal_upstream_feed_id: + :param internal_upstream_feed_id: For an internal upstream type, track the feed id being referenced. :type internal_upstream_feed_id: str - :param internal_upstream_view_id: + :param internal_upstream_view_id: For an internal upstream type, track the view of the feed being referenced. :type internal_upstream_view_id: str - :param location: + :param location: Locator for connecting to the upstream source. :type location: str - :param name: + :param name: Display name. :type name: str - :param protocol: + :param protocol: Package type associated with the upstream source. :type protocol: str - :param upstream_source_type: + :param upstream_source_type: Source type, such as Public or Internal. :type upstream_source_type: object """ @@ -804,47 +984,47 @@ def __init__(self, deleted_date=None, id=None, internal_upstream_collection_id=N class Feed(FeedCore): """Feed. - :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :param allow_upstream_name_conflict: OBSOLETE: If set, the feed will allow upload of packages that exist on the upstream :type allow_upstream_name_conflict: bool - :param capabilities: + :param capabilities: Supported capabilities of a feed. :type capabilities: object - :param fully_qualified_id: + :param fully_qualified_id: This will either be the feed GUID or the feed GUID and view GUID depending on how the feed was accessed. :type fully_qualified_id: str - :param fully_qualified_name: + :param fully_qualified_name: Full name of the view, in feed@view format. :type fully_qualified_name: str - :param id: + :param id: A GUID that uniquely identifies this feed. :type id: str - :param is_read_only: + :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. :type is_read_only: bool - :param name: + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> :type name: str - :param upstream_enabled: If set, the feed can proxy packages from an upstream feed + :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool - :param upstream_sources: External assemblies should use the extension methods to get the sources for a specific protocol. - :type upstream_sources: list of :class:`UpstreamSource ` - :param view: - :type view: :class:`FeedView ` - :param view_id: + :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: Definition of the view. + :type view: :class:`FeedView ` + :param view_id: View Id. :type view_id: str - :param view_name: + :param view_name: View name. :type view_name: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param badges_enabled: + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param badges_enabled: If set, this feed supports generation of package badges. :type badges_enabled: bool - :param default_view_id: + :param default_view_id: The view that the feed administrator has indicated is the default experience for readers. :type default_view_id: str - :param deleted_date: + :param deleted_date: The date that this feed was deleted. :type deleted_date: datetime - :param description: + :param description: A description for the feed. Descriptions must not exceed 255 characters. :type description: str - :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions + :param hide_deleted_package_versions: If set, the feed will hide all deleted/unpublished versions :type hide_deleted_package_versions: bool - :param permissions: - :type permissions: list of :class:`FeedPermission ` + :param permissions: Explicit permissions for the feed. + :type permissions: list of :class:`FeedPermission ` :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. :type upstream_enabled_changed_date: datetime - :param url: + :param url: The URL of the base feed in GUID form. :type url: str """ @@ -886,6 +1066,8 @@ def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_q __all__ = [ + 'FeedBatchData', + 'FeedBatchOperationData', 'FeedChange', 'FeedChangesResponse', 'FeedCore', @@ -900,10 +1082,16 @@ def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_q 'PackageChange', 'PackageChangesResponse', 'PackageDependency', + 'PackageDownloadMetricsQuery', 'PackageFile', + 'PackageIdMetrics', 'PackageVersion', 'PackageVersionChange', + 'PackageVersionDownloadMetricsQuery', + 'PackageVersionMetrics', + 'PackageVersionProvenance', 'ProtocolMetadata', + 'Provenance', 'RecycleBinPackageVersion', 'ReferenceLinks', 'UpstreamSource', diff --git a/azure-devops/azure/devops/v4_1/feed_token/__init__.py b/azure-devops/azure/devops/v5_0/feed_token/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/feed_token/__init__.py rename to azure-devops/azure/devops/v5_0/feed_token/__init__.py diff --git a/azure-devops/azure/devops/v4_1/feed_token/feed_token_client.py b/azure-devops/azure/devops/v5_0/feed_token/feed_token_client.py similarity index 69% rename from azure-devops/azure/devops/v4_1/feed_token/feed_token_client.py rename to azure-devops/azure/devops/v5_0/feed_token/feed_token_client.py index 3ed99c32..9085c825 100644 --- a/azure-devops/azure/devops/v4_1/feed_token/feed_token_client.py +++ b/azure-devops/azure/devops/v5_0/feed_token/feed_token_client.py @@ -23,18 +23,23 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = 'cdeb6c7d-6b25-4d6f-b664-c2e3ede202e8' - def get_personal_access_token(self, feed_name=None): + def get_personal_access_token(self, feed_name=None, token_type=None): """GetPersonalAccessToken. - [Preview API] + [Preview API] Get a time-limited session token representing the current user, with permissions scoped to the read/write of Artifacts. :param str feed_name: + :param str token_type: Type of token to retrieve (e.g. 'SelfDescribing', 'Compact'). :rtype: object """ route_values = {} if feed_name is not None: route_values['feedName'] = self._serialize.url('feed_name', feed_name, 'str') + query_parameters = {} + if token_type is not None: + query_parameters['tokenType'] = self._serialize.query('token_type', token_type, 'str') response = self._send(http_method='GET', location_id='dfdb7ad7-3d8e-4907-911e-19b4a8330550', - version='4.1-preview.1', - route_values=route_values) + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('object', response) diff --git a/azure-devops/azure/devops/v4_1/file_container/__init__.py b/azure-devops/azure/devops/v5_0/file_container/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/file_container/__init__.py rename to azure-devops/azure/devops/v5_0/file_container/__init__.py diff --git a/azure-devops/azure/devops/v4_1/file_container/file_container_client.py b/azure-devops/azure/devops/v5_0/file_container/file_container_client.py similarity index 95% rename from azure-devops/azure/devops/v4_1/file_container/file_container_client.py rename to azure-devops/azure/devops/v5_0/file_container/file_container_client.py index 1f830881..ae1f2747 100644 --- a/azure-devops/azure/devops/v4_1/file_container/file_container_client.py +++ b/azure-devops/azure/devops/v5_0/file_container/file_container_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_items(self, items, container_id, scope=None): """CreateItems. [Preview API] Creates the specified items in in the referenced container. - :param :class:` ` items: + :param :class:` ` items: :param int container_id: :param str scope: A guid representing the scope of the container. This is often the project id. :rtype: [FileContainerItem] @@ -42,7 +42,7 @@ def create_items(self, items, container_id, scope=None): content = self._serialize.body(items, 'VssJsonCollectionWrapper') response = self._send(http_method='POST', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.1-preview.4', + version='5.0-preview.4', route_values=route_values, query_parameters=query_parameters, content=content) @@ -65,7 +65,7 @@ def delete_item(self, container_id, item_path, scope=None): query_parameters['scope'] = self._serialize.query('scope', scope, 'str') self._send(http_method='DELETE', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.1-preview.4', + version='5.0-preview.4', route_values=route_values, query_parameters=query_parameters) @@ -83,7 +83,7 @@ def get_containers(self, scope=None, artifact_uris=None): query_parameters['artifactUris'] = self._serialize.query('artifact_uris', artifact_uris, 'str') response = self._send(http_method='GET', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.1-preview.4', + version='5.0-preview.4', query_parameters=query_parameters) return self._deserialize('[FileContainer]', self._unwrap_collection(response)) @@ -120,7 +120,7 @@ def get_items(self, container_id, scope=None, item_path=None, metadata=None, for query_parameters['isShallow'] = self._serialize.query('is_shallow', is_shallow, 'bool') response = self._send(http_method='GET', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.1-preview.4', + version='5.0-preview.4', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[FileContainerItem]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/file_container/models.py b/azure-devops/azure/devops/v5_0/file_container/models.py similarity index 100% rename from azure-devops/azure/devops/v4_1/file_container/models.py rename to azure-devops/azure/devops/v5_0/file_container/models.py diff --git a/azure-devops/azure/devops/v4_1/gallery/__init__.py b/azure-devops/azure/devops/v5_0/gallery/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/gallery/__init__.py rename to azure-devops/azure/devops/v5_0/gallery/__init__.py diff --git a/azure-devops/azure/devops/v4_0/gallery/gallery_client.py b/azure-devops/azure/devops/v5_0/gallery/gallery_client.py similarity index 69% rename from azure-devops/azure/devops/v4_0/gallery/gallery_client.py rename to azure-devops/azure/devops/v5_0/gallery/gallery_client.py index afed0c7b..c03e4f6a 100644 --- a/azure-devops/azure/devops/v4_0/gallery/gallery_client.py +++ b/azure-devops/azure/devops/v5_0/gallery/gallery_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -38,7 +38,7 @@ def share_extension_by_id(self, extension_id, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='POST', location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def unshare_extension_by_id(self, extension_id, account_name): @@ -54,7 +54,7 @@ def unshare_extension_by_id(self, extension_id, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='DELETE', location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def share_extension(self, publisher_name, extension_name, account_name): @@ -73,7 +73,7 @@ def share_extension(self, publisher_name, extension_name, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='POST', location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def unshare_extension(self, publisher_name, extension_name, account_name): @@ -92,7 +92,7 @@ def unshare_extension(self, publisher_name, extension_name, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='DELETE', location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def get_acquisition_options(self, item_id, installation_target, test_commerce=None, is_free_or_trial_install=None): @@ -102,7 +102,7 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No :param str installation_target: :param bool test_commerce: :param bool is_free_or_trial_install: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if item_id is not None: @@ -116,7 +116,7 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No query_parameters['isFreeOrTrialInstall'] = self._serialize.query('is_free_or_trial_install', is_free_or_trial_install, 'bool') response = self._send(http_method='GET', location_id='9d0a0105-075e-4760-aa15-8bcf54d1bd7d', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AcquisitionOptions', response) @@ -124,17 +124,17 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No def request_acquisition(self, acquisition_request): """RequestAcquisition. [Preview API] - :param :class:` ` acquisition_request: - :rtype: :class:` ` + :param :class:` ` acquisition_request: + :rtype: :class:` ` """ content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') response = self._send(http_method='POST', location_id='3adb1f2d-e328-446e-be73-9f6d98071c45', - version='4.0-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('ExtensionAcquisitionRequest', response) - def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None, **kwargs): + def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetAssetByName. [Preview API] :param str publisher_name: @@ -143,6 +143,7 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, :param str asset_type: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -161,7 +162,7 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='7529171f-a002-4180-93ba-685f358a0482', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -171,7 +172,7 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, callback = None return self._client.stream_download(response, callback=callback) - def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None, **kwargs): + def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetAsset. [Preview API] :param str extension_id: @@ -179,6 +180,7 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep :param str asset_type: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -195,7 +197,7 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -205,7 +207,7 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep callback = None return self._client.stream_download(response, callback=callback) - def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None, **kwargs): + def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None, account_token_header=None, **kwargs): """GetAssetAuthenticated. [Preview API] :param str publisher_name: @@ -213,6 +215,7 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset :param str version: :param str asset_type: :param str account_token: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -229,7 +232,7 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') response = self._send(http_method='GET', location_id='506aff36-2622-4f70-8063-77cce6366d20', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -244,7 +247,7 @@ def associate_azure_publisher(self, publisher_name, azure_publisher_id): [Preview API] :param str publisher_name: :param str azure_publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -254,7 +257,7 @@ def associate_azure_publisher(self, publisher_name, azure_publisher_id): query_parameters['azurePublisherId'] = self._serialize.query('azure_publisher_id', azure_publisher_id, 'str') response = self._send(http_method='PUT', location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AzurePublisher', response) @@ -263,14 +266,14 @@ def query_associated_azure_publisher(self, publisher_name): """QueryAssociatedAzurePublisher. [Preview API] :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') response = self._send(http_method='GET', location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('AzurePublisher', response) @@ -285,7 +288,7 @@ def get_categories(self, languages=None): query_parameters['languages'] = self._serialize.query('languages', languages, 'str') response = self._send(http_method='GET', location_id='e0a5a71e-3ac3-43a0-ae7d-0bb5c3046a2a', - version='4.0-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -295,7 +298,7 @@ def get_category_details(self, category_name, languages=None, product=None): :param str category_name: :param str languages: :param str product: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if category_name is not None: @@ -307,7 +310,7 @@ def get_category_details(self, category_name, languages=None, product=None): query_parameters['product'] = self._serialize.query('product', product, 'str') response = self._send(http_method='GET', location_id='75d3c04d-84d2-4973-acd2-22627587dabc', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('CategoriesResult', response) @@ -322,7 +325,7 @@ def get_category_tree(self, product, category_id, lcid=None, source=None, produc :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -342,7 +345,7 @@ def get_category_tree(self, product, category_id, lcid=None, source=None, produc query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') response = self._send(http_method='GET', location_id='1102bb42-82b0-4955-8d8a-435d6b4cedd3', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ProductCategory', response) @@ -356,7 +359,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -374,7 +377,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') response = self._send(http_method='GET', location_id='31fba831-35b2-46f6-a641-d05de5a877d8', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ProductCategoriesResult', response) @@ -396,7 +399,293 @@ def get_certificate(self, publisher_name, extension_name, version=None, **kwargs route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='GET', location_id='e905ad6a-3f1f-4d08-9f6d-7d357ff8b7d0', - version='4.0-preview.1', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_content_verification_log(self, publisher_name, extension_name, **kwargs): + """GetContentVerificationLog. + [Preview API] + :param str publisher_name: + :param str extension_name: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + response = self._send(http_method='GET', + location_id='c0f1c7c4-3557-4ffb-b774-1e48c4865e99', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def create_draft_for_edit_extension(self, publisher_name, extension_name): + """CreateDraftForEditExtension. + [Preview API] + :param str publisher_name: + :param str extension_name: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + response = self._send(http_method='POST', + location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('ExtensionDraft', response) + + def perform_edit_extension_draft_operation(self, draft_patch, publisher_name, extension_name, draft_id): + """PerformEditExtensionDraftOperation. + [Preview API] + :param :class:` ` draft_patch: + :param str publisher_name: + :param str extension_name: + :param str draft_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + content = self._serialize.body(draft_patch, 'ExtensionDraftPatch') + response = self._send(http_method='PATCH', + location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ExtensionDraft', response) + + def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_name, extension_name, draft_id, file_name=None, **kwargs): + """UpdatePayloadInDraftForEditExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str extension_name: + :param str draft_id: + :param String file_name: Header to pass the filename of the uploaded data + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='PUT', + location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', + version='5.0-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraft', response) + + def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, extension_name, draft_id, asset_type, **kwargs): + """AddAssetForEditExtensionDraft. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str extension_name: + :param str draft_id: + :param str asset_type: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='PUT', + location_id='f1db9c47-6619-4998-a7e5-d7f9f41a4617', + version='5.0-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraftAsset', response) + + def create_draft_for_new_extension(self, upload_stream, publisher_name, product, file_name=None, **kwargs): + """CreateDraftForNewExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param String product: Header to pass the product type of the payload file + :param String file_name: Header to pass the filename of the uploaded data + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='POST', + location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', + version='5.0-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraft', response) + + def perform_new_extension_draft_operation(self, draft_patch, publisher_name, draft_id): + """PerformNewExtensionDraftOperation. + [Preview API] + :param :class:` ` draft_patch: + :param str publisher_name: + :param str draft_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + content = self._serialize.body(draft_patch, 'ExtensionDraftPatch') + response = self._send(http_method='PATCH', + location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ExtensionDraft', response) + + def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_name, draft_id, file_name=None, **kwargs): + """UpdatePayloadInDraftForNewExtension. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str draft_id: + :param String file_name: Header to pass the filename of the uploaded data + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='PUT', + location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', + version='5.0-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraft', response) + + def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft_id, asset_type, **kwargs): + """AddAssetForNewExtensionDraft. + [Preview API] + :param object upload_stream: Stream to upload + :param str publisher_name: + :param str draft_id: + :param str asset_type: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='PUT', + location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', + version='5.0-preview.1', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('ExtensionDraftAsset', response) + + def get_asset_from_edit_extension_draft(self, publisher_name, draft_id, asset_type, extension_name, **kwargs): + """GetAssetFromEditExtensionDraft. + [Preview API] + :param str publisher_name: + :param str draft_id: + :param str asset_type: + :param str extension_name: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + query_parameters = {} + if extension_name is not None: + query_parameters['extensionName'] = self._serialize.query('extension_name', extension_name, 'str') + response = self._send(http_method='GET', + location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_asset_from_new_extension_draft(self, publisher_name, draft_id, asset_type, **kwargs): + """GetAssetFromNewExtensionDraft. + [Preview API] + :param str publisher_name: + :param str draft_id: + :param str asset_type: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if draft_id is not None: + route_values['draftId'] = self._serialize.url('draft_id', draft_id, 'str') + if asset_type is not None: + route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') + response = self._send(http_method='GET', + location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -414,7 +703,7 @@ def get_extension_events(self, publisher_name, extension_name, count=None, after :param datetime after_date: Fetch events that occurred on or after this date :param str include: Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events :param str include_property: Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -432,7 +721,7 @@ def get_extension_events(self, publisher_name, extension_name, count=None, after query_parameters['includeProperty'] = self._serialize.query('include_property', include_property, 'str') response = self._send(http_method='GET', location_id='3d13c499-2168-4d06-bef4-14aba185dcd5', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ExtensionEvents', response) @@ -445,15 +734,16 @@ def publish_extension_events(self, extension_events): content = self._serialize.body(extension_events, '[ExtensionEvents]') self._send(http_method='POST', location_id='0bf2bd3a-70e0-4d5d-8bf7-bd4a9c2ab6e7', - version='4.0-preview.1', + version='5.0-preview.1', content=content) - def query_extensions(self, extension_query, account_token=None): + def query_extensions(self, extension_query, account_token=None, account_token_header=None): """QueryExtensions. [Preview API] - :param :class:` ` extension_query: + :param :class:` ` extension_query: :param str account_token: - :rtype: :class:` ` + :param String account_token_header: Header to pass the account token + :rtype: :class:` ` """ query_parameters = {} if account_token is not None: @@ -461,7 +751,7 @@ def query_extensions(self, extension_query, account_token=None): content = self._serialize.body(extension_query, 'ExtensionQuery') response = self._send(http_method='POST', location_id='eb9d5ee1-6d43-456b-b80e-8a96fbc014b6', - version='4.0-preview.1', + version='5.0-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('ExtensionQueryResult', response) @@ -470,7 +760,7 @@ def create_extension(self, upload_stream, **kwargs): """CreateExtension. [Preview API] :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ if "callback" in kwargs: callback = kwargs["callback"] @@ -479,7 +769,7 @@ def create_extension(self, upload_stream, **kwargs): content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.0-preview.2', + version='5.0-preview.2', content=content, media_type='application/octet-stream') return self._deserialize('PublishedExtension', response) @@ -498,7 +788,7 @@ def delete_extension_by_id(self, extension_id, version=None): query_parameters['version'] = self._serialize.query('version', version, 'str') self._send(http_method='DELETE', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) @@ -508,7 +798,7 @@ def get_extension_by_id(self, extension_id, version=None, flags=None): :param str extension_id: :param str version: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -520,7 +810,7 @@ def get_extension_by_id(self, extension_id, version=None, flags=None): query_parameters['flags'] = self._serialize.query('flags', flags, 'str') response = self._send(http_method='GET', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) @@ -529,14 +819,14 @@ def update_extension_by_id(self, extension_id): """UpdateExtensionById. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='PUT', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('PublishedExtension', response) @@ -545,7 +835,7 @@ def create_extension_with_publisher(self, upload_stream, publisher_name, **kwarg [Preview API] :param object upload_stream: Stream to upload :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -557,7 +847,7 @@ def create_extension_with_publisher(self, upload_stream, publisher_name, **kwarg content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, content=content, media_type='application/octet-stream') @@ -580,11 +870,11 @@ def delete_extension(self, publisher_name, extension_name, version=None): query_parameters['version'] = self._serialize.query('version', version, 'str') self._send(http_method='DELETE', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) - def get_extension(self, publisher_name, extension_name, version=None, flags=None, account_token=None): + def get_extension(self, publisher_name, extension_name, version=None, flags=None, account_token=None, account_token_header=None): """GetExtension. [Preview API] :param str publisher_name: @@ -592,7 +882,8 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None :param str version: :param str flags: :param str account_token: - :rtype: :class:` ` + :param String account_token_header: Header to pass the account token + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -608,24 +899,28 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') response = self._send(http_method='GET', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) - def update_extension(self, upload_stream, publisher_name, extension_name, **kwargs): + def update_extension(self, upload_stream, publisher_name, extension_name, bypass_scope_check=None, **kwargs): """UpdateExtension. - [Preview API] + [Preview API] REST endpoint to update an extension. :param object upload_stream: Stream to upload - :param str publisher_name: - :param str extension_name: - :rtype: :class:` ` + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param bool bypass_scope_check: This parameter decides if the scope change check needs to be invoked or not + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') if extension_name is not None: route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if bypass_scope_check is not None: + query_parameters['bypassScopeCheck'] = self._serialize.query('bypass_scope_check', bypass_scope_check, 'bool') if "callback" in kwargs: callback = kwargs["callback"] else: @@ -633,8 +928,9 @@ def update_extension(self, upload_stream, publisher_name, extension_name, **kwar content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, + query_parameters=query_parameters, content=content, media_type='application/octet-stream') return self._deserialize('PublishedExtension', response) @@ -645,7 +941,7 @@ def update_extension_properties(self, publisher_name, extension_name, flags): :param str publisher_name: :param str extension_name: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -657,41 +953,86 @@ def update_extension_properties(self, publisher_name, extension_name, flags): query_parameters['flags'] = self._serialize.query('flags', flags, 'str') response = self._send(http_method='PATCH', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.0-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) + def share_extension_with_host(self, publisher_name, extension_name, host_type, host_name): + """ShareExtensionWithHost. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str host_type: + :param str host_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if host_type is not None: + route_values['hostType'] = self._serialize.url('host_type', host_type, 'str') + if host_name is not None: + route_values['hostName'] = self._serialize.url('host_name', host_name, 'str') + self._send(http_method='POST', + location_id='328a3af8-d124-46e9-9483-01690cd415b9', + version='5.0-preview.1', + route_values=route_values) + + def unshare_extension_with_host(self, publisher_name, extension_name, host_type, host_name): + """UnshareExtensionWithHost. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str host_type: + :param str host_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if host_type is not None: + route_values['hostType'] = self._serialize.url('host_type', host_type, 'str') + if host_name is not None: + route_values['hostName'] = self._serialize.url('host_name', host_name, 'str') + self._send(http_method='DELETE', + location_id='328a3af8-d124-46e9-9483-01690cd415b9', + version='5.0-preview.1', + route_values=route_values) + def extension_validator(self, azure_rest_api_request_model): """ExtensionValidator. [Preview API] - :param :class:` ` azure_rest_api_request_model: + :param :class:` ` azure_rest_api_request_model: """ content = self._serialize.body(azure_rest_api_request_model, 'AzureRestApiRequestModel') self._send(http_method='POST', location_id='05e8a5e1-8c59-4c2c-8856-0ff087d1a844', - version='4.0-preview.1', + version='5.0-preview.1', content=content) def send_notifications(self, notification_data): """SendNotifications. [Preview API] Send Notification - :param :class:` ` notification_data: Denoting the data needed to send notification + :param :class:` ` notification_data: Denoting the data needed to send notification """ content = self._serialize.body(notification_data, 'NotificationsData') self._send(http_method='POST', location_id='eab39817-413c-4602-a49f-07ad00844980', - version='4.0-preview.1', + version='5.0-preview.1', content=content) - def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None, **kwargs): + def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetPackage. - [Preview API] + [Preview API] This endpoint gets hit when you download a VSTS extension from the Web UI :param str publisher_name: :param str extension_name: :param str version: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -708,7 +1049,7 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -718,7 +1059,7 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non callback = None return self._client.stream_download(response, callback=callback) - def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None, **kwargs): + def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetAssetWithToken. [Preview API] :param str publisher_name: @@ -728,6 +1069,7 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty :param str asset_token: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -748,7 +1090,7 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='364415a1-0077-4a41-a7a0-06edd4497492', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -758,29 +1100,101 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty callback = None return self._client.stream_download(response, callback=callback) + def delete_publisher_asset(self, publisher_name, asset_type=None): + """DeletePublisherAsset. + [Preview API] Delete publisher asset like logo + :param str publisher_name: Internal name of the publisher + :param str asset_type: Type of asset. Default value is 'logo'. + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if asset_type is not None: + query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') + self._send(http_method='DELETE', + location_id='21143299-34f9-4c62-8ca8-53da691192f9', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_publisher_asset(self, publisher_name, asset_type=None, **kwargs): + """GetPublisherAsset. + [Preview API] Get publisher asset like logo as a stream + :param str publisher_name: Internal name of the publisher + :param str asset_type: Type of asset. Default value is 'logo'. + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if asset_type is not None: + query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') + response = self._send(http_method='GET', + location_id='21143299-34f9-4c62-8ca8-53da691192f9', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, file_name=None, **kwargs): + """UpdatePublisherAsset. + [Preview API] Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values. + :param object upload_stream: Stream to upload + :param str publisher_name: Internal name of the publisher + :param str asset_type: Type of asset. Default value is 'logo'. + :param String file_name: Header to pass the filename of the uploaded data + :rtype: {str} + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + query_parameters = {} + if asset_type is not None: + query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='PUT', + location_id='21143299-34f9-4c62-8ca8-53da691192f9', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + return self._deserialize('{str}', self._unwrap_collection(response)) + def query_publishers(self, publisher_query): """QueryPublishers. [Preview API] - :param :class:` ` publisher_query: - :rtype: :class:` ` + :param :class:` ` publisher_query: + :rtype: :class:` ` """ content = self._serialize.body(publisher_query, 'PublisherQuery') response = self._send(http_method='POST', location_id='2ad6ee0a-b53f-4034-9d1d-d009fda1212e', - version='4.0-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('PublisherQueryResult', response) def create_publisher(self, publisher): """CreatePublisher. [Preview API] - :param :class:` ` publisher: - :rtype: :class:` ` + :param :class:` ` publisher: + :rtype: :class:` ` """ content = self._serialize.body(publisher, 'Publisher') response = self._send(http_method='POST', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.0-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('Publisher', response) @@ -794,7 +1208,7 @@ def delete_publisher(self, publisher_name): route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') self._send(http_method='DELETE', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def get_publisher(self, publisher_name, flags=None): @@ -802,7 +1216,7 @@ def get_publisher(self, publisher_name, flags=None): [Preview API] :param str publisher_name: :param int flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -812,7 +1226,7 @@ def get_publisher(self, publisher_name, flags=None): query_parameters['flags'] = self._serialize.query('flags', flags, 'int') response = self._send(http_method='GET', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Publisher', response) @@ -820,9 +1234,9 @@ def get_publisher(self, publisher_name, flags=None): def update_publisher(self, publisher, publisher_name): """UpdatePublisher. [Preview API] - :param :class:` ` publisher: + :param :class:` ` publisher: :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -830,7 +1244,7 @@ def update_publisher(self, publisher, publisher_name): content = self._serialize.body(publisher, 'Publisher') response = self._send(http_method='PUT', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Publisher', response) @@ -843,7 +1257,7 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a :param int count: Number of questions to retrieve (defaults to 10). :param int page: Page number from which set of questions are to be retrieved. :param datetime after_date: If provided, results questions are returned which were posted after this date - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -859,7 +1273,7 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='c010d03d-812c-4ade-ae07-c1862475eda5', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QuestionsResult', response) @@ -867,11 +1281,11 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a def report_question(self, concern, pub_name, ext_name, question_id): """ReportQuestion. [Preview API] Flags a concern with an existing question for an extension. - :param :class:` ` concern: User reported concern with a question for the extension. + :param :class:` ` concern: User reported concern with a question for the extension. :param str pub_name: Name of the publisher who published the extension. :param str ext_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -883,7 +1297,7 @@ def report_question(self, concern, pub_name, ext_name, question_id): content = self._serialize.body(concern, 'Concern') response = self._send(http_method='POST', location_id='784910cd-254a-494d-898b-0728549b2f10', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Concern', response) @@ -891,10 +1305,10 @@ def report_question(self, concern, pub_name, ext_name, question_id): def create_question(self, question, publisher_name, extension_name): """CreateQuestion. [Preview API] Creates a new question for an extension. - :param :class:` ` question: Question to be created for the extension. + :param :class:` ` question: Question to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -904,7 +1318,7 @@ def create_question(self, question, publisher_name, extension_name): content = self._serialize.body(question, 'Question') response = self._send(http_method='POST', location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Question', response) @@ -925,17 +1339,17 @@ def delete_question(self, publisher_name, extension_name, question_id): route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') self._send(http_method='DELETE', location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def update_question(self, question, publisher_name, extension_name, question_id): """UpdateQuestion. [Preview API] Updates an existing question for an extension. - :param :class:` ` question: Updated question to be set for the extension. + :param :class:` ` question: Updated question to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -947,7 +1361,7 @@ def update_question(self, question, publisher_name, extension_name, question_id) content = self._serialize.body(question, 'Question') response = self._send(http_method='PATCH', location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Question', response) @@ -955,11 +1369,11 @@ def update_question(self, question, publisher_name, extension_name, question_id) def create_response(self, response, publisher_name, extension_name, question_id): """CreateResponse. [Preview API] Creates a new response for a given question for an extension. - :param :class:` ` response: Response to be created for the extension. + :param :class:` ` response: Response to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be created for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -971,7 +1385,7 @@ def create_response(self, response, publisher_name, extension_name, question_id) content = self._serialize.body(response, 'Response') response = self._send(http_method='POST', location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Response', response) @@ -995,18 +1409,18 @@ def delete_response(self, publisher_name, extension_name, question_id, response_ route_values['responseId'] = self._serialize.url('response_id', response_id, 'long') self._send(http_method='DELETE', location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def update_response(self, response, publisher_name, extension_name, question_id, response_id): """UpdateResponse. [Preview API] Updates an existing response for a given question for an extension. - :param :class:` ` response: Updated response to be set for the extension. + :param :class:` ` response: Updated response to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be updated for the extension. :param long response_id: Identifier of the response which has to be updated. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1020,7 +1434,7 @@ def update_response(self, response, publisher_name, extension_name, question_id, content = self._serialize.body(response, 'Response') response = self._send(http_method='PATCH', location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Response', response) @@ -1049,7 +1463,7 @@ def get_extension_reports(self, publisher_name, extension_name, days=None, count query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='79e0c74f-157f-437e-845f-74fbb4121d4c', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -1063,7 +1477,7 @@ def get_reviews(self, publisher_name, extension_name, count=None, filter_options :param str filter_options: FilterOptions to filter out empty reviews etcetera, defaults to none :param datetime before_date: Use if you want to fetch reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1081,7 +1495,7 @@ def get_reviews(self, publisher_name, extension_name, count=None, filter_options query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='5b3f819f-f247-42ad-8c00-dd9ab9ab246d', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReviewsResult', response) @@ -1093,7 +1507,7 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N :param str ext_name: Name of the extension :param datetime before_date: Use if you want to fetch summary of reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch summary of reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1107,7 +1521,7 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='b7b44e21-209e-48f0-ae78-04727fc37d77', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReviewSummary', response) @@ -1115,10 +1529,10 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N def create_review(self, review, pub_name, ext_name): """CreateReview. [Preview API] Creates a new review for an extension - :param :class:` ` review: Review to be created for the extension + :param :class:` ` review: Review to be created for the extension :param str pub_name: Name of the publisher who published the extension :param str ext_name: Name of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1128,7 +1542,7 @@ def create_review(self, review, pub_name, ext_name): content = self._serialize.body(review, 'Review') response = self._send(http_method='POST', location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Review', response) @@ -1149,17 +1563,17 @@ def delete_review(self, pub_name, ext_name, review_id): route_values['reviewId'] = self._serialize.url('review_id', review_id, 'long') self._send(http_method='DELETE', location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def update_review(self, review_patch, pub_name, ext_name, review_id): """UpdateReview. [Preview API] Updates or Flags a review - :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review + :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review :param str pub_name: Name of the pubilsher who published the extension :param str ext_name: Name of the extension :param long review_id: Id of the review which needs to be updated - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1171,7 +1585,7 @@ def update_review(self, review_patch, pub_name, ext_name, review_id): content = self._serialize.body(review_patch, 'ReviewPatch') response = self._send(http_method='PATCH', location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('ReviewPatch', response) @@ -1179,13 +1593,13 @@ def update_review(self, review_patch, pub_name, ext_name, review_id): def create_category(self, category): """CreateCategory. [Preview API] - :param :class:` ` category: - :rtype: :class:` ` + :param :class:` ` category: + :rtype: :class:` ` """ content = self._serialize.body(category, 'ExtensionCategory') response = self._send(http_method='POST', location_id='476531a3-7024-4516-a76a-ed64d3008ad6', - version='4.0-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('ExtensionCategory', response) @@ -1203,7 +1617,7 @@ def get_gallery_user_settings(self, user_scope, key=None): route_values['key'] = self._serialize.url('key', key, 'str') response = self._send(http_method='GET', location_id='9b75ece3-7960-401c-848b-148ac01ca350', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('{object}', self._unwrap_collection(response)) @@ -1219,7 +1633,7 @@ def set_gallery_user_settings(self, entries, user_scope): content = self._serialize.body(entries, '{object}') self._send(http_method='PATCH', location_id='9b75ece3-7960-401c-848b-148ac01ca350', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) @@ -1237,7 +1651,7 @@ def generate_key(self, key_type, expire_current_seconds=None): query_parameters['expireCurrentSeconds'] = self._serialize.query('expire_current_seconds', expire_current_seconds, 'int') self._send(http_method='POST', location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -1252,14 +1666,14 @@ def get_signing_key(self, key_type): route_values['keyType'] = self._serialize.url('key_type', key_type, 'str') response = self._send(http_method='GET', location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('str', response) def update_extension_statistics(self, extension_statistics_update, publisher_name, extension_name): """UpdateExtensionStatistics. [Preview API] - :param :class:` ` extension_statistics_update: + :param :class:` ` extension_statistics_update: :param str publisher_name: :param str extension_name: """ @@ -1271,7 +1685,7 @@ def update_extension_statistics(self, extension_statistics_update, publisher_nam content = self._serialize.body(extension_statistics_update, 'ExtensionStatisticUpdate') self._send(http_method='PATCH', location_id='a0ea3204-11e9-422d-a9ca-45851cc41400', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) @@ -1283,7 +1697,7 @@ def get_extension_daily_stats(self, publisher_name, extension_name, days=None, a :param int days: :param str aggregate: :param datetime after_date: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1299,7 +1713,7 @@ def get_extension_daily_stats(self, publisher_name, extension_name, days=None, a query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='ae06047e-51c5-4fb4-ab65-7be488544416', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ExtensionDailyStats', response) @@ -1310,7 +1724,7 @@ def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, ve :param str publisher_name: Name of the publisher :param str extension_name: Name of the extension :param str version: Version of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1321,7 +1735,7 @@ def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, ve route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='GET', location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ExtensionDailyStats', response) @@ -1345,7 +1759,7 @@ def increment_extension_daily_stat(self, publisher_name, extension_name, version query_parameters['statType'] = self._serialize.query('stat_type', stat_type, 'str') self._send(http_method='POST', location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -1366,7 +1780,7 @@ def get_verification_log(self, publisher_name, extension_name, version, **kwargs route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='GET', location_id='c5523abe-b843-437f-875b-5833064efe4d', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: diff --git a/azure-devops/azure/devops/v4_0/gallery/models.py b/azure-devops/azure/devops/v5_0/gallery/models.py similarity index 79% rename from azure-devops/azure/devops/v4_0/gallery/models.py rename to azure-devops/azure/devops/v5_0/gallery/models.py index e6a74063..16c1b8f9 100644 --- a/azure-devops/azure/devops/v4_0/gallery/models.py +++ b/azure-devops/azure/devops/v5_0/gallery/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -37,11 +37,11 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param target: The target that this options refer to :type target: str """ @@ -85,7 +85,7 @@ class AssetDetails(Model): """AssetDetails. :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` + :type answers: :class:`Answers ` :param publisher_natural_identifier: Gets or sets the VS publisher Id :type publisher_natural_identifier: str """ @@ -125,7 +125,7 @@ class AzureRestApiRequestModel(Model): """AzureRestApiRequestModel. :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` + :type asset_details: :class:`AssetDetails ` :param asset_id: Gets or sets the asset id :type asset_id: str :param asset_version: Gets or sets the asset version @@ -173,7 +173,7 @@ class CategoriesResult(Model): """CategoriesResult. :param categories: - :type categories: list of :class:`ExtensionCategory ` + :type categories: list of :class:`ExtensionCategory ` """ _attribute_map = { @@ -269,7 +269,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id @@ -333,7 +333,7 @@ class ExtensionCategory(Model): :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles :type language: str :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` + :type language_titles: list of :class:`CategoryLanguageTitle ` :param parent_category_name: This is the internal name of the parent if this is associated with a parent :type parent_category_name: str """ @@ -361,7 +361,7 @@ class ExtensionDailyStat(Model): """ExtensionDailyStat. :param counts: Stores the event counts - :type counts: :class:`EventCounts ` + :type counts: :class:`EventCounts ` :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. :type extended_stats: dict :param statistic_date: Timestamp of this data point @@ -389,7 +389,7 @@ class ExtensionDailyStats(Model): """ExtensionDailyStats. :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` + :type daily_stats: list of :class:`ExtensionDailyStat ` :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. :type extension_id: str :param extension_name: Name of the extension @@ -417,13 +417,89 @@ def __init__(self, daily_stats=None, extension_id=None, extension_name=None, pub self.stat_count = stat_count +class ExtensionDraft(Model): + """ExtensionDraft. + + :param assets: + :type assets: list of :class:`ExtensionDraftAsset ` + :param created_date: + :type created_date: datetime + :param draft_state: + :type draft_state: object + :param extension_name: + :type extension_name: str + :param id: + :type id: str + :param last_updated: + :type last_updated: datetime + :param payload: + :type payload: :class:`ExtensionPayload ` + :param product: + :type product: str + :param publisher_name: + :type publisher_name: str + :param validation_errors: + :type validation_errors: list of { key: str; value: str } + :param validation_warnings: + :type validation_warnings: list of { key: str; value: str } + """ + + _attribute_map = { + 'assets': {'key': 'assets', 'type': '[ExtensionDraftAsset]'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'draft_state': {'key': 'draftState', 'type': 'object'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'payload': {'key': 'payload', 'type': 'ExtensionPayload'}, + 'product': {'key': 'product', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[{ key: str; value: str }]'}, + 'validation_warnings': {'key': 'validationWarnings', 'type': '[{ key: str; value: str }]'} + } + + def __init__(self, assets=None, created_date=None, draft_state=None, extension_name=None, id=None, last_updated=None, payload=None, product=None, publisher_name=None, validation_errors=None, validation_warnings=None): + super(ExtensionDraft, self).__init__() + self.assets = assets + self.created_date = created_date + self.draft_state = draft_state + self.extension_name = extension_name + self.id = id + self.last_updated = last_updated + self.payload = payload + self.product = product + self.publisher_name = publisher_name + self.validation_errors = validation_errors + self.validation_warnings = validation_warnings + + +class ExtensionDraftPatch(Model): + """ExtensionDraftPatch. + + :param extension_data: + :type extension_data: :class:`UnpackagedExtensionData ` + :param operation: + :type operation: object + """ + + _attribute_map = { + 'extension_data': {'key': 'extensionData', 'type': 'UnpackagedExtensionData'}, + 'operation': {'key': 'operation', 'type': 'object'} + } + + def __init__(self, extension_data=None, operation=None): + super(ExtensionDraftPatch, self).__init__() + self.extension_data = extension_data + self.operation = operation + + class ExtensionEvent(Model): """ExtensionEvent. :param id: Id which identifies each data point uniquely :type id: long :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param statistic_date: Timestamp of when the event occurred :type statistic_date: datetime :param version: Version of the extension @@ -501,11 +577,11 @@ class ExtensionFilterResult(Model): """ExtensionFilterResult. :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. :type paging_token: str :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` """ _attribute_map = { @@ -525,7 +601,7 @@ class ExtensionFilterResultMetadata(Model): """ExtensionFilterResultMetadata. :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` + :type metadata_items: list of :class:`MetadataItem ` :param metadata_type: Defines the category of metadata items :type metadata_type: str """ @@ -557,13 +633,61 @@ def __init__(self, extension_manifest=None): self.extension_manifest = extension_manifest +class ExtensionPayload(Model): + """ExtensionPayload. + + :param description: + :type description: str + :param display_name: + :type display_name: str + :param file_name: + :type file_name: str + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param is_preview: + :type is_preview: bool + :param is_signed_by_microsoft: + :type is_signed_by_microsoft: bool + :param is_valid: + :type is_valid: bool + :param metadata: + :type metadata: list of { key: str; value: str } + :param type: + :type type: object + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'is_preview': {'key': 'isPreview', 'type': 'bool'}, + 'is_signed_by_microsoft': {'key': 'isSignedByMicrosoft', 'type': 'bool'}, + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'metadata': {'key': 'metadata', 'type': '[{ key: str; value: str }]'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, description=None, display_name=None, file_name=None, installation_targets=None, is_preview=None, is_signed_by_microsoft=None, is_valid=None, metadata=None, type=None): + super(ExtensionPayload, self).__init__() + self.description = description + self.display_name = display_name + self.file_name = file_name + self.installation_targets = installation_targets + self.is_preview = is_preview + self.is_signed_by_microsoft = is_signed_by_microsoft + self.is_valid = is_valid + self.metadata = metadata + self.type = type + + class ExtensionQuery(Model): """ExtensionQuery. :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. :type asset_types: list of str :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. :type flags: object """ @@ -585,7 +709,7 @@ class ExtensionQueryResult(Model): """ExtensionQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` + :type results: list of :class:`ExtensionFilterResult ` """ _attribute_map = { @@ -602,6 +726,8 @@ class ExtensionShare(Model): :param id: :type id: str + :param is_org: + :type is_org: bool :param name: :type name: str :param type: @@ -610,13 +736,15 @@ class ExtensionShare(Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'is_org': {'key': 'isOrg', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, id=None, name=None, type=None): + def __init__(self, id=None, is_org=None, name=None, type=None): super(ExtensionShare, self).__init__() self.id = id + self.is_org = is_org self.name = name self.type = type @@ -651,7 +779,7 @@ class ExtensionStatisticUpdate(Model): :param publisher_name: :type publisher_name: str :param statistic: - :type statistic: :class:`ExtensionStatistic ` + :type statistic: :class:`ExtensionStatistic ` """ _attribute_map = { @@ -675,11 +803,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -809,7 +937,7 @@ class ProductCategoriesResult(Model): """ProductCategoriesResult. :param categories: - :type categories: list of :class:`ProductCategory ` + :type categories: list of :class:`ProductCategory ` """ _attribute_map = { @@ -825,7 +953,7 @@ class ProductCategory(Model): """ProductCategory. :param children: - :type children: list of :class:`ProductCategory ` + :type children: list of :class:`ProductCategory ` :param has_children: Indicator whether this is a leaf or there are children under this category :type has_children: bool :param id: Individual Guid of the Category @@ -865,7 +993,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -873,19 +1001,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -929,15 +1057,15 @@ def __init__(self, categories=None, deployment_type=None, display_name=None, ext self.versions = versions -class Publisher(Model): - """Publisher. +class PublisherBase(Model): + """PublisherBase. :param display_name: :type display_name: str :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -950,6 +1078,8 @@ class Publisher(Model): :type publisher_name: str :param short_description: :type short_description: str + :param state: + :type state: object """ _attribute_map = { @@ -961,11 +1091,12 @@ class Publisher(Model): 'long_description': {'key': 'longDescription', 'type': 'str'}, 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'} + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'object'} } - def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): - super(Publisher, self).__init__() + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, state=None): + super(PublisherBase, self).__init__() self.display_name = display_name self.email_address = email_address self.extensions = extensions @@ -975,6 +1106,7 @@ def __init__(self, display_name=None, email_address=None, extensions=None, flags self.publisher_id = publisher_id self.publisher_name = publisher_name self.short_description = short_description + self.state = state class PublisherFacts(Model): @@ -1009,7 +1141,7 @@ class PublisherFilterResult(Model): """PublisherFilterResult. :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` + :type publishers: list of :class:`Publisher ` """ _attribute_map = { @@ -1025,7 +1157,7 @@ class PublisherQuery(Model): """PublisherQuery. :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. :type flags: object """ @@ -1045,7 +1177,7 @@ class PublisherQueryResult(Model): """PublisherQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` + :type results: list of :class:`PublisherFilterResult ` """ _attribute_map = { @@ -1071,7 +1203,7 @@ class QnAItem(Model): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1097,7 +1229,7 @@ class QueryFilter(Model): """QueryFilter. :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` + :type criteria: list of :class:`FilterCriteria ` :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. :type direction: object :param page_number: The page number requested by the user. If not provided 1 is assumed by default. @@ -1147,9 +1279,9 @@ class Question(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` + :type responses: list of :class:`Response ` """ _attribute_map = { @@ -1173,7 +1305,7 @@ class QuestionsResult(Model): :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) :type has_more_questions: bool :param questions: List of the QnA threads - :type questions: list of :class:`Question ` + :type questions: list of :class:`Question ` """ _attribute_map = { @@ -1207,6 +1339,22 @@ def __init__(self, rating=None, rating_count=None): self.rating_count = rating_count +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + class Response(QnAItem): """Response. @@ -1221,7 +1369,7 @@ class Response(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1241,7 +1389,7 @@ class Review(Model): """Review. :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` + :type admin_reply: :class:`ReviewReply ` :param id: Unique identifier of a review item :type id: long :param is_deleted: Flag for soft deletion @@ -1253,7 +1401,7 @@ class Review(Model): :param rating: Rating procided by the user :type rating: str :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` + :type reply: :class:`ReviewReply ` :param text: Text description of the review :type text: str :param title: Title of the review @@ -1303,9 +1451,9 @@ class ReviewPatch(Model): :param operation: Denotes the patch operation type :type operation: object :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` + :type reported_concern: :class:`UserReportedConcern ` :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` + :type review_item: :class:`Review ` """ _attribute_map = { @@ -1371,7 +1519,7 @@ class ReviewsResult(Model): :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) :type has_more_reviews: bool :param reviews: List of reviews - :type reviews: list of :class:`Review ` + :type reviews: list of :class:`Review ` :param total_review_count: Count of total review items :type total_review_count: long """ @@ -1397,7 +1545,7 @@ class ReviewSummary(Model): :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` + :type rating_split: list of :class:`RatingCountPerRating ` """ _attribute_map = { @@ -1413,6 +1561,86 @@ def __init__(self, average_rating=None, rating_count=None, rating_split=None): self.rating_split = rating_split +class UnpackagedExtensionData(Model): + """UnpackagedExtensionData. + + :param categories: + :type categories: list of str + :param description: + :type description: str + :param display_name: + :type display_name: str + :param draft_id: + :type draft_id: str + :param extension_name: + :type extension_name: str + :param installation_targets: + :type installation_targets: list of :class:`InstallationTarget ` + :param is_converted_to_markdown: + :type is_converted_to_markdown: bool + :param is_preview: + :type is_preview: bool + :param pricing_category: + :type pricing_category: str + :param product: + :type product: str + :param publisher_name: + :type publisher_name: str + :param qn_aEnabled: + :type qn_aEnabled: bool + :param referral_url: + :type referral_url: str + :param repository_url: + :type repository_url: str + :param tags: + :type tags: list of str + :param version: + :type version: str + :param vsix_id: + :type vsix_id: str + """ + + _attribute_map = { + 'categories': {'key': 'categories', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'draft_id': {'key': 'draftId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'is_converted_to_markdown': {'key': 'isConvertedToMarkdown', 'type': 'bool'}, + 'is_preview': {'key': 'isPreview', 'type': 'bool'}, + 'pricing_category': {'key': 'pricingCategory', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'qn_aEnabled': {'key': 'qnAEnabled', 'type': 'bool'}, + 'referral_url': {'key': 'referralUrl', 'type': 'str'}, + 'repository_url': {'key': 'repositoryUrl', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'version': {'key': 'version', 'type': 'str'}, + 'vsix_id': {'key': 'vsixId', 'type': 'str'} + } + + def __init__(self, categories=None, description=None, display_name=None, draft_id=None, extension_name=None, installation_targets=None, is_converted_to_markdown=None, is_preview=None, pricing_category=None, product=None, publisher_name=None, qn_aEnabled=None, referral_url=None, repository_url=None, tags=None, version=None, vsix_id=None): + super(UnpackagedExtensionData, self).__init__() + self.categories = categories + self.description = description + self.display_name = display_name + self.draft_id = draft_id + self.extension_name = extension_name + self.installation_targets = installation_targets + self.is_converted_to_markdown = is_converted_to_markdown + self.is_preview = is_preview + self.pricing_category = pricing_category + self.product = product + self.publisher_name = publisher_name + self.qn_aEnabled = qn_aEnabled + self.referral_url = referral_url + self.repository_url = repository_url + self.tags = tags + self.version = version + self.vsix_id = vsix_id + + class UserIdentityRef(Model): """UserIdentityRef. @@ -1479,7 +1707,7 @@ class Concern(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param category: Category of the concern :type category: object """ @@ -1499,6 +1727,73 @@ def __init__(self, created_date=None, id=None, status=None, text=None, updated_d self.category = category +class ExtensionDraftAsset(ExtensionFile): + """ExtensionDraftAsset. + + :param asset_type: + :type asset_type: str + :param language: + :type language: str + :param source: + :type source: str + """ + + _attribute_map = { + 'asset_type': {'key': 'assetType', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + } + + def __init__(self, asset_type=None, language=None, source=None): + super(ExtensionDraftAsset, self).__init__(asset_type=asset_type, language=language, source=source) + + +class Publisher(PublisherBase): + """Publisher. + + :param display_name: + :type display_name: str + :param email_address: + :type email_address: list of str + :param extensions: + :type extensions: list of :class:`PublishedExtension ` + :param flags: + :type flags: object + :param last_updated: + :type last_updated: datetime + :param long_description: + :type long_description: str + :param publisher_id: + :type publisher_id: str + :param publisher_name: + :type publisher_name: str + :param short_description: + :type short_description: str + :param state: + :type state: object + :param _links: + :type _links: :class:`ReferenceLinks ` + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': '[str]'}, + 'extensions': {'key': 'extensions', 'type': '[PublishedExtension]'}, + 'flags': {'key': 'flags', 'type': 'object'}, + 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'long_description': {'key': 'longDescription', 'type': 'str'}, + 'publisher_id': {'key': 'publisherId', 'type': 'str'}, + 'publisher_name': {'key': 'publisherName', 'type': 'str'}, + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'object'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} + } + + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, state=None, _links=None): + super(Publisher, self).__init__(display_name=display_name, email_address=email_address, extensions=extensions, flags=flags, last_updated=last_updated, long_description=long_description, publisher_id=publisher_id, publisher_name=publisher_name, short_description=short_description, state=state) + self._links = _links + + __all__ = [ 'AcquisitionOperation', 'AcquisitionOptions', @@ -1514,12 +1809,15 @@ def __init__(self, created_date=None, id=None, status=None, text=None, updated_d 'ExtensionCategory', 'ExtensionDailyStat', 'ExtensionDailyStats', + 'ExtensionDraft', + 'ExtensionDraftPatch', 'ExtensionEvent', 'ExtensionEvents', 'ExtensionFile', 'ExtensionFilterResult', 'ExtensionFilterResultMetadata', 'ExtensionPackage', + 'ExtensionPayload', 'ExtensionQuery', 'ExtensionQueryResult', 'ExtensionShare', @@ -1533,7 +1831,7 @@ def __init__(self, created_date=None, id=None, status=None, text=None, updated_d 'ProductCategoriesResult', 'ProductCategory', 'PublishedExtension', - 'Publisher', + 'PublisherBase', 'PublisherFacts', 'PublisherFilterResult', 'PublisherQuery', @@ -1543,13 +1841,17 @@ def __init__(self, created_date=None, id=None, status=None, text=None, updated_d 'Question', 'QuestionsResult', 'RatingCountPerRating', + 'ReferenceLinks', 'Response', 'Review', 'ReviewPatch', 'ReviewReply', 'ReviewsResult', 'ReviewSummary', + 'UnpackagedExtensionData', 'UserIdentityRef', 'UserReportedConcern', 'Concern', + 'ExtensionDraftAsset', + 'Publisher', ] diff --git a/azure-devops/azure/devops/v4_1/git/__init__.py b/azure-devops/azure/devops/v5_0/git/__init__.py similarity index 91% rename from azure-devops/azure/devops/v4_1/git/__init__.py rename to azure-devops/azure/devops/v5_0/git/__init__.py index c5377d92..4190acf2 100644 --- a/azure-devops/azure/devops/v4_1/git/__init__.py +++ b/azure-devops/azure/devops/v5_0/git/__init__.py @@ -18,6 +18,9 @@ 'CommentThreadContext', 'CommentTrackingCriteria', 'FileContentMetadata', + 'FileDiff', + 'FileDiffParams', + 'FileDiffsCriteria', 'GitAnnotatedTag', 'GitAsyncRefOperation', 'GitAsyncRefOperationDetail', @@ -47,7 +50,10 @@ 'GitItem', 'GitItemDescriptor', 'GitItemRequestData', + 'GitMerge', + 'GitMergeOperationStatusDetail', 'GitMergeOriginRef', + 'GitMergeParameters', 'GitObject', 'GitPullRequest', 'GitPullRequestChange', @@ -96,12 +102,17 @@ 'ItemContent', 'ItemModel', 'JsonPatchOperation', + 'LineDiffBlock', + 'PolicyConfiguration', + 'PolicyConfigurationRef', + 'PolicyTypeRef', 'ReferenceLinks', 'ResourceRef', 'ShareNotificationContext', 'SourceToTargetRef', 'TeamProjectCollectionReference', 'TeamProjectReference', + 'VersionedPolicyConfigurationRef', 'VstsInfo', 'WebApiCreateTagRequestData', 'WebApiTagDefinition', diff --git a/azure-devops/azure/devops/v4_1/git/git_client_base.py b/azure-devops/azure/devops/v5_0/git/git_client_base.py similarity index 90% rename from azure-devops/azure/devops/v4_1/git/git_client_base.py rename to azure-devops/azure/devops/v5_0/git/git_client_base.py index 3b6b27b3..f73c686b 100644 --- a/azure-devops/azure/devops/v4_1/git/git_client_base.py +++ b/azure-devops/azure/devops/v5_0/git/git_client_base.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def create_annotated_tag(self, tag_object, project, repository_id): """CreateAnnotatedTag. [Preview API] Create an annotated tag. - :param :class:` ` tag_object: Object containing details of tag to be created. + :param :class:` ` tag_object: Object containing details of tag to be created. :param str project: Project ID or project name :param str repository_id: ID or name of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -41,7 +41,7 @@ def create_annotated_tag(self, tag_object, project, repository_id): content = self._serialize.body(tag_object, 'GitAnnotatedTag') response = self._send(http_method='POST', location_id='5e8a8081-3851-4626-b677-9891cc04102e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitAnnotatedTag', response) @@ -52,7 +52,7 @@ def get_annotated_tag(self, project, repository_id, object_id): :param str project: Project ID or project name :param str repository_id: ID or name of the repository. :param str object_id: ObjectId (Sha1Id) of tag to get. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -63,11 +63,11 @@ def get_annotated_tag(self, project, repository_id, object_id): route_values['objectId'] = self._serialize.url('object_id', object_id, 'str') response = self._send(http_method='GET', location_id='5e8a8081-3851-4626-b677-9891cc04102e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('GitAnnotatedTag', response) - def get_blob(self, repository_id, sha1, project=None, download=None, file_name=None): + def get_blob(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None): """GetBlob. Get a single blob. :param str repository_id: The name or ID of the repository. @@ -75,7 +75,8 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N :param str project: Project ID or project name :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip :param str file_name: Provide a fileName to use for a download. - :rtype: :class:` ` + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -89,14 +90,16 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N query_parameters['download'] = self._serialize.query('download', download, 'bool') if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitBlobRef', response) - def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): + def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None, **kwargs): """GetBlobContent. Get a single blob. :param str repository_id: The name or ID of the repository. @@ -104,6 +107,7 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil :param str project: Project ID or project name :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types :rtype: object """ route_values = {} @@ -118,9 +122,11 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil query_parameters['download'] = self._serialize.query('download', download, 'bool') if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -150,7 +156,7 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, ** content = self._serialize.body(blob_ids, '[str]') response = self._send(http_method='POST', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content, @@ -161,7 +167,7 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, ** callback = None return self._client.stream_download(response, callback=callback) - def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): + def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None, **kwargs): """GetBlobZip. Get a single blob. :param str repository_id: The name or ID of the repository. @@ -169,6 +175,7 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na :param str project: Project ID or project name :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types :rtype: object """ route_values = {} @@ -183,9 +190,11 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na query_parameters['download'] = self._serialize.query('download', download, 'bool') if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -201,8 +210,8 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= :param str repository_id: The name or ID of the repository. :param str name: Name of the branch. :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -221,7 +230,7 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitBranchStats', response) @@ -231,7 +240,7 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None Retrieve statistics about all branches within a repository. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. :rtype: [GitBranchStats] """ route_values = {} @@ -249,7 +258,7 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitBranchStats]', self._unwrap_collection(response)) @@ -262,7 +271,7 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non :param str project: Project ID or project name :param int top: The maximum number of changes to return. :param int skip: The number of changes to skip. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -278,7 +287,7 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non query_parameters['skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='5bf884f5-3e07-42e9-afb8-1b872267bf16', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommitChanges', response) @@ -286,10 +295,10 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non def create_cherry_pick(self, cherry_pick_to_create, project, repository_id): """CreateCherryPick. [Preview API] Cherry pick a specific commit or commits that are associated to a pull request into a new branch. - :param :class:` ` cherry_pick_to_create: + :param :class:` ` cherry_pick_to_create: :param str project: Project ID or project name :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -299,7 +308,7 @@ def create_cherry_pick(self, cherry_pick_to_create, project, repository_id): content = self._serialize.body(cherry_pick_to_create, 'GitAsyncRefOperationParameters') response = self._send(http_method='POST', location_id='033bad68-9a14-43d1-90e0-59cb8856fef6', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitCherryPick', response) @@ -310,7 +319,7 @@ def get_cherry_pick(self, project, cherry_pick_id, repository_id): :param str project: Project ID or project name :param int cherry_pick_id: ID of the cherry pick. :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -321,7 +330,7 @@ def get_cherry_pick(self, project, cherry_pick_id, repository_id): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') response = self._send(http_method='GET', location_id='033bad68-9a14-43d1-90e0-59cb8856fef6', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('GitCherryPick', response) @@ -331,7 +340,7 @@ def get_cherry_pick_for_ref_name(self, project, repository_id, ref_name): :param str project: Project ID or project name :param str repository_id: ID of the repository. :param str ref_name: The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -343,22 +352,22 @@ def get_cherry_pick_for_ref_name(self, project, repository_id, ref_name): query_parameters['refName'] = self._serialize.query('ref_name', ref_name, 'str') response = self._send(http_method='GET', location_id='033bad68-9a14-43d1-90e0-59cb8856fef6', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCherryPick', response) def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, top=None, skip=None, base_version_descriptor=None, target_version_descriptor=None): """GetCommitDiffs. - Get a list of differences between two commits. + Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param bool diff_common_commit: + :param bool diff_common_commit: If true, diff between common and target commits. If false, diff between base and target commits. :param int top: Maximum number of changes to return. Defaults to 100. :param int skip: Number of changes to skip - :param :class:` ` base_version_descriptor: Base item version. Compared against target item version to find changes in between. - :param :class:` ` target_version_descriptor: Target item version to use for finding the diffs. Compared against base item version to find changes in between. - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: Descriptor for base commit. + :param :class:` ` target_version_descriptor: Descriptor for target commit. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -388,7 +397,7 @@ def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, query_parameters['targetVersionOptions'] = target_version_descriptor.target_version_options response = self._send(http_method='GET', location_id='615588d5-c0c7-4b88-88f8-e625306446e8', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommitDiffs', response) @@ -400,7 +409,7 @@ def get_commit(self, commit_id, repository_id, project=None, change_count=None): :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name :param int change_count: The number of changes to include in the result. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -414,7 +423,7 @@ def get_commit(self, commit_id, repository_id, project=None, change_count=None): query_parameters['changeCount'] = self._serialize.query('change_count', change_count, 'int') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommit', response) @@ -423,7 +432,7 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t """GetCommits. Retrieve git commits for a project :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :param str project: Project ID or project name :param int skip: :param int top: @@ -476,6 +485,10 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links if search_criteria.include_work_items is not None: query_parameters['searchCriteria.includeWorkItems'] = search_criteria.include_work_items + if search_criteria.include_user_image_url is not None: + query_parameters['searchCriteria.includeUserImageUrl'] = search_criteria.include_user_image_url + if search_criteria.include_push_data is not None: + query_parameters['searchCriteria.includePushData'] = search_criteria.include_push_data if search_criteria.history_mode is not None: query_parameters['searchCriteria.historyMode'] = search_criteria.history_mode if skip is not None: @@ -484,7 +497,7 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) @@ -497,7 +510,7 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= :param str project: Project ID or project name :param int top: The maximum number of commits to return ("get the top x commits"). :param int skip: The number of commits to skip. - :param bool include_links: + :param bool include_links: Set to false to avoid including REST Url links for resources. Defaults to true. :rtype: [GitCommitRef] """ route_values = {} @@ -516,7 +529,7 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) @@ -524,7 +537,7 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): """GetCommitsBatch. Retrieve git commits for a project matching the search criteria - :param :class:` ` search_criteria: Search options + :param :class:` ` search_criteria: Search options :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param int skip: Number of commits to skip. @@ -547,7 +560,7 @@ def get_commits_batch(self, search_criteria, repository_id, project=None, skip=N content = self._serialize.body(search_criteria, 'GitQueryCommitsCriteria') response = self._send(http_method='POST', location_id='6400dfb2-0bcb-462b-b992-5a57f8f1416c', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -564,7 +577,7 @@ def get_deleted_repositories(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='2b6869c4-cb25-42b5-b7a3-0d3e6be0a11a', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[GitDeletedRepository]', self._unwrap_collection(response)) @@ -589,7 +602,7 @@ def get_forks(self, repository_name_or_id, collection_id, project=None, include_ query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='158c0340-bf6f-489c-9625-d572a1480d57', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRepositoryRef]', self._unwrap_collection(response)) @@ -597,11 +610,11 @@ def get_forks(self, repository_name_or_id, collection_id, project=None, include_ def create_fork_sync_request(self, sync_params, repository_name_or_id, project=None, include_links=None): """CreateForkSyncRequest. [Preview API] Request that another repository's refs be fetched into this one. - :param :class:` ` sync_params: Source repository and ref mapping. + :param :class:` ` sync_params: Source repository and ref mapping. :param str repository_name_or_id: The name or ID of the repository. :param str project: Project ID or project name :param bool include_links: True to include links - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -614,7 +627,7 @@ def create_fork_sync_request(self, sync_params, repository_name_or_id, project=N content = self._serialize.body(sync_params, 'GitForkSyncRequestParameters') response = self._send(http_method='POST', location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -627,7 +640,7 @@ def get_fork_sync_request(self, repository_name_or_id, fork_sync_operation_id, p :param int fork_sync_operation_id: OperationId of the sync request. :param str project: Project ID or project name :param bool include_links: True to include links. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -641,7 +654,7 @@ def get_fork_sync_request(self, repository_name_or_id, fork_sync_operation_id, p query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitForkSyncRequest', response) @@ -667,7 +680,7 @@ def get_fork_sync_requests(self, repository_name_or_id, project=None, include_ab query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitForkSyncRequest]', self._unwrap_collection(response)) @@ -675,10 +688,10 @@ def get_fork_sync_requests(self, repository_name_or_id, project=None, include_ab def create_import_request(self, import_request, project, repository_id): """CreateImportRequest. [Preview API] Create an import request. - :param :class:` ` import_request: The import request to create. + :param :class:` ` import_request: The import request to create. :param str project: Project ID or project name :param str repository_id: The name or ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -688,7 +701,7 @@ def create_import_request(self, import_request, project, repository_id): content = self._serialize.body(import_request, 'GitImportRequest') response = self._send(http_method='POST', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitImportRequest', response) @@ -699,7 +712,7 @@ def get_import_request(self, project, repository_id, import_request_id): :param str project: Project ID or project name :param str repository_id: The name or ID of the repository. :param int import_request_id: The unique identifier for the import request. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -710,7 +723,7 @@ def get_import_request(self, project, repository_id, import_request_id): route_values['importRequestId'] = self._serialize.url('import_request_id', import_request_id, 'int') response = self._send(http_method='GET', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('GitImportRequest', response) @@ -732,7 +745,7 @@ def query_import_requests(self, project, repository_id, include_abandoned=None): query_parameters['includeAbandoned'] = self._serialize.query('include_abandoned', include_abandoned, 'bool') response = self._send(http_method='GET', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitImportRequest]', self._unwrap_collection(response)) @@ -740,11 +753,11 @@ def query_import_requests(self, project, repository_id, include_abandoned=None): def update_import_request(self, import_request_to_update, project, repository_id, import_request_id): """UpdateImportRequest. [Preview API] Retry or abandon a failed import request. - :param :class:` ` import_request_to_update: The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned. + :param :class:` ` import_request_to_update: The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned. :param str project: Project ID or project name :param str repository_id: The name or ID of the repository. :param int import_request_id: The unique identifier for the import request to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -756,15 +769,15 @@ def update_import_request(self, import_request_to_update, project, repository_id content = self._serialize.body(import_request_to_update, 'GitImportRequest') response = self._send(http_method='PATCH', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitImportRequest', response) - def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None): + def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None): """GetItem. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. - :param str repository_id: The Id of the repository. + :param str repository_id: The name or ID of the repository. :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. @@ -772,9 +785,10 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. - :rtype: :class:` ` + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -803,17 +817,19 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitItem', response) - def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, **kwargs): + def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): """GetItemContent. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. - :param str repository_id: The Id of the repository. + :param str repository_id: The name or ID of the repository. :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. @@ -821,8 +837,9 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. :rtype: object """ route_values = {} @@ -852,9 +869,11 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -867,7 +886,7 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r def get_items(self, repository_id, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, include_links=None, version_descriptor=None): """GetItems. Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str repository_id: The Id of the repository. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. @@ -875,7 +894,7 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. :param bool include_links: Set to true to include links to items. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :rtype: [GitItem] """ route_values = {} @@ -905,15 +924,15 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitItem]', self._unwrap_collection(response)) - def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, **kwargs): + def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): """GetItemText. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. - :param str repository_id: The Id of the repository. + :param str repository_id: The name or ID of the repository. :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. @@ -921,8 +940,9 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. :rtype: object """ route_values = {} @@ -952,9 +972,11 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -964,10 +986,10 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu callback = None return self._client.stream_download(response, callback=callback) - def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, **kwargs): + def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): """GetItemZip. Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. - :param str repository_id: The Id of the repository. + :param str repository_id: The name or ID of the repository. :param str path: The item path. :param str project: Project ID or project name :param str scope_path: The path scope. The default is null. @@ -975,8 +997,9 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur :param bool include_content_metadata: Set to true to include content metadata. Default is false. :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. :param bool download: Set to true to download the response as a file. Default is false. - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. :rtype: object """ route_values = {} @@ -1006,9 +1029,11 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options if include_content is not None: query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -1021,7 +1046,7 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur def get_items_batch(self, request_data, repository_id, project=None): """GetItemsBatch. Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path - :param :class:` ` request_data: Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references. + :param :class:` ` request_data: Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references. :param str repository_id: The name or ID of the repository :param str project: Project ID or project name :rtype: [[GitItem]] @@ -1034,7 +1059,7 @@ def get_items_batch(self, request_data, repository_id, project=None): content = self._serialize.body(request_data, 'GitItemRequestData') response = self._send(http_method='POST', location_id='630fd2e4-fb88-4f85-ad21-13f3fd1fbca9', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[[GitItem]]', self._unwrap_collection(response)) @@ -1066,7 +1091,7 @@ def get_merge_bases(self, repository_name_or_id, commit_id, other_commit_id, pro query_parameters['otherRepositoryId'] = self._serialize.query('other_repository_id', other_repository_id, 'str') response = self._send(http_method='GET', location_id='7cf2abb6-c964-4f7e-9872-f78c66e72e9c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) @@ -1079,7 +1104,7 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1097,7 +1122,7 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -1122,7 +1147,7 @@ def delete_attachment(self, file_name, repository_id, pull_request_id, project=N route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') self._send(http_method='DELETE', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_attachment_content(self, file_name, repository_id, pull_request_id, project=None, **kwargs): @@ -1145,7 +1170,7 @@ def get_attachment_content(self, file_name, repository_id, pull_request_id, proj route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -1171,7 +1196,7 @@ def get_attachments(self, repository_id, pull_request_id, project=None): route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[Attachment]', self._unwrap_collection(response)) @@ -1195,7 +1220,7 @@ def get_attachment_zip(self, file_name, repository_id, pull_request_id, project= route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/zip') if "callback" in kwargs: @@ -1207,7 +1232,7 @@ def get_attachment_zip(self, file_name, repository_id, pull_request_id, project= def create_like(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """CreateLike. [Preview API] Add a like on a comment. - :param str repository_id: The repository ID of the pull request’s target branch. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: The ID of the thread that contains the comment. :param int comment_id: The ID of the comment. @@ -1226,13 +1251,13 @@ def create_like(self, repository_id, pull_request_id, thread_id, comment_id, pro route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') self._send(http_method='POST', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def delete_like(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """DeleteLike. [Preview API] Delete a like on a comment. - :param str repository_id: The repository ID of the pull request’s target branch. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: The ID of the thread that contains the comment. :param int comment_id: The ID of the comment. @@ -1251,13 +1276,13 @@ def delete_like(self, repository_id, pull_request_id, thread_id, comment_id, pro route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') self._send(http_method='DELETE', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_likes(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """GetLikes. [Preview API] Get likes for a comment. - :param str repository_id: The repository ID of the pull request’s target branch. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: The ID of the thread that contains the comment. :param int comment_id: The ID of the comment. @@ -1277,7 +1302,7 @@ def get_likes(self, repository_id, pull_request_id, thread_id, comment_id, proje route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') response = self._send(http_method='GET', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) @@ -1301,7 +1326,7 @@ def get_pull_request_iteration_commits(self, repository_id, pull_request_id, ite route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') response = self._send(http_method='GET', location_id='e7ea0883-095f-4926-b5fb-f24691c26fb9', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) @@ -1322,7 +1347,7 @@ def get_pull_request_commits(self, repository_id, pull_request_id, project=None) route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='52823034-34a8-4576-922c-8d8b77e9e4c4', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) @@ -1336,7 +1361,7 @@ def get_pull_request_iteration_changes(self, repository_id, pull_request_id, ite :param int top: Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000. :param int skip: Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100. :param int compare_to: ID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1356,7 +1381,7 @@ def get_pull_request_iteration_changes(self, repository_id, pull_request_id, ite query_parameters['$compareTo'] = self._serialize.query('compare_to', compare_to, 'int') response = self._send(http_method='GET', location_id='4216bdcf-b6b1-4d59-8b82-c34cc183fc8b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequestIterationChanges', response) @@ -1368,7 +1393,7 @@ def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_i :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration to return. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1381,7 +1406,7 @@ def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_i route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') response = self._send(http_method='GET', location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('GitPullRequestIteration', response) @@ -1406,7 +1431,7 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No query_parameters['includeCommits'] = self._serialize.query('include_commits', include_commits, 'bool') response = self._send(http_method='GET', location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequestIteration]', self._unwrap_collection(response)) @@ -1414,12 +1439,12 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No def create_pull_request_iteration_status(self, status, repository_id, pull_request_id, iteration_id, project=None): """CreatePullRequestIterationStatus. [Preview API] Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body. - :param :class:` ` status: Pull request status to create. + :param :class:` ` status: Pull request status to create. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1433,7 +1458,7 @@ def create_pull_request_iteration_status(self, status, repository_id, pull_reque content = self._serialize.body(status, 'GitPullRequestStatus') response = self._send(http_method='POST', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestStatus', response) @@ -1460,7 +1485,7 @@ def delete_pull_request_iteration_status(self, repository_id, pull_request_id, i route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') self._send(http_method='DELETE', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_pull_request_iteration_status(self, repository_id, pull_request_id, iteration_id, status_id, project=None): @@ -1471,7 +1496,7 @@ def get_pull_request_iteration_status(self, repository_id, pull_request_id, iter :param int iteration_id: ID of the pull request iteration. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1486,7 +1511,7 @@ def get_pull_request_iteration_status(self, repository_id, pull_request_id, iter route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') response = self._send(http_method='GET', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('GitPullRequestStatus', response) @@ -1510,14 +1535,14 @@ def get_pull_request_iteration_statuses(self, repository_id, pull_request_id, it route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') response = self._send(http_method='GET', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) def update_pull_request_iteration_statuses(self, patch_document, repository_id, pull_request_id, iteration_id, project=None): """UpdatePullRequestIterationStatuses. [Preview API] Update pull request iteration statuses collection. The only supported operation type is `remove`. - :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. + :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. @@ -1535,7 +1560,7 @@ def update_pull_request_iteration_statuses(self, patch_document, repository_id, content = self._serialize.body(patch_document, '[JsonPatchOperation]') self._send(http_method='PATCH', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -1543,12 +1568,12 @@ def update_pull_request_iteration_statuses(self, patch_document, repository_id, def create_pull_request_label(self, label, repository_id, pull_request_id, project=None, project_id=None): """CreatePullRequestLabel. [Preview API] Create a label for a specified pull request. The only required field is the name of the new label. - :param :class:` ` label: Label to assign to the pull request. + :param :class:` ` label: Label to assign to the pull request. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :param str project_id: Project ID or project name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1563,7 +1588,7 @@ def create_pull_request_label(self, label, repository_id, pull_request_id, proje content = self._serialize.body(label, 'WebApiCreateTagRequestData') response = self._send(http_method='POST', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1592,7 +1617,7 @@ def delete_pull_request_labels(self, repository_id, pull_request_id, label_id_or query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') self._send(http_method='DELETE', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -1604,7 +1629,7 @@ def get_pull_request_label(self, repository_id, pull_request_id, label_id_or_nam :param str label_id_or_name: The name or ID of the label requested. :param str project: Project ID or project name :param str project_id: Project ID or project name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1620,7 +1645,7 @@ def get_pull_request_label(self, repository_id, pull_request_id, label_id_or_nam query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') response = self._send(http_method='GET', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WebApiTagDefinition', response) @@ -1646,7 +1671,7 @@ def get_pull_request_labels(self, repository_id, pull_request_id, project=None, query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') response = self._send(http_method='GET', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WebApiTagDefinition]', self._unwrap_collection(response)) @@ -1657,7 +1682,7 @@ def get_pull_request_properties(self, repository_id, pull_request_id, project=No :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1668,18 +1693,18 @@ def get_pull_request_properties(self, repository_id, pull_request_id, project=No route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='48a52185-5b9e-4736-9dc1-bb1e2feac80b', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('object', response) def update_pull_request_properties(self, patch_document, repository_id, pull_request_id, project=None): """UpdatePullRequestProperties. [Preview API] Create or update pull request external properties. The patch operation can be `add`, `replace` or `remove`. For `add` operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For `replace` operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For `remove` operation, the path cannot be empty. If the path does not exist, no action will be performed. - :param :class:`<[JsonPatchOperation]> ` patch_document: Properties to add, replace or remove in JSON Patch format. + :param :class:`<[JsonPatchOperation]> ` patch_document: Properties to add, replace or remove in JSON Patch format. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1691,7 +1716,7 @@ def update_pull_request_properties(self, patch_document, repository_id, pull_req content = self._serialize.body(patch_document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='48a52185-5b9e-4736-9dc1-bb1e2feac80b', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -1700,10 +1725,10 @@ def update_pull_request_properties(self, patch_document, repository_id, pull_req def get_pull_request_query(self, queries, repository_id, project=None): """GetPullRequestQuery. This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests. - :param :class:` ` queries: The list of queries to perform. + :param :class:` ` queries: The list of queries to perform. :param str repository_id: ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1713,7 +1738,7 @@ def get_pull_request_query(self, queries, repository_id, project=None): content = self._serialize.body(queries, 'GitPullRequestQuery') response = self._send(http_method='POST', location_id='b3a6eebe-9cf0-49ea-b6cb-1a4c5f5007b0', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('GitPullRequestQuery', response) @@ -1721,12 +1746,12 @@ def get_pull_request_query(self, queries, repository_id, project=None): def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, reviewer_id, project=None): """CreatePullRequestReviewer. Add a reviewer to a pull request or cast a vote. - :param :class:` ` reviewer: Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero. + :param :class:` ` reviewer: Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str reviewer_id: ID of the reviewer. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1740,7 +1765,7 @@ def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, content = self._serialize.body(reviewer, 'IdentityRefWithVote') response = self._send(http_method='PUT', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('IdentityRefWithVote', response) @@ -1764,7 +1789,7 @@ def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_i content = self._serialize.body(reviewers, '[IdentityRef]') response = self._send(http_method='POST', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) @@ -1788,7 +1813,7 @@ def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_ route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') self._send(http_method='DELETE', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1', + version='5.0', route_values=route_values) def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): @@ -1798,7 +1823,7 @@ def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, :param int pull_request_id: ID of the pull request. :param str reviewer_id: ID of the reviewer. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1811,7 +1836,7 @@ def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('IdentityRefWithVote', response) @@ -1832,13 +1857,13 @@ def get_pull_request_reviewers(self, repository_id, pull_request_id, project=Non route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request_id, project=None): """UpdatePullRequestReviewers. - Reset the votes of multiple reviewers on a pull request. + Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names. :param [IdentityRefWithVote] patch_votes: IDs of the reviewers whose votes will be reset to zero :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request @@ -1854,22 +1879,25 @@ def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request content = self._serialize.body(patch_votes, '[IdentityRefWithVote]') self._send(http_method='PATCH', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.1', + version='5.0', route_values=route_values, content=content) - def get_pull_request_by_id(self, pull_request_id): + def get_pull_request_by_id(self, pull_request_id, project=None): """GetPullRequestById. Retrieve a pull request. :param int pull_request_id: The ID of the pull request to retrieve. - :rtype: :class:` ` + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if pull_request_id is not None: route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='01a46dea-7d46-4d40-bc84-319e7c260d99', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('GitPullRequest', response) @@ -1877,7 +1905,7 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len """GetPullRequestsByProject. Retrieve all pull requests matching a specified criteria. :param str project: Project ID or project name - :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. :param int max_comment_length: Not used. :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. :param int top: The number of pull requests to retrieve. @@ -1912,7 +1940,7 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='a5d28130-9cd2-40fa-9f08-902e7daa9efb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) @@ -1920,11 +1948,11 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): """CreatePullRequest. Create a pull request. - :param :class:` ` git_pull_request_to_create: The pull request to create. + :param :class:` ` git_pull_request_to_create: The pull request to create. :param str repository_id: The repository ID of the pull request's target branch. :param str project: Project ID or project name :param bool supports_iterations: If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1937,7 +1965,7 @@ def create_pull_request(self, git_pull_request_to_create, repository_id, project content = self._serialize.body(git_pull_request_to_create, 'GitPullRequest') response = self._send(http_method='POST', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1954,7 +1982,7 @@ def get_pull_request(self, repository_id, pull_request_id, project=None, max_com :param int top: Not used. :param bool include_commits: If true, the pull request will be returned with the associated commits. :param bool include_work_item_refs: If true, the pull request will be returned with the associated work item references. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1976,7 +2004,7 @@ def get_pull_request(self, repository_id, pull_request_id, project=None, max_com query_parameters['includeWorkItemRefs'] = self._serialize.query('include_work_item_refs', include_work_item_refs, 'bool') response = self._send(http_method='GET', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequest', response) @@ -1985,7 +2013,7 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co """GetPullRequests. Retrieve all pull requests matching a specified criteria. :param str repository_id: The repository ID of the pull request's target branch. - :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. :param str project: Project ID or project name :param int max_comment_length: Not used. :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. @@ -2023,7 +2051,7 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) @@ -2031,11 +2059,11 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): """UpdatePullRequest. Update a pull request. - :param :class:` ` git_pull_request_to_update: The pull request content to update. + :param :class:` ` git_pull_request_to_update: The pull request content to update. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: The ID of the pull request to retrieve. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2047,7 +2075,7 @@ def update_pull_request(self, git_pull_request_to_update, repository_id, pull_re content = self._serialize.body(git_pull_request_to_update, 'GitPullRequest') response = self._send(http_method='PATCH', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('GitPullRequest', response) @@ -2055,7 +2083,7 @@ def update_pull_request(self, git_pull_request_to_update, repository_id, pull_re def share_pull_request(self, user_message, repository_id, pull_request_id, project=None): """SharePullRequest. [Preview API] Sends an e-mail notification about a specific pull request to a set of recipients - :param :class:` ` user_message: + :param :class:` ` user_message: :param str repository_id: ID of the git repository. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -2070,18 +2098,18 @@ def share_pull_request(self, user_message, repository_id, pull_request_id, proje content = self._serialize.body(user_message, 'ShareNotificationContext') self._send(http_method='POST', location_id='696f3a82-47c9-487f-9117-b9d00972ca84', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) def create_pull_request_status(self, status, repository_id, pull_request_id, project=None): """CreatePullRequestStatus. [Preview API] Create a pull request status. - :param :class:` ` status: Pull request status to create. + :param :class:` ` status: Pull request status to create. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2093,7 +2121,7 @@ def create_pull_request_status(self, status, repository_id, pull_request_id, pro content = self._serialize.body(status, 'GitPullRequestStatus') response = self._send(http_method='POST', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestStatus', response) @@ -2117,7 +2145,7 @@ def delete_pull_request_status(self, repository_id, pull_request_id, status_id, route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') self._send(http_method='DELETE', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_pull_request_status(self, repository_id, pull_request_id, status_id, project=None): @@ -2127,7 +2155,7 @@ def get_pull_request_status(self, repository_id, pull_request_id, status_id, pro :param int pull_request_id: ID of the pull request. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2140,7 +2168,7 @@ def get_pull_request_status(self, repository_id, pull_request_id, status_id, pro route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') response = self._send(http_method='GET', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('GitPullRequestStatus', response) @@ -2161,14 +2189,14 @@ def get_pull_request_statuses(self, repository_id, pull_request_id, project=None route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) def update_pull_request_statuses(self, patch_document, repository_id, pull_request_id, project=None): """UpdatePullRequestStatuses. [Preview API] Update pull request statuses collection. The only supported operation type is `remove`. - :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. + :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name @@ -2183,7 +2211,7 @@ def update_pull_request_statuses(self, patch_document, repository_id, pull_reque content = self._serialize.body(patch_document, '[JsonPatchOperation]') self._send(http_method='PATCH', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -2191,12 +2219,12 @@ def update_pull_request_statuses(self, patch_document, repository_id, pull_reque def create_comment(self, comment, repository_id, pull_request_id, thread_id, project=None): """CreateComment. Create a comment on a specific thread in a pull request. - :param :class:` ` comment: The comment to create. - :param str repository_id: The repository ID of the pull request’s target branch. + :param :class:` ` comment: The comment to create. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2210,7 +2238,7 @@ def create_comment(self, comment, repository_id, pull_request_id, thread_id, pro content = self._serialize.body(comment, 'Comment') response = self._send(http_method='POST', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('Comment', response) @@ -2218,7 +2246,7 @@ def create_comment(self, comment, repository_id, pull_request_id, thread_id, pro def delete_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """DeleteComment. Delete a comment associated with a specific thread in a pull request. - :param str repository_id: The repository ID of the pull request’s target branch. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. :param int comment_id: ID of the comment. @@ -2237,18 +2265,18 @@ def delete_comment(self, repository_id, pull_request_id, thread_id, comment_id, route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') self._send(http_method='DELETE', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1', + version='5.0', route_values=route_values) def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """GetComment. Retrieve a comment associated with a specific thread in a pull request. - :param str repository_id: The repository ID of the pull request’s target branch. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. :param int comment_id: ID of the comment. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2263,14 +2291,14 @@ def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, pro route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Comment', response) def get_comments(self, repository_id, pull_request_id, thread_id, project=None): """GetComments. Retrieve all comments associated with a specific thread in a pull request. - :param str repository_id: The repository ID of the pull request’s target branch. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread. :param str project: Project ID or project name @@ -2287,20 +2315,20 @@ def get_comments(self, repository_id, pull_request_id, thread_id, project=None): route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[Comment]', self._unwrap_collection(response)) def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): """UpdateComment. Update a comment associated with a specific thread in a pull request. - :param :class:` ` comment: The comment content that should be updated. - :param str repository_id: The repository ID of the pull request’s target branch. + :param :class:` ` comment: The comment content that should be updated. + :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread that the desired comment is in. :param int comment_id: ID of the comment to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2316,7 +2344,7 @@ def update_comment(self, comment, repository_id, pull_request_id, thread_id, com content = self._serialize.body(comment, 'Comment') response = self._send(http_method='PATCH', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('Comment', response) @@ -2324,11 +2352,11 @@ def update_comment(self, comment, repository_id, pull_request_id, thread_id, com def create_thread(self, comment_thread, repository_id, pull_request_id, project=None): """CreateThread. Create a thread in a pull request. - :param :class:` ` comment_thread: The thread to create. Thread must contain at least one comment. + :param :class:` ` comment_thread: The thread to create. Thread must contain at least one comment. :param str repository_id: Repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2340,7 +2368,7 @@ def create_thread(self, comment_thread, repository_id, pull_request_id, project= content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') response = self._send(http_method='POST', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('GitPullRequestCommentThread', response) @@ -2354,7 +2382,7 @@ def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, pro :param str project: Project ID or project name :param int iteration: If specified, thread position will be tracked using this iteration as the right side of the diff. :param int base_iteration: If specified, thread position will be tracked using this iteration as the left side of the diff. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2372,7 +2400,7 @@ def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, pro query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') response = self._send(http_method='GET', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequestCommentThread', response) @@ -2401,7 +2429,7 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') response = self._send(http_method='GET', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequestCommentThread]', self._unwrap_collection(response)) @@ -2409,12 +2437,12 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): """UpdateThread. Update a thread in a pull request. - :param :class:` ` comment_thread: The thread content that should be updated. + :param :class:` ` comment_thread: The thread content that should be updated. :param str repository_id: The repository ID of the pull request's target branch. :param int pull_request_id: ID of the pull request. :param int thread_id: ID of the thread to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2428,7 +2456,7 @@ def update_thread(self, comment_thread, repository_id, pull_request_id, thread_i content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') response = self._send(http_method='PATCH', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('GitPullRequestCommentThread', response) @@ -2450,17 +2478,17 @@ def get_pull_request_work_item_refs(self, repository_id, pull_request_id, projec route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='0a637fcc-5370-4ce8-b0e8-98091f5f9482', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def create_push(self, push, repository_id, project=None): """CreatePush. Push changes to the repository. - :param :class:` ` push: + :param :class:` ` push: :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2470,7 +2498,7 @@ def create_push(self, push, repository_id, project=None): content = self._serialize.body(push, 'GitPush') response = self._send(http_method='POST', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('GitPush', response) @@ -2483,7 +2511,7 @@ def get_push(self, repository_id, push_id, project=None, include_commits=None, i :param str project: Project ID or project name :param int include_commits: The number of commits to include in the result. :param bool include_ref_updates: If true, include the list of refs that were updated by the push. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2499,7 +2527,7 @@ def get_push(self, repository_id, push_id, project=None, include_commits=None, i query_parameters['includeRefUpdates'] = self._serialize.query('include_ref_updates', include_ref_updates, 'bool') response = self._send(http_method='GET', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPush', response) @@ -2511,7 +2539,7 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr :param str project: Project ID or project name :param int skip: Number of pushes to skip. :param int top: Number of pushes to return. - :param :class:` ` search_criteria: Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references. + :param :class:` ` search_criteria: Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references. :rtype: [GitPush] """ route_values = {} @@ -2539,7 +2567,7 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links response = self._send(http_method='GET', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPush]', self._unwrap_collection(response)) @@ -2557,7 +2585,7 @@ def delete_repository_from_recycle_bin(self, project, repository_id): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') self._send(http_method='DELETE', location_id='a663da97-81db-4eb3-8b83-287670f63073', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_recycle_bin_repositories(self, project): @@ -2571,17 +2599,17 @@ def get_recycle_bin_repositories(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='a663da97-81db-4eb3-8b83-287670f63073', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[GitDeletedRepository]', self._unwrap_collection(response)) def restore_repository_from_recycle_bin(self, repository_details, project, repository_id): """RestoreRepositoryFromRecycleBin. [Preview API] Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable. - :param :class:` ` repository_details: + :param :class:` ` repository_details: :param str project: Project ID or project name :param str repository_id: The ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2591,19 +2619,23 @@ def restore_repository_from_recycle_bin(self, repository_details, project, repos content = self._serialize.body(repository_details, 'GitRecycleBinRepositoryDetails') response = self._send(http_method='PATCH', location_id='a663da97-81db-4eb3-8b83-287670f63073', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitRepository', response) - def get_refs(self, repository_id, project=None, filter=None, include_links=None, latest_statuses_only=None): + def get_refs(self, repository_id, project=None, filter=None, include_links=None, include_statuses=None, include_my_branches=None, latest_statuses_only=None, peel_tags=None, filter_contains=None): """GetRefs. Queries the provided repository for its refs and returns them. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param str filter: [optional] A filter to apply to the refs. + :param str filter: [optional] A filter to apply to the refs (starts with). :param bool include_links: [optional] Specifies if referenceLinks should be included in the result. default is false. + :param bool include_statuses: [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false. + :param bool include_my_branches: [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter. :param bool latest_statuses_only: [optional] True to include only the tip commit status for each ref. This option requires `includeStatuses` to be true. The default value is false. + :param bool peel_tags: [optional] Annotated tags will populate the PeeledObjectId property. default is false. + :param str filter_contains: [optional] A filter to apply to the refs (contains). :rtype: [GitRef] """ route_values = {} @@ -2616,11 +2648,19 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, query_parameters['filter'] = self._serialize.query('filter', filter, 'str') if include_links is not None: query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if include_statuses is not None: + query_parameters['includeStatuses'] = self._serialize.query('include_statuses', include_statuses, 'bool') + if include_my_branches is not None: + query_parameters['includeMyBranches'] = self._serialize.query('include_my_branches', include_my_branches, 'bool') if latest_statuses_only is not None: query_parameters['latestStatusesOnly'] = self._serialize.query('latest_statuses_only', latest_statuses_only, 'bool') + if peel_tags is not None: + query_parameters['peelTags'] = self._serialize.query('peel_tags', peel_tags, 'bool') + if filter_contains is not None: + query_parameters['filterContains'] = self._serialize.query('filter_contains', filter_contains, 'str') response = self._send(http_method='GET', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRef]', self._unwrap_collection(response)) @@ -2628,12 +2668,12 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): """UpdateRef. Lock or Unlock a branch. - :param :class:` ` new_ref_info: The ref update action (lock/unlock) to perform + :param :class:` ` new_ref_info: The ref update action (lock/unlock) to perform :param str repository_id: The name or ID of the repository. :param str filter: The name of the branch to lock/unlock :param str project: Project ID or project name - :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. - :rtype: :class:` ` + :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2648,7 +2688,7 @@ def update_ref(self, new_ref_info, repository_id, filter, project=None, project_ content = self._serialize.body(new_ref_info, 'GitRefUpdate') response = self._send(http_method='PATCH', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2660,7 +2700,7 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) :param [GitRefUpdate] ref_updates: List of ref updates to attempt to perform :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. + :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. :rtype: [GitRefUpdateResult] """ route_values = {} @@ -2674,7 +2714,7 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) content = self._serialize.body(ref_updates, '[GitRefUpdate]') response = self._send(http_method='POST', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2683,9 +2723,9 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) def create_favorite(self, favorite, project): """CreateFavorite. [Preview API] Creates a ref favorite - :param :class:` ` favorite: The ref favorite to create. + :param :class:` ` favorite: The ref favorite to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2693,7 +2733,7 @@ def create_favorite(self, favorite, project): content = self._serialize.body(favorite, 'GitRefFavorite') response = self._send(http_method='POST', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitRefFavorite', response) @@ -2711,7 +2751,7 @@ def delete_ref_favorite(self, project, favorite_id): route_values['favoriteId'] = self._serialize.url('favorite_id', favorite_id, 'int') self._send(http_method='DELETE', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_ref_favorite(self, project, favorite_id): @@ -2719,7 +2759,7 @@ def get_ref_favorite(self, project, favorite_id): [Preview API] Gets the refs favorite for a favorite Id. :param str project: Project ID or project name :param int favorite_id: The Id of the requested ref favorite. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2728,7 +2768,7 @@ def get_ref_favorite(self, project, favorite_id): route_values['favoriteId'] = self._serialize.url('favorite_id', favorite_id, 'int') response = self._send(http_method='GET', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('GitRefFavorite', response) @@ -2750,7 +2790,7 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') response = self._send(http_method='GET', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRefFavorite]', self._unwrap_collection(response)) @@ -2758,10 +2798,10 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): def create_repository(self, git_repository_to_create, project=None, source_ref=None): """CreateRepository. Create a git repository in a team project. - :param :class:` ` git_repository_to_create: Specify the repo name, team project and/or parent repository + :param :class:` ` git_repository_to_create: Specify the repo name, team project and/or parent repository. Team project information can be ommitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id). :param str project: Project ID or project name :param str source_ref: [optional] Specify the source refs to use while creating a fork repo - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2772,7 +2812,7 @@ def create_repository(self, git_repository_to_create, project=None, source_ref=N content = self._serialize.body(git_repository_to_create, 'GitRepositoryCreateOptions') response = self._send(http_method='POST', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2791,7 +2831,7 @@ def delete_repository(self, repository_id, project=None): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') self._send(http_method='DELETE', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1', + version='5.0', route_values=route_values) def get_repositories(self, project=None, include_links=None, include_all_urls=None, include_hidden=None): @@ -2815,18 +2855,36 @@ def get_repositories(self, project=None, include_links=None, include_all_urls=No query_parameters['includeHidden'] = self._serialize.query('include_hidden', include_hidden, 'bool') response = self._send(http_method='GET', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRepository]', self._unwrap_collection(response)) - def get_repository(self, repository_id, project=None, include_parent=None): + def get_repository(self, repository_id, project=None): """GetRepository. Retrieve a git repository. :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param bool include_parent: [optional] True to include parent repository. The default value is false. - :rtype: :class:` ` + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + response = self._send(http_method='GET', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.0', + route_values=route_values) + return self._deserialize('GitRepository', response) + + def get_repository_with_parent(self, repository_id, include_parent, project=None): + """GetRepositoryWithParent. + Retrieve a git repository. + :param str repository_id: The name or ID of the repository. + :param bool include_parent: True to include parent repository. Only available in authenticated calls. + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2838,7 +2896,7 @@ def get_repository(self, repository_id, project=None, include_parent=None): query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') response = self._send(http_method='GET', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitRepository', response) @@ -2846,10 +2904,10 @@ def get_repository(self, repository_id, project=None, include_parent=None): def update_repository(self, new_repository_info, repository_id, project=None): """UpdateRepository. Updates the Git repository with either a new repo name or a new default branch. - :param :class:` ` new_repository_info: Specify a new repo name or a new default branch of the repository + :param :class:` ` new_repository_info: Specify a new repo name or a new default branch of the repository :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2859,7 +2917,7 @@ def update_repository(self, new_repository_info, repository_id, project=None): content = self._serialize.body(new_repository_info, 'GitRepository') response = self._send(http_method='PATCH', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('GitRepository', response) @@ -2867,10 +2925,10 @@ def update_repository(self, new_repository_info, repository_id, project=None): def create_revert(self, revert_to_create, project, repository_id): """CreateRevert. [Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request. - :param :class:` ` revert_to_create: + :param :class:` ` revert_to_create: :param str project: Project ID or project name :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2880,7 +2938,7 @@ def create_revert(self, revert_to_create, project, repository_id): content = self._serialize.body(revert_to_create, 'GitAsyncRefOperationParameters') response = self._send(http_method='POST', location_id='bc866058-5449-4715-9cf1-a510b6ff193c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('GitRevert', response) @@ -2891,7 +2949,7 @@ def get_revert(self, project, revert_id, repository_id): :param str project: Project ID or project name :param int revert_id: ID of the revert operation. :param str repository_id: ID of the repository. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2902,7 +2960,7 @@ def get_revert(self, project, revert_id, repository_id): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') response = self._send(http_method='GET', location_id='bc866058-5449-4715-9cf1-a510b6ff193c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('GitRevert', response) @@ -2912,7 +2970,7 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): :param str project: Project ID or project name :param str repository_id: ID of the repository. :param str ref_name: The GitAsyncRefOperationParameters generatedRefName used for the revert operation. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2924,7 +2982,7 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): query_parameters['refName'] = self._serialize.query('ref_name', ref_name, 'str') response = self._send(http_method='GET', location_id='bc866058-5449-4715-9cf1-a510b6ff193c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitRevert', response) @@ -2932,11 +2990,11 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): def create_commit_status(self, git_commit_status_to_create, commit_id, repository_id, project=None): """CreateCommitStatus. Create Git commit status. - :param :class:` ` git_commit_status_to_create: Git commit status object to create. + :param :class:` ` git_commit_status_to_create: Git commit status object to create. :param str commit_id: ID of the Git commit. :param str repository_id: ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2948,7 +3006,7 @@ def create_commit_status(self, git_commit_status_to_create, commit_id, repositor content = self._serialize.body(git_commit_status_to_create, 'GitStatus') response = self._send(http_method='POST', location_id='428dd4fb-fda5-4722-af02-9313b80305da', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('GitStatus', response) @@ -2980,7 +3038,7 @@ def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=No query_parameters['latestOnly'] = self._serialize.query('latest_only', latest_only, 'bool') response = self._send(http_method='GET', location_id='428dd4fb-fda5-4722-af02-9313b80305da', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitStatus]', self._unwrap_collection(response)) @@ -2999,7 +3057,7 @@ def get_suggestions(self, repository_id, project=None): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') response = self._send(http_method='GET', location_id='9393b4fb-4445-4919-972b-9ad16f442d83', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[GitSuggestion]', self._unwrap_collection(response)) @@ -3012,7 +3070,7 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive :param str project_id: Project Id. :param bool recursive: Search recursively. Include trees underneath this tree. Default is false. :param str file_name: Name to use if a .zip file is returned. Default is the object ID. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -3030,7 +3088,7 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='729f6437-6f92-44ec-8bee-273a7111063c', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitTreeRef', response) @@ -3062,7 +3120,7 @@ def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recur query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='729f6437-6f92-44ec-8bee-273a7111063c', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') diff --git a/azure-devops/azure/devops/v4_1/git/models.py b/azure-devops/azure/devops/v5_0/git/models.py similarity index 83% rename from azure-devops/azure/devops/v4_1/git/models.py rename to azure-devops/azure/devops/v5_0/git/models.py index d2ae4847..d1edfdb9 100644 --- a/azure-devops/azure/devops/v4_1/git/models.py +++ b/azure-devops/azure/devops/v5_0/git/models.py @@ -13,9 +13,9 @@ class Attachment(Model): """Attachment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The person that uploaded this attachment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. :type content_hash: str :param created_date: The time the attachment was uploaded. @@ -27,7 +27,7 @@ class Attachment(Model): :param id: Id of the attachment. :type id: int :param properties: Extended properties. - :type properties: :class:`object ` + :type properties: :class:`object ` :param url: The url to download the content of the attachment. :type url: str """ @@ -65,7 +65,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -93,9 +93,9 @@ class Comment(Model): """Comment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The author of the comment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param comment_type: The comment type at the time of creation. :type comment_type: object :param content: The comment content. @@ -113,7 +113,7 @@ class Comment(Model): :param published_date: The date the comment was first published. :type published_date: datetime :param users_liked: A list of the users who have liked this comment. - :type users_liked: list of :class:`IdentityRef ` + :type users_liked: list of :class:`IdentityRef ` """ _attribute_map = { @@ -189,29 +189,32 @@ class CommentThread(Model): """CommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int + :param identities: Set of identities related to this thread + :type identities: dict :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. :type is_deleted: bool :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` """ _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'comments': {'key': 'comments', 'type': '[Comment]'}, 'id': {'key': 'id', 'type': 'int'}, + 'identities': {'key': 'identities', 'type': '{IdentityRef}'}, 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, 'properties': {'key': 'properties', 'type': 'object'}, @@ -220,11 +223,12 @@ class CommentThread(Model): 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'} } - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): + def __init__(self, _links=None, comments=None, id=None, identities=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): super(CommentThread, self).__init__() self._links = _links self.comments = comments self.id = id + self.identities = identities self.is_deleted = is_deleted self.last_updated_date = last_updated_date self.properties = properties @@ -239,13 +243,13 @@ class CommentThreadContext(Model): :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. :type file_path: str :param left_file_end: Position of last character of the thread's span in left file. - :type left_file_end: :class:`CommentPosition ` + :type left_file_end: :class:`CommentPosition ` :param left_file_start: Position of first character of the thread's span in left file. - :type left_file_start: :class:`CommentPosition ` + :type left_file_start: :class:`CommentPosition ` :param right_file_end: Position of last character of the thread's span in right file. - :type right_file_end: :class:`CommentPosition ` + :type right_file_end: :class:`CommentPosition ` :param right_file_start: Position of first character of the thread's span in right file. - :type right_file_start: :class:`CommentPosition ` + :type right_file_start: :class:`CommentPosition ` """ _attribute_map = { @@ -273,13 +277,13 @@ class CommentTrackingCriteria(Model): :param orig_file_path: Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. :type orig_file_path: str :param orig_left_file_end: Original position of last character of the thread's span in left file. - :type orig_left_file_end: :class:`CommentPosition ` + :type orig_left_file_end: :class:`CommentPosition ` :param orig_left_file_start: Original position of first character of the thread's span in left file. - :type orig_left_file_start: :class:`CommentPosition ` + :type orig_left_file_start: :class:`CommentPosition ` :param orig_right_file_end: Original position of last character of the thread's span in right file. - :type orig_right_file_end: :class:`CommentPosition ` + :type orig_right_file_end: :class:`CommentPosition ` :param orig_right_file_start: Original position of first character of the thread's span in right file. - :type orig_right_file_start: :class:`CommentPosition ` + :type orig_right_file_start: :class:`CommentPosition ` :param second_comparing_iteration: The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. :type second_comparing_iteration: int """ @@ -345,6 +349,74 @@ def __init__(self, content_type=None, encoding=None, extension=None, file_name=N self.vs_link = vs_link +class FileDiff(Model): + """FileDiff. + + :param line_diff_blocks: The collection of line diff blocks + :type line_diff_blocks: list of :class:`LineDiffBlock ` + :param original_path: Original path of item if different from current path. + :type original_path: str + :param path: Current path of item + :type path: str + """ + + _attribute_map = { + 'line_diff_blocks': {'key': 'lineDiffBlocks', 'type': '[LineDiffBlock]'}, + 'original_path': {'key': 'originalPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, line_diff_blocks=None, original_path=None, path=None): + super(FileDiff, self).__init__() + self.line_diff_blocks = line_diff_blocks + self.original_path = original_path + self.path = path + + +class FileDiffParams(Model): + """FileDiffParams. + + :param original_path: Original path of the file + :type original_path: str + :param path: Current path of the file + :type path: str + """ + + _attribute_map = { + 'original_path': {'key': 'originalPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, original_path=None, path=None): + super(FileDiffParams, self).__init__() + self.original_path = original_path + self.path = path + + +class FileDiffsCriteria(Model): + """FileDiffsCriteria. + + :param base_version_commit: Commit ID of the base version + :type base_version_commit: str + :param file_diff_params: List of parameters for each of the files for which we need to get the file diff + :type file_diff_params: list of :class:`FileDiffParams ` + :param target_version_commit: Commit ID of the target version + :type target_version_commit: str + """ + + _attribute_map = { + 'base_version_commit': {'key': 'baseVersionCommit', 'type': 'str'}, + 'file_diff_params': {'key': 'fileDiffParams', 'type': '[FileDiffParams]'}, + 'target_version_commit': {'key': 'targetVersionCommit', 'type': 'str'} + } + + def __init__(self, base_version_commit=None, file_diff_params=None, target_version_commit=None): + super(FileDiffsCriteria, self).__init__() + self.base_version_commit = base_version_commit + self.file_diff_params = file_diff_params + self.target_version_commit = target_version_commit + + class GitAnnotatedTag(Model): """GitAnnotatedTag. @@ -355,9 +427,9 @@ class GitAnnotatedTag(Model): :param object_id: The objectId (Sha1Id) of the tag. :type object_id: str :param tagged_by: User info and date of tagging. - :type tagged_by: :class:`GitUserDate ` + :type tagged_by: :class:`GitUserDate ` :param tagged_object: Tagged git object. - :type tagged_object: :class:`GitObject ` + :type tagged_object: :class:`GitObject ` :param url: :type url: str """ @@ -385,11 +457,11 @@ class GitAsyncRefOperation(Model): """GitAsyncRefOperation. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -457,9 +529,9 @@ class GitAsyncRefOperationParameters(Model): :param onto_ref_name: The target branch for the cherry pick or revert operation. :type onto_ref_name: str :param repository: The git repository for the cherry pick or revert operation. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). - :type source: :class:`GitAsyncRefOperationSource ` + :type source: :class:`GitAsyncRefOperationSource ` """ _attribute_map = { @@ -481,7 +553,7 @@ class GitAsyncRefOperationSource(Model): """GitAsyncRefOperationSource. :param commit_list: A list of commits to cherry pick or revert - :type commit_list: list of :class:`GitCommitRef ` + :type commit_list: list of :class:`GitCommitRef ` :param pull_request_id: Id of the pull request to cherry pick or revert :type pull_request_id: int """ @@ -501,7 +573,7 @@ class GitBlobRef(Model): """GitBlobRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Size of blob content (in bytes) @@ -533,7 +605,7 @@ class GitBranchStats(Model): :param behind_count: Number of commits behind. :type behind_count: int :param commit: Current commit. - :type commit: :class:`GitCommitRef ` + :type commit: :class:`GitCommitRef ` :param is_base_version: True if this is the result for the base version. :type is_base_version: bool :param name: Name of the ref. @@ -561,11 +633,11 @@ class GitCherryPick(GitAsyncRefOperation): """GitCherryPick. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -594,7 +666,7 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` """ _attribute_map = { @@ -622,7 +694,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -656,13 +728,13 @@ class GitCommitRef(Model): """GitCommitRef. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -670,17 +742,19 @@ class GitCommitRef(Model): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str + :param push: The push associated with this commit. + :type push: :class:`GitPushRef ` :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` """ _attribute_map = { @@ -693,13 +767,14 @@ class GitCommitRef(Model): 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, 'parents': {'key': 'parents', 'type': '[str]'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, 'url': {'key': 'url', 'type': 'str'}, 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} } - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, push=None, remote_url=None, statuses=None, url=None, work_items=None): super(GitCommitRef, self).__init__() self._links = _links self.author = author @@ -710,6 +785,7 @@ def __init__(self, _links=None, author=None, change_counts=None, changes=None, c self.commit_id = commit_id self.committer = committer self.parents = parents + self.push = push self.remote_url = remote_url self.statuses = statuses self.url = url @@ -720,7 +796,7 @@ class GitConflict(Model): """GitConflict. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param conflict_id: :type conflict_id: int :param conflict_path: @@ -728,19 +804,19 @@ class GitConflict(Model): :param conflict_type: :type conflict_type: object :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` + :type merge_base_commit: :class:`GitCommitRef ` :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` + :type merge_origin: :class:`GitMergeOriginRef ` :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` + :type merge_source_commit: :class:`GitCommitRef ` :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` + :type merge_target_commit: :class:`GitCommitRef ` :param resolution_error: :type resolution_error: object :param resolution_status: :type resolution_status: object :param resolved_by: - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` :param resolved_date: :type resolved_date: datetime :param url: @@ -788,7 +864,7 @@ class GitConflictUpdateResult(Model): :param custom_message: Reason for failing :type custom_message: str :param updated_conflict: New state of the conflict after updating - :type updated_conflict: :class:`GitConflict ` + :type updated_conflict: :class:`GitConflict ` :param update_status: Status of the update on the server :type update_status: object """ @@ -814,7 +890,7 @@ class GitDeletedRepository(Model): :param created_date: :type created_date: datetime :param deleted_by: - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: :type deleted_date: datetime :param id: @@ -822,7 +898,7 @@ class GitDeletedRepository(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -896,15 +972,15 @@ class GitForkSyncRequest(Model): """GitForkSyncRequest. :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` + :type detailed_status: :class:`GitForkOperationStatusDetail ` :param operation_id: Unique identifier for the operation. :type operation_id: int :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` :param status: :type status: object """ @@ -932,9 +1008,9 @@ class GitForkSyncRequestParameters(Model): """GitForkSyncRequestParameters. :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` """ _attribute_map = { @@ -972,15 +1048,15 @@ class GitImportRequest(Model): """GitImportRequest. :param _links: Links to related resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: Detailed status of the import, including the current step and an error message, if applicable. - :type detailed_status: :class:`GitImportStatusDetail ` + :type detailed_status: :class:`GitImportStatusDetail ` :param import_request_id: The unique identifier for this import request. :type import_request_id: int :param parameters: Parameters for creating the import request. - :type parameters: :class:`GitImportRequestParameters ` + :type parameters: :class:`GitImportRequestParameters ` :param repository: The target repository for this import. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param status: Current status of the import. :type status: object :param url: A link back to this import request resource. @@ -1014,11 +1090,11 @@ class GitImportRequestParameters(Model): :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done :type delete_service_endpoint_after_import_is_done: bool :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param service_endpoint_id: Service Endpoint for connection to external endpoint :type service_endpoint_id: str :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` """ _attribute_map = { @@ -1124,7 +1200,7 @@ class GitItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` + :type item_descriptors: list of :class:`GitItemDescriptor ` :param latest_processed_change: Whether to include shallow ref to commit that last changed each item :type latest_processed_change: bool """ @@ -1144,6 +1220,26 @@ def __init__(self, include_content_metadata=None, include_links=None, item_descr self.latest_processed_change = latest_processed_change +class GitMergeOperationStatusDetail(Model): + """GitMergeOperationStatusDetail. + + :param failure_message: Error message if the operation failed. + :type failure_message: str + :param merge_commit_id: The commitId of the resultant merge commit. + :type merge_commit_id: str + """ + + _attribute_map = { + 'failure_message': {'key': 'failureMessage', 'type': 'str'}, + 'merge_commit_id': {'key': 'mergeCommitId', 'type': 'str'} + } + + def __init__(self, failure_message=None, merge_commit_id=None): + super(GitMergeOperationStatusDetail, self).__init__() + self.failure_message = failure_message + self.merge_commit_id = merge_commit_id + + class GitMergeOriginRef(Model): """GitMergeOriginRef. @@ -1160,6 +1256,26 @@ def __init__(self, pull_request_id=None): self.pull_request_id = pull_request_id +class GitMergeParameters(Model): + """GitMergeParameters. + + :param comment: Comment or message of the commit. + :type comment: str + :param parents: An enumeration of the parent commit IDs for the merge commit. + :type parents: list of str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, comment=None, parents=None): + super(GitMergeParameters, self).__init__() + self.comment = comment + self.parents = parents + + class GitObject(Model): """GitObject. @@ -1184,39 +1300,41 @@ class GitPullRequest(Model): """GitPullRequest. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}``` :type artifact_id: str :param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it. - :type auto_complete_set_by: :class:`IdentityRef ` + :type auto_complete_set_by: :class:`IdentityRef ` :param closed_by: The user who closed the pull request. - :type closed_by: :class:`IdentityRef ` + :type closed_by: :class:`IdentityRef ` :param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally). :type closed_date: datetime :param code_review_id: The code review ID of the pull request. Used internally. :type code_review_id: int :param commits: The commits contained in the pull request. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param completion_options: Options which affect how the pull request will be merged when it is completed. - :type completion_options: :class:`GitPullRequestCompletionOptions ` + :type completion_options: :class:`GitPullRequestCompletionOptions ` :param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally. :type completion_queue_time: datetime :param created_by: The identity of the user who created the pull request. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: The date when the pull request was created. :type creation_date: datetime :param description: The description of the pull request. :type description: str :param fork_source: If this is a PR from a fork this will contain information about its source. - :type fork_source: :class:`GitForkRef ` + :type fork_source: :class:`GitForkRef ` + :param is_draft: Draft / WIP pull request. + :type is_draft: bool :param labels: The labels associated with the pull request. - :type labels: list of :class:`WebApiTagDefinition ` + :type labels: list of :class:`WebApiTagDefinition ` :param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. - :type last_merge_commit: :class:`GitCommitRef ` + :type last_merge_commit: :class:`GitCommitRef ` :param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge. - :type last_merge_source_commit: :class:`GitCommitRef ` + :type last_merge_source_commit: :class:`GitCommitRef ` :param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge. - :type last_merge_target_commit: :class:`GitCommitRef ` + :type last_merge_target_commit: :class:`GitCommitRef ` :param merge_failure_message: If set, pull request merge failed for this reason. :type merge_failure_message: str :param merge_failure_type: The type of failure (if any) of the pull request merge. @@ -1224,7 +1342,7 @@ class GitPullRequest(Model): :param merge_id: The ID of the job used to run the pull request merge. Used internally. :type merge_id: str :param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. - :type merge_options: :class:`GitPullRequestMergeOptions ` + :type merge_options: :class:`GitPullRequestMergeOptions ` :param merge_status: The current status of the pull request merge. :type merge_status: object :param pull_request_id: The ID of the pull request. @@ -1232,9 +1350,9 @@ class GitPullRequest(Model): :param remote_url: Used internally. :type remote_url: str :param repository: The repository containing the target branch of the pull request. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param reviewers: A list of reviewers on the pull request along with the state of their votes. - :type reviewers: list of :class:`IdentityRefWithVote ` + :type reviewers: list of :class:`IdentityRefWithVote ` :param source_ref_name: The name of the source branch of the pull request. :type source_ref_name: str :param status: The status of the pull request. @@ -1248,7 +1366,7 @@ class GitPullRequest(Model): :param url: Used internally. :type url: str :param work_item_refs: Any work item references associated with this pull request. - :type work_item_refs: list of :class:`ResourceRef ` + :type work_item_refs: list of :class:`ResourceRef ` """ _attribute_map = { @@ -1265,6 +1383,7 @@ class GitPullRequest(Model): 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, 'description': {'key': 'description', 'type': 'str'}, 'fork_source': {'key': 'forkSource', 'type': 'GitForkRef'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, 'labels': {'key': 'labels', 'type': '[WebApiTagDefinition]'}, 'last_merge_commit': {'key': 'lastMergeCommit', 'type': 'GitCommitRef'}, 'last_merge_source_commit': {'key': 'lastMergeSourceCommit', 'type': 'GitCommitRef'}, @@ -1287,7 +1406,7 @@ class GitPullRequest(Model): 'work_item_refs': {'key': 'workItemRefs', 'type': '[ResourceRef]'} } - def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): + def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, is_draft=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): super(GitPullRequest, self).__init__() self._links = _links self.artifact_id = artifact_id @@ -1302,6 +1421,7 @@ def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, clo self.creation_date = creation_date self.description = description self.fork_source = fork_source + self.is_draft = is_draft self.labels = labels self.last_merge_commit = last_merge_commit self.last_merge_source_commit = last_merge_source_commit @@ -1328,31 +1448,34 @@ class GitPullRequestCommentThread(CommentThread): """GitPullRequestCommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int + :param identities: Set of identities related to this thread + :type identities: dict :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. :type is_deleted: bool :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` """ _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'comments': {'key': 'comments', 'type': '[Comment]'}, 'id': {'key': 'id', 'type': 'int'}, + 'identities': {'key': 'identities', 'type': '{IdentityRef}'}, 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, 'properties': {'key': 'properties', 'type': 'object'}, @@ -1362,8 +1485,8 @@ class GitPullRequestCommentThread(CommentThread): 'pull_request_thread_context': {'key': 'pullRequestThreadContext', 'type': 'GitPullRequestCommentThreadContext'} } - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): - super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) + def __init__(self, _links=None, comments=None, id=None, identities=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): + super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, identities=identities, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) self.pull_request_thread_context = pull_request_thread_context @@ -1373,9 +1496,9 @@ class GitPullRequestCommentThreadContext(Model): :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. :type change_tracking_id: int :param iteration_context: The iteration context being viewed when the thread was created. - :type iteration_context: :class:`CommentIterationContext ` + :type iteration_context: :class:`CommentIterationContext ` :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` + :type tracking_criteria: :class:`CommentTrackingCriteria ` """ _attribute_map = { @@ -1435,15 +1558,15 @@ class GitPullRequestIteration(Model): """GitPullRequestIteration. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the pull request iteration. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param change_list: Changes included with the pull request iteration. - :type change_list: list of :class:`GitPullRequestChange ` + :type change_list: list of :class:`GitPullRequestChange ` :param commits: The commits included with the pull request iteration. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param common_ref_commit: The first common Git commit of the source and target refs. - :type common_ref_commit: :class:`GitCommitRef ` + :type common_ref_commit: :class:`GitCommitRef ` :param created_date: The creation date of the pull request iteration. :type created_date: datetime :param description: Description of the pull request iteration. @@ -1452,14 +1575,18 @@ class GitPullRequestIteration(Model): :type has_more_commits: bool :param id: ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request. :type id: int + :param new_target_ref_name: If the iteration reason is Retarget, this is the refName of the new target + :type new_target_ref_name: str + :param old_target_ref_name: If the iteration reason is Retarget, this is the original target refName + :type old_target_ref_name: str :param push: The Git push information associated with this pull request iteration. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param reason: The reason for which the pull request iteration was created. :type reason: object :param source_ref_commit: The source Git commit of this iteration. - :type source_ref_commit: :class:`GitCommitRef ` + :type source_ref_commit: :class:`GitCommitRef ` :param target_ref_commit: The target Git commit of this iteration. - :type target_ref_commit: :class:`GitCommitRef ` + :type target_ref_commit: :class:`GitCommitRef ` :param updated_date: The updated date of the pull request iteration. :type updated_date: datetime """ @@ -1474,6 +1601,8 @@ class GitPullRequestIteration(Model): 'description': {'key': 'description', 'type': 'str'}, 'has_more_commits': {'key': 'hasMoreCommits', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, + 'new_target_ref_name': {'key': 'newTargetRefName', 'type': 'str'}, + 'old_target_ref_name': {'key': 'oldTargetRefName', 'type': 'str'}, 'push': {'key': 'push', 'type': 'GitPushRef'}, 'reason': {'key': 'reason', 'type': 'object'}, 'source_ref_commit': {'key': 'sourceRefCommit', 'type': 'GitCommitRef'}, @@ -1481,7 +1610,7 @@ class GitPullRequestIteration(Model): 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} } - def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): + def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, new_target_ref_name=None, old_target_ref_name=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): super(GitPullRequestIteration, self).__init__() self._links = _links self.author = author @@ -1492,6 +1621,8 @@ def __init__(self, _links=None, author=None, change_list=None, commits=None, com self.description = description self.has_more_commits = has_more_commits self.id = id + self.new_target_ref_name = new_target_ref_name + self.old_target_ref_name = old_target_ref_name self.push = push self.reason = reason self.source_ref_commit = source_ref_commit @@ -1503,7 +1634,7 @@ class GitPullRequestIterationChanges(Model): """GitPullRequestIterationChanges. :param change_entries: Changes made in the iteration. - :type change_entries: list of :class:`GitPullRequestChange ` + :type change_entries: list of :class:`GitPullRequestChange ` :param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. :type next_skip: int :param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes. @@ -1547,7 +1678,7 @@ class GitPullRequestQuery(Model): """GitPullRequestQuery. :param queries: The queries to perform. - :type queries: list of :class:`GitPullRequestQueryInput ` + :type queries: list of :class:`GitPullRequestQueryInput ` :param results: The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. :type results: list of {[GitPullRequest]} """ @@ -1598,7 +1729,7 @@ class GitPullRequestSearchCriteria(Model): :type source_ref_name: str :param source_repository_id: If set, search for pull requests whose source branch is in this repository. :type source_repository_id: str - :param status: If set, search for pull requests that are in this state. + :param status: If set, search for pull requests that are in this state. Defaults to Active if unset. :type status: object :param target_ref_name: If set, search for pull requests into this branch. :type target_ref_name: str @@ -1631,13 +1762,13 @@ class GitPushRef(Model): """GitPushRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: @@ -1703,9 +1834,9 @@ class GitQueryBranchStatsCriteria(Model): """GitQueryBranchStatsCriteria. :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` + :type base_commit: :class:`GitVersionDescriptor ` :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` + :type target_commits: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -1729,25 +1860,29 @@ class GitQueryCommitsCriteria(Model): :param author: Alias or display name of the author :type author: str :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. - :type compare_version: :class:`GitVersionDescriptor ` - :param exclude_deletes: If true, don't include delete history entries + :type compare_version: :class:`GitVersionDescriptor ` + :param exclude_deletes: Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path. :type exclude_deletes: bool :param from_commit_id: If provided, a lower bound for filtering commits alphabetically :type from_commit_id: str :param from_date: If provided, only include history entries created after this date (string) :type from_date: str - :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null. + :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified. :type history_mode: object :param ids: If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters. :type ids: list of str :param include_links: Whether to include the _links field on the shallow references :type include_links: bool + :param include_push_data: Whether to include the push information + :type include_push_data: bool + :param include_user_image_url: Whether to include the image Url for committers and authors + :type include_user_image_url: bool :param include_work_items: Whether to include linked work items :type include_work_items: bool :param item_path: Path of item to search under :type item_path: str :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` + :type item_version: :class:`GitVersionDescriptor ` :param to_commit_id: If provided, an upper bound for filtering commits alphabetically :type to_commit_id: str :param to_date: If provided, only include history entries created before this date (string) @@ -1767,6 +1902,8 @@ class GitQueryCommitsCriteria(Model): 'history_mode': {'key': 'historyMode', 'type': 'object'}, 'ids': {'key': 'ids', 'type': '[str]'}, 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_push_data': {'key': 'includePushData', 'type': 'bool'}, + 'include_user_image_url': {'key': 'includeUserImageUrl', 'type': 'bool'}, 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, 'item_path': {'key': 'itemPath', 'type': 'str'}, 'item_version': {'key': 'itemVersion', 'type': 'GitVersionDescriptor'}, @@ -1775,7 +1912,7 @@ class GitQueryCommitsCriteria(Model): 'user': {'key': 'user', 'type': 'str'} } - def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): + def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_push_data=None, include_user_image_url=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): super(GitQueryCommitsCriteria, self).__init__() self.skip = skip self.top = top @@ -1787,6 +1924,8 @@ def __init__(self, skip=None, top=None, author=None, compare_version=None, exclu self.history_mode = history_mode self.ids = ids self.include_links = include_links + self.include_push_data = include_push_data + self.include_user_image_url = include_user_image_url self.include_work_items = include_work_items self.item_path = item_path self.item_version = item_version @@ -1815,13 +1954,13 @@ class GitRef(Model): """GitRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -1829,7 +1968,7 @@ class GitRef(Model): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str """ @@ -1863,7 +2002,7 @@ class GitRefFavorite(Model): """GitRefFavorite. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param identity_id: @@ -1983,7 +2122,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -1993,11 +2132,13 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str + :param size: Compressed size (bytes) of the repository. + :type size: long :param ssh_url: :type ssh_url: str :param url: @@ -2015,12 +2156,13 @@ class GitRepository(Model): 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} } - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, size=None, ssh_url=None, url=None, valid_remote_urls=None): super(GitRepository, self).__init__() self._links = _links self.default_branch = default_branch @@ -2030,6 +2172,7 @@ def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name self.parent_repository = parent_repository self.project = project self.remote_url = remote_url + self.size = size self.ssh_url = ssh_url self.url = url self.valid_remote_urls = valid_remote_urls @@ -2041,9 +2184,9 @@ class GitRepositoryCreateOptions(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -2063,7 +2206,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -2071,7 +2214,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -2135,11 +2278,11 @@ class GitRevert(GitAsyncRefOperation): """GitRevert. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -2166,11 +2309,11 @@ class GitStatus(Model): """GitStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -2276,7 +2419,7 @@ class GitTreeDiff(Model): :param base_tree_id: ObjectId of the base tree of this diff. :type base_tree_id: str :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` + :type diff_entries: list of :class:`GitTreeDiffEntry ` :param target_tree_id: ObjectId of the target tree of this diff. :type target_tree_id: str :param url: REST Url to this resource. @@ -2336,7 +2479,7 @@ class GitTreeDiffResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: list of str :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` + :type tree_diff: :class:`GitTreeDiff ` """ _attribute_map = { @@ -2390,13 +2533,13 @@ class GitTreeRef(Model): """GitTreeRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Sum of sizes of all children :type size: long :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` + :type tree_entries: list of :class:`GitTreeEntryRef ` :param url: Url to tree :type url: str """ @@ -2425,6 +2568,8 @@ class GitUserDate(Model): :type date: datetime :param email: Email address of the user performing the Git operation. :type email: str + :param image_url: Url for the user's avatar. + :type image_url: str :param name: Name of the user performing the Git operation. :type name: str """ @@ -2432,13 +2577,15 @@ class GitUserDate(Model): _attribute_map = { 'date': {'key': 'date', 'type': 'iso-8601'}, 'email': {'key': 'email', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, date=None, email=None, name=None): + def __init__(self, date=None, email=None, image_url=None, name=None): super(GitUserDate, self).__init__() self.date = date self.email = email + self.image_url = image_url self.name = name @@ -2494,7 +2641,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2522,7 +2669,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2541,6 +2688,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -2558,11 +2707,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -2570,6 +2720,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -2578,7 +2729,7 @@ class IdentityRefWithVote(IdentityRef): """IdentityRefWithVote. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2597,6 +2748,8 @@ class IdentityRefWithVote(IdentityRef): :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: @@ -2608,7 +2761,7 @@ class IdentityRefWithVote(IdentityRef): :param vote: Vote on a pull request:
10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected :type vote: int :param voted_for: Groups or teams that that this reviewer contributed to.
Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes. - :type voted_for: list of :class:`IdentityRefWithVote ` + :type voted_for: list of :class:`IdentityRefWithVote ` """ _attribute_map = { @@ -2622,6 +2775,7 @@ class IdentityRefWithVote(IdentityRef): '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'}, 'is_required': {'key': 'isRequired', 'type': 'bool'}, @@ -2630,8 +2784,8 @@ class IdentityRefWithVote(IdentityRef): 'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'} } - 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, profile_url=None, unique_name=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): - super(IdentityRefWithVote, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) + 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, is_required=None, reviewer_url=None, vote=None, voted_for=None): + super(IdentityRefWithVote, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, is_deleted_in_origin=is_deleted_in_origin, profile_url=profile_url, unique_name=unique_name) self.is_required = is_required self.reviewer_url = reviewer_url self.vote = vote @@ -2642,11 +2796,11 @@ class ImportRepositoryValidation(Model): """ImportRepositoryValidation. :param git_source: - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param password: :type password: str :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` :param username: :type username: str """ @@ -2690,11 +2844,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -2754,6 +2908,86 @@ def __init__(self, from_=None, op=None, path=None, value=None): self.value = value +class LineDiffBlock(Model): + """LineDiffBlock. + + :param change_type: Type of change that was made to the block. + :type change_type: object + :param modified_line_number_start: Line number where this block starts in modified file. + :type modified_line_number_start: int + :param modified_lines_count: Count of lines in this block in modified file. + :type modified_lines_count: int + :param original_line_number_start: Line number where this block starts in original file. + :type original_line_number_start: int + :param original_lines_count: Count of lines in this block in original file. + :type original_lines_count: int + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'modified_line_number_start': {'key': 'modifiedLineNumberStart', 'type': 'int'}, + 'modified_lines_count': {'key': 'modifiedLinesCount', 'type': 'int'}, + 'original_line_number_start': {'key': 'originalLineNumberStart', 'type': 'int'}, + 'original_lines_count': {'key': 'originalLinesCount', 'type': 'int'} + } + + def __init__(self, change_type=None, modified_line_number_start=None, modified_lines_count=None, original_line_number_start=None, original_lines_count=None): + super(LineDiffBlock, self).__init__() + self.change_type = change_type + self.modified_line_number_start = modified_line_number_start + self.modified_lines_count = modified_lines_count + self.original_line_number_start = original_line_number_start + self.original_lines_count = original_lines_count + + +class PolicyConfigurationRef(Model): + """PolicyConfigurationRef. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, type=None, url=None): + super(PolicyConfigurationRef, self).__init__() + self.id = id + self.type = type + self.url = url + + +class PolicyTypeRef(Model): + """PolicyTypeRef. + + :param display_name: Display name of the policy type. + :type display_name: str + :param id: The policy type ID. + :type id: str + :param url: The URL where the policy type can be retrieved. + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, url=None): + super(PolicyTypeRef, self).__init__() + self.display_name = display_name + self.id = id + self.url = url + + class ReferenceLinks(Model): """ReferenceLinks. @@ -2796,7 +3030,7 @@ class ShareNotificationContext(Model): :param message: Optional user note or message. :type message: str :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` + :type receivers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -2859,6 +3093,8 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. @@ -2877,6 +3113,7 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -2886,9 +3123,10 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id self.name = name @@ -2898,13 +3136,38 @@ def __init__(self, abbreviation=None, description=None, id=None, name=None, revi self.visibility = visibility +class VersionedPolicyConfigurationRef(PolicyConfigurationRef): + """VersionedPolicyConfigurationRef. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + :param revision: The policy configuration revision ID. + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, type=None, url=None, revision=None): + super(VersionedPolicyConfigurationRef, self).__init__(id=id, type=type, url=url) + self.revision = revision + + class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -3003,13 +3266,13 @@ class GitCommit(GitCommitRef): """GitCommit. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -3017,19 +3280,19 @@ class GitCommit(GitCommitRef): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str + :param push: The push associated with this commit. + :type push: :class:`GitPushRef ` :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` - :param push: - :type push: :class:`GitPushRef ` + :type work_items: list of :class:`ResourceRef ` :param tree_id: :type tree_id: str """ @@ -3044,17 +3307,16 @@ class GitCommit(GitCommitRef): 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, 'parents': {'key': 'parents', 'type': '[str]'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, 'url': {'key': 'url', 'type': 'str'}, 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'}, - 'push': {'key': 'push', 'type': 'GitPushRef'}, 'tree_id': {'key': 'treeId', 'type': 'str'} } - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None, push=None, tree_id=None): - super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) - self.push = push + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, push=None, remote_url=None, statuses=None, url=None, work_items=None, tree_id=None): + super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, push=push, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) self.tree_id = tree_id @@ -3062,13 +3324,13 @@ class GitForkRef(GitRef): """GitForkRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -3076,11 +3338,11 @@ class GitForkRef(GitRef): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param repository: The repository ID of the fork. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3105,11 +3367,11 @@ class GitItem(ItemModel): """GitItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -3123,7 +3385,7 @@ class GitItem(ItemModel): :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) :type git_object_type: object :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` + :type latest_processed_change: :class:`GitCommitRef ` :param object_id: Git object id :type object_id: str :param original_object_id: Git object id @@ -3154,15 +3416,49 @@ def __init__(self, _links=None, content=None, content_metadata=None, is_folder=N self.original_object_id = original_object_id +class GitMerge(GitMergeParameters): + """GitMerge. + + :param comment: Comment or message of the commit. + :type comment: str + :param parents: An enumeration of the parent commit IDs for the merge commit. + :type parents: list of str + :param _links: Reference links. + :type _links: :class:`ReferenceLinks ` + :param detailed_status: Detailed status of the merge operation. + :type detailed_status: :class:`GitMergeOperationStatusDetail ` + :param merge_operation_id: Unique identifier for the merge operation. + :type merge_operation_id: int + :param status: Status of the merge operation. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitMergeOperationStatusDetail'}, + 'merge_operation_id': {'key': 'mergeOperationId', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, parents=None, _links=None, detailed_status=None, merge_operation_id=None, status=None): + super(GitMerge, self).__init__(comment=comment, parents=parents) + self._links = _links + self.detailed_status = detailed_status + self.merge_operation_id = merge_operation_id + self.status = status + + class GitPullRequestStatus(GitStatus): """GitPullRequestStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -3178,7 +3474,7 @@ class GitPullRequestStatus(GitStatus): :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. :type iteration_id: int :param properties: Custom properties of the status. - :type properties: :class:`object ` + :type properties: :class:`object ` """ _attribute_map = { @@ -3205,23 +3501,23 @@ class GitPush(GitPushRef): """GitPush. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: :type url: str :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` + :type ref_updates: list of :class:`GitRefUpdate ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3276,6 +3572,58 @@ def __init__(self, version=None, version_options=None, version_type=None, target self.target_version_type = target_version_type +class PolicyConfiguration(VersionedPolicyConfigurationRef): + """PolicyConfiguration. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + :param revision: The policy configuration revision ID. + :type revision: int + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param created_by: A reference to the identity that created the policy. + :type created_by: :class:`IdentityRef ` + :param created_date: The date and time when the policy was created. + :type created_date: datetime + :param is_blocking: Indicates whether the policy is blocking. + :type is_blocking: bool + :param is_deleted: Indicates whether the policy has been (soft) deleted. + :type is_deleted: bool + :param is_enabled: Indicates whether the policy is enabled. + :type is_enabled: bool + :param settings: The policy configuration settings. + :type settings: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'is_blocking': {'key': 'isBlocking', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'settings': {'key': 'settings', 'type': 'object'} + } + + def __init__(self, id=None, type=None, url=None, revision=None, _links=None, created_by=None, created_date=None, is_blocking=None, is_deleted=None, is_enabled=None, settings=None): + super(PolicyConfiguration, self).__init__(id=id, type=type, url=url, revision=revision) + self._links = _links + self.created_by = created_by + self.created_date = created_date + self.is_blocking = is_blocking + self.is_deleted = is_deleted + self.is_enabled = is_enabled + self.settings = settings + + __all__ = [ 'Attachment', 'Change', @@ -3286,6 +3634,9 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'CommentThreadContext', 'CommentTrackingCriteria', 'FileContentMetadata', + 'FileDiff', + 'FileDiffParams', + 'FileDiffsCriteria', 'GitAnnotatedTag', 'GitAsyncRefOperation', 'GitAsyncRefOperationDetail', @@ -3311,7 +3662,9 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'GitImportTfvcSource', 'GitItemDescriptor', 'GitItemRequestData', + 'GitMergeOperationStatusDetail', 'GitMergeOriginRef', + 'GitMergeParameters', 'GitObject', 'GitPullRequest', 'GitPullRequestCommentThread', @@ -3356,12 +3709,16 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'ItemContent', 'ItemModel', 'JsonPatchOperation', + 'LineDiffBlock', + 'PolicyConfigurationRef', + 'PolicyTypeRef', 'ReferenceLinks', 'ResourceRef', 'ShareNotificationContext', 'SourceToTargetRef', 'TeamProjectCollectionReference', 'TeamProjectReference', + 'VersionedPolicyConfigurationRef', 'VstsInfo', 'WebApiCreateTagRequestData', 'WebApiTagDefinition', @@ -3369,7 +3726,9 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'GitCommit', 'GitForkRef', 'GitItem', + 'GitMerge', 'GitPullRequestStatus', 'GitPush', 'GitTargetVersionDescriptor', + 'PolicyConfiguration', ] diff --git a/azure-devops/azure/devops/v4_1/graph/__init__.py b/azure-devops/azure/devops/v5_0/graph/__init__.py similarity index 95% rename from azure-devops/azure/devops/v4_1/graph/__init__.py rename to azure-devops/azure/devops/v5_0/graph/__init__.py index ddcfc123..3af78ec0 100644 --- a/azure-devops/azure/devops/v4_1/graph/__init__.py +++ b/azure-devops/azure/devops/v5_0/graph/__init__.py @@ -11,6 +11,7 @@ __all__ = [ 'GraphCachePolicies', 'GraphDescriptorResult', + 'GraphFederatedProviderData', 'GraphGlobalExtendedPropertyBatch', 'GraphGroup', 'GraphGroupCreationContext', @@ -18,6 +19,7 @@ 'GraphMembership', 'GraphMembershipState', 'GraphMembershipTraversal', + 'GraphProviderInfo', 'GraphScope', 'GraphScopeCreationContext', 'GraphStorageKeyResult', @@ -27,7 +29,6 @@ 'GraphSubjectLookupKey', 'GraphUser', 'GraphUserCreationContext', - 'IdentityKeyMap', 'JsonPatchOperation', 'PagedGraphGroups', 'PagedGraphUsers', diff --git a/azure-devops/azure/devops/v5_0/graph/graph_client.py b/azure-devops/azure/devops/v5_0/graph/graph_client.py new file mode 100644 index 00000000..930cd435 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/graph/graph_client.py @@ -0,0 +1,354 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class GraphClient(Client): + """Graph + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GraphClient, 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 = 'bb1e7ec9-e901-4b68-999a-de7012b920f8' + + def get_descriptor(self, storage_key): + """GetDescriptor. + [Preview API] Resolve a storage key to a descriptor + :param str storage_key: Storage key of the subject (user, group, scope, etc.) to resolve + :rtype: :class:` ` + """ + route_values = {} + if storage_key is not None: + route_values['storageKey'] = self._serialize.url('storage_key', storage_key, 'str') + response = self._send(http_method='GET', + location_id='048aee0a-7072-4cde-ab73-7af77b1e0b4e', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphDescriptorResult', response) + + def create_group(self, creation_context, scope_descriptor=None, group_descriptors=None): + """CreateGroup. + [Preview API] Create a new VSTS group or materialize an existing AAD group. + :param :class:` ` creation_context: The subset of the full graph group used to uniquely find the graph subject in an external provider. + :param str scope_descriptor: A descriptor referencing the scope (collection, project) in which the group should be created. If omitted, will be created in the scope of the enclosing account or organization. Valid only for VSTS groups. + :param [str] group_descriptors: A comma separated list of descriptors referencing groups you want the graph group to join + :rtype: :class:` ` + """ + query_parameters = {} + if scope_descriptor is not None: + query_parameters['scopeDescriptor'] = self._serialize.query('scope_descriptor', scope_descriptor, 'str') + if group_descriptors is not None: + group_descriptors = ",".join(group_descriptors) + query_parameters['groupDescriptors'] = self._serialize.query('group_descriptors', group_descriptors, 'str') + content = self._serialize.body(creation_context, 'GraphGroupCreationContext') + response = self._send(http_method='POST', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='5.0-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('GraphGroup', response) + + def delete_group(self, group_descriptor): + """DeleteGroup. + [Preview API] Removes a VSTS group from all of its parent groups. + :param str group_descriptor: The descriptor of the group to delete. + """ + route_values = {} + if group_descriptor is not None: + route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') + self._send(http_method='DELETE', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='5.0-preview.1', + route_values=route_values) + + def get_group(self, group_descriptor): + """GetGroup. + [Preview API] Get a group by its descriptor. + :param str group_descriptor: The descriptor of the desired graph group. + :rtype: :class:` ` + """ + route_values = {} + if group_descriptor is not None: + route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') + response = self._send(http_method='GET', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphGroup', response) + + def list_groups(self, scope_descriptor=None, subject_types=None, continuation_token=None): + """ListGroups. + [Preview API] Gets a list of all groups in the current scope (usually organization or account). + :param str scope_descriptor: Specify a non-default scope (collection, project) to search for groups. + :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. Microsoft.IdentityModel.Claims.ClaimsIdentity + :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. + :rtype: :class:` ` + """ + query_parameters = {} + if scope_descriptor is not None: + query_parameters['scopeDescriptor'] = self._serialize.query('scope_descriptor', scope_descriptor, 'str') + if subject_types is not None: + subject_types = ",".join(subject_types) + query_parameters['subjectTypes'] = self._serialize.query('subject_types', subject_types, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='5.0-preview.1', + query_parameters=query_parameters) + response_object = models.PagedGraphGroups() + response_object.graph_groups = self._deserialize('[GraphGroup]', self._unwrap_collection(response)) + response_object.continuation_token = response.headers.get('X-MS-ContinuationToken') + return response_object + + def update_group(self, group_descriptor, patch_document): + """UpdateGroup. + [Preview API] Update the properties of a VSTS group. + :param str group_descriptor: The descriptor of the group to modify. + :param :class:`<[JsonPatchOperation]> ` patch_document: The JSON+Patch document containing the fields to alter. + :rtype: :class:` ` + """ + route_values = {} + if group_descriptor is not None: + route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') + content = self._serialize.body(patch_document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', + version='5.0-preview.1', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + return self._deserialize('GraphGroup', response) + + def add_membership(self, subject_descriptor, container_descriptor): + """AddMembership. + [Preview API] Create a new membership between a container and subject. + :param str subject_descriptor: A descriptor to a group or user that can be the child subject in the relationship. + :param str container_descriptor: A descriptor to a group that can be the container in the relationship. + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + response = self._send(http_method='PUT', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphMembership', response) + + def check_membership_existence(self, subject_descriptor, container_descriptor): + """CheckMembershipExistence. + [Preview API] Check to see if a membership relationship between a container and subject exists. + :param str subject_descriptor: The group or user that is a child subject of the relationship. + :param str container_descriptor: The group that is the container in the relationship. + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + self._send(http_method='HEAD', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='5.0-preview.1', + route_values=route_values) + + def get_membership(self, subject_descriptor, container_descriptor): + """GetMembership. + [Preview API] Get a membership relationship between a container and subject. + :param str subject_descriptor: A descriptor to the child subject in the relationship. + :param str container_descriptor: A descriptor to the container in the relationship. + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + response = self._send(http_method='GET', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphMembership', response) + + def remove_membership(self, subject_descriptor, container_descriptor): + """RemoveMembership. + [Preview API] Deletes a membership between a container and subject. + :param str subject_descriptor: A descriptor to a group or user that is the child subject in the relationship. + :param str container_descriptor: A descriptor to a group that is the container in the relationship. + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + if container_descriptor is not None: + route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') + self._send(http_method='DELETE', + location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', + version='5.0-preview.1', + route_values=route_values) + + def list_memberships(self, subject_descriptor, direction=None, depth=None): + """ListMemberships. + [Preview API] Get all the memberships where this descriptor is a member in the relationship. + :param str subject_descriptor: Fetch all direct memberships of this descriptor. + :param str direction: Defaults to Up. + :param int depth: The maximum number of edges to traverse up or down the membership tree. Currently the only supported value is '1'. + :rtype: [GraphMembership] + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + query_parameters = {} + if direction is not None: + query_parameters['direction'] = self._serialize.query('direction', direction, 'str') + if depth is not None: + query_parameters['depth'] = self._serialize.query('depth', depth, 'int') + response = self._send(http_method='GET', + location_id='e34b6394-6b30-4435-94a9-409a5eef3e31', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GraphMembership]', self._unwrap_collection(response)) + + def get_membership_state(self, subject_descriptor): + """GetMembershipState. + [Preview API] Check whether a subject is active or inactive. + :param str subject_descriptor: Descriptor of the subject (user, group, scope, etc.) to check state of + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + response = self._send(http_method='GET', + location_id='1ffe5c94-1144-4191-907b-d0211cad36a8', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphMembershipState', response) + + def get_provider_info(self, user_descriptor): + """GetProviderInfo. + [Preview API] + :param str user_descriptor: + :rtype: :class:` ` + """ + route_values = {} + if user_descriptor is not None: + route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') + response = self._send(http_method='GET', + location_id='1e377995-6fa2-4588-bd64-930186abdcfa', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphProviderInfo', response) + + def get_storage_key(self, subject_descriptor): + """GetStorageKey. + [Preview API] Resolve a descriptor to a storage key. + :param str subject_descriptor: + :rtype: :class:` ` + """ + route_values = {} + if subject_descriptor is not None: + route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') + response = self._send(http_method='GET', + location_id='eb85f8cc-f0f6-4264-a5b1-ffe2e4d4801f', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphStorageKeyResult', response) + + def lookup_subjects(self, subject_lookup): + """LookupSubjects. + [Preview API] Resolve descriptors to users, groups or scopes (Subjects) in a batch. + :param :class:` ` subject_lookup: A list of descriptors that specifies a subset of subjects to retrieve. Each descriptor uniquely identifies the subject across all instance scopes, but only at a single point in time. + :rtype: {GraphSubject} + """ + content = self._serialize.body(subject_lookup, 'GraphSubjectLookup') + response = self._send(http_method='POST', + location_id='4dd4d168-11f2-48c4-83e8-756fa0de027c', + version='5.0-preview.1', + content=content) + return self._deserialize('{GraphSubject}', self._unwrap_collection(response)) + + def create_user(self, creation_context, group_descriptors=None): + """CreateUser. + [Preview API] Materialize an existing AAD or MSA user into the VSTS account. + :param :class:` ` creation_context: The subset of the full graph user used to uniquely find the graph subject in an external provider. + :param [str] group_descriptors: A comma separated list of descriptors of groups you want the graph user to join + :rtype: :class:` ` + """ + query_parameters = {} + if group_descriptors is not None: + group_descriptors = ",".join(group_descriptors) + query_parameters['groupDescriptors'] = self._serialize.query('group_descriptors', group_descriptors, 'str') + content = self._serialize.body(creation_context, 'GraphUserCreationContext') + response = self._send(http_method='POST', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='5.0-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('GraphUser', response) + + def delete_user(self, user_descriptor): + """DeleteUser. + [Preview API] Disables a user. + :param str user_descriptor: The descriptor of the user to delete. + """ + route_values = {} + if user_descriptor is not None: + route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') + self._send(http_method='DELETE', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='5.0-preview.1', + route_values=route_values) + + def get_user(self, user_descriptor): + """GetUser. + [Preview API] Get a user by its descriptor. + :param str user_descriptor: The descriptor of the desired user. + :rtype: :class:` ` + """ + route_values = {} + if user_descriptor is not None: + route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') + response = self._send(http_method='GET', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GraphUser', response) + + def list_users(self, subject_types=None, continuation_token=None): + """ListUsers. + [Preview API] Get a list of all users in a given scope. + :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. msa’, ‘aad’, ‘svc’ (service identity), ‘imp’ (imported identity), etc. + :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. + :rtype: :class:` ` + """ + query_parameters = {} + if subject_types is not None: + subject_types = ",".join(subject_types) + query_parameters['subjectTypes'] = self._serialize.query('subject_types', subject_types, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', + version='5.0-preview.1', + query_parameters=query_parameters) + response_object = models.PagedGraphUsers() + response_object.graph_users = self._deserialize('[GraphUser]', self._unwrap_collection(response)) + response_object.continuation_token = response.headers.get('X-MS-ContinuationToken') + return response_object + diff --git a/azure-devops/azure/devops/v4_1/graph/models.py b/azure-devops/azure/devops/v5_0/graph/models.py similarity index 85% rename from azure-devops/azure/devops/v4_1/graph/models.py rename to azure-devops/azure/devops/v5_0/graph/models.py index b18136b8..844930a2 100644 --- a/azure-devops/azure/devops/v4_1/graph/models.py +++ b/azure-devops/azure/devops/v5_0/graph/models.py @@ -29,9 +29,9 @@ class GraphDescriptorResult(Model): """GraphDescriptorResult. :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: - :type value: :class:`str ` + :type value: :class:`str ` """ _attribute_map = { @@ -45,13 +45,45 @@ def __init__(self, _links=None, value=None): self.value = value +class GraphFederatedProviderData(Model): + """GraphFederatedProviderData. + + :param access_token: The access token that can be used to communicated with the federated provider on behalf on the target identity, if we were able to successfully acquire one, otherwise null, if we were not. + :type access_token: str + :param can_query_access_token: Whether or not the immediate provider (i.e. AAD) has indicated that we can call them to attempt to get an access token to communicate with the federated provider on behalf of the target identity. + :type can_query_access_token: bool + :param provider_name: The name of the federated provider, e.g. "github.com". + :type provider_name: str + :param subject_descriptor: The descriptor of the graph subject to which this federated provider data corresponds. + :type subject_descriptor: str + :param version: The version number of this federated provider data, which corresponds to when it was last updated. Can be used to prevent returning stale provider data from the cache when the caller is aware of a newer version, such as to prevent local cache poisoning from a remote cache or store. This is the app layer equivalent of the data layer sequence ID. + :type version: long + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'can_query_access_token': {'key': 'canQueryAccessToken', 'type': 'bool'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'long'} + } + + def __init__(self, access_token=None, can_query_access_token=None, provider_name=None, subject_descriptor=None, version=None): + super(GraphFederatedProviderData, self).__init__() + self.access_token = access_token + self.can_query_access_token = can_query_access_token + self.provider_name = provider_name + self.subject_descriptor = subject_descriptor + self.version = version + + class GraphGlobalExtendedPropertyBatch(Model): """GraphGlobalExtendedPropertyBatch. :param property_name_filters: :type property_name_filters: list of str :param subject_descriptors: - :type subject_descriptors: list of :class:`str ` + :type subject_descriptors: list of :class:`str ` """ _attribute_map = { @@ -85,7 +117,7 @@ class GraphMembership(Model): """GraphMembership. :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param container_descriptor: :type container_descriptor: str :param member_descriptor: @@ -109,7 +141,7 @@ class GraphMembershipState(Model): """GraphMembershipState. :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param active: When true, the membership is active :type active: bool """ @@ -133,11 +165,11 @@ class GraphMembershipTraversal(Model): :param is_complete: When true, the subject is traversed completely :type is_complete: bool :param subject_descriptor: The traversed subject descriptor - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param traversed_subject_ids: Subject descriptor ids of the traversed members :type traversed_subject_ids: list of str :param traversed_subjects: Subject descriptors of the traversed members - :type traversed_subjects: list of :class:`str ` + :type traversed_subjects: list of :class:`str ` """ _attribute_map = { @@ -157,6 +189,34 @@ def __init__(self, incompleteness_reason=None, is_complete=None, subject_descrip self.traversed_subjects = traversed_subjects +class GraphProviderInfo(Model): + """GraphProviderInfo. + + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AAD the tenantID of the directory.) + :type domain: str + :param origin: The type of source provider for the origin identifier (ex: "aad", "msa") + :type origin: str + :param origin_id: The unique identifier from the system of origin. (For MSA this is the PUID in hex notation, for AAD this is the object id.) + :type origin_id: str + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'} + } + + def __init__(self, descriptor=None, domain=None, origin=None, origin_id=None): + super(GraphProviderInfo, self).__init__() + self.descriptor = descriptor + self.domain = domain + self.origin = origin + self.origin_id = origin_id + + class GraphScopeCreationContext(Model): """GraphScopeCreationContext. @@ -197,7 +257,7 @@ class GraphStorageKeyResult(Model): """GraphStorageKeyResult. :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: :type value: str """ @@ -217,7 +277,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -245,7 +305,7 @@ class GraphSubjectLookup(Model): """GraphSubjectLookup. :param lookup_keys: - :type lookup_keys: list of :class:`GraphSubjectLookupKey ` + :type lookup_keys: list of :class:`GraphSubjectLookupKey ` """ _attribute_map = { @@ -261,7 +321,7 @@ class GraphSubjectLookupKey(Model): """GraphSubjectLookupKey. :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` """ _attribute_map = { @@ -289,30 +349,6 @@ def __init__(self, storage_key=None): self.storage_key = storage_key -class IdentityKeyMap(Model): - """IdentityKeyMap. - - :param cuid: - :type cuid: str - :param storage_key: - :type storage_key: str - :param subject_type: - :type subject_type: str - """ - - _attribute_map = { - 'cuid': {'key': 'cuid', 'type': 'str'}, - 'storage_key': {'key': 'storageKey', 'type': 'str'}, - 'subject_type': {'key': 'subjectType', 'type': 'str'} - } - - def __init__(self, cuid=None, storage_key=None, subject_type=None): - super(IdentityKeyMap, self).__init__() - self.cuid = cuid - self.storage_key = storage_key - self.subject_type = subject_type - - class JsonPatchOperation(Model): """JsonPatchOperation. @@ -347,7 +383,7 @@ class PagedGraphGroups(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_groups: The enumerable list of groups found within a page. - :type graph_groups: list of :class:`GraphGroup ` + :type graph_groups: list of :class:`GraphGroup ` """ _attribute_map = { @@ -367,7 +403,7 @@ class PagedGraphUsers(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_users: The enumerable set of users found within a page. - :type graph_users: list of :class:`GraphUser ` + :type graph_users: list of :class:`GraphUser ` """ _attribute_map = { @@ -401,7 +437,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -441,7 +477,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -456,8 +492,6 @@ class GraphMember(GraphSubject): :type origin_id: str :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) :type domain: str :param mail_address: The email address of record for a given graph member. This may be different than the principal name. @@ -475,15 +509,13 @@ class GraphMember(GraphSubject): 'origin': {'key': 'origin', 'type': 'str'}, 'origin_id': {'key': 'originId', 'type': 'str'}, 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, 'mail_address': {'key': 'mailAddress', 'type': 'str'}, 'principal_name': {'key': 'principalName', 'type': 'str'} } - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None): super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) - self.cuid = cuid self.domain = domain self.mail_address = mail_address self.principal_name = principal_name @@ -493,7 +525,7 @@ class GraphScope(GraphSubject): """GraphScope. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -549,7 +581,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -564,14 +596,16 @@ class GraphUser(GraphMember): :type origin_id: str :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) :type domain: str :param mail_address: The email address of record for a given graph member. This may be different than the principal name. :type mail_address: str :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. :type principal_name: str + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param metadata_update_date: + :type metadata_update_date: datetime :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. :type meta_type: str """ @@ -585,15 +619,18 @@ class GraphUser(GraphMember): 'origin': {'key': 'origin', 'type': 'str'}, 'origin_id': {'key': 'originId', 'type': 'str'}, 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, 'mail_address': {'key': 'mailAddress', 'type': 'str'}, 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'}, + 'metadata_update_date': {'key': 'metadataUpdateDate', 'type': 'iso-8601'}, 'meta_type': {'key': 'metaType', 'type': 'str'} } - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): - super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, is_deleted_in_origin=None, metadata_update_date=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.is_deleted_in_origin = is_deleted_in_origin + self.metadata_update_date = metadata_update_date self.meta_type = meta_type @@ -601,7 +638,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -616,8 +653,6 @@ class GraphGroup(GraphMember): :type origin_id: str :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) :type domain: str :param mail_address: The email address of record for a given graph member. This may be different than the principal name. @@ -657,7 +692,6 @@ class GraphGroup(GraphMember): 'origin': {'key': 'origin', 'type': 'str'}, 'origin_id': {'key': 'originId', 'type': 'str'}, 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, 'mail_address': {'key': 'mailAddress', 'type': 'str'}, 'principal_name': {'key': 'principalName', 'type': 'str'}, @@ -674,8 +708,8 @@ class GraphGroup(GraphMember): 'special_type': {'key': 'specialType', 'type': 'str'} } - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): - super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) self.description = description self.is_cross_project = is_cross_project self.is_deleted = is_deleted @@ -692,18 +726,19 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, le __all__ = [ 'GraphCachePolicies', 'GraphDescriptorResult', + 'GraphFederatedProviderData', 'GraphGlobalExtendedPropertyBatch', 'GraphGroupCreationContext', 'GraphMembership', 'GraphMembershipState', 'GraphMembershipTraversal', + 'GraphProviderInfo', 'GraphScopeCreationContext', 'GraphStorageKeyResult', 'GraphSubjectBase', 'GraphSubjectLookup', 'GraphSubjectLookupKey', 'GraphUserCreationContext', - 'IdentityKeyMap', 'JsonPatchOperation', 'PagedGraphGroups', 'PagedGraphUsers', diff --git a/azure-devops/azure/devops/v4_1/identity/__init__.py b/azure-devops/azure/devops/v5_0/identity/__init__.py similarity index 95% rename from azure-devops/azure/devops/v4_1/identity/__init__.py rename to azure-devops/azure/devops/v5_0/identity/__init__.py index b6f5fd55..5c37a45a 100644 --- a/azure-devops/azure/devops/v4_1/identity/__init__.py +++ b/azure-devops/azure/devops/v5_0/identity/__init__.py @@ -23,7 +23,9 @@ 'IdentitySelf', 'IdentitySnapshot', 'IdentityUpdateData', + 'JsonPatchOperation', 'JsonWebToken', 'RefreshTokenGrant', + 'SwapIdentityInfo', 'TenantInfo', ] diff --git a/azure-devops/azure/devops/v4_1/identity/identity_client.py b/azure-devops/azure/devops/v5_0/identity/identity_client.py similarity index 83% rename from azure-devops/azure/devops/v4_1/identity/identity_client.py rename to azure-devops/azure/devops/v5_0/identity/identity_client.py index c413ed60..36832440 100644 --- a/azure-devops/azure/devops/v4_1/identity/identity_client.py +++ b/azure-devops/azure/devops/v5_0/identity/identity_client.py @@ -28,13 +28,13 @@ def __init__(self, base_url=None, creds=None): def create_or_bind_with_claims(self, source_identity): """CreateOrBindWithClaims. [Preview API] - :param :class:` ` source_identity: - :rtype: :class:` ` + :param :class:` ` source_identity: + :rtype: :class:` ` """ content = self._serialize.body(source_identity, 'Identity') response = self._send(http_method='PUT', location_id='90ddfe71-171c-446c-bf3b-b597cd562afd', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('Identity', response) @@ -43,7 +43,7 @@ def get_descriptor_by_id(self, id, is_master_id=None): [Preview API] :param str id: :param bool is_master_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -53,20 +53,20 @@ def get_descriptor_by_id(self, id, is_master_id=None): query_parameters['isMasterId'] = self._serialize.query('is_master_id', is_master_id, 'bool') response = self._send(http_method='GET', location_id='a230389a-94f2-496c-839f-c929787496dd', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) def create_groups(self, container): """CreateGroups. - :param :class:` ` container: + :param :class:` ` container: :rtype: [Identity] """ content = self._serialize.body(container, 'object') response = self._send(http_method='POST', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.1', + version='5.0', content=content) return self._deserialize('[Identity]', self._unwrap_collection(response)) @@ -79,7 +79,7 @@ def delete_group(self, group_id): route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') self._send(http_method='DELETE', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.1', + version='5.0', route_values=route_values) def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=None): @@ -101,27 +101,33 @@ def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=Non query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[Identity]', self._unwrap_collection(response)) - def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id=None): + def get_identity_changes(self, identity_sequence_id, group_sequence_id, organization_identity_sequence_id=None, page_size=None, scope_id=None): """GetIdentityChanges. :param int identity_sequence_id: :param int group_sequence_id: + :param int organization_identity_sequence_id: + :param int page_size: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if identity_sequence_id is not None: query_parameters['identitySequenceId'] = self._serialize.query('identity_sequence_id', identity_sequence_id, 'int') if group_sequence_id is not None: query_parameters['groupSequenceId'] = self._serialize.query('group_sequence_id', group_sequence_id, 'int') + if organization_identity_sequence_id is not None: + query_parameters['organizationIdentitySequenceId'] = self._serialize.query('organization_identity_sequence_id', organization_identity_sequence_id, 'int') + if page_size is not None: + query_parameters['pageSize'] = self._serialize.query('page_size', page_size, 'int') if scope_id is not None: query_parameters['scopeId'] = self._serialize.query('scope_id', scope_id, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('ChangedIdentities', response) @@ -135,14 +141,15 @@ def get_user_identity_ids_by_domain_id(self, domain_id): query_parameters['domainId'] = self._serialize.query('domain_id', domain_id, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) - def read_identities(self, descriptors=None, identity_ids=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): + def read_identities(self, descriptors=None, identity_ids=None, subject_descriptors=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): """ReadIdentities. :param str descriptors: :param str identity_ids: + :param str subject_descriptors: :param str search_filter: :param str filter_value: :param str query_membership: @@ -156,6 +163,8 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') if identity_ids is not None: query_parameters['identityIds'] = self._serialize.query('identity_ids', identity_ids, 'str') + if subject_descriptors is not None: + query_parameters['subjectDescriptors'] = self._serialize.query('subject_descriptors', subject_descriptors, 'str') if search_filter is not None: query_parameters['searchFilter'] = self._serialize.query('search_filter', search_filter, 'str') if filter_value is not None: @@ -170,7 +179,7 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non query_parameters['options'] = self._serialize.query('options', options, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[Identity]', self._unwrap_collection(response)) @@ -190,7 +199,7 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[Identity]', self._unwrap_collection(response)) @@ -199,7 +208,7 @@ def read_identity(self, identity_id, query_membership=None, properties=None): :param str identity_id: :param str query_membership: :param str properties: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if identity_id is not None: @@ -211,26 +220,26 @@ def read_identity(self, identity_id, query_membership=None, properties=None): query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Identity', response) def update_identities(self, identities): """UpdateIdentities. - :param :class:` ` identities: + :param :class:` ` identities: :rtype: [IdentityUpdateData] """ content = self._serialize.body(identities, 'VssJsonCollectionWrapper') response = self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1', + version='5.0', content=content) return self._deserialize('[IdentityUpdateData]', self._unwrap_collection(response)) def update_identity(self, identity, identity_id): """UpdateIdentity. - :param :class:` ` identity: + :param :class:` ` identity: :param str identity_id: """ route_values = {} @@ -239,32 +248,32 @@ def update_identity(self, identity, identity_id): content = self._serialize.body(identity, 'Identity') self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.1', + version='5.0', route_values=route_values, content=content) def create_identity(self, framework_identity_info): """CreateIdentity. - :param :class:` ` framework_identity_info: - :rtype: :class:` ` + :param :class:` ` framework_identity_info: + :rtype: :class:` ` """ content = self._serialize.body(framework_identity_info, 'FrameworkIdentityInfo') response = self._send(http_method='PUT', location_id='dd55f0eb-6ea2-4fe4-9ebe-919e7dd1dfb4', - version='4.1', + version='5.0', content=content) return self._deserialize('Identity', response) def read_identity_batch(self, batch_info): """ReadIdentityBatch. [Preview API] - :param :class:` ` batch_info: + :param :class:` ` batch_info: :rtype: [Identity] """ content = self._serialize.body(batch_info, 'IdentityBatchInfo') response = self._send(http_method='POST', location_id='299e50df-fe45-4d3a-8b5b-a5836fac74dc', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('[Identity]', self._unwrap_collection(response)) @@ -272,14 +281,14 @@ def get_identity_snapshot(self, scope_id): """GetIdentitySnapshot. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') response = self._send(http_method='GET', location_id='d56223df-8ccd-45c9-89b4-eddf692400d7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('IdentitySnapshot', response) @@ -290,17 +299,17 @@ def get_max_sequence_id(self): """ response = self._send(http_method='GET', location_id='e4a70778-cb2c-4e85-b7cc-3f3c7ae2d408', - version='4.1') + version='5.0') return self._deserialize('long', response) def get_self(self): """GetSelf. Read identity of the home tenant request user. - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='4bb02b5b-c120-4be2-b68e-21f7c50a4b82', - version='4.1') + version='5.0') return self._deserialize('IdentitySelf', response) def add_member(self, container_id, member_id): @@ -317,7 +326,7 @@ def add_member(self, container_id, member_id): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') response = self._send(http_method='PUT', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('bool', response) @@ -327,7 +336,7 @@ def read_member(self, container_id, member_id, query_membership=None): :param str container_id: :param str member_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if container_id is not None: @@ -339,7 +348,7 @@ def read_member(self, container_id, member_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) @@ -359,7 +368,7 @@ def read_members(self, container_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -378,7 +387,7 @@ def remove_member(self, container_id, member_id): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') response = self._send(http_method='DELETE', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('bool', response) @@ -388,7 +397,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): :param str member_id: :param str container_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if member_id is not None: @@ -400,7 +409,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) @@ -420,7 +429,7 @@ def read_members_of(self, member_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -428,9 +437,9 @@ def read_members_of(self, member_id, query_membership=None): def create_scope(self, info, scope_id): """CreateScope. [Preview API] - :param :class:` ` info: + :param :class:` ` info: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -438,7 +447,7 @@ def create_scope(self, info, scope_id): content = self._serialize.body(info, 'CreateScopeInfo') response = self._send(http_method='PUT', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('IdentityScope', response) @@ -453,21 +462,21 @@ def delete_scope(self, scope_id): route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') self._send(http_method='DELETE', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values) def get_scope_by_id(self, scope_id): """GetScopeById. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') response = self._send(http_method='GET', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values) return self._deserialize('IdentityScope', response) @@ -475,65 +484,66 @@ def get_scope_by_name(self, scope_name): """GetScopeByName. [Preview API] :param str scope_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_name is not None: query_parameters['scopeName'] = self._serialize.query('scope_name', scope_name, 'str') response = self._send(http_method='GET', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.1-preview.1', + version='5.0-preview.2', query_parameters=query_parameters) return self._deserialize('IdentityScope', response) - def rename_scope(self, rename_scope, scope_id): - """RenameScope. + def update_scope(self, patch_document, scope_id): + """UpdateScope. [Preview API] - :param :class:` ` rename_scope: + :param :class:`<[JsonPatchOperation]> ` patch_document: :param str scope_id: """ route_values = {} if scope_id is not None: route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') - content = self._serialize.body(rename_scope, 'IdentityScope') + content = self._serialize.body(patch_document, '[JsonPatchOperation]') self._send(http_method='PATCH', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, - content=content) + content=content, + media_type='application/json-patch+json') def get_signed_in_token(self): """GetSignedInToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='6074ff18-aaad-4abb-a41e-5c75f6178057', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('AccessTokenResult', response) def get_signout_token(self): """GetSignoutToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='be39e83c-7529-45e9-9c67-0410885880da', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('AccessTokenResult', response) def get_tenant(self, tenant_id): """GetTenant. [Preview API] :param str tenant_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if tenant_id is not None: route_values['tenantId'] = self._serialize.url('tenant_id', tenant_id, 'str') response = self._send(http_method='GET', location_id='5f0a1723-2e2c-4c31-8cae-002d01bdd592', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('TenantInfo', response) diff --git a/azure-devops/azure/devops/v4_0/identity/models.py b/azure-devops/azure/devops/v5_0/identity/models.py similarity index 65% rename from azure-devops/azure/devops/v4_0/identity/models.py rename to azure-devops/azure/devops/v5_0/identity/models.py index 527c8fe9..6ea23455 100644 --- a/azure-devops/azure/devops/v4_0/identity/models.py +++ b/azure-devops/azure/devops/v5_0/identity/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -13,7 +13,7 @@ class AccessTokenResult(Model): """AccessTokenResult. :param access_token: - :type access_token: :class:`JsonWebToken ` + :type access_token: :class:`JsonWebToken ` :param access_token_error: :type access_token_error: object :param authorization_id: @@ -23,7 +23,7 @@ class AccessTokenResult(Model): :param has_error: :type has_error: bool :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` + :type refresh_token: :class:`RefreshTokenGrant ` :param token_type: :type token_type: str :param valid_to: @@ -73,19 +73,23 @@ class ChangedIdentities(Model): """ChangedIdentities. :param identities: Changed Identities - :type identities: list of :class:`Identity ` + :type identities: list of :class:`Identity ` + :param more_data: More data available, set to true if pagesize is specified. + :type more_data: bool :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` + :type sequence_context: :class:`ChangedIdentitiesContext ` """ _attribute_map = { 'identities': {'key': 'identities', 'type': '[Identity]'}, + 'more_data': {'key': 'moreData', 'type': 'bool'}, 'sequence_context': {'key': 'sequenceContext', 'type': 'ChangedIdentitiesContext'} } - def __init__(self, identities=None, sequence_context=None): + def __init__(self, identities=None, more_data=None, sequence_context=None): super(ChangedIdentities, self).__init__() self.identities = identities + self.more_data = more_data self.sequence_context = sequence_context @@ -96,17 +100,25 @@ class ChangedIdentitiesContext(Model): :type group_sequence_id: int :param identity_sequence_id: Last Identity SequenceId :type identity_sequence_id: int + :param organization_identity_sequence_id: Last Group OrganizationIdentitySequenceId + :type organization_identity_sequence_id: int + :param page_size: Page size + :type page_size: int """ _attribute_map = { 'group_sequence_id': {'key': 'groupSequenceId', 'type': 'int'}, - 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'} + 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'}, + 'organization_identity_sequence_id': {'key': 'organizationIdentitySequenceId', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'} } - def __init__(self, group_sequence_id=None, identity_sequence_id=None): + def __init__(self, group_sequence_id=None, identity_sequence_id=None, organization_identity_sequence_id=None, page_size=None): super(ChangedIdentitiesContext, self).__init__() self.group_sequence_id = group_sequence_id self.identity_sequence_id = identity_sequence_id + self.organization_identity_sequence_id = organization_identity_sequence_id + self.page_size = page_size class CreateScopeInfo(Model): @@ -179,7 +191,7 @@ class GroupMembership(Model): :param active: :type active: bool :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param queried_id: @@ -201,13 +213,13 @@ def __init__(self, active=None, descriptor=None, id=None, queried_id=None): self.queried_id = queried_id -class Identity(Model): - """Identity. +class IdentityBase(Model): + """IdentityBase. :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -219,19 +231,19 @@ class Identity(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -255,7 +267,7 @@ class Identity(Model): } def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__() + super(IdentityBase, self).__init__() self.custom_display_name = custom_display_name self.descriptor = descriptor self.id = id @@ -277,7 +289,7 @@ class IdentityBatchInfo(Model): """IdentityBatchInfo. :param descriptors: - :type descriptors: list of :class:`str ` + :type descriptors: list of :class:`str ` :param identity_ids: :type identity_ids: list of str :param include_restricted_visibility: @@ -286,6 +298,8 @@ class IdentityBatchInfo(Model): :type property_names: list of str :param query_membership: :type query_membership: object + :param subject_descriptors: + :type subject_descriptors: list of :class:`str ` """ _attribute_map = { @@ -293,23 +307,25 @@ class IdentityBatchInfo(Model): 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, 'include_restricted_visibility': {'key': 'includeRestrictedVisibility', 'type': 'bool'}, 'property_names': {'key': 'propertyNames', 'type': '[str]'}, - 'query_membership': {'key': 'queryMembership', 'type': 'object'} + 'query_membership': {'key': 'queryMembership', 'type': 'object'}, + 'subject_descriptors': {'key': 'subjectDescriptors', 'type': '[str]'} } - def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None): + def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None, subject_descriptors=None): super(IdentityBatchInfo, self).__init__() self.descriptors = descriptors self.identity_ids = identity_ids self.include_restricted_visibility = include_restricted_visibility self.property_names = property_names self.query_membership = query_membership + self.subject_descriptors = subject_descriptors class IdentityScope(Model): """IdentityScope. :param administrators: - :type administrators: :class:`str ` + :type administrators: :class:`str ` :param id: :type id: str :param is_active: @@ -327,7 +343,7 @@ class IdentityScope(Model): :param securing_host_id: :type securing_host_id: str :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` """ _attribute_map = { @@ -360,28 +376,40 @@ def __init__(self, administrators=None, id=None, is_active=None, is_global=None, class IdentitySelf(Model): """IdentitySelf. - :param account_name: + :param account_name: The UserPrincipalName (UPN) of the account. This value comes from the source provider. :type account_name: str - :param display_name: + :param display_name: The display name. For AAD accounts with multiple tenants this is the display name of the profile in the home tenant. :type display_name: str - :param id: + :param domain: This represents the name of the container of origin. For AAD accounts this is the tenantID of the home tenant. For MSA accounts this is the string "Windows Live ID". + :type domain: str + :param id: This is the VSID of the home tenant profile. If the profile is signed into the home tenant or if the profile has no tenants then this Id is the same as the Id returned by the profile/profiles/me endpoint. Going forward it is recommended that you use the combined values of Origin, OriginId and Domain to uniquely identify a user rather than this Id. :type id: str - :param tenants: - :type tenants: list of :class:`TenantInfo ` + :param origin: The type of source provider for the origin identifier. For MSA accounts this is "msa". For AAD accounts this is "aad". + :type origin: str + :param origin_id: The unique identifier from the system of origin. If there are multiple tenants this is the unique identifier of the account in the home tenant. (For MSA this is the PUID in hex notation, for AAD this is the object id.) + :type origin_id: str + :param tenants: For AAD accounts this is all of the tenants that this account is a member of. + :type tenants: list of :class:`TenantInfo ` """ _attribute_map = { 'account_name': {'key': 'accountName', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, 'tenants': {'key': 'tenants', 'type': '[TenantInfo]'} } - def __init__(self, account_name=None, display_name=None, id=None, tenants=None): + def __init__(self, account_name=None, display_name=None, domain=None, id=None, origin=None, origin_id=None, tenants=None): super(IdentitySelf, self).__init__() self.account_name = account_name self.display_name = display_name + self.domain = domain self.id = id + self.origin = origin + self.origin_id = origin_id self.tenants = tenants @@ -389,15 +417,15 @@ class IdentitySnapshot(Model): """IdentitySnapshot. :param groups: - :type groups: list of :class:`Identity ` + :type groups: list of :class:`Identity ` :param identity_ids: :type identity_ids: list of str :param memberships: - :type memberships: list of :class:`GroupMembership ` + :type memberships: list of :class:`GroupMembership ` :param scope_id: :type scope_id: str :param scopes: - :type scopes: list of :class:`IdentityScope ` + :type scopes: list of :class:`IdentityScope ` """ _attribute_map = { @@ -441,6 +469,34 @@ def __init__(self, id=None, index=None, updated=None): self.updated = updated +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + class JsonWebToken(Model): """JsonWebToken. @@ -459,7 +515,7 @@ class RefreshTokenGrant(AuthorizationGrant): :param grant_type: :type grant_type: object :param jwt: - :type jwt: :class:`JsonWebToken ` + :type jwt: :class:`JsonWebToken ` """ _attribute_map = { @@ -472,6 +528,26 @@ def __init__(self, grant_type=None, jwt=None): self.jwt = jwt +class SwapIdentityInfo(Model): + """SwapIdentityInfo. + + :param id1: + :type id1: str + :param id2: + :type id2: str + """ + + _attribute_map = { + 'id1': {'key': 'id1', 'type': 'str'}, + 'id2': {'key': 'id2', 'type': 'str'} + } + + def __init__(self, id1=None, id2=None): + super(SwapIdentityInfo, self).__init__() + self.id1 = id1 + self.id2 = id2 + + class TenantInfo(Model): """TenantInfo. @@ -496,6 +572,63 @@ def __init__(self, home_tenant=None, tenant_id=None, tenant_name=None): self.tenant_name = tenant_name +class Identity(IdentityBase): + """Identity. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) + + __all__ = [ 'AccessTokenResult', 'AuthorizationGrant', @@ -504,13 +637,16 @@ def __init__(self, home_tenant=None, tenant_id=None, tenant_name=None): 'CreateScopeInfo', 'FrameworkIdentityInfo', 'GroupMembership', - 'Identity', + 'IdentityBase', 'IdentityBatchInfo', 'IdentityScope', 'IdentitySelf', 'IdentitySnapshot', 'IdentityUpdateData', + 'JsonPatchOperation', 'JsonWebToken', 'RefreshTokenGrant', + 'SwapIdentityInfo', 'TenantInfo', + 'Identity', ] diff --git a/azure-devops/azure/devops/v4_1/licensing/__init__.py b/azure-devops/azure/devops/v5_0/licensing/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/licensing/__init__.py rename to azure-devops/azure/devops/v5_0/licensing/__init__.py diff --git a/azure-devops/azure/devops/v4_1/licensing/licensing_client.py b/azure-devops/azure/devops/v5_0/licensing/licensing_client.py similarity index 88% rename from azure-devops/azure/devops/v4_1/licensing/licensing_client.py rename to azure-devops/azure/devops/v5_0/licensing/licensing_client.py index 0fd15cc0..9c0e7422 100644 --- a/azure-devops/azure/devops/v4_1/licensing/licensing_client.py +++ b/azure-devops/azure/devops/v5_0/licensing/licensing_client.py @@ -32,7 +32,7 @@ def get_extension_license_usage(self): """ response = self._send(http_method='GET', location_id='01bce8d3-c130-480f-a332-474ae3f6662e', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('[AccountLicenseExtensionUsage]', self._unwrap_collection(response)) def get_certificate(self, **kwargs): @@ -42,7 +42,7 @@ def get_certificate(self, **kwargs): """ response = self._send(http_method='GET', location_id='2e0dbce7-a327-4bc0-a291-056139393f6d', - version='4.1-preview.1', + version='5.0-preview.1', accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -60,7 +60,7 @@ def get_client_rights(self, right_name=None, product_version=None, edition=None, :param bool include_certificate: :param str canary: :param str machine_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if right_name is not None: @@ -80,7 +80,7 @@ def get_client_rights(self, right_name=None, product_version=None, edition=None, query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'str') response = self._send(http_method='GET', location_id='643c72da-eaee-4163-9f07-d748ef5c2a0c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ClientRightsContainer', response) @@ -91,7 +91,7 @@ def assign_available_account_entitlement(self, user_id, dont_notify_user=None, o :param str user_id: The user to which to assign the entitilement :param bool dont_notify_user: :param str origin: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if user_id is not None: @@ -102,18 +102,18 @@ def assign_available_account_entitlement(self, user_id, dont_notify_user=None, o query_parameters['origin'] = self._serialize.query('origin', origin, 'str') response = self._send(http_method='POST', location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('AccountEntitlement', response) def get_account_entitlement(self): """GetAccountEntitlement. [Preview API] Gets the account entitlement of the current user it is mapped to _apis/licensing/entitlements/me so specifically is looking for the user of the request - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('AccountEntitlement', response) def get_account_entitlements(self, top=None, skip=None): @@ -130,18 +130,18 @@ def get_account_entitlements(self, top=None, skip=None): query_parameters['skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='ea37be6f-8cd7-48dd-983d-2b72d6e3da0f', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=None, origin=None): """AssignAccountEntitlementForUser. [Preview API] Assign an explicit account entitlement - :param :class:` ` body: The update model for the entitlement + :param :class:` ` body: The update model for the entitlement :param str user_id: The id of the user :param bool dont_notify_user: :param str origin: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -154,7 +154,7 @@ def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=No content = self._serialize.body(body, 'AccountEntitlementUpdateModel') response = self._send(http_method='PUT', location_id='6490e566-b299-49a7-a4e4-28749752581f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -170,15 +170,16 @@ def delete_user_entitlements(self, user_id): route_values['userId'] = self._serialize.url('user_id', user_id, 'str') self._send(http_method='DELETE', location_id='6490e566-b299-49a7-a4e4-28749752581f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) - def get_account_entitlement_for_user(self, user_id, determine_rights=None): + def get_account_entitlement_for_user(self, user_id, determine_rights=None, create_if_not_exists=None): """GetAccountEntitlementForUser. [Preview API] Get the entitlements for a user :param str user_id: The id of the user :param bool determine_rights: - :rtype: :class:` ` + :param bool create_if_not_exists: + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -186,9 +187,11 @@ def get_account_entitlement_for_user(self, user_id, determine_rights=None): query_parameters = {} if determine_rights is not None: query_parameters['determineRights'] = self._serialize.query('determine_rights', determine_rights, 'bool') + if create_if_not_exists is not None: + query_parameters['createIfNotExists'] = self._serialize.query('create_if_not_exists', create_if_not_exists, 'bool') response = self._send(http_method='GET', location_id='6490e566-b299-49a7-a4e4-28749752581f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AccountEntitlement', response) @@ -204,7 +207,7 @@ def get_account_entitlements_batch(self, user_ids): content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) @@ -220,7 +223,7 @@ def obtain_available_account_entitlements(self, user_ids): content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) @@ -236,7 +239,7 @@ def assign_extension_to_all_eligible_users(self, extension_id): route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='PUT', location_id='5434f182-7f32-4135-8326-9340d887c08a', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) @@ -255,7 +258,7 @@ def get_eligible_users_for_extension(self, extension_id, options): query_parameters['options'] = self._serialize.query('options', options, 'str') response = self._send(http_method='GET', location_id='5434f182-7f32-4135-8326-9340d887c08a', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -271,20 +274,20 @@ def get_extension_status_for_users(self, extension_id): route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='GET', location_id='5434f182-7f32-4135-8326-9340d887c08a', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('{ExtensionAssignmentDetails}', self._unwrap_collection(response)) def assign_extension_to_users(self, body): """AssignExtensionToUsers. [Preview API] Assigns the access to the given extension for a given list of users - :param :class:` ` body: The extension assignment details. + :param :class:` ` body: The extension assignment details. :rtype: [ExtensionOperationResult] """ content = self._serialize.body(body, 'ExtensionAssignment') response = self._send(http_method='PUT', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) @@ -299,7 +302,7 @@ def get_extensions_assigned_to_user(self, user_id): route_values['userId'] = self._serialize.url('user_id', user_id, 'str') response = self._send(http_method='GET', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('{LicensingSource}', self._unwrap_collection(response)) @@ -312,7 +315,7 @@ def bulk_get_extensions_assigned_to_users(self, user_ids): content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='PUT', location_id='1d42ddc2-3e7d-4daa-a0eb-e12c1dbd7c72', - version='4.1-preview.2', + version='5.0-preview.2', content=content) return self._deserialize('{[ExtensionSource]}', self._unwrap_collection(response)) @@ -320,27 +323,27 @@ def get_extension_license_data(self, extension_id): """GetExtensionLicenseData. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='GET', location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ExtensionLicenseData', response) def register_extension_license(self, extension_license_data): """RegisterExtensionLicense. [Preview API] - :param :class:` ` extension_license_data: + :param :class:` ` extension_license_data: :rtype: bool """ content = self._serialize.body(extension_license_data, 'ExtensionLicenseData') response = self._send(http_method='POST', location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('bool', response) @@ -353,18 +356,18 @@ def compute_extension_rights(self, ids): content = self._serialize.body(ids, '[str]') response = self._send(http_method='POST', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('{bool}', self._unwrap_collection(response)) def get_extension_rights(self): """GetExtensionRights. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('ExtensionRightsResult', response) def get_msdn_presence(self): @@ -373,7 +376,7 @@ def get_msdn_presence(self): """ self._send(http_method='GET', location_id='69522c3f-eecc-48d0-b333-f69ffb8fa6cc', - version='4.1-preview.1') + version='5.0-preview.1') def get_entitlements(self): """GetEntitlements. @@ -382,7 +385,7 @@ def get_entitlements(self): """ response = self._send(http_method='GET', location_id='1cc6137e-12d5-4d44-a4f2-765006c9e85d', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('[MsdnEntitlement]', self._unwrap_collection(response)) def get_account_licenses_usage(self): @@ -392,6 +395,6 @@ def get_account_licenses_usage(self): """ response = self._send(http_method='GET', location_id='d3266b87-d395-4e91-97a5-0215b81a0b7d', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('[AccountLicenseUsage]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/licensing/models.py b/azure-devops/azure/devops/v5_0/licensing/models.py similarity index 95% rename from azure-devops/azure/devops/v4_1/licensing/models.py rename to azure-devops/azure/devops/v5_0/licensing/models.py index b00cbae7..c7d62d0f 100644 --- a/azure-devops/azure/devops/v4_1/licensing/models.py +++ b/azure-devops/azure/devops/v5_0/licensing/models.py @@ -18,18 +18,20 @@ class AccountEntitlement(Model): :type assignment_date: datetime :param assignment_source: Assignment Source :type assignment_source: object + :param date_created: Gets or sets the creation date of the user in this account + :type date_created: datetime :param last_accessed_date: Gets or sets the date of the user last sign-in to this account :type last_accessed_date: datetime :param license: - :type license: :class:`License ` + :type license: :class:`License ` :param origin: Licensing origin :type origin: object :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` + :type rights: :class:`AccountRights ` :param status: The status of the user in the account :type status: object :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` :param user_id: Gets the id of the user to which the license belongs :type user_id: str """ @@ -38,6 +40,7 @@ class AccountEntitlement(Model): 'account_id': {'key': 'accountId', 'type': 'str'}, 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, 'license': {'key': 'license', 'type': 'License'}, 'origin': {'key': 'origin', 'type': 'object'}, @@ -47,11 +50,12 @@ class AccountEntitlement(Model): 'user_id': {'key': 'userId', 'type': 'str'} } - def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, origin=None, rights=None, status=None, user=None, user_id=None): + def __init__(self, account_id=None, assignment_date=None, assignment_source=None, date_created=None, last_accessed_date=None, license=None, origin=None, rights=None, status=None, user=None, user_id=None): super(AccountEntitlement, self).__init__() self.account_id = account_id self.assignment_date = assignment_date self.assignment_source = assignment_source + self.date_created = date_created self.last_accessed_date = last_accessed_date self.license = license self.origin = origin @@ -65,7 +69,7 @@ class AccountEntitlementUpdateModel(Model): """AccountEntitlementUpdateModel. :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` + :type license: :class:`License ` """ _attribute_map = { @@ -135,7 +139,7 @@ class AccountLicenseUsage(Model): :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) :type disabled_count: int :param license: - :type license: :class:`AccountUserLicense ` + :type license: :class:`AccountUserLicense ` :param pending_provisioned_count: Amount that will be purchased in the next billing cycle :type pending_provisioned_count: int :param provisioned_count: Amount that has been purchased @@ -397,7 +401,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -425,7 +429,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -444,6 +448,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -461,11 +467,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -473,6 +480,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 diff --git a/azure-devops/azure/devops/v4_1/location/__init__.py b/azure-devops/azure/devops/v5_0/location/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/location/__init__.py rename to azure-devops/azure/devops/v5_0/location/__init__.py diff --git a/azure-devops/azure/devops/v4_1/location/location_client.py b/azure-devops/azure/devops/v5_0/location/location_client.py similarity index 86% rename from azure-devops/azure/devops/v4_1/location/location_client.py rename to azure-devops/azure/devops/v5_0/location/location_client.py index e8f2df0d..9bff5a75 100644 --- a/azure-devops/azure/devops/v4_1/location/location_client.py +++ b/azure-devops/azure/devops/v5_0/location/location_client.py @@ -31,7 +31,7 @@ def get_connection_data(self, connect_options=None, last_change_id=None, last_ch :param str connect_options: :param int last_change_id: Obsolete 32-bit LastChangeId :param long last_change_id64: Non-truncated 64-bit LastChangeId - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if connect_options is not None: @@ -42,29 +42,29 @@ def get_connection_data(self, connect_options=None, last_change_id=None, last_ch query_parameters['lastChangeId64'] = self._serialize.query('last_change_id64', last_change_id64, 'long') response = self._send(http_method='GET', location_id='00d9565f-ed9c-4a06-9a50-00e7896ccab4', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('ConnectionData', response) - def get_resource_area(self, area_id, organization_name=None, account_name=None): + def get_resource_area(self, area_id, enterprise_name=None, organization_name=None): """GetResourceArea. [Preview API] :param str area_id: + :param str enterprise_name: :param str organization_name: - :param str account_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if area_id is not None: route_values['areaId'] = self._serialize.url('area_id', area_id, 'str') query_parameters = {} + if enterprise_name is not None: + query_parameters['enterpriseName'] = self._serialize.query('enterprise_name', enterprise_name, 'str') if organization_name is not None: query_parameters['organizationName'] = self._serialize.query('organization_name', organization_name, 'str') - if account_name is not None: - query_parameters['accountName'] = self._serialize.query('account_name', account_name, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ResourceAreaInfo', response) @@ -74,7 +74,7 @@ def get_resource_area_by_host(self, area_id, host_id): [Preview API] :param str area_id: :param str host_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if area_id is not None: @@ -84,26 +84,26 @@ def get_resource_area_by_host(self, area_id, host_id): query_parameters['hostId'] = self._serialize.query('host_id', host_id, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ResourceAreaInfo', response) - def get_resource_areas(self, organization_name=None, account_name=None): + def get_resource_areas(self, enterprise_name=None, organization_name=None): """GetResourceAreas. [Preview API] + :param str enterprise_name: :param str organization_name: - :param str account_name: :rtype: [ResourceAreaInfo] """ query_parameters = {} + if enterprise_name is not None: + query_parameters['enterpriseName'] = self._serialize.query('enterprise_name', enterprise_name, 'str') if organization_name is not None: query_parameters['organizationName'] = self._serialize.query('organization_name', organization_name, 'str') - if account_name is not None: - query_parameters['accountName'] = self._serialize.query('account_name', account_name, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[ResourceAreaInfo]', self._unwrap_collection(response)) @@ -118,7 +118,7 @@ def get_resource_areas_by_host(self, host_id): query_parameters['hostId'] = self._serialize.query('host_id', host_id, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[ResourceAreaInfo]', self._unwrap_collection(response)) @@ -135,7 +135,7 @@ def delete_service_definition(self, service_type, identifier): route_values['identifier'] = self._serialize.url('identifier', identifier, 'str') self._send(http_method='DELETE', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_service_definition(self, service_type, identifier, allow_fault_in=None, preview_fault_in=None): @@ -145,7 +145,7 @@ def get_service_definition(self, service_type, identifier, allow_fault_in=None, :param str identifier: :param bool allow_fault_in: If true, we will attempt to fault in a host instance mapping if in SPS. :param bool preview_fault_in: If true, we will calculate and return a host instance mapping, but not persist it. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if service_type is not None: @@ -159,7 +159,7 @@ def get_service_definition(self, service_type, identifier, allow_fault_in=None, query_parameters['previewFaultIn'] = self._serialize.query('preview_fault_in', preview_fault_in, 'bool') response = self._send(http_method='GET', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ServiceDefinition', response) @@ -175,18 +175,18 @@ def get_service_definitions(self, service_type=None): route_values['serviceType'] = self._serialize.url('service_type', service_type, 'str') response = self._send(http_method='GET', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[ServiceDefinition]', self._unwrap_collection(response)) def update_service_definitions(self, service_definitions): """UpdateServiceDefinitions. [Preview API] - :param :class:` ` service_definitions: + :param :class:` ` service_definitions: """ content = self._serialize.body(service_definitions, 'VssJsonCollectionWrapper') self._send(http_method='PATCH', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.1-preview.1', + version='5.0-preview.1', content=content) diff --git a/azure-devops/azure/devops/v4_0/location/models.py b/azure-devops/azure/devops/v5_0/location/models.py similarity index 76% rename from azure-devops/azure/devops/v4_0/location/models.py rename to azure-devops/azure/devops/v5_0/location/models.py index 3abed1f5..1291cc2d 100644 --- a/azure-devops/azure/devops/v4_0/location/models.py +++ b/azure-devops/azure/devops/v5_0/location/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -45,17 +45,19 @@ class ConnectionData(Model): """ConnectionData. :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` + :type authenticated_user: :class:`Identity ` :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` + :type authorized_user: :class:`Identity ` :param deployment_id: The id for the server. :type deployment_id: str + :param deployment_type: The type for the server Hosted/OnPremises. + :type deployment_type: object :param instance_id: The instance id for this host. :type instance_id: str :param last_user_access: The last user access for this instance. Null if not requested specifically. :type last_user_access: datetime :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` + :type location_service_data: :class:`LocationServiceData ` :param web_application_relative_directory: The virtual directory of the host we are talking to. :type web_application_relative_directory: str """ @@ -64,30 +66,32 @@ class ConnectionData(Model): 'authenticated_user': {'key': 'authenticatedUser', 'type': 'Identity'}, 'authorized_user': {'key': 'authorizedUser', 'type': 'Identity'}, 'deployment_id': {'key': 'deploymentId', 'type': 'str'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, 'instance_id': {'key': 'instanceId', 'type': 'str'}, 'last_user_access': {'key': 'lastUserAccess', 'type': 'iso-8601'}, 'location_service_data': {'key': 'locationServiceData', 'type': 'LocationServiceData'}, 'web_application_relative_directory': {'key': 'webApplicationRelativeDirectory', 'type': 'str'} } - def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): + def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, deployment_type=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): super(ConnectionData, self).__init__() self.authenticated_user = authenticated_user self.authorized_user = authorized_user self.deployment_id = deployment_id + self.deployment_type = deployment_type self.instance_id = instance_id self.last_user_access = last_user_access self.location_service_data = location_service_data self.web_application_relative_directory = web_application_relative_directory -class Identity(Model): - """Identity. +class IdentityBase(Model): + """IdentityBase. :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -99,19 +103,19 @@ class Identity(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -135,7 +139,7 @@ class Identity(Model): } def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): - super(Identity, self).__init__() + super(IdentityBase, self).__init__() self.custom_display_name = custom_display_name self.descriptor = descriptor self.id = id @@ -177,7 +181,7 @@ class LocationServiceData(Model): """LocationServiceData. :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` + :type access_mappings: list of :class:`AccessMapping ` :param client_cache_fresh: Data that the location service holds. :type client_cache_fresh: bool :param client_cache_time_to_live: The time to live on the location service cache. @@ -189,7 +193,7 @@ class LocationServiceData(Model): :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. :type last_change_id64: long :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` + :type service_definitions: list of :class:`ServiceDefinition ` :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) :type service_owner: str """ @@ -253,7 +257,7 @@ class ServiceDefinition(Model): :param inherit_level: :type inherit_level: object :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` + :type location_mappings: list of :class:`LocationMapping ` :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. :type max_version: str :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. @@ -263,7 +267,7 @@ class ServiceDefinition(Model): :param parent_service_type: :type parent_service_type: str :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param relative_path: :type relative_path: str :param relative_to_setting: @@ -325,12 +329,70 @@ def __init__(self, description=None, display_name=None, identifier=None, inherit self.tool_id = tool_id +class Identity(IdentityBase): + """Identity. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) + + __all__ = [ 'AccessMapping', 'ConnectionData', - 'Identity', + 'IdentityBase', 'LocationMapping', 'LocationServiceData', 'ResourceAreaInfo', 'ServiceDefinition', + 'Identity', ] diff --git a/azure-devops/azure/devops/v4_1/maven/__init__.py b/azure-devops/azure/devops/v5_0/maven/__init__.py similarity index 93% rename from azure-devops/azure/devops/v4_1/maven/__init__.py rename to azure-devops/azure/devops/v5_0/maven/__init__.py index 5cd1516c..b1592973 100644 --- a/azure-devops/azure/devops/v4_1/maven/__init__.py +++ b/azure-devops/azure/devops/v5_0/maven/__init__.py @@ -10,6 +10,7 @@ __all__ = [ 'BatchOperationData', + 'MavenDistributionManagement', 'MavenMinimalPackageDetails', 'MavenPackage', 'MavenPackagesBatchRequest', @@ -29,6 +30,8 @@ 'MavenPomPerson', 'MavenPomScm', 'MavenRecycleBinPackageVersionDetails', + 'MavenRepository', + 'MavenSnapshotRepository', 'Package', 'Plugin', 'PluginConfiguration', diff --git a/azure-devops/azure/devops/v4_1/maven/maven_client.py b/azure-devops/azure/devops/v5_0/maven/maven_client.py similarity index 76% rename from azure-devops/azure/devops/v4_1/maven/maven_client.py rename to azure-devops/azure/devops/v5_0/maven/maven_client.py index fa895b04..c951a382 100644 --- a/azure-devops/azure/devops/v4_1/maven/maven_client.py +++ b/azure-devops/azure/devops/v5_0/maven/maven_client.py @@ -27,11 +27,11 @@ def __init__(self, base_url=None, creds=None): def delete_package_version_from_recycle_bin(self, feed, group_id, artifact_id, version): """DeletePackageVersionFromRecycleBin. - [Preview API] - :param str feed: - :param str group_id: - :param str artifact_id: - :param str version: + [Preview API] Permanently delete a package from a feed's recycle bin. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. """ route_values = {} if feed is not None: @@ -44,17 +44,17 @@ def delete_package_version_from_recycle_bin(self, feed, group_id, artifact_id, v route_values['version'] = self._serialize.url('version', version, 'str') self._send(http_method='DELETE', location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_package_version_metadata_from_recycle_bin(self, feed, group_id, artifact_id, version): """GetPackageVersionMetadataFromRecycleBin. - [Preview API] - :param str feed: - :param str group_id: - :param str artifact_id: - :param str version: - :rtype: :class:` ` + [Preview API] Get information about a package version in the recycle bin. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed is not None: @@ -67,18 +67,18 @@ def get_package_version_metadata_from_recycle_bin(self, feed, group_id, artifact route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='GET', location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('MavenPackageVersionDeletionState', response) def restore_package_version_from_recycle_bin(self, package_version_details, feed, group_id, artifact_id, version): """RestorePackageVersionFromRecycleBin. - [Preview API] - :param :class:` ` package_version_details: - :param str feed: - :param str group_id: - :param str artifact_id: - :param str version: + [Preview API] Restore a package version from the recycle bin to its associated feed. + :param :class:` ` package_version_details: Set the 'Deleted' property to false to restore the package. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. """ route_values = {} if feed is not None: @@ -92,19 +92,19 @@ def restore_package_version_from_recycle_bin(self, package_version_details, feed content = self._serialize.body(package_version_details, 'MavenRecycleBinPackageVersionDetails') self._send(http_method='PATCH', location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) def get_package_version(self, feed, group_id, artifact_id, version, show_deleted=None): """GetPackageVersion. - [Preview API] - :param str feed: - :param str group_id: - :param str artifact_id: - :param str version: - :param bool show_deleted: - :rtype: :class:` ` + [Preview API] Get information about a package version. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + :param bool show_deleted: True to show information for deleted packages. + :rtype: :class:` ` """ route_values = {} if feed is not None: @@ -120,14 +120,14 @@ def get_package_version(self, feed, group_id, artifact_id, version, show_deleted query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') response = self._send(http_method='GET', location_id='180ed967-377a-4112-986b-607adb14ded4', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Package', response) def package_delete(self, feed, group_id, artifact_id, version): """PackageDelete. - [Preview API] Fulfills delete package requests. + [Preview API] Delete a package version from the feed and move it to the feed's recycle bin. :param str feed: Name or ID of the feed. :param str group_id: Group ID of the package. :param str artifact_id: Artifact ID of the package. @@ -144,6 +144,6 @@ def package_delete(self, feed, group_id, artifact_id, version): route_values['version'] = self._serialize.url('version', version, 'str') self._send(http_method='DELETE', location_id='180ed967-377a-4112-986b-607adb14ded4', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) diff --git a/azure-devops/azure/devops/v5_0/maven/models.py b/azure-devops/azure/devops/v5_0/maven/models.py new file mode 100644 index 00000000..6de8ac67 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/maven/models.py @@ -0,0 +1,818 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class MavenDistributionManagement(Model): + """MavenDistributionManagement. + + :param repository: + :type repository: :class:`MavenRepository ` + :param snapshot_repository: + :type snapshot_repository: :class:`MavenSnapshotRepository ` + """ + + _attribute_map = { + 'repository': {'key': 'repository', 'type': 'MavenRepository'}, + 'snapshot_repository': {'key': 'snapshotRepository', 'type': 'MavenSnapshotRepository'} + } + + def __init__(self, repository=None, snapshot_repository=None): + super(MavenDistributionManagement, self).__init__() + self.repository = repository + self.snapshot_repository = snapshot_repository + + +class MavenMinimalPackageDetails(Model): + """MavenMinimalPackageDetails. + + :param artifact: Package artifact ID + :type artifact: str + :param group: Package group ID + :type group: str + :param version: Package version + :type version: str + """ + + _attribute_map = { + 'artifact': {'key': 'artifact', 'type': 'str'}, + 'group': {'key': 'group', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact=None, group=None, version=None): + super(MavenMinimalPackageDetails, self).__init__() + self.artifact = artifact + self.group = group + self.version = version + + +class MavenPackage(Model): + """MavenPackage. + + :param artifact_id: + :type artifact_id: str + :param artifact_index: + :type artifact_index: :class:`ReferenceLink ` + :param artifact_metadata: + :type artifact_metadata: :class:`ReferenceLink ` + :param deleted_date: + :type deleted_date: datetime + :param files: + :type files: :class:`ReferenceLinks ` + :param group_id: + :type group_id: str + :param pom: + :type pom: :class:`MavenPomMetadata ` + :param requested_file: + :type requested_file: :class:`ReferenceLink ` + :param snapshot_metadata: + :type snapshot_metadata: :class:`ReferenceLink ` + :param version: + :type version: str + :param versions: + :type versions: :class:`ReferenceLinks ` + :param versions_index: + :type versions_index: :class:`ReferenceLink ` + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'artifact_index': {'key': 'artifactIndex', 'type': 'ReferenceLink'}, + 'artifact_metadata': {'key': 'artifactMetadata', 'type': 'ReferenceLink'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'files': {'key': 'files', 'type': 'ReferenceLinks'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'pom': {'key': 'pom', 'type': 'MavenPomMetadata'}, + 'requested_file': {'key': 'requestedFile', 'type': 'ReferenceLink'}, + 'snapshot_metadata': {'key': 'snapshotMetadata', 'type': 'ReferenceLink'}, + 'version': {'key': 'version', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': 'ReferenceLinks'}, + 'versions_index': {'key': 'versionsIndex', 'type': 'ReferenceLink'} + } + + def __init__(self, artifact_id=None, artifact_index=None, artifact_metadata=None, deleted_date=None, files=None, group_id=None, pom=None, requested_file=None, snapshot_metadata=None, version=None, versions=None, versions_index=None): + super(MavenPackage, self).__init__() + self.artifact_id = artifact_id + self.artifact_index = artifact_index + self.artifact_metadata = artifact_metadata + self.deleted_date = deleted_date + self.files = files + self.group_id = group_id + self.pom = pom + self.requested_file = requested_file + self.snapshot_metadata = snapshot_metadata + self.version = version + self.versions = versions + self.versions_index = versions_index + + +class MavenPackagesBatchRequest(Model): + """MavenPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MavenMinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MavenMinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(MavenPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class MavenPackageVersionDeletionState(Model): + """MavenPackageVersionDeletionState. + + :param artifact_id: Artifact Id of the package. + :type artifact_id: str + :param deleted_date: UTC date the package was deleted. + :type deleted_date: datetime + :param group_id: Group Id of the package. + :type group_id: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact_id=None, deleted_date=None, group_id=None, version=None): + super(MavenPackageVersionDeletionState, self).__init__() + self.artifact_id = artifact_id + self.deleted_date = deleted_date + self.group_id = group_id + self.version = version + + +class MavenPomBuild(Model): + """MavenPomBuild. + + :param plugins: + :type plugins: list of :class:`Plugin ` + """ + + _attribute_map = { + 'plugins': {'key': 'plugins', 'type': '[Plugin]'} + } + + def __init__(self, plugins=None): + super(MavenPomBuild, self).__init__() + self.plugins = plugins + + +class MavenPomCi(Model): + """MavenPomCi. + + :param notifiers: + :type notifiers: list of :class:`MavenPomCiNotifier ` + :param system: + :type system: str + :param url: + :type url: str + """ + + _attribute_map = { + 'notifiers': {'key': 'notifiers', 'type': '[MavenPomCiNotifier]'}, + 'system': {'key': 'system', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, notifiers=None, system=None, url=None): + super(MavenPomCi, self).__init__() + self.notifiers = notifiers + self.system = system + self.url = url + + +class MavenPomCiNotifier(Model): + """MavenPomCiNotifier. + + :param configuration: + :type configuration: list of str + :param send_on_error: + :type send_on_error: str + :param send_on_failure: + :type send_on_failure: str + :param send_on_success: + :type send_on_success: str + :param send_on_warning: + :type send_on_warning: str + :param type: + :type type: str + """ + + _attribute_map = { + 'configuration': {'key': 'configuration', 'type': '[str]'}, + 'send_on_error': {'key': 'sendOnError', 'type': 'str'}, + 'send_on_failure': {'key': 'sendOnFailure', 'type': 'str'}, + 'send_on_success': {'key': 'sendOnSuccess', 'type': 'str'}, + 'send_on_warning': {'key': 'sendOnWarning', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, configuration=None, send_on_error=None, send_on_failure=None, send_on_success=None, send_on_warning=None, type=None): + super(MavenPomCiNotifier, self).__init__() + self.configuration = configuration + self.send_on_error = send_on_error + self.send_on_failure = send_on_failure + self.send_on_success = send_on_success + self.send_on_warning = send_on_warning + self.type = type + + +class MavenPomDependencyManagement(Model): + """MavenPomDependencyManagement. + + :param dependencies: + :type dependencies: list of :class:`MavenPomDependency ` + """ + + _attribute_map = { + 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'} + } + + def __init__(self, dependencies=None): + super(MavenPomDependencyManagement, self).__init__() + self.dependencies = dependencies + + +class MavenPomGav(Model): + """MavenPomGav. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None): + super(MavenPomGav, self).__init__() + self.artifact_id = artifact_id + self.group_id = group_id + self.version = version + + +class MavenPomIssueManagement(Model): + """MavenPomIssueManagement. + + :param system: + :type system: str + :param url: + :type url: str + """ + + _attribute_map = { + 'system': {'key': 'system', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, system=None, url=None): + super(MavenPomIssueManagement, self).__init__() + self.system = system + self.url = url + + +class MavenPomMailingList(Model): + """MavenPomMailingList. + + :param archive: + :type archive: str + :param name: + :type name: str + :param other_archives: + :type other_archives: list of str + :param post: + :type post: str + :param subscribe: + :type subscribe: str + :param unsubscribe: + :type unsubscribe: str + """ + + _attribute_map = { + 'archive': {'key': 'archive', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'other_archives': {'key': 'otherArchives', 'type': '[str]'}, + 'post': {'key': 'post', 'type': 'str'}, + 'subscribe': {'key': 'subscribe', 'type': 'str'}, + 'unsubscribe': {'key': 'unsubscribe', 'type': 'str'} + } + + def __init__(self, archive=None, name=None, other_archives=None, post=None, subscribe=None, unsubscribe=None): + super(MavenPomMailingList, self).__init__() + self.archive = archive + self.name = name + self.other_archives = other_archives + self.post = post + self.subscribe = subscribe + self.unsubscribe = unsubscribe + + +class MavenPomMetadata(MavenPomGav): + """MavenPomMetadata. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param build: + :type build: :class:`MavenPomBuild ` + :param ci_management: + :type ci_management: :class:`MavenPomCi ` + :param contributors: + :type contributors: list of :class:`MavenPomPerson ` + :param dependencies: + :type dependencies: list of :class:`MavenPomDependency ` + :param dependency_management: + :type dependency_management: :class:`MavenPomDependencyManagement ` + :param description: + :type description: str + :param developers: + :type developers: list of :class:`MavenPomPerson ` + :param distribution_management: + :type distribution_management: :class:`MavenDistributionManagement ` + :param inception_year: + :type inception_year: str + :param issue_management: + :type issue_management: :class:`MavenPomIssueManagement ` + :param licenses: + :type licenses: list of :class:`MavenPomLicense ` + :param mailing_lists: + :type mailing_lists: list of :class:`MavenPomMailingList ` + :param model_version: + :type model_version: str + :param modules: + :type modules: list of str + :param name: + :type name: str + :param organization: + :type organization: :class:`MavenPomOrganization ` + :param packaging: + :type packaging: str + :param parent: + :type parent: :class:`MavenPomParent ` + :param prerequisites: + :type prerequisites: dict + :param properties: + :type properties: dict + :param scm: + :type scm: :class:`MavenPomScm ` + :param url: + :type url: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'build': {'key': 'build', 'type': 'MavenPomBuild'}, + 'ci_management': {'key': 'ciManagement', 'type': 'MavenPomCi'}, + 'contributors': {'key': 'contributors', 'type': '[MavenPomPerson]'}, + 'dependencies': {'key': 'dependencies', 'type': '[MavenPomDependency]'}, + 'dependency_management': {'key': 'dependencyManagement', 'type': 'MavenPomDependencyManagement'}, + 'description': {'key': 'description', 'type': 'str'}, + 'developers': {'key': 'developers', 'type': '[MavenPomPerson]'}, + 'distribution_management': {'key': 'distributionManagement', 'type': 'MavenDistributionManagement'}, + 'inception_year': {'key': 'inceptionYear', 'type': 'str'}, + 'issue_management': {'key': 'issueManagement', 'type': 'MavenPomIssueManagement'}, + 'licenses': {'key': 'licenses', 'type': '[MavenPomLicense]'}, + 'mailing_lists': {'key': 'mailingLists', 'type': '[MavenPomMailingList]'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + 'modules': {'key': 'modules', 'type': '[str]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'MavenPomOrganization'}, + 'packaging': {'key': 'packaging', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'MavenPomParent'}, + 'prerequisites': {'key': 'prerequisites', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'scm': {'key': 'scm', 'type': 'MavenPomScm'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, build=None, ci_management=None, contributors=None, dependencies=None, dependency_management=None, description=None, developers=None, distribution_management=None, inception_year=None, issue_management=None, licenses=None, mailing_lists=None, model_version=None, modules=None, name=None, organization=None, packaging=None, parent=None, prerequisites=None, properties=None, scm=None, url=None): + super(MavenPomMetadata, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.build = build + self.ci_management = ci_management + self.contributors = contributors + self.dependencies = dependencies + self.dependency_management = dependency_management + self.description = description + self.developers = developers + self.distribution_management = distribution_management + self.inception_year = inception_year + self.issue_management = issue_management + self.licenses = licenses + self.mailing_lists = mailing_lists + self.model_version = model_version + self.modules = modules + self.name = name + self.organization = organization + self.packaging = packaging + self.parent = parent + self.prerequisites = prerequisites + self.properties = properties + self.scm = scm + self.url = url + + +class MavenPomOrganization(Model): + """MavenPomOrganization. + + :param name: + :type name: str + :param url: + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, url=None): + super(MavenPomOrganization, self).__init__() + self.name = name + self.url = url + + +class MavenPomParent(MavenPomGav): + """MavenPomParent. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param relative_path: + :type relative_path: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, relative_path=None): + super(MavenPomParent, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.relative_path = relative_path + + +class MavenPomPerson(Model): + """MavenPomPerson. + + :param email: + :type email: str + :param id: + :type id: str + :param name: + :type name: str + :param organization: + :type organization: str + :param organization_url: + :type organization_url: str + :param roles: + :type roles: list of str + :param timezone: + :type timezone: str + :param url: + :type url: str + """ + + _attribute_map = { + 'email': {'key': 'email', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'organization': {'key': 'organization', 'type': 'str'}, + 'organization_url': {'key': 'organizationUrl', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'timezone': {'key': 'timezone', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, email=None, id=None, name=None, organization=None, organization_url=None, roles=None, timezone=None, url=None): + super(MavenPomPerson, self).__init__() + self.email = email + self.id = id + self.name = name + self.organization = organization + self.organization_url = organization_url + self.roles = roles + self.timezone = timezone + self.url = url + + +class MavenPomScm(Model): + """MavenPomScm. + + :param connection: + :type connection: str + :param developer_connection: + :type developer_connection: str + :param tag: + :type tag: str + :param url: + :type url: str + """ + + _attribute_map = { + 'connection': {'key': 'connection', 'type': 'str'}, + 'developer_connection': {'key': 'developerConnection', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, connection=None, developer_connection=None, tag=None, url=None): + super(MavenPomScm, self).__init__() + self.connection = connection + self.developer_connection = developer_connection + self.tag = tag + self.url = url + + +class MavenRecycleBinPackageVersionDetails(Model): + """MavenRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(MavenRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class MavenRepository(Model): + """MavenRepository. + + :param unique_version: + :type unique_version: bool + """ + + _attribute_map = { + 'unique_version': {'key': 'uniqueVersion', 'type': 'bool'} + } + + def __init__(self, unique_version=None): + super(MavenRepository, self).__init__() + self.unique_version = unique_version + + +class MavenSnapshotRepository(MavenRepository): + """MavenSnapshotRepository. + + :param unique_version: + :type unique_version: bool + """ + + _attribute_map = { + 'unique_version': {'key': 'uniqueVersion', 'type': 'bool'}, + } + + def __init__(self, unique_version=None): + super(MavenSnapshotRepository, self).__init__(unique_version=unique_version) + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. + :type deleted_date: datetime + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version + + +class Plugin(MavenPomGav): + """Plugin. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param configuration: + :type configuration: :class:`PluginConfiguration ` + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'PluginConfiguration'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, configuration=None): + super(Plugin, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.configuration = configuration + + +class PluginConfiguration(Model): + """PluginConfiguration. + + :param goal_prefix: + :type goal_prefix: str + """ + + _attribute_map = { + 'goal_prefix': {'key': 'goalPrefix', 'type': 'str'} + } + + def __init__(self, goal_prefix=None): + super(PluginConfiguration, self).__init__() + self.goal_prefix = goal_prefix + + +class ReferenceLink(Model): + """ReferenceLink. + + :param href: + :type href: str + """ + + _attribute_map = { + 'href': {'key': 'href', 'type': 'str'} + } + + def __init__(self, href=None): + super(ReferenceLink, self).__init__() + self.href = href + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class MavenPomDependency(MavenPomGav): + """MavenPomDependency. + + :param artifact_id: + :type artifact_id: str + :param group_id: + :type group_id: str + :param version: + :type version: str + :param optional: + :type optional: bool + :param scope: + :type scope: str + :param type: + :type type: str + """ + + _attribute_map = { + 'artifact_id': {'key': 'artifactId', 'type': 'str'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'optional': {'key': 'optional', 'type': 'bool'}, + 'scope': {'key': 'scope', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, artifact_id=None, group_id=None, version=None, optional=None, scope=None, type=None): + super(MavenPomDependency, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) + self.optional = optional + self.scope = scope + self.type = type + + +class MavenPomLicense(MavenPomOrganization): + """MavenPomLicense. + + :param name: + :type name: str + :param url: + :type url: str + :param distribution: + :type distribution: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'distribution': {'key': 'distribution', 'type': 'str'} + } + + def __init__(self, name=None, url=None, distribution=None): + super(MavenPomLicense, self).__init__(name=name, url=url) + self.distribution = distribution + + +__all__ = [ + 'BatchOperationData', + 'MavenDistributionManagement', + 'MavenMinimalPackageDetails', + 'MavenPackage', + 'MavenPackagesBatchRequest', + 'MavenPackageVersionDeletionState', + 'MavenPomBuild', + 'MavenPomCi', + 'MavenPomCiNotifier', + 'MavenPomDependencyManagement', + 'MavenPomGav', + 'MavenPomIssueManagement', + 'MavenPomMailingList', + 'MavenPomMetadata', + 'MavenPomOrganization', + 'MavenPomParent', + 'MavenPomPerson', + 'MavenPomScm', + 'MavenRecycleBinPackageVersionDetails', + 'MavenRepository', + 'MavenSnapshotRepository', + 'Package', + 'Plugin', + 'PluginConfiguration', + 'ReferenceLink', + 'ReferenceLinks', + 'MavenPomDependency', + 'MavenPomLicense', +] diff --git a/azure-devops/azure/devops/v4_1/member_entitlement_management/__init__.py b/azure-devops/azure/devops/v5_0/member_entitlement_management/__init__.py similarity index 98% rename from azure-devops/azure/devops/v4_1/member_entitlement_management/__init__.py rename to azure-devops/azure/devops/v5_0/member_entitlement_management/__init__.py index dfe3ad6d..4b768491 100644 --- a/azure-devops/azure/devops/v4_1/member_entitlement_management/__init__.py +++ b/azure-devops/azure/devops/v5_0/member_entitlement_management/__init__.py @@ -33,6 +33,7 @@ 'OperationReference', 'OperationResult', 'PagedGraphMemberList', + 'PagedList', 'ProjectEntitlement', 'ProjectRef', 'ReferenceLinks', diff --git a/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py b/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py new file mode 100644 index 00000000..dd8beb6b --- /dev/null +++ b/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py @@ -0,0 +1,290 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class MemberEntitlementManagementClient(Client): + """MemberEntitlementManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(MemberEntitlementManagementClient, 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 = '68ddce18-2501-45f1-a17b-7931a9922690' + + def add_group_entitlement(self, group_entitlement, rule_option=None): + """AddGroupEntitlement. + [Preview API] Create a group entitlement with license rule, extension rule. + :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups + :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be created and applied to it’s members (default option) or just be tested + :rtype: :class:` ` + """ + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + content = self._serialize.body(group_entitlement, 'GroupEntitlement') + response = self._send(http_method='POST', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='5.0-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('GroupEntitlementOperationReference', response) + + def delete_group_entitlement(self, group_id, rule_option=None, remove_group_membership=None): + """DeleteGroupEntitlement. + [Preview API] Delete a group entitlement. + :param str group_id: ID of the group to delete. + :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be deleted and the changes are applied to it’s members (default option) or just be tested + :param bool remove_group_membership: Optional parameter that specifies whether the group with the given ID should be removed from all other groups + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + if remove_group_membership is not None: + query_parameters['removeGroupMembership'] = self._serialize.query('remove_group_membership', remove_group_membership, 'bool') + response = self._send(http_method='DELETE', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GroupEntitlementOperationReference', response) + + def get_group_entitlement(self, group_id): + """GetGroupEntitlement. + [Preview API] Get a group entitlement. + :param str group_id: ID of the group. + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + response = self._send(http_method='GET', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('GroupEntitlement', response) + + def get_group_entitlements(self): + """GetGroupEntitlements. + [Preview API] Get the group entitlements for an account. + :rtype: [GroupEntitlement] + """ + response = self._send(http_method='GET', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='5.0-preview.1') + return self._deserialize('[GroupEntitlement]', self._unwrap_collection(response)) + + def update_group_entitlement(self, document, group_id, rule_option=None): + """UpdateGroupEntitlement. + [Preview API] Update entitlements (License Rule, Extensions Rule, Project memberships etc.) for a group. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. + :param str group_id: ID of the group. + :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be updated and the changes are applied to it’s members (default option) or just be tested + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if rule_option is not None: + query_parameters['ruleOption'] = self._serialize.query('rule_option', rule_option, 'str') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('GroupEntitlementOperationReference', response) + + def add_member_to_group(self, group_id, member_id): + """AddMemberToGroup. + [Preview API] Add a member to a Group. + :param str group_id: Id of the Group. + :param str member_id: Id of the member to add. + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if member_id is not None: + route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') + self._send(http_method='PUT', + location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', + version='5.0-preview.1', + route_values=route_values) + + def get_group_members(self, group_id, max_results=None, paging_token=None): + """GetGroupMembers. + [Preview API] Get direct members of a Group. + :param str group_id: Id of the Group. + :param int max_results: Maximum number of results to retrieve. + :param str paging_token: Paging Token from the previous page fetched. If the 'pagingToken' is null, the results would be fetched from the begining of the Members List. + :rtype: :class:` ` + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if max_results is not None: + query_parameters['maxResults'] = self._serialize.query('max_results', max_results, 'int') + if paging_token is not None: + query_parameters['pagingToken'] = self._serialize.query('paging_token', paging_token, 'str') + response = self._send(http_method='GET', + location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PagedGraphMemberList', response) + + def remove_member_from_group(self, group_id, member_id): + """RemoveMemberFromGroup. + [Preview API] Remove a member from a Group. + :param str group_id: Id of the group. + :param str member_id: Id of the member to remove. + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if member_id is not None: + route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') + self._send(http_method='DELETE', + location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', + version='5.0-preview.1', + route_values=route_values) + + def add_user_entitlement(self, user_entitlement): + """AddUserEntitlement. + [Preview API] Add a user, assign license and extensions and make them a member of a project group in an account. + :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. + :rtype: :class:` ` + """ + content = self._serialize.body(user_entitlement, 'UserEntitlement') + response = self._send(http_method='POST', + location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', + version='5.0-preview.2', + content=content) + return self._deserialize('UserEntitlementsPostResponse', response) + + def get_user_entitlements(self, top=None, skip=None, filter=None, sort_option=None): + """GetUserEntitlements. + [Preview API] Get a paged set of user entitlements matching the filter criteria. If no filter is is passed, a page from all the account users is returned. + :param int top: Maximum number of the user entitlements to return. Max value is 10000. Default value is 100 + :param int skip: Offset: Number of records to skip. Default value is 0 + :param str filter: Comma (",") separated list of properties and their values to filter on. Currently, the API only supports filtering by ExtensionId. An example parameter would be filter=extensionId eq search. + :param str sort_option: PropertyName and Order (separated by a space ( )) to sort on (e.g. LastAccessDate Desc) + :rtype: :class:` ` + """ + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + if filter is not None: + query_parameters['filter'] = self._serialize.query('filter', filter, 'str') + if sort_option is not None: + query_parameters['sortOption'] = self._serialize.query('sort_option', sort_option, 'str') + response = self._send(http_method='GET', + location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', + version='5.0-preview.2', + query_parameters=query_parameters) + return self._deserialize('PagedGraphMemberList', response) + + def update_user_entitlements(self, document, do_not_send_invite_for_new_users=None): + """UpdateUserEntitlements. + [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. + :param bool do_not_send_invite_for_new_users: Whether to send email invites to new users or not + :rtype: :class:` ` + """ + query_parameters = {} + if do_not_send_invite_for_new_users is not None: + query_parameters['doNotSendInviteForNewUsers'] = self._serialize.query('do_not_send_invite_for_new_users', do_not_send_invite_for_new_users, 'bool') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', + version='5.0-preview.2', + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('UserEntitlementOperationReference', response) + + def delete_user_entitlement(self, user_id): + """DeleteUserEntitlement. + [Preview API] Delete a user from the account. + :param str user_id: ID of the user. + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + self._send(http_method='DELETE', + location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', + version='5.0-preview.2', + route_values=route_values) + + def get_user_entitlement(self, user_id): + """GetUserEntitlement. + [Preview API] Get User Entitlement for a user. + :param str user_id: ID of the user. + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + response = self._send(http_method='GET', + location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', + version='5.0-preview.2', + route_values=route_values) + return self._deserialize('UserEntitlement', response) + + def update_user_entitlement(self, document, user_id): + """UpdateUserEntitlement. + [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for a user. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. + :param str user_id: ID of the user. + :rtype: :class:` ` + """ + route_values = {} + if user_id is not None: + route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', + version='5.0-preview.2', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + return self._deserialize('UserEntitlementsPatchResponse', response) + + def get_users_summary(self, select=None): + """GetUsersSummary. + [Preview API] Get summary of Licenses, Extension, Projects, Groups and their assignments in the collection. + :param str select: Comma (",") separated list of properties to select. Supported property names are {AccessLevels, Licenses, Extensions, Projects, Groups}. + :rtype: :class:` ` + """ + query_parameters = {} + if select is not None: + query_parameters['select'] = self._serialize.query('select', select, 'str') + response = self._send(http_method='GET', + location_id='5ae55b13-c9dd-49d1-957e-6e76c152e3d9', + version='5.0-preview.1', + query_parameters=query_parameters) + return self._deserialize('UsersSummary', response) + diff --git a/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py b/azure-devops/azure/devops/v5_0/member_entitlement_management/models.py similarity index 91% rename from azure-devops/azure/devops/v4_1/member_entitlement_management/models.py rename to azure-devops/azure/devops/v5_0/member_entitlement_management/models.py index 49c3672b..3db778a9 100644 --- a/azure-devops/azure/devops/v4_1/member_entitlement_management/models.py +++ b/azure-devops/azure/devops/v5_0/member_entitlement_management/models.py @@ -101,7 +101,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -149,19 +149,19 @@ class GroupEntitlement(Model): """GroupEntitlement. :param extension_rules: Extension Rules. - :type extension_rules: list of :class:`Extension ` + :type extension_rules: list of :class:`Extension ` :param group: Member reference. - :type group: :class:`GraphGroup ` + :type group: :class:`GraphGroup ` :param id: The unique identifier which matches the Id of the GraphMember. :type id: str :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). :type last_executed: datetime :param license_rule: License Rule. - :type license_rule: :class:`AccessLevel ` + :type license_rule: :class:`AccessLevel ` :param members: Group members. Only used when creating a new group. - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` :param project_entitlements: Relation between a project and the member's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param status: The status of the group rule. :type status: object """ @@ -199,7 +199,7 @@ class GroupOperationResult(BaseOperationResult): :param group_id: Identifier of the Group being acted upon :type group_id: str :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` + :type result: :class:`GroupEntitlement ` """ _attribute_map = { @@ -219,9 +219,9 @@ class GroupOption(Model): """GroupOption. :param access_level: Access Level - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param group: Group - :type group: :class:`Group ` + :type group: :class:`Group ` """ _attribute_map = { @@ -269,7 +269,7 @@ class MemberEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` """ _attribute_map = { @@ -321,7 +321,7 @@ class OperationResult(Model): :param member_id: Identifier of the Member being acted upon. :type member_id: str :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`MemberEntitlement ` + :type result: :class:`MemberEntitlement ` """ _attribute_map = { @@ -339,24 +339,28 @@ def __init__(self, errors=None, is_success=None, member_id=None, result=None): self.result = result -class PagedGraphMemberList(Model): - """PagedGraphMemberList. +class PagedList(Model): + """PagedList. :param continuation_token: :type continuation_token: str - :param members: - :type members: list of :class:`UserEntitlement ` + :param items: + :type items: list of object + :param total_count: + :type total_count: int """ _attribute_map = { 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, - 'members': {'key': 'members', 'type': '[UserEntitlement]'} + 'items': {'key': 'items', 'type': '[object]'}, + 'total_count': {'key': 'totalCount', 'type': 'int'} } - def __init__(self, continuation_token=None, members=None): - super(PagedGraphMemberList, self).__init__() + def __init__(self, continuation_token=None, items=None, total_count=None): + super(PagedList, self).__init__() self.continuation_token = continuation_token - self.members = members + self.items = items + self.total_count = total_count class ProjectEntitlement(Model): @@ -365,13 +369,13 @@ class ProjectEntitlement(Model): :param assignment_source: Assignment Source (e.g. Group or Unknown). :type assignment_source: object :param group: Project Group (e.g. Contributor, Reader etc.) - :type group: :class:`Group ` + :type group: :class:`Group ` :param is_project_permission_inherited: Whether the user is inheriting permissions to a project through a VSTS or AAD group membership. :type is_project_permission_inherited: bool :param project_ref: Project Ref - :type project_ref: :class:`ProjectRef ` + :type project_ref: :class:`ProjectRef ` :param team_refs: Team Ref. - :type team_refs: list of :class:`TeamRef ` + :type team_refs: list of :class:`TeamRef ` """ _attribute_map = { @@ -479,19 +483,19 @@ class UserEntitlement(Model): """UserEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` """ _attribute_map = { @@ -531,7 +535,7 @@ class UserEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`UserEntitlementOperationResult ` + :type results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -559,7 +563,7 @@ class UserEntitlementOperationResult(Model): :param is_success: Success status of the operation. :type is_success: bool :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`UserEntitlement ` + :type result: :class:`UserEntitlement ` :param user_id: Identifier of the Member being acted upon. :type user_id: str """ @@ -585,7 +589,7 @@ class UserEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` """ _attribute_map = { @@ -603,15 +607,15 @@ class UsersSummary(Model): """UsersSummary. :param available_access_levels: Available Access Levels. - :type available_access_levels: list of :class:`AccessLevel ` + :type available_access_levels: list of :class:`AccessLevel ` :param extensions: Summary of Extensions in the account. - :type extensions: list of :class:`ExtensionSummaryData ` + :type extensions: list of :class:`ExtensionSummaryData ` :param group_options: Group Options. - :type group_options: list of :class:`GroupOption ` + :type group_options: list of :class:`GroupOption ` :param licenses: Summary of Licenses in the Account. - :type licenses: list of :class:`LicenseSummaryData ` + :type licenses: list of :class:`LicenseSummaryData ` :param project_refs: Summary of Projects in the Account. - :type project_refs: list of :class:`ProjectRef ` + :type project_refs: list of :class:`ProjectRef ` """ _attribute_map = { @@ -687,7 +691,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -739,7 +743,7 @@ class GroupEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`GroupOperationResult ` + :type results: list of :class:`GroupOperationResult ` """ _attribute_map = { @@ -819,21 +823,21 @@ class MemberEntitlement(UserEntitlement): """MemberEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` :param member: Member reference - :type member: :class:`GraphMember ` + :type member: :class:`GraphMember ` """ _attribute_map = { @@ -868,7 +872,7 @@ class MemberEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful :type have_results_succeeded: bool :param results: List of results for each operation - :type results: list of :class:`OperationResult ` + :type results: list of :class:`OperationResult ` """ _attribute_map = { @@ -894,9 +898,9 @@ class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` + :type operation_results: list of :class:`OperationResult ` """ _attribute_map = { @@ -916,9 +920,9 @@ class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` + :type operation_result: :class:`OperationResult ` """ _attribute_map = { @@ -932,15 +936,31 @@ def __init__(self, is_success=None, member_entitlement=None, operation_result=No self.operation_result = operation_result +class PagedGraphMemberList(PagedList): + """PagedGraphMemberList. + + :param members: + :type members: list of :class:`UserEntitlement ` + """ + + _attribute_map = { + 'members': {'key': 'members', 'type': '[UserEntitlement]'} + } + + def __init__(self, members=None): + super(PagedGraphMemberList, self).__init__() + self.members = members + + class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): """UserEntitlementsPatchResponse. :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_results: List of results for each operation. - :type operation_results: list of :class:`UserEntitlementOperationResult ` + :type operation_results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -960,9 +980,9 @@ class UserEntitlementsPostResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_result: Operation result. - :type operation_result: :class:`UserEntitlementOperationResult ` + :type operation_result: :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -980,7 +1000,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -995,8 +1015,6 @@ class GraphMember(GraphSubject): :type origin_id: str :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) :type domain: str :param mail_address: The email address of record for a given graph member. This may be different than the principal name. @@ -1014,15 +1032,13 @@ class GraphMember(GraphSubject): 'origin': {'key': 'origin', 'type': 'str'}, 'origin_id': {'key': 'originId', 'type': 'str'}, 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, 'mail_address': {'key': 'mailAddress', 'type': 'str'}, 'principal_name': {'key': 'principalName', 'type': 'str'} } - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None): + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None): super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) - self.cuid = cuid self.domain = domain self.mail_address = mail_address self.principal_name = principal_name @@ -1032,7 +1048,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1047,14 +1063,16 @@ class GraphUser(GraphMember): :type origin_id: str :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) :type domain: str :param mail_address: The email address of record for a given graph member. This may be different than the principal name. :type mail_address: str :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. :type principal_name: str + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param metadata_update_date: + :type metadata_update_date: datetime :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. :type meta_type: str """ @@ -1068,15 +1086,18 @@ class GraphUser(GraphMember): 'origin': {'key': 'origin', 'type': 'str'}, 'origin_id': {'key': 'originId', 'type': 'str'}, 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, 'mail_address': {'key': 'mailAddress', 'type': 'str'}, 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'}, + 'metadata_update_date': {'key': 'metadataUpdateDate', 'type': 'iso-8601'}, 'meta_type': {'key': 'metaType', 'type': 'str'} } - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, meta_type=None): - super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, is_deleted_in_origin=None, metadata_update_date=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.is_deleted_in_origin = is_deleted_in_origin + self.metadata_update_date = metadata_update_date self.meta_type = meta_type @@ -1084,7 +1105,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1099,8 +1120,6 @@ class GraphGroup(GraphMember): :type origin_id: str :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). :type subject_kind: str - :param cuid: The Consistently Unique Identifier of the subject - :type cuid: str :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) :type domain: str :param mail_address: The email address of record for a given graph member. This may be different than the principal name. @@ -1140,7 +1159,6 @@ class GraphGroup(GraphMember): 'origin': {'key': 'origin', 'type': 'str'}, 'origin_id': {'key': 'originId', 'type': 'str'}, 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, - 'cuid': {'key': 'cuid', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, 'mail_address': {'key': 'mailAddress', 'type': 'str'}, 'principal_name': {'key': 'principalName', 'type': 'str'}, @@ -1157,8 +1175,8 @@ class GraphGroup(GraphMember): 'special_type': {'key': 'specialType', 'type': 'str'} } - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, cuid=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): - super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, cuid=cuid, domain=domain, mail_address=mail_address, principal_name=principal_name) + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) self.description = description self.is_cross_project = is_cross_project self.is_deleted = is_deleted @@ -1185,7 +1203,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, le 'MemberEntitlementsResponseBase', 'OperationReference', 'OperationResult', - 'PagedGraphMemberList', + 'PagedList', 'ProjectEntitlement', 'ProjectRef', 'ReferenceLinks', @@ -1204,6 +1222,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, le 'MemberEntitlementOperationReference', 'MemberEntitlementsPatchResponse', 'MemberEntitlementsPostResponse', + 'PagedGraphMemberList', 'UserEntitlementsPatchResponse', 'UserEntitlementsPostResponse', 'GraphMember', diff --git a/azure-devops/azure/devops/v4_1/notification/__init__.py b/azure-devops/azure/devops/v5_0/notification/__init__.py similarity index 94% rename from azure-devops/azure/devops/v4_1/notification/__init__.py rename to azure-devops/azure/devops/v5_0/notification/__init__.py index f4fbe4b4..b616f6fb 100644 --- a/azure-devops/azure/devops/v4_1/notification/__init__.py +++ b/azure-devops/azure/devops/v5_0/notification/__init__.py @@ -15,6 +15,8 @@ 'EventActor', 'EventScope', 'EventsEvaluationResult', + 'EventTransformRequest', + 'EventTransformResult', 'ExpressionFilterClause', 'ExpressionFilterGroup', 'ExpressionFilterModel', @@ -29,6 +31,8 @@ 'InputValuesQuery', 'ISubscriptionChannel', 'ISubscriptionFilter', + 'NotificationAdminSettings', + 'NotificationAdminSettingsUpdateParameters', 'NotificationDiagnosticLogMessage', 'NotificationEventField', 'NotificationEventFieldOperator', diff --git a/azure-devops/azure/devops/v4_1/notification/models.py b/azure-devops/azure/devops/v5_0/notification/models.py similarity index 88% rename from azure-devops/azure/devops/v4_1/notification/models.py rename to azure-devops/azure/devops/v5_0/notification/models.py index 7aeb0069..2c35cfee 100644 --- a/azure-devops/azure/devops/v4_1/notification/models.py +++ b/azure-devops/azure/devops/v5_0/notification/models.py @@ -35,7 +35,7 @@ class BatchNotificationOperation(Model): :param notification_operation: :type notification_operation: object :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` """ _attribute_map = { @@ -113,6 +113,54 @@ def __init__(self, count=None, matched_count=None): self.matched_count = matched_count +class EventTransformRequest(Model): + """EventTransformRequest. + + :param event_payload: Event payload. + :type event_payload: str + :param event_type: Event type. + :type event_type: str + :param system_inputs: System inputs. + :type system_inputs: dict + """ + + _attribute_map = { + 'event_payload': {'key': 'eventPayload', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'system_inputs': {'key': 'systemInputs', 'type': '{str}'} + } + + def __init__(self, event_payload=None, event_type=None, system_inputs=None): + super(EventTransformRequest, self).__init__() + self.event_payload = event_payload + self.event_type = event_type + self.system_inputs = system_inputs + + +class EventTransformResult(Model): + """EventTransformResult. + + :param content: Transformed html content. + :type content: str + :param data: Calculated data. + :type data: object + :param system_inputs: Calculated system inputs. + :type system_inputs: dict + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'data': {'key': 'data', 'type': 'object'}, + 'system_inputs': {'key': 'systemInputs', 'type': '{str}'} + } + + def __init__(self, content=None, data=None, system_inputs=None): + super(EventTransformResult, self).__init__() + self.content = content + self.data = data + self.system_inputs = system_inputs + + class ExpressionFilterClause(Model): """ExpressionFilterClause. @@ -173,9 +221,9 @@ class ExpressionFilterModel(Model): """ExpressionFilterModel. :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` + :type clauses: list of :class:`ExpressionFilterClause ` :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` + :type groups: list of :class:`ExpressionFilterGroup ` :param max_group_level: Max depth of the Subscription tree :type max_group_level: int """ @@ -197,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -225,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -244,6 +292,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -261,11 +311,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -273,6 +324,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -291,7 +343,7 @@ class INotificationDiagnosticLog(Model): :param log_type: :type log_type: str :param messages: - :type messages: list of :class:`NotificationDiagnosticLogMessage ` + :type messages: list of :class:`NotificationDiagnosticLogMessage ` :param properties: :type properties: dict :param source: @@ -355,7 +407,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -365,7 +417,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -411,7 +463,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -465,6 +517,38 @@ def __init__(self, event_type=None, type=None): self.type = type +class NotificationAdminSettings(Model): + """NotificationAdminSettings. + + :param default_group_delivery_preference: The default group delivery preference for groups in this collection + :type default_group_delivery_preference: object + """ + + _attribute_map = { + 'default_group_delivery_preference': {'key': 'defaultGroupDeliveryPreference', 'type': 'object'} + } + + def __init__(self, default_group_delivery_preference=None): + super(NotificationAdminSettings, self).__init__() + self.default_group_delivery_preference = default_group_delivery_preference + + +class NotificationAdminSettingsUpdateParameters(Model): + """NotificationAdminSettingsUpdateParameters. + + :param default_group_delivery_preference: + :type default_group_delivery_preference: object + """ + + _attribute_map = { + 'default_group_delivery_preference': {'key': 'defaultGroupDeliveryPreference', 'type': 'object'} + } + + def __init__(self, default_group_delivery_preference=None): + super(NotificationAdminSettingsUpdateParameters, self).__init__() + self.default_group_delivery_preference = default_group_delivery_preference + + class NotificationDiagnosticLogMessage(Model): """NotificationDiagnosticLogMessage. @@ -493,7 +577,7 @@ class NotificationEventField(Model): """NotificationEventField. :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` + :type field_type: :class:`NotificationEventFieldType ` :param id: Gets or sets the unique identifier of this field. :type id: str :param name: Gets or sets the name of this field. @@ -547,13 +631,13 @@ class NotificationEventFieldType(Model): :param id: Gets or sets the unique identifier of this field type. :type id: str :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` + :type operator_constraints: list of :class:`OperatorConstraint ` :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` + :type operators: list of :class:`NotificationEventFieldOperator ` :param subscription_field_type: :type subscription_field_type: object :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` + :type value: :class:`ValueDefinition ` """ _attribute_map = { @@ -579,7 +663,7 @@ class NotificationEventPublisher(Model): :param id: :type id: str :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` + :type subscription_management_info: :class:`SubscriptionManagement ` :param url: :type url: str """ @@ -625,13 +709,13 @@ class NotificationEventType(Model): """NotificationEventType. :param category: - :type category: :class:`NotificationEventTypeCategory ` + :type category: :class:`NotificationEventTypeCategory ` :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa :type color: str :param custom_subscriptions_allowed: :type custom_subscriptions_allowed: bool :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` + :type event_publisher: :class:`NotificationEventPublisher ` :param fields: :type fields: dict :param has_initiator: @@ -643,7 +727,7 @@ class NotificationEventType(Model): :param name: Gets or sets the name of this event definition. :type name: str :param roles: - :type roles: list of :class:`NotificationEventRole ` + :type roles: list of :class:`NotificationEventRole ` :param supported_scopes: Gets or sets the scopes that this event type supports :type supported_scopes: list of str :param url: Gets or sets the rest end point to get this event type details (fields, fields types) @@ -735,7 +819,7 @@ class NotificationReason(Model): :param notification_reason_type: :type notification_reason_type: object :param target_identities: - :type target_identities: list of :class:`IdentityRef ` + :type target_identities: list of :class:`IdentityRef ` """ _attribute_map = { @@ -777,7 +861,7 @@ class NotificationStatistic(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -801,7 +885,7 @@ class NotificationStatisticsQuery(Model): """NotificationStatisticsQuery. :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` """ _attribute_map = { @@ -827,7 +911,7 @@ class NotificationStatisticsQueryConditions(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -901,41 +985,41 @@ class NotificationSubscription(Model): """NotificationSubscription. :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param diagnostics: Diagnostics for this subscription. - :type diagnostics: :class:`SubscriptionDiagnostics ` + :type diagnostics: :class:`SubscriptionDiagnostics ` :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts :type extended_properties: dict :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Read-only indicators that further describe the subscription. :type flags: object :param id: Subscription identifier. :type id: str :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. :type modified_date: datetime :param permissions: The permissions the user have for this subscriptions. :type permissions: object :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. :type status: object :param status_message: Message that provides more details about the status of the subscription. :type status_message: str :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: REST API URL of the subscriotion. :type url: str :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -985,15 +1069,15 @@ class NotificationSubscriptionCreateParameters(Model): """NotificationSubscriptionCreateParameters. :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` """ _attribute_map = { @@ -1019,11 +1103,11 @@ class NotificationSubscriptionTemplate(Model): :param description: :type description: str :param filter: - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param id: :type id: str :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` + :type notification_event_information: :class:`NotificationEventType ` :param type: :type type: object """ @@ -1049,21 +1133,21 @@ class NotificationSubscriptionUpdateParameters(Model): """NotificationSubscriptionUpdateParameters. :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Updated status for the subscription. Typically used to enable or disable a subscription. :type status: object :param status_message: Optional message that provides more details about the updated status. :type status_message: str :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1169,11 +1253,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1195,7 +1279,7 @@ class SubscriptionEvaluationRequest(Model): :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date :type min_events_created_date: datetime :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` """ _attribute_map = { @@ -1215,11 +1299,11 @@ class SubscriptionEvaluationResult(Model): :param evaluation_job_status: Subscription evaluation job status :type evaluation_job_status: object :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` + :type events: :class:`EventsEvaluationResult ` :param id: The requestId which is the subscription evaluation jobId :type id: str :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` + :type notifications: :class:`NotificationsEvaluationResult ` """ _attribute_map = { @@ -1289,7 +1373,7 @@ class SubscriptionQuery(Model): """SubscriptionQuery. :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` + :type conditions: list of :class:`SubscriptionQueryCondition ` :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. :type query_flags: object """ @@ -1309,7 +1393,7 @@ class SubscriptionQueryCondition(Model): """SubscriptionQueryCondition. :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Flags to specify the the type subscriptions to query for. :type flags: object :param scope: Scope that matching subscriptions must have. @@ -1410,11 +1494,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { @@ -1450,7 +1534,7 @@ class ValueDefinition(Model): """ValueDefinition. :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` + :type data_source: list of :class:`InputValue ` :param end_point: Gets or sets the rest end point. :type end_point: str :param result_template: Gets or sets the result template. @@ -1474,15 +1558,23 @@ class VssNotificationEvent(Model): """VssNotificationEvent. :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` + :type actors: list of :class:`EventActor ` :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. :type artifact_uris: list of str :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. :type data: object :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. :type event_type: str + :param expires_in: How long before the event expires and will be cleaned up. The default is to use the system default. + :type expires_in: object + :param item_id: The id of the item, artifact, extension, project, etc. + :type item_id: str + :param process_delay: How long to wait before processing this event. The default is to process immediately. + :type process_delay: object :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` + :type scopes: list of :class:`EventScope ` + :param source_event_created_time: This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised. + :type source_event_created_time: datetime """ _attribute_map = { @@ -1490,16 +1582,24 @@ class VssNotificationEvent(Model): 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, 'data': {'key': 'data', 'type': 'object'}, 'event_type': {'key': 'eventType', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[EventScope]'} + 'expires_in': {'key': 'expiresIn', 'type': 'object'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'process_delay': {'key': 'processDelay', 'type': 'object'}, + 'scopes': {'key': 'scopes', 'type': '[EventScope]'}, + 'source_event_created_time': {'key': 'sourceEventCreatedTime', 'type': 'iso-8601'} } - def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): + def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, expires_in=None, item_id=None, process_delay=None, scopes=None, source_event_created_time=None): super(VssNotificationEvent, self).__init__() self.actors = actors self.artifact_uris = artifact_uris self.data = data self.event_type = event_type + self.expires_in = expires_in + self.item_id = item_id + self.process_delay = process_delay self.scopes = scopes + self.source_event_created_time = source_event_created_time class ArtifactFilter(BaseSubscriptionFilter): @@ -1539,7 +1639,7 @@ class FieldInputValues(InputValues): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1549,7 +1649,7 @@ class FieldInputValues(InputValues): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` :param operators: :type operators: str """ @@ -1578,7 +1678,7 @@ class FieldValuesQuery(InputValuesQuery): :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object :param input_values: - :type input_values: list of :class:`FieldInputValues ` + :type input_values: list of :class:`FieldInputValues ` :param scope: :type scope: str """ @@ -1602,6 +1702,8 @@ def __init__(self, current_values=None, resource=None, input_values=None, scope= 'EventActor', 'EventScope', 'EventsEvaluationResult', + 'EventTransformRequest', + 'EventTransformResult', 'ExpressionFilterClause', 'ExpressionFilterGroup', 'ExpressionFilterModel', @@ -1614,6 +1716,8 @@ def __init__(self, current_values=None, resource=None, input_values=None, scope= 'InputValuesQuery', 'ISubscriptionChannel', 'ISubscriptionFilter', + 'NotificationAdminSettings', + 'NotificationAdminSettingsUpdateParameters', 'NotificationDiagnosticLogMessage', 'NotificationEventField', 'NotificationEventFieldOperator', diff --git a/azure-devops/azure/devops/v4_0/notification/notification_client.py b/azure-devops/azure/devops/v5_0/notification/notification_client.py similarity index 59% rename from azure-devops/azure/devops/v4_0/notification/notification_client.py rename to azure-devops/azure/devops/v5_0/notification/notification_client.py index 3f9ee1f4..a2b7ac39 100644 --- a/azure-devops/azure/devops/v4_0/notification/notification_client.py +++ b/azure-devops/azure/devops/v5_0/notification/notification_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -25,18 +25,90 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = None + def list_logs(self, source, entry_id=None, start_time=None, end_time=None): + """ListLogs. + [Preview API] List diagnostic logs this service. + :param str source: + :param str entry_id: + :param datetime start_time: + :param datetime end_time: + :rtype: [INotificationDiagnosticLog] + """ + route_values = {} + if source is not None: + route_values['source'] = self._serialize.url('source', source, 'str') + if entry_id is not None: + route_values['entryId'] = self._serialize.url('entry_id', entry_id, 'str') + query_parameters = {} + if start_time is not None: + query_parameters['startTime'] = self._serialize.query('start_time', start_time, 'iso-8601') + if end_time is not None: + query_parameters['endTime'] = self._serialize.query('end_time', end_time, 'iso-8601') + response = self._send(http_method='GET', + location_id='991842f3-eb16-4aea-ac81-81353ef2b75c', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[INotificationDiagnosticLog]', self._unwrap_collection(response)) + + def get_subscription_diagnostics(self, subscription_id): + """GetSubscriptionDiagnostics. + [Preview API] + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + response = self._send(http_method='GET', + location_id='20f1929d-4be7-4c2e-a74e-d47640ff3418', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('SubscriptionDiagnostics', response) + + def update_subscription_diagnostics(self, update_parameters, subscription_id): + """UpdateSubscriptionDiagnostics. + [Preview API] + :param :class:` ` update_parameters: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(update_parameters, 'UpdateSubscripitonDiagnosticsParameters') + response = self._send(http_method='PUT', + location_id='20f1929d-4be7-4c2e-a74e-d47640ff3418', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SubscriptionDiagnostics', response) + + def publish_event(self, notification_event): + """PublishEvent. + [Preview API] Publish an event. + :param :class:` ` notification_event: + :rtype: :class:` ` + """ + content = self._serialize.body(notification_event, 'VssNotificationEvent') + response = self._send(http_method='POST', + location_id='14c57b7a-c0e6-4555-9f51-e067188fdd8e', + version='5.0-preview.1', + content=content) + return self._deserialize('VssNotificationEvent', response) + def get_event_type(self, event_type): """GetEventType. [Preview API] Get a specific event type. :param str event_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if event_type is not None: route_values['eventType'] = self._serialize.url('event_type', event_type, 'str') response = self._send(http_method='GET', location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('NotificationEventType', response) @@ -51,61 +123,54 @@ def list_event_types(self, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', - version='4.0-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[NotificationEventType]', self._unwrap_collection(response)) - def get_notification_reasons(self, notification_id): - """GetNotificationReasons. + def get_settings(self): + """GetSettings. [Preview API] - :param int notification_id: - :rtype: :class:` ` + :rtype: :class:` ` """ - route_values = {} - if notification_id is not None: - route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') response = self._send(http_method='GET', - location_id='19824fa9-1c76-40e6-9cce-cf0b9ca1cb60', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('NotificationReason', response) + location_id='cbe076d8-2803-45ff-8d8d-44653686ea2a', + version='5.0-preview.1') + return self._deserialize('NotificationAdminSettings', response) - def list_notification_reasons(self, notification_ids=None): - """ListNotificationReasons. + def update_settings(self, update_parameters): + """UpdateSettings. [Preview API] - :param int notification_ids: - :rtype: [NotificationReason] + :param :class:` ` update_parameters: + :rtype: :class:` ` """ - query_parameters = {} - if notification_ids is not None: - query_parameters['notificationIds'] = self._serialize.query('notification_ids', notification_ids, 'int') - response = self._send(http_method='GET', - location_id='19824fa9-1c76-40e6-9cce-cf0b9ca1cb60', - version='4.0-preview.1', - query_parameters=query_parameters) - return self._deserialize('[NotificationReason]', self._unwrap_collection(response)) + content = self._serialize.body(update_parameters, 'NotificationAdminSettingsUpdateParameters') + response = self._send(http_method='PATCH', + location_id='cbe076d8-2803-45ff-8d8d-44653686ea2a', + version='5.0-preview.1', + content=content) + return self._deserialize('NotificationAdminSettings', response) def get_subscriber(self, subscriber_id): """GetSubscriber. [Preview API] :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: route_values['subscriberId'] = self._serialize.url('subscriber_id', subscriber_id, 'str') response = self._send(http_method='GET', location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('NotificationSubscriber', response) def update_subscriber(self, update_parameters, subscriber_id): """UpdateSubscriber. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: @@ -113,7 +178,7 @@ def update_subscriber(self, update_parameters, subscriber_id): content = self._serialize.body(update_parameters, 'NotificationSubscriberUpdateParameters') response = self._send(http_method='PATCH', location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('NotificationSubscriber', response) @@ -121,26 +186,26 @@ def update_subscriber(self, update_parameters, subscriber_id): def query_subscriptions(self, subscription_query): """QuerySubscriptions. [Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions. - :param :class:` ` subscription_query: + :param :class:` ` subscription_query: :rtype: [NotificationSubscription] """ content = self._serialize.body(subscription_query, 'SubscriptionQuery') response = self._send(http_method='POST', location_id='6864db85-08c0-4006-8e8e-cc1bebe31675', - version='4.0-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def create_subscription(self, create_parameters): """CreateSubscription. [Preview API] Create a new subscription. - :param :class:` ` create_parameters: - :rtype: :class:` ` + :param :class:` ` create_parameters: + :rtype: :class:` ` """ content = self._serialize.body(create_parameters, 'NotificationSubscriptionCreateParameters') response = self._send(http_method='POST', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.0-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('NotificationSubscription', response) @@ -154,7 +219,7 @@ def delete_subscription(self, subscription_id): route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') self._send(http_method='DELETE', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) def get_subscription(self, subscription_id, query_flags=None): @@ -162,7 +227,7 @@ def get_subscription(self, subscription_id, query_flags=None): [Preview API] Get a notification subscription by its ID. :param str subscription_id: :param str query_flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -172,7 +237,7 @@ def get_subscription(self, subscription_id, query_flags=None): query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') response = self._send(http_method='GET', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('NotificationSubscription', response) @@ -195,16 +260,16 @@ def list_subscriptions(self, target_id=None, ids=None, query_flags=None): query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') response = self._send(http_method='GET', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.0-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def update_subscription(self, update_parameters, subscription_id): """UpdateSubscription. [Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more. - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -212,18 +277,28 @@ def update_subscription(self, update_parameters, subscription_id): content = self._serialize.body(update_parameters, 'NotificationSubscriptionUpdateParameters') response = self._send(http_method='PATCH', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('NotificationSubscription', response) - def update_subscription_user_settings(self, user_settings, subscription_id, user_id=None): + def get_subscription_templates(self): + """GetSubscriptionTemplates. + [Preview API] Get available subscription templates. + :rtype: [NotificationSubscriptionTemplate] + """ + response = self._send(http_method='GET', + location_id='fa5d24ba-7484-4f3d-888d-4ec6b1974082', + version='5.0-preview.1') + return self._deserialize('[NotificationSubscriptionTemplate]', self._unwrap_collection(response)) + + def update_subscription_user_settings(self, user_settings, subscription_id, user_id): """UpdateSubscriptionUserSettings. - [Preview API] Update the specified users' settings for the specified subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. This API is typically used to opt in or out of a shared subscription. - :param :class:` ` user_settings: + [Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. + :param :class:` ` user_settings: :param str subscription_id: - :param str user_id: ID of the user or "me" to indicate the calling user - :rtype: :class:` ` + :param str user_id: ID of the user + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -233,7 +308,7 @@ def update_subscription_user_settings(self, user_settings, subscription_id, user content = self._serialize.body(user_settings, 'SubscriptionUserSettings') response = self._send(http_method='PUT', location_id='ed5a3dff-aeb5-41b1-b4f7-89e66e58b62e', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('SubscriptionUserSettings', response) diff --git a/azure-devops/azure/devops/v4_1/npm/__init__.py b/azure-devops/azure/devops/v5_0/npm/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/npm/__init__.py rename to azure-devops/azure/devops/v5_0/npm/__init__.py diff --git a/azure-devops/azure/devops/v4_1/npm/models.py b/azure-devops/azure/devops/v5_0/npm/models.py similarity index 90% rename from azure-devops/azure/devops/v4_1/npm/models.py rename to azure-devops/azure/devops/v5_0/npm/models.py index 660439b8..63c39992 100644 --- a/azure-devops/azure/devops/v4_1/npm/models.py +++ b/azure-devops/azure/devops/v5_0/npm/models.py @@ -73,11 +73,11 @@ class NpmPackagesBatchRequest(Model): """NpmPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -96,11 +96,11 @@ def __init__(self, data=None, operation=None, packages=None): class NpmPackageVersionDeletionState(Model): """NpmPackageVersionDeletionState. - :param name: + :param name: Name of the package. :type name: str - :param unpublished_date: + :param unpublished_date: UTC date the package was unpublished. :type unpublished_date: datetime - :param version: + :param version: Version of the package. :type version: str """ @@ -136,21 +136,21 @@ def __init__(self, deleted=None): class Package(Model): """Package. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param deprecate_message: Deprecated message, if any, for the package + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deprecate_message: Deprecated message, if any, for the package. :type deprecate_message: str - :param id: + :param id: Package Id. :type id: str - :param name: The display name of the package + :param name: The display name of the package. :type name: str :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` - :param unpublished_date: If and when the package was deleted + :type source_chain: list of :class:`UpstreamSourceInfo ` + :param unpublished_date: If and when the package was deleted. :type unpublished_date: datetime - :param version: The version of the package + :param version: The version of the package. :type version: str """ @@ -183,7 +183,7 @@ class PackageVersionDetails(Model): :param deprecate_message: Indicates the deprecate message of a package version :type deprecate_message: str :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -216,13 +216,13 @@ def __init__(self, links=None): class UpstreamSourceInfo(Model): """UpstreamSourceInfo. - :param id: + :param id: Identity of the upstream source. :type id: str - :param location: + :param location: Locator for connecting to the upstream source. :type location: str - :param name: + :param name: Display name. :type name: str - :param source_type: + :param source_type: Source type, such as Public or Internal. :type source_type: object """ diff --git a/azure-devops/azure/devops/v5_0/npm/npm_client.py b/azure-devops/azure/devops/v5_0/npm/npm_client.py new file mode 100644 index 00000000..6ca1e8fc --- /dev/null +++ b/azure-devops/azure/devops/v5_0/npm/npm_client.py @@ -0,0 +1,427 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class NpmClient(Client): + """Npm + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(NpmClient, 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 = '4c83cfc1-f33a-477e-a789-29d38ffca52e' + + def get_content_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version, **kwargs): + """GetContentScopedPackage. + [Preview API] + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='09a4eafd-123a-495c-979c-0eda7bdb9a14', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_content_unscoped_package(self, feed_id, package_name, package_version, **kwargs): + """GetContentUnscopedPackage. + [Preview API] Get an unscoped npm package. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='75caa482-cb1e-47cd-9f2c-c048a4b7a43e', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def update_packages(self, batch_request, feed_id): + """UpdatePackages. + [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param str feed_id: Name or ID of the feed. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(batch_request, 'NpmPackagesBatchRequest') + self._send(http_method='POST', + location_id='06f34005-bbb2-41f4-88f5-23e03a99bb12', + version='5.0-preview.1', + route_values=route_values, + content=content) + + def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version, **kwargs): + """GetReadmeScopedPackage. + [Preview API] Get the Readme for a package version with an npm scope. + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope\name) + :param str unscoped_package_name: Name of the package (the 'name' part of @scope\name) + :param str package_version: Version of the package. + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='6d4db777-7e4a-43b2-afad-779a1d197301', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_readme_unscoped_package(self, feed_id, package_name, package_version, **kwargs): + """GetReadmeUnscopedPackage. + [Preview API] Get the Readme for a package version that has no npm scope. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='1099a396-b310-41d4-a4b6-33d134ce3fcf', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def delete_scoped_package_version_from_recycle_bin(self, feed_id, package_scope, unscoped_package_name, package_version): + """DeleteScopedPackageVersionFromRecycleBin. + [Preview API] Delete a package version with an npm scope from the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='220f45eb-94a5-432c-902a-5b8c6372e415', + version='5.0-preview.1', + route_values=route_values) + + def get_scoped_package_version_metadata_from_recycle_bin(self, feed_id, package_scope, unscoped_package_name, package_version): + """GetScopedPackageVersionMetadataFromRecycleBin. + [Preview API] Get information about a scoped package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name) + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='220f45eb-94a5-432c-902a-5b8c6372e415', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('NpmPackageVersionDeletionState', response) + + def restore_scoped_package_version_from_recycle_bin(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): + """RestoreScopedPackageVersionFromRecycleBin. + [Preview API] Restore a package version with an npm scope from the recycle bin to its feed. + :param :class:` ` package_version_details: + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'NpmRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='220f45eb-94a5-432c-902a-5b8c6372e415', + version='5.0-preview.1', + route_values=route_values, + content=content) + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Delete a package version without an npm scope from the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', + version='5.0-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] Get information about an unscoped package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('NpmPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version without an npm scope from the recycle bin to its feed. + :param :class:` ` package_version_details: + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'NpmRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', + version='5.0-preview.1', + route_values=route_values, + content=content) + + def get_scoped_package_info(self, feed_id, package_scope, unscoped_package_name, package_version): + """GetScopedPackageInfo. + [Preview API] Get information about a scoped package version (such as @scope/name). + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def unpublish_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version): + """UnpublishScopedPackage. + [Preview API] Unpublish a scoped package version (such as @scope/name). + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def update_scoped_package(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): + """UpdateScopedPackage. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_scope: + :param str unscoped_package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_scope is not None: + route_values['packageScope'] = self._serialize.url('package_scope', package_scope, 'str') + if unscoped_package_name is not None: + route_values['unscopedPackageName'] = self._serialize.url('unscoped_package_name', unscoped_package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + response = self._send(http_method='PATCH', + location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Package', response) + + def get_package_info(self, feed_id, package_name, package_version): + """GetPackageInfo. + [Preview API] Get information about an unscoped package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def unpublish_package(self, feed_id, package_name, package_version): + """UnpublishPackage. + [Preview API] Unpublish an unscoped package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def update_package(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackage. + [Preview API] + :param :class:` ` package_version_details: + :param str feed_id: + :param str package_name: + :param str package_version: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + response = self._send(http_method='PATCH', + location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Package', response) + diff --git a/azure-devops/azure/devops/v4_1/nuGet/__init__.py b/azure-devops/azure/devops/v5_0/nuGet/__init__.py similarity index 97% rename from azure-devops/azure/devops/v4_1/nuGet/__init__.py rename to azure-devops/azure/devops/v5_0/nuGet/__init__.py index 28f5d2eb..3361f2be 100644 --- a/azure-devops/azure/devops/v4_1/nuGet/__init__.py +++ b/azure-devops/azure/devops/v5_0/nuGet/__init__.py @@ -19,4 +19,5 @@ 'Package', 'PackageVersionDetails', 'ReferenceLinks', + 'UpstreamSourceInfo', ] diff --git a/azure-devops/azure/devops/v4_1/nuGet/models.py b/azure-devops/azure/devops/v5_0/nuGet/models.py similarity index 77% rename from azure-devops/azure/devops/v4_1/nuGet/models.py rename to azure-devops/azure/devops/v5_0/nuGet/models.py index 1d6f623f..2d843ca3 100644 --- a/azure-devops/azure/devops/v4_1/nuGet/models.py +++ b/azure-devops/azure/devops/v5_0/nuGet/models.py @@ -73,11 +73,11 @@ class NuGetPackagesBatchRequest(Model): """NuGetPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -96,11 +96,11 @@ def __init__(self, data=None, operation=None, packages=None): class NuGetPackageVersionDeletionState(Model): """NuGetPackageVersionDeletionState. - :param deleted_date: + :param deleted_date: Utc date the package was deleted. :type deleted_date: datetime - :param name: + :param name: Name of the package. :type name: str - :param version: + :param version: Version of the package. :type version: str """ @@ -136,17 +136,19 @@ def __init__(self, deleted=None): class Package(Model): """Package. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param deleted_date: If and when the package was deleted + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. :type deleted_date: datetime - :param id: + :param id: Package Id. :type id: str - :param name: The display name of the package + :param name: The display name of the package. :type name: str :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime - :param version: The version of the package + :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. + :type source_chain: list of :class:`UpstreamSourceInfo ` + :param version: The version of the package. :type version: str """ @@ -156,16 +158,18 @@ class Package(Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, 'version': {'key': 'version', 'type': 'str'} } - def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, version=None): super(Package, self).__init__() self._links = _links self.deleted_date = deleted_date self.id = id self.name = name self.permanently_deleted_date = permanently_deleted_date + self.source_chain = source_chain self.version = version @@ -175,7 +179,7 @@ class PackageVersionDetails(Model): :param listed: Indicates the listing state of a package :type listed: bool :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -205,6 +209,34 @@ def __init__(self, links=None): self.links = links +class UpstreamSourceInfo(Model): + """UpstreamSourceInfo. + + :param id: Identity of the upstream source. + :type id: str + :param location: Locator for connecting to the upstream source. + :type location: str + :param name: Display name. + :type name: str + :param source_type: Source type, such as Public or Internal. + :type source_type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_type': {'key': 'sourceType', 'type': 'object'} + } + + def __init__(self, id=None, location=None, name=None, source_type=None): + super(UpstreamSourceInfo, self).__init__() + self.id = id + self.location = location + self.name = name + self.source_type = source_type + + class BatchListData(BatchOperationData): """BatchListData. @@ -231,5 +263,6 @@ def __init__(self, listed=None): 'Package', 'PackageVersionDetails', 'ReferenceLinks', + 'UpstreamSourceInfo', 'BatchListData', ] diff --git a/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py b/azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py similarity index 73% rename from azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py rename to azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py index 590d2886..a66b88c8 100644 --- a/azure-devops/azure/devops/v4_1/nuGet/nuGet_client.py +++ b/azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py @@ -27,11 +27,11 @@ def __init__(self, base_url=None, creds=None): def download_package(self, feed_id, package_name, package_version, source_protocol_version=None): """DownloadPackage. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: - :param str source_protocol_version: + [Preview API] Download a package version directly. This API is intended for manual UI download options, not for programmatic access and scripting. You may be heavily throttled if accessing this api for scripting purposes. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param str source_protocol_version: Unused :rtype: object """ route_values = {} @@ -46,7 +46,7 @@ def download_package(self, feed_id, package_name, package_version, source_protoc query_parameters['sourceProtocolVersion'] = self._serialize.query('source_protocol_version', source_protocol_version, 'str') response = self._send(http_method='GET', location_id='6ea81b8c-7386-490b-a71f-6cf23c80b388', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -54,8 +54,8 @@ def download_package(self, feed_id, package_name, package_version, source_protoc def update_package_versions(self, batch_request, feed_id): """UpdatePackageVersions. [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. - :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. - :param str feed_id: Feed which contains the packages to update. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param str feed_id: Name or ID of the feed. """ route_values = {} if feed_id is not None: @@ -63,16 +63,16 @@ def update_package_versions(self, batch_request, feed_id): content = self._serialize.body(batch_request, 'NuGetPackagesBatchRequest') self._send(http_method='POST', location_id='00c58ea7-d55f-49de-b59f-983533ae11dc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): """DeletePackageVersionFromRecycleBin. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: + [Preview API] Delete a package version from a feed's recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. """ route_values = {} if feed_id is not None: @@ -83,16 +83,16 @@ def delete_package_version_from_recycle_bin(self, feed_id, package_name, package route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') self._send(http_method='DELETE', location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): """GetPackageVersionMetadataFromRecycleBin. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] View a package version's deletion/recycled status + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -103,17 +103,17 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('NuGetPackageVersionDeletionState', response) def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. - [Preview API] - :param :class:` ` package_version_details: - :param str feed_id: - :param str package_name: - :param str package_version: + [Preview API] Restore a package version from a feed's recycle bin back into the active feed. + :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. """ route_values = {} if feed_id is not None: @@ -125,17 +125,17 @@ def restore_package_version_from_recycle_bin(self, package_version_details, feed content = self._serialize.body(package_version_details, 'NuGetRecycleBinPackageVersionDetails') self._send(http_method='PATCH', location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) def delete_package_version(self, feed_id, package_name, package_version): """DeletePackageVersion. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] Send a package version from the feed to its paired recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package to delete. + :param str package_version: Version of the package to delete. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -146,18 +146,18 @@ def delete_package_version(self, feed_id, package_name, package_version): route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='DELETE', location_id='36c9353b-e250-4c57-b040-513c186c3905', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('Package', response) def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): """GetPackageVersion. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: - :param bool show_deleted: - :rtype: :class:` ` + [Preview API] Get information about a package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param bool show_deleted: True to include deleted packages in the response. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -171,18 +171,18 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') response = self._send(http_method='GET', location_id='36c9353b-e250-4c57-b040-513c186c3905', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Package', response) def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. - [Preview API] - :param :class:` ` package_version_details: - :param str feed_id: - :param str package_name: - :param str package_version: + [Preview API] Set mutable state on a package version. + :param :class:` ` package_version_details: New state to apply to the referenced package. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package to update. + :param str package_version: Version of the package to update. """ route_values = {} if feed_id is not None: @@ -194,7 +194,7 @@ def update_package_version(self, package_version_details, feed_id, package_name, content = self._serialize.body(package_version_details, 'PackageVersionDetails') self._send(http_method='PATCH', location_id='36c9353b-e250-4c57-b040-513c186c3905', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) diff --git a/azure-devops/azure/devops/v4_1/operations/__init__.py b/azure-devops/azure/devops/v5_0/operations/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/operations/__init__.py rename to azure-devops/azure/devops/v5_0/operations/__init__.py diff --git a/azure-devops/azure/devops/v4_1/operations/models.py b/azure-devops/azure/devops/v5_0/operations/models.py similarity index 97% rename from azure-devops/azure/devops/v4_1/operations/models.py rename to azure-devops/azure/devops/v5_0/operations/models.py index 9bc77538..8040dd7c 100644 --- a/azure-devops/azure/devops/v4_1/operations/models.py +++ b/azure-devops/azure/devops/v5_0/operations/models.py @@ -81,13 +81,13 @@ class Operation(OperationReference): :param url: URL to get the full operation object. :type url: str :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_message: Detailed messaged about the status of an operation. :type detailed_message: str :param result_message: Result message for an operation. :type result_message: str :param result_url: URL to the operation result. - :type result_url: :class:`OperationResultReference ` + :type result_url: :class:`OperationResultReference ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/operations/operations_client.py b/azure-devops/azure/devops/v5_0/operations/operations_client.py similarity index 95% rename from azure-devops/azure/devops/v4_1/operations/operations_client.py rename to azure-devops/azure/devops/v5_0/operations/operations_client.py index 9a1bcd7b..c034022b 100644 --- a/azure-devops/azure/devops/v4_1/operations/operations_client.py +++ b/azure-devops/azure/devops/v5_0/operations/operations_client.py @@ -30,7 +30,7 @@ def get_operation(self, operation_id, plugin_id=None): Gets an operation from the the operationId using the given pluginId. :param str operation_id: The ID for the operation. :param str plugin_id: The ID for the plugin. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if operation_id is not None: @@ -40,7 +40,7 @@ def get_operation(self, operation_id, plugin_id=None): query_parameters['pluginId'] = self._serialize.query('plugin_id', plugin_id, 'str') response = self._send(http_method='GET', location_id='9a1b74b4-2ca8-4a9f-8470-c2f2e6fdc949', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Operation', response) diff --git a/azure-devops/azure/devops/v4_1/policy/__init__.py b/azure-devops/azure/devops/v5_0/policy/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/policy/__init__.py rename to azure-devops/azure/devops/v5_0/policy/__init__.py diff --git a/azure-devops/azure/devops/v4_1/policy/models.py b/azure-devops/azure/devops/v5_0/policy/models.py similarity index 92% rename from azure-devops/azure/devops/v4_1/policy/models.py rename to azure-devops/azure/devops/v5_0/policy/models.py index 4efbb429..cad1d72a 100644 --- a/azure-devops/azure/devops/v4_1/policy/models.py +++ b/azure-devops/azure/devops/v5_0/policy/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -41,7 +41,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -60,6 +60,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -77,11 +79,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -89,6 +92,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -99,7 +103,7 @@ class PolicyConfigurationRef(Model): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -121,15 +125,15 @@ class PolicyEvaluationRecord(Model): """PolicyEvaluationRecord. :param _links: Links to other related objects - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies the target of a policy evaluation. :type artifact_id: str :param completed_date: Time when this policy finished evaluating on this pull request. :type completed_date: datetime :param configuration: Contains all configuration data for the policy which is being evaluated. - :type configuration: :class:`PolicyConfiguration ` + :type configuration: :class:`PolicyConfiguration ` :param context: Internal context data of this policy evaluation. - :type context: :class:`object ` + :type context: :class:`object ` :param evaluation_id: Guid which uniquely identifies this evaluation record (one policy running on one pull request). :type evaluation_id: str :param started_date: Time when this policy was first evaluated on this pull request. @@ -207,7 +211,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. @@ -232,15 +236,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. :type revision: int :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The date and time when the policy was created. :type created_date: datetime :param is_blocking: Indicates whether the policy is blocking. @@ -250,7 +254,7 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param is_enabled: Indicates whether the policy is enabled. :type is_enabled: bool :param settings: The policy configuration settings. - :type settings: :class:`object ` + :type settings: :class:`object ` """ _attribute_map = { @@ -288,7 +292,7 @@ class PolicyType(PolicyTypeRef): :param url: The URL where the policy type can be retrieved. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Detailed description of the policy type. :type description: str """ diff --git a/azure-devops/azure/devops/v4_1/policy/policy_client.py b/azure-devops/azure/devops/v5_0/policy/policy_client.py similarity index 92% rename from azure-devops/azure/devops/v4_1/policy/policy_client.py rename to azure-devops/azure/devops/v5_0/policy/policy_client.py index d476afb6..496bec64 100644 --- a/azure-devops/azure/devops/v4_1/policy/policy_client.py +++ b/azure-devops/azure/devops/v5_0/policy/policy_client.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def create_policy_configuration(self, configuration, project, configuration_id=None): """CreatePolicyConfiguration. Create a policy configuration of a given policy type. - :param :class:` ` configuration: The policy configuration to create. + :param :class:` ` configuration: The policy configuration to create. :param str project: Project ID or project name :param int configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -41,7 +41,7 @@ def create_policy_configuration(self, configuration, project, configuration_id=N content = self._serialize.body(configuration, 'PolicyConfiguration') response = self._send(http_method='POST', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('PolicyConfiguration', response) @@ -59,7 +59,7 @@ def delete_policy_configuration(self, project, configuration_id): route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') self._send(http_method='DELETE', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1', + version='5.0', route_values=route_values) def get_policy_configuration(self, project, configuration_id): @@ -67,7 +67,7 @@ def get_policy_configuration(self, project, configuration_id): Get a policy configuration by its ID. :param str project: Project ID or project name :param int configuration_id: ID of the policy configuration - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -76,7 +76,7 @@ def get_policy_configuration(self, project, configuration_id): route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') response = self._send(http_method='GET', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('PolicyConfiguration', response) @@ -84,7 +84,7 @@ def get_policy_configurations(self, project, scope=None, policy_type=None): """GetPolicyConfigurations. Get a list of policy configurations in a project. :param str project: Project ID or project name - :param str scope: The scope on which a subset of policies is applied. + :param str scope: [Provided for legacy reasons] The scope on which a subset of policies is defined. :param str policy_type: Filter returned policies to only this type :rtype: [PolicyConfiguration] """ @@ -98,7 +98,7 @@ def get_policy_configurations(self, project, scope=None, policy_type=None): query_parameters['policyType'] = self._serialize.query('policy_type', policy_type, 'str') response = self._send(http_method='GET', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) @@ -106,10 +106,10 @@ def get_policy_configurations(self, project, scope=None, policy_type=None): def update_policy_configuration(self, configuration, project, configuration_id): """UpdatePolicyConfiguration. Update a policy configuration by its ID. - :param :class:` ` configuration: The policy configuration to update. + :param :class:` ` configuration: The policy configuration to update. :param str project: Project ID or project name :param int configuration_id: ID of the existing policy configuration to be updated. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -119,7 +119,7 @@ def update_policy_configuration(self, configuration, project, configuration_id): content = self._serialize.body(configuration, 'PolicyConfiguration') response = self._send(http_method='PUT', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('PolicyConfiguration', response) @@ -129,7 +129,7 @@ def get_policy_evaluation(self, project, evaluation_id): [Preview API] Gets the present evaluation state of a policy. :param str project: Project ID or project name :param str evaluation_id: ID of the policy evaluation to be retrieved. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -138,7 +138,7 @@ def get_policy_evaluation(self, project, evaluation_id): route_values['evaluationId'] = self._serialize.url('evaluation_id', evaluation_id, 'str') response = self._send(http_method='GET', location_id='46aecb7a-5d2c-4647-897b-0209505a9fe4', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('PolicyEvaluationRecord', response) @@ -147,7 +147,7 @@ def requeue_policy_evaluation(self, project, evaluation_id): [Preview API] Requeue the policy evaluation. :param str project: Project ID or project name :param str evaluation_id: ID of the policy evaluation to be retrieved. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -156,7 +156,7 @@ def requeue_policy_evaluation(self, project, evaluation_id): route_values['evaluationId'] = self._serialize.url('evaluation_id', evaluation_id, 'str') response = self._send(http_method='PATCH', location_id='46aecb7a-5d2c-4647-897b-0209505a9fe4', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('PolicyEvaluationRecord', response) @@ -184,7 +184,7 @@ def get_policy_evaluations(self, project, artifact_id, include_not_applicable=No query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='c23ddff5-229c-4d04-a80b-0fdce9f360c8', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[PolicyEvaluationRecord]', self._unwrap_collection(response)) @@ -195,7 +195,7 @@ def get_policy_configuration_revision(self, project, configuration_id, revision_ :param str project: Project ID or project name :param int configuration_id: The policy configuration ID. :param int revision_id: The revision ID. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -206,7 +206,7 @@ def get_policy_configuration_revision(self, project, configuration_id, revision_ route_values['revisionId'] = self._serialize.url('revision_id', revision_id, 'int') response = self._send(http_method='GET', location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('PolicyConfiguration', response) @@ -231,7 +231,7 @@ def get_policy_configuration_revisions(self, project, configuration_id, top=None query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) @@ -241,7 +241,7 @@ def get_policy_type(self, project, type_id): Retrieve a specific policy type by ID. :param str project: Project ID or project name :param str type_id: The policy ID. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -250,7 +250,7 @@ def get_policy_type(self, project, type_id): route_values['typeId'] = self._serialize.url('type_id', type_id, 'str') response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('PolicyType', response) @@ -265,7 +265,7 @@ def get_policy_types(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[PolicyType]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/profile/__init__.py b/azure-devops/azure/devops/v5_0/profile/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/profile/__init__.py rename to azure-devops/azure/devops/v5_0/profile/__init__.py diff --git a/azure-devops/azure/devops/v4_1/profile/models.py b/azure-devops/azure/devops/v5_0/profile/models.py similarity index 98% rename from azure-devops/azure/devops/v4_1/profile/models.py rename to azure-devops/azure/devops/v5_0/profile/models.py index da7f12fd..f7e6dedb 100644 --- a/azure-devops/azure/devops/v4_1/profile/models.py +++ b/azure-devops/azure/devops/v5_0/profile/models.py @@ -149,7 +149,7 @@ class Profile(Model): """Profile. :param application_container: - :type application_container: :class:`AttributesContainer ` + :type application_container: :class:`AttributesContainer ` :param core_attributes: :type core_attributes: dict :param core_revision: @@ -189,7 +189,7 @@ class ProfileAttributeBase(Model): """ProfileAttributeBase. :param descriptor: - :type descriptor: :class:`AttributeDescriptor ` + :type descriptor: :class:`AttributeDescriptor ` :param revision: :type revision: int :param time_stamp: @@ -241,7 +241,7 @@ class ProfileRegions(Model): :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out :type opt_out_contact_consent_requirement_regions: list of str :param regions: List of country/regions - :type regions: list of :class:`ProfileRegion ` + :type regions: list of :class:`ProfileRegion ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/profile/profile_client.py b/azure-devops/azure/devops/v5_0/profile/profile_client.py similarity index 96% rename from azure-devops/azure/devops/v4_1/profile/profile_client.py rename to azure-devops/azure/devops/v5_0/profile/profile_client.py index c04ac57c..9a0158c9 100644 --- a/azure-devops/azure/devops/v4_1/profile/profile_client.py +++ b/azure-devops/azure/devops/v5_0/profile/profile_client.py @@ -34,7 +34,7 @@ def get_profile(self, id, details=None, with_attributes=None, partition=None, co :param str partition: :param str core_attributes: :param bool force_refresh: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -52,7 +52,7 @@ def get_profile(self, id, details=None, with_attributes=None, partition=None, co query_parameters['forceRefresh'] = self._serialize.query('force_refresh', force_refresh, 'bool') response = self._send(http_method='GET', location_id='f83735dc-483f-4238-a291-d45f6080a9af', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Profile', response) diff --git a/azure-devops/azure/devops/v4_1/project_analysis/__init__.py b/azure-devops/azure/devops/v5_0/project_analysis/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/project_analysis/__init__.py rename to azure-devops/azure/devops/v5_0/project_analysis/__init__.py diff --git a/azure-devops/azure/devops/v4_1/project_analysis/models.py b/azure-devops/azure/devops/v5_0/project_analysis/models.py similarity index 96% rename from azure-devops/azure/devops/v4_1/project_analysis/models.py rename to azure-devops/azure/devops/v5_0/project_analysis/models.py index ad10ab75..9158d105 100644 --- a/azure-devops/azure/devops/v4_1/project_analysis/models.py +++ b/azure-devops/azure/devops/v5_0/project_analysis/models.py @@ -102,7 +102,7 @@ class ProjectActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param project_id: :type project_id: str :param pull_requests_completed_count: @@ -142,9 +142,9 @@ class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` :param result_phase: :type result_phase: object :param url: @@ -177,7 +177,7 @@ class RepositoryActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param repository_id: :type repository_id: str """ @@ -207,7 +207,7 @@ class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param name: :type name: str :param result_phase: diff --git a/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py b/azure-devops/azure/devops/v5_0/project_analysis/project_analysis_client.py similarity index 93% rename from azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py rename to azure-devops/azure/devops/v5_0/project_analysis/project_analysis_client.py index 7632bf7d..7684ce01 100644 --- a/azure-devops/azure/devops/v4_1/project_analysis/project_analysis_client.py +++ b/azure-devops/azure/devops/v5_0/project_analysis/project_analysis_client.py @@ -29,14 +29,14 @@ def get_project_language_analytics(self, project): """GetProjectLanguageAnalytics. [Preview API] :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='5b02a779-1867-433f-90b7-d23ed5e33e57', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ProjectLanguageAnalytics', response) @@ -46,7 +46,7 @@ def get_project_activity_metrics(self, project, from_date, aggregation_type): :param str project: Project ID or project name :param datetime from_date: :param str aggregation_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -58,7 +58,7 @@ def get_project_activity_metrics(self, project, from_date, aggregation_type): query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') response = self._send(http_method='GET', location_id='e40ae584-9ea6-4f06-a7c7-6284651b466b', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ProjectActivityMetrics', response) @@ -87,7 +87,7 @@ def get_git_repositories_activity_metrics(self, project, from_date, aggregation_ query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='df7fbbca-630a-40e3-8aa3-7a3faf66947e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[RepositoryActivityMetrics]', self._unwrap_collection(response)) @@ -99,7 +99,7 @@ def get_repository_activity_metrics(self, project, repository_id, from_date, agg :param str repository_id: :param datetime from_date: :param str aggregation_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -113,7 +113,7 @@ def get_repository_activity_metrics(self, project, repository_id, from_date, agg query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') response = self._send(http_method='GET', location_id='df7fbbca-630a-40e3-8aa3-7a3faf66947e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('RepositoryActivityMetrics', response) diff --git a/azure-devops/azure/devops/v5_0/provenance/__init__.py b/azure-devops/azure/devops/v5_0/provenance/__init__.py new file mode 100644 index 00000000..70c7a03e --- /dev/null +++ b/azure-devops/azure/devops/v5_0/provenance/__init__.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'SessionRequest', + 'SessionResponse', +] diff --git a/azure-devops/azure/devops/v5_0/provenance/models.py b/azure-devops/azure/devops/v5_0/provenance/models.py new file mode 100644 index 00000000..58dd0b07 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/provenance/models.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SessionRequest(Model): + """SessionRequest. + + :param data: Generic property bag to store data about the session + :type data: dict + :param feed: The feed name or id for the session + :type feed: str + :param source: The type of session If a known value is provided, the Data dictionary will be validated for the presence of properties required by that type + :type source: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'feed': {'key': 'feed', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, data=None, feed=None, source=None): + super(SessionRequest, self).__init__() + self.data = data + self.feed = feed + self.source = source + + +class SessionResponse(Model): + """SessionResponse. + + :param session_id: The unique identifier for the session + :type session_id: str + :param session_name: The name for the session + :type session_name: str + """ + + _attribute_map = { + 'session_id': {'key': 'sessionId', 'type': 'str'}, + 'session_name': {'key': 'sessionName', 'type': 'str'} + } + + def __init__(self, session_id=None, session_name=None): + super(SessionResponse, self).__init__() + self.session_id = session_id + self.session_name = session_name + + +__all__ = [ + 'SessionRequest', + 'SessionResponse', +] diff --git a/azure-devops/azure/devops/v5_0/provenance/provenance_client.py b/azure-devops/azure/devops/v5_0/provenance/provenance_client.py new file mode 100644 index 00000000..3ef571c1 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/provenance/provenance_client.py @@ -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 . import models + + +class ProvenanceClient(Client): + """Provenance + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProvenanceClient, 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 = 'b40c1171-807a-493a-8f3f-5c26d5e2f5aa' + + def create_session(self, session_request, protocol): + """CreateSession. + [Preview API] Creates a session, a wrapper around a feed that can store additional metadata on the packages published to it. + :param :class:` ` session_request: The feed and metadata for the session + :param str protocol: The protocol that the session will target + :rtype: :class:` ` + """ + route_values = {} + if protocol is not None: + route_values['protocol'] = self._serialize.url('protocol', protocol, 'str') + content = self._serialize.body(session_request, 'SessionRequest') + response = self._send(http_method='POST', + location_id='503b4e54-ebf4-4d04-8eee-21c00823c2ac', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SessionResponse', response) + diff --git a/azure-devops/azure/devops/v5_0/py_pi_api/__init__.py b/azure-devops/azure/devops/v5_0/py_pi_api/__init__.py new file mode 100644 index 00000000..dd637cd0 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/py_pi_api/__init__.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'PyPiPackagesBatchRequest', + 'PyPiPackageVersionDeletionState', + 'PyPiRecycleBinPackageVersionDetails', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v5_0/py_pi_api/models.py b/azure-devops/azure/devops/v5_0/py_pi_api/models.py new file mode 100644 index 00000000..10a9122d --- /dev/null +++ b/azure-devops/azure/devops/v5_0/py_pi_api/models.py @@ -0,0 +1,214 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. + :type deleted_date: datetime + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, views=None): + super(PackageVersionDetails, self).__init__() + self.views = views + + +class PyPiPackagesBatchRequest(Model): + """PyPiPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(PyPiPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class PyPiPackageVersionDeletionState(Model): + """PyPiPackageVersionDeletionState. + + :param deleted_date: UTC date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(PyPiPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +class PyPiRecycleBinPackageVersionDetails(Model): + """PyPiRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(PyPiRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'PyPiPackagesBatchRequest', + 'PyPiPackageVersionDeletionState', + 'PyPiRecycleBinPackageVersionDetails', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py b/azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py new file mode 100644 index 00000000..76b6ac7e --- /dev/null +++ b/azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py @@ -0,0 +1,182 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class PyPiApiClient(Client): + """PyPiApi + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(PyPiApiClient, 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 = '92f0314b-06c5-46e0-abe7-15fd9d13276a' + + def download_package(self, feed_id, package_name, package_version, file_name): + """DownloadPackage. + [Preview API] Download a python package file directly. This API is intended for manual UI download options, not for programmatic access and scripting. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param str file_name: Name of the file in the package + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + if file_name is not None: + route_values['fileName'] = self._serialize.url('file_name', file_name, 'str') + response = self._send(http_method='GET', + location_id='97218bae-a64d-4381-9257-b5b7951f0b98', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Delete a package version from the feed, moving it to the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='07143752-3d94-45fd-86c2-0c77ed87847b', + version='5.0-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] Get information about a package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='07143752-3d94-45fd-86c2-0c77ed87847b', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('PyPiPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version from the recycle bin to its associated feed. + :param :class:` ` package_version_details: Set the 'Deleted' state to 'false' to restore the package to its feed. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PyPiRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='07143752-3d94-45fd-86c2-0c77ed87847b', + version='5.0-preview.1', + route_values=route_values, + content=content) + + def delete_package_version(self, feed_id, package_name, package_version): + """DeletePackageVersion. + [Preview API] Delete a package version, moving it to the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='d146ac7e-9e3f-4448-b956-f9bb3bdf9b2e', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): + """GetPackageVersion. + [Preview API] Get information about a package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param bool show_deleted: True to show information for deleted package versions. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='d146ac7e-9e3f-4448-b956-f9bb3bdf9b2e', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def update_package_version(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackageVersion. + [Preview API] Update state for a package version. + :param :class:` ` package_version_details: Details to be updated. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + self._send(http_method='PATCH', + location_id='d146ac7e-9e3f-4448-b956-f9bb3bdf9b2e', + version='5.0-preview.1', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/v4_1/security/__init__.py b/azure-devops/azure/devops/v5_0/security/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/security/__init__.py rename to azure-devops/azure/devops/v5_0/security/__init__.py diff --git a/azure-devops/azure/devops/v4_1/security/models.py b/azure-devops/azure/devops/v5_0/security/models.py similarity index 97% rename from azure-devops/azure/devops/v4_1/security/models.py rename to azure-devops/azure/devops/v5_0/security/models.py index 76824770..8f099a9a 100644 --- a/azure-devops/azure/devops/v4_1/security/models.py +++ b/azure-devops/azure/devops/v5_0/security/models.py @@ -17,9 +17,9 @@ class AccessControlEntry(Model): :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. :type deny: int :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` + :type extended_info: :class:`AceExtendedInformation ` """ _attribute_map = { @@ -152,10 +152,10 @@ def __init__(self, permissions=None, security_namespace_id=None, token=None, val class PermissionEvaluationBatch(Model): """PermissionEvaluationBatch. - :param always_allow_administrators: + :param always_allow_administrators: True if members of the Administrators group should always pass the security check. :type always_allow_administrators: bool :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` + :type evaluations: list of :class:`PermissionEvaluation ` """ _attribute_map = { @@ -173,7 +173,7 @@ class SecurityNamespaceDescription(Model): """SecurityNamespaceDescription. :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` + :type actions: list of :class:`ActionDefinition ` :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. :type dataspace_category: str :param display_name: This localized name for this namespace. diff --git a/azure-devops/azure/devops/v4_1/security/security_client.py b/azure-devops/azure/devops/v5_0/security/security_client.py similarity index 81% rename from azure-devops/azure/devops/v4_1/security/security_client.py rename to azure-devops/azure/devops/v5_0/security/security_client.py index 171605bd..5a846a32 100644 --- a/azure-devops/azure/devops/v4_1/security/security_client.py +++ b/azure-devops/azure/devops/v5_0/security/security_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def remove_access_control_entries(self, security_namespace_id, token=None, descriptors=None): """RemoveAccessControlEntries. Remove the specified ACEs from the ACL belonging to the specified token. - :param str security_namespace_id: - :param str token: - :param str descriptors: + :param str security_namespace_id: Security namespace identifier. + :param str token: The token whose ACL should be modified. + :param str descriptors: String containing a list of identity descriptors separated by ',' whose entries should be removed. :rtype: bool """ route_values = {} @@ -43,16 +43,16 @@ def remove_access_control_entries(self, security_namespace_id, token=None, descr query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') response = self._send(http_method='DELETE', location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('bool', response) def set_access_control_entries(self, container, security_namespace_id): """SetAccessControlEntries. - Add or update ACEs in the ACL for the provided token. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. - :param :class:` ` container: - :param str security_namespace_id: + Add or update ACEs in the ACL for the provided token. The request body contains the target token, a list of [ACEs](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/access%20control%20entries/set%20access%20control%20entries?#accesscontrolentry) and a optional merge parameter. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. + :param :class:` ` container: + :param str security_namespace_id: Security namespace identifier. :rtype: [AccessControlEntry] """ route_values = {} @@ -61,17 +61,17 @@ def set_access_control_entries(self, container, security_namespace_id): content = self._serialize.body(container, 'object') response = self._send(http_method='POST', location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[AccessControlEntry]', self._unwrap_collection(response)) def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): """QueryAccessControlLists. - Return a list of access control lists for the specified security namespace and token. + Return a list of access control lists for the specified security namespace and token. All ACLs in the security namespace will be retrieved if no optional parameters are provided. :param str security_namespace_id: Security namespace identifier. :param str token: Security token - :param str descriptors: + :param str descriptors: An optional filter string containing a list of identity descriptors separated by ',' whose ACEs should be retrieved. If this is left null, entire ACLs will be returned. :param bool include_extended_info: If true, populate the extended information properties for the access control entries contained in the returned lists. :param bool recurse: If true and this is a hierarchical namespace, return child ACLs of the specified token. :rtype: [AccessControlList] @@ -90,7 +90,7 @@ def query_access_control_lists(self, security_namespace_id, token=None, descript query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') response = self._send(http_method='GET', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[AccessControlList]', self._unwrap_collection(response)) @@ -113,15 +113,15 @@ def remove_access_control_lists(self, security_namespace_id, tokens=None, recurs query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') response = self._send(http_method='DELETE', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('bool', response) def set_access_control_lists(self, access_control_lists, security_namespace_id): """SetAccessControlLists. - Create one or more access control lists. - :param :class:` ` access_control_lists: + Create or update one or more access control lists. All data that currently exists for the ACLs supplied will be overwritten. + :param :class:` ` access_control_lists: A list of ACLs to create or update. :param str security_namespace_id: Security namespace identifier. """ route_values = {} @@ -130,20 +130,20 @@ def set_access_control_lists(self, access_control_lists, security_namespace_id): content = self._serialize.body(access_control_lists, 'VssJsonCollectionWrapper') self._send(http_method='POST', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.1', + version='5.0', route_values=route_values, content=content) def has_permissions_batch(self, eval_batch): """HasPermissionsBatch. Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false. - :param :class:` ` eval_batch: The set of evaluation requests. - :rtype: :class:` ` + :param :class:` ` eval_batch: The set of evaluation requests. + :rtype: :class:` ` """ content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') response = self._send(http_method='POST', location_id='cf1faa59-1b63-4448-bf04-13d981a46f5d', - version='4.1', + version='5.0', content=content) return self._deserialize('PermissionEvaluationBatch', response) @@ -171,19 +171,19 @@ def has_permissions(self, security_namespace_id, permissions=None, tokens=None, query_parameters['delimiter'] = self._serialize.query('delimiter', delimiter, 'str') response = self._send(http_method='GET', location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[bool]', self._unwrap_collection(response)) - def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None): + def remove_permission(self, security_namespace_id, descriptor, permissions=None, token=None): """RemovePermission. - Removes the specified permissions from the caller or specified user or group. + Removes the specified permissions on a security token for a user or group. :param str security_namespace_id: Security namespace identifier. + :param str descriptor: Identity descriptor of the user to remove permissions for. :param int permissions: Permissions to remove. :param str token: Security token to remove permissions for. - :param str descriptor: Identity descriptor of the user to remove permissions for. Defaults to the caller. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if security_namespace_id is not None: @@ -191,21 +191,22 @@ def remove_permission(self, security_namespace_id, permissions=None, token=None, if permissions is not None: route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') query_parameters = {} - if token is not None: - query_parameters['token'] = self._serialize.query('token', token, 'str') if descriptor is not None: query_parameters['descriptor'] = self._serialize.query('descriptor', descriptor, 'str') + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') response = self._send(http_method='DELETE', location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AccessControlEntry', response) - def query_security_namespaces(self, security_namespace_id, local_only=None): + def query_security_namespaces(self, security_namespace_id=None, local_only=None): """QuerySecurityNamespaces. - :param str security_namespace_id: - :param bool local_only: + List all security namespaces or just the specified namespace. + :param str security_namespace_id: Security namespace identifier. + :param bool local_only: If true, retrieve only local security namespaces. :rtype: [SecurityNamespaceDescription] """ route_values = {} @@ -216,7 +217,7 @@ def query_security_namespaces(self, security_namespace_id, local_only=None): query_parameters['localOnly'] = self._serialize.query('local_only', local_only, 'bool') response = self._send(http_method='GET', location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[SecurityNamespaceDescription]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/service_endpoint/__init__.py b/azure-devops/azure/devops/v5_0/service_endpoint/__init__.py similarity index 87% rename from azure-devops/azure/devops/v4_1/service_endpoint/__init__.py rename to azure-devops/azure/devops/v5_0/service_endpoint/__init__.py index e7d41c7a..1c8c7995 100644 --- a/azure-devops/azure/devops/v4_1/service_endpoint/__init__.py +++ b/azure-devops/azure/devops/v5_0/service_endpoint/__init__.py @@ -11,6 +11,10 @@ __all__ = [ 'AuthenticationSchemeReference', 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', 'ClientCertificate', 'DataSource', 'DataSourceBinding', @@ -29,6 +33,9 @@ 'InputValue', 'InputValues', 'InputValuesError', + 'OAuthConfiguration', + 'OAuthConfigurationParams', + 'ProjectReference', 'ReferenceLinks', 'ResultTransformationDetails', 'ServiceEndpoint', diff --git a/azure-devops/azure/devops/v4_1/service_endpoint/models.py b/azure-devops/azure/devops/v5_0/service_endpoint/models.py similarity index 69% rename from azure-devops/azure/devops/v4_1/service_endpoint/models.py rename to azure-devops/azure/devops/v5_0/service_endpoint/models.py index 46eed4fe..9d5d962b 100644 --- a/azure-devops/azure/devops/v4_1/service_endpoint/models.py +++ b/azure-devops/azure/devops/v5_0/service_endpoint/models.py @@ -49,6 +49,102 @@ def __init__(self, name=None, value=None): self.value = value +class AzureManagementGroup(Model): + """AzureManagementGroup. + + :param display_name: Display name of azure management group + :type display_name: str + :param id: Id of azure management group + :type id: str + :param name: Azure management group name + :type name: str + :param tenant_id: Id of tenant from which azure management group belogs + :type tenant_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, name=None, tenant_id=None): + super(AzureManagementGroup, self).__init__() + self.display_name = display_name + self.id = id + self.name = name + self.tenant_id = tenant_id + + +class AzureManagementGroupQueryResult(Model): + """AzureManagementGroupQueryResult. + + :param error_message: Error message in case of an exception + :type error_message: str + :param value: List of azure management groups + :type value: list of :class:`AzureManagementGroup ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureManagementGroup]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureManagementGroupQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + +class AzureSubscription(Model): + """AzureSubscription. + + :param display_name: + :type display_name: str + :param subscription_id: + :type subscription_id: str + :param subscription_tenant_id: + :type subscription_tenant_id: str + :param subscription_tenant_name: + :type subscription_tenant_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, + 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} + } + + def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): + super(AzureSubscription, self).__init__() + self.display_name = display_name + self.subscription_id = subscription_id + self.subscription_tenant_id = subscription_tenant_id + self.subscription_tenant_name = subscription_tenant_name + + +class AzureSubscriptionQueryResult(Model): + """AzureSubscriptionQueryResult. + + :param error_message: + :type error_message: str + :param value: + :type value: list of :class:`AzureSubscription ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureSubscription]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureSubscriptionQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + class ClientCertificate(Model): """ClientCertificate. @@ -69,13 +165,23 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :param callback_context_template: + :type callback_context_template: str + :param callback_required_template: + :type callback_required_template: str :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: + :type initial_context_template: str :param name: :type name: str + :param request_content: + :type request_content: str + :param request_verb: + :type request_verb: str :param resource_url: :type resource_url: str :param result_selector: @@ -84,19 +190,29 @@ class DataSource(Model): _attribute_map = { 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'} } - def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): + def __init__(self, authentication_scheme=None, callback_context_template=None, callback_required_template=None, endpoint_url=None, headers=None, initial_context_template=None, name=None, request_content=None, request_verb=None, resource_url=None, result_selector=None): super(DataSource, self).__init__() self.authentication_scheme = authentication_scheme + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template self.endpoint_url = endpoint_url self.headers = headers + self.initial_context_template = initial_context_template self.name = name + self.request_content = request_content + self.request_verb = request_verb self.resource_url = resource_url self.result_selector = result_selector @@ -104,6 +220,10 @@ def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, class DataSourceBindingBase(Model): """DataSourceBindingBase. + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str :param endpoint_id: Gets or sets the endpoint Id. @@ -111,7 +231,9 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -123,22 +245,28 @@ class DataSourceBindingBase(Model): """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'} } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None): super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template self.data_source_name = data_source_name self.endpoint_id = endpoint_id self.endpoint_url = endpoint_url self.headers = headers + self.initial_context_template = initial_context_template self.parameters = parameters self.result_selector = result_selector self.result_template = result_template @@ -153,9 +281,15 @@ class DataSourceDetails(Model): :param data_source_url: Gets or sets the data source url. :type data_source_url: str :param headers: Gets or sets the request headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Gets or sets the initialization context used for the initial call to the data source + :type initial_context_template: str :param parameters: Gets the parameters of data source. :type parameters: dict + :param request_content: Gets or sets the data source request content. + :type request_content: str + :param request_verb: Gets or sets the data source request verb. Get/Post are the only implemented types + :type request_verb: str :param resource_url: Gets or sets the resource url of data source. :type resource_url: str :param result_selector: Gets or sets the result selector. @@ -166,17 +300,23 @@ class DataSourceDetails(Model): 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'} } - def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): + def __init__(self, data_source_name=None, data_source_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, resource_url=None, result_selector=None): super(DataSourceDetails, self).__init__() self.data_source_name = data_source_name self.data_source_url = data_source_url self.headers = headers + self.initial_context_template = initial_context_template self.parameters = parameters + self.request_content = request_content + self.request_verb = request_verb self.resource_url = resource_url self.result_selector = result_selector @@ -227,7 +367,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -265,7 +405,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -297,7 +437,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -345,7 +485,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -364,6 +504,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -381,11 +523,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -393,6 +536,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -423,11 +567,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -539,7 +683,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -549,7 +693,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -589,6 +733,110 @@ def __init__(self, message=None): self.message = message +class OAuthConfiguration(Model): + """OAuthConfiguration. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param created_by: Gets or sets the identity who created the config. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets the time when config was created. + :type created_on: datetime + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param id: Gets or sets the unique identifier of this field + :type id: str + :param modified_by: Gets or sets the identity who modified the config. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets the time when variable group was modified + :type modified_on: datetime + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, created_by=None, created_on=None, endpoint_type=None, id=None, modified_by=None, modified_on=None, name=None, url=None): + super(OAuthConfiguration, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.created_by = created_by + self.created_on = created_on + self.endpoint_type = endpoint_type + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.url = url + + +class OAuthConfigurationParams(Model): + """OAuthConfigurationParams. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, endpoint_type=None, name=None, url=None): + super(OAuthConfigurationParams, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.endpoint_type = endpoint_type + self.name = name + self.url = url + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + class ReferenceLinks(Model): """ReferenceLinks. @@ -608,16 +856,24 @@ def __init__(self, links=None): class ResultTransformationDetails(Model): """ResultTransformationDetails. + :param callback_context_template: Gets or sets the template for callback parameters + :type callback_context_template: str + :param callback_required_template: Gets or sets the template to decide whether to callback or not + :type callback_required_template: str :param result_template: Gets or sets the template for result transformation. :type result_template: str """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'} } - def __init__(self, result_template=None): + def __init__(self, callback_context_template=None, callback_required_template=None, result_template=None): super(ResultTransformationDetails, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template self.result_template = result_template @@ -625,11 +881,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -640,12 +896,16 @@ class ServiceEndpoint(Model): :type id: str :param is_ready: EndPoint state indictor :type is_ready: bool + :param is_shared: Indicates whether service endpoint is shared with other projects or not. + :type is_shared: bool :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` + :param owner: Owner of the endpoint Supported values are "library", "agentcloud" + :type owner: str :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -661,14 +921,16 @@ class ServiceEndpoint(Model): 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'owner': {'key': 'owner', 'type': 'str'}, 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, 'type': {'key': 'type', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, is_shared=None, name=None, operation_status=None, owner=None, readers_group=None, type=None, url=None): super(ServiceEndpoint, self).__init__() self.administrators_group = administrators_group self.authorization = authorization @@ -678,8 +940,10 @@ def __init__(self, administrators_group=None, authorization=None, created_by=Non self.group_scope_id = group_scope_id self.id = id self.is_ready = is_ready + self.is_shared = is_shared self.name = name self.operation_status = operation_status + self.owner = owner self.readers_group = readers_group self.type = type self.url = url @@ -689,29 +953,37 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param authorization_url: Gets or sets the Authorization url required to authenticate using OAuth2 + :type authorization_url: str :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ _attribute_map = { 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, 'scheme': {'key': 'scheme', 'type': 'str'} } - def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): + def __init__(self, authorization_headers=None, authorization_url=None, client_certificates=None, data_source_bindings=None, display_name=None, input_descriptors=None, scheme=None): super(ServiceEndpointAuthenticationScheme, self).__init__() self.authorization_headers = authorization_headers + self.authorization_url = authorization_url self.client_certificates = client_certificates + self.data_source_bindings = data_source_bindings self.display_name = display_name self.input_descriptors = input_descriptors self.scheme = scheme @@ -721,7 +993,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: Gets or sets the authorization of service endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: Gets or sets the data of service endpoint. :type data: dict :param type: Gets or sets the type of service endpoint. @@ -749,13 +1021,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`ServiceEndpointExecutionOwner ` + :type definition: :class:`ServiceEndpointExecutionOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`ServiceEndpointExecutionOwner ` + :type owner: :class:`ServiceEndpointExecutionOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -789,7 +1061,7 @@ class ServiceEndpointExecutionOwner(Model): """ServiceEndpointExecutionOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Gets or sets the Id of service endpoint execution owner. :type id: int :param name: Gets or sets the name of service endpoint execution owner. @@ -813,7 +1085,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -833,7 +1105,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -853,11 +1125,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: Gets or sets the data source details for the service endpoint request. - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -876,22 +1148,30 @@ def __init__(self, data_source_details=None, result_transformation_details=None, class ServiceEndpointRequestResult(Model): """ServiceEndpointRequestResult. + :param callback_context_parameters: Gets or sets the parameters used to make subsequent calls to the data source + :type callback_context_parameters: dict + :param callback_required: Gets or sets the flat that decides if another call to the data source is to be made + :type callback_required: bool :param error_message: Gets or sets the error message of the service endpoint request result. :type error_message: str :param result: Gets or sets the result of service endpoint request. - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: Gets or sets the status code of the service endpoint request result. :type status_code: object """ _attribute_map = { + 'callback_context_parameters': {'key': 'callbackContextParameters', 'type': '{str}'}, + 'callback_required': {'key': 'callbackRequired', 'type': 'bool'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'result': {'key': 'result', 'type': 'object'}, 'status_code': {'key': 'statusCode', 'type': 'object'} } - def __init__(self, error_message=None, result=None, status_code=None): + def __init__(self, callback_context_parameters=None, callback_required=None, error_message=None, result=None, status_code=None): super(ServiceEndpointRequestResult, self).__init__() + self.callback_context_parameters = callback_context_parameters + self.callback_required = callback_required self.error_message = error_message self.result = result self.status_code = status_code @@ -901,25 +1181,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -964,6 +1244,10 @@ def __init__(self, authentication_schemes=None, data_sources=None, dependency_da class DataSourceBinding(DataSourceBindingBase): """DataSourceBinding. + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str :param endpoint_id: Gets or sets the endpoint Id. @@ -971,7 +1255,9 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -983,23 +1269,30 @@ class DataSourceBinding(DataSourceBindingBase): """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(callback_context_template=callback_context_template, callback_required_template=callback_required_template, data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, initial_context_template=initial_context_template, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) __all__ = [ 'AuthenticationSchemeReference', 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', 'ClientCertificate', 'DataSource', 'DataSourceBindingBase', @@ -1017,6 +1310,9 @@ def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, h 'InputValue', 'InputValues', 'InputValuesError', + 'OAuthConfiguration', + 'OAuthConfigurationParams', + 'ProjectReference', 'ReferenceLinks', 'ResultTransformationDetails', 'ServiceEndpoint', diff --git a/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py b/azure-devops/azure/devops/v5_0/service_endpoint/service_endpoint_client.py similarity index 83% rename from azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py rename to azure-devops/azure/devops/v5_0/service_endpoint/service_endpoint_client.py index 076f4045..b8a32675 100644 --- a/azure-devops/azure/devops/v4_1/service_endpoint/service_endpoint_client.py +++ b/azure-devops/azure/devops/v5_0/service_endpoint/service_endpoint_client.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): """ExecuteServiceEndpointRequest. [Preview API] Proxy for a GET request defined by a service endpoint. - :param :class:` ` service_endpoint_request: Service endpoint request. + :param :class:` ` service_endpoint_request: Service endpoint request. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -42,7 +42,7 @@ def execute_service_endpoint_request(self, service_endpoint_request, project, en content = self._serialize.body(service_endpoint_request, 'ServiceEndpointRequest') response = self._send(http_method='POST', location_id='cc63bb57-2a5f-4a7a-b79c-c142d308657e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -51,9 +51,9 @@ def execute_service_endpoint_request(self, service_endpoint_request, project, en def create_service_endpoint(self, endpoint, project): """CreateServiceEndpoint. [Preview API] Create a service endpoint. - :param :class:` ` endpoint: Service endpoint to create. + :param :class:` ` endpoint: Service endpoint to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -61,33 +61,38 @@ def create_service_endpoint(self, endpoint, project): content = self._serialize.body(endpoint, 'ServiceEndpoint') response = self._send(http_method='POST', location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('ServiceEndpoint', response) - def delete_service_endpoint(self, project, endpoint_id): + def delete_service_endpoint(self, project, endpoint_id, deep=None): """DeleteServiceEndpoint. [Preview API] Delete a service endpoint. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint to delete. + :param bool deep: Specific to AzureRM endpoint created in Automatic flow. When set to true, this will also delete corresponding AAD application in Azure. Default value is true. """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') if endpoint_id is not None: route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if deep is not None: + query_parameters['deep'] = self._serialize.query('deep', deep, 'bool') self._send(http_method='DELETE', location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', - version='4.1-preview.1', - route_values=route_values) + version='5.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) def get_service_endpoint_details(self, project, endpoint_id): """GetServiceEndpointDetails. [Preview API] Get the service endpoint details. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -96,11 +101,11 @@ def get_service_endpoint_details(self, project, endpoint_id): route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') response = self._send(http_method='GET', location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values) return self._deserialize('ServiceEndpoint', response) - def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, include_failed=None): + def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, include_failed=None, include_details=None): """GetServiceEndpoints. [Preview API] Get the service endpoints. :param str project: Project ID or project name @@ -108,6 +113,7 @@ def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ :param [str] auth_schemes: Authorization schemes used for service endpoints. :param [str] endpoint_ids: Ids of the service endpoints. :param bool include_failed: Failed flag for service endpoints. + :param bool include_details: Flag to include more details for service endpoints. This is for internal use only and the flag will be treated as false for all other requests :rtype: [ServiceEndpoint] """ route_values = {} @@ -124,14 +130,16 @@ def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ query_parameters['endpointIds'] = self._serialize.query('endpoint_ids', endpoint_ids, 'str') if include_failed is not None: query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') response = self._send(http_method='GET', location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) - def get_service_endpoints_by_names(self, project, endpoint_names, type=None, auth_schemes=None, include_failed=None): + def get_service_endpoints_by_names(self, project, endpoint_names, type=None, auth_schemes=None, include_failed=None, include_details=None): """GetServiceEndpointsByNames. [Preview API] Get the service endpoints by name. :param str project: Project ID or project name @@ -139,6 +147,7 @@ def get_service_endpoints_by_names(self, project, endpoint_names, type=None, aut :param str type: Type of the service endpoints. :param [str] auth_schemes: Authorization schemes used for service endpoints. :param bool include_failed: Failed flag for service endpoints. + :param bool include_details: Flag to include more details for service endpoints. This is for internal use only and the flag will be treated as false for all other requests :rtype: [ServiceEndpoint] """ route_values = {} @@ -155,9 +164,11 @@ def get_service_endpoints_by_names(self, project, endpoint_names, type=None, aut query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') if include_failed is not None: query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') response = self._send(http_method='GET', location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) @@ -165,11 +176,11 @@ def get_service_endpoints_by_names(self, project, endpoint_names, type=None, aut def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): """UpdateServiceEndpoint. [Preview API] Update a service endpoint. - :param :class:` ` endpoint: Service endpoint to update. + :param :class:` ` endpoint: Service endpoint to update. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint to update. :param str operation: Operation for the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -182,7 +193,7 @@ def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None content = self._serialize.body(endpoint, 'ServiceEndpoint') response = self._send(http_method='PUT', location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters, content=content) @@ -201,7 +212,7 @@ def update_service_endpoints(self, endpoints, project): content = self._serialize.body(endpoints, '[ServiceEndpoint]') response = self._send(http_method='PUT', location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', - version='4.1-preview.1', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) @@ -224,7 +235,7 @@ def get_service_endpoint_execution_records(self, project, endpoint_id, top=None) query_parameters['top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='10a16738-9299-4cd1-9a81-fd23ad6200d0', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ServiceEndpointExecutionRecord]', self._unwrap_collection(response)) @@ -243,7 +254,7 @@ def get_service_endpoint_types(self, type=None, scheme=None): query_parameters['scheme'] = self._serialize.query('scheme', scheme, 'str') response = self._send(http_method='GET', location_id='5a7938a4-655e-486c-b562-b78c54a7e87b', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[ServiceEndpointType]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/service_hooks/__init__.py b/azure-devops/azure/devops/v5_0/service_hooks/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/service_hooks/__init__.py rename to azure-devops/azure/devops/v5_0/service_hooks/__init__.py diff --git a/azure-devops/azure/devops/v4_1/service_hooks/models.py b/azure-devops/azure/devops/v5_0/service_hooks/models.py similarity index 93% rename from azure-devops/azure/devops/v4_1/service_hooks/models.py rename to azure-devops/azure/devops/v5_0/service_hooks/models.py index 20747e15..dedab0f5 100644 --- a/azure-devops/azure/devops/v4_1/service_hooks/models.py +++ b/azure-devops/azure/devops/v5_0/service_hooks/models.py @@ -13,15 +13,15 @@ class Consumer(Model): """Consumer. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` + :type actions: list of :class:`ConsumerAction ` :param authentication_type: Gets or sets this consumer's authentication type. :type authentication_type: object :param description: Gets or sets this consumer's localized description. :type description: str :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :type external_configuration: :class:`ExternalConfigurationDescriptor ` :param id: Gets or sets this consumer's identifier. :type id: str :param image_url: Gets or sets this consumer's image URL, if any. @@ -29,7 +29,7 @@ class Consumer(Model): :param information_url: Gets or sets this consumer's information URL, if any. :type information_url: str :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this consumer's localized name. :type name: str :param url: The url for this resource @@ -69,7 +69,7 @@ class ConsumerAction(Model): """ConsumerAction. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. :type allow_resource_version_override: bool :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. @@ -79,7 +79,7 @@ class ConsumerAction(Model): :param id: Gets or sets this action's identifier. :type id: str :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this action's localized name. :type name: str :param supported_event_types: Gets or sets this action's supported event identifiers. @@ -123,13 +123,13 @@ class Event(Model): :param created_date: Gets or sets the UTC-based date and time that this event was created. :type created_date: datetime :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` + :type detailed_message: :class:`FormattedEventMessage ` :param event_type: Gets or sets the type of this event. :type event_type: str :param id: Gets or sets the unique identifier of this event. :type id: str :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` + :type message: :class:`FormattedEventMessage ` :param publisher_id: Gets or sets the identifier of the publisher that raised this event. :type publisher_id: str :param resource: Gets or sets the data associated with this event. @@ -139,7 +139,7 @@ class Event(Model): :param resource_version: Gets or sets the version of the data associated with this event. :type resource_version: str :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` + :type session_token: :class:`SessionToken ` """ _attribute_map = { @@ -177,7 +177,7 @@ class EventTypeDescriptor(Model): :param id: A unique id for the event type :type id: str :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: A localized friendly name for the event type :type name: str :param publisher_id: A unique id for the publisher of this event type @@ -261,7 +261,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -289,7 +289,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -308,6 +308,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -325,11 +327,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -337,6 +340,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -367,11 +371,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -413,7 +417,7 @@ class InputFilter(Model): """InputFilter. :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` + :type conditions: list of :class:`InputFilterCondition ` """ _attribute_map = { @@ -527,7 +531,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -537,7 +541,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -583,7 +587,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -607,7 +611,7 @@ class Notification(Model): :param created_date: Gets or sets date and time that this result was created. :type created_date: datetime :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` + :type details: :class:`NotificationDetails ` :param event_id: The event id associated with this notification :type event_id: str :param id: The notification id @@ -667,7 +671,7 @@ class NotificationDetails(Model): :param error_message: Gets or sets this notification detail's error message. :type error_message: str :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` + :type event: :class:`Event ` :param event_type: Gets or sets this notification detail's event type. :type event_type: str :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) @@ -753,7 +757,7 @@ class NotificationsQuery(Model): """NotificationsQuery. :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` + :type associated_subscriptions: list of :class:`Subscription ` :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. :type include_details: bool :param max_created_date: Optional maximum date at which the notification was created @@ -767,7 +771,7 @@ class NotificationsQuery(Model): :param publisher_id: Optional publisher id to restrict the results to :type publisher_id: str :param results: Results from the query - :type results: list of :class:`Notification ` + :type results: list of :class:`Notification ` :param result_type: Optional notification result type to filter results to :type result_type: object :param status: Optional notification status to filter results to @@ -775,7 +779,7 @@ class NotificationsQuery(Model): :param subscription_ids: Optional list of subscription ids to restrict the results to :type subscription_ids: list of str :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` + :type summary: list of :class:`NotificationSummary ` """ _attribute_map = { @@ -813,7 +817,7 @@ class NotificationSummary(Model): """NotificationSummary. :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` + :type results: list of :class:`NotificationResultsSummaryDetail ` :param subscription_id: The subscription id associated with this notification :type subscription_id: str """ @@ -833,19 +837,19 @@ class Publisher(Model): """Publisher. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Gets this publisher's localized description. :type description: str :param id: Gets this publisher's identifier. :type id: str :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets this publisher's localized name. :type name: str :param service_instance_type: The service instance type of the first party publisher. :type service_instance_type: str :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` + :type supported_events: list of :class:`EventTypeDescriptor ` :param url: The url for this resource :type url: str """ @@ -879,27 +883,35 @@ class PublisherEvent(Model): :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. :type diagnostics: dict :param event: The event being published - :type event: :class:`Event ` + :type event: :class:`Event ` + :param is_filtered_event: Gets or sets flag for filtered events + :type is_filtered_event: bool + :param notification_data: Additional data that needs to be sent as part of notification to complement the Resource data in the Event + :type notification_data: dict :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` + :type other_resource_versions: list of :class:`VersionedResource ` :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` + :type subscription: :class:`Subscription ` """ _attribute_map = { 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, 'event': {'key': 'event', 'type': 'Event'}, + 'is_filtered_event': {'key': 'isFilteredEvent', 'type': 'bool'}, + 'notification_data': {'key': 'notificationData', 'type': '{str}'}, 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, 'subscription': {'key': 'subscription', 'type': 'Subscription'} } - def __init__(self, diagnostics=None, event=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): + def __init__(self, diagnostics=None, event=None, is_filtered_event=None, notification_data=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): super(PublisherEvent, self).__init__() self.diagnostics = diagnostics self.event = event + self.is_filtered_event = is_filtered_event + self.notification_data = notification_data self.other_resource_versions = other_resource_versions self.publisher_input_filters = publisher_input_filters self.subscription = subscription @@ -913,7 +925,7 @@ class PublishersQuery(Model): :param publisher_inputs: Filter for publisher inputs :type publisher_inputs: dict :param results: Results from the query - :type results: list of :class:`Publisher ` + :type results: list of :class:`Publisher ` """ _attribute_map = { @@ -1001,7 +1013,7 @@ class Subscription(Model): """Subscription. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param action_description: :type action_description: str :param consumer_action_id: @@ -1011,7 +1023,7 @@ class Subscription(Model): :param consumer_inputs: Consumer input values :type consumer_inputs: dict :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param event_description: @@ -1021,7 +1033,7 @@ class Subscription(Model): :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: :type modified_date: datetime :param probation_retries: @@ -1035,7 +1047,7 @@ class Subscription(Model): :param status: :type status: object :param subscriber: - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: :type url: str """ @@ -1089,11 +1101,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1117,15 +1129,15 @@ class SubscriptionsQuery(Model): :param consumer_id: Optional consumer id to restrict the results to (null for any) :type consumer_id: str :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` + :type consumer_input_filters: list of :class:`InputFilter ` :param event_type: Optional event type id to restrict the results to (null for any) :type event_type: str :param publisher_id: Optional publisher id to restrict the results to (null for any) :type publisher_id: str :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param results: Results from the query - :type results: list of :class:`Subscription ` + :type results: list of :class:`Subscription ` :param subscriber_id: Optional subscriber filter. :type subscriber_id: str """ @@ -1189,11 +1201,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/v5_0/service_hooks/service_hooks_client.py similarity index 88% rename from azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py rename to azure-devops/azure/devops/v5_0/service_hooks/service_hooks_client.py index 3c2470bc..d87212c5 100644 --- a/azure-devops/azure/devops/v4_1/service_hooks/service_hooks_client.py +++ b/azure-devops/azure/devops/v5_0/service_hooks/service_hooks_client.py @@ -31,7 +31,7 @@ def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None :param str consumer_id: ID for a consumer. :param str consumer_action_id: ID for a consumerActionId. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -43,7 +43,7 @@ def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ConsumerAction', response) @@ -63,7 +63,7 @@ def list_consumer_actions(self, consumer_id, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ConsumerAction]', self._unwrap_collection(response)) @@ -73,7 +73,7 @@ def get_consumer(self, consumer_id, publisher_id=None): Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. :param str consumer_id: ID for a consumer. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -83,7 +83,7 @@ def get_consumer(self, consumer_id, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Consumer', response) @@ -99,7 +99,7 @@ def list_consumers(self, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[Consumer]', self._unwrap_collection(response)) @@ -107,23 +107,23 @@ def get_subscription_diagnostics(self, subscription_id): """GetSubscriptionDiagnostics. [Preview API] :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') response = self._send(http_method='GET', location_id='3b36bcb5-02ad-43c6-bbfa-6dfc6f8e9d68', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('SubscriptionDiagnostics', response) def update_subscription_diagnostics(self, update_parameters, subscription_id): """UpdateSubscriptionDiagnostics. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -131,7 +131,7 @@ def update_subscription_diagnostics(self, update_parameters, subscription_id): content = self._serialize.body(update_parameters, 'UpdateSubscripitonDiagnosticsParameters') response = self._send(http_method='PUT', location_id='3b36bcb5-02ad-43c6-bbfa-6dfc6f8e9d68', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('SubscriptionDiagnostics', response) @@ -141,7 +141,7 @@ def get_event_type(self, publisher_id, event_type_id): Get a specific event type. :param str publisher_id: ID for a publisher. :param str event_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -150,7 +150,7 @@ def get_event_type(self, publisher_id, event_type_id): route_values['eventTypeId'] = self._serialize.url('event_type_id', event_type_id, 'str') response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('EventTypeDescriptor', response) @@ -165,7 +165,7 @@ def list_event_types(self, publisher_id): route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[EventTypeDescriptor]', self._unwrap_collection(response)) @@ -174,7 +174,7 @@ def get_notification(self, subscription_id, notification_id): Get a specific notification for a subscription. :param str subscription_id: ID for a subscription. :param int notification_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -183,7 +183,7 @@ def get_notification(self, subscription_id, notification_id): route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') response = self._send(http_method='GET', location_id='0c62d343-21b0-4732-997b-017fde84dc28', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Notification', response) @@ -208,7 +208,7 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu query_parameters['result'] = self._serialize.query('result', result, 'str') response = self._send(http_method='GET', location_id='0c62d343-21b0-4732-997b-017fde84dc28', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Notification]', self._unwrap_collection(response)) @@ -216,21 +216,21 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu def query_notifications(self, query): """QueryNotifications. Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') response = self._send(http_method='POST', location_id='1a57562f-160a-4b5c-9185-905e95b39d36', - version='4.1', + version='5.0', content=content) return self._deserialize('NotificationsQuery', response) def query_input_values(self, input_values_query, publisher_id): """QueryInputValues. - :param :class:` ` input_values_query: + :param :class:` ` input_values_query: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -238,7 +238,7 @@ def query_input_values(self, input_values_query, publisher_id): content = self._serialize.body(input_values_query, 'InputValuesQuery') response = self._send(http_method='POST', location_id='d815d352-a566-4dc1-a3e3-fd245acf688c', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('InputValuesQuery', response) @@ -247,14 +247,14 @@ def get_publisher(self, publisher_id): """GetPublisher. Get a specific service hooks publisher. :param str publisher_id: ID for a publisher. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Publisher', response) @@ -265,32 +265,32 @@ def list_publishers(self): """ response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.1') + version='5.0') return self._deserialize('[Publisher]', self._unwrap_collection(response)) def query_publishers(self, query): """QueryPublishers. Query for service hook publishers. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') response = self._send(http_method='POST', location_id='99b44a8a-65a8-4670-8f3e-e7f7842cce64', - version='4.1', + version='5.0', content=content) return self._deserialize('PublishersQuery', response) def create_subscription(self, subscription): """CreateSubscription. Create a subscription. - :param :class:` ` subscription: Subscription to be created. - :rtype: :class:` ` + :param :class:` ` subscription: Subscription to be created. + :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='POST', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1', + version='5.0', content=content) return self._deserialize('Subscription', response) @@ -304,21 +304,21 @@ def delete_subscription(self, subscription_id): route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') self._send(http_method='DELETE', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1', + version='5.0', route_values=route_values) def get_subscription(self, subscription_id): """GetSubscription. Get a specific service hooks subscription. :param str subscription_id: ID for a subscription. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Subscription', response) @@ -342,16 +342,16 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non query_parameters['consumerActionId'] = self._serialize.query('consumer_action_id', consumer_action_id, 'str') response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[Subscription]', self._unwrap_collection(response)) def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. Update a subscription. ID for a subscription that you wish to update. - :param :class:` ` subscription: + :param :class:` ` subscription: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -359,7 +359,7 @@ def replace_subscription(self, subscription, subscription_id=None): content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='PUT', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('Subscription', response) @@ -367,22 +367,22 @@ def replace_subscription(self, subscription, subscription_id=None): def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. Query for service hook subscriptions. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') response = self._send(http_method='POST', location_id='c7c3c1cf-9e05-4c0d-a425-a0f922c2c6ed', - version='4.1', + version='5.0', content=content) return self._deserialize('SubscriptionsQuery', response) def create_test_notification(self, test_notification, use_real_data=None): """CreateTestNotification. Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. - :param :class:` ` test_notification: + :param :class:` ` test_notification: :param bool use_real_data: Only allow testing with real data in existing subscriptions. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if use_real_data is not None: @@ -390,7 +390,7 @@ def create_test_notification(self, test_notification, use_real_data=None): content = self._serialize.body(test_notification, 'Notification') response = self._send(http_method='POST', location_id='1139462c-7e27-4524-a997-31b9b73551fe', - version='4.1', + version='5.0', query_parameters=query_parameters, content=content) return self._deserialize('Notification', response) diff --git a/azure-devops/azure/devops/v4_1/settings/__init__.py b/azure-devops/azure/devops/v5_0/settings/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/settings/__init__.py rename to azure-devops/azure/devops/v5_0/settings/__init__.py diff --git a/azure-devops/azure/devops/v4_1/settings/settings_client.py b/azure-devops/azure/devops/v5_0/settings/settings_client.py similarity index 96% rename from azure-devops/azure/devops/v4_1/settings/settings_client.py rename to azure-devops/azure/devops/v5_0/settings/settings_client.py index 723e9efb..ea17fc0e 100644 --- a/azure-devops/azure/devops/v4_1/settings/settings_client.py +++ b/azure-devops/azure/devops/v5_0/settings/settings_client.py @@ -37,7 +37,7 @@ def get_entries(self, user_scope, key=None): route_values['key'] = self._serialize.url('key', key, 'str') response = self._send(http_method='GET', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('{object}', self._unwrap_collection(response)) @@ -54,7 +54,7 @@ def remove_entries(self, user_scope, key): route_values['key'] = self._serialize.url('key', key, 'str') self._send(http_method='DELETE', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def set_entries(self, entries, user_scope): @@ -69,7 +69,7 @@ def set_entries(self, entries, user_scope): content = self._serialize.body(entries, '{object}') self._send(http_method='PATCH', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) @@ -93,7 +93,7 @@ def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): route_values['key'] = self._serialize.url('key', key, 'str') response = self._send(http_method='GET', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('{object}', self._unwrap_collection(response)) @@ -116,7 +116,7 @@ def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): route_values['key'] = self._serialize.url('key', key, 'str') self._send(http_method='DELETE', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): @@ -137,7 +137,7 @@ def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): content = self._serialize.body(entries, '{object}') self._send(http_method='PATCH', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) diff --git a/azure-devops/azure/devops/v4_1/symbol/__init__.py b/azure-devops/azure/devops/v5_0/symbol/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/symbol/__init__.py rename to azure-devops/azure/devops/v5_0/symbol/__init__.py diff --git a/azure-devops/azure/devops/v4_1/symbol/models.py b/azure-devops/azure/devops/v5_0/symbol/models.py similarity index 98% rename from azure-devops/azure/devops/v4_1/symbol/models.py rename to azure-devops/azure/devops/v5_0/symbol/models.py index 98b1913d..af8b8762 100644 --- a/azure-devops/azure/devops/v4_1/symbol/models.py +++ b/azure-devops/azure/devops/v5_0/symbol/models.py @@ -15,7 +15,7 @@ class DebugEntryCreateBatch(Model): :param create_behavior: Defines what to do when a debug entry in the batch already exists. :type create_behavior: object :param debug_entries: The debug entries. - :type debug_entries: list of :class:`DebugEntry ` + :type debug_entries: list of :class:`DebugEntry ` """ _attribute_map = { @@ -65,7 +65,7 @@ class JsonBlobIdentifierWithBlocks(Model): """JsonBlobIdentifierWithBlocks. :param block_hashes: - :type block_hashes: list of :class:`JsonBlobBlockHash ` + :type block_hashes: list of :class:`JsonBlobBlockHash ` :param identifier_value: :type identifier_value: str """ @@ -127,9 +127,9 @@ class DebugEntry(ResourceBase): :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. :type url: str :param blob_details: - :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` + :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. - :type blob_identifier: :class:`JsonBlobIdentifier ` + :type blob_identifier: :class:`JsonBlobIdentifier ` :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. :type blob_uri: str :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. diff --git a/azure-devops/azure/devops/v4_1/symbol/symbol_client.py b/azure-devops/azure/devops/v5_0/symbol/symbol_client.py similarity index 88% rename from azure-devops/azure/devops/v4_1/symbol/symbol_client.py rename to azure-devops/azure/devops/v5_0/symbol/symbol_client.py index 3dda9736..c52b5b27 100644 --- a/azure-devops/azure/devops/v4_1/symbol/symbol_client.py +++ b/azure-devops/azure/devops/v5_0/symbol/symbol_client.py @@ -31,7 +31,7 @@ def check_availability(self): """ self._send(http_method='GET', location_id='97c893cc-e861-4ef4-8c43-9bad4a963dee', - version='4.1-preview.1') + version='5.0-preview.1') def get_client(self, client_type): """GetClient. @@ -44,7 +44,7 @@ def get_client(self, client_type): route_values['clientType'] = self._serialize.url('client_type', client_type, 'str') response = self._send(http_method='GET', location_id='79c83865-4de3-460c-8a16-01be238e0818', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('object', response) @@ -54,25 +54,25 @@ def head_client(self): """ self._send(http_method='HEAD', location_id='79c83865-4de3-460c-8a16-01be238e0818', - version='4.1-preview.1') + version='5.0-preview.1') def create_requests(self, request_to_create): """CreateRequests. [Preview API] Create a new symbol request. - :param :class:` ` request_to_create: The symbol request to create. - :rtype: :class:` ` + :param :class:` ` request_to_create: The symbol request to create. + :rtype: :class:` ` """ content = self._serialize.body(request_to_create, 'Request') response = self._send(http_method='POST', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', content=content) return self._deserialize('Request', response) def create_requests_request_id_debug_entries(self, batch, request_id, collection): """CreateRequestsRequestIdDebugEntries. [Preview API] Create debug entries for a symbol request as specified by its identifier. - :param :class:` ` batch: A batch that contains debug entries to create. + :param :class:` ` batch: A batch that contains debug entries to create. :param str request_id: The symbol request identifier. :param str collection: A valid debug entry collection name. Must be "debugentries". :rtype: [DebugEntry] @@ -86,7 +86,7 @@ def create_requests_request_id_debug_entries(self, batch, request_id, collection content = self._serialize.body(batch, 'DebugEntryCreateBatch') response = self._send(http_method='POST', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -95,7 +95,7 @@ def create_requests_request_id_debug_entries(self, batch, request_id, collection def create_requests_request_name_debug_entries(self, batch, request_name, collection): """CreateRequestsRequestNameDebugEntries. [Preview API] Create debug entries for a symbol request as specified by its name. - :param :class:` ` batch: A batch that contains debug entries to create. + :param :class:` ` batch: A batch that contains debug entries to create. :param str request_name: :param str collection: A valid debug entry collection name. Must be "debugentries". :rtype: [DebugEntry] @@ -108,7 +108,7 @@ def create_requests_request_name_debug_entries(self, batch, request_name, collec content = self._serialize.body(batch, 'DebugEntryCreateBatch') response = self._send(http_method='POST', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('[DebugEntry]', self._unwrap_collection(response)) @@ -127,7 +127,7 @@ def delete_requests_request_id(self, request_id, synchronous=None): query_parameters['synchronous'] = self._serialize.query('synchronous', synchronous, 'bool') self._send(http_method='DELETE', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -144,21 +144,21 @@ def delete_requests_request_name(self, request_name, synchronous=None): query_parameters['synchronous'] = self._serialize.query('synchronous', synchronous, 'bool') self._send(http_method='DELETE', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) def get_requests_request_id(self, request_id): """GetRequestsRequestId. [Preview API] Get a symbol request by request identifier. :param str request_id: The symbol request identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if request_id is not None: route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') response = self._send(http_method='GET', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('Request', response) @@ -166,23 +166,23 @@ def get_requests_request_name(self, request_name): """GetRequestsRequestName. [Preview API] Get a symbol request by request name. :param str request_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if request_name is not None: query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') response = self._send(http_method='GET', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('Request', response) def update_requests_request_id(self, update_request, request_id): """UpdateRequestsRequestId. [Preview API] Update a symbol request by request identifier. - :param :class:` ` update_request: The symbol request. + :param :class:` ` update_request: The symbol request. :param str request_id: The symbol request identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if request_id is not None: @@ -190,7 +190,7 @@ def update_requests_request_id(self, update_request, request_id): content = self._serialize.body(update_request, 'Request') response = self._send(http_method='PATCH', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('Request', response) @@ -198,9 +198,9 @@ def update_requests_request_id(self, update_request, request_id): def update_requests_request_name(self, update_request, request_name): """UpdateRequestsRequestName. [Preview API] Update a symbol request by request name. - :param :class:` ` update_request: The symbol request. + :param :class:` ` update_request: The symbol request. :param str request_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if request_name is not None: @@ -208,7 +208,7 @@ def update_requests_request_name(self, update_request, request_name): content = self._serialize.body(update_request, 'Request') response = self._send(http_method='PATCH', location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('Request', response) @@ -223,6 +223,6 @@ def get_sym_srv_debug_entry_client_key(self, debug_entry_client_key): route_values['debugEntryClientKey'] = self._serialize.url('debug_entry_client_key', debug_entry_client_key, 'str') self._send(http_method='GET', location_id='9648e256-c9f9-4f16-8a27-630b06396942', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) diff --git a/azure-devops/azure/devops/v4_1/task/__init__.py b/azure-devops/azure/devops/v5_0/task/__init__.py similarity index 94% rename from azure-devops/azure/devops/v4_1/task/__init__.py rename to azure-devops/azure/devops/v5_0/task/__init__.py index fdaed92f..8d56249f 100644 --- a/azure-devops/azure/devops/v4_1/task/__init__.py +++ b/azure-devops/azure/devops/v5_0/task/__init__.py @@ -28,7 +28,9 @@ 'TaskOrchestrationQueuedPlanGroup', 'TaskReference', 'Timeline', + 'TimelineAttempt', 'TimelineRecord', + 'TimelineRecordFeedLinesWrapper', 'TimelineReference', 'VariableValue', ] diff --git a/azure-devops/azure/devops/v4_0/task/models.py b/azure-devops/azure/devops/v5_0/task/models.py similarity index 82% rename from azure-devops/azure/devops/v4_0/task/models.py rename to azure-devops/azure/devops/v5_0/task/models.py index 5387157a..9c1b15f1 100644 --- a/azure-devops/azure/devops/v4_0/task/models.py +++ b/azure-devops/azure/devops/v5_0/task/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -81,7 +81,7 @@ class PlanEnvironment(Model): """PlanEnvironment. :param mask: - :type mask: list of :class:`MaskHint ` + :type mask: list of :class:`MaskHint ` :param options: :type options: dict :param variables: @@ -141,7 +141,7 @@ class TaskAttachment(Model): """TaskAttachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_on: :type created_on: datetime :param last_changed_by: @@ -221,7 +221,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -269,9 +269,11 @@ class TaskOrchestrationPlanReference(Model): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str :param plan_id: :type plan_id: str :param plan_type: @@ -287,18 +289,20 @@ class TaskOrchestrationPlanReference(Model): 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, 'plan_id': {'key': 'planId', 'type': 'str'}, 'plan_type': {'key': 'planType', 'type': 'str'}, 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, 'version': {'key': 'version', 'type': 'int'} } - def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None): super(TaskOrchestrationPlanReference, self).__init__() self.artifact_location = artifact_location self.artifact_uri = artifact_uri self.definition = definition self.owner = owner + self.plan_group = plan_group self.plan_id = plan_id self.plan_type = plan_type self.scope_identifier = scope_identifier @@ -311,9 +315,9 @@ class TaskOrchestrationQueuedPlan(Model): :param assign_time: :type assign_time: datetime :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -357,15 +361,15 @@ class TaskOrchestrationQueuedPlanGroup(Model): """TaskOrchestrationQueuedPlanGroup. :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param queue_position: :type queue_position: int """ @@ -417,29 +421,61 @@ def __init__(self, id=None, inputs=None, name=None, version=None): self.version = version +class TimelineAttempt(Model): + """TimelineAttempt. + + :param attempt: Gets or sets the attempt of the record. + :type attempt: int + :param identifier: Gets or sets the unique identifier for the record. + :type identifier: str + :param record_id: Gets or sets the record identifier located within the specified timeline. + :type record_id: str + :param timeline_id: Gets or sets the timeline identifier which owns the record representing this attempt. + :type timeline_id: str + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'} + } + + def __init__(self, attempt=None, identifier=None, record_id=None, timeline_id=None): + super(TimelineAttempt, self).__init__() + self.attempt = attempt + self.identifier = identifier + self.record_id = record_id + self.timeline_id = timeline_id + + class TimelineRecord(Model): """TimelineRecord. + :param attempt: + :type attempt: int :param change_id: :type change_id: int :param current_operation: :type current_operation: str :param details: - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: :type error_count: int :param finish_time: :type finish_time: datetime :param id: :type id: str + :param identifier: + :type identifier: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: :type last_modified: datetime :param location: :type location: str :param log: - :type log: :class:`TaskLogReference ` + :type log: :class:`TaskLogReference ` :param name: :type name: str :param order: @@ -448,6 +484,8 @@ class TimelineRecord(Model): :type parent_id: str :param percent_complete: :type percent_complete: int + :param previous_attempts: + :type previous_attempts: list of :class:`TimelineAttempt ` :param ref_name: :type ref_name: str :param result: @@ -459,7 +497,7 @@ class TimelineRecord(Model): :param state: :type state: object :param task: - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: :type type: str :param variables: @@ -471,12 +509,14 @@ class TimelineRecord(Model): """ _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, 'change_id': {'key': 'changeId', 'type': 'int'}, 'current_operation': {'key': 'currentOperation', 'type': 'str'}, 'details': {'key': 'details', 'type': 'TimelineReference'}, 'error_count': {'key': 'errorCount', 'type': 'int'}, 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, 'id': {'key': 'id', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, 'issues': {'key': 'issues', 'type': '[Issue]'}, 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, 'location': {'key': 'location', 'type': 'str'}, @@ -485,6 +525,7 @@ class TimelineRecord(Model): 'order': {'key': 'order', 'type': 'int'}, 'parent_id': {'key': 'parentId', 'type': 'str'}, 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'previous_attempts': {'key': 'previousAttempts', 'type': '[TimelineAttempt]'}, 'ref_name': {'key': 'refName', 'type': 'str'}, 'result': {'key': 'result', 'type': 'object'}, 'result_code': {'key': 'resultCode', 'type': 'str'}, @@ -497,14 +538,16 @@ class TimelineRecord(Model): 'worker_name': {'key': 'workerName', 'type': 'str'} } - def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): + def __init__(self, attempt=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, identifier=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, previous_attempts=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): super(TimelineRecord, self).__init__() + self.attempt = attempt self.change_id = change_id self.current_operation = current_operation self.details = details self.error_count = error_count self.finish_time = finish_time self.id = id + self.identifier = identifier self.issues = issues self.last_modified = last_modified self.location = location @@ -513,6 +556,7 @@ def __init__(self, change_id=None, current_operation=None, details=None, error_c self.order = order self.parent_id = parent_id self.percent_complete = percent_complete + self.previous_attempts = previous_attempts self.ref_name = ref_name self.result = result self.result_code = result_code @@ -525,6 +569,30 @@ def __init__(self, change_id=None, current_operation=None, details=None, error_c self.worker_name = worker_name +class TimelineRecordFeedLinesWrapper(Model): + """TimelineRecordFeedLinesWrapper. + + :param count: + :type count: int + :param step_id: + :type step_id: str + :param value: + :type value: list of str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'step_id': {'key': 'stepId', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[str]'} + } + + def __init__(self, count=None, step_id=None, value=None): + super(TimelineRecordFeedLinesWrapper, self).__init__() + self.count = count + self.step_id = step_id + self.value = value + + class TimelineReference(Model): """TimelineReference. @@ -613,7 +681,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param item_type: :type item_type: object :param children: - :type children: list of :class:`TaskOrchestrationItem ` + :type children: list of :class:`TaskOrchestrationItem ` :param continue_on_error: :type continue_on_error: bool :param data: @@ -623,7 +691,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param parallel: :type parallel: bool :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` + :type rollback: :class:`TaskOrchestrationContainer ` """ _attribute_map = { @@ -654,9 +722,11 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str :param plan_id: :type plan_id: str :param plan_type: @@ -666,13 +736,13 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param version: :type version: int :param environment: - :type environment: :class:`PlanEnvironment ` + :type environment: :class:`PlanEnvironment ` :param finish_time: :type finish_time: datetime :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` - :param plan_group: - :type plan_group: str + :type implementation: :class:`TaskOrchestrationContainer ` + :param initialization_log: + :type initialization_log: :class:`TaskLogReference ` :param requested_by_id: :type requested_by_id: str :param requested_for_id: @@ -686,7 +756,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param state: :type state: object :param timeline: - :type timeline: :class:`TimelineReference ` + :type timeline: :class:`TimelineReference ` """ _attribute_map = { @@ -694,6 +764,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): 'artifact_uri': {'key': 'artifactUri', 'type': 'str'}, 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, 'plan_id': {'key': 'planId', 'type': 'str'}, 'plan_type': {'key': 'planType', 'type': 'str'}, 'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'}, @@ -701,7 +772,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, - 'plan_group': {'key': 'planGroup', 'type': 'str'}, + 'initialization_log': {'key': 'initializationLog', 'type': 'TaskLogReference'}, 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, 'result': {'key': 'result', 'type': 'object'}, @@ -711,12 +782,12 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} } - def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, plan_group=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): - super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, initialization_log=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): + super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_group=plan_group, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) self.environment = environment self.finish_time = finish_time self.implementation = implementation - self.plan_group = plan_group + self.initialization_log = initialization_log self.requested_by_id = requested_by_id self.requested_for_id = requested_for_id self.result = result @@ -740,7 +811,7 @@ class Timeline(TimelineReference): :param last_changed_on: :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -775,7 +846,9 @@ def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, 'TaskOrchestrationQueuedPlan', 'TaskOrchestrationQueuedPlanGroup', 'TaskReference', + 'TimelineAttempt', 'TimelineRecord', + 'TimelineRecordFeedLinesWrapper', 'TimelineReference', 'VariableValue', 'TaskLog', diff --git a/azure-devops/azure/devops/v4_1/task/task_client.py b/azure-devops/azure/devops/v5_0/task/task_client.py similarity index 94% rename from azure-devops/azure/devops/v4_1/task/task_client.py rename to azure-devops/azure/devops/v5_0/task/task_client.py index 3095620b..ff6fa7ab 100644 --- a/azure-devops/azure/devops/v4_1/task/task_client.py +++ b/azure-devops/azure/devops/v5_0/task/task_client.py @@ -45,7 +45,7 @@ def get_plan_attachments(self, scope_identifier, hub_name, plan_id, type): route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='eb55e5d6-2f30-4295-b5ed-38da50b1fc52', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) @@ -60,7 +60,7 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -84,7 +84,7 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -100,7 +100,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -119,7 +119,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('TaskAttachment', response) @@ -152,7 +152,7 @@ def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_i route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -187,7 +187,7 @@ def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, reco route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) @@ -198,7 +198,7 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: :param int log_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -216,7 +216,7 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1', + version='5.0', route_values=route_values, content=content, media_type='application/octet-stream') @@ -224,11 +224,11 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, def create_log(self, log, scope_identifier, hub_name, plan_id): """CreateLog. - :param :class:` ` log: + :param :class:` ` log: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -240,7 +240,7 @@ def create_log(self, log, scope_identifier, hub_name, plan_id): content = self._serialize.body(log, 'TaskLog') response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TaskLog', response) @@ -271,7 +271,7 @@ def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -292,7 +292,7 @@ def get_logs(self, scope_identifier, hub_name, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[TaskLog]', self._unwrap_collection(response)) @@ -319,14 +319,14 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') response = self._send(http_method='GET', location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): """UpdateRecords. - :param :class:` ` records: + :param :class:` ` records: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -345,18 +345,18 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ content = self._serialize.body(records, 'VssJsonCollectionWrapper') response = self._send(http_method='PATCH', location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): """CreateTimeline. - :param :class:` ` timeline: + :param :class:` ` timeline: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -368,7 +368,7 @@ def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): content = self._serialize.body(timeline, 'Timeline') response = self._send(http_method='POST', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('Timeline', response) @@ -391,7 +391,7 @@ def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') self._send(http_method='DELETE', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1', + version='5.0', route_values=route_values) def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None, include_records=None): @@ -402,7 +402,7 @@ def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_ :param str timeline_id: :param int change_id: :param bool include_records: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -420,7 +420,7 @@ def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_ query_parameters['includeRecords'] = self._serialize.query('include_records', include_records, 'bool') response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Timeline', response) @@ -441,7 +441,7 @@ def get_timelines(self, scope_identifier, hub_name, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[Timeline]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/task_agent/__init__.py b/azure-devops/azure/devops/v5_0/task_agent/__init__.py similarity index 88% rename from azure-devops/azure/devops/v4_1/task_agent/__init__.py rename to azure-devops/azure/devops/v5_0/task_agent/__init__.py index 776d8213..36e6247e 100644 --- a/azure-devops/azure/devops/v4_1/task_agent/__init__.py +++ b/azure-devops/azure/devops/v5_0/task_agent/__init__.py @@ -13,6 +13,8 @@ 'AadOauthTokenResult', 'AuthenticationSchemeReference', 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', 'AzureSubscription', 'AzureSubscriptionQueryResult', 'ClientCertificate', @@ -36,6 +38,10 @@ 'DeploymentTargetUpdateParameter', 'EndpointAuthorization', 'EndpointUrl', + 'Environment', + 'EnvironmentCreateParameter', + 'EnvironmentReference', + 'EnvironmentUpdateParameter', 'GraphSubjectBase', 'HelpLink', 'IdentityRef', @@ -45,16 +51,18 @@ 'InputValue', 'InputValues', 'InputValuesError', + 'KubernetesServiceGroup', + 'KubernetesServiceGroupCreateParameters', + 'MarketplacePurchasedLicense', 'MetricsColumnMetaData', 'MetricsColumnsHeader', 'MetricsRow', - 'OAuthConfiguration', - 'OAuthConfigurationParams', 'PackageMetadata', 'PackageVersion', 'ProjectReference', 'PublishTaskGroupMetadata', 'ReferenceLinks', + 'ResourceLimit', 'ResourceUsage', 'ResultTransformationDetails', 'SecureFile', @@ -67,8 +75,13 @@ 'ServiceEndpointRequest', 'ServiceEndpointRequestResult', 'ServiceEndpointType', + 'ServiceGroup', + 'ServiceGroupReference', 'TaskAgent', 'TaskAgentAuthorization', + 'TaskAgentCloud', + 'TaskAgentCloudRequest', + 'TaskAgentCloudType', 'TaskAgentDelaySource', 'TaskAgentJobRequest', 'TaskAgentMessage', @@ -102,7 +115,6 @@ 'TaskInputDefinitionBase', 'TaskInputValidation', 'TaskOrchestrationOwner', - 'TaskOrchestrationPlanGroup', 'TaskOutputVariable', 'TaskPackageMetadata', 'TaskReference', diff --git a/azure-devops/azure/devops/v4_1/task_agent/models.py b/azure-devops/azure/devops/v5_0/task_agent/models.py similarity index 78% rename from azure-devops/azure/devops/v4_1/task_agent/models.py rename to azure-devops/azure/devops/v5_0/task_agent/models.py index f950d4a9..ebd821b9 100644 --- a/azure-devops/azure/devops/v4_1/task_agent/models.py +++ b/azure-devops/azure/devops/v5_0/task_agent/models.py @@ -97,6 +97,54 @@ def __init__(self, name=None, value=None): self.value = value +class AzureManagementGroup(Model): + """AzureManagementGroup. + + :param display_name: Display name of azure management group + :type display_name: str + :param id: Id of azure management group + :type id: str + :param name: Azure management group name + :type name: str + :param tenant_id: Id of tenant from which azure management group belogs + :type tenant_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, name=None, tenant_id=None): + super(AzureManagementGroup, self).__init__() + self.display_name = display_name + self.id = id + self.name = name + self.tenant_id = tenant_id + + +class AzureManagementGroupQueryResult(Model): + """AzureManagementGroupQueryResult. + + :param error_message: Error message in case of an exception + :type error_message: str + :param value: List of azure management groups + :type value: list of :class:`AzureManagementGroup ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureManagementGroup]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureManagementGroupQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + class AzureSubscription(Model): """AzureSubscription. @@ -131,7 +179,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -165,11 +213,11 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param name: :type name: str :param resource_url: @@ -200,6 +248,10 @@ def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, class DataSourceBindingBase(Model): """DataSourceBindingBase. + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str :param endpoint_id: Gets or sets the endpoint Id. @@ -207,7 +259,9 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -219,22 +273,28 @@ class DataSourceBindingBase(Model): """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'} } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None): super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template self.data_source_name = data_source_name self.endpoint_id = endpoint_id self.endpoint_url = endpoint_url self.headers = headers + self.initial_context_template = initial_context_template self.parameters = parameters self.result_selector = result_selector self.result_template = result_template @@ -249,7 +309,7 @@ class DataSourceDetails(Model): :param data_source_url: :type data_source_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: :type parameters: dict :param resource_url: @@ -323,7 +383,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -345,7 +405,7 @@ class DeploymentGroupCreateParameter(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. - :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` :param pool_id: Identifier of the deployment pool in which deployment agents are registered. :type pool_id: int """ @@ -385,11 +445,11 @@ class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. :param columns_header: List of deployment group properties. And types of metrics provided for those properties. - :type columns_header: :class:`MetricsColumnsHeader ` + :type columns_header: :class:`MetricsColumnsHeader ` :param deployment_group: Deployment group. - :type deployment_group: :class:`DeploymentGroupReference ` + :type deployment_group: :class:`DeploymentGroupReference ` :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. - :type rows: list of :class:`MetricsRow ` + :type rows: list of :class:`MetricsRow ` """ _attribute_map = { @@ -413,9 +473,9 @@ class DeploymentGroupReference(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -457,7 +517,7 @@ class DeploymentMachine(Model): """DeploymentMachine. :param agent: Deployment agent. - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: Deployment target Identifier. :type id: int :param tags: Tags of the deployment target. @@ -485,9 +545,9 @@ class DeploymentMachineGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -509,13 +569,13 @@ class DeploymentPoolSummary(Model): """DeploymentPoolSummary. :param deployment_groups: List of deployment groups referring to the deployment pool. - :type deployment_groups: list of :class:`DeploymentGroupReference ` + :type deployment_groups: list of :class:`DeploymentGroupReference ` :param offline_agents_count: Number of deployment agents that are offline. :type offline_agents_count: int :param online_agents_count: Number of deployment agents that are online. :type online_agents_count: int :param pool: Deployment pool. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` """ _attribute_map = { @@ -577,7 +637,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -605,11 +665,115 @@ def __init__(self, depends_on=None, display_name=None, help_text=None, is_visibl self.value = value +class Environment(Model): + """Environment. + + :param created_by: Identity reference of the user who created the Environment. + :type created_by: :class:`IdentityRef ` + :param created_on: Creation time of the Environment + :type created_on: datetime + :param description: Description of the Environment. + :type description: str + :param id: Id of the Environment + :type id: int + :param last_modified_by: Identity reference of the user who last modified the Environment. + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: Last modified time of the Environment + :type last_modified_on: datetime + :param name: Name of the Environment. + :type name: str + :param service_groups: + :type service_groups: list of :class:`ServiceGroupReference ` + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_groups': {'key': 'serviceGroups', 'type': '[ServiceGroupReference]'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, last_modified_by=None, last_modified_on=None, name=None, service_groups=None): + super(Environment, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.name = name + self.service_groups = service_groups + + +class EnvironmentCreateParameter(Model): + """EnvironmentCreateParameter. + + :param description: Description of the environment. + :type description: str + :param name: Name of the environment. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(EnvironmentCreateParameter, self).__init__() + self.description = description + self.name = name + + +class EnvironmentReference(Model): + """EnvironmentReference. + + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(EnvironmentReference, self).__init__() + self.id = id + self.name = name + + +class EnvironmentUpdateParameter(Model): + """EnvironmentUpdateParameter. + + :param description: Description of the environment. + :type description: str + :param name: Name of the environment. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(EnvironmentUpdateParameter, self).__init__() + self.description = description + self.name = name + + class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -657,7 +821,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -676,6 +840,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -693,11 +859,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -705,6 +872,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -735,11 +903,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -867,7 +1035,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -877,7 +1045,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -917,6 +1085,54 @@ def __init__(self, message=None): self.message = message +class KubernetesServiceGroupCreateParameters(Model): + """KubernetesServiceGroupCreateParameters. + + :param name: + :type name: str + :param namespace: + :type namespace: str + :param service_endpoint_id: + :type service_endpoint_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'} + } + + def __init__(self, name=None, namespace=None, service_endpoint_id=None): + super(KubernetesServiceGroupCreateParameters, self).__init__() + self.name = name + self.namespace = namespace + self.service_endpoint_id = service_endpoint_id + + +class MarketplacePurchasedLicense(Model): + """MarketplacePurchasedLicense. + + :param marketplace_name: The Marketplace display name. + :type marketplace_name: str + :param purchaser_name: The name of the identity making the purchase as seen by the marketplace + :type purchaser_name: str + :param purchase_unit_count: The quantity purchased. + :type purchase_unit_count: int + """ + + _attribute_map = { + 'marketplace_name': {'key': 'marketplaceName', 'type': 'str'}, + 'purchaser_name': {'key': 'purchaserName', 'type': 'str'}, + 'purchase_unit_count': {'key': 'purchaseUnitCount', 'type': 'int'} + } + + def __init__(self, marketplace_name=None, purchaser_name=None, purchase_unit_count=None): + super(MarketplacePurchasedLicense, self).__init__() + self.marketplace_name = marketplace_name + self.purchaser_name = purchaser_name + self.purchase_unit_count = purchase_unit_count + + class MetricsColumnMetaData(Model): """MetricsColumnMetaData. @@ -941,9 +1157,9 @@ class MetricsColumnsHeader(Model): """MetricsColumnsHeader. :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState - :type dimensions: list of :class:`MetricsColumnMetaData ` + :type dimensions: list of :class:`MetricsColumnMetaData ` :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. - :type metrics: list of :class:`MetricsColumnMetaData ` + :type metrics: list of :class:`MetricsColumnMetaData ` """ _attribute_map = { @@ -977,90 +1193,6 @@ def __init__(self, dimensions=None, metrics=None): self.metrics = metrics -class OAuthConfiguration(Model): - """OAuthConfiguration. - - :param client_id: Gets or sets the ClientId - :type client_id: str - :param client_secret: Gets or sets the ClientSecret - :type client_secret: str - :param created_by: Gets or sets the identity who created the config. - :type created_by: :class:`IdentityRef ` - :param created_on: Gets or sets the time when config was created. - :type created_on: datetime - :param endpoint_type: Gets or sets the type of the endpoint. - :type endpoint_type: str - :param id: Gets or sets the unique identifier of this field - :type id: int - :param modified_by: Gets or sets the identity who modified the config. - :type modified_by: :class:`IdentityRef ` - :param modified_on: Gets or sets the time when variable group was modified - :type modified_on: datetime - :param name: Gets or sets the name - :type name: str - :param url: Gets or sets the Url - :type url: str - """ - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, - 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, client_id=None, client_secret=None, created_by=None, created_on=None, endpoint_type=None, id=None, modified_by=None, modified_on=None, name=None, url=None): - super(OAuthConfiguration, self).__init__() - self.client_id = client_id - self.client_secret = client_secret - self.created_by = created_by - self.created_on = created_on - self.endpoint_type = endpoint_type - self.id = id - self.modified_by = modified_by - self.modified_on = modified_on - self.name = name - self.url = url - - -class OAuthConfigurationParams(Model): - """OAuthConfigurationParams. - - :param client_id: Gets or sets the ClientId - :type client_id: str - :param client_secret: Gets or sets the ClientSecret - :type client_secret: str - :param endpoint_type: Gets or sets the type of the endpoint. - :type endpoint_type: str - :param name: Gets or sets the name - :type name: str - :param url: Gets or sets the Url - :type url: str - """ - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, client_id=None, client_secret=None, endpoint_type=None, name=None, url=None): - super(OAuthConfigurationParams, self).__init__() - self.client_id = client_id - self.client_secret = client_secret - self.endpoint_type = endpoint_type - self.name = name - self.url = url - - class PackageMetadata(Model): """PackageMetadata. @@ -1079,7 +1211,7 @@ class PackageMetadata(Model): :param type: The type of package (e.g. "agent") :type type: str :param version: The package version. - :type version: :class:`PackageVersion ` + :type version: :class:`PackageVersion ` """ _attribute_map = { @@ -1197,28 +1329,76 @@ def __init__(self, links=None): self.links = links -class ResourceUsage(Model): - """ResourceUsage. +class ResourceLimit(Model): + """ResourceLimit. - :param running_plan_groups: - :type running_plan_groups: list of :class:`TaskOrchestrationPlanGroup ` + :param failed_to_reach_all_providers: + :type failed_to_reach_all_providers: bool + :param host_id: + :type host_id: str + :param is_hosted: + :type is_hosted: bool + :param is_premium: + :type is_premium: bool + :param parallelism_tag: + :type parallelism_tag: str + :param resource_limits_data: + :type resource_limits_data: dict :param total_count: :type total_count: int + :param total_minutes: + :type total_minutes: int + """ + + _attribute_map = { + 'failed_to_reach_all_providers': {'key': 'failedToReachAllProviders', 'type': 'bool'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'is_premium': {'key': 'isPremium', 'type': 'bool'}, + 'parallelism_tag': {'key': 'parallelismTag', 'type': 'str'}, + 'resource_limits_data': {'key': 'resourceLimitsData', 'type': '{str}'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'total_minutes': {'key': 'totalMinutes', 'type': 'int'} + } + + def __init__(self, failed_to_reach_all_providers=None, host_id=None, is_hosted=None, is_premium=None, parallelism_tag=None, resource_limits_data=None, total_count=None, total_minutes=None): + super(ResourceLimit, self).__init__() + self.failed_to_reach_all_providers = failed_to_reach_all_providers + self.host_id = host_id + self.is_hosted = is_hosted + self.is_premium = is_premium + self.parallelism_tag = parallelism_tag + self.resource_limits_data = resource_limits_data + self.total_count = total_count + self.total_minutes = total_minutes + + +class ResourceUsage(Model): + """ResourceUsage. + + :param resource_limit: + :type resource_limit: :class:`ResourceLimit ` + :param running_requests: + :type running_requests: list of :class:`TaskAgentJobRequest ` :param used_count: :type used_count: int + :param used_minutes: + :type used_minutes: int """ _attribute_map = { - 'running_plan_groups': {'key': 'runningPlanGroups', 'type': '[TaskOrchestrationPlanGroup]'}, - 'total_count': {'key': 'totalCount', 'type': 'int'}, - 'used_count': {'key': 'usedCount', 'type': 'int'} + 'resource_limit': {'key': 'resourceLimit', 'type': 'ResourceLimit'}, + 'running_requests': {'key': 'runningRequests', 'type': '[TaskAgentJobRequest]'}, + 'used_count': {'key': 'usedCount', 'type': 'int'}, + 'used_minutes': {'key': 'usedMinutes', 'type': 'int'} } - def __init__(self, running_plan_groups=None, total_count=None, used_count=None): + def __init__(self, resource_limit=None, running_requests=None, used_count=None, used_minutes=None): super(ResourceUsage, self).__init__() - self.running_plan_groups = running_plan_groups - self.total_count = total_count + self.resource_limit = resource_limit + self.running_requests = running_requests self.used_count = used_count + self.used_minutes = used_minutes class ResultTransformationDetails(Model): @@ -1241,13 +1421,13 @@ class SecureFile(Model): """SecureFile. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: @@ -1285,11 +1465,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -1300,12 +1480,14 @@ class ServiceEndpoint(Model): :type id: str :param is_ready: EndPoint state indictor :type is_ready: bool + :param is_shared: Indicates whether service endpoint is shared with other projects or not. + :type is_shared: bool :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1321,6 +1503,7 @@ class ServiceEndpoint(Model): 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'operation_status': {'key': 'operationStatus', 'type': 'object'}, 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, @@ -1328,7 +1511,7 @@ class ServiceEndpoint(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, is_shared=None, name=None, operation_status=None, readers_group=None, type=None, url=None): super(ServiceEndpoint, self).__init__() self.administrators_group = administrators_group self.authorization = authorization @@ -1338,6 +1521,7 @@ def __init__(self, administrators_group=None, authorization=None, created_by=Non self.group_scope_id = group_scope_id self.id = id self.is_ready = is_ready + self.is_shared = is_shared self.name = name self.operation_status = operation_status self.readers_group = readers_group @@ -1349,13 +1533,13 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -1381,7 +1565,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: :type data: dict :param type: @@ -1409,13 +1593,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1449,7 +1633,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1469,7 +1653,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1489,11 +1673,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1515,7 +1699,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: :type error_message: str :param result: - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: :type status_code: object """ @@ -1537,25 +1721,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1597,6 +1781,74 @@ def __init__(self, authentication_schemes=None, data_sources=None, dependency_da self.ui_contribution_id = ui_contribution_id +class ServiceGroup(Model): + """ServiceGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param environment_reference: + :type environment_reference: :class:`EnvironmentReference ` + :param id: + :type id: int + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param name: + :type name: str + :param type: + :type type: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'environment_reference': {'key': 'environmentReference', 'type': 'EnvironmentReference'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, created_by=None, created_on=None, environment_reference=None, id=None, last_modified_by=None, last_modified_on=None, name=None, type=None): + super(ServiceGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.environment_reference = environment_reference + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.name = name + self.type = type + + +class ServiceGroupReference(Model): + """ServiceGroupReference. + + :param id: Id of the Service Group. + :type id: int + :param name: Name of the service group. + :type name: str + :param type: Type of the service group. + :type type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, id=None, name=None, type=None): + super(ServiceGroupReference, self).__init__() + self.id = id + self.name = name + self.type = type + + class TaskAgentAuthorization(Model): """TaskAgentAuthorization. @@ -1605,7 +1857,7 @@ class TaskAgentAuthorization(Model): :param client_id: Gets or sets the client identifier for this agent. :type client_id: str :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` + :type public_key: :class:`TaskAgentPublicKey ` """ _attribute_map = { @@ -1621,13 +1873,137 @@ def __init__(self, authorization_url=None, client_id=None, public_key=None): self.public_key = public_key +class TaskAgentCloud(Model): + """TaskAgentCloud. + + :param acquire_agent_endpoint: Gets or sets a AcquireAgentEndpoint using which a request can be made to acquire new agent + :type acquire_agent_endpoint: str + :param agent_cloud_id: + :type agent_cloud_id: int + :param get_agent_definition_endpoint: + :type get_agent_definition_endpoint: str + :param get_agent_request_status_endpoint: + :type get_agent_request_status_endpoint: str + :param internal: Signifies that this Agent Cloud is internal and should not be user-manageable + :type internal: bool + :param name: + :type name: str + :param release_agent_endpoint: + :type release_agent_endpoint: str + :param shared_secret: + :type shared_secret: str + :param type: Gets or sets the type of the endpoint. + :type type: str + """ + + _attribute_map = { + 'acquire_agent_endpoint': {'key': 'acquireAgentEndpoint', 'type': 'str'}, + 'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'}, + 'get_agent_definition_endpoint': {'key': 'getAgentDefinitionEndpoint', 'type': 'str'}, + 'get_agent_request_status_endpoint': {'key': 'getAgentRequestStatusEndpoint', 'type': 'str'}, + 'internal': {'key': 'internal', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release_agent_endpoint': {'key': 'releaseAgentEndpoint', 'type': 'str'}, + 'shared_secret': {'key': 'sharedSecret', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, acquire_agent_endpoint=None, agent_cloud_id=None, get_agent_definition_endpoint=None, get_agent_request_status_endpoint=None, internal=None, name=None, release_agent_endpoint=None, shared_secret=None, type=None): + super(TaskAgentCloud, self).__init__() + self.acquire_agent_endpoint = acquire_agent_endpoint + self.agent_cloud_id = agent_cloud_id + self.get_agent_definition_endpoint = get_agent_definition_endpoint + self.get_agent_request_status_endpoint = get_agent_request_status_endpoint + self.internal = internal + self.name = name + self.release_agent_endpoint = release_agent_endpoint + self.shared_secret = shared_secret + self.type = type + + +class TaskAgentCloudRequest(Model): + """TaskAgentCloudRequest. + + :param agent: + :type agent: :class:`TaskAgentReference ` + :param agent_cloud_id: + :type agent_cloud_id: int + :param agent_connected_time: + :type agent_connected_time: datetime + :param agent_data: + :type agent_data: :class:`object ` + :param agent_specification: + :type agent_specification: :class:`object ` + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param provisioned_time: + :type provisioned_time: datetime + :param provision_request_time: + :type provision_request_time: datetime + :param release_request_time: + :type release_request_time: datetime + :param request_id: + :type request_id: str + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'}, + 'agent_connected_time': {'key': 'agentConnectedTime', 'type': 'iso-8601'}, + 'agent_data': {'key': 'agentData', 'type': 'object'}, + 'agent_specification': {'key': 'agentSpecification', 'type': 'object'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'provisioned_time': {'key': 'provisionedTime', 'type': 'iso-8601'}, + 'provision_request_time': {'key': 'provisionRequestTime', 'type': 'iso-8601'}, + 'release_request_time': {'key': 'releaseRequestTime', 'type': 'iso-8601'}, + 'request_id': {'key': 'requestId', 'type': 'str'} + } + + def __init__(self, agent=None, agent_cloud_id=None, agent_connected_time=None, agent_data=None, agent_specification=None, pool=None, provisioned_time=None, provision_request_time=None, release_request_time=None, request_id=None): + super(TaskAgentCloudRequest, self).__init__() + self.agent = agent + self.agent_cloud_id = agent_cloud_id + self.agent_connected_time = agent_connected_time + self.agent_data = agent_data + self.agent_specification = agent_specification + self.pool = pool + self.provisioned_time = provisioned_time + self.provision_request_time = provision_request_time + self.release_request_time = release_request_time + self.request_id = request_id + + +class TaskAgentCloudType(Model): + """TaskAgentCloudType. + + :param display_name: Gets or sets the display name of agnet cloud type. + :type display_name: str + :param input_descriptors: Gets or sets the input descriptors + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of agent cloud type. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, display_name=None, input_descriptors=None, name=None): + super(TaskAgentCloudType, self).__init__() + self.display_name = display_name + self.input_descriptors = input_descriptors + self.name = name + + class TaskAgentDelaySource(Model): """TaskAgentDelaySource. :param delays: :type delays: list of object :param task_agent: - :type task_agent: :class:`TaskAgentReference ` + :type task_agent: :class:`TaskAgentReference ` """ _attribute_map = { @@ -1645,15 +2021,17 @@ class TaskAgentJobRequest(Model): """TaskAgentJobRequest. :param agent_delays: - :type agent_delays: list of :class:`TaskAgentDelaySource ` + :type agent_delays: list of :class:`TaskAgentDelaySource ` + :param agent_specification: + :type agent_specification: :class:`object ` :param assign_time: :type assign_time: datetime :param data: :type data: dict :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param expected_duration: :type expected_duration: object :param finish_time: @@ -1667,9 +2045,11 @@ class TaskAgentJobRequest(Model): :param locked_until: :type locked_until: datetime :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` + :type matched_agents: list of :class:`TaskAgentReference ` + :param orchestration_id: + :type orchestration_id: str :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -1687,7 +2067,7 @@ class TaskAgentJobRequest(Model): :param request_id: :type request_id: long :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` + :type reserved_agent: :class:`TaskAgentReference ` :param result: :type result: object :param scope_id: @@ -1698,6 +2078,7 @@ class TaskAgentJobRequest(Model): _attribute_map = { 'agent_delays': {'key': 'agentDelays', 'type': '[TaskAgentDelaySource]'}, + 'agent_specification': {'key': 'agentSpecification', 'type': 'object'}, 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, 'data': {'key': 'data', 'type': '{str}'}, 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, @@ -1709,6 +2090,7 @@ class TaskAgentJobRequest(Model): 'job_name': {'key': 'jobName', 'type': 'str'}, 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, + 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, 'plan_group': {'key': 'planGroup', 'type': 'str'}, 'plan_id': {'key': 'planId', 'type': 'str'}, @@ -1724,9 +2106,10 @@ class TaskAgentJobRequest(Model): 'service_owner': {'key': 'serviceOwner', 'type': 'str'} } - def __init__(self, agent_delays=None, assign_time=None, data=None, definition=None, demands=None, expected_duration=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_group=None, plan_id=None, plan_type=None, pool_id=None, queue_id=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): + def __init__(self, agent_delays=None, agent_specification=None, assign_time=None, data=None, definition=None, demands=None, expected_duration=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, orchestration_id=None, owner=None, plan_group=None, plan_id=None, plan_type=None, pool_id=None, queue_id=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): super(TaskAgentJobRequest, self).__init__() self.agent_delays = agent_delays + self.agent_specification = agent_specification self.assign_time = assign_time self.data = data self.definition = definition @@ -1738,6 +2121,7 @@ def __init__(self, agent_delays=None, assign_time=None, data=None, definition=No self.job_name = job_name self.locked_until = locked_until self.matched_agents = matched_agents + self.orchestration_id = orchestration_id self.owner = owner self.plan_group = plan_group self.plan_id = plan_id @@ -1793,13 +2177,13 @@ class TaskAgentPoolMaintenanceDefinition(Model): :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time :type max_concurrent_agents_percentage: int :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :type options: :class:`TaskAgentPoolMaintenanceOptions ` :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` """ _attribute_map = { @@ -1841,11 +2225,11 @@ class TaskAgentPoolMaintenanceJob(Model): :param orchestration_id: Orchestration/Plan Id for the maintenance job :type orchestration_id: str :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param queue_time: Time that the maintenance job was queued :type queue_time: datetime :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param result: The maintenance job result :type result: object :param start_time: Time that the maintenance job was started @@ -1853,7 +2237,7 @@ class TaskAgentPoolMaintenanceJob(Model): :param status: Status of the maintenance job :type status: object :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` :param warning_count: The total warning counts during the maintenance job :type warning_count: int """ @@ -1897,7 +2281,7 @@ class TaskAgentPoolMaintenanceJobTargetAgent(Model): """TaskAgentPoolMaintenanceJobTargetAgent. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param job_id: :type job_id: int :param result: @@ -2049,7 +2433,7 @@ class TaskAgentQueue(Model): :param name: Name of the queue :type name: str :param pool: Pool reference for this queue - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project_id: Project Id :type project_id: str """ @@ -2073,7 +2457,9 @@ class TaskAgentReference(Model): """TaskAgentReference. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param access_point: Gets the access point of the agent. + :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. @@ -2082,6 +2468,8 @@ class TaskAgentReference(Model): :type name: str :param oSDescription: Gets the OS of the agent. :type oSDescription: str + :param provisioning_state: Gets or sets the current provisioning state of this agent + :type provisioning_state: str :param status: Gets the current connectivity status of the agent. :type status: object :param version: Gets the version of the agent. @@ -2090,21 +2478,25 @@ class TaskAgentReference(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'access_point': {'key': 'accessPoint', 'type': 'str'}, 'enabled': {'key': 'enabled', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'}, 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'}, 'version': {'key': 'version', 'type': 'str'} } - def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None): + def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, oSDescription=None, provisioning_state=None, status=None, version=None): super(TaskAgentReference, self).__init__() self._links = _links + self.access_point = access_point self.enabled = enabled self.id = id self.name = name self.oSDescription = oSDescription + self.provisioning_state = provisioning_state self.status = status self.version = version @@ -2113,9 +2505,9 @@ class TaskAgentSession(Model): """TaskAgentSession. :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` + :type encryption_key: :class:`TaskAgentSessionKey ` :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. :type owner_name: str :param session_id: Gets the unique identifier for this session. @@ -2167,15 +2559,15 @@ class TaskAgentUpdate(Model): :param current_state: The current state of this agent update :type current_state: str :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` + :type reason: :class:`TaskAgentUpdateReason ` :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_time: Gets the date on which this agent update was requested. :type request_time: datetime :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` + :type source_version: :class:`PackageVersion ` :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` + :type target_version: :class:`PackageVersion ` """ _attribute_map = { @@ -2217,7 +2609,7 @@ class TaskDefinition(Model): """TaskDefinition. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2229,11 +2621,11 @@ class TaskDefinition(Model): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2245,7 +2637,7 @@ class TaskDefinition(Model): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2255,7 +2647,7 @@ class TaskDefinition(Model): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2263,11 +2655,15 @@ class TaskDefinition(Model): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: :type package_type: str + :param post_job_execution: + :type post_job_execution: dict + :param pre_job_execution: + :type pre_job_execution: dict :param preview: :type preview: bool :param release_notes: @@ -2278,12 +2674,14 @@ class TaskDefinition(Model): :type satisfies: list of str :param server_owned: :type server_owned: bool + :param show_environment_variables: + :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str """ @@ -2315,18 +2713,21 @@ class TaskDefinition(Model): 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, 'package_location': {'key': 'packageLocation', 'type': 'str'}, 'package_type': {'key': 'packageType', 'type': 'str'}, + 'post_job_execution': {'key': 'postJobExecution', 'type': '{object}'}, + 'pre_job_execution': {'key': 'preJobExecution', 'type': '{object}'}, 'preview': {'key': 'preview', 'type': 'bool'}, 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, 'runs_on': {'key': 'runsOn', 'type': '[str]'}, 'satisfies': {'key': 'satisfies', 'type': '[str]'}, 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'show_environment_variables': {'key': 'showEnvironmentVariables', 'type': 'bool'}, 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'version': {'key': 'version', 'type': 'TaskVersion'}, 'visibility': {'key': 'visibility', 'type': '[str]'} } - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, post_job_execution=None, pre_job_execution=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, show_environment_variables=None, source_definitions=None, source_location=None, version=None, visibility=None): super(TaskDefinition, self).__init__() self.agent_execution = agent_execution self.author = author @@ -2354,11 +2755,14 @@ def __init__(self, agent_execution=None, author=None, category=None, contents_up self.output_variables = output_variables self.package_location = package_location self.package_type = package_type + self.post_job_execution = post_job_execution + self.pre_job_execution = pre_job_execution self.preview = preview self.release_notes = release_notes self.runs_on = runs_on self.satisfies = satisfies self.server_owned = server_owned + self.show_environment_variables = show_environment_variables self.source_definitions = source_definitions self.source_location = source_location self.version = version @@ -2429,7 +2833,7 @@ class TaskExecution(Model): """TaskExecution. :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` + :type exec_task: :class:`TaskReference ` :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } :type platform_instructions: dict """ @@ -2449,7 +2853,7 @@ class TaskGroup(TaskDefinition): """TaskGroup. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2461,11 +2865,11 @@ class TaskGroup(TaskDefinition): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2477,7 +2881,7 @@ class TaskGroup(TaskDefinition): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2487,7 +2891,7 @@ class TaskGroup(TaskDefinition): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2495,11 +2899,15 @@ class TaskGroup(TaskDefinition): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: :type package_type: str + :param post_job_execution: + :type post_job_execution: dict + :param pre_job_execution: + :type pre_job_execution: dict :param preview: :type preview: bool :param release_notes: @@ -2510,24 +2918,26 @@ class TaskGroup(TaskDefinition): :type satisfies: list of str :param server_owned: :type server_owned: bool + :param show_environment_variables: + :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str :param comment: Gets or sets comment. :type comment: str :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets date on which it got created. :type created_on: datetime :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. :type deleted: bool :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets date on which it got modified. :type modified_on: datetime :param owner: Gets or sets the owner. @@ -2537,7 +2947,7 @@ class TaskGroup(TaskDefinition): :param revision: Gets or sets revision. :type revision: int :param tasks: Gets or sets the tasks. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` """ _attribute_map = { @@ -2567,11 +2977,14 @@ class TaskGroup(TaskDefinition): 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, 'package_location': {'key': 'packageLocation', 'type': 'str'}, 'package_type': {'key': 'packageType', 'type': 'str'}, + 'post_job_execution': {'key': 'postJobExecution', 'type': '{object}'}, + 'pre_job_execution': {'key': 'preJobExecution', 'type': '{object}'}, 'preview': {'key': 'preview', 'type': 'bool'}, 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, 'runs_on': {'key': 'runsOn', 'type': '[str]'}, 'satisfies': {'key': 'satisfies', 'type': '[str]'}, 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'show_environment_variables': {'key': 'showEnvironmentVariables', 'type': 'bool'}, 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'version': {'key': 'version', 'type': 'TaskVersion'}, @@ -2588,8 +3001,8 @@ class TaskGroup(TaskDefinition): 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} } - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): - super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, post_job_execution=None, pre_job_execution=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, show_environment_variables=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): + super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, post_job_execution=post_job_execution, pre_job_execution=pre_job_execution, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, show_environment_variables=show_environment_variables, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) self.comment = comment self.created_by = created_by self.created_on = created_on @@ -2616,7 +3029,7 @@ class TaskGroupCreateParameter(Model): :param icon_url: Sets url icon of the task group. :type icon_url: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -2626,9 +3039,9 @@ class TaskGroupCreateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -2698,7 +3111,7 @@ class TaskGroupRevision(Model): """TaskGroupRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -2747,10 +3160,12 @@ class TaskGroupStep(Model): :type display_name: str :param enabled: Gets or sets as task is enabled or not. :type enabled: bool + :param environment: Gets dictionary of environment variables. + :type environment: dict :param inputs: Gets or sets dictionary of inputs. :type inputs: dict :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. :type timeout_in_minutes: int """ @@ -2761,18 +3176,20 @@ class TaskGroupStep(Model): 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'environment': {'key': 'environment', 'type': '{str}'}, 'inputs': {'key': 'inputs', 'type': '{str}'}, 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} } - def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, environment=None, inputs=None, task=None, timeout_in_minutes=None): super(TaskGroupStep, self).__init__() self.always_run = always_run self.condition = condition self.continue_on_error = continue_on_error self.display_name = display_name self.enabled = enabled + self.environment = environment self.inputs = inputs self.task = task self.timeout_in_minutes = timeout_in_minutes @@ -2796,7 +3213,7 @@ class TaskGroupUpdateParameter(Model): :param id: Sets the unique identifier of this field. :type id: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -2808,9 +3225,9 @@ class TaskGroupUpdateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -2855,6 +3272,8 @@ class TaskHubLicenseDetails(Model): :param enterprise_users_count: :type enterprise_users_count: int + :param failed_to_reach_all_providers: + :type failed_to_reach_all_providers: bool :param free_hosted_license_count: :type free_hosted_license_count: int :param free_license_count: @@ -2865,41 +3284,59 @@ class TaskHubLicenseDetails(Model): :type hosted_agent_minutes_free_count: int :param hosted_agent_minutes_used_count: :type hosted_agent_minutes_used_count: int + :param hosted_licenses_are_premium: + :type hosted_licenses_are_premium: bool + :param marketplace_purchased_hosted_licenses: + :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` :param msdn_users_count: :type msdn_users_count: int - :param purchased_hosted_license_count: + :param purchased_hosted_license_count: Microsoft-hosted licenses purchased from VSTS directly. :type purchased_hosted_license_count: int - :param purchased_license_count: + :param purchased_license_count: Self-hosted licenses purchased from VSTS directly. :type purchased_license_count: int + :param total_hosted_license_count: + :type total_hosted_license_count: int :param total_license_count: :type total_license_count: int + :param total_private_license_count: + :type total_private_license_count: int """ _attribute_map = { 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, + 'failed_to_reach_all_providers': {'key': 'failedToReachAllProviders', 'type': 'bool'}, 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, + 'hosted_licenses_are_premium': {'key': 'hostedLicensesArePremium', 'type': 'bool'}, + 'marketplace_purchased_hosted_licenses': {'key': 'marketplacePurchasedHostedLicenses', 'type': '[MarketplacePurchasedLicense]'}, 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, - 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} + 'total_hosted_license_count': {'key': 'totalHostedLicenseCount', 'type': 'int'}, + 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'}, + 'total_private_license_count': {'key': 'totalPrivateLicenseCount', 'type': 'int'} } - def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): + def __init__(self, enterprise_users_count=None, failed_to_reach_all_providers=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, hosted_licenses_are_premium=None, marketplace_purchased_hosted_licenses=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_hosted_license_count=None, total_license_count=None, total_private_license_count=None): super(TaskHubLicenseDetails, self).__init__() self.enterprise_users_count = enterprise_users_count + self.failed_to_reach_all_providers = failed_to_reach_all_providers self.free_hosted_license_count = free_hosted_license_count self.free_license_count = free_license_count self.has_license_count_ever_updated = has_license_count_ever_updated self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count + self.hosted_licenses_are_premium = hosted_licenses_are_premium + self.marketplace_purchased_hosted_licenses = marketplace_purchased_hosted_licenses self.msdn_users_count = msdn_users_count self.purchased_hosted_license_count = purchased_hosted_license_count self.purchased_license_count = purchased_license_count + self.total_hosted_license_count = total_hosted_license_count self.total_license_count = total_license_count + self.total_private_license_count = total_private_license_count class TaskInputDefinitionBase(Model): @@ -2926,7 +3363,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -2986,7 +3423,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -3006,30 +3443,6 @@ def __init__(self, _links=None, id=None, name=None): self.name = name -class TaskOrchestrationPlanGroup(Model): - """TaskOrchestrationPlanGroup. - - :param plan_group: - :type plan_group: str - :param project: - :type project: :class:`ProjectReference ` - :param running_requests: - :type running_requests: list of :class:`TaskAgentJobRequest ` - """ - - _attribute_map = { - 'plan_group': {'key': 'planGroup', 'type': 'str'}, - 'project': {'key': 'project', 'type': 'ProjectReference'}, - 'running_requests': {'key': 'runningRequests', 'type': '[TaskAgentJobRequest]'} - } - - def __init__(self, plan_group=None, project=None, running_requests=None): - super(TaskOrchestrationPlanGroup, self).__init__() - self.plan_group = plan_group - self.project = project - self.running_requests = running_requests - - class TaskOutputVariable(Model): """TaskOutputVariable. @@ -3194,21 +3607,23 @@ class VariableGroup(Model): """VariableGroup. :param created_by: Gets or sets the identity who created the variable group. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when variable group was created. :type created_on: datetime :param description: Gets or sets description of the variable group. :type description: str :param id: Gets or sets id of the variable group. :type id: int + :param is_shared: Indicates whether variable group is shared with other projects or not. + :type is_shared: bool :param modified_by: Gets or sets the identity who modified the variable group. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets name of the variable group. :type name: str :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Gets or sets type of the variable group. :type type: str :param variables: Gets or sets variables contained in the variable group. @@ -3220,6 +3635,7 @@ class VariableGroup(Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, @@ -3228,12 +3644,13 @@ class VariableGroup(Model): 'variables': {'key': 'variables', 'type': '{VariableValue}'} } - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + def __init__(self, created_by=None, created_on=None, description=None, id=None, is_shared=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): super(VariableGroup, self).__init__() self.created_by = created_by self.created_on = created_on self.description = description self.id = id + self.is_shared = is_shared self.modified_by = modified_by self.modified_on = modified_on self.name = name @@ -3250,7 +3667,7 @@ class VariableGroupParameters(Model): :param name: Sets name of the variable group. :type name: str :param provider_data: Sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Sets type of the variable group. :type type: str :param variables: Sets variables contained in the variable group. @@ -3309,6 +3726,10 @@ def __init__(self, is_secret=None, value=None): class DataSourceBinding(DataSourceBindingBase): """DataSourceBinding. + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str :param endpoint_id: Gets or sets the endpoint Id. @@ -3316,7 +3737,9 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. :type parameters: dict :param result_selector: Gets or sets the result selector. @@ -3328,18 +3751,21 @@ class DataSourceBinding(DataSourceBindingBase): """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(callback_context_template=callback_context_template, callback_required_template=callback_required_template, data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, initial_context_template=initial_context_template, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) class DeploymentGroup(DeploymentGroupReference): @@ -3350,15 +3776,15 @@ class DeploymentGroup(DeploymentGroupReference): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param description: Description of the deployment group. :type description: str :param machine_count: Number of deployment targets in the deployment group. :type machine_count: int :param machines: List of deployment targets in the deployment group. - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param machine_tags: List of unique tags across all deployment targets in the deployment group. :type machine_tags: list of str """ @@ -3390,11 +3816,11 @@ class DeploymentMachineGroup(DeploymentMachineGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param size: :type size: int """ @@ -3414,11 +3840,57 @@ def __init__(self, id=None, name=None, pool=None, project=None, machines=None, s self.size = size +class KubernetesServiceGroup(ServiceGroup): + """KubernetesServiceGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param environment_reference: + :type environment_reference: :class:`EnvironmentReference ` + :param id: + :type id: int + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param name: + :type name: str + :param type: + :type type: object + :param namespace: + :type namespace: str + :param service_endpoint_id: + :type service_endpoint_id: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'environment_reference': {'key': 'environmentReference', 'type': 'EnvironmentReference'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, environment_reference=None, id=None, last_modified_by=None, last_modified_on=None, name=None, type=None, namespace=None, service_endpoint_id=None): + super(KubernetesServiceGroup, self).__init__(created_by=created_by, created_on=created_on, environment_reference=environment_reference, id=id, last_modified_by=last_modified_by, last_modified_on=last_modified_on, name=name, type=type) + self.namespace = namespace + self.service_endpoint_id = service_endpoint_id + + class TaskAgent(TaskAgentReference): """TaskAgent. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param access_point: Gets the access point of the agent. + :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. @@ -3427,24 +3899,28 @@ class TaskAgent(TaskAgentReference): :type name: str :param oSDescription: Gets the OS of the agent. :type oSDescription: str + :param provisioning_state: Gets or sets the current provisioning state of this agent + :type provisioning_state: str :param status: Gets the current connectivity status of the agent. :type status: object :param version: Gets the version of the agent. :type version: str + :param assigned_agent_cloud_request: Gets the Agent Cloud Request that's currently associated with this agent + :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` + :type assigned_request: :class:`TaskAgentJobRequest ` :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` + :type authorization: :class:`TaskAgentAuthorization ` :param created_on: Gets the date on which this agent was created. :type created_on: datetime :param last_completed_request: Gets the last request which was completed by this agent. - :type last_completed_request: :class:`TaskAgentJobRequest ` + :type last_completed_request: :class:`TaskAgentJobRequest ` :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. :type max_parallelism: int :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` + :type pending_update: :class:`TaskAgentUpdate ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_changed_on: Gets the date on which the last connectivity status change occurred. :type status_changed_on: datetime :param system_capabilities: @@ -3455,12 +3931,15 @@ class TaskAgent(TaskAgentReference): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'access_point': {'key': 'accessPoint', 'type': 'str'}, 'enabled': {'key': 'enabled', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'}, 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'}, 'version': {'key': 'version', 'type': 'str'}, + 'assigned_agent_cloud_request': {'key': 'assignedAgentCloudRequest', 'type': 'TaskAgentCloudRequest'}, 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, @@ -3473,8 +3952,9 @@ class TaskAgent(TaskAgentReference): 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} } - def __init__(self, _links=None, enabled=None, id=None, name=None, oSDescription=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): - super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, oSDescription=oSDescription, status=status, version=version) + def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, oSDescription=None, provisioning_state=None, status=None, version=None, assigned_agent_cloud_request=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): + super(TaskAgent, self).__init__(_links=_links, access_point=access_point, enabled=enabled, id=id, name=name, oSDescription=oSDescription, provisioning_state=provisioning_state, status=status, version=version) + self.assigned_agent_cloud_request = assigned_agent_cloud_request self.assigned_request = assigned_request self.authorization = authorization self.created_on = created_on @@ -3502,16 +3982,20 @@ class TaskAgentPool(TaskAgentPoolReference): :type scope: str :param size: Gets the current size of the pool. :type size: int + :param agent_cloud_id: Gets or sets an agentCloudId + :type agent_cloud_id: int :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. :type auto_provision: bool + :param auto_size: Gets or sets a value indicating whether or not the pool should autosize itself based on the Agent Cloud Provider settings + :type auto_size: bool :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime :param owner: Gets the identity who owns or administrates this pool. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` """ _attribute_map = { @@ -3521,16 +4005,20 @@ class TaskAgentPool(TaskAgentPoolReference): 'pool_type': {'key': 'poolType', 'type': 'object'}, 'scope': {'key': 'scope', 'type': 'str'}, 'size': {'key': 'size', 'type': 'int'}, + 'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'}, 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, + 'auto_size': {'key': 'autoSize', 'type': 'bool'}, 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'owner': {'key': 'owner', 'type': 'IdentityRef'}, 'properties': {'key': 'properties', 'type': 'object'} } - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, auto_provision=None, created_by=None, created_on=None, owner=None, properties=None): + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, agent_cloud_id=None, auto_provision=None, auto_size=None, created_by=None, created_on=None, owner=None, properties=None): super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope, size=size) + self.agent_cloud_id = agent_cloud_id self.auto_provision = auto_provision + self.auto_size = auto_size self.created_by = created_by self.created_on = created_on self.owner = owner @@ -3561,7 +4049,7 @@ class TaskInputDefinition(TaskInputDefinitionBase): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -3617,6 +4105,8 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'AadOauthTokenResult', 'AuthenticationSchemeReference', 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', 'AzureSubscription', 'AzureSubscriptionQueryResult', 'ClientCertificate', @@ -3637,6 +4127,10 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'DeploymentTargetUpdateParameter', 'EndpointAuthorization', 'EndpointUrl', + 'Environment', + 'EnvironmentCreateParameter', + 'EnvironmentReference', + 'EnvironmentUpdateParameter', 'GraphSubjectBase', 'HelpLink', 'IdentityRef', @@ -3646,16 +4140,17 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'InputValue', 'InputValues', 'InputValuesError', + 'KubernetesServiceGroupCreateParameters', + 'MarketplacePurchasedLicense', 'MetricsColumnMetaData', 'MetricsColumnsHeader', 'MetricsRow', - 'OAuthConfiguration', - 'OAuthConfigurationParams', 'PackageMetadata', 'PackageVersion', 'ProjectReference', 'PublishTaskGroupMetadata', 'ReferenceLinks', + 'ResourceLimit', 'ResourceUsage', 'ResultTransformationDetails', 'SecureFile', @@ -3668,7 +4163,12 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'ServiceEndpointRequest', 'ServiceEndpointRequestResult', 'ServiceEndpointType', + 'ServiceGroup', + 'ServiceGroupReference', 'TaskAgentAuthorization', + 'TaskAgentCloud', + 'TaskAgentCloudRequest', + 'TaskAgentCloudType', 'TaskAgentDelaySource', 'TaskAgentJobRequest', 'TaskAgentMessage', @@ -3700,7 +4200,6 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'TaskInputDefinitionBase', 'TaskInputValidation', 'TaskOrchestrationOwner', - 'TaskOrchestrationPlanGroup', 'TaskOutputVariable', 'TaskPackageMetadata', 'TaskReference', @@ -3714,6 +4213,7 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'DataSourceBinding', 'DeploymentGroup', 'DeploymentMachineGroup', + 'KubernetesServiceGroup', 'TaskAgent', 'TaskAgentPool', 'TaskInputDefinition', diff --git a/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py b/azure-devops/azure/devops/v5_0/task_agent/task_agent_client.py similarity index 81% rename from azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py rename to azure-devops/azure/devops/v5_0/task_agent/task_agent_client.py index 00584386..b227b674 100644 --- a/azure-devops/azure/devops/v4_1/task_agent/task_agent_client.py +++ b/azure-devops/azure/devops/v5_0/task_agent/task_agent_client.py @@ -25,12 +25,75 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = 'a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd' + def add_agent_cloud(self, agent_cloud): + """AddAgentCloud. + [Preview API] + :param :class:` ` agent_cloud: + :rtype: :class:` ` + """ + content = self._serialize.body(agent_cloud, 'TaskAgentCloud') + response = self._send(http_method='POST', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.0-preview.1', + content=content) + return self._deserialize('TaskAgentCloud', response) + + def delete_agent_cloud(self, agent_cloud_id): + """DeleteAgentCloud. + [Preview API] + :param int agent_cloud_id: + :rtype: :class:` ` + """ + route_values = {} + if agent_cloud_id is not None: + route_values['agentCloudId'] = self._serialize.url('agent_cloud_id', agent_cloud_id, 'int') + response = self._send(http_method='DELETE', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentCloud', response) + + def get_agent_cloud(self, agent_cloud_id): + """GetAgentCloud. + [Preview API] + :param int agent_cloud_id: + :rtype: :class:` ` + """ + route_values = {} + if agent_cloud_id is not None: + route_values['agentCloudId'] = self._serialize.url('agent_cloud_id', agent_cloud_id, 'int') + response = self._send(http_method='GET', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentCloud', response) + + def get_agent_clouds(self): + """GetAgentClouds. + [Preview API] + :rtype: [TaskAgentCloud] + """ + response = self._send(http_method='GET', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.0-preview.1') + return self._deserialize('[TaskAgentCloud]', self._unwrap_collection(response)) + + def get_agent_cloud_types(self): + """GetAgentCloudTypes. + [Preview API] Get agent cloud types. + :rtype: [TaskAgentCloudType] + """ + response = self._send(http_method='GET', + location_id='5932e193-f376-469d-9c3e-e5588ce12cb5', + version='5.0-preview.1') + return self._deserialize('[TaskAgentCloudType]', self._unwrap_collection(response)) + def add_deployment_group(self, deployment_group, project): """AddDeploymentGroup. [Preview API] Create a deployment group. - :param :class:` ` deployment_group: Deployment group to create. + :param :class:` ` deployment_group: Deployment group to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -38,7 +101,7 @@ def add_deployment_group(self, deployment_group, project): content = self._serialize.body(deployment_group, 'DeploymentGroupCreateParameter') response = self._send(http_method='POST', location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('DeploymentGroup', response) @@ -56,7 +119,7 @@ def delete_deployment_group(self, project, deployment_group_id): route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') self._send(http_method='DELETE', location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_deployment_group(self, project, deployment_group_id, action_filter=None, expand=None): @@ -66,7 +129,7 @@ def get_deployment_group(self, project, deployment_group_id, action_filter=None, :param int deployment_group_id: ID of the deployment group. :param str action_filter: Get the deployment group only if this action can be performed on it. :param str expand: Include these additional details in the returned object. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -80,7 +143,7 @@ def get_deployment_group(self, project, deployment_group_id, action_filter=None, query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('DeploymentGroup', response) @@ -116,7 +179,7 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N query_parameters['ids'] = self._serialize.query('ids', ids, 'str') response = self._send(http_method='GET', location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[DeploymentGroup]', self._unwrap_collection(response)) @@ -124,10 +187,10 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N def update_deployment_group(self, deployment_group, project, deployment_group_id): """UpdateDeploymentGroup. [Preview API] Update a deployment group. - :param :class:` ` deployment_group: Deployment group to update. + :param :class:` ` deployment_group: Deployment group to update. :param str project: Project ID or project name :param int deployment_group_id: ID of the deployment group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -137,11 +200,26 @@ def update_deployment_group(self, deployment_group, project, deployment_group_id content = self._serialize.body(deployment_group, 'DeploymentGroupUpdateParameter') response = self._send(http_method='PATCH', location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('DeploymentGroup', response) + def get_agent_cloud_requests(self, agent_cloud_id): + """GetAgentCloudRequests. + [Preview API] + :param int agent_cloud_id: + :rtype: [TaskAgentCloudRequest] + """ + route_values = {} + if agent_cloud_id is not None: + route_values['agentCloudId'] = self._serialize.url('agent_cloud_id', agent_cloud_id, 'int') + response = self._send(http_method='GET', + location_id='20189bd7-5134-49c2-b8e9-f9e856eea2b2', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[TaskAgentCloudRequest]', self._unwrap_collection(response)) + def delete_deployment_target(self, project, deployment_group_id, target_id): """DeleteDeploymentTarget. [Preview API] Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too. @@ -158,7 +236,7 @@ def delete_deployment_target(self, project, deployment_group_id, target_id): route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') self._send(http_method='DELETE', location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_deployment_target(self, project, deployment_group_id, target_id, expand=None): @@ -168,7 +246,7 @@ def get_deployment_target(self, project, deployment_group_id, target_id, expand= :param int deployment_group_id: ID of the deployment group to which deployment target belongs. :param int target_id: ID of the deployment target to return. :param str expand: Include these additional details in the returned objects. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -182,12 +260,12 @@ def get_deployment_target(self, project, deployment_group_id, target_id, expand= query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('DeploymentMachine', response) - def get_deployment_targets(self, project, deployment_group_id, tags=None, name=None, partial_name_match=None, expand=None, agent_status=None, agent_job_result=None, continuation_token=None, top=None): + def get_deployment_targets(self, project, deployment_group_id, tags=None, name=None, partial_name_match=None, expand=None, agent_status=None, agent_job_result=None, continuation_token=None, top=None, enabled=None): """GetDeploymentTargets. [Preview API] Get a list of deployment targets in a deployment group. :param str project: Project ID or project name @@ -200,6 +278,7 @@ def get_deployment_targets(self, project, deployment_group_id, tags=None, name=N :param str agent_job_result: Get only deployment targets that have this last job result. :param str continuation_token: Get deployment targets with names greater than this continuationToken lexicographically. :param int top: Maximum number of deployment targets to return. Default is **1000**. + :param bool enabled: Get only deployment targets that are enabled or disabled. Default is 'null' which returns all the targets. :rtype: [DeploymentMachine] """ route_values = {} @@ -225,9 +304,11 @@ def get_deployment_targets(self, project, deployment_group_id, tags=None, name=N query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') + if enabled is not None: + query_parameters['enabled'] = self._serialize.query('enabled', enabled, 'bool') response = self._send(http_method='GET', location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) @@ -248,7 +329,7 @@ def update_deployment_targets(self, machines, project, deployment_group_id): content = self._serialize.body(machines, '[DeploymentTargetUpdateParameter]') response = self._send(http_method='PATCH', location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) @@ -256,9 +337,9 @@ def update_deployment_targets(self, machines, project, deployment_group_id): def add_task_group(self, task_group, project): """AddTaskGroup. [Preview API] Create a task group. - :param :class:` ` task_group: Task group object to create. + :param :class:` ` task_group: Task group object to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -266,7 +347,7 @@ def add_task_group(self, task_group, project): content = self._serialize.body(task_group, 'TaskGroupCreateParameter') response = self._send(http_method='POST', location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('TaskGroup', response) @@ -288,7 +369,7 @@ def delete_task_group(self, project, task_group_id, comment=None): query_parameters['comment'] = self._serialize.query('comment', comment, 'str') self._send(http_method='DELETE', location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -325,7 +406,7 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) @@ -333,10 +414,10 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi def update_task_group(self, task_group, project, task_group_id=None): """UpdateTaskGroup. [Preview API] Update a task group. - :param :class:` ` task_group: Task group to update. + :param :class:` ` task_group: Task group to update. :param str project: Project ID or project name :param str task_group_id: Id of the task group to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -346,7 +427,7 @@ def update_task_group(self, task_group, project, task_group_id=None): content = self._serialize.body(task_group, 'TaskGroupUpdateParameter') response = self._send(http_method='PUT', location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('TaskGroup', response) @@ -354,9 +435,9 @@ def update_task_group(self, task_group, project, task_group_id=None): def add_variable_group(self, group, project): """AddVariableGroup. [Preview API] Add a variable group. - :param :class:` ` group: Variable group to add. + :param :class:` ` group: Variable group to add. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -364,7 +445,7 @@ def add_variable_group(self, group, project): content = self._serialize.body(group, 'VariableGroupParameters') response = self._send(http_method='POST', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('VariableGroup', response) @@ -382,7 +463,7 @@ def delete_variable_group(self, project, group_id): route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') self._send(http_method='DELETE', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_variable_group(self, project, group_id): @@ -390,7 +471,7 @@ def get_variable_group(self, project, group_id): [Preview API] Get a variable group. :param str project: Project ID or project name :param int group_id: Id of the variable group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -399,7 +480,7 @@ def get_variable_group(self, project, group_id): route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') response = self._send(http_method='GET', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('VariableGroup', response) @@ -430,7 +511,7 @@ def get_variable_groups(self, project, group_name=None, action_filter=None, top= query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) @@ -451,7 +532,7 @@ def get_variable_groups_by_id(self, project, group_ids): query_parameters['groupIds'] = self._serialize.query('group_ids', group_ids, 'str') response = self._send(http_method='GET', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) @@ -459,10 +540,10 @@ def get_variable_groups_by_id(self, project, group_ids): def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. [Preview API] Update a variable group. - :param :class:` ` group: Variable group to update. + :param :class:` ` group: Variable group to update. :param str project: Project ID or project name :param int group_id: Id of the variable group to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -472,7 +553,7 @@ def update_variable_group(self, group, project, group_id): content = self._serialize.body(group, 'VariableGroupParameters') response = self._send(http_method='PUT', location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('VariableGroup', response) diff --git a/azure-devops/azure/devops/v4_1/test/__init__.py b/azure-devops/azure/devops/v5_0/test/__init__.py similarity index 94% rename from azure-devops/azure/devops/v4_1/test/__init__.py rename to azure-devops/azure/devops/v5_0/test/__init__.py index 627441f1..55f6e22d 100644 --- a/azure-devops/azure/devops/v4_1/test/__init__.py +++ b/azure-devops/azure/devops/v5_0/test/__init__.py @@ -13,6 +13,7 @@ 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', 'AggregatedRunsByState', 'BuildConfiguration', 'BuildCoverage', @@ -59,6 +60,7 @@ 'SuiteEntry', 'SuiteEntryUpdateModel', 'SuiteTestCase', + 'SuiteTestCaseUpdateModel', 'SuiteUpdateModel', 'TeamContext', 'TeamProjectReference', @@ -74,10 +76,12 @@ 'TestEnvironment', 'TestFailureDetails', 'TestFailuresAnalysis', + 'TestHistoryQuery', 'TestIterationDetailsModel', 'TestMessageLogDetails', 'TestMethod', 'TestOperationReference', + 'TestOutcomeSettings', 'TestPlan', 'TestPlanCloneRequest', 'TestPoint', @@ -87,6 +91,8 @@ 'TestResultDocument', 'TestResultHistory', 'TestResultHistoryDetailsForGroup', + 'TestResultHistoryForGroup', + 'TestResultMetaData', 'TestResultModelBase', 'TestResultParameterModel', 'TestResultPayload', @@ -103,6 +109,7 @@ 'TestRunStatistic', 'TestSession', 'TestSettings', + 'TestSubResult', 'TestSuite', 'TestSuiteCloneRequest', 'TestSummaryForWorkItem', diff --git a/azure-devops/azure/devops/v4_1/test/models.py b/azure-devops/azure/devops/v5_0/test/models.py similarity index 73% rename from azure-devops/azure/devops/v4_1/test/models.py rename to azure-devops/azure/devops/v5_0/test/models.py index f4afa186..c75b6732 100644 --- a/azure-devops/azure/devops/v4_1/test/models.py +++ b/azure-devops/azure/devops/v5_0/test/models.py @@ -19,7 +19,7 @@ class AggregatedDataForResultTrend(Model): :param run_summary_by_state: :type run_summary_by_state: dict :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_tests: :type total_tests: int """ @@ -49,11 +49,13 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_outcome: + :type run_summary_by_outcome: dict :param run_summary_by_state: :type run_summary_by_state: dict :param total_tests: @@ -66,17 +68,19 @@ class AggregatedResultsAnalysis(Model): 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_outcome': {'key': 'runSummaryByOutcome', 'type': '{AggregatedRunsByOutcome}'}, 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, 'total_tests': {'key': 'totalTests', 'type': 'int'} } - def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None): + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_outcome=None, run_summary_by_state=None, total_tests=None): super(AggregatedResultsAnalysis, self).__init__() self.duration = duration self.not_reported_results_by_outcome = not_reported_results_by_outcome self.previous_context = previous_context self.results_by_outcome = results_by_outcome self.results_difference = results_difference + self.run_summary_by_outcome = run_summary_by_outcome self.run_summary_by_state = run_summary_by_state self.total_tests = total_tests @@ -149,9 +153,31 @@ def __init__(self, increase_in_duration=None, increase_in_failures=None, increas self.increase_in_total_tests = increase_in_total_tests +class AggregatedRunsByOutcome(Model): + """AggregatedRunsByOutcome. + + :param outcome: + :type outcome: object + :param runs_count: + :type runs_count: int + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'runs_count': {'key': 'runsCount', 'type': 'int'} + } + + def __init__(self, outcome=None, runs_count=None): + super(AggregatedRunsByOutcome, self).__init__() + self.outcome = outcome + self.runs_count = runs_count + + class AggregatedRunsByState(Model): """AggregatedRunsByState. + :param results_by_outcome: + :type results_by_outcome: dict :param runs_count: :type runs_count: int :param state: @@ -159,12 +185,14 @@ class AggregatedRunsByState(Model): """ _attribute_map = { + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, 'runs_count': {'key': 'runsCount', 'type': 'int'}, 'state': {'key': 'state', 'type': 'object'} } - def __init__(self, runs_count=None, state=None): + def __init__(self, results_by_outcome=None, runs_count=None, state=None): super(AggregatedRunsByState, self).__init__() + self.results_by_outcome = results_by_outcome self.runs_count = runs_count self.state = state @@ -176,6 +204,10 @@ class BuildConfiguration(Model): :type branch_name: str :param build_definition_id: :type build_definition_id: int + :param build_system: + :type build_system: str + :param creation_date: + :type creation_date: datetime :param flavor: :type flavor: str :param id: @@ -185,9 +217,13 @@ class BuildConfiguration(Model): :param platform: :type platform: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` + :param repository_guid: + :type repository_guid: str :param repository_id: :type repository_id: int + :param repository_type: + :type repository_type: str :param source_version: :type source_version: str :param uri: @@ -197,26 +233,34 @@ class BuildConfiguration(Model): _attribute_map = { 'branch_name': {'key': 'branchName', 'type': 'str'}, 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'build_system': {'key': 'buildSystem', 'type': 'str'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, 'flavor': {'key': 'flavor', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'number': {'key': 'number', 'type': 'str'}, 'platform': {'key': 'platform', 'type': 'str'}, 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'repository_guid': {'key': 'repositoryGuid', 'type': 'str'}, 'repository_id': {'key': 'repositoryId', 'type': 'int'}, + 'repository_type': {'key': 'repositoryType', 'type': 'str'}, 'source_version': {'key': 'sourceVersion', 'type': 'str'}, 'uri': {'key': 'uri', 'type': 'str'} } - def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): + def __init__(self, branch_name=None, build_definition_id=None, build_system=None, creation_date=None, flavor=None, id=None, number=None, platform=None, project=None, repository_guid=None, repository_id=None, repository_type=None, source_version=None, uri=None): super(BuildConfiguration, self).__init__() self.branch_name = branch_name self.build_definition_id = build_definition_id + self.build_system = build_system + self.creation_date = creation_date self.flavor = flavor self.id = id self.number = number self.platform = platform self.project = project + self.repository_guid = repository_guid self.repository_id = repository_id + self.repository_type = repository_type self.source_version = source_version self.uri = uri @@ -224,15 +268,15 @@ def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=N class BuildCoverage(Model): """BuildCoverage. - :param code_coverage_file_url: + :param code_coverage_file_url: Code Coverage File Url :type code_coverage_file_url: str - :param configuration: - :type configuration: :class:`BuildConfiguration ` - :param last_error: + :param configuration: Build Configuration + :type configuration: :class:`BuildConfiguration ` + :param last_error: Last Error :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: + :param modules: List of Modules + :type modules: list of :class:`ModuleCoverage ` + :param state: State :type state: str """ @@ -256,19 +300,19 @@ def __init__(self, code_coverage_file_url=None, configuration=None, last_error=N class BuildReference(Model): """BuildReference. - :param branch_name: + :param branch_name: Branch name. :type branch_name: str - :param build_system: + :param build_system: Build system. :type build_system: str - :param definition_id: + :param definition_id: Build Definition ID. :type definition_id: int - :param id: + :param id: Build ID. :type id: int - :param number: + :param number: Build Number. :type number: str - :param repository_id: + :param repository_id: Repository ID. :type repository_id: str - :param uri: + :param uri: Build URI. :type uri: str """ @@ -296,18 +340,18 @@ def __init__(self, branch_name=None, build_system=None, definition_id=None, id=N class CloneOperationInformation(Model): """CloneOperationInformation. - :param clone_statistics: - :type clone_statistics: :class:`CloneStatistics ` + :param clone_statistics: Clone Statistics + :type clone_statistics: :class:`CloneStatistics ` :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue :type completion_date: datetime :param creation_date: DateTime when the operation was started :type creation_date: datetime :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` + :type destination_object: :class:`ShallowReference ` :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` + :type destination_plan: :class:`ShallowReference ` :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` + :type destination_project: :class:`ShallowReference ` :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. :type message: str :param op_id: The ID of the operation @@ -315,11 +359,11 @@ class CloneOperationInformation(Model): :param result_object_type: The type of the object generated as a result of the Clone operation :type result_object_type: object :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` + :type source_object: :class:`ShallowReference ` :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` + :type source_plan: :class:`ShallowReference ` :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` + :type source_project: :class:`ShallowReference ` :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete :type state: object :param url: Url for geting the clone information @@ -437,7 +481,7 @@ class CodeCoverageData(Model): :param build_platform: Platform of build for which data is retrieved/published :type build_platform: str :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` + :type coverage_stats: list of :class:`CodeCoverageStatistics ` """ _attribute_map = { @@ -493,11 +537,11 @@ class CodeCoverageSummary(Model): """CodeCoverageSummary. :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` + :type coverage_data: list of :class:`CodeCoverageData ` :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` + :type delta_build: :class:`ShallowReference ` """ _attribute_map = { @@ -548,9 +592,9 @@ def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=N class CustomTestField(Model): """CustomTestField. - :param field_name: + :param field_name: Field Name. :type field_name: str - :param value: + :param value: Field value. :type value: object """ @@ -620,12 +664,12 @@ def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None class FailingSince(Model): """FailingSince. - :param build: - :type build: :class:`BuildReference ` - :param date: + :param build: Build reference since failing. + :type build: :class:`BuildReference ` + :param date: Time since failing. :type date: datetime - :param release: - :type release: :class:`ReleaseReference ` + :param release: Release reference since failing. + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -673,7 +717,7 @@ class FunctionCoverage(Model): :param source_file: :type source_file: str :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -697,7 +741,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -725,7 +769,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -744,6 +788,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -761,11 +807,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -773,6 +820,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -785,7 +833,7 @@ class LastResultDetails(Model): :param duration: :type duration: long :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` """ _attribute_map = { @@ -851,7 +899,7 @@ class LinkedWorkItemsQueryResult(Model): :param test_case_id: :type test_case_id: int :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -880,8 +928,10 @@ class ModuleCoverage(Model): :type block_count: int :param block_data: :type block_data: str + :param file_url: Code Coverage File Url + :type file_url: str :param functions: - :type functions: list of :class:`FunctionCoverage ` + :type functions: list of :class:`FunctionCoverage ` :param name: :type name: str :param signature: @@ -889,12 +939,13 @@ class ModuleCoverage(Model): :param signature_age: :type signature_age: int :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { 'block_count': {'key': 'blockCount', 'type': 'int'}, 'block_data': {'key': 'blockData', 'type': 'str'}, + 'file_url': {'key': 'fileUrl', 'type': 'str'}, 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, 'name': {'key': 'name', 'type': 'str'}, 'signature': {'key': 'signature', 'type': 'str'}, @@ -902,10 +953,11 @@ class ModuleCoverage(Model): 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} } - def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): + def __init__(self, block_count=None, block_data=None, file_url=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): super(ModuleCoverage, self).__init__() self.block_count = block_count self.block_data = block_data + self.file_url = file_url self.functions = functions self.name = name self.signature = signature @@ -916,9 +968,9 @@ def __init__(self, block_count=None, block_data=None, functions=None, name=None, class NameValuePair(Model): """NameValuePair. - :param name: + :param name: Name :type name: str - :param value: + :param value: Value :type value: str """ @@ -936,40 +988,42 @@ def __init__(self, name=None, value=None): class PlanUpdateModel(Model): """PlanUpdateModel. - :param area: - :type area: :class:`ShallowReference ` + :param area: Area path to which the test plan belongs. This should be set to area path of the team that works on this test plan. + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` - :param configuration_ids: + :type automated_test_settings: :class:`TestSettings ` + :param build: Build ID of the build whose quality is tested by the tests in this test plan. For automated testing, this build ID is used to find the test binaries that contain automated test methods. + :type build: :class:`ShallowReference ` + :param build_definition: The Build Definition that generates a build associated with this test plan. + :type build_definition: :class:`ShallowReference ` + :param configuration_ids: IDs of configurations to be applied when new test suites and test cases are added to the test plan. :type configuration_ids: list of int - :param description: + :param description: Description of the test plan. :type description: str - :param end_date: + :param end_date: End date for the test plan. :type end_date: str - :param iteration: + :param iteration: Iteration path assigned to the test plan. This indicates when the target iteration by which the testing in this plan is supposed to be complete and the product is ready to be released. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: + :type manual_test_settings: :class:`TestSettings ` + :param name: Name of the test plan. :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param start_date: + :param owner: Owner of the test plan. + :type owner: :class:`IdentityRef ` + :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param start_date: Start date for the test plan. :type start_date: str - :param state: + :param state: State of the test plan. :type state: str :param status: :type status: str + :param test_outcome_settings: Test Outcome settings + :type test_outcome_settings: :class:`TestOutcomeSettings ` """ _attribute_map = { @@ -989,10 +1043,11 @@ class PlanUpdateModel(Model): 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, 'start_date': {'key': 'startDate', 'type': 'str'}, 'state': {'key': 'state', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'} + 'status': {'key': 'status', 'type': 'str'}, + 'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'} } - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None, test_outcome_settings=None): super(PlanUpdateModel, self).__init__() self.area = area self.automated_test_environment = automated_test_environment @@ -1011,15 +1066,16 @@ def __init__(self, area=None, automated_test_environment=None, automated_test_se self.start_date = start_date self.state = state self.status = status + self.test_outcome_settings = test_outcome_settings class PointAssignment(Model): """PointAssignment. - :param configuration: - :type configuration: :class:`ShallowReference ` - :param tester: - :type tester: :class:`IdentityRef ` + :param configuration: Configuration that was assigned to the test case. + :type configuration: :class:`ShallowReference ` + :param tester: Tester that was assigned to the test case + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1036,12 +1092,12 @@ def __init__(self, configuration=None, tester=None): class PointsFilter(Model): """PointsFilter. - :param configuration_names: + :param configuration_names: List of Configurations for filtering. :type configuration_names: list of str - :param testcase_ids: + :param testcase_ids: List of test case id for filtering. :type testcase_ids: list of int - :param testers: - :type testers: list of :class:`IdentityRef ` + :param testers: List of tester for filtering. + :type testers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -1060,12 +1116,12 @@ def __init__(self, configuration_names=None, testcase_ids=None, testers=None): class PointUpdateModel(Model): """PointUpdateModel. - :param outcome: + :param outcome: Outcome to update. :type outcome: str - :param reset_to_active: + :param reset_to_active: Reset test point to active. :type reset_to_active: bool - :param tester: - :type tester: :class:`IdentityRef ` + :param tester: Tester to update. Type IdentityRef. + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1132,9 +1188,9 @@ def __init__(self, links=None): class ReleaseEnvironmentDefinitionReference(Model): """ReleaseEnvironmentDefinitionReference. - :param definition_id: + :param definition_id: ID of the release definition that contains the release environment definition. :type definition_id: int - :param environment_definition_id: + :param environment_definition_id: ID of the release environment definition. :type environment_definition_id: int """ @@ -1152,24 +1208,33 @@ def __init__(self, definition_id=None, environment_definition_id=None): class ReleaseReference(Model): """ReleaseReference. - :param definition_id: + :param attempt: + :type attempt: int + :param creation_date: + :type creation_date: datetime + :param definition_id: Release definition ID. :type definition_id: int - :param environment_definition_id: + :param environment_creation_date: + :type environment_creation_date: datetime + :param environment_definition_id: Release environment definition ID. :type environment_definition_id: int - :param environment_definition_name: + :param environment_definition_name: Release environment definition name. :type environment_definition_name: str - :param environment_id: + :param environment_id: Release environment ID. :type environment_id: int - :param environment_name: + :param environment_name: Release environment name. :type environment_name: str - :param id: + :param id: Release ID. :type id: int - :param name: + :param name: Release name. :type name: str """ _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_creation_date': {'key': 'environmentCreationDate', 'type': 'iso-8601'}, 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, 'environment_id': {'key': 'environmentId', 'type': 'int'}, @@ -1178,9 +1243,12 @@ class ReleaseReference(Model): 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + def __init__(self, attempt=None, creation_date=None, definition_id=None, environment_creation_date=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): super(ReleaseReference, self).__init__() + self.attempt = attempt + self.creation_date = creation_date self.definition_id = definition_id + self.environment_creation_date = environment_creation_date self.environment_definition_id = environment_definition_id self.environment_definition_name = environment_definition_name self.environment_id = environment_id @@ -1192,13 +1260,13 @@ def __init__(self, definition_id=None, environment_definition_id=None, environme class ResultRetentionSettings(Model): """ResultRetentionSettings. - :param automated_results_retention_duration: + :param automated_results_retention_duration: Automated test result retention duration in days :type automated_results_retention_duration: int - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_updated_by: Last Updated by identity + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date :type last_updated_date: datetime - :param manual_results_retention_duration: + :param manual_results_retention_duration: Manual test result retention duration in days :type manual_results_retention_duration: int """ @@ -1224,16 +1292,24 @@ class ResultsFilter(Model): :type automated_test_name: str :param branch: :type branch: str + :param executed_in: + :type executed_in: object :param group_by: :type group_by: str :param max_complete_date: :type max_complete_date: datetime :param results_count: :type results_count: int + :param test_case_id: + :type test_case_id: int :param test_case_reference_ids: :type test_case_reference_ids: list of int + :param test_plan_id: + :type test_plan_id: int + :param test_point_ids: + :type test_point_ids: list of int :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param trend_days: :type trend_days: int """ @@ -1241,22 +1317,30 @@ class ResultsFilter(Model): _attribute_map = { 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, 'branch': {'key': 'branch', 'type': 'str'}, + 'executed_in': {'key': 'executedIn', 'type': 'object'}, 'group_by': {'key': 'groupBy', 'type': 'str'}, 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, 'results_count': {'key': 'resultsCount', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, 'test_case_reference_ids': {'key': 'testCaseReferenceIds', 'type': '[int]'}, + 'test_plan_id': {'key': 'testPlanId', 'type': 'int'}, + 'test_point_ids': {'key': 'testPointIds', 'type': '[int]'}, 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, 'trend_days': {'key': 'trendDays', 'type': 'int'} } - def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_case_reference_ids=None, test_results_context=None, trend_days=None): + def __init__(self, automated_test_name=None, branch=None, executed_in=None, group_by=None, max_complete_date=None, results_count=None, test_case_id=None, test_case_reference_ids=None, test_plan_id=None, test_point_ids=None, test_results_context=None, trend_days=None): super(ResultsFilter, self).__init__() self.automated_test_name = automated_test_name self.branch = branch + self.executed_in = executed_in self.group_by = group_by self.max_complete_date = max_complete_date self.results_count = results_count + self.test_case_id = test_case_id self.test_case_reference_ids = test_case_reference_ids + self.test_plan_id = test_plan_id + self.test_point_ids = test_point_ids self.test_results_context = test_results_context self.trend_days = trend_days @@ -1264,66 +1348,70 @@ def __init__(self, automated_test_name=None, branch=None, group_by=None, max_com class RunCreateModel(Model): """RunCreateModel. - :param automated: + :param automated: true if test run is automated, false otherwise. By default it will be false. :type automated: bool - :param build: - :type build: :class:`ShallowReference ` - :param build_drop_location: + :param build: An abstracted reference to the build that it belongs. + :type build: :class:`ShallowReference ` + :param build_drop_location: Drop location of the build used for test run. :type build_drop_location: str - :param build_flavor: + :param build_flavor: Flavor of the build used for test run. (E.g: Release, Debug) :type build_flavor: str - :param build_platform: + :param build_platform: Platform of the build used for test run. (E.g.: x86, amd64) :type build_platform: str - :param comment: + :param build_reference: + :type build_reference: :class:`BuildConfiguration ` + :param comment: Comments entered by those analyzing the run. :type comment: str - :param complete_date: + :param complete_date: Completed date time of the run. :type complete_date: str - :param configuration_ids: + :param configuration_ids: IDs of the test configurations associated with the run. :type configuration_ids: list of int - :param controller: + :param controller: Name of the test controller used for automated run. :type controller: str :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_test_environment: - :type dtl_test_environment: :class:`ShallowReference ` - :param due_date: + :type custom_test_fields: list of :class:`CustomTestField ` + :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_test_environment: An abstracted reference to DtlTestEnvironment. + :type dtl_test_environment: :class:`ShallowReference ` + :param due_date: Due date and time for test run. :type due_date: str :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` - :param error_message: + :type environment_details: :class:`DtlEnvironmentDetails ` + :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` - :param iteration: + :type filter: :class:`RunFilter ` + :param iteration: The iteration in which to create the run. Root iteration of the team project will be default :type iteration: str - :param name: + :param name: Name of the test run. :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param plan: - :type plan: :class:`ShallowReference ` - :param point_ids: + :param owner: Display name of the owner of the run. + :type owner: :class:`IdentityRef ` + :param plan: An abstracted reference to the plan that it belongs. + :type plan: :class:`ShallowReference ` + :param point_ids: IDs of the test points to use in the run. :type point_ids: list of int - :param release_environment_uri: + :param release_environment_uri: URI of release environment associated with the run. :type release_environment_uri: str - :param release_uri: + :param release_reference: + :type release_reference: :class:`ReleaseReference ` + :param release_uri: URI of release associated with the run. :type release_uri: str :param run_timeout: :type run_timeout: object :param source_workflow: :type source_workflow: str - :param start_date: + :param start_date: Start date time of the run. :type start_date: str - :param state: + :param state: The state of the run. Valid states - NotStarted, InProgress, Waiting :type state: str :param test_configurations_mapping: :type test_configurations_mapping: str - :param test_environment_id: + :param test_environment_id: ID of the test environment associated with the run. :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` + :param test_settings: An abstracted reference to the test settings resource. + :type test_settings: :class:`ShallowReference ` :param type: :type type: str """ @@ -1334,6 +1422,7 @@ class RunCreateModel(Model): 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'build_reference': {'key': 'buildReference', 'type': 'BuildConfiguration'}, 'comment': {'key': 'comment', 'type': 'str'}, 'complete_date': {'key': 'completeDate', 'type': 'str'}, 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, @@ -1351,6 +1440,7 @@ class RunCreateModel(Model): 'plan': {'key': 'plan', 'type': 'ShallowReference'}, 'point_ids': {'key': 'pointIds', 'type': '[int]'}, 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, 'release_uri': {'key': 'releaseUri', 'type': 'str'}, 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, @@ -1362,13 +1452,14 @@ class RunCreateModel(Model): 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): + def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, build_reference=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_reference=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): super(RunCreateModel, self).__init__() self.automated = automated self.build = build self.build_drop_location = build_drop_location self.build_flavor = build_flavor self.build_platform = build_platform + self.build_reference = build_reference self.comment = comment self.complete_date = complete_date self.configuration_ids = configuration_ids @@ -1386,6 +1477,7 @@ def __init__(self, automated=None, build=None, build_drop_location=None, build_f self.plan = plan self.point_ids = point_ids self.release_environment_uri = release_environment_uri + self.release_reference = release_reference self.release_uri = release_uri self.run_timeout = run_timeout self.source_workflow = source_workflow @@ -1422,11 +1514,11 @@ class RunStatistic(Model): :param count: :type count: int - :param outcome: + :param outcome: Test run outcome :type outcome: str :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` - :param state: + :type resolution_state: :class:`TestResolutionState ` + :param state: State of the test run :type state: str """ @@ -1448,37 +1540,37 @@ def __init__(self, count=None, outcome=None, resolution_state=None, state=None): class RunUpdateModel(Model): """RunUpdateModel. - :param build: - :type build: :class:`ShallowReference ` + :param build: An abstracted reference to the build that it belongs. + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: :type build_flavor: str :param build_platform: :type build_platform: str - :param comment: + :param comment: Comments entered by those analyzing the run. :type comment: str - :param completed_date: + :param completed_date: Completed date time of the run. :type completed_date: str - :param controller: + :param controller: Name of the test controller used for automated run. :type controller: str :param delete_in_progress_results: :type delete_in_progress_results: bool - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: An abstracted reference to DtlEnvironment. + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` - :param due_date: + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :param due_date: Due date and time for test run. :type due_date: str - :param error_message: + :param error_message: Error message associated with the run. :type error_message: str - :param iteration: + :param iteration: The iteration in which to create the run. :type iteration: str - :param log_entries: - :type log_entries: list of :class:`TestMessageLogDetails ` - :param name: + :param log_entries: Log entries associated with the run. Use a comma-separated list of multiple log entry objects. { logEntry }, { logEntry }, ... + :type log_entries: list of :class:`TestMessageLogDetails ` + :param name: Name of the test run. :type name: str :param release_environment_uri: :type release_environment_uri: str @@ -1486,16 +1578,16 @@ class RunUpdateModel(Model): :type release_uri: str :param source_workflow: :type source_workflow: str - :param started_date: + :param started_date: Start date time of the run. :type started_date: str - :param state: + :param state: The state of the test run Below are the valid values - NotStarted, InProgress, Completed, Aborted, Waiting :type state: str :param substate: :type substate: object :param test_environment_id: :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` + :param test_settings: An abstracted reference to test setting resource. + :type test_settings: :class:`ShallowReference ` """ _attribute_map = { @@ -1556,7 +1648,7 @@ def __init__(self, build=None, build_drop_location=None, build_flavor=None, buil class ShallowReference(Model): """ShallowReference. - :param id: Id of the resource + :param id: ID of the resource :type id: str :param name: Name of the linked resource (definition name, controller name, etc.) :type name: str @@ -1582,6 +1674,8 @@ class ShallowTestCaseResult(Model): :param automated_test_storage: :type automated_test_storage: str + :param duration_in_ms: + :type duration_in_ms: float :param id: :type id: int :param is_re_run: @@ -1602,6 +1696,7 @@ class ShallowTestCaseResult(Model): _attribute_map = { 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, 'id': {'key': 'id', 'type': 'int'}, 'is_re_run': {'key': 'isReRun', 'type': 'bool'}, 'outcome': {'key': 'outcome', 'type': 'str'}, @@ -1612,9 +1707,10 @@ class ShallowTestCaseResult(Model): 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'} } - def __init__(self, automated_test_storage=None, id=None, is_re_run=None, outcome=None, owner=None, priority=None, ref_id=None, run_id=None, test_case_title=None): + def __init__(self, automated_test_storage=None, duration_in_ms=None, id=None, is_re_run=None, outcome=None, owner=None, priority=None, ref_id=None, run_id=None, test_case_title=None): super(ShallowTestCaseResult, self).__init__() self.automated_test_storage = automated_test_storage + self.duration_in_ms = duration_in_ms self.id = id self.is_re_run = is_re_run self.outcome = outcome @@ -1628,9 +1724,9 @@ def __init__(self, automated_test_storage=None, id=None, is_re_run=None, outcome class SharedStepModel(Model): """SharedStepModel. - :param id: + :param id: WorkItem shared step ID. :type id: int - :param revision: + :param revision: Shared step workitem revision. :type revision: int """ @@ -1648,13 +1744,13 @@ def __init__(self, id=None, revision=None): class SuiteCreateModel(Model): """SuiteCreateModel. - :param name: + :param name: Name of test suite. :type name: str - :param query_string: + :param query_string: For query based suites, query string that defines the suite. :type query_string: str - :param requirement_ids: + :param requirement_ids: For requirements test suites, the IDs of the requirements. :type requirement_ids: list of int - :param suite_type: + :param suite_type: Type of test suite to create. It can have value from DynamicTestSuite, StaticTestSuite and RequirementTestSuite. :type suite_type: str """ @@ -1676,13 +1772,13 @@ def __init__(self, name=None, query_string=None, requirement_ids=None, suite_typ class SuiteEntry(Model): """SuiteEntry. - :param child_suite_id: Id of child suite in a suite + :param child_suite_id: Id of child suite in the test suite. :type child_suite_id: int - :param sequence_number: Sequence number for the test case or child suite in the suite + :param sequence_number: Sequence number for the test case or child test suite in the test suite. :type sequence_number: int - :param suite_id: Id for the suite + :param suite_id: Id for the test suite. :type suite_id: int - :param test_case_id: Id of a test case in a suite + :param test_case_id: Id of a test case in the test suite. :type test_case_id: int """ @@ -1704,11 +1800,11 @@ def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, tes class SuiteEntryUpdateModel(Model): """SuiteEntryUpdateModel. - :param child_suite_id: Id of child suite in a suite + :param child_suite_id: Id of the child suite in the test suite. :type child_suite_id: int - :param sequence_number: Updated sequence number for the test case or child suite in the suite + :param sequence_number: Updated sequence number for the test case or child test suite in the test suite. :type sequence_number: int - :param test_case_id: Id of a test case in a suite + :param test_case_id: Id of the test case in the test suite. :type test_case_id: int """ @@ -1728,10 +1824,10 @@ def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None) class SuiteTestCase(Model): """SuiteTestCase. - :param point_assignments: - :type point_assignments: list of :class:`PointAssignment ` - :param test_case: - :type test_case: :class:`WorkItemReference ` + :param point_assignments: Point Assignment for test suite's test case. + :type point_assignments: list of :class:`PointAssignment ` + :param test_case: Test case workItem reference. + :type test_case: :class:`WorkItemReference ` """ _attribute_map = { @@ -1745,20 +1841,36 @@ def __init__(self, point_assignments=None, test_case=None): self.test_case = test_case +class SuiteTestCaseUpdateModel(Model): + """SuiteTestCaseUpdateModel. + + :param configurations: Shallow reference of configurations for the test cases in the suite. + :type configurations: list of :class:`ShallowReference ` + """ + + _attribute_map = { + 'configurations': {'key': 'configurations', 'type': '[ShallowReference]'} + } + + def __init__(self, configurations=None): + super(SuiteTestCaseUpdateModel, self).__init__() + self.configurations = configurations + + class SuiteUpdateModel(Model): """SuiteUpdateModel. - :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` - :param default_testers: - :type default_testers: list of :class:`ShallowReference ` - :param inherit_default_configurations: + :param default_configurations: Shallow reference of default configurations for the suite. + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: Shallow reference of test suite. + :type default_testers: list of :class:`ShallowReference ` + :param inherit_default_configurations: Specifies if the default configurations have to be inherited from the parent test suite in which the test suite is created. :type inherit_default_configurations: bool - :param name: + :param name: Test suite name :type name: str - :param parent: - :type parent: :class:`ShallowReference ` - :param query_string: + :param parent: Shallow reference of the parent. + :type parent: :class:`ShallowReference ` + :param query_string: For query based suites, the new query string. :type query_string: str """ @@ -1814,6 +1926,8 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. @@ -1832,6 +1946,7 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -1841,9 +1956,10 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id self.name = name @@ -1856,19 +1972,19 @@ def __init__(self, abbreviation=None, description=None, id=None, name=None, revi class TestAttachment(Model): """TestAttachment. - :param attachment_type: + :param attachment_type: Attachment type. :type attachment_type: object - :param comment: + :param comment: Comment associated with attachment. :type comment: str - :param created_date: + :param created_date: Attachment created date. :type created_date: datetime - :param file_name: + :param file_name: Attachment file name :type file_name: str - :param id: + :param id: ID of the attachment. :type id: int - :param size: + :param size: Attachment size. :type size: long - :param url: + :param url: Attachment Url. :type url: str """ @@ -1896,9 +2012,9 @@ def __init__(self, attachment_type=None, comment=None, created_date=None, file_n class TestAttachmentReference(Model): """TestAttachmentReference. - :param id: + :param id: ID of the attachment. :type id: int - :param url: + :param url: Url to download the attachment. :type url: str """ @@ -1916,13 +2032,13 @@ def __init__(self, id=None, url=None): class TestAttachmentRequestModel(Model): """TestAttachmentRequestModel. - :param attachment_type: + :param attachment_type: Attachment type By Default it will be GeneralAttachment. It can be one of the following type. { GeneralAttachment, AfnStrip, BugFilingData, CodeCoverage, IntermediateCollectorData, RunConfig, TestImpactDetails, TmiTestRunDeploymentFiles, TmiTestRunReverseDeploymentFiles, TmiTestResultDetail, TmiTestRunSummary } :type attachment_type: str - :param comment: + :param comment: Comment associated with attachment :type comment: str - :param file_name: + :param file_name: Attachment filename :type file_name: str - :param stream: + :param stream: Base64 encoded file stream :type stream: str """ @@ -1944,97 +2060,103 @@ def __init__(self, attachment_type=None, comment=None, file_name=None, stream=No class TestCaseResult(Model): """TestCaseResult. - :param afn_strip_id: + :param afn_strip_id: Test attachment ID of action recording. :type afn_strip_id: int - :param area: - :type area: :class:`ShallowReference ` - :param associated_bugs: - :type associated_bugs: list of :class:`ShallowReference ` - :param automated_test_id: + :param area: Reference to area path of test. + :type area: :class:`ShallowReference ` + :param associated_bugs: Reference to bugs linked to test result. + :type associated_bugs: list of :class:`ShallowReference ` + :param automated_test_id: ID representing test method in a dll. :type automated_test_id: str - :param automated_test_name: + :param automated_test_name: Fully qualified name of test executed. :type automated_test_name: str - :param automated_test_storage: + :param automated_test_storage: Container to which test belongs. :type automated_test_storage: str - :param automated_test_type: + :param automated_test_type: Type of automated test. :type automated_test_type: str :param automated_test_type_id: :type automated_test_type_id: str - :param build: - :type build: :class:`ShallowReference ` - :param build_reference: - :type build_reference: :class:`BuildReference ` - :param comment: + :param build: Shallow reference to build associated with test result. + :type build: :class:`ShallowReference ` + :param build_reference: Reference to build associated with test result. + :type build_reference: :class:`BuildReference ` + :param comment: Comment in a test result. :type comment: str - :param completed_date: + :param completed_date: Time when test execution completed. :type completed_date: datetime - :param computer_name: + :param computer_name: Machine name where test executed. :type computer_name: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param created_date: + :param configuration: Test configuration of a test result. + :type configuration: :class:`ShallowReference ` + :param created_date: Timestamp when test result created. :type created_date: datetime - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: + :param custom_fields: Additional properties of test result. + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: Duration of test execution in milliseconds. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in test execution. :type error_message: str - :param failing_since: - :type failing_since: :class:`FailingSince ` - :param failure_type: + :param failing_since: Information when test results started failing. + :type failing_since: :class:`FailingSince ` + :param failure_type: Failure type of test result. :type failure_type: str - :param id: + :param id: ID of a test result. :type id: int - :param iteration_details: - :type iteration_details: list of :class:`TestIterationDetailsModel ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param iteration_details: Test result details of test iterations. + :type iteration_details: list of :class:`TestIterationDetailsModel ` + :param last_updated_by: Reference to identity last updated test result. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated datetime of test result. :type last_updated_date: datetime - :param outcome: + :param outcome: Test outcome of test result. :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param priority: + :param owner: Reference to test owner. + :type owner: :class:`IdentityRef ` + :param priority: Priority of test executed. :type priority: int - :param project: - :type project: :class:`ShallowReference ` - :param release: - :type release: :class:`ShallowReference ` - :param release_reference: - :type release_reference: :class:`ReleaseReference ` + :param project: Reference to team project. + :type project: :class:`ShallowReference ` + :param release: Shallow reference to release associated with test result. + :type release: :class:`ShallowReference ` + :param release_reference: Reference to release associated with test result. + :type release_reference: :class:`ReleaseReference ` :param reset_count: :type reset_count: int - :param resolution_state: + :param resolution_state: Resolution state of test result. :type resolution_state: str - :param resolution_state_id: + :param resolution_state_id: ID of resolution state. :type resolution_state_id: int - :param revision: + :param result_group_type: Hierarchy type of the result, default value of None means its leaf node. + :type result_group_type: object + :param revision: Revision number of test result. :type revision: int - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: + :param run_by: Reference to identity executed the test. + :type run_by: :class:`IdentityRef ` + :param stack_trace: Stacktrace. :type stack_trace: str - :param started_date: + :param started_date: Time when test execution started. :type started_date: datetime - :param state: + :param state: State of test result. :type state: str - :param test_case: - :type test_case: :class:`ShallowReference ` - :param test_case_reference_id: + :param sub_results: List of sub results inside a test result, if ResultGroupType is not None, it holds corresponding type sub results. + :type sub_results: list of :class:`TestSubResult ` + :param test_case: Reference to the test executed. + :type test_case: :class:`ShallowReference ` + :param test_case_reference_id: Reference ID of test used by test result. :type test_case_reference_id: int - :param test_case_title: + :param test_case_revision: Name of test. + :type test_case_revision: int + :param test_case_title: Name of test. :type test_case_title: str - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param test_point: - :type test_point: :class:`ShallowReference ` - :param test_run: - :type test_run: :class:`ShallowReference ` - :param test_suite: - :type test_suite: :class:`ShallowReference ` - :param url: + :param test_plan: Reference to test plan test case workitem is part of. + :type test_plan: :class:`ShallowReference ` + :param test_point: Reference to the test point executed. + :type test_point: :class:`ShallowReference ` + :param test_run: Reference to test run. + :type test_run: :class:`ShallowReference ` + :param test_suite: Reference to test suite test case workitem is part of. + :type test_suite: :class:`ShallowReference ` + :param url: Url of test result. :type url: str """ @@ -2072,13 +2194,16 @@ class TestCaseResult(Model): 'reset_count': {'key': 'resetCount', 'type': 'int'}, 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, + 'result_group_type': {'key': 'resultGroupType', 'type': 'object'}, 'revision': {'key': 'revision', 'type': 'int'}, 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, 'state': {'key': 'state', 'type': 'str'}, + 'sub_results': {'key': 'subResults', 'type': '[TestSubResult]'}, 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_revision': {'key': 'testCaseRevision', 'type': 'int'}, 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, @@ -2087,7 +2212,7 @@ class TestCaseResult(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): + def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, result_group_type=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, sub_results=None, test_case=None, test_case_reference_id=None, test_case_revision=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): super(TestCaseResult, self).__init__() self.afn_strip_id = afn_strip_id self.area = area @@ -2122,13 +2247,16 @@ def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated self.reset_count = reset_count self.resolution_state = resolution_state self.resolution_state_id = resolution_state_id + self.result_group_type = result_group_type self.revision = revision self.run_by = run_by self.stack_trace = stack_trace self.started_date = started_date self.state = state + self.sub_results = sub_results self.test_case = test_case self.test_case_reference_id = test_case_reference_id + self.test_case_revision = test_case_revision self.test_case_title = test_case_title self.test_plan = test_plan self.test_point = test_point @@ -2140,19 +2268,22 @@ def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated class TestCaseResultAttachmentModel(Model): """TestCaseResultAttachmentModel. - :param id: + :param action_path: Path identifier test step in test case workitem. + :type action_path: str + :param id: Attachment ID. :type id: int - :param iteration_id: + :param iteration_id: Iteration ID. :type iteration_id: int - :param name: + :param name: Name of attachment. :type name: str - :param size: + :param size: Attachment size. :type size: long - :param url: + :param url: Url to attachment. :type url: str """ _attribute_map = { + 'action_path': {'key': 'actionPath', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'iteration_id': {'key': 'iterationId', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'}, @@ -2160,8 +2291,9 @@ class TestCaseResultAttachmentModel(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): + def __init__(self, action_path=None, id=None, iteration_id=None, name=None, size=None, url=None): super(TestCaseResultAttachmentModel, self).__init__() + self.action_path = action_path self.id = id self.iteration_id = iteration_id self.name = name @@ -2172,9 +2304,9 @@ def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): class TestCaseResultIdentifier(Model): """TestCaseResultIdentifier. - :param test_result_id: + :param test_result_id: Test result ID. :type test_result_id: int - :param test_run_id: + :param test_run_id: Test run ID. :type test_run_id: int """ @@ -2203,7 +2335,7 @@ class TestCaseResultUpdateModel(Model): :param computer_name: :type computer_name: str :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2213,11 +2345,11 @@ class TestCaseResultUpdateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2227,7 +2359,7 @@ class TestCaseResultUpdateModel(Model): :param test_case_priority: :type test_case_priority: str :param test_result: - :type test_result: :class:`ShallowReference ` + :type test_result: :class:`ShallowReference ` """ _attribute_map = { @@ -2277,7 +2409,7 @@ class TestConfiguration(Model): """TestConfiguration. :param area: Area of the configuration - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param description: Description of the configuration :type description: str :param id: Id of the configuration @@ -2285,13 +2417,13 @@ class TestConfiguration(Model): :param is_default: Is the configuration a default for the test plans :type is_default: bool :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last Updated Data :type last_updated_date: datetime :param name: Name of the configuration :type name: str :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision of the the configuration :type revision: int :param state: State of the configuration @@ -2299,7 +2431,7 @@ class TestConfiguration(Model): :param url: Url of Configuration Resource :type url: str :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` + :type values: list of :class:`NameValuePair ` """ _attribute_map = { @@ -2359,7 +2491,7 @@ class TestFailureDetails(Model): :param count: :type count: int :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` + :type test_results: list of :class:`TestCaseResultIdentifier ` """ _attribute_map = { @@ -2377,13 +2509,13 @@ class TestFailuresAnalysis(Model): """TestFailuresAnalysis. :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` + :type existing_failures: :class:`TestFailureDetails ` :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` + :type fixed_tests: :class:`TestFailureDetails ` :param new_failures: - :type new_failures: :class:`TestFailureDetails ` + :type new_failures: :class:`TestFailureDetails ` :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -2401,30 +2533,78 @@ def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, self.previous_context = previous_context +class TestHistoryQuery(Model): + """TestHistoryQuery. + + :param automated_test_name: Automated test name of the TestCase. + :type automated_test_name: str + :param branch: Results to be get for a particular branches. + :type branch: str + :param build_definition_id: Get the results history only for this BuildDefinationId. This to get used in query GroupBy should be Branch. If this is provided, Branch will have no use. + :type build_definition_id: int + :param continuation_token: It will be filled by server. If not null means there are some results still to be get, and we need to call this REST API with this ContinuousToken. It is not supposed to be created (or altered, if received from server in last batch) by user. + :type continuation_token: str + :param group_by: Group the result on the basis of TestResultGroupBy. This can be Branch, Environment or null(if results are fetched by BuildDefinitionId) + :type group_by: object + :param max_complete_date: History to get between time interval MaxCompleteDate and (MaxCompleteDate - TrendDays). Default is current date time. + :type max_complete_date: datetime + :param release_env_definition_id: Get the results history only for this ReleaseEnvDefinitionId. This to get used in query GroupBy should be Environment. + :type release_env_definition_id: int + :param results_for_group: List of TestResultHistoryForGroup which are grouped by GroupBy + :type results_for_group: list of :class:`TestResultHistoryForGroup ` + :param trend_days: Number of days for which history to collect. Maximum supported value is 7 days. Default is 7 days. + :type trend_days: int + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'branch': {'key': 'branch', 'type': 'str'}, + 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'group_by': {'key': 'groupBy', 'type': 'object'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'release_env_definition_id': {'key': 'releaseEnvDefinitionId', 'type': 'int'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryForGroup]'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, automated_test_name=None, branch=None, build_definition_id=None, continuation_token=None, group_by=None, max_complete_date=None, release_env_definition_id=None, results_for_group=None, trend_days=None): + super(TestHistoryQuery, self).__init__() + self.automated_test_name = automated_test_name + self.branch = branch + self.build_definition_id = build_definition_id + self.continuation_token = continuation_token + self.group_by = group_by + self.max_complete_date = max_complete_date + self.release_env_definition_id = release_env_definition_id + self.results_for_group = results_for_group + self.trend_days = trend_days + + class TestIterationDetailsModel(Model): """TestIterationDetailsModel. - :param action_results: - :type action_results: list of :class:`TestActionResultModel ` - :param attachments: - :type attachments: list of :class:`TestCaseResultAttachmentModel ` - :param comment: + :param action_results: Test step results in an iteration. + :type action_results: list of :class:`TestActionResultModel ` + :param attachments: Refence to attachments in test iteration result. + :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :param comment: Comment in test iteration result. :type comment: str - :param completed_date: + :param completed_date: Time when execution completed. :type completed_date: datetime - :param duration_in_ms: + :param duration_in_ms: Duration of execution. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in test iteration result execution. :type error_message: str - :param id: + :param id: ID of test iteration result. :type id: int - :param outcome: + :param outcome: Test outcome if test iteration result. :type outcome: str - :param parameters: - :type parameters: list of :class:`TestResultParameterModel ` - :param started_date: + :param parameters: Test parameters in an iteration. + :type parameters: list of :class:`TestResultParameterModel ` + :param started_date: Time when execution started. :type started_date: datetime - :param url: + :param url: Url to test iteration result. :type url: str """ @@ -2525,56 +2705,74 @@ def __init__(self, id=None, status=None, url=None): self.url = url +class TestOutcomeSettings(Model): + """TestOutcomeSettings. + + :param sync_outcome_across_suites: Value to configure how test outcomes for the same tests across suites are shown + :type sync_outcome_across_suites: bool + """ + + _attribute_map = { + 'sync_outcome_across_suites': {'key': 'syncOutcomeAcrossSuites', 'type': 'bool'} + } + + def __init__(self, sync_outcome_across_suites=None): + super(TestOutcomeSettings, self).__init__() + self.sync_outcome_across_suites = sync_outcome_across_suites + + class TestPlan(Model): """TestPlan. - :param area: - :type area: :class:`ShallowReference ` + :param area: Area of the test plan. + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` + :type automated_test_settings: :class:`TestSettings ` + :param build: Build to be tested. + :type build: :class:`ShallowReference ` + :param build_definition: The Build Definition that generates a build associated with this test plan. + :type build_definition: :class:`ShallowReference ` :param client_url: :type client_url: str - :param description: + :param description: Description of the test plan. :type description: str - :param end_date: + :param end_date: End date for the test plan. :type end_date: datetime - :param id: + :param id: ID of the test plan. :type id: int - :param iteration: + :param iteration: Iteration path of the test plan. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: + :type manual_test_settings: :class:`TestSettings ` + :param name: Name of the test plan. :type name: str - :param owner: - :type owner: :class:`IdentityRef ` + :param owner: Owner of the test plan. + :type owner: :class:`IdentityRef ` :param previous_build: - :type previous_build: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param revision: + :type previous_build: :class:`ShallowReference ` + :param project: Project which contains the test plan. + :type project: :class:`ShallowReference ` + :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param revision: Revision of the test plan. :type revision: int - :param root_suite: - :type root_suite: :class:`ShallowReference ` - :param start_date: + :param root_suite: Root test suite of the test plan. + :type root_suite: :class:`ShallowReference ` + :param start_date: Start date for the test plan. :type start_date: datetime - :param state: + :param state: State of the test plan. :type state: str + :param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave + :type test_outcome_settings: :class:`TestOutcomeSettings ` :param updated_by: - :type updated_by: :class:`IdentityRef ` + :type updated_by: :class:`IdentityRef ` :param updated_date: :type updated_date: datetime - :param url: + :param url: URL of the test plan resource. :type url: str """ @@ -2600,12 +2798,13 @@ class TestPlan(Model): 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, 'state': {'key': 'state', 'type': 'str'}, + 'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'}, 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, test_outcome_settings=None, updated_by=None, updated_date=None, url=None): super(TestPlan, self).__init__() self.area = area self.automated_test_environment = automated_test_environment @@ -2628,6 +2827,7 @@ def __init__(self, area=None, automated_test_environment=None, automated_test_se self.root_suite = root_suite self.start_date = start_date self.state = state + self.test_outcome_settings = test_outcome_settings self.updated_by = updated_by self.updated_date = updated_date self.url = url @@ -2637,9 +2837,9 @@ class TestPlanCloneRequest(Model): """TestPlanCloneRequest. :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` + :type destination_test_plan: :class:`TestPlan ` :param options: - :type options: :class:`CloneOptions ` + :type options: :class:`CloneOptions ` :param suite_ids: :type suite_ids: list of int """ @@ -2660,49 +2860,51 @@ def __init__(self, destination_test_plan=None, options=None, suite_ids=None): class TestPoint(Model): """TestPoint. - :param assigned_to: - :type assigned_to: :class:`IdentityRef ` - :param automated: + :param assigned_to: AssignedTo. Type IdentityRef. + :type assigned_to: :class:`IdentityRef ` + :param automated: Automated. :type automated: bool - :param comment: + :param comment: Comment associated with test point. :type comment: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param failure_type: + :param configuration: Configuration. Type ShallowReference. + :type configuration: :class:`ShallowReference ` + :param failure_type: Failure type of test point. :type failure_type: str - :param id: + :param id: ID of the test point. :type id: int - :param last_resolution_state_id: + :param last_reset_to_active: Last date when test point was reset to Active. + :type last_reset_to_active: datetime + :param last_resolution_state_id: Last resolution state id of test point. :type last_resolution_state_id: int - :param last_result: - :type last_result: :class:`ShallowReference ` - :param last_result_details: - :type last_result_details: :class:`LastResultDetails ` - :param last_result_state: + :param last_result: Last result of test point. Type ShallowReference. + :type last_result: :class:`ShallowReference ` + :param last_result_details: Last result details of test point. Type LastResultDetails. + :type last_result_details: :class:`LastResultDetails ` + :param last_result_state: Last result state of test point. :type last_result_state: str - :param last_run_build_number: + :param last_run_build_number: LastRun build number of test point. :type last_run_build_number: str - :param last_test_run: - :type last_test_run: :class:`ShallowReference ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_test_run: Last testRun of test point. Type ShallowReference. + :type last_test_run: :class:`ShallowReference ` + :param last_updated_by: Test point last updated by. Type IdentityRef. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date of test point. :type last_updated_date: datetime - :param outcome: + :param outcome: Outcome of test point. :type outcome: str - :param revision: + :param revision: Revision number. :type revision: int - :param state: + :param state: State of test point. :type state: str - :param suite: - :type suite: :class:`ShallowReference ` - :param test_case: - :type test_case: :class:`WorkItemReference ` - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param url: + :param suite: Suite of test point. Type ShallowReference. + :type suite: :class:`ShallowReference ` + :param test_case: TestCase associated to test point. Type WorkItemReference. + :type test_case: :class:`WorkItemReference ` + :param test_plan: TestPlan of test point. Type ShallowReference. + :type test_plan: :class:`ShallowReference ` + :param url: Test point Url. :type url: str - :param work_item_properties: + :param work_item_properties: Work item properties of test point. :type work_item_properties: list of object """ @@ -2713,6 +2915,7 @@ class TestPoint(Model): 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, 'failure_type': {'key': 'failureType', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, + 'last_reset_to_active': {'key': 'lastResetToActive', 'type': 'iso-8601'}, 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, @@ -2731,7 +2934,7 @@ class TestPoint(Model): 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} } - def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): + def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_reset_to_active=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): super(TestPoint, self).__init__() self.assigned_to = assigned_to self.automated = automated @@ -2739,6 +2942,7 @@ def __init__(self, assigned_to=None, automated=None, comment=None, configuration self.configuration = configuration self.failure_type = failure_type self.id = id + self.last_reset_to_active = last_reset_to_active self.last_resolution_state_id = last_resolution_state_id self.last_result = last_result self.last_result_details = last_result_details @@ -2760,13 +2964,13 @@ def __init__(self, assigned_to=None, automated=None, comment=None, configuration class TestPointsQuery(Model): """TestPointsQuery. - :param order_by: + :param order_by: Order by results. :type order_by: str - :param points: - :type points: list of :class:`TestPoint ` - :param points_filter: - :type points_filter: :class:`PointsFilter ` - :param wit_fields: + :param points: List of test points + :type points: list of :class:`TestPoint ` + :param points_filter: Filter + :type points_filter: :class:`PointsFilter ` + :param wit_fields: List of workitem fields to get. :type wit_fields: list of str """ @@ -2793,7 +2997,7 @@ class TestResolutionState(Model): :param name: :type name: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` """ _attribute_map = { @@ -2813,7 +3017,7 @@ class TestResultCreateModel(Model): """TestResultCreateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_work_items: :type associated_work_items: list of int :param automated_test_id: @@ -2833,9 +3037,9 @@ class TestResultCreateModel(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2845,11 +3049,11 @@ class TestResultCreateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2857,13 +3061,13 @@ class TestResultCreateModel(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_priority: :type test_case_priority: str :param test_case_title: :type test_case_title: str :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` """ _attribute_map = { @@ -2929,9 +3133,9 @@ class TestResultDocument(Model): """TestResultDocument. :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` + :type operation_reference: :class:`TestOperationReference ` :param payload: - :type payload: :class:`TestResultPayload ` + :type payload: :class:`TestResultPayload ` """ _attribute_map = { @@ -2951,7 +3155,7 @@ class TestResultHistory(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` """ _attribute_map = { @@ -2971,7 +3175,7 @@ class TestResultHistoryDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param latest_result: - :type latest_result: :class:`TestCaseResult ` + :type latest_result: :class:`TestCaseResult ` """ _attribute_map = { @@ -2985,20 +3189,80 @@ def __init__(self, group_by_value=None, latest_result=None): self.latest_result = latest_result +class TestResultHistoryForGroup(Model): + """TestResultHistoryForGroup. + + :param display_name: Display name of the group. + :type display_name: str + :param group_by_value: Name or Id of the group identifier by which results are grouped together. + :type group_by_value: str + :param results: List of results for GroupByValue + :type results: list of :class:`TestCaseResult ` + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'} + } + + def __init__(self, display_name=None, group_by_value=None, results=None): + super(TestResultHistoryForGroup, self).__init__() + self.display_name = display_name + self.group_by_value = group_by_value + self.results = results + + +class TestResultMetaData(Model): + """TestResultMetaData. + + :param automated_test_name: AutomatedTestName of test result. + :type automated_test_name: str + :param automated_test_storage: AutomatedTestStorage of test result. + :type automated_test_storage: str + :param owner: Owner of test result. + :type owner: str + :param priority: Priority of test result. + :type priority: int + :param test_case_reference_id: ID of TestCaseReference. + :type test_case_reference_id: int + :param test_case_title: TestCaseTitle of test result. + :type test_case_title: str + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'} + } + + def __init__(self, automated_test_name=None, automated_test_storage=None, owner=None, priority=None, test_case_reference_id=None, test_case_title=None): + super(TestResultMetaData, self).__init__() + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.owner = owner + self.priority = priority + self.test_case_reference_id = test_case_reference_id + self.test_case_title = test_case_title + + class TestResultModelBase(Model): """TestResultModelBase. - :param comment: + :param comment: Comment in result. :type comment: str - :param completed_date: + :param completed_date: Time when execution completed. :type completed_date: datetime - :param duration_in_ms: + :param duration_in_ms: Duration of execution. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in result. :type error_message: str - :param outcome: + :param outcome: Test outcome of result. :type outcome: str - :param started_date: + :param started_date: Time when execution started. :type started_date: datetime """ @@ -3024,17 +3288,17 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error class TestResultParameterModel(Model): """TestResultParameterModel. - :param action_path: + :param action_path: Test step path where parameter is referenced. :type action_path: str - :param iteration_id: + :param iteration_id: Iteration ID. :type iteration_id: int - :param parameter_name: + :param parameter_name: Name of parameter. :type parameter_name: str :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str - :param url: + :param url: Url of test parameter. :type url: str - :param value: + :param value: Value of parameter. :type value: str """ @@ -3085,11 +3349,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -3111,7 +3375,7 @@ class TestResultsDetails(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` """ _attribute_map = { @@ -3131,7 +3395,7 @@ class TestResultsDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_count_by_outcome: :type results_count_by_outcome: dict """ @@ -3155,7 +3419,7 @@ class TestResultsGroupsForBuild(Model): :param build_id: BuildId for which groupby result is fetched. :type build_id: int :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` """ _attribute_map = { @@ -3173,7 +3437,7 @@ class TestResultsGroupsForRelease(Model): """TestResultsGroupsForRelease. :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` :param release_env_id: Release Environment Id for which groupby result is fetched. :type release_env_id: int :param release_id: ReleaseId for which groupby result is fetched. @@ -3199,9 +3463,9 @@ class TestResultsQuery(Model): :param fields: :type fields: list of str :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_filter: - :type results_filter: :class:`ResultsFilter ` + :type results_filter: :class:`ResultsFilter ` """ _attribute_map = { @@ -3221,13 +3485,13 @@ class TestResultSummary(Model): """TestResultSummary. :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` :param team_project: - :type team_project: :class:`TeamProjectReference ` + :type team_project: :class:`TeamProjectReference ` :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` + :type test_failures: :class:`TestFailuresAnalysis ` :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -3292,64 +3556,64 @@ def __init__(self, branch_names=None, build_count=None, definition_ids=None, env class TestRun(Model): """TestRun. - :param build: - :type build: :class:`ShallowReference ` - :param build_configuration: - :type build_configuration: :class:`BuildConfiguration ` - :param comment: + :param build: Build associated with this test run. + :type build: :class:`ShallowReference ` + :param build_configuration: Build configuration details associated with this test run. + :type build_configuration: :class:`BuildConfiguration ` + :param comment: Comments entered by those analyzing the run. :type comment: str - :param completed_date: + :param completed_date: Completed date time of the run. :type completed_date: datetime :param controller: :type controller: str :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param drop_location: :type drop_location: str :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` - :param due_date: + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :param due_date: Due date and time for test run. :type due_date: datetime - :param error_message: + :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` - :param id: + :type filter: :class:`RunFilter ` + :param id: ID of the test run. :type id: int :param incomplete_tests: :type incomplete_tests: int - :param is_automated: + :param is_automated: true if test run is automated, false otherwise. :type is_automated: bool - :param iteration: + :param iteration: The iteration to which the run belongs. :type iteration: str - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_updated_by: Team foundation ID of the last updated the test run. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date and time :type last_updated_date: datetime - :param name: + :param name: Name of the test run. :type name: str :param not_applicable_tests: :type not_applicable_tests: int - :param owner: - :type owner: :class:`IdentityRef ` - :param passed_tests: + :param owner: Team Foundation ID of the owner of the runs. + :type owner: :class:`IdentityRef ` + :param passed_tests: Number of passed tests in the run :type passed_tests: int :param phase: :type phase: str - :param plan: - :type plan: :class:`ShallowReference ` + :param plan: Test plan associated with this test run. + :type plan: :class:`ShallowReference ` :param post_process_state: :type post_process_state: str - :param project: - :type project: :class:`ShallowReference ` + :param project: Project associated with this run. + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` :param release_environment_uri: :type release_environment_uri: str :param release_uri: @@ -3357,24 +3621,24 @@ class TestRun(Model): :param revision: :type revision: int :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` - :param started_date: + :type run_statistics: list of :class:`RunStatistic ` + :param started_date: Start date time of the run. :type started_date: datetime - :param state: + :param state: The state of the run. { NotStarted, InProgress, Waiting } :type state: str :param substate: :type substate: object - :param test_environment: - :type test_environment: :class:`TestEnvironment ` + :param test_environment: Test environment associated with the run. + :type test_environment: :class:`TestEnvironment ` :param test_message_log_id: :type test_message_log_id: int :param test_settings: - :type test_settings: :class:`ShallowReference ` - :param total_tests: + :type test_settings: :class:`ShallowReference ` + :param total_tests: Total tests in the run :type total_tests: int :param unanalyzed_tests: :type unanalyzed_tests: int - :param url: + :param url: Url of the test run :type url: str :param web_access_url: :type web_access_url: str @@ -3476,14 +3740,14 @@ def __init__(self, build=None, build_configuration=None, comment=None, completed class TestRunCoverage(Model): """TestRunCoverage. - :param last_error: + :param last_error: Last Error :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: + :param modules: List of Modules Coverage + :type modules: list of :class:`ModuleCoverage ` + :param state: State :type state: str - :param test_run: - :type test_run: :class:`ShallowReference ` + :param test_run: Reference of test Run. + :type test_run: :class:`ShallowReference ` """ _attribute_map = { @@ -3505,9 +3769,9 @@ class TestRunStatistic(Model): """TestRunStatistic. :param run: - :type run: :class:`ShallowReference ` + :type run: :class:`ShallowReference ` :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` """ _attribute_map = { @@ -3525,7 +3789,7 @@ class TestSession(Model): """TestSession. :param area: Area path of the test session - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param comment: Comments in the test session :type comment: str :param end_date: Duration of the session @@ -3533,15 +3797,15 @@ class TestSession(Model): :param id: Id of the test session :type id: int :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` + :type property_bag: :class:`PropertyBag ` :param revision: Revision of the test session :type revision: int :param source: Source of the test session @@ -3633,56 +3897,144 @@ def __init__(self, area_path=None, description=None, is_public=None, machine_rol self.test_settings_name = test_settings_name +class TestSubResult(Model): + """TestSubResult. + + :param comment: Comment in sub result. + :type comment: str + :param completed_date: Time when test execution completed. + :type completed_date: datetime + :param computer_name: Machine where test executed. + :type computer_name: str + :param configuration: Reference to test configuration. + :type configuration: :class:`ShallowReference ` + :param custom_fields: Additional properties of sub result. + :type custom_fields: list of :class:`CustomTestField ` + :param display_name: Name of sub result. + :type display_name: str + :param duration_in_ms: Duration of test execution. + :type duration_in_ms: long + :param error_message: Error message in sub result. + :type error_message: str + :param id: ID of sub result. + :type id: int + :param last_updated_date: Time when result last updated. + :type last_updated_date: datetime + :param outcome: Outcome of sub result. + :type outcome: str + :param parent_id: Immediate parent ID of sub result. + :type parent_id: int + :param result_group_type: Hierarchy type of the result, default value of None means its leaf node. + :type result_group_type: object + :param sequence_id: Index number of sub result. + :type sequence_id: int + :param stack_trace: Stacktrace. + :type stack_trace: str + :param started_date: Time when test execution started. + :type started_date: datetime + :param sub_results: List of sub results inside a sub result, if ResultGroupType is not None, it holds corresponding type sub results. + :type sub_results: list of :class:`TestSubResult ` + :param test_result: Reference to test result. + :type test_result: :class:`TestCaseResultIdentifier ` + :param url: Url of sub result. + :type url: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'long'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'parent_id': {'key': 'parentId', 'type': 'int'}, + 'result_group_type': {'key': 'resultGroupType', 'type': 'object'}, + 'sequence_id': {'key': 'sequenceId', 'type': 'int'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'sub_results': {'key': 'subResults', 'type': '[TestSubResult]'}, + 'test_result': {'key': 'testResult', 'type': 'TestCaseResultIdentifier'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, display_name=None, duration_in_ms=None, error_message=None, id=None, last_updated_date=None, outcome=None, parent_id=None, result_group_type=None, sequence_id=None, stack_trace=None, started_date=None, sub_results=None, test_result=None, url=None): + super(TestSubResult, self).__init__() + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.custom_fields = custom_fields + self.display_name = display_name + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.id = id + self.last_updated_date = last_updated_date + self.outcome = outcome + self.parent_id = parent_id + self.result_group_type = result_group_type + self.sequence_id = sequence_id + self.stack_trace = stack_trace + self.started_date = started_date + self.sub_results = sub_results + self.test_result = test_result + self.url = url + + class TestSuite(Model): """TestSuite. - :param area_uri: + :param area_uri: Area uri of the test suite. :type area_uri: str - :param children: - :type children: list of :class:`TestSuite ` - :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` - :param default_testers: - :type default_testers: list of :class:`ShallowReference ` - :param id: + :param children: Child test suites of current test suite. + :type children: list of :class:`TestSuite ` + :param default_configurations: Test suite default configuration. + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: Test suite default testers. + :type default_testers: list of :class:`ShallowReference ` + :param id: Id of test suite. :type id: int - :param inherit_default_configurations: + :param inherit_default_configurations: Default configuration was inherited or not. :type inherit_default_configurations: bool - :param last_error: + :param last_error: Last error for test suite. :type last_error: str - :param last_populated_date: + :param last_populated_date: Last populated date. :type last_populated_date: datetime - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_updated_by: IdentityRef of user who has updated test suite recently. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last update date. :type last_updated_date: datetime - :param name: + :param name: Name of test suite. :type name: str - :param parent: - :type parent: :class:`ShallowReference ` - :param plan: - :type plan: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param query_string: + :param parent: Test suite parent shallow reference. + :type parent: :class:`ShallowReference ` + :param plan: Test plan to which the test suite belongs. + :type plan: :class:`ShallowReference ` + :param project: Test suite project shallow reference. + :type project: :class:`ShallowReference ` + :param query_string: Test suite query string, for dynamic suites. :type query_string: str - :param requirement_id: + :param requirement_id: Test suite requirement id. :type requirement_id: int - :param revision: + :param revision: Test suite revision. :type revision: int - :param state: + :param state: State of test suite. :type state: str - :param suites: - :type suites: list of :class:`ShallowReference ` - :param suite_type: + :param suites: List of shallow reference of suites. + :type suites: list of :class:`ShallowReference ` + :param suite_type: Test suite type. :type suite_type: str - :param test_case_count: + :param test_case_count: Test cases count. :type test_case_count: int - :param test_cases_url: + :param test_cases_url: Test case url. :type test_cases_url: str - :param text: + :param text: Used in tree view. If test suite is root suite then, it is name of plan otherwise title of the suite. :type text: str - :param url: + :param url: Url of test suite. :type url: str """ @@ -3744,11 +4096,11 @@ def __init__(self, area_uri=None, children=None, default_configurations=None, de class TestSuiteCloneRequest(Model): """TestSuiteCloneRequest. - :param clone_options: - :type clone_options: :class:`CloneOptions ` - :param destination_suite_id: + :param clone_options: Clone options for cloning the test suite. + :type clone_options: :class:`CloneOptions ` + :param destination_suite_id: Suite id under which, we have to clone the suite. :type destination_suite_id: int - :param destination_suite_project_name: + :param destination_suite_project_name: Destination suite project name. :type destination_suite_project_name: str """ @@ -3769,9 +4121,9 @@ class TestSummaryForWorkItem(Model): """TestSummaryForWorkItem. :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` + :type summary: :class:`AggregatedDataForResultTrend ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -3789,9 +4141,9 @@ class TestToWorkItemLinks(Model): """TestToWorkItemLinks. :param test: - :type test: :class:`TestMethod ` + :type test: :class:`TestMethod ` :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -3815,7 +4167,7 @@ class TestVariable(Model): :param name: Name of the test variable :type name: str :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision :type revision: int :param url: Url of the test variable @@ -3880,19 +4232,23 @@ def __init__(self, id=None, name=None, type=None, url=None, web_url=None): class WorkItemToTestLinks(Model): """WorkItemToTestLinks. + :param executed_in: + :type executed_in: object :param tests: - :type tests: list of :class:`TestMethod ` + :type tests: list of :class:`TestMethod ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { + 'executed_in': {'key': 'executedIn', 'type': 'object'}, 'tests': {'key': 'tests', 'type': '[TestMethod]'}, 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} } - def __init__(self, tests=None, work_item=None): + def __init__(self, executed_in=None, tests=None, work_item=None): super(WorkItemToTestLinks, self).__init__() + self.executed_in = executed_in self.tests = tests self.work_item = work_item @@ -3900,27 +4256,27 @@ def __init__(self, tests=None, work_item=None): class TestActionResultModel(TestResultModelBase): """TestActionResultModel. - :param comment: + :param comment: Comment in result. :type comment: str - :param completed_date: + :param completed_date: Time when execution completed. :type completed_date: datetime - :param duration_in_ms: + :param duration_in_ms: Duration of execution. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in result. :type error_message: str - :param outcome: + :param outcome: Test outcome of result. :type outcome: str - :param started_date: + :param started_date: Time when execution started. :type started_date: datetime - :param action_path: + :param action_path: Path identifier test step in test case workitem. :type action_path: str - :param iteration_id: + :param iteration_id: Iteration ID of test action result. :type iteration_id: int - :param shared_step_model: - :type shared_step_model: :class:`SharedStepModel ` + :param shared_step_model: Reference to shared step workitem. + :type shared_step_model: :class:`SharedStepModel ` :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str - :param url: + :param url: Url of test action result. :type url: str """ @@ -3952,6 +4308,7 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', 'AggregatedRunsByState', 'BuildConfiguration', 'BuildCoverage', @@ -3998,6 +4355,7 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'SuiteEntry', 'SuiteEntryUpdateModel', 'SuiteTestCase', + 'SuiteTestCaseUpdateModel', 'SuiteUpdateModel', 'TeamContext', 'TeamProjectReference', @@ -4012,10 +4370,12 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'TestEnvironment', 'TestFailureDetails', 'TestFailuresAnalysis', + 'TestHistoryQuery', 'TestIterationDetailsModel', 'TestMessageLogDetails', 'TestMethod', 'TestOperationReference', + 'TestOutcomeSettings', 'TestPlan', 'TestPlanCloneRequest', 'TestPoint', @@ -4025,6 +4385,8 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'TestResultDocument', 'TestResultHistory', 'TestResultHistoryDetailsForGroup', + 'TestResultHistoryForGroup', + 'TestResultMetaData', 'TestResultModelBase', 'TestResultParameterModel', 'TestResultPayload', @@ -4041,6 +4403,7 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'TestRunStatistic', 'TestSession', 'TestSettings', + 'TestSubResult', 'TestSuite', 'TestSuiteCloneRequest', 'TestSummaryForWorkItem', diff --git a/azure-devops/azure/devops/v4_1/test/test_client.py b/azure-devops/azure/devops/v5_0/test/test_client.py similarity index 60% rename from azure-devops/azure/devops/v4_1/test/test_client.py rename to azure-devops/azure/devops/v5_0/test/test_client.py index ef308f06..74f09613 100644 --- a/azure-devops/azure/devops/v4_1/test/test_client.py +++ b/azure-devops/azure/devops/v5_0/test/test_client.py @@ -27,11 +27,12 @@ def __init__(self, base_url=None, creds=None): def get_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): """GetActionResults. + Gets the action results for an iteration in a test result. :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param str action_path: + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: ID of the iteration that contains the actions. + :param str action_path: Path of a specific action, used to get just that action. :rtype: [TestActionResultModel] """ route_values = {} @@ -47,20 +48,18 @@ def get_action_results(self, project, run_id, test_case_result_id, iteration_id, route_values['actionPath'] = self._serialize.url('action_path', action_path, 'str') response = self._send(http_method='GET', location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[TestActionResultModel]', self._unwrap_collection(response)) - def create_test_iteration_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, iteration_id, action_path=None): - """CreateTestIterationResultAttachment. - [Preview API] - :param :class:` ` attachment_request_model: + def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): + """CreateTestResultAttachment. + [Preview API] Attach a file to a test result. + :param :class:` ` attachment_request_model: Attachment details TestAttachmentRequestModel :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param str action_path: - :rtype: :class:` ` + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result against which attachment has to be uploaded. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -69,28 +68,23 @@ def create_test_iteration_result_attachment(self, attachment_request_model, proj route_values['runId'] = self._serialize.url('run_id', run_id, 'int') if test_case_result_id is not None: route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - query_parameters = {} - if iteration_id is not None: - query_parameters['iterationId'] = self._serialize.query('iteration_id', iteration_id, 'int') - if action_path is not None: - query_parameters['actionPath'] = self._serialize.query('action_path', action_path, 'str') content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') response = self._send(http_method='POST', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, - query_parameters=query_parameters, content=content) return self._deserialize('TestAttachmentReference', response) - def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): - """CreateTestResultAttachment. - [Preview API] - :param :class:` ` attachment_request_model: + def create_test_sub_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, test_sub_result_id): + """CreateTestSubResultAttachment. + [Preview API] Attach a file to a test result + :param :class:` ` attachment_request_model: Attachment Request Model. :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :rtype: :class:` ` + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int test_sub_result_id: ID of the test sub results against which attachment has to be uploaded. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -99,21 +93,25 @@ def create_test_result_attachment(self, attachment_request_model, project, run_i route_values['runId'] = self._serialize.url('run_id', run_id, 'int') if test_case_result_id is not None: route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') response = self._send(http_method='POST', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, + query_parameters=query_parameters, content=content) return self._deserialize('TestAttachmentReference', response) def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id, **kwargs): """GetTestResultAttachmentContent. - [Preview API] Returns a test result attachment + [Preview API] Download a test result attachment by its ID. :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int attachment_id: + :param int run_id: ID of the test run that contains the testCaseResultId. + :param int test_case_result_id: ID of the test result whose attachment has to be downloaded. + :param int attachment_id: ID of the test result attachment to be downloaded. :rtype: object """ route_values = {} @@ -127,7 +125,7 @@ def get_test_result_attachment_content(self, project, run_id, test_case_result_i route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -138,10 +136,10 @@ def get_test_result_attachment_content(self, project, run_id, test_case_result_i def get_test_result_attachments(self, project, run_id, test_case_result_id): """GetTestResultAttachments. - [Preview API] Returns attachment references for test result. + [Preview API] Get list of test result attachments reference. :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result. :rtype: [TestAttachment] """ route_values = {} @@ -153,17 +151,107 @@ def get_test_result_attachments(self, project, run_id, test_case_result_id): route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id, **kwargs): """GetTestResultAttachmentZip. - [Preview API] Returns a test result attachment + [Preview API] Download a test result attachment by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the testCaseResultId. + :param int test_case_result_id: ID of the test result whose attachment has to be downloaded. + :param int attachment_id: ID of the test result attachment to be downloaded. + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_test_sub_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id, test_sub_result_id, **kwargs): + """GetTestSubResultAttachmentContent. + [Preview API] Download a test sub result attachment + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int attachment_id: ID of the test result attachment to be downloaded + :param int test_sub_result_id: ID of the test sub result whose attachment has to be downloaded + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_test_sub_result_attachments(self, project, run_id, test_case_result_id, test_sub_result_id): + """GetTestSubResultAttachments. + [Preview API] Get list of test sub result attachments :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int attachment_id: + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int test_sub_result_id: ID of the test sub result whose attachment has to be downloaded + :rtype: [TestAttachment] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) + + def get_test_sub_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id, test_sub_result_id, **kwargs): + """GetTestSubResultAttachmentZip. + [Preview API] Download a test sub result attachment + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int attachment_id: ID of the test result attachment to be downloaded + :param int test_sub_result_id: ID of the test sub result whose attachment has to be downloaded :rtype: object """ route_values = {} @@ -175,10 +263,14 @@ def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, a route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') if attachment_id is not None: route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') response = self._send(http_method='GET', location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, + query_parameters=query_parameters, accept_media_type='application/zip') if "callback" in kwargs: callback = kwargs["callback"] @@ -188,11 +280,11 @@ def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, a def create_test_run_attachment(self, attachment_request_model, project, run_id): """CreateTestRunAttachment. - [Preview API] - :param :class:` ` attachment_request_model: + [Preview API] Attach a file to a test run. + :param :class:` ` attachment_request_model: Attachment details TestAttachmentRequestModel :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` + :param int run_id: ID of the test run against which attachment has to be uploaded. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -202,17 +294,17 @@ def create_test_run_attachment(self, attachment_request_model, project, run_id): content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') response = self._send(http_method='POST', location_id='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('TestAttachmentReference', response) def get_test_run_attachment_content(self, project, run_id, attachment_id, **kwargs): """GetTestRunAttachmentContent. - [Preview API] Returns a test run attachment + [Preview API] Download a test run attachment by its ID. :param str project: Project ID or project name - :param int run_id: - :param int attachment_id: + :param int run_id: ID of the test run whose attachment has to be downloaded. + :param int attachment_id: ID of the test run attachment to be downloaded. :rtype: object """ route_values = {} @@ -224,7 +316,7 @@ def get_test_run_attachment_content(self, project, run_id, attachment_id, **kwar route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -235,9 +327,9 @@ def get_test_run_attachment_content(self, project, run_id, attachment_id, **kwar def get_test_run_attachments(self, project, run_id): """GetTestRunAttachments. - [Preview API] Returns attachment references for test run. + [Preview API] Get list of test run attachments reference. :param str project: Project ID or project name - :param int run_id: + :param int run_id: ID of the test run. :rtype: [TestAttachment] """ route_values = {} @@ -247,16 +339,16 @@ def get_test_run_attachments(self, project, run_id): route_values['runId'] = self._serialize.url('run_id', run_id, 'int') response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) def get_test_run_attachment_zip(self, project, run_id, attachment_id, **kwargs): """GetTestRunAttachmentZip. - [Preview API] Returns a test run attachment + [Preview API] Download a test run attachment by its ID. :param str project: Project ID or project name - :param int run_id: - :param int attachment_id: + :param int run_id: ID of the test run whose attachment has to be downloaded. + :param int attachment_id: ID of the test run attachment to be downloaded. :rtype: object """ route_values = {} @@ -268,7 +360,7 @@ def get_test_run_attachment_zip(self, project, run_id, attachment_id, **kwargs): route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') response = self._send(http_method='GET', location_id='4f004af4-a507-489c-9b13-cb62060beb11', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, accept_media_type='application/zip') if "callback" in kwargs: @@ -277,34 +369,13 @@ def get_test_run_attachment_zip(self, project, run_id, attachment_id, **kwargs): callback = None return self._client.stream_download(response, callback=callback) - def get_bugs_linked_to_test_result(self, project, run_id, test_case_result_id): - """GetBugsLinkedToTestResult. - [Preview API] - :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :rtype: [WorkItemReference] - """ - 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') - if test_case_result_id is not None: - route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') - response = self._send(http_method='GET', - location_id='6de20ca2-67de-4faf-97fa-38c5d585eb00', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) - def get_clone_information(self, project, clone_operation_id, include_details=None): """GetCloneInformation. - [Preview API] + [Preview API] Get clone information. :param str project: Project ID or project name - :param int clone_operation_id: - :param bool include_details: - :rtype: :class:` ` + :param int clone_operation_id: Operation ID returned when we queue a clone operation + :param bool include_details: If false returns only status of the clone operation information, if true returns complete clone information + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -316,18 +387,18 @@ def get_clone_information(self, project, clone_operation_id, include_details=Non query_parameters['$includeDetails'] = self._serialize.query('include_details', include_details, 'bool') response = self._send(http_method='GET', location_id='5b9d6320-abed-47a5-a151-cd6dc3798be6', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('CloneOperationInformation', response) def clone_test_plan(self, clone_request_body, project, plan_id): """CloneTestPlan. - [Preview API] - :param :class:` ` clone_request_body: + [Preview API] Clone test plan + :param :class:` ` clone_request_body: Plan Clone Request Body detail TestPlanCloneRequest :param str project: Project ID or project name - :param int plan_id: - :rtype: :class:` ` + :param int plan_id: ID of the test plan to be cloned. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -337,19 +408,19 @@ def clone_test_plan(self, clone_request_body, project, plan_id): content = self._serialize.body(clone_request_body, 'TestPlanCloneRequest') response = self._send(http_method='POST', location_id='edc3ef4b-8460-4e86-86fa-8e4f5e9be831', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('CloneOperationInformation', response) def clone_test_suite(self, clone_request_body, project, plan_id, source_suite_id): """CloneTestSuite. - [Preview API] - :param :class:` ` clone_request_body: + [Preview API] Clone test suite + :param :class:` ` clone_request_body: Suite Clone Request Body detail TestSuiteCloneRequest :param str project: Project ID or project name - :param int plan_id: - :param int source_suite_id: - :rtype: :class:` ` + :param int plan_id: ID of the test plan in which suite to be cloned is present + :param int source_suite_id: ID of the test suite to be cloned + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -361,17 +432,17 @@ def clone_test_suite(self, clone_request_body, project, plan_id, source_suite_id content = self._serialize.body(clone_request_body, 'TestSuiteCloneRequest') response = self._send(http_method='POST', location_id='751e4ab5-5bf6-4fb5-9d5d-19ef347662dd', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('CloneOperationInformation', response) def get_build_code_coverage(self, project, build_id, flags): """GetBuildCodeCoverage. - [Preview API] + [Preview API] Get code coverage data for a build. :param str project: Project ID or project name - :param int build_id: - :param int flags: + :param int build_id: ID of the build for which code coverage data needs to be fetched. + :param int flags: Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData. :rtype: [BuildCoverage] """ route_values = {} @@ -384,61 +455,17 @@ def get_build_code_coverage(self, project, build_id, flags): query_parameters['flags'] = self._serialize.query('flags', flags, 'int') response = self._send(http_method='GET', location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[BuildCoverage]', self._unwrap_collection(response)) - def get_code_coverage_summary(self, project, build_id, delta_build_id=None): - """GetCodeCoverageSummary. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param int delta_build_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if delta_build_id is not None: - query_parameters['deltaBuildId'] = self._serialize.query('delta_build_id', delta_build_id, 'int') - response = self._send(http_method='GET', - location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('CodeCoverageSummary', response) - - def update_code_coverage_summary(self, coverage_data, project, build_id): - """UpdateCodeCoverageSummary. - [Preview API] http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary - :param :class:` ` coverage_data: - :param str project: Project ID or project name - :param int build_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - content = self._serialize.body(coverage_data, 'CodeCoverageData') - self._send(http_method='POST', - location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - def get_test_run_code_coverage(self, project, run_id, flags): """GetTestRunCodeCoverage. - [Preview API] + [Preview API] Get code coverage data for a test run :param str project: Project ID or project name - :param int run_id: - :param int flags: + :param int run_id: ID of the test run for which code coverage data needs to be fetched. + :param int flags: Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData. :rtype: [TestRunCoverage] """ route_values = {} @@ -451,17 +478,17 @@ def get_test_run_code_coverage(self, project, run_id, flags): query_parameters['flags'] = self._serialize.query('flags', flags, 'int') response = self._send(http_method='GET', location_id='9629116f-3b89-4ed8-b358-d4694efda160', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestRunCoverage]', self._unwrap_collection(response)) def create_test_configuration(self, test_configuration, project): """CreateTestConfiguration. - [Preview API] - :param :class:` ` test_configuration: + [Preview API] Create a test configuration + :param :class:` ` test_configuration: Test configuration :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -469,16 +496,16 @@ def create_test_configuration(self, test_configuration, project): content = self._serialize.body(test_configuration, 'TestConfiguration') response = self._send(http_method='POST', location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('TestConfiguration', response) def delete_test_configuration(self, project, test_configuration_id): """DeleteTestConfiguration. - [Preview API] + [Preview API] Delete a test configuration :param str project: Project ID or project name - :param int test_configuration_id: + :param int test_configuration_id: ID of the test configuration to get. """ route_values = {} if project is not None: @@ -487,15 +514,15 @@ def delete_test_configuration(self, project, test_configuration_id): route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') self._send(http_method='DELETE', location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values) def get_test_configuration_by_id(self, project, test_configuration_id): """GetTestConfigurationById. - [Preview API] + [Preview API] Get a test configuration :param str project: Project ID or project name - :param int test_configuration_id: - :rtype: :class:` ` + :param int test_configuration_id: ID of the test configuration to get. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -504,18 +531,18 @@ def get_test_configuration_by_id(self, project, test_configuration_id): route_values['testConfigurationId'] = self._serialize.url('test_configuration_id', test_configuration_id, 'int') response = self._send(http_method='GET', location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('TestConfiguration', response) def get_test_configurations(self, project, skip=None, top=None, continuation_token=None, include_all_properties=None): """GetTestConfigurations. - [Preview API] + [Preview API] Get a list of test configurations :param str project: Project ID or project name - :param int skip: - :param int top: - :param str continuation_token: - :param bool include_all_properties: + :param int skip: Number of test configurations to skip. + :param int top: Number of test configurations to return. + :param str continuation_token: If the list of configurations returned is not complete, a continuation token to query next batch of configurations is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test configurations. + :param bool include_all_properties: If true, it returns all properties of the test configurations. Otherwise, it returns the skinny version. :rtype: [TestConfiguration] """ route_values = {} @@ -532,18 +559,18 @@ def get_test_configurations(self, project, skip=None, top=None, continuation_tok query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') response = self._send(http_method='GET', location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestConfiguration]', self._unwrap_collection(response)) def update_test_configuration(self, test_configuration, project, test_configuration_id): """UpdateTestConfiguration. - [Preview API] - :param :class:` ` test_configuration: + [Preview API] Update a test configuration + :param :class:` ` test_configuration: Test configuration :param str project: Project ID or project name - :param int test_configuration_id: - :rtype: :class:` ` + :param int test_configuration_id: ID of the test configuration to update. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -553,75 +580,20 @@ def update_test_configuration(self, test_configuration, project, test_configurat content = self._serialize.body(test_configuration, 'TestConfiguration') response = self._send(http_method='PATCH', location_id='d667591b-b9fd-4263-997a-9a084cca848f', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, content=content) return self._deserialize('TestConfiguration', response) - def add_custom_fields(self, new_fields, project): - """AddCustomFields. - [Preview API] - :param [CustomTestFieldDefinition] new_fields: - :param str project: Project ID or project name - :rtype: [CustomTestFieldDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(new_fields, '[CustomTestFieldDefinition]') - response = self._send(http_method='POST', - location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) - - def query_custom_fields(self, project, scope_filter): - """QueryCustomFields. - [Preview API] - :param str project: Project ID or project name - :param str scope_filter: - :rtype: [CustomTestFieldDefinition] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if scope_filter is not None: - query_parameters['scopeFilter'] = self._serialize.query('scope_filter', scope_filter, 'str') - response = self._send(http_method='GET', - location_id='8ce1923b-f4c7-4e22-b93b-f6284e525ec2', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[CustomTestFieldDefinition]', self._unwrap_collection(response)) - - def query_test_result_history(self, filter, project): - """QueryTestResultHistory. - [Preview API] - :param :class:` ` filter: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(filter, 'ResultsFilter') - response = self._send(http_method='POST', - location_id='234616f5-429c-4e7b-9192-affd76731dfd', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestResultHistory', response) - def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, include_action_results=None): """GetTestIteration. + Get iteration for a result :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param bool include_action_results: - :rtype: :class:` ` + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: Id of the test results Iteration. + :param bool include_action_results: Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -637,17 +609,18 @@ def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') response = self._send(http_method='GET', location_id='73eb9074-3446-4c44-8296-2f811950ff8d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestIterationDetailsModel', response) def get_test_iterations(self, project, run_id, test_case_result_id, include_action_results=None): """GetTestIterations. + Get iterations for a result :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param bool include_action_results: + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param bool include_action_results: Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration. :rtype: [TestIterationDetailsModel] """ route_values = {} @@ -662,54 +635,19 @@ def get_test_iterations(self, project, run_id, test_case_result_id, include_acti query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') response = self._send(http_method='GET', location_id='73eb9074-3446-4c44-8296-2f811950ff8d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestIterationDetailsModel]', self._unwrap_collection(response)) - def get_linked_work_items_by_query(self, work_item_query, project): - """GetLinkedWorkItemsByQuery. - [Preview API] - :param :class:` ` work_item_query: - :param str project: Project ID or project name - :rtype: [LinkedWorkItemsQueryResult] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(work_item_query, 'LinkedWorkItemsQuery') - response = self._send(http_method='POST', - location_id='a4dcb25b-9878-49ea-abfd-e440bd9b1dcd', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[LinkedWorkItemsQueryResult]', self._unwrap_collection(response)) - - def get_test_run_logs(self, project, run_id): - """GetTestRunLogs. - [Preview API] - :param str project: Project ID or project name - :param int run_id: - :rtype: [TestMessageLogDetails] - """ - 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='a1e55200-637e-42e9-a7c0-7e5bfdedb1b3', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[TestMessageLogDetails]', self._unwrap_collection(response)) - def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): """GetResultParameters. + Get a list of parameterized results :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param int iteration_id: - :param str param_name: + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: ID of the iteration that contains the parameterized results. + :param str param_name: Name of the parameter. :rtype: [TestResultParameterModel] """ route_values = {} @@ -726,16 +664,17 @@ def get_result_parameters(self, project, run_id, test_case_result_id, iteration_ query_parameters['paramName'] = self._serialize.query('param_name', param_name, 'str') response = self._send(http_method='GET', location_id='7c69810d-3354-4af3-844a-180bd25db08a', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestResultParameterModel]', self._unwrap_collection(response)) def create_test_plan(self, test_plan, project): """CreateTestPlan. - :param :class:` ` test_plan: + Create a test plan. + :param :class:` ` test_plan: A test plan object. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -743,15 +682,16 @@ def create_test_plan(self, test_plan, project): content = self._serialize.body(test_plan, 'PlanUpdateModel') response = self._send(http_method='POST', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TestPlan', response) def delete_test_plan(self, project, plan_id): """DeleteTestPlan. + Delete a test plan. :param str project: Project ID or project name - :param int plan_id: + :param int plan_id: ID of the test plan to be deleted. """ route_values = {} if project is not None: @@ -760,14 +700,15 @@ def delete_test_plan(self, project, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') self._send(http_method='DELETE', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1', + version='5.0', route_values=route_values) def get_plan_by_id(self, project, plan_id): """GetPlanById. + Get test plan by ID. :param str project: Project ID or project name - :param int plan_id: - :rtype: :class:` ` + :param int plan_id: ID of the test plan to return. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -776,18 +717,19 @@ def get_plan_by_id(self, project, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') response = self._send(http_method='GET', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TestPlan', response) def get_plans(self, project, owner=None, skip=None, top=None, include_plan_details=None, filter_active_plans=None): """GetPlans. + Get a list of test plans. :param str project: Project ID or project name - :param str owner: - :param int skip: - :param int top: - :param bool include_plan_details: - :param bool filter_active_plans: + :param str owner: Filter for test plan by owner ID or name. + :param int skip: Number of test plans to skip. + :param int top: Number of test plans to return. + :param bool include_plan_details: Get all properties of the test plan. + :param bool filter_active_plans: Get just the active plans. :rtype: [TestPlan] """ route_values = {} @@ -806,17 +748,18 @@ def get_plans(self, project, owner=None, skip=None, top=None, include_plan_detai query_parameters['filterActivePlans'] = self._serialize.query('filter_active_plans', filter_active_plans, 'bool') response = self._send(http_method='GET', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestPlan]', self._unwrap_collection(response)) def update_test_plan(self, plan_update_model, project, plan_id): """UpdateTestPlan. - :param :class:` ` plan_update_model: + Update a test plan. + :param :class:` ` plan_update_model: :param str project: Project ID or project name - :param int plan_id: - :rtype: :class:` ` + :param int plan_id: ID of the test plan to be updated. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -826,19 +769,20 @@ def update_test_plan(self, plan_update_model, project, plan_id): content = self._serialize.body(plan_update_model, 'PlanUpdateModel') response = self._send(http_method='PATCH', location_id='51712106-7278-4208-8563-1c96f40cf5e4', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TestPlan', response) def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): """GetPoint. + Get a test point. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param int point_ids: - :param str wit_fields: - :rtype: :class:` ` + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the point. + :param int point_ids: ID of the test point to get. + :param str wit_fields: Comma-separated list of work item field names. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -854,23 +798,24 @@ def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') response = self._send(http_method='GET', location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestPoint', response) def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_id=None, test_case_id=None, test_point_ids=None, include_point_details=None, skip=None, top=None): """GetPoints. - :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str wit_fields: - :param str configuration_id: - :param str test_case_id: - :param str test_point_ids: - :param bool include_point_details: - :param int skip: - :param int top: + Get a list of test points. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the points. + :param str wit_fields: Comma-separated list of work item field names. + :param str configuration_id: Get test points for specific configuration. + :param str test_case_id: Get test points for a specific test case, valid when configurationId is not set. + :param str test_point_ids: Get test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set. + :param bool include_point_details: Include all properties for the test point. + :param int skip: Number of test points to skip.. + :param int top: Number of test points to return. :rtype: [TestPoint] """ route_values = {} @@ -897,18 +842,19 @@ def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_ query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestPoint]', self._unwrap_collection(response)) def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): """UpdateTestPoints. - :param :class:` ` point_update_model: + Update test points. + :param :class:` ` point_update_model: Data to update. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str point_ids: + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the points. + :param str point_ids: ID of the test point to get. Use a comma-separated list of IDs to update multiple test points. :rtype: [TestPoint] """ route_values = {} @@ -923,19 +869,19 @@ def update_test_points(self, point_update_model, project, plan_id, suite_id, poi content = self._serialize.body(point_update_model, 'PointUpdateModel') response = self._send(http_method='PATCH', location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[TestPoint]', self._unwrap_collection(response)) def get_points_by_query(self, query, project, skip=None, top=None): """GetPointsByQuery. - [Preview API] - :param :class:` ` query: + [Preview API] Get test points using query. + :param :class:` ` query: TestPointsQuery to get test points. :param str project: Project ID or project name - :param int skip: - :param int top: - :rtype: :class:` ` + :param int skip: Number of test points to skip.. + :param int top: Number of test points to return. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -948,190 +894,33 @@ def get_points_by_query(self, query, project, skip=None, top=None): content = self._serialize.body(query, 'TestPointsQuery') response = self._send(http_method='POST', location_id='b4264fd0-a5d1-43e2-82a5-b9c46b7da9ce', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('TestPointsQuery', response) - def get_test_result_details_for_build(self, project, build_id, publish_context=None, group_by=None, filter=None, orderby=None, should_include_results=None, query_run_summary_for_in_progress=None): - """GetTestResultDetailsForBuild. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param str publish_context: - :param str group_by: - :param str filter: - :param str orderby: - :param bool should_include_results: - :param bool query_run_summary_for_in_progress: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if group_by is not None: - query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') - if should_include_results is not None: - query_parameters['shouldIncludeResults'] = self._serialize.query('should_include_results', should_include_results, 'bool') - if query_run_summary_for_in_progress is not None: - query_parameters['queryRunSummaryForInProgress'] = self._serialize.query('query_run_summary_for_in_progress', query_run_summary_for_in_progress, 'bool') - response = self._send(http_method='GET', - location_id='efb387b0-10d5-42e7-be40-95e06ee9430f', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultsDetails', response) - - def get_test_result_details_for_release(self, project, release_id, release_env_id, publish_context=None, group_by=None, filter=None, orderby=None, should_include_results=None, query_run_summary_for_in_progress=None): - """GetTestResultDetailsForRelease. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int release_env_id: - :param str publish_context: - :param str group_by: - :param str filter: - :param str orderby: - :param bool should_include_results: - :param bool query_run_summary_for_in_progress: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if release_id is not None: - query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') - if release_env_id is not None: - query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if group_by is not None: - query_parameters['groupBy'] = self._serialize.query('group_by', group_by, 'str') - if filter is not None: - query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') - if should_include_results is not None: - query_parameters['shouldIncludeResults'] = self._serialize.query('should_include_results', should_include_results, 'bool') - if query_run_summary_for_in_progress is not None: - query_parameters['queryRunSummaryForInProgress'] = self._serialize.query('query_run_summary_for_in_progress', query_run_summary_for_in_progress, 'bool') - response = self._send(http_method='GET', - location_id='b834ec7e-35bb-450f-a3c8-802e70ca40dd', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultsDetails', response) - - def publish_test_result_document(self, document, project, run_id): - """PublishTestResultDocument. - [Preview API] - :param :class:` ` document: - :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` - """ - 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') - content = self._serialize.body(document, 'TestResultDocument') - response = self._send(http_method='POST', - location_id='370ca04b-8eec-4ca8-8ba3-d24dca228791', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('TestResultDocument', response) - - def get_result_groups_by_build(self, project, build_id, publish_context, fields=None): - """GetResultGroupsByBuild. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param str publish_context: - :param [str] fields: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if fields is not None: - fields = ",".join(fields) - query_parameters['fields'] = self._serialize.query('fields', fields, 'str') - response = self._send(http_method='GET', - location_id='d279d052-c55a-4204-b913-42f733b52958', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultsGroupsForBuild', response) - - def get_result_groups_by_release(self, project, release_id, publish_context, release_env_id=None, fields=None): - """GetResultGroupsByRelease. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param str publish_context: - :param int release_env_id: - :param [str] fields: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if release_id is not None: - query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if release_env_id is not None: - query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') - if fields is not None: - fields = ",".join(fields) - query_parameters['fields'] = self._serialize.query('fields', fields, 'str') - response = self._send(http_method='GET', - location_id='ef5ce5d4-a4e5-47ee-804c-354518f8d03f', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultsGroupsForRelease', response) - def get_result_retention_settings(self, project): """GetResultRetentionSettings. - [Preview API] + [Preview API] Get test result retention settings :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ResultRetentionSettings', response) def update_result_retention_settings(self, retention_settings, project): """UpdateResultRetentionSettings. - [Preview API] - :param :class:` ` retention_settings: + [Preview API] Update test result retention settings + :param :class:` ` retention_settings: Test result retention settings details to be updated :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1139,16 +928,17 @@ def update_result_retention_settings(self, retention_settings, project): content = self._serialize.body(retention_settings, 'ResultRetentionSettings') response = self._send(http_method='PATCH', location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('ResultRetentionSettings', response) def add_test_results_to_test_run(self, results, project, run_id): """AddTestResultsToTestRun. - :param [TestCaseResult] results: + Add test results to a test run. + :param [TestCaseResult] results: List of test results to add. :param str project: Project ID or project name - :param int run_id: + :param int run_id: Test run ID into which test results to add. :rtype: [TestCaseResult] """ route_values = {} @@ -1159,18 +949,19 @@ def add_test_results_to_test_run(self, results, project, run_id): content = self._serialize.body(results, '[TestCaseResult]') response = self._send(http_method='POST', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): """GetTestResultById. + Get a test result for a test run. :param str project: Project ID or project name - :param int run_id: - :param int test_case_result_id: - :param str details_to_include: - :rtype: :class:` ` + :param int run_id: Test run ID of a test result to fetch. + :param int test_case_result_id: Test result ID. + :param str details_to_include: Details to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1184,20 +975,20 @@ def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') response = self._send(http_method='GET', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestCaseResult', response) def get_test_results(self, project, run_id, details_to_include=None, skip=None, top=None, outcomes=None): """GetTestResults. - Get Test Results for a run based on filters. + Get test results for a test run. :param str project: Project ID or project name - :param int run_id: Test Run Id for which results need to be fetched. - :param str details_to_include: enum indicates details need to be fetched. - :param int skip: Number of results to skip from beginning. - :param int top: Number of results to return. Max is 1000 when detailsToInclude is None and 100 otherwise. - :param [TestOutcome] outcomes: List of Testoutcome to filter results, comma seperated list of Testoutcome. + :param int run_id: Test run ID of test results to fetch. + :param str details_to_include: Details to include with test results. Default is None. Other values are Iterations and WorkItems. + :param int skip: Number of test results to skip from beginning. + :param int top: Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise. + :param [TestOutcome] outcomes: Comma separated list of test outcomes to filter test results. :rtype: [TestCaseResult] """ route_values = {} @@ -1217,16 +1008,17 @@ def get_test_results(self, project, run_id, details_to_include=None, skip=None, query_parameters['outcomes'] = self._serialize.query('outcomes', outcomes, 'str') response = self._send(http_method='GET', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) def update_test_results(self, results, project, run_id): """UpdateTestResults. - :param [TestCaseResult] results: + Update test results in a test run. + :param [TestCaseResult] results: List of test results to update. :param str project: Project ID or project name - :param int run_id: + :param int run_id: Test run ID whose test results to update. :rtype: [TestCaseResult] """ route_values = {} @@ -1237,199 +1029,17 @@ def update_test_results(self, results, project, run_id): content = self._serialize.body(results, '[TestCaseResult]') response = self._send(http_method='PATCH', location_id='4637d869-3a76-4468-8057-0bb02aa385cf', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) - def get_test_results_by_query(self, query, project): - """GetTestResultsByQuery. - [Preview API] - :param :class:` ` query: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(query, 'TestResultsQuery') - response = self._send(http_method='POST', - location_id='6711da49-8e6f-4d35-9f73-cef7a3c81a5b', - version='4.1-preview.4', - route_values=route_values, - content=content) - return self._deserialize('TestResultsQuery', response) - - def query_test_results_report_for_build(self, project, build_id, publish_context=None, include_failure_details=None, build_to_compare=None): - """QueryTestResultsReportForBuild. - [Preview API] - :param str project: Project ID or project name - :param int build_id: - :param str publish_context: - :param bool include_failure_details: - :param :class:` ` build_to_compare: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if build_id is not None: - query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if include_failure_details is not None: - query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') - if build_to_compare is not None: - if build_to_compare.id is not None: - query_parameters['buildToCompare.id'] = build_to_compare.id - if build_to_compare.definition_id is not None: - query_parameters['buildToCompare.definitionId'] = build_to_compare.definition_id - if build_to_compare.number is not None: - query_parameters['buildToCompare.number'] = build_to_compare.number - if build_to_compare.uri is not None: - query_parameters['buildToCompare.uri'] = build_to_compare.uri - if build_to_compare.build_system is not None: - query_parameters['buildToCompare.buildSystem'] = build_to_compare.build_system - if build_to_compare.branch_name is not None: - query_parameters['buildToCompare.branchName'] = build_to_compare.branch_name - if build_to_compare.repository_id is not None: - query_parameters['buildToCompare.repositoryId'] = build_to_compare.repository_id - response = self._send(http_method='GET', - location_id='000ef77b-fea2-498d-a10d-ad1a037f559f', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultSummary', response) - - def query_test_results_report_for_release(self, project, release_id, release_env_id, publish_context=None, include_failure_details=None, release_to_compare=None): - """QueryTestResultsReportForRelease. - [Preview API] - :param str project: Project ID or project name - :param int release_id: - :param int release_env_id: - :param str publish_context: - :param bool include_failure_details: - :param :class:` ` release_to_compare: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if release_id is not None: - query_parameters['releaseId'] = self._serialize.query('release_id', release_id, 'int') - if release_env_id is not None: - query_parameters['releaseEnvId'] = self._serialize.query('release_env_id', release_env_id, 'int') - if publish_context is not None: - query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') - if include_failure_details is not None: - query_parameters['includeFailureDetails'] = self._serialize.query('include_failure_details', include_failure_details, 'bool') - if release_to_compare is not None: - if release_to_compare.id is not None: - query_parameters['releaseToCompare.id'] = release_to_compare.id - if release_to_compare.name is not None: - query_parameters['releaseToCompare.name'] = release_to_compare.name - if release_to_compare.environment_id is not None: - query_parameters['releaseToCompare.environmentId'] = release_to_compare.environment_id - if release_to_compare.environment_name is not None: - query_parameters['releaseToCompare.environmentName'] = release_to_compare.environment_name - if release_to_compare.definition_id is not None: - query_parameters['releaseToCompare.definitionId'] = release_to_compare.definition_id - if release_to_compare.environment_definition_id is not None: - query_parameters['releaseToCompare.environmentDefinitionId'] = release_to_compare.environment_definition_id - if release_to_compare.environment_definition_name is not None: - query_parameters['releaseToCompare.environmentDefinitionName'] = release_to_compare.environment_definition_name - response = self._send(http_method='GET', - location_id='85765790-ac68-494e-b268-af36c3929744', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestResultSummary', response) - - def query_test_results_summary_for_releases(self, releases, project): - """QueryTestResultsSummaryForReleases. - [Preview API] - :param [ReleaseReference] releases: - :param str project: Project ID or project name - :rtype: [TestResultSummary] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(releases, '[ReleaseReference]') - response = self._send(http_method='POST', - location_id='85765790-ac68-494e-b268-af36c3929744', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[TestResultSummary]', self._unwrap_collection(response)) - - def query_test_summary_by_requirement(self, results_context, project, work_item_ids=None): - """QueryTestSummaryByRequirement. - [Preview API] - :param :class:` ` results_context: - :param str project: Project ID or project name - :param [int] work_item_ids: - :rtype: [TestSummaryForWorkItem] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if work_item_ids is not None: - work_item_ids = ",".join(map(str, work_item_ids)) - query_parameters['workItemIds'] = self._serialize.query('work_item_ids', work_item_ids, 'str') - content = self._serialize.body(results_context, 'TestResultsContext') - response = self._send(http_method='POST', - location_id='cd08294e-308d-4460-a46e-4cfdefba0b4b', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('[TestSummaryForWorkItem]', self._unwrap_collection(response)) - - def query_result_trend_for_build(self, filter, project): - """QueryResultTrendForBuild. - [Preview API] - :param :class:` ` filter: - :param str project: Project ID or project name - :rtype: [AggregatedDataForResultTrend] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(filter, 'TestResultTrendFilter') - response = self._send(http_method='POST', - location_id='fbc82a85-0786-4442-88bb-eb0fda6b01b0', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) - - def query_result_trend_for_release(self, filter, project): - """QueryResultTrendForRelease. - [Preview API] - :param :class:` ` filter: - :param str project: Project ID or project name - :rtype: [AggregatedDataForResultTrend] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(filter, 'TestResultTrendFilter') - response = self._send(http_method='POST', - location_id='dd178e93-d8dd-4887-9635-d6b9560b7b6e', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('[AggregatedDataForResultTrend]', self._unwrap_collection(response)) - def get_test_run_statistics(self, project, run_id): """GetTestRunStatistics. + Get test run statistics :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` + :param int run_id: ID of the run to get. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1438,15 +1048,16 @@ def get_test_run_statistics(self, project, run_id): route_values['runId'] = self._serialize.url('run_id', run_id, 'int') response = self._send(http_method='GET', location_id='0a42c424-d764-4a16-a2d5-5c85f87d0ae8', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TestRunStatistic', response) def create_test_run(self, test_run, project): """CreateTestRun. - :param :class:` ` test_run: + Create new test run. + :param :class:` ` test_run: Run details RunCreateModel :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1454,15 +1065,16 @@ def create_test_run(self, test_run, project): content = self._serialize.body(test_run, 'RunCreateModel') response = self._send(http_method='POST', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TestRun', response) def delete_test_run(self, project, run_id): """DeleteTestRun. + Delete a test run by its ID. :param str project: Project ID or project name - :param int run_id: + :param int run_id: ID of the run to delete. """ route_values = {} if project is not None: @@ -1471,37 +1083,44 @@ def delete_test_run(self, project, run_id): route_values['runId'] = self._serialize.url('run_id', run_id, 'int') self._send(http_method='DELETE', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1', + version='5.0', route_values=route_values) - def get_test_run_by_id(self, project, run_id): + def get_test_run_by_id(self, project, run_id, include_details=None): """GetTestRunById. + Get a test run by its ID. :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` + :param int run_id: ID of the run to get. + :param bool include_details: Defualt value is true. It includes details like run statistics,release,build,Test enviornment,Post process state and more + :rtype: :class:` ` """ 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') + query_parameters = {} + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') response = self._send(http_method='GET', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1', - route_values=route_values) + version='5.0', + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('TestRun', response) def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, plan_id=None, include_run_details=None, automated=None, skip=None, top=None): """GetTestRuns. + Get a list of test runs. :param str project: Project ID or project name - :param str build_uri: - :param str owner: + :param str build_uri: URI of the build that the runs used. + :param str owner: Team foundation ID of the owner of the runs. :param str tmi_run_id: - :param int plan_id: - :param bool include_run_details: - :param bool automated: - :param int skip: - :param int top: + :param int plan_id: ID of the test plan that the runs are a part of. + :param bool include_run_details: If true, include all the properties of the runs. + :param bool automated: If true, only returns automated runs. + :param int skip: Number of test runs to skip. + :param int top: Number of test runs to return. :rtype: [TestRun] """ route_values = {} @@ -1526,31 +1145,31 @@ def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, pl query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestRun]', self._unwrap_collection(response)) def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, state=None, plan_ids=None, is_automated=None, publish_context=None, build_ids=None, build_def_ids=None, branch_name=None, release_ids=None, release_def_ids=None, release_env_ids=None, release_env_def_ids=None, run_title=None, top=None, continuation_token=None): """QueryTestRuns. - Query Test Runs based on filters. + Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate. :param str project: Project ID or project name :param datetime min_last_updated_date: Minimum Last Modified Date of run to be queried (Mandatory). :param datetime max_last_updated_date: Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days). :param str state: Current state of the Runs to be queried. - :param [int] plan_ids: Plan Ids of the Runs to be queried, comma seperated list of valid ids. + :param [int] plan_ids: Plan Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). :param bool is_automated: Automation type of the Runs to be queried. :param str publish_context: PublishContext of the Runs to be queried. - :param [int] build_ids: Build Ids of the Runs to be queried, comma seperated list of valid ids. - :param [int] build_def_ids: Build Definition Ids of the Runs to be queried, comma seperated list of valid ids. + :param [int] build_ids: Build Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] build_def_ids: Build Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). :param str branch_name: Source Branch name of the Runs to be queried. - :param [int] release_ids: Release Ids of the Runs to be queried, comma seperated list of valid ids. - :param [int] release_def_ids: Release Definition Ids of the Runs to be queried, comma seperated list of valid ids. - :param [int] release_env_ids: Release Environment Ids of the Runs to be queried, comma seperated list of valid ids. - :param [int] release_env_def_ids: Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids. + :param [int] release_ids: Release Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_def_ids: Release Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_env_ids: Release Environment Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_env_def_ids: Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). :param str run_title: Run Title of the Runs to be queried. :param int top: Number of runs to be queried. Limit is 100 - :param str continuation_token: continuationToken received from previous batch or null for first batch. + :param str continuation_token: continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user. :rtype: [TestRun] """ route_values = {} @@ -1598,17 +1217,18 @@ def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') response = self._send(http_method='GET', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestRun]', self._unwrap_collection(response)) def update_test_run(self, run_update_model, project, run_id): """UpdateTestRun. - :param :class:` ` run_update_model: + Update test run by its ID. + :param :class:` ` run_update_model: Run details RunUpdateModel :param str project: Project ID or project name - :param int run_id: - :rtype: :class:` ` + :param int run_id: ID of the run to update. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1618,17 +1238,17 @@ def update_test_run(self, run_update_model, project, run_id): content = self._serialize.body(run_update_model, 'RunUpdateModel') response = self._send(http_method='PATCH', location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TestRun', response) def create_test_session(self, test_session, team_context): """CreateTestSession. - [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Create a test session + :param :class:` ` test_session: Test session details for creation + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1650,20 +1270,20 @@ def create_test_session(self, test_session, team_context): content = self._serialize.body(test_session, 'TestSession') response = self._send(http_method='POST', location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('TestSession', response) def get_test_sessions(self, team_context, period=None, all_sessions=None, include_all_properties=None, source=None, include_only_completed_sessions=None): """GetTestSessions. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :param int period: - :param bool all_sessions: - :param bool include_all_properties: - :param str source: - :param bool include_only_completed_sessions: + [Preview API] Get a list of test sessions + :param :class:` ` team_context: The team context for the operation + :param int period: Period in days from now, for which test sessions are fetched. + :param bool all_sessions: If false, returns test sessions for current user. Otherwise, it returns test sessions for all users + :param bool include_all_properties: If true, it returns all properties of the test sessions. Otherwise, it returns the skinny version. + :param str source: Source of the test session. + :param bool include_only_completed_sessions: If true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states :rtype: [TestSession] """ project = None @@ -1696,17 +1316,17 @@ def get_test_sessions(self, team_context, period=None, all_sessions=None, includ query_parameters['includeOnlyCompletedSessions'] = self._serialize.query('include_only_completed_sessions', include_only_completed_sessions, 'bool') response = self._send(http_method='GET', location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestSession]', self._unwrap_collection(response)) def update_test_session(self, test_session, team_context): """UpdateTestSession. - [Preview API] - :param :class:` ` test_session: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Update a test session + :param :class:` ` test_session: Test session details for update + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1728,48 +1348,16 @@ def update_test_session(self, test_session, team_context): content = self._serialize.body(test_session, 'TestSession') response = self._send(http_method='PATCH', location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('TestSession', response) - def delete_shared_parameter(self, project, shared_parameter_id): - """DeleteSharedParameter. - [Preview API] - :param str project: Project ID or project name - :param int shared_parameter_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if shared_parameter_id is not None: - route_values['sharedParameterId'] = self._serialize.url('shared_parameter_id', shared_parameter_id, 'int') - self._send(http_method='DELETE', - location_id='8300eeca-0f8c-4eff-a089-d2dda409c41f', - version='4.1-preview.1', - route_values=route_values) - - def delete_shared_step(self, project, shared_step_id): - """DeleteSharedStep. - [Preview API] - :param str project: Project ID or project name - :param int shared_step_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if shared_step_id is not None: - route_values['sharedStepId'] = self._serialize.url('shared_step_id', shared_step_id, 'int') - self._send(http_method='DELETE', - location_id='fabb3cc9-e3f8-40b7-8b62-24cc4b73fccf', - version='4.1-preview.1', - route_values=route_values) - def get_suite_entries(self, project, suite_id): """GetSuiteEntries. - [Preview API] + [Preview API] Get a list of test suite entries in the test suite. :param str project: Project ID or project name - :param int suite_id: + :param int suite_id: Id of the parent suite. :rtype: [SuiteEntry] """ route_values = {} @@ -1779,16 +1367,16 @@ def get_suite_entries(self, project, suite_id): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') response = self._send(http_method='GET', location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) def reorder_suite_entries(self, suite_entries, project, suite_id): """ReorderSuiteEntries. - [Preview API] - :param [SuiteEntryUpdateModel] suite_entries: + [Preview API] Reorder test suite entries in the test suite. + :param [SuiteEntryUpdateModel] suite_entries: List of SuiteEntryUpdateModel to reorder. :param str project: Project ID or project name - :param int suite_id: + :param int suite_id: Id of the parent test suite. :rtype: [SuiteEntry] """ route_values = {} @@ -1799,17 +1387,18 @@ def reorder_suite_entries(self, suite_entries, project, suite_id): content = self._serialize.body(suite_entries, '[SuiteEntryUpdateModel]') response = self._send(http_method='PATCH', location_id='bf8b7f78-0c1f-49cb-89e9-d1a17bcaaad3', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('[SuiteEntry]', self._unwrap_collection(response)) def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): """AddTestCasesToSuite. + Add test cases to suite. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str test_case_ids: + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to which the test cases must be added. + :param str test_case_ids: IDs of the test cases to add to the suite. Ids are specified in comma separated format. :rtype: [SuiteTestCase] """ route_values = {} @@ -1824,17 +1413,18 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): route_values['action'] = 'TestCases' response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): """GetTestCaseById. + Get a specific test case in a test suite with test case id. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param int test_case_ids: - :rtype: :class:` ` + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite that contains the test case. + :param int test_case_ids: ID of the test case to get. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1848,15 +1438,16 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('SuiteTestCase', response) def get_test_cases(self, project, plan_id, suite_id): """GetTestCases. + Get all test cases in a suite. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite to get. :rtype: [SuiteTestCase] """ route_values = {} @@ -1869,16 +1460,17 @@ def get_test_cases(self, project, plan_id, suite_id): route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): """RemoveTestCasesFromSuiteUrl. + The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param str test_case_ids: + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the suite to get. + :param str test_case_ids: IDs of the test cases to remove from the suite. """ route_values = {} if project is not None: @@ -1892,15 +1484,44 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case route_values['action'] = 'TestCases' self._send(http_method='DELETE', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', - version='4.1', + version='5.0', route_values=route_values) + def update_suite_test_cases(self, suite_test_case_update_model, project, plan_id, suite_id, test_case_ids): + """UpdateSuiteTestCases. + Updates the properties of the test case association in a suite. + :param :class:` ` suite_test_case_update_model: Model for updation of the properties of test case suite association. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to which the test cases must be added. + :param str test_case_ids: IDs of the test cases to add to the suite. Ids are specified in comma separated format. + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' + content = self._serialize.body(suite_test_case_update_model, 'SuiteTestCaseUpdateModel') + response = self._send(http_method='PATCH', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) + def create_test_suite(self, test_suite, project, plan_id, suite_id): """CreateTestSuite. - :param :class:` ` test_suite: + Create a test suite. + :param :class:` ` test_suite: Test suite data. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the parent suite. :rtype: [TestSuite] """ route_values = {} @@ -1913,16 +1534,17 @@ def create_test_suite(self, test_suite, project, plan_id, suite_id): content = self._serialize.body(test_suite, 'SuiteCreateModel') response = self._send(http_method='POST', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def delete_test_suite(self, project, plan_id, suite_id): """DeleteTestSuite. + Delete test suite. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to delete. """ route_values = {} if project is not None: @@ -1933,16 +1555,17 @@ def delete_test_suite(self, project, plan_id, suite_id): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') self._send(http_method='DELETE', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1', + version='5.0', route_values=route_values) def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): """GetTestSuiteById. + Get test suite by suite id. :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :param int expand: - :rtype: :class:` ` + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite to get. + :param int expand: Include the children suites and testers details + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1956,19 +1579,20 @@ def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'int') response = self._send(http_method='GET', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TestSuite', response) def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top=None, as_tree_view=None): """GetTestSuitesForPlan. + Get test suites for plan. :param str project: Project ID or project name - :param int plan_id: - :param int expand: - :param int skip: - :param int top: - :param bool as_tree_view: + :param int plan_id: ID of the test plan for which suites are requested. + :param int expand: Include the children suites and testers details. + :param int skip: Number of suites to skip from the result. + :param int top: Number of Suites to be return after skipping the suites from the result. + :param bool as_tree_view: If the suites returned should be in a tree structure. :rtype: [TestSuite] """ route_values = {} @@ -1987,18 +1611,19 @@ def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top query_parameters['$asTreeView'] = self._serialize.query('as_tree_view', as_tree_view, 'bool') response = self._send(http_method='GET', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def update_test_suite(self, suite_update_model, project, plan_id, suite_id): """UpdateTestSuite. - :param :class:` ` suite_update_model: + Update a test suite. + :param :class:` ` suite_update_model: Suite Model to update :param str project: Project ID or project name - :param int plan_id: - :param int suite_id: - :rtype: :class:` ` + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite to update. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2010,14 +1635,15 @@ def update_test_suite(self, suite_update_model, project, plan_id, suite_id): content = self._serialize.body(suite_update_model, 'SuiteUpdateModel') response = self._send(http_method='PATCH', location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TestSuite', response) def get_suites_by_test_case_id(self, test_case_id): """GetSuitesByTestCaseId. - :param int test_case_id: + 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 = {} @@ -2025,15 +1651,15 @@ def get_suites_by_test_case_id(self, test_case_id): query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int') response = self._send(http_method='GET', location_id='09a6167b-e969-4775-9247-b94cf3819caf', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[TestSuite]', self._unwrap_collection(response)) def delete_test_case(self, project, test_case_id): """DeleteTestCase. - [Preview API] + [Preview API] Delete a test case. :param str project: Project ID or project name - :param int test_case_id: + :param int test_case_id: Id of test case to delete. """ route_values = {} if project is not None: @@ -2042,64 +1668,33 @@ def delete_test_case(self, project, test_case_id): route_values['testCaseId'] = self._serialize.url('test_case_id', test_case_id, 'int') self._send(http_method='DELETE', location_id='4d472e0f-e32c-4ef8-adf4-a4078772889c', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) - def create_test_settings(self, test_settings, project): - """CreateTestSettings. - :param :class:` ` test_settings: + def query_test_history(self, filter, project): + """QueryTestHistory. + [Preview API] Get history of a test method using TestHistoryQuery + :param :class:` ` filter: TestHistoryQuery to get history :param str project: Project ID or project name - :rtype: int + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(test_settings, 'TestSettings') + content = self._serialize.body(filter, 'TestHistoryQuery') response = self._send(http_method='POST', - location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.1', + location_id='929fd86c-3e38-4d8c-b4b6-90df256e5971', + version='5.0-preview.1', route_values=route_values, content=content) - return self._deserialize('int', response) - - def delete_test_settings(self, project, test_settings_id): - """DeleteTestSettings. - :param str project: Project ID or project name - :param int test_settings_id: - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_settings_id is not None: - route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') - self._send(http_method='DELETE', - location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.1', - route_values=route_values) - - def get_test_settings_by_id(self, project, test_settings_id): - """GetTestSettingsById. - :param str project: Project ID or project name - :param int test_settings_id: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if test_settings_id is not None: - route_values['testSettingsId'] = self._serialize.url('test_settings_id', test_settings_id, 'int') - response = self._send(http_method='GET', - location_id='8133ce14-962f-42af-a5f9-6aa9defcb9c8', - version='4.1', - route_values=route_values) - return self._deserialize('TestSettings', response) + return self._deserialize('TestHistoryQuery', response) def create_test_variable(self, test_variable, project): """CreateTestVariable. - [Preview API] - :param :class:` ` test_variable: + [Preview API] Create a test variable. + :param :class:` ` test_variable: TestVariable :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2107,16 +1702,16 @@ def create_test_variable(self, test_variable, project): content = self._serialize.body(test_variable, 'TestVariable') response = self._send(http_method='POST', location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('TestVariable', response) def delete_test_variable(self, project, test_variable_id): """DeleteTestVariable. - [Preview API] + [Preview API] Delete a test variable by its ID. :param str project: Project ID or project name - :param int test_variable_id: + :param int test_variable_id: ID of the test variable to delete. """ route_values = {} if project is not None: @@ -2125,15 +1720,15 @@ def delete_test_variable(self, project, test_variable_id): route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') self._send(http_method='DELETE', location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_test_variable_by_id(self, project, test_variable_id): """GetTestVariableById. - [Preview API] + [Preview API] Get a test variable by its ID. :param str project: Project ID or project name - :param int test_variable_id: - :rtype: :class:` ` + :param int test_variable_id: ID of the test variable to get. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2142,16 +1737,16 @@ def get_test_variable_by_id(self, project, test_variable_id): route_values['testVariableId'] = self._serialize.url('test_variable_id', test_variable_id, 'int') response = self._send(http_method='GET', location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('TestVariable', response) def get_test_variables(self, project, skip=None, top=None): """GetTestVariables. - [Preview API] + [Preview API] Get a list of test variables. :param str project: Project ID or project name - :param int skip: - :param int top: + :param int skip: Number of test variables to skip. + :param int top: Number of test variables to return. :rtype: [TestVariable] """ route_values = {} @@ -2164,18 +1759,18 @@ def get_test_variables(self, project, skip=None, top=None): query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TestVariable]', self._unwrap_collection(response)) def update_test_variable(self, test_variable, project, test_variable_id): """UpdateTestVariable. - [Preview API] - :param :class:` ` test_variable: + [Preview API] Update a test variable by its ID. + :param :class:` ` test_variable: TestVariable :param str project: Project ID or project name - :param int test_variable_id: - :rtype: :class:` ` + :param int test_variable_id: ID of the test variable to update. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2185,104 +1780,8 @@ def update_test_variable(self, test_variable, project, test_variable_id): content = self._serialize.body(test_variable, 'TestVariable') response = self._send(http_method='PATCH', location_id='be3fcb2b-995b-47bf-90e5-ca3cf9980912', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('TestVariable', response) - def add_work_item_to_test_links(self, work_item_to_test_links, project): - """AddWorkItemToTestLinks. - [Preview API] - :param :class:` ` work_item_to_test_links: - :param str project: Project ID or project name - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(work_item_to_test_links, 'WorkItemToTestLinks') - response = self._send(http_method='POST', - location_id='371b1655-ce05-412e-a113-64cc77bb78d2', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemToTestLinks', response) - - def delete_test_method_to_work_item_link(self, project, test_name, work_item_id): - """DeleteTestMethodToWorkItemLink. - [Preview API] - :param str project: Project ID or project name - :param str test_name: - :param int work_item_id: - :rtype: bool - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if test_name is not None: - query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') - if work_item_id is not None: - query_parameters['workItemId'] = self._serialize.query('work_item_id', work_item_id, 'int') - response = self._send(http_method='DELETE', - location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('bool', response) - - def query_test_method_linked_work_items(self, project, test_name): - """QueryTestMethodLinkedWorkItems. - [Preview API] - :param str project: Project ID or project name - :param str test_name: - :rtype: :class:` ` - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if test_name is not None: - query_parameters['testName'] = self._serialize.query('test_name', test_name, 'str') - response = self._send(http_method='POST', - location_id='7b0bdee3-a354-47f9-a42c-89018d7808d5', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('TestToWorkItemLinks', response) - - def query_test_result_work_items(self, project, work_item_category, automated_test_name=None, test_case_id=None, max_complete_date=None, days=None, work_item_count=None): - """QueryTestResultWorkItems. - [Preview API] - :param str project: Project ID or project name - :param str work_item_category: - :param str automated_test_name: - :param int test_case_id: - :param datetime max_complete_date: - :param int days: - :param int work_item_count: - :rtype: [WorkItemReference] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - query_parameters = {} - if work_item_category is not None: - query_parameters['workItemCategory'] = self._serialize.query('work_item_category', work_item_category, 'str') - if automated_test_name is not None: - query_parameters['automatedTestName'] = self._serialize.query('automated_test_name', automated_test_name, 'str') - if test_case_id is not None: - query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int') - if max_complete_date is not None: - query_parameters['maxCompleteDate'] = self._serialize.query('max_complete_date', max_complete_date, 'iso-8601') - if days is not None: - query_parameters['days'] = self._serialize.query('days', days, 'int') - if work_item_count is not None: - query_parameters['$workItemCount'] = self._serialize.query('work_item_count', work_item_count, 'int') - response = self._send(http_method='GET', - location_id='926ff5dc-137f-45f0-bd51-9412fa9810ce', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemReference]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_1/tfvc/__init__.py b/azure-devops/azure/devops/v5_0/tfvc/__init__.py similarity index 96% rename from azure-devops/azure/devops/v4_1/tfvc/__init__.py rename to azure-devops/azure/devops/v5_0/tfvc/__init__.py index 751e4808..90e4d7c8 100644 --- a/azure-devops/azure/devops/v4_1/tfvc/__init__.py +++ b/azure-devops/azure/devops/v5_0/tfvc/__init__.py @@ -36,6 +36,7 @@ 'TfvcLabel', 'TfvcLabelRef', 'TfvcLabelRequestData', + 'TfvcMappingFilter', 'TfvcMergeSource', 'TfvcPolicyFailureInfo', 'TfvcPolicyOverrideInfo', @@ -43,6 +44,7 @@ 'TfvcShelveset', 'TfvcShelvesetRef', 'TfvcShelvesetRequestData', + 'TfvcStatistics', 'TfvcVersionDescriptor', 'VersionControlProjectInfo', 'VstsInfo', diff --git a/azure-devops/azure/devops/v4_1/tfvc/models.py b/azure-devops/azure/devops/v5_0/tfvc/models.py similarity index 89% rename from azure-devops/azure/devops/v4_1/tfvc/models.py rename to azure-devops/azure/devops/v5_0/tfvc/models.py index 23ed06e7..873d9065 100644 --- a/azure-devops/azure/devops/v4_1/tfvc/models.py +++ b/azure-devops/azure/devops/v5_0/tfvc/models.py @@ -57,7 +57,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -145,7 +145,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -155,11 +155,13 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str + :param size: Compressed size (bytes) of the repository. + :type size: long :param ssh_url: :type ssh_url: str :param url: @@ -177,12 +179,13 @@ class GitRepository(Model): 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} } - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, size=None, ssh_url=None, url=None, valid_remote_urls=None): super(GitRepository, self).__init__() self._links = _links self.default_branch = default_branch @@ -192,6 +195,7 @@ def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name self.parent_repository = parent_repository self.project = project self.remote_url = remote_url + self.size = size self.ssh_url = ssh_url self.url = url self.valid_remote_urls = valid_remote_urls @@ -201,7 +205,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -209,7 +213,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -245,7 +249,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +277,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -292,6 +296,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -309,11 +315,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -321,6 +328,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -349,11 +357,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -430,6 +438,8 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. @@ -448,6 +458,7 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -457,9 +468,10 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id self.name = name @@ -497,7 +509,7 @@ class TfvcChange(Change): """TfvcChange. :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` + :type merge_sources: list of :class:`TfvcMergeSource ` :param pending_version: Version at which a (shelved) change was pended against :type pending_version: int """ @@ -517,13 +529,13 @@ class TfvcChangesetRef(Model): """TfvcChangesetRef. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -572,6 +584,8 @@ class TfvcChangesetSearchCriteria(Model): :type include_links: bool :param item_path: Path of item to search under :type item_path: str + :param mappings: + :type mappings: list of :class:`TfvcMappingFilter ` :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. :type to_date: str :param to_id: If provided, a version descriptor for the latest change list to include @@ -585,11 +599,12 @@ class TfvcChangesetSearchCriteria(Model): 'from_id': {'key': 'fromId', 'type': 'int'}, 'include_links': {'key': 'includeLinks', 'type': 'bool'}, 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'mappings': {'key': 'mappings', 'type': '[TfvcMappingFilter]'}, 'to_date': {'key': 'toDate', 'type': 'str'}, 'to_id': {'key': 'toId', 'type': 'int'} } - def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): + def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, mappings=None, to_date=None, to_id=None): super(TfvcChangesetSearchCriteria, self).__init__() self.author = author self.follow_renames = follow_renames @@ -597,6 +612,7 @@ def __init__(self, author=None, follow_renames=None, from_date=None, from_id=Non self.from_id = from_id self.include_links = include_links self.item_path = item_path + self.mappings = mappings self.to_date = to_date self.to_id = to_id @@ -629,11 +645,11 @@ class TfvcItem(ItemModel): """TfvcItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -646,6 +662,8 @@ class TfvcItem(ItemModel): :type change_date: datetime :param deletion_id: :type deletion_id: int + :param encoding: File encoding from database, -1 represents binary. + :type encoding: int :param hash_value: MD5 hash as a base 64 string, applies to files only. :type hash_value: str :param is_branch: @@ -668,6 +686,7 @@ class TfvcItem(ItemModel): 'url': {'key': 'url', 'type': 'str'}, 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, 'deletion_id': {'key': 'deletionId', 'type': 'int'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, 'hash_value': {'key': 'hashValue', 'type': 'str'}, 'is_branch': {'key': 'isBranch', 'type': 'bool'}, 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, @@ -675,10 +694,11 @@ class TfvcItem(ItemModel): 'version': {'key': 'version', 'type': 'int'} } - def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, encoding=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): super(TfvcItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) self.change_date = change_date self.deletion_id = deletion_id + self.encoding = encoding self.hash_value = hash_value self.is_branch = is_branch self.is_pending_change = is_pending_change @@ -726,7 +746,7 @@ class TfvcItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` + :type item_descriptors: list of :class:`TfvcItemDescriptor ` """ _attribute_map = { @@ -746,7 +766,7 @@ class TfvcLabelRef(Model): """TfvcLabelRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -758,7 +778,7 @@ class TfvcLabelRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -822,6 +842,26 @@ def __init__(self, include_links=None, item_label_filter=None, label_scope=None, self.owner = owner +class TfvcMappingFilter(Model): + """TfvcMappingFilter. + + :param exclude: + :type exclude: bool + :param server_path: + :type server_path: str + """ + + _attribute_map = { + 'exclude': {'key': 'exclude', 'type': 'bool'}, + 'server_path': {'key': 'serverPath', 'type': 'str'} + } + + def __init__(self, exclude=None, server_path=None): + super(TfvcMappingFilter, self).__init__() + self.exclude = exclude + self.server_path = server_path + + class TfvcMergeSource(Model): """TfvcMergeSource. @@ -876,7 +916,7 @@ class TfvcPolicyOverrideInfo(Model): :param comment: :type comment: str :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` """ _attribute_map = { @@ -910,7 +950,7 @@ class TfvcShelvesetRef(Model): """TfvcShelvesetRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -922,7 +962,7 @@ class TfvcShelvesetRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -990,6 +1030,26 @@ def __init__(self, include_details=None, include_links=None, include_work_items= self.owner = owner +class TfvcStatistics(Model): + """TfvcStatistics. + + :param changeset_id: Id of the last changeset the stats are based on. + :type changeset_id: int + :param file_count_total: Count of files at the requested scope. + :type file_count_total: long + """ + + _attribute_map = { + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'file_count_total': {'key': 'fileCountTotal', 'type': 'long'} + } + + def __init__(self, changeset_id=None, file_count_total=None): + super(TfvcStatistics, self).__init__() + self.changeset_id = changeset_id + self.file_count_total = file_count_total + + class TfvcVersionDescriptor(Model): """TfvcVersionDescriptor. @@ -1020,7 +1080,7 @@ class VersionControlProjectInfo(Model): :param default_source_control_type: :type default_source_control_type: object :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param supports_git: :type supports_git: bool :param supports_tFVC: @@ -1046,9 +1106,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -1072,7 +1132,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1080,7 +1140,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str """ @@ -1109,13 +1169,13 @@ class TfvcChangeset(TfvcChangesetRef): """TfvcChangeset. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -1127,19 +1187,19 @@ class TfvcChangeset(TfvcChangesetRef): :param account_id: Account Id of the changeset. :type account_id: str :param changes: List of associated changes. - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param checkin_notes: Checkin Notes for the changeset. - :type checkin_notes: list of :class:`CheckinNote ` + :type checkin_notes: list of :class:`CheckinNote ` :param collection_id: Collection Id of the changeset. :type collection_id: str :param has_more_changes: Are more changes available. :type has_more_changes: bool :param policy_override: Policy Override for the changeset. - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param team_project_ids: Team Project Ids for the changeset. :type team_project_ids: list of str :param work_items: List of work items associated with the changeset. - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1177,7 +1237,7 @@ class TfvcLabel(TfvcLabelRef): """TfvcLabel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -1189,11 +1249,11 @@ class TfvcLabel(TfvcLabelRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param items: - :type items: list of :class:`TfvcItem ` + :type items: list of :class:`TfvcItem ` """ _attribute_map = { @@ -1217,7 +1277,7 @@ class TfvcShelveset(TfvcShelvesetRef): """TfvcShelveset. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -1229,17 +1289,17 @@ class TfvcShelveset(TfvcShelvesetRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param changes: - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param notes: - :type notes: list of :class:`CheckinNote ` + :type notes: list of :class:`CheckinNote ` :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1271,7 +1331,7 @@ class TfvcBranch(TfvcBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1279,17 +1339,17 @@ class TfvcBranch(TfvcBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str :param children: List of children for the branch. - :type children: list of :class:`TfvcBranch ` + :type children: list of :class:`TfvcBranch ` :param mappings: List of branch mappings. - :type mappings: list of :class:`TfvcBranchMapping ` + :type mappings: list of :class:`TfvcBranchMapping ` :param parent: Path of the branch's parent. - :type parent: :class:`TfvcShallowBranchRef ` + :type parent: :class:`TfvcShallowBranchRef ` :param related_branches: List of paths of the related branches. - :type related_branches: list of :class:`TfvcShallowBranchRef ` + :type related_branches: list of :class:`TfvcShallowBranchRef ` """ _attribute_map = { @@ -1338,12 +1398,14 @@ def __init__(self, path=None, _links=None, created_date=None, description=None, 'TfvcItemRequestData', 'TfvcLabelRef', 'TfvcLabelRequestData', + 'TfvcMappingFilter', 'TfvcMergeSource', 'TfvcPolicyFailureInfo', 'TfvcPolicyOverrideInfo', 'TfvcShallowBranchRef', 'TfvcShelvesetRef', 'TfvcShelvesetRequestData', + 'TfvcStatistics', 'TfvcVersionDescriptor', 'VersionControlProjectInfo', 'VstsInfo', diff --git a/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py b/azure-devops/azure/devops/v5_0/tfvc/tfvc_client.py similarity index 93% rename from azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py rename to azure-devops/azure/devops/v5_0/tfvc/tfvc_client.py index 58d66239..d8533d89 100644 --- a/azure-devops/azure/devops/v4_1/tfvc/tfvc_client.py +++ b/azure-devops/azure/devops/v5_0/tfvc/tfvc_client.py @@ -32,7 +32,7 @@ def get_branch(self, path, project=None, include_parent=None, include_children=N :param str project: Project ID or project name :param bool include_parent: Return the parent branch, if there is one. Default: False :param bool include_children: Return child branches, if there are any. Default: False - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -46,7 +46,7 @@ def get_branch(self, path, project=None, include_parent=None, include_children=N query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcBranch', response) @@ -75,7 +75,7 @@ def get_branches(self, project=None, include_parent=None, include_children=None, query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcBranch]', self._unwrap_collection(response)) @@ -101,7 +101,7 @@ def get_branch_refs(self, scope_path, project=None, include_deleted=None, includ query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcBranchRef]', self._unwrap_collection(response)) @@ -124,7 +124,7 @@ def get_changeset_changes(self, id=None, skip=None, top=None): query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) @@ -132,9 +132,9 @@ def get_changeset_changes(self, id=None, skip=None, top=None): def create_changeset(self, changeset, project=None): """CreateChangeset. Create a new changeset. - :param :class:` ` changeset: + :param :class:` ` changeset: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -142,7 +142,7 @@ def create_changeset(self, changeset, project=None): content = self._serialize.body(changeset, 'TfvcChangeset') response = self._send(http_method='POST', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TfvcChangesetRef', response) @@ -160,8 +160,8 @@ def get_changeset(self, id, project=None, max_change_count=None, include_details :param int skip: Number of results to skip. Default: null :param int top: The maximum number of results to return. Default: null :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. - :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null - :rtype: :class:` ` + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -202,9 +202,11 @@ def get_changeset(self, id, project=None, max_change_count=None, include_details query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames if search_criteria.include_links is not None: query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if search_criteria.mappings is not None: + query_parameters['searchCriteria.mappings'] = search_criteria.mappings response = self._send(http_method='GET', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcChangeset', response) @@ -217,7 +219,7 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N :param int skip: Number of results to skip. Default: null :param int top: The maximum number of results to return. Default: null :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. - :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null :rtype: [TfvcChangesetRef] """ route_values = {} @@ -249,9 +251,11 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames if search_criteria.include_links is not None: query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if search_criteria.mappings is not None: + query_parameters['searchCriteria.mappings'] = search_criteria.mappings response = self._send(http_method='GET', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) @@ -259,13 +263,13 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N def get_batched_changesets(self, changesets_request_data): """GetBatchedChangesets. Returns changesets for a given list of changeset Ids. - :param :class:` ` changesets_request_data: List of changeset IDs. + :param :class:` ` changesets_request_data: List of changeset IDs. :rtype: [TfvcChangesetRef] """ content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') response = self._send(http_method='POST', location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', - version='4.1', + version='5.0', content=content) return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) @@ -280,14 +284,14 @@ def get_changeset_work_items(self, id=None): route_values['id'] = self._serialize.url('id', id, 'int') response = self._send(http_method='GET', location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) def get_items_batch(self, item_request_data, project=None): """GetItemsBatch. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: [[TfvcItem]] """ @@ -297,7 +301,7 @@ def get_items_batch(self, item_request_data, project=None): content = self._serialize.body(item_request_data, 'TfvcItemRequestData') response = self._send(http_method='POST', location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[[TfvcItem]]', self._unwrap_collection(response)) @@ -305,7 +309,7 @@ def get_items_batch(self, item_request_data, project=None): def get_items_batch_zip(self, item_request_data, project=None, **kwargs): """GetItemsBatchZip. Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: object """ @@ -315,7 +319,7 @@ def get_items_batch_zip(self, item_request_data, project=None, **kwargs): content = self._serialize.body(item_request_data, 'TfvcItemRequestData') response = self._send(http_method='POST', location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', - version='4.1', + version='5.0', route_values=route_values, content=content, accept_media_type='application/zip') @@ -334,9 +338,9 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -363,7 +367,7 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcItem', response) @@ -377,7 +381,7 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -406,7 +410,7 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -423,7 +427,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). :param bool include_links: True to include links. - :param :class:` ` version_descriptor: + :param :class:` ` version_descriptor: :rtype: [TfvcItem] """ route_values = {} @@ -445,7 +449,7 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) @@ -459,7 +463,7 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -488,7 +492,7 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -507,7 +511,7 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ :param bool download: If true, create a downloadable attachment. :param str scope_path: Version control path of a folder to return multiple items. :param str recursion_level: None (just the item), or OneLevel (contents of a folder). - :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param :class:` ` version_descriptor: Version descriptor. Default is null. :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ @@ -536,7 +540,7 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -564,7 +568,7 @@ def get_label_items(self, label_id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='06166e34-de17-4b60-8cd1-23182a346fda', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) @@ -573,9 +577,9 @@ def get_label(self, label_id, request_data, project=None): """GetLabel. Get a single deep label. :param str label_id: Unique identifier of label - :param :class:` ` request_data: maxItemCount + :param :class:` ` request_data: maxItemCount :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -598,7 +602,7 @@ def get_label(self, label_id, request_data, project=None): query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcLabel', response) @@ -606,7 +610,7 @@ def get_label(self, label_id, request_data, project=None): def get_labels(self, request_data, project=None, top=None, skip=None): """GetLabels. Get a collection of shallow label references. - :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter + :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter :param str project: Project ID or project name :param int top: Max number of labels to return :param int skip: Number of labels to skip @@ -635,7 +639,7 @@ def get_labels(self, request_data, project=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcLabelRef]', self._unwrap_collection(response)) @@ -657,7 +661,7 @@ def get_shelveset_changes(self, shelveset_id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='dbaf075b-0445-4c34-9e5b-82292f856522', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) @@ -665,8 +669,8 @@ def get_shelveset(self, shelveset_id, request_data=None): """GetShelveset. Get a single deep shelveset. :param str shelveset_id: Shelveset's unique ID - :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength - :rtype: :class:` ` + :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength + :rtype: :class:` ` """ query_parameters = {} if shelveset_id is not None: @@ -688,14 +692,14 @@ def get_shelveset(self, shelveset_id, request_data=None): query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('TfvcShelveset', response) def get_shelvesets(self, request_data=None, top=None, skip=None): """GetShelvesets. Return a collection of shallow shelveset references. - :param :class:` ` request_data: name, owner, and maxCommentLength + :param :class:` ` request_data: name, owner, and maxCommentLength :param int top: Max number of shelvesets to return :param int skip: Number of shelvesets to skip :rtype: [TfvcShelvesetRef] @@ -722,7 +726,7 @@ def get_shelvesets(self, request_data=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[TfvcShelvesetRef]', self._unwrap_collection(response)) @@ -737,7 +741,7 @@ def get_shelveset_work_items(self, shelveset_id): query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') response = self._send(http_method='GET', location_id='a7a0c1c1-373e-425a-b031-a519474d743d', - version='4.1', + version='5.0', query_parameters=query_parameters) return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/__init__.py b/azure-devops/azure/devops/v5_0/uPack_packaging/__init__.py new file mode 100644 index 00000000..a3f47c87 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/uPack_packaging/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'UPackLimitedPackageMetadata', + 'UPackLimitedPackageMetadataListResponse', + 'UPackPackageMetadata', + 'UPackPackagePushMetadata', + 'UPackPackageVersionDeletionState', +] diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/models.py b/azure-devops/azure/devops/v5_0/uPack_packaging/models.py new file mode 100644 index 00000000..b65a9ea5 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/uPack_packaging/models.py @@ -0,0 +1,134 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UPackLimitedPackageMetadata(Model): + """UPackLimitedPackageMetadata. + + :param version: + :type version: str + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, version=None): + super(UPackLimitedPackageMetadata, self).__init__() + self.version = version + + +class UPackLimitedPackageMetadataListResponse(Model): + """UPackLimitedPackageMetadataListResponse. + + :param count: + :type count: int + :param value: + :type value: list of :class:`UPackLimitedPackageMetadata ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'value': {'key': 'value', 'type': '[UPackLimitedPackageMetadata]'} + } + + def __init__(self, count=None, value=None): + super(UPackLimitedPackageMetadataListResponse, self).__init__() + self.count = count + self.value = value + + +class UPackPackageMetadata(Model): + """UPackPackageMetadata. + + :param description: + :type description: str + :param manifest_id: + :type manifest_id: str + :param super_root_id: + :type super_root_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'manifest_id': {'key': 'manifestId', 'type': 'str'}, + 'super_root_id': {'key': 'superRootId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, description=None, manifest_id=None, super_root_id=None, version=None): + super(UPackPackageMetadata, self).__init__() + self.description = description + self.manifest_id = manifest_id + self.super_root_id = super_root_id + self.version = version + + +class UPackPackagePushMetadata(UPackPackageMetadata): + """UPackPackagePushMetadata. + + :param description: + :type description: str + :param manifest_id: + :type manifest_id: str + :param super_root_id: + :type super_root_id: str + :param version: + :type version: str + :param proof_nodes: + :type proof_nodes: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'manifest_id': {'key': 'manifestId', 'type': 'str'}, + 'super_root_id': {'key': 'superRootId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'proof_nodes': {'key': 'proofNodes', 'type': '[str]'} + } + + def __init__(self, description=None, manifest_id=None, super_root_id=None, version=None, proof_nodes=None): + super(UPackPackagePushMetadata, self).__init__(description=description, manifest_id=manifest_id, super_root_id=super_root_id, version=version) + self.proof_nodes = proof_nodes + + +class UPackPackageVersionDeletionState(Model): + """UPackPackageVersionDeletionState. + + :param deleted_date: UTC date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(UPackPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +__all__ = [ + 'UPackLimitedPackageMetadata', + 'UPackLimitedPackageMetadataListResponse', + 'UPackPackageMetadata', + 'UPackPackagePushMetadata', + 'UPackPackageVersionDeletionState', +] diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py b/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py new file mode 100644 index 00000000..2af4ed58 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py @@ -0,0 +1,93 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class UPackPackagingClient(Client): + """UPackPackaging + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(UPackPackagingClient, 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 = 'd397749b-f115-4027-b6dd-77a65dd10d21' + + def add_package(self, metadata, feed_id, package_name, package_version): + """AddPackage. + [Preview API] + :param :class:` ` metadata: + :param str feed_id: + :param str package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(metadata, 'UPackPackagePushMetadata') + self._send(http_method='PUT', + location_id='4cdb2ced-0758-4651-8032-010f070dd7e5', + version='5.0-preview.1', + route_values=route_values, + content=content) + + def get_package_metadata(self, feed_id, package_name, package_version, intent=None): + """GetPackageMetadata. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :param str intent: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if intent is not None: + query_parameters['intent'] = self._serialize.query('intent', intent, 'str') + response = self._send(http_method='GET', + location_id='4cdb2ced-0758-4651-8032-010f070dd7e5', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('UPackPackageMetadata', response) + + def get_package_versions_metadata(self, feed_id, package_name): + """GetPackageVersionsMetadata. + [Preview API] + :param str feed_id: + :param str package_name: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + response = self._send(http_method='GET', + location_id='4cdb2ced-0758-4651-8032-010f070dd7e5', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('UPackLimitedPackageMetadataListResponse', response) + diff --git a/azure-devops/azure/devops/v5_0/universal/__init__.py b/azure-devops/azure/devops/v5_0/universal/__init__.py new file mode 100644 index 00000000..f72c98ee --- /dev/null +++ b/azure-devops/azure/devops/v5_0/universal/__init__.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UPackPackagesBatchRequest', + 'UPackPackageVersionDeletionState', + 'UPackRecycleBinPackageVersionDetails', +] diff --git a/azure-devops/azure/devops/v5_0/universal/models.py b/azure-devops/azure/devops/v5_0/universal/models.py new file mode 100644 index 00000000..d8bf7871 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/universal/models.py @@ -0,0 +1,214 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. + :type deleted_date: datetime + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, views=None): + super(PackageVersionDetails, self).__init__() + self.views = views + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UPackPackagesBatchRequest(Model): + """UPackPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(UPackPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class UPackPackageVersionDeletionState(Model): + """UPackPackageVersionDeletionState. + + :param deleted_date: UTC date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(UPackPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +class UPackRecycleBinPackageVersionDetails(Model): + """UPackRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(UPackRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UPackPackagesBatchRequest', + 'UPackPackageVersionDeletionState', + 'UPackRecycleBinPackageVersionDetails', +] diff --git a/azure-devops/azure/devops/v5_0/universal/universal_client.py b/azure-devops/azure/devops/v5_0/universal/universal_client.py new file mode 100644 index 00000000..8a1ec220 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/universal/universal_client.py @@ -0,0 +1,158 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class UPackApiClient(Client): + """UPackApi + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(UPackApiClient, 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 = 'd397749b-f115-4027-b6dd-77a65dd10d21' + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Delete a package version from the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='3ba455ae-31e6-409e-849f-56c66888d004', + version='5.0-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] Get information about a package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='3ba455ae-31e6-409e-849f-56c66888d004', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('UPackPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version from the recycle bin to its associated feed. + :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'UPackRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='3ba455ae-31e6-409e-849f-56c66888d004', + version='5.0-preview.1', + route_values=route_values, + content=content) + + def delete_package_version(self, feed_id, package_name, package_version): + """DeletePackageVersion. + [Preview API] Delete a package version from a feed's recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='72f61ca4-e07c-4eca-be75-6c0b2f3f4051', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): + """GetPackageVersion. + [Preview API] Show information about a package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param bool show_deleted: True to show information for deleted versions + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='72f61ca4-e07c-4eca-be75-6c0b2f3f4051', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def update_package_version(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackageVersion. + [Preview API] Update information for a package version. + :param :class:` ` package_version_details: + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + self._send(http_method='PATCH', + location_id='72f61ca4-e07c-4eca-be75-6c0b2f3f4051', + version='5.0-preview.1', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/v4_1/wiki/__init__.py b/azure-devops/azure/devops/v5_0/wiki/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/wiki/__init__.py rename to azure-devops/azure/devops/v5_0/wiki/__init__.py diff --git a/azure-devops/azure/devops/v4_1/wiki/models.py b/azure-devops/azure/devops/v5_0/wiki/models.py similarity index 94% rename from azure-devops/azure/devops/v4_1/wiki/models.py rename to azure-devops/azure/devops/v5_0/wiki/models.py index a70bd269..8f5db657 100644 --- a/azure-devops/azure/devops/v4_1/wiki/models.py +++ b/azure-devops/azure/devops/v5_0/wiki/models.py @@ -23,11 +23,13 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: :type project: TeamProjectReference :param remote_url: :type remote_url: str + :param size: Compressed size (bytes) of the repository. + :type size: long :param ssh_url: :type ssh_url: str :param url: @@ -45,12 +47,13 @@ class GitRepository(Model): 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} } - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, ssh_url=None, url=None, valid_remote_urls=None): + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, size=None, ssh_url=None, url=None, valid_remote_urls=None): super(GitRepository, self).__init__() self._links = _links self.default_branch = default_branch @@ -60,6 +63,7 @@ def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name self.parent_repository = parent_repository self.project = project self.remote_url = remote_url + self.size = size self.ssh_url = ssh_url self.url = url self.valid_remote_urls = valid_remote_urls @@ -157,7 +161,7 @@ class WikiAttachmentResponse(Model): """WikiAttachmentResponse. :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` + :type attachment: :class:`WikiAttachment ` :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. :type eTag: list of str """ @@ -219,7 +223,7 @@ class WikiCreateParametersV2(WikiCreateBaseParameters): :param type: Type of the wiki. :type type: object :param version: Version of the wiki. Not required for ProjectWiki type. - :type version: :class:`GitVersionDescriptor ` + :type version: :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -282,7 +286,7 @@ class WikiPageMoveResponse(Model): :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. :type eTag: list of str :param page_move: Defines properties for wiki page move. - :type page_move: :class:`WikiPageMove ` + :type page_move: :class:`WikiPageMove ` """ _attribute_map = { @@ -302,7 +306,7 @@ class WikiPageResponse(Model): :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. :type eTag: list of str :param page: Defines properties for wiki page. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { @@ -343,16 +347,20 @@ def __init__(self, count=None, last_viewed_time=None, path=None): class WikiUpdateParameters(Model): """WikiUpdateParameters. + :param name: Name for wiki. + :type name: str :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} } - def __init__(self, versions=None): + def __init__(self, name=None, versions=None): super(WikiUpdateParameters, self).__init__() + self.name = name self.versions = versions @@ -378,7 +386,7 @@ class WikiV2(WikiCreateBaseParameters): :param url: REST url for this wiki. :type url: str :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -421,7 +429,7 @@ class WikiPage(WikiPageCreateOrUpdateParameters): :param remote_url: Remote web url to the wiki page. :type remote_url: str :param sub_pages: List of subpages of the current page. - :type sub_pages: list of :class:`WikiPage ` + :type sub_pages: list of :class:`WikiPage ` :param url: REST url for this wiki page. :type url: str """ @@ -460,7 +468,7 @@ class WikiPageMove(WikiPageMoveParameters): :param path: Current path of the wiki page. :type path: str :param page: Resultant page of this page move operation. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_1/wiki/wiki_client.py b/azure-devops/azure/devops/v5_0/wiki/wiki_client.py similarity index 91% rename from azure-devops/azure/devops/v4_1/wiki/wiki_client.py rename to azure-devops/azure/devops/v5_0/wiki/wiki_client.py index ea554500..345a3413 100644 --- a/azure-devops/azure/devops/v4_1/wiki/wiki_client.py +++ b/azure-devops/azure/devops/v5_0/wiki/wiki_client.py @@ -32,15 +32,16 @@ def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwa :param str project: Project ID or project name :param str wiki_identifier: Wiki Id or name. :param str name: Wiki attachment name. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') if wiki_identifier is not None: route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} if name is not None: - route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters['name'] = self._serialize.query('name', name, 'str') if "callback" in kwargs: callback = kwargs["callback"] else: @@ -48,8 +49,9 @@ def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwa content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', - version='4.1', + version='5.0', route_values=route_values, + query_parameters=query_parameters, content=content, media_type='application/octet-stream') response_object = models.WikiAttachmentResponse() @@ -60,11 +62,11 @@ def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwa def create_page_move(self, page_move_parameters, project, wiki_identifier, comment=None): """CreatePageMove. Creates a page move operation that updates the path and order of the page as provided in the parameters. - :param :class:` ` page_move_parameters: Page more operation parameters. + :param :class:` ` page_move_parameters: Page more operation parameters. :param str project: Project ID or project name :param str wiki_identifier: Wiki Id or name. :param str comment: Comment that is to be associated with this page move. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -77,7 +79,7 @@ def create_page_move(self, page_move_parameters, project, wiki_identifier, comme content = self._serialize.body(page_move_parameters, 'WikiPageMoveParameters') response = self._send(http_method='POST', location_id='e37bbe71-cbae-49e5-9a4e-949143b9d910', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -89,13 +91,13 @@ def create_page_move(self, page_move_parameters, project, wiki_identifier, comme def create_or_update_page(self, parameters, project, wiki_identifier, path, version, comment=None): """CreateOrUpdatePage. Creates or edits a wiki page. - :param :class:` ` parameters: Wiki create or update operation parameters. + :param :class:` ` parameters: Wiki create or update operation parameters. :param str project: Project ID or project name :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param String version: Version of the page on which the change is to be made. Mandatory for `Edit` scenario. To be populated in the If-Match header of the request. :param str comment: Comment to be associated with the page operation. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -110,7 +112,7 @@ def create_or_update_page(self, parameters, project, wiki_identifier, path, vers content = self._serialize.body(parameters, 'WikiPageCreateOrUpdateParameters') response = self._send(http_method='PUT', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -126,7 +128,7 @@ def delete_page(self, project, wiki_identifier, path, comment=None): :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str comment: Comment to be associated with this page delete. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -140,7 +142,7 @@ def delete_page(self, project, wiki_identifier, path, comment=None): query_parameters['comment'] = self._serialize.query('comment', comment, 'str') response = self._send(http_method='DELETE', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) response_object = models.WikiPageResponse() @@ -155,9 +157,9 @@ def get_page(self, project, wiki_identifier, path=None, recursion_level=None, ve :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). - :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -180,7 +182,7 @@ def get_page(self, project, wiki_identifier, path=None, recursion_level=None, ve query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) response_object = models.WikiPageResponse() @@ -195,7 +197,7 @@ def get_page_text(self, project, wiki_identifier, path=None, recursion_level=Non :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). - :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) :rtype: object """ @@ -220,7 +222,7 @@ def get_page_text(self, project, wiki_identifier, path=None, recursion_level=Non query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -237,7 +239,7 @@ def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None :param str wiki_identifier: Wiki Id or name. :param str path: Wiki page path. :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). - :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) :rtype: object """ @@ -262,7 +264,7 @@ def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -275,9 +277,9 @@ def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None def create_wiki(self, wiki_create_params, project=None): """CreateWiki. Creates the wiki resource. - :param :class:` ` wiki_create_params: Parameters for the wiki creation. + :param :class:` ` wiki_create_params: Parameters for the wiki creation. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -285,7 +287,7 @@ def create_wiki(self, wiki_create_params, project=None): content = self._serialize.body(wiki_create_params, 'WikiCreateParametersV2') response = self._send(http_method='POST', location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('WikiV2', response) @@ -295,7 +297,7 @@ def delete_wiki(self, wiki_identifier, project=None): Deletes the wiki corresponding to the wiki name or Id provided. :param str wiki_identifier: Wiki name or Id. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -304,7 +306,7 @@ def delete_wiki(self, wiki_identifier, project=None): route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') response = self._send(http_method='DELETE', location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WikiV2', response) @@ -319,7 +321,7 @@ def get_all_wikis(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[WikiV2]', self._unwrap_collection(response)) @@ -328,7 +330,7 @@ def get_wiki(self, wiki_identifier, project=None): Gets the wiki corresponding to the wiki name or Id provided. :param str wiki_identifier: Wiki name or id. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -337,17 +339,17 @@ def get_wiki(self, wiki_identifier, project=None): route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') response = self._send(http_method='GET', location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WikiV2', response) def update_wiki(self, update_parameters, wiki_identifier, project=None): """UpdateWiki. Updates the wiki corresponding to the wiki Id or name provided using the update parameters. - :param :class:` ` update_parameters: Update parameters. + :param :class:` ` update_parameters: Update parameters. :param str wiki_identifier: Wiki name or Id. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -357,7 +359,7 @@ def update_wiki(self, update_parameters, wiki_identifier, project=None): content = self._serialize.body(update_parameters, 'WikiUpdateParameters') response = self._send(http_method='PATCH', location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('WikiV2', response) diff --git a/azure-devops/azure/devops/v4_1/work/__init__.py b/azure-devops/azure/devops/v5_0/work/__init__.py similarity index 94% rename from azure-devops/azure/devops/v4_1/work/__init__.py rename to azure-devops/azure/devops/v5_0/work/__init__.py index 851678be..bbb09761 100644 --- a/azure-devops/azure/devops/v4_1/work/__init__.py +++ b/azure-devops/azure/devops/v5_0/work/__init__.py @@ -37,10 +37,12 @@ 'GraphSubjectBase', 'IdentityRef', 'IterationWorkItems', + 'Link', 'Member', 'ParentChildWIMap', 'Plan', 'PlanViewData', + 'PredefinedQuery', 'ProcessConfiguration', 'ReferenceLinks', 'Rule', @@ -62,10 +64,13 @@ 'TimelineTeamIteration', 'TimelineTeamStatus', 'UpdatePlan', + 'WorkItem', 'WorkItemColor', 'WorkItemFieldReference', 'WorkItemLink', 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemTrackingResource', 'WorkItemTrackingResourceReference', 'WorkItemTypeReference', 'WorkItemTypeStateInfo', diff --git a/azure-devops/azure/devops/v4_1/work/models.py b/azure-devops/azure/devops/v5_0/work/models.py similarity index 87% rename from azure-devops/azure/devops/v4_1/work/models.py rename to azure-devops/azure/devops/v5_0/work/models.py index c99b3788..8bedf9ec 100644 --- a/azure-devops/azure/devops/v4_1/work/models.py +++ b/azure-devops/azure/devops/v5_0/work/models.py @@ -33,7 +33,7 @@ class BacklogColumn(Model): """BacklogColumn. :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` + :type column_field_reference: :class:`WorkItemFieldReference ` :param width: :type width: int """ @@ -53,21 +53,21 @@ class BacklogConfiguration(Model): """BacklogConfiguration. :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` + :type backlog_fields: :class:`BacklogFields ` :param bugs_behavior: Bugs behavior :type bugs_behavior: object :param hidden_backlogs: Hidden Backlog :type hidden_backlogs: list of str :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :type requirement_backlog: :class:`BacklogLevelConfiguration ` :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` + :type task_backlog: :class:`BacklogLevelConfiguration ` :param url: :type url: str :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` """ _attribute_map = { @@ -141,13 +141,13 @@ class BacklogLevelConfiguration(Model): """BacklogLevelConfiguration. :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :type add_panel_fields: list of :class:`WorkItemFieldReference ` :param color: Color for the backlog level :type color: str :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` + :type column_fields: list of :class:`BacklogColumn ` :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) :type id: str :param is_hidden: Indicates whether the backlog level is hidden @@ -161,7 +161,7 @@ class BacklogLevelConfiguration(Model): :param work_item_count_limit: Max number of work items to show in the given backlog :type work_item_count_limit: int :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -197,7 +197,7 @@ class BacklogLevelWorkItems(Model): """BacklogLevelWorkItems. :param work_items: A list of work items within a backlog level - :type work_items: list of :class:`WorkItemLink ` + :type work_items: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -213,7 +213,7 @@ class BoardCardRuleSettings(Model): """BoardCardRuleSettings. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rules: :type rules: dict :param url: @@ -313,11 +313,11 @@ class BoardFields(Model): """BoardFields. :param column_field: - :type column_field: :class:`FieldReference ` + :type column_field: :class:`FieldReference ` :param done_field: - :type done_field: :class:`FieldReference ` + :type done_field: :class:`FieldReference ` :param row_field: - :type row_field: :class:`FieldReference ` + :type row_field: :class:`FieldReference ` """ _attribute_map = { @@ -413,9 +413,9 @@ class CapacityPatch(Model): """CapacityPatch. :param activities: - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -437,7 +437,7 @@ class CategoryConfiguration(Model): :param reference_name: Category Reference Name :type reference_name: str :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -557,7 +557,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -585,7 +585,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -604,6 +604,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -621,11 +623,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -633,10 +636,35 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 Link(Model): + """Link. + + :param attributes: Collection of link attributes. + :type attributes: dict + :param rel: Relation type. + :type rel: str + :param url: Link url. + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attributes=None, rel=None, url=None): + super(Link, self).__init__() + self.attributes = attributes + self.rel = rel + self.url = url + + class Member(Model): """Member. @@ -697,7 +725,7 @@ class Plan(Model): """Plan. :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` + :type created_by_identity: :class:`IdentityRef ` :param created_date: Date when the plan was created :type created_date: datetime :param description: Description of the plan @@ -705,7 +733,7 @@ class Plan(Model): :param id: Id of the plan :type id: str :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` + :type modified_by_identity: :class:`IdentityRef ` :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. :type modified_date: datetime :param name: Name of the plan @@ -773,17 +801,53 @@ def __init__(self, id=None, revision=None): self.revision = revision +class PredefinedQuery(Model): + """PredefinedQuery. + + :param has_more: Whether or not the query returned the complete set of data or if the data was truncated. + :type has_more: bool + :param id: Id of the query + :type id: str + :param name: Localized name of the query + :type name: str + :param results: The results of the query. This will be a set of WorkItem objects with only the 'id' set. The client is responsible for paging in the data as needed. + :type results: list of :class:`WorkItem ` + :param url: REST API Url to use to retrieve results for this query + :type url: str + :param web_url: Url to use to display a page in the browser with the results of this query + :type web_url: str + """ + + _attribute_map = { + 'has_more': {'key': 'hasMore', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[WorkItem]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'} + } + + def __init__(self, has_more=None, id=None, name=None, results=None, url=None, web_url=None): + super(PredefinedQuery, self).__init__() + self.has_more = has_more + self.id = id + self.name = name + self.results = results + self.url = url + self.web_url = web_url + + class ProcessConfiguration(Model): """ProcessConfiguration. :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` + :type bug_work_items: :class:`CategoryConfiguration ` :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` + :type requirement_backlog: :class:`CategoryConfiguration ` :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` + :type task_backlog: :class:`CategoryConfiguration ` :param type_fields: Type fields for the process configuration :type type_fields: dict :param url: @@ -829,7 +893,7 @@ class Rule(Model): """Rule. :param clauses: - :type clauses: list of :class:`FilterClause ` + :type clauses: list of :class:`FilterClause ` :param filter: :type filter: str :param is_enabled: @@ -911,7 +975,7 @@ class TeamFieldValuesPatch(Model): :param default_value: :type default_value: str :param values: - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -953,7 +1017,7 @@ class TeamSettingsDataContractBase(Model): """TeamSettingsDataContractBase. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str """ @@ -973,11 +1037,11 @@ class TeamSettingsDaysOff(TeamSettingsDataContractBase): """TeamSettingsDaysOff. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -995,7 +1059,7 @@ class TeamSettingsDaysOffPatch(Model): """TeamSettingsDaysOffPatch. :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1011,11 +1075,11 @@ class TeamSettingsIteration(TeamSettingsDataContractBase): """TeamSettingsIteration. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` + :type attributes: :class:`TeamIterationAttributes ` :param id: Id of the resource :type id: str :param name: Name of the resource @@ -1121,7 +1185,7 @@ class TimelineTeamData(Model): """TimelineTeamData. :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` + :type backlog: :class:`BacklogLevel ` :param field_reference_names: The field reference names of the work item data :type field_reference_names: list of str :param id: The id of the team @@ -1129,7 +1193,7 @@ class TimelineTeamData(Model): :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. :type is_expanded: bool :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` + :type iterations: list of :class:`TimelineTeamIteration ` :param name: The name of the team :type name: str :param order_by_field: The order by field name of this team @@ -1139,15 +1203,15 @@ class TimelineTeamData(Model): :param project_id: The project id the team belongs team :type project_id: str :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` + :type status: :class:`TimelineTeamStatus ` :param team_field_default_value: The team field default value :type team_field_default_value: str :param team_field_name: The team field name of this team :type team_field_name: str :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` + :type team_field_values: list of :class:`TeamFieldValue ` :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` + :type work_item_type_colors: list of :class:`WorkItemColor ` """ _attribute_map = { @@ -1199,7 +1263,7 @@ class TimelineTeamIteration(Model): :param start_date: The start date of the iteration :type start_date: datetime :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` + :type status: :class:`TimelineIterationStatus ` :param work_items: The work items that have been paged in this iteration :type work_items: list of [object] """ @@ -1331,9 +1395,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -1369,6 +1433,27 @@ def __init__(self, id=None, url=None): self.url = url +class WorkItemRelation(Link): + """WorkItemRelation. + + :param attributes: Collection of link attributes. + :type attributes: dict + :param rel: Relation type. + :type rel: str + :param url: Link url. + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, attributes=None, rel=None, url=None): + super(WorkItemRelation, self).__init__(attributes=attributes, rel=rel, url=url) + + class WorkItemTrackingResourceReference(Model): """WorkItemTrackingResourceReference. @@ -1434,21 +1519,21 @@ class Board(BoardReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_mappings: :type allowed_mappings: dict :param can_edit: :type can_edit: bool :param columns: - :type columns: list of :class:`BoardColumn ` + :type columns: list of :class:`BoardColumn ` :param fields: - :type fields: :class:`BoardFields ` + :type fields: :class:`BoardFields ` :param is_valid: :type is_valid: bool :param revision: :type revision: int :param rows: - :type rows: list of :class:`BoardRow ` + :type rows: list of :class:`BoardRow ` """ _attribute_map = { @@ -1485,7 +1570,7 @@ class BoardChart(BoardChartReference): :param url: Full http link to the resource :type url: str :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param settings: The settings for the resource :type settings: dict """ @@ -1513,13 +1598,13 @@ class DeliveryViewData(PlanViewData): :param child_id_to_parent_id_map: Work item child id to parenet id map :type child_id_to_parent_id_map: dict :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` + :type criteria_status: :class:`TimelineCriteriaStatus ` :param end_date: The end date of the delivery view data :type end_date: datetime :param start_date: The start date for the delivery view data :type start_date: datetime :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` + :type teams: list of :class:`TimelineTeamData ` """ _attribute_map = { @@ -1545,11 +1630,11 @@ class IterationWorkItems(TeamSettingsDataContractBase): """IterationWorkItems. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param work_item_relations: Work item relations - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -1567,15 +1652,15 @@ class TeamFieldValues(TeamSettingsDataContractBase): """TeamFieldValues. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param default_value: The default team field value :type default_value: str :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` + :type field: :class:`FieldReference ` :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1597,15 +1682,15 @@ class TeamMemberCapacity(TeamSettingsDataContractBase): """TeamMemberCapacity. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` + :type team_member: :class:`Member ` """ _attribute_map = { @@ -1627,17 +1712,17 @@ class TeamSetting(TeamSettingsDataContractBase): """TeamSetting. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` + :type backlog_iteration: :class:`TeamSettingsIteration ` :param backlog_visibilities: Information about categories that are visible on the backlog. :type backlog_visibilities: dict :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) :type bugs_behavior: object :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` + :type default_iteration: :class:`TeamSettingsIteration ` :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working @@ -1665,6 +1750,59 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi self.working_days = working_days +class WorkItemTrackingResource(WorkItemTrackingResourceReference): + """WorkItemTrackingResource. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} + } + + def __init__(self, url=None, _links=None): + super(WorkItemTrackingResource, self).__init__(url=url) + self._links = _links + + +class WorkItem(WorkItemTrackingResource): + """WorkItem. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param fields: Map of field and values for the work item. + :type fields: dict + :param id: The work item ID. + :type id: int + :param relations: Relations of the work item. + :type relations: list of :class:`WorkItemRelation ` + :param rev: Revision number of the work item. + :type rev: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'fields': {'key': 'fields', 'type': '{object}'}, + 'id': {'key': 'id', 'type': 'int'}, + 'relations': {'key': 'relations', 'type': '[WorkItemRelation]'}, + 'rev': {'key': 'rev', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None): + super(WorkItem, self).__init__(url=url, _links=_links) + self.fields = fields + self.id = id + self.relations = relations + self.rev = rev + + __all__ = [ 'Activity', 'BacklogColumn', @@ -1690,10 +1828,12 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi 'FilterClause', 'GraphSubjectBase', 'IdentityRef', + 'Link', 'Member', 'ParentChildWIMap', 'Plan', 'PlanViewData', + 'PredefinedQuery', 'ProcessConfiguration', 'ReferenceLinks', 'Rule', @@ -1716,6 +1856,7 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi 'WorkItemFieldReference', 'WorkItemLink', 'WorkItemReference', + 'WorkItemRelation', 'WorkItemTrackingResourceReference', 'WorkItemTypeReference', 'WorkItemTypeStateInfo', @@ -1726,4 +1867,6 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi 'TeamFieldValues', 'TeamMemberCapacity', 'TeamSetting', + 'WorkItemTrackingResource', + 'WorkItem', ] diff --git a/azure-devops/azure/devops/v4_1/work/work_client.py b/azure-devops/azure/devops/v5_0/work/work_client.py similarity index 88% rename from azure-devops/azure/devops/v4_1/work/work_client.py rename to azure-devops/azure/devops/v5_0/work/work_client.py index 9089f47e..68f79c8b 100644 --- a/azure-devops/azure/devops/v4_1/work/work_client.py +++ b/azure-devops/azure/devops/v5_0/work/work_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def get_backlog_configurations(self, team_context): """GetBacklogConfigurations. Gets backlog configuration for a team - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -50,16 +50,16 @@ def get_backlog_configurations(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='7799f497-3cb5-4f16-ad4f-5cd06012db64', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('BacklogConfiguration', response) def get_backlog_level_work_items(self, team_context, backlog_id): """GetBacklogLevelWorkItems. [Preview API] Get a list of work items within a backlog level - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str backlog_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -82,16 +82,16 @@ def get_backlog_level_work_items(self, team_context, backlog_id): route_values['backlogId'] = self._serialize.url('backlog_id', backlog_id, 'str') response = self._send(http_method='GET', location_id='7c468d96-ab1d-4294-a360-92f07e9ccd98', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('BacklogLevelWorkItems', response) def get_backlog(self, team_context, id): """GetBacklog. [Preview API] Get a backlog level - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: The id of the backlog level - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -114,14 +114,14 @@ def get_backlog(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='a93726f9-7867-4e38-b4f2-0bfafc2f6a94', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('BacklogLevelConfiguration', response) def get_backlogs(self, team_context): """GetBacklogs. [Preview API] List all backlog levels - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :rtype: [BacklogLevelConfiguration] """ project = None @@ -143,7 +143,7 @@ def get_backlogs(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='a93726f9-7867-4e38-b4f2-0bfafc2f6a94', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[BacklogLevelConfiguration]', self._unwrap_collection(response)) @@ -158,14 +158,14 @@ def get_column_suggested_values(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): """GetBoardMappingParentItems. [Preview API] Returns the list of parent field filter model for the given list of workitem ids - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str child_backlog_context_category_ref_name: :param [int] workitem_ids: :rtype: [ParentChildWIMap] @@ -195,7 +195,7 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat query_parameters['workitemIds'] = self._serialize.query('workitem_ids', workitem_ids, 'str') response = self._send(http_method='GET', location_id='186abea3-5c35-432f-9e28-7a15b4312a0e', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ParentChildWIMap]', self._unwrap_collection(response)) @@ -211,16 +211,16 @@ def get_row_suggested_values(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board(self, team_context, id): """GetBoard. Get board - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -243,14 +243,14 @@ def get_board(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Board', response) def get_boards(self, team_context): """GetBoards. Get boards - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :rtype: [BoardReference] """ project = None @@ -272,7 +272,7 @@ def get_boards(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BoardReference]', self._unwrap_collection(response)) @@ -280,7 +280,7 @@ def set_board_options(self, options, team_context, id): """SetBoardOptions. Update board options :param {str} options: options to updated - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either category plural name (Eg:"Stories") or guid :rtype: {str} """ @@ -306,7 +306,7 @@ def set_board_options(self, options, team_context, id): content = self._serialize.body(options, '{str}') response = self._send(http_method='PUT', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('{str}', self._unwrap_collection(response)) @@ -314,9 +314,9 @@ def set_board_options(self, options, team_context, id): def get_board_user_settings(self, team_context, board): """GetBoardUserSettings. [Preview API] Get board user settings for a board id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Board ID or Name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -339,7 +339,7 @@ def get_board_user_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('BoardUserSettings', response) @@ -347,9 +347,9 @@ def update_board_user_settings(self, board_user_settings, team_context, board): """UpdateBoardUserSettings. [Preview API] Update board user settings for the board id :param {str} board_user_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -373,7 +373,7 @@ def update_board_user_settings(self, board_user_settings, team_context, board): content = self._serialize.body(board_user_settings, '{str}') response = self._send(http_method='PATCH', location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('BoardUserSettings', response) @@ -381,7 +381,7 @@ def update_board_user_settings(self, board_user_settings, team_context, board): def get_capacities(self, team_context, iteration_id): """GetCapacities. Get a team's capacity - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :rtype: [TeamMemberCapacity] """ @@ -406,17 +406,17 @@ def get_capacities(self, team_context, iteration_id): route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) def get_capacity(self, team_context, iteration_id, team_member_id): """GetCapacity. Get a team member's capacity - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :param str team_member_id: ID of the team member - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -441,7 +441,7 @@ def get_capacity(self, team_context, iteration_id, team_member_id): route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TeamMemberCapacity', response) @@ -449,7 +449,7 @@ def replace_capacities(self, capacities, team_context, iteration_id): """ReplaceCapacities. Replace a team's capacity :param [TeamMemberCapacity] capacities: Team capacity to replace - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :rtype: [TeamMemberCapacity] """ @@ -475,7 +475,7 @@ def replace_capacities(self, capacities, team_context, iteration_id): content = self._serialize.body(capacities, '[TeamMemberCapacity]') response = self._send(http_method='PUT', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) @@ -483,11 +483,11 @@ def replace_capacities(self, capacities, team_context, iteration_id): def update_capacity(self, patch, team_context, iteration_id, team_member_id): """UpdateCapacity. Update a team member's capacity - :param :class:` ` patch: Updated capacity - :param :class:` ` team_context: The team context for the operation + :param :class:` ` patch: Updated capacity + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration :param str team_member_id: ID of the team member - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -513,7 +513,7 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): content = self._serialize.body(patch, 'CapacityPatch') response = self._send(http_method='PATCH', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TeamMemberCapacity', response) @@ -521,9 +521,9 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): def get_board_card_rule_settings(self, team_context, board): """GetBoardCardRuleSettings. Get board card Rule settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -546,17 +546,17 @@ def get_board_card_rule_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('BoardCardRuleSettings', response) def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): """UpdateBoardCardRuleSettings. Update board card Rule settings for the board id or board by name - :param :class:` ` board_card_rule_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` board_card_rule_settings: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -580,7 +580,7 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context content = self._serialize.body(board_card_rule_settings, 'BoardCardRuleSettings') response = self._send(http_method='PATCH', location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('BoardCardRuleSettings', response) @@ -588,9 +588,9 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context def get_board_card_settings(self, team_context, board): """GetBoardCardSettings. Get board card settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -613,17 +613,17 @@ def get_board_card_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('BoardCardSettings', response) def update_board_card_settings(self, board_card_settings_to_save, team_context, board): """UpdateBoardCardSettings. Update board card settings for the board id or board by name - :param :class:` ` board_card_settings_to_save: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` board_card_settings_to_save: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -647,7 +647,7 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, content = self._serialize.body(board_card_settings_to_save, 'BoardCardSettings') response = self._send(http_method='PUT', location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('BoardCardSettings', response) @@ -655,10 +655,10 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, def get_board_chart(self, team_context, board, name): """GetBoardChart. Get a board chart - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -683,14 +683,14 @@ def get_board_chart(self, team_context, board, name): route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('BoardChart', response) def get_board_charts(self, team_context, board): """GetBoardCharts. Get board charts - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :rtype: [BoardChartReference] """ @@ -715,18 +715,18 @@ def get_board_charts(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BoardChartReference]', self._unwrap_collection(response)) def update_board_chart(self, chart, team_context, board, name): """UpdateBoardChart. Update a board chart - :param :class:` ` chart: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` chart: + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -752,7 +752,7 @@ def update_board_chart(self, chart, team_context, board, name): content = self._serialize.body(chart, 'BoardChart') response = self._send(http_method='PATCH', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('BoardChart', response) @@ -760,7 +760,7 @@ def update_board_chart(self, chart, team_context, board, name): def get_board_columns(self, team_context, board): """GetBoardColumns. Get columns on a board - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardColumn] """ @@ -785,7 +785,7 @@ def get_board_columns(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) @@ -793,7 +793,7 @@ def update_board_columns(self, board_columns, team_context, board): """UpdateBoardColumns. Update columns on a board :param [BoardColumn] board_columns: List of board columns to update - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardColumn] """ @@ -819,7 +819,7 @@ def update_board_columns(self, board_columns, team_context, board): content = self._serialize.body(board_columns, '[BoardColumn]') response = self._send(http_method='PUT', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) @@ -832,7 +832,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. :param datetime start_date: The start date of timeline :param datetime end_date: The end date of timeline - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -848,7 +848,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None query_parameters['endDate'] = self._serialize.query('end_date', end_date, 'iso-8601') response = self._send(http_method='GET', location_id='bdd0834e-101f-49f0-a6ae-509f384a12b4', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('DeliveryViewData', response) @@ -856,7 +856,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None def delete_team_iteration(self, team_context, id): """DeleteTeamIteration. Delete a team's iteration by iterationId - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: ID of the iteration """ project = None @@ -880,15 +880,15 @@ def delete_team_iteration(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') self._send(http_method='DELETE', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1', + version='5.0', route_values=route_values) def get_team_iteration(self, team_context, id): """GetTeamIteration. Get team's iteration by iterationId - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -911,14 +911,14 @@ def get_team_iteration(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TeamSettingsIteration', response) def get_team_iterations(self, team_context, timeframe=None): """GetTeamIterations. Get a team's iterations using timeframe filter - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str timeframe: A filter for which iterations are returned based on relative time. Only Current is supported currently. :rtype: [TeamSettingsIteration] """ @@ -944,7 +944,7 @@ def get_team_iterations(self, team_context, timeframe=None): query_parameters['$timeframe'] = self._serialize.query('timeframe', timeframe, 'str') response = self._send(http_method='GET', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TeamSettingsIteration]', self._unwrap_collection(response)) @@ -952,9 +952,9 @@ def get_team_iterations(self, team_context, timeframe=None): def post_team_iteration(self, iteration, team_context): """PostTeamIteration. Add an iteration to the team - :param :class:` ` iteration: Iteration to add - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` iteration: Iteration to add + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -976,7 +976,7 @@ def post_team_iteration(self, iteration, team_context): content = self._serialize.body(iteration, 'TeamSettingsIteration') response = self._send(http_method='POST', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TeamSettingsIteration', response) @@ -984,9 +984,9 @@ def post_team_iteration(self, iteration, team_context): def create_plan(self, posted_plan, project): """CreatePlan. Add a new plan for the team - :param :class:` ` posted_plan: Plan definition + :param :class:` ` posted_plan: Plan definition :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -994,7 +994,7 @@ def create_plan(self, posted_plan, project): content = self._serialize.body(posted_plan, 'CreatePlan') response = self._send(http_method='POST', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('Plan', response) @@ -1012,7 +1012,7 @@ def delete_plan(self, project, id): route_values['id'] = self._serialize.url('id', id, 'str') self._send(http_method='DELETE', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1', + version='5.0', route_values=route_values) def get_plan(self, project, id): @@ -1020,7 +1020,7 @@ def get_plan(self, project, id): Get the information for the specified plan :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1029,7 +1029,7 @@ def get_plan(self, project, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('Plan', response) @@ -1044,17 +1044,17 @@ def get_plans(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[Plan]', self._unwrap_collection(response)) def update_plan(self, updated_plan, project, id): """UpdatePlan. Update the information for the specified plan - :param :class:` ` updated_plan: Plan definition to be updated + :param :class:` ` updated_plan: Plan definition to be updated :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1064,7 +1064,7 @@ def update_plan(self, updated_plan, project, id): content = self._serialize.body(updated_plan, 'UpdatePlan') response = self._send(http_method='PUT', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('Plan', response) @@ -1073,21 +1073,21 @@ def get_process_configuration(self, project): """GetProcessConfiguration. [Preview API] Get process configuration :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='f901ba42-86d2-4b0c-89c1-3f86d06daa84', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('ProcessConfiguration', response) def get_board_rows(self, team_context, board): """GetBoardRows. Get rows on a board - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardRow] """ @@ -1112,7 +1112,7 @@ def get_board_rows(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[BoardRow]', self._unwrap_collection(response)) @@ -1120,7 +1120,7 @@ def update_board_rows(self, board_rows, team_context, board): """UpdateBoardRows. Update rows on a board :param [BoardRow] board_rows: List of board rows to update - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: Name or ID of the specific board :rtype: [BoardRow] """ @@ -1146,7 +1146,7 @@ def update_board_rows(self, board_rows, team_context, board): content = self._serialize.body(board_rows, '[BoardRow]') response = self._send(http_method='PUT', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('[BoardRow]', self._unwrap_collection(response)) @@ -1154,9 +1154,9 @@ def update_board_rows(self, board_rows, team_context, board): def get_team_days_off(self, team_context, iteration_id): """GetTeamDaysOff. Get team's days off for an iteration - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1179,17 +1179,17 @@ def get_team_days_off(self, team_context, iteration_id): route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') response = self._send(http_method='GET', location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TeamSettingsDaysOff', response) def update_team_days_off(self, days_off_patch, team_context, iteration_id): """UpdateTeamDaysOff. Set a team's days off for an iteration - :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates - :param :class:` ` team_context: The team context for the operation + :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1213,7 +1213,7 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): content = self._serialize.body(days_off_patch, 'TeamSettingsDaysOffPatch') response = self._send(http_method='PATCH', location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TeamSettingsDaysOff', response) @@ -1221,8 +1221,8 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): def get_team_field_values(self, team_context): """GetTeamFieldValues. Get a collection of team field values - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1243,16 +1243,16 @@ def get_team_field_values(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TeamFieldValues', response) def update_team_field_values(self, patch, team_context): """UpdateTeamFieldValues. Update team field values - :param :class:` ` patch: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1274,7 +1274,7 @@ def update_team_field_values(self, patch, team_context): content = self._serialize.body(patch, 'TeamFieldValuesPatch') response = self._send(http_method='PATCH', location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TeamFieldValues', response) @@ -1282,8 +1282,8 @@ def update_team_field_values(self, patch, team_context): def get_team_settings(self, team_context): """GetTeamSettings. Get a team's settings - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1304,16 +1304,16 @@ def get_team_settings(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('TeamSetting', response) def update_team_settings(self, team_settings_patch, team_context): """UpdateTeamSettings. Update a team's settings - :param :class:` ` team_settings_patch: TeamSettings changes - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_settings_patch: TeamSettings changes + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1335,7 +1335,7 @@ def update_team_settings(self, team_settings_patch, team_context): content = self._serialize.body(team_settings_patch, 'TeamSettingsPatch') response = self._send(http_method='PATCH', location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('TeamSetting', response) @@ -1343,9 +1343,9 @@ def update_team_settings(self, team_settings_patch, team_context): def get_iteration_work_items(self, team_context, iteration_id): """GetIterationWorkItems. [Preview API] Get work items for iteration - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str iteration_id: ID of the iteration - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1368,7 +1368,7 @@ def get_iteration_work_items(self, team_context, iteration_id): route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') response = self._send(http_method='GET', location_id='5b3ef1a6-d3ab-44cd-bafd-c7f45db850fa', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('IterationWorkItems', response) diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking/__init__.py similarity index 97% rename from azure-devops/azure/devops/v4_1/work_item_tracking/__init__.py rename to azure-devops/azure/devops/v5_0/work_item_tracking/__init__.py index edaa431d..e77af51a 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking/__init__.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking/__init__.py @@ -25,10 +25,10 @@ 'Link', 'ProjectWorkItemStateColors', 'ProvisioningResult', + 'QueryBatchGetRequest', 'QueryHierarchyItem', 'QueryHierarchyItemsResult', 'ReferenceLinks', - 'ReportingWorkItemLink', 'ReportingWorkItemLinksBatch', 'ReportingWorkItemRevisionsBatch', 'ReportingWorkItemRevisionsFilter', @@ -37,6 +37,7 @@ 'Wiql', 'WorkArtifactLink', 'WorkItem', + 'WorkItemBatchGetRequest', 'WorkItemClassificationNode', 'WorkItemComment', 'WorkItemComments', diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking/models.py similarity index 90% rename from azure-devops/azure/devops/v4_1/work_item_tracking/models.py rename to azure-devops/azure/devops/v5_0/work_item_tracking/models.py index 3e450e84..9aadf25f 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking/models.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking/models.py @@ -15,7 +15,7 @@ class AccountMyWorkResult(Model): :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit :type query_size_limit_exceeded: bool :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` """ _attribute_map = { @@ -245,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -292,6 +292,8 @@ class IdentityRef(GraphSubjectBase): :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: @@ -309,11 +311,12 @@ class IdentityRef(GraphSubjectBase): '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, profile_url=None, unique_name=None): + 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 @@ -321,6 +324,7 @@ def __init__(self, _links=None, descriptor=None, display_name=None, url=None, di 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 @@ -329,7 +333,7 @@ class IdentityReference(IdentityRef): """IdentityReference. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -346,6 +350,8 @@ class IdentityReference(IdentityRef): :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: @@ -366,14 +372,15 @@ class IdentityReference(IdentityRef): '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'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, id=None, name=None): - super(IdentityReference, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name) + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None, id=None, name=None): + super(IdentityReference, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, is_deleted_in_origin=is_deleted_in_origin, profile_url=profile_url, unique_name=unique_name) self.id = id self.name = name @@ -436,7 +443,7 @@ class ProjectWorkItemStateColors(Model): :param project_name: Project name :type project_name: str :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` """ _attribute_map = { @@ -466,6 +473,30 @@ def __init__(self, provisioning_import_events=None): self.provisioning_import_events = provisioning_import_events +class QueryBatchGetRequest(Model): + """QueryBatchGetRequest. + + :param expand: The expand parameters for queries. Possible options are { None, Wiql, Clauses, All, Minimal } + :type expand: object + :param error_policy: The flag to control error policy in a query batch request. Possible options are { Fail, Omit }. + :type error_policy: object + :param ids: The requested query ids + :type ids: list of str + """ + + _attribute_map = { + 'expand': {'key': '$expand', 'type': 'object'}, + 'error_policy': {'key': 'errorPolicy', 'type': 'object'}, + 'ids': {'key': 'ids', 'type': '[str]'} + } + + def __init__(self, expand=None, error_policy=None, ids=None): + super(QueryBatchGetRequest, self).__init__() + self.expand = expand + self.error_policy = error_policy + self.ids = ids + + class QueryHierarchyItemsResult(Model): """QueryHierarchyItemsResult. @@ -474,7 +505,7 @@ class QueryHierarchyItemsResult(Model): :param has_more: Indicates if the max return limit was hit but there are still more items :type has_more: bool :param value: The list of items - :type value: list of :class:`QueryHierarchyItem ` + :type value: list of :class:`QueryHierarchyItem ` """ _attribute_map = { @@ -506,54 +537,6 @@ def __init__(self, links=None): self.links = links -class ReportingWorkItemLink(Model): - """ReportingWorkItemLink. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param changed_operation: - :type changed_operation: object - :param comment: - :type comment: str - :param is_active: - :type is_active: bool - :param link_type: - :type link_type: str - :param rel: - :type rel: str - :param source_id: - :type source_id: int - :param target_id: - :type target_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'changed_operation': {'key': 'changedOperation', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'link_type': {'key': 'linkType', 'type': 'str'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'int'}, - 'target_id': {'key': 'targetId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, changed_operation=None, comment=None, is_active=None, link_type=None, rel=None, source_id=None, target_id=None): - super(ReportingWorkItemLink, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.changed_operation = changed_operation - self.comment = comment - self.is_active = is_active - self.link_type = link_type - self.rel = rel - self.source_id = source_id - self.target_id = target_id - - class ReportingWorkItemRevisionsFilter(Model): """ReportingWorkItemRevisionsFilter. @@ -686,6 +669,38 @@ def __init__(self, artifact_type=None, link_type=None, tool_type=None): self.tool_type = tool_type +class WorkItemBatchGetRequest(Model): + """WorkItemBatchGetRequest. + + :param expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All } + :type expand: object + :param as_of: AsOf UTC date time string + :type as_of: datetime + :param error_policy: The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}. + :type error_policy: object + :param fields: The requested fields + :type fields: list of str + :param ids: The requested work item ids + :type ids: list of int + """ + + _attribute_map = { + 'expand': {'key': '$expand', 'type': 'object'}, + 'as_of': {'key': 'asOf', 'type': 'iso-8601'}, + 'error_policy': {'key': 'errorPolicy', 'type': 'object'}, + 'fields': {'key': 'fields', 'type': '[str]'}, + 'ids': {'key': 'ids', 'type': '[int]'} + } + + def __init__(self, expand=None, as_of=None, error_policy=None, fields=None, ids=None): + super(WorkItemBatchGetRequest, self).__init__() + self.expand = expand + self.as_of = as_of + self.error_policy = error_policy + self.fields = fields + self.ids = ids + + class WorkItemDeleteReference(Model): """WorkItemDeleteReference. @@ -860,9 +875,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -910,17 +925,17 @@ class WorkItemQueryClause(Model): """WorkItemQueryClause. :param clauses: Child clauses if the current clause is a logical operator - :type clauses: list of :class:`WorkItemQueryClause ` + :type clauses: list of :class:`WorkItemQueryClause ` :param field: Field associated with condition - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` :param field_value: Right side of the condition when a field to field comparison - :type field_value: :class:`WorkItemFieldReference ` + :type field_value: :class:`WorkItemFieldReference ` :param is_field_value: Determines if this is a field to field comparison :type is_field_value: bool :param logical_operator: Logical operator separating the condition clause :type logical_operator: object :param operator: The field operator - :type operator: :class:`WorkItemFieldOperation ` + :type operator: :class:`WorkItemFieldOperation ` :param value: Right side of the condition when a field to value comparison :type value: str """ @@ -952,17 +967,17 @@ class WorkItemQueryResult(Model): :param as_of: The date the query was run in the context of. :type as_of: datetime :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param query_result_type: The result type :type query_result_type: object :param query_type: The type of the query :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param work_item_relations: The work item links returned by the query. - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` :param work_items: The work items returned by the query. - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -992,7 +1007,7 @@ class WorkItemQuerySortColumn(Model): :param descending: The direction to sort by. :type descending: bool :param field: A work item field. - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1051,11 +1066,11 @@ class WorkItemRelationUpdates(Model): """WorkItemRelationUpdates. :param added: List of newly added relations. - :type added: list of :class:`WorkItemRelation ` + :type added: list of :class:`WorkItemRelation ` :param removed: List of removed relations. - :type removed: list of :class:`WorkItemRelation ` + :type removed: list of :class:`WorkItemRelation ` :param updated: List of updated relations. - :type updated: list of :class:`WorkItemRelation ` + :type updated: list of :class:`WorkItemRelation ` """ _attribute_map = { @@ -1191,7 +1206,7 @@ class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str """ @@ -1224,7 +1239,7 @@ class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1273,7 +1288,7 @@ class WorkItemTypeStateColors(Model): """WorkItemTypeStateColors. :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` + :type state_colors: list of :class:`WorkItemStateColor ` :param work_item_type_name: Work item type name :type work_item_type_name: str """ @@ -1379,7 +1394,7 @@ class WorkItemDelete(WorkItemDeleteReference): :param url: REST API URL of the resource :type url: str :param resource: The work item object that was deleted. - :type resource: :class:`WorkItem ` + :type resource: :class:`WorkItem ` """ _attribute_map = { @@ -1406,7 +1421,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1425,23 +1440,25 @@ class WorkItemType(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param color: The color. :type color: str :param description: The description of the work item type. :type description: str :param field_instances: The fields that exist on the work item type. - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` :param fields: The fields that exist on the work item type. - :type fields: list of :class:`WorkItemTypeFieldInstance ` + :type fields: list of :class:`WorkItemTypeFieldInstance ` :param icon: The icon of the work item type. - :type icon: :class:`WorkItemIcon ` + :type icon: :class:`WorkItemIcon ` :param is_disabled: True if work item type is disabled :type is_disabled: bool :param name: Gets the name of the work item type. :type name: str :param reference_name: The reference name of the work item type. :type reference_name: str + :param states: Gets state information for the work item type. + :type states: list of :class:`WorkItemStateColor ` :param transitions: Gets the various state transition mappings in the work item type. :type transitions: dict :param xml_form: The XML form. @@ -1459,11 +1476,12 @@ class WorkItemType(WorkItemTrackingResource): 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateColor]'}, 'transitions': {'key': 'transitions', 'type': '{[WorkItemStateTransition]}'}, 'xml_form': {'key': 'xmlForm', 'type': 'str'} } - def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, is_disabled=None, name=None, reference_name=None, transitions=None, xml_form=None): + def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, is_disabled=None, name=None, reference_name=None, states=None, transitions=None, xml_form=None): super(WorkItemType, self).__init__(url=url, _links=_links) self.color = color self.description = description @@ -1473,6 +1491,7 @@ def __init__(self, url=None, _links=None, color=None, description=None, field_in self.is_disabled = is_disabled self.name = name self.reference_name = reference_name + self.states = states self.transitions = transitions self.xml_form = xml_form @@ -1483,15 +1502,15 @@ class WorkItemTypeCategory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_work_item_type: Gets or sets the default type of the work item. - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param name: The name of the category. :type name: str :param reference_name: The reference name of the category. :type reference_name: str :param work_item_types: The work item types that belond to the category. - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -1523,7 +1542,7 @@ class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1555,17 +1574,17 @@ class WorkItemUpdate(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: List of updates to fields. :type fields: dict :param id: ID of update. :type id: int :param relations: List of updates to relations. - :type relations: :class:`WorkItemRelationUpdates ` + :type relations: :class:`WorkItemRelationUpdates ` :param rev: The revision number of work item update. :type rev: int :param revised_by: Identity for the work item update. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The work item updates revision date. :type revised_date: datetime :param work_item_id: The work item ID. @@ -1601,9 +1620,9 @@ class FieldDependentRule(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dependent_fields: The dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1623,15 +1642,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param children: The child query items inside a query folder. - :type children: list of :class:`QueryHierarchyItem ` + :type children: list of :class:`QueryHierarchyItem ` :param clauses: The clauses for a flat query. - :type clauses: :class:`WorkItemQueryClause ` + :type clauses: :class:`WorkItemQueryClause ` :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param created_by: The identity who created the query item. - :type created_by: :class:`IdentityReference ` + :type created_by: :class:`IdentityReference ` :param created_date: When the query item was created. :type created_date: datetime :param filter_options: The link query mode. @@ -1649,15 +1668,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param is_public: Indicates if this query item is public or private. :type is_public: bool :param last_executed_by: The identity who last ran the query. - :type last_executed_by: :class:`IdentityReference ` + :type last_executed_by: :class:`IdentityReference ` :param last_executed_date: When the query was last run. :type last_executed_date: datetime :param last_modified_by: The identity who last modified the query item. - :type last_modified_by: :class:`IdentityReference ` + :type last_modified_by: :class:`IdentityReference ` :param last_modified_date: When the query item was last modified. :type last_modified_date: datetime :param link_clauses: The link query clause. - :type link_clauses: :class:`WorkItemQueryClause ` + :type link_clauses: :class:`WorkItemQueryClause ` :param name: The name of the query item. :type name: str :param path: The path of the query item. @@ -1667,11 +1686,11 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param query_type: The type of query. :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param source_clauses: The source clauses in a tree or one-hop link query. - :type source_clauses: :class:`WorkItemQueryClause ` + :type source_clauses: :class:`WorkItemQueryClause ` :param target_clauses: The target clauses in a tree or one-hop link query. - :type target_clauses: :class:`WorkItemQueryClause ` + :type target_clauses: :class:`WorkItemQueryClause ` :param wiql: The WIQL text of the query :type wiql: str """ @@ -1741,13 +1760,13 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ @@ -1775,11 +1794,11 @@ class WorkItemClassificationNode(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. :type attributes: dict :param children: List of child nodes fetched. - :type children: list of :class:`WorkItemClassificationNode ` + :type children: list of :class:`WorkItemClassificationNode ` :param has_children: Flag that indicates if the classification node has any child nodes. :type has_children: bool :param id: Integer ID of the classification node. @@ -1821,9 +1840,9 @@ class WorkItemComment(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param revised_by: Identity of user who added the comment. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The date of comment. :type revised_date: datetime :param revision: The work item revision number. @@ -1855,9 +1874,9 @@ class WorkItemComments(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: Comments collection. - :type comments: list of :class:`WorkItemComment ` + :type comments: list of :class:`WorkItemComment ` :param count: The count of comments. :type count: int :param from_revision_count: Count of comments from the revision. @@ -1889,7 +1908,9 @@ class WorkItemField(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param can_sort_by: Indicates whether the field is sortable in server queries. + :type can_sort_by: bool :param description: The description of the field. :type description: str :param is_identity: Indicates whether this field is an identity field. @@ -1898,14 +1919,18 @@ class WorkItemField(WorkItemTrackingResource): :type is_picklist: bool :param is_picklist_suggested: Indicates whether this instance is a suggested picklist . :type is_picklist_suggested: bool + :param is_queryable: Indicates whether the field can be queried in the server. + :type is_queryable: bool :param name: The name of the field. :type name: str + :param picklist_id: If this field is picklist, the identifier of the picklist associated, otherwise null + :type picklist_id: str :param read_only: Indicates whether the field is [read only]. :type read_only: bool :param reference_name: The reference name of the field. :type reference_name: str :param supported_operations: The supported operations on this field. - :type supported_operations: list of :class:`WorkItemFieldOperation ` + :type supported_operations: list of :class:`WorkItemFieldOperation ` :param type: The type of the field. :type type: object :param usage: The usage of the field. @@ -1915,11 +1940,14 @@ class WorkItemField(WorkItemTrackingResource): _attribute_map = { 'url': {'key': 'url', 'type': 'str'}, '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'can_sort_by': {'key': 'canSortBy', 'type': 'bool'}, 'description': {'key': 'description', 'type': 'str'}, 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, 'is_picklist': {'key': 'isPicklist', 'type': 'bool'}, 'is_picklist_suggested': {'key': 'isPicklistSuggested', 'type': 'bool'}, + 'is_queryable': {'key': 'isQueryable', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, + 'picklist_id': {'key': 'picklistId', 'type': 'str'}, 'read_only': {'key': 'readOnly', 'type': 'bool'}, 'reference_name': {'key': 'referenceName', 'type': 'str'}, 'supported_operations': {'key': 'supportedOperations', 'type': '[WorkItemFieldOperation]'}, @@ -1927,13 +1955,16 @@ class WorkItemField(WorkItemTrackingResource): 'usage': {'key': 'usage', 'type': 'object'} } - def __init__(self, url=None, _links=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, name=None, read_only=None, reference_name=None, supported_operations=None, type=None, usage=None): + def __init__(self, url=None, _links=None, can_sort_by=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, is_queryable=None, name=None, picklist_id=None, read_only=None, reference_name=None, supported_operations=None, type=None, usage=None): super(WorkItemField, self).__init__(url=url, _links=_links) + self.can_sort_by = can_sort_by self.description = description self.is_identity = is_identity self.is_picklist = is_picklist self.is_picklist_suggested = is_picklist_suggested + self.is_queryable = is_queryable self.name = name + self.picklist_id = picklist_id self.read_only = read_only self.reference_name = reference_name self.supported_operations = supported_operations @@ -1947,11 +1978,11 @@ class WorkItemHistory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param value: @@ -1981,7 +2012,7 @@ class WorkItemTemplateReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. @@ -2015,7 +2046,7 @@ class WorkItemTrackingReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2041,7 +2072,7 @@ class WorkItemRelationType(WorkItemTrackingReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2069,7 +2100,7 @@ class WorkItemTemplate(WorkItemTemplateReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. @@ -2113,14 +2144,15 @@ def __init__(self, url=None, _links=None, description=None, id=None, name=None, 'Link', 'ProjectWorkItemStateColors', 'ProvisioningResult', + 'QueryBatchGetRequest', 'QueryHierarchyItemsResult', 'ReferenceLinks', - 'ReportingWorkItemLink', 'ReportingWorkItemRevisionsFilter', 'StreamedBatch', 'TeamContext', 'Wiql', 'WorkArtifactLink', + 'WorkItemBatchGetRequest', 'WorkItemDeleteReference', 'WorkItemDeleteShallowReference', 'WorkItemDeleteUpdate', diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking/work_item_tracking_client.py similarity index 86% rename from azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py rename to azure-devops/azure/devops/v5_0/work_item_tracking/work_item_tracking_client.py index 2434e79e..d578d5f6 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking/work_item_tracking_client.py @@ -32,15 +32,15 @@ def get_work_artifact_link_types(self): """ response = self._send(http_method='GET', location_id='1a31de40-e318-41cd-a6c6-881077df52e3', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('[WorkArtifactLink]', self._unwrap_collection(response)) def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): """QueryWorkItemsForArtifactUris. [Preview API] Queries work items linked to a given list of artifact URI. - :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. + :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -48,7 +48,7 @@ def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): content = self._serialize.body(artifact_uri_query, 'ArtifactUriQuery') response = self._send(http_method='POST', location_id='a9a9aa7a-8c09-44d3-ad1b-46e855c1e3d3', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('ArtifactUriQueryResult', response) @@ -61,7 +61,7 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ :param str file_name: The name of the file :param str upload_type: Attachment upload type: Simple or Chunked :param str area_path: Target project Area Path - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -80,7 +80,7 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content, @@ -108,7 +108,7 @@ def get_attachment_content(self, id, project=None, file_name=None, download=None query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -139,7 +139,7 @@ def get_attachment_zip(self, id, project=None, file_name=None, download=None, ** query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -171,7 +171,7 @@ def get_classification_nodes(self, project, ids, depth=None, error_policy=None): query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) @@ -191,7 +191,7 @@ def get_root_nodes(self, project, depth=None): query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') response = self._send(http_method='GET', location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) @@ -199,11 +199,11 @@ def get_root_nodes(self, project, depth=None): def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. Create new or update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -215,7 +215,7 @@ def create_or_update_classification_node(self, posted_node, project, structure_g content = self._serialize.body(posted_node, 'WorkItemClassificationNode') response = self._send(http_method='POST', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('WorkItemClassificationNode', response) @@ -240,7 +240,7 @@ def delete_classification_node(self, project, structure_group, path=None, reclas query_parameters['$reclassifyId'] = self._serialize.query('reclassify_id', reclassify_id, 'int') self._send(http_method='DELETE', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) @@ -251,7 +251,7 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. :param int depth: Depth of children to fetch. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -265,7 +265,7 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') response = self._send(http_method='GET', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemClassificationNode', response) @@ -273,11 +273,11 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non def update_classification_node(self, posted_node, project, structure_group, path=None): """UpdateClassificationNode. Update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -289,7 +289,7 @@ def update_classification_node(self, posted_node, project, structure_group, path content = self._serialize.body(posted_node, 'WorkItemClassificationNode') response = self._send(http_method='PATCH', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('WorkItemClassificationNode', response) @@ -300,7 +300,7 @@ def get_comment(self, id, revision, project=None): :param int id: Work item id :param int revision: Revision for which the comment need to be fetched :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -311,7 +311,7 @@ def get_comment(self, id, revision, project=None): route_values['revision'] = self._serialize.url('revision', revision, 'int') response = self._send(http_method='GET', location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values) return self._deserialize('WorkItemComment', response) @@ -323,7 +323,7 @@ def get_comments(self, id, project=None, from_revision=None, top=None, order=Non :param int from_revision: Revision from which comments are to be fetched (default is 1) :param int top: The number of comments to return (default is 200) :param str order: Ascending or descending by revision id (default is ascending) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -339,11 +339,29 @@ def get_comments(self, id, project=None, from_revision=None, top=None, order=Non query_parameters['order'] = self._serialize.query('order', order, 'str') response = self._send(http_method='GET', location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', - version='4.1-preview.2', + version='5.0-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemComments', response) + def create_field(self, work_item_field, project=None): + """CreateField. + Create a new field. + :param :class:` ` work_item_field: New field definition + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_field, 'WorkItemField') + response = self._send(http_method='POST', + location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WorkItemField', response) + def delete_field(self, field_name_or_ref_name, project=None): """DeleteField. Deletes the field. @@ -357,7 +375,7 @@ def delete_field(self, field_name_or_ref_name, project=None): route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') self._send(http_method='DELETE', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1', + version='5.0', route_values=route_values) def get_field(self, field_name_or_ref_name, project=None): @@ -365,7 +383,7 @@ def get_field(self, field_name_or_ref_name, project=None): Gets information on a specific field. :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -374,7 +392,7 @@ def get_field(self, field_name_or_ref_name, project=None): route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WorkItemField', response) @@ -393,37 +411,18 @@ def get_fields(self, project=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemField]', self._unwrap_collection(response)) - def update_field(self, work_item_field, field_name_or_ref_name, project=None): - """UpdateField. - Updates the field. - :param :class:` ` work_item_field: New field definition - :param str field_name_or_ref_name: Field simple name or reference name - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if field_name_or_ref_name is not None: - route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') - content = self._serialize.body(work_item_field, 'WorkItemField') - self._send(http_method='PATCH', - location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.1', - route_values=route_values, - content=content) - def create_query(self, posted_query, project, query): """CreateQuery. Creates a query, or moves a query. - :param :class:` ` posted_query: The query to create. + :param :class:` ` posted_query: The query to create. :param str project: Project ID or project name - :param str query: The parent path for the query to create. - :rtype: :class:` ` + :param str query: The parent id or path under which the query is to be created. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -433,7 +432,7 @@ def create_query(self, posted_query, project, query): content = self._serialize.body(posted_query, 'QueryHierarchyItem') response = self._send(http_method='POST', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('QueryHierarchyItem', response) @@ -451,7 +450,7 @@ def delete_query(self, project, query): route_values['query'] = self._serialize.url('query', query, 'str') self._send(http_method='DELETE', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1', + version='5.0', route_values=route_values) def get_queries(self, project, expand=None, depth=None, include_deleted=None): @@ -475,7 +474,7 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) @@ -484,11 +483,11 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non """GetQuery. Retrieves an individual query and its children :param str project: Project ID or project name - :param str query: + :param str query: ID or path of the query. :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. :param int depth: In the folder of queries, return child queries and folders to this depth. :param bool include_deleted: Include deleted queries and folders - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -504,7 +503,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QueryHierarchyItem', response) @@ -517,7 +516,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted :param int top: The number of queries to return (Default is 50 and maximum is 200). :param str expand: :param bool include_deleted: Include deleted queries and folders - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -533,7 +532,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QueryHierarchyItemsResult', response) @@ -541,11 +540,11 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted def update_query(self, query_update, project, query, undelete_descendants=None): """UpdateQuery. Update a query or a folder. This allows you to update, rename and move queries and folders. - :param :class:` ` query_update: The query to update. + :param :class:` ` query_update: The query to update. :param str project: Project ID or project name - :param str query: The path for the query to update. + :param str query: The ID or path for the query to update. :param bool undelete_descendants: Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -558,12 +557,30 @@ def update_query(self, query_update, project, query, undelete_descendants=None): content = self._serialize.body(query_update, 'QueryHierarchyItem') response = self._send(http_method='PATCH', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('QueryHierarchyItem', response) + def get_queries_batch(self, query_get_request, project): + """GetQueriesBatch. + Gets a list of queries by ids (Maximum 1000) + :param :class:` ` query_get_request: + :param str project: Project ID or project name + :rtype: [QueryHierarchyItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query_get_request, 'QueryBatchGetRequest') + response = self._send(http_method='POST', + location_id='549816f9-09b0-4e75-9e81-01fbfcd07426', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) + def destroy_work_item(self, id, project=None): """DestroyWorkItem. Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. @@ -577,7 +594,7 @@ def destroy_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') self._send(http_method='DELETE', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1', + version='5.0', route_values=route_values) def get_deleted_work_item(self, id, project=None): @@ -585,7 +602,7 @@ def get_deleted_work_item(self, id, project=None): Gets a deleted work item from Recycle Bin. :param int id: ID of the work item to be returned :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -594,7 +611,7 @@ def get_deleted_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WorkItemDelete', response) @@ -614,7 +631,7 @@ def get_deleted_work_items(self, ids, project=None): query_parameters['ids'] = self._serialize.query('ids', ids, 'str') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemDeleteReference]', self._unwrap_collection(response)) @@ -630,17 +647,17 @@ def get_deleted_work_item_shallow_references(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[WorkItemDeleteShallowReference]', self._unwrap_collection(response)) def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. Restores the deleted work item from Recycle Bin. - :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false + :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false :param int id: ID of the work item to be restored :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -650,20 +667,23 @@ def restore_work_item(self, payload, id, project=None): content = self._serialize.body(payload, 'WorkItemDeleteUpdate') response = self._send(http_method='PATCH', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.1', + version='5.0', route_values=route_values, content=content) return self._deserialize('WorkItemDelete', response) - def get_revision(self, id, revision_number, expand=None): + def get_revision(self, id, revision_number, project=None, expand=None): """GetRevision. Returns a fully hydrated work item for the requested revision :param int id: :param int revision_number: + :param str project: Project ID or project name :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') if revision_number is not None: @@ -673,21 +693,24 @@ def get_revision(self, id, revision_number, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) - def get_revisions(self, id, top=None, skip=None, expand=None): + def get_revisions(self, id, project=None, top=None, skip=None, expand=None): """GetRevisions. Returns the list of fully hydrated work item revisions, paged. :param int id: + :param str project: Project ID or project name :param int top: :param int skip: :param str expand: :rtype: [WorkItem] """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -699,7 +722,7 @@ def get_revisions(self, id, top=None, skip=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItem]', self._unwrap_collection(response)) @@ -707,9 +730,9 @@ def get_revisions(self, id, top=None, skip=None, expand=None): def create_template(self, template, team_context): """CreateTemplate. [Preview API] Creates a template - :param :class:` ` template: Template contents - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` template: Template contents + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -731,7 +754,7 @@ def create_template(self, template, team_context): content = self._serialize.body(template, 'WorkItemTemplate') response = self._send(http_method='POST', location_id='6a90345f-a676-4969-afce-8e163e1d5642', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('WorkItemTemplate', response) @@ -739,7 +762,7 @@ def create_template(self, template, team_context): def get_templates(self, team_context, workitemtypename=None): """GetTemplates. [Preview API] Gets template - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str workitemtypename: Optional, When specified returns templates for given Work item type. :rtype: [WorkItemTemplateReference] """ @@ -765,7 +788,7 @@ def get_templates(self, team_context, workitemtypename=None): query_parameters['workitemtypename'] = self._serialize.query('workitemtypename', workitemtypename, 'str') response = self._send(http_method='GET', location_id='6a90345f-a676-4969-afce-8e163e1d5642', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemTemplateReference]', self._unwrap_collection(response)) @@ -773,7 +796,7 @@ def get_templates(self, team_context, workitemtypename=None): def delete_template(self, team_context, template_id): """DeleteTemplate. [Preview API] Deletes the template with given id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id """ project = None @@ -797,15 +820,15 @@ def delete_template(self, team_context, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') self._send(http_method='DELETE', location_id='fb10264a-8836-48a0-8033-1b0ccd2748d5', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) def get_template(self, team_context, template_id): """GetTemplate. [Preview API] Gets the template with specified id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -828,17 +851,17 @@ def get_template(self, team_context, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') response = self._send(http_method='GET', location_id='fb10264a-8836-48a0-8033-1b0ccd2748d5', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('WorkItemTemplate', response) def replace_template(self, template_content, team_context, template_id): """ReplaceTemplate. [Preview API] Replace template contents - :param :class:` ` template_content: Template contents to replace with - :param :class:` ` team_context: The team context for the operation + :param :class:` ` template_content: Template contents to replace with + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -862,38 +885,44 @@ def replace_template(self, template_content, team_context, template_id): content = self._serialize.body(template_content, 'WorkItemTemplate') response = self._send(http_method='PUT', location_id='fb10264a-8836-48a0-8033-1b0ccd2748d5', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, content=content) return self._deserialize('WorkItemTemplate', response) - def get_update(self, id, update_number): + def get_update(self, id, update_number, project=None): """GetUpdate. Returns a single update for a work item :param int id: :param int update_number: - :rtype: :class:` ` + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') if update_number is not None: route_values['updateNumber'] = self._serialize.url('update_number', update_number, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WorkItemUpdate', response) - def get_updates(self, id, top=None, skip=None): + def get_updates(self, id, project=None, top=None, skip=None): """GetUpdates. Returns a the deltas between work item revisions :param int id: + :param str project: Project ID or project name :param int top: :param int skip: :rtype: [WorkItemUpdate] """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -903,7 +932,7 @@ def get_updates(self, id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemUpdate]', self._unwrap_collection(response)) @@ -911,11 +940,11 @@ def get_updates(self, id, top=None, skip=None): def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. Gets the results of the query given its WIQL. - :param :class:` ` wiql: The query containing the WIQL. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` wiql: The query containing the WIQL. + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -942,18 +971,19 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): content = self._serialize.body(wiql, 'Wiql') response = self._send(http_method='POST', location_id='1a9c53f7-f243-4447-b110-35ef023636e4', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('WorkItemQueryResult', response) - def get_query_result_count(self, id, team_context=None, time_precision=None): + def get_query_result_count(self, id, team_context=None, time_precision=None, top=None): """GetQueryResultCount. Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. + :param int top: The max number of results to return. :rtype: int """ project = None @@ -978,20 +1008,23 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): query_parameters = {} if time_precision is not None: query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='HEAD', location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('int', response) - def query_by_id(self, id, team_context=None, time_precision=None): + def query_by_id(self, id, team_context=None, time_precision=None, top=None): """QueryById. Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. - :rtype: :class:` ` + :param int top: The max number of results to return. + :rtype: :class:` ` """ project = None team = None @@ -1015,9 +1048,11 @@ def query_by_id(self, id, team_context=None, time_precision=None): query_parameters = {} if time_precision is not None: query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemQueryResult', response) @@ -1028,7 +1063,7 @@ def get_work_item_icon_json(self, icon, color=None, v=None): :param str icon: The name of the icon :param str color: The 6-digit hex color for the icon :param int v: The version of the icon (used only for cache invalidation) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if icon is not None: @@ -1040,7 +1075,7 @@ def get_work_item_icon_json(self, icon, color=None, v=None): query_parameters['v'] = self._serialize.query('v', v, 'int') response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemIcon', response) @@ -1052,7 +1087,7 @@ def get_work_item_icons(self): """ response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.1-preview.1') + version='5.0-preview.1') return self._deserialize('[WorkItemIcon]', self._unwrap_collection(response)) def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): @@ -1073,7 +1108,7 @@ def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): query_parameters['v'] = self._serialize.query('v', v, 'int') response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='image/svg+xml') @@ -1083,6 +1118,34 @@ def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): callback = None return self._client.stream_download(response, callback=callback) + def get_work_item_icon_xaml(self, icon, color=None, v=None, **kwargs): + """GetWorkItemIconXaml. + [Preview API] Get a work item icon given the friendly name and icon color. + :param str icon: The name of the icon + :param str color: The 6-digit hex color for the icon + :param int v: The version of the icon (used only for cache invalidation) + :rtype: object + """ + route_values = {} + if icon is not None: + route_values['icon'] = self._serialize.url('icon', icon, 'str') + query_parameters = {} + if color is not None: + query_parameters['color'] = self._serialize.query('color', color, 'str') + if v is not None: + query_parameters['v'] = self._serialize.query('v', v, 'int') + response = self._send(http_method='GET', + location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='image/xaml+xml') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + def get_reporting_links_by_link_type(self, project=None, link_types=None, types=None, continuation_token=None, start_date_time=None): """GetReportingLinksByLinkType. Get a batch of work item links @@ -1091,7 +1154,7 @@ def get_reporting_links_by_link_type(self, project=None, link_types=None, types= :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. :param str continuation_token: Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. :param datetime start_date_time: Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1109,7 +1172,7 @@ def get_reporting_links_by_link_type(self, project=None, link_types=None, types= query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') response = self._send(http_method='GET', location_id='b5b5b6d0-0308-40a1-b3f4-b9bb3c66878f', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReportingWorkItemLinksBatch', response) @@ -1118,14 +1181,14 @@ def get_relation_type(self, relation): """GetRelationType. Gets the work item relation type definition. :param str relation: The relation name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if relation is not None: route_values['relation'] = self._serialize.url('relation', relation, 'str') response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WorkItemRelationType', response) @@ -1136,7 +1199,7 @@ def get_relation_types(self): """ response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.1') + version='5.0') return self._deserialize('[WorkItemRelationType]', self._unwrap_collection(response)) def read_reporting_revisions_get(self, project=None, fields=None, types=None, continuation_token=None, start_date_time=None, include_identity_ref=None, include_deleted=None, include_tag_ref=None, include_latest_only=None, expand=None, include_discussion_changes_only=None, max_page_size=None): @@ -1154,7 +1217,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed :param int max_page_size: The maximum number of results to return in this batch - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1186,7 +1249,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co query_parameters['$maxPageSize'] = self._serialize.query('max_page_size', max_page_size, 'int') response = self._send(http_method='GET', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReportingWorkItemRevisionsBatch', response) @@ -1194,12 +1257,12 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): """ReadReportingRevisionsPost. Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. - :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format + :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1214,7 +1277,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token content = self._serialize.body(filter, 'ReportingWorkItemRevisionsFilter') response = self._send(http_method='POST', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1223,13 +1286,13 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): """CreateWorkItem. Creates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item :param str project: Project ID or project name :param str type: The work item type of the work item to create :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1246,7 +1309,7 @@ def create_work_item(self, document, project, type, validate_only=None, bypass_r content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='POST', location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content, @@ -1261,7 +1324,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= :param str fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1277,7 +1340,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) @@ -1288,7 +1351,7 @@ def delete_work_item(self, id, project=None, destroy=None): :param int id: ID of the work item to be deleted :param str project: Project ID or project name :param bool destroy: Optional parameter, if set to true, the work item is deleted permanently - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1300,7 +1363,7 @@ def delete_work_item(self, id, project=None, destroy=None): query_parameters['destroy'] = self._serialize.query('destroy', destroy, 'bool') response = self._send(http_method='DELETE', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemDelete', response) @@ -1313,7 +1376,7 @@ def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1330,15 +1393,15 @@ def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None, error_policy=None): """GetWorkItems. - Returns a list of work items. - :param [int] ids: The comma-separated list of requested work item ids + Returns a list of work items (Maximum 200) + :param [int] ids: The comma-separated list of requested work item ids. (Maximum 200 ids allowed). :param str project: Project ID or project name :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string @@ -1364,7 +1427,7 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItem]', self._unwrap_collection(response)) @@ -1372,13 +1435,13 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. Updates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update :param str project: Project ID or project name :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1395,13 +1458,31 @@ def update_work_item(self, document, id, project=None, validate_only=None, bypas content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters, content=content, media_type='application/json-patch+json') return self._deserialize('WorkItem', response) + def get_work_items_batch(self, work_item_get_request, project=None): + """GetWorkItemsBatch. + Gets work items for a list of work item ids (Maximum 200) + :param :class:` ` work_item_get_request: + :param str project: Project ID or project name + :rtype: [WorkItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_get_request, 'WorkItemBatchGetRequest') + response = self._send(http_method='POST', + location_id='908509b6-4248-4475-a1cd-829139ba419f', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) + def get_work_item_next_states_on_checkin_action(self, ids, action=None): """GetWorkItemNextStatesOnCheckinAction. [Preview API] Returns the next state on the given work item IDs. @@ -1417,7 +1498,7 @@ def get_work_item_next_states_on_checkin_action(self, ids, action=None): query_parameters['action'] = self._serialize.query('action', action, 'str') response = self._send(http_method='GET', location_id='afae844b-e2f6-44c2-8053-17b3bb936a40', - version='4.1-preview.1', + version='5.0-preview.1', query_parameters=query_parameters) return self._deserialize('[WorkItemNextStateOnTransition]', self._unwrap_collection(response)) @@ -1432,7 +1513,7 @@ def get_work_item_type_categories(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[WorkItemTypeCategory]', self._unwrap_collection(response)) @@ -1441,7 +1522,7 @@ def get_work_item_type_category(self, project, category): Get specific work item type category by name. :param str project: Project ID or project name :param str category: The category name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1450,7 +1531,7 @@ def get_work_item_type_category(self, project, category): route_values['category'] = self._serialize.url('category', category, 'str') response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WorkItemTypeCategory', response) @@ -1459,7 +1540,7 @@ def get_work_item_type(self, project, type): Returns a work item type definition. :param str project: Project ID or project name :param str type: Work item type name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1468,7 +1549,7 @@ def get_work_item_type(self, project, type): route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('WorkItemType', response) @@ -1483,7 +1564,7 @@ def get_work_item_types(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.1', + version='5.0', route_values=route_values) return self._deserialize('[WorkItemType]', self._unwrap_collection(response)) @@ -1505,7 +1586,7 @@ def get_work_item_type_fields_with_references(self, project, type, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemTypeFieldWithReferences]', self._unwrap_collection(response)) @@ -1517,7 +1598,7 @@ def get_work_item_type_field_with_references(self, project, type, field, expand= :param str type: Work item type. :param str field: :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1531,7 +1612,7 @@ def get_work_item_type_field_with_references(self, project, type, field, expand= query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', - version='4.1', + version='5.0', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemTypeFieldWithReferences', response) @@ -1550,7 +1631,7 @@ def get_work_item_type_states(self, project, type): route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='7c9d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.1-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[WorkItemStateColor]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process/__init__.py similarity index 63% rename from azure-devops/azure/devops/v4_1/work_item_tracking_process/__init__.py rename to azure-devops/azure/devops/v5_0/work_item_tracking_process/__init__.py index 218f4d3f..438d8053 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process/__init__.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process/__init__.py @@ -9,25 +9,46 @@ from .models import * __all__ = [ + 'AddProcessWorkItemTypeFieldRequest', 'Control', 'CreateProcessModel', + 'CreateProcessRuleRequest', + 'CreateProcessWorkItemTypeRequest', 'Extension', 'FieldModel', 'FieldRuleModel', 'FormLayout', 'Group', + 'HideStateModel', 'Page', + 'PickList', + 'PickListMetadata', + 'ProcessBehavior', + 'ProcessBehaviorCreateRequest', + 'ProcessBehaviorField', + 'ProcessBehaviorReference', + 'ProcessBehaviorUpdateRequest', + 'ProcessInfo', 'ProcessModel', 'ProcessProperties', + 'ProcessRule', + 'ProcessWorkItemType', + 'ProcessWorkItemTypeField', 'ProjectReference', + 'RuleAction', 'RuleActionModel', + 'RuleCondition', 'RuleConditionModel', 'Section', 'UpdateProcessModel', + 'UpdateProcessRuleRequest', + 'UpdateProcessWorkItemTypeFieldRequest', + 'UpdateProcessWorkItemTypeRequest', 'WitContribution', 'WorkItemBehavior', 'WorkItemBehaviorField', 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', 'WorkItemStateResultModel', 'WorkItemTypeBehavior', 'WorkItemTypeModel', diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py new file mode 100644 index 00000000..30c0369a --- /dev/null +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py @@ -0,0 +1,1487 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AddProcessWorkItemTypeFieldRequest(Model): + """AddProcessWorkItemTypeFieldRequest. + + :param allow_groups: Allow setting field value to a group identity. Only applies to identity fields. + :type allow_groups: bool + :param default_value: The default value of the field. + :type default_value: object + :param read_only: If true the field cannot be edited. + :type read_only: bool + :param reference_name: Reference name of the field. + :type reference_name: str + :param required: If true the field cannot be empty. + :type required: bool + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'} + } + + def __init__(self, allow_groups=None, default_value=None, read_only=None, reference_name=None, required=None): + super(AddProcessWorkItemTypeFieldRequest, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.read_only = read_only + self.reference_name = reference_name + self.required = required + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited. from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field. + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: Order in which the control should appear in its group. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden . by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class CreateProcessModel(Model): + """CreateProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param parent_process_type_id: The ID of the parent process + :type parent_process_type_id: str + :param reference_name: Reference name of the process + :type reference_name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): + super(CreateProcessModel, self).__init__() + self.description = description + self.name = name + self.parent_process_type_id = parent_process_type_id + self.reference_name = reference_name + + +class CreateProcessRuleRequest(Model): + """CreateProcessRuleRequest. + + :param actions: List of actions to take when the rule is triggered. + :type actions: list of :class:`RuleAction ` + :param conditions: List of conditions when the rule should be triggered. + :type conditions: list of :class:`RuleCondition ` + :param is_disabled: Indicates if the rule is disabled. + :type is_disabled: bool + :param name: Name for the rule. + :type name: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleAction]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleCondition]'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, actions=None, conditions=None, is_disabled=None, name=None): + super(CreateProcessRuleRequest, self).__init__() + self.actions = actions + self.conditions = conditions + self.is_disabled = is_disabled + self.name = name + + +class CreateProcessWorkItemTypeRequest(Model): + """CreateProcessWorkItemTypeRequest. + + :param color: Color hexadecimal code to represent the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon to represent the work item type + :type icon: str + :param inherits_from: Parent work item type for work item type + :type inherits_from: str + :param is_disabled: True if the work item type need to be disabled + :type is_disabled: bool + :param name: Name of work item type + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'inherits_from': {'key': 'inheritsFrom', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, description=None, icon=None, inherits_from=None, is_disabled=None, name=None): + super(CreateProcessWorkItemTypeRequest, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.inherits_from = inherits_from + self.is_disabled = is_disabled + self.name = name + + +class Extension(Model): + """Extension. + + :param id: Id of the extension + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param is_identity: + :type is_identity: bool + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.is_identity = is_identity + self.name = name + self.type = type + self.url = url + + +class FieldRuleModel(Model): + """FieldRuleModel. + + :param actions: + :type actions: list of :class:`RuleActionModel ` + :param conditions: + :type conditions: list of :class:`RuleConditionModel ` + :param friendly_name: + :type friendly_name: str + :param id: + :type id: str + :param is_disabled: + :type is_disabled: bool + :param is_system: + :type is_system: bool + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_system': {'key': 'isSystem', 'type': 'bool'} + } + + def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): + super(FieldRuleModel, self).__init__() + self.actions = actions + self.conditions = conditions + self.friendly_name = friendly_name + self.id = id + self.is_disabled = is_disabled + self.is_system = is_system + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list. + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class PickListMetadata(Model): + """PickListMetadata. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Indicates whether items outside of suggested list are allowed + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: DataType of picklist + :type type: str + :param url: Url of the picklist + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadata, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url + + +class ProcessBehavior(Model): + """ProcessBehavior. + + :param color: Color. + :type color: str + :param customization: Indicates the type of customization on this work item. System behaviors are inherited from parent process but not modified. Inherited behaviors are modified modified behaviors that were inherited from parent process. Custom behaviors are behaviors created by user in current process. + :type customization: object + :param description: . Description + :type description: str + :param fields: Process Behavior Fields. + :type fields: list of :class:`ProcessBehaviorField ` + :param inherits: Parent behavior reference. + :type inherits: :class:`ProcessBehaviorReference ` + :param name: Behavior Name. + :type name: str + :param rank: Rank of the behavior + :type rank: int + :param reference_name: Behavior Id + :type reference_name: str + :param url: Url of the behavior. + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'customization': {'key': 'customization', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[ProcessBehaviorField]'}, + 'inherits': {'key': 'inherits', 'type': 'ProcessBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, customization=None, description=None, fields=None, inherits=None, name=None, rank=None, reference_name=None, url=None): + super(ProcessBehavior, self).__init__() + self.color = color + self.customization = customization + self.description = description + self.fields = fields + self.inherits = inherits + self.name = name + self.rank = rank + self.reference_name = reference_name + self.url = url + + +class ProcessBehaviorCreateRequest(Model): + """ProcessBehaviorCreateRequest. + + :param color: Color. + :type color: str + :param inherits: Parent behavior id. + :type inherits: str + :param name: Name of the behavior. + :type name: str + :param reference_name: ReferenceName is optional, if not specified will be auto-generated. + :type reference_name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, color=None, inherits=None, name=None, reference_name=None): + super(ProcessBehaviorCreateRequest, self).__init__() + self.color = color + self.inherits = inherits + self.name = name + self.reference_name = reference_name + + +class ProcessBehaviorField(Model): + """ProcessBehaviorField. + + :param name: Name of the field. + :type name: str + :param reference_name: Reference name of the field. + :type reference_name: str + :param url: Url to field. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(ProcessBehaviorField, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url + + +class ProcessBehaviorReference(Model): + """ProcessBehaviorReference. + + :param behavior_ref_name: Id of a Behavior. + :type behavior_ref_name: str + :param url: Url to behavior. + :type url: str + """ + + _attribute_map = { + 'behavior_ref_name': {'key': 'behaviorRefName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_ref_name=None, url=None): + super(ProcessBehaviorReference, self).__init__() + self.behavior_ref_name = behavior_ref_name + self.url = url + + +class ProcessBehaviorUpdateRequest(Model): + """ProcessBehaviorUpdateRequest. + + :param color: Color. + :type color: str + :param name: Behavior Name. + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(ProcessBehaviorUpdateRequest, self).__init__() + self.color = color + self.name = name + + +class ProcessInfo(Model): + """ProcessInfo. + + :param customization_type: Indicates the type of customization on this process. System Process is default process. Inherited Process is modified process that was System process before. + :type customization_type: object + :param description: Description of the process. + :type description: str + :param is_default: Is the process default. + :type is_default: bool + :param is_enabled: Is the process enabled. + :type is_enabled: bool + :param name: Name of the process. + :type name: str + :param parent_process_type_id: ID of the parent process. + :type parent_process_type_id: str + :param projects: Projects in this process to which the user is subscribed to. + :type projects: list of :class:`ProjectReference ` + :param reference_name: Reference name of the process. + :type reference_name: str + :param type_id: The ID of the process. + :type type_id: str + """ + + _attribute_map = { + 'customization_type': {'key': 'customizationType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, customization_type=None, description=None, is_default=None, is_enabled=None, name=None, parent_process_type_id=None, projects=None, reference_name=None, type_id=None): + super(ProcessInfo, self).__init__() + self.customization_type = customization_type + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name + self.parent_process_type_id = parent_process_type_id + self.projects = projects + self.reference_name = reference_name + self.type_id = type_id + + +class ProcessModel(Model): + """ProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param projects: Projects in this process + :type projects: list of :class:`ProjectReference ` + :param properties: Properties of the process + :type properties: :class:`ProcessProperties ` + :param reference_name: Reference name of the process + :type reference_name: str + :param type_id: The ID of the process + :type type_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): + super(ProcessModel, self).__init__() + self.description = description + self.name = name + self.projects = projects + self.properties = properties + self.reference_name = reference_name + self.type_id = type_id + + +class ProcessProperties(Model): + """ProcessProperties. + + :param class_: Class of the process. + :type class_: object + :param is_default: Is the process default process. + :type is_default: bool + :param is_enabled: Is the process enabled. + :type is_enabled: bool + :param parent_process_type_id: ID of the parent process. + :type parent_process_type_id: str + :param version: Version of the process. + :type version: str + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'object'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): + super(ProcessProperties, self).__init__() + self.class_ = class_ + self.is_default = is_default + self.is_enabled = is_enabled + self.parent_process_type_id = parent_process_type_id + self.version = version + + +class ProcessRule(CreateProcessRuleRequest): + """ProcessRule. + + :param actions: List of actions to take when the rule is triggered. + :type actions: list of :class:`RuleAction ` + :param conditions: List of conditions when the rule should be triggered. + :type conditions: list of :class:`RuleCondition ` + :param is_disabled: Indicates if the rule is disabled. + :type is_disabled: bool + :param name: Name for the rule. + :type name: str + :param customization_type: Indicates if the rule is system generated or created by user. + :type customization_type: object + :param id: Id to uniquely identify the rule. + :type id: str + :param url: Resource Url. + :type url: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleAction]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleCondition]'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'customization_type': {'key': 'customizationType', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, actions=None, conditions=None, is_disabled=None, name=None, customization_type=None, id=None, url=None): + super(ProcessRule, self).__init__(actions=actions, conditions=conditions, is_disabled=is_disabled, name=name) + self.customization_type = customization_type + self.id = id + self.url = url + + +class ProcessWorkItemType(Model): + """ProcessWorkItemType. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param color: Color hexadecimal code to represent the work item type + :type color: str + :param customization: Indicates the type of customization on this work item System work item types are inherited from parent process but not modified Inherited work item types are modified work item that were inherited from parent process Custom work item types are work item types that were created in the current process + :type customization: object + :param description: Description of the work item type + :type description: str + :param icon: Icon to represent the work item typ + :type icon: str + :param inherits: Reference name of the parent work item type + :type inherits: str + :param is_disabled: Indicates if a work item type is disabled + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: Name of the work item type + :type name: str + :param reference_name: Reference name of work item type + :type reference_name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: Url of the work item type + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'color': {'key': 'color', 'type': 'str'}, + 'customization': {'key': 'customization', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, color=None, customization=None, description=None, icon=None, inherits=None, is_disabled=None, layout=None, name=None, reference_name=None, states=None, url=None): + super(ProcessWorkItemType, self).__init__() + self.behaviors = behaviors + self.color = color + self.customization = customization + self.description = description + self.icon = icon + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.reference_name = reference_name + self.states = states + self.url = url + + +class ProcessWorkItemTypeField(Model): + """ProcessWorkItemTypeField. + + :param allow_groups: Allow setting field value to a group identity. Only applies to identity fields. + :type allow_groups: bool + :param customization: + :type customization: object + :param default_value: The default value of the field. + :type default_value: object + :param description: Description of the field. + :type description: str + :param name: Name of the field. + :type name: str + :param read_only: If true the field cannot be edited. + :type read_only: bool + :param reference_name: Reference name of the field. + :type reference_name: str + :param required: If true the field cannot be empty. + :type required: bool + :param type: Type of the field. + :type type: object + :param url: Resource URL of the field. + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'customization': {'key': 'customization', 'type': 'object'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, customization=None, default_value=None, description=None, name=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(ProcessWorkItemTypeField, self).__init__() + self.allow_groups = allow_groups + self.customization = customization + self.default_value = default_value + self.description = description + self.name = name + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class ProjectReference(Model): + """ProjectReference. + + :param description: Description of the project + :type description: str + :param id: The ID of the project + :type id: str + :param name: Name of the project + :type name: str + :param url: Url of the project + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, url=None): + super(ProjectReference, self).__init__() + self.description = description + self.id = id + self.name = name + self.url = url + + +class RuleAction(Model): + """RuleAction. + + :param action_type: Type of action to take when the rule is triggered. + :type action_type: object + :param target_field: Field on which the action should be taken. + :type target_field: str + :param value: Value to apply on target field, once the action is taken. + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'object'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleAction, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value + + +class RuleActionModel(Model): + """RuleActionModel. + + :param action_type: + :type action_type: str + :param target_field: + :type target_field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleActionModel, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value + + +class RuleCondition(Model): + """RuleCondition. + + :param condition_type: Type of condition. $When. This condition limits the execution of its children to cases when another field has a particular value, i.e. when the Is value of the referenced field is equal to the given literal value. $WhenNot.This condition limits the execution of its children to cases when another field does not have a particular value, i.e.when the Is value of the referenced field is not equal to the given literal value. $WhenChanged.This condition limits the execution of its children to cases when another field has changed, i.e.when the Is value of the referenced field is not equal to the Was value of that field. $WhenNotChanged.This condition limits the execution of its children to cases when another field has not changed, i.e.when the Is value of the referenced field is equal to the Was value of that field. + :type condition_type: object + :param field: Field that defines condition. + :type field: str + :param value: Value of field to define the condition for rule. + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleCondition, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value + + +class RuleConditionModel(Model): + """RuleConditionModel. + + :param condition_type: + :type condition_type: str + :param field: + :type field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleConditionModel, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value + + +class Section(Model): + """Section. + + :param groups: List of child groups in this section + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class UpdateProcessModel(Model): + """UpdateProcessModel. + + :param description: New description of the process + :type description: str + :param is_default: If true new projects will use this process by default + :type is_default: bool + :param is_enabled: If false the process will be disabled and cannot be used to create projects + :type is_enabled: bool + :param name: New name of the process + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, is_default=None, is_enabled=None, name=None): + super(UpdateProcessModel, self).__init__() + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name + + +class UpdateProcessRuleRequest(CreateProcessRuleRequest): + """UpdateProcessRuleRequest. + + :param actions: List of actions to take when the rule is triggered. + :type actions: list of :class:`RuleAction ` + :param conditions: List of conditions when the rule should be triggered. + :type conditions: list of :class:`RuleCondition ` + :param is_disabled: Indicates if the rule is disabled. + :type is_disabled: bool + :param name: Name for the rule. + :type name: str + :param id: Id to uniquely identify the rule. + :type id: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleAction]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleCondition]'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, actions=None, conditions=None, is_disabled=None, name=None, id=None): + super(UpdateProcessRuleRequest, self).__init__(actions=actions, conditions=conditions, is_disabled=is_disabled, name=name) + self.id = id + + +class UpdateProcessWorkItemTypeFieldRequest(Model): + """UpdateProcessWorkItemTypeFieldRequest. + + :param allow_groups: Allow setting field value to a group identity. Only applies to identity fields. + :type allow_groups: bool + :param default_value: The default value of the field. + :type default_value: object + :param read_only: If true the field cannot be edited. + :type read_only: bool + :param required: The default value of the field. + :type required: bool + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'required': {'key': 'required', 'type': 'bool'} + } + + def __init__(self, allow_groups=None, default_value=None, read_only=None, required=None): + super(UpdateProcessWorkItemTypeFieldRequest, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.read_only = read_only + self.required = required + + +class UpdateProcessWorkItemTypeRequest(Model): + """UpdateProcessWorkItemTypeRequest. + + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param is_disabled: If set will disable the work item type + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(UpdateProcessWorkItemTypeRequest, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehavior(Model): + """WorkItemBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param description: + :type description: str + :param fields: + :type fields: list of :class:`WorkItemBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): + super(WorkItemBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + self.url = url + + +class WorkItemBehaviorField(Model): + """WorkItemBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, url=None): + super(WorkItemBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.url = url + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: Color of the state + :type color: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param customization_type: + :type customization_type: object + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'customization_type': {'key': 'customizationType', 'type': 'object'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, customization_type=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.customization_type = customization_type + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: Reference to the behavior of a work item type + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: If true the work item type is the default work item type in the behavior + :type is_default: bool + :param url: URL of the work item type behavior + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +class PickList(PickListMetadata): + """PickList. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Indicates whether items outside of suggested list are allowed + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: DataType of picklist + :type type: str + :param url: Url of the picklist + :type url: str + :param items: A list of PicklistItemModel. + :type items: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[str]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickList, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items + + +__all__ = [ + 'AddProcessWorkItemTypeFieldRequest', + 'Control', + 'CreateProcessModel', + 'CreateProcessRuleRequest', + 'CreateProcessWorkItemTypeRequest', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListMetadata', + 'ProcessBehavior', + 'ProcessBehaviorCreateRequest', + 'ProcessBehaviorField', + 'ProcessBehaviorReference', + 'ProcessBehaviorUpdateRequest', + 'ProcessInfo', + 'ProcessModel', + 'ProcessProperties', + 'ProcessRule', + 'ProcessWorkItemType', + 'ProcessWorkItemTypeField', + 'ProjectReference', + 'RuleAction', + 'RuleActionModel', + 'RuleCondition', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'UpdateProcessRuleRequest', + 'UpdateProcessWorkItemTypeFieldRequest', + 'UpdateProcessWorkItemTypeRequest', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', + 'PickList', +] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py new file mode 100644 index 00000000..27c5e797 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py @@ -0,0 +1,1143 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class WorkItemTrackingClient(Client): + """WorkItemTracking + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' + + def create_process_behavior(self, behavior, process_id): + """CreateProcessBehavior. + [Preview API] Creates a single behavior in the given process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(behavior, 'ProcessBehaviorCreateRequest') + response = self._send(http_method='POST', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessBehavior', response) + + def delete_process_behavior(self, process_id, behavior_ref_name): + """DeleteProcessBehavior. + [Preview API] Removes a behavior in the process. + :param str process_id: The ID of the process + :param str behavior_ref_name: The reference name of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + self._send(http_method='DELETE', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.0-preview.2', + route_values=route_values) + + def get_process_behavior(self, process_id, behavior_ref_name, expand=None): + """GetProcessBehavior. + [Preview API] Returns a behavior of the process. + :param str process_id: The ID of the process + :param str behavior_ref_name: The reference name of the behavior + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessBehavior', response) + + def get_process_behaviors(self, process_id, expand=None): + """GetProcessBehaviors. + [Preview API] Returns a list of all behaviors in the process. + :param str process_id: The ID of the process + :param str expand: + :rtype: [ProcessBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ProcessBehavior]', self._unwrap_collection(response)) + + def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): + """UpdateProcessBehavior. + [Preview API] Replaces a behavior in the process. + :param :class:` ` behavior_data: + :param str process_id: The ID of the process + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + content = self._serialize.body(behavior_data, 'ProcessBehaviorUpdateRequest') + response = self._send(http_method='PUT', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessBehavior', response) + + def create_control_in_group(self, control, process_id, wit_ref_name, group_id): + """CreateControlInGroup. + [Preview API] Creates a control in a group. + :param :class:` ` control: The control. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group to add the control to. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='POST', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def move_control_to_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): + """MoveControlToGroup. + [Preview API] Moves a control to a specified group. + :param :class:` ` control: The control. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group to move the control to. + :param str control_id: The ID of the control. + :param str remove_from_group_id: The group ID to remove the control from. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + query_parameters = {} + if remove_from_group_id is not None: + query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PUT', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Control', response) + + def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): + """RemoveControlFromGroup. + [Preview API] Removes a control from the work item form. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group. + :param str control_id: The ID of the control to remove. + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + self._send(http_method='DELETE', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.0-preview.1', + route_values=route_values) + + def update_control(self, control, process_id, wit_ref_name, group_id, control_id): + """UpdateControl. + [Preview API] Updates a control on the work item form. + :param :class:` ` control: The updated control. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group. + :param str control_id: The ID of the control. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PATCH', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def add_field_to_work_item_type(self, field, process_id, wit_ref_name): + """AddFieldToWorkItemType. + [Preview API] Adds a field to a work item type. + :param :class:` ` field: + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(field, 'AddProcessWorkItemTypeFieldRequest') + response = self._send(http_method='POST', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessWorkItemTypeField', response) + + def get_all_work_item_type_fields(self, process_id, wit_ref_name): + """GetAllWorkItemTypeFields. + [Preview API] Returns a list of all fields in a work item type. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: [ProcessWorkItemTypeField] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.0-preview.2', + route_values=route_values) + return self._deserialize('[ProcessWorkItemTypeField]', self._unwrap_collection(response)) + + def get_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): + """GetWorkItemTypeField. + [Preview API] Returns a field in a work item type. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str field_ref_name: The reference name of the field. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + response = self._send(http_method='GET', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.0-preview.2', + route_values=route_values) + return self._deserialize('ProcessWorkItemTypeField', response) + + def remove_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): + """RemoveWorkItemTypeField. + [Preview API] Removes a field from a work item type. Does not permanently delete the field. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str field_ref_name: The reference name of the field. + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + self._send(http_method='DELETE', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.0-preview.2', + route_values=route_values) + + def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref_name): + """UpdateWorkItemTypeField. + [Preview API] Updates a field in a work item type. + :param :class:` ` field: + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str field_ref_name: The reference name of the field. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + content = self._serialize.body(field, 'UpdateProcessWorkItemTypeFieldRequest') + response = self._send(http_method='PATCH', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessWorkItemTypeField', response) + + def add_group(self, group, process_id, wit_ref_name, page_id, section_id): + """AddGroup. + [Preview API] Adds a group to the work item form. + :param :class:` ` group: The group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page to add the group to. + :param str section_id: The ID of the section to add the group to. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='POST', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): + """MoveGroupToPage. + [Preview API] Moves a group to a different page and section. + :param :class:` ` group: The updated group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page the group is in. + :param str section_id: The ID of the section the group is i.n + :param str group_id: The ID of the group. + :param str remove_from_page_id: ID of the page to remove the group from. + :param str remove_from_section_id: ID of the section to remove the group from. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_page_id is not None: + query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def move_group_to_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): + """MoveGroupToSection. + [Preview API] Moves a group to a different section. + :param :class:` ` group: The updated group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page the group is in. + :param str section_id: The ID of the section the group is in. + :param str group_id: The ID of the group. + :param str remove_from_section_id: ID of the section to remove the group from. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): + """RemoveGroup. + [Preview API] Removes a group from the work item form. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section to the group is in + :param str group_id: The ID of the group + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + self._send(http_method='DELETE', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.0-preview.1', + route_values=route_values) + + def update_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): + """UpdateGroup. + [Preview API] Updates a group in the work item form. + :param :class:` ` group: The updated group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page the group is in. + :param str section_id: The ID of the section the group is in. + :param str group_id: The ID of the group. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PATCH', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def get_form_layout(self, process_id, wit_ref_name): + """GetFormLayout. + [Preview API] Gets the form layout. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='fa8646eb-43cd-4b71-9564-40106fd63e40', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('FormLayout', response) + + def create_list(self, picklist): + """CreateList. + [Preview API] Creates a picklist. + :param :class:` ` picklist: Picklist + :rtype: :class:` ` + """ + content = self._serialize.body(picklist, 'PickList') + response = self._send(http_method='POST', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.0-preview.1', + content=content) + return self._deserialize('PickList', response) + + def delete_list(self, list_id): + """DeleteList. + [Preview API] Removes a picklist. + :param str list_id: The ID of the list + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + self._send(http_method='DELETE', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.0-preview.1', + route_values=route_values) + + def get_list(self, list_id): + """GetList. + [Preview API] Returns a picklist. + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + response = self._send(http_method='GET', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('PickList', response) + + def get_lists_metadata(self): + """GetListsMetadata. + [Preview API] Returns meta data of the picklist. + :rtype: [PickListMetadata] + """ + response = self._send(http_method='GET', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.0-preview.1') + return self._deserialize('[PickListMetadata]', self._unwrap_collection(response)) + + def update_list(self, picklist, list_id): + """UpdateList. + [Preview API] Updates a list. + :param :class:` ` picklist: + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + content = self._serialize.body(picklist, 'PickList') + response = self._send(http_method='PUT', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('PickList', response) + + def add_page(self, page, process_id, wit_ref_name): + """AddPage. + [Preview API] Adds a page to the work item form. + :param :class:` ` page: The page. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='POST', + location_id='1cc7b29f-6697-4d9d-b0a1-2650d3e1d584', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def remove_page(self, process_id, wit_ref_name, page_id): + """RemovePage. + [Preview API] Removes a page from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + self._send(http_method='DELETE', + location_id='1cc7b29f-6697-4d9d-b0a1-2650d3e1d584', + version='5.0-preview.1', + route_values=route_values) + + def update_page(self, page, process_id, wit_ref_name): + """UpdatePage. + [Preview API] Updates a page on the work item form + :param :class:` ` page: The page + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='PATCH', + location_id='1cc7b29f-6697-4d9d-b0a1-2650d3e1d584', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def create_new_process(self, create_request): + """CreateNewProcess. + [Preview API] Creates a process. + :param :class:` ` create_request: CreateProcessModel. + :rtype: :class:` ` + """ + content = self._serialize.body(create_request, 'CreateProcessModel') + response = self._send(http_method='POST', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.0-preview.2', + content=content) + return self._deserialize('ProcessInfo', response) + + def delete_process_by_id(self, process_type_id): + """DeleteProcessById. + [Preview API] Removes a process of a specific ID. + :param str process_type_id: + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + self._send(http_method='DELETE', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.0-preview.2', + route_values=route_values) + + def edit_process(self, update_request, process_type_id): + """EditProcess. + [Preview API] Edit a process of a specific ID. + :param :class:` ` update_request: + :param str process_type_id: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + content = self._serialize.body(update_request, 'UpdateProcessModel') + response = self._send(http_method='PATCH', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessInfo', response) + + def get_list_of_processes(self, expand=None): + """GetListOfProcesses. + [Preview API] Get list of all processes including system and inherited. + :param str expand: + :rtype: [ProcessInfo] + """ + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.0-preview.2', + query_parameters=query_parameters) + return self._deserialize('[ProcessInfo]', self._unwrap_collection(response)) + + def get_process_by_its_id(self, process_type_id, expand=None): + """GetProcessByItsId. + [Preview API] Get a single process of a specified ID. + :param str process_type_id: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessInfo', response) + + def add_process_work_item_type_rule(self, process_rule_create, process_id, wit_ref_name): + """AddProcessWorkItemTypeRule. + [Preview API] Adds a rule to work item type in the process. + :param :class:` ` process_rule_create: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(process_rule_create, 'CreateProcessRuleRequest') + response = self._send(http_method='POST', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessRule', response) + + def delete_process_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """DeleteProcessWorkItemTypeRule. + [Preview API] Removes a rule from the work item type in the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + self._send(http_method='DELETE', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.0-preview.2', + route_values=route_values) + + def get_process_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """GetProcessWorkItemTypeRule. + [Preview API] Returns a single rule in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.0-preview.2', + route_values=route_values) + return self._deserialize('ProcessRule', response) + + def get_process_work_item_type_rules(self, process_id, wit_ref_name): + """GetProcessWorkItemTypeRules. + [Preview API] Returns a list of all rules in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [ProcessRule] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.0-preview.2', + route_values=route_values) + return self._deserialize('[ProcessRule]', self._unwrap_collection(response)) + + def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_name, rule_id): + """UpdateProcessWorkItemTypeRule. + [Preview API] Updates a rule in the work item type of the process. + :param :class:` ` process_rule: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + content = self._serialize.body(process_rule, 'UpdateProcessRuleRequest') + response = self._send(http_method='PUT', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessRule', response) + + def create_state_definition(self, state_model, process_id, wit_ref_name): + """CreateStateDefinition. + [Preview API] Creates a state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='POST', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def delete_state_definition(self, process_id, wit_ref_name, state_id): + """DeleteStateDefinition. + [Preview API] Removes a state definition in the work item type of the process. + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + self._send(http_method='DELETE', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.0-preview.1', + route_values=route_values) + + def get_state_definition(self, process_id, wit_ref_name, state_id): + """GetStateDefinition. + [Preview API] Returns a single state definition in a work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + response = self._send(http_method='GET', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemStateResultModel', response) + + def get_state_definitions(self, process_id, wit_ref_name): + """GetStateDefinitions. + [Preview API] Returns a list of all state definitions in a work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [WorkItemStateResultModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) + + def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): + """HideStateDefinition. + [Preview API] Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden. + :param :class:` ` hide_state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(hide_state_model, 'HideStateModel') + response = self._send(http_method='PUT', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): + """UpdateStateDefinition. + [Preview API] Updates a given state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='PATCH', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def create_process_work_item_type(self, work_item_type, process_id): + """CreateProcessWorkItemType. + [Preview API] Creates a work item type in the process. + :param :class:` ` work_item_type: + :param str process_id: The ID of the process on which to create work item type. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(work_item_type, 'CreateProcessWorkItemTypeRequest') + response = self._send(http_method='POST', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessWorkItemType', response) + + def delete_process_work_item_type(self, process_id, wit_ref_name): + """DeleteProcessWorkItemType. + [Preview API] Removes a work itewm type in the process. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + self._send(http_method='DELETE', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.0-preview.2', + route_values=route_values) + + def get_process_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetProcessWorkItemType. + [Preview API] Returns a single work item type in a process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str expand: Flag to determine what properties of work item type to return + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessWorkItemType', response) + + def get_process_work_item_types(self, process_id, expand=None): + """GetProcessWorkItemTypes. + [Preview API] Returns a list of all work item types in a process. + :param str process_id: The ID of the process + :param str expand: Flag to determine what properties of work item type to return + :rtype: [ProcessWorkItemType] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.0-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ProcessWorkItemType]', self._unwrap_collection(response)) + + def update_process_work_item_type(self, work_item_type_update, process_id, wit_ref_name): + """UpdateProcessWorkItemType. + [Preview API] Updates a work item type of the process. + :param :class:` ` work_item_type_update: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(work_item_type_update, 'UpdateProcessWorkItemTypeRequest') + response = self._send(http_method='PATCH', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.0-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessWorkItemType', response) + + def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """AddBehaviorToWorkItemType. + [Preview API] Adds a behavior to the work item type of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='POST', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """GetBehaviorForWorkItemType. + [Preview API] Returns a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + response = self._send(http_method='GET', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): + """GetBehaviorsForWorkItemType. + [Preview API] Returns a list of all behaviors for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: [WorkItemTypeBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + response = self._send(http_method='GET', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) + + def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """RemoveBehaviorFromWorkItemType. + [Preview API] Removes a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + self._send(http_method='DELETE', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.0-preview.1', + route_values=route_values) + + def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """UpdateBehaviorToWorkItemType. + [Preview API] Updates a behavior for the work item type of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='PATCH', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/__init__.py similarity index 100% rename from azure-devops/azure/devops/v4_1/work_item_tracking_process_template/__init__.py rename to azure-devops/azure/devops/v5_0/work_item_tracking_process_template/__init__.py diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/models.py similarity index 98% rename from azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py rename to azure-devops/azure/devops/v5_0/work_item_tracking_process_template/models.py index e325a012..b4bda18a 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/models.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/models.py @@ -21,7 +21,7 @@ class AdminBehavior(Model): :param description: The description of the behavior. :type description: str :param fields: List of behavior fields. - :type fields: list of :class:`AdminBehaviorField ` + :type fields: list of :class:`AdminBehaviorField ` :param id: Behavior ID. :type id: str :param inherits: Parent behavior reference. @@ -125,7 +125,7 @@ class ProcessImportResult(Model): :param promote_job_id: The promote job identifier. :type promote_job_id: str :param validation_results: The list of validation results. - :type validation_results: list of :class:`ValidationIssue ` + :type validation_results: list of :class:`ValidationIssue ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py similarity index 77% rename from azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py rename to azure-devops/azure/devops/v5_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py index 88b819b2..81985612 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,10 +27,10 @@ def __init__(self, base_url=None, creds=None): def get_behavior(self, process_id, behavior_ref_name): """GetBehavior. - [Preview API] - :param str process_id: - :param str behavior_ref_name: - :rtype: :class:` ` + [Preview API] Returns a behavior for the process. + :param str process_id: The ID of the process + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -40,15 +40,15 @@ def get_behavior(self, process_id, behavior_ref_name): query_parameters['behaviorRefName'] = self._serialize.query('behavior_ref_name', behavior_ref_name, 'str') response = self._send(http_method='GET', location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AdminBehavior', response) def get_behaviors(self, process_id): """GetBehaviors. - [Preview API] - :param str process_id: + [Preview API] Returns a list of behaviors for the process. + :param str process_id: The ID of the process :rtype: [AdminBehavior] """ route_values = {} @@ -56,15 +56,15 @@ def get_behaviors(self, process_id): route_values['processId'] = self._serialize.url('process_id', process_id, 'str') response = self._send(http_method='GET', location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values) return self._deserialize('[AdminBehavior]', self._unwrap_collection(response)) def check_template_existence(self, upload_stream, **kwargs): """CheckTemplateExistence. - [Preview API] Check if process template exists + [Preview API] Check if process template exists. :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'CheckTemplateExistence' @@ -75,7 +75,7 @@ def check_template_existence(self, upload_stream, **kwargs): content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -83,20 +83,18 @@ def check_template_existence(self, upload_stream, **kwargs): def export_process_template(self, id, **kwargs): """ExportProcessTemplate. - [Preview API] Returns requested process template - :param str id: + [Preview API] Returns requested process template. + :param str id: The ID of the process :rtype: object """ route_values = {} - route_values['action'] = 'Export' - query_parameters = {} if id is not None: - query_parameters['id'] = self._serialize.query('id', id, 'str') + route_values['id'] = self._serialize.url('id', id, 'str') + route_values['action'] = 'Export' response = self._send(http_method='GET', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, - query_parameters=query_parameters, accept_media_type='application/zip') if "callback" in kwargs: callback = kwargs["callback"] @@ -106,10 +104,10 @@ def export_process_template(self, id, **kwargs): def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs): """ImportProcessTemplate. - [Preview API] + [Preview API] Imports a process from zip file. :param object upload_stream: Stream to upload - :param bool ignore_warnings: - :rtype: :class:` ` + :param bool ignore_warnings: Default value is false + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'Import' @@ -123,7 +121,7 @@ def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs) content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.0-preview.1', + version='5.0-preview.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -132,19 +130,17 @@ def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs) def import_process_template_status(self, id): """ImportProcessTemplateStatus. - [Preview API] Whether promote has completed for the specified promote job id - :param str id: - :rtype: :class:` ` + [Preview API] Tells whether promote has completed for the specified promote job ID. + :param str id: The ID of the promote job operation + :rtype: :class:` ` """ route_values = {} - route_values['action'] = 'Status' - query_parameters = {} if id is not None: - query_parameters['id'] = self._serialize.query('id', id, 'str') + route_values['id'] = self._serialize.url('id', id, 'str') + route_values['action'] = 'Status' response = self._send(http_method='GET', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) + version='5.0-preview.1', + route_values=route_values) return self._deserialize('ProcessPromoteStatus', response) diff --git a/azure-devops/azure/devops/v4_0/__init__.py b/azure-devops/azure/devops/v5_1/__init__.py similarity index 82% rename from azure-devops/azure/devops/v4_0/__init__.py rename to azure-devops/azure/devops/v5_1/__init__.py index b19525a6..f885a96e 100644 --- a/azure-devops/azure/devops/v4_0/__init__.py +++ b/azure-devops/azure/devops/v5_1/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/accounts/__init__.py b/azure-devops/azure/devops/v5_1/accounts/__init__.py similarity index 85% rename from azure-devops/azure/devops/v4_0/accounts/__init__.py rename to azure-devops/azure/devops/v5_1/accounts/__init__.py index 33fffd4a..b98e8401 100644 --- a/azure-devops/azure/devops/v4_0/accounts/__init__.py +++ b/azure-devops/azure/devops/v5_1/accounts/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v5_1/accounts/accounts_client.py b/azure-devops/azure/devops/v5_1/accounts/accounts_client.py new file mode 100644 index 00000000..67403960 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/accounts/accounts_client.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class AccountsClient(Client): + """Accounts + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(AccountsClient, 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 = '0d55247a-1c47-4462-9b1f-5e2125590ee6' + + def get_accounts(self, owner_id=None, member_id=None, properties=None): + """GetAccounts. + [Preview API] Get a list of accounts for a specific owner or a specific member. + :param str owner_id: ID for the owner of the accounts. + :param str member_id: ID for a member of the accounts. + :param str properties: + :rtype: [Account] + """ + query_parameters = {} + if owner_id is not None: + query_parameters['ownerId'] = self._serialize.query('owner_id', owner_id, 'str') + if member_id is not None: + query_parameters['memberId'] = self._serialize.query('member_id', member_id, 'str') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + response = self._send(http_method='GET', + location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[Account]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/v4_0/accounts/models.py b/azure-devops/azure/devops/v5_1/accounts/models.py similarity index 95% rename from azure-devops/azure/devops/v4_0/accounts/models.py rename to azure-devops/azure/devops/v5_1/accounts/models.py index 972b8919..385e5db2 100644 --- a/azure-devops/azure/devops/v4_0/accounts/models.py +++ b/azure-devops/azure/devops/v5_1/accounts/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -41,7 +41,7 @@ class Account(Model): :param organization_name: Organization that created the account :type organization_name: str :param properties: Extended properties - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_reason: Reason for current status :type status_reason: str """ @@ -95,9 +95,9 @@ class AccountCreateInfoInternal(Model): :param organization: :type organization: str :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` + :type preferences: :class:`AccountPreferencesInternal ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param service_definitions: :type service_definitions: list of { key: str; value: str } """ diff --git a/azure-devops/azure/devops/v4_0/build/__init__.py b/azure-devops/azure/devops/v5_1/build/__init__.py similarity index 73% rename from azure-devops/azure/devops/v4_0/build/__init__.py rename to azure-devops/azure/devops/v5_1/build/__init__.py index 3e22f1b3..84f76767 100644 --- a/azure-devops/azure/devops/v4_0/build/__init__.py +++ b/azure-devops/azure/devops/v5_1/build/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -10,7 +10,15 @@ __all__ = [ 'AgentPoolQueue', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', + 'AggregatedRunsByState', 'ArtifactResource', + 'AssociatedWorkItem', + 'Attachment', + 'AuthorizationHeader', 'Build', 'BuildArtifact', 'BuildBadge', @@ -18,6 +26,7 @@ 'BuildDefinition', 'BuildDefinition3_2', 'BuildDefinitionReference', + 'BuildDefinitionReference3_2', 'BuildDefinitionRevision', 'BuildDefinitionStep', 'BuildDefinitionTemplate', @@ -39,15 +48,25 @@ 'Change', 'DataSourceBindingBase', 'DefinitionReference', + 'DefinitionResourceReference', 'Deployment', 'Folder', + 'GraphSubjectBase', 'IdentityRef', 'Issue', 'JsonPatchOperation', 'ProcessParameters', + 'PullRequest', 'ReferenceLinks', + 'ReleaseReference', + 'RepositoryWebhook', 'ResourceRef', 'RetentionPolicy', + 'SourceProviderAttributes', + 'SourceRepositories', + 'SourceRepository', + 'SourceRepositoryItem', + 'SupportedTrigger', 'TaskAgentPoolReference', 'TaskDefinitionReference', 'TaskInputDefinitionBase', @@ -56,7 +75,9 @@ 'TaskReference', 'TaskSourceDefinitionBase', 'TeamProjectReference', + 'TestResultsContext', 'Timeline', + 'TimelineAttempt', 'TimelineRecord', 'TimelineReference', 'VariableGroup', diff --git a/azure-devops/azure/devops/v4_0/build/build_client.py b/azure-devops/azure/devops/v5_1/build/build_client.py similarity index 53% rename from azure-devops/azure/devops/v4_0/build/build_client.py rename to azure-devops/azure/devops/v5_1/build/build_client.py index 6424bd96..19bb9744 100644 --- a/azure-devops/azure/devops/v4_0/build/build_client.py +++ b/azure-devops/azure/devops/v5_1/build/build_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -25,13 +25,13 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = '965220d5-5bb9-42cf-8d67-9b146df2a5a4' - def create_artifact(self, artifact, build_id, project=None): + def create_artifact(self, artifact, project, build_id): """CreateArtifact. - Associates an artifact with a build - :param :class:` ` artifact: - :param int build_id: + [Preview API] Associates an artifact with a build. + :param :class:` ` artifact: The artifact. :param str project: Project ID or project name - :rtype: :class:` ` + :param int build_id: The ID of the build. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -41,18 +41,18 @@ def create_artifact(self, artifact, build_id, project=None): content = self._serialize.body(artifact, 'BuildArtifact') response = self._send(http_method='POST', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.0', + version='5.1-preview.5', route_values=route_values, content=content) return self._deserialize('BuildArtifact', response) - def get_artifact(self, build_id, artifact_name, project=None): + def get_artifact(self, project, build_id, artifact_name): """GetArtifact. - Gets a specific artifact for a build - :param int build_id: - :param str artifact_name: + [Preview API] Gets a specific artifact for a build. :param str project: Project ID or project name - :rtype: :class:` ` + :param int build_id: The ID of the build. + :param str artifact_name: The name of the artifact. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -64,17 +64,17 @@ def get_artifact(self, build_id, artifact_name, project=None): query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.0', + version='5.1-preview.5', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildArtifact', response) - def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwargs): + def get_artifact_content_zip(self, project, build_id, artifact_name, **kwargs): """GetArtifactContentZip. - Gets a specific artifact for a build - :param int build_id: - :param str artifact_name: + [Preview API] Gets a specific artifact for a build. :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str artifact_name: The name of the artifact. :rtype: object """ route_values = {} @@ -87,7 +87,7 @@ def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwar query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.0', + version='5.1-preview.5', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -97,11 +97,11 @@ def get_artifact_content_zip(self, build_id, artifact_name, project=None, **kwar callback = None return self._client.stream_download(response, callback=callback) - def get_artifacts(self, build_id, project=None): + def get_artifacts(self, project, build_id): """GetArtifacts. - Gets all artifacts for a build - :param int build_id: + [Preview API] Gets all artifacts for a build. :param str project: Project ID or project name + :param int build_id: The ID of the build. :rtype: [BuildArtifact] """ route_values = {} @@ -111,40 +111,175 @@ def get_artifacts(self, build_id, project=None): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', - version='4.0', + version='5.1-preview.5', route_values=route_values) return self._deserialize('[BuildArtifact]', self._unwrap_collection(response)) - def get_badge(self, project, definition_id, branch_name=None): - """GetBadge. - :param str project: - :param int definition_id: - :param str branch_name: - :rtype: str + def get_file(self, project, build_id, artifact_name, file_id, file_name, **kwargs): + """GetFile. + [Preview API] Gets a file from the build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str artifact_name: The name of the artifact. + :param str file_id: The primary key for the file. + :param str file_name: The name that the file will be set to. + :rtype: object """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - if definition_id is not None: - route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') query_parameters = {} - if branch_name is not None: - query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if artifact_name is not None: + query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') + if file_id is not None: + query_parameters['fileId'] = self._serialize.query('file_id', file_id, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + response = self._send(http_method='GET', + location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', + version='5.1-preview.5', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_attachments(self, project, build_id, type): + """GetAttachments. + [Preview API] Gets the list of attachments of a specific type that are associated with a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str type: The type of attachment. + :rtype: [Attachment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='f2192269-89fa-4f94-baf6-8fb128c55159', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('[Attachment]', self._unwrap_collection(response)) + + def get_attachment(self, project, build_id, timeline_id, record_id, type, name, **kwargs): + """GetAttachment. + [Preview API] Gets a specific attachment. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str timeline_id: The ID of the timeline. + :param str record_id: The ID of the timeline record. + :param str type: The type of the attachment. + :param str name: The name of the attachment. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='af5122d3-3438-485e-a25a-2dbbfde84ee6', + version='5.1-preview.2', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def authorize_project_resources(self, resources, project): + """AuthorizeProjectResources. + [Preview API] + :param [DefinitionResourceReference] resources: + :param str project: Project ID or project name + :rtype: [DefinitionResourceReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(resources, '[DefinitionResourceReference]') + response = self._send(http_method='PATCH', + location_id='398c85bc-81aa-4822-947c-a194a05f0fef', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) + + def get_project_resources(self, project, type=None, id=None): + """GetProjectResources. + [Preview API] + :param str project: Project ID or project name + :param str type: + :param str id: + :rtype: [DefinitionResourceReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if id is not None: + query_parameters['id'] = self._serialize.query('id', id, 'str') response = self._send(http_method='GET', - location_id='de6a4df8-22cd-44ee-af2d-39f6aa7a4261', - version='4.0', + location_id='398c85bc-81aa-4822-947c-a194a05f0fef', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) - return self._deserialize('str', response) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) + + def list_branches(self, project, provider_name, service_endpoint_id=None, repository=None): + """ListBranches. + [Preview API] Gets a list of branches for the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + response = self._send(http_method='GET', + location_id='e05d4403-9b81-4244-8763-20fde28d1976', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): """GetBuildBadge. - [Preview API] + [Preview API] Gets a badge that indicates the status of the most recent build for the specified branch. :param str project: Project ID or project name - :param str repo_type: - :param str repo_id: - :param str branch_name: - :rtype: :class:` ` + :param str repo_type: The repository type. + :param str repo_id: The repository ID. + :param str branch_name: The branch name. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -158,18 +293,18 @@ def get_build_badge(self, project, repo_type, repo_id=None, branch_name=None): query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') response = self._send(http_method='GET', location_id='21b3b9ce-fad5-4567-9ad0-80679794e003', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildBadge', response) def get_build_badge_data(self, project, repo_type, repo_id=None, branch_name=None): """GetBuildBadgeData. - [Preview API] + [Preview API] Gets a badge that indicates the status of the most recent build for the specified branch. :param str project: Project ID or project name - :param str repo_type: - :param str repo_id: - :param str branch_name: + :param str repo_type: The repository type. + :param str repo_id: The repository ID. + :param str branch_name: The branch name. :rtype: str """ route_values = {} @@ -184,16 +319,16 @@ def get_build_badge_data(self, project, repo_type, repo_id=None, branch_name=Non query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') response = self._send(http_method='GET', location_id='21b3b9ce-fad5-4567-9ad0-80679794e003', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) - def delete_build(self, build_id, project=None): + def delete_build(self, project, build_id): """DeleteBuild. - Deletes a build - :param int build_id: + [Preview API] Deletes a build. :param str project: Project ID or project name + :param int build_id: The ID of the build. """ route_values = {} if project is not None: @@ -202,16 +337,16 @@ def delete_build(self, build_id, project=None): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') self._send(http_method='DELETE', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.0', + version='5.1-preview.5', route_values=route_values) - def get_build(self, build_id, project=None, property_filters=None): + def get_build(self, project, build_id, property_filters=None): """GetBuild. - Gets a build - :param int build_id: + [Preview API] Gets a build :param str project: Project ID or project name - :param str property_filters: A comma-delimited list of properties to include in the results - :rtype: :class:` ` + :param int build_id: + :param str property_filters: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -223,35 +358,35 @@ def get_build(self, build_id, project=None, property_filters=None): query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.0', + version='5.1-preview.5', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Build', response) - def get_builds(self, project=None, definitions=None, queues=None, build_number=None, min_finish_time=None, max_finish_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): + def get_builds(self, project, definitions=None, queues=None, build_number=None, min_time=None, max_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): """GetBuilds. - Gets builds - :param str project: Project ID or project name - :param [int] definitions: A comma-delimited list of definition ids - :param [int] queues: A comma-delimited list of queue ids - :param str build_number: - :param datetime min_finish_time: - :param datetime max_finish_time: - :param str requested_for: - :param str reason_filter: - :param str status_filter: - :param str result_filter: - :param [str] tag_filters: A comma-delimited list of tags - :param [str] properties: A comma-delimited list of properties to include in the results - :param int top: The maximum number of builds to retrieve - :param str continuation_token: - :param int max_builds_per_definition: - :param str deleted_filter: - :param str query_order: - :param str branch_name: - :param [int] build_ids: - :param str repository_id: - :param str repository_type: + [Preview API] Gets a list of builds. + :param str project: Project ID or project name + :param [int] definitions: A comma-delimited list of definition IDs. If specified, filters to builds for these definitions. + :param [int] queues: A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues. + :param str build_number: If specified, filters to builds that match this build number. Append * to do a prefix search. + :param datetime min_time: If specified, filters to builds that finished/started/queued after this date based on the queryOrder specified. + :param datetime max_time: If specified, filters to builds that finished/started/queued before this date based on the queryOrder specified. + :param str requested_for: If specified, filters to builds requested for the specified user. + :param str reason_filter: If specified, filters to builds that match this reason. + :param str status_filter: If specified, filters to builds that match this status. + :param str result_filter: If specified, filters to builds that match this result. + :param [str] tag_filters: A comma-delimited list of tags. If specified, filters to builds that have the specified tags. + :param [str] properties: A comma-delimited list of properties to retrieve. + :param int top: The maximum number of builds to return. + :param str continuation_token: A continuation token, returned by a previous call to this method, that can be used to return the next set of builds. + :param int max_builds_per_definition: The maximum number of builds to return per definition. + :param str deleted_filter: Indicates whether to exclude, include, or only return deleted builds. + :param str query_order: The order in which builds should be returned. + :param str branch_name: If specified, filters to builds that built branches that built this branch. + :param [int] build_ids: A comma-delimited list that specifies the IDs of builds to retrieve. + :param str repository_id: If specified, filters to builds that built from this repository. + :param str repository_type: If specified, filters to builds that built from repositories of this type. :rtype: [Build] """ route_values = {} @@ -266,10 +401,10 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N query_parameters['queues'] = self._serialize.query('queues', queues, 'str') if build_number is not None: query_parameters['buildNumber'] = self._serialize.query('build_number', build_number, 'str') - if min_finish_time is not None: - query_parameters['minFinishTime'] = self._serialize.query('min_finish_time', min_finish_time, 'iso-8601') - if max_finish_time is not None: - query_parameters['maxFinishTime'] = self._serialize.query('max_finish_time', max_finish_time, 'iso-8601') + if min_time is not None: + query_parameters['minTime'] = self._serialize.query('min_time', min_time, 'iso-8601') + if max_time is not None: + query_parameters['maxTime'] = self._serialize.query('max_time', max_time, 'iso-8601') if requested_for is not None: query_parameters['requestedFor'] = self._serialize.query('requested_for', requested_for, 'str') if reason_filter is not None: @@ -305,19 +440,20 @@ def get_builds(self, project=None, definitions=None, queues=None, build_number=N query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') response = self._send(http_method='GET', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.0', + version='5.1-preview.5', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Build]', self._unwrap_collection(response)) - def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket=None): + def queue_build(self, build, project, ignore_warnings=None, check_in_ticket=None, source_build_id=None): """QueueBuild. - Queues a build - :param :class:` ` build: + [Preview API] Queues a build + :param :class:` ` build: :param str project: Project ID or project name :param bool ignore_warnings: :param str check_in_ticket: - :rtype: :class:` ` + :param int source_build_id: + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -327,40 +463,47 @@ def queue_build(self, build, project=None, ignore_warnings=None, check_in_ticket query_parameters['ignoreWarnings'] = self._serialize.query('ignore_warnings', ignore_warnings, 'bool') if check_in_ticket is not None: query_parameters['checkInTicket'] = self._serialize.query('check_in_ticket', check_in_ticket, 'str') + if source_build_id is not None: + query_parameters['sourceBuildId'] = self._serialize.query('source_build_id', source_build_id, 'int') content = self._serialize.body(build, 'Build') response = self._send(http_method='POST', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.0', + version='5.1-preview.5', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('Build', response) - def update_build(self, build, build_id, project=None): + def update_build(self, build, project, build_id, retry=None): """UpdateBuild. - Updates a build - :param :class:` ` build: - :param int build_id: + [Preview API] Updates a build. + :param :class:` ` build: The build. :param str project: Project ID or project name - :rtype: :class:` ` + :param int build_id: The ID of the build. + :param bool retry: + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') if build_id is not None: route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if retry is not None: + query_parameters['retry'] = self._serialize.query('retry', retry, 'bool') content = self._serialize.body(build, 'Build') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.0', + version='5.1-preview.5', route_values=route_values, + query_parameters=query_parameters, content=content) return self._deserialize('Build', response) - def update_builds(self, builds, project=None): + def update_builds(self, builds, project): """UpdateBuilds. - Update a batch of builds - :param [Build] builds: + [Preview API] Updates multiple builds. + :param [Build] builds: The builds to update. :param str project: Project ID or project name :rtype: [Build] """ @@ -370,14 +513,14 @@ def update_builds(self, builds, project=None): content = self._serialize.body(builds, '[Build]') response = self._send(http_method='PATCH', location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', - version='4.0', + version='5.1-preview.5', route_values=route_values, content=content) return self._deserialize('[Build]', self._unwrap_collection(response)) def get_build_changes(self, project, build_id, continuation_token=None, top=None, include_source_change=None): """GetBuildChanges. - Gets the changes associated with a build + [Preview API] Gets the changes associated with a build :param str project: Project ID or project name :param int build_id: :param str continuation_token: @@ -399,18 +542,18 @@ def get_build_changes(self, project, build_id, continuation_token=None, top=None query_parameters['includeSourceChange'] = self._serialize.query('include_source_change', include_source_change, 'bool') response = self._send(http_method='GET', location_id='54572c7b-bbd3-45d4-80dc-28be08941620', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Change]', self._unwrap_collection(response)) def get_changes_between_builds(self, project, from_build_id=None, to_build_id=None, top=None): """GetChangesBetweenBuilds. - [Preview API] Gets the changes associated between given builds + [Preview API] Gets the changes made to the repository between two given builds. :param str project: Project ID or project name - :param int from_build_id: - :param int to_build_id: - :param int top: The maximum number of changes to return + :param int from_build_id: The ID of the first build. + :param int to_build_id: The ID of the last build. + :param int top: The maximum number of changes to return. :rtype: [Change] """ route_values = {} @@ -425,29 +568,29 @@ def get_changes_between_builds(self, project, from_build_id=None, to_build_id=No query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='f10f0ea5-18a1-43ec-a8fb-2042c7be9b43', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Change]', self._unwrap_collection(response)) def get_build_controller(self, controller_id): """GetBuildController. - Gets a controller + [Preview API] Gets a controller :param int controller_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if controller_id is not None: route_values['controllerId'] = self._serialize.url('controller_id', controller_id, 'int') response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('BuildController', response) def get_build_controllers(self, name=None): """GetBuildControllers. - Gets controller, optionally filtered by name + [Preview API] Gets controller, optionally filtered by name :param str name: :rtype: [BuildController] """ @@ -456,18 +599,18 @@ def get_build_controllers(self, name=None): query_parameters['name'] = self._serialize.query('name', name, 'str') response = self._send(http_method='GET', location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', - version='4.0', + version='5.1-preview.2', query_parameters=query_parameters) return self._deserialize('[BuildController]', self._unwrap_collection(response)) - def create_definition(self, definition, project=None, definition_to_clone_id=None, definition_to_clone_revision=None): + def create_definition(self, definition, project, definition_to_clone_id=None, definition_to_clone_revision=None): """CreateDefinition. - Creates a new definition - :param :class:` ` definition: + [Preview API] Creates a new definition. + :param :class:` ` definition: The definition. :param str project: Project ID or project name :param int definition_to_clone_id: :param int definition_to_clone_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -480,17 +623,17 @@ def create_definition(self, definition, project=None, definition_to_clone_id=Non content = self._serialize.body(definition, 'BuildDefinition') response = self._send(http_method='POST', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.0', + version='5.1-preview.7', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('BuildDefinition', response) - def delete_definition(self, definition_id, project=None): + def delete_definition(self, project, definition_id): """DeleteDefinition. - Deletes a definition and all associated builds - :param int definition_id: + [Preview API] Deletes a definition and all associated builds. :param str project: Project ID or project name + :param int definition_id: The ID of the definition. """ route_values = {} if project is not None: @@ -499,19 +642,19 @@ def delete_definition(self, definition_id, project=None): route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') self._send(http_method='DELETE', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.0', + version='5.1-preview.7', route_values=route_values) - def get_definition(self, definition_id, project=None, revision=None, min_metrics_time=None, property_filters=None, include_latest_builds=None): + def get_definition(self, project, definition_id, revision=None, min_metrics_time=None, property_filters=None, include_latest_builds=None): """GetDefinition. - Gets a definition, optionally at a specific revision - :param int definition_id: + [Preview API] Gets a definition, optionally at a specific revision. :param str project: Project ID or project name - :param int revision: - :param datetime min_metrics_time: - :param [str] property_filters: + :param int definition_id: The ID of the definition. + :param int revision: The revision number to retrieve. If this is not specified, the latest version will be returned. + :param datetime min_metrics_time: If specified, indicates the date from which metrics should be included. + :param [str] property_filters: A comma-delimited list of properties to include in the results. :param bool include_latest_builds: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -530,29 +673,31 @@ def get_definition(self, definition_id, project=None, revision=None, min_metrics query_parameters['includeLatestBuilds'] = self._serialize.query('include_latest_builds', include_latest_builds, 'bool') response = self._send(http_method='GET', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.0', + version='5.1-preview.7', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildDefinition', response) - def get_definitions(self, project=None, name=None, repository_id=None, repository_type=None, query_order=None, top=None, continuation_token=None, min_metrics_time=None, definition_ids=None, path=None, built_after=None, not_built_after=None, include_all_properties=None, include_latest_builds=None, task_id_filter=None): + def get_definitions(self, project, name=None, repository_id=None, repository_type=None, query_order=None, top=None, continuation_token=None, min_metrics_time=None, definition_ids=None, path=None, built_after=None, not_built_after=None, include_all_properties=None, include_latest_builds=None, task_id_filter=None, process_type=None, yaml_filename=None): """GetDefinitions. - Gets definitions, optionally filtered by name + [Preview API] Gets a list of definitions. :param str project: Project ID or project name - :param str name: - :param str repository_id: - :param str repository_type: - :param str query_order: - :param int top: - :param str continuation_token: - :param datetime min_metrics_time: - :param [int] definition_ids: - :param str path: - :param datetime built_after: - :param datetime not_built_after: - :param bool include_all_properties: - :param bool include_latest_builds: - :param str task_id_filter: + :param str name: If specified, filters to definitions whose names match this pattern. + :param str repository_id: A repository ID. If specified, filters to definitions that use this repository. + :param str repository_type: If specified, filters to definitions that have a repository of this type. + :param str query_order: Indicates the order in which definitions should be returned. + :param int top: The maximum number of definitions to return. + :param str continuation_token: A continuation token, returned by a previous call to this method, that can be used to return the next set of definitions. + :param datetime min_metrics_time: If specified, indicates the date from which metrics should be included. + :param [int] definition_ids: A comma-delimited list that specifies the IDs of definitions to retrieve. + :param str path: If specified, filters to definitions under this folder. + :param datetime built_after: If specified, filters to definitions that have builds after this date. + :param datetime not_built_after: If specified, filters to definitions that do not have builds after this date. + :param bool include_all_properties: Indicates whether the full definitions should be returned. By default, shallow representations of the definitions are returned. + :param bool include_latest_builds: Indicates whether to return the latest and latest completed builds for this definition. + :param str task_id_filter: If specified, filters to definitions that use the specified task. + :param int process_type: If specified, filters to definitions with the given process type. + :param str yaml_filename: If specified, filters to YAML definitions that match the given filename. :rtype: [BuildDefinitionReference] """ route_values = {} @@ -588,22 +733,49 @@ def get_definitions(self, project=None, name=None, repository_id=None, repositor query_parameters['includeLatestBuilds'] = self._serialize.query('include_latest_builds', include_latest_builds, 'bool') if task_id_filter is not None: query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') + if process_type is not None: + query_parameters['processType'] = self._serialize.query('process_type', process_type, 'int') + if yaml_filename is not None: + query_parameters['yamlFilename'] = self._serialize.query('yaml_filename', yaml_filename, 'str') response = self._send(http_method='GET', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.0', + version='5.1-preview.7', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[BuildDefinitionReference]', self._unwrap_collection(response)) - def update_definition(self, definition, definition_id, project=None, secrets_source_definition_id=None, secrets_source_definition_revision=None): + def restore_definition(self, project, definition_id, deleted): + """RestoreDefinition. + [Preview API] Restores a deleted definition + :param str project: Project ID or project name + :param int definition_id: The identifier of the definition to restore. + :param bool deleted: When false, restores a deleted definition. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if deleted is not None: + query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + response = self._send(http_method='PATCH', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.1-preview.7', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('BuildDefinition', response) + + def update_definition(self, definition, project, definition_id, secrets_source_definition_id=None, secrets_source_definition_revision=None): """UpdateDefinition. - Updates an existing definition - :param :class:` ` definition: - :param int definition_id: + [Preview API] Updates an existing definition. + :param :class:` ` definition: The new version of the defintion. :param str project: Project ID or project name + :param int definition_id: The ID of the definition. :param int secrets_source_definition_id: :param int secrets_source_definition_revision: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -618,19 +790,56 @@ def update_definition(self, definition, definition_id, project=None, secrets_sou content = self._serialize.body(definition, 'BuildDefinition') response = self._send(http_method='PUT', location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', - version='4.0', + version='5.1-preview.7', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('BuildDefinition', response) + def get_file_contents(self, project, provider_name, service_endpoint_id=None, repository=None, commit_or_branch=None, path=None, **kwargs): + """GetFileContents. + [Preview API] Gets the contents of a file in the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. + :param str commit_or_branch: The identifier of the commit or branch from which a file's contents are retrieved. + :param str path: The path to the file to retrieve, relative to the root of the repository. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + if commit_or_branch is not None: + query_parameters['commitOrBranch'] = self._serialize.query('commit_or_branch', commit_or_branch, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + response = self._send(http_method='GET', + location_id='29d12225-b1d9-425f-b668-6c594a981313', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + def create_folder(self, folder, project, path): """CreateFolder. - [Preview API] Creates a new folder - :param :class:` ` folder: + [Preview API] Creates a new folder. + :param :class:` ` folder: The folder. :param str project: Project ID or project name - :param str path: - :rtype: :class:` ` + :param str path: The full path of the folder. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -640,16 +849,16 @@ def create_folder(self, folder, project, path): content = self._serialize.body(folder, 'Folder') response = self._send(http_method='PUT', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('Folder', response) def delete_folder(self, project, path): """DeleteFolder. - [Preview API] Deletes a definition folder for given folder name and path and all it's existing definitions and it's corresponding builds + [Preview API] Deletes a definition folder. Definitions and their corresponding builds will also be deleted. :param str project: Project ID or project name - :param str path: + :param str path: The full path to the folder. """ route_values = {} if project is not None: @@ -658,15 +867,15 @@ def delete_folder(self, project, path): route_values['path'] = self._serialize.url('path', path, 'str') self._send(http_method='DELETE', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values) def get_folders(self, project, path=None, query_order=None): """GetFolders. - [Preview API] Gets folders + [Preview API] Gets a list of build definition folders. :param str project: Project ID or project name - :param str path: - :param str query_order: + :param str path: The path to start with. + :param str query_order: The order in which folders should be returned. :rtype: [Folder] """ route_values = {} @@ -679,7 +888,7 @@ def get_folders(self, project, path=None, query_order=None): query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') response = self._send(http_method='GET', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Folder]', self._unwrap_collection(response)) @@ -687,10 +896,10 @@ def get_folders(self, project, path=None, query_order=None): def update_folder(self, folder, project, path): """UpdateFolder. [Preview API] Updates an existing folder at given existing path - :param :class:` ` folder: + :param :class:` ` folder: The new version of the folder. :param str project: Project ID or project name - :param str path: - :rtype: :class:` ` + :param str path: The full path to the folder. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -700,19 +909,42 @@ def update_folder(self, folder, project, path): content = self._serialize.body(folder, 'Folder') response = self._send(http_method='POST', location_id='a906531b-d2da-4f55-bda7-f3e676cc50d9', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('Folder', response) + def get_latest_build(self, project, definition, branch_name=None): + """GetLatestBuild. + [Preview API] Gets the latest build for a definition, optionally scoped to a specific branch. + :param str project: Project ID or project name + :param str definition: definition name with optional leading folder path, or the definition id + :param str branch_name: optional parameter that indicates the specific branch to use + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition is not None: + route_values['definition'] = self._serialize.url('definition', definition, 'str') + query_parameters = {} + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + response = self._send(http_method='GET', + location_id='54481611-01f4-47f3-998f-160da0f0c229', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Build', response) + def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): """GetBuildLog. - Gets a log + [Preview API] Gets an individual log file for a build. :param str project: Project ID or project name - :param int build_id: - :param int log_id: - :param long start_line: - :param long end_line: + :param int build_id: The ID of the build. + :param int log_id: The ID of the log file. + :param long start_line: The start line. + :param long end_line: The end line. :rtype: object """ route_values = {} @@ -729,7 +961,7 @@ def get_build_log(self, project, build_id, log_id, start_line=None, end_line=Non query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -741,12 +973,12 @@ def get_build_log(self, project, build_id, log_id, start_line=None, end_line=Non def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_line=None): """GetBuildLogLines. - Gets a log + [Preview API] Gets an individual log file for a build. :param str project: Project ID or project name - :param int build_id: - :param int log_id: - :param long start_line: - :param long end_line: + :param int build_id: The ID of the build. + :param int log_id: The ID of the log file. + :param long start_line: The start line. + :param long end_line: The end line. :rtype: [str] """ route_values = {} @@ -763,16 +995,16 @@ def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_li query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_logs(self, project, build_id): """GetBuildLogs. - Gets logs for a build + [Preview API] Gets the logs for a build. :param str project: Project ID or project name - :param int build_id: + :param int build_id: The ID of the build. :rtype: [BuildLog] """ route_values = {} @@ -782,15 +1014,41 @@ def get_build_logs(self, project, build_id): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[BuildLog]', self._unwrap_collection(response)) def get_build_logs_zip(self, project, build_id, **kwargs): """GetBuildLogsZip. - Gets logs for a build + [Preview API] Gets the logs for a build. :param str project: Project ID or project name - :param int build_id: + :param int build_id: The ID of the build. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + response = self._send(http_method='GET', + location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', + version='5.1-preview.2', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_build_log_zip(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): + """GetBuildLogZip. + [Preview API] Gets an individual log file for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param int log_id: The ID of the log file. + :param long start_line: The start line. + :param long end_line: The end line. :rtype: object """ route_values = {} @@ -798,10 +1056,18 @@ def get_build_logs_zip(self, project, build_id, **kwargs): route_values['project'] = self._serialize.url('project', project, 'str') if build_id is not None: route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', - version='4.0', + version='5.1-preview.2', route_values=route_values, + query_parameters=query_parameters, accept_media_type='application/zip') if "callback" in kwargs: callback = kwargs["callback"] @@ -811,10 +1077,10 @@ def get_build_logs_zip(self, project, build_id, **kwargs): def get_project_metrics(self, project, metric_aggregation_type=None, min_metrics_time=None): """GetProjectMetrics. - [Preview API] Gets metrics of a project + [Preview API] Gets build metrics for a project. :param str project: Project ID or project name - :param str metric_aggregation_type: - :param datetime min_metrics_time: + :param str metric_aggregation_type: The aggregation type to use (hourly, daily). + :param datetime min_metrics_time: The date from which to calculate metrics. :rtype: [BuildMetric] """ route_values = {} @@ -827,17 +1093,17 @@ def get_project_metrics(self, project, metric_aggregation_type=None, min_metrics query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') response = self._send(http_method='GET', location_id='7433fae7-a6bc-41dc-a6e2-eef9005ce41a', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) def get_definition_metrics(self, project, definition_id, min_metrics_time=None): """GetDefinitionMetrics. - [Preview API] Gets metrics of a definition + [Preview API] Gets build metrics for a definition. :param str project: Project ID or project name - :param int definition_id: - :param datetime min_metrics_time: + :param int definition_id: The ID of the definition. + :param datetime min_metrics_time: The date from which to calculate metrics. :rtype: [BuildMetric] """ route_values = {} @@ -850,14 +1116,14 @@ def get_definition_metrics(self, project, definition_id, min_metrics_time=None): query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') response = self._send(http_method='GET', location_id='d973b939-0ce0-4fec-91d8-da3940fa1827', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[BuildMetric]', self._unwrap_collection(response)) def get_build_option_definitions(self, project=None): """GetBuildOptionDefinitions. - Gets all build option definitions + [Preview API] Gets all build definition options supported by the system. :param str project: Project ID or project name :rtype: [BuildOptionDefinition] """ @@ -866,17 +1132,49 @@ def get_build_option_definitions(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='591cb5a4-2d46-4f3a-a697-5cd42b6bd332', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[BuildOptionDefinition]', self._unwrap_collection(response)) + def get_path_contents(self, project, provider_name, service_endpoint_id=None, repository=None, commit_or_branch=None, path=None): + """GetPathContents. + [Preview API] Gets the contents of a directory in the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories. + :param str commit_or_branch: The identifier of the commit or branch from which a file's contents are retrieved. + :param str path: The path contents to list, relative to the root of the repository. + :rtype: [SourceRepositoryItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + if commit_or_branch is not None: + query_parameters['commitOrBranch'] = self._serialize.query('commit_or_branch', commit_or_branch, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + response = self._send(http_method='GET', + location_id='7944d6fb-df01-4709-920a-7a189aa34037', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[SourceRepositoryItem]', self._unwrap_collection(response)) + def get_build_properties(self, project, build_id, filter=None): """GetBuildProperties. [Preview API] Gets properties for a build. :param str project: Project ID or project name - :param int build_id: The build id. - :param [str] filter: Filter to specific properties. Defaults to all properties. - :rtype: :class:` ` + :param int build_id: The ID of the build. + :param [str] filter: A comma-delimited list of properties. If specified, filters to these specific properties. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -889,7 +1187,7 @@ def get_build_properties(self, project, build_id, filter=None): query_parameters['filter'] = self._serialize.query('filter', filter, 'str') response = self._send(http_method='GET', location_id='0a6312e9-0627-49b7-8083-7d74a64849c9', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -897,10 +1195,10 @@ def get_build_properties(self, project, build_id, filter=None): def update_build_properties(self, document, project, build_id): """UpdateBuildProperties. [Preview API] Updates properties for a build. - :param :class:`<[JsonPatchOperation]> ` document: + :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. :param str project: Project ID or project name - :param int build_id: The build id. - :rtype: :class:` ` + :param int build_id: The ID of the build. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -910,7 +1208,7 @@ def update_build_properties(self, document, project, build_id): content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='0a6312e9-0627-49b7-8083-7d74a64849c9', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -920,9 +1218,9 @@ def get_definition_properties(self, project, definition_id, filter=None): """GetDefinitionProperties. [Preview API] Gets properties for a definition. :param str project: Project ID or project name - :param int definition_id: The definition id. - :param [str] filter: Filter to specific properties. Defaults to all properties. - :rtype: :class:` ` + :param int definition_id: The ID of the definition. + :param [str] filter: A comma-delimited list of properties. If specified, filters to these specific properties. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -935,7 +1233,7 @@ def get_definition_properties(self, project, definition_id, filter=None): query_parameters['filter'] = self._serialize.query('filter', filter, 'str') response = self._send(http_method='GET', location_id='d9826ad7-2a68-46a9-a6e9-677698777895', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -943,10 +1241,10 @@ def get_definition_properties(self, project, definition_id, filter=None): def update_definition_properties(self, document, project, definition_id): """UpdateDefinitionProperties. [Preview API] Updates properties for a definition. - :param :class:`<[JsonPatchOperation]> ` document: + :param :class:`<[JsonPatchOperation]> ` document: A json-patch document describing the properties to update. :param str project: Project ID or project name - :param int definition_id: The definition id. - :rtype: :class:` ` + :param int definition_id: The ID of the definition. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -956,19 +1254,48 @@ def update_definition_properties(self, document, project, definition_id): content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='d9826ad7-2a68-46a9-a6e9-677698777895', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') return self._deserialize('object', response) + def get_pull_request(self, project, provider_name, pull_request_id, repository_id=None, service_endpoint_id=None): + """GetPullRequest. + [Preview API] Gets a pull request object from source provider. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str pull_request_id: Vendor-specific id of the pull request. + :param str repository_id: Vendor-specific identifier or the name of the repository that contains the pull request. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'str') + query_parameters = {} + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + response = self._send(http_method='GET', + location_id='d8763ec7-9ff0-4fb4-b2b2-9d757906ff14', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PullRequest', response) + def get_build_report(self, project, build_id, type=None): """GetBuildReport. - [Preview API] Gets report for a build + [Preview API] Gets a build report. :param str project: Project ID or project name - :param int build_id: + :param int build_id: The ID of the build. :param str type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -980,16 +1307,16 @@ def get_build_report(self, project, build_id, type=None): query_parameters['type'] = self._serialize.query('type', type, 'str') response = self._send(http_method='GET', location_id='45bcaa88-67e1-4042-a035-56d3b4a7d44c', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('BuildReportMetadata', response) def get_build_report_html_content(self, project, build_id, type=None, **kwargs): """GetBuildReportHtmlContent. - [Preview API] Gets report for a build + [Preview API] Gets a build report. :param str project: Project ID or project name - :param int build_id: + :param int build_id: The ID of the build. :param str type: :rtype: object """ @@ -1003,7 +1330,7 @@ def get_build_report_html_content(self, project, build_id, type=None, **kwargs): query_parameters['type'] = self._serialize.query('type', type, 'str') response = self._send(http_method='GET', location_id='45bcaa88-67e1-4042-a035-56d3b4a7d44c', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/html') @@ -1013,21 +1340,95 @@ def get_build_report_html_content(self, project, build_id, type=None, **kwargs): callback = None return self._client.stream_download(response, callback=callback) + def list_repositories(self, project, provider_name, service_endpoint_id=None, repository=None, result_set=None, page_results=None, continuation_token=None): + """ListRepositories. + [Preview API] Gets a list of source code repositories. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of a single repository to get. + :param str result_set: 'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set. + :param bool page_results: If set to true, this will limit the set of results and will return a continuation token to continue the query. + :param str continuation_token: When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + if result_set is not None: + query_parameters['resultSet'] = self._serialize.query('result_set', result_set, 'str') + if page_results is not None: + query_parameters['pageResults'] = self._serialize.query('page_results', page_results, 'bool') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='d44d1680-f978-4834-9b93-8c6e132329c9', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('SourceRepositories', response) + + def authorize_definition_resources(self, resources, project, definition_id): + """AuthorizeDefinitionResources. + [Preview API] + :param [DefinitionResourceReference] resources: + :param str project: Project ID or project name + :param int definition_id: + :rtype: [DefinitionResourceReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + content = self._serialize.body(resources, '[DefinitionResourceReference]') + response = self._send(http_method='PATCH', + location_id='ea623316-1967-45eb-89ab-e9e6110cf2d6', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) + + def get_definition_resources(self, project, definition_id): + """GetDefinitionResources. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :rtype: [DefinitionResourceReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='ea623316-1967-45eb-89ab-e9e6110cf2d6', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[DefinitionResourceReference]', self._unwrap_collection(response)) + def get_resource_usage(self): """GetResourceUsage. - [Preview API] - :rtype: :class:` ` + [Preview API] Gets information about build resources in the system. + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='3813d06c-9e36-4ea1-aac3-61a485d60e3d', - version='4.0-preview.2') + version='5.1-preview.2') return self._deserialize('BuildResourceUsage', response) def get_definition_revisions(self, project, definition_id): """GetDefinitionRevisions. - Gets revisions of a definition + [Preview API] Gets all revisions of a definition. :param str project: Project ID or project name - :param int definition_id: + :param int definition_id: The ID of the definition. :rtype: [BuildDefinitionRevision] """ route_values = {} @@ -1037,39 +1438,99 @@ def get_definition_revisions(self, project, definition_id): route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') response = self._send(http_method='GET', location_id='7c116775-52e5-453e-8c5d-914d9762d8c4', - version='4.0', + version='5.1-preview.3', route_values=route_values) return self._deserialize('[BuildDefinitionRevision]', self._unwrap_collection(response)) - def get_build_settings(self): + def get_build_settings(self, project=None): """GetBuildSettings. - Gets the build settings - :rtype: :class:` ` + [Preview API] Gets the build settings. + :param str project: Project ID or project name + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', - version='4.0') + version='5.1-preview.1', + route_values=route_values) return self._deserialize('BuildSettings', response) - def update_build_settings(self, settings): + def update_build_settings(self, settings, project=None): """UpdateBuildSettings. - Updates the build settings - :param :class:` ` settings: - :rtype: :class:` ` + [Preview API] Updates the build settings. + :param :class:` ` settings: The new settings. + :param str project: Project ID or project name + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') content = self._serialize.body(settings, 'BuildSettings') response = self._send(http_method='PATCH', location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', - version='4.0', + version='5.1-preview.1', + route_values=route_values, content=content) return self._deserialize('BuildSettings', response) + def list_source_providers(self, project): + """ListSourceProviders. + [Preview API] Get a list of source providers and their capabilities. + :param str project: Project ID or project name + :rtype: [SourceProviderAttributes] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='3ce81729-954f-423d-a581-9fea01d25186', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[SourceProviderAttributes]', self._unwrap_collection(response)) + + def get_status_badge(self, project, definition, branch_name=None, stage_name=None, job_name=None, configuration=None, label=None): + """GetStatusBadge. + [Preview API]

Gets the build status for a definition, optionally scoped to a specific branch, stage, job, and configuration.

If there are more than one, then it is required to pass in a stageName value when specifying a jobName, and the same rule then applies for both if passing a configuration parameter.

+ :param str project: Project ID or project name + :param str definition: Either the definition name with optional leading folder path, or the definition id. + :param str branch_name: Only consider the most recent build for this branch. + :param str stage_name: Use this stage within the pipeline to render the status. + :param str job_name: Use this job within a stage of the pipeline to render the status. + :param str configuration: Use this job configuration to render the status + :param str label: Replaces the default text on the left side of the badge. + :rtype: str + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition is not None: + route_values['definition'] = self._serialize.url('definition', definition, 'str') + query_parameters = {} + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if stage_name is not None: + query_parameters['stageName'] = self._serialize.query('stage_name', stage_name, 'str') + if job_name is not None: + query_parameters['jobName'] = self._serialize.query('job_name', job_name, 'str') + if configuration is not None: + query_parameters['configuration'] = self._serialize.query('configuration', configuration, 'str') + if label is not None: + query_parameters['label'] = self._serialize.query('label', label, 'str') + response = self._send(http_method='GET', + location_id='07acfdce-4757-4439-b422-ddd13a2fcc10', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('str', response) + def add_build_tag(self, project, build_id, tag): """AddBuildTag. - Adds a tag to a build + [Preview API] Adds a tag to a build. :param str project: Project ID or project name - :param int build_id: - :param str tag: + :param int build_id: The ID of the build. + :param str tag: The tag to add. :rtype: [str] """ route_values = {} @@ -1081,16 +1542,16 @@ def add_build_tag(self, project, build_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='PUT', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) def add_build_tags(self, tags, project, build_id): """AddBuildTags. - Adds tag to a build - :param [str] tags: + [Preview API] Adds tags to a build. + :param [str] tags: The tags to add. :param str project: Project ID or project name - :param int build_id: + :param int build_id: The ID of the build. :rtype: [str] """ route_values = {} @@ -1101,17 +1562,17 @@ def add_build_tags(self, tags, project, build_id): content = self._serialize.body(tags, '[str]') response = self._send(http_method='POST', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.0', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('[str]', self._unwrap_collection(response)) def delete_build_tag(self, project, build_id, tag): """DeleteBuildTag. - Deletes a tag from a build + [Preview API] Removes a tag from a build. :param str project: Project ID or project name - :param int build_id: - :param str tag: + :param int build_id: The ID of the build. + :param str tag: The tag to remove. :rtype: [str] """ route_values = {} @@ -1123,15 +1584,15 @@ def delete_build_tag(self, project, build_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='DELETE', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) def get_build_tags(self, project, build_id): """GetBuildTags. - Gets the tags for a build + [Preview API] Gets the tags for a build. :param str project: Project ID or project name - :param int build_id: + :param int build_id: The ID of the build. :rtype: [str] """ route_values = {} @@ -1141,22 +1602,7 @@ def get_build_tags(self, project, build_id): route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') response = self._send(http_method='GET', location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', - version='4.0', - route_values=route_values) - return self._deserialize('[str]', self._unwrap_collection(response)) - - def get_tags(self, project): - """GetTags. - Gets a list of tags in the project - :param str project: Project ID or project name - :rtype: [str] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -1164,8 +1610,8 @@ def add_definition_tag(self, project, definition_id, tag): """AddDefinitionTag. [Preview API] Adds a tag to a definition :param str project: Project ID or project name - :param int definition_id: - :param str tag: + :param int definition_id: The ID of the definition. + :param str tag: The tag to add. :rtype: [str] """ route_values = {} @@ -1177,16 +1623,16 @@ def add_definition_tag(self, project, definition_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='PUT', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) def add_definition_tags(self, tags, project, definition_id): """AddDefinitionTags. - [Preview API] Adds multiple tags to a definition - :param [str] tags: + [Preview API] Adds multiple tags to a definition. + :param [str] tags: The tags to add. :param str project: Project ID or project name - :param int definition_id: + :param int definition_id: The ID of the definition. :rtype: [str] """ route_values = {} @@ -1197,17 +1643,17 @@ def add_definition_tags(self, tags, project, definition_id): content = self._serialize.body(tags, '[str]') response = self._send(http_method='POST', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('[str]', self._unwrap_collection(response)) def delete_definition_tag(self, project, definition_id, tag): """DeleteDefinitionTag. - [Preview API] Deletes a tag from a definition + [Preview API] Removes a tag from a definition. :param str project: Project ID or project name - :param int definition_id: - :param str tag: + :param int definition_id: The ID of the definition. + :param str tag: The tag to remove. :rtype: [str] """ route_values = {} @@ -1219,16 +1665,16 @@ def delete_definition_tag(self, project, definition_id, tag): route_values['tag'] = self._serialize.url('tag', tag, 'str') response = self._send(http_method='DELETE', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[str]', self._unwrap_collection(response)) def get_definition_tags(self, project, definition_id, revision=None): """GetDefinitionTags. - [Preview API] Gets the tags for a definition + [Preview API] Gets the tags for a definition. :param str project: Project ID or project name - :param int definition_id: - :param int revision: + :param int definition_id: The ID of the definition. + :param int revision: The definition revision number. If not specified, uses the latest revision of the definition. :rtype: [str] """ route_values = {} @@ -1241,16 +1687,31 @@ def get_definition_tags(self, project, definition_id, revision=None): query_parameters['revision'] = self._serialize.query('revision', revision, 'int') response = self._send(http_method='GET', location_id='cb894432-134a-4d31-a839-83beceaace4b', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) + def get_tags(self, project): + """GetTags. + [Preview API] Gets a list of all build and definition tags in the project. + :param str project: Project ID or project name + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + def delete_template(self, project, template_id): """DeleteTemplate. - Deletes a definition template + [Preview API] Deletes a build definition template. :param str project: Project ID or project name - :param str template_id: + :param str template_id: The ID of the template. """ route_values = {} if project is not None: @@ -1259,15 +1720,15 @@ def delete_template(self, project, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') self._send(http_method='DELETE', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.0', + version='5.1-preview.3', route_values=route_values) def get_template(self, project, template_id): """GetTemplate. - Gets definition template filtered by id + [Preview API] Gets a specific build definition template. :param str project: Project ID or project name - :param str template_id: Id of the requested template. - :rtype: :class:` ` + :param str template_id: The ID of the requested template. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1276,13 +1737,13 @@ def get_template(self, project, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.0', + version='5.1-preview.3', route_values=route_values) return self._deserialize('BuildDefinitionTemplate', response) def get_templates(self, project): """GetTemplates. - Gets definition templates + [Preview API] Gets all definition templates. :param str project: Project ID or project name :rtype: [BuildDefinitionTemplate] """ @@ -1291,17 +1752,17 @@ def get_templates(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.0', + version='5.1-preview.3', route_values=route_values) return self._deserialize('[BuildDefinitionTemplate]', self._unwrap_collection(response)) def save_template(self, template, project, template_id): """SaveTemplate. - Saves a definition template - :param :class:` ` template: + [Preview API] Updates an existing build definition template. + :param :class:` ` template: The new version of the template. :param str project: Project ID or project name - :param str template_id: - :rtype: :class:` ` + :param str template_id: The ID of the template. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1311,20 +1772,20 @@ def save_template(self, template, project, template_id): content = self._serialize.body(template, 'BuildDefinitionTemplate') response = self._send(http_method='PUT', location_id='e884571e-7f92-4d6a-9274-3f5649900835', - version='4.0', + version='5.1-preview.3', route_values=route_values, content=content) return self._deserialize('BuildDefinitionTemplate', response) def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None, plan_id=None): """GetBuildTimeline. - Gets details for a build + [Preview API] Gets details for a build :param str project: Project ID or project name :param int build_id: :param str timeline_id: :param int change_id: :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1340,17 +1801,70 @@ def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='8baac422-4c6e-4de5-8532-db96d92acffa', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Timeline', response) + def restore_webhooks(self, trigger_types, project, provider_name, service_endpoint_id=None, repository=None): + """RestoreWebhooks. + [Preview API] Recreates the webhooks for the specified triggers in the given source code repository. + :param [DefinitionTriggerType] trigger_types: The types of triggers to restore webhooks for. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + content = self._serialize.body(trigger_types, '[DefinitionTriggerType]') + self._send(http_method='POST', + location_id='793bceb8-9736-4030-bd2f-fb3ce6d6b478', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + + def list_webhooks(self, project, provider_name, service_endpoint_id=None, repository=None): + """ListWebhooks. + [Preview API] Gets a list of webhooks installed in the given source code repository. + :param str project: Project ID or project name + :param str provider_name: The name of the source provider. + :param str service_endpoint_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. + :param str repository: If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories. + :rtype: [RepositoryWebhook] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if provider_name is not None: + route_values['providerName'] = self._serialize.url('provider_name', provider_name, 'str') + query_parameters = {} + if service_endpoint_id is not None: + query_parameters['serviceEndpointId'] = self._serialize.query('service_endpoint_id', service_endpoint_id, 'str') + if repository is not None: + query_parameters['repository'] = self._serialize.query('repository', repository, 'str') + response = self._send(http_method='GET', + location_id='8f20ff82-9498-4812-9f6e-9c01bdc50e99', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[RepositoryWebhook]', self._unwrap_collection(response)) + def get_build_work_items_refs(self, project, build_id, top=None): """GetBuildWorkItemsRefs. - Gets the work item ids associated with a build + [Preview API] Gets the work items associated with a build. :param str project: Project ID or project name - :param int build_id: - :param int top: The maximum number of workitems to return + :param int build_id: The ID of the build. + :param int top: The maximum number of work items to return. :rtype: [ResourceRef] """ route_values = {} @@ -1363,18 +1877,18 @@ def get_build_work_items_refs(self, project, build_id, top=None): query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, top=None): """GetBuildWorkItemsRefsFromCommits. - Gets the work item ids associated with build commits - :param [str] commit_ids: + [Preview API] Gets the work items associated with a build, filtered to specific commits. + :param [str] commit_ids: A comma-delimited list of commit IDs. :param str project: Project ID or project name - :param int build_id: - :param int top: The maximum number of workitems to return, also number of commits to consider if commitids are not sent + :param int build_id: The ID of the build. + :param int top: The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified. :rtype: [ResourceRef] """ route_values = {} @@ -1388,7 +1902,7 @@ def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, content = self._serialize.body(commit_ids, '[str]') response = self._send(http_method='POST', location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1396,11 +1910,11 @@ def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, def get_work_items_between_builds(self, project, from_build_id, to_build_id, top=None): """GetWorkItemsBetweenBuilds. - [Preview API] Gets all the work item ids inbetween fromBuildId to toBuildId + [Preview API] Gets all the work items between two builds. :param str project: Project ID or project name - :param int from_build_id: - :param int to_build_id: - :param int top: The maximum number of workitems to return + :param int from_build_id: The ID of the first build. + :param int to_build_id: The ID of the last build. + :param int top: The maximum number of work items to return. :rtype: [ResourceRef] """ route_values = {} @@ -1415,7 +1929,7 @@ def get_work_items_between_builds(self, project, from_build_id, to_build_id, top query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='52ba8915-5518-42e3-a4bb-b0182d159e2d', - version='4.0-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_0/build/models.py b/azure-devops/azure/devops/v5_1/build/models.py similarity index 53% rename from azure-devops/azure/devops/v4_0/build/models.py rename to azure-devops/azure/devops/v5_1/build/models.py index ecff5208..3829d54a 100644 --- a/azure-devops/azure/devops/v4_0/build/models.py +++ b/azure-devops/azure/devops/v5_1/build/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -13,14 +13,14 @@ class AgentPoolQueue(Model): """AgentPoolQueue. :param _links: - :type _links: :class:`ReferenceLinks ` - :param id: Id of the resource + :type _links: :class:`ReferenceLinks ` + :param id: The ID of the queue. :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) + :param name: The name of the queue. :type name: str :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` - :param url: Full http link to the resource + :type pool: :class:`TaskAgentPoolReference ` + :param url: The full http link to the resource. :type url: str """ @@ -41,20 +41,176 @@ def __init__(self, _links=None, id=None, name=None, pool=None, url=None): self.url = url +class AggregatedResultsAnalysis(Model): + """AggregatedResultsAnalysis. + + :param duration: + :type duration: object + :param not_reported_results_by_outcome: + :type not_reported_results_by_outcome: dict + :param previous_context: + :type previous_context: :class:`TestResultsContext ` + :param results_by_outcome: + :type results_by_outcome: dict + :param results_difference: + :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_outcome: + :type run_summary_by_outcome: dict + :param run_summary_by_state: + :type run_summary_by_state: dict + :param total_tests: + :type total_tests: int + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'object'}, + 'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_outcome': {'key': 'runSummaryByOutcome', 'type': '{AggregatedRunsByOutcome}'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, + 'total_tests': {'key': 'totalTests', 'type': 'int'} + } + + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_outcome=None, run_summary_by_state=None, total_tests=None): + super(AggregatedResultsAnalysis, self).__init__() + self.duration = duration + self.not_reported_results_by_outcome = not_reported_results_by_outcome + self.previous_context = previous_context + self.results_by_outcome = results_by_outcome + self.results_difference = results_difference + self.run_summary_by_outcome = run_summary_by_outcome + self.run_summary_by_state = run_summary_by_state + self.total_tests = total_tests + + +class AggregatedResultsByOutcome(Model): + """AggregatedResultsByOutcome. + + :param count: + :type count: int + :param duration: + :type duration: object + :param group_by_field: + :type group_by_field: str + :param group_by_value: + :type group_by_value: object + :param outcome: + :type outcome: object + :param rerun_result_count: + :type rerun_result_count: int + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration': {'key': 'duration', 'type': 'object'}, + 'group_by_field': {'key': 'groupByField', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} + } + + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): + super(AggregatedResultsByOutcome, self).__init__() + self.count = count + self.duration = duration + self.group_by_field = group_by_field + self.group_by_value = group_by_value + self.outcome = outcome + self.rerun_result_count = rerun_result_count + + +class AggregatedResultsDifference(Model): + """AggregatedResultsDifference. + + :param increase_in_duration: + :type increase_in_duration: object + :param increase_in_failures: + :type increase_in_failures: int + :param increase_in_other_tests: + :type increase_in_other_tests: int + :param increase_in_passed_tests: + :type increase_in_passed_tests: int + :param increase_in_total_tests: + :type increase_in_total_tests: int + """ + + _attribute_map = { + 'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'}, + 'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'}, + 'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'}, + 'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'}, + 'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'} + } + + def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None): + super(AggregatedResultsDifference, self).__init__() + self.increase_in_duration = increase_in_duration + self.increase_in_failures = increase_in_failures + self.increase_in_other_tests = increase_in_other_tests + self.increase_in_passed_tests = increase_in_passed_tests + self.increase_in_total_tests = increase_in_total_tests + + +class AggregatedRunsByOutcome(Model): + """AggregatedRunsByOutcome. + + :param outcome: + :type outcome: object + :param runs_count: + :type runs_count: int + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'runs_count': {'key': 'runsCount', 'type': 'int'} + } + + def __init__(self, outcome=None, runs_count=None): + super(AggregatedRunsByOutcome, self).__init__() + self.outcome = outcome + self.runs_count = runs_count + + +class AggregatedRunsByState(Model): + """AggregatedRunsByState. + + :param results_by_outcome: + :type results_by_outcome: dict + :param runs_count: + :type runs_count: int + :param state: + :type state: object + """ + + _attribute_map = { + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'runs_count': {'key': 'runsCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, results_by_outcome=None, runs_count=None, state=None): + super(AggregatedRunsByState, self).__init__() + self.results_by_outcome = results_by_outcome + self.runs_count = runs_count + self.state = state + + class ArtifactResource(Model): """ArtifactResource. :param _links: - :type _links: :class:`ReferenceLinks ` - :param data: The type-specific resource data. For example, "#/10002/5/drop", "$/drops/5", "\\myshare\myfolder\mydrops\5" + :type _links: :class:`ReferenceLinks ` + :param data: Type-specific data about the artifact. :type data: str - :param download_url: Link to the resource. This might include things like query parameters to download as a zip file + :param download_url: A link to download the resource. :type download_url: str - :param properties: Properties of Artifact Resource + :param properties: Type-specific properties of the artifact. :type properties: dict :param type: The type of the resource: File container, version control folder, UNC path, etc. :type type: str - :param url: Link to the resource + :param url: The full http link to the resource. :type url: str """ @@ -77,93 +233,175 @@ def __init__(self, _links=None, data=None, download_url=None, properties=None, t self.url = url +class AssociatedWorkItem(Model): + """AssociatedWorkItem. + + :param assigned_to: + :type assigned_to: str + :param id: Id of associated the work item. + :type id: int + :param state: + :type state: str + :param title: + :type title: str + :param url: REST Url of the work item. + :type url: str + :param web_url: + :type web_url: str + :param work_item_type: + :type work_item_type: str + """ + + _attribute_map = { + 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'} + } + + def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): + super(AssociatedWorkItem, self).__init__() + self.assigned_to = assigned_to + self.id = id + self.state = state + self.title = title + self.url = url + self.web_url = web_url + self.work_item_type = work_item_type + + +class Attachment(Model): + """Attachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param name: The name of the attachment. + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, name=None): + super(Attachment, self).__init__() + self._links = _links + self.name = name + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + class Build(Model): """Build. :param _links: - :type _links: :class:`ReferenceLinks ` - :param build_number: Build number/name of the build + :type _links: :class:`ReferenceLinks ` + :param build_number: The build number/name of the build. :type build_number: str - :param build_number_revision: Build number revision + :param build_number_revision: The build number revision. :type build_number_revision: int - :param controller: The build controller. This should only be set if the definition type is Xaml. - :type controller: :class:`BuildController ` - :param definition: The definition associated with the build - :type definition: :class:`DefinitionReference ` + :param controller: The build controller. This is only set if the definition type is Xaml. + :type controller: :class:`BuildController ` + :param definition: The definition associated with the build. + :type definition: :class:`DefinitionReference ` :param deleted: Indicates whether the build has been deleted. :type deleted: bool - :param deleted_by: Process or person that deleted the build - :type deleted_by: :class:`IdentityRef ` - :param deleted_date: Date the build was deleted + :param deleted_by: The identity of the process or person that deleted the build. + :type deleted_by: :class:`IdentityRef ` + :param deleted_date: The date the build was deleted. :type deleted_date: datetime - :param deleted_reason: Description of how the build was deleted + :param deleted_reason: The description of how the build was deleted. :type deleted_reason: str - :param demands: Demands - :type demands: list of :class:`object ` - :param finish_time: Time that the build was completed + :param demands: A list of demands that represents the agent capabilities required by this build. + :type demands: list of :class:`object ` + :param finish_time: The time that the build was completed. :type finish_time: datetime - :param id: Id of the build + :param id: The ID of the build. :type id: int - :param keep_forever: + :param keep_forever: Indicates whether the build should be skipped by retention policies. :type keep_forever: bool - :param last_changed_by: Process or person that last changed the build - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: Date the build was last changed + :param last_changed_by: The identity representing the process or person that last changed the build. + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: The date the build was last changed. :type last_changed_date: datetime - :param logs: Log location of the build - :type logs: :class:`BuildLogReference ` - :param orchestration_plan: Orchestration plan for the build - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` - :param parameters: Parameters for the build + :param logs: Information about the build logs. + :type logs: :class:`BuildLogReference ` + :param orchestration_plan: The orchestration plan for the build. + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :param parameters: The parameters for the build. :type parameters: str :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` - :param priority: The build's priority + :type plans: list of :class:`TaskOrchestrationPlanReference ` + :param priority: The build's priority. :type priority: object - :param project: The team project - :type project: :class:`TeamProjectReference ` + :param project: The team project. + :type project: :class:`TeamProjectReference ` :param properties: - :type properties: :class:`object ` - :param quality: Quality of the xaml build (good, bad, etc.) + :type properties: :class:`object ` + :param quality: The quality of the xaml build (good, bad, etc.) :type quality: str - :param queue: The queue. This should only be set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` - :param queue_options: Queue option of the build. + :param queue: The queue. This is only set if the definition type is Build. + :type queue: :class:`AgentPoolQueue ` + :param queue_options: Additional options for queueing the build. :type queue_options: object - :param queue_position: The current position of the build in the queue + :param queue_position: The current position of the build in the queue. :type queue_position: int - :param queue_time: Time that the build was queued + :param queue_time: The time that the build was queued. :type queue_time: datetime - :param reason: Reason that the build was created + :param reason: The reason that the build was created. :type reason: object - :param repository: The repository - :type repository: :class:`BuildRepository ` - :param requested_by: The identity that queued the build - :type requested_by: :class:`IdentityRef ` - :param requested_for: The identity on whose behalf the build was queued - :type requested_for: :class:`IdentityRef ` - :param result: The build result + :param repository: The repository. + :type repository: :class:`BuildRepository ` + :param requested_by: The identity that queued the build. + :type requested_by: :class:`IdentityRef ` + :param requested_for: The identity on whose behalf the build was queued. + :type requested_for: :class:`IdentityRef ` + :param result: The build result. :type result: object - :param retained_by_release: Specifies if Build should be retained by Release + :param retained_by_release: Indicates whether the build is retained by a release. :type retained_by_release: bool - :param source_branch: Source branch + :param source_branch: The source branch. :type source_branch: str - :param source_version: Source version + :param source_version: The source version. :type source_version: str - :param start_time: Time that the build was started + :param start_time: The time that the build was started. :type start_time: datetime - :param status: Status of the build + :param status: The status of the build. :type status: object :param tags: :type tags: list of str + :param triggered_by_build: The build that triggered this build via a Build completion trigger. + :type triggered_by_build: :class:`Build ` :param trigger_info: Sourceprovider-specific information about what triggered the build :type trigger_info: dict - :param uri: Uri of the build + :param uri: The URI of the build. :type uri: str - :param url: REST url of the build + :param url: The REST URL of the build. :type url: str :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` + :type validation_results: list of :class:`BuildRequestValidationResult ` """ _attribute_map = { @@ -205,13 +443,14 @@ class Build(Model): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'object'}, 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggered_by_build': {'key': 'triggeredByBuild', 'type': 'Build'}, 'trigger_info': {'key': 'triggerInfo', 'type': '{str}'}, 'uri': {'key': 'uri', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'} } - def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, trigger_info=None, uri=None, url=None, validation_results=None): + def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, triggered_by_build=None, trigger_info=None, uri=None, url=None, validation_results=None): super(Build, self).__init__() self._links = _links self.build_number = build_number @@ -251,6 +490,7 @@ def __init__(self, _links=None, build_number=None, build_number_revision=None, c self.start_time = start_time self.status = status self.tags = tags + self.triggered_by_build = triggered_by_build self.trigger_info = trigger_info self.uri = uri self.url = url @@ -260,12 +500,12 @@ def __init__(self, _links=None, build_number=None, build_number_revision=None, c class BuildArtifact(Model): """BuildArtifact. - :param id: The artifact id + :param id: The artifact ID. :type id: int - :param name: The name of the artifact + :param name: The name of the artifact. :type name: str - :param resource: The actual resource - :type resource: :class:`ArtifactResource ` + :param resource: The actual resource. + :type resource: :class:`ArtifactResource ` """ _attribute_map = { @@ -284,9 +524,9 @@ def __init__(self, id=None, name=None, resource=None): class BuildBadge(Model): """BuildBadge. - :param build_id: Build id, if exists that this badge corresponds to + :param build_id: The ID of the build represented by this badge. :type build_id: int - :param image_url: Self Url that generates SVG + :param image_url: A link to the SVG resource. :type image_url: str """ @@ -304,19 +544,19 @@ def __init__(self, build_id=None, image_url=None): class BuildDefinitionRevision(Model): """BuildDefinitionRevision. - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: + :param changed_by: The identity of the person or process that changed the definition. + :type changed_by: :class:`IdentityRef ` + :param changed_date: The date and time that the definition was changed. :type changed_date: datetime - :param change_type: + :param change_type: The change type (add, edit, delete). :type change_type: object - :param comment: + :param comment: The comment associated with the change. :type comment: str - :param definition_url: + :param definition_url: A link to the definition at this revision. :type definition_url: str - :param name: + :param name: The name of the definition. :type name: str - :param revision: + :param revision: The revision number. :type revision: int """ @@ -344,25 +584,25 @@ def __init__(self, changed_by=None, changed_date=None, change_type=None, comment class BuildDefinitionStep(Model): """BuildDefinitionStep. - :param always_run: + :param always_run: Indicates whether this step should run even if a previous step fails. :type always_run: bool - :param condition: + :param condition: A condition that determines whether this step should run. :type condition: str - :param continue_on_error: + :param continue_on_error: Indicates whether the phase should continue even if this step fails. :type continue_on_error: bool - :param display_name: + :param display_name: The display name for this step. :type display_name: str - :param enabled: + :param enabled: Indicates whether the step is enabled. :type enabled: bool :param environment: :type environment: dict :param inputs: :type inputs: dict - :param ref_name: + :param ref_name: The reference name for this step. :type ref_name: str - :param task: - :type task: :class:`TaskDefinitionReference ` - :param timeout_in_minutes: + :param task: The task associated with this step. + :type task: :class:`TaskDefinitionReference ` + :param timeout_in_minutes: The time, in minutes, that this step is allowed to run. :type timeout_in_minutes: int """ @@ -396,27 +636,30 @@ def __init__(self, always_run=None, condition=None, continue_on_error=None, disp class BuildDefinitionTemplate(Model): """BuildDefinitionTemplate. - :param can_delete: + :param can_delete: Indicates whether the template can be deleted. :type can_delete: bool - :param category: + :param category: The template category. :type category: str - :param description: + :param default_hosted_queue: An optional hosted agent queue for the template to use by default. + :type default_hosted_queue: str + :param description: A description of the template. :type description: str :param icons: :type icons: dict - :param icon_task_id: + :param icon_task_id: The ID of the task whose icon is used when showing this template in the UI. :type icon_task_id: str - :param id: + :param id: The ID of the template. :type id: str - :param name: + :param name: The name of the template. :type name: str - :param template: - :type template: :class:`BuildDefinition ` + :param template: The actual template. + :type template: :class:`BuildDefinition ` """ _attribute_map = { 'can_delete': {'key': 'canDelete', 'type': 'bool'}, 'category': {'key': 'category', 'type': 'str'}, + 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'icons': {'key': 'icons', 'type': '{str}'}, 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, @@ -425,10 +668,11 @@ class BuildDefinitionTemplate(Model): 'template': {'key': 'template', 'type': 'BuildDefinition'} } - def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): super(BuildDefinitionTemplate, self).__init__() self.can_delete = can_delete self.category = category + self.default_hosted_queue = default_hosted_queue self.description = description self.icons = icons self.icon_task_id = icon_task_id @@ -444,6 +688,8 @@ class BuildDefinitionTemplate3_2(Model): :type can_delete: bool :param category: :type category: str + :param default_hosted_queue: + :type default_hosted_queue: str :param description: :type description: str :param icons: @@ -455,12 +701,13 @@ class BuildDefinitionTemplate3_2(Model): :param name: :type name: str :param template: - :type template: :class:`BuildDefinition3_2 ` + :type template: :class:`BuildDefinition3_2 ` """ _attribute_map = { 'can_delete': {'key': 'canDelete', 'type': 'bool'}, 'category': {'key': 'category', 'type': 'str'}, + 'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'icons': {'key': 'icons', 'type': '{str}'}, 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, @@ -469,10 +716,11 @@ class BuildDefinitionTemplate3_2(Model): 'template': {'key': 'template', 'type': 'BuildDefinition3_2'} } - def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): + def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None): super(BuildDefinitionTemplate3_2, self).__init__() self.can_delete = can_delete self.category = category + self.default_hosted_queue = default_hosted_queue self.description = description self.icons = icons self.icon_task_id = icon_task_id @@ -484,11 +732,11 @@ def __init__(self, can_delete=None, category=None, description=None, icons=None, class BuildDefinitionVariable(Model): """BuildDefinitionVariable. - :param allow_override: + :param allow_override: Indicates whether the value can be set at queue time. :type allow_override: bool - :param is_secret: + :param is_secret: Indicates whether the variable's value is a secret. :type is_secret: bool - :param value: + :param value: The value of the variable. :type value: str """ @@ -508,11 +756,11 @@ def __init__(self, allow_override=None, is_secret=None, value=None): class BuildLogReference(Model): """BuildLogReference. - :param id: The id of the log. + :param id: The ID of the log. :type id: int :param type: The type of the log location. :type type: str - :param url: Full link to the log resource. + :param url: A full link to the log resource. :type url: str """ @@ -532,13 +780,13 @@ def __init__(self, id=None, type=None, url=None): class BuildMetric(Model): """BuildMetric. - :param date: Scoped date of the metric + :param date: The date for the scope. :type date: datetime - :param int_value: The int value of the metric + :param int_value: The value. :type int_value: int - :param name: The name of the metric + :param name: The name of the metric. :type name: str - :param scope: The scope of the metric + :param scope: The scope. :type scope: str """ @@ -560,9 +808,9 @@ def __init__(self, date=None, int_value=None, name=None, scope=None): class BuildOption(Model): """BuildOption. - :param definition: - :type definition: :class:`BuildOptionDefinitionReference ` - :param enabled: + :param definition: A reference to the build option. + :type definition: :class:`BuildOptionDefinitionReference ` + :param enabled: Indicates whether the behavior is enabled. :type enabled: bool :param inputs: :type inputs: dict @@ -584,7 +832,7 @@ def __init__(self, definition=None, enabled=None, inputs=None): class BuildOptionDefinitionReference(Model): """BuildOptionDefinitionReference. - :param id: + :param id: The ID of the referenced build option. :type id: str """ @@ -600,11 +848,11 @@ def __init__(self, id=None): class BuildOptionGroupDefinition(Model): """BuildOptionGroupDefinition. - :param display_name: + :param display_name: The name of the group to display in the UI. :type display_name: str - :param is_expanded: + :param is_expanded: Indicates whether the group is initially displayed as expanded in the UI. :type is_expanded: bool - :param name: + :param name: The internal name of the group. :type name: str """ @@ -624,23 +872,23 @@ def __init__(self, display_name=None, is_expanded=None, name=None): class BuildOptionInputDefinition(Model): """BuildOptionInputDefinition. - :param default_value: + :param default_value: The default value. :type default_value: str - :param group_name: + :param group_name: The name of the input group that this input belongs to. :type group_name: str :param help: :type help: dict - :param label: + :param label: The label for the input. :type label: str - :param name: + :param name: The name of the input. :type name: str :param options: :type options: dict - :param required: + :param required: Indicates whether the input is required to have a value. :type required: bool - :param type: + :param type: Indicates the type of the input value. :type type: object - :param visible_rule: + :param visible_rule: The rule that is applied to determine whether the input is visible in the UI. :type visible_rule: str """ @@ -672,11 +920,11 @@ def __init__(self, default_value=None, group_name=None, help=None, label=None, n class BuildReportMetadata(Model): """BuildReportMetadata. - :param build_id: + :param build_id: The Id of the build. :type build_id: int - :param content: + :param content: The content of the report. :type content: str - :param type: + :param type: The type of the report. :type type: str """ @@ -696,23 +944,23 @@ def __init__(self, build_id=None, content=None, type=None): class BuildRepository(Model): """BuildRepository. - :param checkout_submodules: + :param checkout_submodules: Indicates whether to checkout submodules. :type checkout_submodules: bool - :param clean: Indicates whether to clean the target folder when getting code from the repository. This is a String so that it can reference variables. + :param clean: Indicates whether to clean the target folder when getting code from the repository. :type clean: str - :param default_branch: Gets or sets the name of the default branch. + :param default_branch: The name of the default branch. :type default_branch: str - :param id: + :param id: The ID of the repository. :type id: str - :param name: Gets or sets the friendly name of the repository. + :param name: The friendly name of the repository. :type name: str :param properties: :type properties: dict - :param root_folder: Gets or sets the root folder. + :param root_folder: The root folder. :type root_folder: str - :param type: Gets or sets the type of the repository. + :param type: The type of the repository. :type type: str - :param url: Gets or sets the url of the repository. + :param url: The URL of the repository. :type url: str """ @@ -744,9 +992,9 @@ def __init__(self, checkout_submodules=None, clean=None, default_branch=None, id class BuildRequestValidationResult(Model): """BuildRequestValidationResult. - :param message: + :param message: The message associated with the result. :type message: str - :param result: + :param result: The result. :type result: object """ @@ -764,13 +1012,13 @@ def __init__(self, message=None, result=None): class BuildResourceUsage(Model): """BuildResourceUsage. - :param distributed_task_agents: + :param distributed_task_agents: The number of build agents. :type distributed_task_agents: int - :param paid_private_agent_slots: + :param paid_private_agent_slots: The number of paid private agent slots. :type paid_private_agent_slots: int - :param total_usage: + :param total_usage: The total usage. :type total_usage: int - :param xaml_controllers: + :param xaml_controllers: The number of XAML controllers. :type xaml_controllers: int """ @@ -792,12 +1040,12 @@ def __init__(self, distributed_task_agents=None, paid_private_agent_slots=None, class BuildSettings(Model): """BuildSettings. - :param days_to_keep_deleted_builds_before_destroy: + :param days_to_keep_deleted_builds_before_destroy: The number of days to keep records of deleted builds. :type days_to_keep_deleted_builds_before_destroy: int - :param default_retention_policy: - :type default_retention_policy: :class:`RetentionPolicy ` - :param maximum_retention_policy: - :type maximum_retention_policy: :class:`RetentionPolicy ` + :param default_retention_policy: The default retention policy. + :type default_retention_policy: :class:`RetentionPolicy ` + :param maximum_retention_policy: The maximum retention policy. + :type maximum_retention_policy: :class:`RetentionPolicy ` """ _attribute_map = { @@ -817,18 +1065,20 @@ class Change(Model): """Change. :param author: The author of the change. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param display_uri: The location of a user-friendly representation of the resource. :type display_uri: str - :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :param id: The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. :type id: str :param location: The location of the full representation of the resource. :type location: str - :param message: A description of the change. This might be a commit message or changeset description. + :param message: The description of the change. This might be a commit message or changeset description. :type message: str - :param message_truncated: Indicates whether the message was truncated + :param message_truncated: Indicates whether the message was truncated. :type message_truncated: bool - :param timestamp: A timestamp for the change. + :param pusher: The person or process that pushed the change. + :type pusher: str + :param timestamp: The timestamp for the change. :type timestamp: datetime :param type: The type of change. "commit", "changeset", etc. :type type: str @@ -841,11 +1091,12 @@ class Change(Model): 'location': {'key': 'location', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'message_truncated': {'key': 'messageTruncated', 'type': 'bool'}, + 'pusher': {'key': 'pusher', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, timestamp=None, type=None): + def __init__(self, author=None, display_uri=None, id=None, location=None, message=None, message_truncated=None, pusher=None, timestamp=None, type=None): super(Change, self).__init__() self.author = author self.display_uri = display_uri @@ -853,6 +1104,7 @@ def __init__(self, author=None, display_uri=None, id=None, location=None, messag self.location = location self.message = message self.message_truncated = message_truncated + self.pusher = pusher self.timestamp = timestamp self.type = type @@ -860,38 +1112,62 @@ def __init__(self, author=None, display_uri=None, id=None, location=None, messag class DataSourceBindingBase(Model): """DataSourceBindingBase. - :param data_source_name: + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str + :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str - :param endpoint_id: + :param endpoint_id: Gets or sets the endpoint Id. :type endpoint_id: str - :param endpoint_url: + :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str - :param parameters: + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str + :param parameters: Gets or sets the parameters for the data source. :type parameters: dict - :param result_selector: + :param request_content: Gets or sets http request body + :type request_content: str + :param request_verb: Gets or sets http request verb + :type request_verb: str + :param result_selector: Gets or sets the result selector. :type result_selector: str - :param result_template: + :param result_template: Gets or sets the result template. :type result_template: str - :param target: + :param target: Gets or sets the target of the data source. :type target: str """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'} } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, result_selector=None, result_template=None, target=None): super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template self.data_source_name = data_source_name self.endpoint_id = endpoint_id self.endpoint_url = endpoint_url + self.headers = headers + self.initial_context_template = initial_context_template self.parameters = parameters + self.request_content = request_content + self.request_verb = request_verb self.result_selector = result_selector self.result_template = result_template self.target = target @@ -900,25 +1176,25 @@ def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, p class DefinitionReference(Model): """DefinitionReference. - :param created_date: The date the definition was created + :param created_date: The date this version of the definition was created. :type created_date: datetime - :param id: Id of the resource + :param id: The ID of the referenced definition. :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) + :param name: The name of the referenced definition. :type name: str - :param path: The path this definitions belongs to + :param path: The folder path of the definition. :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. :type revision: int :param type: The type of the definition. :type type: object - :param uri: The Uri of the definition + :param uri: The definition's URI. :type uri: str - :param url: Full http link to the resource + :param url: The REST URL of the definition. :type url: str """ @@ -949,6 +1225,34 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non self.url = url +class DefinitionResourceReference(Model): + """DefinitionResourceReference. + + :param authorized: Indicates whether the resource is authorized for use. + :type authorized: bool + :param id: The id of the resource. + :type id: str + :param name: A friendly name for the resource. + :type name: str + :param type: The type of the resource. + :type type: str + """ + + _attribute_map = { + 'authorized': {'key': 'authorized', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, authorized=None, id=None, name=None, type=None): + super(DefinitionResourceReference, self).__init__() + self.authorized = authorized + self.id = id + self.name = name + self.type = type + + class Deployment(Model): """Deployment. @@ -968,20 +1272,20 @@ def __init__(self, type=None): class Folder(Model): """Folder. - :param created_by: Process or person who created the folder - :type created_by: :class:`IdentityRef ` - :param created_on: Creation date of the folder + :param created_by: The process or person who created the folder. + :type created_by: :class:`IdentityRef ` + :param created_on: The date the folder was created. :type created_on: datetime - :param description: The description of the folder + :param description: The description. :type description: str - :param last_changed_by: Process or person that last changed the folder - :type last_changed_by: :class:`IdentityRef ` - :param last_changed_date: Date the folder was last changed + :param last_changed_by: The process or person that last changed the folder. + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: The date the folder was last changed. :type last_changed_date: datetime - :param path: The path of the folder + :param path: The full path. :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -1005,68 +1309,104 @@ def __init__(self, created_by=None, created_on=None, description=None, last_chan self.project = project -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class Issue(Model): """Issue. - :param category: + :param category: The category. :type category: str :param data: :type data: dict - :param message: + :param message: A description of the issue. :type message: str - :param type: + :param type: The type (error, warning) of the issue. :type type: object """ @@ -1117,11 +1457,11 @@ class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :type data_source_bindings: list of :class:`DataSourceBindingBase ` :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` + :type inputs: list of :class:`TaskInputDefinitionBase ` :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` """ _attribute_map = { @@ -1137,6 +1477,62 @@ def __init__(self, data_source_bindings=None, inputs=None, source_definitions=No self.source_definitions = source_definitions +class PullRequest(Model): + """PullRequest. + + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the pull request. + :type author: :class:`IdentityRef ` + :param current_state: Current state of the pull request, e.g. open, merged, closed, conflicts, etc. + :type current_state: str + :param description: Description for the pull request. + :type description: str + :param id: Unique identifier for the pull request + :type id: str + :param provider_name: The name of the provider this pull request is associated with. + :type provider_name: str + :param source_branch_ref: Source branch ref of this pull request + :type source_branch_ref: str + :param source_repository_owner: Owner of the source repository of this pull request + :type source_repository_owner: str + :param target_branch_ref: Target branch ref of this pull request + :type target_branch_ref: str + :param target_repository_owner: Owner of the target repository of this pull request + :type target_repository_owner: str + :param title: Title of the pull request. + :type title: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'current_state': {'key': 'currentState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'source_branch_ref': {'key': 'sourceBranchRef', 'type': 'str'}, + 'source_repository_owner': {'key': 'sourceRepositoryOwner', 'type': 'str'}, + 'target_branch_ref': {'key': 'targetBranchRef', 'type': 'str'}, + 'target_repository_owner': {'key': 'targetRepositoryOwner', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, _links=None, author=None, current_state=None, description=None, id=None, provider_name=None, source_branch_ref=None, source_repository_owner=None, target_branch_ref=None, target_repository_owner=None, title=None): + super(PullRequest, self).__init__() + self._links = _links + self.author = author + self.current_state = current_state + self.description = description + self.id = id + self.provider_name = provider_name + self.source_branch_ref = source_branch_ref + self.source_repository_owner = source_repository_owner + self.target_branch_ref = target_branch_ref + self.target_repository_owner = target_repository_owner + self.title = title + + class ReferenceLinks(Model): """ReferenceLinks. @@ -1153,6 +1549,82 @@ def __init__(self, links=None): self.links = links +class ReleaseReference(Model): + """ReleaseReference. + + :param attempt: + :type attempt: int + :param creation_date: + :type creation_date: datetime + :param definition_id: Release definition ID. + :type definition_id: int + :param environment_creation_date: + :type environment_creation_date: datetime + :param environment_definition_id: Release environment definition ID. + :type environment_definition_id: int + :param environment_definition_name: Release environment definition name. + :type environment_definition_name: str + :param environment_id: Release environment ID. + :type environment_id: int + :param environment_name: Release environment name. + :type environment_name: str + :param id: Release ID. + :type id: int + :param name: Release name. + :type name: str + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_creation_date': {'key': 'environmentCreationDate', 'type': 'iso-8601'}, + 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, + 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'environment_name': {'key': 'environmentName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, attempt=None, creation_date=None, definition_id=None, environment_creation_date=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + super(ReleaseReference, self).__init__() + self.attempt = attempt + self.creation_date = creation_date + self.definition_id = definition_id + self.environment_creation_date = environment_creation_date + self.environment_definition_id = environment_definition_id + self.environment_definition_name = environment_definition_name + self.environment_id = environment_id + self.environment_name = environment_name + self.id = id + self.name = name + + +class RepositoryWebhook(Model): + """RepositoryWebhook. + + :param name: The friendly name of the repository. + :type name: str + :param types: + :type types: list of DefinitionTriggerType + :param url: The URL of the repository. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'types': {'key': 'types', 'type': '[object]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, types=None, url=None): + super(RepositoryWebhook, self).__init__() + self.name = name + self.types = types + self.url = url + + class ResourceRef(Model): """ResourceRef. @@ -1182,13 +1654,13 @@ class RetentionPolicy(Model): :type artifact_types_to_delete: list of str :param branches: :type branches: list of str - :param days_to_keep: + :param days_to_keep: The number of days to keep builds. :type days_to_keep: int - :param delete_build_record: + :param delete_build_record: Indicates whether the build record itself should be deleted. :type delete_build_record: bool - :param delete_test_results: + :param delete_test_results: Indicates whether to delete test results associated with the build. :type delete_test_results: bool - :param minimum_to_keep: + :param minimum_to_keep: The minimum number of builds to keep. :type minimum_to_keep: int """ @@ -1213,14 +1685,162 @@ def __init__(self, artifacts=None, artifact_types_to_delete=None, branches=None, self.minimum_to_keep = minimum_to_keep +class SourceProviderAttributes(Model): + """SourceProviderAttributes. + + :param name: The name of the source provider. + :type name: str + :param supported_capabilities: The capabilities supported by this source provider. + :type supported_capabilities: dict + :param supported_triggers: The types of triggers supported by this source provider. + :type supported_triggers: list of :class:`SupportedTrigger ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{bool}'}, + 'supported_triggers': {'key': 'supportedTriggers', 'type': '[SupportedTrigger]'} + } + + def __init__(self, name=None, supported_capabilities=None, supported_triggers=None): + super(SourceProviderAttributes, self).__init__() + self.name = name + self.supported_capabilities = supported_capabilities + self.supported_triggers = supported_triggers + + +class SourceRepositories(Model): + """SourceRepositories. + + :param continuation_token: A token used to continue this paged request; 'null' if the request is complete + :type continuation_token: str + :param page_length: The number of repositories requested for each page + :type page_length: int + :param repositories: A list of repositories + :type repositories: list of :class:`SourceRepository ` + :param total_page_count: The total number of pages, or '-1' if unknown + :type total_page_count: int + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'page_length': {'key': 'pageLength', 'type': 'int'}, + 'repositories': {'key': 'repositories', 'type': '[SourceRepository]'}, + 'total_page_count': {'key': 'totalPageCount', 'type': 'int'} + } + + def __init__(self, continuation_token=None, page_length=None, repositories=None, total_page_count=None): + super(SourceRepositories, self).__init__() + self.continuation_token = continuation_token + self.page_length = page_length + self.repositories = repositories + self.total_page_count = total_page_count + + +class SourceRepository(Model): + """SourceRepository. + + :param default_branch: The name of the default branch. + :type default_branch: str + :param full_name: The full name of the repository. + :type full_name: str + :param id: The ID of the repository. + :type id: str + :param name: The friendly name of the repository. + :type name: str + :param properties: + :type properties: dict + :param source_provider_name: The name of the source provider the repository is from. + :type source_provider_name: str + :param url: The URL of the repository. + :type url: str + """ + + _attribute_map = { + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'full_name': {'key': 'fullName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'source_provider_name': {'key': 'sourceProviderName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, default_branch=None, full_name=None, id=None, name=None, properties=None, source_provider_name=None, url=None): + super(SourceRepository, self).__init__() + self.default_branch = default_branch + self.full_name = full_name + self.id = id + self.name = name + self.properties = properties + self.source_provider_name = source_provider_name + self.url = url + + +class SourceRepositoryItem(Model): + """SourceRepositoryItem. + + :param is_container: Whether the item is able to have sub-items (e.g., is a folder). + :type is_container: bool + :param path: The full path of the item, relative to the root of the repository. + :type path: str + :param type: The type of the item (folder, file, etc). + :type type: str + :param url: The URL of the item. + :type url: str + """ + + _attribute_map = { + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'path': {'key': 'path', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, is_container=None, path=None, type=None, url=None): + super(SourceRepositoryItem, self).__init__() + self.is_container = is_container + self.path = path + self.type = type + self.url = url + + +class SupportedTrigger(Model): + """SupportedTrigger. + + :param default_polling_interval: The default interval to wait between polls (only relevant when NotificationType is Polling). + :type default_polling_interval: int + :param notification_type: How the trigger is notified of changes. + :type notification_type: str + :param supported_capabilities: The capabilities supported by this trigger. + :type supported_capabilities: dict + :param type: The type of trigger. + :type type: object + """ + + _attribute_map = { + 'default_polling_interval': {'key': 'defaultPollingInterval', 'type': 'int'}, + 'notification_type': {'key': 'notificationType', 'type': 'str'}, + 'supported_capabilities': {'key': 'supportedCapabilities', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, default_polling_interval=None, notification_type=None, supported_capabilities=None, type=None): + super(SupportedTrigger, self).__init__() + self.default_polling_interval = default_polling_interval + self.notification_type = notification_type + self.supported_capabilities = supported_capabilities + self.type = type + + class TaskAgentPoolReference(Model): """TaskAgentPoolReference. - :param id: + :param id: The pool ID. :type id: int - :param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service. + :param is_hosted: A value indicating whether or not this pool is managed by the service. :type is_hosted: bool - :param name: + :param name: The pool name. :type name: str """ @@ -1240,11 +1860,11 @@ def __init__(self, id=None, is_hosted=None, name=None): class TaskDefinitionReference(Model): """TaskDefinitionReference. - :param definition_type: + :param definition_type: The type of task (task or task group). :type definition_type: str - :param id: + :param id: The ID of the task. :type id: str - :param version_spec: + :param version_spec: The version of the task. :type version_spec: str """ @@ -1264,6 +1884,8 @@ def __init__(self, definition_type=None, id=None, version_spec=None): class TaskInputDefinitionBase(Model): """TaskInputDefinitionBase. + :param aliases: + :type aliases: list of str :param default_value: :type default_value: str :param group_name: @@ -1283,12 +1905,13 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, 'default_value': {'key': 'defaultValue', 'type': 'str'}, 'group_name': {'key': 'groupName', 'type': 'str'}, 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, @@ -1302,8 +1925,9 @@ class TaskInputDefinitionBase(Model): 'visible_rule': {'key': 'visibleRule', 'type': 'str'} } - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases self.default_value = default_value self.group_name = group_name self.help_mark_down = help_mark_down @@ -1340,9 +1964,9 @@ def __init__(self, expression=None, message=None): class TaskOrchestrationPlanReference(Model): """TaskOrchestrationPlanReference. - :param orchestration_type: Orchestration Type for Build (build, cleanup etc.) + :param orchestration_type: The type of the plan. :type orchestration_type: int - :param plan_id: + :param plan_id: The ID of the plan. :type plan_id: str """ @@ -1360,11 +1984,11 @@ def __init__(self, orchestration_type=None, plan_id=None): class TaskReference(Model): """TaskReference. - :param id: + :param id: The ID of the task definition. :type id: str - :param name: + :param name: The name of the task definition. :type name: str - :param version: + :param version: The version of the task definition. :type version: str """ @@ -1418,10 +2042,14 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. :type id: str + :param last_update_time: Project last update time. + :type last_update_time: datetime :param name: Project name. :type name: str :param revision: Project revision. @@ -1436,8 +2064,10 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'revision': {'key': 'revision', 'type': 'long'}, 'state': {'key': 'state', 'type': 'object'}, @@ -1445,11 +2075,13 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id + self.last_update_time = last_update_time self.name = name self.revision = revision self.state = state @@ -1457,65 +2089,121 @@ def __init__(self, abbreviation=None, description=None, id=None, name=None, revi self.visibility = visibility +class TestResultsContext(Model): + """TestResultsContext. + + :param build: + :type build: :class:`BuildReference ` + :param context_type: + :type context_type: object + :param release: + :type release: :class:`ReleaseReference ` + """ + + _attribute_map = { + 'build': {'key': 'build', 'type': 'BuildReference'}, + 'context_type': {'key': 'contextType', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'} + } + + def __init__(self, build=None, context_type=None, release=None): + super(TestResultsContext, self).__init__() + self.build = build + self.context_type = context_type + self.release = release + + +class TimelineAttempt(Model): + """TimelineAttempt. + + :param attempt: Gets or sets the attempt of the record. + :type attempt: int + :param record_id: Gets or sets the record identifier located within the specified timeline. + :type record_id: str + :param timeline_id: Gets or sets the timeline identifier which owns the record representing this attempt. + :type timeline_id: str + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'} + } + + def __init__(self, attempt=None, record_id=None, timeline_id=None): + super(TimelineAttempt, self).__init__() + self.attempt = attempt + self.record_id = record_id + self.timeline_id = timeline_id + + class TimelineRecord(Model): """TimelineRecord. :param _links: - :type _links: :class:`ReferenceLinks ` - :param change_id: + :type _links: :class:`ReferenceLinks ` + :param attempt: Attempt number of record. + :type attempt: int + :param change_id: The change ID. :type change_id: int - :param current_operation: + :param current_operation: A string that indicates the current operation. :type current_operation: str - :param details: - :type details: :class:`TimelineReference ` - :param error_count: + :param details: A reference to a sub-timeline. + :type details: :class:`TimelineReference ` + :param error_count: The number of errors produced by this operation. :type error_count: int - :param finish_time: + :param finish_time: The finish time. :type finish_time: datetime - :param id: + :param id: The ID of the record. :type id: str + :param identifier: String identifier that is consistent across attempts. + :type identifier: str :param issues: - :type issues: list of :class:`Issue ` - :param last_modified: + :type issues: list of :class:`Issue ` + :param last_modified: The time the record was last modified. :type last_modified: datetime - :param log: - :type log: :class:`BuildLogReference ` - :param name: + :param log: A reference to the log produced by this operation. + :type log: :class:`BuildLogReference ` + :param name: The name. :type name: str - :param order: + :param order: An ordinal value relative to other records. :type order: int - :param parent_id: + :param parent_id: The ID of the record's parent. :type parent_id: str - :param percent_complete: + :param percent_complete: The current completion percentage. :type percent_complete: int - :param result: + :param previous_attempts: + :type previous_attempts: list of :class:`TimelineAttempt ` + :param result: The result. :type result: object - :param result_code: + :param result_code: The result code. :type result_code: str - :param start_time: + :param start_time: The start time. :type start_time: datetime - :param state: + :param state: The state of the record. :type state: object - :param task: - :type task: :class:`TaskReference ` - :param type: + :param task: A reference to the task represented by this timeline record. + :type task: :class:`TaskReference ` + :param type: The type of the record. :type type: str - :param url: + :param url: The REST URL of the timeline record. :type url: str - :param warning_count: + :param warning_count: The number of warnings produced by this operation. :type warning_count: int - :param worker_name: + :param worker_name: The name of the agent running the operation. :type worker_name: str """ _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, 'change_id': {'key': 'changeId', 'type': 'int'}, 'current_operation': {'key': 'currentOperation', 'type': 'str'}, 'details': {'key': 'details', 'type': 'TimelineReference'}, 'error_count': {'key': 'errorCount', 'type': 'int'}, 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, 'id': {'key': 'id', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, 'issues': {'key': 'issues', 'type': '[Issue]'}, 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, 'log': {'key': 'log', 'type': 'BuildLogReference'}, @@ -1523,6 +2211,7 @@ class TimelineRecord(Model): 'order': {'key': 'order', 'type': 'int'}, 'parent_id': {'key': 'parentId', 'type': 'str'}, 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'previous_attempts': {'key': 'previousAttempts', 'type': '[TimelineAttempt]'}, 'result': {'key': 'result', 'type': 'object'}, 'result_code': {'key': 'resultCode', 'type': 'str'}, 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, @@ -1534,15 +2223,17 @@ class TimelineRecord(Model): 'worker_name': {'key': 'workerName', 'type': 'str'} } - def __init__(self, _links=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): + def __init__(self, _links=None, attempt=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, identifier=None, issues=None, last_modified=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, previous_attempts=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, url=None, warning_count=None, worker_name=None): super(TimelineRecord, self).__init__() self._links = _links + self.attempt = attempt self.change_id = change_id self.current_operation = current_operation self.details = details self.error_count = error_count self.finish_time = finish_time self.id = id + self.identifier = identifier self.issues = issues self.last_modified = last_modified self.log = log @@ -1550,6 +2241,7 @@ def __init__(self, _links=None, change_id=None, current_operation=None, details= self.order = order self.parent_id = parent_id self.percent_complete = percent_complete + self.previous_attempts = previous_attempts self.result = result self.result_code = result_code self.start_time = start_time @@ -1564,11 +2256,11 @@ def __init__(self, _links=None, change_id=None, current_operation=None, details= class TimelineReference(Model): """TimelineReference. - :param change_id: + :param change_id: The change ID. :type change_id: int - :param id: + :param id: The ID of the timeline. :type id: str - :param url: + :param url: The REST URL of the timeline. :type url: str """ @@ -1588,16 +2280,20 @@ def __init__(self, change_id=None, id=None, url=None): class VariableGroupReference(Model): """VariableGroupReference. - :param id: + :param alias: The Name of the variable group. + :type alias: str + :param id: The ID of the variable group. :type id: int """ _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'} } - def __init__(self, id=None): + def __init__(self, alias=None, id=None): super(VariableGroupReference, self).__init__() + self.alias = alias self.id = id @@ -1655,7 +2351,7 @@ class BuildController(XamlBuildControllerReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: The date the controller was created. :type created_date: datetime :param description: The description of the controller. @@ -1697,38 +2393,44 @@ def __init__(self, id=None, name=None, url=None, _links=None, created_date=None, class BuildDefinitionReference(DefinitionReference): """BuildDefinitionReference. - :param created_date: The date the definition was created + :param created_date: The date this version of the definition was created. :type created_date: datetime - :param id: Id of the resource + :param id: The ID of the referenced definition. :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) + :param name: The name of the referenced definition. :type name: str - :param path: The path this definitions belongs to + :param path: The folder path of the definition. :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. :type revision: int :param type: The type of the definition. :type type: object - :param uri: The Uri of the definition + :param uri: The definition's URI. :type uri: str - :param url: Full http link to the resource + :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object - :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -1745,16 +2447,92 @@ class BuildDefinitionReference(DefinitionReference): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, 'quality': {'key': 'quality', 'type': 'object'}, 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} } - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None): + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None): super(BuildDefinitionReference, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) self._links = _links self.authored_by = authored_by self.draft_of = draft_of + self.drafts = drafts + self.latest_build = latest_build + self.latest_completed_build = latest_completed_build + self.metrics = metrics + self.quality = quality + self.queue = queue + + +class BuildDefinitionReference3_2(DefinitionReference): + """BuildDefinitionReference3_2. + + :param created_date: The date this version of the definition was created. + :type created_date: datetime + :param id: The ID of the referenced definition. + :type id: int + :param name: The name of the referenced definition. + :type name: str + :param path: The folder path of the definition. + :type path: str + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. + :type queue_status: object + :param revision: The definition revision number. + :type revision: int + :param type: The type of the definition. + :type type: object + :param uri: The definition's URI. + :type uri: str + :param url: The REST URL of the definition. + :type url: str + :param _links: + :type _links: :class:`ReferenceLinks ` + :param authored_by: The author of the definition. + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param metrics: + :type metrics: list of :class:`BuildMetric ` + :param quality: The quality of the definition document (draft, etc.) + :type quality: object + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` + """ + + _attribute_map = { + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'queue_status': {'key': 'queueStatus', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, + 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, + 'quality': {'key': 'quality', 'type': 'object'}, + 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'} + } + + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None): + super(BuildDefinitionReference3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url) + self._links = _links + self.authored_by = authored_by + self.draft_of = draft_of + self.drafts = drafts self.metrics = metrics self.quality = quality self.queue = queue @@ -1763,15 +2541,15 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non class BuildLog(BuildLogReference): """BuildLog. - :param id: The id of the log. + :param id: The ID of the log. :type id: int :param type: The type of the log location. :type type: str - :param url: Full link to the log resource. + :param url: A full link to the log resource. :type url: str - :param created_on: The date the log was created. + :param created_on: The date and time the log was created. :type created_on: datetime - :param last_changed_on: The date the log was last changed. + :param last_changed_on: The date and time the log was last changed. :type last_changed_on: datetime :param line_count: The number of lines in the log. :type line_count: long @@ -1796,17 +2574,17 @@ def __init__(self, id=None, type=None, url=None, created_on=None, last_changed_o class BuildOptionDefinition(BuildOptionDefinitionReference): """BuildOptionDefinition. - :param id: + :param id: The ID of the referenced build option. :type id: str - :param description: + :param description: The description. :type description: str - :param groups: - :type groups: list of :class:`BuildOptionGroupDefinition ` - :param inputs: - :type inputs: list of :class:`BuildOptionInputDefinition ` - :param name: + :param groups: The list of input groups defined for the build option. + :type groups: list of :class:`BuildOptionGroupDefinition ` + :param inputs: The list of inputs defined for the build option. + :type inputs: list of :class:`BuildOptionInputDefinition ` + :param name: The name of the build option. :type name: str - :param ordinal: + :param ordinal: A value that indicates the relative order in which the behavior should be applied. :type ordinal: int """ @@ -1831,18 +2609,18 @@ def __init__(self, id=None, description=None, groups=None, inputs=None, name=Non class Timeline(TimelineReference): """Timeline. - :param change_id: + :param change_id: The change ID. :type change_id: int - :param id: + :param id: The ID of the timeline. :type id: str - :param url: + :param url: The REST URL of the timeline. :type url: str - :param last_changed_by: + :param last_changed_by: The process or person that last changed the timeline. :type last_changed_by: str - :param last_changed_on: + :param last_changed_on: The time the timeline was last changed. :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -1864,19 +2642,22 @@ def __init__(self, change_id=None, id=None, url=None, last_changed_by=None, last class VariableGroup(VariableGroupReference): """VariableGroup. - :param id: + :param alias: The Name of the variable group. + :type alias: str + :param id: The ID of the variable group. :type id: int - :param description: + :param description: The description. :type description: str - :param name: + :param name: The name of the variable group. :type name: str - :param type: + :param type: The type of the variable group. :type type: str :param variables: :type variables: dict """ _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'description': {'key': 'description', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -1884,8 +2665,8 @@ class VariableGroup(VariableGroupReference): 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } - def __init__(self, id=None, description=None, name=None, type=None, variables=None): - super(VariableGroup, self).__init__(id=id) + def __init__(self, alias=None, id=None, description=None, name=None, type=None, variables=None): + super(VariableGroup, self).__init__(alias=alias, id=id) self.description = description self.name = name self.type = type @@ -1895,78 +2676,80 @@ def __init__(self, id=None, description=None, name=None, type=None, variables=No class BuildDefinition(BuildDefinitionReference): """BuildDefinition. - :param created_date: The date the definition was created + :param created_date: The date this version of the definition was created. :type created_date: datetime - :param id: Id of the resource + :param id: The ID of the referenced definition. :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) + :param name: The name of the referenced definition. :type name: str - :param path: The path this definitions belongs to + :param path: The folder path of the definition. :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. :type revision: int :param type: The type of the definition. :type type: object - :param uri: The Uri of the definition + :param uri: The definition's URI. :type uri: str - :param url: Full http link to the resource + :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` + :param latest_build: + :type latest_build: :class:`Build ` + :param latest_completed_build: + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object - :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` - :param badge_enabled: Indicates whether badges are enabled for this definition + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` + :param badge_enabled: Indicates whether badges are enabled for this definition. :type badge_enabled: bool - :param build_number_format: The build number format + :param build_number_format: The build number format. :type build_number_format: str - :param comment: The comment entered when saving the definition + :param comment: A save-time comment for the definition. :type comment: str :param demands: - :type demands: list of :class:`object ` - :param description: The description + :type demands: list of :class:`object ` + :param description: The description. :type description: str - :param drop_location: The drop location for the definition + :param drop_location: The drop location for the definition. :type drop_location: str - :param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition + :param job_authorization_scope: The job authorization scope for builds queued against this definition. :type job_authorization_scope: object - :param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition + :param job_cancel_timeout_in_minutes: The job cancel timeout (in minutes) for builds cancelled by user for this definition. :type job_cancel_timeout_in_minutes: int - :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition + :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. :type job_timeout_in_minutes: int - :param latest_build: - :type latest_build: :class:`Build ` - :param latest_completed_build: - :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`object ` - :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process: :class:`object ` + :param process_parameters: The process parameters for this definition. + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` - :param repository: The repository - :type repository: :class:`BuildRepository ` + :type properties: :class:`object ` + :param repository: The repository. + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` + :type variable_groups: list of :class:`VariableGroup ` :param variables: :type variables: dict """ @@ -1985,6 +2768,9 @@ class BuildDefinition(BuildDefinitionReference): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, + 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, + 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, 'quality': {'key': 'quality', 'type': 'object'}, 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, @@ -1997,8 +2783,6 @@ class BuildDefinition(BuildDefinitionReference): 'job_authorization_scope': {'key': 'jobAuthorizationScope', 'type': 'object'}, 'job_cancel_timeout_in_minutes': {'key': 'jobCancelTimeoutInMinutes', 'type': 'int'}, 'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'}, - 'latest_build': {'key': 'latestBuild', 'type': 'Build'}, - 'latest_completed_build': {'key': 'latestCompletedBuild', 'type': 'Build'}, 'options': {'key': 'options', 'type': '[BuildOption]'}, 'process': {'key': 'process', 'type': 'object'}, 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, @@ -2011,8 +2795,8 @@ class BuildDefinition(BuildDefinitionReference): 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): - super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, metrics=metrics, quality=quality, queue=queue) + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None): + super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, latest_build=latest_build, latest_completed_build=latest_completed_build, metrics=metrics, quality=quality, queue=queue) self.badge_enabled = badge_enabled self.build_number_format = build_number_format self.comment = comment @@ -2022,8 +2806,6 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non self.job_authorization_scope = job_authorization_scope self.job_cancel_timeout_in_minutes = job_cancel_timeout_in_minutes self.job_timeout_in_minutes = job_timeout_in_minutes - self.latest_build = latest_build - self.latest_completed_build = latest_completed_build self.options = options self.process = process self.process_parameters = process_parameters @@ -2036,79 +2818,81 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non self.variables = variables -class BuildDefinition3_2(BuildDefinitionReference): +class BuildDefinition3_2(BuildDefinitionReference3_2): """BuildDefinition3_2. - :param created_date: The date the definition was created + :param created_date: The date this version of the definition was created. :type created_date: datetime - :param id: Id of the resource + :param id: The ID of the referenced definition. :type id: int - :param name: Name of the linked resource (definition name, controller name, etc.) + :param name: The name of the referenced definition. :type name: str - :param path: The path this definitions belongs to + :param path: The folder path of the definition. :type path: str - :param project: The project. - :type project: :class:`TeamProjectReference ` - :param queue_status: If builds can be queued from this definition + :param project: A reference to the project. + :type project: :class:`TeamProjectReference ` + :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. :type revision: int :param type: The type of the definition. :type type: object - :param uri: The Uri of the definition + :param uri: The definition's URI. :type uri: str - :param url: Full http link to the resource + :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` - :param draft_of: If this is a draft definition, it might have a parent - :type draft_of: :class:`DefinitionReference ` + :type authored_by: :class:`IdentityRef ` + :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. + :type draft_of: :class:`DefinitionReference ` + :param drafts: The list of drafts associated with this definition, if this is not a draft definition. + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object - :param queue: The default queue which should be used for requests. - :type queue: :class:`AgentPoolQueue ` + :param queue: The default queue for builds run against this definition. + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition :type badge_enabled: bool :param build: - :type build: list of :class:`BuildDefinitionStep ` + :type build: list of :class:`BuildDefinitionStep ` :param build_number_format: The build number format :type build_number_format: str :param comment: The comment entered when saving the definition :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description :type description: str :param drop_location: The drop location for the definition :type drop_location: str - :param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition + :param job_authorization_scope: The job authorization scope for builds which are queued against this definition :type job_authorization_scope: object - :param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition + :param job_cancel_timeout_in_minutes: The job cancel timeout in minutes for builds which are cancelled by user for this definition :type job_cancel_timeout_in_minutes: int - :param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition + :param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition :type job_timeout_in_minutes: int :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ @@ -2127,6 +2911,7 @@ class BuildDefinition3_2(BuildDefinitionReference): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'authored_by': {'key': 'authoredBy', 'type': 'IdentityRef'}, 'draft_of': {'key': 'draftOf', 'type': 'DefinitionReference'}, + 'drafts': {'key': 'drafts', 'type': '[DefinitionReference]'}, 'metrics': {'key': 'metrics', 'type': '[BuildMetric]'}, 'quality': {'key': 'quality', 'type': 'object'}, 'queue': {'key': 'queue', 'type': 'AgentPoolQueue'}, @@ -2152,8 +2937,8 @@ class BuildDefinition3_2(BuildDefinitionReference): 'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'} } - def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, metrics=None, quality=None, queue=None, badge_enabled=None, build=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variables=None): - super(BuildDefinition3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, metrics=metrics, quality=quality, queue=queue) + def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, metrics=None, quality=None, queue=None, badge_enabled=None, build=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, latest_build=None, latest_completed_build=None, options=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variables=None): + super(BuildDefinition3_2, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, metrics=metrics, quality=quality, queue=queue) self.badge_enabled = badge_enabled self.build = build self.build_number_format = build_number_format @@ -2178,7 +2963,15 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non __all__ = [ 'AgentPoolQueue', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', + 'AggregatedRunsByState', 'ArtifactResource', + 'AssociatedWorkItem', + 'Attachment', + 'AuthorizationHeader', 'Build', 'BuildArtifact', 'BuildBadge', @@ -2201,15 +2994,25 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non 'Change', 'DataSourceBindingBase', 'DefinitionReference', + 'DefinitionResourceReference', 'Deployment', 'Folder', + 'GraphSubjectBase', 'IdentityRef', 'Issue', 'JsonPatchOperation', 'ProcessParameters', + 'PullRequest', 'ReferenceLinks', + 'ReleaseReference', + 'RepositoryWebhook', 'ResourceRef', 'RetentionPolicy', + 'SourceProviderAttributes', + 'SourceRepositories', + 'SourceRepository', + 'SourceRepositoryItem', + 'SupportedTrigger', 'TaskAgentPoolReference', 'TaskDefinitionReference', 'TaskInputDefinitionBase', @@ -2218,6 +3021,8 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non 'TaskReference', 'TaskSourceDefinitionBase', 'TeamProjectReference', + 'TestResultsContext', + 'TimelineAttempt', 'TimelineRecord', 'TimelineReference', 'VariableGroupReference', @@ -2225,6 +3030,7 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non 'XamlBuildControllerReference', 'BuildController', 'BuildDefinitionReference', + 'BuildDefinitionReference3_2', 'BuildLog', 'BuildOptionDefinition', 'Timeline', diff --git a/azure-devops/azure/devops/v4_0/settings/__init__.py b/azure-devops/azure/devops/v5_1/client_trace/__init__.py similarity index 80% rename from azure-devops/azure/devops/v4_0/settings/__init__.py rename to azure-devops/azure/devops/v5_1/client_trace/__init__.py index cae1d865..2e317dfb 100644 --- a/azure-devops/azure/devops/v4_0/settings/__init__.py +++ b/azure-devops/azure/devops/v5_1/client_trace/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,4 +9,5 @@ from .models import * __all__ = [ + 'ClientTraceEvent', ] diff --git a/azure-devops/azure/devops/v5_1/client_trace/client_trace_client.py b/azure-devops/azure/devops/v5_1/client_trace/client_trace_client.py new file mode 100644 index 00000000..1d4649fa --- /dev/null +++ b/azure-devops/azure/devops/v5_1/client_trace/client_trace_client.py @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ClientTraceClient(Client): + """ClientTrace + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ClientTraceClient, 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 publish_events(self, events): + """PublishEvents. + [Preview API] + :param [ClientTraceEvent] events: + """ + content = self._serialize.body(events, '[ClientTraceEvent]') + self._send(http_method='POST', + location_id='06bcc74a-1491-4eb8-a0eb-704778f9d041', + version='5.1-preview.1', + content=content) + diff --git a/azure-devops/azure/devops/v5_1/client_trace/models.py b/azure-devops/azure/devops/v5_1/client_trace/models.py new file mode 100644 index 00000000..d16e7a9f --- /dev/null +++ b/azure-devops/azure/devops/v5_1/client_trace/models.py @@ -0,0 +1,58 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class ClientTraceEvent(Model): + """ClientTraceEvent. + + :param area: + :type area: str + :param component: + :type component: str + :param exception_type: + :type exception_type: str + :param feature: + :type feature: str + :param level: + :type level: object + :param message: + :type message: str + :param method: + :type method: str + :param properties: + :type properties: dict + """ + + _attribute_map = { + 'area': {'key': 'area', 'type': 'str'}, + 'component': {'key': 'component', 'type': 'str'}, + 'exception_type': {'key': 'exceptionType', 'type': 'str'}, + 'feature': {'key': 'feature', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'object'}, + 'message': {'key': 'message', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, area=None, component=None, exception_type=None, feature=None, level=None, message=None, method=None, properties=None): + super(ClientTraceEvent, self).__init__() + self.area = area + self.component = component + self.exception_type = exception_type + self.feature = feature + self.level = level + self.message = message + self.method = method + self.properties = properties + + +__all__ = [ + 'ClientTraceEvent', +] diff --git a/azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py b/azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py new file mode 100644 index 00000000..e38f6c3c --- /dev/null +++ b/azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py @@ -0,0 +1,60 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentGroup', + 'AgentGroupAccessData', + 'Application', + 'ApplicationCounters', + 'ApplicationType', + 'BrowserMix', + 'CltCustomerIntelligenceData', + 'CounterGroup', + 'CounterInstanceSamples', + 'CounterSample', + 'CounterSampleQueryDetails', + 'CounterSamplesResult', + 'Diagnostics', + 'DropAccessData', + 'ErrorDetails', + 'LoadGenerationGeoLocation', + 'LoadTest', + 'LoadTestDefinition', + 'LoadTestErrors', + 'LoadTestRunDetails', + 'LoadTestRunSettings', + 'OverridableRunSettings', + 'PageSummary', + 'RequestSummary', + 'ScenarioSummary', + 'StaticAgentRunSetting', + 'SubType', + 'SummaryPercentileData', + 'TenantDetails', + 'TestDefinition', + 'TestDefinitionBasic', + 'TestDrop', + 'TestDropRef', + 'TestResults', + 'TestResultsSummary', + 'TestRun', + 'TestRunAbortMessage', + 'TestRunBasic', + 'TestRunCounterInstance', + 'TestRunMessage', + 'TestSettings', + 'TestSummary', + 'TransactionSummary', + 'WebApiLoadTestMachineInput', + 'WebApiSetupParamaters', + 'WebApiTestMachine', + 'WebApiUserLoadTestMachineInput', + 'WebInstanceSummaryData', +] diff --git a/azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py b/azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py new file mode 100644 index 00000000..4e4434e0 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py @@ -0,0 +1,455 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class CloudLoadTestClient(Client): + """CloudLoadTest + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(CloudLoadTestClient, 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 = '7ae6d0a6-cda5-44cf-a261-28c392bed25c' + + def create_agent_group(self, group): + """CreateAgentGroup. + [Preview API] + :param :class:` ` group: Agent group to be created + :rtype: :class:` ` + """ + content = self._serialize.body(group, 'AgentGroup') + response = self._send(http_method='POST', + location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', + version='5.1-preview.1', + content=content) + return self._deserialize('AgentGroup', response) + + 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. + [Preview API] + :param str agent_group_id: The agent group indentifier + :param bool machine_setup_input: + :param bool machine_access_data: + :param bool outgoing_request_urls: + :param str agent_group_name: Name of the agent group + :rtype: object + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if machine_setup_input is not None: + query_parameters['machineSetupInput'] = self._serialize.query('machine_setup_input', machine_setup_input, 'bool') + if machine_access_data is not None: + query_parameters['machineAccessData'] = self._serialize.query('machine_access_data', machine_access_data, 'bool') + if outgoing_request_urls is not None: + query_parameters['outgoingRequestUrls'] = self._serialize.query('outgoing_request_urls', outgoing_request_urls, 'bool') + if agent_group_name is not None: + query_parameters['agentGroupName'] = self._serialize.query('agent_group_name', agent_group_name, 'str') + response = self._send(http_method='GET', + location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def delete_static_agent(self, agent_group_id, agent_name): + """DeleteStaticAgent. + [Preview API] + :param str agent_group_id: The agent group identifier + :param str agent_name: Name of the static agent + :rtype: str + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + response = self._send(http_method='DELETE', + location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('str', response) + + def get_static_agents(self, agent_group_id, agent_name=None): + """GetStaticAgents. + [Preview API] + :param str agent_group_id: The agent group identifier + :param str agent_name: Name of the static agent + :rtype: object + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + response = self._send(http_method='GET', + location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_application(self, application_id): + """GetApplication. + [Preview API] + :param str application_id: Filter by APM application identifier. + :rtype: :class:` ` + """ + route_values = {} + if application_id is not None: + route_values['applicationId'] = self._serialize.url('application_id', application_id, 'str') + response = self._send(http_method='GET', + location_id='2c986dce-8e8d-4142-b541-d016d5aff764', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('Application', response) + + def get_applications(self, type=None): + """GetApplications. + [Preview API] + :param str type: Filters the results based on the plugin type. + :rtype: [Application] + """ + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + response = self._send(http_method='GET', + location_id='2c986dce-8e8d-4142-b541-d016d5aff764', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[Application]', self._unwrap_collection(response)) + + def get_counters(self, test_run_id, group_names, include_summary=None): + """GetCounters. + [Preview API] + :param str test_run_id: The test run identifier + :param str group_names: Comma separated names of counter groups, such as 'Application', 'Performance' and 'Throughput' + :param bool include_summary: + :rtype: [TestRunCounterInstance] + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + query_parameters = {} + if group_names is not None: + query_parameters['groupNames'] = self._serialize.query('group_names', group_names, 'str') + if include_summary is not None: + query_parameters['includeSummary'] = self._serialize.query('include_summary', include_summary, 'bool') + response = self._send(http_method='GET', + location_id='29265ea4-b5a5-4b2e-b054-47f5f6f00183', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestRunCounterInstance]', self._unwrap_collection(response)) + + def get_application_counters(self, application_id=None, plugintype=None): + """GetApplicationCounters. + [Preview API] + :param str application_id: Filter by APM application identifier. + :param str plugintype: Currently ApplicationInsights is the only available plugin type. + :rtype: [ApplicationCounters] + """ + query_parameters = {} + if application_id is not None: + query_parameters['applicationId'] = self._serialize.query('application_id', application_id, 'str') + if plugintype is not None: + query_parameters['plugintype'] = self._serialize.query('plugintype', plugintype, 'str') + response = self._send(http_method='GET', + location_id='c1275ce9-6d26-4bc6-926b-b846502e812d', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[ApplicationCounters]', self._unwrap_collection(response)) + + def get_counter_samples(self, counter_sample_query_details, test_run_id): + """GetCounterSamples. + [Preview API] + :param :class:` ` counter_sample_query_details: + :param str test_run_id: The test run identifier + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + content = self._serialize.body(counter_sample_query_details, 'VssJsonCollectionWrapper') + response = self._send(http_method='POST', + location_id='bad18480-7193-4518-992a-37289c5bb92d', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('CounterSamplesResult', response) + + def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detailed=None): + """GetLoadTestRunErrors. + [Preview API] + :param str test_run_id: The test run identifier + :param str type: Filter for the particular type of errors. + :param str sub_type: Filter for a particular subtype of errors. You should not provide error subtype without error type. + :param bool detailed: To include the details of test errors such as messagetext, request, stacktrace, testcasename, scenarioname, and lasterrordate. + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if sub_type is not None: + query_parameters['subType'] = self._serialize.query('sub_type', sub_type, 'str') + if detailed is not None: + query_parameters['detailed'] = self._serialize.query('detailed', detailed, 'bool') + response = self._send(http_method='GET', + location_id='b52025a7-3fb4-4283-8825-7079e75bd402', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('LoadTestErrors', response) + + def get_test_run_messages(self, test_run_id): + """GetTestRunMessages. + [Preview API] + :param str test_run_id: Id of the test run + :rtype: [TestRunMessage] + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='2e7ba122-f522-4205-845b-2d270e59850a', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[TestRunMessage]', self._unwrap_collection(response)) + + def get_plugin(self, type): + """GetPlugin. + [Preview API] + :param str type: Currently ApplicationInsights is the only available plugin type. + :rtype: :class:` ` + """ + route_values = {} + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('ApplicationType', response) + + def get_plugins(self): + """GetPlugins. + [Preview API] + :rtype: [ApplicationType] + """ + response = self._send(http_method='GET', + location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', + version='5.1-preview.1') + return self._deserialize('[ApplicationType]', self._unwrap_collection(response)) + + def get_load_test_result(self, test_run_id): + """GetLoadTestResult. + [Preview API] + :param str test_run_id: The test run identifier + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='5ed69bd8-4557-4cec-9b75-1ad67d0c257b', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('TestResults', response) + + def create_test_definition(self, test_definition): + """CreateTestDefinition. + [Preview API] + :param :class:` ` test_definition: Test definition to be created + :rtype: :class:` ` + """ + content = self._serialize.body(test_definition, 'TestDefinition') + response = self._send(http_method='POST', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.1-preview.1', + content=content) + return self._deserialize('TestDefinition', response) + + def get_test_definition(self, test_definition_id): + """GetTestDefinition. + [Preview API] + :param str test_definition_id: The test definition identifier + :rtype: :class:` ` + """ + route_values = {} + if test_definition_id is not None: + route_values['testDefinitionId'] = self._serialize.url('test_definition_id', test_definition_id, 'str') + response = self._send(http_method='GET', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('TestDefinition', response) + + def get_test_definitions(self, from_date=None, to_date=None, top=None): + """GetTestDefinitions. + [Preview API] + :param str from_date: Date after which test definitions were created + :param str to_date: Date before which test definitions were crated + :param int top: + :rtype: [TestDefinitionBasic] + """ + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'str') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query('to_date', to_date, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[TestDefinitionBasic]', self._unwrap_collection(response)) + + def update_test_definition(self, test_definition): + """UpdateTestDefinition. + [Preview API] + :param :class:` ` test_definition: + :rtype: :class:` ` + """ + content = self._serialize.body(test_definition, 'TestDefinition') + response = self._send(http_method='PUT', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.1-preview.1', + content=content) + return self._deserialize('TestDefinition', response) + + def create_test_drop(self, web_test_drop): + """CreateTestDrop. + [Preview API] + :param :class:` ` web_test_drop: Test drop to be created + :rtype: :class:` ` + """ + content = self._serialize.body(web_test_drop, 'TestDrop') + response = self._send(http_method='POST', + location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', + version='5.1-preview.1', + content=content) + return self._deserialize('TestDrop', response) + + def get_test_drop(self, test_drop_id): + """GetTestDrop. + [Preview API] + :param str test_drop_id: The test drop identifier + :rtype: :class:` ` + """ + route_values = {} + if test_drop_id is not None: + route_values['testDropId'] = self._serialize.url('test_drop_id', test_drop_id, 'str') + response = self._send(http_method='GET', + location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('TestDrop', response) + + def create_test_run(self, web_test_run): + """CreateTestRun. + [Preview API] + :param :class:` ` web_test_run: + :rtype: :class:` ` + """ + content = self._serialize.body(web_test_run, 'TestRun') + response = self._send(http_method='POST', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.1-preview.1', + content=content) + return self._deserialize('TestRun', response) + + def get_test_run(self, test_run_id): + """GetTestRun. + [Preview API] + :param str test_run_id: Unique ID of the test run + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('TestRun', response) + + def get_test_runs(self, name=None, requested_by=None, status=None, run_type=None, from_date=None, to_date=None, detailed=None, top=None, runsourceidentifier=None, retention_state=None): + """GetTestRuns. + [Preview API] Returns test runs based on the filter specified. Returns all runs of the tenant if there is no filter. + :param str name: Name for the test run. Names are not unique. Test runs with same name are assigned sequential rolling numbers. + :param str requested_by: Filter by the user who requested the test run. Here requestedBy should be the display name of the user. + :param str status: Filter by the test run status. + :param str run_type: Valid values include: null, one of TestRunType, or "*" + :param str from_date: Filter by the test runs that have been modified after the fromDate timestamp. + :param str to_date: Filter by the test runs that have been modified before the toDate timestamp. + :param bool detailed: Include the detailed test run attributes. + :param int top: The maximum number of test runs to return. + :param str runsourceidentifier: + :param str retention_state: + :rtype: object + """ + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if requested_by is not None: + query_parameters['requestedBy'] = self._serialize.query('requested_by', requested_by, 'str') + if status is not None: + query_parameters['status'] = self._serialize.query('status', status, 'str') + if run_type is not None: + query_parameters['runType'] = self._serialize.query('run_type', run_type, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'str') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query('to_date', to_date, 'str') + if detailed is not None: + query_parameters['detailed'] = self._serialize.query('detailed', detailed, 'bool') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if runsourceidentifier is not None: + query_parameters['runsourceidentifier'] = self._serialize.query('runsourceidentifier', runsourceidentifier, 'str') + if retention_state is not None: + query_parameters['retentionState'] = self._serialize.query('retention_state', retention_state, 'str') + response = self._send(http_method='GET', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_test_run(self, web_test_run, test_run_id): + """UpdateTestRun. + [Preview API] + :param :class:` ` web_test_run: + :param str test_run_id: + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + content = self._serialize.body(web_test_run, 'TestRun') + self._send(http_method='PATCH', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.1-preview.1', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/v4_1/cloud_load_test/models.py b/azure-devops/azure/devops/v5_1/cloud_load_test/models.py similarity index 95% rename from azure-devops/azure/devops/v4_1/cloud_load_test/models.py rename to azure-devops/azure/devops/v5_1/cloud_load_test/models.py index b91a3b46..9f6bd33d 100644 --- a/azure-devops/azure/devops/v4_1/cloud_load_test/models.py +++ b/azure-devops/azure/devops/v5_1/cloud_load_test/models.py @@ -21,9 +21,9 @@ class AgentGroup(Model): :param group_name: :type group_name: str :param machine_access_data: - :type machine_access_data: list of :class:`AgentGroupAccessData ` + :type machine_access_data: list of :class:`AgentGroupAccessData ` :param machine_configuration: - :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` :param tenant_id: :type tenant_id: str """ @@ -267,7 +267,7 @@ class CounterInstanceSamples(Model): :param next_refresh_time: :type next_refresh_time: datetime :param values: - :type values: list of :class:`CounterSample ` + :type values: list of :class:`CounterSample ` """ _attribute_map = { @@ -371,7 +371,7 @@ class CounterSamplesResult(Model): :param total_samples_count: :type total_samples_count: int :param values: - :type values: list of :class:`CounterInstanceSamples ` + :type values: list of :class:`CounterInstanceSamples ` """ _attribute_map = { @@ -511,13 +511,13 @@ class LoadTestDefinition(Model): :param agent_count: :type agent_count: int :param browser_mixs: - :type browser_mixs: list of :class:`BrowserMix ` + :type browser_mixs: list of :class:`BrowserMix ` :param core_count: :type core_count: int :param cores_per_agent: :type cores_per_agent: int :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_pattern_name: :type load_pattern_name: str :param load_test_name: @@ -573,7 +573,7 @@ class LoadTestErrors(Model): :param occurrences: :type occurrences: int :param types: - :type types: list of :class:`object ` + :type types: list of :class:`object ` :param url: :type url: str """ @@ -639,7 +639,7 @@ class OverridableRunSettings(Model): :param load_generator_machines_type: :type load_generator_machines_type: object :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` """ _attribute_map = { @@ -663,7 +663,7 @@ class PageSummary(Model): :param percentage_pages_meeting_goal: :type percentage_pages_meeting_goal: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -703,7 +703,7 @@ class RequestSummary(Model): :param passed_requests: :type passed_requests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param requests_per_sec: :type requests_per_sec: float :param request_url: @@ -791,7 +791,7 @@ class SubType(Model): :param count: :type count: int :param error_detail_list: - :type error_detail_list: list of :class:`ErrorDetails ` + :type error_detail_list: list of :class:`ErrorDetails ` :param occurrences: :type occurrences: int :param sub_type_name: @@ -841,13 +841,13 @@ class TenantDetails(Model): """TenantDetails. :param access_details: - :type access_details: list of :class:`AgentGroupAccessData ` + :type access_details: list of :class:`AgentGroupAccessData ` :param id: :type id: str :param static_machines: - :type static_machines: list of :class:`WebApiTestMachine ` + :type static_machines: list of :class:`WebApiTestMachine ` :param user_load_agent_input: - :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` :param user_load_agent_resources_uri: :type user_load_agent_resources_uri: str :param valid_geo_locations: @@ -877,7 +877,7 @@ class TestDefinitionBasic(Model): """TestDefinitionBasic. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -921,7 +921,7 @@ class TestDrop(Model): """TestDrop. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_date: :type created_date: datetime :param drop_type: @@ -929,7 +929,7 @@ class TestDrop(Model): :param id: :type id: str :param load_test_definition: - :type load_test_definition: :class:`LoadTestDefinition ` + :type load_test_definition: :class:`LoadTestDefinition ` :param test_run_id: :type test_run_id: str """ @@ -979,9 +979,9 @@ class TestResults(Model): :param cloud_load_test_solution_url: :type cloud_load_test_solution_url: str :param counter_groups: - :type counter_groups: list of :class:`CounterGroup ` + :type counter_groups: list of :class:`CounterGroup ` :param diagnostics: - :type diagnostics: :class:`Diagnostics ` + :type diagnostics: :class:`Diagnostics ` :param results_url: :type results_url: str """ @@ -1005,23 +1005,23 @@ class TestResultsSummary(Model): """TestResultsSummary. :param overall_page_summary: - :type overall_page_summary: :class:`PageSummary ` + :type overall_page_summary: :class:`PageSummary ` :param overall_request_summary: - :type overall_request_summary: :class:`RequestSummary ` + :type overall_request_summary: :class:`RequestSummary ` :param overall_scenario_summary: - :type overall_scenario_summary: :class:`ScenarioSummary ` + :type overall_scenario_summary: :class:`ScenarioSummary ` :param overall_test_summary: - :type overall_test_summary: :class:`TestSummary ` + :type overall_test_summary: :class:`TestSummary ` :param overall_transaction_summary: - :type overall_transaction_summary: :class:`TransactionSummary ` + :type overall_transaction_summary: :class:`TransactionSummary ` :param top_slow_pages: - :type top_slow_pages: list of :class:`PageSummary ` + :type top_slow_pages: list of :class:`PageSummary ` :param top_slow_requests: - :type top_slow_requests: list of :class:`RequestSummary ` + :type top_slow_requests: list of :class:`RequestSummary ` :param top_slow_tests: - :type top_slow_tests: list of :class:`TestSummary ` + :type top_slow_tests: list of :class:`TestSummary ` :param top_slow_transactions: - :type top_slow_transactions: list of :class:`TransactionSummary ` + :type top_slow_transactions: list of :class:`TransactionSummary ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class TestRunBasic(Model): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1107,7 +1107,7 @@ class TestRunBasic(Model): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1173,7 +1173,7 @@ class TestRunCounterInstance(Model): :param part_of_counter_groups: :type part_of_counter_groups: list of str :param summary_data: - :type summary_data: :class:`WebInstanceSummaryData ` + :type summary_data: :class:`WebInstanceSummaryData ` :param unique_name: :type unique_name: str """ @@ -1287,7 +1287,7 @@ class TestSummary(Model): :param passed_tests: :type passed_tests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1325,7 +1325,7 @@ class TransactionSummary(Model): :param average_transaction_time: :type average_transaction_time: float :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1365,7 +1365,7 @@ class WebApiLoadTestMachineInput(Model): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType """ @@ -1433,7 +1433,7 @@ class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType :param agent_group_name: @@ -1530,7 +1530,7 @@ class TestDefinition(TestDefinitionBasic): """TestDefinition. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -1548,15 +1548,15 @@ class TestDefinition(TestDefinitionBasic): :param description: :type description: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_definition_source: :type load_test_definition_source: str :param run_settings: - :type run_settings: :class:`LoadTestRunSettings ` + :type run_settings: :class:`LoadTestRunSettings ` :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` :param test_details: - :type test_details: :class:`LoadTest ` + :type test_details: :class:`LoadTest ` """ _attribute_map = { @@ -1602,7 +1602,7 @@ class TestRun(TestRunBasic): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1612,7 +1612,7 @@ class TestRun(TestRunBasic): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1620,7 +1620,7 @@ class TestRun(TestRunBasic): :param url: :type url: str :param abort_message: - :type abort_message: :class:`TestRunAbortMessage ` + :type abort_message: :class:`TestRunAbortMessage ` :param aut_initialization_error: :type aut_initialization_error: bool :param chargeable: @@ -1650,11 +1650,11 @@ class TestRun(TestRunBasic): :param sub_state: :type sub_state: object :param supersede_run_settings: - :type supersede_run_settings: :class:`OverridableRunSettings ` + :type supersede_run_settings: :class:`OverridableRunSettings ` :param test_drop: - :type test_drop: :class:`TestDropRef ` + :type test_drop: :class:`TestDropRef ` :param test_settings: - :type test_settings: :class:`TestSettings ` + :type test_settings: :class:`TestSettings ` :param warm_up_started_date: :type warm_up_started_date: datetime :param web_result_url: diff --git a/azure-devops/azure/devops/v4_0/contributions/__init__.py b/azure-devops/azure/devops/v5_1/contributions/__init__.py similarity index 85% rename from azure-devops/azure/devops/v4_0/contributions/__init__.py rename to azure-devops/azure/devops/v5_1/contributions/__init__.py index 5f73fb39..7fc982c9 100644 --- a/azure-devops/azure/devops/v4_0/contributions/__init__.py +++ b/azure-devops/azure/devops/v5_1/contributions/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,6 +9,9 @@ from .models import * __all__ = [ + 'ClientContribution', + 'ClientContributionNode', + 'ClientContributionProviderDetails', 'ClientDataProviderQuery', 'Contribution', 'ContributionBase', @@ -16,7 +19,6 @@ 'ContributionNodeQuery', 'ContributionNodeQueryResult', 'ContributionPropertyDescription', - 'ContributionProviderDetails', 'ContributionType', 'DataProviderContext', 'DataProviderExceptionDetails', @@ -32,5 +34,4 @@ 'InstalledExtensionStateIssue', 'LicensingOverride', 'ResolvedDataProvider', - 'SerializedContributionNode', ] diff --git a/azure-devops/azure/devops/v4_1/contributions/contributions_client.py b/azure-devops/azure/devops/v5_1/contributions/contributions_client.py similarity index 90% rename from azure-devops/azure/devops/v4_1/contributions/contributions_client.py rename to azure-devops/azure/devops/v5_1/contributions/contributions_client.py index bc347d06..0dbaeb7b 100644 --- a/azure-devops/azure/devops/v4_1/contributions/contributions_client.py +++ b/azure-devops/azure/devops/v5_1/contributions/contributions_client.py @@ -28,23 +28,23 @@ def __init__(self, base_url=None, creds=None): def query_contribution_nodes(self, query): """QueryContributionNodes. [Preview API] Query for contribution nodes and provider details according the parameters in the passed in query object. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributionNodeQuery') response = self._send(http_method='POST', location_id='db7f2146-2309-4cee-b39c-c767777a1c55', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('ContributionNodeQueryResult', response) def query_data_providers(self, query, scope_name=None, scope_value=None): """QueryDataProviders. [Preview API] - :param :class:` ` query: + :param :class:` ` query: :param str scope_name: :param str scope_value: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_name is not None: @@ -54,7 +54,7 @@ def query_data_providers(self, query, scope_name=None, scope_value=None): content = self._serialize.body(query, 'DataProviderQuery') response = self._send(http_method='POST', location_id='738368db-35ee-4b85-9f94-77ed34af2b0d', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('DataProviderResult', response) @@ -78,7 +78,7 @@ def get_installed_extensions(self, contribution_ids=None, include_disabled_apps= query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') response = self._send(http_method='GET', location_id='2648442b-fd63-4b9a-902f-0c913510f139', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) @@ -88,7 +88,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: :param str extension_name: :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -101,7 +101,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') response = self._send(http_method='GET', location_id='3e2f6668-0798-4dcb-b592-bfe2fa57fde2', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('InstalledExtension', response) diff --git a/azure-devops/azure/devops/v4_1/contributions/models.py b/azure-devops/azure/devops/v5_1/contributions/models.py similarity index 94% rename from azure-devops/azure/devops/v4_1/contributions/models.py rename to azure-devops/azure/devops/v5_1/contributions/models.py index fe3bfff6..9af0b215 100644 --- a/azure-devops/azure/devops/v4_1/contributions/models.py +++ b/azure-devops/azure/devops/v5_1/contributions/models.py @@ -19,7 +19,7 @@ class ClientContribution(Model): :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -51,7 +51,7 @@ class ClientContributionNode(Model): :param children: List of ids for contributions which are children to the current contribution. :type children: list of str :param contribution: Contribution associated with this node. - :type contribution: :class:`ClientContribution ` + :type contribution: :class:`ClientContribution ` :param parents: List of ids for contributions which are parents to the current contribution. :type parents: list of str """ @@ -133,7 +133,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -162,6 +162,8 @@ class ContributionNodeQuery(Model): :param contribution_ids: The contribution ids of the nodes to find. :type contribution_ids: list of str + :param data_provider_context: Contextual information that can be leveraged by contribution constraints + :type data_provider_context: :class:`DataProviderContext ` :param include_provider_details: Indicator if contribution provider details should be included in the result. :type include_provider_details: bool :param query_options: Query options tpo be used when fetching ContributionNodes @@ -170,13 +172,15 @@ class ContributionNodeQuery(Model): _attribute_map = { 'contribution_ids': {'key': 'contributionIds', 'type': '[str]'}, + 'data_provider_context': {'key': 'dataProviderContext', 'type': 'DataProviderContext'}, 'include_provider_details': {'key': 'includeProviderDetails', 'type': 'bool'}, 'query_options': {'key': 'queryOptions', 'type': 'object'} } - def __init__(self, contribution_ids=None, include_provider_details=None, query_options=None): + def __init__(self, contribution_ids=None, data_provider_context=None, include_provider_details=None, query_options=None): super(ContributionNodeQuery, self).__init__() self.contribution_ids = contribution_ids + self.data_provider_context = data_provider_context self.include_provider_details = include_provider_details self.query_options = query_options @@ -306,7 +310,7 @@ class DataProviderQuery(Model): """DataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str """ @@ -332,7 +336,7 @@ class DataProviderResult(Model): :param exceptions: Set of exceptions that occurred resolving the data providers. :type exceptions: dict :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` + :type resolved_providers: list of :class:`ResolvedDataProvider ` :param scope_name: Scope name applied to this data provider result. :type scope_name: str :param scope_value: Scope value applied to this data provider result. @@ -382,19 +386,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -446,7 +450,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -464,21 +468,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -528,21 +532,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -556,11 +560,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -619,7 +623,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -709,7 +713,7 @@ class ClientDataProviderQuery(DataProviderQuery): """ClientDataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. @@ -737,11 +741,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) diff --git a/azure-devops/azure/devops/v4_0/core/__init__.py b/azure-devops/azure/devops/v5_1/core/__init__.py similarity index 86% rename from azure-devops/azure/devops/v4_0/core/__init__.py rename to azure-devops/azure/devops/v5_1/core/__init__.py index 5eda166e..0ec7daf4 100644 --- a/azure-devops/azure/devops/v4_0/core/__init__.py +++ b/azure-devops/azure/devops/v5_1/core/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,18 +9,21 @@ from .models import * __all__ = [ + 'GraphSubjectBase', 'IdentityData', 'IdentityRef', 'JsonPatchOperation', 'OperationReference', 'Process', 'ProcessReference', + 'ProjectAvatar', 'ProjectInfo', 'ProjectProperty', 'Proxy', 'ProxyAuthorization', 'PublicKey', 'ReferenceLinks', + 'TeamMember', 'TeamProject', 'TeamProjectCollection', 'TeamProjectCollectionReference', diff --git a/azure-devops/azure/devops/v4_0/core/core_client.py b/azure-devops/azure/devops/v5_1/core/core_client.py similarity index 70% rename from azure-devops/azure/devops/v4_0/core/core_client.py rename to azure-devops/azure/devops/v5_1/core/core_client.py index f1b79b17..14e1cd54 100644 --- a/azure-devops/azure/devops/v4_0/core/core_client.py +++ b/azure-devops/azure/devops/v5_1/core/core_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -25,12 +25,41 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = '79134c72-4a58-4b42-976c-04e7115f32bf' + def remove_project_avatar(self, project_id): + """RemoveProjectAvatar. + [Preview API] Removes the avatar for the project + :param str project_id: The id or name of the project + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + self._send(http_method='DELETE', + location_id='54b2a2a0-859b-4d05-827c-ec4c862f641a', + version='5.1-preview.1', + route_values=route_values) + + def set_project_avatar(self, avatar_blob, project_id): + """SetProjectAvatar. + [Preview API] Upload avatar for the project + :param :class:` ` avatar_blob: + :param str project_id: The id or name of the project + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + content = self._serialize.body(avatar_blob, 'ProjectAvatar') + self._send(http_method='PUT', + location_id='54b2a2a0-859b-4d05-827c-ec4c862f641a', + version='5.1-preview.1', + route_values=route_values, + content=content) + def create_connected_service(self, connected_service_creation_data, project_id): """CreateConnectedService. [Preview API] - :param :class:` ` connected_service_creation_data: + :param :class:` ` connected_service_creation_data: :param str project_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -38,7 +67,7 @@ def create_connected_service(self, connected_service_creation_data, project_id): content = self._serialize.body(connected_service_creation_data, 'WebApiConnectedServiceDetails') response = self._send(http_method='POST', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('WebApiConnectedService', response) @@ -48,7 +77,7 @@ def get_connected_service_details(self, project_id, name): [Preview API] :param str project_id: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -57,7 +86,7 @@ def get_connected_service_details(self, project_id, name): route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('WebApiConnectedServiceDetails', response) @@ -76,65 +105,19 @@ def get_connected_services(self, project_id, kind=None): query_parameters['kind'] = self._serialize.query('kind', kind, 'str') response = self._send(http_method='GET', location_id='b4f70219-e18b-42c5-abe3-98b07d35525e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WebApiConnectedService]', self._unwrap_collection(response)) - def create_identity_mru(self, mru_data, mru_name): - """CreateIdentityMru. - [Preview API] - :param :class:` ` mru_data: - :param str mru_name: - """ - route_values = {} - if mru_name is not None: - route_values['mruName'] = self._serialize.url('mru_name', mru_name, 'str') - content = self._serialize.body(mru_data, 'IdentityData') - self._send(http_method='POST', - location_id='5ead0b70-2572-4697-97e9-f341069a783a', - version='4.0-preview.1', - route_values=route_values, - content=content) - - def get_identity_mru(self, mru_name): - """GetIdentityMru. - [Preview API] - :param str mru_name: - :rtype: [IdentityRef] - """ - route_values = {} - if mru_name is not None: - route_values['mruName'] = self._serialize.url('mru_name', mru_name, 'str') - response = self._send(http_method='GET', - location_id='5ead0b70-2572-4697-97e9-f341069a783a', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) - - def update_identity_mru(self, mru_data, mru_name): - """UpdateIdentityMru. - [Preview API] - :param :class:` ` mru_data: - :param str mru_name: - """ - route_values = {} - if mru_name is not None: - route_values['mruName'] = self._serialize.url('mru_name', mru_name, 'str') - content = self._serialize.body(mru_data, 'IdentityData') - self._send(http_method='PATCH', - location_id='5ead0b70-2572-4697-97e9-f341069a783a', - version='4.0-preview.1', - route_values=route_values, - content=content) - - def get_team_members(self, project_id, team_id, top=None, skip=None): - """GetTeamMembers. - :param str project_id: - :param str team_id: + def get_team_members_with_extended_properties(self, project_id, team_id, top=None, skip=None): + """GetTeamMembersWithExtendedProperties. + [Preview API] Get a list of members for a specific team. + :param str project_id: The name or ID (GUID) of the team project the team belongs to. + :param str team_id: The name or ID (GUID) of the team . :param int top: :param int skip: - :rtype: [IdentityRef] + :rtype: [TeamMember] """ route_values = {} if project_id is not None: @@ -148,54 +131,54 @@ def get_team_members(self, project_id, team_id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) - return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) + return self._deserialize('[TeamMember]', self._unwrap_collection(response)) def get_process_by_id(self, process_id): """GetProcessById. - Retrieve process by id - :param str process_id: - :rtype: :class:` ` + [Preview API] Get a process by ID. + :param str process_id: ID for a process. + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Process', response) def get_processes(self): """GetProcesses. - Retrieve all processes + [Preview API] Get a list of processes. :rtype: [Process] """ response = self._send(http_method='GET', location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', - version='4.0') + version='5.1-preview.1') return self._deserialize('[Process]', self._unwrap_collection(response)) def get_project_collection(self, collection_id): """GetProjectCollection. - Get project collection with the specified id or name. + [Preview API] Get project collection with the specified id or name. :param str collection_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if collection_id is not None: route_values['collectionId'] = self._serialize.url('collection_id', collection_id, 'str') response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('TeamProjectCollection', response) def get_project_collections(self, top=None, skip=None): """GetProjectCollections. - Get project collection references for this application. + [Preview API] Get project collection references for this application. :param int top: :param int skip: :rtype: [TeamProjectCollectionReference] @@ -207,32 +190,17 @@ def get_project_collections(self, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', - version='4.0', + version='5.1-preview.2', query_parameters=query_parameters) return self._deserialize('[TeamProjectCollectionReference]', self._unwrap_collection(response)) - def get_project_history_entries(self, min_revision=None): - """GetProjectHistoryEntries. - [Preview API] - :param long min_revision: - :rtype: [ProjectInfo] - """ - query_parameters = {} - if min_revision is not None: - query_parameters['minRevision'] = self._serialize.query('min_revision', min_revision, 'long') - response = self._send(http_method='GET', - location_id='6488a877-4749-4954-82ea-7340d36be9f2', - version='4.0-preview.2', - query_parameters=query_parameters) - return self._deserialize('[ProjectInfo]', self._unwrap_collection(response)) - def get_project(self, project_id, include_capabilities=None, include_history=None): """GetProject. - Get project with the specified id or name, optionally including capabilities. + [Preview API] Get project with the specified id or name, optionally including capabilities. :param str project_id: :param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false). :param bool include_history: Search within renamed projects (that had such name in the past). - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -244,18 +212,19 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.0', + version='5.1-preview.4', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TeamProject', response) - def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None): + def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None, get_default_team_image_url=None): """GetProjects. - Get project references with the specified state + [Preview API] Get all projects in the organization that the authenticated user has access to. :param str state_filter: Filter on team projects in a specific team project state (default: WellFormed). :param int top: :param int skip: :param str continuation_token: + :param bool get_default_team_image_url: :rtype: [TeamProjectReference] """ query_parameters = {} @@ -267,46 +236,48 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') if continuation_token is not None: query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if get_default_team_image_url is not None: + query_parameters['getDefaultTeamImageUrl'] = self._serialize.query('get_default_team_image_url', get_default_team_image_url, 'bool') response = self._send(http_method='GET', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.0', + version='5.1-preview.4', query_parameters=query_parameters) return self._deserialize('[TeamProjectReference]', self._unwrap_collection(response)) def queue_create_project(self, project_to_create): """QueueCreateProject. - Queue a project creation. - :param :class:` ` project_to_create: The project to create. - :rtype: :class:` ` + [Preview API] Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status. + :param :class:` ` project_to_create: The project to create. + :rtype: :class:` ` """ content = self._serialize.body(project_to_create, 'TeamProject') response = self._send(http_method='POST', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.0', + version='5.1-preview.4', content=content) return self._deserialize('OperationReference', response) def queue_delete_project(self, project_id): """QueueDeleteProject. - Queue a project deletion. + [Preview API] Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. :param str project_id: The project id of the project to delete. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') response = self._send(http_method='DELETE', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.0', + version='5.1-preview.4', route_values=route_values) return self._deserialize('OperationReference', response) def update_project(self, project_update, project_id): """UpdateProject. - Update an existing project's name, abbreviation, or description. - :param :class:` ` project_update: The updates for the project. + [Preview API] Update an existing project's name, abbreviation, description, or restore a project. + :param :class:` ` project_update: The updates for the project. The state must be set to wellFormed to restore the project. :param str project_id: The project id of the project to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -314,7 +285,7 @@ def update_project(self, project_update, project_id): content = self._serialize.body(project_update, 'TeamProject') response = self._send(http_method='PATCH', location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', - version='4.0', + version='5.1-preview.4', route_values=route_values, content=content) return self._deserialize('OperationReference', response) @@ -335,7 +306,7 @@ def get_project_properties(self, project_id, keys=None): query_parameters['keys'] = self._serialize.query('keys', keys, 'str') response = self._send(http_method='GET', location_id='4976a71a-4487-49aa-8aab-a1eda469037a', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ProjectProperty]', self._unwrap_collection(response)) @@ -344,7 +315,7 @@ def set_project_properties(self, project_id, patch_document): """SetProjectProperties. [Preview API] Create, update, and delete team project properties. :param str project_id: The team project ID. - :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. + :param :class:`<[JsonPatchOperation]> ` patch_document: A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. """ route_values = {} if project_id is not None: @@ -352,7 +323,7 @@ def set_project_properties(self, project_id, patch_document): content = self._serialize.body(patch_document, '[JsonPatchOperation]') self._send(http_method='PATCH', location_id='4976a71a-4487-49aa-8aab-a1eda469037a', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -360,13 +331,13 @@ def set_project_properties(self, project_id, patch_document): def create_or_update_proxy(self, proxy): """CreateOrUpdateProxy. [Preview API] - :param :class:` ` proxy: - :rtype: :class:` ` + :param :class:` ` proxy: + :rtype: :class:` ` """ content = self._serialize.body(proxy, 'Proxy') response = self._send(http_method='PUT', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', - version='4.0-preview.2', + version='5.1-preview.2', content=content) return self._deserialize('Proxy', response) @@ -383,7 +354,7 @@ def delete_proxy(self, proxy_url, site=None): query_parameters['site'] = self._serialize.query('site', site, 'str') self._send(http_method='DELETE', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', - version='4.0-preview.2', + version='5.1-preview.2', query_parameters=query_parameters) def get_proxies(self, proxy_url=None): @@ -397,16 +368,37 @@ def get_proxies(self, proxy_url=None): query_parameters['proxyUrl'] = self._serialize.query('proxy_url', proxy_url, 'str') response = self._send(http_method='GET', location_id='ec1f4311-f2b4-4c15-b2b8-8990b80d2908', - version='4.0-preview.2', + version='5.1-preview.2', query_parameters=query_parameters) return self._deserialize('[Proxy]', self._unwrap_collection(response)) + def get_all_teams(self, mine=None, top=None, skip=None): + """GetAllTeams. + [Preview API] Get a list of all teams. + :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access + :param int top: Maximum number of teams to return. + :param int skip: Number of teams to skip. + :rtype: [WebApiTeam] + """ + query_parameters = {} + if mine is not None: + query_parameters['$mine'] = self._serialize.query('mine', mine, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='7a4d9ee9-3433-4347-b47a-7a80f1cf307e', + version='5.1-preview.2', + query_parameters=query_parameters) + return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) + def create_team(self, team, project_id): """CreateTeam. - Creates a team - :param :class:` ` team: The team data used to create the team. - :param str project_id: The name or id (GUID) of the team project in which to create the team. - :rtype: :class:` ` + [Preview API] Create a team in a team project. + :param :class:` ` team: The team data used to create the team. + :param str project_id: The name or ID (GUID) of the team project in which to create the team. + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -414,16 +406,16 @@ def create_team(self, team, project_id): content = self._serialize.body(team, 'WebApiTeam') response = self._send(http_method='POST', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.0', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('WebApiTeam', response) def delete_team(self, project_id, team_id): """DeleteTeam. - Deletes a team - :param str project_id: The name or id (GUID) of the team project containing the team to delete. - :param str team_id: The name of id of the team to delete. + [Preview API] Delete a team. + :param str project_id: The name or ID (GUID) of the team project containing the team to delete. + :param str team_id: The name of ID of the team to delete. """ route_values = {} if project_id is not None: @@ -432,15 +424,15 @@ def delete_team(self, project_id, team_id): route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') self._send(http_method='DELETE', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.0', + version='5.1-preview.2', route_values=route_values) def get_team(self, project_id, team_id): """GetTeam. - Gets a team - :param str project_id: - :param str team_id: - :rtype: :class:` ` + [Preview API] Get a specific team. + :param str project_id: The name or ID (GUID) of the team project containing the team. + :param str team_id: The name or ID (GUID) of the team. + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -449,39 +441,43 @@ def get_team(self, project_id, team_id): route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') response = self._send(http_method='GET', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('WebApiTeam', response) - def get_teams(self, project_id, top=None, skip=None): + def get_teams(self, project_id, mine=None, top=None, skip=None): """GetTeams. + [Preview API] Get a list of teams. :param str project_id: - :param int top: - :param int skip: + :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access + :param int top: Maximum number of teams to return. + :param int skip: Number of teams to skip. :rtype: [WebApiTeam] """ route_values = {} if project_id is not None: route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') query_parameters = {} + if mine is not None: + query_parameters['$mine'] = self._serialize.query('mine', mine, 'bool') if top is not None: query_parameters['$top'] = self._serialize.query('top', top, 'int') if skip is not None: query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) def update_team(self, team_data, project_id, team_id): """UpdateTeam. - Updates a team's name and/or description - :param :class:` ` team_data: - :param str project_id: The name or id (GUID) of the team project containing the team to update. - :param str team_id: The name of id of the team to update. - :rtype: :class:` ` + [Preview API] Update a team's name and/or description. + :param :class:` ` team_data: + :param str project_id: The name or ID (GUID) of the team project containing the team to update. + :param str team_id: The name of ID of the team to update. + :rtype: :class:` ` """ route_values = {} if project_id is not None: @@ -491,7 +487,7 @@ def update_team(self, team_data, project_id, team_id): content = self._serialize.body(team_data, 'WebApiTeam') response = self._send(http_method='PATCH', location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', - version='4.0', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('WebApiTeam', response) diff --git a/azure-devops/azure/devops/v4_0/core/models.py b/azure-devops/azure/devops/v5_1/core/models.py similarity index 69% rename from azure-devops/azure/devops/v4_0/core/models.py rename to azure-devops/azure/devops/v5_1/core/models.py index 3c6d36ca..04be0fa7 100644 --- a/azure-devops/azure/devops/v4_0/core/models.py +++ b/azure-devops/azure/devops/v5_1/core/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,6 +9,34 @@ from msrest.serialization import Model +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 IdentityData(Model): """IdentityData. @@ -25,56 +53,64 @@ def __init__(self, identity_ids=None): self.identity_ids = identity_ids -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class JsonPatchOperation(Model): @@ -108,23 +144,27 @@ def __init__(self, from_=None, op=None, path=None, value=None): class OperationReference(Model): """OperationReference. - :param id: The identifier for this operation. + :param id: Unique identifier for the operation. :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str :param status: The current status of the operation. :type status: object - :param url: Url to get the full object. + :param url: URL to get the full operation object. :type url: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, id=None, status=None, url=None): + def __init__(self, id=None, plugin_id=None, status=None, url=None): super(OperationReference, self).__init__() self.id = id + self.plugin_id = plugin_id self.status = status self.url = url @@ -149,30 +189,46 @@ def __init__(self, name=None, url=None): self.url = url +class ProjectAvatar(Model): + """ProjectAvatar. + + :param image: The avatar image represented as a byte array + :type image: str + """ + + _attribute_map = { + 'image': {'key': 'image', 'type': 'str'} + } + + def __init__(self, image=None): + super(ProjectAvatar, self).__init__() + self.image = image + + class ProjectInfo(Model): """ProjectInfo. - :param abbreviation: + :param abbreviation: The abbreviated name of the project. :type abbreviation: str - :param description: + :param description: The description of the project. :type description: str - :param id: + :param id: The id of the project. :type id: str - :param last_update_time: + :param last_update_time: The time that this project was last updated. :type last_update_time: datetime - :param name: + :param name: The name of the project. :type name: str - :param properties: - :type properties: list of :class:`ProjectProperty ` - :param revision: Current revision of the project + :param properties: A set of name-value pairs storing additional property data related to the project. + :type properties: list of :class:`ProjectProperty ` + :param revision: The current revision of the project. :type revision: long - :param state: + :param state: The current state of the project. :type state: object - :param uri: + :param uri: A Uri that can be used to refer to this project. :type uri: str - :param version: + :param version: The version number of the project. :type version: long - :param visibility: + :param visibility: Indicates whom the project is visible to. :type visibility: object """ @@ -208,9 +264,9 @@ def __init__(self, abbreviation=None, description=None, id=None, last_update_tim class ProjectProperty(Model): """ProjectProperty. - :param name: + :param name: The name of the property. :type name: str - :param value: + :param value: The value of the property. :type value: object """ @@ -229,7 +285,7 @@ class Proxy(Model): """Proxy. :param authorization: - :type authorization: :class:`ProxyAuthorization ` + :type authorization: :class:`ProxyAuthorization ` :param description: This is a description string :type description: str :param friendly_name: The friendly name of the server @@ -273,9 +329,9 @@ class ProxyAuthorization(Model): :param client_id: Gets or sets the client identifier for this proxy. :type client_id: str :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` + :type identity: :class:`str ` :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` + :type public_key: :class:`PublicKey ` """ _attribute_map = { @@ -329,6 +385,26 @@ def __init__(self, links=None): self.links = links +class TeamMember(Model): + """TeamMember. + + :param identity: + :type identity: :class:`IdentityRef ` + :param is_team_admin: + :type is_team_admin: bool + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'IdentityRef'}, + 'is_team_admin': {'key': 'isTeamAdmin', 'type': 'bool'} + } + + def __init__(self, identity=None, is_team_admin=None): + super(TeamMember, self).__init__() + self.identity = identity + self.is_team_admin = is_team_admin + + class TeamProjectCollectionReference(Model): """TeamProjectCollectionReference. @@ -358,10 +434,14 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. :type id: str + :param last_update_time: Project last update time. + :type last_update_time: datetime :param name: Project name. :type name: str :param revision: Project revision. @@ -376,8 +456,10 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'revision': {'key': 'revision', 'type': 'long'}, 'state': {'key': 'state', 'type': 'object'}, @@ -385,11 +467,13 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id + self.last_update_time = last_update_time self.name = name self.revision = revision self.state = state @@ -449,7 +533,7 @@ class Process(ProcessReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -484,10 +568,14 @@ class TeamProject(TeamProjectReference): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. :type id: str + :param last_update_time: Project last update time. + :type last_update_time: datetime :param name: Project name. :type name: str :param revision: Project revision. @@ -499,17 +587,19 @@ class TeamProject(TeamProjectReference): :param visibility: Project visibility. :type visibility: object :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param capabilities: Set of capabilities this project has (such as process template & version control). :type capabilities: dict :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` + :type default_team: :class:`WebApiTeamRef ` """ _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'revision': {'key': 'revision', 'type': 'long'}, 'state': {'key': 'state', 'type': 'object'}, @@ -520,8 +610,8 @@ class TeamProject(TeamProjectReference): 'default_team': {'key': 'defaultTeam', 'type': 'WebApiTeamRef'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): - super(TeamProject, self).__init__(abbreviation=abbreviation, description=description, id=id, name=name, revision=revision, state=state, url=url, visibility=visibility) + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None, _links=None, capabilities=None, default_team=None): + super(TeamProject, self).__init__(abbreviation=abbreviation, default_team_image_url=default_team_image_url, description=description, id=id, last_update_time=last_update_time, name=name, revision=revision, state=state, url=url, visibility=visibility) self._links = _links self.capabilities = capabilities self.default_team = default_team @@ -537,9 +627,11 @@ class TeamProjectCollection(TeamProjectCollectionReference): :param url: Collection REST Url. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Project collection description. :type description: str + :param process_customization_type: Process customzation type on this collection. It can be Xml or Inherited. + :type process_customization_type: object :param state: Project collection state. :type state: str """ @@ -550,13 +642,15 @@ class TeamProjectCollection(TeamProjectCollectionReference): 'url': {'key': 'url', 'type': 'str'}, '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'description': {'key': 'description', 'type': 'str'}, + 'process_customization_type': {'key': 'processCustomizationType', 'type': 'object'}, 'state': {'key': 'state', 'type': 'str'} } - def __init__(self, id=None, name=None, url=None, _links=None, description=None, state=None): + def __init__(self, id=None, name=None, url=None, _links=None, description=None, process_customization_type=None, state=None): super(TeamProjectCollection, self).__init__(id=id, name=name, url=url) self._links = _links self.description = description + self.process_customization_type = process_customization_type self.state = state @@ -566,7 +660,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param url: :type url: str :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` + :type authenticated_by: :class:`IdentityRef ` :param description: Extra description on the service. :type description: str :param friendly_name: Friendly Name of service connection @@ -576,7 +670,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param kind: The kind of service. :type kind: str :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com :type service_uri: str """ @@ -611,7 +705,7 @@ class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): :param url: :type url: str :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` + :type connected_service_meta_data: :class:`WebApiConnectedService ` :param credentials_xml: Credential info :type credentials_xml: str :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com @@ -646,6 +740,10 @@ class WebApiTeam(WebApiTeamRef): :type description: str :param identity_url: Identity REST API Url to this team :type identity_url: str + :param project_id: + :type project_id: str + :param project_name: + :type project_name: str """ _attribute_map = { @@ -653,27 +751,34 @@ class WebApiTeam(WebApiTeamRef): 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, - 'identity_url': {'key': 'identityUrl', 'type': 'str'} + 'identity_url': {'key': 'identityUrl', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'project_name': {'key': 'projectName', 'type': 'str'} } - def __init__(self, id=None, name=None, url=None, description=None, identity_url=None): + def __init__(self, id=None, name=None, url=None, description=None, identity_url=None, project_id=None, project_name=None): super(WebApiTeam, self).__init__(id=id, name=name, url=url) self.description = description self.identity_url = identity_url + self.project_id = project_id + self.project_name = project_name __all__ = [ + 'GraphSubjectBase', 'IdentityData', 'IdentityRef', 'JsonPatchOperation', 'OperationReference', 'ProcessReference', + 'ProjectAvatar', 'ProjectInfo', 'ProjectProperty', 'Proxy', 'ProxyAuthorization', 'PublicKey', 'ReferenceLinks', + 'TeamMember', 'TeamProjectCollectionReference', 'TeamProjectReference', 'WebApiConnectedServiceRef', diff --git a/azure-devops/azure/devops/v4_0/customer_intelligence/__init__.py b/azure-devops/azure/devops/v5_1/customer_intelligence/__init__.py similarity index 84% rename from azure-devops/azure/devops/v4_0/customer_intelligence/__init__.py rename to azure-devops/azure/devops/v5_1/customer_intelligence/__init__.py index fddb4faa..97323297 100644 --- a/azure-devops/azure/devops/v4_0/customer_intelligence/__init__.py +++ b/azure-devops/azure/devops/v5_1/customer_intelligence/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/customer_intelligence/customer_intelligence_client.py b/azure-devops/azure/devops/v5_1/customer_intelligence/customer_intelligence_client.py similarity index 91% rename from azure-devops/azure/devops/v4_0/customer_intelligence/customer_intelligence_client.py rename to azure-devops/azure/devops/v5_1/customer_intelligence/customer_intelligence_client.py index df2dbe47..d09b6a3f 100644 --- a/azure-devops/azure/devops/v4_0/customer_intelligence/customer_intelligence_client.py +++ b/azure-devops/azure/devops/v5_1/customer_intelligence/customer_intelligence_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -33,6 +33,6 @@ def publish_events(self, events): content = self._serialize.body(events, '[CustomerIntelligenceEvent]') self._send(http_method='POST', location_id='b5cc35c2-ff2b-491d-a085-24b6e9f396fd', - version='4.0-preview.1', + version='5.1-preview.1', content=content) diff --git a/azure-devops/azure/devops/v4_0/customer_intelligence/models.py b/azure-devops/azure/devops/v5_1/customer_intelligence/models.py similarity index 92% rename from azure-devops/azure/devops/v4_0/customer_intelligence/models.py rename to azure-devops/azure/devops/v5_1/customer_intelligence/models.py index 4d948e6a..0f9dc7d2 100644 --- a/azure-devops/azure/devops/v4_0/customer_intelligence/models.py +++ b/azure-devops/azure/devops/v5_1/customer_intelligence/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/dashboard/__init__.py b/azure-devops/azure/devops/v5_1/dashboard/__init__.py similarity index 90% rename from azure-devops/azure/devops/v4_0/dashboard/__init__.py rename to azure-devops/azure/devops/v5_1/dashboard/__init__.py index bdce2a2c..f031af8a 100644 --- a/azure-devops/azure/devops/v4_0/dashboard/__init__.py +++ b/azure-devops/azure/devops/v5_1/dashboard/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py b/azure-devops/azure/devops/v5_1/dashboard/dashboard_client.py similarity index 86% rename from azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py rename to azure-devops/azure/devops/v5_1/dashboard/dashboard_client.py index 270cca85..fe7cd5e9 100644 --- a/azure-devops/azure/devops/v4_1/dashboard/dashboard_client.py +++ b/azure-devops/azure/devops/v5_1/dashboard/dashboard_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_dashboard(self, dashboard, team_context): """CreateDashboard. [Preview API] Create the supplied dashboard. - :param :class:` ` dashboard: The initial state of the dashboard - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` dashboard: The initial state of the dashboard + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -52,7 +52,7 @@ def create_dashboard(self, dashboard, team_context): content = self._serialize.body(dashboard, 'Dashboard') response = self._send(http_method='POST', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('Dashboard', response) @@ -60,7 +60,7 @@ def create_dashboard(self, dashboard, team_context): def delete_dashboard(self, team_context, dashboard_id): """DeleteDashboard. [Preview API] Delete a dashboard given its ID. This also deletes the widgets associated with this dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard to delete. """ project = None @@ -84,15 +84,15 @@ def delete_dashboard(self, team_context, dashboard_id): route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') self._send(http_method='DELETE', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values) def get_dashboard(self, team_context, dashboard_id): """GetDashboard. [Preview API] Get a dashboard by its ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -115,15 +115,15 @@ def get_dashboard(self, team_context, dashboard_id): route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') response = self._send(http_method='GET', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values) return self._deserialize('Dashboard', response) def get_dashboards(self, team_context): """GetDashboards. [Preview API] Get a list of dashboards. - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -144,17 +144,17 @@ def get_dashboards(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values) return self._deserialize('DashboardGroup', response) def replace_dashboard(self, dashboard, team_context, dashboard_id): """ReplaceDashboard. - [Preview API] Replace configuration for the specified dashboard. - :param :class:` ` dashboard: The Configuration of the dashboard to replace. - :param :class:` ` team_context: The team context for the operation + [Preview API] Replace configuration for the specified dashboard. Replaces Widget list on Dashboard, only if property is supplied. + :param :class:` ` dashboard: The Configuration of the dashboard to replace. + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard to replace. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -178,7 +178,7 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): content = self._serialize.body(dashboard, 'Dashboard') response = self._send(http_method='PUT', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('Dashboard', response) @@ -186,9 +186,9 @@ def replace_dashboard(self, dashboard, team_context, dashboard_id): def replace_dashboards(self, group, team_context): """ReplaceDashboards. [Preview API] Update the name and position of dashboards in the supplied group, and remove omitted dashboards. Does not modify dashboard content. - :param :class:` ` group: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` group: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -210,7 +210,7 @@ def replace_dashboards(self, group, team_context): content = self._serialize.body(group, 'DashboardGroup') response = self._send(http_method='PUT', location_id='454b3e51-2e6e-48d4-ad81-978154089351', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('DashboardGroup', response) @@ -218,10 +218,10 @@ def replace_dashboards(self, group, team_context): def create_widget(self, widget, team_context, dashboard_id): """CreateWidget. [Preview API] Create a widget on the specified dashboard. - :param :class:` ` widget: State of the widget to add - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: State of the widget to add + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of dashboard the widget will be added to. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -245,7 +245,7 @@ def create_widget(self, widget, team_context, dashboard_id): content = self._serialize.body(widget, 'Widget') response = self._send(http_method='POST', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('Widget', response) @@ -253,10 +253,10 @@ def create_widget(self, widget, team_context, dashboard_id): def delete_widget(self, team_context, dashboard_id, widget_id): """DeleteWidget. [Preview API] Delete the specified widget. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to update. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -281,17 +281,17 @@ def delete_widget(self, team_context, dashboard_id, widget_id): route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') response = self._send(http_method='DELETE', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values) return self._deserialize('Dashboard', response) def get_widget(self, team_context, dashboard_id, widget_id): """GetWidget. [Preview API] Get the current state of the specified widget. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to read. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -316,17 +316,17 @@ def get_widget(self, team_context, dashboard_id, widget_id): route_values['widgetId'] = self._serialize.url('widget_id', widget_id, 'str') response = self._send(http_method='GET', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values) return self._deserialize('Widget', response) def get_widgets(self, team_context, dashboard_id, eTag=None): """GetWidgets. [Preview API] Get widgets contained on the specified dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard to read. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -349,7 +349,7 @@ def get_widgets(self, team_context, dashboard_id, eTag=None): route_values['dashboardId'] = self._serialize.url('dashboard_id', dashboard_id, 'str') response = self._send(http_method='GET', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values) response_object = models.WidgetsVersionedList() response_object.widgets = self._deserialize('[Widget]', self._unwrap_collection(response)) @@ -359,11 +359,11 @@ def get_widgets(self, team_context, dashboard_id, eTag=None): def replace_widget(self, widget, team_context, dashboard_id, widget_id): """ReplaceWidget. [Preview API] Override the state of the specified widget. - :param :class:` ` widget: State to be written for the widget. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: State to be written for the widget. + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to update. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -389,7 +389,7 @@ def replace_widget(self, widget, team_context, dashboard_id, widget_id): content = self._serialize.body(widget, 'Widget') response = self._send(http_method='PUT', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('Widget', response) @@ -398,10 +398,10 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): """ReplaceWidgets. [Preview API] Replace the widgets on specified dashboard with the supplied widgets. :param [Widget] widgets: Revised state of widgets to store for the dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the Dashboard to modify. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -425,7 +425,7 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PUT', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) response_object = models.WidgetsVersionedList() @@ -436,11 +436,11 @@ def replace_widgets(self, widgets, team_context, dashboard_id, eTag=None): def update_widget(self, widget, team_context, dashboard_id, widget_id): """UpdateWidget. [Preview API] Perform a partial update of the specified widget. - :param :class:` ` widget: Description of the widget changes to apply. All non-null fields will be replaced. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` widget: Description of the widget changes to apply. All non-null fields will be replaced. + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the dashboard containing the widget. :param str widget_id: ID of the widget to update. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -466,7 +466,7 @@ def update_widget(self, widget, team_context, dashboard_id, widget_id): content = self._serialize.body(widget, 'Widget') response = self._send(http_method='PATCH', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('Widget', response) @@ -475,10 +475,10 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): """UpdateWidgets. [Preview API] Update the supplied widgets on the dashboard using supplied state. State of existing Widgets not passed in the widget list is preserved. :param [Widget] widgets: The set of widget states to update on the dashboard. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str dashboard_id: ID of the Dashboard to modify. :param String eTag: Dashboard Widgets Version - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -502,7 +502,7 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): content = self._serialize.body(widgets, '[Widget]') response = self._send(http_method='PATCH', location_id='bdcff53a-8355-4172-a00a-40497ea23afc', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content) response_object = models.WidgetsVersionedList() @@ -510,33 +510,41 @@ def update_widgets(self, widgets, team_context, dashboard_id, eTag=None): response_object.eTag = response.headers.get('ETag') return response_object - def get_widget_metadata(self, contribution_id): + def get_widget_metadata(self, contribution_id, project=None): """GetWidgetMetadata. [Preview API] Get the widget metadata satisfying the specified contribution ID. :param str contribution_id: The ID of Contribution for the Widget - :rtype: :class:` ` + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if contribution_id is not None: route_values['contributionId'] = self._serialize.url('contribution_id', contribution_id, 'str') response = self._send(http_method='GET', location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('WidgetMetadataResponse', response) - def get_widget_types(self, scope): + def get_widget_types(self, scope, project=None): """GetWidgetTypes. [Preview API] Get all available widget metadata in alphabetical order. :param str scope: - :rtype: :class:` ` + :param str project: Project ID or project name + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if scope is not None: query_parameters['$scope'] = self._serialize.query('scope', scope, 'str') response = self._send(http_method='GET', location_id='6b3628d3-e96f-4fc7-b176-50240b03b515', - version='4.1-preview.1', + version='5.1-preview.1', + route_values=route_values, query_parameters=query_parameters) return self._deserialize('WidgetTypesResponse', response) diff --git a/azure-devops/azure/devops/v4_0/dashboard/models.py b/azure-devops/azure/devops/v5_1/dashboard/models.py similarity index 75% rename from azure-devops/azure/devops/v4_0/dashboard/models.py rename to azure-devops/azure/devops/v5_1/dashboard/models.py index 0ff06d35..f430211a 100644 --- a/azure-devops/azure/devops/v4_0/dashboard/models.py +++ b/azure-devops/azure/devops/v5_1/dashboard/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -13,25 +13,25 @@ class Dashboard(Model): """Dashboard. :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. :type description: str - :param eTag: + :param eTag: Server defined version tracking value, used for edit collision detection. :type eTag: str - :param id: + :param id: ID of the Dashboard. Provided by service at creation time. :type id: str - :param name: + :param name: Name of the Dashboard. :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. :type owner_id: str - :param position: + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. :type position: int - :param refresh_interval: + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. :type refresh_interval: int :param url: :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -65,11 +65,13 @@ class DashboardGroup(Model): """DashboardGroup. :param _links: - :type _links: :class:`ReferenceLinks ` - :param dashboard_entries: - :type dashboard_entries: list of :class:`DashboardGroupEntry ` - :param permission: + :type _links: :class:`ReferenceLinks ` + :param dashboard_entries: A list of Dashboards held by the Dashboard Group + :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. :type permission: object + :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. + :type team_dashboard_permission: object :param url: :type url: str """ @@ -78,14 +80,16 @@ class DashboardGroup(Model): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'dashboard_entries': {'key': 'dashboardEntries', 'type': '[DashboardGroupEntry]'}, 'permission': {'key': 'permission', 'type': 'object'}, + 'team_dashboard_permission': {'key': 'teamDashboardPermission', 'type': 'object'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, dashboard_entries=None, permission=None, url=None): + def __init__(self, _links=None, dashboard_entries=None, permission=None, team_dashboard_permission=None, url=None): super(DashboardGroup, self).__init__() self._links = _links self.dashboard_entries = dashboard_entries self.permission = permission + self.team_dashboard_permission = team_dashboard_permission self.url = url @@ -93,25 +97,25 @@ class DashboardGroupEntry(Dashboard): """DashboardGroupEntry. :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. :type description: str - :param eTag: + :param eTag: Server defined version tracking value, used for edit collision detection. :type eTag: str - :param id: + :param id: ID of the Dashboard. Provided by service at creation time. :type id: str - :param name: + :param name: Name of the Dashboard. :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. :type owner_id: str - :param position: + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. :type position: int - :param refresh_interval: + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. :type refresh_interval: int :param url: :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -135,25 +139,25 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): """DashboardGroupEntryResponse. :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. :type description: str - :param eTag: + :param eTag: Server defined version tracking value, used for edit collision detection. :type eTag: str - :param id: + :param id: ID of the Dashboard. Provided by service at creation time. :type id: str - :param name: + :param name: Name of the Dashboard. :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. :type owner_id: str - :param position: + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. :type position: int - :param refresh_interval: + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. :type refresh_interval: int :param url: :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -177,25 +181,25 @@ class DashboardResponse(DashboardGroupEntry): """DashboardResponse. :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :type _links: :class:`ReferenceLinks ` + :param description: Description of the dashboard. :type description: str - :param eTag: + :param eTag: Server defined version tracking value, used for edit collision detection. :type eTag: str - :param id: + :param id: ID of the Dashboard. Provided by service at creation time. :type id: str - :param name: + :param name: Name of the Dashboard. :type name: str - :param owner_id: Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. + :param owner_id: ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard. :type owner_id: str - :param position: + :param position: Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service. :type position: int - :param refresh_interval: + :param refresh_interval: Interval for client to automatically refresh the dashboard. Expressed in minutes. :type refresh_interval: int :param url: :type url: str - :param widgets: - :type widgets: list of :class:`Widget ` + :param widgets: The set of Widgets on the dashboard. + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -311,9 +315,11 @@ class Widget(Model): """Widget. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` + :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. + :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. :type artifact_id: str :param configuration_contribution_id: @@ -325,7 +331,7 @@ class Widget(Model): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -335,19 +341,19 @@ class Widget(Model): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -357,6 +363,7 @@ class Widget(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, 'artifact_id': {'key': 'artifactId', 'type': 'str'}, 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, @@ -378,10 +385,11 @@ class Widget(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): super(Widget, self).__init__() self._links = _links self.allowed_sizes = allowed_sizes + self.are_settings_blocked_for_user = are_settings_blocked_for_user self.artifact_id = artifact_id self.configuration_contribution_id = configuration_contribution_id self.configuration_contribution_relative_id = configuration_contribution_relative_id @@ -407,7 +415,7 @@ class WidgetMetadata(Model): """WidgetMetadata. :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. :type analytics_service_required: bool :param catalog_icon_url: Resource for an icon in the widget catalog. @@ -420,11 +428,11 @@ class WidgetMetadata(Model): :type configuration_contribution_relative_id: str :param configuration_required: Indicates if the widget requires configuration before being added to dashboard. :type configuration_required: bool - :param content_uri: Uri for the WidgetFactory to get the widget + :param content_uri: Uri for the widget content to be loaded from . :type content_uri: str :param contribution_id: The id of the underlying contribution defining the supplied Widget. :type contribution_id: str - :param default_settings: Optional default settings to be copied into widget settings + :param default_settings: Optional default settings to be copied into widget settings. :type default_settings: str :param description: Summary information describing the widget. :type description: str @@ -432,10 +440,10 @@ class WidgetMetadata(Model): :type is_enabled: bool :param is_name_configurable: Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest. :type is_name_configurable: bool - :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. For V1, only "pull" model widgets can be provided from the catalog. + :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. :type is_visible_from_catalog: bool - :param lightbox_options: Opt-in lightbox properties - :type lightbox_options: :class:`LightboxOptions ` + :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: Resource for a loading placeholder image on dashboard :type loading_image_url: str :param name: User facing name of the widget type. Each widget must use a unique value here. @@ -446,7 +454,7 @@ class WidgetMetadata(Model): :type supported_scopes: list of WidgetScope :param targets: Contribution target IDs :type targets: list of str - :param type_id: Dev-facing id of this kind of widget. + :param type_id: Deprecated: locally unique developer-facing id of this kind of widget. ContributionId provides a globally unique identifier for widget types. :type type_id: str """ @@ -505,7 +513,7 @@ class WidgetMetadataResponse(Model): :param uri: :type uri: str :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` + :type widget_metadata: :class:`WidgetMetadata ` """ _attribute_map = { @@ -543,9 +551,11 @@ class WidgetResponse(Widget): """WidgetResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` + :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. + :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. :type artifact_id: str :param configuration_contribution_id: @@ -557,7 +567,7 @@ class WidgetResponse(Widget): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -567,19 +577,19 @@ class WidgetResponse(Widget): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -589,6 +599,7 @@ class WidgetResponse(Widget): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'allowed_sizes': {'key': 'allowedSizes', 'type': '[WidgetSize]'}, + 'are_settings_blocked_for_user': {'key': 'areSettingsBlockedForUser', 'type': 'bool'}, 'artifact_id': {'key': 'artifactId', 'type': 'str'}, 'configuration_contribution_id': {'key': 'configurationContributionId', 'type': 'str'}, 'configuration_contribution_relative_id': {'key': 'configurationContributionRelativeId', 'type': 'str'}, @@ -610,16 +621,16 @@ class WidgetResponse(Widget): 'url': {'key': 'url', 'type': 'str'}, } - def __init__(self, _links=None, allowed_sizes=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): - super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) + def __init__(self, _links=None, allowed_sizes=None, are_settings_blocked_for_user=None, artifact_id=None, configuration_contribution_id=None, configuration_contribution_relative_id=None, content_uri=None, contribution_id=None, dashboard=None, eTag=None, id=None, is_enabled=None, is_name_configurable=None, lightbox_options=None, loading_image_url=None, name=None, position=None, settings=None, settings_version=None, size=None, type_id=None, url=None): + super(WidgetResponse, self).__init__(_links=_links, allowed_sizes=allowed_sizes, are_settings_blocked_for_user=are_settings_blocked_for_user, artifact_id=artifact_id, configuration_contribution_id=configuration_contribution_id, configuration_contribution_relative_id=configuration_contribution_relative_id, content_uri=content_uri, contribution_id=contribution_id, dashboard=dashboard, eTag=eTag, id=id, is_enabled=is_enabled, is_name_configurable=is_name_configurable, lightbox_options=lightbox_options, loading_image_url=loading_image_url, name=name, position=position, settings=settings, settings_version=settings_version, size=size, type_id=type_id, url=url) class WidgetSize(Model): """WidgetSize. - :param column_span: + :param column_span: The Width of the widget, expressed in dashboard grid columns. :type column_span: int - :param row_span: + :param row_span: The height of the widget, expressed in dashboard grid rows. :type row_span: int """ @@ -640,7 +651,7 @@ class WidgetsVersionedList(Model): :param eTag: :type eTag: list of str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -658,11 +669,11 @@ class WidgetTypesResponse(Model): """WidgetTypesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param uri: :type uri: str :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` + :type widget_types: list of :class:`WidgetMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v4_0/extension_management/__init__.py b/azure-devops/azure/devops/v5_1/extension_management/__init__.py similarity index 91% rename from azure-devops/azure/devops/v4_0/extension_management/__init__.py rename to azure-devops/azure/devops/v5_1/extension_management/__init__.py index f8520c44..73bd8e9a 100644 --- a/azure-devops/azure/devops/v4_0/extension_management/__init__.py +++ b/azure-devops/azure/devops/v5_1/extension_management/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -34,6 +34,7 @@ 'ExtensionState', 'ExtensionStatistic', 'ExtensionVersion', + 'GraphSubjectBase', 'IdentityRef', 'InstallationTarget', 'InstalledExtension', @@ -43,6 +44,7 @@ 'LicensingOverride', 'PublishedExtension', 'PublisherFacts', + 'ReferenceLinks', 'RequestedExtension', 'UserExtensionPolicy', ] diff --git a/azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py b/azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py new file mode 100644 index 00000000..9ada72ed --- /dev/null +++ b/azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py @@ -0,0 +1,134 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ExtensionManagementClient(Client): + """ExtensionManagement + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ExtensionManagementClient, 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 = '6c2b0933-3600-42ae-bf8b-93d4f7e83594' + + def get_installed_extensions(self, include_disabled_extensions=None, include_errors=None, asset_types=None, include_installation_issues=None): + """GetInstalledExtensions. + [Preview API] List the installed extensions in the account / project collection. + :param bool include_disabled_extensions: If true (the default), include disabled extensions in the results. + :param bool include_errors: If true, include installed extensions with errors. + :param [str] asset_types: + :param bool include_installation_issues: + :rtype: [InstalledExtension] + """ + query_parameters = {} + if include_disabled_extensions is not None: + query_parameters['includeDisabledExtensions'] = self._serialize.query('include_disabled_extensions', include_disabled_extensions, 'bool') + if include_errors is not None: + query_parameters['includeErrors'] = self._serialize.query('include_errors', include_errors, 'bool') + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + if include_installation_issues is not None: + query_parameters['includeInstallationIssues'] = self._serialize.query('include_installation_issues', include_installation_issues, 'bool') + response = self._send(http_method='GET', + location_id='275424d0-c844-4fe2-bda6-04933a1357d8', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[InstalledExtension]', self._unwrap_collection(response)) + + def update_installed_extension(self, extension): + """UpdateInstalledExtension. + [Preview API] Update an installed extension. Typically this API is used to enable or disable an extension. + :param :class:` ` extension: + :rtype: :class:` ` + """ + content = self._serialize.body(extension, 'InstalledExtension') + response = self._send(http_method='PATCH', + location_id='275424d0-c844-4fe2-bda6-04933a1357d8', + version='5.1-preview.1', + content=content) + return self._deserialize('InstalledExtension', response) + + def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None): + """GetInstalledExtensionByName. + [Preview API] Get an installed extension by its publisher and extension name. + :param str publisher_name: Name of the publisher. Example: "fabrikam". + :param str extension_name: Name of the extension. Example: "ops-tools". + :param [str] asset_types: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if asset_types is not None: + asset_types = ":".join(asset_types) + query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str') + response = self._send(http_method='GET', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('InstalledExtension', response) + + def install_extension_by_name(self, publisher_name, extension_name, version=None): + """InstallExtensionByName. + [Preview API] Install the specified extension into the account / project collection. + :param str publisher_name: Name of the publisher. Example: "fabrikam". + :param str extension_name: Name of the extension. Example: "ops-tools". + :param str version: + :rtype: :class:` ` + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='POST', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('InstalledExtension', response) + + def uninstall_extension_by_name(self, publisher_name, extension_name, reason=None, reason_code=None): + """UninstallExtensionByName. + [Preview API] Uninstall the specified extension from the account / project collection. + :param str publisher_name: Name of the publisher. Example: "fabrikam". + :param str extension_name: Name of the extension. Example: "ops-tools". + :param str reason: + :param str reason_code: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if reason is not None: + query_parameters['reason'] = self._serialize.query('reason', reason, 'str') + if reason_code is not None: + query_parameters['reasonCode'] = self._serialize.query('reason_code', reason_code, 'str') + self._send(http_method='DELETE', + location_id='fb0da285-f23e-4b56-8b53-3ef5f9f6de66', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + diff --git a/azure-devops/azure/devops/v4_0/extension_management/models.py b/azure-devops/azure/devops/v5_1/extension_management/models.py similarity index 81% rename from azure-devops/azure/devops/v4_0/extension_management/models.py rename to azure-devops/azure/devops/v5_1/extension_management/models.py index b89228ed..9eda0ff7 100644 --- a/azure-devops/azure/devops/v4_0/extension_management/models.py +++ b/azure-devops/azure/devops/v5_1/extension_management/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -19,7 +19,7 @@ class AcquisitionOperation(Model): :param reason: Optional reason to justify current state. Typically used with Disallow state. :type reason: str :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` """ _attribute_map = { @@ -61,11 +61,13 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` + :param properties: Additional properties which can be added to the request. + :type properties: :class:`object ` :param target: The target that this options refer to :type target: str """ @@ -74,14 +76,16 @@ class AcquisitionOptions(Model): 'default_operation': {'key': 'defaultOperation', 'type': 'AcquisitionOperation'}, 'item_id': {'key': 'itemId', 'type': 'str'}, 'operations': {'key': 'operations', 'type': '[AcquisitionOperation]'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'target': {'key': 'target', 'type': 'str'} } - def __init__(self, default_operation=None, item_id=None, operations=None, target=None): + def __init__(self, default_operation=None, item_id=None, operations=None, properties=None, target=None): super(AcquisitionOptions, self).__init__() self.default_operation = default_operation self.item_id = item_id self.operations = operations + self.properties = properties self.target = target @@ -114,27 +118,31 @@ class ContributionConstraint(Model): :param group: An optional property that can be specified to group constraints together. All constraints within a group are AND'd together (all must be evaluate to True in order for the contribution to be included). Different groups of constraints are OR'd (only one group needs to evaluate to True for the contribution to be included). :type group: int + :param id: Fully qualified identifier of a shared constraint + :type id: str :param inverse: If true, negate the result of the filter (include the contribution if the applied filter returns false instead of true) :type inverse: bool - :param name: Name of the IContributionFilter class + :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ _attribute_map = { 'group': {'key': 'group', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, 'inverse': {'key': 'inverse', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'object'}, 'relationships': {'key': 'relationships', 'type': '[str]'} } - def __init__(self, group=None, inverse=None, name=None, properties=None, relationships=None): + def __init__(self, group=None, id=None, inverse=None, name=None, properties=None, relationships=None): super(ContributionConstraint, self).__init__() self.group = group + self.id = id self.inverse = inverse self.name = name self.properties = properties @@ -214,7 +222,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int """ @@ -288,7 +296,7 @@ class ExtensionDataCollection(Model): :param collection_name: The name of the collection :type collection_name: str :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` + :type documents: list of :class:`object ` :param scope_type: The type of the collection's scope, such as Default or User :type scope_type: str :param scope_value: The value of the collection's scope, such as Current or Me @@ -314,7 +322,7 @@ class ExtensionDataCollectionQuery(Model): """ExtensionDataCollectionQuery. :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` + :type collections: list of :class:`ExtensionDataCollection ` """ _attribute_map = { @@ -346,19 +354,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -430,7 +438,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -447,22 +455,26 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -471,6 +483,7 @@ class ExtensionManifest(Model): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -479,13 +492,15 @@ class ExtensionManifest(Model): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None): + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None): super(ExtensionManifest, self).__init__() self.base_uri = base_uri + self.constraints = constraints self.contributions = contributions self.contribution_types = contribution_types self.demands = demands @@ -494,6 +509,7 @@ def __init__(self, base_uri=None, contributions=None, contribution_types=None, d self.language = language self.licensing = licensing self.manifest_version = manifest_version + self.restricted_to = restricted_to self.scopes = scopes self.service_instance_type = service_instance_type @@ -526,7 +542,7 @@ class ExtensionRequest(Model): :param request_date: Date at which the request was made :type request_date: datetime :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_message: Optional message supplied by the requester justifying the request :type request_message: str :param request_state: Represents the state of the request @@ -534,7 +550,7 @@ class ExtensionRequest(Model): :param resolve_date: Date at which the request was resolved :type resolve_date: datetime :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` """ _attribute_map = { @@ -563,6 +579,8 @@ class ExtensionShare(Model): :param id: :type id: str + :param is_org: + :type is_org: bool :param name: :type name: str :param type: @@ -571,13 +589,15 @@ class ExtensionShare(Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'is_org': {'key': 'isOrg', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, id=None, name=None, type=None): + def __init__(self, id=None, is_org=None, name=None, type=None): super(ExtensionShare, self).__init__() self.id = id + self.is_org = is_org self.name = name self.type = type @@ -608,11 +628,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -654,56 +674,92 @@ def __init__(self, asset_uri=None, badges=None, fallback_asset_uri=None, files=N self.version_description = version_description -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class InstallationTarget(Model): @@ -731,22 +787,26 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str + :param constraints: List of shared constraints defined by this extension + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float + :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. + :type restricted_to: list of str :param scopes: List of all oauth scopes required by this extension :type scopes: list of str :param service_instance_type: The ServiceInstanceType(Guid) of the VSTS service that must be available to an account in order for the extension to be installed @@ -756,11 +816,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -775,6 +835,7 @@ class InstalledExtension(ExtensionManifest): _attribute_map = { 'base_uri': {'key': 'baseUri', 'type': 'str'}, + 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'contributions': {'key': 'contributions', 'type': '[Contribution]'}, 'contribution_types': {'key': 'contributionTypes', 'type': '[ContributionType]'}, 'demands': {'key': 'demands', 'type': '[str]'}, @@ -783,6 +844,7 @@ class InstalledExtension(ExtensionManifest): 'language': {'key': 'language', 'type': 'str'}, 'licensing': {'key': 'licensing', 'type': 'ExtensionLicensing'}, 'manifest_version': {'key': 'manifestVersion', 'type': 'float'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'scopes': {'key': 'scopes', 'type': '[str]'}, 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, 'extension_id': {'key': 'extensionId', 'type': 'str'}, @@ -797,8 +859,8 @@ class InstalledExtension(ExtensionManifest): 'version': {'key': 'version', 'type': 'str'} } - def __init__(self, base_uri=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): - super(InstalledExtension, self).__init__(base_uri=base_uri, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, scopes=scopes, service_instance_type=service_instance_type) + def __init__(self, base_uri=None, constraints=None, contributions=None, contribution_types=None, demands=None, event_callbacks=None, fallback_base_uri=None, language=None, licensing=None, manifest_version=None, restricted_to=None, scopes=None, service_instance_type=None, extension_id=None, extension_name=None, files=None, flags=None, install_state=None, last_published=None, publisher_id=None, publisher_name=None, registration_id=None, version=None): + super(InstalledExtension, self).__init__(base_uri=base_uri, constraints=constraints, contributions=contributions, contribution_types=contribution_types, demands=demands, event_callbacks=event_callbacks, fallback_base_uri=fallback_base_uri, language=language, licensing=licensing, manifest_version=manifest_version, restricted_to=restricted_to, scopes=scopes, service_instance_type=service_instance_type) self.extension_id = extension_id self.extension_name = extension_name self.files = files @@ -817,7 +879,7 @@ class InstalledExtensionQuery(Model): :param asset_types: :type asset_types: list of str :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` + :type monikers: list of :class:`ExtensionIdentifier ` """ _attribute_map = { @@ -837,7 +899,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -915,7 +977,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -923,19 +985,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1007,13 +1069,29 @@ def __init__(self, display_name=None, flags=None, publisher_id=None, publisher_n self.publisher_name = publisher_name +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + class RequestedExtension(Model): """RequestedExtension. :param extension_name: The unique name of the extension :type extension_name: str :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` + :type extension_requests: list of :class:`ExtensionRequest ` :param publisher_display_name: DisplayName of the publisher that owns the extension being published. :type publisher_display_name: str :param publisher_name: Represents the Publisher of the requested extension @@ -1045,7 +1123,7 @@ class UserExtensionPolicy(Model): :param display_name: User display name that this policy refers to :type display_name: str :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` + :type permissions: :class:`ExtensionPolicy ` :param user_id: User id that this policy refers to :type user_id: str """ @@ -1073,11 +1151,13 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` + :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). + :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -1091,15 +1171,17 @@ class Contribution(ContributionBase): 'constraints': {'key': 'constraints', 'type': '[ContributionConstraint]'}, 'includes': {'key': 'includes', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'object'}, + 'restricted_to': {'key': 'restrictedTo', 'type': '[str]'}, 'targets': {'key': 'targets', 'type': '[str]'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, targets=None, type=None): + def __init__(self, description=None, id=None, visible_to=None, constraints=None, includes=None, properties=None, restricted_to=None, targets=None, type=None): super(Contribution, self).__init__(description=description, id=id, visible_to=visible_to) self.constraints = constraints self.includes = includes self.properties = properties + self.restricted_to = restricted_to self.targets = targets self.type = type @@ -1110,7 +1192,7 @@ class ExtensionState(InstalledExtensionState): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime :param extension_name: @@ -1165,6 +1247,7 @@ def __init__(self, flags=None, installation_issues=None, last_updated=None, exte 'ExtensionShare', 'ExtensionStatistic', 'ExtensionVersion', + 'GraphSubjectBase', 'IdentityRef', 'InstallationTarget', 'InstalledExtension', @@ -1174,6 +1257,7 @@ def __init__(self, flags=None, installation_issues=None, last_updated=None, exte 'LicensingOverride', 'PublishedExtension', 'PublisherFacts', + 'ReferenceLinks', 'RequestedExtension', 'UserExtensionPolicy', 'Contribution', diff --git a/azure-devops/azure/devops/v4_0/feature_availability/__init__.py b/azure-devops/azure/devops/v5_1/feature_availability/__init__.py similarity index 84% rename from azure-devops/azure/devops/v4_0/feature_availability/__init__.py rename to azure-devops/azure/devops/v5_1/feature_availability/__init__.py index a43f24e2..e39f1806 100644 --- a/azure-devops/azure/devops/v4_0/feature_availability/__init__.py +++ b/azure-devops/azure/devops/v5_1/feature_availability/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py b/azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py similarity index 77% rename from azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py rename to azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py index 6a062eae..7fcb390b 100644 --- a/azure-devops/azure/devops/v4_0/feature_availability/feature_availability_client.py +++ b/azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -36,31 +36,37 @@ def get_all_feature_flags(self, user_email=None): query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.0-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[FeatureFlag]', self._unwrap_collection(response)) - def get_feature_flag_by_name(self, name): + def get_feature_flag_by_name(self, name, check_feature_exists=None): """GetFeatureFlagByName. [Preview API] Retrieve information on a single feature flag and its current states :param str name: The name of the feature to retrieve - :rtype: :class:` ` + :param bool check_feature_exists: Check if feature exists + :rtype: :class:` ` """ route_values = {} if name is not None: route_values['name'] = self._serialize.url('name', name, 'str') + query_parameters = {} + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.0-preview.1', - route_values=route_values) + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('FeatureFlag', response) - def get_feature_flag_by_name_and_user_email(self, name, user_email): + def get_feature_flag_by_name_and_user_email(self, name, user_email, check_feature_exists=None): """GetFeatureFlagByNameAndUserEmail. [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_email: The email of the user to check - :rtype: :class:` ` + :param bool check_feature_exists: Check if feature exists + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -68,19 +74,22 @@ def get_feature_flag_by_name_and_user_email(self, name, user_email): query_parameters = {} if user_email is not None: query_parameters['userEmail'] = self._serialize.query('user_email', user_email, 'str') + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('FeatureFlag', response) - def get_feature_flag_by_name_and_user_id(self, name, user_id): + def get_feature_flag_by_name_and_user_id(self, name, user_id, check_feature_exists=None): """GetFeatureFlagByNameAndUserId. [Preview API] Retrieve information on a single feature flag and its current states for a user :param str name: The name of the feature to retrieve :param str user_id: The id of the user to check - :rtype: :class:` ` + :param bool check_feature_exists: Check if feature exists + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -88,9 +97,11 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): query_parameters = {} if user_id is not None: query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') + if check_feature_exists is not None: + query_parameters['checkFeatureExists'] = self._serialize.query('check_feature_exists', check_feature_exists, 'bool') response = self._send(http_method='GET', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('FeatureFlag', response) @@ -98,12 +109,12 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id): def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): """UpdateFeatureFlag. [Preview API] Change the state of an individual feature flag for a name - :param :class:` ` state: State that should be set + :param :class:` ` state: State that should be set :param str name: The name of the feature to change :param str user_email: :param bool check_feature_exists: Checks if the feature exists before setting the state :param bool set_at_application_level_also: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -118,7 +129,7 @@ def update_feature_flag(self, state, name, user_email=None, check_feature_exists content = self._serialize.body(state, 'FeatureFlagPatch') response = self._send(http_method='PATCH', location_id='3e2b80f8-9e6f-441e-8393-005610692d9c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) diff --git a/azure-devops/azure/devops/v4_0/feature_availability/models.py b/azure-devops/azure/devops/v5_1/feature_availability/models.py similarity index 94% rename from azure-devops/azure/devops/v4_0/feature_availability/models.py rename to azure-devops/azure/devops/v5_1/feature_availability/models.py index 72e9d3ab..6e0534c8 100644 --- a/azure-devops/azure/devops/v4_0/feature_availability/models.py +++ b/azure-devops/azure/devops/v5_1/feature_availability/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/feature_management/__init__.py b/azure-devops/azure/devops/v5_1/feature_management/__init__.py similarity index 79% rename from azure-devops/azure/devops/v4_0/feature_management/__init__.py rename to azure-devops/azure/devops/v5_1/feature_management/__init__.py index f6c045d3..732260e9 100644 --- a/azure-devops/azure/devops/v4_0/feature_management/__init__.py +++ b/azure-devops/azure/devops/v5_1/feature_management/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -10,6 +10,8 @@ __all__ = [ 'ContributedFeature', + 'ContributedFeatureHandlerSettings', + 'ContributedFeatureListener', 'ContributedFeatureSettingScope', 'ContributedFeatureState', 'ContributedFeatureStateQuery', diff --git a/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py b/azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py similarity index 89% rename from azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py rename to azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py index 4dfe2688..72d49b36 100644 --- a/azure-devops/azure/devops/v4_0/feature_management/feature_management_client.py +++ b/azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -29,14 +29,14 @@ def get_feature(self, feature_id): """GetFeature. [Preview API] Get a specific feature by its id :param str feature_id: The contribution id of the feature - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: route_values['featureId'] = self._serialize.url('feature_id', feature_id, 'str') response = self._send(http_method='GET', location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ContributedFeature', response) @@ -51,7 +51,7 @@ def get_features(self, target_contribution_id=None): query_parameters['targetContributionId'] = self._serialize.query('target_contribution_id', target_contribution_id, 'str') response = self._send(http_method='GET', location_id='c4209f25-7a27-41dd-9f04-06080c7b6afd', - version='4.0-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[ContributedFeature]', self._unwrap_collection(response)) @@ -60,7 +60,7 @@ def get_feature_state(self, feature_id, user_scope): [Preview API] Get the state of the specified feature for the given user/all-users scope :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -69,19 +69,19 @@ def get_feature_state(self, feature_id, user_scope): route_values['userScope'] = self._serialize.url('user_scope', user_scope, 'str') response = self._send(http_method='GET', location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ContributedFeatureState', response) def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): """SetFeatureState. [Preview API] Set the state of a feature - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -96,7 +96,7 @@ def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason content = self._serialize.body(feature, 'ContributedFeatureState') response = self._send(http_method='PATCH', location_id='98911314-3f9b-4eaf-80e8-83900d8e85d9', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -109,7 +109,7 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -122,21 +122,21 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str') response = self._send(http_method='GET', location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ContributedFeatureState', response) def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): """SetFeatureStateForScope. [Preview API] Set the state of a feature at a specific scope - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -155,7 +155,7 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam content = self._serialize.body(feature, 'ContributedFeatureState') response = self._send(http_method='PATCH', location_id='dd291e43-aa9f-4cee-8465-a93c78e414a4', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -164,22 +164,22 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam def query_feature_states(self, query): """QueryFeatureStates. [Preview API] Get the effective state for a list of feature ids - :param :class:` ` query: Features to query along with current scope values - :rtype: :class:` ` + :param :class:` ` query: Features to query along with current scope values + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', location_id='2b4486ad-122b-400c-ae65-17b6672c1f9d', - version='4.0-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('ContributedFeatureStateQuery', response) def query_feature_states_for_default_scope(self, query, user_scope): """QueryFeatureStatesForDefaultScope. [Preview API] Get the states of the specified features for the default scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -187,7 +187,7 @@ def query_feature_states_for_default_scope(self, query, user_scope): content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', location_id='3f810f28-03e2-4239-b0bc-788add3005e5', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('ContributedFeatureStateQuery', response) @@ -195,11 +195,11 @@ def query_feature_states_for_default_scope(self, query, user_scope): def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): """QueryFeatureStatesForNamedScope. [Preview API] Get the states of the specified features for the specific named scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: :param str scope_name: :param str scope_value: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -211,7 +211,7 @@ def query_feature_states_for_named_scope(self, query, user_scope, scope_name, sc content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', location_id='f29e997b-c2da-4d15-8380-765788a1a74c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('ContributedFeatureStateQuery', response) diff --git a/azure-devops/azure/devops/v4_0/feature_management/models.py b/azure-devops/azure/devops/v5_1/feature_management/models.py similarity index 61% rename from azure-devops/azure/devops/v4_0/feature_management/models.py rename to azure-devops/azure/devops/v5_1/feature_management/models.py index 081d7a1e..09e7cf03 100644 --- a/azure-devops/azure/devops/v4_0/feature_management/models.py +++ b/azure-devops/azure/devops/v5_1/feature_management/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -13,23 +13,33 @@ class ContributedFeature(Model): """ContributedFeature. :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_state: If true, the feature is enabled unless overridden at some scope :type default_state: bool :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` :param description: The description of the feature :type description: str + :param feature_properties: Extra properties for the feature + :type feature_properties: dict + :param feature_state_changed_listeners: Handler for listening to setter calls on feature value. These listeners are only invoked after a successful set has occured + :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` :param id: The full contribution id of the feature :type id: str + :param include_as_claim: If this is set to true, then the id for this feature will be added to the list of claims for the request. + :type include_as_claim: bool :param name: The friendly name of the feature :type name: str + :param order: Suggested order to display feature in. + :type order: int :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` + :type override_rules: list of :class:`ContributedFeatureValueRule ` :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` + :type scopes: list of :class:`ContributedFeatureSettingScope ` :param service_instance_type: The service instance id of the service that owns this feature :type service_instance_type: str + :param tags: Tags associated with the feature. + :type tags: list of str """ _attribute_map = { @@ -37,24 +47,72 @@ class ContributedFeature(Model): 'default_state': {'key': 'defaultState', 'type': 'bool'}, 'default_value_rules': {'key': 'defaultValueRules', 'type': '[ContributedFeatureValueRule]'}, 'description': {'key': 'description', 'type': 'str'}, + 'feature_properties': {'key': 'featureProperties', 'type': '{object}'}, + 'feature_state_changed_listeners': {'key': 'featureStateChangedListeners', 'type': '[ContributedFeatureListener]'}, 'id': {'key': 'id', 'type': 'str'}, + 'include_as_claim': {'key': 'includeAsClaim', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, 'override_rules': {'key': 'overrideRules', 'type': '[ContributedFeatureValueRule]'}, 'scopes': {'key': 'scopes', 'type': '[ContributedFeatureSettingScope]'}, - 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'} + 'service_instance_type': {'key': 'serviceInstanceType', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'} } - def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, id=None, name=None, override_rules=None, scopes=None, service_instance_type=None): + def __init__(self, _links=None, default_state=None, default_value_rules=None, description=None, feature_properties=None, feature_state_changed_listeners=None, id=None, include_as_claim=None, name=None, order=None, override_rules=None, scopes=None, service_instance_type=None, tags=None): super(ContributedFeature, self).__init__() self._links = _links self.default_state = default_state self.default_value_rules = default_value_rules self.description = description + self.feature_properties = feature_properties + self.feature_state_changed_listeners = feature_state_changed_listeners self.id = id + self.include_as_claim = include_as_claim self.name = name + self.order = order self.override_rules = override_rules self.scopes = scopes self.service_instance_type = service_instance_type + self.tags = tags + + +class ContributedFeatureHandlerSettings(Model): + """ContributedFeatureHandlerSettings. + + :param name: Name of the handler to run + :type name: str + :param properties: Properties to feed to the handler + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'} + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureHandlerSettings, self).__init__() + self.name = name + self.properties = properties + + +class ContributedFeatureListener(ContributedFeatureHandlerSettings): + """ContributedFeatureListener. + + :param name: Name of the handler to run + :type name: str + :param properties: Properties to feed to the handler + :type properties: dict + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__(self, name=None, properties=None): + super(ContributedFeatureListener, self).__init__(name=name, properties=properties) class ContributedFeatureSettingScope(Model): @@ -82,21 +140,29 @@ class ContributedFeatureState(Model): :param feature_id: The full contribution id of the feature :type feature_id: str + :param overridden: True if the effective state was set by an override rule (indicating that the state cannot be managed by the end user) + :type overridden: bool + :param reason: Reason that the state was set (by a plugin/rule). + :type reason: str :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` + :type scope: :class:`ContributedFeatureSettingScope ` :param state: The current state of this feature :type state: object """ _attribute_map = { 'feature_id': {'key': 'featureId', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, 'scope': {'key': 'scope', 'type': 'ContributedFeatureSettingScope'}, 'state': {'key': 'state', 'type': 'object'} } - def __init__(self, feature_id=None, scope=None, state=None): + def __init__(self, feature_id=None, overridden=None, reason=None, scope=None, state=None): super(ContributedFeatureState, self).__init__() self.feature_id = feature_id + self.overridden = overridden + self.reason = reason self.scope = scope self.state = state @@ -125,24 +191,22 @@ def __init__(self, feature_ids=None, feature_states=None, scope_values=None): self.scope_values = scope_values -class ContributedFeatureValueRule(Model): +class ContributedFeatureValueRule(ContributedFeatureHandlerSettings): """ContributedFeatureValueRule. - :param name: Name of the IContributedFeatureValuePlugin to run + :param name: Name of the handler to run :type name: str - :param properties: Properties to feed to the IContributedFeatureValuePlugin + :param properties: Properties to feed to the handler :type properties: dict """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'} + 'properties': {'key': 'properties', 'type': '{object}'}, } def __init__(self, name=None, properties=None): - super(ContributedFeatureValueRule, self).__init__() - self.name = name - self.properties = properties + super(ContributedFeatureValueRule, self).__init__(name=name, properties=properties) class ReferenceLinks(Model): @@ -163,6 +227,8 @@ def __init__(self, links=None): __all__ = [ 'ContributedFeature', + 'ContributedFeatureHandlerSettings', + 'ContributedFeatureListener', 'ContributedFeatureSettingScope', 'ContributedFeatureState', 'ContributedFeatureStateQuery', diff --git a/azure-devops/azure/devops/v4_1/feed/__init__.py b/azure-devops/azure/devops/v5_1/feed/__init__.py similarity index 83% rename from azure-devops/azure/devops/v4_1/feed/__init__.py rename to azure-devops/azure/devops/v5_1/feed/__init__.py index 59412260..26388b90 100644 --- a/azure-devops/azure/devops/v4_1/feed/__init__.py +++ b/azure-devops/azure/devops/v5_1/feed/__init__.py @@ -10,6 +10,8 @@ __all__ = [ 'Feed', + 'FeedBatchData', + 'FeedBatchOperationData', 'FeedChange', 'FeedChangesResponse', 'FeedCore', @@ -25,9 +27,15 @@ 'PackageChangesResponse', 'PackageDependency', 'PackageFile', + 'PackageMetrics', + 'PackageMetricsQuery', 'PackageVersion', 'PackageVersionChange', + 'PackageVersionMetrics', + 'PackageVersionMetricsQuery', + 'PackageVersionProvenance', 'ProtocolMetadata', + 'Provenance', 'RecycleBinPackageVersion', 'ReferenceLinks', 'UpstreamSource', diff --git a/azure-devops/azure/devops/v5_1/feed/feed_client.py b/azure-devops/azure/devops/v5_1/feed/feed_client.py new file mode 100644 index 00000000..9cb0a600 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/feed/feed_client.py @@ -0,0 +1,712 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class FeedClient(Client): + """Feed + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeedClient, 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 = '7ab4e64e-c4d8-4f50-ae73-5ef2e21642a5' + + def get_badge(self, feed_id, package_id): + """GetBadge. + [Preview API] Generate a SVG badge for the latest version of a package. The generated SVG is typically used as the image in an HTML link which takes users to the feed containing the package to accelerate discovery and consumption. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). + :rtype: str + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + response = self._send(http_method='GET', + location_id='61d885fd-10f3-4a55-82b6-476d866b673f', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('str', response) + + def get_feed_change(self, feed_id): + """GetFeedChange. + [Preview API] Query a feed to determine its current state. + :param str feed_id: Name or ID of the feed. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + response = self._send(http_method='GET', + location_id='29ba2dad-389a-4661-b5d3-de76397ca05b', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('FeedChange', response) + + def get_feed_changes(self, include_deleted=None, continuation_token=None, batch_size=None): + """GetFeedChanges. + [Preview API] Query to determine which feeds have changed since the last call, tracked through the provided continuationToken. Only changes to a feed itself are returned and impact the continuationToken, not additions or alterations to packages within the feeds. + :param bool include_deleted: If true, get changes for all feeds including deleted feeds. The default value is false. + :param long continuation_token: A continuation token which acts as a bookmark to a previously retrieved change. This token allows the user to continue retrieving changes in batches, picking up where the previous batch left off. If specified, all the changes that occur strictly after the token will be returned. If not specified or 0, iteration will start with the first change. + :param int batch_size: Number of package changes to fetch. The default value is 1000. The maximum value is 2000. + :rtype: :class:` ` + """ + query_parameters = {} + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'long') + if batch_size is not None: + query_parameters['batchSize'] = self._serialize.query('batch_size', batch_size, 'int') + response = self._send(http_method='GET', + location_id='29ba2dad-389a-4661-b5d3-de76397ca05b', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('FeedChangesResponse', response) + + def create_feed(self, feed): + """CreateFeed. + [Preview API] Create a feed, a container for various package types. + :param :class:` ` feed: A JSON object containing both required and optional attributes for the feed. Name is the only required value. + :rtype: :class:` ` + """ + content = self._serialize.body(feed, 'Feed') + response = self._send(http_method='POST', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='5.1-preview.1', + content=content) + return self._deserialize('Feed', response) + + def delete_feed(self, feed_id): + """DeleteFeed. + [Preview API] Remove a feed and all its packages. The action does not result in packages moving to the RecycleBin and is not reversible. + :param str feed_id: Name or Id of the feed. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + self._send(http_method='DELETE', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='5.1-preview.1', + route_values=route_values) + + def get_feed(self, feed_id, include_deleted_upstreams=None): + """GetFeed. + [Preview API] Get the settings for a specific feed. + :param str feed_id: Name or Id of the feed. + :param bool include_deleted_upstreams: Include upstreams that have been deleted in the response. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if include_deleted_upstreams is not None: + query_parameters['includeDeletedUpstreams'] = self._serialize.query('include_deleted_upstreams', include_deleted_upstreams, 'bool') + response = self._send(http_method='GET', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Feed', response) + + def get_feeds(self, feed_role=None, include_deleted_upstreams=None): + """GetFeeds. + [Preview API] Get all feeds in an account where you have the provided role access. + :param str feed_role: Filter by this role, either Administrator(4), Contributor(3), or Reader(2) level permissions. + :param bool include_deleted_upstreams: Include upstreams that have been deleted in the response. + :rtype: [Feed] + """ + query_parameters = {} + if feed_role is not None: + query_parameters['feedRole'] = self._serialize.query('feed_role', feed_role, 'str') + if include_deleted_upstreams is not None: + query_parameters['includeDeletedUpstreams'] = self._serialize.query('include_deleted_upstreams', include_deleted_upstreams, 'bool') + response = self._send(http_method='GET', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[Feed]', self._unwrap_collection(response)) + + def update_feed(self, feed, feed_id): + """UpdateFeed. + [Preview API] Change the attributes of a feed. + :param :class:` ` feed: A JSON object containing the feed settings to be updated. + :param str feed_id: Name or Id of the feed. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(feed, 'FeedUpdate') + response = self._send(http_method='PATCH', + location_id='c65009a7-474a-4ad1-8b42-7d852107ef8c', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Feed', response) + + def get_global_permissions(self): + """GetGlobalPermissions. + [Preview API] Get all service-wide feed creation and administration permissions. + :rtype: [GlobalPermission] + """ + response = self._send(http_method='GET', + location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', + version='5.1-preview.1') + return self._deserialize('[GlobalPermission]', self._unwrap_collection(response)) + + def set_global_permissions(self, global_permissions): + """SetGlobalPermissions. + [Preview API] Set service-wide permissions that govern feed creation and administration. + :param [GlobalPermission] global_permissions: New permissions for the organization. + :rtype: [GlobalPermission] + """ + content = self._serialize.body(global_permissions, '[GlobalPermission]') + response = self._send(http_method='PATCH', + location_id='a74419ef-b477-43df-8758-3cd1cd5f56c6', + version='5.1-preview.1', + content=content) + return self._deserialize('[GlobalPermission]', self._unwrap_collection(response)) + + def get_package_changes(self, feed_id, continuation_token=None, batch_size=None): + """GetPackageChanges. + [Preview API] Get a batch of package changes made to a feed. The changes returned are 'most recent change' so if an Add is followed by an Update before you begin enumerating, you'll only see one change in the batch. While consuming batches using the continuation token, you may see changes to the same package version multiple times if they are happening as you enumerate. + :param str feed_id: Name or Id of the feed. + :param long continuation_token: A continuation token which acts as a bookmark to a previously retrieved change. This token allows the user to continue retrieving changes in batches, picking up where the previous batch left off. If specified, all the changes that occur strictly after the token will be returned. If not specified or 0, iteration will start with the first change. + :param int batch_size: Number of package changes to fetch. The default value is 1000. The maximum value is 2000. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'long') + if batch_size is not None: + query_parameters['batchSize'] = self._serialize.query('batch_size', batch_size, 'int') + response = self._send(http_method='GET', + location_id='323a0631-d083-4005-85ae-035114dfb681', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PackageChangesResponse', response) + + def query_package_metrics(self, package_id_query, feed_id): + """QueryPackageMetrics. + [Preview API] + :param :class:` ` package_id_query: + :param str feed_id: + :rtype: [PackageMetrics] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(package_id_query, 'PackageMetricsQuery') + response = self._send(http_method='POST', + location_id='bddc9b3c-8a59-4a9f-9b40-ee1dcaa2cc0d', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[PackageMetrics]', self._unwrap_collection(response)) + + def get_package(self, feed_id, package_id, include_all_versions=None, include_urls=None, is_listed=None, is_release=None, include_deleted=None, include_description=None): + """GetPackage. + [Preview API] Get details about a specific package. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param bool include_all_versions: True to return all versions of the package in the response. Default is false (latest version only). + :param bool include_urls: True to return REST Urls with the response. Default is True. + :param bool is_listed: Only applicable for NuGet packages, setting it for other package types will result in a 404. If false, delisted package versions will be returned. Use this to filter the response when includeAllVersions is set to true. Default is unset (do not return delisted packages). + :param bool is_release: Only applicable for Nuget packages. Use this to filter the response when includeAllVersions is set to true. Default is True (only return packages without prerelease versioning). + :param bool include_deleted: Return deleted or unpublished versions of packages in the response. Default is False. + :param bool include_description: Return the description for every version of each package in the response. Default is False. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_all_versions is not None: + query_parameters['includeAllVersions'] = self._serialize.query('include_all_versions', include_all_versions, 'bool') + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if is_release is not None: + query_parameters['isRelease'] = self._serialize.query('is_release', is_release, 'bool') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_description is not None: + query_parameters['includeDescription'] = self._serialize.query('include_description', include_description, 'bool') + response = self._send(http_method='GET', + location_id='7a20d846-c929-4acc-9ea2-0d5a7df1b197', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def get_packages(self, feed_id, protocol_type=None, package_name_query=None, normalized_package_name=None, include_urls=None, include_all_versions=None, is_listed=None, get_top_package_versions=None, is_release=None, include_description=None, top=None, skip=None, include_deleted=None, is_cached=None, direct_upstream_id=None): + """GetPackages. + [Preview API] Get details about all of the packages in the feed. Use the various filters to include or exclude information from the result set. + :param str feed_id: Name or Id of the feed. + :param str protocol_type: One of the supported artifact package types. + :param str package_name_query: Filter to packages that contain the provided string. Characters in the string must conform to the package name constraints. + :param str normalized_package_name: [Obsolete] Used for legacy scenarios and may be removed in future versions. + :param bool include_urls: True to return REST Urls with the response. Default is True. + :param bool include_all_versions: True to return all versions of the package in the response. Default is false (latest version only). + :param bool is_listed: Only applicable for NuGet packages, setting it for other package types will result in a 404. If false, delisted package versions will be returned. Use this to filter the response when includeAllVersions is set to true. Default is unset (do not return delisted packages). + :param bool get_top_package_versions: Changes the behavior of $top and $skip to return all versions of each package up to $top. Must be used in conjunction with includeAllVersions=true + :param bool is_release: Only applicable for Nuget packages. Use this to filter the response when includeAllVersions is set to true. Default is True (only return packages without prerelease versioning). + :param bool include_description: Return the description for every version of each package in the response. Default is False. + :param int top: Get the top N packages (or package versions where getTopPackageVersions=true) + :param int skip: Skip the first N packages (or package versions where getTopPackageVersions=true) + :param bool include_deleted: Return deleted or unpublished versions of packages in the response. Default is False. + :param bool is_cached: [Obsolete] Used for legacy scenarios and may be removed in future versions. + :param str direct_upstream_id: Filter results to return packages from a specific upstream. + :rtype: [Package] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if protocol_type is not None: + query_parameters['protocolType'] = self._serialize.query('protocol_type', protocol_type, 'str') + if package_name_query is not None: + query_parameters['packageNameQuery'] = self._serialize.query('package_name_query', package_name_query, 'str') + if normalized_package_name is not None: + query_parameters['normalizedPackageName'] = self._serialize.query('normalized_package_name', normalized_package_name, 'str') + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if include_all_versions is not None: + query_parameters['includeAllVersions'] = self._serialize.query('include_all_versions', include_all_versions, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if get_top_package_versions is not None: + query_parameters['getTopPackageVersions'] = self._serialize.query('get_top_package_versions', get_top_package_versions, 'bool') + if is_release is not None: + query_parameters['isRelease'] = self._serialize.query('is_release', is_release, 'bool') + if include_description is not None: + query_parameters['includeDescription'] = self._serialize.query('include_description', include_description, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if is_cached is not None: + query_parameters['isCached'] = self._serialize.query('is_cached', is_cached, 'bool') + if direct_upstream_id is not None: + query_parameters['directUpstreamId'] = self._serialize.query('direct_upstream_id', direct_upstream_id, 'str') + response = self._send(http_method='GET', + location_id='7a20d846-c929-4acc-9ea2-0d5a7df1b197', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Package]', self._unwrap_collection(response)) + + def get_feed_permissions(self, feed_id, include_ids=None, exclude_inherited_permissions=None, identity_descriptor=None): + """GetFeedPermissions. + [Preview API] Get the permissions for a feed. + :param str feed_id: Name or Id of the feed. + :param bool include_ids: True to include user Ids in the response. Default is false. + :param bool exclude_inherited_permissions: True to only return explicitly set permissions on the feed. Default is false. + :param str identity_descriptor: Filter permissions to the provided identity. + :rtype: [FeedPermission] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if include_ids is not None: + query_parameters['includeIds'] = self._serialize.query('include_ids', include_ids, 'bool') + if exclude_inherited_permissions is not None: + query_parameters['excludeInheritedPermissions'] = self._serialize.query('exclude_inherited_permissions', exclude_inherited_permissions, 'bool') + if identity_descriptor is not None: + query_parameters['identityDescriptor'] = self._serialize.query('identity_descriptor', identity_descriptor, 'str') + response = self._send(http_method='GET', + location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[FeedPermission]', self._unwrap_collection(response)) + + def set_feed_permissions(self, feed_permission, feed_id): + """SetFeedPermissions. + [Preview API] Update the permissions on a feed. + :param [FeedPermission] feed_permission: Permissions to set. + :param str feed_id: Name or Id of the feed. + :rtype: [FeedPermission] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(feed_permission, '[FeedPermission]') + response = self._send(http_method='PATCH', + location_id='be8c1476-86a7-44ed-b19d-aec0e9275cd8', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[FeedPermission]', self._unwrap_collection(response)) + + def get_package_version_provenance(self, feed_id, package_id, package_version_id): + """GetPackageVersionProvenance. + [Preview API] Gets provenance for a package version. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). + :param str package_version_id: Id of the package version (GUID Id, not name). + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + if package_version_id is not None: + route_values['packageVersionId'] = self._serialize.url('package_version_id', package_version_id, 'str') + response = self._send(http_method='GET', + location_id='0aaeabd4-85cd-4686-8a77-8d31c15690b8', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('PackageVersionProvenance', response) + + def get_recycle_bin_package(self, feed_id, package_id, include_urls=None): + """GetRecycleBinPackage. + [Preview API] Get information about a package and all its versions within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param bool include_urls: True to return REST Urls with the response. Default is True. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + response = self._send(http_method='GET', + location_id='2704e72c-f541-4141-99be-2004b50b05fa', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def get_recycle_bin_packages(self, feed_id, protocol_type=None, package_name_query=None, include_urls=None, top=None, skip=None, include_all_versions=None): + """GetRecycleBinPackages. + [Preview API] Query for packages within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str protocol_type: Type of package (e.g. NuGet, npm, ...). + :param str package_name_query: Filter to packages matching this name. + :param bool include_urls: True to return REST Urls with the response. Default is True. + :param int top: Get the top N packages. + :param int skip: Skip the first N packages. + :param bool include_all_versions: True to return all versions of the package in the response. Default is false (latest version only). + :rtype: [Package] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + query_parameters = {} + if protocol_type is not None: + query_parameters['protocolType'] = self._serialize.query('protocol_type', protocol_type, 'str') + if package_name_query is not None: + query_parameters['packageNameQuery'] = self._serialize.query('package_name_query', package_name_query, 'str') + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if include_all_versions is not None: + query_parameters['includeAllVersions'] = self._serialize.query('include_all_versions', include_all_versions, 'bool') + response = self._send(http_method='GET', + location_id='2704e72c-f541-4141-99be-2004b50b05fa', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Package]', self._unwrap_collection(response)) + + def get_recycle_bin_package_version(self, feed_id, package_id, package_version_id, include_urls=None): + """GetRecycleBinPackageVersion. + [Preview API] Get information about a package version within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param str package_version_id: The package version Id 9guid Id, not the version string). + :param bool include_urls: True to return REST Urls with the response. Default is True. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + if package_version_id is not None: + route_values['packageVersionId'] = self._serialize.url('package_version_id', package_version_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + response = self._send(http_method='GET', + location_id='aceb4be7-8737-4820-834c-4c549e10fdc7', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('RecycleBinPackageVersion', response) + + def get_recycle_bin_package_versions(self, feed_id, package_id, include_urls=None): + """GetRecycleBinPackageVersions. + [Preview API] Get a list of package versions within the recycle bin. + :param str feed_id: Name or Id of the feed. + :param str package_id: The package Id (GUID Id, not the package name). + :param bool include_urls: True to return REST Urls with the response. Default is True. + :rtype: [RecycleBinPackageVersion] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + response = self._send(http_method='GET', + location_id='aceb4be7-8737-4820-834c-4c549e10fdc7', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[RecycleBinPackageVersion]', self._unwrap_collection(response)) + + def delete_feed_retention_policies(self, feed_id): + """DeleteFeedRetentionPolicies. + [Preview API] Delete the retention policy for a feed. + :param str feed_id: Name or ID of the feed. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + self._send(http_method='DELETE', + location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', + version='5.1-preview.1', + route_values=route_values) + + def get_feed_retention_policies(self, feed_id): + """GetFeedRetentionPolicies. + [Preview API] Get the retention policy for a feed. + :param str feed_id: Name or ID of the feed. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + response = self._send(http_method='GET', + location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('FeedRetentionPolicy', response) + + def set_feed_retention_policies(self, policy, feed_id): + """SetFeedRetentionPolicies. + [Preview API] Set the retention policy for a feed. + :param :class:` ` policy: Feed retention policy. + :param str feed_id: Name or ID of the feed. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(policy, 'FeedRetentionPolicy') + response = self._send(http_method='PUT', + location_id='ed52a011-0112-45b5-9f9e-e14efffb3193', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FeedRetentionPolicy', response) + + def query_package_version_metrics(self, package_version_id_query, feed_id, package_id): + """QueryPackageVersionMetrics. + [Preview API] + :param :class:` ` package_version_id_query: + :param str feed_id: + :param str package_id: + :rtype: [PackageVersionMetrics] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + content = self._serialize.body(package_version_id_query, 'PackageVersionMetricsQuery') + response = self._send(http_method='POST', + location_id='e6ae8caa-b6a8-4809-b840-91b2a42c19ad', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[PackageVersionMetrics]', self._unwrap_collection(response)) + + def get_package_version(self, feed_id, package_id, package_version_id, include_urls=None, is_listed=None, is_deleted=None): + """GetPackageVersion. + [Preview API] Get details about a specific package version. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). + :param str package_version_id: Id of the package version (GUID Id, not name). + :param bool include_urls: True to include urls for each version. Default is true. + :param bool is_listed: Only applicable for NuGet packages. If false, delisted package versions will be returned. + :param bool is_deleted: Return deleted or unpublished versions of packages in the response. Default is unset (do not return deleted versions). + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + if package_version_id is not None: + route_values['packageVersionId'] = self._serialize.url('package_version_id', package_version_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='3b331909-6a86-44cc-b9ec-c1834c35498f', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('PackageVersion', response) + + def get_package_versions(self, feed_id, package_id, include_urls=None, is_listed=None, is_deleted=None): + """GetPackageVersions. + [Preview API] Get a list of package versions, optionally filtering by state. + :param str feed_id: Name or Id of the feed. + :param str package_id: Id of the package (GUID Id, not name). + :param bool include_urls: True to include urls for each version. Default is true. + :param bool is_listed: Only applicable for NuGet packages. If false, delisted package versions will be returned. + :param bool is_deleted: Return deleted or unpublished versions of packages in the response. Default is unset (do not return deleted versions). + :rtype: [PackageVersion] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_id is not None: + route_values['packageId'] = self._serialize.url('package_id', package_id, 'str') + query_parameters = {} + if include_urls is not None: + query_parameters['includeUrls'] = self._serialize.query('include_urls', include_urls, 'bool') + if is_listed is not None: + query_parameters['isListed'] = self._serialize.query('is_listed', is_listed, 'bool') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='3b331909-6a86-44cc-b9ec-c1834c35498f', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[PackageVersion]', self._unwrap_collection(response)) + + def create_feed_view(self, view, feed_id): + """CreateFeedView. + [Preview API] Create a new view on the referenced feed. + :param :class:` ` view: View to be created. + :param str feed_id: Name or Id of the feed. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(view, 'FeedView') + response = self._send(http_method='POST', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FeedView', response) + + def delete_feed_view(self, feed_id, view_id): + """DeleteFeedView. + [Preview API] Delete a feed view. + :param str feed_id: Name or Id of the feed. + :param str view_id: Name or Id of the view. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if view_id is not None: + route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') + self._send(http_method='DELETE', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='5.1-preview.1', + route_values=route_values) + + def get_feed_view(self, feed_id, view_id): + """GetFeedView. + [Preview API] Get a view by Id. + :param str feed_id: Name or Id of the feed. + :param str view_id: Name or Id of the view. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if view_id is not None: + route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') + response = self._send(http_method='GET', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('FeedView', response) + + def get_feed_views(self, feed_id): + """GetFeedViews. + [Preview API] Get all views for a feed. + :param str feed_id: Name or Id of the feed. + :rtype: [FeedView] + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + response = self._send(http_method='GET', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[FeedView]', self._unwrap_collection(response)) + + def update_feed_view(self, view, feed_id, view_id): + """UpdateFeedView. + [Preview API] Update a view. + :param :class:` ` view: New settings to apply to the specified view. + :param str feed_id: Name or Id of the feed. + :param str view_id: Name or Id of the view. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if view_id is not None: + route_values['viewId'] = self._serialize.url('view_id', view_id, 'str') + content = self._serialize.body(view, 'FeedView') + response = self._send(http_method='PATCH', + location_id='42a8502a-6785-41bc-8c16-89477d930877', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FeedView', response) + diff --git a/azure-devops/azure/devops/v5_1/feed/models.py b/azure-devops/azure/devops/v5_1/feed/models.py new file mode 100644 index 00000000..96668519 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/feed/models.py @@ -0,0 +1,1103 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class FeedBatchData(Model): + """FeedBatchData. + + :param data: + :type data: :class:`FeedBatchOperationData ` + :param operation: + :type operation: object + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'FeedBatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'} + } + + def __init__(self, data=None, operation=None): + super(FeedBatchData, self).__init__() + self.data = data + self.operation = operation + + +class FeedBatchOperationData(Model): + """FeedBatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(FeedBatchOperationData, self).__init__() + + +class FeedChange(Model): + """FeedChange. + + :param change_type: The type of operation. + :type change_type: object + :param feed: The state of the feed after a after a create, update, or delete operation completed. + :type feed: :class:`Feed ` + :param feed_continuation_token: A token that identifies the next change in the log of changes. + :type feed_continuation_token: long + :param latest_package_continuation_token: A token that identifies the latest package change for this feed. This can be used to quickly determine if there have been any changes to packages in a specific feed. + :type latest_package_continuation_token: long + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'feed': {'key': 'feed', 'type': 'Feed'}, + 'feed_continuation_token': {'key': 'feedContinuationToken', 'type': 'long'}, + 'latest_package_continuation_token': {'key': 'latestPackageContinuationToken', 'type': 'long'} + } + + def __init__(self, change_type=None, feed=None, feed_continuation_token=None, latest_package_continuation_token=None): + super(FeedChange, self).__init__() + self.change_type = change_type + self.feed = feed + self.feed_continuation_token = feed_continuation_token + self.latest_package_continuation_token = latest_package_continuation_token + + +class FeedChangesResponse(Model): + """FeedChangesResponse. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param count: The number of changes in this set. + :type count: int + :param feed_changes: A container that encapsulates the state of the feed after a create, update, or delete. + :type feed_changes: list of :class:`FeedChange ` + :param next_feed_continuation_token: When iterating through the log of changes this value indicates the value that should be used for the next continuation token. + :type next_feed_continuation_token: long + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'count': {'key': 'count', 'type': 'int'}, + 'feed_changes': {'key': 'feedChanges', 'type': '[FeedChange]'}, + 'next_feed_continuation_token': {'key': 'nextFeedContinuationToken', 'type': 'long'} + } + + def __init__(self, _links=None, count=None, feed_changes=None, next_feed_continuation_token=None): + super(FeedChangesResponse, self).__init__() + self._links = _links + self.count = count + self.feed_changes = feed_changes + self.next_feed_continuation_token = next_feed_continuation_token + + +class FeedCore(Model): + """FeedCore. + + :param allow_upstream_name_conflict: OBSOLETE: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param capabilities: Supported capabilities of a feed. + :type capabilities: object + :param fully_qualified_id: This will either be the feed GUID or the feed GUID and view GUID depending on how the feed was accessed. + :type fully_qualified_id: str + :param fully_qualified_name: Full name of the view, in feed@view format. + :type fully_qualified_name: str + :param id: A GUID that uniquely identifies this feed. + :type id: str + :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. + :type is_read_only: bool + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :type name: str + :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. + :type upstream_enabled: bool + :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: Definition of the view. + :type view: :class:`FeedView ` + :param view_id: View Id. + :type view_id: str + :param view_name: View name. + :type view_name: str + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'capabilities': {'key': 'capabilities', 'type': 'object'}, + 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, + 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, + 'view': {'key': 'view', 'type': 'FeedView'}, + 'view_id': {'key': 'viewId', 'type': 'str'}, + 'view_name': {'key': 'viewName', 'type': 'str'} + } + + def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None): + super(FeedCore, self).__init__() + self.allow_upstream_name_conflict = allow_upstream_name_conflict + self.capabilities = capabilities + self.fully_qualified_id = fully_qualified_id + self.fully_qualified_name = fully_qualified_name + self.id = id + self.is_read_only = is_read_only + self.name = name + self.upstream_enabled = upstream_enabled + self.upstream_sources = upstream_sources + self.view = view + self.view_id = view_id + self.view_name = view_name + + +class FeedPermission(Model): + """FeedPermission. + + :param display_name: Display name for the identity. + :type display_name: str + :param identity_descriptor: Identity associated with this role. + :type identity_descriptor: :class:`str ` + :param identity_id: Id of the identity associated with this role. + :type identity_id: str + :param role: The role for this identity on a feed. + :type role: object + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'object'} + } + + def __init__(self, display_name=None, identity_descriptor=None, identity_id=None, role=None): + super(FeedPermission, self).__init__() + self.display_name = display_name + self.identity_descriptor = identity_descriptor + self.identity_id = identity_id + self.role = role + + +class FeedRetentionPolicy(Model): + """FeedRetentionPolicy. + + :param age_limit_in_days: This attribute is deprecated and is not honoured by retention + :type age_limit_in_days: int + :param count_limit: Maximum versions to preserve per package and package type. + :type count_limit: int + :param days_to_keep_recently_downloaded_packages: Number of days to preserve a package version after its latest download. + :type days_to_keep_recently_downloaded_packages: int + """ + + _attribute_map = { + 'age_limit_in_days': {'key': 'ageLimitInDays', 'type': 'int'}, + 'count_limit': {'key': 'countLimit', 'type': 'int'}, + 'days_to_keep_recently_downloaded_packages': {'key': 'daysToKeepRecentlyDownloadedPackages', 'type': 'int'} + } + + def __init__(self, age_limit_in_days=None, count_limit=None, days_to_keep_recently_downloaded_packages=None): + super(FeedRetentionPolicy, self).__init__() + self.age_limit_in_days = age_limit_in_days + self.count_limit = count_limit + self.days_to_keep_recently_downloaded_packages = days_to_keep_recently_downloaded_packages + + +class FeedUpdate(Model): + """FeedUpdate. + + :param allow_upstream_name_conflict: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param badges_enabled: If set, this feed supports generation of package badges. + :type badges_enabled: bool + :param default_view_id: The view that the feed administrator has indicated is the default experience for readers. + :type default_view_id: str + :param description: A description for the feed. Descriptions must not exceed 255 characters. + :type description: str + :param hide_deleted_package_versions: If set, feed will hide all deleted/unpublished versions + :type hide_deleted_package_versions: bool + :param id: A GUID that uniquely identifies this feed. + :type id: str + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :type name: str + :param upstream_enabled: OBSOLETE: If set, the feed can proxy packages from an upstream feed + :type upstream_enabled: bool + :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. + :type upstream_sources: list of :class:`UpstreamSource ` + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, + 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'} + } + + def __init__(self, allow_upstream_name_conflict=None, badges_enabled=None, default_view_id=None, description=None, hide_deleted_package_versions=None, id=None, name=None, upstream_enabled=None, upstream_sources=None): + super(FeedUpdate, self).__init__() + self.allow_upstream_name_conflict = allow_upstream_name_conflict + self.badges_enabled = badges_enabled + self.default_view_id = default_view_id + self.description = description + self.hide_deleted_package_versions = hide_deleted_package_versions + self.id = id + self.name = name + self.upstream_enabled = upstream_enabled + self.upstream_sources = upstream_sources + + +class FeedView(Model): + """FeedView. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param id: Id of the view. + :type id: str + :param name: Name of the view. + :type name: str + :param type: Type of view. + :type type: object + :param url: Url of the view. + :type url: str + :param visibility: Visibility status of the view. + :type visibility: object + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'object'} + } + + def __init__(self, _links=None, id=None, name=None, type=None, url=None, visibility=None): + super(FeedView, self).__init__() + self._links = _links + self.id = id + self.name = name + self.type = type + self.url = url + self.visibility = visibility + + +class GlobalPermission(Model): + """GlobalPermission. + + :param identity_descriptor: Identity of the user with the provided Role. + :type identity_descriptor: :class:`str ` + :param role: Role associated with the Identity. + :type role: object + """ + + _attribute_map = { + 'identity_descriptor': {'key': 'identityDescriptor', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'object'} + } + + def __init__(self, identity_descriptor=None, role=None): + super(GlobalPermission, self).__init__() + self.identity_descriptor = identity_descriptor + self.role = role + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageVersion(Model): + """MinimalPackageVersion. + + :param direct_upstream_source_id: Upstream source this package was ingested from. + :type direct_upstream_source_id: str + :param id: Id for the package. + :type id: str + :param is_cached_version: [Obsolete] Used for legacy scenarios and may be removed in future versions. + :type is_cached_version: bool + :param is_deleted: True if this package has been deleted. + :type is_deleted: bool + :param is_latest: True if this is the latest version of the package by package type sort order. + :type is_latest: bool + :param is_listed: (NuGet Only) True if this package is listed. + :type is_listed: bool + :param normalized_version: Normalized version using normalization rules specific to a package type. + :type normalized_version: str + :param package_description: Package description. + :type package_description: str + :param publish_date: UTC Date the package was published to the service. + :type publish_date: datetime + :param storage_id: Internal storage id. + :type storage_id: str + :param version: Display version. + :type version: str + :param views: List of views containing this package version. + :type views: list of :class:`FeedView ` + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None): + super(MinimalPackageVersion, self).__init__() + self.direct_upstream_source_id = direct_upstream_source_id + self.id = id + self.is_cached_version = is_cached_version + self.is_deleted = is_deleted + self.is_latest = is_latest + self.is_listed = is_listed + self.normalized_version = normalized_version + self.package_description = package_description + self.publish_date = publish_date + self.storage_id = storage_id + self.version = version + self.views = views + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param id: Id of the package. + :type id: str + :param is_cached: Used for legacy scenarios and may be removed in future versions. + :type is_cached: bool + :param name: The display name of the package. + :type name: str + :param normalized_name: The normalized name representing the identity of this package within its package type. + :type normalized_name: str + :param protocol_type: Type of the package. + :type protocol_type: str + :param star_count: [Obsolete] - this field is unused and will be removed in a future release. + :type star_count: int + :param url: Url for this package. + :type url: str + :param versions: All versions for this package within its feed. + :type versions: list of :class:`MinimalPackageVersion ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached': {'key': 'isCached', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'normalized_name': {'key': 'normalizedName', 'type': 'str'}, + 'protocol_type': {'key': 'protocolType', 'type': 'str'}, + 'star_count': {'key': 'starCount', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[MinimalPackageVersion]'} + } + + def __init__(self, _links=None, id=None, is_cached=None, name=None, normalized_name=None, protocol_type=None, star_count=None, url=None, versions=None): + super(Package, self).__init__() + self._links = _links + self.id = id + self.is_cached = is_cached + self.name = name + self.normalized_name = normalized_name + self.protocol_type = protocol_type + self.star_count = star_count + self.url = url + self.versions = versions + + +class PackageChange(Model): + """PackageChange. + + :param package: Package that was changed. + :type package: :class:`Package ` + :param package_version_change: Change that was performed on a package version. + :type package_version_change: :class:`PackageVersionChange ` + """ + + _attribute_map = { + 'package': {'key': 'package', 'type': 'Package'}, + 'package_version_change': {'key': 'packageVersionChange', 'type': 'PackageVersionChange'} + } + + def __init__(self, package=None, package_version_change=None): + super(PackageChange, self).__init__() + self.package = package + self.package_version_change = package_version_change + + +class PackageChangesResponse(Model): + """PackageChangesResponse. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param count: Number of changes in this batch. + :type count: int + :param next_package_continuation_token: Token that should be used in future calls for this feed to retrieve new changes. + :type next_package_continuation_token: long + :param package_changes: List of changes. + :type package_changes: list of :class:`PackageChange ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'count': {'key': 'count', 'type': 'int'}, + 'next_package_continuation_token': {'key': 'nextPackageContinuationToken', 'type': 'long'}, + 'package_changes': {'key': 'packageChanges', 'type': '[PackageChange]'} + } + + def __init__(self, _links=None, count=None, next_package_continuation_token=None, package_changes=None): + super(PackageChangesResponse, self).__init__() + self._links = _links + self.count = count + self.next_package_continuation_token = next_package_continuation_token + self.package_changes = package_changes + + +class PackageDependency(Model): + """PackageDependency. + + :param group: Dependency package group (an optional classification within some package types). + :type group: str + :param package_name: Dependency package name. + :type package_name: str + :param version_range: Dependency package version range. + :type version_range: str + """ + + _attribute_map = { + 'group': {'key': 'group', 'type': 'str'}, + 'package_name': {'key': 'packageName', 'type': 'str'}, + 'version_range': {'key': 'versionRange', 'type': 'str'} + } + + def __init__(self, group=None, package_name=None, version_range=None): + super(PackageDependency, self).__init__() + self.group = group + self.package_name = package_name + self.version_range = version_range + + +class PackageFile(Model): + """PackageFile. + + :param children: Hierarchical representation of files. + :type children: list of :class:`PackageFile ` + :param name: File name. + :type name: str + :param protocol_metadata: Extended data unique to a specific package type. + :type protocol_metadata: :class:`ProtocolMetadata ` + """ + + _attribute_map = { + 'children': {'key': 'children', 'type': '[PackageFile]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'} + } + + def __init__(self, children=None, name=None, protocol_metadata=None): + super(PackageFile, self).__init__() + self.children = children + self.name = name + self.protocol_metadata = protocol_metadata + + +class PackageMetrics(Model): + """PackageMetrics. + + :param download_count: Total count of downloads per package id. + :type download_count: float + :param download_unique_users: Number of downloads per unique user per package id. + :type download_unique_users: float + :param last_downloaded: UTC date and time when package was last downloaded. + :type last_downloaded: datetime + :param package_id: Package id. + :type package_id: str + """ + + _attribute_map = { + 'download_count': {'key': 'downloadCount', 'type': 'float'}, + 'download_unique_users': {'key': 'downloadUniqueUsers', 'type': 'float'}, + 'last_downloaded': {'key': 'lastDownloaded', 'type': 'iso-8601'}, + 'package_id': {'key': 'packageId', 'type': 'str'} + } + + def __init__(self, download_count=None, download_unique_users=None, last_downloaded=None, package_id=None): + super(PackageMetrics, self).__init__() + self.download_count = download_count + self.download_unique_users = download_unique_users + self.last_downloaded = last_downloaded + self.package_id = package_id + + +class PackageMetricsQuery(Model): + """PackageMetricsQuery. + + :param package_ids: List of package ids + :type package_ids: list of str + """ + + _attribute_map = { + 'package_ids': {'key': 'packageIds', 'type': '[str]'} + } + + def __init__(self, package_ids=None): + super(PackageMetricsQuery, self).__init__() + self.package_ids = package_ids + + +class PackageVersion(MinimalPackageVersion): + """PackageVersion. + + :param direct_upstream_source_id: Upstream source this package was ingested from. + :type direct_upstream_source_id: str + :param id: Id for the package. + :type id: str + :param is_cached_version: [Obsolete] Used for legacy scenarios and may be removed in future versions. + :type is_cached_version: bool + :param is_deleted: True if this package has been deleted. + :type is_deleted: bool + :param is_latest: True if this is the latest version of the package by package type sort order. + :type is_latest: bool + :param is_listed: (NuGet Only) True if this package is listed. + :type is_listed: bool + :param normalized_version: Normalized version using normalization rules specific to a package type. + :type normalized_version: str + :param package_description: Package description. + :type package_description: str + :param publish_date: UTC Date the package was published to the service. + :type publish_date: datetime + :param storage_id: Internal storage id. + :type storage_id: str + :param version: Display version. + :type version: str + :param views: List of views containing this package version. + :type views: list of :class:`FeedView ` + :param _links: Related links + :type _links: :class:`ReferenceLinks ` + :param author: Package version author. + :type author: str + :param deleted_date: UTC date that this package version was deleted. + :type deleted_date: datetime + :param dependencies: List of dependencies for this package version. + :type dependencies: list of :class:`PackageDependency ` + :param description: Package version description. + :type description: str + :param files: Files associated with this package version, only relevant for multi-file package types. + :type files: list of :class:`PackageFile ` + :param other_versions: Other versions of this package. + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: Extended data specific to a package type. + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: List of upstream sources through which a package version moved to land in this feed. + :type source_chain: list of :class:`UpstreamSource ` + :param summary: Package version summary. + :type summary: str + :param tags: Package version tags. + :type tags: list of str + :param url: Package version url. + :type url: str + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[PackageFile]'}, + 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None): + super(PackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views) + self._links = _links + self.author = author + self.deleted_date = deleted_date + self.dependencies = dependencies + self.description = description + self.files = files + self.other_versions = other_versions + self.protocol_metadata = protocol_metadata + self.source_chain = source_chain + self.summary = summary + self.tags = tags + self.url = url + + +class PackageVersionChange(Model): + """PackageVersionChange. + + :param change_type: The type of change that was performed. + :type change_type: object + :param continuation_token: Token marker for this change, allowing the caller to send this value back to the service and receive changes beyond this one. + :type continuation_token: long + :param package_version: Package version that was changed. + :type package_version: :class:`PackageVersion ` + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'long'}, + 'package_version': {'key': 'packageVersion', 'type': 'PackageVersion'} + } + + def __init__(self, change_type=None, continuation_token=None, package_version=None): + super(PackageVersionChange, self).__init__() + self.change_type = change_type + self.continuation_token = continuation_token + self.package_version = package_version + + +class PackageVersionMetrics(Model): + """PackageVersionMetrics. + + :param download_count: Total count of downloads per package version id. + :type download_count: float + :param download_unique_users: Number of downloads per unique user per package version id. + :type download_unique_users: float + :param last_downloaded: UTC date and time when package version was last downloaded. + :type last_downloaded: datetime + :param package_id: Package id. + :type package_id: str + :param package_version_id: Package version id. + :type package_version_id: str + """ + + _attribute_map = { + 'download_count': {'key': 'downloadCount', 'type': 'float'}, + 'download_unique_users': {'key': 'downloadUniqueUsers', 'type': 'float'}, + 'last_downloaded': {'key': 'lastDownloaded', 'type': 'iso-8601'}, + 'package_id': {'key': 'packageId', 'type': 'str'}, + 'package_version_id': {'key': 'packageVersionId', 'type': 'str'} + } + + def __init__(self, download_count=None, download_unique_users=None, last_downloaded=None, package_id=None, package_version_id=None): + super(PackageVersionMetrics, self).__init__() + self.download_count = download_count + self.download_unique_users = download_unique_users + self.last_downloaded = last_downloaded + self.package_id = package_id + self.package_version_id = package_version_id + + +class PackageVersionMetricsQuery(Model): + """PackageVersionMetricsQuery. + + :param package_version_ids: List of package version ids + :type package_version_ids: list of str + """ + + _attribute_map = { + 'package_version_ids': {'key': 'packageVersionIds', 'type': '[str]'} + } + + def __init__(self, package_version_ids=None): + super(PackageVersionMetricsQuery, self).__init__() + self.package_version_ids = package_version_ids + + +class PackageVersionProvenance(Model): + """PackageVersionProvenance. + + :param feed_id: Name or Id of the feed. + :type feed_id: str + :param package_id: Id of the package (GUID Id, not name). + :type package_id: str + :param package_version_id: Id of the package version (GUID Id, not name). + :type package_version_id: str + :param provenance: Provenance information for this package version. + :type provenance: :class:`Provenance ` + """ + + _attribute_map = { + 'feed_id': {'key': 'feedId', 'type': 'str'}, + 'package_id': {'key': 'packageId', 'type': 'str'}, + 'package_version_id': {'key': 'packageVersionId', 'type': 'str'}, + 'provenance': {'key': 'provenance', 'type': 'Provenance'} + } + + def __init__(self, feed_id=None, package_id=None, package_version_id=None, provenance=None): + super(PackageVersionProvenance, self).__init__() + self.feed_id = feed_id + self.package_id = package_id + self.package_version_id = package_version_id + self.provenance = provenance + + +class ProtocolMetadata(Model): + """ProtocolMetadata. + + :param data: Extended metadata for a specific package type, formatted to the associated schema version definition. + :type data: object + :param schema_version: Schema version. + :type schema_version: int + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'object'}, + 'schema_version': {'key': 'schemaVersion', 'type': 'int'} + } + + def __init__(self, data=None, schema_version=None): + super(ProtocolMetadata, self).__init__() + self.data = data + self.schema_version = schema_version + + +class Provenance(Model): + """Provenance. + + :param data: Other provenance data. + :type data: dict + :param provenance_source: Type of provenance source, for example "InternalBuild", "InternalRelease" + :type provenance_source: str + :param publisher_user_identity: Identity of user that published the package + :type publisher_user_identity: str + :param user_agent: HTTP User-Agent used when pushing the package. + :type user_agent: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'provenance_source': {'key': 'provenanceSource', 'type': 'str'}, + 'publisher_user_identity': {'key': 'publisherUserIdentity', 'type': 'str'}, + 'user_agent': {'key': 'userAgent', 'type': 'str'} + } + + def __init__(self, data=None, provenance_source=None, publisher_user_identity=None, user_agent=None): + super(Provenance, self).__init__() + self.data = data + self.provenance_source = provenance_source + self.publisher_user_identity = publisher_user_identity + self.user_agent = user_agent + + +class RecycleBinPackageVersion(PackageVersion): + """RecycleBinPackageVersion. + + :param direct_upstream_source_id: Upstream source this package was ingested from. + :type direct_upstream_source_id: str + :param id: Id for the package. + :type id: str + :param is_cached_version: [Obsolete] Used for legacy scenarios and may be removed in future versions. + :type is_cached_version: bool + :param is_deleted: True if this package has been deleted. + :type is_deleted: bool + :param is_latest: True if this is the latest version of the package by package type sort order. + :type is_latest: bool + :param is_listed: (NuGet Only) True if this package is listed. + :type is_listed: bool + :param normalized_version: Normalized version using normalization rules specific to a package type. + :type normalized_version: str + :param package_description: Package description. + :type package_description: str + :param publish_date: UTC Date the package was published to the service. + :type publish_date: datetime + :param storage_id: Internal storage id. + :type storage_id: str + :param version: Display version. + :type version: str + :param views: List of views containing this package version. + :type views: list of :class:`FeedView ` + :param _links: Related links + :type _links: :class:`ReferenceLinks ` + :param author: Package version author. + :type author: str + :param deleted_date: UTC date that this package version was deleted. + :type deleted_date: datetime + :param dependencies: List of dependencies for this package version. + :type dependencies: list of :class:`PackageDependency ` + :param description: Package version description. + :type description: str + :param files: Files associated with this package version, only relevant for multi-file package types. + :type files: list of :class:`PackageFile ` + :param other_versions: Other versions of this package. + :type other_versions: list of :class:`MinimalPackageVersion ` + :param protocol_metadata: Extended data specific to a package type. + :type protocol_metadata: :class:`ProtocolMetadata ` + :param source_chain: List of upstream sources through which a package version moved to land in this feed. + :type source_chain: list of :class:`UpstreamSource ` + :param summary: Package version summary. + :type summary: str + :param tags: Package version tags. + :type tags: list of str + :param url: Package version url. + :type url: str + :param scheduled_permanent_delete_date: UTC date on which the package will automatically be removed from the recycle bin and permanently deleted. + :type scheduled_permanent_delete_date: datetime + """ + + _attribute_map = { + 'direct_upstream_source_id': {'key': 'directUpstreamSourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_cached_version': {'key': 'isCachedVersion', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_latest': {'key': 'isLatest', 'type': 'bool'}, + 'is_listed': {'key': 'isListed', 'type': 'bool'}, + 'normalized_version': {'key': 'normalizedVersion', 'type': 'str'}, + 'package_description': {'key': 'packageDescription', 'type': 'str'}, + 'publish_date': {'key': 'publishDate', 'type': 'iso-8601'}, + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'views': {'key': 'views', 'type': '[FeedView]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'author': {'key': 'author', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'dependencies': {'key': 'dependencies', 'type': '[PackageDependency]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[PackageFile]'}, + 'other_versions': {'key': 'otherVersions', 'type': '[MinimalPackageVersion]'}, + 'protocol_metadata': {'key': 'protocolMetadata', 'type': 'ProtocolMetadata'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSource]'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'scheduled_permanent_delete_date': {'key': 'scheduledPermanentDeleteDate', 'type': 'iso-8601'} + } + + def __init__(self, direct_upstream_source_id=None, id=None, is_cached_version=None, is_deleted=None, is_latest=None, is_listed=None, normalized_version=None, package_description=None, publish_date=None, storage_id=None, version=None, views=None, _links=None, author=None, deleted_date=None, dependencies=None, description=None, files=None, other_versions=None, protocol_metadata=None, source_chain=None, summary=None, tags=None, url=None, scheduled_permanent_delete_date=None): + super(RecycleBinPackageVersion, self).__init__(direct_upstream_source_id=direct_upstream_source_id, id=id, is_cached_version=is_cached_version, is_deleted=is_deleted, is_latest=is_latest, is_listed=is_listed, normalized_version=normalized_version, package_description=package_description, publish_date=publish_date, storage_id=storage_id, version=version, views=views, _links=_links, author=author, deleted_date=deleted_date, dependencies=dependencies, description=description, files=files, other_versions=other_versions, protocol_metadata=protocol_metadata, source_chain=source_chain, summary=summary, tags=tags, url=url) + self.scheduled_permanent_delete_date = scheduled_permanent_delete_date + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UpstreamSource(Model): + """UpstreamSource. + + :param deleted_date: UTC date that this upstream was deleted. + :type deleted_date: datetime + :param id: Identity of the upstream source. + :type id: str + :param internal_upstream_collection_id: For an internal upstream type, track the Azure DevOps organization that contains it. + :type internal_upstream_collection_id: str + :param internal_upstream_feed_id: For an internal upstream type, track the feed id being referenced. + :type internal_upstream_feed_id: str + :param internal_upstream_view_id: For an internal upstream type, track the view of the feed being referenced. + :type internal_upstream_view_id: str + :param location: Locator for connecting to the upstream source. + :type location: str + :param name: Display name. + :type name: str + :param protocol: Package type associated with the upstream source. + :type protocol: str + :param upstream_source_type: Source type, such as Public or Internal. + :type upstream_source_type: object + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'internal_upstream_collection_id': {'key': 'internalUpstreamCollectionId', 'type': 'str'}, + 'internal_upstream_feed_id': {'key': 'internalUpstreamFeedId', 'type': 'str'}, + 'internal_upstream_view_id': {'key': 'internalUpstreamViewId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'upstream_source_type': {'key': 'upstreamSourceType', 'type': 'object'} + } + + def __init__(self, deleted_date=None, id=None, internal_upstream_collection_id=None, internal_upstream_feed_id=None, internal_upstream_view_id=None, location=None, name=None, protocol=None, upstream_source_type=None): + super(UpstreamSource, self).__init__() + self.deleted_date = deleted_date + self.id = id + self.internal_upstream_collection_id = internal_upstream_collection_id + self.internal_upstream_feed_id = internal_upstream_feed_id + self.internal_upstream_view_id = internal_upstream_view_id + self.location = location + self.name = name + self.protocol = protocol + self.upstream_source_type = upstream_source_type + + +class Feed(FeedCore): + """Feed. + + :param allow_upstream_name_conflict: OBSOLETE: If set, the feed will allow upload of packages that exist on the upstream + :type allow_upstream_name_conflict: bool + :param capabilities: Supported capabilities of a feed. + :type capabilities: object + :param fully_qualified_id: This will either be the feed GUID or the feed GUID and view GUID depending on how the feed was accessed. + :type fully_qualified_id: str + :param fully_qualified_name: Full name of the view, in feed@view format. + :type fully_qualified_name: str + :param id: A GUID that uniquely identifies this feed. + :type id: str + :param is_read_only: If set, all packages in the feed are immutable. It is important to note that feed views are immutable; therefore, this flag will always be set for views. + :type is_read_only: bool + :param name: A name for the feed. feed names must follow these rules: Must not exceed 64 characters Must not contain whitespaces Must not start with an underscore or a period Must not end with a period Must not contain any of the following illegal characters: , |, /, \\, ?, :, &, $, *, \", #, [, ] ]]> + :type name: str + :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. + :type upstream_enabled: bool + :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. + :type upstream_sources: list of :class:`UpstreamSource ` + :param view: Definition of the view. + :type view: :class:`FeedView ` + :param view_id: View Id. + :type view_id: str + :param view_name: View name. + :type view_name: str + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param badges_enabled: If set, this feed supports generation of package badges. + :type badges_enabled: bool + :param default_view_id: The view that the feed administrator has indicated is the default experience for readers. + :type default_view_id: str + :param deleted_date: The date that this feed was deleted. + :type deleted_date: datetime + :param description: A description for the feed. Descriptions must not exceed 255 characters. + :type description: str + :param hide_deleted_package_versions: If set, the feed will hide all deleted/unpublished versions + :type hide_deleted_package_versions: bool + :param permissions: Explicit permissions for the feed. + :type permissions: list of :class:`FeedPermission ` + :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. + :type upstream_enabled_changed_date: datetime + :param url: The URL of the base feed in GUID form. + :type url: str + """ + + _attribute_map = { + 'allow_upstream_name_conflict': {'key': 'allowUpstreamNameConflict', 'type': 'bool'}, + 'capabilities': {'key': 'capabilities', 'type': 'object'}, + 'fully_qualified_id': {'key': 'fullyQualifiedId', 'type': 'str'}, + 'fully_qualified_name': {'key': 'fullyQualifiedName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'upstream_enabled': {'key': 'upstreamEnabled', 'type': 'bool'}, + 'upstream_sources': {'key': 'upstreamSources', 'type': '[UpstreamSource]'}, + 'view': {'key': 'view', 'type': 'FeedView'}, + 'view_id': {'key': 'viewId', 'type': 'str'}, + 'view_name': {'key': 'viewName', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'badges_enabled': {'key': 'badgesEnabled', 'type': 'bool'}, + 'default_view_id': {'key': 'defaultViewId', 'type': 'str'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'hide_deleted_package_versions': {'key': 'hideDeletedPackageVersions', 'type': 'bool'}, + 'permissions': {'key': 'permissions', 'type': '[FeedPermission]'}, + 'upstream_enabled_changed_date': {'key': 'upstreamEnabledChangedDate', 'type': 'iso-8601'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_upstream_name_conflict=None, capabilities=None, fully_qualified_id=None, fully_qualified_name=None, id=None, is_read_only=None, name=None, upstream_enabled=None, upstream_sources=None, view=None, view_id=None, view_name=None, _links=None, badges_enabled=None, default_view_id=None, deleted_date=None, description=None, hide_deleted_package_versions=None, permissions=None, upstream_enabled_changed_date=None, url=None): + super(Feed, self).__init__(allow_upstream_name_conflict=allow_upstream_name_conflict, capabilities=capabilities, fully_qualified_id=fully_qualified_id, fully_qualified_name=fully_qualified_name, id=id, is_read_only=is_read_only, name=name, upstream_enabled=upstream_enabled, upstream_sources=upstream_sources, view=view, view_id=view_id, view_name=view_name) + self._links = _links + self.badges_enabled = badges_enabled + self.default_view_id = default_view_id + self.deleted_date = deleted_date + self.description = description + self.hide_deleted_package_versions = hide_deleted_package_versions + self.permissions = permissions + self.upstream_enabled_changed_date = upstream_enabled_changed_date + self.url = url + + +__all__ = [ + 'FeedBatchData', + 'FeedBatchOperationData', + 'FeedChange', + 'FeedChangesResponse', + 'FeedCore', + 'FeedPermission', + 'FeedRetentionPolicy', + 'FeedUpdate', + 'FeedView', + 'GlobalPermission', + 'JsonPatchOperation', + 'MinimalPackageVersion', + 'Package', + 'PackageChange', + 'PackageChangesResponse', + 'PackageDependency', + 'PackageFile', + 'PackageMetrics', + 'PackageMetricsQuery', + 'PackageVersion', + 'PackageVersionChange', + 'PackageVersionMetrics', + 'PackageVersionMetricsQuery', + 'PackageVersionProvenance', + 'ProtocolMetadata', + 'Provenance', + 'RecycleBinPackageVersion', + 'ReferenceLinks', + 'UpstreamSource', + 'Feed', +] diff --git a/azure-devops/azure/devops/v5_1/feed_token/__init__.py b/azure-devops/azure/devops/v5_1/feed_token/__init__.py new file mode 100644 index 00000000..02c32760 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/feed_token/__init__.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + +__all__ = [ +] diff --git a/azure-devops/azure/devops/v5_1/feed_token/feed_token_client.py b/azure-devops/azure/devops/v5_1/feed_token/feed_token_client.py new file mode 100644 index 00000000..8e695c26 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/feed_token/feed_token_client.py @@ -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 + + +class FeedTokenClient(Client): + """FeedToken + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(FeedTokenClient, self).__init__(base_url, creds) + self._serialize = Serializer() + self._deserialize = Deserializer() + + resource_area_identifier = 'cdeb6c7d-6b25-4d6f-b664-c2e3ede202e8' + + def get_personal_access_token(self, feed_name=None, token_type=None): + """GetPersonalAccessToken. + [Preview API] Get a time-limited session token representing the current user, with permissions scoped to the read/write of Artifacts. + :param str feed_name: + :param str token_type: Type of token to retrieve (e.g. 'SelfDescribing', 'Compact'). + :rtype: object + """ + route_values = {} + if feed_name is not None: + route_values['feedName'] = self._serialize.url('feed_name', feed_name, 'str') + query_parameters = {} + if token_type is not None: + query_parameters['tokenType'] = self._serialize.query('token_type', token_type, 'str') + response = self._send(http_method='GET', + location_id='dfdb7ad7-3d8e-4907-911e-19b4a8330550', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + diff --git a/azure-devops/azure/devops/v4_0/file_container/__init__.py b/azure-devops/azure/devops/v5_1/file_container/__init__.py similarity index 84% rename from azure-devops/azure/devops/v4_0/file_container/__init__.py rename to azure-devops/azure/devops/v5_1/file_container/__init__.py index e351ffa8..ad599954 100644 --- a/azure-devops/azure/devops/v4_0/file_container/__init__.py +++ b/azure-devops/azure/devops/v5_1/file_container/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/file_container/file_container_client.py b/azure-devops/azure/devops/v5_1/file_container/file_container_client.py similarity index 94% rename from azure-devops/azure/devops/v4_0/file_container/file_container_client.py rename to azure-devops/azure/devops/v5_1/file_container/file_container_client.py index a9b7427a..4f4f2075 100644 --- a/azure-devops/azure/devops/v4_0/file_container/file_container_client.py +++ b/azure-devops/azure/devops/v5_1/file_container/file_container_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_items(self, items, container_id, scope=None): """CreateItems. [Preview API] Creates the specified items in in the referenced container. - :param :class:` ` items: + :param :class:` ` items: :param int container_id: :param str scope: A guid representing the scope of the container. This is often the project id. :rtype: [FileContainerItem] @@ -42,7 +42,7 @@ def create_items(self, items, container_id, scope=None): content = self._serialize.body(items, 'VssJsonCollectionWrapper') response = self._send(http_method='POST', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.0-preview.4', + version='5.1-preview.4', route_values=route_values, query_parameters=query_parameters, content=content) @@ -65,7 +65,7 @@ def delete_item(self, container_id, item_path, scope=None): query_parameters['scope'] = self._serialize.query('scope', scope, 'str') self._send(http_method='DELETE', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.0-preview.4', + version='5.1-preview.4', route_values=route_values, query_parameters=query_parameters) @@ -83,7 +83,7 @@ def get_containers(self, scope=None, artifact_uris=None): query_parameters['artifactUris'] = self._serialize.query('artifact_uris', artifact_uris, 'str') response = self._send(http_method='GET', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.0-preview.4', + version='5.1-preview.4', query_parameters=query_parameters) return self._deserialize('[FileContainer]', self._unwrap_collection(response)) @@ -120,7 +120,7 @@ def get_items(self, container_id, scope=None, item_path=None, metadata=None, for query_parameters['isShallow'] = self._serialize.query('is_shallow', is_shallow, 'bool') response = self._send(http_method='GET', location_id='e4f5c81e-e250-447b-9fef-bd48471bea5e', - version='4.0-preview.4', + version='5.1-preview.4', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[FileContainerItem]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_0/file_container/models.py b/azure-devops/azure/devops/v5_1/file_container/models.py similarity index 98% rename from azure-devops/azure/devops/v4_0/file_container/models.py rename to azure-devops/azure/devops/v5_1/file_container/models.py index 4434ade0..1b8b6fe1 100644 --- a/azure-devops/azure/devops/v4_0/file_container/models.py +++ b/azure-devops/azure/devops/v5_1/file_container/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/gallery/__init__.py b/azure-devops/azure/devops/v5_1/gallery/__init__.py similarity index 86% rename from azure-devops/azure/devops/v4_0/gallery/__init__.py rename to azure-devops/azure/devops/v5_1/gallery/__init__.py index 912778a3..2f550038 100644 --- a/azure-devops/azure/devops/v4_0/gallery/__init__.py +++ b/azure-devops/azure/devops/v5_1/gallery/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -24,12 +24,16 @@ 'ExtensionCategory', 'ExtensionDailyStat', 'ExtensionDailyStats', + 'ExtensionDraft', + 'ExtensionDraftAsset', + 'ExtensionDraftPatch', 'ExtensionEvent', 'ExtensionEvents', 'ExtensionFile', 'ExtensionFilterResult', 'ExtensionFilterResultMetadata', 'ExtensionPackage', + 'ExtensionPayload', 'ExtensionQuery', 'ExtensionQueryResult', 'ExtensionShare', @@ -44,6 +48,7 @@ 'ProductCategory', 'PublishedExtension', 'Publisher', + 'PublisherBase', 'PublisherFacts', 'PublisherFilterResult', 'PublisherQuery', @@ -53,12 +58,14 @@ 'Question', 'QuestionsResult', 'RatingCountPerRating', + 'ReferenceLinks', 'Response', 'Review', 'ReviewPatch', 'ReviewReply', 'ReviewsResult', 'ReviewSummary', + 'UnpackagedExtensionData', 'UserIdentityRef', 'UserReportedConcern', ] diff --git a/azure-devops/azure/devops/v4_1/gallery/gallery_client.py b/azure-devops/azure/devops/v5_1/gallery/gallery_client.py similarity index 87% rename from azure-devops/azure/devops/v4_1/gallery/gallery_client.py rename to azure-devops/azure/devops/v5_1/gallery/gallery_client.py index 11b85579..2fae14f0 100644 --- a/azure-devops/azure/devops/v4_1/gallery/gallery_client.py +++ b/azure-devops/azure/devops/v5_1/gallery/gallery_client.py @@ -38,7 +38,7 @@ def share_extension_by_id(self, extension_id, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='POST', location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def unshare_extension_by_id(self, extension_id, account_name): @@ -54,7 +54,7 @@ def unshare_extension_by_id(self, extension_id, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='DELETE', location_id='1f19631b-a0b4-4a03-89c2-d79785d24360', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def share_extension(self, publisher_name, extension_name, account_name): @@ -73,7 +73,7 @@ def share_extension(self, publisher_name, extension_name, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='POST', location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def unshare_extension(self, publisher_name, extension_name, account_name): @@ -92,7 +92,7 @@ def unshare_extension(self, publisher_name, extension_name, account_name): route_values['accountName'] = self._serialize.url('account_name', account_name, 'str') self._send(http_method='DELETE', location_id='a1e66d8f-f5de-4d16-8309-91a4e015ee46', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_acquisition_options(self, item_id, installation_target, test_commerce=None, is_free_or_trial_install=None): @@ -102,7 +102,7 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No :param str installation_target: :param bool test_commerce: :param bool is_free_or_trial_install: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if item_id is not None: @@ -116,7 +116,7 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No query_parameters['isFreeOrTrialInstall'] = self._serialize.query('is_free_or_trial_install', is_free_or_trial_install, 'bool') response = self._send(http_method='GET', location_id='9d0a0105-075e-4760-aa15-8bcf54d1bd7d', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AcquisitionOptions', response) @@ -124,17 +124,17 @@ def get_acquisition_options(self, item_id, installation_target, test_commerce=No def request_acquisition(self, acquisition_request): """RequestAcquisition. [Preview API] - :param :class:` ` acquisition_request: - :rtype: :class:` ` + :param :class:` ` acquisition_request: + :rtype: :class:` ` """ content = self._serialize.body(acquisition_request, 'ExtensionAcquisitionRequest') response = self._send(http_method='POST', location_id='3adb1f2d-e328-446e-be73-9f6d98071c45', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('ExtensionAcquisitionRequest', response) - def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None, **kwargs): + def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetAssetByName. [Preview API] :param str publisher_name: @@ -143,6 +143,7 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, :param str asset_type: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -161,7 +162,7 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='7529171f-a002-4180-93ba-685f358a0482', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -171,7 +172,7 @@ def get_asset_by_name(self, publisher_name, extension_name, version, asset_type, callback = None return self._client.stream_download(response, callback=callback) - def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None, **kwargs): + def get_asset(self, extension_id, version, asset_type, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetAsset. [Preview API] :param str extension_id: @@ -179,6 +180,7 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep :param str asset_type: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -195,7 +197,7 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='5d545f3d-ef47-488b-8be3-f5ee1517856c', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -205,7 +207,7 @@ def get_asset(self, extension_id, version, asset_type, account_token=None, accep callback = None return self._client.stream_download(response, callback=callback) - def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None, **kwargs): + def get_asset_authenticated(self, publisher_name, extension_name, version, asset_type, account_token=None, account_token_header=None, **kwargs): """GetAssetAuthenticated. [Preview API] :param str publisher_name: @@ -213,6 +215,7 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset :param str version: :param str asset_type: :param str account_token: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -229,7 +232,7 @@ def get_asset_authenticated(self, publisher_name, extension_name, version, asset query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') response = self._send(http_method='GET', location_id='506aff36-2622-4f70-8063-77cce6366d20', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -244,7 +247,7 @@ def associate_azure_publisher(self, publisher_name, azure_publisher_id): [Preview API] :param str publisher_name: :param str azure_publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -254,7 +257,7 @@ def associate_azure_publisher(self, publisher_name, azure_publisher_id): query_parameters['azurePublisherId'] = self._serialize.query('azure_publisher_id', azure_publisher_id, 'str') response = self._send(http_method='PUT', location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AzurePublisher', response) @@ -263,14 +266,14 @@ def query_associated_azure_publisher(self, publisher_name): """QueryAssociatedAzurePublisher. [Preview API] :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') response = self._send(http_method='GET', location_id='efd202a6-9d87-4ebc-9229-d2b8ae2fdb6d', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('AzurePublisher', response) @@ -285,7 +288,7 @@ def get_categories(self, languages=None): query_parameters['languages'] = self._serialize.query('languages', languages, 'str') response = self._send(http_method='GET', location_id='e0a5a71e-3ac3-43a0-ae7d-0bb5c3046a2a', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -295,7 +298,7 @@ def get_category_details(self, category_name, languages=None, product=None): :param str category_name: :param str languages: :param str product: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if category_name is not None: @@ -307,7 +310,7 @@ def get_category_details(self, category_name, languages=None, product=None): query_parameters['product'] = self._serialize.query('product', product, 'str') response = self._send(http_method='GET', location_id='75d3c04d-84d2-4973-acd2-22627587dabc', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('CategoriesResult', response) @@ -322,7 +325,7 @@ def get_category_tree(self, product, category_id, lcid=None, source=None, produc :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -342,7 +345,7 @@ def get_category_tree(self, product, category_id, lcid=None, source=None, produc query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') response = self._send(http_method='GET', location_id='1102bb42-82b0-4955-8d8a-435d6b4cedd3', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ProductCategory', response) @@ -356,7 +359,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N :param str product_version: :param str skus: :param str sub_skus: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if product is not None: @@ -374,7 +377,7 @@ def get_root_categories(self, product, lcid=None, source=None, product_version=N query_parameters['subSkus'] = self._serialize.query('sub_skus', sub_skus, 'str') response = self._send(http_method='GET', location_id='31fba831-35b2-46f6-a641-d05de5a877d8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ProductCategoriesResult', response) @@ -396,7 +399,30 @@ def get_certificate(self, publisher_name, extension_name, version=None, **kwargs route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='GET', location_id='e905ad6a-3f1f-4d08-9f6d-7d357ff8b7d0', - version='4.1-preview.1', + version='5.1-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_content_verification_log(self, publisher_name, extension_name, **kwargs): + """GetContentVerificationLog. + [Preview API] + :param str publisher_name: + :param str extension_name: + :rtype: object + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + response = self._send(http_method='GET', + location_id='c0f1c7c4-3557-4ffb-b774-1e48c4865e99', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -410,7 +436,7 @@ def create_draft_for_edit_extension(self, publisher_name, extension_name): [Preview API] :param str publisher_name: :param str extension_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -419,18 +445,18 @@ def create_draft_for_edit_extension(self, publisher_name, extension_name): route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') response = self._send(http_method='POST', location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ExtensionDraft', response) def perform_edit_extension_draft_operation(self, draft_patch, publisher_name, extension_name, draft_id): """PerformEditExtensionDraftOperation. [Preview API] - :param :class:` ` draft_patch: + :param :class:` ` draft_patch: :param str publisher_name: :param str extension_name: :param str draft_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -442,7 +468,7 @@ def perform_edit_extension_draft_operation(self, draft_patch, publisher_name, ex content = self._serialize.body(draft_patch, 'ExtensionDraftPatch') response = self._send(http_method='PATCH', location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('ExtensionDraft', response) @@ -455,7 +481,7 @@ def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_na :param str extension_name: :param str draft_id: :param String file_name: Header to pass the filename of the uploaded data - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -471,7 +497,7 @@ def update_payload_in_draft_for_edit_extension(self, upload_stream, publisher_na content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='02b33873-4e61-496e-83a2-59d1df46b7d8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -485,7 +511,7 @@ def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, exte :param str extension_name: :param str draft_id: :param str asset_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -503,7 +529,7 @@ def add_asset_for_edit_extension_draft(self, upload_stream, publisher_name, exte content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='f1db9c47-6619-4998-a7e5-d7f9f41a4617', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -516,7 +542,7 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, :param str publisher_name: :param String product: Header to pass the product type of the payload file :param String file_name: Header to pass the filename of the uploaded data - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -528,7 +554,7 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -537,10 +563,10 @@ def create_draft_for_new_extension(self, upload_stream, publisher_name, product, def perform_new_extension_draft_operation(self, draft_patch, publisher_name, draft_id): """PerformNewExtensionDraftOperation. [Preview API] - :param :class:` ` draft_patch: + :param :class:` ` draft_patch: :param str publisher_name: :param str draft_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -550,7 +576,7 @@ def perform_new_extension_draft_operation(self, draft_patch, publisher_name, dra content = self._serialize.body(draft_patch, 'ExtensionDraftPatch') response = self._send(http_method='PATCH', location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('ExtensionDraft', response) @@ -562,7 +588,7 @@ def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_nam :param str publisher_name: :param str draft_id: :param String file_name: Header to pass the filename of the uploaded data - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -576,7 +602,7 @@ def update_payload_in_draft_for_new_extension(self, upload_stream, publisher_nam content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='b3ab127d-ebb9-4d22-b611-4e09593c8d79', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -589,7 +615,7 @@ def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft :param str publisher_name: :param str draft_id: :param str asset_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -605,7 +631,7 @@ def add_asset_for_new_extension_draft(self, upload_stream, publisher_name, draft content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -632,7 +658,7 @@ def get_asset_from_edit_extension_draft(self, publisher_name, draft_id, asset_ty query_parameters['extensionName'] = self._serialize.query('extension_name', extension_name, 'str') response = self._send(http_method='GET', location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -659,7 +685,7 @@ def get_asset_from_new_extension_draft(self, publisher_name, draft_id, asset_typ route_values['assetType'] = self._serialize.url('asset_type', asset_type, 'str') response = self._send(http_method='GET', location_id='88c0b1c8-b4f1-498a-9b2a-8446ef9f32e7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -677,7 +703,7 @@ def get_extension_events(self, publisher_name, extension_name, count=None, after :param datetime after_date: Fetch events that occurred on or after this date :param str include: Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events :param str include_property: Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -695,7 +721,7 @@ def get_extension_events(self, publisher_name, extension_name, count=None, after query_parameters['includeProperty'] = self._serialize.query('include_property', include_property, 'str') response = self._send(http_method='GET', location_id='3d13c499-2168-4d06-bef4-14aba185dcd5', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ExtensionEvents', response) @@ -708,15 +734,16 @@ def publish_extension_events(self, extension_events): content = self._serialize.body(extension_events, '[ExtensionEvents]') self._send(http_method='POST', location_id='0bf2bd3a-70e0-4d5d-8bf7-bd4a9c2ab6e7', - version='4.1-preview.1', + version='5.1-preview.1', content=content) - def query_extensions(self, extension_query, account_token=None): + def query_extensions(self, extension_query, account_token=None, account_token_header=None): """QueryExtensions. [Preview API] - :param :class:` ` extension_query: + :param :class:` ` extension_query: :param str account_token: - :rtype: :class:` ` + :param String account_token_header: Header to pass the account token + :rtype: :class:` ` """ query_parameters = {} if account_token is not None: @@ -724,7 +751,7 @@ def query_extensions(self, extension_query, account_token=None): content = self._serialize.body(extension_query, 'ExtensionQuery') response = self._send(http_method='POST', location_id='eb9d5ee1-6d43-456b-b80e-8a96fbc014b6', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('ExtensionQueryResult', response) @@ -733,7 +760,7 @@ def create_extension(self, upload_stream, **kwargs): """CreateExtension. [Preview API] :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ if "callback" in kwargs: callback = kwargs["callback"] @@ -742,7 +769,7 @@ def create_extension(self, upload_stream, **kwargs): content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.1-preview.2', + version='5.1-preview.2', content=content, media_type='application/octet-stream') return self._deserialize('PublishedExtension', response) @@ -761,7 +788,7 @@ def delete_extension_by_id(self, extension_id, version=None): query_parameters['version'] = self._serialize.query('version', version, 'str') self._send(http_method='DELETE', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) @@ -771,7 +798,7 @@ def get_extension_by_id(self, extension_id, version=None, flags=None): :param str extension_id: :param str version: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: @@ -783,7 +810,7 @@ def get_extension_by_id(self, extension_id, version=None, flags=None): query_parameters['flags'] = self._serialize.query('flags', flags, 'str') response = self._send(http_method='GET', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) @@ -792,14 +819,14 @@ def update_extension_by_id(self, extension_id): """UpdateExtensionById. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='PUT', location_id='a41192c8-9525-4b58-bc86-179fa549d80d', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values) return self._deserialize('PublishedExtension', response) @@ -808,7 +835,7 @@ def create_extension_with_publisher(self, upload_stream, publisher_name, **kwarg [Preview API] :param object upload_stream: Stream to upload :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -820,7 +847,7 @@ def create_extension_with_publisher(self, upload_stream, publisher_name, **kwarg content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, content=content, media_type='application/octet-stream') @@ -843,11 +870,11 @@ def delete_extension(self, publisher_name, extension_name, version=None): query_parameters['version'] = self._serialize.query('version', version, 'str') self._send(http_method='DELETE', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) - def get_extension(self, publisher_name, extension_name, version=None, flags=None, account_token=None): + def get_extension(self, publisher_name, extension_name, version=None, flags=None, account_token=None, account_token_header=None): """GetExtension. [Preview API] :param str publisher_name: @@ -855,7 +882,8 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None :param str version: :param str flags: :param str account_token: - :rtype: :class:` ` + :param String account_token_header: Header to pass the account token + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -871,24 +899,28 @@ def get_extension(self, publisher_name, extension_name, version=None, flags=None query_parameters['accountToken'] = self._serialize.query('account_token', account_token, 'str') response = self._send(http_method='GET', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) - def update_extension(self, upload_stream, publisher_name, extension_name, **kwargs): + def update_extension(self, upload_stream, publisher_name, extension_name, bypass_scope_check=None, **kwargs): """UpdateExtension. - [Preview API] + [Preview API] REST endpoint to update an extension. :param object upload_stream: Stream to upload - :param str publisher_name: - :param str extension_name: - :rtype: :class:` ` + :param str publisher_name: Name of the publisher + :param str extension_name: Name of the extension + :param bool bypass_scope_check: This parameter decides if the scope change check needs to be invoked or not + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') if extension_name is not None: route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + query_parameters = {} + if bypass_scope_check is not None: + query_parameters['bypassScopeCheck'] = self._serialize.query('bypass_scope_check', bypass_scope_check, 'bool') if "callback" in kwargs: callback = kwargs["callback"] else: @@ -896,8 +928,9 @@ def update_extension(self, upload_stream, publisher_name, extension_name, **kwar content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, + query_parameters=query_parameters, content=content, media_type='application/octet-stream') return self._deserialize('PublishedExtension', response) @@ -908,7 +941,7 @@ def update_extension_properties(self, publisher_name, extension_name, flags): :param str publisher_name: :param str extension_name: :param str flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -920,34 +953,78 @@ def update_extension_properties(self, publisher_name, extension_name, flags): query_parameters['flags'] = self._serialize.query('flags', flags, 'str') response = self._send(http_method='PATCH', location_id='e11ea35a-16fe-4b80-ab11-c4cab88a0966', - version='4.1-preview.2', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PublishedExtension', response) + def share_extension_with_host(self, publisher_name, extension_name, host_type, host_name): + """ShareExtensionWithHost. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str host_type: + :param str host_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if host_type is not None: + route_values['hostType'] = self._serialize.url('host_type', host_type, 'str') + if host_name is not None: + route_values['hostName'] = self._serialize.url('host_name', host_name, 'str') + self._send(http_method='POST', + location_id='328a3af8-d124-46e9-9483-01690cd415b9', + version='5.1-preview.1', + route_values=route_values) + + def unshare_extension_with_host(self, publisher_name, extension_name, host_type, host_name): + """UnshareExtensionWithHost. + [Preview API] + :param str publisher_name: + :param str extension_name: + :param str host_type: + :param str host_name: + """ + route_values = {} + if publisher_name is not None: + route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') + if extension_name is not None: + route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str') + if host_type is not None: + route_values['hostType'] = self._serialize.url('host_type', host_type, 'str') + if host_name is not None: + route_values['hostName'] = self._serialize.url('host_name', host_name, 'str') + self._send(http_method='DELETE', + location_id='328a3af8-d124-46e9-9483-01690cd415b9', + version='5.1-preview.1', + route_values=route_values) + def extension_validator(self, azure_rest_api_request_model): """ExtensionValidator. [Preview API] - :param :class:` ` azure_rest_api_request_model: + :param :class:` ` azure_rest_api_request_model: """ content = self._serialize.body(azure_rest_api_request_model, 'AzureRestApiRequestModel') self._send(http_method='POST', location_id='05e8a5e1-8c59-4c2c-8856-0ff087d1a844', - version='4.1-preview.1', + version='5.1-preview.1', content=content) def send_notifications(self, notification_data): """SendNotifications. [Preview API] Send Notification - :param :class:` ` notification_data: Denoting the data needed to send notification + :param :class:` ` notification_data: Denoting the data needed to send notification """ content = self._serialize.body(notification_data, 'NotificationsData') self._send(http_method='POST', location_id='eab39817-413c-4602-a49f-07ad00844980', - version='4.1-preview.1', + version='5.1-preview.1', content=content) - def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None, **kwargs): + def get_package(self, publisher_name, extension_name, version, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetPackage. [Preview API] This endpoint gets hit when you download a VSTS extension from the Web UI :param str publisher_name: @@ -955,6 +1032,7 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non :param str version: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -971,7 +1049,7 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='7cb576f8-1cae-4c4b-b7b1-e4af5759e965', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -981,7 +1059,7 @@ def get_package(self, publisher_name, extension_name, version, account_token=Non callback = None return self._client.stream_download(response, callback=callback) - def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None, **kwargs): + def get_asset_with_token(self, publisher_name, extension_name, version, asset_type, asset_token=None, account_token=None, accept_default=None, account_token_header=None, **kwargs): """GetAssetWithToken. [Preview API] :param str publisher_name: @@ -991,6 +1069,7 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty :param str asset_token: :param str account_token: :param bool accept_default: + :param String account_token_header: Header to pass the account token :rtype: object """ route_values = {} @@ -1011,7 +1090,7 @@ def get_asset_with_token(self, publisher_name, extension_name, version, asset_ty query_parameters['acceptDefault'] = self._serialize.query('accept_default', accept_default, 'bool') response = self._send(http_method='GET', location_id='364415a1-0077-4a41-a7a0-06edd4497492', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -1035,7 +1114,7 @@ def delete_publisher_asset(self, publisher_name, asset_type=None): query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') self._send(http_method='DELETE', location_id='21143299-34f9-4c62-8ca8-53da691192f9', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -1054,7 +1133,7 @@ def get_publisher_asset(self, publisher_name, asset_type=None, **kwargs): query_parameters['assetType'] = self._serialize.query('asset_type', asset_type, 'str') response = self._send(http_method='GET', location_id='21143299-34f9-4c62-8ca8-53da691192f9', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -1086,7 +1165,7 @@ def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='21143299-34f9-4c62-8ca8-53da691192f9', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -1096,26 +1175,26 @@ def update_publisher_asset(self, upload_stream, publisher_name, asset_type=None, def query_publishers(self, publisher_query): """QueryPublishers. [Preview API] - :param :class:` ` publisher_query: - :rtype: :class:` ` + :param :class:` ` publisher_query: + :rtype: :class:` ` """ content = self._serialize.body(publisher_query, 'PublisherQuery') response = self._send(http_method='POST', location_id='2ad6ee0a-b53f-4034-9d1d-d009fda1212e', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('PublisherQueryResult', response) def create_publisher(self, publisher): """CreatePublisher. [Preview API] - :param :class:` ` publisher: - :rtype: :class:` ` + :param :class:` ` publisher: + :rtype: :class:` ` """ content = self._serialize.body(publisher, 'Publisher') response = self._send(http_method='POST', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('Publisher', response) @@ -1129,7 +1208,7 @@ def delete_publisher(self, publisher_name): route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str') self._send(http_method='DELETE', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_publisher(self, publisher_name, flags=None): @@ -1137,7 +1216,7 @@ def get_publisher(self, publisher_name, flags=None): [Preview API] :param str publisher_name: :param int flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1147,7 +1226,7 @@ def get_publisher(self, publisher_name, flags=None): query_parameters['flags'] = self._serialize.query('flags', flags, 'int') response = self._send(http_method='GET', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Publisher', response) @@ -1155,9 +1234,9 @@ def get_publisher(self, publisher_name, flags=None): def update_publisher(self, publisher, publisher_name): """UpdatePublisher. [Preview API] - :param :class:` ` publisher: + :param :class:` ` publisher: :param str publisher_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1165,7 +1244,7 @@ def update_publisher(self, publisher, publisher_name): content = self._serialize.body(publisher, 'Publisher') response = self._send(http_method='PUT', location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Publisher', response) @@ -1178,7 +1257,7 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a :param int count: Number of questions to retrieve (defaults to 10). :param int page: Page number from which set of questions are to be retrieved. :param datetime after_date: If provided, results questions are returned which were posted after this date - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1194,7 +1273,7 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='c010d03d-812c-4ade-ae07-c1862475eda5', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QuestionsResult', response) @@ -1202,11 +1281,11 @@ def get_questions(self, publisher_name, extension_name, count=None, page=None, a def report_question(self, concern, pub_name, ext_name, question_id): """ReportQuestion. [Preview API] Flags a concern with an existing question for an extension. - :param :class:` ` concern: User reported concern with a question for the extension. + :param :class:` ` concern: User reported concern with a question for the extension. :param str pub_name: Name of the publisher who published the extension. :param str ext_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1218,7 +1297,7 @@ def report_question(self, concern, pub_name, ext_name, question_id): content = self._serialize.body(concern, 'Concern') response = self._send(http_method='POST', location_id='784910cd-254a-494d-898b-0728549b2f10', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Concern', response) @@ -1226,10 +1305,10 @@ def report_question(self, concern, pub_name, ext_name, question_id): def create_question(self, question, publisher_name, extension_name): """CreateQuestion. [Preview API] Creates a new question for an extension. - :param :class:` ` question: Question to be created for the extension. + :param :class:` ` question: Question to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1239,7 +1318,7 @@ def create_question(self, question, publisher_name, extension_name): content = self._serialize.body(question, 'Question') response = self._send(http_method='POST', location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Question', response) @@ -1260,17 +1339,17 @@ def delete_question(self, publisher_name, extension_name, question_id): route_values['questionId'] = self._serialize.url('question_id', question_id, 'long') self._send(http_method='DELETE', location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def update_question(self, question, publisher_name, extension_name, question_id): """UpdateQuestion. [Preview API] Updates an existing question for an extension. - :param :class:` ` question: Updated question to be set for the extension. + :param :class:` ` question: Updated question to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question to be updated for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1282,7 +1361,7 @@ def update_question(self, question, publisher_name, extension_name, question_id) content = self._serialize.body(question, 'Question') response = self._send(http_method='PATCH', location_id='6d1d9741-eca8-4701-a3a5-235afc82dfa4', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Question', response) @@ -1290,11 +1369,11 @@ def update_question(self, question, publisher_name, extension_name, question_id) def create_response(self, response, publisher_name, extension_name, question_id): """CreateResponse. [Preview API] Creates a new response for a given question for an extension. - :param :class:` ` response: Response to be created for the extension. + :param :class:` ` response: Response to be created for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be created for the extension. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1306,7 +1385,7 @@ def create_response(self, response, publisher_name, extension_name, question_id) content = self._serialize.body(response, 'Response') response = self._send(http_method='POST', location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Response', response) @@ -1330,18 +1409,18 @@ def delete_response(self, publisher_name, extension_name, question_id, response_ route_values['responseId'] = self._serialize.url('response_id', response_id, 'long') self._send(http_method='DELETE', location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def update_response(self, response, publisher_name, extension_name, question_id, response_id): """UpdateResponse. [Preview API] Updates an existing response for a given question for an extension. - :param :class:` ` response: Updated response to be set for the extension. + :param :class:` ` response: Updated response to be set for the extension. :param str publisher_name: Name of the publisher who published the extension. :param str extension_name: Name of the extension. :param long question_id: Identifier of the question for which response is to be updated for the extension. :param long response_id: Identifier of the response which has to be updated. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1355,7 +1434,7 @@ def update_response(self, response, publisher_name, extension_name, question_id, content = self._serialize.body(response, 'Response') response = self._send(http_method='PATCH', location_id='7f8ae5e0-46b0-438f-b2e8-13e8513517bd', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Response', response) @@ -1384,7 +1463,7 @@ def get_extension_reports(self, publisher_name, extension_name, days=None, count query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='79e0c74f-157f-437e-845f-74fbb4121d4c', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('object', response) @@ -1398,7 +1477,7 @@ def get_reviews(self, publisher_name, extension_name, count=None, filter_options :param str filter_options: FilterOptions to filter out empty reviews etcetera, defaults to none :param datetime before_date: Use if you want to fetch reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1416,7 +1495,7 @@ def get_reviews(self, publisher_name, extension_name, count=None, filter_options query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='5b3f819f-f247-42ad-8c00-dd9ab9ab246d', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReviewsResult', response) @@ -1428,7 +1507,7 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N :param str ext_name: Name of the extension :param datetime before_date: Use if you want to fetch summary of reviews older than the specified date, defaults to null :param datetime after_date: Use if you want to fetch summary of reviews newer than the specified date, defaults to null - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1442,7 +1521,7 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='b7b44e21-209e-48f0-ae78-04727fc37d77', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReviewSummary', response) @@ -1450,10 +1529,10 @@ def get_reviews_summary(self, pub_name, ext_name, before_date=None, after_date=N def create_review(self, review, pub_name, ext_name): """CreateReview. [Preview API] Creates a new review for an extension - :param :class:` ` review: Review to be created for the extension + :param :class:` ` review: Review to be created for the extension :param str pub_name: Name of the publisher who published the extension :param str ext_name: Name of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1463,7 +1542,7 @@ def create_review(self, review, pub_name, ext_name): content = self._serialize.body(review, 'Review') response = self._send(http_method='POST', location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Review', response) @@ -1484,17 +1563,17 @@ def delete_review(self, pub_name, ext_name, review_id): route_values['reviewId'] = self._serialize.url('review_id', review_id, 'long') self._send(http_method='DELETE', location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def update_review(self, review_patch, pub_name, ext_name, review_id): """UpdateReview. [Preview API] Updates or Flags a review - :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review + :param :class:` ` review_patch: ReviewPatch object which contains the changes to be applied to the review :param str pub_name: Name of the pubilsher who published the extension :param str ext_name: Name of the extension :param long review_id: Id of the review which needs to be updated - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if pub_name is not None: @@ -1506,7 +1585,7 @@ def update_review(self, review_patch, pub_name, ext_name, review_id): content = self._serialize.body(review_patch, 'ReviewPatch') response = self._send(http_method='PATCH', location_id='e6e85b9d-aa70-40e6-aa28-d0fbf40b91a3', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('ReviewPatch', response) @@ -1514,13 +1593,13 @@ def update_review(self, review_patch, pub_name, ext_name, review_id): def create_category(self, category): """CreateCategory. [Preview API] - :param :class:` ` category: - :rtype: :class:` ` + :param :class:` ` category: + :rtype: :class:` ` """ content = self._serialize.body(category, 'ExtensionCategory') response = self._send(http_method='POST', location_id='476531a3-7024-4516-a76a-ed64d3008ad6', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('ExtensionCategory', response) @@ -1538,7 +1617,7 @@ def get_gallery_user_settings(self, user_scope, key=None): route_values['key'] = self._serialize.url('key', key, 'str') response = self._send(http_method='GET', location_id='9b75ece3-7960-401c-848b-148ac01ca350', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('{object}', self._unwrap_collection(response)) @@ -1554,7 +1633,7 @@ def set_gallery_user_settings(self, entries, user_scope): content = self._serialize.body(entries, '{object}') self._send(http_method='PATCH', location_id='9b75ece3-7960-401c-848b-148ac01ca350', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) @@ -1572,7 +1651,7 @@ def generate_key(self, key_type, expire_current_seconds=None): query_parameters['expireCurrentSeconds'] = self._serialize.query('expire_current_seconds', expire_current_seconds, 'int') self._send(http_method='POST', location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -1587,14 +1666,14 @@ def get_signing_key(self, key_type): route_values['keyType'] = self._serialize.url('key_type', key_type, 'str') response = self._send(http_method='GET', location_id='92ed5cf4-c38b-465a-9059-2f2fb7c624b5', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('str', response) def update_extension_statistics(self, extension_statistics_update, publisher_name, extension_name): """UpdateExtensionStatistics. [Preview API] - :param :class:` ` extension_statistics_update: + :param :class:` ` extension_statistics_update: :param str publisher_name: :param str extension_name: """ @@ -1606,7 +1685,7 @@ def update_extension_statistics(self, extension_statistics_update, publisher_nam content = self._serialize.body(extension_statistics_update, 'ExtensionStatisticUpdate') self._send(http_method='PATCH', location_id='a0ea3204-11e9-422d-a9ca-45851cc41400', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) @@ -1618,7 +1697,7 @@ def get_extension_daily_stats(self, publisher_name, extension_name, days=None, a :param int days: :param str aggregate: :param datetime after_date: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1634,7 +1713,7 @@ def get_extension_daily_stats(self, publisher_name, extension_name, days=None, a query_parameters['afterDate'] = self._serialize.query('after_date', after_date, 'iso-8601') response = self._send(http_method='GET', location_id='ae06047e-51c5-4fb4-ab65-7be488544416', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ExtensionDailyStats', response) @@ -1645,7 +1724,7 @@ def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, ve :param str publisher_name: Name of the publisher :param str extension_name: Name of the extension :param str version: Version of the extension - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -1656,7 +1735,7 @@ def get_extension_daily_stats_anonymous(self, publisher_name, extension_name, ve route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='GET', location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ExtensionDailyStats', response) @@ -1680,7 +1759,7 @@ def increment_extension_daily_stat(self, publisher_name, extension_name, version query_parameters['statType'] = self._serialize.query('stat_type', stat_type, 'str') self._send(http_method='POST', location_id='4fa7adb6-ca65-4075-a232-5f28323288ea', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) @@ -1701,7 +1780,7 @@ def get_verification_log(self, publisher_name, extension_name, version, **kwargs route_values['version'] = self._serialize.url('version', version, 'str') response = self._send(http_method='GET', location_id='c5523abe-b843-437f-875b-5833064efe4d', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: diff --git a/azure-devops/azure/devops/v4_1/gallery/models.py b/azure-devops/azure/devops/v5_1/gallery/models.py similarity index 94% rename from azure-devops/azure/devops/v4_1/gallery/models.py rename to azure-devops/azure/devops/v5_1/gallery/models.py index 21a3e8ae..9d809d39 100644 --- a/azure-devops/azure/devops/v4_1/gallery/models.py +++ b/azure-devops/azure/devops/v5_1/gallery/models.py @@ -37,11 +37,11 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param target: The target that this options refer to :type target: str """ @@ -85,7 +85,7 @@ class AssetDetails(Model): """AssetDetails. :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` + :type answers: :class:`Answers ` :param publisher_natural_identifier: Gets or sets the VS publisher Id :type publisher_natural_identifier: str """ @@ -125,7 +125,7 @@ class AzureRestApiRequestModel(Model): """AzureRestApiRequestModel. :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` + :type asset_details: :class:`AssetDetails ` :param asset_id: Gets or sets the asset id :type asset_id: str :param asset_version: Gets or sets the asset version @@ -173,7 +173,7 @@ class CategoriesResult(Model): """CategoriesResult. :param categories: - :type categories: list of :class:`ExtensionCategory ` + :type categories: list of :class:`ExtensionCategory ` """ _attribute_map = { @@ -269,7 +269,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id @@ -333,7 +333,7 @@ class ExtensionCategory(Model): :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles :type language: str :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` + :type language_titles: list of :class:`CategoryLanguageTitle ` :param parent_category_name: This is the internal name of the parent if this is associated with a parent :type parent_category_name: str """ @@ -361,7 +361,7 @@ class ExtensionDailyStat(Model): """ExtensionDailyStat. :param counts: Stores the event counts - :type counts: :class:`EventCounts ` + :type counts: :class:`EventCounts ` :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. :type extended_stats: dict :param statistic_date: Timestamp of this data point @@ -389,7 +389,7 @@ class ExtensionDailyStats(Model): """ExtensionDailyStats. :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` + :type daily_stats: list of :class:`ExtensionDailyStat ` :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. :type extension_id: str :param extension_name: Name of the extension @@ -421,7 +421,7 @@ class ExtensionDraft(Model): """ExtensionDraft. :param assets: - :type assets: list of :class:`ExtensionDraftAsset ` + :type assets: list of :class:`ExtensionDraftAsset ` :param created_date: :type created_date: datetime :param draft_state: @@ -433,7 +433,7 @@ class ExtensionDraft(Model): :param last_updated: :type last_updated: datetime :param payload: - :type payload: :class:`ExtensionPayload ` + :type payload: :class:`ExtensionPayload ` :param product: :type product: str :param publisher_name: @@ -477,7 +477,7 @@ class ExtensionDraftPatch(Model): """ExtensionDraftPatch. :param extension_data: - :type extension_data: :class:`UnpackagedExtensionData ` + :type extension_data: :class:`UnpackagedExtensionData ` :param operation: :type operation: object """ @@ -499,7 +499,7 @@ class ExtensionEvent(Model): :param id: Id which identifies each data point uniquely :type id: long :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param statistic_date: Timestamp of when the event occurred :type statistic_date: datetime :param version: Version of the extension @@ -577,11 +577,11 @@ class ExtensionFilterResult(Model): """ExtensionFilterResult. :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. :type paging_token: str :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` """ _attribute_map = { @@ -601,7 +601,7 @@ class ExtensionFilterResultMetadata(Model): """ExtensionFilterResultMetadata. :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` + :type metadata_items: list of :class:`MetadataItem ` :param metadata_type: Defines the category of metadata items :type metadata_type: str """ @@ -643,7 +643,9 @@ class ExtensionPayload(Model): :param file_name: :type file_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` + :param is_preview: + :type is_preview: bool :param is_signed_by_microsoft: :type is_signed_by_microsoft: bool :param is_valid: @@ -659,18 +661,20 @@ class ExtensionPayload(Model): 'display_name': {'key': 'displayName', 'type': 'str'}, 'file_name': {'key': 'fileName', 'type': 'str'}, 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, + 'is_preview': {'key': 'isPreview', 'type': 'bool'}, 'is_signed_by_microsoft': {'key': 'isSignedByMicrosoft', 'type': 'bool'}, 'is_valid': {'key': 'isValid', 'type': 'bool'}, 'metadata': {'key': 'metadata', 'type': '[{ key: str; value: str }]'}, 'type': {'key': 'type', 'type': 'object'} } - def __init__(self, description=None, display_name=None, file_name=None, installation_targets=None, is_signed_by_microsoft=None, is_valid=None, metadata=None, type=None): + def __init__(self, description=None, display_name=None, file_name=None, installation_targets=None, is_preview=None, is_signed_by_microsoft=None, is_valid=None, metadata=None, type=None): super(ExtensionPayload, self).__init__() self.description = description self.display_name = display_name self.file_name = file_name self.installation_targets = installation_targets + self.is_preview = is_preview self.is_signed_by_microsoft = is_signed_by_microsoft self.is_valid = is_valid self.metadata = metadata @@ -683,7 +687,7 @@ class ExtensionQuery(Model): :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. :type asset_types: list of str :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. :type flags: object """ @@ -705,7 +709,7 @@ class ExtensionQueryResult(Model): """ExtensionQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` + :type results: list of :class:`ExtensionFilterResult ` """ _attribute_map = { @@ -722,6 +726,8 @@ class ExtensionShare(Model): :param id: :type id: str + :param is_org: + :type is_org: bool :param name: :type name: str :param type: @@ -730,13 +736,15 @@ class ExtensionShare(Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'is_org': {'key': 'isOrg', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, id=None, name=None, type=None): + def __init__(self, id=None, is_org=None, name=None, type=None): super(ExtensionShare, self).__init__() self.id = id + self.is_org = is_org self.name = name self.type = type @@ -771,7 +779,7 @@ class ExtensionStatisticUpdate(Model): :param publisher_name: :type publisher_name: str :param statistic: - :type statistic: :class:`ExtensionStatistic ` + :type statistic: :class:`ExtensionStatistic ` """ _attribute_map = { @@ -795,11 +803,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -929,7 +937,7 @@ class ProductCategoriesResult(Model): """ProductCategoriesResult. :param categories: - :type categories: list of :class:`ProductCategory ` + :type categories: list of :class:`ProductCategory ` """ _attribute_map = { @@ -945,7 +953,7 @@ class ProductCategory(Model): """ProductCategory. :param children: - :type children: list of :class:`ProductCategory ` + :type children: list of :class:`ProductCategory ` :param has_children: Indicator whether this is a leaf or there are children under this category :type has_children: bool :param id: Individual Guid of the Category @@ -985,7 +993,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -993,19 +1001,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1057,7 +1065,7 @@ class PublisherBase(Model): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1070,6 +1078,8 @@ class PublisherBase(Model): :type publisher_name: str :param short_description: :type short_description: str + :param state: + :type state: object """ _attribute_map = { @@ -1081,10 +1091,11 @@ class PublisherBase(Model): 'long_description': {'key': 'longDescription', 'type': 'str'}, 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_name': {'key': 'publisherName', 'type': 'str'}, - 'short_description': {'key': 'shortDescription', 'type': 'str'} + 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'object'} } - def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None): + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, state=None): super(PublisherBase, self).__init__() self.display_name = display_name self.email_address = email_address @@ -1095,6 +1106,7 @@ def __init__(self, display_name=None, email_address=None, extensions=None, flags self.publisher_id = publisher_id self.publisher_name = publisher_name self.short_description = short_description + self.state = state class PublisherFacts(Model): @@ -1129,7 +1141,7 @@ class PublisherFilterResult(Model): """PublisherFilterResult. :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` + :type publishers: list of :class:`Publisher ` """ _attribute_map = { @@ -1145,7 +1157,7 @@ class PublisherQuery(Model): """PublisherQuery. :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. :type flags: object """ @@ -1165,7 +1177,7 @@ class PublisherQueryResult(Model): """PublisherQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` + :type results: list of :class:`PublisherFilterResult ` """ _attribute_map = { @@ -1191,7 +1203,7 @@ class QnAItem(Model): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1217,7 +1229,7 @@ class QueryFilter(Model): """QueryFilter. :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` + :type criteria: list of :class:`FilterCriteria ` :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. :type direction: object :param page_number: The page number requested by the user. If not provided 1 is assumed by default. @@ -1267,9 +1279,9 @@ class Question(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` + :type responses: list of :class:`Response ` """ _attribute_map = { @@ -1293,7 +1305,7 @@ class QuestionsResult(Model): :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) :type has_more_questions: bool :param questions: List of the QnA threads - :type questions: list of :class:`Question ` + :type questions: list of :class:`Question ` """ _attribute_map = { @@ -1357,7 +1369,7 @@ class Response(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1377,7 +1389,7 @@ class Review(Model): """Review. :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` + :type admin_reply: :class:`ReviewReply ` :param id: Unique identifier of a review item :type id: long :param is_deleted: Flag for soft deletion @@ -1389,7 +1401,7 @@ class Review(Model): :param rating: Rating procided by the user :type rating: str :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` + :type reply: :class:`ReviewReply ` :param text: Text description of the review :type text: str :param title: Title of the review @@ -1439,9 +1451,9 @@ class ReviewPatch(Model): :param operation: Denotes the patch operation type :type operation: object :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` + :type reported_concern: :class:`UserReportedConcern ` :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` + :type review_item: :class:`Review ` """ _attribute_map = { @@ -1507,7 +1519,7 @@ class ReviewsResult(Model): :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) :type has_more_reviews: bool :param reviews: List of reviews - :type reviews: list of :class:`Review ` + :type reviews: list of :class:`Review ` :param total_review_count: Count of total review items :type total_review_count: long """ @@ -1533,7 +1545,7 @@ class ReviewSummary(Model): :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` + :type rating_split: list of :class:`RatingCountPerRating ` """ _attribute_map = { @@ -1563,9 +1575,11 @@ class UnpackagedExtensionData(Model): :param extension_name: :type extension_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param is_converted_to_markdown: :type is_converted_to_markdown: bool + :param is_preview: + :type is_preview: bool :param pricing_category: :type pricing_category: str :param product: @@ -1594,6 +1608,7 @@ class UnpackagedExtensionData(Model): 'extension_name': {'key': 'extensionName', 'type': 'str'}, 'installation_targets': {'key': 'installationTargets', 'type': '[InstallationTarget]'}, 'is_converted_to_markdown': {'key': 'isConvertedToMarkdown', 'type': 'bool'}, + 'is_preview': {'key': 'isPreview', 'type': 'bool'}, 'pricing_category': {'key': 'pricingCategory', 'type': 'str'}, 'product': {'key': 'product', 'type': 'str'}, 'publisher_name': {'key': 'publisherName', 'type': 'str'}, @@ -1605,7 +1620,7 @@ class UnpackagedExtensionData(Model): 'vsix_id': {'key': 'vsixId', 'type': 'str'} } - def __init__(self, categories=None, description=None, display_name=None, draft_id=None, extension_name=None, installation_targets=None, is_converted_to_markdown=None, pricing_category=None, product=None, publisher_name=None, qn_aEnabled=None, referral_url=None, repository_url=None, tags=None, version=None, vsix_id=None): + def __init__(self, categories=None, description=None, display_name=None, draft_id=None, extension_name=None, installation_targets=None, is_converted_to_markdown=None, is_preview=None, pricing_category=None, product=None, publisher_name=None, qn_aEnabled=None, referral_url=None, repository_url=None, tags=None, version=None, vsix_id=None): super(UnpackagedExtensionData, self).__init__() self.categories = categories self.description = description @@ -1614,6 +1629,7 @@ def __init__(self, categories=None, description=None, display_name=None, draft_i self.extension_name = extension_name self.installation_targets = installation_targets self.is_converted_to_markdown = is_converted_to_markdown + self.is_preview = is_preview self.pricing_category = pricing_category self.product = product self.publisher_name = publisher_name @@ -1691,7 +1707,7 @@ class Concern(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param category: Category of the concern :type category: object """ @@ -1740,7 +1756,7 @@ class Publisher(PublisherBase): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1753,8 +1769,10 @@ class Publisher(PublisherBase): :type publisher_name: str :param short_description: :type short_description: str + :param state: + :type state: object :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1767,11 +1785,12 @@ class Publisher(PublisherBase): 'publisher_id': {'key': 'publisherId', 'type': 'str'}, 'publisher_name': {'key': 'publisherName', 'type': 'str'}, 'short_description': {'key': 'shortDescription', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'object'}, '_links': {'key': '_links', 'type': 'ReferenceLinks'} } - def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, _links=None): - super(Publisher, self).__init__(display_name=display_name, email_address=email_address, extensions=extensions, flags=flags, last_updated=last_updated, long_description=long_description, publisher_id=publisher_id, publisher_name=publisher_name, short_description=short_description) + def __init__(self, display_name=None, email_address=None, extensions=None, flags=None, last_updated=None, long_description=None, publisher_id=None, publisher_name=None, short_description=None, state=None, _links=None): + super(Publisher, self).__init__(display_name=display_name, email_address=email_address, extensions=extensions, flags=flags, last_updated=last_updated, long_description=long_description, publisher_id=publisher_id, publisher_name=publisher_name, short_description=short_description, state=state) self._links = _links diff --git a/azure-devops/azure/devops/v4_0/git/__init__.py b/azure-devops/azure/devops/v5_1/git/__init__.py similarity index 84% rename from azure-devops/azure/devops/v4_0/git/__init__.py rename to azure-devops/azure/devops/v5_1/git/__init__.py index 083cea34..c870d7a5 100644 --- a/azure-devops/azure/devops/v4_0/git/__init__.py +++ b/azure-devops/azure/devops/v5_1/git/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,7 +9,6 @@ from .models import * __all__ = [ - 'AssociatedWorkItem', 'Attachment', 'Change', 'Comment', @@ -19,6 +18,9 @@ 'CommentThreadContext', 'CommentTrackingCriteria', 'FileContentMetadata', + 'FileDiff', + 'FileDiffParams', + 'FileDiffsCriteria', 'GitAnnotatedTag', 'GitAsyncRefOperation', 'GitAsyncRefOperationDetail', @@ -33,6 +35,7 @@ 'GitCommitDiffs', 'GitCommitRef', 'GitConflict', + 'GitConflictUpdateResult', 'GitDeletedRepository', 'GitFilePathsCollection', 'GitForkOperationStatusDetail', @@ -47,8 +50,12 @@ 'GitItem', 'GitItemDescriptor', 'GitItemRequestData', + 'GitMerge', + 'GitMergeOperationStatusDetail', 'GitMergeOriginRef', + 'GitMergeParameters', 'GitObject', + 'GitPolicyConfigurationResponse', 'GitPullRequest', 'GitPullRequestChange', 'GitPullRequestCommentThread', @@ -66,6 +73,7 @@ 'GitPushSearchCriteria', 'GitQueryBranchStatsCriteria', 'GitQueryCommitsCriteria', + 'GitRecycleBinRepositoryDetails', 'GitRef', 'GitRefFavorite', 'GitRefUpdate', @@ -88,17 +96,24 @@ 'GitUserDate', 'GitVersionDescriptor', 'GlobalGitRepositoryKey', + 'GraphSubjectBase', 'IdentityRef', 'IdentityRefWithVote', 'ImportRepositoryValidation', 'ItemContent', 'ItemModel', + 'JsonPatchOperation', + 'LineDiffBlock', + 'PolicyConfiguration', + 'PolicyConfigurationRef', + 'PolicyTypeRef', 'ReferenceLinks', 'ResourceRef', 'ShareNotificationContext', 'SourceToTargetRef', 'TeamProjectCollectionReference', 'TeamProjectReference', + 'VersionedPolicyConfigurationRef', 'VstsInfo', 'WebApiCreateTagRequestData', 'WebApiTagDefinition', diff --git a/azure-devops/azure/devops/v4_0/git/git_client_base.py b/azure-devops/azure/devops/v5_1/git/git_client_base.py similarity index 64% rename from azure-devops/azure/devops/v4_0/git/git_client_base.py rename to azure-devops/azure/devops/v5_1/git/git_client_base.py index cec91471..6e6feca9 100644 --- a/azure-devops/azure/devops/v4_0/git/git_client_base.py +++ b/azure-devops/azure/devops/v5_1/git/git_client_base.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,11 +27,11 @@ def __init__(self, base_url=None, creds=None): def create_annotated_tag(self, tag_object, project, repository_id): """CreateAnnotatedTag. - [Preview API] Create an annotated tag - :param :class:` ` tag_object: Object containing details of tag to be created + [Preview API] Create an annotated tag. + :param :class:` ` tag_object: Object containing details of tag to be created. :param str project: Project ID or project name - :param str repository_id: Friendly name or guid of repository - :rtype: :class:` ` + :param str repository_id: ID or name of the repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -41,18 +41,18 @@ def create_annotated_tag(self, tag_object, project, repository_id): content = self._serialize.body(tag_object, 'GitAnnotatedTag') response = self._send(http_method='POST', location_id='5e8a8081-3851-4626-b677-9891cc04102e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitAnnotatedTag', response) def get_annotated_tag(self, project, repository_id, object_id): """GetAnnotatedTag. - [Preview API] Get an annotated tag + [Preview API] Get an annotated tag. :param str project: Project ID or project name - :param str repository_id: - :param str object_id: Sha1 of annotated tag to be returned - :rtype: :class:` ` + :param str repository_id: ID or name of the repository. + :param str object_id: ObjectId (Sha1Id) of tag to get. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -63,19 +63,20 @@ def get_annotated_tag(self, project, repository_id, object_id): route_values['objectId'] = self._serialize.url('object_id', object_id, 'str') response = self._send(http_method='GET', location_id='5e8a8081-3851-4626-b677-9891cc04102e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitAnnotatedTag', response) - def get_blob(self, repository_id, sha1, project=None, download=None, file_name=None): + def get_blob(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None): """GetBlob. - Gets a single blob. - :param str repository_id: - :param str sha1: + [Preview API] Get a single blob. + :param str repository_id: The name or ID of the repository. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name - :param bool download: - :param str file_name: - :rtype: :class:` ` + :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip + :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -89,21 +90,24 @@ def get_blob(self, repository_id, sha1, project=None, download=None, file_name=N query_parameters['download'] = self._serialize.query('download', download, 'bool') if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitBlobRef', response) - def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): + def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None, **kwargs): """GetBlobContent. - Gets a single blob. - :param str repository_id: - :param str sha1: + [Preview API] Get a single blob. + :param str repository_id: The name or ID of the repository. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name - :param bool download: - :param str file_name: + :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip + :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types :rtype: object """ route_values = {} @@ -118,9 +122,11 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil query_parameters['download'] = self._serialize.query('download', download, 'bool') if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -132,9 +138,9 @@ def get_blob_content(self, repository_id, sha1, project=None, download=None, fil def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, **kwargs): """GetBlobsZip. - Gets one or more blobs in a zip file download. - :param [str] blob_ids: - :param str repository_id: + [Preview API] Gets one or more blobs in a zip file download. + :param [str] blob_ids: Blob IDs (SHA1 hashes) to be returned in the zip file. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name :param str filename: :rtype: object @@ -150,7 +156,7 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, ** content = self._serialize.body(blob_ids, '[str]') response = self._send(http_method='POST', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -161,14 +167,15 @@ def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, ** callback = None return self._client.stream_download(response, callback=callback) - def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None, **kwargs): + def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None, **kwargs): """GetBlobZip. - Gets a single blob. - :param str repository_id: - :param str sha1: + [Preview API] Get a single blob. + :param str repository_id: The name or ID of the repository. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. :param str project: Project ID or project name - :param bool download: - :param str file_name: + :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip + :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types :rtype: object """ route_values = {} @@ -183,9 +190,11 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na query_parameters['download'] = self._serialize.query('download', download, 'bool') if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -197,12 +206,12 @@ def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_na def get_branch(self, repository_id, name, project=None, base_version_descriptor=None): """GetBranch. - Retrieve statistics about a single branch. - :param str repository_id: Friendly name or guid of repository - :param str name: Name of the branch + [Preview API] Retrieve statistics about a single branch. + :param str repository_id: The name or ID of the repository. + :param str name: Name of the branch. :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -221,17 +230,17 @@ def get_branch(self, repository_id, name, project=None, base_version_descriptor= query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitBranchStats', response) def get_branches(self, repository_id, project=None, base_version_descriptor=None): """GetBranches. - Retrieve statistics about all branches within a repository. - :param str repository_id: Friendly name or guid of repository + [Preview API] Retrieve statistics about all branches within a repository. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param :class:` ` base_version_descriptor: + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. :rtype: [GitBranchStats] """ route_values = {} @@ -249,41 +258,20 @@ def get_branches(self, repository_id, project=None, base_version_descriptor=None query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options response = self._send(http_method='GET', location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitBranchStats]', self._unwrap_collection(response)) - def get_branch_stats_batch(self, search_criteria, repository_id, project=None): - """GetBranchStatsBatch. - Retrieve statistics for multiple commits - :param :class:` ` search_criteria: - :param str repository_id: Friendly name or guid of repository - :param str project: Project ID or project name - :rtype: [GitBranchStats] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if repository_id is not None: - route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') - content = self._serialize.body(search_criteria, 'GitQueryBranchStatsCriteria') - response = self._send(http_method='POST', - location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('[GitBranchStats]', self._unwrap_collection(response)) - def get_changes(self, commit_id, repository_id, project=None, top=None, skip=None): """GetChanges. - Retrieve changes for a particular commit. + [Preview API] Retrieve changes for a particular commit. :param str commit_id: The id of the commit. :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name :param int top: The maximum number of changes to return. :param int skip: The number of changes to skip. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -299,18 +287,18 @@ def get_changes(self, commit_id, repository_id, project=None, top=None, skip=Non query_parameters['skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='5bf884f5-3e07-42e9-afb8-1b872267bf16', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommitChanges', response) def create_cherry_pick(self, cherry_pick_to_create, project, repository_id): """CreateCherryPick. - [Preview API] - :param :class:` ` cherry_pick_to_create: + [Preview API] Cherry pick a specific commit or commits that are associated to a pull request into a new branch. + :param :class:` ` cherry_pick_to_create: :param str project: Project ID or project name - :param str repository_id: - :rtype: :class:` ` + :param str repository_id: ID of the repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -320,18 +308,18 @@ def create_cherry_pick(self, cherry_pick_to_create, project, repository_id): content = self._serialize.body(cherry_pick_to_create, 'GitAsyncRefOperationParameters') response = self._send(http_method='POST', location_id='033bad68-9a14-43d1-90e0-59cb8856fef6', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitCherryPick', response) def get_cherry_pick(self, project, cherry_pick_id, repository_id): """GetCherryPick. - [Preview API] + [Preview API] Retrieve information about a cherry pick by cherry pick Id. :param str project: Project ID or project name - :param int cherry_pick_id: - :param str repository_id: - :rtype: :class:` ` + :param int cherry_pick_id: ID of the cherry pick. + :param str repository_id: ID of the repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -342,17 +330,17 @@ def get_cherry_pick(self, project, cherry_pick_id, repository_id): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') response = self._send(http_method='GET', location_id='033bad68-9a14-43d1-90e0-59cb8856fef6', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitCherryPick', response) def get_cherry_pick_for_ref_name(self, project, repository_id, ref_name): """GetCherryPickForRefName. - [Preview API] + [Preview API] Retrieve information about a cherry pick for a specific branch. :param str project: Project ID or project name - :param str repository_id: - :param str ref_name: - :rtype: :class:` ` + :param str repository_id: ID of the repository. + :param str ref_name: The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -364,22 +352,22 @@ def get_cherry_pick_for_ref_name(self, project, repository_id, ref_name): query_parameters['refName'] = self._serialize.query('ref_name', ref_name, 'str') response = self._send(http_method='GET', location_id='033bad68-9a14-43d1-90e0-59cb8856fef6', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCherryPick', response) def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, top=None, skip=None, base_version_descriptor=None, target_version_descriptor=None): """GetCommitDiffs. - Get differences in committed items between two commits. - :param str repository_id: Friendly name or guid of repository + [Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param bool diff_common_commit: - :param int top: Maximum number of changes to return + :param bool diff_common_commit: If true, diff between common and target commits. If false, diff between base and target commits. + :param int top: Maximum number of changes to return. Defaults to 100. :param int skip: Number of changes to skip - :param :class:` ` base_version_descriptor: - :param :class:` ` target_version_descriptor: - :rtype: :class:` ` + :param :class:` ` base_version_descriptor: Descriptor for base commit. + :param :class:` ` target_version_descriptor: Descriptor for target commit. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -409,19 +397,19 @@ def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, query_parameters['targetVersionOptions'] = target_version_descriptor.target_version_options response = self._send(http_method='GET', location_id='615588d5-c0c7-4b88-88f8-e625306446e8', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommitDiffs', response) def get_commit(self, commit_id, repository_id, project=None, change_count=None): """GetCommit. - Retrieve a particular commit. + [Preview API] Retrieve a particular commit. :param str commit_id: The id of the commit. :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param str project: Project ID or project name :param int change_count: The number of changes to include in the result. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -435,16 +423,16 @@ def get_commit(self, commit_id, repository_id, project=None, change_count=None): query_parameters['changeCount'] = self._serialize.query('change_count', change_count, 'int') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitCommit', response) def get_commits(self, repository_id, search_criteria, project=None, skip=None, top=None): """GetCommits. - Retrieve git commits for a project + [Preview API] Retrieve git commits for a project :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. - :param :class:` ` search_criteria: + :param :class:` ` search_criteria: :param str project: Project ID or project name :param int skip: :param int top: @@ -497,6 +485,10 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links if search_criteria.include_work_items is not None: query_parameters['searchCriteria.includeWorkItems'] = search_criteria.include_work_items + if search_criteria.include_user_image_url is not None: + query_parameters['searchCriteria.includeUserImageUrl'] = search_criteria.include_user_image_url + if search_criteria.include_push_data is not None: + query_parameters['searchCriteria.includePushData'] = search_criteria.include_push_data if search_criteria.history_mode is not None: query_parameters['searchCriteria.historyMode'] = search_criteria.history_mode if skip is not None: @@ -505,20 +497,20 @@ def get_commits(self, repository_id, search_criteria, project=None, skip=None, t query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_push_commits(self, repository_id, push_id, project=None, top=None, skip=None, include_links=None): """GetPushCommits. - Retrieve a list of commits associated with a particular push. + [Preview API] Retrieve a list of commits associated with a particular push. :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. :param int push_id: The id of the push. :param str project: Project ID or project name :param int top: The maximum number of commits to return ("get the top x commits"). :param int skip: The number of commits to skip. - :param bool include_links: + :param bool include_links: Set to false to avoid including REST Url links for resources. Defaults to true. :rtype: [GitCommitRef] """ route_values = {} @@ -537,20 +529,20 @@ def get_push_commits(self, repository_id, push_id, project=None, top=None, skip= query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): """GetCommitsBatch. - Retrieve git commits for a project - :param :class:` ` search_criteria: Search options - :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + [Preview API] Retrieve git commits for a project matching the search criteria + :param :class:` ` search_criteria: Search options + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param int skip: - :param int top: - :param bool include_statuses: + :param int skip: Number of commits to skip. + :param int top: Maximum number of commits to return. + :param bool include_statuses: True to include additional commit status information. :rtype: [GitCommitRef] """ route_values = {} @@ -568,7 +560,7 @@ def get_commits_batch(self, search_criteria, repository_id, project=None, skip=N content = self._serialize.body(search_criteria, 'GitQueryCommitsCriteria') response = self._send(http_method='POST', location_id='6400dfb2-0bcb-462b-b992-5a57f8f1416c', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -585,17 +577,17 @@ def get_deleted_repositories(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='2b6869c4-cb25-42b5-b7a3-0d3e6be0a11a', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[GitDeletedRepository]', self._unwrap_collection(response)) def get_forks(self, repository_name_or_id, collection_id, project=None, include_links=None): """GetForks. [Preview API] Retrieve all forks of a repository in the collection. - :param str repository_name_or_id: ID or name of the repository. + :param str repository_name_or_id: The name or ID of the repository. :param str collection_id: Team project collection ID. :param str project: Project ID or project name - :param bool include_links: + :param bool include_links: True to include links. :rtype: [GitRepositoryRef] """ route_values = {} @@ -610,19 +602,19 @@ def get_forks(self, repository_name_or_id, collection_id, project=None, include_ query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='158c0340-bf6f-489c-9625-d572a1480d57', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRepositoryRef]', self._unwrap_collection(response)) def create_fork_sync_request(self, sync_params, repository_name_or_id, project=None, include_links=None): """CreateForkSyncRequest. - [Preview API] Request that another repository's refs be fetched into this one. - :param :class:` ` sync_params: Source repository and ref mapping. - :param str repository_name_or_id: ID or name of the repository. + [Preview API] Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the repositories endpoint + :param :class:` ` sync_params: Source repository and ref mapping. + :param str repository_name_or_id: The name or ID of the repository. :param str project: Project ID or project name :param bool include_links: True to include links - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -635,7 +627,7 @@ def create_fork_sync_request(self, sync_params, repository_name_or_id, project=N content = self._serialize.body(sync_params, 'GitForkSyncRequestParameters') response = self._send(http_method='POST', location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -644,11 +636,11 @@ def create_fork_sync_request(self, sync_params, repository_name_or_id, project=N def get_fork_sync_request(self, repository_name_or_id, fork_sync_operation_id, project=None, include_links=None): """GetForkSyncRequest. [Preview API] Get a specific fork sync operation's details. - :param str repository_name_or_id: ID or name of the repository. + :param str repository_name_or_id: The name or ID of the repository. :param int fork_sync_operation_id: OperationId of the sync request. :param str project: Project ID or project name :param bool include_links: True to include links. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -662,7 +654,7 @@ def get_fork_sync_request(self, repository_name_or_id, fork_sync_operation_id, p query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitForkSyncRequest', response) @@ -670,7 +662,7 @@ def get_fork_sync_request(self, repository_name_or_id, fork_sync_operation_id, p def get_fork_sync_requests(self, repository_name_or_id, project=None, include_abandoned=None, include_links=None): """GetForkSyncRequests. [Preview API] Retrieve all requested fork sync operations on this repository. - :param str repository_name_or_id: ID or name of the repository. + :param str repository_name_or_id: The name or ID of the repository. :param str project: Project ID or project name :param bool include_abandoned: True to include abandoned requests. :param bool include_links: True to include links. @@ -688,18 +680,18 @@ def get_fork_sync_requests(self, repository_name_or_id, project=None, include_ab query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='1703f858-b9d1-46af-ab62-483e9e1055b5', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitForkSyncRequest]', self._unwrap_collection(response)) def create_import_request(self, import_request, project, repository_id): """CreateImportRequest. - [Preview API] Create an import request - :param :class:` ` import_request: + [Preview API] Create an import request. + :param :class:` ` import_request: The import request to create. :param str project: Project ID or project name - :param str repository_id: - :rtype: :class:` ` + :param str repository_id: The name or ID of the repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -709,18 +701,18 @@ def create_import_request(self, import_request, project, repository_id): content = self._serialize.body(import_request, 'GitImportRequest') response = self._send(http_method='POST', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitImportRequest', response) def get_import_request(self, project, repository_id, import_request_id): """GetImportRequest. - [Preview API] Retrieve a particular import request + [Preview API] Retrieve a particular import request. :param str project: Project ID or project name - :param str repository_id: - :param int import_request_id: - :rtype: :class:` ` + :param str repository_id: The name or ID of the repository. + :param int import_request_id: The unique identifier for the import request. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -731,16 +723,16 @@ def get_import_request(self, project, repository_id, import_request_id): route_values['importRequestId'] = self._serialize.url('import_request_id', import_request_id, 'int') response = self._send(http_method='GET', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitImportRequest', response) def query_import_requests(self, project, repository_id, include_abandoned=None): """QueryImportRequests. - [Preview API] Retrieve import requests for a repository + [Preview API] Retrieve import requests for a repository. :param str project: Project ID or project name - :param str repository_id: - :param bool include_abandoned: + :param str repository_id: The name or ID of the repository. + :param bool include_abandoned: True to include abandoned import requests in the results. :rtype: [GitImportRequest] """ route_values = {} @@ -753,19 +745,19 @@ def query_import_requests(self, project, repository_id, include_abandoned=None): query_parameters['includeAbandoned'] = self._serialize.query('include_abandoned', include_abandoned, 'bool') response = self._send(http_method='GET', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitImportRequest]', self._unwrap_collection(response)) def update_import_request(self, import_request_to_update, project, repository_id, import_request_id): """UpdateImportRequest. - [Preview API] Update an import request - :param :class:` ` import_request_to_update: + [Preview API] Retry or abandon a failed import request. + :param :class:` ` import_request_to_update: The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned. :param str project: Project ID or project name - :param str repository_id: - :param int import_request_id: - :rtype: :class:` ` + :param str repository_id: The name or ID of the repository. + :param int import_request_id: The unique identifier for the import request to update. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -777,24 +769,26 @@ def update_import_request(self, import_request_to_update, project, repository_id content = self._serialize.body(import_request_to_update, 'GitImportRequest') response = self._send(http_method='PATCH', location_id='01828ddc-3600-4a41-8633-99b3a73a0eb3', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitImportRequest', response) - def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None): + def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None): """GetItem. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str repository_id: - :param str path: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. :param str project: Project ID or project name - :param str scope_path: - :param str recursion_level: - :param bool include_content_metadata: - :param bool latest_processed_change: - :param bool download: - :param :class:` ` version_descriptor: - :rtype: :class:` ` + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is the default branch for the repository. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -821,25 +815,31 @@ def get_item(self, repository_id, path, project=None, scope_path=None, recursion query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitItem', response) - def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, **kwargs): + def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): """GetItemContent. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str repository_id: - :param str path: - :param str project: Project ID or project name - :param str scope_path: - :param str recursion_level: - :param bool include_content_metadata: - :param bool latest_processed_change: - :param bool download: - :param :class:` ` version_descriptor: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is the default branch for the repository. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. :rtype: object """ route_values = {} @@ -867,9 +867,13 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -881,16 +885,16 @@ def get_item_content(self, repository_id, path, project=None, scope_path=None, r def get_items(self, repository_id, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, include_links=None, version_descriptor=None): """GetItems. - Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str repository_id: - :param str project: Project ID or project name - :param str scope_path: - :param str recursion_level: - :param bool include_content_metadata: - :param bool latest_processed_change: - :param bool download: - :param bool include_links: - :param :class:` ` version_descriptor: + [Preview API] Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param bool include_links: Set to true to include links to items. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is the default branch for the repository. :rtype: [GitItem] """ route_values = {} @@ -920,23 +924,25 @@ def get_items(self, repository_id, project=None, scope_path=None, recursion_leve query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitItem]', self._unwrap_collection(response)) - def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, **kwargs): + def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): """GetItemText. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str repository_id: - :param str path: - :param str project: Project ID or project name - :param str scope_path: - :param str recursion_level: - :param bool include_content_metadata: - :param bool latest_processed_change: - :param bool download: - :param :class:` ` version_descriptor: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is the default branch for the repository. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. :rtype: object """ route_values = {} @@ -964,9 +970,13 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -976,18 +986,20 @@ def get_item_text(self, repository_id, path, project=None, scope_path=None, recu callback = None return self._client.stream_download(response, callback=callback) - def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, **kwargs): + def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): """GetItemZip. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str repository_id: - :param str path: - :param str project: Project ID or project name - :param str scope_path: - :param str recursion_level: - :param bool include_content_metadata: - :param bool latest_processed_change: - :param bool download: - :param :class:` ` version_descriptor: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is the default branch for the repository. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. :rtype: object """ route_values = {} @@ -1015,9 +1027,13 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur query_parameters['versionDescriptor.version'] = version_descriptor.version if version_descriptor.version_options is not None: query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') response = self._send(http_method='GET', location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -1029,9 +1045,9 @@ def get_item_zip(self, repository_id, path, project=None, scope_path=None, recur def get_items_batch(self, request_data, repository_id, project=None): """GetItemsBatch. - Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path - :param :class:` ` request_data: - :param str repository_id: + [Preview API] Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path + :param :class:` ` request_data: Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references. + :param str repository_id: The name or ID of the repository :param str project: Project ID or project name :rtype: [[GitItem]] """ @@ -1043,20 +1059,139 @@ def get_items_batch(self, request_data, repository_id, project=None): content = self._serialize.body(request_data, 'GitItemRequestData') response = self._send(http_method='POST', location_id='630fd2e4-fb88-4f85-ad21-13f3fd1fbca9', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[[GitItem]]', self._unwrap_collection(response)) + def get_merge_bases(self, repository_name_or_id, commit_id, other_commit_id, project=None, other_collection_id=None, other_repository_id=None): + """GetMergeBases. + [Preview API] Find the merge bases of two commits, optionally across forks. If otherRepositoryId is not specified, the merge bases will only be calculated within the context of the local repositoryNameOrId. + :param str repository_name_or_id: ID or name of the local repository. + :param str commit_id: First commit, usually the tip of the target branch of the potential merge. + :param str other_commit_id: Other commit, usually the tip of the source branch of the potential merge. + :param str project: Project ID or project name + :param str other_collection_id: The collection ID where otherCommitId lives. + :param str other_repository_id: The repository ID where otherCommitId lives. + :rtype: [GitCommitRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_name_or_id is not None: + route_values['repositoryNameOrId'] = self._serialize.url('repository_name_or_id', repository_name_or_id, 'str') + if commit_id is not None: + route_values['commitId'] = self._serialize.url('commit_id', commit_id, 'str') + query_parameters = {} + if other_commit_id is not None: + query_parameters['otherCommitId'] = self._serialize.query('other_commit_id', other_commit_id, 'str') + if other_collection_id is not None: + query_parameters['otherCollectionId'] = self._serialize.query('other_collection_id', other_collection_id, 'str') + if other_repository_id is not None: + query_parameters['otherRepositoryId'] = self._serialize.query('other_repository_id', other_repository_id, 'str') + response = self._send(http_method='GET', + location_id='7cf2abb6-c964-4f7e-9872-f78c66e72e9c', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) + + def create_merge_request(self, merge_parameters, project, repository_name_or_id, include_links=None): + """CreateMergeRequest. + [Preview API] Request a git merge operation. Currently we support merging only 2 commits. + :param :class:` ` merge_parameters: Parents commitIds and merge commit messsage. + :param str project: Project ID or project name + :param str repository_name_or_id: The name or ID of the repository. + :param bool include_links: True to include links + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_name_or_id is not None: + route_values['repositoryNameOrId'] = self._serialize.url('repository_name_or_id', repository_name_or_id, 'str') + query_parameters = {} + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + content = self._serialize.body(merge_parameters, 'GitMergeParameters') + response = self._send(http_method='POST', + location_id='985f7ae9-844f-4906-9897-7ef41516c0e2', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('GitMerge', response) + + def get_merge_request(self, project, repository_name_or_id, merge_operation_id, include_links=None): + """GetMergeRequest. + [Preview API] Get a specific merge operation's details. + :param str project: Project ID or project name + :param str repository_name_or_id: The name or ID of the repository. + :param int merge_operation_id: OperationId of the merge request. + :param bool include_links: True to include links + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_name_or_id is not None: + route_values['repositoryNameOrId'] = self._serialize.url('repository_name_or_id', repository_name_or_id, 'str') + if merge_operation_id is not None: + route_values['mergeOperationId'] = self._serialize.url('merge_operation_id', merge_operation_id, 'int') + query_parameters = {} + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='985f7ae9-844f-4906-9897-7ef41516c0e2', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitMerge', response) + + def get_policy_configurations(self, project, repository_id=None, ref_name=None, policy_type=None, top=None, continuation_token=None): + """GetPolicyConfigurations. + [Preview API] Retrieve a list of policy configurations by a given set of scope/filtering criteria. + :param str project: Project ID or project name + :param str repository_id: The repository id. + :param str ref_name: The fully-qualified Git ref name (e.g. refs/heads/master). + :param str policy_type: The policy type filter. + :param int top: Maximum number of policies to return. + :param str continuation_token: Pass a policy configuration ID to fetch the next page of results, up to top number of results, for this endpoint. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if ref_name is not None: + query_parameters['refName'] = self._serialize.query('ref_name', ref_name, 'str') + if policy_type is not None: + query_parameters['policyType'] = self._serialize.query('policy_type', policy_type, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='2c420070-a0a2-49cc-9639-c9f271c5ff07', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.GitPolicyConfigurationResponse() + response_object.policy_configurations = self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) + response_object.continuation_token = response.headers.get('x-ms-continuationtoken') + return response_object + def create_attachment(self, upload_stream, file_name, repository_id, pull_request_id, project=None, **kwargs): """CreateAttachment. - [Preview API] Create a new attachment + [Preview API] Attach a new file to a pull request. :param object upload_stream: Stream to upload - :param str file_name: - :param str repository_id: - :param int pull_request_id: + :param str file_name: The name of the file. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1074,7 +1209,7 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -1082,10 +1217,10 @@ def create_attachment(self, upload_stream, file_name, repository_id, pull_reques def delete_attachment(self, file_name, repository_id, pull_request_id, project=None): """DeleteAttachment. - [Preview API] - :param str file_name: - :param str repository_id: - :param int pull_request_id: + [Preview API] Delete a pull request attachment. + :param str file_name: The name of the attachment to delete. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name """ route_values = {} @@ -1099,15 +1234,15 @@ def delete_attachment(self, file_name, repository_id, pull_request_id, project=N route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') self._send(http_method='DELETE', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def get_attachment_content(self, file_name, repository_id, pull_request_id, project=None, **kwargs): """GetAttachmentContent. - [Preview API] - :param str file_name: - :param str repository_id: - :param int pull_request_id: + [Preview API] Get the file content of a pull request attachment. + :param str file_name: The name of the attachment. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :rtype: object """ @@ -1122,7 +1257,7 @@ def get_attachment_content(self, file_name, repository_id, pull_request_id, proj route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -1133,9 +1268,9 @@ def get_attachment_content(self, file_name, repository_id, pull_request_id, proj def get_attachments(self, repository_id, pull_request_id, project=None): """GetAttachments. - [Preview API] - :param str repository_id: - :param int pull_request_id: + [Preview API] Get a list of files attached to a given pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :rtype: [Attachment] """ @@ -1148,16 +1283,16 @@ def get_attachments(self, repository_id, pull_request_id, project=None): route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[Attachment]', self._unwrap_collection(response)) def get_attachment_zip(self, file_name, repository_id, pull_request_id, project=None, **kwargs): """GetAttachmentZip. - [Preview API] - :param str file_name: - :param str repository_id: - :param int pull_request_id: + [Preview API] Get the file content of a pull request attachment. + :param str file_name: The name of the attachment. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :rtype: object """ @@ -1172,7 +1307,7 @@ def get_attachment_zip(self, file_name, repository_id, pull_request_id, project= route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='965d9361-878b-413b-a494-45d5b5fd8ab7', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/zip') if "callback" in kwargs: @@ -1184,10 +1319,10 @@ def get_attachment_zip(self, file_name, repository_id, pull_request_id, project= def create_like(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """CreateLike. [Preview API] Add a like on a comment. - :param str repository_id: - :param int pull_request_id: - :param int thread_id: - :param int comment_id: + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: The ID of the thread that contains the comment. + :param int comment_id: The ID of the comment. :param str project: Project ID or project name """ route_values = {} @@ -1203,16 +1338,16 @@ def create_like(self, repository_id, pull_request_id, thread_id, comment_id, pro route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') self._send(http_method='POST', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def delete_like(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """DeleteLike. [Preview API] Delete a like on a comment. - :param str repository_id: - :param int pull_request_id: - :param int thread_id: - :param int comment_id: + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: The ID of the thread that contains the comment. + :param int comment_id: The ID of the comment. :param str project: Project ID or project name """ route_values = {} @@ -1228,16 +1363,16 @@ def delete_like(self, repository_id, pull_request_id, thread_id, comment_id, pro route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') self._send(http_method='DELETE', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def get_likes(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """GetLikes. [Preview API] Get likes for a comment. - :param str repository_id: - :param int pull_request_id: - :param int thread_id: - :param int comment_id: + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: The ID of the thread that contains the comment. + :param int comment_id: The ID of the comment. :param str project: Project ID or project name :rtype: [IdentityRef] """ @@ -1254,17 +1389,19 @@ def get_likes(self, repository_id, pull_request_id, thread_id, comment_id, proje route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') response = self._send(http_method='GET', location_id='5f2e2851-1389-425b-a00b-fb2adb3ef31b', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[IdentityRef]', self._unwrap_collection(response)) - def get_pull_request_iteration_commits(self, repository_id, pull_request_id, iteration_id, project=None): + def get_pull_request_iteration_commits(self, repository_id, pull_request_id, iteration_id, project=None, top=None, skip=None): """GetPullRequestIterationCommits. - Get the commits for an iteration. - :param str repository_id: - :param int pull_request_id: - :param int iteration_id: Iteration to retrieve commits for + [Preview API] Get the commits for the specified iteration of a pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the iteration from which to get the commits. :param str project: Project ID or project name + :param int top: Maximum number of commits to return. The maximum number of commits that can be returned per batch is 500. + :param int skip: Number of commits to skip. :rtype: [GitCommitRef] """ route_values = {} @@ -1276,17 +1413,23 @@ def get_pull_request_iteration_commits(self, repository_id, pull_request_id, ite route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') if iteration_id is not None: route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='e7ea0883-095f-4926-b5fb-f24691c26fb9', - version='4.0', - route_values=route_values) + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_pull_request_commits(self, repository_id, pull_request_id, project=None): """GetPullRequestCommits. - Retrieve pull request's commits - :param str repository_id: - :param int pull_request_id: + [Preview API] Get the commits for the specified pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :rtype: [GitCommitRef] """ @@ -1299,20 +1442,21 @@ def get_pull_request_commits(self, repository_id, pull_request_id, project=None) route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='52823034-34a8-4576-922c-8d8b77e9e4c4', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) def get_pull_request_iteration_changes(self, repository_id, pull_request_id, iteration_id, project=None, top=None, skip=None, compare_to=None): """GetPullRequestIterationChanges. - :param str repository_id: - :param int pull_request_id: - :param int iteration_id: + [Preview API] Retrieve the changes made in a pull request between two iterations. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the pull request iteration.
Iteration IDs are zero-based with zero indicating the common commit between the source and target branches. Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. :param str project: Project ID or project name - :param int top: - :param int skip: - :param int compare_to: - :rtype: :class:` ` + :param int top: Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000. + :param int skip: Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100. + :param int compare_to: ID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1332,18 +1476,19 @@ def get_pull_request_iteration_changes(self, repository_id, pull_request_id, ite query_parameters['$compareTo'] = self._serialize.query('compare_to', compare_to, 'int') response = self._send(http_method='GET', location_id='4216bdcf-b6b1-4d59-8b82-c34cc183fc8b', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequestIterationChanges', response) def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_id, project=None): """GetPullRequestIteration. - :param str repository_id: - :param int pull_request_id: - :param int iteration_id: + [Preview API] Get the specified iteration for a pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the pull request iteration to return. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1356,16 +1501,17 @@ def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_i route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') response = self._send(http_method='GET', location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitPullRequestIteration', response) def get_pull_request_iterations(self, repository_id, pull_request_id, project=None, include_commits=None): """GetPullRequestIterations. - :param str repository_id: - :param int pull_request_id: + [Preview API] Get the list of iterations for the specified pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :param bool include_commits: + :param bool include_commits: If true, include the commits associated with each iteration in the response. :rtype: [GitPullRequestIteration] """ route_values = {} @@ -1380,20 +1526,20 @@ def get_pull_request_iterations(self, repository_id, pull_request_id, project=No query_parameters['includeCommits'] = self._serialize.query('include_commits', include_commits, 'bool') response = self._send(http_method='GET', location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequestIteration]', self._unwrap_collection(response)) def create_pull_request_iteration_status(self, status, repository_id, pull_request_id, iteration_id, project=None): """CreatePullRequestIterationStatus. - [Preview API] Create a pull request status on the iteration. This method will have the same result as CreatePullRequestStatus with specified iterationId in the request body. - :param :class:` ` status: Pull request status to create. - :param str repository_id: ID of the repository the pull request belongs to. + [Preview API] Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body. + :param :class:` ` status: Pull request status to create. + :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1407,20 +1553,45 @@ def create_pull_request_iteration_status(self, status, repository_id, pull_reque content = self._serialize.body(status, 'GitPullRequestStatus') response = self._send(http_method='POST', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestStatus', response) + def delete_pull_request_iteration_status(self, repository_id, pull_request_id, iteration_id, status_id, project=None): + """DeletePullRequestIterationStatus. + [Preview API] Delete pull request iteration status. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the pull request iteration. + :param int status_id: ID of the pull request status. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + if status_id is not None: + route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') + self._send(http_method='DELETE', + location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', + version='5.1-preview.1', + route_values=route_values) + def get_pull_request_iteration_status(self, repository_id, pull_request_id, iteration_id, status_id, project=None): """GetPullRequestIterationStatus. [Preview API] Get the specific pull request iteration status by ID. The status ID is unique within the pull request across all iterations. - :param str repository_id: ID of the repository the pull request belongs to. + :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1435,14 +1606,14 @@ def get_pull_request_iteration_status(self, repository_id, pull_request_id, iter route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') response = self._send(http_method='GET', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitPullRequestStatus', response) def get_pull_request_iteration_statuses(self, repository_id, pull_request_id, iteration_id, project=None): """GetPullRequestIterationStatuses. [Preview API] Get all the statuses associated with a pull request iteration. - :param str repository_id: ID of the repository the pull request belongs to. + :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int iteration_id: ID of the pull request iteration. :param str project: Project ID or project name @@ -1459,19 +1630,45 @@ def get_pull_request_iteration_statuses(self, repository_id, pull_request_id, it route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') response = self._send(http_method='GET', location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) + def update_pull_request_iteration_statuses(self, patch_document, repository_id, pull_request_id, iteration_id, project=None): + """UpdatePullRequestIterationStatuses. + [Preview API] Update pull request iteration statuses collection. The only supported operation type is `remove`. + :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the pull request iteration. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + content = self._serialize.body(patch_document, '[JsonPatchOperation]') + self._send(http_method='PATCH', + location_id='75cf11c5-979f-4038-a76e-058a06adf2bf', + version='5.1-preview.1', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + def create_pull_request_label(self, label, repository_id, pull_request_id, project=None, project_id=None): """CreatePullRequestLabel. - [Preview API] - :param :class:` ` label: - :param str repository_id: - :param int pull_request_id: + [Preview API] Create a label for a specified pull request. The only required field is the name of the new label. + :param :class:` ` label: Label to assign to the pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :param str project_id: - :rtype: :class:` ` + :param str project_id: Project ID or project name. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1486,7 +1683,7 @@ def create_pull_request_label(self, label, repository_id, pull_request_id, proje content = self._serialize.body(label, 'WebApiCreateTagRequestData') response = self._send(http_method='POST', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1494,12 +1691,12 @@ def create_pull_request_label(self, label, repository_id, pull_request_id, proje def delete_pull_request_labels(self, repository_id, pull_request_id, label_id_or_name, project=None, project_id=None): """DeletePullRequestLabels. - [Preview API] - :param str repository_id: - :param int pull_request_id: - :param str label_id_or_name: + [Preview API] Removes a label from the set of those assigned to the pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str label_id_or_name: The name or ID of the label requested. :param str project: Project ID or project name - :param str project_id: + :param str project_id: Project ID or project name. """ route_values = {} if project is not None: @@ -1515,19 +1712,19 @@ def delete_pull_request_labels(self, repository_id, pull_request_id, label_id_or query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') self._send(http_method='DELETE', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) def get_pull_request_label(self, repository_id, pull_request_id, label_id_or_name, project=None, project_id=None): """GetPullRequestLabel. - [Preview API] - :param str repository_id: - :param int pull_request_id: - :param str label_id_or_name: + [Preview API] Retrieves a single label that has been assigned to a pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str label_id_or_name: The name or ID of the label requested. :param str project: Project ID or project name - :param str project_id: - :rtype: :class:` ` + :param str project_id: Project ID or project name. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1543,18 +1740,18 @@ def get_pull_request_label(self, repository_id, pull_request_id, label_id_or_nam query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') response = self._send(http_method='GET', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WebApiTagDefinition', response) def get_pull_request_labels(self, repository_id, pull_request_id, project=None, project_id=None): """GetPullRequestLabels. - [Preview API] Retrieve a pull request's Labels - :param str repository_id: - :param int pull_request_id: + [Preview API] Get all the labels assigned to a pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :param str project_id: + :param str project_id: Project ID or project name. :rtype: [WebApiTagDefinition] """ route_values = {} @@ -1569,18 +1766,64 @@ def get_pull_request_labels(self, repository_id, pull_request_id, project=None, query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') response = self._send(http_method='GET', location_id='f22387e3-984e-4c52-9c6d-fbb8f14c812d', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WebApiTagDefinition]', self._unwrap_collection(response)) + def get_pull_request_properties(self, repository_id, pull_request_id, project=None): + """GetPullRequestProperties. + [Preview API] Get external properties of the pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + response = self._send(http_method='GET', + location_id='48a52185-5b9e-4736-9dc1-bb1e2feac80b', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def update_pull_request_properties(self, patch_document, repository_id, pull_request_id, project=None): + """UpdatePullRequestProperties. + [Preview API] Create or update pull request external properties. The patch operation can be `add`, `replace` or `remove`. For `add` operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For `replace` operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For `remove` operation, the path cannot be empty. If the path does not exist, no action will be performed. + :param :class:`<[JsonPatchOperation]> ` patch_document: Properties to add, replace or remove in JSON Patch format. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + content = self._serialize.body(patch_document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='48a52185-5b9e-4736-9dc1-bb1e2feac80b', + version='5.1-preview.1', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + return self._deserialize('object', response) + def get_pull_request_query(self, queries, repository_id, project=None): """GetPullRequestQuery. - Query for pull requests - :param :class:` ` queries: - :param str repository_id: + [Preview API] This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests. + :param :class:` ` queries: The list of queries to perform. + :param str repository_id: ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1590,20 +1833,20 @@ def get_pull_request_query(self, queries, repository_id, project=None): content = self._serialize.body(queries, 'GitPullRequestQuery') response = self._send(http_method='POST', location_id='b3a6eebe-9cf0-49ea-b6cb-1a4c5f5007b0', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestQuery', response) def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, reviewer_id, project=None): """CreatePullRequestReviewer. - Adds a reviewer to a git pull request - :param :class:` ` reviewer: - :param str repository_id: - :param int pull_request_id: - :param str reviewer_id: + [Preview API] Add a reviewer to a pull request or cast a vote. + :param :class:` ` reviewer: Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str reviewer_id: ID of the reviewer. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1617,17 +1860,17 @@ def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, content = self._serialize.body(reviewer, 'IdentityRefWithVote') response = self._send(http_method='PUT', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('IdentityRefWithVote', response) def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_id, project=None): """CreatePullRequestReviewers. - Adds reviewers to a git pull request - :param [IdentityRef] reviewers: - :param str repository_id: - :param int pull_request_id: + [Preview API] Add reviewers to a pull request. + :param [IdentityRef] reviewers: Reviewers to add to the pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :rtype: [IdentityRefWithVote] """ @@ -1641,17 +1884,17 @@ def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_i content = self._serialize.body(reviewers, '[IdentityRef]') response = self._send(http_method='POST', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): """DeletePullRequestReviewer. - Removes a reviewer from a git pull request - :param str repository_id: - :param int pull_request_id: - :param str reviewer_id: + [Preview API] Remove a reviewer from a pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str reviewer_id: ID of the reviewer to remove. :param str project: Project ID or project name """ route_values = {} @@ -1665,17 +1908,17 @@ def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_ route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') self._send(http_method='DELETE', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.0', + version='5.1-preview.1', route_values=route_values) def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): """GetPullRequestReviewer. - Retrieve a reviewer from a pull request - :param str repository_id: - :param int pull_request_id: - :param str reviewer_id: + [Preview API] Retrieve information about a particular reviewer on a pull request + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str reviewer_id: ID of the reviewer. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1688,15 +1931,15 @@ def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('IdentityRefWithVote', response) def get_pull_request_reviewers(self, repository_id, pull_request_id, project=None): """GetPullRequestReviewers. - Retrieve a pull request reviewers - :param str repository_id: - :param int pull_request_id: + [Preview API] Retrieve the reviewers for a pull request + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :rtype: [IdentityRefWithVote] """ @@ -1709,16 +1952,16 @@ def get_pull_request_reviewers(self, repository_id, pull_request_id, project=Non route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request_id, project=None): """UpdatePullRequestReviewers. - Resets multiple reviewer votes in a batch - :param [IdentityRefWithVote] patch_votes: - :param str repository_id: - :param int pull_request_id: + [Preview API] Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names. + :param [IdentityRefWithVote] patch_votes: IDs of the reviewers whose votes will be reset to zero + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request :param str project: Project ID or project name """ route_values = {} @@ -1731,33 +1974,36 @@ def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request content = self._serialize.body(patch_votes, '[IdentityRefWithVote]') self._send(http_method='PATCH', location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) - def get_pull_request_by_id(self, pull_request_id): + def get_pull_request_by_id(self, pull_request_id, project=None): """GetPullRequestById. - Get a pull request using its ID - :param int pull_request_id: the Id of the pull request - :rtype: :class:` ` + [Preview API] Retrieve a pull request. + :param int pull_request_id: The ID of the pull request to retrieve. + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if pull_request_id is not None: route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='01a46dea-7d46-4d40-bc84-319e7c260d99', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitPullRequest', response) def get_pull_requests_by_project(self, project, search_criteria, max_comment_length=None, skip=None, top=None): """GetPullRequestsByProject. - Query pull requests by project + [Preview API] Retrieve all pull requests matching a specified criteria. :param str project: Project ID or project name - :param :class:` ` search_criteria: - :param int max_comment_length: - :param int skip: - :param int top: + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. + :param int max_comment_length: Not used. + :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. + :param int top: The number of pull requests to retrieve. :rtype: [GitPullRequest] """ route_values = {} @@ -1789,19 +2035,19 @@ def get_pull_requests_by_project(self, project, search_criteria, max_comment_len query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='a5d28130-9cd2-40fa-9f08-902e7daa9efb', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): """CreatePullRequest. - Create a git pull request - :param :class:` ` git_pull_request_to_create: - :param str repository_id: + [Preview API] Create a pull request. + :param :class:` ` git_pull_request_to_create: The pull request to create. + :param str repository_id: The repository ID of the pull request's target branch. :param str project: Project ID or project name - :param bool supports_iterations: - :rtype: :class:` ` + :param bool supports_iterations: If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1814,7 +2060,7 @@ def create_pull_request(self, git_pull_request_to_create, repository_id, project content = self._serialize.body(git_pull_request_to_create, 'GitPullRequest') response = self._send(http_method='POST', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -1822,16 +2068,16 @@ def create_pull_request(self, git_pull_request_to_create, repository_id, project def get_pull_request(self, repository_id, pull_request_id, project=None, max_comment_length=None, skip=None, top=None, include_commits=None, include_work_item_refs=None): """GetPullRequest. - Retrieve a pull request - :param str repository_id: - :param int pull_request_id: + [Preview API] Retrieve a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: The ID of the pull request to retrieve. :param str project: Project ID or project name - :param int max_comment_length: - :param int skip: - :param int top: - :param bool include_commits: - :param bool include_work_item_refs: - :rtype: :class:` ` + :param int max_comment_length: Not used. + :param int skip: Not used. + :param int top: Not used. + :param bool include_commits: If true, the pull request will be returned with the associated commits. + :param bool include_work_item_refs: If true, the pull request will be returned with the associated work item references. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1853,20 +2099,20 @@ def get_pull_request(self, repository_id, pull_request_id, project=None, max_com query_parameters['includeWorkItemRefs'] = self._serialize.query('include_work_item_refs', include_work_item_refs, 'bool') response = self._send(http_method='GET', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequest', response) def get_pull_requests(self, repository_id, search_criteria, project=None, max_comment_length=None, skip=None, top=None): """GetPullRequests. - Query for pull requests - :param str repository_id: - :param :class:` ` search_criteria: + [Preview API] Retrieve all pull requests matching a specified criteria. + :param str repository_id: The repository ID of the pull request's target branch. + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. :param str project: Project ID or project name - :param int max_comment_length: - :param int skip: - :param int top: + :param int max_comment_length: Not used. + :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. + :param int top: The number of pull requests to retrieve. :rtype: [GitPullRequest] """ route_values = {} @@ -1900,19 +2146,19 @@ def get_pull_requests(self, repository_id, search_criteria, project=None, max_co query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): """UpdatePullRequest. - Updates a pull request - :param :class:` ` git_pull_request_to_update: - :param str repository_id: - :param int pull_request_id: + [Preview API] Update a pull request + :param :class:` ` git_pull_request_to_update: The pull request content that should be updated. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1924,17 +2170,17 @@ def update_pull_request(self, git_pull_request_to_update, repository_id, pull_re content = self._serialize.body(git_pull_request_to_update, 'GitPullRequest') response = self._send(http_method='PATCH', location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequest', response) def share_pull_request(self, user_message, repository_id, pull_request_id, project=None): """SharePullRequest. - [Preview API] - :param :class:` ` user_message: - :param str repository_id: - :param int pull_request_id: + [Preview API] Sends an e-mail notification about a specific pull request to a set of recipients + :param :class:` ` user_message: + :param str repository_id: ID of the git repository. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name """ route_values = {} @@ -1947,18 +2193,18 @@ def share_pull_request(self, user_message, repository_id, pull_request_id, proje content = self._serialize.body(user_message, 'ShareNotificationContext') self._send(http_method='POST', location_id='696f3a82-47c9-487f-9117-b9d00972ca84', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) def create_pull_request_status(self, status, repository_id, pull_request_id, project=None): """CreatePullRequestStatus. [Preview API] Create a pull request status. - :param :class:` ` status: Pull request status to create. - :param str repository_id: ID of the repository the pull request belongs to. + :param :class:` ` status: Pull request status to create. + :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1970,19 +2216,41 @@ def create_pull_request_status(self, status, repository_id, pull_request_id, pro content = self._serialize.body(status, 'GitPullRequestStatus') response = self._send(http_method='POST', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestStatus', response) + def delete_pull_request_status(self, repository_id, pull_request_id, status_id, project=None): + """DeletePullRequestStatus. + [Preview API] Delete pull request status. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param int status_id: ID of the pull request status. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if status_id is not None: + route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') + self._send(http_method='DELETE', + location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', + version='5.1-preview.1', + route_values=route_values) + def get_pull_request_status(self, repository_id, pull_request_id, status_id, project=None): """GetPullRequestStatus. [Preview API] Get the specific pull request status by ID. The status ID is unique within the pull request across all iterations. - :param str repository_id: ID of the repository the pull request belongs to. + :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param int status_id: ID of the pull request status. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1995,14 +2263,14 @@ def get_pull_request_status(self, repository_id, pull_request_id, status_id, pro route_values['statusId'] = self._serialize.url('status_id', status_id, 'int') response = self._send(http_method='GET', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitPullRequestStatus', response) def get_pull_request_statuses(self, repository_id, pull_request_id, project=None): """GetPullRequestStatuses. [Preview API] Get all the statuses associated with a pull request. - :param str repository_id: ID of the repository the pull request belongs to. + :param str repository_id: The repository ID of the pull request’s target branch. :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name :rtype: [GitPullRequestStatus] @@ -2016,19 +2284,42 @@ def get_pull_request_statuses(self, repository_id, pull_request_id, project=None route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[GitPullRequestStatus]', self._unwrap_collection(response)) + def update_pull_request_statuses(self, patch_document, repository_id, pull_request_id, project=None): + """UpdatePullRequestStatuses. + [Preview API] Update pull request statuses collection. The only supported operation type is `remove`. + :param :class:`<[JsonPatchOperation]> ` patch_document: Operations to apply to the pull request statuses in JSON Patch format. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + content = self._serialize.body(patch_document, '[JsonPatchOperation]') + self._send(http_method='PATCH', + location_id='b5f6bb4f-8d1e-4d79-8d11-4c9172c99c35', + version='5.1-preview.1', + route_values=route_values, + content=content, + media_type='application/json-patch+json') + def create_comment(self, comment, repository_id, pull_request_id, thread_id, project=None): """CreateComment. - Create a pull request review comment - :param :class:` ` comment: - :param str repository_id: - :param int pull_request_id: - :param int thread_id: + [Preview API] Create a comment on a specific thread in a pull request (up to 500 comments can be created per thread). + :param :class:` ` comment: The comment to create. Comments can be up to 150,000 characters. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2042,18 +2333,18 @@ def create_comment(self, comment, repository_id, pull_request_id, thread_id, pro content = self._serialize.body(comment, 'Comment') response = self._send(http_method='POST', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Comment', response) def delete_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """DeleteComment. - Delete a pull request comment by id for a pull request - :param str repository_id: - :param int pull_request_id: - :param int thread_id: - :param int comment_id: + [Preview API] Delete a comment associated with a specific thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. + :param int comment_id: ID of the comment. :param str project: Project ID or project name """ route_values = {} @@ -2069,18 +2360,18 @@ def delete_comment(self, repository_id, pull_request_id, thread_id, comment_id, route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') self._send(http_method='DELETE', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.0', + version='5.1-preview.1', route_values=route_values) def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): """GetComment. - Get a pull request comment by id for a pull request - :param str repository_id: - :param int pull_request_id: - :param int thread_id: - :param int comment_id: + [Preview API] Retrieve a comment associated with a specific thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. + :param int comment_id: ID of the comment. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2095,16 +2386,16 @@ def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, pro route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Comment', response) def get_comments(self, repository_id, pull_request_id, thread_id, project=None): """GetComments. - Get all pull request comments in a thread. - :param str repository_id: - :param int pull_request_id: - :param int thread_id: + [Preview API] Retrieve all comments associated with a specific thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread. :param str project: Project ID or project name :rtype: [Comment] """ @@ -2119,20 +2410,20 @@ def get_comments(self, repository_id, pull_request_id, thread_id, project=None): route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') response = self._send(http_method='GET', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[Comment]', self._unwrap_collection(response)) def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): """UpdateComment. - Update a pull request review comment thread - :param :class:` ` comment: - :param str repository_id: - :param int pull_request_id: - :param int thread_id: - :param int comment_id: + [Preview API] Update a comment associated with a specific thread in a pull request. + :param :class:` ` comment: The comment content that should be updated. Comments can be up to 150,000 characters. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. + :param int comment_id: ID of the comment to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2148,19 +2439,19 @@ def update_comment(self, comment, repository_id, pull_request_id, thread_id, com content = self._serialize.body(comment, 'Comment') response = self._send(http_method='PATCH', location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Comment', response) def create_thread(self, comment_thread, repository_id, pull_request_id, project=None): """CreateThread. - Create a pull request review comment thread - :param :class:` ` comment_thread: - :param str repository_id: - :param int pull_request_id: + [Preview API] Create a thread in a pull request. + :param :class:` ` comment_thread: The thread to create. Thread must contain at least one comment. + :param str repository_id: Repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2172,21 +2463,21 @@ def create_thread(self, comment_thread, repository_id, pull_request_id, project= content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') response = self._send(http_method='POST', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestCommentThread', response) def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, project=None, iteration=None, base_iteration=None): """GetPullRequestThread. - Get a pull request comment thread by id for a pull request - :param str repository_id: - :param int pull_request_id: - :param int thread_id: + [Preview API] Retrieve a thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread. :param str project: Project ID or project name - :param int iteration: - :param int base_iteration: - :rtype: :class:` ` + :param int iteration: If specified, thread position will be tracked using this iteration as the right side of the diff. + :param int base_iteration: If specified, thread position will be tracked using this iteration as the left side of the diff. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2204,19 +2495,19 @@ def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, pro query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') response = self._send(http_method='GET', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPullRequestCommentThread', response) def get_threads(self, repository_id, pull_request_id, project=None, iteration=None, base_iteration=None): """GetThreads. - Get all pull request comment threads. - :param str repository_id: - :param int pull_request_id: + [Preview API] Retrieve all threads in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :param int iteration: - :param int base_iteration: + :param int iteration: If specified, thread positions will be tracked using this iteration as the right side of the diff. + :param int base_iteration: If specified, thread positions will be tracked using this iteration as the left side of the diff. :rtype: [GitPullRequestCommentThread] """ route_values = {} @@ -2233,20 +2524,20 @@ def get_threads(self, repository_id, pull_request_id, project=None, iteration=No query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') response = self._send(http_method='GET', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPullRequestCommentThread]', self._unwrap_collection(response)) def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): """UpdateThread. - Update a pull request review comment thread - :param :class:` ` comment_thread: - :param str repository_id: - :param int pull_request_id: - :param int thread_id: + [Preview API] Update a thread in a pull request. + :param :class:` ` comment_thread: The thread content that should be updated. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread to update. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2260,18 +2551,18 @@ def update_thread(self, comment_thread, repository_id, pull_request_id, thread_i content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') response = self._send(http_method='PATCH', location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitPullRequestCommentThread', response) - def get_pull_request_work_items(self, repository_id, pull_request_id, project=None): - """GetPullRequestWorkItems. - Retrieve a pull request work items - :param str repository_id: - :param int pull_request_id: + def get_pull_request_work_item_refs(self, repository_id, pull_request_id, project=None): + """GetPullRequestWorkItemRefs. + [Preview API] Retrieve a list of work items associated with a pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. :param str project: Project ID or project name - :rtype: [AssociatedWorkItem] + :rtype: [ResourceRef] """ route_values = {} if project is not None: @@ -2282,17 +2573,17 @@ def get_pull_request_work_items(self, repository_id, pull_request_id, project=No route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') response = self._send(http_method='GET', location_id='0a637fcc-5370-4ce8-b0e8-98091f5f9482', - version='4.0', + version='5.1-preview.1', route_values=route_values) - return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) def create_push(self, push, repository_id, project=None): """CreatePush. - Push changes to the repository. - :param :class:` ` push: - :param str repository_id: The id or friendly name of the repository. To use the friendly name, a project-scoped route must be used. + [Preview API] Push changes to the repository. + :param :class:` ` push: + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2302,20 +2593,20 @@ def create_push(self, push, repository_id, project=None): content = self._serialize.body(push, 'GitPush') response = self._send(http_method='POST', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.0', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('GitPush', response) def get_push(self, repository_id, push_id, project=None, include_commits=None, include_ref_updates=None): """GetPush. - Retrieve a particular push. - :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. - :param int push_id: The id of the push. + [Preview API] Retrieves a particular push. + :param str repository_id: The name or ID of the repository. + :param int push_id: ID of the push. :param str project: Project ID or project name :param int include_commits: The number of commits to include in the result. - :param bool include_ref_updates: - :rtype: :class:` ` + :param bool include_ref_updates: If true, include the list of refs that were updated by the push. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2331,19 +2622,19 @@ def get_push(self, repository_id, push_id, project=None, include_commits=None, i query_parameters['includeRefUpdates'] = self._serialize.query('include_ref_updates', include_ref_updates, 'bool') response = self._send(http_method='GET', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitPush', response) def get_pushes(self, repository_id, project=None, skip=None, top=None, search_criteria=None): """GetPushes. - Retrieves pushes associated with the specified repository. - :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + [Preview API] Retrieves pushes associated with the specified repository. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param int skip: - :param int top: - :param :class:` ` search_criteria: + :param int skip: Number of pushes to skip. + :param int top: Number of pushes to return. + :param :class:` ` search_criteria: Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references. :rtype: [GitPush] """ route_values = {} @@ -2371,19 +2662,75 @@ def get_pushes(self, repository_id, project=None, skip=None, top=None, search_cr query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links response = self._send(http_method='GET', location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitPush]', self._unwrap_collection(response)) - def get_refs(self, repository_id, project=None, filter=None, include_links=None, latest_statuses_only=None): + def delete_repository_from_recycle_bin(self, project, repository_id): + """DeleteRepositoryFromRecycleBin. + [Preview API] Destroy (hard delete) a soft-deleted Git repository. + :param str project: Project ID or project name + :param str repository_id: The ID of the repository. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + self._send(http_method='DELETE', + location_id='a663da97-81db-4eb3-8b83-287670f63073', + version='5.1-preview.1', + route_values=route_values) + + def get_recycle_bin_repositories(self, project): + """GetRecycleBinRepositories. + [Preview API] Retrieve soft-deleted git repositories from the recycle bin. + :param str project: Project ID or project name + :rtype: [GitDeletedRepository] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='a663da97-81db-4eb3-8b83-287670f63073', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[GitDeletedRepository]', self._unwrap_collection(response)) + + def restore_repository_from_recycle_bin(self, repository_details, project, repository_id): + """RestoreRepositoryFromRecycleBin. + [Preview API] Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable. + :param :class:` ` repository_details: + :param str project: Project ID or project name + :param str repository_id: The ID of the repository. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + content = self._serialize.body(repository_details, 'GitRecycleBinRepositoryDetails') + response = self._send(http_method='PATCH', + location_id='a663da97-81db-4eb3-8b83-287670f63073', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('GitRepository', response) + + def get_refs(self, repository_id, project=None, filter=None, include_links=None, include_statuses=None, include_my_branches=None, latest_statuses_only=None, peel_tags=None, filter_contains=None): """GetRefs. - Queries the provided repository for its refs and returns them. - :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + [Preview API] Queries the provided repository for its refs and returns them. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param str filter: [optional] A filter to apply to the refs. + :param str filter: [optional] A filter to apply to the refs (starts with). :param bool include_links: [optional] Specifies if referenceLinks should be included in the result. default is false. - :param bool latest_statuses_only: + :param bool include_statuses: [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false. + :param bool include_my_branches: [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter. + :param bool latest_statuses_only: [optional] True to include only the tip commit status for each ref. This option requires `includeStatuses` to be true. The default value is false. + :param bool peel_tags: [optional] Annotated tags will populate the PeeledObjectId property. default is false. + :param str filter_contains: [optional] A filter to apply to the refs (contains). :rtype: [GitRef] """ route_values = {} @@ -2396,23 +2743,32 @@ def get_refs(self, repository_id, project=None, filter=None, include_links=None, query_parameters['filter'] = self._serialize.query('filter', filter, 'str') if include_links is not None: query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if include_statuses is not None: + query_parameters['includeStatuses'] = self._serialize.query('include_statuses', include_statuses, 'bool') + if include_my_branches is not None: + query_parameters['includeMyBranches'] = self._serialize.query('include_my_branches', include_my_branches, 'bool') if latest_statuses_only is not None: query_parameters['latestStatusesOnly'] = self._serialize.query('latest_statuses_only', latest_statuses_only, 'bool') + if peel_tags is not None: + query_parameters['peelTags'] = self._serialize.query('peel_tags', peel_tags, 'bool') + if filter_contains is not None: + query_parameters['filterContains'] = self._serialize.query('filter_contains', filter_contains, 'str') response = self._send(http_method='GET', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRef]', self._unwrap_collection(response)) def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): """UpdateRef. - :param :class:` ` new_ref_info: - :param str repository_id: - :param str filter: + [Preview API] Lock or Unlock a branch. + :param :class:` ` new_ref_info: The ref update action (lock/unlock) to perform + :param str repository_id: The name or ID of the repository. + :param str filter: The name of the branch to lock/unlock :param str project: Project ID or project name - :param str project_id: - :rtype: :class:` ` + :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2427,7 +2783,7 @@ def update_ref(self, new_ref_info, repository_id, filter, project=None, project_ content = self._serialize.body(new_ref_info, 'GitRefUpdate') response = self._send(http_method='PATCH', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2435,11 +2791,11 @@ def update_ref(self, new_ref_info, repository_id, filter, project=None, project_ def update_refs(self, ref_updates, repository_id, project=None, project_id=None): """UpdateRefs. - Creates or updates refs with the given information + [Preview API] Creating, updating, or deleting refs(branches). :param [GitRefUpdate] ref_updates: List of ref updates to attempt to perform - :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param str project_id: The id of the project. + :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. :rtype: [GitRefUpdateResult] """ route_values = {} @@ -2453,7 +2809,7 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) content = self._serialize.body(ref_updates, '[GitRefUpdate]') response = self._send(http_method='POST', location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2462,9 +2818,9 @@ def update_refs(self, ref_updates, repository_id, project=None, project_id=None) def create_favorite(self, favorite, project): """CreateFavorite. [Preview API] Creates a ref favorite - :param :class:` ` favorite: + :param :class:` ` favorite: The ref favorite to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2472,16 +2828,16 @@ def create_favorite(self, favorite, project): content = self._serialize.body(favorite, 'GitRefFavorite') response = self._send(http_method='POST', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitRefFavorite', response) def delete_ref_favorite(self, project, favorite_id): """DeleteRefFavorite. - [Preview API] + [Preview API] Deletes the refs favorite specified :param str project: Project ID or project name - :param int favorite_id: + :param int favorite_id: The Id of the ref favorite to delete. """ route_values = {} if project is not None: @@ -2490,15 +2846,15 @@ def delete_ref_favorite(self, project, favorite_id): route_values['favoriteId'] = self._serialize.url('favorite_id', favorite_id, 'int') self._send(http_method='DELETE', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def get_ref_favorite(self, project, favorite_id): """GetRefFavorite. - [Preview API] + [Preview API] Gets the refs favorite for a favorite Id. :param str project: Project ID or project name - :param int favorite_id: - :rtype: :class:` ` + :param int favorite_id: The Id of the requested ref favorite. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2507,7 +2863,7 @@ def get_ref_favorite(self, project, favorite_id): route_values['favoriteId'] = self._serialize.url('favorite_id', favorite_id, 'int') response = self._send(http_method='GET', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitRefFavorite', response) @@ -2529,18 +2885,18 @@ def get_ref_favorites(self, project, repository_id=None, identity_id=None): query_parameters['identityId'] = self._serialize.query('identity_id', identity_id, 'str') response = self._send(http_method='GET', location_id='876f70af-5792-485a-a1c7-d0a7b2f42bbb', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRefFavorite]', self._unwrap_collection(response)) def create_repository(self, git_repository_to_create, project=None, source_ref=None): """CreateRepository. - Create a git repository - :param :class:` ` git_repository_to_create: + [Preview API] Create a git repository in a team project. + :param :class:` ` git_repository_to_create: Specify the repo name, team project and/or parent repository. Team project information can be ommitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id). :param str project: Project ID or project name - :param str source_ref: - :rtype: :class:` ` + :param str source_ref: [optional] Specify the source refs to use while creating a fork repo + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2551,7 +2907,7 @@ def create_repository(self, git_repository_to_create, project=None, source_ref=N content = self._serialize.body(git_repository_to_create, 'GitRepositoryCreateOptions') response = self._send(http_method='POST', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content) @@ -2559,8 +2915,8 @@ def create_repository(self, git_repository_to_create, project=None, source_ref=N def delete_repository(self, repository_id, project=None): """DeleteRepository. - Delete a git repository - :param str repository_id: + [Preview API] Delete a git repository + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name """ route_values = {} @@ -2570,15 +2926,16 @@ def delete_repository(self, repository_id, project=None): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') self._send(http_method='DELETE', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.0', + version='5.1-preview.1', route_values=route_values) - def get_repositories(self, project=None, include_links=None, include_all_urls=None): + def get_repositories(self, project=None, include_links=None, include_all_urls=None, include_hidden=None): """GetRepositories. - Retrieve git repositories. + [Preview API] Retrieve git repositories. :param str project: Project ID or project name - :param bool include_links: - :param bool include_all_urls: + :param bool include_links: [optional] True to include reference links. The default value is false. + :param bool include_all_urls: [optional] True to include all remote URLs. The default value is false. + :param bool include_hidden: [optional] True to include hidden repositories. The default value is false. :rtype: [GitRepository] """ route_values = {} @@ -2589,19 +2946,40 @@ def get_repositories(self, project=None, include_links=None, include_all_urls=No query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') if include_all_urls is not None: query_parameters['includeAllUrls'] = self._serialize.query('include_all_urls', include_all_urls, 'bool') + if include_hidden is not None: + query_parameters['includeHidden'] = self._serialize.query('include_hidden', include_hidden, 'bool') response = self._send(http_method='GET', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitRepository]', self._unwrap_collection(response)) - def get_repository(self, repository_id, project=None, include_parent=None): + def get_repository(self, repository_id, project=None): """GetRepository. - :param str repository_id: + [Preview API] Retrieve a git repository. + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :param bool include_parent: - :rtype: :class:` ` + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + response = self._send(http_method='GET', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('GitRepository', response) + + def get_repository_with_parent(self, repository_id, include_parent, project=None): + """GetRepositoryWithParent. + [Preview API] Retrieve a git repository. + :param str repository_id: The name or ID of the repository. + :param bool include_parent: True to include parent repository. Only available in authenticated calls. + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2613,18 +2991,18 @@ def get_repository(self, repository_id, project=None, include_parent=None): query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') response = self._send(http_method='GET', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitRepository', response) def update_repository(self, new_repository_info, repository_id, project=None): """UpdateRepository. - Updates the Git repository with the single populated change in the specified repository information. - :param :class:` ` new_repository_info: - :param str repository_id: + [Preview API] Updates the Git repository with either a new repo name or a new default branch. + :param :class:` ` new_repository_info: Specify a new repo name or a new default branch of the repository + :param str repository_id: The name or ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2634,18 +3012,18 @@ def update_repository(self, new_repository_info, repository_id, project=None): content = self._serialize.body(new_repository_info, 'GitRepository') response = self._send(http_method='PATCH', location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitRepository', response) def create_revert(self, revert_to_create, project, repository_id): """CreateRevert. - [Preview API] - :param :class:` ` revert_to_create: + [Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request. + :param :class:` ` revert_to_create: :param str project: Project ID or project name - :param str repository_id: - :rtype: :class:` ` + :param str repository_id: ID of the repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2655,18 +3033,18 @@ def create_revert(self, revert_to_create, project, repository_id): content = self._serialize.body(revert_to_create, 'GitAsyncRefOperationParameters') response = self._send(http_method='POST', location_id='bc866058-5449-4715-9cf1-a510b6ff193c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitRevert', response) def get_revert(self, project, revert_id, repository_id): """GetRevert. - [Preview API] + [Preview API] Retrieve information about a revert operation by revert Id. :param str project: Project ID or project name - :param int revert_id: - :param str repository_id: - :rtype: :class:` ` + :param int revert_id: ID of the revert operation. + :param str repository_id: ID of the repository. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2677,17 +3055,17 @@ def get_revert(self, project, revert_id, repository_id): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') response = self._send(http_method='GET', location_id='bc866058-5449-4715-9cf1-a510b6ff193c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GitRevert', response) def get_revert_for_ref_name(self, project, repository_id, ref_name): """GetRevertForRefName. - [Preview API] + [Preview API] Retrieve information about a revert operation for a specific branch. :param str project: Project ID or project name - :param str repository_id: - :param str ref_name: - :rtype: :class:` ` + :param str repository_id: ID of the repository. + :param str ref_name: The GitAsyncRefOperationParameters generatedRefName used for the revert operation. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2699,18 +3077,19 @@ def get_revert_for_ref_name(self, project, repository_id, ref_name): query_parameters['refName'] = self._serialize.query('ref_name', ref_name, 'str') response = self._send(http_method='GET', location_id='bc866058-5449-4715-9cf1-a510b6ff193c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitRevert', response) def create_commit_status(self, git_commit_status_to_create, commit_id, repository_id, project=None): """CreateCommitStatus. - :param :class:` ` git_commit_status_to_create: - :param str commit_id: - :param str repository_id: + [Preview API] Create Git commit status. + :param :class:` ` git_commit_status_to_create: Git commit status object to create. + :param str commit_id: ID of the Git commit. + :param str repository_id: ID of the repository. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2722,19 +3101,20 @@ def create_commit_status(self, git_commit_status_to_create, commit_id, repositor content = self._serialize.body(git_commit_status_to_create, 'GitStatus') response = self._send(http_method='POST', location_id='428dd4fb-fda5-4722-af02-9313b80305da', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('GitStatus', response) def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=None, latest_only=None): """GetStatuses. - :param str commit_id: - :param str repository_id: + [Preview API] Get statuses associated with the Git commit. + :param str commit_id: ID of the Git commit. + :param str repository_id: ID of the repository. :param str project: Project ID or project name - :param int top: - :param int skip: - :param bool latest_only: + :param int top: Optional. The number of statuses to retrieve. Default is 1000. + :param int skip: Optional. The number of statuses to ignore. Default is 0. For example, to retrieve results 101-150, set top to 50 and skip to 100. + :param bool latest_only: The flag indicates whether to get only latest statuses grouped by `Context.Name` and `Context.Genre`. :rtype: [GitStatus] """ route_values = {} @@ -2753,15 +3133,15 @@ def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=No query_parameters['latestOnly'] = self._serialize.query('latest_only', latest_only, 'bool') response = self._send(http_method='GET', location_id='428dd4fb-fda5-4722-af02-9313b80305da', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GitStatus]', self._unwrap_collection(response)) def get_suggestions(self, repository_id, project=None): """GetSuggestions. - [Preview API] Retrieve a set of suggestions (including a pull request suggestion). - :param str repository_id: + [Preview API] Retrieve a pull request suggestion for a particular repository or team project. + :param str repository_id: ID of the git repository. :param str project: Project ID or project name :rtype: [GitSuggestion] """ @@ -2772,19 +3152,20 @@ def get_suggestions(self, repository_id, project=None): route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') response = self._send(http_method='GET', location_id='9393b4fb-4445-4919-972b-9ad16f442d83', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[GitSuggestion]', self._unwrap_collection(response)) def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): """GetTree. - :param str repository_id: - :param str sha1: + [Preview API] The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. + :param str repository_id: Repository Id. + :param str sha1: SHA1 hash of the tree object. :param str project: Project ID or project name - :param str project_id: - :param bool recursive: - :param str file_name: - :rtype: :class:` ` + :param str project_id: Project Id. + :param bool recursive: Search recursively. Include trees underneath this tree. Default is false. + :param str file_name: Name to use if a .zip file is returned. Default is the object ID. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -2802,19 +3183,20 @@ def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='729f6437-6f92-44ec-8bee-273a7111063c', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GitTreeRef', response) def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None, **kwargs): """GetTreeZip. - :param str repository_id: - :param str sha1: + [Preview API] The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. + :param str repository_id: Repository Id. + :param str sha1: SHA1 hash of the tree object. :param str project: Project ID or project name - :param str project_id: - :param bool recursive: - :param str file_name: + :param str project_id: Project Id. + :param bool recursive: Search recursively. Include trees underneath this tree. Default is false. + :param str file_name: Name to use if a .zip file is returned. Default is the object ID. :rtype: object """ route_values = {} @@ -2833,7 +3215,7 @@ def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recur query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') response = self._send(http_method='GET', location_id='729f6437-6f92-44ec-8bee-273a7111063c', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') diff --git a/azure-devops/azure/devops/v4_0/git/models.py b/azure-devops/azure/devops/v5_1/git/models.py similarity index 66% rename from azure-devops/azure/devops/v4_0/git/models.py rename to azure-devops/azure/devops/v5_1/git/models.py index 171fad8e..bb876b6b 100644 --- a/azure-devops/azure/devops/v4_0/git/models.py +++ b/azure-devops/azure/devops/v5_1/git/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,66 +9,26 @@ from msrest.serialization import Model -class AssociatedWorkItem(Model): - """AssociatedWorkItem. - - :param assigned_to: - :type assigned_to: str - :param id: - :type id: int - :param state: - :type state: str - :param title: - :type title: str - :param url: REST url - :type url: str - :param web_url: - :type web_url: str - :param work_item_type: - :type work_item_type: str - """ - - _attribute_map = { - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'title': {'key': 'title', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'web_url': {'key': 'webUrl', 'type': 'str'}, - 'work_item_type': {'key': 'workItemType', 'type': 'str'} - } - - def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None): - super(AssociatedWorkItem, self).__init__() - self.assigned_to = assigned_to - self.id = id - self.state = state - self.title = title - self.url = url - self.web_url = web_url - self.work_item_type = work_item_type - - class Attachment(Model): """Attachment. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: The person that uploaded this attachment - :type author: :class:`IdentityRef ` + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param author: The person that uploaded this attachment. + :type author: :class:`IdentityRef ` :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. :type content_hash: str - :param created_date: The time the attachment was uploaded + :param created_date: The time the attachment was uploaded. :type created_date: datetime - :param description: The description of the attachment, can be null. + :param description: The description of the attachment. :type description: str - :param display_name: The display name of the attachment, can't be null or empty. + :param display_name: The display name of the attachment. Can't be null or empty. :type display_name: str - :param id: Id of the code review attachment + :param id: Id of the attachment. :type id: int - :param properties: - :type properties: :class:`object ` - :param url: The url to download the content of the attachment + :param properties: Extended properties. + :type properties: :class:`object ` + :param url: The url to download the content of the attachment. :type url: str """ @@ -100,15 +60,15 @@ def __init__(self, _links=None, author=None, content_hash=None, created_date=Non class Change(Model): """Change. - :param change_type: + :param change_type: The type of change that was made to the item. :type change_type: object - :param item: + :param item: Current version. :type item: object - :param new_content: - :type new_content: :class:`ItemContent ` - :param source_server_item: + :param new_content: Content of the item after the change. + :type new_content: :class:`ItemContent ` + :param source_server_item: Path of the item on the server. :type source_server_item: str - :param url: + :param url: URL to retrieve the item. :type url: str """ @@ -132,28 +92,28 @@ def __init__(self, change_type=None, item=None, new_content=None, source_server_ class Comment(Model): """Comment. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: The author of the pull request comment. - :type author: :class:`IdentityRef ` - :param comment_type: Determines what kind of comment when it was created. + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param author: The author of the comment. + :type author: :class:`IdentityRef ` + :param comment_type: The comment type at the time of creation. :type comment_type: object - :param content: The comment's content. + :param content: The comment content. :type content: str - :param id: The pull request comment id. It always starts from 1. + :param id: The comment ID. IDs start at 1 and are unique to a pull request. :type id: int - :param is_deleted: Marks if this comment was soft-deleted. + :param is_deleted: Whether or not this comment was soft-deleted. :type is_deleted: bool - :param last_content_updated_date: The date a comment content was last updated. + :param last_content_updated_date: The date the comment's content was last updated. :type last_content_updated_date: datetime - :param last_updated_date: The date a comment was last updated. + :param last_updated_date: The date the comment was last updated. :type last_updated_date: datetime - :param parent_comment_id: The pull request comment id of the parent comment. This is used for replies + :param parent_comment_id: The ID of the parent comment. This is used for replies. :type parent_comment_id: int - :param published_date: The date a comment was first published. + :param published_date: The date the comment was first published. :type published_date: datetime - :param users_liked: A list of the users who've liked this comment. - :type users_liked: list of :class:`IdentityRef ` + :param users_liked: A list of the users who have liked this comment. + :type users_liked: list of :class:`IdentityRef ` """ _attribute_map = { @@ -188,9 +148,9 @@ def __init__(self, _links=None, author=None, comment_type=None, content=None, id class CommentIterationContext(Model): """CommentIterationContext. - :param first_comparing_iteration: First comparing iteration Id. Minimum value is 1. + :param first_comparing_iteration: The iteration of the file on the left side of the diff when the thread was created. If this value is equal to SecondComparingIteration, then this version is the common commit between the source and target branches of the pull request. :type first_comparing_iteration: int - :param second_comparing_iteration: Second comparing iteration Id. Minimum value is 1. + :param second_comparing_iteration: The iteration of the file on the right side of the diff when the thread was created. :type second_comparing_iteration: int """ @@ -208,9 +168,9 @@ def __init__(self, first_comparing_iteration=None, second_comparing_iteration=No class CommentPosition(Model): """CommentPosition. - :param line: Position line starting with one. + :param line: The line number of a thread's position. Starts at 1. :type line: int - :param offset: Position offset starting with zero. + :param offset: The character offset of a thread's position inside of a line. Starts at 0. :type offset: int """ @@ -228,30 +188,33 @@ def __init__(self, line=None, offset=None): class CommentThread(Model): """CommentThread. - :param _links: - :type _links: :class:`ReferenceLinks ` + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int - :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted + :param identities: Set of identities related to this thread + :type identities: dict + :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. :type is_deleted: bool :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime - :param properties: A list of (optional) thread properties. - :type properties: :class:`object ` + :param properties: Optional properties associated with the thread as a collection of key-value pairs. + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` """ _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'comments': {'key': 'comments', 'type': '[Comment]'}, 'id': {'key': 'id', 'type': 'int'}, + 'identities': {'key': 'identities', 'type': '{IdentityRef}'}, 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, 'properties': {'key': 'properties', 'type': 'object'}, @@ -260,11 +223,12 @@ class CommentThread(Model): 'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'} } - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): + def __init__(self, _links=None, comments=None, id=None, identities=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None): super(CommentThread, self).__init__() self._links = _links self.comments = comments self.id = id + self.identities = identities self.is_deleted = is_deleted self.last_updated_date = last_updated_date self.properties = properties @@ -278,14 +242,14 @@ class CommentThreadContext(Model): :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. :type file_path: str - :param left_file_end: Position of last character of the comment in left file. - :type left_file_end: :class:`CommentPosition ` - :param left_file_start: Position of first character of the comment in left file. - :type left_file_start: :class:`CommentPosition ` - :param right_file_end: Position of last character of the comment in right file. - :type right_file_end: :class:`CommentPosition ` - :param right_file_start: Position of first character of the comment in right file. - :type right_file_start: :class:`CommentPosition ` + :param left_file_end: Position of last character of the thread's span in left file. + :type left_file_end: :class:`CommentPosition ` + :param left_file_start: Position of first character of the thread's span in left file. + :type left_file_start: :class:`CommentPosition ` + :param right_file_end: Position of last character of the thread's span in right file. + :type right_file_end: :class:`CommentPosition ` + :param right_file_start: Position of first character of the thread's span in right file. + :type right_file_start: :class:`CommentPosition ` """ _attribute_map = { @@ -308,22 +272,25 @@ def __init__(self, file_path=None, left_file_end=None, left_file_start=None, rig class CommentTrackingCriteria(Model): """CommentTrackingCriteria. - :param first_comparing_iteration: The first comparing iteration being viewed. Threads will be tracked if this is greater than 0. + :param first_comparing_iteration: The iteration of the file on the left side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. :type first_comparing_iteration: int - :param orig_left_file_end: Original position of last character of the comment in left file. - :type orig_left_file_end: :class:`CommentPosition ` - :param orig_left_file_start: Original position of first character of the comment in left file. - :type orig_left_file_start: :class:`CommentPosition ` - :param orig_right_file_end: Original position of last character of the comment in right file. - :type orig_right_file_end: :class:`CommentPosition ` - :param orig_right_file_start: Original position of first character of the comment in right file. - :type orig_right_file_start: :class:`CommentPosition ` - :param second_comparing_iteration: The second comparing iteration being viewed. Threads will be tracked if this is greater than 0. + :param orig_file_path: Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. + :type orig_file_path: str + :param orig_left_file_end: Original position of last character of the thread's span in left file. + :type orig_left_file_end: :class:`CommentPosition ` + :param orig_left_file_start: Original position of first character of the thread's span in left file. + :type orig_left_file_start: :class:`CommentPosition ` + :param orig_right_file_end: Original position of last character of the thread's span in right file. + :type orig_right_file_end: :class:`CommentPosition ` + :param orig_right_file_start: Original position of first character of the thread's span in right file. + :type orig_right_file_start: :class:`CommentPosition ` + :param second_comparing_iteration: The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. :type second_comparing_iteration: int """ _attribute_map = { 'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'}, + 'orig_file_path': {'key': 'origFilePath', 'type': 'str'}, 'orig_left_file_end': {'key': 'origLeftFileEnd', 'type': 'CommentPosition'}, 'orig_left_file_start': {'key': 'origLeftFileStart', 'type': 'CommentPosition'}, 'orig_right_file_end': {'key': 'origRightFileEnd', 'type': 'CommentPosition'}, @@ -331,9 +298,10 @@ class CommentTrackingCriteria(Model): 'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'} } - def __init__(self, first_comparing_iteration=None, orig_left_file_end=None, orig_left_file_start=None, orig_right_file_end=None, orig_right_file_start=None, second_comparing_iteration=None): + def __init__(self, first_comparing_iteration=None, orig_file_path=None, orig_left_file_end=None, orig_left_file_start=None, orig_right_file_end=None, orig_right_file_start=None, second_comparing_iteration=None): super(CommentTrackingCriteria, self).__init__() self.first_comparing_iteration = first_comparing_iteration + self.orig_file_path = orig_file_path self.orig_left_file_end = orig_left_file_end self.orig_left_file_start = orig_left_file_start self.orig_right_file_end = orig_right_file_end @@ -381,19 +349,87 @@ def __init__(self, content_type=None, encoding=None, extension=None, file_name=N self.vs_link = vs_link +class FileDiff(Model): + """FileDiff. + + :param line_diff_blocks: The collection of line diff blocks + :type line_diff_blocks: list of :class:`LineDiffBlock ` + :param original_path: Original path of item if different from current path. + :type original_path: str + :param path: Current path of item + :type path: str + """ + + _attribute_map = { + 'line_diff_blocks': {'key': 'lineDiffBlocks', 'type': '[LineDiffBlock]'}, + 'original_path': {'key': 'originalPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, line_diff_blocks=None, original_path=None, path=None): + super(FileDiff, self).__init__() + self.line_diff_blocks = line_diff_blocks + self.original_path = original_path + self.path = path + + +class FileDiffParams(Model): + """FileDiffParams. + + :param original_path: Original path of the file + :type original_path: str + :param path: Current path of the file + :type path: str + """ + + _attribute_map = { + 'original_path': {'key': 'originalPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, original_path=None, path=None): + super(FileDiffParams, self).__init__() + self.original_path = original_path + self.path = path + + +class FileDiffsCriteria(Model): + """FileDiffsCriteria. + + :param base_version_commit: Commit ID of the base version + :type base_version_commit: str + :param file_diff_params: List of parameters for each of the files for which we need to get the file diff + :type file_diff_params: list of :class:`FileDiffParams ` + :param target_version_commit: Commit ID of the target version + :type target_version_commit: str + """ + + _attribute_map = { + 'base_version_commit': {'key': 'baseVersionCommit', 'type': 'str'}, + 'file_diff_params': {'key': 'fileDiffParams', 'type': '[FileDiffParams]'}, + 'target_version_commit': {'key': 'targetVersionCommit', 'type': 'str'} + } + + def __init__(self, base_version_commit=None, file_diff_params=None, target_version_commit=None): + super(FileDiffsCriteria, self).__init__() + self.base_version_commit = base_version_commit + self.file_diff_params = file_diff_params + self.target_version_commit = target_version_commit + + class GitAnnotatedTag(Model): """GitAnnotatedTag. - :param message: Tagging Message + :param message: The tagging Message :type message: str - :param name: + :param name: The name of the annotated tag. :type name: str - :param object_id: + :param object_id: The objectId (Sha1Id) of the tag. :type object_id: str - :param tagged_by: User name, Email and date of tagging - :type tagged_by: :class:`GitUserDate ` - :param tagged_object: Tagged git object - :type tagged_object: :class:`GitObject ` + :param tagged_by: User info and date of tagging. + :type tagged_by: :class:`GitUserDate ` + :param tagged_object: Tagged git object. + :type tagged_object: :class:`GitObject ` :param url: :type url: str """ @@ -421,14 +457,14 @@ class GitAsyncRefOperation(Model): """GitAsyncRefOperation. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object - :param url: + :param url: A URL that can be used to make further requests for status about the operation :type url: str """ @@ -452,17 +488,17 @@ def __init__(self, _links=None, detailed_status=None, parameters=None, status=No class GitAsyncRefOperationDetail(Model): """GitAsyncRefOperationDetail. - :param conflict: + :param conflict: Indicates if there was a conflict generated when trying to cherry pick or revert the changes. :type conflict: bool - :param current_commit_id: + :param current_commit_id: The current commit from the list of commits that are being cherry picked or reverted. :type current_commit_id: str - :param failure_message: + :param failure_message: Detailed information about why the cherry pick or revert failed to complete. :type failure_message: str - :param progress: + :param progress: A number between 0 and 1 indicating the percent complete of the operation. :type progress: float - :param status: + :param status: Provides a status code that indicates the reason the cherry pick or revert failed. :type status: object - :param timedout: + :param timedout: Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation. :type timedout: bool """ @@ -488,14 +524,14 @@ def __init__(self, conflict=None, current_commit_id=None, failure_message=None, class GitAsyncRefOperationParameters(Model): """GitAsyncRefOperationParameters. - :param generated_ref_name: + :param generated_ref_name: Proposed target branch name for the cherry pick or revert operation. :type generated_ref_name: str - :param onto_ref_name: + :param onto_ref_name: The target branch for the cherry pick or revert operation. :type onto_ref_name: str - :param repository: - :type repository: :class:`GitRepository ` - :param source: - :type source: :class:`GitAsyncRefOperationSource ` + :param repository: The git repository for the cherry pick or revert operation. + :type repository: :class:`GitRepository ` + :param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). + :type source: :class:`GitAsyncRefOperationSource ` """ _attribute_map = { @@ -516,9 +552,9 @@ def __init__(self, generated_ref_name=None, onto_ref_name=None, repository=None, class GitAsyncRefOperationSource(Model): """GitAsyncRefOperationSource. - :param commit_list: - :type commit_list: list of :class:`GitCommitRef ` - :param pull_request_id: + :param commit_list: A list of commits to cherry pick or revert + :type commit_list: list of :class:`GitCommitRef ` + :param pull_request_id: Id of the pull request to cherry pick or revert :type pull_request_id: int """ @@ -537,7 +573,7 @@ class GitBlobRef(Model): """GitBlobRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Size of blob content (in bytes) @@ -564,15 +600,15 @@ def __init__(self, _links=None, object_id=None, size=None, url=None): class GitBranchStats(Model): """GitBranchStats. - :param ahead_count: + :param ahead_count: Number of commits ahead. :type ahead_count: int - :param behind_count: + :param behind_count: Number of commits behind. :type behind_count: int - :param commit: - :type commit: :class:`GitCommitRef ` - :param is_base_version: + :param commit: Current commit. + :type commit: :class:`GitCommitRef ` + :param is_base_version: True if this is the result for the base version. :type is_base_version: bool - :param name: + :param name: Name of the ref. :type name: str """ @@ -597,14 +633,14 @@ class GitCherryPick(GitAsyncRefOperation): """GitCherryPick. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object - :param url: + :param url: A URL that can be used to make further requests for status about the operation :type url: str :param cherry_pick_id: :type cherry_pick_id: int @@ -630,7 +666,7 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` """ _attribute_map = { @@ -658,7 +694,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -691,32 +727,34 @@ def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None class GitCommitRef(Model): """GitCommitRef. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`GitUserDate ` - :param change_counts: + :param _links: A collection of related REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the commit. + :type author: :class:`GitUserDate ` + :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param comment: + :param changes: An enumeration of the changes included with the commit. + :type changes: list of :class:`object ` + :param comment: Comment or message of the commit. :type comment: str - :param comment_truncated: + :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. :type comment_truncated: bool - :param commit_id: + :param commit_id: ID (SHA-1) of the commit. :type commit_id: str - :param committer: - :type committer: :class:`GitUserDate ` - :param parents: + :param committer: Committer of the commit. + :type committer: :class:`GitUserDate ` + :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str - :param remote_url: + :param push: The push associated with this commit. + :type push: :class:`GitPushRef ` + :param remote_url: Remote URL path to the commit. :type remote_url: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: + :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. + :type statuses: list of :class:`GitStatus ` + :param url: REST URL for this resource. :type url: str - :param work_items: - :type work_items: list of :class:`ResourceRef ` + :param work_items: A list of workitems associated with this commit. + :type work_items: list of :class:`ResourceRef ` """ _attribute_map = { @@ -729,13 +767,14 @@ class GitCommitRef(Model): 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, 'parents': {'key': 'parents', 'type': '[str]'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, 'url': {'key': 'url', 'type': 'str'}, 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'} } - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None): + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, push=None, remote_url=None, statuses=None, url=None, work_items=None): super(GitCommitRef, self).__init__() self._links = _links self.author = author @@ -746,6 +785,7 @@ def __init__(self, _links=None, author=None, change_counts=None, changes=None, c self.commit_id = commit_id self.committer = committer self.parents = parents + self.push = push self.remote_url = remote_url self.statuses = statuses self.url = url @@ -756,7 +796,7 @@ class GitConflict(Model): """GitConflict. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param conflict_id: :type conflict_id: int :param conflict_path: @@ -764,19 +804,19 @@ class GitConflict(Model): :param conflict_type: :type conflict_type: object :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` + :type merge_base_commit: :class:`GitCommitRef ` :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` + :type merge_origin: :class:`GitMergeOriginRef ` :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` + :type merge_source_commit: :class:`GitCommitRef ` :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` + :type merge_target_commit: :class:`GitCommitRef ` :param resolution_error: :type resolution_error: object :param resolution_status: :type resolution_status: object :param resolved_by: - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` :param resolved_date: :type resolved_date: datetime :param url: @@ -816,13 +856,41 @@ def __init__(self, _links=None, conflict_id=None, conflict_path=None, conflict_t self.url = url +class GitConflictUpdateResult(Model): + """GitConflictUpdateResult. + + :param conflict_id: Conflict ID that was provided by input + :type conflict_id: int + :param custom_message: Reason for failing + :type custom_message: str + :param updated_conflict: New state of the conflict after updating + :type updated_conflict: :class:`GitConflict ` + :param update_status: Status of the update on the server + :type update_status: object + """ + + _attribute_map = { + 'conflict_id': {'key': 'conflictId', 'type': 'int'}, + 'custom_message': {'key': 'customMessage', 'type': 'str'}, + 'updated_conflict': {'key': 'updatedConflict', 'type': 'GitConflict'}, + 'update_status': {'key': 'updateStatus', 'type': 'object'} + } + + def __init__(self, conflict_id=None, custom_message=None, updated_conflict=None, update_status=None): + super(GitConflictUpdateResult, self).__init__() + self.conflict_id = conflict_id + self.custom_message = custom_message + self.updated_conflict = updated_conflict + self.update_status = update_status + + class GitDeletedRepository(Model): """GitDeletedRepository. :param created_date: :type created_date: datetime :param deleted_by: - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: :type deleted_date: datetime :param id: @@ -830,7 +898,7 @@ class GitDeletedRepository(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -904,15 +972,15 @@ class GitForkSyncRequest(Model): """GitForkSyncRequest. :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` + :type detailed_status: :class:`GitForkOperationStatusDetail ` :param operation_id: Unique identifier for the operation. :type operation_id: int :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` :param status: :type status: object """ @@ -940,9 +1008,9 @@ class GitForkSyncRequestParameters(Model): """GitForkSyncRequestParameters. :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` """ _attribute_map = { @@ -979,19 +1047,19 @@ def __init__(self, overwrite=None, url=None): class GitImportRequest(Model): """GitImportRequest. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param detailed_status: - :type detailed_status: :class:`GitImportStatusDetail ` - :param import_request_id: + :param _links: Links to related resources. + :type _links: :class:`ReferenceLinks ` + :param detailed_status: Detailed status of the import, including the current step and an error message, if applicable. + :type detailed_status: :class:`GitImportStatusDetail ` + :param import_request_id: The unique identifier for this import request. :type import_request_id: int - :param parameters: Parameters for creating an import request - :type parameters: :class:`GitImportRequestParameters ` - :param repository: - :type repository: :class:`GitRepository ` - :param status: + :param parameters: Parameters for creating the import request. + :type parameters: :class:`GitImportRequestParameters ` + :param repository: The target repository for this import. + :type repository: :class:`GitRepository ` + :param status: Current status of the import. :type status: object - :param url: + :param url: A link back to this import request resource. :type url: str """ @@ -1022,11 +1090,11 @@ class GitImportRequestParameters(Model): :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done :type delete_service_endpoint_after_import_is_done: bool :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param service_endpoint_id: Service Endpoint for connection to external endpoint :type service_endpoint_id: str :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` """ _attribute_map = { @@ -1047,11 +1115,11 @@ def __init__(self, delete_service_endpoint_after_import_is_done=None, git_source class GitImportStatusDetail(Model): """GitImportStatusDetail. - :param all_steps: + :param all_steps: All valid steps for the import process :type all_steps: list of str - :param current_step: + :param current_step: Index into AllSteps for the current step :type current_step: int - :param error_message: + :param error_message: Error message if the operation failed. :type error_message: str """ @@ -1132,7 +1200,7 @@ class GitItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` + :type item_descriptors: list of :class:`GitItemDescriptor ` :param latest_processed_change: Whether to include shallow ref to commit that last changed each item :type latest_processed_change: bool """ @@ -1152,6 +1220,26 @@ def __init__(self, include_content_metadata=None, include_links=None, item_descr self.latest_processed_change = latest_processed_change +class GitMergeOperationStatusDetail(Model): + """GitMergeOperationStatusDetail. + + :param failure_message: Error message if the operation failed. + :type failure_message: str + :param merge_commit_id: The commitId of the resultant merge commit. + :type merge_commit_id: str + """ + + _attribute_map = { + 'failure_message': {'key': 'failureMessage', 'type': 'str'}, + 'merge_commit_id': {'key': 'mergeCommitId', 'type': 'str'} + } + + def __init__(self, failure_message=None, merge_commit_id=None): + super(GitMergeOperationStatusDetail, self).__init__() + self.failure_message = failure_message + self.merge_commit_id = merge_commit_id + + class GitMergeOriginRef(Model): """GitMergeOriginRef. @@ -1168,10 +1256,30 @@ def __init__(self, pull_request_id=None): self.pull_request_id = pull_request_id +class GitMergeParameters(Model): + """GitMergeParameters. + + :param comment: Comment or message of the commit. + :type comment: str + :param parents: An enumeration of the parent commit IDs for the merge commit. + :type parents: list of str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parents': {'key': 'parents', 'type': '[str]'} + } + + def __init__(self, comment=None, parents=None): + super(GitMergeParameters, self).__init__() + self.comment = comment + self.parents = parents + + class GitObject(Model): """GitObject. - :param object_id: Git object id + :param object_id: Object Id (Sha1Id). :type object_id: str :param object_type: Type of object (Commit, Tree, Blob, Tag) :type object_type: object @@ -1188,75 +1296,97 @@ def __init__(self, object_id=None, object_type=None): self.object_type = object_type +class GitPolicyConfigurationResponse(Model): + """GitPolicyConfigurationResponse. + + :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. + :type continuation_token: str + :param policy_configurations: + :type policy_configurations: list of :class:`PolicyConfiguration ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'policy_configurations': {'key': 'policyConfigurations', 'type': '[PolicyConfiguration]'} + } + + def __init__(self, continuation_token=None, policy_configurations=None): + super(GitPolicyConfigurationResponse, self).__init__() + self.continuation_token = continuation_token + self.policy_configurations = policy_configurations + + class GitPullRequest(Model): """GitPullRequest. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param artifact_id: + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param artifact_id: A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}``` :type artifact_id: str - :param auto_complete_set_by: - :type auto_complete_set_by: :class:`IdentityRef ` - :param closed_by: - :type closed_by: :class:`IdentityRef ` - :param closed_date: + :param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it. + :type auto_complete_set_by: :class:`IdentityRef ` + :param closed_by: The user who closed the pull request. + :type closed_by: :class:`IdentityRef ` + :param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally). :type closed_date: datetime - :param code_review_id: + :param code_review_id: The code review ID of the pull request. Used internally. :type code_review_id: int - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param completion_options: - :type completion_options: :class:`GitPullRequestCompletionOptions ` - :param completion_queue_time: + :param commits: The commits contained in the pull request. + :type commits: list of :class:`GitCommitRef ` + :param completion_options: Options which affect how the pull request will be merged when it is completed. + :type completion_options: :class:`GitPullRequestCompletionOptions ` + :param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally. :type completion_queue_time: datetime - :param created_by: - :type created_by: :class:`IdentityRef ` - :param creation_date: + :param created_by: The identity of the user who created the pull request. + :type created_by: :class:`IdentityRef ` + :param creation_date: The date when the pull request was created. :type creation_date: datetime - :param description: + :param description: The description of the pull request. :type description: str - :param fork_source: - :type fork_source: :class:`GitForkRef ` - :param labels: - :type labels: list of :class:`WebApiTagDefinition ` - :param last_merge_commit: - :type last_merge_commit: :class:`GitCommitRef ` - :param last_merge_source_commit: - :type last_merge_source_commit: :class:`GitCommitRef ` - :param last_merge_target_commit: - :type last_merge_target_commit: :class:`GitCommitRef ` - :param merge_failure_message: + :param fork_source: If this is a PR from a fork this will contain information about its source. + :type fork_source: :class:`GitForkRef ` + :param is_draft: Draft / WIP pull request. + :type is_draft: bool + :param labels: The labels associated with the pull request. + :type labels: list of :class:`WebApiTagDefinition ` + :param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. + :type last_merge_commit: :class:`GitCommitRef ` + :param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge. + :type last_merge_source_commit: :class:`GitCommitRef ` + :param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge. + :type last_merge_target_commit: :class:`GitCommitRef ` + :param merge_failure_message: If set, pull request merge failed for this reason. :type merge_failure_message: str - :param merge_failure_type: + :param merge_failure_type: The type of failure (if any) of the pull request merge. :type merge_failure_type: object - :param merge_id: + :param merge_id: The ID of the job used to run the pull request merge. Used internally. :type merge_id: str - :param merge_options: - :type merge_options: :class:`GitPullRequestMergeOptions ` - :param merge_status: + :param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. + :type merge_options: :class:`GitPullRequestMergeOptions ` + :param merge_status: The current status of the pull request merge. :type merge_status: object - :param pull_request_id: + :param pull_request_id: The ID of the pull request. :type pull_request_id: int - :param remote_url: + :param remote_url: Used internally. :type remote_url: str - :param repository: - :type repository: :class:`GitRepository ` - :param reviewers: - :type reviewers: list of :class:`IdentityRefWithVote ` - :param source_ref_name: + :param repository: The repository containing the target branch of the pull request. + :type repository: :class:`GitRepository ` + :param reviewers: A list of reviewers on the pull request along with the state of their votes. + :type reviewers: list of :class:`IdentityRefWithVote ` + :param source_ref_name: The name of the source branch of the pull request. :type source_ref_name: str - :param status: + :param status: The status of the pull request. :type status: object - :param supports_iterations: + :param supports_iterations: If true, this pull request supports multiple iterations. Iteration support means individual pushes to the source branch of the pull request can be reviewed and comments left in one iteration will be tracked across future iterations. :type supports_iterations: bool - :param target_ref_name: + :param target_ref_name: The name of the target branch of the pull request. :type target_ref_name: str - :param title: + :param title: The title of the pull request. :type title: str - :param url: + :param url: Used internally. :type url: str - :param work_item_refs: - :type work_item_refs: list of :class:`ResourceRef ` + :param work_item_refs: Any work item references associated with this pull request. + :type work_item_refs: list of :class:`ResourceRef ` """ _attribute_map = { @@ -1273,6 +1403,7 @@ class GitPullRequest(Model): 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, 'description': {'key': 'description', 'type': 'str'}, 'fork_source': {'key': 'forkSource', 'type': 'GitForkRef'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, 'labels': {'key': 'labels', 'type': '[WebApiTagDefinition]'}, 'last_merge_commit': {'key': 'lastMergeCommit', 'type': 'GitCommitRef'}, 'last_merge_source_commit': {'key': 'lastMergeSourceCommit', 'type': 'GitCommitRef'}, @@ -1295,7 +1426,7 @@ class GitPullRequest(Model): 'work_item_refs': {'key': 'workItemRefs', 'type': '[ResourceRef]'} } - def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): + def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, is_draft=None, labels=None, last_merge_commit=None, last_merge_source_commit=None, last_merge_target_commit=None, merge_failure_message=None, merge_failure_type=None, merge_id=None, merge_options=None, merge_status=None, pull_request_id=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None): super(GitPullRequest, self).__init__() self._links = _links self.artifact_id = artifact_id @@ -1310,6 +1441,7 @@ def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, clo self.creation_date = creation_date self.description = description self.fork_source = fork_source + self.is_draft = is_draft self.labels = labels self.last_merge_commit = last_merge_commit self.last_merge_source_commit = last_merge_source_commit @@ -1335,32 +1467,35 @@ def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, clo class GitPullRequestCommentThread(CommentThread): """GitPullRequestCommentThread. - :param _links: - :type _links: :class:`ReferenceLinks ` + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int - :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted + :param identities: Set of identities related to this thread + :type identities: dict + :param is_deleted: Specify if the thread is deleted which happens when all comments are deleted. :type is_deleted: bool :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime - :param properties: A list of (optional) thread properties. - :type properties: :class:`object ` + :param properties: Optional properties associated with the thread as a collection of key-value pairs. + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` """ _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'comments': {'key': 'comments', 'type': '[Comment]'}, 'id': {'key': 'id', 'type': 'int'}, + 'identities': {'key': 'identities', 'type': '{IdentityRef}'}, 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, 'properties': {'key': 'properties', 'type': 'object'}, @@ -1370,8 +1505,8 @@ class GitPullRequestCommentThread(CommentThread): 'pull_request_thread_context': {'key': 'pullRequestThreadContext', 'type': 'GitPullRequestCommentThreadContext'} } - def __init__(self, _links=None, comments=None, id=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): - super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) + def __init__(self, _links=None, comments=None, id=None, identities=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None): + super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, identities=identities, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context) self.pull_request_thread_context = pull_request_thread_context @@ -1380,10 +1515,10 @@ class GitPullRequestCommentThreadContext(Model): :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. :type change_tracking_id: int - :param iteration_context: Specify comparing iteration Ids when a comment thread is added while comparing 2 iterations. - :type iteration_context: :class:`CommentIterationContext ` + :param iteration_context: The iteration context being viewed when the thread was created. + :type iteration_context: :class:`CommentIterationContext ` :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` + :type tracking_criteria: :class:`CommentTrackingCriteria ` """ _attribute_map = { @@ -1402,18 +1537,20 @@ def __init__(self, change_tracking_id=None, iteration_context=None, tracking_cri class GitPullRequestCompletionOptions(Model): """GitPullRequestCompletionOptions. - :param bypass_policy: + :param bypass_policy: If true, policies will be explicitly bypassed while the pull request is completed. :type bypass_policy: bool - :param bypass_reason: + :param bypass_reason: If policies are bypassed, this reason is stored as to why bypass was used. :type bypass_reason: str - :param delete_source_branch: + :param delete_source_branch: If true, the source branch of the pull request will be deleted after completion. :type delete_source_branch: bool - :param merge_commit_message: + :param merge_commit_message: If set, this will be used as the commit message of the merge commit. :type merge_commit_message: str - :param squash_merge: + :param squash_merge: If true, the commits in the pull request will be squash-merged into the specified target branch on completion. :type squash_merge: bool - :param transition_work_items: + :param transition_work_items: If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved) :type transition_work_items: bool + :param triggered_by_auto_complete: If true, the current completion attempt was triggered via auto-complete. Used internally. + :type triggered_by_auto_complete: bool """ _attribute_map = { @@ -1422,10 +1559,11 @@ class GitPullRequestCompletionOptions(Model): 'delete_source_branch': {'key': 'deleteSourceBranch', 'type': 'bool'}, 'merge_commit_message': {'key': 'mergeCommitMessage', 'type': 'str'}, 'squash_merge': {'key': 'squashMerge', 'type': 'bool'}, - 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'} + 'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'}, + 'triggered_by_auto_complete': {'key': 'triggeredByAutoComplete', 'type': 'bool'} } - def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None): + def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, squash_merge=None, transition_work_items=None, triggered_by_auto_complete=None): super(GitPullRequestCompletionOptions, self).__init__() self.bypass_policy = bypass_policy self.bypass_reason = bypass_reason @@ -1433,38 +1571,43 @@ def __init__(self, bypass_policy=None, bypass_reason=None, delete_source_branch= self.merge_commit_message = merge_commit_message self.squash_merge = squash_merge self.transition_work_items = transition_work_items + self.triggered_by_auto_complete = triggered_by_auto_complete class GitPullRequestIteration(Model): """GitPullRequestIteration. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`IdentityRef ` - :param change_list: - :type change_list: list of :class:`GitPullRequestChange ` - :param commits: - :type commits: list of :class:`GitCommitRef ` - :param common_ref_commit: - :type common_ref_commit: :class:`GitCommitRef ` - :param created_date: + :param _links: A collection of related REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the pull request iteration. + :type author: :class:`IdentityRef ` + :param change_list: Changes included with the pull request iteration. + :type change_list: list of :class:`GitPullRequestChange ` + :param commits: The commits included with the pull request iteration. + :type commits: list of :class:`GitCommitRef ` + :param common_ref_commit: The first common Git commit of the source and target refs. + :type common_ref_commit: :class:`GitCommitRef ` + :param created_date: The creation date of the pull request iteration. :type created_date: datetime - :param description: + :param description: Description of the pull request iteration. :type description: str - :param has_more_commits: + :param has_more_commits: Indicates if the Commits property contains a truncated list of commits in this pull request iteration. :type has_more_commits: bool - :param id: + :param id: ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request. :type id: int - :param push: - :type push: :class:`GitPushRef ` - :param reason: + :param new_target_ref_name: If the iteration reason is Retarget, this is the refName of the new target + :type new_target_ref_name: str + :param old_target_ref_name: If the iteration reason is Retarget, this is the original target refName + :type old_target_ref_name: str + :param push: The Git push information associated with this pull request iteration. + :type push: :class:`GitPushRef ` + :param reason: The reason for which the pull request iteration was created. :type reason: object - :param source_ref_commit: - :type source_ref_commit: :class:`GitCommitRef ` - :param target_ref_commit: - :type target_ref_commit: :class:`GitCommitRef ` - :param updated_date: + :param source_ref_commit: The source Git commit of this iteration. + :type source_ref_commit: :class:`GitCommitRef ` + :param target_ref_commit: The target Git commit of this iteration. + :type target_ref_commit: :class:`GitCommitRef ` + :param updated_date: The updated date of the pull request iteration. :type updated_date: datetime """ @@ -1478,6 +1621,8 @@ class GitPullRequestIteration(Model): 'description': {'key': 'description', 'type': 'str'}, 'has_more_commits': {'key': 'hasMoreCommits', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, + 'new_target_ref_name': {'key': 'newTargetRefName', 'type': 'str'}, + 'old_target_ref_name': {'key': 'oldTargetRefName', 'type': 'str'}, 'push': {'key': 'push', 'type': 'GitPushRef'}, 'reason': {'key': 'reason', 'type': 'object'}, 'source_ref_commit': {'key': 'sourceRefCommit', 'type': 'GitCommitRef'}, @@ -1485,7 +1630,7 @@ class GitPullRequestIteration(Model): 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'} } - def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): + def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, new_target_ref_name=None, old_target_ref_name=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None): super(GitPullRequestIteration, self).__init__() self._links = _links self.author = author @@ -1496,6 +1641,8 @@ def __init__(self, _links=None, author=None, change_list=None, commits=None, com self.description = description self.has_more_commits = has_more_commits self.id = id + self.new_target_ref_name = new_target_ref_name + self.old_target_ref_name = old_target_ref_name self.push = push self.reason = reason self.source_ref_commit = source_ref_commit @@ -1506,11 +1653,11 @@ def __init__(self, _links=None, author=None, change_list=None, commits=None, com class GitPullRequestIterationChanges(Model): """GitPullRequestIterationChanges. - :param change_entries: - :type change_entries: list of :class:`GitPullRequestChange ` - :param next_skip: + :param change_entries: Changes made in the iteration. + :type change_entries: list of :class:`GitPullRequestChange ` + :param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. :type next_skip: int - :param next_top: + :param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes. :type next_top: int """ @@ -1530,25 +1677,29 @@ def __init__(self, change_entries=None, next_skip=None, next_top=None): class GitPullRequestMergeOptions(Model): """GitPullRequestMergeOptions. - :param disable_renames: + :param detect_rename_false_positives: + :type detect_rename_false_positives: bool + :param disable_renames: If true, rename detection will not be performed during the merge. :type disable_renames: bool """ _attribute_map = { + 'detect_rename_false_positives': {'key': 'detectRenameFalsePositives', 'type': 'bool'}, 'disable_renames': {'key': 'disableRenames', 'type': 'bool'} } - def __init__(self, disable_renames=None): + def __init__(self, detect_rename_false_positives=None, disable_renames=None): super(GitPullRequestMergeOptions, self).__init__() + self.detect_rename_false_positives = detect_rename_false_positives self.disable_renames = disable_renames class GitPullRequestQuery(Model): """GitPullRequestQuery. - :param queries: The query to perform - :type queries: list of :class:`GitPullRequestQueryInput ` - :param results: The results of the query + :param queries: The queries to perform. + :type queries: list of :class:`GitPullRequestQueryInput ` + :param results: The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. :type results: list of {[GitPullRequest]} """ @@ -1566,9 +1717,9 @@ def __init__(self, queries=None, results=None): class GitPullRequestQueryInput(Model): """GitPullRequestQueryInput. - :param items: The list commit ids to search for. + :param items: The list of commit IDs to search for. :type items: list of str - :param type: The type of query to perform + :param type: The type of query to perform. :type type: object """ @@ -1586,21 +1737,21 @@ def __init__(self, items=None, type=None): class GitPullRequestSearchCriteria(Model): """GitPullRequestSearchCriteria. - :param creator_id: + :param creator_id: If set, search for pull requests that were created by this identity. :type creator_id: str :param include_links: Whether to include the _links field on the shallow references :type include_links: bool - :param repository_id: + :param repository_id: If set, search for pull requests whose target branch is in this repository. :type repository_id: str - :param reviewer_id: + :param reviewer_id: If set, search for pull requests that have this identity as a reviewer. :type reviewer_id: str - :param source_ref_name: + :param source_ref_name: If set, search for pull requests from this branch. :type source_ref_name: str - :param source_repository_id: + :param source_repository_id: If set, search for pull requests whose source branch is in this repository. :type source_repository_id: str - :param status: + :param status: If set, search for pull requests that are in this state. Defaults to Active if unset. :type status: object - :param target_ref_name: + :param target_ref_name: If set, search for pull requests into this branch. :type target_ref_name: str """ @@ -1631,13 +1782,13 @@ class GitPushRef(Model): """GitPushRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: @@ -1703,9 +1854,9 @@ class GitQueryBranchStatsCriteria(Model): """GitQueryBranchStatsCriteria. :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` + :type base_commit: :class:`GitVersionDescriptor ` :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` + :type target_commits: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -1728,26 +1879,30 @@ class GitQueryCommitsCriteria(Model): :type top: int :param author: Alias or display name of the author :type author: str - :param compare_version: If provided, the earliest commit in the graph to search - :type compare_version: :class:`GitVersionDescriptor ` - :param exclude_deletes: If true, don't include delete history entries + :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. + :type compare_version: :class:`GitVersionDescriptor ` + :param exclude_deletes: Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path. :type exclude_deletes: bool :param from_commit_id: If provided, a lower bound for filtering commits alphabetically :type from_commit_id: str :param from_date: If provided, only include history entries created after this date (string) :type from_date: str - :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null. + :param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified. :type history_mode: object :param ids: If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters. :type ids: list of str :param include_links: Whether to include the _links field on the shallow references :type include_links: bool + :param include_push_data: Whether to include the push information + :type include_push_data: bool + :param include_user_image_url: Whether to include the image Url for committers and authors + :type include_user_image_url: bool :param include_work_items: Whether to include linked work items :type include_work_items: bool :param item_path: Path of item to search under :type item_path: str :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` + :type item_version: :class:`GitVersionDescriptor ` :param to_commit_id: If provided, an upper bound for filtering commits alphabetically :type to_commit_id: str :param to_date: If provided, only include history entries created before this date (string) @@ -1767,6 +1922,8 @@ class GitQueryCommitsCriteria(Model): 'history_mode': {'key': 'historyMode', 'type': 'object'}, 'ids': {'key': 'ids', 'type': '[str]'}, 'include_links': {'key': 'includeLinks', 'type': 'bool'}, + 'include_push_data': {'key': 'includePushData', 'type': 'bool'}, + 'include_user_image_url': {'key': 'includeUserImageUrl', 'type': 'bool'}, 'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'}, 'item_path': {'key': 'itemPath', 'type': 'str'}, 'item_version': {'key': 'itemVersion', 'type': 'GitVersionDescriptor'}, @@ -1775,7 +1932,7 @@ class GitQueryCommitsCriteria(Model): 'user': {'key': 'user', 'type': 'str'} } - def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): + def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_push_data=None, include_user_image_url=None, include_work_items=None, item_path=None, item_version=None, to_commit_id=None, to_date=None, user=None): super(GitQueryCommitsCriteria, self).__init__() self.skip = skip self.top = top @@ -1787,6 +1944,8 @@ def __init__(self, skip=None, top=None, author=None, compare_version=None, exclu self.history_mode = history_mode self.ids = ids self.include_links = include_links + self.include_push_data = include_push_data + self.include_user_image_url = include_user_image_url self.include_work_items = include_work_items self.item_path = item_path self.item_version = item_version @@ -1795,15 +1954,33 @@ def __init__(self, skip=None, top=None, author=None, compare_version=None, exclu self.user = user +class GitRecycleBinRepositoryDetails(Model): + """GitRecycleBinRepositoryDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the repository. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(GitRecycleBinRepositoryDetails, self).__init__() + self.deleted = deleted + + class GitRef(Model): """GitRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param creator: + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -1811,13 +1988,14 @@ class GitRef(Model): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str """ _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'creator': {'key': 'creator', 'type': 'IdentityRef'}, 'is_locked': {'key': 'isLocked', 'type': 'bool'}, 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, 'name': {'key': 'name', 'type': 'str'}, @@ -1827,9 +2005,10 @@ class GitRef(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): + def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None): super(GitRef, self).__init__() self._links = _links + self.creator = creator self.is_locked = is_locked self.is_locked_by = is_locked_by self.name = name @@ -1843,7 +2022,7 @@ class GitRefFavorite(Model): """GitRefFavorite. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param identity_id: @@ -1963,7 +2142,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -1973,11 +2152,15 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str + :param size: Compressed size (bytes) of the repository. + :type size: long + :param ssh_url: + :type ssh_url: str :param url: :type url: str :param valid_remote_urls: @@ -1993,11 +2176,13 @@ class GitRepository(Model): 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} } - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, size=None, ssh_url=None, url=None, valid_remote_urls=None): super(GitRepository, self).__init__() self._links = _links self.default_branch = default_branch @@ -2007,6 +2192,8 @@ def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name self.parent_repository = parent_repository self.project = project self.remote_url = remote_url + self.size = size + self.ssh_url = ssh_url self.url = url self.valid_remote_urls = valid_remote_urls @@ -2017,9 +2204,9 @@ class GitRepositoryCreateOptions(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -2039,15 +2226,19 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str + :param ssh_url: + :type ssh_url: str :param url: :type url: str """ @@ -2055,19 +2246,23 @@ class GitRepositoryRef(Model): _attribute_map = { 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): super(GitRepositoryRef, self).__init__() self.collection = collection self.id = id + self.is_fork = is_fork self.name = name self.project = project self.remote_url = remote_url + self.ssh_url = ssh_url self.url = url @@ -2103,14 +2298,14 @@ class GitRevert(GitAsyncRefOperation): """GitRevert. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object - :param url: + :param url: A URL that can be used to make further requests for status about the operation :type url: str :param revert_id: :type revert_id: int @@ -2134,11 +2329,11 @@ class GitStatus(Model): """GitStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -2201,9 +2396,9 @@ def __init__(self, genre=None, name=None): class GitSuggestion(Model): """GitSuggestion. - :param properties: + :param properties: Specific properties describing the suggestion. :type properties: dict - :param type: + :param type: The type of suggestion (e.g. pull request). :type type: str """ @@ -2244,7 +2439,7 @@ class GitTreeDiff(Model): :param base_tree_id: ObjectId of the base tree of this diff. :type base_tree_id: str :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` + :type diff_entries: list of :class:`GitTreeDiffEntry ` :param target_tree_id: ObjectId of the target tree of this diff. :type target_tree_id: str :param url: REST Url to this resource. @@ -2304,7 +2499,7 @@ class GitTreeDiffResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: list of str :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` + :type tree_diff: :class:`GitTreeDiff ` """ _attribute_map = { @@ -2358,13 +2553,13 @@ class GitTreeRef(Model): """GitTreeRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Sum of sizes of all children :type size: long :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` + :type tree_entries: list of :class:`GitTreeEntryRef ` :param url: Url to tree :type url: str """ @@ -2389,24 +2584,28 @@ def __init__(self, _links=None, object_id=None, size=None, tree_entries=None, ur class GitUserDate(Model): """GitUserDate. - :param date: + :param date: Date of the Git operation. :type date: datetime - :param email: + :param email: Email address of the user performing the Git operation. :type email: str - :param name: + :param image_url: Url for the user's avatar. + :type image_url: str + :param name: Name of the user performing the Git operation. :type name: str """ _attribute_map = { 'date': {'key': 'date', 'type': 'iso-8601'}, 'email': {'key': 'email', 'type': 'str'}, + 'image_url': {'key': 'imageUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, date=None, email=None, name=None): + def __init__(self, date=None, email=None, image_url=None, name=None): super(GitUserDate, self).__init__() self.date = date self.email = email + self.image_url = image_url self.name = name @@ -2437,11 +2636,11 @@ def __init__(self, version=None, version_options=None, version_type=None): class GlobalGitRepositoryKey(Model): """GlobalGitRepositoryKey. - :param collection_id: + :param collection_id: Team Project Collection ID of the collection for the repository. :type collection_id: str - :param project_id: + :param project_id: Team Project ID of the project for the repository. :type project_id: str - :param repository_id: + :param repository_id: ID of the repository. :type repository_id: str """ @@ -2458,110 +2657,155 @@ def __init__(self, collection_id=None, project_id=None, repository_id=None): self.repository_id = repository_id -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class IdentityRefWithVote(IdentityRef): """IdentityRefWithVote. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str - :param is_required: + :param is_required: Indicates if this is a required reviewer for this pull request.
Branches can have policies that require particular reviewers are required for pull requests. :type is_required: bool - :param reviewer_url: + :param reviewer_url: URL to retrieve information about this identity :type reviewer_url: str - :param vote: + :param vote: Vote on a pull request:
10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected :type vote: int - :param voted_for: - :type voted_for: list of :class:`IdentityRefWithVote ` + :param voted_for: Groups or teams that that this reviewer contributed to.
Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes. + :type voted_for: list of :class:`IdentityRefWithVote ` """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'}, 'is_required': {'key': 'isRequired', 'type': 'bool'}, 'reviewer_url': {'key': 'reviewerUrl', 'type': 'str'}, 'vote': {'key': 'vote', 'type': 'int'}, 'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, is_required=None, reviewer_url=None, vote=None, voted_for=None): - super(IdentityRefWithVote, self).__init__(directory_alias=directory_alias, display_name=display_name, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) + 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, is_required=None, reviewer_url=None, vote=None, voted_for=None): + super(IdentityRefWithVote, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, is_deleted_in_origin=is_deleted_in_origin, profile_url=profile_url, unique_name=unique_name) self.is_required = is_required self.reviewer_url = reviewer_url self.vote = vote @@ -2572,11 +2816,11 @@ class ImportRepositoryValidation(Model): """ImportRepositoryValidation. :param git_source: - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param password: :type password: str :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` :param username: :type username: str """ @@ -2620,9 +2864,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -2635,6 +2881,7 @@ class ItemModel(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -2642,9 +2889,10 @@ class ItemModel(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): super(ItemModel, self).__init__() self._links = _links + self.content = content self.content_metadata = content_metadata self.is_folder = is_folder self.is_sym_link = is_sym_link @@ -2652,6 +2900,114 @@ def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_li self.url = url +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class LineDiffBlock(Model): + """LineDiffBlock. + + :param change_type: Type of change that was made to the block. + :type change_type: object + :param modified_line_number_start: Line number where this block starts in modified file. + :type modified_line_number_start: int + :param modified_lines_count: Count of lines in this block in modified file. + :type modified_lines_count: int + :param original_line_number_start: Line number where this block starts in original file. + :type original_line_number_start: int + :param original_lines_count: Count of lines in this block in original file. + :type original_lines_count: int + """ + + _attribute_map = { + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'modified_line_number_start': {'key': 'modifiedLineNumberStart', 'type': 'int'}, + 'modified_lines_count': {'key': 'modifiedLinesCount', 'type': 'int'}, + 'original_line_number_start': {'key': 'originalLineNumberStart', 'type': 'int'}, + 'original_lines_count': {'key': 'originalLinesCount', 'type': 'int'} + } + + def __init__(self, change_type=None, modified_line_number_start=None, modified_lines_count=None, original_line_number_start=None, original_lines_count=None): + super(LineDiffBlock, self).__init__() + self.change_type = change_type + self.modified_line_number_start = modified_line_number_start + self.modified_lines_count = modified_lines_count + self.original_line_number_start = original_line_number_start + self.original_lines_count = original_lines_count + + +class PolicyConfigurationRef(Model): + """PolicyConfigurationRef. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, type=None, url=None): + super(PolicyConfigurationRef, self).__init__() + self.id = id + self.type = type + self.url = url + + +class PolicyTypeRef(Model): + """PolicyTypeRef. + + :param display_name: Display name of the policy type. + :type display_name: str + :param id: The policy type ID. + :type id: str + :param url: The URL where the policy type can be retrieved. + :type url: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, url=None): + super(PolicyTypeRef, self).__init__() + self.display_name = display_name + self.id = id + self.url = url + + class ReferenceLinks(Model): """ReferenceLinks. @@ -2694,7 +3050,7 @@ class ShareNotificationContext(Model): :param message: Optional user note or message. :type message: str :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` + :type receivers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -2713,7 +3069,7 @@ class SourceToTargetRef(Model): :param source_ref: The source ref to copy. For example, refs/heads/master. :type source_ref: str - :param target_ref: The target ref to update. For example, refs/heads/master + :param target_ref: The target ref to update. For example, refs/heads/master. :type target_ref: str """ @@ -2757,10 +3113,14 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. :type id: str + :param last_update_time: Project last update time. + :type last_update_time: datetime :param name: Project name. :type name: str :param revision: Project revision. @@ -2775,8 +3135,10 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'revision': {'key': 'revision', 'type': 'long'}, 'state': {'key': 'state', 'type': 'object'}, @@ -2784,11 +3146,13 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id + self.last_update_time = last_update_time self.name = name self.revision = revision self.state = state @@ -2796,13 +3160,38 @@ def __init__(self, abbreviation=None, description=None, id=None, name=None, revi self.visibility = visibility +class VersionedPolicyConfigurationRef(PolicyConfigurationRef): + """VersionedPolicyConfigurationRef. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + :param revision: The policy configuration revision ID. + :type revision: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, id=None, type=None, url=None, revision=None): + super(VersionedPolicyConfigurationRef, self).__init__(id=id, type=type, url=url) + self.revision = revision + + class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -2823,7 +3212,7 @@ def __init__(self, collection=None, repository=None, server_url=None): class WebApiCreateTagRequestData(Model): """WebApiCreateTagRequestData. - :param name: + :param name: Name of the tag definition that will be created. :type name: str """ @@ -2839,13 +3228,13 @@ def __init__(self, name=None): class WebApiTagDefinition(Model): """WebApiTagDefinition. - :param active: + :param active: Whether or not the tag definition is active. :type active: bool - :param id: + :param id: ID of the tag definition. :type id: str - :param name: + :param name: The name of the tag definition. :type name: str - :param url: + :param url: Resource URL for the Tag Definition. :type url: str """ @@ -2900,34 +3289,34 @@ def __init__(self, version=None, version_options=None, version_type=None, base_v class GitCommit(GitCommitRef): """GitCommit. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`GitUserDate ` - :param change_counts: + :param _links: A collection of related REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Author of the commit. + :type author: :class:`GitUserDate ` + :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict - :param changes: - :type changes: list of :class:`object ` - :param comment: + :param changes: An enumeration of the changes included with the commit. + :type changes: list of :class:`object ` + :param comment: Comment or message of the commit. :type comment: str - :param comment_truncated: + :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. :type comment_truncated: bool - :param commit_id: + :param commit_id: ID (SHA-1) of the commit. :type commit_id: str - :param committer: - :type committer: :class:`GitUserDate ` - :param parents: + :param committer: Committer of the commit. + :type committer: :class:`GitUserDate ` + :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str - :param remote_url: + :param push: The push associated with this commit. + :type push: :class:`GitPushRef ` + :param remote_url: Remote URL path to the commit. :type remote_url: str - :param statuses: - :type statuses: list of :class:`GitStatus ` - :param url: + :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. + :type statuses: list of :class:`GitStatus ` + :param url: REST URL for this resource. :type url: str - :param work_items: - :type work_items: list of :class:`ResourceRef ` - :param push: - :type push: :class:`GitPushRef ` + :param work_items: A list of workitems associated with this commit. + :type work_items: list of :class:`ResourceRef ` :param tree_id: :type tree_id: str """ @@ -2942,17 +3331,16 @@ class GitCommit(GitCommitRef): 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, 'parents': {'key': 'parents', 'type': '[str]'}, + 'push': {'key': 'push', 'type': 'GitPushRef'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, 'statuses': {'key': 'statuses', 'type': '[GitStatus]'}, 'url': {'key': 'url', 'type': 'str'}, 'work_items': {'key': 'workItems', 'type': '[ResourceRef]'}, - 'push': {'key': 'push', 'type': 'GitPushRef'}, 'tree_id': {'key': 'treeId', 'type': 'str'} } - def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, remote_url=None, statuses=None, url=None, work_items=None, push=None, tree_id=None): - super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) - self.push = push + def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, push=None, remote_url=None, statuses=None, url=None, work_items=None, tree_id=None): + super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, push=push, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items) self.tree_id = tree_id @@ -2960,11 +3348,13 @@ class GitForkRef(GitRef): """GitForkRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param creator: + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -2972,15 +3362,16 @@ class GitForkRef(GitRef): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str - :param repository: - :type repository: :class:`GitRepository ` + :param repository: The repository ID of the fork. + :type repository: :class:`GitRepository ` """ _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'creator': {'key': 'creator', 'type': 'IdentityRef'}, 'is_locked': {'key': 'isLocked', 'type': 'bool'}, 'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'}, 'name': {'key': 'name', 'type': 'str'}, @@ -2991,8 +3382,8 @@ class GitForkRef(GitRef): 'repository': {'key': 'repository', 'type': 'GitRepository'} } - def __init__(self, _links=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): - super(GitForkRef, self).__init__(_links=_links, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) + def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None): + super(GitForkRef, self).__init__(_links=_links, creator=creator, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url) self.repository = repository @@ -3000,9 +3391,11 @@ class GitItem(ItemModel): """GitItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -3016,7 +3409,7 @@ class GitItem(ItemModel): :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) :type git_object_type: object :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` + :type latest_processed_change: :class:`GitCommitRef ` :param object_id: Git object id :type object_id: str :param original_object_id: Git object id @@ -3025,6 +3418,7 @@ class GitItem(ItemModel): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -3037,8 +3431,8 @@ class GitItem(ItemModel): 'original_object_id': {'key': 'originalObjectId', 'type': 'str'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): - super(GitItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None): + super(GitItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) self.commit_id = commit_id self.git_object_type = git_object_type self.latest_processed_change = latest_processed_change @@ -3046,15 +3440,49 @@ def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_li self.original_object_id = original_object_id +class GitMerge(GitMergeParameters): + """GitMerge. + + :param comment: Comment or message of the commit. + :type comment: str + :param parents: An enumeration of the parent commit IDs for the merge commit. + :type parents: list of str + :param _links: Reference links. + :type _links: :class:`ReferenceLinks ` + :param detailed_status: Detailed status of the merge operation. + :type detailed_status: :class:`GitMergeOperationStatusDetail ` + :param merge_operation_id: Unique identifier for the merge operation. + :type merge_operation_id: int + :param status: Status of the merge operation. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'parents': {'key': 'parents', 'type': '[str]'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'GitMergeOperationStatusDetail'}, + 'merge_operation_id': {'key': 'mergeOperationId', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, parents=None, _links=None, detailed_status=None, merge_operation_id=None, status=None): + super(GitMerge, self).__init__(comment=comment, parents=parents) + self._links = _links + self.detailed_status = detailed_status + self.merge_operation_id = merge_operation_id + self.status = status + + class GitPullRequestStatus(GitStatus): """GitPullRequestStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -3069,6 +3497,8 @@ class GitPullRequestStatus(GitStatus): :type updated_date: datetime :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. :type iteration_id: int + :param properties: Custom properties of the status. + :type properties: :class:`object ` """ _attribute_map = { @@ -3081,35 +3511,37 @@ class GitPullRequestStatus(GitStatus): 'state': {'key': 'state', 'type': 'object'}, 'target_url': {'key': 'targetUrl', 'type': 'str'}, 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, - 'iteration_id': {'key': 'iterationId', 'type': 'int'} + 'iteration_id': {'key': 'iterationId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'} } - def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None, iteration_id=None): + def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None, iteration_id=None, properties=None): super(GitPullRequestStatus, self).__init__(_links=_links, context=context, created_by=created_by, creation_date=creation_date, description=description, id=id, state=state, target_url=target_url, updated_date=updated_date) self.iteration_id = iteration_id + self.properties = properties class GitPush(GitPushRef): """GitPush. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: :type url: str :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` + :type ref_updates: list of :class:`GitRefUpdate ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3164,8 +3596,59 @@ def __init__(self, version=None, version_options=None, version_type=None, target self.target_version_type = target_version_type +class PolicyConfiguration(VersionedPolicyConfigurationRef): + """PolicyConfiguration. + + :param id: The policy configuration ID. + :type id: int + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. + :type url: str + :param revision: The policy configuration revision ID. + :type revision: int + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param created_by: A reference to the identity that created the policy. + :type created_by: :class:`IdentityRef ` + :param created_date: The date and time when the policy was created. + :type created_date: datetime + :param is_blocking: Indicates whether the policy is blocking. + :type is_blocking: bool + :param is_deleted: Indicates whether the policy has been (soft) deleted. + :type is_deleted: bool + :param is_enabled: Indicates whether the policy is enabled. + :type is_enabled: bool + :param settings: The policy configuration settings. + :type settings: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'PolicyTypeRef'}, + 'url': {'key': 'url', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'is_blocking': {'key': 'isBlocking', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'settings': {'key': 'settings', 'type': 'object'} + } + + def __init__(self, id=None, type=None, url=None, revision=None, _links=None, created_by=None, created_date=None, is_blocking=None, is_deleted=None, is_enabled=None, settings=None): + super(PolicyConfiguration, self).__init__(id=id, type=type, url=url, revision=revision) + self._links = _links + self.created_by = created_by + self.created_date = created_date + self.is_blocking = is_blocking + self.is_deleted = is_deleted + self.is_enabled = is_enabled + self.settings = settings + + __all__ = [ - 'AssociatedWorkItem', 'Attachment', 'Change', 'Comment', @@ -3175,6 +3658,9 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'CommentThreadContext', 'CommentTrackingCriteria', 'FileContentMetadata', + 'FileDiff', + 'FileDiffParams', + 'FileDiffsCriteria', 'GitAnnotatedTag', 'GitAsyncRefOperation', 'GitAsyncRefOperationDetail', @@ -3187,6 +3673,7 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'GitCommitDiffs', 'GitCommitRef', 'GitConflict', + 'GitConflictUpdateResult', 'GitDeletedRepository', 'GitFilePathsCollection', 'GitForkOperationStatusDetail', @@ -3199,8 +3686,11 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'GitImportTfvcSource', 'GitItemDescriptor', 'GitItemRequestData', + 'GitMergeOperationStatusDetail', 'GitMergeOriginRef', + 'GitMergeParameters', 'GitObject', + 'GitPolicyConfigurationResponse', 'GitPullRequest', 'GitPullRequestCommentThread', 'GitPullRequestCommentThreadContext', @@ -3215,6 +3705,7 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'GitPushSearchCriteria', 'GitQueryBranchStatsCriteria', 'GitQueryCommitsCriteria', + 'GitRecycleBinRepositoryDetails', 'GitRef', 'GitRefFavorite', 'GitRefUpdate', @@ -3236,17 +3727,23 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'GitUserDate', 'GitVersionDescriptor', 'GlobalGitRepositoryKey', + 'GraphSubjectBase', 'IdentityRef', 'IdentityRefWithVote', 'ImportRepositoryValidation', 'ItemContent', 'ItemModel', + 'JsonPatchOperation', + 'LineDiffBlock', + 'PolicyConfigurationRef', + 'PolicyTypeRef', 'ReferenceLinks', 'ResourceRef', 'ShareNotificationContext', 'SourceToTargetRef', 'TeamProjectCollectionReference', 'TeamProjectReference', + 'VersionedPolicyConfigurationRef', 'VstsInfo', 'WebApiCreateTagRequestData', 'WebApiTagDefinition', @@ -3254,7 +3751,9 @@ def __init__(self, version=None, version_options=None, version_type=None, target 'GitCommit', 'GitForkRef', 'GitItem', + 'GitMerge', 'GitPullRequestStatus', 'GitPush', 'GitTargetVersionDescriptor', + 'PolicyConfiguration', ] diff --git a/azure-devops/azure/devops/v5_1/graph/__init__.py b/azure-devops/azure/devops/v5_1/graph/__init__.py new file mode 100644 index 00000000..abdf791d --- /dev/null +++ b/azure-devops/azure/devops/v5_1/graph/__init__.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GraphCachePolicies', + 'GraphDescriptorResult', + 'GraphFederatedProviderData', + 'GraphGroup', + 'GraphGroupCreationContext', + 'GraphMember', + 'GraphMembership', + 'GraphMembershipState', + 'GraphMembershipTraversal', + 'GraphProviderInfo', + 'GraphScope', + 'GraphScopeCreationContext', + 'GraphStorageKeyResult', + 'GraphSubject', + 'GraphSubjectBase', + 'GraphSubjectLookup', + 'GraphSubjectLookupKey', + 'GraphUser', + 'GraphUserCreationContext', + 'JsonPatchOperation', + 'PagedGraphGroups', + 'PagedGraphUsers', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v4_1/graph/graph_client.py b/azure-devops/azure/devops/v5_1/graph/graph_client.py similarity index 87% rename from azure-devops/azure/devops/v4_1/graph/graph_client.py rename to azure-devops/azure/devops/v5_1/graph/graph_client.py index 0903ee7e..43a29408 100644 --- a/azure-devops/azure/devops/v4_1/graph/graph_client.py +++ b/azure-devops/azure/devops/v5_1/graph/graph_client.py @@ -29,24 +29,24 @@ def get_descriptor(self, storage_key): """GetDescriptor. [Preview API] Resolve a storage key to a descriptor :param str storage_key: Storage key of the subject (user, group, scope, etc.) to resolve - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if storage_key is not None: route_values['storageKey'] = self._serialize.url('storage_key', storage_key, 'str') response = self._send(http_method='GET', location_id='048aee0a-7072-4cde-ab73-7af77b1e0b4e', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GraphDescriptorResult', response) def create_group(self, creation_context, scope_descriptor=None, group_descriptors=None): """CreateGroup. [Preview API] Create a new VSTS group or materialize an existing AAD group. - :param :class:` ` creation_context: The subset of the full graph group used to uniquely find the graph subject in an external provider. + :param :class:` ` creation_context: The subset of the full graph group used to uniquely find the graph subject in an external provider. :param str scope_descriptor: A descriptor referencing the scope (collection, project) in which the group should be created. If omitted, will be created in the scope of the enclosing account or organization. Valid only for VSTS groups. :param [str] group_descriptors: A comma separated list of descriptors referencing groups you want the graph group to join - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_descriptor is not None: @@ -57,7 +57,7 @@ def create_group(self, creation_context, scope_descriptor=None, group_descriptor content = self._serialize.body(creation_context, 'GraphGroupCreationContext') response = self._send(http_method='POST', location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('GraphGroup', response) @@ -72,21 +72,21 @@ def delete_group(self, group_descriptor): route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') self._send(http_method='DELETE', location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_group(self, group_descriptor): """GetGroup. [Preview API] Get a group by its descriptor. :param str group_descriptor: The descriptor of the desired graph group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_descriptor is not None: route_values['groupDescriptor'] = self._serialize.url('group_descriptor', group_descriptor, 'str') response = self._send(http_method='GET', location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GraphGroup', response) @@ -96,7 +96,7 @@ def list_groups(self, scope_descriptor=None, subject_types=None, continuation_to :param str scope_descriptor: Specify a non-default scope (collection, project) to search for groups. :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. Microsoft.IdentityModel.Claims.ClaimsIdentity :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_descriptor is not None: @@ -108,7 +108,7 @@ def list_groups(self, scope_descriptor=None, subject_types=None, continuation_to query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') response = self._send(http_method='GET', location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) response_object = models.PagedGraphGroups() response_object.graph_groups = self._deserialize('[GraphGroup]', self._unwrap_collection(response)) @@ -119,8 +119,8 @@ def update_group(self, group_descriptor, patch_document): """UpdateGroup. [Preview API] Update the properties of a VSTS group. :param str group_descriptor: The descriptor of the group to modify. - :param :class:`<[JsonPatchOperation]> ` patch_document: The JSON+Patch document containing the fields to alter. - :rtype: :class:` ` + :param :class:`<[JsonPatchOperation]> ` patch_document: The JSON+Patch document containing the fields to alter. + :rtype: :class:` ` """ route_values = {} if group_descriptor is not None: @@ -128,7 +128,7 @@ def update_group(self, group_descriptor, patch_document): content = self._serialize.body(patch_document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='ebbe6af8-0b91-4c13-8cf1-777c14858188', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -139,7 +139,7 @@ def add_membership(self, subject_descriptor, container_descriptor): [Preview API] Create a new membership between a container and subject. :param str subject_descriptor: A descriptor to a group or user that can be the child subject in the relationship. :param str container_descriptor: A descriptor to a group that can be the container in the relationship. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: @@ -148,7 +148,7 @@ def add_membership(self, subject_descriptor, container_descriptor): route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') response = self._send(http_method='PUT', location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GraphMembership', response) @@ -165,7 +165,7 @@ def check_membership_existence(self, subject_descriptor, container_descriptor): route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') self._send(http_method='HEAD', location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_membership(self, subject_descriptor, container_descriptor): @@ -173,7 +173,7 @@ def get_membership(self, subject_descriptor, container_descriptor): [Preview API] Get a membership relationship between a container and subject. :param str subject_descriptor: A descriptor to the child subject in the relationship. :param str container_descriptor: A descriptor to the container in the relationship. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: @@ -182,7 +182,7 @@ def get_membership(self, subject_descriptor, container_descriptor): route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') response = self._send(http_method='GET', location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GraphMembership', response) @@ -199,7 +199,7 @@ def remove_membership(self, subject_descriptor, container_descriptor): route_values['containerDescriptor'] = self._serialize.url('container_descriptor', container_descriptor, 'str') self._send(http_method='DELETE', location_id='3fd2e6ca-fb30-443a-b579-95b19ed0934c', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def list_memberships(self, subject_descriptor, direction=None, depth=None): @@ -220,7 +220,7 @@ def list_memberships(self, subject_descriptor, direction=None, depth=None): query_parameters['depth'] = self._serialize.query('depth', depth, 'int') response = self._send(http_method='GET', location_id='e34b6394-6b30-4435-94a9-409a5eef3e31', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[GraphMembership]', self._unwrap_collection(response)) @@ -229,51 +229,66 @@ def get_membership_state(self, subject_descriptor): """GetMembershipState. [Preview API] Check whether a subject is active or inactive. :param str subject_descriptor: Descriptor of the subject (user, group, scope, etc.) to check state of - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') response = self._send(http_method='GET', location_id='1ffe5c94-1144-4191-907b-d0211cad36a8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GraphMembershipState', response) + def get_provider_info(self, user_descriptor): + """GetProviderInfo. + [Preview API] + :param str user_descriptor: + :rtype: :class:` ` + """ + route_values = {} + if user_descriptor is not None: + route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') + response = self._send(http_method='GET', + location_id='1e377995-6fa2-4588-bd64-930186abdcfa', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('GraphProviderInfo', response) + def get_storage_key(self, subject_descriptor): """GetStorageKey. [Preview API] Resolve a descriptor to a storage key. :param str subject_descriptor: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subject_descriptor is not None: route_values['subjectDescriptor'] = self._serialize.url('subject_descriptor', subject_descriptor, 'str') response = self._send(http_method='GET', location_id='eb85f8cc-f0f6-4264-a5b1-ffe2e4d4801f', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GraphStorageKeyResult', response) def lookup_subjects(self, subject_lookup): """LookupSubjects. [Preview API] Resolve descriptors to users, groups or scopes (Subjects) in a batch. - :param :class:` ` subject_lookup: A list of descriptors that specifies a subset of subjects to retrieve. Each descriptor uniquely identifies the subject across all instance scopes, but only at a single point in time. + :param :class:` ` subject_lookup: A list of descriptors that specifies a subset of subjects to retrieve. Each descriptor uniquely identifies the subject across all instance scopes, but only at a single point in time. :rtype: {GraphSubject} """ content = self._serialize.body(subject_lookup, 'GraphSubjectLookup') response = self._send(http_method='POST', location_id='4dd4d168-11f2-48c4-83e8-756fa0de027c', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('{GraphSubject}', self._unwrap_collection(response)) def create_user(self, creation_context, group_descriptors=None): """CreateUser. [Preview API] Materialize an existing AAD or MSA user into the VSTS account. - :param :class:` ` creation_context: The subset of the full graph user used to uniquely find the graph subject in an external provider. + :param :class:` ` creation_context: The subset of the full graph user used to uniquely find the graph subject in an external provider. :param [str] group_descriptors: A comma separated list of descriptors of groups you want the graph user to join - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if group_descriptors is not None: @@ -282,7 +297,7 @@ def create_user(self, creation_context, group_descriptors=None): content = self._serialize.body(creation_context, 'GraphUserCreationContext') response = self._send(http_method='POST', location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('GraphUser', response) @@ -297,21 +312,21 @@ def delete_user(self, user_descriptor): route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') self._send(http_method='DELETE', location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_user(self, user_descriptor): """GetUser. [Preview API] Get a user by its descriptor. :param str user_descriptor: The descriptor of the desired user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_descriptor is not None: route_values['userDescriptor'] = self._serialize.url('user_descriptor', user_descriptor, 'str') response = self._send(http_method='GET', location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GraphUser', response) @@ -320,7 +335,7 @@ def list_users(self, subject_types=None, continuation_token=None): [Preview API] Get a list of all users in a given scope. :param [str] subject_types: A comma separated list of user subject subtypes to reduce the retrieved results, e.g. msa’, ‘aad’, ‘svc’ (service identity), ‘imp’ (imported identity), etc. :param str continuation_token: An opaque data blob that allows the next page of data to resume immediately after where the previous page ended. The only reliable way to know if there is more data left is the presence of a continuation token. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if subject_types is not None: @@ -330,7 +345,7 @@ def list_users(self, subject_types=None, continuation_token=None): query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') response = self._send(http_method='GET', location_id='005e26ec-6b77-4e4f-a986-b3827bf241f5', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) response_object = models.PagedGraphUsers() response_object.graph_users = self._deserialize('[GraphUser]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v5_1/graph/models.py b/azure-devops/azure/devops/v5_1/graph/models.py new file mode 100644 index 00000000..59805434 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/graph/models.py @@ -0,0 +1,730 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphCachePolicies(Model): + """GraphCachePolicies. + + :param cache_size: Size of the cache + :type cache_size: int + """ + + _attribute_map = { + 'cache_size': {'key': 'cacheSize', 'type': 'int'} + } + + def __init__(self, cache_size=None): + super(GraphCachePolicies, self).__init__() + self.cache_size = cache_size + + +class GraphDescriptorResult(Model): + """GraphDescriptorResult. + + :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. + :type _links: :class:`ReferenceLinks ` + :param value: + :type value: :class:`str ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, _links=None, value=None): + super(GraphDescriptorResult, self).__init__() + self._links = _links + self.value = value + + +class GraphFederatedProviderData(Model): + """GraphFederatedProviderData. + + :param access_token: The access token that can be used to communicated with the federated provider on behalf on the target identity, if we were able to successfully acquire one, otherwise null, if we were not. + :type access_token: str + :param can_query_access_token: Whether or not the immediate provider (i.e. AAD) has indicated that we can call them to attempt to get an access token to communicate with the federated provider on behalf of the target identity. + :type can_query_access_token: bool + :param provider_name: The name of the federated provider, e.g. "github.com". + :type provider_name: str + :param subject_descriptor: The descriptor of the graph subject to which this federated provider data corresponds. + :type subject_descriptor: str + :param version: The version number of this federated provider data, which corresponds to when it was last updated. Can be used to prevent returning stale provider data from the cache when the caller is aware of a newer version, such as to prevent local cache poisoning from a remote cache or store. This is the app layer equivalent of the data layer sequence ID. + :type version: long + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'can_query_access_token': {'key': 'canQueryAccessToken', 'type': 'bool'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'long'} + } + + def __init__(self, access_token=None, can_query_access_token=None, provider_name=None, subject_descriptor=None, version=None): + super(GraphFederatedProviderData, self).__init__() + self.access_token = access_token + self.can_query_access_token = can_query_access_token + self.provider_name = provider_name + self.subject_descriptor = subject_descriptor + self.version = version + + +class GraphGroupCreationContext(Model): + """GraphGroupCreationContext. + + :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created group + :type storage_key: str + """ + + _attribute_map = { + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, storage_key=None): + super(GraphGroupCreationContext, self).__init__() + self.storage_key = storage_key + + +class GraphMembership(Model): + """GraphMembership. + + :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. + :type _links: :class:`ReferenceLinks ` + :param container_descriptor: + :type container_descriptor: str + :param member_descriptor: + :type member_descriptor: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'container_descriptor': {'key': 'containerDescriptor', 'type': 'str'}, + 'member_descriptor': {'key': 'memberDescriptor', 'type': 'str'} + } + + def __init__(self, _links=None, container_descriptor=None, member_descriptor=None): + super(GraphMembership, self).__init__() + self._links = _links + self.container_descriptor = container_descriptor + self.member_descriptor = member_descriptor + + +class GraphMembershipState(Model): + """GraphMembershipState. + + :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. + :type _links: :class:`ReferenceLinks ` + :param active: When true, the membership is active + :type active: bool + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'active': {'key': 'active', 'type': 'bool'} + } + + def __init__(self, _links=None, active=None): + super(GraphMembershipState, self).__init__() + self._links = _links + self.active = active + + +class GraphMembershipTraversal(Model): + """GraphMembershipTraversal. + + :param incompleteness_reason: Reason why the subject could not be traversed completely + :type incompleteness_reason: str + :param is_complete: When true, the subject is traversed completely + :type is_complete: bool + :param subject_descriptor: The traversed subject descriptor + :type subject_descriptor: :class:`str ` + :param traversed_subject_ids: Subject descriptor ids of the traversed members + :type traversed_subject_ids: list of str + :param traversed_subjects: Subject descriptors of the traversed members + :type traversed_subjects: list of :class:`str ` + """ + + _attribute_map = { + 'incompleteness_reason': {'key': 'incompletenessReason', 'type': 'str'}, + 'is_complete': {'key': 'isComplete', 'type': 'bool'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'traversed_subject_ids': {'key': 'traversedSubjectIds', 'type': '[str]'}, + 'traversed_subjects': {'key': 'traversedSubjects', 'type': '[str]'} + } + + def __init__(self, incompleteness_reason=None, is_complete=None, subject_descriptor=None, traversed_subject_ids=None, traversed_subjects=None): + super(GraphMembershipTraversal, self).__init__() + self.incompleteness_reason = incompleteness_reason + self.is_complete = is_complete + self.subject_descriptor = subject_descriptor + self.traversed_subject_ids = traversed_subject_ids + self.traversed_subjects = traversed_subjects + + +class GraphProviderInfo(Model): + """GraphProviderInfo. + + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AAD the tenantID of the directory.) + :type domain: str + :param origin: The type of source provider for the origin identifier (ex: "aad", "msa") + :type origin: str + :param origin_id: The unique identifier from the system of origin. (For MSA this is the PUID in hex notation, for AAD this is the object id.) + :type origin_id: str + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'} + } + + def __init__(self, descriptor=None, domain=None, origin=None, origin_id=None): + super(GraphProviderInfo, self).__init__() + self.descriptor = descriptor + self.domain = domain + self.origin = origin + self.origin_id = origin_id + + +class GraphScopeCreationContext(Model): + """GraphScopeCreationContext. + + :param admin_group_description: Set this field to override the default description of this scope's admin group. + :type admin_group_description: str + :param admin_group_name: All scopes have an Administrator Group that controls access to the contents of the scope. Set this field to use a non-default group name for that administrators group. + :type admin_group_name: str + :param creator_id: Set this optional field if this scope is created on behalf of a user other than the user making the request. This should be the Id of the user that is not the requester. + :type creator_id: str + :param name: The scope must be provided with a unique name within the parent scope. This means the created scope can have a parent or child with the same name, but no siblings with the same name. + :type name: str + :param scope_type: The type of scope being created. + :type scope_type: object + :param storage_key: An optional ID that uniquely represents the scope within it's parent scope. If this parameter is not provided, Vsts will generate on automatically. + :type storage_key: str + """ + + _attribute_map = { + 'admin_group_description': {'key': 'adminGroupDescription', 'type': 'str'}, + 'admin_group_name': {'key': 'adminGroupName', 'type': 'str'}, + 'creator_id': {'key': 'creatorId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, admin_group_description=None, admin_group_name=None, creator_id=None, name=None, scope_type=None, storage_key=None): + super(GraphScopeCreationContext, self).__init__() + self.admin_group_description = admin_group_description + self.admin_group_name = admin_group_name + self.creator_id = creator_id + self.name = name + self.scope_type = scope_type + self.storage_key = storage_key + + +class GraphStorageKeyResult(Model): + """GraphStorageKeyResult. + + :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. + :type _links: :class:`ReferenceLinks ` + :param value: + :type value: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, _links=None, value=None): + super(GraphStorageKeyResult, self).__init__() + self._links = _links + self.value = value + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 GraphSubjectLookup(Model): + """GraphSubjectLookup. + + :param lookup_keys: + :type lookup_keys: list of :class:`GraphSubjectLookupKey ` + """ + + _attribute_map = { + 'lookup_keys': {'key': 'lookupKeys', 'type': '[GraphSubjectLookupKey]'} + } + + def __init__(self, lookup_keys=None): + super(GraphSubjectLookup, self).__init__() + self.lookup_keys = lookup_keys + + +class GraphSubjectLookupKey(Model): + """GraphSubjectLookupKey. + + :param descriptor: + :type descriptor: :class:`str ` + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'str'} + } + + def __init__(self, descriptor=None): + super(GraphSubjectLookupKey, self).__init__() + self.descriptor = descriptor + + +class GraphUserCreationContext(Model): + """GraphUserCreationContext. + + :param storage_key: Optional: If provided, we will use this identifier for the storage key of the created user + :type storage_key: str + """ + + _attribute_map = { + 'storage_key': {'key': 'storageKey', 'type': 'str'} + } + + def __init__(self, storage_key=None): + super(GraphUserCreationContext, self).__init__() + self.storage_key = storage_key + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class PagedGraphGroups(Model): + """PagedGraphGroups. + + :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. + :type continuation_token: list of str + :param graph_groups: The enumerable list of groups found within a page. + :type graph_groups: list of :class:`GraphGroup ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'graph_groups': {'key': 'graphGroups', 'type': '[GraphGroup]'} + } + + def __init__(self, continuation_token=None, graph_groups=None): + super(PagedGraphGroups, self).__init__() + self.continuation_token = continuation_token + self.graph_groups = graph_groups + + +class PagedGraphUsers(Model): + """PagedGraphUsers. + + :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. + :type continuation_token: list of str + :param graph_users: The enumerable set of users found within a page. + :type graph_users: list of :class:`GraphUser ` + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': '[str]'}, + 'graph_users': {'key': 'graphUsers', 'type': '[GraphUser]'} + } + + def __init__(self, continuation_token=None, graph_users=None): + super(PagedGraphUsers, self).__init__() + self.continuation_token = continuation_token + self.graph_users = graph_users + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class GraphSubject(GraphSubjectBase): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): + super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) + self.legacy_descriptor = legacy_descriptor + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_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'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name + + +class GraphScope(GraphSubject): + """GraphScope. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param administrator_descriptor: The subject descriptor that references the administrators group for this scope. Only members of this group can change the contents of this scope or assign other users permissions to access this scope. + :type administrator_descriptor: str + :param is_global: When true, this scope is also a securing host for one or more scopes. + :type is_global: bool + :param parent_descriptor: The subject descriptor for the closest account or organization in the ancestor tree of this scope. + :type parent_descriptor: str + :param scope_type: The type of this scope. Typically ServiceHost or TeamProject. + :type scope_type: object + :param securing_host_descriptor: The subject descriptor for the containing organization in the ancestor tree of this scope. + :type securing_host_descriptor: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'administrator_descriptor': {'key': 'administratorDescriptor', 'type': 'str'}, + 'is_global': {'key': 'isGlobal', 'type': 'bool'}, + 'parent_descriptor': {'key': 'parentDescriptor', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'object'}, + 'securing_host_descriptor': {'key': 'securingHostDescriptor', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, administrator_descriptor=None, is_global=None, parent_descriptor=None, scope_type=None, securing_host_descriptor=None): + super(GraphScope, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.administrator_descriptor = administrator_descriptor + self.is_global = is_global + self.parent_descriptor = parent_descriptor + self.scope_type = scope_type + self.securing_host_descriptor = securing_host_descriptor + + +class GraphUser(GraphMember): + """GraphUser. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param is_deleted_in_origin: When true, the group has been deleted in the identity provider + :type is_deleted_in_origin: bool + :param metadata_update_date: + :type metadata_update_date: datetime + :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. + :type meta_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'}, + 'metadata_update_date': {'key': 'metadataUpdateDate', 'type': 'iso-8601'}, + 'meta_type': {'key': 'metaType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, is_deleted_in_origin=None, metadata_update_date=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.is_deleted_in_origin = is_deleted_in_origin + self.metadata_update_date = metadata_update_date + self.meta_type = meta_type + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + :param is_cross_project: + :type is_cross_project: bool + :param is_deleted: + :type is_deleted: bool + :param is_global_scope: + :type is_global_scope: bool + :param is_restricted_visible: + :type is_restricted_visible: bool + :param local_scope_id: + :type local_scope_id: str + :param scope_id: + :type scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: str + :param securing_host_id: + :type securing_host_id: str + :param special_type: + :type special_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, + 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'special_type': {'key': 'specialType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description + self.is_cross_project = is_cross_project + self.is_deleted = is_deleted + self.is_global_scope = is_global_scope + self.is_restricted_visible = is_restricted_visible + self.local_scope_id = local_scope_id + self.scope_id = scope_id + self.scope_name = scope_name + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.special_type = special_type + + +__all__ = [ + 'GraphCachePolicies', + 'GraphDescriptorResult', + 'GraphFederatedProviderData', + 'GraphGroupCreationContext', + 'GraphMembership', + 'GraphMembershipState', + 'GraphMembershipTraversal', + 'GraphProviderInfo', + 'GraphScopeCreationContext', + 'GraphStorageKeyResult', + 'GraphSubjectBase', + 'GraphSubjectLookup', + 'GraphSubjectLookupKey', + 'GraphUserCreationContext', + 'JsonPatchOperation', + 'PagedGraphGroups', + 'PagedGraphUsers', + 'ReferenceLinks', + 'GraphSubject', + 'GraphMember', + 'GraphScope', + 'GraphUser', + 'GraphGroup', +] diff --git a/azure-devops/azure/devops/v4_0/identity/__init__.py b/azure-devops/azure/devops/v5_1/identity/__init__.py similarity index 83% rename from azure-devops/azure/devops/v4_0/identity/__init__.py rename to azure-devops/azure/devops/v5_1/identity/__init__.py index 647ffa34..5c37a45a 100644 --- a/azure-devops/azure/devops/v4_0/identity/__init__.py +++ b/azure-devops/azure/devops/v5_1/identity/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -17,12 +17,15 @@ 'FrameworkIdentityInfo', 'GroupMembership', 'Identity', + 'IdentityBase', 'IdentityBatchInfo', 'IdentityScope', 'IdentitySelf', 'IdentitySnapshot', 'IdentityUpdateData', + 'JsonPatchOperation', 'JsonWebToken', 'RefreshTokenGrant', + 'SwapIdentityInfo', 'TenantInfo', ] diff --git a/azure-devops/azure/devops/v4_0/identity/identity_client.py b/azure-devops/azure/devops/v5_1/identity/identity_client.py similarity index 81% rename from azure-devops/azure/devops/v4_0/identity/identity_client.py rename to azure-devops/azure/devops/v5_1/identity/identity_client.py index f5e5084c..962fda90 100644 --- a/azure-devops/azure/devops/v4_0/identity/identity_client.py +++ b/azure-devops/azure/devops/v5_1/identity/identity_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -28,13 +28,13 @@ def __init__(self, base_url=None, creds=None): def create_or_bind_with_claims(self, source_identity): """CreateOrBindWithClaims. [Preview API] - :param :class:` ` source_identity: - :rtype: :class:` ` + :param :class:` ` source_identity: + :rtype: :class:` ` """ content = self._serialize.body(source_identity, 'Identity') response = self._send(http_method='PUT', location_id='90ddfe71-171c-446c-bf3b-b597cd562afd', - version='4.0-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('Identity', response) @@ -43,7 +43,7 @@ def get_descriptor_by_id(self, id, is_master_id=None): [Preview API] :param str id: :param bool is_master_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -53,25 +53,27 @@ def get_descriptor_by_id(self, id, is_master_id=None): query_parameters['isMasterId'] = self._serialize.query('is_master_id', is_master_id, 'bool') response = self._send(http_method='GET', location_id='a230389a-94f2-496c-839f-c929787496dd', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) def create_groups(self, container): """CreateGroups. - :param :class:` ` container: + [Preview API] + :param :class:` ` container: :rtype: [Identity] """ content = self._serialize.body(container, 'object') response = self._send(http_method='POST', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('[Identity]', self._unwrap_collection(response)) def delete_group(self, group_id): """DeleteGroup. + [Preview API] :param str group_id: """ route_values = {} @@ -79,11 +81,12 @@ def delete_group(self, group_id): route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') self._send(http_method='DELETE', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.0', + version='5.1-preview.1', route_values=route_values) def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=None): """ListGroups. + [Preview API] :param str scope_ids: :param bool recurse: :param bool deleted: @@ -101,32 +104,40 @@ def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=Non query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[Identity]', self._unwrap_collection(response)) - def get_identity_changes(self, identity_sequence_id, group_sequence_id, scope_id=None): + def get_identity_changes(self, identity_sequence_id, group_sequence_id, organization_identity_sequence_id=None, page_size=None, scope_id=None): """GetIdentityChanges. + [Preview API] :param int identity_sequence_id: :param int group_sequence_id: + :param int organization_identity_sequence_id: + :param int page_size: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if identity_sequence_id is not None: query_parameters['identitySequenceId'] = self._serialize.query('identity_sequence_id', identity_sequence_id, 'int') if group_sequence_id is not None: query_parameters['groupSequenceId'] = self._serialize.query('group_sequence_id', group_sequence_id, 'int') + if organization_identity_sequence_id is not None: + query_parameters['organizationIdentitySequenceId'] = self._serialize.query('organization_identity_sequence_id', organization_identity_sequence_id, 'int') + if page_size is not None: + query_parameters['pageSize'] = self._serialize.query('page_size', page_size, 'int') if scope_id is not None: query_parameters['scopeId'] = self._serialize.query('scope_id', scope_id, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('ChangedIdentities', response) def get_user_identity_ids_by_domain_id(self, domain_id): """GetUserIdentityIdsByDomainId. + [Preview API] :param str domain_id: :rtype: [str] """ @@ -135,14 +146,16 @@ def get_user_identity_ids_by_domain_id(self, domain_id): query_parameters['domainId'] = self._serialize.query('domain_id', domain_id, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) - def read_identities(self, descriptors=None, identity_ids=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): + def read_identities(self, descriptors=None, identity_ids=None, subject_descriptors=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): """ReadIdentities. + [Preview API] :param str descriptors: :param str identity_ids: + :param str subject_descriptors: :param str search_filter: :param str filter_value: :param str query_membership: @@ -156,6 +169,8 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') if identity_ids is not None: query_parameters['identityIds'] = self._serialize.query('identity_ids', identity_ids, 'str') + if subject_descriptors is not None: + query_parameters['subjectDescriptors'] = self._serialize.query('subject_descriptors', subject_descriptors, 'str') if search_filter is not None: query_parameters['searchFilter'] = self._serialize.query('search_filter', search_filter, 'str') if filter_value is not None: @@ -170,12 +185,13 @@ def read_identities(self, descriptors=None, identity_ids=None, search_filter=Non query_parameters['options'] = self._serialize.query('options', options, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[Identity]', self._unwrap_collection(response)) def read_identities_by_scope(self, scope_id, query_membership=None, properties=None): """ReadIdentitiesByScope. + [Preview API] :param str scope_id: :param str query_membership: :param str properties: @@ -190,16 +206,17 @@ def read_identities_by_scope(self, scope_id, query_membership=None, properties=N query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[Identity]', self._unwrap_collection(response)) def read_identity(self, identity_id, query_membership=None, properties=None): """ReadIdentity. + [Preview API] :param str identity_id: :param str query_membership: :param str properties: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if identity_id is not None: @@ -211,26 +228,28 @@ def read_identity(self, identity_id, query_membership=None, properties=None): query_parameters['properties'] = self._serialize.query('properties', properties, 'str') response = self._send(http_method='GET', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Identity', response) def update_identities(self, identities): """UpdateIdentities. - :param :class:` ` identities: + [Preview API] + :param :class:` ` identities: :rtype: [IdentityUpdateData] """ content = self._serialize.body(identities, 'VssJsonCollectionWrapper') response = self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('[IdentityUpdateData]', self._unwrap_collection(response)) def update_identity(self, identity, identity_id): """UpdateIdentity. - :param :class:` ` identity: + [Preview API] + :param :class:` ` identity: :param str identity_id: """ route_values = {} @@ -239,32 +258,33 @@ def update_identity(self, identity, identity_id): content = self._serialize.body(identity, 'Identity') self._send(http_method='PUT', location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) def create_identity(self, framework_identity_info): """CreateIdentity. - :param :class:` ` framework_identity_info: - :rtype: :class:` ` + [Preview API] + :param :class:` ` framework_identity_info: + :rtype: :class:` ` """ content = self._serialize.body(framework_identity_info, 'FrameworkIdentityInfo') response = self._send(http_method='PUT', location_id='dd55f0eb-6ea2-4fe4-9ebe-919e7dd1dfb4', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('Identity', response) def read_identity_batch(self, batch_info): """ReadIdentityBatch. [Preview API] - :param :class:` ` batch_info: + :param :class:` ` batch_info: :rtype: [Identity] """ content = self._serialize.body(batch_info, 'IdentityBatchInfo') response = self._send(http_method='POST', location_id='299e50df-fe45-4d3a-8b5b-a5836fac74dc', - version='4.0-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('[Identity]', self._unwrap_collection(response)) @@ -272,35 +292,35 @@ def get_identity_snapshot(self, scope_id): """GetIdentitySnapshot. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') response = self._send(http_method='GET', location_id='d56223df-8ccd-45c9-89b4-eddf692400d7', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('IdentitySnapshot', response) def get_max_sequence_id(self): """GetMaxSequenceId. - Read the max sequence id of all the identities. + [Preview API] Read the max sequence id of all the identities. :rtype: long """ response = self._send(http_method='GET', location_id='e4a70778-cb2c-4e85-b7cc-3f3c7ae2d408', - version='4.0') + version='5.1-preview.1') return self._deserialize('long', response) def get_self(self): """GetSelf. - Read identity of the home tenant request user. - :rtype: :class:` ` + [Preview API] Read identity of the home tenant request user. + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='4bb02b5b-c120-4be2-b68e-21f7c50a4b82', - version='4.0') + version='5.1-preview.1') return self._deserialize('IdentitySelf', response) def add_member(self, container_id, member_id): @@ -317,7 +337,7 @@ def add_member(self, container_id, member_id): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') response = self._send(http_method='PUT', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('bool', response) @@ -327,7 +347,7 @@ def read_member(self, container_id, member_id, query_membership=None): :param str container_id: :param str member_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if container_id is not None: @@ -339,7 +359,7 @@ def read_member(self, container_id, member_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) @@ -359,7 +379,7 @@ def read_members(self, container_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -378,7 +398,7 @@ def remove_member(self, container_id, member_id): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') response = self._send(http_method='DELETE', location_id='8ba35978-138e-41f8-8963-7b1ea2c5f775', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('bool', response) @@ -388,7 +408,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): :param str member_id: :param str container_id: :param str query_membership: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if member_id is not None: @@ -400,7 +420,7 @@ def read_member_of(self, member_id, container_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('str', response) @@ -420,7 +440,7 @@ def read_members_of(self, member_id, query_membership=None): query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') response = self._send(http_method='GET', location_id='22865b02-9e4a-479e-9e18-e35b8803b8a0', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -428,9 +448,9 @@ def read_members_of(self, member_id, query_membership=None): def create_scope(self, info, scope_id): """CreateScope. [Preview API] - :param :class:` ` info: + :param :class:` ` info: :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: @@ -438,7 +458,7 @@ def create_scope(self, info, scope_id): content = self._serialize.body(info, 'CreateScopeInfo') response = self._send(http_method='PUT', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('IdentityScope', response) @@ -453,21 +473,21 @@ def delete_scope(self, scope_id): route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') self._send(http_method='DELETE', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values) def get_scope_by_id(self, scope_id): """GetScopeById. [Preview API] :param str scope_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_id is not None: route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') response = self._send(http_method='GET', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values) return self._deserialize('IdentityScope', response) @@ -475,65 +495,66 @@ def get_scope_by_name(self, scope_name): """GetScopeByName. [Preview API] :param str scope_name: - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if scope_name is not None: query_parameters['scopeName'] = self._serialize.query('scope_name', scope_name, 'str') response = self._send(http_method='GET', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.0-preview.1', + version='5.1-preview.2', query_parameters=query_parameters) return self._deserialize('IdentityScope', response) - def rename_scope(self, rename_scope, scope_id): - """RenameScope. + def update_scope(self, patch_document, scope_id): + """UpdateScope. [Preview API] - :param :class:` ` rename_scope: + :param :class:`<[JsonPatchOperation]> ` patch_document: :param str scope_id: """ route_values = {} if scope_id is not None: route_values['scopeId'] = self._serialize.url('scope_id', scope_id, 'str') - content = self._serialize.body(rename_scope, 'IdentityScope') + content = self._serialize.body(patch_document, '[JsonPatchOperation]') self._send(http_method='PATCH', location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, - content=content) + content=content, + media_type='application/json-patch+json') def get_signed_in_token(self): """GetSignedInToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='6074ff18-aaad-4abb-a41e-5c75f6178057', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('AccessTokenResult', response) def get_signout_token(self): """GetSignoutToken. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='be39e83c-7529-45e9-9c67-0410885880da', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('AccessTokenResult', response) def get_tenant(self, tenant_id): """GetTenant. [Preview API] :param str tenant_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if tenant_id is not None: route_values['tenantId'] = self._serialize.url('tenant_id', tenant_id, 'str') response = self._send(http_method='GET', location_id='5f0a1723-2e2c-4c31-8cae-002d01bdd592', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('TenantInfo', response) diff --git a/azure-devops/azure/devops/v4_1/identity/models.py b/azure-devops/azure/devops/v5_1/identity/models.py similarity index 77% rename from azure-devops/azure/devops/v4_1/identity/models.py rename to azure-devops/azure/devops/v5_1/identity/models.py index c0f6a7de..0b837664 100644 --- a/azure-devops/azure/devops/v4_1/identity/models.py +++ b/azure-devops/azure/devops/v5_1/identity/models.py @@ -13,7 +13,7 @@ class AccessTokenResult(Model): """AccessTokenResult. :param access_token: - :type access_token: :class:`JsonWebToken ` + :type access_token: :class:`JsonWebToken ` :param access_token_error: :type access_token_error: object :param authorization_id: @@ -23,7 +23,7 @@ class AccessTokenResult(Model): :param has_error: :type has_error: bool :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` + :type refresh_token: :class:`RefreshTokenGrant ` :param token_type: :type token_type: str :param valid_to: @@ -73,19 +73,23 @@ class ChangedIdentities(Model): """ChangedIdentities. :param identities: Changed Identities - :type identities: list of :class:`Identity ` + :type identities: list of :class:`Identity ` + :param more_data: More data available, set to true if pagesize is specified. + :type more_data: bool :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` + :type sequence_context: :class:`ChangedIdentitiesContext ` """ _attribute_map = { 'identities': {'key': 'identities', 'type': '[Identity]'}, + 'more_data': {'key': 'moreData', 'type': 'bool'}, 'sequence_context': {'key': 'sequenceContext', 'type': 'ChangedIdentitiesContext'} } - def __init__(self, identities=None, sequence_context=None): + def __init__(self, identities=None, more_data=None, sequence_context=None): super(ChangedIdentities, self).__init__() self.identities = identities + self.more_data = more_data self.sequence_context = sequence_context @@ -96,17 +100,25 @@ class ChangedIdentitiesContext(Model): :type group_sequence_id: int :param identity_sequence_id: Last Identity SequenceId :type identity_sequence_id: int + :param organization_identity_sequence_id: Last Group OrganizationIdentitySequenceId + :type organization_identity_sequence_id: int + :param page_size: Page size + :type page_size: int """ _attribute_map = { 'group_sequence_id': {'key': 'groupSequenceId', 'type': 'int'}, - 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'} + 'identity_sequence_id': {'key': 'identitySequenceId', 'type': 'int'}, + 'organization_identity_sequence_id': {'key': 'organizationIdentitySequenceId', 'type': 'int'}, + 'page_size': {'key': 'pageSize', 'type': 'int'} } - def __init__(self, group_sequence_id=None, identity_sequence_id=None): + def __init__(self, group_sequence_id=None, identity_sequence_id=None, organization_identity_sequence_id=None, page_size=None): super(ChangedIdentitiesContext, self).__init__() self.group_sequence_id = group_sequence_id self.identity_sequence_id = identity_sequence_id + self.organization_identity_sequence_id = organization_identity_sequence_id + self.page_size = page_size class CreateScopeInfo(Model): @@ -179,7 +191,7 @@ class GroupMembership(Model): :param active: :type active: bool :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param queried_id: @@ -207,7 +219,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -219,19 +231,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -277,7 +289,7 @@ class IdentityBatchInfo(Model): """IdentityBatchInfo. :param descriptors: - :type descriptors: list of :class:`str ` + :type descriptors: list of :class:`str ` :param identity_ids: :type identity_ids: list of str :param include_restricted_visibility: @@ -286,6 +298,8 @@ class IdentityBatchInfo(Model): :type property_names: list of str :param query_membership: :type query_membership: object + :param subject_descriptors: + :type subject_descriptors: list of :class:`str ` """ _attribute_map = { @@ -293,23 +307,25 @@ class IdentityBatchInfo(Model): 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, 'include_restricted_visibility': {'key': 'includeRestrictedVisibility', 'type': 'bool'}, 'property_names': {'key': 'propertyNames', 'type': '[str]'}, - 'query_membership': {'key': 'queryMembership', 'type': 'object'} + 'query_membership': {'key': 'queryMembership', 'type': 'object'}, + 'subject_descriptors': {'key': 'subjectDescriptors', 'type': '[str]'} } - def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None): + def __init__(self, descriptors=None, identity_ids=None, include_restricted_visibility=None, property_names=None, query_membership=None, subject_descriptors=None): super(IdentityBatchInfo, self).__init__() self.descriptors = descriptors self.identity_ids = identity_ids self.include_restricted_visibility = include_restricted_visibility self.property_names = property_names self.query_membership = query_membership + self.subject_descriptors = subject_descriptors class IdentityScope(Model): """IdentityScope. :param administrators: - :type administrators: :class:`str ` + :type administrators: :class:`str ` :param id: :type id: str :param is_active: @@ -327,7 +343,7 @@ class IdentityScope(Model): :param securing_host_id: :type securing_host_id: str :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` """ _attribute_map = { @@ -360,28 +376,40 @@ def __init__(self, administrators=None, id=None, is_active=None, is_global=None, class IdentitySelf(Model): """IdentitySelf. - :param account_name: + :param account_name: The UserPrincipalName (UPN) of the account. This value comes from the source provider. :type account_name: str - :param display_name: + :param display_name: The display name. For AAD accounts with multiple tenants this is the display name of the profile in the home tenant. :type display_name: str - :param id: + :param domain: This represents the name of the container of origin. For AAD accounts this is the tenantID of the home tenant. For MSA accounts this is the string "Windows Live ID". + :type domain: str + :param id: This is the VSID of the home tenant profile. If the profile is signed into the home tenant or if the profile has no tenants then this Id is the same as the Id returned by the profile/profiles/me endpoint. Going forward it is recommended that you use the combined values of Origin, OriginId and Domain to uniquely identify a user rather than this Id. :type id: str - :param tenants: - :type tenants: list of :class:`TenantInfo ` + :param origin: The type of source provider for the origin identifier. For MSA accounts this is "msa". For AAD accounts this is "aad". + :type origin: str + :param origin_id: The unique identifier from the system of origin. If there are multiple tenants this is the unique identifier of the account in the home tenant. (For MSA this is the PUID in hex notation, for AAD this is the object id.) + :type origin_id: str + :param tenants: For AAD accounts this is all of the tenants that this account is a member of. + :type tenants: list of :class:`TenantInfo ` """ _attribute_map = { 'account_name': {'key': 'accountName', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, 'tenants': {'key': 'tenants', 'type': '[TenantInfo]'} } - def __init__(self, account_name=None, display_name=None, id=None, tenants=None): + def __init__(self, account_name=None, display_name=None, domain=None, id=None, origin=None, origin_id=None, tenants=None): super(IdentitySelf, self).__init__() self.account_name = account_name self.display_name = display_name + self.domain = domain self.id = id + self.origin = origin + self.origin_id = origin_id self.tenants = tenants @@ -389,15 +417,15 @@ class IdentitySnapshot(Model): """IdentitySnapshot. :param groups: - :type groups: list of :class:`Identity ` + :type groups: list of :class:`Identity ` :param identity_ids: :type identity_ids: list of str :param memberships: - :type memberships: list of :class:`GroupMembership ` + :type memberships: list of :class:`GroupMembership ` :param scope_id: :type scope_id: str :param scopes: - :type scopes: list of :class:`IdentityScope ` + :type scopes: list of :class:`IdentityScope ` """ _attribute_map = { @@ -441,6 +469,34 @@ def __init__(self, id=None, index=None, updated=None): self.updated = updated +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + class JsonWebToken(Model): """JsonWebToken. @@ -459,7 +515,7 @@ class RefreshTokenGrant(AuthorizationGrant): :param grant_type: :type grant_type: object :param jwt: - :type jwt: :class:`JsonWebToken ` + :type jwt: :class:`JsonWebToken ` """ _attribute_map = { @@ -472,6 +528,26 @@ def __init__(self, grant_type=None, jwt=None): self.jwt = jwt +class SwapIdentityInfo(Model): + """SwapIdentityInfo. + + :param id1: + :type id1: str + :param id2: + :type id2: str + """ + + _attribute_map = { + 'id1': {'key': 'id1', 'type': 'str'}, + 'id2': {'key': 'id2', 'type': 'str'} + } + + def __init__(self, id1=None, id2=None): + super(SwapIdentityInfo, self).__init__() + self.id1 = id1 + self.id2 = id2 + + class TenantInfo(Model): """TenantInfo. @@ -502,7 +578,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -514,19 +590,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -567,8 +643,10 @@ def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active 'IdentitySelf', 'IdentitySnapshot', 'IdentityUpdateData', + 'JsonPatchOperation', 'JsonWebToken', 'RefreshTokenGrant', + 'SwapIdentityInfo', 'TenantInfo', 'Identity', ] diff --git a/azure-devops/azure/devops/v4_0/licensing/__init__.py b/azure-devops/azure/devops/v5_1/licensing/__init__.py similarity index 82% rename from azure-devops/azure/devops/v4_0/licensing/__init__.py rename to azure-devops/azure/devops/v5_1/licensing/__init__.py index 1cb3ee33..c1c9f049 100644 --- a/azure-devops/azure/devops/v4_0/licensing/__init__.py +++ b/azure-devops/azure/devops/v5_1/licensing/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -22,8 +22,12 @@ 'ExtensionOperationResult', 'ExtensionRightsResult', 'ExtensionSource', + 'GraphSubjectBase', + 'Identity', + 'IdentityBase', + 'IdentityMapping', 'IdentityRef', - 'IUsageRight', 'License', 'MsdnEntitlement', + 'ReferenceLinks', ] diff --git a/azure-devops/azure/devops/v4_0/licensing/licensing_client.py b/azure-devops/azure/devops/v5_1/licensing/licensing_client.py similarity index 73% rename from azure-devops/azure/devops/v4_0/licensing/licensing_client.py rename to azure-devops/azure/devops/v5_1/licensing/licensing_client.py index a78bbcac..fdaf0cc2 100644 --- a/azure-devops/azure/devops/v4_0/licensing/licensing_client.py +++ b/azure-devops/azure/devops/v5_1/licensing/licensing_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -32,7 +32,7 @@ def get_extension_license_usage(self): """ response = self._send(http_method='GET', location_id='01bce8d3-c130-480f-a332-474ae3f6662e', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('[AccountLicenseExtensionUsage]', self._unwrap_collection(response)) def get_certificate(self, **kwargs): @@ -42,7 +42,7 @@ def get_certificate(self, **kwargs): """ response = self._send(http_method='GET', location_id='2e0dbce7-a327-4bc0-a291-056139393f6d', - version='4.0-preview.1', + version='5.1-preview.1', accept_media_type='application/octet-stream') if "callback" in kwargs: callback = kwargs["callback"] @@ -60,7 +60,7 @@ def get_client_rights(self, right_name=None, product_version=None, edition=None, :param bool include_certificate: :param str canary: :param str machine_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if right_name is not None: @@ -80,51 +80,83 @@ def get_client_rights(self, right_name=None, product_version=None, edition=None, query_parameters['machineId'] = self._serialize.query('machine_id', machine_id, 'str') response = self._send(http_method='GET', location_id='643c72da-eaee-4163-9f07-d748ef5c2a0c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ClientRightsContainer', response) - def assign_available_account_entitlement(self, user_id): + def assign_available_account_entitlement(self, user_id, dont_notify_user=None, origin=None): """AssignAvailableAccountEntitlement. [Preview API] Assign an available entitilement to a user :param str user_id: The user to which to assign the entitilement - :rtype: :class:` ` + :param bool dont_notify_user: + :param str origin: + :rtype: :class:` ` """ query_parameters = {} if user_id is not None: query_parameters['userId'] = self._serialize.query('user_id', user_id, 'str') + if dont_notify_user is not None: + query_parameters['dontNotifyUser'] = self._serialize.query('dont_notify_user', dont_notify_user, 'bool') + if origin is not None: + query_parameters['origin'] = self._serialize.query('origin', origin, 'str') response = self._send(http_method='POST', location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', - version='4.0-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('AccountEntitlement', response) def get_account_entitlement(self): """GetAccountEntitlement. [Preview API] Gets the account entitlement of the current user it is mapped to _apis/licensing/entitlements/me so specifically is looking for the user of the request - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('AccountEntitlement', response) - def assign_account_entitlement_for_user(self, body, user_id): + def get_account_entitlements(self, top=None, skip=None): + """GetAccountEntitlements. + [Preview API] Gets top (top) entitlements for users in the account from offset (skip) order by DateCreated ASC + :param int top: number of accounts to return + :param int skip: records to skip, null is interpreted as 0 + :rtype: [AccountEntitlement] + """ + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='ea37be6f-8cd7-48dd-983d-2b72d6e3da0f', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) + + def assign_account_entitlement_for_user(self, body, user_id, dont_notify_user=None, origin=None): """AssignAccountEntitlementForUser. [Preview API] Assign an explicit account entitlement - :param :class:` ` body: The update model for the entitlement + :param :class:` ` body: The update model for the entitlement :param str user_id: The id of the user - :rtype: :class:` ` + :param bool dont_notify_user: + :param str origin: + :rtype: :class:` ` """ route_values = {} if user_id is not None: route_values['userId'] = self._serialize.url('user_id', user_id, 'str') + query_parameters = {} + if dont_notify_user is not None: + query_parameters['dontNotifyUser'] = self._serialize.query('dont_notify_user', dont_notify_user, 'bool') + if origin is not None: + query_parameters['origin'] = self._serialize.query('origin', origin, 'str') content = self._serialize.body(body, 'AccountEntitlementUpdateModel') response = self._send(http_method='PUT', location_id='6490e566-b299-49a7-a4e4-28749752581f', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, + query_parameters=query_parameters, content=content) return self._deserialize('AccountEntitlement', response) @@ -138,15 +170,16 @@ def delete_user_entitlements(self, user_id): route_values['userId'] = self._serialize.url('user_id', user_id, 'str') self._send(http_method='DELETE', location_id='6490e566-b299-49a7-a4e4-28749752581f', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) - def get_account_entitlement_for_user(self, user_id, determine_rights=None): + def get_account_entitlement_for_user(self, user_id, determine_rights=None, create_if_not_exists=None): """GetAccountEntitlementForUser. [Preview API] Get the entitlements for a user :param str user_id: The id of the user :param bool determine_rights: - :rtype: :class:` ` + :param bool create_if_not_exists: + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -154,13 +187,31 @@ def get_account_entitlement_for_user(self, user_id, determine_rights=None): query_parameters = {} if determine_rights is not None: query_parameters['determineRights'] = self._serialize.query('determine_rights', determine_rights, 'bool') + if create_if_not_exists is not None: + query_parameters['createIfNotExists'] = self._serialize.query('create_if_not_exists', create_if_not_exists, 'bool') response = self._send(http_method='GET', location_id='6490e566-b299-49a7-a4e4-28749752581f', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AccountEntitlement', response) + def get_account_entitlements_batch(self, user_ids): + """GetAccountEntitlementsBatch. + [Preview API] Returns AccountEntitlements that are currently assigned to the given list of users in the account + :param [str] user_ids: List of user Ids. + :rtype: [AccountEntitlement] + """ + route_values = {} + route_values['action'] = 'GetUsersEntitlements' + content = self._serialize.body(user_ids, '[str]') + response = self._send(http_method='POST', + location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) + def obtain_available_account_entitlements(self, user_ids): """ObtainAvailableAccountEntitlements. [Preview API] Returns AccountEntitlements that are currently assigned to the given list of users in the account @@ -172,7 +223,7 @@ def obtain_available_account_entitlements(self, user_ids): content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[AccountEntitlement]', self._unwrap_collection(response)) @@ -188,7 +239,7 @@ def assign_extension_to_all_eligible_users(self, extension_id): route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='PUT', location_id='5434f182-7f32-4135-8326-9340d887c08a', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) @@ -207,7 +258,7 @@ def get_eligible_users_for_extension(self, extension_id, options): query_parameters['options'] = self._serialize.query('options', options, 'str') response = self._send(http_method='GET', location_id='5434f182-7f32-4135-8326-9340d887c08a', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) @@ -223,20 +274,20 @@ def get_extension_status_for_users(self, extension_id): route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='GET', location_id='5434f182-7f32-4135-8326-9340d887c08a', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('{ExtensionAssignmentDetails}', self._unwrap_collection(response)) def assign_extension_to_users(self, body): """AssignExtensionToUsers. [Preview API] Assigns the access to the given extension for a given list of users - :param :class:` ` body: The extension assignment details. + :param :class:` ` body: The extension assignment details. :rtype: [ExtensionOperationResult] """ content = self._serialize.body(body, 'ExtensionAssignment') response = self._send(http_method='PUT', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', - version='4.0-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('[ExtensionOperationResult]', self._unwrap_collection(response)) @@ -251,7 +302,7 @@ def get_extensions_assigned_to_user(self, user_id): route_values['userId'] = self._serialize.url('user_id', user_id, 'str') response = self._send(http_method='GET', location_id='8cec75ea-044f-4245-ab0d-a82dafcc85ea', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('{LicensingSource}', self._unwrap_collection(response)) @@ -264,7 +315,7 @@ def bulk_get_extensions_assigned_to_users(self, user_ids): content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='PUT', location_id='1d42ddc2-3e7d-4daa-a0eb-e12c1dbd7c72', - version='4.0-preview.2', + version='5.1-preview.2', content=content) return self._deserialize('{[ExtensionSource]}', self._unwrap_collection(response)) @@ -272,27 +323,27 @@ def get_extension_license_data(self, extension_id): """GetExtensionLicenseData. [Preview API] :param str extension_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if extension_id is not None: route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str') response = self._send(http_method='GET', location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ExtensionLicenseData', response) def register_extension_license(self, extension_license_data): """RegisterExtensionLicense. [Preview API] - :param :class:` ` extension_license_data: + :param :class:` ` extension_license_data: :rtype: bool """ content = self._serialize.body(extension_license_data, 'ExtensionLicenseData') response = self._send(http_method='POST', location_id='004a420a-7bef-4b7f-8a50-22975d2067cc', - version='4.0-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('bool', response) @@ -305,18 +356,18 @@ def compute_extension_rights(self, ids): content = self._serialize.body(ids, '[str]') response = self._send(http_method='POST', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', - version='4.0-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('{bool}', self._unwrap_collection(response)) def get_extension_rights(self): """GetExtensionRights. [Preview API] - :rtype: :class:` ` + :rtype: :class:` ` """ response = self._send(http_method='GET', location_id='5f1dbe21-f748-47c7-b5fd-3770c8bc2c08', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('ExtensionRightsResult', response) def get_msdn_presence(self): @@ -325,7 +376,7 @@ def get_msdn_presence(self): """ self._send(http_method='GET', location_id='69522c3f-eecc-48d0-b333-f69ffb8fa6cc', - version='4.0-preview.1') + version='5.1-preview.1') def get_entitlements(self): """GetEntitlements. @@ -334,9 +385,20 @@ def get_entitlements(self): """ response = self._send(http_method='GET', location_id='1cc6137e-12d5-4d44-a4f2-765006c9e85d', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('[MsdnEntitlement]', self._unwrap_collection(response)) + def transfer_extensions_for_identities(self, identity_mapping): + """TransferExtensionsForIdentities. + [Preview API] This method transfers extensions for the given identities. + :param [IdentityMapping] identity_mapping: The identity mapping. + """ + content = self._serialize.body(identity_mapping, '[IdentityMapping]') + self._send(http_method='POST', + location_id='da46fe26-dbb6-41d9-9d6b-86bf47e4e444', + version='5.1-preview.1', + content=content) + def get_account_licenses_usage(self): """GetAccountLicensesUsage. [Preview API] @@ -344,21 +406,6 @@ def get_account_licenses_usage(self): """ response = self._send(http_method='GET', location_id='d3266b87-d395-4e91-97a5-0215b81a0b7d', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('[AccountLicenseUsage]', self._unwrap_collection(response)) - def get_usage_rights(self, right_name=None): - """GetUsageRights. - [Preview API] - :param str right_name: - :rtype: [IUsageRight] - """ - route_values = {} - if right_name is not None: - route_values['rightName'] = self._serialize.url('right_name', right_name, 'str') - response = self._send(http_method='GET', - location_id='d09ac573-58fe-4948-af97-793db40a7e16', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[IUsageRight]', self._unwrap_collection(response)) - diff --git a/azure-devops/azure/devops/v4_0/licensing/models.py b/azure-devops/azure/devops/v5_1/licensing/models.py similarity index 57% rename from azure-devops/azure/devops/v4_0/licensing/models.py rename to azure-devops/azure/devops/v5_1/licensing/models.py index de1b386c..ca842cdb 100644 --- a/azure-devops/azure/devops/v4_0/licensing/models.py +++ b/azure-devops/azure/devops/v5_1/licensing/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -18,16 +18,20 @@ class AccountEntitlement(Model): :type assignment_date: datetime :param assignment_source: Assignment Source :type assignment_source: object + :param date_created: Gets or sets the creation date of the user in this account + :type date_created: datetime :param last_accessed_date: Gets or sets the date of the user last sign-in to this account :type last_accessed_date: datetime :param license: - :type license: :class:`License ` + :type license: :class:`License ` + :param origin: Licensing origin + :type origin: object :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` + :type rights: :class:`AccountRights ` :param status: The status of the user in the account :type status: object :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` :param user_id: Gets the id of the user to which the license belongs :type user_id: str """ @@ -36,21 +40,25 @@ class AccountEntitlement(Model): 'account_id': {'key': 'accountId', 'type': 'str'}, 'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'}, 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, 'license': {'key': 'license', 'type': 'License'}, + 'origin': {'key': 'origin', 'type': 'object'}, 'rights': {'key': 'rights', 'type': 'AccountRights'}, 'status': {'key': 'status', 'type': 'object'}, 'user': {'key': 'user', 'type': 'IdentityRef'}, 'user_id': {'key': 'userId', 'type': 'str'} } - def __init__(self, account_id=None, assignment_date=None, assignment_source=None, last_accessed_date=None, license=None, rights=None, status=None, user=None, user_id=None): + def __init__(self, account_id=None, assignment_date=None, assignment_source=None, date_created=None, last_accessed_date=None, license=None, origin=None, rights=None, status=None, user=None, user_id=None): super(AccountEntitlement, self).__init__() self.account_id = account_id self.assignment_date = assignment_date self.assignment_source = assignment_source + self.date_created = date_created self.last_accessed_date = last_accessed_date self.license = license + self.origin = origin self.rights = rights self.status = status self.user = user @@ -61,7 +69,7 @@ class AccountEntitlementUpdateModel(Model): """AccountEntitlementUpdateModel. :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` + :type license: :class:`License ` """ _attribute_map = { @@ -128,23 +136,31 @@ def __init__(self, extension_id=None, extension_name=None, included_quantity=Non class AccountLicenseUsage(Model): """AccountLicenseUsage. + :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) + :type disabled_count: int :param license: - :type license: :class:`AccountUserLicense ` - :param provisioned_count: + :type license: :class:`AccountUserLicense ` + :param pending_provisioned_count: Amount that will be purchased in the next billing cycle + :type pending_provisioned_count: int + :param provisioned_count: Amount that has been purchased :type provisioned_count: int - :param used_count: + :param used_count: Amount currently being used. :type used_count: int """ _attribute_map = { + 'disabled_count': {'key': 'disabledCount', 'type': 'int'}, 'license': {'key': 'license', 'type': 'AccountUserLicense'}, + 'pending_provisioned_count': {'key': 'pendingProvisionedCount', 'type': 'int'}, 'provisioned_count': {'key': 'provisionedCount', 'type': 'int'}, 'used_count': {'key': 'usedCount', 'type': 'int'} } - def __init__(self, license=None, provisioned_count=None, used_count=None): + def __init__(self, disabled_count=None, license=None, pending_provisioned_count=None, provisioned_count=None, used_count=None): super(AccountLicenseUsage, self).__init__() + self.disabled_count = disabled_count self.license = license + self.pending_provisioned_count = pending_provisioned_count self.provisioned_count = provisioned_count self.used_count = used_count @@ -381,84 +397,184 @@ def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_ self.licensing_source = licensing_source -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 IdentityBase(Model): + """IdentityBase. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'} + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(IdentityBase, self).__init__() + self.custom_display_name = custom_display_name + self.descriptor = descriptor + self.id = id + self.is_active = is_active + self.is_container = is_container + self.master_id = master_id + self.member_ids = member_ids + self.member_of = member_of + self.members = members + self.meta_type_id = meta_type_id + self.properties = properties + self.provider_display_name = provider_display_name + self.resource_version = resource_version + self.subject_descriptor = subject_descriptor + self.unique_user_id = unique_user_id + + +class IdentityMapping(Model): + """IdentityMapping. + + :param source_identity: + :type source_identity: :class:`Identity ` + :param target_identity: + :type target_identity: :class:`Identity ` + """ + + _attribute_map = { + 'source_identity': {'key': 'sourceIdentity', 'type': 'Identity'}, + 'target_identity': {'key': 'targetIdentity', 'type': 'Identity'} + } + + def __init__(self, source_identity=None, target_identity=None): + super(IdentityMapping, self).__init__() + self.source_identity = source_identity + self.target_identity = target_identity + + +class IdentityRef(GraphSubjectBase): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url - - -class IUsageRight(Model): - """IUsageRight. - - :param attributes: Rights data - :type attributes: dict - :param expiration_date: Rights expiration - :type expiration_date: datetime - :param name: Name, uniquely identifying a usage right - :type name: str - :param version: Version - :type version: str - """ - - _attribute_map = { - 'attributes': {'key': 'attributes', 'type': '{object}'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, attributes=None, expiration_date=None, name=None, version=None): - super(IUsageRight, self).__init__() - self.attributes = attributes - self.expiration_date = expiration_date - self.name = name - self.version = version class License(Model): @@ -533,6 +649,79 @@ def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_typ self.subscription_status = subscription_status +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Identity(IdentityBase): + """Identity. + + :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) + :type custom_display_name: str + :param descriptor: + :type descriptor: :class:`str ` + :param id: + :type id: str + :param is_active: + :type is_active: bool + :param is_container: + :type is_container: bool + :param master_id: + :type master_id: str + :param member_ids: + :type member_ids: list of str + :param member_of: + :type member_of: list of :class:`str ` + :param members: + :type members: list of :class:`str ` + :param meta_type_id: + :type meta_type_id: int + :param properties: + :type properties: :class:`object ` + :param provider_display_name: The display name for the identity as specified by the source identity provider. + :type provider_display_name: str + :param resource_version: + :type resource_version: int + :param subject_descriptor: + :type subject_descriptor: :class:`str ` + :param unique_user_id: + :type unique_user_id: int + """ + + _attribute_map = { + 'custom_display_name': {'key': 'customDisplayName', 'type': 'str'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'is_container': {'key': 'isContainer', 'type': 'bool'}, + 'master_id': {'key': 'masterId', 'type': 'str'}, + 'member_ids': {'key': 'memberIds', 'type': '[str]'}, + 'member_of': {'key': 'memberOf', 'type': '[str]'}, + 'members': {'key': 'members', 'type': '[str]'}, + 'meta_type_id': {'key': 'metaTypeId', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'provider_display_name': {'key': 'providerDisplayName', 'type': 'str'}, + 'resource_version': {'key': 'resourceVersion', 'type': 'int'}, + 'subject_descriptor': {'key': 'subjectDescriptor', 'type': 'str'}, + 'unique_user_id': {'key': 'uniqueUserId', 'type': 'int'}, + } + + def __init__(self, custom_display_name=None, descriptor=None, id=None, is_active=None, is_container=None, master_id=None, member_ids=None, member_of=None, members=None, meta_type_id=None, properties=None, provider_display_name=None, resource_version=None, subject_descriptor=None, unique_user_id=None): + super(Identity, self).__init__(custom_display_name=custom_display_name, descriptor=descriptor, id=id, is_active=is_active, is_container=is_container, master_id=master_id, member_ids=member_ids, member_of=member_of, members=members, meta_type_id=meta_type_id, properties=properties, provider_display_name=provider_display_name, resource_version=resource_version, subject_descriptor=subject_descriptor, unique_user_id=unique_user_id) + + __all__ = [ 'AccountEntitlement', 'AccountEntitlementUpdateModel', @@ -547,8 +736,12 @@ def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_typ 'ExtensionOperationResult', 'ExtensionRightsResult', 'ExtensionSource', + 'GraphSubjectBase', + 'IdentityBase', + 'IdentityMapping', 'IdentityRef', - 'IUsageRight', 'License', 'MsdnEntitlement', + 'ReferenceLinks', + 'Identity', ] diff --git a/azure-devops/azure/devops/v4_0/location/__init__.py b/azure-devops/azure/devops/v5_1/location/__init__.py similarity index 84% rename from azure-devops/azure/devops/v4_0/location/__init__.py rename to azure-devops/azure/devops/v5_1/location/__init__.py index a4976dc5..f91eb827 100644 --- a/azure-devops/azure/devops/v4_0/location/__init__.py +++ b/azure-devops/azure/devops/v5_1/location/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -12,6 +12,7 @@ 'AccessMapping', 'ConnectionData', 'Identity', + 'IdentityBase', 'LocationMapping', 'LocationServiceData', 'ResourceAreaInfo', diff --git a/azure-devops/azure/devops/v4_0/location/location_client.py b/azure-devops/azure/devops/v5_1/location/location_client.py similarity index 59% rename from azure-devops/azure/devops/v4_0/location/location_client.py rename to azure-devops/azure/devops/v5_1/location/location_client.py index 18d81eea..fabfda59 100644 --- a/azure-devops/azure/devops/v4_0/location/location_client.py +++ b/azure-devops/azure/devops/v5_1/location/location_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -31,7 +31,7 @@ def get_connection_data(self, connect_options=None, last_change_id=None, last_ch :param str connect_options: :param int last_change_id: Obsolete 32-bit LastChangeId :param long last_change_id64: Non-truncated 64-bit LastChangeId - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if connect_options is not None: @@ -42,33 +42,84 @@ def get_connection_data(self, connect_options=None, last_change_id=None, last_ch query_parameters['lastChangeId64'] = self._serialize.query('last_change_id64', last_change_id64, 'long') response = self._send(http_method='GET', location_id='00d9565f-ed9c-4a06-9a50-00e7896ccab4', - version='4.0-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('ConnectionData', response) - def get_resource_area(self, area_id): + def get_resource_area(self, area_id, enterprise_name=None, organization_name=None): """GetResourceArea. [Preview API] :param str area_id: - :rtype: :class:` ` + :param str enterprise_name: + :param str organization_name: + :rtype: :class:` ` """ route_values = {} if area_id is not None: route_values['areaId'] = self._serialize.url('area_id', area_id, 'str') + query_parameters = {} + if enterprise_name is not None: + query_parameters['enterpriseName'] = self._serialize.query('enterprise_name', enterprise_name, 'str') + if organization_name is not None: + query_parameters['organizationName'] = self._serialize.query('organization_name', organization_name, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', - version='4.0-preview.1', - route_values=route_values) + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ResourceAreaInfo', response) + + def get_resource_area_by_host(self, area_id, host_id): + """GetResourceAreaByHost. + [Preview API] + :param str area_id: + :param str host_id: + :rtype: :class:` ` + """ + route_values = {} + if area_id is not None: + route_values['areaId'] = self._serialize.url('area_id', area_id, 'str') + query_parameters = {} + if host_id is not None: + query_parameters['hostId'] = self._serialize.query('host_id', host_id, 'str') + response = self._send(http_method='GET', + location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('ResourceAreaInfo', response) - def get_resource_areas(self): + def get_resource_areas(self, enterprise_name=None, organization_name=None): """GetResourceAreas. [Preview API] + :param str enterprise_name: + :param str organization_name: :rtype: [ResourceAreaInfo] """ + query_parameters = {} + if enterprise_name is not None: + query_parameters['enterpriseName'] = self._serialize.query('enterprise_name', enterprise_name, 'str') + if organization_name is not None: + query_parameters['organizationName'] = self._serialize.query('organization_name', organization_name, 'str') response = self._send(http_method='GET', location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', - version='4.0-preview.1') + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[ResourceAreaInfo]', self._unwrap_collection(response)) + + def get_resource_areas_by_host(self, host_id): + """GetResourceAreasByHost. + [Preview API] + :param str host_id: + :rtype: [ResourceAreaInfo] + """ + query_parameters = {} + if host_id is not None: + query_parameters['hostId'] = self._serialize.query('host_id', host_id, 'str') + response = self._send(http_method='GET', + location_id='e81700f7-3be2-46de-8624-2eb35882fcaa', + version='5.1-preview.1', + query_parameters=query_parameters) return self._deserialize('[ResourceAreaInfo]', self._unwrap_collection(response)) def delete_service_definition(self, service_type, identifier): @@ -84,16 +135,17 @@ def delete_service_definition(self, service_type, identifier): route_values['identifier'] = self._serialize.url('identifier', identifier, 'str') self._send(http_method='DELETE', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) - def get_service_definition(self, service_type, identifier, allow_fault_in=None): + def get_service_definition(self, service_type, identifier, allow_fault_in=None, preview_fault_in=None): """GetServiceDefinition. - [Preview API] + [Preview API] Finds a given service definition. :param str service_type: :param str identifier: - :param bool allow_fault_in: - :rtype: :class:` ` + :param bool allow_fault_in: If true, we will attempt to fault in a host instance mapping if in SPS. + :param bool preview_fault_in: If true, we will calculate and return a host instance mapping, but not persist it. + :rtype: :class:` ` """ route_values = {} if service_type is not None: @@ -103,9 +155,11 @@ def get_service_definition(self, service_type, identifier, allow_fault_in=None): query_parameters = {} if allow_fault_in is not None: query_parameters['allowFaultIn'] = self._serialize.query('allow_fault_in', allow_fault_in, 'bool') + if preview_fault_in is not None: + query_parameters['previewFaultIn'] = self._serialize.query('preview_fault_in', preview_fault_in, 'bool') response = self._send(http_method='GET', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ServiceDefinition', response) @@ -121,18 +175,18 @@ def get_service_definitions(self, service_type=None): route_values['serviceType'] = self._serialize.url('service_type', service_type, 'str') response = self._send(http_method='GET', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[ServiceDefinition]', self._unwrap_collection(response)) def update_service_definitions(self, service_definitions): """UpdateServiceDefinitions. [Preview API] - :param :class:` ` service_definitions: + :param :class:` ` service_definitions: """ content = self._serialize.body(service_definitions, 'VssJsonCollectionWrapper') self._send(http_method='PATCH', location_id='d810a47d-f4f4-4a62-a03f-fa1860585c4c', - version='4.0-preview.1', + version='5.1-preview.1', content=content) diff --git a/azure-devops/azure/devops/v4_1/location/models.py b/azure-devops/azure/devops/v5_1/location/models.py similarity index 92% rename from azure-devops/azure/devops/v4_1/location/models.py rename to azure-devops/azure/devops/v5_1/location/models.py index 2377352d..05d25c49 100644 --- a/azure-devops/azure/devops/v4_1/location/models.py +++ b/azure-devops/azure/devops/v5_1/location/models.py @@ -45,17 +45,19 @@ class ConnectionData(Model): """ConnectionData. :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` + :type authenticated_user: :class:`Identity ` :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` + :type authorized_user: :class:`Identity ` :param deployment_id: The id for the server. :type deployment_id: str + :param deployment_type: The type for the server Hosted/OnPremises. + :type deployment_type: object :param instance_id: The instance id for this host. :type instance_id: str :param last_user_access: The last user access for this instance. Null if not requested specifically. :type last_user_access: datetime :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` + :type location_service_data: :class:`LocationServiceData ` :param web_application_relative_directory: The virtual directory of the host we are talking to. :type web_application_relative_directory: str """ @@ -64,17 +66,19 @@ class ConnectionData(Model): 'authenticated_user': {'key': 'authenticatedUser', 'type': 'Identity'}, 'authorized_user': {'key': 'authorizedUser', 'type': 'Identity'}, 'deployment_id': {'key': 'deploymentId', 'type': 'str'}, + 'deployment_type': {'key': 'deploymentType', 'type': 'object'}, 'instance_id': {'key': 'instanceId', 'type': 'str'}, 'last_user_access': {'key': 'lastUserAccess', 'type': 'iso-8601'}, 'location_service_data': {'key': 'locationServiceData', 'type': 'LocationServiceData'}, 'web_application_relative_directory': {'key': 'webApplicationRelativeDirectory', 'type': 'str'} } - def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): + def __init__(self, authenticated_user=None, authorized_user=None, deployment_id=None, deployment_type=None, instance_id=None, last_user_access=None, location_service_data=None, web_application_relative_directory=None): super(ConnectionData, self).__init__() self.authenticated_user = authenticated_user self.authorized_user = authorized_user self.deployment_id = deployment_id + self.deployment_type = deployment_type self.instance_id = instance_id self.last_user_access = last_user_access self.location_service_data = location_service_data @@ -87,7 +91,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -99,19 +103,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -177,7 +181,7 @@ class LocationServiceData(Model): """LocationServiceData. :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` + :type access_mappings: list of :class:`AccessMapping ` :param client_cache_fresh: Data that the location service holds. :type client_cache_fresh: bool :param client_cache_time_to_live: The time to live on the location service cache. @@ -189,7 +193,7 @@ class LocationServiceData(Model): :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. :type last_change_id64: long :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` + :type service_definitions: list of :class:`ServiceDefinition ` :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) :type service_owner: str """ @@ -253,7 +257,7 @@ class ServiceDefinition(Model): :param inherit_level: :type inherit_level: object :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` + :type location_mappings: list of :class:`LocationMapping ` :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. :type max_version: str :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. @@ -263,7 +267,7 @@ class ServiceDefinition(Model): :param parent_service_type: :type parent_service_type: str :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param relative_path: :type relative_path: str :param relative_to_setting: @@ -331,7 +335,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -343,19 +347,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_1/maven/__init__.py b/azure-devops/azure/devops/v5_1/maven/__init__.py new file mode 100644 index 00000000..b1592973 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/maven/__init__.py @@ -0,0 +1,40 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchOperationData', + 'MavenDistributionManagement', + 'MavenMinimalPackageDetails', + 'MavenPackage', + 'MavenPackagesBatchRequest', + 'MavenPackageVersionDeletionState', + 'MavenPomBuild', + 'MavenPomCi', + 'MavenPomCiNotifier', + 'MavenPomDependency', + 'MavenPomDependencyManagement', + 'MavenPomGav', + 'MavenPomIssueManagement', + 'MavenPomLicense', + 'MavenPomMailingList', + 'MavenPomMetadata', + 'MavenPomOrganization', + 'MavenPomParent', + 'MavenPomPerson', + 'MavenPomScm', + 'MavenRecycleBinPackageVersionDetails', + 'MavenRepository', + 'MavenSnapshotRepository', + 'Package', + 'Plugin', + 'PluginConfiguration', + 'ReferenceLink', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v5_1/maven/maven_client.py b/azure-devops/azure/devops/v5_1/maven/maven_client.py new file mode 100644 index 00000000..6c2768ab --- /dev/null +++ b/azure-devops/azure/devops/v5_1/maven/maven_client.py @@ -0,0 +1,149 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class MavenClient(Client): + """Maven + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(MavenClient, 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 = '6f7f8c07-ff36-473c-bcf3-bd6cc9b6c066' + + def delete_package_version_from_recycle_bin(self, feed, group_id, artifact_id, version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Permanently delete a package from a feed's recycle bin. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + self._send(http_method='DELETE', + location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', + version='5.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed, group_id, artifact_id, version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] Get information about a package version in the recycle bin. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + response = self._send(http_method='GET', + location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('MavenPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed, group_id, artifact_id, version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version from the recycle bin to its associated feed. + :param :class:` ` package_version_details: Set the 'Deleted' property to false to restore the package. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + content = self._serialize.body(package_version_details, 'MavenRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='f67e10eb-1254-4953-add7-d49b83a16c9f', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def get_package_version(self, feed, group_id, artifact_id, version, show_deleted=None): + """GetPackageVersion. + [Preview API] Get information about a package version. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + :param bool show_deleted: True to show information for deleted packages. + :rtype: :class:` ` + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='180ed967-377a-4112-986b-607adb14ded4', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def package_delete(self, feed, group_id, artifact_id, version): + """PackageDelete. + [Preview API] Delete a package version from the feed and move it to the feed's recycle bin. + :param str feed: Name or ID of the feed. + :param str group_id: Group ID of the package. + :param str artifact_id: Artifact ID of the package. + :param str version: Version of the package. + """ + route_values = {} + if feed is not None: + route_values['feed'] = self._serialize.url('feed', feed, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if artifact_id is not None: + route_values['artifactId'] = self._serialize.url('artifact_id', artifact_id, 'str') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'str') + self._send(http_method='DELETE', + location_id='180ed967-377a-4112-986b-607adb14ded4', + version='5.1-preview.1', + route_values=route_values) + diff --git a/azure-devops/azure/devops/v4_1/maven/models.py b/azure-devops/azure/devops/v5_1/maven/models.py similarity index 85% rename from azure-devops/azure/devops/v4_1/maven/models.py rename to azure-devops/azure/devops/v5_1/maven/models.py index 07255d27..5ab02527 100644 --- a/azure-devops/azure/devops/v4_1/maven/models.py +++ b/azure-devops/azure/devops/v5_1/maven/models.py @@ -21,6 +21,26 @@ def __init__(self): super(BatchOperationData, self).__init__() +class MavenDistributionManagement(Model): + """MavenDistributionManagement. + + :param repository: + :type repository: :class:`MavenRepository ` + :param snapshot_repository: + :type snapshot_repository: :class:`MavenSnapshotRepository ` + """ + + _attribute_map = { + 'repository': {'key': 'repository', 'type': 'MavenRepository'}, + 'snapshot_repository': {'key': 'snapshotRepository', 'type': 'MavenSnapshotRepository'} + } + + def __init__(self, repository=None, snapshot_repository=None): + super(MavenDistributionManagement, self).__init__() + self.repository = repository + self.snapshot_repository = snapshot_repository + + class MavenMinimalPackageDetails(Model): """MavenMinimalPackageDetails. @@ -51,27 +71,27 @@ class MavenPackage(Model): :param artifact_id: :type artifact_id: str :param artifact_index: - :type artifact_index: :class:`ReferenceLink ` + :type artifact_index: :class:`ReferenceLink ` :param artifact_metadata: - :type artifact_metadata: :class:`ReferenceLink ` + :type artifact_metadata: :class:`ReferenceLink ` :param deleted_date: :type deleted_date: datetime :param files: - :type files: :class:`ReferenceLinks ` + :type files: :class:`ReferenceLinks ` :param group_id: :type group_id: str :param pom: - :type pom: :class:`MavenPomMetadata ` + :type pom: :class:`MavenPomMetadata ` :param requested_file: - :type requested_file: :class:`ReferenceLink ` + :type requested_file: :class:`ReferenceLink ` :param snapshot_metadata: - :type snapshot_metadata: :class:`ReferenceLink ` + :type snapshot_metadata: :class:`ReferenceLink ` :param version: :type version: str :param versions: - :type versions: :class:`ReferenceLinks ` + :type versions: :class:`ReferenceLinks ` :param versions_index: - :type versions_index: :class:`ReferenceLink ` + :type versions_index: :class:`ReferenceLink ` """ _attribute_map = { @@ -109,11 +129,11 @@ class MavenPackagesBatchRequest(Model): """MavenPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MavenMinimalPackageDetails ` + :type packages: list of :class:`MavenMinimalPackageDetails ` """ _attribute_map = { @@ -132,13 +152,13 @@ def __init__(self, data=None, operation=None, packages=None): class MavenPackageVersionDeletionState(Model): """MavenPackageVersionDeletionState. - :param artifact_id: + :param artifact_id: Artifact Id of the package. :type artifact_id: str - :param deleted_date: + :param deleted_date: UTC date the package was deleted. :type deleted_date: datetime - :param group_id: + :param group_id: Group Id of the package. :type group_id: str - :param version: + :param version: Version of the package. :type version: str """ @@ -161,7 +181,7 @@ class MavenPomBuild(Model): """MavenPomBuild. :param plugins: - :type plugins: list of :class:`Plugin ` + :type plugins: list of :class:`Plugin ` """ _attribute_map = { @@ -177,7 +197,7 @@ class MavenPomCi(Model): """MavenPomCi. :param notifiers: - :type notifiers: list of :class:`MavenPomCiNotifier ` + :type notifiers: list of :class:`MavenPomCiNotifier ` :param system: :type system: str :param url: @@ -237,7 +257,7 @@ class MavenPomDependencyManagement(Model): """MavenPomDependencyManagement. :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` """ _attribute_map = { @@ -339,27 +359,29 @@ class MavenPomMetadata(MavenPomGav): :param version: :type version: str :param build: - :type build: :class:`MavenPomBuild ` + :type build: :class:`MavenPomBuild ` :param ci_management: - :type ci_management: :class:`MavenPomCi ` + :type ci_management: :class:`MavenPomCi ` :param contributors: - :type contributors: list of :class:`MavenPomPerson ` + :type contributors: list of :class:`MavenPomPerson ` :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` :param dependency_management: - :type dependency_management: :class:`MavenPomDependencyManagement ` + :type dependency_management: :class:`MavenPomDependencyManagement ` :param description: :type description: str :param developers: - :type developers: list of :class:`MavenPomPerson ` + :type developers: list of :class:`MavenPomPerson ` + :param distribution_management: + :type distribution_management: :class:`MavenDistributionManagement ` :param inception_year: :type inception_year: str :param issue_management: - :type issue_management: :class:`MavenPomIssueManagement ` + :type issue_management: :class:`MavenPomIssueManagement ` :param licenses: - :type licenses: list of :class:`MavenPomLicense ` + :type licenses: list of :class:`MavenPomLicense ` :param mailing_lists: - :type mailing_lists: list of :class:`MavenPomMailingList ` + :type mailing_lists: list of :class:`MavenPomMailingList ` :param model_version: :type model_version: str :param modules: @@ -367,17 +389,17 @@ class MavenPomMetadata(MavenPomGav): :param name: :type name: str :param organization: - :type organization: :class:`MavenPomOrganization ` + :type organization: :class:`MavenPomOrganization ` :param packaging: :type packaging: str :param parent: - :type parent: :class:`MavenPomParent ` + :type parent: :class:`MavenPomParent ` :param prerequisites: :type prerequisites: dict :param properties: :type properties: dict :param scm: - :type scm: :class:`MavenPomScm ` + :type scm: :class:`MavenPomScm ` :param url: :type url: str """ @@ -393,6 +415,7 @@ class MavenPomMetadata(MavenPomGav): 'dependency_management': {'key': 'dependencyManagement', 'type': 'MavenPomDependencyManagement'}, 'description': {'key': 'description', 'type': 'str'}, 'developers': {'key': 'developers', 'type': '[MavenPomPerson]'}, + 'distribution_management': {'key': 'distributionManagement', 'type': 'MavenDistributionManagement'}, 'inception_year': {'key': 'inceptionYear', 'type': 'str'}, 'issue_management': {'key': 'issueManagement', 'type': 'MavenPomIssueManagement'}, 'licenses': {'key': 'licenses', 'type': '[MavenPomLicense]'}, @@ -409,7 +432,7 @@ class MavenPomMetadata(MavenPomGav): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, artifact_id=None, group_id=None, version=None, build=None, ci_management=None, contributors=None, dependencies=None, dependency_management=None, description=None, developers=None, inception_year=None, issue_management=None, licenses=None, mailing_lists=None, model_version=None, modules=None, name=None, organization=None, packaging=None, parent=None, prerequisites=None, properties=None, scm=None, url=None): + def __init__(self, artifact_id=None, group_id=None, version=None, build=None, ci_management=None, contributors=None, dependencies=None, dependency_management=None, description=None, developers=None, distribution_management=None, inception_year=None, issue_management=None, licenses=None, mailing_lists=None, model_version=None, modules=None, name=None, organization=None, packaging=None, parent=None, prerequisites=None, properties=None, scm=None, url=None): super(MavenPomMetadata, self).__init__(artifact_id=artifact_id, group_id=group_id, version=version) self.build = build self.ci_management = ci_management @@ -418,6 +441,7 @@ def __init__(self, artifact_id=None, group_id=None, version=None, build=None, ci self.dependency_management = dependency_management self.description = description self.developers = developers + self.distribution_management = distribution_management self.inception_year = inception_year self.issue_management = issue_management self.licenses = licenses @@ -567,20 +591,51 @@ def __init__(self, deleted=None): self.deleted = deleted +class MavenRepository(Model): + """MavenRepository. + + :param unique_version: + :type unique_version: bool + """ + + _attribute_map = { + 'unique_version': {'key': 'uniqueVersion', 'type': 'bool'} + } + + def __init__(self, unique_version=None): + super(MavenRepository, self).__init__() + self.unique_version = unique_version + + +class MavenSnapshotRepository(MavenRepository): + """MavenSnapshotRepository. + + :param unique_version: + :type unique_version: bool + """ + + _attribute_map = { + 'unique_version': {'key': 'uniqueVersion', 'type': 'bool'}, + } + + def __init__(self, unique_version=None): + super(MavenSnapshotRepository, self).__init__(unique_version=unique_version) + + class Package(Model): """Package. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param deleted_date: If and when the package was deleted + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. :type deleted_date: datetime - :param id: + :param id: Package Id. :type id: str - :param name: The display name of the package + :param name: The display name of the package. :type name: str :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime - :param version: The version of the package + :param version: The version of the package. :type version: str """ @@ -613,7 +668,7 @@ class Plugin(MavenPomGav): :param version: :type version: str :param configuration: - :type configuration: :class:`PluginConfiguration ` + :type configuration: :class:`PluginConfiguration ` """ _attribute_map = { @@ -733,6 +788,7 @@ def __init__(self, name=None, url=None, distribution=None): __all__ = [ 'BatchOperationData', + 'MavenDistributionManagement', 'MavenMinimalPackageDetails', 'MavenPackage', 'MavenPackagesBatchRequest', @@ -750,6 +806,8 @@ def __init__(self, name=None, url=None, distribution=None): 'MavenPomPerson', 'MavenPomScm', 'MavenRecycleBinPackageVersionDetails', + 'MavenRepository', + 'MavenSnapshotRepository', 'Package', 'Plugin', 'PluginConfiguration', diff --git a/azure-devops/azure/devops/v4_0/member_entitlement_management/__init__.py b/azure-devops/azure/devops/v5_1/member_entitlement_management/__init__.py similarity index 67% rename from azure-devops/azure/devops/v4_0/member_entitlement_management/__init__.py rename to azure-devops/azure/devops/v5_1/member_entitlement_management/__init__.py index 354b306a..4b768491 100644 --- a/azure-devops/azure/devops/v4_0/member_entitlement_management/__init__.py +++ b/azure-devops/azure/devops/v5_1/member_entitlement_management/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -12,14 +12,19 @@ 'AccessLevel', 'BaseOperationResult', 'Extension', + 'ExtensionSummaryData', 'GraphGroup', 'GraphMember', 'GraphSubject', + 'GraphSubjectBase', + 'GraphUser', 'Group', 'GroupEntitlement', 'GroupEntitlementOperationReference', 'GroupOperationResult', + 'GroupOption', 'JsonPatchOperation', + 'LicenseSummaryData', 'MemberEntitlement', 'MemberEntitlementOperationReference', 'MemberEntitlementsPatchResponse', @@ -27,8 +32,18 @@ 'MemberEntitlementsResponseBase', 'OperationReference', 'OperationResult', + 'PagedGraphMemberList', + 'PagedList', 'ProjectEntitlement', 'ProjectRef', 'ReferenceLinks', + 'SummaryData', 'TeamRef', + 'UserEntitlement', + 'UserEntitlementOperationReference', + 'UserEntitlementOperationResult', + 'UserEntitlementsPatchResponse', + 'UserEntitlementsPostResponse', + 'UserEntitlementsResponseBase', + 'UsersSummary', ] diff --git a/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py b/azure-devops/azure/devops/v5_1/member_entitlement_management/member_entitlement_management_client.py similarity index 87% rename from azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py rename to azure-devops/azure/devops/v5_1/member_entitlement_management/member_entitlement_management_client.py index 7430f4af..eb82c6b3 100644 --- a/azure-devops/azure/devops/v4_1/member_entitlement_management/member_entitlement_management_client.py +++ b/azure-devops/azure/devops/v5_1/member_entitlement_management/member_entitlement_management_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def add_group_entitlement(self, group_entitlement, rule_option=None): """AddGroupEntitlement. [Preview API] Create a group entitlement with license rule, extension rule. - :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups + :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be created and applied to it’s members (default option) or just be tested - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if rule_option is not None: @@ -38,7 +38,7 @@ def add_group_entitlement(self, group_entitlement, rule_option=None): content = self._serialize.body(group_entitlement, 'GroupEntitlement') response = self._send(http_method='POST', location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('GroupEntitlementOperationReference', response) @@ -49,7 +49,7 @@ def delete_group_entitlement(self, group_id, rule_option=None, remove_group_memb :param str group_id: ID of the group to delete. :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be deleted and the changes are applied to it’s members (default option) or just be tested :param bool remove_group_membership: Optional parameter that specifies whether the group with the given ID should be removed from all other groups - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -61,7 +61,7 @@ def delete_group_entitlement(self, group_id, rule_option=None, remove_group_memb query_parameters['removeGroupMembership'] = self._serialize.query('remove_group_membership', remove_group_membership, 'bool') response = self._send(http_method='DELETE', location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('GroupEntitlementOperationReference', response) @@ -70,14 +70,14 @@ def get_group_entitlement(self, group_id): """GetGroupEntitlement. [Preview API] Get a group entitlement. :param str group_id: ID of the group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') response = self._send(http_method='GET', location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('GroupEntitlement', response) @@ -88,16 +88,16 @@ def get_group_entitlements(self): """ response = self._send(http_method='GET', location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', - version='4.1-preview.1') + version='5.1-preview.1') return self._deserialize('[GroupEntitlement]', self._unwrap_collection(response)) def update_group_entitlement(self, document, group_id, rule_option=None): """UpdateGroupEntitlement. [Preview API] Update entitlements (License Rule, Extensions Rule, Project memberships etc.) for a group. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. :param str group_id: ID of the group. :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be updated and the changes are applied to it’s members (default option) or just be tested - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -108,7 +108,7 @@ def update_group_entitlement(self, document, group_id, rule_option=None): content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='2280bffa-58a2-49da-822e-0764a1bb44f7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -128,7 +128,7 @@ def add_member_to_group(self, group_id, member_id): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') self._send(http_method='PUT', location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_group_members(self, group_id, max_results=None, paging_token=None): @@ -137,7 +137,7 @@ def get_group_members(self, group_id, max_results=None, paging_token=None): :param str group_id: Id of the Group. :param int max_results: Maximum number of results to retrieve. :param str paging_token: Paging Token from the previous page fetched. If the 'pagingToken' is null, the results would be fetched from the begining of the Members List. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -149,7 +149,7 @@ def get_group_members(self, group_id, max_results=None, paging_token=None): query_parameters['pagingToken'] = self._serialize.query('paging_token', paging_token, 'str') response = self._send(http_method='GET', location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('PagedGraphMemberList', response) @@ -167,30 +167,30 @@ def remove_member_from_group(self, group_id, member_id): route_values['memberId'] = self._serialize.url('member_id', member_id, 'str') self._send(http_method='DELETE', location_id='45a36e53-5286-4518-aa72-2d29f7acc5d8', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def add_user_entitlement(self, user_entitlement): """AddUserEntitlement. [Preview API] Add a user, assign license and extensions and make them a member of a project group in an account. - :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. - :rtype: :class:` ` + :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. + :rtype: :class:` ` """ content = self._serialize.body(user_entitlement, 'UserEntitlement') response = self._send(http_method='POST', location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', - version='4.1-preview.1', + version='5.1-preview.2', content=content) return self._deserialize('UserEntitlementsPostResponse', response) - def get_user_entitlements(self, top=None, skip=None, filter=None, select=None): + def get_user_entitlements(self, top=None, skip=None, filter=None, sort_option=None): """GetUserEntitlements. [Preview API] Get a paged set of user entitlements matching the filter criteria. If no filter is is passed, a page from all the account users is returned. :param int top: Maximum number of the user entitlements to return. Max value is 10000. Default value is 100 :param int skip: Offset: Number of records to skip. Default value is 0 :param str filter: Comma (",") separated list of properties and their values to filter on. Currently, the API only supports filtering by ExtensionId. An example parameter would be filter=extensionId eq search. - :param str select: Comma (",") separated list of properties to select in the result entitlements. names of the properties are - 'Projects, 'Extensions' and 'Grouprules'. - :rtype: [UserEntitlement] + :param str sort_option: PropertyName and Order (separated by a space ( )) to sort on (e.g. LastAccessDate Desc) + :rtype: :class:` ` """ query_parameters = {} if top is not None: @@ -199,20 +199,20 @@ def get_user_entitlements(self, top=None, skip=None, filter=None, select=None): query_parameters['skip'] = self._serialize.query('skip', skip, 'int') if filter is not None: query_parameters['filter'] = self._serialize.query('filter', filter, 'str') - if select is not None: - query_parameters['select'] = self._serialize.query('select', select, 'str') + if sort_option is not None: + query_parameters['sortOption'] = self._serialize.query('sort_option', sort_option, 'str') response = self._send(http_method='GET', location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', - version='4.1-preview.1', + version='5.1-preview.2', query_parameters=query_parameters) - return self._deserialize('[UserEntitlement]', self._unwrap_collection(response)) + return self._deserialize('PagedGraphMemberList', response) def update_user_entitlements(self, document, do_not_send_invite_for_new_users=None): """UpdateUserEntitlements. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. :param bool do_not_send_invite_for_new_users: Whether to send email invites to new users or not - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if do_not_send_invite_for_new_users is not None: @@ -220,7 +220,7 @@ def update_user_entitlements(self, document, do_not_send_invite_for_new_users=No content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737', - version='4.1-preview.1', + version='5.1-preview.2', query_parameters=query_parameters, content=content, media_type='application/json-patch+json') @@ -236,30 +236,30 @@ def delete_user_entitlement(self, user_id): route_values['userId'] = self._serialize.url('user_id', user_id, 'str') self._send(http_method='DELETE', location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', - version='4.1-preview.1', + version='5.1-preview.2', route_values=route_values) def get_user_entitlement(self, user_id): """GetUserEntitlement. [Preview API] Get User Entitlement for a user. :param str user_id: ID of the user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: route_values['userId'] = self._serialize.url('user_id', user_id, 'str') response = self._send(http_method='GET', location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', - version='4.1-preview.1', + version='5.1-preview.2', route_values=route_values) return self._deserialize('UserEntitlement', response) def update_user_entitlement(self, document, user_id): """UpdateUserEntitlement. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for a user. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. :param str user_id: ID of the user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -267,7 +267,7 @@ def update_user_entitlement(self, document, user_id): content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='8480c6eb-ce60-47e9-88df-eca3c801638b', - version='4.1-preview.1', + version='5.1-preview.2', route_values=route_values, content=content, media_type='application/json-patch+json') @@ -277,14 +277,14 @@ def get_users_summary(self, select=None): """GetUsersSummary. [Preview API] Get summary of Licenses, Extension, Projects, Groups and their assignments in the collection. :param str select: Comma (",") separated list of properties to select. Supported property names are {AccessLevels, Licenses, Extensions, Projects, Groups}. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if select is not None: query_parameters['select'] = self._serialize.query('select', select, 'str') response = self._send(http_method='GET', location_id='5ae55b13-c9dd-49d1-957e-6e76c152e3d9', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('UsersSummary', response) diff --git a/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py b/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py new file mode 100644 index 00000000..8234f3e9 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py @@ -0,0 +1,1242 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AccessLevel(Model): + """AccessLevel. + + :param account_license_type: Type of Account License (e.g. Express, Stakeholder etc.) + :type account_license_type: object + :param assignment_source: Assignment Source of the License (e.g. Group, Unknown etc. + :type assignment_source: object + :param license_display_name: Display name of the License + :type license_display_name: str + :param licensing_source: Licensing Source (e.g. Account. MSDN etc.) + :type licensing_source: object + :param msdn_license_type: Type of MSDN License (e.g. Visual Studio Professional, Visual Studio Enterprise etc.) + :type msdn_license_type: object + :param status: User status in the account + :type status: object + :param status_message: Status message. + :type status_message: str + """ + + _attribute_map = { + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'license_display_name': {'key': 'licenseDisplayName', 'type': 'str'}, + 'licensing_source': {'key': 'licensingSource', 'type': 'object'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'status': {'key': 'status', 'type': 'object'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'} + } + + def __init__(self, account_license_type=None, assignment_source=None, license_display_name=None, licensing_source=None, msdn_license_type=None, status=None, status_message=None): + super(AccessLevel, self).__init__() + self.account_license_type = account_license_type + self.assignment_source = assignment_source + self.license_display_name = license_display_name + self.licensing_source = licensing_source + self.msdn_license_type = msdn_license_type + self.status = status + self.status_message = status_message + + +class BaseOperationResult(Model): + """BaseOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'} + } + + def __init__(self, errors=None, is_success=None): + super(BaseOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + + +class Extension(Model): + """Extension. + + :param assignment_source: Assignment source for this extension. I.e. explicitly assigned or from a group rule. + :type assignment_source: object + :param id: Gallery Id of the Extension. + :type id: str + :param name: Friendly name of this extension. + :type name: str + :param source: Source of this extension assignment. Ex: msdn, account, none, etc. + :type source: object + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'object'} + } + + def __init__(self, assignment_source=None, id=None, name=None, source=None): + super(Extension, self).__init__() + self.assignment_source = assignment_source + self.id = id + self.name = name + self.source = source + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 Group(Model): + """Group. + + :param display_name: Display Name of the Group + :type display_name: str + :param group_type: Group Type + :type group_type: object + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'group_type': {'key': 'groupType', 'type': 'object'} + } + + def __init__(self, display_name=None, group_type=None): + super(Group, self).__init__() + self.display_name = display_name + self.group_type = group_type + + +class GroupEntitlement(Model): + """GroupEntitlement. + + :param extension_rules: Extension Rules. + :type extension_rules: list of :class:`Extension ` + :param group: Member reference. + :type group: :class:`GraphGroup ` + :param id: The unique identifier which matches the Id of the GraphMember. + :type id: str + :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). + :type last_executed: datetime + :param license_rule: License Rule. + :type license_rule: :class:`AccessLevel ` + :param members: Group members. Only used when creating a new group. + :type members: list of :class:`UserEntitlement ` + :param project_entitlements: Relation between a project and the member's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param status: The status of the group rule. + :type status: object + """ + + _attribute_map = { + 'extension_rules': {'key': 'extensionRules', 'type': '[Extension]'}, + 'group': {'key': 'group', 'type': 'GraphGroup'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_executed': {'key': 'lastExecuted', 'type': 'iso-8601'}, + 'license_rule': {'key': 'licenseRule', 'type': 'AccessLevel'}, + 'members': {'key': 'members', 'type': '[UserEntitlement]'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, extension_rules=None, group=None, id=None, last_executed=None, license_rule=None, members=None, project_entitlements=None, status=None): + super(GroupEntitlement, self).__init__() + self.extension_rules = extension_rules + self.group = group + self.id = id + self.last_executed = last_executed + self.license_rule = license_rule + self.members = members + self.project_entitlements = project_entitlements + self.status = status + + +class GroupOperationResult(BaseOperationResult): + """GroupOperationResult. + + :param errors: List of error codes paired with their corresponding error messages + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation + :type is_success: bool + :param group_id: Identifier of the Group being acted upon + :type group_id: str + :param result: Result of the Groupentitlement after the operation + :type result: :class:`GroupEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'GroupEntitlement'} + } + + def __init__(self, errors=None, is_success=None, group_id=None, result=None): + super(GroupOperationResult, self).__init__(errors=errors, is_success=is_success) + self.group_id = group_id + self.result = result + + +class GroupOption(Model): + """GroupOption. + + :param access_level: Access Level + :type access_level: :class:`AccessLevel ` + :param group: Group + :type group: :class:`Group ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'group': {'key': 'group', 'type': 'Group'} + } + + def __init__(self, access_level=None, group=None): + super(GroupOption, self).__init__() + self.access_level = access_level + self.group = group + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MemberEntitlementsResponseBase(Model): + """MemberEntitlementsResponseBase. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'} + } + + def __init__(self, is_success=None, member_entitlement=None): + super(MemberEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.member_entitlement = member_entitlement + + +class OperationReference(Model): + """OperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None): + super(OperationReference, self).__init__() + self.id = id + self.plugin_id = plugin_id + self.status = status + self.url = url + + +class OperationResult(Model): + """OperationResult. + + :param errors: List of error codes paired with their corresponding error messages. + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation. + :type is_success: bool + :param member_id: Identifier of the Member being acted upon. + :type member_id: str + :param result: Result of the MemberEntitlement after the operation. + :type result: :class:`MemberEntitlement ` + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_id': {'key': 'memberId', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'MemberEntitlement'} + } + + def __init__(self, errors=None, is_success=None, member_id=None, result=None): + super(OperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.member_id = member_id + self.result = result + + +class PagedList(Model): + """PagedList. + + :param continuation_token: + :type continuation_token: str + :param items: + :type items: list of object + :param total_count: + :type total_count: int + """ + + _attribute_map = { + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[object]'}, + 'total_count': {'key': 'totalCount', 'type': 'int'} + } + + def __init__(self, continuation_token=None, items=None, total_count=None): + super(PagedList, self).__init__() + self.continuation_token = continuation_token + self.items = items + self.total_count = total_count + + +class ProjectEntitlement(Model): + """ProjectEntitlement. + + :param assignment_source: Assignment Source (e.g. Group or Unknown). + :type assignment_source: object + :param group: Project Group (e.g. Contributor, Reader etc.) + :type group: :class:`Group ` + :param is_project_permission_inherited: [Deprecated] Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership. + :type is_project_permission_inherited: bool + :param project_permission_inherited: Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership. + :type project_permission_inherited: object + :param project_ref: Project Ref + :type project_ref: :class:`ProjectRef ` + :param team_refs: Team Ref. + :type team_refs: list of :class:`TeamRef ` + """ + + _attribute_map = { + 'assignment_source': {'key': 'assignmentSource', 'type': 'object'}, + 'group': {'key': 'group', 'type': 'Group'}, + 'is_project_permission_inherited': {'key': 'isProjectPermissionInherited', 'type': 'bool'}, + 'project_permission_inherited': {'key': 'projectPermissionInherited', 'type': 'object'}, + 'project_ref': {'key': 'projectRef', 'type': 'ProjectRef'}, + 'team_refs': {'key': 'teamRefs', 'type': '[TeamRef]'} + } + + def __init__(self, assignment_source=None, group=None, is_project_permission_inherited=None, project_permission_inherited=None, project_ref=None, team_refs=None): + super(ProjectEntitlement, self).__init__() + self.assignment_source = assignment_source + self.group = group + self.is_project_permission_inherited = is_project_permission_inherited + self.project_permission_inherited = project_permission_inherited + self.project_ref = project_ref + self.team_refs = team_refs + + +class ProjectRef(Model): + """ProjectRef. + + :param id: Project ID. + :type id: str + :param name: Project Name. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectRef, self).__init__() + self.id = id + self.name = name + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class SummaryData(Model): + """SummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None): + super(SummaryData, self).__init__() + self.assigned = assigned + self.available = available + self.included_quantity = included_quantity + self.total = total + + +class TeamRef(Model): + """TeamRef. + + :param id: Team ID + :type id: str + :param name: Team Name + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(TeamRef, self).__init__() + self.id = id + self.name = name + + +class UserEntitlement(Model): + """UserEntitlement. + + :param access_level: User's access level denoted by a license. + :type access_level: :class:`AccessLevel ` + :param date_created: [Readonly] Date the user was added to the collection. + :type date_created: datetime + :param extensions: User's extensions. + :type extensions: list of :class:`Extension ` + :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. + :type id: str + :param last_accessed_date: [Readonly] Date the user last accessed the collection. + :type last_accessed_date: datetime + :param project_entitlements: Relation between a project and the user's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param user: User reference. + :type user: :class:`GraphUser ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'user': {'key': 'user', 'type': 'GraphUser'} + } + + def __init__(self, access_level=None, date_created=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None): + super(UserEntitlement, self).__init__() + self.access_level = access_level + self.date_created = date_created + self.extensions = extensions + self.group_assignments = group_assignments + self.id = id + self.last_accessed_date = last_accessed_date + self.project_entitlements = project_entitlements + self.user = user + + +class UserEntitlementOperationReference(OperationReference): + """UserEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure. + :type completed: bool + :param have_results_succeeded: True if all operations were successful. + :type have_results_succeeded: bool + :param results: List of results for each operation. + :type results: list of :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[UserEntitlementOperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(UserEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class UserEntitlementOperationResult(Model): + """UserEntitlementOperationResult. + + :param errors: List of error codes paired with their corresponding error messages. + :type errors: list of { key: int; value: str } + :param is_success: Success status of the operation. + :type is_success: bool + :param result: Result of the MemberEntitlement after the operation. + :type result: :class:`UserEntitlement ` + :param user_id: Identifier of the Member being acted upon. + :type user_id: str + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[{ key: int; value: str }]'}, + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'result': {'key': 'result', 'type': 'UserEntitlement'}, + 'user_id': {'key': 'userId', 'type': 'str'} + } + + def __init__(self, errors=None, is_success=None, result=None, user_id=None): + super(UserEntitlementOperationResult, self).__init__() + self.errors = errors + self.is_success = is_success + self.result = result + self.user_id = user_id + + +class UserEntitlementsResponseBase(Model): + """UserEntitlementsResponseBase. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'} + } + + def __init__(self, is_success=None, user_entitlement=None): + super(UserEntitlementsResponseBase, self).__init__() + self.is_success = is_success + self.user_entitlement = user_entitlement + + +class UsersSummary(Model): + """UsersSummary. + + :param available_access_levels: Available Access Levels + :type available_access_levels: list of :class:`AccessLevel ` + :param extensions: Summary of Extensions in the organization + :type extensions: list of :class:`ExtensionSummaryData ` + :param group_options: Group Options + :type group_options: list of :class:`GroupOption ` + :param licenses: Summary of Licenses in the organization + :type licenses: list of :class:`LicenseSummaryData ` + :param project_refs: Summary of Projects in the organization + :type project_refs: list of :class:`ProjectRef ` + """ + + _attribute_map = { + 'available_access_levels': {'key': 'availableAccessLevels', 'type': '[AccessLevel]'}, + 'extensions': {'key': 'extensions', 'type': '[ExtensionSummaryData]'}, + 'group_options': {'key': 'groupOptions', 'type': '[GroupOption]'}, + 'licenses': {'key': 'licenses', 'type': '[LicenseSummaryData]'}, + 'project_refs': {'key': 'projectRefs', 'type': '[ProjectRef]'} + } + + def __init__(self, available_access_levels=None, extensions=None, group_options=None, licenses=None, project_refs=None): + super(UsersSummary, self).__init__() + self.available_access_levels = available_access_levels + self.extensions = extensions + self.group_options = group_options + self.licenses = licenses + self.project_refs = project_refs + + +class ExtensionSummaryData(SummaryData): + """ExtensionSummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + :param assigned_through_subscription: Count of Extension Licenses assigned to users through msdn. + :type assigned_through_subscription: int + :param extension_id: Gallery Id of the Extension + :type extension_id: str + :param extension_name: Friendly name of this extension + :type extension_name: str + :param is_trial_version: Whether its a Trial Version. + :type is_trial_version: bool + :param minimum_license_required: Minimum License Required for the Extension. + :type minimum_license_required: object + :param remaining_trial_days: Days remaining for the Trial to expire. + :type remaining_trial_days: int + :param trial_expiry_date: Date on which the Trial expires. + :type trial_expiry_date: datetime + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'assigned_through_subscription': {'key': 'assignedThroughSubscription', 'type': 'int'}, + 'extension_id': {'key': 'extensionId', 'type': 'str'}, + 'extension_name': {'key': 'extensionName', 'type': 'str'}, + 'is_trial_version': {'key': 'isTrialVersion', 'type': 'bool'}, + 'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'}, + 'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'}, + 'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None, assigned_through_subscription=None, extension_id=None, extension_name=None, is_trial_version=None, minimum_license_required=None, remaining_trial_days=None, trial_expiry_date=None): + super(ExtensionSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) + self.assigned_through_subscription = assigned_through_subscription + self.extension_id = extension_id + self.extension_name = extension_name + self.is_trial_version = is_trial_version + self.minimum_license_required = minimum_license_required + self.remaining_trial_days = remaining_trial_days + self.trial_expiry_date = trial_expiry_date + + +class GraphSubject(GraphSubjectBase): + """GraphSubject. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None): + super(GraphSubject, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url) + self.legacy_descriptor = legacy_descriptor + self.origin = origin + self.origin_id = origin_id + self.subject_kind = subject_kind + + +class GroupEntitlementOperationReference(OperationReference): + """GroupEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure. + :type completed: bool + :param have_results_succeeded: True if all operations were successful. + :type have_results_succeeded: bool + :param results: List of results for each operation. + :type results: list of :class:`GroupOperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[GroupOperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(GroupEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class LicenseSummaryData(SummaryData): + """LicenseSummaryData. + + :param assigned: Count of Licenses already assigned. + :type assigned: int + :param available: Available Count. + :type available: int + :param included_quantity: Quantity + :type included_quantity: int + :param total: Total Count. + :type total: int + :param account_license_type: Type of Account License. + :type account_license_type: object + :param disabled: Count of Disabled Licenses. + :type disabled: int + :param is_purchasable: Designates if this license quantity can be changed through purchase + :type is_purchasable: bool + :param license_name: Name of the License. + :type license_name: str + :param msdn_license_type: Type of MSDN License. + :type msdn_license_type: object + :param next_billing_date: Specifies the date when billing will charge for paid licenses + :type next_billing_date: datetime + :param source: Source of the License. + :type source: object + :param total_after_next_billing_date: Total license count after next billing cycle + :type total_after_next_billing_date: int + """ + + _attribute_map = { + 'assigned': {'key': 'assigned', 'type': 'int'}, + 'available': {'key': 'available', 'type': 'int'}, + 'included_quantity': {'key': 'includedQuantity', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'account_license_type': {'key': 'accountLicenseType', 'type': 'object'}, + 'disabled': {'key': 'disabled', 'type': 'int'}, + 'is_purchasable': {'key': 'isPurchasable', 'type': 'bool'}, + 'license_name': {'key': 'licenseName', 'type': 'str'}, + 'msdn_license_type': {'key': 'msdnLicenseType', 'type': 'object'}, + 'next_billing_date': {'key': 'nextBillingDate', 'type': 'iso-8601'}, + 'source': {'key': 'source', 'type': 'object'}, + 'total_after_next_billing_date': {'key': 'totalAfterNextBillingDate', 'type': 'int'} + } + + def __init__(self, assigned=None, available=None, included_quantity=None, total=None, account_license_type=None, disabled=None, is_purchasable=None, license_name=None, msdn_license_type=None, next_billing_date=None, source=None, total_after_next_billing_date=None): + super(LicenseSummaryData, self).__init__(assigned=assigned, available=available, included_quantity=included_quantity, total=total) + self.account_license_type = account_license_type + self.disabled = disabled + self.is_purchasable = is_purchasable + self.license_name = license_name + self.msdn_license_type = msdn_license_type + self.next_billing_date = next_billing_date + self.source = source + self.total_after_next_billing_date = total_after_next_billing_date + + +class MemberEntitlement(UserEntitlement): + """MemberEntitlement. + + :param access_level: User's access level denoted by a license. + :type access_level: :class:`AccessLevel ` + :param date_created: [Readonly] Date the user was added to the collection. + :type date_created: datetime + :param extensions: User's extensions. + :type extensions: list of :class:`Extension ` + :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. + :type group_assignments: list of :class:`GroupEntitlement ` + :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. + :type id: str + :param last_accessed_date: [Readonly] Date the user last accessed the collection. + :type last_accessed_date: datetime + :param project_entitlements: Relation between a project and the user's effective permissions in that project. + :type project_entitlements: list of :class:`ProjectEntitlement ` + :param user: User reference. + :type user: :class:`GraphUser ` + :param member: Member reference + :type member: :class:`GraphMember ` + """ + + _attribute_map = { + 'access_level': {'key': 'accessLevel', 'type': 'AccessLevel'}, + 'date_created': {'key': 'dateCreated', 'type': 'iso-8601'}, + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'group_assignments': {'key': 'groupAssignments', 'type': '[GroupEntitlement]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'}, + 'project_entitlements': {'key': 'projectEntitlements', 'type': '[ProjectEntitlement]'}, + 'user': {'key': 'user', 'type': 'GraphUser'}, + 'member': {'key': 'member', 'type': 'GraphMember'} + } + + def __init__(self, access_level=None, date_created=None, extensions=None, group_assignments=None, id=None, last_accessed_date=None, project_entitlements=None, user=None, member=None): + super(MemberEntitlement, self).__init__(access_level=access_level, date_created=date_created, extensions=extensions, group_assignments=group_assignments, id=id, last_accessed_date=last_accessed_date, project_entitlements=project_entitlements, user=user) + self.member = member + + +class MemberEntitlementOperationReference(OperationReference): + """MemberEntitlementOperationReference. + + :param id: Unique identifier for the operation. + :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str + :param status: The current status of the operation. + :type status: object + :param url: URL to get the full operation object. + :type url: str + :param completed: Operation completed with success or failure + :type completed: bool + :param have_results_succeeded: True if all operations were successful + :type have_results_succeeded: bool + :param results: List of results for each operation + :type results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'}, + 'completed': {'key': 'completed', 'type': 'bool'}, + 'have_results_succeeded': {'key': 'haveResultsSucceeded', 'type': 'bool'}, + 'results': {'key': 'results', 'type': '[OperationResult]'} + } + + def __init__(self, id=None, plugin_id=None, status=None, url=None, completed=None, have_results_succeeded=None, results=None): + super(MemberEntitlementOperationReference, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) + self.completed = completed + self.have_results_succeeded = have_results_succeeded + self.results = results + + +class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPatchResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_results: List of results for each operation + :type operation_results: list of :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[OperationResult]'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_results=None): + super(MemberEntitlementsPatchResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_results = operation_results + + +class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): + """MemberEntitlementsPostResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param member_entitlement: Result of the member entitlement after the operations. have been applied + :type member_entitlement: :class:`MemberEntitlement ` + :param operation_result: Operation result + :type operation_result: :class:`OperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'member_entitlement': {'key': 'memberEntitlement', 'type': 'MemberEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'OperationResult'} + } + + def __init__(self, is_success=None, member_entitlement=None, operation_result=None): + super(MemberEntitlementsPostResponse, self).__init__(is_success=is_success, member_entitlement=member_entitlement) + self.operation_result = operation_result + + +class PagedGraphMemberList(PagedList): + """PagedGraphMemberList. + + :param members: + :type members: list of :class:`UserEntitlement ` + """ + + _attribute_map = { + 'members': {'key': 'members', 'type': '[UserEntitlement]'} + } + + def __init__(self, members=None): + super(PagedGraphMemberList, self).__init__() + self.members = members + + +class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): + """UserEntitlementsPatchResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + :param operation_results: List of results for each operation. + :type operation_results: list of :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, + 'operation_results': {'key': 'operationResults', 'type': '[UserEntitlementOperationResult]'} + } + + def __init__(self, is_success=None, user_entitlement=None, operation_results=None): + super(UserEntitlementsPatchResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) + self.operation_results = operation_results + + +class UserEntitlementsPostResponse(UserEntitlementsResponseBase): + """UserEntitlementsPostResponse. + + :param is_success: True if all operations were successful. + :type is_success: bool + :param user_entitlement: Result of the user entitlement after the operations have been applied. + :type user_entitlement: :class:`UserEntitlement ` + :param operation_result: Operation result. + :type operation_result: :class:`UserEntitlementOperationResult ` + """ + + _attribute_map = { + 'is_success': {'key': 'isSuccess', 'type': 'bool'}, + 'user_entitlement': {'key': 'userEntitlement', 'type': 'UserEntitlement'}, + 'operation_result': {'key': 'operationResult', 'type': 'UserEntitlementOperationResult'} + } + + def __init__(self, is_success=None, user_entitlement=None, operation_result=None): + super(UserEntitlementsPostResponse, self).__init__(is_success=is_success, user_entitlement=user_entitlement) + self.operation_result = operation_result + + +class GraphMember(GraphSubject): + """GraphMember. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_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'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None): + super(GraphMember, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind) + self.domain = domain + self.mail_address = mail_address + self.principal_name = principal_name + + +class GraphUser(GraphMember): + """GraphUser. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param is_deleted_in_origin: When true, the group has been deleted in the identity provider + :type is_deleted_in_origin: bool + :param metadata_update_date: + :type metadata_update_date: datetime + :param meta_type: The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values. + :type meta_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'}, + 'metadata_update_date': {'key': 'metadataUpdateDate', 'type': 'iso-8601'}, + 'meta_type': {'key': 'metaType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, is_deleted_in_origin=None, metadata_update_date=None, meta_type=None): + super(GraphUser, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.is_deleted_in_origin = is_deleted_in_origin + self.metadata_update_date = metadata_update_date + self.meta_type = meta_type + + +class GraphGroup(GraphMember): + """GraphGroup. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param legacy_descriptor: [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor. + :type legacy_descriptor: str + :param origin: The type of source provider for the origin identifier (ex:AD, AAD, MSA) + :type origin: str + :param origin_id: The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider. + :type origin_id: str + :param subject_kind: This field identifies the type of the graph subject (ex: Group, Scope, User). + :type subject_kind: str + :param domain: This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc) + :type domain: str + :param mail_address: The email address of record for a given graph member. This may be different than the principal name. + :type mail_address: str + :param principal_name: This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS. + :type principal_name: str + :param description: A short phrase to help human readers disambiguate groups with similar names + :type description: str + :param is_cross_project: + :type is_cross_project: bool + :param is_deleted: + :type is_deleted: bool + :param is_global_scope: + :type is_global_scope: bool + :param is_restricted_visible: + :type is_restricted_visible: bool + :param local_scope_id: + :type local_scope_id: str + :param scope_id: + :type scope_id: str + :param scope_name: + :type scope_name: str + :param scope_type: + :type scope_type: str + :param securing_host_id: + :type securing_host_id: str + :param special_type: + :type special_type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'legacy_descriptor': {'key': 'legacyDescriptor', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'origin_id': {'key': 'originId', 'type': 'str'}, + 'subject_kind': {'key': 'subjectKind', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'mail_address': {'key': 'mailAddress', 'type': 'str'}, + 'principal_name': {'key': 'principalName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_cross_project': {'key': 'isCrossProject', 'type': 'bool'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'is_global_scope': {'key': 'isGlobalScope', 'type': 'bool'}, + 'is_restricted_visible': {'key': 'isRestrictedVisible', 'type': 'bool'}, + 'local_scope_id': {'key': 'localScopeId', 'type': 'str'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'scope_type': {'key': 'scopeType', 'type': 'str'}, + 'securing_host_id': {'key': 'securingHostId', 'type': 'str'}, + 'special_type': {'key': 'specialType', 'type': 'str'} + } + + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, legacy_descriptor=None, origin=None, origin_id=None, subject_kind=None, domain=None, mail_address=None, principal_name=None, description=None, is_cross_project=None, is_deleted=None, is_global_scope=None, is_restricted_visible=None, local_scope_id=None, scope_id=None, scope_name=None, scope_type=None, securing_host_id=None, special_type=None): + super(GraphGroup, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, legacy_descriptor=legacy_descriptor, origin=origin, origin_id=origin_id, subject_kind=subject_kind, domain=domain, mail_address=mail_address, principal_name=principal_name) + self.description = description + self.is_cross_project = is_cross_project + self.is_deleted = is_deleted + self.is_global_scope = is_global_scope + self.is_restricted_visible = is_restricted_visible + self.local_scope_id = local_scope_id + self.scope_id = scope_id + self.scope_name = scope_name + self.scope_type = scope_type + self.securing_host_id = securing_host_id + self.special_type = special_type + + +__all__ = [ + 'AccessLevel', + 'BaseOperationResult', + 'Extension', + 'GraphSubjectBase', + 'Group', + 'GroupEntitlement', + 'GroupOperationResult', + 'GroupOption', + 'JsonPatchOperation', + 'MemberEntitlementsResponseBase', + 'OperationReference', + 'OperationResult', + 'PagedList', + 'ProjectEntitlement', + 'ProjectRef', + 'ReferenceLinks', + 'SummaryData', + 'TeamRef', + 'UserEntitlement', + 'UserEntitlementOperationReference', + 'UserEntitlementOperationResult', + 'UserEntitlementsResponseBase', + 'UsersSummary', + 'ExtensionSummaryData', + 'GraphSubject', + 'GroupEntitlementOperationReference', + 'LicenseSummaryData', + 'MemberEntitlement', + 'MemberEntitlementOperationReference', + 'MemberEntitlementsPatchResponse', + 'MemberEntitlementsPostResponse', + 'PagedGraphMemberList', + 'UserEntitlementsPatchResponse', + 'UserEntitlementsPostResponse', + 'GraphMember', + 'GraphUser', + 'GraphGroup', +] diff --git a/azure-devops/azure/devops/v4_0/notification/__init__.py b/azure-devops/azure/devops/v5_1/notification/__init__.py similarity index 80% rename from azure-devops/azure/devops/v4_0/notification/__init__.py rename to azure-devops/azure/devops/v5_1/notification/__init__.py index abbe3c70..b616f6fb 100644 --- a/azure-devops/azure/devops/v4_0/notification/__init__.py +++ b/azure-devops/azure/devops/v5_1/notification/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -15,18 +15,25 @@ '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', @@ -50,6 +57,7 @@ 'ReferenceLinks', 'SubscriptionAdminSettings', 'SubscriptionChannelWithAddress', + 'SubscriptionDiagnostics', 'SubscriptionEvaluationRequest', 'SubscriptionEvaluationResult', 'SubscriptionEvaluationSettings', @@ -57,7 +65,10 @@ 'SubscriptionQuery', 'SubscriptionQueryCondition', 'SubscriptionScope', + 'SubscriptionTracing', 'SubscriptionUserSettings', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', 'ValueDefinition', 'VssNotificationEvent', ] diff --git a/azure-devops/azure/devops/v4_0/notification/models.py b/azure-devops/azure/devops/v5_1/notification/models.py similarity index 74% rename from azure-devops/azure/devops/v4_0/notification/models.py rename to azure-devops/azure/devops/v5_1/notification/models.py index 7942a7b1..5f55d293 100644 --- a/azure-devops/azure/devops/v4_0/notification/models.py +++ b/azure-devops/azure/devops/v5_1/notification/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -35,7 +35,7 @@ class BatchNotificationOperation(Model): :param notification_operation: :type notification_operation: object :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` """ _attribute_map = { @@ -74,18 +74,22 @@ class EventScope(Model): :param id: Required: This is the identity of the scope for the type. :type id: str + :param name: Optional: The display name of the scope + :type name: str :param type: Required: The event specific type of a scope. :type type: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, id=None, type=None): + def __init__(self, id=None, name=None, type=None): super(EventScope, self).__init__() self.id = id + self.name = name self.type = type @@ -109,6 +113,54 @@ def __init__(self, count=None, matched_count=None): self.matched_count = matched_count +class EventTransformRequest(Model): + """EventTransformRequest. + + :param event_payload: Event payload. + :type event_payload: str + :param event_type: Event type. + :type event_type: str + :param system_inputs: System inputs. + :type system_inputs: dict + """ + + _attribute_map = { + 'event_payload': {'key': 'eventPayload', 'type': 'str'}, + 'event_type': {'key': 'eventType', 'type': 'str'}, + 'system_inputs': {'key': 'systemInputs', 'type': '{str}'} + } + + def __init__(self, event_payload=None, event_type=None, system_inputs=None): + super(EventTransformRequest, self).__init__() + self.event_payload = event_payload + self.event_type = event_type + self.system_inputs = system_inputs + + +class EventTransformResult(Model): + """EventTransformResult. + + :param content: Transformed html content. + :type content: str + :param data: Calculated data. + :type data: object + :param system_inputs: Calculated system inputs. + :type system_inputs: dict + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'data': {'key': 'data', 'type': 'object'}, + 'system_inputs': {'key': 'systemInputs', 'type': '{str}'} + } + + def __init__(self, content=None, data=None, system_inputs=None): + super(EventTransformResult, self).__init__() + self.content = content + self.data = data + self.system_inputs = system_inputs + + class ExpressionFilterClause(Model): """ExpressionFilterClause. @@ -169,9 +221,9 @@ class ExpressionFilterModel(Model): """ExpressionFilterModel. :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` + :type clauses: list of :class:`ExpressionFilterClause ` :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` + :type groups: list of :class:`ExpressionFilterGroup ` :param max_group_level: Max depth of the Subscription tree :type max_group_level: int """ @@ -189,56 +241,140 @@ def __init__(self, clauses=None, groups=None, max_group_level=None): self.max_group_level = max_group_level -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url + + +class INotificationDiagnosticLog(Model): + """INotificationDiagnosticLog. + + :param activity_id: + :type activity_id: str + :param description: + :type description: str + :param end_time: + :type end_time: datetime + :param id: + :type id: str + :param log_type: + :type log_type: str + :param messages: + :type messages: list of :class:`NotificationDiagnosticLogMessage ` + :param properties: + :type properties: dict + :param source: + :type source: str + :param start_time: + :type start_time: datetime + """ + + _attribute_map = { + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'log_type': {'key': 'logType', 'type': 'str'}, + 'messages': {'key': 'messages', 'type': '[NotificationDiagnosticLogMessage]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'source': {'key': 'source', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, activity_id=None, description=None, end_time=None, id=None, log_type=None, messages=None, properties=None, source=None, start_time=None): + super(INotificationDiagnosticLog, self).__init__() + self.activity_id = activity_id + self.description = description + self.end_time = end_time + self.id = id + self.log_type = log_type + self.messages = messages + self.properties = properties + self.source = source + self.start_time = start_time class InputValue(Model): @@ -271,7 +407,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -281,7 +417,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -327,7 +463,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -381,11 +517,67 @@ def __init__(self, event_type=None, type=None): self.type = type +class NotificationAdminSettings(Model): + """NotificationAdminSettings. + + :param default_group_delivery_preference: The default group delivery preference for groups in this collection + :type default_group_delivery_preference: object + """ + + _attribute_map = { + 'default_group_delivery_preference': {'key': 'defaultGroupDeliveryPreference', 'type': 'object'} + } + + def __init__(self, default_group_delivery_preference=None): + super(NotificationAdminSettings, self).__init__() + self.default_group_delivery_preference = default_group_delivery_preference + + +class NotificationAdminSettingsUpdateParameters(Model): + """NotificationAdminSettingsUpdateParameters. + + :param default_group_delivery_preference: + :type default_group_delivery_preference: object + """ + + _attribute_map = { + 'default_group_delivery_preference': {'key': 'defaultGroupDeliveryPreference', 'type': 'object'} + } + + def __init__(self, default_group_delivery_preference=None): + super(NotificationAdminSettingsUpdateParameters, self).__init__() + self.default_group_delivery_preference = default_group_delivery_preference + + +class NotificationDiagnosticLogMessage(Model): + """NotificationDiagnosticLogMessage. + + :param level: Corresponds to .Net TraceLevel enumeration + :type level: int + :param message: + :type message: str + :param time: + :type time: object + """ + + _attribute_map = { + 'level': {'key': 'level', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'object'} + } + + def __init__(self, level=None, message=None, time=None): + super(NotificationDiagnosticLogMessage, self).__init__() + self.level = level + self.message = message + self.time = time + + class NotificationEventField(Model): """NotificationEventField. :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` + :type field_type: :class:`NotificationEventFieldType ` :param id: Gets or sets the unique identifier of this field. :type id: str :param name: Gets or sets the name of this field. @@ -439,13 +631,13 @@ class NotificationEventFieldType(Model): :param id: Gets or sets the unique identifier of this field type. :type id: str :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` + :type operator_constraints: list of :class:`OperatorConstraint ` :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` + :type operators: list of :class:`NotificationEventFieldOperator ` :param subscription_field_type: :type subscription_field_type: object :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` + :type value: :class:`ValueDefinition ` """ _attribute_map = { @@ -471,7 +663,7 @@ class NotificationEventPublisher(Model): :param id: :type id: str :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` + :type subscription_management_info: :class:`SubscriptionManagement ` :param url: :type url: str """ @@ -517,13 +709,13 @@ class NotificationEventType(Model): """NotificationEventType. :param category: - :type category: :class:`NotificationEventTypeCategory ` + :type category: :class:`NotificationEventTypeCategory ` :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa :type color: str :param custom_subscriptions_allowed: :type custom_subscriptions_allowed: bool :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` + :type event_publisher: :class:`NotificationEventPublisher ` :param fields: :type fields: dict :param has_initiator: @@ -535,7 +727,7 @@ class NotificationEventType(Model): :param name: Gets or sets the name of this event definition. :type name: str :param roles: - :type roles: list of :class:`NotificationEventRole ` + :type roles: list of :class:`NotificationEventRole ` :param supported_scopes: Gets or sets the scopes that this event type supports :type supported_scopes: list of str :param url: Gets or sets the rest end point to get this event type details (fields, fields types) @@ -627,7 +819,7 @@ class NotificationReason(Model): :param notification_reason_type: :type notification_reason_type: object :param target_identities: - :type target_identities: list of :class:`IdentityRef ` + :type target_identities: list of :class:`IdentityRef ` """ _attribute_map = { @@ -669,7 +861,7 @@ class NotificationStatistic(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -693,7 +885,7 @@ class NotificationStatisticsQuery(Model): """NotificationStatisticsQuery. :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` """ _attribute_map = { @@ -719,7 +911,7 @@ class NotificationStatisticsQueryConditions(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -793,39 +985,41 @@ class NotificationSubscription(Model): """NotificationSubscription. :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str + :param diagnostics: Diagnostics for this subscription. + :type diagnostics: :class:`SubscriptionDiagnostics ` :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts :type extended_properties: dict :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Read-only indicators that further describe the subscription. :type flags: object :param id: Subscription identifier. :type id: str :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. :type modified_date: datetime :param permissions: The permissions the user have for this subscriptions. :type permissions: object :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. :type status: object :param status_message: Message that provides more details about the status of the subscription. :type status_message: str :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: REST API URL of the subscriotion. :type url: str :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -833,6 +1027,7 @@ class NotificationSubscription(Model): 'admin_settings': {'key': 'adminSettings', 'type': 'SubscriptionAdminSettings'}, 'channel': {'key': 'channel', 'type': 'ISubscriptionChannel'}, 'description': {'key': 'description', 'type': 'str'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'SubscriptionDiagnostics'}, 'extended_properties': {'key': 'extendedProperties', 'type': '{str}'}, 'filter': {'key': 'filter', 'type': 'ISubscriptionFilter'}, 'flags': {'key': 'flags', 'type': 'object'}, @@ -848,12 +1043,13 @@ class NotificationSubscription(Model): 'user_settings': {'key': 'userSettings', 'type': 'SubscriptionUserSettings'} } - def __init__(self, _links=None, admin_settings=None, channel=None, description=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): + def __init__(self, _links=None, admin_settings=None, channel=None, description=None, diagnostics=None, extended_properties=None, filter=None, flags=None, id=None, last_modified_by=None, modified_date=None, permissions=None, scope=None, status=None, status_message=None, subscriber=None, url=None, user_settings=None): super(NotificationSubscription, self).__init__() self._links = _links self.admin_settings = admin_settings self.channel = channel self.description = description + self.diagnostics = diagnostics self.extended_properties = extended_properties self.filter = filter self.flags = flags @@ -873,15 +1069,15 @@ class NotificationSubscriptionCreateParameters(Model): """NotificationSubscriptionCreateParameters. :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` """ _attribute_map = { @@ -907,11 +1103,11 @@ class NotificationSubscriptionTemplate(Model): :param description: :type description: str :param filter: - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param id: :type id: str :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` + :type notification_event_information: :class:`NotificationEventType ` :param type: :type type: object """ @@ -937,21 +1133,21 @@ class NotificationSubscriptionUpdateParameters(Model): """NotificationSubscriptionUpdateParameters. :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Updated status for the subscription. Typically used to enable or disable a subscription. :type status: object :param status_message: Optional message that provides more details about the updated status. :type status_message: str :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1053,13 +1249,37 @@ def __init__(self, address=None, type=None, use_custom_address=None): self.use_custom_address = use_custom_address +class SubscriptionDiagnostics(Model): + """SubscriptionDiagnostics. + + :param delivery_results: + :type delivery_results: :class:`SubscriptionTracing ` + :param delivery_tracing: + :type delivery_tracing: :class:`SubscriptionTracing ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`SubscriptionTracing ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(SubscriptionDiagnostics, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + class SubscriptionEvaluationRequest(Model): """SubscriptionEvaluationRequest. :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date :type min_events_created_date: datetime :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` """ _attribute_map = { @@ -1079,11 +1299,11 @@ class SubscriptionEvaluationResult(Model): :param evaluation_job_status: Subscription evaluation job status :type evaluation_job_status: object :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` + :type events: :class:`EventsEvaluationResult ` :param id: The requestId which is the subscription evaluation jobId :type id: str :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` + :type notifications: :class:`NotificationsEvaluationResult ` """ _attribute_map = { @@ -1153,7 +1373,7 @@ class SubscriptionQuery(Model): """SubscriptionQuery. :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` + :type conditions: list of :class:`SubscriptionQueryCondition ` :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. :type query_flags: object """ @@ -1173,7 +1393,7 @@ class SubscriptionQueryCondition(Model): """SubscriptionQueryCondition. :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Flags to specify the the type subscriptions to query for. :type flags: object :param scope: Scope that matching subscriptions must have. @@ -1206,21 +1426,52 @@ class SubscriptionScope(EventScope): :param id: Required: This is the identity of the scope for the type. :type id: str + :param name: Optional: The display name of the scope + :type name: str :param type: Required: The event specific type of a scope. :type type: str - :param name: - :type name: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, id=None, type=None, name=None): - super(SubscriptionScope, self).__init__(id=id, type=type) - self.name = name + def __init__(self, id=None, name=None, type=None): + super(SubscriptionScope, self).__init__(id=id, name=name, type=type) + + +class SubscriptionTracing(Model): + """SubscriptionTracing. + + :param enabled: + :type enabled: bool + :param end_date: Trace until the specified end date. + :type end_date: datetime + :param max_traced_entries: The maximum number of result details to trace. + :type max_traced_entries: int + :param start_date: The date and time tracing started. + :type start_date: datetime + :param traced_entries: Trace until remaining count reaches 0. + :type traced_entries: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} + } + + def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): + super(SubscriptionTracing, self).__init__() + self.enabled = enabled + self.end_date = end_date + self.max_traced_entries = max_traced_entries + self.start_date = start_date + self.traced_entries = traced_entries class SubscriptionUserSettings(Model): @@ -1239,11 +1490,51 @@ def __init__(self, opted_out=None): self.opted_out = opted_out +class UpdateSubscripitonDiagnosticsParameters(Model): + """UpdateSubscripitonDiagnosticsParameters. + + :param delivery_results: + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :param delivery_tracing: + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(UpdateSubscripitonDiagnosticsParameters, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + +class UpdateSubscripitonTracingParameters(Model): + """UpdateSubscripitonTracingParameters. + + :param enabled: + :type enabled: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'} + } + + def __init__(self, enabled=None): + super(UpdateSubscripitonTracingParameters, self).__init__() + self.enabled = enabled + + class ValueDefinition(Model): """ValueDefinition. :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` + :type data_source: list of :class:`InputValue ` :param end_point: Gets or sets the rest end point. :type end_point: str :param result_template: Gets or sets the result template. @@ -1267,15 +1558,23 @@ class VssNotificationEvent(Model): """VssNotificationEvent. :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` + :type actors: list of :class:`EventActor ` :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. :type artifact_uris: list of str :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. :type data: object :param event_type: Required: The name of the event. This event must be registered in the context it is being fired. :type event_type: str + :param expires_in: How long before the event expires and will be cleaned up. The default is to use the system default. + :type expires_in: object + :param item_id: The id of the item, artifact, extension, project, etc. + :type item_id: str + :param process_delay: How long to wait before processing this event. The default is to process immediately. + :type process_delay: object :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` + :type scopes: list of :class:`EventScope ` + :param source_event_created_time: This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised. + :type source_event_created_time: datetime """ _attribute_map = { @@ -1283,16 +1582,24 @@ class VssNotificationEvent(Model): 'artifact_uris': {'key': 'artifactUris', 'type': '[str]'}, 'data': {'key': 'data', 'type': 'object'}, 'event_type': {'key': 'eventType', 'type': 'str'}, - 'scopes': {'key': 'scopes', 'type': '[EventScope]'} + 'expires_in': {'key': 'expiresIn', 'type': 'object'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'process_delay': {'key': 'processDelay', 'type': 'object'}, + 'scopes': {'key': 'scopes', 'type': '[EventScope]'}, + 'source_event_created_time': {'key': 'sourceEventCreatedTime', 'type': 'iso-8601'} } - def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, scopes=None): + def __init__(self, actors=None, artifact_uris=None, data=None, event_type=None, expires_in=None, item_id=None, process_delay=None, scopes=None, source_event_created_time=None): super(VssNotificationEvent, self).__init__() self.actors = actors self.artifact_uris = artifact_uris self.data = data self.event_type = event_type + self.expires_in = expires_in + self.item_id = item_id + self.process_delay = process_delay self.scopes = scopes + self.source_event_created_time = source_event_created_time class ArtifactFilter(BaseSubscriptionFilter): @@ -1332,7 +1639,7 @@ class FieldInputValues(InputValues): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1342,7 +1649,7 @@ class FieldInputValues(InputValues): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` :param operators: :type operators: str """ @@ -1371,7 +1678,7 @@ class FieldValuesQuery(InputValuesQuery): :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object :param input_values: - :type input_values: list of :class:`FieldInputValues ` + :type input_values: list of :class:`FieldInputValues ` :param scope: :type scope: str """ @@ -1395,16 +1702,23 @@ def __init__(self, current_values=None, resource=None, input_values=None, scope= 'EventActor', 'EventScope', 'EventsEvaluationResult', + 'EventTransformRequest', + 'EventTransformResult', 'ExpressionFilterClause', 'ExpressionFilterGroup', 'ExpressionFilterModel', + 'GraphSubjectBase', 'IdentityRef', + 'INotificationDiagnosticLog', 'InputValue', 'InputValues', 'InputValuesError', 'InputValuesQuery', 'ISubscriptionChannel', 'ISubscriptionFilter', + 'NotificationAdminSettings', + 'NotificationAdminSettingsUpdateParameters', + 'NotificationDiagnosticLogMessage', 'NotificationEventField', 'NotificationEventFieldOperator', 'NotificationEventFieldType', @@ -1428,6 +1742,7 @@ def __init__(self, current_values=None, resource=None, input_values=None, scope= 'ReferenceLinks', 'SubscriptionAdminSettings', 'SubscriptionChannelWithAddress', + 'SubscriptionDiagnostics', 'SubscriptionEvaluationRequest', 'SubscriptionEvaluationResult', 'SubscriptionEvaluationSettings', @@ -1435,7 +1750,10 @@ def __init__(self, current_values=None, resource=None, input_values=None, scope= 'SubscriptionQuery', 'SubscriptionQueryCondition', 'SubscriptionScope', + 'SubscriptionTracing', 'SubscriptionUserSettings', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', 'ValueDefinition', 'VssNotificationEvent', 'ArtifactFilter', diff --git a/azure-devops/azure/devops/v4_1/notification/notification_client.py b/azure-devops/azure/devops/v5_1/notification/notification_client.py similarity index 81% rename from azure-devops/azure/devops/v4_1/notification/notification_client.py rename to azure-devops/azure/devops/v5_1/notification/notification_client.py index 58c162ca..e113a964 100644 --- a/azure-devops/azure/devops/v4_1/notification/notification_client.py +++ b/azure-devops/azure/devops/v5_1/notification/notification_client.py @@ -46,7 +46,7 @@ def list_logs(self, source, entry_id=None, start_time=None, end_time=None): query_parameters['endTime'] = self._serialize.query('end_time', end_time, 'iso-8601') response = self._send(http_method='GET', location_id='991842f3-eb16-4aea-ac81-81353ef2b75c', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[INotificationDiagnosticLog]', self._unwrap_collection(response)) @@ -55,23 +55,23 @@ def get_subscription_diagnostics(self, subscription_id): """GetSubscriptionDiagnostics. [Preview API] :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') response = self._send(http_method='GET', location_id='20f1929d-4be7-4c2e-a74e-d47640ff3418', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('SubscriptionDiagnostics', response) def update_subscription_diagnostics(self, update_parameters, subscription_id): """UpdateSubscriptionDiagnostics. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -79,7 +79,7 @@ def update_subscription_diagnostics(self, update_parameters, subscription_id): content = self._serialize.body(update_parameters, 'UpdateSubscripitonDiagnosticsParameters') response = self._send(http_method='PUT', location_id='20f1929d-4be7-4c2e-a74e-d47640ff3418', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('SubscriptionDiagnostics', response) @@ -87,13 +87,13 @@ def update_subscription_diagnostics(self, update_parameters, subscription_id): def publish_event(self, notification_event): """PublishEvent. [Preview API] Publish an event. - :param :class:` ` notification_event: - :rtype: :class:` ` + :param :class:` ` notification_event: + :rtype: :class:` ` """ content = self._serialize.body(notification_event, 'VssNotificationEvent') response = self._send(http_method='POST', location_id='14c57b7a-c0e6-4555-9f51-e067188fdd8e', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('VssNotificationEvent', response) @@ -101,14 +101,14 @@ def get_event_type(self, event_type): """GetEventType. [Preview API] Get a specific event type. :param str event_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if event_type is not None: route_values['eventType'] = self._serialize.url('event_type', event_type, 'str') response = self._send(http_method='GET', location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('NotificationEventType', response) @@ -123,31 +123,54 @@ def list_event_types(self, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[NotificationEventType]', self._unwrap_collection(response)) + def get_settings(self): + """GetSettings. + [Preview API] + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='cbe076d8-2803-45ff-8d8d-44653686ea2a', + version='5.1-preview.1') + return self._deserialize('NotificationAdminSettings', response) + + def update_settings(self, update_parameters): + """UpdateSettings. + [Preview API] + :param :class:` ` update_parameters: + :rtype: :class:` ` + """ + content = self._serialize.body(update_parameters, 'NotificationAdminSettingsUpdateParameters') + response = self._send(http_method='PATCH', + location_id='cbe076d8-2803-45ff-8d8d-44653686ea2a', + version='5.1-preview.1', + content=content) + return self._deserialize('NotificationAdminSettings', response) + def get_subscriber(self, subscriber_id): """GetSubscriber. [Preview API] :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: route_values['subscriberId'] = self._serialize.url('subscriber_id', subscriber_id, 'str') response = self._send(http_method='GET', location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('NotificationSubscriber', response) def update_subscriber(self, update_parameters, subscriber_id): """UpdateSubscriber. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscriber_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscriber_id is not None: @@ -155,7 +178,7 @@ def update_subscriber(self, update_parameters, subscriber_id): content = self._serialize.body(update_parameters, 'NotificationSubscriberUpdateParameters') response = self._send(http_method='PATCH', location_id='4d5caff1-25ba-430b-b808-7a1f352cc197', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('NotificationSubscriber', response) @@ -163,26 +186,26 @@ def update_subscriber(self, update_parameters, subscriber_id): def query_subscriptions(self, subscription_query): """QuerySubscriptions. [Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions. - :param :class:` ` subscription_query: + :param :class:` ` subscription_query: :rtype: [NotificationSubscription] """ content = self._serialize.body(subscription_query, 'SubscriptionQuery') response = self._send(http_method='POST', location_id='6864db85-08c0-4006-8e8e-cc1bebe31675', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def create_subscription(self, create_parameters): """CreateSubscription. [Preview API] Create a new subscription. - :param :class:` ` create_parameters: - :rtype: :class:` ` + :param :class:` ` create_parameters: + :rtype: :class:` ` """ content = self._serialize.body(create_parameters, 'NotificationSubscriptionCreateParameters') response = self._send(http_method='POST', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.1-preview.1', + version='5.1-preview.1', content=content) return self._deserialize('NotificationSubscription', response) @@ -196,7 +219,7 @@ def delete_subscription(self, subscription_id): route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') self._send(http_method='DELETE', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_subscription(self, subscription_id, query_flags=None): @@ -204,7 +227,7 @@ def get_subscription(self, subscription_id, query_flags=None): [Preview API] Get a notification subscription by its ID. :param str subscription_id: :param str query_flags: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -214,7 +237,7 @@ def get_subscription(self, subscription_id, query_flags=None): query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') response = self._send(http_method='GET', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('NotificationSubscription', response) @@ -237,16 +260,16 @@ def list_subscriptions(self, target_id=None, ids=None, query_flags=None): query_parameters['queryFlags'] = self._serialize.query('query_flags', query_flags, 'str') response = self._send(http_method='GET', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.1-preview.1', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[NotificationSubscription]', self._unwrap_collection(response)) def update_subscription(self, update_parameters, subscription_id): """UpdateSubscription. [Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more. - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -254,7 +277,7 @@ def update_subscription(self, update_parameters, subscription_id): content = self._serialize.body(update_parameters, 'NotificationSubscriptionUpdateParameters') response = self._send(http_method='PATCH', location_id='70f911d6-abac-488c-85b3-a206bf57e165', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('NotificationSubscription', response) @@ -266,16 +289,16 @@ def get_subscription_templates(self): """ response = self._send(http_method='GET', location_id='fa5d24ba-7484-4f3d-888d-4ec6b1974082', - version='4.1-preview.1') + version='5.1-preview.1') return self._deserialize('[NotificationSubscriptionTemplate]', self._unwrap_collection(response)) def update_subscription_user_settings(self, user_settings, subscription_id, user_id): """UpdateSubscriptionUserSettings. [Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. - :param :class:` ` user_settings: + :param :class:` ` user_settings: :param str subscription_id: :param str user_id: ID of the user - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -285,7 +308,7 @@ def update_subscription_user_settings(self, user_settings, subscription_id, user content = self._serialize.body(user_settings, 'SubscriptionUserSettings') response = self._send(http_method='PUT', location_id='ed5a3dff-aeb5-41b1-b4f7-89e66e58b62e', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('SubscriptionUserSettings', response) diff --git a/azure-devops/azure/devops/v5_1/npm/__init__.py b/azure-devops/azure/devops/v5_1/npm/__init__.py new file mode 100644 index 00000000..c51d5fcb --- /dev/null +++ b/azure-devops/azure/devops/v5_1/npm/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchDeprecateData', + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NpmPackagesBatchRequest', + 'NpmPackageVersionDeletionState', + 'NpmRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', +] diff --git a/azure-devops/azure/devops/v5_1/npm/models.py b/azure-devops/azure/devops/v5_1/npm/models.py new file mode 100644 index 00000000..252da241 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/npm/models.py @@ -0,0 +1,272 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class NpmPackagesBatchRequest(Model): + """NpmPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(NpmPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class NpmPackageVersionDeletionState(Model): + """NpmPackageVersionDeletionState. + + :param name: Name of the package. + :type name: str + :param unpublished_date: UTC date the package was unpublished. + :type unpublished_date: datetime + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, name=None, unpublished_date=None, version=None): + super(NpmPackageVersionDeletionState, self).__init__() + self.name = name + self.unpublished_date = unpublished_date + self.version = version + + +class NpmRecycleBinPackageVersionDetails(Model): + """NpmRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(NpmRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deprecate_message: Deprecated message, if any, for the package. + :type deprecate_message: str + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. + :type source_chain: list of :class:`UpstreamSourceInfo ` + :param unpublished_date: If and when the package was deleted. + :type unpublished_date: datetime + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, + 'unpublished_date': {'key': 'unpublishedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deprecate_message=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, unpublished_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deprecate_message = deprecate_message + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.source_chain = source_chain + self.unpublished_date = unpublished_date + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param deprecate_message: Indicates the deprecate message of a package version + :type deprecate_message: str + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'deprecate_message': {'key': 'deprecateMessage', 'type': 'str'}, + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, deprecate_message=None, views=None): + super(PackageVersionDetails, self).__init__() + self.deprecate_message = deprecate_message + self.views = views + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UpstreamSourceInfo(Model): + """UpstreamSourceInfo. + + :param id: Identity of the upstream source. + :type id: str + :param location: Locator for connecting to the upstream source. + :type location: str + :param name: Display name. + :type name: str + :param source_type: Source type, such as Public or Internal. + :type source_type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_type': {'key': 'sourceType', 'type': 'object'} + } + + def __init__(self, id=None, location=None, name=None, source_type=None): + super(UpstreamSourceInfo, self).__init__() + self.id = id + self.location = location + self.name = name + self.source_type = source_type + + +class BatchDeprecateData(BatchOperationData): + """BatchDeprecateData. + + :param message: Deprecate message that will be added to packages + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(BatchDeprecateData, self).__init__() + self.message = message + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NpmPackagesBatchRequest', + 'NpmPackageVersionDeletionState', + 'NpmRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', + 'BatchDeprecateData', +] diff --git a/azure-devops/azure/devops/v4_1/npm/npm_client.py b/azure-devops/azure/devops/v5_1/npm/npm_client.py similarity index 76% rename from azure-devops/azure/devops/v4_1/npm/npm_client.py rename to azure-devops/azure/devops/v5_1/npm/npm_client.py index 915622d8..8d4ccec8 100644 --- a/azure-devops/azure/devops/v4_1/npm/npm_client.py +++ b/azure-devops/azure/devops/v5_1/npm/npm_client.py @@ -45,7 +45,7 @@ def get_content_scoped_package(self, feed_id, package_scope, unscoped_package_na route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='09a4eafd-123a-495c-979c-0eda7bdb9a14', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -56,10 +56,10 @@ def get_content_scoped_package(self, feed_id, package_scope, unscoped_package_na def get_content_unscoped_package(self, feed_id, package_name, package_version, **kwargs): """GetContentUnscopedPackage. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: + [Preview API] Get an unscoped npm package. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. :rtype: object """ route_values = {} @@ -71,7 +71,7 @@ def get_content_unscoped_package(self, feed_id, package_name, package_version, * route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='75caa482-cb1e-47cd-9f2c-c048a4b7a43e', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -83,8 +83,8 @@ def get_content_unscoped_package(self, feed_id, package_name, package_version, * def update_packages(self, batch_request, feed_id): """UpdatePackages. [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. - :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. - :param str feed_id: Feed which contains the packages to update. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param str feed_id: Name or ID of the feed. """ route_values = {} if feed_id is not None: @@ -92,17 +92,17 @@ def update_packages(self, batch_request, feed_id): content = self._serialize.body(batch_request, 'NpmPackagesBatchRequest') self._send(http_method='POST', location_id='06f34005-bbb2-41f4-88f5-23e03a99bb12', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version, **kwargs): """GetReadmeScopedPackage. - [Preview API] - :param str feed_id: - :param str package_scope: - :param str unscoped_package_name: - :param str package_version: + [Preview API] Get the Readme for a package version with an npm scope. + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope\name) + :param str unscoped_package_name: Name of the package (the 'name' part of @scope\name) + :param str package_version: Version of the package. :rtype: object """ route_values = {} @@ -116,7 +116,7 @@ def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_nam route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='6d4db777-7e4a-43b2-afad-779a1d197301', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='text/plain') if "callback" in kwargs: @@ -127,10 +127,10 @@ def get_readme_scoped_package(self, feed_id, package_scope, unscoped_package_nam def get_readme_unscoped_package(self, feed_id, package_name, package_version, **kwargs): """GetReadmeUnscopedPackage. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: + [Preview API] Get the Readme for a package version that has no npm scope. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. :rtype: object """ route_values = {} @@ -142,7 +142,7 @@ def get_readme_unscoped_package(self, feed_id, package_name, package_version, ** route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='1099a396-b310-41d4-a4b6-33d134ce3fcf', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='text/plain') if "callback" in kwargs: @@ -153,11 +153,11 @@ def get_readme_unscoped_package(self, feed_id, package_name, package_version, ** def delete_scoped_package_version_from_recycle_bin(self, feed_id, package_scope, unscoped_package_name, package_version): """DeleteScopedPackageVersionFromRecycleBin. - [Preview API] - :param str feed_id: - :param str package_scope: - :param str unscoped_package_name: - :param str package_version: + [Preview API] Delete a package version with an npm scope from the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. """ route_values = {} if feed_id is not None: @@ -170,17 +170,17 @@ def delete_scoped_package_version_from_recycle_bin(self, feed_id, package_scope, route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') self._send(http_method='DELETE', location_id='220f45eb-94a5-432c-902a-5b8c6372e415', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_scoped_package_version_metadata_from_recycle_bin(self, feed_id, package_scope, unscoped_package_name, package_version): """GetScopedPackageVersionMetadataFromRecycleBin. - [Preview API] - :param str feed_id: - :param str package_scope: - :param str unscoped_package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] Get information about a scoped package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name) + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -193,18 +193,18 @@ def get_scoped_package_version_metadata_from_recycle_bin(self, feed_id, package_ route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='220f45eb-94a5-432c-902a-5b8c6372e415', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('NpmPackageVersionDeletionState', response) def restore_scoped_package_version_from_recycle_bin(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): """RestoreScopedPackageVersionFromRecycleBin. - [Preview API] - :param :class:` ` package_version_details: - :param str feed_id: - :param str package_scope: - :param str unscoped_package_name: - :param str package_version: + [Preview API] Restore a package version with an npm scope from the recycle bin to its feed. + :param :class:` ` package_version_details: + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. """ route_values = {} if feed_id is not None: @@ -218,16 +218,16 @@ def restore_scoped_package_version_from_recycle_bin(self, package_version_detail content = self._serialize.body(package_version_details, 'NpmRecycleBinPackageVersionDetails') self._send(http_method='PATCH', location_id='220f45eb-94a5-432c-902a-5b8c6372e415', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): """DeletePackageVersionFromRecycleBin. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: + [Preview API] Delete a package version without an npm scope from the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. """ route_values = {} if feed_id is not None: @@ -238,16 +238,16 @@ def delete_package_version_from_recycle_bin(self, feed_id, package_name, package route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') self._send(http_method='DELETE', location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): """GetPackageVersionMetadataFromRecycleBin. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] Get information about an unscoped package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -258,17 +258,17 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('NpmPackageVersionDeletionState', response) def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. - [Preview API] - :param :class:` ` package_version_details: - :param str feed_id: - :param str package_name: - :param str package_version: + [Preview API] Restore a package version without an npm scope from the recycle bin to its feed. + :param :class:` ` package_version_details: + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. """ route_values = {} if feed_id is not None: @@ -280,18 +280,18 @@ def restore_package_version_from_recycle_bin(self, package_version_details, feed content = self._serialize.body(package_version_details, 'NpmRecycleBinPackageVersionDetails') self._send(http_method='PATCH', location_id='63a4f31f-e92b-4ee4-bf92-22d485e73bef', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) def get_scoped_package_info(self, feed_id, package_scope, unscoped_package_name, package_version): """GetScopedPackageInfo. - [Preview API] - :param str feed_id: - :param str package_scope: - :param str unscoped_package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] Get information about a scoped package version (such as @scope/name). + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -304,18 +304,18 @@ def get_scoped_package_info(self, feed_id, package_scope, unscoped_package_name, route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Package', response) def unpublish_scoped_package(self, feed_id, package_scope, unscoped_package_name, package_version): """UnpublishScopedPackage. - [Preview API] - :param str feed_id: - :param str package_scope: - :param str unscoped_package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] Unpublish a scoped package version (such as @scope/name). + :param str feed_id: Name or ID of the feed. + :param str package_scope: Scope of the package (the 'scope' part of @scope/name). + :param str unscoped_package_name: Name of the package (the 'name' part of @scope/name). + :param str package_version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -328,19 +328,19 @@ def unpublish_scoped_package(self, feed_id, package_scope, unscoped_package_name route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='DELETE', location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Package', response) def update_scoped_package(self, package_version_details, feed_id, package_scope, unscoped_package_name, package_version): """UpdateScopedPackage. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_scope: :param str unscoped_package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -354,18 +354,18 @@ def update_scoped_package(self, package_version_details, feed_id, package_scope, content = self._serialize.body(package_version_details, 'PackageVersionDetails') response = self._send(http_method='PATCH', location_id='e93d9ec3-4022-401e-96b0-83ea5d911e09', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Package', response) def get_package_info(self, feed_id, package_name, package_version): """GetPackageInfo. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] Get information about an unscoped package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -376,17 +376,17 @@ def get_package_info(self, feed_id, package_name, package_version): route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='GET', location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Package', response) def unpublish_package(self, feed_id, package_name, package_version): """UnpublishPackage. - [Preview API] - :param str feed_id: - :param str package_name: - :param str package_version: - :rtype: :class:` ` + [Preview API] Unpublish an unscoped package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -397,18 +397,18 @@ def unpublish_package(self, feed_id, package_name, package_version): route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') response = self._send(http_method='DELETE', location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Package', response) def update_package(self, package_version_details, feed_id, package_name, package_version): """UpdatePackage. [Preview API] - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: :param str package_name: :param str package_version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -420,7 +420,7 @@ def update_package(self, package_version_details, feed_id, package_name, package content = self._serialize.body(package_version_details, 'PackageVersionDetails') response = self._send(http_method='PATCH', location_id='ed579d62-67c9-4271-be66-9b029af5bcf9', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Package', response) diff --git a/azure-devops/azure/devops/v5_1/nuGet/__init__.py b/azure-devops/azure/devops/v5_1/nuGet/__init__.py new file mode 100644 index 00000000..3361f2be --- /dev/null +++ b/azure-devops/azure/devops/v5_1/nuGet/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchListData', + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NuGetPackagesBatchRequest', + 'NuGetPackageVersionDeletionState', + 'NuGetRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', +] diff --git a/azure-devops/azure/devops/v5_1/nuGet/models.py b/azure-devops/azure/devops/v5_1/nuGet/models.py new file mode 100644 index 00000000..97387f2f --- /dev/null +++ b/azure-devops/azure/devops/v5_1/nuGet/models.py @@ -0,0 +1,268 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class NuGetPackagesBatchRequest(Model): + """NuGetPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(NuGetPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class NuGetPackageVersionDeletionState(Model): + """NuGetPackageVersionDeletionState. + + :param deleted_date: Utc date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(NuGetPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +class NuGetRecycleBinPackageVersionDetails(Model): + """NuGetRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(NuGetRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. + :type deleted_date: datetime + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. + :type source_chain: list of :class:`UpstreamSourceInfo ` + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.source_chain = source_chain + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param listed: Indicates the listing state of a package + :type listed: bool + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'}, + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, listed=None, views=None): + super(PackageVersionDetails, self).__init__() + self.listed = listed + self.views = views + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UpstreamSourceInfo(Model): + """UpstreamSourceInfo. + + :param id: Identity of the upstream source. + :type id: str + :param location: Locator for connecting to the upstream source. + :type location: str + :param name: Display name. + :type name: str + :param source_type: Source type, such as Public or Internal. + :type source_type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_type': {'key': 'sourceType', 'type': 'object'} + } + + def __init__(self, id=None, location=None, name=None, source_type=None): + super(UpstreamSourceInfo, self).__init__() + self.id = id + self.location = location + self.name = name + self.source_type = source_type + + +class BatchListData(BatchOperationData): + """BatchListData. + + :param listed: The desired listed status for the package versions. + :type listed: bool + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'} + } + + def __init__(self, listed=None): + super(BatchListData, self).__init__() + self.listed = listed + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NuGetPackagesBatchRequest', + 'NuGetPackageVersionDeletionState', + 'NuGetRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', + 'BatchListData', +] diff --git a/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py b/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py new file mode 100644 index 00000000..e037e22f --- /dev/null +++ b/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py @@ -0,0 +1,200 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class NuGetClient(Client): + """NuGet + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(NuGetClient, 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 = 'b3be7473-68ea-4a81-bfc7-9530baaa19ad' + + def download_package(self, feed_id, package_name, package_version, source_protocol_version=None): + """DownloadPackage. + [Preview API] Download a package version directly. This API is intended for manual UI download options, not for programmatic access and scripting. You may be heavily throttled if accessing this api for scripting purposes. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param str source_protocol_version: Unused + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if source_protocol_version is not None: + query_parameters['sourceProtocolVersion'] = self._serialize.query('source_protocol_version', source_protocol_version, 'str') + response = self._send(http_method='GET', + location_id='6ea81b8c-7386-490b-a71f-6cf23c80b388', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_package_versions(self, batch_request, feed_id): + """UpdatePackageVersions. + [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param str feed_id: Name or ID of the feed. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(batch_request, 'NuGetPackagesBatchRequest') + self._send(http_method='POST', + location_id='00c58ea7-d55f-49de-b59f-983533ae11dc', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Delete a package version from a feed's recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='5.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] View a package version's deletion/recycled status + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('NuGetPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version from a feed's recycle bin back into the active feed. + :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'NuGetRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version(self, feed_id, package_name, package_version): + """DeletePackageVersion. + [Preview API] Send a package version from the feed to its paired recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package to delete. + :param str package_version: Version of the package to delete. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): + """GetPackageVersion. + [Preview API] Get information about a package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param bool show_deleted: True to include deleted packages in the response. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def update_package_version(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackageVersion. + [Preview API] Set mutable state on a package version. + :param :class:` ` package_version_details: New state to apply to the referenced package. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package to update. + :param str package_version: Version of the package to update. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + self._send(http_method='PATCH', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='5.1-preview.1', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/v4_0/operations/__init__.py b/azure-devops/azure/devops/v5_1/operations/__init__.py similarity index 81% rename from azure-devops/azure/devops/v4_0/operations/__init__.py rename to azure-devops/azure/devops/v5_1/operations/__init__.py index 0dfc0b11..6bc40b46 100644 --- a/azure-devops/azure/devops/v4_0/operations/__init__.py +++ b/azure-devops/azure/devops/v5_1/operations/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -11,5 +11,6 @@ __all__ = [ 'Operation', 'OperationReference', + 'OperationResultReference', 'ReferenceLinks', ] diff --git a/azure-devops/azure/devops/v4_0/operations/models.py b/azure-devops/azure/devops/v5_1/operations/models.py similarity index 50% rename from azure-devops/azure/devops/v4_0/operations/models.py rename to azure-devops/azure/devops/v5_1/operations/models.py index 886e89ae..79715934 100644 --- a/azure-devops/azure/devops/v4_0/operations/models.py +++ b/azure-devops/azure/devops/v5_1/operations/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -12,27 +12,47 @@ class OperationReference(Model): """OperationReference. - :param id: The identifier for this operation. + :param id: Unique identifier for the operation. :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str :param status: The current status of the operation. :type status: object - :param url: Url to get the full object. + :param url: URL to get the full operation object. :type url: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, id=None, status=None, url=None): + def __init__(self, id=None, plugin_id=None, status=None, url=None): super(OperationReference, self).__init__() self.id = id + self.plugin_id = plugin_id self.status = status self.url = url +class OperationResultReference(Model): + """OperationResultReference. + + :param result_url: URL to the operation result. + :type result_url: str + """ + + _attribute_map = { + 'result_url': {'key': 'resultUrl', 'type': 'str'} + } + + def __init__(self, result_url=None): + super(OperationResultReference, self).__init__() + self.result_url = result_url + + class ReferenceLinks(Model): """ReferenceLinks. @@ -52,34 +72,46 @@ def __init__(self, links=None): class Operation(OperationReference): """Operation. - :param id: The identifier for this operation. + :param id: Unique identifier for the operation. :type id: str + :param plugin_id: Unique identifier for the plugin. + :type plugin_id: str :param status: The current status of the operation. :type status: object - :param url: Url to get the full object. + :param url: URL to get the full operation object. :type url: str - :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` - :param result_message: The result message which is generally not set. + :param _links: Links to other related objects. + :type _links: :class:`ReferenceLinks ` + :param detailed_message: Detailed messaged about the status of an operation. + :type detailed_message: str + :param result_message: Result message for an operation. :type result_message: str + :param result_url: URL to the operation result. + :type result_url: :class:`OperationResultReference ` """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'plugin_id': {'key': 'pluginId', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'}, 'url': {'key': 'url', 'type': 'str'}, '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'result_message': {'key': 'resultMessage', 'type': 'str'} + 'detailed_message': {'key': 'detailedMessage', 'type': 'str'}, + 'result_message': {'key': 'resultMessage', 'type': 'str'}, + 'result_url': {'key': 'resultUrl', 'type': 'OperationResultReference'} } - def __init__(self, id=None, status=None, url=None, _links=None, result_message=None): - super(Operation, self).__init__(id=id, status=status, url=url) + def __init__(self, id=None, plugin_id=None, status=None, url=None, _links=None, detailed_message=None, result_message=None, result_url=None): + super(Operation, self).__init__(id=id, plugin_id=plugin_id, status=status, url=url) self._links = _links + self.detailed_message = detailed_message self.result_message = result_message + self.result_url = result_url __all__ = [ 'OperationReference', + 'OperationResultReference', 'ReferenceLinks', 'Operation', ] diff --git a/azure-devops/azure/devops/v4_0/operations/operations_client.py b/azure-devops/azure/devops/v5_1/operations/operations_client.py similarity index 65% rename from azure-devops/azure/devops/v4_0/operations/operations_client.py rename to azure-devops/azure/devops/v5_1/operations/operations_client.py index 9e95d5f4..4421e686 100644 --- a/azure-devops/azure/devops/v4_0/operations/operations_client.py +++ b/azure-devops/azure/devops/v5_1/operations/operations_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -25,18 +25,23 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = None - def get_operation(self, operation_id): + def get_operation(self, operation_id, plugin_id=None): """GetOperation. - Gets an operation from the the Id. - :param str operation_id: The id for the operation. - :rtype: :class:` ` + [Preview API] Gets an operation from the the operationId using the given pluginId. + :param str operation_id: The ID for the operation. + :param str plugin_id: The ID for the plugin. + :rtype: :class:` ` """ route_values = {} if operation_id is not None: route_values['operationId'] = self._serialize.url('operation_id', operation_id, 'str') + query_parameters = {} + if plugin_id is not None: + query_parameters['pluginId'] = self._serialize.query('plugin_id', plugin_id, 'str') response = self._send(http_method='GET', location_id='9a1b74b4-2ca8-4a9f-8470-c2f2e6fdc949', - version='4.0', - route_values=route_values) + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) return self._deserialize('Operation', response) diff --git a/azure-devops/azure/devops/v4_0/policy/__init__.py b/azure-devops/azure/devops/v5_1/policy/__init__.py similarity index 85% rename from azure-devops/azure/devops/v4_0/policy/__init__.py rename to azure-devops/azure/devops/v5_1/policy/__init__.py index bfc12bc8..cbcfed09 100644 --- a/azure-devops/azure/devops/v4_0/policy/__init__.py +++ b/azure-devops/azure/devops/v5_1/policy/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,6 +9,7 @@ from .models import * __all__ = [ + 'GraphSubjectBase', 'IdentityRef', 'PolicyConfiguration', 'PolicyConfigurationRef', diff --git a/azure-devops/azure/devops/v4_0/policy/models.py b/azure-devops/azure/devops/v5_1/policy/models.py similarity index 52% rename from azure-devops/azure/devops/v4_0/policy/models.py rename to azure-devops/azure/devops/v5_1/policy/models.py index 570a1938..2ac99511 100644 --- a/azure-devops/azure/devops/v4_0/policy/models.py +++ b/azure-devops/azure/devops/v5_1/policy/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,66 +9,102 @@ from msrest.serialization import Model -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class PolicyConfigurationRef(Model): """PolicyConfigurationRef. - :param id: + :param id: The policy configuration ID. :type id: int - :param type: - :type type: :class:`PolicyTypeRef ` - :param url: + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -88,21 +124,21 @@ def __init__(self, id=None, type=None, url=None): class PolicyEvaluationRecord(Model): """PolicyEvaluationRecord. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param artifact_id: + :param _links: Links to other related objects + :type _links: :class:`ReferenceLinks ` + :param artifact_id: A string which uniquely identifies the target of a policy evaluation. :type artifact_id: str - :param completed_date: + :param completed_date: Time when this policy finished evaluating on this pull request. :type completed_date: datetime - :param configuration: - :type configuration: :class:`PolicyConfiguration ` - :param context: - :type context: :class:`object ` - :param evaluation_id: + :param configuration: Contains all configuration data for the policy which is being evaluated. + :type configuration: :class:`PolicyConfiguration ` + :param context: Internal context data of this policy evaluation. + :type context: :class:`object ` + :param evaluation_id: Guid which uniquely identifies this evaluation record (one policy running on one pull request). :type evaluation_id: str - :param started_date: + :param started_date: Time when this policy was first evaluated on this pull request. :type started_date: datetime - :param status: + :param status: Status of the policy (Running, Approved, Failed, etc.) :type status: object """ @@ -132,11 +168,11 @@ def __init__(self, _links=None, artifact_id=None, completed_date=None, configura class PolicyTypeRef(Model): """PolicyTypeRef. - :param display_name: + :param display_name: Display name of the policy type. :type display_name: str - :param id: + :param id: The policy type ID. :type id: str - :param url: + :param url: The URL where the policy type can be retrieved. :type url: str """ @@ -172,13 +208,13 @@ def __init__(self, links=None): class VersionedPolicyConfigurationRef(PolicyConfigurationRef): """VersionedPolicyConfigurationRef. - :param id: + :param id: The policy configuration ID. :type id: int - :param type: - :type type: :class:`PolicyTypeRef ` - :param url: + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. :type url: str - :param revision: + :param revision: The policy configuration revision ID. :type revision: int """ @@ -197,28 +233,28 @@ def __init__(self, id=None, type=None, url=None, revision=None): class PolicyConfiguration(VersionedPolicyConfigurationRef): """PolicyConfiguration. - :param id: + :param id: The policy configuration ID. :type id: int - :param type: - :type type: :class:`PolicyTypeRef ` - :param url: + :param type: The policy configuration type. + :type type: :class:`PolicyTypeRef ` + :param url: The URL where the policy configuration can be retrieved. :type url: str - :param revision: + :param revision: The policy configuration revision ID. :type revision: int - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_date: + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param created_by: A reference to the identity that created the policy. + :type created_by: :class:`IdentityRef ` + :param created_date: The date and time when the policy was created. :type created_date: datetime - :param is_blocking: + :param is_blocking: Indicates whether the policy is blocking. :type is_blocking: bool - :param is_deleted: + :param is_deleted: Indicates whether the policy has been (soft) deleted. :type is_deleted: bool - :param is_enabled: + :param is_enabled: Indicates whether the policy is enabled. :type is_enabled: bool - :param settings: - :type settings: :class:`object ` + :param settings: The policy configuration settings. + :type settings: :class:`object ` """ _attribute_map = { @@ -249,15 +285,15 @@ def __init__(self, id=None, type=None, url=None, revision=None, _links=None, cre class PolicyType(PolicyTypeRef): """PolicyType. - :param display_name: + :param display_name: Display name of the policy type. :type display_name: str - :param id: + :param id: The policy type ID. :type id: str - :param url: + :param url: The URL where the policy type can be retrieved. :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :param _links: The links to other objects related to this object. + :type _links: :class:`ReferenceLinks ` + :param description: Detailed description of the policy type. :type description: str """ @@ -276,6 +312,7 @@ def __init__(self, display_name=None, id=None, url=None, _links=None, descriptio __all__ = [ + 'GraphSubjectBase', 'IdentityRef', 'PolicyConfigurationRef', 'PolicyEvaluationRecord', diff --git a/azure-devops/azure/devops/v4_0/policy/policy_client.py b/azure-devops/azure/devops/v5_1/policy/policy_client.py similarity index 73% rename from azure-devops/azure/devops/v4_0/policy/policy_client.py rename to azure-devops/azure/devops/v5_1/policy/policy_client.py index 2819fabe..d3690f95 100644 --- a/azure-devops/azure/devops/v4_0/policy/policy_client.py +++ b/azure-devops/azure/devops/v5_1/policy/policy_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,10 +27,11 @@ def __init__(self, base_url=None, creds=None): def create_policy_configuration(self, configuration, project, configuration_id=None): """CreatePolicyConfiguration. - :param :class:` ` configuration: + [Preview API] Create a policy configuration of a given policy type. + :param :class:` ` configuration: The policy configuration to create. :param str project: Project ID or project name :param int configuration_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -40,15 +41,16 @@ def create_policy_configuration(self, configuration, project, configuration_id=N content = self._serialize.body(configuration, 'PolicyConfiguration') response = self._send(http_method='POST', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('PolicyConfiguration', response) def delete_policy_configuration(self, project, configuration_id): """DeletePolicyConfiguration. + [Preview API] Delete a policy configuration by its ID. :param str project: Project ID or project name - :param int configuration_id: + :param int configuration_id: ID of the policy configuration to delete. """ route_values = {} if project is not None: @@ -57,14 +59,15 @@ def delete_policy_configuration(self, project, configuration_id): route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') self._send(http_method='DELETE', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.0', + version='5.1-preview.1', route_values=route_values) def get_policy_configuration(self, project, configuration_id): """GetPolicyConfiguration. + [Preview API] Get a policy configuration by its ID. :param str project: Project ID or project name - :param int configuration_id: - :rtype: :class:` ` + :param int configuration_id: ID of the policy configuration + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -73,14 +76,16 @@ def get_policy_configuration(self, project, configuration_id): route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') response = self._send(http_method='GET', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('PolicyConfiguration', response) - def get_policy_configurations(self, project, scope=None): + def get_policy_configurations(self, project, scope=None, policy_type=None): """GetPolicyConfigurations. + [Preview API] Get a list of policy configurations in a project. :param str project: Project ID or project name - :param str scope: + :param str scope: [Provided for legacy reasons] The scope on which a subset of policies is defined. + :param str policy_type: Filter returned policies to only this type :rtype: [PolicyConfiguration] """ route_values = {} @@ -89,19 +94,22 @@ def get_policy_configurations(self, project, scope=None): query_parameters = {} if scope is not None: query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + if policy_type is not None: + query_parameters['policyType'] = self._serialize.query('policy_type', policy_type, 'str') response = self._send(http_method='GET', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) def update_policy_configuration(self, configuration, project, configuration_id): """UpdatePolicyConfiguration. - :param :class:` ` configuration: + [Preview API] Update a policy configuration by its ID. + :param :class:` ` configuration: The policy configuration to update. :param str project: Project ID or project name - :param int configuration_id: - :rtype: :class:` ` + :param int configuration_id: ID of the existing policy configuration to be updated. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -111,17 +119,17 @@ def update_policy_configuration(self, configuration, project, configuration_id): content = self._serialize.body(configuration, 'PolicyConfiguration') response = self._send(http_method='PUT', location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('PolicyConfiguration', response) def get_policy_evaluation(self, project, evaluation_id): """GetPolicyEvaluation. - [Preview API] + [Preview API] Gets the present evaluation state of a policy. :param str project: Project ID or project name - :param str evaluation_id: - :rtype: :class:` ` + :param str evaluation_id: ID of the policy evaluation to be retrieved. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -130,16 +138,16 @@ def get_policy_evaluation(self, project, evaluation_id): route_values['evaluationId'] = self._serialize.url('evaluation_id', evaluation_id, 'str') response = self._send(http_method='GET', location_id='46aecb7a-5d2c-4647-897b-0209505a9fe4', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('PolicyEvaluationRecord', response) def requeue_policy_evaluation(self, project, evaluation_id): """RequeuePolicyEvaluation. - [Preview API] + [Preview API] Requeue the policy evaluation. :param str project: Project ID or project name - :param str evaluation_id: - :rtype: :class:` ` + :param str evaluation_id: ID of the policy evaluation to be retrieved. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -148,18 +156,18 @@ def requeue_policy_evaluation(self, project, evaluation_id): route_values['evaluationId'] = self._serialize.url('evaluation_id', evaluation_id, 'str') response = self._send(http_method='PATCH', location_id='46aecb7a-5d2c-4647-897b-0209505a9fe4', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('PolicyEvaluationRecord', response) def get_policy_evaluations(self, project, artifact_id, include_not_applicable=None, top=None, skip=None): """GetPolicyEvaluations. - [Preview API] + [Preview API] Retrieves a list of all the policy evaluation statuses for a specific pull request. :param str project: Project ID or project name - :param str artifact_id: - :param bool include_not_applicable: - :param int top: - :param int skip: + :param str artifact_id: A string which uniquely identifies the target of a policy evaluation. + :param bool include_not_applicable: Some policies might determine that they do not apply to a specific pull request. Setting this parameter to true will return evaluation records even for policies which don't apply to this pull request. + :param int top: The number of policy evaluation records to retrieve. + :param int skip: The number of policy evaluation records to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. :rtype: [PolicyEvaluationRecord] """ route_values = {} @@ -176,17 +184,18 @@ def get_policy_evaluations(self, project, artifact_id, include_not_applicable=No query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='c23ddff5-229c-4d04-a80b-0fdce9f360c8', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[PolicyEvaluationRecord]', self._unwrap_collection(response)) def get_policy_configuration_revision(self, project, configuration_id, revision_id): """GetPolicyConfigurationRevision. + [Preview API] Retrieve a specific revision of a given policy by ID. :param str project: Project ID or project name - :param int configuration_id: - :param int revision_id: - :rtype: :class:` ` + :param int configuration_id: The policy configuration ID. + :param int revision_id: The revision ID. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -197,16 +206,17 @@ def get_policy_configuration_revision(self, project, configuration_id, revision_ route_values['revisionId'] = self._serialize.url('revision_id', revision_id, 'int') response = self._send(http_method='GET', location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('PolicyConfiguration', response) def get_policy_configuration_revisions(self, project, configuration_id, top=None, skip=None): """GetPolicyConfigurationRevisions. + [Preview API] Retrieve all revisions for a given policy. :param str project: Project ID or project name - :param int configuration_id: - :param int top: - :param int skip: + :param int configuration_id: The policy configuration ID. + :param int top: The number of revisions to retrieve. + :param int skip: The number of revisions to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. :rtype: [PolicyConfiguration] """ route_values = {} @@ -221,16 +231,17 @@ def get_policy_configuration_revisions(self, project, configuration_id, top=None query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) def get_policy_type(self, project, type_id): """GetPolicyType. + [Preview API] Retrieve a specific policy type by ID. :param str project: Project ID or project name - :param str type_id: - :rtype: :class:` ` + :param str type_id: The policy ID. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -239,12 +250,13 @@ def get_policy_type(self, project, type_id): route_values['typeId'] = self._serialize.url('type_id', type_id, 'str') response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('PolicyType', response) def get_policy_types(self, project): """GetPolicyTypes. + [Preview API] Retrieve all available policy types. :param str project: Project ID or project name :rtype: [PolicyType] """ @@ -253,7 +265,7 @@ def get_policy_types(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[PolicyType]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v5_1/profile/__init__.py b/azure-devops/azure/devops/v5_1/profile/__init__.py new file mode 100644 index 00000000..ed5aa5d3 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/profile/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GeoRegion', + 'ProfileRegion', + 'ProfileRegions', +] diff --git a/azure-devops/azure/devops/v5_1/profile/models.py b/azure-devops/azure/devops/v5_1/profile/models.py new file mode 100644 index 00000000..97914fd6 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/profile/models.py @@ -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 msrest.serialization import Model + + +class GeoRegion(Model): + """GeoRegion. + + :param region_code: + :type region_code: str + """ + + _attribute_map = { + 'region_code': {'key': 'regionCode', 'type': 'str'} + } + + def __init__(self, region_code=None): + super(GeoRegion, self).__init__() + self.region_code = region_code + + +class ProfileRegion(Model): + """ProfileRegion. + + :param code: The two-letter code defined in ISO 3166 for the country/region. + :type code: str + :param name: Localized country/region name + :type name: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, code=None, name=None): + super(ProfileRegion, self).__init__() + self.code = code + self.name = name + + +class ProfileRegions(Model): + """ProfileRegions. + + :param notice_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of notice + :type notice_contact_consent_requirement_regions: list of str + :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out + :type opt_out_contact_consent_requirement_regions: list of str + :param regions: List of country/regions + :type regions: list of :class:`ProfileRegion ` + """ + + _attribute_map = { + 'notice_contact_consent_requirement_regions': {'key': 'noticeContactConsentRequirementRegions', 'type': '[str]'}, + 'opt_out_contact_consent_requirement_regions': {'key': 'optOutContactConsentRequirementRegions', 'type': '[str]'}, + 'regions': {'key': 'regions', 'type': '[ProfileRegion]'} + } + + def __init__(self, notice_contact_consent_requirement_regions=None, opt_out_contact_consent_requirement_regions=None, regions=None): + super(ProfileRegions, self).__init__() + self.notice_contact_consent_requirement_regions = notice_contact_consent_requirement_regions + self.opt_out_contact_consent_requirement_regions = opt_out_contact_consent_requirement_regions + self.regions = regions + + +__all__ = [ + 'GeoRegion', + 'ProfileRegion', + 'ProfileRegions', +] diff --git a/azure-devops/azure/devops/v5_1/profile/profile_client.py b/azure-devops/azure/devops/v5_1/profile/profile_client.py new file mode 100644 index 00000000..a4f5d139 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/profile/profile_client.py @@ -0,0 +1,52 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ProfileClient(Client): + """Profile + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProfileClient, 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_geo_region(self, ip): + """GetGeoRegion. + [Preview API] Lookup up country/region based on provided IPv4, null if using the remote IPv4 address. + :param str ip: + :rtype: :class:` ` + """ + query_parameters = {} + if ip is not None: + query_parameters['ip'] = self._serialize.query('ip', ip, 'str') + response = self._send(http_method='GET', + location_id='35b3ff1d-ab4c-4d1c-98bb-f6ea21d86bd9', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('GeoRegion', response) + + def get_regions(self): + """GetRegions. + [Preview API] + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='b129ca90-999d-47bb-ab37-0dcf784ee633', + version='5.1-preview.1') + return self._deserialize('ProfileRegions', response) + diff --git a/azure-devops/azure/devops/v4_0/project_analysis/__init__.py b/azure-devops/azure/devops/v5_1/project_analysis/__init__.py similarity index 79% rename from azure-devops/azure/devops/v4_0/project_analysis/__init__.py rename to azure-devops/azure/devops/v5_1/project_analysis/__init__.py index 81e2dba7..e3b23962 100644 --- a/azure-devops/azure/devops/v4_0/project_analysis/__init__.py +++ b/azure-devops/azure/devops/v5_1/project_analysis/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -10,8 +10,10 @@ __all__ = [ 'CodeChangeTrendItem', + 'LanguageMetricsSecuredObject', 'LanguageStatistics', 'ProjectActivityMetrics', 'ProjectLanguageAnalytics', + 'RepositoryActivityMetrics', 'RepositoryLanguageAnalytics', ] diff --git a/azure-devops/azure/devops/v4_0/project_analysis/models.py b/azure-devops/azure/devops/v5_1/project_analysis/models.py similarity index 52% rename from azure-devops/azure/devops/v4_0/project_analysis/models.py rename to azure-devops/azure/devops/v5_1/project_analysis/models.py index 68f1ab91..79b7902f 100644 --- a/azure-devops/azure/devops/v4_0/project_analysis/models.py +++ b/azure-devops/azure/devops/v5_1/project_analysis/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -29,40 +29,69 @@ def __init__(self, time=None, value=None): self.value = value -class LanguageStatistics(Model): +class LanguageMetricsSecuredObject(Model): + """LanguageMetricsSecuredObject. + + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int + """ + + _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'} + } + + def __init__(self, namespace_id=None, project_id=None, required_permissions=None): + super(LanguageMetricsSecuredObject, self).__init__() + self.namespace_id = namespace_id + self.project_id = project_id + self.required_permissions = required_permissions + + +class LanguageStatistics(LanguageMetricsSecuredObject): """LanguageStatistics. + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int :param bytes: :type bytes: long - :param bytes_percentage: - :type bytes_percentage: float :param files: :type files: int :param files_percentage: :type files_percentage: float + :param language_percentage: + :type language_percentage: float :param name: :type name: str - :param weighted_bytes_percentage: - :type weighted_bytes_percentage: float """ _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, 'bytes': {'key': 'bytes', 'type': 'long'}, - 'bytes_percentage': {'key': 'bytesPercentage', 'type': 'float'}, 'files': {'key': 'files', 'type': 'int'}, 'files_percentage': {'key': 'filesPercentage', 'type': 'float'}, - 'name': {'key': 'name', 'type': 'str'}, - 'weighted_bytes_percentage': {'key': 'weightedBytesPercentage', 'type': 'float'} + 'language_percentage': {'key': 'languagePercentage', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, bytes=None, bytes_percentage=None, files=None, files_percentage=None, name=None, weighted_bytes_percentage=None): - super(LanguageStatistics, self).__init__() + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, bytes=None, files=None, files_percentage=None, language_percentage=None, name=None): + super(LanguageStatistics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) self.bytes = bytes - self.bytes_percentage = bytes_percentage self.files = files self.files_percentage = files_percentage + self.language_percentage = language_percentage self.name = name - self.weighted_bytes_percentage = weighted_bytes_percentage class ProjectActivityMetrics(Model): @@ -73,7 +102,7 @@ class ProjectActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param project_id: :type project_id: str :param pull_requests_completed_count: @@ -101,15 +130,21 @@ def __init__(self, authors_count=None, code_changes_count=None, code_changes_tre self.pull_requests_created_count = pull_requests_created_count -class ProjectLanguageAnalytics(Model): +class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): """ProjectLanguageAnalytics. + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` :param result_phase: :type result_phase: object :param url: @@ -117,6 +152,9 @@ class ProjectLanguageAnalytics(Model): """ _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, 'id': {'key': 'id', 'type': 'str'}, 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, 'repository_language_analytics': {'key': 'repositoryLanguageAnalytics', 'type': '[RepositoryLanguageAnalytics]'}, @@ -124,8 +162,8 @@ class ProjectLanguageAnalytics(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): - super(ProjectLanguageAnalytics, self).__init__() + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, repository_language_analytics=None, result_phase=None, url=None): + super(ProjectLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) self.id = id self.language_breakdown = language_breakdown self.repository_language_analytics = repository_language_analytics @@ -133,13 +171,43 @@ def __init__(self, id=None, language_breakdown=None, repository_language_analyti self.url = url -class RepositoryLanguageAnalytics(Model): +class RepositoryActivityMetrics(Model): + """RepositoryActivityMetrics. + + :param code_changes_count: + :type code_changes_count: int + :param code_changes_trend: + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :param repository_id: + :type repository_id: str + """ + + _attribute_map = { + 'code_changes_count': {'key': 'codeChangesCount', 'type': 'int'}, + 'code_changes_trend': {'key': 'codeChangesTrend', 'type': '[CodeChangeTrendItem]'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'} + } + + def __init__(self, code_changes_count=None, code_changes_trend=None, repository_id=None): + super(RepositoryActivityMetrics, self).__init__() + self.code_changes_count = code_changes_count + self.code_changes_trend = code_changes_trend + self.repository_id = repository_id + + +class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): """RepositoryLanguageAnalytics. + :param namespace_id: + :type namespace_id: str + :param project_id: + :type project_id: str + :param required_permissions: + :type required_permissions: int :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param name: :type name: str :param result_phase: @@ -149,6 +217,9 @@ class RepositoryLanguageAnalytics(Model): """ _attribute_map = { + 'namespace_id': {'key': 'namespaceId', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'required_permissions': {'key': 'requiredPermissions', 'type': 'int'}, 'id': {'key': 'id', 'type': 'str'}, 'language_breakdown': {'key': 'languageBreakdown', 'type': '[LanguageStatistics]'}, 'name': {'key': 'name', 'type': 'str'}, @@ -156,8 +227,8 @@ class RepositoryLanguageAnalytics(Model): 'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'} } - def __init__(self, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): - super(RepositoryLanguageAnalytics, self).__init__() + def __init__(self, namespace_id=None, project_id=None, required_permissions=None, id=None, language_breakdown=None, name=None, result_phase=None, updated_time=None): + super(RepositoryLanguageAnalytics, self).__init__(namespace_id=namespace_id, project_id=project_id, required_permissions=required_permissions) self.id = id self.language_breakdown = language_breakdown self.name = name @@ -167,8 +238,10 @@ def __init__(self, id=None, language_breakdown=None, name=None, result_phase=Non __all__ = [ 'CodeChangeTrendItem', + 'LanguageMetricsSecuredObject', 'LanguageStatistics', 'ProjectActivityMetrics', 'ProjectLanguageAnalytics', + 'RepositoryActivityMetrics', 'RepositoryLanguageAnalytics', ] diff --git a/azure-devops/azure/devops/v5_1/project_analysis/project_analysis_client.py b/azure-devops/azure/devops/v5_1/project_analysis/project_analysis_client.py new file mode 100644 index 00000000..fefada77 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/project_analysis/project_analysis_client.py @@ -0,0 +1,120 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ProjectAnalysisClient(Client): + """ProjectAnalysis + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProjectAnalysisClient, 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 = '7658fa33-b1bf-4580-990f-fac5896773d3' + + def get_project_language_analytics(self, project): + """GetProjectLanguageAnalytics. + [Preview API] + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='5b02a779-1867-433f-90b7-d23ed5e33e57', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('ProjectLanguageAnalytics', response) + + def get_project_activity_metrics(self, project, from_date, aggregation_type): + """GetProjectActivityMetrics. + [Preview API] + :param str project: Project ID or project name + :param datetime from_date: + :param str aggregation_type: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') + if aggregation_type is not None: + query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') + response = self._send(http_method='GET', + location_id='e40ae584-9ea6-4f06-a7c7-6284651b466b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProjectActivityMetrics', response) + + def get_git_repositories_activity_metrics(self, project, from_date, aggregation_type, skip, top): + """GetGitRepositoriesActivityMetrics. + [Preview API] Retrieves git activity metrics for repositories matching a specified criteria. + :param str project: Project ID or project name + :param datetime from_date: Date from which, the trends are to be fetched. + :param str aggregation_type: Bucket size on which, trends are to be aggregated. + :param int skip: The number of repositories to ignore. + :param int top: The number of repositories for which activity metrics are to be retrieved. + :rtype: [RepositoryActivityMetrics] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') + if aggregation_type is not None: + query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='df7fbbca-630a-40e3-8aa3-7a3faf66947e', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[RepositoryActivityMetrics]', self._unwrap_collection(response)) + + def get_repository_activity_metrics(self, project, repository_id, from_date, aggregation_type): + """GetRepositoryActivityMetrics. + [Preview API] + :param str project: Project ID or project name + :param str repository_id: + :param datetime from_date: + :param str aggregation_type: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'iso-8601') + if aggregation_type is not None: + query_parameters['aggregationType'] = self._serialize.query('aggregation_type', aggregation_type, 'str') + response = self._send(http_method='GET', + location_id='df7fbbca-630a-40e3-8aa3-7a3faf66947e', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('RepositoryActivityMetrics', response) + diff --git a/azure-devops/azure/devops/v5_1/provenance/__init__.py b/azure-devops/azure/devops/v5_1/provenance/__init__.py new file mode 100644 index 00000000..70c7a03e --- /dev/null +++ b/azure-devops/azure/devops/v5_1/provenance/__init__.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'SessionRequest', + 'SessionResponse', +] diff --git a/azure-devops/azure/devops/v5_1/provenance/models.py b/azure-devops/azure/devops/v5_1/provenance/models.py new file mode 100644 index 00000000..58dd0b07 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/provenance/models.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class SessionRequest(Model): + """SessionRequest. + + :param data: Generic property bag to store data about the session + :type data: dict + :param feed: The feed name or id for the session + :type feed: str + :param source: The type of session If a known value is provided, the Data dictionary will be validated for the presence of properties required by that type + :type source: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'feed': {'key': 'feed', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'} + } + + def __init__(self, data=None, feed=None, source=None): + super(SessionRequest, self).__init__() + self.data = data + self.feed = feed + self.source = source + + +class SessionResponse(Model): + """SessionResponse. + + :param session_id: The unique identifier for the session + :type session_id: str + :param session_name: The name for the session + :type session_name: str + """ + + _attribute_map = { + 'session_id': {'key': 'sessionId', 'type': 'str'}, + 'session_name': {'key': 'sessionName', 'type': 'str'} + } + + def __init__(self, session_id=None, session_name=None): + super(SessionResponse, self).__init__() + self.session_id = session_id + self.session_name = session_name + + +__all__ = [ + 'SessionRequest', + 'SessionResponse', +] diff --git a/azure-devops/azure/devops/v5_1/provenance/provenance_client.py b/azure-devops/azure/devops/v5_1/provenance/provenance_client.py new file mode 100644 index 00000000..a72a5eeb --- /dev/null +++ b/azure-devops/azure/devops/v5_1/provenance/provenance_client.py @@ -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 . import models + + +class ProvenanceClient(Client): + """Provenance + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProvenanceClient, 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 = 'b40c1171-807a-493a-8f3f-5c26d5e2f5aa' + + def create_session(self, session_request, protocol): + """CreateSession. + [Preview API] Creates a session, a wrapper around a feed that can store additional metadata on the packages published to it. + :param :class:` ` session_request: The feed and metadata for the session + :param str protocol: The protocol that the session will target + :rtype: :class:` ` + """ + route_values = {} + if protocol is not None: + route_values['protocol'] = self._serialize.url('protocol', protocol, 'str') + content = self._serialize.body(session_request, 'SessionRequest') + response = self._send(http_method='POST', + location_id='503b4e54-ebf4-4d04-8eee-21c00823c2ac', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SessionResponse', response) + diff --git a/azure-devops/azure/devops/v5_1/py_pi_api/__init__.py b/azure-devops/azure/devops/v5_1/py_pi_api/__init__.py new file mode 100644 index 00000000..dd637cd0 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/py_pi_api/__init__.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'PyPiPackagesBatchRequest', + 'PyPiPackageVersionDeletionState', + 'PyPiRecycleBinPackageVersionDetails', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v5_1/py_pi_api/models.py b/azure-devops/azure/devops/v5_1/py_pi_api/models.py new file mode 100644 index 00000000..0de98cf6 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/py_pi_api/models.py @@ -0,0 +1,214 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. + :type deleted_date: datetime + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, views=None): + super(PackageVersionDetails, self).__init__() + self.views = views + + +class PyPiPackagesBatchRequest(Model): + """PyPiPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(PyPiPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class PyPiPackageVersionDeletionState(Model): + """PyPiPackageVersionDeletionState. + + :param deleted_date: UTC date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(PyPiPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +class PyPiRecycleBinPackageVersionDetails(Model): + """PyPiRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(PyPiRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'PyPiPackagesBatchRequest', + 'PyPiPackageVersionDeletionState', + 'PyPiRecycleBinPackageVersionDetails', + 'ReferenceLinks', +] diff --git a/azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py b/azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py new file mode 100644 index 00000000..85f7e9c3 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py @@ -0,0 +1,182 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class PyPiApiClient(Client): + """PyPiApi + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(PyPiApiClient, 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 = '92f0314b-06c5-46e0-abe7-15fd9d13276a' + + def download_package(self, feed_id, package_name, package_version, file_name): + """DownloadPackage. + [Preview API] Download a python package file directly. This API is intended for manual UI download options, not for programmatic access and scripting. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param str file_name: Name of the file in the package + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + if file_name is not None: + route_values['fileName'] = self._serialize.url('file_name', file_name, 'str') + response = self._send(http_method='GET', + location_id='97218bae-a64d-4381-9257-b5b7951f0b98', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Delete a package version from the feed, moving it to the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='07143752-3d94-45fd-86c2-0c77ed87847b', + version='5.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] Get information about a package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='07143752-3d94-45fd-86c2-0c77ed87847b', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('PyPiPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version from the recycle bin to its associated feed. + :param :class:` ` package_version_details: Set the 'Deleted' state to 'false' to restore the package to its feed. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PyPiRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='07143752-3d94-45fd-86c2-0c77ed87847b', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version(self, feed_id, package_name, package_version): + """DeletePackageVersion. + [Preview API] Delete a package version, moving it to the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='d146ac7e-9e3f-4448-b956-f9bb3bdf9b2e', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): + """GetPackageVersion. + [Preview API] Get information about a package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param bool show_deleted: True to show information for deleted package versions. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='d146ac7e-9e3f-4448-b956-f9bb3bdf9b2e', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def update_package_version(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackageVersion. + [Preview API] Update state for a package version. + :param :class:` ` package_version_details: Details to be updated. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + self._send(http_method='PATCH', + location_id='d146ac7e-9e3f-4448-b956-f9bb3bdf9b2e', + version='5.1-preview.1', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/v4_0/security/__init__.py b/azure-devops/azure/devops/v5_1/security/__init__.py similarity index 88% rename from azure-devops/azure/devops/v4_0/security/__init__.py rename to azure-devops/azure/devops/v5_1/security/__init__.py index 94948975..f3e359ef 100644 --- a/azure-devops/azure/devops/v4_0/security/__init__.py +++ b/azure-devops/azure/devops/v5_1/security/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/security/models.py b/azure-devops/azure/devops/v5_1/security/models.py similarity index 96% rename from azure-devops/azure/devops/v4_0/security/models.py rename to azure-devops/azure/devops/v5_1/security/models.py index 6f275837..6b9e9400 100644 --- a/azure-devops/azure/devops/v4_0/security/models.py +++ b/azure-devops/azure/devops/v5_1/security/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -17,9 +17,9 @@ class AccessControlEntry(Model): :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. :type deny: int :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` + :type extended_info: :class:`AceExtendedInformation ` """ _attribute_map = { @@ -152,10 +152,10 @@ def __init__(self, permissions=None, security_namespace_id=None, token=None, val class PermissionEvaluationBatch(Model): """PermissionEvaluationBatch. - :param always_allow_administrators: + :param always_allow_administrators: True if members of the Administrators group should always pass the security check. :type always_allow_administrators: bool :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` + :type evaluations: list of :class:`PermissionEvaluation ` """ _attribute_map = { @@ -173,7 +173,7 @@ class SecurityNamespaceDescription(Model): """SecurityNamespaceDescription. :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` + :type actions: list of :class:`ActionDefinition ` :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. :type dataspace_category: str :param display_name: This localized name for this namespace. diff --git a/azure-devops/azure/devops/v4_0/security/security_client.py b/azure-devops/azure/devops/v5_1/security/security_client.py similarity index 66% rename from azure-devops/azure/devops/v4_0/security/security_client.py rename to azure-devops/azure/devops/v5_1/security/security_client.py index 100735fe..58bda84a 100644 --- a/azure-devops/azure/devops/v4_0/security/security_client.py +++ b/azure-devops/azure/devops/v5_1/security/security_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,9 +27,10 @@ def __init__(self, base_url=None, creds=None): def remove_access_control_entries(self, security_namespace_id, token=None, descriptors=None): """RemoveAccessControlEntries. - :param str security_namespace_id: - :param str token: - :param str descriptors: + [Preview API] Remove the specified ACEs from the ACL belonging to the specified token. + :param str security_namespace_id: Security namespace identifier. + :param str token: The token whose ACL should be modified. + :param str descriptors: String containing a list of identity descriptors separated by ',' whose entries should be removed. :rtype: bool """ route_values = {} @@ -42,15 +43,16 @@ def remove_access_control_entries(self, security_namespace_id, token=None, descr query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') response = self._send(http_method='DELETE', location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('bool', response) def set_access_control_entries(self, container, security_namespace_id): """SetAccessControlEntries. - :param :class:` ` container: - :param str security_namespace_id: + [Preview API] Add or update ACEs in the ACL for the provided token. The request body contains the target token, a list of [ACEs](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/access%20control%20entries/set%20access%20control%20entries?#accesscontrolentry) and a optional merge parameter. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. + :param :class:` ` container: + :param str security_namespace_id: Security namespace identifier. :rtype: [AccessControlEntry] """ route_values = {} @@ -59,18 +61,19 @@ def set_access_control_entries(self, container, security_namespace_id): content = self._serialize.body(container, 'object') response = self._send(http_method='POST', location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[AccessControlEntry]', self._unwrap_collection(response)) def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): """QueryAccessControlLists. - :param str security_namespace_id: - :param str token: - :param str descriptors: - :param bool include_extended_info: - :param bool recurse: + [Preview API] Return a list of access control lists for the specified security namespace and token. All ACLs in the security namespace will be retrieved if no optional parameters are provided. + :param str security_namespace_id: Security namespace identifier. + :param str token: Security token + :param str descriptors: An optional filter string containing a list of identity descriptors separated by ',' whose ACEs should be retrieved. If this is left null, entire ACLs will be returned. + :param bool include_extended_info: If true, populate the extended information properties for the access control entries contained in the returned lists. + :param bool recurse: If true and this is a hierarchical namespace, return child ACLs of the specified token. :rtype: [AccessControlList] """ route_values = {} @@ -87,16 +90,17 @@ def query_access_control_lists(self, security_namespace_id, token=None, descript query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') response = self._send(http_method='GET', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[AccessControlList]', self._unwrap_collection(response)) def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None): """RemoveAccessControlLists. - :param str security_namespace_id: - :param str tokens: - :param bool recurse: + [Preview API] Remove access control lists under the specfied security namespace. + :param str security_namespace_id: Security namespace identifier. + :param str tokens: One or more comma-separated security tokens + :param bool recurse: If true and this is a hierarchical namespace, also remove child ACLs of the specified tokens. :rtype: bool """ route_values = {} @@ -109,15 +113,16 @@ def remove_access_control_lists(self, security_namespace_id, tokens=None, recurs query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') response = self._send(http_method='DELETE', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('bool', response) def set_access_control_lists(self, access_control_lists, security_namespace_id): """SetAccessControlLists. - :param :class:` ` access_control_lists: - :param str security_namespace_id: + [Preview API] Create or update one or more access control lists. All data that currently exists for the ACLs supplied will be overwritten. + :param :class:` ` access_control_lists: A list of ACLs to create or update. + :param str security_namespace_id: Security namespace identifier. """ route_values = {} if security_namespace_id is not None: @@ -125,30 +130,31 @@ def set_access_control_lists(self, access_control_lists, security_namespace_id): content = self._serialize.body(access_control_lists, 'VssJsonCollectionWrapper') self._send(http_method='POST', location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) def has_permissions_batch(self, eval_batch): """HasPermissionsBatch. - Perform a batch of "has permission" checks. This methods does not aggregate the results nor does it shortcircut if one of the permissions evaluates to false. - :param :class:` ` eval_batch: - :rtype: :class:` ` + [Preview API] Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false. + :param :class:` ` eval_batch: The set of evaluation requests. + :rtype: :class:` ` """ content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') response = self._send(http_method='POST', location_id='cf1faa59-1b63-4448-bf04-13d981a46f5d', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('PermissionEvaluationBatch', response) def has_permissions(self, security_namespace_id, permissions=None, tokens=None, always_allow_administrators=None, delimiter=None): """HasPermissions. - :param str security_namespace_id: - :param int permissions: - :param str tokens: - :param bool always_allow_administrators: - :param str delimiter: + [Preview API] Evaluates whether the caller has the specified permissions on the specified set of security tokens. + :param str security_namespace_id: Security namespace identifier. + :param int permissions: Permissions to evaluate. + :param str tokens: One or more security tokens to evaluate. + :param bool always_allow_administrators: If true and if the caller is an administrator, always return true. + :param str delimiter: Optional security token separator. Defaults to ",". :rtype: [bool] """ route_values = {} @@ -165,18 +171,19 @@ def has_permissions(self, security_namespace_id, permissions=None, tokens=None, query_parameters['delimiter'] = self._serialize.query('delimiter', delimiter, 'str') response = self._send(http_method='GET', location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[bool]', self._unwrap_collection(response)) - def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None): + def remove_permission(self, security_namespace_id, descriptor, permissions=None, token=None): """RemovePermission. - :param str security_namespace_id: - :param int permissions: - :param str token: - :param str descriptor: - :rtype: :class:` ` + [Preview API] Removes the specified permissions on a security token for a user or group. + :param str security_namespace_id: Security namespace identifier. + :param str descriptor: Identity descriptor of the user to remove permissions for. + :param int permissions: Permissions to remove. + :param str token: Security token to remove permissions for. + :rtype: :class:` ` """ route_values = {} if security_namespace_id is not None: @@ -184,21 +191,22 @@ def remove_permission(self, security_namespace_id, permissions=None, token=None, if permissions is not None: route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') query_parameters = {} - if token is not None: - query_parameters['token'] = self._serialize.query('token', token, 'str') if descriptor is not None: query_parameters['descriptor'] = self._serialize.query('descriptor', descriptor, 'str') + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') response = self._send(http_method='DELETE', location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AccessControlEntry', response) - def query_security_namespaces(self, security_namespace_id, local_only=None): + def query_security_namespaces(self, security_namespace_id=None, local_only=None): """QuerySecurityNamespaces. - :param str security_namespace_id: - :param bool local_only: + [Preview API] List all security namespaces or just the specified namespace. + :param str security_namespace_id: Security namespace identifier. + :param bool local_only: If true, retrieve only local security namespaces. :rtype: [SecurityNamespaceDescription] """ route_values = {} @@ -209,23 +217,8 @@ def query_security_namespaces(self, security_namespace_id, local_only=None): query_parameters['localOnly'] = self._serialize.query('local_only', local_only, 'bool') response = self._send(http_method='GET', location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[SecurityNamespaceDescription]', self._unwrap_collection(response)) - def set_inherit_flag(self, container, security_namespace_id): - """SetInheritFlag. - :param :class:` ` container: - :param str security_namespace_id: - """ - route_values = {} - if security_namespace_id is not None: - route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') - content = self._serialize.body(container, 'object') - self._send(http_method='POST', - location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', - version='4.0', - route_values=route_values, - content=content) - diff --git a/azure-devops/azure/devops/v5_1/service_endpoint/__init__.py b/azure-devops/azure/devops/v5_1/service_endpoint/__init__.py new file mode 100644 index 00000000..aa3747d9 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/service_endpoint/__init__.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'ClientCertificate', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'EndpointAuthorization', + 'EndpointUrl', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'OAuthConfiguration', + 'OAuthConfigurationParams', + 'ProjectReference', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionOwner', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', +] diff --git a/azure-devops/azure/devops/v5_1/service_endpoint/models.py b/azure-devops/azure/devops/v5_1/service_endpoint/models.py new file mode 100644 index 00000000..4d755b1b --- /dev/null +++ b/azure-devops/azure/devops/v5_1/service_endpoint/models.py @@ -0,0 +1,1393 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AadOauthTokenRequest(Model): + """AadOauthTokenRequest. + + :param refresh: + :type refresh: bool + :param resource: + :type resource: str + :param tenant_id: + :type tenant_id: str + :param token: + :type token: str + """ + + _attribute_map = { + 'refresh': {'key': 'refresh', 'type': 'bool'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'token': {'key': 'token', 'type': 'str'} + } + + def __init__(self, refresh=None, resource=None, tenant_id=None, token=None): + super(AadOauthTokenRequest, self).__init__() + self.refresh = refresh + self.resource = resource + self.tenant_id = tenant_id + self.token = token + + +class AadOauthTokenResult(Model): + """AadOauthTokenResult. + + :param access_token: + :type access_token: str + :param refresh_token_cache: + :type refresh_token_cache: str + """ + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'} + } + + def __init__(self, access_token=None, refresh_token_cache=None): + super(AadOauthTokenResult, self).__init__() + self.access_token = access_token + self.refresh_token_cache = refresh_token_cache + + +class AuthenticationSchemeReference(Model): + """AuthenticationSchemeReference. + + :param inputs: + :type inputs: dict + :param type: + :type type: str + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, inputs=None, type=None): + super(AuthenticationSchemeReference, self).__init__() + self.inputs = inputs + self.type = type + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: Gets or sets the name of authorization header. + :type name: str + :param value: Gets or sets the value of authorization header. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class AzureManagementGroup(Model): + """AzureManagementGroup. + + :param display_name: Display name of azure management group + :type display_name: str + :param id: Id of azure management group + :type id: str + :param name: Azure management group name + :type name: str + :param tenant_id: Id of tenant from which azure management group belogs + :type tenant_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, name=None, tenant_id=None): + super(AzureManagementGroup, self).__init__() + self.display_name = display_name + self.id = id + self.name = name + self.tenant_id = tenant_id + + +class AzureManagementGroupQueryResult(Model): + """AzureManagementGroupQueryResult. + + :param error_message: Error message in case of an exception + :type error_message: str + :param value: List of azure management groups + :type value: list of :class:`AzureManagementGroup ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureManagementGroup]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureManagementGroupQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + +class AzureSubscription(Model): + """AzureSubscription. + + :param display_name: + :type display_name: str + :param subscription_id: + :type subscription_id: str + :param subscription_tenant_id: + :type subscription_tenant_id: str + :param subscription_tenant_name: + :type subscription_tenant_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'}, + 'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'} + } + + def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None): + super(AzureSubscription, self).__init__() + self.display_name = display_name + self.subscription_id = subscription_id + self.subscription_tenant_id = subscription_tenant_id + self.subscription_tenant_name = subscription_tenant_name + + +class AzureSubscriptionQueryResult(Model): + """AzureSubscriptionQueryResult. + + :param error_message: + :type error_message: str + :param value: + :type value: list of :class:`AzureSubscription ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureSubscription]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureSubscriptionQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + +class ClientCertificate(Model): + """ClientCertificate. + + :param value: Gets or sets the value of client certificate. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, value=None): + super(ClientCertificate, self).__init__() + self.value = value + + +class DataSource(Model): + """DataSource. + + :param authentication_scheme: + :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :param callback_context_template: + :type callback_context_template: str + :param callback_required_template: + :type callback_required_template: str + :param endpoint_url: + :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: + :type initial_context_template: str + :param name: + :type name: str + :param request_content: + :type request_content: str + :param request_verb: + :type request_verb: str + :param resource_url: + :type resource_url: str + :param result_selector: + :type result_selector: str + """ + + _attribute_map = { + 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, authentication_scheme=None, callback_context_template=None, callback_required_template=None, endpoint_url=None, headers=None, initial_context_template=None, name=None, request_content=None, request_verb=None, resource_url=None, result_selector=None): + super(DataSource, self).__init__() + self.authentication_scheme = authentication_scheme + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template + self.endpoint_url = endpoint_url + self.headers = headers + self.initial_context_template = initial_context_template + self.name = name + self.request_content = request_content + self.request_verb = request_verb + self.resource_url = resource_url + self.result_selector = result_selector + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param request_content: Gets or sets http request body + :type request_content: str + :param request_verb: Gets or sets http request verb + :type request_verb: str + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.initial_context_template = initial_context_template + self.parameters = parameters + self.request_content = request_content + self.request_verb = request_verb + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DataSourceDetails(Model): + """DataSourceDetails. + + :param data_source_name: Gets or sets the data source name. + :type data_source_name: str + :param data_source_url: Gets or sets the data source url. + :type data_source_url: str + :param headers: Gets or sets the request headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Gets or sets the initialization context used for the initial call to the data source + :type initial_context_template: str + :param parameters: Gets the parameters of data source. + :type parameters: dict + :param request_content: Gets or sets the data source request content. + :type request_content: str + :param request_verb: Gets or sets the data source request verb. Get/Post are the only implemented types + :type request_verb: str + :param resource_url: Gets or sets the resource url of data source. + :type resource_url: str + :param result_selector: Gets or sets the result selector. + :type result_selector: str + """ + + _attribute_map = { + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, + 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'} + } + + def __init__(self, data_source_name=None, data_source_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, resource_url=None, result_selector=None): + super(DataSourceDetails, self).__init__() + self.data_source_name = data_source_name + self.data_source_url = data_source_url + self.headers = headers + self.initial_context_template = initial_context_template + self.parameters = parameters + self.request_content = request_content + self.request_verb = request_verb + self.resource_url = resource_url + self.result_selector = result_selector + + +class DependencyBinding(Model): + """DependencyBinding. + + :param key: + :type key: str + :param value: + :type value: str + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, key=None, value=None): + super(DependencyBinding, self).__init__() + self.key = key + self.value = value + + +class DependencyData(Model): + """DependencyData. + + :param input: + :type input: str + :param map: + :type map: list of { key: str; value: [{ key: str; value: str }] } + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'} + } + + def __init__(self, input=None, map=None): + super(DependencyData, self).__init__() + self.input = input + self.map = map + + +class DependsOn(Model): + """DependsOn. + + :param input: + :type input: str + :param map: + :type map: list of :class:`DependencyBinding ` + """ + + _attribute_map = { + 'input': {'key': 'input', 'type': 'str'}, + 'map': {'key': 'map', 'type': '[DependencyBinding]'} + } + + def __init__(self, input=None, map=None): + super(DependsOn, self).__init__() + self.input = input + self.map = map + + +class EndpointAuthorization(Model): + """EndpointAuthorization. + + :param parameters: Gets or sets the parameters for the selected authorization scheme. + :type parameters: dict + :param scheme: Gets or sets the scheme used for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, parameters=None, scheme=None): + super(EndpointAuthorization, self).__init__() + self.parameters = parameters + self.scheme = scheme + + +class EndpointUrl(Model): + """EndpointUrl. + + :param depends_on: Gets or sets the dependency bindings. + :type depends_on: :class:`DependsOn ` + :param display_name: Gets or sets the display name of service endpoint url. + :type display_name: str + :param help_text: Gets or sets the help text of service endpoint url. + :type help_text: str + :param is_visible: Gets or sets the visibility of service endpoint url. + :type is_visible: str + :param value: Gets or sets the value of service endpoint url. + :type value: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'is_visible': {'key': 'isVisible', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None): + super(EndpointUrl, self).__init__() + self.depends_on = depends_on + self.display_name = display_name + self.help_text = help_text + self.is_visible = is_visible + self.value = value + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 HelpLink(Model): + """HelpLink. + + :param text: + :type text: str + :param url: + :type url: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, text=None, url=None): + super(HelpLink, self).__init__() + self.text = text + self.url = url + + +class IdentityRef(GraphSubjectBase): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str + :param id: + :type id: str + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary + :type image_url: str + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary + :type inactive: bool + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) + :type is_aad_identity: bool + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) + :type is_container: bool + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef + :type profile_url: str + :param unique_name: Deprecated - use Domain+PrincipalName instead + :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 InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class OAuthConfiguration(Model): + """OAuthConfiguration. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param created_by: Gets or sets the identity who created the config. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets the time when config was created. + :type created_on: datetime + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param id: Gets or sets the unique identifier of this field + :type id: str + :param modified_by: Gets or sets the identity who modified the config. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets the time when variable group was modified + :type modified_on: datetime + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, created_by=None, created_on=None, endpoint_type=None, id=None, modified_by=None, modified_on=None, name=None, url=None): + super(OAuthConfiguration, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.created_by = created_by + self.created_on = created_on + self.endpoint_type = endpoint_type + self.id = id + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.url = url + + +class OAuthConfigurationParams(Model): + """OAuthConfigurationParams. + + :param client_id: Gets or sets the ClientId + :type client_id: str + :param client_secret: Gets or sets the ClientSecret + :type client_secret: str + :param endpoint_type: Gets or sets the type of the endpoint. + :type endpoint_type: str + :param name: Gets or sets the name + :type name: str + :param url: Gets or sets the Url + :type url: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + 'endpoint_type': {'key': 'endpointType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, client_id=None, client_secret=None, endpoint_type=None, name=None, url=None): + super(OAuthConfigurationParams, self).__init__() + self.client_id = client_id + self.client_secret = client_secret + self.endpoint_type = endpoint_type + self.name = name + self.url = url + + +class ProjectReference(Model): + """ProjectReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class ResultTransformationDetails(Model): + """ResultTransformationDetails. + + :param callback_context_template: Gets or sets the template for callback parameters + :type callback_context_template: str + :param callback_required_template: Gets or sets the template to decide whether to callback or not + :type callback_required_template: str + :param result_template: Gets or sets the template for result transformation. + :type result_template: str + """ + + _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'} + } + + def __init__(self, callback_context_template=None, callback_required_template=None, result_template=None): + super(ResultTransformationDetails, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template + self.result_template = result_template + + +class ServiceEndpoint(Model): + """ServiceEndpoint. + + :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. + :type administrators_group: :class:`IdentityRef ` + :param authorization: Gets or sets the authorization data for talking to the endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. + :type created_by: :class:`IdentityRef ` + :param data: + :type data: dict + :param description: Gets or sets the description of endpoint. + :type description: str + :param group_scope_id: + :type group_scope_id: str + :param id: Gets or sets the identifier of this endpoint. + :type id: str + :param is_ready: EndPoint state indictor + :type is_ready: bool + :param is_shared: Indicates whether service endpoint is shared with other projects or not. + :type is_shared: bool + :param name: Gets or sets the friendly name of the endpoint. + :type name: str + :param operation_status: Error message during creation/deletion of endpoint + :type operation_status: :class:`object ` + :param owner: Owner of the endpoint Supported values are "library", "agentcloud" + :type owner: str + :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. + :type readers_group: :class:`IdentityRef ` + :param type: Gets or sets the type of the endpoint. + :type type: str + :param url: Gets or sets the url of the endpoint. + :type url: str + """ + + _attribute_map = { + 'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'}, + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, is_shared=None, name=None, operation_status=None, owner=None, readers_group=None, type=None, url=None): + super(ServiceEndpoint, self).__init__() + self.administrators_group = administrators_group + self.authorization = authorization + self.created_by = created_by + self.data = data + self.description = description + self.group_scope_id = group_scope_id + self.id = id + self.is_ready = is_ready + self.is_shared = is_shared + self.name = name + self.operation_status = operation_status + self.owner = owner + self.readers_group = readers_group + self.type = type + self.url = url + + +class ServiceEndpointAuthenticationScheme(Model): + """ServiceEndpointAuthenticationScheme. + + :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param authorization_url: Gets or sets the Authorization url required to authenticate using OAuth2 + :type authorization_url: str + :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. + :type client_certificates: list of :class:`ClientCertificate ` + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBinding ` + :param display_name: Gets or sets the display name for the service endpoint authentication scheme. + :type display_name: str + :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: Gets or sets the scheme for service endpoint authentication. + :type scheme: str + """ + + _attribute_map = { + 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'scheme': {'key': 'scheme', 'type': 'str'} + } + + def __init__(self, authorization_headers=None, authorization_url=None, client_certificates=None, data_source_bindings=None, display_name=None, input_descriptors=None, scheme=None): + super(ServiceEndpointAuthenticationScheme, self).__init__() + self.authorization_headers = authorization_headers + self.authorization_url = authorization_url + self.client_certificates = client_certificates + self.data_source_bindings = data_source_bindings + self.display_name = display_name + self.input_descriptors = input_descriptors + self.scheme = scheme + + +class ServiceEndpointDetails(Model): + """ServiceEndpointDetails. + + :param authorization: Gets or sets the authorization of service endpoint. + :type authorization: :class:`EndpointAuthorization ` + :param data: Gets or sets the data of service endpoint. + :type data: dict + :param type: Gets or sets the type of service endpoint. + :type type: str + :param url: Gets or sets the connection url of service endpoint. + :type url: str + """ + + _attribute_map = { + 'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'}, + 'data': {'key': 'data', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, authorization=None, data=None, type=None, url=None): + super(ServiceEndpointDetails, self).__init__() + self.authorization = authorization + self.data = data + self.type = type + self.url = url + + +class ServiceEndpointExecutionData(Model): + """ServiceEndpointExecutionData. + + :param definition: Gets the definition of service endpoint execution owner. + :type definition: :class:`ServiceEndpointExecutionOwner ` + :param finish_time: Gets the finish time of service endpoint execution. + :type finish_time: datetime + :param id: Gets the Id of service endpoint execution data. + :type id: long + :param owner: Gets the owner of service endpoint execution data. + :type owner: :class:`ServiceEndpointExecutionOwner ` + :param plan_type: Gets the plan type of service endpoint execution data. + :type plan_type: str + :param result: Gets the result of service endpoint execution. + :type result: object + :param start_time: Gets the start time of service endpoint execution. + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'ServiceEndpointExecutionOwner'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'ServiceEndpointExecutionOwner'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None): + super(ServiceEndpointExecutionData, self).__init__() + self.definition = definition + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_type = plan_type + self.result = result + self.start_time = start_time + + +class ServiceEndpointExecutionOwner(Model): + """ServiceEndpointExecutionOwner. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param id: Gets or sets the Id of service endpoint execution owner. + :type id: int + :param name: Gets or sets the name of service endpoint execution owner. + :type name: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None): + super(ServiceEndpointExecutionOwner, self).__init__() + self._links = _links + self.id = id + self.name = name + + +class ServiceEndpointExecutionRecord(Model): + """ServiceEndpointExecutionRecord. + + :param data: Gets the execution data of service endpoint execution. + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: Gets the Id of service endpoint. + :type endpoint_id: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'} + } + + def __init__(self, data=None, endpoint_id=None): + super(ServiceEndpointExecutionRecord, self).__init__() + self.data = data + self.endpoint_id = endpoint_id + + +class ServiceEndpointExecutionRecordsInput(Model): + """ServiceEndpointExecutionRecordsInput. + + :param data: + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_ids: + :type endpoint_ids: list of str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'}, + 'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'} + } + + def __init__(self, data=None, endpoint_ids=None): + super(ServiceEndpointExecutionRecordsInput, self).__init__() + self.data = data + self.endpoint_ids = endpoint_ids + + +class ServiceEndpointRequest(Model): + """ServiceEndpointRequest. + + :param data_source_details: Gets or sets the data source details for the service endpoint request. + :type data_source_details: :class:`DataSourceDetails ` + :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. + :type result_transformation_details: :class:`ResultTransformationDetails ` + :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. + :type service_endpoint_details: :class:`ServiceEndpointDetails ` + """ + + _attribute_map = { + 'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'}, + 'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'}, + 'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'} + } + + def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None): + super(ServiceEndpointRequest, self).__init__() + self.data_source_details = data_source_details + self.result_transformation_details = result_transformation_details + self.service_endpoint_details = service_endpoint_details + + +class ServiceEndpointRequestResult(Model): + """ServiceEndpointRequestResult. + + :param callback_context_parameters: Gets or sets the parameters used to make subsequent calls to the data source + :type callback_context_parameters: dict + :param callback_required: Gets or sets the flat that decides if another call to the data source is to be made + :type callback_required: bool + :param error_message: Gets or sets the error message of the service endpoint request result. + :type error_message: str + :param result: Gets or sets the result of service endpoint request. + :type result: :class:`object ` + :param status_code: Gets or sets the status code of the service endpoint request result. + :type status_code: object + """ + + _attribute_map = { + 'callback_context_parameters': {'key': 'callbackContextParameters', 'type': '{str}'}, + 'callback_required': {'key': 'callbackRequired', 'type': 'bool'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'object'} + } + + def __init__(self, callback_context_parameters=None, callback_required=None, error_message=None, result=None, status_code=None): + super(ServiceEndpointRequestResult, self).__init__() + self.callback_context_parameters = callback_context_parameters + self.callback_required = callback_required + self.error_message = error_message + self.result = result + self.status_code = status_code + + +class ServiceEndpointType(Model): + """ServiceEndpointType. + + :param authentication_schemes: Authentication scheme of service endpoint type. + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: Data sources of service endpoint type. + :type data_sources: list of :class:`DataSource ` + :param dependency_data: Dependency data of service endpoint type. + :type dependency_data: list of :class:`DependencyData ` + :param description: Gets or sets the description of service endpoint type. + :type description: str + :param display_name: Gets or sets the display name of service endpoint type. + :type display_name: str + :param endpoint_url: Gets or sets the endpoint url of service endpoint type. + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: Gets or sets the help link of service endpoint type. + :type help_link: :class:`HelpLink ` + :param help_mark_down: + :type help_mark_down: str + :param icon_url: Gets or sets the icon url of service endpoint type. + :type icon_url: str + :param input_descriptors: Input descriptor of service endpoint type. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of service endpoint type. + :type name: str + :param trusted_hosts: Trusted hosts of a service endpoint type. + :type trusted_hosts: list of str + :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. + :type ui_contribution_id: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, + 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name + self.trusted_hosts = trusted_hosts + self.ui_contribution_id = ui_contribution_id + + +class DataSourceBinding(DataSourceBindingBase): + """DataSourceBinding. + + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param request_content: Gets or sets http request body + :type request_content: str + :param request_verb: Gets or sets http request verb + :type request_verb: str + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(callback_context_template=callback_context_template, callback_required_template=callback_required_template, data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, initial_context_template=initial_context_template, parameters=parameters, request_content=request_content, request_verb=request_verb, result_selector=result_selector, result_template=result_template, target=target) + + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'ClientCertificate', + 'DataSource', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'EndpointAuthorization', + 'EndpointUrl', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'OAuthConfiguration', + 'OAuthConfigurationParams', + 'ProjectReference', + 'ReferenceLinks', + 'ResultTransformationDetails', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionOwner', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'DataSourceBinding', +] diff --git a/azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py b/azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py new file mode 100644 index 00000000..2c981e32 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py @@ -0,0 +1,266 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ServiceEndpointClient(Client): + """ServiceEndpoint + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ServiceEndpointClient, 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 = '1814ab31-2f4f-4a9f-8761-f4d77dc5a5d7' + + def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): + """ExecuteServiceEndpointRequest. + [Preview API] Proxy for a GET request defined by a service endpoint. + :param :class:` ` service_endpoint_request: Service endpoint request. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if endpoint_id is not None: + query_parameters['endpointId'] = self._serialize.query('endpoint_id', endpoint_id, 'str') + content = self._serialize.body(service_endpoint_request, 'ServiceEndpointRequest') + response = self._send(http_method='POST', + location_id='cc63bb57-2a5f-4a7a-b79c-c142d308657e', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpointRequestResult', response) + + def create_service_endpoint(self, endpoint, project): + """CreateServiceEndpoint. + [Preview API] Create a service endpoint. + :param :class:` ` endpoint: Service endpoint to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='POST', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def delete_service_endpoint(self, project, endpoint_id, deep=None): + """DeleteServiceEndpoint. + [Preview API] Delete a service endpoint. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint to delete. + :param bool deep: Specific to AzureRM endpoint created in Automatic flow. When set to true, this will also delete corresponding AAD application in Azure. Default value is true. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if deep is not None: + query_parameters['deep'] = self._serialize.query('deep', deep, 'bool') + self._send(http_method='DELETE', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + + def get_service_endpoint_details(self, project, endpoint_id): + """GetServiceEndpointDetails. + [Preview API] Get the service endpoint details. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + response = self._send(http_method='GET', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('ServiceEndpoint', response) + + def get_service_endpoints(self, project, type=None, auth_schemes=None, endpoint_ids=None, owner=None, include_failed=None, include_details=None): + """GetServiceEndpoints. + [Preview API] Get the service endpoints. + :param str project: Project ID or project name + :param str type: Type of the service endpoints. + :param [str] auth_schemes: Authorization schemes used for service endpoints. + :param [str] endpoint_ids: Ids of the service endpoints. + :param str owner: Owner for service endpoints. + :param bool include_failed: Failed flag for service endpoints. + :param bool include_details: Flag to include more details for service endpoints. This is for internal use only and the flag will be treated as false for all other requests + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if auth_schemes is not None: + auth_schemes = ",".join(auth_schemes) + query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') + if endpoint_ids is not None: + endpoint_ids = ",".join(endpoint_ids) + query_parameters['endpointIds'] = self._serialize.query('endpoint_ids', endpoint_ids, 'str') + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if include_failed is not None: + query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + response = self._send(http_method='GET', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) + + def get_service_endpoints_by_names(self, project, endpoint_names, type=None, auth_schemes=None, owner=None, include_failed=None, include_details=None): + """GetServiceEndpointsByNames. + [Preview API] Get the service endpoints by name. + :param str project: Project ID or project name + :param [str] endpoint_names: Names of the service endpoints. + :param str type: Type of the service endpoints. + :param [str] auth_schemes: Authorization schemes used for service endpoints. + :param str owner: Owner for service endpoints. + :param bool include_failed: Failed flag for service endpoints. + :param bool include_details: Flag to include more details for service endpoints. This is for internal use only and the flag will be treated as false for all other requests + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if endpoint_names is not None: + endpoint_names = ",".join(endpoint_names) + query_parameters['endpointNames'] = self._serialize.query('endpoint_names', endpoint_names, 'str') + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if auth_schemes is not None: + auth_schemes = ",".join(auth_schemes) + query_parameters['authSchemes'] = self._serialize.query('auth_schemes', auth_schemes, 'str') + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if include_failed is not None: + query_parameters['includeFailed'] = self._serialize.query('include_failed', include_failed, 'bool') + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + response = self._send(http_method='GET', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) + + def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): + """UpdateServiceEndpoint. + [Preview API] Update a service endpoint. + :param :class:` ` endpoint: Service endpoint to update. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint to update. + :param str operation: Operation for the service endpoint. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if operation is not None: + query_parameters['operation'] = self._serialize.query('operation', operation, 'str') + content = self._serialize.body(endpoint, 'ServiceEndpoint') + response = self._send(http_method='PUT', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ServiceEndpoint', response) + + def update_service_endpoints(self, endpoints, project): + """UpdateServiceEndpoints. + [Preview API] Update the service endpoints. + :param [ServiceEndpoint] endpoints: Names of the service endpoints to update. + :param str project: Project ID or project name + :rtype: [ServiceEndpoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(endpoints, '[ServiceEndpoint]') + response = self._send(http_method='PUT', + location_id='e85f1c62-adfc-4b74-b618-11a150fb195e', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('[ServiceEndpoint]', self._unwrap_collection(response)) + + def get_service_endpoint_execution_records(self, project, endpoint_id, top=None): + """GetServiceEndpointExecutionRecords. + [Preview API] Get service endpoint execution records. + :param str project: Project ID or project name + :param str endpoint_id: Id of the service endpoint. + :param int top: Number of service endpoint execution records to get. + :rtype: [ServiceEndpointExecutionRecord] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if endpoint_id is not None: + route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='10a16738-9299-4cd1-9a81-fd23ad6200d0', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpointExecutionRecord]', self._unwrap_collection(response)) + + def get_service_endpoint_types(self, type=None, scheme=None): + """GetServiceEndpointTypes. + [Preview API] Get service endpoint types. + :param str type: Type of service endpoint. + :param str scheme: Scheme of service endpoint. + :rtype: [ServiceEndpointType] + """ + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if scheme is not None: + query_parameters['scheme'] = self._serialize.query('scheme', scheme, 'str') + response = self._send(http_method='GET', + location_id='5a7938a4-655e-486c-b562-b78c54a7e87b', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('[ServiceEndpointType]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/v4_0/service_hooks/__init__.py b/azure-devops/azure/devops/v5_1/service_hooks/__init__.py similarity index 81% rename from azure-devops/azure/devops/v4_0/service_hooks/__init__.py rename to azure-devops/azure/devops/v5_1/service_hooks/__init__.py index 5bb6840c..b2bae03f 100644 --- a/azure-devops/azure/devops/v4_0/service_hooks/__init__.py +++ b/azure-devops/azure/devops/v5_1/service_hooks/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -15,6 +15,7 @@ 'EventTypeDescriptor', 'ExternalConfigurationDescriptor', 'FormattedEventMessage', + 'GraphSubjectBase', 'IdentityRef', 'InputDescriptor', 'InputFilter', @@ -36,6 +37,10 @@ 'ResourceContainer', 'SessionToken', 'Subscription', + 'SubscriptionDiagnostics', 'SubscriptionsQuery', + 'SubscriptionTracing', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', 'VersionedResource', ] diff --git a/azure-devops/azure/devops/v4_0/service_hooks/models.py b/azure-devops/azure/devops/v5_1/service_hooks/models.py similarity index 80% rename from azure-devops/azure/devops/v4_0/service_hooks/models.py rename to azure-devops/azure/devops/v5_1/service_hooks/models.py index d0853bf8..05224477 100644 --- a/azure-devops/azure/devops/v4_0/service_hooks/models.py +++ b/azure-devops/azure/devops/v5_1/service_hooks/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -13,15 +13,15 @@ class Consumer(Model): """Consumer. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` + :type actions: list of :class:`ConsumerAction ` :param authentication_type: Gets or sets this consumer's authentication type. :type authentication_type: object :param description: Gets or sets this consumer's localized description. :type description: str :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :type external_configuration: :class:`ExternalConfigurationDescriptor ` :param id: Gets or sets this consumer's identifier. :type id: str :param image_url: Gets or sets this consumer's image URL, if any. @@ -29,7 +29,7 @@ class Consumer(Model): :param information_url: Gets or sets this consumer's information URL, if any. :type information_url: str :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this consumer's localized name. :type name: str :param url: The url for this resource @@ -69,7 +69,7 @@ class ConsumerAction(Model): """ConsumerAction. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. :type allow_resource_version_override: bool :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. @@ -79,7 +79,7 @@ class ConsumerAction(Model): :param id: Gets or sets this action's identifier. :type id: str :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this action's localized name. :type name: str :param supported_event_types: Gets or sets this action's supported event identifiers. @@ -123,13 +123,13 @@ class Event(Model): :param created_date: Gets or sets the UTC-based date and time that this event was created. :type created_date: datetime :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` + :type detailed_message: :class:`FormattedEventMessage ` :param event_type: Gets or sets the type of this event. :type event_type: str :param id: Gets or sets the unique identifier of this event. :type id: str :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` + :type message: :class:`FormattedEventMessage ` :param publisher_id: Gets or sets the identifier of the publisher that raised this event. :type publisher_id: str :param resource: Gets or sets the data associated with this event. @@ -139,7 +139,7 @@ class Event(Model): :param resource_version: Gets or sets the version of the data associated with this event. :type resource_version: str :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` + :type session_token: :class:`SessionToken ` """ _attribute_map = { @@ -177,7 +177,7 @@ class EventTypeDescriptor(Model): :param id: A unique id for the event type :type id: str :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: A localized friendly name for the event type :type name: str :param publisher_id: A unique id for the publisher of this event type @@ -257,56 +257,92 @@ def __init__(self, html=None, markdown=None, text=None): self.text = text -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class InputDescriptor(Model): @@ -335,11 +371,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -381,7 +417,7 @@ class InputFilter(Model): """InputFilter. :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` + :type conditions: list of :class:`InputFilterCondition ` """ _attribute_map = { @@ -495,7 +531,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -505,7 +541,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -551,7 +587,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -575,7 +611,7 @@ class Notification(Model): :param created_date: Gets or sets date and time that this result was created. :type created_date: datetime :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` + :type details: :class:`NotificationDetails ` :param event_id: The event id associated with this notification :type event_id: str :param id: The notification id @@ -635,7 +671,7 @@ class NotificationDetails(Model): :param error_message: Gets or sets this notification detail's error message. :type error_message: str :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` + :type event: :class:`Event ` :param event_type: Gets or sets this notification detail's event type. :type event_type: str :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) @@ -721,7 +757,7 @@ class NotificationsQuery(Model): """NotificationsQuery. :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` + :type associated_subscriptions: list of :class:`Subscription ` :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. :type include_details: bool :param max_created_date: Optional maximum date at which the notification was created @@ -735,7 +771,7 @@ class NotificationsQuery(Model): :param publisher_id: Optional publisher id to restrict the results to :type publisher_id: str :param results: Results from the query - :type results: list of :class:`Notification ` + :type results: list of :class:`Notification ` :param result_type: Optional notification result type to filter results to :type result_type: object :param status: Optional notification status to filter results to @@ -743,7 +779,7 @@ class NotificationsQuery(Model): :param subscription_ids: Optional list of subscription ids to restrict the results to :type subscription_ids: list of str :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` + :type summary: list of :class:`NotificationSummary ` """ _attribute_map = { @@ -781,7 +817,7 @@ class NotificationSummary(Model): """NotificationSummary. :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` + :type results: list of :class:`NotificationResultsSummaryDetail ` :param subscription_id: The subscription id associated with this notification :type subscription_id: str """ @@ -801,19 +837,19 @@ class Publisher(Model): """Publisher. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Gets this publisher's localized description. :type description: str :param id: Gets this publisher's identifier. :type id: str :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets this publisher's localized name. :type name: str :param service_instance_type: The service instance type of the first party publisher. :type service_instance_type: str :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` + :type supported_events: list of :class:`EventTypeDescriptor ` :param url: The url for this resource :type url: str """ @@ -847,31 +883,35 @@ class PublisherEvent(Model): :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. :type diagnostics: dict :param event: The event being published - :type event: :class:`Event ` - :param notification_id: Gets or sets the id of the notification. - :type notification_id: int + :type event: :class:`Event ` + :param is_filtered_event: Gets or sets flag for filtered events + :type is_filtered_event: bool + :param notification_data: Additional data that needs to be sent as part of notification to complement the Resource data in the Event + :type notification_data: dict :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` + :type other_resource_versions: list of :class:`VersionedResource ` :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` + :type subscription: :class:`Subscription ` """ _attribute_map = { 'diagnostics': {'key': 'diagnostics', 'type': '{str}'}, 'event': {'key': 'event', 'type': 'Event'}, - 'notification_id': {'key': 'notificationId', 'type': 'int'}, + 'is_filtered_event': {'key': 'isFilteredEvent', 'type': 'bool'}, + 'notification_data': {'key': 'notificationData', 'type': '{str}'}, 'other_resource_versions': {'key': 'otherResourceVersions', 'type': '[VersionedResource]'}, 'publisher_input_filters': {'key': 'publisherInputFilters', 'type': '[InputFilter]'}, 'subscription': {'key': 'subscription', 'type': 'Subscription'} } - def __init__(self, diagnostics=None, event=None, notification_id=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): + def __init__(self, diagnostics=None, event=None, is_filtered_event=None, notification_data=None, other_resource_versions=None, publisher_input_filters=None, subscription=None): super(PublisherEvent, self).__init__() self.diagnostics = diagnostics self.event = event - self.notification_id = notification_id + self.is_filtered_event = is_filtered_event + self.notification_data = notification_data self.other_resource_versions = other_resource_versions self.publisher_input_filters = publisher_input_filters self.subscription = subscription @@ -885,7 +925,7 @@ class PublishersQuery(Model): :param publisher_inputs: Filter for publisher inputs :type publisher_inputs: dict :param results: Results from the query - :type results: list of :class:`Publisher ` + :type results: list of :class:`Publisher ` """ _attribute_map = { @@ -973,7 +1013,7 @@ class Subscription(Model): """Subscription. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param action_description: :type action_description: str :param consumer_action_id: @@ -983,7 +1023,7 @@ class Subscription(Model): :param consumer_inputs: Consumer input values :type consumer_inputs: dict :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param event_description: @@ -993,7 +1033,7 @@ class Subscription(Model): :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: :type modified_date: datetime :param probation_retries: @@ -1007,7 +1047,7 @@ class Subscription(Model): :param status: :type status: object :param subscriber: - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: :type url: str """ @@ -1057,6 +1097,30 @@ def __init__(self, _links=None, action_description=None, consumer_action_id=None self.url = url +class SubscriptionDiagnostics(Model): + """SubscriptionDiagnostics. + + :param delivery_results: + :type delivery_results: :class:`SubscriptionTracing ` + :param delivery_tracing: + :type delivery_tracing: :class:`SubscriptionTracing ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`SubscriptionTracing ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'SubscriptionTracing'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'SubscriptionTracing'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'SubscriptionTracing'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(SubscriptionDiagnostics, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + class SubscriptionsQuery(Model): """SubscriptionsQuery. @@ -1065,15 +1129,15 @@ class SubscriptionsQuery(Model): :param consumer_id: Optional consumer id to restrict the results to (null for any) :type consumer_id: str :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` + :type consumer_input_filters: list of :class:`InputFilter ` :param event_type: Optional event type id to restrict the results to (null for any) :type event_type: str :param publisher_id: Optional publisher id to restrict the results to (null for any) :type publisher_id: str :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param results: Results from the query - :type results: list of :class:`Subscription ` + :type results: list of :class:`Subscription ` :param subscriber_id: Optional subscriber filter. :type subscriber_id: str """ @@ -1101,6 +1165,78 @@ def __init__(self, consumer_action_id=None, consumer_id=None, consumer_input_fil self.subscriber_id = subscriber_id +class SubscriptionTracing(Model): + """SubscriptionTracing. + + :param enabled: + :type enabled: bool + :param end_date: Trace until the specified end date. + :type end_date: datetime + :param max_traced_entries: The maximum number of result details to trace. + :type max_traced_entries: int + :param start_date: The date and time tracing started. + :type start_date: datetime + :param traced_entries: Trace until remaining count reaches 0. + :type traced_entries: int + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'max_traced_entries': {'key': 'maxTracedEntries', 'type': 'int'}, + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'traced_entries': {'key': 'tracedEntries', 'type': 'int'} + } + + def __init__(self, enabled=None, end_date=None, max_traced_entries=None, start_date=None, traced_entries=None): + super(SubscriptionTracing, self).__init__() + self.enabled = enabled + self.end_date = end_date + self.max_traced_entries = max_traced_entries + self.start_date = start_date + self.traced_entries = traced_entries + + +class UpdateSubscripitonDiagnosticsParameters(Model): + """UpdateSubscripitonDiagnosticsParameters. + + :param delivery_results: + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :param delivery_tracing: + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :param evaluation_tracing: + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + """ + + _attribute_map = { + 'delivery_results': {'key': 'deliveryResults', 'type': 'UpdateSubscripitonTracingParameters'}, + 'delivery_tracing': {'key': 'deliveryTracing', 'type': 'UpdateSubscripitonTracingParameters'}, + 'evaluation_tracing': {'key': 'evaluationTracing', 'type': 'UpdateSubscripitonTracingParameters'} + } + + def __init__(self, delivery_results=None, delivery_tracing=None, evaluation_tracing=None): + super(UpdateSubscripitonDiagnosticsParameters, self).__init__() + self.delivery_results = delivery_results + self.delivery_tracing = delivery_tracing + self.evaluation_tracing = evaluation_tracing + + +class UpdateSubscripitonTracingParameters(Model): + """UpdateSubscripitonTracingParameters. + + :param enabled: + :type enabled: bool + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'} + } + + def __init__(self, enabled=None): + super(UpdateSubscripitonTracingParameters, self).__init__() + self.enabled = enabled + + class VersionedResource(Model): """VersionedResource. @@ -1132,6 +1268,7 @@ def __init__(self, compatible_with=None, resource=None, resource_version=None): 'EventTypeDescriptor', 'ExternalConfigurationDescriptor', 'FormattedEventMessage', + 'GraphSubjectBase', 'IdentityRef', 'InputDescriptor', 'InputFilter', @@ -1153,6 +1290,10 @@ def __init__(self, compatible_with=None, resource=None, resource_version=None): 'ResourceContainer', 'SessionToken', 'Subscription', + 'SubscriptionDiagnostics', 'SubscriptionsQuery', + 'SubscriptionTracing', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', 'VersionedResource', ] diff --git a/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py similarity index 66% rename from azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py rename to azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py index fbfeb5f6..15005bd7 100644 --- a/azure-devops/azure/devops/v4_0/service_hooks/service_hooks_client.py +++ b/azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,10 +27,11 @@ def __init__(self, base_url=None, creds=None): def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None): """GetConsumerAction. - :param str consumer_id: - :param str consumer_action_id: + [Preview API] Get details about a specific consumer action. + :param str consumer_id: ID for a consumer. + :param str consumer_action_id: ID for a consumerActionId. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -42,14 +43,15 @@ def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ConsumerAction', response) def list_consumer_actions(self, consumer_id, publisher_id=None): """ListConsumerActions. - :param str consumer_id: + [Preview API] Get a list of consumer actions for a specific consumer. + :param str consumer_id: ID for a consumer. :param str publisher_id: :rtype: [ConsumerAction] """ @@ -61,16 +63,17 @@ def list_consumer_actions(self, consumer_id, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ConsumerAction]', self._unwrap_collection(response)) def get_consumer(self, consumer_id, publisher_id=None): """GetConsumer. - :param str consumer_id: + [Preview API] Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. + :param str consumer_id: ID for a consumer. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -80,13 +83,14 @@ def get_consumer(self, consumer_id, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Consumer', response) def list_consumers(self, publisher_id=None): """ListConsumers. + [Preview API] Get a list of available service hook consumer services. Optionally filter by consumers that support at least one event type from the specific publisher. :param str publisher_id: :rtype: [Consumer] """ @@ -95,15 +99,49 @@ def list_consumers(self, publisher_id=None): query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[Consumer]', self._unwrap_collection(response)) + def get_subscription_diagnostics(self, subscription_id): + """GetSubscriptionDiagnostics. + [Preview API] + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + response = self._send(http_method='GET', + location_id='3b36bcb5-02ad-43c6-bbfa-6dfc6f8e9d68', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('SubscriptionDiagnostics', response) + + def update_subscription_diagnostics(self, update_parameters, subscription_id): + """UpdateSubscriptionDiagnostics. + [Preview API] + :param :class:` ` update_parameters: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(update_parameters, 'UpdateSubscripitonDiagnosticsParameters') + response = self._send(http_method='PUT', + location_id='3b36bcb5-02ad-43c6-bbfa-6dfc6f8e9d68', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('SubscriptionDiagnostics', response) + def get_event_type(self, publisher_id, event_type_id): """GetEventType. - :param str publisher_id: + [Preview API] Get a specific event type. + :param str publisher_id: ID for a publisher. :param str event_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -112,13 +150,14 @@ def get_event_type(self, publisher_id, event_type_id): route_values['eventTypeId'] = self._serialize.url('event_type_id', event_type_id, 'str') response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('EventTypeDescriptor', response) def list_event_types(self, publisher_id): """ListEventTypes. - :param str publisher_id: + [Preview API] Get the event types for a specific publisher. + :param str publisher_id: ID for a publisher. :rtype: [EventTypeDescriptor] """ route_values = {} @@ -126,32 +165,16 @@ def list_event_types(self, publisher_id): route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[EventTypeDescriptor]', self._unwrap_collection(response)) - def publish_external_event(self, publisher_id, channel_id=None): - """PublishExternalEvent. - :param str publisher_id: - :param str channel_id: - :rtype: [PublisherEvent] - """ - query_parameters = {} - if publisher_id is not None: - query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') - if channel_id is not None: - query_parameters['channelId'] = self._serialize.query('channel_id', channel_id, 'str') - response = self._send(http_method='POST', - location_id='e0e0a1c9-beeb-4fb7-a8c8-b18e3161a50e', - version='4.0', - query_parameters=query_parameters) - return self._deserialize('[PublisherEvent]', self._unwrap_collection(response)) - def get_notification(self, subscription_id, notification_id): """GetNotification. - :param str subscription_id: + [Preview API] Get a specific notification for a subscription. + :param str subscription_id: ID for a subscription. :param int notification_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -160,16 +183,17 @@ def get_notification(self, subscription_id, notification_id): route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') response = self._send(http_method='GET', location_id='0c62d343-21b0-4732-997b-017fde84dc28', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Notification', response) def get_notifications(self, subscription_id, max_results=None, status=None, result=None): """GetNotifications. - :param str subscription_id: - :param int max_results: - :param str status: - :param str result: + [Preview API] Get a list of notifications for a specific subscription. A notification includes details about the event, the request to and the response from the consumer service. + :param str subscription_id: ID for a subscription. + :param int max_results: Maximum number of notifications to return. Default is **100**. + :param str status: Get only notifications with this status. + :param str result: Get only notifications with this result type. :rtype: [Notification] """ route_values = {} @@ -184,28 +208,30 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu query_parameters['result'] = self._serialize.query('result', result, 'str') response = self._send(http_method='GET', location_id='0c62d343-21b0-4732-997b-017fde84dc28', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[Notification]', self._unwrap_collection(response)) def query_notifications(self, query): """QueryNotifications. - :param :class:` ` query: - :rtype: :class:` ` + [Preview API] Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') response = self._send(http_method='POST', location_id='1a57562f-160a-4b5c-9185-905e95b39d36', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('NotificationsQuery', response) def query_input_values(self, input_values_query, publisher_id): """QueryInputValues. - :param :class:` ` input_values_query: + [Preview API] + :param :class:` ` input_values_query: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -213,90 +239,97 @@ def query_input_values(self, input_values_query, publisher_id): content = self._serialize.body(input_values_query, 'InputValuesQuery') response = self._send(http_method='POST', location_id='d815d352-a566-4dc1-a3e3-fd245acf688c', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('InputValuesQuery', response) def get_publisher(self, publisher_id): """GetPublisher. - :param str publisher_id: - :rtype: :class:` ` + [Preview API] Get a specific service hooks publisher. + :param str publisher_id: ID for a publisher. + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Publisher', response) def list_publishers(self): """ListPublishers. + [Preview API] Get a list of publishers. :rtype: [Publisher] """ response = self._send(http_method='GET', location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', - version='4.0') + version='5.1-preview.1') return self._deserialize('[Publisher]', self._unwrap_collection(response)) def query_publishers(self, query): """QueryPublishers. - :param :class:` ` query: - :rtype: :class:` ` + [Preview API] Query for service hook publishers. + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') response = self._send(http_method='POST', location_id='99b44a8a-65a8-4670-8f3e-e7f7842cce64', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('PublishersQuery', response) def create_subscription(self, subscription): """CreateSubscription. - :param :class:` ` subscription: - :rtype: :class:` ` + [Preview API] Create a subscription. + :param :class:` ` subscription: Subscription to be created. + :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='POST', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('Subscription', response) def delete_subscription(self, subscription_id): """DeleteSubscription. - :param str subscription_id: + [Preview API] Delete a specific service hooks subscription. + :param str subscription_id: ID for a subscription. """ route_values = {} if subscription_id is not None: route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') self._send(http_method='DELETE', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.0', + version='5.1-preview.1', route_values=route_values) def get_subscription(self, subscription_id): """GetSubscription. - :param str subscription_id: - :rtype: :class:` ` + [Preview API] Get a specific service hooks subscription. + :param str subscription_id: ID for a subscription. + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Subscription', response) def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=None, consumer_action_id=None): """ListSubscriptions. - :param str publisher_id: - :param str event_type: - :param str consumer_id: - :param str consumer_action_id: + [Preview API] Get a list of subscriptions. + :param str publisher_id: ID for a subscription. + :param str event_type: Maximum number of notifications to return. Default is 100. + :param str consumer_id: ID for a consumer. + :param str consumer_action_id: ID for a consumerActionId. :rtype: [Subscription] """ query_parameters = {} @@ -310,15 +343,16 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non query_parameters['consumerActionId'] = self._serialize.query('consumer_action_id', consumer_action_id, 'str') response = self._send(http_method='GET', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[Subscription]', self._unwrap_collection(response)) def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. - :param :class:` ` subscription: + [Preview API] Update a subscription. ID for a subscription that you wish to update. + :param :class:` ` subscription: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -326,28 +360,30 @@ def replace_subscription(self, subscription, subscription_id=None): content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='PUT', location_id='fc50d02a-849f-41fb-8af1-0a5216103269', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Subscription', response) def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. - :param :class:` ` query: - :rtype: :class:` ` + [Preview API] Query for service hook subscriptions. + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') response = self._send(http_method='POST', location_id='c7c3c1cf-9e05-4c0d-a425-a0f922c2c6ed', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('SubscriptionsQuery', response) def create_test_notification(self, test_notification, use_real_data=None): """CreateTestNotification. - :param :class:` ` test_notification: - :param bool use_real_data: - :rtype: :class:` ` + [Preview API] Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. + :param :class:` ` test_notification: + :param bool use_real_data: Only allow testing with real data in existing subscriptions. + :rtype: :class:` ` """ query_parameters = {} if use_real_data is not None: @@ -355,7 +391,7 @@ def create_test_notification(self, test_notification, use_real_data=None): content = self._serialize.body(test_notification, 'Notification') response = self._send(http_method='POST', location_id='1139462c-7e27-4524-a997-31b9b73551fe', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters, content=content) return self._deserialize('Notification', response) diff --git a/azure-devops/azure/devops/v5_1/settings/__init__.py b/azure-devops/azure/devops/v5_1/settings/__init__.py new file mode 100644 index 00000000..02c32760 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/settings/__init__.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + +__all__ = [ +] diff --git a/azure-devops/azure/devops/v4_0/settings/settings_client.py b/azure-devops/azure/devops/v5_1/settings/settings_client.py similarity index 94% rename from azure-devops/azure/devops/v4_0/settings/settings_client.py rename to azure-devops/azure/devops/v5_1/settings/settings_client.py index 6d724c21..98d633e0 100644 --- a/azure-devops/azure/devops/v4_0/settings/settings_client.py +++ b/azure-devops/azure/devops/v5_1/settings/settings_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -37,7 +37,7 @@ def get_entries(self, user_scope, key=None): route_values['key'] = self._serialize.url('key', key, 'str') response = self._send(http_method='GET', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('{object}', self._unwrap_collection(response)) @@ -54,7 +54,7 @@ def remove_entries(self, user_scope, key): route_values['key'] = self._serialize.url('key', key, 'str') self._send(http_method='DELETE', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def set_entries(self, entries, user_scope): @@ -69,7 +69,7 @@ def set_entries(self, entries, user_scope): content = self._serialize.body(entries, '{object}') self._send(http_method='PATCH', location_id='cd006711-163d-4cd4-a597-b05bad2556ff', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) @@ -93,7 +93,7 @@ def get_entries_for_scope(self, user_scope, scope_name, scope_value, key=None): route_values['key'] = self._serialize.url('key', key, 'str') response = self._send(http_method='GET', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('{object}', self._unwrap_collection(response)) @@ -116,7 +116,7 @@ def remove_entries_for_scope(self, user_scope, scope_name, scope_value, key): route_values['key'] = self._serialize.url('key', key, 'str') self._send(http_method='DELETE', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): @@ -137,7 +137,7 @@ def set_entries_for_scope(self, entries, user_scope, scope_name, scope_value): content = self._serialize.body(entries, '{object}') self._send(http_method='PATCH', location_id='4cbaafaf-e8af-4570-98d1-79ee99c56327', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) diff --git a/azure-devops/azure/devops/v5_1/symbol/__init__.py b/azure-devops/azure/devops/v5_1/symbol/__init__.py new file mode 100644 index 00000000..3f7c7180 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/symbol/__init__.py @@ -0,0 +1,19 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'DebugEntry', + 'DebugEntryCreateBatch', + 'JsonBlobBlockHash', + 'JsonBlobIdentifier', + 'JsonBlobIdentifierWithBlocks', + 'Request', + 'ResourceBase', +] diff --git a/azure-devops/azure/devops/v5_1/symbol/models.py b/azure-devops/azure/devops/v5_1/symbol/models.py new file mode 100644 index 00000000..e9cbfbda --- /dev/null +++ b/azure-devops/azure/devops/v5_1/symbol/models.py @@ -0,0 +1,222 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class DebugEntryCreateBatch(Model): + """DebugEntryCreateBatch. + + :param create_behavior: Defines what to do when a debug entry in the batch already exists. + :type create_behavior: object + :param debug_entries: The debug entries. + :type debug_entries: list of :class:`DebugEntry ` + """ + + _attribute_map = { + 'create_behavior': {'key': 'createBehavior', 'type': 'object'}, + 'debug_entries': {'key': 'debugEntries', 'type': '[DebugEntry]'} + } + + def __init__(self, create_behavior=None, debug_entries=None): + super(DebugEntryCreateBatch, self).__init__() + self.create_behavior = create_behavior + self.debug_entries = debug_entries + + +class JsonBlobBlockHash(Model): + """JsonBlobBlockHash. + + :param hash_bytes: Array of hash bytes. + :type hash_bytes: str + """ + + _attribute_map = { + 'hash_bytes': {'key': 'hashBytes', 'type': 'str'} + } + + def __init__(self, hash_bytes=None): + super(JsonBlobBlockHash, self).__init__() + self.hash_bytes = hash_bytes + + +class JsonBlobIdentifier(Model): + """JsonBlobIdentifier. + + :param identifier_value: + :type identifier_value: str + """ + + _attribute_map = { + 'identifier_value': {'key': 'identifierValue', 'type': 'str'} + } + + def __init__(self, identifier_value=None): + super(JsonBlobIdentifier, self).__init__() + self.identifier_value = identifier_value + + +class JsonBlobIdentifierWithBlocks(Model): + """JsonBlobIdentifierWithBlocks. + + :param block_hashes: List of blob block hashes. + :type block_hashes: list of :class:`JsonBlobBlockHash ` + :param identifier_value: Array of blobId bytes. + :type identifier_value: str + """ + + _attribute_map = { + 'block_hashes': {'key': 'blockHashes', 'type': '[JsonBlobBlockHash]'}, + 'identifier_value': {'key': 'identifierValue', 'type': 'str'} + } + + def __init__(self, block_hashes=None, identifier_value=None): + super(JsonBlobIdentifierWithBlocks, self).__init__() + self.block_hashes = block_hashes + self.identifier_value = identifier_value + + +class ResourceBase(Model): + """ResourceBase. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None): + super(ResourceBase, self).__init__() + self.created_by = created_by + self.created_date = created_date + self.id = id + self.storage_eTag = storage_eTag + self.url = url + + +class DebugEntry(ResourceBase): + """DebugEntry. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + :param blob_details: Details of the blob formatted to be deserialized for symbol service. + :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` + :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. + :type blob_identifier: :class:`JsonBlobIdentifier ` + :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. + :type blob_uri: str + :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. + :type client_key: str + :param information_level: The information level this debug entry contains. + :type information_level: object + :param request_id: The identifier of symbol request to which this debug entry belongs. + :type request_id: str + :param status: The status of debug entry. + :type status: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'blob_details': {'key': 'blobDetails', 'type': 'JsonBlobIdentifierWithBlocks'}, + 'blob_identifier': {'key': 'blobIdentifier', 'type': 'JsonBlobIdentifier'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'client_key': {'key': 'clientKey', 'type': 'str'}, + 'information_level': {'key': 'informationLevel', 'type': 'object'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, blob_details=None, blob_identifier=None, blob_uri=None, client_key=None, information_level=None, request_id=None, status=None): + super(DebugEntry, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) + self.blob_details = blob_details + self.blob_identifier = blob_identifier + self.blob_uri = blob_uri + self.client_key = client_key + self.information_level = information_level + self.request_id = request_id + self.status = status + + +class Request(ResourceBase): + """Request. + + :param created_by: The ID of user who created this item. Optional. + :type created_by: str + :param created_date: The date time when this item is created. Optional. + :type created_date: datetime + :param id: An identifier for this item. Optional. + :type id: str + :param storage_eTag: An opaque ETag used to synchronize with the version stored at server end. Optional. + :type storage_eTag: str + :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. + :type url: str + :param description: An optional human-facing description. + :type description: str + :param expiration_date: An optional expiration date for the request. The request will become inaccessible and get deleted after the date, regardless of its status. On an HTTP POST, if expiration date is null/missing, the server will assign a default expiration data (30 days unless overwridden in the registry at the account level). On PATCH, if expiration date is null/missing, the behavior is to not change whatever the request's current expiration date is. + :type expiration_date: datetime + :param name: A human-facing name for the request. Required on POST, ignored on PATCH. + :type name: str + :param status: The status for this request. + :type status: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'storage_eTag': {'key': 'storageETag', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, created_by=None, created_date=None, id=None, storage_eTag=None, url=None, description=None, expiration_date=None, name=None, status=None): + super(Request, self).__init__(created_by=created_by, created_date=created_date, id=id, storage_eTag=storage_eTag, url=url) + self.description = description + self.expiration_date = expiration_date + self.name = name + self.status = status + + +__all__ = [ + 'DebugEntryCreateBatch', + 'JsonBlobBlockHash', + 'JsonBlobIdentifier', + 'JsonBlobIdentifierWithBlocks', + 'ResourceBase', + 'DebugEntry', + 'Request', +] diff --git a/azure-devops/azure/devops/v5_1/symbol/symbol_client.py b/azure-devops/azure/devops/v5_1/symbol/symbol_client.py new file mode 100644 index 00000000..9c5a55d3 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/symbol/symbol_client.py @@ -0,0 +1,228 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class SymbolClient(Client): + """Symbol + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SymbolClient, 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 = 'af607f94-69ba-4821-8159-f04e37b66350' + + def check_availability(self): + """CheckAvailability. + [Preview API] Check the availability of symbol service. This includes checking for feature flag, and possibly license in future. Note this is NOT an anonymous endpoint, and the caller will be redirected to authentication before hitting it. + """ + self._send(http_method='GET', + location_id='97c893cc-e861-4ef4-8c43-9bad4a963dee', + version='5.1-preview.1') + + def get_client(self, client_type): + """GetClient. + [Preview API] Get the client package. + :param str client_type: Either "EXE" for a zip file containing a Windows symbol client (a.k.a. symbol.exe) along with dependencies, or "TASK" for a VSTS task that can be run on a VSTS build agent. All the other values are invalid. The parameter is case-insensitive. + :rtype: object + """ + route_values = {} + if client_type is not None: + route_values['clientType'] = self._serialize.url('client_type', client_type, 'str') + response = self._send(http_method='GET', + location_id='79c83865-4de3-460c-8a16-01be238e0818', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('object', response) + + def head_client(self): + """HeadClient. + [Preview API] Get client version information. + """ + self._send(http_method='HEAD', + location_id='79c83865-4de3-460c-8a16-01be238e0818', + version='5.1-preview.1') + + def create_requests(self, request_to_create): + """CreateRequests. + [Preview API] Create a new symbol request. + :param :class:` ` request_to_create: The symbol request to create. + :rtype: :class:` ` + """ + content = self._serialize.body(request_to_create, 'Request') + response = self._send(http_method='POST', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + content=content) + return self._deserialize('Request', response) + + def create_requests_request_id_debug_entries(self, batch, request_id, collection): + """CreateRequestsRequestIdDebugEntries. + [Preview API] Create debug entries for a symbol request as specified by its identifier. + :param :class:` ` batch: A batch that contains debug entries to create. + :param str request_id: The symbol request identifier. + :param str collection: A valid debug entry collection name. Must be "debugentries". + :rtype: [DebugEntry] + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + query_parameters = {} + if collection is not None: + query_parameters['collection'] = self._serialize.query('collection', collection, 'str') + content = self._serialize.body(batch, 'DebugEntryCreateBatch') + response = self._send(http_method='POST', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('[DebugEntry]', self._unwrap_collection(response)) + + def create_requests_request_name_debug_entries(self, batch, request_name, collection): + """CreateRequestsRequestNameDebugEntries. + [Preview API] Create debug entries for a symbol request as specified by its name. + :param :class:` ` batch: A batch that contains debug entries to create. + :param str request_name: The symbol request name. + :param str collection: A valid debug entry collection name. Must be "debugentries". + :rtype: [DebugEntry] + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + if collection is not None: + query_parameters['collection'] = self._serialize.query('collection', collection, 'str') + content = self._serialize.body(batch, 'DebugEntryCreateBatch') + response = self._send(http_method='POST', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('[DebugEntry]', self._unwrap_collection(response)) + + def delete_requests_request_id(self, request_id, synchronous=None): + """DeleteRequestsRequestId. + [Preview API] Delete a symbol request by request identifier. + :param str request_id: The symbol request identifier. + :param bool synchronous: If true, delete all the debug entries under this request synchronously in the current session. If false, the deletion will be postponed to a later point and be executed automatically by the system. + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + query_parameters = {} + if synchronous is not None: + query_parameters['synchronous'] = self._serialize.query('synchronous', synchronous, 'bool') + self._send(http_method='DELETE', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def delete_requests_request_name(self, request_name, synchronous=None): + """DeleteRequestsRequestName. + [Preview API] Delete a symbol request by request name. + :param str request_name: The symbol request name. + :param bool synchronous: If true, delete all the debug entries under this request synchronously in the current session. If false, the deletion will be postponed to a later point and be executed automatically by the system. + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + if synchronous is not None: + query_parameters['synchronous'] = self._serialize.query('synchronous', synchronous, 'bool') + self._send(http_method='DELETE', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + query_parameters=query_parameters) + + def get_requests_request_id(self, request_id): + """GetRequestsRequestId. + [Preview API] Get a symbol request by request identifier. + :param str request_id: The symbol request identifier. + :rtype: :class:` ` + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + response = self._send(http_method='GET', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('Request', response) + + def get_requests_request_name(self, request_name): + """GetRequestsRequestName. + [Preview API] Get a symbol request by request name. + :param str request_name: The symbol request name. + :rtype: :class:` ` + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + response = self._send(http_method='GET', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('Request', response) + + def update_requests_request_id(self, update_request, request_id): + """UpdateRequestsRequestId. + [Preview API] Update a symbol request by request identifier. + :param :class:` ` update_request: The symbol request. + :param str request_id: The symbol request identifier. + :rtype: :class:` ` + """ + route_values = {} + if request_id is not None: + route_values['requestId'] = self._serialize.url('request_id', request_id, 'str') + content = self._serialize.body(update_request, 'Request') + response = self._send(http_method='PATCH', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Request', response) + + def update_requests_request_name(self, update_request, request_name): + """UpdateRequestsRequestName. + [Preview API] Update a symbol request by request name. + :param :class:` ` update_request: The symbol request. + :param str request_name: The symbol request name. + :rtype: :class:` ` + """ + query_parameters = {} + if request_name is not None: + query_parameters['requestName'] = self._serialize.query('request_name', request_name, 'str') + content = self._serialize.body(update_request, 'Request') + response = self._send(http_method='PATCH', + location_id='ebc09fe3-1b20-4667-abc5-f2b60fe8de52', + version='5.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('Request', response) + + def get_sym_srv_debug_entry_client_key(self, debug_entry_client_key): + """GetSymSrvDebugEntryClientKey. + [Preview API] Given a client key, returns the best matched debug entry. + :param str debug_entry_client_key: A "client key" used by both ends of Microsoft's symbol protocol to identify a debug entry. The semantics of client key is governed by symsrv and is beyond the scope of this documentation. + """ + route_values = {} + if debug_entry_client_key is not None: + route_values['debugEntryClientKey'] = self._serialize.url('debug_entry_client_key', debug_entry_client_key, 'str') + self._send(http_method='GET', + location_id='9648e256-c9f9-4f16-8a27-630b06396942', + version='5.1-preview.1', + route_values=route_values) + diff --git a/azure-devops/azure/devops/v4_0/task/__init__.py b/azure-devops/azure/devops/v5_1/task/__init__.py similarity index 86% rename from azure-devops/azure/devops/v4_0/task/__init__.py rename to azure-devops/azure/devops/v5_1/task/__init__.py index 58690b29..8d56249f 100644 --- a/azure-devops/azure/devops/v4_0/task/__init__.py +++ b/azure-devops/azure/devops/v5_1/task/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -28,7 +28,9 @@ 'TaskOrchestrationQueuedPlanGroup', 'TaskReference', 'Timeline', + 'TimelineAttempt', 'TimelineRecord', + 'TimelineRecordFeedLinesWrapper', 'TimelineReference', 'VariableValue', ] diff --git a/azure-devops/azure/devops/v4_1/task/models.py b/azure-devops/azure/devops/v5_1/task/models.py similarity index 84% rename from azure-devops/azure/devops/v4_1/task/models.py rename to azure-devops/azure/devops/v5_1/task/models.py index 464984e4..6d5efc3b 100644 --- a/azure-devops/azure/devops/v4_1/task/models.py +++ b/azure-devops/azure/devops/v5_1/task/models.py @@ -81,7 +81,7 @@ class PlanEnvironment(Model): """PlanEnvironment. :param mask: - :type mask: list of :class:`MaskHint ` + :type mask: list of :class:`MaskHint ` :param options: :type options: dict :param variables: @@ -141,7 +141,7 @@ class TaskAttachment(Model): """TaskAttachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_on: :type created_on: datetime :param last_changed_by: @@ -221,7 +221,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -269,9 +269,9 @@ class TaskOrchestrationPlanReference(Model): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -315,9 +315,9 @@ class TaskOrchestrationQueuedPlan(Model): :param assign_time: :type assign_time: datetime :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -361,15 +361,15 @@ class TaskOrchestrationQueuedPlanGroup(Model): """TaskOrchestrationQueuedPlanGroup. :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param queue_position: :type queue_position: int """ @@ -421,29 +421,61 @@ def __init__(self, id=None, inputs=None, name=None, version=None): self.version = version +class TimelineAttempt(Model): + """TimelineAttempt. + + :param attempt: Gets or sets the attempt of the record. + :type attempt: int + :param identifier: Gets or sets the unique identifier for the record. + :type identifier: str + :param record_id: Gets or sets the record identifier located within the specified timeline. + :type record_id: str + :param timeline_id: Gets or sets the timeline identifier which owns the record representing this attempt. + :type timeline_id: str + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'} + } + + def __init__(self, attempt=None, identifier=None, record_id=None, timeline_id=None): + super(TimelineAttempt, self).__init__() + self.attempt = attempt + self.identifier = identifier + self.record_id = record_id + self.timeline_id = timeline_id + + class TimelineRecord(Model): """TimelineRecord. + :param attempt: + :type attempt: int :param change_id: :type change_id: int :param current_operation: :type current_operation: str :param details: - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: :type error_count: int :param finish_time: :type finish_time: datetime :param id: :type id: str + :param identifier: + :type identifier: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: :type last_modified: datetime :param location: :type location: str :param log: - :type log: :class:`TaskLogReference ` + :type log: :class:`TaskLogReference ` :param name: :type name: str :param order: @@ -452,6 +484,8 @@ class TimelineRecord(Model): :type parent_id: str :param percent_complete: :type percent_complete: int + :param previous_attempts: + :type previous_attempts: list of :class:`TimelineAttempt ` :param ref_name: :type ref_name: str :param result: @@ -463,7 +497,7 @@ class TimelineRecord(Model): :param state: :type state: object :param task: - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: :type type: str :param variables: @@ -475,12 +509,14 @@ class TimelineRecord(Model): """ _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, 'change_id': {'key': 'changeId', 'type': 'int'}, 'current_operation': {'key': 'currentOperation', 'type': 'str'}, 'details': {'key': 'details', 'type': 'TimelineReference'}, 'error_count': {'key': 'errorCount', 'type': 'int'}, 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, 'id': {'key': 'id', 'type': 'str'}, + 'identifier': {'key': 'identifier', 'type': 'str'}, 'issues': {'key': 'issues', 'type': '[Issue]'}, 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, 'location': {'key': 'location', 'type': 'str'}, @@ -489,6 +525,7 @@ class TimelineRecord(Model): 'order': {'key': 'order', 'type': 'int'}, 'parent_id': {'key': 'parentId', 'type': 'str'}, 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'previous_attempts': {'key': 'previousAttempts', 'type': '[TimelineAttempt]'}, 'ref_name': {'key': 'refName', 'type': 'str'}, 'result': {'key': 'result', 'type': 'object'}, 'result_code': {'key': 'resultCode', 'type': 'str'}, @@ -501,14 +538,16 @@ class TimelineRecord(Model): 'worker_name': {'key': 'workerName', 'type': 'str'} } - def __init__(self, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): + def __init__(self, attempt=None, change_id=None, current_operation=None, details=None, error_count=None, finish_time=None, id=None, identifier=None, issues=None, last_modified=None, location=None, log=None, name=None, order=None, parent_id=None, percent_complete=None, previous_attempts=None, ref_name=None, result=None, result_code=None, start_time=None, state=None, task=None, type=None, variables=None, warning_count=None, worker_name=None): super(TimelineRecord, self).__init__() + self.attempt = attempt self.change_id = change_id self.current_operation = current_operation self.details = details self.error_count = error_count self.finish_time = finish_time self.id = id + self.identifier = identifier self.issues = issues self.last_modified = last_modified self.location = location @@ -517,6 +556,7 @@ def __init__(self, change_id=None, current_operation=None, details=None, error_c self.order = order self.parent_id = parent_id self.percent_complete = percent_complete + self.previous_attempts = previous_attempts self.ref_name = ref_name self.result = result self.result_code = result_code @@ -529,6 +569,30 @@ def __init__(self, change_id=None, current_operation=None, details=None, error_c self.worker_name = worker_name +class TimelineRecordFeedLinesWrapper(Model): + """TimelineRecordFeedLinesWrapper. + + :param count: + :type count: int + :param step_id: + :type step_id: str + :param value: + :type value: list of str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'step_id': {'key': 'stepId', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[str]'} + } + + def __init__(self, count=None, step_id=None, value=None): + super(TimelineRecordFeedLinesWrapper, self).__init__() + self.count = count + self.step_id = step_id + self.value = value + + class TimelineReference(Model): """TimelineReference. @@ -617,7 +681,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param item_type: :type item_type: object :param children: - :type children: list of :class:`TaskOrchestrationItem ` + :type children: list of :class:`TaskOrchestrationItem ` :param continue_on_error: :type continue_on_error: bool :param data: @@ -627,7 +691,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param parallel: :type parallel: bool :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` + :type rollback: :class:`TaskOrchestrationContainer ` """ _attribute_map = { @@ -658,9 +722,9 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -672,11 +736,13 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param version: :type version: int :param environment: - :type environment: :class:`PlanEnvironment ` + :type environment: :class:`PlanEnvironment ` :param finish_time: :type finish_time: datetime :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` + :type implementation: :class:`TaskOrchestrationContainer ` + :param initialization_log: + :type initialization_log: :class:`TaskLogReference ` :param requested_by_id: :type requested_by_id: str :param requested_for_id: @@ -690,7 +756,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param state: :type state: object :param timeline: - :type timeline: :class:`TimelineReference ` + :type timeline: :class:`TimelineReference ` """ _attribute_map = { @@ -706,6 +772,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): 'environment': {'key': 'environment', 'type': 'PlanEnvironment'}, 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, 'implementation': {'key': 'implementation', 'type': 'TaskOrchestrationContainer'}, + 'initialization_log': {'key': 'initializationLog', 'type': 'TaskLogReference'}, 'requested_by_id': {'key': 'requestedById', 'type': 'str'}, 'requested_for_id': {'key': 'requestedForId', 'type': 'str'}, 'result': {'key': 'result', 'type': 'object'}, @@ -715,11 +782,12 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): 'timeline': {'key': 'timeline', 'type': 'TimelineReference'} } - def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): + def __init__(self, artifact_location=None, artifact_uri=None, definition=None, owner=None, plan_group=None, plan_id=None, plan_type=None, scope_identifier=None, version=None, environment=None, finish_time=None, implementation=None, initialization_log=None, requested_by_id=None, requested_for_id=None, result=None, result_code=None, start_time=None, state=None, timeline=None): super(TaskOrchestrationPlan, self).__init__(artifact_location=artifact_location, artifact_uri=artifact_uri, definition=definition, owner=owner, plan_group=plan_group, plan_id=plan_id, plan_type=plan_type, scope_identifier=scope_identifier, version=version) self.environment = environment self.finish_time = finish_time self.implementation = implementation + self.initialization_log = initialization_log self.requested_by_id = requested_by_id self.requested_for_id = requested_for_id self.result = result @@ -743,7 +811,7 @@ class Timeline(TimelineReference): :param last_changed_on: :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -778,7 +846,9 @@ def __init__(self, change_id=None, id=None, location=None, last_changed_by=None, 'TaskOrchestrationQueuedPlan', 'TaskOrchestrationQueuedPlanGroup', 'TaskReference', + 'TimelineAttempt', 'TimelineRecord', + 'TimelineRecordFeedLinesWrapper', 'TimelineReference', 'VariableValue', 'TaskLog', diff --git a/azure-devops/azure/devops/v4_0/task/task_client.py b/azure-devops/azure/devops/v5_1/task/task_client.py similarity index 74% rename from azure-devops/azure/devops/v4_0/task/task_client.py rename to azure-devops/azure/devops/v5_1/task/task_client.py index caf3bcf9..f97e3b52 100644 --- a/azure-devops/azure/devops/v4_0/task/task_client.py +++ b/azure-devops/azure/devops/v5_1/task/task_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -45,7 +45,7 @@ def get_plan_attachments(self, scope_identifier, hub_name, plan_id, type): route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='eb55e5d6-2f30-4295-b5ed-38da50b1fc52', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) @@ -60,7 +60,7 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -84,7 +84,7 @@ def create_attachment(self, upload_stream, scope_identifier, hub_name, plan_id, content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='PUT', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -100,7 +100,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor :param str record_id: :param str type: :param str name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -119,7 +119,7 @@ def get_attachment(self, scope_identifier, hub_name, plan_id, timeline_id, recor route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('TaskAttachment', response) @@ -152,7 +152,7 @@ def get_attachment_content(self, scope_identifier, hub_name, plan_id, timeline_i route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/octet-stream') if "callback" in kwargs: @@ -187,45 +187,19 @@ def get_attachments(self, scope_identifier, hub_name, plan_id, timeline_id, reco route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='7898f959-9cdf-4096-b29e-7f293031629e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[TaskAttachment]', self._unwrap_collection(response)) - def append_timeline_record_feed(self, lines, scope_identifier, hub_name, plan_id, timeline_id, record_id): - """AppendTimelineRecordFeed. - :param :class:` ` lines: - :param str scope_identifier: The project GUID to scope the request - :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server - :param str plan_id: - :param str timeline_id: - :param str record_id: - """ - route_values = {} - if scope_identifier is not None: - route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') - if hub_name is not None: - route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') - if timeline_id is not None: - route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') - if record_id is not None: - route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') - content = self._serialize.body(lines, 'VssJsonCollectionWrapper') - self._send(http_method='POST', - location_id='858983e4-19bd-4c5e-864c-507b59b58b12', - version='4.0', - route_values=route_values, - content=content) - def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id, **kwargs): """AppendLogContent. + [Preview API] :param object upload_stream: Stream to upload :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: :param int log_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -243,7 +217,7 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -251,11 +225,12 @@ def append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, def create_log(self, log, scope_identifier, hub_name, plan_id): """CreateLog. - :param :class:` ` log: + [Preview API] + :param :class:` ` log: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -267,13 +242,14 @@ def create_log(self, log, scope_identifier, hub_name, plan_id): content = self._serialize.body(log, 'TaskLog') response = self._send(http_method='POST', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('TaskLog', response) def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, end_line=None): """GetLog. + [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -298,13 +274,14 @@ def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[str]', self._unwrap_collection(response)) def get_logs(self, scope_identifier, hub_name, plan_id): """GetLogs. + [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -319,97 +296,13 @@ def get_logs(self, scope_identifier, hub_name, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[TaskLog]', self._unwrap_collection(response)) - def get_plan_groups_queue_metrics(self, scope_identifier, hub_name): - """GetPlanGroupsQueueMetrics. - [Preview API] - :param str scope_identifier: The project GUID to scope the request - :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server - :rtype: [TaskOrchestrationPlanGroupsQueueMetrics] - """ - route_values = {} - if scope_identifier is not None: - route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') - if hub_name is not None: - route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') - response = self._send(http_method='GET', - location_id='038fd4d5-cda7-44ca-92c0-935843fee1a7', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[TaskOrchestrationPlanGroupsQueueMetrics]', self._unwrap_collection(response)) - - def get_queued_plan_groups(self, scope_identifier, hub_name, status_filter=None, count=None): - """GetQueuedPlanGroups. - [Preview API] - :param str scope_identifier: The project GUID to scope the request - :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server - :param str status_filter: - :param int count: - :rtype: [TaskOrchestrationQueuedPlanGroup] - """ - route_values = {} - if scope_identifier is not None: - route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') - if hub_name is not None: - route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') - query_parameters = {} - if status_filter is not None: - query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') - if count is not None: - query_parameters['count'] = self._serialize.query('count', count, 'int') - response = self._send(http_method='GET', - location_id='0dd73091-3e36-4f43-b443-1b76dd426d84', - version='4.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[TaskOrchestrationQueuedPlanGroup]', self._unwrap_collection(response)) - - def get_queued_plan_group(self, scope_identifier, hub_name, plan_group): - """GetQueuedPlanGroup. - [Preview API] - :param str scope_identifier: The project GUID to scope the request - :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server - :param str plan_group: - :rtype: :class:` ` - """ - route_values = {} - if scope_identifier is not None: - route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') - if hub_name is not None: - route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') - if plan_group is not None: - route_values['planGroup'] = self._serialize.url('plan_group', plan_group, 'str') - response = self._send(http_method='GET', - location_id='65fd0708-bc1e-447b-a731-0587c5464e5b', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('TaskOrchestrationQueuedPlanGroup', response) - - def get_plan(self, scope_identifier, hub_name, plan_id): - """GetPlan. - :param str scope_identifier: The project GUID to scope the request - :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server - :param str plan_id: - :rtype: :class:` ` - """ - route_values = {} - if scope_identifier is not None: - route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') - if hub_name is not None: - route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') - if plan_id is not None: - route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') - response = self._send(http_method='GET', - location_id='5cecd946-d704-471e-a45f-3b4064fcfaba', - version='4.0', - route_values=route_values) - return self._deserialize('TaskOrchestrationPlan', response) - def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None): """GetRecords. + [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -431,14 +324,15 @@ def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_i query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') response = self._send(http_method='GET', location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): """UpdateRecords. - :param :class:` ` records: + [Preview API] + :param :class:` ` records: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -457,18 +351,19 @@ def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_ content = self._serialize.body(records, 'VssJsonCollectionWrapper') response = self._send(http_method='PATCH', location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): """CreateTimeline. - :param :class:` ` timeline: + [Preview API] + :param :class:` ` timeline: :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -480,13 +375,14 @@ def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): content = self._serialize.body(timeline, 'Timeline') response = self._send(http_method='POST', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Timeline', response) def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): """DeleteTimeline. + [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -503,18 +399,19 @@ def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') self._send(http_method='DELETE', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.0', + version='5.1-preview.1', route_values=route_values) def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None, include_records=None): """GetTimeline. + [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: :param str timeline_id: :param int change_id: :param bool include_records: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if scope_identifier is not None: @@ -532,13 +429,14 @@ def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_ query_parameters['includeRecords'] = self._serialize.query('include_records', include_records, 'bool') response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('Timeline', response) def get_timelines(self, scope_identifier, hub_name, plan_id): """GetTimelines. + [Preview API] :param str scope_identifier: The project GUID to scope the request :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server :param str plan_id: @@ -553,7 +451,7 @@ def get_timelines(self, scope_identifier, hub_name, plan_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') response = self._send(http_method='GET', location_id='83597576-cc2c-453c-bea6-2882ae6a1653', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[Timeline]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v4_0/task_agent/__init__.py b/azure-devops/azure/devops/v5_1/task_agent/__init__.py similarity index 72% rename from azure-devops/azure/devops/v4_0/task_agent/__init__.py rename to azure-devops/azure/devops/v5_1/task_agent/__init__.py index d9e52e28..6a5582c5 100644 --- a/azure-devops/azure/devops/v4_0/task_agent/__init__.py +++ b/azure-devops/azure/devops/v5_1/task_agent/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -11,9 +11,13 @@ __all__ = [ 'AadOauthTokenRequest', 'AadOauthTokenResult', + 'AuthenticationSchemeReference', 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', 'AzureSubscription', 'AzureSubscriptionQueryResult', + 'ClientCertificate', 'DataSource', 'DataSourceBinding', 'DataSourceBindingBase', @@ -22,13 +26,24 @@ 'DependencyData', 'DependsOn', 'DeploymentGroup', + 'DeploymentGroupCreateParameter', + 'DeploymentGroupCreateParameterPoolProperty', 'DeploymentGroupMetrics', 'DeploymentGroupReference', + 'DeploymentGroupUpdateParameter', 'DeploymentMachine', 'DeploymentMachineGroup', 'DeploymentMachineGroupReference', + 'DeploymentPoolSummary', + 'DeploymentTargetUpdateParameter', 'EndpointAuthorization', 'EndpointUrl', + 'EnvironmentCreateParameter', + 'EnvironmentDeploymentExecutionRecord', + 'EnvironmentInstance', + 'EnvironmentReference', + 'EnvironmentUpdateParameter', + 'GraphSubjectBase', 'HelpLink', 'IdentityRef', 'InputDescriptor', @@ -37,6 +52,9 @@ 'InputValue', 'InputValues', 'InputValuesError', + 'KubernetesServiceGroup', + 'KubernetesServiceGroupCreateParameters', + 'MarketplacePurchasedLicense', 'MetricsColumnMetaData', 'MetricsColumnsHeader', 'MetricsRow', @@ -45,6 +63,8 @@ 'ProjectReference', 'PublishTaskGroupMetadata', 'ReferenceLinks', + 'ResourceLimit', + 'ResourceUsage', 'ResultTransformationDetails', 'SecureFile', 'ServiceEndpoint', @@ -56,8 +76,14 @@ 'ServiceEndpointRequest', 'ServiceEndpointRequestResult', 'ServiceEndpointType', + 'ServiceGroup', + 'ServiceGroupReference', 'TaskAgent', 'TaskAgentAuthorization', + 'TaskAgentCloud', + 'TaskAgentCloudRequest', + 'TaskAgentCloudType', + 'TaskAgentDelaySource', 'TaskAgentJobRequest', 'TaskAgentMessage', 'TaskAgentPool', @@ -80,9 +106,11 @@ 'TaskDefinitionReference', 'TaskExecution', 'TaskGroup', + 'TaskGroupCreateParameter', 'TaskGroupDefinition', 'TaskGroupRevision', 'TaskGroupStep', + 'TaskGroupUpdateParameter', 'TaskHubLicenseDetails', 'TaskInputDefinition', 'TaskInputDefinitionBase', @@ -96,6 +124,10 @@ 'TaskVersion', 'ValidationItem', 'VariableGroup', + 'VariableGroupParameters', 'VariableGroupProviderData', 'VariableValue', + 'VirtualMachine', + 'VirtualMachineGroup', + 'VirtualMachineGroupCreateParameters', ] diff --git a/azure-devops/azure/devops/v4_0/task_agent/models.py b/azure-devops/azure/devops/v5_1/task_agent/models.py similarity index 58% rename from azure-devops/azure/devops/v4_0/task_agent/models.py rename to azure-devops/azure/devops/v5_1/task_agent/models.py index 7c0e2367..b7ad9750 100644 --- a/azure-devops/azure/devops/v4_0/task_agent/models.py +++ b/azure-devops/azure/devops/v5_1/task_agent/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -57,12 +57,32 @@ def __init__(self, access_token=None, refresh_token_cache=None): self.refresh_token_cache = refresh_token_cache +class AuthenticationSchemeReference(Model): + """AuthenticationSchemeReference. + + :param inputs: + :type inputs: dict + :param type: + :type type: str + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, inputs=None, type=None): + super(AuthenticationSchemeReference, self).__init__() + self.inputs = inputs + self.type = type + + class AuthorizationHeader(Model): """AuthorizationHeader. - :param name: + :param name: Gets or sets the name of authorization header. :type name: str - :param value: + :param value: Gets or sets the value of authorization header. :type value: str """ @@ -77,6 +97,54 @@ def __init__(self, name=None, value=None): self.value = value +class AzureManagementGroup(Model): + """AzureManagementGroup. + + :param display_name: Display name of azure management group + :type display_name: str + :param id: Id of azure management group + :type id: str + :param name: Azure management group name + :type name: str + :param tenant_id: Id of tenant from which azure management group belogs + :type tenant_id: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'} + } + + def __init__(self, display_name=None, id=None, name=None, tenant_id=None): + super(AzureManagementGroup, self).__init__() + self.display_name = display_name + self.id = id + self.name = name + self.tenant_id = tenant_id + + +class AzureManagementGroupQueryResult(Model): + """AzureManagementGroupQueryResult. + + :param error_message: Error message in case of an exception + :type error_message: str + :param value: List of azure management groups + :type value: list of :class:`AzureManagementGroup ` + """ + + _attribute_map = { + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[AzureManagementGroup]'} + } + + def __init__(self, error_message=None, value=None): + super(AzureManagementGroupQueryResult, self).__init__() + self.error_message = error_message + self.value = value + + class AzureSubscription(Model): """AzureSubscription. @@ -111,7 +179,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -125,11 +193,31 @@ def __init__(self, error_message=None, value=None): self.value = value +class ClientCertificate(Model): + """ClientCertificate. + + :param value: Gets or sets the value of client certificate. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, value=None): + super(ClientCertificate, self).__init__() + self.value = value + + class DataSource(Model): """DataSource. + :param authentication_scheme: + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param endpoint_url: :type endpoint_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` :param name: :type name: str :param resource_url: @@ -139,15 +227,19 @@ class DataSource(Model): """ _attribute_map = { + 'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, 'name': {'key': 'name', 'type': 'str'}, 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'} } - def __init__(self, endpoint_url=None, name=None, resource_url=None, result_selector=None): + def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None): super(DataSource, self).__init__() + self.authentication_scheme = authentication_scheme self.endpoint_url = endpoint_url + self.headers = headers self.name = name self.resource_url = resource_url self.result_selector = result_selector @@ -156,38 +248,62 @@ def __init__(self, endpoint_url=None, name=None, resource_url=None, result_selec class DataSourceBindingBase(Model): """DataSourceBindingBase. - :param data_source_name: + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str + :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str - :param endpoint_id: + :param endpoint_id: Gets or sets the endpoint Id. :type endpoint_id: str - :param endpoint_url: + :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str - :param parameters: + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str + :param parameters: Gets or sets the parameters for the data source. :type parameters: dict - :param result_selector: + :param request_content: Gets or sets http request body + :type request_content: str + :param request_verb: Gets or sets http request verb + :type request_verb: str + :param result_selector: Gets or sets the result selector. :type result_selector: str - :param result_template: + :param result_template: Gets or sets the result template. :type result_template: str - :param target: + :param target: Gets or sets the target of the data source. :type target: str """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'} } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, result_selector=None, result_template=None, target=None): super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template self.data_source_name = data_source_name self.endpoint_id = endpoint_id self.endpoint_url = endpoint_url + self.headers = headers + self.initial_context_template = initial_context_template self.parameters = parameters + self.request_content = request_content + self.request_verb = request_verb self.result_selector = result_selector self.result_template = result_template self.target = target @@ -200,6 +316,8 @@ class DataSourceDetails(Model): :type data_source_name: str :param data_source_url: :type data_source_url: str + :param headers: + :type headers: list of :class:`AuthorizationHeader ` :param parameters: :type parameters: dict :param resource_url: @@ -211,15 +329,17 @@ class DataSourceDetails(Model): _attribute_map = { 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, 'resource_url': {'key': 'resourceUrl', 'type': 'str'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'} } - def __init__(self, data_source_name=None, data_source_url=None, parameters=None, resource_url=None, result_selector=None): + def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None): super(DataSourceDetails, self).__init__() self.data_source_name = data_source_name self.data_source_url = data_source_url + self.headers = headers self.parameters = parameters self.resource_url = resource_url self.result_selector = result_selector @@ -271,7 +391,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -285,15 +405,59 @@ def __init__(self, input=None, map=None): self.map = map +class DeploymentGroupCreateParameter(Model): + """DeploymentGroupCreateParameter. + + :param description: Description of the deployment group. + :type description: str + :param name: Name of the deployment group. + :type name: str + :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :param pool_id: Identifier of the deployment pool in which deployment agents are registered. + :type pool_id: int + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool': {'key': 'pool', 'type': 'DeploymentGroupCreateParameterPoolProperty'}, + 'pool_id': {'key': 'poolId', 'type': 'int'} + } + + def __init__(self, description=None, name=None, pool=None, pool_id=None): + super(DeploymentGroupCreateParameter, self).__init__() + self.description = description + self.name = name + self.pool = pool + self.pool_id = pool_id + + +class DeploymentGroupCreateParameterPoolProperty(Model): + """DeploymentGroupCreateParameterPoolProperty. + + :param id: Deployment pool identifier. + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(DeploymentGroupCreateParameterPoolProperty, self).__init__() + self.id = id + + class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. - :param columns_header: - :type columns_header: :class:`MetricsColumnsHeader ` - :param deployment_group: - :type deployment_group: :class:`DeploymentGroupReference ` - :param rows: - :type rows: list of :class:`MetricsRow ` + :param columns_header: List of deployment group properties. And types of metrics provided for those properties. + :type columns_header: :class:`MetricsColumnsHeader ` + :param deployment_group: Deployment group. + :type deployment_group: :class:`DeploymentGroupReference ` + :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. + :type rows: list of :class:`MetricsRow ` """ _attribute_map = { @@ -312,14 +476,14 @@ def __init__(self, columns_header=None, deployment_group=None, rows=None): class DeploymentGroupReference(Model): """DeploymentGroupReference. - :param id: + :param id: Deployment group identifier. :type id: int - :param name: + :param name: Name of the deployment group. :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` + :param pool: Deployment pool in which deployment agents are registered. + :type pool: :class:`TaskAgentPoolReference ` + :param project: Project to which the deployment group belongs. + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -337,27 +501,51 @@ def __init__(self, id=None, name=None, pool=None, project=None): self.project = project +class DeploymentGroupUpdateParameter(Model): + """DeploymentGroupUpdateParameter. + + :param description: Description of the deployment group. + :type description: str + :param name: Name of the deployment group. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(DeploymentGroupUpdateParameter, self).__init__() + self.description = description + self.name = name + + class DeploymentMachine(Model): """DeploymentMachine. - :param agent: - :type agent: :class:`TaskAgent ` - :param id: + :param agent: Deployment agent. + :type agent: :class:`TaskAgent ` + :param id: Deployment target Identifier. :type id: int - :param tags: + :param properties: Properties of the deployment target. + :type properties: :class:`object ` + :param tags: Tags of the deployment target. :type tags: list of str """ _attribute_map = { 'agent': {'key': 'agent', 'type': 'TaskAgent'}, 'id': {'key': 'id', 'type': 'int'}, + 'properties': {'key': 'properties', 'type': 'object'}, 'tags': {'key': 'tags', 'type': '[str]'} } - def __init__(self, agent=None, id=None, tags=None): + def __init__(self, agent=None, id=None, properties=None, tags=None): super(DeploymentMachine, self).__init__() self.agent = agent self.id = id + self.properties = properties self.tags = tags @@ -369,9 +557,9 @@ class DeploymentMachineGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -389,12 +577,60 @@ def __init__(self, id=None, name=None, pool=None, project=None): self.project = project +class DeploymentPoolSummary(Model): + """DeploymentPoolSummary. + + :param deployment_groups: List of deployment groups referring to the deployment pool. + :type deployment_groups: list of :class:`DeploymentGroupReference ` + :param offline_agents_count: Number of deployment agents that are offline. + :type offline_agents_count: int + :param online_agents_count: Number of deployment agents that are online. + :type online_agents_count: int + :param pool: Deployment pool. + :type pool: :class:`TaskAgentPoolReference ` + """ + + _attribute_map = { + 'deployment_groups': {'key': 'deploymentGroups', 'type': '[DeploymentGroupReference]'}, + 'offline_agents_count': {'key': 'offlineAgentsCount', 'type': 'int'}, + 'online_agents_count': {'key': 'onlineAgentsCount', 'type': 'int'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'} + } + + def __init__(self, deployment_groups=None, offline_agents_count=None, online_agents_count=None, pool=None): + super(DeploymentPoolSummary, self).__init__() + self.deployment_groups = deployment_groups + self.offline_agents_count = offline_agents_count + self.online_agents_count = online_agents_count + self.pool = pool + + +class DeploymentTargetUpdateParameter(Model): + """DeploymentTargetUpdateParameter. + + :param id: Identifier of the deployment target. + :type id: int + :param tags: + :type tags: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, id=None, tags=None): + super(DeploymentTargetUpdateParameter, self).__init__() + self.id = id + self.tags = tags + + class EndpointAuthorization(Model): """EndpointAuthorization. - :param parameters: + :param parameters: Gets or sets the parameters for the selected authorization scheme. :type parameters: dict - :param scheme: + :param scheme: Gets or sets the scheme used for service endpoint authentication. :type scheme: str """ @@ -412,15 +648,15 @@ def __init__(self, parameters=None, scheme=None): class EndpointUrl(Model): """EndpointUrl. - :param depends_on: - :type depends_on: :class:`DependsOn ` - :param display_name: + :param depends_on: Gets or sets the dependency bindings. + :type depends_on: :class:`DependsOn ` + :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str - :param help_text: + :param help_text: Gets or sets the help text of service endpoint url. :type help_text: str - :param is_visible: + :param is_visible: Gets or sets the visibility of service endpoint url. :type is_visible: str - :param value: + :param value: Gets or sets the value of service endpoint url. :type value: str """ @@ -441,6 +677,206 @@ def __init__(self, depends_on=None, display_name=None, help_text=None, is_visibl self.value = value +class EnvironmentCreateParameter(Model): + """EnvironmentCreateParameter. + + :param description: Description of the environment. + :type description: str + :param name: Name of the environment. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(EnvironmentCreateParameter, self).__init__() + self.description = description + self.name = name + + +class EnvironmentDeploymentExecutionRecord(Model): + """EnvironmentDeploymentExecutionRecord. + + :param definition: Definition of the environment deployment execution owner + :type definition: :class:`TaskOrchestrationOwner ` + :param environment_id: Id of the Environment + :type environment_id: int + :param finish_time: Finish time of the environment deployment execution + :type finish_time: datetime + :param id: Id of the Environment deployment execution history record + :type id: long + :param owner: Owner of the environment deployment execution record + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_id: Plan Id + :type plan_id: str + :param plan_type: Plan type of the environment deployment execution record + :type plan_type: str + :param queue_time: Queue time of the environment deployment execution + :type queue_time: datetime + :param request_identifier: Request identifier of the Environment deployment execution history record + :type request_identifier: str + :param result: Result of the environment deployment execution + :type result: object + :param scope_id: Project Id + :type scope_id: str + :param service_group_id: Service group Id + :type service_group_id: int + :param service_owner: Service owner Id + :type service_owner: str + :param start_time: Start time of the environment deployment execution + :type start_time: datetime + """ + + _attribute_map = { + 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, + 'environment_id': {'key': 'environmentId', 'type': 'int'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'long'}, + 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_id': {'key': 'planId', 'type': 'str'}, + 'plan_type': {'key': 'planType', 'type': 'str'}, + 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, + 'request_identifier': {'key': 'requestIdentifier', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'object'}, + 'scope_id': {'key': 'scopeId', 'type': 'str'}, + 'service_group_id': {'key': 'serviceGroupId', 'type': 'int'}, + 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'} + } + + def __init__(self, definition=None, environment_id=None, finish_time=None, id=None, owner=None, plan_id=None, plan_type=None, queue_time=None, request_identifier=None, result=None, scope_id=None, service_group_id=None, service_owner=None, start_time=None): + super(EnvironmentDeploymentExecutionRecord, self).__init__() + self.definition = definition + self.environment_id = environment_id + self.finish_time = finish_time + self.id = id + self.owner = owner + self.plan_id = plan_id + self.plan_type = plan_type + self.queue_time = queue_time + self.request_identifier = request_identifier + self.result = result + self.scope_id = scope_id + self.service_group_id = service_group_id + self.service_owner = service_owner + self.start_time = start_time + + +class EnvironmentInstance(Model): + """EnvironmentInstance. + + :param created_by: Identity reference of the user who created the Environment. + :type created_by: :class:`IdentityRef ` + :param created_on: Creation time of the Environment + :type created_on: datetime + :param description: Description of the Environment. + :type description: str + :param id: Id of the Environment + :type id: int + :param last_modified_by: Identity reference of the user who last modified the Environment. + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: Last modified time of the Environment + :type last_modified_on: datetime + :param name: Name of the Environment. + :type name: str + :param service_groups: + :type service_groups: list of :class:`ServiceGroupReference ` + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_groups': {'key': 'serviceGroups', 'type': '[ServiceGroupReference]'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, last_modified_by=None, last_modified_on=None, name=None, service_groups=None): + super(EnvironmentInstance, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.name = name + self.service_groups = service_groups + + +class EnvironmentReference(Model): + """EnvironmentReference. + + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(EnvironmentReference, self).__init__() + self.id = id + self.name = name + + +class EnvironmentUpdateParameter(Model): + """EnvironmentUpdateParameter. + + :param description: Description of the environment. + :type description: str + :param name: Name of the environment. + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, name=None): + super(EnvironmentUpdateParameter, self).__init__() + self.description = description + self.name = name + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 HelpLink(Model): """HelpLink. @@ -461,56 +897,64 @@ def __init__(self, text=None, url=None): self.url = url -class IdentityRef(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class InputDescriptor(Model): @@ -539,11 +983,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -671,7 +1115,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -681,7 +1125,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -721,12 +1165,60 @@ def __init__(self, message=None): self.message = message +class KubernetesServiceGroupCreateParameters(Model): + """KubernetesServiceGroupCreateParameters. + + :param name: + :type name: str + :param namespace: + :type namespace: str + :param service_endpoint_id: + :type service_endpoint_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'} + } + + def __init__(self, name=None, namespace=None, service_endpoint_id=None): + super(KubernetesServiceGroupCreateParameters, self).__init__() + self.name = name + self.namespace = namespace + self.service_endpoint_id = service_endpoint_id + + +class MarketplacePurchasedLicense(Model): + """MarketplacePurchasedLicense. + + :param marketplace_name: The Marketplace display name. + :type marketplace_name: str + :param purchaser_name: The name of the identity making the purchase as seen by the marketplace + :type purchaser_name: str + :param purchase_unit_count: The quantity purchased. + :type purchase_unit_count: int + """ + + _attribute_map = { + 'marketplace_name': {'key': 'marketplaceName', 'type': 'str'}, + 'purchaser_name': {'key': 'purchaserName', 'type': 'str'}, + 'purchase_unit_count': {'key': 'purchaseUnitCount', 'type': 'int'} + } + + def __init__(self, marketplace_name=None, purchaser_name=None, purchase_unit_count=None): + super(MarketplacePurchasedLicense, self).__init__() + self.marketplace_name = marketplace_name + self.purchaser_name = purchaser_name + self.purchase_unit_count = purchase_unit_count + + class MetricsColumnMetaData(Model): """MetricsColumnMetaData. - :param column_name: + :param column_name: Name. :type column_name: str - :param column_value_type: + :param column_value_type: Data type. :type column_value_type: str """ @@ -744,10 +1236,10 @@ def __init__(self, column_name=None, column_value_type=None): class MetricsColumnsHeader(Model): """MetricsColumnsHeader. - :param dimensions: - :type dimensions: list of :class:`MetricsColumnMetaData ` - :param metrics: - :type metrics: list of :class:`MetricsColumnMetaData ` + :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState + :type dimensions: list of :class:`MetricsColumnMetaData ` + :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. + :type metrics: list of :class:`MetricsColumnMetaData ` """ _attribute_map = { @@ -764,9 +1256,9 @@ def __init__(self, dimensions=None, metrics=None): class MetricsRow(Model): """MetricsRow. - :param dimensions: + :param dimensions: The values of the properties mentioned as 'Dimensions' in column header. E.g. 1: For a property 'LastJobStatus' - metrics will be provided for 'passed', 'failed', etc. E.g. 2: For a property 'TargetState' - metrics will be provided for 'online', 'offline' targets. :type dimensions: list of str - :param metrics: + :param metrics: Metrics in serialized format. Should be deserialized based on the data type provided in header. :type metrics: list of str """ @@ -799,7 +1291,7 @@ class PackageMetadata(Model): :param type: The type of package (e.g. "agent") :type type: str :param version: The package version. - :type version: :class:`PackageVersion ` + :type version: :class:`PackageVersion ` """ _attribute_map = { @@ -917,6 +1409,78 @@ def __init__(self, links=None): self.links = links +class ResourceLimit(Model): + """ResourceLimit. + + :param failed_to_reach_all_providers: + :type failed_to_reach_all_providers: bool + :param host_id: + :type host_id: str + :param is_hosted: + :type is_hosted: bool + :param is_premium: + :type is_premium: bool + :param parallelism_tag: + :type parallelism_tag: str + :param resource_limits_data: + :type resource_limits_data: dict + :param total_count: + :type total_count: int + :param total_minutes: + :type total_minutes: int + """ + + _attribute_map = { + 'failed_to_reach_all_providers': {'key': 'failedToReachAllProviders', 'type': 'bool'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, + 'is_premium': {'key': 'isPremium', 'type': 'bool'}, + 'parallelism_tag': {'key': 'parallelismTag', 'type': 'str'}, + 'resource_limits_data': {'key': 'resourceLimitsData', 'type': '{str}'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'total_minutes': {'key': 'totalMinutes', 'type': 'int'} + } + + def __init__(self, failed_to_reach_all_providers=None, host_id=None, is_hosted=None, is_premium=None, parallelism_tag=None, resource_limits_data=None, total_count=None, total_minutes=None): + super(ResourceLimit, self).__init__() + self.failed_to_reach_all_providers = failed_to_reach_all_providers + self.host_id = host_id + self.is_hosted = is_hosted + self.is_premium = is_premium + self.parallelism_tag = parallelism_tag + self.resource_limits_data = resource_limits_data + self.total_count = total_count + self.total_minutes = total_minutes + + +class ResourceUsage(Model): + """ResourceUsage. + + :param resource_limit: + :type resource_limit: :class:`ResourceLimit ` + :param running_requests: + :type running_requests: list of :class:`TaskAgentJobRequest ` + :param used_count: + :type used_count: int + :param used_minutes: + :type used_minutes: int + """ + + _attribute_map = { + 'resource_limit': {'key': 'resourceLimit', 'type': 'ResourceLimit'}, + 'running_requests': {'key': 'runningRequests', 'type': '[TaskAgentJobRequest]'}, + 'used_count': {'key': 'usedCount', 'type': 'int'}, + 'used_minutes': {'key': 'usedMinutes', 'type': 'int'} + } + + def __init__(self, resource_limit=None, running_requests=None, used_count=None, used_minutes=None): + super(ResourceUsage, self).__init__() + self.resource_limit = resource_limit + self.running_requests = running_requests + self.used_count = used_count + self.used_minutes = used_minutes + + class ResultTransformationDetails(Model): """ResultTransformationDetails. @@ -937,13 +1501,13 @@ class SecureFile(Model): """SecureFile. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: @@ -980,15 +1544,15 @@ def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, class ServiceEndpoint(Model): """ServiceEndpoint. - :param administrators_group: - :type administrators_group: :class:`IdentityRef ` + :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` - :param created_by: The Gets or sets Identity reference for the user who created the Service endpoint - :type created_by: :class:`IdentityRef ` + :type authorization: :class:`EndpointAuthorization ` + :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. + :type created_by: :class:`IdentityRef ` :param data: :type data: dict - :param description: Gets or Sets description of endpoint + :param description: Gets or sets the description of endpoint. :type description: str :param group_scope_id: :type group_scope_id: str @@ -996,12 +1560,14 @@ class ServiceEndpoint(Model): :type id: str :param is_ready: EndPoint state indictor :type is_ready: bool + :param is_shared: Indicates whether service endpoint is shared with other projects or not. + :type is_shared: bool :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` - :param readers_group: - :type readers_group: :class:`IdentityRef ` + :type operation_status: :class:`object ` + :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1017,6 +1583,7 @@ class ServiceEndpoint(Model): 'group_scope_id': {'key': 'groupScopeId', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'is_ready': {'key': 'isReady', 'type': 'bool'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'operation_status': {'key': 'operationStatus', 'type': 'object'}, 'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'}, @@ -1024,7 +1591,7 @@ class ServiceEndpoint(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, name=None, operation_status=None, readers_group=None, type=None, url=None): + def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, is_shared=None, name=None, operation_status=None, readers_group=None, type=None, url=None): super(ServiceEndpoint, self).__init__() self.administrators_group = administrators_group self.authorization = authorization @@ -1034,6 +1601,7 @@ def __init__(self, administrators_group=None, authorization=None, created_by=Non self.group_scope_id = group_scope_id self.id = id self.is_ready = is_ready + self.is_shared = is_shared self.name = name self.operation_status = operation_status self.readers_group = readers_group @@ -1044,26 +1612,30 @@ def __init__(self, administrators_group=None, authorization=None, created_by=Non class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. - :param authorization_headers: - :type authorization_headers: list of :class:`AuthorizationHeader ` - :param display_name: + :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. + :type authorization_headers: list of :class:`AuthorizationHeader ` + :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. + :type client_certificates: list of :class:`ClientCertificate ` + :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` - :param scheme: + :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. + :type input_descriptors: list of :class:`InputDescriptor ` + :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ _attribute_map = { 'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'}, + 'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, 'scheme': {'key': 'scheme', 'type': 'str'} } - def __init__(self, authorization_headers=None, display_name=None, input_descriptors=None, scheme=None): + def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None): super(ServiceEndpointAuthenticationScheme, self).__init__() self.authorization_headers = authorization_headers + self.client_certificates = client_certificates self.display_name = display_name self.input_descriptors = input_descriptors self.scheme = scheme @@ -1073,7 +1645,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: :type data: dict :param type: @@ -1100,19 +1672,19 @@ def __init__(self, authorization=None, data=None, type=None, url=None): class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. - :param definition: - :type definition: :class:`TaskOrchestrationOwner ` - :param finish_time: + :param definition: Gets the definition of service endpoint execution owner. + :type definition: :class:`TaskOrchestrationOwner ` + :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime - :param id: + :param id: Gets the Id of service endpoint execution data. :type id: long - :param owner: - :type owner: :class:`TaskOrchestrationOwner ` - :param plan_type: + :param owner: Gets the owner of service endpoint execution data. + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str - :param result: + :param result: Gets the result of service endpoint execution. :type result: object - :param start_time: + :param start_time: Gets the start time of service endpoint execution. :type start_time: datetime """ @@ -1140,9 +1712,9 @@ def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. - :param data: - :type data: :class:`ServiceEndpointExecutionData ` - :param endpoint_id: + :param data: Gets the execution data of service endpoint execution. + :type data: :class:`ServiceEndpointExecutionData ` + :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1161,7 +1733,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1181,11 +1753,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1207,7 +1779,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: :type error_message: str :param result: - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: :type status_code: object """ @@ -1228,94 +1800,324 @@ def __init__(self, error_message=None, result=None, status_code=None): class ServiceEndpointType(Model): """ServiceEndpointType. - :param authentication_schemes: - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` - :param data_sources: - :type data_sources: list of :class:`DataSource ` - :param dependency_data: - :type dependency_data: list of :class:`DependencyData ` - :param description: + :param authentication_schemes: Authentication scheme of service endpoint type. + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :param data_sources: Data sources of service endpoint type. + :type data_sources: list of :class:`DataSource ` + :param dependency_data: Dependency data of service endpoint type. + :type dependency_data: list of :class:`DependencyData ` + :param description: Gets or sets the description of service endpoint type. :type description: str - :param display_name: + :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str - :param endpoint_url: - :type endpoint_url: :class:`EndpointUrl ` - :param help_link: - :type help_link: :class:`HelpLink ` + :param endpoint_url: Gets or sets the endpoint url of service endpoint type. + :type endpoint_url: :class:`EndpointUrl ` + :param help_link: Gets or sets the help link of service endpoint type. + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str - :param icon_url: + :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str - :param input_descriptors: - :type input_descriptors: list of :class:`InputDescriptor ` + :param input_descriptors: Input descriptor of service endpoint type. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of service endpoint type. + :type name: str + :param trusted_hosts: Trusted hosts of a service endpoint type. + :type trusted_hosts: list of str + :param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type. + :type ui_contribution_id: str + """ + + _attribute_map = { + 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, + 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, + 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, + 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'}, + 'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'} + } + + def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None): + super(ServiceEndpointType, self).__init__() + self.authentication_schemes = authentication_schemes + self.data_sources = data_sources + self.dependency_data = dependency_data + self.description = description + self.display_name = display_name + self.endpoint_url = endpoint_url + self.help_link = help_link + self.help_mark_down = help_mark_down + self.icon_url = icon_url + self.input_descriptors = input_descriptors + self.name = name + self.trusted_hosts = trusted_hosts + self.ui_contribution_id = ui_contribution_id + + +class ServiceGroup(Model): + """ServiceGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param environment_reference: + :type environment_reference: :class:`EnvironmentReference ` + :param id: + :type id: int + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime :param name: :type name: str + :param type: + :type type: object + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'environment_reference': {'key': 'environmentReference', 'type': 'EnvironmentReference'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, created_by=None, created_on=None, environment_reference=None, id=None, last_modified_by=None, last_modified_on=None, name=None, type=None): + super(ServiceGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.environment_reference = environment_reference + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.name = name + self.type = type + + +class ServiceGroupReference(Model): + """ServiceGroupReference. + + :param id: Id of the Service Group. + :type id: int + :param name: Name of the service group. + :type name: str + :param type: Type of the service group. + :type type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, id=None, name=None, type=None): + super(ServiceGroupReference, self).__init__() + self.id = id + self.name = name + self.type = type + + +class TaskAgentAuthorization(Model): + """TaskAgentAuthorization. + + :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. + :type authorization_url: str + :param client_id: Gets or sets the client identifier for this agent. + :type client_id: str + :param public_key: Gets or sets the public key used to verify the identity of this agent. + :type public_key: :class:`TaskAgentPublicKey ` + """ + + _attribute_map = { + 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} + } + + def __init__(self, authorization_url=None, client_id=None, public_key=None): + super(TaskAgentAuthorization, self).__init__() + self.authorization_url = authorization_url + self.client_id = client_id + self.public_key = public_key + + +class TaskAgentCloud(Model): + """TaskAgentCloud. + + :param acquire_agent_endpoint: Gets or sets a AcquireAgentEndpoint using which a request can be made to acquire new agent + :type acquire_agent_endpoint: str + :param acquisition_timeout: + :type acquisition_timeout: int + :param agent_cloud_id: + :type agent_cloud_id: int + :param get_agent_definition_endpoint: + :type get_agent_definition_endpoint: str + :param get_agent_request_status_endpoint: + :type get_agent_request_status_endpoint: str + :param internal: Signifies that this Agent Cloud is internal and should not be user-manageable + :type internal: bool + :param name: + :type name: str + :param release_agent_endpoint: + :type release_agent_endpoint: str + :param shared_secret: + :type shared_secret: str + :param type: Gets or sets the type of the endpoint. + :type type: str + """ + + _attribute_map = { + 'acquire_agent_endpoint': {'key': 'acquireAgentEndpoint', 'type': 'str'}, + 'acquisition_timeout': {'key': 'acquisitionTimeout', 'type': 'int'}, + 'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'}, + 'get_agent_definition_endpoint': {'key': 'getAgentDefinitionEndpoint', 'type': 'str'}, + 'get_agent_request_status_endpoint': {'key': 'getAgentRequestStatusEndpoint', 'type': 'str'}, + 'internal': {'key': 'internal', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release_agent_endpoint': {'key': 'releaseAgentEndpoint', 'type': 'str'}, + 'shared_secret': {'key': 'sharedSecret', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, acquire_agent_endpoint=None, acquisition_timeout=None, agent_cloud_id=None, get_agent_definition_endpoint=None, get_agent_request_status_endpoint=None, internal=None, name=None, release_agent_endpoint=None, shared_secret=None, type=None): + super(TaskAgentCloud, self).__init__() + self.acquire_agent_endpoint = acquire_agent_endpoint + self.acquisition_timeout = acquisition_timeout + self.agent_cloud_id = agent_cloud_id + self.get_agent_definition_endpoint = get_agent_definition_endpoint + self.get_agent_request_status_endpoint = get_agent_request_status_endpoint + self.internal = internal + self.name = name + self.release_agent_endpoint = release_agent_endpoint + self.shared_secret = shared_secret + self.type = type + + +class TaskAgentCloudRequest(Model): + """TaskAgentCloudRequest. + + :param agent: + :type agent: :class:`TaskAgentReference ` + :param agent_cloud_id: + :type agent_cloud_id: int + :param agent_connected_time: + :type agent_connected_time: datetime + :param agent_data: + :type agent_data: :class:`object ` + :param agent_specification: + :type agent_specification: :class:`object ` + :param pool: + :type pool: :class:`TaskAgentPoolReference ` + :param provisioned_time: + :type provisioned_time: datetime + :param provision_request_time: + :type provision_request_time: datetime + :param release_request_time: + :type release_request_time: datetime + :param request_id: + :type request_id: str + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgentReference'}, + 'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'}, + 'agent_connected_time': {'key': 'agentConnectedTime', 'type': 'iso-8601'}, + 'agent_data': {'key': 'agentData', 'type': 'object'}, + 'agent_specification': {'key': 'agentSpecification', 'type': 'object'}, + 'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}, + 'provisioned_time': {'key': 'provisionedTime', 'type': 'iso-8601'}, + 'provision_request_time': {'key': 'provisionRequestTime', 'type': 'iso-8601'}, + 'release_request_time': {'key': 'releaseRequestTime', 'type': 'iso-8601'}, + 'request_id': {'key': 'requestId', 'type': 'str'} + } + + def __init__(self, agent=None, agent_cloud_id=None, agent_connected_time=None, agent_data=None, agent_specification=None, pool=None, provisioned_time=None, provision_request_time=None, release_request_time=None, request_id=None): + super(TaskAgentCloudRequest, self).__init__() + self.agent = agent + self.agent_cloud_id = agent_cloud_id + self.agent_connected_time = agent_connected_time + self.agent_data = agent_data + self.agent_specification = agent_specification + self.pool = pool + self.provisioned_time = provisioned_time + self.provision_request_time = provision_request_time + self.release_request_time = release_request_time + self.request_id = request_id + + +class TaskAgentCloudType(Model): + """TaskAgentCloudType. + + :param display_name: Gets or sets the display name of agnet cloud type. + :type display_name: str + :param input_descriptors: Gets or sets the input descriptors + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of agent cloud type. + :type name: str """ _attribute_map = { - 'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'}, - 'data_sources': {'key': 'dataSources', 'type': '[DataSource]'}, - 'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'}, - 'description': {'key': 'description', 'type': 'str'}, 'display_name': {'key': 'displayName', 'type': 'str'}, - 'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'}, - 'help_link': {'key': 'helpLink', 'type': 'HelpLink'}, - 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, - 'icon_url': {'key': 'iconUrl', 'type': 'str'}, 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None): - super(ServiceEndpointType, self).__init__() - self.authentication_schemes = authentication_schemes - self.data_sources = data_sources - self.dependency_data = dependency_data - self.description = description + def __init__(self, display_name=None, input_descriptors=None, name=None): + super(TaskAgentCloudType, self).__init__() self.display_name = display_name - self.endpoint_url = endpoint_url - self.help_link = help_link - self.help_mark_down = help_mark_down - self.icon_url = icon_url self.input_descriptors = input_descriptors self.name = name -class TaskAgentAuthorization(Model): - """TaskAgentAuthorization. +class TaskAgentDelaySource(Model): + """TaskAgentDelaySource. - :param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service. - :type authorization_url: str - :param client_id: Gets or sets the client identifier for this agent. - :type client_id: str - :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` + :param delays: + :type delays: list of object + :param task_agent: + :type task_agent: :class:`TaskAgentReference ` """ _attribute_map = { - 'authorization_url': {'key': 'authorizationUrl', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'} + 'delays': {'key': 'delays', 'type': '[object]'}, + 'task_agent': {'key': 'taskAgent', 'type': 'TaskAgentReference'} } - def __init__(self, authorization_url=None, client_id=None, public_key=None): - super(TaskAgentAuthorization, self).__init__() - self.authorization_url = authorization_url - self.client_id = client_id - self.public_key = public_key + def __init__(self, delays=None, task_agent=None): + super(TaskAgentDelaySource, self).__init__() + self.delays = delays + self.task_agent = task_agent class TaskAgentJobRequest(Model): """TaskAgentJobRequest. + :param agent_delays: + :type agent_delays: list of :class:`TaskAgentDelaySource ` + :param agent_specification: + :type agent_specification: :class:`object ` :param assign_time: :type assign_time: datetime :param data: :type data: dict :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` + :param expected_duration: + :type expected_duration: object :param finish_time: :type finish_time: datetime :param host_id: @@ -1327,13 +2129,23 @@ class TaskAgentJobRequest(Model): :param locked_until: :type locked_until: datetime :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` + :type matched_agents: list of :class:`TaskAgentReference ` + :param matches_all_agents_in_pool: + :type matches_all_agents_in_pool: bool + :param orchestration_id: + :type orchestration_id: str :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` + :param plan_group: + :type plan_group: str :param plan_id: :type plan_id: str :param plan_type: :type plan_type: str + :param pool_id: + :type pool_id: int + :param queue_id: + :type queue_id: int :param queue_time: :type queue_time: datetime :param receive_time: @@ -1341,53 +2153,72 @@ class TaskAgentJobRequest(Model): :param request_id: :type request_id: long :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` + :type reserved_agent: :class:`TaskAgentReference ` :param result: :type result: object :param scope_id: :type scope_id: str :param service_owner: :type service_owner: str + :param status_message: + :type status_message: str """ _attribute_map = { + 'agent_delays': {'key': 'agentDelays', 'type': '[TaskAgentDelaySource]'}, + 'agent_specification': {'key': 'agentSpecification', 'type': 'object'}, 'assign_time': {'key': 'assignTime', 'type': 'iso-8601'}, 'data': {'key': 'data', 'type': '{str}'}, 'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'}, 'demands': {'key': 'demands', 'type': '[object]'}, + 'expected_duration': {'key': 'expectedDuration', 'type': 'object'}, 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, 'host_id': {'key': 'hostId', 'type': 'str'}, 'job_id': {'key': 'jobId', 'type': 'str'}, 'job_name': {'key': 'jobName', 'type': 'str'}, 'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'}, 'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'}, + 'matches_all_agents_in_pool': {'key': 'matchesAllAgentsInPool', 'type': 'bool'}, + 'orchestration_id': {'key': 'orchestrationId', 'type': 'str'}, 'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'}, + 'plan_group': {'key': 'planGroup', 'type': 'str'}, 'plan_id': {'key': 'planId', 'type': 'str'}, 'plan_type': {'key': 'planType', 'type': 'str'}, + 'pool_id': {'key': 'poolId', 'type': 'int'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, 'queue_time': {'key': 'queueTime', 'type': 'iso-8601'}, 'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'}, 'request_id': {'key': 'requestId', 'type': 'long'}, 'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'}, 'result': {'key': 'result', 'type': 'object'}, 'scope_id': {'key': 'scopeId', 'type': 'str'}, - 'service_owner': {'key': 'serviceOwner', 'type': 'str'} + 'service_owner': {'key': 'serviceOwner', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'} } - def __init__(self, assign_time=None, data=None, definition=None, demands=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, owner=None, plan_id=None, plan_type=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None): + def __init__(self, agent_delays=None, agent_specification=None, assign_time=None, data=None, definition=None, demands=None, expected_duration=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, matches_all_agents_in_pool=None, orchestration_id=None, owner=None, plan_group=None, plan_id=None, plan_type=None, pool_id=None, queue_id=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None, status_message=None): super(TaskAgentJobRequest, self).__init__() + self.agent_delays = agent_delays + self.agent_specification = agent_specification self.assign_time = assign_time self.data = data self.definition = definition self.demands = demands + self.expected_duration = expected_duration self.finish_time = finish_time self.host_id = host_id self.job_id = job_id self.job_name = job_name self.locked_until = locked_until self.matched_agents = matched_agents + self.matches_all_agents_in_pool = matches_all_agents_in_pool + self.orchestration_id = orchestration_id self.owner = owner + self.plan_group = plan_group self.plan_id = plan_id self.plan_type = plan_type + self.pool_id = pool_id + self.queue_id = queue_id self.queue_time = queue_time self.receive_time = receive_time self.request_id = request_id @@ -1395,6 +2226,7 @@ def __init__(self, assign_time=None, data=None, definition=None, demands=None, f self.result = result self.scope_id = scope_id self.service_owner = service_owner + self.status_message = status_message class TaskAgentMessage(Model): @@ -1437,13 +2269,13 @@ class TaskAgentPoolMaintenanceDefinition(Model): :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time :type max_concurrent_agents_percentage: int :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :type options: :class:`TaskAgentPoolMaintenanceOptions ` :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` """ _attribute_map = { @@ -1485,11 +2317,11 @@ class TaskAgentPoolMaintenanceJob(Model): :param orchestration_id: Orchestration/Plan Id for the maintenance job :type orchestration_id: str :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param queue_time: Time that the maintenance job was queued :type queue_time: datetime :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param result: The maintenance job result :type result: object :param start_time: Time that the maintenance job was started @@ -1497,7 +2329,7 @@ class TaskAgentPoolMaintenanceJob(Model): :param status: Status of the maintenance job :type status: object :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` :param warning_count: The total warning counts during the maintenance job :type warning_count: int """ @@ -1541,7 +2373,7 @@ class TaskAgentPoolMaintenanceJobTargetAgent(Model): """TaskAgentPoolMaintenanceJobTargetAgent. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param job_id: :type job_id: int :param result: @@ -1642,6 +2474,8 @@ class TaskAgentPoolReference(Model): :type pool_type: object :param scope: :type scope: str + :param size: Gets the current size of the pool. + :type size: int """ _attribute_map = { @@ -1649,16 +2483,18 @@ class TaskAgentPoolReference(Model): 'is_hosted': {'key': 'isHosted', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'pool_type': {'key': 'poolType', 'type': 'object'}, - 'scope': {'key': 'scope', 'type': 'str'} + 'scope': {'key': 'scope', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'int'} } - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None): + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None): super(TaskAgentPoolReference, self).__init__() self.id = id self.is_hosted = is_hosted self.name = name self.pool_type = pool_type self.scope = scope + self.size = size class TaskAgentPublicKey(Model): @@ -1684,13 +2520,13 @@ def __init__(self, exponent=None, modulus=None): class TaskAgentQueue(Model): """TaskAgentQueue. - :param id: + :param id: Id of the queue :type id: int - :param name: + :param name: Name of the queue :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project_id: + :param pool: Pool reference for this queue + :type pool: :class:`TaskAgentPoolReference ` + :param project_id: Project Id :type project_id: str """ @@ -1713,13 +2549,19 @@ class TaskAgentReference(Model): """TaskAgentReference. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param access_point: Gets the access point of the agent. + :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. :type id: int :param name: Gets the name of the agent. :type name: str + :param oSDescription: Gets the OS of the agent. + :type oSDescription: str + :param provisioning_state: Gets or sets the current provisioning state of this agent + :type provisioning_state: str :param status: Gets the current connectivity status of the agent. :type status: object :param version: Gets the version of the agent. @@ -1728,19 +2570,25 @@ class TaskAgentReference(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'access_point': {'key': 'accessPoint', 'type': 'str'}, 'enabled': {'key': 'enabled', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'}, + 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'}, 'version': {'key': 'version', 'type': 'str'} } - def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None): + def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, oSDescription=None, provisioning_state=None, status=None, version=None): super(TaskAgentReference, self).__init__() self._links = _links + self.access_point = access_point self.enabled = enabled self.id = id self.name = name + self.oSDescription = oSDescription + self.provisioning_state = provisioning_state self.status = status self.version = version @@ -1749,9 +2597,9 @@ class TaskAgentSession(Model): """TaskAgentSession. :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` + :type encryption_key: :class:`TaskAgentSessionKey ` :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. :type owner_name: str :param session_id: Gets the unique identifier for this session. @@ -1803,15 +2651,15 @@ class TaskAgentUpdate(Model): :param current_state: The current state of this agent update :type current_state: str :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` + :type reason: :class:`TaskAgentUpdateReason ` :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_time: Gets the date on which this agent update was requested. :type request_time: datetime :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` + :type source_version: :class:`PackageVersion ` :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` + :type target_version: :class:`PackageVersion ` """ _attribute_map = { @@ -1853,7 +2701,7 @@ class TaskDefinition(Model): """TaskDefinition. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -1865,23 +2713,25 @@ class TaskDefinition(Model): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: :type description: str :param disabled: :type disabled: bool + :param ecosystem: + :type ecosystem: str :param execution: :type execution: dict :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -1891,7 +2741,7 @@ class TaskDefinition(Model): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -1899,11 +2749,15 @@ class TaskDefinition(Model): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: :type package_type: str + :param post_job_execution: + :type post_job_execution: dict + :param pre_job_execution: + :type pre_job_execution: dict :param preview: :type preview: bool :param release_notes: @@ -1914,12 +2768,14 @@ class TaskDefinition(Model): :type satisfies: list of str :param server_owned: :type server_owned: bool + :param show_environment_variables: + :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str """ @@ -1937,6 +2793,7 @@ class TaskDefinition(Model): 'deprecated': {'key': 'deprecated', 'type': 'bool'}, 'description': {'key': 'description', 'type': 'str'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'ecosystem': {'key': 'ecosystem', 'type': 'str'}, 'execution': {'key': 'execution', 'type': '{object}'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, @@ -1951,18 +2808,21 @@ class TaskDefinition(Model): 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, 'package_location': {'key': 'packageLocation', 'type': 'str'}, 'package_type': {'key': 'packageType', 'type': 'str'}, + 'post_job_execution': {'key': 'postJobExecution', 'type': '{object}'}, + 'pre_job_execution': {'key': 'preJobExecution', 'type': '{object}'}, 'preview': {'key': 'preview', 'type': 'bool'}, 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, 'runs_on': {'key': 'runsOn', 'type': '[str]'}, 'satisfies': {'key': 'satisfies', 'type': '[str]'}, 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'show_environment_variables': {'key': 'showEnvironmentVariables', 'type': 'bool'}, 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'version': {'key': 'version', 'type': 'TaskVersion'}, 'visibility': {'key': 'visibility', 'type': '[str]'} } - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None): + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, ecosystem=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, post_job_execution=None, pre_job_execution=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, show_environment_variables=None, source_definitions=None, source_location=None, version=None, visibility=None): super(TaskDefinition, self).__init__() self.agent_execution = agent_execution self.author = author @@ -1976,6 +2836,7 @@ def __init__(self, agent_execution=None, author=None, category=None, contents_up self.deprecated = deprecated self.description = description self.disabled = disabled + self.ecosystem = ecosystem self.execution = execution self.friendly_name = friendly_name self.groups = groups @@ -1990,11 +2851,14 @@ def __init__(self, agent_execution=None, author=None, category=None, contents_up self.output_variables = output_variables self.package_location = package_location self.package_type = package_type + self.post_job_execution = post_job_execution + self.pre_job_execution = pre_job_execution self.preview = preview self.release_notes = release_notes self.runs_on = runs_on self.satisfies = satisfies self.server_owned = server_owned + self.show_environment_variables = show_environment_variables self.source_definitions = source_definitions self.source_location = source_location self.version = version @@ -2065,7 +2929,7 @@ class TaskExecution(Model): """TaskExecution. :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` + :type exec_task: :class:`TaskReference ` :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } :type platform_instructions: dict """ @@ -2085,7 +2949,7 @@ class TaskGroup(TaskDefinition): """TaskGroup. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2097,23 +2961,25 @@ class TaskGroup(TaskDefinition): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: :type description: str :param disabled: :type disabled: bool + :param ecosystem: + :type ecosystem: str :param execution: :type execution: dict :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2123,7 +2989,7 @@ class TaskGroup(TaskDefinition): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2131,11 +2997,15 @@ class TaskGroup(TaskDefinition): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: :type package_type: str + :param post_job_execution: + :type post_job_execution: dict + :param pre_job_execution: + :type pre_job_execution: dict :param preview: :type preview: bool :param release_notes: @@ -2146,24 +3016,26 @@ class TaskGroup(TaskDefinition): :type satisfies: list of str :param server_owned: :type server_owned: bool + :param show_environment_variables: + :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str :param comment: Gets or sets comment. :type comment: str :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets date on which it got created. :type created_on: datetime :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. :type deleted: bool :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets date on which it got modified. :type modified_on: datetime :param owner: Gets or sets the owner. @@ -2172,8 +3044,8 @@ class TaskGroup(TaskDefinition): :type parent_definition_id: str :param revision: Gets or sets revision. :type revision: int - :param tasks: - :type tasks: list of :class:`TaskGroupStep ` + :param tasks: Gets or sets the tasks. + :type tasks: list of :class:`TaskGroupStep ` """ _attribute_map = { @@ -2189,6 +3061,7 @@ class TaskGroup(TaskDefinition): 'deprecated': {'key': 'deprecated', 'type': 'bool'}, 'description': {'key': 'description', 'type': 'str'}, 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'ecosystem': {'key': 'ecosystem', 'type': 'str'}, 'execution': {'key': 'execution', 'type': '{object}'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'}, @@ -2203,11 +3076,14 @@ class TaskGroup(TaskDefinition): 'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'}, 'package_location': {'key': 'packageLocation', 'type': 'str'}, 'package_type': {'key': 'packageType', 'type': 'str'}, + 'post_job_execution': {'key': 'postJobExecution', 'type': '{object}'}, + 'pre_job_execution': {'key': 'preJobExecution', 'type': '{object}'}, 'preview': {'key': 'preview', 'type': 'bool'}, 'release_notes': {'key': 'releaseNotes', 'type': 'str'}, 'runs_on': {'key': 'runsOn', 'type': '[str]'}, 'satisfies': {'key': 'satisfies', 'type': '[str]'}, 'server_owned': {'key': 'serverOwned', 'type': 'bool'}, + 'show_environment_variables': {'key': 'showEnvironmentVariables', 'type': 'bool'}, 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'}, 'source_location': {'key': 'sourceLocation', 'type': 'str'}, 'version': {'key': 'version', 'type': 'TaskVersion'}, @@ -2224,8 +3100,8 @@ class TaskGroup(TaskDefinition): 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'} } - def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): - super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) + def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, ecosystem=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, post_job_execution=None, pre_job_execution=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, show_environment_variables=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None): + super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, ecosystem=ecosystem, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, post_job_execution=post_job_execution, pre_job_execution=pre_job_execution, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, show_environment_variables=show_environment_variables, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility) self.comment = comment self.created_by = created_by self.created_on = created_on @@ -2238,6 +3114,66 @@ def __init__(self, agent_execution=None, author=None, category=None, contents_up self.tasks = tasks +class TaskGroupCreateParameter(Model): + """TaskGroupCreateParameter. + + :param author: Sets author name of the task group. + :type author: str + :param category: Sets category of the task group. + :type category: str + :param description: Sets description of the task group. + :type description: str + :param friendly_name: Sets friendly name of the task group. + :type friendly_name: str + :param icon_url: Sets url icon of the task group. + :type icon_url: str + :param inputs: Sets input for the task group. + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: Sets display name of the task group. + :type instance_name_format: str + :param name: Sets name of the task group. + :type name: str + :param parent_definition_id: Sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. + :type runs_on: list of str + :param tasks: Sets tasks for the task group. + :type tasks: list of :class:`TaskGroupStep ` + :param version: Sets version of the task group. + :type version: :class:`TaskVersion ` + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, + 'version': {'key': 'version', 'type': 'TaskVersion'} + } + + def __init__(self, author=None, category=None, description=None, friendly_name=None, icon_url=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, runs_on=None, tasks=None, version=None): + super(TaskGroupCreateParameter, self).__init__() + self.author = author + self.category = category + self.description = description + self.friendly_name = friendly_name + self.icon_url = icon_url + self.inputs = inputs + self.instance_name_format = instance_name_format + self.name = name + self.parent_definition_id = parent_definition_id + self.runs_on = runs_on + self.tasks = tasks + self.version = version + + class TaskGroupDefinition(Model): """TaskGroupDefinition. @@ -2274,7 +3210,7 @@ class TaskGroupRevision(Model): """TaskGroupRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -2315,7 +3251,7 @@ class TaskGroupStep(Model): :param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise. :type always_run: bool - :param condition: + :param condition: Gets or sets condition for the task. :type condition: str :param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise. :type continue_on_error: bool @@ -2323,10 +3259,12 @@ class TaskGroupStep(Model): :type display_name: str :param enabled: Gets or sets as task is enabled or not. :type enabled: bool + :param environment: Gets dictionary of environment variables. + :type environment: dict :param inputs: Gets or sets dictionary of inputs. :type inputs: dict :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. :type timeout_in_minutes: int """ @@ -2337,28 +3275,104 @@ class TaskGroupStep(Model): 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'environment': {'key': 'environment', 'type': '{str}'}, 'inputs': {'key': 'inputs', 'type': '{str}'}, 'task': {'key': 'task', 'type': 'TaskDefinitionReference'}, 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} } - def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, inputs=None, task=None, timeout_in_minutes=None): + def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, environment=None, inputs=None, task=None, timeout_in_minutes=None): super(TaskGroupStep, self).__init__() self.always_run = always_run self.condition = condition self.continue_on_error = continue_on_error self.display_name = display_name self.enabled = enabled + self.environment = environment self.inputs = inputs self.task = task self.timeout_in_minutes = timeout_in_minutes +class TaskGroupUpdateParameter(Model): + """TaskGroupUpdateParameter. + + :param author: Sets author name of the task group. + :type author: str + :param category: Sets category of the task group. + :type category: str + :param comment: Sets comment of the task group. + :type comment: str + :param description: Sets description of the task group. + :type description: str + :param friendly_name: Sets friendly name of the task group. + :type friendly_name: str + :param icon_url: Sets url icon of the task group. + :type icon_url: str + :param id: Sets the unique identifier of this field. + :type id: str + :param inputs: Sets input for the task group. + :type inputs: list of :class:`TaskInputDefinition ` + :param instance_name_format: Sets display name of the task group. + :type instance_name_format: str + :param name: Sets name of the task group. + :type name: str + :param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group. + :type parent_definition_id: str + :param revision: Sets revision of the task group. + :type revision: int + :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. + :type runs_on: list of str + :param tasks: Sets tasks for the task group. + :type tasks: list of :class:`TaskGroupStep ` + :param version: Sets version of the task group. + :type version: :class:`TaskVersion ` + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'}, + 'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'runs_on': {'key': 'runsOn', 'type': '[str]'}, + 'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}, + 'version': {'key': 'version', 'type': 'TaskVersion'} + } + + def __init__(self, author=None, category=None, comment=None, description=None, friendly_name=None, icon_url=None, id=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, revision=None, runs_on=None, tasks=None, version=None): + super(TaskGroupUpdateParameter, self).__init__() + self.author = author + self.category = category + self.comment = comment + self.description = description + self.friendly_name = friendly_name + self.icon_url = icon_url + self.id = id + self.inputs = inputs + self.instance_name_format = instance_name_format + self.name = name + self.parent_definition_id = parent_definition_id + self.revision = revision + self.runs_on = runs_on + self.tasks = tasks + self.version = version + + class TaskHubLicenseDetails(Model): """TaskHubLicenseDetails. :param enterprise_users_count: :type enterprise_users_count: int + :param failed_to_reach_all_providers: + :type failed_to_reach_all_providers: bool :param free_hosted_license_count: :type free_hosted_license_count: int :param free_license_count: @@ -2369,46 +3383,66 @@ class TaskHubLicenseDetails(Model): :type hosted_agent_minutes_free_count: int :param hosted_agent_minutes_used_count: :type hosted_agent_minutes_used_count: int + :param hosted_licenses_are_premium: + :type hosted_licenses_are_premium: bool + :param marketplace_purchased_hosted_licenses: + :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` :param msdn_users_count: :type msdn_users_count: int - :param purchased_hosted_license_count: + :param purchased_hosted_license_count: Microsoft-hosted licenses purchased from VSTS directly. :type purchased_hosted_license_count: int - :param purchased_license_count: + :param purchased_license_count: Self-hosted licenses purchased from VSTS directly. :type purchased_license_count: int + :param total_hosted_license_count: + :type total_hosted_license_count: int :param total_license_count: :type total_license_count: int + :param total_private_license_count: + :type total_private_license_count: int """ _attribute_map = { 'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'}, + 'failed_to_reach_all_providers': {'key': 'failedToReachAllProviders', 'type': 'bool'}, 'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'}, 'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'}, 'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'}, 'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'}, 'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'}, + 'hosted_licenses_are_premium': {'key': 'hostedLicensesArePremium', 'type': 'bool'}, + 'marketplace_purchased_hosted_licenses': {'key': 'marketplacePurchasedHostedLicenses', 'type': '[MarketplacePurchasedLicense]'}, 'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'}, 'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'}, 'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'}, - 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'} + 'total_hosted_license_count': {'key': 'totalHostedLicenseCount', 'type': 'int'}, + 'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'}, + 'total_private_license_count': {'key': 'totalPrivateLicenseCount', 'type': 'int'} } - def __init__(self, enterprise_users_count=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_license_count=None): + def __init__(self, enterprise_users_count=None, failed_to_reach_all_providers=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, hosted_licenses_are_premium=None, marketplace_purchased_hosted_licenses=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_hosted_license_count=None, total_license_count=None, total_private_license_count=None): super(TaskHubLicenseDetails, self).__init__() self.enterprise_users_count = enterprise_users_count + self.failed_to_reach_all_providers = failed_to_reach_all_providers self.free_hosted_license_count = free_hosted_license_count self.free_license_count = free_license_count self.has_license_count_ever_updated = has_license_count_ever_updated self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count + self.hosted_licenses_are_premium = hosted_licenses_are_premium + self.marketplace_purchased_hosted_licenses = marketplace_purchased_hosted_licenses self.msdn_users_count = msdn_users_count self.purchased_hosted_license_count = purchased_hosted_license_count self.purchased_license_count = purchased_license_count + self.total_hosted_license_count = total_hosted_license_count self.total_license_count = total_license_count + self.total_private_license_count = total_private_license_count class TaskInputDefinitionBase(Model): """TaskInputDefinitionBase. + :param aliases: + :type aliases: list of str :param default_value: :type default_value: str :param group_name: @@ -2428,12 +3462,13 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, 'default_value': {'key': 'defaultValue', 'type': 'str'}, 'group_name': {'key': 'groupName', 'type': 'str'}, 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, @@ -2447,8 +3482,9 @@ class TaskInputDefinitionBase(Model): 'visible_rule': {'key': 'visibleRule', 'type': 'str'} } - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases self.default_value = default_value self.group_name = group_name self.help_mark_down = help_mark_down @@ -2486,7 +3522,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -2669,25 +3705,27 @@ def __init__(self, is_valid=None, reason=None, type=None, value=None): class VariableGroup(Model): """VariableGroup. - :param created_by: - :type created_by: :class:`IdentityRef ` - :param created_on: + :param created_by: Gets or sets the identity who created the variable group. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets or sets the time when variable group was created. :type created_on: datetime - :param description: + :param description: Gets or sets description of the variable group. :type description: str - :param id: + :param id: Gets or sets id of the variable group. :type id: int - :param modified_by: - :type modified_by: :class:`IdentityRef ` - :param modified_on: + :param is_shared: Indicates whether variable group is shared with other projects or not. + :type is_shared: bool + :param modified_by: Gets or sets the identity who modified the variable group. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime - :param name: + :param name: Gets or sets name of the variable group. :type name: str - :param provider_data: - :type provider_data: :class:`VariableGroupProviderData ` - :param type: + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type of the variable group. :type type: str - :param variables: + :param variables: Gets or sets variables contained in the variable group. :type variables: dict """ @@ -2696,6 +3734,7 @@ class VariableGroup(Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, @@ -2704,12 +3743,13 @@ class VariableGroup(Model): 'variables': {'key': 'variables', 'type': '{VariableValue}'} } - def __init__(self, created_by=None, created_on=None, description=None, id=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + def __init__(self, created_by=None, created_on=None, description=None, id=None, is_shared=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): super(VariableGroup, self).__init__() self.created_by = created_by self.created_on = created_on self.description = description self.id = id + self.is_shared = is_shared self.modified_by = modified_by self.modified_on = modified_on self.name = name @@ -2718,6 +3758,38 @@ def __init__(self, created_by=None, created_on=None, description=None, id=None, self.variables = variables +class VariableGroupParameters(Model): + """VariableGroupParameters. + + :param description: Sets description of the variable group. + :type description: str + :param name: Sets name of the variable group. + :type name: str + :param provider_data: Sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Sets type of the variable group. + :type type: str + :param variables: Sets variables contained in the variable group. + :type variables: dict + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, description=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroupParameters, self).__init__() + self.description = description + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + class VariableGroupProviderData(Model): """VariableGroupProviderData. @@ -2750,57 +3822,155 @@ def __init__(self, is_secret=None, value=None): self.value = value +class VirtualMachine(Model): + """VirtualMachine. + + :param agent: + :type agent: :class:`TaskAgent ` + :param id: + :type id: int + :param tags: + :type tags: list of str + """ + + _attribute_map = { + 'agent': {'key': 'agent', 'type': 'TaskAgent'}, + 'id': {'key': 'id', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'} + } + + def __init__(self, agent=None, id=None, tags=None): + super(VirtualMachine, self).__init__() + self.agent = agent + self.id = id + self.tags = tags + + +class VirtualMachineGroup(ServiceGroup): + """VirtualMachineGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param environment_reference: + :type environment_reference: :class:`EnvironmentReference ` + :param id: + :type id: int + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param name: + :type name: str + :param type: + :type type: object + :param pool_id: + :type pool_id: int + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'environment_reference': {'key': 'environmentReference', 'type': 'EnvironmentReference'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'pool_id': {'key': 'poolId', 'type': 'int'} + } + + def __init__(self, created_by=None, created_on=None, environment_reference=None, id=None, last_modified_by=None, last_modified_on=None, name=None, type=None, pool_id=None): + super(VirtualMachineGroup, self).__init__(created_by=created_by, created_on=created_on, environment_reference=environment_reference, id=id, last_modified_by=last_modified_by, last_modified_on=last_modified_on, name=name, type=type) + self.pool_id = pool_id + + +class VirtualMachineGroupCreateParameters(Model): + """VirtualMachineGroupCreateParameters. + + :param name: + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, name=None): + super(VirtualMachineGroupCreateParameters, self).__init__() + self.name = name + + class DataSourceBinding(DataSourceBindingBase): """DataSourceBinding. - :param data_source_name: + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str + :param data_source_name: Gets or sets the name of the data source. :type data_source_name: str - :param endpoint_id: + :param endpoint_id: Gets or sets the endpoint Id. :type endpoint_id: str - :param endpoint_url: + :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str - :param parameters: + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str + :param parameters: Gets or sets the parameters for the data source. :type parameters: dict - :param result_selector: + :param request_content: Gets or sets http request body + :type request_content: str + :param request_verb: Gets or sets http request verb + :type request_verb: str + :param result_selector: Gets or sets the result selector. :type result_selector: str - :param result_template: + :param result_template: Gets or sets the result template. :type result_template: str - :param target: + :param target: Gets or sets the target of the data source. :type target: str """ _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, 'result_selector': {'key': 'resultSelector', 'type': 'str'}, 'result_template': {'key': 'resultTemplate', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, } - def __init__(self, data_source_name=None, endpoint_id=None, endpoint_url=None, parameters=None, result_selector=None, result_template=None, target=None): - super(DataSourceBinding, self).__init__(data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target) + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, result_selector=None, result_template=None, target=None): + super(DataSourceBinding, self).__init__(callback_context_template=callback_context_template, callback_required_template=callback_required_template, data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, initial_context_template=initial_context_template, parameters=parameters, request_content=request_content, request_verb=request_verb, result_selector=result_selector, result_template=result_template, target=target) class DeploymentGroup(DeploymentGroupReference): """DeploymentGroup. - :param id: + :param id: Deployment group identifier. :type id: int - :param name: + :param name: Name of the deployment group. :type name: str - :param pool: - :type pool: :class:`TaskAgentPoolReference ` - :param project: - :type project: :class:`ProjectReference ` - :param description: + :param pool: Deployment pool in which deployment agents are registered. + :type pool: :class:`TaskAgentPoolReference ` + :param project: Project to which the deployment group belongs. + :type project: :class:`ProjectReference ` + :param description: Description of the deployment group. :type description: str - :param machine_count: + :param machine_count: Number of deployment targets in the deployment group. :type machine_count: int - :param machines: - :type machines: list of :class:`DeploymentMachine ` - :param machine_tags: + :param machines: List of deployment targets in the deployment group. + :type machines: list of :class:`DeploymentMachine ` + :param machine_tags: List of unique tags across all deployment targets in the deployment group. :type machine_tags: list of str """ @@ -2831,11 +4001,11 @@ class DeploymentMachineGroup(DeploymentMachineGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param size: :type size: int """ @@ -2855,33 +4025,87 @@ def __init__(self, id=None, name=None, pool=None, project=None, machines=None, s self.size = size +class KubernetesServiceGroup(ServiceGroup): + """KubernetesServiceGroup. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param environment_reference: + :type environment_reference: :class:`EnvironmentReference ` + :param id: + :type id: int + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param name: + :type name: str + :param type: + :type type: object + :param namespace: + :type namespace: str + :param service_endpoint_id: + :type service_endpoint_id: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'environment_reference': {'key': 'environmentReference', 'type': 'EnvironmentReference'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, environment_reference=None, id=None, last_modified_by=None, last_modified_on=None, name=None, type=None, namespace=None, service_endpoint_id=None): + super(KubernetesServiceGroup, self).__init__(created_by=created_by, created_on=created_on, environment_reference=environment_reference, id=id, last_modified_by=last_modified_by, last_modified_on=last_modified_on, name=name, type=type) + self.namespace = namespace + self.service_endpoint_id = service_endpoint_id + + class TaskAgent(TaskAgentReference): """TaskAgent. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param access_point: Gets the access point of the agent. + :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. :type enabled: bool :param id: Gets the identifier of the agent. :type id: int :param name: Gets the name of the agent. :type name: str + :param oSDescription: Gets the OS of the agent. + :type oSDescription: str + :param provisioning_state: Gets or sets the current provisioning state of this agent + :type provisioning_state: str :param status: Gets the current connectivity status of the agent. :type status: object :param version: Gets the version of the agent. :type version: str + :param assigned_agent_cloud_request: Gets the Agent Cloud Request that's currently associated with this agent + :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` + :type assigned_request: :class:`TaskAgentJobRequest ` :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` + :type authorization: :class:`TaskAgentAuthorization ` :param created_on: Gets the date on which this agent was created. :type created_on: datetime + :param last_completed_request: Gets the last request which was completed by this agent. + :type last_completed_request: :class:`TaskAgentJobRequest ` :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. :type max_parallelism: int :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` + :type pending_update: :class:`TaskAgentUpdate ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_changed_on: Gets the date on which the last connectivity status change occurred. :type status_changed_on: datetime :param system_capabilities: @@ -2892,14 +4116,19 @@ class TaskAgent(TaskAgentReference): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'access_point': {'key': 'accessPoint', 'type': 'str'}, 'enabled': {'key': 'enabled', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'}, + 'oSDescription': {'key': 'oSDescription', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'object'}, 'version': {'key': 'version', 'type': 'str'}, + 'assigned_agent_cloud_request': {'key': 'assignedAgentCloudRequest', 'type': 'TaskAgentCloudRequest'}, 'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'}, 'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'last_completed_request': {'key': 'lastCompletedRequest', 'type': 'TaskAgentJobRequest'}, 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, 'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'}, 'properties': {'key': 'properties', 'type': 'object'}, @@ -2908,11 +4137,13 @@ class TaskAgent(TaskAgentReference): 'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'} } - def __init__(self, _links=None, enabled=None, id=None, name=None, status=None, version=None, assigned_request=None, authorization=None, created_on=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): - super(TaskAgent, self).__init__(_links=_links, enabled=enabled, id=id, name=name, status=status, version=version) + def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, oSDescription=None, provisioning_state=None, status=None, version=None, assigned_agent_cloud_request=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None): + super(TaskAgent, self).__init__(_links=_links, access_point=access_point, enabled=enabled, id=id, name=name, oSDescription=oSDescription, provisioning_state=provisioning_state, status=status, version=version) + self.assigned_agent_cloud_request = assigned_agent_cloud_request self.assigned_request = assigned_request self.authorization = authorization self.created_on = created_on + self.last_completed_request = last_completed_request self.max_parallelism = max_parallelism self.pending_update = pending_update self.properties = properties @@ -2934,16 +4165,24 @@ class TaskAgentPool(TaskAgentPoolReference): :type pool_type: object :param scope: :type scope: str + :param size: Gets the current size of the pool. + :type size: int + :param agent_cloud_id: Gets or sets an agentCloudId + :type agent_cloud_id: int :param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not. :type auto_provision: bool + :param auto_size: Gets or sets a value indicating whether or not the pool should autosize itself based on the Agent Cloud Provider settings + :type auto_size: bool :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime + :param owner: Gets the identity who owns or administrates this pool. + :type owner: :class:`IdentityRef ` :param properties: - :type properties: :class:`object ` - :param size: Gets the current size of the pool. - :type size: int + :type properties: :class:`object ` + :param target_size: Gets or sets a value indicating target parallelism + :type target_size: int """ _attribute_map = { @@ -2952,25 +4191,34 @@ class TaskAgentPool(TaskAgentPoolReference): 'name': {'key': 'name', 'type': 'str'}, 'pool_type': {'key': 'poolType', 'type': 'object'}, 'scope': {'key': 'scope', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'int'}, + 'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'}, 'auto_provision': {'key': 'autoProvision', 'type': 'bool'}, + 'auto_size': {'key': 'autoSize', 'type': 'bool'}, 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, 'properties': {'key': 'properties', 'type': 'object'}, - 'size': {'key': 'size', 'type': 'int'} + 'target_size': {'key': 'targetSize', 'type': 'int'} } - def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, auto_provision=None, created_by=None, created_on=None, properties=None, size=None): - super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope) + def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, agent_cloud_id=None, auto_provision=None, auto_size=None, created_by=None, created_on=None, owner=None, properties=None, target_size=None): + super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope, size=size) + self.agent_cloud_id = agent_cloud_id self.auto_provision = auto_provision + self.auto_size = auto_size self.created_by = created_by self.created_on = created_on + self.owner = owner self.properties = properties - self.size = size + self.target_size = target_size class TaskInputDefinition(TaskInputDefinitionBase): """TaskInputDefinition. + :param aliases: + :type aliases: list of str :param default_value: :type default_value: str :param group_name: @@ -2990,12 +4238,13 @@ class TaskInputDefinition(TaskInputDefinitionBase): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, 'default_value': {'key': 'defaultValue', 'type': 'str'}, 'group_name': {'key': 'groupName', 'type': 'str'}, 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, @@ -3009,8 +4258,8 @@ class TaskInputDefinition(TaskInputDefinitionBase): 'visible_rule': {'key': 'visibleRule', 'type': 'str'}, } - def __init__(self, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): - super(TaskInputDefinition, self).__init__(default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinition, self).__init__(aliases=aliases, default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule) class TaskSourceDefinition(TaskSourceDefinitionBase): @@ -3043,21 +4292,36 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non __all__ = [ 'AadOauthTokenRequest', 'AadOauthTokenResult', + 'AuthenticationSchemeReference', 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', 'AzureSubscription', 'AzureSubscriptionQueryResult', + 'ClientCertificate', 'DataSource', 'DataSourceBindingBase', 'DataSourceDetails', 'DependencyBinding', 'DependencyData', 'DependsOn', + 'DeploymentGroupCreateParameter', + 'DeploymentGroupCreateParameterPoolProperty', 'DeploymentGroupMetrics', 'DeploymentGroupReference', + 'DeploymentGroupUpdateParameter', 'DeploymentMachine', 'DeploymentMachineGroupReference', + 'DeploymentPoolSummary', + 'DeploymentTargetUpdateParameter', 'EndpointAuthorization', 'EndpointUrl', + 'EnvironmentCreateParameter', + 'EnvironmentDeploymentExecutionRecord', + 'EnvironmentInstance', + 'EnvironmentReference', + 'EnvironmentUpdateParameter', + 'GraphSubjectBase', 'HelpLink', 'IdentityRef', 'InputDescriptor', @@ -3066,6 +4330,8 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'InputValue', 'InputValues', 'InputValuesError', + 'KubernetesServiceGroupCreateParameters', + 'MarketplacePurchasedLicense', 'MetricsColumnMetaData', 'MetricsColumnsHeader', 'MetricsRow', @@ -3074,6 +4340,8 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'ProjectReference', 'PublishTaskGroupMetadata', 'ReferenceLinks', + 'ResourceLimit', + 'ResourceUsage', 'ResultTransformationDetails', 'SecureFile', 'ServiceEndpoint', @@ -3085,7 +4353,13 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'ServiceEndpointRequest', 'ServiceEndpointRequestResult', 'ServiceEndpointType', + 'ServiceGroup', + 'ServiceGroupReference', 'TaskAgentAuthorization', + 'TaskAgentCloud', + 'TaskAgentCloudRequest', + 'TaskAgentCloudType', + 'TaskAgentDelaySource', 'TaskAgentJobRequest', 'TaskAgentMessage', 'TaskAgentPoolMaintenanceDefinition', @@ -3107,9 +4381,11 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'TaskDefinitionReference', 'TaskExecution', 'TaskGroup', + 'TaskGroupCreateParameter', 'TaskGroupDefinition', 'TaskGroupRevision', 'TaskGroupStep', + 'TaskGroupUpdateParameter', 'TaskHubLicenseDetails', 'TaskInputDefinitionBase', 'TaskInputValidation', @@ -3121,11 +4397,16 @@ def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=Non 'TaskVersion', 'ValidationItem', 'VariableGroup', + 'VariableGroupParameters', 'VariableGroupProviderData', 'VariableValue', + 'VirtualMachine', + 'VirtualMachineGroup', + 'VirtualMachineGroupCreateParameters', 'DataSourceBinding', 'DeploymentGroup', 'DeploymentMachineGroup', + 'KubernetesServiceGroup', 'TaskAgent', 'TaskAgentPool', 'TaskInputDefinition', diff --git a/azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py b/azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py new file mode 100644 index 00000000..4bb974ec --- /dev/null +++ b/azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py @@ -0,0 +1,574 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class TaskAgentClient(Client): + """TaskAgent + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TaskAgentClient, 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 = 'a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd' + + def add_agent_cloud(self, agent_cloud): + """AddAgentCloud. + [Preview API] + :param :class:` ` agent_cloud: + :rtype: :class:` ` + """ + content = self._serialize.body(agent_cloud, 'TaskAgentCloud') + response = self._send(http_method='POST', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.1-preview.1', + content=content) + return self._deserialize('TaskAgentCloud', response) + + def delete_agent_cloud(self, agent_cloud_id): + """DeleteAgentCloud. + [Preview API] + :param int agent_cloud_id: + :rtype: :class:` ` + """ + route_values = {} + if agent_cloud_id is not None: + route_values['agentCloudId'] = self._serialize.url('agent_cloud_id', agent_cloud_id, 'int') + response = self._send(http_method='DELETE', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentCloud', response) + + def get_agent_cloud(self, agent_cloud_id): + """GetAgentCloud. + [Preview API] + :param int agent_cloud_id: + :rtype: :class:` ` + """ + route_values = {} + if agent_cloud_id is not None: + route_values['agentCloudId'] = self._serialize.url('agent_cloud_id', agent_cloud_id, 'int') + response = self._send(http_method='GET', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('TaskAgentCloud', response) + + def get_agent_clouds(self): + """GetAgentClouds. + [Preview API] + :rtype: [TaskAgentCloud] + """ + response = self._send(http_method='GET', + location_id='bfa72b3d-0fc6-43fb-932b-a7f6559f93b9', + version='5.1-preview.1') + return self._deserialize('[TaskAgentCloud]', self._unwrap_collection(response)) + + def get_agent_cloud_types(self): + """GetAgentCloudTypes. + [Preview API] Get agent cloud types. + :rtype: [TaskAgentCloudType] + """ + response = self._send(http_method='GET', + location_id='5932e193-f376-469d-9c3e-e5588ce12cb5', + version='5.1-preview.1') + return self._deserialize('[TaskAgentCloudType]', self._unwrap_collection(response)) + + def add_deployment_group(self, deployment_group, project): + """AddDeploymentGroup. + [Preview API] Create a deployment group. + :param :class:` ` deployment_group: Deployment group to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(deployment_group, 'DeploymentGroupCreateParameter') + response = self._send(http_method='POST', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentGroup', response) + + def delete_deployment_group(self, project, deployment_group_id): + """DeleteDeploymentGroup. + [Preview API] Delete a deployment group. + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group to be deleted. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + self._send(http_method='DELETE', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='5.1-preview.1', + route_values=route_values) + + def get_deployment_group(self, project, deployment_group_id, action_filter=None, expand=None): + """GetDeploymentGroup. + [Preview API] Get a deployment group by its ID. + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group. + :param str action_filter: Get the deployment group only if this action can be performed on it. + :param str expand: Include these additional details in the returned object. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentGroup', response) + + def get_deployment_groups(self, project, name=None, action_filter=None, expand=None, continuation_token=None, top=None, ids=None): + """GetDeploymentGroups. + [Preview API] Get a list of deployment groups by name or IDs. + :param str project: Project ID or project name + :param str name: Name of the deployment group. + :param str action_filter: Get only deployment groups on which this action can be performed. + :param str expand: Include these additional details in the returned objects. + :param str continuation_token: Get deployment groups with names greater than this continuationToken lexicographically. + :param int top: Maximum number of deployment groups to return. Default is **1000**. + :param [int] ids: Comma separated list of IDs of the deployment groups. + :rtype: [DeploymentGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + response = self._send(http_method='GET', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[DeploymentGroup]', self._unwrap_collection(response)) + + def update_deployment_group(self, deployment_group, project, deployment_group_id): + """UpdateDeploymentGroup. + [Preview API] Update a deployment group. + :param :class:` ` deployment_group: Deployment group to update. + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(deployment_group, 'DeploymentGroupUpdateParameter') + response = self._send(http_method='PATCH', + location_id='083c4d89-ab35-45af-aa11-7cf66895c53e', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('DeploymentGroup', response) + + def get_agent_cloud_requests(self, agent_cloud_id): + """GetAgentCloudRequests. + [Preview API] + :param int agent_cloud_id: + :rtype: [TaskAgentCloudRequest] + """ + route_values = {} + if agent_cloud_id is not None: + route_values['agentCloudId'] = self._serialize.url('agent_cloud_id', agent_cloud_id, 'int') + response = self._send(http_method='GET', + location_id='20189bd7-5134-49c2-b8e9-f9e856eea2b2', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[TaskAgentCloudRequest]', self._unwrap_collection(response)) + + def delete_deployment_target(self, project, deployment_group_id, target_id): + """DeleteDeploymentTarget. + [Preview API] Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too. + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group in which deployment target is deleted. + :param int target_id: ID of the deployment target to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if target_id is not None: + route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') + self._send(http_method='DELETE', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='5.1-preview.1', + route_values=route_values) + + def get_deployment_target(self, project, deployment_group_id, target_id, expand=None): + """GetDeploymentTarget. + [Preview API] Get a deployment target by its ID in a deployment group + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group to which deployment target belongs. + :param int target_id: ID of the deployment target to return. + :param str expand: Include these additional details in the returned objects. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + if target_id is not None: + route_values['targetId'] = self._serialize.url('target_id', target_id, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeploymentMachine', response) + + def get_deployment_targets(self, project, deployment_group_id, tags=None, name=None, partial_name_match=None, expand=None, agent_status=None, agent_job_result=None, continuation_token=None, top=None, enabled=None, property_filters=None): + """GetDeploymentTargets. + [Preview API] Get a list of deployment targets in a deployment group. + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group. + :param [str] tags: Get only the deployment targets that contain all these comma separted list of tags. + :param str name: Name pattern of the deployment targets to return. + :param bool partial_name_match: When set to true, treats **name** as pattern. Else treats it as absolute match. Default is **false**. + :param str expand: Include these additional details in the returned objects. + :param str agent_status: Get only deployment targets that have this status. + :param str agent_job_result: Get only deployment targets that have this last job result. + :param str continuation_token: Get deployment targets with names greater than this continuationToken lexicographically. + :param int top: Maximum number of deployment targets to return. Default is **1000**. + :param bool enabled: Get only deployment targets that are enabled or disabled. Default is 'null' which returns all the targets. + :param [str] property_filters: + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + query_parameters = {} + if tags is not None: + tags = ",".join(tags) + query_parameters['tags'] = self._serialize.query('tags', tags, 'str') + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if partial_name_match is not None: + query_parameters['partialNameMatch'] = self._serialize.query('partial_name_match', partial_name_match, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if agent_status is not None: + query_parameters['agentStatus'] = self._serialize.query('agent_status', agent_status, 'str') + if agent_job_result is not None: + query_parameters['agentJobResult'] = self._serialize.query('agent_job_result', agent_job_result, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if enabled is not None: + query_parameters['enabled'] = self._serialize.query('enabled', enabled, 'bool') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) + + def update_deployment_targets(self, machines, project, deployment_group_id): + """UpdateDeploymentTargets. + [Preview API] Update tags of a list of deployment targets in a deployment group. + :param [DeploymentTargetUpdateParameter] machines: Deployment targets with tags to udpdate. + :param str project: Project ID or project name + :param int deployment_group_id: ID of the deployment group in which deployment targets are updated. + :rtype: [DeploymentMachine] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if deployment_group_id is not None: + route_values['deploymentGroupId'] = self._serialize.url('deployment_group_id', deployment_group_id, 'int') + content = self._serialize.body(machines, '[DeploymentTargetUpdateParameter]') + response = self._send(http_method='PATCH', + location_id='2f0aa599-c121-4256-a5fd-ba370e0ae7b6', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[DeploymentMachine]', self._unwrap_collection(response)) + + def add_task_group(self, task_group, project): + """AddTaskGroup. + [Preview API] Create a task group. + :param :class:` ` task_group: Task group object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(task_group, 'TaskGroupCreateParameter') + response = self._send(http_method='POST', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskGroup', response) + + def delete_task_group(self, project, task_group_id, comment=None): + """DeleteTaskGroup. + [Preview API] Delete a task group. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group to be deleted. + :param str comment: Comments to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + self._send(http_method='DELETE', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + + def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_filter=None, deleted=None, top=None, continuation_token=None, query_order=None): + """GetTaskGroups. + [Preview API] List task groups. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group. + :param bool expanded: 'true' to recursively expand task groups. Default is 'false'. + :param str task_id_filter: Guid of the taskId to filter. + :param bool deleted: 'true'to include deleted task groups. Default is 'false'. + :param int top: Number of task groups to get. + :param datetime continuation_token: Gets the task groups after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'CreatedOnDescending'. + :rtype: [TaskGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + query_parameters = {} + if expanded is not None: + query_parameters['expanded'] = self._serialize.query('expanded', expanded, 'bool') + if task_id_filter is not None: + query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') + if deleted is not None: + query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + response = self._send(http_method='GET', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TaskGroup]', self._unwrap_collection(response)) + + def update_task_group(self, task_group, project, task_group_id=None): + """UpdateTaskGroup. + [Preview API] Update a task group. + :param :class:` ` task_group: Task group to update. + :param str project: Project ID or project name + :param str task_group_id: Id of the task group to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if task_group_id is not None: + route_values['taskGroupId'] = self._serialize.url('task_group_id', task_group_id, 'str') + content = self._serialize.body(task_group, 'TaskGroupUpdateParameter') + response = self._send(http_method='PUT', + location_id='6c08ffbf-dbf1-4f9a-94e5-a1cbd47005e7', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TaskGroup', response) + + def add_variable_group(self, group, project): + """AddVariableGroup. + [Preview API] Add a variable group. + :param :class:` ` group: Variable group to add. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(group, 'VariableGroupParameters') + response = self._send(http_method='POST', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('VariableGroup', response) + + def delete_variable_group(self, project, group_id): + """DeleteVariableGroup. + [Preview API] Delete a variable group + :param str project: Project ID or project name + :param int group_id: Id of the variable group. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + self._send(http_method='DELETE', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='5.1-preview.1', + route_values=route_values) + + def get_variable_group(self, project, group_id): + """GetVariableGroup. + [Preview API] Get a variable group. + :param str project: Project ID or project name + :param int group_id: Id of the variable group. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('VariableGroup', response) + + def get_variable_groups(self, project, group_name=None, action_filter=None, top=None, continuation_token=None, query_order=None): + """GetVariableGroups. + [Preview API] Get variable groups. + :param str project: Project ID or project name + :param str group_name: Name of variable group. + :param str action_filter: Action filter for the variable group. It specifies the action which can be performed on the variable groups. + :param int top: Number of variable groups to get. + :param int continuation_token: Gets the variable groups after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdDescending'. + :rtype: [VariableGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if group_name is not None: + query_parameters['groupName'] = self._serialize.query('group_name', group_name, 'str') + if action_filter is not None: + query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) + + def get_variable_groups_by_id(self, project, group_ids): + """GetVariableGroupsById. + [Preview API] Get variable groups by ids. + :param str project: Project ID or project name + :param [int] group_ids: Comma separated list of Ids of variable groups. + :rtype: [VariableGroup] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if group_ids is not None: + group_ids = ",".join(map(str, group_ids)) + query_parameters['groupIds'] = self._serialize.query('group_ids', group_ids, 'str') + response = self._send(http_method='GET', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[VariableGroup]', self._unwrap_collection(response)) + + def update_variable_group(self, group, project, group_id): + """UpdateVariableGroup. + [Preview API] Update a variable group. + :param :class:` ` group: Variable group to update. + :param str project: Project ID or project name + :param int group_id: Id of the variable group to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'int') + content = self._serialize.body(group, 'VariableGroupParameters') + response = self._send(http_method='PUT', + location_id='f5b09dd5-9d54-45a1-8b5a-1c8287d634cc', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('VariableGroup', response) + + def get_yaml_schema(self): + """GetYamlSchema. + [Preview API] + :rtype: object + """ + response = self._send(http_method='GET', + location_id='1f9990b9-1dba-441f-9c2e-6485888c42b6', + version='5.1-preview.1') + return self._deserialize('object', response) + diff --git a/azure-devops/azure/devops/v4_0/test/__init__.py b/azure-devops/azure/devops/v5_1/test/__init__.py similarity index 84% rename from azure-devops/azure/devops/v4_0/test/__init__.py rename to azure-devops/azure/devops/v5_1/test/__init__.py index 0163e0c7..08d8172e 100644 --- a/azure-devops/azure/devops/v4_0/test/__init__.py +++ b/azure-devops/azure/devops/v5_1/test/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -13,6 +13,8 @@ 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', + 'AggregatedRunsByState', 'BuildConfiguration', 'BuildCoverage', 'BuildReference', @@ -27,7 +29,9 @@ 'CustomTestFieldDefinition', 'DtlEnvironmentDetails', 'FailingSince', + 'FieldDetailsForTestResults', 'FunctionCoverage', + 'GraphSubjectBase', 'IdentityRef', 'LastResultDetails', 'LinkedWorkItemsQuery', @@ -40,6 +44,7 @@ 'PointUpdateModel', 'PropertyBag', 'QueryModel', + 'ReferenceLinks', 'ReleaseEnvironmentDefinitionReference', 'ReleaseReference', 'ResultRetentionSettings', @@ -47,13 +52,17 @@ 'RunCreateModel', 'RunFilter', 'RunStatistic', + 'RunSummaryModel', 'RunUpdateModel', 'ShallowReference', + 'ShallowTestCaseResult', 'SharedStepModel', 'SuiteCreateModel', 'SuiteEntry', 'SuiteEntryUpdateModel', 'SuiteTestCase', + 'SuiteTestCaseUpdateModel', + 'SuiteUpdateModel', 'TeamContext', 'TeamProjectReference', 'TestActionResultModel', @@ -68,10 +77,12 @@ 'TestEnvironment', 'TestFailureDetails', 'TestFailuresAnalysis', + 'TestHistoryQuery', 'TestIterationDetailsModel', 'TestMessageLogDetails', 'TestMethod', 'TestOperationReference', + 'TestOutcomeSettings', 'TestPlan', 'TestPlanCloneRequest', 'TestPoint', @@ -81,12 +92,16 @@ 'TestResultDocument', 'TestResultHistory', 'TestResultHistoryDetailsForGroup', + 'TestResultHistoryForGroup', + 'TestResultMetaData', 'TestResultModelBase', 'TestResultParameterModel', 'TestResultPayload', 'TestResultsContext', 'TestResultsDetails', 'TestResultsDetailsForGroup', + 'TestResultsGroupsForBuild', + 'TestResultsGroupsForRelease', 'TestResultsQuery', 'TestResultSummary', 'TestResultTrendFilter', @@ -95,6 +110,7 @@ 'TestRunStatistic', 'TestSession', 'TestSettings', + 'TestSubResult', 'TestSuite', 'TestSuiteCloneRequest', 'TestSummaryForWorkItem', diff --git a/azure-devops/azure/devops/v4_0/test/models.py b/azure-devops/azure/devops/v5_1/test/models.py similarity index 66% rename from azure-devops/azure/devops/v4_0/test/models.py rename to azure-devops/azure/devops/v5_1/test/models.py index 8e4610ce..301a41ef 100644 --- a/azure-devops/azure/devops/v4_0/test/models.py +++ b/azure-devops/azure/devops/v5_1/test/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -16,8 +16,10 @@ class AggregatedDataForResultTrend(Model): :type duration: object :param results_by_outcome: :type results_by_outcome: dict + :param run_summary_by_state: + :type run_summary_by_state: dict :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_tests: :type total_tests: int """ @@ -25,14 +27,16 @@ class AggregatedDataForResultTrend(Model): _attribute_map = { 'duration': {'key': 'duration', 'type': 'object'}, 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, 'total_tests': {'key': 'totalTests', 'type': 'int'} } - def __init__(self, duration=None, results_by_outcome=None, test_results_context=None, total_tests=None): + def __init__(self, duration=None, results_by_outcome=None, run_summary_by_state=None, test_results_context=None, total_tests=None): super(AggregatedDataForResultTrend, self).__init__() self.duration = duration self.results_by_outcome = results_by_outcome + self.run_summary_by_state = run_summary_by_state self.test_results_context = test_results_context self.total_tests = total_tests @@ -45,11 +49,15 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` + :param run_summary_by_outcome: + :type run_summary_by_outcome: dict + :param run_summary_by_state: + :type run_summary_by_state: dict :param total_tests: :type total_tests: int """ @@ -60,16 +68,20 @@ class AggregatedResultsAnalysis(Model): 'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'}, 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, 'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'}, + 'run_summary_by_outcome': {'key': 'runSummaryByOutcome', 'type': '{AggregatedRunsByOutcome}'}, + 'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'}, 'total_tests': {'key': 'totalTests', 'type': 'int'} } - def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, total_tests=None): + def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_outcome=None, run_summary_by_state=None, total_tests=None): super(AggregatedResultsAnalysis, self).__init__() self.duration = duration self.not_reported_results_by_outcome = not_reported_results_by_outcome self.previous_context = previous_context self.results_by_outcome = results_by_outcome self.results_difference = results_difference + self.run_summary_by_outcome = run_summary_by_outcome + self.run_summary_by_state = run_summary_by_state self.total_tests = total_tests @@ -86,6 +98,8 @@ class AggregatedResultsByOutcome(Model): :type group_by_value: object :param outcome: :type outcome: object + :param rerun_result_count: + :type rerun_result_count: int """ _attribute_map = { @@ -93,16 +107,18 @@ class AggregatedResultsByOutcome(Model): 'duration': {'key': 'duration', 'type': 'object'}, 'group_by_field': {'key': 'groupByField', 'type': 'str'}, 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, - 'outcome': {'key': 'outcome', 'type': 'object'} + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'} } - def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None): + def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None): super(AggregatedResultsByOutcome, self).__init__() self.count = count self.duration = duration self.group_by_field = group_by_field self.group_by_value = group_by_value self.outcome = outcome + self.rerun_result_count = rerun_result_count class AggregatedResultsDifference(Model): @@ -137,6 +153,50 @@ def __init__(self, increase_in_duration=None, increase_in_failures=None, increas self.increase_in_total_tests = increase_in_total_tests +class AggregatedRunsByOutcome(Model): + """AggregatedRunsByOutcome. + + :param outcome: + :type outcome: object + :param runs_count: + :type runs_count: int + """ + + _attribute_map = { + 'outcome': {'key': 'outcome', 'type': 'object'}, + 'runs_count': {'key': 'runsCount', 'type': 'int'} + } + + def __init__(self, outcome=None, runs_count=None): + super(AggregatedRunsByOutcome, self).__init__() + self.outcome = outcome + self.runs_count = runs_count + + +class AggregatedRunsByState(Model): + """AggregatedRunsByState. + + :param results_by_outcome: + :type results_by_outcome: dict + :param runs_count: + :type runs_count: int + :param state: + :type state: object + """ + + _attribute_map = { + 'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'runs_count': {'key': 'runsCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'object'} + } + + def __init__(self, results_by_outcome=None, runs_count=None, state=None): + super(AggregatedRunsByState, self).__init__() + self.results_by_outcome = results_by_outcome + self.runs_count = runs_count + self.state = state + + class BuildConfiguration(Model): """BuildConfiguration. @@ -144,6 +204,10 @@ class BuildConfiguration(Model): :type branch_name: str :param build_definition_id: :type build_definition_id: int + :param build_system: + :type build_system: str + :param creation_date: + :type creation_date: datetime :param flavor: :type flavor: str :param id: @@ -153,9 +217,13 @@ class BuildConfiguration(Model): :param platform: :type platform: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` + :param repository_guid: + :type repository_guid: str :param repository_id: :type repository_id: int + :param repository_type: + :type repository_type: str :param source_version: :type source_version: str :param uri: @@ -165,26 +233,34 @@ class BuildConfiguration(Model): _attribute_map = { 'branch_name': {'key': 'branchName', 'type': 'str'}, 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'build_system': {'key': 'buildSystem', 'type': 'str'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, 'flavor': {'key': 'flavor', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'number': {'key': 'number', 'type': 'str'}, 'platform': {'key': 'platform', 'type': 'str'}, 'project': {'key': 'project', 'type': 'ShallowReference'}, + 'repository_guid': {'key': 'repositoryGuid', 'type': 'str'}, 'repository_id': {'key': 'repositoryId', 'type': 'int'}, + 'repository_type': {'key': 'repositoryType', 'type': 'str'}, 'source_version': {'key': 'sourceVersion', 'type': 'str'}, 'uri': {'key': 'uri', 'type': 'str'} } - def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=None, number=None, platform=None, project=None, repository_id=None, source_version=None, uri=None): + def __init__(self, branch_name=None, build_definition_id=None, build_system=None, creation_date=None, flavor=None, id=None, number=None, platform=None, project=None, repository_guid=None, repository_id=None, repository_type=None, source_version=None, uri=None): super(BuildConfiguration, self).__init__() self.branch_name = branch_name self.build_definition_id = build_definition_id + self.build_system = build_system + self.creation_date = creation_date self.flavor = flavor self.id = id self.number = number self.platform = platform self.project = project + self.repository_guid = repository_guid self.repository_id = repository_id + self.repository_type = repository_type self.source_version = source_version self.uri = uri @@ -192,15 +268,15 @@ def __init__(self, branch_name=None, build_definition_id=None, flavor=None, id=N class BuildCoverage(Model): """BuildCoverage. - :param code_coverage_file_url: + :param code_coverage_file_url: Code Coverage File Url :type code_coverage_file_url: str - :param configuration: - :type configuration: :class:`BuildConfiguration ` - :param last_error: + :param configuration: Build Configuration + :type configuration: :class:`BuildConfiguration ` + :param last_error: Last Error :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: + :param modules: List of Modules + :type modules: list of :class:`ModuleCoverage ` + :param state: State :type state: str """ @@ -224,19 +300,19 @@ def __init__(self, code_coverage_file_url=None, configuration=None, last_error=N class BuildReference(Model): """BuildReference. - :param branch_name: + :param branch_name: Branch name. :type branch_name: str - :param build_system: + :param build_system: Build system. :type build_system: str - :param definition_id: + :param definition_id: Build Definition ID. :type definition_id: int - :param id: + :param id: Build ID. :type id: int - :param number: + :param number: Build Number. :type number: str - :param repository_id: + :param repository_id: Repository ID. :type repository_id: str - :param uri: + :param uri: Build URI. :type uri: str """ @@ -264,18 +340,18 @@ def __init__(self, branch_name=None, build_system=None, definition_id=None, id=N class CloneOperationInformation(Model): """CloneOperationInformation. - :param clone_statistics: - :type clone_statistics: :class:`CloneStatistics ` + :param clone_statistics: Clone Statistics + :type clone_statistics: :class:`CloneStatistics ` :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue :type completion_date: datetime :param creation_date: DateTime when the operation was started :type creation_date: datetime :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` + :type destination_object: :class:`ShallowReference ` :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` + :type destination_plan: :class:`ShallowReference ` :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` + :type destination_project: :class:`ShallowReference ` :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. :type message: str :param op_id: The ID of the operation @@ -283,11 +359,11 @@ class CloneOperationInformation(Model): :param result_object_type: The type of the object generated as a result of the Clone operation :type result_object_type: object :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` + :type source_object: :class:`ShallowReference ` :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` + :type source_plan: :class:`ShallowReference ` :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` + :type source_project: :class:`ShallowReference ` :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete :type state: object :param url: Url for geting the clone information @@ -405,7 +481,7 @@ class CodeCoverageData(Model): :param build_platform: Platform of build for which data is retrieved/published :type build_platform: str :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` + :type coverage_stats: list of :class:`CodeCoverageStatistics ` """ _attribute_map = { @@ -461,11 +537,11 @@ class CodeCoverageSummary(Model): """CodeCoverageSummary. :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` + :type coverage_data: list of :class:`CodeCoverageData ` :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` + :type delta_build: :class:`ShallowReference ` """ _attribute_map = { @@ -516,9 +592,9 @@ def __init__(self, blocks_covered=None, blocks_not_covered=None, lines_covered=N class CustomTestField(Model): """CustomTestField. - :param field_name: + :param field_name: Field Name. :type field_name: str - :param value: + :param value: Field value. :type value: object """ @@ -588,12 +664,12 @@ def __init__(self, csm_content=None, csm_parameters=None, subscription_name=None class FailingSince(Model): """FailingSince. - :param build: - :type build: :class:`BuildReference ` - :param date: + :param build: Build reference since failing. + :type build: :class:`BuildReference ` + :param date: Time since failing. :type date: datetime - :param release: - :type release: :class:`ReleaseReference ` + :param release: Release reference since failing. + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -609,6 +685,26 @@ def __init__(self, build=None, date=None, release=None): self.release = release +class FieldDetailsForTestResults(Model): + """FieldDetailsForTestResults. + + :param field_name: Group by field name + :type field_name: str + :param groups_for_field: Group by field values + :type groups_for_field: list of object + """ + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'groups_for_field': {'key': 'groupsForField', 'type': '[object]'} + } + + def __init__(self, field_name=None, groups_for_field=None): + super(FieldDetailsForTestResults, self).__init__() + self.field_name = field_name + self.groups_for_field = groups_for_field + + class FunctionCoverage(Model): """FunctionCoverage. @@ -621,7 +717,7 @@ class FunctionCoverage(Model): :param source_file: :type source_file: str :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -641,56 +737,92 @@ def __init__(self, class_=None, name=None, namespace=None, source_file=None, sta self.statistics = statistics -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class LastResultDetails(Model): @@ -701,7 +833,7 @@ class LastResultDetails(Model): :param duration: :type duration: long :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` """ _attribute_map = { @@ -767,7 +899,7 @@ class LinkedWorkItemsQueryResult(Model): :param test_case_id: :type test_case_id: int :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -796,8 +928,10 @@ class ModuleCoverage(Model): :type block_count: int :param block_data: :type block_data: str + :param file_url: Code Coverage File Url + :type file_url: str :param functions: - :type functions: list of :class:`FunctionCoverage ` + :type functions: list of :class:`FunctionCoverage ` :param name: :type name: str :param signature: @@ -805,12 +939,13 @@ class ModuleCoverage(Model): :param signature_age: :type signature_age: int :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { 'block_count': {'key': 'blockCount', 'type': 'int'}, 'block_data': {'key': 'blockData', 'type': 'str'}, + 'file_url': {'key': 'fileUrl', 'type': 'str'}, 'functions': {'key': 'functions', 'type': '[FunctionCoverage]'}, 'name': {'key': 'name', 'type': 'str'}, 'signature': {'key': 'signature', 'type': 'str'}, @@ -818,10 +953,11 @@ class ModuleCoverage(Model): 'statistics': {'key': 'statistics', 'type': 'CoverageStatistics'} } - def __init__(self, block_count=None, block_data=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): + def __init__(self, block_count=None, block_data=None, file_url=None, functions=None, name=None, signature=None, signature_age=None, statistics=None): super(ModuleCoverage, self).__init__() self.block_count = block_count self.block_data = block_data + self.file_url = file_url self.functions = functions self.name = name self.signature = signature @@ -832,9 +968,9 @@ def __init__(self, block_count=None, block_data=None, functions=None, name=None, class NameValuePair(Model): """NameValuePair. - :param name: + :param name: Name :type name: str - :param value: + :param value: Value :type value: str """ @@ -852,40 +988,42 @@ def __init__(self, name=None, value=None): class PlanUpdateModel(Model): """PlanUpdateModel. - :param area: - :type area: :class:`ShallowReference ` + :param area: Area path to which the test plan belongs. This should be set to area path of the team that works on this test plan. + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` - :param configuration_ids: + :type automated_test_settings: :class:`TestSettings ` + :param build: Build ID of the build whose quality is tested by the tests in this test plan. For automated testing, this build ID is used to find the test binaries that contain automated test methods. + :type build: :class:`ShallowReference ` + :param build_definition: The Build Definition that generates a build associated with this test plan. + :type build_definition: :class:`ShallowReference ` + :param configuration_ids: IDs of configurations to be applied when new test suites and test cases are added to the test plan. :type configuration_ids: list of int - :param description: + :param description: Description of the test plan. :type description: str - :param end_date: + :param end_date: End date for the test plan. :type end_date: str - :param iteration: + :param iteration: Iteration path assigned to the test plan. This indicates when the target iteration by which the testing in this plan is supposed to be complete and the product is ready to be released. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: + :type manual_test_settings: :class:`TestSettings ` + :param name: Name of the test plan. :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param start_date: + :param owner: Owner of the test plan. + :type owner: :class:`IdentityRef ` + :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param start_date: Start date for the test plan. :type start_date: str - :param state: + :param state: State of the test plan. :type state: str :param status: :type status: str + :param test_outcome_settings: Test Outcome settings + :type test_outcome_settings: :class:`TestOutcomeSettings ` """ _attribute_map = { @@ -905,10 +1043,11 @@ class PlanUpdateModel(Model): 'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'}, 'start_date': {'key': 'startDate', 'type': 'str'}, 'state': {'key': 'state', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'} + 'status': {'key': 'status', 'type': 'str'}, + 'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'} } - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None): + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, configuration_ids=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, status=None, test_outcome_settings=None): super(PlanUpdateModel, self).__init__() self.area = area self.automated_test_environment = automated_test_environment @@ -927,15 +1066,16 @@ def __init__(self, area=None, automated_test_environment=None, automated_test_se self.start_date = start_date self.state = state self.status = status + self.test_outcome_settings = test_outcome_settings class PointAssignment(Model): """PointAssignment. - :param configuration: - :type configuration: :class:`ShallowReference ` - :param tester: - :type tester: :class:`IdentityRef ` + :param configuration: Configuration that was assigned to the test case. + :type configuration: :class:`ShallowReference ` + :param tester: Tester that was assigned to the test case + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -952,12 +1092,12 @@ def __init__(self, configuration=None, tester=None): class PointsFilter(Model): """PointsFilter. - :param configuration_names: + :param configuration_names: List of Configurations for filtering. :type configuration_names: list of str - :param testcase_ids: + :param testcase_ids: List of test case id for filtering. :type testcase_ids: list of int - :param testers: - :type testers: list of :class:`IdentityRef ` + :param testers: List of tester for filtering. + :type testers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -976,12 +1116,12 @@ def __init__(self, configuration_names=None, testcase_ids=None, testers=None): class PointUpdateModel(Model): """PointUpdateModel. - :param outcome: + :param outcome: Outcome to update. :type outcome: str - :param reset_to_active: + :param reset_to_active: Reset test point to active. :type reset_to_active: bool - :param tester: - :type tester: :class:`IdentityRef ` + :param tester: Tester to update. Type IdentityRef. + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1029,12 +1169,28 @@ def __init__(self, query=None): self.query = query +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + class ReleaseEnvironmentDefinitionReference(Model): """ReleaseEnvironmentDefinitionReference. - :param definition_id: + :param definition_id: ID of the release definition that contains the release environment definition. :type definition_id: int - :param environment_definition_id: + :param environment_definition_id: ID of the release environment definition. :type environment_definition_id: int """ @@ -1052,24 +1208,33 @@ def __init__(self, definition_id=None, environment_definition_id=None): class ReleaseReference(Model): """ReleaseReference. - :param definition_id: + :param attempt: + :type attempt: int + :param creation_date: + :type creation_date: datetime + :param definition_id: Release definition ID. :type definition_id: int - :param environment_definition_id: + :param environment_creation_date: + :type environment_creation_date: datetime + :param environment_definition_id: Release environment definition ID. :type environment_definition_id: int - :param environment_definition_name: + :param environment_definition_name: Release environment definition name. :type environment_definition_name: str - :param environment_id: + :param environment_id: Release environment ID. :type environment_id: int - :param environment_name: + :param environment_name: Release environment name. :type environment_name: str - :param id: + :param id: Release ID. :type id: int - :param name: + :param name: Release name. :type name: str """ _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'creation_date': {'key': 'creationDate', 'type': 'iso-8601'}, 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'environment_creation_date': {'key': 'environmentCreationDate', 'type': 'iso-8601'}, 'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}, 'environment_definition_name': {'key': 'environmentDefinitionName', 'type': 'str'}, 'environment_id': {'key': 'environmentId', 'type': 'int'}, @@ -1078,9 +1243,12 @@ class ReleaseReference(Model): 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, definition_id=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): + def __init__(self, attempt=None, creation_date=None, definition_id=None, environment_creation_date=None, environment_definition_id=None, environment_definition_name=None, environment_id=None, environment_name=None, id=None, name=None): super(ReleaseReference, self).__init__() + self.attempt = attempt + self.creation_date = creation_date self.definition_id = definition_id + self.environment_creation_date = environment_creation_date self.environment_definition_id = environment_definition_id self.environment_definition_name = environment_definition_name self.environment_id = environment_id @@ -1092,13 +1260,13 @@ def __init__(self, definition_id=None, environment_definition_id=None, environme class ResultRetentionSettings(Model): """ResultRetentionSettings. - :param automated_results_retention_duration: + :param automated_results_retention_duration: Automated test result retention duration in days :type automated_results_retention_duration: int - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_updated_by: Last Updated by identity + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date :type last_updated_date: datetime - :param manual_results_retention_duration: + :param manual_results_retention_duration: Manual test result retention duration in days :type manual_results_retention_duration: int """ @@ -1124,14 +1292,24 @@ class ResultsFilter(Model): :type automated_test_name: str :param branch: :type branch: str + :param executed_in: + :type executed_in: object :param group_by: :type group_by: str :param max_complete_date: :type max_complete_date: datetime :param results_count: :type results_count: int + :param test_case_id: + :type test_case_id: int + :param test_case_reference_ids: + :type test_case_reference_ids: list of int + :param test_plan_id: + :type test_plan_id: int + :param test_point_ids: + :type test_point_ids: list of int :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param trend_days: :type trend_days: int """ @@ -1139,20 +1317,30 @@ class ResultsFilter(Model): _attribute_map = { 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, 'branch': {'key': 'branch', 'type': 'str'}, + 'executed_in': {'key': 'executedIn', 'type': 'object'}, 'group_by': {'key': 'groupBy', 'type': 'str'}, 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, 'results_count': {'key': 'resultsCount', 'type': 'int'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, + 'test_case_reference_ids': {'key': 'testCaseReferenceIds', 'type': '[int]'}, + 'test_plan_id': {'key': 'testPlanId', 'type': 'int'}, + 'test_point_ids': {'key': 'testPointIds', 'type': '[int]'}, 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, 'trend_days': {'key': 'trendDays', 'type': 'int'} } - def __init__(self, automated_test_name=None, branch=None, group_by=None, max_complete_date=None, results_count=None, test_results_context=None, trend_days=None): + def __init__(self, automated_test_name=None, branch=None, executed_in=None, group_by=None, max_complete_date=None, results_count=None, test_case_id=None, test_case_reference_ids=None, test_plan_id=None, test_point_ids=None, test_results_context=None, trend_days=None): super(ResultsFilter, self).__init__() self.automated_test_name = automated_test_name self.branch = branch + self.executed_in = executed_in self.group_by = group_by self.max_complete_date = max_complete_date self.results_count = results_count + self.test_case_id = test_case_id + self.test_case_reference_ids = test_case_reference_ids + self.test_plan_id = test_plan_id + self.test_point_ids = test_point_ids self.test_results_context = test_results_context self.trend_days = trend_days @@ -1160,67 +1348,73 @@ def __init__(self, automated_test_name=None, branch=None, group_by=None, max_com class RunCreateModel(Model): """RunCreateModel. - :param automated: + :param automated: true if test run is automated, false otherwise. By default it will be false. :type automated: bool - :param build: - :type build: :class:`ShallowReference ` - :param build_drop_location: + :param build: An abstracted reference to the build that it belongs. + :type build: :class:`ShallowReference ` + :param build_drop_location: Drop location of the build used for test run. :type build_drop_location: str - :param build_flavor: + :param build_flavor: Flavor of the build used for test run. (E.g: Release, Debug) :type build_flavor: str - :param build_platform: + :param build_platform: Platform of the build used for test run. (E.g.: x86, amd64) :type build_platform: str - :param comment: + :param build_reference: + :type build_reference: :class:`BuildConfiguration ` + :param comment: Comments entered by those analyzing the run. :type comment: str - :param complete_date: + :param complete_date: Completed date time of the run. :type complete_date: str - :param configuration_ids: + :param configuration_ids: IDs of the test configurations associated with the run. :type configuration_ids: list of int - :param controller: + :param controller: Name of the test controller used for automated run. :type controller: str :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_test_environment: - :type dtl_test_environment: :class:`ShallowReference ` - :param due_date: + :type custom_test_fields: list of :class:`CustomTestField ` + :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_test_environment: An abstracted reference to DtlTestEnvironment. + :type dtl_test_environment: :class:`ShallowReference ` + :param due_date: Due date and time for test run. :type due_date: str :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` - :param error_message: + :type environment_details: :class:`DtlEnvironmentDetails ` + :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` - :param iteration: + :type filter: :class:`RunFilter ` + :param iteration: The iteration in which to create the run. Root iteration of the team project will be default :type iteration: str - :param name: + :param name: Name of the test run. :type name: str - :param owner: - :type owner: :class:`IdentityRef ` - :param plan: - :type plan: :class:`ShallowReference ` - :param point_ids: + :param owner: Display name of the owner of the run. + :type owner: :class:`IdentityRef ` + :param plan: An abstracted reference to the plan that it belongs. + :type plan: :class:`ShallowReference ` + :param point_ids: IDs of the test points to use in the run. :type point_ids: list of int - :param release_environment_uri: + :param release_environment_uri: URI of release environment associated with the run. :type release_environment_uri: str - :param release_uri: + :param release_reference: + :type release_reference: :class:`ReleaseReference ` + :param release_uri: URI of release associated with the run. :type release_uri: str + :param run_summary: Run summary for run Type = NoConfigRun. + :type run_summary: list of :class:`RunSummaryModel ` :param run_timeout: :type run_timeout: object :param source_workflow: :type source_workflow: str - :param start_date: + :param start_date: Start date time of the run. :type start_date: str - :param state: + :param state: The state of the run. Valid states - NotStarted, InProgress, Waiting :type state: str :param test_configurations_mapping: :type test_configurations_mapping: str - :param test_environment_id: + :param test_environment_id: ID of the test environment associated with the run. :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` - :param type: + :param test_settings: An abstracted reference to the test settings resource. + :type test_settings: :class:`ShallowReference ` + :param type: Type of the run(RunType) :type type: str """ @@ -1230,6 +1424,7 @@ class RunCreateModel(Model): 'build_drop_location': {'key': 'buildDropLocation', 'type': 'str'}, 'build_flavor': {'key': 'buildFlavor', 'type': 'str'}, 'build_platform': {'key': 'buildPlatform', 'type': 'str'}, + 'build_reference': {'key': 'buildReference', 'type': 'BuildConfiguration'}, 'comment': {'key': 'comment', 'type': 'str'}, 'complete_date': {'key': 'completeDate', 'type': 'str'}, 'configuration_ids': {'key': 'configurationIds', 'type': '[int]'}, @@ -1247,7 +1442,9 @@ class RunCreateModel(Model): 'plan': {'key': 'plan', 'type': 'ShallowReference'}, 'point_ids': {'key': 'pointIds', 'type': '[int]'}, 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, + 'release_reference': {'key': 'releaseReference', 'type': 'ReleaseReference'}, 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'run_summary': {'key': 'runSummary', 'type': '[RunSummaryModel]'}, 'run_timeout': {'key': 'runTimeout', 'type': 'object'}, 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, 'start_date': {'key': 'startDate', 'type': 'str'}, @@ -1258,13 +1455,14 @@ class RunCreateModel(Model): 'type': {'key': 'type', 'type': 'str'} } - def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_uri=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): + def __init__(self, automated=None, build=None, build_drop_location=None, build_flavor=None, build_platform=None, build_reference=None, comment=None, complete_date=None, configuration_ids=None, controller=None, custom_test_fields=None, dtl_aut_environment=None, dtl_test_environment=None, due_date=None, environment_details=None, error_message=None, filter=None, iteration=None, name=None, owner=None, plan=None, point_ids=None, release_environment_uri=None, release_reference=None, release_uri=None, run_summary=None, run_timeout=None, source_workflow=None, start_date=None, state=None, test_configurations_mapping=None, test_environment_id=None, test_settings=None, type=None): super(RunCreateModel, self).__init__() self.automated = automated self.build = build self.build_drop_location = build_drop_location self.build_flavor = build_flavor self.build_platform = build_platform + self.build_reference = build_reference self.comment = comment self.complete_date = complete_date self.configuration_ids = configuration_ids @@ -1282,7 +1480,9 @@ def __init__(self, automated=None, build=None, build_drop_location=None, build_f self.plan = plan self.point_ids = point_ids self.release_environment_uri = release_environment_uri + self.release_reference = release_reference self.release_uri = release_uri + self.run_summary = run_summary self.run_timeout = run_timeout self.source_workflow = source_workflow self.start_date = start_date @@ -1318,11 +1518,11 @@ class RunStatistic(Model): :param count: :type count: int - :param outcome: + :param outcome: Test run outcome :type outcome: str :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` - :param state: + :type resolution_state: :class:`TestResolutionState ` + :param state: State of the test run :type state: str """ @@ -1341,57 +1541,83 @@ def __init__(self, count=None, outcome=None, resolution_state=None, state=None): self.state = state +class RunSummaryModel(Model): + """RunSummaryModel. + + :param duration: Total time taken in milliseconds. + :type duration: long + :param result_count: Number of results for Outcome TestOutcome + :type result_count: int + :param test_outcome: Summary is based on outcome + :type test_outcome: object + """ + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'long'}, + 'result_count': {'key': 'resultCount', 'type': 'int'}, + 'test_outcome': {'key': 'testOutcome', 'type': 'object'} + } + + def __init__(self, duration=None, result_count=None, test_outcome=None): + super(RunSummaryModel, self).__init__() + self.duration = duration + self.result_count = result_count + self.test_outcome = test_outcome + + class RunUpdateModel(Model): """RunUpdateModel. - :param build: - :type build: :class:`ShallowReference ` + :param build: An abstracted reference to the build that it belongs. + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: :type build_flavor: str :param build_platform: :type build_platform: str - :param comment: + :param comment: Comments entered by those analyzing the run. :type comment: str - :param completed_date: + :param completed_date: Completed date time of the run. :type completed_date: str - :param controller: + :param controller: Name of the test controller used for automated run. :type controller: str :param delete_in_progress_results: :type delete_in_progress_results: bool - :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` - :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. + :type dtl_aut_environment: :class:`ShallowReference ` + :param dtl_environment: An abstracted reference to DtlEnvironment. + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` - :param due_date: + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :param due_date: Due date and time for test run. :type due_date: str - :param error_message: + :param error_message: Error message associated with the run. :type error_message: str - :param iteration: + :param iteration: The iteration in which to create the run. :type iteration: str - :param log_entries: - :type log_entries: list of :class:`TestMessageLogDetails ` - :param name: + :param log_entries: Log entries associated with the run. Use a comma-separated list of multiple log entry objects. { logEntry }, { logEntry }, ... + :type log_entries: list of :class:`TestMessageLogDetails ` + :param name: Name of the test run. :type name: str :param release_environment_uri: :type release_environment_uri: str :param release_uri: :type release_uri: str + :param run_summary: Run summary for run Type = NoConfigRun. + :type run_summary: list of :class:`RunSummaryModel ` :param source_workflow: :type source_workflow: str - :param started_date: + :param started_date: Start date time of the run. :type started_date: str - :param state: + :param state: The state of the test run Below are the valid values - NotStarted, InProgress, Completed, Aborted, Waiting :type state: str :param substate: :type substate: object :param test_environment_id: :type test_environment_id: str - :param test_settings: - :type test_settings: :class:`ShallowReference ` + :param test_settings: An abstracted reference to test setting resource. + :type test_settings: :class:`ShallowReference ` """ _attribute_map = { @@ -1413,6 +1639,7 @@ class RunUpdateModel(Model): 'name': {'key': 'name', 'type': 'str'}, 'release_environment_uri': {'key': 'releaseEnvironmentUri', 'type': 'str'}, 'release_uri': {'key': 'releaseUri', 'type': 'str'}, + 'run_summary': {'key': 'runSummary', 'type': '[RunSummaryModel]'}, 'source_workflow': {'key': 'sourceWorkflow', 'type': 'str'}, 'started_date': {'key': 'startedDate', 'type': 'str'}, 'state': {'key': 'state', 'type': 'str'}, @@ -1421,7 +1648,7 @@ class RunUpdateModel(Model): 'test_settings': {'key': 'testSettings', 'type': 'ShallowReference'} } - def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): + def __init__(self, build=None, build_drop_location=None, build_flavor=None, build_platform=None, comment=None, completed_date=None, controller=None, delete_in_progress_results=None, dtl_aut_environment=None, dtl_environment=None, dtl_environment_details=None, due_date=None, error_message=None, iteration=None, log_entries=None, name=None, release_environment_uri=None, release_uri=None, run_summary=None, source_workflow=None, started_date=None, state=None, substate=None, test_environment_id=None, test_settings=None): super(RunUpdateModel, self).__init__() self.build = build self.build_drop_location = build_drop_location @@ -1441,6 +1668,7 @@ def __init__(self, build=None, build_drop_location=None, build_flavor=None, buil self.name = name self.release_environment_uri = release_environment_uri self.release_uri = release_uri + self.run_summary = run_summary self.source_workflow = source_workflow self.started_date = started_date self.state = state @@ -1452,7 +1680,7 @@ def __init__(self, build=None, build_drop_location=None, build_flavor=None, buil class ShallowReference(Model): """ShallowReference. - :param id: Id of the resource + :param id: ID of the resource :type id: str :param name: Name of the linked resource (definition name, controller name, etc.) :type name: str @@ -1473,12 +1701,72 @@ def __init__(self, id=None, name=None, url=None): self.url = url +class ShallowTestCaseResult(Model): + """ShallowTestCaseResult. + + :param automated_test_name: + :type automated_test_name: str + :param automated_test_storage: + :type automated_test_storage: str + :param duration_in_ms: + :type duration_in_ms: float + :param id: + :type id: int + :param is_re_run: + :type is_re_run: bool + :param outcome: + :type outcome: str + :param owner: + :type owner: str + :param priority: + :type priority: int + :param ref_id: + :type ref_id: int + :param run_id: + :type run_id: int + :param tags: + :type tags: list of str + :param test_case_title: + :type test_case_title: str + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'float'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_re_run': {'key': 'isReRun', 'type': 'bool'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'ref_id': {'key': 'refId', 'type': 'int'}, + 'run_id': {'key': 'runId', 'type': 'int'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'} + } + + def __init__(self, automated_test_name=None, automated_test_storage=None, duration_in_ms=None, id=None, is_re_run=None, outcome=None, owner=None, priority=None, ref_id=None, run_id=None, tags=None, test_case_title=None): + super(ShallowTestCaseResult, self).__init__() + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.duration_in_ms = duration_in_ms + self.id = id + self.is_re_run = is_re_run + self.outcome = outcome + self.owner = owner + self.priority = priority + self.ref_id = ref_id + self.run_id = run_id + self.tags = tags + self.test_case_title = test_case_title + + class SharedStepModel(Model): """SharedStepModel. - :param id: + :param id: WorkItem shared step ID. :type id: int - :param revision: + :param revision: Shared step workitem revision. :type revision: int """ @@ -1496,13 +1784,13 @@ def __init__(self, id=None, revision=None): class SuiteCreateModel(Model): """SuiteCreateModel. - :param name: + :param name: Name of test suite. :type name: str - :param query_string: + :param query_string: For query based suites, query string that defines the suite. :type query_string: str - :param requirement_ids: + :param requirement_ids: For requirements test suites, the IDs of the requirements. :type requirement_ids: list of int - :param suite_type: + :param suite_type: Type of test suite to create. It can have value from DynamicTestSuite, StaticTestSuite and RequirementTestSuite. :type suite_type: str """ @@ -1524,13 +1812,13 @@ def __init__(self, name=None, query_string=None, requirement_ids=None, suite_typ class SuiteEntry(Model): """SuiteEntry. - :param child_suite_id: Id of child suite in a suite + :param child_suite_id: Id of child suite in the test suite. :type child_suite_id: int - :param sequence_number: Sequence number for the test case or child suite in the suite + :param sequence_number: Sequence number for the test case or child test suite in the test suite. :type sequence_number: int - :param suite_id: Id for the suite + :param suite_id: Id for the test suite. :type suite_id: int - :param test_case_id: Id of a test case in a suite + :param test_case_id: Id of a test case in the test suite. :type test_case_id: int """ @@ -1552,11 +1840,11 @@ def __init__(self, child_suite_id=None, sequence_number=None, suite_id=None, tes class SuiteEntryUpdateModel(Model): """SuiteEntryUpdateModel. - :param child_suite_id: Id of child suite in a suite + :param child_suite_id: Id of the child suite in the test suite. :type child_suite_id: int - :param sequence_number: Updated sequence number for the test case or child suite in the suite + :param sequence_number: Updated sequence number for the test case or child test suite in the test suite. :type sequence_number: int - :param test_case_id: Id of a test case in a suite + :param test_case_id: Id of the test case in the test suite. :type test_case_id: int """ @@ -1576,10 +1864,10 @@ def __init__(self, child_suite_id=None, sequence_number=None, test_case_id=None) class SuiteTestCase(Model): """SuiteTestCase. - :param point_assignments: - :type point_assignments: list of :class:`PointAssignment ` - :param test_case: - :type test_case: :class:`WorkItemReference ` + :param point_assignments: Point Assignment for test suite's test case. + :type point_assignments: list of :class:`PointAssignment ` + :param test_case: Test case workItem reference. + :type test_case: :class:`WorkItemReference ` """ _attribute_map = { @@ -1593,6 +1881,58 @@ def __init__(self, point_assignments=None, test_case=None): self.test_case = test_case +class SuiteTestCaseUpdateModel(Model): + """SuiteTestCaseUpdateModel. + + :param configurations: Shallow reference of configurations for the test cases in the suite. + :type configurations: list of :class:`ShallowReference ` + """ + + _attribute_map = { + 'configurations': {'key': 'configurations', 'type': '[ShallowReference]'} + } + + def __init__(self, configurations=None): + super(SuiteTestCaseUpdateModel, self).__init__() + self.configurations = configurations + + +class SuiteUpdateModel(Model): + """SuiteUpdateModel. + + :param default_configurations: Shallow reference of default configurations for the suite. + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: Shallow reference of test suite. + :type default_testers: list of :class:`ShallowReference ` + :param inherit_default_configurations: Specifies if the default configurations have to be inherited from the parent test suite in which the test suite is created. + :type inherit_default_configurations: bool + :param name: Test suite name + :type name: str + :param parent: Shallow reference of the parent. + :type parent: :class:`ShallowReference ` + :param query_string: For query based suites, the new query string. + :type query_string: str + """ + + _attribute_map = { + 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, + 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'ShallowReference'}, + 'query_string': {'key': 'queryString', 'type': 'str'} + } + + def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent=None, query_string=None): + super(SuiteUpdateModel, self).__init__() + self.default_configurations = default_configurations + self.default_testers = default_testers + self.inherit_default_configurations = inherit_default_configurations + self.name = name + self.parent = parent + self.query_string = query_string + + class TeamContext(Model): """TeamContext. @@ -1626,10 +1966,14 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. :type id: str + :param last_update_time: Project last update time. + :type last_update_time: datetime :param name: Project name. :type name: str :param revision: Project revision. @@ -1644,8 +1988,10 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'revision': {'key': 'revision', 'type': 'long'}, 'state': {'key': 'state', 'type': 'object'}, @@ -1653,11 +1999,13 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id + self.last_update_time = last_update_time self.name = name self.revision = revision self.state = state @@ -1668,17 +2016,19 @@ def __init__(self, abbreviation=None, description=None, id=None, name=None, revi class TestAttachment(Model): """TestAttachment. - :param attachment_type: + :param attachment_type: Attachment type. :type attachment_type: object - :param comment: + :param comment: Comment associated with attachment. :type comment: str - :param created_date: + :param created_date: Attachment created date. :type created_date: datetime - :param file_name: + :param file_name: Attachment file name :type file_name: str - :param id: + :param id: ID of the attachment. :type id: int - :param url: + :param size: Attachment size. + :type size: long + :param url: Attachment Url. :type url: str """ @@ -1688,25 +2038,27 @@ class TestAttachment(Model): 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, 'file_name': {'key': 'fileName', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, + 'size': {'key': 'size', 'type': 'long'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, url=None): + def __init__(self, attachment_type=None, comment=None, created_date=None, file_name=None, id=None, size=None, url=None): super(TestAttachment, self).__init__() self.attachment_type = attachment_type self.comment = comment self.created_date = created_date self.file_name = file_name self.id = id + self.size = size self.url = url class TestAttachmentReference(Model): """TestAttachmentReference. - :param id: + :param id: ID of the attachment. :type id: int - :param url: + :param url: Url to download the attachment. :type url: str """ @@ -1724,13 +2076,13 @@ def __init__(self, id=None, url=None): class TestAttachmentRequestModel(Model): """TestAttachmentRequestModel. - :param attachment_type: + :param attachment_type: Attachment type By Default it will be GeneralAttachment. It can be one of the following type. { GeneralAttachment, AfnStrip, BugFilingData, CodeCoverage, IntermediateCollectorData, RunConfig, TestImpactDetails, TmiTestRunDeploymentFiles, TmiTestRunReverseDeploymentFiles, TmiTestResultDetail, TmiTestRunSummary } :type attachment_type: str - :param comment: + :param comment: Comment associated with attachment :type comment: str - :param file_name: + :param file_name: Attachment filename :type file_name: str - :param stream: + :param stream: Base64 encoded file stream :type stream: str """ @@ -1752,97 +2104,103 @@ def __init__(self, attachment_type=None, comment=None, file_name=None, stream=No class TestCaseResult(Model): """TestCaseResult. - :param afn_strip_id: + :param afn_strip_id: Test attachment ID of action recording. :type afn_strip_id: int - :param area: - :type area: :class:`ShallowReference ` - :param associated_bugs: - :type associated_bugs: list of :class:`ShallowReference ` - :param automated_test_id: + :param area: Reference to area path of test. + :type area: :class:`ShallowReference ` + :param associated_bugs: Reference to bugs linked to test result. + :type associated_bugs: list of :class:`ShallowReference ` + :param automated_test_id: ID representing test method in a dll. :type automated_test_id: str - :param automated_test_name: + :param automated_test_name: Fully qualified name of test executed. :type automated_test_name: str - :param automated_test_storage: + :param automated_test_storage: Container to which test belongs. :type automated_test_storage: str - :param automated_test_type: + :param automated_test_type: Type of automated test. :type automated_test_type: str :param automated_test_type_id: :type automated_test_type_id: str - :param build: - :type build: :class:`ShallowReference ` - :param build_reference: - :type build_reference: :class:`BuildReference ` - :param comment: + :param build: Shallow reference to build associated with test result. + :type build: :class:`ShallowReference ` + :param build_reference: Reference to build associated with test result. + :type build_reference: :class:`BuildReference ` + :param comment: Comment in a test result. :type comment: str - :param completed_date: + :param completed_date: Time when test execution completed. :type completed_date: datetime - :param computer_name: + :param computer_name: Machine name where test executed. :type computer_name: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param created_date: + :param configuration: Test configuration of a test result. + :type configuration: :class:`ShallowReference ` + :param created_date: Timestamp when test result created. :type created_date: datetime - :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` - :param duration_in_ms: + :param custom_fields: Additional properties of test result. + :type custom_fields: list of :class:`CustomTestField ` + :param duration_in_ms: Duration of test execution in milliseconds. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in test execution. :type error_message: str - :param failing_since: - :type failing_since: :class:`FailingSince ` - :param failure_type: + :param failing_since: Information when test results started failing. + :type failing_since: :class:`FailingSince ` + :param failure_type: Failure type of test result. :type failure_type: str - :param id: + :param id: ID of a test result. :type id: int - :param iteration_details: - :type iteration_details: list of :class:`TestIterationDetailsModel ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param iteration_details: Test result details of test iterations. + :type iteration_details: list of :class:`TestIterationDetailsModel ` + :param last_updated_by: Reference to identity last updated test result. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated datetime of test result. :type last_updated_date: datetime - :param outcome: + :param outcome: Test outcome of test result. :type outcome: str - :param owner: - :type owner: :class:`IdentityRef ` - :param priority: + :param owner: Reference to test owner. + :type owner: :class:`IdentityRef ` + :param priority: Priority of test executed. :type priority: int - :param project: - :type project: :class:`ShallowReference ` - :param release: - :type release: :class:`ShallowReference ` - :param release_reference: - :type release_reference: :class:`ReleaseReference ` + :param project: Reference to team project. + :type project: :class:`ShallowReference ` + :param release: Shallow reference to release associated with test result. + :type release: :class:`ShallowReference ` + :param release_reference: Reference to release associated with test result. + :type release_reference: :class:`ReleaseReference ` :param reset_count: :type reset_count: int - :param resolution_state: + :param resolution_state: Resolution state of test result. :type resolution_state: str - :param resolution_state_id: + :param resolution_state_id: ID of resolution state. :type resolution_state_id: int - :param revision: + :param result_group_type: Hierarchy type of the result, default value of None means its leaf node. + :type result_group_type: object + :param revision: Revision number of test result. :type revision: int - :param run_by: - :type run_by: :class:`IdentityRef ` - :param stack_trace: + :param run_by: Reference to identity executed the test. + :type run_by: :class:`IdentityRef ` + :param stack_trace: Stacktrace. :type stack_trace: str - :param started_date: + :param started_date: Time when test execution started. :type started_date: datetime - :param state: + :param state: State of test result. :type state: str - :param test_case: - :type test_case: :class:`ShallowReference ` - :param test_case_reference_id: + :param sub_results: List of sub results inside a test result, if ResultGroupType is not None, it holds corresponding type sub results. + :type sub_results: list of :class:`TestSubResult ` + :param test_case: Reference to the test executed. + :type test_case: :class:`ShallowReference ` + :param test_case_reference_id: Reference ID of test used by test result. :type test_case_reference_id: int - :param test_case_title: + :param test_case_revision: Name of test. + :type test_case_revision: int + :param test_case_title: Name of test. :type test_case_title: str - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param test_point: - :type test_point: :class:`ShallowReference ` - :param test_run: - :type test_run: :class:`ShallowReference ` - :param test_suite: - :type test_suite: :class:`ShallowReference ` - :param url: + :param test_plan: Reference to test plan test case workitem is part of. + :type test_plan: :class:`ShallowReference ` + :param test_point: Reference to the test point executed. + :type test_point: :class:`ShallowReference ` + :param test_run: Reference to test run. + :type test_run: :class:`ShallowReference ` + :param test_suite: Reference to test suite test case workitem is part of. + :type test_suite: :class:`ShallowReference ` + :param url: Url of test result. :type url: str """ @@ -1880,13 +2238,16 @@ class TestCaseResult(Model): 'reset_count': {'key': 'resetCount', 'type': 'int'}, 'resolution_state': {'key': 'resolutionState', 'type': 'str'}, 'resolution_state_id': {'key': 'resolutionStateId', 'type': 'int'}, + 'result_group_type': {'key': 'resultGroupType', 'type': 'object'}, 'revision': {'key': 'revision', 'type': 'int'}, 'run_by': {'key': 'runBy', 'type': 'IdentityRef'}, 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, 'state': {'key': 'state', 'type': 'str'}, + 'sub_results': {'key': 'subResults', 'type': '[TestSubResult]'}, 'test_case': {'key': 'testCase', 'type': 'ShallowReference'}, 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_revision': {'key': 'testCaseRevision', 'type': 'int'}, 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'}, 'test_plan': {'key': 'testPlan', 'type': 'ShallowReference'}, 'test_point': {'key': 'testPoint', 'type': 'ShallowReference'}, @@ -1895,7 +2256,7 @@ class TestCaseResult(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, test_case=None, test_case_reference_id=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): + def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated_test_id=None, automated_test_name=None, automated_test_storage=None, automated_test_type=None, automated_test_type_id=None, build=None, build_reference=None, comment=None, completed_date=None, computer_name=None, configuration=None, created_date=None, custom_fields=None, duration_in_ms=None, error_message=None, failing_since=None, failure_type=None, id=None, iteration_details=None, last_updated_by=None, last_updated_date=None, outcome=None, owner=None, priority=None, project=None, release=None, release_reference=None, reset_count=None, resolution_state=None, resolution_state_id=None, result_group_type=None, revision=None, run_by=None, stack_trace=None, started_date=None, state=None, sub_results=None, test_case=None, test_case_reference_id=None, test_case_revision=None, test_case_title=None, test_plan=None, test_point=None, test_run=None, test_suite=None, url=None): super(TestCaseResult, self).__init__() self.afn_strip_id = afn_strip_id self.area = area @@ -1930,13 +2291,16 @@ def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated self.reset_count = reset_count self.resolution_state = resolution_state self.resolution_state_id = resolution_state_id + self.result_group_type = result_group_type self.revision = revision self.run_by = run_by self.stack_trace = stack_trace self.started_date = started_date self.state = state + self.sub_results = sub_results self.test_case = test_case self.test_case_reference_id = test_case_reference_id + self.test_case_revision = test_case_revision self.test_case_title = test_case_title self.test_plan = test_plan self.test_point = test_point @@ -1948,19 +2312,22 @@ def __init__(self, afn_strip_id=None, area=None, associated_bugs=None, automated class TestCaseResultAttachmentModel(Model): """TestCaseResultAttachmentModel. - :param id: + :param action_path: Path identifier test step in test case workitem. + :type action_path: str + :param id: Attachment ID. :type id: int - :param iteration_id: + :param iteration_id: Iteration ID. :type iteration_id: int - :param name: + :param name: Name of attachment. :type name: str - :param size: + :param size: Attachment size. :type size: long - :param url: + :param url: Url to attachment. :type url: str """ _attribute_map = { + 'action_path': {'key': 'actionPath', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, 'iteration_id': {'key': 'iterationId', 'type': 'int'}, 'name': {'key': 'name', 'type': 'str'}, @@ -1968,8 +2335,9 @@ class TestCaseResultAttachmentModel(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): + def __init__(self, action_path=None, id=None, iteration_id=None, name=None, size=None, url=None): super(TestCaseResultAttachmentModel, self).__init__() + self.action_path = action_path self.id = id self.iteration_id = iteration_id self.name = name @@ -1980,9 +2348,9 @@ def __init__(self, id=None, iteration_id=None, name=None, size=None, url=None): class TestCaseResultIdentifier(Model): """TestCaseResultIdentifier. - :param test_result_id: + :param test_result_id: Test result ID. :type test_result_id: int - :param test_run_id: + :param test_run_id: Test run ID. :type test_run_id: int """ @@ -2011,7 +2379,7 @@ class TestCaseResultUpdateModel(Model): :param computer_name: :type computer_name: str :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2021,11 +2389,11 @@ class TestCaseResultUpdateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2035,7 +2403,7 @@ class TestCaseResultUpdateModel(Model): :param test_case_priority: :type test_case_priority: str :param test_result: - :type test_result: :class:`ShallowReference ` + :type test_result: :class:`ShallowReference ` """ _attribute_map = { @@ -2085,7 +2453,7 @@ class TestConfiguration(Model): """TestConfiguration. :param area: Area of the configuration - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param description: Description of the configuration :type description: str :param id: Id of the configuration @@ -2093,13 +2461,13 @@ class TestConfiguration(Model): :param is_default: Is the configuration a default for the test plans :type is_default: bool :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last Updated Data :type last_updated_date: datetime :param name: Name of the configuration :type name: str :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision of the the configuration :type revision: int :param state: State of the configuration @@ -2107,7 +2475,7 @@ class TestConfiguration(Model): :param url: Url of Configuration Resource :type url: str :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` + :type values: list of :class:`NameValuePair ` """ _attribute_map = { @@ -2167,7 +2535,7 @@ class TestFailureDetails(Model): :param count: :type count: int :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` + :type test_results: list of :class:`TestCaseResultIdentifier ` """ _attribute_map = { @@ -2185,13 +2553,13 @@ class TestFailuresAnalysis(Model): """TestFailuresAnalysis. :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` + :type existing_failures: :class:`TestFailureDetails ` :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` + :type fixed_tests: :class:`TestFailureDetails ` :param new_failures: - :type new_failures: :class:`TestFailureDetails ` + :type new_failures: :class:`TestFailureDetails ` :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -2209,30 +2577,82 @@ def __init__(self, existing_failures=None, fixed_tests=None, new_failures=None, self.previous_context = previous_context +class TestHistoryQuery(Model): + """TestHistoryQuery. + + :param automated_test_name: Automated test name of the TestCase. + :type automated_test_name: str + :param branch: Results to be get for a particular branches. + :type branch: str + :param build_definition_id: Get the results history only for this BuildDefinationId. This to get used in query GroupBy should be Branch. If this is provided, Branch will have no use. + :type build_definition_id: int + :param continuation_token: It will be filled by server. If not null means there are some results still to be get, and we need to call this REST API with this ContinuousToken. It is not supposed to be created (or altered, if received from server in last batch) by user. + :type continuation_token: str + :param group_by: Group the result on the basis of TestResultGroupBy. This can be Branch, Environment or null(if results are fetched by BuildDefinitionId) + :type group_by: object + :param max_complete_date: History to get between time interval MaxCompleteDate and (MaxCompleteDate - TrendDays). Default is current date time. + :type max_complete_date: datetime + :param release_env_definition_id: Get the results history only for this ReleaseEnvDefinitionId. This to get used in query GroupBy should be Environment. + :type release_env_definition_id: int + :param results_for_group: List of TestResultHistoryForGroup which are grouped by GroupBy + :type results_for_group: list of :class:`TestResultHistoryForGroup ` + :param test_case_id: Get the results history only for this testCaseId. This to get used in query to filter the result along with automatedtestname + :type test_case_id: int + :param trend_days: Number of days for which history to collect. Maximum supported value is 7 days. Default is 7 days. + :type trend_days: int + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'branch': {'key': 'branch', 'type': 'str'}, + 'build_definition_id': {'key': 'buildDefinitionId', 'type': 'int'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'group_by': {'key': 'groupBy', 'type': 'object'}, + 'max_complete_date': {'key': 'maxCompleteDate', 'type': 'iso-8601'}, + 'release_env_definition_id': {'key': 'releaseEnvDefinitionId', 'type': 'int'}, + 'results_for_group': {'key': 'resultsForGroup', 'type': '[TestResultHistoryForGroup]'}, + 'test_case_id': {'key': 'testCaseId', 'type': 'int'}, + 'trend_days': {'key': 'trendDays', 'type': 'int'} + } + + def __init__(self, automated_test_name=None, branch=None, build_definition_id=None, continuation_token=None, group_by=None, max_complete_date=None, release_env_definition_id=None, results_for_group=None, test_case_id=None, trend_days=None): + super(TestHistoryQuery, self).__init__() + self.automated_test_name = automated_test_name + self.branch = branch + self.build_definition_id = build_definition_id + self.continuation_token = continuation_token + self.group_by = group_by + self.max_complete_date = max_complete_date + self.release_env_definition_id = release_env_definition_id + self.results_for_group = results_for_group + self.test_case_id = test_case_id + self.trend_days = trend_days + + class TestIterationDetailsModel(Model): """TestIterationDetailsModel. - :param action_results: - :type action_results: list of :class:`TestActionResultModel ` - :param attachments: - :type attachments: list of :class:`TestCaseResultAttachmentModel ` - :param comment: + :param action_results: Test step results in an iteration. + :type action_results: list of :class:`TestActionResultModel ` + :param attachments: Refence to attachments in test iteration result. + :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :param comment: Comment in test iteration result. :type comment: str - :param completed_date: + :param completed_date: Time when execution completed. :type completed_date: datetime - :param duration_in_ms: + :param duration_in_ms: Duration of execution. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in test iteration result execution. :type error_message: str - :param id: + :param id: ID of test iteration result. :type id: int - :param outcome: + :param outcome: Test outcome if test iteration result. :type outcome: str - :param parameters: - :type parameters: list of :class:`TestResultParameterModel ` - :param started_date: + :param parameters: Test parameters in an iteration. + :type parameters: list of :class:`TestResultParameterModel ` + :param started_date: Time when execution started. :type started_date: datetime - :param url: + :param url: Url to test iteration result. :type url: str """ @@ -2333,56 +2753,74 @@ def __init__(self, id=None, status=None, url=None): self.url = url +class TestOutcomeSettings(Model): + """TestOutcomeSettings. + + :param sync_outcome_across_suites: Value to configure how test outcomes for the same tests across suites are shown + :type sync_outcome_across_suites: bool + """ + + _attribute_map = { + 'sync_outcome_across_suites': {'key': 'syncOutcomeAcrossSuites', 'type': 'bool'} + } + + def __init__(self, sync_outcome_across_suites=None): + super(TestOutcomeSettings, self).__init__() + self.sync_outcome_across_suites = sync_outcome_across_suites + + class TestPlan(Model): """TestPlan. - :param area: - :type area: :class:`ShallowReference ` + :param area: Area of the test plan. + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` - :param build: - :type build: :class:`ShallowReference ` - :param build_definition: - :type build_definition: :class:`ShallowReference ` + :type automated_test_settings: :class:`TestSettings ` + :param build: Build to be tested. + :type build: :class:`ShallowReference ` + :param build_definition: The Build Definition that generates a build associated with this test plan. + :type build_definition: :class:`ShallowReference ` :param client_url: :type client_url: str - :param description: + :param description: Description of the test plan. :type description: str - :param end_date: + :param end_date: End date for the test plan. :type end_date: datetime - :param id: + :param id: ID of the test plan. :type id: int - :param iteration: + :param iteration: Iteration path of the test plan. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` - :param name: + :type manual_test_settings: :class:`TestSettings ` + :param name: Name of the test plan. :type name: str - :param owner: - :type owner: :class:`IdentityRef ` + :param owner: Owner of the test plan. + :type owner: :class:`IdentityRef ` :param previous_build: - :type previous_build: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param release_environment_definition: - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` - :param revision: + :type previous_build: :class:`ShallowReference ` + :param project: Project which contains the test plan. + :type project: :class:`ShallowReference ` + :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :param revision: Revision of the test plan. :type revision: int - :param root_suite: - :type root_suite: :class:`ShallowReference ` - :param start_date: + :param root_suite: Root test suite of the test plan. + :type root_suite: :class:`ShallowReference ` + :param start_date: Start date for the test plan. :type start_date: datetime - :param state: + :param state: State of the test plan. :type state: str + :param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave + :type test_outcome_settings: :class:`TestOutcomeSettings ` :param updated_by: - :type updated_by: :class:`IdentityRef ` + :type updated_by: :class:`IdentityRef ` :param updated_date: :type updated_date: datetime - :param url: + :param url: URL of the test plan resource. :type url: str """ @@ -2408,12 +2846,13 @@ class TestPlan(Model): 'root_suite': {'key': 'rootSuite', 'type': 'ShallowReference'}, 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, 'state': {'key': 'state', 'type': 'str'}, + 'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'}, 'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'}, 'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, updated_by=None, updated_date=None, url=None): + def __init__(self, area=None, automated_test_environment=None, automated_test_settings=None, build=None, build_definition=None, client_url=None, description=None, end_date=None, id=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, previous_build=None, project=None, release_environment_definition=None, revision=None, root_suite=None, start_date=None, state=None, test_outcome_settings=None, updated_by=None, updated_date=None, url=None): super(TestPlan, self).__init__() self.area = area self.automated_test_environment = automated_test_environment @@ -2436,6 +2875,7 @@ def __init__(self, area=None, automated_test_environment=None, automated_test_se self.root_suite = root_suite self.start_date = start_date self.state = state + self.test_outcome_settings = test_outcome_settings self.updated_by = updated_by self.updated_date = updated_date self.url = url @@ -2445,9 +2885,9 @@ class TestPlanCloneRequest(Model): """TestPlanCloneRequest. :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` + :type destination_test_plan: :class:`TestPlan ` :param options: - :type options: :class:`CloneOptions ` + :type options: :class:`CloneOptions ` :param suite_ids: :type suite_ids: list of int """ @@ -2468,49 +2908,51 @@ def __init__(self, destination_test_plan=None, options=None, suite_ids=None): class TestPoint(Model): """TestPoint. - :param assigned_to: - :type assigned_to: :class:`IdentityRef ` - :param automated: + :param assigned_to: AssignedTo. Type IdentityRef. + :type assigned_to: :class:`IdentityRef ` + :param automated: Automated. :type automated: bool - :param comment: + :param comment: Comment associated with test point. :type comment: str - :param configuration: - :type configuration: :class:`ShallowReference ` - :param failure_type: + :param configuration: Configuration. Type ShallowReference. + :type configuration: :class:`ShallowReference ` + :param failure_type: Failure type of test point. :type failure_type: str - :param id: + :param id: ID of the test point. :type id: int - :param last_resolution_state_id: + :param last_reset_to_active: Last date when test point was reset to Active. + :type last_reset_to_active: datetime + :param last_resolution_state_id: Last resolution state id of test point. :type last_resolution_state_id: int - :param last_result: - :type last_result: :class:`ShallowReference ` - :param last_result_details: - :type last_result_details: :class:`LastResultDetails ` - :param last_result_state: + :param last_result: Last result of test point. Type ShallowReference. + :type last_result: :class:`ShallowReference ` + :param last_result_details: Last result details of test point. Type LastResultDetails. + :type last_result_details: :class:`LastResultDetails ` + :param last_result_state: Last result state of test point. :type last_result_state: str - :param last_run_build_number: + :param last_run_build_number: LastRun build number of test point. :type last_run_build_number: str - :param last_test_run: - :type last_test_run: :class:`ShallowReference ` - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_test_run: Last testRun of test point. Type ShallowReference. + :type last_test_run: :class:`ShallowReference ` + :param last_updated_by: Test point last updated by. Type IdentityRef. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date of test point. :type last_updated_date: datetime - :param outcome: + :param outcome: Outcome of test point. :type outcome: str - :param revision: + :param revision: Revision number. :type revision: int - :param state: + :param state: State of test point. :type state: str - :param suite: - :type suite: :class:`ShallowReference ` - :param test_case: - :type test_case: :class:`WorkItemReference ` - :param test_plan: - :type test_plan: :class:`ShallowReference ` - :param url: + :param suite: Suite of test point. Type ShallowReference. + :type suite: :class:`ShallowReference ` + :param test_case: TestCase associated to test point. Type WorkItemReference. + :type test_case: :class:`WorkItemReference ` + :param test_plan: TestPlan of test point. Type ShallowReference. + :type test_plan: :class:`ShallowReference ` + :param url: Test point Url. :type url: str - :param work_item_properties: + :param work_item_properties: Work item properties of test point. :type work_item_properties: list of object """ @@ -2521,6 +2963,7 @@ class TestPoint(Model): 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, 'failure_type': {'key': 'failureType', 'type': 'str'}, 'id': {'key': 'id', 'type': 'int'}, + 'last_reset_to_active': {'key': 'lastResetToActive', 'type': 'iso-8601'}, 'last_resolution_state_id': {'key': 'lastResolutionStateId', 'type': 'int'}, 'last_result': {'key': 'lastResult', 'type': 'ShallowReference'}, 'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'}, @@ -2539,7 +2982,7 @@ class TestPoint(Model): 'work_item_properties': {'key': 'workItemProperties', 'type': '[object]'} } - def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): + def __init__(self, assigned_to=None, automated=None, comment=None, configuration=None, failure_type=None, id=None, last_reset_to_active=None, last_resolution_state_id=None, last_result=None, last_result_details=None, last_result_state=None, last_run_build_number=None, last_test_run=None, last_updated_by=None, last_updated_date=None, outcome=None, revision=None, state=None, suite=None, test_case=None, test_plan=None, url=None, work_item_properties=None): super(TestPoint, self).__init__() self.assigned_to = assigned_to self.automated = automated @@ -2547,6 +2990,7 @@ def __init__(self, assigned_to=None, automated=None, comment=None, configuration self.configuration = configuration self.failure_type = failure_type self.id = id + self.last_reset_to_active = last_reset_to_active self.last_resolution_state_id = last_resolution_state_id self.last_result = last_result self.last_result_details = last_result_details @@ -2568,13 +3012,13 @@ def __init__(self, assigned_to=None, automated=None, comment=None, configuration class TestPointsQuery(Model): """TestPointsQuery. - :param order_by: + :param order_by: Order by results. :type order_by: str - :param points: - :type points: list of :class:`TestPoint ` - :param points_filter: - :type points_filter: :class:`PointsFilter ` - :param wit_fields: + :param points: List of test points + :type points: list of :class:`TestPoint ` + :param points_filter: Filter + :type points_filter: :class:`PointsFilter ` + :param wit_fields: List of workitem fields to get. :type wit_fields: list of str """ @@ -2601,7 +3045,7 @@ class TestResolutionState(Model): :param name: :type name: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` """ _attribute_map = { @@ -2621,7 +3065,7 @@ class TestResultCreateModel(Model): """TestResultCreateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_work_items: :type associated_work_items: list of int :param automated_test_id: @@ -2641,9 +3085,9 @@ class TestResultCreateModel(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2653,11 +3097,11 @@ class TestResultCreateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2665,13 +3109,13 @@ class TestResultCreateModel(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_priority: :type test_case_priority: str :param test_case_title: :type test_case_title: str :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` """ _attribute_map = { @@ -2737,9 +3181,9 @@ class TestResultDocument(Model): """TestResultDocument. :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` + :type operation_reference: :class:`TestOperationReference ` :param payload: - :type payload: :class:`TestResultPayload ` + :type payload: :class:`TestResultPayload ` """ _attribute_map = { @@ -2759,7 +3203,7 @@ class TestResultHistory(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` """ _attribute_map = { @@ -2779,7 +3223,7 @@ class TestResultHistoryDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param latest_result: - :type latest_result: :class:`TestCaseResult ` + :type latest_result: :class:`TestCaseResult ` """ _attribute_map = { @@ -2793,20 +3237,80 @@ def __init__(self, group_by_value=None, latest_result=None): self.latest_result = latest_result +class TestResultHistoryForGroup(Model): + """TestResultHistoryForGroup. + + :param display_name: Display name of the group. + :type display_name: str + :param group_by_value: Name or Id of the group identifier by which results are grouped together. + :type group_by_value: str + :param results: List of results for GroupByValue + :type results: list of :class:`TestCaseResult ` + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'group_by_value': {'key': 'groupByValue', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[TestCaseResult]'} + } + + def __init__(self, display_name=None, group_by_value=None, results=None): + super(TestResultHistoryForGroup, self).__init__() + self.display_name = display_name + self.group_by_value = group_by_value + self.results = results + + +class TestResultMetaData(Model): + """TestResultMetaData. + + :param automated_test_name: AutomatedTestName of test result. + :type automated_test_name: str + :param automated_test_storage: AutomatedTestStorage of test result. + :type automated_test_storage: str + :param owner: Owner of test result. + :type owner: str + :param priority: Priority of test result. + :type priority: int + :param test_case_reference_id: ID of TestCaseReference. + :type test_case_reference_id: int + :param test_case_title: TestCaseTitle of test result. + :type test_case_title: str + """ + + _attribute_map = { + 'automated_test_name': {'key': 'automatedTestName', 'type': 'str'}, + 'automated_test_storage': {'key': 'automatedTestStorage', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'test_case_reference_id': {'key': 'testCaseReferenceId', 'type': 'int'}, + 'test_case_title': {'key': 'testCaseTitle', 'type': 'str'} + } + + def __init__(self, automated_test_name=None, automated_test_storage=None, owner=None, priority=None, test_case_reference_id=None, test_case_title=None): + super(TestResultMetaData, self).__init__() + self.automated_test_name = automated_test_name + self.automated_test_storage = automated_test_storage + self.owner = owner + self.priority = priority + self.test_case_reference_id = test_case_reference_id + self.test_case_title = test_case_title + + class TestResultModelBase(Model): """TestResultModelBase. - :param comment: + :param comment: Comment in result. :type comment: str - :param completed_date: + :param completed_date: Time when execution completed. :type completed_date: datetime - :param duration_in_ms: + :param duration_in_ms: Duration of execution. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in result. :type error_message: str - :param outcome: + :param outcome: Test outcome of result. :type outcome: str - :param started_date: + :param started_date: Time when execution started. :type started_date: datetime """ @@ -2832,17 +3336,17 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error class TestResultParameterModel(Model): """TestResultParameterModel. - :param action_path: + :param action_path: Test step path where parameter is referenced. :type action_path: str - :param iteration_id: + :param iteration_id: Iteration ID. :type iteration_id: int - :param parameter_name: + :param parameter_name: Name of parameter. :type parameter_name: str :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str - :param url: + :param url: Url of test parameter. :type url: str - :param value: + :param value: Value of parameter. :type value: str """ @@ -2893,11 +3397,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -2919,7 +3423,7 @@ class TestResultsDetails(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` """ _attribute_map = { @@ -2939,22 +3443,70 @@ class TestResultsDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_count_by_outcome: :type results_count_by_outcome: dict + :param tags: + :type tags: list of str """ _attribute_map = { 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, 'results': {'key': 'results', 'type': '[TestCaseResult]'}, - 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'} + 'results_count_by_outcome': {'key': 'resultsCountByOutcome', 'type': '{AggregatedResultsByOutcome}'}, + 'tags': {'key': 'tags', 'type': '[str]'} } - def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None): + def __init__(self, group_by_value=None, results=None, results_count_by_outcome=None, tags=None): super(TestResultsDetailsForGroup, self).__init__() self.group_by_value = group_by_value self.results = results self.results_count_by_outcome = results_count_by_outcome + self.tags = tags + + +class TestResultsGroupsForBuild(Model): + """TestResultsGroupsForBuild. + + :param build_id: BuildId for which groupby result is fetched. + :type build_id: int + :param fields: The group by results + :type fields: list of :class:`FieldDetailsForTestResults ` + """ + + _attribute_map = { + 'build_id': {'key': 'buildId', 'type': 'int'}, + 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'} + } + + def __init__(self, build_id=None, fields=None): + super(TestResultsGroupsForBuild, self).__init__() + self.build_id = build_id + self.fields = fields + + +class TestResultsGroupsForRelease(Model): + """TestResultsGroupsForRelease. + + :param fields: The group by results + :type fields: list of :class:`FieldDetailsForTestResults ` + :param release_env_id: Release Environment Id for which groupby result is fetched. + :type release_env_id: int + :param release_id: ReleaseId for which groupby result is fetched. + :type release_id: int + """ + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[FieldDetailsForTestResults]'}, + 'release_env_id': {'key': 'releaseEnvId', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, fields=None, release_env_id=None, release_id=None): + super(TestResultsGroupsForRelease, self).__init__() + self.fields = fields + self.release_env_id = release_env_id + self.release_id = release_id class TestResultsQuery(Model): @@ -2963,9 +3515,9 @@ class TestResultsQuery(Model): :param fields: :type fields: list of str :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_filter: - :type results_filter: :class:`ResultsFilter ` + :type results_filter: :class:`ResultsFilter ` """ _attribute_map = { @@ -2985,28 +3537,36 @@ class TestResultSummary(Model): """TestResultSummary. :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :param no_config_runs_count: + :type no_config_runs_count: int :param team_project: - :type team_project: :class:`TeamProjectReference ` + :type team_project: :class:`TeamProjectReference ` :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` + :type test_failures: :class:`TestFailuresAnalysis ` :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` + :param total_runs_count: + :type total_runs_count: int """ _attribute_map = { 'aggregated_results_analysis': {'key': 'aggregatedResultsAnalysis', 'type': 'AggregatedResultsAnalysis'}, + 'no_config_runs_count': {'key': 'noConfigRunsCount', 'type': 'int'}, 'team_project': {'key': 'teamProject', 'type': 'TeamProjectReference'}, 'test_failures': {'key': 'testFailures', 'type': 'TestFailuresAnalysis'}, - 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'} + 'test_results_context': {'key': 'testResultsContext', 'type': 'TestResultsContext'}, + 'total_runs_count': {'key': 'totalRunsCount', 'type': 'int'} } - def __init__(self, aggregated_results_analysis=None, team_project=None, test_failures=None, test_results_context=None): + def __init__(self, aggregated_results_analysis=None, no_config_runs_count=None, team_project=None, test_failures=None, test_results_context=None, total_runs_count=None): super(TestResultSummary, self).__init__() self.aggregated_results_analysis = aggregated_results_analysis + self.no_config_runs_count = no_config_runs_count self.team_project = team_project self.test_failures = test_failures self.test_results_context = test_results_context + self.total_runs_count = total_runs_count class TestResultTrendFilter(Model): @@ -3056,64 +3616,64 @@ def __init__(self, branch_names=None, build_count=None, definition_ids=None, env class TestRun(Model): """TestRun. - :param build: - :type build: :class:`ShallowReference ` - :param build_configuration: - :type build_configuration: :class:`BuildConfiguration ` - :param comment: + :param build: Build associated with this test run. + :type build: :class:`ShallowReference ` + :param build_configuration: Build configuration details associated with this test run. + :type build_configuration: :class:`BuildConfiguration ` + :param comment: Comments entered by those analyzing the run. :type comment: str - :param completed_date: + :param completed_date: Completed date time of the run. :type completed_date: datetime :param controller: :type controller: str :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param drop_location: :type drop_location: str :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` - :param due_date: + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :param due_date: Due date and time for test run. :type due_date: datetime - :param error_message: + :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` - :param id: + :type filter: :class:`RunFilter ` + :param id: ID of the test run. :type id: int :param incomplete_tests: :type incomplete_tests: int - :param is_automated: + :param is_automated: true if test run is automated, false otherwise. :type is_automated: bool - :param iteration: + :param iteration: The iteration to which the run belongs. :type iteration: str - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_updated_by: Team foundation ID of the last updated the test run. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last updated date and time :type last_updated_date: datetime - :param name: + :param name: Name of the test run. :type name: str :param not_applicable_tests: :type not_applicable_tests: int - :param owner: - :type owner: :class:`IdentityRef ` - :param passed_tests: + :param owner: Team Foundation ID of the owner of the runs. + :type owner: :class:`IdentityRef ` + :param passed_tests: Number of passed tests in the run :type passed_tests: int :param phase: :type phase: str - :param plan: - :type plan: :class:`ShallowReference ` + :param plan: Test plan associated with this test run. + :type plan: :class:`ShallowReference ` :param post_process_state: :type post_process_state: str - :param project: - :type project: :class:`ShallowReference ` + :param project: Project associated with this run. + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` :param release_environment_uri: :type release_environment_uri: str :param release_uri: @@ -3121,24 +3681,24 @@ class TestRun(Model): :param revision: :type revision: int :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` - :param started_date: + :type run_statistics: list of :class:`RunStatistic ` + :param started_date: Start date time of the run. :type started_date: datetime - :param state: + :param state: The state of the run. { NotStarted, InProgress, Waiting } :type state: str :param substate: :type substate: object - :param test_environment: - :type test_environment: :class:`TestEnvironment ` + :param test_environment: Test environment associated with the run. + :type test_environment: :class:`TestEnvironment ` :param test_message_log_id: :type test_message_log_id: int :param test_settings: - :type test_settings: :class:`ShallowReference ` - :param total_tests: + :type test_settings: :class:`ShallowReference ` + :param total_tests: Total tests in the run :type total_tests: int :param unanalyzed_tests: :type unanalyzed_tests: int - :param url: + :param url: Url of the test run :type url: str :param web_access_url: :type web_access_url: str @@ -3240,14 +3800,14 @@ def __init__(self, build=None, build_configuration=None, comment=None, completed class TestRunCoverage(Model): """TestRunCoverage. - :param last_error: + :param last_error: Last Error :type last_error: str - :param modules: - :type modules: list of :class:`ModuleCoverage ` - :param state: + :param modules: List of Modules Coverage + :type modules: list of :class:`ModuleCoverage ` + :param state: State :type state: str - :param test_run: - :type test_run: :class:`ShallowReference ` + :param test_run: Reference of test Run. + :type test_run: :class:`ShallowReference ` """ _attribute_map = { @@ -3269,9 +3829,9 @@ class TestRunStatistic(Model): """TestRunStatistic. :param run: - :type run: :class:`ShallowReference ` + :type run: :class:`ShallowReference ` :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` """ _attribute_map = { @@ -3289,7 +3849,7 @@ class TestSession(Model): """TestSession. :param area: Area path of the test session - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param comment: Comments in the test session :type comment: str :param end_date: Duration of the session @@ -3297,15 +3857,15 @@ class TestSession(Model): :param id: Id of the test session :type id: int :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` + :type property_bag: :class:`PropertyBag ` :param revision: Revision of the test session :type revision: int :param source: Source of the test session @@ -3397,54 +3957,144 @@ def __init__(self, area_path=None, description=None, is_public=None, machine_rol self.test_settings_name = test_settings_name +class TestSubResult(Model): + """TestSubResult. + + :param comment: Comment in sub result. + :type comment: str + :param completed_date: Time when test execution completed. + :type completed_date: datetime + :param computer_name: Machine where test executed. + :type computer_name: str + :param configuration: Reference to test configuration. + :type configuration: :class:`ShallowReference ` + :param custom_fields: Additional properties of sub result. + :type custom_fields: list of :class:`CustomTestField ` + :param display_name: Name of sub result. + :type display_name: str + :param duration_in_ms: Duration of test execution. + :type duration_in_ms: long + :param error_message: Error message in sub result. + :type error_message: str + :param id: ID of sub result. + :type id: int + :param last_updated_date: Time when result last updated. + :type last_updated_date: datetime + :param outcome: Outcome of sub result. + :type outcome: str + :param parent_id: Immediate parent ID of sub result. + :type parent_id: int + :param result_group_type: Hierarchy type of the result, default value of None means its leaf node. + :type result_group_type: object + :param sequence_id: Index number of sub result. + :type sequence_id: int + :param stack_trace: Stacktrace. + :type stack_trace: str + :param started_date: Time when test execution started. + :type started_date: datetime + :param sub_results: List of sub results inside a sub result, if ResultGroupType is not None, it holds corresponding type sub results. + :type sub_results: list of :class:`TestSubResult ` + :param test_result: Reference to test result. + :type test_result: :class:`TestCaseResultIdentifier ` + :param url: Url of sub result. + :type url: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'completed_date': {'key': 'completedDate', 'type': 'iso-8601'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ShallowReference'}, + 'custom_fields': {'key': 'customFields', 'type': '[CustomTestField]'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'duration_in_ms': {'key': 'durationInMs', 'type': 'long'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'}, + 'outcome': {'key': 'outcome', 'type': 'str'}, + 'parent_id': {'key': 'parentId', 'type': 'int'}, + 'result_group_type': {'key': 'resultGroupType', 'type': 'object'}, + 'sequence_id': {'key': 'sequenceId', 'type': 'int'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + 'started_date': {'key': 'startedDate', 'type': 'iso-8601'}, + 'sub_results': {'key': 'subResults', 'type': '[TestSubResult]'}, + 'test_result': {'key': 'testResult', 'type': 'TestCaseResultIdentifier'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, comment=None, completed_date=None, computer_name=None, configuration=None, custom_fields=None, display_name=None, duration_in_ms=None, error_message=None, id=None, last_updated_date=None, outcome=None, parent_id=None, result_group_type=None, sequence_id=None, stack_trace=None, started_date=None, sub_results=None, test_result=None, url=None): + super(TestSubResult, self).__init__() + self.comment = comment + self.completed_date = completed_date + self.computer_name = computer_name + self.configuration = configuration + self.custom_fields = custom_fields + self.display_name = display_name + self.duration_in_ms = duration_in_ms + self.error_message = error_message + self.id = id + self.last_updated_date = last_updated_date + self.outcome = outcome + self.parent_id = parent_id + self.result_group_type = result_group_type + self.sequence_id = sequence_id + self.stack_trace = stack_trace + self.started_date = started_date + self.sub_results = sub_results + self.test_result = test_result + self.url = url + + class TestSuite(Model): """TestSuite. - :param area_uri: + :param area_uri: Area uri of the test suite. :type area_uri: str - :param children: - :type children: list of :class:`TestSuite ` - :param default_configurations: - :type default_configurations: list of :class:`ShallowReference ` - :param id: + :param children: Child test suites of current test suite. + :type children: list of :class:`TestSuite ` + :param default_configurations: Test suite default configuration. + :type default_configurations: list of :class:`ShallowReference ` + :param default_testers: Test suite default testers. + :type default_testers: list of :class:`ShallowReference ` + :param id: Id of test suite. :type id: int - :param inherit_default_configurations: + :param inherit_default_configurations: Default configuration was inherited or not. :type inherit_default_configurations: bool - :param last_error: + :param last_error: Last error for test suite. :type last_error: str - :param last_populated_date: + :param last_populated_date: Last populated date. :type last_populated_date: datetime - :param last_updated_by: - :type last_updated_by: :class:`IdentityRef ` - :param last_updated_date: + :param last_updated_by: IdentityRef of user who has updated test suite recently. + :type last_updated_by: :class:`IdentityRef ` + :param last_updated_date: Last update date. :type last_updated_date: datetime - :param name: + :param name: Name of test suite. :type name: str - :param parent: - :type parent: :class:`ShallowReference ` - :param plan: - :type plan: :class:`ShallowReference ` - :param project: - :type project: :class:`ShallowReference ` - :param query_string: + :param parent: Test suite parent shallow reference. + :type parent: :class:`ShallowReference ` + :param plan: Test plan to which the test suite belongs. + :type plan: :class:`ShallowReference ` + :param project: Test suite project shallow reference. + :type project: :class:`ShallowReference ` + :param query_string: Test suite query string, for dynamic suites. :type query_string: str - :param requirement_id: + :param requirement_id: Test suite requirement id. :type requirement_id: int - :param revision: + :param revision: Test suite revision. :type revision: int - :param state: + :param state: State of test suite. :type state: str - :param suites: - :type suites: list of :class:`ShallowReference ` - :param suite_type: + :param suites: List of shallow reference of suites. + :type suites: list of :class:`ShallowReference ` + :param suite_type: Test suite type. :type suite_type: str - :param test_case_count: + :param test_case_count: Test cases count. :type test_case_count: int - :param test_cases_url: + :param test_cases_url: Test case url. :type test_cases_url: str - :param text: + :param text: Used in tree view. If test suite is root suite then, it is name of plan otherwise title of the suite. :type text: str - :param url: + :param url: Url of test suite. :type url: str """ @@ -3452,6 +4102,7 @@ class TestSuite(Model): 'area_uri': {'key': 'areaUri', 'type': 'str'}, 'children': {'key': 'children', 'type': '[TestSuite]'}, 'default_configurations': {'key': 'defaultConfigurations', 'type': '[ShallowReference]'}, + 'default_testers': {'key': 'defaultTesters', 'type': '[ShallowReference]'}, 'id': {'key': 'id', 'type': 'int'}, 'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'}, 'last_error': {'key': 'lastError', 'type': 'str'}, @@ -3474,11 +4125,12 @@ class TestSuite(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, area_uri=None, children=None, default_configurations=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): + def __init__(self, area_uri=None, children=None, default_configurations=None, default_testers=None, id=None, inherit_default_configurations=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, name=None, parent=None, plan=None, project=None, query_string=None, requirement_id=None, revision=None, state=None, suites=None, suite_type=None, test_case_count=None, test_cases_url=None, text=None, url=None): super(TestSuite, self).__init__() self.area_uri = area_uri self.children = children self.default_configurations = default_configurations + self.default_testers = default_testers self.id = id self.inherit_default_configurations = inherit_default_configurations self.last_error = last_error @@ -3504,11 +4156,11 @@ def __init__(self, area_uri=None, children=None, default_configurations=None, id class TestSuiteCloneRequest(Model): """TestSuiteCloneRequest. - :param clone_options: - :type clone_options: :class:`CloneOptions ` - :param destination_suite_id: + :param clone_options: Clone options for cloning the test suite. + :type clone_options: :class:`CloneOptions ` + :param destination_suite_id: Suite id under which, we have to clone the suite. :type destination_suite_id: int - :param destination_suite_project_name: + :param destination_suite_project_name: Destination suite project name. :type destination_suite_project_name: str """ @@ -3529,9 +4181,9 @@ class TestSummaryForWorkItem(Model): """TestSummaryForWorkItem. :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` + :type summary: :class:`AggregatedDataForResultTrend ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -3549,9 +4201,9 @@ class TestToWorkItemLinks(Model): """TestToWorkItemLinks. :param test: - :type test: :class:`TestMethod ` + :type test: :class:`TestMethod ` :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -3575,7 +4227,7 @@ class TestVariable(Model): :param name: Name of the test variable :type name: str :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision :type revision: int :param url: Url of the test variable @@ -3640,19 +4292,23 @@ def __init__(self, id=None, name=None, type=None, url=None, web_url=None): class WorkItemToTestLinks(Model): """WorkItemToTestLinks. + :param executed_in: + :type executed_in: object :param tests: - :type tests: list of :class:`TestMethod ` + :type tests: list of :class:`TestMethod ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { + 'executed_in': {'key': 'executedIn', 'type': 'object'}, 'tests': {'key': 'tests', 'type': '[TestMethod]'}, 'work_item': {'key': 'workItem', 'type': 'WorkItemReference'} } - def __init__(self, tests=None, work_item=None): + def __init__(self, executed_in=None, tests=None, work_item=None): super(WorkItemToTestLinks, self).__init__() + self.executed_in = executed_in self.tests = tests self.work_item = work_item @@ -3660,27 +4316,27 @@ def __init__(self, tests=None, work_item=None): class TestActionResultModel(TestResultModelBase): """TestActionResultModel. - :param comment: + :param comment: Comment in result. :type comment: str - :param completed_date: + :param completed_date: Time when execution completed. :type completed_date: datetime - :param duration_in_ms: + :param duration_in_ms: Duration of execution. :type duration_in_ms: float - :param error_message: + :param error_message: Error message in result. :type error_message: str - :param outcome: + :param outcome: Test outcome of result. :type outcome: str - :param started_date: + :param started_date: Time when execution started. :type started_date: datetime - :param action_path: + :param action_path: Path identifier test step in test case workitem. :type action_path: str - :param iteration_id: + :param iteration_id: Iteration ID of test action result. :type iteration_id: int - :param shared_step_model: - :type shared_step_model: :class:`SharedStepModel ` + :param shared_step_model: Reference to shared step workitem. + :type shared_step_model: :class:`SharedStepModel ` :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str - :param url: + :param url: Url of test action result. :type url: str """ @@ -3712,6 +4368,8 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', + 'AggregatedRunsByState', 'BuildConfiguration', 'BuildCoverage', 'BuildReference', @@ -3726,7 +4384,9 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'CustomTestFieldDefinition', 'DtlEnvironmentDetails', 'FailingSince', + 'FieldDetailsForTestResults', 'FunctionCoverage', + 'GraphSubjectBase', 'IdentityRef', 'LastResultDetails', 'LinkedWorkItemsQuery', @@ -3739,6 +4399,7 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'PointUpdateModel', 'PropertyBag', 'QueryModel', + 'ReferenceLinks', 'ReleaseEnvironmentDefinitionReference', 'ReleaseReference', 'ResultRetentionSettings', @@ -3746,13 +4407,17 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'RunCreateModel', 'RunFilter', 'RunStatistic', + 'RunSummaryModel', 'RunUpdateModel', 'ShallowReference', + 'ShallowTestCaseResult', 'SharedStepModel', 'SuiteCreateModel', 'SuiteEntry', 'SuiteEntryUpdateModel', 'SuiteTestCase', + 'SuiteTestCaseUpdateModel', + 'SuiteUpdateModel', 'TeamContext', 'TeamProjectReference', 'TestAttachment', @@ -3766,10 +4431,12 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'TestEnvironment', 'TestFailureDetails', 'TestFailuresAnalysis', + 'TestHistoryQuery', 'TestIterationDetailsModel', 'TestMessageLogDetails', 'TestMethod', 'TestOperationReference', + 'TestOutcomeSettings', 'TestPlan', 'TestPlanCloneRequest', 'TestPoint', @@ -3779,12 +4446,16 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'TestResultDocument', 'TestResultHistory', 'TestResultHistoryDetailsForGroup', + 'TestResultHistoryForGroup', + 'TestResultMetaData', 'TestResultModelBase', 'TestResultParameterModel', 'TestResultPayload', 'TestResultsContext', 'TestResultsDetails', 'TestResultsDetailsForGroup', + 'TestResultsGroupsForBuild', + 'TestResultsGroupsForRelease', 'TestResultsQuery', 'TestResultSummary', 'TestResultTrendFilter', @@ -3793,6 +4464,7 @@ def __init__(self, comment=None, completed_date=None, duration_in_ms=None, error 'TestRunStatistic', 'TestSession', 'TestSettings', + 'TestSubResult', 'TestSuite', 'TestSuiteCloneRequest', 'TestSummaryForWorkItem', diff --git a/azure-devops/azure/devops/v5_1/test/test_client.py b/azure-devops/azure/devops/v5_1/test/test_client.py new file mode 100644 index 00000000..3701c663 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/test/test_client.py @@ -0,0 +1,1237 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class TestClient(Client): + """Test + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TestClient, 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 = 'c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e' + + def get_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): + """GetActionResults. + [Preview API] Gets the action results for an iteration in a test result. + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: ID of the iteration that contains the actions. + :param str action_path: Path of a specific action, used to get just that action. + :rtype: [TestActionResultModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + if action_path is not None: + route_values['actionPath'] = self._serialize.url('action_path', action_path, 'str') + response = self._send(http_method='GET', + location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', + version='5.1-preview.3', + route_values=route_values) + return self._deserialize('[TestActionResultModel]', self._unwrap_collection(response)) + + def create_test_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id): + """CreateTestResultAttachment. + [Preview API] Attach a file to a test result. + :param :class:` ` attachment_request_model: Attachment details TestAttachmentRequestModel + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result against which attachment has to be uploaded. + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def create_test_sub_result_attachment(self, attachment_request_model, project, run_id, test_case_result_id, test_sub_result_id): + """CreateTestSubResultAttachment. + [Preview API] Attach a file to a test result + :param :class:` ` attachment_request_model: Attachment Request Model. + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int test_sub_result_id: ID of the test sub results against which attachment has to be uploaded. + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def get_test_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id, **kwargs): + """GetTestResultAttachmentContent. + [Preview API] Download a test result attachment by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the testCaseResultId. + :param int test_case_result_id: ID of the test result whose attachment has to be downloaded. + :param int attachment_id: ID of the test result attachment to be downloaded. + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_test_result_attachments(self, project, run_id, test_case_result_id): + """GetTestResultAttachments. + [Preview API] Get list of test result attachments reference. + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result. + :rtype: [TestAttachment] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) + + def get_test_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id, **kwargs): + """GetTestResultAttachmentZip. + [Preview API] Download a test result attachment by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the testCaseResultId. + :param int test_case_result_id: ID of the test result whose attachment has to be downloaded. + :param int attachment_id: ID of the test result attachment to be downloaded. + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_test_sub_result_attachment_content(self, project, run_id, test_case_result_id, attachment_id, test_sub_result_id, **kwargs): + """GetTestSubResultAttachmentContent. + [Preview API] Download a test sub result attachment + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int attachment_id: ID of the test result attachment to be downloaded + :param int test_sub_result_id: ID of the test sub result whose attachment has to be downloaded + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_test_sub_result_attachments(self, project, run_id, test_case_result_id, test_sub_result_id): + """GetTestSubResultAttachments. + [Preview API] Get list of test sub result attachments + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int test_sub_result_id: ID of the test sub result whose attachment has to be downloaded + :rtype: [TestAttachment] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) + + def get_test_sub_result_attachment_zip(self, project, run_id, test_case_result_id, attachment_id, test_sub_result_id, **kwargs): + """GetTestSubResultAttachmentZip. + [Preview API] Download a test sub result attachment + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test results that contains sub result. + :param int attachment_id: ID of the test result attachment to be downloaded + :param int test_sub_result_id: ID of the test sub result whose attachment has to be downloaded + :rtype: object + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + query_parameters = {} + if test_sub_result_id is not None: + query_parameters['testSubResultId'] = self._serialize.query('test_sub_result_id', test_sub_result_id, 'int') + response = self._send(http_method='GET', + location_id='2bffebe9-2f0f-4639-9af8-56129e9fed2d', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def create_test_run_attachment(self, attachment_request_model, project, run_id): + """CreateTestRunAttachment. + [Preview API] Attach a file to a test run. + :param :class:` ` attachment_request_model: Attachment details TestAttachmentRequestModel + :param str project: Project ID or project name + :param int run_id: ID of the test run against which attachment has to be uploaded. + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(attachment_request_model, 'TestAttachmentRequestModel') + response = self._send(http_method='POST', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestAttachmentReference', response) + + def get_test_run_attachment_content(self, project, run_id, attachment_id, **kwargs): + """GetTestRunAttachmentContent. + [Preview API] Download a test run attachment by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the test run whose attachment has to be downloaded. + :param int attachment_id: ID of the test run attachment to be downloaded. + :rtype: object + """ + 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') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='5.1-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_test_run_attachments(self, project, run_id): + """GetTestRunAttachments. + [Preview API] Get list of test run attachments reference. + :param str project: Project ID or project name + :param int run_id: ID of the test run. + :rtype: [TestAttachment] + """ + 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='4f004af4-a507-489c-9b13-cb62060beb11', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[TestAttachment]', self._unwrap_collection(response)) + + def get_test_run_attachment_zip(self, project, run_id, attachment_id, **kwargs): + """GetTestRunAttachmentZip. + [Preview API] Download a test run attachment by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the test run whose attachment has to be downloaded. + :param int attachment_id: ID of the test run attachment to be downloaded. + :rtype: object + """ + 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') + if attachment_id is not None: + route_values['attachmentId'] = self._serialize.url('attachment_id', attachment_id, 'int') + response = self._send(http_method='GET', + location_id='4f004af4-a507-489c-9b13-cb62060beb11', + version='5.1-preview.1', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_build_code_coverage(self, project, build_id, flags): + """GetBuildCodeCoverage. + [Preview API] Get code coverage data for a build. + :param str project: Project ID or project name + :param int build_id: ID of the build for which code coverage data needs to be fetched. + :param int flags: Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData. + :rtype: [BuildCoverage] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_id is not None: + query_parameters['buildId'] = self._serialize.query('build_id', build_id, 'int') + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='77560e8a-4e8c-4d59-894e-a5f264c24444', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[BuildCoverage]', self._unwrap_collection(response)) + + def get_test_run_code_coverage(self, project, run_id, flags): + """GetTestRunCodeCoverage. + [Preview API] Get code coverage data for a test run + :param str project: Project ID or project name + :param int run_id: ID of the test run for which code coverage data needs to be fetched. + :param int flags: Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData. + :rtype: [TestRunCoverage] + """ + 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') + query_parameters = {} + if flags is not None: + query_parameters['flags'] = self._serialize.query('flags', flags, 'int') + response = self._send(http_method='GET', + location_id='9629116f-3b89-4ed8-b358-d4694efda160', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestRunCoverage]', self._unwrap_collection(response)) + + def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, include_action_results=None): + """GetTestIteration. + [Preview API] Get iteration for a result + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: Id of the test results Iteration. + :param bool include_action_results: Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration. + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestIterationDetailsModel', response) + + def get_test_iterations(self, project, run_id, test_case_result_id, include_action_results=None): + """GetTestIterations. + [Preview API] Get iterations for a result + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param bool include_action_results: Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration. + :rtype: [TestIterationDetailsModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestIterationDetailsModel]', self._unwrap_collection(response)) + + def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): + """GetResultParameters. + [Preview API] Get a list of parameterized results + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: ID of the iteration that contains the parameterized results. + :param str param_name: Name of the parameter. + :rtype: [TestResultParameterModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if param_name is not None: + query_parameters['paramName'] = self._serialize.query('param_name', param_name, 'str') + response = self._send(http_method='GET', + location_id='7c69810d-3354-4af3-844a-180bd25db08a', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestResultParameterModel]', self._unwrap_collection(response)) + + def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): + """GetPoint. + [Preview API] Get a test point. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the point. + :param int point_ids: ID of the test point to get. + :param str wit_fields: Comma-separated list of work item field names. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestPoint', response) + + def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_id=None, test_case_id=None, test_point_ids=None, include_point_details=None, skip=None, top=None): + """GetPoints. + [Preview API] Get a list of test points. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the points. + :param str wit_fields: Comma-separated list of work item field names. + :param str configuration_id: Get test points for specific configuration. + :param str test_case_id: Get test points for a specific test case, valid when configurationId is not set. + :param str test_point_ids: Get test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set. + :param bool include_point_details: Include all properties for the test point. + :param int skip: Number of test points to skip.. + :param int top: Number of test points to return. + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + if configuration_id is not None: + query_parameters['configurationId'] = self._serialize.query('configuration_id', configuration_id, 'str') + if test_case_id is not None: + query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'str') + if test_point_ids is not None: + query_parameters['testPointIds'] = self._serialize.query('test_point_ids', test_point_ids, 'str') + if include_point_details is not None: + query_parameters['includePointDetails'] = self._serialize.query('include_point_details', include_point_details, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) + + def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): + """UpdateTestPoints. + [Preview API] Update test points. + :param :class:` ` point_update_model: Data to update. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the points. + :param str point_ids: ID of the test point to get. Use a comma-separated list of IDs to update multiple test points. + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'str') + content = self._serialize.body(point_update_model, 'PointUpdateModel') + response = self._send(http_method='PATCH', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) + + def get_points_by_query(self, query, project, skip=None, top=None): + """GetPointsByQuery. + [Preview API] Get test points using query. + :param :class:` ` query: TestPointsQuery to get test points. + :param str project: Project ID or project name + :param int skip: Number of test points to skip.. + :param int top: Number of test points to return. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + content = self._serialize.body(query, 'TestPointsQuery') + response = self._send(http_method='POST', + location_id='b4264fd0-a5d1-43e2-82a5-b9c46b7da9ce', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('TestPointsQuery', response) + + def get_result_retention_settings(self, project): + """GetResultRetentionSettings. + [Preview API] Get test result retention settings + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('ResultRetentionSettings', response) + + def update_result_retention_settings(self, retention_settings, project): + """UpdateResultRetentionSettings. + [Preview API] Update test result retention settings + :param :class:` ` retention_settings: Test result retention settings details to be updated + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(retention_settings, 'ResultRetentionSettings') + response = self._send(http_method='PATCH', + location_id='a3206d9e-fa8d-42d3-88cb-f75c51e69cde', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ResultRetentionSettings', response) + + def add_test_results_to_test_run(self, results, project, run_id): + """AddTestResultsToTestRun. + [Preview API] Add test results to a test run. + :param [TestCaseResult] results: List of test results to add. + :param str project: Project ID or project name + :param int run_id: Test run ID into which test results to add. + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='POST', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) + + def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): + """GetTestResultById. + [Preview API] Get a test result for a test run. + :param str project: Project ID or project name + :param int run_id: Test run ID of a test result to fetch. + :param int test_case_result_id: Test result ID. + :param str details_to_include: Details to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults. + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestCaseResult', response) + + def get_test_results(self, project, run_id, details_to_include=None, skip=None, top=None, outcomes=None): + """GetTestResults. + [Preview API] Get test results for a test run. + :param str project: Project ID or project name + :param int run_id: Test run ID of test results to fetch. + :param str details_to_include: Details to include with test results. Default is None. Other values are Iterations and WorkItems. + :param int skip: Number of test results to skip from beginning. + :param int top: Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise. + :param [TestOutcome] outcomes: Comma separated list of test outcomes to filter test results. + :rtype: [TestCaseResult] + """ + 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') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if outcomes is not None: + outcomes = ",".join(map(str, outcomes)) + query_parameters['outcomes'] = self._serialize.query('outcomes', outcomes, 'str') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.1-preview.6', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) + + def update_test_results(self, results, project, run_id): + """UpdateTestResults. + [Preview API] Update test results in a test run. + :param [TestCaseResult] results: List of test results to update. + :param str project: Project ID or project name + :param int run_id: Test run ID whose test results to update. + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='PATCH', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) + + def get_test_run_statistics(self, project, run_id): + """GetTestRunStatistics. + [Preview API] Get test run statistics + :param str project: Project ID or project name + :param int run_id: ID of the run to get. + :rtype: :class:` ` + """ + 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='0a42c424-d764-4a16-a2d5-5c85f87d0ae8', + version='5.1-preview.3', + route_values=route_values) + return self._deserialize('TestRunStatistic', response) + + def create_test_run(self, test_run, project): + """CreateTestRun. + [Preview API] Create new test run. + :param :class:` ` test_run: Run details RunCreateModel + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_run, 'RunCreateModel') + response = self._send(http_method='POST', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def delete_test_run(self, project, run_id): + """DeleteTestRun. + [Preview API] Delete a test run by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the run to delete. + """ + 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') + self._send(http_method='DELETE', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.1-preview.3', + route_values=route_values) + + def get_test_run_by_id(self, project, run_id, include_details=None): + """GetTestRunById. + [Preview API] Get a test run by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the run to get. + :param bool include_details: Defualt value is true. It includes details like run statistics,release,build,Test enviornment,Post process state and more + :rtype: :class:` ` + """ + 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') + query_parameters = {} + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestRun', response) + + def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, plan_id=None, include_run_details=None, automated=None, skip=None, top=None): + """GetTestRuns. + [Preview API] Get a list of test runs. + :param str project: Project ID or project name + :param str build_uri: URI of the build that the runs used. + :param str owner: Team foundation ID of the owner of the runs. + :param str tmi_run_id: + :param int plan_id: ID of the test plan that the runs are a part of. + :param bool include_run_details: If true, include all the properties of the runs. + :param bool automated: If true, only returns automated runs. + :param int skip: Number of test runs to skip. + :param int top: Number of test runs to return. + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_uri is not None: + query_parameters['buildUri'] = self._serialize.query('build_uri', build_uri, 'str') + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if tmi_run_id is not None: + query_parameters['tmiRunId'] = self._serialize.query('tmi_run_id', tmi_run_id, 'str') + if plan_id is not None: + query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'int') + if include_run_details is not None: + query_parameters['includeRunDetails'] = self._serialize.query('include_run_details', include_run_details, 'bool') + if automated is not None: + query_parameters['automated'] = self._serialize.query('automated', automated, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) + + def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, state=None, plan_ids=None, is_automated=None, publish_context=None, build_ids=None, build_def_ids=None, branch_name=None, release_ids=None, release_def_ids=None, release_env_ids=None, release_env_def_ids=None, run_title=None, top=None, continuation_token=None): + """QueryTestRuns. + [Preview API] Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate. + :param str project: Project ID or project name + :param datetime min_last_updated_date: Minimum Last Modified Date of run to be queried (Mandatory). + :param datetime max_last_updated_date: Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days). + :param str state: Current state of the Runs to be queried. + :param [int] plan_ids: Plan Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param bool is_automated: Automation type of the Runs to be queried. + :param str publish_context: PublishContext of the Runs to be queried. + :param [int] build_ids: Build Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] build_def_ids: Build Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param str branch_name: Source Branch name of the Runs to be queried. + :param [int] release_ids: Release Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_def_ids: Release Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_env_ids: Release Environment Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_env_def_ids: Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param str run_title: Run Title of the Runs to be queried. + :param int top: Number of runs to be queried. Limit is 100 + :param str continuation_token: continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user. + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if min_last_updated_date is not None: + query_parameters['minLastUpdatedDate'] = self._serialize.query('min_last_updated_date', min_last_updated_date, 'iso-8601') + if max_last_updated_date is not None: + query_parameters['maxLastUpdatedDate'] = self._serialize.query('max_last_updated_date', max_last_updated_date, 'iso-8601') + if state is not None: + query_parameters['state'] = self._serialize.query('state', state, 'str') + if plan_ids is not None: + plan_ids = ",".join(map(str, plan_ids)) + query_parameters['planIds'] = self._serialize.query('plan_ids', plan_ids, 'str') + if is_automated is not None: + query_parameters['isAutomated'] = self._serialize.query('is_automated', is_automated, 'bool') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if build_ids is not None: + build_ids = ",".join(map(str, build_ids)) + query_parameters['buildIds'] = self._serialize.query('build_ids', build_ids, 'str') + if build_def_ids is not None: + build_def_ids = ",".join(map(str, build_def_ids)) + query_parameters['buildDefIds'] = self._serialize.query('build_def_ids', build_def_ids, 'str') + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if release_ids is not None: + release_ids = ",".join(map(str, release_ids)) + query_parameters['releaseIds'] = self._serialize.query('release_ids', release_ids, 'str') + if release_def_ids is not None: + release_def_ids = ",".join(map(str, release_def_ids)) + query_parameters['releaseDefIds'] = self._serialize.query('release_def_ids', release_def_ids, 'str') + if release_env_ids is not None: + release_env_ids = ",".join(map(str, release_env_ids)) + query_parameters['releaseEnvIds'] = self._serialize.query('release_env_ids', release_env_ids, 'str') + if release_env_def_ids is not None: + release_env_def_ids = ",".join(map(str, release_env_def_ids)) + query_parameters['releaseEnvDefIds'] = self._serialize.query('release_env_def_ids', release_env_def_ids, 'str') + if run_title is not None: + query_parameters['runTitle'] = self._serialize.query('run_title', run_title, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) + + def update_test_run(self, run_update_model, project, run_id): + """UpdateTestRun. + [Preview API] Update test run by its ID. + :param :class:` ` run_update_model: Run details RunUpdateModel + :param str project: Project ID or project name + :param int run_id: ID of the run to update. + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(run_update_model, 'RunUpdateModel') + response = self._send(http_method='PATCH', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def create_test_session(self, test_session, team_context): + """CreateTestSession. + [Preview API] Create a test session + :param :class:` ` test_session: Test session details for creation + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(test_session, 'TestSession') + response = self._send(http_method='POST', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestSession', response) + + def get_test_sessions(self, team_context, period=None, all_sessions=None, include_all_properties=None, source=None, include_only_completed_sessions=None): + """GetTestSessions. + [Preview API] Get a list of test sessions + :param :class:` ` team_context: The team context for the operation + :param int period: Period in days from now, for which test sessions are fetched. + :param bool all_sessions: If false, returns test sessions for current user. Otherwise, it returns test sessions for all users + :param bool include_all_properties: If true, it returns all properties of the test sessions. Otherwise, it returns the skinny version. + :param str source: Source of the test session. + :param bool include_only_completed_sessions: If true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states + :rtype: [TestSession] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if period is not None: + query_parameters['period'] = self._serialize.query('period', period, 'int') + if all_sessions is not None: + query_parameters['allSessions'] = self._serialize.query('all_sessions', all_sessions, 'bool') + if include_all_properties is not None: + query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') + if source is not None: + query_parameters['source'] = self._serialize.query('source', source, 'str') + if include_only_completed_sessions is not None: + query_parameters['includeOnlyCompletedSessions'] = self._serialize.query('include_only_completed_sessions', include_only_completed_sessions, 'bool') + response = self._send(http_method='GET', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestSession]', self._unwrap_collection(response)) + + def update_test_session(self, test_session, team_context): + """UpdateTestSession. + [Preview API] Update a test session + :param :class:` ` test_session: Test session details for update + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(test_session, 'TestSession') + response = self._send(http_method='PATCH', + location_id='1500b4b4-6c69-4ca6-9b18-35e9e97fe2ac', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('TestSession', response) + + def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): + """AddTestCasesToSuite. + [Preview API] Add test cases to suite. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to which the test cases must be added. + :param str test_case_ids: IDs of the test cases to add to the suite. Ids are specified in comma separated format. + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' + response = self._send(http_method='POST', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.1-preview.3', + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) + + def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): + """GetTestCaseById. + [Preview API] Get a specific test case in a test suite with test case id. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite that contains the test case. + :param int test_case_ids: ID of the test case to get. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + route_values['action'] = 'TestCases' + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.1-preview.3', + route_values=route_values) + return self._deserialize('SuiteTestCase', response) + + def get_test_cases(self, project, plan_id, suite_id): + """GetTestCases. + [Preview API] Get all test cases in a suite. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite to get. + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + route_values['action'] = 'TestCases' + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.1-preview.3', + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) + + def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): + """RemoveTestCasesFromSuiteUrl. + [Preview API] The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the suite to get. + :param str test_case_ids: IDs of the test cases to remove from the suite. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' + self._send(http_method='DELETE', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.1-preview.3', + route_values=route_values) + + def update_suite_test_cases(self, suite_test_case_update_model, project, plan_id, suite_id, test_case_ids): + """UpdateSuiteTestCases. + [Preview API] Updates the properties of the test case association in a suite. + :param :class:` ` suite_test_case_update_model: Model for updation of the properties of test case suite association. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to which the test cases must be added. + :param str test_case_ids: IDs of the test cases to add to the suite. Ids are specified in comma separated format. + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' + content = self._serialize.body(suite_test_case_update_model, 'SuiteTestCaseUpdateModel') + response = self._send(http_method='PATCH', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) + + def delete_test_case(self, project, test_case_id): + """DeleteTestCase. + [Preview API] Delete a test case. + :param str project: Project ID or project name + :param int test_case_id: Id of test case to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if test_case_id is not None: + route_values['testCaseId'] = self._serialize.url('test_case_id', test_case_id, 'int') + self._send(http_method='DELETE', + location_id='4d472e0f-e32c-4ef8-adf4-a4078772889c', + version='5.1-preview.1', + route_values=route_values) + + def query_test_history(self, filter, project): + """QueryTestHistory. + [Preview API] Get history of a test method using TestHistoryQuery + :param :class:` ` filter: TestHistoryQuery to get history + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(filter, 'TestHistoryQuery') + response = self._send(http_method='POST', + location_id='929fd86c-3e38-4d8c-b4b6-90df256e5971', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('TestHistoryQuery', response) + diff --git a/azure-devops/azure/devops/v4_0/tfvc/__init__.py b/azure-devops/azure/devops/v5_1/tfvc/__init__.py similarity index 88% rename from azure-devops/azure/devops/v4_0/tfvc/__init__.py rename to azure-devops/azure/devops/v5_1/tfvc/__init__.py index ec68efad..90e4d7c8 100644 --- a/azure-devops/azure/devops/v4_0/tfvc/__init__.py +++ b/azure-devops/azure/devops/v5_1/tfvc/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -15,6 +15,7 @@ 'FileContentMetadata', 'GitRepository', 'GitRepositoryRef', + 'GraphSubjectBase', 'IdentityRef', 'ItemContent', 'ItemModel', @@ -35,6 +36,7 @@ 'TfvcLabel', 'TfvcLabelRef', 'TfvcLabelRequestData', + 'TfvcMappingFilter', 'TfvcMergeSource', 'TfvcPolicyFailureInfo', 'TfvcPolicyOverrideInfo', @@ -42,6 +44,7 @@ 'TfvcShelveset', 'TfvcShelvesetRef', 'TfvcShelvesetRequestData', + 'TfvcStatistics', 'TfvcVersionDescriptor', 'VersionControlProjectInfo', 'VstsInfo', diff --git a/azure-devops/azure/devops/v4_0/tfvc/models.py b/azure-devops/azure/devops/v5_1/tfvc/models.py similarity index 75% rename from azure-devops/azure/devops/v4_0/tfvc/models.py rename to azure-devops/azure/devops/v5_1/tfvc/models.py index 1d88aed2..558532e0 100644 --- a/azure-devops/azure/devops/v4_0/tfvc/models.py +++ b/azure-devops/azure/devops/v5_1/tfvc/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -14,13 +14,13 @@ class AssociatedWorkItem(Model): :param assigned_to: :type assigned_to: str - :param id: + :param id: Id of associated the work item. :type id: int :param state: :type state: str :param title: :type title: str - :param url: REST url + :param url: REST Url of the work item. :type url: str :param web_url: :type web_url: str @@ -52,15 +52,15 @@ def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, class Change(Model): """Change. - :param change_type: + :param change_type: The type of change that was made to the item. :type change_type: object - :param item: + :param item: Current version. :type item: object - :param new_content: - :type new_content: :class:`ItemContent ` - :param source_server_item: + :param new_content: Content of the item after the change. + :type new_content: :class:`ItemContent ` + :param source_server_item: Path of the item on the server. :type source_server_item: str - :param url: + :param url: URL to retrieve the item. :type url: str """ @@ -145,7 +145,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -155,11 +155,15 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str + :param size: Compressed size (bytes) of the repository. + :type size: long + :param ssh_url: + :type ssh_url: str :param url: :type url: str :param valid_remote_urls: @@ -175,11 +179,13 @@ class GitRepository(Model): 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} } - def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, url=None, valid_remote_urls=None): + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, size=None, ssh_url=None, url=None, valid_remote_urls=None): super(GitRepository, self).__init__() self._links = _links self.default_branch = default_branch @@ -189,6 +195,8 @@ def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name self.parent_repository = parent_repository self.project = project self.remote_url = remote_url + self.size = size + self.ssh_url = ssh_url self.url = url self.valid_remote_urls = valid_remote_urls @@ -197,15 +205,19 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str + :param ssh_url: + :type ssh_url: str :param url: :type url: str """ @@ -213,72 +225,112 @@ class GitRepositoryRef(Model): _attribute_map = { 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'project': {'key': 'project', 'type': 'TeamProjectReference'}, 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, collection=None, id=None, name=None, project=None, remote_url=None, url=None): + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): super(GitRepositoryRef, self).__init__() self.collection = collection self.id = id + self.is_fork = is_fork self.name = name self.project = project self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class ItemContent(Model): @@ -305,9 +357,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -320,6 +374,7 @@ class ItemModel(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -327,9 +382,10 @@ class ItemModel(Model): 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None): super(ItemModel, self).__init__() self._links = _links + self.content = content self.content_metadata = content_metadata self.is_folder = is_folder self.is_sym_link = is_sym_link @@ -382,10 +438,14 @@ class TeamProjectReference(Model): :param abbreviation: Project abbreviation. :type abbreviation: str + :param default_team_image_url: Url to default team identity image. + :type default_team_image_url: str :param description: The project's description (if any). :type description: str :param id: Project identifier. :type id: str + :param last_update_time: Project last update time. + :type last_update_time: datetime :param name: Project name. :type name: str :param revision: Project revision. @@ -400,8 +460,10 @@ class TeamProjectReference(Model): _attribute_map = { 'abbreviation': {'key': 'abbreviation', 'type': 'str'}, + 'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'revision': {'key': 'revision', 'type': 'long'}, 'state': {'key': 'state', 'type': 'object'}, @@ -409,11 +471,13 @@ class TeamProjectReference(Model): 'visibility': {'key': 'visibility', 'type': 'object'} } - def __init__(self, abbreviation=None, description=None, id=None, name=None, revision=None, state=None, url=None, visibility=None): + def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None): super(TeamProjectReference, self).__init__() self.abbreviation = abbreviation + self.default_team_image_url = default_team_image_url self.description = description self.id = id + self.last_update_time = last_update_time self.name = name self.revision = revision self.state = state @@ -424,11 +488,11 @@ def __init__(self, abbreviation=None, description=None, id=None, name=None, revi class TfvcBranchMapping(Model): """TfvcBranchMapping. - :param depth: + :param depth: Depth of the branch. :type depth: str - :param server_item: + :param server_item: Server item for the branch. :type server_item: str - :param type: + :param type: Type of the branch. :type type: str """ @@ -449,7 +513,7 @@ class TfvcChange(Change): """TfvcChange. :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` + :type merge_sources: list of :class:`TfvcMergeSource ` :param pending_version: Version at which a (shelved) change was pended against :type pending_version: int """ @@ -468,21 +532,21 @@ def __init__(self, merge_sources=None, pending_version=None): class TfvcChangesetRef(Model): """TfvcChangesetRef. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`IdentityRef ` - :param changeset_id: + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Alias or display name of user + :type author: :class:`IdentityRef ` + :param changeset_id: Id of the changeset. :type changeset_id: int - :param checked_in_by: - :type checked_in_by: :class:`IdentityRef ` - :param comment: + :param checked_in_by: Alias or display name of user + :type checked_in_by: :class:`IdentityRef ` + :param comment: Comment for the changeset. :type comment: str - :param comment_truncated: + :param comment_truncated: Was the Comment result truncated? :type comment_truncated: bool - :param created_date: + :param created_date: Creation date of the changeset. :type created_date: datetime - :param url: + :param url: URL to retrieve the item. :type url: str """ @@ -524,6 +588,8 @@ class TfvcChangesetSearchCriteria(Model): :type include_links: bool :param item_path: Path of item to search under :type item_path: str + :param mappings: + :type mappings: list of :class:`TfvcMappingFilter ` :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. :type to_date: str :param to_id: If provided, a version descriptor for the latest change list to include @@ -537,11 +603,12 @@ class TfvcChangesetSearchCriteria(Model): 'from_id': {'key': 'fromId', 'type': 'int'}, 'include_links': {'key': 'includeLinks', 'type': 'bool'}, 'item_path': {'key': 'itemPath', 'type': 'str'}, + 'mappings': {'key': 'mappings', 'type': '[TfvcMappingFilter]'}, 'to_date': {'key': 'toDate', 'type': 'str'}, 'to_id': {'key': 'toId', 'type': 'int'} } - def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, to_date=None, to_id=None): + def __init__(self, author=None, follow_renames=None, from_date=None, from_id=None, include_links=None, item_path=None, mappings=None, to_date=None, to_id=None): super(TfvcChangesetSearchCriteria, self).__init__() self.author = author self.follow_renames = follow_renames @@ -549,6 +616,7 @@ def __init__(self, author=None, follow_renames=None, from_date=None, from_id=Non self.from_id = from_id self.include_links = include_links self.item_path = item_path + self.mappings = mappings self.to_date = to_date self.to_id = to_id @@ -556,9 +624,9 @@ def __init__(self, author=None, follow_renames=None, from_date=None, from_id=Non class TfvcChangesetsRequestData(Model): """TfvcChangesetsRequestData. - :param changeset_ids: + :param changeset_ids: List of changeset Ids. :type changeset_ids: list of int - :param comment_length: + :param comment_length: Length of the comment. :type comment_length: int :param include_links: Whether to include the _links field on the shallow references :type include_links: bool @@ -581,9 +649,11 @@ class TfvcItem(ItemModel): """TfvcItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` + :param content: + :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -596,6 +666,8 @@ class TfvcItem(ItemModel): :type change_date: datetime :param deletion_id: :type deletion_id: int + :param encoding: File encoding from database, -1 represents binary. + :type encoding: int :param hash_value: MD5 hash as a base 64 string, applies to files only. :type hash_value: str :param is_branch: @@ -610,6 +682,7 @@ class TfvcItem(ItemModel): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'isSymLink', 'type': 'bool'}, @@ -617,6 +690,7 @@ class TfvcItem(ItemModel): 'url': {'key': 'url', 'type': 'str'}, 'change_date': {'key': 'changeDate', 'type': 'iso-8601'}, 'deletion_id': {'key': 'deletionId', 'type': 'int'}, + 'encoding': {'key': 'encoding', 'type': 'int'}, 'hash_value': {'key': 'hashValue', 'type': 'str'}, 'is_branch': {'key': 'isBranch', 'type': 'bool'}, 'is_pending_change': {'key': 'isPendingChange', 'type': 'bool'}, @@ -624,10 +698,11 @@ class TfvcItem(ItemModel): 'version': {'key': 'version', 'type': 'int'} } - def __init__(self, _links=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): - super(TfvcItem, self).__init__(_links=_links, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) + def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, change_date=None, deletion_id=None, encoding=None, hash_value=None, is_branch=None, is_pending_change=None, size=None, version=None): + super(TfvcItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url) self.change_date = change_date self.deletion_id = deletion_id + self.encoding = encoding self.hash_value = hash_value self.is_branch = is_branch self.is_pending_change = is_pending_change @@ -675,7 +750,7 @@ class TfvcItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` + :type item_descriptors: list of :class:`TfvcItemDescriptor ` """ _attribute_map = { @@ -695,7 +770,7 @@ class TfvcLabelRef(Model): """TfvcLabelRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -707,7 +782,7 @@ class TfvcLabelRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -771,6 +846,26 @@ def __init__(self, include_links=None, item_label_filter=None, label_scope=None, self.owner = owner +class TfvcMappingFilter(Model): + """TfvcMappingFilter. + + :param exclude: + :type exclude: bool + :param server_path: + :type server_path: str + """ + + _attribute_map = { + 'exclude': {'key': 'exclude', 'type': 'bool'}, + 'server_path': {'key': 'serverPath', 'type': 'str'} + } + + def __init__(self, exclude=None, server_path=None): + super(TfvcMappingFilter, self).__init__() + self.exclude = exclude + self.server_path = server_path + + class TfvcMergeSource(Model): """TfvcMergeSource. @@ -825,7 +920,7 @@ class TfvcPolicyOverrideInfo(Model): :param comment: :type comment: str :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` """ _attribute_map = { @@ -842,7 +937,7 @@ def __init__(self, comment=None, policy_failures=None): class TfvcShallowBranchRef(Model): """TfvcShallowBranchRef. - :param path: + :param path: Path for the branch. :type path: str """ @@ -859,7 +954,7 @@ class TfvcShelvesetRef(Model): """TfvcShelvesetRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -871,7 +966,7 @@ class TfvcShelvesetRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -939,6 +1034,26 @@ def __init__(self, include_details=None, include_links=None, include_work_items= self.owner = owner +class TfvcStatistics(Model): + """TfvcStatistics. + + :param changeset_id: Id of the last changeset the stats are based on. + :type changeset_id: int + :param file_count_total: Count of files at the requested scope. + :type file_count_total: long + """ + + _attribute_map = { + 'changeset_id': {'key': 'changesetId', 'type': 'int'}, + 'file_count_total': {'key': 'fileCountTotal', 'type': 'long'} + } + + def __init__(self, changeset_id=None, file_count_total=None): + super(TfvcStatistics, self).__init__() + self.changeset_id = changeset_id + self.file_count_total = file_count_total + + class TfvcVersionDescriptor(Model): """TfvcVersionDescriptor. @@ -969,7 +1084,7 @@ class VersionControlProjectInfo(Model): :param default_source_control_type: :type default_source_control_type: object :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param supports_git: :type supports_git: bool :param supports_tFVC: @@ -995,9 +1110,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -1018,19 +1133,19 @@ def __init__(self, collection=None, repository=None, server_url=None): class TfvcBranchRef(TfvcShallowBranchRef): """TfvcBranchRef. - :param path: + :param path: Path for the branch. :type path: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_date: + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param created_date: Creation date of the branch. :type created_date: datetime - :param description: + :param description: Description of the branch. :type description: str - :param is_deleted: + :param is_deleted: Is the branch deleted? :type is_deleted: bool - :param owner: - :type owner: :class:`IdentityRef ` - :param url: + :param owner: Alias or display name of user + :type owner: :class:`IdentityRef ` + :param url: URL to retrieve the item. :type url: str """ @@ -1057,38 +1172,38 @@ def __init__(self, path=None, _links=None, created_date=None, description=None, class TfvcChangeset(TfvcChangesetRef): """TfvcChangeset. - :param _links: - :type _links: :class:`ReferenceLinks ` - :param author: - :type author: :class:`IdentityRef ` - :param changeset_id: + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param author: Alias or display name of user + :type author: :class:`IdentityRef ` + :param changeset_id: Id of the changeset. :type changeset_id: int - :param checked_in_by: - :type checked_in_by: :class:`IdentityRef ` - :param comment: + :param checked_in_by: Alias or display name of user + :type checked_in_by: :class:`IdentityRef ` + :param comment: Comment for the changeset. :type comment: str - :param comment_truncated: + :param comment_truncated: Was the Comment result truncated? :type comment_truncated: bool - :param created_date: + :param created_date: Creation date of the changeset. :type created_date: datetime - :param url: + :param url: URL to retrieve the item. :type url: str - :param account_id: + :param account_id: Account Id of the changeset. :type account_id: str - :param changes: - :type changes: list of :class:`TfvcChange ` - :param checkin_notes: - :type checkin_notes: list of :class:`CheckinNote ` - :param collection_id: + :param changes: List of associated changes. + :type changes: list of :class:`TfvcChange ` + :param checkin_notes: Checkin Notes for the changeset. + :type checkin_notes: list of :class:`CheckinNote ` + :param collection_id: Collection Id of the changeset. :type collection_id: str - :param has_more_changes: + :param has_more_changes: Are more changes available. :type has_more_changes: bool - :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` - :param team_project_ids: + :param policy_override: Policy Override for the changeset. + :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :param team_project_ids: Team Project Ids for the changeset. :type team_project_ids: list of str - :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :param work_items: List of work items associated with the changeset. + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1126,7 +1241,7 @@ class TfvcLabel(TfvcLabelRef): """TfvcLabel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -1138,11 +1253,11 @@ class TfvcLabel(TfvcLabelRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param items: - :type items: list of :class:`TfvcItem ` + :type items: list of :class:`TfvcItem ` """ _attribute_map = { @@ -1166,7 +1281,7 @@ class TfvcShelveset(TfvcShelvesetRef): """TfvcShelveset. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -1178,17 +1293,17 @@ class TfvcShelveset(TfvcShelvesetRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param changes: - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param notes: - :type notes: list of :class:`CheckinNote ` + :type notes: list of :class:`CheckinNote ` :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1217,28 +1332,28 @@ def __init__(self, _links=None, comment=None, comment_truncated=None, created_da class TfvcBranch(TfvcBranchRef): """TfvcBranch. - :param path: + :param path: Path for the branch. :type path: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param created_date: + :param _links: A collection of REST reference links. + :type _links: :class:`ReferenceLinks ` + :param created_date: Creation date of the branch. :type created_date: datetime - :param description: + :param description: Description of the branch. :type description: str - :param is_deleted: + :param is_deleted: Is the branch deleted? :type is_deleted: bool - :param owner: - :type owner: :class:`IdentityRef ` - :param url: + :param owner: Alias or display name of user + :type owner: :class:`IdentityRef ` + :param url: URL to retrieve the item. :type url: str - :param children: - :type children: list of :class:`TfvcBranch ` - :param mappings: - :type mappings: list of :class:`TfvcBranchMapping ` - :param parent: - :type parent: :class:`TfvcShallowBranchRef ` - :param related_branches: - :type related_branches: list of :class:`TfvcShallowBranchRef ` + :param children: List of children for the branch. + :type children: list of :class:`TfvcBranch ` + :param mappings: List of branch mappings. + :type mappings: list of :class:`TfvcBranchMapping ` + :param parent: Path of the branch's parent. + :type parent: :class:`TfvcShallowBranchRef ` + :param related_branches: List of paths of the related branches. + :type related_branches: list of :class:`TfvcShallowBranchRef ` """ _attribute_map = { @@ -1270,6 +1385,7 @@ def __init__(self, path=None, _links=None, created_date=None, description=None, 'FileContentMetadata', 'GitRepository', 'GitRepositoryRef', + 'GraphSubjectBase', 'IdentityRef', 'ItemContent', 'ItemModel', @@ -1286,12 +1402,14 @@ def __init__(self, path=None, _links=None, created_date=None, description=None, 'TfvcItemRequestData', 'TfvcLabelRef', 'TfvcLabelRequestData', + 'TfvcMappingFilter', 'TfvcMergeSource', 'TfvcPolicyFailureInfo', 'TfvcPolicyOverrideInfo', 'TfvcShallowBranchRef', 'TfvcShelvesetRef', 'TfvcShelvesetRequestData', + 'TfvcStatistics', 'TfvcVersionDescriptor', 'VersionControlProjectInfo', 'VstsInfo', diff --git a/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py b/azure-devops/azure/devops/v5_1/tfvc/tfvc_client.py similarity index 74% rename from azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py rename to azure-devops/azure/devops/v5_1/tfvc/tfvc_client.py index 8b87db5c..d7c387b9 100644 --- a/azure-devops/azure/devops/v4_0/tfvc/tfvc_client.py +++ b/azure-devops/azure/devops/v5_1/tfvc/tfvc_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,12 +27,12 @@ def __init__(self, base_url=None, creds=None): def get_branch(self, path, project=None, include_parent=None, include_children=None): """GetBranch. - Get a single branch hierarchy at the given path with parents or children (if specified) - :param str path: + [Preview API] Get a single branch hierarchy at the given path with parents or children as specified. + :param str path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. :param str project: Project ID or project name - :param bool include_parent: - :param bool include_children: - :rtype: :class:` ` + :param bool include_parent: Return the parent branch, if there is one. Default: False + :param bool include_children: Return child branches, if there are any. Default: False + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -46,19 +46,19 @@ def get_branch(self, path, project=None, include_parent=None, include_children=N query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcBranch', response) def get_branches(self, project=None, include_parent=None, include_children=None, include_deleted=None, include_links=None): """GetBranches. - Get a collection of branch roots -- first-level children, branches with no parents + [Preview API] Get a collection of branch roots -- first-level children, branches with no parents. :param str project: Project ID or project name - :param bool include_parent: - :param bool include_children: - :param bool include_deleted: - :param bool include_links: + :param bool include_parent: Return the parent branch, if there is one. Default: False + :param bool include_children: Return the child branches for each root branch. Default: False + :param bool include_deleted: Return deleted branches. Default: False + :param bool include_links: Return links. Default: False :rtype: [TfvcBranch] """ route_values = {} @@ -75,18 +75,18 @@ def get_branches(self, project=None, include_parent=None, include_children=None, query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcBranch]', self._unwrap_collection(response)) def get_branch_refs(self, scope_path, project=None, include_deleted=None, include_links=None): """GetBranchRefs. - Get branch hierarchies below the specified scopePath - :param str scope_path: + [Preview API] Get branch hierarchies below the specified scopePath + :param str scope_path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. :param str project: Project ID or project name - :param bool include_deleted: - :param bool include_links: + :param bool include_deleted: Return deleted branches. Default: False + :param bool include_links: Return links. Default: False :rtype: [TfvcBranchRef] """ route_values = {} @@ -101,17 +101,17 @@ def get_branch_refs(self, scope_path, project=None, include_deleted=None, includ query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') response = self._send(http_method='GET', location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcBranchRef]', self._unwrap_collection(response)) def get_changeset_changes(self, id=None, skip=None, top=None): """GetChangesetChanges. - Retrieve Tfvc changes for a given changeset - :param int id: - :param int skip: - :param int top: + [Preview API] Retrieve Tfvc changes for a given changeset. + :param int id: ID of the changeset. Default: null + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null :rtype: [TfvcChange] """ route_values = {} @@ -124,17 +124,17 @@ def get_changeset_changes(self, id=None, skip=None, top=None): query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) def create_changeset(self, changeset, project=None): """CreateChangeset. - Create a new changeset. - :param :class:` ` changeset: + [Preview API] Create a new changeset. + :param :class:` ` changeset: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -142,26 +142,26 @@ def create_changeset(self, changeset, project=None): content = self._serialize.body(changeset, 'TfvcChangeset') response = self._send(http_method='POST', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.0', + version='5.1-preview.3', route_values=route_values, content=content) return self._deserialize('TfvcChangesetRef', response) def get_changeset(self, id, project=None, max_change_count=None, include_details=None, include_work_items=None, max_comment_length=None, include_source_rename=None, skip=None, top=None, orderby=None, search_criteria=None): """GetChangeset. - Retrieve a Tfvc Changeset - :param int id: + [Preview API] Retrieve a Tfvc Changeset + :param int id: Changeset Id to retrieve. :param str project: Project ID or project name - :param int max_change_count: - :param bool include_details: - :param bool include_work_items: - :param int max_comment_length: - :param bool include_source_rename: - :param int skip: - :param int top: - :param str orderby: - :param :class:` ` search_criteria: - :rtype: :class:` ` + :param int max_change_count: Number of changes to return (maximum 100 changes) Default: 0 + :param bool include_details: Include policy details and check-in notes in the response. Default: false + :param bool include_work_items: Include workitems. Default: false + :param int max_comment_length: Include details about associated work items in the response. Default: null + :param bool include_source_rename: Include renames. Default: false + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -202,22 +202,24 @@ def get_changeset(self, id, project=None, max_change_count=None, include_details query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames if search_criteria.include_links is not None: query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if search_criteria.mappings is not None: + query_parameters['searchCriteria.mappings'] = search_criteria.mappings response = self._send(http_method='GET', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcChangeset', response) def get_changesets(self, project=None, max_comment_length=None, skip=None, top=None, orderby=None, search_criteria=None): """GetChangesets. - Retrieve Tfvc changesets Note: This is a new version of the GetChangesets API that doesn't expose the unneeded queryParams present in the 1.0 version of the API. + [Preview API] Retrieve Tfvc Changesets :param str project: Project ID or project name - :param int max_comment_length: - :param int skip: - :param int top: - :param str orderby: - :param :class:` ` search_criteria: + :param int max_comment_length: Include details about associated work items in the response. Default: null + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null :rtype: [TfvcChangesetRef] """ route_values = {} @@ -249,28 +251,32 @@ def get_changesets(self, project=None, max_comment_length=None, skip=None, top=N query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames if search_criteria.include_links is not None: query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if search_criteria.mappings is not None: + query_parameters['searchCriteria.mappings'] = search_criteria.mappings response = self._send(http_method='GET', location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) def get_batched_changesets(self, changesets_request_data): """GetBatchedChangesets. - :param :class:` ` changesets_request_data: + [Preview API] Returns changesets for a given list of changeset Ids. + :param :class:` ` changesets_request_data: List of changeset IDs. :rtype: [TfvcChangesetRef] """ content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') response = self._send(http_method='POST', location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', - version='4.0', + version='5.1-preview.1', content=content) return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) def get_changeset_work_items(self, id=None): """GetChangesetWorkItems. - :param int id: + [Preview API] Retrieves the work items associated with a particular changeset. + :param int id: ID of the changeset. Default: null :rtype: [AssociatedWorkItem] """ route_values = {} @@ -278,14 +284,14 @@ def get_changeset_work_items(self, id=None): route_values['id'] = self._serialize.url('id', id, 'int') response = self._send(http_method='GET', location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) def get_items_batch(self, item_request_data, project=None): """GetItemsBatch. - Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + [Preview API] Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: [[TfvcItem]] """ @@ -295,15 +301,15 @@ def get_items_batch(self, item_request_data, project=None): content = self._serialize.body(item_request_data, 'TfvcItemRequestData') response = self._send(http_method='POST', location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[[TfvcItem]]', self._unwrap_collection(response)) def get_items_batch_zip(self, item_request_data, project=None, **kwargs): """GetItemsBatchZip. - Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. - :param :class:` ` item_request_data: + [Preview API] Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: :param str project: Project ID or project name :rtype: object """ @@ -313,7 +319,7 @@ def get_items_batch_zip(self, item_request_data, project=None, **kwargs): content = self._serialize.body(item_request_data, 'TfvcItemRequestData') response = self._send(http_method='POST', location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content, accept_media_type='application/zip') @@ -323,17 +329,18 @@ def get_items_batch_zip(self, item_request_data, project=None, **kwargs): callback = None return self._client.stream_download(response, callback=callback) - def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None): + def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): """GetItem. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str path: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. :param str project: Project ID or project name - :param str file_name: - :param bool download: - :param str scope_path: - :param str recursion_level: - :param :class:` ` version_descriptor: - :rtype: :class:` ` + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -356,23 +363,26 @@ def get_item(self, path, project=None, file_name=None, download=None, scope_path query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcItem', response) - def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, **kwargs): + def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetItemContent. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str path: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. :param str project: Project ID or project name - :param str file_name: - :param bool download: - :param str scope_path: - :param str recursion_level: - :param :class:` ` version_descriptor: + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -396,9 +406,11 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -410,12 +422,12 @@ def get_item_content(self, path, project=None, file_name=None, download=None, sc def get_items(self, project=None, scope_path=None, recursion_level=None, include_links=None, version_descriptor=None): """GetItems. - Get a list of Tfvc items + [Preview API] Get a list of Tfvc items :param str project: Project ID or project name - :param str scope_path: - :param str recursion_level: - :param bool include_links: - :param :class:` ` version_descriptor: + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param bool include_links: True to include links. + :param :class:` ` version_descriptor: :rtype: [TfvcItem] """ route_values = {} @@ -437,21 +449,22 @@ def get_items(self, project=None, scope_path=None, recursion_level=None, include query_parameters['versionDescriptor.version'] = version_descriptor.version response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) - def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, **kwargs): + def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetItemText. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str path: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. :param str project: Project ID or project name - :param str file_name: - :param bool download: - :param str scope_path: - :param str recursion_level: - :param :class:` ` version_descriptor: + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -475,9 +488,11 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='text/plain') @@ -487,16 +502,17 @@ def get_item_text(self, path, project=None, file_name=None, download=None, scope callback = None return self._client.stream_download(response, callback=callback) - def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, **kwargs): + def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): """GetItemZip. - Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. - :param str path: + [Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. :param str project: Project ID or project name - :param str file_name: - :param bool download: - :param str scope_path: - :param str recursion_level: - :param :class:` ` version_descriptor: + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. :rtype: object """ route_values = {} @@ -520,9 +536,11 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type if version_descriptor.version is not None: query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') response = self._send(http_method='GET', location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -534,7 +552,7 @@ def get_item_zip(self, path, project=None, file_name=None, download=None, scope_ def get_label_items(self, label_id, top=None, skip=None): """GetLabelItems. - Get items under a label. + [Preview API] Get items under a label. :param str label_id: Unique identifier of label :param int top: Max number of items to return :param int skip: Number of items to skip @@ -550,18 +568,18 @@ def get_label_items(self, label_id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='06166e34-de17-4b60-8cd1-23182a346fda', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) def get_label(self, label_id, request_data, project=None): """GetLabel. - Get a single deep label. + [Preview API] Get a single deep label. :param str label_id: Unique identifier of label - :param :class:` ` request_data: maxItemCount + :param :class:` ` request_data: maxItemCount :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -584,15 +602,15 @@ def get_label(self, label_id, request_data, project=None): query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('TfvcLabel', response) def get_labels(self, request_data, project=None, top=None, skip=None): """GetLabels. - Get a collection of shallow label references. - :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter + [Preview API] Get a collection of shallow label references. + :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter :param str project: Project ID or project name :param int top: Max number of labels to return :param int skip: Number of labels to skip @@ -621,14 +639,14 @@ def get_labels(self, request_data, project=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TfvcLabelRef]', self._unwrap_collection(response)) def get_shelveset_changes(self, shelveset_id, top=None, skip=None): """GetShelvesetChanges. - Get changes included in a shelveset. + [Preview API] Get changes included in a shelveset. :param str shelveset_id: Shelveset's unique ID :param int top: Max number of changes to return :param int skip: Number of changes to skip @@ -643,16 +661,16 @@ def get_shelveset_changes(self, shelveset_id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='dbaf075b-0445-4c34-9e5b-82292f856522', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) def get_shelveset(self, shelveset_id, request_data=None): """GetShelveset. - Get a single deep shelveset. + [Preview API] Get a single deep shelveset. :param str shelveset_id: Shelveset's unique ID - :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength - :rtype: :class:` ` + :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength + :rtype: :class:` ` """ query_parameters = {} if shelveset_id is not None: @@ -674,14 +692,14 @@ def get_shelveset(self, shelveset_id, request_data=None): query_parameters['requestData.includeLinks'] = request_data.include_links response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('TfvcShelveset', response) def get_shelvesets(self, request_data=None, top=None, skip=None): """GetShelvesets. - Return a collection of shallow shelveset references. - :param :class:` ` request_data: name, owner, and maxCommentLength + [Preview API] Return a collection of shallow shelveset references. + :param :class:` ` request_data: name, owner, and maxCommentLength :param int top: Max number of shelvesets to return :param int skip: Number of shelvesets to skip :rtype: [TfvcShelvesetRef] @@ -708,13 +726,13 @@ def get_shelvesets(self, request_data=None, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[TfvcShelvesetRef]', self._unwrap_collection(response)) def get_shelveset_work_items(self, shelveset_id): """GetShelvesetWorkItems. - Get work items associated with a shelveset. + [Preview API] Get work items associated with a shelveset. :param str shelveset_id: Shelveset's unique ID :rtype: [AssociatedWorkItem] """ @@ -723,7 +741,7 @@ def get_shelveset_work_items(self, shelveset_id): query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') response = self._send(http_method='GET', location_id='a7a0c1c1-373e-425a-b031-a519474d743d', - version='4.0', + version='5.1-preview.1', query_parameters=query_parameters) return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/__init__.py b/azure-devops/azure/devops/v5_1/uPack_packaging/__init__.py new file mode 100644 index 00000000..a3f47c87 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/uPack_packaging/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'UPackLimitedPackageMetadata', + 'UPackLimitedPackageMetadataListResponse', + 'UPackPackageMetadata', + 'UPackPackagePushMetadata', + 'UPackPackageVersionDeletionState', +] diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/models.py b/azure-devops/azure/devops/v5_1/uPack_packaging/models.py new file mode 100644 index 00000000..56ee2975 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/uPack_packaging/models.py @@ -0,0 +1,134 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class UPackLimitedPackageMetadata(Model): + """UPackLimitedPackageMetadata. + + :param version: + :type version: str + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, version=None): + super(UPackLimitedPackageMetadata, self).__init__() + self.version = version + + +class UPackLimitedPackageMetadataListResponse(Model): + """UPackLimitedPackageMetadataListResponse. + + :param count: + :type count: int + :param value: + :type value: list of :class:`UPackLimitedPackageMetadata ` + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'value': {'key': 'value', 'type': '[UPackLimitedPackageMetadata]'} + } + + def __init__(self, count=None, value=None): + super(UPackLimitedPackageMetadataListResponse, self).__init__() + self.count = count + self.value = value + + +class UPackPackageMetadata(Model): + """UPackPackageMetadata. + + :param description: + :type description: str + :param manifest_id: + :type manifest_id: str + :param super_root_id: + :type super_root_id: str + :param version: + :type version: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'manifest_id': {'key': 'manifestId', 'type': 'str'}, + 'super_root_id': {'key': 'superRootId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, description=None, manifest_id=None, super_root_id=None, version=None): + super(UPackPackageMetadata, self).__init__() + self.description = description + self.manifest_id = manifest_id + self.super_root_id = super_root_id + self.version = version + + +class UPackPackagePushMetadata(UPackPackageMetadata): + """UPackPackagePushMetadata. + + :param description: + :type description: str + :param manifest_id: + :type manifest_id: str + :param super_root_id: + :type super_root_id: str + :param version: + :type version: str + :param proof_nodes: + :type proof_nodes: list of str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'manifest_id': {'key': 'manifestId', 'type': 'str'}, + 'super_root_id': {'key': 'superRootId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'proof_nodes': {'key': 'proofNodes', 'type': '[str]'} + } + + def __init__(self, description=None, manifest_id=None, super_root_id=None, version=None, proof_nodes=None): + super(UPackPackagePushMetadata, self).__init__(description=description, manifest_id=manifest_id, super_root_id=super_root_id, version=version) + self.proof_nodes = proof_nodes + + +class UPackPackageVersionDeletionState(Model): + """UPackPackageVersionDeletionState. + + :param deleted_date: UTC date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(UPackPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +__all__ = [ + 'UPackLimitedPackageMetadata', + 'UPackLimitedPackageMetadataListResponse', + 'UPackPackageMetadata', + 'UPackPackagePushMetadata', + 'UPackPackageVersionDeletionState', +] diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py b/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py new file mode 100644 index 00000000..f97caedc --- /dev/null +++ b/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py @@ -0,0 +1,93 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class UPackPackagingClient(Client): + """UPackPackaging + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(UPackPackagingClient, 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 = 'd397749b-f115-4027-b6dd-77a65dd10d21' + + def add_package(self, metadata, feed_id, package_name, package_version): + """AddPackage. + [Preview API] + :param :class:` ` metadata: + :param str feed_id: + :param str package_name: + :param str package_version: + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(metadata, 'UPackPackagePushMetadata') + self._send(http_method='PUT', + location_id='4cdb2ced-0758-4651-8032-010f070dd7e5', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def get_package_metadata(self, feed_id, package_name, package_version, intent=None): + """GetPackageMetadata. + [Preview API] + :param str feed_id: + :param str package_name: + :param str package_version: + :param str intent: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if intent is not None: + query_parameters['intent'] = self._serialize.query('intent', intent, 'str') + response = self._send(http_method='GET', + location_id='4cdb2ced-0758-4651-8032-010f070dd7e5', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('UPackPackageMetadata', response) + + def get_package_versions_metadata(self, feed_id, package_name): + """GetPackageVersionsMetadata. + [Preview API] + :param str feed_id: + :param str package_name: + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + response = self._send(http_method='GET', + location_id='4cdb2ced-0758-4651-8032-010f070dd7e5', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('UPackLimitedPackageMetadataListResponse', response) + diff --git a/azure-devops/azure/devops/v5_1/universal/__init__.py b/azure-devops/azure/devops/v5_1/universal/__init__.py new file mode 100644 index 00000000..f72c98ee --- /dev/null +++ b/azure-devops/azure/devops/v5_1/universal/__init__.py @@ -0,0 +1,21 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UPackPackagesBatchRequest', + 'UPackPackageVersionDeletionState', + 'UPackRecycleBinPackageVersionDetails', +] diff --git a/azure-devops/azure/devops/v5_1/universal/models.py b/azure-devops/azure/devops/v5_1/universal/models.py new file mode 100644 index 00000000..19d07a76 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/universal/models.py @@ -0,0 +1,214 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. + :type deleted_date: datetime + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, views=None): + super(PackageVersionDetails, self).__init__() + self.views = views + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UPackPackagesBatchRequest(Model): + """UPackPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(UPackPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class UPackPackageVersionDeletionState(Model): + """UPackPackageVersionDeletionState. + + :param deleted_date: UTC date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(UPackPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +class UPackRecycleBinPackageVersionDetails(Model): + """UPackRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(UPackRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UPackPackagesBatchRequest', + 'UPackPackageVersionDeletionState', + 'UPackRecycleBinPackageVersionDetails', +] diff --git a/azure-devops/azure/devops/v5_1/universal/universal_client.py b/azure-devops/azure/devops/v5_1/universal/universal_client.py new file mode 100644 index 00000000..69aadbdc --- /dev/null +++ b/azure-devops/azure/devops/v5_1/universal/universal_client.py @@ -0,0 +1,158 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class UPackApiClient(Client): + """UPackApi + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(UPackApiClient, 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 = 'd397749b-f115-4027-b6dd-77a65dd10d21' + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Delete a package version from the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='3ba455ae-31e6-409e-849f-56c66888d004', + version='5.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] Get information about a package version in the recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='3ba455ae-31e6-409e-849f-56c66888d004', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('UPackPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version from the recycle bin to its associated feed. + :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'UPackRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='3ba455ae-31e6-409e-849f-56c66888d004', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version(self, feed_id, package_name, package_version): + """DeletePackageVersion. + [Preview API] Delete a package version from a feed's recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='72f61ca4-e07c-4eca-be75-6c0b2f3f4051', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): + """GetPackageVersion. + [Preview API] Show information about a package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param bool show_deleted: True to show information for deleted versions + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='72f61ca4-e07c-4eca-be75-6c0b2f3f4051', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def update_package_version(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackageVersion. + [Preview API] Update information for a package version. + :param :class:` ` package_version_details: + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + self._send(http_method='PATCH', + location_id='72f61ca4-e07c-4eca-be75-6c0b2f3f4051', + version='5.1-preview.1', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/v4_0/wiki/__init__.py b/azure-devops/azure/devops/v5_1/wiki/__init__.py similarity index 58% rename from azure-devops/azure/devops/v4_0/wiki/__init__.py rename to azure-devops/azure/devops/v5_1/wiki/__init__.py index 7b995c92..942041d3 100644 --- a/azure-devops/azure/devops/v4_0/wiki/__init__.py +++ b/azure-devops/azure/devops/v5_1/wiki/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,28 +9,20 @@ from .models import * __all__ = [ - 'Change', - 'FileContentMetadata', - 'GitCommitRef', - 'GitItem', - 'GitPush', - 'GitPushRef', - 'GitRefUpdate', 'GitRepository', 'GitRepositoryRef', - 'GitStatus', - 'GitStatusContext', - 'GitTemplate', - 'GitUserDate', 'GitVersionDescriptor', - 'ItemContent', - 'ItemModel', 'WikiAttachment', - 'WikiAttachmentChange', 'WikiAttachmentResponse', - 'WikiChange', + 'WikiCreateBaseParameters', + 'WikiCreateParametersV2', 'WikiPage', - 'WikiPageChange', - 'WikiRepository', - 'WikiUpdate', + 'WikiPageCreateOrUpdateParameters', + 'WikiPageMove', + 'WikiPageMoveParameters', + 'WikiPageMoveResponse', + 'WikiPageResponse', + 'WikiPageViewStats', + 'WikiUpdateParameters', + 'WikiV2', ] diff --git a/azure-devops/azure/devops/v5_1/wiki/models.py b/azure-devops/azure/devops/v5_1/wiki/models.py new file mode 100644 index 00000000..c9565075 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/wiki/models.py @@ -0,0 +1,507 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GitRepository(Model): + """GitRepository. + + :param _links: + :type _links: ReferenceLinks + :param default_branch: + :type default_branch: str + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param parent_repository: + :type parent_repository: :class:`GitRepositoryRef ` + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param size: Compressed size (bytes) of the repository. + :type size: long + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + :param valid_remote_urls: + :type valid_remote_urls: list of str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'default_branch': {'key': 'defaultBranch', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'} + } + + def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, size=None, ssh_url=None, url=None, valid_remote_urls=None): + super(GitRepository, self).__init__() + self._links = _links + self.default_branch = default_branch + self.id = id + self.is_fork = is_fork + self.name = name + self.parent_repository = parent_repository + self.project = project + self.remote_url = remote_url + self.size = size + self.ssh_url = ssh_url + self.url = url + self.valid_remote_urls = valid_remote_urls + + +class GitRepositoryRef(Model): + """GitRepositoryRef. + + :param collection: Team Project Collection where this Fork resides + :type collection: TeamProjectCollectionReference + :param id: + :type id: str + :param is_fork: True if the repository was created as a fork + :type is_fork: bool + :param name: + :type name: str + :param project: + :type project: TeamProjectReference + :param remote_url: + :type remote_url: str + :param ssh_url: + :type ssh_url: str + :param url: + :type url: str + """ + + _attribute_map = { + 'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_fork': {'key': 'isFork', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project': {'key': 'project', 'type': 'TeamProjectReference'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'ssh_url': {'key': 'sshUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None): + super(GitRepositoryRef, self).__init__() + self.collection = collection + self.id = id + self.is_fork = is_fork + self.name = name + self.project = project + self.remote_url = remote_url + self.ssh_url = ssh_url + self.url = url + + +class GitVersionDescriptor(Model): + """GitVersionDescriptor. + + :param version: Version string identifier (name of tag/branch, SHA1 of commit) + :type version: str + :param version_options: Version options - Specify additional modifiers to version (e.g Previous) + :type version_options: object + :param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted + :type version_type: object + """ + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'version_options': {'key': 'versionOptions', 'type': 'object'}, + 'version_type': {'key': 'versionType', 'type': 'object'} + } + + def __init__(self, version=None, version_options=None, version_type=None): + super(GitVersionDescriptor, self).__init__() + self.version = version + self.version_options = version_options + self.version_type = version_type + + +class WikiAttachment(Model): + """WikiAttachment. + + :param name: Name of the wiki attachment file. + :type name: str + :param path: Path of the wiki attachment file. + :type path: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, name=None, path=None): + super(WikiAttachment, self).__init__() + self.name = name + self.path = path + + +class WikiAttachmentResponse(Model): + """WikiAttachmentResponse. + + :param attachment: Defines properties for wiki attachment file. + :type attachment: :class:`WikiAttachment ` + :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. + :type eTag: list of str + """ + + _attribute_map = { + 'attachment': {'key': 'attachment', 'type': 'WikiAttachment'}, + 'eTag': {'key': 'eTag', 'type': '[str]'} + } + + def __init__(self, attachment=None, eTag=None): + super(WikiAttachmentResponse, self).__init__() + self.attachment = attachment + self.eTag = eTag + + +class WikiCreateBaseParameters(Model): + """WikiCreateBaseParameters. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None): + super(WikiCreateBaseParameters, self).__init__() + self.mapped_path = mapped_path + self.name = name + self.project_id = project_id + self.repository_id = repository_id + self.type = type + + +class WikiCreateParametersV2(WikiCreateBaseParameters): + """WikiCreateParametersV2. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + :param version: Version of the wiki. Not required for ProjectWiki type. + :type version: :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'version': {'key': 'version', 'type': 'GitVersionDescriptor'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, version=None): + super(WikiCreateParametersV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) + self.version = version + + +class WikiPageCreateOrUpdateParameters(Model): + """WikiPageCreateOrUpdateParameters. + + :param content: Content of the wiki page. + :type content: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'} + } + + def __init__(self, content=None): + super(WikiPageCreateOrUpdateParameters, self).__init__() + self.content = content + + +class WikiPageMoveParameters(Model): + """WikiPageMoveParameters. + + :param new_order: New order of the wiki page. + :type new_order: int + :param new_path: New path of the wiki page. + :type new_path: str + :param path: Current path of the wiki page. + :type path: str + """ + + _attribute_map = { + 'new_order': {'key': 'newOrder', 'type': 'int'}, + 'new_path': {'key': 'newPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, new_order=None, new_path=None, path=None): + super(WikiPageMoveParameters, self).__init__() + self.new_order = new_order + self.new_path = new_path + self.path = path + + +class WikiPageMoveResponse(Model): + """WikiPageMoveResponse. + + :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. + :type eTag: list of str + :param page_move: Defines properties for wiki page move. + :type page_move: :class:`WikiPageMove ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'page_move': {'key': 'pageMove', 'type': 'WikiPageMove'} + } + + def __init__(self, eTag=None, page_move=None): + super(WikiPageMoveResponse, self).__init__() + self.eTag = eTag + self.page_move = page_move + + +class WikiPageResponse(Model): + """WikiPageResponse. + + :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. + :type eTag: list of str + :param page: Defines properties for wiki page. + :type page: :class:`WikiPage ` + """ + + _attribute_map = { + 'eTag': {'key': 'eTag', 'type': '[str]'}, + 'page': {'key': 'page', 'type': 'WikiPage'} + } + + def __init__(self, eTag=None, page=None): + super(WikiPageResponse, self).__init__() + self.eTag = eTag + self.page = page + + +class WikiPageViewStats(Model): + """WikiPageViewStats. + + :param count: Wiki page view count. + :type count: int + :param last_viewed_time: Wiki page last viewed time. + :type last_viewed_time: datetime + :param path: Wiki page path. + :type path: str + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'last_viewed_time': {'key': 'lastViewedTime', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, count=None, last_viewed_time=None, path=None): + super(WikiPageViewStats, self).__init__() + self.count = count + self.last_viewed_time = last_viewed_time + self.path = path + + +class WikiUpdateParameters(Model): + """WikiUpdateParameters. + + :param name: Name for wiki. + :type name: str + :param versions: Versions of the wiki. + :type versions: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, name=None, versions=None): + super(WikiUpdateParameters, self).__init__() + self.name = name + self.versions = versions + + +class WikiV2(WikiCreateBaseParameters): + """WikiV2. + + :param mapped_path: Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type. + :type mapped_path: str + :param name: Wiki name. + :type name: str + :param project_id: ID of the project in which the wiki is to be created. + :type project_id: str + :param repository_id: ID of the git repository that backs up the wiki. Not required for ProjectWiki type. + :type repository_id: str + :param type: Type of the wiki. + :type type: object + :param id: ID of the wiki. + :type id: str + :param properties: Properties of the wiki. + :type properties: dict + :param remote_url: Remote web url to the wiki. + :type remote_url: str + :param url: REST url for this wiki. + :type url: str + :param versions: Versions of the wiki. + :type versions: list of :class:`GitVersionDescriptor ` + """ + + _attribute_map = { + 'mapped_path': {'key': 'mappedPath', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'repository_id': {'key': 'repositoryId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[GitVersionDescriptor]'} + } + + def __init__(self, mapped_path=None, name=None, project_id=None, repository_id=None, type=None, id=None, properties=None, remote_url=None, url=None, versions=None): + super(WikiV2, self).__init__(mapped_path=mapped_path, name=name, project_id=project_id, repository_id=repository_id, type=type) + self.id = id + self.properties = properties + self.remote_url = remote_url + self.url = url + self.versions = versions + + +class WikiPage(WikiPageCreateOrUpdateParameters): + """WikiPage. + + :param content: Content of the wiki page. + :type content: str + :param git_item_path: Path of the git item corresponding to the wiki page stored in the backing Git repository. + :type git_item_path: str + :param id: When present, permanent identifier for the wiki page + :type id: int + :param is_non_conformant: True if a page is non-conforming, i.e. 1) if the name doesn't match page naming standards. 2) if the page does not have a valid entry in the appropriate order file. + :type is_non_conformant: bool + :param is_parent_page: True if this page has subpages under its path. + :type is_parent_page: bool + :param order: Order of the wiki page, relative to other pages in the same hierarchy level. + :type order: int + :param path: Path of the wiki page. + :type path: str + :param remote_url: Remote web url to the wiki page. + :type remote_url: str + :param sub_pages: List of subpages of the current page. + :type sub_pages: list of :class:`WikiPage ` + :param url: REST url for this wiki page. + :type url: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'git_item_path': {'key': 'gitItemPath', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_non_conformant': {'key': 'isNonConformant', 'type': 'bool'}, + 'is_parent_page': {'key': 'isParentPage', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + 'remote_url': {'key': 'remoteUrl', 'type': 'str'}, + 'sub_pages': {'key': 'subPages', 'type': '[WikiPage]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, content=None, git_item_path=None, id=None, is_non_conformant=None, is_parent_page=None, order=None, path=None, remote_url=None, sub_pages=None, url=None): + super(WikiPage, self).__init__(content=content) + self.git_item_path = git_item_path + self.id = id + self.is_non_conformant = is_non_conformant + self.is_parent_page = is_parent_page + self.order = order + self.path = path + self.remote_url = remote_url + self.sub_pages = sub_pages + self.url = url + + +class WikiPageMove(WikiPageMoveParameters): + """WikiPageMove. + + :param new_order: New order of the wiki page. + :type new_order: int + :param new_path: New path of the wiki page. + :type new_path: str + :param path: Current path of the wiki page. + :type path: str + :param page: Resultant page of this page move operation. + :type page: :class:`WikiPage ` + """ + + _attribute_map = { + 'new_order': {'key': 'newOrder', 'type': 'int'}, + 'new_path': {'key': 'newPath', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'page': {'key': 'page', 'type': 'WikiPage'} + } + + def __init__(self, new_order=None, new_path=None, path=None, page=None): + super(WikiPageMove, self).__init__(new_order=new_order, new_path=new_path, path=path) + self.page = page + + +__all__ = [ + 'GitRepository', + 'GitRepositoryRef', + 'GitVersionDescriptor', + 'WikiAttachment', + 'WikiAttachmentResponse', + 'WikiCreateBaseParameters', + 'WikiCreateParametersV2', + 'WikiPageCreateOrUpdateParameters', + 'WikiPageMoveParameters', + 'WikiPageMoveResponse', + 'WikiPageResponse', + 'WikiPageViewStats', + 'WikiUpdateParameters', + 'WikiV2', + 'WikiPage', + 'WikiPageMove', +] diff --git a/azure-devops/azure/devops/v5_1/wiki/wiki_client.py b/azure-devops/azure/devops/v5_1/wiki/wiki_client.py new file mode 100644 index 00000000..f63adcb0 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/wiki/wiki_client.py @@ -0,0 +1,528 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class WikiClient(Client): + """Wiki + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WikiClient, 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 = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' + + def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwargs): + """CreateAttachment. + [Preview API] Creates an attachment in the wiki. + :param object upload_stream: Stream to upload + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str name: Wiki attachment name. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='PUT', + location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + response_object = models.WikiAttachmentResponse() + response_object.attachment = self._deserialize('WikiAttachment', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def create_page_move(self, page_move_parameters, project, wiki_identifier, comment=None): + """CreatePageMove. + [Preview API] Creates a page move operation that updates the path and order of the page as provided in the parameters. + :param :class:` ` page_move_parameters: Page more operation parameters. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str comment: Comment that is to be associated with this page move. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + content = self._serialize.body(page_move_parameters, 'WikiPageMoveParameters') + response = self._send(http_method='POST', + location_id='e37bbe71-cbae-49e5-9a4e-949143b9d910', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + response_object = models.WikiPageMoveResponse() + response_object.page_move = self._deserialize('WikiPageMove', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def create_or_update_page(self, parameters, project, wiki_identifier, path, version, comment=None): + """CreateOrUpdatePage. + [Preview API] Creates or edits a wiki page. + :param :class:` ` parameters: Wiki create or update operation parameters. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param String version: Version of the page on which the change is to be made. Mandatory for `Edit` scenario. To be populated in the If-Match header of the request. + :param str comment: Comment to be associated with the page operation. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + content = self._serialize.body(parameters, 'WikiPageCreateOrUpdateParameters') + response = self._send(http_method='PUT', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def delete_page(self, project, wiki_identifier, path, comment=None): + """DeletePage. + [Preview API] Deletes a wiki page. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str comment: Comment to be associated with this page delete. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + response = self._send(http_method='DELETE', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_page(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): + """GetPage. + [Preview API] Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_page_text(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): + """GetPageText. + [Preview API] Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): + """GetPageZip. + [Preview API] Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def delete_page_by_id(self, project, wiki_identifier, id, comment=None): + """DeletePageById. + [Preview API] Deletes a wiki page. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param int id: Wiki page id. + :param str comment: Comment to be associated with this page delete. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + response = self._send(http_method='DELETE', + location_id='ceddcf75-1068-452d-8b13-2d4d76e1f970', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_page_by_id(self, project, wiki_identifier, id, recursion_level=None, include_content=None): + """GetPageById. + [Preview API] Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param int id: Wiki page id. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='ceddcf75-1068-452d-8b13-2d4d76e1f970', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_page_by_id_text(self, project, wiki_identifier, id, recursion_level=None, include_content=None, **kwargs): + """GetPageByIdText. + [Preview API] Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param int id: Wiki page id. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='ceddcf75-1068-452d-8b13-2d4d76e1f970', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_page_by_id_zip(self, project, wiki_identifier, id, recursion_level=None, include_content=None, **kwargs): + """GetPageByIdZip. + [Preview API] Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param int id: Wiki page id. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='ceddcf75-1068-452d-8b13-2d4d76e1f970', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def update_page_by_id(self, parameters, project, wiki_identifier, id, version, comment=None): + """UpdatePageById. + [Preview API] Edits a wiki page. + :param :class:` ` parameters: Wiki update operation parameters. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param int id: Wiki page id. + :param String version: Version of the page on which the change is to be made. Mandatory for `Edit` scenario. To be populated in the If-Match header of the request. + :param str comment: Comment to be associated with the page operation. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + content = self._serialize.body(parameters, 'WikiPageCreateOrUpdateParameters') + response = self._send(http_method='PATCH', + location_id='ceddcf75-1068-452d-8b13-2d4d76e1f970', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def create_wiki(self, wiki_create_params, project=None): + """CreateWiki. + [Preview API] Creates the wiki resource. + :param :class:` ` wiki_create_params: Parameters for the wiki creation. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(wiki_create_params, 'WikiCreateParametersV2') + response = self._send(http_method='POST', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('WikiV2', response) + + def delete_wiki(self, wiki_identifier, project=None): + """DeleteWiki. + [Preview API] Deletes the wiki corresponding to the wiki name or Id provided. + :param str wiki_identifier: Wiki name or Id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + response = self._send(http_method='DELETE', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('WikiV2', response) + + def get_all_wikis(self, project=None): + """GetAllWikis. + [Preview API] Gets all wikis in a project or collection. + :param str project: Project ID or project name + :rtype: [WikiV2] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('[WikiV2]', self._unwrap_collection(response)) + + def get_wiki(self, wiki_identifier, project=None): + """GetWiki. + [Preview API] Gets the wiki corresponding to the wiki name or Id provided. + :param str wiki_identifier: Wiki name or id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + response = self._send(http_method='GET', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('WikiV2', response) + + def update_wiki(self, update_parameters, wiki_identifier, project=None): + """UpdateWiki. + [Preview API] Updates the wiki corresponding to the wiki Id or name provided using the update parameters. + :param :class:` ` update_parameters: Update parameters. + :param str wiki_identifier: Wiki name or Id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + content = self._serialize.body(update_parameters, 'WikiUpdateParameters') + response = self._send(http_method='PATCH', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('WikiV2', response) + diff --git a/azure-devops/azure/devops/v4_0/work/__init__.py b/azure-devops/azure/devops/v5_1/work/__init__.py similarity index 83% rename from azure-devops/azure/devops/v4_0/work/__init__.py rename to azure-devops/azure/devops/v5_1/work/__init__.py index 6c6f4306..6bce0bf2 100644 --- a/azure-devops/azure/devops/v4_0/work/__init__.py +++ b/azure-devops/azure/devops/v5_1/work/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -15,6 +15,7 @@ 'BacklogFields', 'BacklogLevel', 'BacklogLevelConfiguration', + 'BacklogLevelWorkItems', 'Board', 'BoardCardRuleSettings', 'BoardCardSettings', @@ -22,7 +23,6 @@ 'BoardChartReference', 'BoardColumn', 'BoardFields', - 'BoardFilterSettings', 'BoardReference', 'BoardRow', 'BoardSuggestedValue', @@ -34,13 +34,15 @@ 'DeliveryViewData', 'FieldReference', 'FilterClause', - 'FilterGroup', - 'FilterModel', + 'GraphSubjectBase', 'IdentityRef', + 'IterationWorkItems', + 'Link', 'Member', 'ParentChildWIMap', 'Plan', 'PlanViewData', + 'PredefinedQuery', 'ProcessConfiguration', 'ReferenceLinks', 'Rule', @@ -62,8 +64,14 @@ 'TimelineTeamIteration', 'TimelineTeamStatus', 'UpdatePlan', + 'WorkItem', 'WorkItemColor', + 'WorkItemCommentVersionRef', 'WorkItemFieldReference', + 'WorkItemLink', + 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemTrackingResource', 'WorkItemTrackingResourceReference', 'WorkItemTypeReference', 'WorkItemTypeStateInfo', diff --git a/azure-devops/azure/devops/v4_0/work/models.py b/azure-devops/azure/devops/v5_1/work/models.py similarity index 75% rename from azure-devops/azure/devops/v4_0/work/models.py rename to azure-devops/azure/devops/v5_1/work/models.py index 7bfff349..b4c6d54d 100644 --- a/azure-devops/azure/devops/v4_0/work/models.py +++ b/azure-devops/azure/devops/v5_1/work/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -33,7 +33,7 @@ class BacklogColumn(Model): """BacklogColumn. :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` + :type column_field_reference: :class:`WorkItemFieldReference ` :param width: :type width: int """ @@ -53,27 +53,30 @@ class BacklogConfiguration(Model): """BacklogConfiguration. :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` + :type backlog_fields: :class:`BacklogFields ` :param bugs_behavior: Bugs behavior :type bugs_behavior: object :param hidden_backlogs: Hidden Backlog :type hidden_backlogs: list of str + :param is_bugs_behavior_configured: Is BugsBehavior Configured in the process + :type is_bugs_behavior_configured: bool :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :type requirement_backlog: :class:`BacklogLevelConfiguration ` :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` + :type task_backlog: :class:`BacklogLevelConfiguration ` :param url: :type url: str :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` """ _attribute_map = { 'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'}, 'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'}, 'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'}, + 'is_bugs_behavior_configured': {'key': 'isBugsBehaviorConfigured', 'type': 'bool'}, 'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'}, 'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'}, 'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'}, @@ -81,11 +84,12 @@ class BacklogConfiguration(Model): 'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'} } - def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): + def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, is_bugs_behavior_configured=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None): super(BacklogConfiguration, self).__init__() self.backlog_fields = backlog_fields self.bugs_behavior = bugs_behavior self.hidden_backlogs = hidden_backlogs + self.is_bugs_behavior_configured = is_bugs_behavior_configured self.portfolio_backlogs = portfolio_backlogs self.requirement_backlog = requirement_backlog self.task_backlog = task_backlog @@ -141,23 +145,27 @@ class BacklogLevelConfiguration(Model): """BacklogLevelConfiguration. :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :type add_panel_fields: list of :class:`WorkItemFieldReference ` :param color: Color for the backlog level :type color: str :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` + :type column_fields: list of :class:`BacklogColumn ` :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) :type id: str + :param is_hidden: Indicates whether the backlog level is hidden + :type is_hidden: bool :param name: Backlog Name :type name: str :param rank: Backlog Rank (Taskbacklog is 0) :type rank: int + :param type: The type of this backlog level + :type type: object :param work_item_count_limit: Max number of work items to show in the given backlog :type work_item_count_limit: int :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -166,30 +174,50 @@ class BacklogLevelConfiguration(Model): 'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'}, 'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'}, 'id': {'key': 'id', 'type': 'str'}, + 'is_hidden': {'key': 'isHidden', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'rank': {'key': 'rank', 'type': 'int'}, + 'type': {'key': 'type', 'type': 'object'}, 'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'}, 'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'} } - def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, name=None, rank=None, work_item_count_limit=None, work_item_types=None): + def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, is_hidden=None, name=None, rank=None, type=None, work_item_count_limit=None, work_item_types=None): super(BacklogLevelConfiguration, self).__init__() self.add_panel_fields = add_panel_fields self.color = color self.column_fields = column_fields self.default_work_item_type = default_work_item_type self.id = id + self.is_hidden = is_hidden self.name = name self.rank = rank + self.type = type self.work_item_count_limit = work_item_count_limit self.work_item_types = work_item_types +class BacklogLevelWorkItems(Model): + """BacklogLevelWorkItems. + + :param work_items: A list of work items within a backlog level + :type work_items: list of :class:`WorkItemLink ` + """ + + _attribute_map = { + 'work_items': {'key': 'workItems', 'type': '[WorkItemLink]'} + } + + def __init__(self, work_items=None): + super(BacklogLevelWorkItems, self).__init__() + self.work_items = work_items + + class BoardCardRuleSettings(Model): """BoardCardRuleSettings. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rules: :type rules: dict :param url: @@ -289,11 +317,11 @@ class BoardFields(Model): """BoardFields. :param column_field: - :type column_field: :class:`FieldReference ` + :type column_field: :class:`FieldReference ` :param done_field: - :type done_field: :class:`FieldReference ` + :type done_field: :class:`FieldReference ` :param row_field: - :type row_field: :class:`FieldReference ` + :type row_field: :class:`FieldReference ` """ _attribute_map = { @@ -309,30 +337,6 @@ def __init__(self, column_field=None, done_field=None, row_field=None): self.row_field = row_field -class BoardFilterSettings(Model): - """BoardFilterSettings. - - :param criteria: - :type criteria: :class:`FilterModel ` - :param parent_work_item_ids: - :type parent_work_item_ids: list of int - :param query_text: - :type query_text: str - """ - - _attribute_map = { - 'criteria': {'key': 'criteria', 'type': 'FilterModel'}, - 'parent_work_item_ids': {'key': 'parentWorkItemIds', 'type': '[int]'}, - 'query_text': {'key': 'queryText', 'type': 'str'} - } - - def __init__(self, criteria=None, parent_work_item_ids=None, query_text=None): - super(BoardFilterSettings, self).__init__() - self.criteria = criteria - self.parent_work_item_ids = parent_work_item_ids - self.query_text = query_text - - class BoardReference(Model): """BoardReference. @@ -413,9 +417,9 @@ class CapacityPatch(Model): """CapacityPatch. :param activities: - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -437,7 +441,7 @@ class CategoryConfiguration(Model): :param reference_name: Category Reference Name :type reference_name: str :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -553,103 +557,115 @@ def __init__(self, field_name=None, index=None, logical_operator=None, operator= self.value = value -class FilterGroup(Model): - """FilterGroup. - - :param end: - :type end: int - :param level: - :type level: int - :param start: - :type start: int - """ - - _attribute_map = { - 'end': {'key': 'end', 'type': 'int'}, - 'level': {'key': 'level', 'type': 'int'}, - 'start': {'key': 'start', 'type': 'int'} - } +class GraphSubjectBase(Model): + """GraphSubjectBase. - def __init__(self, end=None, level=None, start=None): - super(FilterGroup, self).__init__() - self.end = end - self.level = level - self.start = start - - -class FilterModel(Model): - """FilterModel. - - :param clauses: - :type clauses: list of :class:`FilterClause ` - :param groups: - :type groups: list of :class:`FilterGroup ` - :param max_group_level: - :type max_group_level: int + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str """ _attribute_map = { - 'clauses': {'key': 'clauses', 'type': '[FilterClause]'}, - 'groups': {'key': 'groups', 'type': '[FilterGroup]'}, - 'max_group_level': {'key': 'maxGroupLevel', 'type': 'int'} + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'descriptor': {'key': 'descriptor', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} } - def __init__(self, clauses=None, groups=None, max_group_level=None): - super(FilterModel, self).__init__() - self.clauses = clauses - self.groups = groups - self.max_group_level = max_group_level + 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(Model): +class IdentityRef(GraphSubjectBase): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 Link(Model): + """Link. + + :param attributes: Collection of link attributes. + :type attributes: dict + :param rel: Relation type. + :type rel: str + :param url: Link url. + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, attributes=None, rel=None, url=None): + super(Link, self).__init__() + self.attributes = attributes + self.rel = rel self.url = url @@ -713,7 +729,7 @@ class Plan(Model): """Plan. :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` + :type created_by_identity: :class:`IdentityRef ` :param created_date: Date when the plan was created :type created_date: datetime :param description: Description of the plan @@ -721,7 +737,7 @@ class Plan(Model): :param id: Id of the plan :type id: str :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` + :type modified_by_identity: :class:`IdentityRef ` :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. :type modified_date: datetime :param name: Name of the plan @@ -789,17 +805,53 @@ def __init__(self, id=None, revision=None): self.revision = revision +class PredefinedQuery(Model): + """PredefinedQuery. + + :param has_more: Whether or not the query returned the complete set of data or if the data was truncated. + :type has_more: bool + :param id: Id of the query + :type id: str + :param name: Localized name of the query + :type name: str + :param results: The results of the query. This will be a set of WorkItem objects with only the 'id' set. The client is responsible for paging in the data as needed. + :type results: list of :class:`WorkItem ` + :param url: REST API Url to use to retrieve results for this query + :type url: str + :param web_url: Url to use to display a page in the browser with the results of this query + :type web_url: str + """ + + _attribute_map = { + 'has_more': {'key': 'hasMore', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[WorkItem]'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_url': {'key': 'webUrl', 'type': 'str'} + } + + def __init__(self, has_more=None, id=None, name=None, results=None, url=None, web_url=None): + super(PredefinedQuery, self).__init__() + self.has_more = has_more + self.id = id + self.name = name + self.results = results + self.url = url + self.web_url = web_url + + class ProcessConfiguration(Model): """ProcessConfiguration. :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` + :type bug_work_items: :class:`CategoryConfiguration ` :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` + :type requirement_backlog: :class:`CategoryConfiguration ` :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` + :type task_backlog: :class:`CategoryConfiguration ` :param type_fields: Type fields for the process configuration :type type_fields: dict :param url: @@ -845,7 +897,7 @@ class Rule(Model): """Rule. :param clauses: - :type clauses: list of :class:`FilterClause ` + :type clauses: list of :class:`FilterClause ` :param filter: :type filter: str :param is_enabled: @@ -927,7 +979,7 @@ class TeamFieldValuesPatch(Model): :param default_value: :type default_value: str :param values: - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -948,24 +1000,28 @@ class TeamIterationAttributes(Model): :type finish_date: datetime :param start_date: :type start_date: datetime + :param time_frame: + :type time_frame: object """ _attribute_map = { 'finish_date': {'key': 'finishDate', 'type': 'iso-8601'}, - 'start_date': {'key': 'startDate', 'type': 'iso-8601'} + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'time_frame': {'key': 'timeFrame', 'type': 'object'} } - def __init__(self, finish_date=None, start_date=None): + def __init__(self, finish_date=None, start_date=None, time_frame=None): super(TeamIterationAttributes, self).__init__() self.finish_date = finish_date self.start_date = start_date + self.time_frame = time_frame class TeamSettingsDataContractBase(Model): """TeamSettingsDataContractBase. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str """ @@ -985,11 +1041,11 @@ class TeamSettingsDaysOff(TeamSettingsDataContractBase): """TeamSettingsDaysOff. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1007,7 +1063,7 @@ class TeamSettingsDaysOffPatch(Model): """TeamSettingsDaysOffPatch. :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1023,11 +1079,11 @@ class TeamSettingsIteration(TeamSettingsDataContractBase): """TeamSettingsIteration. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` + :type attributes: :class:`TeamIterationAttributes ` :param id: Id of the resource :type id: str :param name: Name of the resource @@ -1133,7 +1189,7 @@ class TimelineTeamData(Model): """TimelineTeamData. :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` + :type backlog: :class:`BacklogLevel ` :param field_reference_names: The field reference names of the work item data :type field_reference_names: list of str :param id: The id of the team @@ -1141,7 +1197,7 @@ class TimelineTeamData(Model): :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. :type is_expanded: bool :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` + :type iterations: list of :class:`TimelineTeamIteration ` :param name: The name of the team :type name: str :param order_by_field: The order by field name of this team @@ -1151,15 +1207,15 @@ class TimelineTeamData(Model): :param project_id: The project id the team belongs team :type project_id: str :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` + :type status: :class:`TimelineTeamStatus ` :param team_field_default_value: The team field default value :type team_field_default_value: str :param team_field_name: The team field name of this team :type team_field_name: str :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` + :type team_field_values: list of :class:`TeamFieldValue ` :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` + :type work_item_type_colors: list of :class:`WorkItemColor ` """ _attribute_map = { @@ -1211,7 +1267,7 @@ class TimelineTeamIteration(Model): :param start_date: The start date of the iteration :type start_date: datetime :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` + :type status: :class:`TimelineIterationStatus ` :param work_items: The work items that have been paged in this iteration :type work_items: list of [object] """ @@ -1316,11 +1372,11 @@ def __init__(self, icon=None, primary_color=None, work_item_type_name=None): class WorkItemFieldReference(Model): """WorkItemFieldReference. - :param name: + :param name: The friendly name of the field. :type name: str - :param reference_name: + :param reference_name: The reference name of the field. :type reference_name: str - :param url: + :param url: The REST URL of the resource. :type url: str """ @@ -1337,6 +1393,71 @@ def __init__(self, name=None, reference_name=None, url=None): self.url = url +class WorkItemLink(Model): + """WorkItemLink. + + :param rel: The type of link. + :type rel: str + :param source: The source work item. + :type source: :class:`WorkItemReference ` + :param target: The target work item. + :type target: :class:`WorkItemReference ` + """ + + _attribute_map = { + 'rel': {'key': 'rel', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'WorkItemReference'}, + 'target': {'key': 'target', 'type': 'WorkItemReference'} + } + + def __init__(self, rel=None, source=None, target=None): + super(WorkItemLink, self).__init__() + self.rel = rel + self.source = source + self.target = target + + +class WorkItemReference(Model): + """WorkItemReference. + + :param id: Work item ID. + :type id: int + :param url: REST API URL of the resource + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemRelation(Link): + """WorkItemRelation. + + :param attributes: Collection of link attributes. + :type attributes: dict + :param rel: Relation type. + :type rel: str + :param url: Link url. + :type url: str + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{object}'}, + 'rel': {'key': 'rel', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, attributes=None, rel=None, url=None): + super(WorkItemRelation, self).__init__(attributes=attributes, rel=rel, url=url) + + class WorkItemTrackingResourceReference(Model): """WorkItemTrackingResourceReference. @@ -1358,7 +1479,7 @@ class WorkItemTypeReference(WorkItemTrackingResourceReference): :param url: :type url: str - :param name: + :param name: Name of the work item type. :type name: str """ @@ -1402,21 +1523,21 @@ class Board(BoardReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_mappings: :type allowed_mappings: dict :param can_edit: :type can_edit: bool :param columns: - :type columns: list of :class:`BoardColumn ` + :type columns: list of :class:`BoardColumn ` :param fields: - :type fields: :class:`BoardFields ` + :type fields: :class:`BoardFields ` :param is_valid: :type is_valid: bool :param revision: :type revision: int :param rows: - :type rows: list of :class:`BoardRow ` + :type rows: list of :class:`BoardRow ` """ _attribute_map = { @@ -1453,7 +1574,7 @@ class BoardChart(BoardChartReference): :param url: Full http link to the resource :type url: str :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param settings: The settings for the resource :type settings: dict """ @@ -1481,13 +1602,15 @@ class DeliveryViewData(PlanViewData): :param child_id_to_parent_id_map: Work item child id to parenet id map :type child_id_to_parent_id_map: dict :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` + :type criteria_status: :class:`TimelineCriteriaStatus ` :param end_date: The end date of the delivery view data :type end_date: datetime + :param max_expanded_teams: Max number of teams can be configured for a delivery plan. + :type max_expanded_teams: int :param start_date: The start date for the delivery view data :type start_date: datetime :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` + :type teams: list of :class:`TimelineTeamData ` """ _attribute_map = { @@ -1496,32 +1619,56 @@ class DeliveryViewData(PlanViewData): 'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'}, 'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'}, 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'max_expanded_teams': {'key': 'maxExpandedTeams', 'type': 'int'}, 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, 'teams': {'key': 'teams', 'type': '[TimelineTeamData]'} } - def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None): + def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, max_expanded_teams=None, start_date=None, teams=None): super(DeliveryViewData, self).__init__(id=id, revision=revision) self.child_id_to_parent_id_map = child_id_to_parent_id_map self.criteria_status = criteria_status self.end_date = end_date + self.max_expanded_teams = max_expanded_teams self.start_date = start_date self.teams = teams +class IterationWorkItems(TeamSettingsDataContractBase): + """IterationWorkItems. + + :param _links: Collection of links relevant to resource + :type _links: :class:`ReferenceLinks ` + :param url: Full http link to the resource + :type url: str + :param work_item_relations: Work item relations + :type work_item_relations: list of :class:`WorkItemLink ` + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'url': {'key': 'url', 'type': 'str'}, + 'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'} + } + + def __init__(self, _links=None, url=None, work_item_relations=None): + super(IterationWorkItems, self).__init__(_links=_links, url=url) + self.work_item_relations = work_item_relations + + class TeamFieldValues(TeamSettingsDataContractBase): """TeamFieldValues. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param default_value: The default team field value :type default_value: str :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` + :type field: :class:`FieldReference ` :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1543,15 +1690,15 @@ class TeamMemberCapacity(TeamSettingsDataContractBase): """TeamMemberCapacity. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` + :type team_member: :class:`Member ` """ _attribute_map = { @@ -1573,17 +1720,17 @@ class TeamSetting(TeamSettingsDataContractBase): """TeamSetting. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` + :type backlog_iteration: :class:`TeamSettingsIteration ` :param backlog_visibilities: Information about categories that are visible on the backlog. :type backlog_visibilities: dict :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) :type bugs_behavior: object :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` + :type default_iteration: :class:`TeamSettingsIteration ` :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working @@ -1611,6 +1758,86 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi self.working_days = working_days +class WorkItemCommentVersionRef(WorkItemTrackingResourceReference): + """WorkItemCommentVersionRef. + + :param url: + :type url: str + :param comment_id: The id assigned to the comment. + :type comment_id: int + :param version: The version number. + :type version: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'comment_id': {'key': 'commentId', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, url=None, comment_id=None, version=None): + super(WorkItemCommentVersionRef, self).__init__(url=url) + self.comment_id = comment_id + self.version = version + + +class WorkItemTrackingResource(WorkItemTrackingResourceReference): + """WorkItemTrackingResource. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} + } + + def __init__(self, url=None, _links=None): + super(WorkItemTrackingResource, self).__init__(url=url) + self._links = _links + + +class WorkItem(WorkItemTrackingResource): + """WorkItem. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comment_version_ref: Reference to a specific version of the comment added/edited/deleted in this revision. + :type comment_version_ref: :class:`WorkItemCommentVersionRef ` + :param fields: Map of field and values for the work item. + :type fields: dict + :param id: The work item ID. + :type id: int + :param relations: Relations of the work item. + :type relations: list of :class:`WorkItemRelation ` + :param rev: Revision number of the work item. + :type rev: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment_version_ref': {'key': 'commentVersionRef', 'type': 'WorkItemCommentVersionRef'}, + 'fields': {'key': 'fields', 'type': '{object}'}, + 'id': {'key': 'id', 'type': 'int'}, + 'relations': {'key': 'relations', 'type': '[WorkItemRelation]'}, + 'rev': {'key': 'rev', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, comment_version_ref=None, fields=None, id=None, relations=None, rev=None): + super(WorkItem, self).__init__(url=url, _links=_links) + self.comment_version_ref = comment_version_ref + self.fields = fields + self.id = id + self.relations = relations + self.rev = rev + + __all__ = [ 'Activity', 'BacklogColumn', @@ -1618,12 +1845,12 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi 'BacklogFields', 'BacklogLevel', 'BacklogLevelConfiguration', + 'BacklogLevelWorkItems', 'BoardCardRuleSettings', 'BoardCardSettings', 'BoardChartReference', 'BoardColumn', 'BoardFields', - 'BoardFilterSettings', 'BoardReference', 'BoardRow', 'BoardSuggestedValue', @@ -1634,13 +1861,14 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi 'DateRange', 'FieldReference', 'FilterClause', - 'FilterGroup', - 'FilterModel', + 'GraphSubjectBase', 'IdentityRef', + 'Link', 'Member', 'ParentChildWIMap', 'Plan', 'PlanViewData', + 'PredefinedQuery', 'ProcessConfiguration', 'ReferenceLinks', 'Rule', @@ -1661,13 +1889,20 @@ def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibi 'UpdatePlan', 'WorkItemColor', 'WorkItemFieldReference', + 'WorkItemLink', + 'WorkItemReference', + 'WorkItemRelation', 'WorkItemTrackingResourceReference', 'WorkItemTypeReference', 'WorkItemTypeStateInfo', 'Board', 'BoardChart', 'DeliveryViewData', + 'IterationWorkItems', 'TeamFieldValues', 'TeamMemberCapacity', 'TeamSetting', + 'WorkItemCommentVersionRef', + 'WorkItemTrackingResource', + 'WorkItem', ] diff --git a/azure-devops/azure/devops/v4_0/work/work_client.py b/azure-devops/azure/devops/v5_1/work/work_client.py similarity index 76% rename from azure-devops/azure/devops/v4_0/work/work_client.py rename to azure-devops/azure/devops/v5_1/work/work_client.py index bd0cd425..cf577dda 100644 --- a/azure-devops/azure/devops/v4_0/work/work_client.py +++ b/azure-devops/azure/devops/v5_1/work/work_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -27,9 +27,9 @@ def __init__(self, base_url=None, creds=None): def get_backlog_configurations(self, team_context): """GetBacklogConfigurations. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Gets backlog configuration for a team + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -50,12 +50,106 @@ def get_backlog_configurations(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='7799f497-3cb5-4f16-ad4f-5cd06012db64', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('BacklogConfiguration', response) + def get_backlog_level_work_items(self, team_context, backlog_id): + """GetBacklogLevelWorkItems. + [Preview API] Get a list of work items within a backlog level + :param :class:` ` team_context: The team context for the operation + :param str backlog_id: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if backlog_id is not None: + route_values['backlogId'] = self._serialize.url('backlog_id', backlog_id, 'str') + response = self._send(http_method='GET', + location_id='7c468d96-ab1d-4294-a360-92f07e9ccd98', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('BacklogLevelWorkItems', response) + + def get_backlog(self, team_context, id): + """GetBacklog. + [Preview API] Get a backlog level + :param :class:` ` team_context: The team context for the operation + :param str id: The id of the backlog level + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='a93726f9-7867-4e38-b4f2-0bfafc2f6a94', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('BacklogLevelConfiguration', response) + + def get_backlogs(self, team_context): + """GetBacklogs. + [Preview API] List all backlog levels + :param :class:` ` team_context: The team context for the operation + :rtype: [BacklogLevelConfiguration] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='a93726f9-7867-4e38-b4f2-0bfafc2f6a94', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[BacklogLevelConfiguration]', self._unwrap_collection(response)) + def get_column_suggested_values(self, project=None): """GetColumnSuggestedValues. + [Preview API] Get available board columns in a project :param str project: Project ID or project name :rtype: [BoardSuggestedValue] """ @@ -64,14 +158,14 @@ def get_column_suggested_values(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board_mapping_parent_items(self, team_context, child_backlog_context_category_ref_name, workitem_ids): """GetBoardMappingParentItems. [Preview API] Returns the list of parent field filter model for the given list of workitem ids - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str child_backlog_context_category_ref_name: :param [int] workitem_ids: :rtype: [ParentChildWIMap] @@ -101,13 +195,14 @@ def get_board_mapping_parent_items(self, team_context, child_backlog_context_cat query_parameters['workitemIds'] = self._serialize.query('workitem_ids', workitem_ids, 'str') response = self._send(http_method='GET', location_id='186abea3-5c35-432f-9e28-7a15b4312a0e', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[ParentChildWIMap]', self._unwrap_collection(response)) def get_row_suggested_values(self, project=None): """GetRowSuggestedValues. + [Preview API] Get available board rows in a project :param str project: Project ID or project name :rtype: [BoardSuggestedValue] """ @@ -116,16 +211,16 @@ def get_row_suggested_values(self, project=None): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) def get_board(self, team_context, id): """GetBoard. - Get board - :param :class:` ` team_context: The team context for the operation + [Preview API] Get board + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -148,14 +243,14 @@ def get_board(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Board', response) def get_boards(self, team_context): """GetBoards. - Get boards - :param :class:` ` team_context: The team context for the operation + [Preview API] Get boards + :param :class:` ` team_context: The team context for the operation :rtype: [BoardReference] """ project = None @@ -177,15 +272,15 @@ def get_boards(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[BoardReference]', self._unwrap_collection(response)) def set_board_options(self, options, team_context, id): """SetBoardOptions. - Update board options + [Preview API] Update board options :param {str} options: options to updated - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str id: identifier for board, either category plural name (Eg:"Stories") or guid :rtype: {str} """ @@ -211,17 +306,17 @@ def set_board_options(self, options, team_context, id): content = self._serialize.body(options, '{str}') response = self._send(http_method='PUT', location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('{str}', self._unwrap_collection(response)) def get_board_user_settings(self, team_context, board): """GetBoardUserSettings. - [Preview API] - :param :class:` ` team_context: The team context for the operation - :param str board: - :rtype: :class:` ` + [Preview API] Get board user settings for a board id + :param :class:` ` team_context: The team context for the operation + :param str board: Board ID or Name + :rtype: :class:` ` """ project = None team = None @@ -244,7 +339,7 @@ def get_board_user_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('BoardUserSettings', response) @@ -252,9 +347,9 @@ def update_board_user_settings(self, board_user_settings, team_context, board): """UpdateBoardUserSettings. [Preview API] Update board user settings for the board id :param {str} board_user_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -278,15 +373,16 @@ def update_board_user_settings(self, board_user_settings, team_context, board): content = self._serialize.body(board_user_settings, '{str}') response = self._send(http_method='PATCH', location_id='b30d9f58-1891-4b0a-b168-c46408f919b0', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('BoardUserSettings', response) def get_capacities(self, team_context, iteration_id): """GetCapacities. - :param :class:` ` team_context: The team context for the operation - :param str iteration_id: + [Preview API] Get a team's capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration :rtype: [TeamMemberCapacity] """ project = None @@ -310,16 +406,17 @@ def get_capacities(self, team_context, iteration_id): route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) def get_capacity(self, team_context, iteration_id, team_member_id): """GetCapacity. - :param :class:` ` team_context: The team context for the operation - :param str iteration_id: - :param str team_member_id: - :rtype: :class:` ` + [Preview API] Get a team member's capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :param str team_member_id: ID of the team member + :rtype: :class:` ` """ project = None team = None @@ -344,15 +441,16 @@ def get_capacity(self, team_context, iteration_id, team_member_id): route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') response = self._send(http_method='GET', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('TeamMemberCapacity', response) def replace_capacities(self, capacities, team_context, iteration_id): """ReplaceCapacities. - :param [TeamMemberCapacity] capacities: - :param :class:` ` team_context: The team context for the operation - :param str iteration_id: + [Preview API] Replace a team's capacity + :param [TeamMemberCapacity] capacities: Team capacity to replace + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration :rtype: [TeamMemberCapacity] """ project = None @@ -377,18 +475,19 @@ def replace_capacities(self, capacities, team_context, iteration_id): content = self._serialize.body(capacities, '[TeamMemberCapacity]') response = self._send(http_method='PUT', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) def update_capacity(self, patch, team_context, iteration_id, team_member_id): """UpdateCapacity. - :param :class:` ` patch: - :param :class:` ` team_context: The team context for the operation - :param str iteration_id: - :param str team_member_id: - :rtype: :class:` ` + [Preview API] Update a team member's capacity + :param :class:` ` patch: Updated capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :param str team_member_id: ID of the team member + :rtype: :class:` ` """ project = None team = None @@ -414,7 +513,7 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): content = self._serialize.body(patch, 'CapacityPatch') response = self._send(http_method='PATCH', location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('TeamMemberCapacity', response) @@ -422,9 +521,9 @@ def update_capacity(self, patch, team_context, iteration_id, team_member_id): def get_board_card_rule_settings(self, team_context, board): """GetBoardCardRuleSettings. [Preview API] Get board card Rule settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -447,17 +546,17 @@ def get_board_card_rule_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('BoardCardRuleSettings', response) def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): """UpdateBoardCardRuleSettings. [Preview API] Update board card Rule settings for the board id or board by name - :param :class:` ` board_card_rule_settings: - :param :class:` ` team_context: The team context for the operation + :param :class:` ` board_card_rule_settings: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -481,17 +580,17 @@ def update_board_card_rule_settings(self, board_card_rule_settings, team_context content = self._serialize.body(board_card_rule_settings, 'BoardCardRuleSettings') response = self._send(http_method='PATCH', location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('BoardCardRuleSettings', response) def get_board_card_settings(self, team_context, board): """GetBoardCardSettings. - Get board card settings for the board id or board by name - :param :class:` ` team_context: The team context for the operation + [Preview API] Get board card settings for the board id or board by name + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -514,17 +613,17 @@ def get_board_card_settings(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('BoardCardSettings', response) def update_board_card_settings(self, board_card_settings_to_save, team_context, board): """UpdateBoardCardSettings. - Update board card settings for the board id or board by name - :param :class:` ` board_card_settings_to_save: - :param :class:` ` team_context: The team context for the operation + [Preview API] Update board card settings for the board id or board by name + :param :class:` ` board_card_settings_to_save: + :param :class:` ` team_context: The team context for the operation :param str board: - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -548,18 +647,18 @@ def update_board_card_settings(self, board_card_settings_to_save, team_context, content = self._serialize.body(board_card_settings_to_save, 'BoardCardSettings') response = self._send(http_method='PUT', location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('BoardCardSettings', response) def get_board_chart(self, team_context, board, name): """GetBoardChart. - Get a board chart - :param :class:` ` team_context: The team context for the operation + [Preview API] Get a board chart + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -584,14 +683,14 @@ def get_board_chart(self, team_context, board, name): route_values['name'] = self._serialize.url('name', name, 'str') response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('BoardChart', response) def get_board_charts(self, team_context, board): """GetBoardCharts. - Get board charts - :param :class:` ` team_context: The team context for the operation + [Preview API] Get board charts + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :rtype: [BoardChartReference] """ @@ -616,18 +715,18 @@ def get_board_charts(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[BoardChartReference]', self._unwrap_collection(response)) def update_board_chart(self, chart, team_context, board, name): """UpdateBoardChart. - Update a board chart - :param :class:` ` chart: - :param :class:` ` team_context: The team context for the operation + [Preview API] Update a board chart + :param :class:` ` chart: + :param :class:` ` team_context: The team context for the operation :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id :param str name: The chart name - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -653,15 +752,16 @@ def update_board_chart(self, chart, team_context, board, name): content = self._serialize.body(chart, 'BoardChart') response = self._send(http_method='PATCH', location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('BoardChart', response) def get_board_columns(self, team_context, board): """GetBoardColumns. - :param :class:` ` team_context: The team context for the operation - :param str board: + [Preview API] Get columns on a board + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board :rtype: [BoardColumn] """ project = None @@ -685,15 +785,16 @@ def get_board_columns(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) def update_board_columns(self, board_columns, team_context, board): """UpdateBoardColumns. - :param [BoardColumn] board_columns: - :param :class:` ` team_context: The team context for the operation - :param str board: + [Preview API] Update columns on a board + :param [BoardColumn] board_columns: List of board columns to update + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board :rtype: [BoardColumn] """ project = None @@ -718,7 +819,7 @@ def update_board_columns(self, board_columns, team_context, board): content = self._serialize.body(board_columns, '[BoardColumn]') response = self._send(http_method='PUT', location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) @@ -731,7 +832,7 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. :param datetime start_date: The start date of timeline :param datetime end_date: The end date of timeline - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -747,15 +848,16 @@ def get_delivery_timeline_data(self, project, id, revision=None, start_date=None query_parameters['endDate'] = self._serialize.query('end_date', end_date, 'iso-8601') response = self._send(http_method='GET', location_id='bdd0834e-101f-49f0-a6ae-509f384a12b4', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('DeliveryViewData', response) def delete_team_iteration(self, team_context, id): """DeleteTeamIteration. - :param :class:` ` team_context: The team context for the operation - :param str id: + [Preview API] Delete a team's iteration by iterationId + :param :class:` ` team_context: The team context for the operation + :param str id: ID of the iteration """ project = None team = None @@ -778,14 +880,15 @@ def delete_team_iteration(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') self._send(http_method='DELETE', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.0', + version='5.1-preview.1', route_values=route_values) def get_team_iteration(self, team_context, id): """GetTeamIteration. - :param :class:` ` team_context: The team context for the operation - :param str id: - :rtype: :class:` ` + [Preview API] Get team's iteration by iterationId + :param :class:` ` team_context: The team context for the operation + :param str id: ID of the iteration + :rtype: :class:` ` """ project = None team = None @@ -808,14 +911,15 @@ def get_team_iteration(self, team_context, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('TeamSettingsIteration', response) def get_team_iterations(self, team_context, timeframe=None): """GetTeamIterations. - :param :class:` ` team_context: The team context for the operation - :param str timeframe: + [Preview API] Get a team's iterations using timeframe filter + :param :class:` ` team_context: The team context for the operation + :param str timeframe: A filter for which iterations are returned based on relative time. Only Current is supported currently. :rtype: [TeamSettingsIteration] """ project = None @@ -840,16 +944,17 @@ def get_team_iterations(self, team_context, timeframe=None): query_parameters['$timeframe'] = self._serialize.query('timeframe', timeframe, 'str') response = self._send(http_method='GET', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.0', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[TeamSettingsIteration]', self._unwrap_collection(response)) def post_team_iteration(self, iteration, team_context): """PostTeamIteration. - :param :class:` ` iteration: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Add an iteration to the team + :param :class:` ` iteration: Iteration to add + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -871,7 +976,7 @@ def post_team_iteration(self, iteration, team_context): content = self._serialize.body(iteration, 'TeamSettingsIteration') response = self._send(http_method='POST', location_id='c9175577-28a1-4b06-9197-8636af9f64ad', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('TeamSettingsIteration', response) @@ -879,9 +984,9 @@ def post_team_iteration(self, iteration, team_context): def create_plan(self, posted_plan, project): """CreatePlan. [Preview API] Add a new plan for the team - :param :class:` ` posted_plan: Plan definition + :param :class:` ` posted_plan: Plan definition :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -889,7 +994,7 @@ def create_plan(self, posted_plan, project): content = self._serialize.body(posted_plan, 'CreatePlan') response = self._send(http_method='POST', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Plan', response) @@ -907,7 +1012,7 @@ def delete_plan(self, project, id): route_values['id'] = self._serialize.url('id', id, 'str') self._send(http_method='DELETE', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def get_plan(self, project, id): @@ -915,7 +1020,7 @@ def get_plan(self, project, id): [Preview API] Get the information for the specified plan :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -924,7 +1029,7 @@ def get_plan(self, project, id): route_values['id'] = self._serialize.url('id', id, 'str') response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('Plan', response) @@ -939,17 +1044,17 @@ def get_plans(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[Plan]', self._unwrap_collection(response)) def update_plan(self, updated_plan, project, id): """UpdatePlan. [Preview API] Update the information for the specified plan - :param :class:` ` updated_plan: Plan definition to be updated + :param :class:` ` updated_plan: Plan definition to be updated :param str project: Project ID or project name :param str id: Identifier of the plan - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -959,30 +1064,31 @@ def update_plan(self, updated_plan, project, id): content = self._serialize.body(updated_plan, 'UpdatePlan') response = self._send(http_method='PUT', location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Plan', response) def get_process_configuration(self, project): """GetProcessConfiguration. - [Preview API] + [Preview API] Get process configuration :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='f901ba42-86d2-4b0c-89c1-3f86d06daa84', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ProcessConfiguration', response) def get_board_rows(self, team_context, board): """GetBoardRows. - :param :class:` ` team_context: The team context for the operation - :param str board: + [Preview API] Get rows on a board + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board :rtype: [BoardRow] """ project = None @@ -1006,15 +1112,16 @@ def get_board_rows(self, team_context, board): route_values['board'] = self._serialize.url('board', board, 'str') response = self._send(http_method='GET', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[BoardRow]', self._unwrap_collection(response)) def update_board_rows(self, board_rows, team_context, board): """UpdateBoardRows. - :param [BoardRow] board_rows: - :param :class:` ` team_context: The team context for the operation - :param str board: + [Preview API] Update rows on a board + :param [BoardRow] board_rows: List of board rows to update + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board :rtype: [BoardRow] """ project = None @@ -1039,16 +1146,17 @@ def update_board_rows(self, board_rows, team_context, board): content = self._serialize.body(board_rows, '[BoardRow]') response = self._send(http_method='PUT', location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('[BoardRow]', self._unwrap_collection(response)) def get_team_days_off(self, team_context, iteration_id): """GetTeamDaysOff. - :param :class:` ` team_context: The team context for the operation - :param str iteration_id: - :rtype: :class:` ` + [Preview API] Get team's days off for an iteration + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` """ project = None team = None @@ -1071,16 +1179,17 @@ def get_team_days_off(self, team_context, iteration_id): route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') response = self._send(http_method='GET', location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('TeamSettingsDaysOff', response) def update_team_days_off(self, days_off_patch, team_context, iteration_id): """UpdateTeamDaysOff. - :param :class:` ` days_off_patch: - :param :class:` ` team_context: The team context for the operation - :param str iteration_id: - :rtype: :class:` ` + [Preview API] Set a team's days off for an iteration + :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` """ project = None team = None @@ -1104,15 +1213,16 @@ def update_team_days_off(self, days_off_patch, team_context, iteration_id): content = self._serialize.body(days_off_patch, 'TeamSettingsDaysOffPatch') response = self._send(http_method='PATCH', location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('TeamSettingsDaysOff', response) def get_team_field_values(self, team_context): """GetTeamFieldValues. - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Get a collection of team field values + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1133,15 +1243,16 @@ def get_team_field_values(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('TeamFieldValues', response) def update_team_field_values(self, patch, team_context): """UpdateTeamFieldValues. - :param :class:` ` patch: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Update team field values + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1163,15 +1274,16 @@ def update_team_field_values(self, patch, team_context): content = self._serialize.body(patch, 'TeamFieldValuesPatch') response = self._send(http_method='PATCH', location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('TeamFieldValues', response) def get_team_settings(self, team_context): """GetTeamSettings. - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Get a team's settings + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1192,15 +1304,16 @@ def get_team_settings(self, team_context): route_values['team'] = self._serialize.url('team', team, 'string') response = self._send(http_method='GET', location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', - version='4.0', + version='5.1-preview.1', route_values=route_values) return self._deserialize('TeamSetting', response) def update_team_settings(self, team_settings_patch, team_context): """UpdateTeamSettings. - :param :class:` ` team_settings_patch: - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + [Preview API] Update a team's settings + :param :class:` ` team_settings_patch: TeamSettings changes + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -1222,8 +1335,40 @@ def update_team_settings(self, team_settings_patch, team_context): content = self._serialize.body(team_settings_patch, 'TeamSettingsPatch') response = self._send(http_method='PATCH', location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', - version='4.0', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('TeamSetting', response) + def get_iteration_work_items(self, team_context, iteration_id): + """GetIterationWorkItems. + [Preview API] Get work items for iteration + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='5b3ef1a6-d3ab-44cd-bafd-c7f45db850fa', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('IterationWorkItems', response) + diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking/__init__.py similarity index 84% rename from azure-devops/azure/devops/v4_0/work_item_tracking/__init__.py rename to azure-devops/azure/devops/v5_1/work_item_tracking/__init__.py index 8dae92c7..54c6d90e 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking/__init__.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -11,6 +11,8 @@ __all__ = [ 'AccountMyWorkResult', 'AccountRecentActivityWorkItemModel', + 'AccountRecentActivityWorkItemModel2', + 'AccountRecentActivityWorkItemModelBase', 'AccountRecentMentionWorkItemModel', 'AccountWorkWorkItemModel', 'ArtifactUriQuery', @@ -18,16 +20,17 @@ 'AttachmentReference', 'FieldDependentRule', 'FieldsToEvaluate', + 'GraphSubjectBase', 'IdentityRef', 'IdentityReference', 'JsonPatchOperation', 'Link', 'ProjectWorkItemStateColors', 'ProvisioningResult', + 'QueryBatchGetRequest', 'QueryHierarchyItem', 'QueryHierarchyItemsResult', 'ReferenceLinks', - 'ReportingWorkItemLink', 'ReportingWorkItemLinksBatch', 'ReportingWorkItemRevisionsBatch', 'ReportingWorkItemRevisionsFilter', @@ -36,9 +39,11 @@ 'Wiql', 'WorkArtifactLink', 'WorkItem', + 'WorkItemBatchGetRequest', 'WorkItemClassificationNode', 'WorkItemComment', 'WorkItemComments', + 'WorkItemCommentVersionRef', 'WorkItemDelete', 'WorkItemDeleteReference', 'WorkItemDeleteShallowReference', @@ -50,6 +55,7 @@ 'WorkItemHistory', 'WorkItemIcon', 'WorkItemLink', + 'WorkItemNextStateOnTransition', 'WorkItemQueryClause', 'WorkItemQueryResult', 'WorkItemQuerySortColumn', @@ -69,6 +75,8 @@ 'WorkItemTypeColor', 'WorkItemTypeColorAndIcon', 'WorkItemTypeFieldInstance', + 'WorkItemTypeFieldInstanceBase', + 'WorkItemTypeFieldWithReferences', 'WorkItemTypeReference', 'WorkItemTypeStateColors', 'WorkItemTypeTemplate', diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking/models.py similarity index 58% rename from azure-devops/azure/devops/v4_0/work_item_tracking/models.py rename to azure-devops/azure/devops/v5_1/work_item_tracking/models.py index 492f8f2d..212a6196 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -15,7 +15,7 @@ class AccountMyWorkResult(Model): :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit :type query_size_limit_exceeded: bool :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` """ _attribute_map = { @@ -29,15 +29,13 @@ def __init__(self, query_size_limit_exceeded=None, work_item_details=None): self.work_item_details = work_item_details -class AccountRecentActivityWorkItemModel(Model): - """AccountRecentActivityWorkItemModel. +class AccountRecentActivityWorkItemModelBase(Model): + """AccountRecentActivityWorkItemModelBase. :param activity_date: Date of the last Activity by the user :type activity_date: datetime :param activity_type: Type of the activity :type activity_type: object - :param assigned_to: Assigned To - :type assigned_to: str :param changed_date: Last changed date of the work item :type changed_date: datetime :param id: Work Item Id @@ -57,7 +55,6 @@ class AccountRecentActivityWorkItemModel(Model): _attribute_map = { 'activity_date': {'key': 'activityDate', 'type': 'iso-8601'}, 'activity_type': {'key': 'activityType', 'type': 'object'}, - 'assigned_to': {'key': 'assignedTo', 'type': 'str'}, 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, 'id': {'key': 'id', 'type': 'int'}, 'identity_id': {'key': 'identityId', 'type': 'str'}, @@ -67,11 +64,10 @@ class AccountRecentActivityWorkItemModel(Model): 'work_item_type': {'key': 'workItemType', 'type': 'str'} } - def __init__(self, activity_date=None, activity_type=None, assigned_to=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None): - super(AccountRecentActivityWorkItemModel, self).__init__() + def __init__(self, activity_date=None, activity_type=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None): + super(AccountRecentActivityWorkItemModelBase, self).__init__() self.activity_date = activity_date self.activity_type = activity_type - self.assigned_to = assigned_to self.changed_date = changed_date self.id = id self.identity_id = identity_id @@ -164,7 +160,7 @@ def __init__(self, assigned_to=None, changed_date=None, id=None, state=None, tea class ArtifactUriQuery(Model): """ArtifactUriQuery. - :param artifact_uris: + :param artifact_uris: List of artifact URIs to use for querying work items. :type artifact_uris: list of str """ @@ -180,7 +176,7 @@ def __init__(self, artifact_uris=None): class ArtifactUriQueryResult(Model): """ArtifactUriQueryResult. - :param artifact_uris_query_result: + :param artifact_uris_query_result: A Dictionary that maps a list of work item references to the given list of artifact URI. :type artifact_uris_query_result: dict """ @@ -216,13 +212,13 @@ def __init__(self, id=None, url=None): class FieldsToEvaluate(Model): """FieldsToEvaluate. - :param fields: + :param fields: List of fields to evaluate. :type fields: list of str - :param field_updates: + :param field_updates: Updated field values to evaluate. :type field_updates: dict - :param field_values: + :param field_values: Initial field values. :type field_values: dict - :param rules_from: + :param rules_from: URL of the work item type for which the rules need to be executed. :type rules_from: list of str """ @@ -241,79 +237,121 @@ def __init__(self, fields=None, field_updates=None, field_values=None, rules_fro self.rules_from = rules_from -class IdentityRef(Model): +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): """IdentityRef. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str :param id: :type id: str - :param image_url: + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, - 'url': {'key': 'url', 'type': 'str'} + 'unique_name': {'key': 'uniqueName', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None): - super(IdentityRef, self).__init__() + 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.display_name = display_name 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 - self.url = url class IdentityReference(IdentityRef): """IdentityReference. - :param directory_alias: - :type directory_alias: str - :param display_name: + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. :type display_name: str - :param image_url: + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary :type image_url: str - :param inactive: + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary :type inactive: bool - :param is_aad_identity: + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) :type is_aad_identity: bool - :param is_container: + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) :type is_container: bool - :param profile_url: + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef :type profile_url: str - :param unique_name: + :param unique_name: Deprecated - use Domain+PrincipalName instead :type unique_name: str - :param url: - :type url: str :param id: :type id: str :param name: Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version @@ -321,21 +359,24 @@ class IdentityReference(IdentityRef): """ _attribute_map = { - 'directory_alias': {'key': 'directoryAlias', 'type': 'str'}, + '_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'}, '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'}, - 'url': {'key': 'url', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, directory_alias=None, display_name=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None, id=None, name=None): - super(IdentityReference, self).__init__(directory_alias=directory_alias, display_name=display_name, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, profile_url=profile_url, unique_name=unique_name, url=url) + def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None, id=None, name=None): + super(IdentityReference, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, is_deleted_in_origin=is_deleted_in_origin, profile_url=profile_url, unique_name=unique_name) self.id = id self.name = name @@ -371,11 +412,11 @@ def __init__(self, from_=None, op=None, path=None, value=None): class Link(Model): """Link. - :param attributes: + :param attributes: Collection of link attributes. :type attributes: dict - :param rel: + :param rel: Relation type. :type rel: str - :param url: + :param url: Link url. :type url: str """ @@ -398,7 +439,7 @@ class ProjectWorkItemStateColors(Model): :param project_name: Project name :type project_name: str :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` """ _attribute_map = { @@ -415,7 +456,7 @@ def __init__(self, project_name=None, work_item_type_state_colors=None): class ProvisioningResult(Model): """ProvisioningResult. - :param provisioning_import_events: + :param provisioning_import_events: Details about of the provisioning import events. :type provisioning_import_events: list of str """ @@ -428,15 +469,39 @@ def __init__(self, provisioning_import_events=None): self.provisioning_import_events = provisioning_import_events +class QueryBatchGetRequest(Model): + """QueryBatchGetRequest. + + :param expand: The expand parameters for queries. Possible options are { None, Wiql, Clauses, All, Minimal } + :type expand: object + :param error_policy: The flag to control error policy in a query batch request. Possible options are { Fail, Omit }. + :type error_policy: object + :param ids: The requested query ids + :type ids: list of str + """ + + _attribute_map = { + 'expand': {'key': '$expand', 'type': 'object'}, + 'error_policy': {'key': 'errorPolicy', 'type': 'object'}, + 'ids': {'key': 'ids', 'type': '[str]'} + } + + def __init__(self, expand=None, error_policy=None, ids=None): + super(QueryBatchGetRequest, self).__init__() + self.expand = expand + self.error_policy = error_policy + self.ids = ids + + class QueryHierarchyItemsResult(Model): """QueryHierarchyItemsResult. - :param count: + :param count: The count of items. :type count: int - :param has_more: + :param has_more: Indicates if the max return limit was hit but there are still more items :type has_more: bool - :param value: - :type value: list of :class:`QueryHierarchyItem ` + :param value: The list of items + :type value: list of :class:`QueryHierarchyItem ` """ _attribute_map = { @@ -468,54 +533,6 @@ def __init__(self, links=None): self.links = links -class ReportingWorkItemLink(Model): - """ReportingWorkItemLink. - - :param changed_by: - :type changed_by: :class:`IdentityRef ` - :param changed_date: - :type changed_date: datetime - :param changed_operation: - :type changed_operation: object - :param comment: - :type comment: str - :param is_active: - :type is_active: bool - :param link_type: - :type link_type: str - :param rel: - :type rel: str - :param source_id: - :type source_id: int - :param target_id: - :type target_id: int - """ - - _attribute_map = { - 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, - 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, - 'changed_operation': {'key': 'changedOperation', 'type': 'object'}, - 'comment': {'key': 'comment', 'type': 'str'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, - 'link_type': {'key': 'linkType', 'type': 'str'}, - 'rel': {'key': 'rel', 'type': 'str'}, - 'source_id': {'key': 'sourceId', 'type': 'int'}, - 'target_id': {'key': 'targetId', 'type': 'int'} - } - - def __init__(self, changed_by=None, changed_date=None, changed_operation=None, comment=None, is_active=None, link_type=None, rel=None, source_id=None, target_id=None): - super(ReportingWorkItemLink, self).__init__() - self.changed_by = changed_by - self.changed_date = changed_date - self.changed_operation = changed_operation - self.comment = comment - self.is_active = is_active - self.link_type = link_type - self.rel = rel - self.source_id = source_id - self.target_id = target_id - - class ReportingWorkItemRevisionsFilter(Model): """ReportingWorkItemRevisionsFilter. @@ -611,7 +628,7 @@ def __init__(self, project=None, project_id=None, team=None, team_id=None): class Wiql(Model): """Wiql. - :param query: + :param query: The text of the WIQL query :type query: str """ @@ -627,11 +644,11 @@ def __init__(self, query=None): class WorkArtifactLink(Model): """WorkArtifactLink. - :param artifact_type: + :param artifact_type: Target artifact type. :type artifact_type: str - :param link_type: + :param link_type: Outbound link type. :type link_type: str - :param tool_type: + :param tool_type: Target tool type. :type tool_type: str """ @@ -648,54 +665,58 @@ def __init__(self, artifact_type=None, link_type=None, tool_type=None): self.tool_type = tool_type -class WorkItemComments(Model): - """WorkItemComments. +class WorkItemBatchGetRequest(Model): + """WorkItemBatchGetRequest. - :param comments: - :type comments: list of :class:`WorkItemComment ` - :param count: - :type count: int - :param from_revision_count: - :type from_revision_count: int - :param total_count: - :type total_count: int + :param expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All } + :type expand: object + :param as_of: AsOf UTC date time string + :type as_of: datetime + :param error_policy: The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}. + :type error_policy: object + :param fields: The requested fields + :type fields: list of str + :param ids: The requested work item ids + :type ids: list of int """ _attribute_map = { - 'comments': {'key': 'comments', 'type': '[WorkItemComment]'}, - 'count': {'key': 'count', 'type': 'int'}, - 'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'}, - 'total_count': {'key': 'totalCount', 'type': 'int'} + 'expand': {'key': '$expand', 'type': 'object'}, + 'as_of': {'key': 'asOf', 'type': 'iso-8601'}, + 'error_policy': {'key': 'errorPolicy', 'type': 'object'}, + 'fields': {'key': 'fields', 'type': '[str]'}, + 'ids': {'key': 'ids', 'type': '[int]'} } - def __init__(self, comments=None, count=None, from_revision_count=None, total_count=None): - super(WorkItemComments, self).__init__() - self.comments = comments - self.count = count - self.from_revision_count = from_revision_count - self.total_count = total_count + def __init__(self, expand=None, as_of=None, error_policy=None, fields=None, ids=None): + super(WorkItemBatchGetRequest, self).__init__() + self.expand = expand + self.as_of = as_of + self.error_policy = error_policy + self.fields = fields + self.ids = ids class WorkItemDeleteReference(Model): """WorkItemDeleteReference. - :param code: + :param code: The HTTP status code for work item operation in a batch request. :type code: int - :param deleted_by: + :param deleted_by: The user who deleted the work item type. :type deleted_by: str - :param deleted_date: + :param deleted_date: The work item deletion date. :type deleted_date: str - :param id: + :param id: Work item ID. :type id: int - :param message: + :param message: The exception message for work item operation in a batch request. :type message: str - :param name: + :param name: Name or title of the work item. :type name: str - :param project: + :param project: Parent project of the deleted work item. :type project: str - :param type: + :param type: Type of work item. :type type: str - :param url: + :param url: REST API URL of the resource :type url: str """ @@ -727,9 +748,9 @@ def __init__(self, code=None, deleted_by=None, deleted_date=None, id=None, messa class WorkItemDeleteShallowReference(Model): """WorkItemDeleteShallowReference. - :param id: + :param id: Work item ID. :type id: int - :param url: + :param url: REST API URL of the resource :type url: str """ @@ -747,7 +768,7 @@ def __init__(self, id=None, url=None): class WorkItemDeleteUpdate(Model): """WorkItemDeleteUpdate. - :param is_deleted: + :param is_deleted: Sets a value indicating whether this work item is deleted. :type is_deleted: bool """ @@ -763,9 +784,9 @@ def __init__(self, is_deleted=None): class WorkItemFieldOperation(Model): """WorkItemFieldOperation. - :param name: + :param name: Friendly name of the operation. :type name: str - :param reference_name: + :param reference_name: Reference name of the operation. :type reference_name: str """ @@ -783,11 +804,11 @@ def __init__(self, name=None, reference_name=None): class WorkItemFieldReference(Model): """WorkItemFieldReference. - :param name: + :param name: The friendly name of the field. :type name: str - :param reference_name: + :param reference_name: The reference name of the field. :type reference_name: str - :param url: + :param url: The REST URL of the resource. :type url: str """ @@ -807,9 +828,9 @@ def __init__(self, name=None, reference_name=None, url=None): class WorkItemFieldUpdate(Model): """WorkItemFieldUpdate. - :param new_value: + :param new_value: The new value of the field. :type new_value: object - :param old_value: + :param old_value: The old value of the field. :type old_value: object """ @@ -827,9 +848,9 @@ def __init__(self, new_value=None, old_value=None): class WorkItemIcon(Model): """WorkItemIcon. - :param id: + :param id: The identifier of the icon. :type id: str - :param url: + :param url: The REST URL of the resource. :type url: str """ @@ -847,12 +868,12 @@ def __init__(self, id=None, url=None): class WorkItemLink(Model): """WorkItemLink. - :param rel: + :param rel: The type of link. :type rel: str - :param source: - :type source: :class:`WorkItemReference ` - :param target: - :type target: :class:`WorkItemReference ` + :param source: The source work item. + :type source: :class:`WorkItemReference ` + :param target: The target work item. + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -868,22 +889,50 @@ def __init__(self, rel=None, source=None, target=None): self.target = target +class WorkItemNextStateOnTransition(Model): + """WorkItemNextStateOnTransition. + + :param error_code: Error code if there is no next state transition possible. + :type error_code: str + :param id: Work item ID. + :type id: int + :param message: Error message if there is no next state transition possible. + :type message: str + :param state_on_transition: Name of the next state on transition. + :type state_on_transition: str + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'state_on_transition': {'key': 'stateOnTransition', 'type': 'str'} + } + + def __init__(self, error_code=None, id=None, message=None, state_on_transition=None): + super(WorkItemNextStateOnTransition, self).__init__() + self.error_code = error_code + self.id = id + self.message = message + self.state_on_transition = state_on_transition + + class WorkItemQueryClause(Model): """WorkItemQueryClause. - :param clauses: - :type clauses: list of :class:`WorkItemQueryClause ` - :param field: - :type field: :class:`WorkItemFieldReference ` - :param field_value: - :type field_value: :class:`WorkItemFieldReference ` - :param is_field_value: + :param clauses: Child clauses if the current clause is a logical operator + :type clauses: list of :class:`WorkItemQueryClause ` + :param field: Field associated with condition + :type field: :class:`WorkItemFieldReference ` + :param field_value: Right side of the condition when a field to field comparison + :type field_value: :class:`WorkItemFieldReference ` + :param is_field_value: Determines if this is a field to field comparison :type is_field_value: bool - :param logical_operator: + :param logical_operator: Logical operator separating the condition clause :type logical_operator: object - :param operator: - :type operator: :class:`WorkItemFieldOperation ` - :param value: + :param operator: The field operator + :type operator: :class:`WorkItemFieldOperation ` + :param value: Right side of the condition when a field to value comparison :type value: str """ @@ -911,20 +960,20 @@ def __init__(self, clauses=None, field=None, field_value=None, is_field_value=No class WorkItemQueryResult(Model): """WorkItemQueryResult. - :param as_of: + :param as_of: The date the query was run in the context of. :type as_of: datetime - :param columns: - :type columns: list of :class:`WorkItemFieldReference ` - :param query_result_type: + :param columns: The columns of the query. + :type columns: list of :class:`WorkItemFieldReference ` + :param query_result_type: The result type :type query_result_type: object - :param query_type: + :param query_type: The type of the query :type query_type: object - :param sort_columns: - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param work_item_relations: - :type work_item_relations: list of :class:`WorkItemLink ` - :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :param sort_columns: The sort columns of the query. + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :param work_item_relations: The work item links returned by the query. + :type work_item_relations: list of :class:`WorkItemLink ` + :param work_items: The work items returned by the query. + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -951,10 +1000,10 @@ def __init__(self, as_of=None, columns=None, query_result_type=None, query_type= class WorkItemQuerySortColumn(Model): """WorkItemQuerySortColumn. - :param descending: + :param descending: The direction to sort by. :type descending: bool - :param field: - :type field: :class:`WorkItemFieldReference ` + :param field: A work item field. + :type field: :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -971,9 +1020,9 @@ def __init__(self, descending=None, field=None): class WorkItemReference(Model): """WorkItemReference. - :param id: + :param id: Work item ID. :type id: int - :param url: + :param url: REST API URL of the resource :type url: str """ @@ -991,11 +1040,11 @@ def __init__(self, id=None, url=None): class WorkItemRelation(Link): """WorkItemRelation. - :param attributes: + :param attributes: Collection of link attributes. :type attributes: dict - :param rel: + :param rel: Relation type. :type rel: str - :param url: + :param url: Link url. :type url: str """ @@ -1012,12 +1061,12 @@ def __init__(self, attributes=None, rel=None, url=None): class WorkItemRelationUpdates(Model): """WorkItemRelationUpdates. - :param added: - :type added: list of :class:`WorkItemRelation ` - :param removed: - :type removed: list of :class:`WorkItemRelation ` - :param updated: - :type updated: list of :class:`WorkItemRelation ` + :param added: List of newly added relations. + :type added: list of :class:`WorkItemRelation ` + :param removed: List of removed relations. + :type removed: list of :class:`WorkItemRelation ` + :param updated: List of updated relations. + :type updated: list of :class:`WorkItemRelation ` """ _attribute_map = { @@ -1036,6 +1085,8 @@ def __init__(self, added=None, removed=None, updated=None): class WorkItemStateColor(Model): """WorkItemStateColor. + :param category: Category of state + :type category: str :param color: Color value :type color: str :param name: Work item type state name @@ -1043,12 +1094,14 @@ class WorkItemStateColor(Model): """ _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, 'color': {'key': 'color', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'} } - def __init__(self, color=None, name=None): + def __init__(self, category=None, color=None, name=None): super(WorkItemStateColor, self).__init__() + self.category = category self.color = color self.name = name @@ -1056,9 +1109,9 @@ def __init__(self, color=None, name=None): class WorkItemStateTransition(Model): """WorkItemStateTransition. - :param actions: + :param actions: Gets a list of actions needed to transition to that state. :type actions: list of str - :param to: + :param to: Name of the next state. :type to: str """ @@ -1092,11 +1145,11 @@ def __init__(self, url=None): class WorkItemTypeColor(Model): """WorkItemTypeColor. - :param primary_color: + :param primary_color: Gets or sets the color of the primary. :type primary_color: str - :param secondary_color: + :param secondary_color: Gets or sets the color of the secondary. :type secondary_color: str - :param work_item_type_name: + :param work_item_type_name: The name of the work item type. :type work_item_type_name: str """ @@ -1116,11 +1169,11 @@ def __init__(self, primary_color=None, secondary_color=None, work_item_type_name class WorkItemTypeColorAndIcon(Model): """WorkItemTypeColorAndIcon. - :param color: + :param color: The color of the work item type in hex format. :type color: str - :param icon: + :param icon: Tthe work item type icon. :type icon: str - :param work_item_type_name: + :param work_item_type_name: The name of the work item type. :type work_item_type_name: str """ @@ -1137,20 +1190,20 @@ def __init__(self, color=None, icon=None, work_item_type_name=None): self.work_item_type_name = work_item_type_name -class WorkItemTypeFieldInstance(WorkItemFieldReference): - """WorkItemTypeFieldInstance. +class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): + """WorkItemTypeFieldInstanceBase. - :param name: + :param name: The friendly name of the field. :type name: str - :param reference_name: + :param reference_name: The reference name of the field. :type reference_name: str - :param url: + :param url: The REST URL of the resource. :type url: str - :param always_required: + :param always_required: Indicates whether field value is always required. :type always_required: bool - :param field: - :type field: :class:`WorkItemFieldReference ` - :param help_text: + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. :type help_text: str """ @@ -1159,23 +1212,61 @@ class WorkItemTypeFieldInstance(WorkItemFieldReference): 'reference_name': {'key': 'referenceName', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, - 'field': {'key': 'field', 'type': 'WorkItemFieldReference'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, 'help_text': {'key': 'helpText', 'type': 'str'} } - def __init__(self, name=None, reference_name=None, url=None, always_required=None, field=None, help_text=None): - super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url) + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None): + super(WorkItemTypeFieldInstanceBase, self).__init__(name=name, reference_name=reference_name, url=url) self.always_required = always_required - self.field = field + self.dependent_fields = dependent_fields self.help_text = help_text +class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): + """WorkItemTypeFieldWithReferences. + + :param name: The friendly name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + :param always_required: Indicates whether field value is always required. + :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. + :type help_text: str + :param allowed_values: The list of field allowed values. + :type allowed_values: list of object + :param default_value: Represents the default value of the field. + :type default_value: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[object]'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): + super(WorkItemTypeFieldWithReferences, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) + self.allowed_values = allowed_values + self.default_value = default_value + + class WorkItemTypeReference(WorkItemTrackingResourceReference): """WorkItemTypeReference. :param url: :type url: str - :param name: + :param name: Name of the work item type. :type name: str """ @@ -1193,7 +1284,7 @@ class WorkItemTypeStateColors(Model): """WorkItemTypeStateColors. :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` + :type state_colors: list of :class:`WorkItemStateColor ` :param work_item_type_name: Work item type name :type work_item_type_name: str """ @@ -1212,7 +1303,7 @@ def __init__(self, state_colors=None, work_item_type_name=None): class WorkItemTypeTemplate(Model): """WorkItemTypeTemplate. - :param template: + :param template: XML template in string format. :type template: str """ @@ -1228,13 +1319,13 @@ def __init__(self, template=None): class WorkItemTypeTemplateUpdateModel(Model): """WorkItemTypeTemplateUpdateModel. - :param action_type: + :param action_type: Describes the type of the action for the update request. :type action_type: object - :param methodology: + :param methodology: Methodology to which the template belongs, eg. Agile, Scrum, CMMI. :type methodology: str - :param template: + :param template: String representation of the work item type template. :type template: str - :param template_type: + :param template_type: The type of the template described in the request body. :type template_type: object """ @@ -1253,47 +1344,90 @@ def __init__(self, action_type=None, methodology=None, template=None, template_t self.template_type = template_type -class WorkItemUpdate(WorkItemTrackingResourceReference): - """WorkItemUpdate. +class AccountRecentActivityWorkItemModel(AccountRecentActivityWorkItemModelBase): + """AccountRecentActivityWorkItemModel. - :param url: - :type url: str - :param fields: - :type fields: dict - :param id: + :param activity_date: Date of the last Activity by the user + :type activity_date: datetime + :param activity_type: Type of the activity + :type activity_type: object + :param changed_date: Last changed date of the work item + :type changed_date: datetime + :param id: Work Item Id :type id: int - :param relations: - :type relations: :class:`WorkItemRelationUpdates ` - :param rev: - :type rev: int - :param revised_by: - :type revised_by: :class:`IdentityReference ` - :param revised_date: - :type revised_date: datetime - :param work_item_id: - :type work_item_id: int + :param identity_id: TeamFoundationId of the user this activity belongs to + :type identity_id: str + :param state: State of the work item + :type state: str + :param team_project: Team project the work item belongs to + :type team_project: str + :param title: Title of the work item + :type title: str + :param work_item_type: Type of Work Item + :type work_item_type: str + :param assigned_to: Assigned To + :type assigned_to: str """ _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': '{WorkItemFieldUpdate}'}, + 'activity_date': {'key': 'activityDate', 'type': 'iso-8601'}, + 'activity_type': {'key': 'activityType', 'type': 'object'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, 'id': {'key': 'id', 'type': 'int'}, - 'relations': {'key': 'relations', 'type': 'WorkItemRelationUpdates'}, - 'rev': {'key': 'rev', 'type': 'int'}, - 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, - 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, - 'work_item_id': {'key': 'workItemId', 'type': 'int'} + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'}, + 'assigned_to': {'key': 'assignedTo', 'type': 'str'} } - def __init__(self, url=None, fields=None, id=None, relations=None, rev=None, revised_by=None, revised_date=None, work_item_id=None): - super(WorkItemUpdate, self).__init__(url=url) - self.fields = fields - self.id = id - self.relations = relations - self.rev = rev - self.revised_by = revised_by - self.revised_date = revised_date - self.work_item_id = work_item_id + def __init__(self, activity_date=None, activity_type=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None, assigned_to=None): + super(AccountRecentActivityWorkItemModel, self).__init__(activity_date=activity_date, activity_type=activity_type, changed_date=changed_date, id=id, identity_id=identity_id, state=state, team_project=team_project, title=title, work_item_type=work_item_type) + self.assigned_to = assigned_to + + +class AccountRecentActivityWorkItemModel2(AccountRecentActivityWorkItemModelBase): + """AccountRecentActivityWorkItemModel2. + + :param activity_date: Date of the last Activity by the user + :type activity_date: datetime + :param activity_type: Type of the activity + :type activity_type: object + :param changed_date: Last changed date of the work item + :type changed_date: datetime + :param id: Work Item Id + :type id: int + :param identity_id: TeamFoundationId of the user this activity belongs to + :type identity_id: str + :param state: State of the work item + :type state: str + :param team_project: Team project the work item belongs to + :type team_project: str + :param title: Title of the work item + :type title: str + :param work_item_type: Type of Work Item + :type work_item_type: str + :param assigned_to: Assigned To + :type assigned_to: :class:`IdentityRef ` + """ + + _attribute_map = { + 'activity_date': {'key': 'activityDate', 'type': 'iso-8601'}, + 'activity_type': {'key': 'activityType', 'type': 'object'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'identity_id': {'key': 'identityId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'team_project': {'key': 'teamProject', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'work_item_type': {'key': 'workItemType', 'type': 'str'}, + 'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'} + } + + def __init__(self, activity_date=None, activity_type=None, changed_date=None, id=None, identity_id=None, state=None, team_project=None, title=None, work_item_type=None, assigned_to=None): + super(AccountRecentActivityWorkItemModel2, self).__init__(activity_date=activity_date, activity_type=activity_type, changed_date=changed_date, id=id, identity_id=identity_id, state=state, team_project=team_project, title=title, work_item_type=work_item_type) + self.assigned_to = assigned_to class ReportingWorkItemLinksBatch(StreamedBatch): @@ -1320,29 +1454,52 @@ def __init__(self): super(ReportingWorkItemRevisionsBatch, self).__init__() +class WorkItemCommentVersionRef(WorkItemTrackingResourceReference): + """WorkItemCommentVersionRef. + + :param url: + :type url: str + :param comment_id: The id assigned to the comment. + :type comment_id: int + :param version: The version number. + :type version: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + 'comment_id': {'key': 'commentId', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, url=None, comment_id=None, version=None): + super(WorkItemCommentVersionRef, self).__init__(url=url) + self.comment_id = comment_id + self.version = version + + class WorkItemDelete(WorkItemDeleteReference): """WorkItemDelete. - :param code: + :param code: The HTTP status code for work item operation in a batch request. :type code: int - :param deleted_by: + :param deleted_by: The user who deleted the work item type. :type deleted_by: str - :param deleted_date: + :param deleted_date: The work item deletion date. :type deleted_date: str - :param id: + :param id: Work item ID. :type id: int - :param message: + :param message: The exception message for work item operation in a batch request. :type message: str - :param name: + :param name: Name or title of the work item. :type name: str - :param project: + :param project: Parent project of the deleted work item. :type project: str - :param type: + :param type: Type of work item. :type type: str - :param url: + :param url: REST API URL of the resource :type url: str - :param resource: - :type resource: :class:`WorkItem ` + :param resource: The work item object that was deleted. + :type resource: :class:`WorkItem ` """ _attribute_map = { @@ -1368,8 +1525,8 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1387,23 +1544,29 @@ class WorkItemType(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param color: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param color: The color. :type color: str - :param description: + :param description: The description of the work item type. :type description: str - :param field_instances: - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` - :param fields: - :type fields: list of :class:`WorkItemTypeFieldInstance ` - :param icon: - :type icon: :class:`WorkItemIcon ` - :param name: + :param field_instances: The fields that exist on the work item type. + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :param fields: The fields that exist on the work item type. + :type fields: list of :class:`WorkItemTypeFieldInstance ` + :param icon: The icon of the work item type. + :type icon: :class:`WorkItemIcon ` + :param is_disabled: True if work item type is disabled + :type is_disabled: bool + :param name: Gets the name of the work item type. :type name: str - :param transitions: + :param reference_name: The reference name of the work item type. + :type reference_name: str + :param states: Gets state information for the work item type. + :type states: list of :class:`WorkItemStateColor ` + :param transitions: Gets the various state transition mappings in the work item type. :type transitions: dict - :param xml_form: + :param xml_form: The XML form. :type xml_form: str """ @@ -1415,19 +1578,25 @@ class WorkItemType(WorkItemTrackingResource): 'field_instances': {'key': 'fieldInstances', 'type': '[WorkItemTypeFieldInstance]'}, 'fields': {'key': 'fields', 'type': '[WorkItemTypeFieldInstance]'}, 'icon': {'key': 'icon', 'type': 'WorkItemIcon'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateColor]'}, 'transitions': {'key': 'transitions', 'type': '{[WorkItemStateTransition]}'}, 'xml_form': {'key': 'xmlForm', 'type': 'str'} } - def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, name=None, transitions=None, xml_form=None): + def __init__(self, url=None, _links=None, color=None, description=None, field_instances=None, fields=None, icon=None, is_disabled=None, name=None, reference_name=None, states=None, transitions=None, xml_form=None): super(WorkItemType, self).__init__(url=url, _links=_links) self.color = color self.description = description self.field_instances = field_instances self.fields = fields self.icon = icon + self.is_disabled = is_disabled self.name = name + self.reference_name = reference_name + self.states = states self.transitions = transitions self.xml_form = xml_form @@ -1437,16 +1606,16 @@ class WorkItemTypeCategory(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param default_work_item_type: - :type default_work_item_type: :class:`WorkItemTypeReference ` - :param name: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param default_work_item_type: Gets or sets the default type of the work item. + :type default_work_item_type: :class:`WorkItemTypeReference ` + :param name: The name of the category. :type name: str - :param reference_name: + :param reference_name: The reference name of the category. :type reference_name: str - :param work_item_types: - :type work_item_types: list of :class:`WorkItemTypeReference ` + :param work_item_types: The work item types that belond to the category. + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -1466,15 +1635,99 @@ def __init__(self, url=None, _links=None, default_work_item_type=None, name=None self.work_item_types = work_item_types +class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): + """WorkItemTypeFieldInstance. + + :param name: The friendly name of the field. + :type name: str + :param reference_name: The reference name of the field. + :type reference_name: str + :param url: The REST URL of the resource. + :type url: str + :param always_required: Indicates whether field value is always required. + :type always_required: bool + :param dependent_fields: The list of dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param help_text: Gets the help text for the field. + :type help_text: str + :param allowed_values: The list of field allowed values. + :type allowed_values: list of str + :param default_value: Represents the default value of the field. + :type default_value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'always_required': {'key': 'alwaysRequired', 'type': 'bool'}, + 'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}, + 'help_text': {'key': 'helpText', 'type': 'str'}, + 'allowed_values': {'key': 'allowedValues', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None): + super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text) + self.allowed_values = allowed_values + self.default_value = default_value + + +class WorkItemUpdate(WorkItemTrackingResource): + """WorkItemUpdate. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param fields: List of updates to fields. + :type fields: dict + :param id: ID of update. + :type id: int + :param relations: List of updates to relations. + :type relations: :class:`WorkItemRelationUpdates ` + :param rev: The revision number of work item update. + :type rev: int + :param revised_by: Identity for the work item update. + :type revised_by: :class:`IdentityReference ` + :param revised_date: The work item updates revision date. + :type revised_date: datetime + :param work_item_id: The work item ID. + :type work_item_id: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'fields': {'key': 'fields', 'type': '{WorkItemFieldUpdate}'}, + 'id': {'key': 'id', 'type': 'int'}, + 'relations': {'key': 'relations', 'type': 'WorkItemRelationUpdates'}, + 'rev': {'key': 'rev', 'type': 'int'}, + 'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'}, + 'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'}, + 'work_item_id': {'key': 'workItemId', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None, revised_by=None, revised_date=None, work_item_id=None): + super(WorkItemUpdate, self).__init__(url=url, _links=_links) + self.fields = fields + self.id = id + self.relations = relations + self.rev = rev + self.revised_by = revised_by + self.revised_date = revised_date + self.work_item_id = work_item_id + + class FieldDependentRule(WorkItemTrackingResource): """FieldDependentRule. :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param dependent_fields: - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param dependent_fields: The dependent fields. + :type dependent_fields: list of :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1493,51 +1746,57 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param children: - :type children: list of :class:`QueryHierarchyItem ` - :param clauses: - :type clauses: :class:`WorkItemQueryClause ` - :param columns: - :type columns: list of :class:`WorkItemFieldReference ` - :param created_by: - :type created_by: :class:`IdentityReference ` - :param created_date: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param children: The child query items inside a query folder. + :type children: list of :class:`QueryHierarchyItem ` + :param clauses: The clauses for a flat query. + :type clauses: :class:`WorkItemQueryClause ` + :param columns: The columns of the query. + :type columns: list of :class:`WorkItemFieldReference ` + :param created_by: The identity who created the query item. + :type created_by: :class:`IdentityReference ` + :param created_date: When the query item was created. :type created_date: datetime - :param filter_options: + :param filter_options: The link query mode. :type filter_options: object - :param has_children: + :param has_children: If this is a query folder, indicates if it contains any children. :type has_children: bool - :param id: + :param id: The id of the query item. :type id: str - :param is_deleted: + :param is_deleted: Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it. :type is_deleted: bool - :param is_folder: + :param is_folder: Indicates if this is a query folder or a query. :type is_folder: bool - :param is_invalid_syntax: + :param is_invalid_syntax: Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path. :type is_invalid_syntax: bool - :param is_public: + :param is_public: Indicates if this query item is public or private. :type is_public: bool - :param last_modified_by: - :type last_modified_by: :class:`IdentityReference ` - :param last_modified_date: + :param last_executed_by: The identity who last ran the query. + :type last_executed_by: :class:`IdentityReference ` + :param last_executed_date: When the query was last run. + :type last_executed_date: datetime + :param last_modified_by: The identity who last modified the query item. + :type last_modified_by: :class:`IdentityReference ` + :param last_modified_date: When the query item was last modified. :type last_modified_date: datetime - :param link_clauses: - :type link_clauses: :class:`WorkItemQueryClause ` - :param name: + :param link_clauses: The link query clause. + :type link_clauses: :class:`WorkItemQueryClause ` + :param name: The name of the query item. :type name: str - :param path: + :param path: The path of the query item. :type path: str - :param query_type: + :param query_recursion_option: The recursion option for use in a tree query. + :type query_recursion_option: object + :param query_type: The type of query. :type query_type: object - :param sort_columns: - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` - :param source_clauses: - :type source_clauses: :class:`WorkItemQueryClause ` - :param target_clauses: - :type target_clauses: :class:`WorkItemQueryClause ` - :param wiql: + :param sort_columns: The sort columns of the query. + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :param source_clauses: The source clauses in a tree or one-hop link query. + :type source_clauses: :class:`WorkItemQueryClause ` + :param target_clauses: The target clauses in a tree or one-hop link query. + :type target_clauses: :class:`WorkItemQueryClause ` + :param wiql: The WIQL text of the query :type wiql: str """ @@ -1556,11 +1815,14 @@ class QueryHierarchyItem(WorkItemTrackingResource): 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_invalid_syntax': {'key': 'isInvalidSyntax', 'type': 'bool'}, 'is_public': {'key': 'isPublic', 'type': 'bool'}, + 'last_executed_by': {'key': 'lastExecutedBy', 'type': 'IdentityReference'}, + 'last_executed_date': {'key': 'lastExecutedDate', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityReference'}, 'last_modified_date': {'key': 'lastModifiedDate', 'type': 'iso-8601'}, 'link_clauses': {'key': 'linkClauses', 'type': 'WorkItemQueryClause'}, 'name': {'key': 'name', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, + 'query_recursion_option': {'key': 'queryRecursionOption', 'type': 'object'}, 'query_type': {'key': 'queryType', 'type': 'object'}, 'sort_columns': {'key': 'sortColumns', 'type': '[WorkItemQuerySortColumn]'}, 'source_clauses': {'key': 'sourceClauses', 'type': 'WorkItemQueryClause'}, @@ -1568,7 +1830,7 @@ class QueryHierarchyItem(WorkItemTrackingResource): 'wiql': {'key': 'wiql', 'type': 'str'} } - def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): + def __init__(self, url=None, _links=None, children=None, clauses=None, columns=None, created_by=None, created_date=None, filter_options=None, has_children=None, id=None, is_deleted=None, is_folder=None, is_invalid_syntax=None, is_public=None, last_executed_by=None, last_executed_date=None, last_modified_by=None, last_modified_date=None, link_clauses=None, name=None, path=None, query_recursion_option=None, query_type=None, sort_columns=None, source_clauses=None, target_clauses=None, wiql=None): super(QueryHierarchyItem, self).__init__(url=url, _links=_links) self.children = children self.clauses = clauses @@ -1582,11 +1844,14 @@ def __init__(self, url=None, _links=None, children=None, clauses=None, columns=N self.is_folder = is_folder self.is_invalid_syntax = is_invalid_syntax self.is_public = is_public + self.last_executed_by = last_executed_by + self.last_executed_date = last_executed_date self.last_modified_by = last_modified_by self.last_modified_date = last_modified_date self.link_clauses = link_clauses self.name = name self.path = path + self.query_recursion_option = query_recursion_option self.query_type = query_type self.sort_columns = sort_columns self.source_clauses = source_clauses @@ -1599,29 +1864,33 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param fields: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comment_version_ref: Reference to a specific version of the comment added/edited/deleted in this revision. + :type comment_version_ref: :class:`WorkItemCommentVersionRef ` + :param fields: Map of field and values for the work item. :type fields: dict - :param id: + :param id: The work item ID. :type id: int - :param relations: - :type relations: list of :class:`WorkItemRelation ` - :param rev: + :param relations: Relations of the work item. + :type relations: list of :class:`WorkItemRelation ` + :param rev: Revision number of the work item. :type rev: int """ _attribute_map = { 'url': {'key': 'url', 'type': 'str'}, '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment_version_ref': {'key': 'commentVersionRef', 'type': 'WorkItemCommentVersionRef'}, 'fields': {'key': 'fields', 'type': '{object}'}, 'id': {'key': 'id', 'type': 'int'}, 'relations': {'key': 'relations', 'type': '[WorkItemRelation]'}, 'rev': {'key': 'rev', 'type': 'int'} } - def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None): + def __init__(self, url=None, _links=None, comment_version_ref=None, fields=None, id=None, relations=None, rev=None): super(WorkItem, self).__init__(url=url, _links=_links) + self.comment_version_ref = comment_version_ref self.fields = fields self.id = id self.relations = relations @@ -1633,19 +1902,23 @@ class WorkItemClassificationNode(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param attributes: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. :type attributes: dict - :param children: - :type children: list of :class:`WorkItemClassificationNode ` - :param id: + :param children: List of child nodes fetched. + :type children: list of :class:`WorkItemClassificationNode ` + :param has_children: Flag that indicates if the classification node has any child nodes. + :type has_children: bool + :param id: Integer ID of the classification node. :type id: int - :param identifier: + :param identifier: GUID ID of the classification node. :type identifier: str - :param name: + :param name: Name of the classification node. :type name: str - :param structure_type: + :param path: Path of the classification node. + :type path: str + :param structure_type: Node structure type. :type structure_type: object """ @@ -1654,19 +1927,23 @@ class WorkItemClassificationNode(WorkItemTrackingResource): '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'attributes': {'key': 'attributes', 'type': '{object}'}, 'children': {'key': 'children', 'type': '[WorkItemClassificationNode]'}, + 'has_children': {'key': 'hasChildren', 'type': 'bool'}, 'id': {'key': 'id', 'type': 'int'}, 'identifier': {'key': 'identifier', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, 'structure_type': {'key': 'structureType', 'type': 'object'} } - def __init__(self, url=None, _links=None, attributes=None, children=None, id=None, identifier=None, name=None, structure_type=None): + def __init__(self, url=None, _links=None, attributes=None, children=None, has_children=None, id=None, identifier=None, name=None, path=None, structure_type=None): super(WorkItemClassificationNode, self).__init__(url=url, _links=_links) self.attributes = attributes self.children = children + self.has_children = has_children self.id = id self.identifier = identifier self.name = name + self.path = path self.structure_type = structure_type @@ -1675,15 +1952,15 @@ class WorkItemComment(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param revised_by: - :type revised_by: :class:`IdentityReference ` - :param revised_date: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param revised_by: Identity of user who added the comment. + :type revised_by: :class:`IdentityReference ` + :param revised_date: The date of comment. :type revised_date: datetime - :param revision: + :param revision: The work item revision number. :type revision: int - :param text: + :param text: The text of the comment. :type text: str """ @@ -1704,58 +1981,108 @@ def __init__(self, url=None, _links=None, revised_by=None, revised_date=None, re self.text = text +class WorkItemComments(WorkItemTrackingResource): + """WorkItemComments. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comments: Comments collection. + :type comments: list of :class:`WorkItemComment ` + :param count: The count of comments. + :type count: int + :param from_revision_count: Count of comments from the revision. + :type from_revision_count: int + :param total_count: Total count of comments. + :type total_count: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[WorkItemComment]'}, + 'count': {'key': 'count', 'type': 'int'}, + 'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'}, + 'total_count': {'key': 'totalCount', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, comments=None, count=None, from_revision_count=None, total_count=None): + super(WorkItemComments, self).__init__(url=url, _links=_links) + self.comments = comments + self.count = count + self.from_revision_count = from_revision_count + self.total_count = total_count + + class WorkItemField(WorkItemTrackingResource): """WorkItemField. :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param can_sort_by: Indicates whether the field is sortable in server queries. + :type can_sort_by: bool + :param description: The description of the field. :type description: str - :param is_identity: + :param is_identity: Indicates whether this field is an identity field. :type is_identity: bool - :param is_picklist: + :param is_picklist: Indicates whether this instance is picklist. :type is_picklist: bool - :param is_picklist_suggested: + :param is_picklist_suggested: Indicates whether this instance is a suggested picklist . :type is_picklist_suggested: bool - :param name: + :param is_queryable: Indicates whether the field can be queried in the server. + :type is_queryable: bool + :param name: The name of the field. :type name: str - :param read_only: + :param picklist_id: If this field is picklist, the identifier of the picklist associated, otherwise null + :type picklist_id: str + :param read_only: Indicates whether the field is [read only]. :type read_only: bool - :param reference_name: + :param reference_name: The reference name of the field. :type reference_name: str - :param supported_operations: - :type supported_operations: list of :class:`WorkItemFieldOperation ` - :param type: + :param supported_operations: The supported operations on this field. + :type supported_operations: list of :class:`WorkItemFieldOperation ` + :param type: The type of the field. :type type: object + :param usage: The usage of the field. + :type usage: object """ _attribute_map = { 'url': {'key': 'url', 'type': 'str'}, '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'can_sort_by': {'key': 'canSortBy', 'type': 'bool'}, 'description': {'key': 'description', 'type': 'str'}, 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, 'is_picklist': {'key': 'isPicklist', 'type': 'bool'}, 'is_picklist_suggested': {'key': 'isPicklistSuggested', 'type': 'bool'}, + 'is_queryable': {'key': 'isQueryable', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, + 'picklist_id': {'key': 'picklistId', 'type': 'str'}, 'read_only': {'key': 'readOnly', 'type': 'bool'}, 'reference_name': {'key': 'referenceName', 'type': 'str'}, 'supported_operations': {'key': 'supportedOperations', 'type': '[WorkItemFieldOperation]'}, - 'type': {'key': 'type', 'type': 'object'} + 'type': {'key': 'type', 'type': 'object'}, + 'usage': {'key': 'usage', 'type': 'object'} } - def __init__(self, url=None, _links=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, name=None, read_only=None, reference_name=None, supported_operations=None, type=None): + def __init__(self, url=None, _links=None, can_sort_by=None, description=None, is_identity=None, is_picklist=None, is_picklist_suggested=None, is_queryable=None, name=None, picklist_id=None, read_only=None, reference_name=None, supported_operations=None, type=None, usage=None): super(WorkItemField, self).__init__(url=url, _links=_links) + self.can_sort_by = can_sort_by self.description = description self.is_identity = is_identity self.is_picklist = is_picklist self.is_picklist_suggested = is_picklist_suggested + self.is_queryable = is_queryable self.name = name + self.picklist_id = picklist_id self.read_only = read_only self.reference_name = reference_name self.supported_operations = supported_operations self.type = type + self.usage = usage class WorkItemHistory(WorkItemTrackingResource): @@ -1763,12 +2090,12 @@ class WorkItemHistory(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param value: @@ -1797,15 +2124,15 @@ class WorkItemTemplateReference(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param description: The description of the work item template. :type description: str - :param id: + :param id: The identifier of the work item template. :type id: str - :param name: + :param name: The name of the work item template. :type name: str - :param work_item_type_name: + :param work_item_type_name: The name of the work item type. :type work_item_type_name: str """ @@ -1831,11 +2158,11 @@ class WorkItemTrackingReference(WorkItemTrackingResource): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param name: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param name: The name. :type name: str - :param reference_name: + :param reference_name: The reference name. :type reference_name: str """ @@ -1857,13 +2184,13 @@ class WorkItemRelationType(WorkItemTrackingReference): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param name: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param name: The name. :type name: str - :param reference_name: + :param reference_name: The reference name. :type reference_name: str - :param attributes: + :param attributes: The collection of relation type attributes. :type attributes: dict """ @@ -1885,17 +2212,17 @@ class WorkItemTemplate(WorkItemTemplateReference): :param url: :type url: str - :param _links: - :type _links: :class:`ReferenceLinks ` - :param description: + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param description: The description of the work item template. :type description: str - :param id: + :param id: The identifier of the work item template. :type id: str - :param name: + :param name: The name of the work item template. :type name: str - :param work_item_type_name: + :param work_item_type_name: The name of the work item type. :type work_item_type_name: str - :param fields: + :param fields: Mapping of field and its templated value. :type fields: dict """ @@ -1916,28 +2243,29 @@ def __init__(self, url=None, _links=None, description=None, id=None, name=None, __all__ = [ 'AccountMyWorkResult', - 'AccountRecentActivityWorkItemModel', + 'AccountRecentActivityWorkItemModelBase', 'AccountRecentMentionWorkItemModel', 'AccountWorkWorkItemModel', 'ArtifactUriQuery', 'ArtifactUriQueryResult', 'AttachmentReference', 'FieldsToEvaluate', + 'GraphSubjectBase', 'IdentityRef', 'IdentityReference', 'JsonPatchOperation', 'Link', 'ProjectWorkItemStateColors', 'ProvisioningResult', + 'QueryBatchGetRequest', 'QueryHierarchyItemsResult', 'ReferenceLinks', - 'ReportingWorkItemLink', 'ReportingWorkItemRevisionsFilter', 'StreamedBatch', 'TeamContext', 'Wiql', 'WorkArtifactLink', - 'WorkItemComments', + 'WorkItemBatchGetRequest', 'WorkItemDeleteReference', 'WorkItemDeleteShallowReference', 'WorkItemDeleteUpdate', @@ -1946,6 +2274,7 @@ def __init__(self, url=None, _links=None, description=None, id=None, name=None, 'WorkItemFieldUpdate', 'WorkItemIcon', 'WorkItemLink', + 'WorkItemNextStateOnTransition', 'WorkItemQueryClause', 'WorkItemQueryResult', 'WorkItemQuerySortColumn', @@ -1957,23 +2286,29 @@ def __init__(self, url=None, _links=None, description=None, id=None, name=None, 'WorkItemTrackingResourceReference', 'WorkItemTypeColor', 'WorkItemTypeColorAndIcon', - 'WorkItemTypeFieldInstance', + 'WorkItemTypeFieldInstanceBase', + 'WorkItemTypeFieldWithReferences', 'WorkItemTypeReference', 'WorkItemTypeStateColors', 'WorkItemTypeTemplate', 'WorkItemTypeTemplateUpdateModel', - 'WorkItemUpdate', + 'AccountRecentActivityWorkItemModel', + 'AccountRecentActivityWorkItemModel2', 'ReportingWorkItemLinksBatch', 'ReportingWorkItemRevisionsBatch', + 'WorkItemCommentVersionRef', 'WorkItemDelete', 'WorkItemTrackingResource', 'WorkItemType', 'WorkItemTypeCategory', + 'WorkItemTypeFieldInstance', + 'WorkItemUpdate', 'FieldDependentRule', 'QueryHierarchyItem', 'WorkItem', 'WorkItemClassificationNode', 'WorkItemComment', + 'WorkItemComments', 'WorkItemField', 'WorkItemHistory', 'WorkItemTemplateReference', diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking/work_item_tracking_client.py similarity index 66% rename from azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py rename to azure-devops/azure/devops/v5_1/work_item_tracking/work_item_tracking_client.py index 4a380db0..65da0b74 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking/work_item_tracking_client.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -25,38 +25,57 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' + def get_recent_activity_data(self): + """GetRecentActivityData. + [Preview API] Gets recent work item activities + :rtype: [AccountRecentActivityWorkItemModel2] + """ + response = self._send(http_method='GET', + location_id='1bc988f4-c15f-4072-ad35-497c87e3a909', + version='5.1-preview.2') + return self._deserialize('[AccountRecentActivityWorkItemModel2]', self._unwrap_collection(response)) + def get_work_artifact_link_types(self): """GetWorkArtifactLinkTypes. - [Preview API] Get the workItemTracking toolTypes outboundLinks of type WorkItem + [Preview API] Get the list of work item tracking outbound artifact link types. :rtype: [WorkArtifactLink] """ response = self._send(http_method='GET', location_id='1a31de40-e318-41cd-a6c6-881077df52e3', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('[WorkArtifactLink]', self._unwrap_collection(response)) - def get_work_item_ids_for_artifact_uris(self, artifact_uri_query): - """GetWorkItemIdsForArtifactUris. - [Preview API] Gets the results of the work item ids linked to the artifact uri - :param :class:` ` artifact_uri_query: List of artifact uris. - :rtype: :class:` ` + def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): + """QueryWorkItemsForArtifactUris. + [Preview API] Queries work items linked to a given list of artifact URI. + :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. + :param str project: Project ID or project name + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') content = self._serialize.body(artifact_uri_query, 'ArtifactUriQuery') response = self._send(http_method='POST', location_id='a9a9aa7a-8c09-44d3-ad1b-46e855c1e3d3', - version='4.0-preview.1', + version='5.1-preview.1', + route_values=route_values, content=content) return self._deserialize('ArtifactUriQueryResult', response) - def create_attachment(self, upload_stream, file_name=None, upload_type=None, area_path=None, **kwargs): + def create_attachment(self, upload_stream, project=None, file_name=None, upload_type=None, area_path=None, **kwargs): """CreateAttachment. - Creates an attachment. + [Preview API] Uploads an attachment. :param object upload_stream: Stream to upload - :param str file_name: - :param str upload_type: - :param str area_path: - :rtype: :class:` ` + :param str project: Project ID or project name + :param str file_name: The name of the file + :param str upload_type: Attachment upload type: Simple or Chunked + :param str area_path: Target project Area Path + :rtype: :class:` ` """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') @@ -71,28 +90,35 @@ def create_attachment(self, upload_stream, file_name=None, upload_type=None, are content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.0', + version='5.1-preview.3', + route_values=route_values, query_parameters=query_parameters, content=content, media_type='application/octet-stream') return self._deserialize('AttachmentReference', response) - def get_attachment_content(self, id, file_name=None, **kwargs): + def get_attachment_content(self, id, project=None, file_name=None, download=None, **kwargs): """GetAttachmentContent. - Returns an attachment - :param str id: - :param str file_name: + [Preview API] Downloads an attachment. + :param str id: Attachment ID + :param str project: Project ID or project name + :param str file_name: Name of the file + :param bool download: If set to true always download attachment :rtype: object """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'str') query_parameters = {} if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/octet-stream') @@ -102,22 +128,28 @@ def get_attachment_content(self, id, file_name=None, **kwargs): callback = None return self._client.stream_download(response, callback=callback) - def get_attachment_zip(self, id, file_name=None, **kwargs): + def get_attachment_zip(self, id, project=None, file_name=None, download=None, **kwargs): """GetAttachmentZip. - Returns an attachment - :param str id: - :param str file_name: + [Preview API] Downloads an attachment. + :param str id: Attachment ID + :param str project: Project ID or project name + :param str file_name: Name of the file + :param bool download: If set to true always download attachment :rtype: object """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'str') query_parameters = {} if file_name is not None: query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') response = self._send(http_method='GET', location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters, accept_media_type='application/zip') @@ -127,10 +159,38 @@ def get_attachment_zip(self, id, file_name=None, **kwargs): callback = None return self._client.stream_download(response, callback=callback) + def get_classification_nodes(self, project, ids, depth=None, error_policy=None): + """GetClassificationNodes. + [Preview API] Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project. + :param str project: Project ID or project name + :param [int] ids: Comma seperated integer classification nodes ids. It's not required, if you want root nodes. + :param int depth: Depth of children to fetch. + :param str error_policy: Flag to handle errors in getting some nodes. Possible options are Fail and Omit. + :rtype: [WorkItemClassificationNode] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if depth is not None: + query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') + if error_policy is not None: + query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') + response = self._send(http_method='GET', + location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) + def get_root_nodes(self, project, depth=None): """GetRootNodes. + [Preview API] Gets root classification nodes under the project. :param str project: Project ID or project name - :param int depth: + :param int depth: Depth of children to fetch. :rtype: [WorkItemClassificationNode] """ route_values = {} @@ -141,18 +201,19 @@ def get_root_nodes(self, project, depth=None): query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') response = self._send(http_method='GET', location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. - :param :class:` ` posted_node: + [Preview API] Create new or update an existing classification node. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name - :param TreeStructureGroup structure_group: - :param str path: - :rtype: :class:` ` + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -164,17 +225,18 @@ def create_or_update_classification_node(self, posted_node, project, structure_g content = self._serialize.body(posted_node, 'WorkItemClassificationNode') response = self._send(http_method='POST', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.0', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('WorkItemClassificationNode', response) def delete_classification_node(self, project, structure_group, path=None, reclassify_id=None): """DeleteClassificationNode. + [Preview API] Delete an existing classification node. :param str project: Project ID or project name - :param TreeStructureGroup structure_group: - :param str path: - :param int reclassify_id: + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :param int reclassify_id: Id of the target classification node for reclassification. """ route_values = {} if project is not None: @@ -188,17 +250,18 @@ def delete_classification_node(self, project, structure_group, path=None, reclas query_parameters['$reclassifyId'] = self._serialize.query('reclassify_id', reclassify_id, 'int') self._send(http_method='DELETE', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) def get_classification_node(self, project, structure_group, path=None, depth=None): """GetClassificationNode. + [Preview API] Gets the classification node for a given node path. :param str project: Project ID or project name - :param TreeStructureGroup structure_group: - :param str path: - :param int depth: - :rtype: :class:` ` + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :param int depth: Depth of children to fetch. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -212,18 +275,19 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') response = self._send(http_method='GET', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemClassificationNode', response) def update_classification_node(self, posted_node, project, structure_group, path=None): """UpdateClassificationNode. - :param :class:` ` posted_node: + [Preview API] Update an existing classification node. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name - :param TreeStructureGroup structure_group: - :param str path: - :rtype: :class:` ` + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -235,58 +299,33 @@ def update_classification_node(self, posted_node, project, structure_group, path content = self._serialize.body(posted_node, 'WorkItemClassificationNode') response = self._send(http_method='PATCH', location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', - version='4.0', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('WorkItemClassificationNode', response) - def get_comment(self, id, revision): - """GetComment. - [Preview API] Returns comment for a work item at the specified revision - :param int id: - :param int revision: - :rtype: :class:` ` - """ - route_values = {} - if id is not None: - route_values['id'] = self._serialize.url('id', id, 'int') - if revision is not None: - route_values['revision'] = self._serialize.url('revision', revision, 'int') - response = self._send(http_method='GET', - location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemComment', response) - - def get_comments(self, id, from_revision=None, top=None, order=None): - """GetComments. - [Preview API] Returns specified number of comments for a work item from the specified revision - :param int id: Work item id - :param int from_revision: Revision from which comments are to be fetched - :param int top: The number of comments to return - :param str order: Ascending or descending by revision id - :rtype: :class:` ` + def create_field(self, work_item_field, project=None): + """CreateField. + [Preview API] Create a new field. + :param :class:` ` work_item_field: New field definition + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} - if id is not None: - route_values['id'] = self._serialize.url('id', id, 'int') - query_parameters = {} - if from_revision is not None: - query_parameters['fromRevision'] = self._serialize.query('from_revision', from_revision, 'int') - if top is not None: - query_parameters['$top'] = self._serialize.query('top', top, 'int') - if order is not None: - query_parameters['order'] = self._serialize.query('order', order, 'str') - response = self._send(http_method='GET', - location_id='19335ae7-22f7-4308-93d8-261f9384b7cf', - version='4.0-preview.1', + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_field, 'WorkItemField') + response = self._send(http_method='POST', + location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', + version='5.1-preview.2', route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemComments', response) + content=content) + return self._deserialize('WorkItemField', response) def delete_field(self, field_name_or_ref_name, project=None): """DeleteField. - :param str field_name_or_ref_name: + [Preview API] Deletes the field. + :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name """ route_values = {} @@ -296,15 +335,15 @@ def delete_field(self, field_name_or_ref_name, project=None): route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') self._send(http_method='DELETE', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.0', + version='5.1-preview.2', route_values=route_values) def get_field(self, field_name_or_ref_name, project=None): """GetField. - Gets information on a specific field. + [Preview API] Gets information on a specific field. :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -313,13 +352,13 @@ def get_field(self, field_name_or_ref_name, project=None): route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('WorkItemField', response) def get_fields(self, project=None, expand=None): """GetFields. - Returns information for all fields. + [Preview API] Returns information for all fields. :param str project: Project ID or project name :param str expand: Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. :rtype: [WorkItemField] @@ -332,36 +371,18 @@ def get_fields(self, project=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemField]', self._unwrap_collection(response)) - def update_field(self, work_item_field, field_name_or_ref_name, project=None): - """UpdateField. - :param :class:` ` work_item_field: - :param str field_name_or_ref_name: - :param str project: Project ID or project name - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if field_name_or_ref_name is not None: - route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') - content = self._serialize.body(work_item_field, 'WorkItemField') - self._send(http_method='PATCH', - location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', - version='4.0', - route_values=route_values, - content=content) - def create_query(self, posted_query, project, query): """CreateQuery. - Creates a query, or moves a query. - :param :class:` ` posted_query: The query to create. + [Preview API] Creates a query, or moves a query. + :param :class:` ` posted_query: The query to create. :param str project: Project ID or project name - :param str query: The parent path for the query to create. - :rtype: :class:` ` + :param str query: The parent id or path under which the query is to be created. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -371,15 +392,16 @@ def create_query(self, posted_query, project, query): content = self._serialize.body(posted_query, 'QueryHierarchyItem') response = self._send(http_method='POST', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.0', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('QueryHierarchyItem', response) def delete_query(self, project, query): """DeleteQuery. + [Preview API] Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder. :param str project: Project ID or project name - :param str query: + :param str query: ID or path of the query or folder to delete. """ route_values = {} if project is not None: @@ -388,16 +410,16 @@ def delete_query(self, project, query): route_values['query'] = self._serialize.url('query', query, 'str') self._send(http_method='DELETE', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.0', + version='5.1-preview.2', route_values=route_values) def get_queries(self, project, expand=None, depth=None, include_deleted=None): """GetQueries. - Retrieves all queries the user has access to in the current project + [Preview API] Gets the root queries and their children :param str project: Project ID or project name - :param str expand: - :param int depth: - :param bool include_deleted: + :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. + :param int depth: In the folder of queries, return child queries and folders to this depth. + :param bool include_deleted: Include deleted queries and folders :rtype: [QueryHierarchyItem] """ route_values = {} @@ -412,20 +434,20 @@ def get_queries(self, project, expand=None, depth=None, include_deleted=None): query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) def get_query(self, project, query, expand=None, depth=None, include_deleted=None): """GetQuery. - Retrieves a single query by project and either id or path + [Preview API] Retrieves an individual query and its children :param str project: Project ID or project name - :param str query: - :param str expand: - :param int depth: - :param bool include_deleted: - :rtype: :class:` ` + :param str query: ID or path of the query. + :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. + :param int depth: In the folder of queries, return child queries and folders to this depth. + :param bool include_deleted: Include deleted queries and folders + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -441,20 +463,20 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QueryHierarchyItem', response) def search_queries(self, project, filter, top=None, expand=None, include_deleted=None): """SearchQueries. - Searches all queries the user has access to in the current project + [Preview API] Searches all queries the user has access to in the current project :param str project: Project ID or project name - :param str filter: - :param int top: + :param str filter: The text to filter the queries with. + :param int top: The number of queries to return (Default is 50 and maximum is 200). :param str expand: - :param bool include_deleted: - :rtype: :class:` ` + :param bool include_deleted: Include deleted queries and folders + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -470,18 +492,19 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') response = self._send(http_method='GET', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('QueryHierarchyItemsResult', response) def update_query(self, query_update, project, query, undelete_descendants=None): """UpdateQuery. - :param :class:` ` query_update: + [Preview API] Update a query or a folder. This allows you to update, rename and move queries and folders. + :param :class:` ` query_update: The query to update. :param str project: Project ID or project name - :param str query: - :param bool undelete_descendants: - :rtype: :class:` ` + :param str query: The ID or path for the query to update. + :param bool undelete_descendants: Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -494,16 +517,34 @@ def update_query(self, query_update, project, query, undelete_descendants=None): content = self._serialize.body(query_update, 'QueryHierarchyItem') response = self._send(http_method='PATCH', location_id='a67d190c-c41f-424b-814d-0e906f659301', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('QueryHierarchyItem', response) + def get_queries_batch(self, query_get_request, project): + """GetQueriesBatch. + [Preview API] Gets a list of queries by ids (Maximum 1000) + :param :class:` ` query_get_request: + :param str project: Project ID or project name + :rtype: [QueryHierarchyItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query_get_request, 'QueryBatchGetRequest') + response = self._send(http_method='POST', + location_id='549816f9-09b0-4e75-9e81-01fbfcd07426', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) + def destroy_work_item(self, id, project=None): """DestroyWorkItem. - [Preview API] - :param int id: + [Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. + :param int id: ID of the work item to be destroyed permanently :param str project: Project ID or project name """ route_values = {} @@ -513,15 +554,15 @@ def destroy_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') self._send(http_method='DELETE', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values) def get_deleted_work_item(self, id, project=None): """GetDeletedWorkItem. - [Preview API] - :param int id: + [Preview API] Gets a deleted work item from Recycle Bin. + :param int id: ID of the work item to be returned :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -530,29 +571,14 @@ def get_deleted_work_item(self, id, project=None): route_values['id'] = self._serialize.url('id', id, 'int') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values) return self._deserialize('WorkItemDelete', response) - def get_deleted_work_item_references(self, project=None): - """GetDeletedWorkItemReferences. - [Preview API] - :param str project: Project ID or project name - :rtype: [WorkItemDeleteShallowReference] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - response = self._send(http_method='GET', - location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemDeleteShallowReference]', self._unwrap_collection(response)) - def get_deleted_work_items(self, ids, project=None): """GetDeletedWorkItems. - [Preview API] - :param [int] ids: + [Preview API] Gets the work items from the recycle bin, whose IDs have been specified in the parameters + :param [int] ids: Comma separated list of IDs of the deleted work items to be returned :param str project: Project ID or project name :rtype: [WorkItemDeleteReference] """ @@ -565,18 +591,33 @@ def get_deleted_work_items(self, ids, project=None): query_parameters['ids'] = self._serialize.query('ids', ids, 'str') response = self._send(http_method='GET', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemDeleteReference]', self._unwrap_collection(response)) + def get_deleted_work_item_shallow_references(self, project=None): + """GetDeletedWorkItemShallowReferences. + [Preview API] Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. + :param str project: Project ID or project name + :rtype: [WorkItemDeleteShallowReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('[WorkItemDeleteShallowReference]', self._unwrap_collection(response)) + def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. - [Preview API] - :param :class:` ` payload: - :param int id: + [Preview API] Restores the deleted work item from Recycle Bin. + :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false + :param int id: ID of the work item to be restored :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -586,20 +627,23 @@ def restore_work_item(self, payload, id, project=None): content = self._serialize.body(payload, 'WorkItemDeleteUpdate') response = self._send(http_method='PATCH', location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', - version='4.0-preview.1', + version='5.1-preview.2', route_values=route_values, content=content) return self._deserialize('WorkItemDelete', response) - def get_revision(self, id, revision_number, expand=None): + def get_revision(self, id, revision_number, project=None, expand=None): """GetRevision. - Returns a fully hydrated work item for the requested revision + [Preview API] Returns a fully hydrated work item for the requested revision :param int id: :param int revision_number: + :param str project: Project ID or project name :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') if revision_number is not None: @@ -609,21 +653,24 @@ def get_revision(self, id, revision_number, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) - def get_revisions(self, id, top=None, skip=None, expand=None): + def get_revisions(self, id, project=None, top=None, skip=None, expand=None): """GetRevisions. - Returns the list of fully hydrated work item revisions, paged. + [Preview API] Returns the list of fully hydrated work item revisions, paged. :param int id: + :param str project: Project ID or project name :param int top: :param int skip: :param str expand: :rtype: [WorkItem] """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -635,28 +682,17 @@ def get_revisions(self, id, top=None, skip=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItem]', self._unwrap_collection(response)) - def evaluate_rules_on_field(self, rule_engine_input): - """EvaluateRulesOnField. - Validates the fields values. - :param :class:` ` rule_engine_input: - """ - content = self._serialize.body(rule_engine_input, 'FieldsToEvaluate') - self._send(http_method='POST', - location_id='1a3a1536-dca6-4509-b9c3-dd9bb2981506', - version='4.0', - content=content) - def create_template(self, template, team_context): """CreateTemplate. [Preview API] Creates a template - :param :class:` ` template: Template contents - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` template: Template contents + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -678,7 +714,7 @@ def create_template(self, template, team_context): content = self._serialize.body(template, 'WorkItemTemplate') response = self._send(http_method='POST', location_id='6a90345f-a676-4969-afce-8e163e1d5642', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('WorkItemTemplate', response) @@ -686,7 +722,7 @@ def create_template(self, template, team_context): def get_templates(self, team_context, workitemtypename=None): """GetTemplates. [Preview API] Gets template - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str workitemtypename: Optional, When specified returns templates for given Work item type. :rtype: [WorkItemTemplateReference] """ @@ -712,7 +748,7 @@ def get_templates(self, team_context, workitemtypename=None): query_parameters['workitemtypename'] = self._serialize.query('workitemtypename', workitemtypename, 'str') response = self._send(http_method='GET', location_id='6a90345f-a676-4969-afce-8e163e1d5642', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemTemplateReference]', self._unwrap_collection(response)) @@ -720,7 +756,7 @@ def get_templates(self, team_context, workitemtypename=None): def delete_template(self, team_context, template_id): """DeleteTemplate. [Preview API] Deletes the template with given id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id """ project = None @@ -744,15 +780,15 @@ def delete_template(self, team_context, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') self._send(http_method='DELETE', location_id='fb10264a-8836-48a0-8033-1b0ccd2748d5', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) def get_template(self, team_context, template_id): """GetTemplate. [Preview API] Gets the template with specified id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -775,17 +811,17 @@ def get_template(self, team_context, template_id): route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') response = self._send(http_method='GET', location_id='fb10264a-8836-48a0-8033-1b0ccd2748d5', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('WorkItemTemplate', response) def replace_template(self, template_content, team_context, template_id): """ReplaceTemplate. [Preview API] Replace template contents - :param :class:` ` template_content: Template contents to replace with - :param :class:` ` team_context: The team context for the operation + :param :class:` ` template_content: Template contents to replace with + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -809,38 +845,44 @@ def replace_template(self, template_content, team_context, template_id): content = self._serialize.body(template_content, 'WorkItemTemplate') response = self._send(http_method='PUT', location_id='fb10264a-8836-48a0-8033-1b0ccd2748d5', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('WorkItemTemplate', response) - def get_update(self, id, update_number): + def get_update(self, id, update_number, project=None): """GetUpdate. - Returns a single update for a work item + [Preview API] Returns a single update for a work item :param int id: :param int update_number: - :rtype: :class:` ` + :param str project: Project ID or project name + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') if update_number is not None: route_values['updateNumber'] = self._serialize.url('update_number', update_number, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.0', + version='5.1-preview.3', route_values=route_values) return self._deserialize('WorkItemUpdate', response) - def get_updates(self, id, top=None, skip=None): + def get_updates(self, id, project=None, top=None, skip=None): """GetUpdates. - Returns a the deltas between work item revisions + [Preview API] Returns a the deltas between work item revisions :param int id: + :param str project: Project ID or project name :param int top: :param int skip: :rtype: [WorkItemUpdate] """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -850,19 +892,19 @@ def get_updates(self, id, top=None, skip=None): query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') response = self._send(http_method='GET', location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItemUpdate]', self._unwrap_collection(response)) def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. - Gets the results of the query. - :param :class:` ` wiql: The query containing the wiql. - :param :class:` ` team_context: The team context for the operation - :param bool time_precision: - :param int top: - :rtype: :class:` ` + [Preview API] Gets the results of the query given its WIQL. + :param :class:` ` wiql: The query containing the WIQL. + :param :class:` ` team_context: The team context for the operation + :param bool time_precision: Whether or not to use time precision. + :param int top: The max number of results to return. + :rtype: :class:` ` """ project = None team = None @@ -889,18 +931,19 @@ def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): content = self._serialize.body(wiql, 'Wiql') response = self._send(http_method='POST', location_id='1a9c53f7-f243-4447-b110-35ef023636e4', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('WorkItemQueryResult', response) - def get_query_result_count(self, id, team_context=None, time_precision=None): + def get_query_result_count(self, id, team_context=None, time_precision=None, top=None): """GetQueryResultCount. - Gets the results of the query by id. - :param str id: The query id. - :param :class:` ` team_context: The team context for the operation - :param bool time_precision: + [Preview API] Gets the results of the query given the query ID. + :param str id: The query ID. + :param :class:` ` team_context: The team context for the operation + :param bool time_precision: Whether or not to use time precision. + :param int top: The max number of results to return. :rtype: int """ project = None @@ -925,20 +968,23 @@ def get_query_result_count(self, id, team_context=None, time_precision=None): query_parameters = {} if time_precision is not None: query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='HEAD', location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('int', response) - def query_by_id(self, id, team_context=None, time_precision=None): + def query_by_id(self, id, team_context=None, time_precision=None, top=None): """QueryById. - Gets the results of the query by id. - :param str id: The query id. - :param :class:` ` team_context: The team context for the operation - :param bool time_precision: - :rtype: :class:` ` + [Preview API] Gets the results of the query given the query ID. + :param str id: The query ID. + :param :class:` ` team_context: The team context for the operation + :param bool time_precision: Whether or not to use time precision. + :param int top: The max number of results to return. + :rtype: :class:` ` """ project = None team = None @@ -962,20 +1008,22 @@ def query_by_id(self, id, team_context=None, time_precision=None): query_parameters = {} if time_precision is not None: query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') response = self._send(http_method='GET', location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemQueryResult', response) def get_work_item_icon_json(self, icon, color=None, v=None): """GetWorkItemIconJson. - [Preview API] Get a work item icon svg by icon friendly name and icon color - :param str icon: - :param str color: - :param int v: - :rtype: :class:` ` + [Preview API] Get a work item icon given the friendly name and icon color. + :param str icon: The name of the icon + :param str color: The 6-digit hex color for the icon + :param int v: The version of the icon (used only for cache invalidation) + :rtype: :class:` ` """ route_values = {} if icon is not None: @@ -987,27 +1035,27 @@ def get_work_item_icon_json(self, icon, color=None, v=None): query_parameters['v'] = self._serialize.query('v', v, 'int') response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemIcon', response) def get_work_item_icons(self): """GetWorkItemIcons. - [Preview API] Get a list of all work item icons + [Preview API] Get a list of all work item icons. :rtype: [WorkItemIcon] """ response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.0-preview.1') + version='5.1-preview.1') return self._deserialize('[WorkItemIcon]', self._unwrap_collection(response)) def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): """GetWorkItemIconSvg. - [Preview API] Get a work item icon svg by icon friendly name and icon color - :param str icon: - :param str color: - :param int v: + [Preview API] Get a work item icon given the friendly name and icon color. + :param str icon: The name of the icon + :param str color: The 6-digit hex color for the icon + :param int v: The version of the icon (used only for cache invalidation) :rtype: object """ route_values = {} @@ -1020,7 +1068,7 @@ def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): query_parameters['v'] = self._serialize.query('v', v, 'int') response = self._send(http_method='GET', location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', - version='4.0-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, accept_media_type='image/svg+xml') @@ -1030,19 +1078,51 @@ def get_work_item_icon_svg(self, icon, color=None, v=None, **kwargs): callback = None return self._client.stream_download(response, callback=callback) - def get_reporting_links(self, project=None, types=None, continuation_token=None, start_date_time=None): - """GetReportingLinks. - Get a batch of work item links + def get_work_item_icon_xaml(self, icon, color=None, v=None, **kwargs): + """GetWorkItemIconXaml. + [Preview API] Get a work item icon given the friendly name and icon color. + :param str icon: The name of the icon + :param str color: The 6-digit hex color for the icon + :param int v: The version of the icon (used only for cache invalidation) + :rtype: object + """ + route_values = {} + if icon is not None: + route_values['icon'] = self._serialize.url('icon', icon, 'str') + query_parameters = {} + if color is not None: + query_parameters['color'] = self._serialize.query('color', color, 'str') + if v is not None: + query_parameters['v'] = self._serialize.query('v', v, 'int') + response = self._send(http_method='GET', + location_id='4e1eb4a5-1970-4228-a682-ec48eb2dca30', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='image/xaml+xml') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_reporting_links_by_link_type(self, project=None, link_types=None, types=None, continuation_token=None, start_date_time=None): + """GetReportingLinksByLinkType. + [Preview API] Get a batch of work item links :param str project: Project ID or project name + :param [str] link_types: A list of types to filter the results to specific link types. Omit this parameter to get work item links of all link types. :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. :param str continuation_token: Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. :param datetime start_date_time: Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} + if link_types is not None: + link_types = ",".join(link_types) + query_parameters['linkTypes'] = self._serialize.query('link_types', link_types, 'str') if types is not None: types = ",".join(types) query_parameters['types'] = self._serialize.query('types', types, 'str') @@ -1052,39 +1132,39 @@ def get_reporting_links(self, project=None, types=None, continuation_token=None, query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') response = self._send(http_method='GET', location_id='b5b5b6d0-0308-40a1-b3f4-b9bb3c66878f', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReportingWorkItemLinksBatch', response) def get_relation_type(self, relation): """GetRelationType. - Gets the work item relation types. - :param str relation: - :rtype: :class:` ` + [Preview API] Gets the work item relation type definition. + :param str relation: The relation name + :rtype: :class:` ` """ route_values = {} if relation is not None: route_values['relation'] = self._serialize.url('relation', relation, 'str') response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('WorkItemRelationType', response) def get_relation_types(self): """GetRelationTypes. - Gets the work item relation types. + [Preview API] Gets the work item relation types. :rtype: [WorkItemRelationType] """ response = self._send(http_method='GET', location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', - version='4.0') + version='5.1-preview.2') return self._deserialize('[WorkItemRelationType]', self._unwrap_collection(response)) - def read_reporting_revisions_get(self, project=None, fields=None, types=None, continuation_token=None, start_date_time=None, include_identity_ref=None, include_deleted=None, include_tag_ref=None, include_latest_only=None, expand=None, include_discussion_changes_only=None): + def read_reporting_revisions_get(self, project=None, fields=None, types=None, continuation_token=None, start_date_time=None, include_identity_ref=None, include_deleted=None, include_tag_ref=None, include_latest_only=None, expand=None, include_discussion_changes_only=None, max_page_size=None): """ReadReportingRevisionsGet. - Get a batch of work item revisions with the option of including deleted items + [Preview API] Get a batch of work item revisions with the option of including deleted items :param str project: Project ID or project name :param [str] fields: A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. @@ -1096,7 +1176,8 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co :param bool include_latest_only: Return only the latest revisions of work items, skipping all historical revisions :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed - :rtype: :class:` ` + :param int max_page_size: The maximum number of results to return in this batch + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1124,22 +1205,24 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') if include_discussion_changes_only is not None: query_parameters['includeDiscussionChangesOnly'] = self._serialize.query('include_discussion_changes_only', include_discussion_changes_only, 'bool') + if max_page_size is not None: + query_parameters['$maxPageSize'] = self._serialize.query('max_page_size', max_page_size, 'int') response = self._send(http_method='GET', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) return self._deserialize('ReportingWorkItemRevisionsBatch', response) def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): """ReadReportingRevisionsPost. - Get a batch of work item revisions - :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format + [Preview API] Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. + :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1154,19 +1237,88 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token content = self._serialize.body(filter, 'ReportingWorkItemRevisionsFilter') response = self._send(http_method='POST', location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', - version='4.0', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters, content=content) return self._deserialize('ReportingWorkItemRevisionsBatch', response) - def delete_work_item(self, id, destroy=None): + def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None, expand=None): + """CreateWorkItem. + [Preview API] Creates a single work item. + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param str project: Project ID or project name + :param str type: The work item type of the work item to create + :param bool validate_only: Indicate if you only want to validate the changes without saving the work item + :param bool bypass_rules: Do not enforce the work item type rules on this update + :param bool suppress_notifications: Do not fire any notifications for this change + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if validate_only is not None: + query_parameters['validateOnly'] = self._serialize.query('validate_only', validate_only, 'bool') + if bypass_rules is not None: + query_parameters['bypassRules'] = self._serialize.query('bypass_rules', bypass_rules, 'bool') + if suppress_notifications is not None: + query_parameters['suppressNotifications'] = self._serialize.query('suppress_notifications', suppress_notifications, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='POST', + location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('WorkItem', response) + + def get_work_item_template(self, project, type, fields=None, as_of=None, expand=None): + """GetWorkItemTemplate. + [Preview API] Returns a single work item from a template. + :param str project: Project ID or project name + :param str type: The work item type name + :param str fields: Comma-separated list of requested fields + :param datetime as_of: AsOf UTC date time string + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if fields is not None: + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + if as_of is not None: + query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItem', response) + + def delete_work_item(self, id, project=None, destroy=None): """DeleteWorkItem. - :param int id: - :param bool destroy: - :rtype: :class:` ` + [Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. + :param int id: ID of the work item to be deleted + :param str project: Project ID or project name + :param bool destroy: Optional parameter, if set to true, the work item is deleted permanently + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -1174,21 +1326,24 @@ def delete_work_item(self, id, destroy=None): query_parameters['destroy'] = self._serialize.query('destroy', destroy, 'bool') response = self._send(http_method='DELETE', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItemDelete', response) - def get_work_item(self, id, fields=None, as_of=None, expand=None): + def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): """GetWorkItem. - Returns a single work item - :param int id: - :param [str] fields: - :param datetime as_of: - :param str expand: - :rtype: :class:` ` + [Preview API] Returns a single work item. + :param int id: The work item id + :param str project: Project ID or project name + :param [str] fields: Comma-separated list of requested fields + :param datetime as_of: AsOf UTC date time string + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -1201,21 +1356,25 @@ def get_work_item(self, id, fields=None, as_of=None, expand=None): query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) return self._deserialize('WorkItem', response) - def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy=None): + def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None, error_policy=None): """GetWorkItems. - Returns a list of work items - :param [int] ids: - :param [str] fields: - :param datetime as_of: - :param str expand: - :param str error_policy: + [Preview API] Returns a list of work items (Maximum 200) + :param [int] ids: The comma-separated list of requested work item ids. (Maximum 200 ids allowed). + :param str project: Project ID or project name + :param [str] fields: Comma-separated list of requested fields + :param datetime as_of: AsOf UTC date time string + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :param str error_policy: The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}. :rtype: [WorkItem] """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') query_parameters = {} if ids is not None: ids = ",".join(map(str, ids)) @@ -1231,21 +1390,26 @@ def get_work_items(self, ids, fields=None, as_of=None, expand=None, error_policy query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') response = self._send(http_method='GET', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.0', + version='5.1-preview.3', + route_values=route_values, query_parameters=query_parameters) return self._deserialize('[WorkItem]', self._unwrap_collection(response)) - def update_work_item(self, document, id, validate_only=None, bypass_rules=None, suppress_notifications=None): + def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None, expand=None): """UpdateWorkItem. - Updates a single work item - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update + [Preview API] Updates a single work item. + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update + :param str project: Project ID or project name :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :rtype: :class:` ` """ route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') if id is not None: route_values['id'] = self._serialize.url('id', id, 'int') query_parameters = {} @@ -1255,81 +1419,58 @@ def update_work_item(self, document, id, validate_only=None, bypass_rules=None, query_parameters['bypassRules'] = self._serialize.query('bypass_rules', bypass_rules, 'bool') if suppress_notifications is not None: query_parameters['suppressNotifications'] = self._serialize.query('suppress_notifications', suppress_notifications, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') content = self._serialize.body(document, '[JsonPatchOperation]') response = self._send(http_method='PATCH', location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', - version='4.0', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters, content=content, media_type='application/json-patch+json') return self._deserialize('WorkItem', response) - def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): - """CreateWorkItem. - Creates a single work item - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + def get_work_items_batch(self, work_item_get_request, project=None): + """GetWorkItemsBatch. + [Preview API] Gets work items for a list of work item ids (Maximum 200) + :param :class:` ` work_item_get_request: :param str project: Project ID or project name - :param str type: The work item type of the work item to create - :param bool validate_only: Indicate if you only want to validate the changes without saving the work item - :param bool bypass_rules: Do not enforce the work item type rules on this update - :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: [WorkItem] """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - query_parameters = {} - if validate_only is not None: - query_parameters['validateOnly'] = self._serialize.query('validate_only', validate_only, 'bool') - if bypass_rules is not None: - query_parameters['bypassRules'] = self._serialize.query('bypass_rules', bypass_rules, 'bool') - if suppress_notifications is not None: - query_parameters['suppressNotifications'] = self._serialize.query('suppress_notifications', suppress_notifications, 'bool') - content = self._serialize.body(document, '[JsonPatchOperation]') + content = self._serialize.body(work_item_get_request, 'WorkItemBatchGetRequest') response = self._send(http_method='POST', - location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.0', + location_id='908509b6-4248-4475-a1cd-829139ba419f', + version='5.1-preview.1', route_values=route_values, - query_parameters=query_parameters, - content=content, - media_type='application/json-patch+json') - return self._deserialize('WorkItem', response) + content=content) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) - def get_work_item_template(self, project, type, fields=None, as_of=None, expand=None): - """GetWorkItemTemplate. - Returns a single work item from a template - :param str project: Project ID or project name - :param str type: - :param str fields: - :param datetime as_of: - :param str expand: - :rtype: :class:` ` + def get_work_item_next_states_on_checkin_action(self, ids, action=None): + """GetWorkItemNextStatesOnCheckinAction. + [Preview API] Returns the next state on the given work item IDs. + :param [int] ids: list of work item ids + :param str action: possible actions. Currently only supports checkin + :rtype: [WorkItemNextStateOnTransition] """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') query_parameters = {} - if fields is not None: - query_parameters['fields'] = self._serialize.query('fields', fields, 'str') - if as_of is not None: - query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if action is not None: + query_parameters['action'] = self._serialize.query('action', action, 'str') response = self._send(http_method='GET', - location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', - version='4.0', - route_values=route_values, + location_id='afae844b-e2f6-44c2-8053-17b3bb936a40', + version='5.1-preview.1', query_parameters=query_parameters) - return self._deserialize('WorkItem', response) + return self._deserialize('[WorkItemNextStateOnTransition]', self._unwrap_collection(response)) def get_work_item_type_categories(self, project): """GetWorkItemTypeCategories. - Returns a the deltas between work item revisions + [Preview API] Get all work item type categories. :param str project: Project ID or project name :rtype: [WorkItemTypeCategory] """ @@ -1338,16 +1479,16 @@ def get_work_item_type_categories(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[WorkItemTypeCategory]', self._unwrap_collection(response)) def get_work_item_type_category(self, project, category): """GetWorkItemTypeCategory. - Returns a the deltas between work item revisions + [Preview API] Get specific work item type category by name. :param str project: Project ID or project name - :param str category: - :rtype: :class:` ` + :param str category: The category name + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1356,16 +1497,16 @@ def get_work_item_type_category(self, project, category): route_values['category'] = self._serialize.url('category', category, 'str') response = self._send(http_method='GET', location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('WorkItemTypeCategory', response) def get_work_item_type(self, project, type): """GetWorkItemType. - Returns a the deltas between work item revisions + [Preview API] Returns a work item type definition. :param str project: Project ID or project name - :param str type: - :rtype: :class:` ` + :param str type: Work item type name + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1374,13 +1515,13 @@ def get_work_item_type(self, project, type): route_values['type'] = self._serialize.url('type', type, 'str') response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('WorkItemType', response) def get_work_item_types(self, project): """GetWorkItemTypes. - Returns a the deltas between work item revisions + [Preview API] Returns the list of work item types :param str project: Project ID or project name :rtype: [WorkItemType] """ @@ -1389,87 +1530,74 @@ def get_work_item_types(self, project): route_values['project'] = self._serialize.url('project', project, 'str') response = self._send(http_method='GET', location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.0', + version='5.1-preview.2', route_values=route_values) return self._deserialize('[WorkItemType]', self._unwrap_collection(response)) - def get_dependent_fields(self, project, type, field): - """GetDependentFields. - Returns the dependent fields for the corresponding workitem type and fieldname + def get_work_item_type_fields_with_references(self, project, type, expand=None): + """GetWorkItemTypeFieldsWithReferences. + [Preview API] Get a list of fields for a work item type with detailed references. :param str project: Project ID or project name - :param str type: - :param str field: - :rtype: :class:` ` + :param str type: Work item type. + :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. + :rtype: [WorkItemTypeFieldWithReferences] """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') if type is not None: route_values['type'] = self._serialize.url('type', type, 'str') - if field is not None: - route_values['field'] = self._serialize.url('field', field, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', - version='4.0', - route_values=route_values) - return self._deserialize('FieldDependentRule', response) - - def get_work_item_type_states(self, project, type): - """GetWorkItemTypeStates. - [Preview API] Returns the state names and colors for a work item type - :param str project: Project ID or project name - :param str type: - :rtype: [WorkItemStateColor] - """ - route_values = {} - if project is not None: - route_values['project'] = self._serialize.url('project', project, 'str') - if type is not None: - route_values['type'] = self._serialize.url('type', type, 'str') - response = self._send(http_method='GET', - location_id='7c9d7a76-4a09-43e8-b5df-bd792f4ac6aa', - version='4.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemStateColor]', self._unwrap_collection(response)) + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeFieldWithReferences]', self._unwrap_collection(response)) - def export_work_item_type_definition(self, project=None, type=None, export_global_lists=None): - """ExportWorkItemTypeDefinition. - Export work item type + def get_work_item_type_field_with_references(self, project, type, field, expand=None): + """GetWorkItemTypeFieldWithReferences. + [Preview API] Get a field for a work item type with detailed references. :param str project: Project ID or project name - :param str type: - :param bool export_global_lists: - :rtype: :class:` ` + :param str type: Work item type. + :param str field: + :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. + :rtype: :class:` ` """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') if type is not None: route_values['type'] = self._serialize.url('type', type, 'str') + if field is not None: + route_values['field'] = self._serialize.url('field', field, 'str') query_parameters = {} - if export_global_lists is not None: - query_parameters['exportGlobalLists'] = self._serialize.query('export_global_lists', export_global_lists, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', - location_id='8637ac8b-5eb6-4f90-b3f7-4f2ff576a459', - version='4.0', + location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', + version='5.1-preview.3', route_values=route_values, query_parameters=query_parameters) - return self._deserialize('WorkItemTypeTemplate', response) + return self._deserialize('WorkItemTypeFieldWithReferences', response) - def update_work_item_type_definition(self, update_model, project=None): - """UpdateWorkItemTypeDefinition. - Add/updates a work item type - :param :class:` ` update_model: + def get_work_item_type_states(self, project, type): + """GetWorkItemTypeStates. + [Preview API] Returns the state names and colors for a work item type. :param str project: Project ID or project name - :rtype: :class:` ` + :param str type: The state name + :rtype: [WorkItemStateColor] """ route_values = {} if project is not None: route_values['project'] = self._serialize.url('project', project, 'str') - content = self._serialize.body(update_model, 'WorkItemTypeTemplateUpdateModel') - response = self._send(http_method='POST', - location_id='8637ac8b-5eb6-4f90-b3f7-4f2ff576a459', - version='4.0', - route_values=route_values, - content=content) - return self._deserialize('ProvisioningResult', response) + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='7c9d7a76-4a09-43e8-b5df-bd792f4ac6aa', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemStateColor]', self._unwrap_collection(response)) diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py new file mode 100644 index 00000000..fce47aec --- /dev/null +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py @@ -0,0 +1,24 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GraphSubjectBase', + 'IdentityRef', + 'ReferenceLinks', + 'WorkItemCommentCreateRequest', + 'WorkItemCommentReactionResponse', + 'WorkItemCommentResponse', + 'WorkItemCommentsReportingResponse', + 'WorkItemCommentsResponse', + 'WorkItemCommentUpdateRequest', + 'WorkItemCommentVersionResponse', + 'WorkItemTrackingResource', + 'WorkItemTrackingResourceReference', +] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py new file mode 100644 index 00000000..2ef2f44d --- /dev/null +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py @@ -0,0 +1,433 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str + :param id: + :type id: str + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary + :type image_url: str + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary + :type inactive: bool + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) + :type is_aad_identity: bool + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) + :type is_container: bool + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef + :type profile_url: str + :param unique_name: Deprecated - use Domain+PrincipalName instead + :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 ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class WorkItemCommentCreateRequest(Model): + """WorkItemCommentCreateRequest. + + :param text: The text of the comment. + :type text: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, text=None): + super(WorkItemCommentCreateRequest, self).__init__() + self.text = text + + +class WorkItemCommentUpdateRequest(Model): + """WorkItemCommentUpdateRequest. + + :param text: The updated text of the comment. + :type text: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'} + } + + def __init__(self, text=None): + super(WorkItemCommentUpdateRequest, self).__init__() + self.text = text + + +class WorkItemTrackingResourceReference(Model): + """WorkItemTrackingResourceReference. + + :param url: + :type url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, url=None): + super(WorkItemTrackingResourceReference, self).__init__() + self.url = url + + +class WorkItemTrackingResource(WorkItemTrackingResourceReference): + """WorkItemTrackingResource. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'} + } + + def __init__(self, url=None, _links=None): + super(WorkItemTrackingResource, self).__init__(url=url) + self._links = _links + + +class WorkItemCommentReactionResponse(WorkItemTrackingResource): + """WorkItemCommentReactionResponse. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comment_id: The id of the comment this reaction belongs to. + :type comment_id: int + :param count: Total number of reactions for the EngagementType. + :type count: int + :param is_current_user_engaged: Flag to indicate if the current user has engaged on this particular EngagementType (e.g. if they liked the associated comment). + :type is_current_user_engaged: bool + :param type: Type of the reaction. + :type type: object + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment_id': {'key': 'commentId', 'type': 'int'}, + 'count': {'key': 'count', 'type': 'int'}, + 'is_current_user_engaged': {'key': 'isCurrentUserEngaged', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, url=None, _links=None, comment_id=None, count=None, is_current_user_engaged=None, type=None): + super(WorkItemCommentReactionResponse, self).__init__(url=url, _links=_links) + self.comment_id = comment_id + self.count = count + self.is_current_user_engaged = is_current_user_engaged + self.type = type + + +class WorkItemCommentResponse(WorkItemTrackingResource): + """WorkItemCommentResponse. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comment_id: The id assigned to the comment. + :type comment_id: int + :param created_by: IdentityRef of the creator of the comment. + :type created_by: :class:`IdentityRef ` + :param created_date: The creation date of the comment. + :type created_date: datetime + :param created_on_behalf_date: Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. + :type created_on_behalf_date: datetime + :param created_on_behalf_of: Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. + :type created_on_behalf_of: :class:`IdentityRef ` + :param is_deleted: Indicates if the comment has been deleted. + :type is_deleted: bool + :param modified_by: IdentityRef of the user who last modified the comment. + :type modified_by: :class:`IdentityRef ` + :param modified_date: The last modification date of the comment. + :type modified_date: datetime + :param reactions: The reactions of the comment. + :type reactions: list of :class:`WorkItemCommentReactionResponse ` + :param text: The text of the comment. + :type text: str + :param version: The current version of the comment. + :type version: int + :param work_item_id: The id of the work item this comment belongs to. + :type work_item_id: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment_id': {'key': 'commentId', 'type': 'int'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'created_on_behalf_date': {'key': 'createdOnBehalfDate', 'type': 'iso-8601'}, + 'created_on_behalf_of': {'key': 'createdOnBehalfOf', 'type': 'IdentityRef'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'reactions': {'key': 'reactions', 'type': '[WorkItemCommentReactionResponse]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + 'work_item_id': {'key': 'workItemId', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, comment_id=None, created_by=None, created_date=None, created_on_behalf_date=None, created_on_behalf_of=None, is_deleted=None, modified_by=None, modified_date=None, reactions=None, text=None, version=None, work_item_id=None): + super(WorkItemCommentResponse, self).__init__(url=url, _links=_links) + self.comment_id = comment_id + self.created_by = created_by + self.created_date = created_date + self.created_on_behalf_date = created_on_behalf_date + self.created_on_behalf_of = created_on_behalf_of + self.is_deleted = is_deleted + self.modified_by = modified_by + self.modified_date = modified_date + self.reactions = reactions + self.text = text + self.version = version + self.work_item_id = work_item_id + + +class WorkItemCommentsResponse(WorkItemTrackingResource): + """WorkItemCommentsResponse. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comments: List of comments in the current batch. + :type comments: list of :class:`WorkItemCommentResponse ` + :param continuation_token: A string token that can be used to retrieving next page of comments if available. Otherwise null. + :type continuation_token: str + :param count: The count of comments in the current batch. + :type count: int + :param next_page: Uri to the next page of comments if it is available. Otherwise null. + :type next_page: str + :param total_count: Total count of comments on a work item. + :type total_count: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[WorkItemCommentResponse]'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'next_page': {'key': 'nextPage', 'type': 'str'}, + 'total_count': {'key': 'totalCount', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, comments=None, continuation_token=None, count=None, next_page=None, total_count=None): + super(WorkItemCommentsResponse, self).__init__(url=url, _links=_links) + self.comments = comments + self.continuation_token = continuation_token + self.count = count + self.next_page = next_page + self.total_count = total_count + + +class WorkItemCommentVersionResponse(WorkItemTrackingResource): + """WorkItemCommentVersionResponse. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comment_id: The id assigned to the comment. + :type comment_id: int + :param created_by: IdentityRef of the creator of the comment. + :type created_by: :class:`IdentityRef ` + :param created_date: The creation date of the comment. + :type created_date: datetime + :param created_on_behalf_date: Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. + :type created_on_behalf_date: datetime + :param created_on_behalf_of: Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. + :type created_on_behalf_of: :class:`IdentityRef ` + :param is_deleted: Indicates if the comment has been deleted at this version. + :type is_deleted: bool + :param modified_by: IdentityRef of the user who modified the comment at this version. + :type modified_by: :class:`IdentityRef ` + :param modified_date: The modification date of the comment for this version. + :type modified_date: datetime + :param rendered_text: The rendered content of the comment at this version. + :type rendered_text: str + :param text: The text of the comment at this version. + :type text: str + :param version: The version number. + :type version: int + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comment_id': {'key': 'commentId', 'type': 'int'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_date': {'key': 'createdDate', 'type': 'iso-8601'}, + 'created_on_behalf_date': {'key': 'createdOnBehalfDate', 'type': 'iso-8601'}, + 'created_on_behalf_of': {'key': 'createdOnBehalfOf', 'type': 'IdentityRef'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'}, + 'rendered_text': {'key': 'renderedText', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'} + } + + def __init__(self, url=None, _links=None, comment_id=None, created_by=None, created_date=None, created_on_behalf_date=None, created_on_behalf_of=None, is_deleted=None, modified_by=None, modified_date=None, rendered_text=None, text=None, version=None): + super(WorkItemCommentVersionResponse, self).__init__(url=url, _links=_links) + self.comment_id = comment_id + self.created_by = created_by + self.created_date = created_date + self.created_on_behalf_date = created_on_behalf_date + self.created_on_behalf_of = created_on_behalf_of + self.is_deleted = is_deleted + self.modified_by = modified_by + self.modified_date = modified_date + self.rendered_text = rendered_text + self.text = text + self.version = version + + +class WorkItemCommentsReportingResponse(WorkItemCommentsResponse): + """WorkItemCommentsReportingResponse. + + :param url: + :type url: str + :param _links: Link references to related REST resources. + :type _links: :class:`ReferenceLinks ` + :param comments: List of comments in the current batch. + :type comments: list of :class:`WorkItemCommentResponse ` + :param continuation_token: A string token that can be used to retrieving next page of comments if available. Otherwise null. + :type continuation_token: str + :param count: The count of comments in the current batch. + :type count: int + :param next_page: Uri to the next page of comments if it is available. Otherwise null. + :type next_page: str + :param total_count: Total count of comments on a work item. + :type total_count: int + :param is_last_batch: Indicates if this is the last batch. + :type is_last_batch: bool + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'comments': {'key': 'comments', 'type': '[WorkItemCommentResponse]'}, + 'continuation_token': {'key': 'continuationToken', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'next_page': {'key': 'nextPage', 'type': 'str'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, + 'is_last_batch': {'key': 'isLastBatch', 'type': 'bool'} + } + + def __init__(self, url=None, _links=None, comments=None, continuation_token=None, count=None, next_page=None, total_count=None, is_last_batch=None): + super(WorkItemCommentsReportingResponse, self).__init__(url=url, _links=_links, comments=comments, continuation_token=continuation_token, count=count, next_page=next_page, total_count=total_count) + self.is_last_batch = is_last_batch + + +__all__ = [ + 'GraphSubjectBase', + 'IdentityRef', + 'ReferenceLinks', + 'WorkItemCommentCreateRequest', + 'WorkItemCommentUpdateRequest', + 'WorkItemTrackingResourceReference', + 'WorkItemTrackingResource', + 'WorkItemCommentReactionResponse', + 'WorkItemCommentResponse', + 'WorkItemCommentsResponse', + 'WorkItemCommentVersionResponse', + 'WorkItemCommentsReportingResponse', +] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py new file mode 100644 index 00000000..8c8297cc --- /dev/null +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py @@ -0,0 +1,246 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class WorkItemTrackingCommentsClient(Client): + """WorkItemTrackingComments + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingCommentsClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' + + def add_comment(self, request, project, work_item_id): + """AddComment. + [Preview API] Add a comment on a work item. + :param :class:` ` request: Comment create request. + :param str project: Project ID or project name + :param int work_item_id: Id of a work item. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + content = self._serialize.body(request, 'WorkItemCommentCreateRequest') + response = self._send(http_method='POST', + location_id='608aac0a-32e1-4493-a863-b9cf4566d257', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemCommentResponse', response) + + def delete_comment(self, project, work_item_id, comment_id): + """DeleteComment. + [Preview API] Delete a comment on a work item. + :param str project: Project ID or project name + :param int work_item_id: Id of a work item. + :param int comment_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + response = self._send(http_method='DELETE', + location_id='608aac0a-32e1-4493-a863-b9cf4566d257', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemCommentResponse', response) + + def get_comment(self, project, work_item_id, comment_id, expand=None): + """GetComment. + [Preview API] Returns a work item comment. + :param str project: Project ID or project name + :param int work_item_id: Id of a work item to get the comment. + :param int comment_id: Id of the comment to return. + :param str expand: Specifies the additional data retrieval options for work item comments. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='608aac0a-32e1-4493-a863-b9cf4566d257', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemCommentResponse', response) + + def get_comments(self, project, work_item_id, top=None, continuation_token=None, expand=None): + """GetComments. + [Preview API] Returns a list of work item comments, pageable. + :param str project: Project ID or project name + :param int work_item_id: Id of a work item to get comments for. + :param int top: Max number of comments to return. + :param str continuation_token: Used to query for the next page of comments. + :param str expand: Specifies the additional data retrieval options for work item comments. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='608aac0a-32e1-4493-a863-b9cf4566d257', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemCommentsResponse', response) + + def get_comments_batch(self, project, work_item_id, ids, expand=None): + """GetCommentsBatch. + [Preview API] Returns a list of work item comments by ids. + :param str project: Project ID or project name + :param int work_item_id: Id of a work item to get comments for. + :param [int] ids: Comma-separated list of comment ids to return. + :param str expand: Specifies the additional data retrieval options for work item comments. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + query_parameters = {} + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='608aac0a-32e1-4493-a863-b9cf4566d257', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemCommentsResponse', response) + + def update_comment(self, request, project, work_item_id, comment_id): + """UpdateComment. + [Preview API] Update a comment on a work item. + :param :class:` ` request: Comment update request. + :param str project: Project ID or project name + :param int work_item_id: Id of a work item. + :param int comment_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + content = self._serialize.body(request, 'WorkItemCommentUpdateRequest') + response = self._send(http_method='PATCH', + location_id='608aac0a-32e1-4493-a863-b9cf4566d257', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemCommentResponse', response) + + def read_reporting_comments(self, project, continuation_token=None, top=None, expand=None): + """ReadReportingComments. + [Preview API] + :param str project: Project ID or project name + :param str continuation_token: + :param int top: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='370b8590-9562-42be-b0d8-ac06668fc5dc', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemCommentsReportingResponse', response) + + def get_comment_version(self, project, work_item_id, comment_id, version): + """GetCommentVersion. + [Preview API] + :param str project: Project ID or project name + :param int work_item_id: + :param int comment_id: + :param int version: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + if version is not None: + route_values['version'] = self._serialize.url('version', version, 'int') + response = self._send(http_method='GET', + location_id='49e03b34-3be0-42e3-8a5d-e8dfb88ac954', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemCommentVersionResponse', response) + + def get_comment_versions(self, project, work_item_id, comment_id): + """GetCommentVersions. + [Preview API] + :param str project: Project ID or project name + :param int work_item_id: + :param int comment_id: + :rtype: [WorkItemCommentVersionResponse] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if work_item_id is not None: + route_values['workItemId'] = self._serialize.url('work_item_id', work_item_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + response = self._send(http_method='GET', + location_id='49e03b34-3be0-42e3-8a5d-e8dfb88ac954', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemCommentVersionResponse]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/__init__.py similarity index 58% rename from azure-devops/azure/devops/v4_0/work_item_tracking_process/__init__.py rename to azure-devops/azure/devops/v5_1/work_item_tracking_process/__init__.py index e7862001..438d8053 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process/__init__.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -9,25 +9,46 @@ from .models import * __all__ = [ + 'AddProcessWorkItemTypeFieldRequest', 'Control', 'CreateProcessModel', + 'CreateProcessRuleRequest', + 'CreateProcessWorkItemTypeRequest', 'Extension', 'FieldModel', 'FieldRuleModel', 'FormLayout', 'Group', + 'HideStateModel', 'Page', + 'PickList', + 'PickListMetadata', + 'ProcessBehavior', + 'ProcessBehaviorCreateRequest', + 'ProcessBehaviorField', + 'ProcessBehaviorReference', + 'ProcessBehaviorUpdateRequest', + 'ProcessInfo', 'ProcessModel', 'ProcessProperties', + 'ProcessRule', + 'ProcessWorkItemType', + 'ProcessWorkItemTypeField', 'ProjectReference', + 'RuleAction', 'RuleActionModel', + 'RuleCondition', 'RuleConditionModel', 'Section', 'UpdateProcessModel', + 'UpdateProcessRuleRequest', + 'UpdateProcessWorkItemTypeFieldRequest', + 'UpdateProcessWorkItemTypeRequest', 'WitContribution', 'WorkItemBehavior', 'WorkItemBehaviorField', 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', 'WorkItemStateResultModel', 'WorkItemTypeBehavior', 'WorkItemTypeModel', diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py new file mode 100644 index 00000000..3b57d019 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py @@ -0,0 +1,1487 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AddProcessWorkItemTypeFieldRequest(Model): + """AddProcessWorkItemTypeFieldRequest. + + :param allow_groups: Allow setting field value to a group identity. Only applies to identity fields. + :type allow_groups: bool + :param default_value: The default value of the field. + :type default_value: object + :param read_only: If true the field cannot be edited. + :type read_only: bool + :param reference_name: Reference name of the field. + :type reference_name: str + :param required: If true the field cannot be empty. + :type required: bool + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'} + } + + def __init__(self, allow_groups=None, default_value=None, read_only=None, reference_name=None, required=None): + super(AddProcessWorkItemTypeFieldRequest, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.read_only = read_only + self.reference_name = reference_name + self.required = required + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited. from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field. + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: Order in which the control should appear in its group. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden . by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class CreateProcessModel(Model): + """CreateProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param parent_process_type_id: The ID of the parent process + :type parent_process_type_id: str + :param reference_name: Reference name of process being created. If not specified, server will assign a unique reference name + :type reference_name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, description=None, name=None, parent_process_type_id=None, reference_name=None): + super(CreateProcessModel, self).__init__() + self.description = description + self.name = name + self.parent_process_type_id = parent_process_type_id + self.reference_name = reference_name + + +class CreateProcessRuleRequest(Model): + """CreateProcessRuleRequest. + + :param actions: List of actions to take when the rule is triggered. + :type actions: list of :class:`RuleAction ` + :param conditions: List of conditions when the rule should be triggered. + :type conditions: list of :class:`RuleCondition ` + :param is_disabled: Indicates if the rule is disabled. + :type is_disabled: bool + :param name: Name for the rule. + :type name: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleAction]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleCondition]'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, actions=None, conditions=None, is_disabled=None, name=None): + super(CreateProcessRuleRequest, self).__init__() + self.actions = actions + self.conditions = conditions + self.is_disabled = is_disabled + self.name = name + + +class CreateProcessWorkItemTypeRequest(Model): + """CreateProcessWorkItemTypeRequest. + + :param color: Color hexadecimal code to represent the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon to represent the work item type + :type icon: str + :param inherits_from: Parent work item type for work item type + :type inherits_from: str + :param is_disabled: True if the work item type need to be disabled + :type is_disabled: bool + :param name: Name of work item type + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'inherits_from': {'key': 'inheritsFrom', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, description=None, icon=None, inherits_from=None, is_disabled=None, name=None): + super(CreateProcessWorkItemTypeRequest, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.inherits_from = inherits_from + self.is_disabled = is_disabled + self.name = name + + +class Extension(Model): + """Extension. + + :param id: Id of the extension + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: + :type description: str + :param id: + :type id: str + :param is_identity: + :type is_identity: bool + :param name: + :type name: str + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_identity': {'key': 'isIdentity', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, is_identity=None, name=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.is_identity = is_identity + self.name = name + self.type = type + self.url = url + + +class FieldRuleModel(Model): + """FieldRuleModel. + + :param actions: + :type actions: list of :class:`RuleActionModel ` + :param conditions: + :type conditions: list of :class:`RuleConditionModel ` + :param friendly_name: + :type friendly_name: str + :param id: + :type id: str + :param is_disabled: + :type is_disabled: bool + :param is_system: + :type is_system: bool + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleActionModel]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleConditionModel]'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_system': {'key': 'isSystem', 'type': 'bool'} + } + + def __init__(self, actions=None, conditions=None, friendly_name=None, id=None, is_disabled=None, is_system=None): + super(FieldRuleModel, self).__init__() + self.actions = actions + self.conditions = conditions + self.friendly_name = friendly_name + self.id = id + self.is_disabled = is_disabled + self.is_system = is_system + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list. + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class PickListMetadata(Model): + """PickListMetadata. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Indicates whether items outside of suggested list are allowed + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: DataType of picklist + :type type: str + :param url: Url of the picklist + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadata, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url + + +class ProcessBehavior(Model): + """ProcessBehavior. + + :param color: Color. + :type color: str + :param customization: Indicates the type of customization on this work item. System behaviors are inherited from parent process but not modified. Inherited behaviors are modified modified behaviors that were inherited from parent process. Custom behaviors are behaviors created by user in current process. + :type customization: object + :param description: . Description + :type description: str + :param fields: Process Behavior Fields. + :type fields: list of :class:`ProcessBehaviorField ` + :param inherits: Parent behavior reference. + :type inherits: :class:`ProcessBehaviorReference ` + :param name: Behavior Name. + :type name: str + :param rank: Rank of the behavior + :type rank: int + :param reference_name: Behavior Id + :type reference_name: str + :param url: Url of the behavior. + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'customization': {'key': 'customization', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[ProcessBehaviorField]'}, + 'inherits': {'key': 'inherits', 'type': 'ProcessBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, customization=None, description=None, fields=None, inherits=None, name=None, rank=None, reference_name=None, url=None): + super(ProcessBehavior, self).__init__() + self.color = color + self.customization = customization + self.description = description + self.fields = fields + self.inherits = inherits + self.name = name + self.rank = rank + self.reference_name = reference_name + self.url = url + + +class ProcessBehaviorCreateRequest(Model): + """ProcessBehaviorCreateRequest. + + :param color: Color. + :type color: str + :param inherits: Parent behavior id. + :type inherits: str + :param name: Name of the behavior. + :type name: str + :param reference_name: ReferenceName is optional, if not specified will be auto-generated. + :type reference_name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'} + } + + def __init__(self, color=None, inherits=None, name=None, reference_name=None): + super(ProcessBehaviorCreateRequest, self).__init__() + self.color = color + self.inherits = inherits + self.name = name + self.reference_name = reference_name + + +class ProcessBehaviorField(Model): + """ProcessBehaviorField. + + :param name: Name of the field. + :type name: str + :param reference_name: Reference name of the field. + :type reference_name: str + :param url: Url to field. + :type url: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, name=None, reference_name=None, url=None): + super(ProcessBehaviorField, self).__init__() + self.name = name + self.reference_name = reference_name + self.url = url + + +class ProcessBehaviorReference(Model): + """ProcessBehaviorReference. + + :param behavior_ref_name: Id of a Behavior. + :type behavior_ref_name: str + :param url: Url to behavior. + :type url: str + """ + + _attribute_map = { + 'behavior_ref_name': {'key': 'behaviorRefName', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_ref_name=None, url=None): + super(ProcessBehaviorReference, self).__init__() + self.behavior_ref_name = behavior_ref_name + self.url = url + + +class ProcessBehaviorUpdateRequest(Model): + """ProcessBehaviorUpdateRequest. + + :param color: Color. + :type color: str + :param name: Behavior Name. + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(ProcessBehaviorUpdateRequest, self).__init__() + self.color = color + self.name = name + + +class ProcessInfo(Model): + """ProcessInfo. + + :param customization_type: Indicates the type of customization on this process. System Process is default process. Inherited Process is modified process that was System process before. + :type customization_type: object + :param description: Description of the process. + :type description: str + :param is_default: Is the process default. + :type is_default: bool + :param is_enabled: Is the process enabled. + :type is_enabled: bool + :param name: Name of the process. + :type name: str + :param parent_process_type_id: ID of the parent process. + :type parent_process_type_id: str + :param projects: Projects in this process to which the user is subscribed to. + :type projects: list of :class:`ProjectReference ` + :param reference_name: Reference name of the process. + :type reference_name: str + :param type_id: The ID of the process. + :type type_id: str + """ + + _attribute_map = { + 'customization_type': {'key': 'customizationType', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, customization_type=None, description=None, is_default=None, is_enabled=None, name=None, parent_process_type_id=None, projects=None, reference_name=None, type_id=None): + super(ProcessInfo, self).__init__() + self.customization_type = customization_type + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name + self.parent_process_type_id = parent_process_type_id + self.projects = projects + self.reference_name = reference_name + self.type_id = type_id + + +class ProcessModel(Model): + """ProcessModel. + + :param description: Description of the process + :type description: str + :param name: Name of the process + :type name: str + :param projects: Projects in this process + :type projects: list of :class:`ProjectReference ` + :param properties: Properties of the process + :type properties: :class:`ProcessProperties ` + :param reference_name: Reference name of the process + :type reference_name: str + :param type_id: The ID of the process + :type type_id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'projects': {'key': 'projects', 'type': '[ProjectReference]'}, + 'properties': {'key': 'properties', 'type': 'ProcessProperties'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type_id': {'key': 'typeId', 'type': 'str'} + } + + def __init__(self, description=None, name=None, projects=None, properties=None, reference_name=None, type_id=None): + super(ProcessModel, self).__init__() + self.description = description + self.name = name + self.projects = projects + self.properties = properties + self.reference_name = reference_name + self.type_id = type_id + + +class ProcessProperties(Model): + """ProcessProperties. + + :param class_: Class of the process. + :type class_: object + :param is_default: Is the process default process. + :type is_default: bool + :param is_enabled: Is the process enabled. + :type is_enabled: bool + :param parent_process_type_id: ID of the parent process. + :type parent_process_type_id: str + :param version: Version of the process. + :type version: str + """ + + _attribute_map = { + 'class_': {'key': 'class', 'type': 'object'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'parent_process_type_id': {'key': 'parentProcessTypeId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, class_=None, is_default=None, is_enabled=None, parent_process_type_id=None, version=None): + super(ProcessProperties, self).__init__() + self.class_ = class_ + self.is_default = is_default + self.is_enabled = is_enabled + self.parent_process_type_id = parent_process_type_id + self.version = version + + +class ProcessRule(CreateProcessRuleRequest): + """ProcessRule. + + :param actions: List of actions to take when the rule is triggered. + :type actions: list of :class:`RuleAction ` + :param conditions: List of conditions when the rule should be triggered. + :type conditions: list of :class:`RuleCondition ` + :param is_disabled: Indicates if the rule is disabled. + :type is_disabled: bool + :param name: Name for the rule. + :type name: str + :param customization_type: Indicates if the rule is system generated or created by user. + :type customization_type: object + :param id: Id to uniquely identify the rule. + :type id: str + :param url: Resource Url. + :type url: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleAction]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleCondition]'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'customization_type': {'key': 'customizationType', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, actions=None, conditions=None, is_disabled=None, name=None, customization_type=None, id=None, url=None): + super(ProcessRule, self).__init__(actions=actions, conditions=conditions, is_disabled=is_disabled, name=name) + self.customization_type = customization_type + self.id = id + self.url = url + + +class ProcessWorkItemType(Model): + """ProcessWorkItemType. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param color: Color hexadecimal code to represent the work item type + :type color: str + :param customization: Indicates the type of customization on this work item System work item types are inherited from parent process but not modified Inherited work item types are modified work item that were inherited from parent process Custom work item types are work item types that were created in the current process + :type customization: object + :param description: Description of the work item type + :type description: str + :param icon: Icon to represent the work item typ + :type icon: str + :param inherits: Reference name of the parent work item type + :type inherits: str + :param is_disabled: Indicates if a work item type is disabled + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: Name of the work item type + :type name: str + :param reference_name: Reference name of work item type + :type reference_name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: Url of the work item type + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'color': {'key': 'color', 'type': 'str'}, + 'customization': {'key': 'customization', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, color=None, customization=None, description=None, icon=None, inherits=None, is_disabled=None, layout=None, name=None, reference_name=None, states=None, url=None): + super(ProcessWorkItemType, self).__init__() + self.behaviors = behaviors + self.color = color + self.customization = customization + self.description = description + self.icon = icon + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.reference_name = reference_name + self.states = states + self.url = url + + +class ProcessWorkItemTypeField(Model): + """ProcessWorkItemTypeField. + + :param allow_groups: Allow setting field value to a group identity. Only applies to identity fields. + :type allow_groups: bool + :param customization: + :type customization: object + :param default_value: The default value of the field. + :type default_value: object + :param description: Description of the field. + :type description: str + :param name: Name of the field. + :type name: str + :param read_only: If true the field cannot be edited. + :type read_only: bool + :param reference_name: Reference name of the field. + :type reference_name: str + :param required: If true the field cannot be empty. + :type required: bool + :param type: Type of the field. + :type type: object + :param url: Resource URL of the field. + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'customization': {'key': 'customization', 'type': 'object'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, customization=None, default_value=None, description=None, name=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(ProcessWorkItemTypeField, self).__init__() + self.allow_groups = allow_groups + self.customization = customization + self.default_value = default_value + self.description = description + self.name = name + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class ProjectReference(Model): + """ProjectReference. + + :param description: Description of the project + :type description: str + :param id: The ID of the project + :type id: str + :param name: Name of the project + :type name: str + :param url: Url of the project + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, url=None): + super(ProjectReference, self).__init__() + self.description = description + self.id = id + self.name = name + self.url = url + + +class RuleAction(Model): + """RuleAction. + + :param action_type: Type of action to take when the rule is triggered. + :type action_type: object + :param target_field: Field on which the action should be taken. + :type target_field: str + :param value: Value to apply on target field, once the action is taken. + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'object'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleAction, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value + + +class RuleActionModel(Model): + """RuleActionModel. + + :param action_type: + :type action_type: str + :param target_field: + :type target_field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'target_field': {'key': 'targetField', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, action_type=None, target_field=None, value=None): + super(RuleActionModel, self).__init__() + self.action_type = action_type + self.target_field = target_field + self.value = value + + +class RuleCondition(Model): + """RuleCondition. + + :param condition_type: Type of condition. $When. This condition limits the execution of its children to cases when another field has a particular value, i.e. when the Is value of the referenced field is equal to the given literal value. $WhenNot.This condition limits the execution of its children to cases when another field does not have a particular value, i.e.when the Is value of the referenced field is not equal to the given literal value. $WhenChanged.This condition limits the execution of its children to cases when another field has changed, i.e.when the Is value of the referenced field is not equal to the Was value of that field. $WhenNotChanged.This condition limits the execution of its children to cases when another field has not changed, i.e.when the Is value of the referenced field is equal to the Was value of that field. + :type condition_type: object + :param field: Field that defines condition. + :type field: str + :param value: Value of field to define the condition for rule. + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleCondition, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value + + +class RuleConditionModel(Model): + """RuleConditionModel. + + :param condition_type: + :type condition_type: str + :param field: + :type field: str + :param value: + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'str'}, + 'field': {'key': 'field', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, field=None, value=None): + super(RuleConditionModel, self).__init__() + self.condition_type = condition_type + self.field = field + self.value = value + + +class Section(Model): + """Section. + + :param groups: List of child groups in this section + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class UpdateProcessModel(Model): + """UpdateProcessModel. + + :param description: New description of the process + :type description: str + :param is_default: If true new projects will use this process by default + :type is_default: bool + :param is_enabled: If false the process will be disabled and cannot be used to create projects + :type is_enabled: bool + :param name: New name of the process + :type name: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, description=None, is_default=None, is_enabled=None, name=None): + super(UpdateProcessModel, self).__init__() + self.description = description + self.is_default = is_default + self.is_enabled = is_enabled + self.name = name + + +class UpdateProcessRuleRequest(CreateProcessRuleRequest): + """UpdateProcessRuleRequest. + + :param actions: List of actions to take when the rule is triggered. + :type actions: list of :class:`RuleAction ` + :param conditions: List of conditions when the rule should be triggered. + :type conditions: list of :class:`RuleCondition ` + :param is_disabled: Indicates if the rule is disabled. + :type is_disabled: bool + :param name: Name for the rule. + :type name: str + :param id: Id to uniquely identify the rule. + :type id: str + """ + + _attribute_map = { + 'actions': {'key': 'actions', 'type': '[RuleAction]'}, + 'conditions': {'key': 'conditions', 'type': '[RuleCondition]'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, actions=None, conditions=None, is_disabled=None, name=None, id=None): + super(UpdateProcessRuleRequest, self).__init__(actions=actions, conditions=conditions, is_disabled=is_disabled, name=name) + self.id = id + + +class UpdateProcessWorkItemTypeFieldRequest(Model): + """UpdateProcessWorkItemTypeFieldRequest. + + :param allow_groups: Allow setting field value to a group identity. Only applies to identity fields. + :type allow_groups: bool + :param default_value: The default value of the field. + :type default_value: object + :param read_only: If true the field cannot be edited. + :type read_only: bool + :param required: The default value of the field. + :type required: bool + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'required': {'key': 'required', 'type': 'bool'} + } + + def __init__(self, allow_groups=None, default_value=None, read_only=None, required=None): + super(UpdateProcessWorkItemTypeFieldRequest, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.read_only = read_only + self.required = required + + +class UpdateProcessWorkItemTypeRequest(Model): + """UpdateProcessWorkItemTypeRequest. + + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param is_disabled: If set will disable the work item type + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(UpdateProcessWorkItemTypeRequest, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehavior(Model): + """WorkItemBehavior. + + :param abstract: + :type abstract: bool + :param color: + :type color: str + :param description: + :type description: str + :param fields: + :type fields: list of :class:`WorkItemBehaviorField ` + :param id: + :type id: str + :param inherits: + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: + :type name: str + :param overriden: + :type overriden: bool + :param rank: + :type rank: int + :param url: + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': '[WorkItemBehaviorField]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overriden': {'key': 'overriden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, fields=None, id=None, inherits=None, name=None, overriden=None, rank=None, url=None): + super(WorkItemBehavior, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.fields = fields + self.id = id + self.inherits = inherits + self.name = name + self.overriden = overriden + self.rank = rank + self.url = url + + +class WorkItemBehaviorField(Model): + """WorkItemBehaviorField. + + :param behavior_field_id: + :type behavior_field_id: str + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior_field_id': {'key': 'behaviorFieldId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior_field_id=None, id=None, url=None): + super(WorkItemBehaviorField, self).__init__() + self.behavior_field_id = behavior_field_id + self.id = id + self.url = url + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: + :type id: str + :param url: + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: Color of the state + :type color: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: + :type color: str + :param customization_type: + :type customization_type: object + :param hidden: + :type hidden: bool + :param id: + :type id: str + :param name: + :type name: str + :param order: + :type order: int + :param state_category: + :type state_category: str + :param url: + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'customization_type': {'key': 'customizationType', 'type': 'object'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, customization_type=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.customization_type = customization_type + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: Reference to the behavior of a work item type + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: If true the work item type is the default work item type in the behavior + :type is_default: bool + :param url: URL of the work item type behavior + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: + :type class_: object + :param color: + :type color: str + :param description: + :type description: str + :param icon: + :type icon: str + :param id: + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: + :type is_disabled: bool + :param layout: + :type layout: :class:`FormLayout ` + :param name: + :type name: str + :param states: + :type states: list of :class:`WorkItemStateResultModel ` + :param url: + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +class PickList(PickListMetadata): + """PickList. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Indicates whether items outside of suggested list are allowed + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: DataType of picklist + :type type: str + :param url: Url of the picklist + :type url: str + :param items: A list of PicklistItemModel. + :type items: list of str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[str]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickList, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items + + +__all__ = [ + 'AddProcessWorkItemTypeFieldRequest', + 'Control', + 'CreateProcessModel', + 'CreateProcessRuleRequest', + 'CreateProcessWorkItemTypeRequest', + 'Extension', + 'FieldModel', + 'FieldRuleModel', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListMetadata', + 'ProcessBehavior', + 'ProcessBehaviorCreateRequest', + 'ProcessBehaviorField', + 'ProcessBehaviorReference', + 'ProcessBehaviorUpdateRequest', + 'ProcessInfo', + 'ProcessModel', + 'ProcessProperties', + 'ProcessRule', + 'ProcessWorkItemType', + 'ProcessWorkItemTypeField', + 'ProjectReference', + 'RuleAction', + 'RuleActionModel', + 'RuleCondition', + 'RuleConditionModel', + 'Section', + 'UpdateProcessModel', + 'UpdateProcessRuleRequest', + 'UpdateProcessWorkItemTypeFieldRequest', + 'UpdateProcessWorkItemTypeRequest', + 'WitContribution', + 'WorkItemBehavior', + 'WorkItemBehaviorField', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeModel', + 'PickList', +] diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py similarity index 53% rename from azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py rename to azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py index 00197784..276fc758 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py @@ -25,102 +25,112 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' - def create_behavior(self, behavior, process_id): - """CreateBehavior. + def create_process_behavior(self, behavior, process_id): + """CreateProcessBehavior. [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(behavior, 'BehaviorCreateModel') + content = self._serialize.body(behavior, 'ProcessBehaviorCreateRequest') response = self._send(http_method='POST', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.1-preview.1', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.1-preview.2', route_values=route_values, content=content) - return self._deserialize('BehaviorModel', response) + return self._deserialize('ProcessBehavior', response) - def delete_behavior(self, process_id, behavior_id): - """DeleteBehavior. + def delete_process_behavior(self, process_id, behavior_ref_name): + """DeleteProcessBehavior. [Preview API] Removes a behavior in the process. :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior + :param str behavior_ref_name: The reference name of the behavior """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') self._send(http_method='DELETE', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.1-preview.1', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.1-preview.2', route_values=route_values) - def get_behavior(self, process_id, behavior_id): - """GetBehavior. - [Preview API] Returns a single behavior in the process. + def get_process_behavior(self, process_id, behavior_ref_name, expand=None): + """GetProcessBehavior. + [Preview API] Returns a behavior of the process. :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - :rtype: :class:` ` + :param str behavior_ref_name: The reference name of the behavior + :param str expand: + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('BehaviorModel', response) + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessBehavior', response) - def get_behaviors(self, process_id): - """GetBehaviors. + def get_process_behaviors(self, process_id, expand=None): + """GetProcessBehaviors. [Preview API] Returns a list of all behaviors in the process. :param str process_id: The ID of the process - :rtype: [BehaviorModel] + :param str expand: + :rtype: [ProcessBehavior] """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ProcessBehavior]', self._unwrap_collection(response)) - def replace_behavior(self, behavior_data, process_id, behavior_id): - """ReplaceBehavior. + def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): + """UpdateProcessBehavior. [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: + :param :class:` ` behavior_data: :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - :rtype: :class:` ` + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + content = self._serialize.body(behavior_data, 'ProcessBehaviorUpdateRequest') response = self._send(http_method='PUT', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='4.1-preview.1', + location_id='d1800200-f184-4e75-a5f2-ad0b04b4373e', + version='5.1-preview.2', route_values=route_values, content=content) - return self._deserialize('BehaviorModel', response) + return self._deserialize('ProcessBehavior', response) - def add_control_to_group(self, control, process_id, wit_ref_name, group_id): - """AddControlToGroup. - [Preview API] Creates a control in a group - :param :class:` ` control: The control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group to add the control to - :rtype: :class:` ` + def create_control_in_group(self, control, process_id, wit_ref_name, group_id): + """CreateControlInGroup. + [Preview API] Creates a control in a group. + :param :class:` ` control: The control. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group to add the control to. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -131,21 +141,22 @@ def add_control_to_group(self, control, process_id, wit_ref_name, group_id): route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') content = self._serialize.body(control, 'Control') response = self._send(http_method='POST', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.1-preview.1', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Control', response) - def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): - """EditControl. - [Preview API] Updates a control on the work item form - :param :class:` ` control: The updated control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group - :param str control_id: The ID of the control - :rtype: :class:` ` + def move_control_to_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): + """MoveControlToGroup. + [Preview API] Moves a control to a specified group. + :param :class:` ` control: The control. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group to move the control to. + :param str control_id: The ID of the control. + :param str remove_from_group_id: The group ID to remove the control from. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -156,21 +167,25 @@ def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') if control_id is not None: route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + query_parameters = {} + if remove_from_group_id is not None: + query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') content = self._serialize.body(control, 'Control') - response = self._send(http_method='PATCH', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.1-preview.1', + response = self._send(http_method='PUT', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.1-preview.1', route_values=route_values, + query_parameters=query_parameters, content=content) return self._deserialize('Control', response) def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): """RemoveControlFromGroup. - [Preview API] Removes a control from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group - :param str control_id: The ID of the control to remove + [Preview API] Removes a control from the work item form. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group. + :param str control_id: The ID of the control to remove. """ route_values = {} if process_id is not None: @@ -182,20 +197,19 @@ def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_ if control_id is not None: route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') self._send(http_method='DELETE', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.1-preview.1', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.1-preview.1', route_values=route_values) - def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): - """SetControlInGroup. - [Preview API] Moves a control to a new group - :param :class:` ` control: The control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group to move the control to - :param str control_id: The id of the control - :param str remove_from_group_id: The group to remove the control from - :rtype: :class:` ` + def update_control(self, control, process_id, wit_ref_name, group_id, control_id): + """UpdateControl. + [Preview API] Updates a control on the work item form. + :param :class:` ` control: The updated control. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str group_id: The ID of the group. + :param str control_id: The ID of the control. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -206,63 +220,126 @@ def set_control_in_group(self, control, process_id, wit_ref_name, group_id, cont route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') if control_id is not None: route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - query_parameters = {} - if remove_from_group_id is not None: - query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') content = self._serialize.body(control, 'Control') - response = self._send(http_method='PUT', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='4.1-preview.1', + response = self._send(http_method='PATCH', + location_id='1f59b363-a2d0-4b7e-9bc6-eb9f5f3f0e58', + version='5.1-preview.1', route_values=route_values, - query_parameters=query_parameters, content=content) return self._deserialize('Control', response) - def create_field(self, field, process_id): - """CreateField. - [Preview API] Creates a single field in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :rtype: :class:` ` + def add_field_to_work_item_type(self, field, process_id, wit_ref_name): + """AddFieldToWorkItemType. + [Preview API] Adds a field to a work item type. + :param :class:` ` field: + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldModel') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(field, 'AddProcessWorkItemTypeFieldRequest') response = self._send(http_method='POST', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='4.1-preview.1', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.1-preview.2', route_values=route_values, content=content) - return self._deserialize('FieldModel', response) + return self._deserialize('ProcessWorkItemTypeField', response) - def update_field(self, field, process_id): - """UpdateField. - [Preview API] Updates a given field in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :rtype: :class:` ` + def get_all_work_item_type_fields(self, process_id, wit_ref_name): + """GetAllWorkItemTypeFields. + [Preview API] Returns a list of all fields in a work item type. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: [ProcessWorkItemTypeField] """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldUpdate') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('[ProcessWorkItemTypeField]', self._unwrap_collection(response)) + + def get_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): + """GetWorkItemTypeField. + [Preview API] Returns a field in a work item type. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str field_ref_name: The reference name of the field. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + response = self._send(http_method='GET', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('ProcessWorkItemTypeField', response) + + def remove_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): + """RemoveWorkItemTypeField. + [Preview API] Removes a field from a work item type. Does not permanently delete the field. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str field_ref_name: The reference name of the field. + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + self._send(http_method='DELETE', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.1-preview.2', + route_values=route_values) + + def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref_name): + """UpdateWorkItemTypeField. + [Preview API] Updates a field in a work item type. + :param :class:` ` field: + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str field_ref_name: The reference name of the field. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + content = self._serialize.body(field, 'UpdateProcessWorkItemTypeFieldRequest') response = self._send(http_method='PATCH', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='4.1-preview.1', + location_id='bc0ad8dc-e3f3-46b0-b06c-5bf861793196', + version='5.1-preview.2', route_values=route_values, content=content) - return self._deserialize('FieldModel', response) + return self._deserialize('ProcessWorkItemTypeField', response) def add_group(self, group, process_id, wit_ref_name, page_id, section_id): """AddGroup. - [Preview API] Adds a group to the work item form - :param :class:` ` group: The group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page to add the group to - :param str section_id: The ID of the section to add the group to - :rtype: :class:` ` + [Preview API] Adds a group to the work item form. + :param :class:` ` group: The group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page to add the group to. + :param str section_id: The ID of the section to add the group to. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -275,22 +352,24 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') content = self._serialize.body(group, 'Group') response = self._send(http_method='POST', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.1-preview.1', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Group', response) - def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): - """EditGroup. - [Preview API] Updates a group in the work item form - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :rtype: :class:` ` + def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): + """MoveGroupToPage. + [Preview API] Moves a group to a different page and section. + :param :class:` ` group: The updated group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page the group is in. + :param str section_id: The ID of the section the group is i.n + :param str group_id: The ID of the group. + :param str remove_from_page_id: ID of the page to remove the group from. + :param str remove_from_section_id: ID of the section to remove the group from. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -303,22 +382,31 @@ def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') if group_id is not None: route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_page_id is not None: + query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') content = self._serialize.body(group, 'Group') - response = self._send(http_method='PATCH', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.1-preview.1', + response = self._send(http_method='PUT', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.1-preview.1', route_values=route_values, + query_parameters=query_parameters, content=content) return self._deserialize('Group', response) - def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): - """RemoveGroup. - [Preview API] Removes a group from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section to the group is in - :param str group_id: The ID of the group + def move_group_to_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): + """MoveGroupToSection. + [Preview API] Moves a group to a different section. + :param :class:` ` group: The updated group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page the group is in. + :param str section_id: The ID of the section the group is in. + :param str group_id: The ID of the group. + :param str remove_from_section_id: ID of the section to remove the group from. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -331,23 +419,26 @@ def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') if group_id is not None: route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - self._send(http_method='DELETE', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.1-preview.1', - route_values=route_values) + query_parameters = {} + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) - def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): - """SetGroupInPage. - [Preview API] Moves a group to a different page and section - :param :class:` ` group: The updated group + def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): + """RemoveGroup. + [Preview API] Removes a group from the work item form. :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in + :param str section_id: The ID of the section to the group is in :param str group_id: The ID of the group - :param str remove_from_page_id: ID of the page to remove the group from - :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -360,31 +451,21 @@ def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') if group_id is not None: route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_page_id is not None: - query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Group', response) + self._send(http_method='DELETE', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.1-preview.1', + route_values=route_values) - def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): - """SetGroupInSection. - [Preview API] Moves a group to a different section - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` + def update_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): + """UpdateGroup. + [Preview API] Updates a group in the work item form. + :param :class:` ` group: The updated group. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :param str page_id: The ID of the page the group is in. + :param str section_id: The ID of the section the group is in. + :param str group_id: The ID of the group. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -397,24 +478,20 @@ def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') if group_id is not None: route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='4.1-preview.1', + response = self._send(http_method='PATCH', + location_id='766e44e1-36a8-41d7-9050-c343ff02f7a5', + version='5.1-preview.1', route_values=route_values, - query_parameters=query_parameters, content=content) return self._deserialize('Group', response) def get_form_layout(self, process_id, wit_ref_name): """GetFormLayout. - [Preview API] Gets the form layout - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + [Preview API] Gets the form layout. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -422,33 +499,23 @@ def get_form_layout(self, process_id, wit_ref_name): if wit_ref_name is not None: route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') response = self._send(http_method='GET', - location_id='3eacc80a-ddca-4404-857a-6331aac99063', - version='4.1-preview.1', + location_id='fa8646eb-43cd-4b71-9564-40106fd63e40', + version='5.1-preview.1', route_values=route_values) return self._deserialize('FormLayout', response) - def get_lists_metadata(self): - """GetListsMetadata. - [Preview API] Returns meta data of the picklist. - :rtype: [PickListMetadataModel] - """ - response = self._send(http_method='GET', - location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', - version='4.1-preview.1') - return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) - def create_list(self, picklist): """CreateList. [Preview API] Creates a picklist. - :param :class:` ` picklist: - :rtype: :class:` ` + :param :class:` ` picklist: Picklist + :rtype: :class:` ` """ - content = self._serialize.body(picklist, 'PickListModel') + content = self._serialize.body(picklist, 'PickList') response = self._send(http_method='POST', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.1-preview.1', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.1-preview.1', content=content) - return self._deserialize('PickListModel', response) + return self._deserialize('PickList', response) def delete_list(self, list_id): """DeleteList. @@ -459,50 +526,60 @@ def delete_list(self, list_id): if list_id is not None: route_values['listId'] = self._serialize.url('list_id', list_id, 'str') self._send(http_method='DELETE', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.1-preview.1', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.1-preview.1', route_values=route_values) def get_list(self, list_id): """GetList. [Preview API] Returns a picklist. :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: route_values['listId'] = self._serialize.url('list_id', list_id, 'str') response = self._send(http_method='GET', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.1-preview.1', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.1-preview.1', route_values=route_values) - return self._deserialize('PickListModel', response) + return self._deserialize('PickList', response) + + def get_lists_metadata(self): + """GetListsMetadata. + [Preview API] Returns meta data of the picklist. + :rtype: [PickListMetadata] + """ + response = self._send(http_method='GET', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.1-preview.1') + return self._deserialize('[PickListMetadata]', self._unwrap_collection(response)) def update_list(self, picklist, list_id): """UpdateList. [Preview API] Updates a list. - :param :class:` ` picklist: + :param :class:` ` picklist: :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - content = self._serialize.body(picklist, 'PickListModel') + content = self._serialize.body(picklist, 'PickList') response = self._send(http_method='PUT', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='4.1-preview.1', + location_id='01e15468-e27c-4e20-a974-bd957dcccebc', + version='5.1-preview.1', route_values=route_values, content=content) - return self._deserialize('PickListModel', response) + return self._deserialize('PickList', response) def add_page(self, page, process_id, wit_ref_name): """AddPage. - [Preview API] Adds a page to the work item form - :param :class:` ` page: The page - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + [Preview API] Adds a page to the work item form. + :param :class:` ` page: The page. + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -511,19 +588,38 @@ def add_page(self, page, process_id, wit_ref_name): route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') content = self._serialize.body(page, 'Page') response = self._send(http_method='POST', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='4.1-preview.1', + location_id='1cc7b29f-6697-4d9d-b0a1-2650d3e1d584', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Page', response) - def edit_page(self, page, process_id, wit_ref_name): - """EditPage. + def remove_page(self, process_id, wit_ref_name, page_id): + """RemovePage. + [Preview API] Removes a page from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + self._send(http_method='DELETE', + location_id='1cc7b29f-6697-4d9d-b0a1-2650d3e1d584', + version='5.1-preview.1', + route_values=route_values) + + def update_page(self, page, process_id, wit_ref_name): + """UpdatePage. [Preview API] Updates a page on the work item form - :param :class:` ` page: The page + :param :class:` ` page: The page :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -532,38 +628,201 @@ def edit_page(self, page, process_id, wit_ref_name): route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') content = self._serialize.body(page, 'Page') response = self._send(http_method='PATCH', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='4.1-preview.1', + location_id='1cc7b29f-6697-4d9d-b0a1-2650d3e1d584', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('Page', response) - def remove_page(self, process_id, wit_ref_name, page_id): - """RemovePage. - [Preview API] Removes a page from the work item form + def create_new_process(self, create_request): + """CreateNewProcess. + [Preview API] Creates a process. + :param :class:` ` create_request: CreateProcessModel. + :rtype: :class:` ` + """ + content = self._serialize.body(create_request, 'CreateProcessModel') + response = self._send(http_method='POST', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.1-preview.2', + content=content) + return self._deserialize('ProcessInfo', response) + + def delete_process_by_id(self, process_type_id): + """DeleteProcessById. + [Preview API] Removes a process of a specific ID. + :param str process_type_id: + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + self._send(http_method='DELETE', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.1-preview.2', + route_values=route_values) + + def edit_process(self, update_request, process_type_id): + """EditProcess. + [Preview API] Edit a process of a specific ID. + :param :class:` ` update_request: + :param str process_type_id: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + content = self._serialize.body(update_request, 'UpdateProcessModel') + response = self._send(http_method='PATCH', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessInfo', response) + + def get_list_of_processes(self, expand=None): + """GetListOfProcesses. + [Preview API] Get list of all processes including system and inherited. + :param str expand: + :rtype: [ProcessInfo] + """ + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.1-preview.2', + query_parameters=query_parameters) + return self._deserialize('[ProcessInfo]', self._unwrap_collection(response)) + + def get_process_by_its_id(self, process_type_id, expand=None): + """GetProcessByItsId. + [Preview API] Get a single process of a specified ID. + :param str process_type_id: + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_type_id is not None: + route_values['processTypeId'] = self._serialize.url('process_type_id', process_type_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ProcessInfo', response) + + def add_process_work_item_type_rule(self, process_rule_create, process_id, wit_ref_name): + """AddProcessWorkItemTypeRule. + [Preview API] Adds a rule to work item type in the process. + :param :class:` ` process_rule_create: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') if wit_ref_name is not None: route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + content = self._serialize.body(process_rule_create, 'CreateProcessRuleRequest') + response = self._send(http_method='POST', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessRule', response) + + def delete_process_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """DeleteProcessWorkItemTypeRule. + [Preview API] Removes a rule from the work item type in the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') self._send(http_method='DELETE', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='4.1-preview.1', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.1-preview.2', route_values=route_values) + def get_process_work_item_type_rule(self, process_id, wit_ref_name, rule_id): + """GetProcessWorkItemTypeRule. + [Preview API] Returns a single rule in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('ProcessRule', response) + + def get_process_work_item_type_rules(self, process_id, wit_ref_name): + """GetProcessWorkItemTypeRules. + [Preview API] Returns a list of all rules in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [ProcessRule] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.1-preview.2', + route_values=route_values) + return self._deserialize('[ProcessRule]', self._unwrap_collection(response)) + + def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_name, rule_id): + """UpdateProcessWorkItemTypeRule. + [Preview API] Updates a rule in the work item type of the process. + :param :class:` ` process_rule: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str rule_id: The ID of the rule + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if rule_id is not None: + route_values['ruleId'] = self._serialize.url('rule_id', rule_id, 'str') + content = self._serialize.body(process_rule, 'UpdateProcessRuleRequest') + response = self._send(http_method='PUT', + location_id='76fe3432-d825-479d-a5f6-983bbb78b4f3', + version='5.1-preview.2', + route_values=route_values, + content=content) + return self._deserialize('ProcessRule', response) + def create_state_definition(self, state_model, process_id, wit_ref_name): """CreateStateDefinition. [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -572,8 +831,8 @@ def create_state_definition(self, state_model, process_id, wit_ref_name): route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') content = self._serialize.body(state_model, 'WorkItemStateInputModel') response = self._send(http_method='POST', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.1-preview.1', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('WorkItemStateResultModel', response) @@ -593,17 +852,17 @@ def delete_state_definition(self, process_id, wit_ref_name, state_id): if state_id is not None: route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') self._send(http_method='DELETE', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.1-preview.1', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.1-preview.1', route_values=route_values) def get_state_definition(self, process_id, wit_ref_name, state_id): """GetStateDefinition. - [Preview API] Returns a state definition in the work item type of the process. + [Preview API] Returns a single state definition in a work item type of the process. :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -613,14 +872,14 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): if state_id is not None: route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.1-preview.1', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.1-preview.1', route_values=route_values) return self._deserialize('WorkItemStateResultModel', response) def get_state_definitions(self, process_id, wit_ref_name): """GetStateDefinitions. - [Preview API] Returns a list of all state definitions in the work item type of the process. + [Preview API] Returns a list of all state definitions in a work item type of the process. :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :rtype: [WorkItemStateResultModel] @@ -631,19 +890,19 @@ def get_state_definitions(self, process_id, wit_ref_name): if wit_ref_name is not None: route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.1-preview.1', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. - [Preview API] Hides a state definition in the work item type of the process. - :param :class:` ` hide_state_model: + [Preview API] Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden. + :param :class:` ` hide_state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -654,8 +913,8 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') content = self._serialize.body(hide_state_model, 'HideStateModel') response = self._send(http_method='PUT', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.1-preview.1', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('WorkItemStateResultModel', response) @@ -663,11 +922,11 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): """UpdateStateDefinition. [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -678,135 +937,35 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') content = self._serialize.body(state_model, 'WorkItemStateInputModel') response = self._send(http_method='PATCH', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='4.1-preview.1', + location_id='31015d57-2dff-4a46-adb3-2fb4ee3dcec9', + version='5.1-preview.1', route_values=route_values, content=content) return self._deserialize('WorkItemStateResultModel', response) - def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """AddBehaviorToWorkItemType. - [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='POST', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """GetBehaviorForWorkItemType. - [Preview API] Returns a behavior for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): - """GetBehaviorsForWorkItemType. - [Preview API] Returns a list of all behaviors for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: [WorkItemTypeBehavior] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.1-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) - - def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """RemoveBehaviorFromWorkItemType. - [Preview API] Removes a behavior for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :param str behavior_ref_name: The reference name of the behavior - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - self._send(http_method='DELETE', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.1-preview.1', - route_values=route_values) - - def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """UpdateBehaviorToWorkItemType. - [Preview API] Updates a behavior for the work item type of the process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='PATCH', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='4.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def create_work_item_type(self, work_item_type, process_id): - """CreateWorkItemType. + def create_process_work_item_type(self, work_item_type, process_id): + """CreateProcessWorkItemType. [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: - :param str process_id: The ID of the process - :rtype: :class:` ` + :param :class:` ` work_item_type: + :param str process_id: The ID of the process on which to create work item type. + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(work_item_type, 'WorkItemTypeModel') + content = self._serialize.body(work_item_type, 'CreateProcessWorkItemTypeRequest') response = self._send(http_method='POST', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.1-preview.1', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.1-preview.2', route_values=route_values, content=content) - return self._deserialize('WorkItemTypeModel', response) + return self._deserialize('ProcessWorkItemType', response) - def delete_work_item_type(self, process_id, wit_ref_name): - """DeleteWorkItemType. + def delete_process_work_item_type(self, process_id, wit_ref_name): + """DeleteProcessWorkItemType. [Preview API] Removes a work itewm type in the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type + :param str process_id: The ID of the process. + :param str wit_ref_name: The reference name of the work item type. """ route_values = {} if process_id is not None: @@ -814,17 +973,17 @@ def delete_work_item_type(self, process_id, wit_ref_name): if wit_ref_name is not None: route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') self._send(http_method='DELETE', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.1-preview.1', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.1-preview.2', route_values=route_values) - def get_work_item_type(self, process_id, wit_ref_name, expand=None): - """GetWorkItemType. - [Preview API] Returns a work item type of the process. + def get_process_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetProcessWorkItemType. + [Preview API] Returns a single work item type in a process. :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :param str expand: - :rtype: :class:` ` + :param str expand: Flag to determine what properties of work item type to return + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -835,18 +994,18 @@ def get_work_item_type(self, process_id, wit_ref_name, expand=None): if expand is not None: query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.1-preview.1', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) - return self._deserialize('WorkItemTypeModel', response) + return self._deserialize('ProcessWorkItemType', response) - def get_work_item_types(self, process_id, expand=None): - """GetWorkItemTypes. - [Preview API] Returns a list of all work item types in the process. + def get_process_work_item_types(self, process_id, expand=None): + """GetProcessWorkItemTypes. + [Preview API] Returns a list of all work item types in a process. :param str process_id: The ID of the process - :param str expand: - :rtype: [WorkItemTypeModel] + :param str expand: Flag to determine what properties of work item type to return + :rtype: [ProcessWorkItemType] """ route_values = {} if process_id is not None: @@ -855,109 +1014,130 @@ def get_work_item_types(self, process_id, expand=None): if expand is not None: query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.1-preview.1', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.1-preview.2', route_values=route_values, query_parameters=query_parameters) - return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) + return self._deserialize('[ProcessWorkItemType]', self._unwrap_collection(response)) - def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): - """UpdateWorkItemType. + def update_process_work_item_type(self, work_item_type_update, process_id, wit_ref_name): + """UpdateProcessWorkItemType. [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: + :param :class:` ` work_item_type_update: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') if wit_ref_name is not None: route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') + content = self._serialize.body(work_item_type_update, 'UpdateProcessWorkItemTypeRequest') response = self._send(http_method='PATCH', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='4.1-preview.1', + location_id='e2e9d1a6-432d-4062-8870-bfcb8c324ad7', + version='5.1-preview.2', route_values=route_values, content=content) - return self._deserialize('WorkItemTypeModel', response) + return self._deserialize('ProcessWorkItemType', response) - def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): - """AddFieldToWorkItemType. - [Preview API] Adds a field to the work item type in the process. - :param :class:` ` field: + def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """AddBehaviorToWorkItemType. + [Preview API] Adds a behavior to the work item type of the process. + :param :class:` ` behavior: :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for the field - :rtype: :class:` ` + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - content = self._serialize.body(field, 'WorkItemTypeFieldModel') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') response = self._send(http_method='POST', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.1-preview.1', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.1-preview.1', route_values=route_values, content=content) - return self._deserialize('WorkItemTypeFieldModel', response) + return self._deserialize('WorkItemTypeBehavior', response) - def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): - """GetWorkItemTypeField. - [Preview API] Returns a single field in the work item type of the process. + def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """GetBehaviorForWorkItemType. + [Preview API] Returns a behavior for the work item type of the process. :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :param str field_ref_name: The reference name of the field - :rtype: :class:` ` + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.1-preview.1', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.1-preview.1', route_values=route_values) - return self._deserialize('WorkItemTypeFieldModel', response) + return self._deserialize('WorkItemTypeBehavior', response) - def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): - """GetWorkItemTypeFields. - [Preview API] Returns a list of all fields in the work item type of the process. + def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): + """GetBehaviorsForWorkItemType. + [Preview API] Returns a list of all behaviors for the work item type of the process. :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :rtype: [WorkItemTypeFieldModel] + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: [WorkItemTypeBehavior] """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.1-preview.1', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.1-preview.1', route_values=route_values) - return self._deserialize('[WorkItemTypeFieldModel]', self._unwrap_collection(response)) + return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) - def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): - """RemoveFieldFromWorkItemType. - [Preview API] Removes a field in the work item type of the process. + def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """RemoveBehaviorFromWorkItemType. + [Preview API] Removes a behavior for the work item type of the process. :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :param str field_ref_name: The reference name of the field + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior """ route_values = {} if process_id is not None: route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') self._send(http_method='DELETE', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='4.1-preview.1', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.1-preview.1', route_values=route_values) + def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """UpdateBehaviorToWorkItemType. + [Preview API] Updates a behavior for the work item type of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='PATCH', + location_id='6d765a2e-4e1b-4b11-be93-f953be676024', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/__init__.py similarity index 87% rename from azure-devops/azure/devops/v4_0/work_item_tracking_process_template/__init__.py rename to azure-devops/azure/devops/v5_1/work_item_tracking_process_template/__init__.py index c5c7274f..331bd213 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/__init__.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/__init__.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py similarity index 74% rename from azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py rename to azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py index 2574e6ea..c0b6e7ae 100644 --- a/azure-devops/azure/devops/v4_0/work_item_tracking_process_template/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py @@ -1,4 +1,4 @@ -# -------------------------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- @@ -12,25 +12,25 @@ class AdminBehavior(Model): """AdminBehavior. - :param abstract: + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type). :type abstract: bool - :param color: + :param color: The color associated with the behavior. :type color: str - :param custom: + :param custom: Indicates if the behavior is custom. :type custom: bool - :param description: + :param description: The description of the behavior. :type description: str - :param fields: - :type fields: list of :class:`AdminBehaviorField ` - :param id: + :param fields: List of behavior fields. + :type fields: list of :class:`AdminBehaviorField ` + :param id: Behavior ID. :type id: str - :param inherits: + :param inherits: Parent behavior reference. :type inherits: str - :param name: + :param name: The behavior name. :type name: str - :param overriden: + :param overriden: Is the behavior overrides a behavior from system process. :type overriden: bool - :param rank: + :param rank: The rank. :type rank: int """ @@ -64,11 +64,11 @@ def __init__(self, abstract=None, color=None, custom=None, description=None, fie class AdminBehaviorField(Model): """AdminBehaviorField. - :param behavior_field_id: + :param behavior_field_id: The behavior field identifier. :type behavior_field_id: str - :param id: + :param id: The behavior ID. :type id: str - :param name: + :param name: The behavior name. :type name: str """ @@ -88,13 +88,13 @@ def __init__(self, behavior_field_id=None, id=None, name=None): class CheckTemplateExistenceResult(Model): """CheckTemplateExistenceResult. - :param does_template_exist: + :param does_template_exist: Indicates whether a template exists. :type does_template_exist: bool - :param existing_template_name: + :param existing_template_name: The name of the existing template. :type existing_template_name: str - :param existing_template_type_id: + :param existing_template_type_id: The existing template type identifier. :type existing_template_type_id: str - :param requested_template_name: + :param requested_template_name: The name of the requested template. :type requested_template_name: str """ @@ -116,27 +116,31 @@ def __init__(self, does_template_exist=None, existing_template_name=None, existi class ProcessImportResult(Model): """ProcessImportResult. - :param help_url: + :param help_url: Help URL. :type help_url: str - :param id: + :param id: ID of the import operation. :type id: str - :param promote_job_id: + :param is_new: Whether this imported process is new. + :type is_new: bool + :param promote_job_id: The promote job identifier. :type promote_job_id: str - :param validation_results: - :type validation_results: list of :class:`ValidationIssue ` + :param validation_results: The list of validation results. + :type validation_results: list of :class:`ValidationIssue ` """ _attribute_map = { 'help_url': {'key': 'helpUrl', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'is_new': {'key': 'isNew', 'type': 'bool'}, 'promote_job_id': {'key': 'promoteJobId', 'type': 'str'}, 'validation_results': {'key': 'validationResults', 'type': '[ValidationIssue]'} } - def __init__(self, help_url=None, id=None, promote_job_id=None, validation_results=None): + def __init__(self, help_url=None, id=None, is_new=None, promote_job_id=None, validation_results=None): super(ProcessImportResult, self).__init__() self.help_url = help_url self.id = id + self.is_new = is_new self.promote_job_id = promote_job_id self.validation_results = validation_results @@ -144,17 +148,17 @@ def __init__(self, help_url=None, id=None, promote_job_id=None, validation_resul class ProcessPromoteStatus(Model): """ProcessPromoteStatus. - :param complete: + :param complete: Number of projects for which promote is complete. :type complete: int - :param id: + :param id: ID of the promote operation. :type id: str - :param message: + :param message: The error message assoicated with the promote operation. The string will be empty if there are no errors. :type message: str - :param pending: + :param pending: Number of projects for which promote is pending. :type pending: int - :param remaining_retries: + :param remaining_retries: The remaining retries. :type remaining_retries: int - :param successful: + :param successful: True if promote finished all the projects successfully. False if still inprogress or any project promote failed. :type successful: bool """ diff --git a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py similarity index 91% rename from azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py rename to azure-devops/azure/devops/v5_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py index 9a3ddc7d..dae246c5 100644 --- a/azure-devops/azure/devops/v4_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/work_item_tracking_process_template_client.py @@ -30,7 +30,7 @@ def get_behavior(self, process_id, behavior_ref_name): [Preview API] Returns a behavior for the process. :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -40,7 +40,7 @@ def get_behavior(self, process_id, behavior_ref_name): query_parameters['behaviorRefName'] = self._serialize.query('behavior_ref_name', behavior_ref_name, 'str') response = self._send(http_method='GET', location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters) return self._deserialize('AdminBehavior', response) @@ -56,7 +56,7 @@ def get_behaviors(self, process_id): route_values['processId'] = self._serialize.url('process_id', process_id, 'str') response = self._send(http_method='GET', location_id='90bf9317-3571-487b-bc8c-a523ba0e05d7', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('[AdminBehavior]', self._unwrap_collection(response)) @@ -64,7 +64,7 @@ def check_template_existence(self, upload_stream, **kwargs): """CheckTemplateExistence. [Preview API] Check if process template exists. :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'CheckTemplateExistence' @@ -75,7 +75,7 @@ def check_template_existence(self, upload_stream, **kwargs): content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, content=content, media_type='application/octet-stream') @@ -93,7 +93,7 @@ def export_process_template(self, id, **kwargs): route_values['action'] = 'Export' response = self._send(http_method='GET', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, accept_media_type='application/zip') if "callback" in kwargs: @@ -107,7 +107,7 @@ def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs) [Preview API] Imports a process from zip file. :param object upload_stream: Stream to upload :param bool ignore_warnings: Default value is false - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'Import' @@ -121,7 +121,7 @@ def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs) content = self._client.stream_upload(upload_stream, callback=callback) response = self._send(http_method='POST', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values, query_parameters=query_parameters, content=content, @@ -132,7 +132,7 @@ def import_process_template_status(self, id): """ImportProcessTemplateStatus. [Preview API] Tells whether promote has completed for the specified promote job ID. :param str id: The ID of the promote job operation - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: @@ -140,7 +140,7 @@ def import_process_template_status(self, id): route_values['action'] = 'Status' response = self._send(http_method='GET', location_id='29e1f38d-9e9c-4358-86a5-cdf9896a5759', - version='4.1-preview.1', + version='5.1-preview.1', route_values=route_values) return self._deserialize('ProcessPromoteStatus', response) diff --git a/azure-devops/azure/devops/version.py b/azure-devops/azure/devops/version.py index 9bfa0e66..f7ed5aa6 100644 --- a/azure-devops/azure/devops/version.py +++ b/azure-devops/azure/devops/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "4.0.0" +VERSION = "5.0.0" diff --git a/azure-devops/setup.py b/azure-devops/setup.py index 99608914..aeaf1a83 100644 --- a/azure-devops/setup.py +++ b/azure-devops/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "azure-devops" -VERSION = "4.0.0" +VERSION = "5.0.0" # To install the library, run the following # @@ -35,7 +35,7 @@ name=NAME, version=VERSION, license='MIT', - description="Python wrapper around the Azure DevOps 4.x APIs", + description="Python wrapper around the Azure DevOps 5.x APIs", author="Microsoft Corporation", author_email="vstscli@microsoft.com", url="https://github.com/Microsoft/vsts-python-api", diff --git a/scripts/dev_setup.py b/scripts/dev_setup.py index 0784d2d4..25e5300b 100644 --- a/scripts/dev_setup.py +++ b/scripts/dev_setup.py @@ -10,9 +10,6 @@ import os from subprocess import check_call, CalledProcessError -from azure.devops.client import * - - def exec_command(command): try: print('Executing: ' + command) diff --git a/scripts/windows/init.cmd b/scripts/windows/init.cmd index e93f1434..34431df4 100644 --- a/scripts/windows/init.cmd +++ b/scripts/windows/init.cmd @@ -12,7 +12,7 @@ REM Add the scripts directory to the path SET PATH=%SCRIPTSDIR%\windows;%SCRIPTSDIR%;%PATH% REM set title -TITLE VSTS PYTHON API (in %BUILDDIR%) +TITLE Azure DevOps Python (in %BUILDDIR%) REM setup common aliases REM NOTE: macros in macros.txt work in *BOTH* cmd and powershell. Keep it that way. From bfa12a70bf96c22793b1dda8d7101571f83dbe53 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 11 Feb 2019 23:17:21 -0500 Subject: [PATCH 104/191] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6da9af9f..d0034cc5 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ credentials = BasicAuthentication('', personal_access_token) connection = Connection(base_url=organization_url, creds=credentials) # Get a client (the "core" client provides access to projects, teams, etc) -core_client = connection.get_client('azure.devops.v4_0.core.core_client.CoreClient') +core_client = connection.get_client('azure.devops.v5_0.core.core_client.CoreClient') # Get the list of projects in the org projects = core_client.get_projects() From 655aa55676ebfc5f5e611eccd94a495ead8f4793 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 12 Feb 2019 09:46:39 -0500 Subject: [PATCH 105/191] update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0034cc5..fe3b6c1c 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ # Azure DevOps Python API -This repository contains Python APIs for interacting with and managing Azure DevOps. These APIs power the Visual Studio Team Services CLI. To learn more about the VSTS CLI, visit the [Microsoft/vsts-cli](https://github.com/Microsoft/vsts-cli) repo. +This repository contains Python APIs for interacting with and managing Azure DevOps. These APIs power the Azure DevOps Extension for Azure CLI. To learn more about the Azure DevOps Extension for Azure CLI, visit the [Microsoft/azure-devops-cli-extension](https://github.com/Microsoft/azure-devops-cli-extension) repo. ## Install ``` -pip install vsts +pip install azure-devops ``` ## Get started From 507ba8ae4e4e253c593ba5e59d100322eed9995c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Tue, 12 Feb 2019 09:48:34 -0500 Subject: [PATCH 106/191] small fix to init --- scripts/windows/init.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/windows/init.cmd b/scripts/windows/init.cmd index 34431df4..02fbb49d 100644 --- a/scripts/windows/init.cmd +++ b/scripts/windows/init.cmd @@ -12,7 +12,7 @@ REM Add the scripts directory to the path SET PATH=%SCRIPTSDIR%\windows;%SCRIPTSDIR%;%PATH% REM set title -TITLE Azure DevOps Python (in %BUILDDIR%) +TITLE Azure DevOps Python v5.x (in %BUILDDIR%) REM setup common aliases REM NOTE: macros in macros.txt work in *BOTH* cmd and powershell. Keep it that way. From 782b86bdfc5ff2c7fba6a791bbcfe7be6a1bfeaa Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 13 Feb 2019 15:45:37 -0500 Subject: [PATCH 107/191] Add initial client factories --- README.md | 2 +- azure-devops/azure/devops/connection.py | 6 +- .../azure/devops/v5_0/build/models.py | 22 +- .../azure/devops/v5_0/client_factory.py | 359 ++++++++++++++++ .../cloud_load_test/cloud_load_test_client.py | 40 +- .../devops/v5_0/cloud_load_test/models.py | 92 ++-- azure-devops/azure/devops/v5_0/core/models.py | 6 +- .../extension_management_client.py | 8 +- .../v5_0/extension_management/models.py | 92 ++-- .../feature_availability_client.py | 10 +- .../feature_management_client.py | 26 +- .../devops/v5_0/feature_management/models.py | 12 +- .../file_container/file_container_client.py | 2 +- azure-devops/azure/devops/v5_0/git/models.py | 31 +- .../azure/devops/v5_0/identity/models.py | 6 +- .../azure/devops/v5_0/licensing/models.py | 4 +- .../azure/devops/v5_0/location/models.py | 20 +- .../member_entitlement_management_client.py | 32 +- .../member_entitlement_management/models.py | 96 ++--- .../azure/devops/v5_0/notification/models.py | 14 +- .../azure/devops/v5_0/nuGet/models.py | 10 +- .../azure/devops/v5_0/nuGet/nuGet_client.py | 12 +- .../azure/devops/v5_0/policy/models.py | 4 +- .../devops/v5_0/project_analysis/models.py | 10 +- .../project_analysis_client.py | 6 +- .../azure/devops/v5_0/py_pi_api/models.py | 8 +- .../devops/v5_0/py_pi_api/py_pi_api_client.py | 10 +- .../azure/devops/v5_0/security/models.py | 13 + .../devops/v5_0/service_endpoint/models.py | 84 ++-- .../service_endpoint_client.py | 14 +- .../azure/devops/v5_0/service_hooks/models.py | 90 ++-- .../service_hooks/service_hooks_client.py | 46 +- .../azure/devops/v5_0/task_agent/models.py | 294 ++++++------- .../v5_0/task_agent/task_agent_client.py | 38 +- azure-devops/azure/devops/v5_0/test/models.py | 4 +- azure-devops/azure/devops/v5_0/tfvc/models.py | 4 +- .../devops/v5_0/uPack_packaging/models.py | 2 +- .../uPack_packaging/uPack_packaging_client.py | 6 +- .../azure/devops/v5_0/universal/models.py | 8 +- .../devops/v5_0/universal/universal_client.py | 10 +- azure-devops/azure/devops/v5_0/wiki/models.py | 2 +- azure-devops/azure/devops/v5_0/work/models.py | 14 +- .../devops/v5_0/work_item_tracking/models.py | 132 +++--- .../work_item_tracking_client.py | 116 ++--- .../v5_0/work_item_tracking_process/models.py | 62 +-- .../work_item_tracking_process_client.py | 122 +++--- .../models.py | 4 +- ...k_item_tracking_process_template_client.py | 8 +- .../azure/devops/v5_1/accounts/models.py | 6 +- .../azure/devops/v5_1/build/models.py | 220 +++++----- .../azure/devops/v5_1/client_factory.py | 268 ++++++++++++ .../cloud_load_test/cloud_load_test_client.py | 14 +- .../devops/v5_1/cloud_load_test/models.py | 92 ++-- .../azure/devops/v5_1/contributions/models.py | 60 +-- azure-devops/azure/devops/v5_1/core/models.py | 28 +- .../azure/devops/v5_1/dashboard/models.py | 60 +-- .../extension_management_client.py | 2 +- .../v5_1/extension_management/models.py | 92 ++-- .../feature_availability_client.py | 2 +- .../feature_management_client.py | 10 +- .../devops/v5_1/feature_management/models.py | 12 +- azure-devops/azure/devops/v5_1/feed/models.py | 78 ++-- .../file_container/file_container_client.py | 2 +- .../azure/devops/v5_1/gallery/models.py | 98 ++--- azure-devops/azure/devops/v5_1/git/models.py | 353 +++++++-------- .../azure/devops/v5_1/graph/models.py | 34 +- .../azure/devops/v5_1/identity/models.py | 48 +-- .../azure/devops/v5_1/licensing/models.py | 38 +- .../azure/devops/v5_1/location/models.py | 34 +- .../azure/devops/v5_1/maven/models.py | 60 +-- .../member_entitlement_management_client.py | 10 +- .../member_entitlement_management/models.py | 96 ++--- .../azure/devops/v5_1/notification/models.py | 116 ++--- azure-devops/azure/devops/v5_1/npm/models.py | 10 +- .../azure/devops/v5_1/nuGet/models.py | 10 +- .../azure/devops/v5_1/operations/models.py | 4 +- .../azure/devops/v5_1/policy/models.py | 24 +- .../azure/devops/v5_1/profile/models.py | 2 +- .../devops/v5_1/project_analysis/models.py | 10 +- .../azure/devops/v5_1/py_pi_api/models.py | 8 +- .../devops/v5_1/py_pi_api/py_pi_api_client.py | 4 +- .../azure/devops/v5_1/security/models.py | 21 +- .../devops/v5_1/service_endpoint/models.py | 84 ++-- .../service_endpoint_client.py | 6 +- .../azure/devops/v5_1/service_hooks/models.py | 90 ++-- .../service_hooks/service_hooks_client.py | 16 +- .../azure/devops/v5_1/symbol/models.py | 8 +- azure-devops/azure/devops/v5_1/task/models.py | 50 +-- .../azure/devops/v5_1/task_agent/models.py | 308 ++++++------- .../v5_1/task_agent/task_agent_client.py | 14 +- azure-devops/azure/devops/v5_1/test/models.py | 404 +++++++++--------- azure-devops/azure/devops/v5_1/tfvc/models.py | 100 ++--- .../devops/v5_1/uPack_packaging/models.py | 2 +- .../uPack_packaging/uPack_packaging_client.py | 2 +- .../azure/devops/v5_1/universal/models.py | 8 +- .../devops/v5_1/universal/universal_client.py | 4 +- azure-devops/azure/devops/v5_1/wiki/models.py | 18 +- azure-devops/azure/devops/v5_1/work/models.py | 132 +++--- .../devops/v5_1/work_item_tracking/models.py | 136 +++--- .../work_item_tracking_client.py | 46 +- .../work_item_tracking_comments/models.py | 34 +- .../work_item_tracking_comments_client.py | 4 +- .../v5_1/work_item_tracking_process/models.py | 62 +-- .../work_item_tracking_process_client.py | 52 +-- .../models.py | 4 +- 105 files changed, 3107 insertions(+), 2416 deletions(-) create mode 100644 azure-devops/azure/devops/v5_0/client_factory.py create mode 100644 azure-devops/azure/devops/v5_1/client_factory.py diff --git a/README.md b/README.md index fe3b6c1c..abd35fa1 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ credentials = BasicAuthentication('', personal_access_token) connection = Connection(base_url=organization_url, creds=credentials) # Get a client (the "core" client provides access to projects, teams, etc) -core_client = connection.get_client('azure.devops.v5_0.core.core_client.CoreClient') +core_client = connection.clients_v5_0.get_core_client() # Get the list of projects in the org projects = core_client.get_projects() diff --git a/azure-devops/azure/devops/connection.py b/azure-devops/azure/devops/connection.py index c1afc2ce..ef502471 100644 --- a/azure-devops/azure/devops/connection.py +++ b/azure-devops/azure/devops/connection.py @@ -9,6 +9,8 @@ from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE from .exceptions import AzureDevOpsClientRequestError from .v5_0.location.location_client import LocationClient +from .v5_0.client_factory import ClientFactoryV5_0 +from .v5_1.client_factory import ClientFactoryV5_1 from .client_configuration import ClientConfiguration logger = logging.getLogger(__name__) @@ -28,6 +30,8 @@ def __init__(self, base_url=None, creds=None, user_agent=None): self.base_url = base_url self._creds = creds self._resource_areas = None + self.clients_v5_0 = ClientFactoryV5_0(self) + self.clients_v5_1 = ClientFactoryV5_1(self) def get_client(self, client_type): """get_client. @@ -60,7 +64,7 @@ def _get_url_for_client_instance(self, client_class): resource_areas = self._get_resource_areas() if resource_areas is None: raise AzureDevOpsClientRequestError(('Failed to retrieve resource areas ' - + 'from server: {url}').format(url=self.base_url)) + + 'from server: {url}').format(url=self.base_url)) if not resource_areas: # For OnPrem environments we get an empty list. return self.base_url diff --git a/azure-devops/azure/devops/v5_0/build/models.py b/azure-devops/azure/devops/v5_0/build/models.py index 7bcbea28..28772e26 100644 --- a/azure-devops/azure/devops/v5_0/build/models.py +++ b/azure-devops/azure/devops/v5_0/build/models.py @@ -49,11 +49,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param run_summary_by_outcome: :type run_summary_by_outcome: dict :param run_summary_by_state: @@ -1123,7 +1123,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -1305,7 +1305,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1333,7 +1333,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1449,11 +1449,11 @@ class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :type data_source_bindings: list of :class:`DataSourceBindingBase ` :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` + :type inputs: list of :class:`TaskInputDefinitionBase ` :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` """ _attribute_map = { @@ -1897,7 +1897,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -2081,11 +2081,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/client_factory.py b/azure-devops/azure/devops/v5_0/client_factory.py new file mode 100644 index 00000000..f30e5c9c --- /dev/null +++ b/azure-devops/azure/devops/v5_0/client_factory.py @@ -0,0 +1,359 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + +class ClientFactoryV5_0(object): + """ClientFactoryV5_0. + """ + + def __init__(self, connection): + self._connection = connection + + def get_accounts_client(self): + """get_accounts_client. + Gets the 5.0 version of the AccountsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.accounts.accounts_client.AccountsClient') + + def get_boards_client(self): + """get_boards_client. + Gets the 5.0 version of the BoardsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.boards.boards_client.BoardsClient') + + def get_build_client(self): + """get_build_client. + Gets the 5.0 version of the BuildClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.build.build_client.BuildClient') + + def get_client_trace_client(self): + """get_client_trace_client. + Gets the 5.0 version of the ClientTraceClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.client_trace.client_trace_client.ClientTraceClient') + + def get_cloud_load_test_client(self): + """get_cloud_load_test_client. + Gets the 5.0 version of the CloudLoadTestClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.cloud_load_test.cloud_load_test_client.CloudLoadTestClient') + + def get_contributions_client(self): + """get_contributions_client. + Gets the 5.0 version of the ContributionsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.contributions.contributions_client.ContributionsClient') + + def get_core_client(self): + """get_core_client. + Gets the 5.0 version of the CoreClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.core.core_client.CoreClient') + + def get_customer_intelligence_client(self): + """get_customer_intelligence_client. + Gets the 5.0 version of the CustomerIntelligenceClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.customer_intelligence.customer_intelligence_client.CustomerIntelligenceClient') + + def get_dashboard_client(self): + """get_dashboard_client. + Gets the 5.0 version of the DashboardClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.dashboard.dashboard_client.DashboardClient') + + def get_extension_management_client(self): + """get_extension_management_client. + Gets the 5.0 version of the ExtensionManagementClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.extension_management.extension_management_client.ExtensionManagementClient') + + def get_feature_availability_client(self): + """get_feature_availability_client. + Gets the 5.0 version of the FeatureAvailabilityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.feature_availability.feature_availability_client.FeatureAvailabilityClient') + + def get_feature_management_client(self): + """get_feature_management_client. + Gets the 5.0 version of the FeatureManagementClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.feature_management.feature_management_client.FeatureManagementClient') + + def get_feed_client(self): + """get_feed_client. + Gets the 5.0 version of the FeedClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.feed.feed_client.FeedClient') + + def get_feed_token_client(self): + """get_feed_token_client. + Gets the 5.0 version of the FeedTokenClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.feed_token.feed_token_client.FeedTokenClient') + + def get_file_container_client(self): + """get_file_container_client. + Gets the 5.0 version of the FileContainerClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.file_container.file_container_client.FileContainerClient') + + def get_gallery_client(self): + """get_gallery_client. + Gets the 5.0 version of the GalleryClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.gallery.gallery_client.GalleryClient') + + def get_git_client(self): + """get_git_client. + Gets the 5.0 version of the GitClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.git.git_client.GitClient') + + def get_graph_client(self): + """get_graph_client. + Gets the 5.0 version of the GraphClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.graph.graph_client.GraphClient') + + def get_identity_client(self): + """get_identity_client. + Gets the 5.0 version of the IdentityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.identity.identity_client.IdentityClient') + + def get_licensing_client(self): + """get_licensing_client. + Gets the 5.0 version of the LicensingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.licensing.licensing_client.LicensingClient') + + def get_location_client(self): + """get_location_client. + Gets the 5.0 version of the LocationClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.location.location_client.LocationClient') + + def get_maven_client(self): + """get_maven_client. + Gets the 5.0 version of the MavenClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.maven.maven_client.MavenClient') + + def get_member_entitlement_management_client(self): + """get_member_entitlement_management_client. + Gets the 5.0 version of the MemberEntitlementManagementClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.member_entitlement_management.member_entitlement_management_client.MemberEntitlementManagementClient') + + def get_notification_client(self): + """get_notification_client. + Gets the 5.0 version of the NotificationClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.notification.notification_client.NotificationClient') + + def get_npm_client(self): + """get_npm_client. + Gets the 5.0 version of the NpmClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.npm.npm_client.NpmClient') + + def get_nuget_client(self): + """get_nuget_client. + Gets the 5.0 version of the NuGetClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.nuget.nuget_client.NuGetClient') + + def get_operations_client(self): + """get_operations_client. + Gets the 5.0 version of the OperationsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.operations.operations_client.OperationsClient') + + def get_policy_client(self): + """get_policy_client. + Gets the 5.0 version of the PolicyClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.policy.policy_client.PolicyClient') + + def get_profile_client(self): + """get_profile_client. + Gets the 5.0 version of the ProfileClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.profile.profile_client.ProfileClient') + + def get_project_analysis_client(self): + """get_project_analysis_client. + Gets the 5.0 version of the ProjectAnalysisClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.project_analysis.project_analysis_client.ProjectAnalysisClient') + + def get_provenance_client(self): + """get_provenance_client. + Gets the 5.0 version of the ProvenanceClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.provenance.provenance_client.ProvenanceClient') + + def get_py_pi_api_client(self): + """get_py_pi_api_client. + Gets the 5.0 version of the PyPiApiClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.py_pi_api.py_pi_api_client.PyPiApiClient') + + def get_release_client(self): + """get_release_client. + Gets the 5.0 version of the ReleaseClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.release.release_client.ReleaseClient') + + def get_security_client(self): + """get_security_client. + Gets the 5.0 version of the SecurityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.security.security_client.SecurityClient') + + def get_service_endpoint_client(self): + """get_service_endpoint_client. + Gets the 5.0 version of the ServiceEndpointClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.service_endpoint.service_endpoint_client.ServiceEndpointClient') + + def get_service_hooks_client(self): + """get_service_hooks_client. + Gets the 5.0 version of the ServiceHooksClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.service_hooks.service_hooks_client.ServiceHooksClient') + + def get_settings_client(self): + """get_settings_client. + Gets the 5.0 version of the SettingsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.settings.settings_client.SettingsClient') + + def get_symbol_client(self): + """get_symbol_client. + Gets the 5.0 version of the SymbolClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.symbol.symbol_client.SymbolClient') + + def get_task_client(self): + """get_task_client. + Gets the 5.0 version of the TaskClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.task.task_client.TaskClient') + + def get_task_agent_client(self): + """get_task_agent_client. + Gets the 5.0 version of the TaskAgentClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.task_agent.task_agent_client.TaskAgentClient') + + def get_test_client(self): + """get_test_client. + Gets the 5.0 version of the TestClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.test.test_client.TestClient') + + def get_tfvc_client(self): + """get_tfvc_client. + Gets the 5.0 version of the TfvcClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.tfvc.tfvc_client.TfvcClient') + + def get_upack_api_client(self): + """get_upack_api_client. + Gets the 5.0 version of the UPackApiClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.upack_api.upack_api_client.UPackApiClient') + + def get_upack_packaging_client(self): + """get_upack_packaging_client. + Gets the 5.0 version of the UPackPackagingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.upack_packaging.upack_packaging_client.UPackPackagingClient') + + def get_wiki_client(self): + """get_wiki_client. + Gets the 5.0 version of the WikiClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.wiki.wiki_client.WikiClient') + + def get_work_client(self): + """get_work_client. + Gets the 5.0 version of the WorkClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.work.work_client.WorkClient') + + def get_work_item_tracking_client(self): + """get_work_item_tracking_client. + Gets the 5.0 version of the WorkItemTrackingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') + + def get_work_item_tracking_client(self): + """get_work_item_tracking_client. + Gets the 5.0 version of the WorkItemTrackingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') + + def get_work_item_tracking_process_template_client(self): + """get_work_item_tracking_process_template_client. + Gets the 5.0 version of the WorkItemTrackingProcessTemplateClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.work_item_tracking_process_template.work_item_tracking_process_template_client.WorkItemTrackingProcessTemplateClient') + diff --git a/azure-devops/azure/devops/v5_0/cloud_load_test/cloud_load_test_client.py b/azure-devops/azure/devops/v5_0/cloud_load_test/cloud_load_test_client.py index bf232e7e..7997bff6 100644 --- a/azure-devops/azure/devops/v5_0/cloud_load_test/cloud_load_test_client.py +++ b/azure-devops/azure/devops/v5_0/cloud_load_test/cloud_load_test_client.py @@ -27,8 +27,8 @@ def __init__(self, base_url=None, creds=None): def create_agent_group(self, group): """CreateAgentGroup. - :param :class:` ` group: Agent group to be created - :rtype: :class:` ` + :param :class:` ` group: Agent group to be created + :rtype: :class:` ` """ content = self._serialize.body(group, 'AgentGroup') response = self._send(http_method='POST', @@ -106,7 +106,7 @@ def get_static_agents(self, agent_group_id, agent_name=None): def get_application(self, application_id): """GetApplication. :param str application_id: Filter by APM application identifier. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if application_id is not None: @@ -172,9 +172,9 @@ def get_application_counters(self, application_id=None, plugintype=None): def get_counter_samples(self, counter_sample_query_details, test_run_id): """GetCounterSamples. - :param :class:` ` counter_sample_query_details: + :param :class:` ` counter_sample_query_details: :param str test_run_id: The test run identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -193,7 +193,7 @@ def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detail :param str type: Filter for the particular type of errors. :param str sub_type: Filter for a particular subtype of errors. You should not provide error subtype without error type. :param bool detailed: To include the details of test errors such as messagetext, request, stacktrace, testcasename, scenarioname, and lasterrordate. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -229,7 +229,7 @@ def get_test_run_messages(self, test_run_id): def get_plugin(self, type): """GetPlugin. :param str type: Currently ApplicationInsights is the only available plugin type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if type is not None: @@ -252,7 +252,7 @@ def get_plugins(self): def get_load_test_result(self, test_run_id): """GetLoadTestResult. :param str test_run_id: The test run identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -265,8 +265,8 @@ def get_load_test_result(self, test_run_id): def create_test_definition(self, test_definition): """CreateTestDefinition. - :param :class:` ` test_definition: Test definition to be created - :rtype: :class:` ` + :param :class:` ` test_definition: Test definition to be created + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='POST', @@ -278,7 +278,7 @@ def create_test_definition(self, test_definition): def get_test_definition(self, test_definition_id): """GetTestDefinition. :param str test_definition_id: The test definition identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_definition_id is not None: @@ -311,8 +311,8 @@ def get_test_definitions(self, from_date=None, to_date=None, top=None): def update_test_definition(self, test_definition): """UpdateTestDefinition. - :param :class:` ` test_definition: - :rtype: :class:` ` + :param :class:` ` test_definition: + :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') response = self._send(http_method='PUT', @@ -323,8 +323,8 @@ def update_test_definition(self, test_definition): def create_test_drop(self, web_test_drop): """CreateTestDrop. - :param :class:` ` web_test_drop: Test drop to be created - :rtype: :class:` ` + :param :class:` ` web_test_drop: Test drop to be created + :rtype: :class:` ` """ content = self._serialize.body(web_test_drop, 'TestDrop') response = self._send(http_method='POST', @@ -336,7 +336,7 @@ def create_test_drop(self, web_test_drop): def get_test_drop(self, test_drop_id): """GetTestDrop. :param str test_drop_id: The test drop identifier - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_drop_id is not None: @@ -349,8 +349,8 @@ def get_test_drop(self, test_drop_id): def create_test_run(self, web_test_run): """CreateTestRun. - :param :class:` ` web_test_run: - :rtype: :class:` ` + :param :class:` ` web_test_run: + :rtype: :class:` ` """ content = self._serialize.body(web_test_run, 'TestRun') response = self._send(http_method='POST', @@ -362,7 +362,7 @@ def create_test_run(self, web_test_run): def get_test_run(self, test_run_id): """GetTestRun. :param str test_run_id: Unique ID of the test run - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if test_run_id is not None: @@ -417,7 +417,7 @@ def get_test_runs(self, name=None, requested_by=None, status=None, run_type=None def update_test_run(self, web_test_run, test_run_id): """UpdateTestRun. - :param :class:` ` web_test_run: + :param :class:` ` web_test_run: :param str test_run_id: """ route_values = {} diff --git a/azure-devops/azure/devops/v5_0/cloud_load_test/models.py b/azure-devops/azure/devops/v5_0/cloud_load_test/models.py index 728d88a5..0e3018d0 100644 --- a/azure-devops/azure/devops/v5_0/cloud_load_test/models.py +++ b/azure-devops/azure/devops/v5_0/cloud_load_test/models.py @@ -21,9 +21,9 @@ class AgentGroup(Model): :param group_name: :type group_name: str :param machine_access_data: - :type machine_access_data: list of :class:`AgentGroupAccessData ` + :type machine_access_data: list of :class:`AgentGroupAccessData ` :param machine_configuration: - :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` :param tenant_id: :type tenant_id: str """ @@ -267,7 +267,7 @@ class CounterInstanceSamples(Model): :param next_refresh_time: :type next_refresh_time: datetime :param values: - :type values: list of :class:`CounterSample ` + :type values: list of :class:`CounterSample ` """ _attribute_map = { @@ -371,7 +371,7 @@ class CounterSamplesResult(Model): :param total_samples_count: :type total_samples_count: int :param values: - :type values: list of :class:`CounterInstanceSamples ` + :type values: list of :class:`CounterInstanceSamples ` """ _attribute_map = { @@ -511,13 +511,13 @@ class LoadTestDefinition(Model): :param agent_count: :type agent_count: int :param browser_mixs: - :type browser_mixs: list of :class:`BrowserMix ` + :type browser_mixs: list of :class:`BrowserMix ` :param core_count: :type core_count: int :param cores_per_agent: :type cores_per_agent: int :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_pattern_name: :type load_pattern_name: str :param load_test_name: @@ -573,7 +573,7 @@ class LoadTestErrors(Model): :param occurrences: :type occurrences: int :param types: - :type types: list of :class:`object ` + :type types: list of :class:`object ` :param url: :type url: str """ @@ -639,7 +639,7 @@ class OverridableRunSettings(Model): :param load_generator_machines_type: :type load_generator_machines_type: object :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` """ _attribute_map = { @@ -663,7 +663,7 @@ class PageSummary(Model): :param percentage_pages_meeting_goal: :type percentage_pages_meeting_goal: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -703,7 +703,7 @@ class RequestSummary(Model): :param passed_requests: :type passed_requests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param requests_per_sec: :type requests_per_sec: float :param request_url: @@ -791,7 +791,7 @@ class SubType(Model): :param count: :type count: int :param error_detail_list: - :type error_detail_list: list of :class:`ErrorDetails ` + :type error_detail_list: list of :class:`ErrorDetails ` :param occurrences: :type occurrences: int :param sub_type_name: @@ -841,13 +841,13 @@ class TenantDetails(Model): """TenantDetails. :param access_details: - :type access_details: list of :class:`AgentGroupAccessData ` + :type access_details: list of :class:`AgentGroupAccessData ` :param id: :type id: str :param static_machines: - :type static_machines: list of :class:`WebApiTestMachine ` + :type static_machines: list of :class:`WebApiTestMachine ` :param user_load_agent_input: - :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` :param user_load_agent_resources_uri: :type user_load_agent_resources_uri: str :param valid_geo_locations: @@ -877,7 +877,7 @@ class TestDefinitionBasic(Model): """TestDefinitionBasic. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -921,7 +921,7 @@ class TestDrop(Model): """TestDrop. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_date: :type created_date: datetime :param drop_type: @@ -929,7 +929,7 @@ class TestDrop(Model): :param id: :type id: str :param load_test_definition: - :type load_test_definition: :class:`LoadTestDefinition ` + :type load_test_definition: :class:`LoadTestDefinition ` :param test_run_id: :type test_run_id: str """ @@ -979,9 +979,9 @@ class TestResults(Model): :param cloud_load_test_solution_url: :type cloud_load_test_solution_url: str :param counter_groups: - :type counter_groups: list of :class:`CounterGroup ` + :type counter_groups: list of :class:`CounterGroup ` :param diagnostics: - :type diagnostics: :class:`Diagnostics ` + :type diagnostics: :class:`Diagnostics ` :param results_url: :type results_url: str """ @@ -1005,23 +1005,23 @@ class TestResultsSummary(Model): """TestResultsSummary. :param overall_page_summary: - :type overall_page_summary: :class:`PageSummary ` + :type overall_page_summary: :class:`PageSummary ` :param overall_request_summary: - :type overall_request_summary: :class:`RequestSummary ` + :type overall_request_summary: :class:`RequestSummary ` :param overall_scenario_summary: - :type overall_scenario_summary: :class:`ScenarioSummary ` + :type overall_scenario_summary: :class:`ScenarioSummary ` :param overall_test_summary: - :type overall_test_summary: :class:`TestSummary ` + :type overall_test_summary: :class:`TestSummary ` :param overall_transaction_summary: - :type overall_transaction_summary: :class:`TransactionSummary ` + :type overall_transaction_summary: :class:`TransactionSummary ` :param top_slow_pages: - :type top_slow_pages: list of :class:`PageSummary ` + :type top_slow_pages: list of :class:`PageSummary ` :param top_slow_requests: - :type top_slow_requests: list of :class:`RequestSummary ` + :type top_slow_requests: list of :class:`RequestSummary ` :param top_slow_tests: - :type top_slow_tests: list of :class:`TestSummary ` + :type top_slow_tests: list of :class:`TestSummary ` :param top_slow_transactions: - :type top_slow_transactions: list of :class:`TransactionSummary ` + :type top_slow_transactions: list of :class:`TransactionSummary ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class TestRunBasic(Model): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1107,7 +1107,7 @@ class TestRunBasic(Model): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1173,7 +1173,7 @@ class TestRunCounterInstance(Model): :param part_of_counter_groups: :type part_of_counter_groups: list of str :param summary_data: - :type summary_data: :class:`WebInstanceSummaryData ` + :type summary_data: :class:`WebInstanceSummaryData ` :param unique_name: :type unique_name: str """ @@ -1287,7 +1287,7 @@ class TestSummary(Model): :param passed_tests: :type passed_tests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1325,7 +1325,7 @@ class TransactionSummary(Model): :param average_transaction_time: :type average_transaction_time: float :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1365,7 +1365,7 @@ class WebApiLoadTestMachineInput(Model): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType """ @@ -1433,7 +1433,7 @@ class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType :param agent_group_name: @@ -1530,7 +1530,7 @@ class TestDefinition(TestDefinitionBasic): """TestDefinition. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -1548,15 +1548,15 @@ class TestDefinition(TestDefinitionBasic): :param description: :type description: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_definition_source: :type load_test_definition_source: str :param run_settings: - :type run_settings: :class:`LoadTestRunSettings ` + :type run_settings: :class:`LoadTestRunSettings ` :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` :param test_details: - :type test_details: :class:`LoadTest ` + :type test_details: :class:`LoadTest ` """ _attribute_map = { @@ -1602,7 +1602,7 @@ class TestRun(TestRunBasic): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1612,7 +1612,7 @@ class TestRun(TestRunBasic): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1620,7 +1620,7 @@ class TestRun(TestRunBasic): :param url: :type url: str :param abort_message: - :type abort_message: :class:`TestRunAbortMessage ` + :type abort_message: :class:`TestRunAbortMessage ` :param aut_initialization_error: :type aut_initialization_error: bool :param chargeable: @@ -1650,11 +1650,11 @@ class TestRun(TestRunBasic): :param sub_state: :type sub_state: object :param supersede_run_settings: - :type supersede_run_settings: :class:`OverridableRunSettings ` + :type supersede_run_settings: :class:`OverridableRunSettings ` :param test_drop: - :type test_drop: :class:`TestDropRef ` + :type test_drop: :class:`TestDropRef ` :param test_settings: - :type test_settings: :class:`TestSettings ` + :type test_settings: :class:`TestSettings ` :param warm_up_started_date: :type warm_up_started_date: datetime :param web_result_url: diff --git a/azure-devops/azure/devops/v5_0/core/models.py b/azure-devops/azure/devops/v5_0/core/models.py index ffb38462..b13ea651 100644 --- a/azure-devops/azure/devops/v5_0/core/models.py +++ b/azure-devops/azure/devops/v5_0/core/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -57,7 +57,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -373,7 +373,7 @@ class TeamMember(Model): """TeamMember. :param identity: - :type identity: :class:`IdentityRef ` + :type identity: :class:`IdentityRef ` :param is_team_admin: :type is_team_admin: bool """ diff --git a/azure-devops/azure/devops/v5_0/extension_management/extension_management_client.py b/azure-devops/azure/devops/v5_0/extension_management/extension_management_client.py index 3a64c524..ddbef324 100644 --- a/azure-devops/azure/devops/v5_0/extension_management/extension_management_client.py +++ b/azure-devops/azure/devops/v5_0/extension_management/extension_management_client.py @@ -53,8 +53,8 @@ def get_installed_extensions(self, include_disabled_extensions=None, include_err def update_installed_extension(self, extension): """UpdateInstalledExtension. [Preview API] Update an installed extension. Typically this API is used to enable or disable an extension. - :param :class:` ` extension: - :rtype: :class:` ` + :param :class:` ` extension: + :rtype: :class:` ` """ content = self._serialize.body(extension, 'InstalledExtension') response = self._send(http_method='PATCH', @@ -69,7 +69,7 @@ def get_installed_extension_by_name(self, publisher_name, extension_name, asset_ :param str publisher_name: Name of the publisher. Example: "fabrikam". :param str extension_name: Name of the extension. Example: "ops-tools". :param [str] asset_types: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: @@ -93,7 +93,7 @@ def install_extension_by_name(self, publisher_name, extension_name, version=None :param str publisher_name: Name of the publisher. Example: "fabrikam". :param str extension_name: Name of the extension. Example: "ops-tools". :param str version: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_name is not None: diff --git a/azure-devops/azure/devops/v5_0/extension_management/models.py b/azure-devops/azure/devops/v5_0/extension_management/models.py index 2f3af188..7c6af336 100644 --- a/azure-devops/azure/devops/v5_0/extension_management/models.py +++ b/azure-devops/azure/devops/v5_0/extension_management/models.py @@ -19,7 +19,7 @@ class AcquisitionOperation(Model): :param reason: Optional reason to justify current state. Typically used with Disallow state. :type reason: str :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` """ _attribute_map = { @@ -61,13 +61,13 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param target: The target that this options refer to :type target: str """ @@ -125,7 +125,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -222,7 +222,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int """ @@ -296,7 +296,7 @@ class ExtensionDataCollection(Model): :param collection_name: The name of the collection :type collection_name: str :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` + :type documents: list of :class:`object ` :param scope_type: The type of the collection's scope, such as Default or User :type scope_type: str :param scope_value: The value of the collection's scope, such as Current or Me @@ -322,7 +322,7 @@ class ExtensionDataCollectionQuery(Model): """ExtensionDataCollectionQuery. :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` + :type collections: list of :class:`ExtensionDataCollection ` """ _attribute_map = { @@ -354,19 +354,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -438,7 +438,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -456,21 +456,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -542,7 +542,7 @@ class ExtensionRequest(Model): :param request_date: Date at which the request was made :type request_date: datetime :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_message: Optional message supplied by the requester justifying the request :type request_message: str :param request_state: Represents the state of the request @@ -550,7 +550,7 @@ class ExtensionRequest(Model): :param resolve_date: Date at which the request was resolved :type resolve_date: datetime :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` """ _attribute_map = { @@ -628,11 +628,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -678,7 +678,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -706,7 +706,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -788,21 +788,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -816,11 +816,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -879,7 +879,7 @@ class InstalledExtensionQuery(Model): :param asset_types: :type asset_types: list of str :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` + :type monikers: list of :class:`ExtensionIdentifier ` """ _attribute_map = { @@ -899,7 +899,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -977,7 +977,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -985,19 +985,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1091,7 +1091,7 @@ class RequestedExtension(Model): :param extension_name: The unique name of the extension :type extension_name: str :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` + :type extension_requests: list of :class:`ExtensionRequest ` :param publisher_display_name: DisplayName of the publisher that owns the extension being published. :type publisher_display_name: str :param publisher_name: Represents the Publisher of the requested extension @@ -1123,7 +1123,7 @@ class UserExtensionPolicy(Model): :param display_name: User display name that this policy refers to :type display_name: str :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` + :type permissions: :class:`ExtensionPolicy ` :param user_id: User id that this policy refers to :type user_id: str """ @@ -1151,11 +1151,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) @@ -1192,7 +1192,7 @@ class ExtensionState(InstalledExtensionState): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime :param extension_name: diff --git a/azure-devops/azure/devops/v5_0/feature_availability/feature_availability_client.py b/azure-devops/azure/devops/v5_0/feature_availability/feature_availability_client.py index 2c19b0d9..09f25672 100644 --- a/azure-devops/azure/devops/v5_0/feature_availability/feature_availability_client.py +++ b/azure-devops/azure/devops/v5_0/feature_availability/feature_availability_client.py @@ -45,7 +45,7 @@ def get_feature_flag_by_name(self, name, check_feature_exists=None): [Preview API] Retrieve information on a single feature flag and its current states :param str name: The name of the feature to retrieve :param bool check_feature_exists: Check if feature exists - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -66,7 +66,7 @@ def get_feature_flag_by_name_and_user_email(self, name, user_email, check_featur :param str name: The name of the feature to retrieve :param str user_email: The email of the user to check :param bool check_feature_exists: Check if feature exists - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -89,7 +89,7 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id, check_feature_exis :param str name: The name of the feature to retrieve :param str user_id: The id of the user to check :param bool check_feature_exists: Check if feature exists - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: @@ -109,12 +109,12 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id, check_feature_exis def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): """UpdateFeatureFlag. [Preview API] Change the state of an individual feature flag for a name - :param :class:` ` state: State that should be set + :param :class:` ` state: State that should be set :param str name: The name of the feature to change :param str user_email: :param bool check_feature_exists: Checks if the feature exists before setting the state :param bool set_at_application_level_also: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if name is not None: diff --git a/azure-devops/azure/devops/v5_0/feature_management/feature_management_client.py b/azure-devops/azure/devops/v5_0/feature_management/feature_management_client.py index cc491ff2..fc84330e 100644 --- a/azure-devops/azure/devops/v5_0/feature_management/feature_management_client.py +++ b/azure-devops/azure/devops/v5_0/feature_management/feature_management_client.py @@ -29,7 +29,7 @@ def get_feature(self, feature_id): """GetFeature. [Preview API] Get a specific feature by its id :param str feature_id: The contribution id of the feature - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -60,7 +60,7 @@ def get_feature_state(self, feature_id, user_scope): [Preview API] Get the state of the specified feature for the given user/all-users scope :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -76,12 +76,12 @@ def get_feature_state(self, feature_id, user_scope): def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): """SetFeatureState. [Preview API] Set the state of a feature - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -109,7 +109,7 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ :param str user_scope: User-Scope at which to get the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -129,14 +129,14 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): """SetFeatureStateForScope. [Preview API] Set the state of a feature at a specific scope - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") :param str scope_value: Value of the scope (e.g. the project or team id) :param str reason: Reason for changing the state :param str reason_code: Short reason code - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feature_id is not None: @@ -164,8 +164,8 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam def query_feature_states(self, query): """QueryFeatureStates. [Preview API] Get the effective state for a list of feature ids - :param :class:` ` query: Features to query along with current scope values - :rtype: :class:` ` + :param :class:` ` query: Features to query along with current scope values + :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributedFeatureStateQuery') response = self._send(http_method='POST', @@ -177,9 +177,9 @@ def query_feature_states(self, query): def query_feature_states_for_default_scope(self, query, user_scope): """QueryFeatureStatesForDefaultScope. [Preview API] Get the states of the specified features for the default scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: @@ -195,11 +195,11 @@ def query_feature_states_for_default_scope(self, query, user_scope): def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): """QueryFeatureStatesForNamedScope. [Preview API] Get the states of the specified features for the specific named scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: :param str scope_name: :param str scope_value: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_scope is not None: diff --git a/azure-devops/azure/devops/v5_0/feature_management/models.py b/azure-devops/azure/devops/v5_0/feature_management/models.py index f0735a42..dc9c9188 100644 --- a/azure-devops/azure/devops/v5_0/feature_management/models.py +++ b/azure-devops/azure/devops/v5_0/feature_management/models.py @@ -13,17 +13,17 @@ class ContributedFeature(Model): """ContributedFeature. :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_state: If true, the feature is enabled unless overridden at some scope :type default_state: bool :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` :param description: The description of the feature :type description: str :param feature_properties: Extra properties for the feature :type feature_properties: dict :param feature_state_changed_listeners: Handler for listening to setter calls on feature value. These listeners are only invoked after a successful set has occured - :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` + :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` :param id: The full contribution id of the feature :type id: str :param include_as_claim: If this is set to true, then the id for this feature will be added to the list of claims for the request. @@ -33,9 +33,9 @@ class ContributedFeature(Model): :param order: Suggested order to display feature in. :type order: int :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` + :type override_rules: list of :class:`ContributedFeatureValueRule ` :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` + :type scopes: list of :class:`ContributedFeatureSettingScope ` :param service_instance_type: The service instance id of the service that owns this feature :type service_instance_type: str :param tags: Tags associated with the feature. @@ -145,7 +145,7 @@ class ContributedFeatureState(Model): :param reason: Reason that the state was set (by a plugin/rule). :type reason: str :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` + :type scope: :class:`ContributedFeatureSettingScope ` :param state: The current state of this feature :type state: object """ diff --git a/azure-devops/azure/devops/v5_0/file_container/file_container_client.py b/azure-devops/azure/devops/v5_0/file_container/file_container_client.py index ae1f2747..3bca3105 100644 --- a/azure-devops/azure/devops/v5_0/file_container/file_container_client.py +++ b/azure-devops/azure/devops/v5_0/file_container/file_container_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_items(self, items, container_id, scope=None): """CreateItems. [Preview API] Creates the specified items in in the referenced container. - :param :class:` ` items: + :param :class:` ` items: :param int container_id: :param str scope: A guid representing the scope of the container. This is often the project id. :rtype: [FileContainerItem] diff --git a/azure-devops/azure/devops/v5_0/git/models.py b/azure-devops/azure/devops/v5_0/git/models.py index d1edfdb9..6e1df2d3 100644 --- a/azure-devops/azure/devops/v5_0/git/models.py +++ b/azure-devops/azure/devops/v5_0/git/models.py @@ -1444,6 +1444,22 @@ def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, clo self.work_item_refs = work_item_refs +class GitPullRequestChange(Model): + """GitPullRequestChange. + + :param change_tracking_id: ID used to track files through multiple changes. + :type change_tracking_id: int + """ + + _attribute_map = { + 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'} + } + + def __init__(self, change_tracking_id=None): + super(GitPullRequestChange, self).__init__() + self.change_tracking_id = change_tracking_id + + class GitPullRequestCommentThread(CommentThread): """GitPullRequestCommentThread. @@ -2641,7 +2657,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2669,7 +2685,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2946,7 +2962,7 @@ class PolicyConfigurationRef(Model): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -3142,7 +3158,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. @@ -3578,15 +3594,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. :type revision: int :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The date and time when the policy was created. :type created_date: datetime :param is_blocking: Indicates whether the policy is blocking. @@ -3667,6 +3683,7 @@ def __init__(self, id=None, type=None, url=None, revision=None, _links=None, cre 'GitMergeParameters', 'GitObject', 'GitPullRequest', + 'GitPullRequestChange', 'GitPullRequestCommentThread', 'GitPullRequestCommentThreadContext', 'GitPullRequestCompletionOptions', diff --git a/azure-devops/azure/devops/v5_0/identity/models.py b/azure-devops/azure/devops/v5_0/identity/models.py index 6ea23455..2e0fc9dd 100644 --- a/azure-devops/azure/devops/v5_0/identity/models.py +++ b/azure-devops/azure/devops/v5_0/identity/models.py @@ -13,7 +13,7 @@ class AccessTokenResult(Model): """AccessTokenResult. :param access_token: - :type access_token: :class:`JsonWebToken ` + :type access_token: :class:`JsonWebToken ` :param access_token_error: :type access_token_error: object :param authorization_id: @@ -23,7 +23,7 @@ class AccessTokenResult(Model): :param has_error: :type has_error: bool :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` + :type refresh_token: :class:`RefreshTokenGrant ` :param token_type: :type token_type: str :param valid_to: @@ -515,7 +515,7 @@ class RefreshTokenGrant(AuthorizationGrant): :param grant_type: :type grant_type: object :param jwt: - :type jwt: :class:`JsonWebToken ` + :type jwt: :class:`JsonWebToken ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/licensing/models.py b/azure-devops/azure/devops/v5_0/licensing/models.py index c7d62d0f..29a2d8d1 100644 --- a/azure-devops/azure/devops/v5_0/licensing/models.py +++ b/azure-devops/azure/devops/v5_0/licensing/models.py @@ -401,7 +401,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -429,7 +429,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_0/location/models.py b/azure-devops/azure/devops/v5_0/location/models.py index 1291cc2d..d4785437 100644 --- a/azure-devops/azure/devops/v5_0/location/models.py +++ b/azure-devops/azure/devops/v5_0/location/models.py @@ -91,7 +91,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -103,19 +103,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -335,7 +335,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -347,19 +347,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py b/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py index dd8beb6b..dc312077 100644 --- a/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py +++ b/azure-devops/azure/devops/v5_0/member_entitlement_management/member_entitlement_management_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def add_group_entitlement(self, group_entitlement, rule_option=None): """AddGroupEntitlement. [Preview API] Create a group entitlement with license rule, extension rule. - :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups + :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be created and applied to it’s members (default option) or just be tested - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if rule_option is not None: @@ -49,7 +49,7 @@ def delete_group_entitlement(self, group_id, rule_option=None, remove_group_memb :param str group_id: ID of the group to delete. :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be deleted and the changes are applied to it’s members (default option) or just be tested :param bool remove_group_membership: Optional parameter that specifies whether the group with the given ID should be removed from all other groups - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -70,7 +70,7 @@ def get_group_entitlement(self, group_id): """GetGroupEntitlement. [Preview API] Get a group entitlement. :param str group_id: ID of the group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -94,10 +94,10 @@ def get_group_entitlements(self): def update_group_entitlement(self, document, group_id, rule_option=None): """UpdateGroupEntitlement. [Preview API] Update entitlements (License Rule, Extensions Rule, Project memberships etc.) for a group. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. :param str group_id: ID of the group. :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be updated and the changes are applied to it’s members (default option) or just be tested - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -137,7 +137,7 @@ def get_group_members(self, group_id, max_results=None, paging_token=None): :param str group_id: Id of the Group. :param int max_results: Maximum number of results to retrieve. :param str paging_token: Paging Token from the previous page fetched. If the 'pagingToken' is null, the results would be fetched from the begining of the Members List. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if group_id is not None: @@ -173,8 +173,8 @@ def remove_member_from_group(self, group_id, member_id): def add_user_entitlement(self, user_entitlement): """AddUserEntitlement. [Preview API] Add a user, assign license and extensions and make them a member of a project group in an account. - :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. - :rtype: :class:` ` + :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. + :rtype: :class:` ` """ content = self._serialize.body(user_entitlement, 'UserEntitlement') response = self._send(http_method='POST', @@ -190,7 +190,7 @@ def get_user_entitlements(self, top=None, skip=None, filter=None, sort_option=No :param int skip: Offset: Number of records to skip. Default value is 0 :param str filter: Comma (",") separated list of properties and their values to filter on. Currently, the API only supports filtering by ExtensionId. An example parameter would be filter=extensionId eq search. :param str sort_option: PropertyName and Order (separated by a space ( )) to sort on (e.g. LastAccessDate Desc) - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if top is not None: @@ -210,9 +210,9 @@ def get_user_entitlements(self, top=None, skip=None, filter=None, sort_option=No def update_user_entitlements(self, document, do_not_send_invite_for_new_users=None): """UpdateUserEntitlements. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. :param bool do_not_send_invite_for_new_users: Whether to send email invites to new users or not - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if do_not_send_invite_for_new_users is not None: @@ -243,7 +243,7 @@ def get_user_entitlement(self, user_id): """GetUserEntitlement. [Preview API] Get User Entitlement for a user. :param str user_id: ID of the user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -257,9 +257,9 @@ def get_user_entitlement(self, user_id): def update_user_entitlement(self, document, user_id): """UpdateUserEntitlement. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for a user. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. :param str user_id: ID of the user. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if user_id is not None: @@ -277,7 +277,7 @@ def get_users_summary(self, select=None): """GetUsersSummary. [Preview API] Get summary of Licenses, Extension, Projects, Groups and their assignments in the collection. :param str select: Comma (",") separated list of properties to select. Supported property names are {AccessLevels, Licenses, Extensions, Projects, Groups}. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if select is not None: diff --git a/azure-devops/azure/devops/v5_0/member_entitlement_management/models.py b/azure-devops/azure/devops/v5_0/member_entitlement_management/models.py index 3db778a9..9bfb9fea 100644 --- a/azure-devops/azure/devops/v5_0/member_entitlement_management/models.py +++ b/azure-devops/azure/devops/v5_0/member_entitlement_management/models.py @@ -101,7 +101,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -149,19 +149,19 @@ class GroupEntitlement(Model): """GroupEntitlement. :param extension_rules: Extension Rules. - :type extension_rules: list of :class:`Extension ` + :type extension_rules: list of :class:`Extension ` :param group: Member reference. - :type group: :class:`GraphGroup ` + :type group: :class:`GraphGroup ` :param id: The unique identifier which matches the Id of the GraphMember. :type id: str :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). :type last_executed: datetime :param license_rule: License Rule. - :type license_rule: :class:`AccessLevel ` + :type license_rule: :class:`AccessLevel ` :param members: Group members. Only used when creating a new group. - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` :param project_entitlements: Relation between a project and the member's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param status: The status of the group rule. :type status: object """ @@ -199,7 +199,7 @@ class GroupOperationResult(BaseOperationResult): :param group_id: Identifier of the Group being acted upon :type group_id: str :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` + :type result: :class:`GroupEntitlement ` """ _attribute_map = { @@ -219,9 +219,9 @@ class GroupOption(Model): """GroupOption. :param access_level: Access Level - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param group: Group - :type group: :class:`Group ` + :type group: :class:`Group ` """ _attribute_map = { @@ -269,7 +269,7 @@ class MemberEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` """ _attribute_map = { @@ -321,7 +321,7 @@ class OperationResult(Model): :param member_id: Identifier of the Member being acted upon. :type member_id: str :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`MemberEntitlement ` + :type result: :class:`MemberEntitlement ` """ _attribute_map = { @@ -369,13 +369,13 @@ class ProjectEntitlement(Model): :param assignment_source: Assignment Source (e.g. Group or Unknown). :type assignment_source: object :param group: Project Group (e.g. Contributor, Reader etc.) - :type group: :class:`Group ` + :type group: :class:`Group ` :param is_project_permission_inherited: Whether the user is inheriting permissions to a project through a VSTS or AAD group membership. :type is_project_permission_inherited: bool :param project_ref: Project Ref - :type project_ref: :class:`ProjectRef ` + :type project_ref: :class:`ProjectRef ` :param team_refs: Team Ref. - :type team_refs: list of :class:`TeamRef ` + :type team_refs: list of :class:`TeamRef ` """ _attribute_map = { @@ -483,19 +483,19 @@ class UserEntitlement(Model): """UserEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` """ _attribute_map = { @@ -535,7 +535,7 @@ class UserEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`UserEntitlementOperationResult ` + :type results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -563,7 +563,7 @@ class UserEntitlementOperationResult(Model): :param is_success: Success status of the operation. :type is_success: bool :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`UserEntitlement ` + :type result: :class:`UserEntitlement ` :param user_id: Identifier of the Member being acted upon. :type user_id: str """ @@ -589,7 +589,7 @@ class UserEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` """ _attribute_map = { @@ -607,15 +607,15 @@ class UsersSummary(Model): """UsersSummary. :param available_access_levels: Available Access Levels. - :type available_access_levels: list of :class:`AccessLevel ` + :type available_access_levels: list of :class:`AccessLevel ` :param extensions: Summary of Extensions in the account. - :type extensions: list of :class:`ExtensionSummaryData ` + :type extensions: list of :class:`ExtensionSummaryData ` :param group_options: Group Options. - :type group_options: list of :class:`GroupOption ` + :type group_options: list of :class:`GroupOption ` :param licenses: Summary of Licenses in the Account. - :type licenses: list of :class:`LicenseSummaryData ` + :type licenses: list of :class:`LicenseSummaryData ` :param project_refs: Summary of Projects in the Account. - :type project_refs: list of :class:`ProjectRef ` + :type project_refs: list of :class:`ProjectRef ` """ _attribute_map = { @@ -691,7 +691,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -743,7 +743,7 @@ class GroupEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`GroupOperationResult ` + :type results: list of :class:`GroupOperationResult ` """ _attribute_map = { @@ -823,21 +823,21 @@ class MemberEntitlement(UserEntitlement): """MemberEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` :param member: Member reference - :type member: :class:`GraphMember ` + :type member: :class:`GraphMember ` """ _attribute_map = { @@ -872,7 +872,7 @@ class MemberEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful :type have_results_succeeded: bool :param results: List of results for each operation - :type results: list of :class:`OperationResult ` + :type results: list of :class:`OperationResult ` """ _attribute_map = { @@ -898,9 +898,9 @@ class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` + :type operation_results: list of :class:`OperationResult ` """ _attribute_map = { @@ -920,9 +920,9 @@ class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` + :type operation_result: :class:`OperationResult ` """ _attribute_map = { @@ -940,7 +940,7 @@ class PagedGraphMemberList(PagedList): """PagedGraphMemberList. :param members: - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` """ _attribute_map = { @@ -958,9 +958,9 @@ class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_results: List of results for each operation. - :type operation_results: list of :class:`UserEntitlementOperationResult ` + :type operation_results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -980,9 +980,9 @@ class UserEntitlementsPostResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_result: Operation result. - :type operation_result: :class:`UserEntitlementOperationResult ` + :type operation_result: :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -1000,7 +1000,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1048,7 +1048,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1105,7 +1105,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_0/notification/models.py b/azure-devops/azure/devops/v5_0/notification/models.py index 2c35cfee..30f13913 100644 --- a/azure-devops/azure/devops/v5_0/notification/models.py +++ b/azure-devops/azure/devops/v5_0/notification/models.py @@ -245,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -407,7 +407,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -417,7 +417,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -463,7 +463,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -1558,7 +1558,7 @@ class VssNotificationEvent(Model): """VssNotificationEvent. :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` + :type actors: list of :class:`EventActor ` :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. :type artifact_uris: list of str :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. @@ -1572,7 +1572,7 @@ class VssNotificationEvent(Model): :param process_delay: How long to wait before processing this event. The default is to process immediately. :type process_delay: object :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` + :type scopes: list of :class:`EventScope ` :param source_event_created_time: This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised. :type source_event_created_time: datetime """ diff --git a/azure-devops/azure/devops/v5_0/nuGet/models.py b/azure-devops/azure/devops/v5_0/nuGet/models.py index 2d843ca3..6d7ad58c 100644 --- a/azure-devops/azure/devops/v5_0/nuGet/models.py +++ b/azure-devops/azure/devops/v5_0/nuGet/models.py @@ -73,11 +73,11 @@ class NuGetPackagesBatchRequest(Model): """NuGetPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -137,7 +137,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -147,7 +147,7 @@ class Package(Model): :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` + :type source_chain: list of :class:`UpstreamSourceInfo ` :param version: The version of the package. :type version: str """ @@ -179,7 +179,7 @@ class PackageVersionDetails(Model): :param listed: Indicates the listing state of a package :type listed: bool :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py b/azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py index a66b88c8..49276737 100644 --- a/azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py +++ b/azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py @@ -54,7 +54,7 @@ def download_package(self, feed_id, package_name, package_version, source_protoc def update_package_versions(self, batch_request, feed_id): """UpdatePackageVersions. [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. - :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. :param str feed_id: Name or ID of the feed. """ route_values = {} @@ -92,7 +92,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -110,7 +110,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] Restore a package version from a feed's recycle bin back into the active feed. - :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation + :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. @@ -135,7 +135,7 @@ def delete_package_version(self, feed_id, package_name, package_version): :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package to delete. :param str package_version: Version of the package to delete. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -157,7 +157,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet :param str package_name: Name of the package. :param str package_version: Version of the package. :param bool show_deleted: True to include deleted packages in the response. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -179,7 +179,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] Set mutable state on a package version. - :param :class:` ` package_version_details: New state to apply to the referenced package. + :param :class:` ` package_version_details: New state to apply to the referenced package. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package to update. :param str package_version: Version of the package to update. diff --git a/azure-devops/azure/devops/v5_0/policy/models.py b/azure-devops/azure/devops/v5_0/policy/models.py index cad1d72a..a922032a 100644 --- a/azure-devops/azure/devops/v5_0/policy/models.py +++ b/azure-devops/azure/devops/v5_0/policy/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -41,7 +41,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_0/project_analysis/models.py b/azure-devops/azure/devops/v5_0/project_analysis/models.py index 9158d105..4b6143f0 100644 --- a/azure-devops/azure/devops/v5_0/project_analysis/models.py +++ b/azure-devops/azure/devops/v5_0/project_analysis/models.py @@ -102,7 +102,7 @@ class ProjectActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param project_id: :type project_id: str :param pull_requests_completed_count: @@ -142,9 +142,9 @@ class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` :param result_phase: :type result_phase: object :param url: @@ -177,7 +177,7 @@ class RepositoryActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param repository_id: :type repository_id: str """ @@ -207,7 +207,7 @@ class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param name: :type name: str :param result_phase: diff --git a/azure-devops/azure/devops/v5_0/project_analysis/project_analysis_client.py b/azure-devops/azure/devops/v5_0/project_analysis/project_analysis_client.py index 7684ce01..7f421d9b 100644 --- a/azure-devops/azure/devops/v5_0/project_analysis/project_analysis_client.py +++ b/azure-devops/azure/devops/v5_0/project_analysis/project_analysis_client.py @@ -29,7 +29,7 @@ def get_project_language_analytics(self, project): """GetProjectLanguageAnalytics. [Preview API] :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -46,7 +46,7 @@ def get_project_activity_metrics(self, project, from_date, aggregation_type): :param str project: Project ID or project name :param datetime from_date: :param str aggregation_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -99,7 +99,7 @@ def get_repository_activity_metrics(self, project, repository_id, from_date, agg :param str repository_id: :param datetime from_date: :param str aggregation_type: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v5_0/py_pi_api/models.py b/azure-devops/azure/devops/v5_0/py_pi_api/models.py index 10a9122d..29164abe 100644 --- a/azure-devops/azure/devops/v5_0/py_pi_api/models.py +++ b/azure-devops/azure/devops/v5_0/py_pi_api/models.py @@ -73,7 +73,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -109,7 +109,7 @@ class PackageVersionDetails(Model): """PackageVersionDetails. :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -125,11 +125,11 @@ class PyPiPackagesBatchRequest(Model): """PyPiPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py b/azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py index 76b6ac7e..d193664e 100644 --- a/azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py +++ b/azure-devops/azure/devops/v5_0/py_pi_api/py_pi_api_client.py @@ -74,7 +74,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -92,7 +92,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] Restore a package version from the recycle bin to its associated feed. - :param :class:` ` package_version_details: Set the 'Deleted' state to 'false' to restore the package to its feed. + :param :class:` ` package_version_details: Set the 'Deleted' state to 'false' to restore the package to its feed. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. @@ -117,7 +117,7 @@ def delete_package_version(self, feed_id, package_name, package_version): :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -139,7 +139,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet :param str package_name: Name of the package. :param str package_version: Version of the package. :param bool show_deleted: True to show information for deleted package versions. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -161,7 +161,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] Update state for a package version. - :param :class:` ` package_version_details: Details to be updated. + :param :class:` ` package_version_details: Details to be updated. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. diff --git a/azure-devops/azure/devops/v5_0/security/models.py b/azure-devops/azure/devops/v5_0/security/models.py index 8f099a9a..6530968d 100644 --- a/azure-devops/azure/devops/v5_0/security/models.py +++ b/azure-devops/azure/devops/v5_0/security/models.py @@ -65,6 +65,18 @@ def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_per self.token = token +class AccessControlListsCollection(Model): + """AccessControlListsCollection. + + """ + + _attribute_map = { + } + + def __init__(self): + super(AccessControlListsCollection, self).__init__() + + class AceExtendedInformation(Model): """AceExtendedInformation. @@ -240,6 +252,7 @@ def __init__(self, actions=None, dataspace_category=None, display_name=None, ele __all__ = [ 'AccessControlEntry', 'AccessControlList', + 'AccessControlListsCollection', 'AceExtendedInformation', 'ActionDefinition', 'PermissionEvaluation', diff --git a/azure-devops/azure/devops/v5_0/service_endpoint/models.py b/azure-devops/azure/devops/v5_0/service_endpoint/models.py index 9d5d962b..1d2698e4 100644 --- a/azure-devops/azure/devops/v5_0/service_endpoint/models.py +++ b/azure-devops/azure/devops/v5_0/service_endpoint/models.py @@ -83,7 +83,7 @@ class AzureManagementGroupQueryResult(Model): :param error_message: Error message in case of an exception :type error_message: str :param value: List of azure management groups - :type value: list of :class:`AzureManagementGroup ` + :type value: list of :class:`AzureManagementGroup ` """ _attribute_map = { @@ -131,7 +131,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -165,7 +165,7 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param callback_context_template: :type callback_context_template: str :param callback_required_template: @@ -173,7 +173,7 @@ class DataSource(Model): :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: :type initial_context_template: str :param name: @@ -231,7 +231,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -281,7 +281,7 @@ class DataSourceDetails(Model): :param data_source_url: Gets or sets the data source url. :type data_source_url: str :param headers: Gets or sets the request headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Gets or sets the initialization context used for the initial call to the data source :type initial_context_template: str :param parameters: Gets the parameters of data source. @@ -367,7 +367,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -405,7 +405,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -437,7 +437,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -485,7 +485,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -567,11 +567,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -683,7 +683,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -693,7 +693,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -741,7 +741,7 @@ class OAuthConfiguration(Model): :param client_secret: Gets or sets the ClientSecret :type client_secret: str :param created_by: Gets or sets the identity who created the config. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when config was created. :type created_on: datetime :param endpoint_type: Gets or sets the type of the endpoint. @@ -749,7 +749,7 @@ class OAuthConfiguration(Model): :param id: Gets or sets the unique identifier of this field :type id: str :param modified_by: Gets or sets the identity who modified the config. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets the name @@ -881,11 +881,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -901,11 +901,11 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param owner: Owner of the endpoint Supported values are "library", "agentcloud" :type owner: str :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -953,17 +953,17 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param authorization_url: Gets or sets the Authorization url required to authenticate using OAuth2 :type authorization_url: str :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -993,7 +993,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: Gets or sets the authorization of service endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: Gets or sets the data of service endpoint. :type data: dict :param type: Gets or sets the type of service endpoint. @@ -1021,13 +1021,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`ServiceEndpointExecutionOwner ` + :type definition: :class:`ServiceEndpointExecutionOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`ServiceEndpointExecutionOwner ` + :type owner: :class:`ServiceEndpointExecutionOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1061,7 +1061,7 @@ class ServiceEndpointExecutionOwner(Model): """ServiceEndpointExecutionOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Gets or sets the Id of service endpoint execution owner. :type id: int :param name: Gets or sets the name of service endpoint execution owner. @@ -1085,7 +1085,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1105,7 +1105,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1125,11 +1125,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: Gets or sets the data source details for the service endpoint request. - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1155,7 +1155,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: Gets or sets the error message of the service endpoint request result. :type error_message: str :param result: Gets or sets the result of service endpoint request. - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: Gets or sets the status code of the service endpoint request result. :type status_code: object """ @@ -1181,25 +1181,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1255,7 +1255,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. diff --git a/azure-devops/azure/devops/v5_0/service_endpoint/service_endpoint_client.py b/azure-devops/azure/devops/v5_0/service_endpoint/service_endpoint_client.py index b8a32675..d7c6feae 100644 --- a/azure-devops/azure/devops/v5_0/service_endpoint/service_endpoint_client.py +++ b/azure-devops/azure/devops/v5_0/service_endpoint/service_endpoint_client.py @@ -28,10 +28,10 @@ def __init__(self, base_url=None, creds=None): def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): """ExecuteServiceEndpointRequest. [Preview API] Proxy for a GET request defined by a service endpoint. - :param :class:` ` service_endpoint_request: Service endpoint request. + :param :class:` ` service_endpoint_request: Service endpoint request. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -51,9 +51,9 @@ def execute_service_endpoint_request(self, service_endpoint_request, project, en def create_service_endpoint(self, endpoint, project): """CreateServiceEndpoint. [Preview API] Create a service endpoint. - :param :class:` ` endpoint: Service endpoint to create. + :param :class:` ` endpoint: Service endpoint to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -92,7 +92,7 @@ def get_service_endpoint_details(self, project, endpoint_id): [Preview API] Get the service endpoint details. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -176,11 +176,11 @@ def get_service_endpoints_by_names(self, project, endpoint_names, type=None, aut def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): """UpdateServiceEndpoint. [Preview API] Update a service endpoint. - :param :class:` ` endpoint: Service endpoint to update. + :param :class:` ` endpoint: Service endpoint to update. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint to update. :param str operation: Operation for the service endpoint. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v5_0/service_hooks/models.py b/azure-devops/azure/devops/v5_0/service_hooks/models.py index dedab0f5..580fa37b 100644 --- a/azure-devops/azure/devops/v5_0/service_hooks/models.py +++ b/azure-devops/azure/devops/v5_0/service_hooks/models.py @@ -13,15 +13,15 @@ class Consumer(Model): """Consumer. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` + :type actions: list of :class:`ConsumerAction ` :param authentication_type: Gets or sets this consumer's authentication type. :type authentication_type: object :param description: Gets or sets this consumer's localized description. :type description: str :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :type external_configuration: :class:`ExternalConfigurationDescriptor ` :param id: Gets or sets this consumer's identifier. :type id: str :param image_url: Gets or sets this consumer's image URL, if any. @@ -29,7 +29,7 @@ class Consumer(Model): :param information_url: Gets or sets this consumer's information URL, if any. :type information_url: str :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this consumer's localized name. :type name: str :param url: The url for this resource @@ -69,7 +69,7 @@ class ConsumerAction(Model): """ConsumerAction. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. :type allow_resource_version_override: bool :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. @@ -79,7 +79,7 @@ class ConsumerAction(Model): :param id: Gets or sets this action's identifier. :type id: str :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this action's localized name. :type name: str :param supported_event_types: Gets or sets this action's supported event identifiers. @@ -123,13 +123,13 @@ class Event(Model): :param created_date: Gets or sets the UTC-based date and time that this event was created. :type created_date: datetime :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` + :type detailed_message: :class:`FormattedEventMessage ` :param event_type: Gets or sets the type of this event. :type event_type: str :param id: Gets or sets the unique identifier of this event. :type id: str :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` + :type message: :class:`FormattedEventMessage ` :param publisher_id: Gets or sets the identifier of the publisher that raised this event. :type publisher_id: str :param resource: Gets or sets the data associated with this event. @@ -139,7 +139,7 @@ class Event(Model): :param resource_version: Gets or sets the version of the data associated with this event. :type resource_version: str :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` + :type session_token: :class:`SessionToken ` """ _attribute_map = { @@ -177,7 +177,7 @@ class EventTypeDescriptor(Model): :param id: A unique id for the event type :type id: str :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: A localized friendly name for the event type :type name: str :param publisher_id: A unique id for the publisher of this event type @@ -261,7 +261,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -289,7 +289,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -371,11 +371,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -417,7 +417,7 @@ class InputFilter(Model): """InputFilter. :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` + :type conditions: list of :class:`InputFilterCondition ` """ _attribute_map = { @@ -531,7 +531,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -541,7 +541,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -587,7 +587,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -611,7 +611,7 @@ class Notification(Model): :param created_date: Gets or sets date and time that this result was created. :type created_date: datetime :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` + :type details: :class:`NotificationDetails ` :param event_id: The event id associated with this notification :type event_id: str :param id: The notification id @@ -671,7 +671,7 @@ class NotificationDetails(Model): :param error_message: Gets or sets this notification detail's error message. :type error_message: str :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` + :type event: :class:`Event ` :param event_type: Gets or sets this notification detail's event type. :type event_type: str :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) @@ -757,7 +757,7 @@ class NotificationsQuery(Model): """NotificationsQuery. :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` + :type associated_subscriptions: list of :class:`Subscription ` :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. :type include_details: bool :param max_created_date: Optional maximum date at which the notification was created @@ -771,7 +771,7 @@ class NotificationsQuery(Model): :param publisher_id: Optional publisher id to restrict the results to :type publisher_id: str :param results: Results from the query - :type results: list of :class:`Notification ` + :type results: list of :class:`Notification ` :param result_type: Optional notification result type to filter results to :type result_type: object :param status: Optional notification status to filter results to @@ -779,7 +779,7 @@ class NotificationsQuery(Model): :param subscription_ids: Optional list of subscription ids to restrict the results to :type subscription_ids: list of str :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` + :type summary: list of :class:`NotificationSummary ` """ _attribute_map = { @@ -817,7 +817,7 @@ class NotificationSummary(Model): """NotificationSummary. :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` + :type results: list of :class:`NotificationResultsSummaryDetail ` :param subscription_id: The subscription id associated with this notification :type subscription_id: str """ @@ -837,19 +837,19 @@ class Publisher(Model): """Publisher. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Gets this publisher's localized description. :type description: str :param id: Gets this publisher's identifier. :type id: str :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets this publisher's localized name. :type name: str :param service_instance_type: The service instance type of the first party publisher. :type service_instance_type: str :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` + :type supported_events: list of :class:`EventTypeDescriptor ` :param url: The url for this resource :type url: str """ @@ -883,17 +883,17 @@ class PublisherEvent(Model): :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. :type diagnostics: dict :param event: The event being published - :type event: :class:`Event ` + :type event: :class:`Event ` :param is_filtered_event: Gets or sets flag for filtered events :type is_filtered_event: bool :param notification_data: Additional data that needs to be sent as part of notification to complement the Resource data in the Event :type notification_data: dict :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` + :type other_resource_versions: list of :class:`VersionedResource ` :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` + :type subscription: :class:`Subscription ` """ _attribute_map = { @@ -925,7 +925,7 @@ class PublishersQuery(Model): :param publisher_inputs: Filter for publisher inputs :type publisher_inputs: dict :param results: Results from the query - :type results: list of :class:`Publisher ` + :type results: list of :class:`Publisher ` """ _attribute_map = { @@ -1013,7 +1013,7 @@ class Subscription(Model): """Subscription. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param action_description: :type action_description: str :param consumer_action_id: @@ -1023,7 +1023,7 @@ class Subscription(Model): :param consumer_inputs: Consumer input values :type consumer_inputs: dict :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param event_description: @@ -1033,7 +1033,7 @@ class Subscription(Model): :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: :type modified_date: datetime :param probation_retries: @@ -1047,7 +1047,7 @@ class Subscription(Model): :param status: :type status: object :param subscriber: - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: :type url: str """ @@ -1101,11 +1101,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1129,15 +1129,15 @@ class SubscriptionsQuery(Model): :param consumer_id: Optional consumer id to restrict the results to (null for any) :type consumer_id: str :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` + :type consumer_input_filters: list of :class:`InputFilter ` :param event_type: Optional event type id to restrict the results to (null for any) :type event_type: str :param publisher_id: Optional publisher id to restrict the results to (null for any) :type publisher_id: str :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param results: Results from the query - :type results: list of :class:`Subscription ` + :type results: list of :class:`Subscription ` :param subscriber_id: Optional subscriber filter. :type subscriber_id: str """ @@ -1201,11 +1201,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/v5_0/service_hooks/service_hooks_client.py index d87212c5..4484b38e 100644 --- a/azure-devops/azure/devops/v5_0/service_hooks/service_hooks_client.py +++ b/azure-devops/azure/devops/v5_0/service_hooks/service_hooks_client.py @@ -31,7 +31,7 @@ def get_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None :param str consumer_id: ID for a consumer. :param str consumer_action_id: ID for a consumerActionId. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -73,7 +73,7 @@ def get_consumer(self, consumer_id, publisher_id=None): Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. :param str consumer_id: ID for a consumer. :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if consumer_id is not None: @@ -107,7 +107,7 @@ def get_subscription_diagnostics(self, subscription_id): """GetSubscriptionDiagnostics. [Preview API] :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -121,9 +121,9 @@ def get_subscription_diagnostics(self, subscription_id): def update_subscription_diagnostics(self, update_parameters, subscription_id): """UpdateSubscriptionDiagnostics. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -141,7 +141,7 @@ def get_event_type(self, publisher_id, event_type_id): Get a specific event type. :param str publisher_id: ID for a publisher. :param str event_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -174,7 +174,7 @@ def get_notification(self, subscription_id, notification_id): Get a specific notification for a subscription. :param str subscription_id: ID for a subscription. :param int notification_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -216,8 +216,8 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu def query_notifications(self, query): """QueryNotifications. Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') response = self._send(http_method='POST', @@ -228,9 +228,9 @@ def query_notifications(self, query): def query_input_values(self, input_values_query, publisher_id): """QueryInputValues. - :param :class:` ` input_values_query: + :param :class:` ` input_values_query: :param str publisher_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -247,7 +247,7 @@ def get_publisher(self, publisher_id): """GetPublisher. Get a specific service hooks publisher. :param str publisher_id: ID for a publisher. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if publisher_id is not None: @@ -271,8 +271,8 @@ def list_publishers(self): def query_publishers(self, query): """QueryPublishers. Query for service hook publishers. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') response = self._send(http_method='POST', @@ -284,8 +284,8 @@ def query_publishers(self, query): def create_subscription(self, subscription): """CreateSubscription. Create a subscription. - :param :class:` ` subscription: Subscription to be created. - :rtype: :class:` ` + :param :class:` ` subscription: Subscription to be created. + :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') response = self._send(http_method='POST', @@ -311,7 +311,7 @@ def get_subscription(self, subscription_id): """GetSubscription. Get a specific service hooks subscription. :param str subscription_id: ID for a subscription. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -349,9 +349,9 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. Update a subscription. ID for a subscription that you wish to update. - :param :class:` ` subscription: + :param :class:` ` subscription: :param str subscription_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if subscription_id is not None: @@ -367,8 +367,8 @@ def replace_subscription(self, subscription, subscription_id=None): def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. Query for service hook subscriptions. - :param :class:` ` query: - :rtype: :class:` ` + :param :class:` ` query: + :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') response = self._send(http_method='POST', @@ -380,9 +380,9 @@ def create_subscriptions_query(self, query): def create_test_notification(self, test_notification, use_real_data=None): """CreateTestNotification. Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. - :param :class:` ` test_notification: + :param :class:` ` test_notification: :param bool use_real_data: Only allow testing with real data in existing subscriptions. - :rtype: :class:` ` + :rtype: :class:` ` """ query_parameters = {} if use_real_data is not None: diff --git a/azure-devops/azure/devops/v5_0/task_agent/models.py b/azure-devops/azure/devops/v5_0/task_agent/models.py index ebd821b9..d1435154 100644 --- a/azure-devops/azure/devops/v5_0/task_agent/models.py +++ b/azure-devops/azure/devops/v5_0/task_agent/models.py @@ -131,7 +131,7 @@ class AzureManagementGroupQueryResult(Model): :param error_message: Error message in case of an exception :type error_message: str :param value: List of azure management groups - :type value: list of :class:`AzureManagementGroup ` + :type value: list of :class:`AzureManagementGroup ` """ _attribute_map = { @@ -179,7 +179,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -213,11 +213,11 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param name: :type name: str :param resource_url: @@ -259,7 +259,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -309,7 +309,7 @@ class DataSourceDetails(Model): :param data_source_url: :type data_source_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: :type parameters: dict :param resource_url: @@ -383,7 +383,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -405,7 +405,7 @@ class DeploymentGroupCreateParameter(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. - :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` :param pool_id: Identifier of the deployment pool in which deployment agents are registered. :type pool_id: int """ @@ -445,11 +445,11 @@ class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. :param columns_header: List of deployment group properties. And types of metrics provided for those properties. - :type columns_header: :class:`MetricsColumnsHeader ` + :type columns_header: :class:`MetricsColumnsHeader ` :param deployment_group: Deployment group. - :type deployment_group: :class:`DeploymentGroupReference ` + :type deployment_group: :class:`DeploymentGroupReference ` :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. - :type rows: list of :class:`MetricsRow ` + :type rows: list of :class:`MetricsRow ` """ _attribute_map = { @@ -473,9 +473,9 @@ class DeploymentGroupReference(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -517,7 +517,7 @@ class DeploymentMachine(Model): """DeploymentMachine. :param agent: Deployment agent. - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: Deployment target Identifier. :type id: int :param tags: Tags of the deployment target. @@ -545,9 +545,9 @@ class DeploymentMachineGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -569,13 +569,13 @@ class DeploymentPoolSummary(Model): """DeploymentPoolSummary. :param deployment_groups: List of deployment groups referring to the deployment pool. - :type deployment_groups: list of :class:`DeploymentGroupReference ` + :type deployment_groups: list of :class:`DeploymentGroupReference ` :param offline_agents_count: Number of deployment agents that are offline. :type offline_agents_count: int :param online_agents_count: Number of deployment agents that are online. :type online_agents_count: int :param pool: Deployment pool. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` """ _attribute_map = { @@ -637,7 +637,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -669,7 +669,7 @@ class Environment(Model): """Environment. :param created_by: Identity reference of the user who created the Environment. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Creation time of the Environment :type created_on: datetime :param description: Description of the Environment. @@ -677,13 +677,13 @@ class Environment(Model): :param id: Id of the Environment :type id: int :param last_modified_by: Identity reference of the user who last modified the Environment. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: Last modified time of the Environment :type last_modified_on: datetime :param name: Name of the Environment. :type name: str :param service_groups: - :type service_groups: list of :class:`ServiceGroupReference ` + :type service_groups: list of :class:`ServiceGroupReference ` """ _attribute_map = { @@ -773,7 +773,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -821,7 +821,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -903,11 +903,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -1035,7 +1035,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1045,7 +1045,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -1157,9 +1157,9 @@ class MetricsColumnsHeader(Model): """MetricsColumnsHeader. :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState - :type dimensions: list of :class:`MetricsColumnMetaData ` + :type dimensions: list of :class:`MetricsColumnMetaData ` :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. - :type metrics: list of :class:`MetricsColumnMetaData ` + :type metrics: list of :class:`MetricsColumnMetaData ` """ _attribute_map = { @@ -1211,7 +1211,7 @@ class PackageMetadata(Model): :param type: The type of package (e.g. "agent") :type type: str :param version: The package version. - :type version: :class:`PackageVersion ` + :type version: :class:`PackageVersion ` """ _attribute_map = { @@ -1377,9 +1377,9 @@ class ResourceUsage(Model): """ResourceUsage. :param resource_limit: - :type resource_limit: :class:`ResourceLimit ` + :type resource_limit: :class:`ResourceLimit ` :param running_requests: - :type running_requests: list of :class:`TaskAgentJobRequest ` + :type running_requests: list of :class:`TaskAgentJobRequest ` :param used_count: :type used_count: int :param used_minutes: @@ -1421,13 +1421,13 @@ class SecureFile(Model): """SecureFile. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: @@ -1465,11 +1465,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -1485,9 +1485,9 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1533,13 +1533,13 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -1565,7 +1565,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: :type data: dict :param type: @@ -1593,13 +1593,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1633,7 +1633,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1653,7 +1653,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1673,11 +1673,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1699,7 +1699,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: :type error_message: str :param result: - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: :type status_code: object """ @@ -1721,25 +1721,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1785,15 +1785,15 @@ class ServiceGroup(Model): """ServiceGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -1857,7 +1857,7 @@ class TaskAgentAuthorization(Model): :param client_id: Gets or sets the client identifier for this agent. :type client_id: str :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` + :type public_key: :class:`TaskAgentPublicKey ` """ _attribute_map = { @@ -1925,17 +1925,17 @@ class TaskAgentCloudRequest(Model): """TaskAgentCloudRequest. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param agent_cloud_id: :type agent_cloud_id: int :param agent_connected_time: :type agent_connected_time: datetime :param agent_data: - :type agent_data: :class:`object ` + :type agent_data: :class:`object ` :param agent_specification: - :type agent_specification: :class:`object ` + :type agent_specification: :class:`object ` :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param provisioned_time: :type provisioned_time: datetime :param provision_request_time: @@ -1979,7 +1979,7 @@ class TaskAgentCloudType(Model): :param display_name: Gets or sets the display name of agnet cloud type. :type display_name: str :param input_descriptors: Gets or sets the input descriptors - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of agent cloud type. :type name: str """ @@ -2003,7 +2003,7 @@ class TaskAgentDelaySource(Model): :param delays: :type delays: list of object :param task_agent: - :type task_agent: :class:`TaskAgentReference ` + :type task_agent: :class:`TaskAgentReference ` """ _attribute_map = { @@ -2021,17 +2021,17 @@ class TaskAgentJobRequest(Model): """TaskAgentJobRequest. :param agent_delays: - :type agent_delays: list of :class:`TaskAgentDelaySource ` + :type agent_delays: list of :class:`TaskAgentDelaySource ` :param agent_specification: - :type agent_specification: :class:`object ` + :type agent_specification: :class:`object ` :param assign_time: :type assign_time: datetime :param data: :type data: dict :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param expected_duration: :type expected_duration: object :param finish_time: @@ -2045,11 +2045,11 @@ class TaskAgentJobRequest(Model): :param locked_until: :type locked_until: datetime :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` + :type matched_agents: list of :class:`TaskAgentReference ` :param orchestration_id: :type orchestration_id: str :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -2067,7 +2067,7 @@ class TaskAgentJobRequest(Model): :param request_id: :type request_id: long :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` + :type reserved_agent: :class:`TaskAgentReference ` :param result: :type result: object :param scope_id: @@ -2177,13 +2177,13 @@ class TaskAgentPoolMaintenanceDefinition(Model): :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time :type max_concurrent_agents_percentage: int :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :type options: :class:`TaskAgentPoolMaintenanceOptions ` :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` """ _attribute_map = { @@ -2225,11 +2225,11 @@ class TaskAgentPoolMaintenanceJob(Model): :param orchestration_id: Orchestration/Plan Id for the maintenance job :type orchestration_id: str :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param queue_time: Time that the maintenance job was queued :type queue_time: datetime :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param result: The maintenance job result :type result: object :param start_time: Time that the maintenance job was started @@ -2237,7 +2237,7 @@ class TaskAgentPoolMaintenanceJob(Model): :param status: Status of the maintenance job :type status: object :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` :param warning_count: The total warning counts during the maintenance job :type warning_count: int """ @@ -2281,7 +2281,7 @@ class TaskAgentPoolMaintenanceJobTargetAgent(Model): """TaskAgentPoolMaintenanceJobTargetAgent. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param job_id: :type job_id: int :param result: @@ -2433,7 +2433,7 @@ class TaskAgentQueue(Model): :param name: Name of the queue :type name: str :param pool: Pool reference for this queue - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project_id: Project Id :type project_id: str """ @@ -2457,7 +2457,7 @@ class TaskAgentReference(Model): """TaskAgentReference. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param access_point: Gets the access point of the agent. :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. @@ -2505,9 +2505,9 @@ class TaskAgentSession(Model): """TaskAgentSession. :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` + :type encryption_key: :class:`TaskAgentSessionKey ` :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. :type owner_name: str :param session_id: Gets the unique identifier for this session. @@ -2559,15 +2559,15 @@ class TaskAgentUpdate(Model): :param current_state: The current state of this agent update :type current_state: str :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` + :type reason: :class:`TaskAgentUpdateReason ` :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_time: Gets the date on which this agent update was requested. :type request_time: datetime :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` + :type source_version: :class:`PackageVersion ` :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` + :type target_version: :class:`PackageVersion ` """ _attribute_map = { @@ -2609,7 +2609,7 @@ class TaskDefinition(Model): """TaskDefinition. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2621,11 +2621,11 @@ class TaskDefinition(Model): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2637,7 +2637,7 @@ class TaskDefinition(Model): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2647,7 +2647,7 @@ class TaskDefinition(Model): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2655,7 +2655,7 @@ class TaskDefinition(Model): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -2677,11 +2677,11 @@ class TaskDefinition(Model): :param show_environment_variables: :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str """ @@ -2833,7 +2833,7 @@ class TaskExecution(Model): """TaskExecution. :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` + :type exec_task: :class:`TaskReference ` :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } :type platform_instructions: dict """ @@ -2853,7 +2853,7 @@ class TaskGroup(TaskDefinition): """TaskGroup. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2865,11 +2865,11 @@ class TaskGroup(TaskDefinition): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2881,7 +2881,7 @@ class TaskGroup(TaskDefinition): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2891,7 +2891,7 @@ class TaskGroup(TaskDefinition): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2899,7 +2899,7 @@ class TaskGroup(TaskDefinition): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -2921,23 +2921,23 @@ class TaskGroup(TaskDefinition): :param show_environment_variables: :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str :param comment: Gets or sets comment. :type comment: str :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets date on which it got created. :type created_on: datetime :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. :type deleted: bool :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets date on which it got modified. :type modified_on: datetime :param owner: Gets or sets the owner. @@ -2947,7 +2947,7 @@ class TaskGroup(TaskDefinition): :param revision: Gets or sets revision. :type revision: int :param tasks: Gets or sets the tasks. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` """ _attribute_map = { @@ -3029,7 +3029,7 @@ class TaskGroupCreateParameter(Model): :param icon_url: Sets url icon of the task group. :type icon_url: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -3039,9 +3039,9 @@ class TaskGroupCreateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -3111,7 +3111,7 @@ class TaskGroupRevision(Model): """TaskGroupRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -3165,7 +3165,7 @@ class TaskGroupStep(Model): :param inputs: Gets or sets dictionary of inputs. :type inputs: dict :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. :type timeout_in_minutes: int """ @@ -3213,7 +3213,7 @@ class TaskGroupUpdateParameter(Model): :param id: Sets the unique identifier of this field. :type id: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -3225,9 +3225,9 @@ class TaskGroupUpdateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -3287,7 +3287,7 @@ class TaskHubLicenseDetails(Model): :param hosted_licenses_are_premium: :type hosted_licenses_are_premium: bool :param marketplace_purchased_hosted_licenses: - :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` + :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` :param msdn_users_count: :type msdn_users_count: int :param purchased_hosted_license_count: Microsoft-hosted licenses purchased from VSTS directly. @@ -3363,7 +3363,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -3423,7 +3423,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -3607,7 +3607,7 @@ class VariableGroup(Model): """VariableGroup. :param created_by: Gets or sets the identity who created the variable group. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when variable group was created. :type created_on: datetime :param description: Gets or sets description of the variable group. @@ -3617,13 +3617,13 @@ class VariableGroup(Model): :param is_shared: Indicates whether variable group is shared with other projects or not. :type is_shared: bool :param modified_by: Gets or sets the identity who modified the variable group. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets name of the variable group. :type name: str :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Gets or sets type of the variable group. :type type: str :param variables: Gets or sets variables contained in the variable group. @@ -3667,7 +3667,7 @@ class VariableGroupParameters(Model): :param name: Sets name of the variable group. :type name: str :param provider_data: Sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Sets type of the variable group. :type type: str :param variables: Sets variables contained in the variable group. @@ -3737,7 +3737,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -3776,15 +3776,15 @@ class DeploymentGroup(DeploymentGroupReference): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param description: Description of the deployment group. :type description: str :param machine_count: Number of deployment targets in the deployment group. :type machine_count: int :param machines: List of deployment targets in the deployment group. - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param machine_tags: List of unique tags across all deployment targets in the deployment group. :type machine_tags: list of str """ @@ -3816,11 +3816,11 @@ class DeploymentMachineGroup(DeploymentMachineGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param size: :type size: int """ @@ -3844,15 +3844,15 @@ class KubernetesServiceGroup(ServiceGroup): """KubernetesServiceGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -3888,7 +3888,7 @@ class TaskAgent(TaskAgentReference): """TaskAgent. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param access_point: Gets the access point of the agent. :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. @@ -3906,21 +3906,21 @@ class TaskAgent(TaskAgentReference): :param version: Gets the version of the agent. :type version: str :param assigned_agent_cloud_request: Gets the Agent Cloud Request that's currently associated with this agent - :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` + :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` + :type assigned_request: :class:`TaskAgentJobRequest ` :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` + :type authorization: :class:`TaskAgentAuthorization ` :param created_on: Gets the date on which this agent was created. :type created_on: datetime :param last_completed_request: Gets the last request which was completed by this agent. - :type last_completed_request: :class:`TaskAgentJobRequest ` + :type last_completed_request: :class:`TaskAgentJobRequest ` :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. :type max_parallelism: int :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` + :type pending_update: :class:`TaskAgentUpdate ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_changed_on: Gets the date on which the last connectivity status change occurred. :type status_changed_on: datetime :param system_capabilities: @@ -3989,13 +3989,13 @@ class TaskAgentPool(TaskAgentPoolReference): :param auto_size: Gets or sets a value indicating whether or not the pool should autosize itself based on the Agent Cloud Provider settings :type auto_size: bool :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime :param owner: Gets the identity who owns or administrates this pool. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` """ _attribute_map = { @@ -4049,7 +4049,7 @@ class TaskInputDefinition(TaskInputDefinitionBase): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ diff --git a/azure-devops/azure/devops/v5_0/task_agent/task_agent_client.py b/azure-devops/azure/devops/v5_0/task_agent/task_agent_client.py index b227b674..91d34731 100644 --- a/azure-devops/azure/devops/v5_0/task_agent/task_agent_client.py +++ b/azure-devops/azure/devops/v5_0/task_agent/task_agent_client.py @@ -28,8 +28,8 @@ def __init__(self, base_url=None, creds=None): def add_agent_cloud(self, agent_cloud): """AddAgentCloud. [Preview API] - :param :class:` ` agent_cloud: - :rtype: :class:` ` + :param :class:` ` agent_cloud: + :rtype: :class:` ` """ content = self._serialize.body(agent_cloud, 'TaskAgentCloud') response = self._send(http_method='POST', @@ -42,7 +42,7 @@ def delete_agent_cloud(self, agent_cloud_id): """DeleteAgentCloud. [Preview API] :param int agent_cloud_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if agent_cloud_id is not None: @@ -57,7 +57,7 @@ def get_agent_cloud(self, agent_cloud_id): """GetAgentCloud. [Preview API] :param int agent_cloud_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if agent_cloud_id is not None: @@ -91,9 +91,9 @@ def get_agent_cloud_types(self): def add_deployment_group(self, deployment_group, project): """AddDeploymentGroup. [Preview API] Create a deployment group. - :param :class:` ` deployment_group: Deployment group to create. + :param :class:` ` deployment_group: Deployment group to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -129,7 +129,7 @@ def get_deployment_group(self, project, deployment_group_id, action_filter=None, :param int deployment_group_id: ID of the deployment group. :param str action_filter: Get the deployment group only if this action can be performed on it. :param str expand: Include these additional details in the returned object. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -187,10 +187,10 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N def update_deployment_group(self, deployment_group, project, deployment_group_id): """UpdateDeploymentGroup. [Preview API] Update a deployment group. - :param :class:` ` deployment_group: Deployment group to update. + :param :class:` ` deployment_group: Deployment group to update. :param str project: Project ID or project name :param int deployment_group_id: ID of the deployment group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -246,7 +246,7 @@ def get_deployment_target(self, project, deployment_group_id, target_id, expand= :param int deployment_group_id: ID of the deployment group to which deployment target belongs. :param int target_id: ID of the deployment target to return. :param str expand: Include these additional details in the returned objects. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -337,9 +337,9 @@ def update_deployment_targets(self, machines, project, deployment_group_id): def add_task_group(self, task_group, project): """AddTaskGroup. [Preview API] Create a task group. - :param :class:` ` task_group: Task group object to create. + :param :class:` ` task_group: Task group object to create. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -414,10 +414,10 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi def update_task_group(self, task_group, project, task_group_id=None): """UpdateTaskGroup. [Preview API] Update a task group. - :param :class:` ` task_group: Task group to update. + :param :class:` ` task_group: Task group to update. :param str project: Project ID or project name :param str task_group_id: Id of the task group to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -435,9 +435,9 @@ def update_task_group(self, task_group, project, task_group_id=None): def add_variable_group(self, group, project): """AddVariableGroup. [Preview API] Add a variable group. - :param :class:` ` group: Variable group to add. + :param :class:` ` group: Variable group to add. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -471,7 +471,7 @@ def get_variable_group(self, project, group_id): [Preview API] Get a variable group. :param str project: Project ID or project name :param int group_id: Id of the variable group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -540,10 +540,10 @@ def get_variable_groups_by_id(self, project, group_ids): def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. [Preview API] Update a variable group. - :param :class:` ` group: Variable group to update. + :param :class:` ` group: Variable group to update. :param str project: Project ID or project name :param int group_id: Id of the variable group to update. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v5_0/test/models.py b/azure-devops/azure/devops/v5_0/test/models.py index c75b6732..65506b2f 100644 --- a/azure-devops/azure/devops/v5_0/test/models.py +++ b/azure-devops/azure/devops/v5_0/test/models.py @@ -741,7 +741,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -769,7 +769,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_0/tfvc/models.py b/azure-devops/azure/devops/v5_0/tfvc/models.py index 873d9065..6ccc9ded 100644 --- a/azure-devops/azure/devops/v5_0/tfvc/models.py +++ b/azure-devops/azure/devops/v5_0/tfvc/models.py @@ -249,7 +249,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -277,7 +277,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/models.py b/azure-devops/azure/devops/v5_0/uPack_packaging/models.py index b65a9ea5..aa87edac 100644 --- a/azure-devops/azure/devops/v5_0/uPack_packaging/models.py +++ b/azure-devops/azure/devops/v5_0/uPack_packaging/models.py @@ -31,7 +31,7 @@ class UPackLimitedPackageMetadataListResponse(Model): :param count: :type count: int :param value: - :type value: list of :class:`UPackLimitedPackageMetadata ` + :type value: list of :class:`UPackLimitedPackageMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py b/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py index 2af4ed58..e0592762 100644 --- a/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py +++ b/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def add_package(self, metadata, feed_id, package_name, package_version): """AddPackage. [Preview API] - :param :class:` ` metadata: + :param :class:` ` metadata: :param str feed_id: :param str package_name: :param str package_version: @@ -54,7 +54,7 @@ def get_package_metadata(self, feed_id, package_name, package_version, intent=No :param str package_name: :param str package_version: :param str intent: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -78,7 +78,7 @@ def get_package_versions_metadata(self, feed_id, package_name): [Preview API] :param str feed_id: :param str package_name: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: diff --git a/azure-devops/azure/devops/v5_0/universal/models.py b/azure-devops/azure/devops/v5_0/universal/models.py index d8bf7871..c45a06fe 100644 --- a/azure-devops/azure/devops/v5_0/universal/models.py +++ b/azure-devops/azure/devops/v5_0/universal/models.py @@ -73,7 +73,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -109,7 +109,7 @@ class PackageVersionDetails(Model): """PackageVersionDetails. :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -141,11 +141,11 @@ class UPackPackagesBatchRequest(Model): """UPackPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/universal/universal_client.py b/azure-devops/azure/devops/v5_0/universal/universal_client.py index 8a1ec220..9263246e 100644 --- a/azure-devops/azure/devops/v5_0/universal/universal_client.py +++ b/azure-devops/azure/devops/v5_0/universal/universal_client.py @@ -50,7 +50,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -68,7 +68,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] Restore a package version from the recycle bin to its associated feed. - :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. + :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. @@ -93,7 +93,7 @@ def delete_package_version(self, feed_id, package_name, package_version): :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -115,7 +115,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet :param str package_name: Name of the package. :param str package_version: Version of the package. :param bool show_deleted: True to show information for deleted versions - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if feed_id is not None: @@ -137,7 +137,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] Update information for a package version. - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. diff --git a/azure-devops/azure/devops/v5_0/wiki/models.py b/azure-devops/azure/devops/v5_0/wiki/models.py index 8f5db657..152c9244 100644 --- a/azure-devops/azure/devops/v5_0/wiki/models.py +++ b/azure-devops/azure/devops/v5_0/wiki/models.py @@ -23,7 +23,7 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: :type project: TeamProjectReference :param remote_url: diff --git a/azure-devops/azure/devops/v5_0/work/models.py b/azure-devops/azure/devops/v5_0/work/models.py index 8bedf9ec..8984be24 100644 --- a/azure-devops/azure/devops/v5_0/work/models.py +++ b/azure-devops/azure/devops/v5_0/work/models.py @@ -557,7 +557,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -585,7 +585,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1395,9 +1395,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -1756,7 +1756,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1775,13 +1775,13 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking/models.py index 9aadf25f..a811ce96 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking/models.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking/models.py @@ -15,7 +15,7 @@ class AccountMyWorkResult(Model): :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit :type query_size_limit_exceeded: bool :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` """ _attribute_map = { @@ -245,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -333,7 +333,7 @@ class IdentityReference(IdentityRef): """IdentityReference. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -443,7 +443,7 @@ class ProjectWorkItemStateColors(Model): :param project_name: Project name :type project_name: str :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` """ _attribute_map = { @@ -505,7 +505,7 @@ class QueryHierarchyItemsResult(Model): :param has_more: Indicates if the max return limit was hit but there are still more items :type has_more: bool :param value: The list of items - :type value: list of :class:`QueryHierarchyItem ` + :type value: list of :class:`QueryHierarchyItem ` """ _attribute_map = { @@ -875,9 +875,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -925,17 +925,17 @@ class WorkItemQueryClause(Model): """WorkItemQueryClause. :param clauses: Child clauses if the current clause is a logical operator - :type clauses: list of :class:`WorkItemQueryClause ` + :type clauses: list of :class:`WorkItemQueryClause ` :param field: Field associated with condition - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` :param field_value: Right side of the condition when a field to field comparison - :type field_value: :class:`WorkItemFieldReference ` + :type field_value: :class:`WorkItemFieldReference ` :param is_field_value: Determines if this is a field to field comparison :type is_field_value: bool :param logical_operator: Logical operator separating the condition clause :type logical_operator: object :param operator: The field operator - :type operator: :class:`WorkItemFieldOperation ` + :type operator: :class:`WorkItemFieldOperation ` :param value: Right side of the condition when a field to value comparison :type value: str """ @@ -967,17 +967,17 @@ class WorkItemQueryResult(Model): :param as_of: The date the query was run in the context of. :type as_of: datetime :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param query_result_type: The result type :type query_result_type: object :param query_type: The type of the query :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param work_item_relations: The work item links returned by the query. - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` :param work_items: The work items returned by the query. - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -1007,7 +1007,7 @@ class WorkItemQuerySortColumn(Model): :param descending: The direction to sort by. :type descending: bool :param field: A work item field. - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1066,11 +1066,11 @@ class WorkItemRelationUpdates(Model): """WorkItemRelationUpdates. :param added: List of newly added relations. - :type added: list of :class:`WorkItemRelation ` + :type added: list of :class:`WorkItemRelation ` :param removed: List of removed relations. - :type removed: list of :class:`WorkItemRelation ` + :type removed: list of :class:`WorkItemRelation ` :param updated: List of updated relations. - :type updated: list of :class:`WorkItemRelation ` + :type updated: list of :class:`WorkItemRelation ` """ _attribute_map = { @@ -1206,7 +1206,7 @@ class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str """ @@ -1239,7 +1239,7 @@ class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1288,7 +1288,7 @@ class WorkItemTypeStateColors(Model): """WorkItemTypeStateColors. :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` + :type state_colors: list of :class:`WorkItemStateColor ` :param work_item_type_name: Work item type name :type work_item_type_name: str """ @@ -1394,7 +1394,7 @@ class WorkItemDelete(WorkItemDeleteReference): :param url: REST API URL of the resource :type url: str :param resource: The work item object that was deleted. - :type resource: :class:`WorkItem ` + :type resource: :class:`WorkItem ` """ _attribute_map = { @@ -1421,7 +1421,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1440,17 +1440,17 @@ class WorkItemType(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param color: The color. :type color: str :param description: The description of the work item type. :type description: str :param field_instances: The fields that exist on the work item type. - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` :param fields: The fields that exist on the work item type. - :type fields: list of :class:`WorkItemTypeFieldInstance ` + :type fields: list of :class:`WorkItemTypeFieldInstance ` :param icon: The icon of the work item type. - :type icon: :class:`WorkItemIcon ` + :type icon: :class:`WorkItemIcon ` :param is_disabled: True if work item type is disabled :type is_disabled: bool :param name: Gets the name of the work item type. @@ -1458,7 +1458,7 @@ class WorkItemType(WorkItemTrackingResource): :param reference_name: The reference name of the work item type. :type reference_name: str :param states: Gets state information for the work item type. - :type states: list of :class:`WorkItemStateColor ` + :type states: list of :class:`WorkItemStateColor ` :param transitions: Gets the various state transition mappings in the work item type. :type transitions: dict :param xml_form: The XML form. @@ -1502,15 +1502,15 @@ class WorkItemTypeCategory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_work_item_type: Gets or sets the default type of the work item. - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param name: The name of the category. :type name: str :param reference_name: The reference name of the category. :type reference_name: str :param work_item_types: The work item types that belond to the category. - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -1542,7 +1542,7 @@ class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1574,17 +1574,17 @@ class WorkItemUpdate(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: List of updates to fields. :type fields: dict :param id: ID of update. :type id: int :param relations: List of updates to relations. - :type relations: :class:`WorkItemRelationUpdates ` + :type relations: :class:`WorkItemRelationUpdates ` :param rev: The revision number of work item update. :type rev: int :param revised_by: Identity for the work item update. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The work item updates revision date. :type revised_date: datetime :param work_item_id: The work item ID. @@ -1620,9 +1620,9 @@ class FieldDependentRule(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dependent_fields: The dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1642,15 +1642,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param children: The child query items inside a query folder. - :type children: list of :class:`QueryHierarchyItem ` + :type children: list of :class:`QueryHierarchyItem ` :param clauses: The clauses for a flat query. - :type clauses: :class:`WorkItemQueryClause ` + :type clauses: :class:`WorkItemQueryClause ` :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param created_by: The identity who created the query item. - :type created_by: :class:`IdentityReference ` + :type created_by: :class:`IdentityReference ` :param created_date: When the query item was created. :type created_date: datetime :param filter_options: The link query mode. @@ -1668,15 +1668,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param is_public: Indicates if this query item is public or private. :type is_public: bool :param last_executed_by: The identity who last ran the query. - :type last_executed_by: :class:`IdentityReference ` + :type last_executed_by: :class:`IdentityReference ` :param last_executed_date: When the query was last run. :type last_executed_date: datetime :param last_modified_by: The identity who last modified the query item. - :type last_modified_by: :class:`IdentityReference ` + :type last_modified_by: :class:`IdentityReference ` :param last_modified_date: When the query item was last modified. :type last_modified_date: datetime :param link_clauses: The link query clause. - :type link_clauses: :class:`WorkItemQueryClause ` + :type link_clauses: :class:`WorkItemQueryClause ` :param name: The name of the query item. :type name: str :param path: The path of the query item. @@ -1686,11 +1686,11 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param query_type: The type of query. :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param source_clauses: The source clauses in a tree or one-hop link query. - :type source_clauses: :class:`WorkItemQueryClause ` + :type source_clauses: :class:`WorkItemQueryClause ` :param target_clauses: The target clauses in a tree or one-hop link query. - :type target_clauses: :class:`WorkItemQueryClause ` + :type target_clauses: :class:`WorkItemQueryClause ` :param wiql: The WIQL text of the query :type wiql: str """ @@ -1760,13 +1760,13 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ @@ -1794,11 +1794,11 @@ class WorkItemClassificationNode(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. :type attributes: dict :param children: List of child nodes fetched. - :type children: list of :class:`WorkItemClassificationNode ` + :type children: list of :class:`WorkItemClassificationNode ` :param has_children: Flag that indicates if the classification node has any child nodes. :type has_children: bool :param id: Integer ID of the classification node. @@ -1840,9 +1840,9 @@ class WorkItemComment(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param revised_by: Identity of user who added the comment. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The date of comment. :type revised_date: datetime :param revision: The work item revision number. @@ -1874,9 +1874,9 @@ class WorkItemComments(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: Comments collection. - :type comments: list of :class:`WorkItemComment ` + :type comments: list of :class:`WorkItemComment ` :param count: The count of comments. :type count: int :param from_revision_count: Count of comments from the revision. @@ -1908,7 +1908,7 @@ class WorkItemField(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param can_sort_by: Indicates whether the field is sortable in server queries. :type can_sort_by: bool :param description: The description of the field. @@ -1930,7 +1930,7 @@ class WorkItemField(WorkItemTrackingResource): :param reference_name: The reference name of the field. :type reference_name: str :param supported_operations: The supported operations on this field. - :type supported_operations: list of :class:`WorkItemFieldOperation ` + :type supported_operations: list of :class:`WorkItemFieldOperation ` :param type: The type of the field. :type type: object :param usage: The usage of the field. @@ -1978,11 +1978,11 @@ class WorkItemHistory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param value: @@ -2012,7 +2012,7 @@ class WorkItemTemplateReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. @@ -2046,7 +2046,7 @@ class WorkItemTrackingReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2072,7 +2072,7 @@ class WorkItemRelationType(WorkItemTrackingReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2100,7 +2100,7 @@ class WorkItemTemplate(WorkItemTemplateReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking/work_item_tracking_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking/work_item_tracking_client.py index d578d5f6..f401f8eb 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking/work_item_tracking_client.py @@ -38,9 +38,9 @@ def get_work_artifact_link_types(self): def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): """QueryWorkItemsForArtifactUris. [Preview API] Queries work items linked to a given list of artifact URI. - :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. + :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -61,7 +61,7 @@ def create_attachment(self, upload_stream, project=None, file_name=None, upload_ :param str file_name: The name of the file :param str upload_type: Attachment upload type: Simple or Chunked :param str area_path: Target project Area Path - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -199,11 +199,11 @@ def get_root_nodes(self, project, depth=None): def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. Create new or update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -251,7 +251,7 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. :param int depth: Depth of children to fetch. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -273,11 +273,11 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non def update_classification_node(self, posted_node, project, structure_group, path=None): """UpdateClassificationNode. Update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -300,7 +300,7 @@ def get_comment(self, id, revision, project=None): :param int id: Work item id :param int revision: Revision for which the comment need to be fetched :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -323,7 +323,7 @@ def get_comments(self, id, project=None, from_revision=None, top=None, order=Non :param int from_revision: Revision from which comments are to be fetched (default is 1) :param int top: The number of comments to return (default is 200) :param str order: Ascending or descending by revision id (default is ascending) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -347,9 +347,9 @@ def get_comments(self, id, project=None, from_revision=None, top=None, order=Non def create_field(self, work_item_field, project=None): """CreateField. Create a new field. - :param :class:` ` work_item_field: New field definition + :param :class:` ` work_item_field: New field definition :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -383,7 +383,7 @@ def get_field(self, field_name_or_ref_name, project=None): Gets information on a specific field. :param str field_name_or_ref_name: Field simple name or reference name :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -419,10 +419,10 @@ def get_fields(self, project=None, expand=None): def create_query(self, posted_query, project, query): """CreateQuery. Creates a query, or moves a query. - :param :class:` ` posted_query: The query to create. + :param :class:` ` posted_query: The query to create. :param str project: Project ID or project name :param str query: The parent id or path under which the query is to be created. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -487,7 +487,7 @@ def get_query(self, project, query, expand=None, depth=None, include_deleted=Non :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. :param int depth: In the folder of queries, return child queries and folders to this depth. :param bool include_deleted: Include deleted queries and folders - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -516,7 +516,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted :param int top: The number of queries to return (Default is 50 and maximum is 200). :param str expand: :param bool include_deleted: Include deleted queries and folders - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -540,11 +540,11 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted def update_query(self, query_update, project, query, undelete_descendants=None): """UpdateQuery. Update a query or a folder. This allows you to update, rename and move queries and folders. - :param :class:` ` query_update: The query to update. + :param :class:` ` query_update: The query to update. :param str project: Project ID or project name :param str query: The ID or path for the query to update. :param bool undelete_descendants: Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -566,7 +566,7 @@ def update_query(self, query_update, project, query, undelete_descendants=None): def get_queries_batch(self, query_get_request, project): """GetQueriesBatch. Gets a list of queries by ids (Maximum 1000) - :param :class:` ` query_get_request: + :param :class:` ` query_get_request: :param str project: Project ID or project name :rtype: [QueryHierarchyItem] """ @@ -602,7 +602,7 @@ def get_deleted_work_item(self, id, project=None): Gets a deleted work item from Recycle Bin. :param int id: ID of the work item to be returned :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -654,10 +654,10 @@ def get_deleted_work_item_shallow_references(self, project=None): def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. Restores the deleted work item from Recycle Bin. - :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false + :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false :param int id: ID of the work item to be restored :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -679,7 +679,7 @@ def get_revision(self, id, revision_number, project=None, expand=None): :param int revision_number: :param str project: Project ID or project name :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -730,9 +730,9 @@ def get_revisions(self, id, project=None, top=None, skip=None, expand=None): def create_template(self, template, team_context): """CreateTemplate. [Preview API] Creates a template - :param :class:` ` template: Template contents - :param :class:` ` team_context: The team context for the operation - :rtype: :class:` ` + :param :class:` ` template: Template contents + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` """ project = None team = None @@ -762,7 +762,7 @@ def create_template(self, template, team_context): def get_templates(self, team_context, workitemtypename=None): """GetTemplates. [Preview API] Gets template - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str workitemtypename: Optional, When specified returns templates for given Work item type. :rtype: [WorkItemTemplateReference] """ @@ -796,7 +796,7 @@ def get_templates(self, team_context, workitemtypename=None): def delete_template(self, team_context, template_id): """DeleteTemplate. [Preview API] Deletes the template with given id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id """ project = None @@ -826,9 +826,9 @@ def delete_template(self, team_context, template_id): def get_template(self, team_context, template_id): """GetTemplate. [Preview API] Gets the template with specified id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template Id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -858,10 +858,10 @@ def get_template(self, team_context, template_id): def replace_template(self, template_content, team_context, template_id): """ReplaceTemplate. [Preview API] Replace template contents - :param :class:` ` template_content: Template contents to replace with - :param :class:` ` team_context: The team context for the operation + :param :class:` ` template_content: Template contents to replace with + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -896,7 +896,7 @@ def get_update(self, id, update_number, project=None): :param int id: :param int update_number: :param str project: Project ID or project name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -940,11 +940,11 @@ def get_updates(self, id, project=None, top=None, skip=None): def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. Gets the results of the query given its WIQL. - :param :class:` ` wiql: The query containing the WIQL. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` wiql: The query containing the WIQL. + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -981,7 +981,7 @@ def get_query_result_count(self, id, team_context=None, time_precision=None, top """GetQueryResultCount. Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. :rtype: int @@ -1021,10 +1021,10 @@ def query_by_id(self, id, team_context=None, time_precision=None, top=None): """QueryById. Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. - :rtype: :class:` ` + :rtype: :class:` ` """ project = None team = None @@ -1063,7 +1063,7 @@ def get_work_item_icon_json(self, icon, color=None, v=None): :param str icon: The name of the icon :param str color: The 6-digit hex color for the icon :param int v: The version of the icon (used only for cache invalidation) - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if icon is not None: @@ -1154,7 +1154,7 @@ def get_reporting_links_by_link_type(self, project=None, link_types=None, types= :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. :param str continuation_token: Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. :param datetime start_date_time: Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1181,7 +1181,7 @@ def get_relation_type(self, relation): """GetRelationType. Gets the work item relation type definition. :param str relation: The relation name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if relation is not None: @@ -1217,7 +1217,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed :param int max_page_size: The maximum number of results to return in this batch - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1257,12 +1257,12 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): """ReadReportingRevisionsPost. Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. - :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format + :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1286,13 +1286,13 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): """CreateWorkItem. Creates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item :param str project: Project ID or project name :param str type: The work item type of the work item to create :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1324,7 +1324,7 @@ def get_work_item_template(self, project, type, fields=None, as_of=None, expand= :param str fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1351,7 +1351,7 @@ def delete_work_item(self, id, project=None, destroy=None): :param int id: ID of the work item to be deleted :param str project: Project ID or project name :param bool destroy: Optional parameter, if set to true, the work item is deleted permanently - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1376,7 +1376,7 @@ def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): :param [str] fields: Comma-separated list of requested fields :param datetime as_of: AsOf UTC date time string :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1435,13 +1435,13 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None): """UpdateWorkItem. Updates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update :param str project: Project ID or project name :param bool validate_only: Indicate if you only want to validate the changes without saving the work item :param bool bypass_rules: Do not enforce the work item type rules on this update :param bool suppress_notifications: Do not fire any notifications for this change - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1468,7 +1468,7 @@ def update_work_item(self, document, id, project=None, validate_only=None, bypas def get_work_items_batch(self, work_item_get_request, project=None): """GetWorkItemsBatch. Gets work items for a list of work item ids (Maximum 200) - :param :class:` ` work_item_get_request: + :param :class:` ` work_item_get_request: :param str project: Project ID or project name :rtype: [WorkItem] """ @@ -1522,7 +1522,7 @@ def get_work_item_type_category(self, project, category): Get specific work item type category by name. :param str project: Project ID or project name :param str category: The category name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1540,7 +1540,7 @@ def get_work_item_type(self, project, type): Returns a work item type definition. :param str project: Project ID or project name :param str type: Work item type name - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: @@ -1598,7 +1598,7 @@ def get_work_item_type_field_with_references(self, project, type, field, expand= :param str type: Work item type. :param str field: :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if project is not None: diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py index 30c0369a..c69dda53 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process/models.py @@ -45,7 +45,7 @@ class Control(Model): """Control. :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param control_type: Type of the control. :type control_type: str :param height: Height of the control, for html controls. @@ -137,9 +137,9 @@ class CreateProcessRuleRequest(Model): """CreateProcessRuleRequest. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -253,9 +253,9 @@ class FieldRuleModel(Model): """FieldRuleModel. :param actions: - :type actions: list of :class:`RuleActionModel ` + :type actions: list of :class:`RuleActionModel ` :param conditions: - :type conditions: list of :class:`RuleConditionModel ` + :type conditions: list of :class:`RuleConditionModel ` :param friendly_name: :type friendly_name: str :param id: @@ -289,11 +289,11 @@ class FormLayout(Model): """FormLayout. :param extensions: Gets and sets extensions list. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` + :type pages: list of :class:`Page ` :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` + :type system_controls: list of :class:`Control ` """ _attribute_map = { @@ -313,9 +313,9 @@ class Group(Model): """Group. :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` + :type controls: list of :class:`Control ` :param height: The height for the contribution. :type height: int :param id: The id for the layout node. @@ -381,7 +381,7 @@ class Page(Model): """Page. :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param id: The id for the layout node. :type id: str :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. @@ -399,7 +399,7 @@ class Page(Model): :param page_type: The icon for the page. :type page_type: object :param sections: The sections of the page. - :type sections: list of :class:`Section ` + :type sections: list of :class:`Section ` :param visible: A value indicating if the page should be hidden or not. :type visible: bool """ @@ -475,9 +475,9 @@ class ProcessBehavior(Model): :param description: . Description :type description: str :param fields: Process Behavior Fields. - :type fields: list of :class:`ProcessBehaviorField ` + :type fields: list of :class:`ProcessBehaviorField ` :param inherits: Parent behavior reference. - :type inherits: :class:`ProcessBehaviorReference ` + :type inherits: :class:`ProcessBehaviorReference ` :param name: Behavior Name. :type name: str :param rank: Rank of the behavior @@ -621,7 +621,7 @@ class ProcessInfo(Model): :param parent_process_type_id: ID of the parent process. :type parent_process_type_id: str :param projects: Projects in this process to which the user is subscribed to. - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param reference_name: Reference name of the process. :type reference_name: str :param type_id: The ID of the process. @@ -661,9 +661,9 @@ class ProcessModel(Model): :param name: Name of the process :type name: str :param projects: Projects in this process - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param properties: Properties of the process - :type properties: :class:`ProcessProperties ` + :type properties: :class:`ProcessProperties ` :param reference_name: Reference name of the process :type reference_name: str :param type_id: The ID of the process @@ -725,9 +725,9 @@ class ProcessRule(CreateProcessRuleRequest): """ProcessRule. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -761,7 +761,7 @@ class ProcessWorkItemType(Model): """ProcessWorkItemType. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param color: Color hexadecimal code to represent the work item type :type color: str :param customization: Indicates the type of customization on this work item System work item types are inherited from parent process but not modified Inherited work item types are modified work item that were inherited from parent process Custom work item types are work item types that were created in the current process @@ -775,13 +775,13 @@ class ProcessWorkItemType(Model): :param is_disabled: Indicates if a work item type is disabled :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: Name of the work item type :type name: str :param reference_name: Reference name of work item type :type reference_name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: Url of the work item type :type url: str """ @@ -997,7 +997,7 @@ class Section(Model): """Section. :param groups: List of child groups in this section - :type groups: list of :class:`Group ` + :type groups: list of :class:`Group ` :param id: The id for the layout node. :type id: str :param overridden: A value indicating whether this layout node has been overridden by a child layout. @@ -1049,9 +1049,9 @@ class UpdateProcessRuleRequest(CreateProcessRuleRequest): """UpdateProcessRuleRequest. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -1167,11 +1167,11 @@ class WorkItemBehavior(Model): :param description: :type description: str :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` + :type fields: list of :class:`WorkItemBehaviorField ` :param id: :type id: str :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` + :type inherits: :class:`WorkItemBehaviorReference ` :param name: :type name: str :param overriden: @@ -1329,7 +1329,7 @@ class WorkItemTypeBehavior(Model): """WorkItemTypeBehavior. :param behavior: Reference to the behavior of a work item type - :type behavior: :class:`WorkItemBehaviorReference ` + :type behavior: :class:`WorkItemBehaviorReference ` :param is_default: If true the work item type is the default work item type in the behavior :type is_default: bool :param url: URL of the work item type behavior @@ -1353,7 +1353,7 @@ class WorkItemTypeModel(Model): """WorkItemTypeModel. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param class_: :type class_: object :param color: @@ -1369,11 +1369,11 @@ class WorkItemTypeModel(Model): :param is_disabled: :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: :type name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: :type url: str """ diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py index 27c5e797..692ae4e3 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_process_behavior(self, behavior, process_id): """CreateProcessBehavior. [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -65,7 +65,7 @@ def get_process_behavior(self, process_id, behavior_ref_name, expand=None): :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -105,10 +105,10 @@ def get_process_behaviors(self, process_id, expand=None): def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): """UpdateProcessBehavior. [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: + :param :class:` ` behavior_data: :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -126,11 +126,11 @@ def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): def create_control_in_group(self, control, process_id, wit_ref_name, group_id): """CreateControlInGroup. [Preview API] Creates a control in a group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to add the control to. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -150,13 +150,13 @@ def create_control_in_group(self, control, process_id, wit_ref_name, group_id): def move_control_to_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): """MoveControlToGroup. [Preview API] Moves a control to a specified group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to move the control to. :param str control_id: The ID of the control. :param str remove_from_group_id: The group ID to remove the control from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -204,12 +204,12 @@ def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_ def update_control(self, control, process_id, wit_ref_name, group_id, control_id): """UpdateControl. [Preview API] Updates a control on the work item form. - :param :class:` ` control: The updated control. + :param :class:` ` control: The updated control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group. :param str control_id: The ID of the control. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -231,10 +231,10 @@ def update_control(self, control, process_id, wit_ref_name, group_id, control_id def add_field_to_work_item_type(self, field, process_id, wit_ref_name): """AddFieldToWorkItemType. [Preview API] Adds a field to a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -273,7 +273,7 @@ def get_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str field_ref_name: The reference name of the field. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -310,11 +310,11 @@ def remove_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref_name): """UpdateWorkItemTypeField. [Preview API] Updates a field in a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str field_ref_name: The reference name of the field. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -334,12 +334,12 @@ def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref def add_group(self, group, process_id, wit_ref_name, page_id, section_id): """AddGroup. [Preview API] Adds a group to the work item form. - :param :class:` ` group: The group. + :param :class:` ` group: The group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page to add the group to. :param str section_id: The ID of the section to add the group to. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -361,7 +361,7 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): """MoveGroupToPage. [Preview API] Moves a group to a different page and section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. @@ -369,7 +369,7 @@ def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_i :param str group_id: The ID of the group. :param str remove_from_page_id: ID of the page to remove the group from. :param str remove_from_section_id: ID of the section to remove the group from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -399,14 +399,14 @@ def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_i def move_group_to_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): """MoveGroupToSection. [Preview API] Moves a group to a different section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. :param str section_id: The ID of the section the group is in. :param str group_id: The ID of the group. :param str remove_from_section_id: ID of the section to remove the group from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -459,13 +459,13 @@ def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): def update_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): """UpdateGroup. [Preview API] Updates a group in the work item form. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. :param str section_id: The ID of the section the group is in. :param str group_id: The ID of the group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -491,7 +491,7 @@ def get_form_layout(self, process_id, wit_ref_name): [Preview API] Gets the form layout. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -507,8 +507,8 @@ def get_form_layout(self, process_id, wit_ref_name): def create_list(self, picklist): """CreateList. [Preview API] Creates a picklist. - :param :class:` ` picklist: Picklist - :rtype: :class:` ` + :param :class:` ` picklist: Picklist + :rtype: :class:` ` """ content = self._serialize.body(picklist, 'PickList') response = self._send(http_method='POST', @@ -534,7 +534,7 @@ def get_list(self, list_id): """GetList. [Preview API] Returns a picklist. :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -558,9 +558,9 @@ def get_lists_metadata(self): def update_list(self, picklist, list_id): """UpdateList. [Preview API] Updates a list. - :param :class:` ` picklist: + :param :class:` ` picklist: :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -576,10 +576,10 @@ def update_list(self, picklist, list_id): def add_page(self, page, process_id, wit_ref_name): """AddPage. [Preview API] Adds a page to the work item form. - :param :class:` ` page: The page. + :param :class:` ` page: The page. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -616,10 +616,10 @@ def remove_page(self, process_id, wit_ref_name, page_id): def update_page(self, page, process_id, wit_ref_name): """UpdatePage. [Preview API] Updates a page on the work item form - :param :class:` ` page: The page + :param :class:` ` page: The page :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -637,8 +637,8 @@ def update_page(self, page, process_id, wit_ref_name): def create_new_process(self, create_request): """CreateNewProcess. [Preview API] Creates a process. - :param :class:` ` create_request: CreateProcessModel. - :rtype: :class:` ` + :param :class:` ` create_request: CreateProcessModel. + :rtype: :class:` ` """ content = self._serialize.body(create_request, 'CreateProcessModel') response = self._send(http_method='POST', @@ -663,9 +663,9 @@ def delete_process_by_id(self, process_type_id): def edit_process(self, update_request, process_type_id): """EditProcess. [Preview API] Edit a process of a specific ID. - :param :class:` ` update_request: + :param :class:` ` update_request: :param str process_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -698,7 +698,7 @@ def get_process_by_its_id(self, process_type_id, expand=None): [Preview API] Get a single process of a specified ID. :param str process_type_id: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -716,10 +716,10 @@ def get_process_by_its_id(self, process_type_id, expand=None): def add_process_work_item_type_rule(self, process_rule_create, process_id, wit_ref_name): """AddProcessWorkItemTypeRule. [Preview API] Adds a rule to work item type in the process. - :param :class:` ` process_rule_create: + :param :class:` ` process_rule_create: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -759,7 +759,7 @@ def get_process_work_item_type_rule(self, process_id, wit_ref_name, rule_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -795,11 +795,11 @@ def get_process_work_item_type_rules(self, process_id, wit_ref_name): def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_name, rule_id): """UpdateProcessWorkItemTypeRule. [Preview API] Updates a rule in the work item type of the process. - :param :class:` ` process_rule: + :param :class:` ` process_rule: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -819,10 +819,10 @@ def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_n def create_state_definition(self, state_model, process_id, wit_ref_name): """CreateStateDefinition. [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -862,7 +862,7 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -898,11 +898,11 @@ def get_state_definitions(self, process_id, wit_ref_name): def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. [Preview API] Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden. - :param :class:` ` hide_state_model: + :param :class:` ` hide_state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -922,11 +922,11 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): """UpdateStateDefinition. [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -946,9 +946,9 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i def create_process_work_item_type(self, work_item_type, process_id): """CreateProcessWorkItemType. [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: + :param :class:` ` work_item_type: :param str process_id: The ID of the process on which to create work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -983,7 +983,7 @@ def get_process_work_item_type(self, process_id, wit_ref_name, expand=None): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str expand: Flag to determine what properties of work item type to return - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1023,10 +1023,10 @@ def get_process_work_item_types(self, process_id, expand=None): def update_process_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateProcessWorkItemType. [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: + :param :class:` ` work_item_type_update: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1044,10 +1044,10 @@ def update_process_work_item_type(self, work_item_type_update, process_id, wit_r def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """AddBehaviorToWorkItemType. [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1068,7 +1068,7 @@ def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1123,10 +1123,10 @@ def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behav def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """UpdateBehaviorToWorkItemType. [Preview API] Updates a behavior for the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/models.py index b4bda18a..508cd97c 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/models.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/models.py @@ -21,7 +21,7 @@ class AdminBehavior(Model): :param description: The description of the behavior. :type description: str :param fields: List of behavior fields. - :type fields: list of :class:`AdminBehaviorField ` + :type fields: list of :class:`AdminBehaviorField ` :param id: Behavior ID. :type id: str :param inherits: Parent behavior reference. @@ -125,7 +125,7 @@ class ProcessImportResult(Model): :param promote_job_id: The promote job identifier. :type promote_job_id: str :param validation_results: The list of validation results. - :type validation_results: list of :class:`ValidationIssue ` + :type validation_results: list of :class:`ValidationIssue ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py index 81985612..940b500d 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/work_item_tracking_process_template_client.py @@ -30,7 +30,7 @@ def get_behavior(self, process_id, behavior_ref_name): [Preview API] Returns a behavior for the process. :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -64,7 +64,7 @@ def check_template_existence(self, upload_stream, **kwargs): """CheckTemplateExistence. [Preview API] Check if process template exists. :param object upload_stream: Stream to upload - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'CheckTemplateExistence' @@ -107,7 +107,7 @@ def import_process_template(self, upload_stream, ignore_warnings=None, **kwargs) [Preview API] Imports a process from zip file. :param object upload_stream: Stream to upload :param bool ignore_warnings: Default value is false - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} route_values['action'] = 'Import' @@ -132,7 +132,7 @@ def import_process_template_status(self, id): """ImportProcessTemplateStatus. [Preview API] Tells whether promote has completed for the specified promote job ID. :param str id: The ID of the promote job operation - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if id is not None: diff --git a/azure-devops/azure/devops/v5_1/accounts/models.py b/azure-devops/azure/devops/v5_1/accounts/models.py index 385e5db2..14e2c7dd 100644 --- a/azure-devops/azure/devops/v5_1/accounts/models.py +++ b/azure-devops/azure/devops/v5_1/accounts/models.py @@ -41,7 +41,7 @@ class Account(Model): :param organization_name: Organization that created the account :type organization_name: str :param properties: Extended properties - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_reason: Reason for current status :type status_reason: str """ @@ -95,9 +95,9 @@ class AccountCreateInfoInternal(Model): :param organization: :type organization: str :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` + :type preferences: :class:`AccountPreferencesInternal ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param service_definitions: :type service_definitions: list of { key: str; value: str } """ diff --git a/azure-devops/azure/devops/v5_1/build/models.py b/azure-devops/azure/devops/v5_1/build/models.py index 3829d54a..d17dbe4f 100644 --- a/azure-devops/azure/devops/v5_1/build/models.py +++ b/azure-devops/azure/devops/v5_1/build/models.py @@ -13,13 +13,13 @@ class AgentPoolQueue(Model): """AgentPoolQueue. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: The ID of the queue. :type id: int :param name: The name of the queue. :type name: str :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param url: The full http link to the resource. :type url: str """ @@ -49,11 +49,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param run_summary_by_outcome: :type run_summary_by_outcome: dict :param run_summary_by_state: @@ -201,7 +201,7 @@ class ArtifactResource(Model): """ArtifactResource. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param data: Type-specific data about the artifact. :type data: str :param download_url: A link to download the resource. @@ -277,7 +277,7 @@ class Attachment(Model): """Attachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name of the attachment. :type name: str """ @@ -317,25 +317,25 @@ class Build(Model): """Build. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param build_number: The build number/name of the build. :type build_number: str :param build_number_revision: The build number revision. :type build_number_revision: int :param controller: The build controller. This is only set if the definition type is Xaml. - :type controller: :class:`BuildController ` + :type controller: :class:`BuildController ` :param definition: The definition associated with the build. - :type definition: :class:`DefinitionReference ` + :type definition: :class:`DefinitionReference ` :param deleted: Indicates whether the build has been deleted. :type deleted: bool :param deleted_by: The identity of the process or person that deleted the build. - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: The date the build was deleted. :type deleted_date: datetime :param deleted_reason: The description of how the build was deleted. :type deleted_reason: str :param demands: A list of demands that represents the agent capabilities required by this build. - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param finish_time: The time that the build was completed. :type finish_time: datetime :param id: The ID of the build. @@ -343,27 +343,27 @@ class Build(Model): :param keep_forever: Indicates whether the build should be skipped by retention policies. :type keep_forever: bool :param last_changed_by: The identity representing the process or person that last changed the build. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the build was last changed. :type last_changed_date: datetime :param logs: Information about the build logs. - :type logs: :class:`BuildLogReference ` + :type logs: :class:`BuildLogReference ` :param orchestration_plan: The orchestration plan for the build. - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` :param parameters: The parameters for the build. :type parameters: str :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` + :type plans: list of :class:`TaskOrchestrationPlanReference ` :param priority: The build's priority. :type priority: object :param project: The team project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param quality: The quality of the xaml build (good, bad, etc.) :type quality: str :param queue: The queue. This is only set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param queue_options: Additional options for queueing the build. :type queue_options: object :param queue_position: The current position of the build in the queue. @@ -373,11 +373,11 @@ class Build(Model): :param reason: The reason that the build was created. :type reason: object :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param requested_by: The identity that queued the build. - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param requested_for: The identity on whose behalf the build was queued. - :type requested_for: :class:`IdentityRef ` + :type requested_for: :class:`IdentityRef ` :param result: The build result. :type result: object :param retained_by_release: Indicates whether the build is retained by a release. @@ -393,7 +393,7 @@ class Build(Model): :param tags: :type tags: list of str :param triggered_by_build: The build that triggered this build via a Build completion trigger. - :type triggered_by_build: :class:`Build ` + :type triggered_by_build: :class:`Build ` :param trigger_info: Sourceprovider-specific information about what triggered the build :type trigger_info: dict :param uri: The URI of the build. @@ -401,7 +401,7 @@ class Build(Model): :param url: The REST URL of the build. :type url: str :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` + :type validation_results: list of :class:`BuildRequestValidationResult ` """ _attribute_map = { @@ -505,7 +505,7 @@ class BuildArtifact(Model): :param name: The name of the artifact. :type name: str :param resource: The actual resource. - :type resource: :class:`ArtifactResource ` + :type resource: :class:`ArtifactResource ` """ _attribute_map = { @@ -545,7 +545,7 @@ class BuildDefinitionRevision(Model): """BuildDefinitionRevision. :param changed_by: The identity of the person or process that changed the definition. - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: The date and time that the definition was changed. :type changed_date: datetime :param change_type: The change type (add, edit, delete). @@ -601,7 +601,7 @@ class BuildDefinitionStep(Model): :param ref_name: The reference name for this step. :type ref_name: str :param task: The task associated with this step. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: The time, in minutes, that this step is allowed to run. :type timeout_in_minutes: int """ @@ -653,7 +653,7 @@ class BuildDefinitionTemplate(Model): :param name: The name of the template. :type name: str :param template: The actual template. - :type template: :class:`BuildDefinition ` + :type template: :class:`BuildDefinition ` """ _attribute_map = { @@ -701,7 +701,7 @@ class BuildDefinitionTemplate3_2(Model): :param name: :type name: str :param template: - :type template: :class:`BuildDefinition3_2 ` + :type template: :class:`BuildDefinition3_2 ` """ _attribute_map = { @@ -809,7 +809,7 @@ class BuildOption(Model): """BuildOption. :param definition: A reference to the build option. - :type definition: :class:`BuildOptionDefinitionReference ` + :type definition: :class:`BuildOptionDefinitionReference ` :param enabled: Indicates whether the behavior is enabled. :type enabled: bool :param inputs: @@ -1043,9 +1043,9 @@ class BuildSettings(Model): :param days_to_keep_deleted_builds_before_destroy: The number of days to keep records of deleted builds. :type days_to_keep_deleted_builds_before_destroy: int :param default_retention_policy: The default retention policy. - :type default_retention_policy: :class:`RetentionPolicy ` + :type default_retention_policy: :class:`RetentionPolicy ` :param maximum_retention_policy: The maximum retention policy. - :type maximum_retention_policy: :class:`RetentionPolicy ` + :type maximum_retention_policy: :class:`RetentionPolicy ` """ _attribute_map = { @@ -1065,7 +1065,7 @@ class Change(Model): """Change. :param author: The author of the change. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param display_uri: The location of a user-friendly representation of the resource. :type display_uri: str :param id: The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. @@ -1123,7 +1123,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -1185,7 +1185,7 @@ class DefinitionReference(Model): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -1273,19 +1273,19 @@ class Folder(Model): """Folder. :param created_by: The process or person who created the folder. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: The date the folder was created. :type created_on: datetime :param description: The description. :type description: str :param last_changed_by: The process or person that last changed the folder. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the folder was last changed. :type last_changed_date: datetime :param path: The full path. :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -1313,7 +1313,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1341,7 +1341,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1457,11 +1457,11 @@ class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :type data_source_bindings: list of :class:`DataSourceBindingBase ` :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` + :type inputs: list of :class:`TaskInputDefinitionBase ` :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` """ _attribute_map = { @@ -1481,9 +1481,9 @@ class PullRequest(Model): """PullRequest. :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the pull request. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param current_state: Current state of the pull request, e.g. open, merged, closed, conflicts, etc. :type current_state: str :param description: Description for the pull request. @@ -1693,7 +1693,7 @@ class SourceProviderAttributes(Model): :param supported_capabilities: The capabilities supported by this source provider. :type supported_capabilities: dict :param supported_triggers: The types of triggers supported by this source provider. - :type supported_triggers: list of :class:`SupportedTrigger ` + :type supported_triggers: list of :class:`SupportedTrigger ` """ _attribute_map = { @@ -1717,7 +1717,7 @@ class SourceRepositories(Model): :param page_length: The number of repositories requested for each page :type page_length: int :param repositories: A list of repositories - :type repositories: list of :class:`SourceRepository ` + :type repositories: list of :class:`SourceRepository ` :param total_page_count: The total number of pages, or '-1' if unknown :type total_page_count: int """ @@ -1905,7 +1905,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -2093,11 +2093,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -2141,7 +2141,7 @@ class TimelineRecord(Model): """TimelineRecord. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attempt: Attempt number of record. :type attempt: int :param change_id: The change ID. @@ -2149,7 +2149,7 @@ class TimelineRecord(Model): :param current_operation: A string that indicates the current operation. :type current_operation: str :param details: A reference to a sub-timeline. - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: The number of errors produced by this operation. :type error_count: int :param finish_time: The finish time. @@ -2159,11 +2159,11 @@ class TimelineRecord(Model): :param identifier: String identifier that is consistent across attempts. :type identifier: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: The time the record was last modified. :type last_modified: datetime :param log: A reference to the log produced by this operation. - :type log: :class:`BuildLogReference ` + :type log: :class:`BuildLogReference ` :param name: The name. :type name: str :param order: An ordinal value relative to other records. @@ -2173,7 +2173,7 @@ class TimelineRecord(Model): :param percent_complete: The current completion percentage. :type percent_complete: int :param previous_attempts: - :type previous_attempts: list of :class:`TimelineAttempt ` + :type previous_attempts: list of :class:`TimelineAttempt ` :param result: The result. :type result: object :param result_code: The result code. @@ -2183,7 +2183,7 @@ class TimelineRecord(Model): :param state: The state of the record. :type state: object :param task: A reference to the task represented by this timeline record. - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: The type of the record. :type type: str :param url: The REST URL of the timeline record. @@ -2351,7 +2351,7 @@ class BuildController(XamlBuildControllerReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: The date the controller was created. :type created_date: datetime :param description: The description of the controller. @@ -2402,7 +2402,7 @@ class BuildDefinitionReference(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2414,23 +2414,23 @@ class BuildDefinitionReference(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2480,7 +2480,7 @@ class BuildDefinitionReference3_2(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2492,19 +2492,19 @@ class BuildDefinitionReference3_2(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2579,9 +2579,9 @@ class BuildOptionDefinition(BuildOptionDefinitionReference): :param description: The description. :type description: str :param groups: The list of input groups defined for the build option. - :type groups: list of :class:`BuildOptionGroupDefinition ` + :type groups: list of :class:`BuildOptionGroupDefinition ` :param inputs: The list of inputs defined for the build option. - :type inputs: list of :class:`BuildOptionInputDefinition ` + :type inputs: list of :class:`BuildOptionInputDefinition ` :param name: The name of the build option. :type name: str :param ordinal: A value that indicates the relative order in which the behavior should be applied. @@ -2620,7 +2620,7 @@ class Timeline(TimelineReference): :param last_changed_on: The time the timeline was last changed. :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -2685,7 +2685,7 @@ class BuildDefinition(BuildDefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2697,23 +2697,23 @@ class BuildDefinition(BuildDefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition. :type badge_enabled: bool :param build_number_format: The build number format. @@ -2721,7 +2721,7 @@ class BuildDefinition(BuildDefinitionReference): :param comment: A save-time comment for the definition. :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description. :type description: str :param drop_location: The drop location for the definition. @@ -2733,23 +2733,23 @@ class BuildDefinition(BuildDefinitionReference): :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. :type job_timeout_in_minutes: int :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`object ` + :type process: :class:`object ` :param process_parameters: The process parameters for this definition. - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` + :type variable_groups: list of :class:`VariableGroup ` :param variables: :type variables: dict """ @@ -2830,7 +2830,7 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2842,29 +2842,29 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition :type badge_enabled: bool :param build: - :type build: list of :class:`BuildDefinitionStep ` + :type build: list of :class:`BuildDefinitionStep ` :param build_number_format: The build number format :type build_number_format: str :param comment: The comment entered when saving the definition :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description :type description: str :param drop_location: The drop location for the definition @@ -2876,23 +2876,23 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition :type job_timeout_in_minutes: int :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ diff --git a/azure-devops/azure/devops/v5_1/client_factory.py b/azure-devops/azure/devops/v5_1/client_factory.py new file mode 100644 index 00000000..ca7763f0 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/client_factory.py @@ -0,0 +1,268 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + +class ClientFactoryV5_1(object): + """ClientFactoryV5_1. + """ + + def __init__(self, connection): + self._connection = connection + + def get_build_client(self): + """get_build_client. + Gets the 5.1 version of the BuildClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.build.build_client.BuildClient') + + def get_client_trace_client(self): + """get_client_trace_client. + Gets the 5.1 version of the ClientTraceClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.client_trace.client_trace_client.ClientTraceClient') + + def get_cloud_load_test_client(self): + """get_cloud_load_test_client. + Gets the 5.1 version of the CloudLoadTestClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.cloud_load_test.cloud_load_test_client.CloudLoadTestClient') + + def get_feature_availability_client(self): + """get_feature_availability_client. + Gets the 5.1 version of the FeatureAvailabilityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.feature_availability.feature_availability_client.FeatureAvailabilityClient') + + def get_file_container_client(self): + """get_file_container_client. + Gets the 5.1 version of the FileContainerClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.file_container.file_container_client.FileContainerClient') + + def get_git_client(self): + """get_git_client. + Gets the 5.1 version of the GitClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.git.git_client.GitClient') + + def get_graph_client(self): + """get_graph_client. + Gets the 5.1 version of the GraphClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.graph.graph_client.GraphClient') + + def get_identity_client(self): + """get_identity_client. + Gets the 5.1 version of the IdentityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.identity.identity_client.IdentityClient') + + def get_location_client(self): + """get_location_client. + Gets the 5.1 version of the LocationClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.location.location_client.LocationClient') + + def get_notification_client(self): + """get_notification_client. + Gets the 5.1 version of the NotificationClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.notification.notification_client.NotificationClient') + + def get_npm_client(self): + """get_npm_client. + Gets the 5.1 version of the NpmClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.npm.npm_client.NpmClient') + + def get_nuGet_client(self): + """get_nuGet_client. + Gets the 5.1 version of the NuGetClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.nuGet.nuGet_client.NuGetClient') + + def get_operations_client(self): + """get_operations_client. + Gets the 5.1 version of the OperationsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.operations.operations_client.OperationsClient') + + def get_policy_client(self): + """get_policy_client. + Gets the 5.1 version of the PolicyClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.policy.policy_client.PolicyClient') + + def get_profile_client(self): + """get_profile_client. + Gets the 5.1 version of the ProfileClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.profile.profile_client.ProfileClient') + + def get_project_analysis_client(self): + """get_project_analysis_client. + Gets the 5.1 version of the ProjectAnalysisClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.project_analysis.project_analysis_client.ProjectAnalysisClient') + + def get_provenance_client(self): + """get_provenance_client. + Gets the 5.1 version of the ProvenanceClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.provenance.provenance_client.ProvenanceClient') + + def get_py_pi_api_client(self): + """get_py_pi_api_client. + Gets the 5.1 version of the PyPiApiClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.py_pi_api.py_pi_api_client.PyPiApiClient') + + def get_release_client(self): + """get_release_client. + Gets the 5.1 version of the ReleaseClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.release.release_client.ReleaseClient') + + def get_security_client(self): + """get_security_client. + Gets the 5.1 version of the SecurityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.security.security_client.SecurityClient') + + def get_service_endpoint_client(self): + """get_service_endpoint_client. + Gets the 5.1 version of the ServiceEndpointClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.service_endpoint.service_endpoint_client.ServiceEndpointClient') + + def get_service_hooks_client(self): + """get_service_hooks_client. + Gets the 5.1 version of the ServiceHooksClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.service_hooks.service_hooks_client.ServiceHooksClient') + + def get_settings_client(self): + """get_settings_client. + Gets the 5.1 version of the SettingsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.settings.settings_client.SettingsClient') + + def get_symbol_client(self): + """get_symbol_client. + Gets the 5.1 version of the SymbolClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.symbol.symbol_client.SymbolClient') + + def get_task_client(self): + """get_task_client. + Gets the 5.1 version of the TaskClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.task.task_client.TaskClient') + + def get_task_agent_client(self): + """get_task_agent_client. + Gets the 5.1 version of the TaskAgentClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.task_agent.task_agent_client.TaskAgentClient') + + def get_test_client(self): + """get_test_client. + Gets the 5.1 version of the TestClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.test.test_client.TestClient') + + def get_tfvc_client(self): + """get_tfvc_client. + Gets the 5.1 version of the TfvcClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.tfvc.tfvc_client.TfvcClient') + + def get_uPack_api_client(self): + """get_uPack_api_client. + Gets the 5.1 version of the UPackApiClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.uPack_api.uPack_api_client.UPackApiClient') + + def get_uPack_packaging_client(self): + """get_uPack_packaging_client. + Gets the 5.1 version of the UPackPackagingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.uPack_packaging.uPack_packaging_client.UPackPackagingClient') + + def get_wiki_client(self): + """get_wiki_client. + Gets the 5.1 version of the WikiClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.wiki.wiki_client.WikiClient') + + def get_work_client(self): + """get_work_client. + Gets the 5.1 version of the WorkClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.work.work_client.WorkClient') + + def get_work_item_tracking_client(self): + """get_work_item_tracking_client. + Gets the 5.1 version of the WorkItemTrackingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') + + def get_work_item_tracking_client(self): + """get_work_item_tracking_client. + Gets the 5.1 version of the WorkItemTrackingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') + + def get_work_item_tracking_comments_client(self): + """get_work_item_tracking_comments_client. + Gets the 5.1 version of the WorkItemTrackingCommentsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.work_item_tracking_comments.work_item_tracking_comments_client.WorkItemTrackingCommentsClient') + + def get_work_item_tracking_process_template_client(self): + """get_work_item_tracking_process_template_client. + Gets the 5.1 version of the WorkItemTrackingProcessTemplateClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.work_item_tracking_process_template.work_item_tracking_process_template_client.WorkItemTrackingProcessTemplateClient') + diff --git a/azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py b/azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py index 4e4434e0..72149ff3 100644 --- a/azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py +++ b/azure-devops/azure/devops/v5_1/cloud_load_test/cloud_load_test_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_agent_group(self, group): """CreateAgentGroup. [Preview API] - :param :class:` ` group: Agent group to be created + :param :class:` ` group: Agent group to be created :rtype: :class:` ` """ content = self._serialize.body(group, 'AgentGroup') @@ -181,7 +181,7 @@ def get_application_counters(self, application_id=None, plugintype=None): def get_counter_samples(self, counter_sample_query_details, test_run_id): """GetCounterSamples. [Preview API] - :param :class:` ` counter_sample_query_details: + :param :class:` ` counter_sample_query_details: :param str test_run_id: The test run identifier :rtype: :class:` ` """ @@ -280,7 +280,7 @@ def get_load_test_result(self, test_run_id): def create_test_definition(self, test_definition): """CreateTestDefinition. [Preview API] - :param :class:` ` test_definition: Test definition to be created + :param :class:` ` test_definition: Test definition to be created :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') @@ -329,7 +329,7 @@ def get_test_definitions(self, from_date=None, to_date=None, top=None): def update_test_definition(self, test_definition): """UpdateTestDefinition. [Preview API] - :param :class:` ` test_definition: + :param :class:` ` test_definition: :rtype: :class:` ` """ content = self._serialize.body(test_definition, 'TestDefinition') @@ -342,7 +342,7 @@ def update_test_definition(self, test_definition): def create_test_drop(self, web_test_drop): """CreateTestDrop. [Preview API] - :param :class:` ` web_test_drop: Test drop to be created + :param :class:` ` web_test_drop: Test drop to be created :rtype: :class:` ` """ content = self._serialize.body(web_test_drop, 'TestDrop') @@ -370,7 +370,7 @@ def get_test_drop(self, test_drop_id): def create_test_run(self, web_test_run): """CreateTestRun. [Preview API] - :param :class:` ` web_test_run: + :param :class:` ` web_test_run: :rtype: :class:` ` """ content = self._serialize.body(web_test_run, 'TestRun') @@ -440,7 +440,7 @@ def get_test_runs(self, name=None, requested_by=None, status=None, run_type=None def update_test_run(self, web_test_run, test_run_id): """UpdateTestRun. [Preview API] - :param :class:` ` web_test_run: + :param :class:` ` web_test_run: :param str test_run_id: """ route_values = {} diff --git a/azure-devops/azure/devops/v5_1/cloud_load_test/models.py b/azure-devops/azure/devops/v5_1/cloud_load_test/models.py index 9f6bd33d..77f3cf5c 100644 --- a/azure-devops/azure/devops/v5_1/cloud_load_test/models.py +++ b/azure-devops/azure/devops/v5_1/cloud_load_test/models.py @@ -21,9 +21,9 @@ class AgentGroup(Model): :param group_name: :type group_name: str :param machine_access_data: - :type machine_access_data: list of :class:`AgentGroupAccessData ` + :type machine_access_data: list of :class:`AgentGroupAccessData ` :param machine_configuration: - :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` :param tenant_id: :type tenant_id: str """ @@ -267,7 +267,7 @@ class CounterInstanceSamples(Model): :param next_refresh_time: :type next_refresh_time: datetime :param values: - :type values: list of :class:`CounterSample ` + :type values: list of :class:`CounterSample ` """ _attribute_map = { @@ -371,7 +371,7 @@ class CounterSamplesResult(Model): :param total_samples_count: :type total_samples_count: int :param values: - :type values: list of :class:`CounterInstanceSamples ` + :type values: list of :class:`CounterInstanceSamples ` """ _attribute_map = { @@ -511,13 +511,13 @@ class LoadTestDefinition(Model): :param agent_count: :type agent_count: int :param browser_mixs: - :type browser_mixs: list of :class:`BrowserMix ` + :type browser_mixs: list of :class:`BrowserMix ` :param core_count: :type core_count: int :param cores_per_agent: :type cores_per_agent: int :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_pattern_name: :type load_pattern_name: str :param load_test_name: @@ -573,7 +573,7 @@ class LoadTestErrors(Model): :param occurrences: :type occurrences: int :param types: - :type types: list of :class:`object ` + :type types: list of :class:`object ` :param url: :type url: str """ @@ -639,7 +639,7 @@ class OverridableRunSettings(Model): :param load_generator_machines_type: :type load_generator_machines_type: object :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` """ _attribute_map = { @@ -663,7 +663,7 @@ class PageSummary(Model): :param percentage_pages_meeting_goal: :type percentage_pages_meeting_goal: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -703,7 +703,7 @@ class RequestSummary(Model): :param passed_requests: :type passed_requests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param requests_per_sec: :type requests_per_sec: float :param request_url: @@ -791,7 +791,7 @@ class SubType(Model): :param count: :type count: int :param error_detail_list: - :type error_detail_list: list of :class:`ErrorDetails ` + :type error_detail_list: list of :class:`ErrorDetails ` :param occurrences: :type occurrences: int :param sub_type_name: @@ -841,13 +841,13 @@ class TenantDetails(Model): """TenantDetails. :param access_details: - :type access_details: list of :class:`AgentGroupAccessData ` + :type access_details: list of :class:`AgentGroupAccessData ` :param id: :type id: str :param static_machines: - :type static_machines: list of :class:`WebApiTestMachine ` + :type static_machines: list of :class:`WebApiTestMachine ` :param user_load_agent_input: - :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` :param user_load_agent_resources_uri: :type user_load_agent_resources_uri: str :param valid_geo_locations: @@ -877,7 +877,7 @@ class TestDefinitionBasic(Model): """TestDefinitionBasic. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -921,7 +921,7 @@ class TestDrop(Model): """TestDrop. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_date: :type created_date: datetime :param drop_type: @@ -929,7 +929,7 @@ class TestDrop(Model): :param id: :type id: str :param load_test_definition: - :type load_test_definition: :class:`LoadTestDefinition ` + :type load_test_definition: :class:`LoadTestDefinition ` :param test_run_id: :type test_run_id: str """ @@ -979,9 +979,9 @@ class TestResults(Model): :param cloud_load_test_solution_url: :type cloud_load_test_solution_url: str :param counter_groups: - :type counter_groups: list of :class:`CounterGroup ` + :type counter_groups: list of :class:`CounterGroup ` :param diagnostics: - :type diagnostics: :class:`Diagnostics ` + :type diagnostics: :class:`Diagnostics ` :param results_url: :type results_url: str """ @@ -1005,23 +1005,23 @@ class TestResultsSummary(Model): """TestResultsSummary. :param overall_page_summary: - :type overall_page_summary: :class:`PageSummary ` + :type overall_page_summary: :class:`PageSummary ` :param overall_request_summary: - :type overall_request_summary: :class:`RequestSummary ` + :type overall_request_summary: :class:`RequestSummary ` :param overall_scenario_summary: - :type overall_scenario_summary: :class:`ScenarioSummary ` + :type overall_scenario_summary: :class:`ScenarioSummary ` :param overall_test_summary: - :type overall_test_summary: :class:`TestSummary ` + :type overall_test_summary: :class:`TestSummary ` :param overall_transaction_summary: - :type overall_transaction_summary: :class:`TransactionSummary ` + :type overall_transaction_summary: :class:`TransactionSummary ` :param top_slow_pages: - :type top_slow_pages: list of :class:`PageSummary ` + :type top_slow_pages: list of :class:`PageSummary ` :param top_slow_requests: - :type top_slow_requests: list of :class:`RequestSummary ` + :type top_slow_requests: list of :class:`RequestSummary ` :param top_slow_tests: - :type top_slow_tests: list of :class:`TestSummary ` + :type top_slow_tests: list of :class:`TestSummary ` :param top_slow_transactions: - :type top_slow_transactions: list of :class:`TransactionSummary ` + :type top_slow_transactions: list of :class:`TransactionSummary ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class TestRunBasic(Model): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1107,7 +1107,7 @@ class TestRunBasic(Model): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1173,7 +1173,7 @@ class TestRunCounterInstance(Model): :param part_of_counter_groups: :type part_of_counter_groups: list of str :param summary_data: - :type summary_data: :class:`WebInstanceSummaryData ` + :type summary_data: :class:`WebInstanceSummaryData ` :param unique_name: :type unique_name: str """ @@ -1287,7 +1287,7 @@ class TestSummary(Model): :param passed_tests: :type passed_tests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1325,7 +1325,7 @@ class TransactionSummary(Model): :param average_transaction_time: :type average_transaction_time: float :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1365,7 +1365,7 @@ class WebApiLoadTestMachineInput(Model): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType """ @@ -1433,7 +1433,7 @@ class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType :param agent_group_name: @@ -1530,7 +1530,7 @@ class TestDefinition(TestDefinitionBasic): """TestDefinition. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -1548,15 +1548,15 @@ class TestDefinition(TestDefinitionBasic): :param description: :type description: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_definition_source: :type load_test_definition_source: str :param run_settings: - :type run_settings: :class:`LoadTestRunSettings ` + :type run_settings: :class:`LoadTestRunSettings ` :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` :param test_details: - :type test_details: :class:`LoadTest ` + :type test_details: :class:`LoadTest ` """ _attribute_map = { @@ -1602,7 +1602,7 @@ class TestRun(TestRunBasic): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1612,7 +1612,7 @@ class TestRun(TestRunBasic): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1620,7 +1620,7 @@ class TestRun(TestRunBasic): :param url: :type url: str :param abort_message: - :type abort_message: :class:`TestRunAbortMessage ` + :type abort_message: :class:`TestRunAbortMessage ` :param aut_initialization_error: :type aut_initialization_error: bool :param chargeable: @@ -1650,11 +1650,11 @@ class TestRun(TestRunBasic): :param sub_state: :type sub_state: object :param supersede_run_settings: - :type supersede_run_settings: :class:`OverridableRunSettings ` + :type supersede_run_settings: :class:`OverridableRunSettings ` :param test_drop: - :type test_drop: :class:`TestDropRef ` + :type test_drop: :class:`TestDropRef ` :param test_settings: - :type test_settings: :class:`TestSettings ` + :type test_settings: :class:`TestSettings ` :param warm_up_started_date: :type warm_up_started_date: datetime :param web_result_url: diff --git a/azure-devops/azure/devops/v5_1/contributions/models.py b/azure-devops/azure/devops/v5_1/contributions/models.py index 9af0b215..78be5e8e 100644 --- a/azure-devops/azure/devops/v5_1/contributions/models.py +++ b/azure-devops/azure/devops/v5_1/contributions/models.py @@ -19,7 +19,7 @@ class ClientContribution(Model): :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -51,7 +51,7 @@ class ClientContributionNode(Model): :param children: List of ids for contributions which are children to the current contribution. :type children: list of str :param contribution: Contribution associated with this node. - :type contribution: :class:`ClientContribution ` + :type contribution: :class:`ClientContribution ` :param parents: List of ids for contributions which are parents to the current contribution. :type parents: list of str """ @@ -133,7 +133,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -163,7 +163,7 @@ class ContributionNodeQuery(Model): :param contribution_ids: The contribution ids of the nodes to find. :type contribution_ids: list of str :param data_provider_context: Contextual information that can be leveraged by contribution constraints - :type data_provider_context: :class:`DataProviderContext ` + :type data_provider_context: :class:`DataProviderContext ` :param include_provider_details: Indicator if contribution provider details should be included in the result. :type include_provider_details: bool :param query_options: Query options tpo be used when fetching ContributionNodes @@ -310,7 +310,7 @@ class DataProviderQuery(Model): """DataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str """ @@ -336,7 +336,7 @@ class DataProviderResult(Model): :param exceptions: Set of exceptions that occurred resolving the data providers. :type exceptions: dict :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` + :type resolved_providers: list of :class:`ResolvedDataProvider ` :param scope_name: Scope name applied to this data provider result. :type scope_name: str :param scope_value: Scope value applied to this data provider result. @@ -386,19 +386,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -450,7 +450,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -468,21 +468,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -532,21 +532,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -560,11 +560,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -623,7 +623,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -713,7 +713,7 @@ class ClientDataProviderQuery(DataProviderQuery): """ClientDataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. @@ -741,11 +741,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) diff --git a/azure-devops/azure/devops/v5_1/core/models.py b/azure-devops/azure/devops/v5_1/core/models.py index 04be0fa7..254d9f1b 100644 --- a/azure-devops/azure/devops/v5_1/core/models.py +++ b/azure-devops/azure/devops/v5_1/core/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -57,7 +57,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -219,7 +219,7 @@ class ProjectInfo(Model): :param name: The name of the project. :type name: str :param properties: A set of name-value pairs storing additional property data related to the project. - :type properties: list of :class:`ProjectProperty ` + :type properties: list of :class:`ProjectProperty ` :param revision: The current revision of the project. :type revision: long :param state: The current state of the project. @@ -285,7 +285,7 @@ class Proxy(Model): """Proxy. :param authorization: - :type authorization: :class:`ProxyAuthorization ` + :type authorization: :class:`ProxyAuthorization ` :param description: This is a description string :type description: str :param friendly_name: The friendly name of the server @@ -329,9 +329,9 @@ class ProxyAuthorization(Model): :param client_id: Gets or sets the client identifier for this proxy. :type client_id: str :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` + :type identity: :class:`str ` :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` + :type public_key: :class:`PublicKey ` """ _attribute_map = { @@ -389,7 +389,7 @@ class TeamMember(Model): """TeamMember. :param identity: - :type identity: :class:`IdentityRef ` + :type identity: :class:`IdentityRef ` :param is_team_admin: :type is_team_admin: bool """ @@ -533,7 +533,7 @@ class Process(ProcessReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -587,11 +587,11 @@ class TeamProject(TeamProjectReference): :param visibility: Project visibility. :type visibility: object :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param capabilities: Set of capabilities this project has (such as process template & version control). :type capabilities: dict :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` + :type default_team: :class:`WebApiTeamRef ` """ _attribute_map = { @@ -627,7 +627,7 @@ class TeamProjectCollection(TeamProjectCollectionReference): :param url: Collection REST Url. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Project collection description. :type description: str :param process_customization_type: Process customzation type on this collection. It can be Xml or Inherited. @@ -660,7 +660,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param url: :type url: str :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` + :type authenticated_by: :class:`IdentityRef ` :param description: Extra description on the service. :type description: str :param friendly_name: Friendly Name of service connection @@ -670,7 +670,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param kind: The kind of service. :type kind: str :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com :type service_uri: str """ @@ -705,7 +705,7 @@ class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): :param url: :type url: str :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` + :type connected_service_meta_data: :class:`WebApiConnectedService ` :param credentials_xml: Credential info :type credentials_xml: str :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com diff --git a/azure-devops/azure/devops/v5_1/dashboard/models.py b/azure-devops/azure/devops/v5_1/dashboard/models.py index f430211a..5536443e 100644 --- a/azure-devops/azure/devops/v5_1/dashboard/models.py +++ b/azure-devops/azure/devops/v5_1/dashboard/models.py @@ -13,7 +13,7 @@ class Dashboard(Model): """Dashboard. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -31,7 +31,7 @@ class Dashboard(Model): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -65,9 +65,9 @@ class DashboardGroup(Model): """DashboardGroup. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dashboard_entries: A list of Dashboards held by the Dashboard Group - :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :type dashboard_entries: list of :class:`DashboardGroupEntry ` :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. :type permission: object :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. @@ -97,7 +97,7 @@ class DashboardGroupEntry(Dashboard): """DashboardGroupEntry. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -115,7 +115,7 @@ class DashboardGroupEntry(Dashboard): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -139,7 +139,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): """DashboardGroupEntryResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -157,7 +157,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -181,7 +181,7 @@ class DashboardResponse(DashboardGroupEntry): """DashboardResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -199,7 +199,7 @@ class DashboardResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -315,9 +315,9 @@ class Widget(Model): """Widget. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -331,7 +331,7 @@ class Widget(Model): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -341,19 +341,19 @@ class Widget(Model): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -415,7 +415,7 @@ class WidgetMetadata(Model): """WidgetMetadata. :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. :type analytics_service_required: bool :param catalog_icon_url: Resource for an icon in the widget catalog. @@ -443,7 +443,7 @@ class WidgetMetadata(Model): :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. :type is_visible_from_catalog: bool :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: Resource for a loading placeholder image on dashboard :type loading_image_url: str :param name: User facing name of the widget type. Each widget must use a unique value here. @@ -513,7 +513,7 @@ class WidgetMetadataResponse(Model): :param uri: :type uri: str :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` + :type widget_metadata: :class:`WidgetMetadata ` """ _attribute_map = { @@ -551,9 +551,9 @@ class WidgetResponse(Widget): """WidgetResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -567,7 +567,7 @@ class WidgetResponse(Widget): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -577,19 +577,19 @@ class WidgetResponse(Widget): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -651,7 +651,7 @@ class WidgetsVersionedList(Model): :param eTag: :type eTag: list of str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -669,11 +669,11 @@ class WidgetTypesResponse(Model): """WidgetTypesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param uri: :type uri: str :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` + :type widget_types: list of :class:`WidgetMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py b/azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py index 9ada72ed..ee6c3f8c 100644 --- a/azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py +++ b/azure-devops/azure/devops/v5_1/extension_management/extension_management_client.py @@ -53,7 +53,7 @@ def get_installed_extensions(self, include_disabled_extensions=None, include_err def update_installed_extension(self, extension): """UpdateInstalledExtension. [Preview API] Update an installed extension. Typically this API is used to enable or disable an extension. - :param :class:` ` extension: + :param :class:` ` extension: :rtype: :class:` ` """ content = self._serialize.body(extension, 'InstalledExtension') diff --git a/azure-devops/azure/devops/v5_1/extension_management/models.py b/azure-devops/azure/devops/v5_1/extension_management/models.py index 9eda0ff7..81768c55 100644 --- a/azure-devops/azure/devops/v5_1/extension_management/models.py +++ b/azure-devops/azure/devops/v5_1/extension_management/models.py @@ -19,7 +19,7 @@ class AcquisitionOperation(Model): :param reason: Optional reason to justify current state. Typically used with Disallow state. :type reason: str :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` """ _attribute_map = { @@ -61,13 +61,13 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param target: The target that this options refer to :type target: str """ @@ -125,7 +125,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -222,7 +222,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int """ @@ -296,7 +296,7 @@ class ExtensionDataCollection(Model): :param collection_name: The name of the collection :type collection_name: str :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` + :type documents: list of :class:`object ` :param scope_type: The type of the collection's scope, such as Default or User :type scope_type: str :param scope_value: The value of the collection's scope, such as Current or Me @@ -322,7 +322,7 @@ class ExtensionDataCollectionQuery(Model): """ExtensionDataCollectionQuery. :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` + :type collections: list of :class:`ExtensionDataCollection ` """ _attribute_map = { @@ -354,19 +354,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -438,7 +438,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -456,21 +456,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -542,7 +542,7 @@ class ExtensionRequest(Model): :param request_date: Date at which the request was made :type request_date: datetime :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_message: Optional message supplied by the requester justifying the request :type request_message: str :param request_state: Represents the state of the request @@ -550,7 +550,7 @@ class ExtensionRequest(Model): :param resolve_date: Date at which the request was resolved :type resolve_date: datetime :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` """ _attribute_map = { @@ -628,11 +628,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -678,7 +678,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -706,7 +706,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -788,21 +788,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -816,11 +816,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -879,7 +879,7 @@ class InstalledExtensionQuery(Model): :param asset_types: :type asset_types: list of str :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` + :type monikers: list of :class:`ExtensionIdentifier ` """ _attribute_map = { @@ -899,7 +899,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -977,7 +977,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -985,19 +985,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1091,7 +1091,7 @@ class RequestedExtension(Model): :param extension_name: The unique name of the extension :type extension_name: str :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` + :type extension_requests: list of :class:`ExtensionRequest ` :param publisher_display_name: DisplayName of the publisher that owns the extension being published. :type publisher_display_name: str :param publisher_name: Represents the Publisher of the requested extension @@ -1123,7 +1123,7 @@ class UserExtensionPolicy(Model): :param display_name: User display name that this policy refers to :type display_name: str :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` + :type permissions: :class:`ExtensionPolicy ` :param user_id: User id that this policy refers to :type user_id: str """ @@ -1151,11 +1151,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) @@ -1192,7 +1192,7 @@ class ExtensionState(InstalledExtensionState): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime :param extension_name: diff --git a/azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py b/azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py index 7fcb390b..a776ffa2 100644 --- a/azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py +++ b/azure-devops/azure/devops/v5_1/feature_availability/feature_availability_client.py @@ -109,7 +109,7 @@ def get_feature_flag_by_name_and_user_id(self, name, user_id, check_feature_exis def update_feature_flag(self, state, name, user_email=None, check_feature_exists=None, set_at_application_level_also=None): """UpdateFeatureFlag. [Preview API] Change the state of an individual feature flag for a name - :param :class:` ` state: State that should be set + :param :class:` ` state: State that should be set :param str name: The name of the feature to change :param str user_email: :param bool check_feature_exists: Checks if the feature exists before setting the state diff --git a/azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py b/azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py index 72d49b36..6f930b6a 100644 --- a/azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py +++ b/azure-devops/azure/devops/v5_1/feature_management/feature_management_client.py @@ -76,7 +76,7 @@ def get_feature_state(self, feature_id, user_scope): def set_feature_state(self, feature, feature_id, user_scope, reason=None, reason_code=None): """SetFeatureState. [Preview API] Set the state of a feature - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str reason: Reason for changing the state @@ -129,7 +129,7 @@ def get_feature_state_for_scope(self, feature_id, user_scope, scope_name, scope_ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_name, scope_value, reason=None, reason_code=None): """SetFeatureStateForScope. [Preview API] Set the state of a feature at a specific scope - :param :class:` ` feature: Posted feature state object. Should specify the effective value. + :param :class:` ` feature: Posted feature state object. Should specify the effective value. :param str feature_id: Contribution id of the feature :param str user_scope: User-Scope at which to set the value. Should be "me" for the current user or "host" for all users. :param str scope_name: Scope at which to get the feature setting for (e.g. "project" or "team") @@ -164,7 +164,7 @@ def set_feature_state_for_scope(self, feature, feature_id, user_scope, scope_nam def query_feature_states(self, query): """QueryFeatureStates. [Preview API] Get the effective state for a list of feature ids - :param :class:` ` query: Features to query along with current scope values + :param :class:` ` query: Features to query along with current scope values :rtype: :class:` ` """ content = self._serialize.body(query, 'ContributedFeatureStateQuery') @@ -177,7 +177,7 @@ def query_feature_states(self, query): def query_feature_states_for_default_scope(self, query, user_scope): """QueryFeatureStatesForDefaultScope. [Preview API] Get the states of the specified features for the default scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: :rtype: :class:` ` """ @@ -195,7 +195,7 @@ def query_feature_states_for_default_scope(self, query, user_scope): def query_feature_states_for_named_scope(self, query, user_scope, scope_name, scope_value): """QueryFeatureStatesForNamedScope. [Preview API] Get the states of the specified features for the specific named scope - :param :class:` ` query: Query describing the features to query. + :param :class:` ` query: Query describing the features to query. :param str user_scope: :param str scope_name: :param str scope_value: diff --git a/azure-devops/azure/devops/v5_1/feature_management/models.py b/azure-devops/azure/devops/v5_1/feature_management/models.py index 09e7cf03..49b985b4 100644 --- a/azure-devops/azure/devops/v5_1/feature_management/models.py +++ b/azure-devops/azure/devops/v5_1/feature_management/models.py @@ -13,17 +13,17 @@ class ContributedFeature(Model): """ContributedFeature. :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_state: If true, the feature is enabled unless overridden at some scope :type default_state: bool :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` :param description: The description of the feature :type description: str :param feature_properties: Extra properties for the feature :type feature_properties: dict :param feature_state_changed_listeners: Handler for listening to setter calls on feature value. These listeners are only invoked after a successful set has occured - :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` + :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` :param id: The full contribution id of the feature :type id: str :param include_as_claim: If this is set to true, then the id for this feature will be added to the list of claims for the request. @@ -33,9 +33,9 @@ class ContributedFeature(Model): :param order: Suggested order to display feature in. :type order: int :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` + :type override_rules: list of :class:`ContributedFeatureValueRule ` :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` + :type scopes: list of :class:`ContributedFeatureSettingScope ` :param service_instance_type: The service instance id of the service that owns this feature :type service_instance_type: str :param tags: Tags associated with the feature. @@ -145,7 +145,7 @@ class ContributedFeatureState(Model): :param reason: Reason that the state was set (by a plugin/rule). :type reason: str :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` + :type scope: :class:`ContributedFeatureSettingScope ` :param state: The current state of this feature :type state: object """ diff --git a/azure-devops/azure/devops/v5_1/feed/models.py b/azure-devops/azure/devops/v5_1/feed/models.py index 96668519..ca3c8e47 100644 --- a/azure-devops/azure/devops/v5_1/feed/models.py +++ b/azure-devops/azure/devops/v5_1/feed/models.py @@ -13,7 +13,7 @@ class FeedBatchData(Model): """FeedBatchData. :param data: - :type data: :class:`FeedBatchOperationData ` + :type data: :class:`FeedBatchOperationData ` :param operation: :type operation: object """ @@ -47,7 +47,7 @@ class FeedChange(Model): :param change_type: The type of operation. :type change_type: object :param feed: The state of the feed after a after a create, update, or delete operation completed. - :type feed: :class:`Feed ` + :type feed: :class:`Feed ` :param feed_continuation_token: A token that identifies the next change in the log of changes. :type feed_continuation_token: long :param latest_package_continuation_token: A token that identifies the latest package change for this feed. This can be used to quickly determine if there have been any changes to packages in a specific feed. @@ -73,11 +73,11 @@ class FeedChangesResponse(Model): """FeedChangesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param count: The number of changes in this set. :type count: int :param feed_changes: A container that encapsulates the state of the feed after a create, update, or delete. - :type feed_changes: list of :class:`FeedChange ` + :type feed_changes: list of :class:`FeedChange ` :param next_feed_continuation_token: When iterating through the log of changes this value indicates the value that should be used for the next continuation token. :type next_feed_continuation_token: long """ @@ -117,9 +117,9 @@ class FeedCore(Model): :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` :param view: Definition of the view. - :type view: :class:`FeedView ` + :type view: :class:`FeedView ` :param view_id: View Id. :type view_id: str :param view_name: View name. @@ -163,7 +163,7 @@ class FeedPermission(Model): :param display_name: Display name for the identity. :type display_name: str :param identity_descriptor: Identity associated with this role. - :type identity_descriptor: :class:`str ` + :type identity_descriptor: :class:`str ` :param identity_id: Id of the identity associated with this role. :type identity_id: str :param role: The role for this identity on a feed. @@ -229,7 +229,7 @@ class FeedUpdate(Model): :param upstream_enabled: OBSOLETE: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` """ _attribute_map = { @@ -261,7 +261,7 @@ class FeedView(Model): """FeedView. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Id of the view. :type id: str :param name: Name of the view. @@ -297,7 +297,7 @@ class GlobalPermission(Model): """GlobalPermission. :param identity_descriptor: Identity of the user with the provided Role. - :type identity_descriptor: :class:`str ` + :type identity_descriptor: :class:`str ` :param role: Role associated with the Identity. :type role: object """ @@ -367,7 +367,7 @@ class MinimalPackageVersion(Model): :param version: Display version. :type version: str :param views: List of views containing this package version. - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` """ _attribute_map = { @@ -405,7 +405,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Id of the package. :type id: str :param is_cached: Used for legacy scenarios and may be removed in future versions. @@ -421,7 +421,7 @@ class Package(Model): :param url: Url for this package. :type url: str :param versions: All versions for this package within its feed. - :type versions: list of :class:`MinimalPackageVersion ` + :type versions: list of :class:`MinimalPackageVersion ` """ _attribute_map = { @@ -453,9 +453,9 @@ class PackageChange(Model): """PackageChange. :param package: Package that was changed. - :type package: :class:`Package ` + :type package: :class:`Package ` :param package_version_change: Change that was performed on a package version. - :type package_version_change: :class:`PackageVersionChange ` + :type package_version_change: :class:`PackageVersionChange ` """ _attribute_map = { @@ -473,13 +473,13 @@ class PackageChangesResponse(Model): """PackageChangesResponse. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param count: Number of changes in this batch. :type count: int :param next_package_continuation_token: Token that should be used in future calls for this feed to retrieve new changes. :type next_package_continuation_token: long :param package_changes: List of changes. - :type package_changes: list of :class:`PackageChange ` + :type package_changes: list of :class:`PackageChange ` """ _attribute_map = { @@ -525,11 +525,11 @@ class PackageFile(Model): """PackageFile. :param children: Hierarchical representation of files. - :type children: list of :class:`PackageFile ` + :type children: list of :class:`PackageFile ` :param name: File name. :type name: str :param protocol_metadata: Extended data unique to a specific package type. - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` """ _attribute_map = { @@ -615,25 +615,25 @@ class PackageVersion(MinimalPackageVersion): :param version: Display version. :type version: str :param views: List of views containing this package version. - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` :param _links: Related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Package version author. :type author: str :param deleted_date: UTC date that this package version was deleted. :type deleted_date: datetime :param dependencies: List of dependencies for this package version. - :type dependencies: list of :class:`PackageDependency ` + :type dependencies: list of :class:`PackageDependency ` :param description: Package version description. :type description: str :param files: Files associated with this package version, only relevant for multi-file package types. - :type files: list of :class:`PackageFile ` + :type files: list of :class:`PackageFile ` :param other_versions: Other versions of this package. - :type other_versions: list of :class:`MinimalPackageVersion ` + :type other_versions: list of :class:`MinimalPackageVersion ` :param protocol_metadata: Extended data specific to a package type. - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` :param source_chain: List of upstream sources through which a package version moved to land in this feed. - :type source_chain: list of :class:`UpstreamSource ` + :type source_chain: list of :class:`UpstreamSource ` :param summary: Package version summary. :type summary: str :param tags: Package version tags. @@ -693,7 +693,7 @@ class PackageVersionChange(Model): :param continuation_token: Token marker for this change, allowing the caller to send this value back to the service and receive changes beyond this one. :type continuation_token: long :param package_version: Package version that was changed. - :type package_version: :class:`PackageVersion ` + :type package_version: :class:`PackageVersion ` """ _attribute_map = { @@ -767,7 +767,7 @@ class PackageVersionProvenance(Model): :param package_version_id: Id of the package version (GUID Id, not name). :type package_version_id: str :param provenance: Provenance information for this package version. - :type provenance: :class:`Provenance ` + :type provenance: :class:`Provenance ` """ _attribute_map = { @@ -859,25 +859,25 @@ class RecycleBinPackageVersion(PackageVersion): :param version: Display version. :type version: str :param views: List of views containing this package version. - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` :param _links: Related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Package version author. :type author: str :param deleted_date: UTC date that this package version was deleted. :type deleted_date: datetime :param dependencies: List of dependencies for this package version. - :type dependencies: list of :class:`PackageDependency ` + :type dependencies: list of :class:`PackageDependency ` :param description: Package version description. :type description: str :param files: Files associated with this package version, only relevant for multi-file package types. - :type files: list of :class:`PackageFile ` + :type files: list of :class:`PackageFile ` :param other_versions: Other versions of this package. - :type other_versions: list of :class:`MinimalPackageVersion ` + :type other_versions: list of :class:`MinimalPackageVersion ` :param protocol_metadata: Extended data specific to a package type. - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` :param source_chain: List of upstream sources through which a package version moved to land in this feed. - :type source_chain: list of :class:`UpstreamSource ` + :type source_chain: list of :class:`UpstreamSource ` :param summary: Package version summary. :type summary: str :param tags: Package version tags. @@ -1005,15 +1005,15 @@ class Feed(FeedCore): :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` :param view: Definition of the view. - :type view: :class:`FeedView ` + :type view: :class:`FeedView ` :param view_id: View Id. :type view_id: str :param view_name: View name. :type view_name: str :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param badges_enabled: If set, this feed supports generation of package badges. :type badges_enabled: bool :param default_view_id: The view that the feed administrator has indicated is the default experience for readers. @@ -1025,7 +1025,7 @@ class Feed(FeedCore): :param hide_deleted_package_versions: If set, the feed will hide all deleted/unpublished versions :type hide_deleted_package_versions: bool :param permissions: Explicit permissions for the feed. - :type permissions: list of :class:`FeedPermission ` + :type permissions: list of :class:`FeedPermission ` :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. :type upstream_enabled_changed_date: datetime :param url: The URL of the base feed in GUID form. diff --git a/azure-devops/azure/devops/v5_1/file_container/file_container_client.py b/azure-devops/azure/devops/v5_1/file_container/file_container_client.py index 4f4f2075..574197ec 100644 --- a/azure-devops/azure/devops/v5_1/file_container/file_container_client.py +++ b/azure-devops/azure/devops/v5_1/file_container/file_container_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_items(self, items, container_id, scope=None): """CreateItems. [Preview API] Creates the specified items in in the referenced container. - :param :class:` ` items: + :param :class:` ` items: :param int container_id: :param str scope: A guid representing the scope of the container. This is often the project id. :rtype: [FileContainerItem] diff --git a/azure-devops/azure/devops/v5_1/gallery/models.py b/azure-devops/azure/devops/v5_1/gallery/models.py index 9d809d39..eea31c18 100644 --- a/azure-devops/azure/devops/v5_1/gallery/models.py +++ b/azure-devops/azure/devops/v5_1/gallery/models.py @@ -37,11 +37,11 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param target: The target that this options refer to :type target: str """ @@ -85,7 +85,7 @@ class AssetDetails(Model): """AssetDetails. :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` + :type answers: :class:`Answers ` :param publisher_natural_identifier: Gets or sets the VS publisher Id :type publisher_natural_identifier: str """ @@ -125,7 +125,7 @@ class AzureRestApiRequestModel(Model): """AzureRestApiRequestModel. :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` + :type asset_details: :class:`AssetDetails ` :param asset_id: Gets or sets the asset id :type asset_id: str :param asset_version: Gets or sets the asset version @@ -173,7 +173,7 @@ class CategoriesResult(Model): """CategoriesResult. :param categories: - :type categories: list of :class:`ExtensionCategory ` + :type categories: list of :class:`ExtensionCategory ` """ _attribute_map = { @@ -269,7 +269,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id @@ -333,7 +333,7 @@ class ExtensionCategory(Model): :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles :type language: str :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` + :type language_titles: list of :class:`CategoryLanguageTitle ` :param parent_category_name: This is the internal name of the parent if this is associated with a parent :type parent_category_name: str """ @@ -361,7 +361,7 @@ class ExtensionDailyStat(Model): """ExtensionDailyStat. :param counts: Stores the event counts - :type counts: :class:`EventCounts ` + :type counts: :class:`EventCounts ` :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. :type extended_stats: dict :param statistic_date: Timestamp of this data point @@ -389,7 +389,7 @@ class ExtensionDailyStats(Model): """ExtensionDailyStats. :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` + :type daily_stats: list of :class:`ExtensionDailyStat ` :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. :type extension_id: str :param extension_name: Name of the extension @@ -421,7 +421,7 @@ class ExtensionDraft(Model): """ExtensionDraft. :param assets: - :type assets: list of :class:`ExtensionDraftAsset ` + :type assets: list of :class:`ExtensionDraftAsset ` :param created_date: :type created_date: datetime :param draft_state: @@ -433,7 +433,7 @@ class ExtensionDraft(Model): :param last_updated: :type last_updated: datetime :param payload: - :type payload: :class:`ExtensionPayload ` + :type payload: :class:`ExtensionPayload ` :param product: :type product: str :param publisher_name: @@ -477,7 +477,7 @@ class ExtensionDraftPatch(Model): """ExtensionDraftPatch. :param extension_data: - :type extension_data: :class:`UnpackagedExtensionData ` + :type extension_data: :class:`UnpackagedExtensionData ` :param operation: :type operation: object """ @@ -499,7 +499,7 @@ class ExtensionEvent(Model): :param id: Id which identifies each data point uniquely :type id: long :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param statistic_date: Timestamp of when the event occurred :type statistic_date: datetime :param version: Version of the extension @@ -577,11 +577,11 @@ class ExtensionFilterResult(Model): """ExtensionFilterResult. :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. :type paging_token: str :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` """ _attribute_map = { @@ -601,7 +601,7 @@ class ExtensionFilterResultMetadata(Model): """ExtensionFilterResultMetadata. :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` + :type metadata_items: list of :class:`MetadataItem ` :param metadata_type: Defines the category of metadata items :type metadata_type: str """ @@ -643,7 +643,7 @@ class ExtensionPayload(Model): :param file_name: :type file_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param is_preview: :type is_preview: bool :param is_signed_by_microsoft: @@ -687,7 +687,7 @@ class ExtensionQuery(Model): :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. :type asset_types: list of str :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. :type flags: object """ @@ -709,7 +709,7 @@ class ExtensionQueryResult(Model): """ExtensionQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` + :type results: list of :class:`ExtensionFilterResult ` """ _attribute_map = { @@ -779,7 +779,7 @@ class ExtensionStatisticUpdate(Model): :param publisher_name: :type publisher_name: str :param statistic: - :type statistic: :class:`ExtensionStatistic ` + :type statistic: :class:`ExtensionStatistic ` """ _attribute_map = { @@ -803,11 +803,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -937,7 +937,7 @@ class ProductCategoriesResult(Model): """ProductCategoriesResult. :param categories: - :type categories: list of :class:`ProductCategory ` + :type categories: list of :class:`ProductCategory ` """ _attribute_map = { @@ -953,7 +953,7 @@ class ProductCategory(Model): """ProductCategory. :param children: - :type children: list of :class:`ProductCategory ` + :type children: list of :class:`ProductCategory ` :param has_children: Indicator whether this is a leaf or there are children under this category :type has_children: bool :param id: Individual Guid of the Category @@ -993,7 +993,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -1001,19 +1001,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1065,7 +1065,7 @@ class PublisherBase(Model): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1141,7 +1141,7 @@ class PublisherFilterResult(Model): """PublisherFilterResult. :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` + :type publishers: list of :class:`Publisher ` """ _attribute_map = { @@ -1157,7 +1157,7 @@ class PublisherQuery(Model): """PublisherQuery. :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. :type flags: object """ @@ -1177,7 +1177,7 @@ class PublisherQueryResult(Model): """PublisherQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` + :type results: list of :class:`PublisherFilterResult ` """ _attribute_map = { @@ -1203,7 +1203,7 @@ class QnAItem(Model): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1229,7 +1229,7 @@ class QueryFilter(Model): """QueryFilter. :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` + :type criteria: list of :class:`FilterCriteria ` :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. :type direction: object :param page_number: The page number requested by the user. If not provided 1 is assumed by default. @@ -1279,9 +1279,9 @@ class Question(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` + :type responses: list of :class:`Response ` """ _attribute_map = { @@ -1305,7 +1305,7 @@ class QuestionsResult(Model): :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) :type has_more_questions: bool :param questions: List of the QnA threads - :type questions: list of :class:`Question ` + :type questions: list of :class:`Question ` """ _attribute_map = { @@ -1369,7 +1369,7 @@ class Response(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1389,7 +1389,7 @@ class Review(Model): """Review. :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` + :type admin_reply: :class:`ReviewReply ` :param id: Unique identifier of a review item :type id: long :param is_deleted: Flag for soft deletion @@ -1401,7 +1401,7 @@ class Review(Model): :param rating: Rating procided by the user :type rating: str :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` + :type reply: :class:`ReviewReply ` :param text: Text description of the review :type text: str :param title: Title of the review @@ -1451,9 +1451,9 @@ class ReviewPatch(Model): :param operation: Denotes the patch operation type :type operation: object :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` + :type reported_concern: :class:`UserReportedConcern ` :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` + :type review_item: :class:`Review ` """ _attribute_map = { @@ -1519,7 +1519,7 @@ class ReviewsResult(Model): :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) :type has_more_reviews: bool :param reviews: List of reviews - :type reviews: list of :class:`Review ` + :type reviews: list of :class:`Review ` :param total_review_count: Count of total review items :type total_review_count: long """ @@ -1545,7 +1545,7 @@ class ReviewSummary(Model): :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` + :type rating_split: list of :class:`RatingCountPerRating ` """ _attribute_map = { @@ -1575,7 +1575,7 @@ class UnpackagedExtensionData(Model): :param extension_name: :type extension_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param is_converted_to_markdown: :type is_converted_to_markdown: bool :param is_preview: @@ -1707,7 +1707,7 @@ class Concern(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param category: Category of the concern :type category: object """ @@ -1756,7 +1756,7 @@ class Publisher(PublisherBase): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1772,7 +1772,7 @@ class Publisher(PublisherBase): :param state: :type state: object :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/git/models.py b/azure-devops/azure/devops/v5_1/git/models.py index bb876b6b..9ff07f61 100644 --- a/azure-devops/azure/devops/v5_1/git/models.py +++ b/azure-devops/azure/devops/v5_1/git/models.py @@ -13,9 +13,9 @@ class Attachment(Model): """Attachment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The person that uploaded this attachment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. :type content_hash: str :param created_date: The time the attachment was uploaded. @@ -27,7 +27,7 @@ class Attachment(Model): :param id: Id of the attachment. :type id: int :param properties: Extended properties. - :type properties: :class:`object ` + :type properties: :class:`object ` :param url: The url to download the content of the attachment. :type url: str """ @@ -65,7 +65,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -93,9 +93,9 @@ class Comment(Model): """Comment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The author of the comment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param comment_type: The comment type at the time of creation. :type comment_type: object :param content: The comment content. @@ -113,7 +113,7 @@ class Comment(Model): :param published_date: The date the comment was first published. :type published_date: datetime :param users_liked: A list of the users who have liked this comment. - :type users_liked: list of :class:`IdentityRef ` + :type users_liked: list of :class:`IdentityRef ` """ _attribute_map = { @@ -189,9 +189,9 @@ class CommentThread(Model): """CommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param identities: Set of identities related to this thread @@ -201,13 +201,13 @@ class CommentThread(Model): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` """ _attribute_map = { @@ -243,13 +243,13 @@ class CommentThreadContext(Model): :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. :type file_path: str :param left_file_end: Position of last character of the thread's span in left file. - :type left_file_end: :class:`CommentPosition ` + :type left_file_end: :class:`CommentPosition ` :param left_file_start: Position of first character of the thread's span in left file. - :type left_file_start: :class:`CommentPosition ` + :type left_file_start: :class:`CommentPosition ` :param right_file_end: Position of last character of the thread's span in right file. - :type right_file_end: :class:`CommentPosition ` + :type right_file_end: :class:`CommentPosition ` :param right_file_start: Position of first character of the thread's span in right file. - :type right_file_start: :class:`CommentPosition ` + :type right_file_start: :class:`CommentPosition ` """ _attribute_map = { @@ -277,13 +277,13 @@ class CommentTrackingCriteria(Model): :param orig_file_path: Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. :type orig_file_path: str :param orig_left_file_end: Original position of last character of the thread's span in left file. - :type orig_left_file_end: :class:`CommentPosition ` + :type orig_left_file_end: :class:`CommentPosition ` :param orig_left_file_start: Original position of first character of the thread's span in left file. - :type orig_left_file_start: :class:`CommentPosition ` + :type orig_left_file_start: :class:`CommentPosition ` :param orig_right_file_end: Original position of last character of the thread's span in right file. - :type orig_right_file_end: :class:`CommentPosition ` + :type orig_right_file_end: :class:`CommentPosition ` :param orig_right_file_start: Original position of first character of the thread's span in right file. - :type orig_right_file_start: :class:`CommentPosition ` + :type orig_right_file_start: :class:`CommentPosition ` :param second_comparing_iteration: The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. :type second_comparing_iteration: int """ @@ -353,7 +353,7 @@ class FileDiff(Model): """FileDiff. :param line_diff_blocks: The collection of line diff blocks - :type line_diff_blocks: list of :class:`LineDiffBlock ` + :type line_diff_blocks: list of :class:`LineDiffBlock ` :param original_path: Original path of item if different from current path. :type original_path: str :param path: Current path of item @@ -399,7 +399,7 @@ class FileDiffsCriteria(Model): :param base_version_commit: Commit ID of the base version :type base_version_commit: str :param file_diff_params: List of parameters for each of the files for which we need to get the file diff - :type file_diff_params: list of :class:`FileDiffParams ` + :type file_diff_params: list of :class:`FileDiffParams ` :param target_version_commit: Commit ID of the target version :type target_version_commit: str """ @@ -427,9 +427,9 @@ class GitAnnotatedTag(Model): :param object_id: The objectId (Sha1Id) of the tag. :type object_id: str :param tagged_by: User info and date of tagging. - :type tagged_by: :class:`GitUserDate ` + :type tagged_by: :class:`GitUserDate ` :param tagged_object: Tagged git object. - :type tagged_object: :class:`GitObject ` + :type tagged_object: :class:`GitObject ` :param url: :type url: str """ @@ -457,11 +457,11 @@ class GitAsyncRefOperation(Model): """GitAsyncRefOperation. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -529,9 +529,9 @@ class GitAsyncRefOperationParameters(Model): :param onto_ref_name: The target branch for the cherry pick or revert operation. :type onto_ref_name: str :param repository: The git repository for the cherry pick or revert operation. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). - :type source: :class:`GitAsyncRefOperationSource ` + :type source: :class:`GitAsyncRefOperationSource ` """ _attribute_map = { @@ -553,7 +553,7 @@ class GitAsyncRefOperationSource(Model): """GitAsyncRefOperationSource. :param commit_list: A list of commits to cherry pick or revert - :type commit_list: list of :class:`GitCommitRef ` + :type commit_list: list of :class:`GitCommitRef ` :param pull_request_id: Id of the pull request to cherry pick or revert :type pull_request_id: int """ @@ -573,7 +573,7 @@ class GitBlobRef(Model): """GitBlobRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Size of blob content (in bytes) @@ -605,7 +605,7 @@ class GitBranchStats(Model): :param behind_count: Number of commits behind. :type behind_count: int :param commit: Current commit. - :type commit: :class:`GitCommitRef ` + :type commit: :class:`GitCommitRef ` :param is_base_version: True if this is the result for the base version. :type is_base_version: bool :param name: Name of the ref. @@ -633,11 +633,11 @@ class GitCherryPick(GitAsyncRefOperation): """GitCherryPick. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -666,7 +666,7 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` """ _attribute_map = { @@ -694,7 +694,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -728,13 +728,13 @@ class GitCommitRef(Model): """GitCommitRef. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -742,19 +742,19 @@ class GitCommitRef(Model): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str :param push: The push associated with this commit. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` """ _attribute_map = { @@ -796,7 +796,7 @@ class GitConflict(Model): """GitConflict. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param conflict_id: :type conflict_id: int :param conflict_path: @@ -804,19 +804,19 @@ class GitConflict(Model): :param conflict_type: :type conflict_type: object :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` + :type merge_base_commit: :class:`GitCommitRef ` :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` + :type merge_origin: :class:`GitMergeOriginRef ` :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` + :type merge_source_commit: :class:`GitCommitRef ` :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` + :type merge_target_commit: :class:`GitCommitRef ` :param resolution_error: :type resolution_error: object :param resolution_status: :type resolution_status: object :param resolved_by: - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` :param resolved_date: :type resolved_date: datetime :param url: @@ -864,7 +864,7 @@ class GitConflictUpdateResult(Model): :param custom_message: Reason for failing :type custom_message: str :param updated_conflict: New state of the conflict after updating - :type updated_conflict: :class:`GitConflict ` + :type updated_conflict: :class:`GitConflict ` :param update_status: Status of the update on the server :type update_status: object """ @@ -890,7 +890,7 @@ class GitDeletedRepository(Model): :param created_date: :type created_date: datetime :param deleted_by: - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: :type deleted_date: datetime :param id: @@ -898,7 +898,7 @@ class GitDeletedRepository(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -972,15 +972,15 @@ class GitForkSyncRequest(Model): """GitForkSyncRequest. :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` + :type detailed_status: :class:`GitForkOperationStatusDetail ` :param operation_id: Unique identifier for the operation. :type operation_id: int :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` :param status: :type status: object """ @@ -1008,9 +1008,9 @@ class GitForkSyncRequestParameters(Model): """GitForkSyncRequestParameters. :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` """ _attribute_map = { @@ -1048,15 +1048,15 @@ class GitImportRequest(Model): """GitImportRequest. :param _links: Links to related resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: Detailed status of the import, including the current step and an error message, if applicable. - :type detailed_status: :class:`GitImportStatusDetail ` + :type detailed_status: :class:`GitImportStatusDetail ` :param import_request_id: The unique identifier for this import request. :type import_request_id: int :param parameters: Parameters for creating the import request. - :type parameters: :class:`GitImportRequestParameters ` + :type parameters: :class:`GitImportRequestParameters ` :param repository: The target repository for this import. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param status: Current status of the import. :type status: object :param url: A link back to this import request resource. @@ -1090,11 +1090,11 @@ class GitImportRequestParameters(Model): :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done :type delete_service_endpoint_after_import_is_done: bool :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param service_endpoint_id: Service Endpoint for connection to external endpoint :type service_endpoint_id: str :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` """ _attribute_map = { @@ -1200,7 +1200,7 @@ class GitItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` + :type item_descriptors: list of :class:`GitItemDescriptor ` :param latest_processed_change: Whether to include shallow ref to commit that last changed each item :type latest_processed_change: bool """ @@ -1302,7 +1302,7 @@ class GitPolicyConfigurationResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: str :param policy_configurations: - :type policy_configurations: list of :class:`PolicyConfiguration ` + :type policy_configurations: list of :class:`PolicyConfiguration ` """ _attribute_map = { @@ -1320,41 +1320,41 @@ class GitPullRequest(Model): """GitPullRequest. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}``` :type artifact_id: str :param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it. - :type auto_complete_set_by: :class:`IdentityRef ` + :type auto_complete_set_by: :class:`IdentityRef ` :param closed_by: The user who closed the pull request. - :type closed_by: :class:`IdentityRef ` + :type closed_by: :class:`IdentityRef ` :param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally). :type closed_date: datetime :param code_review_id: The code review ID of the pull request. Used internally. :type code_review_id: int :param commits: The commits contained in the pull request. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param completion_options: Options which affect how the pull request will be merged when it is completed. - :type completion_options: :class:`GitPullRequestCompletionOptions ` + :type completion_options: :class:`GitPullRequestCompletionOptions ` :param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally. :type completion_queue_time: datetime :param created_by: The identity of the user who created the pull request. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: The date when the pull request was created. :type creation_date: datetime :param description: The description of the pull request. :type description: str :param fork_source: If this is a PR from a fork this will contain information about its source. - :type fork_source: :class:`GitForkRef ` + :type fork_source: :class:`GitForkRef ` :param is_draft: Draft / WIP pull request. :type is_draft: bool :param labels: The labels associated with the pull request. - :type labels: list of :class:`WebApiTagDefinition ` + :type labels: list of :class:`WebApiTagDefinition ` :param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. - :type last_merge_commit: :class:`GitCommitRef ` + :type last_merge_commit: :class:`GitCommitRef ` :param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge. - :type last_merge_source_commit: :class:`GitCommitRef ` + :type last_merge_source_commit: :class:`GitCommitRef ` :param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge. - :type last_merge_target_commit: :class:`GitCommitRef ` + :type last_merge_target_commit: :class:`GitCommitRef ` :param merge_failure_message: If set, pull request merge failed for this reason. :type merge_failure_message: str :param merge_failure_type: The type of failure (if any) of the pull request merge. @@ -1362,7 +1362,7 @@ class GitPullRequest(Model): :param merge_id: The ID of the job used to run the pull request merge. Used internally. :type merge_id: str :param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. - :type merge_options: :class:`GitPullRequestMergeOptions ` + :type merge_options: :class:`GitPullRequestMergeOptions ` :param merge_status: The current status of the pull request merge. :type merge_status: object :param pull_request_id: The ID of the pull request. @@ -1370,9 +1370,9 @@ class GitPullRequest(Model): :param remote_url: Used internally. :type remote_url: str :param repository: The repository containing the target branch of the pull request. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param reviewers: A list of reviewers on the pull request along with the state of their votes. - :type reviewers: list of :class:`IdentityRefWithVote ` + :type reviewers: list of :class:`IdentityRefWithVote ` :param source_ref_name: The name of the source branch of the pull request. :type source_ref_name: str :param status: The status of the pull request. @@ -1386,7 +1386,7 @@ class GitPullRequest(Model): :param url: Used internally. :type url: str :param work_item_refs: Any work item references associated with this pull request. - :type work_item_refs: list of :class:`ResourceRef ` + :type work_item_refs: list of :class:`ResourceRef ` """ _attribute_map = { @@ -1464,13 +1464,29 @@ def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, clo self.work_item_refs = work_item_refs +class GitPullRequestChange(Model): + """GitPullRequestChange. + + :param change_tracking_id: ID used to track files through multiple changes. + :type change_tracking_id: int + """ + + _attribute_map = { + 'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'} + } + + def __init__(self, change_tracking_id=None): + super(GitPullRequestChange, self).__init__() + self.change_tracking_id = change_tracking_id + + class GitPullRequestCommentThread(CommentThread): """GitPullRequestCommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param identities: Set of identities related to this thread @@ -1480,15 +1496,15 @@ class GitPullRequestCommentThread(CommentThread): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` """ _attribute_map = { @@ -1516,9 +1532,9 @@ class GitPullRequestCommentThreadContext(Model): :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. :type change_tracking_id: int :param iteration_context: The iteration context being viewed when the thread was created. - :type iteration_context: :class:`CommentIterationContext ` + :type iteration_context: :class:`CommentIterationContext ` :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` + :type tracking_criteria: :class:`CommentTrackingCriteria ` """ _attribute_map = { @@ -1578,15 +1594,15 @@ class GitPullRequestIteration(Model): """GitPullRequestIteration. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the pull request iteration. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param change_list: Changes included with the pull request iteration. - :type change_list: list of :class:`GitPullRequestChange ` + :type change_list: list of :class:`GitPullRequestChange ` :param commits: The commits included with the pull request iteration. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param common_ref_commit: The first common Git commit of the source and target refs. - :type common_ref_commit: :class:`GitCommitRef ` + :type common_ref_commit: :class:`GitCommitRef ` :param created_date: The creation date of the pull request iteration. :type created_date: datetime :param description: Description of the pull request iteration. @@ -1600,13 +1616,13 @@ class GitPullRequestIteration(Model): :param old_target_ref_name: If the iteration reason is Retarget, this is the original target refName :type old_target_ref_name: str :param push: The Git push information associated with this pull request iteration. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param reason: The reason for which the pull request iteration was created. :type reason: object :param source_ref_commit: The source Git commit of this iteration. - :type source_ref_commit: :class:`GitCommitRef ` + :type source_ref_commit: :class:`GitCommitRef ` :param target_ref_commit: The target Git commit of this iteration. - :type target_ref_commit: :class:`GitCommitRef ` + :type target_ref_commit: :class:`GitCommitRef ` :param updated_date: The updated date of the pull request iteration. :type updated_date: datetime """ @@ -1654,7 +1670,7 @@ class GitPullRequestIterationChanges(Model): """GitPullRequestIterationChanges. :param change_entries: Changes made in the iteration. - :type change_entries: list of :class:`GitPullRequestChange ` + :type change_entries: list of :class:`GitPullRequestChange ` :param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. :type next_skip: int :param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes. @@ -1698,7 +1714,7 @@ class GitPullRequestQuery(Model): """GitPullRequestQuery. :param queries: The queries to perform. - :type queries: list of :class:`GitPullRequestQueryInput ` + :type queries: list of :class:`GitPullRequestQueryInput ` :param results: The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. :type results: list of {[GitPullRequest]} """ @@ -1782,13 +1798,13 @@ class GitPushRef(Model): """GitPushRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: @@ -1854,9 +1870,9 @@ class GitQueryBranchStatsCriteria(Model): """GitQueryBranchStatsCriteria. :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` + :type base_commit: :class:`GitVersionDescriptor ` :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` + :type target_commits: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -1880,7 +1896,7 @@ class GitQueryCommitsCriteria(Model): :param author: Alias or display name of the author :type author: str :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. - :type compare_version: :class:`GitVersionDescriptor ` + :type compare_version: :class:`GitVersionDescriptor ` :param exclude_deletes: Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path. :type exclude_deletes: bool :param from_commit_id: If provided, a lower bound for filtering commits alphabetically @@ -1902,7 +1918,7 @@ class GitQueryCommitsCriteria(Model): :param item_path: Path of item to search under :type item_path: str :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` + :type item_version: :class:`GitVersionDescriptor ` :param to_commit_id: If provided, an upper bound for filtering commits alphabetically :type to_commit_id: str :param to_date: If provided, only include history entries created before this date (string) @@ -1974,13 +1990,13 @@ class GitRef(Model): """GitRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -1988,7 +2004,7 @@ class GitRef(Model): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str """ @@ -2022,7 +2038,7 @@ class GitRefFavorite(Model): """GitRefFavorite. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param identity_id: @@ -2142,7 +2158,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -2152,9 +2168,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param size: Compressed size (bytes) of the repository. @@ -2204,9 +2220,9 @@ class GitRepositoryCreateOptions(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -2226,7 +2242,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -2234,7 +2250,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -2298,11 +2314,11 @@ class GitRevert(GitAsyncRefOperation): """GitRevert. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -2329,11 +2345,11 @@ class GitStatus(Model): """GitStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -2439,7 +2455,7 @@ class GitTreeDiff(Model): :param base_tree_id: ObjectId of the base tree of this diff. :type base_tree_id: str :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` + :type diff_entries: list of :class:`GitTreeDiffEntry ` :param target_tree_id: ObjectId of the target tree of this diff. :type target_tree_id: str :param url: REST Url to this resource. @@ -2499,7 +2515,7 @@ class GitTreeDiffResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: list of str :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` + :type tree_diff: :class:`GitTreeDiff ` """ _attribute_map = { @@ -2553,13 +2569,13 @@ class GitTreeRef(Model): """GitTreeRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Sum of sizes of all children :type size: long :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` + :type tree_entries: list of :class:`GitTreeEntryRef ` :param url: Url to tree :type url: str """ @@ -2661,7 +2677,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2689,7 +2705,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2749,7 +2765,7 @@ class IdentityRefWithVote(IdentityRef): """IdentityRefWithVote. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2781,7 +2797,7 @@ class IdentityRefWithVote(IdentityRef): :param vote: Vote on a pull request:
10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected :type vote: int :param voted_for: Groups or teams that that this reviewer contributed to.
Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes. - :type voted_for: list of :class:`IdentityRefWithVote ` + :type voted_for: list of :class:`IdentityRefWithVote ` """ _attribute_map = { @@ -2816,11 +2832,11 @@ class ImportRepositoryValidation(Model): """ImportRepositoryValidation. :param git_source: - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param password: :type password: str :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` :param username: :type username: str """ @@ -2864,11 +2880,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -2966,7 +2982,7 @@ class PolicyConfigurationRef(Model): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -3050,7 +3066,7 @@ class ShareNotificationContext(Model): :param message: Optional user note or message. :type message: str :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` + :type receivers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -3166,7 +3182,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. @@ -3189,9 +3205,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -3290,13 +3306,13 @@ class GitCommit(GitCommitRef): """GitCommit. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -3304,19 +3320,19 @@ class GitCommit(GitCommitRef): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str :param push: The push associated with this commit. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` :param tree_id: :type tree_id: str """ @@ -3348,13 +3364,13 @@ class GitForkRef(GitRef): """GitForkRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -3362,11 +3378,11 @@ class GitForkRef(GitRef): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param repository: The repository ID of the fork. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3391,11 +3407,11 @@ class GitItem(ItemModel): """GitItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -3409,7 +3425,7 @@ class GitItem(ItemModel): :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) :type git_object_type: object :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` + :type latest_processed_change: :class:`GitCommitRef ` :param object_id: Git object id :type object_id: str :param original_object_id: Git object id @@ -3448,9 +3464,9 @@ class GitMerge(GitMergeParameters): :param parents: An enumeration of the parent commit IDs for the merge commit. :type parents: list of str :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: Detailed status of the merge operation. - :type detailed_status: :class:`GitMergeOperationStatusDetail ` + :type detailed_status: :class:`GitMergeOperationStatusDetail ` :param merge_operation_id: Unique identifier for the merge operation. :type merge_operation_id: int :param status: Status of the merge operation. @@ -3478,11 +3494,11 @@ class GitPullRequestStatus(GitStatus): """GitPullRequestStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -3498,7 +3514,7 @@ class GitPullRequestStatus(GitStatus): :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. :type iteration_id: int :param properties: Custom properties of the status. - :type properties: :class:`object ` + :type properties: :class:`object ` """ _attribute_map = { @@ -3525,23 +3541,23 @@ class GitPush(GitPushRef): """GitPush. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: :type url: str :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` + :type ref_updates: list of :class:`GitRefUpdate ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3602,15 +3618,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. :type revision: int :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The date and time when the policy was created. :type created_date: datetime :param is_blocking: Indicates whether the policy is blocking. @@ -3692,6 +3708,7 @@ def __init__(self, id=None, type=None, url=None, revision=None, _links=None, cre 'GitObject', 'GitPolicyConfigurationResponse', 'GitPullRequest', + 'GitPullRequestChange', 'GitPullRequestCommentThread', 'GitPullRequestCommentThreadContext', 'GitPullRequestCompletionOptions', diff --git a/azure-devops/azure/devops/v5_1/graph/models.py b/azure-devops/azure/devops/v5_1/graph/models.py index 59805434..0af597ee 100644 --- a/azure-devops/azure/devops/v5_1/graph/models.py +++ b/azure-devops/azure/devops/v5_1/graph/models.py @@ -29,9 +29,9 @@ class GraphDescriptorResult(Model): """GraphDescriptorResult. :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: - :type value: :class:`str ` + :type value: :class:`str ` """ _attribute_map = { @@ -97,7 +97,7 @@ class GraphMembership(Model): """GraphMembership. :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param container_descriptor: :type container_descriptor: str :param member_descriptor: @@ -121,7 +121,7 @@ class GraphMembershipState(Model): """GraphMembershipState. :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param active: When true, the membership is active :type active: bool """ @@ -145,11 +145,11 @@ class GraphMembershipTraversal(Model): :param is_complete: When true, the subject is traversed completely :type is_complete: bool :param subject_descriptor: The traversed subject descriptor - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param traversed_subject_ids: Subject descriptor ids of the traversed members :type traversed_subject_ids: list of str :param traversed_subjects: Subject descriptors of the traversed members - :type traversed_subjects: list of :class:`str ` + :type traversed_subjects: list of :class:`str ` """ _attribute_map = { @@ -237,7 +237,7 @@ class GraphStorageKeyResult(Model): """GraphStorageKeyResult. :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: :type value: str """ @@ -257,7 +257,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -285,7 +285,7 @@ class GraphSubjectLookup(Model): """GraphSubjectLookup. :param lookup_keys: - :type lookup_keys: list of :class:`GraphSubjectLookupKey ` + :type lookup_keys: list of :class:`GraphSubjectLookupKey ` """ _attribute_map = { @@ -301,7 +301,7 @@ class GraphSubjectLookupKey(Model): """GraphSubjectLookupKey. :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` """ _attribute_map = { @@ -363,7 +363,7 @@ class PagedGraphGroups(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_groups: The enumerable list of groups found within a page. - :type graph_groups: list of :class:`GraphGroup ` + :type graph_groups: list of :class:`GraphGroup ` """ _attribute_map = { @@ -383,7 +383,7 @@ class PagedGraphUsers(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_users: The enumerable set of users found within a page. - :type graph_users: list of :class:`GraphUser ` + :type graph_users: list of :class:`GraphUser ` """ _attribute_map = { @@ -417,7 +417,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -457,7 +457,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -505,7 +505,7 @@ class GraphScope(GraphSubject): """GraphScope. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -561,7 +561,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -618,7 +618,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_1/identity/models.py b/azure-devops/azure/devops/v5_1/identity/models.py index 0b837664..92ca7600 100644 --- a/azure-devops/azure/devops/v5_1/identity/models.py +++ b/azure-devops/azure/devops/v5_1/identity/models.py @@ -13,7 +13,7 @@ class AccessTokenResult(Model): """AccessTokenResult. :param access_token: - :type access_token: :class:`JsonWebToken ` + :type access_token: :class:`JsonWebToken ` :param access_token_error: :type access_token_error: object :param authorization_id: @@ -23,7 +23,7 @@ class AccessTokenResult(Model): :param has_error: :type has_error: bool :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` + :type refresh_token: :class:`RefreshTokenGrant ` :param token_type: :type token_type: str :param valid_to: @@ -73,11 +73,11 @@ class ChangedIdentities(Model): """ChangedIdentities. :param identities: Changed Identities - :type identities: list of :class:`Identity ` + :type identities: list of :class:`Identity ` :param more_data: More data available, set to true if pagesize is specified. :type more_data: bool :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` + :type sequence_context: :class:`ChangedIdentitiesContext ` """ _attribute_map = { @@ -191,7 +191,7 @@ class GroupMembership(Model): :param active: :type active: bool :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param queried_id: @@ -219,7 +219,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -231,19 +231,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -289,7 +289,7 @@ class IdentityBatchInfo(Model): """IdentityBatchInfo. :param descriptors: - :type descriptors: list of :class:`str ` + :type descriptors: list of :class:`str ` :param identity_ids: :type identity_ids: list of str :param include_restricted_visibility: @@ -299,7 +299,7 @@ class IdentityBatchInfo(Model): :param query_membership: :type query_membership: object :param subject_descriptors: - :type subject_descriptors: list of :class:`str ` + :type subject_descriptors: list of :class:`str ` """ _attribute_map = { @@ -325,7 +325,7 @@ class IdentityScope(Model): """IdentityScope. :param administrators: - :type administrators: :class:`str ` + :type administrators: :class:`str ` :param id: :type id: str :param is_active: @@ -343,7 +343,7 @@ class IdentityScope(Model): :param securing_host_id: :type securing_host_id: str :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` """ _attribute_map = { @@ -389,7 +389,7 @@ class IdentitySelf(Model): :param origin_id: The unique identifier from the system of origin. If there are multiple tenants this is the unique identifier of the account in the home tenant. (For MSA this is the PUID in hex notation, for AAD this is the object id.) :type origin_id: str :param tenants: For AAD accounts this is all of the tenants that this account is a member of. - :type tenants: list of :class:`TenantInfo ` + :type tenants: list of :class:`TenantInfo ` """ _attribute_map = { @@ -417,15 +417,15 @@ class IdentitySnapshot(Model): """IdentitySnapshot. :param groups: - :type groups: list of :class:`Identity ` + :type groups: list of :class:`Identity ` :param identity_ids: :type identity_ids: list of str :param memberships: - :type memberships: list of :class:`GroupMembership ` + :type memberships: list of :class:`GroupMembership ` :param scope_id: :type scope_id: str :param scopes: - :type scopes: list of :class:`IdentityScope ` + :type scopes: list of :class:`IdentityScope ` """ _attribute_map = { @@ -515,7 +515,7 @@ class RefreshTokenGrant(AuthorizationGrant): :param grant_type: :type grant_type: object :param jwt: - :type jwt: :class:`JsonWebToken ` + :type jwt: :class:`JsonWebToken ` """ _attribute_map = { @@ -578,7 +578,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -590,19 +590,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_1/licensing/models.py b/azure-devops/azure/devops/v5_1/licensing/models.py index ca842cdb..fb7f6105 100644 --- a/azure-devops/azure/devops/v5_1/licensing/models.py +++ b/azure-devops/azure/devops/v5_1/licensing/models.py @@ -23,15 +23,15 @@ class AccountEntitlement(Model): :param last_accessed_date: Gets or sets the date of the user last sign-in to this account :type last_accessed_date: datetime :param license: - :type license: :class:`License ` + :type license: :class:`License ` :param origin: Licensing origin :type origin: object :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` + :type rights: :class:`AccountRights ` :param status: The status of the user in the account :type status: object :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` :param user_id: Gets the id of the user to which the license belongs :type user_id: str """ @@ -69,7 +69,7 @@ class AccountEntitlementUpdateModel(Model): """AccountEntitlementUpdateModel. :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` + :type license: :class:`License ` """ _attribute_map = { @@ -139,7 +139,7 @@ class AccountLicenseUsage(Model): :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) :type disabled_count: int :param license: - :type license: :class:`AccountUserLicense ` + :type license: :class:`AccountUserLicense ` :param pending_provisioned_count: Amount that will be purchased in the next billing cycle :type pending_provisioned_count: int :param provisioned_count: Amount that has been purchased @@ -401,7 +401,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -431,7 +431,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -443,19 +443,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -501,9 +501,9 @@ class IdentityMapping(Model): """IdentityMapping. :param source_identity: - :type source_identity: :class:`Identity ` + :type source_identity: :class:`Identity ` :param target_identity: - :type target_identity: :class:`Identity ` + :type target_identity: :class:`Identity ` """ _attribute_map = { @@ -521,7 +521,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -671,7 +671,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -683,19 +683,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_1/location/models.py b/azure-devops/azure/devops/v5_1/location/models.py index 05d25c49..25e7cf44 100644 --- a/azure-devops/azure/devops/v5_1/location/models.py +++ b/azure-devops/azure/devops/v5_1/location/models.py @@ -45,9 +45,9 @@ class ConnectionData(Model): """ConnectionData. :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` + :type authenticated_user: :class:`Identity ` :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` + :type authorized_user: :class:`Identity ` :param deployment_id: The id for the server. :type deployment_id: str :param deployment_type: The type for the server Hosted/OnPremises. @@ -57,7 +57,7 @@ class ConnectionData(Model): :param last_user_access: The last user access for this instance. Null if not requested specifically. :type last_user_access: datetime :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` + :type location_service_data: :class:`LocationServiceData ` :param web_application_relative_directory: The virtual directory of the host we are talking to. :type web_application_relative_directory: str """ @@ -91,7 +91,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -103,19 +103,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -181,7 +181,7 @@ class LocationServiceData(Model): """LocationServiceData. :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` + :type access_mappings: list of :class:`AccessMapping ` :param client_cache_fresh: Data that the location service holds. :type client_cache_fresh: bool :param client_cache_time_to_live: The time to live on the location service cache. @@ -193,7 +193,7 @@ class LocationServiceData(Model): :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. :type last_change_id64: long :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` + :type service_definitions: list of :class:`ServiceDefinition ` :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) :type service_owner: str """ @@ -257,7 +257,7 @@ class ServiceDefinition(Model): :param inherit_level: :type inherit_level: object :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` + :type location_mappings: list of :class:`LocationMapping ` :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. :type max_version: str :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. @@ -267,7 +267,7 @@ class ServiceDefinition(Model): :param parent_service_type: :type parent_service_type: str :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param relative_path: :type relative_path: str :param relative_to_setting: @@ -335,7 +335,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -347,19 +347,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_1/maven/models.py b/azure-devops/azure/devops/v5_1/maven/models.py index 5ab02527..a1f0e3fe 100644 --- a/azure-devops/azure/devops/v5_1/maven/models.py +++ b/azure-devops/azure/devops/v5_1/maven/models.py @@ -25,9 +25,9 @@ class MavenDistributionManagement(Model): """MavenDistributionManagement. :param repository: - :type repository: :class:`MavenRepository ` + :type repository: :class:`MavenRepository ` :param snapshot_repository: - :type snapshot_repository: :class:`MavenSnapshotRepository ` + :type snapshot_repository: :class:`MavenSnapshotRepository ` """ _attribute_map = { @@ -71,27 +71,27 @@ class MavenPackage(Model): :param artifact_id: :type artifact_id: str :param artifact_index: - :type artifact_index: :class:`ReferenceLink ` + :type artifact_index: :class:`ReferenceLink ` :param artifact_metadata: - :type artifact_metadata: :class:`ReferenceLink ` + :type artifact_metadata: :class:`ReferenceLink ` :param deleted_date: :type deleted_date: datetime :param files: - :type files: :class:`ReferenceLinks ` + :type files: :class:`ReferenceLinks ` :param group_id: :type group_id: str :param pom: - :type pom: :class:`MavenPomMetadata ` + :type pom: :class:`MavenPomMetadata ` :param requested_file: - :type requested_file: :class:`ReferenceLink ` + :type requested_file: :class:`ReferenceLink ` :param snapshot_metadata: - :type snapshot_metadata: :class:`ReferenceLink ` + :type snapshot_metadata: :class:`ReferenceLink ` :param version: :type version: str :param versions: - :type versions: :class:`ReferenceLinks ` + :type versions: :class:`ReferenceLinks ` :param versions_index: - :type versions_index: :class:`ReferenceLink ` + :type versions_index: :class:`ReferenceLink ` """ _attribute_map = { @@ -129,11 +129,11 @@ class MavenPackagesBatchRequest(Model): """MavenPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MavenMinimalPackageDetails ` + :type packages: list of :class:`MavenMinimalPackageDetails ` """ _attribute_map = { @@ -181,7 +181,7 @@ class MavenPomBuild(Model): """MavenPomBuild. :param plugins: - :type plugins: list of :class:`Plugin ` + :type plugins: list of :class:`Plugin ` """ _attribute_map = { @@ -197,7 +197,7 @@ class MavenPomCi(Model): """MavenPomCi. :param notifiers: - :type notifiers: list of :class:`MavenPomCiNotifier ` + :type notifiers: list of :class:`MavenPomCiNotifier ` :param system: :type system: str :param url: @@ -257,7 +257,7 @@ class MavenPomDependencyManagement(Model): """MavenPomDependencyManagement. :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` """ _attribute_map = { @@ -359,29 +359,29 @@ class MavenPomMetadata(MavenPomGav): :param version: :type version: str :param build: - :type build: :class:`MavenPomBuild ` + :type build: :class:`MavenPomBuild ` :param ci_management: - :type ci_management: :class:`MavenPomCi ` + :type ci_management: :class:`MavenPomCi ` :param contributors: - :type contributors: list of :class:`MavenPomPerson ` + :type contributors: list of :class:`MavenPomPerson ` :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` :param dependency_management: - :type dependency_management: :class:`MavenPomDependencyManagement ` + :type dependency_management: :class:`MavenPomDependencyManagement ` :param description: :type description: str :param developers: - :type developers: list of :class:`MavenPomPerson ` + :type developers: list of :class:`MavenPomPerson ` :param distribution_management: - :type distribution_management: :class:`MavenDistributionManagement ` + :type distribution_management: :class:`MavenDistributionManagement ` :param inception_year: :type inception_year: str :param issue_management: - :type issue_management: :class:`MavenPomIssueManagement ` + :type issue_management: :class:`MavenPomIssueManagement ` :param licenses: - :type licenses: list of :class:`MavenPomLicense ` + :type licenses: list of :class:`MavenPomLicense ` :param mailing_lists: - :type mailing_lists: list of :class:`MavenPomMailingList ` + :type mailing_lists: list of :class:`MavenPomMailingList ` :param model_version: :type model_version: str :param modules: @@ -389,17 +389,17 @@ class MavenPomMetadata(MavenPomGav): :param name: :type name: str :param organization: - :type organization: :class:`MavenPomOrganization ` + :type organization: :class:`MavenPomOrganization ` :param packaging: :type packaging: str :param parent: - :type parent: :class:`MavenPomParent ` + :type parent: :class:`MavenPomParent ` :param prerequisites: :type prerequisites: dict :param properties: :type properties: dict :param scm: - :type scm: :class:`MavenPomScm ` + :type scm: :class:`MavenPomScm ` :param url: :type url: str """ @@ -626,7 +626,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -668,7 +668,7 @@ class Plugin(MavenPomGav): :param version: :type version: str :param configuration: - :type configuration: :class:`PluginConfiguration ` + :type configuration: :class:`PluginConfiguration ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/member_entitlement_management/member_entitlement_management_client.py b/azure-devops/azure/devops/v5_1/member_entitlement_management/member_entitlement_management_client.py index eb82c6b3..c50a99a7 100644 --- a/azure-devops/azure/devops/v5_1/member_entitlement_management/member_entitlement_management_client.py +++ b/azure-devops/azure/devops/v5_1/member_entitlement_management/member_entitlement_management_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def add_group_entitlement(self, group_entitlement, rule_option=None): """AddGroupEntitlement. [Preview API] Create a group entitlement with license rule, extension rule. - :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups + :param :class:` ` group_entitlement: GroupEntitlement object specifying License Rule, Extensions Rule for the group. Based on the rules the members of the group will be given licenses and extensions. The Group Entitlement can be used to add the group to another project level groups :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be created and applied to it’s members (default option) or just be tested :rtype: :class:` ` """ @@ -94,7 +94,7 @@ def get_group_entitlements(self): def update_group_entitlement(self, document, group_id, rule_option=None): """UpdateGroupEntitlement. [Preview API] Update entitlements (License Rule, Extensions Rule, Project memberships etc.) for a group. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the group. :param str group_id: ID of the group. :param str rule_option: RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be updated and the changes are applied to it’s members (default option) or just be tested :rtype: :class:` ` @@ -173,7 +173,7 @@ def remove_member_from_group(self, group_id, member_id): def add_user_entitlement(self, user_entitlement): """AddUserEntitlement. [Preview API] Add a user, assign license and extensions and make them a member of a project group in an account. - :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. + :param :class:` ` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to. :rtype: :class:` ` """ content = self._serialize.body(user_entitlement, 'UserEntitlement') @@ -210,7 +210,7 @@ def get_user_entitlements(self, top=None, skip=None, filter=None, sort_option=No def update_user_entitlements(self, document, do_not_send_invite_for_new_users=None): """UpdateUserEntitlements. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform. :param bool do_not_send_invite_for_new_users: Whether to send email invites to new users or not :rtype: :class:` ` """ @@ -257,7 +257,7 @@ def get_user_entitlement(self, user_id): def update_user_entitlement(self, document, user_id): """UpdateUserEntitlement. [Preview API] Edit the entitlements (License, Extensions, Projects, Teams etc) for a user. - :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. + :param :class:`<[JsonPatchOperation]> ` document: JsonPatchDocument containing the operations to perform on the user. :param str user_id: ID of the user. :rtype: :class:` ` """ diff --git a/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py b/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py index 8234f3e9..6109c126 100644 --- a/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py +++ b/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py @@ -101,7 +101,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -149,19 +149,19 @@ class GroupEntitlement(Model): """GroupEntitlement. :param extension_rules: Extension Rules. - :type extension_rules: list of :class:`Extension ` + :type extension_rules: list of :class:`Extension ` :param group: Member reference. - :type group: :class:`GraphGroup ` + :type group: :class:`GraphGroup ` :param id: The unique identifier which matches the Id of the GraphMember. :type id: str :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). :type last_executed: datetime :param license_rule: License Rule. - :type license_rule: :class:`AccessLevel ` + :type license_rule: :class:`AccessLevel ` :param members: Group members. Only used when creating a new group. - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` :param project_entitlements: Relation between a project and the member's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param status: The status of the group rule. :type status: object """ @@ -199,7 +199,7 @@ class GroupOperationResult(BaseOperationResult): :param group_id: Identifier of the Group being acted upon :type group_id: str :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` + :type result: :class:`GroupEntitlement ` """ _attribute_map = { @@ -219,9 +219,9 @@ class GroupOption(Model): """GroupOption. :param access_level: Access Level - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param group: Group - :type group: :class:`Group ` + :type group: :class:`Group ` """ _attribute_map = { @@ -269,7 +269,7 @@ class MemberEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` """ _attribute_map = { @@ -321,7 +321,7 @@ class OperationResult(Model): :param member_id: Identifier of the Member being acted upon. :type member_id: str :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`MemberEntitlement ` + :type result: :class:`MemberEntitlement ` """ _attribute_map = { @@ -369,15 +369,15 @@ class ProjectEntitlement(Model): :param assignment_source: Assignment Source (e.g. Group or Unknown). :type assignment_source: object :param group: Project Group (e.g. Contributor, Reader etc.) - :type group: :class:`Group ` + :type group: :class:`Group ` :param is_project_permission_inherited: [Deprecated] Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership. :type is_project_permission_inherited: bool :param project_permission_inherited: Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership. :type project_permission_inherited: object :param project_ref: Project Ref - :type project_ref: :class:`ProjectRef ` + :type project_ref: :class:`ProjectRef ` :param team_refs: Team Ref. - :type team_refs: list of :class:`TeamRef ` + :type team_refs: list of :class:`TeamRef ` """ _attribute_map = { @@ -487,21 +487,21 @@ class UserEntitlement(Model): """UserEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param date_created: [Readonly] Date the user was added to the collection. :type date_created: datetime :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` """ _attribute_map = { @@ -543,7 +543,7 @@ class UserEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`UserEntitlementOperationResult ` + :type results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -571,7 +571,7 @@ class UserEntitlementOperationResult(Model): :param is_success: Success status of the operation. :type is_success: bool :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`UserEntitlement ` + :type result: :class:`UserEntitlement ` :param user_id: Identifier of the Member being acted upon. :type user_id: str """ @@ -597,7 +597,7 @@ class UserEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` """ _attribute_map = { @@ -615,15 +615,15 @@ class UsersSummary(Model): """UsersSummary. :param available_access_levels: Available Access Levels - :type available_access_levels: list of :class:`AccessLevel ` + :type available_access_levels: list of :class:`AccessLevel ` :param extensions: Summary of Extensions in the organization - :type extensions: list of :class:`ExtensionSummaryData ` + :type extensions: list of :class:`ExtensionSummaryData ` :param group_options: Group Options - :type group_options: list of :class:`GroupOption ` + :type group_options: list of :class:`GroupOption ` :param licenses: Summary of Licenses in the organization - :type licenses: list of :class:`LicenseSummaryData ` + :type licenses: list of :class:`LicenseSummaryData ` :param project_refs: Summary of Projects in the organization - :type project_refs: list of :class:`ProjectRef ` + :type project_refs: list of :class:`ProjectRef ` """ _attribute_map = { @@ -699,7 +699,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -751,7 +751,7 @@ class GroupEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`GroupOperationResult ` + :type results: list of :class:`GroupOperationResult ` """ _attribute_map = { @@ -831,23 +831,23 @@ class MemberEntitlement(UserEntitlement): """MemberEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param date_created: [Readonly] Date the user was added to the collection. :type date_created: datetime :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` :param member: Member reference - :type member: :class:`GraphMember ` + :type member: :class:`GraphMember ` """ _attribute_map = { @@ -883,7 +883,7 @@ class MemberEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful :type have_results_succeeded: bool :param results: List of results for each operation - :type results: list of :class:`OperationResult ` + :type results: list of :class:`OperationResult ` """ _attribute_map = { @@ -909,9 +909,9 @@ class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` + :type operation_results: list of :class:`OperationResult ` """ _attribute_map = { @@ -931,9 +931,9 @@ class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` + :type operation_result: :class:`OperationResult ` """ _attribute_map = { @@ -951,7 +951,7 @@ class PagedGraphMemberList(PagedList): """PagedGraphMemberList. :param members: - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` """ _attribute_map = { @@ -969,9 +969,9 @@ class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_results: List of results for each operation. - :type operation_results: list of :class:`UserEntitlementOperationResult ` + :type operation_results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -991,9 +991,9 @@ class UserEntitlementsPostResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_result: Operation result. - :type operation_result: :class:`UserEntitlementOperationResult ` + :type operation_result: :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -1011,7 +1011,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1059,7 +1059,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1116,7 +1116,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_1/notification/models.py b/azure-devops/azure/devops/v5_1/notification/models.py index 5f55d293..3656c00d 100644 --- a/azure-devops/azure/devops/v5_1/notification/models.py +++ b/azure-devops/azure/devops/v5_1/notification/models.py @@ -35,7 +35,7 @@ class BatchNotificationOperation(Model): :param notification_operation: :type notification_operation: object :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` """ _attribute_map = { @@ -221,9 +221,9 @@ class ExpressionFilterModel(Model): """ExpressionFilterModel. :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` + :type clauses: list of :class:`ExpressionFilterClause ` :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` + :type groups: list of :class:`ExpressionFilterGroup ` :param max_group_level: Max depth of the Subscription tree :type max_group_level: int """ @@ -245,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -343,7 +343,7 @@ class INotificationDiagnosticLog(Model): :param log_type: :type log_type: str :param messages: - :type messages: list of :class:`NotificationDiagnosticLogMessage ` + :type messages: list of :class:`NotificationDiagnosticLogMessage ` :param properties: :type properties: dict :param source: @@ -407,7 +407,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -417,7 +417,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -463,7 +463,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -577,7 +577,7 @@ class NotificationEventField(Model): """NotificationEventField. :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` + :type field_type: :class:`NotificationEventFieldType ` :param id: Gets or sets the unique identifier of this field. :type id: str :param name: Gets or sets the name of this field. @@ -631,13 +631,13 @@ class NotificationEventFieldType(Model): :param id: Gets or sets the unique identifier of this field type. :type id: str :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` + :type operator_constraints: list of :class:`OperatorConstraint ` :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` + :type operators: list of :class:`NotificationEventFieldOperator ` :param subscription_field_type: :type subscription_field_type: object :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` + :type value: :class:`ValueDefinition ` """ _attribute_map = { @@ -663,7 +663,7 @@ class NotificationEventPublisher(Model): :param id: :type id: str :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` + :type subscription_management_info: :class:`SubscriptionManagement ` :param url: :type url: str """ @@ -709,13 +709,13 @@ class NotificationEventType(Model): """NotificationEventType. :param category: - :type category: :class:`NotificationEventTypeCategory ` + :type category: :class:`NotificationEventTypeCategory ` :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa :type color: str :param custom_subscriptions_allowed: :type custom_subscriptions_allowed: bool :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` + :type event_publisher: :class:`NotificationEventPublisher ` :param fields: :type fields: dict :param has_initiator: @@ -727,7 +727,7 @@ class NotificationEventType(Model): :param name: Gets or sets the name of this event definition. :type name: str :param roles: - :type roles: list of :class:`NotificationEventRole ` + :type roles: list of :class:`NotificationEventRole ` :param supported_scopes: Gets or sets the scopes that this event type supports :type supported_scopes: list of str :param url: Gets or sets the rest end point to get this event type details (fields, fields types) @@ -819,7 +819,7 @@ class NotificationReason(Model): :param notification_reason_type: :type notification_reason_type: object :param target_identities: - :type target_identities: list of :class:`IdentityRef ` + :type target_identities: list of :class:`IdentityRef ` """ _attribute_map = { @@ -861,7 +861,7 @@ class NotificationStatistic(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -885,7 +885,7 @@ class NotificationStatisticsQuery(Model): """NotificationStatisticsQuery. :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` """ _attribute_map = { @@ -911,7 +911,7 @@ class NotificationStatisticsQueryConditions(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -985,41 +985,41 @@ class NotificationSubscription(Model): """NotificationSubscription. :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param diagnostics: Diagnostics for this subscription. - :type diagnostics: :class:`SubscriptionDiagnostics ` + :type diagnostics: :class:`SubscriptionDiagnostics ` :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts :type extended_properties: dict :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Read-only indicators that further describe the subscription. :type flags: object :param id: Subscription identifier. :type id: str :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. :type modified_date: datetime :param permissions: The permissions the user have for this subscriptions. :type permissions: object :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. :type status: object :param status_message: Message that provides more details about the status of the subscription. :type status_message: str :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: REST API URL of the subscriotion. :type url: str :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1069,15 +1069,15 @@ class NotificationSubscriptionCreateParameters(Model): """NotificationSubscriptionCreateParameters. :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` """ _attribute_map = { @@ -1103,11 +1103,11 @@ class NotificationSubscriptionTemplate(Model): :param description: :type description: str :param filter: - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param id: :type id: str :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` + :type notification_event_information: :class:`NotificationEventType ` :param type: :type type: object """ @@ -1133,21 +1133,21 @@ class NotificationSubscriptionUpdateParameters(Model): """NotificationSubscriptionUpdateParameters. :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Updated status for the subscription. Typically used to enable or disable a subscription. :type status: object :param status_message: Optional message that provides more details about the updated status. :type status_message: str :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1253,11 +1253,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1279,7 +1279,7 @@ class SubscriptionEvaluationRequest(Model): :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date :type min_events_created_date: datetime :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` """ _attribute_map = { @@ -1299,11 +1299,11 @@ class SubscriptionEvaluationResult(Model): :param evaluation_job_status: Subscription evaluation job status :type evaluation_job_status: object :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` + :type events: :class:`EventsEvaluationResult ` :param id: The requestId which is the subscription evaluation jobId :type id: str :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` + :type notifications: :class:`NotificationsEvaluationResult ` """ _attribute_map = { @@ -1373,7 +1373,7 @@ class SubscriptionQuery(Model): """SubscriptionQuery. :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` + :type conditions: list of :class:`SubscriptionQueryCondition ` :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. :type query_flags: object """ @@ -1393,7 +1393,7 @@ class SubscriptionQueryCondition(Model): """SubscriptionQueryCondition. :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Flags to specify the the type subscriptions to query for. :type flags: object :param scope: Scope that matching subscriptions must have. @@ -1494,11 +1494,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { @@ -1534,7 +1534,7 @@ class ValueDefinition(Model): """ValueDefinition. :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` + :type data_source: list of :class:`InputValue ` :param end_point: Gets or sets the rest end point. :type end_point: str :param result_template: Gets or sets the result template. @@ -1558,7 +1558,7 @@ class VssNotificationEvent(Model): """VssNotificationEvent. :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` + :type actors: list of :class:`EventActor ` :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. :type artifact_uris: list of str :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. @@ -1572,7 +1572,7 @@ class VssNotificationEvent(Model): :param process_delay: How long to wait before processing this event. The default is to process immediately. :type process_delay: object :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` + :type scopes: list of :class:`EventScope ` :param source_event_created_time: This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised. :type source_event_created_time: datetime """ @@ -1639,7 +1639,7 @@ class FieldInputValues(InputValues): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1649,7 +1649,7 @@ class FieldInputValues(InputValues): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` :param operators: :type operators: str """ @@ -1678,7 +1678,7 @@ class FieldValuesQuery(InputValuesQuery): :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object :param input_values: - :type input_values: list of :class:`FieldInputValues ` + :type input_values: list of :class:`FieldInputValues ` :param scope: :type scope: str """ diff --git a/azure-devops/azure/devops/v5_1/npm/models.py b/azure-devops/azure/devops/v5_1/npm/models.py index 252da241..42fd0870 100644 --- a/azure-devops/azure/devops/v5_1/npm/models.py +++ b/azure-devops/azure/devops/v5_1/npm/models.py @@ -73,11 +73,11 @@ class NpmPackagesBatchRequest(Model): """NpmPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -137,7 +137,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deprecate_message: Deprecated message, if any, for the package. :type deprecate_message: str :param id: Package Id. @@ -147,7 +147,7 @@ class Package(Model): :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` + :type source_chain: list of :class:`UpstreamSourceInfo ` :param unpublished_date: If and when the package was deleted. :type unpublished_date: datetime :param version: The version of the package. @@ -183,7 +183,7 @@ class PackageVersionDetails(Model): :param deprecate_message: Indicates the deprecate message of a package version :type deprecate_message: str :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/nuGet/models.py b/azure-devops/azure/devops/v5_1/nuGet/models.py index 97387f2f..8e9ada13 100644 --- a/azure-devops/azure/devops/v5_1/nuGet/models.py +++ b/azure-devops/azure/devops/v5_1/nuGet/models.py @@ -73,11 +73,11 @@ class NuGetPackagesBatchRequest(Model): """NuGetPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -137,7 +137,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -147,7 +147,7 @@ class Package(Model): :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` + :type source_chain: list of :class:`UpstreamSourceInfo ` :param version: The version of the package. :type version: str """ @@ -179,7 +179,7 @@ class PackageVersionDetails(Model): :param listed: Indicates the listing state of a package :type listed: bool :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/operations/models.py b/azure-devops/azure/devops/v5_1/operations/models.py index 79715934..0ab0592a 100644 --- a/azure-devops/azure/devops/v5_1/operations/models.py +++ b/azure-devops/azure/devops/v5_1/operations/models.py @@ -81,13 +81,13 @@ class Operation(OperationReference): :param url: URL to get the full operation object. :type url: str :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_message: Detailed messaged about the status of an operation. :type detailed_message: str :param result_message: Result message for an operation. :type result_message: str :param result_url: URL to the operation result. - :type result_url: :class:`OperationResultReference ` + :type result_url: :class:`OperationResultReference ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/policy/models.py b/azure-devops/azure/devops/v5_1/policy/models.py index 2ac99511..2c2e7a51 100644 --- a/azure-devops/azure/devops/v5_1/policy/models.py +++ b/azure-devops/azure/devops/v5_1/policy/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -41,7 +41,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -103,7 +103,7 @@ class PolicyConfigurationRef(Model): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -125,15 +125,15 @@ class PolicyEvaluationRecord(Model): """PolicyEvaluationRecord. :param _links: Links to other related objects - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies the target of a policy evaluation. :type artifact_id: str :param completed_date: Time when this policy finished evaluating on this pull request. :type completed_date: datetime :param configuration: Contains all configuration data for the policy which is being evaluated. - :type configuration: :class:`PolicyConfiguration ` + :type configuration: :class:`PolicyConfiguration ` :param context: Internal context data of this policy evaluation. - :type context: :class:`object ` + :type context: :class:`object ` :param evaluation_id: Guid which uniquely identifies this evaluation record (one policy running on one pull request). :type evaluation_id: str :param started_date: Time when this policy was first evaluated on this pull request. @@ -211,7 +211,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. @@ -236,15 +236,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. :type revision: int :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The date and time when the policy was created. :type created_date: datetime :param is_blocking: Indicates whether the policy is blocking. @@ -254,7 +254,7 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param is_enabled: Indicates whether the policy is enabled. :type is_enabled: bool :param settings: The policy configuration settings. - :type settings: :class:`object ` + :type settings: :class:`object ` """ _attribute_map = { @@ -292,7 +292,7 @@ class PolicyType(PolicyTypeRef): :param url: The URL where the policy type can be retrieved. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Detailed description of the policy type. :type description: str """ diff --git a/azure-devops/azure/devops/v5_1/profile/models.py b/azure-devops/azure/devops/v5_1/profile/models.py index 97914fd6..fd05c747 100644 --- a/azure-devops/azure/devops/v5_1/profile/models.py +++ b/azure-devops/azure/devops/v5_1/profile/models.py @@ -53,7 +53,7 @@ class ProfileRegions(Model): :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out :type opt_out_contact_consent_requirement_regions: list of str :param regions: List of country/regions - :type regions: list of :class:`ProfileRegion ` + :type regions: list of :class:`ProfileRegion ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/project_analysis/models.py b/azure-devops/azure/devops/v5_1/project_analysis/models.py index 79b7902f..ddefc4ad 100644 --- a/azure-devops/azure/devops/v5_1/project_analysis/models.py +++ b/azure-devops/azure/devops/v5_1/project_analysis/models.py @@ -102,7 +102,7 @@ class ProjectActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param project_id: :type project_id: str :param pull_requests_completed_count: @@ -142,9 +142,9 @@ class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` :param result_phase: :type result_phase: object :param url: @@ -177,7 +177,7 @@ class RepositoryActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param repository_id: :type repository_id: str """ @@ -207,7 +207,7 @@ class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param name: :type name: str :param result_phase: diff --git a/azure-devops/azure/devops/v5_1/py_pi_api/models.py b/azure-devops/azure/devops/v5_1/py_pi_api/models.py index 0de98cf6..7a29e072 100644 --- a/azure-devops/azure/devops/v5_1/py_pi_api/models.py +++ b/azure-devops/azure/devops/v5_1/py_pi_api/models.py @@ -73,7 +73,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -109,7 +109,7 @@ class PackageVersionDetails(Model): """PackageVersionDetails. :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -125,11 +125,11 @@ class PyPiPackagesBatchRequest(Model): """PyPiPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py b/azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py index 85f7e9c3..9b2326d7 100644 --- a/azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py +++ b/azure-devops/azure/devops/v5_1/py_pi_api/py_pi_api_client.py @@ -92,7 +92,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] Restore a package version from the recycle bin to its associated feed. - :param :class:` ` package_version_details: Set the 'Deleted' state to 'false' to restore the package to its feed. + :param :class:` ` package_version_details: Set the 'Deleted' state to 'false' to restore the package to its feed. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. @@ -161,7 +161,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] Update state for a package version. - :param :class:` ` package_version_details: Details to be updated. + :param :class:` ` package_version_details: Details to be updated. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. diff --git a/azure-devops/azure/devops/v5_1/security/models.py b/azure-devops/azure/devops/v5_1/security/models.py index 6b9e9400..4cbf0e23 100644 --- a/azure-devops/azure/devops/v5_1/security/models.py +++ b/azure-devops/azure/devops/v5_1/security/models.py @@ -17,9 +17,9 @@ class AccessControlEntry(Model): :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. :type deny: int :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` + :type extended_info: :class:`AceExtendedInformation ` """ _attribute_map = { @@ -65,6 +65,18 @@ def __init__(self, aces_dictionary=None, include_extended_info=None, inherit_per self.token = token +class AccessControlListsCollection(Model): + """AccessControlListsCollection. + + """ + + _attribute_map = { + } + + def __init__(self): + super(AccessControlListsCollection, self).__init__() + + class AceExtendedInformation(Model): """AceExtendedInformation. @@ -155,7 +167,7 @@ class PermissionEvaluationBatch(Model): :param always_allow_administrators: True if members of the Administrators group should always pass the security check. :type always_allow_administrators: bool :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` + :type evaluations: list of :class:`PermissionEvaluation ` """ _attribute_map = { @@ -173,7 +185,7 @@ class SecurityNamespaceDescription(Model): """SecurityNamespaceDescription. :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` + :type actions: list of :class:`ActionDefinition ` :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. :type dataspace_category: str :param display_name: This localized name for this namespace. @@ -240,6 +252,7 @@ def __init__(self, actions=None, dataspace_category=None, display_name=None, ele __all__ = [ 'AccessControlEntry', 'AccessControlList', + 'AccessControlListsCollection', 'AceExtendedInformation', 'ActionDefinition', 'PermissionEvaluation', diff --git a/azure-devops/azure/devops/v5_1/service_endpoint/models.py b/azure-devops/azure/devops/v5_1/service_endpoint/models.py index 4d755b1b..1c5b05dc 100644 --- a/azure-devops/azure/devops/v5_1/service_endpoint/models.py +++ b/azure-devops/azure/devops/v5_1/service_endpoint/models.py @@ -131,7 +131,7 @@ class AzureManagementGroupQueryResult(Model): :param error_message: Error message in case of an exception :type error_message: str :param value: List of azure management groups - :type value: list of :class:`AzureManagementGroup ` + :type value: list of :class:`AzureManagementGroup ` """ _attribute_map = { @@ -179,7 +179,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -213,7 +213,7 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param callback_context_template: :type callback_context_template: str :param callback_required_template: @@ -221,7 +221,7 @@ class DataSource(Model): :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: :type initial_context_template: str :param name: @@ -279,7 +279,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -337,7 +337,7 @@ class DataSourceDetails(Model): :param data_source_url: Gets or sets the data source url. :type data_source_url: str :param headers: Gets or sets the request headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Gets or sets the initialization context used for the initial call to the data source :type initial_context_template: str :param parameters: Gets the parameters of data source. @@ -423,7 +423,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -461,7 +461,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -493,7 +493,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -541,7 +541,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -623,11 +623,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -739,7 +739,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -749,7 +749,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -797,7 +797,7 @@ class OAuthConfiguration(Model): :param client_secret: Gets or sets the ClientSecret :type client_secret: str :param created_by: Gets or sets the identity who created the config. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when config was created. :type created_on: datetime :param endpoint_type: Gets or sets the type of the endpoint. @@ -805,7 +805,7 @@ class OAuthConfiguration(Model): :param id: Gets or sets the unique identifier of this field :type id: str :param modified_by: Gets or sets the identity who modified the config. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets the name @@ -937,11 +937,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -957,11 +957,11 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param owner: Owner of the endpoint Supported values are "library", "agentcloud" :type owner: str :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1009,17 +1009,17 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param authorization_url: Gets or sets the Authorization url required to authenticate using OAuth2 :type authorization_url: str :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -1049,7 +1049,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: Gets or sets the authorization of service endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: Gets or sets the data of service endpoint. :type data: dict :param type: Gets or sets the type of service endpoint. @@ -1077,13 +1077,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`ServiceEndpointExecutionOwner ` + :type definition: :class:`ServiceEndpointExecutionOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`ServiceEndpointExecutionOwner ` + :type owner: :class:`ServiceEndpointExecutionOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1117,7 +1117,7 @@ class ServiceEndpointExecutionOwner(Model): """ServiceEndpointExecutionOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Gets or sets the Id of service endpoint execution owner. :type id: int :param name: Gets or sets the name of service endpoint execution owner. @@ -1141,7 +1141,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1161,7 +1161,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1181,11 +1181,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: Gets or sets the data source details for the service endpoint request. - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1211,7 +1211,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: Gets or sets the error message of the service endpoint request result. :type error_message: str :param result: Gets or sets the result of service endpoint request. - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: Gets or sets the status code of the service endpoint request result. :type status_code: object """ @@ -1237,25 +1237,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1311,7 +1311,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. diff --git a/azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py b/azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py index 2c981e32..a1ddc0df 100644 --- a/azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py +++ b/azure-devops/azure/devops/v5_1/service_endpoint/service_endpoint_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def execute_service_endpoint_request(self, service_endpoint_request, project, endpoint_id): """ExecuteServiceEndpointRequest. [Preview API] Proxy for a GET request defined by a service endpoint. - :param :class:` ` service_endpoint_request: Service endpoint request. + :param :class:` ` service_endpoint_request: Service endpoint request. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint. :rtype: :class:` ` @@ -51,7 +51,7 @@ def execute_service_endpoint_request(self, service_endpoint_request, project, en def create_service_endpoint(self, endpoint, project): """CreateServiceEndpoint. [Preview API] Create a service endpoint. - :param :class:` ` endpoint: Service endpoint to create. + :param :class:` ` endpoint: Service endpoint to create. :param str project: Project ID or project name :rtype: :class:` ` """ @@ -182,7 +182,7 @@ def get_service_endpoints_by_names(self, project, endpoint_names, type=None, aut def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None): """UpdateServiceEndpoint. [Preview API] Update a service endpoint. - :param :class:` ` endpoint: Service endpoint to update. + :param :class:` ` endpoint: Service endpoint to update. :param str project: Project ID or project name :param str endpoint_id: Id of the service endpoint to update. :param str operation: Operation for the service endpoint. diff --git a/azure-devops/azure/devops/v5_1/service_hooks/models.py b/azure-devops/azure/devops/v5_1/service_hooks/models.py index 05224477..ff0f49e6 100644 --- a/azure-devops/azure/devops/v5_1/service_hooks/models.py +++ b/azure-devops/azure/devops/v5_1/service_hooks/models.py @@ -13,15 +13,15 @@ class Consumer(Model): """Consumer. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` + :type actions: list of :class:`ConsumerAction ` :param authentication_type: Gets or sets this consumer's authentication type. :type authentication_type: object :param description: Gets or sets this consumer's localized description. :type description: str :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :type external_configuration: :class:`ExternalConfigurationDescriptor ` :param id: Gets or sets this consumer's identifier. :type id: str :param image_url: Gets or sets this consumer's image URL, if any. @@ -29,7 +29,7 @@ class Consumer(Model): :param information_url: Gets or sets this consumer's information URL, if any. :type information_url: str :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this consumer's localized name. :type name: str :param url: The url for this resource @@ -69,7 +69,7 @@ class ConsumerAction(Model): """ConsumerAction. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. :type allow_resource_version_override: bool :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. @@ -79,7 +79,7 @@ class ConsumerAction(Model): :param id: Gets or sets this action's identifier. :type id: str :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this action's localized name. :type name: str :param supported_event_types: Gets or sets this action's supported event identifiers. @@ -123,13 +123,13 @@ class Event(Model): :param created_date: Gets or sets the UTC-based date and time that this event was created. :type created_date: datetime :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` + :type detailed_message: :class:`FormattedEventMessage ` :param event_type: Gets or sets the type of this event. :type event_type: str :param id: Gets or sets the unique identifier of this event. :type id: str :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` + :type message: :class:`FormattedEventMessage ` :param publisher_id: Gets or sets the identifier of the publisher that raised this event. :type publisher_id: str :param resource: Gets or sets the data associated with this event. @@ -139,7 +139,7 @@ class Event(Model): :param resource_version: Gets or sets the version of the data associated with this event. :type resource_version: str :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` + :type session_token: :class:`SessionToken ` """ _attribute_map = { @@ -177,7 +177,7 @@ class EventTypeDescriptor(Model): :param id: A unique id for the event type :type id: str :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: A localized friendly name for the event type :type name: str :param publisher_id: A unique id for the publisher of this event type @@ -261,7 +261,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -289,7 +289,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -371,11 +371,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -417,7 +417,7 @@ class InputFilter(Model): """InputFilter. :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` + :type conditions: list of :class:`InputFilterCondition ` """ _attribute_map = { @@ -531,7 +531,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -541,7 +541,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -587,7 +587,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -611,7 +611,7 @@ class Notification(Model): :param created_date: Gets or sets date and time that this result was created. :type created_date: datetime :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` + :type details: :class:`NotificationDetails ` :param event_id: The event id associated with this notification :type event_id: str :param id: The notification id @@ -671,7 +671,7 @@ class NotificationDetails(Model): :param error_message: Gets or sets this notification detail's error message. :type error_message: str :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` + :type event: :class:`Event ` :param event_type: Gets or sets this notification detail's event type. :type event_type: str :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) @@ -757,7 +757,7 @@ class NotificationsQuery(Model): """NotificationsQuery. :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` + :type associated_subscriptions: list of :class:`Subscription ` :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. :type include_details: bool :param max_created_date: Optional maximum date at which the notification was created @@ -771,7 +771,7 @@ class NotificationsQuery(Model): :param publisher_id: Optional publisher id to restrict the results to :type publisher_id: str :param results: Results from the query - :type results: list of :class:`Notification ` + :type results: list of :class:`Notification ` :param result_type: Optional notification result type to filter results to :type result_type: object :param status: Optional notification status to filter results to @@ -779,7 +779,7 @@ class NotificationsQuery(Model): :param subscription_ids: Optional list of subscription ids to restrict the results to :type subscription_ids: list of str :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` + :type summary: list of :class:`NotificationSummary ` """ _attribute_map = { @@ -817,7 +817,7 @@ class NotificationSummary(Model): """NotificationSummary. :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` + :type results: list of :class:`NotificationResultsSummaryDetail ` :param subscription_id: The subscription id associated with this notification :type subscription_id: str """ @@ -837,19 +837,19 @@ class Publisher(Model): """Publisher. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Gets this publisher's localized description. :type description: str :param id: Gets this publisher's identifier. :type id: str :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets this publisher's localized name. :type name: str :param service_instance_type: The service instance type of the first party publisher. :type service_instance_type: str :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` + :type supported_events: list of :class:`EventTypeDescriptor ` :param url: The url for this resource :type url: str """ @@ -883,17 +883,17 @@ class PublisherEvent(Model): :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. :type diagnostics: dict :param event: The event being published - :type event: :class:`Event ` + :type event: :class:`Event ` :param is_filtered_event: Gets or sets flag for filtered events :type is_filtered_event: bool :param notification_data: Additional data that needs to be sent as part of notification to complement the Resource data in the Event :type notification_data: dict :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` + :type other_resource_versions: list of :class:`VersionedResource ` :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` + :type subscription: :class:`Subscription ` """ _attribute_map = { @@ -925,7 +925,7 @@ class PublishersQuery(Model): :param publisher_inputs: Filter for publisher inputs :type publisher_inputs: dict :param results: Results from the query - :type results: list of :class:`Publisher ` + :type results: list of :class:`Publisher ` """ _attribute_map = { @@ -1013,7 +1013,7 @@ class Subscription(Model): """Subscription. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param action_description: :type action_description: str :param consumer_action_id: @@ -1023,7 +1023,7 @@ class Subscription(Model): :param consumer_inputs: Consumer input values :type consumer_inputs: dict :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param event_description: @@ -1033,7 +1033,7 @@ class Subscription(Model): :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: :type modified_date: datetime :param probation_retries: @@ -1047,7 +1047,7 @@ class Subscription(Model): :param status: :type status: object :param subscriber: - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: :type url: str """ @@ -1101,11 +1101,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1129,15 +1129,15 @@ class SubscriptionsQuery(Model): :param consumer_id: Optional consumer id to restrict the results to (null for any) :type consumer_id: str :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` + :type consumer_input_filters: list of :class:`InputFilter ` :param event_type: Optional event type id to restrict the results to (null for any) :type event_type: str :param publisher_id: Optional publisher id to restrict the results to (null for any) :type publisher_id: str :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param results: Results from the query - :type results: list of :class:`Subscription ` + :type results: list of :class:`Subscription ` :param subscriber_id: Optional subscriber filter. :type subscriber_id: str """ @@ -1201,11 +1201,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py index 15005bd7..5c02d2f4 100644 --- a/azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py +++ b/azure-devops/azure/devops/v5_1/service_hooks/service_hooks_client.py @@ -121,7 +121,7 @@ def get_subscription_diagnostics(self, subscription_id): def update_subscription_diagnostics(self, update_parameters, subscription_id): """UpdateSubscriptionDiagnostics. [Preview API] - :param :class:` ` update_parameters: + :param :class:` ` update_parameters: :param str subscription_id: :rtype: :class:` ` """ @@ -216,7 +216,7 @@ def get_notifications(self, subscription_id, max_results=None, status=None, resu def query_notifications(self, query): """QueryNotifications. [Preview API] Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. - :param :class:` ` query: + :param :class:` ` query: :rtype: :class:` ` """ content = self._serialize.body(query, 'NotificationsQuery') @@ -229,7 +229,7 @@ def query_notifications(self, query): def query_input_values(self, input_values_query, publisher_id): """QueryInputValues. [Preview API] - :param :class:` ` input_values_query: + :param :class:` ` input_values_query: :param str publisher_id: :rtype: :class:` ` """ @@ -272,7 +272,7 @@ def list_publishers(self): def query_publishers(self, query): """QueryPublishers. [Preview API] Query for service hook publishers. - :param :class:` ` query: + :param :class:` ` query: :rtype: :class:` ` """ content = self._serialize.body(query, 'PublishersQuery') @@ -285,7 +285,7 @@ def query_publishers(self, query): def create_subscription(self, subscription): """CreateSubscription. [Preview API] Create a subscription. - :param :class:` ` subscription: Subscription to be created. + :param :class:` ` subscription: Subscription to be created. :rtype: :class:` ` """ content = self._serialize.body(subscription, 'Subscription') @@ -350,7 +350,7 @@ def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=Non def replace_subscription(self, subscription, subscription_id=None): """ReplaceSubscription. [Preview API] Update a subscription. ID for a subscription that you wish to update. - :param :class:` ` subscription: + :param :class:` ` subscription: :param str subscription_id: :rtype: :class:` ` """ @@ -368,7 +368,7 @@ def replace_subscription(self, subscription, subscription_id=None): def create_subscriptions_query(self, query): """CreateSubscriptionsQuery. [Preview API] Query for service hook subscriptions. - :param :class:` ` query: + :param :class:` ` query: :rtype: :class:` ` """ content = self._serialize.body(query, 'SubscriptionsQuery') @@ -381,7 +381,7 @@ def create_subscriptions_query(self, query): def create_test_notification(self, test_notification, use_real_data=None): """CreateTestNotification. [Preview API] Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. - :param :class:` ` test_notification: + :param :class:` ` test_notification: :param bool use_real_data: Only allow testing with real data in existing subscriptions. :rtype: :class:` ` """ diff --git a/azure-devops/azure/devops/v5_1/symbol/models.py b/azure-devops/azure/devops/v5_1/symbol/models.py index e9cbfbda..048a71b3 100644 --- a/azure-devops/azure/devops/v5_1/symbol/models.py +++ b/azure-devops/azure/devops/v5_1/symbol/models.py @@ -15,7 +15,7 @@ class DebugEntryCreateBatch(Model): :param create_behavior: Defines what to do when a debug entry in the batch already exists. :type create_behavior: object :param debug_entries: The debug entries. - :type debug_entries: list of :class:`DebugEntry ` + :type debug_entries: list of :class:`DebugEntry ` """ _attribute_map = { @@ -65,7 +65,7 @@ class JsonBlobIdentifierWithBlocks(Model): """JsonBlobIdentifierWithBlocks. :param block_hashes: List of blob block hashes. - :type block_hashes: list of :class:`JsonBlobBlockHash ` + :type block_hashes: list of :class:`JsonBlobBlockHash ` :param identifier_value: Array of blobId bytes. :type identifier_value: str """ @@ -127,9 +127,9 @@ class DebugEntry(ResourceBase): :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. :type url: str :param blob_details: Details of the blob formatted to be deserialized for symbol service. - :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` + :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. - :type blob_identifier: :class:`JsonBlobIdentifier ` + :type blob_identifier: :class:`JsonBlobIdentifier ` :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. :type blob_uri: str :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. diff --git a/azure-devops/azure/devops/v5_1/task/models.py b/azure-devops/azure/devops/v5_1/task/models.py index 6d5efc3b..b77f3b2d 100644 --- a/azure-devops/azure/devops/v5_1/task/models.py +++ b/azure-devops/azure/devops/v5_1/task/models.py @@ -81,7 +81,7 @@ class PlanEnvironment(Model): """PlanEnvironment. :param mask: - :type mask: list of :class:`MaskHint ` + :type mask: list of :class:`MaskHint ` :param options: :type options: dict :param variables: @@ -141,7 +141,7 @@ class TaskAttachment(Model): """TaskAttachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_on: :type created_on: datetime :param last_changed_by: @@ -221,7 +221,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -269,9 +269,9 @@ class TaskOrchestrationPlanReference(Model): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -315,9 +315,9 @@ class TaskOrchestrationQueuedPlan(Model): :param assign_time: :type assign_time: datetime :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -361,15 +361,15 @@ class TaskOrchestrationQueuedPlanGroup(Model): """TaskOrchestrationQueuedPlanGroup. :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param queue_position: :type queue_position: int """ @@ -459,7 +459,7 @@ class TimelineRecord(Model): :param current_operation: :type current_operation: str :param details: - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: :type error_count: int :param finish_time: @@ -469,13 +469,13 @@ class TimelineRecord(Model): :param identifier: :type identifier: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: :type last_modified: datetime :param location: :type location: str :param log: - :type log: :class:`TaskLogReference ` + :type log: :class:`TaskLogReference ` :param name: :type name: str :param order: @@ -485,7 +485,7 @@ class TimelineRecord(Model): :param percent_complete: :type percent_complete: int :param previous_attempts: - :type previous_attempts: list of :class:`TimelineAttempt ` + :type previous_attempts: list of :class:`TimelineAttempt ` :param ref_name: :type ref_name: str :param result: @@ -497,7 +497,7 @@ class TimelineRecord(Model): :param state: :type state: object :param task: - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: :type type: str :param variables: @@ -681,7 +681,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param item_type: :type item_type: object :param children: - :type children: list of :class:`TaskOrchestrationItem ` + :type children: list of :class:`TaskOrchestrationItem ` :param continue_on_error: :type continue_on_error: bool :param data: @@ -691,7 +691,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param parallel: :type parallel: bool :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` + :type rollback: :class:`TaskOrchestrationContainer ` """ _attribute_map = { @@ -722,9 +722,9 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -736,13 +736,13 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param version: :type version: int :param environment: - :type environment: :class:`PlanEnvironment ` + :type environment: :class:`PlanEnvironment ` :param finish_time: :type finish_time: datetime :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` + :type implementation: :class:`TaskOrchestrationContainer ` :param initialization_log: - :type initialization_log: :class:`TaskLogReference ` + :type initialization_log: :class:`TaskLogReference ` :param requested_by_id: :type requested_by_id: str :param requested_for_id: @@ -756,7 +756,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param state: :type state: object :param timeline: - :type timeline: :class:`TimelineReference ` + :type timeline: :class:`TimelineReference ` """ _attribute_map = { @@ -811,7 +811,7 @@ class Timeline(TimelineReference): :param last_changed_on: :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/task_agent/models.py b/azure-devops/azure/devops/v5_1/task_agent/models.py index b7ad9750..045f41f3 100644 --- a/azure-devops/azure/devops/v5_1/task_agent/models.py +++ b/azure-devops/azure/devops/v5_1/task_agent/models.py @@ -131,7 +131,7 @@ class AzureManagementGroupQueryResult(Model): :param error_message: Error message in case of an exception :type error_message: str :param value: List of azure management groups - :type value: list of :class:`AzureManagementGroup ` + :type value: list of :class:`AzureManagementGroup ` """ _attribute_map = { @@ -179,7 +179,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -213,11 +213,11 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param name: :type name: str :param resource_url: @@ -259,7 +259,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -317,7 +317,7 @@ class DataSourceDetails(Model): :param data_source_url: :type data_source_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: :type parameters: dict :param resource_url: @@ -391,7 +391,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -413,7 +413,7 @@ class DeploymentGroupCreateParameter(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. - :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` :param pool_id: Identifier of the deployment pool in which deployment agents are registered. :type pool_id: int """ @@ -453,11 +453,11 @@ class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. :param columns_header: List of deployment group properties. And types of metrics provided for those properties. - :type columns_header: :class:`MetricsColumnsHeader ` + :type columns_header: :class:`MetricsColumnsHeader ` :param deployment_group: Deployment group. - :type deployment_group: :class:`DeploymentGroupReference ` + :type deployment_group: :class:`DeploymentGroupReference ` :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. - :type rows: list of :class:`MetricsRow ` + :type rows: list of :class:`MetricsRow ` """ _attribute_map = { @@ -481,9 +481,9 @@ class DeploymentGroupReference(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -525,11 +525,11 @@ class DeploymentMachine(Model): """DeploymentMachine. :param agent: Deployment agent. - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: Deployment target Identifier. :type id: int :param properties: Properties of the deployment target. - :type properties: :class:`object ` + :type properties: :class:`object ` :param tags: Tags of the deployment target. :type tags: list of str """ @@ -557,9 +557,9 @@ class DeploymentMachineGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -581,13 +581,13 @@ class DeploymentPoolSummary(Model): """DeploymentPoolSummary. :param deployment_groups: List of deployment groups referring to the deployment pool. - :type deployment_groups: list of :class:`DeploymentGroupReference ` + :type deployment_groups: list of :class:`DeploymentGroupReference ` :param offline_agents_count: Number of deployment agents that are offline. :type offline_agents_count: int :param online_agents_count: Number of deployment agents that are online. :type online_agents_count: int :param pool: Deployment pool. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` """ _attribute_map = { @@ -649,7 +649,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -701,7 +701,7 @@ class EnvironmentDeploymentExecutionRecord(Model): """EnvironmentDeploymentExecutionRecord. :param definition: Definition of the environment deployment execution owner - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param environment_id: Id of the Environment :type environment_id: int :param finish_time: Finish time of the environment deployment execution @@ -709,7 +709,7 @@ class EnvironmentDeploymentExecutionRecord(Model): :param id: Id of the Environment deployment execution history record :type id: long :param owner: Owner of the environment deployment execution record - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_id: Plan Id :type plan_id: str :param plan_type: Plan type of the environment deployment execution record @@ -769,7 +769,7 @@ class EnvironmentInstance(Model): """EnvironmentInstance. :param created_by: Identity reference of the user who created the Environment. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Creation time of the Environment :type created_on: datetime :param description: Description of the Environment. @@ -777,13 +777,13 @@ class EnvironmentInstance(Model): :param id: Id of the Environment :type id: int :param last_modified_by: Identity reference of the user who last modified the Environment. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: Last modified time of the Environment :type last_modified_on: datetime :param name: Name of the Environment. :type name: str :param service_groups: - :type service_groups: list of :class:`ServiceGroupReference ` + :type service_groups: list of :class:`ServiceGroupReference ` """ _attribute_map = { @@ -853,7 +853,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -901,7 +901,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -983,11 +983,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -1115,7 +1115,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1125,7 +1125,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -1237,9 +1237,9 @@ class MetricsColumnsHeader(Model): """MetricsColumnsHeader. :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState - :type dimensions: list of :class:`MetricsColumnMetaData ` + :type dimensions: list of :class:`MetricsColumnMetaData ` :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. - :type metrics: list of :class:`MetricsColumnMetaData ` + :type metrics: list of :class:`MetricsColumnMetaData ` """ _attribute_map = { @@ -1291,7 +1291,7 @@ class PackageMetadata(Model): :param type: The type of package (e.g. "agent") :type type: str :param version: The package version. - :type version: :class:`PackageVersion ` + :type version: :class:`PackageVersion ` """ _attribute_map = { @@ -1457,9 +1457,9 @@ class ResourceUsage(Model): """ResourceUsage. :param resource_limit: - :type resource_limit: :class:`ResourceLimit ` + :type resource_limit: :class:`ResourceLimit ` :param running_requests: - :type running_requests: list of :class:`TaskAgentJobRequest ` + :type running_requests: list of :class:`TaskAgentJobRequest ` :param used_count: :type used_count: int :param used_minutes: @@ -1501,13 +1501,13 @@ class SecureFile(Model): """SecureFile. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: @@ -1545,11 +1545,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -1565,9 +1565,9 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1613,13 +1613,13 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -1645,7 +1645,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: :type data: dict :param type: @@ -1673,13 +1673,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1713,7 +1713,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1733,7 +1733,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1753,11 +1753,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1779,7 +1779,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: :type error_message: str :param result: - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: :type status_code: object """ @@ -1801,25 +1801,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1865,15 +1865,15 @@ class ServiceGroup(Model): """ServiceGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -1937,7 +1937,7 @@ class TaskAgentAuthorization(Model): :param client_id: Gets or sets the client identifier for this agent. :type client_id: str :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` + :type public_key: :class:`TaskAgentPublicKey ` """ _attribute_map = { @@ -2009,17 +2009,17 @@ class TaskAgentCloudRequest(Model): """TaskAgentCloudRequest. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param agent_cloud_id: :type agent_cloud_id: int :param agent_connected_time: :type agent_connected_time: datetime :param agent_data: - :type agent_data: :class:`object ` + :type agent_data: :class:`object ` :param agent_specification: - :type agent_specification: :class:`object ` + :type agent_specification: :class:`object ` :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param provisioned_time: :type provisioned_time: datetime :param provision_request_time: @@ -2063,7 +2063,7 @@ class TaskAgentCloudType(Model): :param display_name: Gets or sets the display name of agnet cloud type. :type display_name: str :param input_descriptors: Gets or sets the input descriptors - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of agent cloud type. :type name: str """ @@ -2087,7 +2087,7 @@ class TaskAgentDelaySource(Model): :param delays: :type delays: list of object :param task_agent: - :type task_agent: :class:`TaskAgentReference ` + :type task_agent: :class:`TaskAgentReference ` """ _attribute_map = { @@ -2105,17 +2105,17 @@ class TaskAgentJobRequest(Model): """TaskAgentJobRequest. :param agent_delays: - :type agent_delays: list of :class:`TaskAgentDelaySource ` + :type agent_delays: list of :class:`TaskAgentDelaySource ` :param agent_specification: - :type agent_specification: :class:`object ` + :type agent_specification: :class:`object ` :param assign_time: :type assign_time: datetime :param data: :type data: dict :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param expected_duration: :type expected_duration: object :param finish_time: @@ -2129,13 +2129,13 @@ class TaskAgentJobRequest(Model): :param locked_until: :type locked_until: datetime :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` + :type matched_agents: list of :class:`TaskAgentReference ` :param matches_all_agents_in_pool: :type matches_all_agents_in_pool: bool :param orchestration_id: :type orchestration_id: str :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -2153,7 +2153,7 @@ class TaskAgentJobRequest(Model): :param request_id: :type request_id: long :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` + :type reserved_agent: :class:`TaskAgentReference ` :param result: :type result: object :param scope_id: @@ -2269,13 +2269,13 @@ class TaskAgentPoolMaintenanceDefinition(Model): :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time :type max_concurrent_agents_percentage: int :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :type options: :class:`TaskAgentPoolMaintenanceOptions ` :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` """ _attribute_map = { @@ -2317,11 +2317,11 @@ class TaskAgentPoolMaintenanceJob(Model): :param orchestration_id: Orchestration/Plan Id for the maintenance job :type orchestration_id: str :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param queue_time: Time that the maintenance job was queued :type queue_time: datetime :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param result: The maintenance job result :type result: object :param start_time: Time that the maintenance job was started @@ -2329,7 +2329,7 @@ class TaskAgentPoolMaintenanceJob(Model): :param status: Status of the maintenance job :type status: object :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` :param warning_count: The total warning counts during the maintenance job :type warning_count: int """ @@ -2373,7 +2373,7 @@ class TaskAgentPoolMaintenanceJobTargetAgent(Model): """TaskAgentPoolMaintenanceJobTargetAgent. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param job_id: :type job_id: int :param result: @@ -2525,7 +2525,7 @@ class TaskAgentQueue(Model): :param name: Name of the queue :type name: str :param pool: Pool reference for this queue - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project_id: Project Id :type project_id: str """ @@ -2549,7 +2549,7 @@ class TaskAgentReference(Model): """TaskAgentReference. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param access_point: Gets the access point of the agent. :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. @@ -2597,9 +2597,9 @@ class TaskAgentSession(Model): """TaskAgentSession. :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` + :type encryption_key: :class:`TaskAgentSessionKey ` :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. :type owner_name: str :param session_id: Gets the unique identifier for this session. @@ -2651,15 +2651,15 @@ class TaskAgentUpdate(Model): :param current_state: The current state of this agent update :type current_state: str :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` + :type reason: :class:`TaskAgentUpdateReason ` :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_time: Gets the date on which this agent update was requested. :type request_time: datetime :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` + :type source_version: :class:`PackageVersion ` :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` + :type target_version: :class:`PackageVersion ` """ _attribute_map = { @@ -2701,7 +2701,7 @@ class TaskDefinition(Model): """TaskDefinition. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2713,11 +2713,11 @@ class TaskDefinition(Model): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2731,7 +2731,7 @@ class TaskDefinition(Model): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2741,7 +2741,7 @@ class TaskDefinition(Model): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2749,7 +2749,7 @@ class TaskDefinition(Model): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -2771,11 +2771,11 @@ class TaskDefinition(Model): :param show_environment_variables: :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str """ @@ -2929,7 +2929,7 @@ class TaskExecution(Model): """TaskExecution. :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` + :type exec_task: :class:`TaskReference ` :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } :type platform_instructions: dict """ @@ -2949,7 +2949,7 @@ class TaskGroup(TaskDefinition): """TaskGroup. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2961,11 +2961,11 @@ class TaskGroup(TaskDefinition): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2979,7 +2979,7 @@ class TaskGroup(TaskDefinition): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2989,7 +2989,7 @@ class TaskGroup(TaskDefinition): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2997,7 +2997,7 @@ class TaskGroup(TaskDefinition): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -3019,23 +3019,23 @@ class TaskGroup(TaskDefinition): :param show_environment_variables: :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str :param comment: Gets or sets comment. :type comment: str :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets date on which it got created. :type created_on: datetime :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. :type deleted: bool :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets date on which it got modified. :type modified_on: datetime :param owner: Gets or sets the owner. @@ -3045,7 +3045,7 @@ class TaskGroup(TaskDefinition): :param revision: Gets or sets revision. :type revision: int :param tasks: Gets or sets the tasks. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` """ _attribute_map = { @@ -3128,7 +3128,7 @@ class TaskGroupCreateParameter(Model): :param icon_url: Sets url icon of the task group. :type icon_url: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -3138,9 +3138,9 @@ class TaskGroupCreateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -3210,7 +3210,7 @@ class TaskGroupRevision(Model): """TaskGroupRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -3264,7 +3264,7 @@ class TaskGroupStep(Model): :param inputs: Gets or sets dictionary of inputs. :type inputs: dict :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. :type timeout_in_minutes: int """ @@ -3312,7 +3312,7 @@ class TaskGroupUpdateParameter(Model): :param id: Sets the unique identifier of this field. :type id: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -3324,9 +3324,9 @@ class TaskGroupUpdateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -3386,7 +3386,7 @@ class TaskHubLicenseDetails(Model): :param hosted_licenses_are_premium: :type hosted_licenses_are_premium: bool :param marketplace_purchased_hosted_licenses: - :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` + :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` :param msdn_users_count: :type msdn_users_count: int :param purchased_hosted_license_count: Microsoft-hosted licenses purchased from VSTS directly. @@ -3462,7 +3462,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -3522,7 +3522,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -3706,7 +3706,7 @@ class VariableGroup(Model): """VariableGroup. :param created_by: Gets or sets the identity who created the variable group. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when variable group was created. :type created_on: datetime :param description: Gets or sets description of the variable group. @@ -3716,13 +3716,13 @@ class VariableGroup(Model): :param is_shared: Indicates whether variable group is shared with other projects or not. :type is_shared: bool :param modified_by: Gets or sets the identity who modified the variable group. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets name of the variable group. :type name: str :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Gets or sets type of the variable group. :type type: str :param variables: Gets or sets variables contained in the variable group. @@ -3766,7 +3766,7 @@ class VariableGroupParameters(Model): :param name: Sets name of the variable group. :type name: str :param provider_data: Sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Sets type of the variable group. :type type: str :param variables: Sets variables contained in the variable group. @@ -3826,7 +3826,7 @@ class VirtualMachine(Model): """VirtualMachine. :param agent: - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: :type id: int :param tags: @@ -3850,15 +3850,15 @@ class VirtualMachineGroup(ServiceGroup): """VirtualMachineGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -3916,7 +3916,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -3961,15 +3961,15 @@ class DeploymentGroup(DeploymentGroupReference): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param description: Description of the deployment group. :type description: str :param machine_count: Number of deployment targets in the deployment group. :type machine_count: int :param machines: List of deployment targets in the deployment group. - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param machine_tags: List of unique tags across all deployment targets in the deployment group. :type machine_tags: list of str """ @@ -4001,11 +4001,11 @@ class DeploymentMachineGroup(DeploymentMachineGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param size: :type size: int """ @@ -4029,15 +4029,15 @@ class KubernetesServiceGroup(ServiceGroup): """KubernetesServiceGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -4073,7 +4073,7 @@ class TaskAgent(TaskAgentReference): """TaskAgent. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param access_point: Gets the access point of the agent. :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. @@ -4091,21 +4091,21 @@ class TaskAgent(TaskAgentReference): :param version: Gets the version of the agent. :type version: str :param assigned_agent_cloud_request: Gets the Agent Cloud Request that's currently associated with this agent - :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` + :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` + :type assigned_request: :class:`TaskAgentJobRequest ` :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` + :type authorization: :class:`TaskAgentAuthorization ` :param created_on: Gets the date on which this agent was created. :type created_on: datetime :param last_completed_request: Gets the last request which was completed by this agent. - :type last_completed_request: :class:`TaskAgentJobRequest ` + :type last_completed_request: :class:`TaskAgentJobRequest ` :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. :type max_parallelism: int :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` + :type pending_update: :class:`TaskAgentUpdate ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_changed_on: Gets the date on which the last connectivity status change occurred. :type status_changed_on: datetime :param system_capabilities: @@ -4174,13 +4174,13 @@ class TaskAgentPool(TaskAgentPoolReference): :param auto_size: Gets or sets a value indicating whether or not the pool should autosize itself based on the Agent Cloud Provider settings :type auto_size: bool :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime :param owner: Gets the identity who owns or administrates this pool. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param target_size: Gets or sets a value indicating target parallelism :type target_size: int """ @@ -4238,7 +4238,7 @@ class TaskInputDefinition(TaskInputDefinitionBase): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ diff --git a/azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py b/azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py index 4bb974ec..f9baba83 100644 --- a/azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py +++ b/azure-devops/azure/devops/v5_1/task_agent/task_agent_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def add_agent_cloud(self, agent_cloud): """AddAgentCloud. [Preview API] - :param :class:` ` agent_cloud: + :param :class:` ` agent_cloud: :rtype: :class:` ` """ content = self._serialize.body(agent_cloud, 'TaskAgentCloud') @@ -91,7 +91,7 @@ def get_agent_cloud_types(self): def add_deployment_group(self, deployment_group, project): """AddDeploymentGroup. [Preview API] Create a deployment group. - :param :class:` ` deployment_group: Deployment group to create. + :param :class:` ` deployment_group: Deployment group to create. :param str project: Project ID or project name :rtype: :class:` ` """ @@ -187,7 +187,7 @@ def get_deployment_groups(self, project, name=None, action_filter=None, expand=N def update_deployment_group(self, deployment_group, project, deployment_group_id): """UpdateDeploymentGroup. [Preview API] Update a deployment group. - :param :class:` ` deployment_group: Deployment group to update. + :param :class:` ` deployment_group: Deployment group to update. :param str project: Project ID or project name :param int deployment_group_id: ID of the deployment group. :rtype: :class:` ` @@ -341,7 +341,7 @@ def update_deployment_targets(self, machines, project, deployment_group_id): def add_task_group(self, task_group, project): """AddTaskGroup. [Preview API] Create a task group. - :param :class:` ` task_group: Task group object to create. + :param :class:` ` task_group: Task group object to create. :param str project: Project ID or project name :rtype: :class:` ` """ @@ -418,7 +418,7 @@ def get_task_groups(self, project, task_group_id=None, expanded=None, task_id_fi def update_task_group(self, task_group, project, task_group_id=None): """UpdateTaskGroup. [Preview API] Update a task group. - :param :class:` ` task_group: Task group to update. + :param :class:` ` task_group: Task group to update. :param str project: Project ID or project name :param str task_group_id: Id of the task group to update. :rtype: :class:` ` @@ -439,7 +439,7 @@ def update_task_group(self, task_group, project, task_group_id=None): def add_variable_group(self, group, project): """AddVariableGroup. [Preview API] Add a variable group. - :param :class:` ` group: Variable group to add. + :param :class:` ` group: Variable group to add. :param str project: Project ID or project name :rtype: :class:` ` """ @@ -544,7 +544,7 @@ def get_variable_groups_by_id(self, project, group_ids): def update_variable_group(self, group, project, group_id): """UpdateVariableGroup. [Preview API] Update a variable group. - :param :class:` ` group: Variable group to update. + :param :class:` ` group: Variable group to update. :param str project: Project ID or project name :param int group_id: Id of the variable group to update. :rtype: :class:` ` diff --git a/azure-devops/azure/devops/v5_1/test/models.py b/azure-devops/azure/devops/v5_1/test/models.py index 301a41ef..31101727 100644 --- a/azure-devops/azure/devops/v5_1/test/models.py +++ b/azure-devops/azure/devops/v5_1/test/models.py @@ -19,7 +19,7 @@ class AggregatedDataForResultTrend(Model): :param run_summary_by_state: :type run_summary_by_state: dict :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_tests: :type total_tests: int """ @@ -49,11 +49,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param run_summary_by_outcome: :type run_summary_by_outcome: dict :param run_summary_by_state: @@ -217,7 +217,7 @@ class BuildConfiguration(Model): :param platform: :type platform: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param repository_guid: :type repository_guid: str :param repository_id: @@ -271,11 +271,11 @@ class BuildCoverage(Model): :param code_coverage_file_url: Code Coverage File Url :type code_coverage_file_url: str :param configuration: Build Configuration - :type configuration: :class:`BuildConfiguration ` + :type configuration: :class:`BuildConfiguration ` :param last_error: Last Error :type last_error: str :param modules: List of Modules - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: State :type state: str """ @@ -341,17 +341,17 @@ class CloneOperationInformation(Model): """CloneOperationInformation. :param clone_statistics: Clone Statistics - :type clone_statistics: :class:`CloneStatistics ` + :type clone_statistics: :class:`CloneStatistics ` :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue :type completion_date: datetime :param creation_date: DateTime when the operation was started :type creation_date: datetime :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` + :type destination_object: :class:`ShallowReference ` :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` + :type destination_plan: :class:`ShallowReference ` :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` + :type destination_project: :class:`ShallowReference ` :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. :type message: str :param op_id: The ID of the operation @@ -359,11 +359,11 @@ class CloneOperationInformation(Model): :param result_object_type: The type of the object generated as a result of the Clone operation :type result_object_type: object :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` + :type source_object: :class:`ShallowReference ` :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` + :type source_plan: :class:`ShallowReference ` :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` + :type source_project: :class:`ShallowReference ` :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete :type state: object :param url: Url for geting the clone information @@ -481,7 +481,7 @@ class CodeCoverageData(Model): :param build_platform: Platform of build for which data is retrieved/published :type build_platform: str :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` + :type coverage_stats: list of :class:`CodeCoverageStatistics ` """ _attribute_map = { @@ -537,11 +537,11 @@ class CodeCoverageSummary(Model): """CodeCoverageSummary. :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` + :type coverage_data: list of :class:`CodeCoverageData ` :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` + :type delta_build: :class:`ShallowReference ` """ _attribute_map = { @@ -665,11 +665,11 @@ class FailingSince(Model): """FailingSince. :param build: Build reference since failing. - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param date: Time since failing. :type date: datetime :param release: Release reference since failing. - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -717,7 +717,7 @@ class FunctionCoverage(Model): :param source_file: :type source_file: str :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -741,7 +741,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -769,7 +769,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -833,7 +833,7 @@ class LastResultDetails(Model): :param duration: :type duration: long :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` """ _attribute_map = { @@ -899,7 +899,7 @@ class LinkedWorkItemsQueryResult(Model): :param test_case_id: :type test_case_id: int :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -931,7 +931,7 @@ class ModuleCoverage(Model): :param file_url: Code Coverage File Url :type file_url: str :param functions: - :type functions: list of :class:`FunctionCoverage ` + :type functions: list of :class:`FunctionCoverage ` :param name: :type name: str :param signature: @@ -939,7 +939,7 @@ class ModuleCoverage(Model): :param signature_age: :type signature_age: int :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -989,15 +989,15 @@ class PlanUpdateModel(Model): """PlanUpdateModel. :param area: Area path to which the test plan belongs. This should be set to area path of the team that works on this test plan. - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: Build ID of the build whose quality is tested by the tests in this test plan. For automated testing, this build ID is used to find the test binaries that contain automated test methods. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: The Build Definition that generates a build associated with this test plan. - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param configuration_ids: IDs of configurations to be applied when new test suites and test cases are added to the test plan. :type configuration_ids: list of int :param description: Description of the test plan. @@ -1007,15 +1007,15 @@ class PlanUpdateModel(Model): :param iteration: Iteration path assigned to the test plan. This indicates when the target iteration by which the testing in this plan is supposed to be complete and the product is ready to be released. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: Name of the test plan. :type name: str :param owner: Owner of the test plan. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param start_date: Start date for the test plan. :type start_date: str :param state: State of the test plan. @@ -1023,7 +1023,7 @@ class PlanUpdateModel(Model): :param status: :type status: str :param test_outcome_settings: Test Outcome settings - :type test_outcome_settings: :class:`TestOutcomeSettings ` + :type test_outcome_settings: :class:`TestOutcomeSettings ` """ _attribute_map = { @@ -1073,9 +1073,9 @@ class PointAssignment(Model): """PointAssignment. :param configuration: Configuration that was assigned to the test case. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param tester: Tester that was assigned to the test case - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class PointsFilter(Model): :param testcase_ids: List of test case id for filtering. :type testcase_ids: list of int :param testers: List of tester for filtering. - :type testers: list of :class:`IdentityRef ` + :type testers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -1121,7 +1121,7 @@ class PointUpdateModel(Model): :param reset_to_active: Reset test point to active. :type reset_to_active: bool :param tester: Tester to update. Type IdentityRef. - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1263,7 +1263,7 @@ class ResultRetentionSettings(Model): :param automated_results_retention_duration: Automated test result retention duration in days :type automated_results_retention_duration: int :param last_updated_by: Last Updated by identity - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param manual_results_retention_duration: Manual test result retention duration in days @@ -1309,7 +1309,7 @@ class ResultsFilter(Model): :param test_point_ids: :type test_point_ids: list of int :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param trend_days: :type trend_days: int """ @@ -1351,7 +1351,7 @@ class RunCreateModel(Model): :param automated: true if test run is automated, false otherwise. By default it will be false. :type automated: bool :param build: An abstracted reference to the build that it belongs. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: Drop location of the build used for test run. :type build_drop_location: str :param build_flavor: Flavor of the build used for test run. (E.g: Release, Debug) @@ -1359,7 +1359,7 @@ class RunCreateModel(Model): :param build_platform: Platform of the build used for test run. (E.g.: x86, amd64) :type build_platform: str :param build_reference: - :type build_reference: :class:`BuildConfiguration ` + :type build_reference: :class:`BuildConfiguration ` :param comment: Comments entered by those analyzing the run. :type comment: str :param complete_date: Completed date time of the run. @@ -1369,37 +1369,37 @@ class RunCreateModel(Model): :param controller: Name of the test controller used for automated run. :type controller: str :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` + :type custom_test_fields: list of :class:`CustomTestField ` :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_test_environment: An abstracted reference to DtlTestEnvironment. - :type dtl_test_environment: :class:`ShallowReference ` + :type dtl_test_environment: :class:`ShallowReference ` :param due_date: Due date and time for test run. :type due_date: str :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` + :type environment_details: :class:`DtlEnvironmentDetails ` :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param iteration: The iteration in which to create the run. Root iteration of the team project will be default :type iteration: str :param name: Name of the test run. :type name: str :param owner: Display name of the owner of the run. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param plan: An abstracted reference to the plan that it belongs. - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param point_ids: IDs of the test points to use in the run. :type point_ids: list of int :param release_environment_uri: URI of release environment associated with the run. :type release_environment_uri: str :param release_reference: - :type release_reference: :class:`ReleaseReference ` + :type release_reference: :class:`ReleaseReference ` :param release_uri: URI of release associated with the run. :type release_uri: str :param run_summary: Run summary for run Type = NoConfigRun. - :type run_summary: list of :class:`RunSummaryModel ` + :type run_summary: list of :class:`RunSummaryModel ` :param run_timeout: :type run_timeout: object :param source_workflow: @@ -1413,7 +1413,7 @@ class RunCreateModel(Model): :param test_environment_id: ID of the test environment associated with the run. :type test_environment_id: str :param test_settings: An abstracted reference to the test settings resource. - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param type: Type of the run(RunType) :type type: str """ @@ -1521,7 +1521,7 @@ class RunStatistic(Model): :param outcome: Test run outcome :type outcome: str :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` + :type resolution_state: :class:`TestResolutionState ` :param state: State of the test run :type state: str """ @@ -1569,7 +1569,7 @@ class RunUpdateModel(Model): """RunUpdateModel. :param build: An abstracted reference to the build that it belongs. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: @@ -1585,11 +1585,11 @@ class RunUpdateModel(Model): :param delete_in_progress_results: :type delete_in_progress_results: bool :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: An abstracted reference to DtlEnvironment. - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` :param due_date: Due date and time for test run. :type due_date: str :param error_message: Error message associated with the run. @@ -1597,7 +1597,7 @@ class RunUpdateModel(Model): :param iteration: The iteration in which to create the run. :type iteration: str :param log_entries: Log entries associated with the run. Use a comma-separated list of multiple log entry objects. { logEntry }, { logEntry }, ... - :type log_entries: list of :class:`TestMessageLogDetails ` + :type log_entries: list of :class:`TestMessageLogDetails ` :param name: Name of the test run. :type name: str :param release_environment_uri: @@ -1605,7 +1605,7 @@ class RunUpdateModel(Model): :param release_uri: :type release_uri: str :param run_summary: Run summary for run Type = NoConfigRun. - :type run_summary: list of :class:`RunSummaryModel ` + :type run_summary: list of :class:`RunSummaryModel ` :param source_workflow: :type source_workflow: str :param started_date: Start date time of the run. @@ -1617,7 +1617,7 @@ class RunUpdateModel(Model): :param test_environment_id: :type test_environment_id: str :param test_settings: An abstracted reference to test setting resource. - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` """ _attribute_map = { @@ -1865,9 +1865,9 @@ class SuiteTestCase(Model): """SuiteTestCase. :param point_assignments: Point Assignment for test suite's test case. - :type point_assignments: list of :class:`PointAssignment ` + :type point_assignments: list of :class:`PointAssignment ` :param test_case: Test case workItem reference. - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` """ _attribute_map = { @@ -1885,7 +1885,7 @@ class SuiteTestCaseUpdateModel(Model): """SuiteTestCaseUpdateModel. :param configurations: Shallow reference of configurations for the test cases in the suite. - :type configurations: list of :class:`ShallowReference ` + :type configurations: list of :class:`ShallowReference ` """ _attribute_map = { @@ -1901,15 +1901,15 @@ class SuiteUpdateModel(Model): """SuiteUpdateModel. :param default_configurations: Shallow reference of default configurations for the suite. - :type default_configurations: list of :class:`ShallowReference ` + :type default_configurations: list of :class:`ShallowReference ` :param default_testers: Shallow reference of test suite. - :type default_testers: list of :class:`ShallowReference ` + :type default_testers: list of :class:`ShallowReference ` :param inherit_default_configurations: Specifies if the default configurations have to be inherited from the parent test suite in which the test suite is created. :type inherit_default_configurations: bool :param name: Test suite name :type name: str :param parent: Shallow reference of the parent. - :type parent: :class:`ShallowReference ` + :type parent: :class:`ShallowReference ` :param query_string: For query based suites, the new query string. :type query_string: str """ @@ -2107,9 +2107,9 @@ class TestCaseResult(Model): :param afn_strip_id: Test attachment ID of action recording. :type afn_strip_id: int :param area: Reference to area path of test. - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_bugs: Reference to bugs linked to test result. - :type associated_bugs: list of :class:`ShallowReference ` + :type associated_bugs: list of :class:`ShallowReference ` :param automated_test_id: ID representing test method in a dll. :type automated_test_id: str :param automated_test_name: Fully qualified name of test executed. @@ -2121,9 +2121,9 @@ class TestCaseResult(Model): :param automated_test_type_id: :type automated_test_type_id: str :param build: Shallow reference to build associated with test result. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_reference: Reference to build associated with test result. - :type build_reference: :class:`BuildReference ` + :type build_reference: :class:`BuildReference ` :param comment: Comment in a test result. :type comment: str :param completed_date: Time when test execution completed. @@ -2131,39 +2131,39 @@ class TestCaseResult(Model): :param computer_name: Machine name where test executed. :type computer_name: str :param configuration: Test configuration of a test result. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param created_date: Timestamp when test result created. :type created_date: datetime :param custom_fields: Additional properties of test result. - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: Duration of test execution in milliseconds. :type duration_in_ms: float :param error_message: Error message in test execution. :type error_message: str :param failing_since: Information when test results started failing. - :type failing_since: :class:`FailingSince ` + :type failing_since: :class:`FailingSince ` :param failure_type: Failure type of test result. :type failure_type: str :param id: ID of a test result. :type id: int :param iteration_details: Test result details of test iterations. - :type iteration_details: list of :class:`TestIterationDetailsModel ` + :type iteration_details: list of :class:`TestIterationDetailsModel ` :param last_updated_by: Reference to identity last updated test result. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated datetime of test result. :type last_updated_date: datetime :param outcome: Test outcome of test result. :type outcome: str :param owner: Reference to test owner. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param priority: Priority of test executed. :type priority: int :param project: Reference to team project. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: Shallow reference to release associated with test result. - :type release: :class:`ShallowReference ` + :type release: :class:`ShallowReference ` :param release_reference: Reference to release associated with test result. - :type release_reference: :class:`ReleaseReference ` + :type release_reference: :class:`ReleaseReference ` :param reset_count: :type reset_count: int :param resolution_state: Resolution state of test result. @@ -2175,7 +2175,7 @@ class TestCaseResult(Model): :param revision: Revision number of test result. :type revision: int :param run_by: Reference to identity executed the test. - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: Stacktrace. :type stack_trace: str :param started_date: Time when test execution started. @@ -2183,9 +2183,9 @@ class TestCaseResult(Model): :param state: State of test result. :type state: str :param sub_results: List of sub results inside a test result, if ResultGroupType is not None, it holds corresponding type sub results. - :type sub_results: list of :class:`TestSubResult ` + :type sub_results: list of :class:`TestSubResult ` :param test_case: Reference to the test executed. - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_reference_id: Reference ID of test used by test result. :type test_case_reference_id: int :param test_case_revision: Name of test. @@ -2193,13 +2193,13 @@ class TestCaseResult(Model): :param test_case_title: Name of test. :type test_case_title: str :param test_plan: Reference to test plan test case workitem is part of. - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param test_point: Reference to the test point executed. - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` :param test_run: Reference to test run. - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` :param test_suite: Reference to test suite test case workitem is part of. - :type test_suite: :class:`ShallowReference ` + :type test_suite: :class:`ShallowReference ` :param url: Url of test result. :type url: str """ @@ -2379,7 +2379,7 @@ class TestCaseResultUpdateModel(Model): :param computer_name: :type computer_name: str :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2389,11 +2389,11 @@ class TestCaseResultUpdateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2403,7 +2403,7 @@ class TestCaseResultUpdateModel(Model): :param test_case_priority: :type test_case_priority: str :param test_result: - :type test_result: :class:`ShallowReference ` + :type test_result: :class:`ShallowReference ` """ _attribute_map = { @@ -2453,7 +2453,7 @@ class TestConfiguration(Model): """TestConfiguration. :param area: Area of the configuration - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param description: Description of the configuration :type description: str :param id: Id of the configuration @@ -2461,13 +2461,13 @@ class TestConfiguration(Model): :param is_default: Is the configuration a default for the test plans :type is_default: bool :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last Updated Data :type last_updated_date: datetime :param name: Name of the configuration :type name: str :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision of the the configuration :type revision: int :param state: State of the configuration @@ -2475,7 +2475,7 @@ class TestConfiguration(Model): :param url: Url of Configuration Resource :type url: str :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` + :type values: list of :class:`NameValuePair ` """ _attribute_map = { @@ -2535,7 +2535,7 @@ class TestFailureDetails(Model): :param count: :type count: int :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` + :type test_results: list of :class:`TestCaseResultIdentifier ` """ _attribute_map = { @@ -2553,13 +2553,13 @@ class TestFailuresAnalysis(Model): """TestFailuresAnalysis. :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` + :type existing_failures: :class:`TestFailureDetails ` :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` + :type fixed_tests: :class:`TestFailureDetails ` :param new_failures: - :type new_failures: :class:`TestFailureDetails ` + :type new_failures: :class:`TestFailureDetails ` :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -2595,7 +2595,7 @@ class TestHistoryQuery(Model): :param release_env_definition_id: Get the results history only for this ReleaseEnvDefinitionId. This to get used in query GroupBy should be Environment. :type release_env_definition_id: int :param results_for_group: List of TestResultHistoryForGroup which are grouped by GroupBy - :type results_for_group: list of :class:`TestResultHistoryForGroup ` + :type results_for_group: list of :class:`TestResultHistoryForGroup ` :param test_case_id: Get the results history only for this testCaseId. This to get used in query to filter the result along with automatedtestname :type test_case_id: int :param trend_days: Number of days for which history to collect. Maximum supported value is 7 days. Default is 7 days. @@ -2633,9 +2633,9 @@ class TestIterationDetailsModel(Model): """TestIterationDetailsModel. :param action_results: Test step results in an iteration. - :type action_results: list of :class:`TestActionResultModel ` + :type action_results: list of :class:`TestActionResultModel ` :param attachments: Refence to attachments in test iteration result. - :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :type attachments: list of :class:`TestCaseResultAttachmentModel ` :param comment: Comment in test iteration result. :type comment: str :param completed_date: Time when execution completed. @@ -2649,7 +2649,7 @@ class TestIterationDetailsModel(Model): :param outcome: Test outcome if test iteration result. :type outcome: str :param parameters: Test parameters in an iteration. - :type parameters: list of :class:`TestResultParameterModel ` + :type parameters: list of :class:`TestResultParameterModel ` :param started_date: Time when execution started. :type started_date: datetime :param url: Url to test iteration result. @@ -2773,15 +2773,15 @@ class TestPlan(Model): """TestPlan. :param area: Area of the test plan. - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: Build to be tested. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: The Build Definition that generates a build associated with this test plan. - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param client_url: :type client_url: str :param description: Description of the test plan. @@ -2793,31 +2793,31 @@ class TestPlan(Model): :param iteration: Iteration path of the test plan. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: Name of the test plan. :type name: str :param owner: Owner of the test plan. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param previous_build: - :type previous_build: :class:`ShallowReference ` + :type previous_build: :class:`ShallowReference ` :param project: Project which contains the test plan. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param revision: Revision of the test plan. :type revision: int :param root_suite: Root test suite of the test plan. - :type root_suite: :class:`ShallowReference ` + :type root_suite: :class:`ShallowReference ` :param start_date: Start date for the test plan. :type start_date: datetime :param state: State of the test plan. :type state: str :param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave - :type test_outcome_settings: :class:`TestOutcomeSettings ` + :type test_outcome_settings: :class:`TestOutcomeSettings ` :param updated_by: - :type updated_by: :class:`IdentityRef ` + :type updated_by: :class:`IdentityRef ` :param updated_date: :type updated_date: datetime :param url: URL of the test plan resource. @@ -2885,9 +2885,9 @@ class TestPlanCloneRequest(Model): """TestPlanCloneRequest. :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` + :type destination_test_plan: :class:`TestPlan ` :param options: - :type options: :class:`CloneOptions ` + :type options: :class:`CloneOptions ` :param suite_ids: :type suite_ids: list of int """ @@ -2909,13 +2909,13 @@ class TestPoint(Model): """TestPoint. :param assigned_to: AssignedTo. Type IdentityRef. - :type assigned_to: :class:`IdentityRef ` + :type assigned_to: :class:`IdentityRef ` :param automated: Automated. :type automated: bool :param comment: Comment associated with test point. :type comment: str :param configuration: Configuration. Type ShallowReference. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param failure_type: Failure type of test point. :type failure_type: str :param id: ID of the test point. @@ -2925,17 +2925,17 @@ class TestPoint(Model): :param last_resolution_state_id: Last resolution state id of test point. :type last_resolution_state_id: int :param last_result: Last result of test point. Type ShallowReference. - :type last_result: :class:`ShallowReference ` + :type last_result: :class:`ShallowReference ` :param last_result_details: Last result details of test point. Type LastResultDetails. - :type last_result_details: :class:`LastResultDetails ` + :type last_result_details: :class:`LastResultDetails ` :param last_result_state: Last result state of test point. :type last_result_state: str :param last_run_build_number: LastRun build number of test point. :type last_run_build_number: str :param last_test_run: Last testRun of test point. Type ShallowReference. - :type last_test_run: :class:`ShallowReference ` + :type last_test_run: :class:`ShallowReference ` :param last_updated_by: Test point last updated by. Type IdentityRef. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date of test point. :type last_updated_date: datetime :param outcome: Outcome of test point. @@ -2945,11 +2945,11 @@ class TestPoint(Model): :param state: State of test point. :type state: str :param suite: Suite of test point. Type ShallowReference. - :type suite: :class:`ShallowReference ` + :type suite: :class:`ShallowReference ` :param test_case: TestCase associated to test point. Type WorkItemReference. - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` :param test_plan: TestPlan of test point. Type ShallowReference. - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param url: Test point Url. :type url: str :param work_item_properties: Work item properties of test point. @@ -3015,9 +3015,9 @@ class TestPointsQuery(Model): :param order_by: Order by results. :type order_by: str :param points: List of test points - :type points: list of :class:`TestPoint ` + :type points: list of :class:`TestPoint ` :param points_filter: Filter - :type points_filter: :class:`PointsFilter ` + :type points_filter: :class:`PointsFilter ` :param wit_fields: List of workitem fields to get. :type wit_fields: list of str """ @@ -3045,7 +3045,7 @@ class TestResolutionState(Model): :param name: :type name: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` """ _attribute_map = { @@ -3065,7 +3065,7 @@ class TestResultCreateModel(Model): """TestResultCreateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_work_items: :type associated_work_items: list of int :param automated_test_id: @@ -3085,9 +3085,9 @@ class TestResultCreateModel(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -3097,11 +3097,11 @@ class TestResultCreateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -3109,13 +3109,13 @@ class TestResultCreateModel(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_priority: :type test_case_priority: str :param test_case_title: :type test_case_title: str :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` """ _attribute_map = { @@ -3181,9 +3181,9 @@ class TestResultDocument(Model): """TestResultDocument. :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` + :type operation_reference: :class:`TestOperationReference ` :param payload: - :type payload: :class:`TestResultPayload ` + :type payload: :class:`TestResultPayload ` """ _attribute_map = { @@ -3203,7 +3203,7 @@ class TestResultHistory(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` """ _attribute_map = { @@ -3223,7 +3223,7 @@ class TestResultHistoryDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param latest_result: - :type latest_result: :class:`TestCaseResult ` + :type latest_result: :class:`TestCaseResult ` """ _attribute_map = { @@ -3245,7 +3245,7 @@ class TestResultHistoryForGroup(Model): :param group_by_value: Name or Id of the group identifier by which results are grouped together. :type group_by_value: str :param results: List of results for GroupByValue - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` """ _attribute_map = { @@ -3397,11 +3397,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -3423,7 +3423,7 @@ class TestResultsDetails(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` """ _attribute_map = { @@ -3443,7 +3443,7 @@ class TestResultsDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_count_by_outcome: :type results_count_by_outcome: dict :param tags: @@ -3471,7 +3471,7 @@ class TestResultsGroupsForBuild(Model): :param build_id: BuildId for which groupby result is fetched. :type build_id: int :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` """ _attribute_map = { @@ -3489,7 +3489,7 @@ class TestResultsGroupsForRelease(Model): """TestResultsGroupsForRelease. :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` :param release_env_id: Release Environment Id for which groupby result is fetched. :type release_env_id: int :param release_id: ReleaseId for which groupby result is fetched. @@ -3515,9 +3515,9 @@ class TestResultsQuery(Model): :param fields: :type fields: list of str :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_filter: - :type results_filter: :class:`ResultsFilter ` + :type results_filter: :class:`ResultsFilter ` """ _attribute_map = { @@ -3537,15 +3537,15 @@ class TestResultSummary(Model): """TestResultSummary. :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` :param no_config_runs_count: :type no_config_runs_count: int :param team_project: - :type team_project: :class:`TeamProjectReference ` + :type team_project: :class:`TeamProjectReference ` :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` + :type test_failures: :class:`TestFailuresAnalysis ` :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_runs_count: :type total_runs_count: int """ @@ -3617,9 +3617,9 @@ class TestRun(Model): """TestRun. :param build: Build associated with this test run. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_configuration: Build configuration details associated with this test run. - :type build_configuration: :class:`BuildConfiguration ` + :type build_configuration: :class:`BuildConfiguration ` :param comment: Comments entered by those analyzing the run. :type comment: str :param completed_date: Completed date time of the run. @@ -3629,21 +3629,21 @@ class TestRun(Model): :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param drop_location: :type drop_location: str :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` :param due_date: Due date and time for test run. :type due_date: datetime :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param id: ID of the test run. :type id: int :param incomplete_tests: @@ -3653,7 +3653,7 @@ class TestRun(Model): :param iteration: The iteration to which the run belongs. :type iteration: str :param last_updated_by: Team foundation ID of the last updated the test run. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date and time :type last_updated_date: datetime :param name: Name of the test run. @@ -3661,19 +3661,19 @@ class TestRun(Model): :param not_applicable_tests: :type not_applicable_tests: int :param owner: Team Foundation ID of the owner of the runs. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param passed_tests: Number of passed tests in the run :type passed_tests: int :param phase: :type phase: str :param plan: Test plan associated with this test run. - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param post_process_state: :type post_process_state: str :param project: Project associated with this run. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` :param release_environment_uri: :type release_environment_uri: str :param release_uri: @@ -3681,7 +3681,7 @@ class TestRun(Model): :param revision: :type revision: int :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` :param started_date: Start date time of the run. :type started_date: datetime :param state: The state of the run. { NotStarted, InProgress, Waiting } @@ -3689,11 +3689,11 @@ class TestRun(Model): :param substate: :type substate: object :param test_environment: Test environment associated with the run. - :type test_environment: :class:`TestEnvironment ` + :type test_environment: :class:`TestEnvironment ` :param test_message_log_id: :type test_message_log_id: int :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param total_tests: Total tests in the run :type total_tests: int :param unanalyzed_tests: @@ -3803,11 +3803,11 @@ class TestRunCoverage(Model): :param last_error: Last Error :type last_error: str :param modules: List of Modules Coverage - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: State :type state: str :param test_run: Reference of test Run. - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` """ _attribute_map = { @@ -3829,9 +3829,9 @@ class TestRunStatistic(Model): """TestRunStatistic. :param run: - :type run: :class:`ShallowReference ` + :type run: :class:`ShallowReference ` :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` """ _attribute_map = { @@ -3849,7 +3849,7 @@ class TestSession(Model): """TestSession. :param area: Area path of the test session - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param comment: Comments in the test session :type comment: str :param end_date: Duration of the session @@ -3857,15 +3857,15 @@ class TestSession(Model): :param id: Id of the test session :type id: int :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` + :type property_bag: :class:`PropertyBag ` :param revision: Revision of the test session :type revision: int :param source: Source of the test session @@ -3967,9 +3967,9 @@ class TestSubResult(Model): :param computer_name: Machine where test executed. :type computer_name: str :param configuration: Reference to test configuration. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: Additional properties of sub result. - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param display_name: Name of sub result. :type display_name: str :param duration_in_ms: Duration of test execution. @@ -3993,9 +3993,9 @@ class TestSubResult(Model): :param started_date: Time when test execution started. :type started_date: datetime :param sub_results: List of sub results inside a sub result, if ResultGroupType is not None, it holds corresponding type sub results. - :type sub_results: list of :class:`TestSubResult ` + :type sub_results: list of :class:`TestSubResult ` :param test_result: Reference to test result. - :type test_result: :class:`TestCaseResultIdentifier ` + :type test_result: :class:`TestCaseResultIdentifier ` :param url: Url of sub result. :type url: str """ @@ -4051,11 +4051,11 @@ class TestSuite(Model): :param area_uri: Area uri of the test suite. :type area_uri: str :param children: Child test suites of current test suite. - :type children: list of :class:`TestSuite ` + :type children: list of :class:`TestSuite ` :param default_configurations: Test suite default configuration. - :type default_configurations: list of :class:`ShallowReference ` + :type default_configurations: list of :class:`ShallowReference ` :param default_testers: Test suite default testers. - :type default_testers: list of :class:`ShallowReference ` + :type default_testers: list of :class:`ShallowReference ` :param id: Id of test suite. :type id: int :param inherit_default_configurations: Default configuration was inherited or not. @@ -4065,17 +4065,17 @@ class TestSuite(Model): :param last_populated_date: Last populated date. :type last_populated_date: datetime :param last_updated_by: IdentityRef of user who has updated test suite recently. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last update date. :type last_updated_date: datetime :param name: Name of test suite. :type name: str :param parent: Test suite parent shallow reference. - :type parent: :class:`ShallowReference ` + :type parent: :class:`ShallowReference ` :param plan: Test plan to which the test suite belongs. - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param project: Test suite project shallow reference. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param query_string: Test suite query string, for dynamic suites. :type query_string: str :param requirement_id: Test suite requirement id. @@ -4085,7 +4085,7 @@ class TestSuite(Model): :param state: State of test suite. :type state: str :param suites: List of shallow reference of suites. - :type suites: list of :class:`ShallowReference ` + :type suites: list of :class:`ShallowReference ` :param suite_type: Test suite type. :type suite_type: str :param test_case_count: Test cases count. @@ -4157,7 +4157,7 @@ class TestSuiteCloneRequest(Model): """TestSuiteCloneRequest. :param clone_options: Clone options for cloning the test suite. - :type clone_options: :class:`CloneOptions ` + :type clone_options: :class:`CloneOptions ` :param destination_suite_id: Suite id under which, we have to clone the suite. :type destination_suite_id: int :param destination_suite_project_name: Destination suite project name. @@ -4181,9 +4181,9 @@ class TestSummaryForWorkItem(Model): """TestSummaryForWorkItem. :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` + :type summary: :class:`AggregatedDataForResultTrend ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -4201,9 +4201,9 @@ class TestToWorkItemLinks(Model): """TestToWorkItemLinks. :param test: - :type test: :class:`TestMethod ` + :type test: :class:`TestMethod ` :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -4227,7 +4227,7 @@ class TestVariable(Model): :param name: Name of the test variable :type name: str :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision :type revision: int :param url: Url of the test variable @@ -4295,9 +4295,9 @@ class WorkItemToTestLinks(Model): :param executed_in: :type executed_in: object :param tests: - :type tests: list of :class:`TestMethod ` + :type tests: list of :class:`TestMethod ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -4333,7 +4333,7 @@ class TestActionResultModel(TestResultModelBase): :param iteration_id: Iteration ID of test action result. :type iteration_id: int :param shared_step_model: Reference to shared step workitem. - :type shared_step_model: :class:`SharedStepModel ` + :type shared_step_model: :class:`SharedStepModel ` :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str :param url: Url of test action result. diff --git a/azure-devops/azure/devops/v5_1/tfvc/models.py b/azure-devops/azure/devops/v5_1/tfvc/models.py index 558532e0..77ce71b3 100644 --- a/azure-devops/azure/devops/v5_1/tfvc/models.py +++ b/azure-devops/azure/devops/v5_1/tfvc/models.py @@ -57,7 +57,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -145,7 +145,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -155,9 +155,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param size: Compressed size (bytes) of the repository. @@ -205,7 +205,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -213,7 +213,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -249,7 +249,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -277,7 +277,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -357,11 +357,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -513,7 +513,7 @@ class TfvcChange(Change): """TfvcChange. :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` + :type merge_sources: list of :class:`TfvcMergeSource ` :param pending_version: Version at which a (shelved) change was pended against :type pending_version: int """ @@ -533,13 +533,13 @@ class TfvcChangesetRef(Model): """TfvcChangesetRef. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -589,7 +589,7 @@ class TfvcChangesetSearchCriteria(Model): :param item_path: Path of item to search under :type item_path: str :param mappings: - :type mappings: list of :class:`TfvcMappingFilter ` + :type mappings: list of :class:`TfvcMappingFilter ` :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. :type to_date: str :param to_id: If provided, a version descriptor for the latest change list to include @@ -649,11 +649,11 @@ class TfvcItem(ItemModel): """TfvcItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -750,7 +750,7 @@ class TfvcItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` + :type item_descriptors: list of :class:`TfvcItemDescriptor ` """ _attribute_map = { @@ -770,7 +770,7 @@ class TfvcLabelRef(Model): """TfvcLabelRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -782,7 +782,7 @@ class TfvcLabelRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -920,7 +920,7 @@ class TfvcPolicyOverrideInfo(Model): :param comment: :type comment: str :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` """ _attribute_map = { @@ -954,7 +954,7 @@ class TfvcShelvesetRef(Model): """TfvcShelvesetRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -966,7 +966,7 @@ class TfvcShelvesetRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -1084,7 +1084,7 @@ class VersionControlProjectInfo(Model): :param default_source_control_type: :type default_source_control_type: object :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param supports_git: :type supports_git: bool :param supports_tFVC: @@ -1110,9 +1110,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -1136,7 +1136,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1144,7 +1144,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str """ @@ -1173,13 +1173,13 @@ class TfvcChangeset(TfvcChangesetRef): """TfvcChangeset. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -1191,19 +1191,19 @@ class TfvcChangeset(TfvcChangesetRef): :param account_id: Account Id of the changeset. :type account_id: str :param changes: List of associated changes. - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param checkin_notes: Checkin Notes for the changeset. - :type checkin_notes: list of :class:`CheckinNote ` + :type checkin_notes: list of :class:`CheckinNote ` :param collection_id: Collection Id of the changeset. :type collection_id: str :param has_more_changes: Are more changes available. :type has_more_changes: bool :param policy_override: Policy Override for the changeset. - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param team_project_ids: Team Project Ids for the changeset. :type team_project_ids: list of str :param work_items: List of work items associated with the changeset. - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1241,7 +1241,7 @@ class TfvcLabel(TfvcLabelRef): """TfvcLabel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -1253,11 +1253,11 @@ class TfvcLabel(TfvcLabelRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param items: - :type items: list of :class:`TfvcItem ` + :type items: list of :class:`TfvcItem ` """ _attribute_map = { @@ -1281,7 +1281,7 @@ class TfvcShelveset(TfvcShelvesetRef): """TfvcShelveset. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -1293,17 +1293,17 @@ class TfvcShelveset(TfvcShelvesetRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param changes: - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param notes: - :type notes: list of :class:`CheckinNote ` + :type notes: list of :class:`CheckinNote ` :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1335,7 +1335,7 @@ class TfvcBranch(TfvcBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1343,17 +1343,17 @@ class TfvcBranch(TfvcBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str :param children: List of children for the branch. - :type children: list of :class:`TfvcBranch ` + :type children: list of :class:`TfvcBranch ` :param mappings: List of branch mappings. - :type mappings: list of :class:`TfvcBranchMapping ` + :type mappings: list of :class:`TfvcBranchMapping ` :param parent: Path of the branch's parent. - :type parent: :class:`TfvcShallowBranchRef ` + :type parent: :class:`TfvcShallowBranchRef ` :param related_branches: List of paths of the related branches. - :type related_branches: list of :class:`TfvcShallowBranchRef ` + :type related_branches: list of :class:`TfvcShallowBranchRef ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/models.py b/azure-devops/azure/devops/v5_1/uPack_packaging/models.py index 56ee2975..7af58619 100644 --- a/azure-devops/azure/devops/v5_1/uPack_packaging/models.py +++ b/azure-devops/azure/devops/v5_1/uPack_packaging/models.py @@ -31,7 +31,7 @@ class UPackLimitedPackageMetadataListResponse(Model): :param count: :type count: int :param value: - :type value: list of :class:`UPackLimitedPackageMetadata ` + :type value: list of :class:`UPackLimitedPackageMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py b/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py index f97caedc..2d72411a 100644 --- a/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py +++ b/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def add_package(self, metadata, feed_id, package_name, package_version): """AddPackage. [Preview API] - :param :class:` ` metadata: + :param :class:` ` metadata: :param str feed_id: :param str package_name: :param str package_version: diff --git a/azure-devops/azure/devops/v5_1/universal/models.py b/azure-devops/azure/devops/v5_1/universal/models.py index 19d07a76..397025a9 100644 --- a/azure-devops/azure/devops/v5_1/universal/models.py +++ b/azure-devops/azure/devops/v5_1/universal/models.py @@ -73,7 +73,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -109,7 +109,7 @@ class PackageVersionDetails(Model): """PackageVersionDetails. :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -141,11 +141,11 @@ class UPackPackagesBatchRequest(Model): """UPackPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/universal/universal_client.py b/azure-devops/azure/devops/v5_1/universal/universal_client.py index 69aadbdc..4452c72b 100644 --- a/azure-devops/azure/devops/v5_1/universal/universal_client.py +++ b/azure-devops/azure/devops/v5_1/universal/universal_client.py @@ -68,7 +68,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] Restore a package version from the recycle bin to its associated feed. - :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. + :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. @@ -137,7 +137,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] Update information for a package version. - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. diff --git a/azure-devops/azure/devops/v5_1/wiki/models.py b/azure-devops/azure/devops/v5_1/wiki/models.py index c9565075..e132241f 100644 --- a/azure-devops/azure/devops/v5_1/wiki/models.py +++ b/azure-devops/azure/devops/v5_1/wiki/models.py @@ -23,7 +23,7 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: :type project: TeamProjectReference :param remote_url: @@ -161,7 +161,7 @@ class WikiAttachmentResponse(Model): """WikiAttachmentResponse. :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` + :type attachment: :class:`WikiAttachment ` :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. :type eTag: list of str """ @@ -223,7 +223,7 @@ class WikiCreateParametersV2(WikiCreateBaseParameters): :param type: Type of the wiki. :type type: object :param version: Version of the wiki. Not required for ProjectWiki type. - :type version: :class:`GitVersionDescriptor ` + :type version: :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -286,7 +286,7 @@ class WikiPageMoveResponse(Model): :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. :type eTag: list of str :param page_move: Defines properties for wiki page move. - :type page_move: :class:`WikiPageMove ` + :type page_move: :class:`WikiPageMove ` """ _attribute_map = { @@ -306,7 +306,7 @@ class WikiPageResponse(Model): :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. :type eTag: list of str :param page: Defines properties for wiki page. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { @@ -350,7 +350,7 @@ class WikiUpdateParameters(Model): :param name: Name for wiki. :type name: str :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -386,7 +386,7 @@ class WikiV2(WikiCreateBaseParameters): :param url: REST url for this wiki. :type url: str :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -431,7 +431,7 @@ class WikiPage(WikiPageCreateOrUpdateParameters): :param remote_url: Remote web url to the wiki page. :type remote_url: str :param sub_pages: List of subpages of the current page. - :type sub_pages: list of :class:`WikiPage ` + :type sub_pages: list of :class:`WikiPage ` :param url: REST url for this wiki page. :type url: str """ @@ -472,7 +472,7 @@ class WikiPageMove(WikiPageMoveParameters): :param path: Current path of the wiki page. :type path: str :param page: Resultant page of this page move operation. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/work/models.py b/azure-devops/azure/devops/v5_1/work/models.py index b4c6d54d..302033ca 100644 --- a/azure-devops/azure/devops/v5_1/work/models.py +++ b/azure-devops/azure/devops/v5_1/work/models.py @@ -33,7 +33,7 @@ class BacklogColumn(Model): """BacklogColumn. :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` + :type column_field_reference: :class:`WorkItemFieldReference ` :param width: :type width: int """ @@ -53,7 +53,7 @@ class BacklogConfiguration(Model): """BacklogConfiguration. :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` + :type backlog_fields: :class:`BacklogFields ` :param bugs_behavior: Bugs behavior :type bugs_behavior: object :param hidden_backlogs: Hidden Backlog @@ -61,15 +61,15 @@ class BacklogConfiguration(Model): :param is_bugs_behavior_configured: Is BugsBehavior Configured in the process :type is_bugs_behavior_configured: bool :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :type requirement_backlog: :class:`BacklogLevelConfiguration ` :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` + :type task_backlog: :class:`BacklogLevelConfiguration ` :param url: :type url: str :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` """ _attribute_map = { @@ -145,13 +145,13 @@ class BacklogLevelConfiguration(Model): """BacklogLevelConfiguration. :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :type add_panel_fields: list of :class:`WorkItemFieldReference ` :param color: Color for the backlog level :type color: str :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` + :type column_fields: list of :class:`BacklogColumn ` :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) :type id: str :param is_hidden: Indicates whether the backlog level is hidden @@ -165,7 +165,7 @@ class BacklogLevelConfiguration(Model): :param work_item_count_limit: Max number of work items to show in the given backlog :type work_item_count_limit: int :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -201,7 +201,7 @@ class BacklogLevelWorkItems(Model): """BacklogLevelWorkItems. :param work_items: A list of work items within a backlog level - :type work_items: list of :class:`WorkItemLink ` + :type work_items: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -217,7 +217,7 @@ class BoardCardRuleSettings(Model): """BoardCardRuleSettings. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rules: :type rules: dict :param url: @@ -317,11 +317,11 @@ class BoardFields(Model): """BoardFields. :param column_field: - :type column_field: :class:`FieldReference ` + :type column_field: :class:`FieldReference ` :param done_field: - :type done_field: :class:`FieldReference ` + :type done_field: :class:`FieldReference ` :param row_field: - :type row_field: :class:`FieldReference ` + :type row_field: :class:`FieldReference ` """ _attribute_map = { @@ -417,9 +417,9 @@ class CapacityPatch(Model): """CapacityPatch. :param activities: - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -441,7 +441,7 @@ class CategoryConfiguration(Model): :param reference_name: Category Reference Name :type reference_name: str :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -561,7 +561,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -589,7 +589,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -729,7 +729,7 @@ class Plan(Model): """Plan. :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` + :type created_by_identity: :class:`IdentityRef ` :param created_date: Date when the plan was created :type created_date: datetime :param description: Description of the plan @@ -737,7 +737,7 @@ class Plan(Model): :param id: Id of the plan :type id: str :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` + :type modified_by_identity: :class:`IdentityRef ` :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. :type modified_date: datetime :param name: Name of the plan @@ -815,7 +815,7 @@ class PredefinedQuery(Model): :param name: Localized name of the query :type name: str :param results: The results of the query. This will be a set of WorkItem objects with only the 'id' set. The client is responsible for paging in the data as needed. - :type results: list of :class:`WorkItem ` + :type results: list of :class:`WorkItem ` :param url: REST API Url to use to retrieve results for this query :type url: str :param web_url: Url to use to display a page in the browser with the results of this query @@ -845,13 +845,13 @@ class ProcessConfiguration(Model): """ProcessConfiguration. :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` + :type bug_work_items: :class:`CategoryConfiguration ` :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` + :type requirement_backlog: :class:`CategoryConfiguration ` :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` + :type task_backlog: :class:`CategoryConfiguration ` :param type_fields: Type fields for the process configuration :type type_fields: dict :param url: @@ -897,7 +897,7 @@ class Rule(Model): """Rule. :param clauses: - :type clauses: list of :class:`FilterClause ` + :type clauses: list of :class:`FilterClause ` :param filter: :type filter: str :param is_enabled: @@ -979,7 +979,7 @@ class TeamFieldValuesPatch(Model): :param default_value: :type default_value: str :param values: - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1021,7 +1021,7 @@ class TeamSettingsDataContractBase(Model): """TeamSettingsDataContractBase. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str """ @@ -1041,11 +1041,11 @@ class TeamSettingsDaysOff(TeamSettingsDataContractBase): """TeamSettingsDaysOff. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1063,7 +1063,7 @@ class TeamSettingsDaysOffPatch(Model): """TeamSettingsDaysOffPatch. :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1079,11 +1079,11 @@ class TeamSettingsIteration(TeamSettingsDataContractBase): """TeamSettingsIteration. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` + :type attributes: :class:`TeamIterationAttributes ` :param id: Id of the resource :type id: str :param name: Name of the resource @@ -1189,7 +1189,7 @@ class TimelineTeamData(Model): """TimelineTeamData. :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` + :type backlog: :class:`BacklogLevel ` :param field_reference_names: The field reference names of the work item data :type field_reference_names: list of str :param id: The id of the team @@ -1197,7 +1197,7 @@ class TimelineTeamData(Model): :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. :type is_expanded: bool :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` + :type iterations: list of :class:`TimelineTeamIteration ` :param name: The name of the team :type name: str :param order_by_field: The order by field name of this team @@ -1207,15 +1207,15 @@ class TimelineTeamData(Model): :param project_id: The project id the team belongs team :type project_id: str :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` + :type status: :class:`TimelineTeamStatus ` :param team_field_default_value: The team field default value :type team_field_default_value: str :param team_field_name: The team field name of this team :type team_field_name: str :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` + :type team_field_values: list of :class:`TeamFieldValue ` :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` + :type work_item_type_colors: list of :class:`WorkItemColor ` """ _attribute_map = { @@ -1267,7 +1267,7 @@ class TimelineTeamIteration(Model): :param start_date: The start date of the iteration :type start_date: datetime :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` + :type status: :class:`TimelineIterationStatus ` :param work_items: The work items that have been paged in this iteration :type work_items: list of [object] """ @@ -1399,9 +1399,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -1523,21 +1523,21 @@ class Board(BoardReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_mappings: :type allowed_mappings: dict :param can_edit: :type can_edit: bool :param columns: - :type columns: list of :class:`BoardColumn ` + :type columns: list of :class:`BoardColumn ` :param fields: - :type fields: :class:`BoardFields ` + :type fields: :class:`BoardFields ` :param is_valid: :type is_valid: bool :param revision: :type revision: int :param rows: - :type rows: list of :class:`BoardRow ` + :type rows: list of :class:`BoardRow ` """ _attribute_map = { @@ -1574,7 +1574,7 @@ class BoardChart(BoardChartReference): :param url: Full http link to the resource :type url: str :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param settings: The settings for the resource :type settings: dict """ @@ -1602,7 +1602,7 @@ class DeliveryViewData(PlanViewData): :param child_id_to_parent_id_map: Work item child id to parenet id map :type child_id_to_parent_id_map: dict :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` + :type criteria_status: :class:`TimelineCriteriaStatus ` :param end_date: The end date of the delivery view data :type end_date: datetime :param max_expanded_teams: Max number of teams can be configured for a delivery plan. @@ -1610,7 +1610,7 @@ class DeliveryViewData(PlanViewData): :param start_date: The start date for the delivery view data :type start_date: datetime :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` + :type teams: list of :class:`TimelineTeamData ` """ _attribute_map = { @@ -1638,11 +1638,11 @@ class IterationWorkItems(TeamSettingsDataContractBase): """IterationWorkItems. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param work_item_relations: Work item relations - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -1660,15 +1660,15 @@ class TeamFieldValues(TeamSettingsDataContractBase): """TeamFieldValues. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param default_value: The default team field value :type default_value: str :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` + :type field: :class:`FieldReference ` :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1690,15 +1690,15 @@ class TeamMemberCapacity(TeamSettingsDataContractBase): """TeamMemberCapacity. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` + :type team_member: :class:`Member ` """ _attribute_map = { @@ -1720,17 +1720,17 @@ class TeamSetting(TeamSettingsDataContractBase): """TeamSetting. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` + :type backlog_iteration: :class:`TeamSettingsIteration ` :param backlog_visibilities: Information about categories that are visible on the backlog. :type backlog_visibilities: dict :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) :type bugs_behavior: object :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` + :type default_iteration: :class:`TeamSettingsIteration ` :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working @@ -1787,7 +1787,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1806,15 +1806,15 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_version_ref: Reference to a specific version of the comment added/edited/deleted in this revision. - :type comment_version_ref: :class:`WorkItemCommentVersionRef ` + :type comment_version_ref: :class:`WorkItemCommentVersionRef ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking/models.py index 212a6196..518236a7 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking/models.py @@ -15,7 +15,7 @@ class AccountMyWorkResult(Model): :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit :type query_size_limit_exceeded: bool :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` """ _attribute_map = { @@ -241,7 +241,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -269,7 +269,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -329,7 +329,7 @@ class IdentityReference(IdentityRef): """IdentityReference. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -439,7 +439,7 @@ class ProjectWorkItemStateColors(Model): :param project_name: Project name :type project_name: str :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` """ _attribute_map = { @@ -501,7 +501,7 @@ class QueryHierarchyItemsResult(Model): :param has_more: Indicates if the max return limit was hit but there are still more items :type has_more: bool :param value: The list of items - :type value: list of :class:`QueryHierarchyItem ` + :type value: list of :class:`QueryHierarchyItem ` """ _attribute_map = { @@ -871,9 +871,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -921,17 +921,17 @@ class WorkItemQueryClause(Model): """WorkItemQueryClause. :param clauses: Child clauses if the current clause is a logical operator - :type clauses: list of :class:`WorkItemQueryClause ` + :type clauses: list of :class:`WorkItemQueryClause ` :param field: Field associated with condition - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` :param field_value: Right side of the condition when a field to field comparison - :type field_value: :class:`WorkItemFieldReference ` + :type field_value: :class:`WorkItemFieldReference ` :param is_field_value: Determines if this is a field to field comparison :type is_field_value: bool :param logical_operator: Logical operator separating the condition clause :type logical_operator: object :param operator: The field operator - :type operator: :class:`WorkItemFieldOperation ` + :type operator: :class:`WorkItemFieldOperation ` :param value: Right side of the condition when a field to value comparison :type value: str """ @@ -963,17 +963,17 @@ class WorkItemQueryResult(Model): :param as_of: The date the query was run in the context of. :type as_of: datetime :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param query_result_type: The result type :type query_result_type: object :param query_type: The type of the query :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param work_item_relations: The work item links returned by the query. - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` :param work_items: The work items returned by the query. - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -1003,7 +1003,7 @@ class WorkItemQuerySortColumn(Model): :param descending: The direction to sort by. :type descending: bool :param field: A work item field. - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1062,11 +1062,11 @@ class WorkItemRelationUpdates(Model): """WorkItemRelationUpdates. :param added: List of newly added relations. - :type added: list of :class:`WorkItemRelation ` + :type added: list of :class:`WorkItemRelation ` :param removed: List of removed relations. - :type removed: list of :class:`WorkItemRelation ` + :type removed: list of :class:`WorkItemRelation ` :param updated: List of updated relations. - :type updated: list of :class:`WorkItemRelation ` + :type updated: list of :class:`WorkItemRelation ` """ _attribute_map = { @@ -1202,7 +1202,7 @@ class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str """ @@ -1235,7 +1235,7 @@ class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1284,7 +1284,7 @@ class WorkItemTypeStateColors(Model): """WorkItemTypeStateColors. :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` + :type state_colors: list of :class:`WorkItemStateColor ` :param work_item_type_name: Work item type name :type work_item_type_name: str """ @@ -1409,7 +1409,7 @@ class AccountRecentActivityWorkItemModel2(AccountRecentActivityWorkItemModelBase :param work_item_type: Type of Work Item :type work_item_type: str :param assigned_to: Assigned To - :type assigned_to: :class:`IdentityRef ` + :type assigned_to: :class:`IdentityRef ` """ _attribute_map = { @@ -1499,7 +1499,7 @@ class WorkItemDelete(WorkItemDeleteReference): :param url: REST API URL of the resource :type url: str :param resource: The work item object that was deleted. - :type resource: :class:`WorkItem ` + :type resource: :class:`WorkItem ` """ _attribute_map = { @@ -1526,7 +1526,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1545,17 +1545,17 @@ class WorkItemType(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param color: The color. :type color: str :param description: The description of the work item type. :type description: str :param field_instances: The fields that exist on the work item type. - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` :param fields: The fields that exist on the work item type. - :type fields: list of :class:`WorkItemTypeFieldInstance ` + :type fields: list of :class:`WorkItemTypeFieldInstance ` :param icon: The icon of the work item type. - :type icon: :class:`WorkItemIcon ` + :type icon: :class:`WorkItemIcon ` :param is_disabled: True if work item type is disabled :type is_disabled: bool :param name: Gets the name of the work item type. @@ -1563,7 +1563,7 @@ class WorkItemType(WorkItemTrackingResource): :param reference_name: The reference name of the work item type. :type reference_name: str :param states: Gets state information for the work item type. - :type states: list of :class:`WorkItemStateColor ` + :type states: list of :class:`WorkItemStateColor ` :param transitions: Gets the various state transition mappings in the work item type. :type transitions: dict :param xml_form: The XML form. @@ -1607,15 +1607,15 @@ class WorkItemTypeCategory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_work_item_type: Gets or sets the default type of the work item. - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param name: The name of the category. :type name: str :param reference_name: The reference name of the category. :type reference_name: str :param work_item_types: The work item types that belond to the category. - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -1647,7 +1647,7 @@ class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1679,17 +1679,17 @@ class WorkItemUpdate(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: List of updates to fields. :type fields: dict :param id: ID of update. :type id: int :param relations: List of updates to relations. - :type relations: :class:`WorkItemRelationUpdates ` + :type relations: :class:`WorkItemRelationUpdates ` :param rev: The revision number of work item update. :type rev: int :param revised_by: Identity for the work item update. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The work item updates revision date. :type revised_date: datetime :param work_item_id: The work item ID. @@ -1725,9 +1725,9 @@ class FieldDependentRule(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dependent_fields: The dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1747,15 +1747,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param children: The child query items inside a query folder. - :type children: list of :class:`QueryHierarchyItem ` + :type children: list of :class:`QueryHierarchyItem ` :param clauses: The clauses for a flat query. - :type clauses: :class:`WorkItemQueryClause ` + :type clauses: :class:`WorkItemQueryClause ` :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param created_by: The identity who created the query item. - :type created_by: :class:`IdentityReference ` + :type created_by: :class:`IdentityReference ` :param created_date: When the query item was created. :type created_date: datetime :param filter_options: The link query mode. @@ -1773,15 +1773,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param is_public: Indicates if this query item is public or private. :type is_public: bool :param last_executed_by: The identity who last ran the query. - :type last_executed_by: :class:`IdentityReference ` + :type last_executed_by: :class:`IdentityReference ` :param last_executed_date: When the query was last run. :type last_executed_date: datetime :param last_modified_by: The identity who last modified the query item. - :type last_modified_by: :class:`IdentityReference ` + :type last_modified_by: :class:`IdentityReference ` :param last_modified_date: When the query item was last modified. :type last_modified_date: datetime :param link_clauses: The link query clause. - :type link_clauses: :class:`WorkItemQueryClause ` + :type link_clauses: :class:`WorkItemQueryClause ` :param name: The name of the query item. :type name: str :param path: The path of the query item. @@ -1791,11 +1791,11 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param query_type: The type of query. :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param source_clauses: The source clauses in a tree or one-hop link query. - :type source_clauses: :class:`WorkItemQueryClause ` + :type source_clauses: :class:`WorkItemQueryClause ` :param target_clauses: The target clauses in a tree or one-hop link query. - :type target_clauses: :class:`WorkItemQueryClause ` + :type target_clauses: :class:`WorkItemQueryClause ` :param wiql: The WIQL text of the query :type wiql: str """ @@ -1865,15 +1865,15 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_version_ref: Reference to a specific version of the comment added/edited/deleted in this revision. - :type comment_version_ref: :class:`WorkItemCommentVersionRef ` + :type comment_version_ref: :class:`WorkItemCommentVersionRef ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ @@ -1903,11 +1903,11 @@ class WorkItemClassificationNode(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. :type attributes: dict :param children: List of child nodes fetched. - :type children: list of :class:`WorkItemClassificationNode ` + :type children: list of :class:`WorkItemClassificationNode ` :param has_children: Flag that indicates if the classification node has any child nodes. :type has_children: bool :param id: Integer ID of the classification node. @@ -1953,9 +1953,9 @@ class WorkItemComment(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param revised_by: Identity of user who added the comment. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The date of comment. :type revised_date: datetime :param revision: The work item revision number. @@ -1987,9 +1987,9 @@ class WorkItemComments(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: Comments collection. - :type comments: list of :class:`WorkItemComment ` + :type comments: list of :class:`WorkItemComment ` :param count: The count of comments. :type count: int :param from_revision_count: Count of comments from the revision. @@ -2021,7 +2021,7 @@ class WorkItemField(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param can_sort_by: Indicates whether the field is sortable in server queries. :type can_sort_by: bool :param description: The description of the field. @@ -2043,7 +2043,7 @@ class WorkItemField(WorkItemTrackingResource): :param reference_name: The reference name of the field. :type reference_name: str :param supported_operations: The supported operations on this field. - :type supported_operations: list of :class:`WorkItemFieldOperation ` + :type supported_operations: list of :class:`WorkItemFieldOperation ` :param type: The type of the field. :type type: object :param usage: The usage of the field. @@ -2091,11 +2091,11 @@ class WorkItemHistory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param value: @@ -2125,7 +2125,7 @@ class WorkItemTemplateReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. @@ -2159,7 +2159,7 @@ class WorkItemTrackingReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2185,7 +2185,7 @@ class WorkItemRelationType(WorkItemTrackingReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2213,7 +2213,7 @@ class WorkItemTemplate(WorkItemTemplateReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking/work_item_tracking_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking/work_item_tracking_client.py index 65da0b74..32742fe4 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking/work_item_tracking_client.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking/work_item_tracking_client.py @@ -48,7 +48,7 @@ def get_work_artifact_link_types(self): def query_work_items_for_artifact_uris(self, artifact_uri_query, project=None): """QueryWorkItemsForArtifactUris. [Preview API] Queries work items linked to a given list of artifact URI. - :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. + :param :class:` ` artifact_uri_query: Defines a list of artifact URI for querying work items. :param str project: Project ID or project name :rtype: :class:` ` """ @@ -209,7 +209,7 @@ def get_root_nodes(self, project, depth=None): def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): """CreateOrUpdateClassificationNode. [Preview API] Create new or update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. @@ -283,7 +283,7 @@ def get_classification_node(self, project, structure_group, path=None, depth=Non def update_classification_node(self, posted_node, project, structure_group, path=None): """UpdateClassificationNode. [Preview API] Update an existing classification node. - :param :class:` ` posted_node: Node to create or update. + :param :class:` ` posted_node: Node to create or update. :param str project: Project ID or project name :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. :param str path: Path of the classification node. @@ -307,7 +307,7 @@ def update_classification_node(self, posted_node, project, structure_group, path def create_field(self, work_item_field, project=None): """CreateField. [Preview API] Create a new field. - :param :class:` ` work_item_field: New field definition + :param :class:` ` work_item_field: New field definition :param str project: Project ID or project name :rtype: :class:` ` """ @@ -379,7 +379,7 @@ def get_fields(self, project=None, expand=None): def create_query(self, posted_query, project, query): """CreateQuery. [Preview API] Creates a query, or moves a query. - :param :class:` ` posted_query: The query to create. + :param :class:` ` posted_query: The query to create. :param str project: Project ID or project name :param str query: The parent id or path under which the query is to be created. :rtype: :class:` ` @@ -500,7 +500,7 @@ def search_queries(self, project, filter, top=None, expand=None, include_deleted def update_query(self, query_update, project, query, undelete_descendants=None): """UpdateQuery. [Preview API] Update a query or a folder. This allows you to update, rename and move queries and folders. - :param :class:` ` query_update: The query to update. + :param :class:` ` query_update: The query to update. :param str project: Project ID or project name :param str query: The ID or path for the query to update. :param bool undelete_descendants: Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. @@ -526,7 +526,7 @@ def update_query(self, query_update, project, query, undelete_descendants=None): def get_queries_batch(self, query_get_request, project): """GetQueriesBatch. [Preview API] Gets a list of queries by ids (Maximum 1000) - :param :class:` ` query_get_request: + :param :class:` ` query_get_request: :param str project: Project ID or project name :rtype: [QueryHierarchyItem] """ @@ -614,7 +614,7 @@ def get_deleted_work_item_shallow_references(self, project=None): def restore_work_item(self, payload, id, project=None): """RestoreWorkItem. [Preview API] Restores the deleted work item from Recycle Bin. - :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false + :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false :param int id: ID of the work item to be restored :param str project: Project ID or project name :rtype: :class:` ` @@ -690,8 +690,8 @@ def get_revisions(self, id, project=None, top=None, skip=None, expand=None): def create_template(self, template, team_context): """CreateTemplate. [Preview API] Creates a template - :param :class:` ` template: Template contents - :param :class:` ` team_context: The team context for the operation + :param :class:` ` template: Template contents + :param :class:` ` team_context: The team context for the operation :rtype: :class:` ` """ project = None @@ -722,7 +722,7 @@ def create_template(self, template, team_context): def get_templates(self, team_context, workitemtypename=None): """GetTemplates. [Preview API] Gets template - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str workitemtypename: Optional, When specified returns templates for given Work item type. :rtype: [WorkItemTemplateReference] """ @@ -756,7 +756,7 @@ def get_templates(self, team_context, workitemtypename=None): def delete_template(self, team_context, template_id): """DeleteTemplate. [Preview API] Deletes the template with given id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id """ project = None @@ -786,7 +786,7 @@ def delete_template(self, team_context, template_id): def get_template(self, team_context, template_id): """GetTemplate. [Preview API] Gets the template with specified id - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param str template_id: Template Id :rtype: :class:` ` """ @@ -818,8 +818,8 @@ def get_template(self, team_context, template_id): def replace_template(self, template_content, team_context, template_id): """ReplaceTemplate. [Preview API] Replace template contents - :param :class:` ` template_content: Template contents to replace with - :param :class:` ` team_context: The team context for the operation + :param :class:` ` template_content: Template contents to replace with + :param :class:` ` team_context: The team context for the operation :param str template_id: Template id :rtype: :class:` ` """ @@ -900,8 +900,8 @@ def get_updates(self, id, project=None, top=None, skip=None): def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): """QueryByWiql. [Preview API] Gets the results of the query given its WIQL. - :param :class:` ` wiql: The query containing the WIQL. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` wiql: The query containing the WIQL. + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. :rtype: :class:` ` @@ -941,7 +941,7 @@ def get_query_result_count(self, id, team_context=None, time_precision=None, top """GetQueryResultCount. [Preview API] Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. :rtype: int @@ -981,7 +981,7 @@ def query_by_id(self, id, team_context=None, time_precision=None, top=None): """QueryById. [Preview API] Gets the results of the query given the query ID. :param str id: The query ID. - :param :class:` ` team_context: The team context for the operation + :param :class:` ` team_context: The team context for the operation :param bool time_precision: Whether or not to use time precision. :param int top: The max number of results to return. :rtype: :class:` ` @@ -1217,7 +1217,7 @@ def read_reporting_revisions_get(self, project=None, fields=None, types=None, co def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): """ReadReportingRevisionsPost. [Preview API] Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. - :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format + :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format :param str project: Project ID or project name :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. @@ -1246,7 +1246,7 @@ def read_reporting_revisions_post(self, filter, project=None, continuation_token def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None, expand=None): """CreateWorkItem. [Preview API] Creates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item :param str project: Project ID or project name :param str type: The work item type of the work item to create :param bool validate_only: Indicate if you only want to validate the changes without saving the work item @@ -1398,7 +1398,7 @@ def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None, expand=None): """UpdateWorkItem. [Preview API] Updates a single work item. - :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update :param int id: The id of the work item to update :param str project: Project ID or project name :param bool validate_only: Indicate if you only want to validate the changes without saving the work item @@ -1434,7 +1434,7 @@ def update_work_item(self, document, id, project=None, validate_only=None, bypas def get_work_items_batch(self, work_item_get_request, project=None): """GetWorkItemsBatch. [Preview API] Gets work items for a list of work item ids (Maximum 200) - :param :class:` ` work_item_get_request: + :param :class:` ` work_item_get_request: :param str project: Project ID or project name :rtype: [WorkItem] """ diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py index 2ef2f44d..f8cfcd22 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -41,7 +41,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -167,7 +167,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -186,7 +186,7 @@ class WorkItemCommentReactionResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_id: The id of the comment this reaction belongs to. :type comment_id: int :param count: Total number of reactions for the EngagementType. @@ -220,25 +220,25 @@ class WorkItemCommentResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_id: The id assigned to the comment. :type comment_id: int :param created_by: IdentityRef of the creator of the comment. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The creation date of the comment. :type created_date: datetime :param created_on_behalf_date: Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. :type created_on_behalf_date: datetime :param created_on_behalf_of: Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. - :type created_on_behalf_of: :class:`IdentityRef ` + :type created_on_behalf_of: :class:`IdentityRef ` :param is_deleted: Indicates if the comment has been deleted. :type is_deleted: bool :param modified_by: IdentityRef of the user who last modified the comment. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: The last modification date of the comment. :type modified_date: datetime :param reactions: The reactions of the comment. - :type reactions: list of :class:`WorkItemCommentReactionResponse ` + :type reactions: list of :class:`WorkItemCommentReactionResponse ` :param text: The text of the comment. :type text: str :param version: The current version of the comment. @@ -286,9 +286,9 @@ class WorkItemCommentsResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: List of comments in the current batch. - :type comments: list of :class:`WorkItemCommentResponse ` + :type comments: list of :class:`WorkItemCommentResponse ` :param continuation_token: A string token that can be used to retrieving next page of comments if available. Otherwise null. :type continuation_token: str :param count: The count of comments in the current batch. @@ -324,21 +324,21 @@ class WorkItemCommentVersionResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_id: The id assigned to the comment. :type comment_id: int :param created_by: IdentityRef of the creator of the comment. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The creation date of the comment. :type created_date: datetime :param created_on_behalf_date: Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. :type created_on_behalf_date: datetime :param created_on_behalf_of: Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. - :type created_on_behalf_of: :class:`IdentityRef ` + :type created_on_behalf_of: :class:`IdentityRef ` :param is_deleted: Indicates if the comment has been deleted at this version. :type is_deleted: bool :param modified_by: IdentityRef of the user who modified the comment at this version. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: The modification date of the comment for this version. :type modified_date: datetime :param rendered_text: The rendered content of the comment at this version. @@ -386,9 +386,9 @@ class WorkItemCommentsReportingResponse(WorkItemCommentsResponse): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: List of comments in the current batch. - :type comments: list of :class:`WorkItemCommentResponse ` + :type comments: list of :class:`WorkItemCommentResponse ` :param continuation_token: A string token that can be used to retrieving next page of comments if available. Otherwise null. :type continuation_token: str :param count: The count of comments in the current batch. diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py index 8c8297cc..2da3c7b3 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/work_item_tracking_comments_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def add_comment(self, request, project, work_item_id): """AddComment. [Preview API] Add a comment on a work item. - :param :class:` ` request: Comment create request. + :param :class:` ` request: Comment create request. :param str project: Project ID or project name :param int work_item_id: Id of a work item. :rtype: :class:` ` @@ -152,7 +152,7 @@ def get_comments_batch(self, project, work_item_id, ids, expand=None): def update_comment(self, request, project, work_item_id, comment_id): """UpdateComment. [Preview API] Update a comment on a work item. - :param :class:` ` request: Comment update request. + :param :class:` ` request: Comment update request. :param str project: Project ID or project name :param int work_item_id: Id of a work item. :param int comment_id: diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py index 3b57d019..5153e9cc 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py @@ -45,7 +45,7 @@ class Control(Model): """Control. :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param control_type: Type of the control. :type control_type: str :param height: Height of the control, for html controls. @@ -137,9 +137,9 @@ class CreateProcessRuleRequest(Model): """CreateProcessRuleRequest. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -253,9 +253,9 @@ class FieldRuleModel(Model): """FieldRuleModel. :param actions: - :type actions: list of :class:`RuleActionModel ` + :type actions: list of :class:`RuleActionModel ` :param conditions: - :type conditions: list of :class:`RuleConditionModel ` + :type conditions: list of :class:`RuleConditionModel ` :param friendly_name: :type friendly_name: str :param id: @@ -289,11 +289,11 @@ class FormLayout(Model): """FormLayout. :param extensions: Gets and sets extensions list. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` + :type pages: list of :class:`Page ` :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` + :type system_controls: list of :class:`Control ` """ _attribute_map = { @@ -313,9 +313,9 @@ class Group(Model): """Group. :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` + :type controls: list of :class:`Control ` :param height: The height for the contribution. :type height: int :param id: The id for the layout node. @@ -381,7 +381,7 @@ class Page(Model): """Page. :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param id: The id for the layout node. :type id: str :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. @@ -399,7 +399,7 @@ class Page(Model): :param page_type: The icon for the page. :type page_type: object :param sections: The sections of the page. - :type sections: list of :class:`Section ` + :type sections: list of :class:`Section ` :param visible: A value indicating if the page should be hidden or not. :type visible: bool """ @@ -475,9 +475,9 @@ class ProcessBehavior(Model): :param description: . Description :type description: str :param fields: Process Behavior Fields. - :type fields: list of :class:`ProcessBehaviorField ` + :type fields: list of :class:`ProcessBehaviorField ` :param inherits: Parent behavior reference. - :type inherits: :class:`ProcessBehaviorReference ` + :type inherits: :class:`ProcessBehaviorReference ` :param name: Behavior Name. :type name: str :param rank: Rank of the behavior @@ -621,7 +621,7 @@ class ProcessInfo(Model): :param parent_process_type_id: ID of the parent process. :type parent_process_type_id: str :param projects: Projects in this process to which the user is subscribed to. - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param reference_name: Reference name of the process. :type reference_name: str :param type_id: The ID of the process. @@ -661,9 +661,9 @@ class ProcessModel(Model): :param name: Name of the process :type name: str :param projects: Projects in this process - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param properties: Properties of the process - :type properties: :class:`ProcessProperties ` + :type properties: :class:`ProcessProperties ` :param reference_name: Reference name of the process :type reference_name: str :param type_id: The ID of the process @@ -725,9 +725,9 @@ class ProcessRule(CreateProcessRuleRequest): """ProcessRule. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -761,7 +761,7 @@ class ProcessWorkItemType(Model): """ProcessWorkItemType. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param color: Color hexadecimal code to represent the work item type :type color: str :param customization: Indicates the type of customization on this work item System work item types are inherited from parent process but not modified Inherited work item types are modified work item that were inherited from parent process Custom work item types are work item types that were created in the current process @@ -775,13 +775,13 @@ class ProcessWorkItemType(Model): :param is_disabled: Indicates if a work item type is disabled :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: Name of the work item type :type name: str :param reference_name: Reference name of work item type :type reference_name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: Url of the work item type :type url: str """ @@ -997,7 +997,7 @@ class Section(Model): """Section. :param groups: List of child groups in this section - :type groups: list of :class:`Group ` + :type groups: list of :class:`Group ` :param id: The id for the layout node. :type id: str :param overridden: A value indicating whether this layout node has been overridden by a child layout. @@ -1049,9 +1049,9 @@ class UpdateProcessRuleRequest(CreateProcessRuleRequest): """UpdateProcessRuleRequest. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -1167,11 +1167,11 @@ class WorkItemBehavior(Model): :param description: :type description: str :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` + :type fields: list of :class:`WorkItemBehaviorField ` :param id: :type id: str :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` + :type inherits: :class:`WorkItemBehaviorReference ` :param name: :type name: str :param overriden: @@ -1329,7 +1329,7 @@ class WorkItemTypeBehavior(Model): """WorkItemTypeBehavior. :param behavior: Reference to the behavior of a work item type - :type behavior: :class:`WorkItemBehaviorReference ` + :type behavior: :class:`WorkItemBehaviorReference ` :param is_default: If true the work item type is the default work item type in the behavior :type is_default: bool :param url: URL of the work item type behavior @@ -1353,7 +1353,7 @@ class WorkItemTypeModel(Model): """WorkItemTypeModel. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param class_: :type class_: object :param color: @@ -1369,11 +1369,11 @@ class WorkItemTypeModel(Model): :param is_disabled: :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: :type name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: :type url: str """ diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py index 276fc758..0acd9a6e 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def create_process_behavior(self, behavior, process_id): """CreateProcessBehavior. [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :rtype: :class:` ` """ @@ -105,7 +105,7 @@ def get_process_behaviors(self, process_id, expand=None): def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): """UpdateProcessBehavior. [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: + :param :class:` ` behavior_data: :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior :rtype: :class:` ` @@ -126,7 +126,7 @@ def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): def create_control_in_group(self, control, process_id, wit_ref_name, group_id): """CreateControlInGroup. [Preview API] Creates a control in a group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to add the control to. @@ -150,7 +150,7 @@ def create_control_in_group(self, control, process_id, wit_ref_name, group_id): def move_control_to_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): """MoveControlToGroup. [Preview API] Moves a control to a specified group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to move the control to. @@ -204,7 +204,7 @@ def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_ def update_control(self, control, process_id, wit_ref_name, group_id, control_id): """UpdateControl. [Preview API] Updates a control on the work item form. - :param :class:` ` control: The updated control. + :param :class:` ` control: The updated control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group. @@ -231,7 +231,7 @@ def update_control(self, control, process_id, wit_ref_name, group_id, control_id def add_field_to_work_item_type(self, field, process_id, wit_ref_name): """AddFieldToWorkItemType. [Preview API] Adds a field to a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :rtype: :class:` ` @@ -310,7 +310,7 @@ def remove_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref_name): """UpdateWorkItemTypeField. [Preview API] Updates a field in a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str field_ref_name: The reference name of the field. @@ -334,7 +334,7 @@ def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref def add_group(self, group, process_id, wit_ref_name, page_id, section_id): """AddGroup. [Preview API] Adds a group to the work item form. - :param :class:` ` group: The group. + :param :class:` ` group: The group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page to add the group to. @@ -361,7 +361,7 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): """MoveGroupToPage. [Preview API] Moves a group to a different page and section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. @@ -399,7 +399,7 @@ def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_i def move_group_to_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): """MoveGroupToSection. [Preview API] Moves a group to a different section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. @@ -459,7 +459,7 @@ def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): def update_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): """UpdateGroup. [Preview API] Updates a group in the work item form. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. @@ -507,7 +507,7 @@ def get_form_layout(self, process_id, wit_ref_name): def create_list(self, picklist): """CreateList. [Preview API] Creates a picklist. - :param :class:` ` picklist: Picklist + :param :class:` ` picklist: Picklist :rtype: :class:` ` """ content = self._serialize.body(picklist, 'PickList') @@ -558,7 +558,7 @@ def get_lists_metadata(self): def update_list(self, picklist, list_id): """UpdateList. [Preview API] Updates a list. - :param :class:` ` picklist: + :param :class:` ` picklist: :param str list_id: The ID of the list :rtype: :class:` ` """ @@ -576,7 +576,7 @@ def update_list(self, picklist, list_id): def add_page(self, page, process_id, wit_ref_name): """AddPage. [Preview API] Adds a page to the work item form. - :param :class:` ` page: The page. + :param :class:` ` page: The page. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :rtype: :class:` ` @@ -616,7 +616,7 @@ def remove_page(self, process_id, wit_ref_name, page_id): def update_page(self, page, process_id, wit_ref_name): """UpdatePage. [Preview API] Updates a page on the work item form - :param :class:` ` page: The page + :param :class:` ` page: The page :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :rtype: :class:` ` @@ -637,7 +637,7 @@ def update_page(self, page, process_id, wit_ref_name): def create_new_process(self, create_request): """CreateNewProcess. [Preview API] Creates a process. - :param :class:` ` create_request: CreateProcessModel. + :param :class:` ` create_request: CreateProcessModel. :rtype: :class:` ` """ content = self._serialize.body(create_request, 'CreateProcessModel') @@ -663,7 +663,7 @@ def delete_process_by_id(self, process_type_id): def edit_process(self, update_request, process_type_id): """EditProcess. [Preview API] Edit a process of a specific ID. - :param :class:` ` update_request: + :param :class:` ` update_request: :param str process_type_id: :rtype: :class:` ` """ @@ -716,7 +716,7 @@ def get_process_by_its_id(self, process_type_id, expand=None): def add_process_work_item_type_rule(self, process_rule_create, process_id, wit_ref_name): """AddProcessWorkItemTypeRule. [Preview API] Adds a rule to work item type in the process. - :param :class:` ` process_rule_create: + :param :class:` ` process_rule_create: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :rtype: :class:` ` @@ -795,7 +795,7 @@ def get_process_work_item_type_rules(self, process_id, wit_ref_name): def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_name, rule_id): """UpdateProcessWorkItemTypeRule. [Preview API] Updates a rule in the work item type of the process. - :param :class:` ` process_rule: + :param :class:` ` process_rule: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule @@ -819,7 +819,7 @@ def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_n def create_state_definition(self, state_model, process_id, wit_ref_name): """CreateStateDefinition. [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :rtype: :class:` ` @@ -898,7 +898,7 @@ def get_state_definitions(self, process_id, wit_ref_name): def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. [Preview API] Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden. - :param :class:` ` hide_state_model: + :param :class:` ` hide_state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state @@ -922,7 +922,7 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): """UpdateStateDefinition. [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: ID of the state @@ -946,7 +946,7 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i def create_process_work_item_type(self, work_item_type, process_id): """CreateProcessWorkItemType. [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: + :param :class:` ` work_item_type: :param str process_id: The ID of the process on which to create work item type. :rtype: :class:` ` """ @@ -1023,7 +1023,7 @@ def get_process_work_item_types(self, process_id, expand=None): def update_process_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateProcessWorkItemType. [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: + :param :class:` ` work_item_type_update: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :rtype: :class:` ` @@ -1044,7 +1044,7 @@ def update_process_work_item_type(self, work_item_type_update, process_id, wit_r def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """AddBehaviorToWorkItemType. [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior :rtype: :class:` ` @@ -1123,7 +1123,7 @@ def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behav def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """UpdateBehaviorToWorkItemType. [Preview API] Updates a behavior for the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior :rtype: :class:` ` diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py index c0b6e7ae..91340440 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py @@ -21,7 +21,7 @@ class AdminBehavior(Model): :param description: The description of the behavior. :type description: str :param fields: List of behavior fields. - :type fields: list of :class:`AdminBehaviorField ` + :type fields: list of :class:`AdminBehaviorField ` :param id: Behavior ID. :type id: str :param inherits: Parent behavior reference. @@ -125,7 +125,7 @@ class ProcessImportResult(Model): :param promote_job_id: The promote job identifier. :type promote_job_id: str :param validation_results: The list of validation results. - :type validation_results: list of :class:`ValidationIssue ` + :type validation_results: list of :class:`ValidationIssue ` """ _attribute_map = { From 1f6a56c1d57caadf5a0303201c5af07de68b6999 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 13 Feb 2019 17:56:32 -0500 Subject: [PATCH 108/191] Fixes for factories, comments, add process definition area --- .../azure/devops/v5_0/client_factory.py | 17 +- .../work_item_tracking_process_client.py | 128 +-- .../__init__.py | 36 + .../models.py | 848 +++++++++++++++ ...tem_tracking_process_definitions_client.py | 963 ++++++++++++++++++ .../azure/devops/v5_1/accounts/models.py | 6 +- .../azure/devops/v5_1/build/models.py | 220 ++-- .../azure/devops/v5_1/client_factory.py | 136 ++- .../devops/v5_1/cloud_load_test/models.py | 92 +- .../azure/devops/v5_1/contributions/models.py | 60 +- azure-devops/azure/devops/v5_1/core/models.py | 28 +- .../azure/devops/v5_1/dashboard/models.py | 60 +- .../v5_1/extension_management/models.py | 92 +- .../devops/v5_1/feature_management/models.py | 12 +- azure-devops/azure/devops/v5_1/feed/models.py | 78 +- .../azure/devops/v5_1/gallery/models.py | 98 +- azure-devops/azure/devops/v5_1/git/models.py | 336 +++--- .../azure/devops/v5_1/graph/models.py | 34 +- .../azure/devops/v5_1/identity/models.py | 48 +- .../azure/devops/v5_1/licensing/models.py | 38 +- .../azure/devops/v5_1/location/models.py | 34 +- .../azure/devops/v5_1/maven/models.py | 60 +- .../member_entitlement_management/models.py | 96 +- .../azure/devops/v5_1/notification/models.py | 116 +-- azure-devops/azure/devops/v5_1/npm/models.py | 10 +- .../azure/devops/v5_1/nuGet/models.py | 10 +- .../azure/devops/v5_1/nuGet/nuGet_client.py | 6 +- .../azure/devops/v5_1/operations/models.py | 4 +- .../azure/devops/v5_1/policy/models.py | 24 +- .../azure/devops/v5_1/profile/models.py | 2 +- .../devops/v5_1/project_analysis/models.py | 10 +- .../azure/devops/v5_1/py_pi_api/models.py | 8 +- .../azure/devops/v5_1/security/models.py | 8 +- .../devops/v5_1/service_endpoint/models.py | 84 +- .../azure/devops/v5_1/service_hooks/models.py | 90 +- .../azure/devops/v5_1/symbol/models.py | 8 +- azure-devops/azure/devops/v5_1/task/models.py | 50 +- .../azure/devops/v5_1/task_agent/models.py | 308 +++--- azure-devops/azure/devops/v5_1/test/models.py | 404 ++++---- azure-devops/azure/devops/v5_1/tfvc/models.py | 100 +- .../devops/v5_1/uPack_packaging/models.py | 2 +- .../uPack_packaging/uPack_packaging_client.py | 2 +- .../azure/devops/v5_1/universal/models.py | 8 +- .../devops/v5_1/universal/universal_client.py | 4 +- azure-devops/azure/devops/v5_1/wiki/models.py | 18 +- azure-devops/azure/devops/v5_1/work/models.py | 132 +-- .../devops/v5_1/work_item_tracking/models.py | 136 +-- .../work_item_tracking_comments/models.py | 34 +- .../v5_1/work_item_tracking_process/models.py | 62 +- .../work_item_tracking_process_client.py | 128 +-- .../__init__.py | 36 + .../models.py | 848 +++++++++++++++ ...tem_tracking_process_definitions_client.py | 963 ++++++++++++++++++ .../models.py | 4 +- 54 files changed, 5469 insertions(+), 1670 deletions(-) create mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py create mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py create mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py create mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py create mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py diff --git a/azure-devops/azure/devops/v5_0/client_factory.py b/azure-devops/azure/devops/v5_0/client_factory.py index f30e5c9c..ce62c54e 100644 --- a/azure-devops/azure/devops/v5_0/client_factory.py +++ b/azure-devops/azure/devops/v5_0/client_factory.py @@ -343,12 +343,19 @@ def get_work_item_tracking_client(self): """ return self._connection.get_client('azure.devops.v5_0.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') - def get_work_item_tracking_client(self): - """get_work_item_tracking_client. - Gets the 5.0 version of the WorkItemTrackingClient - :rtype: :class:` ` + def get_work_item_tracking_process_client(self): + """get_work_item_tracking_process_client. + Gets the 5.0 version of the WorkItemTrackingProcessClient + :rtype: :class:` ` """ - return self._connection.get_client('azure.devops.v5_0.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') + return self._connection.get_client('azure.devops.v5_0.work_item_tracking_process.work_item_tracking_process_client.WorkItemTrackingProcessClient') + + def get_work_item_tracking_process_definitions_client(self): + """get_work_item_tracking_process_definitions_client. + Gets the 5.0 version of the WorkItemTrackingProcessDefinitionsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_0.work_item_tracking_process_definitions.work_item_tracking_process_definitions_client.WorkItemTrackingProcessDefinitionsClient') def get_work_item_tracking_process_template_client(self): """get_work_item_tracking_process_template_client. diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py index 692ae4e3..6044f222 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process/work_item_tracking_process_client.py @@ -11,14 +11,14 @@ from . import models -class WorkItemTrackingClient(Client): - """WorkItemTracking +class WorkItemTrackingProcessClient(Client): + """WorkItemTrackingProcess :param str base_url: Service URL :param Authentication creds: Authenticated credentials. """ def __init__(self, base_url=None, creds=None): - super(WorkItemTrackingClient, self).__init__(base_url, creds) + super(WorkItemTrackingProcessClient, 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) @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_process_behavior(self, behavior, process_id): """CreateProcessBehavior. [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -65,7 +65,7 @@ def get_process_behavior(self, process_id, behavior_ref_name, expand=None): :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -105,10 +105,10 @@ def get_process_behaviors(self, process_id, expand=None): def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): """UpdateProcessBehavior. [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: + :param :class:` ` behavior_data: :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -126,11 +126,11 @@ def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): def create_control_in_group(self, control, process_id, wit_ref_name, group_id): """CreateControlInGroup. [Preview API] Creates a control in a group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to add the control to. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -150,13 +150,13 @@ def create_control_in_group(self, control, process_id, wit_ref_name, group_id): def move_control_to_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): """MoveControlToGroup. [Preview API] Moves a control to a specified group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to move the control to. :param str control_id: The ID of the control. :param str remove_from_group_id: The group ID to remove the control from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -204,12 +204,12 @@ def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_ def update_control(self, control, process_id, wit_ref_name, group_id, control_id): """UpdateControl. [Preview API] Updates a control on the work item form. - :param :class:` ` control: The updated control. + :param :class:` ` control: The updated control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group. :param str control_id: The ID of the control. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -231,10 +231,10 @@ def update_control(self, control, process_id, wit_ref_name, group_id, control_id def add_field_to_work_item_type(self, field, process_id, wit_ref_name): """AddFieldToWorkItemType. [Preview API] Adds a field to a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -273,7 +273,7 @@ def get_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str field_ref_name: The reference name of the field. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -310,11 +310,11 @@ def remove_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref_name): """UpdateWorkItemTypeField. [Preview API] Updates a field in a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str field_ref_name: The reference name of the field. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -334,12 +334,12 @@ def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref def add_group(self, group, process_id, wit_ref_name, page_id, section_id): """AddGroup. [Preview API] Adds a group to the work item form. - :param :class:` ` group: The group. + :param :class:` ` group: The group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page to add the group to. :param str section_id: The ID of the section to add the group to. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -361,7 +361,7 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): """MoveGroupToPage. [Preview API] Moves a group to a different page and section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. @@ -369,7 +369,7 @@ def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_i :param str group_id: The ID of the group. :param str remove_from_page_id: ID of the page to remove the group from. :param str remove_from_section_id: ID of the section to remove the group from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -399,14 +399,14 @@ def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_i def move_group_to_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): """MoveGroupToSection. [Preview API] Moves a group to a different section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. :param str section_id: The ID of the section the group is in. :param str group_id: The ID of the group. :param str remove_from_section_id: ID of the section to remove the group from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -459,13 +459,13 @@ def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): def update_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): """UpdateGroup. [Preview API] Updates a group in the work item form. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. :param str section_id: The ID of the section the group is in. :param str group_id: The ID of the group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -491,7 +491,7 @@ def get_form_layout(self, process_id, wit_ref_name): [Preview API] Gets the form layout. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -507,8 +507,8 @@ def get_form_layout(self, process_id, wit_ref_name): def create_list(self, picklist): """CreateList. [Preview API] Creates a picklist. - :param :class:` ` picklist: Picklist - :rtype: :class:` ` + :param :class:` ` picklist: Picklist + :rtype: :class:` ` """ content = self._serialize.body(picklist, 'PickList') response = self._send(http_method='POST', @@ -534,7 +534,7 @@ def get_list(self, list_id): """GetList. [Preview API] Returns a picklist. :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -558,9 +558,9 @@ def get_lists_metadata(self): def update_list(self, picklist, list_id): """UpdateList. [Preview API] Updates a list. - :param :class:` ` picklist: + :param :class:` ` picklist: :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -576,10 +576,10 @@ def update_list(self, picklist, list_id): def add_page(self, page, process_id, wit_ref_name): """AddPage. [Preview API] Adds a page to the work item form. - :param :class:` ` page: The page. + :param :class:` ` page: The page. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -616,10 +616,10 @@ def remove_page(self, process_id, wit_ref_name, page_id): def update_page(self, page, process_id, wit_ref_name): """UpdatePage. [Preview API] Updates a page on the work item form - :param :class:` ` page: The page + :param :class:` ` page: The page :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -637,8 +637,8 @@ def update_page(self, page, process_id, wit_ref_name): def create_new_process(self, create_request): """CreateNewProcess. [Preview API] Creates a process. - :param :class:` ` create_request: CreateProcessModel. - :rtype: :class:` ` + :param :class:` ` create_request: CreateProcessModel. + :rtype: :class:` ` """ content = self._serialize.body(create_request, 'CreateProcessModel') response = self._send(http_method='POST', @@ -663,9 +663,9 @@ def delete_process_by_id(self, process_type_id): def edit_process(self, update_request, process_type_id): """EditProcess. [Preview API] Edit a process of a specific ID. - :param :class:` ` update_request: + :param :class:` ` update_request: :param str process_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -698,7 +698,7 @@ def get_process_by_its_id(self, process_type_id, expand=None): [Preview API] Get a single process of a specified ID. :param str process_type_id: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -716,10 +716,10 @@ def get_process_by_its_id(self, process_type_id, expand=None): def add_process_work_item_type_rule(self, process_rule_create, process_id, wit_ref_name): """AddProcessWorkItemTypeRule. [Preview API] Adds a rule to work item type in the process. - :param :class:` ` process_rule_create: + :param :class:` ` process_rule_create: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -759,7 +759,7 @@ def get_process_work_item_type_rule(self, process_id, wit_ref_name, rule_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -795,11 +795,11 @@ def get_process_work_item_type_rules(self, process_id, wit_ref_name): def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_name, rule_id): """UpdateProcessWorkItemTypeRule. [Preview API] Updates a rule in the work item type of the process. - :param :class:` ` process_rule: + :param :class:` ` process_rule: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -819,10 +819,10 @@ def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_n def create_state_definition(self, state_model, process_id, wit_ref_name): """CreateStateDefinition. [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -862,7 +862,7 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -898,11 +898,11 @@ def get_state_definitions(self, process_id, wit_ref_name): def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. [Preview API] Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden. - :param :class:` ` hide_state_model: + :param :class:` ` hide_state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -922,11 +922,11 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): """UpdateStateDefinition. [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -946,9 +946,9 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i def create_process_work_item_type(self, work_item_type, process_id): """CreateProcessWorkItemType. [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: + :param :class:` ` work_item_type: :param str process_id: The ID of the process on which to create work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -983,7 +983,7 @@ def get_process_work_item_type(self, process_id, wit_ref_name, expand=None): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str expand: Flag to determine what properties of work item type to return - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1023,10 +1023,10 @@ def get_process_work_item_types(self, process_id, expand=None): def update_process_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateProcessWorkItemType. [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: + :param :class:` ` work_item_type_update: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1044,10 +1044,10 @@ def update_process_work_item_type(self, work_item_type_update, process_id, wit_r def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """AddBehaviorToWorkItemType. [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1068,7 +1068,7 @@ def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1123,10 +1123,10 @@ def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behav def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """UpdateBehaviorToWorkItemType. [Preview API] Updates a behavior for the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py new file mode 100644 index 00000000..793a0fbf --- /dev/null +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py @@ -0,0 +1,36 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeFieldModel2', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py new file mode 100644 index 00000000..87904326 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py @@ -0,0 +1,848 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorCreateModel(Model): + """BehaviorCreateModel. + + :param color: Color + :type color: str + :param id: Optional - Id + :type id: str + :param inherits: Parent behavior id + :type inherits: str + :param name: Name of the behavior + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, id=None, inherits=None, name=None): + super(BehaviorCreateModel, self).__init__() + self.color = color + self.id = id + self.inherits = inherits + self.name = name + + +class BehaviorModel(Model): + """BehaviorModel. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) + :type abstract: bool + :param color: Color + :type color: str + :param description: Description + :type description: str + :param id: Behavior Id + :type id: str + :param inherits: Parent behavior reference + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: Behavior Name + :type name: str + :param overridden: Is the behavior overrides a behavior from system process + :type overridden: bool + :param rank: Rank + :type rank: int + :param url: Url of the behavior + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): + super(BehaviorModel, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.id = id + self.inherits = inherits + self.name = name + self.overridden = overridden + self.rank = rank + self.url = url + + +class BehaviorReplaceModel(Model): + """BehaviorReplaceModel. + + :param color: Color + :type color: str + :param name: Behavior Name + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(BehaviorReplaceModel, self).__init__() + self.color = color + self.name = name + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: Description about field + :type description: str + :param id: ID of the field + :type id: str + :param name: Name of the field + :type name: str + :param pick_list: Reference to picklist in this field + :type pick_list: :class:`PickListMetadataModel ` + :param type: Type of field + :type type: object + :param url: Url to the field + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.name = name + self.pick_list = pick_list + self.type = type + self.url = url + + +class FieldUpdate(Model): + """FieldUpdate. + + :param description: + :type description: str + :param id: + :type id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, description=None, id=None): + super(FieldUpdate, self).__init__() + self.description = description + self.id = id + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class PickListItemModel(Model): + """PickListItemModel. + + :param id: + :type id: str + :param value: + :type value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, id=None, value=None): + super(PickListItemModel, self).__init__() + self.id = id + self.value = value + + +class PickListMetadataModel(Model): + """PickListMetadataModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadataModel, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url + + +class PickListModel(PickListMetadataModel): + """PickListModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + :param items: A list of PicklistItemModel + :type items: list of :class:`PickListItemModel ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[PickListItemModel]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: The ID of the reference behavior + :type id: str + :param url: The url of the reference behavior + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: Color of the state + :type color: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: Color of the state + :type color: str + :param hidden: Is the state hidden + :type hidden: bool + :param id: The ID of the State + :type id: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + :param url: Url of the state + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeFieldModel(Model): + """WorkItemTypeFieldModel. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class WorkItemTypeFieldModel2(Model): + """WorkItemTypeFieldModel2. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: object + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel2, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: Behaviors of the work item type + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: Class of the work item type + :type class_: object + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param id: The ID of the work item type + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: Is work item type disabled + :type is_disabled: bool + :param layout: Layout of the work item type + :type layout: :class:`FormLayout ` + :param name: Name of the work item type + :type name: str + :param states: States of the work item type + :type states: list of :class:`WorkItemStateResultModel ` + :param url: Url of the work item type + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +class WorkItemTypeUpdateModel(Model): + """WorkItemTypeUpdateModel. + + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param is_disabled: Is the workitem type to be disabled + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(WorkItemTypeUpdateModel, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled + + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeFieldModel2', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py new file mode 100644 index 00000000..da4d27f2 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py @@ -0,0 +1,963 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class WorkItemTrackingProcessDefinitionsClient(Client): + """WorkItemTrackingProcessDefinitions + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingProcessDefinitionsClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' + + def create_behavior(self, behavior, process_id): + """CreateBehavior. + [Preview API] Creates a single behavior in the given process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(behavior, 'BehaviorCreateModel') + response = self._send(http_method='POST', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def delete_behavior(self, process_id, behavior_id): + """DeleteBehavior. + [Preview API] Removes a behavior in the process. + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + self._send(http_method='DELETE', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.0-preview.1', + route_values=route_values) + + def get_behavior(self, process_id, behavior_id): + """GetBehavior. + [Preview API] Returns a single behavior in the process. + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('BehaviorModel', response) + + def get_behaviors(self, process_id): + """GetBehaviors. + [Preview API] Returns a list of all behaviors in the process. + :param str process_id: The ID of the process + :rtype: [BehaviorModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) + + def replace_behavior(self, behavior_data, process_id, behavior_id): + """ReplaceBehavior. + [Preview API] Replaces a behavior in the process. + :param :class:` ` behavior_data: + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') + response = self._send(http_method='PUT', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def add_control_to_group(self, control, process_id, wit_ref_name, group_id): + """AddControlToGroup. + [Preview API] Creates a control in a group + :param :class:` ` control: The control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group to add the control to + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='POST', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): + """EditControl. + [Preview API] Updates a control on the work item form + :param :class:` ` control: The updated control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group + :param str control_id: The ID of the control + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PATCH', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): + """RemoveControlFromGroup. + [Preview API] Removes a control from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group + :param str control_id: The ID of the control to remove + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + self._send(http_method='DELETE', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.0-preview.1', + route_values=route_values) + + def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): + """SetControlInGroup. + [Preview API] Moves a control to a new group + :param :class:` ` control: The control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group to move the control to + :param str control_id: The id of the control + :param str remove_from_group_id: The group to remove the control from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + query_parameters = {} + if remove_from_group_id is not None: + query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PUT', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Control', response) + + def create_field(self, field, process_id): + """CreateField. + [Preview API] Creates a single field in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldModel') + response = self._send(http_method='POST', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def update_field(self, field, process_id): + """UpdateField. + [Preview API] Updates a given field in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldUpdate') + response = self._send(http_method='PATCH', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def add_group(self, group, process_id, wit_ref_name, page_id, section_id): + """AddGroup. + [Preview API] Adds a group to the work item form + :param :class:` ` group: The group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page to add the group to + :param str section_id: The ID of the section to add the group to + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='POST', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): + """EditGroup. + [Preview API] Updates a group in the work item form + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PATCH', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): + """RemoveGroup. + [Preview API] Removes a group from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section to the group is in + :param str group_id: The ID of the group + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + self._send(http_method='DELETE', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.0-preview.1', + route_values=route_values) + + def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): + """SetGroupInPage. + [Preview API] Moves a group to a different page and section + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :param str remove_from_page_id: ID of the page to remove the group from + :param str remove_from_section_id: ID of the section to remove the group from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_page_id is not None: + query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): + """SetGroupInSection. + [Preview API] Moves a group to a different section + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :param str remove_from_section_id: ID of the section to remove the group from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def get_form_layout(self, process_id, wit_ref_name): + """GetFormLayout. + [Preview API] Gets the form layout + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='3eacc80a-ddca-4404-857a-6331aac99063', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('FormLayout', response) + + def get_lists_metadata(self): + """GetListsMetadata. + [Preview API] Returns meta data of the picklist. + :rtype: [PickListMetadataModel] + """ + response = self._send(http_method='GET', + location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', + version='5.0-preview.1') + return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) + + def create_list(self, picklist): + """CreateList. + [Preview API] Creates a picklist. + :param :class:` ` picklist: + :rtype: :class:` ` + """ + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='POST', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.0-preview.1', + content=content) + return self._deserialize('PickListModel', response) + + def delete_list(self, list_id): + """DeleteList. + [Preview API] Removes a picklist. + :param str list_id: The ID of the list + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + self._send(http_method='DELETE', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.0-preview.1', + route_values=route_values) + + def get_list(self, list_id): + """GetList. + [Preview API] Returns a picklist. + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + response = self._send(http_method='GET', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('PickListModel', response) + + def update_list(self, picklist, list_id): + """UpdateList. + [Preview API] Updates a list. + :param :class:` ` picklist: + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='PUT', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('PickListModel', response) + + def add_page(self, page, process_id, wit_ref_name): + """AddPage. + [Preview API] Adds a page to the work item form + :param :class:` ` page: The page + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='POST', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def edit_page(self, page, process_id, wit_ref_name): + """EditPage. + [Preview API] Updates a page on the work item form + :param :class:` ` page: The page + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='PATCH', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def remove_page(self, process_id, wit_ref_name, page_id): + """RemovePage. + [Preview API] Removes a page from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + self._send(http_method='DELETE', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='5.0-preview.1', + route_values=route_values) + + def create_state_definition(self, state_model, process_id, wit_ref_name): + """CreateStateDefinition. + [Preview API] Creates a state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='POST', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def delete_state_definition(self, process_id, wit_ref_name, state_id): + """DeleteStateDefinition. + [Preview API] Removes a state definition in the work item type of the process. + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + self._send(http_method='DELETE', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.0-preview.1', + route_values=route_values) + + def get_state_definition(self, process_id, wit_ref_name, state_id): + """GetStateDefinition. + [Preview API] Returns a state definition in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemStateResultModel', response) + + def get_state_definitions(self, process_id, wit_ref_name): + """GetStateDefinitions. + [Preview API] Returns a list of all state definitions in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [WorkItemStateResultModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) + + def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): + """HideStateDefinition. + [Preview API] Hides a state definition in the work item type of the process. + :param :class:` ` hide_state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(hide_state_model, 'HideStateModel') + response = self._send(http_method='PUT', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): + """UpdateStateDefinition. + [Preview API] Updates a given state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='PATCH', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """AddBehaviorToWorkItemType. + [Preview API] Adds a behavior to the work item type of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='POST', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """GetBehaviorForWorkItemType. + [Preview API] Returns a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): + """GetBehaviorsForWorkItemType. + [Preview API] Returns a list of all behaviors for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: [WorkItemTypeBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) + + def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """RemoveBehaviorFromWorkItemType. + [Preview API] Removes a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + self._send(http_method='DELETE', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.0-preview.1', + route_values=route_values) + + def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """UpdateBehaviorToWorkItemType. + [Preview API] Updates default work item type for the behavior of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='PATCH', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def create_work_item_type(self, work_item_type, process_id): + """CreateWorkItemType. + [Preview API] Creates a work item type in the process. + :param :class:` ` work_item_type: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(work_item_type, 'WorkItemTypeModel') + response = self._send(http_method='POST', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def delete_work_item_type(self, process_id, wit_ref_name): + """DeleteWorkItemType. + [Preview API] Removes a work itewm type in the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + self._send(http_method='DELETE', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.0-preview.1', + route_values=route_values) + + def get_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetWorkItemType. + [Preview API] Returns a work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeModel', response) + + def get_work_item_types(self, process_id, expand=None): + """GetWorkItemTypes. + [Preview API] Returns a list of all work item types in the process. + :param str process_id: The ID of the process + :param str expand: + :rtype: [WorkItemTypeModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.0-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) + + def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): + """UpdateWorkItemType. + [Preview API] Updates a work item type of the process. + :param :class:` ` work_item_type_update: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') + response = self._send(http_method='PATCH', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): + """AddFieldToWorkItemType. + [Preview API] Adds a field to the work item type in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for the field + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + content = self._serialize.body(field, 'WorkItemTypeFieldModel2') + response = self._send(http_method='POST', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeFieldModel2', response) + + def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): + """GetWorkItemTypeField. + [Preview API] Returns a single field in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :param str field_ref_name: The reference name of the field + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeFieldModel2', response) + + def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): + """GetWorkItemTypeFields. + [Preview API] Returns a list of all fields in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :rtype: [WorkItemTypeFieldModel2] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemTypeFieldModel2]', self._unwrap_collection(response)) + + def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): + """RemoveFieldFromWorkItemType. + [Preview API] Removes a field in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :param str field_ref_name: The reference name of the field + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + self._send(http_method='DELETE', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.0-preview.1', + route_values=route_values) + diff --git a/azure-devops/azure/devops/v5_1/accounts/models.py b/azure-devops/azure/devops/v5_1/accounts/models.py index 14e2c7dd..385e5db2 100644 --- a/azure-devops/azure/devops/v5_1/accounts/models.py +++ b/azure-devops/azure/devops/v5_1/accounts/models.py @@ -41,7 +41,7 @@ class Account(Model): :param organization_name: Organization that created the account :type organization_name: str :param properties: Extended properties - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_reason: Reason for current status :type status_reason: str """ @@ -95,9 +95,9 @@ class AccountCreateInfoInternal(Model): :param organization: :type organization: str :param preferences: - :type preferences: :class:`AccountPreferencesInternal ` + :type preferences: :class:`AccountPreferencesInternal ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param service_definitions: :type service_definitions: list of { key: str; value: str } """ diff --git a/azure-devops/azure/devops/v5_1/build/models.py b/azure-devops/azure/devops/v5_1/build/models.py index d17dbe4f..419e5b05 100644 --- a/azure-devops/azure/devops/v5_1/build/models.py +++ b/azure-devops/azure/devops/v5_1/build/models.py @@ -13,13 +13,13 @@ class AgentPoolQueue(Model): """AgentPoolQueue. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: The ID of the queue. :type id: int :param name: The name of the queue. :type name: str :param pool: The pool used by this queue. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param url: The full http link to the resource. :type url: str """ @@ -49,11 +49,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param run_summary_by_outcome: :type run_summary_by_outcome: dict :param run_summary_by_state: @@ -201,7 +201,7 @@ class ArtifactResource(Model): """ArtifactResource. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param data: Type-specific data about the artifact. :type data: str :param download_url: A link to download the resource. @@ -277,7 +277,7 @@ class Attachment(Model): """Attachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name of the attachment. :type name: str """ @@ -317,25 +317,25 @@ class Build(Model): """Build. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param build_number: The build number/name of the build. :type build_number: str :param build_number_revision: The build number revision. :type build_number_revision: int :param controller: The build controller. This is only set if the definition type is Xaml. - :type controller: :class:`BuildController ` + :type controller: :class:`BuildController ` :param definition: The definition associated with the build. - :type definition: :class:`DefinitionReference ` + :type definition: :class:`DefinitionReference ` :param deleted: Indicates whether the build has been deleted. :type deleted: bool :param deleted_by: The identity of the process or person that deleted the build. - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: The date the build was deleted. :type deleted_date: datetime :param deleted_reason: The description of how the build was deleted. :type deleted_reason: str :param demands: A list of demands that represents the agent capabilities required by this build. - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param finish_time: The time that the build was completed. :type finish_time: datetime :param id: The ID of the build. @@ -343,27 +343,27 @@ class Build(Model): :param keep_forever: Indicates whether the build should be skipped by retention policies. :type keep_forever: bool :param last_changed_by: The identity representing the process or person that last changed the build. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the build was last changed. :type last_changed_date: datetime :param logs: Information about the build logs. - :type logs: :class:`BuildLogReference ` + :type logs: :class:`BuildLogReference ` :param orchestration_plan: The orchestration plan for the build. - :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` + :type orchestration_plan: :class:`TaskOrchestrationPlanReference ` :param parameters: The parameters for the build. :type parameters: str :param plans: Orchestration plans associated with the build (build, cleanup) - :type plans: list of :class:`TaskOrchestrationPlanReference ` + :type plans: list of :class:`TaskOrchestrationPlanReference ` :param priority: The build's priority. :type priority: object :param project: The team project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param quality: The quality of the xaml build (good, bad, etc.) :type quality: str :param queue: The queue. This is only set if the definition type is Build. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param queue_options: Additional options for queueing the build. :type queue_options: object :param queue_position: The current position of the build in the queue. @@ -373,11 +373,11 @@ class Build(Model): :param reason: The reason that the build was created. :type reason: object :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param requested_by: The identity that queued the build. - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param requested_for: The identity on whose behalf the build was queued. - :type requested_for: :class:`IdentityRef ` + :type requested_for: :class:`IdentityRef ` :param result: The build result. :type result: object :param retained_by_release: Indicates whether the build is retained by a release. @@ -393,7 +393,7 @@ class Build(Model): :param tags: :type tags: list of str :param triggered_by_build: The build that triggered this build via a Build completion trigger. - :type triggered_by_build: :class:`Build ` + :type triggered_by_build: :class:`Build ` :param trigger_info: Sourceprovider-specific information about what triggered the build :type trigger_info: dict :param uri: The URI of the build. @@ -401,7 +401,7 @@ class Build(Model): :param url: The REST URL of the build. :type url: str :param validation_results: - :type validation_results: list of :class:`BuildRequestValidationResult ` + :type validation_results: list of :class:`BuildRequestValidationResult ` """ _attribute_map = { @@ -505,7 +505,7 @@ class BuildArtifact(Model): :param name: The name of the artifact. :type name: str :param resource: The actual resource. - :type resource: :class:`ArtifactResource ` + :type resource: :class:`ArtifactResource ` """ _attribute_map = { @@ -545,7 +545,7 @@ class BuildDefinitionRevision(Model): """BuildDefinitionRevision. :param changed_by: The identity of the person or process that changed the definition. - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: The date and time that the definition was changed. :type changed_date: datetime :param change_type: The change type (add, edit, delete). @@ -601,7 +601,7 @@ class BuildDefinitionStep(Model): :param ref_name: The reference name for this step. :type ref_name: str :param task: The task associated with this step. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: The time, in minutes, that this step is allowed to run. :type timeout_in_minutes: int """ @@ -653,7 +653,7 @@ class BuildDefinitionTemplate(Model): :param name: The name of the template. :type name: str :param template: The actual template. - :type template: :class:`BuildDefinition ` + :type template: :class:`BuildDefinition ` """ _attribute_map = { @@ -701,7 +701,7 @@ class BuildDefinitionTemplate3_2(Model): :param name: :type name: str :param template: - :type template: :class:`BuildDefinition3_2 ` + :type template: :class:`BuildDefinition3_2 ` """ _attribute_map = { @@ -809,7 +809,7 @@ class BuildOption(Model): """BuildOption. :param definition: A reference to the build option. - :type definition: :class:`BuildOptionDefinitionReference ` + :type definition: :class:`BuildOptionDefinitionReference ` :param enabled: Indicates whether the behavior is enabled. :type enabled: bool :param inputs: @@ -1043,9 +1043,9 @@ class BuildSettings(Model): :param days_to_keep_deleted_builds_before_destroy: The number of days to keep records of deleted builds. :type days_to_keep_deleted_builds_before_destroy: int :param default_retention_policy: The default retention policy. - :type default_retention_policy: :class:`RetentionPolicy ` + :type default_retention_policy: :class:`RetentionPolicy ` :param maximum_retention_policy: The maximum retention policy. - :type maximum_retention_policy: :class:`RetentionPolicy ` + :type maximum_retention_policy: :class:`RetentionPolicy ` """ _attribute_map = { @@ -1065,7 +1065,7 @@ class Change(Model): """Change. :param author: The author of the change. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param display_uri: The location of a user-friendly representation of the resource. :type display_uri: str :param id: The identifier for the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset ID. @@ -1123,7 +1123,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -1185,7 +1185,7 @@ class DefinitionReference(Model): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -1273,19 +1273,19 @@ class Folder(Model): """Folder. :param created_by: The process or person who created the folder. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: The date the folder was created. :type created_on: datetime :param description: The description. :type description: str :param last_changed_by: The process or person that last changed the folder. - :type last_changed_by: :class:`IdentityRef ` + :type last_changed_by: :class:`IdentityRef ` :param last_changed_date: The date the folder was last changed. :type last_changed_date: datetime :param path: The full path. :type path: str :param project: The project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -1313,7 +1313,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1341,7 +1341,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1457,11 +1457,11 @@ class ProcessParameters(Model): """ProcessParameters. :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :type data_source_bindings: list of :class:`DataSourceBindingBase ` :param inputs: - :type inputs: list of :class:`TaskInputDefinitionBase ` + :type inputs: list of :class:`TaskInputDefinitionBase ` :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` """ _attribute_map = { @@ -1481,9 +1481,9 @@ class PullRequest(Model): """PullRequest. :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the pull request. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param current_state: Current state of the pull request, e.g. open, merged, closed, conflicts, etc. :type current_state: str :param description: Description for the pull request. @@ -1693,7 +1693,7 @@ class SourceProviderAttributes(Model): :param supported_capabilities: The capabilities supported by this source provider. :type supported_capabilities: dict :param supported_triggers: The types of triggers supported by this source provider. - :type supported_triggers: list of :class:`SupportedTrigger ` + :type supported_triggers: list of :class:`SupportedTrigger ` """ _attribute_map = { @@ -1717,7 +1717,7 @@ class SourceRepositories(Model): :param page_length: The number of repositories requested for each page :type page_length: int :param repositories: A list of repositories - :type repositories: list of :class:`SourceRepository ` + :type repositories: list of :class:`SourceRepository ` :param total_page_count: The total number of pages, or '-1' if unknown :type total_page_count: int """ @@ -1905,7 +1905,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -2093,11 +2093,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -2141,7 +2141,7 @@ class TimelineRecord(Model): """TimelineRecord. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attempt: Attempt number of record. :type attempt: int :param change_id: The change ID. @@ -2149,7 +2149,7 @@ class TimelineRecord(Model): :param current_operation: A string that indicates the current operation. :type current_operation: str :param details: A reference to a sub-timeline. - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: The number of errors produced by this operation. :type error_count: int :param finish_time: The finish time. @@ -2159,11 +2159,11 @@ class TimelineRecord(Model): :param identifier: String identifier that is consistent across attempts. :type identifier: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: The time the record was last modified. :type last_modified: datetime :param log: A reference to the log produced by this operation. - :type log: :class:`BuildLogReference ` + :type log: :class:`BuildLogReference ` :param name: The name. :type name: str :param order: An ordinal value relative to other records. @@ -2173,7 +2173,7 @@ class TimelineRecord(Model): :param percent_complete: The current completion percentage. :type percent_complete: int :param previous_attempts: - :type previous_attempts: list of :class:`TimelineAttempt ` + :type previous_attempts: list of :class:`TimelineAttempt ` :param result: The result. :type result: object :param result_code: The result code. @@ -2183,7 +2183,7 @@ class TimelineRecord(Model): :param state: The state of the record. :type state: object :param task: A reference to the task represented by this timeline record. - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: The type of the record. :type type: str :param url: The REST URL of the timeline record. @@ -2351,7 +2351,7 @@ class BuildController(XamlBuildControllerReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: The date the controller was created. :type created_date: datetime :param description: The description of the controller. @@ -2402,7 +2402,7 @@ class BuildDefinitionReference(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2414,23 +2414,23 @@ class BuildDefinitionReference(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2480,7 +2480,7 @@ class BuildDefinitionReference3_2(DefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2492,19 +2492,19 @@ class BuildDefinitionReference3_2(DefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` """ _attribute_map = { @@ -2579,9 +2579,9 @@ class BuildOptionDefinition(BuildOptionDefinitionReference): :param description: The description. :type description: str :param groups: The list of input groups defined for the build option. - :type groups: list of :class:`BuildOptionGroupDefinition ` + :type groups: list of :class:`BuildOptionGroupDefinition ` :param inputs: The list of inputs defined for the build option. - :type inputs: list of :class:`BuildOptionInputDefinition ` + :type inputs: list of :class:`BuildOptionInputDefinition ` :param name: The name of the build option. :type name: str :param ordinal: A value that indicates the relative order in which the behavior should be applied. @@ -2620,7 +2620,7 @@ class Timeline(TimelineReference): :param last_changed_on: The time the timeline was last changed. :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { @@ -2685,7 +2685,7 @@ class BuildDefinition(BuildDefinitionReference): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2697,23 +2697,23 @@ class BuildDefinition(BuildDefinitionReference): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition. :type badge_enabled: bool :param build_number_format: The build number format. @@ -2721,7 +2721,7 @@ class BuildDefinition(BuildDefinitionReference): :param comment: A save-time comment for the definition. :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description. :type description: str :param drop_location: The drop location for the definition. @@ -2733,23 +2733,23 @@ class BuildDefinition(BuildDefinitionReference): :param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. :type job_timeout_in_minutes: int :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process: The build process. - :type process: :class:`object ` + :type process: :class:`object ` :param process_parameters: The process parameters for this definition. - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository. - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variable_groups: - :type variable_groups: list of :class:`VariableGroup ` + :type variable_groups: list of :class:`VariableGroup ` :param variables: :type variables: dict """ @@ -2830,7 +2830,7 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param path: The folder path of the definition. :type path: str :param project: A reference to the project. - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param queue_status: A value that indicates whether builds can be queued against this definition. :type queue_status: object :param revision: The definition revision number. @@ -2842,29 +2842,29 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param url: The REST URL of the definition. :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param authored_by: The author of the definition. - :type authored_by: :class:`IdentityRef ` + :type authored_by: :class:`IdentityRef ` :param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition. - :type draft_of: :class:`DefinitionReference ` + :type draft_of: :class:`DefinitionReference ` :param drafts: The list of drafts associated with this definition, if this is not a draft definition. - :type drafts: list of :class:`DefinitionReference ` + :type drafts: list of :class:`DefinitionReference ` :param metrics: - :type metrics: list of :class:`BuildMetric ` + :type metrics: list of :class:`BuildMetric ` :param quality: The quality of the definition document (draft, etc.) :type quality: object :param queue: The default queue for builds run against this definition. - :type queue: :class:`AgentPoolQueue ` + :type queue: :class:`AgentPoolQueue ` :param badge_enabled: Indicates whether badges are enabled for this definition :type badge_enabled: bool :param build: - :type build: list of :class:`BuildDefinitionStep ` + :type build: list of :class:`BuildDefinitionStep ` :param build_number_format: The build number format :type build_number_format: str :param comment: The comment entered when saving the definition :type comment: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param description: The description :type description: str :param drop_location: The drop location for the definition @@ -2876,23 +2876,23 @@ class BuildDefinition3_2(BuildDefinitionReference3_2): :param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition :type job_timeout_in_minutes: int :param latest_build: - :type latest_build: :class:`Build ` + :type latest_build: :class:`Build ` :param latest_completed_build: - :type latest_completed_build: :class:`Build ` + :type latest_completed_build: :class:`Build ` :param options: - :type options: list of :class:`BuildOption ` + :type options: list of :class:`BuildOption ` :param process_parameters: Process Parameters - :type process_parameters: :class:`ProcessParameters ` + :type process_parameters: :class:`ProcessParameters ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param repository: The repository - :type repository: :class:`BuildRepository ` + :type repository: :class:`BuildRepository ` :param retention_rules: - :type retention_rules: list of :class:`RetentionPolicy ` + :type retention_rules: list of :class:`RetentionPolicy ` :param tags: :type tags: list of str :param triggers: - :type triggers: list of :class:`object ` + :type triggers: list of :class:`object ` :param variables: :type variables: dict """ diff --git a/azure-devops/azure/devops/v5_1/client_factory.py b/azure-devops/azure/devops/v5_1/client_factory.py index ca7763f0..c1f1e29f 100644 --- a/azure-devops/azure/devops/v5_1/client_factory.py +++ b/azure-devops/azure/devops/v5_1/client_factory.py @@ -14,6 +14,13 @@ class ClientFactoryV5_1(object): def __init__(self, connection): self._connection = connection + def get_accounts_client(self): + """get_accounts_client. + Gets the 5.1 version of the AccountsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.accounts.accounts_client.AccountsClient') + def get_build_client(self): """get_build_client. Gets the 5.1 version of the BuildClient @@ -35,6 +42,41 @@ def get_cloud_load_test_client(self): """ return self._connection.get_client('azure.devops.v5_1.cloud_load_test.cloud_load_test_client.CloudLoadTestClient') + def get_contributions_client(self): + """get_contributions_client. + Gets the 5.1 version of the ContributionsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.contributions.contributions_client.ContributionsClient') + + def get_core_client(self): + """get_core_client. + Gets the 5.1 version of the CoreClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.core.core_client.CoreClient') + + def get_customer_intelligence_client(self): + """get_customer_intelligence_client. + Gets the 5.1 version of the CustomerIntelligenceClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.customer_intelligence.customer_intelligence_client.CustomerIntelligenceClient') + + def get_dashboard_client(self): + """get_dashboard_client. + Gets the 5.1 version of the DashboardClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.dashboard.dashboard_client.DashboardClient') + + def get_extension_management_client(self): + """get_extension_management_client. + Gets the 5.1 version of the ExtensionManagementClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.extension_management.extension_management_client.ExtensionManagementClient') + def get_feature_availability_client(self): """get_feature_availability_client. Gets the 5.1 version of the FeatureAvailabilityClient @@ -42,6 +84,27 @@ def get_feature_availability_client(self): """ return self._connection.get_client('azure.devops.v5_1.feature_availability.feature_availability_client.FeatureAvailabilityClient') + def get_feature_management_client(self): + """get_feature_management_client. + Gets the 5.1 version of the FeatureManagementClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.feature_management.feature_management_client.FeatureManagementClient') + + def get_feed_client(self): + """get_feed_client. + Gets the 5.1 version of the FeedClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.feed.feed_client.FeedClient') + + def get_feed_token_client(self): + """get_feed_token_client. + Gets the 5.1 version of the FeedTokenClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.feed_token.feed_token_client.FeedTokenClient') + def get_file_container_client(self): """get_file_container_client. Gets the 5.1 version of the FileContainerClient @@ -49,6 +112,13 @@ def get_file_container_client(self): """ return self._connection.get_client('azure.devops.v5_1.file_container.file_container_client.FileContainerClient') + def get_gallery_client(self): + """get_gallery_client. + Gets the 5.1 version of the GalleryClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.gallery.gallery_client.GalleryClient') + def get_git_client(self): """get_git_client. Gets the 5.1 version of the GitClient @@ -70,6 +140,13 @@ def get_identity_client(self): """ return self._connection.get_client('azure.devops.v5_1.identity.identity_client.IdentityClient') + def get_licensing_client(self): + """get_licensing_client. + Gets the 5.1 version of the LicensingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.licensing.licensing_client.LicensingClient') + def get_location_client(self): """get_location_client. Gets the 5.1 version of the LocationClient @@ -77,6 +154,20 @@ def get_location_client(self): """ return self._connection.get_client('azure.devops.v5_1.location.location_client.LocationClient') + def get_maven_client(self): + """get_maven_client. + Gets the 5.1 version of the MavenClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.maven.maven_client.MavenClient') + + def get_member_entitlement_management_client(self): + """get_member_entitlement_management_client. + Gets the 5.1 version of the MemberEntitlementManagementClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.member_entitlement_management.member_entitlement_management_client.MemberEntitlementManagementClient') + def get_notification_client(self): """get_notification_client. Gets the 5.1 version of the NotificationClient @@ -91,12 +182,12 @@ def get_npm_client(self): """ return self._connection.get_client('azure.devops.v5_1.npm.npm_client.NpmClient') - def get_nuGet_client(self): - """get_nuGet_client. + def get_nuget_client(self): + """get_nuget_client. Gets the 5.1 version of the NuGetClient - :rtype: :class:` ` + :rtype: :class:` ` """ - return self._connection.get_client('azure.devops.v5_1.nuGet.nuGet_client.NuGetClient') + return self._connection.get_client('azure.devops.v5_1.nuget.nuget_client.NuGetClient') def get_operations_client(self): """get_operations_client. @@ -210,19 +301,19 @@ def get_tfvc_client(self): """ return self._connection.get_client('azure.devops.v5_1.tfvc.tfvc_client.TfvcClient') - def get_uPack_api_client(self): - """get_uPack_api_client. + def get_upack_api_client(self): + """get_upack_api_client. Gets the 5.1 version of the UPackApiClient - :rtype: :class:` ` + :rtype: :class:` ` """ - return self._connection.get_client('azure.devops.v5_1.uPack_api.uPack_api_client.UPackApiClient') + return self._connection.get_client('azure.devops.v5_1.upack_api.upack_api_client.UPackApiClient') - def get_uPack_packaging_client(self): - """get_uPack_packaging_client. + def get_upack_packaging_client(self): + """get_upack_packaging_client. Gets the 5.1 version of the UPackPackagingClient - :rtype: :class:` ` + :rtype: :class:` ` """ - return self._connection.get_client('azure.devops.v5_1.uPack_packaging.uPack_packaging_client.UPackPackagingClient') + return self._connection.get_client('azure.devops.v5_1.upack_packaging.upack_packaging_client.UPackPackagingClient') def get_wiki_client(self): """get_wiki_client. @@ -245,13 +336,6 @@ def get_work_item_tracking_client(self): """ return self._connection.get_client('azure.devops.v5_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') - def get_work_item_tracking_client(self): - """get_work_item_tracking_client. - Gets the 5.1 version of the WorkItemTrackingClient - :rtype: :class:` ` - """ - return self._connection.get_client('azure.devops.v5_1.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') - def get_work_item_tracking_comments_client(self): """get_work_item_tracking_comments_client. Gets the 5.1 version of the WorkItemTrackingCommentsClient @@ -259,6 +343,20 @@ def get_work_item_tracking_comments_client(self): """ return self._connection.get_client('azure.devops.v5_1.work_item_tracking_comments.work_item_tracking_comments_client.WorkItemTrackingCommentsClient') + def get_work_item_tracking_process_client(self): + """get_work_item_tracking_process_client. + Gets the 5.1 version of the WorkItemTrackingProcessClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.work_item_tracking_process.work_item_tracking_process_client.WorkItemTrackingProcessClient') + + def get_work_item_tracking_process_definitions_client(self): + """get_work_item_tracking_process_definitions_client. + Gets the 5.1 version of the WorkItemTrackingProcessDefinitionsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.work_item_tracking_process_definitions.work_item_tracking_process_definitions_client.WorkItemTrackingProcessDefinitionsClient') + def get_work_item_tracking_process_template_client(self): """get_work_item_tracking_process_template_client. Gets the 5.1 version of the WorkItemTrackingProcessTemplateClient diff --git a/azure-devops/azure/devops/v5_1/cloud_load_test/models.py b/azure-devops/azure/devops/v5_1/cloud_load_test/models.py index 77f3cf5c..eb1d46bd 100644 --- a/azure-devops/azure/devops/v5_1/cloud_load_test/models.py +++ b/azure-devops/azure/devops/v5_1/cloud_load_test/models.py @@ -21,9 +21,9 @@ class AgentGroup(Model): :param group_name: :type group_name: str :param machine_access_data: - :type machine_access_data: list of :class:`AgentGroupAccessData ` + :type machine_access_data: list of :class:`AgentGroupAccessData ` :param machine_configuration: - :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` + :type machine_configuration: :class:`WebApiUserLoadTestMachineInput ` :param tenant_id: :type tenant_id: str """ @@ -267,7 +267,7 @@ class CounterInstanceSamples(Model): :param next_refresh_time: :type next_refresh_time: datetime :param values: - :type values: list of :class:`CounterSample ` + :type values: list of :class:`CounterSample ` """ _attribute_map = { @@ -371,7 +371,7 @@ class CounterSamplesResult(Model): :param total_samples_count: :type total_samples_count: int :param values: - :type values: list of :class:`CounterInstanceSamples ` + :type values: list of :class:`CounterInstanceSamples ` """ _attribute_map = { @@ -511,13 +511,13 @@ class LoadTestDefinition(Model): :param agent_count: :type agent_count: int :param browser_mixs: - :type browser_mixs: list of :class:`BrowserMix ` + :type browser_mixs: list of :class:`BrowserMix ` :param core_count: :type core_count: int :param cores_per_agent: :type cores_per_agent: int :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_pattern_name: :type load_pattern_name: str :param load_test_name: @@ -573,7 +573,7 @@ class LoadTestErrors(Model): :param occurrences: :type occurrences: int :param types: - :type types: list of :class:`object ` + :type types: list of :class:`object ` :param url: :type url: str """ @@ -639,7 +639,7 @@ class OverridableRunSettings(Model): :param load_generator_machines_type: :type load_generator_machines_type: object :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` """ _attribute_map = { @@ -663,7 +663,7 @@ class PageSummary(Model): :param percentage_pages_meeting_goal: :type percentage_pages_meeting_goal: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -703,7 +703,7 @@ class RequestSummary(Model): :param passed_requests: :type passed_requests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param requests_per_sec: :type requests_per_sec: float :param request_url: @@ -791,7 +791,7 @@ class SubType(Model): :param count: :type count: int :param error_detail_list: - :type error_detail_list: list of :class:`ErrorDetails ` + :type error_detail_list: list of :class:`ErrorDetails ` :param occurrences: :type occurrences: int :param sub_type_name: @@ -841,13 +841,13 @@ class TenantDetails(Model): """TenantDetails. :param access_details: - :type access_details: list of :class:`AgentGroupAccessData ` + :type access_details: list of :class:`AgentGroupAccessData ` :param id: :type id: str :param static_machines: - :type static_machines: list of :class:`WebApiTestMachine ` + :type static_machines: list of :class:`WebApiTestMachine ` :param user_load_agent_input: - :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` + :type user_load_agent_input: :class:`WebApiUserLoadTestMachineInput ` :param user_load_agent_resources_uri: :type user_load_agent_resources_uri: str :param valid_geo_locations: @@ -877,7 +877,7 @@ class TestDefinitionBasic(Model): """TestDefinitionBasic. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -921,7 +921,7 @@ class TestDrop(Model): """TestDrop. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_date: :type created_date: datetime :param drop_type: @@ -929,7 +929,7 @@ class TestDrop(Model): :param id: :type id: str :param load_test_definition: - :type load_test_definition: :class:`LoadTestDefinition ` + :type load_test_definition: :class:`LoadTestDefinition ` :param test_run_id: :type test_run_id: str """ @@ -979,9 +979,9 @@ class TestResults(Model): :param cloud_load_test_solution_url: :type cloud_load_test_solution_url: str :param counter_groups: - :type counter_groups: list of :class:`CounterGroup ` + :type counter_groups: list of :class:`CounterGroup ` :param diagnostics: - :type diagnostics: :class:`Diagnostics ` + :type diagnostics: :class:`Diagnostics ` :param results_url: :type results_url: str """ @@ -1005,23 +1005,23 @@ class TestResultsSummary(Model): """TestResultsSummary. :param overall_page_summary: - :type overall_page_summary: :class:`PageSummary ` + :type overall_page_summary: :class:`PageSummary ` :param overall_request_summary: - :type overall_request_summary: :class:`RequestSummary ` + :type overall_request_summary: :class:`RequestSummary ` :param overall_scenario_summary: - :type overall_scenario_summary: :class:`ScenarioSummary ` + :type overall_scenario_summary: :class:`ScenarioSummary ` :param overall_test_summary: - :type overall_test_summary: :class:`TestSummary ` + :type overall_test_summary: :class:`TestSummary ` :param overall_transaction_summary: - :type overall_transaction_summary: :class:`TransactionSummary ` + :type overall_transaction_summary: :class:`TransactionSummary ` :param top_slow_pages: - :type top_slow_pages: list of :class:`PageSummary ` + :type top_slow_pages: list of :class:`PageSummary ` :param top_slow_requests: - :type top_slow_requests: list of :class:`RequestSummary ` + :type top_slow_requests: list of :class:`RequestSummary ` :param top_slow_tests: - :type top_slow_tests: list of :class:`TestSummary ` + :type top_slow_tests: list of :class:`TestSummary ` :param top_slow_transactions: - :type top_slow_transactions: list of :class:`TransactionSummary ` + :type top_slow_transactions: list of :class:`TransactionSummary ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class TestRunBasic(Model): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1107,7 +1107,7 @@ class TestRunBasic(Model): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1173,7 +1173,7 @@ class TestRunCounterInstance(Model): :param part_of_counter_groups: :type part_of_counter_groups: list of str :param summary_data: - :type summary_data: :class:`WebInstanceSummaryData ` + :type summary_data: :class:`WebInstanceSummaryData ` :param unique_name: :type unique_name: str """ @@ -1287,7 +1287,7 @@ class TestSummary(Model): :param passed_tests: :type passed_tests: int :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1325,7 +1325,7 @@ class TransactionSummary(Model): :param average_transaction_time: :type average_transaction_time: float :param percentile_data: - :type percentile_data: list of :class:`SummaryPercentileData ` + :type percentile_data: list of :class:`SummaryPercentileData ` :param scenario_name: :type scenario_name: str :param test_name: @@ -1365,7 +1365,7 @@ class WebApiLoadTestMachineInput(Model): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType """ @@ -1433,7 +1433,7 @@ class WebApiUserLoadTestMachineInput(WebApiLoadTestMachineInput): :param machine_type: :type machine_type: object :param setup_configuration: - :type setup_configuration: :class:`WebApiSetupParamaters ` + :type setup_configuration: :class:`WebApiSetupParamaters ` :param supported_run_types: :type supported_run_types: list of TestRunType :param agent_group_name: @@ -1530,7 +1530,7 @@ class TestDefinition(TestDefinitionBasic): """TestDefinition. :param access_data: - :type access_data: :class:`DropAccessData ` + :type access_data: :class:`DropAccessData ` :param created_by: :type created_by: IdentityRef :param created_date: @@ -1548,15 +1548,15 @@ class TestDefinition(TestDefinitionBasic): :param description: :type description: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_definition_source: :type load_test_definition_source: str :param run_settings: - :type run_settings: :class:`LoadTestRunSettings ` + :type run_settings: :class:`LoadTestRunSettings ` :param static_agent_run_settings: - :type static_agent_run_settings: :class:`StaticAgentRunSetting ` + :type static_agent_run_settings: :class:`StaticAgentRunSetting ` :param test_details: - :type test_details: :class:`LoadTest ` + :type test_details: :class:`LoadTest ` """ _attribute_map = { @@ -1602,7 +1602,7 @@ class TestRun(TestRunBasic): :param id: :type id: str :param load_generation_geo_locations: - :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` + :type load_generation_geo_locations: list of :class:`LoadGenerationGeoLocation ` :param load_test_file_name: :type load_test_file_name: str :param name: @@ -1612,7 +1612,7 @@ class TestRun(TestRunBasic): :param run_source: :type run_source: str :param run_specific_details: - :type run_specific_details: :class:`LoadTestRunDetails ` + :type run_specific_details: :class:`LoadTestRunDetails ` :param run_type: :type run_type: object :param state: @@ -1620,7 +1620,7 @@ class TestRun(TestRunBasic): :param url: :type url: str :param abort_message: - :type abort_message: :class:`TestRunAbortMessage ` + :type abort_message: :class:`TestRunAbortMessage ` :param aut_initialization_error: :type aut_initialization_error: bool :param chargeable: @@ -1650,11 +1650,11 @@ class TestRun(TestRunBasic): :param sub_state: :type sub_state: object :param supersede_run_settings: - :type supersede_run_settings: :class:`OverridableRunSettings ` + :type supersede_run_settings: :class:`OverridableRunSettings ` :param test_drop: - :type test_drop: :class:`TestDropRef ` + :type test_drop: :class:`TestDropRef ` :param test_settings: - :type test_settings: :class:`TestSettings ` + :type test_settings: :class:`TestSettings ` :param warm_up_started_date: :type warm_up_started_date: datetime :param web_result_url: diff --git a/azure-devops/azure/devops/v5_1/contributions/models.py b/azure-devops/azure/devops/v5_1/contributions/models.py index 78be5e8e..9af0b215 100644 --- a/azure-devops/azure/devops/v5_1/contributions/models.py +++ b/azure-devops/azure/devops/v5_1/contributions/models.py @@ -19,7 +19,7 @@ class ClientContribution(Model): :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) :type targets: list of str :param type: Id of the Contribution Type @@ -51,7 +51,7 @@ class ClientContributionNode(Model): :param children: List of ids for contributions which are children to the current contribution. :type children: list of str :param contribution: Contribution associated with this node. - :type contribution: :class:`ClientContribution ` + :type contribution: :class:`ClientContribution ` :param parents: List of ids for contributions which are parents to the current contribution. :type parents: list of str """ @@ -133,7 +133,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -163,7 +163,7 @@ class ContributionNodeQuery(Model): :param contribution_ids: The contribution ids of the nodes to find. :type contribution_ids: list of str :param data_provider_context: Contextual information that can be leveraged by contribution constraints - :type data_provider_context: :class:`DataProviderContext ` + :type data_provider_context: :class:`DataProviderContext ` :param include_provider_details: Indicator if contribution provider details should be included in the result. :type include_provider_details: bool :param query_options: Query options tpo be used when fetching ContributionNodes @@ -310,7 +310,7 @@ class DataProviderQuery(Model): """DataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str """ @@ -336,7 +336,7 @@ class DataProviderResult(Model): :param exceptions: Set of exceptions that occurred resolving the data providers. :type exceptions: dict :param resolved_providers: List of data providers resolved in the data-provider query - :type resolved_providers: list of :class:`ResolvedDataProvider ` + :type resolved_providers: list of :class:`ResolvedDataProvider ` :param scope_name: Scope name applied to this data provider result. :type scope_name: str :param scope_value: Scope value applied to this data provider result. @@ -386,19 +386,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -450,7 +450,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -468,21 +468,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -532,21 +532,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -560,11 +560,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -623,7 +623,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -713,7 +713,7 @@ class ClientDataProviderQuery(DataProviderQuery): """ClientDataProviderQuery. :param context: Contextual information to pass to the data providers - :type context: :class:`DataProviderContext ` + :type context: :class:`DataProviderContext ` :param contribution_ids: The contribution ids of the data providers to resolve :type contribution_ids: list of str :param query_service_instance_type: The Id of the service instance type that should be communicated with in order to resolve the data providers from the client given the query values. @@ -741,11 +741,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) diff --git a/azure-devops/azure/devops/v5_1/core/models.py b/azure-devops/azure/devops/v5_1/core/models.py index 254d9f1b..63ade857 100644 --- a/azure-devops/azure/devops/v5_1/core/models.py +++ b/azure-devops/azure/devops/v5_1/core/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -57,7 +57,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -219,7 +219,7 @@ class ProjectInfo(Model): :param name: The name of the project. :type name: str :param properties: A set of name-value pairs storing additional property data related to the project. - :type properties: list of :class:`ProjectProperty ` + :type properties: list of :class:`ProjectProperty ` :param revision: The current revision of the project. :type revision: long :param state: The current state of the project. @@ -285,7 +285,7 @@ class Proxy(Model): """Proxy. :param authorization: - :type authorization: :class:`ProxyAuthorization ` + :type authorization: :class:`ProxyAuthorization ` :param description: This is a description string :type description: str :param friendly_name: The friendly name of the server @@ -329,9 +329,9 @@ class ProxyAuthorization(Model): :param client_id: Gets or sets the client identifier for this proxy. :type client_id: str :param identity: Gets or sets the user identity to authorize for on-prem. - :type identity: :class:`str ` + :type identity: :class:`str ` :param public_key: Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted. - :type public_key: :class:`PublicKey ` + :type public_key: :class:`PublicKey ` """ _attribute_map = { @@ -389,7 +389,7 @@ class TeamMember(Model): """TeamMember. :param identity: - :type identity: :class:`IdentityRef ` + :type identity: :class:`IdentityRef ` :param is_team_admin: :type is_team_admin: bool """ @@ -533,7 +533,7 @@ class Process(ProcessReference): :param url: :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -587,11 +587,11 @@ class TeamProject(TeamProjectReference): :param visibility: Project visibility. :type visibility: object :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param capabilities: Set of capabilities this project has (such as process template & version control). :type capabilities: dict :param default_team: The shallow ref to the default team. - :type default_team: :class:`WebApiTeamRef ` + :type default_team: :class:`WebApiTeamRef ` """ _attribute_map = { @@ -627,7 +627,7 @@ class TeamProjectCollection(TeamProjectCollectionReference): :param url: Collection REST Url. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Project collection description. :type description: str :param process_customization_type: Process customzation type on this collection. It can be Xml or Inherited. @@ -660,7 +660,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param url: :type url: str :param authenticated_by: The user who did the OAuth authentication to created this service - :type authenticated_by: :class:`IdentityRef ` + :type authenticated_by: :class:`IdentityRef ` :param description: Extra description on the service. :type description: str :param friendly_name: Friendly Name of service connection @@ -670,7 +670,7 @@ class WebApiConnectedService(WebApiConnectedServiceRef): :param kind: The kind of service. :type kind: str :param project: The project associated with this service - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param service_uri: Optional uri to connect directly to the service such as https://windows.azure.com :type service_uri: str """ @@ -705,7 +705,7 @@ class WebApiConnectedServiceDetails(WebApiConnectedServiceRef): :param url: :type url: str :param connected_service_meta_data: Meta data for service connection - :type connected_service_meta_data: :class:`WebApiConnectedService ` + :type connected_service_meta_data: :class:`WebApiConnectedService ` :param credentials_xml: Credential info :type credentials_xml: str :param end_point: Optional uri to connect directly to the service such as https://windows.azure.com diff --git a/azure-devops/azure/devops/v5_1/dashboard/models.py b/azure-devops/azure/devops/v5_1/dashboard/models.py index 5536443e..f430211a 100644 --- a/azure-devops/azure/devops/v5_1/dashboard/models.py +++ b/azure-devops/azure/devops/v5_1/dashboard/models.py @@ -13,7 +13,7 @@ class Dashboard(Model): """Dashboard. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -31,7 +31,7 @@ class Dashboard(Model): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -65,9 +65,9 @@ class DashboardGroup(Model): """DashboardGroup. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dashboard_entries: A list of Dashboards held by the Dashboard Group - :type dashboard_entries: list of :class:`DashboardGroupEntry ` + :type dashboard_entries: list of :class:`DashboardGroupEntry ` :param permission: Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125. :type permission: object :param team_dashboard_permission: A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved. @@ -97,7 +97,7 @@ class DashboardGroupEntry(Dashboard): """DashboardGroupEntry. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -115,7 +115,7 @@ class DashboardGroupEntry(Dashboard): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -139,7 +139,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): """DashboardGroupEntryResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -157,7 +157,7 @@ class DashboardGroupEntryResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -181,7 +181,7 @@ class DashboardResponse(DashboardGroupEntry): """DashboardResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Description of the dashboard. :type description: str :param eTag: Server defined version tracking value, used for edit collision detection. @@ -199,7 +199,7 @@ class DashboardResponse(DashboardGroupEntry): :param url: :type url: str :param widgets: The set of Widgets on the dashboard. - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -315,9 +315,9 @@ class Widget(Model): """Widget. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -331,7 +331,7 @@ class Widget(Model): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -341,19 +341,19 @@ class Widget(Model): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -415,7 +415,7 @@ class WidgetMetadata(Model): """WidgetMetadata. :param allowed_sizes: Sizes supported by the Widget. - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param analytics_service_required: Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available. :type analytics_service_required: bool :param catalog_icon_url: Resource for an icon in the widget catalog. @@ -443,7 +443,7 @@ class WidgetMetadata(Model): :param is_visible_from_catalog: Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog. :type is_visible_from_catalog: bool :param lightbox_options: Opt-in properties for customizing widget presentation in a "lightbox" dialog. - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: Resource for a loading placeholder image on dashboard :type loading_image_url: str :param name: User facing name of the widget type. Each widget must use a unique value here. @@ -513,7 +513,7 @@ class WidgetMetadataResponse(Model): :param uri: :type uri: str :param widget_metadata: - :type widget_metadata: :class:`WidgetMetadata ` + :type widget_metadata: :class:`WidgetMetadata ` """ _attribute_map = { @@ -551,9 +551,9 @@ class WidgetResponse(Widget): """WidgetResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_sizes: Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget - :type allowed_sizes: list of :class:`WidgetSize ` + :type allowed_sizes: list of :class:`WidgetSize ` :param are_settings_blocked_for_user: Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user. :type are_settings_blocked_for_user: bool :param artifact_id: Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact. @@ -567,7 +567,7 @@ class WidgetResponse(Widget): :param contribution_id: The id of the underlying contribution defining the supplied Widget Configuration. :type contribution_id: str :param dashboard: Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs - :type dashboard: :class:`Dashboard ` + :type dashboard: :class:`Dashboard ` :param eTag: :type eTag: str :param id: @@ -577,19 +577,19 @@ class WidgetResponse(Widget): :param is_name_configurable: :type is_name_configurable: bool :param lightbox_options: - :type lightbox_options: :class:`LightboxOptions ` + :type lightbox_options: :class:`LightboxOptions ` :param loading_image_url: :type loading_image_url: str :param name: :type name: str :param position: - :type position: :class:`WidgetPosition ` + :type position: :class:`WidgetPosition ` :param settings: :type settings: str :param settings_version: - :type settings_version: :class:`SemanticVersion ` + :type settings_version: :class:`SemanticVersion ` :param size: - :type size: :class:`WidgetSize ` + :type size: :class:`WidgetSize ` :param type_id: :type type_id: str :param url: @@ -651,7 +651,7 @@ class WidgetsVersionedList(Model): :param eTag: :type eTag: list of str :param widgets: - :type widgets: list of :class:`Widget ` + :type widgets: list of :class:`Widget ` """ _attribute_map = { @@ -669,11 +669,11 @@ class WidgetTypesResponse(Model): """WidgetTypesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param uri: :type uri: str :param widget_types: - :type widget_types: list of :class:`WidgetMetadata ` + :type widget_types: list of :class:`WidgetMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/extension_management/models.py b/azure-devops/azure/devops/v5_1/extension_management/models.py index 81768c55..f9c2bed8 100644 --- a/azure-devops/azure/devops/v5_1/extension_management/models.py +++ b/azure-devops/azure/devops/v5_1/extension_management/models.py @@ -19,7 +19,7 @@ class AcquisitionOperation(Model): :param reason: Optional reason to justify current state. Typically used with Disallow state. :type reason: str :param reasons: List of reasons indicating why the operation is not allowed. - :type reasons: list of :class:`AcquisitionOperationDisallowReason ` + :type reasons: list of :class:`AcquisitionOperationDisallowReason ` """ _attribute_map = { @@ -61,13 +61,13 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param target: The target that this options refer to :type target: str """ @@ -125,7 +125,7 @@ class ContributionConstraint(Model): :param name: Name of the IContributionFilter plugin :type name: str :param properties: Properties that are fed to the contribution filter class - :type properties: :class:`object ` + :type properties: :class:`object ` :param relationships: Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied. :type relationships: list of str """ @@ -222,7 +222,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int """ @@ -296,7 +296,7 @@ class ExtensionDataCollection(Model): :param collection_name: The name of the collection :type collection_name: str :param documents: A list of documents belonging to the collection - :type documents: list of :class:`object ` + :type documents: list of :class:`object ` :param scope_type: The type of the collection's scope, such as Default or User :type scope_type: str :param scope_value: The value of the collection's scope, such as Current or Me @@ -322,7 +322,7 @@ class ExtensionDataCollectionQuery(Model): """ExtensionDataCollectionQuery. :param collections: A list of collections to query - :type collections: list of :class:`ExtensionDataCollection ` + :type collections: list of :class:`ExtensionDataCollection ` """ _attribute_map = { @@ -354,19 +354,19 @@ class ExtensionEventCallbackCollection(Model): """ExtensionEventCallbackCollection. :param post_disable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension disable has occurred. - :type post_disable: :class:`ExtensionEventCallback ` + :type post_disable: :class:`ExtensionEventCallback ` :param post_enable: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension enable has occurred. - :type post_enable: :class:`ExtensionEventCallback ` + :type post_enable: :class:`ExtensionEventCallback ` :param post_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install has completed. - :type post_install: :class:`ExtensionEventCallback ` + :type post_install: :class:`ExtensionEventCallback ` :param post_uninstall: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension uninstall has occurred. - :type post_uninstall: :class:`ExtensionEventCallback ` + :type post_uninstall: :class:`ExtensionEventCallback ` :param post_update: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension update has occurred. - :type post_update: :class:`ExtensionEventCallback ` + :type post_update: :class:`ExtensionEventCallback ` :param pre_install: Optional. Defines an endpoint that gets called via a POST reqeust to notify that an extension install is about to occur. Response indicates whether to proceed or abort. - :type pre_install: :class:`ExtensionEventCallback ` + :type pre_install: :class:`ExtensionEventCallback ` :param version_check: For multi-version extensions, defines an endpoint that gets called via an OPTIONS request to determine the particular version of the extension to be used - :type version_check: :class:`ExtensionEventCallback ` + :type version_check: :class:`ExtensionEventCallback ` """ _attribute_map = { @@ -438,7 +438,7 @@ class ExtensionLicensing(Model): """ExtensionLicensing. :param overrides: A list of contributions which deviate from the default licensing behavior - :type overrides: list of :class:`LicensingOverride ` + :type overrides: list of :class:`LicensingOverride ` """ _attribute_map = { @@ -456,21 +456,21 @@ class ExtensionManifest(Model): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -542,7 +542,7 @@ class ExtensionRequest(Model): :param request_date: Date at which the request was made :type request_date: datetime :param requested_by: Represents the user who made the request - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_message: Optional message supplied by the requester justifying the request :type request_message: str :param request_state: Represents the state of the request @@ -550,7 +550,7 @@ class ExtensionRequest(Model): :param resolve_date: Date at which the request was resolved :type resolve_date: datetime :param resolved_by: Represents the user who resolved the request - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` """ _attribute_map = { @@ -628,11 +628,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -678,7 +678,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -706,7 +706,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -788,21 +788,21 @@ class InstalledExtension(ExtensionManifest): :param base_uri: Uri used as base for other relative uri's defined in extension :type base_uri: str :param constraints: List of shared constraints defined by this extension - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param contributions: List of contributions made by this extension - :type contributions: list of :class:`Contribution ` + :type contributions: list of :class:`Contribution ` :param contribution_types: List of contribution types defined by this extension - :type contribution_types: list of :class:`ContributionType ` + :type contribution_types: list of :class:`ContributionType ` :param demands: List of explicit demands required by this extension :type demands: list of str :param event_callbacks: Collection of endpoints that get called when particular extension events occur - :type event_callbacks: :class:`ExtensionEventCallbackCollection ` + :type event_callbacks: :class:`ExtensionEventCallbackCollection ` :param fallback_base_uri: Secondary location that can be used as base for other relative uri's defined in extension :type fallback_base_uri: str :param language: Language Culture Name set by the Gallery :type language: str :param licensing: How this extension behaves with respect to licensing - :type licensing: :class:`ExtensionLicensing ` + :type licensing: :class:`ExtensionLicensing ` :param manifest_version: Version of the extension manifest format/content :type manifest_version: float :param restricted_to: Default user claims applied to all contributions (except the ones which have been speficied restrictedTo explicitly) to control the visibility of a contribution. @@ -816,11 +816,11 @@ class InstalledExtension(ExtensionManifest): :param extension_name: The display name of the extension. :type extension_name: str :param files: This is the set of files available from the extension. - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: Extension flags relevant to contribution consumers :type flags: object :param install_state: Information about this particular installation of the extension - :type install_state: :class:`InstalledExtensionState ` + :type install_state: :class:`InstalledExtensionState ` :param last_published: This represents the date/time the extensions was last updated in the gallery. This doesnt mean this version was updated the value represents changes to any and all versions of the extension. :type last_published: datetime :param publisher_id: Unique id of the publisher of this extension @@ -879,7 +879,7 @@ class InstalledExtensionQuery(Model): :param asset_types: :type asset_types: list of str :param monikers: - :type monikers: list of :class:`ExtensionIdentifier ` + :type monikers: list of :class:`ExtensionIdentifier ` """ _attribute_map = { @@ -899,7 +899,7 @@ class InstalledExtensionState(Model): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime """ @@ -977,7 +977,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -985,19 +985,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1091,7 +1091,7 @@ class RequestedExtension(Model): :param extension_name: The unique name of the extension :type extension_name: str :param extension_requests: A list of each request for the extension - :type extension_requests: list of :class:`ExtensionRequest ` + :type extension_requests: list of :class:`ExtensionRequest ` :param publisher_display_name: DisplayName of the publisher that owns the extension being published. :type publisher_display_name: str :param publisher_name: Represents the Publisher of the requested extension @@ -1123,7 +1123,7 @@ class UserExtensionPolicy(Model): :param display_name: User display name that this policy refers to :type display_name: str :param permissions: The extension policy applied to the user - :type permissions: :class:`ExtensionPolicy ` + :type permissions: :class:`ExtensionPolicy ` :param user_id: User id that this policy refers to :type user_id: str """ @@ -1151,11 +1151,11 @@ class Contribution(ContributionBase): :param visible_to: VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too. Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this. :type visible_to: list of str :param constraints: List of constraints (filters) that should be applied to the availability of this contribution - :type constraints: list of :class:`ContributionConstraint ` + :type constraints: list of :class:`ContributionConstraint ` :param includes: Includes is a set of contributions that should have this contribution included in their targets list. :type includes: list of str :param properties: Properties/attributes of this contribution - :type properties: :class:`object ` + :type properties: :class:`object ` :param restricted_to: List of demanded claims in order for the user to see this contribution (like anonymous, public, member...). :type restricted_to: list of str :param targets: The ids of the contribution(s) that this contribution targets. (parent contributions) @@ -1192,7 +1192,7 @@ class ExtensionState(InstalledExtensionState): :param flags: States of an installed extension :type flags: object :param installation_issues: List of installation issues - :type installation_issues: list of :class:`InstalledExtensionStateIssue ` + :type installation_issues: list of :class:`InstalledExtensionStateIssue ` :param last_updated: The time at which this installation was last updated :type last_updated: datetime :param extension_name: diff --git a/azure-devops/azure/devops/v5_1/feature_management/models.py b/azure-devops/azure/devops/v5_1/feature_management/models.py index 49b985b4..6241698f 100644 --- a/azure-devops/azure/devops/v5_1/feature_management/models.py +++ b/azure-devops/azure/devops/v5_1/feature_management/models.py @@ -13,17 +13,17 @@ class ContributedFeature(Model): """ContributedFeature. :param _links: Named links describing the feature - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_state: If true, the feature is enabled unless overridden at some scope :type default_state: bool :param default_value_rules: Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type default_value_rules: list of :class:`ContributedFeatureValueRule ` + :type default_value_rules: list of :class:`ContributedFeatureValueRule ` :param description: The description of the feature :type description: str :param feature_properties: Extra properties for the feature :type feature_properties: dict :param feature_state_changed_listeners: Handler for listening to setter calls on feature value. These listeners are only invoked after a successful set has occured - :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` + :type feature_state_changed_listeners: list of :class:`ContributedFeatureListener ` :param id: The full contribution id of the feature :type id: str :param include_as_claim: If this is set to true, then the id for this feature will be added to the list of claims for the request. @@ -33,9 +33,9 @@ class ContributedFeature(Model): :param order: Suggested order to display feature in. :type order: int :param override_rules: Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined) - :type override_rules: list of :class:`ContributedFeatureValueRule ` + :type override_rules: list of :class:`ContributedFeatureValueRule ` :param scopes: The scopes/levels at which settings can set the enabled/disabled state of this feature - :type scopes: list of :class:`ContributedFeatureSettingScope ` + :type scopes: list of :class:`ContributedFeatureSettingScope ` :param service_instance_type: The service instance id of the service that owns this feature :type service_instance_type: str :param tags: Tags associated with the feature. @@ -145,7 +145,7 @@ class ContributedFeatureState(Model): :param reason: Reason that the state was set (by a plugin/rule). :type reason: str :param scope: The scope at which this state applies - :type scope: :class:`ContributedFeatureSettingScope ` + :type scope: :class:`ContributedFeatureSettingScope ` :param state: The current state of this feature :type state: object """ diff --git a/azure-devops/azure/devops/v5_1/feed/models.py b/azure-devops/azure/devops/v5_1/feed/models.py index ca3c8e47..96668519 100644 --- a/azure-devops/azure/devops/v5_1/feed/models.py +++ b/azure-devops/azure/devops/v5_1/feed/models.py @@ -13,7 +13,7 @@ class FeedBatchData(Model): """FeedBatchData. :param data: - :type data: :class:`FeedBatchOperationData ` + :type data: :class:`FeedBatchOperationData ` :param operation: :type operation: object """ @@ -47,7 +47,7 @@ class FeedChange(Model): :param change_type: The type of operation. :type change_type: object :param feed: The state of the feed after a after a create, update, or delete operation completed. - :type feed: :class:`Feed ` + :type feed: :class:`Feed ` :param feed_continuation_token: A token that identifies the next change in the log of changes. :type feed_continuation_token: long :param latest_package_continuation_token: A token that identifies the latest package change for this feed. This can be used to quickly determine if there have been any changes to packages in a specific feed. @@ -73,11 +73,11 @@ class FeedChangesResponse(Model): """FeedChangesResponse. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param count: The number of changes in this set. :type count: int :param feed_changes: A container that encapsulates the state of the feed after a create, update, or delete. - :type feed_changes: list of :class:`FeedChange ` + :type feed_changes: list of :class:`FeedChange ` :param next_feed_continuation_token: When iterating through the log of changes this value indicates the value that should be used for the next continuation token. :type next_feed_continuation_token: long """ @@ -117,9 +117,9 @@ class FeedCore(Model): :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` :param view: Definition of the view. - :type view: :class:`FeedView ` + :type view: :class:`FeedView ` :param view_id: View Id. :type view_id: str :param view_name: View name. @@ -163,7 +163,7 @@ class FeedPermission(Model): :param display_name: Display name for the identity. :type display_name: str :param identity_descriptor: Identity associated with this role. - :type identity_descriptor: :class:`str ` + :type identity_descriptor: :class:`str ` :param identity_id: Id of the identity associated with this role. :type identity_id: str :param role: The role for this identity on a feed. @@ -229,7 +229,7 @@ class FeedUpdate(Model): :param upstream_enabled: OBSOLETE: If set, the feed can proxy packages from an upstream feed :type upstream_enabled: bool :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` """ _attribute_map = { @@ -261,7 +261,7 @@ class FeedView(Model): """FeedView. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Id of the view. :type id: str :param name: Name of the view. @@ -297,7 +297,7 @@ class GlobalPermission(Model): """GlobalPermission. :param identity_descriptor: Identity of the user with the provided Role. - :type identity_descriptor: :class:`str ` + :type identity_descriptor: :class:`str ` :param role: Role associated with the Identity. :type role: object """ @@ -367,7 +367,7 @@ class MinimalPackageVersion(Model): :param version: Display version. :type version: str :param views: List of views containing this package version. - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` """ _attribute_map = { @@ -405,7 +405,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Id of the package. :type id: str :param is_cached: Used for legacy scenarios and may be removed in future versions. @@ -421,7 +421,7 @@ class Package(Model): :param url: Url for this package. :type url: str :param versions: All versions for this package within its feed. - :type versions: list of :class:`MinimalPackageVersion ` + :type versions: list of :class:`MinimalPackageVersion ` """ _attribute_map = { @@ -453,9 +453,9 @@ class PackageChange(Model): """PackageChange. :param package: Package that was changed. - :type package: :class:`Package ` + :type package: :class:`Package ` :param package_version_change: Change that was performed on a package version. - :type package_version_change: :class:`PackageVersionChange ` + :type package_version_change: :class:`PackageVersionChange ` """ _attribute_map = { @@ -473,13 +473,13 @@ class PackageChangesResponse(Model): """PackageChangesResponse. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param count: Number of changes in this batch. :type count: int :param next_package_continuation_token: Token that should be used in future calls for this feed to retrieve new changes. :type next_package_continuation_token: long :param package_changes: List of changes. - :type package_changes: list of :class:`PackageChange ` + :type package_changes: list of :class:`PackageChange ` """ _attribute_map = { @@ -525,11 +525,11 @@ class PackageFile(Model): """PackageFile. :param children: Hierarchical representation of files. - :type children: list of :class:`PackageFile ` + :type children: list of :class:`PackageFile ` :param name: File name. :type name: str :param protocol_metadata: Extended data unique to a specific package type. - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` """ _attribute_map = { @@ -615,25 +615,25 @@ class PackageVersion(MinimalPackageVersion): :param version: Display version. :type version: str :param views: List of views containing this package version. - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` :param _links: Related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Package version author. :type author: str :param deleted_date: UTC date that this package version was deleted. :type deleted_date: datetime :param dependencies: List of dependencies for this package version. - :type dependencies: list of :class:`PackageDependency ` + :type dependencies: list of :class:`PackageDependency ` :param description: Package version description. :type description: str :param files: Files associated with this package version, only relevant for multi-file package types. - :type files: list of :class:`PackageFile ` + :type files: list of :class:`PackageFile ` :param other_versions: Other versions of this package. - :type other_versions: list of :class:`MinimalPackageVersion ` + :type other_versions: list of :class:`MinimalPackageVersion ` :param protocol_metadata: Extended data specific to a package type. - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` :param source_chain: List of upstream sources through which a package version moved to land in this feed. - :type source_chain: list of :class:`UpstreamSource ` + :type source_chain: list of :class:`UpstreamSource ` :param summary: Package version summary. :type summary: str :param tags: Package version tags. @@ -693,7 +693,7 @@ class PackageVersionChange(Model): :param continuation_token: Token marker for this change, allowing the caller to send this value back to the service and receive changes beyond this one. :type continuation_token: long :param package_version: Package version that was changed. - :type package_version: :class:`PackageVersion ` + :type package_version: :class:`PackageVersion ` """ _attribute_map = { @@ -767,7 +767,7 @@ class PackageVersionProvenance(Model): :param package_version_id: Id of the package version (GUID Id, not name). :type package_version_id: str :param provenance: Provenance information for this package version. - :type provenance: :class:`Provenance ` + :type provenance: :class:`Provenance ` """ _attribute_map = { @@ -859,25 +859,25 @@ class RecycleBinPackageVersion(PackageVersion): :param version: Display version. :type version: str :param views: List of views containing this package version. - :type views: list of :class:`FeedView ` + :type views: list of :class:`FeedView ` :param _links: Related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Package version author. :type author: str :param deleted_date: UTC date that this package version was deleted. :type deleted_date: datetime :param dependencies: List of dependencies for this package version. - :type dependencies: list of :class:`PackageDependency ` + :type dependencies: list of :class:`PackageDependency ` :param description: Package version description. :type description: str :param files: Files associated with this package version, only relevant for multi-file package types. - :type files: list of :class:`PackageFile ` + :type files: list of :class:`PackageFile ` :param other_versions: Other versions of this package. - :type other_versions: list of :class:`MinimalPackageVersion ` + :type other_versions: list of :class:`MinimalPackageVersion ` :param protocol_metadata: Extended data specific to a package type. - :type protocol_metadata: :class:`ProtocolMetadata ` + :type protocol_metadata: :class:`ProtocolMetadata ` :param source_chain: List of upstream sources through which a package version moved to land in this feed. - :type source_chain: list of :class:`UpstreamSource ` + :type source_chain: list of :class:`UpstreamSource ` :param summary: Package version summary. :type summary: str :param tags: Package version tags. @@ -1005,15 +1005,15 @@ class Feed(FeedCore): :param upstream_enabled: OBSOLETE: This should always be true. Setting to false will override all sources in UpstreamSources. :type upstream_enabled: bool :param upstream_sources: A list of sources that this feed will fetch packages from. An empty list indicates that this feed will not search any additional sources for packages. - :type upstream_sources: list of :class:`UpstreamSource ` + :type upstream_sources: list of :class:`UpstreamSource ` :param view: Definition of the view. - :type view: :class:`FeedView ` + :type view: :class:`FeedView ` :param view_id: View Id. :type view_id: str :param view_name: View name. :type view_name: str :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param badges_enabled: If set, this feed supports generation of package badges. :type badges_enabled: bool :param default_view_id: The view that the feed administrator has indicated is the default experience for readers. @@ -1025,7 +1025,7 @@ class Feed(FeedCore): :param hide_deleted_package_versions: If set, the feed will hide all deleted/unpublished versions :type hide_deleted_package_versions: bool :param permissions: Explicit permissions for the feed. - :type permissions: list of :class:`FeedPermission ` + :type permissions: list of :class:`FeedPermission ` :param upstream_enabled_changed_date: If set, time that the UpstreamEnabled property was changed. Will be null if UpstreamEnabled was never changed after Feed creation. :type upstream_enabled_changed_date: datetime :param url: The URL of the base feed in GUID form. diff --git a/azure-devops/azure/devops/v5_1/gallery/models.py b/azure-devops/azure/devops/v5_1/gallery/models.py index eea31c18..9d809d39 100644 --- a/azure-devops/azure/devops/v5_1/gallery/models.py +++ b/azure-devops/azure/devops/v5_1/gallery/models.py @@ -37,11 +37,11 @@ class AcquisitionOptions(Model): """AcquisitionOptions. :param default_operation: Default Operation for the ItemId in this target - :type default_operation: :class:`AcquisitionOperation ` + :type default_operation: :class:`AcquisitionOperation ` :param item_id: The item id that this options refer to :type item_id: str :param operations: Operations allowed for the ItemId in this target - :type operations: list of :class:`AcquisitionOperation ` + :type operations: list of :class:`AcquisitionOperation ` :param target: The target that this options refer to :type target: str """ @@ -85,7 +85,7 @@ class AssetDetails(Model): """AssetDetails. :param answers: Gets or sets the Answers, which contains vs marketplace extension name and publisher name - :type answers: :class:`Answers ` + :type answers: :class:`Answers ` :param publisher_natural_identifier: Gets or sets the VS publisher Id :type publisher_natural_identifier: str """ @@ -125,7 +125,7 @@ class AzureRestApiRequestModel(Model): """AzureRestApiRequestModel. :param asset_details: Gets or sets the Asset details - :type asset_details: :class:`AssetDetails ` + :type asset_details: :class:`AssetDetails ` :param asset_id: Gets or sets the asset id :type asset_id: str :param asset_version: Gets or sets the asset version @@ -173,7 +173,7 @@ class CategoriesResult(Model): """CategoriesResult. :param categories: - :type categories: list of :class:`ExtensionCategory ` + :type categories: list of :class:`ExtensionCategory ` """ _attribute_map = { @@ -269,7 +269,7 @@ class ExtensionAcquisitionRequest(Model): :param operation_type: The type of operation, such as install, request, purchase :type operation_type: object :param properties: Additional properties which can be added to the request. - :type properties: :class:`object ` + :type properties: :class:`object ` :param quantity: How many licenses should be purchased :type quantity: int :param targets: A list of target guids where the item should be acquired (installed, requested, etc.), such as account id @@ -333,7 +333,7 @@ class ExtensionCategory(Model): :param language: This parameter is obsolete. Refer to LanguageTitles for langauge specific titles :type language: str :param language_titles: The list of all the titles of this category in various languages - :type language_titles: list of :class:`CategoryLanguageTitle ` + :type language_titles: list of :class:`CategoryLanguageTitle ` :param parent_category_name: This is the internal name of the parent if this is associated with a parent :type parent_category_name: str """ @@ -361,7 +361,7 @@ class ExtensionDailyStat(Model): """ExtensionDailyStat. :param counts: Stores the event counts - :type counts: :class:`EventCounts ` + :type counts: :class:`EventCounts ` :param extended_stats: Generic key/value pair to store extended statistics. Used for sending paid extension stats like Upgrade, Downgrade, Cancel trend etc. :type extended_stats: dict :param statistic_date: Timestamp of this data point @@ -389,7 +389,7 @@ class ExtensionDailyStats(Model): """ExtensionDailyStats. :param daily_stats: List of extension statistics data points - :type daily_stats: list of :class:`ExtensionDailyStat ` + :type daily_stats: list of :class:`ExtensionDailyStat ` :param extension_id: Id of the extension, this will never be sent back to the client. For internal use only. :type extension_id: str :param extension_name: Name of the extension @@ -421,7 +421,7 @@ class ExtensionDraft(Model): """ExtensionDraft. :param assets: - :type assets: list of :class:`ExtensionDraftAsset ` + :type assets: list of :class:`ExtensionDraftAsset ` :param created_date: :type created_date: datetime :param draft_state: @@ -433,7 +433,7 @@ class ExtensionDraft(Model): :param last_updated: :type last_updated: datetime :param payload: - :type payload: :class:`ExtensionPayload ` + :type payload: :class:`ExtensionPayload ` :param product: :type product: str :param publisher_name: @@ -477,7 +477,7 @@ class ExtensionDraftPatch(Model): """ExtensionDraftPatch. :param extension_data: - :type extension_data: :class:`UnpackagedExtensionData ` + :type extension_data: :class:`UnpackagedExtensionData ` :param operation: :type operation: object """ @@ -499,7 +499,7 @@ class ExtensionEvent(Model): :param id: Id which identifies each data point uniquely :type id: long :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param statistic_date: Timestamp of when the event occurred :type statistic_date: datetime :param version: Version of the extension @@ -577,11 +577,11 @@ class ExtensionFilterResult(Model): """ExtensionFilterResult. :param extensions: This is the set of appplications that matched the query filter supplied. - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param paging_token: The PagingToken is returned from a request when more records exist that match the result than were requested or could be returned. A follow-up query with this paging token can be used to retrieve more results. :type paging_token: str :param result_metadata: This is the additional optional metadata for the given result. E.g. Total count of results which is useful in case of paged results - :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` + :type result_metadata: list of :class:`ExtensionFilterResultMetadata ` """ _attribute_map = { @@ -601,7 +601,7 @@ class ExtensionFilterResultMetadata(Model): """ExtensionFilterResultMetadata. :param metadata_items: The metadata items for the category - :type metadata_items: list of :class:`MetadataItem ` + :type metadata_items: list of :class:`MetadataItem ` :param metadata_type: Defines the category of metadata items :type metadata_type: str """ @@ -643,7 +643,7 @@ class ExtensionPayload(Model): :param file_name: :type file_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param is_preview: :type is_preview: bool :param is_signed_by_microsoft: @@ -687,7 +687,7 @@ class ExtensionQuery(Model): :param asset_types: When retrieving extensions with a query; frequently the caller only needs a small subset of the assets. The caller may specify a list of asset types that should be returned if the extension contains it. All other assets will not be returned. :type asset_types: list of str :param filters: Each filter is a unique query and will have matching set of extensions returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched extensions. :type flags: object """ @@ -709,7 +709,7 @@ class ExtensionQueryResult(Model): """ExtensionQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`ExtensionFilterResult ` + :type results: list of :class:`ExtensionFilterResult ` """ _attribute_map = { @@ -779,7 +779,7 @@ class ExtensionStatisticUpdate(Model): :param publisher_name: :type publisher_name: str :param statistic: - :type statistic: :class:`ExtensionStatistic ` + :type statistic: :class:`ExtensionStatistic ` """ _attribute_map = { @@ -803,11 +803,11 @@ class ExtensionVersion(Model): :param asset_uri: :type asset_uri: str :param badges: - :type badges: list of :class:`ExtensionBadge ` + :type badges: list of :class:`ExtensionBadge ` :param fallback_asset_uri: :type fallback_asset_uri: str :param files: - :type files: list of :class:`ExtensionFile ` + :type files: list of :class:`ExtensionFile ` :param flags: :type flags: object :param last_updated: @@ -937,7 +937,7 @@ class ProductCategoriesResult(Model): """ProductCategoriesResult. :param categories: - :type categories: list of :class:`ProductCategory ` + :type categories: list of :class:`ProductCategory ` """ _attribute_map = { @@ -953,7 +953,7 @@ class ProductCategory(Model): """ProductCategory. :param children: - :type children: list of :class:`ProductCategory ` + :type children: list of :class:`ProductCategory ` :param has_children: Indicator whether this is a leaf or there are children under this category :type has_children: bool :param id: Individual Guid of the Category @@ -993,7 +993,7 @@ class PublishedExtension(Model): :param flags: :type flags: object :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param last_updated: :type last_updated: datetime :param long_description: @@ -1001,19 +1001,19 @@ class PublishedExtension(Model): :param published_date: Date on which the extension was first uploaded. :type published_date: datetime :param publisher: - :type publisher: :class:`PublisherFacts ` + :type publisher: :class:`PublisherFacts ` :param release_date: Date on which the extension first went public. :type release_date: datetime :param shared_with: - :type shared_with: list of :class:`ExtensionShare ` + :type shared_with: list of :class:`ExtensionShare ` :param short_description: :type short_description: str :param statistics: - :type statistics: list of :class:`ExtensionStatistic ` + :type statistics: list of :class:`ExtensionStatistic ` :param tags: :type tags: list of str :param versions: - :type versions: list of :class:`ExtensionVersion ` + :type versions: list of :class:`ExtensionVersion ` """ _attribute_map = { @@ -1065,7 +1065,7 @@ class PublisherBase(Model): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1141,7 +1141,7 @@ class PublisherFilterResult(Model): """PublisherFilterResult. :param publishers: This is the set of appplications that matched the query filter supplied. - :type publishers: list of :class:`Publisher ` + :type publishers: list of :class:`Publisher ` """ _attribute_map = { @@ -1157,7 +1157,7 @@ class PublisherQuery(Model): """PublisherQuery. :param filters: Each filter is a unique query and will have matching set of publishers returned from the request. Each result will have the same index in the resulting array that the filter had in the incoming query. - :type filters: list of :class:`QueryFilter ` + :type filters: list of :class:`QueryFilter ` :param flags: The Flags are used to deterine which set of information the caller would like returned for the matched publishers. :type flags: object """ @@ -1177,7 +1177,7 @@ class PublisherQueryResult(Model): """PublisherQueryResult. :param results: For each filter supplied in the query, a filter result will be returned in the query result. - :type results: list of :class:`PublisherFilterResult ` + :type results: list of :class:`PublisherFilterResult ` """ _attribute_map = { @@ -1203,7 +1203,7 @@ class QnAItem(Model): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1229,7 +1229,7 @@ class QueryFilter(Model): """QueryFilter. :param criteria: The filter values define the set of values in this query. They are applied based on the QueryFilterType. - :type criteria: list of :class:`FilterCriteria ` + :type criteria: list of :class:`FilterCriteria ` :param direction: The PagingDirection is applied to a paging token if one exists. If not the direction is ignored, and Forward from the start of the resultset is used. Direction should be left out of the request unless a paging token is used to help prevent future issues. :type direction: object :param page_number: The page number requested by the user. If not provided 1 is assumed by default. @@ -1279,9 +1279,9 @@ class Question(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param responses: List of answers in for the question / thread - :type responses: list of :class:`Response ` + :type responses: list of :class:`Response ` """ _attribute_map = { @@ -1305,7 +1305,7 @@ class QuestionsResult(Model): :param has_more_questions: Flag indicating if there are more QnA threads to be shown (for paging) :type has_more_questions: bool :param questions: List of the QnA threads - :type questions: list of :class:`Question ` + :type questions: list of :class:`Question ` """ _attribute_map = { @@ -1369,7 +1369,7 @@ class Response(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` """ _attribute_map = { @@ -1389,7 +1389,7 @@ class Review(Model): """Review. :param admin_reply: Admin Reply, if any, for this review - :type admin_reply: :class:`ReviewReply ` + :type admin_reply: :class:`ReviewReply ` :param id: Unique identifier of a review item :type id: long :param is_deleted: Flag for soft deletion @@ -1401,7 +1401,7 @@ class Review(Model): :param rating: Rating procided by the user :type rating: str :param reply: Reply, if any, for this review - :type reply: :class:`ReviewReply ` + :type reply: :class:`ReviewReply ` :param text: Text description of the review :type text: str :param title: Title of the review @@ -1451,9 +1451,9 @@ class ReviewPatch(Model): :param operation: Denotes the patch operation type :type operation: object :param reported_concern: Use when patch operation is FlagReview - :type reported_concern: :class:`UserReportedConcern ` + :type reported_concern: :class:`UserReportedConcern ` :param review_item: Use when patch operation is EditReview - :type review_item: :class:`Review ` + :type review_item: :class:`Review ` """ _attribute_map = { @@ -1519,7 +1519,7 @@ class ReviewsResult(Model): :param has_more_reviews: Flag indicating if there are more reviews to be shown (for paging) :type has_more_reviews: bool :param reviews: List of reviews - :type reviews: list of :class:`Review ` + :type reviews: list of :class:`Review ` :param total_review_count: Count of total review items :type total_review_count: long """ @@ -1545,7 +1545,7 @@ class ReviewSummary(Model): :param rating_count: Count of total ratings :type rating_count: long :param rating_split: Split of count accross rating - :type rating_split: list of :class:`RatingCountPerRating ` + :type rating_split: list of :class:`RatingCountPerRating ` """ _attribute_map = { @@ -1575,7 +1575,7 @@ class UnpackagedExtensionData(Model): :param extension_name: :type extension_name: str :param installation_targets: - :type installation_targets: list of :class:`InstallationTarget ` + :type installation_targets: list of :class:`InstallationTarget ` :param is_converted_to_markdown: :type is_converted_to_markdown: bool :param is_preview: @@ -1707,7 +1707,7 @@ class Concern(QnAItem): :param updated_date: Time when the review was edited/updated :type updated_date: datetime :param user: User details for the item. - :type user: :class:`UserIdentityRef ` + :type user: :class:`UserIdentityRef ` :param category: Category of the concern :type category: object """ @@ -1756,7 +1756,7 @@ class Publisher(PublisherBase): :param email_address: :type email_address: list of str :param extensions: - :type extensions: list of :class:`PublishedExtension ` + :type extensions: list of :class:`PublishedExtension ` :param flags: :type flags: object :param last_updated: @@ -1772,7 +1772,7 @@ class Publisher(PublisherBase): :param state: :type state: object :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/git/models.py b/azure-devops/azure/devops/v5_1/git/models.py index 9ff07f61..82d7b332 100644 --- a/azure-devops/azure/devops/v5_1/git/models.py +++ b/azure-devops/azure/devops/v5_1/git/models.py @@ -13,9 +13,9 @@ class Attachment(Model): """Attachment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The person that uploaded this attachment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function. :type content_hash: str :param created_date: The time the attachment was uploaded. @@ -27,7 +27,7 @@ class Attachment(Model): :param id: Id of the attachment. :type id: int :param properties: Extended properties. - :type properties: :class:`object ` + :type properties: :class:`object ` :param url: The url to download the content of the attachment. :type url: str """ @@ -65,7 +65,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -93,9 +93,9 @@ class Comment(Model): """Comment. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: The author of the comment. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param comment_type: The comment type at the time of creation. :type comment_type: object :param content: The comment content. @@ -113,7 +113,7 @@ class Comment(Model): :param published_date: The date the comment was first published. :type published_date: datetime :param users_liked: A list of the users who have liked this comment. - :type users_liked: list of :class:`IdentityRef ` + :type users_liked: list of :class:`IdentityRef ` """ _attribute_map = { @@ -189,9 +189,9 @@ class CommentThread(Model): """CommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param identities: Set of identities related to this thread @@ -201,13 +201,13 @@ class CommentThread(Model): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` """ _attribute_map = { @@ -243,13 +243,13 @@ class CommentThreadContext(Model): :param file_path: File path relative to the root of the repository. It's up to the client to use any path format. :type file_path: str :param left_file_end: Position of last character of the thread's span in left file. - :type left_file_end: :class:`CommentPosition ` + :type left_file_end: :class:`CommentPosition ` :param left_file_start: Position of first character of the thread's span in left file. - :type left_file_start: :class:`CommentPosition ` + :type left_file_start: :class:`CommentPosition ` :param right_file_end: Position of last character of the thread's span in right file. - :type right_file_end: :class:`CommentPosition ` + :type right_file_end: :class:`CommentPosition ` :param right_file_start: Position of first character of the thread's span in right file. - :type right_file_start: :class:`CommentPosition ` + :type right_file_start: :class:`CommentPosition ` """ _attribute_map = { @@ -277,13 +277,13 @@ class CommentTrackingCriteria(Model): :param orig_file_path: Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration. :type orig_file_path: str :param orig_left_file_end: Original position of last character of the thread's span in left file. - :type orig_left_file_end: :class:`CommentPosition ` + :type orig_left_file_end: :class:`CommentPosition ` :param orig_left_file_start: Original position of first character of the thread's span in left file. - :type orig_left_file_start: :class:`CommentPosition ` + :type orig_left_file_start: :class:`CommentPosition ` :param orig_right_file_end: Original position of last character of the thread's span in right file. - :type orig_right_file_end: :class:`CommentPosition ` + :type orig_right_file_end: :class:`CommentPosition ` :param orig_right_file_start: Original position of first character of the thread's span in right file. - :type orig_right_file_start: :class:`CommentPosition ` + :type orig_right_file_start: :class:`CommentPosition ` :param second_comparing_iteration: The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0. :type second_comparing_iteration: int """ @@ -353,7 +353,7 @@ class FileDiff(Model): """FileDiff. :param line_diff_blocks: The collection of line diff blocks - :type line_diff_blocks: list of :class:`LineDiffBlock ` + :type line_diff_blocks: list of :class:`LineDiffBlock ` :param original_path: Original path of item if different from current path. :type original_path: str :param path: Current path of item @@ -399,7 +399,7 @@ class FileDiffsCriteria(Model): :param base_version_commit: Commit ID of the base version :type base_version_commit: str :param file_diff_params: List of parameters for each of the files for which we need to get the file diff - :type file_diff_params: list of :class:`FileDiffParams ` + :type file_diff_params: list of :class:`FileDiffParams ` :param target_version_commit: Commit ID of the target version :type target_version_commit: str """ @@ -427,9 +427,9 @@ class GitAnnotatedTag(Model): :param object_id: The objectId (Sha1Id) of the tag. :type object_id: str :param tagged_by: User info and date of tagging. - :type tagged_by: :class:`GitUserDate ` + :type tagged_by: :class:`GitUserDate ` :param tagged_object: Tagged git object. - :type tagged_object: :class:`GitObject ` + :type tagged_object: :class:`GitObject ` :param url: :type url: str """ @@ -457,11 +457,11 @@ class GitAsyncRefOperation(Model): """GitAsyncRefOperation. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -529,9 +529,9 @@ class GitAsyncRefOperationParameters(Model): :param onto_ref_name: The target branch for the cherry pick or revert operation. :type onto_ref_name: str :param repository: The git repository for the cherry pick or revert operation. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit). - :type source: :class:`GitAsyncRefOperationSource ` + :type source: :class:`GitAsyncRefOperationSource ` """ _attribute_map = { @@ -553,7 +553,7 @@ class GitAsyncRefOperationSource(Model): """GitAsyncRefOperationSource. :param commit_list: A list of commits to cherry pick or revert - :type commit_list: list of :class:`GitCommitRef ` + :type commit_list: list of :class:`GitCommitRef ` :param pull_request_id: Id of the pull request to cherry pick or revert :type pull_request_id: int """ @@ -573,7 +573,7 @@ class GitBlobRef(Model): """GitBlobRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Size of blob content (in bytes) @@ -605,7 +605,7 @@ class GitBranchStats(Model): :param behind_count: Number of commits behind. :type behind_count: int :param commit: Current commit. - :type commit: :class:`GitCommitRef ` + :type commit: :class:`GitCommitRef ` :param is_base_version: True if this is the result for the base version. :type is_base_version: bool :param name: Name of the ref. @@ -633,11 +633,11 @@ class GitCherryPick(GitAsyncRefOperation): """GitCherryPick. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -666,7 +666,7 @@ class GitCommitChanges(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` """ _attribute_map = { @@ -694,7 +694,7 @@ class GitCommitDiffs(Model): :param change_counts: :type change_counts: dict :param changes: - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param common_commit: :type common_commit: str :param target_commit: @@ -728,13 +728,13 @@ class GitCommitRef(Model): """GitCommitRef. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -742,19 +742,19 @@ class GitCommitRef(Model): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str :param push: The push associated with this commit. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` """ _attribute_map = { @@ -796,7 +796,7 @@ class GitConflict(Model): """GitConflict. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param conflict_id: :type conflict_id: int :param conflict_path: @@ -804,19 +804,19 @@ class GitConflict(Model): :param conflict_type: :type conflict_type: object :param merge_base_commit: - :type merge_base_commit: :class:`GitCommitRef ` + :type merge_base_commit: :class:`GitCommitRef ` :param merge_origin: - :type merge_origin: :class:`GitMergeOriginRef ` + :type merge_origin: :class:`GitMergeOriginRef ` :param merge_source_commit: - :type merge_source_commit: :class:`GitCommitRef ` + :type merge_source_commit: :class:`GitCommitRef ` :param merge_target_commit: - :type merge_target_commit: :class:`GitCommitRef ` + :type merge_target_commit: :class:`GitCommitRef ` :param resolution_error: :type resolution_error: object :param resolution_status: :type resolution_status: object :param resolved_by: - :type resolved_by: :class:`IdentityRef ` + :type resolved_by: :class:`IdentityRef ` :param resolved_date: :type resolved_date: datetime :param url: @@ -864,7 +864,7 @@ class GitConflictUpdateResult(Model): :param custom_message: Reason for failing :type custom_message: str :param updated_conflict: New state of the conflict after updating - :type updated_conflict: :class:`GitConflict ` + :type updated_conflict: :class:`GitConflict ` :param update_status: Status of the update on the server :type update_status: object """ @@ -890,7 +890,7 @@ class GitDeletedRepository(Model): :param created_date: :type created_date: datetime :param deleted_by: - :type deleted_by: :class:`IdentityRef ` + :type deleted_by: :class:`IdentityRef ` :param deleted_date: :type deleted_date: datetime :param id: @@ -898,7 +898,7 @@ class GitDeletedRepository(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -972,15 +972,15 @@ class GitForkSyncRequest(Model): """GitForkSyncRequest. :param _links: Collection of related links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitForkOperationStatusDetail ` + :type detailed_status: :class:`GitForkOperationStatusDetail ` :param operation_id: Unique identifier for the operation. :type operation_id: int :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` :param status: :type status: object """ @@ -1008,9 +1008,9 @@ class GitForkSyncRequestParameters(Model): """GitForkSyncRequestParameters. :param source: Fully-qualified identifier for the source repository. - :type source: :class:`GlobalGitRepositoryKey ` + :type source: :class:`GlobalGitRepositoryKey ` :param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized. - :type source_to_target_refs: list of :class:`SourceToTargetRef ` + :type source_to_target_refs: list of :class:`SourceToTargetRef ` """ _attribute_map = { @@ -1048,15 +1048,15 @@ class GitImportRequest(Model): """GitImportRequest. :param _links: Links to related resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: Detailed status of the import, including the current step and an error message, if applicable. - :type detailed_status: :class:`GitImportStatusDetail ` + :type detailed_status: :class:`GitImportStatusDetail ` :param import_request_id: The unique identifier for this import request. :type import_request_id: int :param parameters: Parameters for creating the import request. - :type parameters: :class:`GitImportRequestParameters ` + :type parameters: :class:`GitImportRequestParameters ` :param repository: The target repository for this import. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param status: Current status of the import. :type status: object :param url: A link back to this import request resource. @@ -1090,11 +1090,11 @@ class GitImportRequestParameters(Model): :param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done :type delete_service_endpoint_after_import_is_done: bool :param git_source: Source for importing git repository - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param service_endpoint_id: Service Endpoint for connection to external endpoint :type service_endpoint_id: str :param tfvc_source: Source for importing tfvc repository - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` """ _attribute_map = { @@ -1200,7 +1200,7 @@ class GitItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: Collection of items to fetch, including path, version, and recursion level - :type item_descriptors: list of :class:`GitItemDescriptor ` + :type item_descriptors: list of :class:`GitItemDescriptor ` :param latest_processed_change: Whether to include shallow ref to commit that last changed each item :type latest_processed_change: bool """ @@ -1302,7 +1302,7 @@ class GitPolicyConfigurationResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: str :param policy_configurations: - :type policy_configurations: list of :class:`PolicyConfiguration ` + :type policy_configurations: list of :class:`PolicyConfiguration ` """ _attribute_map = { @@ -1320,41 +1320,41 @@ class GitPullRequest(Model): """GitPullRequest. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}``` :type artifact_id: str :param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it. - :type auto_complete_set_by: :class:`IdentityRef ` + :type auto_complete_set_by: :class:`IdentityRef ` :param closed_by: The user who closed the pull request. - :type closed_by: :class:`IdentityRef ` + :type closed_by: :class:`IdentityRef ` :param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally). :type closed_date: datetime :param code_review_id: The code review ID of the pull request. Used internally. :type code_review_id: int :param commits: The commits contained in the pull request. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param completion_options: Options which affect how the pull request will be merged when it is completed. - :type completion_options: :class:`GitPullRequestCompletionOptions ` + :type completion_options: :class:`GitPullRequestCompletionOptions ` :param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally. :type completion_queue_time: datetime :param created_by: The identity of the user who created the pull request. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: The date when the pull request was created. :type creation_date: datetime :param description: The description of the pull request. :type description: str :param fork_source: If this is a PR from a fork this will contain information about its source. - :type fork_source: :class:`GitForkRef ` + :type fork_source: :class:`GitForkRef ` :param is_draft: Draft / WIP pull request. :type is_draft: bool :param labels: The labels associated with the pull request. - :type labels: list of :class:`WebApiTagDefinition ` + :type labels: list of :class:`WebApiTagDefinition ` :param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful. - :type last_merge_commit: :class:`GitCommitRef ` + :type last_merge_commit: :class:`GitCommitRef ` :param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge. - :type last_merge_source_commit: :class:`GitCommitRef ` + :type last_merge_source_commit: :class:`GitCommitRef ` :param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge. - :type last_merge_target_commit: :class:`GitCommitRef ` + :type last_merge_target_commit: :class:`GitCommitRef ` :param merge_failure_message: If set, pull request merge failed for this reason. :type merge_failure_message: str :param merge_failure_type: The type of failure (if any) of the pull request merge. @@ -1362,7 +1362,7 @@ class GitPullRequest(Model): :param merge_id: The ID of the job used to run the pull request merge. Used internally. :type merge_id: str :param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes. - :type merge_options: :class:`GitPullRequestMergeOptions ` + :type merge_options: :class:`GitPullRequestMergeOptions ` :param merge_status: The current status of the pull request merge. :type merge_status: object :param pull_request_id: The ID of the pull request. @@ -1370,9 +1370,9 @@ class GitPullRequest(Model): :param remote_url: Used internally. :type remote_url: str :param repository: The repository containing the target branch of the pull request. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param reviewers: A list of reviewers on the pull request along with the state of their votes. - :type reviewers: list of :class:`IdentityRefWithVote ` + :type reviewers: list of :class:`IdentityRefWithVote ` :param source_ref_name: The name of the source branch of the pull request. :type source_ref_name: str :param status: The status of the pull request. @@ -1386,7 +1386,7 @@ class GitPullRequest(Model): :param url: Used internally. :type url: str :param work_item_refs: Any work item references associated with this pull request. - :type work_item_refs: list of :class:`ResourceRef ` + :type work_item_refs: list of :class:`ResourceRef ` """ _attribute_map = { @@ -1484,9 +1484,9 @@ class GitPullRequestCommentThread(CommentThread): """GitPullRequestCommentThread. :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: A list of the comments. - :type comments: list of :class:`Comment ` + :type comments: list of :class:`Comment ` :param id: The comment thread id. :type id: int :param identities: Set of identities related to this thread @@ -1496,15 +1496,15 @@ class GitPullRequestCommentThread(CommentThread): :param last_updated_date: The time this thread was last updated. :type last_updated_date: datetime :param properties: Optional properties associated with the thread as a collection of key-value pairs. - :type properties: :class:`object ` + :type properties: :class:`object ` :param published_date: The time this thread was published. :type published_date: datetime :param status: The status of the comment thread. :type status: object :param thread_context: Specify thread context such as position in left/right file. - :type thread_context: :class:`CommentThreadContext ` + :type thread_context: :class:`CommentThreadContext ` :param pull_request_thread_context: Extended context information unique to pull requests - :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` + :type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext ` """ _attribute_map = { @@ -1532,9 +1532,9 @@ class GitPullRequestCommentThreadContext(Model): :param change_tracking_id: Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests. :type change_tracking_id: int :param iteration_context: The iteration context being viewed when the thread was created. - :type iteration_context: :class:`CommentIterationContext ` + :type iteration_context: :class:`CommentIterationContext ` :param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria. - :type tracking_criteria: :class:`CommentTrackingCriteria ` + :type tracking_criteria: :class:`CommentTrackingCriteria ` """ _attribute_map = { @@ -1594,15 +1594,15 @@ class GitPullRequestIteration(Model): """GitPullRequestIteration. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the pull request iteration. - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param change_list: Changes included with the pull request iteration. - :type change_list: list of :class:`GitPullRequestChange ` + :type change_list: list of :class:`GitPullRequestChange ` :param commits: The commits included with the pull request iteration. - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param common_ref_commit: The first common Git commit of the source and target refs. - :type common_ref_commit: :class:`GitCommitRef ` + :type common_ref_commit: :class:`GitCommitRef ` :param created_date: The creation date of the pull request iteration. :type created_date: datetime :param description: Description of the pull request iteration. @@ -1616,13 +1616,13 @@ class GitPullRequestIteration(Model): :param old_target_ref_name: If the iteration reason is Retarget, this is the original target refName :type old_target_ref_name: str :param push: The Git push information associated with this pull request iteration. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param reason: The reason for which the pull request iteration was created. :type reason: object :param source_ref_commit: The source Git commit of this iteration. - :type source_ref_commit: :class:`GitCommitRef ` + :type source_ref_commit: :class:`GitCommitRef ` :param target_ref_commit: The target Git commit of this iteration. - :type target_ref_commit: :class:`GitCommitRef ` + :type target_ref_commit: :class:`GitCommitRef ` :param updated_date: The updated date of the pull request iteration. :type updated_date: datetime """ @@ -1670,7 +1670,7 @@ class GitPullRequestIterationChanges(Model): """GitPullRequestIterationChanges. :param change_entries: Changes made in the iteration. - :type change_entries: list of :class:`GitPullRequestChange ` + :type change_entries: list of :class:`GitPullRequestChange ` :param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes. :type next_skip: int :param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes. @@ -1714,7 +1714,7 @@ class GitPullRequestQuery(Model): """GitPullRequestQuery. :param queries: The queries to perform. - :type queries: list of :class:`GitPullRequestQueryInput ` + :type queries: list of :class:`GitPullRequestQueryInput ` :param results: The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests. :type results: list of {[GitPullRequest]} """ @@ -1798,13 +1798,13 @@ class GitPushRef(Model): """GitPushRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: @@ -1870,9 +1870,9 @@ class GitQueryBranchStatsCriteria(Model): """GitQueryBranchStatsCriteria. :param base_commit: - :type base_commit: :class:`GitVersionDescriptor ` + :type base_commit: :class:`GitVersionDescriptor ` :param target_commits: - :type target_commits: list of :class:`GitVersionDescriptor ` + :type target_commits: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -1896,7 +1896,7 @@ class GitQueryCommitsCriteria(Model): :param author: Alias or display name of the author :type author: str :param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit. - :type compare_version: :class:`GitVersionDescriptor ` + :type compare_version: :class:`GitVersionDescriptor ` :param exclude_deletes: Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path. :type exclude_deletes: bool :param from_commit_id: If provided, a lower bound for filtering commits alphabetically @@ -1918,7 +1918,7 @@ class GitQueryCommitsCriteria(Model): :param item_path: Path of item to search under :type item_path: str :param item_version: If provided, identifies the commit or branch to search - :type item_version: :class:`GitVersionDescriptor ` + :type item_version: :class:`GitVersionDescriptor ` :param to_commit_id: If provided, an upper bound for filtering commits alphabetically :type to_commit_id: str :param to_date: If provided, only include history entries created before this date (string) @@ -1990,13 +1990,13 @@ class GitRef(Model): """GitRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -2004,7 +2004,7 @@ class GitRef(Model): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str """ @@ -2038,7 +2038,7 @@ class GitRefFavorite(Model): """GitRefFavorite. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param identity_id: @@ -2158,7 +2158,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -2168,9 +2168,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param size: Compressed size (bytes) of the repository. @@ -2220,9 +2220,9 @@ class GitRepositoryCreateOptions(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` """ _attribute_map = { @@ -2242,7 +2242,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -2250,7 +2250,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -2314,11 +2314,11 @@ class GitRevert(GitAsyncRefOperation): """GitRevert. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: - :type detailed_status: :class:`GitAsyncRefOperationDetail ` + :type detailed_status: :class:`GitAsyncRefOperationDetail ` :param parameters: - :type parameters: :class:`GitAsyncRefOperationParameters ` + :type parameters: :class:`GitAsyncRefOperationParameters ` :param status: :type status: object :param url: A URL that can be used to make further requests for status about the operation @@ -2345,11 +2345,11 @@ class GitStatus(Model): """GitStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -2455,7 +2455,7 @@ class GitTreeDiff(Model): :param base_tree_id: ObjectId of the base tree of this diff. :type base_tree_id: str :param diff_entries: List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yeild more diff entries. If the continuation token is not returned all the diff entries have been included in this response. - :type diff_entries: list of :class:`GitTreeDiffEntry ` + :type diff_entries: list of :class:`GitTreeDiffEntry ` :param target_tree_id: ObjectId of the target tree of this diff. :type target_tree_id: str :param url: REST Url to this resource. @@ -2515,7 +2515,7 @@ class GitTreeDiffResponse(Model): :param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field. :type continuation_token: list of str :param tree_diff: - :type tree_diff: :class:`GitTreeDiff ` + :type tree_diff: :class:`GitTreeDiff ` """ _attribute_map = { @@ -2569,13 +2569,13 @@ class GitTreeRef(Model): """GitTreeRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param object_id: SHA1 hash of git object :type object_id: str :param size: Sum of sizes of all children :type size: long :param tree_entries: Blobs and trees under this tree - :type tree_entries: list of :class:`GitTreeEntryRef ` + :type tree_entries: list of :class:`GitTreeEntryRef ` :param url: Url to tree :type url: str """ @@ -2677,7 +2677,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2705,7 +2705,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2765,7 +2765,7 @@ class IdentityRefWithVote(IdentityRef): """IdentityRefWithVote. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -2797,7 +2797,7 @@ class IdentityRefWithVote(IdentityRef): :param vote: Vote on a pull request:
10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected :type vote: int :param voted_for: Groups or teams that that this reviewer contributed to.
Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes. - :type voted_for: list of :class:`IdentityRefWithVote ` + :type voted_for: list of :class:`IdentityRefWithVote ` """ _attribute_map = { @@ -2832,11 +2832,11 @@ class ImportRepositoryValidation(Model): """ImportRepositoryValidation. :param git_source: - :type git_source: :class:`GitImportGitSource ` + :type git_source: :class:`GitImportGitSource ` :param password: :type password: str :param tfvc_source: - :type tfvc_source: :class:`GitImportTfvcSource ` + :type tfvc_source: :class:`GitImportTfvcSource ` :param username: :type username: str """ @@ -2880,11 +2880,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -2982,7 +2982,7 @@ class PolicyConfigurationRef(Model): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -3066,7 +3066,7 @@ class ShareNotificationContext(Model): :param message: Optional user note or message. :type message: str :param receivers: Identities of users who will receive a share notification. - :type receivers: list of :class:`IdentityRef ` + :type receivers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -3182,7 +3182,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. @@ -3205,9 +3205,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -3306,13 +3306,13 @@ class GitCommit(GitCommitRef): """GitCommit. :param _links: A collection of related REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Author of the commit. - :type author: :class:`GitUserDate ` + :type author: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. :type change_counts: dict :param changes: An enumeration of the changes included with the commit. - :type changes: list of :class:`object ` + :type changes: list of :class:`object ` :param comment: Comment or message of the commit. :type comment: str :param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message. @@ -3320,19 +3320,19 @@ class GitCommit(GitCommitRef): :param commit_id: ID (SHA-1) of the commit. :type commit_id: str :param committer: Committer of the commit. - :type committer: :class:`GitUserDate ` + :type committer: :class:`GitUserDate ` :param parents: An enumeration of the parent commit IDs for this commit. :type parents: list of str :param push: The push associated with this commit. - :type push: :class:`GitPushRef ` + :type push: :class:`GitPushRef ` :param remote_url: Remote URL path to the commit. :type remote_url: str :param statuses: A list of status metadata from services and extensions that may associate additional information to the commit. - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: REST URL for this resource. :type url: str :param work_items: A list of workitems associated with this commit. - :type work_items: list of :class:`ResourceRef ` + :type work_items: list of :class:`ResourceRef ` :param tree_id: :type tree_id: str """ @@ -3364,13 +3364,13 @@ class GitForkRef(GitRef): """GitForkRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param creator: - :type creator: :class:`IdentityRef ` + :type creator: :class:`IdentityRef ` :param is_locked: :type is_locked: bool :param is_locked_by: - :type is_locked_by: :class:`IdentityRef ` + :type is_locked_by: :class:`IdentityRef ` :param name: :type name: str :param object_id: @@ -3378,11 +3378,11 @@ class GitForkRef(GitRef): :param peeled_object_id: :type peeled_object_id: str :param statuses: - :type statuses: list of :class:`GitStatus ` + :type statuses: list of :class:`GitStatus ` :param url: :type url: str :param repository: The repository ID of the fork. - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3407,11 +3407,11 @@ class GitItem(ItemModel): """GitItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -3425,7 +3425,7 @@ class GitItem(ItemModel): :param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...) :type git_object_type: object :param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached - :type latest_processed_change: :class:`GitCommitRef ` + :type latest_processed_change: :class:`GitCommitRef ` :param object_id: Git object id :type object_id: str :param original_object_id: Git object id @@ -3464,9 +3464,9 @@ class GitMerge(GitMergeParameters): :param parents: An enumeration of the parent commit IDs for the merge commit. :type parents: list of str :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_status: Detailed status of the merge operation. - :type detailed_status: :class:`GitMergeOperationStatusDetail ` + :type detailed_status: :class:`GitMergeOperationStatusDetail ` :param merge_operation_id: Unique identifier for the merge operation. :type merge_operation_id: int :param status: Status of the merge operation. @@ -3494,11 +3494,11 @@ class GitPullRequestStatus(GitStatus): """GitPullRequestStatus. :param _links: Reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param context: Context of the status. - :type context: :class:`GitStatusContext ` + :type context: :class:`GitStatusContext ` :param created_by: Identity that created the status. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param creation_date: Creation date and time of the status. :type creation_date: datetime :param description: Status description. Typically describes current state of the status. @@ -3514,7 +3514,7 @@ class GitPullRequestStatus(GitStatus): :param iteration_id: ID of the iteration to associate status with. Minimum value is 1. :type iteration_id: int :param properties: Custom properties of the status. - :type properties: :class:`object ` + :type properties: :class:`object ` """ _attribute_map = { @@ -3541,23 +3541,23 @@ class GitPush(GitPushRef): """GitPush. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param date: :type date: datetime :param push_correlation_id: :type push_correlation_id: str :param pushed_by: - :type pushed_by: :class:`IdentityRef ` + :type pushed_by: :class:`IdentityRef ` :param push_id: :type push_id: int :param url: :type url: str :param commits: - :type commits: list of :class:`GitCommitRef ` + :type commits: list of :class:`GitCommitRef ` :param ref_updates: - :type ref_updates: list of :class:`GitRefUpdate ` + :type ref_updates: list of :class:`GitRefUpdate ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` """ _attribute_map = { @@ -3618,15 +3618,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. :type revision: int :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The date and time when the policy was created. :type created_date: datetime :param is_blocking: Indicates whether the policy is blocking. diff --git a/azure-devops/azure/devops/v5_1/graph/models.py b/azure-devops/azure/devops/v5_1/graph/models.py index 0af597ee..59805434 100644 --- a/azure-devops/azure/devops/v5_1/graph/models.py +++ b/azure-devops/azure/devops/v5_1/graph/models.py @@ -29,9 +29,9 @@ class GraphDescriptorResult(Model): """GraphDescriptorResult. :param _links: This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: - :type value: :class:`str ` + :type value: :class:`str ` """ _attribute_map = { @@ -97,7 +97,7 @@ class GraphMembership(Model): """GraphMembership. :param _links: This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param container_descriptor: :type container_descriptor: str :param member_descriptor: @@ -121,7 +121,7 @@ class GraphMembershipState(Model): """GraphMembershipState. :param _links: This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param active: When true, the membership is active :type active: bool """ @@ -145,11 +145,11 @@ class GraphMembershipTraversal(Model): :param is_complete: When true, the subject is traversed completely :type is_complete: bool :param subject_descriptor: The traversed subject descriptor - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param traversed_subject_ids: Subject descriptor ids of the traversed members :type traversed_subject_ids: list of str :param traversed_subjects: Subject descriptors of the traversed members - :type traversed_subjects: list of :class:`str ` + :type traversed_subjects: list of :class:`str ` """ _attribute_map = { @@ -237,7 +237,7 @@ class GraphStorageKeyResult(Model): """GraphStorageKeyResult. :param _links: This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param value: :type value: str """ @@ -257,7 +257,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -285,7 +285,7 @@ class GraphSubjectLookup(Model): """GraphSubjectLookup. :param lookup_keys: - :type lookup_keys: list of :class:`GraphSubjectLookupKey ` + :type lookup_keys: list of :class:`GraphSubjectLookupKey ` """ _attribute_map = { @@ -301,7 +301,7 @@ class GraphSubjectLookupKey(Model): """GraphSubjectLookupKey. :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` """ _attribute_map = { @@ -363,7 +363,7 @@ class PagedGraphGroups(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_groups: The enumerable list of groups found within a page. - :type graph_groups: list of :class:`GraphGroup ` + :type graph_groups: list of :class:`GraphGroup ` """ _attribute_map = { @@ -383,7 +383,7 @@ class PagedGraphUsers(Model): :param continuation_token: This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request. :type continuation_token: list of str :param graph_users: The enumerable set of users found within a page. - :type graph_users: list of :class:`GraphUser ` + :type graph_users: list of :class:`GraphUser ` """ _attribute_map = { @@ -417,7 +417,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -457,7 +457,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -505,7 +505,7 @@ class GraphScope(GraphSubject): """GraphScope. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -561,7 +561,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -618,7 +618,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_1/identity/models.py b/azure-devops/azure/devops/v5_1/identity/models.py index 92ca7600..159559bb 100644 --- a/azure-devops/azure/devops/v5_1/identity/models.py +++ b/azure-devops/azure/devops/v5_1/identity/models.py @@ -13,7 +13,7 @@ class AccessTokenResult(Model): """AccessTokenResult. :param access_token: - :type access_token: :class:`JsonWebToken ` + :type access_token: :class:`JsonWebToken ` :param access_token_error: :type access_token_error: object :param authorization_id: @@ -23,7 +23,7 @@ class AccessTokenResult(Model): :param has_error: :type has_error: bool :param refresh_token: - :type refresh_token: :class:`RefreshTokenGrant ` + :type refresh_token: :class:`RefreshTokenGrant ` :param token_type: :type token_type: str :param valid_to: @@ -73,11 +73,11 @@ class ChangedIdentities(Model): """ChangedIdentities. :param identities: Changed Identities - :type identities: list of :class:`Identity ` + :type identities: list of :class:`Identity ` :param more_data: More data available, set to true if pagesize is specified. :type more_data: bool :param sequence_context: Last Identity SequenceId - :type sequence_context: :class:`ChangedIdentitiesContext ` + :type sequence_context: :class:`ChangedIdentitiesContext ` """ _attribute_map = { @@ -191,7 +191,7 @@ class GroupMembership(Model): :param active: :type active: bool :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param queried_id: @@ -219,7 +219,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -231,19 +231,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -289,7 +289,7 @@ class IdentityBatchInfo(Model): """IdentityBatchInfo. :param descriptors: - :type descriptors: list of :class:`str ` + :type descriptors: list of :class:`str ` :param identity_ids: :type identity_ids: list of str :param include_restricted_visibility: @@ -299,7 +299,7 @@ class IdentityBatchInfo(Model): :param query_membership: :type query_membership: object :param subject_descriptors: - :type subject_descriptors: list of :class:`str ` + :type subject_descriptors: list of :class:`str ` """ _attribute_map = { @@ -325,7 +325,7 @@ class IdentityScope(Model): """IdentityScope. :param administrators: - :type administrators: :class:`str ` + :type administrators: :class:`str ` :param id: :type id: str :param is_active: @@ -343,7 +343,7 @@ class IdentityScope(Model): :param securing_host_id: :type securing_host_id: str :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` """ _attribute_map = { @@ -389,7 +389,7 @@ class IdentitySelf(Model): :param origin_id: The unique identifier from the system of origin. If there are multiple tenants this is the unique identifier of the account in the home tenant. (For MSA this is the PUID in hex notation, for AAD this is the object id.) :type origin_id: str :param tenants: For AAD accounts this is all of the tenants that this account is a member of. - :type tenants: list of :class:`TenantInfo ` + :type tenants: list of :class:`TenantInfo ` """ _attribute_map = { @@ -417,15 +417,15 @@ class IdentitySnapshot(Model): """IdentitySnapshot. :param groups: - :type groups: list of :class:`Identity ` + :type groups: list of :class:`Identity ` :param identity_ids: :type identity_ids: list of str :param memberships: - :type memberships: list of :class:`GroupMembership ` + :type memberships: list of :class:`GroupMembership ` :param scope_id: :type scope_id: str :param scopes: - :type scopes: list of :class:`IdentityScope ` + :type scopes: list of :class:`IdentityScope ` """ _attribute_map = { @@ -515,7 +515,7 @@ class RefreshTokenGrant(AuthorizationGrant): :param grant_type: :type grant_type: object :param jwt: - :type jwt: :class:`JsonWebToken ` + :type jwt: :class:`JsonWebToken ` """ _attribute_map = { @@ -578,7 +578,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -590,19 +590,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_1/licensing/models.py b/azure-devops/azure/devops/v5_1/licensing/models.py index fb7f6105..d4194f2e 100644 --- a/azure-devops/azure/devops/v5_1/licensing/models.py +++ b/azure-devops/azure/devops/v5_1/licensing/models.py @@ -23,15 +23,15 @@ class AccountEntitlement(Model): :param last_accessed_date: Gets or sets the date of the user last sign-in to this account :type last_accessed_date: datetime :param license: - :type license: :class:`License ` + :type license: :class:`License ` :param origin: Licensing origin :type origin: object :param rights: The computed rights of this user in the account. - :type rights: :class:`AccountRights ` + :type rights: :class:`AccountRights ` :param status: The status of the user in the account :type status: object :param user: Identity information of the user to which the license belongs - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` :param user_id: Gets the id of the user to which the license belongs :type user_id: str """ @@ -69,7 +69,7 @@ class AccountEntitlementUpdateModel(Model): """AccountEntitlementUpdateModel. :param license: Gets or sets the license for the entitlement - :type license: :class:`License ` + :type license: :class:`License ` """ _attribute_map = { @@ -139,7 +139,7 @@ class AccountLicenseUsage(Model): :param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle) :type disabled_count: int :param license: - :type license: :class:`AccountUserLicense ` + :type license: :class:`AccountUserLicense ` :param pending_provisioned_count: Amount that will be purchased in the next billing cycle :type pending_provisioned_count: int :param provisioned_count: Amount that has been purchased @@ -401,7 +401,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -431,7 +431,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -443,19 +443,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -501,9 +501,9 @@ class IdentityMapping(Model): """IdentityMapping. :param source_identity: - :type source_identity: :class:`Identity ` + :type source_identity: :class:`Identity ` :param target_identity: - :type target_identity: :class:`Identity ` + :type target_identity: :class:`Identity ` """ _attribute_map = { @@ -521,7 +521,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -671,7 +671,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -683,19 +683,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_1/location/models.py b/azure-devops/azure/devops/v5_1/location/models.py index 25e7cf44..80c2db61 100644 --- a/azure-devops/azure/devops/v5_1/location/models.py +++ b/azure-devops/azure/devops/v5_1/location/models.py @@ -45,9 +45,9 @@ class ConnectionData(Model): """ConnectionData. :param authenticated_user: The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authenticated_user: :class:`Identity ` + :type authenticated_user: :class:`Identity ` :param authorized_user: The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service - :type authorized_user: :class:`Identity ` + :type authorized_user: :class:`Identity ` :param deployment_id: The id for the server. :type deployment_id: str :param deployment_type: The type for the server Hosted/OnPremises. @@ -57,7 +57,7 @@ class ConnectionData(Model): :param last_user_access: The last user access for this instance. Null if not requested specifically. :type last_user_access: datetime :param location_service_data: Data that the location service holds. - :type location_service_data: :class:`LocationServiceData ` + :type location_service_data: :class:`LocationServiceData ` :param web_application_relative_directory: The virtual directory of the host we are talking to. :type web_application_relative_directory: str """ @@ -91,7 +91,7 @@ class IdentityBase(Model): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -103,19 +103,19 @@ class IdentityBase(Model): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ @@ -181,7 +181,7 @@ class LocationServiceData(Model): """LocationServiceData. :param access_mappings: Data about the access mappings contained by this location service. - :type access_mappings: list of :class:`AccessMapping ` + :type access_mappings: list of :class:`AccessMapping ` :param client_cache_fresh: Data that the location service holds. :type client_cache_fresh: bool :param client_cache_time_to_live: The time to live on the location service cache. @@ -193,7 +193,7 @@ class LocationServiceData(Model): :param last_change_id64: The non-truncated 64-bit id for the last change that took place on the server. :type last_change_id64: long :param service_definitions: Data about the service definitions contained by this location service. - :type service_definitions: list of :class:`ServiceDefinition ` + :type service_definitions: list of :class:`ServiceDefinition ` :param service_owner: The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.) :type service_owner: str """ @@ -257,7 +257,7 @@ class ServiceDefinition(Model): :param inherit_level: :type inherit_level: object :param location_mappings: - :type location_mappings: list of :class:`LocationMapping ` + :type location_mappings: list of :class:`LocationMapping ` :param max_version: Maximum api version that this resource supports (current server version for this resource). Copied from ApiResourceLocation. :type max_version: str :param min_version: Minimum api version that this resource supports. Copied from ApiResourceLocation. @@ -267,7 +267,7 @@ class ServiceDefinition(Model): :param parent_service_type: :type parent_service_type: str :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param relative_path: :type relative_path: str :param relative_to_setting: @@ -335,7 +335,7 @@ class Identity(IdentityBase): :param custom_display_name: The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) :type custom_display_name: str :param descriptor: - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param id: :type id: str :param is_active: @@ -347,19 +347,19 @@ class Identity(IdentityBase): :param member_ids: :type member_ids: list of str :param member_of: - :type member_of: list of :class:`str ` + :type member_of: list of :class:`str ` :param members: - :type members: list of :class:`str ` + :type members: list of :class:`str ` :param meta_type_id: :type meta_type_id: int :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param provider_display_name: The display name for the identity as specified by the source identity provider. :type provider_display_name: str :param resource_version: :type resource_version: int :param subject_descriptor: - :type subject_descriptor: :class:`str ` + :type subject_descriptor: :class:`str ` :param unique_user_id: :type unique_user_id: int """ diff --git a/azure-devops/azure/devops/v5_1/maven/models.py b/azure-devops/azure/devops/v5_1/maven/models.py index a1f0e3fe..5ab02527 100644 --- a/azure-devops/azure/devops/v5_1/maven/models.py +++ b/azure-devops/azure/devops/v5_1/maven/models.py @@ -25,9 +25,9 @@ class MavenDistributionManagement(Model): """MavenDistributionManagement. :param repository: - :type repository: :class:`MavenRepository ` + :type repository: :class:`MavenRepository ` :param snapshot_repository: - :type snapshot_repository: :class:`MavenSnapshotRepository ` + :type snapshot_repository: :class:`MavenSnapshotRepository ` """ _attribute_map = { @@ -71,27 +71,27 @@ class MavenPackage(Model): :param artifact_id: :type artifact_id: str :param artifact_index: - :type artifact_index: :class:`ReferenceLink ` + :type artifact_index: :class:`ReferenceLink ` :param artifact_metadata: - :type artifact_metadata: :class:`ReferenceLink ` + :type artifact_metadata: :class:`ReferenceLink ` :param deleted_date: :type deleted_date: datetime :param files: - :type files: :class:`ReferenceLinks ` + :type files: :class:`ReferenceLinks ` :param group_id: :type group_id: str :param pom: - :type pom: :class:`MavenPomMetadata ` + :type pom: :class:`MavenPomMetadata ` :param requested_file: - :type requested_file: :class:`ReferenceLink ` + :type requested_file: :class:`ReferenceLink ` :param snapshot_metadata: - :type snapshot_metadata: :class:`ReferenceLink ` + :type snapshot_metadata: :class:`ReferenceLink ` :param version: :type version: str :param versions: - :type versions: :class:`ReferenceLinks ` + :type versions: :class:`ReferenceLinks ` :param versions_index: - :type versions_index: :class:`ReferenceLink ` + :type versions_index: :class:`ReferenceLink ` """ _attribute_map = { @@ -129,11 +129,11 @@ class MavenPackagesBatchRequest(Model): """MavenPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MavenMinimalPackageDetails ` + :type packages: list of :class:`MavenMinimalPackageDetails ` """ _attribute_map = { @@ -181,7 +181,7 @@ class MavenPomBuild(Model): """MavenPomBuild. :param plugins: - :type plugins: list of :class:`Plugin ` + :type plugins: list of :class:`Plugin ` """ _attribute_map = { @@ -197,7 +197,7 @@ class MavenPomCi(Model): """MavenPomCi. :param notifiers: - :type notifiers: list of :class:`MavenPomCiNotifier ` + :type notifiers: list of :class:`MavenPomCiNotifier ` :param system: :type system: str :param url: @@ -257,7 +257,7 @@ class MavenPomDependencyManagement(Model): """MavenPomDependencyManagement. :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` """ _attribute_map = { @@ -359,29 +359,29 @@ class MavenPomMetadata(MavenPomGav): :param version: :type version: str :param build: - :type build: :class:`MavenPomBuild ` + :type build: :class:`MavenPomBuild ` :param ci_management: - :type ci_management: :class:`MavenPomCi ` + :type ci_management: :class:`MavenPomCi ` :param contributors: - :type contributors: list of :class:`MavenPomPerson ` + :type contributors: list of :class:`MavenPomPerson ` :param dependencies: - :type dependencies: list of :class:`MavenPomDependency ` + :type dependencies: list of :class:`MavenPomDependency ` :param dependency_management: - :type dependency_management: :class:`MavenPomDependencyManagement ` + :type dependency_management: :class:`MavenPomDependencyManagement ` :param description: :type description: str :param developers: - :type developers: list of :class:`MavenPomPerson ` + :type developers: list of :class:`MavenPomPerson ` :param distribution_management: - :type distribution_management: :class:`MavenDistributionManagement ` + :type distribution_management: :class:`MavenDistributionManagement ` :param inception_year: :type inception_year: str :param issue_management: - :type issue_management: :class:`MavenPomIssueManagement ` + :type issue_management: :class:`MavenPomIssueManagement ` :param licenses: - :type licenses: list of :class:`MavenPomLicense ` + :type licenses: list of :class:`MavenPomLicense ` :param mailing_lists: - :type mailing_lists: list of :class:`MavenPomMailingList ` + :type mailing_lists: list of :class:`MavenPomMailingList ` :param model_version: :type model_version: str :param modules: @@ -389,17 +389,17 @@ class MavenPomMetadata(MavenPomGav): :param name: :type name: str :param organization: - :type organization: :class:`MavenPomOrganization ` + :type organization: :class:`MavenPomOrganization ` :param packaging: :type packaging: str :param parent: - :type parent: :class:`MavenPomParent ` + :type parent: :class:`MavenPomParent ` :param prerequisites: :type prerequisites: dict :param properties: :type properties: dict :param scm: - :type scm: :class:`MavenPomScm ` + :type scm: :class:`MavenPomScm ` :param url: :type url: str """ @@ -626,7 +626,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -668,7 +668,7 @@ class Plugin(MavenPomGav): :param version: :type version: str :param configuration: - :type configuration: :class:`PluginConfiguration ` + :type configuration: :class:`PluginConfiguration ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py b/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py index 6109c126..75d6f4d0 100644 --- a/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py +++ b/azure-devops/azure/devops/v5_1/member_entitlement_management/models.py @@ -101,7 +101,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -149,19 +149,19 @@ class GroupEntitlement(Model): """GroupEntitlement. :param extension_rules: Extension Rules. - :type extension_rules: list of :class:`Extension ` + :type extension_rules: list of :class:`Extension ` :param group: Member reference. - :type group: :class:`GraphGroup ` + :type group: :class:`GraphGroup ` :param id: The unique identifier which matches the Id of the GraphMember. :type id: str :param last_executed: [Readonly] The last time the group licensing rule was executed (regardless of whether any changes were made). :type last_executed: datetime :param license_rule: License Rule. - :type license_rule: :class:`AccessLevel ` + :type license_rule: :class:`AccessLevel ` :param members: Group members. Only used when creating a new group. - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` :param project_entitlements: Relation between a project and the member's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param status: The status of the group rule. :type status: object """ @@ -199,7 +199,7 @@ class GroupOperationResult(BaseOperationResult): :param group_id: Identifier of the Group being acted upon :type group_id: str :param result: Result of the Groupentitlement after the operation - :type result: :class:`GroupEntitlement ` + :type result: :class:`GroupEntitlement ` """ _attribute_map = { @@ -219,9 +219,9 @@ class GroupOption(Model): """GroupOption. :param access_level: Access Level - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param group: Group - :type group: :class:`Group ` + :type group: :class:`Group ` """ _attribute_map = { @@ -269,7 +269,7 @@ class MemberEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` """ _attribute_map = { @@ -321,7 +321,7 @@ class OperationResult(Model): :param member_id: Identifier of the Member being acted upon. :type member_id: str :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`MemberEntitlement ` + :type result: :class:`MemberEntitlement ` """ _attribute_map = { @@ -369,15 +369,15 @@ class ProjectEntitlement(Model): :param assignment_source: Assignment Source (e.g. Group or Unknown). :type assignment_source: object :param group: Project Group (e.g. Contributor, Reader etc.) - :type group: :class:`Group ` + :type group: :class:`Group ` :param is_project_permission_inherited: [Deprecated] Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership. :type is_project_permission_inherited: bool :param project_permission_inherited: Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership. :type project_permission_inherited: object :param project_ref: Project Ref - :type project_ref: :class:`ProjectRef ` + :type project_ref: :class:`ProjectRef ` :param team_refs: Team Ref. - :type team_refs: list of :class:`TeamRef ` + :type team_refs: list of :class:`TeamRef ` """ _attribute_map = { @@ -487,21 +487,21 @@ class UserEntitlement(Model): """UserEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param date_created: [Readonly] Date the user was added to the collection. :type date_created: datetime :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` """ _attribute_map = { @@ -543,7 +543,7 @@ class UserEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`UserEntitlementOperationResult ` + :type results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -571,7 +571,7 @@ class UserEntitlementOperationResult(Model): :param is_success: Success status of the operation. :type is_success: bool :param result: Result of the MemberEntitlement after the operation. - :type result: :class:`UserEntitlement ` + :type result: :class:`UserEntitlement ` :param user_id: Identifier of the Member being acted upon. :type user_id: str """ @@ -597,7 +597,7 @@ class UserEntitlementsResponseBase(Model): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` """ _attribute_map = { @@ -615,15 +615,15 @@ class UsersSummary(Model): """UsersSummary. :param available_access_levels: Available Access Levels - :type available_access_levels: list of :class:`AccessLevel ` + :type available_access_levels: list of :class:`AccessLevel ` :param extensions: Summary of Extensions in the organization - :type extensions: list of :class:`ExtensionSummaryData ` + :type extensions: list of :class:`ExtensionSummaryData ` :param group_options: Group Options - :type group_options: list of :class:`GroupOption ` + :type group_options: list of :class:`GroupOption ` :param licenses: Summary of Licenses in the organization - :type licenses: list of :class:`LicenseSummaryData ` + :type licenses: list of :class:`LicenseSummaryData ` :param project_refs: Summary of Projects in the organization - :type project_refs: list of :class:`ProjectRef ` + :type project_refs: list of :class:`ProjectRef ` """ _attribute_map = { @@ -699,7 +699,7 @@ class GraphSubject(GraphSubjectBase): """GraphSubject. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -751,7 +751,7 @@ class GroupEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful. :type have_results_succeeded: bool :param results: List of results for each operation. - :type results: list of :class:`GroupOperationResult ` + :type results: list of :class:`GroupOperationResult ` """ _attribute_map = { @@ -831,23 +831,23 @@ class MemberEntitlement(UserEntitlement): """MemberEntitlement. :param access_level: User's access level denoted by a license. - :type access_level: :class:`AccessLevel ` + :type access_level: :class:`AccessLevel ` :param date_created: [Readonly] Date the user was added to the collection. :type date_created: datetime :param extensions: User's extensions. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param group_assignments: [Readonly] GroupEntitlements that this user belongs to. - :type group_assignments: list of :class:`GroupEntitlement ` + :type group_assignments: list of :class:`GroupEntitlement ` :param id: The unique identifier which matches the Id of the Identity associated with the GraphMember. :type id: str :param last_accessed_date: [Readonly] Date the user last accessed the collection. :type last_accessed_date: datetime :param project_entitlements: Relation between a project and the user's effective permissions in that project. - :type project_entitlements: list of :class:`ProjectEntitlement ` + :type project_entitlements: list of :class:`ProjectEntitlement ` :param user: User reference. - :type user: :class:`GraphUser ` + :type user: :class:`GraphUser ` :param member: Member reference - :type member: :class:`GraphMember ` + :type member: :class:`GraphMember ` """ _attribute_map = { @@ -883,7 +883,7 @@ class MemberEntitlementOperationReference(OperationReference): :param have_results_succeeded: True if all operations were successful :type have_results_succeeded: bool :param results: List of results for each operation - :type results: list of :class:`OperationResult ` + :type results: list of :class:`OperationResult ` """ _attribute_map = { @@ -909,9 +909,9 @@ class MemberEntitlementsPatchResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_results: List of results for each operation - :type operation_results: list of :class:`OperationResult ` + :type operation_results: list of :class:`OperationResult ` """ _attribute_map = { @@ -931,9 +931,9 @@ class MemberEntitlementsPostResponse(MemberEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param member_entitlement: Result of the member entitlement after the operations. have been applied - :type member_entitlement: :class:`MemberEntitlement ` + :type member_entitlement: :class:`MemberEntitlement ` :param operation_result: Operation result - :type operation_result: :class:`OperationResult ` + :type operation_result: :class:`OperationResult ` """ _attribute_map = { @@ -951,7 +951,7 @@ class PagedGraphMemberList(PagedList): """PagedGraphMemberList. :param members: - :type members: list of :class:`UserEntitlement ` + :type members: list of :class:`UserEntitlement ` """ _attribute_map = { @@ -969,9 +969,9 @@ class UserEntitlementsPatchResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_results: List of results for each operation. - :type operation_results: list of :class:`UserEntitlementOperationResult ` + :type operation_results: list of :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -991,9 +991,9 @@ class UserEntitlementsPostResponse(UserEntitlementsResponseBase): :param is_success: True if all operations were successful. :type is_success: bool :param user_entitlement: Result of the user entitlement after the operations have been applied. - :type user_entitlement: :class:`UserEntitlement ` + :type user_entitlement: :class:`UserEntitlement ` :param operation_result: Operation result. - :type operation_result: :class:`UserEntitlementOperationResult ` + :type operation_result: :class:`UserEntitlementOperationResult ` """ _attribute_map = { @@ -1011,7 +1011,7 @@ class GraphMember(GraphSubject): """GraphMember. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1059,7 +1059,7 @@ class GraphUser(GraphMember): """GraphUser. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -1116,7 +1116,7 @@ class GraphGroup(GraphMember): """GraphGroup. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. diff --git a/azure-devops/azure/devops/v5_1/notification/models.py b/azure-devops/azure/devops/v5_1/notification/models.py index 3656c00d..c04ae0b0 100644 --- a/azure-devops/azure/devops/v5_1/notification/models.py +++ b/azure-devops/azure/devops/v5_1/notification/models.py @@ -35,7 +35,7 @@ class BatchNotificationOperation(Model): :param notification_operation: :type notification_operation: object :param notification_query_conditions: - :type notification_query_conditions: list of :class:`NotificationQueryCondition ` + :type notification_query_conditions: list of :class:`NotificationQueryCondition ` """ _attribute_map = { @@ -221,9 +221,9 @@ class ExpressionFilterModel(Model): """ExpressionFilterModel. :param clauses: Flat list of clauses in this subscription - :type clauses: list of :class:`ExpressionFilterClause ` + :type clauses: list of :class:`ExpressionFilterClause ` :param groups: Grouping of clauses in the subscription - :type groups: list of :class:`ExpressionFilterGroup ` + :type groups: list of :class:`ExpressionFilterGroup ` :param max_group_level: Max depth of the Subscription tree :type max_group_level: int """ @@ -245,7 +245,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -273,7 +273,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -343,7 +343,7 @@ class INotificationDiagnosticLog(Model): :param log_type: :type log_type: str :param messages: - :type messages: list of :class:`NotificationDiagnosticLogMessage ` + :type messages: list of :class:`NotificationDiagnosticLogMessage ` :param properties: :type properties: dict :param source: @@ -407,7 +407,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -417,7 +417,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -463,7 +463,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -577,7 +577,7 @@ class NotificationEventField(Model): """NotificationEventField. :param field_type: Gets or sets the type of this field. - :type field_type: :class:`NotificationEventFieldType ` + :type field_type: :class:`NotificationEventFieldType ` :param id: Gets or sets the unique identifier of this field. :type id: str :param name: Gets or sets the name of this field. @@ -631,13 +631,13 @@ class NotificationEventFieldType(Model): :param id: Gets or sets the unique identifier of this field type. :type id: str :param operator_constraints: - :type operator_constraints: list of :class:`OperatorConstraint ` + :type operator_constraints: list of :class:`OperatorConstraint ` :param operators: Gets or sets the list of operators that this type supports. - :type operators: list of :class:`NotificationEventFieldOperator ` + :type operators: list of :class:`NotificationEventFieldOperator ` :param subscription_field_type: :type subscription_field_type: object :param value: Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI - :type value: :class:`ValueDefinition ` + :type value: :class:`ValueDefinition ` """ _attribute_map = { @@ -663,7 +663,7 @@ class NotificationEventPublisher(Model): :param id: :type id: str :param subscription_management_info: - :type subscription_management_info: :class:`SubscriptionManagement ` + :type subscription_management_info: :class:`SubscriptionManagement ` :param url: :type url: str """ @@ -709,13 +709,13 @@ class NotificationEventType(Model): """NotificationEventType. :param category: - :type category: :class:`NotificationEventTypeCategory ` + :type category: :class:`NotificationEventTypeCategory ` :param color: Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa :type color: str :param custom_subscriptions_allowed: :type custom_subscriptions_allowed: bool :param event_publisher: - :type event_publisher: :class:`NotificationEventPublisher ` + :type event_publisher: :class:`NotificationEventPublisher ` :param fields: :type fields: dict :param has_initiator: @@ -727,7 +727,7 @@ class NotificationEventType(Model): :param name: Gets or sets the name of this event definition. :type name: str :param roles: - :type roles: list of :class:`NotificationEventRole ` + :type roles: list of :class:`NotificationEventRole ` :param supported_scopes: Gets or sets the scopes that this event type supports :type supported_scopes: list of str :param url: Gets or sets the rest end point to get this event type details (fields, fields types) @@ -819,7 +819,7 @@ class NotificationReason(Model): :param notification_reason_type: :type notification_reason_type: object :param target_identities: - :type target_identities: list of :class:`IdentityRef ` + :type target_identities: list of :class:`IdentityRef ` """ _attribute_map = { @@ -861,7 +861,7 @@ class NotificationStatistic(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -885,7 +885,7 @@ class NotificationStatisticsQuery(Model): """NotificationStatisticsQuery. :param conditions: - :type conditions: list of :class:`NotificationStatisticsQueryConditions ` + :type conditions: list of :class:`NotificationStatisticsQueryConditions ` """ _attribute_map = { @@ -911,7 +911,7 @@ class NotificationStatisticsQueryConditions(Model): :param type: :type type: object :param user: - :type user: :class:`IdentityRef ` + :type user: :class:`IdentityRef ` """ _attribute_map = { @@ -985,41 +985,41 @@ class NotificationSubscription(Model): """NotificationSubscription. :param _links: Links to related resources, APIs, and views for the subscription. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param admin_settings: Admin-managed settings for the subscription. Only applies when the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Description of the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param diagnostics: Diagnostics for this subscription. - :type diagnostics: :class:`SubscriptionDiagnostics ` + :type diagnostics: :class:`SubscriptionDiagnostics ` :param extended_properties: Any extra properties like detailed description for different contexts, user/group contexts :type extended_properties: dict :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Read-only indicators that further describe the subscription. :type flags: object :param id: Subscription identifier. :type id: str :param last_modified_by: User that last modified (or created) the subscription. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param modified_date: Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. :type modified_date: datetime :param permissions: The permissions the user have for this subscriptions. :type permissions: object :param scope: The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Status of the subscription. Typically indicates whether the subscription is enabled or not. :type status: object :param status_message: Message that provides more details about the status of the subscription. :type status_message: str :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: REST API URL of the subscriotion. :type url: str :param user_settings: User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1069,15 +1069,15 @@ class NotificationSubscriptionCreateParameters(Model): """NotificationSubscriptionCreateParameters. :param channel: Channel for delivering notifications triggered by the new subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the new subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param subscriber: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` """ _attribute_map = { @@ -1103,11 +1103,11 @@ class NotificationSubscriptionTemplate(Model): :param description: :type description: str :param filter: - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param id: :type id: str :param notification_event_information: - :type notification_event_information: :class:`NotificationEventType ` + :type notification_event_information: :class:`NotificationEventType ` :param type: :type type: object """ @@ -1133,21 +1133,21 @@ class NotificationSubscriptionUpdateParameters(Model): """NotificationSubscriptionUpdateParameters. :param admin_settings: Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. - :type admin_settings: :class:`SubscriptionAdminSettings ` + :type admin_settings: :class:`SubscriptionAdminSettings ` :param channel: Channel for delivering notifications triggered by the subscription. - :type channel: :class:`ISubscriptionChannel ` + :type channel: :class:`ISubscriptionChannel ` :param description: Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. :type description: str :param filter: Matching criteria for the subscription. ExpressionFilter - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param scope: The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. - :type scope: :class:`SubscriptionScope ` + :type scope: :class:`SubscriptionScope ` :param status: Updated status for the subscription. Typically used to enable or disable a subscription. :type status: object :param status_message: Optional message that provides more details about the updated status. :type status_message: str :param user_settings: User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. - :type user_settings: :class:`SubscriptionUserSettings ` + :type user_settings: :class:`SubscriptionUserSettings ` """ _attribute_map = { @@ -1253,11 +1253,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1279,7 +1279,7 @@ class SubscriptionEvaluationRequest(Model): :param min_events_created_date: The min created date for the events used for matching in UTC. Use all events created since this date :type min_events_created_date: datetime :param subscription_create_parameters: User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. - :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` + :type subscription_create_parameters: :class:`NotificationSubscriptionCreateParameters ` """ _attribute_map = { @@ -1299,11 +1299,11 @@ class SubscriptionEvaluationResult(Model): :param evaluation_job_status: Subscription evaluation job status :type evaluation_job_status: object :param events: Subscription evaluation events results. - :type events: :class:`EventsEvaluationResult ` + :type events: :class:`EventsEvaluationResult ` :param id: The requestId which is the subscription evaluation jobId :type id: str :param notifications: Subscription evaluation notification results. - :type notifications: :class:`NotificationsEvaluationResult ` + :type notifications: :class:`NotificationsEvaluationResult ` """ _attribute_map = { @@ -1373,7 +1373,7 @@ class SubscriptionQuery(Model): """SubscriptionQuery. :param conditions: One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). - :type conditions: list of :class:`SubscriptionQueryCondition ` + :type conditions: list of :class:`SubscriptionQueryCondition ` :param query_flags: Flags the refine the types of subscriptions that will be returned from the query. :type query_flags: object """ @@ -1393,7 +1393,7 @@ class SubscriptionQueryCondition(Model): """SubscriptionQueryCondition. :param filter: Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. - :type filter: :class:`ISubscriptionFilter ` + :type filter: :class:`ISubscriptionFilter ` :param flags: Flags to specify the the type subscriptions to query for. :type flags: object :param scope: Scope that matching subscriptions must have. @@ -1494,11 +1494,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { @@ -1534,7 +1534,7 @@ class ValueDefinition(Model): """ValueDefinition. :param data_source: Gets or sets the data source. - :type data_source: list of :class:`InputValue ` + :type data_source: list of :class:`InputValue ` :param end_point: Gets or sets the rest end point. :type end_point: str :param result_template: Gets or sets the result template. @@ -1558,7 +1558,7 @@ class VssNotificationEvent(Model): """VssNotificationEvent. :param actors: Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - :type actors: list of :class:`EventActor ` + :type actors: list of :class:`EventActor ` :param artifact_uris: Optional: A list of artifacts referenced or impacted by this event. :type artifact_uris: list of str :param data: Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. @@ -1572,7 +1572,7 @@ class VssNotificationEvent(Model): :param process_delay: How long to wait before processing this event. The default is to process immediately. :type process_delay: object :param scopes: Optional: A list of scopes which are are relevant to the event. - :type scopes: list of :class:`EventScope ` + :type scopes: list of :class:`EventScope ` :param source_event_created_time: This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised. :type source_event_created_time: datetime """ @@ -1639,7 +1639,7 @@ class FieldInputValues(InputValues): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1649,7 +1649,7 @@ class FieldInputValues(InputValues): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` :param operators: :type operators: str """ @@ -1678,7 +1678,7 @@ class FieldValuesQuery(InputValuesQuery): :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object :param input_values: - :type input_values: list of :class:`FieldInputValues ` + :type input_values: list of :class:`FieldInputValues ` :param scope: :type scope: str """ diff --git a/azure-devops/azure/devops/v5_1/npm/models.py b/azure-devops/azure/devops/v5_1/npm/models.py index 42fd0870..252da241 100644 --- a/azure-devops/azure/devops/v5_1/npm/models.py +++ b/azure-devops/azure/devops/v5_1/npm/models.py @@ -73,11 +73,11 @@ class NpmPackagesBatchRequest(Model): """NpmPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on type of operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -137,7 +137,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deprecate_message: Deprecated message, if any, for the package. :type deprecate_message: str :param id: Package Id. @@ -147,7 +147,7 @@ class Package(Model): :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` + :type source_chain: list of :class:`UpstreamSourceInfo ` :param unpublished_date: If and when the package was deleted. :type unpublished_date: datetime :param version: The version of the package. @@ -183,7 +183,7 @@ class PackageVersionDetails(Model): :param deprecate_message: Indicates the deprecate message of a package version :type deprecate_message: str :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/nuGet/models.py b/azure-devops/azure/devops/v5_1/nuGet/models.py index 8e9ada13..ddce4906 100644 --- a/azure-devops/azure/devops/v5_1/nuGet/models.py +++ b/azure-devops/azure/devops/v5_1/nuGet/models.py @@ -73,11 +73,11 @@ class NuGetPackagesBatchRequest(Model): """NuGetPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { @@ -137,7 +137,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -147,7 +147,7 @@ class Package(Model): :param permanently_deleted_date: If and when the package was permanently deleted. :type permanently_deleted_date: datetime :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` + :type source_chain: list of :class:`UpstreamSourceInfo ` :param version: The version of the package. :type version: str """ @@ -179,7 +179,7 @@ class PackageVersionDetails(Model): :param listed: Indicates the listing state of a package :type listed: bool :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py b/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py index e037e22f..ab2d21fd 100644 --- a/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py +++ b/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py @@ -54,7 +54,7 @@ def download_package(self, feed_id, package_name, package_version, source_protoc def update_package_versions(self, batch_request, feed_id): """UpdatePackageVersions. [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. - :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. :param str feed_id: Name or ID of the feed. """ route_values = {} @@ -110,7 +110,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] Restore a package version from a feed's recycle bin back into the active feed. - :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation + :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. @@ -179,7 +179,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] Set mutable state on a package version. - :param :class:` ` package_version_details: New state to apply to the referenced package. + :param :class:` ` package_version_details: New state to apply to the referenced package. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package to update. :param str package_version: Version of the package to update. diff --git a/azure-devops/azure/devops/v5_1/operations/models.py b/azure-devops/azure/devops/v5_1/operations/models.py index 0ab0592a..79715934 100644 --- a/azure-devops/azure/devops/v5_1/operations/models.py +++ b/azure-devops/azure/devops/v5_1/operations/models.py @@ -81,13 +81,13 @@ class Operation(OperationReference): :param url: URL to get the full operation object. :type url: str :param _links: Links to other related objects. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param detailed_message: Detailed messaged about the status of an operation. :type detailed_message: str :param result_message: Result message for an operation. :type result_message: str :param result_url: URL to the operation result. - :type result_url: :class:`OperationResultReference ` + :type result_url: :class:`OperationResultReference ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/policy/models.py b/azure-devops/azure/devops/v5_1/policy/models.py index 2c2e7a51..03491033 100644 --- a/azure-devops/azure/devops/v5_1/policy/models.py +++ b/azure-devops/azure/devops/v5_1/policy/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -41,7 +41,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -103,7 +103,7 @@ class PolicyConfigurationRef(Model): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str """ @@ -125,15 +125,15 @@ class PolicyEvaluationRecord(Model): """PolicyEvaluationRecord. :param _links: Links to other related objects - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param artifact_id: A string which uniquely identifies the target of a policy evaluation. :type artifact_id: str :param completed_date: Time when this policy finished evaluating on this pull request. :type completed_date: datetime :param configuration: Contains all configuration data for the policy which is being evaluated. - :type configuration: :class:`PolicyConfiguration ` + :type configuration: :class:`PolicyConfiguration ` :param context: Internal context data of this policy evaluation. - :type context: :class:`object ` + :type context: :class:`object ` :param evaluation_id: Guid which uniquely identifies this evaluation record (one policy running on one pull request). :type evaluation_id: str :param started_date: Time when this policy was first evaluated on this pull request. @@ -211,7 +211,7 @@ class VersionedPolicyConfigurationRef(PolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. @@ -236,15 +236,15 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param id: The policy configuration ID. :type id: int :param type: The policy configuration type. - :type type: :class:`PolicyTypeRef ` + :type type: :class:`PolicyTypeRef ` :param url: The URL where the policy configuration can be retrieved. :type url: str :param revision: The policy configuration revision ID. :type revision: int :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_by: A reference to the identity that created the policy. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The date and time when the policy was created. :type created_date: datetime :param is_blocking: Indicates whether the policy is blocking. @@ -254,7 +254,7 @@ class PolicyConfiguration(VersionedPolicyConfigurationRef): :param is_enabled: Indicates whether the policy is enabled. :type is_enabled: bool :param settings: The policy configuration settings. - :type settings: :class:`object ` + :type settings: :class:`object ` """ _attribute_map = { @@ -292,7 +292,7 @@ class PolicyType(PolicyTypeRef): :param url: The URL where the policy type can be retrieved. :type url: str :param _links: The links to other objects related to this object. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Detailed description of the policy type. :type description: str """ diff --git a/azure-devops/azure/devops/v5_1/profile/models.py b/azure-devops/azure/devops/v5_1/profile/models.py index fd05c747..97914fd6 100644 --- a/azure-devops/azure/devops/v5_1/profile/models.py +++ b/azure-devops/azure/devops/v5_1/profile/models.py @@ -53,7 +53,7 @@ class ProfileRegions(Model): :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out :type opt_out_contact_consent_requirement_regions: list of str :param regions: List of country/regions - :type regions: list of :class:`ProfileRegion ` + :type regions: list of :class:`ProfileRegion ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/project_analysis/models.py b/azure-devops/azure/devops/v5_1/project_analysis/models.py index ddefc4ad..6c12c3e2 100644 --- a/azure-devops/azure/devops/v5_1/project_analysis/models.py +++ b/azure-devops/azure/devops/v5_1/project_analysis/models.py @@ -102,7 +102,7 @@ class ProjectActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param project_id: :type project_id: str :param pull_requests_completed_count: @@ -142,9 +142,9 @@ class ProjectLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param repository_language_analytics: - :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` + :type repository_language_analytics: list of :class:`RepositoryLanguageAnalytics ` :param result_phase: :type result_phase: object :param url: @@ -177,7 +177,7 @@ class RepositoryActivityMetrics(Model): :param code_changes_count: :type code_changes_count: int :param code_changes_trend: - :type code_changes_trend: list of :class:`CodeChangeTrendItem ` + :type code_changes_trend: list of :class:`CodeChangeTrendItem ` :param repository_id: :type repository_id: str """ @@ -207,7 +207,7 @@ class RepositoryLanguageAnalytics(LanguageMetricsSecuredObject): :param id: :type id: str :param language_breakdown: - :type language_breakdown: list of :class:`LanguageStatistics ` + :type language_breakdown: list of :class:`LanguageStatistics ` :param name: :type name: str :param result_phase: diff --git a/azure-devops/azure/devops/v5_1/py_pi_api/models.py b/azure-devops/azure/devops/v5_1/py_pi_api/models.py index 7a29e072..fd41f992 100644 --- a/azure-devops/azure/devops/v5_1/py_pi_api/models.py +++ b/azure-devops/azure/devops/v5_1/py_pi_api/models.py @@ -73,7 +73,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -109,7 +109,7 @@ class PackageVersionDetails(Model): """PackageVersionDetails. :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -125,11 +125,11 @@ class PyPiPackagesBatchRequest(Model): """PyPiPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/security/models.py b/azure-devops/azure/devops/v5_1/security/models.py index 4cbf0e23..a406cbaa 100644 --- a/azure-devops/azure/devops/v5_1/security/models.py +++ b/azure-devops/azure/devops/v5_1/security/models.py @@ -17,9 +17,9 @@ class AccessControlEntry(Model): :param deny: The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. :type deny: int :param descriptor: The descriptor for the user this AccessControlEntry applies to. - :type descriptor: :class:`str ` + :type descriptor: :class:`str ` :param extended_info: This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - :type extended_info: :class:`AceExtendedInformation ` + :type extended_info: :class:`AceExtendedInformation ` """ _attribute_map = { @@ -167,7 +167,7 @@ class PermissionEvaluationBatch(Model): :param always_allow_administrators: True if members of the Administrators group should always pass the security check. :type always_allow_administrators: bool :param evaluations: Array of permission evaluations to evaluate. - :type evaluations: list of :class:`PermissionEvaluation ` + :type evaluations: list of :class:`PermissionEvaluation ` """ _attribute_map = { @@ -185,7 +185,7 @@ class SecurityNamespaceDescription(Model): """SecurityNamespaceDescription. :param actions: The list of actions that this Security Namespace is responsible for securing. - :type actions: list of :class:`ActionDefinition ` + :type actions: list of :class:`ActionDefinition ` :param dataspace_category: This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. :type dataspace_category: str :param display_name: This localized name for this namespace. diff --git a/azure-devops/azure/devops/v5_1/service_endpoint/models.py b/azure-devops/azure/devops/v5_1/service_endpoint/models.py index 1c5b05dc..d296ce91 100644 --- a/azure-devops/azure/devops/v5_1/service_endpoint/models.py +++ b/azure-devops/azure/devops/v5_1/service_endpoint/models.py @@ -131,7 +131,7 @@ class AzureManagementGroupQueryResult(Model): :param error_message: Error message in case of an exception :type error_message: str :param value: List of azure management groups - :type value: list of :class:`AzureManagementGroup ` + :type value: list of :class:`AzureManagementGroup ` """ _attribute_map = { @@ -179,7 +179,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -213,7 +213,7 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param callback_context_template: :type callback_context_template: str :param callback_required_template: @@ -221,7 +221,7 @@ class DataSource(Model): :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: :type initial_context_template: str :param name: @@ -279,7 +279,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -337,7 +337,7 @@ class DataSourceDetails(Model): :param data_source_url: Gets or sets the data source url. :type data_source_url: str :param headers: Gets or sets the request headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Gets or sets the initialization context used for the initial call to the data source :type initial_context_template: str :param parameters: Gets the parameters of data source. @@ -423,7 +423,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -461,7 +461,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -493,7 +493,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -541,7 +541,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -623,11 +623,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -739,7 +739,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -749,7 +749,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -797,7 +797,7 @@ class OAuthConfiguration(Model): :param client_secret: Gets or sets the ClientSecret :type client_secret: str :param created_by: Gets or sets the identity who created the config. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when config was created. :type created_on: datetime :param endpoint_type: Gets or sets the type of the endpoint. @@ -805,7 +805,7 @@ class OAuthConfiguration(Model): :param id: Gets or sets the unique identifier of this field :type id: str :param modified_by: Gets or sets the identity who modified the config. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets the name @@ -937,11 +937,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -957,11 +957,11 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param owner: Owner of the endpoint Supported values are "library", "agentcloud" :type owner: str :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1009,17 +1009,17 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param authorization_url: Gets or sets the Authorization url required to authenticate using OAuth2 :type authorization_url: str :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -1049,7 +1049,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: Gets or sets the authorization of service endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: Gets or sets the data of service endpoint. :type data: dict :param type: Gets or sets the type of service endpoint. @@ -1077,13 +1077,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`ServiceEndpointExecutionOwner ` + :type definition: :class:`ServiceEndpointExecutionOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`ServiceEndpointExecutionOwner ` + :type owner: :class:`ServiceEndpointExecutionOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1117,7 +1117,7 @@ class ServiceEndpointExecutionOwner(Model): """ServiceEndpointExecutionOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: Gets or sets the Id of service endpoint execution owner. :type id: int :param name: Gets or sets the name of service endpoint execution owner. @@ -1141,7 +1141,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1161,7 +1161,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1181,11 +1181,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: Gets or sets the data source details for the service endpoint request. - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: Gets or sets the result transformation details for the service endpoint request. - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: Gets or sets the service endpoint details for the service endpoint request. - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1211,7 +1211,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: Gets or sets the error message of the service endpoint request result. :type error_message: str :param result: Gets or sets the result of service endpoint request. - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: Gets or sets the status code of the service endpoint request result. :type status_code: object """ @@ -1237,25 +1237,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1311,7 +1311,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. diff --git a/azure-devops/azure/devops/v5_1/service_hooks/models.py b/azure-devops/azure/devops/v5_1/service_hooks/models.py index ff0f49e6..e10f5139 100644 --- a/azure-devops/azure/devops/v5_1/service_hooks/models.py +++ b/azure-devops/azure/devops/v5_1/service_hooks/models.py @@ -13,15 +13,15 @@ class Consumer(Model): """Consumer. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param actions: Gets this consumer's actions. - :type actions: list of :class:`ConsumerAction ` + :type actions: list of :class:`ConsumerAction ` :param authentication_type: Gets or sets this consumer's authentication type. :type authentication_type: object :param description: Gets or sets this consumer's localized description. :type description: str :param external_configuration: Non-null only if subscriptions for this consumer are configured externally. - :type external_configuration: :class:`ExternalConfigurationDescriptor ` + :type external_configuration: :class:`ExternalConfigurationDescriptor ` :param id: Gets or sets this consumer's identifier. :type id: str :param image_url: Gets or sets this consumer's image URL, if any. @@ -29,7 +29,7 @@ class Consumer(Model): :param information_url: Gets or sets this consumer's information URL, if any. :type information_url: str :param input_descriptors: Gets or sets this consumer's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this consumer's localized name. :type name: str :param url: The url for this resource @@ -69,7 +69,7 @@ class ConsumerAction(Model): """ConsumerAction. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allow_resource_version_override: Gets or sets the flag indicating if resource version can be overridden when creating or editing a subscription. :type allow_resource_version_override: bool :param consumer_id: Gets or sets the identifier of the consumer to which this action belongs. @@ -79,7 +79,7 @@ class ConsumerAction(Model): :param id: Gets or sets this action's identifier. :type id: str :param input_descriptors: Gets or sets this action's input descriptors. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets this action's localized name. :type name: str :param supported_event_types: Gets or sets this action's supported event identifiers. @@ -123,13 +123,13 @@ class Event(Model): :param created_date: Gets or sets the UTC-based date and time that this event was created. :type created_date: datetime :param detailed_message: Gets or sets the detailed message associated with this event. - :type detailed_message: :class:`FormattedEventMessage ` + :type detailed_message: :class:`FormattedEventMessage ` :param event_type: Gets or sets the type of this event. :type event_type: str :param id: Gets or sets the unique identifier of this event. :type id: str :param message: Gets or sets the (brief) message associated with this event. - :type message: :class:`FormattedEventMessage ` + :type message: :class:`FormattedEventMessage ` :param publisher_id: Gets or sets the identifier of the publisher that raised this event. :type publisher_id: str :param resource: Gets or sets the data associated with this event. @@ -139,7 +139,7 @@ class Event(Model): :param resource_version: Gets or sets the version of the data associated with this event. :type resource_version: str :param session_token: Gets or sets the Session Token that can be used in further interactions - :type session_token: :class:`SessionToken ` + :type session_token: :class:`SessionToken ` """ _attribute_map = { @@ -177,7 +177,7 @@ class EventTypeDescriptor(Model): :param id: A unique id for the event type :type id: str :param input_descriptors: Event-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: A localized friendly name for the event type :type name: str :param publisher_id: A unique id for the publisher of this event type @@ -261,7 +261,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -289,7 +289,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -371,11 +371,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -417,7 +417,7 @@ class InputFilter(Model): """InputFilter. :param conditions: Groups of input filter expressions. This filter matches a set of inputs if any (one or more) of the groups evaluates to true. - :type conditions: list of :class:`InputFilterCondition ` + :type conditions: list of :class:`InputFilterCondition ` """ _attribute_map = { @@ -531,7 +531,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -541,7 +541,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -587,7 +587,7 @@ class InputValuesQuery(Model): :param current_values: :type current_values: dict :param input_values: The input values to return on input, and the result from the consumer on output. - :type input_values: list of :class:`InputValues ` + :type input_values: list of :class:`InputValues ` :param resource: Subscription containing information about the publisher/consumer and the current input values :type resource: object """ @@ -611,7 +611,7 @@ class Notification(Model): :param created_date: Gets or sets date and time that this result was created. :type created_date: datetime :param details: Details about this notification (if available) - :type details: :class:`NotificationDetails ` + :type details: :class:`NotificationDetails ` :param event_id: The event id associated with this notification :type event_id: str :param id: The notification id @@ -671,7 +671,7 @@ class NotificationDetails(Model): :param error_message: Gets or sets this notification detail's error message. :type error_message: str :param event: Gets or sets this notification detail's event content. - :type event: :class:`Event ` + :type event: :class:`Event ` :param event_type: Gets or sets this notification detail's event type. :type event_type: str :param processed_date: Gets or sets the time that this notification was finished processing (just before the request is sent to the consumer) @@ -757,7 +757,7 @@ class NotificationsQuery(Model): """NotificationsQuery. :param associated_subscriptions: The subscriptions associated with the notifications returned from the query - :type associated_subscriptions: list of :class:`Subscription ` + :type associated_subscriptions: list of :class:`Subscription ` :param include_details: If true, we will return all notification history for the query provided; otherwise, the summary is returned. :type include_details: bool :param max_created_date: Optional maximum date at which the notification was created @@ -771,7 +771,7 @@ class NotificationsQuery(Model): :param publisher_id: Optional publisher id to restrict the results to :type publisher_id: str :param results: Results from the query - :type results: list of :class:`Notification ` + :type results: list of :class:`Notification ` :param result_type: Optional notification result type to filter results to :type result_type: object :param status: Optional notification status to filter results to @@ -779,7 +779,7 @@ class NotificationsQuery(Model): :param subscription_ids: Optional list of subscription ids to restrict the results to :type subscription_ids: list of str :param summary: Summary of notifications - the count of each result type (success, fail, ..). - :type summary: list of :class:`NotificationSummary ` + :type summary: list of :class:`NotificationSummary ` """ _attribute_map = { @@ -817,7 +817,7 @@ class NotificationSummary(Model): """NotificationSummary. :param results: The notification results for this particular subscription. - :type results: list of :class:`NotificationResultsSummaryDetail ` + :type results: list of :class:`NotificationResultsSummaryDetail ` :param subscription_id: The subscription id associated with this notification :type subscription_id: str """ @@ -837,19 +837,19 @@ class Publisher(Model): """Publisher. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: Gets this publisher's localized description. :type description: str :param id: Gets this publisher's identifier. :type id: str :param input_descriptors: Publisher-specific inputs - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets this publisher's localized name. :type name: str :param service_instance_type: The service instance type of the first party publisher. :type service_instance_type: str :param supported_events: Gets this publisher's supported event types. - :type supported_events: list of :class:`EventTypeDescriptor ` + :type supported_events: list of :class:`EventTypeDescriptor ` :param url: The url for this resource :type url: str """ @@ -883,17 +883,17 @@ class PublisherEvent(Model): :param diagnostics: Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton. :type diagnostics: dict :param event: The event being published - :type event: :class:`Event ` + :type event: :class:`Event ` :param is_filtered_event: Gets or sets flag for filtered events :type is_filtered_event: bool :param notification_data: Additional data that needs to be sent as part of notification to complement the Resource data in the Event :type notification_data: dict :param other_resource_versions: Gets or sets the array of older supported resource versions. - :type other_resource_versions: list of :class:`VersionedResource ` + :type other_resource_versions: list of :class:`VersionedResource ` :param publisher_input_filters: Optional publisher-input filters which restricts the set of subscriptions which are triggered by the event - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param subscription: Gets or sets matchd hooks subscription which caused this event. - :type subscription: :class:`Subscription ` + :type subscription: :class:`Subscription ` """ _attribute_map = { @@ -925,7 +925,7 @@ class PublishersQuery(Model): :param publisher_inputs: Filter for publisher inputs :type publisher_inputs: dict :param results: Results from the query - :type results: list of :class:`Publisher ` + :type results: list of :class:`Publisher ` """ _attribute_map = { @@ -1013,7 +1013,7 @@ class Subscription(Model): """Subscription. :param _links: Reference Links - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param action_description: :type action_description: str :param consumer_action_id: @@ -1023,7 +1023,7 @@ class Subscription(Model): :param consumer_inputs: Consumer input values :type consumer_inputs: dict :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: :type created_date: datetime :param event_description: @@ -1033,7 +1033,7 @@ class Subscription(Model): :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: :type modified_date: datetime :param probation_retries: @@ -1047,7 +1047,7 @@ class Subscription(Model): :param status: :type status: object :param subscriber: - :type subscriber: :class:`IdentityRef ` + :type subscriber: :class:`IdentityRef ` :param url: :type url: str """ @@ -1101,11 +1101,11 @@ class SubscriptionDiagnostics(Model): """SubscriptionDiagnostics. :param delivery_results: - :type delivery_results: :class:`SubscriptionTracing ` + :type delivery_results: :class:`SubscriptionTracing ` :param delivery_tracing: - :type delivery_tracing: :class:`SubscriptionTracing ` + :type delivery_tracing: :class:`SubscriptionTracing ` :param evaluation_tracing: - :type evaluation_tracing: :class:`SubscriptionTracing ` + :type evaluation_tracing: :class:`SubscriptionTracing ` """ _attribute_map = { @@ -1129,15 +1129,15 @@ class SubscriptionsQuery(Model): :param consumer_id: Optional consumer id to restrict the results to (null for any) :type consumer_id: str :param consumer_input_filters: Filter for subscription consumer inputs - :type consumer_input_filters: list of :class:`InputFilter ` + :type consumer_input_filters: list of :class:`InputFilter ` :param event_type: Optional event type id to restrict the results to (null for any) :type event_type: str :param publisher_id: Optional publisher id to restrict the results to (null for any) :type publisher_id: str :param publisher_input_filters: Filter for subscription publisher inputs - :type publisher_input_filters: list of :class:`InputFilter ` + :type publisher_input_filters: list of :class:`InputFilter ` :param results: Results from the query - :type results: list of :class:`Subscription ` + :type results: list of :class:`Subscription ` :param subscriber_id: Optional subscriber filter. :type subscriber_id: str """ @@ -1201,11 +1201,11 @@ class UpdateSubscripitonDiagnosticsParameters(Model): """UpdateSubscripitonDiagnosticsParameters. :param delivery_results: - :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_results: :class:`UpdateSubscripitonTracingParameters ` :param delivery_tracing: - :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type delivery_tracing: :class:`UpdateSubscripitonTracingParameters ` :param evaluation_tracing: - :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` + :type evaluation_tracing: :class:`UpdateSubscripitonTracingParameters ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/symbol/models.py b/azure-devops/azure/devops/v5_1/symbol/models.py index 048a71b3..e9cbfbda 100644 --- a/azure-devops/azure/devops/v5_1/symbol/models.py +++ b/azure-devops/azure/devops/v5_1/symbol/models.py @@ -15,7 +15,7 @@ class DebugEntryCreateBatch(Model): :param create_behavior: Defines what to do when a debug entry in the batch already exists. :type create_behavior: object :param debug_entries: The debug entries. - :type debug_entries: list of :class:`DebugEntry ` + :type debug_entries: list of :class:`DebugEntry ` """ _attribute_map = { @@ -65,7 +65,7 @@ class JsonBlobIdentifierWithBlocks(Model): """JsonBlobIdentifierWithBlocks. :param block_hashes: List of blob block hashes. - :type block_hashes: list of :class:`JsonBlobBlockHash ` + :type block_hashes: list of :class:`JsonBlobBlockHash ` :param identifier_value: Array of blobId bytes. :type identifier_value: str """ @@ -127,9 +127,9 @@ class DebugEntry(ResourceBase): :param url: A URI which can be used to retrieve this item in its raw format. Optional. Note this is distinguished from other URIs that are present in a derived resource. :type url: str :param blob_details: Details of the blob formatted to be deserialized for symbol service. - :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` + :type blob_details: :class:`JsonBlobIdentifierWithBlocks ` :param blob_identifier: A blob identifier of the symbol file to upload to this debug entry. This property is mostly used during creation of debug entry (a.k.a. symbol publishing) to allow the server to query the existence of the blob. - :type blob_identifier: :class:`JsonBlobIdentifier ` + :type blob_identifier: :class:`JsonBlobIdentifier ` :param blob_uri: The URI to get the symbol file. Provided by the server, the URI contains authentication information and is readily accessible by plain HTTP GET request. The client is recommended to retrieve the file as soon as it can since the URI will expire in a short period. :type blob_uri: str :param client_key: A key the client (debugger, for example) uses to find the debug entry. Note it is not unique for each different symbol file as it does not distinguish between those which only differ by information level. diff --git a/azure-devops/azure/devops/v5_1/task/models.py b/azure-devops/azure/devops/v5_1/task/models.py index b77f3b2d..6d5efc3b 100644 --- a/azure-devops/azure/devops/v5_1/task/models.py +++ b/azure-devops/azure/devops/v5_1/task/models.py @@ -81,7 +81,7 @@ class PlanEnvironment(Model): """PlanEnvironment. :param mask: - :type mask: list of :class:`MaskHint ` + :type mask: list of :class:`MaskHint ` :param options: :type options: dict :param variables: @@ -141,7 +141,7 @@ class TaskAttachment(Model): """TaskAttachment. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_on: :type created_on: datetime :param last_changed_by: @@ -221,7 +221,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -269,9 +269,9 @@ class TaskOrchestrationPlanReference(Model): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -315,9 +315,9 @@ class TaskOrchestrationQueuedPlan(Model): :param assign_time: :type assign_time: datetime :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -361,15 +361,15 @@ class TaskOrchestrationQueuedPlanGroup(Model): """TaskOrchestrationQueuedPlanGroup. :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plans: - :type plans: list of :class:`TaskOrchestrationQueuedPlan ` + :type plans: list of :class:`TaskOrchestrationQueuedPlan ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param queue_position: :type queue_position: int """ @@ -459,7 +459,7 @@ class TimelineRecord(Model): :param current_operation: :type current_operation: str :param details: - :type details: :class:`TimelineReference ` + :type details: :class:`TimelineReference ` :param error_count: :type error_count: int :param finish_time: @@ -469,13 +469,13 @@ class TimelineRecord(Model): :param identifier: :type identifier: str :param issues: - :type issues: list of :class:`Issue ` + :type issues: list of :class:`Issue ` :param last_modified: :type last_modified: datetime :param location: :type location: str :param log: - :type log: :class:`TaskLogReference ` + :type log: :class:`TaskLogReference ` :param name: :type name: str :param order: @@ -485,7 +485,7 @@ class TimelineRecord(Model): :param percent_complete: :type percent_complete: int :param previous_attempts: - :type previous_attempts: list of :class:`TimelineAttempt ` + :type previous_attempts: list of :class:`TimelineAttempt ` :param ref_name: :type ref_name: str :param result: @@ -497,7 +497,7 @@ class TimelineRecord(Model): :param state: :type state: object :param task: - :type task: :class:`TaskReference ` + :type task: :class:`TaskReference ` :param type: :type type: str :param variables: @@ -681,7 +681,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param item_type: :type item_type: object :param children: - :type children: list of :class:`TaskOrchestrationItem ` + :type children: list of :class:`TaskOrchestrationItem ` :param continue_on_error: :type continue_on_error: bool :param data: @@ -691,7 +691,7 @@ class TaskOrchestrationContainer(TaskOrchestrationItem): :param parallel: :type parallel: bool :param rollback: - :type rollback: :class:`TaskOrchestrationContainer ` + :type rollback: :class:`TaskOrchestrationContainer ` """ _attribute_map = { @@ -722,9 +722,9 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param artifact_uri: :type artifact_uri: str :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -736,13 +736,13 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param version: :type version: int :param environment: - :type environment: :class:`PlanEnvironment ` + :type environment: :class:`PlanEnvironment ` :param finish_time: :type finish_time: datetime :param implementation: - :type implementation: :class:`TaskOrchestrationContainer ` + :type implementation: :class:`TaskOrchestrationContainer ` :param initialization_log: - :type initialization_log: :class:`TaskLogReference ` + :type initialization_log: :class:`TaskLogReference ` :param requested_by_id: :type requested_by_id: str :param requested_for_id: @@ -756,7 +756,7 @@ class TaskOrchestrationPlan(TaskOrchestrationPlanReference): :param state: :type state: object :param timeline: - :type timeline: :class:`TimelineReference ` + :type timeline: :class:`TimelineReference ` """ _attribute_map = { @@ -811,7 +811,7 @@ class Timeline(TimelineReference): :param last_changed_on: :type last_changed_on: datetime :param records: - :type records: list of :class:`TimelineRecord ` + :type records: list of :class:`TimelineRecord ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/task_agent/models.py b/azure-devops/azure/devops/v5_1/task_agent/models.py index 045f41f3..5c302d38 100644 --- a/azure-devops/azure/devops/v5_1/task_agent/models.py +++ b/azure-devops/azure/devops/v5_1/task_agent/models.py @@ -131,7 +131,7 @@ class AzureManagementGroupQueryResult(Model): :param error_message: Error message in case of an exception :type error_message: str :param value: List of azure management groups - :type value: list of :class:`AzureManagementGroup ` + :type value: list of :class:`AzureManagementGroup ` """ _attribute_map = { @@ -179,7 +179,7 @@ class AzureSubscriptionQueryResult(Model): :param error_message: :type error_message: str :param value: - :type value: list of :class:`AzureSubscription ` + :type value: list of :class:`AzureSubscription ` """ _attribute_map = { @@ -213,11 +213,11 @@ class DataSource(Model): """DataSource. :param authentication_scheme: - :type authentication_scheme: :class:`AuthenticationSchemeReference ` + :type authentication_scheme: :class:`AuthenticationSchemeReference ` :param endpoint_url: :type endpoint_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param name: :type name: str :param resource_url: @@ -259,7 +259,7 @@ class DataSourceBindingBase(Model): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -317,7 +317,7 @@ class DataSourceDetails(Model): :param data_source_url: :type data_source_url: str :param headers: - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param parameters: :type parameters: dict :param resource_url: @@ -391,7 +391,7 @@ class DependsOn(Model): :param input: :type input: str :param map: - :type map: list of :class:`DependencyBinding ` + :type map: list of :class:`DependencyBinding ` """ _attribute_map = { @@ -413,7 +413,7 @@ class DeploymentGroupCreateParameter(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132. - :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` + :type pool: :class:`DeploymentGroupCreateParameterPoolProperty ` :param pool_id: Identifier of the deployment pool in which deployment agents are registered. :type pool_id: int """ @@ -453,11 +453,11 @@ class DeploymentGroupMetrics(Model): """DeploymentGroupMetrics. :param columns_header: List of deployment group properties. And types of metrics provided for those properties. - :type columns_header: :class:`MetricsColumnsHeader ` + :type columns_header: :class:`MetricsColumnsHeader ` :param deployment_group: Deployment group. - :type deployment_group: :class:`DeploymentGroupReference ` + :type deployment_group: :class:`DeploymentGroupReference ` :param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'. - :type rows: list of :class:`MetricsRow ` + :type rows: list of :class:`MetricsRow ` """ _attribute_map = { @@ -481,9 +481,9 @@ class DeploymentGroupReference(Model): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -525,11 +525,11 @@ class DeploymentMachine(Model): """DeploymentMachine. :param agent: Deployment agent. - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: Deployment target Identifier. :type id: int :param properties: Properties of the deployment target. - :type properties: :class:`object ` + :type properties: :class:`object ` :param tags: Tags of the deployment target. :type tags: list of str """ @@ -557,9 +557,9 @@ class DeploymentMachineGroupReference(Model): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` """ _attribute_map = { @@ -581,13 +581,13 @@ class DeploymentPoolSummary(Model): """DeploymentPoolSummary. :param deployment_groups: List of deployment groups referring to the deployment pool. - :type deployment_groups: list of :class:`DeploymentGroupReference ` + :type deployment_groups: list of :class:`DeploymentGroupReference ` :param offline_agents_count: Number of deployment agents that are offline. :type offline_agents_count: int :param online_agents_count: Number of deployment agents that are online. :type online_agents_count: int :param pool: Deployment pool. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` """ _attribute_map = { @@ -649,7 +649,7 @@ class EndpointUrl(Model): """EndpointUrl. :param depends_on: Gets or sets the dependency bindings. - :type depends_on: :class:`DependsOn ` + :type depends_on: :class:`DependsOn ` :param display_name: Gets or sets the display name of service endpoint url. :type display_name: str :param help_text: Gets or sets the help text of service endpoint url. @@ -701,7 +701,7 @@ class EnvironmentDeploymentExecutionRecord(Model): """EnvironmentDeploymentExecutionRecord. :param definition: Definition of the environment deployment execution owner - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param environment_id: Id of the Environment :type environment_id: int :param finish_time: Finish time of the environment deployment execution @@ -709,7 +709,7 @@ class EnvironmentDeploymentExecutionRecord(Model): :param id: Id of the Environment deployment execution history record :type id: long :param owner: Owner of the environment deployment execution record - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_id: Plan Id :type plan_id: str :param plan_type: Plan type of the environment deployment execution record @@ -769,7 +769,7 @@ class EnvironmentInstance(Model): """EnvironmentInstance. :param created_by: Identity reference of the user who created the Environment. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Creation time of the Environment :type created_on: datetime :param description: Description of the Environment. @@ -777,13 +777,13 @@ class EnvironmentInstance(Model): :param id: Id of the Environment :type id: int :param last_modified_by: Identity reference of the user who last modified the Environment. - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: Last modified time of the Environment :type last_modified_on: datetime :param name: Name of the Environment. :type name: str :param service_groups: - :type service_groups: list of :class:`ServiceGroupReference ` + :type service_groups: list of :class:`ServiceGroupReference ` """ _attribute_map = { @@ -853,7 +853,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -901,7 +901,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -983,11 +983,11 @@ class InputDescriptor(Model): :param use_in_default_description: Gets whether this input is included in the default generated action description. :type use_in_default_description: bool :param validation: Information to use to validate this input's value - :type validation: :class:`InputValidation ` + :type validation: :class:`InputValidation ` :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. :type value_hint: str :param values: Information about possible values for this input - :type values: :class:`InputValues ` + :type values: :class:`InputValues ` """ _attribute_map = { @@ -1115,7 +1115,7 @@ class InputValues(Model): :param default_value: The default value to use for this input :type default_value: str :param error: Errors encountered while computing dynamic values. - :type error: :class:`InputValuesError ` + :type error: :class:`InputValuesError ` :param input_id: The id of the input :type input_id: str :param is_disabled: Should this input be disabled @@ -1125,7 +1125,7 @@ class InputValues(Model): :param is_read_only: Should this input be made read-only :type is_read_only: bool :param possible_values: Possible values that this input can take - :type possible_values: list of :class:`InputValue ` + :type possible_values: list of :class:`InputValue ` """ _attribute_map = { @@ -1237,9 +1237,9 @@ class MetricsColumnsHeader(Model): """MetricsColumnsHeader. :param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState - :type dimensions: list of :class:`MetricsColumnMetaData ` + :type dimensions: list of :class:`MetricsColumnMetaData ` :param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets. - :type metrics: list of :class:`MetricsColumnMetaData ` + :type metrics: list of :class:`MetricsColumnMetaData ` """ _attribute_map = { @@ -1291,7 +1291,7 @@ class PackageMetadata(Model): :param type: The type of package (e.g. "agent") :type type: str :param version: The package version. - :type version: :class:`PackageVersion ` + :type version: :class:`PackageVersion ` """ _attribute_map = { @@ -1457,9 +1457,9 @@ class ResourceUsage(Model): """ResourceUsage. :param resource_limit: - :type resource_limit: :class:`ResourceLimit ` + :type resource_limit: :class:`ResourceLimit ` :param running_requests: - :type running_requests: list of :class:`TaskAgentJobRequest ` + :type running_requests: list of :class:`TaskAgentJobRequest ` :param used_count: :type used_count: int :param used_minutes: @@ -1501,13 +1501,13 @@ class SecureFile(Model): """SecureFile. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param id: :type id: str :param modified_by: - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: :type modified_on: datetime :param name: @@ -1545,11 +1545,11 @@ class ServiceEndpoint(Model): """ServiceEndpoint. :param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint. - :type administrators_group: :class:`IdentityRef ` + :type administrators_group: :class:`IdentityRef ` :param authorization: Gets or sets the authorization data for talking to the endpoint. - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param created_by: Gets or sets the identity reference for the user who created the Service endpoint. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param data: :type data: dict :param description: Gets or sets the description of endpoint. @@ -1565,9 +1565,9 @@ class ServiceEndpoint(Model): :param name: Gets or sets the friendly name of the endpoint. :type name: str :param operation_status: Error message during creation/deletion of endpoint - :type operation_status: :class:`object ` + :type operation_status: :class:`object ` :param readers_group: Gets or sets the identity reference for the readers group of the service endpoint. - :type readers_group: :class:`IdentityRef ` + :type readers_group: :class:`IdentityRef ` :param type: Gets or sets the type of the endpoint. :type type: str :param url: Gets or sets the url of the endpoint. @@ -1613,13 +1613,13 @@ class ServiceEndpointAuthenticationScheme(Model): """ServiceEndpointAuthenticationScheme. :param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme. - :type authorization_headers: list of :class:`AuthorizationHeader ` + :type authorization_headers: list of :class:`AuthorizationHeader ` :param client_certificates: Gets or sets the certificates of service endpoint authentication scheme. - :type client_certificates: list of :class:`ClientCertificate ` + :type client_certificates: list of :class:`ClientCertificate ` :param display_name: Gets or sets the display name for the service endpoint authentication scheme. :type display_name: str :param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param scheme: Gets or sets the scheme for service endpoint authentication. :type scheme: str """ @@ -1645,7 +1645,7 @@ class ServiceEndpointDetails(Model): """ServiceEndpointDetails. :param authorization: - :type authorization: :class:`EndpointAuthorization ` + :type authorization: :class:`EndpointAuthorization ` :param data: :type data: dict :param type: @@ -1673,13 +1673,13 @@ class ServiceEndpointExecutionData(Model): """ServiceEndpointExecutionData. :param definition: Gets the definition of service endpoint execution owner. - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param finish_time: Gets the finish time of service endpoint execution. :type finish_time: datetime :param id: Gets the Id of service endpoint execution data. :type id: long :param owner: Gets the owner of service endpoint execution data. - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_type: Gets the plan type of service endpoint execution data. :type plan_type: str :param result: Gets the result of service endpoint execution. @@ -1713,7 +1713,7 @@ class ServiceEndpointExecutionRecord(Model): """ServiceEndpointExecutionRecord. :param data: Gets the execution data of service endpoint execution. - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_id: Gets the Id of service endpoint. :type endpoint_id: str """ @@ -1733,7 +1733,7 @@ class ServiceEndpointExecutionRecordsInput(Model): """ServiceEndpointExecutionRecordsInput. :param data: - :type data: :class:`ServiceEndpointExecutionData ` + :type data: :class:`ServiceEndpointExecutionData ` :param endpoint_ids: :type endpoint_ids: list of str """ @@ -1753,11 +1753,11 @@ class ServiceEndpointRequest(Model): """ServiceEndpointRequest. :param data_source_details: - :type data_source_details: :class:`DataSourceDetails ` + :type data_source_details: :class:`DataSourceDetails ` :param result_transformation_details: - :type result_transformation_details: :class:`ResultTransformationDetails ` + :type result_transformation_details: :class:`ResultTransformationDetails ` :param service_endpoint_details: - :type service_endpoint_details: :class:`ServiceEndpointDetails ` + :type service_endpoint_details: :class:`ServiceEndpointDetails ` """ _attribute_map = { @@ -1779,7 +1779,7 @@ class ServiceEndpointRequestResult(Model): :param error_message: :type error_message: str :param result: - :type result: :class:`object ` + :type result: :class:`object ` :param status_code: :type status_code: object """ @@ -1801,25 +1801,25 @@ class ServiceEndpointType(Model): """ServiceEndpointType. :param authentication_schemes: Authentication scheme of service endpoint type. - :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` + :type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme ` :param data_sources: Data sources of service endpoint type. - :type data_sources: list of :class:`DataSource ` + :type data_sources: list of :class:`DataSource ` :param dependency_data: Dependency data of service endpoint type. - :type dependency_data: list of :class:`DependencyData ` + :type dependency_data: list of :class:`DependencyData ` :param description: Gets or sets the description of service endpoint type. :type description: str :param display_name: Gets or sets the display name of service endpoint type. :type display_name: str :param endpoint_url: Gets or sets the endpoint url of service endpoint type. - :type endpoint_url: :class:`EndpointUrl ` + :type endpoint_url: :class:`EndpointUrl ` :param help_link: Gets or sets the help link of service endpoint type. - :type help_link: :class:`HelpLink ` + :type help_link: :class:`HelpLink ` :param help_mark_down: :type help_mark_down: str :param icon_url: Gets or sets the icon url of service endpoint type. :type icon_url: str :param input_descriptors: Input descriptor of service endpoint type. - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of service endpoint type. :type name: str :param trusted_hosts: Trusted hosts of a service endpoint type. @@ -1865,15 +1865,15 @@ class ServiceGroup(Model): """ServiceGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -1937,7 +1937,7 @@ class TaskAgentAuthorization(Model): :param client_id: Gets or sets the client identifier for this agent. :type client_id: str :param public_key: Gets or sets the public key used to verify the identity of this agent. - :type public_key: :class:`TaskAgentPublicKey ` + :type public_key: :class:`TaskAgentPublicKey ` """ _attribute_map = { @@ -2009,17 +2009,17 @@ class TaskAgentCloudRequest(Model): """TaskAgentCloudRequest. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param agent_cloud_id: :type agent_cloud_id: int :param agent_connected_time: :type agent_connected_time: datetime :param agent_data: - :type agent_data: :class:`object ` + :type agent_data: :class:`object ` :param agent_specification: - :type agent_specification: :class:`object ` + :type agent_specification: :class:`object ` :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param provisioned_time: :type provisioned_time: datetime :param provision_request_time: @@ -2063,7 +2063,7 @@ class TaskAgentCloudType(Model): :param display_name: Gets or sets the display name of agnet cloud type. :type display_name: str :param input_descriptors: Gets or sets the input descriptors - :type input_descriptors: list of :class:`InputDescriptor ` + :type input_descriptors: list of :class:`InputDescriptor ` :param name: Gets or sets the name of agent cloud type. :type name: str """ @@ -2087,7 +2087,7 @@ class TaskAgentDelaySource(Model): :param delays: :type delays: list of object :param task_agent: - :type task_agent: :class:`TaskAgentReference ` + :type task_agent: :class:`TaskAgentReference ` """ _attribute_map = { @@ -2105,17 +2105,17 @@ class TaskAgentJobRequest(Model): """TaskAgentJobRequest. :param agent_delays: - :type agent_delays: list of :class:`TaskAgentDelaySource ` + :type agent_delays: list of :class:`TaskAgentDelaySource ` :param agent_specification: - :type agent_specification: :class:`object ` + :type agent_specification: :class:`object ` :param assign_time: :type assign_time: datetime :param data: :type data: dict :param definition: - :type definition: :class:`TaskOrchestrationOwner ` + :type definition: :class:`TaskOrchestrationOwner ` :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param expected_duration: :type expected_duration: object :param finish_time: @@ -2129,13 +2129,13 @@ class TaskAgentJobRequest(Model): :param locked_until: :type locked_until: datetime :param matched_agents: - :type matched_agents: list of :class:`TaskAgentReference ` + :type matched_agents: list of :class:`TaskAgentReference ` :param matches_all_agents_in_pool: :type matches_all_agents_in_pool: bool :param orchestration_id: :type orchestration_id: str :param owner: - :type owner: :class:`TaskOrchestrationOwner ` + :type owner: :class:`TaskOrchestrationOwner ` :param plan_group: :type plan_group: str :param plan_id: @@ -2153,7 +2153,7 @@ class TaskAgentJobRequest(Model): :param request_id: :type request_id: long :param reserved_agent: - :type reserved_agent: :class:`TaskAgentReference ` + :type reserved_agent: :class:`TaskAgentReference ` :param result: :type result: object :param scope_id: @@ -2269,13 +2269,13 @@ class TaskAgentPoolMaintenanceDefinition(Model): :param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time :type max_concurrent_agents_percentage: int :param options: - :type options: :class:`TaskAgentPoolMaintenanceOptions ` + :type options: :class:`TaskAgentPoolMaintenanceOptions ` :param pool: Pool reference for the maintenance definition - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param retention_policy: - :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` + :type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy ` :param schedule_setting: - :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` + :type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule ` """ _attribute_map = { @@ -2317,11 +2317,11 @@ class TaskAgentPoolMaintenanceJob(Model): :param orchestration_id: Orchestration/Plan Id for the maintenance job :type orchestration_id: str :param pool: Pool reference for the maintenance job - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param queue_time: Time that the maintenance job was queued :type queue_time: datetime :param requested_by: The identity that queued the maintenance job - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param result: The maintenance job result :type result: object :param start_time: Time that the maintenance job was started @@ -2329,7 +2329,7 @@ class TaskAgentPoolMaintenanceJob(Model): :param status: Status of the maintenance job :type status: object :param target_agents: - :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` + :type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent ` :param warning_count: The total warning counts during the maintenance job :type warning_count: int """ @@ -2373,7 +2373,7 @@ class TaskAgentPoolMaintenanceJobTargetAgent(Model): """TaskAgentPoolMaintenanceJobTargetAgent. :param agent: - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param job_id: :type job_id: int :param result: @@ -2525,7 +2525,7 @@ class TaskAgentQueue(Model): :param name: Name of the queue :type name: str :param pool: Pool reference for this queue - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project_id: Project Id :type project_id: str """ @@ -2549,7 +2549,7 @@ class TaskAgentReference(Model): """TaskAgentReference. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param access_point: Gets the access point of the agent. :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. @@ -2597,9 +2597,9 @@ class TaskAgentSession(Model): """TaskAgentSession. :param agent: Gets or sets the agent which is the target of the session. - :type agent: :class:`TaskAgentReference ` + :type agent: :class:`TaskAgentReference ` :param encryption_key: Gets the key used to encrypt message traffic for this session. - :type encryption_key: :class:`TaskAgentSessionKey ` + :type encryption_key: :class:`TaskAgentSessionKey ` :param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination. :type owner_name: str :param session_id: Gets the unique identifier for this session. @@ -2651,15 +2651,15 @@ class TaskAgentUpdate(Model): :param current_state: The current state of this agent update :type current_state: str :param reason: The reason of this agent update - :type reason: :class:`TaskAgentUpdateReason ` + :type reason: :class:`TaskAgentUpdateReason ` :param requested_by: The identity that request the agent update - :type requested_by: :class:`IdentityRef ` + :type requested_by: :class:`IdentityRef ` :param request_time: Gets the date on which this agent update was requested. :type request_time: datetime :param source_version: Gets or sets the source agent version of the agent update - :type source_version: :class:`PackageVersion ` + :type source_version: :class:`PackageVersion ` :param target_version: Gets or sets the target agent version of the agent update - :type target_version: :class:`PackageVersion ` + :type target_version: :class:`PackageVersion ` """ _attribute_map = { @@ -2701,7 +2701,7 @@ class TaskDefinition(Model): """TaskDefinition. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2713,11 +2713,11 @@ class TaskDefinition(Model): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2731,7 +2731,7 @@ class TaskDefinition(Model): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2741,7 +2741,7 @@ class TaskDefinition(Model): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2749,7 +2749,7 @@ class TaskDefinition(Model): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -2771,11 +2771,11 @@ class TaskDefinition(Model): :param show_environment_variables: :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str """ @@ -2929,7 +2929,7 @@ class TaskExecution(Model): """TaskExecution. :param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline - :type exec_task: :class:`TaskReference ` + :type exec_task: :class:`TaskReference ` :param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", } :type platform_instructions: dict """ @@ -2949,7 +2949,7 @@ class TaskGroup(TaskDefinition): """TaskGroup. :param agent_execution: - :type agent_execution: :class:`TaskExecution ` + :type agent_execution: :class:`TaskExecution ` :param author: :type author: str :param category: @@ -2961,11 +2961,11 @@ class TaskGroup(TaskDefinition): :param contribution_version: :type contribution_version: str :param data_source_bindings: - :type data_source_bindings: list of :class:`DataSourceBinding ` + :type data_source_bindings: list of :class:`DataSourceBinding ` :param definition_type: :type definition_type: str :param demands: - :type demands: list of :class:`object ` + :type demands: list of :class:`object ` :param deprecated: :type deprecated: bool :param description: @@ -2979,7 +2979,7 @@ class TaskGroup(TaskDefinition): :param friendly_name: :type friendly_name: str :param groups: - :type groups: list of :class:`TaskGroupDefinition ` + :type groups: list of :class:`TaskGroupDefinition ` :param help_mark_down: :type help_mark_down: str :param host_type: @@ -2989,7 +2989,7 @@ class TaskGroup(TaskDefinition): :param id: :type id: str :param inputs: - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: :type instance_name_format: str :param minimum_agent_version: @@ -2997,7 +2997,7 @@ class TaskGroup(TaskDefinition): :param name: :type name: str :param output_variables: - :type output_variables: list of :class:`TaskOutputVariable ` + :type output_variables: list of :class:`TaskOutputVariable ` :param package_location: :type package_location: str :param package_type: @@ -3019,23 +3019,23 @@ class TaskGroup(TaskDefinition): :param show_environment_variables: :type show_environment_variables: bool :param source_definitions: - :type source_definitions: list of :class:`TaskSourceDefinition ` + :type source_definitions: list of :class:`TaskSourceDefinition ` :param source_location: :type source_location: str :param version: - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` :param visibility: :type visibility: list of str :param comment: Gets or sets comment. :type comment: str :param created_by: Gets or sets the identity who created. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets date on which it got created. :type created_on: datetime :param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise. :type deleted: bool :param modified_by: Gets or sets the identity who modified. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets date on which it got modified. :type modified_on: datetime :param owner: Gets or sets the owner. @@ -3045,7 +3045,7 @@ class TaskGroup(TaskDefinition): :param revision: Gets or sets revision. :type revision: int :param tasks: Gets or sets the tasks. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` """ _attribute_map = { @@ -3128,7 +3128,7 @@ class TaskGroupCreateParameter(Model): :param icon_url: Sets url icon of the task group. :type icon_url: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -3138,9 +3138,9 @@ class TaskGroupCreateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -3210,7 +3210,7 @@ class TaskGroupRevision(Model): """TaskGroupRevision. :param changed_by: - :type changed_by: :class:`IdentityRef ` + :type changed_by: :class:`IdentityRef ` :param changed_date: :type changed_date: datetime :param change_type: @@ -3264,7 +3264,7 @@ class TaskGroupStep(Model): :param inputs: Gets or sets dictionary of inputs. :type inputs: dict :param task: Gets or sets the reference of the task. - :type task: :class:`TaskDefinitionReference ` + :type task: :class:`TaskDefinitionReference ` :param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout. :type timeout_in_minutes: int """ @@ -3312,7 +3312,7 @@ class TaskGroupUpdateParameter(Model): :param id: Sets the unique identifier of this field. :type id: str :param inputs: Sets input for the task group. - :type inputs: list of :class:`TaskInputDefinition ` + :type inputs: list of :class:`TaskInputDefinition ` :param instance_name_format: Sets display name of the task group. :type instance_name_format: str :param name: Sets name of the task group. @@ -3324,9 +3324,9 @@ class TaskGroupUpdateParameter(Model): :param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'. :type runs_on: list of str :param tasks: Sets tasks for the task group. - :type tasks: list of :class:`TaskGroupStep ` + :type tasks: list of :class:`TaskGroupStep ` :param version: Sets version of the task group. - :type version: :class:`TaskVersion ` + :type version: :class:`TaskVersion ` """ _attribute_map = { @@ -3386,7 +3386,7 @@ class TaskHubLicenseDetails(Model): :param hosted_licenses_are_premium: :type hosted_licenses_are_premium: bool :param marketplace_purchased_hosted_licenses: - :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` + :type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense ` :param msdn_users_count: :type msdn_users_count: int :param purchased_hosted_license_count: Microsoft-hosted licenses purchased from VSTS directly. @@ -3462,7 +3462,7 @@ class TaskInputDefinitionBase(Model): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ @@ -3522,7 +3522,7 @@ class TaskOrchestrationOwner(Model): """TaskOrchestrationOwner. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param id: :type id: int :param name: @@ -3706,7 +3706,7 @@ class VariableGroup(Model): """VariableGroup. :param created_by: Gets or sets the identity who created the variable group. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets or sets the time when variable group was created. :type created_on: datetime :param description: Gets or sets description of the variable group. @@ -3716,13 +3716,13 @@ class VariableGroup(Model): :param is_shared: Indicates whether variable group is shared with other projects or not. :type is_shared: bool :param modified_by: Gets or sets the identity who modified the variable group. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_on: Gets or sets the time when variable group was modified :type modified_on: datetime :param name: Gets or sets name of the variable group. :type name: str :param provider_data: Gets or sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Gets or sets type of the variable group. :type type: str :param variables: Gets or sets variables contained in the variable group. @@ -3766,7 +3766,7 @@ class VariableGroupParameters(Model): :param name: Sets name of the variable group. :type name: str :param provider_data: Sets provider data. - :type provider_data: :class:`VariableGroupProviderData ` + :type provider_data: :class:`VariableGroupProviderData ` :param type: Sets type of the variable group. :type type: str :param variables: Sets variables contained in the variable group. @@ -3826,7 +3826,7 @@ class VirtualMachine(Model): """VirtualMachine. :param agent: - :type agent: :class:`TaskAgent ` + :type agent: :class:`TaskAgent ` :param id: :type id: int :param tags: @@ -3850,15 +3850,15 @@ class VirtualMachineGroup(ServiceGroup): """VirtualMachineGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -3916,7 +3916,7 @@ class DataSourceBinding(DataSourceBindingBase): :param endpoint_url: Gets or sets the url of the service endpoint. :type endpoint_url: str :param headers: Gets or sets the authorization headers. - :type headers: list of :class:`AuthorizationHeader ` + :type headers: list of :class:`AuthorizationHeader ` :param initial_context_template: Defines the initial value of the query params :type initial_context_template: str :param parameters: Gets or sets the parameters for the data source. @@ -3961,15 +3961,15 @@ class DeploymentGroup(DeploymentGroupReference): :param name: Name of the deployment group. :type name: str :param pool: Deployment pool in which deployment agents are registered. - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: Project to which the deployment group belongs. - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param description: Description of the deployment group. :type description: str :param machine_count: Number of deployment targets in the deployment group. :type machine_count: int :param machines: List of deployment targets in the deployment group. - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param machine_tags: List of unique tags across all deployment targets in the deployment group. :type machine_tags: list of str """ @@ -4001,11 +4001,11 @@ class DeploymentMachineGroup(DeploymentMachineGroupReference): :param name: :type name: str :param pool: - :type pool: :class:`TaskAgentPoolReference ` + :type pool: :class:`TaskAgentPoolReference ` :param project: - :type project: :class:`ProjectReference ` + :type project: :class:`ProjectReference ` :param machines: - :type machines: list of :class:`DeploymentMachine ` + :type machines: list of :class:`DeploymentMachine ` :param size: :type size: int """ @@ -4029,15 +4029,15 @@ class KubernetesServiceGroup(ServiceGroup): """KubernetesServiceGroup. :param created_by: - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: :type created_on: datetime :param environment_reference: - :type environment_reference: :class:`EnvironmentReference ` + :type environment_reference: :class:`EnvironmentReference ` :param id: :type id: int :param last_modified_by: - :type last_modified_by: :class:`IdentityRef ` + :type last_modified_by: :class:`IdentityRef ` :param last_modified_on: :type last_modified_on: datetime :param name: @@ -4073,7 +4073,7 @@ class TaskAgent(TaskAgentReference): """TaskAgent. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param access_point: Gets the access point of the agent. :type access_point: str :param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution. @@ -4091,21 +4091,21 @@ class TaskAgent(TaskAgentReference): :param version: Gets the version of the agent. :type version: str :param assigned_agent_cloud_request: Gets the Agent Cloud Request that's currently associated with this agent - :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` + :type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest ` :param assigned_request: Gets the request which is currently assigned to this agent. - :type assigned_request: :class:`TaskAgentJobRequest ` + :type assigned_request: :class:`TaskAgentJobRequest ` :param authorization: Gets or sets the authorization information for this agent. - :type authorization: :class:`TaskAgentAuthorization ` + :type authorization: :class:`TaskAgentAuthorization ` :param created_on: Gets the date on which this agent was created. :type created_on: datetime :param last_completed_request: Gets the last request which was completed by this agent. - :type last_completed_request: :class:`TaskAgentJobRequest ` + :type last_completed_request: :class:`TaskAgentJobRequest ` :param max_parallelism: Gets or sets the maximum job parallelism allowed on this host. :type max_parallelism: int :param pending_update: Gets the pending update for this agent. - :type pending_update: :class:`TaskAgentUpdate ` + :type pending_update: :class:`TaskAgentUpdate ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param status_changed_on: Gets the date on which the last connectivity status change occurred. :type status_changed_on: datetime :param system_capabilities: @@ -4174,13 +4174,13 @@ class TaskAgentPool(TaskAgentPoolReference): :param auto_size: Gets or sets a value indicating whether or not the pool should autosize itself based on the Agent Cloud Provider settings :type auto_size: bool :param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_on: Gets the date/time of the pool creation. :type created_on: datetime :param owner: Gets the identity who owns or administrates this pool. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param properties: - :type properties: :class:`object ` + :type properties: :class:`object ` :param target_size: Gets or sets a value indicating target parallelism :type target_size: int """ @@ -4238,7 +4238,7 @@ class TaskInputDefinition(TaskInputDefinitionBase): :param type: :type type: str :param validation: - :type validation: :class:`TaskInputValidation ` + :type validation: :class:`TaskInputValidation ` :param visible_rule: :type visible_rule: str """ diff --git a/azure-devops/azure/devops/v5_1/test/models.py b/azure-devops/azure/devops/v5_1/test/models.py index 31101727..8f40f0a7 100644 --- a/azure-devops/azure/devops/v5_1/test/models.py +++ b/azure-devops/azure/devops/v5_1/test/models.py @@ -19,7 +19,7 @@ class AggregatedDataForResultTrend(Model): :param run_summary_by_state: :type run_summary_by_state: dict :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_tests: :type total_tests: int """ @@ -49,11 +49,11 @@ class AggregatedResultsAnalysis(Model): :param not_reported_results_by_outcome: :type not_reported_results_by_outcome: dict :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` :param results_by_outcome: :type results_by_outcome: dict :param results_difference: - :type results_difference: :class:`AggregatedResultsDifference ` + :type results_difference: :class:`AggregatedResultsDifference ` :param run_summary_by_outcome: :type run_summary_by_outcome: dict :param run_summary_by_state: @@ -217,7 +217,7 @@ class BuildConfiguration(Model): :param platform: :type platform: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param repository_guid: :type repository_guid: str :param repository_id: @@ -271,11 +271,11 @@ class BuildCoverage(Model): :param code_coverage_file_url: Code Coverage File Url :type code_coverage_file_url: str :param configuration: Build Configuration - :type configuration: :class:`BuildConfiguration ` + :type configuration: :class:`BuildConfiguration ` :param last_error: Last Error :type last_error: str :param modules: List of Modules - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: State :type state: str """ @@ -341,17 +341,17 @@ class CloneOperationInformation(Model): """CloneOperationInformation. :param clone_statistics: Clone Statistics - :type clone_statistics: :class:`CloneStatistics ` + :type clone_statistics: :class:`CloneStatistics ` :param completion_date: If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue :type completion_date: datetime :param creation_date: DateTime when the operation was started :type creation_date: datetime :param destination_object: Shallow reference of the destination - :type destination_object: :class:`ShallowReference ` + :type destination_object: :class:`ShallowReference ` :param destination_plan: Shallow reference of the destination - :type destination_plan: :class:`ShallowReference ` + :type destination_plan: :class:`ShallowReference ` :param destination_project: Shallow reference of the destination - :type destination_project: :class:`ShallowReference ` + :type destination_project: :class:`ShallowReference ` :param message: If the operation has Failed, Message contains the reason for failure. Null otherwise. :type message: str :param op_id: The ID of the operation @@ -359,11 +359,11 @@ class CloneOperationInformation(Model): :param result_object_type: The type of the object generated as a result of the Clone operation :type result_object_type: object :param source_object: Shallow reference of the source - :type source_object: :class:`ShallowReference ` + :type source_object: :class:`ShallowReference ` :param source_plan: Shallow reference of the source - :type source_plan: :class:`ShallowReference ` + :type source_plan: :class:`ShallowReference ` :param source_project: Shallow reference of the source - :type source_project: :class:`ShallowReference ` + :type source_project: :class:`ShallowReference ` :param state: Current state of the operation. When State reaches Suceeded or Failed, the operation is complete :type state: object :param url: Url for geting the clone information @@ -481,7 +481,7 @@ class CodeCoverageData(Model): :param build_platform: Platform of build for which data is retrieved/published :type build_platform: str :param coverage_stats: List of coverage data for the build - :type coverage_stats: list of :class:`CodeCoverageStatistics ` + :type coverage_stats: list of :class:`CodeCoverageStatistics ` """ _attribute_map = { @@ -537,11 +537,11 @@ class CodeCoverageSummary(Model): """CodeCoverageSummary. :param build: Uri of build for which data is retrieved/published - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param coverage_data: List of coverage data and details for the build - :type coverage_data: list of :class:`CodeCoverageData ` + :type coverage_data: list of :class:`CodeCoverageData ` :param delta_build: Uri of build against which difference in coverage is computed - :type delta_build: :class:`ShallowReference ` + :type delta_build: :class:`ShallowReference ` """ _attribute_map = { @@ -665,11 +665,11 @@ class FailingSince(Model): """FailingSince. :param build: Build reference since failing. - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param date: Time since failing. :type date: datetime :param release: Release reference since failing. - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -717,7 +717,7 @@ class FunctionCoverage(Model): :param source_file: :type source_file: str :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -741,7 +741,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -769,7 +769,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -833,7 +833,7 @@ class LastResultDetails(Model): :param duration: :type duration: long :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` """ _attribute_map = { @@ -899,7 +899,7 @@ class LinkedWorkItemsQueryResult(Model): :param test_case_id: :type test_case_id: int :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -931,7 +931,7 @@ class ModuleCoverage(Model): :param file_url: Code Coverage File Url :type file_url: str :param functions: - :type functions: list of :class:`FunctionCoverage ` + :type functions: list of :class:`FunctionCoverage ` :param name: :type name: str :param signature: @@ -939,7 +939,7 @@ class ModuleCoverage(Model): :param signature_age: :type signature_age: int :param statistics: - :type statistics: :class:`CoverageStatistics ` + :type statistics: :class:`CoverageStatistics ` """ _attribute_map = { @@ -989,15 +989,15 @@ class PlanUpdateModel(Model): """PlanUpdateModel. :param area: Area path to which the test plan belongs. This should be set to area path of the team that works on this test plan. - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: Build ID of the build whose quality is tested by the tests in this test plan. For automated testing, this build ID is used to find the test binaries that contain automated test methods. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: The Build Definition that generates a build associated with this test plan. - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param configuration_ids: IDs of configurations to be applied when new test suites and test cases are added to the test plan. :type configuration_ids: list of int :param description: Description of the test plan. @@ -1007,15 +1007,15 @@ class PlanUpdateModel(Model): :param iteration: Iteration path assigned to the test plan. This indicates when the target iteration by which the testing in this plan is supposed to be complete and the product is ready to be released. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: Name of the test plan. :type name: str :param owner: Owner of the test plan. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param start_date: Start date for the test plan. :type start_date: str :param state: State of the test plan. @@ -1023,7 +1023,7 @@ class PlanUpdateModel(Model): :param status: :type status: str :param test_outcome_settings: Test Outcome settings - :type test_outcome_settings: :class:`TestOutcomeSettings ` + :type test_outcome_settings: :class:`TestOutcomeSettings ` """ _attribute_map = { @@ -1073,9 +1073,9 @@ class PointAssignment(Model): """PointAssignment. :param configuration: Configuration that was assigned to the test case. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param tester: Tester that was assigned to the test case - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1097,7 +1097,7 @@ class PointsFilter(Model): :param testcase_ids: List of test case id for filtering. :type testcase_ids: list of int :param testers: List of tester for filtering. - :type testers: list of :class:`IdentityRef ` + :type testers: list of :class:`IdentityRef ` """ _attribute_map = { @@ -1121,7 +1121,7 @@ class PointUpdateModel(Model): :param reset_to_active: Reset test point to active. :type reset_to_active: bool :param tester: Tester to update. Type IdentityRef. - :type tester: :class:`IdentityRef ` + :type tester: :class:`IdentityRef ` """ _attribute_map = { @@ -1263,7 +1263,7 @@ class ResultRetentionSettings(Model): :param automated_results_retention_duration: Automated test result retention duration in days :type automated_results_retention_duration: int :param last_updated_by: Last Updated by identity - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param manual_results_retention_duration: Manual test result retention duration in days @@ -1309,7 +1309,7 @@ class ResultsFilter(Model): :param test_point_ids: :type test_point_ids: list of int :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param trend_days: :type trend_days: int """ @@ -1351,7 +1351,7 @@ class RunCreateModel(Model): :param automated: true if test run is automated, false otherwise. By default it will be false. :type automated: bool :param build: An abstracted reference to the build that it belongs. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: Drop location of the build used for test run. :type build_drop_location: str :param build_flavor: Flavor of the build used for test run. (E.g: Release, Debug) @@ -1359,7 +1359,7 @@ class RunCreateModel(Model): :param build_platform: Platform of the build used for test run. (E.g.: x86, amd64) :type build_platform: str :param build_reference: - :type build_reference: :class:`BuildConfiguration ` + :type build_reference: :class:`BuildConfiguration ` :param comment: Comments entered by those analyzing the run. :type comment: str :param complete_date: Completed date time of the run. @@ -1369,37 +1369,37 @@ class RunCreateModel(Model): :param controller: Name of the test controller used for automated run. :type controller: str :param custom_test_fields: - :type custom_test_fields: list of :class:`CustomTestField ` + :type custom_test_fields: list of :class:`CustomTestField ` :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_test_environment: An abstracted reference to DtlTestEnvironment. - :type dtl_test_environment: :class:`ShallowReference ` + :type dtl_test_environment: :class:`ShallowReference ` :param due_date: Due date and time for test run. :type due_date: str :param environment_details: - :type environment_details: :class:`DtlEnvironmentDetails ` + :type environment_details: :class:`DtlEnvironmentDetails ` :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param iteration: The iteration in which to create the run. Root iteration of the team project will be default :type iteration: str :param name: Name of the test run. :type name: str :param owner: Display name of the owner of the run. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param plan: An abstracted reference to the plan that it belongs. - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param point_ids: IDs of the test points to use in the run. :type point_ids: list of int :param release_environment_uri: URI of release environment associated with the run. :type release_environment_uri: str :param release_reference: - :type release_reference: :class:`ReleaseReference ` + :type release_reference: :class:`ReleaseReference ` :param release_uri: URI of release associated with the run. :type release_uri: str :param run_summary: Run summary for run Type = NoConfigRun. - :type run_summary: list of :class:`RunSummaryModel ` + :type run_summary: list of :class:`RunSummaryModel ` :param run_timeout: :type run_timeout: object :param source_workflow: @@ -1413,7 +1413,7 @@ class RunCreateModel(Model): :param test_environment_id: ID of the test environment associated with the run. :type test_environment_id: str :param test_settings: An abstracted reference to the test settings resource. - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param type: Type of the run(RunType) :type type: str """ @@ -1521,7 +1521,7 @@ class RunStatistic(Model): :param outcome: Test run outcome :type outcome: str :param resolution_state: - :type resolution_state: :class:`TestResolutionState ` + :type resolution_state: :class:`TestResolutionState ` :param state: State of the test run :type state: str """ @@ -1569,7 +1569,7 @@ class RunUpdateModel(Model): """RunUpdateModel. :param build: An abstracted reference to the build that it belongs. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_drop_location: :type build_drop_location: str :param build_flavor: @@ -1585,11 +1585,11 @@ class RunUpdateModel(Model): :param delete_in_progress_results: :type delete_in_progress_results: bool :param dtl_aut_environment: An abstracted reference to DtlAutEnvironment. - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: An abstracted reference to DtlEnvironment. - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_details: - :type dtl_environment_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_details: :class:`DtlEnvironmentDetails ` :param due_date: Due date and time for test run. :type due_date: str :param error_message: Error message associated with the run. @@ -1597,7 +1597,7 @@ class RunUpdateModel(Model): :param iteration: The iteration in which to create the run. :type iteration: str :param log_entries: Log entries associated with the run. Use a comma-separated list of multiple log entry objects. { logEntry }, { logEntry }, ... - :type log_entries: list of :class:`TestMessageLogDetails ` + :type log_entries: list of :class:`TestMessageLogDetails ` :param name: Name of the test run. :type name: str :param release_environment_uri: @@ -1605,7 +1605,7 @@ class RunUpdateModel(Model): :param release_uri: :type release_uri: str :param run_summary: Run summary for run Type = NoConfigRun. - :type run_summary: list of :class:`RunSummaryModel ` + :type run_summary: list of :class:`RunSummaryModel ` :param source_workflow: :type source_workflow: str :param started_date: Start date time of the run. @@ -1617,7 +1617,7 @@ class RunUpdateModel(Model): :param test_environment_id: :type test_environment_id: str :param test_settings: An abstracted reference to test setting resource. - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` """ _attribute_map = { @@ -1865,9 +1865,9 @@ class SuiteTestCase(Model): """SuiteTestCase. :param point_assignments: Point Assignment for test suite's test case. - :type point_assignments: list of :class:`PointAssignment ` + :type point_assignments: list of :class:`PointAssignment ` :param test_case: Test case workItem reference. - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` """ _attribute_map = { @@ -1885,7 +1885,7 @@ class SuiteTestCaseUpdateModel(Model): """SuiteTestCaseUpdateModel. :param configurations: Shallow reference of configurations for the test cases in the suite. - :type configurations: list of :class:`ShallowReference ` + :type configurations: list of :class:`ShallowReference ` """ _attribute_map = { @@ -1901,15 +1901,15 @@ class SuiteUpdateModel(Model): """SuiteUpdateModel. :param default_configurations: Shallow reference of default configurations for the suite. - :type default_configurations: list of :class:`ShallowReference ` + :type default_configurations: list of :class:`ShallowReference ` :param default_testers: Shallow reference of test suite. - :type default_testers: list of :class:`ShallowReference ` + :type default_testers: list of :class:`ShallowReference ` :param inherit_default_configurations: Specifies if the default configurations have to be inherited from the parent test suite in which the test suite is created. :type inherit_default_configurations: bool :param name: Test suite name :type name: str :param parent: Shallow reference of the parent. - :type parent: :class:`ShallowReference ` + :type parent: :class:`ShallowReference ` :param query_string: For query based suites, the new query string. :type query_string: str """ @@ -2107,9 +2107,9 @@ class TestCaseResult(Model): :param afn_strip_id: Test attachment ID of action recording. :type afn_strip_id: int :param area: Reference to area path of test. - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_bugs: Reference to bugs linked to test result. - :type associated_bugs: list of :class:`ShallowReference ` + :type associated_bugs: list of :class:`ShallowReference ` :param automated_test_id: ID representing test method in a dll. :type automated_test_id: str :param automated_test_name: Fully qualified name of test executed. @@ -2121,9 +2121,9 @@ class TestCaseResult(Model): :param automated_test_type_id: :type automated_test_type_id: str :param build: Shallow reference to build associated with test result. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_reference: Reference to build associated with test result. - :type build_reference: :class:`BuildReference ` + :type build_reference: :class:`BuildReference ` :param comment: Comment in a test result. :type comment: str :param completed_date: Time when test execution completed. @@ -2131,39 +2131,39 @@ class TestCaseResult(Model): :param computer_name: Machine name where test executed. :type computer_name: str :param configuration: Test configuration of a test result. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param created_date: Timestamp when test result created. :type created_date: datetime :param custom_fields: Additional properties of test result. - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: Duration of test execution in milliseconds. :type duration_in_ms: float :param error_message: Error message in test execution. :type error_message: str :param failing_since: Information when test results started failing. - :type failing_since: :class:`FailingSince ` + :type failing_since: :class:`FailingSince ` :param failure_type: Failure type of test result. :type failure_type: str :param id: ID of a test result. :type id: int :param iteration_details: Test result details of test iterations. - :type iteration_details: list of :class:`TestIterationDetailsModel ` + :type iteration_details: list of :class:`TestIterationDetailsModel ` :param last_updated_by: Reference to identity last updated test result. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated datetime of test result. :type last_updated_date: datetime :param outcome: Test outcome of test result. :type outcome: str :param owner: Reference to test owner. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param priority: Priority of test executed. :type priority: int :param project: Reference to team project. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: Shallow reference to release associated with test result. - :type release: :class:`ShallowReference ` + :type release: :class:`ShallowReference ` :param release_reference: Reference to release associated with test result. - :type release_reference: :class:`ReleaseReference ` + :type release_reference: :class:`ReleaseReference ` :param reset_count: :type reset_count: int :param resolution_state: Resolution state of test result. @@ -2175,7 +2175,7 @@ class TestCaseResult(Model): :param revision: Revision number of test result. :type revision: int :param run_by: Reference to identity executed the test. - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: Stacktrace. :type stack_trace: str :param started_date: Time when test execution started. @@ -2183,9 +2183,9 @@ class TestCaseResult(Model): :param state: State of test result. :type state: str :param sub_results: List of sub results inside a test result, if ResultGroupType is not None, it holds corresponding type sub results. - :type sub_results: list of :class:`TestSubResult ` + :type sub_results: list of :class:`TestSubResult ` :param test_case: Reference to the test executed. - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_reference_id: Reference ID of test used by test result. :type test_case_reference_id: int :param test_case_revision: Name of test. @@ -2193,13 +2193,13 @@ class TestCaseResult(Model): :param test_case_title: Name of test. :type test_case_title: str :param test_plan: Reference to test plan test case workitem is part of. - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param test_point: Reference to the test point executed. - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` :param test_run: Reference to test run. - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` :param test_suite: Reference to test suite test case workitem is part of. - :type test_suite: :class:`ShallowReference ` + :type test_suite: :class:`ShallowReference ` :param url: Url of test result. :type url: str """ @@ -2379,7 +2379,7 @@ class TestCaseResultUpdateModel(Model): :param computer_name: :type computer_name: str :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -2389,11 +2389,11 @@ class TestCaseResultUpdateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -2403,7 +2403,7 @@ class TestCaseResultUpdateModel(Model): :param test_case_priority: :type test_case_priority: str :param test_result: - :type test_result: :class:`ShallowReference ` + :type test_result: :class:`ShallowReference ` """ _attribute_map = { @@ -2453,7 +2453,7 @@ class TestConfiguration(Model): """TestConfiguration. :param area: Area of the configuration - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param description: Description of the configuration :type description: str :param id: Id of the configuration @@ -2461,13 +2461,13 @@ class TestConfiguration(Model): :param is_default: Is the configuration a default for the test plans :type is_default: bool :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last Updated Data :type last_updated_date: datetime :param name: Name of the configuration :type name: str :param project: Project to which the configuration belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision of the the configuration :type revision: int :param state: State of the configuration @@ -2475,7 +2475,7 @@ class TestConfiguration(Model): :param url: Url of Configuration Resource :type url: str :param values: Dictionary of Test Variable, Selected Value - :type values: list of :class:`NameValuePair ` + :type values: list of :class:`NameValuePair ` """ _attribute_map = { @@ -2535,7 +2535,7 @@ class TestFailureDetails(Model): :param count: :type count: int :param test_results: - :type test_results: list of :class:`TestCaseResultIdentifier ` + :type test_results: list of :class:`TestCaseResultIdentifier ` """ _attribute_map = { @@ -2553,13 +2553,13 @@ class TestFailuresAnalysis(Model): """TestFailuresAnalysis. :param existing_failures: - :type existing_failures: :class:`TestFailureDetails ` + :type existing_failures: :class:`TestFailureDetails ` :param fixed_tests: - :type fixed_tests: :class:`TestFailureDetails ` + :type fixed_tests: :class:`TestFailureDetails ` :param new_failures: - :type new_failures: :class:`TestFailureDetails ` + :type new_failures: :class:`TestFailureDetails ` :param previous_context: - :type previous_context: :class:`TestResultsContext ` + :type previous_context: :class:`TestResultsContext ` """ _attribute_map = { @@ -2595,7 +2595,7 @@ class TestHistoryQuery(Model): :param release_env_definition_id: Get the results history only for this ReleaseEnvDefinitionId. This to get used in query GroupBy should be Environment. :type release_env_definition_id: int :param results_for_group: List of TestResultHistoryForGroup which are grouped by GroupBy - :type results_for_group: list of :class:`TestResultHistoryForGroup ` + :type results_for_group: list of :class:`TestResultHistoryForGroup ` :param test_case_id: Get the results history only for this testCaseId. This to get used in query to filter the result along with automatedtestname :type test_case_id: int :param trend_days: Number of days for which history to collect. Maximum supported value is 7 days. Default is 7 days. @@ -2633,9 +2633,9 @@ class TestIterationDetailsModel(Model): """TestIterationDetailsModel. :param action_results: Test step results in an iteration. - :type action_results: list of :class:`TestActionResultModel ` + :type action_results: list of :class:`TestActionResultModel ` :param attachments: Refence to attachments in test iteration result. - :type attachments: list of :class:`TestCaseResultAttachmentModel ` + :type attachments: list of :class:`TestCaseResultAttachmentModel ` :param comment: Comment in test iteration result. :type comment: str :param completed_date: Time when execution completed. @@ -2649,7 +2649,7 @@ class TestIterationDetailsModel(Model): :param outcome: Test outcome if test iteration result. :type outcome: str :param parameters: Test parameters in an iteration. - :type parameters: list of :class:`TestResultParameterModel ` + :type parameters: list of :class:`TestResultParameterModel ` :param started_date: Time when execution started. :type started_date: datetime :param url: Url to test iteration result. @@ -2773,15 +2773,15 @@ class TestPlan(Model): """TestPlan. :param area: Area of the test plan. - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param automated_test_environment: - :type automated_test_environment: :class:`TestEnvironment ` + :type automated_test_environment: :class:`TestEnvironment ` :param automated_test_settings: - :type automated_test_settings: :class:`TestSettings ` + :type automated_test_settings: :class:`TestSettings ` :param build: Build to be tested. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_definition: The Build Definition that generates a build associated with this test plan. - :type build_definition: :class:`ShallowReference ` + :type build_definition: :class:`ShallowReference ` :param client_url: :type client_url: str :param description: Description of the test plan. @@ -2793,31 +2793,31 @@ class TestPlan(Model): :param iteration: Iteration path of the test plan. :type iteration: str :param manual_test_environment: - :type manual_test_environment: :class:`TestEnvironment ` + :type manual_test_environment: :class:`TestEnvironment ` :param manual_test_settings: - :type manual_test_settings: :class:`TestSettings ` + :type manual_test_settings: :class:`TestSettings ` :param name: Name of the test plan. :type name: str :param owner: Owner of the test plan. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param previous_build: - :type previous_build: :class:`ShallowReference ` + :type previous_build: :class:`ShallowReference ` :param project: Project which contains the test plan. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan. - :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` + :type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference ` :param revision: Revision of the test plan. :type revision: int :param root_suite: Root test suite of the test plan. - :type root_suite: :class:`ShallowReference ` + :type root_suite: :class:`ShallowReference ` :param start_date: Start date for the test plan. :type start_date: datetime :param state: State of the test plan. :type state: str :param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave - :type test_outcome_settings: :class:`TestOutcomeSettings ` + :type test_outcome_settings: :class:`TestOutcomeSettings ` :param updated_by: - :type updated_by: :class:`IdentityRef ` + :type updated_by: :class:`IdentityRef ` :param updated_date: :type updated_date: datetime :param url: URL of the test plan resource. @@ -2885,9 +2885,9 @@ class TestPlanCloneRequest(Model): """TestPlanCloneRequest. :param destination_test_plan: - :type destination_test_plan: :class:`TestPlan ` + :type destination_test_plan: :class:`TestPlan ` :param options: - :type options: :class:`CloneOptions ` + :type options: :class:`CloneOptions ` :param suite_ids: :type suite_ids: list of int """ @@ -2909,13 +2909,13 @@ class TestPoint(Model): """TestPoint. :param assigned_to: AssignedTo. Type IdentityRef. - :type assigned_to: :class:`IdentityRef ` + :type assigned_to: :class:`IdentityRef ` :param automated: Automated. :type automated: bool :param comment: Comment associated with test point. :type comment: str :param configuration: Configuration. Type ShallowReference. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param failure_type: Failure type of test point. :type failure_type: str :param id: ID of the test point. @@ -2925,17 +2925,17 @@ class TestPoint(Model): :param last_resolution_state_id: Last resolution state id of test point. :type last_resolution_state_id: int :param last_result: Last result of test point. Type ShallowReference. - :type last_result: :class:`ShallowReference ` + :type last_result: :class:`ShallowReference ` :param last_result_details: Last result details of test point. Type LastResultDetails. - :type last_result_details: :class:`LastResultDetails ` + :type last_result_details: :class:`LastResultDetails ` :param last_result_state: Last result state of test point. :type last_result_state: str :param last_run_build_number: LastRun build number of test point. :type last_run_build_number: str :param last_test_run: Last testRun of test point. Type ShallowReference. - :type last_test_run: :class:`ShallowReference ` + :type last_test_run: :class:`ShallowReference ` :param last_updated_by: Test point last updated by. Type IdentityRef. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date of test point. :type last_updated_date: datetime :param outcome: Outcome of test point. @@ -2945,11 +2945,11 @@ class TestPoint(Model): :param state: State of test point. :type state: str :param suite: Suite of test point. Type ShallowReference. - :type suite: :class:`ShallowReference ` + :type suite: :class:`ShallowReference ` :param test_case: TestCase associated to test point. Type WorkItemReference. - :type test_case: :class:`WorkItemReference ` + :type test_case: :class:`WorkItemReference ` :param test_plan: TestPlan of test point. Type ShallowReference. - :type test_plan: :class:`ShallowReference ` + :type test_plan: :class:`ShallowReference ` :param url: Test point Url. :type url: str :param work_item_properties: Work item properties of test point. @@ -3015,9 +3015,9 @@ class TestPointsQuery(Model): :param order_by: Order by results. :type order_by: str :param points: List of test points - :type points: list of :class:`TestPoint ` + :type points: list of :class:`TestPoint ` :param points_filter: Filter - :type points_filter: :class:`PointsFilter ` + :type points_filter: :class:`PointsFilter ` :param wit_fields: List of workitem fields to get. :type wit_fields: list of str """ @@ -3045,7 +3045,7 @@ class TestResolutionState(Model): :param name: :type name: str :param project: - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` """ _attribute_map = { @@ -3065,7 +3065,7 @@ class TestResultCreateModel(Model): """TestResultCreateModel. :param area: - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param associated_work_items: :type associated_work_items: list of int :param automated_test_id: @@ -3085,9 +3085,9 @@ class TestResultCreateModel(Model): :param computer_name: :type computer_name: str :param configuration: - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param duration_in_ms: :type duration_in_ms: str :param error_message: @@ -3097,11 +3097,11 @@ class TestResultCreateModel(Model): :param outcome: :type outcome: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param resolution_state: :type resolution_state: str :param run_by: - :type run_by: :class:`IdentityRef ` + :type run_by: :class:`IdentityRef ` :param stack_trace: :type stack_trace: str :param started_date: @@ -3109,13 +3109,13 @@ class TestResultCreateModel(Model): :param state: :type state: str :param test_case: - :type test_case: :class:`ShallowReference ` + :type test_case: :class:`ShallowReference ` :param test_case_priority: :type test_case_priority: str :param test_case_title: :type test_case_title: str :param test_point: - :type test_point: :class:`ShallowReference ` + :type test_point: :class:`ShallowReference ` """ _attribute_map = { @@ -3181,9 +3181,9 @@ class TestResultDocument(Model): """TestResultDocument. :param operation_reference: - :type operation_reference: :class:`TestOperationReference ` + :type operation_reference: :class:`TestOperationReference ` :param payload: - :type payload: :class:`TestResultPayload ` + :type payload: :class:`TestResultPayload ` """ _attribute_map = { @@ -3203,7 +3203,7 @@ class TestResultHistory(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` + :type results_for_group: list of :class:`TestResultHistoryDetailsForGroup ` """ _attribute_map = { @@ -3223,7 +3223,7 @@ class TestResultHistoryDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param latest_result: - :type latest_result: :class:`TestCaseResult ` + :type latest_result: :class:`TestCaseResult ` """ _attribute_map = { @@ -3245,7 +3245,7 @@ class TestResultHistoryForGroup(Model): :param group_by_value: Name or Id of the group identifier by which results are grouped together. :type group_by_value: str :param results: List of results for GroupByValue - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` """ _attribute_map = { @@ -3397,11 +3397,11 @@ class TestResultsContext(Model): """TestResultsContext. :param build: - :type build: :class:`BuildReference ` + :type build: :class:`BuildReference ` :param context_type: :type context_type: object :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` """ _attribute_map = { @@ -3423,7 +3423,7 @@ class TestResultsDetails(Model): :param group_by_field: :type group_by_field: str :param results_for_group: - :type results_for_group: list of :class:`TestResultsDetailsForGroup ` + :type results_for_group: list of :class:`TestResultsDetailsForGroup ` """ _attribute_map = { @@ -3443,7 +3443,7 @@ class TestResultsDetailsForGroup(Model): :param group_by_value: :type group_by_value: object :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_count_by_outcome: :type results_count_by_outcome: dict :param tags: @@ -3471,7 +3471,7 @@ class TestResultsGroupsForBuild(Model): :param build_id: BuildId for which groupby result is fetched. :type build_id: int :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` """ _attribute_map = { @@ -3489,7 +3489,7 @@ class TestResultsGroupsForRelease(Model): """TestResultsGroupsForRelease. :param fields: The group by results - :type fields: list of :class:`FieldDetailsForTestResults ` + :type fields: list of :class:`FieldDetailsForTestResults ` :param release_env_id: Release Environment Id for which groupby result is fetched. :type release_env_id: int :param release_id: ReleaseId for which groupby result is fetched. @@ -3515,9 +3515,9 @@ class TestResultsQuery(Model): :param fields: :type fields: list of str :param results: - :type results: list of :class:`TestCaseResult ` + :type results: list of :class:`TestCaseResult ` :param results_filter: - :type results_filter: :class:`ResultsFilter ` + :type results_filter: :class:`ResultsFilter ` """ _attribute_map = { @@ -3537,15 +3537,15 @@ class TestResultSummary(Model): """TestResultSummary. :param aggregated_results_analysis: - :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` + :type aggregated_results_analysis: :class:`AggregatedResultsAnalysis ` :param no_config_runs_count: :type no_config_runs_count: int :param team_project: - :type team_project: :class:`TeamProjectReference ` + :type team_project: :class:`TeamProjectReference ` :param test_failures: - :type test_failures: :class:`TestFailuresAnalysis ` + :type test_failures: :class:`TestFailuresAnalysis ` :param test_results_context: - :type test_results_context: :class:`TestResultsContext ` + :type test_results_context: :class:`TestResultsContext ` :param total_runs_count: :type total_runs_count: int """ @@ -3617,9 +3617,9 @@ class TestRun(Model): """TestRun. :param build: Build associated with this test run. - :type build: :class:`ShallowReference ` + :type build: :class:`ShallowReference ` :param build_configuration: Build configuration details associated with this test run. - :type build_configuration: :class:`BuildConfiguration ` + :type build_configuration: :class:`BuildConfiguration ` :param comment: Comments entered by those analyzing the run. :type comment: str :param completed_date: Completed date time of the run. @@ -3629,21 +3629,21 @@ class TestRun(Model): :param created_date: :type created_date: datetime :param custom_fields: - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param drop_location: :type drop_location: str :param dtl_aut_environment: - :type dtl_aut_environment: :class:`ShallowReference ` + :type dtl_aut_environment: :class:`ShallowReference ` :param dtl_environment: - :type dtl_environment: :class:`ShallowReference ` + :type dtl_environment: :class:`ShallowReference ` :param dtl_environment_creation_details: - :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` + :type dtl_environment_creation_details: :class:`DtlEnvironmentDetails ` :param due_date: Due date and time for test run. :type due_date: datetime :param error_message: Error message associated with the run. :type error_message: str :param filter: - :type filter: :class:`RunFilter ` + :type filter: :class:`RunFilter ` :param id: ID of the test run. :type id: int :param incomplete_tests: @@ -3653,7 +3653,7 @@ class TestRun(Model): :param iteration: The iteration to which the run belongs. :type iteration: str :param last_updated_by: Team foundation ID of the last updated the test run. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date and time :type last_updated_date: datetime :param name: Name of the test run. @@ -3661,19 +3661,19 @@ class TestRun(Model): :param not_applicable_tests: :type not_applicable_tests: int :param owner: Team Foundation ID of the owner of the runs. - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param passed_tests: Number of passed tests in the run :type passed_tests: int :param phase: :type phase: str :param plan: Test plan associated with this test run. - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param post_process_state: :type post_process_state: str :param project: Project associated with this run. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param release: - :type release: :class:`ReleaseReference ` + :type release: :class:`ReleaseReference ` :param release_environment_uri: :type release_environment_uri: str :param release_uri: @@ -3681,7 +3681,7 @@ class TestRun(Model): :param revision: :type revision: int :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` :param started_date: Start date time of the run. :type started_date: datetime :param state: The state of the run. { NotStarted, InProgress, Waiting } @@ -3689,11 +3689,11 @@ class TestRun(Model): :param substate: :type substate: object :param test_environment: Test environment associated with the run. - :type test_environment: :class:`TestEnvironment ` + :type test_environment: :class:`TestEnvironment ` :param test_message_log_id: :type test_message_log_id: int :param test_settings: - :type test_settings: :class:`ShallowReference ` + :type test_settings: :class:`ShallowReference ` :param total_tests: Total tests in the run :type total_tests: int :param unanalyzed_tests: @@ -3803,11 +3803,11 @@ class TestRunCoverage(Model): :param last_error: Last Error :type last_error: str :param modules: List of Modules Coverage - :type modules: list of :class:`ModuleCoverage ` + :type modules: list of :class:`ModuleCoverage ` :param state: State :type state: str :param test_run: Reference of test Run. - :type test_run: :class:`ShallowReference ` + :type test_run: :class:`ShallowReference ` """ _attribute_map = { @@ -3829,9 +3829,9 @@ class TestRunStatistic(Model): """TestRunStatistic. :param run: - :type run: :class:`ShallowReference ` + :type run: :class:`ShallowReference ` :param run_statistics: - :type run_statistics: list of :class:`RunStatistic ` + :type run_statistics: list of :class:`RunStatistic ` """ _attribute_map = { @@ -3849,7 +3849,7 @@ class TestSession(Model): """TestSession. :param area: Area path of the test session - :type area: :class:`ShallowReference ` + :type area: :class:`ShallowReference ` :param comment: Comments in the test session :type comment: str :param end_date: Duration of the session @@ -3857,15 +3857,15 @@ class TestSession(Model): :param id: Id of the test session :type id: int :param last_updated_by: Last Updated By Reference - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last updated date :type last_updated_date: datetime :param owner: Owner of the test session - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param project: Project to which the test session belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param property_bag: Generic store for test session data - :type property_bag: :class:`PropertyBag ` + :type property_bag: :class:`PropertyBag ` :param revision: Revision of the test session :type revision: int :param source: Source of the test session @@ -3967,9 +3967,9 @@ class TestSubResult(Model): :param computer_name: Machine where test executed. :type computer_name: str :param configuration: Reference to test configuration. - :type configuration: :class:`ShallowReference ` + :type configuration: :class:`ShallowReference ` :param custom_fields: Additional properties of sub result. - :type custom_fields: list of :class:`CustomTestField ` + :type custom_fields: list of :class:`CustomTestField ` :param display_name: Name of sub result. :type display_name: str :param duration_in_ms: Duration of test execution. @@ -3993,9 +3993,9 @@ class TestSubResult(Model): :param started_date: Time when test execution started. :type started_date: datetime :param sub_results: List of sub results inside a sub result, if ResultGroupType is not None, it holds corresponding type sub results. - :type sub_results: list of :class:`TestSubResult ` + :type sub_results: list of :class:`TestSubResult ` :param test_result: Reference to test result. - :type test_result: :class:`TestCaseResultIdentifier ` + :type test_result: :class:`TestCaseResultIdentifier ` :param url: Url of sub result. :type url: str """ @@ -4051,11 +4051,11 @@ class TestSuite(Model): :param area_uri: Area uri of the test suite. :type area_uri: str :param children: Child test suites of current test suite. - :type children: list of :class:`TestSuite ` + :type children: list of :class:`TestSuite ` :param default_configurations: Test suite default configuration. - :type default_configurations: list of :class:`ShallowReference ` + :type default_configurations: list of :class:`ShallowReference ` :param default_testers: Test suite default testers. - :type default_testers: list of :class:`ShallowReference ` + :type default_testers: list of :class:`ShallowReference ` :param id: Id of test suite. :type id: int :param inherit_default_configurations: Default configuration was inherited or not. @@ -4065,17 +4065,17 @@ class TestSuite(Model): :param last_populated_date: Last populated date. :type last_populated_date: datetime :param last_updated_by: IdentityRef of user who has updated test suite recently. - :type last_updated_by: :class:`IdentityRef ` + :type last_updated_by: :class:`IdentityRef ` :param last_updated_date: Last update date. :type last_updated_date: datetime :param name: Name of test suite. :type name: str :param parent: Test suite parent shallow reference. - :type parent: :class:`ShallowReference ` + :type parent: :class:`ShallowReference ` :param plan: Test plan to which the test suite belongs. - :type plan: :class:`ShallowReference ` + :type plan: :class:`ShallowReference ` :param project: Test suite project shallow reference. - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param query_string: Test suite query string, for dynamic suites. :type query_string: str :param requirement_id: Test suite requirement id. @@ -4085,7 +4085,7 @@ class TestSuite(Model): :param state: State of test suite. :type state: str :param suites: List of shallow reference of suites. - :type suites: list of :class:`ShallowReference ` + :type suites: list of :class:`ShallowReference ` :param suite_type: Test suite type. :type suite_type: str :param test_case_count: Test cases count. @@ -4157,7 +4157,7 @@ class TestSuiteCloneRequest(Model): """TestSuiteCloneRequest. :param clone_options: Clone options for cloning the test suite. - :type clone_options: :class:`CloneOptions ` + :type clone_options: :class:`CloneOptions ` :param destination_suite_id: Suite id under which, we have to clone the suite. :type destination_suite_id: int :param destination_suite_project_name: Destination suite project name. @@ -4181,9 +4181,9 @@ class TestSummaryForWorkItem(Model): """TestSummaryForWorkItem. :param summary: - :type summary: :class:`AggregatedDataForResultTrend ` + :type summary: :class:`AggregatedDataForResultTrend ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -4201,9 +4201,9 @@ class TestToWorkItemLinks(Model): """TestToWorkItemLinks. :param test: - :type test: :class:`TestMethod ` + :type test: :class:`TestMethod ` :param work_items: - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -4227,7 +4227,7 @@ class TestVariable(Model): :param name: Name of the test variable :type name: str :param project: Project to which the test variable belongs - :type project: :class:`ShallowReference ` + :type project: :class:`ShallowReference ` :param revision: Revision :type revision: int :param url: Url of the test variable @@ -4295,9 +4295,9 @@ class WorkItemToTestLinks(Model): :param executed_in: :type executed_in: object :param tests: - :type tests: list of :class:`TestMethod ` + :type tests: list of :class:`TestMethod ` :param work_item: - :type work_item: :class:`WorkItemReference ` + :type work_item: :class:`WorkItemReference ` """ _attribute_map = { @@ -4333,7 +4333,7 @@ class TestActionResultModel(TestResultModelBase): :param iteration_id: Iteration ID of test action result. :type iteration_id: int :param shared_step_model: Reference to shared step workitem. - :type shared_step_model: :class:`SharedStepModel ` + :type shared_step_model: :class:`SharedStepModel ` :param step_identifier: This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1" :type step_identifier: str :param url: Url of test action result. diff --git a/azure-devops/azure/devops/v5_1/tfvc/models.py b/azure-devops/azure/devops/v5_1/tfvc/models.py index 77ce71b3..8db382eb 100644 --- a/azure-devops/azure/devops/v5_1/tfvc/models.py +++ b/azure-devops/azure/devops/v5_1/tfvc/models.py @@ -57,7 +57,7 @@ class Change(Model): :param item: Current version. :type item: object :param new_content: Content of the item after the change. - :type new_content: :class:`ItemContent ` + :type new_content: :class:`ItemContent ` :param source_server_item: Path of the item on the server. :type source_server_item: str :param url: URL to retrieve the item. @@ -145,7 +145,7 @@ class GitRepository(Model): """GitRepository. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_branch: :type default_branch: str :param id: @@ -155,9 +155,9 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param size: Compressed size (bytes) of the repository. @@ -205,7 +205,7 @@ class GitRepositoryRef(Model): """GitRepositoryRef. :param collection: Team Project Collection where this Fork resides - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param id: :type id: str :param is_fork: True if the repository was created as a fork @@ -213,7 +213,7 @@ class GitRepositoryRef(Model): :param name: :type name: str :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param remote_url: :type remote_url: str :param ssh_url: @@ -249,7 +249,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -277,7 +277,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -357,11 +357,11 @@ class ItemModel(Model): """ItemModel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -513,7 +513,7 @@ class TfvcChange(Change): """TfvcChange. :param merge_sources: List of merge sources in case of rename or branch creation. - :type merge_sources: list of :class:`TfvcMergeSource ` + :type merge_sources: list of :class:`TfvcMergeSource ` :param pending_version: Version at which a (shelved) change was pended against :type pending_version: int """ @@ -533,13 +533,13 @@ class TfvcChangesetRef(Model): """TfvcChangesetRef. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -589,7 +589,7 @@ class TfvcChangesetSearchCriteria(Model): :param item_path: Path of item to search under :type item_path: str :param mappings: - :type mappings: list of :class:`TfvcMappingFilter ` + :type mappings: list of :class:`TfvcMappingFilter ` :param to_date: If provided, only include changesets created before this date (string) Think of a better name for this. :type to_date: str :param to_id: If provided, a version descriptor for the latest change list to include @@ -649,11 +649,11 @@ class TfvcItem(ItemModel): """TfvcItem. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param content: :type content: str :param content_metadata: - :type content_metadata: :class:`FileContentMetadata ` + :type content_metadata: :class:`FileContentMetadata ` :param is_folder: :type is_folder: bool :param is_sym_link: @@ -750,7 +750,7 @@ class TfvcItemRequestData(Model): :param include_links: Whether to include the _links field on the shallow references :type include_links: bool :param item_descriptors: - :type item_descriptors: list of :class:`TfvcItemDescriptor ` + :type item_descriptors: list of :class:`TfvcItemDescriptor ` """ _attribute_map = { @@ -770,7 +770,7 @@ class TfvcLabelRef(Model): """TfvcLabelRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -782,7 +782,7 @@ class TfvcLabelRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -920,7 +920,7 @@ class TfvcPolicyOverrideInfo(Model): :param comment: :type comment: str :param policy_failures: - :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` + :type policy_failures: list of :class:`TfvcPolicyFailureInfo ` """ _attribute_map = { @@ -954,7 +954,7 @@ class TfvcShelvesetRef(Model): """TfvcShelvesetRef. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -966,7 +966,7 @@ class TfvcShelvesetRef(Model): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str """ @@ -1084,7 +1084,7 @@ class VersionControlProjectInfo(Model): :param default_source_control_type: :type default_source_control_type: object :param project: - :type project: :class:`TeamProjectReference ` + :type project: :class:`TeamProjectReference ` :param supports_git: :type supports_git: bool :param supports_tFVC: @@ -1110,9 +1110,9 @@ class VstsInfo(Model): """VstsInfo. :param collection: - :type collection: :class:`TeamProjectCollectionReference ` + :type collection: :class:`TeamProjectCollectionReference ` :param repository: - :type repository: :class:`GitRepository ` + :type repository: :class:`GitRepository ` :param server_url: :type server_url: str """ @@ -1136,7 +1136,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1144,7 +1144,7 @@ class TfvcBranchRef(TfvcShallowBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str """ @@ -1173,13 +1173,13 @@ class TfvcChangeset(TfvcChangesetRef): """TfvcChangeset. :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param author: Alias or display name of user - :type author: :class:`IdentityRef ` + :type author: :class:`IdentityRef ` :param changeset_id: Id of the changeset. :type changeset_id: int :param checked_in_by: Alias or display name of user - :type checked_in_by: :class:`IdentityRef ` + :type checked_in_by: :class:`IdentityRef ` :param comment: Comment for the changeset. :type comment: str :param comment_truncated: Was the Comment result truncated? @@ -1191,19 +1191,19 @@ class TfvcChangeset(TfvcChangesetRef): :param account_id: Account Id of the changeset. :type account_id: str :param changes: List of associated changes. - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param checkin_notes: Checkin Notes for the changeset. - :type checkin_notes: list of :class:`CheckinNote ` + :type checkin_notes: list of :class:`CheckinNote ` :param collection_id: Collection Id of the changeset. :type collection_id: str :param has_more_changes: Are more changes available. :type has_more_changes: bool :param policy_override: Policy Override for the changeset. - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param team_project_ids: Team Project Ids for the changeset. :type team_project_ids: list of str :param work_items: List of work items associated with the changeset. - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1241,7 +1241,7 @@ class TfvcLabel(TfvcLabelRef): """TfvcLabel. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: :type description: str :param id: @@ -1253,11 +1253,11 @@ class TfvcLabel(TfvcLabelRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param items: - :type items: list of :class:`TfvcItem ` + :type items: list of :class:`TfvcItem ` """ _attribute_map = { @@ -1281,7 +1281,7 @@ class TfvcShelveset(TfvcShelvesetRef): """TfvcShelveset. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment: :type comment: str :param comment_truncated: @@ -1293,17 +1293,17 @@ class TfvcShelveset(TfvcShelvesetRef): :param name: :type name: str :param owner: - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: :type url: str :param changes: - :type changes: list of :class:`TfvcChange ` + :type changes: list of :class:`TfvcChange ` :param notes: - :type notes: list of :class:`CheckinNote ` + :type notes: list of :class:`CheckinNote ` :param policy_override: - :type policy_override: :class:`TfvcPolicyOverrideInfo ` + :type policy_override: :class:`TfvcPolicyOverrideInfo ` :param work_items: - :type work_items: list of :class:`AssociatedWorkItem ` + :type work_items: list of :class:`AssociatedWorkItem ` """ _attribute_map = { @@ -1335,7 +1335,7 @@ class TfvcBranch(TfvcBranchRef): :param path: Path for the branch. :type path: str :param _links: A collection of REST reference links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param created_date: Creation date of the branch. :type created_date: datetime :param description: Description of the branch. @@ -1343,17 +1343,17 @@ class TfvcBranch(TfvcBranchRef): :param is_deleted: Is the branch deleted? :type is_deleted: bool :param owner: Alias or display name of user - :type owner: :class:`IdentityRef ` + :type owner: :class:`IdentityRef ` :param url: URL to retrieve the item. :type url: str :param children: List of children for the branch. - :type children: list of :class:`TfvcBranch ` + :type children: list of :class:`TfvcBranch ` :param mappings: List of branch mappings. - :type mappings: list of :class:`TfvcBranchMapping ` + :type mappings: list of :class:`TfvcBranchMapping ` :param parent: Path of the branch's parent. - :type parent: :class:`TfvcShallowBranchRef ` + :type parent: :class:`TfvcShallowBranchRef ` :param related_branches: List of paths of the related branches. - :type related_branches: list of :class:`TfvcShallowBranchRef ` + :type related_branches: list of :class:`TfvcShallowBranchRef ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/models.py b/azure-devops/azure/devops/v5_1/uPack_packaging/models.py index 7af58619..1f20052f 100644 --- a/azure-devops/azure/devops/v5_1/uPack_packaging/models.py +++ b/azure-devops/azure/devops/v5_1/uPack_packaging/models.py @@ -31,7 +31,7 @@ class UPackLimitedPackageMetadataListResponse(Model): :param count: :type count: int :param value: - :type value: list of :class:`UPackLimitedPackageMetadata ` + :type value: list of :class:`UPackLimitedPackageMetadata ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py b/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py index 2d72411a..0cfb47ac 100644 --- a/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py +++ b/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py @@ -28,7 +28,7 @@ def __init__(self, base_url=None, creds=None): def add_package(self, metadata, feed_id, package_name, package_version): """AddPackage. [Preview API] - :param :class:` ` metadata: + :param :class:` ` metadata: :param str feed_id: :param str package_name: :param str package_version: diff --git a/azure-devops/azure/devops/v5_1/universal/models.py b/azure-devops/azure/devops/v5_1/universal/models.py index 397025a9..a64f7595 100644 --- a/azure-devops/azure/devops/v5_1/universal/models.py +++ b/azure-devops/azure/devops/v5_1/universal/models.py @@ -73,7 +73,7 @@ class Package(Model): """Package. :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param deleted_date: If and when the package was deleted. :type deleted_date: datetime :param id: Package Id. @@ -109,7 +109,7 @@ class PackageVersionDetails(Model): """PackageVersionDetails. :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` + :type views: :class:`JsonPatchOperation ` """ _attribute_map = { @@ -141,11 +141,11 @@ class UPackPackagesBatchRequest(Model): """UPackPackagesBatchRequest. :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` + :type data: :class:`BatchOperationData ` :param operation: Type of operation that needs to be performed on packages. :type operation: object :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` + :type packages: list of :class:`MinimalPackageDetails ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/universal/universal_client.py b/azure-devops/azure/devops/v5_1/universal/universal_client.py index 4452c72b..6be7fde6 100644 --- a/azure-devops/azure/devops/v5_1/universal/universal_client.py +++ b/azure-devops/azure/devops/v5_1/universal/universal_client.py @@ -68,7 +68,7 @@ def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, p def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): """RestorePackageVersionFromRecycleBin. [Preview API] Restore a package version from the recycle bin to its associated feed. - :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. + :param :class:` ` package_version_details: Set the 'Deleted' property to 'false' to restore the package. :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. @@ -137,7 +137,7 @@ def get_package_version(self, feed_id, package_name, package_version, show_delet def update_package_version(self, package_version_details, feed_id, package_name, package_version): """UpdatePackageVersion. [Preview API] Update information for a package version. - :param :class:` ` package_version_details: + :param :class:` ` package_version_details: :param str feed_id: Name or ID of the feed. :param str package_name: Name of the package. :param str package_version: Version of the package. diff --git a/azure-devops/azure/devops/v5_1/wiki/models.py b/azure-devops/azure/devops/v5_1/wiki/models.py index e132241f..6c9a4f0c 100644 --- a/azure-devops/azure/devops/v5_1/wiki/models.py +++ b/azure-devops/azure/devops/v5_1/wiki/models.py @@ -23,7 +23,7 @@ class GitRepository(Model): :param name: :type name: str :param parent_repository: - :type parent_repository: :class:`GitRepositoryRef ` + :type parent_repository: :class:`GitRepositoryRef ` :param project: :type project: TeamProjectReference :param remote_url: @@ -161,7 +161,7 @@ class WikiAttachmentResponse(Model): """WikiAttachmentResponse. :param attachment: Defines properties for wiki attachment file. - :type attachment: :class:`WikiAttachment ` + :type attachment: :class:`WikiAttachment ` :param eTag: Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment. :type eTag: list of str """ @@ -223,7 +223,7 @@ class WikiCreateParametersV2(WikiCreateBaseParameters): :param type: Type of the wiki. :type type: object :param version: Version of the wiki. Not required for ProjectWiki type. - :type version: :class:`GitVersionDescriptor ` + :type version: :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -286,7 +286,7 @@ class WikiPageMoveResponse(Model): :param eTag: Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move. :type eTag: list of str :param page_move: Defines properties for wiki page move. - :type page_move: :class:`WikiPageMove ` + :type page_move: :class:`WikiPageMove ` """ _attribute_map = { @@ -306,7 +306,7 @@ class WikiPageResponse(Model): :param eTag: Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page. :type eTag: list of str :param page: Defines properties for wiki page. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { @@ -350,7 +350,7 @@ class WikiUpdateParameters(Model): :param name: Name for wiki. :type name: str :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -386,7 +386,7 @@ class WikiV2(WikiCreateBaseParameters): :param url: REST url for this wiki. :type url: str :param versions: Versions of the wiki. - :type versions: list of :class:`GitVersionDescriptor ` + :type versions: list of :class:`GitVersionDescriptor ` """ _attribute_map = { @@ -431,7 +431,7 @@ class WikiPage(WikiPageCreateOrUpdateParameters): :param remote_url: Remote web url to the wiki page. :type remote_url: str :param sub_pages: List of subpages of the current page. - :type sub_pages: list of :class:`WikiPage ` + :type sub_pages: list of :class:`WikiPage ` :param url: REST url for this wiki page. :type url: str """ @@ -472,7 +472,7 @@ class WikiPageMove(WikiPageMoveParameters): :param path: Current path of the wiki page. :type path: str :param page: Resultant page of this page move operation. - :type page: :class:`WikiPage ` + :type page: :class:`WikiPage ` """ _attribute_map = { diff --git a/azure-devops/azure/devops/v5_1/work/models.py b/azure-devops/azure/devops/v5_1/work/models.py index 302033ca..aa181ca0 100644 --- a/azure-devops/azure/devops/v5_1/work/models.py +++ b/azure-devops/azure/devops/v5_1/work/models.py @@ -33,7 +33,7 @@ class BacklogColumn(Model): """BacklogColumn. :param column_field_reference: - :type column_field_reference: :class:`WorkItemFieldReference ` + :type column_field_reference: :class:`WorkItemFieldReference ` :param width: :type width: int """ @@ -53,7 +53,7 @@ class BacklogConfiguration(Model): """BacklogConfiguration. :param backlog_fields: Behavior/type field mapping - :type backlog_fields: :class:`BacklogFields ` + :type backlog_fields: :class:`BacklogFields ` :param bugs_behavior: Bugs behavior :type bugs_behavior: object :param hidden_backlogs: Hidden Backlog @@ -61,15 +61,15 @@ class BacklogConfiguration(Model): :param is_bugs_behavior_configured: Is BugsBehavior Configured in the process :type is_bugs_behavior_configured: bool :param portfolio_backlogs: Portfolio backlog descriptors - :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` + :type portfolio_backlogs: list of :class:`BacklogLevelConfiguration ` :param requirement_backlog: Requirement backlog - :type requirement_backlog: :class:`BacklogLevelConfiguration ` + :type requirement_backlog: :class:`BacklogLevelConfiguration ` :param task_backlog: Task backlog - :type task_backlog: :class:`BacklogLevelConfiguration ` + :type task_backlog: :class:`BacklogLevelConfiguration ` :param url: :type url: str :param work_item_type_mapped_states: Mapped states for work item types - :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` + :type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo ` """ _attribute_map = { @@ -145,13 +145,13 @@ class BacklogLevelConfiguration(Model): """BacklogLevelConfiguration. :param add_panel_fields: List of fields to include in Add Panel - :type add_panel_fields: list of :class:`WorkItemFieldReference ` + :type add_panel_fields: list of :class:`WorkItemFieldReference ` :param color: Color for the backlog level :type color: str :param column_fields: Default list of columns for the backlog - :type column_fields: list of :class:`BacklogColumn ` + :type column_fields: list of :class:`BacklogColumn ` :param default_work_item_type: Defaulst Work Item Type for the backlog - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name) :type id: str :param is_hidden: Indicates whether the backlog level is hidden @@ -165,7 +165,7 @@ class BacklogLevelConfiguration(Model): :param work_item_count_limit: Max number of work items to show in the given backlog :type work_item_count_limit: int :param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -201,7 +201,7 @@ class BacklogLevelWorkItems(Model): """BacklogLevelWorkItems. :param work_items: A list of work items within a backlog level - :type work_items: list of :class:`WorkItemLink ` + :type work_items: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -217,7 +217,7 @@ class BoardCardRuleSettings(Model): """BoardCardRuleSettings. :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rules: :type rules: dict :param url: @@ -317,11 +317,11 @@ class BoardFields(Model): """BoardFields. :param column_field: - :type column_field: :class:`FieldReference ` + :type column_field: :class:`FieldReference ` :param done_field: - :type done_field: :class:`FieldReference ` + :type done_field: :class:`FieldReference ` :param row_field: - :type row_field: :class:`FieldReference ` + :type row_field: :class:`FieldReference ` """ _attribute_map = { @@ -417,9 +417,9 @@ class CapacityPatch(Model): """CapacityPatch. :param activities: - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -441,7 +441,7 @@ class CategoryConfiguration(Model): :param reference_name: Category Reference Name :type reference_name: str :param work_item_types: Work item types for the backlog category - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -561,7 +561,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -589,7 +589,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -729,7 +729,7 @@ class Plan(Model): """Plan. :param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type created_by_identity: :class:`IdentityRef ` + :type created_by_identity: :class:`IdentityRef ` :param created_date: Date when the plan was created :type created_date: datetime :param description: Description of the plan @@ -737,7 +737,7 @@ class Plan(Model): :param id: Id of the plan :type id: str :param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4. - :type modified_by_identity: :class:`IdentityRef ` + :type modified_by_identity: :class:`IdentityRef ` :param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created. :type modified_date: datetime :param name: Name of the plan @@ -815,7 +815,7 @@ class PredefinedQuery(Model): :param name: Localized name of the query :type name: str :param results: The results of the query. This will be a set of WorkItem objects with only the 'id' set. The client is responsible for paging in the data as needed. - :type results: list of :class:`WorkItem ` + :type results: list of :class:`WorkItem ` :param url: REST API Url to use to retrieve results for this query :type url: str :param web_url: Url to use to display a page in the browser with the results of this query @@ -845,13 +845,13 @@ class ProcessConfiguration(Model): """ProcessConfiguration. :param bug_work_items: Details about bug work items - :type bug_work_items: :class:`CategoryConfiguration ` + :type bug_work_items: :class:`CategoryConfiguration ` :param portfolio_backlogs: Details about portfolio backlogs - :type portfolio_backlogs: list of :class:`CategoryConfiguration ` + :type portfolio_backlogs: list of :class:`CategoryConfiguration ` :param requirement_backlog: Details of requirement backlog - :type requirement_backlog: :class:`CategoryConfiguration ` + :type requirement_backlog: :class:`CategoryConfiguration ` :param task_backlog: Details of task backlog - :type task_backlog: :class:`CategoryConfiguration ` + :type task_backlog: :class:`CategoryConfiguration ` :param type_fields: Type fields for the process configuration :type type_fields: dict :param url: @@ -897,7 +897,7 @@ class Rule(Model): """Rule. :param clauses: - :type clauses: list of :class:`FilterClause ` + :type clauses: list of :class:`FilterClause ` :param filter: :type filter: str :param is_enabled: @@ -979,7 +979,7 @@ class TeamFieldValuesPatch(Model): :param default_value: :type default_value: str :param values: - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1021,7 +1021,7 @@ class TeamSettingsDataContractBase(Model): """TeamSettingsDataContractBase. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str """ @@ -1041,11 +1041,11 @@ class TeamSettingsDaysOff(TeamSettingsDataContractBase): """TeamSettingsDaysOff. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1063,7 +1063,7 @@ class TeamSettingsDaysOffPatch(Model): """TeamSettingsDaysOffPatch. :param days_off: - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` """ _attribute_map = { @@ -1079,11 +1079,11 @@ class TeamSettingsIteration(TeamSettingsDataContractBase): """TeamSettingsIteration. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param attributes: Attributes such as start and end date - :type attributes: :class:`TeamIterationAttributes ` + :type attributes: :class:`TeamIterationAttributes ` :param id: Id of the resource :type id: str :param name: Name of the resource @@ -1189,7 +1189,7 @@ class TimelineTeamData(Model): """TimelineTeamData. :param backlog: Backlog matching the mapped backlog associated with this team. - :type backlog: :class:`BacklogLevel ` + :type backlog: :class:`BacklogLevel ` :param field_reference_names: The field reference names of the work item data :type field_reference_names: list of str :param id: The id of the team @@ -1197,7 +1197,7 @@ class TimelineTeamData(Model): :param is_expanded: Was iteration and work item data retrieved for this team. Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. :type is_expanded: bool :param iterations: The iteration data, including the work items, in the queried date range. - :type iterations: list of :class:`TimelineTeamIteration ` + :type iterations: list of :class:`TimelineTeamIteration ` :param name: The name of the team :type name: str :param order_by_field: The order by field name of this team @@ -1207,15 +1207,15 @@ class TimelineTeamData(Model): :param project_id: The project id the team belongs team :type project_id: str :param status: Status for this team. - :type status: :class:`TimelineTeamStatus ` + :type status: :class:`TimelineTeamStatus ` :param team_field_default_value: The team field default value :type team_field_default_value: str :param team_field_name: The team field name of this team :type team_field_name: str :param team_field_values: The team field values - :type team_field_values: list of :class:`TeamFieldValue ` + :type team_field_values: list of :class:`TeamFieldValue ` :param work_item_type_colors: Colors for the work item types. - :type work_item_type_colors: list of :class:`WorkItemColor ` + :type work_item_type_colors: list of :class:`WorkItemColor ` """ _attribute_map = { @@ -1267,7 +1267,7 @@ class TimelineTeamIteration(Model): :param start_date: The start date of the iteration :type start_date: datetime :param status: The status of this iteration - :type status: :class:`TimelineIterationStatus ` + :type status: :class:`TimelineIterationStatus ` :param work_items: The work items that have been paged in this iteration :type work_items: list of [object] """ @@ -1399,9 +1399,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -1523,21 +1523,21 @@ class Board(BoardReference): :param url: Full http link to the resource :type url: str :param _links: - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param allowed_mappings: :type allowed_mappings: dict :param can_edit: :type can_edit: bool :param columns: - :type columns: list of :class:`BoardColumn ` + :type columns: list of :class:`BoardColumn ` :param fields: - :type fields: :class:`BoardFields ` + :type fields: :class:`BoardFields ` :param is_valid: :type is_valid: bool :param revision: :type revision: int :param rows: - :type rows: list of :class:`BoardRow ` + :type rows: list of :class:`BoardRow ` """ _attribute_map = { @@ -1574,7 +1574,7 @@ class BoardChart(BoardChartReference): :param url: Full http link to the resource :type url: str :param _links: The links for the resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param settings: The settings for the resource :type settings: dict """ @@ -1602,7 +1602,7 @@ class DeliveryViewData(PlanViewData): :param child_id_to_parent_id_map: Work item child id to parenet id map :type child_id_to_parent_id_map: dict :param criteria_status: Filter criteria status of the timeline - :type criteria_status: :class:`TimelineCriteriaStatus ` + :type criteria_status: :class:`TimelineCriteriaStatus ` :param end_date: The end date of the delivery view data :type end_date: datetime :param max_expanded_teams: Max number of teams can be configured for a delivery plan. @@ -1610,7 +1610,7 @@ class DeliveryViewData(PlanViewData): :param start_date: The start date for the delivery view data :type start_date: datetime :param teams: All the team data - :type teams: list of :class:`TimelineTeamData ` + :type teams: list of :class:`TimelineTeamData ` """ _attribute_map = { @@ -1638,11 +1638,11 @@ class IterationWorkItems(TeamSettingsDataContractBase): """IterationWorkItems. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param work_item_relations: Work item relations - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` """ _attribute_map = { @@ -1660,15 +1660,15 @@ class TeamFieldValues(TeamSettingsDataContractBase): """TeamFieldValues. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param default_value: The default team field value :type default_value: str :param field: Shallow ref to the field being used as a team field - :type field: :class:`FieldReference ` + :type field: :class:`FieldReference ` :param values: Collection of all valid team field values - :type values: list of :class:`TeamFieldValue ` + :type values: list of :class:`TeamFieldValue ` """ _attribute_map = { @@ -1690,15 +1690,15 @@ class TeamMemberCapacity(TeamSettingsDataContractBase): """TeamMemberCapacity. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param activities: Collection of capacities associated with the team member - :type activities: list of :class:`Activity ` + :type activities: list of :class:`Activity ` :param days_off: The days off associated with the team member - :type days_off: list of :class:`DateRange ` + :type days_off: list of :class:`DateRange ` :param team_member: Shallow Ref to the associated team member - :type team_member: :class:`Member ` + :type team_member: :class:`Member ` """ _attribute_map = { @@ -1720,17 +1720,17 @@ class TeamSetting(TeamSettingsDataContractBase): """TeamSetting. :param _links: Collection of links relevant to resource - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param url: Full http link to the resource :type url: str :param backlog_iteration: Backlog Iteration - :type backlog_iteration: :class:`TeamSettingsIteration ` + :type backlog_iteration: :class:`TeamSettingsIteration ` :param backlog_visibilities: Information about categories that are visible on the backlog. :type backlog_visibilities: dict :param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...) :type bugs_behavior: object :param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page. - :type default_iteration: :class:`TeamSettingsIteration ` + :type default_iteration: :class:`TeamSettingsIteration ` :param default_iteration_macro: Default Iteration macro (if any) :type default_iteration_macro: str :param working_days: Days that the team is working @@ -1787,7 +1787,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1806,15 +1806,15 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_version_ref: Reference to a specific version of the comment added/edited/deleted in this revision. - :type comment_version_ref: :class:`WorkItemCommentVersionRef ` + :type comment_version_ref: :class:`WorkItemCommentVersionRef ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking/models.py index 518236a7..6b83ed84 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking/models.py @@ -15,7 +15,7 @@ class AccountMyWorkResult(Model): :param query_size_limit_exceeded: True, when length of WorkItemDetails is same as the limit :type query_size_limit_exceeded: bool :param work_item_details: WorkItem Details - :type work_item_details: list of :class:`AccountWorkWorkItemModel ` + :type work_item_details: list of :class:`AccountWorkWorkItemModel ` """ _attribute_map = { @@ -241,7 +241,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -269,7 +269,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -329,7 +329,7 @@ class IdentityReference(IdentityRef): """IdentityReference. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -439,7 +439,7 @@ class ProjectWorkItemStateColors(Model): :param project_name: Project name :type project_name: str :param work_item_type_state_colors: State colors for all work item type in a project - :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` + :type work_item_type_state_colors: list of :class:`WorkItemTypeStateColors ` """ _attribute_map = { @@ -501,7 +501,7 @@ class QueryHierarchyItemsResult(Model): :param has_more: Indicates if the max return limit was hit but there are still more items :type has_more: bool :param value: The list of items - :type value: list of :class:`QueryHierarchyItem ` + :type value: list of :class:`QueryHierarchyItem ` """ _attribute_map = { @@ -871,9 +871,9 @@ class WorkItemLink(Model): :param rel: The type of link. :type rel: str :param source: The source work item. - :type source: :class:`WorkItemReference ` + :type source: :class:`WorkItemReference ` :param target: The target work item. - :type target: :class:`WorkItemReference ` + :type target: :class:`WorkItemReference ` """ _attribute_map = { @@ -921,17 +921,17 @@ class WorkItemQueryClause(Model): """WorkItemQueryClause. :param clauses: Child clauses if the current clause is a logical operator - :type clauses: list of :class:`WorkItemQueryClause ` + :type clauses: list of :class:`WorkItemQueryClause ` :param field: Field associated with condition - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` :param field_value: Right side of the condition when a field to field comparison - :type field_value: :class:`WorkItemFieldReference ` + :type field_value: :class:`WorkItemFieldReference ` :param is_field_value: Determines if this is a field to field comparison :type is_field_value: bool :param logical_operator: Logical operator separating the condition clause :type logical_operator: object :param operator: The field operator - :type operator: :class:`WorkItemFieldOperation ` + :type operator: :class:`WorkItemFieldOperation ` :param value: Right side of the condition when a field to value comparison :type value: str """ @@ -963,17 +963,17 @@ class WorkItemQueryResult(Model): :param as_of: The date the query was run in the context of. :type as_of: datetime :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param query_result_type: The result type :type query_result_type: object :param query_type: The type of the query :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param work_item_relations: The work item links returned by the query. - :type work_item_relations: list of :class:`WorkItemLink ` + :type work_item_relations: list of :class:`WorkItemLink ` :param work_items: The work items returned by the query. - :type work_items: list of :class:`WorkItemReference ` + :type work_items: list of :class:`WorkItemReference ` """ _attribute_map = { @@ -1003,7 +1003,7 @@ class WorkItemQuerySortColumn(Model): :param descending: The direction to sort by. :type descending: bool :param field: A work item field. - :type field: :class:`WorkItemFieldReference ` + :type field: :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1062,11 +1062,11 @@ class WorkItemRelationUpdates(Model): """WorkItemRelationUpdates. :param added: List of newly added relations. - :type added: list of :class:`WorkItemRelation ` + :type added: list of :class:`WorkItemRelation ` :param removed: List of removed relations. - :type removed: list of :class:`WorkItemRelation ` + :type removed: list of :class:`WorkItemRelation ` :param updated: List of updated relations. - :type updated: list of :class:`WorkItemRelation ` + :type updated: list of :class:`WorkItemRelation ` """ _attribute_map = { @@ -1202,7 +1202,7 @@ class WorkItemTypeFieldInstanceBase(WorkItemFieldReference): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str """ @@ -1235,7 +1235,7 @@ class WorkItemTypeFieldWithReferences(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1284,7 +1284,7 @@ class WorkItemTypeStateColors(Model): """WorkItemTypeStateColors. :param state_colors: Work item type state colors - :type state_colors: list of :class:`WorkItemStateColor ` + :type state_colors: list of :class:`WorkItemStateColor ` :param work_item_type_name: Work item type name :type work_item_type_name: str """ @@ -1409,7 +1409,7 @@ class AccountRecentActivityWorkItemModel2(AccountRecentActivityWorkItemModelBase :param work_item_type: Type of Work Item :type work_item_type: str :param assigned_to: Assigned To - :type assigned_to: :class:`IdentityRef ` + :type assigned_to: :class:`IdentityRef ` """ _attribute_map = { @@ -1499,7 +1499,7 @@ class WorkItemDelete(WorkItemDeleteReference): :param url: REST API URL of the resource :type url: str :param resource: The work item object that was deleted. - :type resource: :class:`WorkItem ` + :type resource: :class:`WorkItem ` """ _attribute_map = { @@ -1526,7 +1526,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -1545,17 +1545,17 @@ class WorkItemType(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param color: The color. :type color: str :param description: The description of the work item type. :type description: str :param field_instances: The fields that exist on the work item type. - :type field_instances: list of :class:`WorkItemTypeFieldInstance ` + :type field_instances: list of :class:`WorkItemTypeFieldInstance ` :param fields: The fields that exist on the work item type. - :type fields: list of :class:`WorkItemTypeFieldInstance ` + :type fields: list of :class:`WorkItemTypeFieldInstance ` :param icon: The icon of the work item type. - :type icon: :class:`WorkItemIcon ` + :type icon: :class:`WorkItemIcon ` :param is_disabled: True if work item type is disabled :type is_disabled: bool :param name: Gets the name of the work item type. @@ -1563,7 +1563,7 @@ class WorkItemType(WorkItemTrackingResource): :param reference_name: The reference name of the work item type. :type reference_name: str :param states: Gets state information for the work item type. - :type states: list of :class:`WorkItemStateColor ` + :type states: list of :class:`WorkItemStateColor ` :param transitions: Gets the various state transition mappings in the work item type. :type transitions: dict :param xml_form: The XML form. @@ -1607,15 +1607,15 @@ class WorkItemTypeCategory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param default_work_item_type: Gets or sets the default type of the work item. - :type default_work_item_type: :class:`WorkItemTypeReference ` + :type default_work_item_type: :class:`WorkItemTypeReference ` :param name: The name of the category. :type name: str :param reference_name: The reference name of the category. :type reference_name: str :param work_item_types: The work item types that belond to the category. - :type work_item_types: list of :class:`WorkItemTypeReference ` + :type work_item_types: list of :class:`WorkItemTypeReference ` """ _attribute_map = { @@ -1647,7 +1647,7 @@ class WorkItemTypeFieldInstance(WorkItemTypeFieldInstanceBase): :param always_required: Indicates whether field value is always required. :type always_required: bool :param dependent_fields: The list of dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` :param help_text: Gets the help text for the field. :type help_text: str :param allowed_values: The list of field allowed values. @@ -1679,17 +1679,17 @@ class WorkItemUpdate(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param fields: List of updates to fields. :type fields: dict :param id: ID of update. :type id: int :param relations: List of updates to relations. - :type relations: :class:`WorkItemRelationUpdates ` + :type relations: :class:`WorkItemRelationUpdates ` :param rev: The revision number of work item update. :type rev: int :param revised_by: Identity for the work item update. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The work item updates revision date. :type revised_date: datetime :param work_item_id: The work item ID. @@ -1725,9 +1725,9 @@ class FieldDependentRule(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param dependent_fields: The dependent fields. - :type dependent_fields: list of :class:`WorkItemFieldReference ` + :type dependent_fields: list of :class:`WorkItemFieldReference ` """ _attribute_map = { @@ -1747,15 +1747,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param children: The child query items inside a query folder. - :type children: list of :class:`QueryHierarchyItem ` + :type children: list of :class:`QueryHierarchyItem ` :param clauses: The clauses for a flat query. - :type clauses: :class:`WorkItemQueryClause ` + :type clauses: :class:`WorkItemQueryClause ` :param columns: The columns of the query. - :type columns: list of :class:`WorkItemFieldReference ` + :type columns: list of :class:`WorkItemFieldReference ` :param created_by: The identity who created the query item. - :type created_by: :class:`IdentityReference ` + :type created_by: :class:`IdentityReference ` :param created_date: When the query item was created. :type created_date: datetime :param filter_options: The link query mode. @@ -1773,15 +1773,15 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param is_public: Indicates if this query item is public or private. :type is_public: bool :param last_executed_by: The identity who last ran the query. - :type last_executed_by: :class:`IdentityReference ` + :type last_executed_by: :class:`IdentityReference ` :param last_executed_date: When the query was last run. :type last_executed_date: datetime :param last_modified_by: The identity who last modified the query item. - :type last_modified_by: :class:`IdentityReference ` + :type last_modified_by: :class:`IdentityReference ` :param last_modified_date: When the query item was last modified. :type last_modified_date: datetime :param link_clauses: The link query clause. - :type link_clauses: :class:`WorkItemQueryClause ` + :type link_clauses: :class:`WorkItemQueryClause ` :param name: The name of the query item. :type name: str :param path: The path of the query item. @@ -1791,11 +1791,11 @@ class QueryHierarchyItem(WorkItemTrackingResource): :param query_type: The type of query. :type query_type: object :param sort_columns: The sort columns of the query. - :type sort_columns: list of :class:`WorkItemQuerySortColumn ` + :type sort_columns: list of :class:`WorkItemQuerySortColumn ` :param source_clauses: The source clauses in a tree or one-hop link query. - :type source_clauses: :class:`WorkItemQueryClause ` + :type source_clauses: :class:`WorkItemQueryClause ` :param target_clauses: The target clauses in a tree or one-hop link query. - :type target_clauses: :class:`WorkItemQueryClause ` + :type target_clauses: :class:`WorkItemQueryClause ` :param wiql: The WIQL text of the query :type wiql: str """ @@ -1865,15 +1865,15 @@ class WorkItem(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_version_ref: Reference to a specific version of the comment added/edited/deleted in this revision. - :type comment_version_ref: :class:`WorkItemCommentVersionRef ` + :type comment_version_ref: :class:`WorkItemCommentVersionRef ` :param fields: Map of field and values for the work item. :type fields: dict :param id: The work item ID. :type id: int :param relations: Relations of the work item. - :type relations: list of :class:`WorkItemRelation ` + :type relations: list of :class:`WorkItemRelation ` :param rev: Revision number of the work item. :type rev: int """ @@ -1903,11 +1903,11 @@ class WorkItemClassificationNode(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param attributes: Dictionary that has node attributes like start/finish date for iteration nodes. :type attributes: dict :param children: List of child nodes fetched. - :type children: list of :class:`WorkItemClassificationNode ` + :type children: list of :class:`WorkItemClassificationNode ` :param has_children: Flag that indicates if the classification node has any child nodes. :type has_children: bool :param id: Integer ID of the classification node. @@ -1953,9 +1953,9 @@ class WorkItemComment(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param revised_by: Identity of user who added the comment. - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: The date of comment. :type revised_date: datetime :param revision: The work item revision number. @@ -1987,9 +1987,9 @@ class WorkItemComments(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: Comments collection. - :type comments: list of :class:`WorkItemComment ` + :type comments: list of :class:`WorkItemComment ` :param count: The count of comments. :type count: int :param from_revision_count: Count of comments from the revision. @@ -2021,7 +2021,7 @@ class WorkItemField(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param can_sort_by: Indicates whether the field is sortable in server queries. :type can_sort_by: bool :param description: The description of the field. @@ -2043,7 +2043,7 @@ class WorkItemField(WorkItemTrackingResource): :param reference_name: The reference name of the field. :type reference_name: str :param supported_operations: The supported operations on this field. - :type supported_operations: list of :class:`WorkItemFieldOperation ` + :type supported_operations: list of :class:`WorkItemFieldOperation ` :param type: The type of the field. :type type: object :param usage: The usage of the field. @@ -2091,11 +2091,11 @@ class WorkItemHistory(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param rev: :type rev: int :param revised_by: - :type revised_by: :class:`IdentityReference ` + :type revised_by: :class:`IdentityReference ` :param revised_date: :type revised_date: datetime :param value: @@ -2125,7 +2125,7 @@ class WorkItemTemplateReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. @@ -2159,7 +2159,7 @@ class WorkItemTrackingReference(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2185,7 +2185,7 @@ class WorkItemRelationType(WorkItemTrackingReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param name: The name. :type name: str :param reference_name: The reference name. @@ -2213,7 +2213,7 @@ class WorkItemTemplate(WorkItemTemplateReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param description: The description of the work item template. :type description: str :param id: The identifier of the work item template. diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py index f8cfcd22..1c0f6906 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/models.py @@ -13,7 +13,7 @@ class GraphSubjectBase(Model): """GraphSubjectBase. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -41,7 +41,7 @@ class IdentityRef(GraphSubjectBase): """IdentityRef. :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. :type descriptor: str :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. @@ -167,7 +167,7 @@ class WorkItemTrackingResource(WorkItemTrackingResourceReference): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` """ _attribute_map = { @@ -186,7 +186,7 @@ class WorkItemCommentReactionResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_id: The id of the comment this reaction belongs to. :type comment_id: int :param count: Total number of reactions for the EngagementType. @@ -220,25 +220,25 @@ class WorkItemCommentResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_id: The id assigned to the comment. :type comment_id: int :param created_by: IdentityRef of the creator of the comment. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The creation date of the comment. :type created_date: datetime :param created_on_behalf_date: Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. :type created_on_behalf_date: datetime :param created_on_behalf_of: Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. - :type created_on_behalf_of: :class:`IdentityRef ` + :type created_on_behalf_of: :class:`IdentityRef ` :param is_deleted: Indicates if the comment has been deleted. :type is_deleted: bool :param modified_by: IdentityRef of the user who last modified the comment. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: The last modification date of the comment. :type modified_date: datetime :param reactions: The reactions of the comment. - :type reactions: list of :class:`WorkItemCommentReactionResponse ` + :type reactions: list of :class:`WorkItemCommentReactionResponse ` :param text: The text of the comment. :type text: str :param version: The current version of the comment. @@ -286,9 +286,9 @@ class WorkItemCommentsResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: List of comments in the current batch. - :type comments: list of :class:`WorkItemCommentResponse ` + :type comments: list of :class:`WorkItemCommentResponse ` :param continuation_token: A string token that can be used to retrieving next page of comments if available. Otherwise null. :type continuation_token: str :param count: The count of comments in the current batch. @@ -324,21 +324,21 @@ class WorkItemCommentVersionResponse(WorkItemTrackingResource): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comment_id: The id assigned to the comment. :type comment_id: int :param created_by: IdentityRef of the creator of the comment. - :type created_by: :class:`IdentityRef ` + :type created_by: :class:`IdentityRef ` :param created_date: The creation date of the comment. :type created_date: datetime :param created_on_behalf_date: Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. :type created_on_behalf_date: datetime :param created_on_behalf_of: Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. - :type created_on_behalf_of: :class:`IdentityRef ` + :type created_on_behalf_of: :class:`IdentityRef ` :param is_deleted: Indicates if the comment has been deleted at this version. :type is_deleted: bool :param modified_by: IdentityRef of the user who modified the comment at this version. - :type modified_by: :class:`IdentityRef ` + :type modified_by: :class:`IdentityRef ` :param modified_date: The modification date of the comment for this version. :type modified_date: datetime :param rendered_text: The rendered content of the comment at this version. @@ -386,9 +386,9 @@ class WorkItemCommentsReportingResponse(WorkItemCommentsResponse): :param url: :type url: str :param _links: Link references to related REST resources. - :type _links: :class:`ReferenceLinks ` + :type _links: :class:`ReferenceLinks ` :param comments: List of comments in the current batch. - :type comments: list of :class:`WorkItemCommentResponse ` + :type comments: list of :class:`WorkItemCommentResponse ` :param continuation_token: A string token that can be used to retrieving next page of comments if available. Otherwise null. :type continuation_token: str :param count: The count of comments in the current batch. diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py index 5153e9cc..1378eca2 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py @@ -45,7 +45,7 @@ class Control(Model): """Control. :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param control_type: Type of the control. :type control_type: str :param height: Height of the control, for html controls. @@ -137,9 +137,9 @@ class CreateProcessRuleRequest(Model): """CreateProcessRuleRequest. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -253,9 +253,9 @@ class FieldRuleModel(Model): """FieldRuleModel. :param actions: - :type actions: list of :class:`RuleActionModel ` + :type actions: list of :class:`RuleActionModel ` :param conditions: - :type conditions: list of :class:`RuleConditionModel ` + :type conditions: list of :class:`RuleConditionModel ` :param friendly_name: :type friendly_name: str :param id: @@ -289,11 +289,11 @@ class FormLayout(Model): """FormLayout. :param extensions: Gets and sets extensions list. - :type extensions: list of :class:`Extension ` + :type extensions: list of :class:`Extension ` :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` + :type pages: list of :class:`Page ` :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` + :type system_controls: list of :class:`Control ` """ _attribute_map = { @@ -313,9 +313,9 @@ class Group(Model): """Group. :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` + :type controls: list of :class:`Control ` :param height: The height for the contribution. :type height: int :param id: The id for the layout node. @@ -381,7 +381,7 @@ class Page(Model): """Page. :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` + :type contribution: :class:`WitContribution ` :param id: The id for the layout node. :type id: str :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. @@ -399,7 +399,7 @@ class Page(Model): :param page_type: The icon for the page. :type page_type: object :param sections: The sections of the page. - :type sections: list of :class:`Section ` + :type sections: list of :class:`Section ` :param visible: A value indicating if the page should be hidden or not. :type visible: bool """ @@ -475,9 +475,9 @@ class ProcessBehavior(Model): :param description: . Description :type description: str :param fields: Process Behavior Fields. - :type fields: list of :class:`ProcessBehaviorField ` + :type fields: list of :class:`ProcessBehaviorField ` :param inherits: Parent behavior reference. - :type inherits: :class:`ProcessBehaviorReference ` + :type inherits: :class:`ProcessBehaviorReference ` :param name: Behavior Name. :type name: str :param rank: Rank of the behavior @@ -621,7 +621,7 @@ class ProcessInfo(Model): :param parent_process_type_id: ID of the parent process. :type parent_process_type_id: str :param projects: Projects in this process to which the user is subscribed to. - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param reference_name: Reference name of the process. :type reference_name: str :param type_id: The ID of the process. @@ -661,9 +661,9 @@ class ProcessModel(Model): :param name: Name of the process :type name: str :param projects: Projects in this process - :type projects: list of :class:`ProjectReference ` + :type projects: list of :class:`ProjectReference ` :param properties: Properties of the process - :type properties: :class:`ProcessProperties ` + :type properties: :class:`ProcessProperties ` :param reference_name: Reference name of the process :type reference_name: str :param type_id: The ID of the process @@ -725,9 +725,9 @@ class ProcessRule(CreateProcessRuleRequest): """ProcessRule. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -761,7 +761,7 @@ class ProcessWorkItemType(Model): """ProcessWorkItemType. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param color: Color hexadecimal code to represent the work item type :type color: str :param customization: Indicates the type of customization on this work item System work item types are inherited from parent process but not modified Inherited work item types are modified work item that were inherited from parent process Custom work item types are work item types that were created in the current process @@ -775,13 +775,13 @@ class ProcessWorkItemType(Model): :param is_disabled: Indicates if a work item type is disabled :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: Name of the work item type :type name: str :param reference_name: Reference name of work item type :type reference_name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: Url of the work item type :type url: str """ @@ -997,7 +997,7 @@ class Section(Model): """Section. :param groups: List of child groups in this section - :type groups: list of :class:`Group ` + :type groups: list of :class:`Group ` :param id: The id for the layout node. :type id: str :param overridden: A value indicating whether this layout node has been overridden by a child layout. @@ -1049,9 +1049,9 @@ class UpdateProcessRuleRequest(CreateProcessRuleRequest): """UpdateProcessRuleRequest. :param actions: List of actions to take when the rule is triggered. - :type actions: list of :class:`RuleAction ` + :type actions: list of :class:`RuleAction ` :param conditions: List of conditions when the rule should be triggered. - :type conditions: list of :class:`RuleCondition ` + :type conditions: list of :class:`RuleCondition ` :param is_disabled: Indicates if the rule is disabled. :type is_disabled: bool :param name: Name for the rule. @@ -1167,11 +1167,11 @@ class WorkItemBehavior(Model): :param description: :type description: str :param fields: - :type fields: list of :class:`WorkItemBehaviorField ` + :type fields: list of :class:`WorkItemBehaviorField ` :param id: :type id: str :param inherits: - :type inherits: :class:`WorkItemBehaviorReference ` + :type inherits: :class:`WorkItemBehaviorReference ` :param name: :type name: str :param overriden: @@ -1329,7 +1329,7 @@ class WorkItemTypeBehavior(Model): """WorkItemTypeBehavior. :param behavior: Reference to the behavior of a work item type - :type behavior: :class:`WorkItemBehaviorReference ` + :type behavior: :class:`WorkItemBehaviorReference ` :param is_default: If true the work item type is the default work item type in the behavior :type is_default: bool :param url: URL of the work item type behavior @@ -1353,7 +1353,7 @@ class WorkItemTypeModel(Model): """WorkItemTypeModel. :param behaviors: - :type behaviors: list of :class:`WorkItemTypeBehavior ` + :type behaviors: list of :class:`WorkItemTypeBehavior ` :param class_: :type class_: object :param color: @@ -1369,11 +1369,11 @@ class WorkItemTypeModel(Model): :param is_disabled: :type is_disabled: bool :param layout: - :type layout: :class:`FormLayout ` + :type layout: :class:`FormLayout ` :param name: :type name: str :param states: - :type states: list of :class:`WorkItemStateResultModel ` + :type states: list of :class:`WorkItemStateResultModel ` :param url: :type url: str """ diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py index 0acd9a6e..1130c919 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/work_item_tracking_process_client.py @@ -11,14 +11,14 @@ from . import models -class WorkItemTrackingClient(Client): - """WorkItemTracking +class WorkItemTrackingProcessClient(Client): + """WorkItemTrackingProcess :param str base_url: Service URL :param Authentication creds: Authenticated credentials. """ def __init__(self, base_url=None, creds=None): - super(WorkItemTrackingClient, self).__init__(base_url, creds) + super(WorkItemTrackingProcessClient, 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) @@ -28,9 +28,9 @@ def __init__(self, base_url=None, creds=None): def create_process_behavior(self, behavior, process_id): """CreateProcessBehavior. [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -65,7 +65,7 @@ def get_process_behavior(self, process_id, behavior_ref_name, expand=None): :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -105,10 +105,10 @@ def get_process_behaviors(self, process_id, expand=None): def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): """UpdateProcessBehavior. [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: + :param :class:` ` behavior_data: :param str process_id: The ID of the process :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -126,11 +126,11 @@ def update_process_behavior(self, behavior_data, process_id, behavior_ref_name): def create_control_in_group(self, control, process_id, wit_ref_name, group_id): """CreateControlInGroup. [Preview API] Creates a control in a group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to add the control to. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -150,13 +150,13 @@ def create_control_in_group(self, control, process_id, wit_ref_name, group_id): def move_control_to_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): """MoveControlToGroup. [Preview API] Moves a control to a specified group. - :param :class:` ` control: The control. + :param :class:` ` control: The control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group to move the control to. :param str control_id: The ID of the control. :param str remove_from_group_id: The group ID to remove the control from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -204,12 +204,12 @@ def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_ def update_control(self, control, process_id, wit_ref_name, group_id, control_id): """UpdateControl. [Preview API] Updates a control on the work item form. - :param :class:` ` control: The updated control. + :param :class:` ` control: The updated control. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str group_id: The ID of the group. :param str control_id: The ID of the control. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -231,10 +231,10 @@ def update_control(self, control, process_id, wit_ref_name, group_id, control_id def add_field_to_work_item_type(self, field, process_id, wit_ref_name): """AddFieldToWorkItemType. [Preview API] Adds a field to a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -273,7 +273,7 @@ def get_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str field_ref_name: The reference name of the field. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -310,11 +310,11 @@ def remove_work_item_type_field(self, process_id, wit_ref_name, field_ref_name): def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref_name): """UpdateWorkItemTypeField. [Preview API] Updates a field in a work item type. - :param :class:` ` field: + :param :class:` ` field: :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str field_ref_name: The reference name of the field. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -334,12 +334,12 @@ def update_work_item_type_field(self, field, process_id, wit_ref_name, field_ref def add_group(self, group, process_id, wit_ref_name, page_id, section_id): """AddGroup. [Preview API] Adds a group to the work item form. - :param :class:` ` group: The group. + :param :class:` ` group: The group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page to add the group to. :param str section_id: The ID of the section to add the group to. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -361,7 +361,7 @@ def add_group(self, group, process_id, wit_ref_name, page_id, section_id): def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): """MoveGroupToPage. [Preview API] Moves a group to a different page and section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. @@ -369,7 +369,7 @@ def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_i :param str group_id: The ID of the group. :param str remove_from_page_id: ID of the page to remove the group from. :param str remove_from_section_id: ID of the section to remove the group from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -399,14 +399,14 @@ def move_group_to_page(self, group, process_id, wit_ref_name, page_id, section_i def move_group_to_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): """MoveGroupToSection. [Preview API] Moves a group to a different section. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. :param str section_id: The ID of the section the group is in. :param str group_id: The ID of the group. :param str remove_from_section_id: ID of the section to remove the group from. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -459,13 +459,13 @@ def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): def update_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): """UpdateGroup. [Preview API] Updates a group in the work item form. - :param :class:` ` group: The updated group. + :param :class:` ` group: The updated group. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. :param str page_id: The ID of the page the group is in. :param str section_id: The ID of the section the group is in. :param str group_id: The ID of the group. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -491,7 +491,7 @@ def get_form_layout(self, process_id, wit_ref_name): [Preview API] Gets the form layout. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -507,8 +507,8 @@ def get_form_layout(self, process_id, wit_ref_name): def create_list(self, picklist): """CreateList. [Preview API] Creates a picklist. - :param :class:` ` picklist: Picklist - :rtype: :class:` ` + :param :class:` ` picklist: Picklist + :rtype: :class:` ` """ content = self._serialize.body(picklist, 'PickList') response = self._send(http_method='POST', @@ -534,7 +534,7 @@ def get_list(self, list_id): """GetList. [Preview API] Returns a picklist. :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -558,9 +558,9 @@ def get_lists_metadata(self): def update_list(self, picklist, list_id): """UpdateList. [Preview API] Updates a list. - :param :class:` ` picklist: + :param :class:` ` picklist: :param str list_id: The ID of the list - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if list_id is not None: @@ -576,10 +576,10 @@ def update_list(self, picklist, list_id): def add_page(self, page, process_id, wit_ref_name): """AddPage. [Preview API] Adds a page to the work item form. - :param :class:` ` page: The page. + :param :class:` ` page: The page. :param str process_id: The ID of the process. :param str wit_ref_name: The reference name of the work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -616,10 +616,10 @@ def remove_page(self, process_id, wit_ref_name, page_id): def update_page(self, page, process_id, wit_ref_name): """UpdatePage. [Preview API] Updates a page on the work item form - :param :class:` ` page: The page + :param :class:` ` page: The page :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -637,8 +637,8 @@ def update_page(self, page, process_id, wit_ref_name): def create_new_process(self, create_request): """CreateNewProcess. [Preview API] Creates a process. - :param :class:` ` create_request: CreateProcessModel. - :rtype: :class:` ` + :param :class:` ` create_request: CreateProcessModel. + :rtype: :class:` ` """ content = self._serialize.body(create_request, 'CreateProcessModel') response = self._send(http_method='POST', @@ -663,9 +663,9 @@ def delete_process_by_id(self, process_type_id): def edit_process(self, update_request, process_type_id): """EditProcess. [Preview API] Edit a process of a specific ID. - :param :class:` ` update_request: + :param :class:` ` update_request: :param str process_type_id: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -698,7 +698,7 @@ def get_process_by_its_id(self, process_type_id, expand=None): [Preview API] Get a single process of a specified ID. :param str process_type_id: :param str expand: - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_type_id is not None: @@ -716,10 +716,10 @@ def get_process_by_its_id(self, process_type_id, expand=None): def add_process_work_item_type_rule(self, process_rule_create, process_id, wit_ref_name): """AddProcessWorkItemTypeRule. [Preview API] Adds a rule to work item type in the process. - :param :class:` ` process_rule_create: + :param :class:` ` process_rule_create: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -759,7 +759,7 @@ def get_process_work_item_type_rule(self, process_id, wit_ref_name, rule_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -795,11 +795,11 @@ def get_process_work_item_type_rules(self, process_id, wit_ref_name): def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_name, rule_id): """UpdateProcessWorkItemTypeRule. [Preview API] Updates a rule in the work item type of the process. - :param :class:` ` process_rule: + :param :class:` ` process_rule: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str rule_id: The ID of the rule - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -819,10 +819,10 @@ def update_process_work_item_type_rule(self, process_rule, process_id, wit_ref_n def create_state_definition(self, state_model, process_id, wit_ref_name): """CreateStateDefinition. [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -862,7 +862,7 @@ def get_state_definition(self, process_id, wit_ref_name, state_id): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -898,11 +898,11 @@ def get_state_definitions(self, process_id, wit_ref_name): def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): """HideStateDefinition. [Preview API] Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden. - :param :class:` ` hide_state_model: + :param :class:` ` hide_state_model: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: The ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -922,11 +922,11 @@ def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, stat def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): """UpdateStateDefinition. [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: + :param :class:` ` state_model: :param str process_id: ID of the process :param str wit_ref_name: The reference name of the work item type :param str state_id: ID of the state - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -946,9 +946,9 @@ def update_state_definition(self, state_model, process_id, wit_ref_name, state_i def create_process_work_item_type(self, work_item_type, process_id): """CreateProcessWorkItemType. [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: + :param :class:` ` work_item_type: :param str process_id: The ID of the process on which to create work item type. - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -983,7 +983,7 @@ def get_process_work_item_type(self, process_id, wit_ref_name, expand=None): :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type :param str expand: Flag to determine what properties of work item type to return - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1023,10 +1023,10 @@ def get_process_work_item_types(self, process_id, expand=None): def update_process_work_item_type(self, work_item_type_update, process_id, wit_ref_name): """UpdateProcessWorkItemType. [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: + :param :class:` ` work_item_type_update: :param str process_id: The ID of the process :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1044,10 +1044,10 @@ def update_process_work_item_type(self, work_item_type_update, process_id, wit_r def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """AddBehaviorToWorkItemType. [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1068,7 +1068,7 @@ def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: @@ -1123,10 +1123,10 @@ def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behav def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): """UpdateBehaviorToWorkItemType. [Preview API] Updates a behavior for the work item type of the process. - :param :class:` ` behavior: + :param :class:` ` behavior: :param str process_id: The ID of the process :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` + :rtype: :class:` ` """ route_values = {} if process_id is not None: diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py new file mode 100644 index 00000000..793a0fbf --- /dev/null +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py @@ -0,0 +1,36 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeFieldModel2', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py new file mode 100644 index 00000000..511431d3 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py @@ -0,0 +1,848 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BehaviorCreateModel(Model): + """BehaviorCreateModel. + + :param color: Color + :type color: str + :param id: Optional - Id + :type id: str + :param inherits: Parent behavior id + :type inherits: str + :param name: Name of the behavior + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, id=None, inherits=None, name=None): + super(BehaviorCreateModel, self).__init__() + self.color = color + self.id = id + self.inherits = inherits + self.name = name + + +class BehaviorModel(Model): + """BehaviorModel. + + :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) + :type abstract: bool + :param color: Color + :type color: str + :param description: Description + :type description: str + :param id: Behavior Id + :type id: str + :param inherits: Parent behavior reference + :type inherits: :class:`WorkItemBehaviorReference ` + :param name: Behavior Name + :type name: str + :param overridden: Is the behavior overrides a behavior from system process + :type overridden: bool + :param rank: Rank + :type rank: int + :param url: Url of the behavior + :type url: str + """ + + _attribute_map = { + 'abstract': {'key': 'abstract', 'type': 'bool'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, + 'name': {'key': 'name', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): + super(BehaviorModel, self).__init__() + self.abstract = abstract + self.color = color + self.description = description + self.id = id + self.inherits = inherits + self.name = name + self.overridden = overridden + self.rank = rank + self.url = url + + +class BehaviorReplaceModel(Model): + """BehaviorReplaceModel. + + :param color: Color + :type color: str + :param name: Behavior Name + :type name: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, color=None, name=None): + super(BehaviorReplaceModel, self).__init__() + self.color = color + self.name = name + + +class Control(Model): + """Control. + + :param contribution: Contribution for the control. + :type contribution: :class:`WitContribution ` + :param control_type: Type of the control. + :type control_type: str + :param height: Height of the control, for html controls. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution or not. + :type is_contribution: bool + :param label: Label for the field + :type label: str + :param metadata: Inner text of the control. + :type metadata: str + :param order: + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param read_only: A value indicating if the control is readonly. + :type read_only: bool + :param visible: A value indicating if the control should be hidden or not. + :type visible: bool + :param watermark: Watermark text for the textbox. + :type watermark: str + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'control_type': {'key': 'controlType', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'}, + 'watermark': {'key': 'watermark', 'type': 'str'} + } + + def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): + super(Control, self).__init__() + self.contribution = contribution + self.control_type = control_type + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.metadata = metadata + self.order = order + self.overridden = overridden + self.read_only = read_only + self.visible = visible + self.watermark = watermark + + +class Extension(Model): + """Extension. + + :param id: + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, id=None): + super(Extension, self).__init__() + self.id = id + + +class FieldModel(Model): + """FieldModel. + + :param description: Description about field + :type description: str + :param id: ID of the field + :type id: str + :param name: Name of the field + :type name: str + :param pick_list: Reference to picklist in this field + :type pick_list: :class:`PickListMetadataModel ` + :param type: Type of field + :type type: object + :param url: Url to the field + :type url: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): + super(FieldModel, self).__init__() + self.description = description + self.id = id + self.name = name + self.pick_list = pick_list + self.type = type + self.url = url + + +class FieldUpdate(Model): + """FieldUpdate. + + :param description: + :type description: str + :param id: + :type id: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'} + } + + def __init__(self, description=None, id=None): + super(FieldUpdate, self).__init__() + self.description = description + self.id = id + + +class FormLayout(Model): + """FormLayout. + + :param extensions: Gets and sets extensions list + :type extensions: list of :class:`Extension ` + :param pages: Top level tabs of the layout. + :type pages: list of :class:`Page ` + :param system_controls: Headers controls of the layout. + :type system_controls: list of :class:`Control ` + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'pages': {'key': 'pages', 'type': '[Page]'}, + 'system_controls': {'key': 'systemControls', 'type': '[Control]'} + } + + def __init__(self, extensions=None, pages=None, system_controls=None): + super(FormLayout, self).__init__() + self.extensions = extensions + self.pages = pages + self.system_controls = system_controls + + +class Group(Model): + """Group. + + :param contribution: Contribution for the group. + :type contribution: :class:`WitContribution ` + :param controls: Controls to be put in the group. + :type controls: list of :class:`Control ` + :param height: The height for the contribution. + :type height: int + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: Label for the group. + :type label: str + :param order: Order in which the group should appear in the section. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param visible: A value indicating if the group should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'controls': {'key': 'controls', 'type': '[Control]'}, + 'height': {'key': 'height', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): + super(Group, self).__init__() + self.contribution = contribution + self.controls = controls + self.height = height + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.order = order + self.overridden = overridden + self.visible = visible + + +class HideStateModel(Model): + """HideStateModel. + + :param hidden: + :type hidden: bool + """ + + _attribute_map = { + 'hidden': {'key': 'hidden', 'type': 'bool'} + } + + def __init__(self, hidden=None): + super(HideStateModel, self).__init__() + self.hidden = hidden + + +class Page(Model): + """Page. + + :param contribution: Contribution for the page. + :type contribution: :class:`WitContribution ` + :param id: The id for the layout node. + :type id: str + :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. + :type inherited: bool + :param is_contribution: A value indicating if the layout node is contribution are not. + :type is_contribution: bool + :param label: The label for the page. + :type label: str + :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page + :type locked: bool + :param order: Order in which the page should appear in the layout. + :type order: int + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + :param page_type: The icon for the page. + :type page_type: object + :param sections: The sections of the page. + :type sections: list of :class:`Section ` + :param visible: A value indicating if the page should be hidden or not. + :type visible: bool + """ + + _attribute_map = { + 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherited': {'key': 'inherited', 'type': 'bool'}, + 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, + 'label': {'key': 'label', 'type': 'str'}, + 'locked': {'key': 'locked', 'type': 'bool'}, + 'order': {'key': 'order', 'type': 'int'}, + 'overridden': {'key': 'overridden', 'type': 'bool'}, + 'page_type': {'key': 'pageType', 'type': 'object'}, + 'sections': {'key': 'sections', 'type': '[Section]'}, + 'visible': {'key': 'visible', 'type': 'bool'} + } + + def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): + super(Page, self).__init__() + self.contribution = contribution + self.id = id + self.inherited = inherited + self.is_contribution = is_contribution + self.label = label + self.locked = locked + self.order = order + self.overridden = overridden + self.page_type = page_type + self.sections = sections + self.visible = visible + + +class PickListItemModel(Model): + """PickListItemModel. + + :param id: + :type id: str + :param value: + :type value: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, id=None, value=None): + super(PickListItemModel, self).__init__() + self.id = id + self.value = value + + +class PickListMetadataModel(Model): + """PickListMetadataModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): + super(PickListMetadataModel, self).__init__() + self.id = id + self.is_suggested = is_suggested + self.name = name + self.type = type + self.url = url + + +class PickListModel(PickListMetadataModel): + """PickListModel. + + :param id: ID of the picklist + :type id: str + :param is_suggested: Is input values by user only limited to suggested values + :type is_suggested: bool + :param name: Name of the picklist + :type name: str + :param type: Type of picklist + :type type: str + :param url: Url of the picklist + :type url: str + :param items: A list of PicklistItemModel + :type items: list of :class:`PickListItemModel ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'items': {'key': 'items', 'type': '[PickListItemModel]'} + } + + def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): + super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) + self.items = items + + +class Section(Model): + """Section. + + :param groups: + :type groups: list of :class:`Group ` + :param id: The id for the layout node. + :type id: str + :param overridden: A value indicating whether this layout node has been overridden by a child layout. + :type overridden: bool + """ + + _attribute_map = { + 'groups': {'key': 'groups', 'type': '[Group]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'overridden': {'key': 'overridden', 'type': 'bool'} + } + + def __init__(self, groups=None, id=None, overridden=None): + super(Section, self).__init__() + self.groups = groups + self.id = id + self.overridden = overridden + + +class WitContribution(Model): + """WitContribution. + + :param contribution_id: The id for the contribution. + :type contribution_id: str + :param height: The height for the contribution. + :type height: int + :param inputs: A dictionary holding key value pairs for contribution inputs. + :type inputs: dict + :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. + :type show_on_deleted_work_item: bool + """ + + _attribute_map = { + 'contribution_id': {'key': 'contributionId', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'int'}, + 'inputs': {'key': 'inputs', 'type': '{object}'}, + 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} + } + + def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): + super(WitContribution, self).__init__() + self.contribution_id = contribution_id + self.height = height + self.inputs = inputs + self.show_on_deleted_work_item = show_on_deleted_work_item + + +class WorkItemBehaviorReference(Model): + """WorkItemBehaviorReference. + + :param id: The ID of the reference behavior + :type id: str + :param url: The url of the reference behavior + :type url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, id=None, url=None): + super(WorkItemBehaviorReference, self).__init__() + self.id = id + self.url = url + + +class WorkItemStateInputModel(Model): + """WorkItemStateInputModel. + + :param color: Color of the state + :type color: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'} + } + + def __init__(self, color=None, name=None, order=None, state_category=None): + super(WorkItemStateInputModel, self).__init__() + self.color = color + self.name = name + self.order = order + self.state_category = state_category + + +class WorkItemStateResultModel(Model): + """WorkItemStateResultModel. + + :param color: Color of the state + :type color: str + :param hidden: Is the state hidden + :type hidden: bool + :param id: The ID of the State + :type id: str + :param name: Name of the state + :type name: str + :param order: Order in which state should appear + :type order: int + :param state_category: Category of the state + :type state_category: str + :param url: Url of the state + :type url: str + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'hidden': {'key': 'hidden', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'int'}, + 'state_category': {'key': 'stateCategory', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): + super(WorkItemStateResultModel, self).__init__() + self.color = color + self.hidden = hidden + self.id = id + self.name = name + self.order = order + self.state_category = state_category + self.url = url + + +class WorkItemTypeBehavior(Model): + """WorkItemTypeBehavior. + + :param behavior: + :type behavior: :class:`WorkItemBehaviorReference ` + :param is_default: + :type is_default: bool + :param url: + :type url: str + """ + + _attribute_map = { + 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behavior=None, is_default=None, url=None): + super(WorkItemTypeBehavior, self).__init__() + self.behavior = behavior + self.is_default = is_default + self.url = url + + +class WorkItemTypeFieldModel(Model): + """WorkItemTypeFieldModel. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: str + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class WorkItemTypeFieldModel2(Model): + """WorkItemTypeFieldModel2. + + :param allow_groups: + :type allow_groups: bool + :param default_value: + :type default_value: object + :param name: + :type name: str + :param pick_list: + :type pick_list: :class:`PickListMetadataModel ` + :param read_only: + :type read_only: bool + :param reference_name: + :type reference_name: str + :param required: + :type required: bool + :param type: + :type type: object + :param url: + :type url: str + """ + + _attribute_map = { + 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, + 'default_value': {'key': 'defaultValue', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'object'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): + super(WorkItemTypeFieldModel2, self).__init__() + self.allow_groups = allow_groups + self.default_value = default_value + self.name = name + self.pick_list = pick_list + self.read_only = read_only + self.reference_name = reference_name + self.required = required + self.type = type + self.url = url + + +class WorkItemTypeModel(Model): + """WorkItemTypeModel. + + :param behaviors: Behaviors of the work item type + :type behaviors: list of :class:`WorkItemTypeBehavior ` + :param class_: Class of the work item type + :type class_: object + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param id: The ID of the work item type + :type id: str + :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from + :type inherits: str + :param is_disabled: Is work item type disabled + :type is_disabled: bool + :param layout: Layout of the work item type + :type layout: :class:`FormLayout ` + :param name: Name of the work item type + :type name: str + :param states: States of the work item type + :type states: list of :class:`WorkItemStateResultModel ` + :param url: Url of the work item type + :type url: str + """ + + _attribute_map = { + 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, + 'class_': {'key': 'class', 'type': 'object'}, + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'inherits': {'key': 'inherits', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'layout': {'key': 'layout', 'type': 'FormLayout'}, + 'name': {'key': 'name', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): + super(WorkItemTypeModel, self).__init__() + self.behaviors = behaviors + self.class_ = class_ + self.color = color + self.description = description + self.icon = icon + self.id = id + self.inherits = inherits + self.is_disabled = is_disabled + self.layout = layout + self.name = name + self.states = states + self.url = url + + +class WorkItemTypeUpdateModel(Model): + """WorkItemTypeUpdateModel. + + :param color: Color of the work item type + :type color: str + :param description: Description of the work item type + :type description: str + :param icon: Icon of the work item type + :type icon: str + :param is_disabled: Is the workitem type to be disabled + :type is_disabled: bool + """ + + _attribute_map = { + 'color': {'key': 'color', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon': {'key': 'icon', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} + } + + def __init__(self, color=None, description=None, icon=None, is_disabled=None): + super(WorkItemTypeUpdateModel, self).__init__() + self.color = color + self.description = description + self.icon = icon + self.is_disabled = is_disabled + + +__all__ = [ + 'BehaviorCreateModel', + 'BehaviorModel', + 'BehaviorReplaceModel', + 'Control', + 'Extension', + 'FieldModel', + 'FieldUpdate', + 'FormLayout', + 'Group', + 'HideStateModel', + 'Page', + 'PickListItemModel', + 'PickListMetadataModel', + 'PickListModel', + 'Section', + 'WitContribution', + 'WorkItemBehaviorReference', + 'WorkItemStateInputModel', + 'WorkItemStateResultModel', + 'WorkItemTypeBehavior', + 'WorkItemTypeFieldModel', + 'WorkItemTypeFieldModel2', + 'WorkItemTypeModel', + 'WorkItemTypeUpdateModel', +] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py new file mode 100644 index 00000000..857a78dc --- /dev/null +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py @@ -0,0 +1,963 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class WorkItemTrackingProcessDefinitionsClient(Client): + """WorkItemTrackingProcessDefinitions + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingProcessDefinitionsClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' + + def create_behavior(self, behavior, process_id): + """CreateBehavior. + [Preview API] Creates a single behavior in the given process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(behavior, 'BehaviorCreateModel') + response = self._send(http_method='POST', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def delete_behavior(self, process_id, behavior_id): + """DeleteBehavior. + [Preview API] Removes a behavior in the process. + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + self._send(http_method='DELETE', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.1-preview.1', + route_values=route_values) + + def get_behavior(self, process_id, behavior_id): + """GetBehavior. + [Preview API] Returns a single behavior in the process. + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('BehaviorModel', response) + + def get_behaviors(self, process_id): + """GetBehaviors. + [Preview API] Returns a list of all behaviors in the process. + :param str process_id: The ID of the process + :rtype: [BehaviorModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) + + def replace_behavior(self, behavior_data, process_id, behavior_id): + """ReplaceBehavior. + [Preview API] Replaces a behavior in the process. + :param :class:` ` behavior_data: + :param str process_id: The ID of the process + :param str behavior_id: The ID of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if behavior_id is not None: + route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') + content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') + response = self._send(http_method='PUT', + location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('BehaviorModel', response) + + def add_control_to_group(self, control, process_id, wit_ref_name, group_id): + """AddControlToGroup. + [Preview API] Creates a control in a group + :param :class:` ` control: The control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group to add the control to + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='POST', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): + """EditControl. + [Preview API] Updates a control on the work item form + :param :class:` ` control: The updated control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group + :param str control_id: The ID of the control + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PATCH', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Control', response) + + def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): + """RemoveControlFromGroup. + [Preview API] Removes a control from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group + :param str control_id: The ID of the control to remove + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + self._send(http_method='DELETE', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.1-preview.1', + route_values=route_values) + + def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): + """SetControlInGroup. + [Preview API] Moves a control to a new group + :param :class:` ` control: The control + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str group_id: The ID of the group to move the control to + :param str control_id: The id of the control + :param str remove_from_group_id: The group to remove the control from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + if control_id is not None: + route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') + query_parameters = {} + if remove_from_group_id is not None: + query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') + content = self._serialize.body(control, 'Control') + response = self._send(http_method='PUT', + location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Control', response) + + def create_field(self, field, process_id): + """CreateField. + [Preview API] Creates a single field in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldModel') + response = self._send(http_method='POST', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def update_field(self, field, process_id): + """UpdateField. + [Preview API] Updates a given field in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(field, 'FieldUpdate') + response = self._send(http_method='PATCH', + location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('FieldModel', response) + + def add_group(self, group, process_id, wit_ref_name, page_id, section_id): + """AddGroup. + [Preview API] Adds a group to the work item form + :param :class:` ` group: The group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page to add the group to + :param str section_id: The ID of the section to add the group to + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='POST', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): + """EditGroup. + [Preview API] Updates a group in the work item form + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PATCH', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Group', response) + + def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): + """RemoveGroup. + [Preview API] Removes a group from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section to the group is in + :param str group_id: The ID of the group + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + self._send(http_method='DELETE', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.1-preview.1', + route_values=route_values) + + def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): + """SetGroupInPage. + [Preview API] Moves a group to a different page and section + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :param str remove_from_page_id: ID of the page to remove the group from + :param str remove_from_section_id: ID of the section to remove the group from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_page_id is not None: + query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): + """SetGroupInSection. + [Preview API] Moves a group to a different section + :param :class:` ` group: The updated group + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page the group is in + :param str section_id: The ID of the section the group is in + :param str group_id: The ID of the group + :param str remove_from_section_id: ID of the section to remove the group from + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + if section_id is not None: + route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + query_parameters = {} + if remove_from_section_id is not None: + query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') + content = self._serialize.body(group, 'Group') + response = self._send(http_method='PUT', + location_id='2617828b-e850-4375-a92a-04855704d4c3', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Group', response) + + def get_form_layout(self, process_id, wit_ref_name): + """GetFormLayout. + [Preview API] Gets the form layout + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='3eacc80a-ddca-4404-857a-6331aac99063', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('FormLayout', response) + + def get_lists_metadata(self): + """GetListsMetadata. + [Preview API] Returns meta data of the picklist. + :rtype: [PickListMetadataModel] + """ + response = self._send(http_method='GET', + location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', + version='5.1-preview.1') + return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) + + def create_list(self, picklist): + """CreateList. + [Preview API] Creates a picklist. + :param :class:` ` picklist: + :rtype: :class:` ` + """ + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='POST', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.1-preview.1', + content=content) + return self._deserialize('PickListModel', response) + + def delete_list(self, list_id): + """DeleteList. + [Preview API] Removes a picklist. + :param str list_id: The ID of the list + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + self._send(http_method='DELETE', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.1-preview.1', + route_values=route_values) + + def get_list(self, list_id): + """GetList. + [Preview API] Returns a picklist. + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + response = self._send(http_method='GET', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('PickListModel', response) + + def update_list(self, picklist, list_id): + """UpdateList. + [Preview API] Updates a list. + :param :class:` ` picklist: + :param str list_id: The ID of the list + :rtype: :class:` ` + """ + route_values = {} + if list_id is not None: + route_values['listId'] = self._serialize.url('list_id', list_id, 'str') + content = self._serialize.body(picklist, 'PickListModel') + response = self._send(http_method='PUT', + location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('PickListModel', response) + + def add_page(self, page, process_id, wit_ref_name): + """AddPage. + [Preview API] Adds a page to the work item form + :param :class:` ` page: The page + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='POST', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def edit_page(self, page, process_id, wit_ref_name): + """EditPage. + [Preview API] Updates a page on the work item form + :param :class:` ` page: The page + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(page, 'Page') + response = self._send(http_method='PATCH', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('Page', response) + + def remove_page(self, process_id, wit_ref_name, page_id): + """RemovePage. + [Preview API] Removes a page from the work item form + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str page_id: The ID of the page + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if page_id is not None: + route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') + self._send(http_method='DELETE', + location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', + version='5.1-preview.1', + route_values=route_values) + + def create_state_definition(self, state_model, process_id, wit_ref_name): + """CreateStateDefinition. + [Preview API] Creates a state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='POST', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def delete_state_definition(self, process_id, wit_ref_name, state_id): + """DeleteStateDefinition. + [Preview API] Removes a state definition in the work item type of the process. + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + self._send(http_method='DELETE', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.1-preview.1', + route_values=route_values) + + def get_state_definition(self, process_id, wit_ref_name, state_id): + """GetStateDefinition. + [Preview API] Returns a state definition in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemStateResultModel', response) + + def get_state_definitions(self, process_id, wit_ref_name): + """GetStateDefinitions. + [Preview API] Returns a list of all state definitions in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: [WorkItemStateResultModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + response = self._send(http_method='GET', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) + + def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): + """HideStateDefinition. + [Preview API] Hides a state definition in the work item type of the process. + :param :class:` ` hide_state_model: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: The ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(hide_state_model, 'HideStateModel') + response = self._send(http_method='PUT', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): + """UpdateStateDefinition. + [Preview API] Updates a given state definition in the work item type of the process. + :param :class:` ` state_model: + :param str process_id: ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str state_id: ID of the state + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + if state_id is not None: + route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') + content = self._serialize.body(state_model, 'WorkItemStateInputModel') + response = self._send(http_method='PATCH', + location_id='4303625d-08f4-4461-b14b-32c65bba5599', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemStateResultModel', response) + + def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """AddBehaviorToWorkItemType. + [Preview API] Adds a behavior to the work item type of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='POST', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """GetBehaviorForWorkItemType. + [Preview API] Returns a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeBehavior', response) + + def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): + """GetBehaviorsForWorkItemType. + [Preview API] Returns a list of all behaviors for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: [WorkItemTypeBehavior] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + response = self._send(http_method='GET', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) + + def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): + """RemoveBehaviorFromWorkItemType. + [Preview API] Removes a behavior for the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :param str behavior_ref_name: The reference name of the behavior + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + if behavior_ref_name is not None: + route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') + self._send(http_method='DELETE', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.1-preview.1', + route_values=route_values) + + def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): + """UpdateBehaviorToWorkItemType. + [Preview API] Updates default work item type for the behavior of the process. + :param :class:` ` behavior: + :param str process_id: The ID of the process + :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_behaviors is not None: + route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') + content = self._serialize.body(behavior, 'WorkItemTypeBehavior') + response = self._send(http_method='PATCH', + location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeBehavior', response) + + def create_work_item_type(self, work_item_type, process_id): + """CreateWorkItemType. + [Preview API] Creates a work item type in the process. + :param :class:` ` work_item_type: + :param str process_id: The ID of the process + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + content = self._serialize.body(work_item_type, 'WorkItemTypeModel') + response = self._send(http_method='POST', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def delete_work_item_type(self, process_id, wit_ref_name): + """DeleteWorkItemType. + [Preview API] Removes a work itewm type in the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + self._send(http_method='DELETE', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.1-preview.1', + route_values=route_values) + + def get_work_item_type(self, process_id, wit_ref_name, expand=None): + """GetWorkItemType. + [Preview API] Returns a work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeModel', response) + + def get_work_item_types(self, process_id, expand=None): + """GetWorkItemTypes. + [Preview API] Returns a list of all work item types in the process. + :param str process_id: The ID of the process + :param str expand: + :rtype: [WorkItemTypeModel] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) + + def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): + """UpdateWorkItemType. + [Preview API] Updates a work item type of the process. + :param :class:` ` work_item_type_update: + :param str process_id: The ID of the process + :param str wit_ref_name: The reference name of the work item type + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name is not None: + route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') + content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') + response = self._send(http_method='PATCH', + location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeModel', response) + + def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): + """AddFieldToWorkItemType. + [Preview API] Adds a field to the work item type in the process. + :param :class:` ` field: + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for the field + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + content = self._serialize.body(field, 'WorkItemTypeFieldModel2') + response = self._send(http_method='POST', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('WorkItemTypeFieldModel2', response) + + def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): + """GetWorkItemTypeField. + [Preview API] Returns a single field in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :param str field_ref_name: The reference name of the field + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('WorkItemTypeFieldModel2', response) + + def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): + """GetWorkItemTypeFields. + [Preview API] Returns a list of all fields in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :rtype: [WorkItemTypeFieldModel2] + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + response = self._send(http_method='GET', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[WorkItemTypeFieldModel2]', self._unwrap_collection(response)) + + def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): + """RemoveFieldFromWorkItemType. + [Preview API] Removes a field in the work item type of the process. + :param str process_id: The ID of the process + :param str wit_ref_name_for_fields: Work item type reference name for fields + :param str field_ref_name: The reference name of the field + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + if wit_ref_name_for_fields is not None: + route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') + if field_ref_name is not None: + route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') + self._send(http_method='DELETE', + location_id='976713b4-a62e-499e-94dc-eeb869ea9126', + version='5.1-preview.1', + route_values=route_values) + diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py index 91340440..5272c697 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/models.py @@ -21,7 +21,7 @@ class AdminBehavior(Model): :param description: The description of the behavior. :type description: str :param fields: List of behavior fields. - :type fields: list of :class:`AdminBehaviorField ` + :type fields: list of :class:`AdminBehaviorField ` :param id: Behavior ID. :type id: str :param inherits: Parent behavior reference. @@ -125,7 +125,7 @@ class ProcessImportResult(Model): :param promote_job_id: The promote job identifier. :type promote_job_id: str :param validation_results: The list of validation results. - :type validation_results: list of :class:`ValidationIssue ` + :type validation_results: list of :class:`ValidationIssue ` """ _attribute_map = { From a7db4bde29058429a4427930cd4309eb8934220c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 13 Feb 2019 18:16:50 -0500 Subject: [PATCH 109/191] Get rid of process definitions --- .../azure/devops/v5_0/client_factory.py | 7 - .../__init__.py | 36 - .../models.py | 848 --------------- ...tem_tracking_process_definitions_client.py | 963 ------------------ .../azure/devops/v5_1/client_factory.py | 7 - .../__init__.py | 36 - .../models.py | 848 --------------- ...tem_tracking_process_definitions_client.py | 963 ------------------ 8 files changed, 3708 deletions(-) delete mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py delete mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py delete mode 100644 azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py delete mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py delete mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py delete mode 100644 azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py diff --git a/azure-devops/azure/devops/v5_0/client_factory.py b/azure-devops/azure/devops/v5_0/client_factory.py index ce62c54e..ec02f20a 100644 --- a/azure-devops/azure/devops/v5_0/client_factory.py +++ b/azure-devops/azure/devops/v5_0/client_factory.py @@ -350,13 +350,6 @@ def get_work_item_tracking_process_client(self): """ return self._connection.get_client('azure.devops.v5_0.work_item_tracking_process.work_item_tracking_process_client.WorkItemTrackingProcessClient') - def get_work_item_tracking_process_definitions_client(self): - """get_work_item_tracking_process_definitions_client. - Gets the 5.0 version of the WorkItemTrackingProcessDefinitionsClient - :rtype: :class:` ` - """ - return self._connection.get_client('azure.devops.v5_0.work_item_tracking_process_definitions.work_item_tracking_process_definitions_client.WorkItemTrackingProcessDefinitionsClient') - def get_work_item_tracking_process_template_client(self): """get_work_item_tracking_process_template_client. Gets the 5.0 version of the WorkItemTrackingProcessTemplateClient diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py deleted file mode 100644 index 793a0fbf..00000000 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .models import * - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeFieldModel2', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py deleted file mode 100644 index 87904326..00000000 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/models.py +++ /dev/null @@ -1,848 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorCreateModel(Model): - """BehaviorCreateModel. - - :param color: Color - :type color: str - :param id: Optional - Id - :type id: str - :param inherits: Parent behavior id - :type inherits: str - :param name: Name of the behavior - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, id=None, inherits=None, name=None): - super(BehaviorCreateModel, self).__init__() - self.color = color - self.id = id - self.inherits = inherits - self.name = name - - -class BehaviorModel(Model): - """BehaviorModel. - - :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) - :type abstract: bool - :param color: Color - :type color: str - :param description: Description - :type description: str - :param id: Behavior Id - :type id: str - :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: Behavior Name - :type name: str - :param overridden: Is the behavior overrides a behavior from system process - :type overridden: bool - :param rank: Rank - :type rank: int - :param url: Url of the behavior - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): - super(BehaviorModel, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.id = id - self.inherits = inherits - self.name = name - self.overridden = overridden - self.rank = rank - self.url = url - - -class BehaviorReplaceModel(Model): - """BehaviorReplaceModel. - - :param color: Color - :type color: str - :param name: Behavior Name - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, name=None): - super(BehaviorReplaceModel, self).__init__() - self.color = color - self.name = name - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id - - -class FieldModel(Model): - """FieldModel. - - :param description: Description about field - :type description: str - :param id: ID of the field - :type id: str - :param name: Name of the field - :type name: str - :param pick_list: Reference to picklist in this field - :type pick_list: :class:`PickListMetadataModel ` - :param type: Type of field - :type type: object - :param url: Url to the field - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.name = name - self.pick_list = pick_list - self.type = type - self.url = url - - -class FieldUpdate(Model): - """FieldUpdate. - - :param description: - :type description: str - :param id: - :type id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, description=None, id=None): - super(FieldUpdate, self).__init__() - self.description = description - self.id = id - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible - - -class HideStateModel(Model): - """HideStateModel. - - :param hidden: - :type hidden: bool - """ - - _attribute_map = { - 'hidden': {'key': 'hidden', 'type': 'bool'} - } - - def __init__(self, hidden=None): - super(HideStateModel, self).__init__() - self.hidden = hidden - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible - - -class PickListItemModel(Model): - """PickListItemModel. - - :param id: - :type id: str - :param value: - :type value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, id=None, value=None): - super(PickListItemModel, self).__init__() - self.id = id - self.value = value - - -class PickListMetadataModel(Model): - """PickListMetadataModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): - super(PickListMetadataModel, self).__init__() - self.id = id - self.is_suggested = is_suggested - self.name = name - self.type = type - self.url = url - - -class PickListModel(PickListMetadataModel): - """PickListModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - :param items: A list of PicklistItemModel - :type items: list of :class:`PickListItemModel ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[PickListItemModel]'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): - super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) - self.items = items - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: The ID of the reference behavior - :type id: str - :param url: The url of the reference behavior - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url - - -class WorkItemStateInputModel(Model): - """WorkItemStateInputModel. - - :param color: Color of the state - :type color: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'} - } - - def __init__(self, color=None, name=None, order=None, state_category=None): - super(WorkItemStateInputModel, self).__init__() - self.color = color - self.name = name - self.order = order - self.state_category = state_category - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: Color of the state - :type color: str - :param hidden: Is the state hidden - :type hidden: bool - :param id: The ID of the State - :type id: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - :param url: Url of the state - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url - - -class WorkItemTypeFieldModel(Model): - """WorkItemTypeFieldModel. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url - - -class WorkItemTypeFieldModel2(Model): - """WorkItemTypeFieldModel2. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: object - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel2, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: Behaviors of the work item type - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: Class of the work item type - :type class_: object - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param id: The ID of the work item type - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: Is work item type disabled - :type is_disabled: bool - :param layout: Layout of the work item type - :type layout: :class:`FormLayout ` - :param name: Name of the work item type - :type name: str - :param states: States of the work item type - :type states: list of :class:`WorkItemStateResultModel ` - :param url: Url of the work item type - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url - - -class WorkItemTypeUpdateModel(Model): - """WorkItemTypeUpdateModel. - - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param is_disabled: Is the workitem type to be disabled - :type is_disabled: bool - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} - } - - def __init__(self, color=None, description=None, icon=None, is_disabled=None): - super(WorkItemTypeUpdateModel, self).__init__() - self.color = color - self.description = description - self.icon = icon - self.is_disabled = is_disabled - - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeFieldModel2', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py deleted file mode 100644 index da4d27f2..00000000 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py +++ /dev/null @@ -1,963 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class WorkItemTrackingProcessDefinitionsClient(Client): - """WorkItemTrackingProcessDefinitions - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(WorkItemTrackingProcessDefinitionsClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' - - def create_behavior(self, behavior, process_id): - """CreateBehavior. - [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(behavior, 'BehaviorCreateModel') - response = self._send(http_method='POST', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('BehaviorModel', response) - - def delete_behavior(self, process_id, behavior_id): - """DeleteBehavior. - [Preview API] Removes a behavior in the process. - :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - self._send(http_method='DELETE', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.0-preview.1', - route_values=route_values) - - def get_behavior(self, process_id, behavior_id): - """GetBehavior. - [Preview API] Returns a single behavior in the process. - :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('BehaviorModel', response) - - def get_behaviors(self, process_id): - """GetBehaviors. - [Preview API] Returns a list of all behaviors in the process. - :param str process_id: The ID of the process - :rtype: [BehaviorModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) - - def replace_behavior(self, behavior_data, process_id, behavior_id): - """ReplaceBehavior. - [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: - :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') - response = self._send(http_method='PUT', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('BehaviorModel', response) - - def add_control_to_group(self, control, process_id, wit_ref_name, group_id): - """AddControlToGroup. - [Preview API] Creates a control in a group - :param :class:` ` control: The control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group to add the control to - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='POST', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Control', response) - - def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): - """EditControl. - [Preview API] Updates a control on the work item form - :param :class:` ` control: The updated control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group - :param str control_id: The ID of the control - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='PATCH', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Control', response) - - def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): - """RemoveControlFromGroup. - [Preview API] Removes a control from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group - :param str control_id: The ID of the control to remove - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - self._send(http_method='DELETE', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.0-preview.1', - route_values=route_values) - - def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): - """SetControlInGroup. - [Preview API] Moves a control to a new group - :param :class:` ` control: The control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group to move the control to - :param str control_id: The id of the control - :param str remove_from_group_id: The group to remove the control from - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - query_parameters = {} - if remove_from_group_id is not None: - query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='PUT', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Control', response) - - def create_field(self, field, process_id): - """CreateField. - [Preview API] Creates a single field in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldModel') - response = self._send(http_method='POST', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldModel', response) - - def update_field(self, field, process_id): - """UpdateField. - [Preview API] Updates a given field in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldUpdate') - response = self._send(http_method='PATCH', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldModel', response) - - def add_group(self, group, process_id, wit_ref_name, page_id, section_id): - """AddGroup. - [Preview API] Adds a group to the work item form - :param :class:` ` group: The group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page to add the group to - :param str section_id: The ID of the section to add the group to - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='POST', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Group', response) - - def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): - """EditGroup. - [Preview API] Updates a group in the work item form - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PATCH', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Group', response) - - def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): - """RemoveGroup. - [Preview API] Removes a group from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section to the group is in - :param str group_id: The ID of the group - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - self._send(http_method='DELETE', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.0-preview.1', - route_values=route_values) - - def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): - """SetGroupInPage. - [Preview API] Moves a group to a different page and section - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :param str remove_from_page_id: ID of the page to remove the group from - :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_page_id is not None: - query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Group', response) - - def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): - """SetGroupInSection. - [Preview API] Moves a group to a different section - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.0-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Group', response) - - def get_form_layout(self, process_id, wit_ref_name): - """GetFormLayout. - [Preview API] Gets the form layout - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='3eacc80a-ddca-4404-857a-6331aac99063', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('FormLayout', response) - - def get_lists_metadata(self): - """GetListsMetadata. - [Preview API] Returns meta data of the picklist. - :rtype: [PickListMetadataModel] - """ - response = self._send(http_method='GET', - location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', - version='5.0-preview.1') - return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) - - def create_list(self, picklist): - """CreateList. - [Preview API] Creates a picklist. - :param :class:` ` picklist: - :rtype: :class:` ` - """ - content = self._serialize.body(picklist, 'PickListModel') - response = self._send(http_method='POST', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.0-preview.1', - content=content) - return self._deserialize('PickListModel', response) - - def delete_list(self, list_id): - """DeleteList. - [Preview API] Removes a picklist. - :param str list_id: The ID of the list - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - self._send(http_method='DELETE', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.0-preview.1', - route_values=route_values) - - def get_list(self, list_id): - """GetList. - [Preview API] Returns a picklist. - :param str list_id: The ID of the list - :rtype: :class:` ` - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - response = self._send(http_method='GET', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('PickListModel', response) - - def update_list(self, picklist, list_id): - """UpdateList. - [Preview API] Updates a list. - :param :class:` ` picklist: - :param str list_id: The ID of the list - :rtype: :class:` ` - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - content = self._serialize.body(picklist, 'PickListModel') - response = self._send(http_method='PUT', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('PickListModel', response) - - def add_page(self, page, process_id, wit_ref_name): - """AddPage. - [Preview API] Adds a page to the work item form - :param :class:` ` page: The page - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(page, 'Page') - response = self._send(http_method='POST', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Page', response) - - def edit_page(self, page, process_id, wit_ref_name): - """EditPage. - [Preview API] Updates a page on the work item form - :param :class:` ` page: The page - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(page, 'Page') - response = self._send(http_method='PATCH', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Page', response) - - def remove_page(self, process_id, wit_ref_name, page_id): - """RemovePage. - [Preview API] Removes a page from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - self._send(http_method='DELETE', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='5.0-preview.1', - route_values=route_values) - - def create_state_definition(self, state_model, process_id, wit_ref_name): - """CreateStateDefinition. - [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(state_model, 'WorkItemStateInputModel') - response = self._send(http_method='POST', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def delete_state_definition(self, process_id, wit_ref_name, state_id): - """DeleteStateDefinition. - [Preview API] Removes a state definition in the work item type of the process. - :param str process_id: ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: ID of the state - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - self._send(http_method='DELETE', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.0-preview.1', - route_values=route_values) - - def get_state_definition(self, process_id, wit_ref_name, state_id): - """GetStateDefinition. - [Preview API] Returns a state definition in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: The ID of the state - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemStateResultModel', response) - - def get_state_definitions(self, process_id, wit_ref_name): - """GetStateDefinitions. - [Preview API] Returns a list of all state definitions in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: [WorkItemStateResultModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) - - def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): - """HideStateDefinition. - [Preview API] Hides a state definition in the work item type of the process. - :param :class:` ` hide_state_model: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: The ID of the state - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - content = self._serialize.body(hide_state_model, 'HideStateModel') - response = self._send(http_method='PUT', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): - """UpdateStateDefinition. - [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: - :param str process_id: ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: ID of the state - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - content = self._serialize.body(state_model, 'WorkItemStateInputModel') - response = self._send(http_method='PATCH', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """AddBehaviorToWorkItemType. - [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='POST', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """GetBehaviorForWorkItemType. - [Preview API] Returns a behavior for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): - """GetBehaviorsForWorkItemType. - [Preview API] Returns a list of all behaviors for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: [WorkItemTypeBehavior] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) - - def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """RemoveBehaviorFromWorkItemType. - [Preview API] Removes a behavior for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :param str behavior_ref_name: The reference name of the behavior - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - self._send(http_method='DELETE', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.0-preview.1', - route_values=route_values) - - def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """UpdateBehaviorToWorkItemType. - [Preview API] Updates default work item type for the behavior of the process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='PATCH', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def create_work_item_type(self, work_item_type, process_id): - """CreateWorkItemType. - [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(work_item_type, 'WorkItemTypeModel') - response = self._send(http_method='POST', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeModel', response) - - def delete_work_item_type(self, process_id, wit_ref_name): - """DeleteWorkItemType. - [Preview API] Removes a work itewm type in the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - self._send(http_method='DELETE', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.0-preview.1', - route_values=route_values) - - def get_work_item_type(self, process_id, wit_ref_name, expand=None): - """GetWorkItemType. - [Preview API] Returns a work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemTypeModel', response) - - def get_work_item_types(self, process_id, expand=None): - """GetWorkItemTypes. - [Preview API] Returns a list of all work item types in the process. - :param str process_id: The ID of the process - :param str expand: - :rtype: [WorkItemTypeModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.0-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) - - def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): - """UpdateWorkItemType. - [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') - response = self._send(http_method='PATCH', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeModel', response) - - def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): - """AddFieldToWorkItemType. - [Preview API] Adds a field to the work item type in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for the field - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - content = self._serialize.body(field, 'WorkItemTypeFieldModel2') - response = self._send(http_method='POST', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.0-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeFieldModel2', response) - - def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): - """GetWorkItemTypeField. - [Preview API] Returns a single field in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :param str field_ref_name: The reference name of the field - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') - response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('WorkItemTypeFieldModel2', response) - - def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): - """GetWorkItemTypeFields. - [Preview API] Returns a list of all fields in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :rtype: [WorkItemTypeFieldModel2] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.0-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemTypeFieldModel2]', self._unwrap_collection(response)) - - def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): - """RemoveFieldFromWorkItemType. - [Preview API] Removes a field in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :param str field_ref_name: The reference name of the field - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') - self._send(http_method='DELETE', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.0-preview.1', - route_values=route_values) - diff --git a/azure-devops/azure/devops/v5_1/client_factory.py b/azure-devops/azure/devops/v5_1/client_factory.py index c1f1e29f..35bd9630 100644 --- a/azure-devops/azure/devops/v5_1/client_factory.py +++ b/azure-devops/azure/devops/v5_1/client_factory.py @@ -350,13 +350,6 @@ def get_work_item_tracking_process_client(self): """ return self._connection.get_client('azure.devops.v5_1.work_item_tracking_process.work_item_tracking_process_client.WorkItemTrackingProcessClient') - def get_work_item_tracking_process_definitions_client(self): - """get_work_item_tracking_process_definitions_client. - Gets the 5.1 version of the WorkItemTrackingProcessDefinitionsClient - :rtype: :class:` ` - """ - return self._connection.get_client('azure.devops.v5_1.work_item_tracking_process_definitions.work_item_tracking_process_definitions_client.WorkItemTrackingProcessDefinitionsClient') - def get_work_item_tracking_process_template_client(self): """get_work_item_tracking_process_template_client. Gets the 5.1 version of the WorkItemTrackingProcessTemplateClient diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py deleted file mode 100644 index 793a0fbf..00000000 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .models import * - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeFieldModel2', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py deleted file mode 100644 index 511431d3..00000000 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/models.py +++ /dev/null @@ -1,848 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BehaviorCreateModel(Model): - """BehaviorCreateModel. - - :param color: Color - :type color: str - :param id: Optional - Id - :type id: str - :param inherits: Parent behavior id - :type inherits: str - :param name: Name of the behavior - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, id=None, inherits=None, name=None): - super(BehaviorCreateModel, self).__init__() - self.color = color - self.id = id - self.inherits = inherits - self.name = name - - -class BehaviorModel(Model): - """BehaviorModel. - - :param abstract: Is the behavior abstract (i.e. can not be associated with any work item type) - :type abstract: bool - :param color: Color - :type color: str - :param description: Description - :type description: str - :param id: Behavior Id - :type id: str - :param inherits: Parent behavior reference - :type inherits: :class:`WorkItemBehaviorReference ` - :param name: Behavior Name - :type name: str - :param overridden: Is the behavior overrides a behavior from system process - :type overridden: bool - :param rank: Rank - :type rank: int - :param url: Url of the behavior - :type url: str - """ - - _attribute_map = { - 'abstract': {'key': 'abstract', 'type': 'bool'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'WorkItemBehaviorReference'}, - 'name': {'key': 'name', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'rank': {'key': 'rank', 'type': 'int'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, abstract=None, color=None, description=None, id=None, inherits=None, name=None, overridden=None, rank=None, url=None): - super(BehaviorModel, self).__init__() - self.abstract = abstract - self.color = color - self.description = description - self.id = id - self.inherits = inherits - self.name = name - self.overridden = overridden - self.rank = rank - self.url = url - - -class BehaviorReplaceModel(Model): - """BehaviorReplaceModel. - - :param color: Color - :type color: str - :param name: Behavior Name - :type name: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'} - } - - def __init__(self, color=None, name=None): - super(BehaviorReplaceModel, self).__init__() - self.color = color - self.name = name - - -class Control(Model): - """Control. - - :param contribution: Contribution for the control. - :type contribution: :class:`WitContribution ` - :param control_type: Type of the control. - :type control_type: str - :param height: Height of the control, for html controls. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution or not. - :type is_contribution: bool - :param label: Label for the field - :type label: str - :param metadata: Inner text of the control. - :type metadata: str - :param order: - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param read_only: A value indicating if the control is readonly. - :type read_only: bool - :param visible: A value indicating if the control should be hidden or not. - :type visible: bool - :param watermark: Watermark text for the textbox. - :type watermark: str - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'control_type': {'key': 'controlType', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'metadata': {'key': 'metadata', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'}, - 'watermark': {'key': 'watermark', 'type': 'str'} - } - - def __init__(self, contribution=None, control_type=None, height=None, id=None, inherited=None, is_contribution=None, label=None, metadata=None, order=None, overridden=None, read_only=None, visible=None, watermark=None): - super(Control, self).__init__() - self.contribution = contribution - self.control_type = control_type - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.metadata = metadata - self.order = order - self.overridden = overridden - self.read_only = read_only - self.visible = visible - self.watermark = watermark - - -class Extension(Model): - """Extension. - - :param id: - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, id=None): - super(Extension, self).__init__() - self.id = id - - -class FieldModel(Model): - """FieldModel. - - :param description: Description about field - :type description: str - :param id: ID of the field - :type id: str - :param name: Name of the field - :type name: str - :param pick_list: Reference to picklist in this field - :type pick_list: :class:`PickListMetadataModel ` - :param type: Type of field - :type type: object - :param url: Url to the field - :type url: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, description=None, id=None, name=None, pick_list=None, type=None, url=None): - super(FieldModel, self).__init__() - self.description = description - self.id = id - self.name = name - self.pick_list = pick_list - self.type = type - self.url = url - - -class FieldUpdate(Model): - """FieldUpdate. - - :param description: - :type description: str - :param id: - :type id: str - """ - - _attribute_map = { - 'description': {'key': 'description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'} - } - - def __init__(self, description=None, id=None): - super(FieldUpdate, self).__init__() - self.description = description - self.id = id - - -class FormLayout(Model): - """FormLayout. - - :param extensions: Gets and sets extensions list - :type extensions: list of :class:`Extension ` - :param pages: Top level tabs of the layout. - :type pages: list of :class:`Page ` - :param system_controls: Headers controls of the layout. - :type system_controls: list of :class:`Control ` - """ - - _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, - 'pages': {'key': 'pages', 'type': '[Page]'}, - 'system_controls': {'key': 'systemControls', 'type': '[Control]'} - } - - def __init__(self, extensions=None, pages=None, system_controls=None): - super(FormLayout, self).__init__() - self.extensions = extensions - self.pages = pages - self.system_controls = system_controls - - -class Group(Model): - """Group. - - :param contribution: Contribution for the group. - :type contribution: :class:`WitContribution ` - :param controls: Controls to be put in the group. - :type controls: list of :class:`Control ` - :param height: The height for the contribution. - :type height: int - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: Label for the group. - :type label: str - :param order: Order in which the group should appear in the section. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param visible: A value indicating if the group should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'controls': {'key': 'controls', 'type': '[Control]'}, - 'height': {'key': 'height', 'type': 'int'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, controls=None, height=None, id=None, inherited=None, is_contribution=None, label=None, order=None, overridden=None, visible=None): - super(Group, self).__init__() - self.contribution = contribution - self.controls = controls - self.height = height - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.order = order - self.overridden = overridden - self.visible = visible - - -class HideStateModel(Model): - """HideStateModel. - - :param hidden: - :type hidden: bool - """ - - _attribute_map = { - 'hidden': {'key': 'hidden', 'type': 'bool'} - } - - def __init__(self, hidden=None): - super(HideStateModel, self).__init__() - self.hidden = hidden - - -class Page(Model): - """Page. - - :param contribution: Contribution for the page. - :type contribution: :class:`WitContribution ` - :param id: The id for the layout node. - :type id: str - :param inherited: A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. - :type inherited: bool - :param is_contribution: A value indicating if the layout node is contribution are not. - :type is_contribution: bool - :param label: The label for the page. - :type label: str - :param locked: A value indicating whether any user operations are permitted on this page and the contents of this page - :type locked: bool - :param order: Order in which the page should appear in the layout. - :type order: int - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - :param page_type: The icon for the page. - :type page_type: object - :param sections: The sections of the page. - :type sections: list of :class:`Section ` - :param visible: A value indicating if the page should be hidden or not. - :type visible: bool - """ - - _attribute_map = { - 'contribution': {'key': 'contribution', 'type': 'WitContribution'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherited': {'key': 'inherited', 'type': 'bool'}, - 'is_contribution': {'key': 'isContribution', 'type': 'bool'}, - 'label': {'key': 'label', 'type': 'str'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'order': {'key': 'order', 'type': 'int'}, - 'overridden': {'key': 'overridden', 'type': 'bool'}, - 'page_type': {'key': 'pageType', 'type': 'object'}, - 'sections': {'key': 'sections', 'type': '[Section]'}, - 'visible': {'key': 'visible', 'type': 'bool'} - } - - def __init__(self, contribution=None, id=None, inherited=None, is_contribution=None, label=None, locked=None, order=None, overridden=None, page_type=None, sections=None, visible=None): - super(Page, self).__init__() - self.contribution = contribution - self.id = id - self.inherited = inherited - self.is_contribution = is_contribution - self.label = label - self.locked = locked - self.order = order - self.overridden = overridden - self.page_type = page_type - self.sections = sections - self.visible = visible - - -class PickListItemModel(Model): - """PickListItemModel. - - :param id: - :type id: str - :param value: - :type value: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'} - } - - def __init__(self, id=None, value=None): - super(PickListItemModel, self).__init__() - self.id = id - self.value = value - - -class PickListMetadataModel(Model): - """PickListMetadataModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None): - super(PickListMetadataModel, self).__init__() - self.id = id - self.is_suggested = is_suggested - self.name = name - self.type = type - self.url = url - - -class PickListModel(PickListMetadataModel): - """PickListModel. - - :param id: ID of the picklist - :type id: str - :param is_suggested: Is input values by user only limited to suggested values - :type is_suggested: bool - :param name: Name of the picklist - :type name: str - :param type: Type of picklist - :type type: str - :param url: Url of the picklist - :type url: str - :param items: A list of PicklistItemModel - :type items: list of :class:`PickListItemModel ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'is_suggested': {'key': 'isSuggested', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'items': {'key': 'items', 'type': '[PickListItemModel]'} - } - - def __init__(self, id=None, is_suggested=None, name=None, type=None, url=None, items=None): - super(PickListModel, self).__init__(id=id, is_suggested=is_suggested, name=name, type=type, url=url) - self.items = items - - -class Section(Model): - """Section. - - :param groups: - :type groups: list of :class:`Group ` - :param id: The id for the layout node. - :type id: str - :param overridden: A value indicating whether this layout node has been overridden by a child layout. - :type overridden: bool - """ - - _attribute_map = { - 'groups': {'key': 'groups', 'type': '[Group]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'overridden': {'key': 'overridden', 'type': 'bool'} - } - - def __init__(self, groups=None, id=None, overridden=None): - super(Section, self).__init__() - self.groups = groups - self.id = id - self.overridden = overridden - - -class WitContribution(Model): - """WitContribution. - - :param contribution_id: The id for the contribution. - :type contribution_id: str - :param height: The height for the contribution. - :type height: int - :param inputs: A dictionary holding key value pairs for contribution inputs. - :type inputs: dict - :param show_on_deleted_work_item: A value indicating if the contribution should be show on deleted workItem. - :type show_on_deleted_work_item: bool - """ - - _attribute_map = { - 'contribution_id': {'key': 'contributionId', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'int'}, - 'inputs': {'key': 'inputs', 'type': '{object}'}, - 'show_on_deleted_work_item': {'key': 'showOnDeletedWorkItem', 'type': 'bool'} - } - - def __init__(self, contribution_id=None, height=None, inputs=None, show_on_deleted_work_item=None): - super(WitContribution, self).__init__() - self.contribution_id = contribution_id - self.height = height - self.inputs = inputs - self.show_on_deleted_work_item = show_on_deleted_work_item - - -class WorkItemBehaviorReference(Model): - """WorkItemBehaviorReference. - - :param id: The ID of the reference behavior - :type id: str - :param url: The url of the reference behavior - :type url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, id=None, url=None): - super(WorkItemBehaviorReference, self).__init__() - self.id = id - self.url = url - - -class WorkItemStateInputModel(Model): - """WorkItemStateInputModel. - - :param color: Color of the state - :type color: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'} - } - - def __init__(self, color=None, name=None, order=None, state_category=None): - super(WorkItemStateInputModel, self).__init__() - self.color = color - self.name = name - self.order = order - self.state_category = state_category - - -class WorkItemStateResultModel(Model): - """WorkItemStateResultModel. - - :param color: Color of the state - :type color: str - :param hidden: Is the state hidden - :type hidden: bool - :param id: The ID of the State - :type id: str - :param name: Name of the state - :type name: str - :param order: Order in which state should appear - :type order: int - :param state_category: Category of the state - :type state_category: str - :param url: Url of the state - :type url: str - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'hidden': {'key': 'hidden', 'type': 'bool'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'int'}, - 'state_category': {'key': 'stateCategory', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, color=None, hidden=None, id=None, name=None, order=None, state_category=None, url=None): - super(WorkItemStateResultModel, self).__init__() - self.color = color - self.hidden = hidden - self.id = id - self.name = name - self.order = order - self.state_category = state_category - self.url = url - - -class WorkItemTypeBehavior(Model): - """WorkItemTypeBehavior. - - :param behavior: - :type behavior: :class:`WorkItemBehaviorReference ` - :param is_default: - :type is_default: bool - :param url: - :type url: str - """ - - _attribute_map = { - 'behavior': {'key': 'behavior', 'type': 'WorkItemBehaviorReference'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behavior=None, is_default=None, url=None): - super(WorkItemTypeBehavior, self).__init__() - self.behavior = behavior - self.is_default = is_default - self.url = url - - -class WorkItemTypeFieldModel(Model): - """WorkItemTypeFieldModel. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: str - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url - - -class WorkItemTypeFieldModel2(Model): - """WorkItemTypeFieldModel2. - - :param allow_groups: - :type allow_groups: bool - :param default_value: - :type default_value: object - :param name: - :type name: str - :param pick_list: - :type pick_list: :class:`PickListMetadataModel ` - :param read_only: - :type read_only: bool - :param reference_name: - :type reference_name: str - :param required: - :type required: bool - :param type: - :type type: object - :param url: - :type url: str - """ - - _attribute_map = { - 'allow_groups': {'key': 'allowGroups', 'type': 'bool'}, - 'default_value': {'key': 'defaultValue', 'type': 'object'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pick_list': {'key': 'pickList', 'type': 'PickListMetadataModel'}, - 'read_only': {'key': 'readOnly', 'type': 'bool'}, - 'reference_name': {'key': 'referenceName', 'type': 'str'}, - 'required': {'key': 'required', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'object'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, allow_groups=None, default_value=None, name=None, pick_list=None, read_only=None, reference_name=None, required=None, type=None, url=None): - super(WorkItemTypeFieldModel2, self).__init__() - self.allow_groups = allow_groups - self.default_value = default_value - self.name = name - self.pick_list = pick_list - self.read_only = read_only - self.reference_name = reference_name - self.required = required - self.type = type - self.url = url - - -class WorkItemTypeModel(Model): - """WorkItemTypeModel. - - :param behaviors: Behaviors of the work item type - :type behaviors: list of :class:`WorkItemTypeBehavior ` - :param class_: Class of the work item type - :type class_: object - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param id: The ID of the work item type - :type id: str - :param inherits: Parent WIT Id/Internal ReferenceName that it inherits from - :type inherits: str - :param is_disabled: Is work item type disabled - :type is_disabled: bool - :param layout: Layout of the work item type - :type layout: :class:`FormLayout ` - :param name: Name of the work item type - :type name: str - :param states: States of the work item type - :type states: list of :class:`WorkItemStateResultModel ` - :param url: Url of the work item type - :type url: str - """ - - _attribute_map = { - 'behaviors': {'key': 'behaviors', 'type': '[WorkItemTypeBehavior]'}, - 'class_': {'key': 'class', 'type': 'object'}, - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'inherits': {'key': 'inherits', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, - 'layout': {'key': 'layout', 'type': 'FormLayout'}, - 'name': {'key': 'name', 'type': 'str'}, - 'states': {'key': 'states', 'type': '[WorkItemStateResultModel]'}, - 'url': {'key': 'url', 'type': 'str'} - } - - def __init__(self, behaviors=None, class_=None, color=None, description=None, icon=None, id=None, inherits=None, is_disabled=None, layout=None, name=None, states=None, url=None): - super(WorkItemTypeModel, self).__init__() - self.behaviors = behaviors - self.class_ = class_ - self.color = color - self.description = description - self.icon = icon - self.id = id - self.inherits = inherits - self.is_disabled = is_disabled - self.layout = layout - self.name = name - self.states = states - self.url = url - - -class WorkItemTypeUpdateModel(Model): - """WorkItemTypeUpdateModel. - - :param color: Color of the work item type - :type color: str - :param description: Description of the work item type - :type description: str - :param icon: Icon of the work item type - :type icon: str - :param is_disabled: Is the workitem type to be disabled - :type is_disabled: bool - """ - - _attribute_map = { - 'color': {'key': 'color', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'icon': {'key': 'icon', 'type': 'str'}, - 'is_disabled': {'key': 'isDisabled', 'type': 'bool'} - } - - def __init__(self, color=None, description=None, icon=None, is_disabled=None): - super(WorkItemTypeUpdateModel, self).__init__() - self.color = color - self.description = description - self.icon = icon - self.is_disabled = is_disabled - - -__all__ = [ - 'BehaviorCreateModel', - 'BehaviorModel', - 'BehaviorReplaceModel', - 'Control', - 'Extension', - 'FieldModel', - 'FieldUpdate', - 'FormLayout', - 'Group', - 'HideStateModel', - 'Page', - 'PickListItemModel', - 'PickListMetadataModel', - 'PickListModel', - 'Section', - 'WitContribution', - 'WorkItemBehaviorReference', - 'WorkItemStateInputModel', - 'WorkItemStateResultModel', - 'WorkItemTypeBehavior', - 'WorkItemTypeFieldModel', - 'WorkItemTypeFieldModel2', - 'WorkItemTypeModel', - 'WorkItemTypeUpdateModel', -] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py deleted file mode 100644 index 857a78dc..00000000 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process_definitions/work_item_tracking_process_definitions_client.py +++ /dev/null @@ -1,963 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class WorkItemTrackingProcessDefinitionsClient(Client): - """WorkItemTrackingProcessDefinitions - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(WorkItemTrackingProcessDefinitionsClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' - - def create_behavior(self, behavior, process_id): - """CreateBehavior. - [Preview API] Creates a single behavior in the given process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(behavior, 'BehaviorCreateModel') - response = self._send(http_method='POST', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('BehaviorModel', response) - - def delete_behavior(self, process_id, behavior_id): - """DeleteBehavior. - [Preview API] Removes a behavior in the process. - :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - self._send(http_method='DELETE', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.1-preview.1', - route_values=route_values) - - def get_behavior(self, process_id, behavior_id): - """GetBehavior. - [Preview API] Returns a single behavior in the process. - :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('BehaviorModel', response) - - def get_behaviors(self, process_id): - """GetBehaviors. - [Preview API] Returns a list of all behaviors in the process. - :param str process_id: The ID of the process - :rtype: [BehaviorModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - response = self._send(http_method='GET', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('[BehaviorModel]', self._unwrap_collection(response)) - - def replace_behavior(self, behavior_data, process_id, behavior_id): - """ReplaceBehavior. - [Preview API] Replaces a behavior in the process. - :param :class:` ` behavior_data: - :param str process_id: The ID of the process - :param str behavior_id: The ID of the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if behavior_id is not None: - route_values['behaviorId'] = self._serialize.url('behavior_id', behavior_id, 'str') - content = self._serialize.body(behavior_data, 'BehaviorReplaceModel') - response = self._send(http_method='PUT', - location_id='47a651f4-fb70-43bf-b96b-7c0ba947142b', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('BehaviorModel', response) - - def add_control_to_group(self, control, process_id, wit_ref_name, group_id): - """AddControlToGroup. - [Preview API] Creates a control in a group - :param :class:` ` control: The control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group to add the control to - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='POST', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Control', response) - - def edit_control(self, control, process_id, wit_ref_name, group_id, control_id): - """EditControl. - [Preview API] Updates a control on the work item form - :param :class:` ` control: The updated control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group - :param str control_id: The ID of the control - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='PATCH', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Control', response) - - def remove_control_from_group(self, process_id, wit_ref_name, group_id, control_id): - """RemoveControlFromGroup. - [Preview API] Removes a control from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group - :param str control_id: The ID of the control to remove - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - self._send(http_method='DELETE', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.1-preview.1', - route_values=route_values) - - def set_control_in_group(self, control, process_id, wit_ref_name, group_id, control_id, remove_from_group_id=None): - """SetControlInGroup. - [Preview API] Moves a control to a new group - :param :class:` ` control: The control - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str group_id: The ID of the group to move the control to - :param str control_id: The id of the control - :param str remove_from_group_id: The group to remove the control from - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - if control_id is not None: - route_values['controlId'] = self._serialize.url('control_id', control_id, 'str') - query_parameters = {} - if remove_from_group_id is not None: - query_parameters['removeFromGroupId'] = self._serialize.query('remove_from_group_id', remove_from_group_id, 'str') - content = self._serialize.body(control, 'Control') - response = self._send(http_method='PUT', - location_id='e2e3166a-627a-4e9b-85b2-d6a097bbd731', - version='5.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Control', response) - - def create_field(self, field, process_id): - """CreateField. - [Preview API] Creates a single field in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldModel') - response = self._send(http_method='POST', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldModel', response) - - def update_field(self, field, process_id): - """UpdateField. - [Preview API] Updates a given field in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(field, 'FieldUpdate') - response = self._send(http_method='PATCH', - location_id='f36c66c7-911d-4163-8938-d3c5d0d7f5aa', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('FieldModel', response) - - def add_group(self, group, process_id, wit_ref_name, page_id, section_id): - """AddGroup. - [Preview API] Adds a group to the work item form - :param :class:` ` group: The group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page to add the group to - :param str section_id: The ID of the section to add the group to - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='POST', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Group', response) - - def edit_group(self, group, process_id, wit_ref_name, page_id, section_id, group_id): - """EditGroup. - [Preview API] Updates a group in the work item form - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PATCH', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Group', response) - - def remove_group(self, process_id, wit_ref_name, page_id, section_id, group_id): - """RemoveGroup. - [Preview API] Removes a group from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section to the group is in - :param str group_id: The ID of the group - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - self._send(http_method='DELETE', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.1-preview.1', - route_values=route_values) - - def set_group_in_page(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_page_id, remove_from_section_id): - """SetGroupInPage. - [Preview API] Moves a group to a different page and section - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :param str remove_from_page_id: ID of the page to remove the group from - :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_page_id is not None: - query_parameters['removeFromPageId'] = self._serialize.query('remove_from_page_id', remove_from_page_id, 'str') - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Group', response) - - def set_group_in_section(self, group, process_id, wit_ref_name, page_id, section_id, group_id, remove_from_section_id): - """SetGroupInSection. - [Preview API] Moves a group to a different section - :param :class:` ` group: The updated group - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page the group is in - :param str section_id: The ID of the section the group is in - :param str group_id: The ID of the group - :param str remove_from_section_id: ID of the section to remove the group from - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - if section_id is not None: - route_values['sectionId'] = self._serialize.url('section_id', section_id, 'str') - if group_id is not None: - route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') - query_parameters = {} - if remove_from_section_id is not None: - query_parameters['removeFromSectionId'] = self._serialize.query('remove_from_section_id', remove_from_section_id, 'str') - content = self._serialize.body(group, 'Group') - response = self._send(http_method='PUT', - location_id='2617828b-e850-4375-a92a-04855704d4c3', - version='5.1-preview.1', - route_values=route_values, - query_parameters=query_parameters, - content=content) - return self._deserialize('Group', response) - - def get_form_layout(self, process_id, wit_ref_name): - """GetFormLayout. - [Preview API] Gets the form layout - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='3eacc80a-ddca-4404-857a-6331aac99063', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('FormLayout', response) - - def get_lists_metadata(self): - """GetListsMetadata. - [Preview API] Returns meta data of the picklist. - :rtype: [PickListMetadataModel] - """ - response = self._send(http_method='GET', - location_id='b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6', - version='5.1-preview.1') - return self._deserialize('[PickListMetadataModel]', self._unwrap_collection(response)) - - def create_list(self, picklist): - """CreateList. - [Preview API] Creates a picklist. - :param :class:` ` picklist: - :rtype: :class:` ` - """ - content = self._serialize.body(picklist, 'PickListModel') - response = self._send(http_method='POST', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.1-preview.1', - content=content) - return self._deserialize('PickListModel', response) - - def delete_list(self, list_id): - """DeleteList. - [Preview API] Removes a picklist. - :param str list_id: The ID of the list - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - self._send(http_method='DELETE', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.1-preview.1', - route_values=route_values) - - def get_list(self, list_id): - """GetList. - [Preview API] Returns a picklist. - :param str list_id: The ID of the list - :rtype: :class:` ` - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - response = self._send(http_method='GET', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('PickListModel', response) - - def update_list(self, picklist, list_id): - """UpdateList. - [Preview API] Updates a list. - :param :class:` ` picklist: - :param str list_id: The ID of the list - :rtype: :class:` ` - """ - route_values = {} - if list_id is not None: - route_values['listId'] = self._serialize.url('list_id', list_id, 'str') - content = self._serialize.body(picklist, 'PickListModel') - response = self._send(http_method='PUT', - location_id='0b6179e2-23ce-46b2-b094-2ffa5ee70286', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('PickListModel', response) - - def add_page(self, page, process_id, wit_ref_name): - """AddPage. - [Preview API] Adds a page to the work item form - :param :class:` ` page: The page - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(page, 'Page') - response = self._send(http_method='POST', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Page', response) - - def edit_page(self, page, process_id, wit_ref_name): - """EditPage. - [Preview API] Updates a page on the work item form - :param :class:` ` page: The page - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(page, 'Page') - response = self._send(http_method='PATCH', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('Page', response) - - def remove_page(self, process_id, wit_ref_name, page_id): - """RemovePage. - [Preview API] Removes a page from the work item form - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str page_id: The ID of the page - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if page_id is not None: - route_values['pageId'] = self._serialize.url('page_id', page_id, 'str') - self._send(http_method='DELETE', - location_id='1b4ac126-59b2-4f37-b4df-0a48ba807edb', - version='5.1-preview.1', - route_values=route_values) - - def create_state_definition(self, state_model, process_id, wit_ref_name): - """CreateStateDefinition. - [Preview API] Creates a state definition in the work item type of the process. - :param :class:` ` state_model: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(state_model, 'WorkItemStateInputModel') - response = self._send(http_method='POST', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def delete_state_definition(self, process_id, wit_ref_name, state_id): - """DeleteStateDefinition. - [Preview API] Removes a state definition in the work item type of the process. - :param str process_id: ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: ID of the state - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - self._send(http_method='DELETE', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.1-preview.1', - route_values=route_values) - - def get_state_definition(self, process_id, wit_ref_name, state_id): - """GetStateDefinition. - [Preview API] Returns a state definition in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: The ID of the state - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('WorkItemStateResultModel', response) - - def get_state_definitions(self, process_id, wit_ref_name): - """GetStateDefinitions. - [Preview API] Returns a list of all state definitions in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: [WorkItemStateResultModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - response = self._send(http_method='GET', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemStateResultModel]', self._unwrap_collection(response)) - - def hide_state_definition(self, hide_state_model, process_id, wit_ref_name, state_id): - """HideStateDefinition. - [Preview API] Hides a state definition in the work item type of the process. - :param :class:` ` hide_state_model: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: The ID of the state - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - content = self._serialize.body(hide_state_model, 'HideStateModel') - response = self._send(http_method='PUT', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def update_state_definition(self, state_model, process_id, wit_ref_name, state_id): - """UpdateStateDefinition. - [Preview API] Updates a given state definition in the work item type of the process. - :param :class:` ` state_model: - :param str process_id: ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str state_id: ID of the state - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - if state_id is not None: - route_values['stateId'] = self._serialize.url('state_id', state_id, 'str') - content = self._serialize.body(state_model, 'WorkItemStateInputModel') - response = self._send(http_method='PATCH', - location_id='4303625d-08f4-4461-b14b-32c65bba5599', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemStateResultModel', response) - - def add_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """AddBehaviorToWorkItemType. - [Preview API] Adds a behavior to the work item type of the process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='POST', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behavior_for_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """GetBehaviorForWorkItemType. - [Preview API] Returns a behavior for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :param str behavior_ref_name: The reference name of the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('WorkItemTypeBehavior', response) - - def get_behaviors_for_work_item_type(self, process_id, wit_ref_name_for_behaviors): - """GetBehaviorsForWorkItemType. - [Preview API] Returns a list of all behaviors for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: [WorkItemTypeBehavior] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - response = self._send(http_method='GET', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemTypeBehavior]', self._unwrap_collection(response)) - - def remove_behavior_from_work_item_type(self, process_id, wit_ref_name_for_behaviors, behavior_ref_name): - """RemoveBehaviorFromWorkItemType. - [Preview API] Removes a behavior for the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :param str behavior_ref_name: The reference name of the behavior - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - if behavior_ref_name is not None: - route_values['behaviorRefName'] = self._serialize.url('behavior_ref_name', behavior_ref_name, 'str') - self._send(http_method='DELETE', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.1-preview.1', - route_values=route_values) - - def update_behavior_to_work_item_type(self, behavior, process_id, wit_ref_name_for_behaviors): - """UpdateBehaviorToWorkItemType. - [Preview API] Updates default work item type for the behavior of the process. - :param :class:` ` behavior: - :param str process_id: The ID of the process - :param str wit_ref_name_for_behaviors: Work item type reference name for the behavior - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_behaviors is not None: - route_values['witRefNameForBehaviors'] = self._serialize.url('wit_ref_name_for_behaviors', wit_ref_name_for_behaviors, 'str') - content = self._serialize.body(behavior, 'WorkItemTypeBehavior') - response = self._send(http_method='PATCH', - location_id='921dfb88-ef57-4c69-94e5-dd7da2d7031d', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeBehavior', response) - - def create_work_item_type(self, work_item_type, process_id): - """CreateWorkItemType. - [Preview API] Creates a work item type in the process. - :param :class:` ` work_item_type: - :param str process_id: The ID of the process - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - content = self._serialize.body(work_item_type, 'WorkItemTypeModel') - response = self._send(http_method='POST', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeModel', response) - - def delete_work_item_type(self, process_id, wit_ref_name): - """DeleteWorkItemType. - [Preview API] Removes a work itewm type in the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - self._send(http_method='DELETE', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.1-preview.1', - route_values=route_values) - - def get_work_item_type(self, process_id, wit_ref_name, expand=None): - """GetWorkItemType. - [Preview API] Returns a work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :param str expand: - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('WorkItemTypeModel', response) - - def get_work_item_types(self, process_id, expand=None): - """GetWorkItemTypes. - [Preview API] Returns a list of all work item types in the process. - :param str process_id: The ID of the process - :param str expand: - :rtype: [WorkItemTypeModel] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - query_parameters = {} - if expand is not None: - query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') - response = self._send(http_method='GET', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('[WorkItemTypeModel]', self._unwrap_collection(response)) - - def update_work_item_type(self, work_item_type_update, process_id, wit_ref_name): - """UpdateWorkItemType. - [Preview API] Updates a work item type of the process. - :param :class:` ` work_item_type_update: - :param str process_id: The ID of the process - :param str wit_ref_name: The reference name of the work item type - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name is not None: - route_values['witRefName'] = self._serialize.url('wit_ref_name', wit_ref_name, 'str') - content = self._serialize.body(work_item_type_update, 'WorkItemTypeUpdateModel') - response = self._send(http_method='PATCH', - location_id='1ce0acad-4638-49c3-969c-04aa65ba6bea', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeModel', response) - - def add_field_to_work_item_type(self, field, process_id, wit_ref_name_for_fields): - """AddFieldToWorkItemType. - [Preview API] Adds a field to the work item type in the process. - :param :class:` ` field: - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for the field - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - content = self._serialize.body(field, 'WorkItemTypeFieldModel2') - response = self._send(http_method='POST', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.1-preview.1', - route_values=route_values, - content=content) - return self._deserialize('WorkItemTypeFieldModel2', response) - - def get_work_item_type_field(self, process_id, wit_ref_name_for_fields, field_ref_name): - """GetWorkItemTypeField. - [Preview API] Returns a single field in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :param str field_ref_name: The reference name of the field - :rtype: :class:` ` - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') - response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('WorkItemTypeFieldModel2', response) - - def get_work_item_type_fields(self, process_id, wit_ref_name_for_fields): - """GetWorkItemTypeFields. - [Preview API] Returns a list of all fields in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :rtype: [WorkItemTypeFieldModel2] - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - response = self._send(http_method='GET', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('[WorkItemTypeFieldModel2]', self._unwrap_collection(response)) - - def remove_field_from_work_item_type(self, process_id, wit_ref_name_for_fields, field_ref_name): - """RemoveFieldFromWorkItemType. - [Preview API] Removes a field in the work item type of the process. - :param str process_id: The ID of the process - :param str wit_ref_name_for_fields: Work item type reference name for fields - :param str field_ref_name: The reference name of the field - """ - route_values = {} - if process_id is not None: - route_values['processId'] = self._serialize.url('process_id', process_id, 'str') - if wit_ref_name_for_fields is not None: - route_values['witRefNameForFields'] = self._serialize.url('wit_ref_name_for_fields', wit_ref_name_for_fields, 'str') - if field_ref_name is not None: - route_values['fieldRefName'] = self._serialize.url('field_ref_name', field_ref_name, 'str') - self._send(http_method='DELETE', - location_id='976713b4-a62e-499e-94dc-eeb869ea9126', - version='5.1-preview.1', - route_values=route_values) - From 62e52fa93c05f111c7ab3edfbd76497189ec8348 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 14 Feb 2019 12:31:10 -0500 Subject: [PATCH 110/191] fixed up profiles --- .../azure/devops/v5_1/client_factory.py | 7 + .../azure/devops/v5_1/profile/__init__.py | 8 + .../azure/devops/v5_1/profile/models.py | 220 ++++++++++++++++++ .../devops/v5_1/profile/profile_client.py | 47 ++-- .../devops/v5_1/profile_regions/__init__.py | 15 ++ .../devops/v5_1/profile_regions/models.py | 76 ++++++ .../profile_regions/profile_regions_client.py | 52 +++++ 7 files changed, 405 insertions(+), 20 deletions(-) create mode 100644 azure-devops/azure/devops/v5_1/profile_regions/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/profile_regions/models.py create mode 100644 azure-devops/azure/devops/v5_1/profile_regions/profile_regions_client.py diff --git a/azure-devops/azure/devops/v5_1/client_factory.py b/azure-devops/azure/devops/v5_1/client_factory.py index 35bd9630..7df8204d 100644 --- a/azure-devops/azure/devops/v5_1/client_factory.py +++ b/azure-devops/azure/devops/v5_1/client_factory.py @@ -210,6 +210,13 @@ def get_profile_client(self): """ return self._connection.get_client('azure.devops.v5_1.profile.profile_client.ProfileClient') + def get_profile_regions_client(self): + """get_profile_regions_client. + Gets the 5.1 version of the ProfileRegionsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.v5_1.profile_regions.profile_regions_client.ProfileRegionsClient') + def get_project_analysis_client(self): """get_project_analysis_client. Gets the 5.1 version of the ProjectAnalysisClient diff --git a/azure-devops/azure/devops/v5_1/profile/__init__.py b/azure-devops/azure/devops/v5_1/profile/__init__.py index ed5aa5d3..426916b1 100644 --- a/azure-devops/azure/devops/v5_1/profile/__init__.py +++ b/azure-devops/azure/devops/v5_1/profile/__init__.py @@ -9,7 +9,15 @@ from .models import * __all__ = [ + 'AttributeDescriptor', + 'AttributesContainer', + 'Avatar', + 'CoreProfileAttribute', + 'CreateProfileContext', 'GeoRegion', + 'Profile', + 'ProfileAttribute', + 'ProfileAttributeBase', 'ProfileRegion', 'ProfileRegions', ] diff --git a/azure-devops/azure/devops/v5_1/profile/models.py b/azure-devops/azure/devops/v5_1/profile/models.py index 97914fd6..0fee2061 100644 --- a/azure-devops/azure/devops/v5_1/profile/models.py +++ b/azure-devops/azure/devops/v5_1/profile/models.py @@ -9,6 +9,126 @@ from msrest.serialization import Model +class AttributeDescriptor(Model): + """AttributeDescriptor. + + :param attribute_name: The name of the attribute. + :type attribute_name: str + :param container_name: The container the attribute resides in. + :type container_name: str + """ + + _attribute_map = { + 'attribute_name': {'key': 'attributeName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'} + } + + def __init__(self, attribute_name=None, container_name=None): + super(AttributeDescriptor, self).__init__() + self.attribute_name = attribute_name + self.container_name = container_name + + +class AttributesContainer(Model): + """AttributesContainer. + + :param attributes: The attributes stored by the container. + :type attributes: dict + :param container_name: The name of the container. + :type container_name: str + :param revision: The maximum revision number of any attribute within the container. + :type revision: int + """ + + _attribute_map = { + 'attributes': {'key': 'attributes', 'type': '{ProfileAttribute}'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, attributes=None, container_name=None, revision=None): + super(AttributesContainer, self).__init__() + self.attributes = attributes + self.container_name = container_name + self.revision = revision + + +class Avatar(Model): + """Avatar. + + :param is_auto_generated: + :type is_auto_generated: bool + :param size: + :type size: object + :param time_stamp: + :type time_stamp: datetime + :param value: + :type value: str + """ + + _attribute_map = { + 'is_auto_generated': {'key': 'isAutoGenerated', 'type': 'bool'}, + 'size': {'key': 'size', 'type': 'object'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_auto_generated=None, size=None, time_stamp=None, value=None): + super(Avatar, self).__init__() + self.is_auto_generated = is_auto_generated + self.size = size + self.time_stamp = time_stamp + self.value = value + + +class CreateProfileContext(Model): + """CreateProfileContext. + + :param cIData: + :type cIData: dict + :param contact_with_offers: + :type contact_with_offers: bool + :param country_name: + :type country_name: str + :param display_name: + :type display_name: str + :param email_address: + :type email_address: str + :param has_account: + :type has_account: bool + :param language: + :type language: str + :param phone_number: + :type phone_number: str + :param profile_state: The current state of the profile. + :type profile_state: object + """ + + _attribute_map = { + 'cIData': {'key': 'cIData', 'type': '{object}'}, + 'contact_with_offers': {'key': 'contactWithOffers', 'type': 'bool'}, + 'country_name': {'key': 'countryName', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': 'str'}, + 'has_account': {'key': 'hasAccount', 'type': 'bool'}, + 'language': {'key': 'language', 'type': 'str'}, + 'phone_number': {'key': 'phoneNumber', 'type': 'str'}, + 'profile_state': {'key': 'profileState', 'type': 'object'} + } + + def __init__(self, cIData=None, contact_with_offers=None, country_name=None, display_name=None, email_address=None, has_account=None, language=None, phone_number=None, profile_state=None): + super(CreateProfileContext, self).__init__() + self.cIData = cIData + self.contact_with_offers = contact_with_offers + self.country_name = country_name + self.display_name = display_name + self.email_address = email_address + self.has_account = has_account + self.language = language + self.phone_number = phone_number + self.profile_state = profile_state + + class GeoRegion(Model): """GeoRegion. @@ -25,6 +145,74 @@ def __init__(self, region_code=None): self.region_code = region_code +class Profile(Model): + """Profile. + + :param application_container: The attributes of this profile. + :type application_container: :class:`AttributesContainer ` + :param core_attributes: The core attributes of this profile. + :type core_attributes: dict + :param core_revision: The maximum revision number of any attribute. + :type core_revision: int + :param id: The unique identifier of the profile. + :type id: str + :param profile_state: The current state of the profile. + :type profile_state: object + :param revision: The maximum revision number of any attribute. + :type revision: int + :param time_stamp: The time at which this profile was last changed. + :type time_stamp: datetime + """ + + _attribute_map = { + 'application_container': {'key': 'applicationContainer', 'type': 'AttributesContainer'}, + 'core_attributes': {'key': 'coreAttributes', 'type': '{CoreProfileAttribute}'}, + 'core_revision': {'key': 'coreRevision', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'profile_state': {'key': 'profileState', 'type': 'object'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'} + } + + def __init__(self, application_container=None, core_attributes=None, core_revision=None, id=None, profile_state=None, revision=None, time_stamp=None): + super(Profile, self).__init__() + self.application_container = application_container + self.core_attributes = core_attributes + self.core_revision = core_revision + self.id = id + self.profile_state = profile_state + self.revision = revision + self.time_stamp = time_stamp + + +class ProfileAttributeBase(Model): + """ProfileAttributeBase. + + :param descriptor: The descriptor of the attribute. + :type descriptor: :class:`AttributeDescriptor ` + :param revision: The revision number of the attribute. + :type revision: int + :param time_stamp: The time the attribute was last changed. + :type time_stamp: datetime + :param value: The value of the attribute. + :type value: object + """ + + _attribute_map = { + 'descriptor': {'key': 'descriptor', 'type': 'AttributeDescriptor'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, descriptor=None, revision=None, time_stamp=None, value=None): + super(ProfileAttributeBase, self).__init__() + self.descriptor = descriptor + self.revision = revision + self.time_stamp = time_stamp + self.value = value + + class ProfileRegion(Model): """ProfileRegion. @@ -69,8 +257,40 @@ def __init__(self, notice_contact_consent_requirement_regions=None, opt_out_cont self.regions = regions +class CoreProfileAttribute(ProfileAttributeBase): + """CoreProfileAttribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(CoreProfileAttribute, self).__init__() + + +class ProfileAttribute(ProfileAttributeBase): + """ProfileAttribute. + + """ + + _attribute_map = { + } + + def __init__(self): + super(ProfileAttribute, self).__init__() + + __all__ = [ + 'AttributeDescriptor', + 'AttributesContainer', + 'Avatar', + 'CreateProfileContext', 'GeoRegion', + 'Profile', + 'ProfileAttributeBase', 'ProfileRegion', 'ProfileRegions', + 'CoreProfileAttribute', + 'ProfileAttribute', ] diff --git a/azure-devops/azure/devops/v5_1/profile/profile_client.py b/azure-devops/azure/devops/v5_1/profile/profile_client.py index a4f5d139..3e0eec8d 100644 --- a/azure-devops/azure/devops/v5_1/profile/profile_client.py +++ b/azure-devops/azure/devops/v5_1/profile/profile_client.py @@ -25,28 +25,35 @@ def __init__(self, base_url=None, creds=None): resource_area_identifier = None - def get_geo_region(self, ip): - """GetGeoRegion. - [Preview API] Lookup up country/region based on provided IPv4, null if using the remote IPv4 address. - :param str ip: - :rtype: :class:` ` + def get_profile(self, id, details=None, with_attributes=None, partition=None, core_attributes=None, force_refresh=None): + """GetProfile. + [Preview API] Gets a user profile. + :param str id: The ID of the target user profile within the same organization, or 'me' to get the profile of the current authenticated user. + :param bool details: Return public profile information such as display name, email address, country, etc. If false, the withAttributes parameter is ignored. + :param bool with_attributes: If true, gets the attributes (named key-value pairs of arbitrary data) associated with the profile. The partition parameter must also have a value. + :param str partition: The partition (named group) of attributes to return. + :param str core_attributes: A comma-delimited list of core profile attributes to return. Valid values are Email, Avatar, DisplayName, and ContactWithOffers. + :param bool force_refresh: Not used in this version of the API. + :rtype: :class:` ` """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') query_parameters = {} - if ip is not None: - query_parameters['ip'] = self._serialize.query('ip', ip, 'str') + if details is not None: + query_parameters['details'] = self._serialize.query('details', details, 'bool') + if with_attributes is not None: + query_parameters['withAttributes'] = self._serialize.query('with_attributes', with_attributes, 'bool') + if partition is not None: + query_parameters['partition'] = self._serialize.query('partition', partition, 'str') + if core_attributes is not None: + query_parameters['coreAttributes'] = self._serialize.query('core_attributes', core_attributes, 'str') + if force_refresh is not None: + query_parameters['forceRefresh'] = self._serialize.query('force_refresh', force_refresh, 'bool') response = self._send(http_method='GET', - location_id='35b3ff1d-ab4c-4d1c-98bb-f6ea21d86bd9', - version='5.1-preview.1', + location_id='f83735dc-483f-4238-a291-d45f6080a9af', + version='5.1-preview.3', + route_values=route_values, query_parameters=query_parameters) - return self._deserialize('GeoRegion', response) - - def get_regions(self): - """GetRegions. - [Preview API] - :rtype: :class:` ` - """ - response = self._send(http_method='GET', - location_id='b129ca90-999d-47bb-ab37-0dcf784ee633', - version='5.1-preview.1') - return self._deserialize('ProfileRegions', response) + return self._deserialize('Profile', response) diff --git a/azure-devops/azure/devops/v5_1/profile_regions/__init__.py b/azure-devops/azure/devops/v5_1/profile_regions/__init__.py new file mode 100644 index 00000000..ed5aa5d3 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/profile_regions/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'GeoRegion', + 'ProfileRegion', + 'ProfileRegions', +] diff --git a/azure-devops/azure/devops/v5_1/profile_regions/models.py b/azure-devops/azure/devops/v5_1/profile_regions/models.py new file mode 100644 index 00000000..97914fd6 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/profile_regions/models.py @@ -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 msrest.serialization import Model + + +class GeoRegion(Model): + """GeoRegion. + + :param region_code: + :type region_code: str + """ + + _attribute_map = { + 'region_code': {'key': 'regionCode', 'type': 'str'} + } + + def __init__(self, region_code=None): + super(GeoRegion, self).__init__() + self.region_code = region_code + + +class ProfileRegion(Model): + """ProfileRegion. + + :param code: The two-letter code defined in ISO 3166 for the country/region. + :type code: str + :param name: Localized country/region name + :type name: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, code=None, name=None): + super(ProfileRegion, self).__init__() + self.code = code + self.name = name + + +class ProfileRegions(Model): + """ProfileRegions. + + :param notice_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of notice + :type notice_contact_consent_requirement_regions: list of str + :param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out + :type opt_out_contact_consent_requirement_regions: list of str + :param regions: List of country/regions + :type regions: list of :class:`ProfileRegion ` + """ + + _attribute_map = { + 'notice_contact_consent_requirement_regions': {'key': 'noticeContactConsentRequirementRegions', 'type': '[str]'}, + 'opt_out_contact_consent_requirement_regions': {'key': 'optOutContactConsentRequirementRegions', 'type': '[str]'}, + 'regions': {'key': 'regions', 'type': '[ProfileRegion]'} + } + + def __init__(self, notice_contact_consent_requirement_regions=None, opt_out_contact_consent_requirement_regions=None, regions=None): + super(ProfileRegions, self).__init__() + self.notice_contact_consent_requirement_regions = notice_contact_consent_requirement_regions + self.opt_out_contact_consent_requirement_regions = opt_out_contact_consent_requirement_regions + self.regions = regions + + +__all__ = [ + 'GeoRegion', + 'ProfileRegion', + 'ProfileRegions', +] diff --git a/azure-devops/azure/devops/v5_1/profile_regions/profile_regions_client.py b/azure-devops/azure/devops/v5_1/profile_regions/profile_regions_client.py new file mode 100644 index 00000000..b935df5c --- /dev/null +++ b/azure-devops/azure/devops/v5_1/profile_regions/profile_regions_client.py @@ -0,0 +1,52 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ProfileRegionsClient(Client): + """ProfileRegions + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProfileRegionsClient, 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_geo_region(self, ip): + """GetGeoRegion. + [Preview API] Lookup up country/region based on provided IPv4, null if using the remote IPv4 address. + :param str ip: + :rtype: :class:` ` + """ + query_parameters = {} + if ip is not None: + query_parameters['ip'] = self._serialize.query('ip', ip, 'str') + response = self._send(http_method='GET', + location_id='35b3ff1d-ab4c-4d1c-98bb-f6ea21d86bd9', + version='5.1-preview.1', + query_parameters=query_parameters) + return self._deserialize('GeoRegion', response) + + def get_regions(self): + """GetRegions. + [Preview API] + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='b129ca90-999d-47bb-ab37-0dcf784ee633', + version='5.1-preview.1') + return self._deserialize('ProfileRegions', response) + From c4e83771c95f530c66039e19df50e84c4548a425 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 14 Feb 2019 13:26:34 -0500 Subject: [PATCH 111/191] typo --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6b0ad0d6..25dc573d 100644 --- a/.gitignore +++ b/.gitignore @@ -288,7 +288,7 @@ __pycache__/ # Telerik's JustMock configuration file *.jmconfig -# BizTalk build outputv +# BizTalk build output *.btp.cs *.btm.cs *.odx.cs From 7d74a2e568331892aa27033357e17df74faaa4fd Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 14 Feb 2019 13:27:25 -0500 Subject: [PATCH 112/191] add release client --- .gitignore | 4 +- .../azure/devops/v5_0/release/__init__.py | 107 + .../azure/devops/v5_0/release/models.py | 3733 ++++++++++++++++ .../devops/v5_0/release/release_client.py | 784 ++++ .../azure/devops/v5_1/release/__init__.py | 107 + .../azure/devops/v5_1/release/models.py | 3757 +++++++++++++++++ .../devops/v5_1/release/release_client.py | 791 ++++ 7 files changed, 9281 insertions(+), 2 deletions(-) create mode 100644 azure-devops/azure/devops/v5_0/release/__init__.py create mode 100644 azure-devops/azure/devops/v5_0/release/models.py create mode 100644 azure-devops/azure/devops/v5_0/release/release_client.py create mode 100644 azure-devops/azure/devops/v5_1/release/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/release/models.py create mode 100644 azure-devops/azure/devops/v5_1/release/release_client.py diff --git a/.gitignore b/.gitignore index 25dc573d..b7222d70 100644 --- a/.gitignore +++ b/.gitignore @@ -297,5 +297,5 @@ __pycache__/ vsts/build/bdist.win32/ # don't ignore release management client -!azure-devops/azure/devops/v4_0/release -!azure-devops/azure/devops/v4_1/release +!azure-devops/azure/devops/v5_0/release +!azure-devops/azure/devops/v5_1/release diff --git a/azure-devops/azure/devops/v5_0/release/__init__.py b/azure-devops/azure/devops/v5_0/release/__init__.py new file mode 100644 index 00000000..421074d5 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/release/__init__.py @@ -0,0 +1,107 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTriggerConfiguration', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'EnvironmentTrigger', + 'FavoriteItem', + 'Folder', + 'GateUpdateMetadata', + 'GraphSubjectBase', + 'IdentityRef', + 'IgnoredGate', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'PipelineProcess', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartEnvironmentMetadata', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTaskAttachment', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SourcePullRequestVersion', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', +] diff --git a/azure-devops/azure/devops/v5_0/release/models.py b/azure-devops/azure/devops/v5_0/release/models.py new file mode 100644 index 00000000..686f1a10 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/release/models.py @@ -0,0 +1,3733 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentArtifactDefinition(Model): + """AgentArtifactDefinition. + + :param alias: + :type alias: str + :param artifact_type: + :type artifact_type: object + :param details: + :type details: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'object'}, + 'details': {'key': 'details', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): + super(AgentArtifactDefinition, self).__init__() + self.alias = alias + self.artifact_type = artifact_type + self.details = details + self.name = name + self.version = version + + +class ApprovalOptions(Model): + """ApprovalOptions. + + :param auto_triggered_and_previous_environment_approved_can_be_skipped: + :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool + :param enforce_identity_revalidation: + :type enforce_identity_revalidation: bool + :param execution_order: + :type execution_order: object + :param release_creator_can_be_approver: + :type release_creator_can_be_approver: bool + :param required_approver_count: + :type required_approver_count: int + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, + 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, + 'execution_order': {'key': 'executionOrder', 'type': 'object'}, + 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, + 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, execution_order=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): + super(ApprovalOptions, self).__init__() + self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped + self.enforce_identity_revalidation = enforce_identity_revalidation + self.execution_order = execution_order + self.release_creator_can_be_approver = release_creator_can_be_approver + self.required_approver_count = required_approver_count + self.timeout_in_minutes = timeout_in_minutes + + +class Artifact(Model): + """Artifact. + + :param alias: Gets or sets alias. + :type alias: str + :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}} + :type definition_reference: dict + :param is_primary: Gets or sets as artifact is primary or not. + :type is_primary: bool + :param is_retained: + :type is_retained: bool + :param source_id: + :type source_id: str + :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. + :type type: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'is_retained': {'key': 'isRetained', 'type': 'bool'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, alias=None, definition_reference=None, is_primary=None, is_retained=None, source_id=None, type=None): + super(Artifact, self).__init__() + self.alias = alias + self.definition_reference = definition_reference + self.is_primary = is_primary + self.is_retained = is_retained + self.source_id = source_id + self.type = type + + +class ArtifactMetadata(Model): + """ArtifactMetadata. + + :param alias: Sets alias of artifact. + :type alias: str + :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. + :type instance_reference: :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} + } + + def __init__(self, alias=None, instance_reference=None): + super(ArtifactMetadata, self).__init__() + self.alias = alias + self.instance_reference = instance_reference + + +class ArtifactSourceReference(Model): + """ArtifactSourceReference. + + :param id: + :type id: str + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ArtifactSourceReference, self).__init__() + self.id = id + self.name = name + + +class ArtifactTriggerConfiguration(Model): + """ArtifactTriggerConfiguration. + + :param is_trigger_supported: + :type is_trigger_supported: bool + :param is_trigger_supported_only_in_hosted: + :type is_trigger_supported_only_in_hosted: bool + :param is_webhook_supported_at_server_level: + :type is_webhook_supported_at_server_level: bool + :param payload_hash_header_name: + :type payload_hash_header_name: str + :param resources: + :type resources: dict + :param webhook_payload_mapping: + :type webhook_payload_mapping: dict + """ + + _attribute_map = { + 'is_trigger_supported': {'key': 'isTriggerSupported', 'type': 'bool'}, + 'is_trigger_supported_only_in_hosted': {'key': 'isTriggerSupportedOnlyInHosted', 'type': 'bool'}, + 'is_webhook_supported_at_server_level': {'key': 'isWebhookSupportedAtServerLevel', 'type': 'bool'}, + 'payload_hash_header_name': {'key': 'payloadHashHeaderName', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '{str}'}, + 'webhook_payload_mapping': {'key': 'webhookPayloadMapping', 'type': '{str}'} + } + + def __init__(self, is_trigger_supported=None, is_trigger_supported_only_in_hosted=None, is_webhook_supported_at_server_level=None, payload_hash_header_name=None, resources=None, webhook_payload_mapping=None): + super(ArtifactTriggerConfiguration, self).__init__() + self.is_trigger_supported = is_trigger_supported + self.is_trigger_supported_only_in_hosted = is_trigger_supported_only_in_hosted + self.is_webhook_supported_at_server_level = is_webhook_supported_at_server_level + self.payload_hash_header_name = payload_hash_header_name + self.resources = resources + self.webhook_payload_mapping = webhook_payload_mapping + + +class ArtifactTypeDefinition(Model): + """ArtifactTypeDefinition. + + :param artifact_trigger_configuration: + :type artifact_trigger_configuration: :class:`ArtifactTriggerConfiguration ` + :param artifact_type: + :type artifact_type: str + :param display_name: + :type display_name: str + :param endpoint_type_id: + :type endpoint_type_id: str + :param input_descriptors: + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: + :type name: str + :param unique_source_identifier: + :type unique_source_identifier: str + """ + + _attribute_map = { + 'artifact_trigger_configuration': {'key': 'artifactTriggerConfiguration', 'type': 'ArtifactTriggerConfiguration'}, + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_type_id': {'key': 'endpointTypeId', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} + } + + def __init__(self, artifact_trigger_configuration=None, artifact_type=None, display_name=None, endpoint_type_id=None, input_descriptors=None, name=None, unique_source_identifier=None): + super(ArtifactTypeDefinition, self).__init__() + self.artifact_trigger_configuration = artifact_trigger_configuration + self.artifact_type = artifact_type + self.display_name = display_name + self.endpoint_type_id = endpoint_type_id + self.input_descriptors = input_descriptors + self.name = name + self.unique_source_identifier = unique_source_identifier + + +class ArtifactVersion(Model): + """ArtifactVersion. + + :param alias: + :type alias: str + :param default_version: + :type default_version: :class:`BuildVersion ` + :param error_message: + :type error_message: str + :param source_id: + :type source_id: str + :param versions: + :type versions: list of :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[BuildVersion]'} + } + + def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): + super(ArtifactVersion, self).__init__() + self.alias = alias + self.default_version = default_version + self.error_message = error_message + self.source_id = source_id + self.versions = versions + + +class ArtifactVersionQueryResult(Model): + """ArtifactVersionQueryResult. + + :param artifact_versions: + :type artifact_versions: list of :class:`ArtifactVersion ` + """ + + _attribute_map = { + 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} + } + + def __init__(self, artifact_versions=None): + super(ArtifactVersionQueryResult, self).__init__() + self.artifact_versions = artifact_versions + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class AutoTriggerIssue(Model): + """AutoTriggerIssue. + + :param issue: + :type issue: :class:`Issue ` + :param issue_source: + :type issue_source: object + :param project: + :type project: :class:`ProjectReference ` + :param release_definition_reference: + :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` + :param release_trigger_type: + :type release_trigger_type: object + """ + + _attribute_map = { + 'issue': {'key': 'issue', 'type': 'Issue'}, + 'issue_source': {'key': 'issueSource', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} + } + + def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): + super(AutoTriggerIssue, self).__init__() + self.issue = issue + self.issue_source = issue_source + self.project = project + self.release_definition_reference = release_definition_reference + self.release_trigger_type = release_trigger_type + + +class BuildVersion(Model): + """BuildVersion. + + :param commit_message: + :type commit_message: str + :param definition_id: + :type definition_id: str + :param definition_name: + :type definition_name: str + :param id: + :type id: str + :param is_multi_definition_type: + :type is_multi_definition_type: bool + :param name: + :type name: str + :param source_branch: + :type source_branch: str + :param source_pull_request_version: + :type source_pull_request_version: :class:`SourcePullRequestVersion ` + :param source_repository_id: + :type source_repository_id: str + :param source_repository_type: + :type source_repository_type: str + :param source_version: + :type source_version: str + """ + + _attribute_map = { + 'commit_message': {'key': 'commitMessage', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'str'}, + 'definition_name': {'key': 'definitionName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_multi_definition_type': {'key': 'isMultiDefinitionType', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_pull_request_version': {'key': 'sourcePullRequestVersion', 'type': 'SourcePullRequestVersion'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'} + } + + def __init__(self, commit_message=None, definition_id=None, definition_name=None, id=None, is_multi_definition_type=None, name=None, source_branch=None, source_pull_request_version=None, source_repository_id=None, source_repository_type=None, source_version=None): + super(BuildVersion, self).__init__() + self.commit_message = commit_message + self.definition_id = definition_id + self.definition_name = definition_name + self.id = id + self.is_multi_definition_type = is_multi_definition_type + self.name = name + self.source_branch = source_branch + self.source_pull_request_version = source_pull_request_version + self.source_repository_id = source_repository_id + self.source_repository_type = source_repository_type + self.source_version = source_version + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param change_type: The type of source. "TfsVersionControl", "TfsGit", etc. + :type change_type: str + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: A description of the change. This might be a commit message or changeset description. + :type message: str + :param pushed_by: The person or process that pushed the change. + :type pushed_by: :class:`IdentityRef ` + :param pusher: The person or process that pushed the change. + :type pusher: str + :param timestamp: A timestamp for the change. + :type timestamp: datetime + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'pusher': {'key': 'pusher', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} + } + + def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, pushed_by=None, pusher=None, timestamp=None): + super(Change, self).__init__() + self.author = author + self.change_type = change_type + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.pushed_by = pushed_by + self.pusher = pusher + self.timestamp = timestamp + + +class Condition(Model): + """Condition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, name=None, value=None): + super(Condition, self).__init__() + self.condition_type = condition_type + self.name = name + self.value = value + + +class ConfigurationVariableValue(Model): + """ConfigurationVariableValue. + + :param allow_override: Gets or sets if a variable can be overridden at deployment time or not. + :type allow_override: bool + :param is_secret: Gets or sets as variable is secret or not. + :type is_secret: bool + :param value: Gets or sets value of the configuration variable. + :type value: str + """ + + _attribute_map = { + 'allow_override': {'key': 'allowOverride', 'type': 'bool'}, + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, allow_override=None, is_secret=None, value=None): + super(ConfigurationVariableValue, self).__init__() + self.allow_override = allow_override + self.is_secret = is_secret + self.value = value + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.initial_context_template = initial_context_template + self.parameters = parameters + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DefinitionEnvironmentReference(Model): + """DefinitionEnvironmentReference. + + :param definition_environment_id: + :type definition_environment_id: int + :param definition_environment_name: + :type definition_environment_name: str + :param release_definition_id: + :type release_definition_id: int + :param release_definition_name: + :type release_definition_name: str + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} + } + + def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): + super(DefinitionEnvironmentReference, self).__init__() + self.definition_environment_id = definition_environment_id + self.definition_environment_name = definition_environment_name + self.release_definition_id = release_definition_id + self.release_definition_name = release_definition_name + + +class Deployment(Model): + """Deployment. + + :param _links: Gets links to access the deployment. + :type _links: :class:`ReferenceLinks ` + :param attempt: Gets attempt number. + :type attempt: int + :param completed_on: Gets the date on which deployment is complete. + :type completed_on: datetime + :param conditions: Gets the list of condition associated with deployment. + :type conditions: list of :class:`Condition ` + :param definition_environment_id: Gets release definition environment id. + :type definition_environment_id: int + :param deployment_status: Gets status of the deployment. + :type deployment_status: object + :param id: Gets the unique identifier for deployment. + :type id: int + :param last_modified_by: Gets the identity who last modified the deployment. + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: Gets the date on which deployment is last modified. + :type last_modified_on: datetime + :param operation_status: Gets operation status of deployment. + :type operation_status: object + :param post_deploy_approvals: Gets list of PostDeployApprovals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deploy_approvals: Gets list of PreDeployApprovals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param queued_on: Gets the date on which deployment is queued. + :type queued_on: datetime + :param reason: Gets reason of deployment. + :type reason: object + :param release: Gets the reference of release. + :type release: :class:`ReleaseReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which the deployment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which the deployment is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param requested_by: Gets the identity who requested. + :type requested_by: :class:`IdentityRef ` + :param requested_for: Gets the identity for whom deployment is requested. + :type requested_for: :class:`IdentityRef ` + :param scheduled_deployment_time: Gets the date on which deployment is scheduled. + :type scheduled_deployment_time: datetime + :param started_on: Gets the date on which deployment is started. + :type started_on: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'completed_on': {'key': 'completedOn', 'type': 'iso-8601'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, attempt=None, completed_on=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, project_reference=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): + super(Deployment, self).__init__() + self._links = _links + self.attempt = attempt + self.completed_on = completed_on + self.conditions = conditions + self.definition_environment_id = definition_environment_id + self.deployment_status = deployment_status + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.project_reference = project_reference + self.queued_on = queued_on + self.reason = reason + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.requested_by = requested_by + self.requested_for = requested_for + self.scheduled_deployment_time = scheduled_deployment_time + self.started_on = started_on + + +class DeploymentAttempt(Model): + """DeploymentAttempt. + + :param attempt: + :type attempt: int + :param deployment_id: + :type deployment_id: int + :param error_log: Error log to show any unexpected error that occurred during executing deploy step + :type error_log: str + :param has_started: Specifies whether deployment has started or not + :type has_started: bool + :param id: + :type id: int + :param issues: All the issues related to the deployment + :type issues: list of :class:`Issue ` + :param job: + :type job: :class:`ReleaseTask ` + :param last_modified_by: + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: + :type last_modified_on: datetime + :param operation_status: + :type operation_status: object + :param post_deployment_gates: + :type post_deployment_gates: :class:`ReleaseGates ` + :param pre_deployment_gates: + :type pre_deployment_gates: :class:`ReleaseGates ` + :param queued_on: + :type queued_on: datetime + :param reason: + :type reason: object + :param release_deploy_phases: + :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` + :param requested_by: + :type requested_by: :class:`IdentityRef ` + :param requested_for: + :type requested_for: :class:`IdentityRef ` + :param run_plan_id: + :type run_plan_id: str + :param status: + :type status: object + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'has_started': {'key': 'hasStarted', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseGates'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseGates'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, issues=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): + super(DeploymentAttempt, self).__init__() + self.attempt = attempt + self.deployment_id = deployment_id + self.error_log = error_log + self.has_started = has_started + self.id = id + self.issues = issues + self.job = job + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deployment_gates = post_deployment_gates + self.pre_deployment_gates = pre_deployment_gates + self.queued_on = queued_on + self.reason = reason + self.release_deploy_phases = release_deploy_phases + self.requested_by = requested_by + self.requested_for = requested_for + self.run_plan_id = run_plan_id + self.status = status + self.tasks = tasks + + +class DeploymentJob(Model): + """DeploymentJob. + + :param job: + :type job: :class:`ReleaseTask ` + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, job=None, tasks=None): + super(DeploymentJob, self).__init__() + self.job = job + self.tasks = tasks + + +class DeploymentQueryParameters(Model): + """DeploymentQueryParameters. + + :param artifact_source_id: + :type artifact_source_id: str + :param artifact_type_id: + :type artifact_type_id: str + :param artifact_versions: + :type artifact_versions: list of str + :param deployments_per_environment: + :type deployments_per_environment: int + :param deployment_status: + :type deployment_status: object + :param environments: + :type environments: list of :class:`DefinitionEnvironmentReference ` + :param expands: + :type expands: object + :param is_deleted: + :type is_deleted: bool + :param latest_deployments_only: + :type latest_deployments_only: bool + :param max_deployments_per_environment: + :type max_deployments_per_environment: int + :param max_modified_time: + :type max_modified_time: datetime + :param min_modified_time: + :type min_modified_time: datetime + :param operation_status: + :type operation_status: object + :param query_order: + :type query_order: object + :param query_type: + :type query_type: object + :param source_branch: + :type source_branch: str + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, + 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, + 'deployments_per_environment': {'key': 'deploymentsPerEnvironment', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, + 'expands': {'key': 'expands', 'type': 'object'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, + 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, + 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, + 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'query_order': {'key': 'queryOrder', 'type': 'object'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'} + } + + def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployments_per_environment=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None, query_type=None, source_branch=None): + super(DeploymentQueryParameters, self).__init__() + self.artifact_source_id = artifact_source_id + self.artifact_type_id = artifact_type_id + self.artifact_versions = artifact_versions + self.deployments_per_environment = deployments_per_environment + self.deployment_status = deployment_status + self.environments = environments + self.expands = expands + self.is_deleted = is_deleted + self.latest_deployments_only = latest_deployments_only + self.max_deployments_per_environment = max_deployments_per_environment + self.max_modified_time = max_modified_time + self.min_modified_time = min_modified_time + self.operation_status = operation_status + self.query_order = query_order + self.query_type = query_type + self.source_branch = source_branch + + +class EmailRecipients(Model): + """EmailRecipients. + + :param email_addresses: + :type email_addresses: list of str + :param tfs_ids: + :type tfs_ids: list of str + """ + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} + } + + def __init__(self, email_addresses=None, tfs_ids=None): + super(EmailRecipients, self).__init__() + self.email_addresses = email_addresses + self.tfs_ids = tfs_ids + + +class EnvironmentExecutionPolicy(Model): + """EnvironmentExecutionPolicy. + + :param concurrency_count: This policy decides, how many environments would be with Environment Runner. + :type concurrency_count: int + :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. + :type queue_depth_count: int + """ + + _attribute_map = { + 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, + 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} + } + + def __init__(self, concurrency_count=None, queue_depth_count=None): + super(EnvironmentExecutionPolicy, self).__init__() + self.concurrency_count = concurrency_count + self.queue_depth_count = queue_depth_count + + +class EnvironmentOptions(Model): + """EnvironmentOptions. + + :param auto_link_work_items: + :type auto_link_work_items: bool + :param badge_enabled: + :type badge_enabled: bool + :param email_notification_type: + :type email_notification_type: str + :param email_recipients: + :type email_recipients: str + :param enable_access_token: + :type enable_access_token: bool + :param publish_deployment_status: + :type publish_deployment_status: bool + :param pull_request_deployment_enabled: + :type pull_request_deployment_enabled: bool + :param skip_artifacts_download: + :type skip_artifacts_download: bool + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_link_work_items': {'key': 'autoLinkWorkItems', 'type': 'bool'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, + 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, + 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, + 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, + 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, + 'pull_request_deployment_enabled': {'key': 'pullRequestDeploymentEnabled', 'type': 'bool'}, + 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_link_work_items=None, badge_enabled=None, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, pull_request_deployment_enabled=None, skip_artifacts_download=None, timeout_in_minutes=None): + super(EnvironmentOptions, self).__init__() + self.auto_link_work_items = auto_link_work_items + self.badge_enabled = badge_enabled + self.email_notification_type = email_notification_type + self.email_recipients = email_recipients + self.enable_access_token = enable_access_token + self.publish_deployment_status = publish_deployment_status + self.pull_request_deployment_enabled = pull_request_deployment_enabled + self.skip_artifacts_download = skip_artifacts_download + self.timeout_in_minutes = timeout_in_minutes + + +class EnvironmentRetentionPolicy(Model): + """EnvironmentRetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + :param releases_to_keep: + :type releases_to_keep: int + :param retain_build: + :type retain_build: bool + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, + 'retain_build': {'key': 'retainBuild', 'type': 'bool'} + } + + def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): + super(EnvironmentRetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + self.releases_to_keep = releases_to_keep + self.retain_build = retain_build + + +class EnvironmentTrigger(Model): + """EnvironmentTrigger. + + :param definition_environment_id: + :type definition_environment_id: int + :param release_definition_id: + :type release_definition_id: int + :param trigger_content: + :type trigger_content: str + :param trigger_type: + :type trigger_type: object + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'trigger_content': {'key': 'triggerContent', 'type': 'str'}, + 'trigger_type': {'key': 'triggerType', 'type': 'object'} + } + + def __init__(self, definition_environment_id=None, release_definition_id=None, trigger_content=None, trigger_type=None): + super(EnvironmentTrigger, self).__init__() + self.definition_environment_id = definition_environment_id + self.release_definition_id = release_definition_id + self.trigger_content = trigger_content + self.trigger_type = trigger_type + + +class FavoriteItem(Model): + """FavoriteItem. + + :param data: Application specific data for the entry + :type data: str + :param id: Unique Id of the the entry + :type id: str + :param name: Display text for favorite entry + :type name: str + :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder + :type type: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, data=None, id=None, name=None, type=None): + super(FavoriteItem, self).__init__() + self.data = data + self.id = id + self.name = name + self.type = type + + +class Folder(Model): + """Folder. + + :param created_by: + :type created_by: :class:`IdentityRef ` + :param created_on: + :type created_on: datetime + :param description: + :type description: str + :param last_changed_by: + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: + :type last_changed_date: datetime + :param path: + :type path: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path + + +class GateUpdateMetadata(Model): + """GateUpdateMetadata. + + :param comment: Comment + :type comment: str + :param gates_to_ignore: Name of gate to be ignored. + :type gates_to_ignore: list of str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'gates_to_ignore': {'key': 'gatesToIgnore', 'type': '[str]'} + } + + def __init__(self, comment=None, gates_to_ignore=None): + super(GateUpdateMetadata, self).__init__() + self.comment = comment + self.gates_to_ignore = gates_to_ignore + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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 IgnoredGate(Model): + """IgnoredGate. + + :param last_modified_on: Gets the date on which gate is last ignored. + :type last_modified_on: datetime + :param name: Name of gate ignored. + :type name: str + """ + + _attribute_map = { + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, last_modified_on=None, name=None): + super(IgnoredGate, self).__init__() + self.last_modified_on = last_modified_on + self.name = name + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class Issue(Model): + """Issue. + + :param data: + :type data: dict + :param issue_type: + :type issue_type: str + :param message: + :type message: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'issue_type': {'key': 'issueType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, data=None, issue_type=None, message=None): + super(Issue, self).__init__() + self.data = data + self.issue_type = issue_type + self.message = message + + +class MailMessage(Model): + """MailMessage. + + :param body: + :type body: str + :param cC: + :type cC: :class:`EmailRecipients ` + :param in_reply_to: + :type in_reply_to: str + :param message_id: + :type message_id: str + :param reply_by: + :type reply_by: datetime + :param reply_to: + :type reply_to: :class:`EmailRecipients ` + :param sections: + :type sections: list of MailSectionType + :param sender_type: + :type sender_type: object + :param subject: + :type subject: str + :param to: + :type to: :class:`EmailRecipients ` + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, + 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, + 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, + 'sections': {'key': 'sections', 'type': '[object]'}, + 'sender_type': {'key': 'senderType', 'type': 'object'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'to': {'key': 'to', 'type': 'EmailRecipients'} + } + + def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): + super(MailMessage, self).__init__() + self.body = body + self.cC = cC + self.in_reply_to = in_reply_to + self.message_id = message_id + self.reply_by = reply_by + self.reply_to = reply_to + self.sections = sections + self.sender_type = sender_type + self.subject = subject + self.to = to + + +class ManualIntervention(Model): + """ManualIntervention. + + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param id: Gets the unique identifier for manual intervention. + :type id: int + :param instructions: Gets or sets instructions for approval. + :type instructions: str + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param release: Gets releaseReference for manual intervention. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference for manual intervention. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference for manual intervention. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param status: Gets or sets the status of the manual intervention. + :type status: object + :param task_instance_id: Get task instance identifier. + :type task_instance_id: str + :param url: Gets url to access the manual intervention. + :type url: str + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'instructions': {'key': 'instructions', 'type': 'str'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): + super(ManualIntervention, self).__init__() + self.approver = approver + self.comments = comments + self.created_on = created_on + self.id = id + self.instructions = instructions + self.modified_on = modified_on + self.name = name + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.status = status + self.task_instance_id = task_instance_id + self.url = url + + +class ManualInterventionUpdateMetadata(Model): + """ManualInterventionUpdateMetadata. + + :param comment: Sets the comment for manual intervention update. + :type comment: str + :param status: Sets the status of the manual intervention. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, status=None): + super(ManualInterventionUpdateMetadata, self).__init__() + self.comment = comment + self.status = status + + +class Metric(Model): + """Metric. + + :param name: + :type name: str + :param value: + :type value: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, name=None, value=None): + super(Metric, self).__init__() + self.name = name + self.value = value + + +class PipelineProcess(Model): + """PipelineProcess. + + :param type: + :type type: object + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, type=None): + super(PipelineProcess, self).__init__() + self.type = type + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions + + +class ProjectReference(Model): + """ProjectReference. + + :param id: Gets the unique identifier of this field. + :type id: str + :param name: Gets name of project. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class QueuedReleaseData(Model): + """QueuedReleaseData. + + :param project_id: + :type project_id: str + :param queue_position: + :type queue_position: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, project_id=None, queue_position=None, release_id=None): + super(QueuedReleaseData, self).__init__() + self.project_id = project_id + self.queue_position = queue_position + self.release_id = release_id + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Release(Model): + """Release. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_snapshot_revision: Gets revision number of definition snapshot. + :type definition_snapshot_revision: int + :param description: Gets or sets description of release. + :type description: str + :param environments: Gets list of environments. + :type environments: list of :class:`ReleaseEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param keep_forever: Whether to exclude the release from retention policies. + :type keep_forever: bool + :param logs_container_url: Gets logs container url. + :type logs_container_url: str + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param pool_name: Gets pool name. + :type pool_name: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param properties: + :type properties: :class:`object ` + :param reason: Gets reason of release. + :type reason: object + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_name_format: Gets release name format. + :type release_name_format: str + :param status: Gets status. + :type status: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggering_artifact_alias: + :type triggering_artifact_alias: str + :param url: + :type url: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_name': {'key': 'poolName', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggering_artifact_alias': {'key': 'triggeringArtifactAlias', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_name_format=None, status=None, tags=None, triggering_artifact_alias=None, url=None, variable_groups=None, variables=None): + super(Release, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.definition_snapshot_revision = definition_snapshot_revision + self.description = description + self.environments = environments + self.id = id + self.keep_forever = keep_forever + self.logs_container_url = logs_container_url + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.pool_name = pool_name + self.project_reference = project_reference + self.properties = properties + self.reason = reason + self.release_definition = release_definition + self.release_name_format = release_name_format + self.status = status + self.tags = tags + self.triggering_artifact_alias = triggering_artifact_alias + self.url = url + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseApproval(Model): + """ReleaseApproval. + + :param approval_type: Gets or sets the type of approval. + :type approval_type: object + :param approved_by: Gets the identity who approved. + :type approved_by: :class:`IdentityRef ` + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. + :type attempt: int + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param history: Gets history which specifies all approvals associated with this approval. + :type history: list of :class:`ReleaseApprovalHistory ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_automated: Gets or sets as approval is automated or not. + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. + :type rank: int + :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param revision: Gets the revision number. + :type revision: int + :param status: Gets or sets the status of the approval. + :type status: object + :param trial_number: + :type trial_number: int + :param url: Gets url to access the approval. + :type url: str + """ + + _attribute_map = { + 'approval_type': {'key': 'approvalType', 'type': 'object'}, + 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'}, + 'trial_number': {'key': 'trialNumber', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): + super(ReleaseApproval, self).__init__() + self.approval_type = approval_type + self.approved_by = approved_by + self.approver = approver + self.attempt = attempt + self.comments = comments + self.created_on = created_on + self.history = history + self.id = id + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.modified_on = modified_on + self.rank = rank + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.revision = revision + self.status = status + self.trial_number = trial_number + self.url = url + + +class ReleaseApprovalHistory(Model): + """ReleaseApprovalHistory. + + :param approver: + :type approver: :class:`IdentityRef ` + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param comments: + :type comments: str + :param created_on: + :type created_on: datetime + :param modified_on: + :type modified_on: datetime + :param revision: + :type revision: int + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): + super(ReleaseApprovalHistory, self).__init__() + self.approver = approver + self.changed_by = changed_by + self.comments = comments + self.created_on = created_on + self.modified_on = modified_on + self.revision = revision + + +class ReleaseCondition(Condition): + """ReleaseCondition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + :param result: + :type result: bool + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'bool'} + } + + def __init__(self, condition_type=None, name=None, value=None, result=None): + super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) + self.result = result + + +class ReleaseDefinitionApprovals(Model): + """ReleaseDefinitionApprovals. + + :param approval_options: + :type approval_options: :class:`ApprovalOptions ` + :param approvals: + :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` + """ + + _attribute_map = { + 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, + 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} + } + + def __init__(self, approval_options=None, approvals=None): + super(ReleaseDefinitionApprovals, self).__init__() + self.approval_options = approval_options + self.approvals = approvals + + +class ReleaseDefinitionEnvironment(Model): + """ReleaseDefinitionEnvironment. + + :param badge_url: + :type badge_url: str + :param conditions: + :type conditions: list of :class:`Condition ` + :param current_release: + :type current_release: :class:`ReleaseShallowReference ` + :param demands: + :type demands: list of :class:`object ` + :param deploy_phases: + :type deploy_phases: list of :class:`object ` + :param deploy_step: + :type deploy_step: :class:`ReleaseDefinitionDeployStep ` + :param environment_options: + :type environment_options: :class:`EnvironmentOptions ` + :param environment_triggers: + :type environment_triggers: list of :class:`EnvironmentTrigger ` + :param execution_policy: + :type execution_policy: :class:`EnvironmentExecutionPolicy ` + :param id: + :type id: int + :param name: + :type name: str + :param owner: + :type owner: :class:`IdentityRef ` + :param post_deploy_approvals: + :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param post_deployment_gates: + :type post_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param pre_deploy_approvals: + :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param pre_deployment_gates: + :type pre_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: + :type process_parameters: :class:`ProcessParameters ` + :param properties: + :type properties: :class:`object ` + :param queue_id: + :type queue_id: int + :param rank: + :type rank: int + :param retention_policy: + :type retention_policy: :class:`EnvironmentRetentionPolicy ` + :param run_options: + :type run_options: dict + :param schedules: + :type schedules: list of :class:`ReleaseSchedule ` + :param variable_groups: + :type variable_groups: list of int + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'badge_url': {'key': 'badgeUrl', 'type': 'str'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'current_release': {'key': 'currentRelease', 'type': 'ReleaseShallowReference'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, + 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'environment_triggers': {'key': 'environmentTriggers', 'type': '[EnvironmentTrigger]'}, + 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'run_options': {'key': 'runOptions', 'type': '{str}'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, badge_url=None, conditions=None, current_release=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, environment_triggers=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): + super(ReleaseDefinitionEnvironment, self).__init__() + self.badge_url = badge_url + self.conditions = conditions + self.current_release = current_release + self.demands = demands + self.deploy_phases = deploy_phases + self.deploy_step = deploy_step + self.environment_options = environment_options + self.environment_triggers = environment_triggers + self.execution_policy = execution_policy + self.id = id + self.name = name + self.owner = owner + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates = post_deployment_gates + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates = pre_deployment_gates + self.process_parameters = process_parameters + self.properties = properties + self.queue_id = queue_id + self.rank = rank + self.retention_policy = retention_policy + self.run_options = run_options + self.schedules = schedules + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseDefinitionEnvironmentStep(Model): + """ReleaseDefinitionEnvironmentStep. + + :param id: + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(ReleaseDefinitionEnvironmentStep, self).__init__() + self.id = id + + +class ReleaseDefinitionEnvironmentSummary(Model): + """ReleaseDefinitionEnvironmentSummary. + + :param id: + :type id: int + :param last_releases: + :type last_releases: list of :class:`ReleaseShallowReference ` + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, last_releases=None, name=None): + super(ReleaseDefinitionEnvironmentSummary, self).__init__() + self.id = id + self.last_releases = last_releases + self.name = name + + +class ReleaseDefinitionEnvironmentTemplate(Model): + """ReleaseDefinitionEnvironmentTemplate. + + :param can_delete: + :type can_delete: bool + :param category: + :type category: str + :param description: + :type description: str + :param environment: + :type environment: :class:`ReleaseDefinitionEnvironment ` + :param icon_task_id: + :type icon_task_id: str + :param icon_uri: + :type icon_uri: str + :param id: + :type id: str + :param is_deleted: + :type is_deleted: bool + :param name: + :type name: str + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, is_deleted=None, name=None): + super(ReleaseDefinitionEnvironmentTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.environment = environment + self.icon_task_id = icon_task_id + self.icon_uri = icon_uri + self.id = id + self.is_deleted = is_deleted + self.name = name + + +class ReleaseDefinitionGate(Model): + """ReleaseDefinitionGate. + + :param tasks: + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, tasks=None): + super(ReleaseDefinitionGate, self).__init__() + self.tasks = tasks + + +class ReleaseDefinitionGatesOptions(Model): + """ReleaseDefinitionGatesOptions. + + :param is_enabled: + :type is_enabled: bool + :param minimum_success_duration: + :type minimum_success_duration: int + :param sampling_interval: + :type sampling_interval: int + :param stabilization_time: + :type stabilization_time: int + :param timeout: + :type timeout: int + """ + + _attribute_map = { + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'minimum_success_duration': {'key': 'minimumSuccessDuration', 'type': 'int'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'stabilization_time': {'key': 'stabilizationTime', 'type': 'int'}, + 'timeout': {'key': 'timeout', 'type': 'int'} + } + + def __init__(self, is_enabled=None, minimum_success_duration=None, sampling_interval=None, stabilization_time=None, timeout=None): + super(ReleaseDefinitionGatesOptions, self).__init__() + self.is_enabled = is_enabled + self.minimum_success_duration = minimum_success_duration + self.sampling_interval = sampling_interval + self.stabilization_time = stabilization_time + self.timeout = timeout + + +class ReleaseDefinitionGatesStep(Model): + """ReleaseDefinitionGatesStep. + + :param gates: + :type gates: list of :class:`ReleaseDefinitionGate ` + :param gates_options: + :type gates_options: :class:`ReleaseDefinitionGatesOptions ` + :param id: + :type id: int + """ + + _attribute_map = { + 'gates': {'key': 'gates', 'type': '[ReleaseDefinitionGate]'}, + 'gates_options': {'key': 'gatesOptions', 'type': 'ReleaseDefinitionGatesOptions'}, + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, gates=None, gates_options=None, id=None): + super(ReleaseDefinitionGatesStep, self).__init__() + self.gates = gates + self.gates_options = gates_options + self.id = id + + +class ReleaseDefinitionRevision(Model): + """ReleaseDefinitionRevision. + + :param api_version: Gets api-version for revision object. + :type api_version: str + :param changed_by: Gets the identity who did change. + :type changed_by: :class:`IdentityRef ` + :param changed_date: Gets date on which it got changed. + :type changed_date: datetime + :param change_type: Gets type of change. + :type change_type: object + :param comment: Gets comments for revision. + :type comment: str + :param definition_id: Get id of the definition. + :type definition_id: int + :param definition_url: Gets definition url. + :type definition_url: str + :param revision: Get revision number of the definition. + :type revision: int + """ + + _attribute_map = { + 'api_version': {'key': 'apiVersion', 'type': 'str'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): + super(ReleaseDefinitionRevision, self).__init__() + self.api_version = api_version + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_id = definition_id + self.definition_url = definition_url + self.revision = revision + + +class ReleaseDefinitionShallowReference(Model): + """ReleaseDefinitionShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param path: Gets or sets the path of the release definition. + :type path: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param url: Gets the REST API url to access the release definition. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, path=None, project_reference=None, url=None): + super(ReleaseDefinitionShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.path = path + self.project_reference = project_reference + self.url = url + + +class ReleaseDefinitionSummary(Model): + """ReleaseDefinitionSummary. + + :param environments: + :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` + :param release_definition: + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param releases: + :type releases: list of :class:`Release ` + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'releases': {'key': 'releases', 'type': '[Release]'} + } + + def __init__(self, environments=None, release_definition=None, releases=None): + super(ReleaseDefinitionSummary, self).__init__() + self.environments = environments + self.release_definition = release_definition + self.releases = releases + + +class ReleaseDefinitionUndeleteParameter(Model): + """ReleaseDefinitionUndeleteParameter. + + :param comment: Gets or sets comment. + :type comment: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'} + } + + def __init__(self, comment=None): + super(ReleaseDefinitionUndeleteParameter, self).__init__() + self.comment = comment + + +class ReleaseDeployPhase(Model): + """ReleaseDeployPhase. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param error_log: + :type error_log: str + :param id: + :type id: int + :param manual_interventions: + :type manual_interventions: list of :class:`ManualIntervention ` + :param name: + :type name: str + :param phase_id: + :type phase_id: str + :param phase_type: + :type phase_type: object + :param rank: + :type rank: int + :param run_plan_id: + :type run_plan_id: str + :param started_on: Phase start time + :type started_on: datetime + :param status: + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'phase_id': {'key': 'phaseId', 'type': 'str'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, name=None, phase_id=None, phase_type=None, rank=None, run_plan_id=None, started_on=None, status=None): + super(ReleaseDeployPhase, self).__init__() + self.deployment_jobs = deployment_jobs + self.error_log = error_log + self.id = id + self.manual_interventions = manual_interventions + self.name = name + self.phase_id = phase_id + self.phase_type = phase_type + self.rank = rank + self.run_plan_id = run_plan_id + self.started_on = started_on + self.status = status + + +class ReleaseEnvironment(Model): + """ReleaseEnvironment. + + :param conditions: Gets list of conditions. + :type conditions: list of :class:`ReleaseCondition ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_environment_id: Gets definition environment id. + :type definition_environment_id: int + :param demands: Gets demands. + :type demands: list of :class:`object ` + :param deploy_phases_snapshot: Gets list of deploy phases snapshot. + :type deploy_phases_snapshot: list of :class:`object ` + :param deploy_steps: Gets deploy steps. + :type deploy_steps: list of :class:`DeploymentAttempt ` + :param environment_options: Gets environment options. + :type environment_options: :class:`EnvironmentOptions ` + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param next_scheduled_utc_time: Gets next scheduled UTC time. + :type next_scheduled_utc_time: datetime + :param owner: Gets the identity who is owner for release environment. + :type owner: :class:`IdentityRef ` + :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. + :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param post_deploy_approvals: Gets list of post deploy approvals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param post_deployment_gates_snapshot: + :type post_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. + :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: Gets list of pre deploy approvals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deployment_gates_snapshot: + :type pre_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: Gets process parameters. + :type process_parameters: :class:`ProcessParameters ` + :param queue_id: Gets queue id. + :type queue_id: int + :param rank: Gets rank. + :type rank: int + :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_created_by: Gets the identity who created release. + :type release_created_by: :class:`IdentityRef ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_description: Gets release description. + :type release_description: str + :param release_id: Gets release id. + :type release_id: int + :param scheduled_deployment_time: Gets schedule deployment time of release environment. + :type scheduled_deployment_time: datetime + :param schedules: Gets list of schedules. + :type schedules: list of :class:`ReleaseSchedule ` + :param status: Gets environment status. + :type status: object + :param time_to_deploy: Gets time to deploy. + :type time_to_deploy: float + :param trigger_reason: Gets trigger reason. + :type trigger_reason: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets the dictionary of variables. + :type variables: dict + :param workflow_tasks: Gets list of workflow tasks. + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, + 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'post_deployment_gates_snapshot': {'key': 'postDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deployment_gates_snapshot': {'key': 'preDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_description': {'key': 'releaseDescription', 'type': 'str'}, + 'release_id': {'key': 'releaseId', 'type': 'int'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'status': {'key': 'status', 'type': 'object'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, + 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, post_deployment_gates_snapshot=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, pre_deployment_gates_snapshot=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variable_groups=None, variables=None, workflow_tasks=None): + super(ReleaseEnvironment, self).__init__() + self.conditions = conditions + self.created_on = created_on + self.definition_environment_id = definition_environment_id + self.demands = demands + self.deploy_phases_snapshot = deploy_phases_snapshot + self.deploy_steps = deploy_steps + self.environment_options = environment_options + self.id = id + self.modified_on = modified_on + self.name = name + self.next_scheduled_utc_time = next_scheduled_utc_time + self.owner = owner + self.post_approvals_snapshot = post_approvals_snapshot + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates_snapshot = post_deployment_gates_snapshot + self.pre_approvals_snapshot = pre_approvals_snapshot + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates_snapshot = pre_deployment_gates_snapshot + self.process_parameters = process_parameters + self.queue_id = queue_id + self.rank = rank + self.release = release + self.release_created_by = release_created_by + self.release_definition = release_definition + self.release_description = release_description + self.release_id = release_id + self.scheduled_deployment_time = scheduled_deployment_time + self.schedules = schedules + self.status = status + self.time_to_deploy = time_to_deploy + self.trigger_reason = trigger_reason + self.variable_groups = variable_groups + self.variables = variables + self.workflow_tasks = workflow_tasks + + +class ReleaseEnvironmentShallowReference(Model): + """ReleaseEnvironmentShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release environment. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release environment. + :type id: int + :param name: Gets or sets the name of the release environment. + :type name: str + :param url: Gets the REST API url to access the release environment. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseEnvironmentShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseEnvironmentUpdateMetadata(Model): + """ReleaseEnvironmentUpdateMetadata. + + :param comment: Gets or sets comment. + :type comment: str + :param scheduled_deployment_time: Gets or sets scheduled deployment time. + :type scheduled_deployment_time: datetime + :param status: Gets or sets status of environment. + :type status: object + :param variables: Sets list of environment variables to be overridden at deployment time. + :type variables: dict + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, comment=None, scheduled_deployment_time=None, status=None, variables=None): + super(ReleaseEnvironmentUpdateMetadata, self).__init__() + self.comment = comment + self.scheduled_deployment_time = scheduled_deployment_time + self.status = status + self.variables = variables + + +class ReleaseGates(Model): + """ReleaseGates. + + :param deployment_jobs: + :type deployment_jobs: list of :class:`DeploymentJob ` + :param id: + :type id: int + :param ignored_gates: + :type ignored_gates: list of :class:`IgnoredGate ` + :param last_modified_on: + :type last_modified_on: datetime + :param run_plan_id: + :type run_plan_id: str + :param stabilization_completed_on: + :type stabilization_completed_on: datetime + :param started_on: + :type started_on: datetime + :param status: + :type status: object + :param succeeding_since: + :type succeeding_since: datetime + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'ignored_gates': {'key': 'ignoredGates', 'type': '[IgnoredGate]'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'stabilization_completed_on': {'key': 'stabilizationCompletedOn', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'succeeding_since': {'key': 'succeedingSince', 'type': 'iso-8601'} + } + + def __init__(self, deployment_jobs=None, id=None, ignored_gates=None, last_modified_on=None, run_plan_id=None, stabilization_completed_on=None, started_on=None, status=None, succeeding_since=None): + super(ReleaseGates, self).__init__() + self.deployment_jobs = deployment_jobs + self.id = id + self.ignored_gates = ignored_gates + self.last_modified_on = last_modified_on + self.run_plan_id = run_plan_id + self.stabilization_completed_on = stabilization_completed_on + self.started_on = started_on + self.status = status + self.succeeding_since = succeeding_since + + +class ReleaseReference(Model): + """ReleaseReference. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param created_by: Gets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_by: Gets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param name: Gets name of release. + :type name: str + :param reason: Gets reason for release. + :type reason: object + :param release_definition: Gets release definition shallow reference. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param url: + :type url: str + :param web_access_uri: + :type web_access_uri: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} + } + + def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): + super(ReleaseReference, self).__init__() + self._links = _links + self.artifacts = artifacts + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.name = name + self.reason = reason + self.release_definition = release_definition + self.url = url + self.web_access_uri = web_access_uri + + +class ReleaseRevision(Model): + """ReleaseRevision. + + :param changed_by: + :type changed_by: :class:`IdentityRef ` + :param changed_date: + :type changed_date: datetime + :param change_details: + :type change_details: str + :param change_type: + :type change_type: str + :param comment: + :type comment: str + :param definition_snapshot_revision: + :type definition_snapshot_revision: int + :param release_id: + :type release_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_details': {'key': 'changeDetails', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): + super(ReleaseRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_details = change_details + self.change_type = change_type + self.comment = comment + self.definition_snapshot_revision = definition_snapshot_revision + self.release_id = release_id + + +class ReleaseSchedule(Model): + """ReleaseSchedule. + + :param days_to_release: Days of the week to release + :type days_to_release: object + :param job_id: Team Foundation Job Definition Job Id + :type job_id: str + :param start_hours: Local time zone hour to start + :type start_hours: int + :param start_minutes: Local time zone minute to start + :type start_minutes: int + :param time_zone_id: Time zone Id of release schedule, such as 'UTC' + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_release=None, job_id=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(ReleaseSchedule, self).__init__() + self.days_to_release = days_to_release + self.job_id = job_id + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id + + +class ReleaseSettings(Model): + """ReleaseSettings. + + :param retention_settings: + :type retention_settings: :class:`RetentionSettings ` + """ + + _attribute_map = { + 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} + } + + def __init__(self, retention_settings=None): + super(ReleaseSettings, self).__init__() + self.retention_settings = retention_settings + + +class ReleaseShallowReference(Model): + """ReleaseShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release. + :type id: int + :param name: Gets or sets the name of the release. + :type name: str + :param url: Gets the REST API url to access the release. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseStartEnvironmentMetadata(Model): + """ReleaseStartEnvironmentMetadata. + + :param definition_environment_id: Sets release definition environment id. + :type definition_environment_id: int + :param variables: Sets list of environments variables to be overridden at deployment time. + :type variables: dict + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, definition_environment_id=None, variables=None): + super(ReleaseStartEnvironmentMetadata, self).__init__() + self.definition_environment_id = definition_environment_id + self.variables = variables + + +class ReleaseStartMetadata(Model): + """ReleaseStartMetadata. + + :param artifacts: Sets list of artifact to create a release. + :type artifacts: list of :class:`ArtifactMetadata ` + :param definition_id: Sets definition Id to create a release. + :type definition_id: int + :param description: Sets description to create a release. + :type description: str + :param environments_metadata: Sets list of environments meta data. + :type environments_metadata: list of :class:`ReleaseStartEnvironmentMetadata ` + :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. + :type is_draft: bool + :param manual_environments: Sets list of environments to manual as condition. + :type manual_environments: list of str + :param properties: + :type properties: :class:`object ` + :param reason: Sets reason to create a release. + :type reason: object + :param variables: Sets list of release variables to be overridden at deployment time. + :type variables: dict + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments_metadata': {'key': 'environmentsMetadata', 'type': '[ReleaseStartEnvironmentMetadata]'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, artifacts=None, definition_id=None, description=None, environments_metadata=None, is_draft=None, manual_environments=None, properties=None, reason=None, variables=None): + super(ReleaseStartMetadata, self).__init__() + self.artifacts = artifacts + self.definition_id = definition_id + self.description = description + self.environments_metadata = environments_metadata + self.is_draft = is_draft + self.manual_environments = manual_environments + self.properties = properties + self.reason = reason + self.variables = variables + + +class ReleaseTask(Model): + """ReleaseTask. + + :param agent_name: + :type agent_name: str + :param date_ended: + :type date_ended: datetime + :param date_started: + :type date_started: datetime + :param finish_time: + :type finish_time: datetime + :param id: + :type id: int + :param issues: + :type issues: list of :class:`Issue ` + :param line_count: + :type line_count: long + :param log_url: + :type log_url: str + :param name: + :type name: str + :param percent_complete: + :type percent_complete: int + :param rank: + :type rank: int + :param result_code: + :type result_code: str + :param start_time: + :type start_time: datetime + :param status: + :type status: object + :param task: + :type task: :class:`WorkflowTaskReference ` + :param timeline_record_id: + :type timeline_record_id: str + """ + + _attribute_map = { + 'agent_name': {'key': 'agentName', 'type': 'str'}, + 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, + 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'log_url': {'key': 'logUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, + 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} + } + + def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, result_code=None, start_time=None, status=None, task=None, timeline_record_id=None): + super(ReleaseTask, self).__init__() + self.agent_name = agent_name + self.date_ended = date_ended + self.date_started = date_started + self.finish_time = finish_time + self.id = id + self.issues = issues + self.line_count = line_count + self.log_url = log_url + self.name = name + self.percent_complete = percent_complete + self.rank = rank + self.result_code = result_code + self.start_time = start_time + self.status = status + self.task = task + self.timeline_record_id = timeline_record_id + + +class ReleaseTaskAttachment(Model): + """ReleaseTaskAttachment. + + :param _links: + :type _links: :class:`ReferenceLinks ` + :param created_on: + :type created_on: datetime + :param modified_by: + :type modified_by: :class:`IdentityRef ` + :param modified_on: + :type modified_on: datetime + :param name: + :type name: str + :param record_id: + :type record_id: str + :param timeline_id: + :type timeline_id: str + :param type: + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, modified_by=None, modified_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(ReleaseTaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type + + +class ReleaseUpdateMetadata(Model): + """ReleaseUpdateMetadata. + + :param comment: Sets comment for release. + :type comment: str + :param keep_forever: Set 'true' to exclude the release from retention policies. + :type keep_forever: bool + :param manual_environments: Sets list of manual environments. + :type manual_environments: list of str + :param status: Sets status of the release. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, keep_forever=None, manual_environments=None, status=None): + super(ReleaseUpdateMetadata, self).__init__() + self.comment = comment + self.keep_forever = keep_forever + self.manual_environments = manual_environments + self.status = status + + +class ReleaseWorkItemRef(Model): + """ReleaseWorkItemRef. + + :param assignee: + :type assignee: str + :param id: + :type id: str + :param state: + :type state: str + :param title: + :type title: str + :param type: + :type type: str + :param url: + :type url: str + """ + + _attribute_map = { + 'assignee': {'key': 'assignee', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): + super(ReleaseWorkItemRef, self).__init__() + self.assignee = assignee + self.id = id + self.state = state + self.title = title + self.type = type + self.url = url + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param days_to_keep: + :type days_to_keep: int + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} + } + + def __init__(self, days_to_keep=None): + super(RetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + + +class RetentionSettings(Model): + """RetentionSettings. + + :param days_to_keep_deleted_releases: + :type days_to_keep_deleted_releases: int + :param default_environment_retention_policy: + :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + :param maximum_environment_retention_policy: + :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, + 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): + super(RetentionSettings, self).__init__() + self.days_to_keep_deleted_releases = days_to_keep_deleted_releases + self.default_environment_retention_policy = default_environment_retention_policy + self.maximum_environment_retention_policy = maximum_environment_retention_policy + + +class SourcePullRequestVersion(Model): + """SourcePullRequestVersion. + + :param pull_request_id: Pull Request Id for which the release will publish status + :type pull_request_id: str + :param pull_request_merged_at: + :type pull_request_merged_at: datetime + :param source_branch_commit_id: Source branch commit Id of the Pull Request for which the release will publish status + :type source_branch_commit_id: str + """ + + _attribute_map = { + 'pull_request_id': {'key': 'pullRequestId', 'type': 'str'}, + 'pull_request_merged_at': {'key': 'pullRequestMergedAt', 'type': 'iso-8601'}, + 'source_branch_commit_id': {'key': 'sourceBranchCommitId', 'type': 'str'} + } + + def __init__(self, pull_request_id=None, pull_request_merged_at=None, source_branch_commit_id=None): + super(SourcePullRequestVersion, self).__init__() + self.pull_request_id = pull_request_id + self.pull_request_merged_at = pull_request_merged_at + self.source_branch_commit_id = source_branch_commit_id + + +class SummaryMailSection(Model): + """SummaryMailSection. + + :param html_content: + :type html_content: str + :param rank: + :type rank: int + :param section_type: + :type section_type: object + :param title: + :type title: str + """ + + _attribute_map = { + 'html_content': {'key': 'htmlContent', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'section_type': {'key': 'sectionType', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, html_content=None, rank=None, section_type=None, title=None): + super(SummaryMailSection, self).__init__() + self.html_content = html_content + self.rank = rank + self.section_type = section_type + self.title = title + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param is_shared: Denotes if a variable group is shared with other project or not. + :type is_shared: bool + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets name. + :type name: str + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type. + :type type: str + :param variables: + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, is_shared=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.is_shared = is_shared + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: + :type is_secret: bool + :param value: + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class WorkflowTask(Model): + """WorkflowTask. + + :param always_run: + :type always_run: bool + :param condition: + :type condition: str + :param continue_on_error: + :type continue_on_error: bool + :param definition_type: + :type definition_type: str + :param enabled: + :type enabled: bool + :param environment: + :type environment: dict + :param inputs: + :type inputs: dict + :param name: + :type name: str + :param override_inputs: + :type override_inputs: dict + :param ref_name: + :type ref_name: str + :param task_id: + :type task_id: str + :param timeout_in_minutes: + :type timeout_in_minutes: int + :param version: + :type version: str + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'environment': {'key': 'environment', 'type': '{str}'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, environment=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): + super(WorkflowTask, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.definition_type = definition_type + self.enabled = enabled + self.environment = environment + self.inputs = inputs + self.name = name + self.override_inputs = override_inputs + self.ref_name = ref_name + self.task_id = task_id + self.timeout_in_minutes = timeout_in_minutes + self.version = version + + +class WorkflowTaskReference(Model): + """WorkflowTaskReference. + + :param id: + :type id: str + :param name: + :type name: str + :param version: + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(WorkflowTaskReference, self).__init__() + self.id = id + self.name = name + self.version = version + + +class ReleaseDefinition(ReleaseDefinitionShallowReference): + """ReleaseDefinition. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param path: Gets or sets the path of the release definition. + :type path: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param url: Gets the REST API url to access the release definition. + :type url: str + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets the description. + :type description: str + :param environments: Gets or sets the list of environments. + :type environments: list of :class:`ReleaseDefinitionEnvironment ` + :param is_deleted: Whether release definition is deleted. + :type is_deleted: bool + :param last_release: Gets the reference of last release. + :type last_release: :class:`ReleaseReference ` + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param pipeline_process: Gets or sets pipeline process. + :type pipeline_process: :class:`PipelineProcess ` + :param properties: Gets or sets properties. + :type properties: :class:`object ` + :param release_name_format: Gets or sets the release name format. + :type release_name_format: str + :param retention_policy: + :type retention_policy: :class:`RetentionPolicy ` + :param revision: Gets the revision number. + :type revision: int + :param source: Gets or sets source of release definition. + :type source: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggers: Gets or sets the list of triggers. + :type triggers: list of :class:`object ` + :param variable_groups: Gets or sets the list of variable groups. + :type variable_groups: list of int + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'pipeline_process': {'key': 'pipelineProcess', 'type': 'PipelineProcess'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, id=None, name=None, path=None, project_reference=None, url=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, pipeline_process=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, variable_groups=None, variables=None): + super(ReleaseDefinition, self).__init__(_links=_links, id=id, name=name, path=path, project_reference=project_reference, url=url) + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.description = description + self.environments = environments + self.is_deleted = is_deleted + self.last_release = last_release + self.modified_by = modified_by + self.modified_on = modified_on + self.pipeline_process = pipeline_process + self.properties = properties + self.release_name_format = release_name_format + self.retention_policy = retention_policy + self.revision = revision + self.source = source + self.tags = tags + self.triggers = triggers + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionApprovalStep. + + :param id: + :type id: int + :param approver: + :type approver: :class:`IdentityRef ` + :param is_automated: + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param rank: + :type rank: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): + super(ReleaseDefinitionApprovalStep, self).__init__(id=id) + self.approver = approver + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.rank = rank + + +class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionDeployStep. + + :param id: + :type id: int + :param tasks: The list of steps for this definition. + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, id=None, tasks=None): + super(ReleaseDefinitionDeployStep, self).__init__(id=id) + self.tasks = tasks + + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTriggerConfiguration', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'EnvironmentTrigger', + 'FavoriteItem', + 'Folder', + 'GateUpdateMetadata', + 'GraphSubjectBase', + 'IdentityRef', + 'IgnoredGate', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'PipelineProcess', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartEnvironmentMetadata', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTaskAttachment', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SourcePullRequestVersion', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', +] diff --git a/azure-devops/azure/devops/v5_0/release/release_client.py b/azure-devops/azure/devops/v5_0/release/release_client.py new file mode 100644 index 00000000..5343caf4 --- /dev/null +++ b/azure-devops/azure/devops/v5_0/release/release_client.py @@ -0,0 +1,784 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ReleaseClient(Client): + """Release + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' + + def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): + """GetApprovals. + Get a list of approvals + :param str project: Project ID or project name + :param str assigned_to_filter: Approvals assigned to this user. + :param str status_filter: Approvals with this status. Default is 'pending'. + :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. + :param str type_filter: Approval with this type. + :param int top: Number of approvals to get. Default is 50. + :param int continuation_token: Gets the approvals after the continuation token provided. + :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. + :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if assigned_to_filter is not None: + query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if release_ids_filter is not None: + release_ids_filter = ",".join(map(str, release_ids_filter)) + query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') + if type_filter is not None: + query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if include_my_group_approvals is not None: + query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') + response = self._send(http_method='GET', + location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) + + def update_release_approval(self, approval, project, approval_id): + """UpdateReleaseApproval. + Update status of an approval + :param :class:` ` approval: ReleaseApproval object having status, approver and comments. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + content = self._serialize.body(approval, 'ReleaseApproval') + response = self._send(http_method='PATCH', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ReleaseApproval', response) + + def get_release_task_attachment_content(self, project, release_id, environment_id, attempt_id, plan_id, timeline_id, record_id, type, name, **kwargs): + """GetReleaseTaskAttachmentContent. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :param str plan_id: + :param str timeline_id: + :param str record_id: + :param str type: + :param str name: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='60b86efb-7b8c-4853-8f9f-aa142b77b479', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_release_task_attachments(self, project, release_id, environment_id, attempt_id, plan_id, type): + """GetReleaseTaskAttachments. + [Preview API] + :param str project: Project ID or project name + :param int release_id: + :param int environment_id: + :param int attempt_id: + :param str plan_id: + :param str type: + :rtype: [ReleaseTaskAttachment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='a4d06688-0dfa-4895-82a5-f43ec9452306', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseTaskAttachment]', self._unwrap_collection(response)) + + def create_release_definition(self, release_definition, project): + """CreateReleaseDefinition. + Create a release definition + :param :class:` ` release_definition: release definition object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='POST', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def delete_release_definition(self, project, definition_id, comment=None, force_delete=None): + """DeleteReleaseDefinition. + Delete a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param str comment: Comment for deleting a release definition. + :param bool force_delete: 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + if force_delete is not None: + query_parameters['forceDelete'] = self._serialize.query('force_delete', force_delete, 'bool') + self._send(http_method='DELETE', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + + def get_release_definition(self, project, definition_id, property_filters=None): + """GetReleaseDefinition. + Get a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definition will contain values for the specified property Ids (if they exist). If not set, properties will not be included. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinition', response) + + def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None, is_deleted=None): + """GetReleaseDefinitions. + Get a list of release definitions. + :param str project: Project ID or project name + :param str search_text: Get release definitions with names containing searchText. + :param str expand: The properties that should be expanded in the list of Release definitions. + :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param int top: Number of release definitions to get. + :param str continuation_token: Gets the release definitions after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. + :param str path: Gets the release definitions under the specified path. + :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. + :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definitions will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release Definition from results irrespective of whether it has property set or not. + :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. + :param bool is_deleted: 'true' to get release definitions that has been deleted. Default is 'false' + :rtype: [ReleaseDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if is_exact_name_match is not None: + query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if definition_id_filter is not None: + definition_id_filter = ",".join(definition_id_filter) + query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) + + def update_release_definition(self, release_definition, project): + """UpdateReleaseDefinition. + Update a release definition. + :param :class:` ` release_definition: Release definition object to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='PUT', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None, min_started_time=None, max_started_time=None, source_branch=None): + """GetDeployments. + :param str project: Project ID or project name + :param int definition_id: + :param int definition_environment_id: + :param str created_by: + :param datetime min_modified_time: + :param datetime max_modified_time: + :param str deployment_status: + :param str operation_status: + :param bool latest_attempts_only: + :param str query_order: + :param int top: + :param int continuation_token: + :param str created_for: + :param datetime min_started_time: + :param datetime max_started_time: + :param str source_branch: + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if min_modified_time is not None: + query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') + if max_modified_time is not None: + query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') + if deployment_status is not None: + query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') + if operation_status is not None: + query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') + if latest_attempts_only is not None: + query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if created_for is not None: + query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + if min_started_time is not None: + query_parameters['minStartedTime'] = self._serialize.query('min_started_time', min_started_time, 'iso-8601') + if max_started_time is not None: + query_parameters['maxStartedTime'] = self._serialize.query('max_started_time', max_started_time, 'iso-8601') + if source_branch is not None: + query_parameters['sourceBranch'] = self._serialize.query('source_branch', source_branch, 'str') + response = self._send(http_method='GET', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) + + def update_release_environment(self, environment_update_data, project, release_id, environment_id): + """UpdateReleaseEnvironment. + [Preview API] Update the status of a release environment + :param :class:` ` environment_update_data: Environment update meta data. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='5.0-preview.6', + route_values=route_values, + content=content) + return self._deserialize('ReleaseEnvironment', response) + + def update_gates(self, gate_update_metadata, project, gate_step_id): + """UpdateGates. + [Preview API] Updates the gate for a deployment. + :param :class:` ` gate_update_metadata: Metadata to patch the Release Gates. + :param str project: Project ID or project name + :param int gate_step_id: Gate step Id. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if gate_step_id is not None: + route_values['gateStepId'] = self._serialize.url('gate_step_id', gate_step_id, 'int') + content = self._serialize.body(gate_update_metadata, 'GateUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='2666a539-2001-4f80-bcc7-0379956749d4', + version='5.0-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReleaseGates', response) + + def get_logs(self, project, release_id, **kwargs): + """GetLogs. + [Preview API] Get logs for a release Id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', + version='5.0-preview.2', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None, **kwargs): + """GetTaskLog. + [Preview API] Gets the task log of a release as a plain text file. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int release_deploy_phase_id: Release deploy phase Id. + :param int task_id: ReleaseTask Id for the log. + :param long start_line: Starting line number for logs + :param long end_line: Ending line number for logs + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', + version='5.0-preview.2', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_manual_intervention(self, project, release_id, manual_intervention_id): + """GetManualIntervention. + Get manual intervention for a given release and manual intervention id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.0', + route_values=route_values) + return self._deserialize('ManualIntervention', response) + + def get_manual_interventions(self, project, release_id): + """GetManualInterventions. + List all manual interventions for a given release. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: [ManualIntervention] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.0', + route_values=route_values) + return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) + + def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): + """UpdateManualIntervention. + Update manual intervention. + :param :class:` ` manual_intervention_update_metadata: Meta data to update manual intervention. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ManualIntervention', response) + + def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None, release_id_filter=None): + """GetReleases. + Get a list of releases + :param str project: Project ID or project name + :param int definition_id: Releases from this release definition Id. + :param int definition_environment_id: + :param str search_text: Releases with names containing searchText. + :param str created_by: Releases created by this user. + :param str status_filter: Releases that have this status. + :param int environment_status_filter: + :param datetime min_created_time: Releases that were created after this time. + :param datetime max_created_time: Releases that were created before this time. + :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. + :param int top: Number of releases to get. Default is 50. + :param int continuation_token: Gets the releases after the continuation token provided. + :param str expand: The property that should be expanded in the list of releases. + :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. + :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. + :param bool is_deleted: Gets the soft deleted releases, if true. + :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Releases will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release from results irrespective of whether it has property set or not. + :param [int] release_id_filter: A comma-delimited list of releases Ids. Only releases with these Ids will be returned. + :rtype: [Release] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if environment_status_filter is not None: + query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') + if min_created_time is not None: + query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') + if max_created_time is not None: + query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type_id is not None: + query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + if source_branch_filter is not None: + query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if release_id_filter is not None: + release_id_filter = ",".join(map(str, release_id_filter)) + query_parameters['releaseIdFilter'] = self._serialize.query('release_id_filter', release_id_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Release]', self._unwrap_collection(response)) + + def create_release(self, release_start_metadata, project): + """CreateRelease. + Create a release. + :param :class:` ` release_start_metadata: Metadata to create a release. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') + response = self._send(http_method='POST', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_release(self, project, release_id, approval_filters=None, property_filters=None, expand=None, top_gate_records=None): + """GetRelease. + Get a Release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release will contain values for the specified property Ids (if they exist). If not set, properties will not be included. + :param str expand: A property that should be expanded in the release. + :param int top_gate_records: Number of release gate records to get. Default is 5. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if approval_filters is not None: + query_parameters['approvalFilters'] = self._serialize.query('approval_filters', approval_filters, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if top_gate_records is not None: + query_parameters['$topGateRecords'] = self._serialize.query('top_gate_records', top_gate_records, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Release', response) + + def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): + """GetReleaseRevision. + Get release for a given revision number. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int definition_snapshot_revision: Definition snapshot revision number. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if definition_snapshot_revision is not None: + query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def update_release(self, release, project, release_id): + """UpdateRelease. + Update a complete release object. + :param :class:` ` release: Release object for update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release, 'Release') + response = self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def update_release_resource(self, release_update_metadata, project, release_id): + """UpdateReleaseResource. + Update few properties of a release. + :param :class:` ` release_update_metadata: Properties of release to update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_definition_revision(self, project, definition_id, revision, **kwargs): + """GetDefinitionRevision. + [Preview API] Get release definition for a given definitionId and revision + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :param int revision: Id of the revision. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + if revision is not None: + route_values['revision'] = self._serialize.url('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='5.0-preview.1', + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_release_definition_history(self, project, definition_id): + """GetReleaseDefinitionHistory. + [Preview API] Get revision history for a release definition + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :rtype: [ReleaseDefinitionRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='5.0-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/v5_1/release/__init__.py b/azure-devops/azure/devops/v5_1/release/__init__.py new file mode 100644 index 00000000..421074d5 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/release/__init__.py @@ -0,0 +1,107 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTriggerConfiguration', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'EnvironmentTrigger', + 'FavoriteItem', + 'Folder', + 'GateUpdateMetadata', + 'GraphSubjectBase', + 'IdentityRef', + 'IgnoredGate', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'PipelineProcess', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartEnvironmentMetadata', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTaskAttachment', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SourcePullRequestVersion', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', +] diff --git a/azure-devops/azure/devops/v5_1/release/models.py b/azure-devops/azure/devops/v5_1/release/models.py new file mode 100644 index 00000000..a2386348 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/release/models.py @@ -0,0 +1,3757 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class AgentArtifactDefinition(Model): + """AgentArtifactDefinition. + + :param alias: Gets or sets the artifact definition alias. + :type alias: str + :param artifact_type: Gets or sets the artifact type. + :type artifact_type: object + :param details: Gets or sets the artifact definition details. + :type details: str + :param name: Gets or sets the name of artifact definition. + :type name: str + :param version: Gets or sets the version of artifact definition. + :type version: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'artifact_type': {'key': 'artifactType', 'type': 'object'}, + 'details': {'key': 'details', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, alias=None, artifact_type=None, details=None, name=None, version=None): + super(AgentArtifactDefinition, self).__init__() + self.alias = alias + self.artifact_type = artifact_type + self.details = details + self.name = name + self.version = version + + +class ApprovalOptions(Model): + """ApprovalOptions. + + :param auto_triggered_and_previous_environment_approved_can_be_skipped: Specify whether the approval can be skipped if the same approver approved the previous stage. + :type auto_triggered_and_previous_environment_approved_can_be_skipped: bool + :param enforce_identity_revalidation: Specify whether revalidate identity of approver before completing the approval. + :type enforce_identity_revalidation: bool + :param execution_order: Approvals execution order. + :type execution_order: object + :param release_creator_can_be_approver: Specify whether the user requesting a release or deployment should allow to approver. + :type release_creator_can_be_approver: bool + :param required_approver_count: The number of approvals required to move release forward. '0' means all approvals required. + :type required_approver_count: int + :param timeout_in_minutes: Approval timeout. Approval default timeout is 30 days. Maximum allowed timeout is 365 days. '0' means default timeout i.e 30 days. + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_triggered_and_previous_environment_approved_can_be_skipped': {'key': 'autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped', 'type': 'bool'}, + 'enforce_identity_revalidation': {'key': 'enforceIdentityRevalidation', 'type': 'bool'}, + 'execution_order': {'key': 'executionOrder', 'type': 'object'}, + 'release_creator_can_be_approver': {'key': 'releaseCreatorCanBeApprover', 'type': 'bool'}, + 'required_approver_count': {'key': 'requiredApproverCount', 'type': 'int'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_triggered_and_previous_environment_approved_can_be_skipped=None, enforce_identity_revalidation=None, execution_order=None, release_creator_can_be_approver=None, required_approver_count=None, timeout_in_minutes=None): + super(ApprovalOptions, self).__init__() + self.auto_triggered_and_previous_environment_approved_can_be_skipped = auto_triggered_and_previous_environment_approved_can_be_skipped + self.enforce_identity_revalidation = enforce_identity_revalidation + self.execution_order = execution_order + self.release_creator_can_be_approver = release_creator_can_be_approver + self.required_approver_count = required_approver_count + self.timeout_in_minutes = timeout_in_minutes + + +class Artifact(Model): + """Artifact. + + :param alias: Gets or sets alias. + :type alias: str + :param definition_reference: Gets or sets definition reference. e.g. {"project":{"id":"fed755ea-49c5-4399-acea-fd5b5aa90a6c","name":"myProject"},"definition":{"id":"1","name":"mybuildDefinition"},"connection":{"id":"1","name":"myConnection"}}. + :type definition_reference: dict + :param is_primary: Indicates whether artifact is primary or not. + :type is_primary: bool + :param is_retained: Indicates whether artifact is retained by release or not. + :type is_retained: bool + :param source_id: + :type source_id: str + :param type: Gets or sets type. It can have value as 'Build', 'Jenkins', 'GitHub', 'Nuget', 'Team Build (external)', 'ExternalTFSBuild', 'Git', 'TFVC', 'ExternalTfsXamlBuild'. + :type type: str + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'definition_reference': {'key': 'definitionReference', 'type': '{ArtifactSourceReference}'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'is_retained': {'key': 'isRetained', 'type': 'bool'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, alias=None, definition_reference=None, is_primary=None, is_retained=None, source_id=None, type=None): + super(Artifact, self).__init__() + self.alias = alias + self.definition_reference = definition_reference + self.is_primary = is_primary + self.is_retained = is_retained + self.source_id = source_id + self.type = type + + +class ArtifactMetadata(Model): + """ArtifactMetadata. + + :param alias: Sets alias of artifact. + :type alias: str + :param instance_reference: Sets instance reference of artifact. e.g. for build artifact it is build number. + :type instance_reference: :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'instance_reference': {'key': 'instanceReference', 'type': 'BuildVersion'} + } + + def __init__(self, alias=None, instance_reference=None): + super(ArtifactMetadata, self).__init__() + self.alias = alias + self.instance_reference = instance_reference + + +class ArtifactSourceReference(Model): + """ArtifactSourceReference. + + :param id: ID of the artifact source. + :type id: str + :param name: Name of the artifact source. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ArtifactSourceReference, self).__init__() + self.id = id + self.name = name + + +class ArtifactTriggerConfiguration(Model): + """ArtifactTriggerConfiguration. + + :param is_trigger_supported: Gets or sets the whether trigger is supported or not. + :type is_trigger_supported: bool + :param is_trigger_supported_only_in_hosted: Gets or sets the whether trigger is supported only on hosted environment. + :type is_trigger_supported_only_in_hosted: bool + :param is_webhook_supported_at_server_level: Gets or sets the whether webhook is supported at server level. + :type is_webhook_supported_at_server_level: bool + :param payload_hash_header_name: Gets or sets the payload hash header name for the artifact trigger configuration. + :type payload_hash_header_name: str + :param resources: Gets or sets the resources for artifact trigger configuration. + :type resources: dict + :param webhook_payload_mapping: Gets or sets the webhook payload mapping for artifact trigger configuration. + :type webhook_payload_mapping: dict + """ + + _attribute_map = { + 'is_trigger_supported': {'key': 'isTriggerSupported', 'type': 'bool'}, + 'is_trigger_supported_only_in_hosted': {'key': 'isTriggerSupportedOnlyInHosted', 'type': 'bool'}, + 'is_webhook_supported_at_server_level': {'key': 'isWebhookSupportedAtServerLevel', 'type': 'bool'}, + 'payload_hash_header_name': {'key': 'payloadHashHeaderName', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '{str}'}, + 'webhook_payload_mapping': {'key': 'webhookPayloadMapping', 'type': '{str}'} + } + + def __init__(self, is_trigger_supported=None, is_trigger_supported_only_in_hosted=None, is_webhook_supported_at_server_level=None, payload_hash_header_name=None, resources=None, webhook_payload_mapping=None): + super(ArtifactTriggerConfiguration, self).__init__() + self.is_trigger_supported = is_trigger_supported + self.is_trigger_supported_only_in_hosted = is_trigger_supported_only_in_hosted + self.is_webhook_supported_at_server_level = is_webhook_supported_at_server_level + self.payload_hash_header_name = payload_hash_header_name + self.resources = resources + self.webhook_payload_mapping = webhook_payload_mapping + + +class ArtifactTypeDefinition(Model): + """ArtifactTypeDefinition. + + :param artifact_trigger_configuration: Gets or sets the artifact trigger configuration of artifact type defintion. + :type artifact_trigger_configuration: :class:`ArtifactTriggerConfiguration ` + :param artifact_type: Gets or sets the artifact type of artifact type defintion. Valid values are 'Build', 'Package', 'Source' or 'ContainerImage'. + :type artifact_type: str + :param display_name: Gets or sets the display name of artifact type defintion. + :type display_name: str + :param endpoint_type_id: Gets or sets the endpoint type id of artifact type defintion. + :type endpoint_type_id: str + :param input_descriptors: Gets or sets the input descriptors of artifact type defintion. + :type input_descriptors: list of :class:`InputDescriptor ` + :param name: Gets or sets the name of artifact type defintion. + :type name: str + :param unique_source_identifier: Gets or sets the unique source identifier of artifact type defintion. + :type unique_source_identifier: str + """ + + _attribute_map = { + 'artifact_trigger_configuration': {'key': 'artifactTriggerConfiguration', 'type': 'ArtifactTriggerConfiguration'}, + 'artifact_type': {'key': 'artifactType', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoint_type_id': {'key': 'endpointTypeId', 'type': 'str'}, + 'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'unique_source_identifier': {'key': 'uniqueSourceIdentifier', 'type': 'str'} + } + + def __init__(self, artifact_trigger_configuration=None, artifact_type=None, display_name=None, endpoint_type_id=None, input_descriptors=None, name=None, unique_source_identifier=None): + super(ArtifactTypeDefinition, self).__init__() + self.artifact_trigger_configuration = artifact_trigger_configuration + self.artifact_type = artifact_type + self.display_name = display_name + self.endpoint_type_id = endpoint_type_id + self.input_descriptors = input_descriptors + self.name = name + self.unique_source_identifier = unique_source_identifier + + +class ArtifactVersion(Model): + """ArtifactVersion. + + :param alias: Gets or sets the alias of artifact. + :type alias: str + :param default_version: Gets or sets the default version of artifact. + :type default_version: :class:`BuildVersion ` + :param error_message: Gets or sets the error message encountered during quering of versions for artifact. + :type error_message: str + :param source_id: + :type source_id: str + :param versions: Gets or sets the list of build versions of artifact. + :type versions: list of :class:`BuildVersion ` + """ + + _attribute_map = { + 'alias': {'key': 'alias', 'type': 'str'}, + 'default_version': {'key': 'defaultVersion', 'type': 'BuildVersion'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[BuildVersion]'} + } + + def __init__(self, alias=None, default_version=None, error_message=None, source_id=None, versions=None): + super(ArtifactVersion, self).__init__() + self.alias = alias + self.default_version = default_version + self.error_message = error_message + self.source_id = source_id + self.versions = versions + + +class ArtifactVersionQueryResult(Model): + """ArtifactVersionQueryResult. + + :param artifact_versions: Gets or sets the list for artifact versions of artifact version query result. + :type artifact_versions: list of :class:`ArtifactVersion ` + """ + + _attribute_map = { + 'artifact_versions': {'key': 'artifactVersions', 'type': '[ArtifactVersion]'} + } + + def __init__(self, artifact_versions=None): + super(ArtifactVersionQueryResult, self).__init__() + self.artifact_versions = artifact_versions + + +class AuthorizationHeader(Model): + """AuthorizationHeader. + + :param name: + :type name: str + :param value: + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, name=None, value=None): + super(AuthorizationHeader, self).__init__() + self.name = name + self.value = value + + +class AutoTriggerIssue(Model): + """AutoTriggerIssue. + + :param issue: + :type issue: :class:`Issue ` + :param issue_source: + :type issue_source: object + :param project: + :type project: :class:`ProjectReference ` + :param release_definition_reference: + :type release_definition_reference: :class:`ReleaseDefinitionShallowReference ` + :param release_trigger_type: + :type release_trigger_type: object + """ + + _attribute_map = { + 'issue': {'key': 'issue', 'type': 'Issue'}, + 'issue_source': {'key': 'issueSource', 'type': 'object'}, + 'project': {'key': 'project', 'type': 'ProjectReference'}, + 'release_definition_reference': {'key': 'releaseDefinitionReference', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_trigger_type': {'key': 'releaseTriggerType', 'type': 'object'} + } + + def __init__(self, issue=None, issue_source=None, project=None, release_definition_reference=None, release_trigger_type=None): + super(AutoTriggerIssue, self).__init__() + self.issue = issue + self.issue_source = issue_source + self.project = project + self.release_definition_reference = release_definition_reference + self.release_trigger_type = release_trigger_type + + +class BuildVersion(Model): + """BuildVersion. + + :param commit_message: Gets or sets the commit message for the artifact. + :type commit_message: str + :param definition_id: Gets or sets the definition id. + :type definition_id: str + :param definition_name: Gets or sets the definition name. + :type definition_name: str + :param id: Gets or sets the build id. + :type id: str + :param is_multi_definition_type: Gets or sets if the artifact supports multiple definitions. + :type is_multi_definition_type: bool + :param name: Gets or sets the build number. + :type name: str + :param source_branch: Gets or sets the source branch for the artifact. + :type source_branch: str + :param source_pull_request_version: Gets or sets the source pull request version for the artifact. + :type source_pull_request_version: :class:`SourcePullRequestVersion ` + :param source_repository_id: Gets or sets the repository id for the artifact. + :type source_repository_id: str + :param source_repository_type: Gets or sets the repository type for the artifact. + :type source_repository_type: str + :param source_version: Gets or sets the source version for the artifact. + :type source_version: str + """ + + _attribute_map = { + 'commit_message': {'key': 'commitMessage', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'str'}, + 'definition_name': {'key': 'definitionName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_multi_definition_type': {'key': 'isMultiDefinitionType', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'}, + 'source_pull_request_version': {'key': 'sourcePullRequestVersion', 'type': 'SourcePullRequestVersion'}, + 'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'}, + 'source_repository_type': {'key': 'sourceRepositoryType', 'type': 'str'}, + 'source_version': {'key': 'sourceVersion', 'type': 'str'} + } + + def __init__(self, commit_message=None, definition_id=None, definition_name=None, id=None, is_multi_definition_type=None, name=None, source_branch=None, source_pull_request_version=None, source_repository_id=None, source_repository_type=None, source_version=None): + super(BuildVersion, self).__init__() + self.commit_message = commit_message + self.definition_id = definition_id + self.definition_name = definition_name + self.id = id + self.is_multi_definition_type = is_multi_definition_type + self.name = name + self.source_branch = source_branch + self.source_pull_request_version = source_pull_request_version + self.source_repository_id = source_repository_id + self.source_repository_type = source_repository_type + self.source_version = source_version + + +class Change(Model): + """Change. + + :param author: The author of the change. + :type author: :class:`IdentityRef ` + :param change_type: The type of source. "TfsVersionControl", "TfsGit", etc. + :type change_type: str + :param display_uri: The location of a user-friendly representation of the resource. + :type display_uri: str + :param id: Something that identifies the change. For a commit, this would be the SHA1. For a TFVC changeset, this would be the changeset id. + :type id: str + :param location: The location of the full representation of the resource. + :type location: str + :param message: A description of the change. This might be a commit message or changeset description. + :type message: str + :param pushed_by: The person or process that pushed the change. + :type pushed_by: :class:`IdentityRef ` + :param pusher: The person or process that pushed the change. + :type pusher: str + :param timestamp: A timestamp for the change. + :type timestamp: datetime + """ + + _attribute_map = { + 'author': {'key': 'author', 'type': 'IdentityRef'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'display_uri': {'key': 'displayUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'}, + 'pusher': {'key': 'pusher', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'} + } + + def __init__(self, author=None, change_type=None, display_uri=None, id=None, location=None, message=None, pushed_by=None, pusher=None, timestamp=None): + super(Change, self).__init__() + self.author = author + self.change_type = change_type + self.display_uri = display_uri + self.id = id + self.location = location + self.message = message + self.pushed_by = pushed_by + self.pusher = pusher + self.timestamp = timestamp + + +class Condition(Model): + """Condition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, condition_type=None, name=None, value=None): + super(Condition, self).__init__() + self.condition_type = condition_type + self.name = name + self.value = value + + +class ConfigurationVariableValue(Model): + """ConfigurationVariableValue. + + :param allow_override: Gets and sets if a variable can be overridden at deployment time or not. + :type allow_override: bool + :param is_secret: Gets or sets as variable is secret or not. + :type is_secret: bool + :param value: Gets and sets value of the configuration variable. + :type value: str + """ + + _attribute_map = { + 'allow_override': {'key': 'allowOverride', 'type': 'bool'}, + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, allow_override=None, is_secret=None, value=None): + super(ConfigurationVariableValue, self).__init__() + self.allow_override = allow_override + self.is_secret = is_secret + self.value = value + + +class DataSourceBindingBase(Model): + """DataSourceBindingBase. + + :param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop). + :type callback_context_template: str + :param callback_required_template: Subsequent calls needed? + :type callback_required_template: str + :param data_source_name: Gets or sets the name of the data source. + :type data_source_name: str + :param endpoint_id: Gets or sets the endpoint Id. + :type endpoint_id: str + :param endpoint_url: Gets or sets the url of the service endpoint. + :type endpoint_url: str + :param headers: Gets or sets the authorization headers. + :type headers: list of :class:`AuthorizationHeader ` + :param initial_context_template: Defines the initial value of the query params + :type initial_context_template: str + :param parameters: Gets or sets the parameters for the data source. + :type parameters: dict + :param request_content: Gets or sets http request body + :type request_content: str + :param request_verb: Gets or sets http request verb + :type request_verb: str + :param result_selector: Gets or sets the result selector. + :type result_selector: str + :param result_template: Gets or sets the result template. + :type result_template: str + :param target: Gets or sets the target of the data source. + :type target: str + """ + + _attribute_map = { + 'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'}, + 'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'}, + 'data_source_name': {'key': 'dataSourceName', 'type': 'str'}, + 'endpoint_id': {'key': 'endpointId', 'type': 'str'}, + 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'}, + 'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'request_content': {'key': 'requestContent', 'type': 'str'}, + 'request_verb': {'key': 'requestVerb', 'type': 'str'}, + 'result_selector': {'key': 'resultSelector', 'type': 'str'}, + 'result_template': {'key': 'resultTemplate', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, request_content=None, request_verb=None, result_selector=None, result_template=None, target=None): + super(DataSourceBindingBase, self).__init__() + self.callback_context_template = callback_context_template + self.callback_required_template = callback_required_template + self.data_source_name = data_source_name + self.endpoint_id = endpoint_id + self.endpoint_url = endpoint_url + self.headers = headers + self.initial_context_template = initial_context_template + self.parameters = parameters + self.request_content = request_content + self.request_verb = request_verb + self.result_selector = result_selector + self.result_template = result_template + self.target = target + + +class DefinitionEnvironmentReference(Model): + """DefinitionEnvironmentReference. + + :param definition_environment_id: Definition environment ID. + :type definition_environment_id: int + :param definition_environment_name: Definition environment name. + :type definition_environment_name: str + :param release_definition_id: ReleaseDefinition ID. + :type release_definition_id: int + :param release_definition_name: ReleaseDefinition name. + :type release_definition_name: str + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'definition_environment_name': {'key': 'definitionEnvironmentName', 'type': 'str'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'release_definition_name': {'key': 'releaseDefinitionName', 'type': 'str'} + } + + def __init__(self, definition_environment_id=None, definition_environment_name=None, release_definition_id=None, release_definition_name=None): + super(DefinitionEnvironmentReference, self).__init__() + self.definition_environment_id = definition_environment_id + self.definition_environment_name = definition_environment_name + self.release_definition_id = release_definition_id + self.release_definition_name = release_definition_name + + +class Deployment(Model): + """Deployment. + + :param _links: Gets links to access the deployment. + :type _links: :class:`ReferenceLinks ` + :param attempt: Gets attempt number. + :type attempt: int + :param completed_on: Gets the date on which deployment is complete. + :type completed_on: datetime + :param conditions: Gets the list of condition associated with deployment. + :type conditions: list of :class:`Condition ` + :param definition_environment_id: Gets release definition environment id. + :type definition_environment_id: int + :param deployment_status: Gets status of the deployment. + :type deployment_status: object + :param id: Gets the unique identifier for deployment. + :type id: int + :param last_modified_by: Gets the identity who last modified the deployment. + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: Gets the date on which deployment is last modified. + :type last_modified_on: datetime + :param operation_status: Gets operation status of deployment. + :type operation_status: object + :param post_deploy_approvals: Gets list of PostDeployApprovals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deploy_approvals: Gets list of PreDeployApprovals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param queued_on: Gets the date on which deployment is queued. + :type queued_on: datetime + :param reason: Gets reason of deployment. + :type reason: object + :param release: Gets the reference of release. + :type release: :class:`ReleaseReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which the deployment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which the deployment is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param requested_by: Gets the identity who requested. + :type requested_by: :class:`IdentityRef ` + :param requested_for: Gets the identity for whom deployment is requested. + :type requested_for: :class:`IdentityRef ` + :param scheduled_deployment_time: Gets the date on which deployment is scheduled. + :type scheduled_deployment_time: datetime + :param started_on: Gets the date on which deployment is started. + :type started_on: datetime + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'completed_on': {'key': 'completedOn', 'type': 'iso-8601'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'int'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release': {'key': 'release', 'type': 'ReleaseReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'} + } + + def __init__(self, _links=None, attempt=None, completed_on=None, conditions=None, definition_environment_id=None, deployment_status=None, id=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deploy_approvals=None, pre_deploy_approvals=None, project_reference=None, queued_on=None, reason=None, release=None, release_definition=None, release_environment=None, requested_by=None, requested_for=None, scheduled_deployment_time=None, started_on=None): + super(Deployment, self).__init__() + self._links = _links + self.attempt = attempt + self.completed_on = completed_on + self.conditions = conditions + self.definition_environment_id = definition_environment_id + self.deployment_status = deployment_status + self.id = id + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deploy_approvals = post_deploy_approvals + self.pre_deploy_approvals = pre_deploy_approvals + self.project_reference = project_reference + self.queued_on = queued_on + self.reason = reason + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.requested_by = requested_by + self.requested_for = requested_for + self.scheduled_deployment_time = scheduled_deployment_time + self.started_on = started_on + + +class DeploymentAttempt(Model): + """DeploymentAttempt. + + :param attempt: Deployment attempt. + :type attempt: int + :param deployment_id: ID of the deployment. + :type deployment_id: int + :param error_log: Error log to show any unexpected error that occurred during executing deploy step + :type error_log: str + :param has_started: Specifies whether deployment has started or not. + :type has_started: bool + :param id: ID of deployment. + :type id: int + :param issues: All the issues related to the deployment. + :type issues: list of :class:`Issue ` + :param job: + :type job: :class:`ReleaseTask ` + :param last_modified_by: Identity who last modified this deployment. + :type last_modified_by: :class:`IdentityRef ` + :param last_modified_on: Time when this deployment last modified. + :type last_modified_on: datetime + :param operation_status: Deployment opeartion status. + :type operation_status: object + :param post_deployment_gates: Post deployment gates that executed in this deployment. + :type post_deployment_gates: :class:`ReleaseGates ` + :param pre_deployment_gates: Pre deployment gates that executed in this deployment. + :type pre_deployment_gates: :class:`ReleaseGates ` + :param queued_on: When this deployment queued on. + :type queued_on: datetime + :param reason: Reason for the deployment. + :type reason: object + :param release_deploy_phases: List of release deployphases executed in this deployment. + :type release_deploy_phases: list of :class:`ReleaseDeployPhase ` + :param requested_by: Identity who requested this deployment. + :type requested_by: :class:`IdentityRef ` + :param requested_for: Identity for this deployment requested. + :type requested_for: :class:`IdentityRef ` + :param run_plan_id: + :type run_plan_id: str + :param status: status of the deployment. + :type status: object + :param tasks: + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'deployment_id': {'key': 'deploymentId', 'type': 'int'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'has_started': {'key': 'hasStarted', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseGates'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseGates'}, + 'queued_on': {'key': 'queuedOn', 'type': 'iso-8601'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_deploy_phases': {'key': 'releaseDeployPhases', 'type': '[ReleaseDeployPhase]'}, + 'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'}, + 'requested_for': {'key': 'requestedFor', 'type': 'IdentityRef'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, attempt=None, deployment_id=None, error_log=None, has_started=None, id=None, issues=None, job=None, last_modified_by=None, last_modified_on=None, operation_status=None, post_deployment_gates=None, pre_deployment_gates=None, queued_on=None, reason=None, release_deploy_phases=None, requested_by=None, requested_for=None, run_plan_id=None, status=None, tasks=None): + super(DeploymentAttempt, self).__init__() + self.attempt = attempt + self.deployment_id = deployment_id + self.error_log = error_log + self.has_started = has_started + self.id = id + self.issues = issues + self.job = job + self.last_modified_by = last_modified_by + self.last_modified_on = last_modified_on + self.operation_status = operation_status + self.post_deployment_gates = post_deployment_gates + self.pre_deployment_gates = pre_deployment_gates + self.queued_on = queued_on + self.reason = reason + self.release_deploy_phases = release_deploy_phases + self.requested_by = requested_by + self.requested_for = requested_for + self.run_plan_id = run_plan_id + self.status = status + self.tasks = tasks + + +class DeploymentJob(Model): + """DeploymentJob. + + :param job: Parent task of all executed tasks. + :type job: :class:`ReleaseTask ` + :param tasks: List of executed tasks with in job. + :type tasks: list of :class:`ReleaseTask ` + """ + + _attribute_map = { + 'job': {'key': 'job', 'type': 'ReleaseTask'}, + 'tasks': {'key': 'tasks', 'type': '[ReleaseTask]'} + } + + def __init__(self, job=None, tasks=None): + super(DeploymentJob, self).__init__() + self.job = job + self.tasks = tasks + + +class DeploymentQueryParameters(Model): + """DeploymentQueryParameters. + + :param artifact_source_id: Query deployments based specified artifact source id. + :type artifact_source_id: str + :param artifact_type_id: Query deployments based specified artifact type id. + :type artifact_type_id: str + :param artifact_versions: Query deployments based specified artifact versions. + :type artifact_versions: list of str + :param deployments_per_environment: Query deployments number of deployments per environment. + :type deployments_per_environment: int + :param deployment_status: Query deployment based on deployment status. + :type deployment_status: object + :param environments: Query deployments of specified environments. + :type environments: list of :class:`DefinitionEnvironmentReference ` + :param expands: Query deployments based specified expands. + :type expands: object + :param is_deleted: Specify deleted deployments should return or not. + :type is_deleted: bool + :param latest_deployments_only: + :type latest_deployments_only: bool + :param max_deployments_per_environment: + :type max_deployments_per_environment: int + :param max_modified_time: + :type max_modified_time: datetime + :param min_modified_time: + :type min_modified_time: datetime + :param operation_status: Query deployment based on deployment operation status. + :type operation_status: object + :param query_order: + :type query_order: object + :param query_type: Query deployments based query type. + :type query_type: object + :param source_branch: Query deployments based specified source branch. + :type source_branch: str + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + 'artifact_type_id': {'key': 'artifactTypeId', 'type': 'str'}, + 'artifact_versions': {'key': 'artifactVersions', 'type': '[str]'}, + 'deployments_per_environment': {'key': 'deploymentsPerEnvironment', 'type': 'int'}, + 'deployment_status': {'key': 'deploymentStatus', 'type': 'object'}, + 'environments': {'key': 'environments', 'type': '[DefinitionEnvironmentReference]'}, + 'expands': {'key': 'expands', 'type': 'object'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'latest_deployments_only': {'key': 'latestDeploymentsOnly', 'type': 'bool'}, + 'max_deployments_per_environment': {'key': 'maxDeploymentsPerEnvironment', 'type': 'int'}, + 'max_modified_time': {'key': 'maxModifiedTime', 'type': 'iso-8601'}, + 'min_modified_time': {'key': 'minModifiedTime', 'type': 'iso-8601'}, + 'operation_status': {'key': 'operationStatus', 'type': 'object'}, + 'query_order': {'key': 'queryOrder', 'type': 'object'}, + 'query_type': {'key': 'queryType', 'type': 'object'}, + 'source_branch': {'key': 'sourceBranch', 'type': 'str'} + } + + def __init__(self, artifact_source_id=None, artifact_type_id=None, artifact_versions=None, deployments_per_environment=None, deployment_status=None, environments=None, expands=None, is_deleted=None, latest_deployments_only=None, max_deployments_per_environment=None, max_modified_time=None, min_modified_time=None, operation_status=None, query_order=None, query_type=None, source_branch=None): + super(DeploymentQueryParameters, self).__init__() + self.artifact_source_id = artifact_source_id + self.artifact_type_id = artifact_type_id + self.artifact_versions = artifact_versions + self.deployments_per_environment = deployments_per_environment + self.deployment_status = deployment_status + self.environments = environments + self.expands = expands + self.is_deleted = is_deleted + self.latest_deployments_only = latest_deployments_only + self.max_deployments_per_environment = max_deployments_per_environment + self.max_modified_time = max_modified_time + self.min_modified_time = min_modified_time + self.operation_status = operation_status + self.query_order = query_order + self.query_type = query_type + self.source_branch = source_branch + + +class EmailRecipients(Model): + """EmailRecipients. + + :param email_addresses: List of email addresses. + :type email_addresses: list of str + :param tfs_ids: List of TFS IDs guids. + :type tfs_ids: list of str + """ + + _attribute_map = { + 'email_addresses': {'key': 'emailAddresses', 'type': '[str]'}, + 'tfs_ids': {'key': 'tfsIds', 'type': '[str]'} + } + + def __init__(self, email_addresses=None, tfs_ids=None): + super(EmailRecipients, self).__init__() + self.email_addresses = email_addresses + self.tfs_ids = tfs_ids + + +class EnvironmentExecutionPolicy(Model): + """EnvironmentExecutionPolicy. + + :param concurrency_count: This policy decides, how many environments would be with Environment Runner. + :type concurrency_count: int + :param queue_depth_count: Queue depth in the EnvironmentQueue table, this table keeps the environment entries till Environment Runner is free [as per it's policy] to take another environment for running. + :type queue_depth_count: int + """ + + _attribute_map = { + 'concurrency_count': {'key': 'concurrencyCount', 'type': 'int'}, + 'queue_depth_count': {'key': 'queueDepthCount', 'type': 'int'} + } + + def __init__(self, concurrency_count=None, queue_depth_count=None): + super(EnvironmentExecutionPolicy, self).__init__() + self.concurrency_count = concurrency_count + self.queue_depth_count = queue_depth_count + + +class EnvironmentOptions(Model): + """EnvironmentOptions. + + :param auto_link_work_items: Gets and sets as the auto link workitems or not. + :type auto_link_work_items: bool + :param badge_enabled: Gets and sets as the badge enabled or not. + :type badge_enabled: bool + :param email_notification_type: + :type email_notification_type: str + :param email_recipients: + :type email_recipients: str + :param enable_access_token: + :type enable_access_token: bool + :param publish_deployment_status: Gets and sets as the publish deployment status or not. + :type publish_deployment_status: bool + :param pull_request_deployment_enabled: Gets and sets as the.pull request deployment enabled or not. + :type pull_request_deployment_enabled: bool + :param skip_artifacts_download: + :type skip_artifacts_download: bool + :param timeout_in_minutes: + :type timeout_in_minutes: int + """ + + _attribute_map = { + 'auto_link_work_items': {'key': 'autoLinkWorkItems', 'type': 'bool'}, + 'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'}, + 'email_notification_type': {'key': 'emailNotificationType', 'type': 'str'}, + 'email_recipients': {'key': 'emailRecipients', 'type': 'str'}, + 'enable_access_token': {'key': 'enableAccessToken', 'type': 'bool'}, + 'publish_deployment_status': {'key': 'publishDeploymentStatus', 'type': 'bool'}, + 'pull_request_deployment_enabled': {'key': 'pullRequestDeploymentEnabled', 'type': 'bool'}, + 'skip_artifacts_download': {'key': 'skipArtifactsDownload', 'type': 'bool'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'} + } + + def __init__(self, auto_link_work_items=None, badge_enabled=None, email_notification_type=None, email_recipients=None, enable_access_token=None, publish_deployment_status=None, pull_request_deployment_enabled=None, skip_artifacts_download=None, timeout_in_minutes=None): + super(EnvironmentOptions, self).__init__() + self.auto_link_work_items = auto_link_work_items + self.badge_enabled = badge_enabled + self.email_notification_type = email_notification_type + self.email_recipients = email_recipients + self.enable_access_token = enable_access_token + self.publish_deployment_status = publish_deployment_status + self.pull_request_deployment_enabled = pull_request_deployment_enabled + self.skip_artifacts_download = skip_artifacts_download + self.timeout_in_minutes = timeout_in_minutes + + +class EnvironmentRetentionPolicy(Model): + """EnvironmentRetentionPolicy. + + :param days_to_keep: Gets and sets the number of days to keep environment. + :type days_to_keep: int + :param releases_to_keep: Gets and sets the number of releases to keep. + :type releases_to_keep: int + :param retain_build: Gets and sets as the build to be retained or not. + :type retain_build: bool + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'}, + 'releases_to_keep': {'key': 'releasesToKeep', 'type': 'int'}, + 'retain_build': {'key': 'retainBuild', 'type': 'bool'} + } + + def __init__(self, days_to_keep=None, releases_to_keep=None, retain_build=None): + super(EnvironmentRetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + self.releases_to_keep = releases_to_keep + self.retain_build = retain_build + + +class EnvironmentTrigger(Model): + """EnvironmentTrigger. + + :param definition_environment_id: Definition environment ID on which this trigger applicable. + :type definition_environment_id: int + :param release_definition_id: ReleaseDefinition ID on which this trigger applicable. + :type release_definition_id: int + :param trigger_content: Gets or sets the trigger content. + :type trigger_content: str + :param trigger_type: Gets or sets the trigger type. + :type trigger_type: object + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'release_definition_id': {'key': 'releaseDefinitionId', 'type': 'int'}, + 'trigger_content': {'key': 'triggerContent', 'type': 'str'}, + 'trigger_type': {'key': 'triggerType', 'type': 'object'} + } + + def __init__(self, definition_environment_id=None, release_definition_id=None, trigger_content=None, trigger_type=None): + super(EnvironmentTrigger, self).__init__() + self.definition_environment_id = definition_environment_id + self.release_definition_id = release_definition_id + self.trigger_content = trigger_content + self.trigger_type = trigger_type + + +class FavoriteItem(Model): + """FavoriteItem. + + :param data: Application specific data for the entry. + :type data: str + :param id: Unique Id of the the entry. + :type id: str + :param name: Display text for favorite entry. + :type name: str + :param type: Application specific favorite entry type. Empty or Null represents that Favorite item is a Folder. + :type type: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, data=None, id=None, name=None, type=None): + super(FavoriteItem, self).__init__() + self.data = data + self.id = id + self.name = name + self.type = type + + +class Folder(Model): + """Folder. + + :param created_by: Identity who created this folder. + :type created_by: :class:`IdentityRef ` + :param created_on: Time when this folder created. + :type created_on: datetime + :param description: Description of the folder. + :type description: str + :param last_changed_by: Identity who last changed this folder. + :type last_changed_by: :class:`IdentityRef ` + :param last_changed_date: Time when this folder last changed. + :type last_changed_date: datetime + :param path: path of the folder. + :type path: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'last_changed_by': {'key': 'lastChangedBy', 'type': 'IdentityRef'}, + 'last_changed_date': {'key': 'lastChangedDate', 'type': 'iso-8601'}, + 'path': {'key': 'path', 'type': 'str'} + } + + def __init__(self, created_by=None, created_on=None, description=None, last_changed_by=None, last_changed_date=None, path=None): + super(Folder, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.last_changed_by = last_changed_by + self.last_changed_date = last_changed_date + self.path = path + + +class GateUpdateMetadata(Model): + """GateUpdateMetadata. + + :param comment: Comment. + :type comment: str + :param gates_to_ignore: Name of gate to be ignored. + :type gates_to_ignore: list of str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'gates_to_ignore': {'key': 'gatesToIgnore', 'type': '[str]'} + } + + def __init__(self, comment=None, gates_to_ignore=None): + super(GateUpdateMetadata, self).__init__() + self.comment = comment + self.gates_to_ignore = gates_to_ignore + + +class GraphSubjectBase(Model): + """GraphSubjectBase. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :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): + """IdentityRef. + + :param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. + :type _links: :class:`ReferenceLinks ` + :param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. + :type descriptor: str + :param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. + :type display_name: str + :param url: This url is the full route to the source resource of this graph subject. + :type url: str + :param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary + :type directory_alias: str + :param id: + :type id: str + :param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary + :type image_url: str + :param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary + :type inactive: bool + :param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) + :type is_aad_identity: bool + :param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) + :type is_container: bool + :param is_deleted_in_origin: + :type is_deleted_in_origin: bool + :param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef + :type profile_url: str + :param unique_name: Deprecated - use Domain+PrincipalName instead + :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 IgnoredGate(Model): + """IgnoredGate. + + :param last_modified_on: Gets the date on which gate is last ignored. + :type last_modified_on: datetime + :param name: Name of gate ignored. + :type name: str + """ + + _attribute_map = { + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, last_modified_on=None, name=None): + super(IgnoredGate, self).__init__() + self.last_modified_on = last_modified_on + self.name = name + + +class InputDescriptor(Model): + """InputDescriptor. + + :param dependency_input_ids: The ids of all inputs that the value of this input is dependent on. + :type dependency_input_ids: list of str + :param description: Description of what this input is used for + :type description: str + :param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group. + :type group_name: str + :param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change. + :type has_dynamic_value_information: bool + :param id: Identifier for the subscription input + :type id: str + :param input_mode: Mode in which the value of this input should be entered + :type input_mode: object + :param is_confidential: Gets whether this input is confidential, such as for a password or application key + :type is_confidential: bool + :param name: Localized name which can be shown as a label for the subscription input + :type name: str + :param properties: Custom properties for the input which can be used by the service provider + :type properties: dict + :param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional. + :type type: str + :param use_in_default_description: Gets whether this input is included in the default generated action description. + :type use_in_default_description: bool + :param validation: Information to use to validate this input's value + :type validation: :class:`InputValidation ` + :param value_hint: A hint for input value. It can be used in the UI as the input placeholder. + :type value_hint: str + :param values: Information about possible values for this input + :type values: :class:`InputValues ` + """ + + _attribute_map = { + 'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'}, + 'description': {'key': 'description', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'input_mode': {'key': 'inputMode', 'type': 'object'}, + 'is_confidential': {'key': 'isConfidential', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'}, + 'validation': {'key': 'validation', 'type': 'InputValidation'}, + 'value_hint': {'key': 'valueHint', 'type': 'str'}, + 'values': {'key': 'values', 'type': 'InputValues'} + } + + def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None): + super(InputDescriptor, self).__init__() + self.dependency_input_ids = dependency_input_ids + self.description = description + self.group_name = group_name + self.has_dynamic_value_information = has_dynamic_value_information + self.id = id + self.input_mode = input_mode + self.is_confidential = is_confidential + self.name = name + self.properties = properties + self.type = type + self.use_in_default_description = use_in_default_description + self.validation = validation + self.value_hint = value_hint + self.values = values + + +class InputValidation(Model): + """InputValidation. + + :param data_type: + :type data_type: object + :param is_required: + :type is_required: bool + :param max_length: + :type max_length: int + :param max_value: + :type max_value: decimal + :param min_length: + :type min_length: int + :param min_value: + :type min_value: decimal + :param pattern: + :type pattern: str + :param pattern_mismatch_error_message: + :type pattern_mismatch_error_message: str + """ + + _attribute_map = { + 'data_type': {'key': 'dataType', 'type': 'object'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'max_length': {'key': 'maxLength', 'type': 'int'}, + 'max_value': {'key': 'maxValue', 'type': 'decimal'}, + 'min_length': {'key': 'minLength', 'type': 'int'}, + 'min_value': {'key': 'minValue', 'type': 'decimal'}, + 'pattern': {'key': 'pattern', 'type': 'str'}, + 'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'} + } + + def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None): + super(InputValidation, self).__init__() + self.data_type = data_type + self.is_required = is_required + self.max_length = max_length + self.max_value = max_value + self.min_length = min_length + self.min_value = min_value + self.pattern = pattern + self.pattern_mismatch_error_message = pattern_mismatch_error_message + + +class InputValue(Model): + """InputValue. + + :param data: Any other data about this input + :type data: dict + :param display_value: The text to show for the display of this value + :type display_value: str + :param value: The value to store for this input + :type value: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{object}'}, + 'display_value': {'key': 'displayValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, data=None, display_value=None, value=None): + super(InputValue, self).__init__() + self.data = data + self.display_value = display_value + self.value = value + + +class InputValues(Model): + """InputValues. + + :param default_value: The default value to use for this input + :type default_value: str + :param error: Errors encountered while computing dynamic values. + :type error: :class:`InputValuesError ` + :param input_id: The id of the input + :type input_id: str + :param is_disabled: Should this input be disabled + :type is_disabled: bool + :param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) + :type is_limited_to_possible_values: bool + :param is_read_only: Should this input be made read-only + :type is_read_only: bool + :param possible_values: Possible values that this input can take + :type possible_values: list of :class:`InputValue ` + """ + + _attribute_map = { + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'InputValuesError'}, + 'input_id': {'key': 'inputId', 'type': 'str'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'}, + 'is_read_only': {'key': 'isReadOnly', 'type': 'bool'}, + 'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'} + } + + def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None): + super(InputValues, self).__init__() + self.default_value = default_value + self.error = error + self.input_id = input_id + self.is_disabled = is_disabled + self.is_limited_to_possible_values = is_limited_to_possible_values + self.is_read_only = is_read_only + self.possible_values = possible_values + + +class InputValuesError(Model): + """InputValuesError. + + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, message=None): + super(InputValuesError, self).__init__() + self.message = message + + +class InputValuesQuery(Model): + """InputValuesQuery. + + :param current_values: + :type current_values: dict + :param input_values: The input values to return on input, and the result from the consumer on output. + :type input_values: list of :class:`InputValues ` + :param resource: Subscription containing information about the publisher/consumer and the current input values + :type resource: object + """ + + _attribute_map = { + 'current_values': {'key': 'currentValues', 'type': '{str}'}, + 'input_values': {'key': 'inputValues', 'type': '[InputValues]'}, + 'resource': {'key': 'resource', 'type': 'object'} + } + + def __init__(self, current_values=None, input_values=None, resource=None): + super(InputValuesQuery, self).__init__() + self.current_values = current_values + self.input_values = input_values + self.resource = resource + + +class Issue(Model): + """Issue. + + :param data: Issue data. + :type data: dict + :param issue_type: Issue type, for example error, warning or info. + :type issue_type: str + :param message: Issue message. + :type message: str + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': '{str}'}, + 'issue_type': {'key': 'issueType', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, data=None, issue_type=None, message=None): + super(Issue, self).__init__() + self.data = data + self.issue_type = issue_type + self.message = message + + +class MailMessage(Model): + """MailMessage. + + :param body: Body of mail. + :type body: str + :param cC: Mail CC recipients. + :type cC: :class:`EmailRecipients ` + :param in_reply_to: Reply to. + :type in_reply_to: str + :param message_id: Message ID of the mail. + :type message_id: str + :param reply_by: Data when should be replied to mail. + :type reply_by: datetime + :param reply_to: Reply to Email recipients. + :type reply_to: :class:`EmailRecipients ` + :param sections: List of mail section types. + :type sections: list of MailSectionType + :param sender_type: Mail sender type. + :type sender_type: object + :param subject: Subject of the mail. + :type subject: str + :param to: Mail To recipients. + :type to: :class:`EmailRecipients ` + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'cC': {'key': 'cC', 'type': 'EmailRecipients'}, + 'in_reply_to': {'key': 'inReplyTo', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'reply_by': {'key': 'replyBy', 'type': 'iso-8601'}, + 'reply_to': {'key': 'replyTo', 'type': 'EmailRecipients'}, + 'sections': {'key': 'sections', 'type': '[object]'}, + 'sender_type': {'key': 'senderType', 'type': 'object'}, + 'subject': {'key': 'subject', 'type': 'str'}, + 'to': {'key': 'to', 'type': 'EmailRecipients'} + } + + def __init__(self, body=None, cC=None, in_reply_to=None, message_id=None, reply_by=None, reply_to=None, sections=None, sender_type=None, subject=None, to=None): + super(MailMessage, self).__init__() + self.body = body + self.cC = cC + self.in_reply_to = in_reply_to + self.message_id = message_id + self.reply_by = reply_by + self.reply_to = reply_to + self.sections = sections + self.sender_type = sender_type + self.subject = subject + self.to = to + + +class ManualIntervention(Model): + """ManualIntervention. + + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param id: Gets the unique identifier for manual intervention. + :type id: int + :param instructions: Gets or sets instructions for approval. + :type instructions: str + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets the name. + :type name: str + :param release: Gets releaseReference for manual intervention. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference for manual intervention. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference for manual intervention. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param status: Gets or sets the status of the manual intervention. + :type status: object + :param task_instance_id: Get task instance identifier. + :type task_instance_id: str + :param url: Gets url to access the manual intervention. + :type url: str + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'instructions': {'key': 'instructions', 'type': 'str'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task_instance_id': {'key': 'taskInstanceId', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approver=None, comments=None, created_on=None, id=None, instructions=None, modified_on=None, name=None, release=None, release_definition=None, release_environment=None, status=None, task_instance_id=None, url=None): + super(ManualIntervention, self).__init__() + self.approver = approver + self.comments = comments + self.created_on = created_on + self.id = id + self.instructions = instructions + self.modified_on = modified_on + self.name = name + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.status = status + self.task_instance_id = task_instance_id + self.url = url + + +class ManualInterventionUpdateMetadata(Model): + """ManualInterventionUpdateMetadata. + + :param comment: Sets the comment for manual intervention update. + :type comment: str + :param status: Sets the status of the manual intervention. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, status=None): + super(ManualInterventionUpdateMetadata, self).__init__() + self.comment = comment + self.status = status + + +class Metric(Model): + """Metric. + + :param name: Name of the Metric. + :type name: str + :param value: Value of the Metric. + :type value: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'} + } + + def __init__(self, name=None, value=None): + super(Metric, self).__init__() + self.name = name + self.value = value + + +class PipelineProcess(Model): + """PipelineProcess. + + :param type: Pipeline process type. + :type type: object + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'object'} + } + + def __init__(self, type=None): + super(PipelineProcess, self).__init__() + self.type = type + + +class ProcessParameters(Model): + """ProcessParameters. + + :param data_source_bindings: + :type data_source_bindings: list of :class:`DataSourceBindingBase ` + :param inputs: + :type inputs: list of :class:`TaskInputDefinitionBase ` + :param source_definitions: + :type source_definitions: list of :class:`TaskSourceDefinitionBase ` + """ + + _attribute_map = { + 'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBindingBase]'}, + 'inputs': {'key': 'inputs', 'type': '[TaskInputDefinitionBase]'}, + 'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinitionBase]'} + } + + def __init__(self, data_source_bindings=None, inputs=None, source_definitions=None): + super(ProcessParameters, self).__init__() + self.data_source_bindings = data_source_bindings + self.inputs = inputs + self.source_definitions = source_definitions + + +class ProjectReference(Model): + """ProjectReference. + + :param id: Gets the unique identifier of this field. + :type id: str + :param name: Gets name of project. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, name=None): + super(ProjectReference, self).__init__() + self.id = id + self.name = name + + +class QueuedReleaseData(Model): + """QueuedReleaseData. + + :param project_id: Project ID of the release. + :type project_id: str + :param queue_position: Release queue position. + :type queue_position: int + :param release_id: Queued release ID. + :type release_id: int + """ + + _attribute_map = { + 'project_id': {'key': 'projectId', 'type': 'str'}, + 'queue_position': {'key': 'queuePosition', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, project_id=None, queue_position=None, release_id=None): + super(QueuedReleaseData, self).__init__() + self.project_id = project_id + self.queue_position = queue_position + self.release_id = release_id + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class Release(Model): + """Release. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_snapshot_revision: Gets revision number of definition snapshot. + :type definition_snapshot_revision: int + :param description: Gets or sets description of release. + :type description: str + :param environments: Gets list of environments. + :type environments: list of :class:`ReleaseEnvironment ` + :param id: Gets the unique identifier of this field. + :type id: int + :param keep_forever: Whether to exclude the release from retention policies. + :type keep_forever: bool + :param logs_container_url: Gets logs container url. + :type logs_container_url: str + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param pool_name: Gets pool name. + :type pool_name: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param properties: + :type properties: :class:`object ` + :param reason: Gets reason of release. + :type reason: object + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_definition_revision: Gets or sets the release definition revision. + :type release_definition_revision: int + :param release_name_format: Gets release name format. + :type release_name_format: str + :param status: Gets status. + :type status: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggering_artifact_alias: + :type triggering_artifact_alias: str + :param url: + :type url: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseEnvironment]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'logs_container_url': {'key': 'logsContainerUrl', 'type': 'str'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pool_name': {'key': 'poolName', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_definition_revision': {'key': 'releaseDefinitionRevision', 'type': 'int'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggering_artifact_alias': {'key': 'triggeringArtifactAlias', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, artifacts=None, comment=None, created_by=None, created_on=None, definition_snapshot_revision=None, description=None, environments=None, id=None, keep_forever=None, logs_container_url=None, modified_by=None, modified_on=None, name=None, pool_name=None, project_reference=None, properties=None, reason=None, release_definition=None, release_definition_revision=None, release_name_format=None, status=None, tags=None, triggering_artifact_alias=None, url=None, variable_groups=None, variables=None): + super(Release, self).__init__() + self._links = _links + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.definition_snapshot_revision = definition_snapshot_revision + self.description = description + self.environments = environments + self.id = id + self.keep_forever = keep_forever + self.logs_container_url = logs_container_url + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.pool_name = pool_name + self.project_reference = project_reference + self.properties = properties + self.reason = reason + self.release_definition = release_definition + self.release_definition_revision = release_definition_revision + self.release_name_format = release_name_format + self.status = status + self.tags = tags + self.triggering_artifact_alias = triggering_artifact_alias + self.url = url + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseApproval(Model): + """ReleaseApproval. + + :param approval_type: Gets or sets the type of approval. + :type approval_type: object + :param approved_by: Gets the identity who approved. + :type approved_by: :class:`IdentityRef ` + :param approver: Gets or sets the identity who should approve. + :type approver: :class:`IdentityRef ` + :param attempt: Gets or sets attempt which specifies as which deployment attempt it belongs. + :type attempt: int + :param comments: Gets or sets comments for approval. + :type comments: str + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param history: Gets history which specifies all approvals associated with this approval. + :type history: list of :class:`ReleaseApprovalHistory ` + :param id: Gets the unique identifier of this field. + :type id: int + :param is_automated: Gets or sets as approval is automated or not. + :type is_automated: bool + :param is_notification_on: + :type is_notification_on: bool + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param rank: Gets or sets rank which specifies the order of the approval. e.g. Same rank denotes parallel approval. + :type rank: int + :param release: Gets releaseReference which specifies the reference of the release to which this approval is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this approval is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_environment: Gets releaseEnvironmentReference which specifies the reference of the release environment to which this approval is associated. + :type release_environment: :class:`ReleaseEnvironmentShallowReference ` + :param revision: Gets the revision number. + :type revision: int + :param status: Gets or sets the status of the approval. + :type status: object + :param trial_number: + :type trial_number: int + :param url: Gets url to access the approval. + :type url: str + """ + + _attribute_map = { + 'approval_type': {'key': 'approvalType', 'type': 'object'}, + 'approved_by': {'key': 'approvedBy', 'type': 'IdentityRef'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'attempt': {'key': 'attempt', 'type': 'int'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'history': {'key': 'history', 'type': '[ReleaseApprovalHistory]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_environment': {'key': 'releaseEnvironment', 'type': 'ReleaseEnvironmentShallowReference'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'object'}, + 'trial_number': {'key': 'trialNumber', 'type': 'int'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, approval_type=None, approved_by=None, approver=None, attempt=None, comments=None, created_on=None, history=None, id=None, is_automated=None, is_notification_on=None, modified_on=None, rank=None, release=None, release_definition=None, release_environment=None, revision=None, status=None, trial_number=None, url=None): + super(ReleaseApproval, self).__init__() + self.approval_type = approval_type + self.approved_by = approved_by + self.approver = approver + self.attempt = attempt + self.comments = comments + self.created_on = created_on + self.history = history + self.id = id + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.modified_on = modified_on + self.rank = rank + self.release = release + self.release_definition = release_definition + self.release_environment = release_environment + self.revision = revision + self.status = status + self.trial_number = trial_number + self.url = url + + +class ReleaseApprovalHistory(Model): + """ReleaseApprovalHistory. + + :param approver: Identity of the approver. + :type approver: :class:`IdentityRef ` + :param changed_by: Identity of the object who changed approval. + :type changed_by: :class:`IdentityRef ` + :param comments: Approval histroy comments. + :type comments: str + :param created_on: Time when this approval created. + :type created_on: datetime + :param modified_on: Time when this approval modified. + :type modified_on: datetime + :param revision: Approval histroy revision. + :type revision: int + """ + + _attribute_map = { + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'comments': {'key': 'comments', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, approver=None, changed_by=None, comments=None, created_on=None, modified_on=None, revision=None): + super(ReleaseApprovalHistory, self).__init__() + self.approver = approver + self.changed_by = changed_by + self.comments = comments + self.created_on = created_on + self.modified_on = modified_on + self.revision = revision + + +class ReleaseCondition(Condition): + """ReleaseCondition. + + :param condition_type: Gets or sets the condition type. + :type condition_type: object + :param name: Gets or sets the name of the condition. e.g. 'ReleaseStarted'. + :type name: str + :param value: Gets or set value of the condition. + :type value: str + :param result: The release condition result. + :type result: bool + """ + + _attribute_map = { + 'condition_type': {'key': 'conditionType', 'type': 'object'}, + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'result': {'key': 'result', 'type': 'bool'} + } + + def __init__(self, condition_type=None, name=None, value=None, result=None): + super(ReleaseCondition, self).__init__(condition_type=condition_type, name=name, value=value) + self.result = result + + +class ReleaseDefinitionApprovals(Model): + """ReleaseDefinitionApprovals. + + :param approval_options: Gets or sets the approval options. + :type approval_options: :class:`ApprovalOptions ` + :param approvals: Gets or sets the approvals. + :type approvals: list of :class:`ReleaseDefinitionApprovalStep ` + """ + + _attribute_map = { + 'approval_options': {'key': 'approvalOptions', 'type': 'ApprovalOptions'}, + 'approvals': {'key': 'approvals', 'type': '[ReleaseDefinitionApprovalStep]'} + } + + def __init__(self, approval_options=None, approvals=None): + super(ReleaseDefinitionApprovals, self).__init__() + self.approval_options = approval_options + self.approvals = approvals + + +class ReleaseDefinitionEnvironment(Model): + """ReleaseDefinitionEnvironment. + + :param badge_url: Gets or sets the BadgeUrl. BadgeUrl will be used when Badge will be enabled in Release Definition Environment. + :type badge_url: str + :param conditions: Gets or sets the environment conditions. + :type conditions: list of :class:`Condition ` + :param current_release: Gets or sets the current release reference. + :type current_release: :class:`ReleaseShallowReference ` + :param demands: Gets or sets the demands. + :type demands: list of :class:`object ` + :param deploy_phases: Gets or sets the deploy phases of environment. + :type deploy_phases: list of :class:`object ` + :param deploy_step: Gets or sets the deploystep. + :type deploy_step: :class:`ReleaseDefinitionDeployStep ` + :param environment_options: Gets or sets the environment options. + :type environment_options: :class:`EnvironmentOptions ` + :param environment_triggers: Gets or sets the triggers on environment. + :type environment_triggers: list of :class:`EnvironmentTrigger ` + :param execution_policy: Gets or sets the environment execution policy. + :type execution_policy: :class:`EnvironmentExecutionPolicy ` + :param id: Gets and sets the ID of the ReleaseDefinitionEnvironment. + :type id: int + :param name: Gets and sets the name of the ReleaseDefinitionEnvironment. + :type name: str + :param owner: Gets and sets the Owner of the ReleaseDefinitionEnvironment. + :type owner: :class:`IdentityRef ` + :param post_deploy_approvals: Gets or sets the post deployment approvals. + :type post_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param post_deployment_gates: Gets or sets the post deployment gates. + :type post_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param pre_deploy_approvals: Gets or sets the pre deployment approvals. + :type pre_deploy_approvals: :class:`ReleaseDefinitionApprovals ` + :param pre_deployment_gates: Gets or sets the pre deployment gates. + :type pre_deployment_gates: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: Gets or sets the environment process parameters. + :type process_parameters: :class:`ProcessParameters ` + :param properties: Gets or sets the properties on environment. + :type properties: :class:`object ` + :param queue_id: Gets or sets the queue ID. + :type queue_id: int + :param rank: Gets and sets the rank of the ReleaseDefinitionEnvironment. + :type rank: int + :param retention_policy: Gets or sets the environment retention policy. + :type retention_policy: :class:`EnvironmentRetentionPolicy ` + :param run_options: + :type run_options: dict + :param schedules: Gets or sets the schedules + :type schedules: list of :class:`ReleaseSchedule ` + :param variable_groups: Gets or sets the variable groups. + :type variable_groups: list of int + :param variables: Gets and sets the variables. + :type variables: dict + """ + + _attribute_map = { + 'badge_url': {'key': 'badgeUrl', 'type': 'str'}, + 'conditions': {'key': 'conditions', 'type': '[Condition]'}, + 'current_release': {'key': 'currentRelease', 'type': 'ReleaseShallowReference'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases': {'key': 'deployPhases', 'type': '[object]'}, + 'deploy_step': {'key': 'deployStep', 'type': 'ReleaseDefinitionDeployStep'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'environment_triggers': {'key': 'environmentTriggers', 'type': '[EnvironmentTrigger]'}, + 'execution_policy': {'key': 'executionPolicy', 'type': 'EnvironmentExecutionPolicy'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deployment_gates': {'key': 'postDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deployment_gates': {'key': 'preDeploymentGates', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'run_options': {'key': 'runOptions', 'type': '{str}'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, badge_url=None, conditions=None, current_release=None, demands=None, deploy_phases=None, deploy_step=None, environment_options=None, environment_triggers=None, execution_policy=None, id=None, name=None, owner=None, post_deploy_approvals=None, post_deployment_gates=None, pre_deploy_approvals=None, pre_deployment_gates=None, process_parameters=None, properties=None, queue_id=None, rank=None, retention_policy=None, run_options=None, schedules=None, variable_groups=None, variables=None): + super(ReleaseDefinitionEnvironment, self).__init__() + self.badge_url = badge_url + self.conditions = conditions + self.current_release = current_release + self.demands = demands + self.deploy_phases = deploy_phases + self.deploy_step = deploy_step + self.environment_options = environment_options + self.environment_triggers = environment_triggers + self.execution_policy = execution_policy + self.id = id + self.name = name + self.owner = owner + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates = post_deployment_gates + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates = pre_deployment_gates + self.process_parameters = process_parameters + self.properties = properties + self.queue_id = queue_id + self.rank = rank + self.retention_policy = retention_policy + self.run_options = run_options + self.schedules = schedules + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseDefinitionEnvironmentStep(Model): + """ReleaseDefinitionEnvironmentStep. + + :param id: ID of the approval or deploy step. + :type id: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, id=None): + super(ReleaseDefinitionEnvironmentStep, self).__init__() + self.id = id + + +class ReleaseDefinitionEnvironmentSummary(Model): + """ReleaseDefinitionEnvironmentSummary. + + :param id: ID of ReleaseDefinition environment summary. + :type id: int + :param last_releases: List of release shallow reference deployed using this ReleaseDefinition. + :type last_releases: list of :class:`ReleaseShallowReference ` + :param name: Name of ReleaseDefinition environment summary. + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'last_releases': {'key': 'lastReleases', 'type': '[ReleaseShallowReference]'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, id=None, last_releases=None, name=None): + super(ReleaseDefinitionEnvironmentSummary, self).__init__() + self.id = id + self.last_releases = last_releases + self.name = name + + +class ReleaseDefinitionEnvironmentTemplate(Model): + """ReleaseDefinitionEnvironmentTemplate. + + :param can_delete: Indicates whether template can be deleted or not. + :type can_delete: bool + :param category: Category of the ReleaseDefinition environment template. + :type category: str + :param description: Description of the ReleaseDefinition environment template. + :type description: str + :param environment: ReleaseDefinition environment data which used to create this template. + :type environment: :class:`ReleaseDefinitionEnvironment ` + :param icon_task_id: ID of the task which used to display icon used for this template. + :type icon_task_id: str + :param icon_uri: Icon uri of the template. + :type icon_uri: str + :param id: ID of the ReleaseDefinition environment template. + :type id: str + :param is_deleted: Indicates whether template deleted or not. + :type is_deleted: bool + :param name: Name of the ReleaseDefinition environment template. + :type name: str + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'ReleaseDefinitionEnvironment'}, + 'icon_task_id': {'key': 'iconTaskId', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'} + } + + def __init__(self, can_delete=None, category=None, description=None, environment=None, icon_task_id=None, icon_uri=None, id=None, is_deleted=None, name=None): + super(ReleaseDefinitionEnvironmentTemplate, self).__init__() + self.can_delete = can_delete + self.category = category + self.description = description + self.environment = environment + self.icon_task_id = icon_task_id + self.icon_uri = icon_uri + self.id = id + self.is_deleted = is_deleted + self.name = name + + +class ReleaseDefinitionGate(Model): + """ReleaseDefinitionGate. + + :param tasks: Gets or sets the gates workflow. + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, tasks=None): + super(ReleaseDefinitionGate, self).__init__() + self.tasks = tasks + + +class ReleaseDefinitionGatesOptions(Model): + """ReleaseDefinitionGatesOptions. + + :param is_enabled: Gets or sets as the gates enabled or not. + :type is_enabled: bool + :param minimum_success_duration: Gets or sets the minimum duration for steady results after a successful gates evaluation. + :type minimum_success_duration: int + :param sampling_interval: Gets or sets the time between re-evaluation of gates. + :type sampling_interval: int + :param stabilization_time: Gets or sets the delay before evaluation. + :type stabilization_time: int + :param timeout: Gets or sets the timeout after which gates fail. + :type timeout: int + """ + + _attribute_map = { + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'minimum_success_duration': {'key': 'minimumSuccessDuration', 'type': 'int'}, + 'sampling_interval': {'key': 'samplingInterval', 'type': 'int'}, + 'stabilization_time': {'key': 'stabilizationTime', 'type': 'int'}, + 'timeout': {'key': 'timeout', 'type': 'int'} + } + + def __init__(self, is_enabled=None, minimum_success_duration=None, sampling_interval=None, stabilization_time=None, timeout=None): + super(ReleaseDefinitionGatesOptions, self).__init__() + self.is_enabled = is_enabled + self.minimum_success_duration = minimum_success_duration + self.sampling_interval = sampling_interval + self.stabilization_time = stabilization_time + self.timeout = timeout + + +class ReleaseDefinitionGatesStep(Model): + """ReleaseDefinitionGatesStep. + + :param gates: Gets or sets the gates. + :type gates: list of :class:`ReleaseDefinitionGate ` + :param gates_options: Gets or sets the gate options. + :type gates_options: :class:`ReleaseDefinitionGatesOptions ` + :param id: ID of the ReleaseDefinitionGateStep. + :type id: int + """ + + _attribute_map = { + 'gates': {'key': 'gates', 'type': '[ReleaseDefinitionGate]'}, + 'gates_options': {'key': 'gatesOptions', 'type': 'ReleaseDefinitionGatesOptions'}, + 'id': {'key': 'id', 'type': 'int'} + } + + def __init__(self, gates=None, gates_options=None, id=None): + super(ReleaseDefinitionGatesStep, self).__init__() + self.gates = gates + self.gates_options = gates_options + self.id = id + + +class ReleaseDefinitionRevision(Model): + """ReleaseDefinitionRevision. + + :param api_version: Gets api-version for revision object. + :type api_version: str + :param changed_by: Gets the identity who did change. + :type changed_by: :class:`IdentityRef ` + :param changed_date: Gets date on which ReleaseDefinition changed. + :type changed_date: datetime + :param change_type: Gets type of change. + :type change_type: object + :param comment: Gets comments for revision. + :type comment: str + :param definition_id: Get id of the definition. + :type definition_id: int + :param definition_url: Gets definition URL. + :type definition_url: str + :param revision: Get revision number of the definition. + :type revision: int + """ + + _attribute_map = { + 'api_version': {'key': 'apiVersion', 'type': 'str'}, + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_type': {'key': 'changeType', 'type': 'object'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'definition_url': {'key': 'definitionUrl', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'} + } + + def __init__(self, api_version=None, changed_by=None, changed_date=None, change_type=None, comment=None, definition_id=None, definition_url=None, revision=None): + super(ReleaseDefinitionRevision, self).__init__() + self.api_version = api_version + self.changed_by = changed_by + self.changed_date = changed_date + self.change_type = change_type + self.comment = comment + self.definition_id = definition_id + self.definition_url = definition_url + self.revision = revision + + +class ReleaseDefinitionShallowReference(Model): + """ReleaseDefinitionShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param path: Gets or sets the path of the release definition. + :type path: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param url: Gets the REST API url to access the release definition. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, path=None, project_reference=None, url=None): + super(ReleaseDefinitionShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.path = path + self.project_reference = project_reference + self.url = url + + +class ReleaseDefinitionSummary(Model): + """ReleaseDefinitionSummary. + + :param environments: List of Release Definition environment summary. + :type environments: list of :class:`ReleaseDefinitionEnvironmentSummary ` + :param release_definition: Release Definition reference. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param releases: List of releases deployed using this Release Defintion. + :type releases: list of :class:`Release ` + """ + + _attribute_map = { + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironmentSummary]'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'releases': {'key': 'releases', 'type': '[Release]'} + } + + def __init__(self, environments=None, release_definition=None, releases=None): + super(ReleaseDefinitionSummary, self).__init__() + self.environments = environments + self.release_definition = release_definition + self.releases = releases + + +class ReleaseDefinitionUndeleteParameter(Model): + """ReleaseDefinitionUndeleteParameter. + + :param comment: Gets or sets comment. + :type comment: str + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'} + } + + def __init__(self, comment=None): + super(ReleaseDefinitionUndeleteParameter, self).__init__() + self.comment = comment + + +class ReleaseDeployPhase(Model): + """ReleaseDeployPhase. + + :param deployment_jobs: Deployment jobs of the phase. + :type deployment_jobs: list of :class:`DeploymentJob ` + :param error_log: Phase execution error logs. + :type error_log: str + :param id: ID of the phase. + :type id: int + :param manual_interventions: List of manual intervention tasks execution information in phase. + :type manual_interventions: list of :class:`ManualIntervention ` + :param name: Name of the phase. + :type name: str + :param phase_id: ID of the phase. + :type phase_id: str + :param phase_type: Type of the phase. + :type phase_type: object + :param rank: Rank of the phase. + :type rank: int + :param run_plan_id: Run Plan ID of the phase. + :type run_plan_id: str + :param started_on: Phase start time. + :type started_on: datetime + :param status: Status of the phase. + :type status: object + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'error_log': {'key': 'errorLog', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'manual_interventions': {'key': 'manualInterventions', 'type': '[ManualIntervention]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'phase_id': {'key': 'phaseId', 'type': 'str'}, + 'phase_type': {'key': 'phaseType', 'type': 'object'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, deployment_jobs=None, error_log=None, id=None, manual_interventions=None, name=None, phase_id=None, phase_type=None, rank=None, run_plan_id=None, started_on=None, status=None): + super(ReleaseDeployPhase, self).__init__() + self.deployment_jobs = deployment_jobs + self.error_log = error_log + self.id = id + self.manual_interventions = manual_interventions + self.name = name + self.phase_id = phase_id + self.phase_type = phase_type + self.rank = rank + self.run_plan_id = run_plan_id + self.started_on = started_on + self.status = status + + +class ReleaseEnvironment(Model): + """ReleaseEnvironment. + + :param conditions: Gets list of conditions. + :type conditions: list of :class:`ReleaseCondition ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param definition_environment_id: Gets definition environment id. + :type definition_environment_id: int + :param demands: Gets demands. + :type demands: list of :class:`object ` + :param deploy_phases_snapshot: Gets list of deploy phases snapshot. + :type deploy_phases_snapshot: list of :class:`object ` + :param deploy_steps: Gets deploy steps. + :type deploy_steps: list of :class:`DeploymentAttempt ` + :param environment_options: Gets environment options. + :type environment_options: :class:`EnvironmentOptions ` + :param id: Gets the unique identifier of this field. + :type id: int + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets name. + :type name: str + :param next_scheduled_utc_time: Gets next scheduled UTC time. + :type next_scheduled_utc_time: datetime + :param owner: Gets the identity who is owner for release environment. + :type owner: :class:`IdentityRef ` + :param post_approvals_snapshot: Gets list of post deploy approvals snapshot. + :type post_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param post_deploy_approvals: Gets list of post deploy approvals. + :type post_deploy_approvals: list of :class:`ReleaseApproval ` + :param post_deployment_gates_snapshot: Post deployment gates snapshot data. + :type post_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param pre_approvals_snapshot: Gets list of pre deploy approvals snapshot. + :type pre_approvals_snapshot: :class:`ReleaseDefinitionApprovals ` + :param pre_deploy_approvals: Gets list of pre deploy approvals. + :type pre_deploy_approvals: list of :class:`ReleaseApproval ` + :param pre_deployment_gates_snapshot: Pre deployment gates snapshot data. + :type pre_deployment_gates_snapshot: :class:`ReleaseDefinitionGatesStep ` + :param process_parameters: Gets process parameters. + :type process_parameters: :class:`ProcessParameters ` + :param queue_id: Gets queue id. + :type queue_id: int + :param rank: Gets rank. + :type rank: int + :param release: Gets release reference which specifies the reference of the release to which this release environment is associated. + :type release: :class:`ReleaseShallowReference ` + :param release_created_by: Gets the identity who created release. + :type release_created_by: :class:`IdentityRef ` + :param release_definition: Gets releaseDefinitionReference which specifies the reference of the release definition to which this release environment is associated. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param release_description: Gets release description. + :type release_description: str + :param release_id: Gets release id. + :type release_id: int + :param scheduled_deployment_time: Gets schedule deployment time of release environment. + :type scheduled_deployment_time: datetime + :param schedules: Gets list of schedules. + :type schedules: list of :class:`ReleaseSchedule ` + :param status: Gets environment status. + :type status: object + :param time_to_deploy: Gets time to deploy. + :type time_to_deploy: float + :param trigger_reason: Gets trigger reason. + :type trigger_reason: str + :param variable_groups: Gets the list of variable groups. + :type variable_groups: list of :class:`VariableGroup ` + :param variables: Gets the dictionary of variables. + :type variables: dict + :param workflow_tasks: Gets list of workflow tasks. + :type workflow_tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'conditions': {'key': 'conditions', 'type': '[ReleaseCondition]'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'demands': {'key': 'demands', 'type': '[object]'}, + 'deploy_phases_snapshot': {'key': 'deployPhasesSnapshot', 'type': '[object]'}, + 'deploy_steps': {'key': 'deploySteps', 'type': '[DeploymentAttempt]'}, + 'environment_options': {'key': 'environmentOptions', 'type': 'EnvironmentOptions'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'next_scheduled_utc_time': {'key': 'nextScheduledUtcTime', 'type': 'iso-8601'}, + 'owner': {'key': 'owner', 'type': 'IdentityRef'}, + 'post_approvals_snapshot': {'key': 'postApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'post_deploy_approvals': {'key': 'postDeployApprovals', 'type': '[ReleaseApproval]'}, + 'post_deployment_gates_snapshot': {'key': 'postDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'pre_approvals_snapshot': {'key': 'preApprovalsSnapshot', 'type': 'ReleaseDefinitionApprovals'}, + 'pre_deploy_approvals': {'key': 'preDeployApprovals', 'type': '[ReleaseApproval]'}, + 'pre_deployment_gates_snapshot': {'key': 'preDeploymentGatesSnapshot', 'type': 'ReleaseDefinitionGatesStep'}, + 'process_parameters': {'key': 'processParameters', 'type': 'ProcessParameters'}, + 'queue_id': {'key': 'queueId', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'release': {'key': 'release', 'type': 'ReleaseShallowReference'}, + 'release_created_by': {'key': 'releaseCreatedBy', 'type': 'IdentityRef'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'release_description': {'key': 'releaseDescription', 'type': 'str'}, + 'release_id': {'key': 'releaseId', 'type': 'int'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'schedules': {'key': 'schedules', 'type': '[ReleaseSchedule]'}, + 'status': {'key': 'status', 'type': 'object'}, + 'time_to_deploy': {'key': 'timeToDeploy', 'type': 'float'}, + 'trigger_reason': {'key': 'triggerReason', 'type': 'str'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[VariableGroup]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'}, + 'workflow_tasks': {'key': 'workflowTasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, conditions=None, created_on=None, definition_environment_id=None, demands=None, deploy_phases_snapshot=None, deploy_steps=None, environment_options=None, id=None, modified_on=None, name=None, next_scheduled_utc_time=None, owner=None, post_approvals_snapshot=None, post_deploy_approvals=None, post_deployment_gates_snapshot=None, pre_approvals_snapshot=None, pre_deploy_approvals=None, pre_deployment_gates_snapshot=None, process_parameters=None, queue_id=None, rank=None, release=None, release_created_by=None, release_definition=None, release_description=None, release_id=None, scheduled_deployment_time=None, schedules=None, status=None, time_to_deploy=None, trigger_reason=None, variable_groups=None, variables=None, workflow_tasks=None): + super(ReleaseEnvironment, self).__init__() + self.conditions = conditions + self.created_on = created_on + self.definition_environment_id = definition_environment_id + self.demands = demands + self.deploy_phases_snapshot = deploy_phases_snapshot + self.deploy_steps = deploy_steps + self.environment_options = environment_options + self.id = id + self.modified_on = modified_on + self.name = name + self.next_scheduled_utc_time = next_scheduled_utc_time + self.owner = owner + self.post_approvals_snapshot = post_approvals_snapshot + self.post_deploy_approvals = post_deploy_approvals + self.post_deployment_gates_snapshot = post_deployment_gates_snapshot + self.pre_approvals_snapshot = pre_approvals_snapshot + self.pre_deploy_approvals = pre_deploy_approvals + self.pre_deployment_gates_snapshot = pre_deployment_gates_snapshot + self.process_parameters = process_parameters + self.queue_id = queue_id + self.rank = rank + self.release = release + self.release_created_by = release_created_by + self.release_definition = release_definition + self.release_description = release_description + self.release_id = release_id + self.scheduled_deployment_time = scheduled_deployment_time + self.schedules = schedules + self.status = status + self.time_to_deploy = time_to_deploy + self.trigger_reason = trigger_reason + self.variable_groups = variable_groups + self.variables = variables + self.workflow_tasks = workflow_tasks + + +class ReleaseEnvironmentShallowReference(Model): + """ReleaseEnvironmentShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release environment. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release environment. + :type id: int + :param name: Gets or sets the name of the release environment. + :type name: str + :param url: Gets the REST API url to access the release environment. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseEnvironmentShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseEnvironmentUpdateMetadata(Model): + """ReleaseEnvironmentUpdateMetadata. + + :param comment: Gets or sets comment. + :type comment: str + :param scheduled_deployment_time: Gets or sets scheduled deployment time. + :type scheduled_deployment_time: datetime + :param status: Gets or sets status of environment. + :type status: object + :param variables: Sets list of environment variables to be overridden at deployment time. + :type variables: dict + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'scheduled_deployment_time': {'key': 'scheduledDeploymentTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, comment=None, scheduled_deployment_time=None, status=None, variables=None): + super(ReleaseEnvironmentUpdateMetadata, self).__init__() + self.comment = comment + self.scheduled_deployment_time = scheduled_deployment_time + self.status = status + self.variables = variables + + +class ReleaseGates(Model): + """ReleaseGates. + + :param deployment_jobs: Contains the gates job details of each evaluation. + :type deployment_jobs: list of :class:`DeploymentJob ` + :param id: ID of release gates. + :type id: int + :param ignored_gates: List of ignored gates. + :type ignored_gates: list of :class:`IgnoredGate ` + :param last_modified_on: Gates last modified time. + :type last_modified_on: datetime + :param run_plan_id: Run plan ID of the gates. + :type run_plan_id: str + :param stabilization_completed_on: Gates stabilization completed date and time. + :type stabilization_completed_on: datetime + :param started_on: Gates evaluation started time. + :type started_on: datetime + :param status: Status of release gates. + :type status: object + :param succeeding_since: Date and time at which all gates executed successfully. + :type succeeding_since: datetime + """ + + _attribute_map = { + 'deployment_jobs': {'key': 'deploymentJobs', 'type': '[DeploymentJob]'}, + 'id': {'key': 'id', 'type': 'int'}, + 'ignored_gates': {'key': 'ignoredGates', 'type': '[IgnoredGate]'}, + 'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'}, + 'run_plan_id': {'key': 'runPlanId', 'type': 'str'}, + 'stabilization_completed_on': {'key': 'stabilizationCompletedOn', 'type': 'iso-8601'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'succeeding_since': {'key': 'succeedingSince', 'type': 'iso-8601'} + } + + def __init__(self, deployment_jobs=None, id=None, ignored_gates=None, last_modified_on=None, run_plan_id=None, stabilization_completed_on=None, started_on=None, status=None, succeeding_since=None): + super(ReleaseGates, self).__init__() + self.deployment_jobs = deployment_jobs + self.id = id + self.ignored_gates = ignored_gates + self.last_modified_on = last_modified_on + self.run_plan_id = run_plan_id + self.stabilization_completed_on = stabilization_completed_on + self.started_on = started_on + self.status = status + self.succeeding_since = succeeding_since + + +class ReleaseReference(Model): + """ReleaseReference. + + :param _links: Gets links to access the release. + :type _links: :class:`ReferenceLinks ` + :param artifacts: Gets list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param created_by: Gets the identity who created release. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on when this release created. + :type created_on: datetime + :param description: Gets description. + :type description: str + :param id: ID of the Release. + :type id: int + :param modified_by: Gets the identity who modified release. + :type modified_by: :class:`IdentityRef ` + :param name: Gets name of release. + :type name: str + :param reason: Gets reason for release. + :type reason: object + :param release_definition: Gets release definition shallow reference. + :type release_definition: :class:`ReleaseDefinitionShallowReference ` + :param url: + :type url: str + :param web_access_uri: + :type web_access_uri: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'name': {'key': 'name', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'release_definition': {'key': 'releaseDefinition', 'type': 'ReleaseDefinitionShallowReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'web_access_uri': {'key': 'webAccessUri', 'type': 'str'} + } + + def __init__(self, _links=None, artifacts=None, created_by=None, created_on=None, description=None, id=None, modified_by=None, name=None, reason=None, release_definition=None, url=None, web_access_uri=None): + super(ReleaseReference, self).__init__() + self._links = _links + self.artifacts = artifacts + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.modified_by = modified_by + self.name = name + self.reason = reason + self.release_definition = release_definition + self.url = url + self.web_access_uri = web_access_uri + + +class ReleaseRevision(Model): + """ReleaseRevision. + + :param changed_by: Gets or sets the identity who changed. + :type changed_by: :class:`IdentityRef ` + :param changed_date: Change date of the revision. + :type changed_date: datetime + :param change_details: Change details of the revision. + :type change_details: str + :param change_type: Change details of the revision. Typically ChangeDetails values are Add and Update. + :type change_type: str + :param comment: Comment of the revision. + :type comment: str + :param definition_snapshot_revision: Release ID of which this revision belongs. + :type definition_snapshot_revision: int + :param release_id: Gets or sets the release ID of which this revision belongs. + :type release_id: int + """ + + _attribute_map = { + 'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'}, + 'changed_date': {'key': 'changedDate', 'type': 'iso-8601'}, + 'change_details': {'key': 'changeDetails', 'type': 'str'}, + 'change_type': {'key': 'changeType', 'type': 'str'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'definition_snapshot_revision': {'key': 'definitionSnapshotRevision', 'type': 'int'}, + 'release_id': {'key': 'releaseId', 'type': 'int'} + } + + def __init__(self, changed_by=None, changed_date=None, change_details=None, change_type=None, comment=None, definition_snapshot_revision=None, release_id=None): + super(ReleaseRevision, self).__init__() + self.changed_by = changed_by + self.changed_date = changed_date + self.change_details = change_details + self.change_type = change_type + self.comment = comment + self.definition_snapshot_revision = definition_snapshot_revision + self.release_id = release_id + + +class ReleaseSchedule(Model): + """ReleaseSchedule. + + :param days_to_release: Days of the week to release. + :type days_to_release: object + :param job_id: Team Foundation Job Definition Job Id. + :type job_id: str + :param schedule_only_with_changes: Flag to determine if this schedule should only release if the associated artifact has been changed or release definition changed. + :type schedule_only_with_changes: bool + :param start_hours: Local time zone hour to start. + :type start_hours: int + :param start_minutes: Local time zone minute to start. + :type start_minutes: int + :param time_zone_id: Time zone Id of release schedule, such as 'UTC'. + :type time_zone_id: str + """ + + _attribute_map = { + 'days_to_release': {'key': 'daysToRelease', 'type': 'object'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'schedule_only_with_changes': {'key': 'scheduleOnlyWithChanges', 'type': 'bool'}, + 'start_hours': {'key': 'startHours', 'type': 'int'}, + 'start_minutes': {'key': 'startMinutes', 'type': 'int'}, + 'time_zone_id': {'key': 'timeZoneId', 'type': 'str'} + } + + def __init__(self, days_to_release=None, job_id=None, schedule_only_with_changes=None, start_hours=None, start_minutes=None, time_zone_id=None): + super(ReleaseSchedule, self).__init__() + self.days_to_release = days_to_release + self.job_id = job_id + self.schedule_only_with_changes = schedule_only_with_changes + self.start_hours = start_hours + self.start_minutes = start_minutes + self.time_zone_id = time_zone_id + + +class ReleaseSettings(Model): + """ReleaseSettings. + + :param retention_settings: Release retention settings. + :type retention_settings: :class:`RetentionSettings ` + """ + + _attribute_map = { + 'retention_settings': {'key': 'retentionSettings', 'type': 'RetentionSettings'} + } + + def __init__(self, retention_settings=None): + super(ReleaseSettings, self).__init__() + self.retention_settings = retention_settings + + +class ReleaseShallowReference(Model): + """ReleaseShallowReference. + + :param _links: Gets the links to related resources, APIs, and views for the release. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release. + :type id: int + :param name: Gets or sets the name of the release. + :type name: str + :param url: Gets the REST API url to access the release. + :type url: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, _links=None, id=None, name=None, url=None): + super(ReleaseShallowReference, self).__init__() + self._links = _links + self.id = id + self.name = name + self.url = url + + +class ReleaseStartEnvironmentMetadata(Model): + """ReleaseStartEnvironmentMetadata. + + :param definition_environment_id: Sets release definition environment id. + :type definition_environment_id: int + :param variables: Sets list of environments variables to be overridden at deployment time. + :type variables: dict + """ + + _attribute_map = { + 'definition_environment_id': {'key': 'definitionEnvironmentId', 'type': 'int'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, definition_environment_id=None, variables=None): + super(ReleaseStartEnvironmentMetadata, self).__init__() + self.definition_environment_id = definition_environment_id + self.variables = variables + + +class ReleaseStartMetadata(Model): + """ReleaseStartMetadata. + + :param artifacts: Sets list of artifact to create a release. + :type artifacts: list of :class:`ArtifactMetadata ` + :param definition_id: Sets definition Id to create a release. + :type definition_id: int + :param description: Sets description to create a release. + :type description: str + :param environments_metadata: Sets list of environments meta data. + :type environments_metadata: list of :class:`ReleaseStartEnvironmentMetadata ` + :param is_draft: Sets 'true' to create release in draft mode, 'false' otherwise. + :type is_draft: bool + :param manual_environments: Sets list of environments to manual as condition. + :type manual_environments: list of str + :param properties: + :type properties: :class:`object ` + :param reason: Sets reason to create a release. + :type reason: object + :param variables: Sets list of release variables to be overridden at deployment time. + :type variables: dict + """ + + _attribute_map = { + 'artifacts': {'key': 'artifacts', 'type': '[ArtifactMetadata]'}, + 'definition_id': {'key': 'definitionId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments_metadata': {'key': 'environmentsMetadata', 'type': '[ReleaseStartEnvironmentMetadata]'}, + 'is_draft': {'key': 'isDraft', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'reason': {'key': 'reason', 'type': 'object'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, artifacts=None, definition_id=None, description=None, environments_metadata=None, is_draft=None, manual_environments=None, properties=None, reason=None, variables=None): + super(ReleaseStartMetadata, self).__init__() + self.artifacts = artifacts + self.definition_id = definition_id + self.description = description + self.environments_metadata = environments_metadata + self.is_draft = is_draft + self.manual_environments = manual_environments + self.properties = properties + self.reason = reason + self.variables = variables + + +class ReleaseTask(Model): + """ReleaseTask. + + :param agent_name: Agent name on which task executed. + :type agent_name: str + :param date_ended: + :type date_ended: datetime + :param date_started: + :type date_started: datetime + :param finish_time: Finish time of the release task. + :type finish_time: datetime + :param id: ID of the release task. + :type id: int + :param issues: List of issues occurred while execution of task. + :type issues: list of :class:`Issue ` + :param line_count: Number of lines log release task has. + :type line_count: long + :param log_url: Log URL of the task. + :type log_url: str + :param name: Name of the task. + :type name: str + :param percent_complete: Task execution complete precent. + :type percent_complete: int + :param rank: Rank of the release task. + :type rank: int + :param result_code: Result code of the task. + :type result_code: str + :param start_time: ID of the release task. + :type start_time: datetime + :param status: Status of release task. + :type status: object + :param task: Workflow task reference. + :type task: :class:`WorkflowTaskReference ` + :param timeline_record_id: Timeline record ID of the release task. + :type timeline_record_id: str + """ + + _attribute_map = { + 'agent_name': {'key': 'agentName', 'type': 'str'}, + 'date_ended': {'key': 'dateEnded', 'type': 'iso-8601'}, + 'date_started': {'key': 'dateStarted', 'type': 'iso-8601'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'int'}, + 'issues': {'key': 'issues', 'type': '[Issue]'}, + 'line_count': {'key': 'lineCount', 'type': 'long'}, + 'log_url': {'key': 'logUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'object'}, + 'task': {'key': 'task', 'type': 'WorkflowTaskReference'}, + 'timeline_record_id': {'key': 'timelineRecordId', 'type': 'str'} + } + + def __init__(self, agent_name=None, date_ended=None, date_started=None, finish_time=None, id=None, issues=None, line_count=None, log_url=None, name=None, percent_complete=None, rank=None, result_code=None, start_time=None, status=None, task=None, timeline_record_id=None): + super(ReleaseTask, self).__init__() + self.agent_name = agent_name + self.date_ended = date_ended + self.date_started = date_started + self.finish_time = finish_time + self.id = id + self.issues = issues + self.line_count = line_count + self.log_url = log_url + self.name = name + self.percent_complete = percent_complete + self.rank = rank + self.result_code = result_code + self.start_time = start_time + self.status = status + self.task = task + self.timeline_record_id = timeline_record_id + + +class ReleaseTaskAttachment(Model): + """ReleaseTaskAttachment. + + :param _links: Reference links of task. + :type _links: :class:`ReferenceLinks ` + :param created_on: Data and time when it created. + :type created_on: datetime + :param modified_by: Identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Data and time when modified. + :type modified_on: datetime + :param name: Name of the task attachment. + :type name: str + :param record_id: Record ID of the task. + :type record_id: str + :param timeline_id: Timeline ID of the task. + :type timeline_id: str + :param type: Type of task attachment. + :type type: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'record_id': {'key': 'recordId', 'type': 'str'}, + 'timeline_id': {'key': 'timelineId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'} + } + + def __init__(self, _links=None, created_on=None, modified_by=None, modified_on=None, name=None, record_id=None, timeline_id=None, type=None): + super(ReleaseTaskAttachment, self).__init__() + self._links = _links + self.created_on = created_on + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.record_id = record_id + self.timeline_id = timeline_id + self.type = type + + +class ReleaseUpdateMetadata(Model): + """ReleaseUpdateMetadata. + + :param comment: Sets comment for release. + :type comment: str + :param keep_forever: Set 'true' to exclude the release from retention policies. + :type keep_forever: bool + :param manual_environments: Sets list of manual environments. + :type manual_environments: list of str + :param name: Sets name of the release. + :type name: str + :param status: Sets status of the release. + :type status: object + """ + + _attribute_map = { + 'comment': {'key': 'comment', 'type': 'str'}, + 'keep_forever': {'key': 'keepForever', 'type': 'bool'}, + 'manual_environments': {'key': 'manualEnvironments', 'type': '[str]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'object'} + } + + def __init__(self, comment=None, keep_forever=None, manual_environments=None, name=None, status=None): + super(ReleaseUpdateMetadata, self).__init__() + self.comment = comment + self.keep_forever = keep_forever + self.manual_environments = manual_environments + self.name = name + self.status = status + + +class ReleaseWorkItemRef(Model): + """ReleaseWorkItemRef. + + :param assignee: + :type assignee: str + :param id: Gets or sets the ID. + :type id: str + :param state: Gets or sets the state. + :type state: str + :param title: Gets or sets the title. + :type title: str + :param type: Gets or sets the type. + :type type: str + :param url: Gets or sets the workitem url. + :type url: str + """ + + _attribute_map = { + 'assignee': {'key': 'assignee', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'} + } + + def __init__(self, assignee=None, id=None, state=None, title=None, type=None, url=None): + super(ReleaseWorkItemRef, self).__init__() + self.assignee = assignee + self.id = id + self.state = state + self.title = title + self.type = type + self.url = url + + +class RetentionPolicy(Model): + """RetentionPolicy. + + :param days_to_keep: Indicates the number of days to keep deployment. + :type days_to_keep: int + """ + + _attribute_map = { + 'days_to_keep': {'key': 'daysToKeep', 'type': 'int'} + } + + def __init__(self, days_to_keep=None): + super(RetentionPolicy, self).__init__() + self.days_to_keep = days_to_keep + + +class RetentionSettings(Model): + """RetentionSettings. + + :param days_to_keep_deleted_releases: Number of days to keep deleted releases. + :type days_to_keep_deleted_releases: int + :param default_environment_retention_policy: Specifies the default environment retention policy. + :type default_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + :param maximum_environment_retention_policy: Specifies the maximum environment retention policy. + :type maximum_environment_retention_policy: :class:`EnvironmentRetentionPolicy ` + """ + + _attribute_map = { + 'days_to_keep_deleted_releases': {'key': 'daysToKeepDeletedReleases', 'type': 'int'}, + 'default_environment_retention_policy': {'key': 'defaultEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'}, + 'maximum_environment_retention_policy': {'key': 'maximumEnvironmentRetentionPolicy', 'type': 'EnvironmentRetentionPolicy'} + } + + def __init__(self, days_to_keep_deleted_releases=None, default_environment_retention_policy=None, maximum_environment_retention_policy=None): + super(RetentionSettings, self).__init__() + self.days_to_keep_deleted_releases = days_to_keep_deleted_releases + self.default_environment_retention_policy = default_environment_retention_policy + self.maximum_environment_retention_policy = maximum_environment_retention_policy + + +class SourcePullRequestVersion(Model): + """SourcePullRequestVersion. + + :param pull_request_id: Pull Request Id for which the release will publish status. + :type pull_request_id: str + :param pull_request_merged_at: Date and time of the pull request merge creation. It is required to keep timeline record of Releases created by pull request. + :type pull_request_merged_at: datetime + :param source_branch_commit_id: Source branch commit Id of the Pull Request for which the release will publish status. + :type source_branch_commit_id: str + :param target_branch: Target branch of the Pull Request. + :type target_branch: str + """ + + _attribute_map = { + 'pull_request_id': {'key': 'pullRequestId', 'type': 'str'}, + 'pull_request_merged_at': {'key': 'pullRequestMergedAt', 'type': 'iso-8601'}, + 'source_branch_commit_id': {'key': 'sourceBranchCommitId', 'type': 'str'}, + 'target_branch': {'key': 'targetBranch', 'type': 'str'} + } + + def __init__(self, pull_request_id=None, pull_request_merged_at=None, source_branch_commit_id=None, target_branch=None): + super(SourcePullRequestVersion, self).__init__() + self.pull_request_id = pull_request_id + self.pull_request_merged_at = pull_request_merged_at + self.source_branch_commit_id = source_branch_commit_id + self.target_branch = target_branch + + +class SummaryMailSection(Model): + """SummaryMailSection. + + :param html_content: Html content of summary mail. + :type html_content: str + :param rank: Rank of the summary mail. + :type rank: int + :param section_type: Summary mail section type. MailSectionType has section types. + :type section_type: object + :param title: Title of the summary mail. + :type title: str + """ + + _attribute_map = { + 'html_content': {'key': 'htmlContent', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'section_type': {'key': 'sectionType', 'type': 'object'}, + 'title': {'key': 'title', 'type': 'str'} + } + + def __init__(self, html_content=None, rank=None, section_type=None, title=None): + super(SummaryMailSection, self).__init__() + self.html_content = html_content + self.rank = rank + self.section_type = section_type + self.title = title + + +class TaskInputDefinitionBase(Model): + """TaskInputDefinitionBase. + + :param aliases: + :type aliases: list of str + :param default_value: + :type default_value: str + :param group_name: + :type group_name: str + :param help_mark_down: + :type help_mark_down: str + :param label: + :type label: str + :param name: + :type name: str + :param options: + :type options: dict + :param properties: + :type properties: dict + :param required: + :type required: bool + :param type: + :type type: str + :param validation: + :type validation: :class:`TaskInputValidation ` + :param visible_rule: + :type visible_rule: str + """ + + _attribute_map = { + 'aliases': {'key': 'aliases', 'type': '[str]'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'group_name': {'key': 'groupName', 'type': 'str'}, + 'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'options': {'key': 'options', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + 'required': {'key': 'required', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'validation': {'key': 'validation', 'type': 'TaskInputValidation'}, + 'visible_rule': {'key': 'visibleRule', 'type': 'str'} + } + + def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None): + super(TaskInputDefinitionBase, self).__init__() + self.aliases = aliases + self.default_value = default_value + self.group_name = group_name + self.help_mark_down = help_mark_down + self.label = label + self.name = name + self.options = options + self.properties = properties + self.required = required + self.type = type + self.validation = validation + self.visible_rule = visible_rule + + +class TaskInputValidation(Model): + """TaskInputValidation. + + :param expression: Conditional expression + :type expression: str + :param message: Message explaining how user can correct if validation fails + :type message: str + """ + + _attribute_map = { + 'expression': {'key': 'expression', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'} + } + + def __init__(self, expression=None, message=None): + super(TaskInputValidation, self).__init__() + self.expression = expression + self.message = message + + +class TaskSourceDefinitionBase(Model): + """TaskSourceDefinitionBase. + + :param auth_key: + :type auth_key: str + :param endpoint: + :type endpoint: str + :param key_selector: + :type key_selector: str + :param selector: + :type selector: str + :param target: + :type target: str + """ + + _attribute_map = { + 'auth_key': {'key': 'authKey', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'key_selector': {'key': 'keySelector', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'} + } + + def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None): + super(TaskSourceDefinitionBase, self).__init__() + self.auth_key = auth_key + self.endpoint = endpoint + self.key_selector = key_selector + self.selector = selector + self.target = target + + +class VariableGroup(Model): + """VariableGroup. + + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets description. + :type description: str + :param id: Gets the unique identifier of this field. + :type id: int + :param is_shared: Denotes if a variable group is shared with other project or not. + :type is_shared: bool + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param name: Gets or sets name. + :type name: str + :param provider_data: Gets or sets provider data. + :type provider_data: :class:`VariableGroupProviderData ` + :param type: Gets or sets type. + :type type: str + :param variables: Gets and sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'int'}, + 'is_shared': {'key': 'isShared', 'type': 'bool'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'}, + 'type': {'key': 'type', 'type': 'str'}, + 'variables': {'key': 'variables', 'type': '{VariableValue}'} + } + + def __init__(self, created_by=None, created_on=None, description=None, id=None, is_shared=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None): + super(VariableGroup, self).__init__() + self.created_by = created_by + self.created_on = created_on + self.description = description + self.id = id + self.is_shared = is_shared + self.modified_by = modified_by + self.modified_on = modified_on + self.name = name + self.provider_data = provider_data + self.type = type + self.variables = variables + + +class VariableGroupProviderData(Model): + """VariableGroupProviderData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(VariableGroupProviderData, self).__init__() + + +class VariableValue(Model): + """VariableValue. + + :param is_secret: Gets or sets as the variable is secret or not. + :type is_secret: bool + :param value: Gets or sets the value. + :type value: str + """ + + _attribute_map = { + 'is_secret': {'key': 'isSecret', 'type': 'bool'}, + 'value': {'key': 'value', 'type': 'str'} + } + + def __init__(self, is_secret=None, value=None): + super(VariableValue, self).__init__() + self.is_secret = is_secret + self.value = value + + +class WorkflowTask(Model): + """WorkflowTask. + + :param always_run: Gets or sets as the task always run or not. + :type always_run: bool + :param condition: Gets or sets the task condition. + :type condition: str + :param continue_on_error: Gets or sets as the task continue run on error or not. + :type continue_on_error: bool + :param definition_type: Gets or sets the task definition type. Example:- 'Agent', DeploymentGroup', 'Server' or 'ServerGate'. + :type definition_type: str + :param enabled: Gets or sets as the task enabled or not. + :type enabled: bool + :param environment: Gets or sets the task environment variables. + :type environment: dict + :param inputs: Gets or sets the task inputs. + :type inputs: dict + :param name: Gets or sets the name of the task. + :type name: str + :param override_inputs: Gets or sets the task override inputs. + :type override_inputs: dict + :param ref_name: Gets or sets the reference name of the task. + :type ref_name: str + :param task_id: Gets or sets the ID of the task. + :type task_id: str + :param timeout_in_minutes: Gets or sets the task timeout. + :type timeout_in_minutes: int + :param version: Gets or sets the version of the task. + :type version: str + """ + + _attribute_map = { + 'always_run': {'key': 'alwaysRun', 'type': 'bool'}, + 'condition': {'key': 'condition', 'type': 'str'}, + 'continue_on_error': {'key': 'continueOnError', 'type': 'bool'}, + 'definition_type': {'key': 'definitionType', 'type': 'str'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'environment': {'key': 'environment', 'type': '{str}'}, + 'inputs': {'key': 'inputs', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'override_inputs': {'key': 'overrideInputs', 'type': '{str}'}, + 'ref_name': {'key': 'refName', 'type': 'str'}, + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, always_run=None, condition=None, continue_on_error=None, definition_type=None, enabled=None, environment=None, inputs=None, name=None, override_inputs=None, ref_name=None, task_id=None, timeout_in_minutes=None, version=None): + super(WorkflowTask, self).__init__() + self.always_run = always_run + self.condition = condition + self.continue_on_error = continue_on_error + self.definition_type = definition_type + self.enabled = enabled + self.environment = environment + self.inputs = inputs + self.name = name + self.override_inputs = override_inputs + self.ref_name = ref_name + self.task_id = task_id + self.timeout_in_minutes = timeout_in_minutes + self.version = version + + +class WorkflowTaskReference(Model): + """WorkflowTaskReference. + + :param id: Task identifier. + :type id: str + :param name: Name of the task. + :type name: str + :param version: Version of the task. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, name=None, version=None): + super(WorkflowTaskReference, self).__init__() + self.id = id + self.name = name + self.version = version + + +class ReleaseDefinition(ReleaseDefinitionShallowReference): + """ReleaseDefinition. + + :param _links: Gets the links to related resources, APIs, and views for the release definition. + :type _links: :class:`ReferenceLinks ` + :param id: Gets the unique identifier of release definition. + :type id: int + :param name: Gets or sets the name of the release definition. + :type name: str + :param path: Gets or sets the path of the release definition. + :type path: str + :param project_reference: Gets or sets project reference. + :type project_reference: :class:`ProjectReference ` + :param url: Gets the REST API url to access the release definition. + :type url: str + :param artifacts: Gets or sets the list of artifacts. + :type artifacts: list of :class:`Artifact ` + :param comment: Gets or sets comment. + :type comment: str + :param created_by: Gets or sets the identity who created. + :type created_by: :class:`IdentityRef ` + :param created_on: Gets date on which it got created. + :type created_on: datetime + :param description: Gets or sets the description. + :type description: str + :param environments: Gets or sets the list of environments. + :type environments: list of :class:`ReleaseDefinitionEnvironment ` + :param is_deleted: Whether release definition is deleted. + :type is_deleted: bool + :param last_release: Gets the reference of last release. + :type last_release: :class:`ReleaseReference ` + :param modified_by: Gets or sets the identity who modified. + :type modified_by: :class:`IdentityRef ` + :param modified_on: Gets date on which it got modified. + :type modified_on: datetime + :param pipeline_process: Gets or sets pipeline process. + :type pipeline_process: :class:`PipelineProcess ` + :param properties: Gets or sets properties. + :type properties: :class:`object ` + :param release_name_format: Gets or sets the release name format. + :type release_name_format: str + :param retention_policy: + :type retention_policy: :class:`RetentionPolicy ` + :param revision: Gets the revision number. + :type revision: int + :param source: Gets or sets source of release definition. + :type source: object + :param tags: Gets or sets list of tags. + :type tags: list of str + :param triggers: Gets or sets the list of triggers. + :type triggers: list of :class:`object ` + :param variable_groups: Gets or sets the list of variable groups. + :type variable_groups: list of int + :param variables: Gets or sets the dictionary of variables. + :type variables: dict + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'project_reference': {'key': 'projectReference', 'type': 'ProjectReference'}, + 'url': {'key': 'url', 'type': 'str'}, + 'artifacts': {'key': 'artifacts', 'type': '[Artifact]'}, + 'comment': {'key': 'comment', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'IdentityRef'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'environments': {'key': 'environments', 'type': '[ReleaseDefinitionEnvironment]'}, + 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'last_release': {'key': 'lastRelease', 'type': 'ReleaseReference'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, + 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, + 'pipeline_process': {'key': 'pipelineProcess', 'type': 'PipelineProcess'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'release_name_format': {'key': 'releaseNameFormat', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'revision': {'key': 'revision', 'type': 'int'}, + 'source': {'key': 'source', 'type': 'object'}, + 'tags': {'key': 'tags', 'type': '[str]'}, + 'triggers': {'key': 'triggers', 'type': '[object]'}, + 'variable_groups': {'key': 'variableGroups', 'type': '[int]'}, + 'variables': {'key': 'variables', 'type': '{ConfigurationVariableValue}'} + } + + def __init__(self, _links=None, id=None, name=None, path=None, project_reference=None, url=None, artifacts=None, comment=None, created_by=None, created_on=None, description=None, environments=None, is_deleted=None, last_release=None, modified_by=None, modified_on=None, pipeline_process=None, properties=None, release_name_format=None, retention_policy=None, revision=None, source=None, tags=None, triggers=None, variable_groups=None, variables=None): + super(ReleaseDefinition, self).__init__(_links=_links, id=id, name=name, path=path, project_reference=project_reference, url=url) + self.artifacts = artifacts + self.comment = comment + self.created_by = created_by + self.created_on = created_on + self.description = description + self.environments = environments + self.is_deleted = is_deleted + self.last_release = last_release + self.modified_by = modified_by + self.modified_on = modified_on + self.pipeline_process = pipeline_process + self.properties = properties + self.release_name_format = release_name_format + self.retention_policy = retention_policy + self.revision = revision + self.source = source + self.tags = tags + self.triggers = triggers + self.variable_groups = variable_groups + self.variables = variables + + +class ReleaseDefinitionApprovalStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionApprovalStep. + + :param id: ID of the approval or deploy step. + :type id: int + :param approver: Gets and sets the approver. + :type approver: :class:`IdentityRef ` + :param is_automated: Indicates whether the approval automated. + :type is_automated: bool + :param is_notification_on: Indicates whether the approval notification set. + :type is_notification_on: bool + :param rank: Gets or sets the rank of approval step. + :type rank: int + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'approver': {'key': 'approver', 'type': 'IdentityRef'}, + 'is_automated': {'key': 'isAutomated', 'type': 'bool'}, + 'is_notification_on': {'key': 'isNotificationOn', 'type': 'bool'}, + 'rank': {'key': 'rank', 'type': 'int'} + } + + def __init__(self, id=None, approver=None, is_automated=None, is_notification_on=None, rank=None): + super(ReleaseDefinitionApprovalStep, self).__init__(id=id) + self.approver = approver + self.is_automated = is_automated + self.is_notification_on = is_notification_on + self.rank = rank + + +class ReleaseDefinitionDeployStep(ReleaseDefinitionEnvironmentStep): + """ReleaseDefinitionDeployStep. + + :param id: ID of the approval or deploy step. + :type id: int + :param tasks: The list of steps for this definition. + :type tasks: list of :class:`WorkflowTask ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'tasks': {'key': 'tasks', 'type': '[WorkflowTask]'} + } + + def __init__(self, id=None, tasks=None): + super(ReleaseDefinitionDeployStep, self).__init__(id=id) + self.tasks = tasks + + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTriggerConfiguration', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'EnvironmentTrigger', + 'FavoriteItem', + 'Folder', + 'GateUpdateMetadata', + 'GraphSubjectBase', + 'IdentityRef', + 'IgnoredGate', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'PipelineProcess', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartEnvironmentMetadata', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTaskAttachment', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SourcePullRequestVersion', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', +] diff --git a/azure-devops/azure/devops/v5_1/release/release_client.py b/azure-devops/azure/devops/v5_1/release/release_client.py new file mode 100644 index 00000000..820ece1b --- /dev/null +++ b/azure-devops/azure/devops/v5_1/release/release_client.py @@ -0,0 +1,791 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class ReleaseClient(Client): + """Release + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' + + def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): + """GetApprovals. + [Preview API] Get a list of approvals + :param str project: Project ID or project name + :param str assigned_to_filter: Approvals assigned to this user. + :param str status_filter: Approvals with this status. Default is 'pending'. + :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. + :param str type_filter: Approval with this type. + :param int top: Number of approvals to get. Default is 50. + :param int continuation_token: Gets the approvals after the continuation token provided. + :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. + :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if assigned_to_filter is not None: + query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if release_ids_filter is not None: + release_ids_filter = ",".join(map(str, release_ids_filter)) + query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') + if type_filter is not None: + query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if include_my_group_approvals is not None: + query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') + response = self._send(http_method='GET', + location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) + + def update_release_approval(self, approval, project, approval_id): + """UpdateReleaseApproval. + [Preview API] Update status of an approval + :param :class:` ` approval: ReleaseApproval object having status, approver and comments. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + content = self._serialize.body(approval, 'ReleaseApproval') + response = self._send(http_method='PATCH', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='5.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseApproval', response) + + def get_release_task_attachment_content(self, project, release_id, environment_id, attempt_id, plan_id, timeline_id, record_id, type, name, **kwargs): + """GetReleaseTaskAttachmentContent. + [Preview API] Get a release task attachment. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of the release environment. + :param int attempt_id: Attempt number of deployment. + :param str plan_id: Plan Id of the deploy phase. + :param str timeline_id: Timeline Id of the task. + :param str record_id: Record Id of attachment. + :param str type: Type of the attachment. + :param str name: Name of the attachment. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + if record_id is not None: + route_values['recordId'] = self._serialize.url('record_id', record_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='60b86efb-7b8c-4853-8f9f-aa142b77b479', + version='5.1-preview.1', + route_values=route_values, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_release_task_attachments(self, project, release_id, environment_id, attempt_id, plan_id, type): + """GetReleaseTaskAttachments. + [Preview API] Get the release task attachments. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of the release environment. + :param int attempt_id: Attempt number of deployment. + :param str plan_id: Plan Id of the deploy phase. + :param str type: Type of the attachment. + :rtype: [ReleaseTaskAttachment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if attempt_id is not None: + route_values['attemptId'] = self._serialize.url('attempt_id', attempt_id, 'int') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='a4d06688-0dfa-4895-82a5-f43ec9452306', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseTaskAttachment]', self._unwrap_collection(response)) + + def create_release_definition(self, release_definition, project): + """CreateReleaseDefinition. + [Preview API] Create a release definition + :param :class:` ` release_definition: release definition object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='POST', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def delete_release_definition(self, project, definition_id, comment=None, force_delete=None): + """DeleteReleaseDefinition. + [Preview API] Delete a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param str comment: Comment for deleting a release definition. + :param bool force_delete: 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + if force_delete is not None: + query_parameters['forceDelete'] = self._serialize.query('force_delete', force_delete, 'bool') + self._send(http_method='DELETE', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + + def get_release_definition(self, project, definition_id, property_filters=None): + """GetReleaseDefinition. + [Preview API] Get a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definition will contain values for the specified property Ids (if they exist). If not set, properties will not be included. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinition', response) + + def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None, is_deleted=None, search_text_contains_folder_name=None): + """GetReleaseDefinitions. + [Preview API] Get a list of release definitions. + :param str project: Project ID or project name + :param str search_text: Get release definitions with names containing searchText. + :param str expand: The properties that should be expanded in the list of Release definitions. + :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param int top: Number of release definitions to get. + :param str continuation_token: Gets the release definitions after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. + :param str path: Gets the release definitions under the specified path. + :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. + :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definitions will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release Definition from results irrespective of whether it has property set or not. + :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. + :param bool is_deleted: 'true' to get release definitions that has been deleted. Default is 'false' + :param bool search_text_contains_folder_name: 'true' to get the release definitions under the folder with name as specified in searchText. Default is 'false'. + :rtype: [ReleaseDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if is_exact_name_match is not None: + query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if definition_id_filter is not None: + definition_id_filter = ",".join(definition_id_filter) + query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if search_text_contains_folder_name is not None: + query_parameters['searchTextContainsFolderName'] = self._serialize.query('search_text_contains_folder_name', search_text_contains_folder_name, 'bool') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.1-preview.3', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) + + def update_release_definition(self, release_definition, project): + """UpdateReleaseDefinition. + [Preview API] Update a release definition. + :param :class:` ` release_definition: Release definition object to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='PUT', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.1-preview.3', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None, min_started_time=None, max_started_time=None, source_branch=None): + """GetDeployments. + [Preview API] + :param str project: Project ID or project name + :param int definition_id: + :param int definition_environment_id: + :param str created_by: + :param datetime min_modified_time: + :param datetime max_modified_time: + :param str deployment_status: + :param str operation_status: + :param bool latest_attempts_only: + :param str query_order: + :param int top: + :param int continuation_token: + :param str created_for: + :param datetime min_started_time: + :param datetime max_started_time: + :param str source_branch: + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if min_modified_time is not None: + query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') + if max_modified_time is not None: + query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') + if deployment_status is not None: + query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') + if operation_status is not None: + query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') + if latest_attempts_only is not None: + query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if created_for is not None: + query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + if min_started_time is not None: + query_parameters['minStartedTime'] = self._serialize.query('min_started_time', min_started_time, 'iso-8601') + if max_started_time is not None: + query_parameters['maxStartedTime'] = self._serialize.query('max_started_time', max_started_time, 'iso-8601') + if source_branch is not None: + query_parameters['sourceBranch'] = self._serialize.query('source_branch', source_branch, 'str') + response = self._send(http_method='GET', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) + + def update_release_environment(self, environment_update_data, project, release_id, environment_id): + """UpdateReleaseEnvironment. + [Preview API] Update the status of a release environment + :param :class:` ` environment_update_data: Environment update meta data. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + content = self._serialize.body(environment_update_data, 'ReleaseEnvironmentUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a7e426b1-03dc-48af-9dfe-c98bac612dcb', + version='5.1-preview.6', + route_values=route_values, + content=content) + return self._deserialize('ReleaseEnvironment', response) + + def update_gates(self, gate_update_metadata, project, gate_step_id): + """UpdateGates. + [Preview API] Updates the gate for a deployment. + :param :class:` ` gate_update_metadata: Metadata to patch the Release Gates. + :param str project: Project ID or project name + :param int gate_step_id: Gate step Id. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if gate_step_id is not None: + route_values['gateStepId'] = self._serialize.url('gate_step_id', gate_step_id, 'int') + content = self._serialize.body(gate_update_metadata, 'GateUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='2666a539-2001-4f80-bcc7-0379956749d4', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ReleaseGates', response) + + def get_logs(self, project, release_id, **kwargs): + """GetLogs. + [Preview API] Get logs for a release Id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038', + version='5.1-preview.2', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_task_log(self, project, release_id, environment_id, release_deploy_phase_id, task_id, start_line=None, end_line=None, **kwargs): + """GetTaskLog. + [Preview API] Gets the task log of a release as a plain text file. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int environment_id: Id of release environment. + :param int release_deploy_phase_id: Release deploy phase Id. + :param int task_id: ReleaseTask Id for the log. + :param long start_line: Starting line number for logs + :param long end_line: Ending line number for logs + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if environment_id is not None: + route_values['environmentId'] = self._serialize.url('environment_id', environment_id, 'int') + if release_deploy_phase_id is not None: + route_values['releaseDeployPhaseId'] = self._serialize.url('release_deploy_phase_id', release_deploy_phase_id, 'int') + if task_id is not None: + route_values['taskId'] = self._serialize.url('task_id', task_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='17c91af7-09fd-4256-bff1-c24ee4f73bc0', + version='5.1-preview.2', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_manual_intervention(self, project, release_id, manual_intervention_id): + """GetManualIntervention. + [Preview API] Get manual intervention for a given release and manual intervention id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('ManualIntervention', response) + + def get_manual_interventions(self, project, release_id): + """GetManualInterventions. + [Preview API] List all manual interventions for a given release. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: [ManualIntervention] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) + + def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): + """UpdateManualIntervention. + [Preview API] Update manual intervention. + :param :class:` ` manual_intervention_update_metadata: Meta data to update manual intervention. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.1-preview.1', + route_values=route_values, + content=content) + return self._deserialize('ManualIntervention', response) + + def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None, release_id_filter=None, path=None): + """GetReleases. + [Preview API] Get a list of releases + :param str project: Project ID or project name + :param int definition_id: Releases from this release definition Id. + :param int definition_environment_id: + :param str search_text: Releases with names containing searchText. + :param str created_by: Releases created by this user. + :param str status_filter: Releases that have this status. + :param int environment_status_filter: + :param datetime min_created_time: Releases that were created after this time. + :param datetime max_created_time: Releases that were created before this time. + :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. + :param int top: Number of releases to get. Default is 50. + :param int continuation_token: Gets the releases after the continuation token provided. + :param str expand: The property that should be expanded in the list of releases. + :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. + :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. + :param bool is_deleted: Gets the soft deleted releases, if true. + :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Releases will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release from results irrespective of whether it has property set or not. + :param [int] release_id_filter: A comma-delimited list of releases Ids. Only releases with these Ids will be returned. + :param str path: Releases under this folder path will be returned + :rtype: [Release] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if environment_status_filter is not None: + query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') + if min_created_time is not None: + query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') + if max_created_time is not None: + query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type_id is not None: + query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + if source_branch_filter is not None: + query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if release_id_filter is not None: + release_id_filter = ",".join(map(str, release_id_filter)) + query_parameters['releaseIdFilter'] = self._serialize.query('release_id_filter', release_id_filter, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.1-preview.8', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Release]', self._unwrap_collection(response)) + + def create_release(self, release_start_metadata, project): + """CreateRelease. + [Preview API] Create a release. + :param :class:` ` release_start_metadata: Metadata to create a release. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') + response = self._send(http_method='POST', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.1-preview.8', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_release(self, project, release_id, approval_filters=None, property_filters=None, expand=None, top_gate_records=None): + """GetRelease. + [Preview API] Get a Release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release will contain values for the specified property Ids (if they exist). If not set, properties will not be included. + :param str expand: A property that should be expanded in the release. + :param int top_gate_records: Number of release gate records to get. Default is 5. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if approval_filters is not None: + query_parameters['approvalFilters'] = self._serialize.query('approval_filters', approval_filters, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if top_gate_records is not None: + query_parameters['$topGateRecords'] = self._serialize.query('top_gate_records', top_gate_records, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.1-preview.8', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Release', response) + + def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): + """GetReleaseRevision. + [Preview API] Get release for a given revision number. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int definition_snapshot_revision: Definition snapshot revision number. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if definition_snapshot_revision is not None: + query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.1-preview.8', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def update_release(self, release, project, release_id): + """UpdateRelease. + [Preview API] Update a complete release object. + :param :class:` ` release: Release object for update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release, 'Release') + response = self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.1-preview.8', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def update_release_resource(self, release_update_metadata, project, release_id): + """UpdateReleaseResource. + [Preview API] Update few properties of a release. + :param :class:` ` release_update_metadata: Properties of release to update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.1-preview.8', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_definition_revision(self, project, definition_id, revision, **kwargs): + """GetDefinitionRevision. + [Preview API] Get release definition for a given definitionId and revision + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :param int revision: Id of the revision. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + if revision is not None: + route_values['revision'] = self._serialize.url('revision', revision, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='5.1-preview.1', + route_values=route_values, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_release_definition_history(self, project, definition_id): + """GetReleaseDefinitionHistory. + [Preview API] Get revision history for a release definition + :param str project: Project ID or project name + :param int definition_id: Id of the definition. + :rtype: [ReleaseDefinitionRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='258b82e0-9d41-43f3-86d6-fef14ddd44bc', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('[ReleaseDefinitionRevision]', self._unwrap_collection(response)) + From 47d5820831949bac16170254a2ec8a55fc5b3585 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 14 Feb 2019 14:36:07 -0500 Subject: [PATCH 113/191] add factory comment --- azure-devops/azure/devops/v5_0/client_factory.py | 1 + azure-devops/azure/devops/v5_1/client_factory.py | 1 + 2 files changed, 2 insertions(+) diff --git a/azure-devops/azure/devops/v5_0/client_factory.py b/azure-devops/azure/devops/v5_0/client_factory.py index ec02f20a..7ad503b1 100644 --- a/azure-devops/azure/devops/v5_0/client_factory.py +++ b/azure-devops/azure/devops/v5_0/client_factory.py @@ -9,6 +9,7 @@ class ClientFactoryV5_0(object): """ClientFactoryV5_0. + A factory class to get the 5.0 clients. """ def __init__(self, connection): diff --git a/azure-devops/azure/devops/v5_1/client_factory.py b/azure-devops/azure/devops/v5_1/client_factory.py index 7df8204d..a00af82c 100644 --- a/azure-devops/azure/devops/v5_1/client_factory.py +++ b/azure-devops/azure/devops/v5_1/client_factory.py @@ -9,6 +9,7 @@ class ClientFactoryV5_1(object): """ClientFactoryV5_1. + A factory class to get the 5.1 preview clients. """ def __init__(self, connection): From 394b96e80a9997596710d0f18cc8f2d0faf2cb37 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 15 Feb 2019 12:06:10 -0500 Subject: [PATCH 114/191] add missing git_client --- .../azure/devops/v5_0/git/git_client.py | 45 +++++++++++++++++++ .../azure/devops/v5_1/git/git_client.py | 45 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 azure-devops/azure/devops/v5_0/git/git_client.py create mode 100644 azure-devops/azure/devops/v5_1/git/git_client.py diff --git a/azure-devops/azure/devops/v5_0/git/git_client.py b/azure-devops/azure/devops/v5_0/git/git_client.py new file mode 100644 index 00000000..83c449ca --- /dev/null +++ b/azure-devops/azure/devops/v5_0/git/git_client.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Generated file, DO NOT EDIT +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + + +from msrest.universal_http import ClientRequest +from .git_client_base import GitClientBase + + +class GitClient(GitClientBase): + """Git + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GitClient, self).__init__(base_url, creds) + + def get_vsts_info(self, relative_remote_url): + url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') + request = ClientRequest(method='GET', url=url) + headers = {'Accept': 'application/json'} + if self._suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' + response = self._send_request(request, headers) + return self._deserialize('VstsInfo', response) + + @staticmethod + def get_vsts_info_by_remote_url(remote_url, credentials, + suppress_fedauth_redirect=True, + force_msa_pass_through=True): + request = ClientRequest(method='GET', url=remote_url.rstrip('/') + '/vsts/info') + headers = {'Accept': 'application/json'} + if suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' + git_client = GitClient(base_url=remote_url, creds=credentials) + response = git_client._send_request(request, headers) + return git_client._deserialize('VstsInfo', response) diff --git a/azure-devops/azure/devops/v5_1/git/git_client.py b/azure-devops/azure/devops/v5_1/git/git_client.py new file mode 100644 index 00000000..83c449ca --- /dev/null +++ b/azure-devops/azure/devops/v5_1/git/git_client.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Generated file, DO NOT EDIT +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + + +from msrest.universal_http import ClientRequest +from .git_client_base import GitClientBase + + +class GitClient(GitClientBase): + """Git + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GitClient, self).__init__(base_url, creds) + + def get_vsts_info(self, relative_remote_url): + url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info') + request = ClientRequest(method='GET', url=url) + headers = {'Accept': 'application/json'} + if self._suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if self._force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' + response = self._send_request(request, headers) + return self._deserialize('VstsInfo', response) + + @staticmethod + def get_vsts_info_by_remote_url(remote_url, credentials, + suppress_fedauth_redirect=True, + force_msa_pass_through=True): + request = ClientRequest(method='GET', url=remote_url.rstrip('/') + '/vsts/info') + headers = {'Accept': 'application/json'} + if suppress_fedauth_redirect: + headers['X-TFS-FedAuthRedirect'] = 'Suppress' + if force_msa_pass_through: + headers['X-VSS-ForceMsaPassThrough'] = 'true' + git_client = GitClient(base_url=remote_url, creds=credentials) + response = git_client._send_request(request, headers) + return git_client._deserialize('VstsInfo', response) From 85ef56a36114c0c284f329865071c92a092a3f9b Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 15 Feb 2019 13:30:44 -0500 Subject: [PATCH 115/191] add release clients factory --- .gitignore | 1 + README.md | 2 +- azure-devops/azure/devops/client_factory.py | 150 ++ azure-devops/azure/devops/connection.py | 2 + .../devops/released/accounts/__init__.py | 17 + .../released/accounts/accounts_client.py | 48 + .../azure/devops/released/build/__init__.py | 89 + .../devops/released/build/build_client.py | 1045 +++++++++ .../released/cloud_load_test/__init__.py | 62 + .../cloud_load_test/cloud_load_test_client.py | 432 ++++ .../azure/devops/released/core/__init__.py | 37 + .../azure/devops/released/core/core_client.py | 306 +++ .../azure/devops/released/git/__init__.py | 121 + .../azure/devops/released/git/git_client.py | 13 + .../devops/released/git/git_client_base.py | 1943 +++++++++++++++++ .../devops/released/identity/__init__.py | 33 + .../released/identity/identity_client.py | 253 +++ .../devops/released/operations/__init__.py | 18 + .../released/operations/operations_client.py | 47 + .../azure/devops/released/policy/__init__.py | 23 + .../devops/released/policy/policy_client.py | 206 ++ .../azure/devops/released/profile/__init__.py | 26 + .../devops/released/profile/profile_client.py | 59 + .../azure/devops/released/release/__init__.py | 109 + .../devops/released/release/release_client.py | 558 +++++ .../devops/released/security/__init__.py | 22 + .../released/security/security_client.py | 224 ++ .../devops/released/service_hooks/__init__.py | 48 + .../service_hooks/service_hooks_client.py | 364 +++ .../azure/devops/released/task/__init__.py | 38 + .../azure/devops/released/task/task_client.py | 281 +++ .../devops/released/task_agent/__init__.py | 131 ++ .../released/task_agent/task_agent_client.py | 27 + .../azure/devops/released/test/__init__.py | 122 ++ .../azure/devops/released/test/test_client.py | 916 ++++++++ .../azure/devops/released/tfvc/__init__.py | 53 + .../azure/devops/released/tfvc/tfvc_client.py | 747 +++++++ .../azure/devops/released/wiki/__init__.py | 30 + .../azure/devops/released/wiki/wiki_client.py | 366 ++++ .../azure/devops/released/work/__init__.py | 79 + .../azure/devops/released/work/work_client.py | 1129 ++++++++++ .../released/work_item_tracking/__init__.py | 84 + .../work_item_tracking_client.py | 1270 +++++++++++ .../azure/devops/v5_0/accounts/__init__.py | 2 + .../azure/devops/v5_0/boards/__init__.py | 2 + .../azure/devops/v5_0/build/__init__.py | 2 + .../devops/v5_0/client_trace/__init__.py | 2 + .../devops/v5_0/cloud_load_test/__init__.py | 2 + .../devops/v5_0/contributions/__init__.py | 2 + .../azure/devops/v5_0/core/__init__.py | 2 + .../v5_0/customer_intelligence/__init__.py | 2 + .../azure/devops/v5_0/dashboard/__init__.py | 2 + .../v5_0/extension_management/__init__.py | 2 + .../v5_0/feature_availability/__init__.py | 2 + .../v5_0/feature_management/__init__.py | 2 + .../azure/devops/v5_0/feed/__init__.py | 2 + .../azure/devops/v5_0/feed_token/__init__.py | 2 + .../devops/v5_0/file_container/__init__.py | 2 + .../azure/devops/v5_0/gallery/__init__.py | 2 + .../azure/devops/v5_0/git/__init__.py | 2 + .../azure/devops/v5_0/git/git_client.py | 6 - .../azure/devops/v5_0/graph/__init__.py | 2 + .../azure/devops/v5_0/identity/__init__.py | 2 + .../azure/devops/v5_0/licensing/__init__.py | 2 + .../azure/devops/v5_0/location/__init__.py | 2 + .../azure/devops/v5_0/maven/__init__.py | 2 + .../member_entitlement_management/__init__.py | 2 + .../devops/v5_0/notification/__init__.py | 2 + .../azure/devops/v5_0/npm/__init__.py | 2 + .../azure/devops/v5_0/nuGet/__init__.py | 2 + .../azure/devops/v5_0/operations/__init__.py | 2 + .../azure/devops/v5_0/policy/__init__.py | 2 + .../azure/devops/v5_0/profile/__init__.py | 2 + .../devops/v5_0/project_analysis/__init__.py | 2 + .../azure/devops/v5_0/provenance/__init__.py | 2 + .../azure/devops/v5_0/py_pi_api/__init__.py | 2 + .../azure/devops/v5_0/release/__init__.py | 2 + .../azure/devops/v5_0/security/__init__.py | 2 + .../devops/v5_0/service_endpoint/__init__.py | 2 + .../devops/v5_0/service_hooks/__init__.py | 2 + .../azure/devops/v5_0/settings/__init__.py | 2 + .../azure/devops/v5_0/symbol/__init__.py | 2 + .../azure/devops/v5_0/task/__init__.py | 2 + .../azure/devops/v5_0/task_agent/__init__.py | 2 + .../azure/devops/v5_0/test/__init__.py | 2 + .../azure/devops/v5_0/tfvc/__init__.py | 2 + .../azure/devops/v5_0/universal/__init__.py | 2 + .../__init__.py | 2 + .../models.py | 0 .../upack_packaging_client.py} | 0 .../azure/devops/v5_0/wiki/__init__.py | 2 + .../azure/devops/v5_0/work/__init__.py | 2 + .../v5_0/work_item_tracking/__init__.py | 2 + .../work_item_tracking_process/__init__.py | 2 + .../__init__.py | 2 + .../azure/devops/v5_1/accounts/__init__.py | 2 + .../azure/devops/v5_1/build/__init__.py | 2 + .../devops/v5_1/client_trace/__init__.py | 2 + .../devops/v5_1/cloud_load_test/__init__.py | 2 + .../devops/v5_1/contributions/__init__.py | 2 + .../azure/devops/v5_1/core/__init__.py | 2 + .../v5_1/customer_intelligence/__init__.py | 2 + .../azure/devops/v5_1/dashboard/__init__.py | 2 + .../v5_1/extension_management/__init__.py | 2 + .../v5_1/feature_availability/__init__.py | 2 + .../v5_1/feature_management/__init__.py | 2 + .../azure/devops/v5_1/feed/__init__.py | 2 + .../azure/devops/v5_1/feed_token/__init__.py | 2 + .../devops/v5_1/file_container/__init__.py | 2 + .../azure/devops/v5_1/gallery/__init__.py | 2 + .../azure/devops/v5_1/git/__init__.py | 2 + .../azure/devops/v5_1/git/git_client.py | 6 - .../azure/devops/v5_1/graph/__init__.py | 2 + .../azure/devops/v5_1/identity/__init__.py | 2 + .../azure/devops/v5_1/licensing/__init__.py | 2 + .../azure/devops/v5_1/location/__init__.py | 2 + .../azure/devops/v5_1/maven/__init__.py | 2 + .../member_entitlement_management/__init__.py | 2 + .../devops/v5_1/notification/__init__.py | 2 + .../azure/devops/v5_1/npm/__init__.py | 2 + .../azure/devops/v5_1/nuGet/__init__.py | 2 + .../azure/devops/v5_1/operations/__init__.py | 2 + .../azure/devops/v5_1/policy/__init__.py | 2 + .../azure/devops/v5_1/profile/__init__.py | 2 + .../devops/v5_1/profile_regions/__init__.py | 2 + .../devops/v5_1/project_analysis/__init__.py | 2 + .../azure/devops/v5_1/provenance/__init__.py | 2 + .../azure/devops/v5_1/py_pi_api/__init__.py | 2 + .../azure/devops/v5_1/release/__init__.py | 2 + .../azure/devops/v5_1/security/__init__.py | 2 + .../devops/v5_1/service_endpoint/__init__.py | 2 + .../devops/v5_1/service_hooks/__init__.py | 2 + .../azure/devops/v5_1/settings/__init__.py | 2 + .../azure/devops/v5_1/symbol/__init__.py | 2 + .../azure/devops/v5_1/task/__init__.py | 2 + .../azure/devops/v5_1/task_agent/__init__.py | 2 + .../azure/devops/v5_1/test/__init__.py | 2 + .../azure/devops/v5_1/tfvc/__init__.py | 2 + .../azure/devops/v5_1/universal/__init__.py | 2 + .../__init__.py | 2 + .../models.py | 0 .../upack_packaging_client.py} | 0 .../azure/devops/v5_1/wiki/__init__.py | 2 + .../azure/devops/v5_1/work/__init__.py | 2 + .../v5_1/work_item_tracking/__init__.py | 2 + .../work_item_tracking_comments/__init__.py | 2 + .../work_item_tracking_process/__init__.py | 2 + .../__init__.py | 2 + 148 files changed, 11728 insertions(+), 13 deletions(-) create mode 100644 azure-devops/azure/devops/client_factory.py create mode 100644 azure-devops/azure/devops/released/accounts/__init__.py create mode 100644 azure-devops/azure/devops/released/accounts/accounts_client.py create mode 100644 azure-devops/azure/devops/released/build/__init__.py create mode 100644 azure-devops/azure/devops/released/build/build_client.py create mode 100644 azure-devops/azure/devops/released/cloud_load_test/__init__.py create mode 100644 azure-devops/azure/devops/released/cloud_load_test/cloud_load_test_client.py create mode 100644 azure-devops/azure/devops/released/core/__init__.py create mode 100644 azure-devops/azure/devops/released/core/core_client.py create mode 100644 azure-devops/azure/devops/released/git/__init__.py create mode 100644 azure-devops/azure/devops/released/git/git_client.py create mode 100644 azure-devops/azure/devops/released/git/git_client_base.py create mode 100644 azure-devops/azure/devops/released/identity/__init__.py create mode 100644 azure-devops/azure/devops/released/identity/identity_client.py create mode 100644 azure-devops/azure/devops/released/operations/__init__.py create mode 100644 azure-devops/azure/devops/released/operations/operations_client.py create mode 100644 azure-devops/azure/devops/released/policy/__init__.py create mode 100644 azure-devops/azure/devops/released/policy/policy_client.py create mode 100644 azure-devops/azure/devops/released/profile/__init__.py create mode 100644 azure-devops/azure/devops/released/profile/profile_client.py create mode 100644 azure-devops/azure/devops/released/release/__init__.py create mode 100644 azure-devops/azure/devops/released/release/release_client.py create mode 100644 azure-devops/azure/devops/released/security/__init__.py create mode 100644 azure-devops/azure/devops/released/security/security_client.py create mode 100644 azure-devops/azure/devops/released/service_hooks/__init__.py create mode 100644 azure-devops/azure/devops/released/service_hooks/service_hooks_client.py create mode 100644 azure-devops/azure/devops/released/task/__init__.py create mode 100644 azure-devops/azure/devops/released/task/task_client.py create mode 100644 azure-devops/azure/devops/released/task_agent/__init__.py create mode 100644 azure-devops/azure/devops/released/task_agent/task_agent_client.py create mode 100644 azure-devops/azure/devops/released/test/__init__.py create mode 100644 azure-devops/azure/devops/released/test/test_client.py create mode 100644 azure-devops/azure/devops/released/tfvc/__init__.py create mode 100644 azure-devops/azure/devops/released/tfvc/tfvc_client.py create mode 100644 azure-devops/azure/devops/released/wiki/__init__.py create mode 100644 azure-devops/azure/devops/released/wiki/wiki_client.py create mode 100644 azure-devops/azure/devops/released/work/__init__.py create mode 100644 azure-devops/azure/devops/released/work/work_client.py create mode 100644 azure-devops/azure/devops/released/work_item_tracking/__init__.py create mode 100644 azure-devops/azure/devops/released/work_item_tracking/work_item_tracking_client.py rename azure-devops/azure/devops/v5_0/{uPack_packaging => upack_packaging}/__init__.py (90%) rename azure-devops/azure/devops/v5_0/{uPack_packaging => upack_packaging}/models.py (100%) rename azure-devops/azure/devops/v5_0/{uPack_packaging/uPack_packaging_client.py => upack_packaging/upack_packaging_client.py} (100%) rename azure-devops/azure/devops/v5_1/{uPack_packaging => upack_packaging}/__init__.py (90%) rename azure-devops/azure/devops/v5_1/{uPack_packaging => upack_packaging}/models.py (100%) rename azure-devops/azure/devops/v5_1/{uPack_packaging/uPack_packaging_client.py => upack_packaging/upack_packaging_client.py} (100%) diff --git a/.gitignore b/.gitignore index b7222d70..67d6286e 100644 --- a/.gitignore +++ b/.gitignore @@ -297,5 +297,6 @@ __pycache__/ vsts/build/bdist.win32/ # don't ignore release management client +!azure-devops/azure/devops/released/release !azure-devops/azure/devops/v5_0/release !azure-devops/azure/devops/v5_1/release diff --git a/README.md b/README.md index abd35fa1..a5fa1a4f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ credentials = BasicAuthentication('', personal_access_token) connection = Connection(base_url=organization_url, creds=credentials) # Get a client (the "core" client provides access to projects, teams, etc) -core_client = connection.clients_v5_0.get_core_client() +core_client = connection.clients.get_core_client() # Get the list of projects in the org projects = core_client.get_projects() diff --git a/azure-devops/azure/devops/client_factory.py b/azure-devops/azure/devops/client_factory.py new file mode 100644 index 00000000..f1bd1210 --- /dev/null +++ b/azure-devops/azure/devops/client_factory.py @@ -0,0 +1,150 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- + + +class ClientFactory(object): + """ClientFactory. + A factory class to get the 5.0 released clients. + """ + + def __init__(self, connection): + self._connection = connection + + def get_accounts_client(self): + """get_accounts_client. + Gets the 5.0 version of the AccountsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.accounts.accounts_client.AccountsClient') + + def get_build_client(self): + """get_build_client. + Gets the 5.0 version of the BuildClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.build.build_client.BuildClient') + + def get_cloud_load_test_client(self): + """get_cloud_load_test_client. + Gets the 5.0 version of the CloudLoadTestClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.cloud_load_test.cloud_load_test_client.CloudLoadTestClient') + + def get_core_client(self): + """get_core_client. + Gets the 5.0 version of the CoreClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.core.core_client.CoreClient') + + def get_git_client(self): + """get_git_client. + Gets the 5.0 version of the GitClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.git.git_client.GitClient') + + def get_identity_client(self): + """get_identity_client. + Gets the 5.0 version of the IdentityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.identity.identity_client.IdentityClient') + + def get_operations_client(self): + """get_operations_client. + Gets the 5.0 version of the OperationsClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.operations.operations_client.OperationsClient') + + def get_policy_client(self): + """get_policy_client. + Gets the 5.0 version of the PolicyClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.policy.policy_client.PolicyClient') + + def get_profile_client(self): + """get_profile_client. + Gets the 5.0 version of the ProfileClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.profile.profile_client.ProfileClient') + + def get_release_client(self): + """get_release_client. + Gets the 5.0 version of the ReleaseClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.release.release_client.ReleaseClient') + + def get_security_client(self): + """get_security_client. + Gets the 5.0 version of the SecurityClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.security.security_client.SecurityClient') + + def get_service_hooks_client(self): + """get_service_hooks_client. + Gets the 5.0 version of the ServiceHooksClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.service_hooks.service_hooks_client.ServiceHooksClient') + + def get_task_client(self): + """get_task_client. + Gets the 5.0 version of the TaskClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.task.task_client.TaskClient') + + def get_task_agent_client(self): + """get_task_agent_client. + Gets the 5.0 version of the TaskAgentClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.task_agent.task_agent_client.TaskAgentClient') + + def get_test_client(self): + """get_test_client. + Gets the 5.0 version of the TestClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.test.test_client.TestClient') + + def get_tfvc_client(self): + """get_tfvc_client. + Gets the 5.0 version of the TfvcClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.tfvc.tfvc_client.TfvcClient') + + def get_wiki_client(self): + """get_wiki_client. + Gets the 5.0 version of the WikiClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.wiki.wiki_client.WikiClient') + + def get_work_client(self): + """get_work_client. + Gets the 5.0 version of the WorkClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.work.work_client.WorkClient') + + def get_work_item_tracking_client(self): + """get_work_item_tracking_client. + Gets the 5.0 version of the WorkItemTrackingClient + :rtype: :class:` ` + """ + return self._connection.get_client('azure.devops.released.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient') + diff --git a/azure-devops/azure/devops/connection.py b/azure-devops/azure/devops/connection.py index ef502471..3a06eff1 100644 --- a/azure-devops/azure/devops/connection.py +++ b/azure-devops/azure/devops/connection.py @@ -9,6 +9,7 @@ from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE from .exceptions import AzureDevOpsClientRequestError from .v5_0.location.location_client import LocationClient +from .client_factory import ClientFactory from .v5_0.client_factory import ClientFactoryV5_0 from .v5_1.client_factory import ClientFactoryV5_1 from .client_configuration import ClientConfiguration @@ -30,6 +31,7 @@ def __init__(self, base_url=None, creds=None, user_agent=None): self.base_url = base_url self._creds = creds self._resource_areas = None + self.clients = ClientFactory(self) self.clients_v5_0 = ClientFactoryV5_0(self) self.clients_v5_1 = ClientFactoryV5_1(self) diff --git a/azure-devops/azure/devops/released/accounts/__init__.py b/azure-devops/azure/devops/released/accounts/__init__.py new file mode 100644 index 00000000..a657e6e5 --- /dev/null +++ b/azure-devops/azure/devops/released/accounts/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.accounts.models import * +from .accounts_client import AccountsClient + +__all__ = [ + 'Account', + 'AccountCreateInfoInternal', + 'AccountPreferencesInternal', + 'AccountsClient' +] diff --git a/azure-devops/azure/devops/released/accounts/accounts_client.py b/azure-devops/azure/devops/released/accounts/accounts_client.py new file mode 100644 index 00000000..e6b429b9 --- /dev/null +++ b/azure-devops/azure/devops/released/accounts/accounts_client.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.accounts import models + + +class AccountsClient(Client): + """Accounts + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(AccountsClient, 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 = '0d55247a-1c47-4462-9b1f-5e2125590ee6' + + def get_accounts(self, owner_id=None, member_id=None, properties=None): + """GetAccounts. + Get a list of accounts for a specific owner or a specific member. + :param str owner_id: ID for the owner of the accounts. + :param str member_id: ID for a member of the accounts. + :param str properties: + :rtype: [Account] + """ + query_parameters = {} + if owner_id is not None: + query_parameters['ownerId'] = self._serialize.query('owner_id', owner_id, 'str') + if member_id is not None: + query_parameters['memberId'] = self._serialize.query('member_id', member_id, 'str') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + response = self._send(http_method='GET', + location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[Account]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/released/build/__init__.py b/azure-devops/azure/devops/released/build/__init__.py new file mode 100644 index 00000000..e3d9ecc6 --- /dev/null +++ b/azure-devops/azure/devops/released/build/__init__.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.build.models import * +from .build_client import BuildClient + +__all__ = [ + 'AgentPoolQueue', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', + 'AggregatedRunsByState', + 'ArtifactResource', + 'AssociatedWorkItem', + 'Attachment', + 'AuthorizationHeader', + 'Build', + 'BuildArtifact', + 'BuildBadge', + 'BuildController', + 'BuildDefinition', + 'BuildDefinition3_2', + 'BuildDefinitionReference', + 'BuildDefinitionReference3_2', + 'BuildDefinitionRevision', + 'BuildDefinitionStep', + 'BuildDefinitionTemplate', + 'BuildDefinitionTemplate3_2', + 'BuildDefinitionVariable', + 'BuildLog', + 'BuildLogReference', + 'BuildMetric', + 'BuildOption', + 'BuildOptionDefinition', + 'BuildOptionDefinitionReference', + 'BuildOptionGroupDefinition', + 'BuildOptionInputDefinition', + 'BuildReportMetadata', + 'BuildRepository', + 'BuildRequestValidationResult', + 'BuildResourceUsage', + 'BuildSettings', + 'Change', + 'DataSourceBindingBase', + 'DefinitionReference', + 'DefinitionResourceReference', + 'Deployment', + 'Folder', + 'GraphSubjectBase', + 'IdentityRef', + 'Issue', + 'JsonPatchOperation', + 'ProcessParameters', + 'PullRequest', + 'ReferenceLinks', + 'ReleaseReference', + 'RepositoryWebhook', + 'ResourceRef', + 'RetentionPolicy', + 'SourceProviderAttributes', + 'SourceRepositories', + 'SourceRepository', + 'SourceRepositoryItem', + 'SupportedTrigger', + 'TaskAgentPoolReference', + 'TaskDefinitionReference', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationPlanReference', + 'TaskReference', + 'TaskSourceDefinitionBase', + 'TeamProjectReference', + 'TestResultsContext', + 'Timeline', + 'TimelineAttempt', + 'TimelineRecord', + 'TimelineReference', + 'VariableGroup', + 'VariableGroupReference', + 'WebApiConnectedServiceRef', + 'XamlBuildControllerReference', + 'BuildClient' +] diff --git a/azure-devops/azure/devops/released/build/build_client.py b/azure-devops/azure/devops/released/build/build_client.py new file mode 100644 index 00000000..c1994a6c --- /dev/null +++ b/azure-devops/azure/devops/released/build/build_client.py @@ -0,0 +1,1045 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.build import models + + +class BuildClient(Client): + """Build + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(BuildClient, 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 = '965220d5-5bb9-42cf-8d67-9b146df2a5a4' + + def create_artifact(self, artifact, project, build_id): + """CreateArtifact. + Associates an artifact with a build. + :param :class:` ` artifact: The artifact. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + content = self._serialize.body(artifact, 'BuildArtifact') + response = self._send(http_method='POST', + location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('BuildArtifact', response) + + def get_artifact(self, project, build_id, artifact_name): + """GetArtifact. + Gets a specific artifact for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str artifact_name: The name of the artifact. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if artifact_name is not None: + query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') + response = self._send(http_method='GET', + location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('BuildArtifact', response) + + def get_artifact_content_zip(self, project, build_id, artifact_name, **kwargs): + """GetArtifactContentZip. + Gets a specific artifact for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str artifact_name: The name of the artifact. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if artifact_name is not None: + query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') + response = self._send(http_method='GET', + location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_artifacts(self, project, build_id): + """GetArtifacts. + Gets all artifacts for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :rtype: [BuildArtifact] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + response = self._send(http_method='GET', + location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', + version='5.0', + route_values=route_values) + return self._deserialize('[BuildArtifact]', self._unwrap_collection(response)) + + def get_file(self, project, build_id, artifact_name, file_id, file_name, **kwargs): + """GetFile. + Gets a file from the build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str artifact_name: The name of the artifact. + :param str file_id: The primary key for the file. + :param str file_name: The name that the file will be set to. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if artifact_name is not None: + query_parameters['artifactName'] = self._serialize.query('artifact_name', artifact_name, 'str') + if file_id is not None: + query_parameters['fileId'] = self._serialize.query('file_id', file_id, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + response = self._send(http_method='GET', + location_id='1db06c96-014e-44e1-ac91-90b2d4b3e984', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def delete_build(self, project, build_id): + """DeleteBuild. + Deletes a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + self._send(http_method='DELETE', + location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', + version='5.0', + route_values=route_values) + + def get_build(self, project, build_id, property_filters=None): + """GetBuild. + Gets a build + :param str project: Project ID or project name + :param int build_id: + :param str property_filters: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if property_filters is not None: + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Build', response) + + def get_builds(self, project, definitions=None, queues=None, build_number=None, min_time=None, max_time=None, requested_for=None, reason_filter=None, status_filter=None, result_filter=None, tag_filters=None, properties=None, top=None, continuation_token=None, max_builds_per_definition=None, deleted_filter=None, query_order=None, branch_name=None, build_ids=None, repository_id=None, repository_type=None): + """GetBuilds. + Gets a list of builds. + :param str project: Project ID or project name + :param [int] definitions: A comma-delimited list of definition IDs. If specified, filters to builds for these definitions. + :param [int] queues: A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues. + :param str build_number: If specified, filters to builds that match this build number. Append * to do a prefix search. + :param datetime min_time: If specified, filters to builds that finished/started/queued after this date based on the queryOrder specified. + :param datetime max_time: If specified, filters to builds that finished/started/queued before this date based on the queryOrder specified. + :param str requested_for: If specified, filters to builds requested for the specified user. + :param str reason_filter: If specified, filters to builds that match this reason. + :param str status_filter: If specified, filters to builds that match this status. + :param str result_filter: If specified, filters to builds that match this result. + :param [str] tag_filters: A comma-delimited list of tags. If specified, filters to builds that have the specified tags. + :param [str] properties: A comma-delimited list of properties to retrieve. + :param int top: The maximum number of builds to return. + :param str continuation_token: A continuation token, returned by a previous call to this method, that can be used to return the next set of builds. + :param int max_builds_per_definition: The maximum number of builds to return per definition. + :param str deleted_filter: Indicates whether to exclude, include, or only return deleted builds. + :param str query_order: The order in which builds should be returned. + :param str branch_name: If specified, filters to builds that built branches that built this branch. + :param [int] build_ids: A comma-delimited list that specifies the IDs of builds to retrieve. + :param str repository_id: If specified, filters to builds that built from this repository. + :param str repository_type: If specified, filters to builds that built from repositories of this type. + :rtype: [Build] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definitions is not None: + definitions = ",".join(map(str, definitions)) + query_parameters['definitions'] = self._serialize.query('definitions', definitions, 'str') + if queues is not None: + queues = ",".join(map(str, queues)) + query_parameters['queues'] = self._serialize.query('queues', queues, 'str') + if build_number is not None: + query_parameters['buildNumber'] = self._serialize.query('build_number', build_number, 'str') + if min_time is not None: + query_parameters['minTime'] = self._serialize.query('min_time', min_time, 'iso-8601') + if max_time is not None: + query_parameters['maxTime'] = self._serialize.query('max_time', max_time, 'iso-8601') + if requested_for is not None: + query_parameters['requestedFor'] = self._serialize.query('requested_for', requested_for, 'str') + if reason_filter is not None: + query_parameters['reasonFilter'] = self._serialize.query('reason_filter', reason_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if result_filter is not None: + query_parameters['resultFilter'] = self._serialize.query('result_filter', result_filter, 'str') + if tag_filters is not None: + tag_filters = ",".join(tag_filters) + query_parameters['tagFilters'] = self._serialize.query('tag_filters', tag_filters, 'str') + if properties is not None: + properties = ",".join(properties) + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if max_builds_per_definition is not None: + query_parameters['maxBuildsPerDefinition'] = self._serialize.query('max_builds_per_definition', max_builds_per_definition, 'int') + if deleted_filter is not None: + query_parameters['deletedFilter'] = self._serialize.query('deleted_filter', deleted_filter, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if build_ids is not None: + build_ids = ",".join(map(str, build_ids)) + query_parameters['buildIds'] = self._serialize.query('build_ids', build_ids, 'str') + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if repository_type is not None: + query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') + response = self._send(http_method='GET', + location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Build]', self._unwrap_collection(response)) + + def queue_build(self, build, project, ignore_warnings=None, check_in_ticket=None, source_build_id=None): + """QueueBuild. + Queues a build + :param :class:` ` build: + :param str project: Project ID or project name + :param bool ignore_warnings: + :param str check_in_ticket: + :param int source_build_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if ignore_warnings is not None: + query_parameters['ignoreWarnings'] = self._serialize.query('ignore_warnings', ignore_warnings, 'bool') + if check_in_ticket is not None: + query_parameters['checkInTicket'] = self._serialize.query('check_in_ticket', check_in_ticket, 'str') + if source_build_id is not None: + query_parameters['sourceBuildId'] = self._serialize.query('source_build_id', source_build_id, 'int') + content = self._serialize.body(build, 'Build') + response = self._send(http_method='POST', + location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Build', response) + + def update_build(self, build, project, build_id, retry=None): + """UpdateBuild. + Updates a build. + :param :class:` ` build: The build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param bool retry: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if retry is not None: + query_parameters['retry'] = self._serialize.query('retry', retry, 'bool') + content = self._serialize.body(build, 'Build') + response = self._send(http_method='PATCH', + location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('Build', response) + + def update_builds(self, builds, project): + """UpdateBuilds. + Updates multiple builds. + :param [Build] builds: The builds to update. + :param str project: Project ID or project name + :rtype: [Build] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(builds, '[Build]') + response = self._send(http_method='PATCH', + location_id='0cd358e1-9217-4d94-8269-1c1ee6f93dcf', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[Build]', self._unwrap_collection(response)) + + def get_build_changes(self, project, build_id, continuation_token=None, top=None, include_source_change=None): + """GetBuildChanges. + Gets the changes associated with a build + :param str project: Project ID or project name + :param int build_id: + :param str continuation_token: + :param int top: The maximum number of changes to return + :param bool include_source_change: + :rtype: [Change] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if include_source_change is not None: + query_parameters['includeSourceChange'] = self._serialize.query('include_source_change', include_source_change, 'bool') + response = self._send(http_method='GET', + location_id='54572c7b-bbd3-45d4-80dc-28be08941620', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Change]', self._unwrap_collection(response)) + + def get_build_controller(self, controller_id): + """GetBuildController. + Gets a controller + :param int controller_id: + :rtype: :class:` ` + """ + route_values = {} + if controller_id is not None: + route_values['controllerId'] = self._serialize.url('controller_id', controller_id, 'int') + response = self._send(http_method='GET', + location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', + version='5.0', + route_values=route_values) + return self._deserialize('BuildController', response) + + def get_build_controllers(self, name=None): + """GetBuildControllers. + Gets controller, optionally filtered by name + :param str name: + :rtype: [BuildController] + """ + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + response = self._send(http_method='GET', + location_id='fcac1932-2ee1-437f-9b6f-7f696be858f6', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[BuildController]', self._unwrap_collection(response)) + + def create_definition(self, definition, project, definition_to_clone_id=None, definition_to_clone_revision=None): + """CreateDefinition. + Creates a new definition. + :param :class:` ` definition: The definition. + :param str project: Project ID or project name + :param int definition_to_clone_id: + :param int definition_to_clone_revision: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_to_clone_id is not None: + query_parameters['definitionToCloneId'] = self._serialize.query('definition_to_clone_id', definition_to_clone_id, 'int') + if definition_to_clone_revision is not None: + query_parameters['definitionToCloneRevision'] = self._serialize.query('definition_to_clone_revision', definition_to_clone_revision, 'int') + content = self._serialize.body(definition, 'BuildDefinition') + response = self._send(http_method='POST', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('BuildDefinition', response) + + def delete_definition(self, project, definition_id): + """DeleteDefinition. + Deletes a definition and all associated builds. + :param str project: Project ID or project name + :param int definition_id: The ID of the definition. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + self._send(http_method='DELETE', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.0', + route_values=route_values) + + def get_definition(self, project, definition_id, revision=None, min_metrics_time=None, property_filters=None, include_latest_builds=None): + """GetDefinition. + Gets a definition, optionally at a specific revision. + :param str project: Project ID or project name + :param int definition_id: The ID of the definition. + :param int revision: The revision number to retrieve. If this is not specified, the latest version will be returned. + :param datetime min_metrics_time: If specified, indicates the date from which metrics should be included. + :param [str] property_filters: A comma-delimited list of properties to include in the results. + :param bool include_latest_builds: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if revision is not None: + query_parameters['revision'] = self._serialize.query('revision', revision, 'int') + if min_metrics_time is not None: + query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if include_latest_builds is not None: + query_parameters['includeLatestBuilds'] = self._serialize.query('include_latest_builds', include_latest_builds, 'bool') + response = self._send(http_method='GET', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('BuildDefinition', response) + + def get_definitions(self, project, name=None, repository_id=None, repository_type=None, query_order=None, top=None, continuation_token=None, min_metrics_time=None, definition_ids=None, path=None, built_after=None, not_built_after=None, include_all_properties=None, include_latest_builds=None, task_id_filter=None, process_type=None, yaml_filename=None): + """GetDefinitions. + Gets a list of definitions. + :param str project: Project ID or project name + :param str name: If specified, filters to definitions whose names match this pattern. + :param str repository_id: A repository ID. If specified, filters to definitions that use this repository. + :param str repository_type: If specified, filters to definitions that have a repository of this type. + :param str query_order: Indicates the order in which definitions should be returned. + :param int top: The maximum number of definitions to return. + :param str continuation_token: A continuation token, returned by a previous call to this method, that can be used to return the next set of definitions. + :param datetime min_metrics_time: If specified, indicates the date from which metrics should be included. + :param [int] definition_ids: A comma-delimited list that specifies the IDs of definitions to retrieve. + :param str path: If specified, filters to definitions under this folder. + :param datetime built_after: If specified, filters to definitions that have builds after this date. + :param datetime not_built_after: If specified, filters to definitions that do not have builds after this date. + :param bool include_all_properties: Indicates whether the full definitions should be returned. By default, shallow representations of the definitions are returned. + :param bool include_latest_builds: Indicates whether to return the latest and latest completed builds for this definition. + :param str task_id_filter: If specified, filters to definitions that use the specified task. + :param int process_type: If specified, filters to definitions with the given process type. + :param str yaml_filename: If specified, filters to YAML definitions that match the given filename. + :rtype: [BuildDefinitionReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if repository_type is not None: + query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if min_metrics_time is not None: + query_parameters['minMetricsTime'] = self._serialize.query('min_metrics_time', min_metrics_time, 'iso-8601') + if definition_ids is not None: + definition_ids = ",".join(map(str, definition_ids)) + query_parameters['definitionIds'] = self._serialize.query('definition_ids', definition_ids, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if built_after is not None: + query_parameters['builtAfter'] = self._serialize.query('built_after', built_after, 'iso-8601') + if not_built_after is not None: + query_parameters['notBuiltAfter'] = self._serialize.query('not_built_after', not_built_after, 'iso-8601') + if include_all_properties is not None: + query_parameters['includeAllProperties'] = self._serialize.query('include_all_properties', include_all_properties, 'bool') + if include_latest_builds is not None: + query_parameters['includeLatestBuilds'] = self._serialize.query('include_latest_builds', include_latest_builds, 'bool') + if task_id_filter is not None: + query_parameters['taskIdFilter'] = self._serialize.query('task_id_filter', task_id_filter, 'str') + if process_type is not None: + query_parameters['processType'] = self._serialize.query('process_type', process_type, 'int') + if yaml_filename is not None: + query_parameters['yamlFilename'] = self._serialize.query('yaml_filename', yaml_filename, 'str') + response = self._send(http_method='GET', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[BuildDefinitionReference]', self._unwrap_collection(response)) + + def restore_definition(self, project, definition_id, deleted): + """RestoreDefinition. + Restores a deleted definition + :param str project: Project ID or project name + :param int definition_id: The identifier of the definition to restore. + :param bool deleted: When false, restores a deleted definition. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if deleted is not None: + query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + response = self._send(http_method='PATCH', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('BuildDefinition', response) + + def update_definition(self, definition, project, definition_id, secrets_source_definition_id=None, secrets_source_definition_revision=None): + """UpdateDefinition. + Updates an existing definition. + :param :class:` ` definition: The new version of the defintion. + :param str project: Project ID or project name + :param int definition_id: The ID of the definition. + :param int secrets_source_definition_id: + :param int secrets_source_definition_revision: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if secrets_source_definition_id is not None: + query_parameters['secretsSourceDefinitionId'] = self._serialize.query('secrets_source_definition_id', secrets_source_definition_id, 'int') + if secrets_source_definition_revision is not None: + query_parameters['secretsSourceDefinitionRevision'] = self._serialize.query('secrets_source_definition_revision', secrets_source_definition_revision, 'int') + content = self._serialize.body(definition, 'BuildDefinition') + response = self._send(http_method='PUT', + location_id='dbeaf647-6167-421a-bda9-c9327b25e2e6', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('BuildDefinition', response) + + def get_build_log(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): + """GetBuildLog. + Gets an individual log file for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param int log_id: The ID of the log file. + :param long start_line: The start line. + :param long end_line: The end line. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_build_log_lines(self, project, build_id, log_id, start_line=None, end_line=None): + """GetBuildLogLines. + Gets an individual log file for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param int log_id: The ID of the log file. + :param long start_line: The start line. + :param long end_line: The end line. + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_build_logs(self, project, build_id): + """GetBuildLogs. + Gets the logs for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :rtype: [BuildLog] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + response = self._send(http_method='GET', + location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', + version='5.0', + route_values=route_values) + return self._deserialize('[BuildLog]', self._unwrap_collection(response)) + + def get_build_logs_zip(self, project, build_id, **kwargs): + """GetBuildLogsZip. + Gets the logs for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + response = self._send(http_method='GET', + location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', + version='5.0', + route_values=route_values, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_build_log_zip(self, project, build_id, log_id, start_line=None, end_line=None, **kwargs): + """GetBuildLogZip. + Gets an individual log file for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param int log_id: The ID of the log file. + :param long start_line: The start line. + :param long end_line: The end line. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='35a80daf-7f30-45fc-86e8-6b813d9c90df', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_build_option_definitions(self, project=None): + """GetBuildOptionDefinitions. + Gets all build definition options supported by the system. + :param str project: Project ID or project name + :rtype: [BuildOptionDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='591cb5a4-2d46-4f3a-a697-5cd42b6bd332', + version='5.0', + route_values=route_values) + return self._deserialize('[BuildOptionDefinition]', self._unwrap_collection(response)) + + def get_definition_revisions(self, project, definition_id): + """GetDefinitionRevisions. + Gets all revisions of a definition. + :param str project: Project ID or project name + :param int definition_id: The ID of the definition. + :rtype: [BuildDefinitionRevision] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + response = self._send(http_method='GET', + location_id='7c116775-52e5-453e-8c5d-914d9762d8c4', + version='5.0', + route_values=route_values) + return self._deserialize('[BuildDefinitionRevision]', self._unwrap_collection(response)) + + def get_build_settings(self, project=None): + """GetBuildSettings. + Gets the build settings. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', + version='5.0', + route_values=route_values) + return self._deserialize('BuildSettings', response) + + def update_build_settings(self, settings, project=None): + """UpdateBuildSettings. + Updates the build settings. + :param :class:` ` settings: The new settings. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(settings, 'BuildSettings') + response = self._send(http_method='PATCH', + location_id='aa8c1c9c-ef8b-474a-b8c4-785c7b191d0d', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('BuildSettings', response) + + def add_build_tag(self, project, build_id, tag): + """AddBuildTag. + Adds a tag to a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str tag: The tag to add. + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='PUT', + location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', + version='5.0', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def add_build_tags(self, tags, project, build_id): + """AddBuildTags. + Adds tags to a build. + :param [str] tags: The tags to add. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + content = self._serialize.body(tags, '[str]') + response = self._send(http_method='POST', + location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def delete_build_tag(self, project, build_id, tag): + """DeleteBuildTag. + Removes a tag from a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param str tag: The tag to remove. + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if tag is not None: + route_values['tag'] = self._serialize.url('tag', tag, 'str') + response = self._send(http_method='DELETE', + location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', + version='5.0', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_build_tags(self, project, build_id): + """GetBuildTags. + Gets the tags for a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + response = self._send(http_method='GET', + location_id='6e6114b2-8161-44c8-8f6c-c5505782427f', + version='5.0', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_tags(self, project): + """GetTags. + Gets a list of all build and definition tags in the project. + :param str project: Project ID or project name + :rtype: [str] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='d84ac5c6-edc7-43d5-adc9-1b34be5dea09', + version='5.0', + route_values=route_values) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def delete_template(self, project, template_id): + """DeleteTemplate. + Deletes a build definition template. + :param str project: Project ID or project name + :param str template_id: The ID of the template. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if template_id is not None: + route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') + self._send(http_method='DELETE', + location_id='e884571e-7f92-4d6a-9274-3f5649900835', + version='5.0', + route_values=route_values) + + def get_template(self, project, template_id): + """GetTemplate. + Gets a specific build definition template. + :param str project: Project ID or project name + :param str template_id: The ID of the requested template. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if template_id is not None: + route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') + response = self._send(http_method='GET', + location_id='e884571e-7f92-4d6a-9274-3f5649900835', + version='5.0', + route_values=route_values) + return self._deserialize('BuildDefinitionTemplate', response) + + def get_templates(self, project): + """GetTemplates. + Gets all definition templates. + :param str project: Project ID or project name + :rtype: [BuildDefinitionTemplate] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='e884571e-7f92-4d6a-9274-3f5649900835', + version='5.0', + route_values=route_values) + return self._deserialize('[BuildDefinitionTemplate]', self._unwrap_collection(response)) + + def save_template(self, template, project, template_id): + """SaveTemplate. + Updates an existing build definition template. + :param :class:` ` template: The new version of the template. + :param str project: Project ID or project name + :param str template_id: The ID of the template. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if template_id is not None: + route_values['templateId'] = self._serialize.url('template_id', template_id, 'str') + content = self._serialize.body(template, 'BuildDefinitionTemplate') + response = self._send(http_method='PUT', + location_id='e884571e-7f92-4d6a-9274-3f5649900835', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('BuildDefinitionTemplate', response) + + def get_build_timeline(self, project, build_id, timeline_id=None, change_id=None, plan_id=None): + """GetBuildTimeline. + Gets details for a build + :param str project: Project ID or project name + :param int build_id: + :param str timeline_id: + :param int change_id: + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + query_parameters = {} + if change_id is not None: + query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') + if plan_id is not None: + query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='8baac422-4c6e-4de5-8532-db96d92acffa', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Timeline', response) + + def get_build_work_items_refs(self, project, build_id, top=None): + """GetBuildWorkItemsRefs. + Gets the work items associated with a build. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param int top: The maximum number of work items to return. + :rtype: [ResourceRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) + + def get_build_work_items_refs_from_commits(self, commit_ids, project, build_id, top=None): + """GetBuildWorkItemsRefsFromCommits. + Gets the work items associated with a build, filtered to specific commits. + :param [str] commit_ids: A comma-delimited list of commit IDs. + :param str project: Project ID or project name + :param int build_id: The ID of the build. + :param int top: The maximum number of work items to return, or the number of commits to consider if no commit IDs are specified. + :rtype: [ResourceRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if build_id is not None: + route_values['buildId'] = self._serialize.url('build_id', build_id, 'int') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + content = self._serialize.body(commit_ids, '[str]') + response = self._send(http_method='POST', + location_id='5a21f5d2-5642-47e4-a0bd-1356e6731bee', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/released/cloud_load_test/__init__.py b/azure-devops/azure/devops/released/cloud_load_test/__init__.py new file mode 100644 index 00000000..f33e9d1d --- /dev/null +++ b/azure-devops/azure/devops/released/cloud_load_test/__init__.py @@ -0,0 +1,62 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.cloud_load_test.models import * +from .cloud_load_test_client import CloudLoadTestClient + +__all__ = [ + 'AgentGroup', + 'AgentGroupAccessData', + 'Application', + 'ApplicationCounters', + 'ApplicationType', + 'BrowserMix', + 'CltCustomerIntelligenceData', + 'CounterGroup', + 'CounterInstanceSamples', + 'CounterSample', + 'CounterSampleQueryDetails', + 'CounterSamplesResult', + 'Diagnostics', + 'DropAccessData', + 'ErrorDetails', + 'LoadGenerationGeoLocation', + 'LoadTest', + 'LoadTestDefinition', + 'LoadTestErrors', + 'LoadTestRunDetails', + 'LoadTestRunSettings', + 'OverridableRunSettings', + 'PageSummary', + 'RequestSummary', + 'ScenarioSummary', + 'StaticAgentRunSetting', + 'SubType', + 'SummaryPercentileData', + 'TenantDetails', + 'TestDefinition', + 'TestDefinitionBasic', + 'TestDrop', + 'TestDropRef', + 'TestResults', + 'TestResultsSummary', + 'TestRun', + 'TestRunAbortMessage', + 'TestRunBasic', + 'TestRunCounterInstance', + 'TestRunMessage', + 'TestSettings', + 'TestSummary', + 'TransactionSummary', + 'WebApiLoadTestMachineInput', + 'WebApiSetupParamaters', + 'WebApiTestMachine', + 'WebApiUserLoadTestMachineInput', + 'WebInstanceSummaryData', + 'CloudLoadTestClient' +] diff --git a/azure-devops/azure/devops/released/cloud_load_test/cloud_load_test_client.py b/azure-devops/azure/devops/released/cloud_load_test/cloud_load_test_client.py new file mode 100644 index 00000000..2a2cec49 --- /dev/null +++ b/azure-devops/azure/devops/released/cloud_load_test/cloud_load_test_client.py @@ -0,0 +1,432 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.cloud_load_test import models + + +class CloudLoadTestClient(Client): + """CloudLoadTest + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(CloudLoadTestClient, 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 = '7ae6d0a6-cda5-44cf-a261-28c392bed25c' + + def create_agent_group(self, group): + """CreateAgentGroup. + :param :class:` ` group: Agent group to be created + :rtype: :class:` ` + """ + content = self._serialize.body(group, 'AgentGroup') + response = self._send(http_method='POST', + location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', + version='5.0', + content=content) + return self._deserialize('AgentGroup', response) + + 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 bool machine_setup_input: + :param bool machine_access_data: + :param bool outgoing_request_urls: + :param str agent_group_name: Name of the agent group + :rtype: object + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if machine_setup_input is not None: + query_parameters['machineSetupInput'] = self._serialize.query('machine_setup_input', machine_setup_input, 'bool') + if machine_access_data is not None: + query_parameters['machineAccessData'] = self._serialize.query('machine_access_data', machine_access_data, 'bool') + if outgoing_request_urls is not None: + query_parameters['outgoingRequestUrls'] = self._serialize.query('outgoing_request_urls', outgoing_request_urls, 'bool') + if agent_group_name is not None: + query_parameters['agentGroupName'] = self._serialize.query('agent_group_name', agent_group_name, 'str') + response = self._send(http_method='GET', + location_id='ab8d91c1-12d9-4ec5-874d-1ddb23e17720', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def delete_static_agent(self, agent_group_id, agent_name): + """DeleteStaticAgent. + :param str agent_group_id: The agent group identifier + :param str agent_name: Name of the static agent + :rtype: str + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + response = self._send(http_method='DELETE', + location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('str', response) + + def get_static_agents(self, agent_group_id, agent_name=None): + """GetStaticAgents. + :param str agent_group_id: The agent group identifier + :param str agent_name: Name of the static agent + :rtype: object + """ + route_values = {} + if agent_group_id is not None: + route_values['agentGroupId'] = self._serialize.url('agent_group_id', agent_group_id, 'str') + query_parameters = {} + if agent_name is not None: + query_parameters['agentName'] = self._serialize.query('agent_name', agent_name, 'str') + response = self._send(http_method='GET', + location_id='87e4b63d-7142-4b50-801e-72ba9ff8ee9b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def get_application(self, application_id): + """GetApplication. + :param str application_id: Filter by APM application identifier. + :rtype: :class:` ` + """ + route_values = {} + if application_id is not None: + route_values['applicationId'] = self._serialize.url('application_id', application_id, 'str') + response = self._send(http_method='GET', + location_id='2c986dce-8e8d-4142-b541-d016d5aff764', + version='5.0', + route_values=route_values) + return self._deserialize('Application', response) + + def get_applications(self, type=None): + """GetApplications. + :param str type: Filters the results based on the plugin type. + :rtype: [Application] + """ + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + response = self._send(http_method='GET', + location_id='2c986dce-8e8d-4142-b541-d016d5aff764', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[Application]', self._unwrap_collection(response)) + + def get_counters(self, test_run_id, group_names, include_summary=None): + """GetCounters. + :param str test_run_id: The test run identifier + :param str group_names: Comma separated names of counter groups, such as 'Application', 'Performance' and 'Throughput' + :param bool include_summary: + :rtype: [TestRunCounterInstance] + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + query_parameters = {} + if group_names is not None: + query_parameters['groupNames'] = self._serialize.query('group_names', group_names, 'str') + if include_summary is not None: + query_parameters['includeSummary'] = self._serialize.query('include_summary', include_summary, 'bool') + response = self._send(http_method='GET', + location_id='29265ea4-b5a5-4b2e-b054-47f5f6f00183', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestRunCounterInstance]', self._unwrap_collection(response)) + + def get_application_counters(self, application_id=None, plugintype=None): + """GetApplicationCounters. + :param str application_id: Filter by APM application identifier. + :param str plugintype: Currently ApplicationInsights is the only available plugin type. + :rtype: [ApplicationCounters] + """ + query_parameters = {} + if application_id is not None: + query_parameters['applicationId'] = self._serialize.query('application_id', application_id, 'str') + if plugintype is not None: + query_parameters['plugintype'] = self._serialize.query('plugintype', plugintype, 'str') + response = self._send(http_method='GET', + location_id='c1275ce9-6d26-4bc6-926b-b846502e812d', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[ApplicationCounters]', self._unwrap_collection(response)) + + def get_counter_samples(self, counter_sample_query_details, test_run_id): + """GetCounterSamples. + :param :class:` ` counter_sample_query_details: + :param str test_run_id: The test run identifier + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + content = self._serialize.body(counter_sample_query_details, 'VssJsonCollectionWrapper') + response = self._send(http_method='POST', + location_id='bad18480-7193-4518-992a-37289c5bb92d', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('CounterSamplesResult', response) + + def get_load_test_run_errors(self, test_run_id, type=None, sub_type=None, detailed=None): + """GetLoadTestRunErrors. + :param str test_run_id: The test run identifier + :param str type: Filter for the particular type of errors. + :param str sub_type: Filter for a particular subtype of errors. You should not provide error subtype without error type. + :param bool detailed: To include the details of test errors such as messagetext, request, stacktrace, testcasename, scenarioname, and lasterrordate. + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + query_parameters = {} + if type is not None: + query_parameters['type'] = self._serialize.query('type', type, 'str') + if sub_type is not None: + query_parameters['subType'] = self._serialize.query('sub_type', sub_type, 'str') + if detailed is not None: + query_parameters['detailed'] = self._serialize.query('detailed', detailed, 'bool') + response = self._send(http_method='GET', + location_id='b52025a7-3fb4-4283-8825-7079e75bd402', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('LoadTestErrors', response) + + def get_test_run_messages(self, test_run_id): + """GetTestRunMessages. + :param str test_run_id: Id of the test run + :rtype: [TestRunMessage] + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='2e7ba122-f522-4205-845b-2d270e59850a', + version='5.0', + route_values=route_values) + return self._deserialize('[TestRunMessage]', self._unwrap_collection(response)) + + def get_plugin(self, type): + """GetPlugin. + :param str type: Currently ApplicationInsights is the only available plugin type. + :rtype: :class:` ` + """ + route_values = {} + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', + version='5.0', + route_values=route_values) + return self._deserialize('ApplicationType', response) + + def get_plugins(self): + """GetPlugins. + :rtype: [ApplicationType] + """ + response = self._send(http_method='GET', + location_id='7dcb0bb2-42d5-4729-9958-c0401d5e7693', + version='5.0') + return self._deserialize('[ApplicationType]', self._unwrap_collection(response)) + + def get_load_test_result(self, test_run_id): + """GetLoadTestResult. + :param str test_run_id: The test run identifier + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='5ed69bd8-4557-4cec-9b75-1ad67d0c257b', + version='5.0', + route_values=route_values) + return self._deserialize('TestResults', response) + + def create_test_definition(self, test_definition): + """CreateTestDefinition. + :param :class:` ` test_definition: Test definition to be created + :rtype: :class:` ` + """ + content = self._serialize.body(test_definition, 'TestDefinition') + response = self._send(http_method='POST', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.0', + content=content) + return self._deserialize('TestDefinition', response) + + def get_test_definition(self, test_definition_id): + """GetTestDefinition. + :param str test_definition_id: The test definition identifier + :rtype: :class:` ` + """ + route_values = {} + if test_definition_id is not None: + route_values['testDefinitionId'] = self._serialize.url('test_definition_id', test_definition_id, 'str') + response = self._send(http_method='GET', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.0', + route_values=route_values) + return self._deserialize('TestDefinition', response) + + def get_test_definitions(self, from_date=None, to_date=None, top=None): + """GetTestDefinitions. + :param str from_date: Date after which test definitions were created + :param str to_date: Date before which test definitions were crated + :param int top: + :rtype: [TestDefinitionBasic] + """ + query_parameters = {} + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'str') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query('to_date', to_date, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[TestDefinitionBasic]', self._unwrap_collection(response)) + + def update_test_definition(self, test_definition): + """UpdateTestDefinition. + :param :class:` ` test_definition: + :rtype: :class:` ` + """ + content = self._serialize.body(test_definition, 'TestDefinition') + response = self._send(http_method='PUT', + location_id='a8f9b135-f604-41ea-9d74-d9a5fd32fcd8', + version='5.0', + content=content) + return self._deserialize('TestDefinition', response) + + def create_test_drop(self, web_test_drop): + """CreateTestDrop. + :param :class:` ` web_test_drop: Test drop to be created + :rtype: :class:` ` + """ + content = self._serialize.body(web_test_drop, 'TestDrop') + response = self._send(http_method='POST', + location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', + version='5.0', + content=content) + return self._deserialize('TestDrop', response) + + def get_test_drop(self, test_drop_id): + """GetTestDrop. + :param str test_drop_id: The test drop identifier + :rtype: :class:` ` + """ + route_values = {} + if test_drop_id is not None: + route_values['testDropId'] = self._serialize.url('test_drop_id', test_drop_id, 'str') + response = self._send(http_method='GET', + location_id='d89d0e08-505c-4357-96f6-9729311ce8ad', + version='5.0', + route_values=route_values) + return self._deserialize('TestDrop', response) + + def create_test_run(self, web_test_run): + """CreateTestRun. + :param :class:` ` web_test_run: + :rtype: :class:` ` + """ + content = self._serialize.body(web_test_run, 'TestRun') + response = self._send(http_method='POST', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.0', + content=content) + return self._deserialize('TestRun', response) + + def get_test_run(self, test_run_id): + """GetTestRun. + :param str test_run_id: Unique ID of the test run + :rtype: :class:` ` + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + response = self._send(http_method='GET', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.0', + route_values=route_values) + return self._deserialize('TestRun', response) + + def get_test_runs(self, name=None, requested_by=None, status=None, run_type=None, from_date=None, to_date=None, detailed=None, top=None, runsourceidentifier=None, retention_state=None): + """GetTestRuns. + Returns test runs based on the filter specified. Returns all runs of the tenant if there is no filter. + :param str name: Name for the test run. Names are not unique. Test runs with same name are assigned sequential rolling numbers. + :param str requested_by: Filter by the user who requested the test run. Here requestedBy should be the display name of the user. + :param str status: Filter by the test run status. + :param str run_type: Valid values include: null, one of TestRunType, or "*" + :param str from_date: Filter by the test runs that have been modified after the fromDate timestamp. + :param str to_date: Filter by the test runs that have been modified before the toDate timestamp. + :param bool detailed: Include the detailed test run attributes. + :param int top: The maximum number of test runs to return. + :param str runsourceidentifier: + :param str retention_state: + :rtype: object + """ + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if requested_by is not None: + query_parameters['requestedBy'] = self._serialize.query('requested_by', requested_by, 'str') + if status is not None: + query_parameters['status'] = self._serialize.query('status', status, 'str') + if run_type is not None: + query_parameters['runType'] = self._serialize.query('run_type', run_type, 'str') + if from_date is not None: + query_parameters['fromDate'] = self._serialize.query('from_date', from_date, 'str') + if to_date is not None: + query_parameters['toDate'] = self._serialize.query('to_date', to_date, 'str') + if detailed is not None: + query_parameters['detailed'] = self._serialize.query('detailed', detailed, 'bool') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if runsourceidentifier is not None: + query_parameters['runsourceidentifier'] = self._serialize.query('runsourceidentifier', runsourceidentifier, 'str') + if retention_state is not None: + query_parameters['retentionState'] = self._serialize.query('retention_state', retention_state, 'str') + response = self._send(http_method='GET', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_test_run(self, web_test_run, test_run_id): + """UpdateTestRun. + :param :class:` ` web_test_run: + :param str test_run_id: + """ + route_values = {} + if test_run_id is not None: + route_values['testRunId'] = self._serialize.url('test_run_id', test_run_id, 'str') + content = self._serialize.body(web_test_run, 'TestRun') + self._send(http_method='PATCH', + location_id='b41a84ff-ff03-4ac1-b76e-e7ea25c92aba', + version='5.0', + route_values=route_values, + content=content) + diff --git a/azure-devops/azure/devops/released/core/__init__.py b/azure-devops/azure/devops/released/core/__init__.py new file mode 100644 index 00000000..0f7aa297 --- /dev/null +++ b/azure-devops/azure/devops/released/core/__init__.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.core.models import * +from .core_client import CoreClient + +__all__ = [ + 'GraphSubjectBase', + 'IdentityData', + 'IdentityRef', + 'JsonPatchOperation', + 'OperationReference', + 'Process', + 'ProcessReference', + 'ProjectInfo', + 'ProjectProperty', + 'Proxy', + 'ProxyAuthorization', + 'PublicKey', + 'ReferenceLinks', + 'TeamMember', + 'TeamProject', + 'TeamProjectCollection', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'WebApiConnectedService', + 'WebApiConnectedServiceDetails', + 'WebApiConnectedServiceRef', + 'WebApiTeam', + 'WebApiTeamRef', + 'CoreClient' +] diff --git a/azure-devops/azure/devops/released/core/core_client.py b/azure-devops/azure/devops/released/core/core_client.py new file mode 100644 index 00000000..75e03b57 --- /dev/null +++ b/azure-devops/azure/devops/released/core/core_client.py @@ -0,0 +1,306 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.core import models + + +class CoreClient(Client): + """Core + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(CoreClient, 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 = '79134c72-4a58-4b42-976c-04e7115f32bf' + + def get_team_members_with_extended_properties(self, project_id, team_id, top=None, skip=None): + """GetTeamMembersWithExtendedProperties. + Get a list of members for a specific team. + :param str project_id: The name or ID (GUID) of the team project the team belongs to. + :param str team_id: The name or ID (GUID) of the team . + :param int top: + :param int skip: + :rtype: [TeamMember] + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + if team_id is not None: + route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TeamMember]', self._unwrap_collection(response)) + + def get_process_by_id(self, process_id): + """GetProcessById. + Get a process by ID. + :param str process_id: ID for a process. + :rtype: :class:` ` + """ + route_values = {} + if process_id is not None: + route_values['processId'] = self._serialize.url('process_id', process_id, 'str') + response = self._send(http_method='GET', + location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', + version='5.0', + route_values=route_values) + return self._deserialize('Process', response) + + def get_processes(self): + """GetProcesses. + Get a list of processes. + :rtype: [Process] + """ + response = self._send(http_method='GET', + location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8', + version='5.0') + return self._deserialize('[Process]', self._unwrap_collection(response)) + + def get_project_collection(self, collection_id): + """GetProjectCollection. + Get project collection with the specified id or name. + :param str collection_id: + :rtype: :class:` ` + """ + route_values = {} + if collection_id is not None: + route_values['collectionId'] = self._serialize.url('collection_id', collection_id, 'str') + response = self._send(http_method='GET', + location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', + version='5.0', + route_values=route_values) + return self._deserialize('TeamProjectCollection', response) + + def get_project_collections(self, top=None, skip=None): + """GetProjectCollections. + Get project collection references for this application. + :param int top: + :param int skip: + :rtype: [TeamProjectCollectionReference] + """ + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[TeamProjectCollectionReference]', self._unwrap_collection(response)) + + def get_project(self, project_id, include_capabilities=None, include_history=None): + """GetProject. + Get project with the specified id or name, optionally including capabilities. + :param str project_id: + :param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false). + :param bool include_history: Search within renamed projects (that had such name in the past). + :rtype: :class:` ` + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + query_parameters = {} + if include_capabilities is not None: + query_parameters['includeCapabilities'] = self._serialize.query('include_capabilities', include_capabilities, 'bool') + if include_history is not None: + query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool') + response = self._send(http_method='GET', + location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TeamProject', response) + + def get_projects(self, state_filter=None, top=None, skip=None, continuation_token=None, get_default_team_image_url=None): + """GetProjects. + Get all projects in the organization that the authenticated user has access to. + :param str state_filter: Filter on team projects in a specific team project state (default: WellFormed). + :param int top: + :param int skip: + :param str continuation_token: + :param bool get_default_team_image_url: + :rtype: [TeamProjectReference] + """ + query_parameters = {} + if state_filter is not None: + query_parameters['stateFilter'] = self._serialize.query('state_filter', state_filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if get_default_team_image_url is not None: + query_parameters['getDefaultTeamImageUrl'] = self._serialize.query('get_default_team_image_url', get_default_team_image_url, 'bool') + response = self._send(http_method='GET', + location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[TeamProjectReference]', self._unwrap_collection(response)) + + def queue_create_project(self, project_to_create): + """QueueCreateProject. + Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status. + :param :class:` ` project_to_create: The project to create. + :rtype: :class:` ` + """ + content = self._serialize.body(project_to_create, 'TeamProject') + response = self._send(http_method='POST', + location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', + version='5.0', + content=content) + return self._deserialize('OperationReference', response) + + def queue_delete_project(self, project_id): + """QueueDeleteProject. + Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. + :param str project_id: The project id of the project to delete. + :rtype: :class:` ` + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + response = self._send(http_method='DELETE', + location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', + version='5.0', + route_values=route_values) + return self._deserialize('OperationReference', response) + + def update_project(self, project_update, project_id): + """UpdateProject. + Update an existing project's name, abbreviation, or description. + :param :class:` ` project_update: The updates for the project. + :param str project_id: The project id of the project to update. + :rtype: :class:` ` + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + content = self._serialize.body(project_update, 'TeamProject') + response = self._send(http_method='PATCH', + location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('OperationReference', response) + + def create_team(self, team, project_id): + """CreateTeam. + Create a team in a team project. + :param :class:` ` team: The team data used to create the team. + :param str project_id: The name or ID (GUID) of the team project in which to create the team. + :rtype: :class:` ` + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + content = self._serialize.body(team, 'WebApiTeam') + response = self._send(http_method='POST', + location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WebApiTeam', response) + + def delete_team(self, project_id, team_id): + """DeleteTeam. + Delete a team. + :param str project_id: The name or ID (GUID) of the team project containing the team to delete. + :param str team_id: The name of ID of the team to delete. + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + if team_id is not None: + route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') + self._send(http_method='DELETE', + location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', + version='5.0', + route_values=route_values) + + def get_team(self, project_id, team_id): + """GetTeam. + Get a specific team. + :param str project_id: The name or ID (GUID) of the team project containing the team. + :param str team_id: The name or ID (GUID) of the team. + :rtype: :class:` ` + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + if team_id is not None: + route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') + response = self._send(http_method='GET', + location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', + version='5.0', + route_values=route_values) + return self._deserialize('WebApiTeam', response) + + def get_teams(self, project_id, mine=None, top=None, skip=None): + """GetTeams. + Get a list of teams. + :param str project_id: + :param bool mine: If true return all the teams requesting user is member, otherwise return all the teams user has read access + :param int top: Maximum number of teams to return. + :param int skip: Number of teams to skip. + :rtype: [WebApiTeam] + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + query_parameters = {} + if mine is not None: + query_parameters['$mine'] = self._serialize.query('mine', mine, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WebApiTeam]', self._unwrap_collection(response)) + + def update_team(self, team_data, project_id, team_id): + """UpdateTeam. + Update a team's name and/or description. + :param :class:` ` team_data: + :param str project_id: The name or ID (GUID) of the team project containing the team to update. + :param str team_id: The name of ID of the team to update. + :rtype: :class:` ` + """ + route_values = {} + if project_id is not None: + route_values['projectId'] = self._serialize.url('project_id', project_id, 'str') + if team_id is not None: + route_values['teamId'] = self._serialize.url('team_id', team_id, 'str') + content = self._serialize.body(team_data, 'WebApiTeam') + response = self._send(http_method='PATCH', + location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WebApiTeam', response) + diff --git a/azure-devops/azure/devops/released/git/__init__.py b/azure-devops/azure/devops/released/git/__init__.py new file mode 100644 index 00000000..991c8785 --- /dev/null +++ b/azure-devops/azure/devops/released/git/__init__.py @@ -0,0 +1,121 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.git.models import * +from .git_client import GitClient + +__all__ = [ + 'Attachment', + 'Change', + 'Comment', + 'CommentIterationContext', + 'CommentPosition', + 'CommentThread', + 'CommentThreadContext', + 'CommentTrackingCriteria', + 'FileContentMetadata', + 'FileDiff', + 'FileDiffParams', + 'FileDiffsCriteria', + 'GitAnnotatedTag', + 'GitAsyncRefOperation', + 'GitAsyncRefOperationDetail', + 'GitAsyncRefOperationParameters', + 'GitAsyncRefOperationSource', + 'GitBaseVersionDescriptor', + 'GitBlobRef', + 'GitBranchStats', + 'GitCherryPick', + 'GitCommit', + 'GitCommitChanges', + 'GitCommitDiffs', + 'GitCommitRef', + 'GitConflict', + 'GitConflictUpdateResult', + 'GitDeletedRepository', + 'GitFilePathsCollection', + 'GitForkOperationStatusDetail', + 'GitForkRef', + 'GitForkSyncRequest', + 'GitForkSyncRequestParameters', + 'GitImportGitSource', + 'GitImportRequest', + 'GitImportRequestParameters', + 'GitImportStatusDetail', + 'GitImportTfvcSource', + 'GitItem', + 'GitItemDescriptor', + 'GitItemRequestData', + 'GitMerge', + 'GitMergeOperationStatusDetail', + 'GitMergeOriginRef', + 'GitMergeParameters', + 'GitObject', + 'GitPullRequest', + 'GitPullRequestChange', + 'GitPullRequestCommentThread', + 'GitPullRequestCommentThreadContext', + 'GitPullRequestCompletionOptions', + 'GitPullRequestIteration', + 'GitPullRequestIterationChanges', + 'GitPullRequestMergeOptions', + 'GitPullRequestQuery', + 'GitPullRequestQueryInput', + 'GitPullRequestSearchCriteria', + 'GitPullRequestStatus', + 'GitPush', + 'GitPushRef', + 'GitPushSearchCriteria', + 'GitQueryBranchStatsCriteria', + 'GitQueryCommitsCriteria', + 'GitRecycleBinRepositoryDetails', + 'GitRef', + 'GitRefFavorite', + 'GitRefUpdate', + 'GitRefUpdateResult', + 'GitRepository', + 'GitRepositoryCreateOptions', + 'GitRepositoryRef', + 'GitRepositoryStats', + 'GitRevert', + 'GitStatus', + 'GitStatusContext', + 'GitSuggestion', + 'GitTargetVersionDescriptor', + 'GitTemplate', + 'GitTreeDiff', + 'GitTreeDiffEntry', + 'GitTreeDiffResponse', + 'GitTreeEntryRef', + 'GitTreeRef', + 'GitUserDate', + 'GitVersionDescriptor', + 'GlobalGitRepositoryKey', + 'GraphSubjectBase', + 'IdentityRef', + 'IdentityRefWithVote', + 'ImportRepositoryValidation', + 'ItemContent', + 'ItemModel', + 'JsonPatchOperation', + 'LineDiffBlock', + 'PolicyConfiguration', + 'PolicyConfigurationRef', + 'PolicyTypeRef', + 'ReferenceLinks', + 'ResourceRef', + 'ShareNotificationContext', + 'SourceToTargetRef', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'VersionedPolicyConfigurationRef', + 'VstsInfo', + 'WebApiCreateTagRequestData', + 'WebApiTagDefinition', + 'GitClient' +] diff --git a/azure-devops/azure/devops/released/git/git_client.py b/azure-devops/azure/devops/released/git/git_client.py new file mode 100644 index 00000000..b2900002 --- /dev/null +++ b/azure-devops/azure/devops/released/git/git_client.py @@ -0,0 +1,13 @@ +# coding=utf-8 + +from .git_client_base import GitClientBase + + +class GitClient(GitClientBase): + """Git + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GitClient, self).__init__(base_url, creds) diff --git a/azure-devops/azure/devops/released/git/git_client_base.py b/azure-devops/azure/devops/released/git/git_client_base.py new file mode 100644 index 00000000..8964ba39 --- /dev/null +++ b/azure-devops/azure/devops/released/git/git_client_base.py @@ -0,0 +1,1943 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.git import models + + +class GitClientBase(Client): + """Git + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(GitClientBase, 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 = '4e080c62-fa21-4fbc-8fef-2a10a2b38049' + + def get_blob(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None): + """GetBlob. + Get a single blob. + :param str repository_id: The name or ID of the repository. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. + :param str project: Project ID or project name + :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip + :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if sha1 is not None: + route_values['sha1'] = self._serialize.url('sha1', sha1, 'str') + query_parameters = {} + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') + response = self._send(http_method='GET', + location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitBlobRef', response) + + def get_blob_content(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None, **kwargs): + """GetBlobContent. + Get a single blob. + :param str repository_id: The name or ID of the repository. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. + :param str project: Project ID or project name + :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip + :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if sha1 is not None: + route_values['sha1'] = self._serialize.url('sha1', sha1, 'str') + query_parameters = {} + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') + response = self._send(http_method='GET', + location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_blobs_zip(self, blob_ids, repository_id, project=None, filename=None, **kwargs): + """GetBlobsZip. + Gets one or more blobs in a zip file download. + :param [str] blob_ids: Blob IDs (SHA1 hashes) to be returned in the zip file. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param str filename: + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if filename is not None: + query_parameters['filename'] = self._serialize.query('filename', filename, 'str') + content = self._serialize.body(blob_ids, '[str]') + response = self._send(http_method='POST', + location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_blob_zip(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None, **kwargs): + """GetBlobZip. + Get a single blob. + :param str repository_id: The name or ID of the repository. + :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint. + :param str project: Project ID or project name + :param bool download: If true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip + :param str file_name: Provide a fileName to use for a download. + :param bool resolve_lfs: If true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if sha1 is not None: + route_values['sha1'] = self._serialize.url('sha1', sha1, 'str') + query_parameters = {} + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') + response = self._send(http_method='GET', + location_id='7b28e929-2c99-405d-9c5c-6167a06e6816', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_branch(self, repository_id, name, project=None, base_version_descriptor=None): + """GetBranch. + Retrieve statistics about a single branch. + :param str repository_id: The name or ID of the repository. + :param str name: Name of the branch. + :param str project: Project ID or project name + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if base_version_descriptor is not None: + if base_version_descriptor.version_type is not None: + query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type + if base_version_descriptor.version is not None: + query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version + if base_version_descriptor.version_options is not None: + query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options + response = self._send(http_method='GET', + location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitBranchStats', response) + + def get_branches(self, repository_id, project=None, base_version_descriptor=None): + """GetBranches. + Retrieve statistics about all branches within a repository. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param :class:` ` base_version_descriptor: Identifies the commit or branch to use as the base. + :rtype: [GitBranchStats] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if base_version_descriptor is not None: + if base_version_descriptor.version_type is not None: + query_parameters['baseVersionDescriptor.versionType'] = base_version_descriptor.version_type + if base_version_descriptor.version is not None: + query_parameters['baseVersionDescriptor.version'] = base_version_descriptor.version + if base_version_descriptor.version_options is not None: + query_parameters['baseVersionDescriptor.versionOptions'] = base_version_descriptor.version_options + response = self._send(http_method='GET', + location_id='d5b216de-d8d5-4d32-ae76-51df755b16d3', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitBranchStats]', self._unwrap_collection(response)) + + def get_changes(self, commit_id, repository_id, project=None, top=None, skip=None): + """GetChanges. + Retrieve changes for a particular commit. + :param str commit_id: The id of the commit. + :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + :param str project: Project ID or project name + :param int top: The maximum number of changes to return. + :param int skip: The number of changes to skip. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if commit_id is not None: + route_values['commitId'] = self._serialize.url('commit_id', commit_id, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='5bf884f5-3e07-42e9-afb8-1b872267bf16', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitCommitChanges', response) + + def get_commit_diffs(self, repository_id, project=None, diff_common_commit=None, top=None, skip=None, base_version_descriptor=None, target_version_descriptor=None): + """GetCommitDiffs. + Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param bool diff_common_commit: If true, diff between common and target commits. If false, diff between base and target commits. + :param int top: Maximum number of changes to return. Defaults to 100. + :param int skip: Number of changes to skip + :param :class:` ` base_version_descriptor: Descriptor for base commit. + :param :class:` ` target_version_descriptor: Descriptor for target commit. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if diff_common_commit is not None: + query_parameters['diffCommonCommit'] = self._serialize.query('diff_common_commit', diff_common_commit, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if base_version_descriptor is not None: + if base_version_descriptor.base_version_type is not None: + query_parameters['baseVersionType'] = base_version_descriptor.base_version_type + if base_version_descriptor.base_version is not None: + query_parameters['baseVersion'] = base_version_descriptor.base_version + if base_version_descriptor.base_version_options is not None: + query_parameters['baseVersionOptions'] = base_version_descriptor.base_version_options + if target_version_descriptor is not None: + if target_version_descriptor.target_version_type is not None: + query_parameters['targetVersionType'] = target_version_descriptor.target_version_type + if target_version_descriptor.target_version is not None: + query_parameters['targetVersion'] = target_version_descriptor.target_version + if target_version_descriptor.target_version_options is not None: + query_parameters['targetVersionOptions'] = target_version_descriptor.target_version_options + response = self._send(http_method='GET', + location_id='615588d5-c0c7-4b88-88f8-e625306446e8', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitCommitDiffs', response) + + def get_commit(self, commit_id, repository_id, project=None, change_count=None): + """GetCommit. + Retrieve a particular commit. + :param str commit_id: The id of the commit. + :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + :param str project: Project ID or project name + :param int change_count: The number of changes to include in the result. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if commit_id is not None: + route_values['commitId'] = self._serialize.url('commit_id', commit_id, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if change_count is not None: + query_parameters['changeCount'] = self._serialize.query('change_count', change_count, 'int') + response = self._send(http_method='GET', + location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitCommit', response) + + def get_commits(self, repository_id, search_criteria, project=None, skip=None, top=None): + """GetCommits. + Retrieve git commits for a project + :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + :param :class:` ` search_criteria: + :param str project: Project ID or project name + :param int skip: + :param int top: + :rtype: [GitCommitRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if search_criteria is not None: + if search_criteria.ids is not None: + query_parameters['searchCriteria.ids'] = search_criteria.ids + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.item_version is not None: + if search_criteria.item_version.version_type is not None: + query_parameters['searchCriteria.itemVersion.versionType'] = search_criteria.item_version.version_type + if search_criteria.item_version.version is not None: + query_parameters['searchCriteria.itemVersion.version'] = search_criteria.item_version.version + if search_criteria.item_version.version_options is not None: + query_parameters['searchCriteria.itemVersion.versionOptions'] = search_criteria.item_version.version_options + if search_criteria.compare_version is not None: + if search_criteria.compare_version.version_type is not None: + query_parameters['searchCriteria.compareVersion.versionType'] = search_criteria.compare_version.version_type + if search_criteria.compare_version.version is not None: + query_parameters['searchCriteria.compareVersion.version'] = search_criteria.compare_version.version + if search_criteria.compare_version.version_options is not None: + query_parameters['searchCriteria.compareVersion.versionOptions'] = search_criteria.compare_version.version_options + if search_criteria.from_commit_id is not None: + query_parameters['searchCriteria.fromCommitId'] = search_criteria.from_commit_id + if search_criteria.to_commit_id is not None: + query_parameters['searchCriteria.toCommitId'] = search_criteria.to_commit_id + if search_criteria.user is not None: + query_parameters['searchCriteria.user'] = search_criteria.user + if search_criteria.author is not None: + query_parameters['searchCriteria.author'] = search_criteria.author + if search_criteria.item_path is not None: + query_parameters['searchCriteria.itemPath'] = search_criteria.item_path + if search_criteria.exclude_deletes is not None: + query_parameters['searchCriteria.excludeDeletes'] = search_criteria.exclude_deletes + if search_criteria.skip is not None: + query_parameters['searchCriteria.$skip'] = search_criteria.skip + if search_criteria.top is not None: + query_parameters['searchCriteria.$top'] = search_criteria.top + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if search_criteria.include_work_items is not None: + query_parameters['searchCriteria.includeWorkItems'] = search_criteria.include_work_items + if search_criteria.include_user_image_url is not None: + query_parameters['searchCriteria.includeUserImageUrl'] = search_criteria.include_user_image_url + if search_criteria.include_push_data is not None: + query_parameters['searchCriteria.includePushData'] = search_criteria.include_push_data + if search_criteria.history_mode is not None: + query_parameters['searchCriteria.historyMode'] = search_criteria.history_mode + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) + + def get_push_commits(self, repository_id, push_id, project=None, top=None, skip=None, include_links=None): + """GetPushCommits. + Retrieve a list of commits associated with a particular push. + :param str repository_id: The id or friendly name of the repository. To use the friendly name, projectId must also be specified. + :param int push_id: The id of the push. + :param str project: Project ID or project name + :param int top: The maximum number of commits to return ("get the top x commits"). + :param int skip: The number of commits to skip. + :param bool include_links: Set to false to avoid including REST Url links for resources. Defaults to true. + :rtype: [GitCommitRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if push_id is not None: + query_parameters['pushId'] = self._serialize.query('push_id', push_id, 'int') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='c2570c3b-5b3f-41b8-98bf-5407bfde8d58', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) + + def get_commits_batch(self, search_criteria, repository_id, project=None, skip=None, top=None, include_statuses=None): + """GetCommitsBatch. + Retrieve git commits for a project matching the search criteria + :param :class:` ` search_criteria: Search options + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param int skip: Number of commits to skip. + :param int top: Maximum number of commits to return. + :param bool include_statuses: True to include additional commit status information. + :rtype: [GitCommitRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if include_statuses is not None: + query_parameters['includeStatuses'] = self._serialize.query('include_statuses', include_statuses, 'bool') + content = self._serialize.body(search_criteria, 'GitQueryCommitsCriteria') + response = self._send(http_method='POST', + location_id='6400dfb2-0bcb-462b-b992-5a57f8f1416c', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) + + def get_item(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None): + """GetItem. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content_metadata is not None: + query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') + if latest_processed_change is not None: + query_parameters['latestProcessedChange'] = self._serialize.query('latest_processed_change', latest_processed_change, 'bool') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') + response = self._send(http_method='GET', + location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitItem', response) + + def get_item_content(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): + """GetItemContent. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content_metadata is not None: + query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') + if latest_processed_change is not None: + query_parameters['latestProcessedChange'] = self._serialize.query('latest_processed_change', latest_processed_change, 'bool') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') + response = self._send(http_method='GET', + location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_items(self, repository_id, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, include_links=None, version_descriptor=None): + """GetItems. + Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param bool include_links: Set to true to include links to items. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :rtype: [GitItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content_metadata is not None: + query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') + if latest_processed_change is not None: + query_parameters['latestProcessedChange'] = self._serialize.query('latest_processed_change', latest_processed_change, 'bool') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + response = self._send(http_method='GET', + location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitItem]', self._unwrap_collection(response)) + + def get_item_text(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): + """GetItemText. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content_metadata is not None: + query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') + if latest_processed_change is not None: + query_parameters['latestProcessedChange'] = self._serialize.query('latest_processed_change', latest_processed_change, 'bool') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') + response = self._send(http_method='GET', + location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_item_zip(self, repository_id, path, project=None, scope_path=None, recursion_level=None, include_content_metadata=None, latest_processed_change=None, download=None, version_descriptor=None, include_content=None, resolve_lfs=None, **kwargs): + """GetItemZip. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download. + :param str repository_id: The name or ID of the repository. + :param str path: The item path. + :param str project: Project ID or project name + :param str scope_path: The path scope. The default is null. + :param str recursion_level: The recursion level of this request. The default is 'none', no recursion. + :param bool include_content_metadata: Set to true to include content metadata. Default is false. + :param bool latest_processed_change: Set to true to include the lastest changes. Default is false. + :param bool download: Set to true to download the response as a file. Default is false. + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :param bool resolve_lfs: Set to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_content_metadata is not None: + query_parameters['includeContentMetadata'] = self._serialize.query('include_content_metadata', include_content_metadata, 'bool') + if latest_processed_change is not None: + query_parameters['latestProcessedChange'] = self._serialize.query('latest_processed_change', latest_processed_change, 'bool') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + if resolve_lfs is not None: + query_parameters['resolveLfs'] = self._serialize.query('resolve_lfs', resolve_lfs, 'bool') + response = self._send(http_method='GET', + location_id='fb93c0db-47ed-4a31-8c20-47552878fb44', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_items_batch(self, request_data, repository_id, project=None): + """GetItemsBatch. + Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path + :param :class:` ` request_data: Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references. + :param str repository_id: The name or ID of the repository + :param str project: Project ID or project name + :rtype: [[GitItem]] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + content = self._serialize.body(request_data, 'GitItemRequestData') + response = self._send(http_method='POST', + location_id='630fd2e4-fb88-4f85-ad21-13f3fd1fbca9', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[[GitItem]]', self._unwrap_collection(response)) + + def get_pull_request_iteration_commits(self, repository_id, pull_request_id, iteration_id, project=None): + """GetPullRequestIterationCommits. + Get the commits for the specified iteration of a pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the iteration from which to get the commits. + :param str project: Project ID or project name + :rtype: [GitCommitRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + response = self._send(http_method='GET', + location_id='e7ea0883-095f-4926-b5fb-f24691c26fb9', + version='5.0', + route_values=route_values) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) + + def get_pull_request_commits(self, repository_id, pull_request_id, project=None): + """GetPullRequestCommits. + Get the commits for the specified pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :rtype: [GitCommitRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + response = self._send(http_method='GET', + location_id='52823034-34a8-4576-922c-8d8b77e9e4c4', + version='5.0', + route_values=route_values) + return self._deserialize('[GitCommitRef]', self._unwrap_collection(response)) + + def get_pull_request_iteration_changes(self, repository_id, pull_request_id, iteration_id, project=None, top=None, skip=None, compare_to=None): + """GetPullRequestIterationChanges. + Retrieve the changes made in a pull request between two iterations. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the pull request iteration.
Iteration IDs are zero-based with zero indicating the common commit between the source and target branches. Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. + :param str project: Project ID or project name + :param int top: Optional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000. + :param int skip: Optional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100. + :param int compare_to: ID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if compare_to is not None: + query_parameters['$compareTo'] = self._serialize.query('compare_to', compare_to, 'int') + response = self._send(http_method='GET', + location_id='4216bdcf-b6b1-4d59-8b82-c34cc183fc8b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitPullRequestIterationChanges', response) + + def get_pull_request_iteration(self, repository_id, pull_request_id, iteration_id, project=None): + """GetPullRequestIteration. + Get the specified iteration for a pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. + :param int iteration_id: ID of the pull request iteration to return. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + response = self._send(http_method='GET', + location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', + version='5.0', + route_values=route_values) + return self._deserialize('GitPullRequestIteration', response) + + def get_pull_request_iterations(self, repository_id, pull_request_id, project=None, include_commits=None): + """GetPullRequestIterations. + Get the list of iterations for the specified pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :param bool include_commits: If true, include the commits associated with each iteration in the response. + :rtype: [GitPullRequestIteration] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + query_parameters = {} + if include_commits is not None: + query_parameters['includeCommits'] = self._serialize.query('include_commits', include_commits, 'bool') + response = self._send(http_method='GET', + location_id='d43911ee-6958-46b0-a42b-8445b8a0d004', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitPullRequestIteration]', self._unwrap_collection(response)) + + def get_pull_request_query(self, queries, repository_id, project=None): + """GetPullRequestQuery. + This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests. + :param :class:` ` queries: The list of queries to perform. + :param str repository_id: ID of the repository. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + content = self._serialize.body(queries, 'GitPullRequestQuery') + response = self._send(http_method='POST', + location_id='b3a6eebe-9cf0-49ea-b6cb-1a4c5f5007b0', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('GitPullRequestQuery', response) + + def create_pull_request_reviewer(self, reviewer, repository_id, pull_request_id, reviewer_id, project=None): + """CreatePullRequestReviewer. + Add a reviewer to a pull request or cast a vote. + :param :class:` ` reviewer: Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str reviewer_id: ID of the reviewer. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if reviewer_id is not None: + route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') + content = self._serialize.body(reviewer, 'IdentityRefWithVote') + response = self._send(http_method='PUT', + location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('IdentityRefWithVote', response) + + def create_pull_request_reviewers(self, reviewers, repository_id, pull_request_id, project=None): + """CreatePullRequestReviewers. + Add reviewers to a pull request. + :param [IdentityRef] reviewers: Reviewers to add to the pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :rtype: [IdentityRefWithVote] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + content = self._serialize.body(reviewers, '[IdentityRef]') + response = self._send(http_method='POST', + location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) + + def delete_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): + """DeletePullRequestReviewer. + Remove a reviewer from a pull request. + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str reviewer_id: ID of the reviewer to remove. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if reviewer_id is not None: + route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') + self._send(http_method='DELETE', + location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', + version='5.0', + route_values=route_values) + + def get_pull_request_reviewer(self, repository_id, pull_request_id, reviewer_id, project=None): + """GetPullRequestReviewer. + Retrieve information about a particular reviewer on a pull request + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str reviewer_id: ID of the reviewer. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if reviewer_id is not None: + route_values['reviewerId'] = self._serialize.url('reviewer_id', reviewer_id, 'str') + response = self._send(http_method='GET', + location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', + version='5.0', + route_values=route_values) + return self._deserialize('IdentityRefWithVote', response) + + def get_pull_request_reviewers(self, repository_id, pull_request_id, project=None): + """GetPullRequestReviewers. + Retrieve the reviewers for a pull request + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :rtype: [IdentityRefWithVote] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + response = self._send(http_method='GET', + location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', + version='5.0', + route_values=route_values) + return self._deserialize('[IdentityRefWithVote]', self._unwrap_collection(response)) + + def update_pull_request_reviewers(self, patch_votes, repository_id, pull_request_id, project=None): + """UpdatePullRequestReviewers. + Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names. + :param [IdentityRefWithVote] patch_votes: IDs of the reviewers whose votes will be reset to zero + :param str repository_id: The repository ID of the pull request’s target branch. + :param int pull_request_id: ID of the pull request + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + content = self._serialize.body(patch_votes, '[IdentityRefWithVote]') + self._send(http_method='PATCH', + location_id='4b6702c7-aa35-4b89-9c96-b9abf6d3e540', + version='5.0', + route_values=route_values, + content=content) + + def get_pull_request_by_id(self, pull_request_id, project=None): + """GetPullRequestById. + Retrieve a pull request. + :param int pull_request_id: The ID of the pull request to retrieve. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + response = self._send(http_method='GET', + location_id='01a46dea-7d46-4d40-bc84-319e7c260d99', + version='5.0', + route_values=route_values) + return self._deserialize('GitPullRequest', response) + + def get_pull_requests_by_project(self, project, search_criteria, max_comment_length=None, skip=None, top=None): + """GetPullRequestsByProject. + Retrieve all pull requests matching a specified criteria. + :param str project: Project ID or project name + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. + :param int max_comment_length: Not used. + :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. + :param int top: The number of pull requests to retrieve. + :rtype: [GitPullRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_criteria is not None: + if search_criteria.repository_id is not None: + query_parameters['searchCriteria.repositoryId'] = search_criteria.repository_id + if search_criteria.creator_id is not None: + query_parameters['searchCriteria.creatorId'] = search_criteria.creator_id + if search_criteria.reviewer_id is not None: + query_parameters['searchCriteria.reviewerId'] = search_criteria.reviewer_id + if search_criteria.status is not None: + query_parameters['searchCriteria.status'] = search_criteria.status + if search_criteria.target_ref_name is not None: + query_parameters['searchCriteria.targetRefName'] = search_criteria.target_ref_name + if search_criteria.source_repository_id is not None: + query_parameters['searchCriteria.sourceRepositoryId'] = search_criteria.source_repository_id + if search_criteria.source_ref_name is not None: + query_parameters['searchCriteria.sourceRefName'] = search_criteria.source_ref_name + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='a5d28130-9cd2-40fa-9f08-902e7daa9efb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) + + def create_pull_request(self, git_pull_request_to_create, repository_id, project=None, supports_iterations=None): + """CreatePullRequest. + Create a pull request. + :param :class:` ` git_pull_request_to_create: The pull request to create. + :param str repository_id: The repository ID of the pull request's target branch. + :param str project: Project ID or project name + :param bool supports_iterations: If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if supports_iterations is not None: + query_parameters['supportsIterations'] = self._serialize.query('supports_iterations', supports_iterations, 'bool') + content = self._serialize.body(git_pull_request_to_create, 'GitPullRequest') + response = self._send(http_method='POST', + location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('GitPullRequest', response) + + def get_pull_request(self, repository_id, pull_request_id, project=None, max_comment_length=None, skip=None, top=None, include_commits=None, include_work_item_refs=None): + """GetPullRequest. + Retrieve a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: The ID of the pull request to retrieve. + :param str project: Project ID or project name + :param int max_comment_length: Not used. + :param int skip: Not used. + :param int top: Not used. + :param bool include_commits: If true, the pull request will be returned with the associated commits. + :param bool include_work_item_refs: If true, the pull request will be returned with the associated work item references. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + query_parameters = {} + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if include_commits is not None: + query_parameters['includeCommits'] = self._serialize.query('include_commits', include_commits, 'bool') + if include_work_item_refs is not None: + query_parameters['includeWorkItemRefs'] = self._serialize.query('include_work_item_refs', include_work_item_refs, 'bool') + response = self._send(http_method='GET', + location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitPullRequest', response) + + def get_pull_requests(self, repository_id, search_criteria, project=None, max_comment_length=None, skip=None, top=None): + """GetPullRequests. + Retrieve all pull requests matching a specified criteria. + :param str repository_id: The repository ID of the pull request's target branch. + :param :class:` ` search_criteria: Pull requests will be returned that match this search criteria. + :param str project: Project ID or project name + :param int max_comment_length: Not used. + :param int skip: The number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. + :param int top: The number of pull requests to retrieve. + :rtype: [GitPullRequest] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if search_criteria is not None: + if search_criteria.repository_id is not None: + query_parameters['searchCriteria.repositoryId'] = search_criteria.repository_id + if search_criteria.creator_id is not None: + query_parameters['searchCriteria.creatorId'] = search_criteria.creator_id + if search_criteria.reviewer_id is not None: + query_parameters['searchCriteria.reviewerId'] = search_criteria.reviewer_id + if search_criteria.status is not None: + query_parameters['searchCriteria.status'] = search_criteria.status + if search_criteria.target_ref_name is not None: + query_parameters['searchCriteria.targetRefName'] = search_criteria.target_ref_name + if search_criteria.source_repository_id is not None: + query_parameters['searchCriteria.sourceRepositoryId'] = search_criteria.source_repository_id + if search_criteria.source_ref_name is not None: + query_parameters['searchCriteria.sourceRefName'] = search_criteria.source_ref_name + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitPullRequest]', self._unwrap_collection(response)) + + def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None): + """UpdatePullRequest. + Update a pull request. + :param :class:` ` git_pull_request_to_update: The pull request content to update. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: The ID of the pull request to retrieve. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + content = self._serialize.body(git_pull_request_to_update, 'GitPullRequest') + response = self._send(http_method='PATCH', + location_id='9946fd70-0d40-406e-b686-b4744cbbcc37', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('GitPullRequest', response) + + def create_comment(self, comment, repository_id, pull_request_id, thread_id, project=None): + """CreateComment. + Create a comment on a specific thread in a pull request. + :param :class:` ` comment: The comment to create. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if thread_id is not None: + route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') + content = self._serialize.body(comment, 'Comment') + response = self._send(http_method='POST', + location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Comment', response) + + def delete_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): + """DeleteComment. + Delete a comment associated with a specific thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. + :param int comment_id: ID of the comment. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if thread_id is not None: + route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + self._send(http_method='DELETE', + location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', + version='5.0', + route_values=route_values) + + def get_comment(self, repository_id, pull_request_id, thread_id, comment_id, project=None): + """GetComment. + Retrieve a comment associated with a specific thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. + :param int comment_id: ID of the comment. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if thread_id is not None: + route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + response = self._send(http_method='GET', + location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', + version='5.0', + route_values=route_values) + return self._deserialize('Comment', response) + + def get_comments(self, repository_id, pull_request_id, thread_id, project=None): + """GetComments. + Retrieve all comments associated with a specific thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread. + :param str project: Project ID or project name + :rtype: [Comment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if thread_id is not None: + route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') + response = self._send(http_method='GET', + location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', + version='5.0', + route_values=route_values) + return self._deserialize('[Comment]', self._unwrap_collection(response)) + + def update_comment(self, comment, repository_id, pull_request_id, thread_id, comment_id, project=None): + """UpdateComment. + Update a comment associated with a specific thread in a pull request. + :param :class:` ` comment: The comment content that should be updated. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread that the desired comment is in. + :param int comment_id: ID of the comment to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if thread_id is not None: + route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') + if comment_id is not None: + route_values['commentId'] = self._serialize.url('comment_id', comment_id, 'int') + content = self._serialize.body(comment, 'Comment') + response = self._send(http_method='PATCH', + location_id='965a3ec7-5ed8-455a-bdcb-835a5ea7fe7b', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Comment', response) + + def create_thread(self, comment_thread, repository_id, pull_request_id, project=None): + """CreateThread. + Create a thread in a pull request. + :param :class:` ` comment_thread: The thread to create. Thread must contain at least one comment. + :param str repository_id: Repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') + response = self._send(http_method='POST', + location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('GitPullRequestCommentThread', response) + + def get_pull_request_thread(self, repository_id, pull_request_id, thread_id, project=None, iteration=None, base_iteration=None): + """GetPullRequestThread. + Retrieve a thread in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread. + :param str project: Project ID or project name + :param int iteration: If specified, thread position will be tracked using this iteration as the right side of the diff. + :param int base_iteration: If specified, thread position will be tracked using this iteration as the left side of the diff. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if thread_id is not None: + route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') + query_parameters = {} + if iteration is not None: + query_parameters['$iteration'] = self._serialize.query('iteration', iteration, 'int') + if base_iteration is not None: + query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') + response = self._send(http_method='GET', + location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitPullRequestCommentThread', response) + + def get_threads(self, repository_id, pull_request_id, project=None, iteration=None, base_iteration=None): + """GetThreads. + Retrieve all threads in a pull request. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :param int iteration: If specified, thread positions will be tracked using this iteration as the right side of the diff. + :param int base_iteration: If specified, thread positions will be tracked using this iteration as the left side of the diff. + :rtype: [GitPullRequestCommentThread] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + query_parameters = {} + if iteration is not None: + query_parameters['$iteration'] = self._serialize.query('iteration', iteration, 'int') + if base_iteration is not None: + query_parameters['$baseIteration'] = self._serialize.query('base_iteration', base_iteration, 'int') + response = self._send(http_method='GET', + location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitPullRequestCommentThread]', self._unwrap_collection(response)) + + def update_thread(self, comment_thread, repository_id, pull_request_id, thread_id, project=None): + """UpdateThread. + Update a thread in a pull request. + :param :class:` ` comment_thread: The thread content that should be updated. + :param str repository_id: The repository ID of the pull request's target branch. + :param int pull_request_id: ID of the pull request. + :param int thread_id: ID of the thread to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + if thread_id is not None: + route_values['threadId'] = self._serialize.url('thread_id', thread_id, 'int') + content = self._serialize.body(comment_thread, 'GitPullRequestCommentThread') + response = self._send(http_method='PATCH', + location_id='ab6e2e5d-a0b7-4153-b64a-a4efe0d49449', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('GitPullRequestCommentThread', response) + + def get_pull_request_work_item_refs(self, repository_id, pull_request_id, project=None): + """GetPullRequestWorkItemRefs. + Retrieve a list of work items associated with a pull request. + :param str repository_id: ID or name of the repository. + :param int pull_request_id: ID of the pull request. + :param str project: Project ID or project name + :rtype: [ResourceRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if pull_request_id is not None: + route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int') + response = self._send(http_method='GET', + location_id='0a637fcc-5370-4ce8-b0e8-98091f5f9482', + version='5.0', + route_values=route_values) + return self._deserialize('[ResourceRef]', self._unwrap_collection(response)) + + def create_push(self, push, repository_id, project=None): + """CreatePush. + Push changes to the repository. + :param :class:` ` push: + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + content = self._serialize.body(push, 'GitPush') + response = self._send(http_method='POST', + location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('GitPush', response) + + def get_push(self, repository_id, push_id, project=None, include_commits=None, include_ref_updates=None): + """GetPush. + Retrieves a particular push. + :param str repository_id: The name or ID of the repository. + :param int push_id: ID of the push. + :param str project: Project ID or project name + :param int include_commits: The number of commits to include in the result. + :param bool include_ref_updates: If true, include the list of refs that were updated by the push. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if push_id is not None: + route_values['pushId'] = self._serialize.url('push_id', push_id, 'int') + query_parameters = {} + if include_commits is not None: + query_parameters['includeCommits'] = self._serialize.query('include_commits', include_commits, 'int') + if include_ref_updates is not None: + query_parameters['includeRefUpdates'] = self._serialize.query('include_ref_updates', include_ref_updates, 'bool') + response = self._send(http_method='GET', + location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitPush', response) + + def get_pushes(self, repository_id, project=None, skip=None, top=None, search_criteria=None): + """GetPushes. + Retrieves pushes associated with the specified repository. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param int skip: Number of pushes to skip. + :param int top: Number of pushes to return. + :param :class:` ` search_criteria: Search criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references. + :rtype: [GitPush] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if search_criteria is not None: + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.pusher_id is not None: + query_parameters['searchCriteria.pusherId'] = search_criteria.pusher_id + if search_criteria.ref_name is not None: + query_parameters['searchCriteria.refName'] = search_criteria.ref_name + if search_criteria.include_ref_updates is not None: + query_parameters['searchCriteria.includeRefUpdates'] = search_criteria.include_ref_updates + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + response = self._send(http_method='GET', + location_id='ea98d07b-3c87-4971-8ede-a613694ffb55', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitPush]', self._unwrap_collection(response)) + + def get_refs(self, repository_id, project=None, filter=None, include_links=None, include_statuses=None, include_my_branches=None, latest_statuses_only=None, peel_tags=None, filter_contains=None): + """GetRefs. + Queries the provided repository for its refs and returns them. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param str filter: [optional] A filter to apply to the refs (starts with). + :param bool include_links: [optional] Specifies if referenceLinks should be included in the result. default is false. + :param bool include_statuses: [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false. + :param bool include_my_branches: [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter. + :param bool latest_statuses_only: [optional] True to include only the tip commit status for each ref. This option requires `includeStatuses` to be true. The default value is false. + :param bool peel_tags: [optional] Annotated tags will populate the PeeledObjectId property. default is false. + :param str filter_contains: [optional] A filter to apply to the refs (contains). + :rtype: [GitRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if filter is not None: + query_parameters['filter'] = self._serialize.query('filter', filter, 'str') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if include_statuses is not None: + query_parameters['includeStatuses'] = self._serialize.query('include_statuses', include_statuses, 'bool') + if include_my_branches is not None: + query_parameters['includeMyBranches'] = self._serialize.query('include_my_branches', include_my_branches, 'bool') + if latest_statuses_only is not None: + query_parameters['latestStatusesOnly'] = self._serialize.query('latest_statuses_only', latest_statuses_only, 'bool') + if peel_tags is not None: + query_parameters['peelTags'] = self._serialize.query('peel_tags', peel_tags, 'bool') + if filter_contains is not None: + query_parameters['filterContains'] = self._serialize.query('filter_contains', filter_contains, 'str') + response = self._send(http_method='GET', + location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitRef]', self._unwrap_collection(response)) + + def update_ref(self, new_ref_info, repository_id, filter, project=None, project_id=None): + """UpdateRef. + Lock or Unlock a branch. + :param :class:` ` new_ref_info: The ref update action (lock/unlock) to perform + :param str repository_id: The name or ID of the repository. + :param str filter: The name of the branch to lock/unlock + :param str project: Project ID or project name + :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if filter is not None: + query_parameters['filter'] = self._serialize.query('filter', filter, 'str') + if project_id is not None: + query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') + content = self._serialize.body(new_ref_info, 'GitRefUpdate') + response = self._send(http_method='PATCH', + location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('GitRef', response) + + def update_refs(self, ref_updates, repository_id, project=None, project_id=None): + """UpdateRefs. + Creating, updating, or deleting refs(branches). + :param [GitRefUpdate] ref_updates: List of ref updates to attempt to perform + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :param str project_id: ID or name of the team project. Optional if specifying an ID for repository. + :rtype: [GitRefUpdateResult] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if project_id is not None: + query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') + content = self._serialize.body(ref_updates, '[GitRefUpdate]') + response = self._send(http_method='POST', + location_id='2d874a60-a811-4f62-9c9f-963a6ea0a55b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('[GitRefUpdateResult]', self._unwrap_collection(response)) + + def create_repository(self, git_repository_to_create, project=None, source_ref=None): + """CreateRepository. + Create a git repository in a team project. + :param :class:` ` git_repository_to_create: Specify the repo name, team project and/or parent repository. Team project information can be ommitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id). + :param str project: Project ID or project name + :param str source_ref: [optional] Specify the source refs to use while creating a fork repo + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if source_ref is not None: + query_parameters['sourceRef'] = self._serialize.query('source_ref', source_ref, 'str') + content = self._serialize.body(git_repository_to_create, 'GitRepositoryCreateOptions') + response = self._send(http_method='POST', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('GitRepository', response) + + def delete_repository(self, repository_id, project=None): + """DeleteRepository. + Delete a git repository + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + self._send(http_method='DELETE', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.0', + route_values=route_values) + + def get_repositories(self, project=None, include_links=None, include_all_urls=None, include_hidden=None): + """GetRepositories. + Retrieve git repositories. + :param str project: Project ID or project name + :param bool include_links: [optional] True to include reference links. The default value is false. + :param bool include_all_urls: [optional] True to include all remote URLs. The default value is false. + :param bool include_hidden: [optional] True to include hidden repositories. The default value is false. + :rtype: [GitRepository] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if include_all_urls is not None: + query_parameters['includeAllUrls'] = self._serialize.query('include_all_urls', include_all_urls, 'bool') + if include_hidden is not None: + query_parameters['includeHidden'] = self._serialize.query('include_hidden', include_hidden, 'bool') + response = self._send(http_method='GET', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitRepository]', self._unwrap_collection(response)) + + def get_repository(self, repository_id, project=None): + """GetRepository. + Retrieve a git repository. + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + response = self._send(http_method='GET', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.0', + route_values=route_values) + return self._deserialize('GitRepository', response) + + def get_repository_with_parent(self, repository_id, include_parent, project=None): + """GetRepositoryWithParent. + Retrieve a git repository. + :param str repository_id: The name or ID of the repository. + :param bool include_parent: True to include parent repository. Only available in authenticated calls. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if include_parent is not None: + query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') + response = self._send(http_method='GET', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitRepository', response) + + def update_repository(self, new_repository_info, repository_id, project=None): + """UpdateRepository. + Updates the Git repository with either a new repo name or a new default branch. + :param :class:` ` new_repository_info: Specify a new repo name or a new default branch of the repository + :param str repository_id: The name or ID of the repository. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + content = self._serialize.body(new_repository_info, 'GitRepository') + response = self._send(http_method='PATCH', + location_id='225f7195-f9c7-4d14-ab28-a83f7ff77e1f', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('GitRepository', response) + + def create_commit_status(self, git_commit_status_to_create, commit_id, repository_id, project=None): + """CreateCommitStatus. + Create Git commit status. + :param :class:` ` git_commit_status_to_create: Git commit status object to create. + :param str commit_id: ID of the Git commit. + :param str repository_id: ID of the repository. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if commit_id is not None: + route_values['commitId'] = self._serialize.url('commit_id', commit_id, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + content = self._serialize.body(git_commit_status_to_create, 'GitStatus') + response = self._send(http_method='POST', + location_id='428dd4fb-fda5-4722-af02-9313b80305da', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('GitStatus', response) + + def get_statuses(self, commit_id, repository_id, project=None, top=None, skip=None, latest_only=None): + """GetStatuses. + Get statuses associated with the Git commit. + :param str commit_id: ID of the Git commit. + :param str repository_id: ID of the repository. + :param str project: Project ID or project name + :param int top: Optional. The number of statuses to retrieve. Default is 1000. + :param int skip: Optional. The number of statuses to ignore. Default is 0. For example, to retrieve results 101-150, set top to 50 and skip to 100. + :param bool latest_only: The flag indicates whether to get only latest statuses grouped by `Context.Name` and `Context.Genre`. + :rtype: [GitStatus] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if commit_id is not None: + route_values['commitId'] = self._serialize.url('commit_id', commit_id, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query('skip', skip, 'int') + if latest_only is not None: + query_parameters['latestOnly'] = self._serialize.query('latest_only', latest_only, 'bool') + response = self._send(http_method='GET', + location_id='428dd4fb-fda5-4722-af02-9313b80305da', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[GitStatus]', self._unwrap_collection(response)) + + def get_tree(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None): + """GetTree. + The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. + :param str repository_id: Repository Id. + :param str sha1: SHA1 hash of the tree object. + :param str project: Project ID or project name + :param str project_id: Project Id. + :param bool recursive: Search recursively. Include trees underneath this tree. Default is false. + :param str file_name: Name to use if a .zip file is returned. Default is the object ID. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if sha1 is not None: + route_values['sha1'] = self._serialize.url('sha1', sha1, 'str') + query_parameters = {} + if project_id is not None: + query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') + if recursive is not None: + query_parameters['recursive'] = self._serialize.query('recursive', recursive, 'bool') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + response = self._send(http_method='GET', + location_id='729f6437-6f92-44ec-8bee-273a7111063c', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('GitTreeRef', response) + + def get_tree_zip(self, repository_id, sha1, project=None, project_id=None, recursive=None, file_name=None, **kwargs): + """GetTreeZip. + The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository. + :param str repository_id: Repository Id. + :param str sha1: SHA1 hash of the tree object. + :param str project: Project ID or project name + :param str project_id: Project Id. + :param bool recursive: Search recursively. Include trees underneath this tree. Default is false. + :param str file_name: Name to use if a .zip file is returned. Default is the object ID. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if repository_id is not None: + route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str') + if sha1 is not None: + route_values['sha1'] = self._serialize.url('sha1', sha1, 'str') + query_parameters = {} + if project_id is not None: + query_parameters['projectId'] = self._serialize.query('project_id', project_id, 'str') + if recursive is not None: + query_parameters['recursive'] = self._serialize.query('recursive', recursive, 'bool') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + response = self._send(http_method='GET', + location_id='729f6437-6f92-44ec-8bee-273a7111063c', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + diff --git a/azure-devops/azure/devops/released/identity/__init__.py b/azure-devops/azure/devops/released/identity/__init__.py new file mode 100644 index 00000000..4f6b82f8 --- /dev/null +++ b/azure-devops/azure/devops/released/identity/__init__.py @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.identity.models import * +from .identity_client import IdentityClient + +__all__ = [ + 'AccessTokenResult', + 'AuthorizationGrant', + 'ChangedIdentities', + 'ChangedIdentitiesContext', + 'CreateScopeInfo', + 'FrameworkIdentityInfo', + 'GroupMembership', + 'Identity', + 'IdentityBase', + 'IdentityBatchInfo', + 'IdentityScope', + 'IdentitySelf', + 'IdentitySnapshot', + 'IdentityUpdateData', + 'JsonPatchOperation', + 'JsonWebToken', + 'RefreshTokenGrant', + 'SwapIdentityInfo', + 'TenantInfo', + 'IdentityClient' +] diff --git a/azure-devops/azure/devops/released/identity/identity_client.py b/azure-devops/azure/devops/released/identity/identity_client.py new file mode 100644 index 00000000..3b07810f --- /dev/null +++ b/azure-devops/azure/devops/released/identity/identity_client.py @@ -0,0 +1,253 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.identity import models + + +class IdentityClient(Client): + """Identity + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(IdentityClient, 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 = '8a3d49b8-91f0-46ef-b33d-dda338c25db3' + + def create_groups(self, container): + """CreateGroups. + :param :class:` ` container: + :rtype: [Identity] + """ + content = self._serialize.body(container, 'object') + response = self._send(http_method='POST', + location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', + version='5.0', + content=content) + return self._deserialize('[Identity]', self._unwrap_collection(response)) + + def delete_group(self, group_id): + """DeleteGroup. + :param str group_id: + """ + route_values = {} + if group_id is not None: + route_values['groupId'] = self._serialize.url('group_id', group_id, 'str') + self._send(http_method='DELETE', + location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', + version='5.0', + route_values=route_values) + + def list_groups(self, scope_ids=None, recurse=None, deleted=None, properties=None): + """ListGroups. + :param str scope_ids: + :param bool recurse: + :param bool deleted: + :param str properties: + :rtype: [Identity] + """ + query_parameters = {} + if scope_ids is not None: + query_parameters['scopeIds'] = self._serialize.query('scope_ids', scope_ids, 'str') + if recurse is not None: + query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') + if deleted is not None: + query_parameters['deleted'] = self._serialize.query('deleted', deleted, 'bool') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + response = self._send(http_method='GET', + location_id='5966283b-4196-4d57-9211-1b68f41ec1c2', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) + + def get_identity_changes(self, identity_sequence_id, group_sequence_id, organization_identity_sequence_id=None, page_size=None, scope_id=None): + """GetIdentityChanges. + :param int identity_sequence_id: + :param int group_sequence_id: + :param int organization_identity_sequence_id: + :param int page_size: + :param str scope_id: + :rtype: :class:` ` + """ + query_parameters = {} + if identity_sequence_id is not None: + query_parameters['identitySequenceId'] = self._serialize.query('identity_sequence_id', identity_sequence_id, 'int') + if group_sequence_id is not None: + query_parameters['groupSequenceId'] = self._serialize.query('group_sequence_id', group_sequence_id, 'int') + if organization_identity_sequence_id is not None: + query_parameters['organizationIdentitySequenceId'] = self._serialize.query('organization_identity_sequence_id', organization_identity_sequence_id, 'int') + if page_size is not None: + query_parameters['pageSize'] = self._serialize.query('page_size', page_size, 'int') + if scope_id is not None: + query_parameters['scopeId'] = self._serialize.query('scope_id', scope_id, 'str') + response = self._send(http_method='GET', + location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('ChangedIdentities', response) + + def get_user_identity_ids_by_domain_id(self, domain_id): + """GetUserIdentityIdsByDomainId. + :param str domain_id: + :rtype: [str] + """ + query_parameters = {} + if domain_id is not None: + query_parameters['domainId'] = self._serialize.query('domain_id', domain_id, 'str') + response = self._send(http_method='GET', + location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def read_identities(self, descriptors=None, identity_ids=None, subject_descriptors=None, search_filter=None, filter_value=None, query_membership=None, properties=None, include_restricted_visibility=None, options=None): + """ReadIdentities. + :param str descriptors: + :param str identity_ids: + :param str subject_descriptors: + :param str search_filter: + :param str filter_value: + :param str query_membership: + :param str properties: + :param bool include_restricted_visibility: + :param str options: + :rtype: [Identity] + """ + query_parameters = {} + if descriptors is not None: + query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') + if identity_ids is not None: + query_parameters['identityIds'] = self._serialize.query('identity_ids', identity_ids, 'str') + if subject_descriptors is not None: + query_parameters['subjectDescriptors'] = self._serialize.query('subject_descriptors', subject_descriptors, 'str') + if search_filter is not None: + query_parameters['searchFilter'] = self._serialize.query('search_filter', search_filter, 'str') + if filter_value is not None: + query_parameters['filterValue'] = self._serialize.query('filter_value', filter_value, 'str') + if query_membership is not None: + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + if include_restricted_visibility is not None: + query_parameters['includeRestrictedVisibility'] = self._serialize.query('include_restricted_visibility', include_restricted_visibility, 'bool') + if options is not None: + query_parameters['options'] = self._serialize.query('options', options, 'str') + response = self._send(http_method='GET', + location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) + + def read_identities_by_scope(self, scope_id, query_membership=None, properties=None): + """ReadIdentitiesByScope. + :param str scope_id: + :param str query_membership: + :param str properties: + :rtype: [Identity] + """ + query_parameters = {} + if scope_id is not None: + query_parameters['scopeId'] = self._serialize.query('scope_id', scope_id, 'str') + if query_membership is not None: + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + response = self._send(http_method='GET', + location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[Identity]', self._unwrap_collection(response)) + + def read_identity(self, identity_id, query_membership=None, properties=None): + """ReadIdentity. + :param str identity_id: + :param str query_membership: + :param str properties: + :rtype: :class:` ` + """ + route_values = {} + if identity_id is not None: + route_values['identityId'] = self._serialize.url('identity_id', identity_id, 'str') + query_parameters = {} + if query_membership is not None: + query_parameters['queryMembership'] = self._serialize.query('query_membership', query_membership, 'str') + if properties is not None: + query_parameters['properties'] = self._serialize.query('properties', properties, 'str') + response = self._send(http_method='GET', + location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Identity', response) + + def update_identities(self, identities): + """UpdateIdentities. + :param :class:` ` identities: + :rtype: [IdentityUpdateData] + """ + content = self._serialize.body(identities, 'VssJsonCollectionWrapper') + response = self._send(http_method='PUT', + location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', + version='5.0', + content=content) + return self._deserialize('[IdentityUpdateData]', self._unwrap_collection(response)) + + def update_identity(self, identity, identity_id): + """UpdateIdentity. + :param :class:` ` identity: + :param str identity_id: + """ + route_values = {} + if identity_id is not None: + route_values['identityId'] = self._serialize.url('identity_id', identity_id, 'str') + content = self._serialize.body(identity, 'Identity') + self._send(http_method='PUT', + location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7', + version='5.0', + route_values=route_values, + content=content) + + def create_identity(self, framework_identity_info): + """CreateIdentity. + :param :class:` ` framework_identity_info: + :rtype: :class:` ` + """ + content = self._serialize.body(framework_identity_info, 'FrameworkIdentityInfo') + response = self._send(http_method='PUT', + location_id='dd55f0eb-6ea2-4fe4-9ebe-919e7dd1dfb4', + version='5.0', + content=content) + return self._deserialize('Identity', response) + + def get_max_sequence_id(self): + """GetMaxSequenceId. + Read the max sequence id of all the identities. + :rtype: long + """ + response = self._send(http_method='GET', + location_id='e4a70778-cb2c-4e85-b7cc-3f3c7ae2d408', + version='5.0') + return self._deserialize('long', response) + + def get_self(self): + """GetSelf. + Read identity of the home tenant request user. + :rtype: :class:` ` + """ + response = self._send(http_method='GET', + location_id='4bb02b5b-c120-4be2-b68e-21f7c50a4b82', + version='5.0') + return self._deserialize('IdentitySelf', response) + diff --git a/azure-devops/azure/devops/released/operations/__init__.py b/azure-devops/azure/devops/released/operations/__init__.py new file mode 100644 index 00000000..3080c5c2 --- /dev/null +++ b/azure-devops/azure/devops/released/operations/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.operations.models import * +from .operations_client import OperationsClient + +__all__ = [ + 'Operation', + 'OperationReference', + 'OperationResultReference', + 'ReferenceLinks', + 'OperationsClient' +] diff --git a/azure-devops/azure/devops/released/operations/operations_client.py b/azure-devops/azure/devops/released/operations/operations_client.py new file mode 100644 index 00000000..b724eebe --- /dev/null +++ b/azure-devops/azure/devops/released/operations/operations_client.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.operations import models + + +class OperationsClient(Client): + """Operations + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(OperationsClient, 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_operation(self, operation_id, plugin_id=None): + """GetOperation. + Gets an operation from the the operationId using the given pluginId. + :param str operation_id: The ID for the operation. + :param str plugin_id: The ID for the plugin. + :rtype: :class:` ` + """ + route_values = {} + if operation_id is not None: + route_values['operationId'] = self._serialize.url('operation_id', operation_id, 'str') + query_parameters = {} + if plugin_id is not None: + query_parameters['pluginId'] = self._serialize.query('plugin_id', plugin_id, 'str') + response = self._send(http_method='GET', + location_id='9a1b74b4-2ca8-4a9f-8470-c2f2e6fdc949', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Operation', response) + diff --git a/azure-devops/azure/devops/released/policy/__init__.py b/azure-devops/azure/devops/released/policy/__init__.py new file mode 100644 index 00000000..ca1f721b --- /dev/null +++ b/azure-devops/azure/devops/released/policy/__init__.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.policy.models import * +from .policy_client import PolicyClient + +__all__ = [ + 'GraphSubjectBase', + 'IdentityRef', + 'PolicyConfiguration', + 'PolicyConfigurationRef', + 'PolicyEvaluationRecord', + 'PolicyType', + 'PolicyTypeRef', + 'ReferenceLinks', + 'VersionedPolicyConfigurationRef', + 'PolicyClient' +] diff --git a/azure-devops/azure/devops/released/policy/policy_client.py b/azure-devops/azure/devops/released/policy/policy_client.py new file mode 100644 index 00000000..72e73b65 --- /dev/null +++ b/azure-devops/azure/devops/released/policy/policy_client.py @@ -0,0 +1,206 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.policy import models + + +class PolicyClient(Client): + """Policy + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(PolicyClient, 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 = 'fb13a388-40dd-4a04-b530-013a739c72ef' + + def create_policy_configuration(self, configuration, project, configuration_id=None): + """CreatePolicyConfiguration. + Create a policy configuration of a given policy type. + :param :class:` ` configuration: The policy configuration to create. + :param str project: Project ID or project name + :param int configuration_id: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if configuration_id is not None: + route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') + content = self._serialize.body(configuration, 'PolicyConfiguration') + response = self._send(http_method='POST', + location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('PolicyConfiguration', response) + + def delete_policy_configuration(self, project, configuration_id): + """DeletePolicyConfiguration. + Delete a policy configuration by its ID. + :param str project: Project ID or project name + :param int configuration_id: ID of the policy configuration to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if configuration_id is not None: + route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') + self._send(http_method='DELETE', + location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', + version='5.0', + route_values=route_values) + + def get_policy_configuration(self, project, configuration_id): + """GetPolicyConfiguration. + Get a policy configuration by its ID. + :param str project: Project ID or project name + :param int configuration_id: ID of the policy configuration + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if configuration_id is not None: + route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') + response = self._send(http_method='GET', + location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', + version='5.0', + route_values=route_values) + return self._deserialize('PolicyConfiguration', response) + + def get_policy_configurations(self, project, scope=None, policy_type=None): + """GetPolicyConfigurations. + Get a list of policy configurations in a project. + :param str project: Project ID or project name + :param str scope: [Provided for legacy reasons] The scope on which a subset of policies is defined. + :param str policy_type: Filter returned policies to only this type + :rtype: [PolicyConfiguration] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope is not None: + query_parameters['scope'] = self._serialize.query('scope', scope, 'str') + if policy_type is not None: + query_parameters['policyType'] = self._serialize.query('policy_type', policy_type, 'str') + response = self._send(http_method='GET', + location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) + + def update_policy_configuration(self, configuration, project, configuration_id): + """UpdatePolicyConfiguration. + Update a policy configuration by its ID. + :param :class:` ` configuration: The policy configuration to update. + :param str project: Project ID or project name + :param int configuration_id: ID of the existing policy configuration to be updated. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if configuration_id is not None: + route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') + content = self._serialize.body(configuration, 'PolicyConfiguration') + response = self._send(http_method='PUT', + location_id='dad91cbe-d183-45f8-9c6e-9c1164472121', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('PolicyConfiguration', response) + + def get_policy_configuration_revision(self, project, configuration_id, revision_id): + """GetPolicyConfigurationRevision. + Retrieve a specific revision of a given policy by ID. + :param str project: Project ID or project name + :param int configuration_id: The policy configuration ID. + :param int revision_id: The revision ID. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if configuration_id is not None: + route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') + if revision_id is not None: + route_values['revisionId'] = self._serialize.url('revision_id', revision_id, 'int') + response = self._send(http_method='GET', + location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', + version='5.0', + route_values=route_values) + return self._deserialize('PolicyConfiguration', response) + + def get_policy_configuration_revisions(self, project, configuration_id, top=None, skip=None): + """GetPolicyConfigurationRevisions. + Retrieve all revisions for a given policy. + :param str project: Project ID or project name + :param int configuration_id: The policy configuration ID. + :param int top: The number of revisions to retrieve. + :param int skip: The number of revisions to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100. + :rtype: [PolicyConfiguration] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if configuration_id is not None: + route_values['configurationId'] = self._serialize.url('configuration_id', configuration_id, 'int') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='fe1e68a2-60d3-43cb-855b-85e41ae97c95', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[PolicyConfiguration]', self._unwrap_collection(response)) + + def get_policy_type(self, project, type_id): + """GetPolicyType. + Retrieve a specific policy type by ID. + :param str project: Project ID or project name + :param str type_id: The policy ID. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type_id is not None: + route_values['typeId'] = self._serialize.url('type_id', type_id, 'str') + response = self._send(http_method='GET', + location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', + version='5.0', + route_values=route_values) + return self._deserialize('PolicyType', response) + + def get_policy_types(self, project): + """GetPolicyTypes. + Retrieve all available policy types. + :param str project: Project ID or project name + :rtype: [PolicyType] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='44096322-2d3d-466a-bb30-d1b7de69f61f', + version='5.0', + route_values=route_values) + return self._deserialize('[PolicyType]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/released/profile/__init__.py b/azure-devops/azure/devops/released/profile/__init__.py new file mode 100644 index 00000000..3544763e --- /dev/null +++ b/azure-devops/azure/devops/released/profile/__init__.py @@ -0,0 +1,26 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.profile.models import * +from .profile_client import ProfileClient + +__all__ = [ + 'AttributeDescriptor', + 'AttributesContainer', + 'Avatar', + 'CoreProfileAttribute', + 'CreateProfileContext', + 'GeoRegion', + 'Profile', + 'ProfileAttribute', + 'ProfileAttributeBase', + 'ProfileRegion', + 'ProfileRegions', + 'RemoteProfile', + 'ProfileClient' +] diff --git a/azure-devops/azure/devops/released/profile/profile_client.py b/azure-devops/azure/devops/released/profile/profile_client.py new file mode 100644 index 00000000..4d3d0991 --- /dev/null +++ b/azure-devops/azure/devops/released/profile/profile_client.py @@ -0,0 +1,59 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.profile import models + + +class ProfileClient(Client): + """Profile + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ProfileClient, 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_profile(self, id, details=None, with_attributes=None, partition=None, core_attributes=None, force_refresh=None): + """GetProfile. + Get my profile. + :param str id: + :param bool details: + :param bool with_attributes: + :param str partition: + :param str core_attributes: + :param bool force_refresh: + :rtype: :class:` ` + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if details is not None: + query_parameters['details'] = self._serialize.query('details', details, 'bool') + if with_attributes is not None: + query_parameters['withAttributes'] = self._serialize.query('with_attributes', with_attributes, 'bool') + if partition is not None: + query_parameters['partition'] = self._serialize.query('partition', partition, 'str') + if core_attributes is not None: + query_parameters['coreAttributes'] = self._serialize.query('core_attributes', core_attributes, 'str') + if force_refresh is not None: + query_parameters['forceRefresh'] = self._serialize.query('force_refresh', force_refresh, 'bool') + response = self._send(http_method='GET', + location_id='f83735dc-483f-4238-a291-d45f6080a9af', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Profile', response) + diff --git a/azure-devops/azure/devops/released/release/__init__.py b/azure-devops/azure/devops/released/release/__init__.py new file mode 100644 index 00000000..33764565 --- /dev/null +++ b/azure-devops/azure/devops/released/release/__init__.py @@ -0,0 +1,109 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.release.models import * +from .release_client import ReleaseClient + +__all__ = [ + 'AgentArtifactDefinition', + 'ApprovalOptions', + 'Artifact', + 'ArtifactMetadata', + 'ArtifactSourceReference', + 'ArtifactTriggerConfiguration', + 'ArtifactTypeDefinition', + 'ArtifactVersion', + 'ArtifactVersionQueryResult', + 'AuthorizationHeader', + 'AutoTriggerIssue', + 'BuildVersion', + 'Change', + 'Condition', + 'ConfigurationVariableValue', + 'DataSourceBindingBase', + 'DefinitionEnvironmentReference', + 'Deployment', + 'DeploymentAttempt', + 'DeploymentJob', + 'DeploymentQueryParameters', + 'EmailRecipients', + 'EnvironmentExecutionPolicy', + 'EnvironmentOptions', + 'EnvironmentRetentionPolicy', + 'EnvironmentTrigger', + 'FavoriteItem', + 'Folder', + 'GateUpdateMetadata', + 'GraphSubjectBase', + 'IdentityRef', + 'IgnoredGate', + 'InputDescriptor', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Issue', + 'MailMessage', + 'ManualIntervention', + 'ManualInterventionUpdateMetadata', + 'Metric', + 'PipelineProcess', + 'ProcessParameters', + 'ProjectReference', + 'QueuedReleaseData', + 'ReferenceLinks', + 'Release', + 'ReleaseApproval', + 'ReleaseApprovalHistory', + 'ReleaseCondition', + 'ReleaseDefinition', + 'ReleaseDefinitionApprovals', + 'ReleaseDefinitionApprovalStep', + 'ReleaseDefinitionDeployStep', + 'ReleaseDefinitionEnvironment', + 'ReleaseDefinitionEnvironmentStep', + 'ReleaseDefinitionEnvironmentSummary', + 'ReleaseDefinitionEnvironmentTemplate', + 'ReleaseDefinitionGate', + 'ReleaseDefinitionGatesOptions', + 'ReleaseDefinitionGatesStep', + 'ReleaseDefinitionRevision', + 'ReleaseDefinitionShallowReference', + 'ReleaseDefinitionSummary', + 'ReleaseDefinitionUndeleteParameter', + 'ReleaseDeployPhase', + 'ReleaseEnvironment', + 'ReleaseEnvironmentShallowReference', + 'ReleaseEnvironmentUpdateMetadata', + 'ReleaseGates', + 'ReleaseReference', + 'ReleaseRevision', + 'ReleaseSchedule', + 'ReleaseSettings', + 'ReleaseShallowReference', + 'ReleaseStartEnvironmentMetadata', + 'ReleaseStartMetadata', + 'ReleaseTask', + 'ReleaseTaskAttachment', + 'ReleaseUpdateMetadata', + 'ReleaseWorkItemRef', + 'RetentionPolicy', + 'RetentionSettings', + 'SourcePullRequestVersion', + 'SummaryMailSection', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskSourceDefinitionBase', + 'VariableGroup', + 'VariableGroupProviderData', + 'VariableValue', + 'WorkflowTask', + 'WorkflowTaskReference', + 'ReleaseClient' +] diff --git a/azure-devops/azure/devops/released/release/release_client.py b/azure-devops/azure/devops/released/release/release_client.py new file mode 100644 index 00000000..9a4aaaf1 --- /dev/null +++ b/azure-devops/azure/devops/released/release/release_client.py @@ -0,0 +1,558 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.release import models + + +class ReleaseClient(Client): + """Release + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ReleaseClient, 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 = 'efc2f575-36ef-48e9-b672-0c6fb4a48ac5' + + def get_approvals(self, project, assigned_to_filter=None, status_filter=None, release_ids_filter=None, type_filter=None, top=None, continuation_token=None, query_order=None, include_my_group_approvals=None): + """GetApprovals. + Get a list of approvals + :param str project: Project ID or project name + :param str assigned_to_filter: Approvals assigned to this user. + :param str status_filter: Approvals with this status. Default is 'pending'. + :param [int] release_ids_filter: Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4. + :param str type_filter: Approval with this type. + :param int top: Number of approvals to get. Default is 50. + :param int continuation_token: Gets the approvals after the continuation token provided. + :param str query_order: Gets the results in the defined order of created approvals. Default is 'descending'. + :param bool include_my_group_approvals: 'true' to include my group approvals. Default is 'false'. + :rtype: [ReleaseApproval] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if assigned_to_filter is not None: + query_parameters['assignedToFilter'] = self._serialize.query('assigned_to_filter', assigned_to_filter, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if release_ids_filter is not None: + release_ids_filter = ",".join(map(str, release_ids_filter)) + query_parameters['releaseIdsFilter'] = self._serialize.query('release_ids_filter', release_ids_filter, 'str') + if type_filter is not None: + query_parameters['typeFilter'] = self._serialize.query('type_filter', type_filter, 'str') + if top is not None: + query_parameters['top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if include_my_group_approvals is not None: + query_parameters['includeMyGroupApprovals'] = self._serialize.query('include_my_group_approvals', include_my_group_approvals, 'bool') + response = self._send(http_method='GET', + location_id='b47c6458-e73b-47cb-a770-4df1e8813a91', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseApproval]', self._unwrap_collection(response)) + + def update_release_approval(self, approval, project, approval_id): + """UpdateReleaseApproval. + Update status of an approval + :param :class:` ` approval: ReleaseApproval object having status, approver and comments. + :param str project: Project ID or project name + :param int approval_id: Id of the approval. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if approval_id is not None: + route_values['approvalId'] = self._serialize.url('approval_id', approval_id, 'int') + content = self._serialize.body(approval, 'ReleaseApproval') + response = self._send(http_method='PATCH', + location_id='9328e074-59fb-465a-89d9-b09c82ee5109', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ReleaseApproval', response) + + def create_release_definition(self, release_definition, project): + """CreateReleaseDefinition. + Create a release definition + :param :class:` ` release_definition: release definition object to create. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='POST', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def delete_release_definition(self, project, definition_id, comment=None, force_delete=None): + """DeleteReleaseDefinition. + Delete a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param str comment: Comment for deleting a release definition. + :param bool force_delete: 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + if force_delete is not None: + query_parameters['forceDelete'] = self._serialize.query('force_delete', force_delete, 'bool') + self._send(http_method='DELETE', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + + def get_release_definition(self, project, definition_id, property_filters=None): + """GetReleaseDefinition. + Get a release definition. + :param str project: Project ID or project name + :param int definition_id: Id of the release definition. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definition will contain values for the specified property Ids (if they exist). If not set, properties will not be included. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if definition_id is not None: + route_values['definitionId'] = self._serialize.url('definition_id', definition_id, 'int') + query_parameters = {} + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReleaseDefinition', response) + + def get_release_definitions(self, project, search_text=None, expand=None, artifact_type=None, artifact_source_id=None, top=None, continuation_token=None, query_order=None, path=None, is_exact_name_match=None, tag_filter=None, property_filters=None, definition_id_filter=None, is_deleted=None): + """GetReleaseDefinitions. + Get a list of release definitions. + :param str project: Project ID or project name + :param str search_text: Get release definitions with names containing searchText. + :param str expand: The properties that should be expanded in the list of Release definitions. + :param str artifact_type: Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str artifact_source_id: Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param int top: Number of release definitions to get. + :param str continuation_token: Gets the release definitions after the continuation token provided. + :param str query_order: Gets the results in the defined order. Default is 'IdAscending'. + :param str path: Gets the release definitions under the specified path. + :param bool is_exact_name_match: 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'. + :param [str] tag_filter: A comma-delimited list of tags. Only release definitions with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definitions will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release Definition from results irrespective of whether it has property set or not. + :param [str] definition_id_filter: A comma-delimited list of release definitions to retrieve. + :param bool is_deleted: 'true' to get release definitions that has been deleted. Default is 'false' + :rtype: [ReleaseDefinition] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type is not None: + query_parameters['artifactType'] = self._serialize.query('artifact_type', artifact_type, 'str') + if artifact_source_id is not None: + query_parameters['artifactSourceId'] = self._serialize.query('artifact_source_id', artifact_source_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if is_exact_name_match is not None: + query_parameters['isExactNameMatch'] = self._serialize.query('is_exact_name_match', is_exact_name_match, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if definition_id_filter is not None: + definition_id_filter = ",".join(definition_id_filter) + query_parameters['definitionIdFilter'] = self._serialize.query('definition_id_filter', definition_id_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + response = self._send(http_method='GET', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ReleaseDefinition]', self._unwrap_collection(response)) + + def update_release_definition(self, release_definition, project): + """UpdateReleaseDefinition. + Update a release definition. + :param :class:` ` release_definition: Release definition object to update. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_definition, 'ReleaseDefinition') + response = self._send(http_method='PUT', + location_id='d8f96f24-8ea7-4cb6-baab-2df8fc515665', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ReleaseDefinition', response) + + def get_deployments(self, project, definition_id=None, definition_environment_id=None, created_by=None, min_modified_time=None, max_modified_time=None, deployment_status=None, operation_status=None, latest_attempts_only=None, query_order=None, top=None, continuation_token=None, created_for=None, min_started_time=None, max_started_time=None, source_branch=None): + """GetDeployments. + :param str project: Project ID or project name + :param int definition_id: + :param int definition_environment_id: + :param str created_by: + :param datetime min_modified_time: + :param datetime max_modified_time: + :param str deployment_status: + :param str operation_status: + :param bool latest_attempts_only: + :param str query_order: + :param int top: + :param int continuation_token: + :param str created_for: + :param datetime min_started_time: + :param datetime max_started_time: + :param str source_branch: + :rtype: [Deployment] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if min_modified_time is not None: + query_parameters['minModifiedTime'] = self._serialize.query('min_modified_time', min_modified_time, 'iso-8601') + if max_modified_time is not None: + query_parameters['maxModifiedTime'] = self._serialize.query('max_modified_time', max_modified_time, 'iso-8601') + if deployment_status is not None: + query_parameters['deploymentStatus'] = self._serialize.query('deployment_status', deployment_status, 'str') + if operation_status is not None: + query_parameters['operationStatus'] = self._serialize.query('operation_status', operation_status, 'str') + if latest_attempts_only is not None: + query_parameters['latestAttemptsOnly'] = self._serialize.query('latest_attempts_only', latest_attempts_only, 'bool') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if created_for is not None: + query_parameters['createdFor'] = self._serialize.query('created_for', created_for, 'str') + if min_started_time is not None: + query_parameters['minStartedTime'] = self._serialize.query('min_started_time', min_started_time, 'iso-8601') + if max_started_time is not None: + query_parameters['maxStartedTime'] = self._serialize.query('max_started_time', max_started_time, 'iso-8601') + if source_branch is not None: + query_parameters['sourceBranch'] = self._serialize.query('source_branch', source_branch, 'str') + response = self._send(http_method='GET', + location_id='b005ef73-cddc-448e-9ba2-5193bf36b19f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Deployment]', self._unwrap_collection(response)) + + def get_manual_intervention(self, project, release_id, manual_intervention_id): + """GetManualIntervention. + Get manual intervention for a given release and manual intervention id. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.0', + route_values=route_values) + return self._deserialize('ManualIntervention', response) + + def get_manual_interventions(self, project, release_id): + """GetManualInterventions. + List all manual interventions for a given release. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :rtype: [ManualIntervention] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + response = self._send(http_method='GET', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.0', + route_values=route_values) + return self._deserialize('[ManualIntervention]', self._unwrap_collection(response)) + + def update_manual_intervention(self, manual_intervention_update_metadata, project, release_id, manual_intervention_id): + """UpdateManualIntervention. + Update manual intervention. + :param :class:` ` manual_intervention_update_metadata: Meta data to update manual intervention. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int manual_intervention_id: Id of the manual intervention. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + if manual_intervention_id is not None: + route_values['manualInterventionId'] = self._serialize.url('manual_intervention_id', manual_intervention_id, 'int') + content = self._serialize.body(manual_intervention_update_metadata, 'ManualInterventionUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='616c46e4-f370-4456-adaa-fbaf79c7b79e', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('ManualIntervention', response) + + def get_releases(self, project=None, definition_id=None, definition_environment_id=None, search_text=None, created_by=None, status_filter=None, environment_status_filter=None, min_created_time=None, max_created_time=None, query_order=None, top=None, continuation_token=None, expand=None, artifact_type_id=None, source_id=None, artifact_version_id=None, source_branch_filter=None, is_deleted=None, tag_filter=None, property_filters=None, release_id_filter=None): + """GetReleases. + Get a list of releases + :param str project: Project ID or project name + :param int definition_id: Releases from this release definition Id. + :param int definition_environment_id: + :param str search_text: Releases with names containing searchText. + :param str created_by: Releases created by this user. + :param str status_filter: Releases that have this status. + :param int environment_status_filter: + :param datetime min_created_time: Releases that were created after this time. + :param datetime max_created_time: Releases that were created before this time. + :param str query_order: Gets the results in the defined order of created date for releases. Default is descending. + :param int top: Number of releases to get. Default is 50. + :param int continuation_token: Gets the releases after the continuation token provided. + :param str expand: The property that should be expanded in the list of releases. + :param str artifact_type_id: Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild. + :param str source_id: Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions. + :param str artifact_version_id: Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId. + :param str source_branch_filter: Releases with given sourceBranchFilter will be returned. + :param bool is_deleted: Gets the soft deleted releases, if true. + :param [str] tag_filter: A comma-delimited list of tags. Only releases with these tags will be returned. + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Releases will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release from results irrespective of whether it has property set or not. + :param [int] release_id_filter: A comma-delimited list of releases Ids. Only releases with these Ids will be returned. + :rtype: [Release] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if definition_id is not None: + query_parameters['definitionId'] = self._serialize.query('definition_id', definition_id, 'int') + if definition_environment_id is not None: + query_parameters['definitionEnvironmentId'] = self._serialize.query('definition_environment_id', definition_environment_id, 'int') + if search_text is not None: + query_parameters['searchText'] = self._serialize.query('search_text', search_text, 'str') + if created_by is not None: + query_parameters['createdBy'] = self._serialize.query('created_by', created_by, 'str') + if status_filter is not None: + query_parameters['statusFilter'] = self._serialize.query('status_filter', status_filter, 'str') + if environment_status_filter is not None: + query_parameters['environmentStatusFilter'] = self._serialize.query('environment_status_filter', environment_status_filter, 'int') + if min_created_time is not None: + query_parameters['minCreatedTime'] = self._serialize.query('min_created_time', min_created_time, 'iso-8601') + if max_created_time is not None: + query_parameters['maxCreatedTime'] = self._serialize.query('max_created_time', max_created_time, 'iso-8601') + if query_order is not None: + query_parameters['queryOrder'] = self._serialize.query('query_order', query_order, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if artifact_type_id is not None: + query_parameters['artifactTypeId'] = self._serialize.query('artifact_type_id', artifact_type_id, 'str') + if source_id is not None: + query_parameters['sourceId'] = self._serialize.query('source_id', source_id, 'str') + if artifact_version_id is not None: + query_parameters['artifactVersionId'] = self._serialize.query('artifact_version_id', artifact_version_id, 'str') + if source_branch_filter is not None: + query_parameters['sourceBranchFilter'] = self._serialize.query('source_branch_filter', source_branch_filter, 'str') + if is_deleted is not None: + query_parameters['isDeleted'] = self._serialize.query('is_deleted', is_deleted, 'bool') + if tag_filter is not None: + tag_filter = ",".join(tag_filter) + query_parameters['tagFilter'] = self._serialize.query('tag_filter', tag_filter, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if release_id_filter is not None: + release_id_filter = ",".join(map(str, release_id_filter)) + query_parameters['releaseIdFilter'] = self._serialize.query('release_id_filter', release_id_filter, 'str') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Release]', self._unwrap_collection(response)) + + def create_release(self, release_start_metadata, project): + """CreateRelease. + Create a release. + :param :class:` ` release_start_metadata: Metadata to create a release. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(release_start_metadata, 'ReleaseStartMetadata') + response = self._send(http_method='POST', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def get_release(self, project, release_id, approval_filters=None, property_filters=None, expand=None, top_gate_records=None): + """GetRelease. + Get a Release + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param str approval_filters: A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default + :param [str] property_filters: A comma-delimited list of extended properties to be retrieved. If set, the returned Release will contain values for the specified property Ids (if they exist). If not set, properties will not be included. + :param str expand: A property that should be expanded in the release. + :param int top_gate_records: Number of release gate records to get. Default is 5. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if approval_filters is not None: + query_parameters['approvalFilters'] = self._serialize.query('approval_filters', approval_filters, 'str') + if property_filters is not None: + property_filters = ",".join(property_filters) + query_parameters['propertyFilters'] = self._serialize.query('property_filters', property_filters, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if top_gate_records is not None: + query_parameters['$topGateRecords'] = self._serialize.query('top_gate_records', top_gate_records, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Release', response) + + def get_release_revision(self, project, release_id, definition_snapshot_revision, **kwargs): + """GetReleaseRevision. + Get release for a given revision number. + :param str project: Project ID or project name + :param int release_id: Id of the release. + :param int definition_snapshot_revision: Definition snapshot revision number. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + query_parameters = {} + if definition_snapshot_revision is not None: + query_parameters['definitionSnapshotRevision'] = self._serialize.query('definition_snapshot_revision', definition_snapshot_revision, 'int') + response = self._send(http_method='GET', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def update_release(self, release, project, release_id): + """UpdateRelease. + Update a complete release object. + :param :class:` ` release: Release object for update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release, 'Release') + response = self._send(http_method='PUT', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + + def update_release_resource(self, release_update_metadata, project, release_id): + """UpdateReleaseResource. + Update few properties of a release. + :param :class:` ` release_update_metadata: Properties of release to update. + :param str project: Project ID or project name + :param int release_id: Id of the release to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if release_id is not None: + route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int') + content = self._serialize.body(release_update_metadata, 'ReleaseUpdateMetadata') + response = self._send(http_method='PATCH', + location_id='a166fde7-27ad-408e-ba75-703c2cc9d500', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Release', response) + diff --git a/azure-devops/azure/devops/released/security/__init__.py b/azure-devops/azure/devops/released/security/__init__.py new file mode 100644 index 00000000..211d1fbc --- /dev/null +++ b/azure-devops/azure/devops/released/security/__init__.py @@ -0,0 +1,22 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.security.models import * +from .security_client import SecurityClient + +__all__ = [ + 'AccessControlEntry', + 'AccessControlList', + 'AccessControlListsCollection', + 'AceExtendedInformation', + 'ActionDefinition', + 'PermissionEvaluation', + 'PermissionEvaluationBatch', + 'SecurityNamespaceDescription', + 'SecurityClient' +] diff --git a/azure-devops/azure/devops/released/security/security_client.py b/azure-devops/azure/devops/released/security/security_client.py new file mode 100644 index 00000000..5b3e8782 --- /dev/null +++ b/azure-devops/azure/devops/released/security/security_client.py @@ -0,0 +1,224 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.security import models + + +class SecurityClient(Client): + """Security + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(SecurityClient, 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 remove_access_control_entries(self, security_namespace_id, token=None, descriptors=None): + """RemoveAccessControlEntries. + Remove the specified ACEs from the ACL belonging to the specified token. + :param str security_namespace_id: Security namespace identifier. + :param str token: The token whose ACL should be modified. + :param str descriptors: String containing a list of identity descriptors separated by ',' whose entries should be removed. + :rtype: bool + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptors is not None: + query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') + response = self._send(http_method='DELETE', + location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def set_access_control_entries(self, container, security_namespace_id): + """SetAccessControlEntries. + Add or update ACEs in the ACL for the provided token. The request body contains the target token, a list of [ACEs](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/access%20control%20entries/set%20access%20control%20entries?#accesscontrolentry) and a optional merge parameter. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. + :param :class:` ` container: + :param str security_namespace_id: Security namespace identifier. + :rtype: [AccessControlEntry] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + content = self._serialize.body(container, 'object') + response = self._send(http_method='POST', + location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[AccessControlEntry]', self._unwrap_collection(response)) + + def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None): + """QueryAccessControlLists. + Return a list of access control lists for the specified security namespace and token. All ACLs in the security namespace will be retrieved if no optional parameters are provided. + :param str security_namespace_id: Security namespace identifier. + :param str token: Security token + :param str descriptors: An optional filter string containing a list of identity descriptors separated by ',' whose ACEs should be retrieved. If this is left null, entire ACLs will be returned. + :param bool include_extended_info: If true, populate the extended information properties for the access control entries contained in the returned lists. + :param bool recurse: If true and this is a hierarchical namespace, return child ACLs of the specified token. + :rtype: [AccessControlList] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + if descriptors is not None: + query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str') + if include_extended_info is not None: + query_parameters['includeExtendedInfo'] = self._serialize.query('include_extended_info', include_extended_info, 'bool') + if recurse is not None: + query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') + response = self._send(http_method='GET', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[AccessControlList]', self._unwrap_collection(response)) + + def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None): + """RemoveAccessControlLists. + Remove access control lists under the specfied security namespace. + :param str security_namespace_id: Security namespace identifier. + :param str tokens: One or more comma-separated security tokens + :param bool recurse: If true and this is a hierarchical namespace, also remove child ACLs of the specified tokens. + :rtype: bool + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if tokens is not None: + query_parameters['tokens'] = self._serialize.query('tokens', tokens, 'str') + if recurse is not None: + query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool') + response = self._send(http_method='DELETE', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('bool', response) + + def set_access_control_lists(self, access_control_lists, security_namespace_id): + """SetAccessControlLists. + Create or update one or more access control lists. All data that currently exists for the ACLs supplied will be overwritten. + :param :class:` ` access_control_lists: A list of ACLs to create or update. + :param str security_namespace_id: Security namespace identifier. + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + content = self._serialize.body(access_control_lists, 'VssJsonCollectionWrapper') + self._send(http_method='POST', + location_id='18a2ad18-7571-46ae-bec7-0c7da1495885', + version='5.0', + route_values=route_values, + content=content) + + def has_permissions_batch(self, eval_batch): + """HasPermissionsBatch. + Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false. + :param :class:` ` eval_batch: The set of evaluation requests. + :rtype: :class:` ` + """ + content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch') + response = self._send(http_method='POST', + location_id='cf1faa59-1b63-4448-bf04-13d981a46f5d', + version='5.0', + content=content) + return self._deserialize('PermissionEvaluationBatch', response) + + def has_permissions(self, security_namespace_id, permissions=None, tokens=None, always_allow_administrators=None, delimiter=None): + """HasPermissions. + Evaluates whether the caller has the specified permissions on the specified set of security tokens. + :param str security_namespace_id: Security namespace identifier. + :param int permissions: Permissions to evaluate. + :param str tokens: One or more security tokens to evaluate. + :param bool always_allow_administrators: If true and if the caller is an administrator, always return true. + :param str delimiter: Optional security token separator. Defaults to ",". + :rtype: [bool] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + if permissions is not None: + route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') + query_parameters = {} + if tokens is not None: + query_parameters['tokens'] = self._serialize.query('tokens', tokens, 'str') + if always_allow_administrators is not None: + query_parameters['alwaysAllowAdministrators'] = self._serialize.query('always_allow_administrators', always_allow_administrators, 'bool') + if delimiter is not None: + query_parameters['delimiter'] = self._serialize.query('delimiter', delimiter, 'str') + response = self._send(http_method='GET', + location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[bool]', self._unwrap_collection(response)) + + def remove_permission(self, security_namespace_id, descriptor, permissions=None, token=None): + """RemovePermission. + Removes the specified permissions on a security token for a user or group. + :param str security_namespace_id: Security namespace identifier. + :param str descriptor: Identity descriptor of the user to remove permissions for. + :param int permissions: Permissions to remove. + :param str token: Security token to remove permissions for. + :rtype: :class:` ` + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + if permissions is not None: + route_values['permissions'] = self._serialize.url('permissions', permissions, 'int') + query_parameters = {} + if descriptor is not None: + query_parameters['descriptor'] = self._serialize.query('descriptor', descriptor, 'str') + if token is not None: + query_parameters['token'] = self._serialize.query('token', token, 'str') + response = self._send(http_method='DELETE', + location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('AccessControlEntry', response) + + def query_security_namespaces(self, security_namespace_id=None, local_only=None): + """QuerySecurityNamespaces. + List all security namespaces or just the specified namespace. + :param str security_namespace_id: Security namespace identifier. + :param bool local_only: If true, retrieve only local security namespaces. + :rtype: [SecurityNamespaceDescription] + """ + route_values = {} + if security_namespace_id is not None: + route_values['securityNamespaceId'] = self._serialize.url('security_namespace_id', security_namespace_id, 'str') + query_parameters = {} + if local_only is not None: + query_parameters['localOnly'] = self._serialize.query('local_only', local_only, 'bool') + response = self._send(http_method='GET', + location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[SecurityNamespaceDescription]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/released/service_hooks/__init__.py b/azure-devops/azure/devops/released/service_hooks/__init__.py new file mode 100644 index 00000000..57497803 --- /dev/null +++ b/azure-devops/azure/devops/released/service_hooks/__init__.py @@ -0,0 +1,48 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.service_hooks.models import * +from .service_hooks_client import ServiceHooksClient + +__all__ = [ + 'Consumer', + 'ConsumerAction', + 'Event', + 'EventTypeDescriptor', + 'ExternalConfigurationDescriptor', + 'FormattedEventMessage', + 'GraphSubjectBase', + 'IdentityRef', + 'InputDescriptor', + 'InputFilter', + 'InputFilterCondition', + 'InputValidation', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'InputValuesQuery', + 'Notification', + 'NotificationDetails', + 'NotificationResultsSummaryDetail', + 'NotificationsQuery', + 'NotificationSummary', + 'Publisher', + 'PublisherEvent', + 'PublishersQuery', + 'ReferenceLinks', + 'ResourceContainer', + 'SessionToken', + 'Subscription', + 'SubscriptionDiagnostics', + 'SubscriptionsQuery', + 'SubscriptionTracing', + 'UpdateSubscripitonDiagnosticsParameters', + 'UpdateSubscripitonTracingParameters', + 'VersionedResource', + 'ServiceHooksClient' +] diff --git a/azure-devops/azure/devops/released/service_hooks/service_hooks_client.py b/azure-devops/azure/devops/released/service_hooks/service_hooks_client.py new file mode 100644 index 00000000..79fd49d2 --- /dev/null +++ b/azure-devops/azure/devops/released/service_hooks/service_hooks_client.py @@ -0,0 +1,364 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.service_hooks import models + + +class ServiceHooksClient(Client): + """ServiceHooks + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(ServiceHooksClient, 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_consumer_action(self, consumer_id, consumer_action_id, publisher_id=None): + """GetConsumerAction. + Get details about a specific consumer action. + :param str consumer_id: ID for a consumer. + :param str consumer_action_id: ID for a consumerActionId. + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + if consumer_action_id is not None: + route_values['consumerActionId'] = self._serialize.url('consumer_action_id', consumer_action_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ConsumerAction', response) + + def list_consumer_actions(self, consumer_id, publisher_id=None): + """ListConsumerActions. + Get a list of consumer actions for a specific consumer. + :param str consumer_id: ID for a consumer. + :param str publisher_id: + :rtype: [ConsumerAction] + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='c3428e90-7a69-4194-8ed8-0f153185ee0d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ConsumerAction]', self._unwrap_collection(response)) + + def get_consumer(self, consumer_id, publisher_id=None): + """GetConsumer. + Get a specific consumer service. Optionally filter out consumer actions that do not support any event types for the specified publisher. + :param str consumer_id: ID for a consumer. + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if consumer_id is not None: + route_values['consumerId'] = self._serialize.url('consumer_id', consumer_id, 'str') + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Consumer', response) + + def list_consumers(self, publisher_id=None): + """ListConsumers. + Get a list of available service hook consumer services. Optionally filter by consumers that support at least one event type from the specific publisher. + :param str publisher_id: + :rtype: [Consumer] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='4301c514-5f34-4f5d-a145-f0ea7b5b7d19', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[Consumer]', self._unwrap_collection(response)) + + def get_event_type(self, publisher_id, event_type_id): + """GetEventType. + Get a specific event type. + :param str publisher_id: ID for a publisher. + :param str event_type_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + if event_type_id is not None: + route_values['eventTypeId'] = self._serialize.url('event_type_id', event_type_id, 'str') + response = self._send(http_method='GET', + location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', + version='5.0', + route_values=route_values) + return self._deserialize('EventTypeDescriptor', response) + + def list_event_types(self, publisher_id): + """ListEventTypes. + Get the event types for a specific publisher. + :param str publisher_id: ID for a publisher. + :rtype: [EventTypeDescriptor] + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='db4777cd-8e08-4a84-8ba3-c974ea033718', + version='5.0', + route_values=route_values) + return self._deserialize('[EventTypeDescriptor]', self._unwrap_collection(response)) + + def get_notification(self, subscription_id, notification_id): + """GetNotification. + Get a specific notification for a subscription. + :param str subscription_id: ID for a subscription. + :param int notification_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + if notification_id is not None: + route_values['notificationId'] = self._serialize.url('notification_id', notification_id, 'int') + response = self._send(http_method='GET', + location_id='0c62d343-21b0-4732-997b-017fde84dc28', + version='5.0', + route_values=route_values) + return self._deserialize('Notification', response) + + def get_notifications(self, subscription_id, max_results=None, status=None, result=None): + """GetNotifications. + Get a list of notifications for a specific subscription. A notification includes details about the event, the request to and the response from the consumer service. + :param str subscription_id: ID for a subscription. + :param int max_results: Maximum number of notifications to return. Default is **100**. + :param str status: Get only notifications with this status. + :param str result: Get only notifications with this result type. + :rtype: [Notification] + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + query_parameters = {} + if max_results is not None: + query_parameters['maxResults'] = self._serialize.query('max_results', max_results, 'int') + if status is not None: + query_parameters['status'] = self._serialize.query('status', status, 'str') + if result is not None: + query_parameters['result'] = self._serialize.query('result', result, 'str') + response = self._send(http_method='GET', + location_id='0c62d343-21b0-4732-997b-017fde84dc28', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Notification]', self._unwrap_collection(response)) + + def query_notifications(self, query): + """QueryNotifications. + Query for notifications. A notification includes details about the event, the request to and the response from the consumer service. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'NotificationsQuery') + response = self._send(http_method='POST', + location_id='1a57562f-160a-4b5c-9185-905e95b39d36', + version='5.0', + content=content) + return self._deserialize('NotificationsQuery', response) + + def query_input_values(self, input_values_query, publisher_id): + """QueryInputValues. + :param :class:` ` input_values_query: + :param str publisher_id: + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + content = self._serialize.body(input_values_query, 'InputValuesQuery') + response = self._send(http_method='POST', + location_id='d815d352-a566-4dc1-a3e3-fd245acf688c', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('InputValuesQuery', response) + + def get_publisher(self, publisher_id): + """GetPublisher. + Get a specific service hooks publisher. + :param str publisher_id: ID for a publisher. + :rtype: :class:` ` + """ + route_values = {} + if publisher_id is not None: + route_values['publisherId'] = self._serialize.url('publisher_id', publisher_id, 'str') + response = self._send(http_method='GET', + location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', + version='5.0', + route_values=route_values) + return self._deserialize('Publisher', response) + + def list_publishers(self): + """ListPublishers. + Get a list of publishers. + :rtype: [Publisher] + """ + response = self._send(http_method='GET', + location_id='1e83a210-5b53-43bc-90f0-d476a4e5d731', + version='5.0') + return self._deserialize('[Publisher]', self._unwrap_collection(response)) + + def query_publishers(self, query): + """QueryPublishers. + Query for service hook publishers. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'PublishersQuery') + response = self._send(http_method='POST', + location_id='99b44a8a-65a8-4670-8f3e-e7f7842cce64', + version='5.0', + content=content) + return self._deserialize('PublishersQuery', response) + + def create_subscription(self, subscription): + """CreateSubscription. + Create a subscription. + :param :class:` ` subscription: Subscription to be created. + :rtype: :class:` ` + """ + content = self._serialize.body(subscription, 'Subscription') + response = self._send(http_method='POST', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='5.0', + content=content) + return self._deserialize('Subscription', response) + + def delete_subscription(self, subscription_id): + """DeleteSubscription. + Delete a specific service hooks subscription. + :param str subscription_id: ID for a subscription. + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + self._send(http_method='DELETE', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='5.0', + route_values=route_values) + + def get_subscription(self, subscription_id): + """GetSubscription. + Get a specific service hooks subscription. + :param str subscription_id: ID for a subscription. + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + response = self._send(http_method='GET', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='5.0', + route_values=route_values) + return self._deserialize('Subscription', response) + + def list_subscriptions(self, publisher_id=None, event_type=None, consumer_id=None, consumer_action_id=None): + """ListSubscriptions. + Get a list of subscriptions. + :param str publisher_id: ID for a subscription. + :param str event_type: Maximum number of notifications to return. Default is 100. + :param str consumer_id: ID for a consumer. + :param str consumer_action_id: ID for a consumerActionId. + :rtype: [Subscription] + """ + query_parameters = {} + if publisher_id is not None: + query_parameters['publisherId'] = self._serialize.query('publisher_id', publisher_id, 'str') + if event_type is not None: + query_parameters['eventType'] = self._serialize.query('event_type', event_type, 'str') + if consumer_id is not None: + query_parameters['consumerId'] = self._serialize.query('consumer_id', consumer_id, 'str') + if consumer_action_id is not None: + query_parameters['consumerActionId'] = self._serialize.query('consumer_action_id', consumer_action_id, 'str') + response = self._send(http_method='GET', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[Subscription]', self._unwrap_collection(response)) + + def replace_subscription(self, subscription, subscription_id=None): + """ReplaceSubscription. + Update a subscription. ID for a subscription that you wish to update. + :param :class:` ` subscription: + :param str subscription_id: + :rtype: :class:` ` + """ + route_values = {} + if subscription_id is not None: + route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str') + content = self._serialize.body(subscription, 'Subscription') + response = self._send(http_method='PUT', + location_id='fc50d02a-849f-41fb-8af1-0a5216103269', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Subscription', response) + + def create_subscriptions_query(self, query): + """CreateSubscriptionsQuery. + Query for service hook subscriptions. + :param :class:` ` query: + :rtype: :class:` ` + """ + content = self._serialize.body(query, 'SubscriptionsQuery') + response = self._send(http_method='POST', + location_id='c7c3c1cf-9e05-4c0d-a425-a0f922c2c6ed', + version='5.0', + content=content) + return self._deserialize('SubscriptionsQuery', response) + + def create_test_notification(self, test_notification, use_real_data=None): + """CreateTestNotification. + Sends a test notification. This is useful for verifying the configuration of an updated or new service hooks subscription. + :param :class:` ` test_notification: + :param bool use_real_data: Only allow testing with real data in existing subscriptions. + :rtype: :class:` ` + """ + query_parameters = {} + if use_real_data is not None: + query_parameters['useRealData'] = self._serialize.query('use_real_data', use_real_data, 'bool') + content = self._serialize.body(test_notification, 'Notification') + response = self._send(http_method='POST', + location_id='1139462c-7e27-4524-a997-31b9b73551fe', + version='5.0', + query_parameters=query_parameters, + content=content) + return self._deserialize('Notification', response) + diff --git a/azure-devops/azure/devops/released/task/__init__.py b/azure-devops/azure/devops/released/task/__init__.py new file mode 100644 index 00000000..8408e56d --- /dev/null +++ b/azure-devops/azure/devops/released/task/__init__.py @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.task.models import * +from .task_client import TaskClient + +__all__ = [ + 'Issue', + 'JobOption', + 'MaskHint', + 'PlanEnvironment', + 'ProjectReference', + 'ReferenceLinks', + 'TaskAttachment', + 'TaskLog', + 'TaskLogReference', + 'TaskOrchestrationContainer', + 'TaskOrchestrationItem', + 'TaskOrchestrationOwner', + 'TaskOrchestrationPlan', + 'TaskOrchestrationPlanGroupsQueueMetrics', + 'TaskOrchestrationPlanReference', + 'TaskOrchestrationQueuedPlan', + 'TaskOrchestrationQueuedPlanGroup', + 'TaskReference', + 'Timeline', + 'TimelineAttempt', + 'TimelineRecord', + 'TimelineRecordFeedLinesWrapper', + 'TimelineReference', + 'VariableValue', + 'TaskClient' +] diff --git a/azure-devops/azure/devops/released/task/task_client.py b/azure-devops/azure/devops/released/task/task_client.py new file mode 100644 index 00000000..f6380ebe --- /dev/null +++ b/azure-devops/azure/devops/released/task/task_client.py @@ -0,0 +1,281 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.task import models + + +class TaskClient(Client): + """Task + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TaskClient, 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 append_log_content(self, upload_stream, scope_identifier, hub_name, plan_id, log_id, **kwargs): + """AppendLogContent. + :param object upload_stream: Stream to upload + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param int log_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='POST', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='5.0', + route_values=route_values, + content=content, + media_type='application/octet-stream') + return self._deserialize('TaskLog', response) + + def create_log(self, log, scope_identifier, hub_name, plan_id): + """CreateLog. + :param :class:` ` log: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + content = self._serialize.body(log, 'TaskLog') + response = self._send(http_method='POST', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TaskLog', response) + + def get_log(self, scope_identifier, hub_name, plan_id, log_id, start_line=None, end_line=None): + """GetLog. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param int log_id: + :param long start_line: + :param long end_line: + :rtype: [str] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if log_id is not None: + route_values['logId'] = self._serialize.url('log_id', log_id, 'int') + query_parameters = {} + if start_line is not None: + query_parameters['startLine'] = self._serialize.query('start_line', start_line, 'long') + if end_line is not None: + query_parameters['endLine'] = self._serialize.query('end_line', end_line, 'long') + response = self._send(http_method='GET', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[str]', self._unwrap_collection(response)) + + def get_logs(self, scope_identifier, hub_name, plan_id): + """GetLogs. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: [TaskLog] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='46f5667d-263a-4684-91b1-dff7fdcf64e2', + version='5.0', + route_values=route_values) + return self._deserialize('[TaskLog]', self._unwrap_collection(response)) + + def get_records(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None): + """GetRecords. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param int change_id: + :rtype: [TimelineRecord] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + query_parameters = {} + if change_id is not None: + query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') + response = self._send(http_method='GET', + location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) + + def update_records(self, records, scope_identifier, hub_name, plan_id, timeline_id): + """UpdateRecords. + :param :class:` ` records: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :rtype: [TimelineRecord] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + content = self._serialize.body(records, 'VssJsonCollectionWrapper') + response = self._send(http_method='PATCH', + location_id='8893bc5b-35b2-4be7-83cb-99e683551db4', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[TimelineRecord]', self._unwrap_collection(response)) + + def create_timeline(self, timeline, scope_identifier, hub_name, plan_id): + """CreateTimeline. + :param :class:` ` timeline: + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + content = self._serialize.body(timeline, 'Timeline') + response = self._send(http_method='POST', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Timeline', response) + + def delete_timeline(self, scope_identifier, hub_name, plan_id, timeline_id): + """DeleteTimeline. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + self._send(http_method='DELETE', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='5.0', + route_values=route_values) + + def get_timeline(self, scope_identifier, hub_name, plan_id, timeline_id, change_id=None, include_records=None): + """GetTimeline. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :param str timeline_id: + :param int change_id: + :param bool include_records: + :rtype: :class:` ` + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + if timeline_id is not None: + route_values['timelineId'] = self._serialize.url('timeline_id', timeline_id, 'str') + query_parameters = {} + if change_id is not None: + query_parameters['changeId'] = self._serialize.query('change_id', change_id, 'int') + if include_records is not None: + query_parameters['includeRecords'] = self._serialize.query('include_records', include_records, 'bool') + response = self._send(http_method='GET', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Timeline', response) + + def get_timelines(self, scope_identifier, hub_name, plan_id): + """GetTimelines. + :param str scope_identifier: The project GUID to scope the request + :param str hub_name: The name of the server hub: "build" for the Build server or "rm" for the Release Management server + :param str plan_id: + :rtype: [Timeline] + """ + route_values = {} + if scope_identifier is not None: + route_values['scopeIdentifier'] = self._serialize.url('scope_identifier', scope_identifier, 'str') + if hub_name is not None: + route_values['hubName'] = self._serialize.url('hub_name', hub_name, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'str') + response = self._send(http_method='GET', + location_id='83597576-cc2c-453c-bea6-2882ae6a1653', + version='5.0', + route_values=route_values) + return self._deserialize('[Timeline]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/released/task_agent/__init__.py b/azure-devops/azure/devops/released/task_agent/__init__.py new file mode 100644 index 00000000..b05dfe7a --- /dev/null +++ b/azure-devops/azure/devops/released/task_agent/__init__.py @@ -0,0 +1,131 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.task_agent.models import * +from .task_agent_client import TaskAgentClient + +__all__ = [ + 'AadOauthTokenRequest', + 'AadOauthTokenResult', + 'AuthenticationSchemeReference', + 'AuthorizationHeader', + 'AzureManagementGroup', + 'AzureManagementGroupQueryResult', + 'AzureSubscription', + 'AzureSubscriptionQueryResult', + 'ClientCertificate', + 'DataSource', + 'DataSourceBinding', + 'DataSourceBindingBase', + 'DataSourceDetails', + 'DependencyBinding', + 'DependencyData', + 'DependsOn', + 'DeploymentGroup', + 'DeploymentGroupCreateParameter', + 'DeploymentGroupCreateParameterPoolProperty', + 'DeploymentGroupMetrics', + 'DeploymentGroupReference', + 'DeploymentGroupUpdateParameter', + 'DeploymentMachine', + 'DeploymentMachineGroup', + 'DeploymentMachineGroupReference', + 'DeploymentPoolSummary', + 'DeploymentTargetUpdateParameter', + 'EndpointAuthorization', + 'EndpointUrl', + 'Environment', + 'EnvironmentCreateParameter', + 'EnvironmentReference', + 'EnvironmentUpdateParameter', + 'GraphSubjectBase', + 'HelpLink', + 'IdentityRef', + 'InputDescriptor', + 'InputValidation', + 'InputValidationRequest', + 'InputValue', + 'InputValues', + 'InputValuesError', + 'KubernetesServiceGroup', + 'KubernetesServiceGroupCreateParameters', + 'MarketplacePurchasedLicense', + 'MetricsColumnMetaData', + 'MetricsColumnsHeader', + 'MetricsRow', + 'PackageMetadata', + 'PackageVersion', + 'ProjectReference', + 'PublishTaskGroupMetadata', + 'ReferenceLinks', + 'ResourceLimit', + 'ResourceUsage', + 'ResultTransformationDetails', + 'SecureFile', + 'ServiceEndpoint', + 'ServiceEndpointAuthenticationScheme', + 'ServiceEndpointDetails', + 'ServiceEndpointExecutionData', + 'ServiceEndpointExecutionRecord', + 'ServiceEndpointExecutionRecordsInput', + 'ServiceEndpointRequest', + 'ServiceEndpointRequestResult', + 'ServiceEndpointType', + 'ServiceGroup', + 'ServiceGroupReference', + 'TaskAgent', + 'TaskAgentAuthorization', + 'TaskAgentCloud', + 'TaskAgentCloudRequest', + 'TaskAgentCloudType', + 'TaskAgentDelaySource', + 'TaskAgentJobRequest', + 'TaskAgentMessage', + 'TaskAgentPool', + 'TaskAgentPoolMaintenanceDefinition', + 'TaskAgentPoolMaintenanceJob', + 'TaskAgentPoolMaintenanceJobTargetAgent', + 'TaskAgentPoolMaintenanceOptions', + 'TaskAgentPoolMaintenanceRetentionPolicy', + 'TaskAgentPoolMaintenanceSchedule', + 'TaskAgentPoolReference', + 'TaskAgentPublicKey', + 'TaskAgentQueue', + 'TaskAgentReference', + 'TaskAgentSession', + 'TaskAgentSessionKey', + 'TaskAgentUpdate', + 'TaskAgentUpdateReason', + 'TaskDefinition', + 'TaskDefinitionEndpoint', + 'TaskDefinitionReference', + 'TaskExecution', + 'TaskGroup', + 'TaskGroupCreateParameter', + 'TaskGroupDefinition', + 'TaskGroupRevision', + 'TaskGroupStep', + 'TaskGroupUpdateParameter', + 'TaskHubLicenseDetails', + 'TaskInputDefinition', + 'TaskInputDefinitionBase', + 'TaskInputValidation', + 'TaskOrchestrationOwner', + 'TaskOutputVariable', + 'TaskPackageMetadata', + 'TaskReference', + 'TaskSourceDefinition', + 'TaskSourceDefinitionBase', + 'TaskVersion', + 'ValidationItem', + 'VariableGroup', + 'VariableGroupParameters', + 'VariableGroupProviderData', + 'VariableValue', + 'TaskAgentClient' +] diff --git a/azure-devops/azure/devops/released/task_agent/task_agent_client.py b/azure-devops/azure/devops/released/task_agent/task_agent_client.py new file mode 100644 index 00000000..de626cda --- /dev/null +++ b/azure-devops/azure/devops/released/task_agent/task_agent_client.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.task_agent import models + + +class TaskAgentClient(Client): + """TaskAgent + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TaskAgentClient, 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 = 'a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd' + diff --git a/azure-devops/azure/devops/released/test/__init__.py b/azure-devops/azure/devops/released/test/__init__.py new file mode 100644 index 00000000..5d6f4158 --- /dev/null +++ b/azure-devops/azure/devops/released/test/__init__.py @@ -0,0 +1,122 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.test.models import * +from .test_client import TestClient + +__all__ = [ + 'AggregatedDataForResultTrend', + 'AggregatedResultsAnalysis', + 'AggregatedResultsByOutcome', + 'AggregatedResultsDifference', + 'AggregatedRunsByOutcome', + 'AggregatedRunsByState', + 'BuildConfiguration', + 'BuildCoverage', + 'BuildReference', + 'CloneOperationInformation', + 'CloneOptions', + 'CloneStatistics', + 'CodeCoverageData', + 'CodeCoverageStatistics', + 'CodeCoverageSummary', + 'CoverageStatistics', + 'CustomTestField', + 'CustomTestFieldDefinition', + 'DtlEnvironmentDetails', + 'FailingSince', + 'FieldDetailsForTestResults', + 'FunctionCoverage', + 'GraphSubjectBase', + 'IdentityRef', + 'LastResultDetails', + 'LinkedWorkItemsQuery', + 'LinkedWorkItemsQueryResult', + 'ModuleCoverage', + 'NameValuePair', + 'PlanUpdateModel', + 'PointAssignment', + 'PointsFilter', + 'PointUpdateModel', + 'PropertyBag', + 'QueryModel', + 'ReferenceLinks', + 'ReleaseEnvironmentDefinitionReference', + 'ReleaseReference', + 'ResultRetentionSettings', + 'ResultsFilter', + 'RunCreateModel', + 'RunFilter', + 'RunStatistic', + 'RunUpdateModel', + 'ShallowReference', + 'ShallowTestCaseResult', + 'SharedStepModel', + 'SuiteCreateModel', + 'SuiteEntry', + 'SuiteEntryUpdateModel', + 'SuiteTestCase', + 'SuiteTestCaseUpdateModel', + 'SuiteUpdateModel', + 'TeamContext', + 'TeamProjectReference', + 'TestActionResultModel', + 'TestAttachment', + 'TestAttachmentReference', + 'TestAttachmentRequestModel', + 'TestCaseResult', + 'TestCaseResultAttachmentModel', + 'TestCaseResultIdentifier', + 'TestCaseResultUpdateModel', + 'TestConfiguration', + 'TestEnvironment', + 'TestFailureDetails', + 'TestFailuresAnalysis', + 'TestHistoryQuery', + 'TestIterationDetailsModel', + 'TestMessageLogDetails', + 'TestMethod', + 'TestOperationReference', + 'TestOutcomeSettings', + 'TestPlan', + 'TestPlanCloneRequest', + 'TestPoint', + 'TestPointsQuery', + 'TestResolutionState', + 'TestResultCreateModel', + 'TestResultDocument', + 'TestResultHistory', + 'TestResultHistoryDetailsForGroup', + 'TestResultHistoryForGroup', + 'TestResultMetaData', + 'TestResultModelBase', + 'TestResultParameterModel', + 'TestResultPayload', + 'TestResultsContext', + 'TestResultsDetails', + 'TestResultsDetailsForGroup', + 'TestResultsGroupsForBuild', + 'TestResultsGroupsForRelease', + 'TestResultsQuery', + 'TestResultSummary', + 'TestResultTrendFilter', + 'TestRun', + 'TestRunCoverage', + 'TestRunStatistic', + 'TestSession', + 'TestSettings', + 'TestSubResult', + 'TestSuite', + 'TestSuiteCloneRequest', + 'TestSummaryForWorkItem', + 'TestToWorkItemLinks', + 'TestVariable', + 'WorkItemReference', + 'WorkItemToTestLinks', + 'TestClient' +] diff --git a/azure-devops/azure/devops/released/test/test_client.py b/azure-devops/azure/devops/released/test/test_client.py new file mode 100644 index 00000000..a0d94fc8 --- /dev/null +++ b/azure-devops/azure/devops/released/test/test_client.py @@ -0,0 +1,916 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.test import models + + +class TestClient(Client): + """Test + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TestClient, 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 = 'c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e' + + def get_action_results(self, project, run_id, test_case_result_id, iteration_id, action_path=None): + """GetActionResults. + Gets the action results for an iteration in a test result. + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: ID of the iteration that contains the actions. + :param str action_path: Path of a specific action, used to get just that action. + :rtype: [TestActionResultModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + if action_path is not None: + route_values['actionPath'] = self._serialize.url('action_path', action_path, 'str') + response = self._send(http_method='GET', + location_id='eaf40c31-ff84-4062-aafd-d5664be11a37', + version='5.0', + route_values=route_values) + return self._deserialize('[TestActionResultModel]', self._unwrap_collection(response)) + + def get_test_iteration(self, project, run_id, test_case_result_id, iteration_id, include_action_results=None): + """GetTestIteration. + Get iteration for a result + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: Id of the test results Iteration. + :param bool include_action_results: Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration. + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestIterationDetailsModel', response) + + def get_test_iterations(self, project, run_id, test_case_result_id, include_action_results=None): + """GetTestIterations. + Get iterations for a result + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param bool include_action_results: Include result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration. + :rtype: [TestIterationDetailsModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if include_action_results is not None: + query_parameters['includeActionResults'] = self._serialize.query('include_action_results', include_action_results, 'bool') + response = self._send(http_method='GET', + location_id='73eb9074-3446-4c44-8296-2f811950ff8d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestIterationDetailsModel]', self._unwrap_collection(response)) + + def get_result_parameters(self, project, run_id, test_case_result_id, iteration_id, param_name=None): + """GetResultParameters. + Get a list of parameterized results + :param str project: Project ID or project name + :param int run_id: ID of the test run that contains the result. + :param int test_case_result_id: ID of the test result that contains the iterations. + :param int iteration_id: ID of the iteration that contains the parameterized results. + :param str param_name: Name of the parameter. + :rtype: [TestResultParameterModel] + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'int') + query_parameters = {} + if param_name is not None: + query_parameters['paramName'] = self._serialize.query('param_name', param_name, 'str') + response = self._send(http_method='GET', + location_id='7c69810d-3354-4af3-844a-180bd25db08a', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestResultParameterModel]', self._unwrap_collection(response)) + + def create_test_plan(self, test_plan, project): + """CreateTestPlan. + Create a test plan. + :param :class:` ` test_plan: A test plan object. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_plan, 'PlanUpdateModel') + response = self._send(http_method='POST', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TestPlan', response) + + def delete_test_plan(self, project, plan_id): + """DeleteTestPlan. + Delete a test plan. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan to be deleted. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + self._send(http_method='DELETE', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='5.0', + route_values=route_values) + + def get_plan_by_id(self, project, plan_id): + """GetPlanById. + Get test plan by ID. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan to return. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + response = self._send(http_method='GET', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='5.0', + route_values=route_values) + return self._deserialize('TestPlan', response) + + def get_plans(self, project, owner=None, skip=None, top=None, include_plan_details=None, filter_active_plans=None): + """GetPlans. + Get a list of test plans. + :param str project: Project ID or project name + :param str owner: Filter for test plan by owner ID or name. + :param int skip: Number of test plans to skip. + :param int top: Number of test plans to return. + :param bool include_plan_details: Get all properties of the test plan. + :param bool filter_active_plans: Get just the active plans. + :rtype: [TestPlan] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if include_plan_details is not None: + query_parameters['includePlanDetails'] = self._serialize.query('include_plan_details', include_plan_details, 'bool') + if filter_active_plans is not None: + query_parameters['filterActivePlans'] = self._serialize.query('filter_active_plans', filter_active_plans, 'bool') + response = self._send(http_method='GET', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestPlan]', self._unwrap_collection(response)) + + def update_test_plan(self, plan_update_model, project, plan_id): + """UpdateTestPlan. + Update a test plan. + :param :class:` ` plan_update_model: + :param str project: Project ID or project name + :param int plan_id: ID of the test plan to be updated. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + content = self._serialize.body(plan_update_model, 'PlanUpdateModel') + response = self._send(http_method='PATCH', + location_id='51712106-7278-4208-8563-1c96f40cf5e4', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TestPlan', response) + + def get_point(self, project, plan_id, suite_id, point_ids, wit_fields=None): + """GetPoint. + Get a test point. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the point. + :param int point_ids: ID of the test point to get. + :param str wit_fields: Comma-separated list of work item field names. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestPoint', response) + + def get_points(self, project, plan_id, suite_id, wit_fields=None, configuration_id=None, test_case_id=None, test_point_ids=None, include_point_details=None, skip=None, top=None): + """GetPoints. + Get a list of test points. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the points. + :param str wit_fields: Comma-separated list of work item field names. + :param str configuration_id: Get test points for specific configuration. + :param str test_case_id: Get test points for a specific test case, valid when configurationId is not set. + :param str test_point_ids: Get test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set. + :param bool include_point_details: Include all properties for the test point. + :param int skip: Number of test points to skip.. + :param int top: Number of test points to return. + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + query_parameters = {} + if wit_fields is not None: + query_parameters['witFields'] = self._serialize.query('wit_fields', wit_fields, 'str') + if configuration_id is not None: + query_parameters['configurationId'] = self._serialize.query('configuration_id', configuration_id, 'str') + if test_case_id is not None: + query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'str') + if test_point_ids is not None: + query_parameters['testPointIds'] = self._serialize.query('test_point_ids', test_point_ids, 'str') + if include_point_details is not None: + query_parameters['includePointDetails'] = self._serialize.query('include_point_details', include_point_details, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) + + def update_test_points(self, point_update_model, project, plan_id, suite_id, point_ids): + """UpdateTestPoints. + Update test points. + :param :class:` ` point_update_model: Data to update. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan. + :param int suite_id: ID of the suite that contains the points. + :param str point_ids: ID of the test point to get. Use a comma-separated list of IDs to update multiple test points. + :rtype: [TestPoint] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if point_ids is not None: + route_values['pointIds'] = self._serialize.url('point_ids', point_ids, 'str') + content = self._serialize.body(point_update_model, 'PointUpdateModel') + response = self._send(http_method='PATCH', + location_id='3bcfd5c8-be62-488e-b1da-b8289ce9299c', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[TestPoint]', self._unwrap_collection(response)) + + def add_test_results_to_test_run(self, results, project, run_id): + """AddTestResultsToTestRun. + Add test results to a test run. + :param [TestCaseResult] results: List of test results to add. + :param str project: Project ID or project name + :param int run_id: Test run ID into which test results to add. + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='POST', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) + + def get_test_result_by_id(self, project, run_id, test_case_result_id, details_to_include=None): + """GetTestResultById. + Get a test result for a test run. + :param str project: Project ID or project name + :param int run_id: Test run ID of a test result to fetch. + :param int test_case_result_id: Test result ID. + :param str details_to_include: Details to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults. + :rtype: :class:` ` + """ + 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') + if test_case_result_id is not None: + route_values['testCaseResultId'] = self._serialize.url('test_case_result_id', test_case_result_id, 'int') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestCaseResult', response) + + def get_test_results(self, project, run_id, details_to_include=None, skip=None, top=None, outcomes=None): + """GetTestResults. + Get test results for a test run. + :param str project: Project ID or project name + :param int run_id: Test run ID of test results to fetch. + :param str details_to_include: Details to include with test results. Default is None. Other values are Iterations and WorkItems. + :param int skip: Number of test results to skip from beginning. + :param int top: Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise. + :param [TestOutcome] outcomes: Comma separated list of test outcomes to filter test results. + :rtype: [TestCaseResult] + """ + 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') + query_parameters = {} + if details_to_include is not None: + query_parameters['detailsToInclude'] = self._serialize.query('details_to_include', details_to_include, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if outcomes is not None: + outcomes = ",".join(map(str, outcomes)) + query_parameters['outcomes'] = self._serialize.query('outcomes', outcomes, 'str') + response = self._send(http_method='GET', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) + + def update_test_results(self, results, project, run_id): + """UpdateTestResults. + Update test results in a test run. + :param [TestCaseResult] results: List of test results to update. + :param str project: Project ID or project name + :param int run_id: Test run ID whose test results to update. + :rtype: [TestCaseResult] + """ + 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') + content = self._serialize.body(results, '[TestCaseResult]') + response = self._send(http_method='PATCH', + location_id='4637d869-3a76-4468-8057-0bb02aa385cf', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[TestCaseResult]', self._unwrap_collection(response)) + + def get_test_run_statistics(self, project, run_id): + """GetTestRunStatistics. + Get test run statistics + :param str project: Project ID or project name + :param int run_id: ID of the run to get. + :rtype: :class:` ` + """ + 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='0a42c424-d764-4a16-a2d5-5c85f87d0ae8', + version='5.0', + route_values=route_values) + return self._deserialize('TestRunStatistic', response) + + def create_test_run(self, test_run, project): + """CreateTestRun. + Create new test run. + :param :class:` ` test_run: Run details RunCreateModel + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(test_run, 'RunCreateModel') + response = self._send(http_method='POST', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def delete_test_run(self, project, run_id): + """DeleteTestRun. + Delete a test run by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the run to delete. + """ + 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') + self._send(http_method='DELETE', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.0', + route_values=route_values) + + def get_test_run_by_id(self, project, run_id, include_details=None): + """GetTestRunById. + Get a test run by its ID. + :param str project: Project ID or project name + :param int run_id: ID of the run to get. + :param bool include_details: Defualt value is true. It includes details like run statistics,release,build,Test enviornment,Post process state and more + :rtype: :class:` ` + """ + 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') + query_parameters = {} + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestRun', response) + + def get_test_runs(self, project, build_uri=None, owner=None, tmi_run_id=None, plan_id=None, include_run_details=None, automated=None, skip=None, top=None): + """GetTestRuns. + Get a list of test runs. + :param str project: Project ID or project name + :param str build_uri: URI of the build that the runs used. + :param str owner: Team foundation ID of the owner of the runs. + :param str tmi_run_id: + :param int plan_id: ID of the test plan that the runs are a part of. + :param bool include_run_details: If true, include all the properties of the runs. + :param bool automated: If true, only returns automated runs. + :param int skip: Number of test runs to skip. + :param int top: Number of test runs to return. + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if build_uri is not None: + query_parameters['buildUri'] = self._serialize.query('build_uri', build_uri, 'str') + if owner is not None: + query_parameters['owner'] = self._serialize.query('owner', owner, 'str') + if tmi_run_id is not None: + query_parameters['tmiRunId'] = self._serialize.query('tmi_run_id', tmi_run_id, 'str') + if plan_id is not None: + query_parameters['planId'] = self._serialize.query('plan_id', plan_id, 'int') + if include_run_details is not None: + query_parameters['includeRunDetails'] = self._serialize.query('include_run_details', include_run_details, 'bool') + if automated is not None: + query_parameters['automated'] = self._serialize.query('automated', automated, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) + + def query_test_runs(self, project, min_last_updated_date, max_last_updated_date, state=None, plan_ids=None, is_automated=None, publish_context=None, build_ids=None, build_def_ids=None, branch_name=None, release_ids=None, release_def_ids=None, release_env_ids=None, release_env_def_ids=None, run_title=None, top=None, continuation_token=None): + """QueryTestRuns. + Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate. + :param str project: Project ID or project name + :param datetime min_last_updated_date: Minimum Last Modified Date of run to be queried (Mandatory). + :param datetime max_last_updated_date: Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days). + :param str state: Current state of the Runs to be queried. + :param [int] plan_ids: Plan Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param bool is_automated: Automation type of the Runs to be queried. + :param str publish_context: PublishContext of the Runs to be queried. + :param [int] build_ids: Build Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] build_def_ids: Build Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param str branch_name: Source Branch name of the Runs to be queried. + :param [int] release_ids: Release Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_def_ids: Release Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_env_ids: Release Environment Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param [int] release_env_def_ids: Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10). + :param str run_title: Run Title of the Runs to be queried. + :param int top: Number of runs to be queried. Limit is 100 + :param str continuation_token: continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user. + :rtype: [TestRun] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if min_last_updated_date is not None: + query_parameters['minLastUpdatedDate'] = self._serialize.query('min_last_updated_date', min_last_updated_date, 'iso-8601') + if max_last_updated_date is not None: + query_parameters['maxLastUpdatedDate'] = self._serialize.query('max_last_updated_date', max_last_updated_date, 'iso-8601') + if state is not None: + query_parameters['state'] = self._serialize.query('state', state, 'str') + if plan_ids is not None: + plan_ids = ",".join(map(str, plan_ids)) + query_parameters['planIds'] = self._serialize.query('plan_ids', plan_ids, 'str') + if is_automated is not None: + query_parameters['isAutomated'] = self._serialize.query('is_automated', is_automated, 'bool') + if publish_context is not None: + query_parameters['publishContext'] = self._serialize.query('publish_context', publish_context, 'str') + if build_ids is not None: + build_ids = ",".join(map(str, build_ids)) + query_parameters['buildIds'] = self._serialize.query('build_ids', build_ids, 'str') + if build_def_ids is not None: + build_def_ids = ",".join(map(str, build_def_ids)) + query_parameters['buildDefIds'] = self._serialize.query('build_def_ids', build_def_ids, 'str') + if branch_name is not None: + query_parameters['branchName'] = self._serialize.query('branch_name', branch_name, 'str') + if release_ids is not None: + release_ids = ",".join(map(str, release_ids)) + query_parameters['releaseIds'] = self._serialize.query('release_ids', release_ids, 'str') + if release_def_ids is not None: + release_def_ids = ",".join(map(str, release_def_ids)) + query_parameters['releaseDefIds'] = self._serialize.query('release_def_ids', release_def_ids, 'str') + if release_env_ids is not None: + release_env_ids = ",".join(map(str, release_env_ids)) + query_parameters['releaseEnvIds'] = self._serialize.query('release_env_ids', release_env_ids, 'str') + if release_env_def_ids is not None: + release_env_def_ids = ",".join(map(str, release_env_def_ids)) + query_parameters['releaseEnvDefIds'] = self._serialize.query('release_env_def_ids', release_env_def_ids, 'str') + if run_title is not None: + query_parameters['runTitle'] = self._serialize.query('run_title', run_title, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + response = self._send(http_method='GET', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestRun]', self._unwrap_collection(response)) + + def update_test_run(self, run_update_model, project, run_id): + """UpdateTestRun. + Update test run by its ID. + :param :class:` ` run_update_model: Run details RunUpdateModel + :param str project: Project ID or project name + :param int run_id: ID of the run to update. + :rtype: :class:` ` + """ + 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') + content = self._serialize.body(run_update_model, 'RunUpdateModel') + response = self._send(http_method='PATCH', + location_id='cadb3810-d47d-4a3c-a234-fe5f3be50138', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TestRun', response) + + def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): + """AddTestCasesToSuite. + Add test cases to suite. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to which the test cases must be added. + :param str test_case_ids: IDs of the test cases to add to the suite. Ids are specified in comma separated format. + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' + response = self._send(http_method='POST', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.0', + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) + + def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): + """GetTestCaseById. + Get a specific test case in a test suite with test case id. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite that contains the test case. + :param int test_case_ids: ID of the test case to get. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + route_values['action'] = 'TestCases' + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.0', + route_values=route_values) + return self._deserialize('SuiteTestCase', response) + + def get_test_cases(self, project, plan_id, suite_id): + """GetTestCases. + Get all test cases in a suite. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite to get. + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + route_values['action'] = 'TestCases' + response = self._send(http_method='GET', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.0', + route_values=route_values) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) + + def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case_ids): + """RemoveTestCasesFromSuiteUrl. + The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the suite to get. + :param str test_case_ids: IDs of the test cases to remove from the suite. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' + self._send(http_method='DELETE', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.0', + route_values=route_values) + + def update_suite_test_cases(self, suite_test_case_update_model, project, plan_id, suite_id, test_case_ids): + """UpdateSuiteTestCases. + Updates the properties of the test case association in a suite. + :param :class:` ` suite_test_case_update_model: Model for updation of the properties of test case suite association. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to which the test cases must be added. + :param str test_case_ids: IDs of the test cases to add to the suite. Ids are specified in comma separated format. + :rtype: [SuiteTestCase] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + if test_case_ids is not None: + route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' + content = self._serialize.body(suite_test_case_update_model, 'SuiteTestCaseUpdateModel') + response = self._send(http_method='PATCH', + location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[SuiteTestCase]', self._unwrap_collection(response)) + + def create_test_suite(self, test_suite, project, plan_id, suite_id): + """CreateTestSuite. + Create a test suite. + :param :class:` ` test_suite: Test suite data. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the parent suite. + :rtype: [TestSuite] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(test_suite, 'SuiteCreateModel') + response = self._send(http_method='POST', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) + + def delete_test_suite(self, project, plan_id, suite_id): + """DeleteTestSuite. + Delete test suite. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suite. + :param int suite_id: ID of the test suite to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + self._send(http_method='DELETE', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='5.0', + route_values=route_values) + + def get_test_suite_by_id(self, project, plan_id, suite_id, expand=None): + """GetTestSuiteById. + Get test suite by suite id. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite to get. + :param int expand: Include the children suites and testers details + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'int') + response = self._send(http_method='GET', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TestSuite', response) + + def get_test_suites_for_plan(self, project, plan_id, expand=None, skip=None, top=None, as_tree_view=None): + """GetTestSuitesForPlan. + Get test suites for plan. + :param str project: Project ID or project name + :param int plan_id: ID of the test plan for which suites are requested. + :param int expand: Include the children suites and testers details. + :param int skip: Number of suites to skip from the result. + :param int top: Number of Suites to be return after skipping the suites from the result. + :param bool as_tree_view: If the suites returned should be in a tree structure. + :rtype: [TestSuite] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if as_tree_view is not None: + query_parameters['$asTreeView'] = self._serialize.query('as_tree_view', as_tree_view, 'bool') + response = self._send(http_method='GET', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) + + def update_test_suite(self, suite_update_model, project, plan_id, suite_id): + """UpdateTestSuite. + Update a test suite. + :param :class:` ` suite_update_model: Suite Model to update + :param str project: Project ID or project name + :param int plan_id: ID of the test plan that contains the suites. + :param int suite_id: ID of the suite to update. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if plan_id is not None: + route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') + if suite_id is not None: + route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + content = self._serialize.body(suite_update_model, 'SuiteUpdateModel') + response = self._send(http_method='PATCH', + location_id='7b7619a0-cb54-4ab3-bf22-194056f45dd1', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TestSuite', response) + + 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='09a6167b-e969-4775-9247-b94cf3819caf', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[TestSuite]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/released/tfvc/__init__.py b/azure-devops/azure/devops/released/tfvc/__init__.py new file mode 100644 index 00000000..8b2df064 --- /dev/null +++ b/azure-devops/azure/devops/released/tfvc/__init__.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.tfvc.models import * +from .tfvc_client import TfvcClient + +__all__ = [ + 'AssociatedWorkItem', + 'Change', + 'CheckinNote', + 'FileContentMetadata', + 'GitRepository', + 'GitRepositoryRef', + 'GraphSubjectBase', + 'IdentityRef', + 'ItemContent', + 'ItemModel', + 'ReferenceLinks', + 'TeamProjectCollectionReference', + 'TeamProjectReference', + 'TfvcBranch', + 'TfvcBranchMapping', + 'TfvcBranchRef', + 'TfvcChange', + 'TfvcChangeset', + 'TfvcChangesetRef', + 'TfvcChangesetSearchCriteria', + 'TfvcChangesetsRequestData', + 'TfvcItem', + 'TfvcItemDescriptor', + 'TfvcItemRequestData', + 'TfvcLabel', + 'TfvcLabelRef', + 'TfvcLabelRequestData', + 'TfvcMappingFilter', + 'TfvcMergeSource', + 'TfvcPolicyFailureInfo', + 'TfvcPolicyOverrideInfo', + 'TfvcShallowBranchRef', + 'TfvcShelveset', + 'TfvcShelvesetRef', + 'TfvcShelvesetRequestData', + 'TfvcStatistics', + 'TfvcVersionDescriptor', + 'VersionControlProjectInfo', + 'VstsInfo', + 'TfvcClient' +] diff --git a/azure-devops/azure/devops/released/tfvc/tfvc_client.py b/azure-devops/azure/devops/released/tfvc/tfvc_client.py new file mode 100644 index 00000000..2ac9a132 --- /dev/null +++ b/azure-devops/azure/devops/released/tfvc/tfvc_client.py @@ -0,0 +1,747 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.tfvc import models + + +class TfvcClient(Client): + """Tfvc + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(TfvcClient, 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 = '8aa40520-446d-40e6-89f6-9c9f9ce44c48' + + def get_branch(self, path, project=None, include_parent=None, include_children=None): + """GetBranch. + Get a single branch hierarchy at the given path with parents or children as specified. + :param str path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. + :param str project: Project ID or project name + :param bool include_parent: Return the parent branch, if there is one. Default: False + :param bool include_children: Return child branches, if there are any. Default: False + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if include_parent is not None: + query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') + if include_children is not None: + query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcBranch', response) + + def get_branches(self, project=None, include_parent=None, include_children=None, include_deleted=None, include_links=None): + """GetBranches. + Get a collection of branch roots -- first-level children, branches with no parents. + :param str project: Project ID or project name + :param bool include_parent: Return the parent branch, if there is one. Default: False + :param bool include_children: Return the child branches for each root branch. Default: False + :param bool include_deleted: Return deleted branches. Default: False + :param bool include_links: Return links. Default: False + :rtype: [TfvcBranch] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if include_parent is not None: + query_parameters['includeParent'] = self._serialize.query('include_parent', include_parent, 'bool') + if include_children is not None: + query_parameters['includeChildren'] = self._serialize.query('include_children', include_children, 'bool') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TfvcBranch]', self._unwrap_collection(response)) + + def get_branch_refs(self, scope_path, project=None, include_deleted=None, include_links=None): + """GetBranchRefs. + Get branch hierarchies below the specified scopePath + :param str scope_path: Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder. + :param str project: Project ID or project name + :param bool include_deleted: Return deleted branches. Default: False + :param bool include_links: Return links. Default: False + :rtype: [TfvcBranchRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + response = self._send(http_method='GET', + location_id='bc1f417e-239d-42e7-85e1-76e80cb2d6eb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TfvcBranchRef]', self._unwrap_collection(response)) + + def get_changeset_changes(self, id=None, skip=None, top=None): + """GetChangesetChanges. + Retrieve Tfvc changes for a given changeset. + :param int id: ID of the changeset. Default: null + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :rtype: [TfvcChange] + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='f32b86f2-15b9-4fe6-81b1-6f8938617ee5', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) + + def create_changeset(self, changeset, project=None): + """CreateChangeset. + Create a new changeset. + :param :class:` ` changeset: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(changeset, 'TfvcChangeset') + response = self._send(http_method='POST', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TfvcChangesetRef', response) + + def get_changeset(self, id, project=None, max_change_count=None, include_details=None, include_work_items=None, max_comment_length=None, include_source_rename=None, skip=None, top=None, orderby=None, search_criteria=None): + """GetChangeset. + Retrieve a Tfvc Changeset + :param int id: Changeset Id to retrieve. + :param str project: Project ID or project name + :param int max_change_count: Number of changes to return (maximum 100 changes) Default: 0 + :param bool include_details: Include policy details and check-in notes in the response. Default: false + :param bool include_work_items: Include workitems. Default: false + :param int max_comment_length: Include details about associated work items in the response. Default: null + :param bool include_source_rename: Include renames. Default: false + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if max_change_count is not None: + query_parameters['maxChangeCount'] = self._serialize.query('max_change_count', max_change_count, 'int') + if include_details is not None: + query_parameters['includeDetails'] = self._serialize.query('include_details', include_details, 'bool') + if include_work_items is not None: + query_parameters['includeWorkItems'] = self._serialize.query('include_work_items', include_work_items, 'bool') + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if include_source_rename is not None: + query_parameters['includeSourceRename'] = self._serialize.query('include_source_rename', include_source_rename, 'bool') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if search_criteria is not None: + if search_criteria.item_path is not None: + query_parameters['searchCriteria.itemPath'] = search_criteria.item_path + if search_criteria.author is not None: + query_parameters['searchCriteria.author'] = search_criteria.author + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.from_id is not None: + query_parameters['searchCriteria.fromId'] = search_criteria.from_id + if search_criteria.to_id is not None: + query_parameters['searchCriteria.toId'] = search_criteria.to_id + if search_criteria.follow_renames is not None: + query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if search_criteria.mappings is not None: + query_parameters['searchCriteria.mappings'] = search_criteria.mappings + response = self._send(http_method='GET', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcChangeset', response) + + def get_changesets(self, project=None, max_comment_length=None, skip=None, top=None, orderby=None, search_criteria=None): + """GetChangesets. + Retrieve Tfvc Changesets + :param str project: Project ID or project name + :param int max_comment_length: Include details about associated work items in the response. Default: null + :param int skip: Number of results to skip. Default: null + :param int top: The maximum number of results to return. Default: null + :param str orderby: Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order. + :param :class:` ` search_criteria: Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null + :rtype: [TfvcChangesetRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if max_comment_length is not None: + query_parameters['maxCommentLength'] = self._serialize.query('max_comment_length', max_comment_length, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query('orderby', orderby, 'str') + if search_criteria is not None: + if search_criteria.item_path is not None: + query_parameters['searchCriteria.itemPath'] = search_criteria.item_path + if search_criteria.author is not None: + query_parameters['searchCriteria.author'] = search_criteria.author + if search_criteria.from_date is not None: + query_parameters['searchCriteria.fromDate'] = search_criteria.from_date + if search_criteria.to_date is not None: + query_parameters['searchCriteria.toDate'] = search_criteria.to_date + if search_criteria.from_id is not None: + query_parameters['searchCriteria.fromId'] = search_criteria.from_id + if search_criteria.to_id is not None: + query_parameters['searchCriteria.toId'] = search_criteria.to_id + if search_criteria.follow_renames is not None: + query_parameters['searchCriteria.followRenames'] = search_criteria.follow_renames + if search_criteria.include_links is not None: + query_parameters['searchCriteria.includeLinks'] = search_criteria.include_links + if search_criteria.mappings is not None: + query_parameters['searchCriteria.mappings'] = search_criteria.mappings + response = self._send(http_method='GET', + location_id='0bc8f0a4-6bfb-42a9-ba84-139da7b99c49', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) + + def get_batched_changesets(self, changesets_request_data): + """GetBatchedChangesets. + Returns changesets for a given list of changeset Ids. + :param :class:` ` changesets_request_data: List of changeset IDs. + :rtype: [TfvcChangesetRef] + """ + content = self._serialize.body(changesets_request_data, 'TfvcChangesetsRequestData') + response = self._send(http_method='POST', + location_id='b7e7c173-803c-4fea-9ec8-31ee35c5502a', + version='5.0', + content=content) + return self._deserialize('[TfvcChangesetRef]', self._unwrap_collection(response)) + + def get_changeset_work_items(self, id=None): + """GetChangesetWorkItems. + Retrieves the work items associated with a particular changeset. + :param int id: ID of the changeset. Default: null + :rtype: [AssociatedWorkItem] + """ + route_values = {} + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + response = self._send(http_method='GET', + location_id='64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4', + version='5.0', + route_values=route_values) + return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) + + def get_items_batch(self, item_request_data, project=None): + """GetItemsBatch. + Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: + :param str project: Project ID or project name + :rtype: [[TfvcItem]] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(item_request_data, 'TfvcItemRequestData') + response = self._send(http_method='POST', + location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[[TfvcItem]]', self._unwrap_collection(response)) + + def get_items_batch_zip(self, item_request_data, project=None, **kwargs): + """GetItemsBatchZip. + Post for retrieving a set of items given a list of paths or a long path. Allows for specifying the recursionLevel and version descriptors for each path. + :param :class:` ` item_request_data: + :param str project: Project ID or project name + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(item_request_data, 'TfvcItemRequestData') + response = self._send(http_method='POST', + location_id='fe6f827b-5f64-480f-b8af-1eca3b80e833', + version='5.0', + route_values=route_values, + content=content, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_item(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None): + """GetItem. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcItem', response) + + def get_item_content(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): + """GetItemContent. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_items(self, project=None, scope_path=None, recursion_level=None, include_links=None, version_descriptor=None): + """GetItems. + Get a list of Tfvc items + :param str project: Project ID or project name + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param bool include_links: True to include links. + :param :class:` ` version_descriptor: + :rtype: [TfvcItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if include_links is not None: + query_parameters['includeLinks'] = self._serialize.query('include_links', include_links, 'bool') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) + + def get_item_text(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): + """GetItemText. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_item_zip(self, path, project=None, file_name=None, download=None, scope_path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): + """GetItemZip. + Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download. + :param str path: Version control path of an individual item to return. + :param str project: Project ID or project name + :param str file_name: file name of item returned. + :param bool download: If true, create a downloadable attachment. + :param str scope_path: Version control path of a folder to return multiple items. + :param str recursion_level: None (just the item), or OneLevel (contents of a folder). + :param :class:` ` version_descriptor: Version descriptor. Default is null. + :param bool include_content: Set to true to include item content when requesting json. Default is false. + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + if scope_path is not None: + query_parameters['scopePath'] = self._serialize.query('scope_path', scope_path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_option is not None: + query_parameters['versionDescriptor.versionOption'] = version_descriptor.version_option + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='ba9fc436-9a38-4578-89d6-e4f3241f5040', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_label_items(self, label_id, top=None, skip=None): + """GetLabelItems. + Get items under a label. + :param str label_id: Unique identifier of label + :param int top: Max number of items to return + :param int skip: Number of items to skip + :rtype: [TfvcItem] + """ + route_values = {} + if label_id is not None: + route_values['labelId'] = self._serialize.url('label_id', label_id, 'str') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='06166e34-de17-4b60-8cd1-23182a346fda', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TfvcItem]', self._unwrap_collection(response)) + + def get_label(self, label_id, request_data, project=None): + """GetLabel. + Get a single deep label. + :param str label_id: Unique identifier of label + :param :class:` ` request_data: maxItemCount + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if label_id is not None: + route_values['labelId'] = self._serialize.url('label_id', label_id, 'str') + query_parameters = {} + if request_data is not None: + if request_data.label_scope is not None: + query_parameters['requestData.labelScope'] = request_data.label_scope + if request_data.name is not None: + query_parameters['requestData.name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.owner'] = request_data.owner + if request_data.item_label_filter is not None: + query_parameters['requestData.itemLabelFilter'] = request_data.item_label_filter + if request_data.max_item_count is not None: + query_parameters['requestData.maxItemCount'] = request_data.max_item_count + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + response = self._send(http_method='GET', + location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('TfvcLabel', response) + + def get_labels(self, request_data, project=None, top=None, skip=None): + """GetLabels. + Get a collection of shallow label references. + :param :class:` ` request_data: labelScope, name, owner, and itemLabelFilter + :param str project: Project ID or project name + :param int top: Max number of labels to return + :param int skip: Number of labels to skip + :rtype: [TfvcLabelRef] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if request_data is not None: + if request_data.label_scope is not None: + query_parameters['requestData.labelScope'] = request_data.label_scope + if request_data.name is not None: + query_parameters['requestData.name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.owner'] = request_data.owner + if request_data.item_label_filter is not None: + query_parameters['requestData.itemLabelFilter'] = request_data.item_label_filter + if request_data.max_item_count is not None: + query_parameters['requestData.maxItemCount'] = request_data.max_item_count + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='a5d9bd7f-b661-4d0e-b9be-d9c16affae54', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TfvcLabelRef]', self._unwrap_collection(response)) + + def get_shelveset_changes(self, shelveset_id, top=None, skip=None): + """GetShelvesetChanges. + Get changes included in a shelveset. + :param str shelveset_id: Shelveset's unique ID + :param int top: Max number of changes to return + :param int skip: Number of changes to skip + :rtype: [TfvcChange] + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='dbaf075b-0445-4c34-9e5b-82292f856522', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[TfvcChange]', self._unwrap_collection(response)) + + def get_shelveset(self, shelveset_id, request_data=None): + """GetShelveset. + Get a single deep shelveset. + :param str shelveset_id: Shelveset's unique ID + :param :class:` ` request_data: includeDetails, includeWorkItems, maxChangeCount, and maxCommentLength + :rtype: :class:` ` + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + if request_data is not None: + if request_data.name is not None: + query_parameters['requestData.name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.owner'] = request_data.owner + if request_data.max_comment_length is not None: + query_parameters['requestData.maxCommentLength'] = request_data.max_comment_length + if request_data.max_change_count is not None: + query_parameters['requestData.maxChangeCount'] = request_data.max_change_count + if request_data.include_details is not None: + query_parameters['requestData.includeDetails'] = request_data.include_details + if request_data.include_work_items is not None: + query_parameters['requestData.includeWorkItems'] = request_data.include_work_items + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + response = self._send(http_method='GET', + location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('TfvcShelveset', response) + + def get_shelvesets(self, request_data=None, top=None, skip=None): + """GetShelvesets. + Return a collection of shallow shelveset references. + :param :class:` ` request_data: name, owner, and maxCommentLength + :param int top: Max number of shelvesets to return + :param int skip: Number of shelvesets to skip + :rtype: [TfvcShelvesetRef] + """ + query_parameters = {} + if request_data is not None: + if request_data.name is not None: + query_parameters['requestData.name'] = request_data.name + if request_data.owner is not None: + query_parameters['requestData.owner'] = request_data.owner + if request_data.max_comment_length is not None: + query_parameters['requestData.maxCommentLength'] = request_data.max_comment_length + if request_data.max_change_count is not None: + query_parameters['requestData.maxChangeCount'] = request_data.max_change_count + if request_data.include_details is not None: + query_parameters['requestData.includeDetails'] = request_data.include_details + if request_data.include_work_items is not None: + query_parameters['requestData.includeWorkItems'] = request_data.include_work_items + if request_data.include_links is not None: + query_parameters['requestData.includeLinks'] = request_data.include_links + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='e36d44fb-e907-4b0a-b194-f83f1ed32ad3', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[TfvcShelvesetRef]', self._unwrap_collection(response)) + + def get_shelveset_work_items(self, shelveset_id): + """GetShelvesetWorkItems. + Get work items associated with a shelveset. + :param str shelveset_id: Shelveset's unique ID + :rtype: [AssociatedWorkItem] + """ + query_parameters = {} + if shelveset_id is not None: + query_parameters['shelvesetId'] = self._serialize.query('shelveset_id', shelveset_id, 'str') + response = self._send(http_method='GET', + location_id='a7a0c1c1-373e-425a-b031-a519474d743d', + version='5.0', + query_parameters=query_parameters) + return self._deserialize('[AssociatedWorkItem]', self._unwrap_collection(response)) + diff --git a/azure-devops/azure/devops/released/wiki/__init__.py b/azure-devops/azure/devops/released/wiki/__init__.py new file mode 100644 index 00000000..349b1020 --- /dev/null +++ b/azure-devops/azure/devops/released/wiki/__init__.py @@ -0,0 +1,30 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.wiki.models import * +from .wiki_client import WikiClient + +__all__ = [ + 'GitRepository', + 'GitRepositoryRef', + 'GitVersionDescriptor', + 'WikiAttachment', + 'WikiAttachmentResponse', + 'WikiCreateBaseParameters', + 'WikiCreateParametersV2', + 'WikiPage', + 'WikiPageCreateOrUpdateParameters', + 'WikiPageMove', + 'WikiPageMoveParameters', + 'WikiPageMoveResponse', + 'WikiPageResponse', + 'WikiPageViewStats', + 'WikiUpdateParameters', + 'WikiV2', + 'WikiClient' +] diff --git a/azure-devops/azure/devops/released/wiki/wiki_client.py b/azure-devops/azure/devops/released/wiki/wiki_client.py new file mode 100644 index 00000000..16660993 --- /dev/null +++ b/azure-devops/azure/devops/released/wiki/wiki_client.py @@ -0,0 +1,366 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.wiki import models + + +class WikiClient(Client): + """Wiki + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WikiClient, 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 = 'bf7d82a0-8aa5-4613-94ef-6172a5ea01f3' + + def create_attachment(self, upload_stream, project, wiki_identifier, name, **kwargs): + """CreateAttachment. + Creates an attachment in the wiki. + :param object upload_stream: Stream to upload + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str name: Wiki attachment name. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if name is not None: + query_parameters['name'] = self._serialize.query('name', name, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='PUT', + location_id='c4382d8d-fefc-40e0-92c5-49852e9e17c0', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + response_object = models.WikiAttachmentResponse() + response_object.attachment = self._deserialize('WikiAttachment', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def create_page_move(self, page_move_parameters, project, wiki_identifier, comment=None): + """CreatePageMove. + Creates a page move operation that updates the path and order of the page as provided in the parameters. + :param :class:` ` page_move_parameters: Page more operation parameters. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str comment: Comment that is to be associated with this page move. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + content = self._serialize.body(page_move_parameters, 'WikiPageMoveParameters') + response = self._send(http_method='POST', + location_id='e37bbe71-cbae-49e5-9a4e-949143b9d910', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + response_object = models.WikiPageMoveResponse() + response_object.page_move = self._deserialize('WikiPageMove', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def create_or_update_page(self, parameters, project, wiki_identifier, path, version, comment=None): + """CreateOrUpdatePage. + Creates or edits a wiki page. + :param :class:` ` parameters: Wiki create or update operation parameters. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param String version: Version of the page on which the change is to be made. Mandatory for `Edit` scenario. To be populated in the If-Match header of the request. + :param str comment: Comment to be associated with the page operation. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + content = self._serialize.body(parameters, 'WikiPageCreateOrUpdateParameters') + response = self._send(http_method='PUT', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def delete_page(self, project, wiki_identifier, path, comment=None): + """DeletePage. + Deletes a wiki page. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str comment: Comment to be associated with this page delete. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if comment is not None: + query_parameters['comment'] = self._serialize.query('comment', comment, 'str') + response = self._send(http_method='DELETE', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_page(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None): + """GetPage. + Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + response_object = models.WikiPageResponse() + response_object.page = self._deserialize('WikiPage', response) + response_object.eTag = response.headers.get('ETag') + return response_object + + def get_page_text(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): + """GetPageText. + Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='text/plain') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_page_zip(self, project, wiki_identifier, path=None, recursion_level=None, version_descriptor=None, include_content=None, **kwargs): + """GetPageZip. + Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request. + :param str project: Project ID or project name + :param str wiki_identifier: Wiki Id or name. + :param str path: Wiki page path. + :param str recursion_level: Recursion level for subpages retrieval. Defaults to `None` (Optional). + :param :class:` ` version_descriptor: GitVersionDescriptor for the page. Defaults to the default branch (Optional). + :param bool include_content: True to include the content of the page in the response for Json content type. Defaults to false (Optional) + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + query_parameters = {} + if path is not None: + query_parameters['path'] = self._serialize.query('path', path, 'str') + if recursion_level is not None: + query_parameters['recursionLevel'] = self._serialize.query('recursion_level', recursion_level, 'str') + if version_descriptor is not None: + if version_descriptor.version_type is not None: + query_parameters['versionDescriptor.versionType'] = version_descriptor.version_type + if version_descriptor.version is not None: + query_parameters['versionDescriptor.version'] = version_descriptor.version + if version_descriptor.version_options is not None: + query_parameters['versionDescriptor.versionOptions'] = version_descriptor.version_options + if include_content is not None: + query_parameters['includeContent'] = self._serialize.query('include_content', include_content, 'bool') + response = self._send(http_method='GET', + location_id='25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def create_wiki(self, wiki_create_params, project=None): + """CreateWiki. + Creates the wiki resource. + :param :class:` ` wiki_create_params: Parameters for the wiki creation. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(wiki_create_params, 'WikiCreateParametersV2') + response = self._send(http_method='POST', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WikiV2', response) + + def delete_wiki(self, wiki_identifier, project=None): + """DeleteWiki. + Deletes the wiki corresponding to the wiki name or Id provided. + :param str wiki_identifier: Wiki name or Id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + response = self._send(http_method='DELETE', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.0', + route_values=route_values) + return self._deserialize('WikiV2', response) + + def get_all_wikis(self, project=None): + """GetAllWikis. + Gets all wikis in a project or collection. + :param str project: Project ID or project name + :rtype: [WikiV2] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.0', + route_values=route_values) + return self._deserialize('[WikiV2]', self._unwrap_collection(response)) + + def get_wiki(self, wiki_identifier, project=None): + """GetWiki. + Gets the wiki corresponding to the wiki name or Id provided. + :param str wiki_identifier: Wiki name or id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + response = self._send(http_method='GET', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.0', + route_values=route_values) + return self._deserialize('WikiV2', response) + + def update_wiki(self, update_parameters, wiki_identifier, project=None): + """UpdateWiki. + Updates the wiki corresponding to the wiki Id or name provided using the update parameters. + :param :class:` ` update_parameters: Update parameters. + :param str wiki_identifier: Wiki name or Id. + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if wiki_identifier is not None: + route_values['wikiIdentifier'] = self._serialize.url('wiki_identifier', wiki_identifier, 'str') + content = self._serialize.body(update_parameters, 'WikiUpdateParameters') + response = self._send(http_method='PATCH', + location_id='288d122c-dbd4-451d-aa5f-7dbbba070728', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WikiV2', response) + diff --git a/azure-devops/azure/devops/released/work/__init__.py b/azure-devops/azure/devops/released/work/__init__.py new file mode 100644 index 00000000..bd04549f --- /dev/null +++ b/azure-devops/azure/devops/released/work/__init__.py @@ -0,0 +1,79 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.work.models import * +from .work_client import WorkClient + +__all__ = [ + 'Activity', + 'BacklogColumn', + 'BacklogConfiguration', + 'BacklogFields', + 'BacklogLevel', + 'BacklogLevelConfiguration', + 'BacklogLevelWorkItems', + 'Board', + 'BoardCardRuleSettings', + 'BoardCardSettings', + 'BoardChart', + 'BoardChartReference', + 'BoardColumn', + 'BoardFields', + 'BoardReference', + 'BoardRow', + 'BoardSuggestedValue', + 'BoardUserSettings', + 'CapacityPatch', + 'CategoryConfiguration', + 'CreatePlan', + 'DateRange', + 'DeliveryViewData', + 'FieldReference', + 'FilterClause', + 'GraphSubjectBase', + 'IdentityRef', + 'IterationWorkItems', + 'Link', + 'Member', + 'ParentChildWIMap', + 'Plan', + 'PlanViewData', + 'PredefinedQuery', + 'ProcessConfiguration', + 'ReferenceLinks', + 'Rule', + 'TeamContext', + 'TeamFieldValue', + 'TeamFieldValues', + 'TeamFieldValuesPatch', + 'TeamIterationAttributes', + 'TeamMemberCapacity', + 'TeamSetting', + 'TeamSettingsDataContractBase', + 'TeamSettingsDaysOff', + 'TeamSettingsDaysOffPatch', + 'TeamSettingsIteration', + 'TeamSettingsPatch', + 'TimelineCriteriaStatus', + 'TimelineIterationStatus', + 'TimelineTeamData', + 'TimelineTeamIteration', + 'TimelineTeamStatus', + 'UpdatePlan', + 'WorkItem', + 'WorkItemColor', + 'WorkItemFieldReference', + 'WorkItemLink', + 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemTrackingResource', + 'WorkItemTrackingResourceReference', + 'WorkItemTypeReference', + 'WorkItemTypeStateInfo', + 'WorkClient' +] diff --git a/azure-devops/azure/devops/released/work/work_client.py b/azure-devops/azure/devops/released/work/work_client.py new file mode 100644 index 00000000..8689c6a8 --- /dev/null +++ b/azure-devops/azure/devops/released/work/work_client.py @@ -0,0 +1,1129 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.work import models + + +class WorkClient(Client): + """Work + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkClient, 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 = '1d4f49f9-02b9-4e26-b826-2cdb6195f2a9' + + def get_backlog_configurations(self, team_context): + """GetBacklogConfigurations. + Gets backlog configuration for a team + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='7799f497-3cb5-4f16-ad4f-5cd06012db64', + version='5.0', + route_values=route_values) + return self._deserialize('BacklogConfiguration', response) + + def get_column_suggested_values(self, project=None): + """GetColumnSuggestedValues. + Get available board columns in a project + :param str project: Project ID or project name + :rtype: [BoardSuggestedValue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='eb7ec5a3-1ba3-4fd1-b834-49a5a387e57d', + version='5.0', + route_values=route_values) + return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) + + def get_row_suggested_values(self, project=None): + """GetRowSuggestedValues. + Get available board rows in a project + :param str project: Project ID or project name + :rtype: [BoardSuggestedValue] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='bb494cc6-a0f5-4c6c-8dca-ea6912e79eb9', + version='5.0', + route_values=route_values) + return self._deserialize('[BoardSuggestedValue]', self._unwrap_collection(response)) + + def get_board(self, team_context, id): + """GetBoard. + Get board + :param :class:` ` team_context: The team context for the operation + :param str id: identifier for board, either board's backlog level name (Eg:"Stories") or Id + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='5.0', + route_values=route_values) + return self._deserialize('Board', response) + + def get_boards(self, team_context): + """GetBoards. + Get boards + :param :class:` ` team_context: The team context for the operation + :rtype: [BoardReference] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='5.0', + route_values=route_values) + return self._deserialize('[BoardReference]', self._unwrap_collection(response)) + + def set_board_options(self, options, team_context, id): + """SetBoardOptions. + Update board options + :param {str} options: options to updated + :param :class:` ` team_context: The team context for the operation + :param str id: identifier for board, either category plural name (Eg:"Stories") or guid + :rtype: {str} + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + content = self._serialize.body(options, '{str}') + response = self._send(http_method='PUT', + location_id='23ad19fc-3b8e-4877-8462-b3f92bc06b40', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('{str}', self._unwrap_collection(response)) + + def get_capacities(self, team_context, iteration_id): + """GetCapacities. + Get a team's capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: [TeamMemberCapacity] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='5.0', + route_values=route_values) + return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) + + def get_capacity(self, team_context, iteration_id, team_member_id): + """GetCapacity. + Get a team member's capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :param str team_member_id: ID of the team member + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + if team_member_id is not None: + route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') + response = self._send(http_method='GET', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='5.0', + route_values=route_values) + return self._deserialize('TeamMemberCapacity', response) + + def replace_capacities(self, capacities, team_context, iteration_id): + """ReplaceCapacities. + Replace a team's capacity + :param [TeamMemberCapacity] capacities: Team capacity to replace + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: [TeamMemberCapacity] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + content = self._serialize.body(capacities, '[TeamMemberCapacity]') + response = self._send(http_method='PUT', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[TeamMemberCapacity]', self._unwrap_collection(response)) + + def update_capacity(self, patch, team_context, iteration_id, team_member_id): + """UpdateCapacity. + Update a team member's capacity + :param :class:` ` patch: Updated capacity + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :param str team_member_id: ID of the team member + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + if team_member_id is not None: + route_values['teamMemberId'] = self._serialize.url('team_member_id', team_member_id, 'str') + content = self._serialize.body(patch, 'CapacityPatch') + response = self._send(http_method='PATCH', + location_id='74412d15-8c1a-4352-a48d-ef1ed5587d57', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TeamMemberCapacity', response) + + def get_board_card_rule_settings(self, team_context, board): + """GetBoardCardRuleSettings. + Get board card Rule settings for the board id or board by name + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', + version='5.0', + route_values=route_values) + return self._deserialize('BoardCardRuleSettings', response) + + def update_board_card_rule_settings(self, board_card_rule_settings, team_context, board): + """UpdateBoardCardRuleSettings. + Update board card Rule settings for the board id or board by name + :param :class:` ` board_card_rule_settings: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_card_rule_settings, 'BoardCardRuleSettings') + response = self._send(http_method='PATCH', + location_id='b044a3d9-02ea-49c7-91a1-b730949cc896', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('BoardCardRuleSettings', response) + + def get_board_card_settings(self, team_context, board): + """GetBoardCardSettings. + Get board card settings for the board id or board by name + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', + version='5.0', + route_values=route_values) + return self._deserialize('BoardCardSettings', response) + + def update_board_card_settings(self, board_card_settings_to_save, team_context, board): + """UpdateBoardCardSettings. + Update board card settings for the board id or board by name + :param :class:` ` board_card_settings_to_save: + :param :class:` ` team_context: The team context for the operation + :param str board: + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_card_settings_to_save, 'BoardCardSettings') + response = self._send(http_method='PUT', + location_id='07c3b467-bc60-4f05-8e34-599ce288fafc', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('BoardCardSettings', response) + + def get_board_chart(self, team_context, board, name): + """GetBoardChart. + Get a board chart + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :param str name: The chart name + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + response = self._send(http_method='GET', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='5.0', + route_values=route_values) + return self._deserialize('BoardChart', response) + + def get_board_charts(self, team_context, board): + """GetBoardCharts. + Get board charts + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :rtype: [BoardChartReference] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='5.0', + route_values=route_values) + return self._deserialize('[BoardChartReference]', self._unwrap_collection(response)) + + def update_board_chart(self, chart, team_context, board, name): + """UpdateBoardChart. + Update a board chart + :param :class:` ` chart: + :param :class:` ` team_context: The team context for the operation + :param str board: Identifier for board, either board's backlog level name (Eg:"Stories") or Id + :param str name: The chart name + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + if name is not None: + route_values['name'] = self._serialize.url('name', name, 'str') + content = self._serialize.body(chart, 'BoardChart') + response = self._send(http_method='PATCH', + location_id='45fe888c-239e-49fd-958c-df1a1ab21d97', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('BoardChart', response) + + def get_board_columns(self, team_context, board): + """GetBoardColumns. + Get columns on a board + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardColumn] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', + version='5.0', + route_values=route_values) + return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) + + def update_board_columns(self, board_columns, team_context, board): + """UpdateBoardColumns. + Update columns on a board + :param [BoardColumn] board_columns: List of board columns to update + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardColumn] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_columns, '[BoardColumn]') + response = self._send(http_method='PUT', + location_id='c555d7ff-84e1-47df-9923-a3fe0cd8751b', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[BoardColumn]', self._unwrap_collection(response)) + + def get_delivery_timeline_data(self, project, id, revision=None, start_date=None, end_date=None): + """GetDeliveryTimelineData. + Get Delivery View Data + :param str project: Project ID or project name + :param str id: Identifier for delivery view + :param int revision: Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision. + :param datetime start_date: The start date of timeline + :param datetime end_date: The end date of timeline + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if revision is not None: + query_parameters['revision'] = self._serialize.query('revision', revision, 'int') + if start_date is not None: + query_parameters['startDate'] = self._serialize.query('start_date', start_date, 'iso-8601') + if end_date is not None: + query_parameters['endDate'] = self._serialize.query('end_date', end_date, 'iso-8601') + response = self._send(http_method='GET', + location_id='bdd0834e-101f-49f0-a6ae-509f384a12b4', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('DeliveryViewData', response) + + def delete_team_iteration(self, team_context, id): + """DeleteTeamIteration. + Delete a team's iteration by iterationId + :param :class:` ` team_context: The team context for the operation + :param str id: ID of the iteration + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + self._send(http_method='DELETE', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='5.0', + route_values=route_values) + + def get_team_iteration(self, team_context, id): + """GetTeamIteration. + Get team's iteration by iterationId + :param :class:` ` team_context: The team context for the operation + :param str id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='5.0', + route_values=route_values) + return self._deserialize('TeamSettingsIteration', response) + + def get_team_iterations(self, team_context, timeframe=None): + """GetTeamIterations. + Get a team's iterations using timeframe filter + :param :class:` ` team_context: The team context for the operation + :param str timeframe: A filter for which iterations are returned based on relative time. Only Current is supported currently. + :rtype: [TeamSettingsIteration] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if timeframe is not None: + query_parameters['$timeframe'] = self._serialize.query('timeframe', timeframe, 'str') + response = self._send(http_method='GET', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[TeamSettingsIteration]', self._unwrap_collection(response)) + + def post_team_iteration(self, iteration, team_context): + """PostTeamIteration. + Add an iteration to the team + :param :class:` ` iteration: Iteration to add + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(iteration, 'TeamSettingsIteration') + response = self._send(http_method='POST', + location_id='c9175577-28a1-4b06-9197-8636af9f64ad', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TeamSettingsIteration', response) + + def create_plan(self, posted_plan, project): + """CreatePlan. + Add a new plan for the team + :param :class:` ` posted_plan: Plan definition + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(posted_plan, 'CreatePlan') + response = self._send(http_method='POST', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Plan', response) + + def delete_plan(self, project, id): + """DeletePlan. + Delete the specified plan + :param str project: Project ID or project name + :param str id: Identifier of the plan + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + self._send(http_method='DELETE', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='5.0', + route_values=route_values) + + def get_plan(self, project, id): + """GetPlan. + Get the information for the specified plan + :param str project: Project ID or project name + :param str id: Identifier of the plan + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + response = self._send(http_method='GET', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='5.0', + route_values=route_values) + return self._deserialize('Plan', response) + + def get_plans(self, project): + """GetPlans. + Get the information for all the plans configured for the given team + :param str project: Project ID or project name + :rtype: [Plan] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='5.0', + route_values=route_values) + return self._deserialize('[Plan]', self._unwrap_collection(response)) + + def update_plan(self, updated_plan, project, id): + """UpdatePlan. + Update the information for the specified plan + :param :class:` ` updated_plan: Plan definition to be updated + :param str project: Project ID or project name + :param str id: Identifier of the plan + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + content = self._serialize.body(updated_plan, 'UpdatePlan') + response = self._send(http_method='PUT', + location_id='0b42cb47-cd73-4810-ac90-19c9ba147453', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('Plan', response) + + def get_board_rows(self, team_context, board): + """GetBoardRows. + Get rows on a board + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardRow] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + response = self._send(http_method='GET', + location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', + version='5.0', + route_values=route_values) + return self._deserialize('[BoardRow]', self._unwrap_collection(response)) + + def update_board_rows(self, board_rows, team_context, board): + """UpdateBoardRows. + Update rows on a board + :param [BoardRow] board_rows: List of board rows to update + :param :class:` ` team_context: The team context for the operation + :param str board: Name or ID of the specific board + :rtype: [BoardRow] + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if board is not None: + route_values['board'] = self._serialize.url('board', board, 'str') + content = self._serialize.body(board_rows, '[BoardRow]') + response = self._send(http_method='PUT', + location_id='0863355d-aefd-4d63-8669-984c9b7b0e78', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[BoardRow]', self._unwrap_collection(response)) + + def get_team_days_off(self, team_context, iteration_id): + """GetTeamDaysOff. + Get team's days off for an iteration + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + response = self._send(http_method='GET', + location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', + version='5.0', + route_values=route_values) + return self._deserialize('TeamSettingsDaysOff', response) + + def update_team_days_off(self, days_off_patch, team_context, iteration_id): + """UpdateTeamDaysOff. + Set a team's days off for an iteration + :param :class:` ` days_off_patch: Team's days off patch containting a list of start and end dates + :param :class:` ` team_context: The team context for the operation + :param str iteration_id: ID of the iteration + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if iteration_id is not None: + route_values['iterationId'] = self._serialize.url('iteration_id', iteration_id, 'str') + content = self._serialize.body(days_off_patch, 'TeamSettingsDaysOffPatch') + response = self._send(http_method='PATCH', + location_id='2d4faa2e-9150-4cbf-a47a-932b1b4a0773', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TeamSettingsDaysOff', response) + + def get_team_field_values(self, team_context): + """GetTeamFieldValues. + Get a collection of team field values + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', + version='5.0', + route_values=route_values) + return self._deserialize('TeamFieldValues', response) + + def update_team_field_values(self, patch, team_context): + """UpdateTeamFieldValues. + Update team field values + :param :class:` ` patch: + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(patch, 'TeamFieldValuesPatch') + response = self._send(http_method='PATCH', + location_id='07ced576-58ed-49e6-9c1e-5cb53ab8bf2a', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TeamFieldValues', response) + + def get_team_settings(self, team_context): + """GetTeamSettings. + Get a team's settings + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + response = self._send(http_method='GET', + location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', + version='5.0', + route_values=route_values) + return self._deserialize('TeamSetting', response) + + def update_team_settings(self, team_settings_patch, team_context): + """UpdateTeamSettings. + Update a team's settings + :param :class:` ` team_settings_patch: TeamSettings changes + :param :class:` ` team_context: The team context for the operation + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + content = self._serialize.body(team_settings_patch, 'TeamSettingsPatch') + response = self._send(http_method='PATCH', + location_id='c3c1012b-bea7-49d7-b45e-1664e566f84c', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('TeamSetting', response) + diff --git a/azure-devops/azure/devops/released/work_item_tracking/__init__.py b/azure-devops/azure/devops/released/work_item_tracking/__init__.py new file mode 100644 index 00000000..af4ddce9 --- /dev/null +++ b/azure-devops/azure/devops/released/work_item_tracking/__init__.py @@ -0,0 +1,84 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.work_item_tracking.models import * +from .work_item_tracking_client import WorkItemTrackingClient + +__all__ = [ + 'AccountMyWorkResult', + 'AccountRecentActivityWorkItemModel', + 'AccountRecentMentionWorkItemModel', + 'AccountWorkWorkItemModel', + 'ArtifactUriQuery', + 'ArtifactUriQueryResult', + 'AttachmentReference', + 'FieldDependentRule', + 'FieldsToEvaluate', + 'GraphSubjectBase', + 'IdentityRef', + 'IdentityReference', + 'JsonPatchOperation', + 'Link', + 'ProjectWorkItemStateColors', + 'ProvisioningResult', + 'QueryBatchGetRequest', + 'QueryHierarchyItem', + 'QueryHierarchyItemsResult', + 'ReferenceLinks', + 'ReportingWorkItemLinksBatch', + 'ReportingWorkItemRevisionsBatch', + 'ReportingWorkItemRevisionsFilter', + 'StreamedBatch', + 'TeamContext', + 'Wiql', + 'WorkArtifactLink', + 'WorkItem', + 'WorkItemBatchGetRequest', + 'WorkItemClassificationNode', + 'WorkItemComment', + 'WorkItemComments', + 'WorkItemDelete', + 'WorkItemDeleteReference', + 'WorkItemDeleteShallowReference', + 'WorkItemDeleteUpdate', + 'WorkItemField', + 'WorkItemFieldOperation', + 'WorkItemFieldReference', + 'WorkItemFieldUpdate', + 'WorkItemHistory', + 'WorkItemIcon', + 'WorkItemLink', + 'WorkItemNextStateOnTransition', + 'WorkItemQueryClause', + 'WorkItemQueryResult', + 'WorkItemQuerySortColumn', + 'WorkItemReference', + 'WorkItemRelation', + 'WorkItemRelationType', + 'WorkItemRelationUpdates', + 'WorkItemStateColor', + 'WorkItemStateTransition', + 'WorkItemTemplate', + 'WorkItemTemplateReference', + 'WorkItemTrackingReference', + 'WorkItemTrackingResource', + 'WorkItemTrackingResourceReference', + 'WorkItemType', + 'WorkItemTypeCategory', + 'WorkItemTypeColor', + 'WorkItemTypeColorAndIcon', + 'WorkItemTypeFieldInstance', + 'WorkItemTypeFieldInstanceBase', + 'WorkItemTypeFieldWithReferences', + 'WorkItemTypeReference', + 'WorkItemTypeStateColors', + 'WorkItemTypeTemplate', + 'WorkItemTypeTemplateUpdateModel', + 'WorkItemUpdate', + 'WorkItemTrackingClient' +] diff --git a/azure-devops/azure/devops/released/work_item_tracking/work_item_tracking_client.py b/azure-devops/azure/devops/released/work_item_tracking/work_item_tracking_client.py new file mode 100644 index 00000000..0a41a728 --- /dev/null +++ b/azure-devops/azure/devops/released/work_item_tracking/work_item_tracking_client.py @@ -0,0 +1,1270 @@ +# -------------------------------------------------------------------------------------------- +# 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_0.work_item_tracking import models + + +class WorkItemTrackingClient(Client): + """WorkItemTracking + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(WorkItemTrackingClient, 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 = '5264459e-e5e0-4bd8-b118-0985e68a4ec5' + + def create_attachment(self, upload_stream, project=None, file_name=None, upload_type=None, area_path=None, **kwargs): + """CreateAttachment. + Uploads an attachment. + :param object upload_stream: Stream to upload + :param str project: Project ID or project name + :param str file_name: The name of the file + :param str upload_type: Attachment upload type: Simple or Chunked + :param str area_path: Target project Area Path + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if upload_type is not None: + query_parameters['uploadType'] = self._serialize.query('upload_type', upload_type, 'str') + if area_path is not None: + query_parameters['areaPath'] = self._serialize.query('area_path', area_path, 'str') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + content = self._client.stream_upload(upload_stream, callback=callback) + response = self._send(http_method='POST', + location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/octet-stream') + return self._deserialize('AttachmentReference', response) + + def get_attachment_content(self, id, project=None, file_name=None, download=None, **kwargs): + """GetAttachmentContent. + Downloads an attachment. + :param str id: Attachment ID + :param str project: Project ID or project name + :param str file_name: Name of the file + :param bool download: If set to true always download attachment + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + response = self._send(http_method='GET', + location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/octet-stream') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_attachment_zip(self, id, project=None, file_name=None, download=None, **kwargs): + """GetAttachmentZip. + Downloads an attachment. + :param str id: Attachment ID + :param str project: Project ID or project name + :param str file_name: Name of the file + :param bool download: If set to true always download attachment + :rtype: object + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if file_name is not None: + query_parameters['fileName'] = self._serialize.query('file_name', file_name, 'str') + if download is not None: + query_parameters['download'] = self._serialize.query('download', download, 'bool') + response = self._send(http_method='GET', + location_id='e07b5fa4-1499-494d-a496-64b860fd64ff', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + accept_media_type='application/zip') + if "callback" in kwargs: + callback = kwargs["callback"] + else: + callback = None + return self._client.stream_download(response, callback=callback) + + def get_classification_nodes(self, project, ids, depth=None, error_policy=None): + """GetClassificationNodes. + Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project. + :param str project: Project ID or project name + :param [int] ids: Comma seperated integer classification nodes ids. It's not required, if you want root nodes. + :param int depth: Depth of children to fetch. + :param str error_policy: Flag to handle errors in getting some nodes. Possible options are Fail and Omit. + :rtype: [WorkItemClassificationNode] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if depth is not None: + query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') + if error_policy is not None: + query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') + response = self._send(http_method='GET', + location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) + + def get_root_nodes(self, project, depth=None): + """GetRootNodes. + Gets root classification nodes under the project. + :param str project: Project ID or project name + :param int depth: Depth of children to fetch. + :rtype: [WorkItemClassificationNode] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if depth is not None: + query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') + response = self._send(http_method='GET', + location_id='a70579d1-f53a-48ee-a5be-7be8659023b9', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemClassificationNode]', self._unwrap_collection(response)) + + def create_or_update_classification_node(self, posted_node, project, structure_group, path=None): + """CreateOrUpdateClassificationNode. + Create new or update an existing classification node. + :param :class:` ` posted_node: Node to create or update. + :param str project: Project ID or project name + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if structure_group is not None: + route_values['structureGroup'] = self._serialize.url('structure_group', structure_group, 'TreeStructureGroup') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + content = self._serialize.body(posted_node, 'WorkItemClassificationNode') + response = self._send(http_method='POST', + location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WorkItemClassificationNode', response) + + def delete_classification_node(self, project, structure_group, path=None, reclassify_id=None): + """DeleteClassificationNode. + Delete an existing classification node. + :param str project: Project ID or project name + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :param int reclassify_id: Id of the target classification node for reclassification. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if structure_group is not None: + route_values['structureGroup'] = self._serialize.url('structure_group', structure_group, 'TreeStructureGroup') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + query_parameters = {} + if reclassify_id is not None: + query_parameters['$reclassifyId'] = self._serialize.query('reclassify_id', reclassify_id, 'int') + self._send(http_method='DELETE', + location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + + def get_classification_node(self, project, structure_group, path=None, depth=None): + """GetClassificationNode. + Gets the classification node for a given node path. + :param str project: Project ID or project name + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :param int depth: Depth of children to fetch. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if structure_group is not None: + route_values['structureGroup'] = self._serialize.url('structure_group', structure_group, 'TreeStructureGroup') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + query_parameters = {} + if depth is not None: + query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') + response = self._send(http_method='GET', + location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemClassificationNode', response) + + def update_classification_node(self, posted_node, project, structure_group, path=None): + """UpdateClassificationNode. + Update an existing classification node. + :param :class:` ` posted_node: Node to create or update. + :param str project: Project ID or project name + :param TreeStructureGroup structure_group: Structure group of the classification node, area or iteration. + :param str path: Path of the classification node. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if structure_group is not None: + route_values['structureGroup'] = self._serialize.url('structure_group', structure_group, 'TreeStructureGroup') + if path is not None: + route_values['path'] = self._serialize.url('path', path, 'str') + content = self._serialize.body(posted_node, 'WorkItemClassificationNode') + response = self._send(http_method='PATCH', + location_id='5a172953-1b41-49d3-840a-33f79c3ce89f', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WorkItemClassificationNode', response) + + def create_field(self, work_item_field, project=None): + """CreateField. + Create a new field. + :param :class:` ` work_item_field: New field definition + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_field, 'WorkItemField') + response = self._send(http_method='POST', + location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WorkItemField', response) + + def delete_field(self, field_name_or_ref_name, project=None): + """DeleteField. + Deletes the field. + :param str field_name_or_ref_name: Field simple name or reference name + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if field_name_or_ref_name is not None: + route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') + self._send(http_method='DELETE', + location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', + version='5.0', + route_values=route_values) + + def get_field(self, field_name_or_ref_name, project=None): + """GetField. + Gets information on a specific field. + :param str field_name_or_ref_name: Field simple name or reference name + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if field_name_or_ref_name is not None: + route_values['fieldNameOrRefName'] = self._serialize.url('field_name_or_ref_name', field_name_or_ref_name, 'str') + response = self._send(http_method='GET', + location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', + version='5.0', + route_values=route_values) + return self._deserialize('WorkItemField', response) + + def get_fields(self, project=None, expand=None): + """GetFields. + Returns information for all fields. + :param str project: Project ID or project name + :param str expand: Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. + :rtype: [WorkItemField] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemField]', self._unwrap_collection(response)) + + def create_query(self, posted_query, project, query): + """CreateQuery. + Creates a query, or moves a query. + :param :class:` ` posted_query: The query to create. + :param str project: Project ID or project name + :param str query: The parent id or path under which the query is to be created. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if query is not None: + route_values['query'] = self._serialize.url('query', query, 'str') + content = self._serialize.body(posted_query, 'QueryHierarchyItem') + response = self._send(http_method='POST', + location_id='a67d190c-c41f-424b-814d-0e906f659301', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('QueryHierarchyItem', response) + + def delete_query(self, project, query): + """DeleteQuery. + Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder. + :param str project: Project ID or project name + :param str query: ID or path of the query or folder to delete. + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if query is not None: + route_values['query'] = self._serialize.url('query', query, 'str') + self._send(http_method='DELETE', + location_id='a67d190c-c41f-424b-814d-0e906f659301', + version='5.0', + route_values=route_values) + + def get_queries(self, project, expand=None, depth=None, include_deleted=None): + """GetQueries. + Gets the root queries and their children + :param str project: Project ID or project name + :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. + :param int depth: In the folder of queries, return child queries and folders to this depth. + :param bool include_deleted: Include deleted queries and folders + :rtype: [QueryHierarchyItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if depth is not None: + query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') + if include_deleted is not None: + query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + response = self._send(http_method='GET', + location_id='a67d190c-c41f-424b-814d-0e906f659301', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) + + def get_query(self, project, query, expand=None, depth=None, include_deleted=None): + """GetQuery. + Retrieves an individual query and its children + :param str project: Project ID or project name + :param str query: ID or path of the query. + :param str expand: Include the query string (wiql), clauses, query result columns, and sort options in the results. + :param int depth: In the folder of queries, return child queries and folders to this depth. + :param bool include_deleted: Include deleted queries and folders + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if query is not None: + route_values['query'] = self._serialize.url('query', query, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if depth is not None: + query_parameters['$depth'] = self._serialize.query('depth', depth, 'int') + if include_deleted is not None: + query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + response = self._send(http_method='GET', + location_id='a67d190c-c41f-424b-814d-0e906f659301', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('QueryHierarchyItem', response) + + def search_queries(self, project, filter, top=None, expand=None, include_deleted=None): + """SearchQueries. + Searches all queries the user has access to in the current project + :param str project: Project ID or project name + :param str filter: The text to filter the queries with. + :param int top: The number of queries to return (Default is 50 and maximum is 200). + :param str expand: + :param bool include_deleted: Include deleted queries and folders + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query('filter', filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if include_deleted is not None: + query_parameters['$includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + response = self._send(http_method='GET', + location_id='a67d190c-c41f-424b-814d-0e906f659301', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('QueryHierarchyItemsResult', response) + + def update_query(self, query_update, project, query, undelete_descendants=None): + """UpdateQuery. + Update a query or a folder. This allows you to update, rename and move queries and folders. + :param :class:` ` query_update: The query to update. + :param str project: Project ID or project name + :param str query: The ID or path for the query to update. + :param bool undelete_descendants: Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if query is not None: + route_values['query'] = self._serialize.url('query', query, 'str') + query_parameters = {} + if undelete_descendants is not None: + query_parameters['$undeleteDescendants'] = self._serialize.query('undelete_descendants', undelete_descendants, 'bool') + content = self._serialize.body(query_update, 'QueryHierarchyItem') + response = self._send(http_method='PATCH', + location_id='a67d190c-c41f-424b-814d-0e906f659301', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('QueryHierarchyItem', response) + + def get_queries_batch(self, query_get_request, project): + """GetQueriesBatch. + Gets a list of queries by ids (Maximum 1000) + :param :class:` ` query_get_request: + :param str project: Project ID or project name + :rtype: [QueryHierarchyItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(query_get_request, 'QueryBatchGetRequest') + response = self._send(http_method='POST', + location_id='549816f9-09b0-4e75-9e81-01fbfcd07426', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[QueryHierarchyItem]', self._unwrap_collection(response)) + + def destroy_work_item(self, id, project=None): + """DestroyWorkItem. + Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. + :param int id: ID of the work item to be destroyed permanently + :param str project: Project ID or project name + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + self._send(http_method='DELETE', + location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', + version='5.0', + route_values=route_values) + + def get_deleted_work_item(self, id, project=None): + """GetDeletedWorkItem. + Gets a deleted work item from Recycle Bin. + :param int id: ID of the work item to be returned + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + response = self._send(http_method='GET', + location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', + version='5.0', + route_values=route_values) + return self._deserialize('WorkItemDelete', response) + + def get_deleted_work_items(self, ids, project=None): + """GetDeletedWorkItems. + Gets the work items from the recycle bin, whose IDs have been specified in the parameters + :param [int] ids: Comma separated list of IDs of the deleted work items to be returned + :param str project: Project ID or project name + :rtype: [WorkItemDeleteReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + response = self._send(http_method='GET', + location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemDeleteReference]', self._unwrap_collection(response)) + + def get_deleted_work_item_shallow_references(self, project=None): + """GetDeletedWorkItemShallowReferences. + Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. + :param str project: Project ID or project name + :rtype: [WorkItemDeleteShallowReference] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', + version='5.0', + route_values=route_values) + return self._deserialize('[WorkItemDeleteShallowReference]', self._unwrap_collection(response)) + + def restore_work_item(self, payload, id, project=None): + """RestoreWorkItem. + Restores the deleted work item from Recycle Bin. + :param :class:` ` payload: Paylod with instructions to update the IsDeleted flag to false + :param int id: ID of the work item to be restored + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + content = self._serialize.body(payload, 'WorkItemDeleteUpdate') + response = self._send(http_method='PATCH', + location_id='b70d8d39-926c-465e-b927-b1bf0e5ca0e0', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('WorkItemDelete', response) + + def get_revision(self, id, revision_number, project=None, expand=None): + """GetRevision. + Returns a fully hydrated work item for the requested revision + :param int id: + :param int revision_number: + :param str project: Project ID or project name + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + if revision_number is not None: + route_values['revisionNumber'] = self._serialize.url('revision_number', revision_number, 'int') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItem', response) + + def get_revisions(self, id, project=None, top=None, skip=None, expand=None): + """GetRevisions. + Returns the list of fully hydrated work item revisions, paged. + :param int id: + :param str project: Project ID or project name + :param int top: + :param int skip: + :param str expand: + :rtype: [WorkItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='a00c85a5-80fa-4565-99c3-bcd2181434bb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) + + def get_update(self, id, update_number, project=None): + """GetUpdate. + Returns a single update for a work item + :param int id: + :param int update_number: + :param str project: Project ID or project name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + if update_number is not None: + route_values['updateNumber'] = self._serialize.url('update_number', update_number, 'int') + response = self._send(http_method='GET', + location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', + version='5.0', + route_values=route_values) + return self._deserialize('WorkItemUpdate', response) + + def get_updates(self, id, project=None, top=None, skip=None): + """GetUpdates. + Returns a the deltas between work item revisions + :param int id: + :param str project: Project ID or project name + :param int top: + :param int skip: + :rtype: [WorkItemUpdate] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + if skip is not None: + query_parameters['$skip'] = self._serialize.query('skip', skip, 'int') + response = self._send(http_method='GET', + location_id='6570bf97-d02c-4a91-8d93-3abe9895b1a9', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemUpdate]', self._unwrap_collection(response)) + + def query_by_wiql(self, wiql, team_context=None, time_precision=None, top=None): + """QueryByWiql. + Gets the results of the query given its WIQL. + :param :class:` ` wiql: The query containing the WIQL. + :param :class:` ` team_context: The team context for the operation + :param bool time_precision: Whether or not to use time precision. + :param int top: The max number of results to return. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + query_parameters = {} + if time_precision is not None: + query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + content = self._serialize.body(wiql, 'Wiql') + response = self._send(http_method='POST', + location_id='1a9c53f7-f243-4447-b110-35ef023636e4', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('WorkItemQueryResult', response) + + def get_query_result_count(self, id, team_context=None, time_precision=None, top=None): + """GetQueryResultCount. + Gets the results of the query given the query ID. + :param str id: The query ID. + :param :class:` ` team_context: The team context for the operation + :param bool time_precision: Whether or not to use time precision. + :param int top: The max number of results to return. + :rtype: int + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if time_precision is not None: + query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='HEAD', + location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('int', response) + + def query_by_id(self, id, team_context=None, time_precision=None, top=None): + """QueryById. + Gets the results of the query given the query ID. + :param str id: The query ID. + :param :class:` ` team_context: The team context for the operation + :param bool time_precision: Whether or not to use time precision. + :param int top: The max number of results to return. + :rtype: :class:` ` + """ + project = None + team = None + if team_context is not None: + if team_context.project_id: + project = team_context.project_id + else: + project = team_context.project + if team_context.team_id: + team = team_context.team_id + else: + team = team_context.team + + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'string') + if team is not None: + route_values['team'] = self._serialize.url('team', team, 'string') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'str') + query_parameters = {} + if time_precision is not None: + query_parameters['timePrecision'] = self._serialize.query('time_precision', time_precision, 'bool') + if top is not None: + query_parameters['$top'] = self._serialize.query('top', top, 'int') + response = self._send(http_method='GET', + location_id='a02355f5-5f8a-4671-8e32-369d23aac83d', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemQueryResult', response) + + def get_reporting_links_by_link_type(self, project=None, link_types=None, types=None, continuation_token=None, start_date_time=None): + """GetReportingLinksByLinkType. + Get a batch of work item links + :param str project: Project ID or project name + :param [str] link_types: A list of types to filter the results to specific link types. Omit this parameter to get work item links of all link types. + :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. + :param str continuation_token: Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. + :param datetime start_date_time: Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if link_types is not None: + link_types = ",".join(link_types) + query_parameters['linkTypes'] = self._serialize.query('link_types', link_types, 'str') + if types is not None: + types = ",".join(types) + query_parameters['types'] = self._serialize.query('types', types, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if start_date_time is not None: + query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') + response = self._send(http_method='GET', + location_id='b5b5b6d0-0308-40a1-b3f4-b9bb3c66878f', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReportingWorkItemLinksBatch', response) + + def get_relation_type(self, relation): + """GetRelationType. + Gets the work item relation type definition. + :param str relation: The relation name + :rtype: :class:` ` + """ + route_values = {} + if relation is not None: + route_values['relation'] = self._serialize.url('relation', relation, 'str') + response = self._send(http_method='GET', + location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', + version='5.0', + route_values=route_values) + return self._deserialize('WorkItemRelationType', response) + + def get_relation_types(self): + """GetRelationTypes. + Gets the work item relation types. + :rtype: [WorkItemRelationType] + """ + response = self._send(http_method='GET', + location_id='f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165', + version='5.0') + return self._deserialize('[WorkItemRelationType]', self._unwrap_collection(response)) + + def read_reporting_revisions_get(self, project=None, fields=None, types=None, continuation_token=None, start_date_time=None, include_identity_ref=None, include_deleted=None, include_tag_ref=None, include_latest_only=None, expand=None, include_discussion_changes_only=None, max_page_size=None): + """ReadReportingRevisionsGet. + Get a batch of work item revisions with the option of including deleted items + :param str project: Project ID or project name + :param [str] fields: A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. + :param [str] types: A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. + :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. + :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. + :param bool include_identity_ref: Return an identity reference instead of a string value for identity fields. + :param bool include_deleted: Specify if the deleted item should be returned. + :param bool include_tag_ref: Specify if the tag objects should be returned for System.Tags field. + :param bool include_latest_only: Return only the latest revisions of work items, skipping all historical revisions + :param str expand: Return all the fields in work item revisions, including long text fields which are not returned by default + :param bool include_discussion_changes_only: Return only the those revisions of work items, where only history field was changed + :param int max_page_size: The maximum number of results to return in this batch + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if fields is not None: + fields = ",".join(fields) + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + if types is not None: + types = ",".join(types) + query_parameters['types'] = self._serialize.query('types', types, 'str') + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if start_date_time is not None: + query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') + if include_identity_ref is not None: + query_parameters['includeIdentityRef'] = self._serialize.query('include_identity_ref', include_identity_ref, 'bool') + if include_deleted is not None: + query_parameters['includeDeleted'] = self._serialize.query('include_deleted', include_deleted, 'bool') + if include_tag_ref is not None: + query_parameters['includeTagRef'] = self._serialize.query('include_tag_ref', include_tag_ref, 'bool') + if include_latest_only is not None: + query_parameters['includeLatestOnly'] = self._serialize.query('include_latest_only', include_latest_only, 'bool') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if include_discussion_changes_only is not None: + query_parameters['includeDiscussionChangesOnly'] = self._serialize.query('include_discussion_changes_only', include_discussion_changes_only, 'bool') + if max_page_size is not None: + query_parameters['$maxPageSize'] = self._serialize.query('max_page_size', max_page_size, 'int') + response = self._send(http_method='GET', + location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('ReportingWorkItemRevisionsBatch', response) + + def read_reporting_revisions_post(self, filter, project=None, continuation_token=None, start_date_time=None, expand=None): + """ReadReportingRevisionsPost. + Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. + :param :class:` ` filter: An object that contains request settings: field filter, type filter, identity format + :param str project: Project ID or project name + :param str continuation_token: Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. + :param datetime start_date_time: Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. + :param str expand: + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if continuation_token is not None: + query_parameters['continuationToken'] = self._serialize.query('continuation_token', continuation_token, 'str') + if start_date_time is not None: + query_parameters['startDateTime'] = self._serialize.query('start_date_time', start_date_time, 'iso-8601') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + content = self._serialize.body(filter, 'ReportingWorkItemRevisionsFilter') + response = self._send(http_method='POST', + location_id='f828fe59-dd87-495d-a17c-7a8d6211ca6c', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content) + return self._deserialize('ReportingWorkItemRevisionsBatch', response) + + def create_work_item(self, document, project, type, validate_only=None, bypass_rules=None, suppress_notifications=None): + """CreateWorkItem. + Creates a single work item. + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the work item + :param str project: Project ID or project name + :param str type: The work item type of the work item to create + :param bool validate_only: Indicate if you only want to validate the changes without saving the work item + :param bool bypass_rules: Do not enforce the work item type rules on this update + :param bool suppress_notifications: Do not fire any notifications for this change + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if validate_only is not None: + query_parameters['validateOnly'] = self._serialize.query('validate_only', validate_only, 'bool') + if bypass_rules is not None: + query_parameters['bypassRules'] = self._serialize.query('bypass_rules', bypass_rules, 'bool') + if suppress_notifications is not None: + query_parameters['suppressNotifications'] = self._serialize.query('suppress_notifications', suppress_notifications, 'bool') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='POST', + location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('WorkItem', response) + + def get_work_item_template(self, project, type, fields=None, as_of=None, expand=None): + """GetWorkItemTemplate. + Returns a single work item from a template. + :param str project: Project ID or project name + :param str type: The work item type name + :param str fields: Comma-separated list of requested fields + :param datetime as_of: AsOf UTC date time string + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if fields is not None: + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + if as_of is not None: + query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='62d3d110-0047-428c-ad3c-4fe872c91c74', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItem', response) + + def delete_work_item(self, id, project=None, destroy=None): + """DeleteWorkItem. + Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. + :param int id: ID of the work item to be deleted + :param str project: Project ID or project name + :param bool destroy: Optional parameter, if set to true, the work item is deleted permanently + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if destroy is not None: + query_parameters['destroy'] = self._serialize.query('destroy', destroy, 'bool') + response = self._send(http_method='DELETE', + location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemDelete', response) + + def get_work_item(self, id, project=None, fields=None, as_of=None, expand=None): + """GetWorkItem. + Returns a single work item. + :param int id: The work item id + :param str project: Project ID or project name + :param [str] fields: Comma-separated list of requested fields + :param datetime as_of: AsOf UTC date time string + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if fields is not None: + fields = ",".join(fields) + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + if as_of is not None: + query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItem', response) + + def get_work_items(self, ids, project=None, fields=None, as_of=None, expand=None, error_policy=None): + """GetWorkItems. + Returns a list of work items (Maximum 200) + :param [int] ids: The comma-separated list of requested work item ids. (Maximum 200 ids allowed). + :param str project: Project ID or project name + :param [str] fields: Comma-separated list of requested fields + :param datetime as_of: AsOf UTC date time string + :param str expand: The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. + :param str error_policy: The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}. + :rtype: [WorkItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if ids is not None: + ids = ",".join(map(str, ids)) + query_parameters['ids'] = self._serialize.query('ids', ids, 'str') + if fields is not None: + fields = ",".join(fields) + query_parameters['fields'] = self._serialize.query('fields', fields, 'str') + if as_of is not None: + query_parameters['asOf'] = self._serialize.query('as_of', as_of, 'iso-8601') + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + if error_policy is not None: + query_parameters['errorPolicy'] = self._serialize.query('error_policy', error_policy, 'str') + response = self._send(http_method='GET', + location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) + + def update_work_item(self, document, id, project=None, validate_only=None, bypass_rules=None, suppress_notifications=None): + """UpdateWorkItem. + Updates a single work item. + :param :class:`<[JsonPatchOperation]> ` document: The JSON Patch document representing the update + :param int id: The id of the work item to update + :param str project: Project ID or project name + :param bool validate_only: Indicate if you only want to validate the changes without saving the work item + :param bool bypass_rules: Do not enforce the work item type rules on this update + :param bool suppress_notifications: Do not fire any notifications for this change + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if id is not None: + route_values['id'] = self._serialize.url('id', id, 'int') + query_parameters = {} + if validate_only is not None: + query_parameters['validateOnly'] = self._serialize.query('validate_only', validate_only, 'bool') + if bypass_rules is not None: + query_parameters['bypassRules'] = self._serialize.query('bypass_rules', bypass_rules, 'bool') + if suppress_notifications is not None: + query_parameters['suppressNotifications'] = self._serialize.query('suppress_notifications', suppress_notifications, 'bool') + content = self._serialize.body(document, '[JsonPatchOperation]') + response = self._send(http_method='PATCH', + location_id='72c7ddf8-2cdc-4f60-90cd-ab71c14a399b', + version='5.0', + route_values=route_values, + query_parameters=query_parameters, + content=content, + media_type='application/json-patch+json') + return self._deserialize('WorkItem', response) + + def get_work_items_batch(self, work_item_get_request, project=None): + """GetWorkItemsBatch. + Gets work items for a list of work item ids (Maximum 200) + :param :class:` ` work_item_get_request: + :param str project: Project ID or project name + :rtype: [WorkItem] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + content = self._serialize.body(work_item_get_request, 'WorkItemBatchGetRequest') + response = self._send(http_method='POST', + location_id='908509b6-4248-4475-a1cd-829139ba419f', + version='5.0', + route_values=route_values, + content=content) + return self._deserialize('[WorkItem]', self._unwrap_collection(response)) + + def get_work_item_type_categories(self, project): + """GetWorkItemTypeCategories. + Get all work item type categories. + :param str project: Project ID or project name + :rtype: [WorkItemTypeCategory] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', + version='5.0', + route_values=route_values) + return self._deserialize('[WorkItemTypeCategory]', self._unwrap_collection(response)) + + def get_work_item_type_category(self, project, category): + """GetWorkItemTypeCategory. + Get specific work item type category by name. + :param str project: Project ID or project name + :param str category: The category name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if category is not None: + route_values['category'] = self._serialize.url('category', category, 'str') + response = self._send(http_method='GET', + location_id='9b9f5734-36c8-415e-ba67-f83b45c31408', + version='5.0', + route_values=route_values) + return self._deserialize('WorkItemTypeCategory', response) + + def get_work_item_type(self, project, type): + """GetWorkItemType. + Returns a work item type definition. + :param str project: Project ID or project name + :param str type: Work item type name + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + response = self._send(http_method='GET', + location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', + version='5.0', + route_values=route_values) + return self._deserialize('WorkItemType', response) + + def get_work_item_types(self, project): + """GetWorkItemTypes. + Returns the list of work item types + :param str project: Project ID or project name + :rtype: [WorkItemType] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + response = self._send(http_method='GET', + location_id='7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa', + version='5.0', + route_values=route_values) + return self._deserialize('[WorkItemType]', self._unwrap_collection(response)) + + def get_work_item_type_fields_with_references(self, project, type, expand=None): + """GetWorkItemTypeFieldsWithReferences. + Get a list of fields for a work item type with detailed references. + :param str project: Project ID or project name + :param str type: Work item type. + :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. + :rtype: [WorkItemTypeFieldWithReferences] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[WorkItemTypeFieldWithReferences]', self._unwrap_collection(response)) + + def get_work_item_type_field_with_references(self, project, type, field, expand=None): + """GetWorkItemTypeFieldWithReferences. + Get a field for a work item type with detailed references. + :param str project: Project ID or project name + :param str type: Work item type. + :param str field: + :param str expand: Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. + :rtype: :class:` ` + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + if type is not None: + route_values['type'] = self._serialize.url('type', type, 'str') + if field is not None: + route_values['field'] = self._serialize.url('field', field, 'str') + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query('expand', expand, 'str') + response = self._send(http_method='GET', + location_id='bd293ce5-3d25-4192-8e67-e8092e879efb', + version='5.0', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('WorkItemTypeFieldWithReferences', response) + diff --git a/azure-devops/azure/devops/v5_0/accounts/__init__.py b/azure-devops/azure/devops/v5_0/accounts/__init__.py index b98e8401..7b1322e4 100644 --- a/azure-devops/azure/devops/v5_0/accounts/__init__.py +++ b/azure-devops/azure/devops/v5_0/accounts/__init__.py @@ -7,9 +7,11 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .accounts_client import AccountsClient __all__ = [ 'Account', 'AccountCreateInfoInternal', 'AccountPreferencesInternal', + 'AccountsClient' ] diff --git a/azure-devops/azure/devops/v5_0/boards/__init__.py b/azure-devops/azure/devops/v5_0/boards/__init__.py index 344c3f44..470629c6 100644 --- a/azure-devops/azure/devops/v5_0/boards/__init__.py +++ b/azure-devops/azure/devops/v5_0/boards/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .boards_client import BoardsClient __all__ = [ 'Board', @@ -35,4 +36,5 @@ 'ReferenceLinks', 'UpdateBoard', 'UpdateBoardItem', + 'BoardsClient' ] diff --git a/azure-devops/azure/devops/v5_0/build/__init__.py b/azure-devops/azure/devops/v5_0/build/__init__.py index 84f76767..769eb009 100644 --- a/azure-devops/azure/devops/v5_0/build/__init__.py +++ b/azure-devops/azure/devops/v5_0/build/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .build_client import BuildClient __all__ = [ 'AgentPoolQueue', @@ -84,4 +85,5 @@ 'VariableGroupReference', 'WebApiConnectedServiceRef', 'XamlBuildControllerReference', + 'BuildClient' ] diff --git a/azure-devops/azure/devops/v5_0/client_trace/__init__.py b/azure-devops/azure/devops/v5_0/client_trace/__init__.py index 2e317dfb..c1bc03a3 100644 --- a/azure-devops/azure/devops/v5_0/client_trace/__init__.py +++ b/azure-devops/azure/devops/v5_0/client_trace/__init__.py @@ -7,7 +7,9 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .client_trace_client import ClientTraceClient __all__ = [ 'ClientTraceEvent', + 'ClientTraceClient' ] diff --git a/azure-devops/azure/devops/v5_0/cloud_load_test/__init__.py b/azure-devops/azure/devops/v5_0/cloud_load_test/__init__.py index e38f6c3c..4126b16d 100644 --- a/azure-devops/azure/devops/v5_0/cloud_load_test/__init__.py +++ b/azure-devops/azure/devops/v5_0/cloud_load_test/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .cloud_load_test_client import CloudLoadTestClient __all__ = [ 'AgentGroup', @@ -57,4 +58,5 @@ 'WebApiTestMachine', 'WebApiUserLoadTestMachineInput', 'WebInstanceSummaryData', + 'CloudLoadTestClient' ] diff --git a/azure-devops/azure/devops/v5_0/contributions/__init__.py b/azure-devops/azure/devops/v5_0/contributions/__init__.py index 7fc982c9..e8b6c6c3 100644 --- a/azure-devops/azure/devops/v5_0/contributions/__init__.py +++ b/azure-devops/azure/devops/v5_0/contributions/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .contributions_client import ContributionsClient __all__ = [ 'ClientContribution', @@ -34,4 +35,5 @@ 'InstalledExtensionStateIssue', 'LicensingOverride', 'ResolvedDataProvider', + 'ContributionsClient' ] diff --git a/azure-devops/azure/devops/v5_0/core/__init__.py b/azure-devops/azure/devops/v5_0/core/__init__.py index a1b60062..9eb5e49b 100644 --- a/azure-devops/azure/devops/v5_0/core/__init__.py +++ b/azure-devops/azure/devops/v5_0/core/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .core_client import CoreClient __all__ = [ 'GraphSubjectBase', @@ -32,4 +33,5 @@ 'WebApiConnectedServiceRef', 'WebApiTeam', 'WebApiTeamRef', + 'CoreClient' ] diff --git a/azure-devops/azure/devops/v5_0/customer_intelligence/__init__.py b/azure-devops/azure/devops/v5_0/customer_intelligence/__init__.py index 97323297..f08358c6 100644 --- a/azure-devops/azure/devops/v5_0/customer_intelligence/__init__.py +++ b/azure-devops/azure/devops/v5_0/customer_intelligence/__init__.py @@ -7,7 +7,9 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .customer_intelligence_client import CustomerIntelligenceClient __all__ = [ 'CustomerIntelligenceEvent', + 'CustomerIntelligenceClient' ] diff --git a/azure-devops/azure/devops/v5_0/dashboard/__init__.py b/azure-devops/azure/devops/v5_0/dashboard/__init__.py index f031af8a..1539910c 100644 --- a/azure-devops/azure/devops/v5_0/dashboard/__init__.py +++ b/azure-devops/azure/devops/v5_0/dashboard/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .dashboard_client import DashboardClient __all__ = [ 'Dashboard', @@ -26,4 +27,5 @@ 'WidgetSize', 'WidgetsVersionedList', 'WidgetTypesResponse', + 'DashboardClient' ] diff --git a/azure-devops/azure/devops/v5_0/extension_management/__init__.py b/azure-devops/azure/devops/v5_0/extension_management/__init__.py index 73bd8e9a..56614078 100644 --- a/azure-devops/azure/devops/v5_0/extension_management/__init__.py +++ b/azure-devops/azure/devops/v5_0/extension_management/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .extension_management_client import ExtensionManagementClient __all__ = [ 'AcquisitionOperation', @@ -47,4 +48,5 @@ 'ReferenceLinks', 'RequestedExtension', 'UserExtensionPolicy', + 'ExtensionManagementClient' ] diff --git a/azure-devops/azure/devops/v5_0/feature_availability/__init__.py b/azure-devops/azure/devops/v5_0/feature_availability/__init__.py index e39f1806..d2d7dbd7 100644 --- a/azure-devops/azure/devops/v5_0/feature_availability/__init__.py +++ b/azure-devops/azure/devops/v5_0/feature_availability/__init__.py @@ -7,8 +7,10 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .feature_availability_client import FeatureAvailabilityClient __all__ = [ 'FeatureFlag', 'FeatureFlagPatch', + 'FeatureAvailabilityClient' ] diff --git a/azure-devops/azure/devops/v5_0/feature_management/__init__.py b/azure-devops/azure/devops/v5_0/feature_management/__init__.py index 732260e9..43a3bcca 100644 --- a/azure-devops/azure/devops/v5_0/feature_management/__init__.py +++ b/azure-devops/azure/devops/v5_0/feature_management/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .feature_management_client import FeatureManagementClient __all__ = [ 'ContributedFeature', @@ -17,4 +18,5 @@ 'ContributedFeatureStateQuery', 'ContributedFeatureValueRule', 'ReferenceLinks', + 'FeatureManagementClient' ] diff --git a/azure-devops/azure/devops/v5_0/feed/__init__.py b/azure-devops/azure/devops/v5_0/feed/__init__.py index d3278427..04328f17 100644 --- a/azure-devops/azure/devops/v5_0/feed/__init__.py +++ b/azure-devops/azure/devops/v5_0/feed/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .feed_client import FeedClient __all__ = [ 'Feed', @@ -39,4 +40,5 @@ 'RecycleBinPackageVersion', 'ReferenceLinks', 'UpstreamSource', + 'FeedClient' ] diff --git a/azure-devops/azure/devops/v5_0/feed_token/__init__.py b/azure-devops/azure/devops/v5_0/feed_token/__init__.py index 02c32760..ed4520cd 100644 --- a/azure-devops/azure/devops/v5_0/feed_token/__init__.py +++ b/azure-devops/azure/devops/v5_0/feed_token/__init__.py @@ -6,6 +6,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .feed_token_client import FeedTokenClient __all__ = [ + 'FeedTokenClient' ] diff --git a/azure-devops/azure/devops/v5_0/file_container/__init__.py b/azure-devops/azure/devops/v5_0/file_container/__init__.py index ad599954..bcd8e50f 100644 --- a/azure-devops/azure/devops/v5_0/file_container/__init__.py +++ b/azure-devops/azure/devops/v5_0/file_container/__init__.py @@ -7,8 +7,10 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .file_container_client import FileContainerClient __all__ = [ 'FileContainer', 'FileContainerItem', + 'FileContainerClient' ] diff --git a/azure-devops/azure/devops/v5_0/gallery/__init__.py b/azure-devops/azure/devops/v5_0/gallery/__init__.py index 2f550038..90458765 100644 --- a/azure-devops/azure/devops/v5_0/gallery/__init__.py +++ b/azure-devops/azure/devops/v5_0/gallery/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .gallery_client import GalleryClient __all__ = [ 'AcquisitionOperation', @@ -68,4 +69,5 @@ 'UnpackagedExtensionData', 'UserIdentityRef', 'UserReportedConcern', + 'GalleryClient' ] diff --git a/azure-devops/azure/devops/v5_0/git/__init__.py b/azure-devops/azure/devops/v5_0/git/__init__.py index 4190acf2..1423991a 100644 --- a/azure-devops/azure/devops/v5_0/git/__init__.py +++ b/azure-devops/azure/devops/v5_0/git/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .git_client import GitClient __all__ = [ 'Attachment', @@ -116,4 +117,5 @@ 'VstsInfo', 'WebApiCreateTagRequestData', 'WebApiTagDefinition', + 'GitClient' ] diff --git a/azure-devops/azure/devops/v5_0/git/git_client.py b/azure-devops/azure/devops/v5_0/git/git_client.py index 83c449ca..c456406a 100644 --- a/azure-devops/azure/devops/v5_0/git/git_client.py +++ b/azure-devops/azure/devops/v5_0/git/git_client.py @@ -1,10 +1,4 @@ # coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - from msrest.universal_http import ClientRequest from .git_client_base import GitClientBase diff --git a/azure-devops/azure/devops/v5_0/graph/__init__.py b/azure-devops/azure/devops/v5_0/graph/__init__.py index 3af78ec0..29e4aed7 100644 --- a/azure-devops/azure/devops/v5_0/graph/__init__.py +++ b/azure-devops/azure/devops/v5_0/graph/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .graph_client import GraphClient __all__ = [ 'GraphCachePolicies', @@ -33,4 +34,5 @@ 'PagedGraphGroups', 'PagedGraphUsers', 'ReferenceLinks', + 'GraphClient' ] diff --git a/azure-devops/azure/devops/v5_0/identity/__init__.py b/azure-devops/azure/devops/v5_0/identity/__init__.py index 5c37a45a..f4513395 100644 --- a/azure-devops/azure/devops/v5_0/identity/__init__.py +++ b/azure-devops/azure/devops/v5_0/identity/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .identity_client import IdentityClient __all__ = [ 'AccessTokenResult', @@ -28,4 +29,5 @@ 'RefreshTokenGrant', 'SwapIdentityInfo', 'TenantInfo', + 'IdentityClient' ] diff --git a/azure-devops/azure/devops/v5_0/licensing/__init__.py b/azure-devops/azure/devops/v5_0/licensing/__init__.py index bd0af680..e0460d1d 100644 --- a/azure-devops/azure/devops/v5_0/licensing/__init__.py +++ b/azure-devops/azure/devops/v5_0/licensing/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .licensing_client import LicensingClient __all__ = [ 'AccountEntitlement', @@ -27,4 +28,5 @@ 'License', 'MsdnEntitlement', 'ReferenceLinks', + 'LicensingClient' ] diff --git a/azure-devops/azure/devops/v5_0/location/__init__.py b/azure-devops/azure/devops/v5_0/location/__init__.py index f91eb827..37761f5d 100644 --- a/azure-devops/azure/devops/v5_0/location/__init__.py +++ b/azure-devops/azure/devops/v5_0/location/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .location_client import LocationClient __all__ = [ 'AccessMapping', @@ -17,4 +18,5 @@ 'LocationServiceData', 'ResourceAreaInfo', 'ServiceDefinition', + 'LocationClient' ] diff --git a/azure-devops/azure/devops/v5_0/maven/__init__.py b/azure-devops/azure/devops/v5_0/maven/__init__.py index b1592973..f12bf866 100644 --- a/azure-devops/azure/devops/v5_0/maven/__init__.py +++ b/azure-devops/azure/devops/v5_0/maven/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .maven_client import MavenClient __all__ = [ 'BatchOperationData', @@ -37,4 +38,5 @@ 'PluginConfiguration', 'ReferenceLink', 'ReferenceLinks', + 'MavenClient' ] diff --git a/azure-devops/azure/devops/v5_0/member_entitlement_management/__init__.py b/azure-devops/azure/devops/v5_0/member_entitlement_management/__init__.py index 4b768491..ebe2a1f5 100644 --- a/azure-devops/azure/devops/v5_0/member_entitlement_management/__init__.py +++ b/azure-devops/azure/devops/v5_0/member_entitlement_management/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .member_entitlement_management_client import MemberEntitlementManagementClient __all__ = [ 'AccessLevel', @@ -46,4 +47,5 @@ 'UserEntitlementsPostResponse', 'UserEntitlementsResponseBase', 'UsersSummary', + 'MemberEntitlementManagementClient' ] diff --git a/azure-devops/azure/devops/v5_0/notification/__init__.py b/azure-devops/azure/devops/v5_0/notification/__init__.py index b616f6fb..df6f9834 100644 --- a/azure-devops/azure/devops/v5_0/notification/__init__.py +++ b/azure-devops/azure/devops/v5_0/notification/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .notification_client import NotificationClient __all__ = [ 'ArtifactFilter', @@ -71,4 +72,5 @@ 'UpdateSubscripitonTracingParameters', 'ValueDefinition', 'VssNotificationEvent', + 'NotificationClient' ] diff --git a/azure-devops/azure/devops/v5_0/npm/__init__.py b/azure-devops/azure/devops/v5_0/npm/__init__.py index c51d5fcb..cd547577 100644 --- a/azure-devops/azure/devops/v5_0/npm/__init__.py +++ b/azure-devops/azure/devops/v5_0/npm/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .npm_client import NpmClient __all__ = [ 'BatchDeprecateData', @@ -20,4 +21,5 @@ 'PackageVersionDetails', 'ReferenceLinks', 'UpstreamSourceInfo', + 'NpmClient' ] diff --git a/azure-devops/azure/devops/v5_0/nuGet/__init__.py b/azure-devops/azure/devops/v5_0/nuGet/__init__.py index 3361f2be..06b1d983 100644 --- a/azure-devops/azure/devops/v5_0/nuGet/__init__.py +++ b/azure-devops/azure/devops/v5_0/nuGet/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .nuget_client import NuGetClient __all__ = [ 'BatchListData', @@ -20,4 +21,5 @@ 'PackageVersionDetails', 'ReferenceLinks', 'UpstreamSourceInfo', + 'NuGetClient' ] diff --git a/azure-devops/azure/devops/v5_0/operations/__init__.py b/azure-devops/azure/devops/v5_0/operations/__init__.py index 6bc40b46..cd7611eb 100644 --- a/azure-devops/azure/devops/v5_0/operations/__init__.py +++ b/azure-devops/azure/devops/v5_0/operations/__init__.py @@ -7,10 +7,12 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .operations_client import OperationsClient __all__ = [ 'Operation', 'OperationReference', 'OperationResultReference', 'ReferenceLinks', + 'OperationsClient' ] diff --git a/azure-devops/azure/devops/v5_0/policy/__init__.py b/azure-devops/azure/devops/v5_0/policy/__init__.py index cbcfed09..1279c3e8 100644 --- a/azure-devops/azure/devops/v5_0/policy/__init__.py +++ b/azure-devops/azure/devops/v5_0/policy/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .policy_client import PolicyClient __all__ = [ 'GraphSubjectBase', @@ -18,4 +19,5 @@ 'PolicyTypeRef', 'ReferenceLinks', 'VersionedPolicyConfigurationRef', + 'PolicyClient' ] diff --git a/azure-devops/azure/devops/v5_0/profile/__init__.py b/azure-devops/azure/devops/v5_0/profile/__init__.py index 2f7e2674..02cf5dbf 100644 --- a/azure-devops/azure/devops/v5_0/profile/__init__.py +++ b/azure-devops/azure/devops/v5_0/profile/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .profile_client import ProfileClient __all__ = [ 'AttributeDescriptor', @@ -21,4 +22,5 @@ 'ProfileRegion', 'ProfileRegions', 'RemoteProfile', + 'ProfileClient' ] diff --git a/azure-devops/azure/devops/v5_0/project_analysis/__init__.py b/azure-devops/azure/devops/v5_0/project_analysis/__init__.py index e3b23962..a38ea5dc 100644 --- a/azure-devops/azure/devops/v5_0/project_analysis/__init__.py +++ b/azure-devops/azure/devops/v5_0/project_analysis/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .project_analysis_client import ProjectAnalysisClient __all__ = [ 'CodeChangeTrendItem', @@ -16,4 +17,5 @@ 'ProjectLanguageAnalytics', 'RepositoryActivityMetrics', 'RepositoryLanguageAnalytics', + 'ProjectAnalysisClient' ] diff --git a/azure-devops/azure/devops/v5_0/provenance/__init__.py b/azure-devops/azure/devops/v5_0/provenance/__init__.py index 70c7a03e..47a6a388 100644 --- a/azure-devops/azure/devops/v5_0/provenance/__init__.py +++ b/azure-devops/azure/devops/v5_0/provenance/__init__.py @@ -7,8 +7,10 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .provenance_client import ProvenanceClient __all__ = [ 'SessionRequest', 'SessionResponse', + 'ProvenanceClient' ] diff --git a/azure-devops/azure/devops/v5_0/py_pi_api/__init__.py b/azure-devops/azure/devops/v5_0/py_pi_api/__init__.py index dd637cd0..2778b298 100644 --- a/azure-devops/azure/devops/v5_0/py_pi_api/__init__.py +++ b/azure-devops/azure/devops/v5_0/py_pi_api/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .py_pi_api_client import PyPiApiClient __all__ = [ 'BatchOperationData', @@ -18,4 +19,5 @@ 'PyPiPackageVersionDeletionState', 'PyPiRecycleBinPackageVersionDetails', 'ReferenceLinks', + 'PyPiApiClient' ] diff --git a/azure-devops/azure/devops/v5_0/release/__init__.py b/azure-devops/azure/devops/v5_0/release/__init__.py index 421074d5..598b068c 100644 --- a/azure-devops/azure/devops/v5_0/release/__init__.py +++ b/azure-devops/azure/devops/v5_0/release/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .release_client import ReleaseClient __all__ = [ 'AgentArtifactDefinition', @@ -104,4 +105,5 @@ 'VariableValue', 'WorkflowTask', 'WorkflowTaskReference', + 'ReleaseClient' ] diff --git a/azure-devops/azure/devops/v5_0/security/__init__.py b/azure-devops/azure/devops/v5_0/security/__init__.py index f3e359ef..6ddc7288 100644 --- a/azure-devops/azure/devops/v5_0/security/__init__.py +++ b/azure-devops/azure/devops/v5_0/security/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .security_client import SecurityClient __all__ = [ 'AccessControlEntry', @@ -17,4 +18,5 @@ 'PermissionEvaluation', 'PermissionEvaluationBatch', 'SecurityNamespaceDescription', + 'SecurityClient' ] diff --git a/azure-devops/azure/devops/v5_0/service_endpoint/__init__.py b/azure-devops/azure/devops/v5_0/service_endpoint/__init__.py index 1c8c7995..557fd322 100644 --- a/azure-devops/azure/devops/v5_0/service_endpoint/__init__.py +++ b/azure-devops/azure/devops/v5_0/service_endpoint/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .service_endpoint_client import ServiceEndpointClient __all__ = [ 'AuthenticationSchemeReference', @@ -48,4 +49,5 @@ 'ServiceEndpointRequest', 'ServiceEndpointRequestResult', 'ServiceEndpointType', + 'ServiceEndpointClient' ] diff --git a/azure-devops/azure/devops/v5_0/service_hooks/__init__.py b/azure-devops/azure/devops/v5_0/service_hooks/__init__.py index b2bae03f..3369b8d4 100644 --- a/azure-devops/azure/devops/v5_0/service_hooks/__init__.py +++ b/azure-devops/azure/devops/v5_0/service_hooks/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .service_hooks_client import ServiceHooksClient __all__ = [ 'Consumer', @@ -43,4 +44,5 @@ 'UpdateSubscripitonDiagnosticsParameters', 'UpdateSubscripitonTracingParameters', 'VersionedResource', + 'ServiceHooksClient' ] diff --git a/azure-devops/azure/devops/v5_0/settings/__init__.py b/azure-devops/azure/devops/v5_0/settings/__init__.py index 02c32760..3798fc24 100644 --- a/azure-devops/azure/devops/v5_0/settings/__init__.py +++ b/azure-devops/azure/devops/v5_0/settings/__init__.py @@ -6,6 +6,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .settings_client import SettingsClient __all__ = [ + 'SettingsClient' ] diff --git a/azure-devops/azure/devops/v5_0/symbol/__init__.py b/azure-devops/azure/devops/v5_0/symbol/__init__.py index 3f7c7180..fbe6726d 100644 --- a/azure-devops/azure/devops/v5_0/symbol/__init__.py +++ b/azure-devops/azure/devops/v5_0/symbol/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .symbol_client import SymbolClient __all__ = [ 'DebugEntry', @@ -16,4 +17,5 @@ 'JsonBlobIdentifierWithBlocks', 'Request', 'ResourceBase', + 'SymbolClient' ] diff --git a/azure-devops/azure/devops/v5_0/task/__init__.py b/azure-devops/azure/devops/v5_0/task/__init__.py index 8d56249f..fb5a183d 100644 --- a/azure-devops/azure/devops/v5_0/task/__init__.py +++ b/azure-devops/azure/devops/v5_0/task/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .task_client import TaskClient __all__ = [ 'Issue', @@ -33,4 +34,5 @@ 'TimelineRecordFeedLinesWrapper', 'TimelineReference', 'VariableValue', + 'TaskClient' ] diff --git a/azure-devops/azure/devops/v5_0/task_agent/__init__.py b/azure-devops/azure/devops/v5_0/task_agent/__init__.py index 36e6247e..af20dcaf 100644 --- a/azure-devops/azure/devops/v5_0/task_agent/__init__.py +++ b/azure-devops/azure/devops/v5_0/task_agent/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .task_agent_client import TaskAgentClient __all__ = [ 'AadOauthTokenRequest', @@ -126,4 +127,5 @@ 'VariableGroupParameters', 'VariableGroupProviderData', 'VariableValue', + 'TaskAgentClient' ] diff --git a/azure-devops/azure/devops/v5_0/test/__init__.py b/azure-devops/azure/devops/v5_0/test/__init__.py index 55f6e22d..0d1f9d9d 100644 --- a/azure-devops/azure/devops/v5_0/test/__init__.py +++ b/azure-devops/azure/devops/v5_0/test/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .test_client import TestClient __all__ = [ 'AggregatedDataForResultTrend', @@ -117,4 +118,5 @@ 'TestVariable', 'WorkItemReference', 'WorkItemToTestLinks', + 'TestClient' ] diff --git a/azure-devops/azure/devops/v5_0/tfvc/__init__.py b/azure-devops/azure/devops/v5_0/tfvc/__init__.py index 90e4d7c8..7f980828 100644 --- a/azure-devops/azure/devops/v5_0/tfvc/__init__.py +++ b/azure-devops/azure/devops/v5_0/tfvc/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .tfvc_client import TfvcClient __all__ = [ 'AssociatedWorkItem', @@ -48,4 +49,5 @@ 'TfvcVersionDescriptor', 'VersionControlProjectInfo', 'VstsInfo', + 'TfvcClient' ] diff --git a/azure-devops/azure/devops/v5_0/universal/__init__.py b/azure-devops/azure/devops/v5_0/universal/__init__.py index f72c98ee..5a9801e6 100644 --- a/azure-devops/azure/devops/v5_0/universal/__init__.py +++ b/azure-devops/azure/devops/v5_0/universal/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .upack_api_client import UPackApiClient __all__ = [ 'BatchOperationData', @@ -18,4 +19,5 @@ 'UPackPackagesBatchRequest', 'UPackPackageVersionDeletionState', 'UPackRecycleBinPackageVersionDetails', + 'UPackApiClient' ] diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/__init__.py b/azure-devops/azure/devops/v5_0/upack_packaging/__init__.py similarity index 90% rename from azure-devops/azure/devops/v5_0/uPack_packaging/__init__.py rename to azure-devops/azure/devops/v5_0/upack_packaging/__init__.py index a3f47c87..b1e72abc 100644 --- a/azure-devops/azure/devops/v5_0/uPack_packaging/__init__.py +++ b/azure-devops/azure/devops/v5_0/upack_packaging/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .upack_packaging_client import UPackPackagingClient __all__ = [ 'UPackLimitedPackageMetadata', @@ -14,4 +15,5 @@ 'UPackPackageMetadata', 'UPackPackagePushMetadata', 'UPackPackageVersionDeletionState', + 'UPackPackagingClient' ] diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/models.py b/azure-devops/azure/devops/v5_0/upack_packaging/models.py similarity index 100% rename from azure-devops/azure/devops/v5_0/uPack_packaging/models.py rename to azure-devops/azure/devops/v5_0/upack_packaging/models.py diff --git a/azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py b/azure-devops/azure/devops/v5_0/upack_packaging/upack_packaging_client.py similarity index 100% rename from azure-devops/azure/devops/v5_0/uPack_packaging/uPack_packaging_client.py rename to azure-devops/azure/devops/v5_0/upack_packaging/upack_packaging_client.py diff --git a/azure-devops/azure/devops/v5_0/wiki/__init__.py b/azure-devops/azure/devops/v5_0/wiki/__init__.py index 942041d3..5b12ad64 100644 --- a/azure-devops/azure/devops/v5_0/wiki/__init__.py +++ b/azure-devops/azure/devops/v5_0/wiki/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .wiki_client import WikiClient __all__ = [ 'GitRepository', @@ -25,4 +26,5 @@ 'WikiPageViewStats', 'WikiUpdateParameters', 'WikiV2', + 'WikiClient' ] diff --git a/azure-devops/azure/devops/v5_0/work/__init__.py b/azure-devops/azure/devops/v5_0/work/__init__.py index bbb09761..1ca0e71e 100644 --- a/azure-devops/azure/devops/v5_0/work/__init__.py +++ b/azure-devops/azure/devops/v5_0/work/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_client import WorkClient __all__ = [ 'Activity', @@ -74,4 +75,5 @@ 'WorkItemTrackingResourceReference', 'WorkItemTypeReference', 'WorkItemTypeStateInfo', + 'WorkClient' ] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking/__init__.py index e77af51a..bb84677d 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking/__init__.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_item_tracking_client import WorkItemTrackingClient __all__ = [ 'AccountMyWorkResult', @@ -79,4 +80,5 @@ 'WorkItemTypeTemplate', 'WorkItemTypeTemplateUpdateModel', 'WorkItemUpdate', + 'WorkItemTrackingClient' ] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process/__init__.py index 438d8053..a9e87fd4 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process/__init__.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_item_tracking_process_client import WorkItemTrackingProcessClient __all__ = [ 'AddProcessWorkItemTypeFieldRequest', @@ -52,4 +53,5 @@ 'WorkItemStateResultModel', 'WorkItemTypeBehavior', 'WorkItemTypeModel', + 'WorkItemTrackingProcessClient' ] diff --git a/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/__init__.py b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/__init__.py index 331bd213..5d045cd8 100644 --- a/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/__init__.py +++ b/azure-devops/azure/devops/v5_0/work_item_tracking_process_template/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_item_tracking_process_template_client import WorkItemTrackingProcessTemplateClient __all__ = [ 'AdminBehavior', @@ -15,4 +16,5 @@ 'ProcessImportResult', 'ProcessPromoteStatus', 'ValidationIssue', + 'WorkItemTrackingProcessTemplateClient' ] diff --git a/azure-devops/azure/devops/v5_1/accounts/__init__.py b/azure-devops/azure/devops/v5_1/accounts/__init__.py index b98e8401..7b1322e4 100644 --- a/azure-devops/azure/devops/v5_1/accounts/__init__.py +++ b/azure-devops/azure/devops/v5_1/accounts/__init__.py @@ -7,9 +7,11 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .accounts_client import AccountsClient __all__ = [ 'Account', 'AccountCreateInfoInternal', 'AccountPreferencesInternal', + 'AccountsClient' ] diff --git a/azure-devops/azure/devops/v5_1/build/__init__.py b/azure-devops/azure/devops/v5_1/build/__init__.py index 84f76767..769eb009 100644 --- a/azure-devops/azure/devops/v5_1/build/__init__.py +++ b/azure-devops/azure/devops/v5_1/build/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .build_client import BuildClient __all__ = [ 'AgentPoolQueue', @@ -84,4 +85,5 @@ 'VariableGroupReference', 'WebApiConnectedServiceRef', 'XamlBuildControllerReference', + 'BuildClient' ] diff --git a/azure-devops/azure/devops/v5_1/client_trace/__init__.py b/azure-devops/azure/devops/v5_1/client_trace/__init__.py index 2e317dfb..c1bc03a3 100644 --- a/azure-devops/azure/devops/v5_1/client_trace/__init__.py +++ b/azure-devops/azure/devops/v5_1/client_trace/__init__.py @@ -7,7 +7,9 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .client_trace_client import ClientTraceClient __all__ = [ 'ClientTraceEvent', + 'ClientTraceClient' ] diff --git a/azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py b/azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py index e38f6c3c..4126b16d 100644 --- a/azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py +++ b/azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .cloud_load_test_client import CloudLoadTestClient __all__ = [ 'AgentGroup', @@ -57,4 +58,5 @@ 'WebApiTestMachine', 'WebApiUserLoadTestMachineInput', 'WebInstanceSummaryData', + 'CloudLoadTestClient' ] diff --git a/azure-devops/azure/devops/v5_1/contributions/__init__.py b/azure-devops/azure/devops/v5_1/contributions/__init__.py index 7fc982c9..e8b6c6c3 100644 --- a/azure-devops/azure/devops/v5_1/contributions/__init__.py +++ b/azure-devops/azure/devops/v5_1/contributions/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .contributions_client import ContributionsClient __all__ = [ 'ClientContribution', @@ -34,4 +35,5 @@ 'InstalledExtensionStateIssue', 'LicensingOverride', 'ResolvedDataProvider', + 'ContributionsClient' ] diff --git a/azure-devops/azure/devops/v5_1/core/__init__.py b/azure-devops/azure/devops/v5_1/core/__init__.py index 0ec7daf4..39763403 100644 --- a/azure-devops/azure/devops/v5_1/core/__init__.py +++ b/azure-devops/azure/devops/v5_1/core/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .core_client import CoreClient __all__ = [ 'GraphSubjectBase', @@ -33,4 +34,5 @@ 'WebApiConnectedServiceRef', 'WebApiTeam', 'WebApiTeamRef', + 'CoreClient' ] diff --git a/azure-devops/azure/devops/v5_1/customer_intelligence/__init__.py b/azure-devops/azure/devops/v5_1/customer_intelligence/__init__.py index 97323297..f08358c6 100644 --- a/azure-devops/azure/devops/v5_1/customer_intelligence/__init__.py +++ b/azure-devops/azure/devops/v5_1/customer_intelligence/__init__.py @@ -7,7 +7,9 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .customer_intelligence_client import CustomerIntelligenceClient __all__ = [ 'CustomerIntelligenceEvent', + 'CustomerIntelligenceClient' ] diff --git a/azure-devops/azure/devops/v5_1/dashboard/__init__.py b/azure-devops/azure/devops/v5_1/dashboard/__init__.py index f031af8a..1539910c 100644 --- a/azure-devops/azure/devops/v5_1/dashboard/__init__.py +++ b/azure-devops/azure/devops/v5_1/dashboard/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .dashboard_client import DashboardClient __all__ = [ 'Dashboard', @@ -26,4 +27,5 @@ 'WidgetSize', 'WidgetsVersionedList', 'WidgetTypesResponse', + 'DashboardClient' ] diff --git a/azure-devops/azure/devops/v5_1/extension_management/__init__.py b/azure-devops/azure/devops/v5_1/extension_management/__init__.py index 73bd8e9a..56614078 100644 --- a/azure-devops/azure/devops/v5_1/extension_management/__init__.py +++ b/azure-devops/azure/devops/v5_1/extension_management/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .extension_management_client import ExtensionManagementClient __all__ = [ 'AcquisitionOperation', @@ -47,4 +48,5 @@ 'ReferenceLinks', 'RequestedExtension', 'UserExtensionPolicy', + 'ExtensionManagementClient' ] diff --git a/azure-devops/azure/devops/v5_1/feature_availability/__init__.py b/azure-devops/azure/devops/v5_1/feature_availability/__init__.py index e39f1806..d2d7dbd7 100644 --- a/azure-devops/azure/devops/v5_1/feature_availability/__init__.py +++ b/azure-devops/azure/devops/v5_1/feature_availability/__init__.py @@ -7,8 +7,10 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .feature_availability_client import FeatureAvailabilityClient __all__ = [ 'FeatureFlag', 'FeatureFlagPatch', + 'FeatureAvailabilityClient' ] diff --git a/azure-devops/azure/devops/v5_1/feature_management/__init__.py b/azure-devops/azure/devops/v5_1/feature_management/__init__.py index 732260e9..43a3bcca 100644 --- a/azure-devops/azure/devops/v5_1/feature_management/__init__.py +++ b/azure-devops/azure/devops/v5_1/feature_management/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .feature_management_client import FeatureManagementClient __all__ = [ 'ContributedFeature', @@ -17,4 +18,5 @@ 'ContributedFeatureStateQuery', 'ContributedFeatureValueRule', 'ReferenceLinks', + 'FeatureManagementClient' ] diff --git a/azure-devops/azure/devops/v5_1/feed/__init__.py b/azure-devops/azure/devops/v5_1/feed/__init__.py index 26388b90..32d89778 100644 --- a/azure-devops/azure/devops/v5_1/feed/__init__.py +++ b/azure-devops/azure/devops/v5_1/feed/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .feed_client import FeedClient __all__ = [ 'Feed', @@ -39,4 +40,5 @@ 'RecycleBinPackageVersion', 'ReferenceLinks', 'UpstreamSource', + 'FeedClient' ] diff --git a/azure-devops/azure/devops/v5_1/feed_token/__init__.py b/azure-devops/azure/devops/v5_1/feed_token/__init__.py index 02c32760..ed4520cd 100644 --- a/azure-devops/azure/devops/v5_1/feed_token/__init__.py +++ b/azure-devops/azure/devops/v5_1/feed_token/__init__.py @@ -6,6 +6,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .feed_token_client import FeedTokenClient __all__ = [ + 'FeedTokenClient' ] diff --git a/azure-devops/azure/devops/v5_1/file_container/__init__.py b/azure-devops/azure/devops/v5_1/file_container/__init__.py index ad599954..bcd8e50f 100644 --- a/azure-devops/azure/devops/v5_1/file_container/__init__.py +++ b/azure-devops/azure/devops/v5_1/file_container/__init__.py @@ -7,8 +7,10 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .file_container_client import FileContainerClient __all__ = [ 'FileContainer', 'FileContainerItem', + 'FileContainerClient' ] diff --git a/azure-devops/azure/devops/v5_1/gallery/__init__.py b/azure-devops/azure/devops/v5_1/gallery/__init__.py index 2f550038..90458765 100644 --- a/azure-devops/azure/devops/v5_1/gallery/__init__.py +++ b/azure-devops/azure/devops/v5_1/gallery/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .gallery_client import GalleryClient __all__ = [ 'AcquisitionOperation', @@ -68,4 +69,5 @@ 'UnpackagedExtensionData', 'UserIdentityRef', 'UserReportedConcern', + 'GalleryClient' ] diff --git a/azure-devops/azure/devops/v5_1/git/__init__.py b/azure-devops/azure/devops/v5_1/git/__init__.py index c870d7a5..4152be54 100644 --- a/azure-devops/azure/devops/v5_1/git/__init__.py +++ b/azure-devops/azure/devops/v5_1/git/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .git_client import GitClient __all__ = [ 'Attachment', @@ -117,4 +118,5 @@ 'VstsInfo', 'WebApiCreateTagRequestData', 'WebApiTagDefinition', + 'GitClient' ] diff --git a/azure-devops/azure/devops/v5_1/git/git_client.py b/azure-devops/azure/devops/v5_1/git/git_client.py index 83c449ca..c456406a 100644 --- a/azure-devops/azure/devops/v5_1/git/git_client.py +++ b/azure-devops/azure/devops/v5_1/git/git_client.py @@ -1,10 +1,4 @@ # coding=utf-8 -# -------------------------------------------------------------------------- -# Generated file, DO NOT EDIT -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - from msrest.universal_http import ClientRequest from .git_client_base import GitClientBase diff --git a/azure-devops/azure/devops/v5_1/graph/__init__.py b/azure-devops/azure/devops/v5_1/graph/__init__.py index abdf791d..cb112045 100644 --- a/azure-devops/azure/devops/v5_1/graph/__init__.py +++ b/azure-devops/azure/devops/v5_1/graph/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .graph_client import GraphClient __all__ = [ 'GraphCachePolicies', @@ -32,4 +33,5 @@ 'PagedGraphGroups', 'PagedGraphUsers', 'ReferenceLinks', + 'GraphClient' ] diff --git a/azure-devops/azure/devops/v5_1/identity/__init__.py b/azure-devops/azure/devops/v5_1/identity/__init__.py index 5c37a45a..f4513395 100644 --- a/azure-devops/azure/devops/v5_1/identity/__init__.py +++ b/azure-devops/azure/devops/v5_1/identity/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .identity_client import IdentityClient __all__ = [ 'AccessTokenResult', @@ -28,4 +29,5 @@ 'RefreshTokenGrant', 'SwapIdentityInfo', 'TenantInfo', + 'IdentityClient' ] diff --git a/azure-devops/azure/devops/v5_1/licensing/__init__.py b/azure-devops/azure/devops/v5_1/licensing/__init__.py index c1c9f049..4ecffe0c 100644 --- a/azure-devops/azure/devops/v5_1/licensing/__init__.py +++ b/azure-devops/azure/devops/v5_1/licensing/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .licensing_client import LicensingClient __all__ = [ 'AccountEntitlement', @@ -30,4 +31,5 @@ 'License', 'MsdnEntitlement', 'ReferenceLinks', + 'LicensingClient' ] diff --git a/azure-devops/azure/devops/v5_1/location/__init__.py b/azure-devops/azure/devops/v5_1/location/__init__.py index f91eb827..37761f5d 100644 --- a/azure-devops/azure/devops/v5_1/location/__init__.py +++ b/azure-devops/azure/devops/v5_1/location/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .location_client import LocationClient __all__ = [ 'AccessMapping', @@ -17,4 +18,5 @@ 'LocationServiceData', 'ResourceAreaInfo', 'ServiceDefinition', + 'LocationClient' ] diff --git a/azure-devops/azure/devops/v5_1/maven/__init__.py b/azure-devops/azure/devops/v5_1/maven/__init__.py index b1592973..f12bf866 100644 --- a/azure-devops/azure/devops/v5_1/maven/__init__.py +++ b/azure-devops/azure/devops/v5_1/maven/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .maven_client import MavenClient __all__ = [ 'BatchOperationData', @@ -37,4 +38,5 @@ 'PluginConfiguration', 'ReferenceLink', 'ReferenceLinks', + 'MavenClient' ] diff --git a/azure-devops/azure/devops/v5_1/member_entitlement_management/__init__.py b/azure-devops/azure/devops/v5_1/member_entitlement_management/__init__.py index 4b768491..ebe2a1f5 100644 --- a/azure-devops/azure/devops/v5_1/member_entitlement_management/__init__.py +++ b/azure-devops/azure/devops/v5_1/member_entitlement_management/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .member_entitlement_management_client import MemberEntitlementManagementClient __all__ = [ 'AccessLevel', @@ -46,4 +47,5 @@ 'UserEntitlementsPostResponse', 'UserEntitlementsResponseBase', 'UsersSummary', + 'MemberEntitlementManagementClient' ] diff --git a/azure-devops/azure/devops/v5_1/notification/__init__.py b/azure-devops/azure/devops/v5_1/notification/__init__.py index b616f6fb..df6f9834 100644 --- a/azure-devops/azure/devops/v5_1/notification/__init__.py +++ b/azure-devops/azure/devops/v5_1/notification/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .notification_client import NotificationClient __all__ = [ 'ArtifactFilter', @@ -71,4 +72,5 @@ 'UpdateSubscripitonTracingParameters', 'ValueDefinition', 'VssNotificationEvent', + 'NotificationClient' ] diff --git a/azure-devops/azure/devops/v5_1/npm/__init__.py b/azure-devops/azure/devops/v5_1/npm/__init__.py index c51d5fcb..cd547577 100644 --- a/azure-devops/azure/devops/v5_1/npm/__init__.py +++ b/azure-devops/azure/devops/v5_1/npm/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .npm_client import NpmClient __all__ = [ 'BatchDeprecateData', @@ -20,4 +21,5 @@ 'PackageVersionDetails', 'ReferenceLinks', 'UpstreamSourceInfo', + 'NpmClient' ] diff --git a/azure-devops/azure/devops/v5_1/nuGet/__init__.py b/azure-devops/azure/devops/v5_1/nuGet/__init__.py index 3361f2be..06b1d983 100644 --- a/azure-devops/azure/devops/v5_1/nuGet/__init__.py +++ b/azure-devops/azure/devops/v5_1/nuGet/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .nuget_client import NuGetClient __all__ = [ 'BatchListData', @@ -20,4 +21,5 @@ 'PackageVersionDetails', 'ReferenceLinks', 'UpstreamSourceInfo', + 'NuGetClient' ] diff --git a/azure-devops/azure/devops/v5_1/operations/__init__.py b/azure-devops/azure/devops/v5_1/operations/__init__.py index 6bc40b46..cd7611eb 100644 --- a/azure-devops/azure/devops/v5_1/operations/__init__.py +++ b/azure-devops/azure/devops/v5_1/operations/__init__.py @@ -7,10 +7,12 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .operations_client import OperationsClient __all__ = [ 'Operation', 'OperationReference', 'OperationResultReference', 'ReferenceLinks', + 'OperationsClient' ] diff --git a/azure-devops/azure/devops/v5_1/policy/__init__.py b/azure-devops/azure/devops/v5_1/policy/__init__.py index cbcfed09..1279c3e8 100644 --- a/azure-devops/azure/devops/v5_1/policy/__init__.py +++ b/azure-devops/azure/devops/v5_1/policy/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .policy_client import PolicyClient __all__ = [ 'GraphSubjectBase', @@ -18,4 +19,5 @@ 'PolicyTypeRef', 'ReferenceLinks', 'VersionedPolicyConfigurationRef', + 'PolicyClient' ] diff --git a/azure-devops/azure/devops/v5_1/profile/__init__.py b/azure-devops/azure/devops/v5_1/profile/__init__.py index 426916b1..c9b00c7e 100644 --- a/azure-devops/azure/devops/v5_1/profile/__init__.py +++ b/azure-devops/azure/devops/v5_1/profile/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .profile_client import ProfileClient __all__ = [ 'AttributeDescriptor', @@ -20,4 +21,5 @@ 'ProfileAttributeBase', 'ProfileRegion', 'ProfileRegions', + 'ProfileClient' ] diff --git a/azure-devops/azure/devops/v5_1/profile_regions/__init__.py b/azure-devops/azure/devops/v5_1/profile_regions/__init__.py index ed5aa5d3..b9ae801f 100644 --- a/azure-devops/azure/devops/v5_1/profile_regions/__init__.py +++ b/azure-devops/azure/devops/v5_1/profile_regions/__init__.py @@ -7,9 +7,11 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .profile_regions_client import ProfileRegionsClient __all__ = [ 'GeoRegion', 'ProfileRegion', 'ProfileRegions', + 'ProfileRegionsClient' ] diff --git a/azure-devops/azure/devops/v5_1/project_analysis/__init__.py b/azure-devops/azure/devops/v5_1/project_analysis/__init__.py index e3b23962..a38ea5dc 100644 --- a/azure-devops/azure/devops/v5_1/project_analysis/__init__.py +++ b/azure-devops/azure/devops/v5_1/project_analysis/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .project_analysis_client import ProjectAnalysisClient __all__ = [ 'CodeChangeTrendItem', @@ -16,4 +17,5 @@ 'ProjectLanguageAnalytics', 'RepositoryActivityMetrics', 'RepositoryLanguageAnalytics', + 'ProjectAnalysisClient' ] diff --git a/azure-devops/azure/devops/v5_1/provenance/__init__.py b/azure-devops/azure/devops/v5_1/provenance/__init__.py index 70c7a03e..47a6a388 100644 --- a/azure-devops/azure/devops/v5_1/provenance/__init__.py +++ b/azure-devops/azure/devops/v5_1/provenance/__init__.py @@ -7,8 +7,10 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .provenance_client import ProvenanceClient __all__ = [ 'SessionRequest', 'SessionResponse', + 'ProvenanceClient' ] diff --git a/azure-devops/azure/devops/v5_1/py_pi_api/__init__.py b/azure-devops/azure/devops/v5_1/py_pi_api/__init__.py index dd637cd0..2778b298 100644 --- a/azure-devops/azure/devops/v5_1/py_pi_api/__init__.py +++ b/azure-devops/azure/devops/v5_1/py_pi_api/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .py_pi_api_client import PyPiApiClient __all__ = [ 'BatchOperationData', @@ -18,4 +19,5 @@ 'PyPiPackageVersionDeletionState', 'PyPiRecycleBinPackageVersionDetails', 'ReferenceLinks', + 'PyPiApiClient' ] diff --git a/azure-devops/azure/devops/v5_1/release/__init__.py b/azure-devops/azure/devops/v5_1/release/__init__.py index 421074d5..598b068c 100644 --- a/azure-devops/azure/devops/v5_1/release/__init__.py +++ b/azure-devops/azure/devops/v5_1/release/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .release_client import ReleaseClient __all__ = [ 'AgentArtifactDefinition', @@ -104,4 +105,5 @@ 'VariableValue', 'WorkflowTask', 'WorkflowTaskReference', + 'ReleaseClient' ] diff --git a/azure-devops/azure/devops/v5_1/security/__init__.py b/azure-devops/azure/devops/v5_1/security/__init__.py index f3e359ef..6ddc7288 100644 --- a/azure-devops/azure/devops/v5_1/security/__init__.py +++ b/azure-devops/azure/devops/v5_1/security/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .security_client import SecurityClient __all__ = [ 'AccessControlEntry', @@ -17,4 +18,5 @@ 'PermissionEvaluation', 'PermissionEvaluationBatch', 'SecurityNamespaceDescription', + 'SecurityClient' ] diff --git a/azure-devops/azure/devops/v5_1/service_endpoint/__init__.py b/azure-devops/azure/devops/v5_1/service_endpoint/__init__.py index aa3747d9..1cfce699 100644 --- a/azure-devops/azure/devops/v5_1/service_endpoint/__init__.py +++ b/azure-devops/azure/devops/v5_1/service_endpoint/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .service_endpoint_client import ServiceEndpointClient __all__ = [ 'AadOauthTokenRequest', @@ -50,4 +51,5 @@ 'ServiceEndpointRequest', 'ServiceEndpointRequestResult', 'ServiceEndpointType', + 'ServiceEndpointClient' ] diff --git a/azure-devops/azure/devops/v5_1/service_hooks/__init__.py b/azure-devops/azure/devops/v5_1/service_hooks/__init__.py index b2bae03f..3369b8d4 100644 --- a/azure-devops/azure/devops/v5_1/service_hooks/__init__.py +++ b/azure-devops/azure/devops/v5_1/service_hooks/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .service_hooks_client import ServiceHooksClient __all__ = [ 'Consumer', @@ -43,4 +44,5 @@ 'UpdateSubscripitonDiagnosticsParameters', 'UpdateSubscripitonTracingParameters', 'VersionedResource', + 'ServiceHooksClient' ] diff --git a/azure-devops/azure/devops/v5_1/settings/__init__.py b/azure-devops/azure/devops/v5_1/settings/__init__.py index 02c32760..3798fc24 100644 --- a/azure-devops/azure/devops/v5_1/settings/__init__.py +++ b/azure-devops/azure/devops/v5_1/settings/__init__.py @@ -6,6 +6,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------------------------- +from .settings_client import SettingsClient __all__ = [ + 'SettingsClient' ] diff --git a/azure-devops/azure/devops/v5_1/symbol/__init__.py b/azure-devops/azure/devops/v5_1/symbol/__init__.py index 3f7c7180..fbe6726d 100644 --- a/azure-devops/azure/devops/v5_1/symbol/__init__.py +++ b/azure-devops/azure/devops/v5_1/symbol/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .symbol_client import SymbolClient __all__ = [ 'DebugEntry', @@ -16,4 +17,5 @@ 'JsonBlobIdentifierWithBlocks', 'Request', 'ResourceBase', + 'SymbolClient' ] diff --git a/azure-devops/azure/devops/v5_1/task/__init__.py b/azure-devops/azure/devops/v5_1/task/__init__.py index 8d56249f..fb5a183d 100644 --- a/azure-devops/azure/devops/v5_1/task/__init__.py +++ b/azure-devops/azure/devops/v5_1/task/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .task_client import TaskClient __all__ = [ 'Issue', @@ -33,4 +34,5 @@ 'TimelineRecordFeedLinesWrapper', 'TimelineReference', 'VariableValue', + 'TaskClient' ] diff --git a/azure-devops/azure/devops/v5_1/task_agent/__init__.py b/azure-devops/azure/devops/v5_1/task_agent/__init__.py index 6a5582c5..1e3e6895 100644 --- a/azure-devops/azure/devops/v5_1/task_agent/__init__.py +++ b/azure-devops/azure/devops/v5_1/task_agent/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .task_agent_client import TaskAgentClient __all__ = [ 'AadOauthTokenRequest', @@ -130,4 +131,5 @@ 'VirtualMachine', 'VirtualMachineGroup', 'VirtualMachineGroupCreateParameters', + 'TaskAgentClient' ] diff --git a/azure-devops/azure/devops/v5_1/test/__init__.py b/azure-devops/azure/devops/v5_1/test/__init__.py index 08d8172e..c481e685 100644 --- a/azure-devops/azure/devops/v5_1/test/__init__.py +++ b/azure-devops/azure/devops/v5_1/test/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .test_client import TestClient __all__ = [ 'AggregatedDataForResultTrend', @@ -118,4 +119,5 @@ 'TestVariable', 'WorkItemReference', 'WorkItemToTestLinks', + 'TestClient' ] diff --git a/azure-devops/azure/devops/v5_1/tfvc/__init__.py b/azure-devops/azure/devops/v5_1/tfvc/__init__.py index 90e4d7c8..7f980828 100644 --- a/azure-devops/azure/devops/v5_1/tfvc/__init__.py +++ b/azure-devops/azure/devops/v5_1/tfvc/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .tfvc_client import TfvcClient __all__ = [ 'AssociatedWorkItem', @@ -48,4 +49,5 @@ 'TfvcVersionDescriptor', 'VersionControlProjectInfo', 'VstsInfo', + 'TfvcClient' ] diff --git a/azure-devops/azure/devops/v5_1/universal/__init__.py b/azure-devops/azure/devops/v5_1/universal/__init__.py index f72c98ee..5a9801e6 100644 --- a/azure-devops/azure/devops/v5_1/universal/__init__.py +++ b/azure-devops/azure/devops/v5_1/universal/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .upack_api_client import UPackApiClient __all__ = [ 'BatchOperationData', @@ -18,4 +19,5 @@ 'UPackPackagesBatchRequest', 'UPackPackageVersionDeletionState', 'UPackRecycleBinPackageVersionDetails', + 'UPackApiClient' ] diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/__init__.py b/azure-devops/azure/devops/v5_1/upack_packaging/__init__.py similarity index 90% rename from azure-devops/azure/devops/v5_1/uPack_packaging/__init__.py rename to azure-devops/azure/devops/v5_1/upack_packaging/__init__.py index a3f47c87..b1e72abc 100644 --- a/azure-devops/azure/devops/v5_1/uPack_packaging/__init__.py +++ b/azure-devops/azure/devops/v5_1/upack_packaging/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .upack_packaging_client import UPackPackagingClient __all__ = [ 'UPackLimitedPackageMetadata', @@ -14,4 +15,5 @@ 'UPackPackageMetadata', 'UPackPackagePushMetadata', 'UPackPackageVersionDeletionState', + 'UPackPackagingClient' ] diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/models.py b/azure-devops/azure/devops/v5_1/upack_packaging/models.py similarity index 100% rename from azure-devops/azure/devops/v5_1/uPack_packaging/models.py rename to azure-devops/azure/devops/v5_1/upack_packaging/models.py diff --git a/azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py b/azure-devops/azure/devops/v5_1/upack_packaging/upack_packaging_client.py similarity index 100% rename from azure-devops/azure/devops/v5_1/uPack_packaging/uPack_packaging_client.py rename to azure-devops/azure/devops/v5_1/upack_packaging/upack_packaging_client.py diff --git a/azure-devops/azure/devops/v5_1/wiki/__init__.py b/azure-devops/azure/devops/v5_1/wiki/__init__.py index 942041d3..5b12ad64 100644 --- a/azure-devops/azure/devops/v5_1/wiki/__init__.py +++ b/azure-devops/azure/devops/v5_1/wiki/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .wiki_client import WikiClient __all__ = [ 'GitRepository', @@ -25,4 +26,5 @@ 'WikiPageViewStats', 'WikiUpdateParameters', 'WikiV2', + 'WikiClient' ] diff --git a/azure-devops/azure/devops/v5_1/work/__init__.py b/azure-devops/azure/devops/v5_1/work/__init__.py index 6bce0bf2..35059bbf 100644 --- a/azure-devops/azure/devops/v5_1/work/__init__.py +++ b/azure-devops/azure/devops/v5_1/work/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_client import WorkClient __all__ = [ 'Activity', @@ -75,4 +76,5 @@ 'WorkItemTrackingResourceReference', 'WorkItemTypeReference', 'WorkItemTypeStateInfo', + 'WorkClient' ] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking/__init__.py index 54c6d90e..0fdf4622 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking/__init__.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_item_tracking_client import WorkItemTrackingClient __all__ = [ 'AccountMyWorkResult', @@ -82,4 +83,5 @@ 'WorkItemTypeTemplate', 'WorkItemTypeTemplateUpdateModel', 'WorkItemUpdate', + 'WorkItemTrackingClient' ] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py index fce47aec..b1da3ad7 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_comments/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_item_tracking_comments_client import WorkItemTrackingCommentsClient __all__ = [ 'GraphSubjectBase', @@ -21,4 +22,5 @@ 'WorkItemCommentVersionResponse', 'WorkItemTrackingResource', 'WorkItemTrackingResourceReference', + 'WorkItemTrackingCommentsClient' ] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process/__init__.py index 438d8053..a9e87fd4 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process/__init__.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_item_tracking_process_client import WorkItemTrackingProcessClient __all__ = [ 'AddProcessWorkItemTypeFieldRequest', @@ -52,4 +53,5 @@ 'WorkItemStateResultModel', 'WorkItemTypeBehavior', 'WorkItemTypeModel', + 'WorkItemTrackingProcessClient' ] diff --git a/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/__init__.py b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/__init__.py index 331bd213..5d045cd8 100644 --- a/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/__init__.py +++ b/azure-devops/azure/devops/v5_1/work_item_tracking_process_template/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------------------------- from .models import * +from .work_item_tracking_process_template_client import WorkItemTrackingProcessTemplateClient __all__ = [ 'AdminBehavior', @@ -15,4 +16,5 @@ 'ProcessImportResult', 'ProcessPromoteStatus', 'ValidationIssue', + 'WorkItemTrackingProcessTemplateClient' ] From 24bfe3065ca58a13be254ed464c47b4573464773 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 25 Feb 2019 12:36:59 -0500 Subject: [PATCH 116/191] move released client factory under released. --- azure-devops/azure/devops/connection.py | 5 +++-- azure-devops/azure/devops/released/__init__.py | 7 +++++++ azure-devops/azure/devops/{ => released}/client_factory.py | 0 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 azure-devops/azure/devops/released/__init__.py rename azure-devops/azure/devops/{ => released}/client_factory.py (100%) diff --git a/azure-devops/azure/devops/connection.py b/azure-devops/azure/devops/connection.py index 3a06eff1..04f2436b 100644 --- a/azure-devops/azure/devops/connection.py +++ b/azure-devops/azure/devops/connection.py @@ -7,12 +7,13 @@ from msrest.service_client import ServiceClient from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE +from .client_configuration import ClientConfiguration from .exceptions import AzureDevOpsClientRequestError +from .released.client_factory import ClientFactory from .v5_0.location.location_client import LocationClient -from .client_factory import ClientFactory from .v5_0.client_factory import ClientFactoryV5_0 from .v5_1.client_factory import ClientFactoryV5_1 -from .client_configuration import ClientConfiguration + logger = logging.getLogger(__name__) diff --git a/azure-devops/azure/devops/released/__init__.py b/azure-devops/azure/devops/released/__init__.py new file mode 100644 index 00000000..f885a96e --- /dev/null +++ b/azure-devops/azure/devops/released/__init__.py @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------------------------- diff --git a/azure-devops/azure/devops/client_factory.py b/azure-devops/azure/devops/released/client_factory.py similarity index 100% rename from azure-devops/azure/devops/client_factory.py rename to azure-devops/azure/devops/released/client_factory.py From b1bbf39a2bbf84306388afa7e97260a317f6af2c Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 25 Feb 2019 13:01:35 -0500 Subject: [PATCH 117/191] Update version to b --- azure-devops/azure/devops/version.py | 2 +- azure-devops/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-devops/azure/devops/version.py b/azure-devops/azure/devops/version.py index f7ed5aa6..88e9d639 100644 --- a/azure-devops/azure/devops/version.py +++ b/azure-devops/azure/devops/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "5.0.0" +VERSION = "5.0.0b1" diff --git a/azure-devops/setup.py b/azure-devops/setup.py index aeaf1a83..cbef3c0e 100644 --- a/azure-devops/setup.py +++ b/azure-devops/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "azure-devops" -VERSION = "5.0.0" +VERSION = "5.0.0b1" # To install the library, run the following # From 52564f73550ebf4e3c69c3f0ed5fbcd33b10daf5 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Mon, 25 Feb 2019 13:56:49 -0500 Subject: [PATCH 118/191] Update version to b2 --- azure-devops/azure/devops/version.py | 2 +- azure-devops/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-devops/azure/devops/version.py b/azure-devops/azure/devops/version.py index 88e9d639..4b0e3439 100644 --- a/azure-devops/azure/devops/version.py +++ b/azure-devops/azure/devops/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "5.0.0b1" +VERSION = "5.0.0b2" diff --git a/azure-devops/setup.py b/azure-devops/setup.py index cbef3c0e..91298b81 100644 --- a/azure-devops/setup.py +++ b/azure-devops/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "azure-devops" -VERSION = "5.0.0b1" +VERSION = "5.0.0b2" # To install the library, run the following # From 128de0922bc5afc659858796222c79a64ebe0cce Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 28 Feb 2019 14:59:00 -0500 Subject: [PATCH 119/191] Fix casing in v5_0 Nuget client files. --- azure-devops/azure/devops/v5_0/{nuGet => nuget}/__init__.py | 0 azure-devops/azure/devops/v5_0/{nuGet => nuget}/models.py | 0 .../devops/v5_0/{nuGet/nuGet_client.py => nuget/nuget_client.py} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename azure-devops/azure/devops/v5_0/{nuGet => nuget}/__init__.py (100%) rename azure-devops/azure/devops/v5_0/{nuGet => nuget}/models.py (100%) rename azure-devops/azure/devops/v5_0/{nuGet/nuGet_client.py => nuget/nuget_client.py} (100%) diff --git a/azure-devops/azure/devops/v5_0/nuGet/__init__.py b/azure-devops/azure/devops/v5_0/nuget/__init__.py similarity index 100% rename from azure-devops/azure/devops/v5_0/nuGet/__init__.py rename to azure-devops/azure/devops/v5_0/nuget/__init__.py diff --git a/azure-devops/azure/devops/v5_0/nuGet/models.py b/azure-devops/azure/devops/v5_0/nuget/models.py similarity index 100% rename from azure-devops/azure/devops/v5_0/nuGet/models.py rename to azure-devops/azure/devops/v5_0/nuget/models.py diff --git a/azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py b/azure-devops/azure/devops/v5_0/nuget/nuget_client.py similarity index 100% rename from azure-devops/azure/devops/v5_0/nuGet/nuGet_client.py rename to azure-devops/azure/devops/v5_0/nuget/nuget_client.py From e74c6936255dd9f3008adbaddb21409f4def5e07 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 28 Feb 2019 15:01:34 -0500 Subject: [PATCH 120/191] delete miscased v5_1 Nuget client files. --- .../azure/devops/v5_1/nuGet/__init__.py | 25 -- .../azure/devops/v5_1/nuGet/models.py | 268 ------------------ .../azure/devops/v5_1/nuGet/nuGet_client.py | 200 ------------- 3 files changed, 493 deletions(-) delete mode 100644 azure-devops/azure/devops/v5_1/nuGet/__init__.py delete mode 100644 azure-devops/azure/devops/v5_1/nuGet/models.py delete mode 100644 azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py diff --git a/azure-devops/azure/devops/v5_1/nuGet/__init__.py b/azure-devops/azure/devops/v5_1/nuGet/__init__.py deleted file mode 100644 index 06b1d983..00000000 --- a/azure-devops/azure/devops/v5_1/nuGet/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 .models import * -from .nuget_client import NuGetClient - -__all__ = [ - 'BatchListData', - 'BatchOperationData', - 'JsonPatchOperation', - 'MinimalPackageDetails', - 'NuGetPackagesBatchRequest', - 'NuGetPackageVersionDeletionState', - 'NuGetRecycleBinPackageVersionDetails', - 'Package', - 'PackageVersionDetails', - 'ReferenceLinks', - 'UpstreamSourceInfo', - 'NuGetClient' -] diff --git a/azure-devops/azure/devops/v5_1/nuGet/models.py b/azure-devops/azure/devops/v5_1/nuGet/models.py deleted file mode 100644 index ddce4906..00000000 --- a/azure-devops/azure/devops/v5_1/nuGet/models.py +++ /dev/null @@ -1,268 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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.serialization import Model - - -class BatchOperationData(Model): - """BatchOperationData. - - """ - - _attribute_map = { - } - - def __init__(self): - super(BatchOperationData, self).__init__() - - -class JsonPatchOperation(Model): - """JsonPatchOperation. - - :param from_: The path to copy from for the Move/Copy operation. - :type from_: str - :param op: The patch operation - :type op: object - :param path: The path for the operation - :type path: str - :param value: The value for the operation. This is either a primitive or a JToken. - :type value: object - """ - - _attribute_map = { - 'from_': {'key': 'from', 'type': 'str'}, - 'op': {'key': 'op', 'type': 'object'}, - 'path': {'key': 'path', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'object'} - } - - def __init__(self, from_=None, op=None, path=None, value=None): - super(JsonPatchOperation, self).__init__() - self.from_ = from_ - self.op = op - self.path = path - self.value = value - - -class MinimalPackageDetails(Model): - """MinimalPackageDetails. - - :param id: Package name. - :type id: str - :param version: Package version. - :type version: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, id=None, version=None): - super(MinimalPackageDetails, self).__init__() - self.id = id - self.version = version - - -class NuGetPackagesBatchRequest(Model): - """NuGetPackagesBatchRequest. - - :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. - :type data: :class:`BatchOperationData ` - :param operation: Type of operation that needs to be performed on packages. - :type operation: object - :param packages: The packages onto which the operation will be performed. - :type packages: list of :class:`MinimalPackageDetails ` - """ - - _attribute_map = { - 'data': {'key': 'data', 'type': 'BatchOperationData'}, - 'operation': {'key': 'operation', 'type': 'object'}, - 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} - } - - def __init__(self, data=None, operation=None, packages=None): - super(NuGetPackagesBatchRequest, self).__init__() - self.data = data - self.operation = operation - self.packages = packages - - -class NuGetPackageVersionDeletionState(Model): - """NuGetPackageVersionDeletionState. - - :param deleted_date: Utc date the package was deleted. - :type deleted_date: datetime - :param name: Name of the package. - :type name: str - :param version: Version of the package. - :type version: str - """ - - _attribute_map = { - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, deleted_date=None, name=None, version=None): - super(NuGetPackageVersionDeletionState, self).__init__() - self.deleted_date = deleted_date - self.name = name - self.version = version - - -class NuGetRecycleBinPackageVersionDetails(Model): - """NuGetRecycleBinPackageVersionDetails. - - :param deleted: Setting to false will undo earlier deletion and restore the package to feed. - :type deleted: bool - """ - - _attribute_map = { - 'deleted': {'key': 'deleted', 'type': 'bool'} - } - - def __init__(self, deleted=None): - super(NuGetRecycleBinPackageVersionDetails, self).__init__() - self.deleted = deleted - - -class Package(Model): - """Package. - - :param _links: Related REST links. - :type _links: :class:`ReferenceLinks ` - :param deleted_date: If and when the package was deleted. - :type deleted_date: datetime - :param id: Package Id. - :type id: str - :param name: The display name of the package. - :type name: str - :param permanently_deleted_date: If and when the package was permanently deleted. - :type permanently_deleted_date: datetime - :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. - :type source_chain: list of :class:`UpstreamSourceInfo ` - :param version: The version of the package. - :type version: str - """ - - _attribute_map = { - '_links': {'key': '_links', 'type': 'ReferenceLinks'}, - 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, - 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, - 'version': {'key': 'version', 'type': 'str'} - } - - def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, version=None): - super(Package, self).__init__() - self._links = _links - self.deleted_date = deleted_date - self.id = id - self.name = name - self.permanently_deleted_date = permanently_deleted_date - self.source_chain = source_chain - self.version = version - - -class PackageVersionDetails(Model): - """PackageVersionDetails. - - :param listed: Indicates the listing state of a package - :type listed: bool - :param views: The view to which the package version will be added - :type views: :class:`JsonPatchOperation ` - """ - - _attribute_map = { - 'listed': {'key': 'listed', 'type': 'bool'}, - 'views': {'key': 'views', 'type': 'JsonPatchOperation'} - } - - def __init__(self, listed=None, views=None): - super(PackageVersionDetails, self).__init__() - self.listed = listed - self.views = views - - -class ReferenceLinks(Model): - """ReferenceLinks. - - :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. - :type links: dict - """ - - _attribute_map = { - 'links': {'key': 'links', 'type': '{object}'} - } - - def __init__(self, links=None): - super(ReferenceLinks, self).__init__() - self.links = links - - -class UpstreamSourceInfo(Model): - """UpstreamSourceInfo. - - :param id: Identity of the upstream source. - :type id: str - :param location: Locator for connecting to the upstream source. - :type location: str - :param name: Display name. - :type name: str - :param source_type: Source type, such as Public or Internal. - :type source_type: object - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'source_type': {'key': 'sourceType', 'type': 'object'} - } - - def __init__(self, id=None, location=None, name=None, source_type=None): - super(UpstreamSourceInfo, self).__init__() - self.id = id - self.location = location - self.name = name - self.source_type = source_type - - -class BatchListData(BatchOperationData): - """BatchListData. - - :param listed: The desired listed status for the package versions. - :type listed: bool - """ - - _attribute_map = { - 'listed': {'key': 'listed', 'type': 'bool'} - } - - def __init__(self, listed=None): - super(BatchListData, self).__init__() - self.listed = listed - - -__all__ = [ - 'BatchOperationData', - 'JsonPatchOperation', - 'MinimalPackageDetails', - 'NuGetPackagesBatchRequest', - 'NuGetPackageVersionDeletionState', - 'NuGetRecycleBinPackageVersionDetails', - 'Package', - 'PackageVersionDetails', - 'ReferenceLinks', - 'UpstreamSourceInfo', - 'BatchListData', -] diff --git a/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py b/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py deleted file mode 100644 index ab2d21fd..00000000 --- a/azure-devops/azure/devops/v5_1/nuGet/nuGet_client.py +++ /dev/null @@ -1,200 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 . import models - - -class NuGetClient(Client): - """NuGet - :param str base_url: Service URL - :param Authentication creds: Authenticated credentials. - """ - - def __init__(self, base_url=None, creds=None): - super(NuGetClient, 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 = 'b3be7473-68ea-4a81-bfc7-9530baaa19ad' - - def download_package(self, feed_id, package_name, package_version, source_protocol_version=None): - """DownloadPackage. - [Preview API] Download a package version directly. This API is intended for manual UI download options, not for programmatic access and scripting. You may be heavily throttled if accessing this api for scripting purposes. - :param str feed_id: Name or ID of the feed. - :param str package_name: Name of the package. - :param str package_version: Version of the package. - :param str source_protocol_version: Unused - :rtype: object - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - if package_name is not None: - route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') - if package_version is not None: - route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') - query_parameters = {} - if source_protocol_version is not None: - query_parameters['sourceProtocolVersion'] = self._serialize.query('source_protocol_version', source_protocol_version, 'str') - response = self._send(http_method='GET', - location_id='6ea81b8c-7386-490b-a71f-6cf23c80b388', - version='5.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('object', response) - - def update_package_versions(self, batch_request, feed_id): - """UpdatePackageVersions. - [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. - :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. - :param str feed_id: Name or ID of the feed. - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - content = self._serialize.body(batch_request, 'NuGetPackagesBatchRequest') - self._send(http_method='POST', - location_id='00c58ea7-d55f-49de-b59f-983533ae11dc', - version='5.1-preview.1', - route_values=route_values, - content=content) - - def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): - """DeletePackageVersionFromRecycleBin. - [Preview API] Delete a package version from a feed's recycle bin. - :param str feed_id: Name or ID of the feed. - :param str package_name: Name of the package. - :param str package_version: Version of the package. - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - if package_name is not None: - route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') - if package_version is not None: - route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') - self._send(http_method='DELETE', - location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', - version='5.1-preview.1', - route_values=route_values) - - def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): - """GetPackageVersionMetadataFromRecycleBin. - [Preview API] View a package version's deletion/recycled status - :param str feed_id: Name or ID of the feed. - :param str package_name: Name of the package. - :param str package_version: Version of the package. - :rtype: :class:` ` - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - if package_name is not None: - route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') - if package_version is not None: - route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') - response = self._send(http_method='GET', - location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('NuGetPackageVersionDeletionState', response) - - def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): - """RestorePackageVersionFromRecycleBin. - [Preview API] Restore a package version from a feed's recycle bin back into the active feed. - :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation - :param str feed_id: Name or ID of the feed. - :param str package_name: Name of the package. - :param str package_version: Version of the package. - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - if package_name is not None: - route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') - if package_version is not None: - route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') - content = self._serialize.body(package_version_details, 'NuGetRecycleBinPackageVersionDetails') - self._send(http_method='PATCH', - location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', - version='5.1-preview.1', - route_values=route_values, - content=content) - - def delete_package_version(self, feed_id, package_name, package_version): - """DeletePackageVersion. - [Preview API] Send a package version from the feed to its paired recycle bin. - :param str feed_id: Name or ID of the feed. - :param str package_name: Name of the package to delete. - :param str package_version: Version of the package to delete. - :rtype: :class:` ` - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - if package_name is not None: - route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') - if package_version is not None: - route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') - response = self._send(http_method='DELETE', - location_id='36c9353b-e250-4c57-b040-513c186c3905', - version='5.1-preview.1', - route_values=route_values) - return self._deserialize('Package', response) - - def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): - """GetPackageVersion. - [Preview API] Get information about a package version. - :param str feed_id: Name or ID of the feed. - :param str package_name: Name of the package. - :param str package_version: Version of the package. - :param bool show_deleted: True to include deleted packages in the response. - :rtype: :class:` ` - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - if package_name is not None: - route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') - if package_version is not None: - route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') - query_parameters = {} - if show_deleted is not None: - query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') - response = self._send(http_method='GET', - location_id='36c9353b-e250-4c57-b040-513c186c3905', - version='5.1-preview.1', - route_values=route_values, - query_parameters=query_parameters) - return self._deserialize('Package', response) - - def update_package_version(self, package_version_details, feed_id, package_name, package_version): - """UpdatePackageVersion. - [Preview API] Set mutable state on a package version. - :param :class:` ` package_version_details: New state to apply to the referenced package. - :param str feed_id: Name or ID of the feed. - :param str package_name: Name of the package to update. - :param str package_version: Version of the package to update. - """ - route_values = {} - if feed_id is not None: - route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') - if package_name is not None: - route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') - if package_version is not None: - route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') - content = self._serialize.body(package_version_details, 'PackageVersionDetails') - self._send(http_method='PATCH', - location_id='36c9353b-e250-4c57-b040-513c186c3905', - version='5.1-preview.1', - route_values=route_values, - content=content) - From 3194aaea708f0867c69b19a485276db10c0dcc46 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 28 Feb 2019 15:03:06 -0500 Subject: [PATCH 121/191] add back v5_1 Nuget client files. --- .../azure/devops/v5_1/nuget/__init__.py | 25 ++ .../azure/devops/v5_1/nuget/models.py | 268 ++++++++++++++++++ .../azure/devops/v5_1/nuget/nuget_client.py | 200 +++++++++++++ 3 files changed, 493 insertions(+) create mode 100644 azure-devops/azure/devops/v5_1/nuget/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/nuget/models.py create mode 100644 azure-devops/azure/devops/v5_1/nuget/nuget_client.py diff --git a/azure-devops/azure/devops/v5_1/nuget/__init__.py b/azure-devops/azure/devops/v5_1/nuget/__init__.py new file mode 100644 index 00000000..06b1d983 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/nuget/__init__.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * +from .nuget_client import NuGetClient + +__all__ = [ + 'BatchListData', + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NuGetPackagesBatchRequest', + 'NuGetPackageVersionDeletionState', + 'NuGetRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', + 'NuGetClient' +] diff --git a/azure-devops/azure/devops/v5_1/nuget/models.py b/azure-devops/azure/devops/v5_1/nuget/models.py new file mode 100644 index 00000000..ddce4906 --- /dev/null +++ b/azure-devops/azure/devops/v5_1/nuget/models.py @@ -0,0 +1,268 @@ +# -------------------------------------------------------------------------------------------- +# 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.serialization import Model + + +class BatchOperationData(Model): + """BatchOperationData. + + """ + + _attribute_map = { + } + + def __init__(self): + super(BatchOperationData, self).__init__() + + +class JsonPatchOperation(Model): + """JsonPatchOperation. + + :param from_: The path to copy from for the Move/Copy operation. + :type from_: str + :param op: The patch operation + :type op: object + :param path: The path for the operation + :type path: str + :param value: The value for the operation. This is either a primitive or a JToken. + :type value: object + """ + + _attribute_map = { + 'from_': {'key': 'from', 'type': 'str'}, + 'op': {'key': 'op', 'type': 'object'}, + 'path': {'key': 'path', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'} + } + + def __init__(self, from_=None, op=None, path=None, value=None): + super(JsonPatchOperation, self).__init__() + self.from_ = from_ + self.op = op + self.path = path + self.value = value + + +class MinimalPackageDetails(Model): + """MinimalPackageDetails. + + :param id: Package name. + :type id: str + :param version: Package version. + :type version: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, id=None, version=None): + super(MinimalPackageDetails, self).__init__() + self.id = id + self.version = version + + +class NuGetPackagesBatchRequest(Model): + """NuGetPackagesBatchRequest. + + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. + :type data: :class:`BatchOperationData ` + :param operation: Type of operation that needs to be performed on packages. + :type operation: object + :param packages: The packages onto which the operation will be performed. + :type packages: list of :class:`MinimalPackageDetails ` + """ + + _attribute_map = { + 'data': {'key': 'data', 'type': 'BatchOperationData'}, + 'operation': {'key': 'operation', 'type': 'object'}, + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} + } + + def __init__(self, data=None, operation=None, packages=None): + super(NuGetPackagesBatchRequest, self).__init__() + self.data = data + self.operation = operation + self.packages = packages + + +class NuGetPackageVersionDeletionState(Model): + """NuGetPackageVersionDeletionState. + + :param deleted_date: Utc date the package was deleted. + :type deleted_date: datetime + :param name: Name of the package. + :type name: str + :param version: Version of the package. + :type version: str + """ + + _attribute_map = { + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, deleted_date=None, name=None, version=None): + super(NuGetPackageVersionDeletionState, self).__init__() + self.deleted_date = deleted_date + self.name = name + self.version = version + + +class NuGetRecycleBinPackageVersionDetails(Model): + """NuGetRecycleBinPackageVersionDetails. + + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. + :type deleted: bool + """ + + _attribute_map = { + 'deleted': {'key': 'deleted', 'type': 'bool'} + } + + def __init__(self, deleted=None): + super(NuGetRecycleBinPackageVersionDetails, self).__init__() + self.deleted = deleted + + +class Package(Model): + """Package. + + :param _links: Related REST links. + :type _links: :class:`ReferenceLinks ` + :param deleted_date: If and when the package was deleted. + :type deleted_date: datetime + :param id: Package Id. + :type id: str + :param name: The display name of the package. + :type name: str + :param permanently_deleted_date: If and when the package was permanently deleted. + :type permanently_deleted_date: datetime + :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. + :type source_chain: list of :class:`UpstreamSourceInfo ` + :param version: The version of the package. + :type version: str + """ + + _attribute_map = { + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, + 'version': {'key': 'version', 'type': 'str'} + } + + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, version=None): + super(Package, self).__init__() + self._links = _links + self.deleted_date = deleted_date + self.id = id + self.name = name + self.permanently_deleted_date = permanently_deleted_date + self.source_chain = source_chain + self.version = version + + +class PackageVersionDetails(Model): + """PackageVersionDetails. + + :param listed: Indicates the listing state of a package + :type listed: bool + :param views: The view to which the package version will be added + :type views: :class:`JsonPatchOperation ` + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'}, + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} + } + + def __init__(self, listed=None, views=None): + super(PackageVersionDetails, self).__init__() + self.listed = listed + self.views = views + + +class ReferenceLinks(Model): + """ReferenceLinks. + + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. + :type links: dict + """ + + _attribute_map = { + 'links': {'key': 'links', 'type': '{object}'} + } + + def __init__(self, links=None): + super(ReferenceLinks, self).__init__() + self.links = links + + +class UpstreamSourceInfo(Model): + """UpstreamSourceInfo. + + :param id: Identity of the upstream source. + :type id: str + :param location: Locator for connecting to the upstream source. + :type location: str + :param name: Display name. + :type name: str + :param source_type: Source type, such as Public or Internal. + :type source_type: object + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'source_type': {'key': 'sourceType', 'type': 'object'} + } + + def __init__(self, id=None, location=None, name=None, source_type=None): + super(UpstreamSourceInfo, self).__init__() + self.id = id + self.location = location + self.name = name + self.source_type = source_type + + +class BatchListData(BatchOperationData): + """BatchListData. + + :param listed: The desired listed status for the package versions. + :type listed: bool + """ + + _attribute_map = { + 'listed': {'key': 'listed', 'type': 'bool'} + } + + def __init__(self, listed=None): + super(BatchListData, self).__init__() + self.listed = listed + + +__all__ = [ + 'BatchOperationData', + 'JsonPatchOperation', + 'MinimalPackageDetails', + 'NuGetPackagesBatchRequest', + 'NuGetPackageVersionDeletionState', + 'NuGetRecycleBinPackageVersionDetails', + 'Package', + 'PackageVersionDetails', + 'ReferenceLinks', + 'UpstreamSourceInfo', + 'BatchListData', +] diff --git a/azure-devops/azure/devops/v5_1/nuget/nuget_client.py b/azure-devops/azure/devops/v5_1/nuget/nuget_client.py new file mode 100644 index 00000000..ab2d21fd --- /dev/null +++ b/azure-devops/azure/devops/v5_1/nuget/nuget_client.py @@ -0,0 +1,200 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class NuGetClient(Client): + """NuGet + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(NuGetClient, 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 = 'b3be7473-68ea-4a81-bfc7-9530baaa19ad' + + def download_package(self, feed_id, package_name, package_version, source_protocol_version=None): + """DownloadPackage. + [Preview API] Download a package version directly. This API is intended for manual UI download options, not for programmatic access and scripting. You may be heavily throttled if accessing this api for scripting purposes. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param str source_protocol_version: Unused + :rtype: object + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if source_protocol_version is not None: + query_parameters['sourceProtocolVersion'] = self._serialize.query('source_protocol_version', source_protocol_version, 'str') + response = self._send(http_method='GET', + location_id='6ea81b8c-7386-490b-a71f-6cf23c80b388', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('object', response) + + def update_package_versions(self, batch_request, feed_id): + """UpdatePackageVersions. + [Preview API] Update several packages from a single feed in a single request. The updates to the packages do not happen atomically. + :param :class:` ` batch_request: Information about the packages to update, the operation to perform, and its associated data. + :param str feed_id: Name or ID of the feed. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + content = self._serialize.body(batch_request, 'NuGetPackagesBatchRequest') + self._send(http_method='POST', + location_id='00c58ea7-d55f-49de-b59f-983533ae11dc', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version_from_recycle_bin(self, feed_id, package_name, package_version): + """DeletePackageVersionFromRecycleBin. + [Preview API] Delete a package version from a feed's recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + self._send(http_method='DELETE', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='5.1-preview.1', + route_values=route_values) + + def get_package_version_metadata_from_recycle_bin(self, feed_id, package_name, package_version): + """GetPackageVersionMetadataFromRecycleBin. + [Preview API] View a package version's deletion/recycled status + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='GET', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('NuGetPackageVersionDeletionState', response) + + def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version): + """RestorePackageVersionFromRecycleBin. + [Preview API] Restore a package version from a feed's recycle bin back into the active feed. + :param :class:` ` package_version_details: Set the 'Deleted' member to 'false' to apply the restore operation + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'NuGetRecycleBinPackageVersionDetails') + self._send(http_method='PATCH', + location_id='07e88775-e3cb-4408-bbe1-628e036fac8c', + version='5.1-preview.1', + route_values=route_values, + content=content) + + def delete_package_version(self, feed_id, package_name, package_version): + """DeletePackageVersion. + [Preview API] Send a package version from the feed to its paired recycle bin. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package to delete. + :param str package_version: Version of the package to delete. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + response = self._send(http_method='DELETE', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='5.1-preview.1', + route_values=route_values) + return self._deserialize('Package', response) + + def get_package_version(self, feed_id, package_name, package_version, show_deleted=None): + """GetPackageVersion. + [Preview API] Get information about a package version. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package. + :param str package_version: Version of the package. + :param bool show_deleted: True to include deleted packages in the response. + :rtype: :class:` ` + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + query_parameters = {} + if show_deleted is not None: + query_parameters['showDeleted'] = self._serialize.query('show_deleted', show_deleted, 'bool') + response = self._send(http_method='GET', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('Package', response) + + def update_package_version(self, package_version_details, feed_id, package_name, package_version): + """UpdatePackageVersion. + [Preview API] Set mutable state on a package version. + :param :class:` ` package_version_details: New state to apply to the referenced package. + :param str feed_id: Name or ID of the feed. + :param str package_name: Name of the package to update. + :param str package_version: Version of the package to update. + """ + route_values = {} + if feed_id is not None: + route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str') + if package_name is not None: + route_values['packageName'] = self._serialize.url('package_name', package_name, 'str') + if package_version is not None: + route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str') + content = self._serialize.body(package_version_details, 'PackageVersionDetails') + self._send(http_method='PATCH', + location_id='36c9353b-e250-4c57-b040-513c186c3905', + version='5.1-preview.1', + route_values=route_values, + content=content) + From 9a563ab78cf29b43db6ebf1e996f24ed36c72bd0 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Thu, 28 Feb 2019 15:30:18 -0500 Subject: [PATCH 122/191] bump version to b3 --- azure-devops/azure/devops/version.py | 2 +- azure-devops/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-devops/azure/devops/version.py b/azure-devops/azure/devops/version.py index 4b0e3439..b4fc0ecf 100644 --- a/azure-devops/azure/devops/version.py +++ b/azure-devops/azure/devops/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "5.0.0b2" +VERSION = "5.0.0b3" diff --git a/azure-devops/setup.py b/azure-devops/setup.py index 91298b81..2ff7abe2 100644 --- a/azure-devops/setup.py +++ b/azure-devops/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "azure-devops" -VERSION = "5.0.0b2" +VERSION = "5.0.0b3" # To install the library, run the following # From 278b753663093da385c13e209854f53c792ea96f Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Wed, 13 Mar 2019 11:45:22 -0400 Subject: [PATCH 123/191] Update 5.1 apis to M149 --- .../azure/devops/v5_1/build/__init__.py | 1 + .../azure/devops/v5_1/build/models.py | 25 +- .../azure/devops/v5_1/cix/__init__.py | 29 + .../azure/devops/v5_1/cix/cix_client.py | 166 ++++++ azure-devops/azure/devops/v5_1/cix/models.py | 502 ++++++++++++++++++ .../azure/devops/v5_1/client_factory.py | 28 +- .../azure/devops/v5_1/core/core_client.py | 10 +- azure-devops/azure/devops/v5_1/core/models.py | 4 +- .../azure/devops/v5_1/feed/__init__.py | 1 + .../azure/devops/v5_1/feed/feed_client.py | 29 +- azure-devops/azure/devops/v5_1/feed/models.py | 32 +- .../azure/devops/v5_1/gallery/__init__.py | 5 + .../devops/v5_1/gallery/gallery_client.py | 23 + .../azure/devops/v5_1/gallery/models.py | 185 +++++++ .../azure/devops/v5_1/git/git_client_base.py | 18 + azure-devops/azure/devops/v5_1/git/models.py | 10 +- .../azure/devops/v5_1/graph/__init__.py | 2 + .../azure/devops/v5_1/graph/graph_client.py | 70 +++ .../azure/devops/v5_1/graph/models.py | 48 +- .../azure/devops/v5_1/identity/models.py | 10 +- .../member_entitlement_management/models.py | 2 +- .../v5_1/notification/notification_client.py | 2 +- azure-devops/azure/devops/v5_1/npm/models.py | 2 +- .../azure/devops/v5_1/nuget/models.py | 2 +- .../azure/devops/v5_1/pipelines/__init__.py | 16 + .../azure/devops/v5_1/pipelines/models.py | 51 ++ .../devops/v5_1/pipelines/pipelines_client.py | 50 ++ .../azure/devops/v5_1/py_pi_api/models.py | 2 +- .../azure/devops/v5_1/release/__init__.py | 1 + .../azure/devops/v5_1/release/models.py | 45 +- .../devops/v5_1/release/release_client.py | 21 + .../devops/v5_1/service_endpoint/models.py | 64 +-- .../azure/devops/v5_1/service_hooks/models.py | 16 +- .../azure/devops/v5_1/task_agent/__init__.py | 8 +- .../azure/devops/v5_1/task_agent/models.py | 432 ++++++++------- .../v5_1/task_agent/task_agent_client.py | 366 +++++++++++++ .../azure/devops/v5_1/test/__init__.py | 2 + azure-devops/azure/devops/v5_1/test/models.py | 76 ++- .../azure/devops/v5_1/universal/models.py | 2 +- .../azure/devops/v5_1/work/__init__.py | 2 + azure-devops/azure/devops/v5_1/work/models.py | 90 +++- .../azure/devops/v5_1/work/work_client.py | 44 +- .../v5_1/work_item_tracking/__init__.py | 10 + .../devops/v5_1/work_item_tracking/models.py | 391 +++++++++++++- .../work_item_tracking_client.py | 325 +++++++++++- .../v5_1/work_item_tracking_process/models.py | 24 +- .../models.py | 6 +- ...k_item_tracking_process_template_client.py | 28 +- 48 files changed, 2886 insertions(+), 392 deletions(-) create mode 100644 azure-devops/azure/devops/v5_1/cix/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/cix/cix_client.py create mode 100644 azure-devops/azure/devops/v5_1/cix/models.py create mode 100644 azure-devops/azure/devops/v5_1/pipelines/__init__.py create mode 100644 azure-devops/azure/devops/v5_1/pipelines/models.py create mode 100644 azure-devops/azure/devops/v5_1/pipelines/pipelines_client.py diff --git a/azure-devops/azure/devops/v5_1/build/__init__.py b/azure-devops/azure/devops/v5_1/build/__init__.py index 769eb009..b9cb53c4 100644 --- a/azure-devops/azure/devops/v5_1/build/__init__.py +++ b/azure-devops/azure/devops/v5_1/build/__init__.py @@ -11,6 +11,7 @@ __all__ = [ 'AgentPoolQueue', + 'AgentSpecification', 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', diff --git a/azure-devops/azure/devops/v5_1/build/models.py b/azure-devops/azure/devops/v5_1/build/models.py index 419e5b05..31f30e54 100644 --- a/azure-devops/azure/devops/v5_1/build/models.py +++ b/azure-devops/azure/devops/v5_1/build/models.py @@ -41,6 +41,22 @@ def __init__(self, _links=None, id=None, name=None, pool=None, url=None): self.url = url +class AgentSpecification(Model): + """AgentSpecification. + + :param identifier: Agent specification unique identifier. + :type identifier: str + """ + + _attribute_map = { + 'identifier': {'key': 'identifier', 'type': 'str'} + } + + def __init__(self, identifier=None): + super(AgentSpecification, self).__init__() + self.identifier = identifier + + class AggregatedResultsAnalysis(Model): """AggregatedResultsAnalysis. @@ -318,6 +334,8 @@ class Build(Model): :param _links: :type _links: :class:`ReferenceLinks ` + :param agent_specification: The agent specification for the build. + :type agent_specification: :class:`AgentSpecification ` :param build_number: The build number/name of the build. :type build_number: str :param build_number_revision: The build number revision. @@ -406,6 +424,7 @@ class Build(Model): _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, + 'agent_specification': {'key': 'agentSpecification', 'type': 'AgentSpecification'}, 'build_number': {'key': 'buildNumber', 'type': 'str'}, 'build_number_revision': {'key': 'buildNumberRevision', 'type': 'int'}, 'controller': {'key': 'controller', 'type': 'BuildController'}, @@ -450,9 +469,10 @@ class Build(Model): 'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'} } - def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, triggered_by_build=None, trigger_info=None, uri=None, url=None, validation_results=None): + def __init__(self, _links=None, agent_specification=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, triggered_by_build=None, trigger_info=None, uri=None, url=None, validation_results=None): super(Build, self).__init__() self._links = _links + self.agent_specification = agent_specification self.build_number = build_number self.build_number_revision = build_number_revision self.controller = controller @@ -1432,7 +1452,7 @@ class JsonPatchOperation(Model): :type from_: str :param op: The patch operation :type op: object - :param path: The path for the operation + :param path: The path for the operation. In the case of an array, a zero based index can be used to specify the position in the array (e.g. /biscuits/0/name). The "-" character can be used instead of an index to insert at the end of the array (e.g. /biscuits/-). :type path: str :param value: The value for the operation. This is either a primitive or a JToken. :type value: object @@ -2963,6 +2983,7 @@ def __init__(self, created_date=None, id=None, name=None, path=None, project=Non __all__ = [ 'AgentPoolQueue', + 'AgentSpecification', 'AggregatedResultsAnalysis', 'AggregatedResultsByOutcome', 'AggregatedResultsDifference', diff --git a/azure-devops/azure/devops/v5_1/cix/__init__.py b/azure-devops/azure/devops/v5_1/cix/__init__.py new file mode 100644 index 00000000..bf3d8afc --- /dev/null +++ b/azure-devops/azure/devops/v5_1/cix/__init__.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# 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 .models import * +from .cix_client import CixClient + +__all__ = [ + 'ConfigurationFile', + 'CreatePipelineConnectionInputs', + 'DetectedBuildFramework', + 'DetectedBuildTarget', + 'Operation', + 'OperationReference', + 'OperationResultReference', + 'PipelineConnection', + 'ReferenceLinks', + 'TeamProject', + 'TeamProjectReference', + 'Template', + 'TemplateParameterDefinition', + 'TemplateParameters', + 'WebApiTeamRef', + 'CixClient' +] diff --git a/azure-devops/azure/devops/v5_1/cix/cix_client.py b/azure-devops/azure/devops/v5_1/cix/cix_client.py new file mode 100644 index 00000000..dff4428d --- /dev/null +++ b/azure-devops/azure/devops/v5_1/cix/cix_client.py @@ -0,0 +1,166 @@ +# -------------------------------------------------------------------------------------------- +# 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 . import models + + +class CixClient(Client): + """Cix + :param str base_url: Service URL + :param Authentication creds: Authenticated credentials. + """ + + def __init__(self, base_url=None, creds=None): + super(CixClient, 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_configurations(self, project, repository_type=None, repository_id=None, branch=None, service_connection_id=None): + """GetConfigurations. + [Preview API] Gets a list of existing configuration files for the given repository. + :param str project: Project ID or project name + :param str repository_type: The type of the repository such as GitHub, TfsGit (i.e. Azure Repos), Bitbucket, etc. + :param str repository_id: The vendor-specific identifier or the name of the repository, e.g. Microsoft/vscode (GitHub) or e9d82045-ddba-4e01-a63d-2ab9f040af62 (Azure Repos) + :param str branch: The repository branch where to look for the configuration file. + :param str service_connection_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TfsGit (i.e. Azure Repos). + :rtype: [ConfigurationFile] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if repository_type is not None: + query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if branch is not None: + query_parameters['branch'] = self._serialize.query('branch', branch, 'str') + if service_connection_id is not None: + query_parameters['serviceConnectionId'] = self._serialize.query('service_connection_id', service_connection_id, 'str') + response = self._send(http_method='GET', + location_id='8fc87684-9ebc-4c37-ab92-f4ac4a58cb3a', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[ConfigurationFile]', self._unwrap_collection(response)) + + def create_connection(self, create_connection_inputs): + """CreateConnection. + [Preview API] LEGACY METHOD - Obsolete Creates a new team project with the name provided if one does not already exist and then creates a new Pipeline connection within that project. Returns an Operation object that wraps the Job and provides status + :param :class:` ` create_connection_inputs: + :rtype: :class:` ` + """ + content = self._serialize.body(create_connection_inputs, 'CreatePipelineConnectionInputs') + response = self._send(http_method='POST', + location_id='00df4879-9216-45d5-b38d-4a487b626b2c', + version='5.1-preview.1', + content=content) + return self._deserialize('Operation', response) + + def create_project_connection(self, create_connection_inputs, project): + """CreateProjectConnection. + [Preview API] Creates a new team project with the name provided if one does not already exist and then creates a new Pipeline connection within that project. Returns an Operation object that wraps the Job and provides status + :param :class:` ` create_connection_inputs: + :param str project: + :rtype: :class:` ` + """ + query_parameters = {} + if project is not None: + query_parameters['project'] = self._serialize.query('project', project, 'str') + content = self._serialize.body(create_connection_inputs, 'CreatePipelineConnectionInputs') + response = self._send(http_method='POST', + location_id='00df4879-9216-45d5-b38d-4a487b626b2c', + version='5.1-preview.1', + query_parameters=query_parameters, + content=content) + return self._deserialize('PipelineConnection', response) + + def get_detected_build_frameworks(self, project, repository_type=None, repository_id=None, branch=None, detection_type=None, service_connection_id=None): + """GetDetectedBuildFrameworks. + [Preview API] Returns a list of build frameworks that best match the given repository based on its contents. + :param str project: Project ID or project name + :param str repository_type: The type of the repository such as GitHub, TfsGit (i.e. Azure Repos), Bitbucket, etc. + :param str repository_id: The vendor-specific identifier or the name of the repository, e.g. Microsoft/vscode (GitHub) or e9d82045-ddba-4e01-a63d-2ab9f040af62 (Azure Repos) + :param str branch: The repository branch to detect build frameworks for. + :param str detection_type: + :param str service_connection_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TfsGit (i.e. Azure Repos). + :rtype: [DetectedBuildFramework] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if repository_type is not None: + query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if branch is not None: + query_parameters['branch'] = self._serialize.query('branch', branch, 'str') + if detection_type is not None: + query_parameters['detectionType'] = self._serialize.query('detection_type', detection_type, 'str') + if service_connection_id is not None: + query_parameters['serviceConnectionId'] = self._serialize.query('service_connection_id', service_connection_id, 'str') + response = self._send(http_method='GET', + location_id='29a30bab-9efb-4652-bf1b-9269baca0980', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[DetectedBuildFramework]', self._unwrap_collection(response)) + + def get_template_recommendations(self, project, repository_type=None, repository_id=None, branch=None, service_connection_id=None): + """GetTemplateRecommendations. + [Preview API] Returns a list of all YAML templates with weighting based on which would best fit the given repository. + :param str project: Project ID or project name + :param str repository_type: The type of the repository such as GitHub, TfsGit (i.e. Azure Repos), Bitbucket, etc. + :param str repository_id: The vendor-specific identifier or the name of the repository, e.g. Microsoft/vscode (GitHub) or e9d82045-ddba-4e01-a63d-2ab9f040af62 (Azure Repos) + :param str branch: The repository branch which to find matching templates for. + :param str service_connection_id: If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TfsGit (i.e. Azure Repos). + :rtype: [Template] + """ + route_values = {} + if project is not None: + route_values['project'] = self._serialize.url('project', project, 'str') + query_parameters = {} + if repository_type is not None: + query_parameters['repositoryType'] = self._serialize.query('repository_type', repository_type, 'str') + if repository_id is not None: + query_parameters['repositoryId'] = self._serialize.query('repository_id', repository_id, 'str') + if branch is not None: + query_parameters['branch'] = self._serialize.query('branch', branch, 'str') + if service_connection_id is not None: + query_parameters['serviceConnectionId'] = self._serialize.query('service_connection_id', service_connection_id, 'str') + response = self._send(http_method='GET', + location_id='63ea8f13-b563-4be7-bc31-3a96eda27220', + version='5.1-preview.1', + route_values=route_values, + query_parameters=query_parameters) + return self._deserialize('[Template]', self._unwrap_collection(response)) + + def render_template(self, template_parameters, template_id): + """RenderTemplate. + [Preview API] + :param :class:` ` template_parameters: + :param str template_id: + :rtype: :class:`